hs-admin-ui 1.8.1 → 1.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (455) hide show
  1. package/dist/{401-BP0p6zjH.js → 401-8v3xwMkU.js} +1 -1
  2. package/dist/401-8v3xwMkU.js.gz +0 -0
  3. package/dist/{401-DKnlZ2BM.mjs → 401-BRmNzNDX.mjs} +1 -1
  4. package/dist/401-BRmNzNDX.mjs.gz +0 -0
  5. package/dist/{404-CVgAr7JK.mjs → 404-5GMBhIUR.mjs} +1 -1
  6. package/dist/{404-CVgAr7JK.mjs.gz → 404-5GMBhIUR.mjs.gz} +0 -0
  7. package/dist/{404-CxvLuluW.js → 404-CY5BS-ll.js} +1 -1
  8. package/dist/{404-CxvLuluW.js.gz → 404-CY5BS-ll.js.gz} +0 -0
  9. package/dist/{account-B30Wc_l8.js → account-D11qvgaF.js} +1 -1
  10. package/dist/account-D11qvgaF.js.gz +0 -0
  11. package/dist/{account-KoosrPX_.mjs → account-rVNrdArR.mjs} +2 -2
  12. package/dist/account-rVNrdArR.mjs.gz +0 -0
  13. package/dist/{aside-B1SQJgN7.js → aside-CBCeW4Tj.js} +1 -1
  14. package/dist/aside-CBCeW4Tj.js.gz +0 -0
  15. package/dist/{aside-BUpwEEqI.mjs → aside-D7MFy0vS.mjs} +2 -2
  16. package/dist/aside-D7MFy0vS.mjs.gz +0 -0
  17. package/dist/{btnIndex-BSEAn-XX.js → btnIndex-BKDavCO7.js} +1 -1
  18. package/dist/btnIndex-BKDavCO7.js.gz +0 -0
  19. package/dist/{btnIndex-C0V9s-CZ.mjs → btnIndex-CFcpVx8c.mjs} +2 -2
  20. package/dist/btnIndex-CFcpVx8c.mjs.gz +0 -0
  21. package/dist/{classic-1np21KRW.js → classic-BFLIuDdp.js} +1 -1
  22. package/dist/classic-BFLIuDdp.js.gz +0 -0
  23. package/dist/{classic-DrwDhFCh.mjs → classic-Ca71SSMO.mjs} +2 -2
  24. package/dist/classic-Ca71SSMO.mjs.gz +0 -0
  25. package/dist/{columns-DcQfzxzi.mjs → columns-CG64FMGw.mjs} +2 -2
  26. package/dist/columns-CG64FMGw.mjs.gz +0 -0
  27. package/dist/{columns-tVvbXKSv.js → columns-O0VWLdBi.js} +1 -1
  28. package/dist/columns-O0VWLdBi.js.gz +0 -0
  29. package/dist/{columnsAside-CENB6Rss.mjs → columnsAside-Ci9ybR-2.mjs} +1 -1
  30. package/dist/columnsAside-Ci9ybR-2.mjs.gz +0 -0
  31. package/dist/{columnsAside-CPEpN-jC.js → columnsAside-CloC8TX6.js} +1 -1
  32. package/dist/columnsAside-CloC8TX6.js.gz +0 -0
  33. package/dist/{contextmenu-CtiNnSma.js → contextmenu-CXG9Vh4I.js} +1 -1
  34. package/dist/contextmenu-CXG9Vh4I.js.gz +0 -0
  35. package/dist/{contextmenu-BIZvraoA.mjs → contextmenu-CkgxFvNd.mjs} +1 -1
  36. package/dist/contextmenu-CkgxFvNd.mjs.gz +0 -0
  37. package/dist/{contextmenu-DjHeRGHU.js → contextmenu-NCjmXyYs.js} +1 -1
  38. package/dist/contextmenu-NCjmXyYs.js.gz +0 -0
  39. package/dist/{contextmenu-VSRDM0WZ.mjs → contextmenu-QLLLiEwG.mjs} +1 -1
  40. package/dist/contextmenu-QLLLiEwG.mjs.gz +0 -0
  41. package/dist/{defaults-kFX-gOo1.js → defaults-C6UgTH8M.js} +1 -1
  42. package/dist/defaults-C6UgTH8M.js.gz +0 -0
  43. package/dist/{defaults-nRY-Gnam.mjs → defaults-Cr0OiTMN.mjs} +2 -2
  44. package/dist/defaults-Cr0OiTMN.mjs.gz +0 -0
  45. package/dist/{dialog-iMMoigMJ.js → dialog-Cj64kqTu.js} +1 -1
  46. package/dist/{dialog-_xY5auFc.mjs → dialog-D897sBEc.mjs} +1 -1
  47. package/dist/{dialog-DrOrhGdz.mjs → dialog-DVF4RCE6.mjs} +1 -1
  48. package/dist/{dialog-DLAIEzj_.js → dialog-iQaMsVsr.js} +1 -1
  49. package/dist/{dialog-cx83p5TL.mjs → dialog-iSkhIWxs.mjs} +1 -1
  50. package/dist/{dialog-BHz2plDJ.js → dialog-v9ajBabB.js} +1 -1
  51. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BWeS7Szh.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Bn_d0vsS.js} +1 -1
  52. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Bn_d0vsS.js.gz +0 -0
  53. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BtsrGExv.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-GrGz7X-p.mjs} +2 -2
  54. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-GrGz7X-p.mjs.gz +0 -0
  55. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BbABf6AZ.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C3mc2Goa.js} +1 -1
  56. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C3mc2Goa.js.gz +0 -0
  57. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-i1rNUL_z.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-De3Jy_Py.mjs} +2 -2
  58. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-De3Jy_Py.mjs.gz +0 -0
  59. package/dist/{dictDialog-B54GV1Tn.js → dictDialog-BsKSNKBm.js} +1 -1
  60. package/dist/{dictDialog-Y4RXXfgj.mjs → dictDialog-CBYAmUEi.mjs} +1 -1
  61. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-TviC2dcf.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-D7-HfPFK.js} +1 -1
  62. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-D7-HfPFK.js.gz +0 -0
  63. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DLO2iVbw.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DCX8zUSX.mjs} +2 -2
  64. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DCX8zUSX.mjs.gz +0 -0
  65. package/dist/{dictItemDialog-CNwKduNk.mjs → dictItemDialog-BP3ur3Zk.mjs} +1 -1
  66. package/dist/{dictItemDialog-DIghccsr.js → dictItemDialog-BjCLVN4z.js} +1 -1
  67. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-DQA0itIQ.js → dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-Ck99ddWb.js} +1 -1
  68. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-Ck99ddWb.js.gz +0 -0
  69. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-BVmEmFfU.mjs → dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CkWCh-Cg.mjs} +2 -2
  70. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CkWCh-Cg.mjs.gz +0 -0
  71. package/dist/{formConfig-93-o4zIm.js → formConfig-CAsthwXB.js} +1 -1
  72. package/dist/formConfig-CAsthwXB.js.gz +0 -0
  73. package/dist/{formConfig-CV17xjl0.mjs → formConfig-DcRVQNxc.mjs} +4 -4
  74. package/dist/formConfig-DcRVQNxc.mjs.gz +0 -0
  75. package/dist/{header-CuQwT6S2.js → header-CFGvoID-.js} +1 -1
  76. package/dist/{header-BqpCcpQq.mjs → header-Dw_KVGYq.mjs} +2 -2
  77. package/dist/{horizontal-BcoH7-Er.js → horizontal-CSd0s_EO.js} +1 -1
  78. package/dist/horizontal-CSd0s_EO.js.gz +0 -0
  79. package/dist/{horizontal-CI_AwU5W.mjs → horizontal-CaFrmsEU.mjs} +2 -2
  80. package/dist/horizontal-CaFrmsEU.mjs.gz +0 -0
  81. package/dist/{hsAttrBtn-BGg5Iiwn.mjs → hsAttrBtn-Co7oiYwK.mjs} +1 -1
  82. package/dist/{hsAttrBtn-jI1Rj-yU.js → hsAttrBtn-DrJTObOx.js} +1 -1
  83. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-BnwPVvp_.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-Be2-NtGe.js} +1 -1
  84. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-Be2-NtGe.js.gz +0 -0
  85. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-IJZSKLPw.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-CRWOKnXG.mjs} +2 -2
  86. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-CRWOKnXG.mjs.gz +0 -0
  87. package/dist/{hsAttrForm-DjbkqCtV.mjs → hsAttrForm-D9PeyIew.mjs} +1 -1
  88. package/dist/{hsAttrForm-BkwXQygQ.js → hsAttrForm-pb4EjAiN.js} +1 -1
  89. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-BfB_f2VG.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-B0jKMvV_.mjs} +1 -1
  90. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-B0jKMvV_.mjs.gz +0 -0
  91. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-CZgG4llt.js → hsAttrForm.vue_vue_type_script_setup_true_lang-KCaYeyd8.js} +1 -1
  92. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-KCaYeyd8.js.gz +0 -0
  93. package/dist/{hsBtnConfigList-D_-jHPHS.js → hsBtnConfigList-8IdJQuGm.js} +1 -1
  94. package/dist/hsBtnConfigList-8IdJQuGm.js.gz +0 -0
  95. package/dist/{hsBtnConfigList-BVIjLplF.mjs → hsBtnConfigList-IfK_4Xrk.mjs} +1 -1
  96. package/dist/hsBtnConfigList-IfK_4Xrk.mjs.gz +0 -0
  97. package/dist/{hsBtnItemConfig-eziubSmP.mjs → hsBtnItemConfig-CywV_zbH.mjs} +1 -1
  98. package/dist/{hsBtnItemConfig-O5pwSjnQ.js → hsBtnItemConfig-DGpee9f6.js} +1 -1
  99. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DY7mAT6U.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BAWdfq8_.mjs} +1 -1
  100. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BAWdfq8_.mjs.gz +0 -0
  101. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Burfulmf.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CJ27K6Fj.js} +1 -1
  102. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CJ27K6Fj.js.gz +0 -0
  103. package/dist/{hsBtnPanel-B9Knuxxl.mjs → hsBtnPanel-C4Lb2Yex.mjs} +1 -1
  104. package/dist/{hsBtnPanel-BYkiqMtZ.js → hsBtnPanel-Dwr4hdUX.js} +1 -1
  105. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BW0MWh4R.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-B0w_kx7l.js} +1 -1
  106. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-B0w_kx7l.js.gz +0 -0
  107. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C0-wts3z.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DwNrfAlV.mjs} +3 -3
  108. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DwNrfAlV.mjs.gz +0 -0
  109. package/dist/{hsFormConfig-Qs8qdrpf.js → hsFormConfig-DLPJ3dqX.js} +1 -1
  110. package/dist/hsFormConfig-DLPJ3dqX.js.gz +0 -0
  111. package/dist/{hsFormConfig-Dh-xIxqp.mjs → hsFormConfig-JE6nqv4Z.mjs} +1 -1
  112. package/dist/hsFormConfig-JE6nqv4Z.mjs.gz +0 -0
  113. package/dist/{hsFormConfigList-CTDRHvRG.js → hsFormConfigList-CEGEKeIW.js} +1 -1
  114. package/dist/hsFormConfigList-CEGEKeIW.js.gz +0 -0
  115. package/dist/{hsFormConfigList-BZtmn8Yj.mjs → hsFormConfigList-pafCxN7S.mjs} +2 -2
  116. package/dist/hsFormConfigList-pafCxN7S.mjs.gz +0 -0
  117. package/dist/{hsFormPanel-BJpwXZPA.mjs → hsFormPanel-CXmmjZqc.mjs} +1 -1
  118. package/dist/{hsFormPanel-BKruMsIq.js → hsFormPanel-DIO-YyE6.js} +1 -1
  119. package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-e97dXLzf.mjs → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BWtQ5Fcd.mjs} +4 -4
  120. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BWtQ5Fcd.mjs.gz +0 -0
  121. package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C5Cb3nCM.js → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DswjxLst.js} +1 -1
  122. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DswjxLst.js.gz +0 -0
  123. package/dist/{hsFormParse-CdDz2xFT.js → hsFormParse-CtjF5Xf6.js} +1 -1
  124. package/dist/{hsFormParse-ucOo_-w-.mjs → hsFormParse-Ej6sTjRc.mjs} +1 -1
  125. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-DaNIYh7I.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-Bd2ZQmxZ.mjs} +1 -1
  126. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-Bd2ZQmxZ.mjs.gz +0 -0
  127. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-PCdtUTen.js → hsFormParse.vue_vue_type_script_setup_true_lang-CGUz0dBx.js} +1 -1
  128. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-CGUz0dBx.js.gz +0 -0
  129. package/dist/{hsPageTree-Bsz7V3i3.mjs → hsPageTree-C0TKq3De.mjs} +1 -1
  130. package/dist/hsPageTree-C0TKq3De.mjs.gz +0 -0
  131. package/dist/{hsPageTree-B0uQ10J2.js → hsPageTree-ClRhypeO.js} +1 -1
  132. package/dist/hsPageTree-ClRhypeO.js.gz +0 -0
  133. package/dist/{hsPanelItem-BLgfpogX.js → hsPanelItem-BP6qP0UJ.js} +1 -1
  134. package/dist/{hsPanelItem-CyfrQETa.mjs → hsPanelItem-CI5XNDwe.mjs} +1 -1
  135. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Etd7LaNO.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BUIs62IK.js} +1 -1
  136. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BUIs62IK.js.gz +0 -0
  137. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DXE2Yhwh.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CoKlVTQG.mjs} +1 -1
  138. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CoKlVTQG.mjs.gz +0 -0
  139. package/dist/{iframes-Cwz1oPMX.mjs → iframes-B3G-bMfZ.mjs} +1 -1
  140. package/dist/iframes-B3G-bMfZ.mjs.gz +0 -0
  141. package/dist/{iframes-BdtyKj34.js → iframes-CETDhqEY.js} +1 -1
  142. package/dist/iframes-CETDhqEY.js.gz +0 -0
  143. package/dist/{index-CuUcM5oq.js → index-1Xd8Vwe2.js} +1 -1
  144. package/dist/index-1Xd8Vwe2.js.gz +0 -0
  145. package/dist/{index-CzX92IZZ.js → index-46iEfZD4.js} +1 -1
  146. package/dist/index-5QUQZmgi.mjs +4 -0
  147. package/dist/{index-JrWLAH-D.js → index-B3Ul2p_O.js} +1 -1
  148. package/dist/index-B3Ul2p_O.js.gz +0 -0
  149. package/dist/{index-jyk82yVN.mjs → index-BA3E3bDT.mjs} +1 -1
  150. package/dist/{index-CYislusg.js → index-BE7eg5Fj.js} +1 -1
  151. package/dist/{index-XHYn-1iF.js → index-BOUaVgRN.js} +1 -1
  152. package/dist/index-BOUaVgRN.js.gz +0 -0
  153. package/dist/{index-DpZV_BNb.js → index-BOhEO7xy.js} +1 -1
  154. package/dist/index-BOhEO7xy.js.gz +0 -0
  155. package/dist/{index-Umzfpqpt.js → index-BQPVrWqO.js} +1 -1
  156. package/dist/index-BQPVrWqO.js.gz +0 -0
  157. package/dist/{index-DXltb2BD.js → index-BT6GcEbS.js} +1 -1
  158. package/dist/index-BT6GcEbS.js.gz +0 -0
  159. package/dist/{index-Pjo9i4zI.js → index-BWJeSA1L.js} +1 -1
  160. package/dist/index-BWJeSA1L.js.gz +0 -0
  161. package/dist/{index-CWRN6zEx.mjs → index-BXnk-9Rg.mjs} +1 -1
  162. package/dist/index-BXnk-9Rg.mjs.gz +0 -0
  163. package/dist/{index-IjnFIA4V.mjs → index-B_DI6nQw.mjs} +1 -1
  164. package/dist/index-B_DI6nQw.mjs.gz +0 -0
  165. package/dist/{index-0BUloXG-.mjs → index-BaY0XioT.mjs} +1 -1
  166. package/dist/index-BaY0XioT.mjs.gz +0 -0
  167. package/dist/{index-DWmFdtMh.mjs → index-BfDQcx_e.mjs} +4 -4
  168. package/dist/index-BfDQcx_e.mjs.gz +0 -0
  169. package/dist/{index-CxUHank2.mjs → index-BflQj6XP.mjs} +1 -1
  170. package/dist/{index-BGBnM0LF.js → index-BtxVQGW4.js} +1 -1
  171. package/dist/index-BtxVQGW4.js.gz +0 -0
  172. package/dist/{index-ud9W5vVF.mjs → index-Bx0WdzNY.mjs} +3 -3
  173. package/dist/index-Bx0WdzNY.mjs.gz +0 -0
  174. package/dist/{index-K2PotrPR.js → index-BxC-8nJR.js} +1 -1
  175. package/dist/{index-QDku4NmL.js → index-CCCqStLT.js} +1 -1
  176. package/dist/index-CCCqStLT.js.gz +0 -0
  177. package/dist/{index-DxrXGj22.js → index-CHxPqXec.js} +1 -1
  178. package/dist/index-CHxPqXec.js.gz +0 -0
  179. package/dist/{index-DlBmpYD5.mjs → index-CR1mg9rK.mjs} +2 -2
  180. package/dist/index-CR1mg9rK.mjs.gz +0 -0
  181. package/dist/{index-Cscdv0YS.js → index-CRjreBoS.js} +1 -1
  182. package/dist/index-CRjreBoS.js.gz +0 -0
  183. package/dist/{index-COEb0n0G.js → index-CWHUCxR0.js} +1 -1
  184. package/dist/index-CWHUCxR0.js.gz +0 -0
  185. package/dist/{index-CEMoyC4i.js → index-CYPDEQ9u.js} +3 -3
  186. package/dist/{index-CEMoyC4i.js.gz → index-CYPDEQ9u.js.gz} +0 -0
  187. package/dist/{index-CX_gBBcB.mjs → index-CYVyWd1n.mjs} +1 -1
  188. package/dist/index-CYVyWd1n.mjs.gz +0 -0
  189. package/dist/{index-COtPYUO9.js → index-CZbZPfI4.js} +1 -1
  190. package/dist/{index-hsq59x1o.js → index-Cc6v0Xc_.js} +1 -1
  191. package/dist/{index-CoUCrpQO.mjs → index-Ccss2y48.mjs} +1 -1
  192. package/dist/{index-BIppz6P7.mjs → index-CsrpV6J0.mjs} +2 -2
  193. package/dist/index-CsrpV6J0.mjs.gz +0 -0
  194. package/dist/{index-Cq6662_e.js → index-Cvrs4CGl.js} +1 -1
  195. package/dist/index-Cvrs4CGl.js.gz +0 -0
  196. package/dist/{index-BTDnwUxt.mjs → index-CwDfyWKx.mjs} +1 -1
  197. package/dist/index-CwDfyWKx.mjs.gz +0 -0
  198. package/dist/{index-DBhNMwIz.js → index-D-62brOi.js} +1 -1
  199. package/dist/index-D-62brOi.js.gz +0 -0
  200. package/dist/{index-DwmmAOJG.js → index-D-_DUEwS.js} +1 -1
  201. package/dist/index-D-_DUEwS.js.gz +0 -0
  202. package/dist/{index-Cm9JDbSE.mjs → index-D2_qwhW8.mjs} +1 -1
  203. package/dist/{index-Cs0wabY1.js → index-DE-h59Vh.js} +1 -1
  204. package/dist/{index-BC0ucd2-.mjs → index-DE2nkccg.mjs} +2 -2
  205. package/dist/index-DE2nkccg.mjs.gz +0 -0
  206. package/dist/{index-CmDAjabU.js → index-DLFcMCC4.js} +1 -1
  207. package/dist/index-DLFcMCC4.js.gz +0 -0
  208. package/dist/{index-ClpDlX0A.js → index-DMuPC8KD.js} +1 -1
  209. package/dist/index-DMuPC8KD.js.gz +0 -0
  210. package/dist/{index-BaqZKgGs.js → index-DYAt4eAG.js} +1 -1
  211. package/dist/index-DYAt4eAG.js.gz +0 -0
  212. package/dist/{index-B0Z4T6t5.mjs → index-DdGj3iVo.mjs} +5 -5
  213. package/dist/index-DdGj3iVo.mjs.gz +0 -0
  214. package/dist/{index-DwKoHDdI.mjs → index-Di3VvF1a.mjs} +4 -4
  215. package/dist/index-Di3VvF1a.mjs.gz +0 -0
  216. package/dist/{index-BvjYVd5p.mjs → index-DpVGLTO4.mjs} +2 -2
  217. package/dist/{index-CxU-otOY.js → index-Dtl0wnup.js} +1 -1
  218. package/dist/index-Dtl0wnup.js.gz +0 -0
  219. package/dist/{index-DaMoONII.mjs → index-DtyVWoS8.mjs} +1 -1
  220. package/dist/index-DtyVWoS8.mjs.gz +0 -0
  221. package/dist/{index-CKwIMT3c.js → index-DuqpSF7q.js} +1 -1
  222. package/dist/{index-B3FXql4u.mjs → index-DzSfkrJU.mjs} +1 -1
  223. package/dist/index-DzSfkrJU.mjs.gz +0 -0
  224. package/dist/{index-Cw4Vjaue.mjs → index-MDoWvDrf.mjs} +509 -508
  225. package/dist/index-MDoWvDrf.mjs.gz +0 -0
  226. package/dist/{index-BBIG8Dyj.mjs → index-RaOLQJbr.mjs} +1 -1
  227. package/dist/{index-BPZKscF5.mjs → index-RfmAuE71.mjs} +2 -2
  228. package/dist/index-RfmAuE71.mjs.gz +0 -0
  229. package/dist/{index-iJc7yYHy.js → index-UBinbgqu.js} +1 -1
  230. package/dist/index-UBinbgqu.js.gz +0 -0
  231. package/dist/{index-ClLBEx5y.mjs → index-XYxrUbJ7.mjs} +1 -1
  232. package/dist/{index-XFiqePyC.mjs → index-Z4HUyZAz.mjs} +2 -2
  233. package/dist/index-Z4HUyZAz.mjs.gz +0 -0
  234. package/dist/{index-DvT7vncF.js → index-cjgxJ7cZ.js} +1 -1
  235. package/dist/{index-DB_Lq-su.mjs → index-kOd5VnXJ.mjs} +1 -1
  236. package/dist/index-kOd5VnXJ.mjs.gz +0 -0
  237. package/dist/{index-Dz_fv8Hm.mjs → index-nrTXXN8P.mjs} +1 -1
  238. package/dist/index-nrTXXN8P.mjs.gz +0 -0
  239. package/dist/{index-HPDEjwJT.mjs → index-oaaqMOLU.mjs} +1 -1
  240. package/dist/index-oaaqMOLU.mjs.gz +0 -0
  241. package/dist/{index-GxnPGTa1.mjs → index-vSXk3fvc.mjs} +3 -3
  242. package/dist/index-vSXk3fvc.mjs.gz +0 -0
  243. package/dist/index.js +1 -1
  244. package/dist/index.mjs +1 -1
  245. package/dist/{index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-CnT-lwsV.js → index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-B4MBD0B0.js} +1 -1
  246. package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-B4MBD0B0.js.gz +0 -0
  247. package/dist/{index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-CzWiigC6.mjs → index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-Dda9c-P5.mjs} +13 -13
  248. package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-Dda9c-P5.mjs.gz +0 -0
  249. package/dist/{link-BvqZPWT6.mjs → link-As2yBjLB.mjs} +1 -1
  250. package/dist/link-As2yBjLB.mjs.gz +0 -0
  251. package/dist/{link-Cu21H0Zk.js → link-BQ4C2YhU.js} +1 -1
  252. package/dist/link-BQ4C2YhU.js.gz +0 -0
  253. package/dist/{list-D2MZiZk8.js → list-BIWdaen0.js} +1 -1
  254. package/dist/list-BIWdaen0.js.gz +0 -0
  255. package/dist/{list-CYncEXqs.mjs → list-mHriuEdv.mjs} +1 -1
  256. package/dist/list-mHriuEdv.mjs.gz +0 -0
  257. package/dist/{main-DttSVE2B.js → main-C8BV51qd.js} +1 -1
  258. package/dist/main-C8BV51qd.js.gz +0 -0
  259. package/dist/{main-CE_2IR3W.mjs → main-VzuuES5w.mjs} +2 -2
  260. package/dist/main-VzuuES5w.mjs.gz +0 -0
  261. package/dist/{mobile-BNkQ1hDC.js → mobile-BzYzUzHc.js} +1 -1
  262. package/dist/mobile-BzYzUzHc.js.gz +0 -0
  263. package/dist/{mobile-B_xk0S8d.mjs → mobile-D_AcLj9O.mjs} +1 -1
  264. package/dist/mobile-D_AcLj9O.mjs.gz +0 -0
  265. package/dist/{parent-BM71LPt9.mjs → parent-C-NlFTjw.mjs} +2 -2
  266. package/dist/parent-C-NlFTjw.mjs.gz +0 -0
  267. package/dist/{parent-L9MtEElE.js → parent-l1VWl8zb.js} +1 -1
  268. package/dist/parent-l1VWl8zb.js.gz +0 -0
  269. package/dist/{roleItem-CH5ThExb.js → roleItem-BpXr0DLg.js} +1 -1
  270. package/dist/roleItem-BpXr0DLg.js.gz +0 -0
  271. package/dist/{roleItem-DKvKh1lO.mjs → roleItem-DwPOG-Ki.mjs} +1 -1
  272. package/dist/roleItem-DwPOG-Ki.mjs.gz +0 -0
  273. package/dist/{saveForm-BKv0Rjgy.js → saveForm-BERs8ZMT.js} +1 -1
  274. package/dist/{saveForm-DyDG040z.mjs → saveForm-BRjf9aVJ.mjs} +1 -1
  275. package/dist/{saveForm.vue_vue_type_script_setup_true_lang-DNW-oe8j.mjs → saveForm.vue_vue_type_script_setup_true_lang-C5slGGQT.mjs} +1 -1
  276. package/dist/saveForm.vue_vue_type_script_setup_true_lang-C5slGGQT.mjs.gz +0 -0
  277. package/dist/{saveForm.vue_vue_type_script_setup_true_lang-DQf8fqtf.js → saveForm.vue_vue_type_script_setup_true_lang-CC_tNayJ.js} +1 -1
  278. package/dist/saveForm.vue_vue_type_script_setup_true_lang-CC_tNayJ.js.gz +0 -0
  279. package/dist/{scan-XYsjO6AM.mjs → scan-B-Q9a16S.mjs} +1 -1
  280. package/dist/scan-B-Q9a16S.mjs.gz +0 -0
  281. package/dist/{scan-9-PQhqzo.js → scan-Db7psX_f.js} +1 -1
  282. package/dist/scan-Db7psX_f.js.gz +0 -0
  283. package/dist/{search-Ct_q2bzJ.js → search-DEFbnOHs.js} +1 -1
  284. package/dist/search-DEFbnOHs.js.gz +0 -0
  285. package/dist/{search-EzGGsRLe.mjs → search-DRTCy2XS.mjs} +1 -1
  286. package/dist/search-DRTCy2XS.mjs.gz +0 -0
  287. package/dist/{selectConfig-BUlzs8zt.js → selectConfig-BfUs6SvU.js} +1 -1
  288. package/dist/selectConfig-BfUs6SvU.js.gz +0 -0
  289. package/dist/{selectConfig-BmhGaoFy.mjs → selectConfig-DN196QSN.mjs} +1 -1
  290. package/dist/selectConfig-DN196QSN.mjs.gz +0 -0
  291. package/dist/{subItem-CN_4BRaz.js → subItem-CyEMCg5y.js} +1 -1
  292. package/dist/subItem-CyEMCg5y.js.gz +0 -0
  293. package/dist/{subItem-BHNA4aJt.mjs → subItem-D4CiNvSV.mjs} +1 -1
  294. package/dist/subItem-D4CiNvSV.mjs.gz +0 -0
  295. package/dist/{tagsView-CmPhbaU-.mjs → tagsView-D6gwXeei.mjs} +2 -2
  296. package/dist/tagsView-D6gwXeei.mjs.gz +0 -0
  297. package/dist/{tagsView-BvMeFNk1.js → tagsView-NuK5Ix0J.js} +2 -2
  298. package/dist/tagsView-NuK5Ix0J.js.gz +0 -0
  299. package/dist/{transverse-CTm2DXz9.js → transverse-B8pC3n5z.js} +1 -1
  300. package/dist/transverse-B8pC3n5z.js.gz +0 -0
  301. package/dist/{transverse-DW-rA4vs.mjs → transverse-U7lVq3E2.mjs} +2 -2
  302. package/dist/transverse-U7lVq3E2.mjs.gz +0 -0
  303. package/dist/{user-DAApNXxA.mjs → user-D5HXCnmE.mjs} +3 -3
  304. package/dist/user-D5HXCnmE.mjs.gz +0 -0
  305. package/dist/{user-C4hcATtM.js → user-D87oWQrQ.js} +1 -1
  306. package/dist/user-D87oWQrQ.js.gz +0 -0
  307. package/dist/{userNews-lEsTGeXA.js → userNews-DQG6_uNp.js} +1 -1
  308. package/dist/userNews-DQG6_uNp.js.gz +0 -0
  309. package/dist/{userNews-BryqbNmk.mjs → userNews-LfuaLuKS.mjs} +1 -1
  310. package/dist/userNews-LfuaLuKS.mjs.gz +0 -0
  311. package/dist/{userSelect-bcJPXx6A.js → userSelect-AhdKoHzX.js} +1 -1
  312. package/dist/{userSelect-Bm92q4pL.mjs → userSelect-BFkConsM.mjs} +1 -1
  313. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-DIfsmYmE.mjs → userSelect.vue_vue_type_script_setup_true_lang-DU7JsCme.mjs} +1 -1
  314. package/dist/userSelect.vue_vue_type_script_setup_true_lang-DU7JsCme.mjs.gz +0 -0
  315. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-DNNbPnRd.js → userSelect.vue_vue_type_script_setup_true_lang-Dxfg211g.js} +1 -1
  316. package/dist/userSelect.vue_vue_type_script_setup_true_lang-Dxfg211g.js.gz +0 -0
  317. package/dist/{vertical-CL36dCBC.mjs → vertical-B31slcpi.mjs} +2 -2
  318. package/dist/vertical-B31slcpi.mjs.gz +0 -0
  319. package/dist/{vertical-Bstw0Toe.js → vertical-h4ymQlT4.js} +1 -1
  320. package/dist/vertical-h4ymQlT4.js.gz +0 -0
  321. package/package.json +1 -1
  322. package/dist/401-BP0p6zjH.js.gz +0 -0
  323. package/dist/401-DKnlZ2BM.mjs.gz +0 -0
  324. package/dist/account-B30Wc_l8.js.gz +0 -0
  325. package/dist/account-KoosrPX_.mjs.gz +0 -0
  326. package/dist/aside-B1SQJgN7.js.gz +0 -0
  327. package/dist/aside-BUpwEEqI.mjs.gz +0 -0
  328. package/dist/btnIndex-BSEAn-XX.js.gz +0 -0
  329. package/dist/btnIndex-C0V9s-CZ.mjs.gz +0 -0
  330. package/dist/classic-1np21KRW.js.gz +0 -0
  331. package/dist/classic-DrwDhFCh.mjs.gz +0 -0
  332. package/dist/columns-DcQfzxzi.mjs.gz +0 -0
  333. package/dist/columns-tVvbXKSv.js.gz +0 -0
  334. package/dist/columnsAside-CENB6Rss.mjs.gz +0 -0
  335. package/dist/columnsAside-CPEpN-jC.js.gz +0 -0
  336. package/dist/contextmenu-BIZvraoA.mjs.gz +0 -0
  337. package/dist/contextmenu-CtiNnSma.js.gz +0 -0
  338. package/dist/contextmenu-DjHeRGHU.js.gz +0 -0
  339. package/dist/contextmenu-VSRDM0WZ.mjs.gz +0 -0
  340. package/dist/defaults-kFX-gOo1.js.gz +0 -0
  341. package/dist/defaults-nRY-Gnam.mjs.gz +0 -0
  342. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BWeS7Szh.js.gz +0 -0
  343. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BtsrGExv.mjs.gz +0 -0
  344. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BbABf6AZ.js.gz +0 -0
  345. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-i1rNUL_z.mjs.gz +0 -0
  346. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DLO2iVbw.mjs.gz +0 -0
  347. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-TviC2dcf.js.gz +0 -0
  348. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-BVmEmFfU.mjs.gz +0 -0
  349. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-DQA0itIQ.js.gz +0 -0
  350. package/dist/formConfig-93-o4zIm.js.gz +0 -0
  351. package/dist/formConfig-CV17xjl0.mjs.gz +0 -0
  352. package/dist/horizontal-BcoH7-Er.js.gz +0 -0
  353. package/dist/horizontal-CI_AwU5W.mjs.gz +0 -0
  354. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-BnwPVvp_.js.gz +0 -0
  355. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-IJZSKLPw.mjs.gz +0 -0
  356. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BfB_f2VG.mjs.gz +0 -0
  357. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-CZgG4llt.js.gz +0 -0
  358. package/dist/hsBtnConfigList-BVIjLplF.mjs.gz +0 -0
  359. package/dist/hsBtnConfigList-D_-jHPHS.js.gz +0 -0
  360. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Burfulmf.js.gz +0 -0
  361. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DY7mAT6U.mjs.gz +0 -0
  362. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BW0MWh4R.js.gz +0 -0
  363. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C0-wts3z.mjs.gz +0 -0
  364. package/dist/hsFormConfig-Dh-xIxqp.mjs.gz +0 -0
  365. package/dist/hsFormConfig-Qs8qdrpf.js.gz +0 -0
  366. package/dist/hsFormConfigList-BZtmn8Yj.mjs.gz +0 -0
  367. package/dist/hsFormConfigList-CTDRHvRG.js.gz +0 -0
  368. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C5Cb3nCM.js.gz +0 -0
  369. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-e97dXLzf.mjs.gz +0 -0
  370. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-DaNIYh7I.mjs.gz +0 -0
  371. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-PCdtUTen.js.gz +0 -0
  372. package/dist/hsPageTree-B0uQ10J2.js.gz +0 -0
  373. package/dist/hsPageTree-Bsz7V3i3.mjs.gz +0 -0
  374. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DXE2Yhwh.mjs.gz +0 -0
  375. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Etd7LaNO.js.gz +0 -0
  376. package/dist/iframes-BdtyKj34.js.gz +0 -0
  377. package/dist/iframes-Cwz1oPMX.mjs.gz +0 -0
  378. package/dist/index-0BUloXG-.mjs.gz +0 -0
  379. package/dist/index-B0Z4T6t5.mjs.gz +0 -0
  380. package/dist/index-B3FXql4u.mjs.gz +0 -0
  381. package/dist/index-BC0ucd2-.mjs.gz +0 -0
  382. package/dist/index-BGBnM0LF.js.gz +0 -0
  383. package/dist/index-BIppz6P7.mjs.gz +0 -0
  384. package/dist/index-BPZKscF5.mjs.gz +0 -0
  385. package/dist/index-BTDnwUxt.mjs.gz +0 -0
  386. package/dist/index-BaqZKgGs.js.gz +0 -0
  387. package/dist/index-COEb0n0G.js.gz +0 -0
  388. package/dist/index-CWRN6zEx.mjs.gz +0 -0
  389. package/dist/index-CX_gBBcB.mjs.gz +0 -0
  390. package/dist/index-ClpDlX0A.js.gz +0 -0
  391. package/dist/index-CmDAjabU.js.gz +0 -0
  392. package/dist/index-Cq6662_e.js.gz +0 -0
  393. package/dist/index-Cscdv0YS.js.gz +0 -0
  394. package/dist/index-CuUcM5oq.js.gz +0 -0
  395. package/dist/index-Cw4Vjaue.mjs.gz +0 -0
  396. package/dist/index-CxU-otOY.js.gz +0 -0
  397. package/dist/index-DB_Lq-su.mjs.gz +0 -0
  398. package/dist/index-DBhNMwIz.js.gz +0 -0
  399. package/dist/index-DWmFdtMh.mjs.gz +0 -0
  400. package/dist/index-DXltb2BD.js.gz +0 -0
  401. package/dist/index-DaMoONII.mjs.gz +0 -0
  402. package/dist/index-DfKmtsqO.mjs +0 -4
  403. package/dist/index-DlBmpYD5.mjs.gz +0 -0
  404. package/dist/index-DpZV_BNb.js.gz +0 -0
  405. package/dist/index-DwKoHDdI.mjs.gz +0 -0
  406. package/dist/index-DwmmAOJG.js.gz +0 -0
  407. package/dist/index-DxrXGj22.js.gz +0 -0
  408. package/dist/index-Dz_fv8Hm.mjs.gz +0 -0
  409. package/dist/index-GxnPGTa1.mjs.gz +0 -0
  410. package/dist/index-HPDEjwJT.mjs.gz +0 -0
  411. package/dist/index-IjnFIA4V.mjs.gz +0 -0
  412. package/dist/index-JrWLAH-D.js.gz +0 -0
  413. package/dist/index-Pjo9i4zI.js.gz +0 -0
  414. package/dist/index-QDku4NmL.js.gz +0 -0
  415. package/dist/index-Umzfpqpt.js.gz +0 -0
  416. package/dist/index-XFiqePyC.mjs.gz +0 -0
  417. package/dist/index-XHYn-1iF.js.gz +0 -0
  418. package/dist/index-iJc7yYHy.js.gz +0 -0
  419. package/dist/index-ud9W5vVF.mjs.gz +0 -0
  420. package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-CnT-lwsV.js.gz +0 -0
  421. package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-CzWiigC6.mjs.gz +0 -0
  422. package/dist/link-BvqZPWT6.mjs.gz +0 -0
  423. package/dist/link-Cu21H0Zk.js.gz +0 -0
  424. package/dist/list-CYncEXqs.mjs.gz +0 -0
  425. package/dist/list-D2MZiZk8.js.gz +0 -0
  426. package/dist/main-CE_2IR3W.mjs.gz +0 -0
  427. package/dist/main-DttSVE2B.js.gz +0 -0
  428. package/dist/mobile-BNkQ1hDC.js.gz +0 -0
  429. package/dist/mobile-B_xk0S8d.mjs.gz +0 -0
  430. package/dist/parent-BM71LPt9.mjs.gz +0 -0
  431. package/dist/parent-L9MtEElE.js.gz +0 -0
  432. package/dist/roleItem-CH5ThExb.js.gz +0 -0
  433. package/dist/roleItem-DKvKh1lO.mjs.gz +0 -0
  434. package/dist/saveForm.vue_vue_type_script_setup_true_lang-DNW-oe8j.mjs.gz +0 -0
  435. package/dist/saveForm.vue_vue_type_script_setup_true_lang-DQf8fqtf.js.gz +0 -0
  436. package/dist/scan-9-PQhqzo.js.gz +0 -0
  437. package/dist/scan-XYsjO6AM.mjs.gz +0 -0
  438. package/dist/search-Ct_q2bzJ.js.gz +0 -0
  439. package/dist/search-EzGGsRLe.mjs.gz +0 -0
  440. package/dist/selectConfig-BUlzs8zt.js.gz +0 -0
  441. package/dist/selectConfig-BmhGaoFy.mjs.gz +0 -0
  442. package/dist/subItem-BHNA4aJt.mjs.gz +0 -0
  443. package/dist/subItem-CN_4BRaz.js.gz +0 -0
  444. package/dist/tagsView-BvMeFNk1.js.gz +0 -0
  445. package/dist/tagsView-CmPhbaU-.mjs.gz +0 -0
  446. package/dist/transverse-CTm2DXz9.js.gz +0 -0
  447. package/dist/transverse-DW-rA4vs.mjs.gz +0 -0
  448. package/dist/user-C4hcATtM.js.gz +0 -0
  449. package/dist/user-DAApNXxA.mjs.gz +0 -0
  450. package/dist/userNews-BryqbNmk.mjs.gz +0 -0
  451. package/dist/userNews-lEsTGeXA.js.gz +0 -0
  452. package/dist/userSelect.vue_vue_type_script_setup_true_lang-DIfsmYmE.mjs.gz +0 -0
  453. package/dist/userSelect.vue_vue_type_script_setup_true_lang-DNNbPnRd.js.gz +0 -0
  454. package/dist/vertical-Bstw0Toe.js.gz +0 -0
  455. package/dist/vertical-CL36dCBC.mjs.gz +0 -0
@@ -152,7 +152,7 @@ This will fail in production.`);u=Zp,u._s.has(o)||(l?cC(o,n,a,u):P5(o,a,u),proce
152
152
  <div class="loading-next-box-item"></div>
153
153
  </div>
154
154
  </div>
155
- `;n.innerHTML=r,t.insertBefore(n,t.childNodes[0]),window.nextLoading=!0},done:(t=0)=>{e.nextTick(()=>{setTimeout(()=>{var r;window.nextLoading=!1;const n=document.querySelector(".loading-next");(r=n==null?void 0:n.parentNode)==null||r.removeChild(n)},t)})}},Ru=[{path:"/",name:"/",component:()=>Promise.resolve().then(()=>require("./index-JrWLAH-D.js")),redirect:"/home",meta:{isKeepAlive:!0},children:[]}],X6=[{path:"/:path(.*)*",name:"notFound",component:()=>Promise.resolve().then(()=>require("./404-CxvLuluW.js")),meta:{title:"找不到此页面",isHide:!0}},{path:"/401",name:"noPower",component:()=>Promise.resolve().then(()=>require("./401-BP0p6zjH.js")),meta:{title:"没有权限",isHide:!0}}],EVe=[{path:"/login",name:"login",component:()=>Promise.resolve().then(()=>require("./index-COEb0n0G.js")),meta:{title:"登录"}}];/*!
155
+ `;n.innerHTML=r,t.insertBefore(n,t.childNodes[0]),window.nextLoading=!0},done:(t=0)=>{e.nextTick(()=>{setTimeout(()=>{var r;window.nextLoading=!1;const n=document.querySelector(".loading-next");(r=n==null?void 0:n.parentNode)==null||r.removeChild(n)},t)})}},Ru=[{path:"/",name:"/",component:()=>Promise.resolve().then(()=>require("./index-B3Ul2p_O.js")),redirect:"/home",meta:{isKeepAlive:!0},children:[]}],X6=[{path:"/:path(.*)*",name:"notFound",component:()=>Promise.resolve().then(()=>require("./404-CY5BS-ll.js")),meta:{title:"找不到此页面",isHide:!0}},{path:"/401",name:"noPower",component:()=>Promise.resolve().then(()=>require("./401-8v3xwMkU.js")),meta:{title:"没有权限",isHide:!0}}],EVe=[{path:"/login",name:"login",component:()=>Promise.resolve().then(()=>require("./index-CWHUCxR0.js")),meta:{title:"登录"}}];/*!
156
156
  * vue-router v4.3.0
157
157
  * (c) 2024 Eduardo San Martin Morote
158
158
  * @license MIT
@@ -177,7 +177,7 @@ Use slot props instead:
177
177
  ${JSON.stringify(ie,null,2)}
178
178
  when navigating to "${J.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return wr({query:J.query,hash:J.hash,params:ie.path!=null?{}:J.params},ie)}}function S(J,q){const oe=c=C(J),ie=s.value,ke=J.state,De=J.force,he=J.replace===!0,be=k(oe);if(be)return S(wr(w(be),{state:typeof be=="object"?wr({},ke,be.state):ke,force:De,replace:he}),q||oe);const Fe=oe;Fe.redirectedFrom=q;let et;return!De&&z5(o,ie,oe)&&(et=Pf(16,{to:Fe,from:ie}),G(ie,ie,!0,!1)),(et?Promise.resolve(et):D(Fe,ie)).catch(He=>vs(He)?vs(He,2)?He:U(He):W(He,Fe,ie)).then(He=>{if(He){if(vs(He,2))return process.env.NODE_ENV!=="production"&&z5(o,C(He.to),Fe)&&q&&(q._count=q._count?q._count+1:1)>30?(lr(`Detected a possibly infinite redirection in a navigation guard when going from "${ie.fullPath}" to "${Fe.fullPath}". Aborting to avoid a Stack Overflow.
179
179
  Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):S(wr({replace:he},w(He.to),{state:typeof He.to=="object"?wr({},ke,He.to.state):ke,force:De}),q||Fe)}else He=A(Fe,ie,!0,he,ke);return N(Fe,ie,He),He})}function B(J,q){const oe=b(J,q);return oe?Promise.reject(oe):Promise.resolve()}function $(J){const q=Q.values().next().value;return q&&typeof q.runWithContext=="function"?q.runWithContext(J):J()}function D(J,q){let oe;const[ie,ke,De]=j$e(J,q);oe=jy(ie.reverse(),"beforeRouteLeave",J,q);for(const be of ie)be.leaveGuards.forEach(Fe=>{oe.push(cu(Fe,J,q))});const he=B.bind(null,J,q);return oe.push(he),te(oe).then(()=>{oe=[];for(const be of l.list())oe.push(cu(be,J,q));return oe.push(he),te(oe)}).then(()=>{oe=jy(ke,"beforeRouteUpdate",J,q);for(const be of ke)be.updateGuards.forEach(Fe=>{oe.push(cu(Fe,J,q))});return oe.push(he),te(oe)}).then(()=>{oe=[];for(const be of De)if(be.beforeEnter)if(sl(be.beforeEnter))for(const Fe of be.beforeEnter)oe.push(cu(Fe,J,q));else oe.push(cu(be.beforeEnter,J,q));return oe.push(he),te(oe)}).then(()=>(J.matched.forEach(be=>be.enterCallbacks={}),oe=jy(De,"beforeRouteEnter",J,q,$),oe.push(he),te(oe))).then(()=>{oe=[];for(const be of i.list())oe.push(cu(be,J,q));return oe.push(he),te(oe)}).catch(be=>vs(be,8)?be:Promise.reject(be))}function N(J,q,oe){u.list().forEach(ie=>$(()=>ie(J,q,oe)))}function A(J,q,oe,ie,ke){const De=b(J,q);if(De)return De;const he=q===Qs,be=bs?history.state:{};oe&&(ie||he?a.replace(J.fullPath,wr({scroll:he&&be&&be.scroll},ke)):a.push(J.fullPath,ke)),s.value=J,G(J,q,oe,he),U()}let F;function z(){F||(F=a.listen((J,q,oe)=>{const ie=C(J),ke=k(ie);if(ke){S(wr(ke,{replace:!0}),ie).catch(bv);return}c=ie;const De=s.value;bs&&YVe(H5(De.fullPath,oe.delta),Z2()),D(ie,De).catch(he=>vs(he,12)?he:vs(he,2)?(S(he.to,ie).then(be=>{vs(be,20)&&!oe.delta&&oe.type===m0.pop&&a.go(-1,!1)}).catch(bv),Promise.reject()):(oe.delta&&a.go(-oe.delta,!1),W(he,ie,De))).then(he=>{he=he||A(ie,De,!1),he&&(oe.delta&&!vs(he,8)?a.go(-oe.delta,!1):oe.type===m0.pop&&vs(he,20)&&a.go(-1,!1)),N(ie,De,he)}).catch(bv)}))}let P=Rp(),L=Rp(),R;function W(J,q,oe){U(J);const ie=L.list();return ie.length?ie.forEach(ke=>ke(J,q,oe)):(process.env.NODE_ENV!=="production"&&lr("uncaught error during route navigation:"),console.error(J)),Promise.reject(J)}function I(){return R&&s.value!==Qs?Promise.resolve():new Promise((J,q)=>{P.add([J,q])})}function U(J){return R||(R=!J,z(),P.list().forEach(([q,oe])=>J?oe(J):q()),P.reset()),J}function G(J,q,oe,ie){const{scrollBehavior:ke}=t;if(!bs||!ke)return Promise.resolve();const De=!oe&&XVe(H5(J.fullPath,0))||(ie||!oe)&&history.state&&history.state.scroll||null;return e.nextTick().then(()=>ke(J,q,De)).then(he=>he&&GVe(he)).catch(he=>W(he,J,q))}const K=J=>a.go(J);let Y;const Q=new Set,Ce={currentRoute:s,listening:!0,addRoute:m,removeRoute:v,hasRoute:y,getRoutes:g,resolve:C,options:t,push:x,replace:E,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:l.add,beforeResolve:i.add,afterEach:u.add,onError:L.add,isReady:I,install(J){const q=this;J.component("RouterLink",N$e),J.component("RouterView",$$e),J.config.globalProperties.$router=q,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>e.unref(s)}),bs&&!Y&&s.value===Qs&&(Y=!0,x(a.location).catch(ke=>{process.env.NODE_ENV!=="production"&&lr("Unexpected error when starting the router:",ke)}));const oe={};for(const ke in Qs)Object.defineProperty(oe,ke,{get:()=>s.value[ke],enumerable:!0});J.provide(J2,q),J.provide(J6,e.shallowReactive(oe)),J.provide(mC,s);const ie=J.unmount;Q.add(J),J.unmount=function(){Q.delete(J),Q.size<1&&(c=Qs,F&&F(),F=null,s.value=Qs,Y=!1,R=!1),ie()},process.env.NODE_ENV!=="production"&&bs&&M$e(J,q,n)}};function te(J){return J.reduce((q,oe)=>q.then(()=>$(oe)),Promise.resolve())}return Ce}function j$e(t,n){const r=[],o=[],a=[],l=Math.max(n.matched.length,t.matched.length);for(let i=0;i<l;i++){const u=n.matched[i];u&&(t.matched.find(c=>Tu(c,u))?o.push(u):r.push(u));const s=t.matched[i];s&&(n.matched.find(c=>Tu(c,s))||a.push(s))}return[r,o,a]}function q$e(){return e.inject(J2)}function U$e(){return e.inject(J6)}var LA={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
180
- * @license MIT */(function(t,n){(function(r,o){t.exports=o()})(an,function(){var r={};r.version="0.2.0";var o=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};r.configure=function(v){var g,y;for(g in v)y=v[g],y!==void 0&&v.hasOwnProperty(g)&&(o[g]=y);return this},r.status=null,r.set=function(v){var g=r.isStarted();v=a(v,o.minimum,1),r.status=v===1?null:v;var y=r.render(!g),C=y.querySelector(o.barSelector),w=o.speed,b=o.easing;return y.offsetWidth,u(function(x){o.positionUsing===""&&(o.positionUsing=r.getPositioningCSS()),s(C,i(v,w,b)),v===1?(s(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){s(y,{transition:"all "+w+"ms linear",opacity:0}),setTimeout(function(){r.remove(),x()},w)},w)):setTimeout(x,w)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var v=function(){setTimeout(function(){r.status&&(r.trickle(),v())},o.trickleSpeed)};return o.trickle&&v(),this},r.done=function(v){return!v&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(v){var g=r.status;return g?(typeof v!="number"&&(v=(1-g)*a(Math.random()*g,.1,.95)),g=a(g+v,0,.994),r.set(g)):r.start()},r.trickle=function(){return r.inc(Math.random()*o.trickleRate)},function(){var v=0,g=0;r.promise=function(y){return!y||y.state()==="resolved"?this:(g===0&&r.start(),v++,g++,y.always(function(){g--,g===0?(v=0,r.done()):r.set((v-g)/v)}),this)}}(),r.render=function(v){if(r.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var g=document.createElement("div");g.id="nprogress",g.innerHTML=o.template;var y=g.querySelector(o.barSelector),C=v?"-100":l(r.status||0),w=document.querySelector(o.parent),b;return s(y,{transition:"all 0 linear",transform:"translate3d("+C+"%,0,0)"}),o.showSpinner||(b=g.querySelector(o.spinnerSelector),b&&m(b)),w!=document.body&&d(w,"nprogress-custom-parent"),w.appendChild(g),g},r.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(o.parent),"nprogress-custom-parent");var v=document.getElementById("nprogress");v&&m(v)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var v=document.body.style,g="WebkitTransform"in v?"Webkit":"MozTransform"in v?"Moz":"msTransform"in v?"ms":"OTransform"in v?"O":"";return g+"Perspective"in v?"translate3d":g+"Transform"in v?"translate":"margin"};function a(v,g,y){return v<g?g:v>y?y:v}function l(v){return(-1+v)*100}function i(v,g,y){var C;return o.positionUsing==="translate3d"?C={transform:"translate3d("+l(v)+"%,0,0)"}:o.positionUsing==="translate"?C={transform:"translate("+l(v)+"%,0)"}:C={"margin-left":l(v)+"%"},C.transition="all "+g+"ms "+y,C}var u=function(){var v=[];function g(){var y=v.shift();y&&y(g)}return function(y){v.push(y),v.length==1&&g()}}(),s=function(){var v=["Webkit","O","Moz","ms"],g={};function y(x){return x.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(E,k){return k.toUpperCase()})}function C(x){var E=document.body.style;if(x in E)return x;for(var k=v.length,S=x.charAt(0).toUpperCase()+x.slice(1),B;k--;)if(B=v[k]+S,B in E)return B;return x}function w(x){return x=y(x),g[x]||(g[x]=C(x))}function b(x,E,k){E=w(E),x.style[E]=k}return function(x,E){var k=arguments,S,B;if(k.length==2)for(S in E)B=E[S],B!==void 0&&E.hasOwnProperty(S)&&b(x,S,B);else b(x,k[1],k[2])}}();function c(v,g){var y=typeof v=="string"?v:p(v);return y.indexOf(" "+g+" ")>=0}function d(v,g){var y=p(v),C=y+g;c(y,g)||(v.className=C.substring(1))}function f(v,g){var y=p(v),C;c(v,g)&&(C=y.replace(" "+g+" "," "),v.className=C.substring(1,C.length-1))}function p(v){return(" "+(v.className||"")+" ").replace(/\s+/gi," ")}function m(v){v&&v.parentNode&&v.parentNode.removeChild(v)}return r})})(LA);var K$e=LA.exports;const jd=Jo(K$e),HA=Qf("keepALiveNames",{state:()=>({keepAliveNames:[],cachedViews:[]}),actions:{async setCacheKeepAlive(t){this.keepAliveNames=t},async addCachedView(t){var n;t.meta.isKeepAlive&&((n=this.cachedViews)==null||n.push(t.name))},async delCachedView(t){const n=this.cachedViews.indexOf(t.name);n>-1&&this.cachedViews.splice(n,1)},async delOthersCachedViews(t){t.meta.isKeepAlive?this.cachedViews=[t.name]:this.cachedViews=[]},async delAllCachedViews(){this.cachedViews=[]}}}),Q2=Qf("routesList",{state:()=>({routesList:[],isColumnsMenuHover:!1,isColumnsNavHover:!1}),actions:{async setRoutesList(t){this.routesList=t},async setColumnsMenuHover(t){this.isColumnsMenuHover=t},async setColumnsNavHover(t){this.isColumnsNavHover=t}}}),e1=Qf("themeConfig",{state:()=>({themeConfig:{isDrawer:!1,primary:"#409eff",isIsDark:!1,topBar:"#ffffff",topBarColor:"#606266",isTopBarColorGradual:!1,menuBar:"#545c64",menuBarColor:"#eaeaea",menuBarActiveColor:"rgba(0, 0, 0, 0.2)",isMenuBarColorGradual:!1,columnsMenuBar:"#545c64",columnsMenuBarColor:"#e6e6e6",isColumnsMenuBarColorGradual:!1,isColumnsMenuHoverPreload:!1,isCollapse:!1,isUniqueOpened:!0,isFixedHeader:!0,isFixedHeaderChange:!1,isClassicSplitMenu:!1,isLockScreen:!1,lockScreenTime:30,isShowLogo:!0,isShowLogoChange:!1,isBreadcrumb:!0,isTagsview:!0,isBreadcrumbIcon:!1,isTagsviewIcon:!1,isCacheTagsView:!1,isSortableTagsView:!0,isShareTagsView:!1,isFooter:!1,isWartermark:!1,wartermarkText:"",tagsStyle:"tags-style-five",animation:"slide-right",columnsAsideStyle:"columns-round",columnsAsideLayout:"columns-vertical",layout:"defaults",isRequestRoutes:!0,globalTitle:"华速前端框架",globalViceTitle:"vue3 + typescript5 + vite5 的框架",globalViceTitleMsg:"hs-admin",globalI18n:"zh-cn",globalComponentSize:"large"}}),actions:{setThemeConfig(t){this.themeConfig=t.themeConfig}}}),Q6=Qf("tagsViewRoutes",{state:()=>({tagsViewRoutes:[],isTagsViewCurrenFull:!1}),actions:{async setTagsViewRoutes(t){this.tagsViewRoutes=t},setCurrenFullscreen(t){wo.set("isTagsViewCurrenFull",t),this.isTagsViewCurrenFull=t}}});function G$e(t,n){return n.meta&&n.meta.roles?t.some(r=>n.meta.roles.includes(r)):!0}function ex(t,n){const r=[];return t.forEach(o=>{const a={...o};G$e(n,a)&&(a.children&&(a.children=ex(a.children,n)),r.push(a))}),r}function Y$e(t){const n=il(Fl),{userInfos:r}=Mu(n);let o=[];return t.forEach(a=>{a.meta.roles&&a.meta.roles.forEach(l=>{r.value.roles.forEach(i=>{l===i&&o.push({...a})})})}),o}function X$e(){let t=n1(t1(Ru));return t[0].children=[...Y$e(t[0].children),...X6],t}async function Z$e(){await X$e().forEach(t=>{console.debug("后端路由信息:",t),Xc.addRoute(t)})}function J$e(){const t=il(Fl),n=Q6(Fl),{userInfos:r}=Mu(t);let o=ex(Ru,r.value.roles);n.setTagsViewRoutes(n1(t1(o))[0].children)}function Q$e(){const t=il(Fl),n=Q2(Fl),{userInfos:r}=Mu(t);n.setRoutesList(ex(Ru[0].children,r.value.roles)),J$e()}async function e7e(){if(window.nextLoading===void 0&&X2.start(),!await il().isLogin())return!1;await Z$e(),Q$e()}const t7e=e1(Fl),{themeConfig:n7e}=Mu(t7e),{isRequestRoutes:r7e}=n7e.value,Xc=W$e({history:e$e("/"),routes:[...X6,...EVe]});function t1(t){if(t.length<=0)return!1;for(let n=0;n<t.length;n++)t[n].children&&(t=t.slice(0,n+1).concat(t[n].children,t.slice(n+1)));return t}function n1(t){if(t.length<=0)return!1;const n=[],r=[];return t.forEach(o=>{o.path==="/"?n.push({component:o.component,name:o.name,path:o.path,redirect:o.redirect,meta:o.meta,children:[]}):(o.path.indexOf("/:")>-1&&(o.meta.isDynamic=!0,o.meta.isDynamicPath=o.path),n[0].children.push({...o}),n[0].meta.isKeepAlive&&o.meta.isKeepAlive&&(r.push(o.name),HA(Fl).setCacheKeepAlive(r)))}),n}Xc.beforeEach(async(t,n,r)=>{jd.configure({showSpinner:!1}),t.meta.title&&jd.start();const a=await il().isLogin();if(t.path==="/login"&&!a)r(),jd.done();else if(!a)r(`/login?redirect=${t.path}&params=${JSON.stringify(t.query?t.query:t.params)}`),wo.clear(),jd.done();else if(a&&t.path==="/login")r("/home"),jd.done();else{const l=Q2(Fl),{routesList:i}=Mu(l);i.value.length===0?r7e?(await WA(),r({path:t.path,query:t.query})):(await e7e(),r({path:t.path,query:t.query})):r()}});Xc.afterEach(()=>{jd.done()});const Ms=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),o7e=(t={})=>(t=Ms(t,"新增菜单"),Gn({url:"/scmp-web/pri/menu/add_menu",method:"post",data:t})),a7e=(t={})=>(t=Ms(t,"根据id,删除菜单"),Gn({url:"/scmp-web/pri/menu/del_menu_info",method:"post",data:t})),l7e=(t={})=>(t=Ms(t,"获取所有菜单id集合"),Gn({url:"/scmp-web/pri/menu/get_all_menu_id_list",method:"get",params:t})),i7e=(t={})=>(t=Ms(t,"获取所有菜单列表"),Gn({url:"/scmp-web/pri/menu/get_all_menu_list",method:"get",params:t})),s7e=(t={})=>(t=Ms(t,"获取当前用户菜单列表(树形)"),Gn({url:"/scmp-web/pri/menu/get_menu_list",method:"get",params:t})),u7e=(t={})=>(t=Ms(t,"获取一级菜单信息"),Gn({url:"/scmp-web/pri/menu/get_menu_list_one",method:"get",params:t})),c7e=(t={})=>(t=Ms(t,"设置菜单页面配置项,按钮和字典数据"),Gn({url:"/scmp-web/pri/menu/set_menu_config",method:"post",data:t})),d7e=(t={})=>(t=Ms(t,"更新菜单"),Gn({url:"/scmp-web/pri/menu/update_menu",method:"post",data:t})),f7e=(t={})=>(t=Ms(t,"根据菜单id,互换两个菜单的排序"),Gn({url:"/scmp-web/pri/menu/update_menu_sort",method:"post",data:t}));function tx(){return{postAddMenu:o7e,postDelMenuInfo:a7e,getAllMenuIdList:l7e,getAllMenuList:i7e,getMenuList:s7e,getMenuListOne:u7e,postSetMenuConfig:c7e,postUpdateMenu:d7e,postUpdateMenuSort:f7e}}const p7e=tx(),v7e=Object.assign({"../layout/routerView/iframes.vue":()=>Promise.resolve().then(()=>require("./iframes-BdtyKj34.js")),"../layout/routerView/link.vue":()=>Promise.resolve().then(()=>require("./link-Cu21H0Zk.js")),"../layout/routerView/parent.vue":()=>Promise.resolve().then(()=>require("./parent-L9MtEElE.js"))}),m7e=Object.assign({"../views/config/buttonManagement/btnIndex.vue":()=>Promise.resolve().then(()=>require("./btnIndex-BSEAn-XX.js")),"../views/config/buttonManagement/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-BHz2plDJ.js")),"../views/config/buttonManagement/index.vue":()=>Promise.resolve().then(()=>require("./index-iJc7yYHy.js")),"../views/config/dataAuth/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-iMMoigMJ.js")),"../views/config/dataAuth/index.vue":()=>Promise.resolve().then(()=>require("./index-BGBnM0LF.js")),"../views/config/dataDict/components/dict/dictDialog.vue":()=>Promise.resolve().then(()=>require("./dictDialog-B54GV1Tn.js")),"../views/config/dataDict/components/dictItem/dictItemDialog.vue":()=>Promise.resolve().then(()=>require("./dictItemDialog-DIghccsr.js")),"../views/config/dataDict/index.vue":()=>Promise.resolve().then(()=>require("./index-Pjo9i4zI.js")),"../views/config/fieldPool/index.vue":()=>Promise.resolve().then(()=>require("./index-CzX92IZZ.js")),"../views/config/formSetting/components/hsBtn/src/hsAttrBtn.vue":()=>Promise.resolve().then(()=>require("./hsAttrBtn-jI1Rj-yU.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnConfigList.vue":()=>Promise.resolve().then(()=>require("./hsBtnConfigList-D_-jHPHS.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnItemConfig.vue":()=>Promise.resolve().then(()=>require("./hsBtnItemConfig-O5pwSjnQ.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnPanel.vue":()=>Promise.resolve().then(()=>require("./hsBtnPanel-BYkiqMtZ.js")),"../views/config/formSetting/components/hsExpand/src/hsExpand.vue":()=>Promise.resolve().then(()=>require("./hsExpand-B9Miz2Yx.js")),"../views/config/formSetting/components/hsForm/src/contextmenu.vue":()=>Promise.resolve().then(()=>require("./contextmenu-CtiNnSma.js")),"../views/config/formSetting/components/hsForm/src/hsAttrForm.vue":()=>Promise.resolve().then(()=>require("./hsAttrForm-BkwXQygQ.js")),"../views/config/formSetting/components/hsForm/src/hsFormConfig.vue":()=>Promise.resolve().then(()=>require("./hsFormConfig-Qs8qdrpf.js")),"../views/config/formSetting/components/hsForm/src/hsFormConfigList.vue":()=>Promise.resolve().then(()=>require("./hsFormConfigList-CTDRHvRG.js")),"../views/config/formSetting/components/hsForm/src/hsFormPanel.vue":()=>Promise.resolve().then(()=>require("./hsFormPanel-BKruMsIq.js")),"../views/config/formSetting/components/hsForm/src/hsFormParse.vue":()=>Promise.resolve().then(()=>require("./hsFormParse-CdDz2xFT.js")),"../views/config/formSetting/components/hsPageTree/src/hsPageTree.vue":()=>Promise.resolve().then(()=>require("./hsPageTree-B0uQ10J2.js")),"../views/config/formSetting/components/hsSaveForm/src/saveForm.vue":()=>Promise.resolve().then(()=>require("./saveForm-BKv0Rjgy.js")),"../views/config/formSetting/components/selectConfig/selectConfig.vue":()=>Promise.resolve().then(()=>require("./selectConfig-BUlzs8zt.js")),"../views/config/formSetting/formConfig.vue":()=>Promise.resolve().then(()=>require("./formConfig-93-o4zIm.js")),"../views/config/formSetting/index.vue":()=>Promise.resolve().then(()=>require("./index-CuUcM5oq.js")),"../views/config/index.vue":()=>Promise.resolve().then(()=>require("./index-Cs0wabY1.js")),"../views/config/pageElement/components/hsPanelItem/hsPanelItem.vue":()=>Promise.resolve().then(()=>require("./hsPanelItem-BLgfpogX.js")),"../views/config/pageElement/index.vue":()=>Promise.resolve().then(()=>require("./index-Umzfpqpt.js")),"../views/config/parseAPI/index.vue":()=>Promise.resolve().then(()=>require("./index-CxU-otOY.js")),"../views/config/table/index.vue":()=>Promise.resolve().then(()=>require("./index-Cscdv0YS.js")),"../views/error/401.vue":()=>Promise.resolve().then(()=>require("./401-BP0p6zjH.js")),"../views/error/404.vue":()=>Promise.resolve().then(()=>require("./404-CxvLuluW.js")),"../views/home/index.vue":()=>Promise.resolve().then(()=>require("./index-ClpDlX0A.js")),"../views/login/component/account.vue":()=>Promise.resolve().then(()=>require("./account-B30Wc_l8.js")),"../views/login/component/mobile.vue":()=>Promise.resolve().then(()=>require("./mobile-BNkQ1hDC.js")),"../views/login/component/scan.vue":()=>Promise.resolve().then(()=>require("./scan-9-PQhqzo.js")),"../views/login/index.vue":()=>Promise.resolve().then(()=>require("./index-COEb0n0G.js")),"../views/system/auth/index.vue":()=>Promise.resolve().then(()=>require("./index-XHYn-1iF.js")),"../views/system/dept/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-DeuceWcM.js")),"../views/system/dept/index.vue":()=>Promise.resolve().then(()=>require("./index-DBhNMwIz.js")),"../views/system/dic/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-Cqb6ay6R.js")),"../views/system/dic/index.vue":()=>Promise.resolve().then(()=>require("./index-DxrXGj22.js")),"../views/system/menu/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-DLAIEzj_.js")),"../views/system/menu/index.vue":()=>Promise.resolve().then(()=>require("./index-DwmmAOJG.js")),"../views/system/role/component/roleItem.vue":()=>Promise.resolve().then(()=>require("./roleItem-CH5ThExb.js")),"../views/system/role/component/userSelect.vue":()=>Promise.resolve().then(()=>require("./userSelect-bcJPXx6A.js")),"../views/system/role/index.vue":()=>Promise.resolve().then(()=>require("./index-Cq6662_e.js")),"../views/system/user/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-BmCwSZ2C.js")),"../views/system/user/index.vue":()=>Promise.resolve().then(()=>require("./index-DXltb2BD.js")),"../views/test/form/index.vue":()=>Promise.resolve().then(()=>require("./index-CmDAjabU.js")),"../views/test/table/index.vue":()=>Promise.resolve().then(()=>require("./index-COtPYUO9.js"))}),h7e=Object.assign({},{...v7e},{...m7e});async function WA(){if(window.nextLoading===void 0&&X2.start(),!await il().isLogin())return!1;const r=await UA();if(r.data.length<=0)return Promise.resolve(!0);wA().setRequestOldRoutes(JSON.parse(JSON.stringify(r.data))),Ru[0].children=await nx(r.data),await qA(),jA()}async function jA(){Q2(Fl).setRoutesList(Ru[0].children),g7e()}function g7e(){Q6(Fl).setTagsViewRoutes(n1(t1(Ru))[0].children)}function b7e(){let t=n1(t1(Ru));return t[0].children=[...t[0].children,...X6],t}async function qA(){await b7e().forEach(t=>{Xc.addRoute(t)})}async function UA(){let t=await p7e.getMenuList();return console.debug("menu:",t),t}async function y7e(){const t=await UA();if(t.data.length<=0)return Promise.resolve(!0);wA().setRequestOldRoutes(JSON.parse(JSON.stringify(t.data))),Ru[0].children=await nx(t.data),await qA(),jA()}function nx(t){if(t)return t.map(n=>(n.component&&(n.component=_7e(h7e,n.component)),n.children&&nx(n.children),n))}function _7e(t,n){const o=Object.keys(t).filter(a=>{const l=a.replace(/..\/views|../,"");return l.startsWith(`${n}`)||l.startsWith(`/${n}`)});if((o==null?void 0:o.length)===1){const a=o[0];return t[a]}if((o==null?void 0:o.length)>1)return!1}const nB=ni.value||"hs-admin-ui:sid",il=Qf("userInfo",{state:()=>({userInfos:{userName:"",photo:"",time:0,roles:[],authBtnList:[]}}),actions:{async isLogin(){const t=await Di.get("userInfo");return this.userInfos=t,!!(t!=null&&t.id)},async setUserInfo(t){this.userInfos=t,await Di.set("userInfo",t),Zd.set(nB,t.sid,{expires:new Date(+new Date+86400*1e3)}),await WA()},async logout(){await this.clear(),window.location.reload()},async clear(){this.userInfos={userName:"",photo:"",time:0,roles:[],authBtnList:[]},Zd.remove(nB),wo.clear(),await Di.clear()}}});function C7e(t){return il().userInfos.authBtnList.some(r=>r===t)}function x7e(t){let n=!1;return il().userInfos.authBtnList.map(o=>{t.map(a=>{o===a&&(n=!0)})}),n}function w7e(t){const n=il();return q6(t,n.userInfos.authBtnList)}var KA={exports:{}};/*!
180
+ * @license MIT */(function(t,n){(function(r,o){t.exports=o()})(an,function(){var r={};r.version="0.2.0";var o=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};r.configure=function(v){var g,y;for(g in v)y=v[g],y!==void 0&&v.hasOwnProperty(g)&&(o[g]=y);return this},r.status=null,r.set=function(v){var g=r.isStarted();v=a(v,o.minimum,1),r.status=v===1?null:v;var y=r.render(!g),C=y.querySelector(o.barSelector),w=o.speed,b=o.easing;return y.offsetWidth,u(function(x){o.positionUsing===""&&(o.positionUsing=r.getPositioningCSS()),s(C,i(v,w,b)),v===1?(s(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){s(y,{transition:"all "+w+"ms linear",opacity:0}),setTimeout(function(){r.remove(),x()},w)},w)):setTimeout(x,w)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var v=function(){setTimeout(function(){r.status&&(r.trickle(),v())},o.trickleSpeed)};return o.trickle&&v(),this},r.done=function(v){return!v&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(v){var g=r.status;return g?(typeof v!="number"&&(v=(1-g)*a(Math.random()*g,.1,.95)),g=a(g+v,0,.994),r.set(g)):r.start()},r.trickle=function(){return r.inc(Math.random()*o.trickleRate)},function(){var v=0,g=0;r.promise=function(y){return!y||y.state()==="resolved"?this:(g===0&&r.start(),v++,g++,y.always(function(){g--,g===0?(v=0,r.done()):r.set((v-g)/v)}),this)}}(),r.render=function(v){if(r.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var g=document.createElement("div");g.id="nprogress",g.innerHTML=o.template;var y=g.querySelector(o.barSelector),C=v?"-100":l(r.status||0),w=document.querySelector(o.parent),b;return s(y,{transition:"all 0 linear",transform:"translate3d("+C+"%,0,0)"}),o.showSpinner||(b=g.querySelector(o.spinnerSelector),b&&m(b)),w!=document.body&&d(w,"nprogress-custom-parent"),w.appendChild(g),g},r.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(o.parent),"nprogress-custom-parent");var v=document.getElementById("nprogress");v&&m(v)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var v=document.body.style,g="WebkitTransform"in v?"Webkit":"MozTransform"in v?"Moz":"msTransform"in v?"ms":"OTransform"in v?"O":"";return g+"Perspective"in v?"translate3d":g+"Transform"in v?"translate":"margin"};function a(v,g,y){return v<g?g:v>y?y:v}function l(v){return(-1+v)*100}function i(v,g,y){var C;return o.positionUsing==="translate3d"?C={transform:"translate3d("+l(v)+"%,0,0)"}:o.positionUsing==="translate"?C={transform:"translate("+l(v)+"%,0)"}:C={"margin-left":l(v)+"%"},C.transition="all "+g+"ms "+y,C}var u=function(){var v=[];function g(){var y=v.shift();y&&y(g)}return function(y){v.push(y),v.length==1&&g()}}(),s=function(){var v=["Webkit","O","Moz","ms"],g={};function y(x){return x.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(E,k){return k.toUpperCase()})}function C(x){var E=document.body.style;if(x in E)return x;for(var k=v.length,S=x.charAt(0).toUpperCase()+x.slice(1),B;k--;)if(B=v[k]+S,B in E)return B;return x}function w(x){return x=y(x),g[x]||(g[x]=C(x))}function b(x,E,k){E=w(E),x.style[E]=k}return function(x,E){var k=arguments,S,B;if(k.length==2)for(S in E)B=E[S],B!==void 0&&E.hasOwnProperty(S)&&b(x,S,B);else b(x,k[1],k[2])}}();function c(v,g){var y=typeof v=="string"?v:p(v);return y.indexOf(" "+g+" ")>=0}function d(v,g){var y=p(v),C=y+g;c(y,g)||(v.className=C.substring(1))}function f(v,g){var y=p(v),C;c(v,g)&&(C=y.replace(" "+g+" "," "),v.className=C.substring(1,C.length-1))}function p(v){return(" "+(v.className||"")+" ").replace(/\s+/gi," ")}function m(v){v&&v.parentNode&&v.parentNode.removeChild(v)}return r})})(LA);var K$e=LA.exports;const jd=Jo(K$e),HA=Qf("keepALiveNames",{state:()=>({keepAliveNames:[],cachedViews:[]}),actions:{async setCacheKeepAlive(t){this.keepAliveNames=t},async addCachedView(t){var n;t.meta.isKeepAlive&&((n=this.cachedViews)==null||n.push(t.name))},async delCachedView(t){const n=this.cachedViews.indexOf(t.name);n>-1&&this.cachedViews.splice(n,1)},async delOthersCachedViews(t){t.meta.isKeepAlive?this.cachedViews=[t.name]:this.cachedViews=[]},async delAllCachedViews(){this.cachedViews=[]}}}),Q2=Qf("routesList",{state:()=>({routesList:[],isColumnsMenuHover:!1,isColumnsNavHover:!1}),actions:{async setRoutesList(t){this.routesList=t},async setColumnsMenuHover(t){this.isColumnsMenuHover=t},async setColumnsNavHover(t){this.isColumnsNavHover=t}}}),e1=Qf("themeConfig",{state:()=>({themeConfig:{isDrawer:!1,primary:"#409eff",isIsDark:!1,topBar:"#ffffff",topBarColor:"#606266",isTopBarColorGradual:!1,menuBar:"#545c64",menuBarColor:"#eaeaea",menuBarActiveColor:"rgba(0, 0, 0, 0.2)",isMenuBarColorGradual:!1,columnsMenuBar:"#545c64",columnsMenuBarColor:"#e6e6e6",isColumnsMenuBarColorGradual:!1,isColumnsMenuHoverPreload:!1,isCollapse:!1,isUniqueOpened:!0,isFixedHeader:!0,isFixedHeaderChange:!1,isClassicSplitMenu:!1,isLockScreen:!1,lockScreenTime:30,isShowLogo:!0,isShowLogoChange:!1,isBreadcrumb:!0,isTagsview:!0,isBreadcrumbIcon:!1,isTagsviewIcon:!1,isCacheTagsView:!1,isSortableTagsView:!0,isShareTagsView:!1,isFooter:!1,isWartermark:!1,wartermarkText:"",tagsStyle:"tags-style-five",animation:"slide-right",columnsAsideStyle:"columns-round",columnsAsideLayout:"columns-vertical",layout:"defaults",isRequestRoutes:!0,globalTitle:"华速前端框架",globalViceTitle:"vue3 + typescript5 + vite5 的框架",globalViceTitleMsg:"hs-admin",globalI18n:"zh-cn",globalComponentSize:"large"}}),actions:{setThemeConfig(t){this.themeConfig=t.themeConfig}}}),Q6=Qf("tagsViewRoutes",{state:()=>({tagsViewRoutes:[],isTagsViewCurrenFull:!1}),actions:{async setTagsViewRoutes(t){this.tagsViewRoutes=t},setCurrenFullscreen(t){wo.set("isTagsViewCurrenFull",t),this.isTagsViewCurrenFull=t}}});function G$e(t,n){return n.meta&&n.meta.roles?t.some(r=>n.meta.roles.includes(r)):!0}function ex(t,n){const r=[];return t.forEach(o=>{const a={...o};G$e(n,a)&&(a.children&&(a.children=ex(a.children,n)),r.push(a))}),r}function Y$e(t){const n=il(Fl),{userInfos:r}=Mu(n);let o=[];return t.forEach(a=>{a.meta.roles&&a.meta.roles.forEach(l=>{r.value.roles.forEach(i=>{l===i&&o.push({...a})})})}),o}function X$e(){let t=n1(t1(Ru));return t[0].children=[...Y$e(t[0].children),...X6],t}async function Z$e(){await X$e().forEach(t=>{console.debug("后端路由信息:",t),Xc.addRoute(t)})}function J$e(){const t=il(Fl),n=Q6(Fl),{userInfos:r}=Mu(t);let o=ex(Ru,r.value.roles);n.setTagsViewRoutes(n1(t1(o))[0].children)}function Q$e(){const t=il(Fl),n=Q2(Fl),{userInfos:r}=Mu(t);n.setRoutesList(ex(Ru[0].children,r.value.roles)),J$e()}async function e7e(){if(window.nextLoading===void 0&&X2.start(),!await il().isLogin())return!1;await Z$e(),Q$e()}const t7e=e1(Fl),{themeConfig:n7e}=Mu(t7e),{isRequestRoutes:r7e}=n7e.value,Xc=W$e({history:e$e("/"),routes:[...X6,...EVe]});function t1(t){if(t.length<=0)return!1;for(let n=0;n<t.length;n++)t[n].children&&(t=t.slice(0,n+1).concat(t[n].children,t.slice(n+1)));return t}function n1(t){if(t.length<=0)return!1;const n=[],r=[];return t.forEach(o=>{o.path==="/"?n.push({component:o.component,name:o.name,path:o.path,redirect:o.redirect,meta:o.meta,children:[]}):(o.path.indexOf("/:")>-1&&(o.meta.isDynamic=!0,o.meta.isDynamicPath=o.path),n[0].children.push({...o}),n[0].meta.isKeepAlive&&o.meta.isKeepAlive&&(r.push(o.name),HA(Fl).setCacheKeepAlive(r)))}),n}Xc.beforeEach(async(t,n,r)=>{jd.configure({showSpinner:!1}),t.meta.title&&jd.start();const a=await il().isLogin();if(t.path==="/login"&&!a)r(),jd.done();else if(!a)r(`/login?redirect=${t.path}&params=${JSON.stringify(t.query?t.query:t.params)}`),wo.clear(),jd.done();else if(a&&t.path==="/login")r("/home"),jd.done();else{const l=Q2(Fl),{routesList:i}=Mu(l);i.value.length===0?r7e?(await WA(),r({path:t.path,query:t.query})):(await e7e(),r({path:t.path,query:t.query})):r()}});Xc.afterEach(()=>{jd.done()});const Ms=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),o7e=(t={})=>(t=Ms(t,"新增菜单"),Gn({url:"/scmp-web/pri/menu/add_menu",method:"post",data:t})),a7e=(t={})=>(t=Ms(t,"根据id,删除菜单"),Gn({url:"/scmp-web/pri/menu/del_menu_info",method:"post",data:t})),l7e=(t={})=>(t=Ms(t,"获取所有菜单id集合"),Gn({url:"/scmp-web/pri/menu/get_all_menu_id_list",method:"get",params:t})),i7e=(t={})=>(t=Ms(t,"获取所有菜单列表"),Gn({url:"/scmp-web/pri/menu/get_all_menu_list",method:"get",params:t})),s7e=(t={})=>(t=Ms(t,"获取当前用户菜单列表(树形)"),Gn({url:"/scmp-web/pri/menu/get_menu_list",method:"get",params:t})),u7e=(t={})=>(t=Ms(t,"获取一级菜单信息"),Gn({url:"/scmp-web/pri/menu/get_menu_list_one",method:"get",params:t})),c7e=(t={})=>(t=Ms(t,"设置菜单页面配置项,按钮和字典数据"),Gn({url:"/scmp-web/pri/menu/set_menu_config",method:"post",data:t})),d7e=(t={})=>(t=Ms(t,"更新菜单"),Gn({url:"/scmp-web/pri/menu/update_menu",method:"post",data:t})),f7e=(t={})=>(t=Ms(t,"根据菜单id,互换两个菜单的排序"),Gn({url:"/scmp-web/pri/menu/update_menu_sort",method:"post",data:t}));function tx(){return{postAddMenu:o7e,postDelMenuInfo:a7e,getAllMenuIdList:l7e,getAllMenuList:i7e,getMenuList:s7e,getMenuListOne:u7e,postSetMenuConfig:c7e,postUpdateMenu:d7e,postUpdateMenuSort:f7e}}const p7e=tx(),v7e=Object.assign({"../layout/routerView/iframes.vue":()=>Promise.resolve().then(()=>require("./iframes-CETDhqEY.js")),"../layout/routerView/link.vue":()=>Promise.resolve().then(()=>require("./link-BQ4C2YhU.js")),"../layout/routerView/parent.vue":()=>Promise.resolve().then(()=>require("./parent-l1VWl8zb.js"))}),m7e=Object.assign({"../views/config/buttonManagement/btnIndex.vue":()=>Promise.resolve().then(()=>require("./btnIndex-BKDavCO7.js")),"../views/config/buttonManagement/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-v9ajBabB.js")),"../views/config/buttonManagement/index.vue":()=>Promise.resolve().then(()=>require("./index-UBinbgqu.js")),"../views/config/dataAuth/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-Cj64kqTu.js")),"../views/config/dataAuth/index.vue":()=>Promise.resolve().then(()=>require("./index-BtxVQGW4.js")),"../views/config/dataDict/components/dict/dictDialog.vue":()=>Promise.resolve().then(()=>require("./dictDialog-BsKSNKBm.js")),"../views/config/dataDict/components/dictItem/dictItemDialog.vue":()=>Promise.resolve().then(()=>require("./dictItemDialog-BjCLVN4z.js")),"../views/config/dataDict/index.vue":()=>Promise.resolve().then(()=>require("./index-BWJeSA1L.js")),"../views/config/fieldPool/index.vue":()=>Promise.resolve().then(()=>require("./index-46iEfZD4.js")),"../views/config/formSetting/components/hsBtn/src/hsAttrBtn.vue":()=>Promise.resolve().then(()=>require("./hsAttrBtn-DrJTObOx.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnConfigList.vue":()=>Promise.resolve().then(()=>require("./hsBtnConfigList-8IdJQuGm.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnItemConfig.vue":()=>Promise.resolve().then(()=>require("./hsBtnItemConfig-DGpee9f6.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnPanel.vue":()=>Promise.resolve().then(()=>require("./hsBtnPanel-Dwr4hdUX.js")),"../views/config/formSetting/components/hsExpand/src/hsExpand.vue":()=>Promise.resolve().then(()=>require("./hsExpand-B9Miz2Yx.js")),"../views/config/formSetting/components/hsForm/src/contextmenu.vue":()=>Promise.resolve().then(()=>require("./contextmenu-CXG9Vh4I.js")),"../views/config/formSetting/components/hsForm/src/hsAttrForm.vue":()=>Promise.resolve().then(()=>require("./hsAttrForm-pb4EjAiN.js")),"../views/config/formSetting/components/hsForm/src/hsFormConfig.vue":()=>Promise.resolve().then(()=>require("./hsFormConfig-DLPJ3dqX.js")),"../views/config/formSetting/components/hsForm/src/hsFormConfigList.vue":()=>Promise.resolve().then(()=>require("./hsFormConfigList-CEGEKeIW.js")),"../views/config/formSetting/components/hsForm/src/hsFormPanel.vue":()=>Promise.resolve().then(()=>require("./hsFormPanel-DIO-YyE6.js")),"../views/config/formSetting/components/hsForm/src/hsFormParse.vue":()=>Promise.resolve().then(()=>require("./hsFormParse-CtjF5Xf6.js")),"../views/config/formSetting/components/hsPageTree/src/hsPageTree.vue":()=>Promise.resolve().then(()=>require("./hsPageTree-ClRhypeO.js")),"../views/config/formSetting/components/hsSaveForm/src/saveForm.vue":()=>Promise.resolve().then(()=>require("./saveForm-BERs8ZMT.js")),"../views/config/formSetting/components/selectConfig/selectConfig.vue":()=>Promise.resolve().then(()=>require("./selectConfig-BfUs6SvU.js")),"../views/config/formSetting/formConfig.vue":()=>Promise.resolve().then(()=>require("./formConfig-CAsthwXB.js")),"../views/config/formSetting/index.vue":()=>Promise.resolve().then(()=>require("./index-1Xd8Vwe2.js")),"../views/config/index.vue":()=>Promise.resolve().then(()=>require("./index-DE-h59Vh.js")),"../views/config/pageElement/components/hsPanelItem/hsPanelItem.vue":()=>Promise.resolve().then(()=>require("./hsPanelItem-BP6qP0UJ.js")),"../views/config/pageElement/index.vue":()=>Promise.resolve().then(()=>require("./index-BQPVrWqO.js")),"../views/config/parseAPI/index.vue":()=>Promise.resolve().then(()=>require("./index-Dtl0wnup.js")),"../views/config/table/index.vue":()=>Promise.resolve().then(()=>require("./index-CRjreBoS.js")),"../views/error/401.vue":()=>Promise.resolve().then(()=>require("./401-8v3xwMkU.js")),"../views/error/404.vue":()=>Promise.resolve().then(()=>require("./404-CY5BS-ll.js")),"../views/home/index.vue":()=>Promise.resolve().then(()=>require("./index-DMuPC8KD.js")),"../views/login/component/account.vue":()=>Promise.resolve().then(()=>require("./account-D11qvgaF.js")),"../views/login/component/mobile.vue":()=>Promise.resolve().then(()=>require("./mobile-BzYzUzHc.js")),"../views/login/component/scan.vue":()=>Promise.resolve().then(()=>require("./scan-Db7psX_f.js")),"../views/login/index.vue":()=>Promise.resolve().then(()=>require("./index-CWHUCxR0.js")),"../views/system/auth/index.vue":()=>Promise.resolve().then(()=>require("./index-BOUaVgRN.js")),"../views/system/dept/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-DeuceWcM.js")),"../views/system/dept/index.vue":()=>Promise.resolve().then(()=>require("./index-D-62brOi.js")),"../views/system/dic/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-Cqb6ay6R.js")),"../views/system/dic/index.vue":()=>Promise.resolve().then(()=>require("./index-CHxPqXec.js")),"../views/system/menu/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-iQaMsVsr.js")),"../views/system/menu/index.vue":()=>Promise.resolve().then(()=>require("./index-D-_DUEwS.js")),"../views/system/role/component/roleItem.vue":()=>Promise.resolve().then(()=>require("./roleItem-BpXr0DLg.js")),"../views/system/role/component/userSelect.vue":()=>Promise.resolve().then(()=>require("./userSelect-AhdKoHzX.js")),"../views/system/role/index.vue":()=>Promise.resolve().then(()=>require("./index-Cvrs4CGl.js")),"../views/system/user/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-BmCwSZ2C.js")),"../views/system/user/index.vue":()=>Promise.resolve().then(()=>require("./index-BT6GcEbS.js")),"../views/test/form/index.vue":()=>Promise.resolve().then(()=>require("./index-DLFcMCC4.js")),"../views/test/table/index.vue":()=>Promise.resolve().then(()=>require("./index-CZbZPfI4.js"))}),h7e=Object.assign({},{...v7e},{...m7e});async function WA(){if(window.nextLoading===void 0&&X2.start(),!await il().isLogin())return!1;const r=await UA();if(r.data.length<=0)return Promise.resolve(!0);wA().setRequestOldRoutes(JSON.parse(JSON.stringify(r.data))),Ru[0].children=await nx(r.data),await qA(),jA()}async function jA(){Q2(Fl).setRoutesList(Ru[0].children),g7e()}function g7e(){Q6(Fl).setTagsViewRoutes(n1(t1(Ru))[0].children)}function b7e(){let t=n1(t1(Ru));return t[0].children=[...t[0].children,...X6],t}async function qA(){await b7e().forEach(t=>{Xc.addRoute(t)})}async function UA(){let t=await p7e.getMenuList();return console.debug("menu:",t),t}async function y7e(){const t=await UA();if(t.data.length<=0)return Promise.resolve(!0);wA().setRequestOldRoutes(JSON.parse(JSON.stringify(t.data))),Ru[0].children=await nx(t.data),await qA(),jA()}function nx(t){if(t)return t.map(n=>(n.component&&(n.component=_7e(h7e,n.component)),n.children&&nx(n.children),n))}function _7e(t,n){const o=Object.keys(t).filter(a=>{const l=a.replace(/..\/views|../,"");return l.startsWith(`${n}`)||l.startsWith(`/${n}`)});if((o==null?void 0:o.length)===1){const a=o[0];return t[a]}if((o==null?void 0:o.length)>1)return!1}const nB=ni.value||"hs-admin-ui:sid",il=Qf("userInfo",{state:()=>({userInfos:{userName:"",photo:"",time:0,roles:[],authBtnList:[]}}),actions:{async isLogin(){const t=await Di.get("userInfo");return this.userInfos=t,!!(t!=null&&t.id)},async setUserInfo(t){this.userInfos=t,await Di.set("userInfo",t),Zd.set(nB,t.sid,{expires:new Date(+new Date+86400*1e3)}),await WA()},async logout(){await this.clear(),window.location.reload()},async clear(){this.userInfos={userName:"",photo:"",time:0,roles:[],authBtnList:[]},Zd.remove(nB),wo.clear(),await Di.clear()}}});function C7e(t){return il().userInfos.authBtnList.some(r=>r===t)}function x7e(t){let n=!1;return il().userInfos.authBtnList.map(o=>{t.map(a=>{o===a&&(n=!0)})}),n}function w7e(t){const n=il();return q6(t,n.userInfos.authBtnList)}var KA={exports:{}};/*!
181
181
  * clipboard.js v2.0.11
182
182
  * https://clipboardjs.com/
183
183
  *
@@ -194,4 +194,4 @@ ${JSON.stringify(ie,null,2)}
194
194
  * @author RubaXa <trash@rubaxa.org>
195
195
  * @author owenm <owen23355@gmail.com>
196
196
  * @license MIT
197
- */function xN(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,o)}return r}function Fi(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?xN(Object(r),!0).forEach(function(o){yJe(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xN(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function vg(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vg=function(n){return typeof n}:vg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vg(t)}function yJe(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function Ns(){return Ns=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ns.apply(this,arguments)}function _Je(t,n){if(t==null)return{};var r={},o=Object.keys(t),a,l;for(l=0;l<o.length;l++)a=o[l],!(n.indexOf(a)>=0)&&(r[a]=t[a]);return r}function CJe(t,n){if(t==null)return{};var r=_Je(t,n),o,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a<l.length;a++)o=l[a],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(r[o]=t[o])}return r}var xJe="1.15.1";function Es(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Ls=Es(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),J0=Es(/Edge/i),wN=Es(/firefox/i),Fv=Es(/safari/i)&&!Es(/chrome/i)&&!Es(/android/i),sP=Es(/iP(ad|od|hone)/i),uP=Es(/chrome/i)&&Es(/android/i),cP={capture:!1,passive:!1};function xr(t,n,r){t.addEventListener(n,r,!Ls&&cP)}function br(t,n,r){t.removeEventListener(n,r,!Ls&&cP)}function l2(t,n){if(n){if(n[0]===">"&&(n=n.substring(1)),t)try{if(t.matches)return t.matches(n);if(t.msMatchesSelector)return t.msMatchesSelector(n);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(n)}catch{return!1}return!1}}function wJe(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function wi(t,n,r,o){if(t){r=r||document;do{if(n!=null&&(n[0]===">"?t.parentNode===r&&l2(t,n):l2(t,n))||o&&t===r)return t;if(t===r)break}while(t=wJe(t))}return null}var EN=/\s+/g;function el(t,n,r){if(t&&n)if(t.classList)t.classList[r?"add":"remove"](n);else{var o=(" "+t.className+" ").replace(EN," ").replace(" "+n+" "," ");t.className=(o+(r?" "+n:"")).replace(EN," ")}}function pn(t,n,r){var o=t&&t.style;if(o){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(r=t.currentStyle),n===void 0?r:r[n];!(n in o)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),o[n]=r+(typeof r=="string"?"":"px")}}function hf(t,n){var r="";if(typeof t=="string")r=t;else do{var o=pn(t,"transform");o&&o!=="none"&&(r=o+" "+r)}while(!n&&(t=t.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(r)}function dP(t,n,r){if(t){var o=t.getElementsByTagName(n),a=0,l=o.length;if(r)for(;a<l;a++)r(o[a],a);return o}return[]}function $i(){var t=document.scrollingElement;return t||document.documentElement}function Co(t,n,r,o,a){if(!(!t.getBoundingClientRect&&t!==window)){var l,i,u,s,c,d,f;if(t!==window&&t.parentNode&&t!==$i()?(l=t.getBoundingClientRect(),i=l.top,u=l.left,s=l.bottom,c=l.right,d=l.height,f=l.width):(i=0,u=0,s=window.innerHeight,c=window.innerWidth,d=window.innerHeight,f=window.innerWidth),(n||r)&&t!==window&&(a=a||t.parentNode,!Ls))do if(a&&a.getBoundingClientRect&&(pn(a,"transform")!=="none"||r&&pn(a,"position")!=="static")){var p=a.getBoundingClientRect();i-=p.top+parseInt(pn(a,"border-top-width")),u-=p.left+parseInt(pn(a,"border-left-width")),s=i+l.height,c=u+l.width;break}while(a=a.parentNode);if(o&&t!==window){var m=hf(a||t),v=m&&m.a,g=m&&m.d;m&&(i/=g,u/=v,f/=v,d/=g,s=i+d,c=u+f)}return{top:i,left:u,bottom:s,right:c,width:f,height:d}}}function fP(t){var n=Co(t),r=parseInt(pn(t,"padding-left")),o=parseInt(pn(t,"padding-top")),a=parseInt(pn(t,"padding-right")),l=parseInt(pn(t,"padding-bottom"));return n.top+=o+parseInt(pn(t,"border-top-width")),n.left+=r+parseInt(pn(t,"border-left-width")),n.width=t.clientWidth-r-a,n.height=t.clientHeight-o-l,n.bottom=n.top+n.height,n.right=n.left+n.width,n}function kN(t,n,r){for(var o=_u(t,!0),a=Co(t)[n];o;){var l=Co(o)[r],i=void 0;if(r==="top"||r==="left"?i=a>=l:i=a<=l,!i)return o;if(o===$i())break;o=_u(o,!1)}return!1}function Lf(t,n,r,o){for(var a=0,l=0,i=t.children;l<i.length;){if(i[l].style.display!=="none"&&i[l]!==Sn.ghost&&(o||i[l]!==Sn.dragged)&&wi(i[l],r.draggable,t,!1)){if(a===n)return i[l];a++}l++}return null}function Ix(t,n){for(var r=t.lastElementChild;r&&(r===Sn.ghost||pn(r,"display")==="none"||n&&!l2(r,n));)r=r.previousElementSibling;return r||null}function xl(t,n){var r=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Sn.clone&&(!n||l2(t,n))&&r++;return r}function SN(t){var n=0,r=0,o=$i();if(t)do{var a=hf(t),l=a.a,i=a.d;n+=t.scrollLeft*l,r+=t.scrollTop*i}while(t!==o&&(t=t.parentNode));return[n,r]}function EJe(t,n){for(var r in t)if(t.hasOwnProperty(r)){for(var o in n)if(n.hasOwnProperty(o)&&n[o]===t[r][o])return Number(r)}return-1}function _u(t,n){if(!t||!t.getBoundingClientRect)return $i();var r=t,o=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var a=pn(r);if(r.clientWidth<r.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return $i();if(o||n)return r;o=!0}}while(r=r.parentNode);return $i()}function kJe(t,n){if(t&&n)for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);return t}function x4(t,n){return Math.round(t.top)===Math.round(n.top)&&Math.round(t.left)===Math.round(n.left)&&Math.round(t.height)===Math.round(n.height)&&Math.round(t.width)===Math.round(n.width)}var zv;function pP(t,n){return function(){if(!zv){var r=arguments,o=this;r.length===1?t.call(o,r[0]):t.apply(o,r),zv=setTimeout(function(){zv=void 0},n)}}}function SJe(){clearTimeout(zv),zv=void 0}function vP(t,n,r){t.scrollLeft+=n,t.scrollTop+=r}function mP(t){var n=window.Polymer,r=window.jQuery||window.Zepto;return n&&n.dom?n.dom(t).cloneNode(!0):r?r(t).clone(!0)[0]:t.cloneNode(!0)}var ol="Sortable"+new Date().getTime();function BJe(){var t=[],n;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(pn(o,"display")==="none"||o===Sn.ghost)){t.push({target:o,rect:Co(o)});var a=Fi({},t[t.length-1].rect);if(o.thisAnimationDuration){var l=hf(o,!0);l&&(a.top-=l.f,a.left-=l.e)}o.fromRect=a}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(EJe(t,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(n),typeof r=="function"&&r();return}var a=!1,l=0;t.forEach(function(i){var u=0,s=i.target,c=s.fromRect,d=Co(s),f=s.prevFromRect,p=s.prevToRect,m=i.rect,v=hf(s,!0);v&&(d.top-=v.f,d.left-=v.e),s.toRect=d,s.thisAnimationDuration&&x4(f,d)&&!x4(c,d)&&(m.top-d.top)/(m.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(u=TJe(m,f,p,o.options)),x4(d,c)||(s.prevFromRect=c,s.prevToRect=d,u||(u=o.options.animation),o.animate(s,m,d,u)),u&&(a=!0,l=Math.max(l,u),clearTimeout(s.animationResetTimer),s.animationResetTimer=setTimeout(function(){s.animationTime=0,s.prevFromRect=null,s.fromRect=null,s.prevToRect=null,s.thisAnimationDuration=null},u),s.thisAnimationDuration=u)}),clearTimeout(n),a?n=setTimeout(function(){typeof r=="function"&&r()},l):typeof r=="function"&&r(),t=[]},animate:function(r,o,a,l){if(l){pn(r,"transition",""),pn(r,"transform","");var i=hf(this.el),u=i&&i.a,s=i&&i.d,c=(o.left-a.left)/(u||1),d=(o.top-a.top)/(s||1);r.animatingX=!!c,r.animatingY=!!d,pn(r,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=NJe(r),pn(r,"transition","transform "+l+"ms"+(this.options.easing?" "+this.options.easing:"")),pn(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){pn(r,"transition",""),pn(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},l)}}}}function NJe(t){return t.offsetWidth}function TJe(t,n,r,o){return Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))/Math.sqrt(Math.pow(n.top-r.top,2)+Math.pow(n.left-r.left,2))*o.animation}var Id=[],w4={initializeByDefault:!0},Q0={mount:function(t){for(var n in w4)w4.hasOwnProperty(n)&&!(n in t)&&(t[n]=w4[n]);Id.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Id.push(t)},pluginEvent:function(t,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var a=t+"Global";Id.forEach(function(l){n[l.pluginName]&&(n[l.pluginName][a]&&n[l.pluginName][a](Fi({sortable:n},r)),n.options[l.pluginName]&&n[l.pluginName][t]&&n[l.pluginName][t](Fi({sortable:n},r)))})},initializePlugins:function(t,n,r,o){Id.forEach(function(i){var u=i.pluginName;if(!(!t.options[u]&&!i.initializeByDefault)){var s=new i(t,n,t.options);s.sortable=t,s.options=t.options,t[u]=s,Ns(r,s.defaults)}});for(var a in t.options)if(t.options.hasOwnProperty(a)){var l=this.modifyOption(t,a,t.options[a]);typeof l<"u"&&(t.options[a]=l)}},getEventProperties:function(t,n){var r={};return Id.forEach(function(o){typeof o.eventProperties=="function"&&Ns(r,o.eventProperties.call(n[o.pluginName],t))}),r},modifyOption:function(t,n,r){var o;return Id.forEach(function(a){t[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(o=a.optionListeners[n].call(t[a.pluginName],r))}),o}};function DJe(t){var n=t.sortable,r=t.rootEl,o=t.name,a=t.targetEl,l=t.cloneEl,i=t.toEl,u=t.fromEl,s=t.oldIndex,c=t.newIndex,d=t.oldDraggableIndex,f=t.newDraggableIndex,p=t.originalEvent,m=t.putSortable,v=t.extraEventProperties;if(n=n||r&&r[ol],!!n){var g,y=n.options,C="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!Ls&&!J0?g=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(o,!0,!0)),g.to=i||r,g.from=u||r,g.item=a||r,g.clone=l,g.oldIndex=s,g.newIndex=c,g.oldDraggableIndex=d,g.newDraggableIndex=f,g.originalEvent=p,g.pullMode=m?m.lastPutMode:void 0;var w=Fi(Fi({},v),Q0.getEventProperties(o,n));for(var b in w)g[b]=w[b];r&&r.dispatchEvent(g),y[C]&&y[C].call(n,g)}}var VJe=["evt"],Ra=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,a=CJe(r,VJe);Q0.pluginEvent.bind(Sn)(t,n,Fi({dragEl:Ft,parentEl:co,ghostEl:Ln,rootEl:Zr,nextEl:uc,lastDownEl:mg,cloneEl:ro,cloneHidden:mu,dragStarted:nv,putSortable:Ko,activeSortable:Sn.active,originalEvent:o,oldIndex:rf,oldDraggableIndex:Lv,newIndex:tl,newDraggableIndex:fu,hideGhostForTarget:yP,unhideGhostForTarget:_P,cloneNowHidden:function(){mu=!0},cloneNowShown:function(){mu=!1},dispatchSortableEvent:function(l){xa({sortable:n,name:l,originalEvent:o})}},a))};function xa(t){DJe(Fi({putSortable:Ko,cloneEl:ro,targetEl:Ft,rootEl:Zr,oldIndex:rf,oldDraggableIndex:Lv,newIndex:tl,newDraggableIndex:fu},t))}var Ft,co,Ln,Zr,uc,mg,ro,mu,rf,tl,Lv,fu,Eh,Ko,Ud=!1,i2=!1,s2=[],oc,Yl,E4,k4,BN,NN,nv,Pd,Hv,Wv=!1,kh=!1,hg,oa,S4=[],AC=!1,u2=[],g1=typeof document<"u",Sh=sP,TN=J0||Ls?"cssFloat":"float",$Je=g1&&!uP&&!sP&&"draggable"in document.createElement("div"),hP=function(){if(g1){if(Ls)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),gP=function(t,n){var r=pn(t),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=Lf(t,0,n),l=Lf(t,1,n),i=a&&pn(a),u=l&&pn(l),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Co(a).width,c=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Co(l).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&i.float&&i.float!=="none"){var d=i.float==="left"?"left":"right";return l&&(u.clear==="both"||u.clear===d)?"vertical":"horizontal"}return a&&(i.display==="block"||i.display==="flex"||i.display==="table"||i.display==="grid"||s>=o&&r[TN]==="none"||l&&r[TN]==="none"&&s+c>o)?"vertical":"horizontal"},OJe=function(t,n,r){var o=r?t.left:t.top,a=r?t.right:t.bottom,l=r?t.width:t.height,i=r?n.left:n.top,u=r?n.right:n.bottom,s=r?n.width:n.height;return o===i||a===u||o+l/2===i+s/2},AJe=function(t,n){var r;return s2.some(function(o){var a=o[ol].options.emptyInsertThreshold;if(!(!a||Ix(o))){var l=Co(o),i=t>=l.left-a&&t<=l.right+a,u=n>=l.top-a&&n<=l.bottom+a;if(i&&u)return r=o}}),r},bP=function(t){function n(a,l){return function(i,u,s,c){var d=i.options.group.name&&u.options.group.name&&i.options.group.name===u.options.group.name;if(a==null&&(l||d))return!0;if(a==null||a===!1)return!1;if(l&&a==="clone")return a;if(typeof a=="function")return n(a(i,u,s,c),l)(i,u,s,c);var f=(l?i:u).options.group.name;return a===!0||typeof a=="string"&&a===f||a.join&&a.indexOf(f)>-1}}var r={},o=t.group;(!o||vg(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,t.group=r},yP=function(){!hP&&Ln&&pn(Ln,"display","none")},_P=function(){!hP&&Ln&&pn(Ln,"display","")};g1&&!uP&&document.addEventListener("click",function(t){if(i2)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),i2=!1,!1},!0);var ac=function(t){if(Ft){t=t.touches?t.touches[0]:t;var n=AJe(t.clientX,t.clientY);if(n){var r={};for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[ol]._onDragOver(r)}}},MJe=function(t){Ft&&Ft.parentNode[ol]._isOutsideThisEl(t.target)};function Sn(t,n){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=n=Ns({},n),t[ol]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return gP(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(l,i){l.setData("Text",i.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sn.supportPointer!==!1&&"PointerEvent"in window&&!Fv,emptyInsertThreshold:5};Q0.initializePlugins(this,t,r);for(var o in r)!(o in n)&&(n[o]=r[o]);bP(n);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=n.forceFallback?!1:$Je,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?xr(t,"pointerdown",this._onTapStart):(xr(t,"mousedown",this._onTapStart),xr(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(xr(t,"dragover",this),xr(t,"dragenter",this)),s2.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),Ns(this,BJe())}Sn.prototype={constructor:Sn,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Pd=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Ft):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,o=this.options,a=o.preventOnFilter,l=t.type,i=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,u=(i||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||u,c=o.filter;if(WJe(r),!Ft&&!(/mousedown|pointerdown/.test(l)&&t.button!==0||o.disabled)&&!s.isContentEditable&&!(!this.nativeDraggable&&Fv&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=wi(u,o.draggable,r,!1),!(u&&u.animated)&&mg!==u)){if(rf=xl(u),Lv=xl(u,o.draggable),typeof c=="function"){if(c.call(this,t,u,this)){xa({sortable:n,rootEl:s,name:"filter",targetEl:u,toEl:r,fromEl:r}),Ra("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=wi(s,d.trim(),r,!1),d)return xa({sortable:n,rootEl:d,name:"filter",targetEl:u,fromEl:r,toEl:r}),Ra("filter",n,{evt:t}),!0}),c)){a&&t.cancelable&&t.preventDefault();return}o.handle&&!wi(s,o.handle,r,!1)||this._prepareDragStart(t,i,u)}}},_prepareDragStart:function(t,n,r){var o=this,a=o.el,l=o.options,i=a.ownerDocument,u;if(r&&!Ft&&r.parentNode===a){var s=Co(r);if(Zr=a,Ft=r,co=Ft.parentNode,uc=Ft.nextSibling,mg=r,Eh=l.group,Sn.dragged=Ft,oc={target:Ft,clientX:(n||t).clientX,clientY:(n||t).clientY},BN=oc.clientX-s.left,NN=oc.clientY-s.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Ft.style["will-change"]="all",u=function(){if(Ra("delayEnded",o,{evt:t}),Sn.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!wN&&o.nativeDraggable&&(Ft.draggable=!0),o._triggerDragStart(t,n),xa({sortable:o,name:"choose",originalEvent:t}),el(Ft,l.chosenClass,!0)},l.ignore.split(",").forEach(function(c){dP(Ft,c.trim(),B4)}),xr(i,"dragover",ac),xr(i,"mousemove",ac),xr(i,"touchmove",ac),xr(i,"mouseup",o._onDrop),xr(i,"touchend",o._onDrop),xr(i,"touchcancel",o._onDrop),wN&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ft.draggable=!0),Ra("delayStart",this,{evt:t}),l.delay&&(!l.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(J0||Ls))){if(Sn.eventCanceled){this._onDrop();return}xr(i,"mouseup",o._disableDelayedDrag),xr(i,"touchend",o._disableDelayedDrag),xr(i,"touchcancel",o._disableDelayedDrag),xr(i,"mousemove",o._delayedDragTouchMoveHandler),xr(i,"touchmove",o._delayedDragTouchMoveHandler),l.supportPointer&&xr(i,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(u,l.delay)}else u()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ft&&B4(Ft),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;br(t,"mouseup",this._disableDelayedDrag),br(t,"touchend",this._disableDelayedDrag),br(t,"touchcancel",this._disableDelayedDrag),br(t,"mousemove",this._delayedDragTouchMoveHandler),br(t,"touchmove",this._delayedDragTouchMoveHandler),br(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?xr(document,"pointermove",this._onTouchMove):n?xr(document,"touchmove",this._onTouchMove):xr(document,"mousemove",this._onTouchMove):(xr(Ft,"dragend",this),xr(Zr,"dragstart",this._onDragStart));try{document.selection?gg(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Ud=!1,Zr&&Ft){Ra("dragStarted",this,{evt:n}),this.nativeDraggable&&xr(document,"dragover",MJe);var r=this.options;!t&&el(Ft,r.dragClass,!1),el(Ft,r.ghostClass,!0),Sn.active=this,t&&this._appendGhost(),xa({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Yl){this._lastX=Yl.clientX,this._lastY=Yl.clientY,yP();for(var t=document.elementFromPoint(Yl.clientX,Yl.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Yl.clientX,Yl.clientY),t!==n);)n=t;if(Ft.parentNode[ol]._isOutsideThisEl(t),n)do{if(n[ol]){var r=void 0;if(r=n[ol]._onDragOver({clientX:Yl.clientX,clientY:Yl.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);_P()}},_onTouchMove:function(t){if(oc){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,a=t.touches?t.touches[0]:t,l=Ln&&hf(Ln,!0),i=Ln&&l&&l.a,u=Ln&&l&&l.d,s=Sh&&oa&&SN(oa),c=(a.clientX-oc.clientX+o.x)/(i||1)+(s?s[0]-S4[0]:0)/(i||1),d=(a.clientY-oc.clientY+o.y)/(u||1)+(s?s[1]-S4[1]:0)/(u||1);if(!Sn.active&&!Ud){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(Ln){l?(l.e+=c-(E4||0),l.f+=d-(k4||0)):l={a:1,b:0,c:0,d:1,e:c,f:d};var f="matrix(".concat(l.a,",").concat(l.b,",").concat(l.c,",").concat(l.d,",").concat(l.e,",").concat(l.f,")");pn(Ln,"webkitTransform",f),pn(Ln,"mozTransform",f),pn(Ln,"msTransform",f),pn(Ln,"transform",f),E4=c,k4=d,Yl=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Ln){var t=this.options.fallbackOnBody?document.body:Zr,n=Co(Ft,!0,Sh,!0,t),r=this.options;if(Sh){for(oa=t;pn(oa,"position")==="static"&&pn(oa,"transform")==="none"&&oa!==document;)oa=oa.parentNode;oa!==document.body&&oa!==document.documentElement?(oa===document&&(oa=$i()),n.top+=oa.scrollTop,n.left+=oa.scrollLeft):oa=$i(),S4=SN(oa)}Ln=Ft.cloneNode(!0),el(Ln,r.ghostClass,!1),el(Ln,r.fallbackClass,!0),el(Ln,r.dragClass,!0),pn(Ln,"transition",""),pn(Ln,"transform",""),pn(Ln,"box-sizing","border-box"),pn(Ln,"margin",0),pn(Ln,"top",n.top),pn(Ln,"left",n.left),pn(Ln,"width",n.width),pn(Ln,"height",n.height),pn(Ln,"opacity","0.8"),pn(Ln,"position",Sh?"absolute":"fixed"),pn(Ln,"zIndex","100000"),pn(Ln,"pointerEvents","none"),Sn.ghost=Ln,t.appendChild(Ln),pn(Ln,"transform-origin",BN/parseInt(Ln.style.width)*100+"% "+NN/parseInt(Ln.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,o=t.dataTransfer,a=r.options;if(Ra("dragStart",this,{evt:t}),Sn.eventCanceled){this._onDrop();return}Ra("setupClone",this),Sn.eventCanceled||(ro=mP(Ft),ro.removeAttribute("id"),ro.draggable=!1,ro.style["will-change"]="",this._hideClone(),el(ro,this.options.chosenClass,!1),Sn.clone=ro),r.cloneId=gg(function(){Ra("clone",r),!Sn.eventCanceled&&(r.options.removeCloneOnHide||Zr.insertBefore(ro,Ft),r._hideClone(),xa({sortable:r,name:"clone"}))}),!n&&el(Ft,a.dragClass,!0),n?(i2=!0,r._loopId=setInterval(r._emulateDragOver,50)):(br(document,"mouseup",r._onDrop),br(document,"touchend",r._onDrop),br(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",a.setData&&a.setData.call(r,o,Ft)),xr(document,"drop",r),pn(Ft,"transform","translateZ(0)")),Ud=!0,r._dragStartId=gg(r._dragStarted.bind(r,n,t)),xr(document,"selectstart",r),nv=!0,Fv&&pn(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,o,a,l,i=this.options,u=i.group,s=Sn.active,c=Eh===u,d=i.sort,f=Ko||s,p,m=this,v=!1;if(AC)return;function g(R,W){Ra(R,m,Fi({evt:t,isOwner:c,axis:p?"vertical":"horizontal",revert:l,dragRect:o,targetRect:a,canSort:d,fromSortable:f,target:r,completed:C,onMove:function(I,U){return Bh(Zr,n,Ft,o,I,Co(I),t,U)},changed:w},W))}function y(){g("dragOverAnimationCapture"),m.captureAnimationState(),m!==f&&f.captureAnimationState()}function C(R){return g("dragOverCompleted",{insertion:R}),R&&(c?s._hideClone():s._showClone(m),m!==f&&(el(Ft,Ko?Ko.options.ghostClass:s.options.ghostClass,!1),el(Ft,i.ghostClass,!0)),Ko!==m&&m!==Sn.active?Ko=m:m===Sn.active&&Ko&&(Ko=null),f===m&&(m._ignoreWhileAnimating=r),m.animateAll(function(){g("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(r===Ft&&!Ft.animated||r===n&&!r.animated)&&(Pd=null),!i.dragoverBubble&&!t.rootEl&&r!==document&&(Ft.parentNode[ol]._isOutsideThisEl(t.target),!R&&ac(t)),!i.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function w(){tl=xl(Ft),fu=xl(Ft,i.draggable),xa({sortable:m,name:"change",toEl:n,newIndex:tl,newDraggableIndex:fu,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=wi(r,i.draggable,n,!0),g("dragOver"),Sn.eventCanceled)return v;if(Ft.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||m._ignoreWhileAnimating===r)return C(!1);if(i2=!1,s&&!i.disabled&&(c?d||(l=co!==Zr):Ko===this||(this.lastPutMode=Eh.checkPull(this,s,Ft,t))&&u.checkPut(this,s,Ft,t))){if(p=this._getDirection(t,r)==="vertical",o=Co(Ft),g("dragOverValid"),Sn.eventCanceled)return v;if(l)return co=Zr,y(),this._hideClone(),g("revert"),Sn.eventCanceled||(uc?Zr.insertBefore(Ft,uc):Zr.appendChild(Ft)),C(!0);var b=Ix(n,i.draggable);if(!b||FJe(t,p,this)&&!b.animated){if(b===Ft)return C(!1);if(b&&n===t.target&&(r=b),r&&(a=Co(r)),Bh(Zr,n,Ft,o,r,a,t,!!r)!==!1)return y(),b&&b.nextSibling?n.insertBefore(Ft,b.nextSibling):n.appendChild(Ft),co=n,w(),C(!0)}else if(b&&PJe(t,p,this)){var x=Lf(n,0,i,!0);if(x===Ft)return C(!1);if(r=x,a=Co(r),Bh(Zr,n,Ft,o,r,a,t,!1)!==!1)return y(),n.insertBefore(Ft,x),co=n,w(),C(!0)}else if(r.parentNode===n){a=Co(r);var E=0,k,S=Ft.parentNode!==n,B=!OJe(Ft.animated&&Ft.toRect||o,r.animated&&r.toRect||a,p),$=p?"top":"left",D=kN(r,"top","top")||kN(Ft,"top","top"),N=D?D.scrollTop:void 0;Pd!==r&&(k=a[$],Wv=!1,kh=!B&&i.invertSwap||S),E=zJe(t,r,a,p,B?1:i.swapThreshold,i.invertedSwapThreshold==null?i.swapThreshold:i.invertedSwapThreshold,kh,Pd===r);var A;if(E!==0){var F=xl(Ft);do F-=E,A=co.children[F];while(A&&(pn(A,"display")==="none"||A===Ln))}if(E===0||A===r)return C(!1);Pd=r,Hv=E;var z=r.nextElementSibling,P=!1;P=E===1;var L=Bh(Zr,n,Ft,o,r,a,t,P);if(L!==!1)return(L===1||L===-1)&&(P=L===1),AC=!0,setTimeout(IJe,30),y(),P&&!z?n.appendChild(Ft):r.parentNode.insertBefore(Ft,P?z:r),D&&vP(D,0,N-D.scrollTop),co=Ft.parentNode,k!==void 0&&!kh&&(hg=Math.abs(k-Co(r)[$])),w(),C(!0)}if(n.contains(Ft))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){br(document,"mousemove",this._onTouchMove),br(document,"touchmove",this._onTouchMove),br(document,"pointermove",this._onTouchMove),br(document,"dragover",ac),br(document,"mousemove",ac),br(document,"touchmove",ac)},_offUpEvents:function(){var t=this.el.ownerDocument;br(t,"mouseup",this._onDrop),br(t,"touchend",this._onDrop),br(t,"pointerup",this._onDrop),br(t,"touchcancel",this._onDrop),br(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(tl=xl(Ft),fu=xl(Ft,r.draggable),Ra("drop",this,{evt:t}),co=Ft&&Ft.parentNode,tl=xl(Ft),fu=xl(Ft,r.draggable),Sn.eventCanceled){this._nulling();return}Ud=!1,kh=!1,Wv=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),MC(this.cloneId),MC(this._dragStartId),this.nativeDraggable&&(br(document,"drop",this),br(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Fv&&pn(document.body,"user-select",""),pn(Ft,"transform",""),t&&(nv&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),Ln&&Ln.parentNode&&Ln.parentNode.removeChild(Ln),(Zr===co||Ko&&Ko.lastPutMode!=="clone")&&ro&&ro.parentNode&&ro.parentNode.removeChild(ro),Ft&&(this.nativeDraggable&&br(Ft,"dragend",this),B4(Ft),Ft.style["will-change"]="",nv&&!Ud&&el(Ft,Ko?Ko.options.ghostClass:this.options.ghostClass,!1),el(Ft,this.options.chosenClass,!1),xa({sortable:this,name:"unchoose",toEl:co,newIndex:null,newDraggableIndex:null,originalEvent:t}),Zr!==co?(tl>=0&&(xa({rootEl:co,name:"add",toEl:co,fromEl:Zr,originalEvent:t}),xa({sortable:this,name:"remove",toEl:co,originalEvent:t}),xa({rootEl:co,name:"sort",toEl:co,fromEl:Zr,originalEvent:t}),xa({sortable:this,name:"sort",toEl:co,originalEvent:t})),Ko&&Ko.save()):tl!==rf&&tl>=0&&(xa({sortable:this,name:"update",toEl:co,originalEvent:t}),xa({sortable:this,name:"sort",toEl:co,originalEvent:t})),Sn.active&&((tl==null||tl===-1)&&(tl=rf,fu=Lv),xa({sortable:this,name:"end",toEl:co,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Ra("nulling",this),Zr=Ft=co=Ln=uc=ro=mg=mu=oc=Yl=nv=tl=fu=rf=Lv=Pd=Hv=Ko=Eh=Sn.dragged=Sn.ghost=Sn.clone=Sn.active=null,u2.forEach(function(t){t.checked=!0}),u2.length=E4=k4=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ft&&(this._onDragOver(t),RJe(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,o=0,a=r.length,l=this.options;o<a;o++)n=r[o],wi(n,l.draggable,this.el,!1)&&t.push(n.getAttribute(l.dataIdAttr)||HJe(n));return t},sort:function(t,n){var r={},o=this.el;this.toArray().forEach(function(a,l){var i=o.children[l];wi(i,this.options.draggable,o,!1)&&(r[a]=i)},this),n&&this.captureAnimationState(),t.forEach(function(a){r[a]&&(o.removeChild(r[a]),o.appendChild(r[a]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return wi(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var o=Q0.modifyOption(this,t,n);typeof o<"u"?r[t]=o:r[t]=n,t==="group"&&bP(r)},destroy:function(){Ra("destroy",this);var t=this.el;t[ol]=null,br(t,"mousedown",this._onTapStart),br(t,"touchstart",this._onTapStart),br(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(br(t,"dragover",this),br(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),s2.splice(s2.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!mu){if(Ra("hideClone",this),Sn.eventCanceled)return;pn(ro,"display","none"),this.options.removeCloneOnHide&&ro.parentNode&&ro.parentNode.removeChild(ro),mu=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(mu){if(Ra("showClone",this),Sn.eventCanceled)return;Ft.parentNode==Zr&&!this.options.group.revertClone?Zr.insertBefore(ro,Ft):uc?Zr.insertBefore(ro,uc):Zr.appendChild(ro),this.options.group.revertClone&&this.animate(Ft,ro),pn(ro,"display",""),mu=!1}}};function RJe(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Bh(t,n,r,o,a,l,i,u){var s,c=t[ol],d=c.options.onMove,f;return window.CustomEvent&&!Ls&&!J0?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=n,s.from=t,s.dragged=r,s.draggedRect=o,s.related=a||n,s.relatedRect=l||Co(n),s.willInsertAfter=u,s.originalEvent=i,t.dispatchEvent(s),d&&(f=d.call(c,s,i)),f}function B4(t){t.draggable=!1}function IJe(){AC=!1}function PJe(t,n,r){var o=Co(Lf(r.el,0,r.options,!0)),a=fP(r.el),l=10;return n?t.clientX<a.left-l||t.clientY<o.top&&t.clientX<o.right:t.clientY<a.top-l||t.clientY<o.bottom&&t.clientX<o.left}function FJe(t,n,r){var o=Co(Ix(r.el,r.options.draggable)),a=fP(r.el),l=10;return n?t.clientX>a.right+l||t.clientY>o.bottom&&t.clientX>o.left:t.clientY>a.bottom+l||t.clientX>o.right&&t.clientY>o.top}function zJe(t,n,r,o,a,l,i,u){var s=o?t.clientY:t.clientX,c=o?r.height:r.width,d=o?r.top:r.left,f=o?r.bottom:r.right,p=!1;if(!i){if(u&&hg<c*a){if(!Wv&&(Hv===1?s>d+c*l/2:s<f-c*l/2)&&(Wv=!0),Wv)p=!0;else if(Hv===1?s<d+hg:s>f-hg)return-Hv}else if(s>d+c*(1-a)/2&&s<f-c*(1-a)/2)return LJe(n)}return p=p||i,p&&(s<d+c*l/2||s>f-c*l/2)?s>d+c/2?1:-1:0}function LJe(t){return xl(Ft)<xl(t)?1:-1}function HJe(t){for(var n=t.tagName+t.className+t.src+t.href+t.textContent,r=n.length,o=0;r--;)o+=n.charCodeAt(r);return o.toString(36)}function WJe(t){u2.length=0;for(var n=t.getElementsByTagName("input"),r=n.length;r--;){var o=n[r];o.checked&&u2.push(o)}}function gg(t){return setTimeout(t,0)}function MC(t){return clearTimeout(t)}g1&&xr(document,"touchmove",function(t){(Sn.active||Ud)&&t.cancelable&&t.preventDefault()});Sn.utils={on:xr,off:br,css:pn,find:dP,is:function(t,n){return!!wi(t,n,t,!1)},extend:kJe,throttle:pP,closest:wi,toggleClass:el,clone:mP,index:xl,nextTick:gg,cancelNextTick:MC,detectDirection:gP,getChild:Lf};Sn.get=function(t){return t[ol]};Sn.mount=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n[0].constructor===Array&&(n=n[0]),n.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(Sn.utils=Fi(Fi({},Sn.utils),o.utils)),Q0.mount(o)})};Sn.create=function(t,n){return new Sn(t,n)};Sn.version=xJe;var _o=[],rv,RC,IC=!1,N4,T4,c2,ov;function jJe(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?xr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?xr(document,"pointermove",this._handleFallbackAutoScroll):r.touches?xr(document,"touchmove",this._handleFallbackAutoScroll):xr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?br(document,"dragover",this._handleAutoScroll):(br(document,"pointermove",this._handleFallbackAutoScroll),br(document,"touchmove",this._handleFallbackAutoScroll),br(document,"mousemove",this._handleFallbackAutoScroll)),DN(),bg(),SJe()},nulling:function(){c2=RC=rv=IC=ov=N4=T4=null,_o.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var o=this,a=(n.touches?n.touches[0]:n).clientX,l=(n.touches?n.touches[0]:n).clientY,i=document.elementFromPoint(a,l);if(c2=n,r||this.options.forceAutoScrollFallback||J0||Ls||Fv){D4(n,this.options,i,r);var u=_u(i,!0);IC&&(!ov||a!==N4||l!==T4)&&(ov&&DN(),ov=setInterval(function(){var s=_u(document.elementFromPoint(a,l),!0);s!==u&&(u=s,bg()),D4(n,o.options,s,r)},10),N4=a,T4=l)}else{if(!this.options.bubbleScroll||_u(i,!0)===$i()){bg();return}D4(n,this.options,_u(i,!1),!1)}}},Ns(t,{pluginName:"scroll",initializeByDefault:!0})}function bg(){_o.forEach(function(t){clearInterval(t.pid)}),_o=[]}function DN(){clearInterval(ov)}var D4=pP(function(t,n,r,o){if(n.scroll){var a=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,i=n.scrollSensitivity,u=n.scrollSpeed,s=$i(),c=!1,d;RC!==r&&(RC=r,bg(),rv=n.scroll,d=n.scrollFn,rv===!0&&(rv=_u(r,!0)));var f=0,p=rv;do{var m=p,v=Co(m),g=v.top,y=v.bottom,C=v.left,w=v.right,b=v.width,x=v.height,E=void 0,k=void 0,S=m.scrollWidth,B=m.scrollHeight,$=pn(m),D=m.scrollLeft,N=m.scrollTop;m===s?(E=b<S&&($.overflowX==="auto"||$.overflowX==="scroll"||$.overflowX==="visible"),k=x<B&&($.overflowY==="auto"||$.overflowY==="scroll"||$.overflowY==="visible")):(E=b<S&&($.overflowX==="auto"||$.overflowX==="scroll"),k=x<B&&($.overflowY==="auto"||$.overflowY==="scroll"));var A=E&&(Math.abs(w-a)<=i&&D+b<S)-(Math.abs(C-a)<=i&&!!D),F=k&&(Math.abs(y-l)<=i&&N+x<B)-(Math.abs(g-l)<=i&&!!N);if(!_o[f])for(var z=0;z<=f;z++)_o[z]||(_o[z]={});(_o[f].vx!=A||_o[f].vy!=F||_o[f].el!==m)&&(_o[f].el=m,_o[f].vx=A,_o[f].vy=F,clearInterval(_o[f].pid),(A!=0||F!=0)&&(c=!0,_o[f].pid=setInterval((function(){o&&this.layer===0&&Sn.active._onTouchMove(c2);var P=_o[this.layer].vy?_o[this.layer].vy*u:0,L=_o[this.layer].vx?_o[this.layer].vx*u:0;typeof d=="function"&&d.call(Sn.dragged.parentNode[ol],L,P,t,c2,_o[this.layer].el)!=="continue"||vP(_o[this.layer].el,L,P)}).bind({layer:f}),24))),f++}while(n.bubbleScroll&&p!==s&&(p=_u(p,!1)));IC=c}},30),CP=function(t){var n=t.originalEvent,r=t.putSortable,o=t.dragEl,a=t.activeSortable,l=t.dispatchSortableEvent,i=t.hideGhostForTarget,u=t.unhideGhostForTarget;if(n){var s=r||a;i();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(c.clientX,c.clientY);u(),s&&!s.el.contains(d)&&(l("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function Px(){}Px.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=Lf(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:CP};Ns(Px,{pluginName:"revertOnSpill"});function Fx(){}Fx.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,o=r||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:CP};Ns(Fx,{pluginName:"removeOnSpill"});Sn.mount(new jJe);Sn.mount(Fx,Px);function qJe(t){return t==null?t:JSON.parse(JSON.stringify(t))}function UJe(t){e.getCurrentInstance()&&e.onUnmounted(t)}function KJe(t){e.getCurrentInstance()?e.onMounted(t):e.nextTick(t)}const VN=Symbol("cloneElement");function GJe(...t){var n,r;const o=(n=e.getCurrentInstance())==null?void 0:n.proxy,a=t[0];let[,l,i]=t;Array.isArray(e.unref(l))||(i=l,l=null);let u=null;const{immediate:s=!0,clone:c=qJe,customUpdate:d}=(r=e.unref(i))!=null?r:{};function f(k){var S;k.item[VN]=c(e.unref((S=e.unref(l))==null?void 0:S[k.oldIndex]))}function p(k){const S=k.item[VN];fJe(S)||(C4(k.item),dJe(e.unref(l),k.newDraggableIndex,S))}function m(k){const{from:S,item:B,oldIndex:$,oldDraggableIndex:D,pullMode:N,clone:A}=k;if(N==="clone"){CN(S,B,$),C4(A);return}cJe(e.unref(l),D)}function v(k){if(d){d(k);return}const{from:S,item:B,oldIndex:$,newIndex:D}=k;if(C4(B),CN(S,B,$),e.isRef(l)){const N=[...e.unref(l)];l.value=_N(N,$,D);return}_N(e.unref(l),$,D)}const g={onUpdate:v,onStart:f,onAdd:p,onRemove:m};function y(k){const S=e.unref(a);return k||(k=pJe(S)?vJe(S,o==null?void 0:o.$el):S),k&&!gJe(k)&&(k=k.$el),k||iJe("Root element not found"),k}function C(){var k;const S=(k=e.unref(i))!=null?k:{},B=lP(S,["immediate","clone"]);return hJe(l===null?{}:g,B)}const w=k=>{k=y(k),u&&b.destroy(),u=new Sn(k,C())};e.watch(()=>i,()=>{u&&bJe(C(),(k,S)=>{u==null||u.option(k,S)})},{deep:!0});const b={option:(k,S)=>u==null?void 0:u.option(k,S),destroy:()=>{u==null||u.destroy(),u=null},save:()=>u==null?void 0:u.save(),toArray:()=>u==null?void 0:u.toArray(),closest:(...k)=>u==null?void 0:u.closest(...k)},x=()=>b==null?void 0:b.option("disabled",!0),E=()=>b==null?void 0:b.option("disabled",!1);return KJe(()=>{s&&w()}),UJe(b.destroy),nf({start:w,pause:x,resume:E},b)}const PC=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],YJe=["animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...PC.map(t=>`on${t.replace(/^\S/,n=>n.toUpperCase())}`)],ud=e.defineComponent({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:YJe,emits:["update:modelValue",...PC],setup(t,{slots:n,emit:r,expose:o,attrs:a}){const l=PC.reduce((d,f)=>{const p=`on${f.replace(/^\S/,m=>m.toUpperCase())}`;return d[p]=m=>r(f,m),d},{}),i=e.computed(()=>{const d=e.toRefs(t),f=lP(d,["modelValue"]),p=Object.entries(f).reduce((m,[v,g])=>{const y=e.unref(g);return y!==void 0&&(m[v]=y),m},{});return nf(nf({},l),uJe(nf(nf({},a),p)))}),u=e.computed({get:()=>t.modelValue,set:d=>r("update:modelValue",d)}),s=e.ref(),c=e.reactive(GJe(t.target||s,u,i));return o(c),()=>{if(n.default)return e.h(t.tag||"div",{ref:s},n.default(c))}}}),XJe=t=>(e.pushScopeId("data-v-84197db7"),t=t(),e.popScopeId(),t),ZJe=XJe(()=>e.createElementVNode("div",{class:"h-4"},null,-1)),JJe=e.defineComponent({name:"formDrag"}),QJe=e.defineComponent({...JJe,props:{baseData:{},formData:{},formConfig:{}},emits:["update:formConfig"],setup(t,{expose:n,emit:r}){const o=t,a=r,l=e.ref(),i=e.ref(null),u=e.computed({get(){return o.formConfig},set(c){a("update:formConfig",c)}});function s(c){return{...Ke.omit(c.baseData,["el","isSlot","isAuth","isApply","isShow"]),...c.elData.rules}}return n({componentRef:i}),(c,d)=>{const f=e.resolveComponent("hs-form-item"),p=e.resolveComponent("hs-form");return e.openBlock(),e.createBlock(p,e.mergeProps(c.baseData,{model:c.formData}),{default:e.withCtx(()=>[e.createVNode(e.unref(ud),{class:"bc-form bc-form-drag",ref_key:"dragRef",ref:l,handle:".el-form-item__label",ghostClass:"ghost",modelValue:u.value,"onUpdate:modelValue":d[1]||(d[1]=m=>u.value=m),animation:150},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,m=>(e.openBlock(),e.createBlock(f,e.mergeProps({key:m.id},s(m.data)),{default:e.withCtx(()=>[m.data.baseData.isSlot?e.renderSlot(c.$slots,`query_${m.data.baseData.prop}`,{key:0},void 0,!0):m.data.baseData.el==="bc-group-date"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.data.baseData.el),e.mergeProps({key:1,ref_for:!0,ref_key:"componentRef",ref:i,"el-component":m.data.baseData.el2,"field-component":m.data.baseData.groupField,modelValue:c.formData,"onUpdate:modelValue":d[0]||(d[0]=v=>c.formData=v)},e.unref(Ke).omit(m.data.elData,"rules")),null,16,["el-component","field-component","modelValue"])):m.data.baseData.prop&&m.data.baseData.el?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.data.baseData.el),e.mergeProps({key:2,ref_for:!0,ref_key:"componentRef",ref:i,modelValue:c.formData[m.data.baseData.prop],"onUpdate:modelValue":v=>c.formData[m.data.baseData.prop]=v},e.unref(Ke).omit(m.data.elData,"rules")),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),_:2},1040))),128))]),_:3},8,["modelValue"]),ZJe]),_:3},16,["model"])}}}),eQe=zr(QJe,[["__scopeId","data-v-84197db7"]]),tQe=t=>(e.pushScopeId("data-v-c2dbac46"),t=t(),e.popScopeId(),t),nQe={class:"sort-form-wraper"},rQe={class:"sort-form-wraper__content"},oQe={class:"content__wrap"},aQe=tQe(()=>e.createElementVNode("div",{class:"head"},[e.createElementVNode("span",{class:"drag"},"拖动"),e.createElementVNode("span",{class:"name"},"列名称"),e.createElementVNode("span",null,"显示状态"),e.createElementVNode("span",null,"排序值")],-1)),lQe={class:"sort-target drag li"},iQe={class:"li name"},sQe={class:"li"},uQe={class:"li"},cQe={class:"footer"},dQe={class:"footer-confirm"},fQe=e.defineComponent({name:"sortColumn"}),pQe=e.defineComponent({...fQe,props:{uniqueId:{},id:{}},emits:["success"],setup(t,{emit:n}){const r=t,o=n,a=e.ref([]);l(r.uniqueId);function l(s){return $o.get(s).then(c=>{const{tableConfig:d}=c.tables.find(f=>f.id===r.id);a.value=d.filter(f=>!f.data.type)})}function i(){$o.get(`${r.uniqueId}_origin`).then(s=>{const c=s.tables.find(d=>d.id===r.id);a.value=c.tableConfig.filter(d=>!d.data.type),$o.set(r.uniqueId,s)})}function u(){$o.get(r.uniqueId).then(s=>{const c=s.tables.find(f=>f.id===r.id),d=c.tableConfig.filter(f=>f.data.type);c.tableConfig=JSON.parse(JSON.stringify([...d,...a.value])),$o.set(r.uniqueId,s).then(()=>{o("success",c)})})}return(s,c)=>{const d=e.resolveComponent("el-icon"),f=e.resolveComponent("hs-input"),p=e.resolveComponent("hs-switch"),m=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",nQe,[e.createElementVNode("div",rQe,[e.createElementVNode("div",oQe,[aQe,e.createVNode(e.unref(ud),{modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=v=>a.value=v),ghostClass:"ghost",handle:".sort-target",animation:"150",class:"drag-component",style:{height:"calc(100% - 34px)"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(v,g)=>(e.openBlock(),e.createElementBlock("div",{key:v.id,class:"sort-target__wraper"},[e.createElementVNode("span",lQe,[e.createVNode(d,{class:"rotate-90",size:"14"},{default:e.withCtx(()=>[e.createVNode(e.unref(Zv))]),_:1})]),e.createElementVNode("span",iQe,[e.createVNode(f,{modelValue:v.data.title,"onUpdate:modelValue":y=>v.data.title=y},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",sQe,[e.createVNode(p,{modelValue:v.data.isShow,"onUpdate:modelValue":y=>v.data.isShow=y},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",uQe,e.toDisplayString(g+1),1)]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",cQe,[e.createVNode(m,{type:"primary",size:"small",onClick:i},{default:e.withCtx(()=>[e.createTextVNode("重置设置")]),_:1}),e.createElementVNode("div",dQe,[e.createVNode(m,{size:"small",onClick:c[1]||(c[1]=v=>s.$emit("success"))},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(m,{type:"primary",size:"small",onClick:u},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])])])}}}),vQe=zr(pQe,[["__scopeId","data-v-c2dbac46"]]);function mQe(t,n){return new Promise(r=>{v1(vQe,{uniqueId:t,id:n},{id:n,title:"表格配置",success:o=>{r(o)}})})}const Dr=e.reactive({rowIndex:0,columnIndex:0});function hQe(t,n,r,o){const a=e.computed(()=>n.value[r.value]),l=["checkbox","expand","radio","seq"],i=[{label:"右键1",value:"111"},{label:"右键2",value:"222"},{label:"右键3",value:"333"},{label:"右键4",value:"444"},{label:"右键5",value:"555"}];function u(){var p,m,v;const c=(p=e.toValue(a))==null?void 0:p.getData(Dr.rowIndex),{visibleColumn:d}=e.toValue(a).getTableColumn(),f=d[Dr.columnIndex].field;(m=e.toValue(a))==null||m.setCurrentRow(c),(v=e.toValue(a))==null||v.setEditRow(c,f).then(()=>{const{rowIndex:g,columnIndex:y}=e.toValue(a).getEditRecord();Dr.rowIndex=g??0,Dr.columnIndex=y??0})}async function s(c){const d=o.data.tables.find(f=>f.id===r.value);d.baseData.table_page_data.currentPage=c.currentPage,d.baseData.table_page_data.pageSize=c.pageSize,d.tableData=await h1(d.baseData,o.data.form.formData)}return kc("ArrowRight",c=>{var p;if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const{visibleColumn:f}=e.toValue(a).getTableColumn();if(Dr.columnIndex++,Dr.columnIndex>f.length-1&&(Dr.columnIndex=0),l.includes((p=f[Dr.columnIndex])==null?void 0:p.type)){const m=f.filter(v=>v.type).length;Dr.columnIndex=Dr.columnIndex+m}u()}),kc("ArrowLeft",c=>{var p;if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const{visibleColumn:f}=e.toValue(a).getTableColumn();if(Dr.columnIndex--,l.includes((p=f[Dr.columnIndex])==null?void 0:p.type)){const m=f.filter(v=>v.type).length;Dr.columnIndex=Dr.columnIndex-m}Dr.columnIndex<0&&(Dr.columnIndex=f.length-1),u()}),kc("ArrowUp",c=>{if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const f=e.toValue(a).getData();Dr.rowIndex--,Dr.rowIndex<0&&(Dr.rowIndex=f.length-1),u()}),kc("ArrowDown",c=>{if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const f=e.toValue(a).getData();Dr.rowIndex++,Dr.rowIndex>f.length-1&&(Dr.rowIndex=0),u()}),{menuTable:i,onPageChange:s}}function gQe(t,n,r){function o(u){Dr.rowIndex=u.rowIndex,Dr.columnIndex=u.columnIndex,r("cell-click",u)}function a(u){u.columnIndex===0?mQe(t.uniqueId,t.id).then(s=>{const c=s.tableConfig.map(d=>Fc(d.data)).filter(d=>d.isShow);e.nextTick(async()=>{var d,f;await((d=e.toValue(n))==null?void 0:d.reloadColumn(c)),await((f=e.toValue(n))==null?void 0:f.refreshColumn())})}):r("header-cell-click",u)}function l(u,s){u.fnName&&typeof u.fnName=="function"&&u.fnName(s)}function i(u){r("page-change",u)}return{handleCellClick:o,headerCellClick:a,headerBtnClick:l,pageChange:i}}function bQe(){const t=e.ref(),n=e.ref(),r=e.ref(),{height:o}=wu(t),{height:a}=wu(n,{height:0,width:0}),l=e.computed(()=>({height:`${o.value-a.value}px`}));return{wrapRef:t,pagerRef:n,tableRef:r,style:l}}const yQe=e.defineComponent({name:"formTable"}),_Qe=e.defineComponent({...yQe,props:{uniqueId:{},id:{},baseData:{},tableData:{},tableConfig:{}},emits:["ready","cell-click","header-cell-click","page-change"],setup(t,{emit:n}){const r=t,o=n,{wrapRef:a,pagerRef:l,tableRef:i,style:u}=bQe(),{handleCellClick:s,headerCellClick:c,headerBtnClick:d,pageChange:f}=gQe(r,i,o);return e.onMounted(()=>{o("ready",i.value)}),(p,m)=>{const v=e.resolveComponent("bc-btn"),g=e.resolveComponent("vxe-column"),y=e.resolveComponent("vxe-table"),C=e.resolveComponent("vxe-pager");return e.openBlock(),e.createElementBlock("div",{ref_key:"wrapRef",ref:a,class:"bc-table__wrapper bg-white"},[e.createElementVNode("div",{class:"bc-table__content",style:e.normalizeStyle(e.unref(u))},[e.createVNode(y,e.mergeProps({ref_key:"tableRef",ref:i},p.baseData,{onCellClick:e.unref(s),onHeaderCellClick:e.unref(c),data:p.tableData}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.tableConfig,w=>(e.openBlock(),e.createBlock(g,e.mergeProps({key:w.id},w.data),e.createSlots({_:2},[e.renderList(p.$slots,(b,x)=>({name:x,fn:e.withCtx(E=>[e.renderSlot(p.$slots,x,e.normalizeProps(e.guardReactiveProps(E||{})),void 0,!0)])})),w.data.isSlot?{name:"default",fn:e.withCtx(b=>[w.data.el?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(tP)(w.data.el)),{key:0,modelValue:b.row[b.column.field],"onUpdate:modelValue":x=>b.row[b.column.field]=x},null,8,["modelValue","onUpdate:modelValue"])):e.renderSlot(p.$slots,w.data.field,e.normalizeProps(e.mergeProps({key:1},b||{})),void 0,!0)]),key:"0"}:w.btnData&&w.btnData.length?{name:"default",fn:e.withCtx(b=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.btnData,x=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:x.id},[x.data.isShow?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.data.isSlot?e.renderSlot(p.$slots,`table_btn_${w.data.key}`,e.normalizeProps(e.mergeProps({key:0},b||{})),void 0,!0):(e.openBlock(),e.createBlock(v,{key:1,data:x.data,onClick:E=>e.unref(d)(x.data,b)},null,8,["data","onClick"]))],64)):e.createCommentVNode("",!0)],64))),128))]),key:"1"}:void 0]),1040))),128))]),_:3},16,["onCellClick","onHeaderCellClick","data"])],4),e.createElementVNode("div",{ref_key:"pagerRef",ref:l},[p.baseData.is_apply_page?(e.openBlock(),e.createBlock(C,e.mergeProps({key:0},p.baseData.table_page_data,{onPageChange:e.unref(f)}),e.createSlots({_:2},[e.renderList(p.$slots,(w,b)=>({name:b,fn:e.withCtx(x=>[e.renderSlot(p.$slots,"pager_"+b,e.normalizeProps(e.guardReactiveProps(x||{})),void 0,!0)])}))]),1040,["onPageChange"])):e.createCommentVNode("",!0)],512)],512)}}}),CQe=zr(_Qe,[["__scopeId","data-v-1aa3815c"]]),xQe={key:0,class:"item-wrap"},wQe=["onClick"],EQe=e.defineComponent({name:"formTabs"}),kQe=e.defineComponent({...EQe,props:e.mergeModels({tabs:{}},{active:{type:String},activeModifiers:{}}),emits:["update:active"],setup(t){const n=e.useModel(t,"active"),r=e.ref(),o=e.ref(),{height:a}=wu(r),{height:l}=wu(o),i=e.computed(()=>`${a.value-l.value}px`);return(u,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapRef",ref:r,class:"tabs-wrapper"},[e.createElementVNode("div",{ref_key:"headRef",ref:o,class:e.normalizeClass(["tabs-head",[u.tabs.length>1?"min-h-16":"min-h-2"]])},[e.renderSlot(u.$slots,"left",{},void 0,!0),u.tabs.length>1?(e.openBlock(),e.createElementBlock("div",xQe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.tabs,c=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["item",[n.value===c.id?"active":""]]),key:c.id,onClick:d=>n.value=c.id},e.toDisplayString(c.baseData.tableName),11,wQe))),128))])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:"tabs-content",style:e.normalizeStyle({height:i.value})},[e.renderSlot(u.$slots,"default",{},void 0,!0)],4)],512))}}),SQe=zr(kQe,[["__scopeId","data-v-fa1d5d61"]]);function BQe(t,n){const r=e.ref(0),o=e.ref(0),a=e.ref(!1),l=e.ref(n.menu);function i(s){var c;n.target&&!((c=s.target)!=null&&c.closest(n.target))||(s.preventDefault(),s.stopPropagation(),typeof n.getMenu=="function"?l.value=n.getMenu():l.value=n.menu,a.value=!0,r.value=s.clientX,o.value=s.clientY)}function u(){a.value=!1}return e.onMounted(()=>{var s;(s=t.value)==null||s.addEventListener("contextmenu",i),window.addEventListener("click",u,!0),window.addEventListener("contextmenu",u,!0)}),e.onUnmounted(()=>{var s;(s=t.value)==null||s.removeEventListener("contextmenu",i),window.removeEventListener("click",u,!0),window.removeEventListener("contextmenu",u,!0)}),{x:r,y:o,isshow:a,menuList:l}}const NQe=["onClick"],TQe=e.defineComponent({name:"contextBody"}),DQe=e.defineComponent({...TQe,props:{menu:{},target:{},getMenu:{type:Function}},emits:["select"],setup(t,{emit:n}){const r=t,o=n,a=e.ref(),{x:l,y:i,isshow:u,menuList:s}=BQe(a,r);function c(m){u.value=!1,typeof m.click=="function"?m.click():o("select",m)}function d(m){const v=m;v.style.height="0"}function f(m){const v=m;v.style.height="auto";const g=v.clientHeight;v.style.height="0",requestAnimationFrame(()=>{v.style.height=g+"px",v.style.transition="all .5s"})}function p(m){const v=m;v.style.transition="none"}return(m,v)=>(e.openBlock(),e.createElementBlock("div",{class:"context-wrap",ref_key:"contextRef",ref:a},[e.renderSlot(m.$slots,"default",{},void 0,!0),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{onBeforeEnter:d,onEnter:f,onAfterEnter:p},{default:e.withCtx(()=>[e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"context-wrap__content",style:e.normalizeStyle({left:`${e.unref(l)}px`,top:`${e.unref(i)}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(g,y)=>(e.openBlock(),e.createElementBlock("div",{class:"content-item",key:y,onClick:e.withModifiers(C=>c(g),["stop"])},e.toDisplayString(e.toValue(g.label)),9,NQe))),128))],4)):e.createCommentVNode("",!0)]),_:1})]))],512))}}),$N=zr(DQe,[["__scopeId","data-v-aba5fec1"]]);function VQe(){const t=e.ref(!1),n=e.ref(),r=e.ref(),o=e.ref(),a=e.ref({}),{height:l}=wu(n),{height:i}=wu(r,{height:0,width:0}),{height:u}=wu(o,{height:0,width:0}),s=e.computed(()=>({height:l.value>0?`${l.value-i.value-u.value}px`:"0px"}));function c(f,p){a.value[p]=f}function d(){t.value=!0,e.nextTick(()=>{t.value=!1})}return{wrapRef:n,btnRef:r,formRef:o,tableApi:a,style:s,isOverHide:t,onReady:c,onHeightChange:d}}function $Qe(t,n,r,o){e.computed(()=>n.value[r.value]);const a={add:i,reset:u,search:s,export:c},l=e.computed(()=>{var d;return((d=o.data)==null?void 0:d.btns.map(f=>(o.isConfig||(f.data.fnName=a[f.data.key]||""),f)))||[]});function i(){}function u(){var d,f,p,m;Ke.isEmpty((f=(d=o.data)==null?void 0:d.form)==null?void 0:f.formData)||(p=t.value.getComponents())==null||p.forEach(v=>{var g;typeof((g=e.toValue(v))==null?void 0:g.clearData)=="function"&&e.toValue(v).clearData()}),(m=t.value.getInstance())==null||m.resetFields(),s()}async function s(){const d=o.data.tables.find(f=>f.id===r.value);d.baseData.table_page_data.currentPage=1,d.tableData=await h1(d.baseData,o.data.form.formData)}function c(){}return{btns:l}}const OQe=t=>(e.pushScopeId("data-v-1f976328"),t=t(),e.popScopeId(),t),AQe={class:"sort-form-wraper"},MQe={class:"sort-form-wraper__content"},RQe={class:"content__wrap"},IQe=OQe(()=>e.createElementVNode("div",{class:"head"},[e.createElementVNode("span",{class:"drag"},"拖动"),e.createElementVNode("span",{class:"name"},"列名称"),e.createElementVNode("span",null,"显示状态"),e.createElementVNode("span",null,"排序值")],-1)),PQe={class:"sort-target drag li"},FQe={class:"li name"},zQe={class:"li"},LQe={class:"li"},HQe={class:"footer"},WQe=e.defineComponent({name:"sortColumn"}),jQe=e.defineComponent({...WQe,props:{id:{}},emits:["success"],setup(t,{emit:n}){const r=t,o=n,a=e.ref([]);l(r.id);function l(u){return $o.get(u).then(s=>{var c;a.value=((c=s.form)==null?void 0:c.formConfig)||[]})}function i(){$o.get(r.id).then(u=>{u.form.formConfig=JSON.parse(JSON.stringify([...a.value])),$o.set(r.id,u).then(()=>{o("success",u)})})}return(u,s)=>{const c=e.resolveComponent("el-icon"),d=e.resolveComponent("hs-input"),f=e.resolveComponent("hs-switch"),p=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",AQe,[e.createElementVNode("div",MQe,[e.createElementVNode("div",RQe,[IQe,e.createVNode(e.unref(ud),{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=m=>a.value=m),ghostClass:"ghost",handle:".sort-target",animation:"150",class:"drag-component",style:{height:"calc(100% - 34px)"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(m,v)=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"sort-target__wraper"},[e.createElementVNode("span",PQe,[e.createVNode(c,{class:"rotate-90",size:"14"},{default:e.withCtx(()=>[e.createVNode(e.unref(Zv))]),_:1})]),e.createElementVNode("span",FQe,[e.createVNode(d,{modelValue:m.data.baseData.prop,"onUpdate:modelValue":g=>m.data.baseData.prop=g},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",zQe,[e.createVNode(f,{modelValue:m.data.baseData.isShow,"onUpdate:modelValue":g=>m.data.baseData.isShow=g},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",LQe,e.toDisplayString(v+1),1)]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",HQe,[e.createVNode(p,{size:"small",onClick:s[1]||(s[1]=m=>u.$emit("success"))},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(p,{type:"primary",size:"small",onClick:i},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])])}}}),qQe=zr(jQe,[["__scopeId","data-v-1f976328"]]);function UQe(t){return new Promise(n=>{v1(qQe,{id:t},{title:"高级设置",success(r){n(r)}})})}function KQe(t,n,r,o){const a=e.computed(()=>n.value[r.value]),l=e.ref(!1),i=async()=>{l.value&&await $o.get(o.data.config_unique_id).then(async d=>{d.form.formConfig=JSON.parse(JSON.stringify(o.data.form.formConfig)),await $o.set(o.data.config_unique_id,d)}),l.value=!l.value},u=()=>{UQe(o.data.config_unique_id).then(async d=>{const{formConfig:f}=await OC(d);o.data.form.formConfig=f})},s=async()=>{const d=await $o.get(`${o.data.config_unique_id}_origin`),f=await $o.get(`${o.data.config_unique_id}`);f.form=d.form,$o.set(d.config_unique_id,f).then(async()=>{const{formConfig:p}=await OC(d);o.data.form.formConfig=p})},c=[{label:"高级设置",value:"222",click:u},{label:e.computed(()=>l.value?"完成排序":"排序设置"),value:"111",click:i},{label:"重置设置",value:"333",click:s}];return Rx(t,()=>{setTimeout(()=>{var d;(d=Ke.get(e.toValue(t),"componentRef.0"))==null||d.focus()},1e3)}),kc("ArrowLeft",d=>{var g,y;d.preventDefault();const f=document.activeElement;if(!f.closest(".bc-form__wrapper"))return;const p=(g=e.toValue(t))==null?void 0:g.getComponents();let m=p.findIndex(C=>(C!=null&&C.activeElement&&(C=C.activeElement()),C==f)),v=m<0?-1:m;v--,v<0&&(v=p.length-1),(y=Ke.get(p,v))==null||y.focus()}),kc("ArrowRight",d=>{var y,C;d.preventDefault();const f=document.activeElement;if(!f.closest(".bc-form__wrapper"))return;const p=(y=e.toValue(t))==null?void 0:y.getComponents(),m=p.length-1;let v=p.findIndex(w=>(w!=null&&w.activeElement&&(w=w.activeElement()),w==f)),g=v<0?-1:v;g++,g>m&&(g=0),(C=Ke.get(p,g))==null||C.focus()}),kc("ArrowDown",d=>{var g,y,C;if(d.preventDefault(),!document.activeElement.closest(".bc-form__wrapper"))return;Dr.rowIndex=0;const p=(g=e.toValue(a))==null?void 0:g.getData(Dr.rowIndex),{visibleColumn:m}=e.toValue(a).getTableColumn();Dr.columnIndex=m.filter(w=>w.type).length;const v=m[Dr.columnIndex].field;(y=e.toValue(a))==null||y.setCurrentRow(p),(C=e.toValue(a))==null||C.setEditRow(p,v)}),{isShowDrag:l,menuForm:c}}const GQe=e.defineComponent({name:"bcFormTable"}),YQe=e.defineComponent({...GQe,props:{hideBtn:{type:Boolean,default:!1},hideSearch:{type:Boolean,default:!1},data:{type:Object},isConfig:{type:Boolean,default:!1}},emits:["ready","btnClick"],setup(t,{emit:n}){const r=t,o=n,a=e.ref(""),l=e.computed({get(){return a.value===""?Ke.get(r,"data.tables.0.id",""):a.value},set(x){a.value=x}}),{wrapRef:i,btnRef:u,formRef:s,tableApi:c,style:d,isOverHide:f,onReady:p,onHeightChange:m}=VQe(),{menuForm:v,isShowDrag:g}=KQe(s,c,l,r),{menuTable:y,onPageChange:C}=hQe(s,c,l,r),{btns:w}=$Qe(s,c,l,r);function b(x){o("btnClick",x)}return Rx(()=>{var x;return(x=r.data)==null?void 0:x.config_name},()=>{e.nextTick(()=>{o("ready",{tableApi:c,activeTabs:l,api:e.computed(()=>c.value[l.value])})})}),(x,E)=>{var k,S,B;return e.openBlock(),e.createElementBlock("div",{ref_key:"wrapRef",ref:i,class:e.normalizeClass(["bc-form-table__wrapper",[e.unref(f)?"overflow-auto":"overflow-hide"]])},[!t.hideBtn&&e.unref(w).length?(e.openBlock(),e.createBlock(e.unref(ZZe),{key:0,ref_key:"btnRef",ref:u,isConfig:t.isConfig,btns:e.unref(w),onBtnClick:b},e.createSlots({_:2},[e.renderList(x.$slots,($,D)=>({name:D,fn:e.withCtx(N=>[e.renderSlot(x.$slots,D,e.normalizeProps(e.guardReactiveProps(N||{})),void 0,!0)])}))]),1032,["isConfig","btns"])):e.createCommentVNode("",!0),!t.hideSearch&&!e.unref(Ke).isEmpty((k=t.data)==null?void 0:k.form)?(e.openBlock(),e.createBlock(e.unref($N),{key:1,menu:e.unref(v)},{default:e.withCtx(()=>[e.unref(g)?(e.openBlock(),e.createBlock(e.unref(eQe),e.mergeProps({key:1,ref_key:"formRef",ref:s,formConfig:t.data.form.formConfig,"onUpdate:formConfig":E[0]||(E[0]=$=>t.data.form.formConfig=$)},e.unref(Ke).omit(t.data.form,"formConfig")),e.createSlots({_:2},[e.renderList(x.$slots,($,D)=>({name:D,fn:e.withCtx(N=>[e.renderSlot(x.$slots,D,e.normalizeProps(e.guardReactiveProps(N||{})),void 0,!0)])}))]),1040,["formConfig"])):(e.openBlock(),e.createBlock(e.unref(oJe),e.mergeProps({key:0,ref_key:"formRef",ref:s},t.data.form,{onHeightChange:e.unref(m)}),e.createSlots({_:2},[e.renderList(x.$slots,($,D)=>({name:D,fn:e.withCtx(N=>[e.renderSlot(x.$slots,D,e.normalizeProps(e.guardReactiveProps(N||{})),void 0,!0)])}))]),1040,["onHeightChange"]))]),_:3},8,["menu"])):e.createCommentVNode("",!0),e.unref(Ke).isEmpty((S=t.data)==null?void 0:S.tables)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref($N),{key:2,target:".vxe-table--body-wrapper",menu:e.unref(y)},{default:e.withCtx(()=>[e.createVNode(e.unref(SQe),{style:e.normalizeStyle(e.unref(d)),active:l.value,"onUpdate:active":E[1]||(E[1]=$=>l.value=$),tabs:t.data.tables},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data.tables,$=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(CQe),e.mergeProps($,{key:$.id,"unique-id":t.data.config_unique_id,class:"h-full",onReady:D=>e.unref(p)(D,$.id),onPageChange:e.unref(C)}),e.createSlots({_:2},[e.renderList(x.$slots,(D,N)=>({name:N,fn:e.withCtx(A=>[e.renderSlot(x.$slots,N,e.normalizeProps(e.guardReactiveProps(A||{})),void 0,!0)])}))]),1040,["unique-id","onReady","onPageChange"])),[[e.vShow,l.value===$.id]])),128))]),_:3},8,["style","active","tabs"])]),_:3},8,["menu"])),e.unref(Ke).isEmpty((B=t.data)==null?void 0:B.tables)?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(e.unref(d))},[e.renderSlot(x.$slots,"customeContent",e.normalizeProps(e.guardReactiveProps(t.data||{})),void 0,!0)],4)):e.createCommentVNode("",!0)],2)}}}),XQe=zr(YQe,[["__scopeId","data-v-5910186f"]]),ZQe=e.defineComponent({name:"BcSelect"}),JQe=e.defineComponent({...ZQe,props:{url:{},proxy:{},params:{},method:{},options:{},groupAttrs:{},optionAttrs:{}},setup(t,{expose:n}){const r=t,o=e.ref(),a=e.ref((r==null?void 0:r.options)||[]),l=e.computed({get(){return a.value||(r==null?void 0:r.options)||[]},set(d){a.value=d}});i();function i(){if(!r.url)return;const d=r.params?new Function("return "+r.params)():{};return Gn({url:"/"+r.proxy+r.url,method:r.method||"get",params:d}).then(f=>{f&&(l.value=f.data||[])})}function u(){o.value.getInstance().focus()}function s(){o.value.getInstance().blur()}function c(){return o.value.getInstance().inputRef}return n({focus:u,blur:s,activeElement:c}),(d,f)=>{const p=e.resolveComponent("hs-option"),m=e.resolveComponent("hs-option-group"),v=e.resolveComponent("hs-select");return e.openBlock(),e.createBlock(v,e.mergeProps({ref_key:"selectRef",ref:o},d.$attrs),{default:e.withCtx(()=>[d.groupAttrs.isGroupEnabled?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,g=>(e.openBlock(),e.createBlock(m,{key:g.label,label:g.label},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.options,y=>(e.openBlock(),e.createBlock(p,{key:y.value,value:y[d.optionAttrs.value],label:y[d.optionAttrs.label]},null,8,["value","label"]))),128))]),_:2},1032,["label"]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(l.value,g=>(e.openBlock(),e.createBlock(p,{disabled:d.optionAttrs.disabled,key:g.value,value:g[d.optionAttrs.value],label:g[d.optionAttrs.label]},null,8,["disabled","value","label"]))),128))]),_:1},16)}}}),QQe=t=>(e.pushScopeId("data-v-db063ea8"),t=t(),e.popScopeId(),t),eet={class:"text-[#606266] truncate"},tet={key:0},net=QQe(()=>e.createElementVNode("div",null,null,-1)),ret=e.defineComponent({__name:"bcFormConfig",props:{parentConfig:{type:Object,default:()=>({labelWidth:150,xs:24,sm:24,md:12,lg:12,xl:8,style:"",minWidth:350,showColon:!1})},data:{type:Object,default:()=>{}},config:{type:Array,default:()=>[]},rules:{type:Object,default:()=>{}},watchConfig:{type:Boolean,default:!0}},emits:["change"],setup(t,{expose:n,emit:r}){const o=t;let a=e.ref(o.data),l=e.ref(o.config);e.watch(()=>o.data,d=>{a.value=d},{deep:!0}),e.watch(()=>o.config,d=>{o.watchConfig&&(l.value=d)},{deep:!0});const i=e.ref(),u=()=>new Promise(d=>{if(!i.value){d(!1);return}i.value.validate(f=>{d(!!f)})});let s=r;const c=(d,f)=>{let p=f.prop;s("change",d,p,f)};return n({props:o,getSubmitData:u}),(d,f)=>{const p=e.resolveComponent("ele-Warning"),m=e.resolveComponent("el-icon"),v=e.resolveComponent("el-tooltip"),g=e.resolveComponent("hs-form-item"),y=e.resolveComponent("hs-col"),C=e.resolveComponent("hs-row"),w=e.resolveComponent("hs-form");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(w,e.mergeProps({ref_key:"formRef",ref:i,"label-width":t.parentConfig.labelWidth,inline:t.parentConfig.inline||!1,"label-position":"right","label-suffix":":","hide-required-asterisk":!1,"require-asterisk-position":"right","show-message":"","inline-message":"","status-icon":"",disabled:!1},d.$attrs,{"scroll-to-error":"",rules:t.rules,model:e.unref(a),style:`min-width: ${t.parentConfig.minWidth}px`}),{default:e.withCtx(()=>[e.createVNode(C,{gutter:0,justify:"start",align:"middle",class:"hs-row"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(b,x)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[b.show!==!1?(e.openBlock(),e.createBlock(y,{key:x,span:b.span||t.parentConfig.span,xs:b.xs||t.parentConfig.xs,sm:b.sm||t.parentConfig.sm,md:b.md||t.parentConfig.md,lg:b.lg||t.parentConfig.lg,xl:b.xl||t.parentConfig.xl,style:e.normalizeStyle(t.parentConfig.style)},{default:e.withCtx(()=>[b.slot?e.renderSlot(d.$slots,b.slot,e.normalizeProps(e.mergeProps({key:0},b)),void 0,!0):(e.openBlock(),e.createBlock(g,{key:1,label:b.label,prop:b.prop,required:b.required},{label:e.withCtx(()=>[e.createElementVNode("span",eet,[e.createTextVNode("  "+e.toDisplayString(b.label)+"  ",1),t.parentConfig.showColon?(e.openBlock(),e.createElementBlock("span",tet,":   ")):e.createCommentVNode("",!0)]),e.createVNode(v,{class:"box-item",effect:"dark",content:b.tooltip||b.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(m,null,{default:e.withCtx(()=>[e.createVNode(p)]),_:1})])]),_:2},1032,["content"])]),default:e.withCtx(()=>[b.slotValue?e.renderSlot(d.$slots,b.slotValue,e.normalizeProps(e.mergeProps({key:0},b)),void 0,!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.el),e.mergeProps({key:1,modelValue:e.unref(a)[b.prop],"onUpdate:modelValue":E=>e.unref(a)[b.prop]=E,multiple:b.multiple,size:b.size,type:b.type},b.attr,{disabled:b.disabled,border:"",clearable:b.clearable!=!1,onChange:E=>c(E,b)}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.op||[],(E,k)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.cel),{key:k,label:E.label,value:E.value},null,8,["label","value"]))),128))]),_:2},1040,["modelValue","onUpdate:modelValue","multiple","size","type","disabled","clearable","onChange"]))]),_:2},1032,["label","prop","required"]))]),_:2},1032,["span","xs","sm","md","lg","xl","style"])):e.createCommentVNode("",!0)],64))),256)),net]),_:3})]),_:3},16,["label-width","inline","rules","model","style"])])}}}),oet=zr(ret,[["__scopeId","data-v-db063ea8"]]),aet=e.defineComponent({name:"bcTreeSelect"}),iet=e.defineComponent({...aet,props:{url:{},proxy:{},params:{},method:{},data:{}},setup(t,{expose:n}){const r=t,o=e.ref(),a=e.ref((r==null?void 0:r.data)||[]),l=e.computed({get(){return a.value||(r==null?void 0:r.data)||[]},set(d){a.value=d}});i();function i(){if(!r.url)return;const d=r.params?new Function("return "+r.params)():{};return Gn({url:"/"+r.proxy+r.url,method:r.method||"get",params:d}).then(f=>{f&&(l.value=f.data||[])})}function u(){o.value.focus()}function s(){o.value.blur()}function c(){return o.value.activeElement()}return n({focus:u,blur:s,activeElement:c}),(d,f)=>{const p=e.resolveComponent("hs-tree-select");return e.openBlock(),e.createBlock(p,e.mergeProps({ref_key:"treeRef",ref:o,class:"bc-tree-select"},d.$attrs,{data:l.value}),null,16,["data"])}}}),set=[{prop:"attrs",label:"inputAttrs",tooltip:"inputAttrs",type:"object",el:"title",children:[{prop:"type",label:"input类型",tooltip:"input类型",type:"string 等原生 input 类型",el:"hs-select",op:[{label:"text",value:"text"},{label:"textarea",value:"textarea"},{label:"number",value:"number"},{label:"password",value:"password"}],cel:"hs-option",required:!0,clearable:!1,rules:[{required:!0,message:"请选择type",trigger:"blur"}]},{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number",el:"hs-input"},{prop:"placeholder",label:"占位文本",tooltip:"输入框占位文本",type:"string",el:"hs-input"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸,只在 type 不为 'textarea' 时有效",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"clearable",label:"清除按钮",tooltip:"是否显示清除按钮,只有当 type 不是 textarea时生效",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"readonly",label:"是否只读",tooltip:"原生 readonly 属性,是否只读",type:"boolean",el:"hs-switch"},{prop:"maxlength",label:"maxlength",tooltip:"同原生 maxlength 属性",type:"string / number",el:"hs-input"},{prop:"minlength",label:"minlength",tooltip:"原生属性,最小输入长度",type:"string / number",el:"hs-input"},{prop:"show-word-limit",label:"统计字数",tooltip:"是否显示统计字数, 只在 type 为 'text' 或 'textarea' 的时候生效",type:"boolean",el:"hs-switch"},{prop:"formatter",label:"输入值格式",tooltip:'指定输入值的格式。(只有当 type 是"text"时才能工作)',type:"Function",el:"hs-input"},{prop:"parser",label:"格式化器",tooltip:'指定从格式化器输入中提取的值。(仅当 type 是"text"时才起作用)',type:"Function",el:"hs-input"},{prop:"show-password",label:"密码图标",tooltip:"是否显示切换密码图标",type:"boolean",el:"hs-switch"},{prop:"prefix-icon",label:"前缀图标",tooltip:"自定义前缀图标",type:"string / Component",el:"hs-input"},{prop:"suffix-icon",label:"后缀图标",tooltip:"自定义后缀图标",type:"string / Component",el:"hs-input"},{prop:"rows",label:"输入框行数",tooltip:"输入框行数,仅 type 为 'textarea' 时有效",type:"number",el:"hs-input-number"},{prop:"autosize",label:"textarea 高度",tooltip:"textarea 高度是否自适应,仅 type 为 'textarea' 时生效。 可以接受一个对象,比如: { minRows: 2, maxRows: 6 }",type:"boolean / object",el:"hs-switch"},{prop:"autocomplete",label:"autocomplete",tooltip:"原生 autocomplete 属性",type:"string",el:"hs-input"},{prop:"name",label:"input name",tooltip:"等价于原生 input name 属性",type:"string",el:"hs-input"},{prop:"max",label:"max",tooltip:"原生 max 属性,设置最大值",type:"—",el:"hs-input"},{prop:"min",label:"min",tooltip:"原生属性,设置最小值",type:"—",el:"hs-input"},{prop:"step",label:"step",tooltip:"原生属性,设置输入字段的合法数字间隔",type:"—",el:"hs-input"},{prop:"resize",label:"resize",tooltip:"控制是否能被用户缩放",type:"enum",el:"hs-select",op:[{label:"none",value:"none"},{label:"both",value:"both"},{label:"horizontal",value:"horizontal"},{label:"vertical",value:"vertical"}],cel:"hs-option"},{prop:"autofocus",label:"autofocus",tooltip:"原生属性,自动获取焦点",type:"boolean",el:"hs-switch"},{prop:"form",label:"form",tooltip:"原生属性",type:"string",el:"hs-input"},{prop:"label a11y",label:"label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"},{prop:"tabindex",label:"tabindex",tooltip:"输入框的 tabindex",type:"string / number",el:"hs-input"},{prop:"validate-event",label:"表单的校验",tooltip:"输入时是否触发表单的校验",type:"boolean",el:"hs-switch"},{prop:"input-style",label:"input-style",tooltip:"input 元素或 textarea 元素的 style",type:"string / object",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],ON=[{prop:"blur",label:"聚焦时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"focus",label:"失焦时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"change",label:"改变时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"clear",label:"清空时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"input",label:"改变时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"}],b1={attrs:{size:"default",type:"text",clearable:!1,"show-password":!1,disabled:!1,autosize:!1,autocomplete:"off",autofocus:!1,"validate-event":!0,placeholder:"请输入"},rules:{required:!1,rules:""}};let uet={size:"default",rules:"",inline:!0,labelPosition:"left",labelWidth:"80",labelSuffix:"",hideRequiredAsterisk:!1,requireAsteriskPosition:"left",showMessage:!0,inlineMessage:!1,statusIcon:!1,validateOnRuleChange:!0,disabled:!1,scrollToError:!1,gutter:10,justify:"start",align:"",isSetDictDefaultValue:!0,isSupportShortcutKey:!0,submitUrl:"",submitSuccessMsg:""},cet=[{prop:"rules",label:"表单验证规则",type:"textarea",el:"hs-input"},{prop:"inline",label:"行内表单模式",el:"hs-switch"},{prop:"labelPosition",label:"表单域标签的位置",el:"hs-select",tooltip:"表单域标签的位置, 当设置为 left 或 right 时,则也需要设置 label-width 属性",required:!1,multiple:!1,op:[{label:" 靠左",value:"left"},{label:"靠右",value:"right"},{label:"靠上",value:"top"}],cel:"hs-option"},{prop:"labelWidth",label:"标签的宽度",tooltip:'标签的长度,例如 "50px"。 作为 Form 直接子元素的 form-item 会继承该值。 可以使用 auto。',el:"hs-input"},{prop:"labelSuffix",label:"表单域标签的后缀",tooltip:"表单域标签的后缀",el:"hs-input"},{prop:"hideRequiredAsterisk",label:"是否隐藏必填标识",tooltip:"是否隐藏必填字段标签旁边的红色星号。",el:"hs-switch"},{prop:"requireAsteriskPosition",label:"必填标识的位置",tooltip:"星号的位置。",el:"hs-select",op:[{label:" 靠左",value:"left"},{label:"靠右",value:"right"}],cel:"hs-option"},{prop:"showMessage",label:"是否显示校验错误信息",tooltip:"是否显示校验错误信息",el:"hs-switch"},{prop:"inlineMessage",label:"是否以行内形式展示校验信息",tooltip:"是否以行内形式展示校验信息",el:"hs-switch"},{prop:"statusIcon",label:"是否框中显示校验反馈图标",tooltip:"是否在输入框中显示校验结果反馈图标",el:"hs-switch"},{prop:"validateOnRuleChange",label:"是否触发第一次验证",tooltip:"是否在 rules 属性改变后立即触发一次验证",el:"hs-switch"},{prop:"size",label:"表单项组件的尺寸",el:"hs-select",tooltip:"用于控制该表单内组件的尺寸",op:[{label:" 大尺寸",value:"large"},{label:"默认尺寸",value:"default"},{label:"小尺寸",value:"small"}],cel:"hs-option"},{prop:"disabled",label:"是否禁用表单项",tooltip:"是否禁用该表单内的所有组件。 如果设置为 true, 它将覆盖内部组件的 disabled 属性",el:"hs-switch"},{prop:"scrollToError",label:"滚动至首个校验失败的表单",tooltip:"当校验失败时,滚动到第一个错误表单项",el:"hs-switch"},{label:"是否取字典项的默认值",prop:"isSetDictDefaultValue",el:"hs-switch",tooltip:"当校验有失败结果时,滚动到第一个失败的表单项目 可通过 scrollIntoView 配置"},{label:"是否支持表单回车快捷功能",prop:"isSupportShortcutKey",el:"hs-switch"},{label:"栅格间隔",prop:"gutter",type:"number",el:"hs-input-number"},{label:"盒子布局下的水平排列方式",prop:"justify",el:"hs-select",tooltip:"flex 布局下的水平排列方式",op:[{label:"从起始方向排列",value:"start"},{label:"从末尾方向排列",value:"end"},{label:"居中",value:"center"},{label:"两端对齐均匀分布",value:"space-between"},{label:"两端是中间间隔的一半均匀分布",value:"space-around"},{label:"间隔相等均匀分布",value:"space-evenly"}],cel:"hs-option"},{label:"盒子布局下的垂直排列方式",prop:"align",el:"hs-select",tooltip:"flex 布局下的垂直排列方式",op:[{label:"自上而下",value:"top"},{label:"居中",value:"middle"},{label:"自下而上",value:"bottom"}],cel:"hs-option"},{label:"自定义元素标签",prop:"tag",el:"hs-input"},{label:"提交表单的请求Url",prop:"submitUrl",el:"hs-input"},{label:"提交请求方式",prop:"submitUrlMethod",el:"hs-select",cel:"hs-option",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}]},{label:"表单提交成功的提示信息",prop:"submitSuccessMsg",el:"hs-input"}];const xP=e.ref([{label:"输入框",value:"hs-input"},{label:"选择器",value:"hs-select"},{label:"开关",value:"hs-switch"},{label:"日期选择器",value:"hs-date-picker"},{label:"按钮",value:"hs-button"},{label:"自动补全",value:"hs-autocomplete"},{label:"上传",value:"hs-upload"},{label:"多选框",value:"hs-checkbox"},{label:"单选框",value:"hs-radio"},{label:"数字输入框",value:"hs-input-number"},{label:"级联面板",value:"hs-cascader-panel"},{label:"树形选择",value:"hs-tree-select"},{label:"级联选择器",value:"hs-cascader"}]),V4={"hs-input":"hs-config-input","hs-select":"hs-config-select","hs-switch":"hs-config-switch","hs-date-picker":"hs-config-date-picker","hs-button":"hs-config-button","hs-autocomplete":"hs-config-autocomplete","hs-upload":"hs-config-upload","hs-checkbox":"hs-config-checkbox","hs-radio":"hs-config-radio","hs-input-number":"hs-config-input-number","hs-cascader-panel":"hs-config-cascader-panel","hs-tree-select":"hs-config-tree-select"},det={label:[{required:!0,message:"请输入参数名称"}],prop:[{required:!0,message:"请输入查询参数"}],el:[{required:!0,message:"请选择组件类型"}]};let wP=e.ref({id:"",sort:0,data:{baseData:{label:"参数名称",prop:"",el:"hs-input",isSlot:!1,isApply:!0,isShow:!0},elData:b1}}),fet={baseConfig:{title:{subTitle:"表单项属性"},visible:!0,list:[{prop:"label",label:"参数名称",el:"hs-input"},{prop:"prop",label:"查询参数",slotValue:"prop",el:"hs-input"},{prop:"el",label:"组件类型",clearable:!1,tooltip:"下拉选择组件类型,组件类型取自配置文件",el:"hs-select",cel:"hs-option",op:xP.value},{prop:"label-width",label:"标签宽度",el:"hs-input"},{prop:"isSlot",label:"是否自定义插槽",el:"hs-switch"},{prop:"isApply",label:"是否启用",tooltip:"是否启用该表单项",el:"hs-switch"},{prop:"isShow",label:"是否显示该表单项",el:"hs-switch"},{prop:"groupMark",label:"分组标识",el:"hs-input",tooltip:"如果【分组标识】有值则代表该字段为组里的一项,只有分组标识相同的才能为一组"},{prop:"positionInGroup",label:"组字段位置",tooltip:"字段在分组中是开始位置 还是 结束为止",el:"hs-select",cel:"hs-option",show:!0,op:[{label:"开始",value:"begin"},{label:"结束",value:"end"}]}],rules:det},elConfig:{title:{subTitle:"元素项属性"},visible:!0,list:[]}},d2=e.ref({id:"",data:{baseData:{},elData:{}}}),yl=e.ref({code:{visible:!1,subTitle:"表单配置代码",class:"font-bold my-3",iconSize:20},form:{visible:!0,subTitle:"表单配置",class:"font-bold my-3",iconSize:20},formItem:{visible:!0,subTitle:"表单元素配置项集合",class:"font-bold my-3",iconSize:20},formExample:{visible:!1,subTitle:"表单配置示例",class:"font-bold my-3",iconSize:20}});const AN={currentPage:{baseData:{isApply:!0,isShow:!1},elData:{attrs:{defaultValue:1}}},pageSize:{baseData:{isApply:!0,isShow:!1},elData:{attrs:{defaultValue:10}}}},pet=(t,n)=>Object.assign(t,{title:n}),vet=(t={})=>{let n=t.proxy?"/"+t.proxy:"";return delete t.proxy,t=pet(t,"后台api获取接口"),Gn({url:n?n+"/v2/api-docs":"/scmp-web/v2/api-docs",method:"get",params:t})};function EP(){return{getApiDocs:vet}}const met=(t,n)=>Object.assign(t,{title:n}),het=(t={})=>(t=met(t,"获取所有系统信息列表"),Gn({url:"/scmp-web/pri/system/get_all_system_info",method:"get",params:t}));function kP(){return{getAllSystemInfo:het}}const dl=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),get=(t={})=>(t=dl(t,"保存新表格字段设置"),Gn({url:"/scmp-web/pri/field_config/add_field",method:"post",data:t})),bet=(t={})=>(t=dl(t,"根据菜单id查询字段信息"),Gn({url:"/scmp-web/pri/field_config/get_field_by_menu",method:"get",params:t})),yet=(t={})=>(t=dl(t,"查询新表格字段配置列表"),Gn({url:"/scmp-web/pri/field_config/get_field_list_page",method:"get",params:t})),_et=(t={})=>(t=dl(t,"删除新表格字段配置"),Gn({url:"/scmp-web/pri/field_config/del_field_by_id",method:"post",data:t})),Cet=(t={})=>(t=dl(t,"保存新表格字段设置"),Gn({url:"/scmp-web/pri/field_config/save_field_4_table",method:"post",data:t})),xet=(t={})=>(t=dl(t,"保存新表单字段设置"),Gn({url:"/scmp-web/pri/field_config/save_field_4_form",method:"post",data:t})),wet=(t={})=>(t=dl(t,"根据菜单id查询字段信息"),Gn({url:"/scmp-web/pri/field_config/get_table_by_menu",method:"get",params:t})),Eet=(t={})=>(t=dl(t,"根据菜单id查询字段信息"),Gn({url:"/scmp-web/pri/field_config/get_form_by_menu",method:"get",params:t})),ket=(t={})=>(t=dl(t,"查询字段池匹配字段"),Gn({url:"/scmp-web/pri/field_config/get_field_pool_list",method:"get",params:t})),Bet=(t={})=>(t=dl(t,"根据表名和系统名称查询字段配置"),Gn({url:"/scmp-web/pri/field_config/get_field_by_table",method:"get",params:t})),Net=(t={})=>(t=dl(t,"保存表格字段池在配置页面使用"),Gn({url:"/scmp-web/pri/field_config/save_field_pool_4_config",method:"post",data:t})),Tet=(t={})=>(t=dl(t,"根据字段代码集合获取字段池信息"),Gn({url:"/scmp-web/pri/field_config/get_pool_by_field_map",method:"post",data:t})),Det=(t={})=>(t=dl(t,"批量保存表格字段池在配置页面使用"),Gn({url:"/scmp-web/pri/field_config/save_field_pool_batch_4_config",method:"post",data:t}));function ap(){return{postAddField:get,getFieldByMenu:bet,getFieldListPage:yet,postDelFieldById:_et,postSaveField4Table:Cet,postSaveField4Form:xet,getTableByMenu:wet,getFormByMenu:Eet,getFieldPoolList:ket,getFieldByTable:Bet,postSaveFieldPool4Config:Net,getPoolByFieldMap:Tet,postSaveFieldPoolBatch4Config:Det}}const em=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),Vet=(t={})=>(t=em(t,"获取按钮配置信息列表"),Gn({url:"/scmp-web/pri/btn_config/get_btn_config_page_list",method:"get",params:t})),$et=(t={})=>(t=em(t,"保存按钮配置信息"),Gn({url:"/scmp-web/pri/btn_config/save_btn_config",method:"post",data:t})),Oet=(t={})=>(t=em(t,"保存按钮配置在配置页面使用"),Gn({url:"/scmp-web/pri/btn_config/save_btn_config_4_config",method:"post",data:t})),Aet=(t={})=>(t=em(t,"批量按钮配置在配置页面使用"),Gn({url:"/scmp-web/pri/btn_config/save_btn_config_batch_4_config",method:"post",data:t})),Met=(t={})=>(t=em(t,"删除"),Gn({url:"/scmp-web/pri/btn_config/delete_btn_config",method:"post",data:t}));function zx(){return{getBtnConfigPageList:Vet,postSaveBtnConfig:$et,postSaveBtnConfig4Config:Oet,postSaveBtnConfigBatch4Config:Aet,postDeleteBtnConfig:Met}}const Ret=EP(),Iet=ap();function Pet(t,n){const r=e.ref(!0);e.watch(()=>n.value,()=>{t.value="",r.value=!0});const o=()=>{let i=Ke.cloneDeep(uet);n.value=Ke.assign(n.value,{form:{id:new Date().getTime().toString(),baseData:i,formData:{},formConfig:[]}})},a=(i,u,s,c)=>{let d=i.map(f=>f[s]);if(r.value&&d.length<=0)return ir.warning("接口参数为空");Iet.getPoolByFieldMap({fieldCodes:d,field_type:"2",project_code:u&&u.project_code}).then(f=>{i.forEach(p=>{var v,g,y,C,w;let m=(g=(v=n.value)==null?void 0:v.form)==null?void 0:g.formConfig.map(b=>b.data.baseData.prop);if(!Ke.includes(m,p[s])){let b=Ke.cloneDeep(wP.value);if(b.id=p[s]+new Date().getTime().toString(),b.data.baseData.label=p[c]||"参数名称",b.data.baseData.prop=p[s],b.data.baseData.el="hs-input",b.data.elData=Ke.cloneDeep(b1),console.log("res.data[param[key]]",f.data[p[s]]),f.code==1&&f.data&&f.data[p[s]]){let x=JSON.parse(f.data[p[s]].json_data);b.data=Ke.assign(b.data,x,{field_id:f.data[p[s]].id})}if(Ke.keys(AN).find(x=>x==b.data.baseData.prop)){let x=AN[b.data.baseData.prop],E=Ke.cloneDeep(b.data.baseData.prop);b.data.baseData=Ke.assign(b.data.baseData,x.baseData),b.data.elData.attrs=Ke.assign(b.data.elData.attrs,x.elData.attrs),x.elData.attrs.defaultValue&&((y=n.value)!=null&&y.form)&&(n.value.form.formData=Ke.assign(n.value.form.formData,{[E]:x.elData.attrs.defaultValue}))}(w=(C=n.value)==null?void 0:C.form)==null||w.formConfig.push(b)}})})};return{parseForm:async()=>{var i,u;if(t.value){let s=wo.get("CURRENT_SYSTEM");if(!r.value){let p=JSON.parse(t.value);(i=n.value)!=null&&i.form||await o(),console.log("parseApi.value",p),a(p,s,"prop","label");return}let c=await Ret.getApiDocs({proxy:s.project_url}),d=(Ke.keys(c.paths)||[]).filter(p=>p==t.value),f=c.paths&&c.paths[d[0]]||void 0;if(f){let p=Object.keys(f)[0],v=(p&&f[p]||{}).parameters||[];(u=n.value)!=null&&u.form||await o(),a(v,s,"name","description")}else ir.warning("请检查url是否正确")}else o()},parseUrl:r}}const Fet={class:"flex flex-row"},zet=e.defineComponent({__name:"hsFormParse",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){let n=e.useModel(t,"modelValue"),r=e.ref("");const{parseForm:o,parseUrl:a}=Pet(r,n);return(l,i)=>{const u=e.resolveComponent("hs-switch"),s=e.resolveComponent("hs-input"),c=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createTextVNode(" 是否解析url:"),e.createVNode(u,{modelValue:e.unref(a),"onUpdate:modelValue":i[0]||(i[0]=d=>e.isRef(a)?a.value=d:null)},null,8,["modelValue"]),e.createElementVNode("div",Fet,[e.createVNode(s,{class:"basis-1/4 mr-2",modelValue:e.unref(r),"onUpdate:modelValue":i[1]||(i[1]=d=>e.isRef(r)?r.value=d:r=d),placeholder:"请输入解析接口"},null,8,["modelValue"]),e.createVNode(c,{onClick:e.unref(o),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)?"一键解析":"初始化配置"),1)]),_:1},8,["onClick"])])],64)}}});function Let(t,n,r){const o=i=>{var s;let u=i.id==((s=n.current)==null?void 0:s.id)?Ke.cloneDeep(d2.value):i;t("chose",u)};return{choseTagItem:o,appendField:()=>{var s,c,d,f,p;let i=Ke.cloneDeep(wP.value);i.id=new Date().getTime().toString(),(c=(s=r.value)==null?void 0:s.form)==null||c.formConfig.push(i);let u=((p=(d=r.value)==null?void 0:d.form)==null?void 0:p.formConfig[((f=r.value)==null?void 0:f.form.formConfig.length)-1])||Ke.cloneDeep(d2.value);o(u)},deleteTagItem:i=>{da.confirm(`确定删除“${i.data&&i.data.baseData.label}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var u,s,c,d;(s=(u=r.value)==null?void 0:u.form)==null||delete s.formData[i.data.baseData.prop],Ke.remove(((d=(c=r.value)==null?void 0:c.form)==null?void 0:d.formConfig)||[],i),o(i),ir.success("删除成功")}).catch(u=>{console.log("err",u)})}}}const Het=["onClick"],Wet=["onClick"],jet={class:"p-2"},qet=e.defineComponent({__name:"hsFormConfigList",props:e.mergeModels({current:{type:Object,default:()=>{}}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["chose"],["update:modelValue"]),setup(t,{emit:n}){const r=e.ref(),o=n,a=e.useModel(t,"modelValue"),l=t,{appendField:i,deleteTagItem:u,choseTagItem:s}=Let(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(ud),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value.form.formConfig,"onUpdate:modelValue":d[1]||(d[1]=f=>a.value.form.formConfig=f),animation:150},{default:e.withCtx(()=>{var f,p;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((p=(f=a.value)==null?void 0:f.form)==null?void 0:p.formConfig,m=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:m.id,onClick:v=>e.unref(s)(m)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==m.id?"bg-blue-200":""])},e.toDisplayString(m.data&&m.data.baseData.label),3),t.current.id==m.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(v=>e.unref(u)(m),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,Wet)):e.createCommentVNode("",!0)],8,Het))),128)),e.createElementVNode("div",jet,[e.createElementVNode("div",{onClick:d[0]||(d[0]=(...m)=>e.unref(i)&&e.unref(i)(...m)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]}),_:1},8,["modelValue"])]))}}),Uet=zr(qet,[["__scopeId","data-v-2a9416b3"]]);function Ket(t){return{toggleExpand:()=>{t.value=!t.value}}}const Get={key:0},xo=e.defineComponent({__name:"hsExpand",props:e.mergeModels({expandConfig:{type:Object,default:()=>({iconSize:18,subTitle:"",class:"",rightSlot:""})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue"),{toggleExpand:r}=Ket(n);return(o,a)=>{const l=e.resolveComponent("svgIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex align-center justify-between cursor-pointer hover:bg-red-200",t.expandConfig.class])},[e.createElementVNode("div",{class:"flex align-center flex-1",onClick:a[0]||(a[0]=(...i)=>e.unref(r)&&e.unref(r)(...i))},[e.createVNode(l,{class:"pt-1",name:n.value?"ele-CaretBottom":"ele-CaretRight",size:t.expandConfig.iconSize||18},null,8,["name","size"]),e.createElementVNode("div",null,e.toDisplayString(t.expandConfig.subTitle),1)]),t.expandConfig.rightSlot?(e.openBlock(),e.createElementBlock("div",Get,[e.renderSlot(o.$slots,"default")])):e.createCommentVNode("",!0)],2)}}}),Yet=ap();function Xet(t,n){let r=e.ref(t.current),o=e.ref(Ke.cloneDeep(t.current)),a=e.ref(t.data),l=e.ref(Ke.cloneDeep(fet)),i=e.ref("hs-config-input");e.watch(()=>t.current,m=>{if(m&&m.id!=o.value.id&&(l.value.elConfig.visible=!1,r.value=m,o.value=Ke.cloneDeep(m),a.value=t.data),m&&m.id){l.value.elConfig.visible=!1;let v=o.value.data.baseData.el;i.value=V4[v]}},{deep:!0,immediate:!0}),e.watch(()=>o.value.data.baseData,m=>{m&&(l.value.baseConfig.list=l.value.baseConfig.list.map(v=>(v.prop=="positionInGroup"&&(v.show=!!o.value.data.baseData.groupMark,v.show||(o.value.data.baseData.positionInGroup="")),v)))},{deep:!0,immediate:!0});let u=e.ref({url:"/scmp-web/pri/field_config/get_field_pool_list",params:{field_type:"2",field_code:"",project_code:""},qry_key:"field_code"});e.onMounted(()=>{let m=wo.get("CURRENT_SYSTEM"),v=u.value.params;v.project_code=m.project_code||"",u.value=Ke.assign(u.value,{params:v})});const s=e.ref({labelWidth:120,span:24,minWidth:350,style:"padding:5px 10px"}),c=e.ref(!1);return{parentConfig:s,visible:c,formItemConfig:o,elComName:i,tableConfig:l,requestData:u,onChange:function(m,v){if(v!="el")return;l.value.elConfig.visible=!1,o.value.data.elData={};let g=o.value.data.baseData.el;i.value=V4[g],l.value.elConfig.visible=!0},saveData:async function(){var m,v,g;try{if(!await n.value.getSubmitData())return;let C=((m=r.value)==null?void 0:m.data.baseData.prop)||"",w=o.value.data.baseData.prop,b=((g=(v=o.value.data.elData)==null?void 0:v.attrs)==null?void 0:g.defaultValue)||"";if(Ke.has(a.value,w)&&w!=C)return ir.warning("查询参数重复,请修改");if(Ke.has(a.value,C)&&C!=w&&a.value&&delete a.value[C],a.value=Object.assign(a.value||{},{[w]:b}),r.value=Object.assign(r.value||{},Ke.cloneDeep(o.value)),o.value.data.field_id)return;let x=wo.get("CURRENT_SYSTEM"),E={field_code:o.value.data.baseData.prop,field_name:o.value.data.baseData.label,field_type:"2",json_data:JSON.stringify(o.value.data),project_code:x.project_code};Yet.postSaveFieldPool4Config(E)}catch(y){console.log("er",y)}},onChangeItem:m=>{console.log("JSON.parse(item.json_data)",JSON.parse(m.json_data)),l.value.elConfig.visible=!1,o.value.data=Ke.assign(o.value.data,JSON.parse(m.json_data),{field_id:m.id});let v=o.value.data.baseData.el;i.value=V4[v]}}}const Zet={class:"bg-blue-200 h-full flex flex-col"},Jet={style:{height:"calc(100% -50px)"},class:"overflow-y-auto flex-1"},Qet={key:0},ett={class:"text-center grow-0"},ttt=e.defineComponent({__name:"hsAttrForm",props:{current:{type:Object,default(){return{}}},data:{type:Object,default(){return{}}}},setup(t){const n=t,r=e.ref(),{parentConfig:o,visible:a,formItemConfig:l,elComName:i,tableConfig:u,requestData:s,onChange:c,saveData:d,onChangeItem:f}=Xet(n,r);return(p,m)=>{var y,C,w,b,x;const v=e.resolveComponent("bc-auto-complete"),g=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Zet,[e.createElementVNode("div",Jet,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(a),"onUpdate:modelValue":m[0]||(m[0]=E=>e.isRef(a)?a.value=E:null),expandConfig:{subTitle:"表单项代码"}},null,8,["modelValue"])),e.unref(a)?(e.openBlock(),e.createElementBlock("div",Qet,e.toDisplayString(e.unref(l)),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(u).baseConfig.visible,"onUpdate:modelValue":m[1]||(m[1]=E=>e.unref(u).baseConfig.visible=E),expandConfig:e.unref(u).baseConfig.title},null,8,["modelValue","expandConfig"])),e.createTextVNode(" "+e.toDisplayString((y=e.unref(l))==null?void 0:y.data.baseData)+" ",1),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{ref_key:"baseConfigRef",ref:r,parentConfig:e.unref(o),data:(C=e.unref(l))==null?void 0:C.data.baseData,config:e.unref(u).baseConfig.list,rules:e.unref(u).baseConfig.rules,onChange:e.unref(c)},{prop:e.withCtx(()=>[e.createVNode(v,{url:e.unref(s).url,qry_key:e.unref(s).qry_key,params:e.unref(s).params,type:"form",modelValue:e.unref(l).data.baseData.prop,"onUpdate:modelValue":m[2]||(m[2]=E=>e.unref(l).data.baseData.prop=E),onChange:e.unref(f)},null,8,["url","qry_key","params","modelValue","onChange"])]),_:1},40,["parentConfig","data","config","rules","onChange"])),[[e.vShow,e.unref(u).baseConfig.visible]]),e.createTextVNode(" "+e.toDisplayString((w=e.unref(l))==null?void 0:w.data.elData)+" ",1),(b=e.unref(l))!=null&&b.data.baseData.el?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(u).elConfig.visible,"onUpdate:modelValue":m[3]||(m[3]=E=>e.unref(u).elConfig.visible=E),expandConfig:e.unref(u).elConfig.title},null,8,["modelValue","expandConfig"])),e.unref(u).elConfig.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)),{key:0,data:(x=e.unref(l))==null?void 0:x.data.elData,ref:"elRef",isVModel:""},null,8,["data"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),e.createElementVNode("div",ett,[e.createVNode(g,{onClick:e.unref(d),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),ntt={class:"mx-auto flex flex-row h-full"},rtt={class:"flex-1 grow overflow-y-auto"},ott={key:0},att={key:0,class:"flex-none basis-1/4 ml-4"},ltt=e.defineComponent({name:"formPanel"}),itt=e.defineComponent({...ltt,props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue");let r=e.ref(Ke.cloneDeep(cet)),o=Ke.cloneDeep(d2),a=e.ref("");e.watch(()=>n.value,i=>{a.value!=(i==null?void 0:i.config_unique_id)&&(o.value=Ke.cloneDeep(d2),a.value=(i==null?void 0:i.config_unique_id)||"")},{immediate:!0});const l=i=>{o.value=i};return(i,u)=>{var s,c,d,f,p;return e.openBlock(),e.createElementBlock("div",ntt,[e.createElementVNode("div",rtt,[e.createVNode(xo,{modelValue:e.unref(yl).code.visible,"onUpdate:modelValue":u[0]||(u[0]=m=>e.unref(yl).code.visible=m),expandConfig:e.unref(yl).code},null,8,["modelValue","expandConfig"]),e.unref(yl).code.visible?(e.openBlock(),e.createElementBlock("div",ott,e.toDisplayString(n.value),1)):e.createCommentVNode("",!0),e.createVNode(zet,{modelValue:n.value,"onUpdate:modelValue":u[1]||(u[1]=m=>n.value=m)},null,8,["modelValue"]),(s=n.value)!=null&&s.form?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(yl).form.visible,"onUpdate:modelValue":u[2]||(u[2]=m=>e.unref(yl).form.visible=m),expandConfig:e.unref(yl).form},null,8,["modelValue","expandConfig"])),e.unref(yl).form.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,data:n.value.form.baseData,config:e.unref(r)},null,8,["data","config"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(yl).formItem.visible,"onUpdate:modelValue":u[3]||(u[3]=m=>e.unref(yl).formItem.visible=m),expandConfig:e.unref(yl).formItem},null,8,["modelValue","expandConfig"])),e.unref(yl).formItem.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Uet),{key:1,modelValue:n.value,"onUpdate:modelValue":u[4]||(u[4]=m=>n.value=m),current:e.unref(o),onChose:l},null,40,["modelValue","current"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),(((d=(c=n.value)==null?void 0:c.form)==null?void 0:d.formConfig)||[]).length>0&&e.unref(o).id?(e.openBlock(),e.createElementBlock("div",att,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ttt),{current:e.unref(o),data:(p=(f=n.value)==null?void 0:f.form)==null?void 0:p.formData},null,8,["current","data"]))])):e.createCommentVNode("",!0)])}}}),stt={class:"icon-selector w100 h100"},utt={class:"icon-selector-warp"},ctt={class:"icon-selector-warp-title"},dtt=e.defineComponent({name:"iconSelector"}),SP=e.defineComponent({...dtt,props:{prepend:{type:String,default:()=>"ele-Pointer"},placeholder:{type:String,default:()=>"请输入内容搜索图标或者选择图标"},size:{type:String,default:()=>"default"},title:{type:String,default:()=>"请选择图标"},disabled:{type:Boolean,default:()=>!1},clearable:{type:Boolean,default:()=>!0},emptyDescription:{type:String,default:()=>"无相关图标"},isShowPrepend:{type:Boolean,default:!0},modelValue:String},emits:["update:modelValue","get","clear"],setup(t,{emit:n}){const r=t,o=n,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./list-D2MZiZk8.js"))),l=e.ref(),i=e.reactive({fontIconPrefix:"",fontIconWidth:0,fontIconSearch:"",fontIconPlaceholder:"",fontIconTabActive:"ali",fontIconList:{ali:[],ele:[],awe:[]}}),u=()=>{if(!r.modelValue)return!1;i.fontIconSearch="",i.fontIconPlaceholder=r.modelValue},s=()=>{const b=d();setTimeout(()=>{b.filter(E=>E===i.fontIconSearch).length<=0&&(i.fontIconSearch="")},300)},c=e.computed(()=>{const b=d();if(!i.fontIconSearch)return b;let x=i.fontIconSearch.trim().toLowerCase();return b.filter(E=>{if(E.toLowerCase().indexOf(x)!==-1)return E})}),d=()=>{let b=[];return i.fontIconTabActive==="ali"?b=i.fontIconList.ali:i.fontIconTabActive==="ele"?b=i.fontIconList.ele:i.fontIconTabActive==="awe"&&(b=i.fontIconList.awe),b},f=()=>{if(r.modelValue==="")return i.fontIconPlaceholder=r.placeholder;i.fontIconPlaceholder=r.modelValue,i.fontIconPrefix=r.modelValue},p=()=>{let b="ali";return r.modelValue&&(r.modelValue.indexOf("iconfont")>-1?b="ali":r.modelValue.indexOf("ele-")>-1?b="ele":r.modelValue.indexOf("fa")>-1&&(b="awe"),i.fontIconTabActive=b),b},m=async b=>{if(b==="ali"){if(i.fontIconList.ali.length>0)return;await cg.ali().then(x=>{i.fontIconList.ali=x.map(E=>`iconfont ${E}`)})}else if(b==="ele"){if(i.fontIconList.ele.length>0)return;await cg.ele().then(x=>{i.fontIconList.ele=x})}else if(b==="awe"){if(i.fontIconList.awe.length>0)return;await cg.awe().then(x=>{i.fontIconList.awe=x.map(E=>`fa ${E}`)})}i.fontIconPlaceholder=r.placeholder,f()},v=b=>{m(b.paneName),l.value.focus()},g=b=>{i.fontIconPlaceholder=b,i.fontIconPrefix=b,o("get",i.fontIconPrefix),o("update:modelValue",i.fontIconPrefix),l.value.focus()},y=()=>{i.fontIconPrefix="",o("clear",i.fontIconPrefix),o("update:modelValue",i.fontIconPrefix)},C=()=>{e.nextTick(()=>{var b;i.fontIconWidth=(b=l.value.$el)==null?void 0:b.offsetWidth})},w=()=>{window.addEventListener("resize",()=>{C()})};return e.onMounted(()=>{m(p()),w(),C()}),e.watch(()=>r.modelValue,()=>{f(),p()}),(b,x)=>{const E=e.resolveComponent("SvgIcon"),k=e.resolveComponent("el-input"),S=e.resolveComponent("el-tab-pane"),B=e.resolveComponent("el-tabs"),$=e.resolveComponent("el-popover");return e.openBlock(),e.createElementBlock("div",stt,[e.createVNode(k,{modelValue:i.fontIconSearch,"onUpdate:modelValue":x[0]||(x[0]=D=>i.fontIconSearch=D),placeholder:i.fontIconPlaceholder,clearable:t.clearable,disabled:t.disabled,size:t.size,ref_key:"inputWidthRef",ref:l,onClear:y,onFocus:u,onBlur:s},e.createSlots({_:2},[t.isShowPrepend?{name:"prepend",fn:e.withCtx(()=>{var D,N;return[(i.fontIconPrefix===""?((D=t.prepend)==null?void 0:D.indexOf("ele-"))>-1:((N=i.fontIconPrefix)==null?void 0:N.indexOf("ele-"))>-1)?(e.openBlock(),e.createBlock(E,{key:0,name:i.fontIconPrefix===""?t.prepend:i.fontIconPrefix,class:"font14"},null,8,["name"])):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass([i.fontIconPrefix===""?t.prepend:i.fontIconPrefix,"font14"])},null,2))]}),key:"0"}:void 0]),1032,["modelValue","placeholder","clearable","disabled","size"]),e.createVNode($,{placement:"bottom",width:i.fontIconWidth,transition:"el-zoom-in-top","popper-class":"icon-selector-popper",trigger:"click","virtual-ref":l.value,"virtual-triggering":""},{default:e.withCtx(()=>[e.createElementVNode("div",utt,[e.createElementVNode("div",ctt,e.toDisplayString(t.title),1),e.createVNode(B,{modelValue:i.fontIconTabActive,"onUpdate:modelValue":x[1]||(x[1]=D=>i.fontIconTabActive=D),onTabClick:v},{default:e.withCtx(()=>[e.createVNode(S,{lazy:"",label:"ali",name:"ali"},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{list:c.value,empty:t.emptyDescription,prefix:i.fontIconPrefix,onGetIcon:g},null,8,["list","empty","prefix"])]),_:1}),e.createVNode(S,{lazy:"",label:"ele",name:"ele"},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{list:c.value,empty:t.emptyDescription,prefix:i.fontIconPrefix,onGetIcon:g},null,8,["list","empty","prefix"])]),_:1}),e.createVNode(S,{lazy:"",label:"awe",name:"awe"},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{list:c.value,empty:t.emptyDescription,prefix:i.fontIconPrefix,onGetIcon:g},null,8,["list","empty","prefix"])]),_:1})]),_:1},8,["modelValue"])])]),_:1},8,["width","virtual-ref"])])}}});function ftt(t,n){const r=e.ref({labelWidth:120,span:24,minWidth:350,style:"padding:5px 10px"});let o=e.ref({url:"/scmp-web/pri/btn_config/get_btn_config_page_list",value_key:"btn_label",params:{btn_name:"",project_code:""},qry_key:"btn_name"});return e.onMounted(()=>{let i=wo.get("CURRENT_SYSTEM"),u=o.value.params;u.project_code=i.project_code||"",o.value=Ke.assign(o.value,{params:u})}),{parentConfig:r,requestData:o,onChangeItem:i=>{t.value=Ke.assign(t.value,JSON.parse(i.json_data),{field_id:i.id})},getSubmitData:async()=>await n.value.getSubmitData()}}const BP=e.defineComponent({__name:"hsBtnItemConfig",props:e.mergeModels({config:{type:Object,default:()=>{}}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:n}){const r=e.useModel(t,"modelValue"),o=e.ref(),{parentConfig:a,requestData:l,onChangeItem:i,getSubmitData:u}=ftt(r,o);return n({getSubmitData:u}),(s,c)=>{const d=e.resolveComponent("bc-auto-complete");return e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{ref_key:"baseConfigRef",ref:o,parentConfig:e.unref(a),data:r.value,config:t.config.list,rules:t.config.rules},{key:e.withCtx(()=>[e.createVNode(d,{url:e.unref(l).url,qry_key:e.unref(l).qry_key,params:e.unref(l).params,type:"btn",value_key:e.unref(l).value_key,modelValue:r.value.key,"onUpdate:modelValue":c[0]||(c[0]=f=>r.value.key=f),onChange:e.unref(i)},null,8,["url","qry_key","params","value_key","modelValue","onChange"])]),btnIcon:e.withCtx(()=>[e.createVNode(SP,{placeholder:"请选择图标",clearable:"",isShowPrepend:!1,modelValue:r.value.btnIcon,"onUpdate:modelValue":c[1]||(c[1]=f=>r.value.btnIcon=f),title:""},null,8,["modelValue"])]),_:1},8,["parentConfig","data","config","rules"])}}});let ptt=e.ref({id:"",tableName:"表格配置名称",method:"get",is_slot_loading:!1,is_slot_empty:!1,is_apply_page:!0,isCloseInitData:!1,table_page_data:{loading:!1,currentPage:1,pageSize:10,total:0,pagerCount:7,pageSizes:"string=[10,15,20,50,100]",align:"right",border:!1,background:!1,perfect:!1,autoHidden:!1},height:"auto",stripe:!0,border:"none",round:!1,size:"small",loading:!1,align:"left",headerAlign:"left",footerAlign:"left",showHeader:!0,showFooter:!1,columnConfig:{useKey:!1,isCurrent:!1,isHover:!0,resizable:!1,maxFixedSize:4},rowConfig:{useKey:!1,keyField:"_X_ROW_KEY",isCurrent:!0,isHover:!0},resizeConfig:{refreshDelay:250},resizableConfig:{minWidth:"auto"},seqConfig:{},sortConfig:{defaultSort:{},multiple:!1,chronological:!1,remote:!1,showIcon:!0},filterConfig:{remote:!1,filterMethod:"",showIcon:!0},radioConfig:{strict:!0,reserve:!1,highlight:!1},checkboxConfig:{},tooltipConfig:{},expandConfig:{expandAll:!1,accordion:!1,trigger:"default",lazy:!1,reserve:!1,showIcon:!0},treeConfig:{transform:!1,rowField:"id",parentField:"parentId",childrenField:"children",indent:20,showLine:!1,expandAll:!1,accordion:!1,trigger:"default",lazy:!1,hasChildField:"hasChild",reserve:!1,showIcon:!0},editConfig:{trigger:"click",enabled:!0,mode:"cell",showIcon:!0,showStatus:!1,showUpdateStatus:!1,showInsertStatus:!1,showAsterisk:!0,autoClear:!0},validConfig:{autoPos:!0,showMessage:!0},editRules:{},emptyRender:{},loadingConfig:{},customConfig:{storage:{}},scrollX:{},scrollY:{}}),vtt=[{prop:"id",label:"表格唯一标识",type:"",tooltip:"唯一标识(被某些特定的功能所依赖)",disabled:!0,el:"hs-input"},{prop:"tableName",label:"表格配置名称",type:"",el:"hs-input"},{prop:"requestUrl",label:"请求地址",type:"",el:"hs-input"},{prop:"method",label:"请求方式",type:"",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"proxy",label:"系统代理",type:"",el:"hs-input"},{prop:"data",label:"表格数据",tooltip:"表格数据(与 loadData 行为一致,更新数据是不会重置状态)",type:"",el:"hs-input"},{prop:"height",label:"表格的高度",type:"",disabled:!0,tooltip:"表格的高度;支持铺满父容器或者固定高度,如果设置 auto 为铺满父容器(如果设置为 auto,则必须确保存在父节点且不允许存在相邻元素)",el:"hs-input"},{prop:"minHeight",label:"表格最小高度",type:"",el:"hs-input"},{prop:"maxHeight",label:"表格的最大高度",type:"",el:"hs-input"},{prop:"border",label:"是否带有边框",type:"",op:[{label:"默认",value:"default"},{label:"完整边框",value:"full"},{label:"外边框",value:"outer"},{label:"内边框",value:"inner"},{label:"无边框",value:"none"}],el:"hs-select",cel:"hs-option"},{prop:"size",label:"表格的尺寸",type:"",op:[{label:"中等",value:"medium"},{label:"小",value:"small"},{label:"超小",value:"mini"}],el:"hs-select",cel:"hs-option"},{prop:"align",label:"所有的列对齐方式",type:"",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}],el:"hs-select",cel:"hs-option"},{prop:"headerAlign",label:"所有的表头列的对齐方式",tooltip:"所有的表头列的对齐方式",type:"",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}],el:"hs-select",cel:"hs-option"},{prop:"footerAlign",label:"所有的表尾列的对齐方式",type:"",tooltip:"所有的表尾列的对齐方式",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}],el:"hs-select",cel:"hs-option"},{prop:"emptyText",label:"空数据时显示的内容",type:"",el:"hs-input"},{prop:"showOverflow",label:"设置所有内容溢出显示",tooltip:"设置所有内容过长时显示为省略号(如果是固定列建议设置该值,提升渲染速度)",type:"",op:[{label:"省略号",value:"ellipsis"},{label:"title",value:"title"},{label:"tooltip",value:"tooltip"}],el:"hs-select",cel:"hs-option"},{prop:"showHeaderOverflow",label:"设置表头内容溢出显示",type:"",tooltip:"设置表头所有内容过长时显示为省略号",op:[{label:"省略号",value:"ellipsis"},{label:"title",value:"title"},{label:"tooltip",value:"tooltip"}],el:"hs-select",cel:"hs-option"},{prop:"showFooterOverflow",label:"设置表尾内容溢出显示",type:"",tooltip:"设置表尾所有内容过长时显示为省略号",op:[{label:"省略号",value:"ellipsis"},{label:"title",value:"title"},{label:"tooltip",value:"tooltip"}],el:"hs-select",cel:"hs-option"},{prop:"showHeader",label:"是否显示表头",type:"",el:"hs-switch"},{prop:"keepSource",label:"保持原始值的状态",type:"",tooltip:"保持原始值的状态,被某些功能所依赖,比如编辑状态、还原数据等(开启后影响性能,具体取决于数据量)",el:"hs-switch"},{prop:"loading",label:"表格是否显示加载中",type:"",el:"hs-switch"},{prop:"round",label:"是否为圆角边框",type:"",el:"hs-switch"},{prop:"stripe",label:"是否带有斑马纹",type:"",tooltip:"是否带有斑马纹(需要注意的是,在可编辑表格场景下,临时插入的数据不会有斑马纹样式)",el:"hs-switch"},{prop:"autoResize",label:"监听父元素变化重新计算表格",tooltip:"自动监听父元素的变化去重新计算表格(对于父元素可能存在动态变化、显示隐藏的容器中、列宽异常等场景中的可能会用到)",type:"",el:"hs-switch"},{prop:"syncResize",label:"随属性的变化重新计算表格",type:"",tooltip:"自动跟随某个属性的变化去重新计算表格,和手动调用 recalculate 方法是一样的效果(对于通过某个属性来控制显示/隐藏切换时可能会用到)",el:"hs-switch"},{prop:"showFooter",label:"是否显示表尾",el:"hs-switch"},{prop:"is_slot_loading",label:"自定义加载中模板",el:"hs-switch"},{prop:"is_slot_empty",label:"自定义空数据时显示模板",el:"hs-switch"},{prop:"rowClassName",label:"给行附加样式类",tooltip:"给行附加 className",type:"textarea",el:"hs-input"},{prop:"cellClassName",label:"给单元格附加样式类",type:"textarea",tooltip:"给单元格附加 className",el:"hs-input"},{prop:"headerRowClassName",label:"给表头的行附加样式类",tooltip:"给表头的行附加 className",type:"textarea",el:"hs-input"},{prop:"headerCellClass-name",label:"给表头的单元格附加样式类",type:"textarea",tooltip:"给表头的单元格附加 className",el:"hs-input"},{prop:"footerRowClassName",label:"给表尾的行附加样式类",tooltip:"给表尾的行附加 className",type:"textarea",el:"hs-input"},{prop:"footerCellClassName",label:"给表尾的单元格附加样式类",type:"textarea",el:"hs-input"},{prop:"footerMethod",label:"表尾的数据获取方法",tooltip:"表尾的数据获取方法,返回一个二维数组",type:"textarea",el:"hs-input"},{prop:"mergeCells",label:"临时合并指定的单元格",tooltip:"临时合并指定的单元格 (不能用于展开行,不建议用于固定列、树形结构)",type:"textarea",el:"hs-input"},{prop:"mergeFooterItems",label:"临时合并表尾",tooltip:"临时合并表尾 (不能用于展开行,不建议用于固定列、树形结构)",type:"textarea",el:"hs-input"},{prop:"params",label:"自定义参数",type:"textarea",el:"hs-input"},{prop:"is_apply_page",label:"是否分页",el:"hs-switch"},{prop:"isCloseInitData",label:"是否关闭初始化数据",tooltip:"是否关闭第一次加载数据",el:"hs-switch"}];const mtt=[{key:"columnConfig",visible:!1,title:"列的默认参数",columnConfig:[{prop:"useKey",label:"是否为每列设置key属性",tooltip:"是否需要为每一列的 VNode 设置 key 属性",type:"",el:"hs-switch"},{prop:"isCurrent",label:"点击列头当前列是否高亮",tooltip:"当鼠标点击列头时,是否要高亮当前列",type:"",el:"hs-switch"},{prop:"isHover",label:"当鼠标移到列头时,是否要高亮当前头",tooltip:"当鼠标移到列头时,是否要高亮当前列头",type:"",el:"hs-switch"},{prop:"resizable",label:"每一列是否启用列宽调整",type:"",tooltip:"每一列是否启用列宽调整",el:"hs-switch"},{prop:"width",label:"每一列的宽度",tooltip:"每一列的宽度",type:"",el:"hs-input"},{prop:"minWidth",label:"每一列的最小宽度",tooltip:"每一列的最小宽度",type:"",el:"hs-input"},{prop:"maxFixedSize",label:"固定列允许设置的最大数量",tooltip:"固定列允许设置的最大数量(如果是分组,则一个分组算一个",type:"number",el:"hs-input-number"},{prop:"header-export-method",label:"每一列的自定义表头单元格数据导出方法",tooltip:"每一列的自定义表头单元格数据导出方法,返回自定义的标题",type:"textarea",el:"hs-input"},{prop:"export-method",label:"每一列的自定义单元格数据导出方法",tooltip:"每一列的自定义单元格数据导出方法,返回自定义的值",type:"textarea",el:"hs-input"},{prop:"footer-export-method",label:"每一列的自定义表尾单元格数据导出方法",tooltip:"每一列的自定义表尾单元格数据导出方法,返回自定义的值",type:"textarea",el:"hs-input"}]},{key:"rowConfig",visible:!1,title:"行配置信息",rowConfig:[{prop:"useKey",label:"是否为每行设置key属性",type:"",tooltip:"是否需要为每一行的 VNode 设置 key 属性",el:"hs-switch"},{prop:"keyField",label:"自定义行主键的字段名",type:"",tooltip:"自定义行数据唯一主键的字段名(默认自动生成)",el:"hs-input"},{prop:"isCurrent",label:"点击行是否要高亮当前行",tooltip:"当鼠标点击行时,是否要高亮当前行",type:"",el:"hs-switch"},{prop:"isHover",label:"鼠标悬浮行是否高亮显示",tooltip:"当鼠标移到行时,是否要高亮当前行",type:"",el:"hs-switch"},{prop:"height",label:"每一行的高度",tooltip:"只对 show-overflow 有效,每一行的高度",type:"number",el:"hs-input-number"}]},{key:"resizeConfig",visible:!1,title:"响应式布局配置项",resizeConfig:[{prop:"refreshDelay",label:"刷新延时时长(毫秒)",type:"number",el:"hs-input-number",tooltip:"只对 auto-resize 有效,刷新延时,当父容器发生变化时,至少多少毫秒刷新布局"}]},{key:"resizableConfig",visible:!1,title:"列宽拖动配置项",resizableConfig:[{prop:"minWidth",label:"列宽拖动的最小宽度",type:"",tooltip:"列宽拖动的最小宽度",el:"hs-input"}]},{key:"seqConfig",visible:!1,title:"序号配置项",seqConfig:[{prop:"seqMethod",label:"自定义序号的方法",type:"textarea",el:"hs-input",tooltip:"自定义序号的方法返回处理后的值"}]},{key:"sortConfig",visible:!1,title:"排序配置项",sortConfig:[{prop:"orders",label:"自定义序号的方法",type:"textarea",tooltip:"自定义轮转顺序",el:"hs-input"},{prop:"sortMethod",label:"全局排序方法",type:"textarea",tooltip:"全局排序方法,当触发排序时会调用该函数返回排序后的列表",el:"hs-input"},{prop:"multiple",label:"是否启用多列组合筛选",type:"",tooltip:"是否启用多列组合筛选",el:"hs-switch"},{prop:"chronological",label:"是否按照触发顺序进行排序",type:"",tooltip:"只对 multiple 有效,是否按照先后触发顺序进行排序",el:"hs-switch"},{prop:"remote",label:"所有列是否使用服务端排序",type:"",tooltip:"所有列是否使用服务端排序,如果设置为 true 则不会对数据进行处理",el:"hs-switch"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"点击按钮",value:"default"},{label:"点击表头",value:"cell"}]},{prop:"showIcon",label:"是否显示列头排序图标",type:"",tooltip:"是否显示列头排序图标",el:"hs-switch"},{prop:"iconAsc",label:"自定义升序的图标",tooltip:"自定义升序的图标",type:"",el:"hs-input"},{prop:"iconDesc",label:"自定义降序的图标",tooltip:"自定义降序的图标",type:"",el:"hs-input"}],second_config:[{key:"defaultSort",visible:!1,title:"默认排序",defaultSort:[{prop:"field",label:"列字段名",el:"hs-input"},{prop:"order",label:"排序方式",el:"hs-input"}]}]},{key:"filterConfig",visible:!1,title:"筛选配置项",filterConfig:[{prop:"remote",label:"所有列是否使用服务端筛选",type:"",tooltip:"所有列是否使用服务端筛选,如果设置为 true 则不会对数据进行处理",el:"hs-switch"},{prop:"filterMethod",label:"全局筛选方法",type:"textarea",tooltip:"全局筛选方法,当触发筛选时会调用该函数返回是否有效",el:"hs-input"},{prop:"showIcon",label:"是否显示列头筛选图标",tooltip:"是否显示列头筛选图标",type:"",el:"hs-switch"},{prop:"iconNone",label:"自定义无条件时显示的图标",type:"",tooltip:"自定义无条件时显示的图标",el:"hs-input"},{prop:"iconMatch",label:"自定义带条件时显示的图标",tooltip:"自定义带条件时显示的图标",type:"",el:"hs-input"},{prop:"confirmButtonText",label:"自定义确认按钮文本",tooltip:"自定义确认按钮文本",type:"",el:"hs-input"},{prop:"resetButtonText",label:"自定义重置按钮文本",type:"",el:"hs-input"}]},{key:"radioConfig",visible:!1,title:"单选框配置项",radioConfig:[{prop:"strict",label:"严格模式,选中后不能取消",tooltip:"严格模式,选中后不能取消",type:"",el:"hs-switch"},{prop:"reserve",label:"是否保留勾选状态",tooltip:"是否保留勾选状态,例如:数据被刷新或者分页之后还保留之前选中的状态(需要有 rowConfig.keyField)",type:"",el:"hs-switch"},{prop:"labelField",label:"单选框显示的字段名",tooltip:"单选框显示的字段名,可以直接显示在单选框中",type:"",el:"hs-input"},{prop:"checkRowKey",label:"默认选中指定行",tooltip:"默认选中指定行(只会在初始化时被触发一次,需要有 rowConfig.keyField)",type:"",el:"hs-input"},{prop:"visibleMethod",label:"是否允许勾选的方法",tooltip:"是否允许勾选的方法,该方法,的返回值用来决定这一行的 radio 是否显示",type:"textarea",el:"hs-input"},{prop:"checkMethod",label:"是否允许选中的方法",tooltip:"是否允许选中的方法,该方法的返回值用来决定这一行的 radio 是否可以选中",type:"textarea",el:"hs-input"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"highlight",label:"高亮选中行",type:"",el:"hs-switch"}]},{key:"checkboxConfig",visible:!1,title:"复选框配置项",checkboxConfig:[{prop:"labelField",label:"复选框显示的字段名",tooltip:"复选框显示的字段名,可以直接显示在复选框中",type:"",el:"hs-input"},{prop:"checkField",label:"绑定选中属性",tooltip:"绑定选中属性(行数据中必须存在该字段,否则无效)",type:"",el:"hs-input"},{prop:"indeterminateField",label:"绑定半选属性",tooltip:"绑定半选属性(行数据中必须存在该字段,否则无效)",type:"",el:"hs-input"},{prop:"showHeader",label:"是否显示全选按钮",tooltip:"是否显示全选按钮(如果 checkStrictly=true 则默认为 false)",type:"",el:"hs-switch"},{prop:"checkAll",label:"默认勾选所有",tooltip:"默认勾选所有(只会在初始化时被触发一次)",type:"",el:"hs-switch"},{prop:"checkRowKeys",label:"默认勾选指定行",type:"textarea",tooltip:"默认勾选指定行(只会在初始化时被触发一次,需要有 rowConfig.keyField)",el:"hs-input"},{prop:"checkStrictly",label:"是否严格的遵循父子不互相关联的做法",type:"",tooltip:"是否严格的遵循父子不互相关联的做法",el:"hs-switch"},{prop:"strict",label:"严格模式",type:"",tooltip:"严格模式,当数据为空或全部禁用时,列头的复选框为禁用状态",el:"hs-switch"},{prop:"visibleMethod",label:"是否允许勾选的方法",tooltip:"是否允许勾选的方法,该方法,的返回值用来决定这一行的 checkbox 是否显示",type:"textarea",el:"hs-input"},{prop:"checkMethod",label:"是否允许勾选的方法",tooltip:"是否允许勾选的方法,该方法的返回值用来决定这一行的 checkbox 是否可以勾选",type:"textarea",el:"hs-input"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"highlight",label:"高亮勾选行",type:"",el:"hs-switch"},{prop:"reserve",label:"是否保留勾选状态",tooltip:"是否保留勾选状态,对于某些场景可能会用到,比如数据被刷新之后还保留之前选中的状态(需要有 rowConfig.keyField)",type:"",el:"hs-switch"},{prop:"range",label:"开启复选框范围选择功能",type:"",tooltip:"开启复选框范围选择功能(启用后通过鼠标在复选框的列内滑动选中或取消指定行)",el:"hs-switch"},{prop:"isShiftKey",label:"开启复选框指定行选择功能",tooltip:"开启复选框指定行选择功能(启用后通过鼠标点击和 shift 键选取指定范围的行)",type:"",el:"hs-switch"}]},{key:"tooltipConfig",visible:!1,title:"tooltip 配置项",tooltipConfig:[{prop:"showAll",label:"所有单元格开启工具提示",tooltip:"所有单元格开启工具提示",type:"",el:"hs-switch"},{prop:"theme",label:"主题颜色",tooltip:"tooltip 的主题颜色",type:"",el:"hs-select",cel:"hs-option",op:[{label:"暗黑",value:"dark"},{label:"明亮",value:"light"}]},{prop:"enterable",label:"鼠标是否可进入到工具提示中",tooltip:"鼠标是否可进入到工具提示中",type:"",el:"hs-switch"},{prop:"enterDelay",label:"鼠标移入后延时多少才显示工具提示",tooltip:"鼠标移入后延时多少才显示工具提示",type:"number",el:"hs-input-number"},{prop:"leaveDelay",label:"鼠标移出后延时多少才隐藏工具提示",type:"number",el:"hs-input-number"},{prop:"contentMethod",label:"通过返回值来重写默认的提示内容",type:"textarea",el:"hs-input",tooltip:"该方法可以通过返回值来重写默认的提示内容,可以返回 null 使用默认的提示内容,可以返回空内容去掉指定单元格的提示内容"}]},{key:"expandConfig",visible:!1,title:"展开行配置项(不支持虚拟滚动)",expandConfig:[{prop:"labelField",label:"展开列显示的字段名",type:"",tooltip:"展开列显示的字段名,可以直接显示在单元格中",el:"hs-input"},{prop:"expandAll",label:"默认展开所有行",type:"",tooltip:"默认展开所有行(只会在初始化时被触发一次)",el:"hs-switch"},{prop:"expandRowKeys",label:"默认展开指定行",type:"textarea",tooltip:"默认展开指定行(只会在初始化时被触发一次,需要有 rowConfig.keyField)",el:"hs-input"},{prop:"accordion",label:"每次只能展开一行",type:"",el:"hs-switch"},{prop:"height",label:"展开内容的高度",tooltip:"展开内容的高度,默认自适应高度",type:"",el:"hs-input"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"lazy",label:"是否使用懒加载",type:"",el:"hs-switch"},{prop:"loadMethod",label:"该方法用于异步加载展开后的内容",type:"textarea",tooltip:"该方法用于异步加载展开后的内容(必须返回 Promise<any[]> 对象)",el:"hs-input"},{prop:"toggleMethod",label:"该方法在展开或关闭触发之前调用",tooltip:"该方法在展开或关闭触发之前调用,可以通过返回值来决定是否允许继续执行",type:"textarea",el:"hs-input"},{prop:"visibleMethod",label:"是否允许显示展开按钮",tooltip:"该函数的返回值用来决定是否允许显示展开按钮",type:"textarea",el:"hs-input"},{prop:"reserve",label:"是否保留展开状态",type:"",tooltip:"是否保留展开状态,对于某些场景可能会用到,比如数据被刷新之后还保留之前展开的状态(需要有 rowConfig.keyField)",el:"hs-switch"},{prop:"showIcon",label:"是否显示图标按钮",type:"",el:"hs-switch"},{prop:"iconOpen",label:"自定义展开后显示的图标",type:"",el:"hs-input"},{prop:"iconClose",label:"自定义收起后显示的图标",type:"",el:"hs-input"},{prop:"iconLoaded",label:"自定义懒加载中显示的图标",type:"",el:"hs-input"}]},{key:"treeConfig",visible:!1,title:"树形结构配置项",treeConfig:[{prop:"transform",label:"自动将列表转为树结构",tooltip:"自动将列表转为树结构(支持虚拟滚动)",type:"",el:"hs-switch"},{prop:"rowField",label:"树节点的字段名",tooltip:"用于 treeConfig.transform,树节点的字段名",type:"",el:"hs-input"},{prop:"parentField",label:"树父节点的字段名",tooltip:"用于 treeConfig.transform,树父节点的字段名",type:"",el:"hs-input"},{prop:"childrenField",label:"树子节点的字段名",type:"",el:"hs-input"},{prop:"indent",label:"树节点的缩进",type:"number",el:"hs-input-number"},{prop:"showLine",label:"树节点的连接线",type:"",tooltip:"树节点的连接线(启用连接线会降低渲染性能)",el:"hs-switch"},{prop:"expandAll",label:"默认展开所有子孙树节点",type:"",tooltip:"默认展开所有子孙树节点(只会在初始化时被触发一次)",el:"hs-switch"},{prop:"expandRowKeys",label:"默认展开指定树节点",type:"textarea",el:"hs-input",tooltip:"默认展开指定树节点(只会在初始化时被触发一次,需要有 rowConfig.keyField)"},{prop:"accordion",label:"同级节点每次只展开一个",tooltip:"对于同一级的节点,每次只能展开一个",type:"",el:"hs-switch"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"lazy",label:"是否使用懒加载",type:"",tooltip:"是否使用懒加载(启用后只有指定 hasChild 字段的节点才允许被点击)",el:"hs-switch"},{prop:"hasChildField",label:"标识是否存在子节点",tooltip:"只对 lazy 启用后有效,标识是否存在子节点,从而控制是否允许被点击",type:"",el:"hs-input"},{prop:"loadMethod",label:"该方法用于异步加载子节点",type:"textarea",tooltip:"该方法用于异步加载子节点(必须返回 Promise<any[]> 对象)",el:"hs-input"},{prop:"toggleMethod",label:"在展开或关闭触发判断是否继续执行",tooltip:"该方法在展开或关闭触发之前调用,可以通过返回值来决定是否允许继续执行",type:"textarea",el:"hs-input"},{prop:"reserve",label:"是否保留展开状态",type:"",tooltip:"是否保留展开状态,对于某些场景可能会用到,比如数据被刷新之后还保留之前展开的状态(需要有 rowConfig.keyField)",el:"hs-switch"},{prop:"showIcon",label:"是否显示图标按钮",type:"",el:"hs-switch"},{prop:"iconOpen",label:"自定义展开后显示的图标",type:"",el:"hs-input"},{prop:"iconClose",label:"自定义收起后显示的图标",type:"",el:"hs-input"},{prop:"iconLoaded",label:"自定义懒加载中显示的图标",type:"",el:"hs-input"}]},{key:"editConfig",visible:!1,title:"可编辑配置项",editConfig:[{prop:"trigger",label:"触发方式",type:"",el:"hs-select",cel:"hs-option",op:[{label:"手动触发(用于行编辑模式)",value:"manual"},{label:"点击触发编辑",value:"click"},{label:"双击触发编辑",value:"dblclick"}]},{prop:"enabled",label:"是否启用",type:"",el:"hs-switch"},{prop:"mode",label:"编辑模式",type:"",el:"hs-select",cel:"hs-option",op:[{label:"单元格编辑模式",value:"cell"},{label:"行编辑模式",value:"row"}]},{prop:"showIcon",label:"是否显示列头编辑图标",tooltip:"是否显示列头编辑图标",type:"",el:"hs-switch"},{prop:"showStatus",label:"是否显示单元格新增与修改状态",type:"",tooltip:"只对 keep-source 开启有效,是否显示单元格新增与修改状态",el:"hs-switch"},{prop:"showUpdateStatus",label:"是否显示单元格修改状态",type:"",tooltip:"只对 keep-source 开启有效,是否显示单元格修改状态",el:"hs-switch"},{prop:"showInsertStatus",label:"是否显示单元格新增状态",tooltip:"只对 keep-source 开启有效,是否显示单元格新增状态",type:"",el:"hs-switch"},{prop:"showAsterisk",label:"是否显示必填字段的红色星号",tooltip:"是否显示必填字段的红色星号",type:"",el:"hs-switch"},{prop:"autoClear",label:"点空白处是否清除激活状态",type:"",tooltip:"当点击非编辑列之后,是否自动清除单元格的激活状态",el:"hs-switch"},{prop:"beforeEditMethod",label:"该单元格是否允许编辑",tooltip:"该方法的返回值用来决定该单元格是否允许编辑",type:"textarea",el:"hs-input"},{prop:"icon",label:"自定义可编辑列的状态图标",type:"",el:"hs-input"}]},{key:"validConfig",visible:!1,title:"校验配置项",validConfig:[{prop:"autoPos",label:"是否自动定位到校验不通过的单元格",tooltip:"是否自动定位到校验不通过的单元格",type:"",el:"hs-switch"},{prop:"showMessage",label:"是否显示错误显示",type:"",el:"hs-switch"}]},{key:"editRules",visible:!1,title:"校验规则配置项",editRules:[{prop:"required",label:"是否必填",type:"",el:"hs-switch"},{prop:"min",label:"校验值最小长度",tooltip:"校验值最小长度(如果 type=number 则比较值大小)",type:"number",el:"hs-input-number"},{prop:"max",label:"校验值最大长度",tooltip:"校验值最大长度(如果 type=number 则比较值大小)",type:"number",el:"hs-input-number"},{prop:"type",label:"数据校验的类型",type:"",op:[{label:"数值",value:"number"},{label:"字符串",value:"string"},{label:"数组",value:"array"}],el:"hs-select",cel:"hs-option"},{prop:"pattern",label:"正则校验",type:"textarea",el:"hs-input"},{prop:"validator",label:'"自定义校验方法',tooltip:'自定义校验方法返回一个 Error 或者 Promise<new Error("提示消息")>',type:"textarea",el:"hs-input"},{prop:"message",label:"校验提示内容",tooltip:"校验提示内容(支持开启国际化)",type:"",el:"hs-input"}]},{key:"emptyRender",visible:!1,title:"空内容渲染配置项",emptyRender:[{prop:"name",label:"渲染器名称",type:"",el:"hs-input"}]},{key:"loadingConfig",visible:!1,title:"加载中配置项",loadingConfig:[{prop:"icon",label:"显示图标",type:"",el:"hs-input"},{prop:"text",label:"显示文字",type:"",el:"hs-input"}]},{key:"customConfig",visible:!1,title:"个性化信息配置项",customConfig:[{prop:"checkMethod",label:"自定义列是否允许列选中的方法",tooltip:"自定义列是否允许列选中的方法,该方法的返回值用来决定这一列的 checkbox 是否可以选中",type:"textarea",el:"hs-input"}],second_config:[{key:"storage",visible:!1,title:"是否启用缓存本地保存",storage:[{prop:"visible",label:"启用显示/隐藏列状态缓存",tooltip:"启用显示/隐藏列状态缓存",type:"",el:"hs-switch"},{prop:"resizable",label:"启用列宽状态缓存",type:"",el:"hs-switch"},{prop:"fixed",label:"启用固定列状态缓存",type:"",el:"hs-switch"}]}]},{key:"scrollX",visible:!1,title:"横向虚拟滚动配置",scrollX:[{prop:"enabled",label:"是否启用",el:"hs-switch"},{prop:"gt",label:"指定大于指定列时自动启动横向虚拟滚动",tooltip:"指定大于指定列时自动启动横向虚拟滚动,如果为 0 则总是启用;如果需要关闭,可以设置 enabled 为 false",type:"number",el:"hs-input-number"},{prop:"oSize",label:"指定每次渲染的数据偏移量",tooltip:"指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久(对于低性能浏览器可以设置大一点,减低渲染次数)",type:"number",el:"hs-input-number"},{prop:"scrollToLeftOnChange",label:"数据改变滚动条是否复位",tooltip:"当数据源被更改时,自动将横向滚动条滚动到左侧",type:"",el:"hs-switch"}]},{key:"scrollY",visible:!1,title:"纵向虚拟滚动配置",scrollY:[{prop:"enabled",label:"是否启用",type:"",el:"hs-switch"},{prop:"mode",label:"滚动模式",type:"",op:[{label:"默认",value:"default"},{label:"无限滚动",value:"wheel"}],el:"hs-select",cel:"hs-option"},{prop:"gt",label:"指定大于指定行时自动启动纵向虚拟滚动",tooltip:"指定大于指定行时自动启动纵向虚拟滚动,如果为 0 则总是启用;如果需要关闭,可以设置 enabled 为 false(注:启用纵向虚拟滚动之后将不能支持动态行高)",type:"number",el:"hs-input-number"},{prop:"oSize",label:"指定每次渲染的数据偏移量",tooltip:"指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久(对于低性能浏览器可以设置大一点,减低渲染次数)",type:"number",el:"hs-input-number"},{prop:"scrollToTopOnChange",label:"数据改变滚动条是否复位",tooltip:"当数据源被更改时,自动将纵向滚动条滚动到顶部",type:"",el:"hs-switch"}]}],htt=[{prop:"size",label:"尺寸",el:"hs-select",cel:"hs-option",op:[{label:"中等",value:"medium"},{label:"小号",value:"small"},{label:"迷你",value:"mini"}]},{prop:"loading",label:"是否加载中",el:"hs-switch"},{prop:"layouts",label:"自定义布局",type:"textarea",el:"hs-input"},{prop:"currentPage",label:"当前页",type:"number",el:"hs-input-number"},{prop:"pageSize",label:"每页大小",type:"number",el:"hs-input-number"},{prop:"total",label:"总条数",type:"number",el:"hs-input-number"},{prop:"pagerCount",label:"显示页码按钮的数量",type:"number",el:"hs-input-number"},{prop:"pageSizes",label:"每页大小选项列表",type:"textarea",el:"hs-input"},{prop:"align",label:"对齐方式",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"border",label:"带边框",el:"hs-switch"},{prop:"background",label:"带背景颜色",el:"hs-switch"},{prop:"perfect",label:"配套的样式",el:"hs-switch"},{prop:"className",label:"给分页附加 className",type:"textarea",el:"hs-input"},{prop:"autoHidden",label:"当只有一页时自动隐藏",el:"hs-switch"},{prop:"iconPrevPage",label:"自定义上一页图标",el:"hs-input"},{prop:"iconJumpPrev",label:"自定义向上跳页图标",el:"hs-input"},{prop:"iconJumpNext",label:"自定义向下跳页图标",el:"hs-input"},{prop:"iconnextPage",label:"自定义下一页图标",el:"hs-input"},{prop:"iconJumpMore",label:"自定义跳页显示图标",el:"hs-input"}],gtt=e.ref({type:null,field:"",title:"展示列名称",isSlot:!1,isApply:!0,isShow:!0,returnValueType:"",minWidth:"100",resizable:!1,visible:!0,sortType:"auto",filterMultiple:!0,cellType:"auto",treeNode:!1,filters:[],filterRender:{},titlePrefix:{},cellRender:{},editRender:{},contentRender:{}}),btt={seq:"序号",checkbox:"复选框",radio:"单选框",expand:"展开行",html:"HTML 标签"},ytt=e.ref([{prop:"type",label:"列的类型",tooltip:"列的类型(部分功能需要设置 columnConfig.useKey",type:"",el:"hs-select",cel:"hs-option",op:[{label:"序号",value:"seq"},{label:"复选框",value:"checkbox"},{label:"单选框",value:"radio"},{label:"展开行",value:"expand"},{label:"HTML 标签",value:"html"}]},{prop:"title",label:"列标题",type:"",tooltip:"列标题(支持开启国际化)",el:"hs-input"},{prop:"field",label:"列字段名",slotValue:"field",tooltip:"列字段名(注:属性层级越深,渲染性能就越差,例如:aa.bb.cc.dd.ee)",type:"",el:"hs-input"},{prop:"returnValueType",label:"返回值类型",el:"hs-select",cel:"hs-option",op:[{label:"String",value:"string"},{label:"Number",value:"number"},{label:"String|Number",value:"string|number"},{label:"Boolean",value:"boolean"}]},{prop:"isSlot",label:"是否自定义插槽",el:"hs-switch",tooltip:"下拉选择,自定义模板,选择的名称就是模板名称"},{prop:"el",label:"插槽模版",tooltip:"下拉选择组件类型,组件类型取自配置文件",el:"hs-select",cel:"hs-option",op:xP.value},{prop:"isApply",label:"是否启用",el:"hs-switch"},{prop:"isShow",label:"是否显示",el:"hs-switch"},{prop:"width",label:"列宽度",type:"",tooltip:"列宽度(如果为空则均匀分配剩余宽度,如果全部列固定了,可能会存在宽屏下不会铺满,可以配合 % 或者 min-width 布局)",el:"hs-input"},{prop:"minWidth",label:"最小列宽度",type:"",tooltip:"最小列宽度;会自动将剩余空间按比例分配",el:"hs-input"},{prop:"resizable",label:"是否允许调整列宽",type:"",tooltip:"列是否允许拖动列宽调整大小",el:"hs-switch"},{prop:"visible",label:"默认是否显示",type:"",el:"hs-switch"},{prop:"fixed",label:"列固定位置",tooltip:"将列固定在左侧或者右侧(注意:固定列应该放在左右两侧的位置)",type:"",el:"hs-select",cel:"hs-option",op:[{label:"不固定",value:""},{label:"固定左侧",value:"left"},{label:"固定右侧",value:"right"}]},{prop:"align",label:"列对齐方式",type:"",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"headerAlign",label:"表头列的对齐方式",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"footerAlign",label:"表尾列的对齐方式",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"showOverflow",label:"当内容过长时显示为省略号",el:"hs-select",cel:"hs-option",op:[{label:"只显示省略号",value:"ellipsis"},{label:"显示原生title",value:"title"},{label:"显示tooltip提示",value:"tooltip"}]},{prop:"showHeaderOverflow",label:"当表头内容过长时显示为省略号",el:"hs-select",cel:"hs-option",op:[{label:"只显示省略号",value:"ellipsis"},{label:"显示原生title",value:"title"},{label:"显示tooltip提示",value:"tooltip"}]},{prop:"showFooterOverflow",label:"当表尾内容过长时显示为省略号",el:"hs-select",cel:"hs-option",op:[{label:"只显示省略号",value:"ellipsis"},{label:"显示原生title",value:"title"},{label:"显示tooltip提示",value:"tooltip"}]},{prop:"className",label:"给单元格附加 className",type:"textarea",el:"hs-input"},{prop:"headerClassName",label:"给表头的单元格附加 className",type:"textarea",el:"hs-input"},{prop:"footerClassName",label:"给表尾的单元格附加 className",type:"textarea",el:"hs-input"},{prop:"formatter",label:"格式化显示内容",type:"textarea",el:"hs-input"},{prop:"sortable",label:"是否允许列排序",tooltip:"数据排序,是否允许列排序",type:"",el:"hs-switch"},{prop:"sortBy",label:"指定排序字段",tooltip:"数据排序,只对 sortable 有效,指定排序的字段(当值 formatter 格式化后,可以设置该字段,使用值进行排序)",type:"textarea",el:"hs-input"},{prop:"sortType",label:"排序的字段类型",tooltip:"数据排序,排序的字段类型,比如字符串转数值等",type:"",el:"hs-select",cel:"hs-option",op:[{label:"auto",value:"auto"},{label:"数值",value:"number"},{label:"字符串",value:"string"}]},{prop:"filterMultiple",label:"筛选是否允许多选",tooltip:"数据筛选,只对 filters 有效,筛选是否允许多选",type:"",el:"hs-switch"},{prop:"filterMethod",label:"列的筛选方法",tooltip:"数据筛选,只对 filters 有效,列的筛选方法,该方法的返回值用来决定该行是否显示",type:"textarea",el:"hs-input"},{prop:"filterResetMethod",label:"自定义筛选重置方法",tooltip:"数据筛选,只对 filters 有效,自定义筛选重置方法",type:"textarea",el:"hs-input"},{prop:"filterRecoverMethod",label:"自定义筛选复原方法",tooltip:"数据筛选,只对 filters 有效,自定义筛选复原方法(使用自定义筛选时可能会用到)",type:"textarea",el:"hs-input"},{prop:"cellType",label:"单元格值类型",tooltip:"只对特定功能有效,单元格值类型(例如:导出数据类型设置)",type:"",el:"hs-select",cel:"hs-option",op:[{label:"默认自动转换",value:"auto"},{label:"数值",value:"number"},{label:"字符串",value:"string"}]},{prop:"treeNode",label:"是否指定为树节点",tooltip:"只对 treeConfig 配置时有效,指定为树节点",type:"",el:"hs-switch"},{prop:"params",label:"额外的参数",tooltip:"额外的参数(可以用来存放一些私有参数)",type:"",el:"hs-input"},{prop:"colId",label:"自定义列的唯一主键",tooltip:"自定义列的唯一主键(注:列主键必须确保唯一,操作不正确将导致出现问题)",type:"",el:"hs-input"}]),NP={title:[{required:!0,message:"请输入列标题"}],field:[{required:!0,message:"请输入列字段名"}],returnValueType:[{required:!0,message:"请输入返回值类型"}]},_tt=e.ref([{key:"filterRender",visible:!1,title:"筛选渲染器配置项",filterRender:[{prop:"name",label:"渲染器名称",type:"",el:"hs-input"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"",el:"hs-input"},{prop:"events",label:"渲染组件的事件(请查看自定义的 Events)",type:"textarea",el:"hs-input"},{prop:"content",label:"渲染组件的内容(仅用于特殊组件)",type:"",el:"hs-input"}]},{key:"titlePrefix",visible:!1,title:"标题前缀图标配置项",titlePrefix:[{prop:"content",label:"提示消息",tooltip:"提示消息(支持开启国际化)",el:"hs-input"},{prop:"useHTML",label:"是否显示为HTML标签",tooltip:"是否显示为HTML标签(动态渲染任意 HTML 是非常危险的,很容易导致 XSS 攻击,请确保内容是可信的)",type:"",el:"hs-input"},{prop:"icon",label:"自定义图标",type:"",el:"hs-input"}]},{key:"cellRender",visible:!1,title:"默认的渲染器配置项",cellRender:[{prop:"name",label:"渲染器名称",el:"hs-input"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"textarea",el:"hs-input"},{prop:"options",label:"下拉选项列表",tooltip:"只对 name=select 有效,下拉选项列表",type:"textarea",el:"hs-input"},{prop:"optionProps",label:"下拉选项属性参数配置",tooltip:"只对 name=select 有效,下拉选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"optionGroups",label:"下拉分组选项列表",tooltip:"只对 name=select 有效,下拉分组选项列表",type:"textarea",el:"hs-input"},{prop:"optionGroupProps",label:"下拉分组选项属性参数配置",tooltip:"只对 name=select 有效,下拉分组选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"events",label:"渲染组件的事件",tooltip:"渲染组件的事件(请查看自定义的 Events)",type:"textarea",el:"hs-input"},{prop:"content",label:"渲染组件的内容(仅用于特殊组件)",el:"hs-input"}]},{key:"editRender",visible:!1,title:"可编辑渲染器配置项",editRender:[{prop:"name",label:"渲染器名称",el:"hs-input"},{prop:"enabled",label:"是否启用",el:"hs-switch"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"textarea",el:"hs-input"},{prop:"attrs",label:"渲染的属性",tooltip:"渲染的属性(请查看自定义的 Attribute)",type:"textarea",el:"hs-input"},{prop:"options",label:"下拉选项列表",tooltip:"只对 name=select 有效,下拉选项列表",type:"textarea",el:"hs-input"},{prop:"optionProps",label:"下拉选项属性参数配置",tooltip:"只对 name=select 有效,下拉选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"optionGroups",label:"下拉分组选项列表",tooltip:"只对 name=select 有效,下拉分组选项列表",type:"textarea",el:"hs-input"},{prop:"optionGroupProps",label:"下拉分组选项属性参数配置",tooltip:"只对 name=select 有效,下拉分组选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"events",label:"渲染组件的事件(请查看自定义的 Events)",type:"",default:"{row,rowIndex,$rowIndex,column,columnIndex,$columnIndex}, ...[自定义的 arguments]",param:"",el:"hs-input"},{prop:"content",label:"渲染组件的内容",tooltip:"渲染组件的内容(仅用于特殊组件)",type:"",el:"hs-input"},{prop:"autofocus",label:"指定聚焦的选择器",tooltip:"如果是自定义渲染可以指定聚焦的选择器,例如 .my-input",type:"",el:"hs-input"},{prop:"autoselect",label:"自动选中内容",tooltip:"是否在激活编辑之后自动选中输入框内容",type:"",el:"hs-input"},{prop:"defaultValue",label:"默认值",tooltip:"默认值(插入数据时列的默认值)",type:"",el:"hs-input"},{prop:"immediate",label:"输入值实时更新",tooltip:"输入值实时同步更新(默认情况下单元格编辑的值只会在被触发时同步,如果需要实时同步可以设置为 true)",type:"",el:"hs-input"},{prop:"placeholder",label:"单元格占位符",tooltip:"单元格占位符,但单元格为空值时显示的占位符",type:"",el:"hs-input"}]},{key:"contentRender",visible:!1,title:"内容渲染配置项",contentRender:[{prop:"name",label:"渲染器名称",type:"",el:"hs-input"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"textarea",el:"hs-input"},{prop:"attrs",tooltip:"渲染的属性",label:"渲染的属性(请查看自定义的 Attribute)",type:"textarea",el:"hs-input"},{prop:"events",label:"渲染组件的事件",tooltip:"渲染组件的事件(请查看自定义的 Events)",type:"textarea",el:"hs-input"}]}]),Ctt=e.ref({key:"filters",visible:!1,title:"配置数据筛选条件",filters:[{prop:"label",label:"显示的值",type:"",el:"hs-input"},{prop:"value",label:"实际的值",type:"",el:"hs-input"},{prop:"checked",label:"默认是否选中",type:"",el:"hs-switch"},{prop:"resetValue",label:"重置时的默认值",type:"textarea",el:"hs-input"},{prop:"data",label:"自定义渲染的数据值(当使用自定义模板时可能会用到)",type:"textarea",el:"hs-input"}]});let yg=e.ref({id:"",sort:0,data:gtt.value,btnData:[]});const xtt={list:ytt.value,second_config:_tt.value,filterConfig:Ctt.value,rules:{list:NP}};let FC=e.ref({id:"",data:{}}),wtt=e.ref({code:{visible:!1,subTitle:"表格配置代码",class:"font-bold my-3",iconSize:20},table:{visible:!1,subTitle:"表格配置",class:"font-bold my-3",iconSize:20},tableItem:{visible:!0,subTitle:"表格元素配置项集合",class:"font-bold my-3",iconSize:20}}),Ett={baseTableConfig:vtt,baseVisible:!1,pageVisible:!1,tableAttrConfig:mtt,tablePageConfig:htt},Nh={id:{isShow:!1,title:"id",returnValueType:"string"}};const ktt={name:"按钮名称",key:"",isApply:!0,isSlot:!1,isShow:!0,size:"default",btnIcon:"",type:"primary",plain:!1,text:!1,bg:!1,link:!1,round:!1,circle:!1,loading:!1,"loading-icon":"Loading",disabled:!1,autofocus:!1,"native-type":"button",dark:!1,tag:"button"},Stt={name:[{required:!0,message:"请输入按钮名称"}],key:[{required:!0,message:"请输入按钮key值"}]},TP={title:{subTitle:"按钮配置"},visible:!0,list:[{prop:"name",label:"按钮名称",el:"hs-input",tooltips:"按钮名称"},{prop:"key",label:"按钮key值",el:"hs-input",slotValue:"key",tooltips:"按钮key值"},{prop:"isApply",label:"是否启用",el:"hs-switch",tooltips:"是否启用"},{prop:"isSlot",label:"使用启用插槽",el:"hs-switch"},{prop:"isShow",label:"是否显示",el:"hs-switch",tooltips:"是否显示"},{prop:"color",label:"自定义颜色",el:"hs-color-picker"},{prop:"textColor",label:"按钮文本色",el:"hs-color-picker"},{prop:"btnIcon",label:"按钮图标",el:"hs-input",slotValue:"btnIcon"},{prop:"iconPosition",label:"图标位置",el:"hs-select",cel:"hs-option",op:[{label:"左边",value:"left"},{label:"右边",value:"right"}]},{prop:"fnName",label:"方法名称",el:"hs-input",type:"textarea"},{prop:"size",label:"尺寸",el:"hs-select",cel:"hs-option",op:[{label:"大",value:"large"},{label:"默认",value:"default"},{label:"小",value:"small"}]},{prop:"type",label:"类型",el:"hs-select",cel:"hs-option",op:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}]},{prop:"plain",label:"朴素按钮",el:"hs-switch",tooltips:"是否为朴素按钮"},{prop:"text",label:"文字按钮",el:"hs-switch",tooltips:"是否为文字按钮"},{prop:"bg",label:"文字按钮背景颜色",el:"hs-switch",tooltips:"是否显示文字按钮背景颜色"},{prop:"link",label:"链接按钮",el:"hs-switch",tooltips:"是否为链接按钮"},{prop:"round",label:"圆角按钮",el:"hs-switch",tooltips:"是否为圆角按钮"},{prop:"circle",label:"圆形按钮",el:"hs-switch",tooltips:"是否为圆形按钮"},{prop:"loading",label:"加载状态",el:"hs-switch",tooltips:"是否为加载中状态"},{prop:"loading-icon",label:"加载状态图标",el:"hs-input",tooltips:"自定义加载中状态图标组件"},{prop:"disabled",label:"是否禁用",el:"hs-switch",tooltips:"按钮是否为禁用状态"},{prop:"icon",label:"图标组件",el:"hs-input",tooltips:"图标组件"},{prop:"autofocus",label:"自动聚焦",el:"hs-switch",tooltips:"原生 autofocus 属性"},{prop:"native-type",label:"原生 type 属性",el:"hs-select",cel:"hs-option",op:[{label:"按钮",value:"button"},{label:"提交",value:"submit"},{label:"重置",value:"reset"}],tooltips:"原生 type 属性"},{prop:"auto-insert-space",label:"中文字符之间插入空格",el:"hs-switch",tooltips:"自动在两个中文字符之间插入空格"},{prop:"color",label:"按钮颜色",el:"hs-input",tooltips:"自定义按钮颜色, 并自动计算 hover 和 active 触发后的颜色"},{prop:"dark",label:"dark 模式",el:"hs-switch",tooltips:"dark 模式, 意味着自动设置 color 为 dark 模式的颜色"},{prop:"tag",label:"自定义元素标签",el:"hs-input",tooltips:"自定义元素标签"}],rules:Stt},DP={id:"",data:ktt,sort:0},zC={id:"",data:{}},Btt=ap(),Ntt=zx();function Ttt(t,n){let r=e.ref(t.current),o=e.ref(Ke.cloneDeep(xtt)),a=e.ref(Ke.cloneDeep(t.current)),l=e.ref(Ke.cloneDeep(t.configList).map(y=>y.data.field));const i=()=>{let y=Ke.cloneDeep(NP);return Ke.keys(y).forEach(C=>{let w=y[C].map(b=>(b.required=!a.value.data.type,b));y[C]=w}),y};e.watch(()=>t.current,y=>{y&&y.id!=a.value.id&&(r.value=y,a.value=Ke.cloneDeep(y),l.value=Ke.cloneDeep(t.configList).map(C=>C.data.field),o.value.rules.list=i())},{deep:!0}),e.watch(()=>a.value.data,y=>{y&&(o.value.list=o.value.list.map(C=>(C.prop=="el"&&(C.show=!!a.value.data.isSlot,C.show||(a.value.data.el="")),C)),o.value.rules.list=i())},{deep:!0,immediate:!0});const u=e.ref({labelWidth:120,span:24,style:"padding:5px 10px"}),s=e.ref(!1),c=async function(){var y;try{if(!await n.value.getSubmitData())return;let w=(y=r.value)==null?void 0:y.data.field,b=a.value.data.field,x=Ke.cloneDeep(l.value),E=x.findIndex(S=>S==w);if(x.splice(E,1),b&&Ke.includes(x,b))return ir.warning("列字段名重复,请修改");r.value=Object.assign(r.value||{},Ke.cloneDeep(a.value));let k=wo.get("CURRENT_SYSTEM");if(!a.value.data.field_id){let S={field_code:a.value.data.field,field_name:a.value.data.title,field_type:"3",json_data:JSON.stringify(a.value.data),project_code:k.project_code};Btt.postSaveFieldPool4Config(S)}if(a.value.btnData.length>0){let S=[];if(a.value.btnData.forEach(B=>{B.data.field_id||S.push({btn_name:B.data.key,btn_label:B.data.name,btn_icon:B.data.btnIcon,json_data:JSON.stringify(B.data),project_code:k.project_code})}),S.length==0)return;Ntt.postSaveBtnConfigBatch4Config({btnList:S})}}catch(C){console.log("er",C)}},d=()=>{var y,C;(C=(y=a.value)==null?void 0:y.data.filters)==null||C.push({label:"",value:"",checked:!1,resetValue:"",data:""})},f=y=>{let C=a.value.data.filters[y];da.confirm(`确认要删除该${C.label}配置吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{a.value.data.filters.splice(y,1),a.value.filterConfig.splice(y,1),ir.success("删除成功")}).catch(w=>{console.log("err",w)})},p=()=>{let y=Ke.cloneDeep(DP);y.id=new Date().getTime().toString(),a.value.btnData.push(y)},m=y=>{let C=a.value.btnData[y];da.confirm(`确认要删除该${C.name?"【"+C.name+"】":""}按钮配置吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{a.value.btnData.splice(y,1),ir.success("删除成功")}).catch(w=>{console.log("err",w)})};let v=e.ref({url:"/scmp-web/pri/field_config/get_field_pool_list",params:{field_type:"3",field_code:"",project_code:""},qry_key:"field_code"});return e.onMounted(()=>{let y=wo.get("CURRENT_SYSTEM"),C=v.value.params;C.project_code=y.project_code||"",v.value=Ke.assign(v.value,{params:C})}),{parentConfig:u,visible:s,tableItemConfig:a,tableDataConfig:o,requestData:v,onChangeItem:y=>{a.value.data=Ke.assign(a.value.data,JSON.parse(y.json_data),{field_id:y.id})},saveData:c,addFilterItem:d,deleteFilterConfig:f,addBtnItem:p,deleteBtnItem:m}}const Dtt={class:"h-full"},Vtt={style:{height:"94%"},class:"overflow-y-auto"},$tt=e.createElementVNode("div",{class:"bg-red-200 py-1 px-3 rounded"},"新增数据筛选配置",-1),Ott=[$tt],Att=e.createElementVNode("div",{class:"bg-red-200 py-1 px-3 rounded"},"新增按钮配置",-1),Mtt=[Att],Rtt={class:"text-center",style:{height:"40px"}},Itt=e.defineComponent({__name:"hsAttrTable",props:{current:{type:Object,default:()=>{}},configList:{type:Array,default:()=>[]}},setup(t){const n=t;let r=e.ref(),o=e.ref(Ke.cloneDeep(TP));const{parentConfig:a,visible:l,tableItemConfig:i,tableDataConfig:u,requestData:s,onChangeItem:c,addFilterItem:d,saveData:f,deleteFilterConfig:p,addBtnItem:m,deleteBtnItem:v}=Ttt(n,r);return(g,y)=>{var x,E,k;const C=e.resolveComponent("bc-auto-complete"),w=e.resolveComponent("svgIcon"),b=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Dtt,[e.createElementVNode("div",Vtt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(l),"onUpdate:modelValue":y[0]||(y[0]=S=>e.isRef(l)?l.value=S:null),expandConfig:{subTitle:"表格属性"}},null,8,["modelValue"])),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{parentConfig:e.unref(a),data:(x=e.unref(i))==null?void 0:x.data,config:e.unref(u).list,ref_key:"baseTableRef",ref:r,rules:e.unref(u).rules.list||{}},{field:e.withCtx(()=>[e.createVNode(C,{url:e.unref(s).url,qry_key:e.unref(s).qry_key,params:e.unref(s).params,type:"table",modelValue:e.unref(i).data.field,"onUpdate:modelValue":y[1]||(y[1]=S=>e.unref(i).data.field=S),onChange:e.unref(c)},null,8,["url","qry_key","params","modelValue","onChange"])]),_:1},8,["parentConfig","data","config","rules"])),[[e.vShow,e.unref(l)]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((E=e.unref(u))==null?void 0:E.second_config,(S,B)=>{var $;return e.openBlock(),e.createElementBlock("div",{key:B},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:S.visible,"onUpdate:modelValue":D=>S.visible=D,expandConfig:{subTitle:S.title}},null,8,["modelValue","onUpdate:modelValue","expandConfig"])),S.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,parentConfig:e.unref(a),config:S[S.key],data:($=e.unref(i))==null?void 0:$.data[S.key]},null,8,["parentConfig","config","data"])):e.createCommentVNode("",!0)])}),128)),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((k=e.unref(i))==null?void 0:k.data.filters,(S,B)=>(e.openBlock(),e.createElementBlock("div",{key:B},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:S.visible,"onUpdate:modelValue":$=>S.visible=$,expandConfig:{subTitle:"筛选配置项"+(S.label?"【"+S.label+"】":""),rightSlot:!0}},{default:e.withCtx(()=>[e.createVNode(w,{onClick:$=>e.unref(p)(B),color:"#F56C6C",class:"pt-1",name:"ele-RemoveFilled",size:"18"},null,8,["onClick"])]),_:2},1032,["modelValue","onUpdate:modelValue","expandConfig"])),S.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,parentConfig:e.unref(a),config:e.unref(u).filterConfig.filters,data:S},null,8,["parentConfig","config","data"])):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("div",{class:"flex align-center justify-center p-2",onClick:y[2]||(y[2]=(...S)=>e.unref(d)&&e.unref(d)(...S))},Ott)]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).btnData,(S,B)=>(e.openBlock(),e.createElementBlock("div",{key:B},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:S.visible,"onUpdate:modelValue":$=>S.visible=$,expandConfig:{subTitle:"按钮配置"+(S.data.name?"【"+S.data.name+"】":""),rightSlot:!0}},{default:e.withCtx(()=>[e.createVNode(w,{onClick:$=>e.unref(v)(B),color:"#F56C6C",class:"pt-1",name:"ele-RemoveFilled",size:"18"},null,8,["onClick"])]),_:2},1032,["modelValue","onUpdate:modelValue","expandConfig"])),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(BP),{ref_for:!0,ref:"btnItemRef",modelValue:S.data,"onUpdate:modelValue":$=>S.data=$,config:e.unref(o)},null,8,["modelValue","onUpdate:modelValue","config"])),[[e.vShow,S.visible]])]))),128)),e.createElementVNode("div",{class:"flex align-center justify-center p-2",onClick:y[3]||(y[3]=(...S)=>e.unref(m)&&e.unref(m)(...S))},Mtt)])]),e.createElementVNode("div",Rtt,[e.createVNode(b,{onClick:e.unref(f),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),MN=ap();function Ptt(t,n){let r=e.ref(!0);e.watch(()=>n.value,()=>{t.value="",r.value=!0});const o=()=>{let i=wo.get("CURRENT_SYSTEM"),u=Ke.cloneDeep(yg.value);u.id=new Date().getTime().toString(),u.data=Ke.assign(u.data,{type:"seq",title:"",minWidth:50,width:50}),Ke.assign(n.value,{baseData:Ke.assign(Ke.cloneDeep(ptt.value),{id:new Date().getTime().toString(),tableName:"表格配置名称",proxy:i.project_url}),tableConfig:[u]})},a=(i,u,s,c)=>{let d=i.map(f=>f[s]);MN.getPoolByFieldMap({fieldCodes:d,field_type:"3",project_code:u&&u.project_code}).then(f=>{i.forEach(p=>{var v,g;let m=(v=n.value)==null?void 0:v.tableConfig.map(y=>y.data.field);if(!Ke.includes(m,p[s])){let y=Ke.cloneDeep(yg.value);if(y.id=p[s]+new Date().getTime().toString(),p[s]&&(y.data.field=p[s],y.data.title=p[c]||"展示列名称"),f.code==1&&f.data&&f.data[p[s]]){let C=JSON.parse(f.data[p[s]].json_data);y.data=Ke.assign(y.data,C,{field_id:f.data[p[s]].id})}if(Ke.keys(Nh).find(C=>C==y.data.field)){let C=Nh[y.data.field];y.data=Ke.assign(y.data,C)}(g=n.value)==null||g.tableConfig.push(y)}})})};return{parseTable:()=>{var i,u;if(t.value){let s=wo.get("CURRENT_SYSTEM");if(!r.value){let c=JSON.parse(t.value);(i=n.value)!=null&&i.baseData.id||o(),console.log("parseApi.value",c),a(c,s,"id","label");return}MN.getFieldByTable({table_name:t.value,project_code:s&&s.project_code,field_type:"3"}).then(c=>{var d;if(c.code!=1)return ir.warning(c.msg);if(c.data.length>0){(d=n.value)!=null&&d.baseData.id||o(),c.data.forEach(f=>{var m,v;let p=Ke.map((m=n.value)==null?void 0:m.tableConfig,g=>g.data.field);if(!Ke.includes(p,f.column_name)){let g=Ke.cloneDeep(yg.value);if(g.id=f.column_name+new Date().getTime().toString(),f.json_data){let y=JSON.parse(f.json_data);g.data=Ke.assign(g.data,y,{field_id:f.field_id})}else g.data.field=f.column_name,g.data.title=f.column_comment||"展示列名称";Ke.keys(Nh).find(y=>y==f.column_name)&&(g.data=Ke.assign(g.data,Nh[f.column_name])),(v=n.value)==null||v.tableConfig.push(g)}});return}})}(u=n.value)!=null&&u.baseData.id||o()},parseName:r}}const Ftt={class:"flex flex-row"},ztt=e.defineComponent({__name:"hsTableParse",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){let n=e.ref(""),r=e.useModel(t,"modelValue");const{parseTable:o,parseName:a}=Ptt(n,r);return e.onMounted(()=>{n.value=""}),(l,i)=>{const u=e.resolveComponent("hs-switch"),s=e.resolveComponent("hs-input"),c=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createTextVNode(" 是否解析表名:"),e.createVNode(u,{modelValue:e.unref(a),"onUpdate:modelValue":i[0]||(i[0]=d=>e.isRef(a)?a.value=d:null)},null,8,["modelValue"]),e.createElementVNode("div",Ftt,[e.createVNode(s,{class:"basis-1/4 mr-2",modelValue:e.unref(n),"onUpdate:modelValue":i[1]||(i[1]=d=>e.isRef(n)?n.value=d:n=d),placeholder:"请输入解析表名"},null,8,["modelValue"]),e.createVNode(c,{onClick:e.unref(o),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)?"一键解析":"初始化配置"),1)]),_:1},8,["onClick"])])],64)}}}),Ltt=e.defineComponent({__name:"hsRecursionConfig",props:e.mergeModels({config:{type:Array,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue");return(r,o)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.config,(a,l)=>(e.openBlock(),e.createElementBlock("div",{key:l},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{class:"pl-4",modelValue:a.visible,"onUpdate:modelValue":i=>a.visible=i,expandConfig:{subTitle:a.title}},null,8,["modelValue","onUpdate:modelValue","expandConfig"])),a.visible&&a.second_config?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.second_config,(i,u)=>(e.openBlock(),e.createElementBlock("div",{key:u},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{class:"pl-8",modelValue:i.visible,"onUpdate:modelValue":s=>i.visible=s,expandConfig:{subTitle:i.title}},null,8,["modelValue","onUpdate:modelValue","expandConfig"])),i.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,data:e.unref(Ke).get(e.unref(Ke).get(n.value,a.key),i.key),config:i[i.key]},null,8,["data","config"])):e.createCommentVNode("",!0)]))),128)):e.createCommentVNode("",!0),a.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:1,data:e.unref(Ke).get(n.value,a.key,{}),config:a[a.key]},null,8,["data","config"])):e.createCommentVNode("",!0)]))),128))}}),Htt=e.defineComponent({__name:"hsTableConfig",props:e.mergeModels({config:{type:Object,default:()=>({baseTableConfig:[],baseVisible:!1,tableAttrConfig:[],tablePageConfig:[],pageVisible:!1})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t;let r=e.ref();e.watch(()=>n.config,a=>{r.value=a},{deep:!0,immediate:!0});let o=e.useModel(t,"modelValue");return(a,l)=>{var i,u,s,c,d,f,p;return e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{class:"pl-4",modelValue:e.unref(r).baseVisible,"onUpdate:modelValue":l[0]||(l[0]=m=>e.unref(r).baseVisible=m),expandConfig:{subTitle:"表格基本配置"}},null,8,["modelValue"])),e.unref(r).baseVisible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,data:(i=e.unref(o))==null?void 0:i.baseData,config:e.unref(r).baseTableConfig},null,8,["data","config"])):e.createCommentVNode("",!0),(s=(u=e.unref(o))==null?void 0:u.baseData)!=null&&s.is_apply_page?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{key:1,class:"pl-4",modelValue:e.unref(r).pageVisible,"onUpdate:modelValue":l[1]||(l[1]=m=>e.unref(r).pageVisible=m),expandConfig:{subTitle:"表格分页配置"}},null,8,["modelValue"])):e.createCommentVNode("",!0),e.unref(r).pageVisible&&((d=(c=e.unref(o))==null?void 0:c.baseData)!=null&&d.is_apply_page)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:2,data:(p=(f=e.unref(o))==null?void 0:f.baseData)==null?void 0:p.table_page_data,config:e.unref(r).tablePageConfig},null,8,["data","config"])):e.createCommentVNode("",!0),e.unref(o)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ltt),{key:3,config:e.unref(r).tableAttrConfig,modelValue:e.unref(o).baseData,"onUpdate:modelValue":l[2]||(l[2]=m=>e.unref(o).baseData=m)},null,8,["config","modelValue"])):e.createCommentVNode("",!0)],64)}}});function Wtt(t,n,r){const o=i=>{var s;let u=i.id==((s=n.current)==null?void 0:s.id)?Ke.cloneDeep(FC.value):i;t("chose",u)};return{choseTagItem:o,appendField:()=>{let i=Ke.cloneDeep(yg.value);if(i.id=new Date().getTime().toString(),(r.value.tableConfig.findIndex(c=>c.id==i.id)||-1)>-1)return ir.warning("字段名称重复");r.value.tableConfig.push(i);let s=r.value.tableConfig[r.value.tableConfig.length-1];o(s)},deleteTagItem:i=>{da.confirm(`确定删除“${i.data&&i.data.title}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ke.remove(r.value.tableConfig,i),o(i),ir.success("删除成功")}).catch(u=>{console.log("err",u)})}}}const jtt=["onClick"],qtt=["onClick"],Utt={class:"p-2"},Ktt=e.defineComponent({__name:"hsTableConfigList",props:e.mergeModels({current:{type:Object,default:()=>{}}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["chose"],["update:modelValue"]),setup(t,{emit:n}){const r=e.ref(),o=n,a=e.useModel(t,"modelValue"),l=t,{appendField:i,deleteTagItem:u,choseTagItem:s}=Wtt(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(ud),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value.tableConfig,"onUpdate:modelValue":d[1]||(d[1]=f=>a.value.tableConfig=f),animation:150},{default:e.withCtx(()=>{var f;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((f=a.value)==null?void 0:f.tableConfig,p=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:p.id,onClick:m=>e.unref(s)(p)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==p.id?"bg-blue-200":""])},e.toDisplayString(p.data&&p.data.title||p.data.type&&e.unref(btt)[p.data.type]||""),3),t.current.id==p.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(m=>e.unref(u)(p),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,qtt)):e.createCommentVNode("",!0)],8,jtt))),128)),e.createElementVNode("div",Utt,[e.createElementVNode("div",{onClick:d[0]||(d[0]=(...p)=>e.unref(i)&&e.unref(i)(...p)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]}),_:1},8,["modelValue"])]))}}),Gtt=zr(Ktt,[["__scopeId","data-v-d871a518"]]),Ytt={class:"mx-auto flex flex-row h-full"},Xtt={class:"flex-1 grow overflow-y-auto"},Ztt={key:0},Jtt={key:0,class:"flex-none basis-1/4 ml-4"},Qtt=e.defineComponent({__name:"hsTablePanel",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){let n=e.ref(Ke.cloneDeep(wtt.value));const r=e.useModel(t,"modelValue"),o=e.ref(Ke.cloneDeep(Ett));let a=Ke.cloneDeep(FC),l=e.ref("");e.watch(()=>r.value,u=>{l.value!=(u==null?void 0:u.id)&&(a.value=Ke.cloneDeep(FC),l.value=(u==null?void 0:u.id)||"")},{immediate:!0});const i=u=>{a.value=u};return(u,s)=>{var c,d,f;return e.openBlock(),e.createElementBlock("div",Ytt,[e.createElementVNode("div",Xtt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(n).code.visible,"onUpdate:modelValue":s[0]||(s[0]=p=>e.unref(n).code.visible=p),expandConfig:e.unref(n).code},null,8,["modelValue","expandConfig"])),e.unref(n).code.visible?(e.openBlock(),e.createElementBlock("div",Ztt,e.toDisplayString(r.value),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ztt),{modelValue:r.value,"onUpdate:modelValue":s[1]||(s[1]=p=>r.value=p)},null,8,["modelValue"])),(c=r.value)!=null&&c.baseData.id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(n).table.visible,"onUpdate:modelValue":s[2]||(s[2]=p=>e.unref(n).table.visible=p),expandConfig:e.unref(n).table},null,8,["modelValue","expandConfig"])),e.unref(n).table.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Htt),{key:0,modelValue:r.value,"onUpdate:modelValue":s[3]||(s[3]=p=>r.value=p),config:o.value},null,8,["modelValue","config"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(n).tableItem.visible,"onUpdate:modelValue":s[4]||(s[4]=p=>e.unref(n).tableItem.visible=p),expandConfig:e.unref(n).tableItem},null,8,["modelValue","expandConfig"])),e.unref(n).tableItem.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Gtt),{key:1,modelValue:r.value,"onUpdate:modelValue":s[5]||(s[5]=p=>r.value=p),current:e.unref(a),onChose:i},null,40,["modelValue","current"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),(((d=r.value)==null?void 0:d.tableConfig)||[]).length>0&&e.unref(a).id?(e.openBlock(),e.createElementBlock("div",Jtt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Itt),{current:e.unref(a),configList:(f=r.value)==null?void 0:f.tableConfig},null,8,["current","configList"]))])):e.createCommentVNode("",!0)])}}});function ent(t,n,r){const o=i=>{var s;let u=i.id==((s=n.current)==null?void 0:s.id)?Ke.cloneDeep(zC):i;t("chose",u)};return{choseTagItem:o,appendField:()=>{let i=Ke.cloneDeep(DP);i.id=new Date().getTime().toString(),r.value.push(i);let u=r.value[r.value.length-1];o(u)},deleteTagItem:i=>{da.confirm(`确定删除“${i.data&&i.data.name}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ke.remove(r.value||[],i),o(i),ir.success("删除成功")}).catch(u=>{console.log("err",u)})}}}const tnt=["onClick"],nnt=["onClick"],rnt={class:"p-2"},ont=e.defineComponent({__name:"hsBtnConfigList",props:e.mergeModels({current:{type:Object,default(){return{}}}},{modelValue:[],modelModifiers:{}}),emits:e.mergeModels(["chose"],["update:modelValue"]),setup(t,{emit:n}){const r=e.ref(),o=n,a=e.useModel(t,"modelValue",[]),l=t,{appendField:i,deleteTagItem:u,choseTagItem:s}=ent(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(ud),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value,"onUpdate:modelValue":d[1]||(d[1]=f=>a.value=f),animation:150},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,f=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:f.id,onClick:p=>e.unref(s)(f)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==f.id?"bg-blue-200":""])},e.toDisplayString(f.data&&f.data.name),3),t.current.id==f.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(p=>e.unref(u)(f),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,nnt)):e.createCommentVNode("",!0)],8,tnt))),128)),e.createElementVNode("div",rnt,[e.createElementVNode("div",{onClick:d[0]||(d[0]=(...f)=>e.unref(i)&&e.unref(i)(...f)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]),_:1},8,["modelValue"])]))}}),ant=zr(ont,[["__scopeId","data-v-1bcdcd36"]]),lnt=zx();function int(t,n){let r=e.ref(t.current),o=e.ref(Ke.cloneDeep(t.current));e.watch(()=>t.current,u=>{u&&u.id!=o.value.id&&(r.value=u,o.value=Ke.cloneDeep(u))},{deep:!0});const a=e.ref(Ke.cloneDeep(TP));return{visible:e.ref(!1),btnItemConfig:o,btnConfig:a,saveData:async function(){var u;try{if(!await n.value.getSubmitData())return;let c=(u=r.value)==null?void 0:u.data.key,d=o.value.data.key,f=Ke.map(t.btnList,v=>v.data.key);if(Ke.includes(f,d)&&d!=c)return ir.warning("按钮key值重复");if(r.value=Object.assign(r.value||{},Ke.cloneDeep(o.value)),o.value.data.field_id)return;let p=wo.get("CURRENT_SYSTEM"),m={btn_name:o.value.data.key,btn_label:o.value.data.name,btn_icon:o.value.data.btnIcon,json_data:JSON.stringify(o.value.data),project_code:p.project_code};lnt.postSaveBtnConfig4Config(m)}catch(s){console.log("er",s)}}}}const snt={class:"bg-blue-200 h-full flex flex-col"},unt={style:{height:"calc(100% -50px)"},class:"overflow-y-auto flex-1"},cnt={key:0},dnt={class:"text-center grow-0",style:{height:"50rpx"}},fnt=e.defineComponent({__name:"hsAttrBtn",props:{current:{type:Object,default(){return{}}},btnList:{type:Array,default:()=>[]}},setup(t){const n=t,r=e.ref(),{visible:o,btnItemConfig:a,btnConfig:l,saveData:i}=int(n,r);return(u,s)=>{const c=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",snt,[e.createElementVNode("div",unt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(o),"onUpdate:modelValue":s[0]||(s[0]=d=>e.isRef(o)?o.value=d:null),expandConfig:{subTitle:"按钮项代码"}},null,8,["modelValue"])),e.unref(o)?(e.openBlock(),e.createElementBlock("div",cnt,e.toDisplayString(e.unref(a)),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(l).visible,"onUpdate:modelValue":s[1]||(s[1]=d=>e.unref(l).visible=d),expandConfig:e.unref(l).title},null,8,["modelValue","expandConfig"])),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(BP),{ref_key:"btnItemRef",ref:r,modelValue:e.unref(a).data,"onUpdate:modelValue":s[2]||(s[2]=d=>e.unref(a).data=d),config:e.unref(l)},null,8,["modelValue","config"])),[[e.vShow,e.unref(l).visible]])]),e.createElementVNode("div",dnt,[e.createVNode(c,{onClick:e.unref(i),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),pnt={class:"mx-auto flex flex-row h-full"},vnt={class:"flex-1 grow overflow-y-auto"},mnt={key:0,class:"flex-none basis-1/4 ml-4"},hnt=e.defineComponent({name:"formPanel"}),gnt=e.defineComponent({...hnt,props:e.mergeModels({id:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useModel(t,"modelValue"),o=e.ref({visible:!0,subTitle:"按钮配置",class:"font-bold my-3",iconSize:20});let a=e.ref(Ke.cloneDeep(zC));e.watch(()=>n.id,()=>{a.value=Ke.cloneDeep(zC)});const l=i=>{a.value=i};return(i,u)=>(e.openBlock(),e.createElementBlock("div",pnt,[e.createElementVNode("div",vnt,[e.createVNode(xo,{modelValue:o.value.visible,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value.visible=s),expandConfig:o.value},null,8,["modelValue","expandConfig"]),o.value.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ant),{key:0,modelValue:r.value,"onUpdate:modelValue":u[1]||(u[1]=s=>r.value=s),current:e.unref(a),onChose:l},null,40,["modelValue","current"])):e.createCommentVNode("",!0)]),(r.value||[]).length>0&&e.unref(a).id?(e.openBlock(),e.createElementBlock("div",mnt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fnt),{btnList:r.value,current:e.unref(a)},null,8,["btnList","current"]))])):e.createCommentVNode("",!0)]))}});let bnt={config_name:"",config_unique_id:"",is_auth:"1"};const VP={config_name:[{required:!0,message:"请输入配置名称"}],is_auth:[{required:!0,message:"是否受权限控制"}],config_unique_id:[{required:!0,message:"请输入配置标识"}]},$P=[{prop:"config_name",label:"配置名称",el:"hs-input",required:!0},{prop:"is_auth",label:"是否配置权限",el:"hs-switch",attr:{"active-value":"1","inactive-value":"0"},show:!0,required:!0},{prop:"config_unique_id",label:"配置标识",el:"hs-input",show:!1,required:!0}],ynt={formData:bnt,formRule:VP,formConfig:$P};let _nt={name:"",config_name:"",is_auth:"1",config_unique_id:""};const Cnt=[{prop:"name",label:"配置",el:"hs-select",cel:"hs-option",multiple:!1,clearable:!1,op:[]}],RN={formData:_nt,formRule:VP,formConfig:Ke.concat(Cnt,$P)};function xnt(t,n,r){const o=e.ref({showColon:!0,xs:8,sm:8,md:8,lg:8,xl:8,minWidth:350});let a=e.ref(!0),l=e.ref(Ke.assign(Ke.cloneDeep(RN),{formData:{is_auth:"1",name:"",config_name:"",config_unique_id:new Date().getTime().toString()}}));const i=(m,v)=>{if(v=="name"){let g=Ke.cloneDeep(r.configs).find(y=>y.config_unique_id==m);l.value.formData=Ke.assign(l.value.formData,{config_name:g.config_name,config_unique_id:g.config_unique_id,is_auth:g.is_auth}),t("change",g)}},u=()=>({id:"",config_type:"1",tables:[{id:"table_"+new Date().getTime().toString(),baseData:{id:"",tableName:"表格配置名称"},tableConfig:[]}],btns:[]}),s=(m,v=0)=>{let g=Ke.cloneDeep(RN);if(g.formData.name=m[v]&&m[v].config_name||"",g.formData.config_name=m[v]&&m[v].config_name||"",g.formData.config_unique_id=m[v]&&m[v].config_unique_id||new Date().getTime().toString(),g.formData.is_auth=m[v]&&m[v].is_auth||"1",m.length>0){let C=m.map(x=>({label:x.config_name,value:x.config_unique_id,is_auth:x.is_auth})),w=Ke.findIndex(g.formConfig,x=>x.prop=="name");if(w<0)return;let b=Ke.assign(g.formConfig[w],{op:C});g.formConfig.splice(w,1,b)}l.value=g,a.value=!0;let y=u();t("change",m[v]||y)};return{parentConfig:o,formConfig:l,isEdit:a,saveConfig:async()=>{await n.value.getSubmitData()&&t("save",{config_name:l.value.formData.config_name,config_unique_id:l.value.formData.config_unique_id,is_auth:l.value.formData.is_auth})},changeConfig:i,initOriginConfig:s,addConfig:()=>{if(!(a.value&&!l.value.formData.name)){let m=u();t("change",m)}l.value=Ke.cloneDeep(ynt),l.value.formData.config_unique_id=new Date().getTime().toString(),a.value=!1},cancel:()=>{s(Ke.cloneDeep(r.configs))},deleteConfig:()=>{t("delete")}}}const wnt={class:"flex justify-around items-center"},Ent={class:"basis-3/4"},knt={class:"basis-1/4 flex justify-end"},Snt=e.defineComponent({inheritAttrs:!1,__name:"saveForm",props:{configs:{type:Array,default:[]}},emits:["save","change","delete"],setup(t,{expose:n,emit:r}){const o=t,a=e.ref(),l=r,{parentConfig:i,formConfig:u,isEdit:s,saveConfig:c,changeConfig:d,initOriginConfig:f,addConfig:p,cancel:m,deleteConfig:v}=xnt(l,a,o);return n({initOriginConfig:f}),(g,y)=>{const C=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",wnt,[e.createElementVNode("div",Ent,[e.createTextVNode(e.toDisplayString(e.unref(u).formData)+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{ref_key:"saveFormRef",ref:a,parentConfig:e.unref(i),data:e.unref(u).formData,config:e.unref(u).formConfig,rules:e.unref(u).formRule,watchConfig:!0,onChange:e.unref(d)},null,40,["parentConfig","data","config","rules","onChange"]))]),e.createElementVNode("div",knt,[!e.unref(s)||e.unref(s)&&e.unref(u).formData.name?(e.openBlock(),e.createBlock(C,{key:0,onClick:e.unref(c),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存配置")]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(s)?(e.openBlock(),e.createBlock(C,{key:1,type:"primary",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode("新增配置")]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(s)&&e.unref(u).formData.name?(e.openBlock(),e.createBlock(C,{key:2,onClick:e.unref(v)},{default:e.withCtx(()=>[e.createTextVNode("删除配置")]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(C,{key:3,onClick:e.unref(m)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1},8,["onClick"]))])])}}}),IN=ap();function Bnt(t,n,r,o){let a=e.ref(),l=e.ref();const i=()=>{t.value.tables.push({id:"table_"+new Date().getTime().toString(),baseData:{id:""},tableConfig:[]})},u=E=>{let k=B6.find(t.value.tables,S=>S.id==E);da.confirm(`确定删除${(k==null?void 0:k.baseData.tableName)||"表格配置"}吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ke.remove(t.value.tables,S=>E&&S.id==E),ir.success("删除成功")}).catch(S=>{console.log("err",S)})},s=(E,k)=>{switch(k){case"remove":u(E);break;case"add":i();break}};let c=e.ref();const d=(E,k=!1)=>{if(E.form){if(E.form.formConfig.length>0){let $=0;E.form.formConfig=Ke.filter(E.form.formConfig,D=>{if(D.data.baseData.prop&&(k||D.data.baseData.isApply))return D.sort=++$,!0})}E.form.formConfig.length<=0&&delete E.form}E.tables.map($=>{let D=0;return $.tableConfig=Ke.filter($.tableConfig,N=>{if((N.data.field||N.data.type)&&(k||N.data.isApply))return N.data.type&&(N.data.field="",N.data.returnValueType=""),N.data.filters=Ke.filter(N.data.filters,A=>A.value),N.btnData=Ke.filter(N.btnData,A=>(k||A.data.isApply)&&A.data.key),N.sort=++D,!0}),$});let S=0;E.tables=Ke.filter(E.tables,$=>{if($.tableConfig.length>0)return $.sort=++S,!0});let B=0;return E.btns=Ke.filter(E.btns,$=>{if($.data.key&&(k||$.data.isApply))return $.sort=++B,!0}),E},f=(E={})=>(Object.keys(E).forEach(k=>{E[k]==""||E[k]==null||E[k]==null||E[k]instanceof Array&&E[k].length<=0||E[k]instanceof Object&&Ke.isEmpty(E[k])?delete E[k]:E[k]instanceof Object?f(E[k]):E[k]instanceof Array&&E[k].map(S=>f(S))}),E),p=E=>(E.btns=Ke.map(E.btns,(k,S)=>({id:k.id,data:f(k.data),sort:S+1})),E.form&&(E.form.baseData=Ke.assign({},f(E.form.baseData)),E.form.formConfig=Ke.map(E.form.formConfig,(k,S)=>({data:f(k.data),id:k.id,sort:S+1}))),E.tables=Ke.map(E.tables,(k,S)=>{let B=k.tableConfig.map((D,N)=>{let A=D.btnData.map(F=>f(F));return{id:D.id,data:f(D.data),btnData:A,sort:N+1}}),$=f(k.baseData);return k=Ke.assign(k,{tableConfig:B,baseData:$,sort:S+1}),k}),E),m=E=>{var D;let k=(E.btns||[]).map((N,A)=>({id:N.id,fieldName:N.data.name,showName:N.data.name,fieldProp:N.data.key,fieldShow:N.data.isShow,fieldRequired:!1,sort:A+1})),S=(E.tables||[]).map((N,A)=>{let F=N.tableConfig.map((z,P)=>{let L=(z.btnData||[]).map((R,W)=>({id:R.id||"",fieldName:R.data.name||"",showName:R.data.name||"",fieldProp:R.data.key||"",fieldShow:R.data.isShow||"",fieldRequired:!1,sort:W+1}));return{id:z.id,fieldName:z.data.title,showName:z.data.title,fieldProp:z.data.field,fieldShow:!1,fieldRequired:!1,fieldExport:!1,option:L,sort:P+1}});return{tableId:N.id||"",id:N.id||"",tableName:N.baseData.tableName||"",data:F,sort:A+1}}),B=(((D=E.form)==null?void 0:D.formConfig)||[]).map((N,A)=>({id:N.id,fieldName:N.data.baseData.label||"",showName:N.data.baseData.label||"",fieldProp:N.data.baseData.prop||"",fieldShow:N.data.baseData.isShow||!1,fieldRequired:N.data.elData.rules&&N.data.elData.rules.required||!1,sort:A+1}));return{config_type:"1",config_unique_id:E.config_unique_id,btns:k,tables:S,form:B,menu_id:l.value.id}},v=()=>{let E=[];Ke.cloneDeep(n.value).forEach(B=>{let $={code:B.config_unique_id,name:B.config_name,btns:{},form:{},tables:{}};if($.btns=Ke.keyBy((B.btns||[]).map(D=>({code:D.data.key,name:D.data.name,is_export:!0,show:!0})),"code"),B.form){let D=B.form.formConfig.map(N=>({code:N.data.baseData.prop,name:N.data.baseData.label,is_export:!0,show:!0}));$.form=Ke.keyBy(D,"code")}(B.tables||[]).forEach(D=>{let N=Ke.keyBy(D.tableConfig.map(A=>({name:A.data.title,code:A.data.field,is_export:!0,show:!0})),"code");$.tables=Ke.assign($.tables,{[D.id]:N})}),E.push($)});let S={};return S=Ke.keyBy(E,"code"),S};let g=e.ref("btn");const y=E=>{t.value=E,g.value="btn"},C=E=>{g.value="btn",r.value&&r.value.initOriginConfig(n.value,E)};return{handleTabsEdit:s,saveFormTableConfig:async E=>{let k=await d(Ke.cloneDeep(t.value),!0);k=Ke.assign(k,E);let B=n.value.map(z=>z.config_unique_id).indexOf(k.config_unique_id);B>-1?n.value.splice(B,1,k):n.value.push(k);let $=await d(Ke.cloneDeep(k),!1),D=await p(Ke.cloneDeep($)),N=await m(Ke.cloneDeep(D)),A=await v();console.log("originConfig系统配置",k,"businessConfig==业务配置",$,D,"authConfig权限配置数组",A,"权限数据",N);let F={field_json:JSON.stringify(k),config_name:k.config_name,config_type:"1",config_unique_id:k.config_unique_id,business_json:JSON.stringify(D),menu_id:l.value.id||"",page_name:l.value.meta.title,config_json:JSON.stringify(N),id:k.id||"",project_code:a.value.project_code,update_time:k.update_time||""};IN.postSaveField4Table(F).then(()=>{ir.success("保存配置成功"),c.value=k,o("refresh")}).catch(z=>{console.log("er",z)})},changeConfig:y,initData:(E,k,S)=>{n.value=E,a.value=S,l.value=k,C(0)},tabsActiveName:g,config:c,deleteConfig:()=>{da.prompt(`确认删除【${t.value.config_name}】吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",inputPattern:/^确认删除/,inputErrorMessage:"请输入“确认删除”",inputPlaceholder:"请输入“确认删除”"}).then(()=>{IN.postDelFieldById({id:t.value.id}).then(E=>{E.code==1&&(ir.success("删除成功"),setTimeout(()=>{o("refresh")},1500))})}).catch(()=>{ir.info("已取消删除")})}}}const Nnt={class:"flex flex-col h-full"},Tnt={class:"flex-1 system-user-container",style:{height:"300px"}},Dnt=e.defineComponent({__name:"bcPageConfig",emits:["refresh"],setup(t,{expose:n,emit:r}){let o=e.ref({id:"",config_type:"1",config_unique_id:"",config_name:"",btns:[],tables:[{id:"table_"+new Date().getTime().toString(),baseData:{id:"",tableName:"表格配置名称"},tableConfig:[]}]}),a=e.ref([]),l=e.ref();const i=r,{handleTabsEdit:u,saveFormTableConfig:s,changeConfig:c,initData:d,tabsActiveName:f,deleteConfig:p}=Bnt(o,a,l,i);return n({initData:d}),(m,v)=>{const g=e.resolveComponent("hs-tab-pane"),y=e.resolveComponent("hs-tabs");return e.openBlock(),e.createElementBlock("div",Nnt,[e.createElementVNode("div",Tnt,[e.createVNode(y,{ref:"tabsRef",modelValue:e.unref(f),"onUpdate:modelValue":v[2]||(v[2]=C=>e.isRef(f)?f.value=C:null),class:"h-full tabs",type:"border-card",addable:"",onEdit:e.unref(u)},{default:e.withCtx(()=>[e.createVNode(g,{class:"tab-pane",label:"按钮配置",name:"btn"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(gnt),{id:e.unref(o).config_unique_id,modelValue:e.unref(o).btns,"onUpdate:modelValue":v[0]||(v[0]=C=>e.unref(o).btns=C)},null,8,["id","modelValue"]))]),_:1}),e.createVNode(g,{class:"tab-pane",label:"查询条件配置",name:"form"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(itt),{modelValue:e.unref(o),"onUpdate:modelValue":v[1]||(v[1]=C=>e.isRef(o)?o.value=C:o=C)},null,8,["modelValue"]))]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).tables,(C,w)=>(e.openBlock(),e.createBlock(g,{key:w,class:"tab-pane",label:C.baseData.tableName||"表格配置名称",name:C.id,closable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Qtt),{closable:"",modelValue:e.unref(o).tables[w],"onUpdate:modelValue":b=>e.unref(o).tables[w]=b},null,8,["modelValue","onUpdate:modelValue"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onEdit"])]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Snt),{configs:e.unref(a),ref_key:"saveFormRef",ref:l,onChange:e.unref(c),onSave:e.unref(s),onDelete:e.unref(p)},null,40,["configs","onChange","onSave","onDelete"]))])}}}),Vnt=zr(Dnt,[["__scopeId","data-v-db383a56"]]),$nt=kP();function Ont(t){let n=e.ref(""),r=e.ref();const o=i=>{let u=r.value.find(s=>s.value==i);n.value=Ke.get(u,"value",""),wo.set("CURRENT_SYSTEM",u),t("change",u)},a=()=>{$nt.getAllSystemInfo().then(i=>{if(i.code==1){r.value=(i.data||[]).map(s=>({...s,label:s.project_name||"",value:s.project_code||""}));let u=wo.get("CURRENT_SYSTEM")||r.value[0];o(u&&u.value||"")}}).catch(i=>{console.log("err",i)})};return{onChange:o,initData:()=>{let i=wo.get("CURRENT_SYSTEM");n.value=(i==null?void 0:i.value)||"",a()},curSys:n,systems:r}}const Ant={class:"flex"},Mnt={key:0,class:"basis-1/4 flex flex-col justify-center"},Rnt=e.defineComponent({__name:"bcSwitchSystems",props:{showLabel:{type:Boolean,default:!1},labelText:{type:String,default:"当前系统:"}},emits:["change"],setup(t,{emit:n}){const r=t,o=n,{onChange:a,initData:l,curSys:i,systems:u}=Ont(o);return e.onMounted(()=>{l()}),(s,c)=>{const d=e.resolveComponent("hs-option"),f=e.resolveComponent("hs-select");return e.openBlock(),e.createElementBlock("div",Ant,[r.showLabel?(e.openBlock(),e.createElementBlock("div",Mnt,e.toDisplayString(r.labelText),1)):e.createCommentVNode("",!0),e.createVNode(f,{class:"flex-1",modelValue:e.unref(i),"onUpdate:modelValue":c[0]||(c[0]=p=>e.isRef(i)?i.value=p:null),onChange:e.unref(a)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),p=>(e.openBlock(),e.createBlock(d,{key:p.value,label:p.label,value:p.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])}}});function Int(t,n){let r;const o=i=>new Promise(u=>{if(!i||!t.url||!t.qry_key){clearTimeout(r),u([]);return}let s=Ke.assign(t.params,{[t.qry_key||""]:i});Gn({url:t.url,method:"get",params:s}).then(c=>{if(c.code!=1){clearTimeout(r),u([]);return}clearTimeout(r),console.log("res",t.url,s),c.data?Array.isArray(c.data)?u(c.data):Ke.get(c,"data.customPageList")&&Ke.isArray(Ke.get(c,"data.customPageList"))?u(Ke.get(c,"data.customPageList",[])):u([]):u([])}).catch(()=>{clearTimeout(r),u([])})});return{handleSelect:i=>{n("change",i)},querySearchAsync:async(i,u)=>{const s=await o(i);u(s)}}}const Pnt=e.defineComponent({__name:"bcAutoComplete",props:{qry_key:{type:String,default:""},url:{type:String,default:""},params:{type:Object,default:()=>{}},type:{type:String,default:"btn"},value_key:{type:String,default:"field_name"}},emits:["change"],setup(t,{emit:n}){const r=t,o=e.ref(""),a=n,{handleSelect:l,querySearchAsync:i}=Int(r,a);return(u,s)=>{const c=e.resolveComponent("hs-autocomplete");return e.openBlock(),e.createBlock(c,{modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=d=>o.value=d),clearable:"",class:"inline-input w-50",placeholder:"请输入",ref:"hsAutocompleteRef","fetch-suggestions":e.unref(i),onSelect:e.unref(l),"value-key":r.value_key||"name"},null,8,["modelValue","fetch-suggestions","onSelect","value-key"])}}}),Fnt=e.defineComponent({name:"bcGroupDate",props:{modelValue:{type:Object,required:!0},elComponent:{type:String,required:!0},fieldComponent:{type:String,required:!0}},emits:["update:modelValue","change"],setup(t,{emit:n,expose:r}){const o=e.ref(t.modelValue),a=e.ref([]);function l(u){const[s,c]=t.modelValue[t.fieldComponent];if(u){const[d,f]=u;e.toValue(o)[s]=d,e.toValue(o)[c]=f}else e.toValue(o)[s]="",e.toValue(o)[c]="";n("change",u),n("update:modelValue",e.toValue(o))}function i(){l(["",""]),a.value=["",""]}return r({clearData:i}),{groupData:a,onChange:l}}});function znt(t,n,r,o,a,l){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.elComponent),{modelValue:t.groupData,"onUpdate:modelValue":n[0]||(n[0]=i=>t.groupData=i),onChange:t.onChange},null,40,["modelValue","onChange"])}const Lnt=zr(Fnt,[["render",znt]]),Hnt=tx();function Wnt(t){const n=e.ref([]),r=u=>u.map(s=>{let c=Ke.assign(s,{label:s.meta.title,value:s.name});return c.children&&c.children.length>0&&(c.children=r(c.children||[])),c}),o=u=>{Hnt.getMenuList({project_code:u.project_code}).then(s=>{s.code==1&&(n.value=r(s.data||[]))}).catch(s=>{console.log("err",s)})};let a=e.ref();return{changeNode:u=>{a.value=u,t("changeNode",u)},onChangeSystem:u=>{o(u),t("changeSystem",u)},menuData:n}}function jnt(t,n){const r=l=>{n.onlyChild?(!l.children||l.children&&l.children.length<=0)&&t("change",l):t("change",l)},o=e.ref([]);return e.watch(()=>n.menu,l=>{o.value=Ke.cloneDeep(l)},{deep:!0,immediate:!0}),{handleNodeClick:r,menuData:o,defaultProps:{children:"children",label:"label"}}}const qnt={class:"max-h-full overflow-y-auto"},Unt=e.defineComponent({__name:"bcPageTree",props:{onlyChild:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1},menu:{type:Array,default:()=>[]}},emits:["change"],setup(t,{emit:n}){const r=t,o=n,{handleNodeClick:a,menuData:l,defaultProps:i}=jnt(o,r);return(u,s)=>{const c=e.resolveComponent("hs-tree");return e.openBlock(),e.createElementBlock("div",qnt,[e.createVNode(c,{data:e.unref(l),props:e.unref(i),"highlight-current":"","show-checkbox":t.showCheckbox,onNodeClick:e.unref(a)},null,8,["data","props","show-checkbox","onNodeClick"])])}}}),Knt={class:"bg-blue-500 py-5 rounded-md",style:{width:"200px"}},Gnt=e.defineComponent({__name:"bcPageTreeBySystem",emits:["changeNode","changeSystem"],setup(t,{expose:n,emit:r}){const o=r,{changeNode:a,onChangeSystem:l,menuData:i}=Wnt(o);return n({onChangeSystem:l}),(u,s)=>{const c=e.resolveComponent("bc-switch-systems");return e.openBlock(),e.createElementBlock("div",Knt,[e.createVNode(c,{onChange:e.unref(l)},null,8,["onChange"]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Unt),{menu:e.unref(i),onChange:e.unref(a)},null,40,["menu","onChange"]))])}}}),Ynt={class:"text-[#606266]"},Xnt={key:1},Znt={class:"mb-[10px]"},Jnt={key:0,class:"flex justify-center align-middle mt-[10px]"},Qnt=e.defineComponent({__name:"baseForm",props:{data:{type:Object,default:()=>{}},config:{type:Array,default:()=>[]},isRecursive:{type:Boolean,default:!1},isVModel:{type:Boolean,default:!1},xs:{type:Number,default:24},sm:{type:Number,default:24},md:{type:Number,default:24},lg:{type:Number,default:24},xl:{type:Number,default:24}},setup(t,{expose:n}){const r=t,o=e.ref(),a=e.ref(r.data);let l=e.ref(r.isRecursive||r.isVModel?r.data:Ke.cloneDeep(r.data)),i=e.ref(r.config);const u=()=>{console.log("submitForm"),o.value&&o.value.validate(c=>{if(c)console.log("submit!",l.value),a.value=Object.assign(a.value,l.value);else return console.log("error submit!",l.value),!1})};return n({validForm:()=>new Promise(c=>{if(!o.value){c(!1);return}o.value.validate(d=>{c(!!d)})})}),(c,d)=>{const f=e.resolveComponent("ele-Warning"),p=e.resolveComponent("el-icon"),m=e.resolveComponent("el-tooltip"),v=e.resolveComponent("hs-form-item"),g=e.resolveComponent("hs-alert"),y=e.resolveComponent("base-form",!0),C=e.resolveComponent("hs-col"),w=e.resolveComponent("hs-row"),b=e.resolveComponent("hs-form"),x=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["h-full",{"overflow-y-auto":!t.isRecursive}])},[e.createVNode(b,{model:e.unref(l),"label-width":"146px","label-position":"right",ref_key:"formRef",ref:o},{default:e.withCtx(()=>[e.createVNode(w,{gutter:0,justify:"start",class:"hs-row"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(E,k)=>(e.openBlock(),e.createBlock(C,{key:k,xs:t.isRecursive?t.xs:24,sm:t.isRecursive?t.sm:24,md:t.isRecursive?t.md:24,lg:t.isRecursive?t.lg:24,xl:t.isRecursive?t.xl:24,class:"mb-[20px]"},{default:e.withCtx(()=>[E.el!="title"?(e.openBlock(),e.createBlock(v,e.normalizeProps(e.mergeProps({key:0},E)),{label:e.withCtx(()=>[e.createElementVNode("span",Ynt,"  "+e.toDisplayString(E.label)+"  ",1),e.createVNode(m,{class:"box-item",effect:"dark",content:E.tooltip||E.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(f)]),_:1})])]),_:2},1032,["content"])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E.el),e.mergeProps({modelValue:e.unref(l)[E.prop],"onUpdate:modelValue":S=>e.unref(l)[E.prop]=S,clearable:E.clearable!=!1,placeholder:"请输入"},E.attrs||{}),{default:e.withCtx(()=>[E.op?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(E.op||[],(S,B)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E.cel),{key:B,label:S.label,value:S.value},null,8,["label","value"]))),128)):e.createCommentVNode("",!0)]),_:2},1040,["modelValue","onUpdate:modelValue","clearable"]))]),_:2},1040)):(e.openBlock(),e.createElementBlock("div",Xnt,[e.createElementVNode("div",Znt,[e.createVNode(g,{title:E.label,type:"info",closable:!1},null,8,["title"])]),E.children?(e.openBlock(),e.createBlock(y,{key:0,data:e.unref(l)[E.prop],config:E.children,isRecursive:!0,xs:t.xs,sm:t.sm,md:t.md,lg:t.lg,xl:t.xl},null,8,["data","config","xs","sm","md","lg","xl"])):e.createCommentVNode("",!0)]))]),_:2},1032,["xs","sm","md","lg","xl"]))),128))]),_:1})]),_:1},8,["model"]),!t.isRecursive&&!t.isVModel?(e.openBlock(),e.createElementBlock("footer",Jnt,[e.createVNode(x,{type:"primary",onClick:u},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])):e.createCommentVNode("",!0)],2)}}}),qa=zr(Qnt,[["__scopeId","data-v-ec198f7a"]]),ert={class:"p-[10px] h-full"},trt=e.defineComponent({name:"inputAttrConfig"}),nrt=e.defineComponent({...trt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t;let r=e.ref({inputAttrConfig:Ke.cloneDeep(set),inputAttrConfigMap:Ke.cloneDeep(b1)});const o=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,r.value.inputAttrConfigMap):n.data);return(a,l)=>(e.openBlock(),e.createElementBlock("div",ert,[e.createVNode(qa,{data:o.value,"onUpdate:data":l[0]||(l[0]=i=>o.value=i),config:e.unref(r).inputAttrConfig,isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),rrt={class:"p-[10px] h-full overflow-y-auto"},ort=e.defineComponent({name:"inputEventConfig"}),art=e.defineComponent({...ort,props:{data:{type:Object,default:()=>{}}},setup(t){const n=()=>{console.log(o),console.log(a)},r=t,o=e.ref(Ke.isEmpty(r.data)?Object.assign(r.data,{}):r.data),a=e.ref(ON.map(()=>({})));return console.log("formData",a),(l,i)=>{const u=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",rrt,[e.createVNode(u,{onClick:n},{default:e.withCtx(()=>[e.createTextVNode("父组件获取数据")]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ON),(s,c)=>(e.openBlock(),e.createElementBlock("div",{key:c},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.el),e.mergeProps({modelValue:a.value[c][s.prop],"onUpdate:modelValue":d=>a.value[c][s.prop]=d,clearable:"",placeholder:"请输入"},s.attrs||{}),null,16,["modelValue","onUpdate:modelValue"]))]))),128))])}}}),lrt=[{prop:"attrs",label:"selectAttrs",tooltip:"selectAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"options",label:"option配置数据",tooltip:"option配置数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取options",tooltip:"通过url请求获取options配置项数据",type:"string",el:"hs-input"},{prop:"params",label:"请求参数",type:"string",el:"hs-input"},{prop:"method",label:"请求方式",type:"string",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"proxy",label:"代理",type:"string",el:"hs-input"},{prop:"dictCode",label:"字典code",tooltip:"字典code",type:"string",el:"hs-input"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"value-key",label:"value 唯一标识",tooltip:"作为 value 唯一标识的键名,绑定值为对象类型时必填",type:"string",el:"hs-input"},{prop:"placeholder",label:"占位符",tooltip:"占位符,默认为“Select”",type:"string",el:"hs-input"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"clearable",label:"是否可以清空",tooltip:"是否可以清空选项",type:"boolean",el:"hs-switch"},{prop:"collapse-tags",label:"值按文字展示",tooltip:"多选时是否将选中值按文字的形式展示",type:"boolean",el:"hs-switch"},{prop:"collapse-tags-tooltip",label:"是否显示所选",tooltip:"当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true",type:"boolean",el:"hs-switch"},{prop:"multiple-limit",label:"最多可选数",tooltip:"multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制",type:"number",el:"hs-input-number"},{prop:"name",label:"原生name属性",tooltip:"Select 输入框的原生 name 属性",type:"string",el:"hs-input"},{prop:"effect",label:"tooltip 主题",tooltip:"tooltip 主题,内置了 dark / light 两种",type:"enum / string",el:"hs-select",op:[{label:"dark",value:"dark"},{label:"light",value:"light"}],cel:"hs-option"},{prop:"autocomplete",label:"autocomplete",tooltip:"Select 输入框的原生 autocomplete 属性",type:"string",el:"hs-input"},{prop:"filterable",label:"是否可筛选",tooltip:"Select 组件是否可筛选",type:"boolean",el:"hs-switch"},{prop:"allow-create",label:"允许创建条目",tooltip:"是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。",type:"boolean",el:"hs-switch"},{prop:"filter-method",label:"筛选方法",tooltip:"自定义筛选方法",type:"Function",el:"hs-input"},{prop:"remote",label:"是否远程加载",tooltip:"其中的选项是否从服务器远程加载",type:"boolean",el:"hs-switch"},{prop:"remote-method",label:"远程搜索方法",tooltip:"自定义远程搜索方法",type:"Function",el:"hs-input"},{prop:"remote-show-suffix",label:"远程搜索图标",tooltip:"远程搜索方法显示后缀图标",type:"boolean",el:"hs-switch"},{prop:"loading",label:"是否正在获取",tooltip:"是否正在从远程获取数据",type:"boolean",el:"hs-switch"},{prop:"loading-text",label:"加载时文本",tooltip:"从服务器加载数据时显示的文本,默认为“Loading”",type:"string",el:"hs-input"},{prop:"no-match-text",label:"无匹配时显示",tooltip:"搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”",type:"string",el:"hs-input"},{prop:"no-data-text",label:"无选项时显示",tooltip:"无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”",type:"string",el:"hs-input"},{prop:"popper-class",label:"下拉菜单类名",tooltip:"选择器下拉菜单的自定义类名",type:"string",el:"hs-input"},{prop:"reserve-keyword",label:"保留关键词",tooltip:"当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词",type:"boolean",el:"hs-switch"},{prop:"default-first-option",label:"回车选择",tooltip:"是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用",type:"boolean",el:"hs-switch"},{prop:"teleported",label:"是否插入至body",tooltip:"是否将下拉列表插入至 body 元素",type:"boolean",el:"hs-switch"},{prop:"persistent",label:"选择器未被激活",tooltip:"当下拉选择器未被激活并且persistent设置为false,选择器会被删除。",type:"boolean",el:"hs-switch"},{prop:"automatic-dropdown",label:"自动弹出选项",tooltip:"对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单",type:"boolean",el:"hs-switch"},{prop:"clear-icon",label:"清除图标",tooltip:"自定义清除图标",type:"string / object",el:"hs-input"},{prop:"fit-input-width",label:"下拉框宽度",tooltip:"下拉框的宽度是否与输入框相同",type:"boolean",el:"hs-switch"},{prop:"suffix-icon",label:"后缀图标",tooltip:"自定义后缀图标组件",type:"string / object",el:"hs-input"},{prop:"suffix-transition deprecated",label:"下拉图标动画",tooltip:"下拉菜单显示/消失时后缀图标的动画",type:"boolean",el:"hs-switch"},{prop:"tag-type",label:"标签类型",tooltip:"标签类型",type:"enum",el:"hs-select",op:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}],cel:"hs-option"},{prop:"validate-event",label:"表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"placement",label:"下拉框出现位置",tooltip:"下拉框出现的位置",type:"enum",el:"hs-select",op:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}],cel:"hs-option"},{prop:"max-collapse-tags",label:"Tag最大数量",tooltip:"需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。",type:"number",el:"hs-input-number"},{prop:"popper-options",label:"popper参数",tooltip:"popper.js 参数",type:"objectrefer to popper.js doc",el:"hs-input"},{prop:"aria-label",label:"aria-label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"}]},{prop:"groupAttrs",label:"optionGroupAttrs",tooltip:"optionGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"label",label:"分组的名称",tooltip:"分组的名称",type:"string",el:"hs-input"},{prop:"disabled",label:"是否禁用分组",tooltip:"是否将该分组下所有选项置为禁用",type:"string",el:"hs-switch"}]},{prop:"optionAttrs",label:"optionAttrs",tooltip:"optionAttrs",type:"object",el:"title",children:[{prop:"value",label:"选项的值",tooltip:"选项的值",type:"string",el:"hs-input"},{prop:"label",label:"选项的标签",tooltip:"选项的标签,若不设置则默认与value相同",type:"string",el:"hs-input"},{prop:"disabled",label:"是否禁用选项",tooltip:"是否禁用该选项",type:"string",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],irt={attrs:{size:"default",multiple:!1,disabled:!1,"value-key":"value",clearable:!0,"collapse-tags":!1,"collapse-tags-tooltip":!1,"multiple-limit":0,effect:"light",autocomplete:"off",filterable:!0,"allow-create":!1,remote:!1,"remote-show-suffix":!1,loading:!1,"reserve-keyword":!0,"default-first-option":!1,teleported:!0,persistent:!0,"automatic-dropdown":!0,"clear-icon":"","fit-input-width":!1,"suffix-icon":"","tag-type":"info","validate-event":!0,placement:"bottom-start","max-collapse-tags":1,options:"string=",method:"get",proxy:"",params:"",placeholder:"请选择"},groupAttrs:{disabled:!1,isGroupEnabled:!1},optionAttrs:{value:"value",label:"label",disabled:!1},rules:{required:!1,rules:""}},srt={class:"p-[10px] h-full"},urt=e.defineComponent({name:"selectAttrConfig"}),crt=e.defineComponent({...urt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t;let r=e.ref(Ke.cloneDeep(irt));e.onMounted(()=>{let a=wo.get("CURRENT_SYSTEM");r.value.attrs.proxy=a.project_url,console.log("system",a,r.value)});const o=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,r.value):n.data);return(a,l)=>(e.openBlock(),e.createElementBlock("div",srt,[e.createVNode(qa,{data:o.value,"onUpdate:data":l[0]||(l[0]=i=>o.value=i),config:e.unref(lrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),drt=[{prop:"attrs",label:"datePickerAttrs",tooltip:"datePickerAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"number / string / object",el:"hs-input"},{prop:"readonly",label:"只读",tooltip:"只读",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"禁用",tooltip:"禁用",type:"boolean",el:"hs-switch"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"editable",label:"文本框可输入",tooltip:"文本框可输入",type:"boolean",el:"hs-switch"},{prop:"clearable",label:"清除按钮",tooltip:"是否显示清除按钮",type:"boolean",el:"hs-switch"},{prop:"placeholder",label:"占位符",tooltip:"非范围选择时的占位内容",type:"string",el:"hs-input"},{prop:"start-placeholder",label:"开始日期占位符",tooltip:"范围选择时开始日期的占位内容",type:"string",el:"hs-input"},{prop:"end-placeholder",label:"结束日期占位符",tooltip:"范围选择时结束日期的占位内容",type:"string",el:"hs-input"},{prop:"type",label:"显示类型",tooltip:"显示类型",type:"enum",el:"hs-select",op:[{label:"year",value:"year"},{label:"month",value:"month"},{label:"date",value:"date"},{label:"dates",value:"dates"},{label:"week",value:"week"},{label:"datetime",value:"datetime"},{label:"datetimerange",value:"datetimerange"},{label:"daterange",value:"daterange"},{label:"monthrange",value:"monthrange"}],cel:"hs-option"},{prop:"format",label:"输入框中的格式",tooltip:"显示在输入框中的格式",type:"参见 date formats",el:"hs-input"},{prop:"popper-class",label:"下拉框的类名",tooltip:"DatePicker 下拉框的类名",type:"string",el:"hs-input"},{prop:"popper-options",label:"自定义popper",tooltip:"自定义 popper 选项,更多请参考 popper.js",type:"object",el:"hs-input"},{prop:"range-separator",label:"分隔符",tooltip:"选择范围时的分隔符",type:"string",el:"hs-input"},{prop:"default-time",label:"default-tim",tooltip:"范围选择时选中日期所使用的当日内具体时刻",type:"object",el:"hs-input"},{prop:"value-format",label:"绑定值的格式",tooltip:"可选,绑定值的格式。 不指定则绑定值为 Date 对象",type:"参见 date formats",el:"hs-input"},{prop:"id",label:"id",tooltip:"等价于原生 input id 属性",type:"string / object",el:"hs-input"},{prop:"name",label:"name",tooltip:"等价于原生 input name 属性",type:"string / object",el:"hs-input"},{prop:"unlink-panels",label:"unlink-panels",tooltip:"在范围选择器里取消两个日期面板之间的联动",type:"boolean",el:"hs-switch"},{prop:"prefix-icon",label:"前缀图标",tooltip:"自定义前缀图标 如果 type的值是TimeLikeType,那么就是 Clock,不然就是 Calendar",type:"string / object",el:"hs-input"},{prop:"clear-icon",label:"清除图标",tooltip:"清除图标",type:"string / object",el:"hs-input"},{prop:"validate-event",label:"是否表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"disabled-date",label:"disabled-date",tooltip:"一个用来判断该日期是否被禁用的函数,接受一个 Date 对象作为参数。 应该返回一个 Boolean 值。",type:"Function",el:"hs-input"},{prop:"shortcuts",label:"设置快捷选项",tooltip:"设置快捷选项,需要传入数组对象",type:"object",el:"hs-input"},{prop:"cell-class-name",label:"设置类名",tooltip:"设置自定义类名",type:"Function",el:"hs-input"},{prop:"teleported",label:"是否插入至body",tooltip:"是否将 date-picker 的下拉列表插入至 body 元素",type:"boolean",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],frt={attrs:{size:"default",readonly:!1,disabled:!1,editable:!0,clearable:!0,type:"date","range-separator":"-","unlink-panels":!1,"clear-icon":"","validate-event":!0,teleported:!0,placeholder:"请选择",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss"},rules:{required:!1,rules:""}},prt={class:"p-[10px] h-full"},vrt=e.defineComponent({name:"datePickerAttrConfig"}),mrt=e.defineComponent({...vrt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(frt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",prt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(drt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),hrt=[{prop:"attrs",label:"按钮属性",tooltip:"按钮属性",type:"object",el:"title",children:[{prop:"operate",label:"操作",tooltip:"操作",type:"enum",el:"hs-select",op:[{label:"query",value:"query"},{label:"reset",value:"reset"},{label:"add",value:"add"},{label:"edit",value:"edit"},{label:"delete",value:"delete"},{label:"export",value:"export"},{label:"import",value:"import"}],cel:"hs-option",attrs:{filterable:!0,"allow-create":!0,"default-first-option":!0}},{prop:"type",label:"类型",tooltip:"类型",type:"enum",el:"hs-select",op:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],cel:"hs-option"},{prop:"name",label:"按钮文本内容",tooltip:"按钮文本内容",type:"string",el:"hs-input"},{prop:"disabled",label:"按钮是否禁用",tooltip:"按钮是否为禁用状态",type:"boolean",el:"hs-switch"},{prop:"size",label:"尺寸",tooltip:"尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"plain",label:"是否为朴素按钮",tooltip:"是否为朴素按钮",type:"boolean",el:"hs-switch"},{prop:"text",label:"是否为文字按钮",tooltip:"是否为文字按钮",type:"boolean",el:"hs-switch"},{prop:"bg",label:"是否显示背景色",tooltip:"是否显示文字按钮背景颜色",type:"boolean",el:"hs-switch"},{prop:"color",label:"自定义颜色",el:"hs-color-picker"},{prop:"textColor",label:"按钮文本色",el:"hs-color-picker"},{prop:"round",label:"圆角按钮",tooltip:"是否为圆角按钮",type:"boolean",el:"hs-switch"},{prop:"circle",label:"圆形按钮",tooltip:"是否为圆形按钮",type:"boolean",el:"hs-switch"},{prop:"fnName",label:"方法名称",el:"hs-input",attrs:{type:"textarea"}},{prop:"loading",label:"是否为加载中",tooltip:"是否为加载中状态",type:"boolean",el:"hs-switch"},{prop:"loading-icon",label:"加载中图标",tooltip:"自定义加载中状态图标组件",type:"string / Component",el:"hs-input"},{prop:"icon",label:"图标组件",tooltip:"图标组件",type:"string / Component",el:"hs-input"},{prop:"link",label:"链接按钮",tooltip:"是否为链接按钮",type:"boolean",el:"hs-switch"},{prop:"autofocus",label:"autofocus",tooltip:"原生 autofocus 属性",type:"boolean",el:"hs-switch"},{prop:"native-type",label:"原生 type 属性",tooltip:"原生 type 属性",type:"enum",el:"hs-select",op:[{label:"button",value:"button"},{label:"submit",value:"submit"},{label:"reset",value:"reset"}],cel:"hs-option"},{prop:"auto-insert-space",label:"自动插入空格",tooltip:"自动在两个中文字符之间插入空格",type:"boolean",el:"hs-switch"},{prop:"dark",label:"dark 模式",tooltip:"dark 模式, 意味着自动设置 color 为 dark 模式的颜色",type:"boolean",el:"hs-switch"},{prop:"tag",label:"自定义元素标签",tooltip:"自定义元素标签",type:"string / Component",el:"hs-input"}]},{prop:"groupAttrs",label:"buttonGroupAttrs",tooltip:"buttonGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"size",label:"按钮组内按钮大小",tooltip:"用于控制该按钮组内按钮的大小",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"type",label:"按钮组内按钮类型",tooltip:"用于控制该按钮组内按钮的类型",type:"enum",el:"hs-select",op:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],cel:"hs-option"}]}],grt={attrs:{size:"default",plain:!1,text:!1,bg:!1,link:!1,round:!1,circle:!1,loading:!1,"loading-icon":"Loading",autofocus:!1,"native-type":"button",dark:!1,tag:"button"},groupAttrs:{}},brt={class:"p-[10px] h-full"},yrt=e.defineComponent({name:"buttonAttrConfig"}),_rt=e.defineComponent({...yrt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(grt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",brt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(hrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Crt=[{prop:"attrs",label:"autocompleteAttrs",tooltip:"autocompleteAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"placeholder",label:"占位符",tooltip:"占位符",type:"string",el:"hs-input"},{prop:"fetch-suggestions",label:"远程搜索方法",tooltip:"获取输入建议的方法, 仅当你的输入建议数据 resolve 时,通过调用 callback(data:[]) 来返回它",type:"Function",el:"hs-input"},{prop:"fetch-url",label:"远程搜索地址",tooltip:"远程搜索地址",type:"string",el:"hs-input"},{prop:"clearable",label:"是否可清空",tooltip:"是否可清空",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"自动补全组件是否被禁用",type:"boolean",el:"hs-switch"},{prop:"value-key",label:"用于显示的键名",tooltip:"输入建议对象中用于显示的键名",type:"string",el:"hs-input"},{prop:"debounce",label:"防抖延时",tooltip:"获取输入建议的防抖延时,单位为毫秒",type:"number",el:"hs-input-number"},{prop:"placement",label:"菜单弹出位置",tooltip:"菜单弹出位置",type:"enum",el:"hs-select",op:[{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"}],cel:"hs-option"},{prop:"trigger-on-focus",label:"trigger-on-focus",tooltip:"whether show suggestions when input focus",type:"boolean",el:"hs-switch"},{prop:"select-when-unmatched",label:"回车触发select",tooltip:"在输入没有任何匹配建议的情况下,按下回车是否触发 select 事件",type:"boolean",el:"hs-switch"},{prop:"name",label:"name",tooltip:"等价于原生 input name 属性",type:"string",el:"hs-input"},{prop:"label",label:"关联的label",tooltip:"输入框关联的 label 文字",type:"string",el:"hs-input"},{prop:"hide-loading",label:"隐藏加载图标",tooltip:"是否隐藏远程加载时的加载图标",type:"boolean",el:"hs-switch"},{prop:"popper-class",label:"下拉列表的类名",tooltip:"下拉列表的类名",type:"string",el:"hs-input"},{prop:"popper-append-to-body",label:"列表插入body",tooltip:"是否将下拉列表插入至 body 元素。 在下拉列表的定位出现问题时,可将该属性设置为 false",type:"boolean",el:"hs-switch"},{prop:"teleported",label:"传送",tooltip:"是否将下拉列表元素插入 append-to 指向的元素下",type:"boolean",el:"hs-switch"},{prop:"highlight-first-item",label:"高亮结果第一项",tooltip:"是否默认高亮远程搜索结果的第一项",type:"boolean",el:"hs-switch"},{prop:"fit-input-width",label:"宽度与输入框相同",tooltip:"下拉框的宽度是否与输入框相同",type:"boolean",el:"hs-switch"}]}],xrt={attrs:{size:"default",clearable:!1,disabled:!1,"value-key":"value",debounce:300,placement:"bottom-start","trigger-on-focus":!0,"select-when-unmatched":!1,"hide-loading":!1,teleported:!0,"highlight-first-item":!1,"fit-input-width":!1,placeholder:"请输入"}},wrt={class:"p-[10px] h-full"},Ert=e.defineComponent({name:"autocompleteAttrConfig"}),krt=e.defineComponent({...Ert,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(xrt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",wrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Crt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Srt=[{prop:"attrs",label:"switchAttrs",tooltip:"switchAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"boolean / string / number",el:"hs-input"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"loading",label:"是否显示加载中",tooltip:"是否显示加载中",type:"boolean",el:"hs-switch"},{prop:"size",label:"switch 的大小",tooltip:"switch 的大小",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"width",label:"switch 的宽度",tooltip:"switch 的宽度",type:"number / string",el:"hs-input"},{prop:"inline-prompt",label:"只呈现第一个字符",tooltip:"无论图标或文本是否显示在点内,只会呈现文本的第一个字符",type:"boolean",el:"hs-switch"},{prop:"active-icon",label:"激活时所显示图标",tooltip:"switch 状态为 on 时所显示图标,设置此项会忽略 active-text",type:"string / Component",el:"hs-input"},{prop:"inactive-icon",label:"关闭时所显示图标",tooltip:"switch 状态为 off 时所显示图标,设置此项会忽略 inactive-text",type:"string / Component",el:"hs-input"},{prop:"active-action-icon",label:"打开时图标组件",tooltip:"on状态下显示的图标组件",type:"string / Component",el:"hs-input"},{prop:"inactive-action-icon",label:"关闭时图标组件",tooltip:"off状态下显示的图标组件",type:"string / Component",el:"hs-input"},{prop:"active-text",label:"打开时的文字描述",tooltip:"switch 打开时的文字描述",type:"string",el:"hs-input"},{prop:"inactive-text",label:"关闭时的文字描述",tooltip:"switch 的状态为 off 时的文字描述",type:"string",el:"hs-input"},{prop:"active-value",label:"状态为打开时的值",tooltip:"switch 状态为 on 时的值",type:"boolean / string / number",el:"hs-input"},{prop:"inactive-value",label:"状态为关闭时的值",tooltip:"switch的状态为 off 时的值",type:"boolean / string / number",el:"hs-input"},{prop:"name",label:"name",tooltip:"switch 对应的 name 属性",type:"string",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"before-change",label:"状态改变前的钩子",tooltip:"switch 状态改变前的钩子, 返回 false 或者返回 Promise 且被 reject 则停止切换",type:"boolean / Function",el:"hs-switch"},{prop:"id",label:"id",tooltip:"id",type:"string",el:"hs-input"},{prop:"tabindex",label:"tabindex",tooltip:"input 的 tabindex",type:"string / number",el:"hs-input"},{prop:"label",label:"aria-label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Brt={attrs:{size:"default",disabled:!1,loading:!1,"inline-prompt":!1,"validate-event":!0},rules:{required:!1,rules:""}},Nrt={class:"p-[10px] h-full"},Trt=e.defineComponent({name:"switchAttrConfig"}),Drt=e.defineComponent({...Trt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(Brt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Nrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Srt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Vrt=[{prop:"attrs",label:"uploadAttrs",tooltip:"uploadAttrs",type:"object",el:"title",children:[{prop:"action",label:"请求 URL",tooltip:"请求 URL",type:"string",el:"hs-input"},{prop:"headers",label:"设置上传的请求头",tooltip:"设置上传的请求头部",type:"object",el:"hs-input"},{prop:"method",label:"设置上传请求方法",tooltip:"设置上传请求方法",type:"string",el:"hs-select",op:[{label:"post",value:"post"}],cel:"hs-option"},{prop:"multiple",label:"是否支持多选文件",tooltip:"是否支持多选文件",type:"boolean",el:"hs-switch"},{prop:"data",label:"额外参数",tooltip:"上传时附带的额外参数 从 v2.3.13 支持 Awaitable 数据,和 Function",type:"object / Function",el:"hs-input"},{prop:"name",label:"上传文件字段名",tooltip:"上传的文件字段名",type:"string",el:"hs-input"},{prop:"isBase64",label:"是否是base64",tooltip:"是否是base64文件",type:"boolean",el:"hs-switch"},{prop:"isShowCapture",label:"是否显示高拍仪",tooltip:"是否显示高拍仪控件",type:"boolean",el:"hs-switch"},{prop:"with-credentials",label:"支持发送cookie",tooltip:"支持发送 cookie 凭证信息",type:"boolean",el:"hs-switch"},{prop:"show-file-list",label:"show-file-list",tooltip:"是否显示已上传文件列表",type:"boolean",el:"hs-switch"},{prop:"drag",label:"是否启用拖拽上传",tooltip:"是否启用拖拽上传",type:"boolean",el:"hs-switch"},{prop:"accept",label:"上传的文件类型",tooltip:"接受上传的文件类型(thumbnail-mode 模式下此参数无效)",type:"string",el:"hs-input"},{prop:"on-preview",label:"已上传的钩子",tooltip:"点击文件列表中已上传的文件时的钩子",type:"Function",el:"hs-input"},{prop:"on-remove",label:"移除文件的钩子",tooltip:"文件列表移除文件时的钩子",type:"Function",el:"hs-input"},{prop:"on-success",label:"上传成功的钩子",tooltip:"文件上传成功时的钩子",type:"Function",el:"hs-input"},{prop:"on-error",label:"上传失败的钩子",tooltip:"文件上传失败时的钩子",type:"Function",el:"hs-input"},{prop:"on-progress",label:"上传时的钩子",tooltip:"文件上传时的钩子",type:"Function",el:"hs-input"},{prop:"on-change",label:"状态改变时的钩子",tooltip:"文件状态改变时的钩子,添加文件、上传成功和上传失败时都会被调用",type:"Function",el:"hs-input"},{prop:"on-exceed",label:"超出限制时的钩子",tooltip:"当超出限制时,执行的钩子函数",type:"Function",el:"hs-input"},{prop:"before-upload",label:"上传之前的钩子",tooltip:"上传文件之前的钩子,参数为上传的文件, 若返回false或者返回 Promise 且被 reject,则停止上传。",type:"Function",el:"hs-input"},{prop:"before-remove",label:"删除之前的钩子",tooltip:"删除文件之前的钩子,参数为上传的文件和文件列表, 若返回 false 或者返回 Promise 且被 reject,则停止删除。",type:"Function",el:"hs-input"},{prop:"file-list",label:"默认上传文件",tooltip:"默认上传文件",type:"object",el:"hs-input"},{prop:"list-type",label:"文件列表的类型",tooltip:"文件列表的类型",type:"enum",el:"hs-select",op:[{label:"text",value:"text"},{label:"picture",value:"picture"},{label:"picture-card",value:"picture-card"}],cel:"hs-option"},{prop:"auto-upload",label:"是否自动上传文件",tooltip:"是否自动上传文件",type:"boolean",el:"hs-switch"},{prop:"http-request",label:"覆盖默认的Xhr",tooltip:"覆盖默认的 Xhr 行为,允许自行实现上传文件的请求",type:"Function",el:"hs-input"},{prop:"disabled",label:"是否禁用上传",tooltip:"是否禁用上传",type:"boolean",el:"hs-switch"},{prop:"limit",label:"最大数量",tooltip:"允许上传文件的最大数量",type:"number",el:"hs-input-number"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],$rt={attrs:{method:"post",multiple:!1,name:"file","with-credentials":!1,"show-file-list":!0,drag:!1,"list-type":"text","auto-upload":!0,disabled:!1},rules:{}},Ort={class:"p-[10px] h-full"},Art=e.defineComponent({name:"uploadAttrConfig"}),Mrt=e.defineComponent({...Art,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep($rt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Ort,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Vrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Rrt=[{prop:"attrs",label:"checkboxAttrs",tooltip:"checkboxAttrs",type:"object",el:"title",children:[{prop:"isButtonEnabled",label:"是否启用按钮",tooltip:"是否启用按钮",type:"boolean",el:"hs-switch"},{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean",el:"hs-input"},{prop:"label",label:"选中状态的值",tooltip:"选中状态的值(只有在checkbox-group或者绑定对象类型为array时有效)",type:"string / number / boolean / object",el:"hs-input"},{prop:"true-label",label:"选中时的值",tooltip:"选中时的值",type:"string / number",el:"hs-input"},{prop:"false-label",label:"没有选中时的值",tooltip:"没有选中时的值",type:"string / number",el:"hs-input"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"border",label:"是否显示边框",tooltip:"是否显示边框",type:"boolean",el:"hs-switch"},{prop:"size",label:"尺寸",tooltip:"Checkbox 的尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"name",label:"原生 name 属性",tooltip:"原生 name 属性",type:"string",el:"hs-input"},{prop:"checked",label:"当前是否勾选",tooltip:"当前是否勾选",type:"boolean",el:"hs-switch"},{prop:"indeterminate",label:"设置不确定状态",tooltip:"设置不确定状态,仅负责样式控制",type:"boolean",el:"hs-switch"},{prop:"validate-event",label:"表单的校验",tooltip:"输入时是否触发表单的校验",type:"boolean",el:"hs-switch"},{prop:"tabindex",label:"tabindex",tooltip:"输入框的 tabindex",type:"string / number",el:"hs-input"},{prop:"id",label:"id",tooltip:"input id",type:"string",el:"hs-input"},{prop:"controls",label:"controls",tooltip:"与 aria-control一致, 当 indeterminate为 true时生效",type:"boolean",el:"hs-switch"}]},{prop:"groupAttrs",label:"checkboxGroupAttrs",tooltip:"checkboxGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"options",label:"option配置数据",tooltip:"option配置数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取options",tooltip:"通过url请求获取options配置项数据",type:"string",el:"hs-input"},{prop:"method",label:"请求方式",type:"string",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"params",label:"请求参数",type:"string",el:"hs-input"},{prop:"proxy",label:"代理",type:"string",el:"hs-input"},{prop:"value",label:"选项的值value",tooltip:"选项的值",type:"string",el:"hs-input"},{prop:"label",label:"选项的标签label",tooltip:"选项的标签,若不设置则默认与value相同",type:"string",el:"hs-input"},{prop:"size",label:"多选框组尺寸",tooltip:"多选框组尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"min",label:"最小数量",tooltip:"最小数量",type:"string",el:"hs-input-number"},{prop:"max",label:"最大数量",tooltip:"最大数量",type:"string",el:"hs-input-number"},{prop:"text-color",label:"字体颜色",tooltip:"当按钮为活跃状态时的字体颜色",type:"string",el:"hs-input"},{prop:"fill",label:"边框和背景颜色",tooltip:"当按钮为活跃状态时的边框和背景颜色",type:"string",el:"hs-input"},{prop:"tag",label:"复选框组元素标签",tooltip:"复选框组元素标签",type:"string",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"string",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Irt={attrs:{isButtonEnabled:!1,size:"default",disabled:!1,border:!1,checked:!1,indeterminate:!1,"validate-event":!0},groupAttrs:{isGroupEnabled:!0,options:"string=",method:"get",disabled:!1,"text-color":"#ffffff",fill:"#409EFF",tag:"div","validate-event":!0},rules:{required:!1,rules:""}},Prt={class:"p-[10px] h-full"},Frt=e.defineComponent({name:"checkboxAttrConfig"}),zrt=e.defineComponent({...Frt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(Irt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Prt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Rrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Lrt=[{prop:"attrs",label:"radioAttrs",tooltip:"radioAttrs",type:"object",el:"title",children:[{prop:"isButtonEnabled",label:"是否启用按钮",tooltip:"是否启用按钮",type:"boolean",el:"hs-switch"},{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean",el:"hs-input"},{prop:"label",label:"单选框的label",tooltip:"单选框的 label",type:"string / number / boolean",el:"hs-input"},{prop:"disabled",label:"是否禁用单选框",tooltip:"是否禁用单选框",type:"boolean",el:"hs-switch"},{prop:"border",label:"是否显示边框",tooltip:"是否显示边框",type:"boolean",el:"hs-switch"},{prop:"size",label:"单选框的尺寸",tooltip:"单选框的尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"name",label:"原始 name 属性",tooltip:"原始 name 属性",type:"string",el:"hs-input"}]},{prop:"groupAttrs",label:"radioGroupAttrs",tooltip:"radioGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"options",label:"option配置数据",tooltip:"option配置数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取options",tooltip:"通过url请求获取options配置项数据",type:"string",el:"hs-input"},{prop:"method",label:"请求方式",type:"string",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"params",label:"请求参数",type:"string",el:"hs-input"},{prop:"proxy",label:"代理",type:"string",el:"hs-input"},{prop:"value",label:"选项的值value",tooltip:"选项的值",type:"string",el:"hs-input"},{prop:"label",label:"选项的标签label",tooltip:"选项的标签,若不设置则默认与value相同",type:"string",el:"hs-input"},{prop:"size",label:"单选框按钮大小",tooltip:"单选框按钮或边框按钮的大小",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"text-color",label:"字体颜色",tooltip:"当按钮为活跃状态时的字体颜色",type:"string",el:"hs-input"},{prop:"fill",label:"边框和背景颜色",tooltip:"当按钮为活跃状态时的边框和背景颜色",type:"string",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"string",el:"hs-switch"},{prop:"name",label:"原生 name 属性",tooltip:"原生 name 属性",type:"string",el:"hs-input"},{prop:"id ",label:"原生 id 属性",tooltip:"原生 id 属性",type:"string",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Hrt={attrs:{isButtonEnabled:!1,disabled:!1,border:!1},groupAttrs:{isGroupEnabled:!0,options:"string=",method:"get",size:"default",disabled:!1,"text-color":"#ffffff",fill:"#409EFF","validate-event":!0},rules:{required:!1,rules:""}},Wrt={class:"p-[10px] h-full"},jrt=e.defineComponent({name:"radioAttrConfig"}),qrt=e.defineComponent({...jrt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(Hrt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Wrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Lrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Urt=[{prop:"attrs",label:"inputNumberAttrs",tooltip:"inputNumberAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number",el:"hs-input"},{prop:"min",label:"最小值",tooltip:"设置计数器允许的最小值",type:"number",el:"hs-input-number"},{prop:"max",label:"最大值",tooltip:"设置计数器允许的最大值",type:"number",el:"hs-input-number"},{prop:"step",label:"计数器步长",tooltip:"计数器步长",type:"number",el:"hs-input-number"},{prop:"step-strictly",label:"只能输入step倍数",tooltip:"是否只能输入 step 的倍数",type:"boolean",el:"hs-switch"},{prop:"precision",label:"数值精度",tooltip:"数值精度",type:"number",el:"hs-input-number"},{prop:"size",label:"计数器尺寸",tooltip:"计数器尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"placeholder",label:"占位符",tooltip:"等价于原生 input placeholder 属性",type:"string",el:"hs-input"},{prop:"readonly",label:"是否只读",tooltip:"原生 readonly 属性,是否只读",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用状态",tooltip:"是否禁用状态",type:"boolean",el:"hs-switch"},{prop:"controls",label:"是否使用控制按钮",tooltip:"是否使用控制按钮",type:"boolean",el:"hs-switch"},{prop:"controls-position",label:"控制按钮位置",tooltip:"控制按钮位置",type:"enum",el:"hs-select",op:[{label:"right",value:"right"}],cel:"hs-option"},{prop:"name",label:"input name 属性",tooltip:"等价于原生 input name 属性",type:"string",el:"hs-input"},{prop:"label",label:"input label 属性",tooltip:"等价于原生 input label 属性",type:"string",el:"hs-input"},{prop:"id",label:"input id 属性",tooltip:"等价于原生 input id 属性",type:"string",el:"hs-input"},{prop:"value-on-clear",label:"被清空时显示的值",tooltip:"当输入框被清空时显示的值",type:"number / null / enum",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Krt={attrs:{"step-strictly":!1,size:"default",readonly:!1,disabled:!1,controls:!0,"validate-event":!0,placeholder:"请输入"},rules:{required:!1,rules:""}},Grt={class:"p-[10px] h-full"},Yrt=e.defineComponent({name:"inputNumberAttrConfig"}),Xrt=e.defineComponent({...Yrt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(Krt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Grt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Urt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Zrt=[{prop:"attrs",label:"cascaderAttrs",tooltip:"cascaderAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"options",label:"选项的数据源",tooltip:"选项的数据源, value 和 label 可以通过 CascaderProps 自定义.(JSON)",type:"object",el:"hs-input",attrs:{type:"textarea"}},{prop:"props",label:"配置选项",tooltip:"配置选项, 请参阅下面 CascaderProps 表。",type:"object",el:"title",children:[{prop:"expandTrigger",label:"次级菜单展开方式",tooltip:"次级菜单的展开方式",type:"enum",el:"hs-select",op:[{label:"click",value:"click"},{label:"hover",value:"hover"}],cel:"hs-option"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"checkStrictly",label:"父子节点不关联",tooltip:"是否严格的遵守父子节点不互相关联",type:"boolean",el:"hs-switch"},{prop:"emitPath",label:"emitPath",tooltip:"在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值",type:"boolean",el:"hs-switch"},{prop:"lazy",label:"动态加载子节点",tooltip:"是否动态加载子节点,需与 lazyLoad 方法结合使用",type:"boolean",el:"hs-switch"},{prop:"lazyLoad",label:"加载动态数据方法",tooltip:"加载动态数据的方法,仅在 lazy 为 true 时有效",type:"string",el:"hs-input"},{prop:"value",label:"value",tooltip:"指定选项的值为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"label",label:"label",tooltip:"指定选项标签为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"children",label:"children",tooltip:"指定选项的子选项为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"disabled",label:"disabled",tooltip:"指定选项的禁用为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"leaf",label:"leaf",tooltip:"指定选项的叶子节点的标志位为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"hoverThreshold",label:"菜单的灵敏度阈值",tooltip:"hover 时展开菜单的灵敏度阈值",type:"number",el:"hs-input-number"}]},{prop:"size",label:"尺寸",tooltip:"尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"placeholder",label:"占位符",tooltip:"占位符",type:"string",el:"hs-input"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"clearable",label:"是否支持清空选项",tooltip:"是否支持清空选项",type:"boolean",el:"hs-switch"},{prop:"show-all-levels",label:"show-all-levels",tooltip:"输入框中是否显示选中值的完整路径",type:"boolean",el:"hs-switch"},{prop:"collapse-tags",label:"是否折叠Tag",tooltip:"多选模式下是否折叠Tag",type:"boolean",el:"hs-switch"},{prop:"collapse-tags-tooltip",label:"显示选中的标签",tooltip:"当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true",type:"boolean",el:"hs-switch"},{prop:"separator",label:"分隔选项的字符",tooltip:"用于分隔选项的字符",type:"string",el:"hs-input"},{prop:"filterable",label:"是否可以被搜索",tooltip:"该选项是否可以被搜索",type:"boolean",el:"hs-switch"},{prop:"filter-method",label:"自定义搜索逻辑",tooltip:"自定义搜索逻辑,第一个参数是node,第二个参数是keyword,返回的布尔值表示是否保留该选项(Function)",type:"Function",el:"hs-input"},{prop:"debounce",label:" 防抖延迟,毫秒",tooltip:"搜索关键词正在输入时的去抖延迟,单位为毫秒",type:"number",el:"hs-input-number"},{prop:"before-filter",label:"过滤函数前置钩子",tooltip:"过滤函数调用前,所要调用的钩子函数,该函数接收要过滤的值作为参数。 如果该函数的返回值是 false 或者是一个被拒绝的 Promise,那么接下来的过滤逻辑便不会执行。",type:"Function",el:"hs-input"},{prop:"popper-class",label:"自定义类名",tooltip:"弹出内容的自定义类名",type:"string",el:"hs-input"},{prop:"teleported",label:"是否使用teleport",tooltip:"弹层是否使用 teleport",type:"boolean",el:"hs-switch"},{prop:"tag-type",label:"标签类型",tooltip:"标签类型",type:"enum",el:"hs-select",op:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}],cel:"hs-option"},{prop:"validate-event",label:"是否触发表单校验",tooltip:"输入时是否触发表单的校验",type:"boolean",el:"hs-switch"},{prop:"max-collapse-tags",label:"Tag的最大数量",tooltip:"需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。",type:"number",el:"hs-input-number"}]}],Jrt={attrs:{size:"default",placeholder:"请选择",props:{expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,value:"value",label:"label",children:"children",disabled:"disabled",leaf:"leaf",hoverThreshold:500},"show-all-levels":!1,"collapse-tags-tooltip":!1,separator:"/",debounce:300,teleported:!0,"tag-type":"info","validate-event":!0,"max-collapse-tags":1}},Qrt={class:"p-[10px] h-full"},eot=e.defineComponent({name:"cascaderAttrConfig"}),tot=e.defineComponent({...eot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(Jrt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Qrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Zrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),not=[{prop:"attrs",label:"cascaderAttrs",tooltip:"cascaderAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"options",label:"选项的数据源",tooltip:"选项的数据源, value 和 label 可以通过 CascaderProps 自定义. (JSON)",type:"object",el:"hs-input",attrs:{type:"textarea"}},{prop:"props",label:"配置选项",tooltip:"配置选项, 请参阅下面 CascaderProps 表。",type:"object",el:"title",children:[{prop:"expandTrigger",label:"次级菜单展开方式",tooltip:"次级菜单的展开方式",type:"enum",el:"hs-select",op:[{label:"click",value:"click"},{label:"hover",value:"hover"}],cel:"hs-option"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"checkStrictly",label:"父子节点不关联",tooltip:"是否严格的遵守父子节点不互相关联",type:"boolean",el:"hs-switch"},{prop:"emitPath",label:"emitPath",tooltip:"在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值",type:"boolean",el:"hs-switch"},{prop:"lazy",label:"动态加载子节点",tooltip:"是否动态加载子节点,需与 lazyLoad 方法结合使用",type:"boolean",el:"hs-switch"},{prop:"lazyLoad",label:"加载动态数据方法",tooltip:"加载动态数据的方法,仅在 lazy 为 true 时有效",type:"string",el:"hs-input"},{prop:"value",label:"value",tooltip:"指定选项的值为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"label",label:"label",tooltip:"指定选项标签为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"children",label:"children",tooltip:"指定选项的子选项为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"disabled",label:"disabled",tooltip:"指定选项的禁用为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"leaf",label:"leaf",tooltip:"指定选项的叶子节点的标志位为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"hoverThreshold",label:"菜单的灵敏度阈值",tooltip:"hover 时展开菜单的灵敏度阈值",type:"number",el:"hs-input-number"}]}]}],rot={attrs:{size:"default",props:{expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,value:"value",label:"label",children:"children",disabled:"disabled",leaf:"leaf",hoverThreshold:500}}},oot={class:"p-[10px] h-full"},aot=e.defineComponent({name:"cascaderPanelAttrConfig"}),lot=e.defineComponent({...aot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(rot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",oot,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(not),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),iot=[{prop:"attrs",label:"treeSelectAttrs",tooltip:"treeSelectAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"value-key",label:"value 唯一标识",tooltip:"作为 value 唯一标识的键名,绑定值为对象类型时必填",type:"string",el:"hs-input"},{prop:"placeholder",label:"占位符",tooltip:"占位符,默认为“Select”",type:"string",el:"hs-input"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"clearable",label:"是否可以清空",tooltip:"是否可以清空选项",type:"boolean",el:"hs-switch"},{prop:"collapse-tags",label:"值按文字展示",tooltip:"多选时是否将选中值按文字的形式展示",type:"boolean",el:"hs-switch"},{prop:"collapse-tags-tooltip",label:"是否显示所选",tooltip:"当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true",type:"boolean",el:"hs-switch"},{prop:"multiple-limit",label:"最多可选数",tooltip:"multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制",type:"number",el:"hs-input-number"},{prop:"name",label:"原生name属性",tooltip:"Select 输入框的原生 name 属性",type:"string",el:"hs-input"},{prop:"effect",label:"tooltip 主题",tooltip:"tooltip 主题,内置了 dark / light 两种",type:"enum / string",el:"hs-select",op:[{label:"dark",value:"dark"},{label:"light",value:"light"}],cel:"hs-option"},{prop:"autocomplete",label:"autocomplete",tooltip:"Select 输入框的原生 autocomplete 属性",type:"string",el:"hs-input"},{prop:"filterable",label:"是否可筛选",tooltip:"Select 组件是否可筛选",type:"boolean",el:"hs-switch"},{prop:"allow-create",label:"允许创建条目",tooltip:"是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。",type:"boolean",el:"hs-switch"},{prop:"filter-method",label:"筛选方法",tooltip:"自定义筛选方法",type:"Function",el:"hs-input"},{prop:"remote",label:"是否远程加载",tooltip:"其中的选项是否从服务器远程加载",type:"boolean",el:"hs-switch"},{prop:"remote-method",label:"远程搜索方法",tooltip:"自定义远程搜索方法",type:"Function",el:"hs-input"},{prop:"remote-show-suffix",label:"远程搜索图标",tooltip:"远程搜索方法显示后缀图标",type:"boolean",el:"hs-switch"},{prop:"loading",label:"是否正在获取",tooltip:"是否正在从远程获取数据",type:"boolean",el:"hs-switch"},{prop:"loading-text",label:"加载时文本",tooltip:"从服务器加载数据时显示的文本,默认为“Loading”",type:"string",el:"hs-input"},{prop:"no-match-text",label:"无匹配时显示",tooltip:"搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”",type:"string",el:"hs-input"},{prop:"no-data-text",label:"无选项时显示",tooltip:"无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”",type:"string",el:"hs-input"},{prop:"popper-class",label:"下拉菜单类名",tooltip:"选择器下拉菜单的自定义类名",type:"string",el:"hs-input"},{prop:"reserve-keyword",label:"保留关键词",tooltip:"当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词",type:"boolean",el:"hs-switch"},{prop:"default-first-option",label:"回车选择",tooltip:"是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用",type:"boolean",el:"hs-switch"},{prop:"teleported",label:"是否插入至body",tooltip:"是否将下拉列表插入至 body 元素",type:"boolean",el:"hs-switch"},{prop:"persistent",label:"选择器未被激活",tooltip:"当下拉选择器未被激活并且persistent设置为false,选择器会被删除。",type:"boolean",el:"hs-switch"},{prop:"automatic-dropdown",label:"自动弹出选项",tooltip:"对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单",type:"boolean",el:"hs-switch"},{prop:"clear-icon",label:"清除图标",tooltip:"自定义清除图标",type:"string / object",el:"hs-input"},{prop:"fit-input-width",label:"下拉框宽度",tooltip:"下拉框的宽度是否与输入框相同",type:"boolean",el:"hs-switch"},{prop:"suffix-icon",label:"后缀图标",tooltip:"自定义后缀图标组件",type:"string / object",el:"hs-input"},{prop:"suffix-transition deprecated",label:"下拉图标动画",tooltip:"下拉菜单显示/消失时后缀图标的动画",type:"boolean",el:"hs-switch"},{prop:"tag-type",label:"标签类型",tooltip:"标签类型",type:"enum",el:"hs-select",op:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}],cel:"hs-option"},{prop:"validate-event",label:"表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"placement",label:"下拉框出现位置",tooltip:"下拉框出现的位置",type:"enum",el:"hs-select",op:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}],cel:"hs-option"},{prop:"max-collapse-tags",label:"Tag最大数量",tooltip:"需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。",type:"number",el:"hs-input-number"},{prop:"popper-options",label:"popper参数",tooltip:"popper.js 参数",type:"objectrefer to popper.js doc",el:"hs-input"},{prop:"aria-label",label:"aria-label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"},{prop:"treeAttrs",label:"treeAttrs",tooltip:"treeAttrs",type:"title",el:"title"},{prop:"data",label:"data展示数据",tooltip:"data展示数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取data数据",tooltip:"通过url请求获取data展示数据",type:"string",el:"hs-input"},{prop:"params",label:"请求参数",tooltip:"请求参数",type:"string",el:"hs-input"},{prop:"proxy",label:"系统代理",tooltip:"系统代理",type:"string",el:"hs-input"},{prop:"empty-text",label:"内容为空时的文本",tooltip:"内容为空的时候展示的文本",type:"string",el:"hs-input"},{prop:"node-key",label:"唯一标识",tooltip:"每个树节点用来作为唯一标识的属性,整棵树应该是唯一的",type:"string",el:"hs-input"},{prop:"props",label:"props 配置选项",tooltip:"配置选项,具体看下表",type:"title",el:"title",children:[{prop:"label",label:"label",tooltip:"指定节点标签为节点对象的某个属性值",type:"string",el:"hs-input"},{prop:"children",label:"children",tooltip:"指定子树为节点对象的某个属性值",type:"string",el:"hs-input"},{prop:"disabled",label:"disabled",tooltip:"指定节点选择框是否禁用为节点对象的某个属性值",type:"string",el:"hs-input"},{prop:"isLeaf",label:"是否为叶子节点",tooltip:"指定节点是否为叶子节点,仅在指定了 lazy 属性的情况下生效",type:"string",el:"hs-input"},{prop:"class",label:"节点类名",tooltip:"自定义节点类名",type:"string",el:"hs-input"}]},{prop:"render-after-expand",label:"延迟渲染子节点",tooltip:"是否在第一次展开某个树节点后才渲染其子节点",type:"boolean",el:"hs-switch"},{prop:"load",label:"load",tooltip:"加载子树数据的方法,仅当 lazy 属性为true 时生效",type:"function(node, resolve),node为当前点击的节点,resolve为数据加载完成的回调(必须调用)",el:"hs-input"},{prop:"render-content",label:"节点内容区的渲染",tooltip:"树节点的内容区的渲染 Function",type:"Function(h, { node, data, store })",el:"hs-input"},{prop:"highlight-current",label:"高亮当前选中节点",tooltip:"是否高亮当前选中节点,默认值是 false。",type:"boolean",el:"hs-switch"},{prop:"default-expand-all",label:"默认展开所有节点",tooltip:"是否默认展开所有节点",type:"boolean",el:"hs-switch"},{prop:"expand-on-click-node",label:"展开或收缩节点",tooltip:"是否在点击节点的时候展开或者收缩节点, 默认值为 true,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。",type:"boolean",el:"hs-switch"},{prop:"check-on-click-node",label:"点击节点选中节点",tooltip:"是否在点击节点的时候选中节点,默认值为 false,即只有在点击复选框时才会选中节点。",type:"boolean",el:"hs-switch"},{prop:"auto-expand-parent",label:"自动展开父节点",tooltip:"展开子节点的时候是否自动展开父节点",type:"boolean",el:"hs-switch"},{prop:"default-expanded-keys",label:"默认展开数组",tooltip:"默认展开的节点的 key 的数组",type:"array",el:"hs-input"},{prop:"show-checkbox",label:"节点是否可被选择",tooltip:"节点是否可被选择",type:"boolean",el:"hs-switch"},{prop:"check-strictly",label:"父子不互相关联",tooltip:"在显示复选框的情况下,是否严格的遵循父子不互相关联的做法,默认为 false",type:"boolean",el:"hs-switch"},{prop:"default-checked-keys",label:"默认勾选的数组",tooltip:"默认勾选的节点的 key 的数组",type:"array",el:"hs-input"},{prop:"current-node-key",label:"当前选中的节点",tooltip:"当前选中的节点",type:"string / number",el:"hs-input"},{prop:"filter-node-method",label:"树节点的筛选方法",tooltip:"对树节点进行筛选时执行的方法, 返回 false 则表示这个节点会被隐藏",type:"Function(value, data, node)",el:"hs-input"},{prop:"accordion",label:"accordion",tooltip:"是否每次只打开一个同级树节点展开",type:"boolean",el:"hs-switch"},{prop:"indent",label:"节点间的缩进",tooltip:"相邻级节点间的水平缩进,单位为像素",type:"number",el:"hs-input"},{prop:"icon",label:"树节点图标组件",tooltip:"自定义树节点图标组件",type:"string | Component",el:"hs-input"},{prop:"lazy",label:"是否懒加载子节点",tooltip:"是否懒加载子节点,需与 load 方法结合使用",type:"boolean",el:"hs-switch"},{prop:"draggable",label:"开启拖拽功能",tooltip:"是否开启拖拽节点功能",type:"boolean",el:"hs-switch"},{prop:"allow-drag",label:"节点能否被拖拽",tooltip:"判断节点能否被拖拽 如果返回 false ,节点不能被拖动",type:"Function(node)",el:"hs-input"},{prop:"allow-drop",label:"allow-drop",tooltip:"拖拽时判定目标节点能否成为拖动目标位置。 如果返回 false ,拖动节点不能被拖放到目标节点。 type 参数有三种情况:'prev'、'inner' 和 'next',分别表示放置在目标节点前、插入至目标节点和放置在目标节点后",type:"Function(draggingNode, dropNode, type)",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],sot={attrs:{size:"default",multiple:!1,disabled:!1,"value-key":"value",clearable:!1,"collapse-tags":!1,"collapse-tags-tooltip":!1,"multiple-limit":0,effect:"light",autocomplete:"off",filterable:!0,"allow-create":!1,remote:!1,"remote-show-suffix":!1,loading:!1,"reserve-keyword":!0,"default-first-option":!1,teleported:!0,persistent:!0,"automatic-dropdown":!0,"clear-icon":"","fit-input-width":!1,"suffix-icon":"","tag-type":"info","validate-event":!0,placement:"bottom-start","max-collapse-tags":1,props:{},data:"string=",placeholder:"请选择"},rules:{required:!1,rules:""}},uot={class:"p-[10px] h-full"},cot=e.defineComponent({name:"treeSelectAttrConfig"}),dot=e.defineComponent({...cot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(sot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",uot,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(iot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),fot=[{title:"hs-test",componentName:uSe},{title:"hs-table",componentName:pSe},{title:"hs-bc-table",componentName:mSe},{title:"hs-button",componentName:YSe},{title:"hs-button-group",componentName:JSe},{title:"hs-input",componentName:e5e},{title:"hs-select",componentName:n5e},{title:"hs-option",componentName:a5e},{title:"hs-option-group",componentName:s5e},{title:"hs-form",componentName:c5e},{title:"hs-form-item",componentName:f5e},{title:"hs-row",componentName:v5e},{title:"hs-col",componentName:h5e},{title:"hs-tree",componentName:y5e},{title:"hs-input-number",componentName:C5e},{title:"hs-switch",componentName:w5e},{title:"hs-radio",componentName:k5e},{title:"hs-radio-group",componentName:B5e},{title:"hs-radio-button",componentName:T5e},{title:"hs-checkbox",componentName:V5e},{title:"hs-checkbox-group",componentName:O5e},{title:"hs-checkbox-button",componentName:M5e},{title:"hs-rate",componentName:I5e},{title:"hs-autocomplete",componentName:F5e},{title:"hs-slider",componentName:L5e},{title:"hs-cascader",componentName:W5e},{title:"hs-cascader-panel",componentName:q5e},{title:"hs-color-picker",componentName:K5e},{title:"hs-upload",componentName:Y5e},{title:"hs-transfer",componentName:Z5e},{title:"hs-date-picker",componentName:Q5e},{title:"hs-scrollbar",componentName:tBe},{title:"hs-calendar",componentName:rBe},{title:"hs-carousel",componentName:aBe},{title:"hs-carousel-item",componentName:iBe},{title:"hs-collapse",componentName:uBe},{title:"hs-collapse-item",componentName:dBe},{title:"hs-progress",componentName:pBe},{title:"hs-result",componentName:mBe},{title:"hs-tour",componentName:gBe},{title:"hs-tour-step",componentName:yBe},{title:"hs-tag",componentName:CBe},{title:"hs-check-tag",componentName:wBe},{title:"hs-affix",componentName:kBe},{title:"hs-tabs",componentName:BBe},{title:"hs-tab-pane",componentName:TBe},{title:"hs-steps",componentName:VBe},{title:"hs-step",componentName:OBe},{title:"hs-alert",componentName:MBe},{title:"hs-dialog",componentName:IBe},{title:"hs-drawer",componentName:FBe},{title:"hs-popconfirm",componentName:LBe},{title:"hs-popover",componentName:WBe},{title:"hs-tooltip",componentName:qBe},{title:"hs-watermark",componentName:KBe},{title:"hs-dropdown",componentName:YBe},{title:"hs-dropdown-menu",componentName:ZBe},{title:"hs-dropdown-item",componentName:QBe},{title:"hs-tree-select",componentName:t9e},{title:"hs-badge",componentName:r9e},{title:"bc-btn",componentName:d9e},{title:"bc-box",componentName:lZe},{title:"bc-radio",componentName:sZe},{title:"bc-checkbox",componentName:cZe},{title:"bc-icon",componentName:l9e},{title:"bc-form",componentName:jZe},{title:"bc-table",componentName:UZe},{title:"bc-form-table",componentName:XQe},{title:"bc-form-config",componentName:oet},{title:"bc-select",componentName:JQe},{title:"bc-tree-select",componentName:iet},{title:"bc-page-config",componentName:Vnt},{title:"bc-switch-systems",componentName:Rnt},{title:"bc-auto-complete",componentName:Pnt},{title:"bc-group-date",componentName:Lnt},{title:"bc-page-tree-for-system",componentName:Gnt},{title:"hs-config-input",componentName:nrt},{title:"hs-config-event",componentName:art},{title:"hs-config-select",componentName:crt},{title:"hs-config-date-picker",componentName:mrt},{title:"hs-config-button",componentName:_rt},{title:"hs-config-autocomplete",componentName:krt},{title:"hs-config-switch",componentName:Drt},{title:"hs-config-upload",componentName:Mrt},{title:"hs-config-checkbox",componentName:zrt},{title:"hs-config-radio",componentName:qrt},{title:"hs-config-input-number",componentName:Xrt},{title:"hs-config-cascader",componentName:tot},{title:"hs-config-cascader-panel",componentName:lot},{title:"hs-config-tree-select",componentName:dot}],OP={install(t){fot.forEach(n=>{t.component(n.title,n.componentName)})}};function pot(t){t.directive("auth",{mounted(n,r){il().userInfos.authBtnList.some(a=>a===r.value)||n.parentNode.removeChild(n)}}),t.directive("auths",{mounted(n,r){let o=!1;il().userInfos.authBtnList.map(l=>{r.value.map(i=>{l===i&&(o=!0)})}),o||n.parentNode.removeChild(n)}}),t.directive("auth-all",{mounted(n,r){const o=il();q6(r.value,o.userInfos.authBtnList)||n.parentNode.removeChild(n)}})}function vot(t){t.directive("waves",{mounted(n,r){n.classList.add("waves-effect"),r.value&&n.classList.add(`waves-${r.value}`);function o(l){let i="";for(let u in l)l.hasOwnProperty(u)&&(i+=`${u}:${l[u]};`);return i}function a(l){let i=document.createElement("div");i.classList.add("waves-ripple"),n.appendChild(i);let u={left:`${l.layerX}px`,top:`${l.layerY}px`,opacity:1,transform:`scale(${n.clientWidth/100*10})`,"transition-duration":"750ms","transition-timing-function":"cubic-bezier(0.250, 0.460, 0.450, 0.940)"};i.setAttribute("style",o(u)),setTimeout(()=>{i.setAttribute("style",o({opacity:0,transform:u.transform,left:u.left,top:u.top})),setTimeout(()=>{i&&n.removeChild(i)},750)},450)}n.addEventListener("mousedown",a,!1)},unmounted(n){n.addEventListener("mousedown",()=>{})}})}function mot(t){t.directive("drag",{mounted(n,r){if(!r.value)return!1;const o=document.querySelector(r.value[0]),a=document.querySelector(r.value[1]);a.onmouseover=()=>a.style.cursor="move";function l(u,s){const c=s==="pc"?u.clientX-a.offsetLeft:u.touches[0].clientX-a.offsetLeft,d=s==="pc"?u.clientY-a.offsetTop:u.touches[0].clientY-a.offsetTop,f=document.body.clientWidth,p=document.documentElement.clientHeight,m=o.offsetWidth,v=o.offsetHeight,g=o.offsetLeft,y=f-o.offsetLeft-m,C=o.offsetTop,w=p-o.offsetTop-v;let b=getComputedStyle(o).left,x=getComputedStyle(o).top;return b.includes("%")?(b=+document.body.clientWidth*(+b.replace(/\%/g,"")/100),x=+document.body.clientHeight*(+x.replace(/\%/g,"")/100)):(b=+b.replace(/\px/g,""),x=+x.replace(/\px/g,"")),{disX:c,disY:d,minDragDomLeft:g,maxDragDomLeft:y,minDragDomTop:C,maxDragDomTop:w,styL:b,styT:x}}function i(u,s,c){let{disX:d,disY:f,minDragDomLeft:p,maxDragDomLeft:m,minDragDomTop:v,maxDragDomTop:g,styL:y,styT:C}=c,w=s==="pc"?u.clientX-d:u.touches[0].clientX-d,b=s==="pc"?u.clientY-f:u.touches[0].clientY-f;-w>p?w=-p:w>m&&(w=m),-b>v?b=-v:b>g&&(b=g),o.style.cssText+=`;left:${w+y}px;top:${b+C}px;`}a.onmousedown=u=>{const s=l(u,"pc");document.onmousemove=c=>{i(c,"pc",s)},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null}},a.ontouchstart=u=>{const s=l(u,"app");document.ontouchmove=c=>{i(c,"app",s)},document.ontouchend=()=>{document.ontouchmove=null,document.ontouchend=null}}}})}function hot(t){pot(t),vot(t),mot(t)}const got=Object.freeze(Object.defineProperty({__proto__:null,directive:hot},Symbol.toStringTag,{value:"Module"}));function bot(t,n){ni.value=n==null?void 0:n.NEXT_NAME,ld.value=(n==null?void 0:n.IS_DEV)||!1,t.use(Kke).use(OP)}exports.ClickOutside=Ii;exports.ElConfigProvider=QD;exports.ElMessage=ir;exports.ElMessageBox=da;exports.ElTree=X7;exports.NextLoading=X2;exports.Session=wo;exports._=Ke;exports._export_sfc=zr;exports._sfc_main=SP;exports.avatar_default=LT;exports.baseForm=qa;exports.commonjsGlobal=an;exports.component=OP;exports.delete_default=d3;exports.edit_default=KT;exports.formatAxis=YA;exports.getDataType=XA;exports.getDefaultExportFromCjs=Jo;exports.getFormData=rP;exports.getLoadData=nP;exports.index=ZXe;exports.index$1=got;exports.index$2=KSe;exports.inputAttrConfigMap=b1;exports.isObjectValueEqual=U6;exports.lodashExports=B6;exports.mittBus=QA;exports.onBeforeRouteUpdate=E$e;exports.other=iM;exports.request=Gn;exports.setBackEndControlRefreshRoutes=y7e;exports.setting_default=oD;exports.showPopup=v1;exports.storeToRefs=Mu;exports.systemStore=Di;exports.to=ud;exports.useBtnConfigController=zx;exports.useFieldConfigController=ap;exports.useHsAdminUi=bot;exports.useKeepALiveNames=HA;exports.useMenuController=tx;exports.usePostMan=EP;exports.useRoute=U$e;exports.useRouter=q$e;exports.useRoutesList=Q2;exports.useSystemController=kP;exports.useTagsViewRoutes=Q6;exports.useThemeConfig=e1;exports.useUserInfo=il;exports.useVModel=D6;exports.verifyUrl=ox;exports.zhCn=Gke;
197
+ */function xN(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,o)}return r}function Fi(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?xN(Object(r),!0).forEach(function(o){yJe(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xN(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function vg(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vg=function(n){return typeof n}:vg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vg(t)}function yJe(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function Ns(){return Ns=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ns.apply(this,arguments)}function _Je(t,n){if(t==null)return{};var r={},o=Object.keys(t),a,l;for(l=0;l<o.length;l++)a=o[l],!(n.indexOf(a)>=0)&&(r[a]=t[a]);return r}function CJe(t,n){if(t==null)return{};var r=_Je(t,n),o,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a<l.length;a++)o=l[a],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(r[o]=t[o])}return r}var xJe="1.15.1";function Es(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Ls=Es(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),J0=Es(/Edge/i),wN=Es(/firefox/i),Fv=Es(/safari/i)&&!Es(/chrome/i)&&!Es(/android/i),sP=Es(/iP(ad|od|hone)/i),uP=Es(/chrome/i)&&Es(/android/i),cP={capture:!1,passive:!1};function xr(t,n,r){t.addEventListener(n,r,!Ls&&cP)}function br(t,n,r){t.removeEventListener(n,r,!Ls&&cP)}function l2(t,n){if(n){if(n[0]===">"&&(n=n.substring(1)),t)try{if(t.matches)return t.matches(n);if(t.msMatchesSelector)return t.msMatchesSelector(n);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(n)}catch{return!1}return!1}}function wJe(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function wi(t,n,r,o){if(t){r=r||document;do{if(n!=null&&(n[0]===">"?t.parentNode===r&&l2(t,n):l2(t,n))||o&&t===r)return t;if(t===r)break}while(t=wJe(t))}return null}var EN=/\s+/g;function el(t,n,r){if(t&&n)if(t.classList)t.classList[r?"add":"remove"](n);else{var o=(" "+t.className+" ").replace(EN," ").replace(" "+n+" "," ");t.className=(o+(r?" "+n:"")).replace(EN," ")}}function pn(t,n,r){var o=t&&t.style;if(o){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(r=t.currentStyle),n===void 0?r:r[n];!(n in o)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),o[n]=r+(typeof r=="string"?"":"px")}}function hf(t,n){var r="";if(typeof t=="string")r=t;else do{var o=pn(t,"transform");o&&o!=="none"&&(r=o+" "+r)}while(!n&&(t=t.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(r)}function dP(t,n,r){if(t){var o=t.getElementsByTagName(n),a=0,l=o.length;if(r)for(;a<l;a++)r(o[a],a);return o}return[]}function $i(){var t=document.scrollingElement;return t||document.documentElement}function Co(t,n,r,o,a){if(!(!t.getBoundingClientRect&&t!==window)){var l,i,u,s,c,d,f;if(t!==window&&t.parentNode&&t!==$i()?(l=t.getBoundingClientRect(),i=l.top,u=l.left,s=l.bottom,c=l.right,d=l.height,f=l.width):(i=0,u=0,s=window.innerHeight,c=window.innerWidth,d=window.innerHeight,f=window.innerWidth),(n||r)&&t!==window&&(a=a||t.parentNode,!Ls))do if(a&&a.getBoundingClientRect&&(pn(a,"transform")!=="none"||r&&pn(a,"position")!=="static")){var p=a.getBoundingClientRect();i-=p.top+parseInt(pn(a,"border-top-width")),u-=p.left+parseInt(pn(a,"border-left-width")),s=i+l.height,c=u+l.width;break}while(a=a.parentNode);if(o&&t!==window){var m=hf(a||t),v=m&&m.a,g=m&&m.d;m&&(i/=g,u/=v,f/=v,d/=g,s=i+d,c=u+f)}return{top:i,left:u,bottom:s,right:c,width:f,height:d}}}function fP(t){var n=Co(t),r=parseInt(pn(t,"padding-left")),o=parseInt(pn(t,"padding-top")),a=parseInt(pn(t,"padding-right")),l=parseInt(pn(t,"padding-bottom"));return n.top+=o+parseInt(pn(t,"border-top-width")),n.left+=r+parseInt(pn(t,"border-left-width")),n.width=t.clientWidth-r-a,n.height=t.clientHeight-o-l,n.bottom=n.top+n.height,n.right=n.left+n.width,n}function kN(t,n,r){for(var o=_u(t,!0),a=Co(t)[n];o;){var l=Co(o)[r],i=void 0;if(r==="top"||r==="left"?i=a>=l:i=a<=l,!i)return o;if(o===$i())break;o=_u(o,!1)}return!1}function Lf(t,n,r,o){for(var a=0,l=0,i=t.children;l<i.length;){if(i[l].style.display!=="none"&&i[l]!==Sn.ghost&&(o||i[l]!==Sn.dragged)&&wi(i[l],r.draggable,t,!1)){if(a===n)return i[l];a++}l++}return null}function Ix(t,n){for(var r=t.lastElementChild;r&&(r===Sn.ghost||pn(r,"display")==="none"||n&&!l2(r,n));)r=r.previousElementSibling;return r||null}function xl(t,n){var r=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Sn.clone&&(!n||l2(t,n))&&r++;return r}function SN(t){var n=0,r=0,o=$i();if(t)do{var a=hf(t),l=a.a,i=a.d;n+=t.scrollLeft*l,r+=t.scrollTop*i}while(t!==o&&(t=t.parentNode));return[n,r]}function EJe(t,n){for(var r in t)if(t.hasOwnProperty(r)){for(var o in n)if(n.hasOwnProperty(o)&&n[o]===t[r][o])return Number(r)}return-1}function _u(t,n){if(!t||!t.getBoundingClientRect)return $i();var r=t,o=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var a=pn(r);if(r.clientWidth<r.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return $i();if(o||n)return r;o=!0}}while(r=r.parentNode);return $i()}function kJe(t,n){if(t&&n)for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);return t}function x4(t,n){return Math.round(t.top)===Math.round(n.top)&&Math.round(t.left)===Math.round(n.left)&&Math.round(t.height)===Math.round(n.height)&&Math.round(t.width)===Math.round(n.width)}var zv;function pP(t,n){return function(){if(!zv){var r=arguments,o=this;r.length===1?t.call(o,r[0]):t.apply(o,r),zv=setTimeout(function(){zv=void 0},n)}}}function SJe(){clearTimeout(zv),zv=void 0}function vP(t,n,r){t.scrollLeft+=n,t.scrollTop+=r}function mP(t){var n=window.Polymer,r=window.jQuery||window.Zepto;return n&&n.dom?n.dom(t).cloneNode(!0):r?r(t).clone(!0)[0]:t.cloneNode(!0)}var ol="Sortable"+new Date().getTime();function BJe(){var t=[],n;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(pn(o,"display")==="none"||o===Sn.ghost)){t.push({target:o,rect:Co(o)});var a=Fi({},t[t.length-1].rect);if(o.thisAnimationDuration){var l=hf(o,!0);l&&(a.top-=l.f,a.left-=l.e)}o.fromRect=a}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(EJe(t,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(n),typeof r=="function"&&r();return}var a=!1,l=0;t.forEach(function(i){var u=0,s=i.target,c=s.fromRect,d=Co(s),f=s.prevFromRect,p=s.prevToRect,m=i.rect,v=hf(s,!0);v&&(d.top-=v.f,d.left-=v.e),s.toRect=d,s.thisAnimationDuration&&x4(f,d)&&!x4(c,d)&&(m.top-d.top)/(m.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(u=TJe(m,f,p,o.options)),x4(d,c)||(s.prevFromRect=c,s.prevToRect=d,u||(u=o.options.animation),o.animate(s,m,d,u)),u&&(a=!0,l=Math.max(l,u),clearTimeout(s.animationResetTimer),s.animationResetTimer=setTimeout(function(){s.animationTime=0,s.prevFromRect=null,s.fromRect=null,s.prevToRect=null,s.thisAnimationDuration=null},u),s.thisAnimationDuration=u)}),clearTimeout(n),a?n=setTimeout(function(){typeof r=="function"&&r()},l):typeof r=="function"&&r(),t=[]},animate:function(r,o,a,l){if(l){pn(r,"transition",""),pn(r,"transform","");var i=hf(this.el),u=i&&i.a,s=i&&i.d,c=(o.left-a.left)/(u||1),d=(o.top-a.top)/(s||1);r.animatingX=!!c,r.animatingY=!!d,pn(r,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=NJe(r),pn(r,"transition","transform "+l+"ms"+(this.options.easing?" "+this.options.easing:"")),pn(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){pn(r,"transition",""),pn(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},l)}}}}function NJe(t){return t.offsetWidth}function TJe(t,n,r,o){return Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))/Math.sqrt(Math.pow(n.top-r.top,2)+Math.pow(n.left-r.left,2))*o.animation}var Id=[],w4={initializeByDefault:!0},Q0={mount:function(t){for(var n in w4)w4.hasOwnProperty(n)&&!(n in t)&&(t[n]=w4[n]);Id.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Id.push(t)},pluginEvent:function(t,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var a=t+"Global";Id.forEach(function(l){n[l.pluginName]&&(n[l.pluginName][a]&&n[l.pluginName][a](Fi({sortable:n},r)),n.options[l.pluginName]&&n[l.pluginName][t]&&n[l.pluginName][t](Fi({sortable:n},r)))})},initializePlugins:function(t,n,r,o){Id.forEach(function(i){var u=i.pluginName;if(!(!t.options[u]&&!i.initializeByDefault)){var s=new i(t,n,t.options);s.sortable=t,s.options=t.options,t[u]=s,Ns(r,s.defaults)}});for(var a in t.options)if(t.options.hasOwnProperty(a)){var l=this.modifyOption(t,a,t.options[a]);typeof l<"u"&&(t.options[a]=l)}},getEventProperties:function(t,n){var r={};return Id.forEach(function(o){typeof o.eventProperties=="function"&&Ns(r,o.eventProperties.call(n[o.pluginName],t))}),r},modifyOption:function(t,n,r){var o;return Id.forEach(function(a){t[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(o=a.optionListeners[n].call(t[a.pluginName],r))}),o}};function DJe(t){var n=t.sortable,r=t.rootEl,o=t.name,a=t.targetEl,l=t.cloneEl,i=t.toEl,u=t.fromEl,s=t.oldIndex,c=t.newIndex,d=t.oldDraggableIndex,f=t.newDraggableIndex,p=t.originalEvent,m=t.putSortable,v=t.extraEventProperties;if(n=n||r&&r[ol],!!n){var g,y=n.options,C="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!Ls&&!J0?g=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(o,!0,!0)),g.to=i||r,g.from=u||r,g.item=a||r,g.clone=l,g.oldIndex=s,g.newIndex=c,g.oldDraggableIndex=d,g.newDraggableIndex=f,g.originalEvent=p,g.pullMode=m?m.lastPutMode:void 0;var w=Fi(Fi({},v),Q0.getEventProperties(o,n));for(var b in w)g[b]=w[b];r&&r.dispatchEvent(g),y[C]&&y[C].call(n,g)}}var VJe=["evt"],Ra=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,a=CJe(r,VJe);Q0.pluginEvent.bind(Sn)(t,n,Fi({dragEl:Ft,parentEl:co,ghostEl:Ln,rootEl:Zr,nextEl:uc,lastDownEl:mg,cloneEl:ro,cloneHidden:mu,dragStarted:nv,putSortable:Ko,activeSortable:Sn.active,originalEvent:o,oldIndex:rf,oldDraggableIndex:Lv,newIndex:tl,newDraggableIndex:fu,hideGhostForTarget:yP,unhideGhostForTarget:_P,cloneNowHidden:function(){mu=!0},cloneNowShown:function(){mu=!1},dispatchSortableEvent:function(l){xa({sortable:n,name:l,originalEvent:o})}},a))};function xa(t){DJe(Fi({putSortable:Ko,cloneEl:ro,targetEl:Ft,rootEl:Zr,oldIndex:rf,oldDraggableIndex:Lv,newIndex:tl,newDraggableIndex:fu},t))}var Ft,co,Ln,Zr,uc,mg,ro,mu,rf,tl,Lv,fu,Eh,Ko,Ud=!1,i2=!1,s2=[],oc,Yl,E4,k4,BN,NN,nv,Pd,Hv,Wv=!1,kh=!1,hg,oa,S4=[],AC=!1,u2=[],g1=typeof document<"u",Sh=sP,TN=J0||Ls?"cssFloat":"float",$Je=g1&&!uP&&!sP&&"draggable"in document.createElement("div"),hP=function(){if(g1){if(Ls)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),gP=function(t,n){var r=pn(t),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=Lf(t,0,n),l=Lf(t,1,n),i=a&&pn(a),u=l&&pn(l),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Co(a).width,c=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Co(l).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&i.float&&i.float!=="none"){var d=i.float==="left"?"left":"right";return l&&(u.clear==="both"||u.clear===d)?"vertical":"horizontal"}return a&&(i.display==="block"||i.display==="flex"||i.display==="table"||i.display==="grid"||s>=o&&r[TN]==="none"||l&&r[TN]==="none"&&s+c>o)?"vertical":"horizontal"},OJe=function(t,n,r){var o=r?t.left:t.top,a=r?t.right:t.bottom,l=r?t.width:t.height,i=r?n.left:n.top,u=r?n.right:n.bottom,s=r?n.width:n.height;return o===i||a===u||o+l/2===i+s/2},AJe=function(t,n){var r;return s2.some(function(o){var a=o[ol].options.emptyInsertThreshold;if(!(!a||Ix(o))){var l=Co(o),i=t>=l.left-a&&t<=l.right+a,u=n>=l.top-a&&n<=l.bottom+a;if(i&&u)return r=o}}),r},bP=function(t){function n(a,l){return function(i,u,s,c){var d=i.options.group.name&&u.options.group.name&&i.options.group.name===u.options.group.name;if(a==null&&(l||d))return!0;if(a==null||a===!1)return!1;if(l&&a==="clone")return a;if(typeof a=="function")return n(a(i,u,s,c),l)(i,u,s,c);var f=(l?i:u).options.group.name;return a===!0||typeof a=="string"&&a===f||a.join&&a.indexOf(f)>-1}}var r={},o=t.group;(!o||vg(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,t.group=r},yP=function(){!hP&&Ln&&pn(Ln,"display","none")},_P=function(){!hP&&Ln&&pn(Ln,"display","")};g1&&!uP&&document.addEventListener("click",function(t){if(i2)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),i2=!1,!1},!0);var ac=function(t){if(Ft){t=t.touches?t.touches[0]:t;var n=AJe(t.clientX,t.clientY);if(n){var r={};for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[ol]._onDragOver(r)}}},MJe=function(t){Ft&&Ft.parentNode[ol]._isOutsideThisEl(t.target)};function Sn(t,n){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=n=Ns({},n),t[ol]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return gP(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(l,i){l.setData("Text",i.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sn.supportPointer!==!1&&"PointerEvent"in window&&!Fv,emptyInsertThreshold:5};Q0.initializePlugins(this,t,r);for(var o in r)!(o in n)&&(n[o]=r[o]);bP(n);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=n.forceFallback?!1:$Je,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?xr(t,"pointerdown",this._onTapStart):(xr(t,"mousedown",this._onTapStart),xr(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(xr(t,"dragover",this),xr(t,"dragenter",this)),s2.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),Ns(this,BJe())}Sn.prototype={constructor:Sn,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Pd=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Ft):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,o=this.options,a=o.preventOnFilter,l=t.type,i=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,u=(i||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||u,c=o.filter;if(WJe(r),!Ft&&!(/mousedown|pointerdown/.test(l)&&t.button!==0||o.disabled)&&!s.isContentEditable&&!(!this.nativeDraggable&&Fv&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=wi(u,o.draggable,r,!1),!(u&&u.animated)&&mg!==u)){if(rf=xl(u),Lv=xl(u,o.draggable),typeof c=="function"){if(c.call(this,t,u,this)){xa({sortable:n,rootEl:s,name:"filter",targetEl:u,toEl:r,fromEl:r}),Ra("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=wi(s,d.trim(),r,!1),d)return xa({sortable:n,rootEl:d,name:"filter",targetEl:u,fromEl:r,toEl:r}),Ra("filter",n,{evt:t}),!0}),c)){a&&t.cancelable&&t.preventDefault();return}o.handle&&!wi(s,o.handle,r,!1)||this._prepareDragStart(t,i,u)}}},_prepareDragStart:function(t,n,r){var o=this,a=o.el,l=o.options,i=a.ownerDocument,u;if(r&&!Ft&&r.parentNode===a){var s=Co(r);if(Zr=a,Ft=r,co=Ft.parentNode,uc=Ft.nextSibling,mg=r,Eh=l.group,Sn.dragged=Ft,oc={target:Ft,clientX:(n||t).clientX,clientY:(n||t).clientY},BN=oc.clientX-s.left,NN=oc.clientY-s.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Ft.style["will-change"]="all",u=function(){if(Ra("delayEnded",o,{evt:t}),Sn.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!wN&&o.nativeDraggable&&(Ft.draggable=!0),o._triggerDragStart(t,n),xa({sortable:o,name:"choose",originalEvent:t}),el(Ft,l.chosenClass,!0)},l.ignore.split(",").forEach(function(c){dP(Ft,c.trim(),B4)}),xr(i,"dragover",ac),xr(i,"mousemove",ac),xr(i,"touchmove",ac),xr(i,"mouseup",o._onDrop),xr(i,"touchend",o._onDrop),xr(i,"touchcancel",o._onDrop),wN&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ft.draggable=!0),Ra("delayStart",this,{evt:t}),l.delay&&(!l.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(J0||Ls))){if(Sn.eventCanceled){this._onDrop();return}xr(i,"mouseup",o._disableDelayedDrag),xr(i,"touchend",o._disableDelayedDrag),xr(i,"touchcancel",o._disableDelayedDrag),xr(i,"mousemove",o._delayedDragTouchMoveHandler),xr(i,"touchmove",o._delayedDragTouchMoveHandler),l.supportPointer&&xr(i,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(u,l.delay)}else u()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ft&&B4(Ft),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;br(t,"mouseup",this._disableDelayedDrag),br(t,"touchend",this._disableDelayedDrag),br(t,"touchcancel",this._disableDelayedDrag),br(t,"mousemove",this._delayedDragTouchMoveHandler),br(t,"touchmove",this._delayedDragTouchMoveHandler),br(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?xr(document,"pointermove",this._onTouchMove):n?xr(document,"touchmove",this._onTouchMove):xr(document,"mousemove",this._onTouchMove):(xr(Ft,"dragend",this),xr(Zr,"dragstart",this._onDragStart));try{document.selection?gg(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Ud=!1,Zr&&Ft){Ra("dragStarted",this,{evt:n}),this.nativeDraggable&&xr(document,"dragover",MJe);var r=this.options;!t&&el(Ft,r.dragClass,!1),el(Ft,r.ghostClass,!0),Sn.active=this,t&&this._appendGhost(),xa({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Yl){this._lastX=Yl.clientX,this._lastY=Yl.clientY,yP();for(var t=document.elementFromPoint(Yl.clientX,Yl.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Yl.clientX,Yl.clientY),t!==n);)n=t;if(Ft.parentNode[ol]._isOutsideThisEl(t),n)do{if(n[ol]){var r=void 0;if(r=n[ol]._onDragOver({clientX:Yl.clientX,clientY:Yl.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);_P()}},_onTouchMove:function(t){if(oc){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,a=t.touches?t.touches[0]:t,l=Ln&&hf(Ln,!0),i=Ln&&l&&l.a,u=Ln&&l&&l.d,s=Sh&&oa&&SN(oa),c=(a.clientX-oc.clientX+o.x)/(i||1)+(s?s[0]-S4[0]:0)/(i||1),d=(a.clientY-oc.clientY+o.y)/(u||1)+(s?s[1]-S4[1]:0)/(u||1);if(!Sn.active&&!Ud){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(Ln){l?(l.e+=c-(E4||0),l.f+=d-(k4||0)):l={a:1,b:0,c:0,d:1,e:c,f:d};var f="matrix(".concat(l.a,",").concat(l.b,",").concat(l.c,",").concat(l.d,",").concat(l.e,",").concat(l.f,")");pn(Ln,"webkitTransform",f),pn(Ln,"mozTransform",f),pn(Ln,"msTransform",f),pn(Ln,"transform",f),E4=c,k4=d,Yl=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Ln){var t=this.options.fallbackOnBody?document.body:Zr,n=Co(Ft,!0,Sh,!0,t),r=this.options;if(Sh){for(oa=t;pn(oa,"position")==="static"&&pn(oa,"transform")==="none"&&oa!==document;)oa=oa.parentNode;oa!==document.body&&oa!==document.documentElement?(oa===document&&(oa=$i()),n.top+=oa.scrollTop,n.left+=oa.scrollLeft):oa=$i(),S4=SN(oa)}Ln=Ft.cloneNode(!0),el(Ln,r.ghostClass,!1),el(Ln,r.fallbackClass,!0),el(Ln,r.dragClass,!0),pn(Ln,"transition",""),pn(Ln,"transform",""),pn(Ln,"box-sizing","border-box"),pn(Ln,"margin",0),pn(Ln,"top",n.top),pn(Ln,"left",n.left),pn(Ln,"width",n.width),pn(Ln,"height",n.height),pn(Ln,"opacity","0.8"),pn(Ln,"position",Sh?"absolute":"fixed"),pn(Ln,"zIndex","100000"),pn(Ln,"pointerEvents","none"),Sn.ghost=Ln,t.appendChild(Ln),pn(Ln,"transform-origin",BN/parseInt(Ln.style.width)*100+"% "+NN/parseInt(Ln.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,o=t.dataTransfer,a=r.options;if(Ra("dragStart",this,{evt:t}),Sn.eventCanceled){this._onDrop();return}Ra("setupClone",this),Sn.eventCanceled||(ro=mP(Ft),ro.removeAttribute("id"),ro.draggable=!1,ro.style["will-change"]="",this._hideClone(),el(ro,this.options.chosenClass,!1),Sn.clone=ro),r.cloneId=gg(function(){Ra("clone",r),!Sn.eventCanceled&&(r.options.removeCloneOnHide||Zr.insertBefore(ro,Ft),r._hideClone(),xa({sortable:r,name:"clone"}))}),!n&&el(Ft,a.dragClass,!0),n?(i2=!0,r._loopId=setInterval(r._emulateDragOver,50)):(br(document,"mouseup",r._onDrop),br(document,"touchend",r._onDrop),br(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",a.setData&&a.setData.call(r,o,Ft)),xr(document,"drop",r),pn(Ft,"transform","translateZ(0)")),Ud=!0,r._dragStartId=gg(r._dragStarted.bind(r,n,t)),xr(document,"selectstart",r),nv=!0,Fv&&pn(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,o,a,l,i=this.options,u=i.group,s=Sn.active,c=Eh===u,d=i.sort,f=Ko||s,p,m=this,v=!1;if(AC)return;function g(R,W){Ra(R,m,Fi({evt:t,isOwner:c,axis:p?"vertical":"horizontal",revert:l,dragRect:o,targetRect:a,canSort:d,fromSortable:f,target:r,completed:C,onMove:function(I,U){return Bh(Zr,n,Ft,o,I,Co(I),t,U)},changed:w},W))}function y(){g("dragOverAnimationCapture"),m.captureAnimationState(),m!==f&&f.captureAnimationState()}function C(R){return g("dragOverCompleted",{insertion:R}),R&&(c?s._hideClone():s._showClone(m),m!==f&&(el(Ft,Ko?Ko.options.ghostClass:s.options.ghostClass,!1),el(Ft,i.ghostClass,!0)),Ko!==m&&m!==Sn.active?Ko=m:m===Sn.active&&Ko&&(Ko=null),f===m&&(m._ignoreWhileAnimating=r),m.animateAll(function(){g("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(r===Ft&&!Ft.animated||r===n&&!r.animated)&&(Pd=null),!i.dragoverBubble&&!t.rootEl&&r!==document&&(Ft.parentNode[ol]._isOutsideThisEl(t.target),!R&&ac(t)),!i.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function w(){tl=xl(Ft),fu=xl(Ft,i.draggable),xa({sortable:m,name:"change",toEl:n,newIndex:tl,newDraggableIndex:fu,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=wi(r,i.draggable,n,!0),g("dragOver"),Sn.eventCanceled)return v;if(Ft.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||m._ignoreWhileAnimating===r)return C(!1);if(i2=!1,s&&!i.disabled&&(c?d||(l=co!==Zr):Ko===this||(this.lastPutMode=Eh.checkPull(this,s,Ft,t))&&u.checkPut(this,s,Ft,t))){if(p=this._getDirection(t,r)==="vertical",o=Co(Ft),g("dragOverValid"),Sn.eventCanceled)return v;if(l)return co=Zr,y(),this._hideClone(),g("revert"),Sn.eventCanceled||(uc?Zr.insertBefore(Ft,uc):Zr.appendChild(Ft)),C(!0);var b=Ix(n,i.draggable);if(!b||FJe(t,p,this)&&!b.animated){if(b===Ft)return C(!1);if(b&&n===t.target&&(r=b),r&&(a=Co(r)),Bh(Zr,n,Ft,o,r,a,t,!!r)!==!1)return y(),b&&b.nextSibling?n.insertBefore(Ft,b.nextSibling):n.appendChild(Ft),co=n,w(),C(!0)}else if(b&&PJe(t,p,this)){var x=Lf(n,0,i,!0);if(x===Ft)return C(!1);if(r=x,a=Co(r),Bh(Zr,n,Ft,o,r,a,t,!1)!==!1)return y(),n.insertBefore(Ft,x),co=n,w(),C(!0)}else if(r.parentNode===n){a=Co(r);var E=0,k,S=Ft.parentNode!==n,B=!OJe(Ft.animated&&Ft.toRect||o,r.animated&&r.toRect||a,p),$=p?"top":"left",D=kN(r,"top","top")||kN(Ft,"top","top"),N=D?D.scrollTop:void 0;Pd!==r&&(k=a[$],Wv=!1,kh=!B&&i.invertSwap||S),E=zJe(t,r,a,p,B?1:i.swapThreshold,i.invertedSwapThreshold==null?i.swapThreshold:i.invertedSwapThreshold,kh,Pd===r);var A;if(E!==0){var F=xl(Ft);do F-=E,A=co.children[F];while(A&&(pn(A,"display")==="none"||A===Ln))}if(E===0||A===r)return C(!1);Pd=r,Hv=E;var z=r.nextElementSibling,P=!1;P=E===1;var L=Bh(Zr,n,Ft,o,r,a,t,P);if(L!==!1)return(L===1||L===-1)&&(P=L===1),AC=!0,setTimeout(IJe,30),y(),P&&!z?n.appendChild(Ft):r.parentNode.insertBefore(Ft,P?z:r),D&&vP(D,0,N-D.scrollTop),co=Ft.parentNode,k!==void 0&&!kh&&(hg=Math.abs(k-Co(r)[$])),w(),C(!0)}if(n.contains(Ft))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){br(document,"mousemove",this._onTouchMove),br(document,"touchmove",this._onTouchMove),br(document,"pointermove",this._onTouchMove),br(document,"dragover",ac),br(document,"mousemove",ac),br(document,"touchmove",ac)},_offUpEvents:function(){var t=this.el.ownerDocument;br(t,"mouseup",this._onDrop),br(t,"touchend",this._onDrop),br(t,"pointerup",this._onDrop),br(t,"touchcancel",this._onDrop),br(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(tl=xl(Ft),fu=xl(Ft,r.draggable),Ra("drop",this,{evt:t}),co=Ft&&Ft.parentNode,tl=xl(Ft),fu=xl(Ft,r.draggable),Sn.eventCanceled){this._nulling();return}Ud=!1,kh=!1,Wv=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),MC(this.cloneId),MC(this._dragStartId),this.nativeDraggable&&(br(document,"drop",this),br(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Fv&&pn(document.body,"user-select",""),pn(Ft,"transform",""),t&&(nv&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),Ln&&Ln.parentNode&&Ln.parentNode.removeChild(Ln),(Zr===co||Ko&&Ko.lastPutMode!=="clone")&&ro&&ro.parentNode&&ro.parentNode.removeChild(ro),Ft&&(this.nativeDraggable&&br(Ft,"dragend",this),B4(Ft),Ft.style["will-change"]="",nv&&!Ud&&el(Ft,Ko?Ko.options.ghostClass:this.options.ghostClass,!1),el(Ft,this.options.chosenClass,!1),xa({sortable:this,name:"unchoose",toEl:co,newIndex:null,newDraggableIndex:null,originalEvent:t}),Zr!==co?(tl>=0&&(xa({rootEl:co,name:"add",toEl:co,fromEl:Zr,originalEvent:t}),xa({sortable:this,name:"remove",toEl:co,originalEvent:t}),xa({rootEl:co,name:"sort",toEl:co,fromEl:Zr,originalEvent:t}),xa({sortable:this,name:"sort",toEl:co,originalEvent:t})),Ko&&Ko.save()):tl!==rf&&tl>=0&&(xa({sortable:this,name:"update",toEl:co,originalEvent:t}),xa({sortable:this,name:"sort",toEl:co,originalEvent:t})),Sn.active&&((tl==null||tl===-1)&&(tl=rf,fu=Lv),xa({sortable:this,name:"end",toEl:co,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Ra("nulling",this),Zr=Ft=co=Ln=uc=ro=mg=mu=oc=Yl=nv=tl=fu=rf=Lv=Pd=Hv=Ko=Eh=Sn.dragged=Sn.ghost=Sn.clone=Sn.active=null,u2.forEach(function(t){t.checked=!0}),u2.length=E4=k4=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ft&&(this._onDragOver(t),RJe(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,o=0,a=r.length,l=this.options;o<a;o++)n=r[o],wi(n,l.draggable,this.el,!1)&&t.push(n.getAttribute(l.dataIdAttr)||HJe(n));return t},sort:function(t,n){var r={},o=this.el;this.toArray().forEach(function(a,l){var i=o.children[l];wi(i,this.options.draggable,o,!1)&&(r[a]=i)},this),n&&this.captureAnimationState(),t.forEach(function(a){r[a]&&(o.removeChild(r[a]),o.appendChild(r[a]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return wi(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var o=Q0.modifyOption(this,t,n);typeof o<"u"?r[t]=o:r[t]=n,t==="group"&&bP(r)},destroy:function(){Ra("destroy",this);var t=this.el;t[ol]=null,br(t,"mousedown",this._onTapStart),br(t,"touchstart",this._onTapStart),br(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(br(t,"dragover",this),br(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),s2.splice(s2.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!mu){if(Ra("hideClone",this),Sn.eventCanceled)return;pn(ro,"display","none"),this.options.removeCloneOnHide&&ro.parentNode&&ro.parentNode.removeChild(ro),mu=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(mu){if(Ra("showClone",this),Sn.eventCanceled)return;Ft.parentNode==Zr&&!this.options.group.revertClone?Zr.insertBefore(ro,Ft):uc?Zr.insertBefore(ro,uc):Zr.appendChild(ro),this.options.group.revertClone&&this.animate(Ft,ro),pn(ro,"display",""),mu=!1}}};function RJe(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Bh(t,n,r,o,a,l,i,u){var s,c=t[ol],d=c.options.onMove,f;return window.CustomEvent&&!Ls&&!J0?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=n,s.from=t,s.dragged=r,s.draggedRect=o,s.related=a||n,s.relatedRect=l||Co(n),s.willInsertAfter=u,s.originalEvent=i,t.dispatchEvent(s),d&&(f=d.call(c,s,i)),f}function B4(t){t.draggable=!1}function IJe(){AC=!1}function PJe(t,n,r){var o=Co(Lf(r.el,0,r.options,!0)),a=fP(r.el),l=10;return n?t.clientX<a.left-l||t.clientY<o.top&&t.clientX<o.right:t.clientY<a.top-l||t.clientY<o.bottom&&t.clientX<o.left}function FJe(t,n,r){var o=Co(Ix(r.el,r.options.draggable)),a=fP(r.el),l=10;return n?t.clientX>a.right+l||t.clientY>o.bottom&&t.clientX>o.left:t.clientY>a.bottom+l||t.clientX>o.right&&t.clientY>o.top}function zJe(t,n,r,o,a,l,i,u){var s=o?t.clientY:t.clientX,c=o?r.height:r.width,d=o?r.top:r.left,f=o?r.bottom:r.right,p=!1;if(!i){if(u&&hg<c*a){if(!Wv&&(Hv===1?s>d+c*l/2:s<f-c*l/2)&&(Wv=!0),Wv)p=!0;else if(Hv===1?s<d+hg:s>f-hg)return-Hv}else if(s>d+c*(1-a)/2&&s<f-c*(1-a)/2)return LJe(n)}return p=p||i,p&&(s<d+c*l/2||s>f-c*l/2)?s>d+c/2?1:-1:0}function LJe(t){return xl(Ft)<xl(t)?1:-1}function HJe(t){for(var n=t.tagName+t.className+t.src+t.href+t.textContent,r=n.length,o=0;r--;)o+=n.charCodeAt(r);return o.toString(36)}function WJe(t){u2.length=0;for(var n=t.getElementsByTagName("input"),r=n.length;r--;){var o=n[r];o.checked&&u2.push(o)}}function gg(t){return setTimeout(t,0)}function MC(t){return clearTimeout(t)}g1&&xr(document,"touchmove",function(t){(Sn.active||Ud)&&t.cancelable&&t.preventDefault()});Sn.utils={on:xr,off:br,css:pn,find:dP,is:function(t,n){return!!wi(t,n,t,!1)},extend:kJe,throttle:pP,closest:wi,toggleClass:el,clone:mP,index:xl,nextTick:gg,cancelNextTick:MC,detectDirection:gP,getChild:Lf};Sn.get=function(t){return t[ol]};Sn.mount=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n[0].constructor===Array&&(n=n[0]),n.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(Sn.utils=Fi(Fi({},Sn.utils),o.utils)),Q0.mount(o)})};Sn.create=function(t,n){return new Sn(t,n)};Sn.version=xJe;var _o=[],rv,RC,IC=!1,N4,T4,c2,ov;function jJe(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?xr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?xr(document,"pointermove",this._handleFallbackAutoScroll):r.touches?xr(document,"touchmove",this._handleFallbackAutoScroll):xr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?br(document,"dragover",this._handleAutoScroll):(br(document,"pointermove",this._handleFallbackAutoScroll),br(document,"touchmove",this._handleFallbackAutoScroll),br(document,"mousemove",this._handleFallbackAutoScroll)),DN(),bg(),SJe()},nulling:function(){c2=RC=rv=IC=ov=N4=T4=null,_o.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var o=this,a=(n.touches?n.touches[0]:n).clientX,l=(n.touches?n.touches[0]:n).clientY,i=document.elementFromPoint(a,l);if(c2=n,r||this.options.forceAutoScrollFallback||J0||Ls||Fv){D4(n,this.options,i,r);var u=_u(i,!0);IC&&(!ov||a!==N4||l!==T4)&&(ov&&DN(),ov=setInterval(function(){var s=_u(document.elementFromPoint(a,l),!0);s!==u&&(u=s,bg()),D4(n,o.options,s,r)},10),N4=a,T4=l)}else{if(!this.options.bubbleScroll||_u(i,!0)===$i()){bg();return}D4(n,this.options,_u(i,!1),!1)}}},Ns(t,{pluginName:"scroll",initializeByDefault:!0})}function bg(){_o.forEach(function(t){clearInterval(t.pid)}),_o=[]}function DN(){clearInterval(ov)}var D4=pP(function(t,n,r,o){if(n.scroll){var a=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,i=n.scrollSensitivity,u=n.scrollSpeed,s=$i(),c=!1,d;RC!==r&&(RC=r,bg(),rv=n.scroll,d=n.scrollFn,rv===!0&&(rv=_u(r,!0)));var f=0,p=rv;do{var m=p,v=Co(m),g=v.top,y=v.bottom,C=v.left,w=v.right,b=v.width,x=v.height,E=void 0,k=void 0,S=m.scrollWidth,B=m.scrollHeight,$=pn(m),D=m.scrollLeft,N=m.scrollTop;m===s?(E=b<S&&($.overflowX==="auto"||$.overflowX==="scroll"||$.overflowX==="visible"),k=x<B&&($.overflowY==="auto"||$.overflowY==="scroll"||$.overflowY==="visible")):(E=b<S&&($.overflowX==="auto"||$.overflowX==="scroll"),k=x<B&&($.overflowY==="auto"||$.overflowY==="scroll"));var A=E&&(Math.abs(w-a)<=i&&D+b<S)-(Math.abs(C-a)<=i&&!!D),F=k&&(Math.abs(y-l)<=i&&N+x<B)-(Math.abs(g-l)<=i&&!!N);if(!_o[f])for(var z=0;z<=f;z++)_o[z]||(_o[z]={});(_o[f].vx!=A||_o[f].vy!=F||_o[f].el!==m)&&(_o[f].el=m,_o[f].vx=A,_o[f].vy=F,clearInterval(_o[f].pid),(A!=0||F!=0)&&(c=!0,_o[f].pid=setInterval((function(){o&&this.layer===0&&Sn.active._onTouchMove(c2);var P=_o[this.layer].vy?_o[this.layer].vy*u:0,L=_o[this.layer].vx?_o[this.layer].vx*u:0;typeof d=="function"&&d.call(Sn.dragged.parentNode[ol],L,P,t,c2,_o[this.layer].el)!=="continue"||vP(_o[this.layer].el,L,P)}).bind({layer:f}),24))),f++}while(n.bubbleScroll&&p!==s&&(p=_u(p,!1)));IC=c}},30),CP=function(t){var n=t.originalEvent,r=t.putSortable,o=t.dragEl,a=t.activeSortable,l=t.dispatchSortableEvent,i=t.hideGhostForTarget,u=t.unhideGhostForTarget;if(n){var s=r||a;i();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(c.clientX,c.clientY);u(),s&&!s.el.contains(d)&&(l("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function Px(){}Px.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=Lf(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:CP};Ns(Px,{pluginName:"revertOnSpill"});function Fx(){}Fx.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,o=r||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:CP};Ns(Fx,{pluginName:"removeOnSpill"});Sn.mount(new jJe);Sn.mount(Fx,Px);function qJe(t){return t==null?t:JSON.parse(JSON.stringify(t))}function UJe(t){e.getCurrentInstance()&&e.onUnmounted(t)}function KJe(t){e.getCurrentInstance()?e.onMounted(t):e.nextTick(t)}const VN=Symbol("cloneElement");function GJe(...t){var n,r;const o=(n=e.getCurrentInstance())==null?void 0:n.proxy,a=t[0];let[,l,i]=t;Array.isArray(e.unref(l))||(i=l,l=null);let u=null;const{immediate:s=!0,clone:c=qJe,customUpdate:d}=(r=e.unref(i))!=null?r:{};function f(k){var S;k.item[VN]=c(e.unref((S=e.unref(l))==null?void 0:S[k.oldIndex]))}function p(k){const S=k.item[VN];fJe(S)||(C4(k.item),dJe(e.unref(l),k.newDraggableIndex,S))}function m(k){const{from:S,item:B,oldIndex:$,oldDraggableIndex:D,pullMode:N,clone:A}=k;if(N==="clone"){CN(S,B,$),C4(A);return}cJe(e.unref(l),D)}function v(k){if(d){d(k);return}const{from:S,item:B,oldIndex:$,newIndex:D}=k;if(C4(B),CN(S,B,$),e.isRef(l)){const N=[...e.unref(l)];l.value=_N(N,$,D);return}_N(e.unref(l),$,D)}const g={onUpdate:v,onStart:f,onAdd:p,onRemove:m};function y(k){const S=e.unref(a);return k||(k=pJe(S)?vJe(S,o==null?void 0:o.$el):S),k&&!gJe(k)&&(k=k.$el),k||iJe("Root element not found"),k}function C(){var k;const S=(k=e.unref(i))!=null?k:{},B=lP(S,["immediate","clone"]);return hJe(l===null?{}:g,B)}const w=k=>{k=y(k),u&&b.destroy(),u=new Sn(k,C())};e.watch(()=>i,()=>{u&&bJe(C(),(k,S)=>{u==null||u.option(k,S)})},{deep:!0});const b={option:(k,S)=>u==null?void 0:u.option(k,S),destroy:()=>{u==null||u.destroy(),u=null},save:()=>u==null?void 0:u.save(),toArray:()=>u==null?void 0:u.toArray(),closest:(...k)=>u==null?void 0:u.closest(...k)},x=()=>b==null?void 0:b.option("disabled",!0),E=()=>b==null?void 0:b.option("disabled",!1);return KJe(()=>{s&&w()}),UJe(b.destroy),nf({start:w,pause:x,resume:E},b)}const PC=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],YJe=["animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...PC.map(t=>`on${t.replace(/^\S/,n=>n.toUpperCase())}`)],ud=e.defineComponent({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:YJe,emits:["update:modelValue",...PC],setup(t,{slots:n,emit:r,expose:o,attrs:a}){const l=PC.reduce((d,f)=>{const p=`on${f.replace(/^\S/,m=>m.toUpperCase())}`;return d[p]=m=>r(f,m),d},{}),i=e.computed(()=>{const d=e.toRefs(t),f=lP(d,["modelValue"]),p=Object.entries(f).reduce((m,[v,g])=>{const y=e.unref(g);return y!==void 0&&(m[v]=y),m},{});return nf(nf({},l),uJe(nf(nf({},a),p)))}),u=e.computed({get:()=>t.modelValue,set:d=>r("update:modelValue",d)}),s=e.ref(),c=e.reactive(GJe(t.target||s,u,i));return o(c),()=>{if(n.default)return e.h(t.tag||"div",{ref:s},n.default(c))}}}),XJe=t=>(e.pushScopeId("data-v-84197db7"),t=t(),e.popScopeId(),t),ZJe=XJe(()=>e.createElementVNode("div",{class:"h-4"},null,-1)),JJe=e.defineComponent({name:"formDrag"}),QJe=e.defineComponent({...JJe,props:{baseData:{},formData:{},formConfig:{}},emits:["update:formConfig"],setup(t,{expose:n,emit:r}){const o=t,a=r,l=e.ref(),i=e.ref(null),u=e.computed({get(){return o.formConfig},set(c){a("update:formConfig",c)}});function s(c){return{...Ke.omit(c.baseData,["el","isSlot","isAuth","isApply","isShow"]),...c.elData.rules}}return n({componentRef:i}),(c,d)=>{const f=e.resolveComponent("hs-form-item"),p=e.resolveComponent("hs-form");return e.openBlock(),e.createBlock(p,e.mergeProps(c.baseData,{model:c.formData}),{default:e.withCtx(()=>[e.createVNode(e.unref(ud),{class:"bc-form bc-form-drag",ref_key:"dragRef",ref:l,handle:".el-form-item__label",ghostClass:"ghost",modelValue:u.value,"onUpdate:modelValue":d[1]||(d[1]=m=>u.value=m),animation:150},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,m=>(e.openBlock(),e.createBlock(f,e.mergeProps({key:m.id},s(m.data)),{default:e.withCtx(()=>[m.data.baseData.isSlot?e.renderSlot(c.$slots,`query_${m.data.baseData.prop}`,{key:0},void 0,!0):m.data.baseData.el==="bc-group-date"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.data.baseData.el),e.mergeProps({key:1,ref_for:!0,ref_key:"componentRef",ref:i,"el-component":m.data.baseData.el2,"field-component":m.data.baseData.groupField,modelValue:c.formData,"onUpdate:modelValue":d[0]||(d[0]=v=>c.formData=v)},e.unref(Ke).omit(m.data.elData,"rules")),null,16,["el-component","field-component","modelValue"])):m.data.baseData.prop&&m.data.baseData.el?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.data.baseData.el),e.mergeProps({key:2,ref_for:!0,ref_key:"componentRef",ref:i,modelValue:c.formData[m.data.baseData.prop],"onUpdate:modelValue":v=>c.formData[m.data.baseData.prop]=v},e.unref(Ke).omit(m.data.elData,"rules")),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),_:2},1040))),128))]),_:3},8,["modelValue"]),ZJe]),_:3},16,["model"])}}}),eQe=zr(QJe,[["__scopeId","data-v-84197db7"]]),tQe=t=>(e.pushScopeId("data-v-c2dbac46"),t=t(),e.popScopeId(),t),nQe={class:"sort-form-wraper"},rQe={class:"sort-form-wraper__content"},oQe={class:"content__wrap"},aQe=tQe(()=>e.createElementVNode("div",{class:"head"},[e.createElementVNode("span",{class:"drag"},"拖动"),e.createElementVNode("span",{class:"name"},"列名称"),e.createElementVNode("span",null,"显示状态"),e.createElementVNode("span",null,"排序值")],-1)),lQe={class:"sort-target drag li"},iQe={class:"li name"},sQe={class:"li"},uQe={class:"li"},cQe={class:"footer"},dQe={class:"footer-confirm"},fQe=e.defineComponent({name:"sortColumn"}),pQe=e.defineComponent({...fQe,props:{uniqueId:{},id:{}},emits:["success"],setup(t,{emit:n}){const r=t,o=n,a=e.ref([]);l(r.uniqueId);function l(s){return $o.get(s).then(c=>{const{tableConfig:d}=c.tables.find(f=>f.id===r.id);a.value=d.filter(f=>!f.data.type)})}function i(){$o.get(`${r.uniqueId}_origin`).then(s=>{const c=s.tables.find(d=>d.id===r.id);a.value=c.tableConfig.filter(d=>!d.data.type),$o.set(r.uniqueId,s)})}function u(){$o.get(r.uniqueId).then(s=>{const c=s.tables.find(f=>f.id===r.id),d=c.tableConfig.filter(f=>f.data.type);c.tableConfig=JSON.parse(JSON.stringify([...d,...a.value])),$o.set(r.uniqueId,s).then(()=>{o("success",c)})})}return(s,c)=>{const d=e.resolveComponent("el-icon"),f=e.resolveComponent("hs-input"),p=e.resolveComponent("hs-switch"),m=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",nQe,[e.createElementVNode("div",rQe,[e.createElementVNode("div",oQe,[aQe,e.createVNode(e.unref(ud),{modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=v=>a.value=v),ghostClass:"ghost",handle:".sort-target",animation:"150",class:"drag-component",style:{height:"calc(100% - 34px)"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(v,g)=>(e.openBlock(),e.createElementBlock("div",{key:v.id,class:"sort-target__wraper"},[e.createElementVNode("span",lQe,[e.createVNode(d,{class:"rotate-90",size:"14"},{default:e.withCtx(()=>[e.createVNode(e.unref(Zv))]),_:1})]),e.createElementVNode("span",iQe,[e.createVNode(f,{modelValue:v.data.title,"onUpdate:modelValue":y=>v.data.title=y},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",sQe,[e.createVNode(p,{modelValue:v.data.isShow,"onUpdate:modelValue":y=>v.data.isShow=y},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",uQe,e.toDisplayString(g+1),1)]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",cQe,[e.createVNode(m,{type:"primary",size:"small",onClick:i},{default:e.withCtx(()=>[e.createTextVNode("重置设置")]),_:1}),e.createElementVNode("div",dQe,[e.createVNode(m,{size:"small",onClick:c[1]||(c[1]=v=>s.$emit("success"))},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(m,{type:"primary",size:"small",onClick:u},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])])])}}}),vQe=zr(pQe,[["__scopeId","data-v-c2dbac46"]]);function mQe(t,n){return new Promise(r=>{v1(vQe,{uniqueId:t,id:n},{id:n,title:"表格配置",success:o=>{r(o)}})})}const Dr=e.reactive({rowIndex:0,columnIndex:0});function hQe(t,n,r,o){const a=e.computed(()=>n.value[r.value]),l=["checkbox","expand","radio","seq"],i=[{label:"右键1",value:"111"},{label:"右键2",value:"222"},{label:"右键3",value:"333"},{label:"右键4",value:"444"},{label:"右键5",value:"555"}];function u(){var p,m,v;const c=(p=e.toValue(a))==null?void 0:p.getData(Dr.rowIndex),{visibleColumn:d}=e.toValue(a).getTableColumn(),f=d[Dr.columnIndex].field;(m=e.toValue(a))==null||m.setCurrentRow(c),(v=e.toValue(a))==null||v.setEditRow(c,f).then(()=>{const{rowIndex:g,columnIndex:y}=e.toValue(a).getEditRecord();Dr.rowIndex=g??0,Dr.columnIndex=y??0})}async function s(c){const d=o.data.tables.find(f=>f.id===r.value);d.baseData.table_page_data.currentPage=c.currentPage,d.baseData.table_page_data.pageSize=c.pageSize,d.tableData=await h1(d.baseData,o.data.form.formData)}return kc("ArrowRight",c=>{var p;if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const{visibleColumn:f}=e.toValue(a).getTableColumn();if(Dr.columnIndex++,Dr.columnIndex>f.length-1&&(Dr.columnIndex=0),l.includes((p=f[Dr.columnIndex])==null?void 0:p.type)){const m=f.filter(v=>v.type).length;Dr.columnIndex=Dr.columnIndex+m}u()}),kc("ArrowLeft",c=>{var p;if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const{visibleColumn:f}=e.toValue(a).getTableColumn();if(Dr.columnIndex--,l.includes((p=f[Dr.columnIndex])==null?void 0:p.type)){const m=f.filter(v=>v.type).length;Dr.columnIndex=Dr.columnIndex-m}Dr.columnIndex<0&&(Dr.columnIndex=f.length-1),u()}),kc("ArrowUp",c=>{if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const f=e.toValue(a).getData();Dr.rowIndex--,Dr.rowIndex<0&&(Dr.rowIndex=f.length-1),u()}),kc("ArrowDown",c=>{if(c.preventDefault(),!document.activeElement.closest(".bc-table__content"))return;const f=e.toValue(a).getData();Dr.rowIndex++,Dr.rowIndex>f.length-1&&(Dr.rowIndex=0),u()}),{menuTable:i,onPageChange:s}}function gQe(t,n,r){function o(u){Dr.rowIndex=u.rowIndex,Dr.columnIndex=u.columnIndex,r("cell-click",u)}function a(u){u.columnIndex===0?mQe(t.uniqueId,t.id).then(s=>{const c=s.tableConfig.map(d=>Fc(d.data)).filter(d=>d.isShow);e.nextTick(async()=>{var d,f;await((d=e.toValue(n))==null?void 0:d.reloadColumn(c)),await((f=e.toValue(n))==null?void 0:f.refreshColumn())})}):r("header-cell-click",u)}function l(u,s){u.fnName&&typeof u.fnName=="function"&&u.fnName(s)}function i(u){r("page-change",u)}return{handleCellClick:o,headerCellClick:a,headerBtnClick:l,pageChange:i}}function bQe(){const t=e.ref(),n=e.ref(),r=e.ref(),{height:o}=wu(t),{height:a}=wu(n,{height:0,width:0}),l=e.computed(()=>({height:`${o.value-a.value}px`}));return{wrapRef:t,pagerRef:n,tableRef:r,style:l}}const yQe=e.defineComponent({name:"formTable"}),_Qe=e.defineComponent({...yQe,props:{uniqueId:{},id:{},baseData:{},tableData:{},tableConfig:{}},emits:["ready","cell-click","header-cell-click","page-change"],setup(t,{emit:n}){const r=t,o=n,{wrapRef:a,pagerRef:l,tableRef:i,style:u}=bQe(),{handleCellClick:s,headerCellClick:c,headerBtnClick:d,pageChange:f}=gQe(r,i,o);return e.onMounted(()=>{o("ready",i.value)}),(p,m)=>{const v=e.resolveComponent("bc-btn"),g=e.resolveComponent("vxe-column"),y=e.resolveComponent("vxe-table"),C=e.resolveComponent("vxe-pager");return e.openBlock(),e.createElementBlock("div",{ref_key:"wrapRef",ref:a,class:"bc-table__wrapper bg-white"},[e.createElementVNode("div",{class:"bc-table__content",style:e.normalizeStyle(e.unref(u))},[e.createVNode(y,e.mergeProps({ref_key:"tableRef",ref:i},p.baseData,{onCellClick:e.unref(s),onHeaderCellClick:e.unref(c),data:p.tableData}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.tableConfig,w=>(e.openBlock(),e.createBlock(g,e.mergeProps({key:w.id},w.data),e.createSlots({_:2},[e.renderList(p.$slots,(b,x)=>({name:x,fn:e.withCtx(E=>[e.renderSlot(p.$slots,x,e.normalizeProps(e.guardReactiveProps(E||{})),void 0,!0)])})),w.data.isSlot?{name:"default",fn:e.withCtx(b=>[w.data.el?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(tP)(w.data.el)),{key:0,modelValue:b.row[b.column.field],"onUpdate:modelValue":x=>b.row[b.column.field]=x},null,8,["modelValue","onUpdate:modelValue"])):e.renderSlot(p.$slots,w.data.field,e.normalizeProps(e.mergeProps({key:1},b||{})),void 0,!0)]),key:"0"}:w.btnData&&w.btnData.length?{name:"default",fn:e.withCtx(b=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.btnData,x=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:x.id},[x.data.isShow?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[x.data.isSlot?e.renderSlot(p.$slots,`table_btn_${w.data.key}`,e.normalizeProps(e.mergeProps({key:0},b||{})),void 0,!0):(e.openBlock(),e.createBlock(v,{key:1,data:x.data,onClick:E=>e.unref(d)(x.data,b)},null,8,["data","onClick"]))],64)):e.createCommentVNode("",!0)],64))),128))]),key:"1"}:void 0]),1040))),128))]),_:3},16,["onCellClick","onHeaderCellClick","data"])],4),e.createElementVNode("div",{ref_key:"pagerRef",ref:l},[p.baseData.is_apply_page?(e.openBlock(),e.createBlock(C,e.mergeProps({key:0},p.baseData.table_page_data,{onPageChange:e.unref(f)}),e.createSlots({_:2},[e.renderList(p.$slots,(w,b)=>({name:b,fn:e.withCtx(x=>[e.renderSlot(p.$slots,"pager_"+b,e.normalizeProps(e.guardReactiveProps(x||{})),void 0,!0)])}))]),1040,["onPageChange"])):e.createCommentVNode("",!0)],512)],512)}}}),CQe=zr(_Qe,[["__scopeId","data-v-1aa3815c"]]),xQe={key:0,class:"item-wrap"},wQe=["onClick"],EQe=e.defineComponent({name:"formTabs"}),kQe=e.defineComponent({...EQe,props:e.mergeModels({tabs:{}},{active:{type:String},activeModifiers:{}}),emits:["update:active"],setup(t){const n=e.useModel(t,"active"),r=e.ref(),o=e.ref(),{height:a}=wu(r),{height:l}=wu(o),i=e.computed(()=>`${a.value-l.value}px`);return(u,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapRef",ref:r,class:"tabs-wrapper"},[e.createElementVNode("div",{ref_key:"headRef",ref:o,class:e.normalizeClass(["tabs-head",[u.tabs.length>1?"min-h-16":"min-h-2"]])},[e.renderSlot(u.$slots,"left",{},void 0,!0),u.tabs.length>1?(e.openBlock(),e.createElementBlock("div",xQe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.tabs,c=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["item",[n.value===c.id?"active":""]]),key:c.id,onClick:d=>n.value=c.id},e.toDisplayString(c.baseData.tableName),11,wQe))),128))])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:"tabs-content",style:e.normalizeStyle({height:i.value})},[e.renderSlot(u.$slots,"default",{},void 0,!0)],4)],512))}}),SQe=zr(kQe,[["__scopeId","data-v-fa1d5d61"]]);function BQe(t,n){const r=e.ref(0),o=e.ref(0),a=e.ref(!1),l=e.ref(n.menu);function i(s){var c;n.target&&!((c=s.target)!=null&&c.closest(n.target))||(s.preventDefault(),s.stopPropagation(),typeof n.getMenu=="function"?l.value=n.getMenu():l.value=n.menu,a.value=!0,r.value=s.clientX,o.value=s.clientY)}function u(){a.value=!1}return e.onMounted(()=>{var s;(s=t.value)==null||s.addEventListener("contextmenu",i),window.addEventListener("click",u,!0),window.addEventListener("contextmenu",u,!0)}),e.onUnmounted(()=>{var s;(s=t.value)==null||s.removeEventListener("contextmenu",i),window.removeEventListener("click",u,!0),window.removeEventListener("contextmenu",u,!0)}),{x:r,y:o,isshow:a,menuList:l}}const NQe=["onClick"],TQe=e.defineComponent({name:"contextBody"}),DQe=e.defineComponent({...TQe,props:{menu:{},target:{},getMenu:{type:Function}},emits:["select"],setup(t,{emit:n}){const r=t,o=n,a=e.ref(),{x:l,y:i,isshow:u,menuList:s}=BQe(a,r);function c(m){u.value=!1,typeof m.click=="function"?m.click():o("select",m)}function d(m){const v=m;v.style.height="0"}function f(m){const v=m;v.style.height="auto";const g=v.clientHeight;v.style.height="0",requestAnimationFrame(()=>{v.style.height=g+"px",v.style.transition="all .5s"})}function p(m){const v=m;v.style.transition="none"}return(m,v)=>(e.openBlock(),e.createElementBlock("div",{class:"context-wrap",ref_key:"contextRef",ref:a},[e.renderSlot(m.$slots,"default",{},void 0,!0),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{onBeforeEnter:d,onEnter:f,onAfterEnter:p},{default:e.withCtx(()=>[e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"context-wrap__content",style:e.normalizeStyle({left:`${e.unref(l)}px`,top:`${e.unref(i)}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(g,y)=>(e.openBlock(),e.createElementBlock("div",{class:"content-item",key:y,onClick:e.withModifiers(C=>c(g),["stop"])},e.toDisplayString(e.toValue(g.label)),9,NQe))),128))],4)):e.createCommentVNode("",!0)]),_:1})]))],512))}}),$N=zr(DQe,[["__scopeId","data-v-aba5fec1"]]);function VQe(){const t=e.ref(!1),n=e.ref(),r=e.ref(),o=e.ref(),a=e.ref({}),{height:l}=wu(n),{height:i}=wu(r,{height:0,width:0}),{height:u}=wu(o,{height:0,width:0}),s=e.computed(()=>({height:l.value>0?`${l.value-i.value-u.value}px`:"0px"}));function c(f,p){a.value[p]=f}function d(){t.value=!0,e.nextTick(()=>{t.value=!1})}return{wrapRef:n,btnRef:r,formRef:o,tableApi:a,style:s,isOverHide:t,onReady:c,onHeightChange:d}}function $Qe(t,n,r,o){e.computed(()=>n.value[r.value]);const a={add:i,reset:u,search:s,export:c},l=e.computed(()=>{var d;return((d=o.data)==null?void 0:d.btns.map(f=>(o.isConfig||(f.data.fnName=a[f.data.key]||""),f)))||[]});function i(){}function u(){var d,f,p,m;Ke.isEmpty((f=(d=o.data)==null?void 0:d.form)==null?void 0:f.formData)||(p=t.value.getComponents())==null||p.forEach(v=>{var g;typeof((g=e.toValue(v))==null?void 0:g.clearData)=="function"&&e.toValue(v).clearData()}),(m=t.value.getInstance())==null||m.resetFields(),s()}async function s(){const d=o.data.tables.find(f=>f.id===r.value);d.baseData.table_page_data.currentPage=1,d.tableData=await h1(d.baseData,o.data.form.formData)}function c(){}return{btns:l}}const OQe=t=>(e.pushScopeId("data-v-1f976328"),t=t(),e.popScopeId(),t),AQe={class:"sort-form-wraper"},MQe={class:"sort-form-wraper__content"},RQe={class:"content__wrap"},IQe=OQe(()=>e.createElementVNode("div",{class:"head"},[e.createElementVNode("span",{class:"drag"},"拖动"),e.createElementVNode("span",{class:"name"},"列名称"),e.createElementVNode("span",null,"显示状态"),e.createElementVNode("span",null,"排序值")],-1)),PQe={class:"sort-target drag li"},FQe={class:"li name"},zQe={class:"li"},LQe={class:"li"},HQe={class:"footer"},WQe=e.defineComponent({name:"sortColumn"}),jQe=e.defineComponent({...WQe,props:{id:{}},emits:["success"],setup(t,{emit:n}){const r=t,o=n,a=e.ref([]);l(r.id);function l(u){return $o.get(u).then(s=>{var c;a.value=((c=s.form)==null?void 0:c.formConfig)||[]})}function i(){$o.get(r.id).then(u=>{u.form.formConfig=JSON.parse(JSON.stringify([...a.value])),$o.set(r.id,u).then(()=>{o("success",u)})})}return(u,s)=>{const c=e.resolveComponent("el-icon"),d=e.resolveComponent("hs-input"),f=e.resolveComponent("hs-switch"),p=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",AQe,[e.createElementVNode("div",MQe,[e.createElementVNode("div",RQe,[IQe,e.createVNode(e.unref(ud),{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=m=>a.value=m),ghostClass:"ghost",handle:".sort-target",animation:"150",class:"drag-component",style:{height:"calc(100% - 34px)"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(m,v)=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"sort-target__wraper"},[e.createElementVNode("span",PQe,[e.createVNode(c,{class:"rotate-90",size:"14"},{default:e.withCtx(()=>[e.createVNode(e.unref(Zv))]),_:1})]),e.createElementVNode("span",FQe,[e.createVNode(d,{modelValue:m.data.baseData.prop,"onUpdate:modelValue":g=>m.data.baseData.prop=g},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",zQe,[e.createVNode(f,{modelValue:m.data.baseData.isShow,"onUpdate:modelValue":g=>m.data.baseData.isShow=g},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",LQe,e.toDisplayString(v+1),1)]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",HQe,[e.createVNode(p,{size:"small",onClick:s[1]||(s[1]=m=>u.$emit("success"))},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(p,{type:"primary",size:"small",onClick:i},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])])}}}),qQe=zr(jQe,[["__scopeId","data-v-1f976328"]]);function UQe(t){return new Promise(n=>{v1(qQe,{id:t},{title:"高级设置",success(r){n(r)}})})}function KQe(t,n,r,o){const a=e.computed(()=>n.value[r.value]),l=e.ref(!1),i=async()=>{l.value&&await $o.get(o.data.config_unique_id).then(async d=>{d.form.formConfig=JSON.parse(JSON.stringify(o.data.form.formConfig)),await $o.set(o.data.config_unique_id,d)}),l.value=!l.value},u=()=>{UQe(o.data.config_unique_id).then(async d=>{const{formConfig:f}=await OC(d);o.data.form.formConfig=f})},s=async()=>{const d=await $o.get(`${o.data.config_unique_id}_origin`),f=await $o.get(`${o.data.config_unique_id}`);f.form=d.form,$o.set(d.config_unique_id,f).then(async()=>{const{formConfig:p}=await OC(d);o.data.form.formConfig=p})},c=[{label:"高级设置",value:"222",click:u},{label:e.computed(()=>l.value?"完成排序":"排序设置"),value:"111",click:i},{label:"重置设置",value:"333",click:s}];return Rx(t,()=>{setTimeout(()=>{var d;(d=Ke.get(e.toValue(t),"componentRef.0"))==null||d.focus()},1e3)}),kc("ArrowLeft",d=>{var g,y;d.preventDefault();const f=document.activeElement;if(!f.closest(".bc-form__wrapper"))return;const p=(g=e.toValue(t))==null?void 0:g.getComponents();let m=p.findIndex(C=>(C!=null&&C.activeElement&&(C=C.activeElement()),C==f)),v=m<0?-1:m;v--,v<0&&(v=p.length-1),(y=Ke.get(p,v))==null||y.focus()}),kc("ArrowRight",d=>{var y,C;d.preventDefault();const f=document.activeElement;if(!f.closest(".bc-form__wrapper"))return;const p=(y=e.toValue(t))==null?void 0:y.getComponents(),m=p.length-1;let v=p.findIndex(w=>(w!=null&&w.activeElement&&(w=w.activeElement()),w==f)),g=v<0?-1:v;g++,g>m&&(g=0),(C=Ke.get(p,g))==null||C.focus()}),kc("ArrowDown",d=>{var g,y,C;if(d.preventDefault(),!document.activeElement.closest(".bc-form__wrapper"))return;Dr.rowIndex=0;const p=(g=e.toValue(a))==null?void 0:g.getData(Dr.rowIndex),{visibleColumn:m}=e.toValue(a).getTableColumn();Dr.columnIndex=m.filter(w=>w.type).length;const v=m[Dr.columnIndex].field;(y=e.toValue(a))==null||y.setCurrentRow(p),(C=e.toValue(a))==null||C.setEditRow(p,v)}),{isShowDrag:l,menuForm:c}}const GQe=e.defineComponent({name:"bcFormTable"}),YQe=e.defineComponent({...GQe,props:{hideBtn:{type:Boolean,default:!1},hideSearch:{type:Boolean,default:!1},data:{type:Object},isConfig:{type:Boolean,default:!1}},emits:["ready","btnClick"],setup(t,{emit:n}){const r=t,o=n,a=e.ref(""),l=e.computed({get(){return a.value===""?Ke.get(r,"data.tables.0.id",""):a.value},set(x){a.value=x}}),{wrapRef:i,btnRef:u,formRef:s,tableApi:c,style:d,isOverHide:f,onReady:p,onHeightChange:m}=VQe(),{menuForm:v,isShowDrag:g}=KQe(s,c,l,r),{menuTable:y,onPageChange:C}=hQe(s,c,l,r),{btns:w}=$Qe(s,c,l,r);function b(x){o("btnClick",x)}return Rx(()=>{var x;return(x=r.data)==null?void 0:x.config_name},()=>{e.nextTick(()=>{o("ready",{tableApi:c,activeTabs:l,api:e.computed(()=>c.value[l.value])})})}),(x,E)=>{var k,S,B;return e.openBlock(),e.createElementBlock("div",{ref_key:"wrapRef",ref:i,class:e.normalizeClass(["bc-form-table__wrapper",[e.unref(f)?"overflow-auto":"overflow-hide"]])},[!t.hideBtn&&e.unref(w).length?(e.openBlock(),e.createBlock(e.unref(ZZe),{key:0,ref_key:"btnRef",ref:u,isConfig:t.isConfig,btns:e.unref(w),onBtnClick:b},e.createSlots({_:2},[e.renderList(x.$slots,($,D)=>({name:D,fn:e.withCtx(N=>[e.renderSlot(x.$slots,D,e.normalizeProps(e.guardReactiveProps(N||{})),void 0,!0)])}))]),1032,["isConfig","btns"])):e.createCommentVNode("",!0),!t.hideSearch&&!e.unref(Ke).isEmpty((k=t.data)==null?void 0:k.form)?(e.openBlock(),e.createBlock(e.unref($N),{key:1,menu:e.unref(v)},{default:e.withCtx(()=>[e.unref(g)?(e.openBlock(),e.createBlock(e.unref(eQe),e.mergeProps({key:1,ref_key:"formRef",ref:s,formConfig:t.data.form.formConfig,"onUpdate:formConfig":E[0]||(E[0]=$=>t.data.form.formConfig=$)},e.unref(Ke).omit(t.data.form,"formConfig")),e.createSlots({_:2},[e.renderList(x.$slots,($,D)=>({name:D,fn:e.withCtx(N=>[e.renderSlot(x.$slots,D,e.normalizeProps(e.guardReactiveProps(N||{})),void 0,!0)])}))]),1040,["formConfig"])):(e.openBlock(),e.createBlock(e.unref(oJe),e.mergeProps({key:0,ref_key:"formRef",ref:s},t.data.form,{onHeightChange:e.unref(m)}),e.createSlots({_:2},[e.renderList(x.$slots,($,D)=>({name:D,fn:e.withCtx(N=>[e.renderSlot(x.$slots,D,e.normalizeProps(e.guardReactiveProps(N||{})),void 0,!0)])}))]),1040,["onHeightChange"]))]),_:3},8,["menu"])):e.createCommentVNode("",!0),e.unref(Ke).isEmpty((S=t.data)==null?void 0:S.tables)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref($N),{key:2,target:".vxe-table--body-wrapper",menu:e.unref(y)},{default:e.withCtx(()=>[e.createVNode(e.unref(SQe),{style:e.normalizeStyle(e.unref(d)),active:l.value,"onUpdate:active":E[1]||(E[1]=$=>l.value=$),tabs:t.data.tables},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data.tables,$=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(CQe),e.mergeProps($,{key:$.id,"unique-id":t.data.config_unique_id,class:"h-full",onReady:D=>e.unref(p)(D,$.id),onPageChange:e.unref(C)}),e.createSlots({_:2},[e.renderList(x.$slots,(D,N)=>({name:N,fn:e.withCtx(A=>[e.renderSlot(x.$slots,N,e.normalizeProps(e.guardReactiveProps(A||{})),void 0,!0)])}))]),1040,["unique-id","onReady","onPageChange"])),[[e.vShow,l.value===$.id]])),128))]),_:3},8,["style","active","tabs"])]),_:3},8,["menu"])),e.unref(Ke).isEmpty((B=t.data)==null?void 0:B.tables)?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(e.unref(d))},[e.renderSlot(x.$slots,"customeContent",e.normalizeProps(e.guardReactiveProps(t.data||{})),void 0,!0)],4)):e.createCommentVNode("",!0)],2)}}}),XQe=zr(YQe,[["__scopeId","data-v-5910186f"]]),ZQe=e.defineComponent({name:"BcSelect"}),JQe=e.defineComponent({...ZQe,props:{url:{},proxy:{},params:{},method:{},options:{},groupAttrs:{},optionAttrs:{}},setup(t,{expose:n}){const r=t,o=e.ref(),a=e.ref((r==null?void 0:r.options)||[]),l=e.computed({get(){return a.value||(r==null?void 0:r.options)||[]},set(d){a.value=d}});i();function i(){if(!r.url)return;const d=r.params?new Function("return "+r.params)():{};return Gn({url:"/"+r.proxy+r.url,method:r.method||"get",params:d}).then(f=>{f&&(l.value=f.data||[])})}function u(){o.value.getInstance().focus()}function s(){o.value.getInstance().blur()}function c(){return o.value.getInstance().inputRef}return n({focus:u,blur:s,activeElement:c}),(d,f)=>{const p=e.resolveComponent("hs-option"),m=e.resolveComponent("hs-option-group"),v=e.resolveComponent("hs-select");return e.openBlock(),e.createBlock(v,e.mergeProps({ref_key:"selectRef",ref:o},d.$attrs),{default:e.withCtx(()=>[d.groupAttrs.isGroupEnabled?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,g=>(e.openBlock(),e.createBlock(m,{key:g.label,label:g.label},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.options,y=>(e.openBlock(),e.createBlock(p,{key:y.value,value:y[d.optionAttrs.value],label:y[d.optionAttrs.label]},null,8,["value","label"]))),128))]),_:2},1032,["label"]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(l.value,g=>(e.openBlock(),e.createBlock(p,{disabled:d.optionAttrs.disabled,key:g.value,value:g[d.optionAttrs.value],label:g[d.optionAttrs.label]},null,8,["disabled","value","label"]))),128))]),_:1},16)}}}),QQe=t=>(e.pushScopeId("data-v-db063ea8"),t=t(),e.popScopeId(),t),eet={class:"text-[#606266] truncate"},tet={key:0},net=QQe(()=>e.createElementVNode("div",null,null,-1)),ret=e.defineComponent({__name:"bcFormConfig",props:{parentConfig:{type:Object,default:()=>({labelWidth:150,xs:24,sm:24,md:12,lg:12,xl:8,style:"",minWidth:350,showColon:!1})},data:{type:Object,default:()=>{}},config:{type:Array,default:()=>[]},rules:{type:Object,default:()=>{}},watchConfig:{type:Boolean,default:!0}},emits:["change"],setup(t,{expose:n,emit:r}){const o=t;let a=e.ref(o.data),l=e.ref(o.config);e.watch(()=>o.data,d=>{a.value=d},{deep:!0}),e.watch(()=>o.config,d=>{o.watchConfig&&(l.value=d)},{deep:!0});const i=e.ref(),u=()=>new Promise(d=>{if(!i.value){d(!1);return}i.value.validate(f=>{d(!!f)})});let s=r;const c=(d,f)=>{let p=f.prop;s("change",d,p,f)};return n({props:o,getSubmitData:u}),(d,f)=>{const p=e.resolveComponent("ele-Warning"),m=e.resolveComponent("el-icon"),v=e.resolveComponent("el-tooltip"),g=e.resolveComponent("hs-form-item"),y=e.resolveComponent("hs-col"),C=e.resolveComponent("hs-row"),w=e.resolveComponent("hs-form");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(w,e.mergeProps({ref_key:"formRef",ref:i,"label-width":t.parentConfig.labelWidth,inline:t.parentConfig.inline||!1,"label-position":"right","label-suffix":":","hide-required-asterisk":!1,"require-asterisk-position":"right","show-message":"","inline-message":"","status-icon":"",disabled:!1},d.$attrs,{"scroll-to-error":"",rules:t.rules,model:e.unref(a),style:`min-width: ${t.parentConfig.minWidth}px`}),{default:e.withCtx(()=>[e.createVNode(C,{gutter:0,justify:"start",align:"middle",class:"hs-row"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(b,x)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[b.show!==!1?(e.openBlock(),e.createBlock(y,{key:x,span:b.span||t.parentConfig.span,xs:b.xs||t.parentConfig.xs,sm:b.sm||t.parentConfig.sm,md:b.md||t.parentConfig.md,lg:b.lg||t.parentConfig.lg,xl:b.xl||t.parentConfig.xl,style:e.normalizeStyle(t.parentConfig.style)},{default:e.withCtx(()=>[b.slot?e.renderSlot(d.$slots,b.slot,e.normalizeProps(e.mergeProps({key:0},b)),void 0,!0):(e.openBlock(),e.createBlock(g,{key:1,label:b.label,prop:b.prop,required:b.required},{label:e.withCtx(()=>[e.createElementVNode("span",eet,[e.createTextVNode("  "+e.toDisplayString(b.label)+"  ",1),t.parentConfig.showColon?(e.openBlock(),e.createElementBlock("span",tet,":   ")):e.createCommentVNode("",!0)]),e.createVNode(v,{class:"box-item",effect:"dark",content:b.tooltip||b.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(m,null,{default:e.withCtx(()=>[e.createVNode(p)]),_:1})])]),_:2},1032,["content"])]),default:e.withCtx(()=>[b.slotValue?e.renderSlot(d.$slots,b.slotValue,e.normalizeProps(e.mergeProps({key:0},b)),void 0,!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.el),e.mergeProps({key:1,modelValue:e.unref(a)[b.prop],"onUpdate:modelValue":E=>e.unref(a)[b.prop]=E,multiple:b.multiple,size:b.size,type:b.type},b.attr,{disabled:b.disabled,border:"",clearable:b.clearable!=!1,onChange:E=>c(E,b)}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.op||[],(E,k)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.cel),{key:k,label:E.label,value:E.value},null,8,["label","value"]))),128))]),_:2},1040,["modelValue","onUpdate:modelValue","multiple","size","type","disabled","clearable","onChange"]))]),_:2},1032,["label","prop","required"]))]),_:2},1032,["span","xs","sm","md","lg","xl","style"])):e.createCommentVNode("",!0)],64))),256)),net]),_:3})]),_:3},16,["label-width","inline","rules","model","style"])])}}}),oet=zr(ret,[["__scopeId","data-v-db063ea8"]]),aet=e.defineComponent({name:"bcTreeSelect"}),iet=e.defineComponent({...aet,props:{url:{},proxy:{},params:{},method:{},data:{}},setup(t,{expose:n}){const r=t,o=e.ref(),a=e.ref((r==null?void 0:r.data)||[]),l=e.computed({get(){return a.value||(r==null?void 0:r.data)||[]},set(d){a.value=d}});i();function i(){if(!r.url)return;const d=r.params?new Function("return "+r.params)():{};return Gn({url:"/"+r.proxy+r.url,method:r.method||"get",params:d}).then(f=>{f&&(l.value=f.data||[])})}function u(){o.value.focus()}function s(){o.value.blur()}function c(){return o.value.activeElement()}return n({focus:u,blur:s,activeElement:c}),(d,f)=>{const p=e.resolveComponent("hs-tree-select");return e.openBlock(),e.createBlock(p,e.mergeProps({ref_key:"treeRef",ref:o,class:"bc-tree-select"},d.$attrs,{data:l.value}),null,16,["data"])}}}),set=[{prop:"attrs",label:"inputAttrs",tooltip:"inputAttrs",type:"object",el:"title",children:[{prop:"type",label:"input类型",tooltip:"input类型",type:"string 等原生 input 类型",el:"hs-select",op:[{label:"text",value:"text"},{label:"textarea",value:"textarea"},{label:"number",value:"number"},{label:"password",value:"password"}],cel:"hs-option",required:!0,clearable:!1,rules:[{required:!0,message:"请选择type",trigger:"blur"}]},{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number",el:"hs-input"},{prop:"placeholder",label:"占位文本",tooltip:"输入框占位文本",type:"string",el:"hs-input"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸,只在 type 不为 'textarea' 时有效",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"clearable",label:"清除按钮",tooltip:"是否显示清除按钮,只有当 type 不是 textarea时生效",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"readonly",label:"是否只读",tooltip:"原生 readonly 属性,是否只读",type:"boolean",el:"hs-switch"},{prop:"maxlength",label:"maxlength",tooltip:"同原生 maxlength 属性",type:"string / number",el:"hs-input"},{prop:"minlength",label:"minlength",tooltip:"原生属性,最小输入长度",type:"string / number",el:"hs-input"},{prop:"show-word-limit",label:"统计字数",tooltip:"是否显示统计字数, 只在 type 为 'text' 或 'textarea' 的时候生效",type:"boolean",el:"hs-switch"},{prop:"formatter",label:"输入值格式",tooltip:'指定输入值的格式。(只有当 type 是"text"时才能工作)',type:"Function",el:"hs-input"},{prop:"parser",label:"格式化器",tooltip:'指定从格式化器输入中提取的值。(仅当 type 是"text"时才起作用)',type:"Function",el:"hs-input"},{prop:"show-password",label:"密码图标",tooltip:"是否显示切换密码图标",type:"boolean",el:"hs-switch"},{prop:"prefix-icon",label:"前缀图标",tooltip:"自定义前缀图标",type:"string / Component",el:"hs-input"},{prop:"suffix-icon",label:"后缀图标",tooltip:"自定义后缀图标",type:"string / Component",el:"hs-input"},{prop:"rows",label:"输入框行数",tooltip:"输入框行数,仅 type 为 'textarea' 时有效",type:"number",el:"hs-input-number"},{prop:"autosize",label:"textarea 高度",tooltip:"textarea 高度是否自适应,仅 type 为 'textarea' 时生效。 可以接受一个对象,比如: { minRows: 2, maxRows: 6 }",type:"boolean / object",el:"hs-switch"},{prop:"autocomplete",label:"autocomplete",tooltip:"原生 autocomplete 属性",type:"string",el:"hs-input"},{prop:"name",label:"input name",tooltip:"等价于原生 input name 属性",type:"string",el:"hs-input"},{prop:"max",label:"max",tooltip:"原生 max 属性,设置最大值",type:"—",el:"hs-input"},{prop:"min",label:"min",tooltip:"原生属性,设置最小值",type:"—",el:"hs-input"},{prop:"step",label:"step",tooltip:"原生属性,设置输入字段的合法数字间隔",type:"—",el:"hs-input"},{prop:"resize",label:"resize",tooltip:"控制是否能被用户缩放",type:"enum",el:"hs-select",op:[{label:"none",value:"none"},{label:"both",value:"both"},{label:"horizontal",value:"horizontal"},{label:"vertical",value:"vertical"}],cel:"hs-option"},{prop:"autofocus",label:"autofocus",tooltip:"原生属性,自动获取焦点",type:"boolean",el:"hs-switch"},{prop:"form",label:"form",tooltip:"原生属性",type:"string",el:"hs-input"},{prop:"label a11y",label:"label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"},{prop:"tabindex",label:"tabindex",tooltip:"输入框的 tabindex",type:"string / number",el:"hs-input"},{prop:"validate-event",label:"表单的校验",tooltip:"输入时是否触发表单的校验",type:"boolean",el:"hs-switch"},{prop:"input-style",label:"input-style",tooltip:"input 元素或 textarea 元素的 style",type:"string / object",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],ON=[{prop:"blur",label:"聚焦时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"focus",label:"失焦时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"change",label:"改变时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"clear",label:"清空时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"},{prop:"input",label:"改变时触发",tooltip:"在 Input 失去焦点时触发",el:"hs-input"}],b1={attrs:{size:"default",type:"text",clearable:!1,"show-password":!1,disabled:!1,autosize:!1,autocomplete:"off",autofocus:!1,"validate-event":!0,placeholder:"请输入"},rules:{required:!1,rules:""}};let uet={size:"default",rules:"",inline:!0,labelPosition:"left",labelWidth:"80",labelSuffix:"",hideRequiredAsterisk:!1,requireAsteriskPosition:"left",showMessage:!0,inlineMessage:!1,statusIcon:!1,validateOnRuleChange:!0,disabled:!1,scrollToError:!1,gutter:10,justify:"start",align:"",isSetDictDefaultValue:!0,isSupportShortcutKey:!0,submitUrl:"",submitSuccessMsg:""},cet=[{prop:"rules",label:"表单验证规则",type:"textarea",el:"hs-input"},{prop:"inline",label:"行内表单模式",el:"hs-switch"},{prop:"labelPosition",label:"表单域标签的位置",el:"hs-select",tooltip:"表单域标签的位置, 当设置为 left 或 right 时,则也需要设置 label-width 属性",required:!1,multiple:!1,op:[{label:" 靠左",value:"left"},{label:"靠右",value:"right"},{label:"靠上",value:"top"}],cel:"hs-option"},{prop:"labelWidth",label:"标签的宽度",tooltip:'标签的长度,例如 "50px"。 作为 Form 直接子元素的 form-item 会继承该值。 可以使用 auto。',el:"hs-input"},{prop:"labelSuffix",label:"表单域标签的后缀",tooltip:"表单域标签的后缀",el:"hs-input"},{prop:"hideRequiredAsterisk",label:"是否隐藏必填标识",tooltip:"是否隐藏必填字段标签旁边的红色星号。",el:"hs-switch"},{prop:"requireAsteriskPosition",label:"必填标识的位置",tooltip:"星号的位置。",el:"hs-select",op:[{label:" 靠左",value:"left"},{label:"靠右",value:"right"}],cel:"hs-option"},{prop:"showMessage",label:"是否显示校验错误信息",tooltip:"是否显示校验错误信息",el:"hs-switch"},{prop:"inlineMessage",label:"是否以行内形式展示校验信息",tooltip:"是否以行内形式展示校验信息",el:"hs-switch"},{prop:"statusIcon",label:"是否框中显示校验反馈图标",tooltip:"是否在输入框中显示校验结果反馈图标",el:"hs-switch"},{prop:"validateOnRuleChange",label:"是否触发第一次验证",tooltip:"是否在 rules 属性改变后立即触发一次验证",el:"hs-switch"},{prop:"size",label:"表单项组件的尺寸",el:"hs-select",tooltip:"用于控制该表单内组件的尺寸",op:[{label:" 大尺寸",value:"large"},{label:"默认尺寸",value:"default"},{label:"小尺寸",value:"small"}],cel:"hs-option"},{prop:"disabled",label:"是否禁用表单项",tooltip:"是否禁用该表单内的所有组件。 如果设置为 true, 它将覆盖内部组件的 disabled 属性",el:"hs-switch"},{prop:"scrollToError",label:"滚动至首个校验失败的表单",tooltip:"当校验失败时,滚动到第一个错误表单项",el:"hs-switch"},{label:"是否取字典项的默认值",prop:"isSetDictDefaultValue",el:"hs-switch",tooltip:"当校验有失败结果时,滚动到第一个失败的表单项目 可通过 scrollIntoView 配置"},{label:"是否支持表单回车快捷功能",prop:"isSupportShortcutKey",el:"hs-switch"},{label:"栅格间隔",prop:"gutter",type:"number",el:"hs-input-number"},{label:"盒子布局下的水平排列方式",prop:"justify",el:"hs-select",tooltip:"flex 布局下的水平排列方式",op:[{label:"从起始方向排列",value:"start"},{label:"从末尾方向排列",value:"end"},{label:"居中",value:"center"},{label:"两端对齐均匀分布",value:"space-between"},{label:"两端是中间间隔的一半均匀分布",value:"space-around"},{label:"间隔相等均匀分布",value:"space-evenly"}],cel:"hs-option"},{label:"盒子布局下的垂直排列方式",prop:"align",el:"hs-select",tooltip:"flex 布局下的垂直排列方式",op:[{label:"自上而下",value:"top"},{label:"居中",value:"middle"},{label:"自下而上",value:"bottom"}],cel:"hs-option"},{label:"自定义元素标签",prop:"tag",el:"hs-input"},{label:"提交表单的请求Url",prop:"submitUrl",el:"hs-input"},{label:"提交请求方式",prop:"submitUrlMethod",el:"hs-select",cel:"hs-option",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}]},{label:"表单提交成功的提示信息",prop:"submitSuccessMsg",el:"hs-input"}];const xP=e.ref([{label:"输入框",value:"hs-input"},{label:"选择器",value:"hs-select"},{label:"开关",value:"hs-switch"},{label:"日期选择器",value:"hs-date-picker"},{label:"按钮",value:"hs-button"},{label:"自动补全",value:"hs-autocomplete"},{label:"上传",value:"hs-upload"},{label:"多选框",value:"hs-checkbox"},{label:"单选框",value:"hs-radio"},{label:"数字输入框",value:"hs-input-number"},{label:"级联面板",value:"hs-cascader-panel"},{label:"树形选择",value:"hs-tree-select"},{label:"级联选择器",value:"hs-cascader"}]),V4={"hs-input":"hs-config-input","hs-select":"hs-config-select","hs-switch":"hs-config-switch","hs-date-picker":"hs-config-date-picker","hs-button":"hs-config-button","hs-autocomplete":"hs-config-autocomplete","hs-upload":"hs-config-upload","hs-checkbox":"hs-config-checkbox","hs-radio":"hs-config-radio","hs-input-number":"hs-config-input-number","hs-cascader-panel":"hs-config-cascader-panel","hs-tree-select":"hs-config-tree-select"},det={label:[{required:!0,message:"请输入参数名称"}],prop:[{required:!0,message:"请输入查询参数"}],el:[{required:!0,message:"请选择组件类型"}]};let wP=e.ref({id:"",sort:0,data:{baseData:{label:"参数名称",prop:"",el:"hs-input",isSlot:!1,isApply:!0,isShow:!0},elData:b1}}),fet={baseConfig:{title:{subTitle:"表单项属性"},visible:!0,list:[{prop:"label",label:"参数名称",el:"hs-input"},{prop:"prop",label:"查询参数",slotValue:"prop",el:"hs-input"},{prop:"el",label:"组件类型",clearable:!1,tooltip:"下拉选择组件类型,组件类型取自配置文件",el:"hs-select",cel:"hs-option",op:xP.value},{prop:"label-width",label:"标签宽度",el:"hs-input"},{prop:"isSlot",label:"是否自定义插槽",el:"hs-switch"},{prop:"isApply",label:"是否启用",tooltip:"是否启用该表单项",el:"hs-switch"},{prop:"isShow",label:"是否显示该表单项",el:"hs-switch"},{prop:"groupMark",label:"分组标识",el:"hs-input",tooltip:"如果【分组标识】有值则代表该字段为组里的一项,只有分组标识相同的才能为一组"},{prop:"positionInGroup",label:"组字段位置",tooltip:"字段在分组中是开始位置 还是 结束为止",el:"hs-select",cel:"hs-option",show:!0,op:[{label:"开始",value:"begin"},{label:"结束",value:"end"}]}],rules:det},elConfig:{title:{subTitle:"元素项属性"},visible:!0,list:[]}},d2=e.ref({id:"",data:{baseData:{},elData:{}}}),yl=e.ref({code:{visible:!1,subTitle:"表单配置代码",class:"font-bold my-3",iconSize:20},form:{visible:!0,subTitle:"表单配置",class:"font-bold my-3",iconSize:20},formItem:{visible:!0,subTitle:"表单元素配置项集合",class:"font-bold my-3",iconSize:20},formExample:{visible:!1,subTitle:"表单配置示例",class:"font-bold my-3",iconSize:20}});const AN={currentPage:{baseData:{isApply:!0,isShow:!1},elData:{attrs:{defaultValue:1}}},pageSize:{baseData:{isApply:!0,isShow:!1},elData:{attrs:{defaultValue:10}}}},pet=(t,n)=>Object.assign(t,{title:n}),vet=(t={})=>{let n=t.proxy?"/"+t.proxy:"";return delete t.proxy,t=pet(t,"后台api获取接口"),Gn({url:n?n+"/v2/api-docs":"/scmp-web/v2/api-docs",method:"get",params:t})};function EP(){return{getApiDocs:vet}}const met=(t,n)=>Object.assign(t,{title:n}),het=(t={})=>(t=met(t,"获取所有系统信息列表"),Gn({url:"/scmp-web/pri/system/get_all_system_info",method:"get",params:t}));function kP(){return{getAllSystemInfo:het}}const dl=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),get=(t={})=>(t=dl(t,"保存新表格字段设置"),Gn({url:"/scmp-web/pri/field_config/add_field",method:"post",data:t})),bet=(t={})=>(t=dl(t,"根据菜单id查询字段信息"),Gn({url:"/scmp-web/pri/field_config/get_field_by_menu",method:"get",params:t})),yet=(t={})=>(t=dl(t,"查询新表格字段配置列表"),Gn({url:"/scmp-web/pri/field_config/get_field_list_page",method:"get",params:t})),_et=(t={})=>(t=dl(t,"删除新表格字段配置"),Gn({url:"/scmp-web/pri/field_config/del_field_by_id",method:"post",data:t})),Cet=(t={})=>(t=dl(t,"保存新表格字段设置"),Gn({url:"/scmp-web/pri/field_config/save_field_4_table",method:"post",data:t})),xet=(t={})=>(t=dl(t,"保存新表单字段设置"),Gn({url:"/scmp-web/pri/field_config/save_field_4_form",method:"post",data:t})),wet=(t={})=>(t=dl(t,"根据菜单id查询字段信息"),Gn({url:"/scmp-web/pri/field_config/get_table_by_menu",method:"get",params:t})),Eet=(t={})=>(t=dl(t,"根据菜单id查询字段信息"),Gn({url:"/scmp-web/pri/field_config/get_form_by_menu",method:"get",params:t})),ket=(t={})=>(t=dl(t,"查询字段池匹配字段"),Gn({url:"/scmp-web/pri/field_config/get_field_pool_list",method:"get",params:t})),Bet=(t={})=>(t=dl(t,"根据表名和系统名称查询字段配置"),Gn({url:"/scmp-web/pri/field_config/get_field_by_table",method:"get",params:t})),Net=(t={})=>(t=dl(t,"保存表格字段池在配置页面使用"),Gn({url:"/scmp-web/pri/field_config/save_field_pool_4_config",method:"post",data:t})),Tet=(t={})=>(t=dl(t,"根据字段代码集合获取字段池信息"),Gn({url:"/scmp-web/pri/field_config/get_pool_by_field_map",method:"post",data:t})),Det=(t={})=>(t=dl(t,"批量保存表格字段池在配置页面使用"),Gn({url:"/scmp-web/pri/field_config/save_field_pool_batch_4_config",method:"post",data:t}));function ap(){return{postAddField:get,getFieldByMenu:bet,getFieldListPage:yet,postDelFieldById:_et,postSaveField4Table:Cet,postSaveField4Form:xet,getTableByMenu:wet,getFormByMenu:Eet,getFieldPoolList:ket,getFieldByTable:Bet,postSaveFieldPool4Config:Net,getPoolByFieldMap:Tet,postSaveFieldPoolBatch4Config:Det}}const em=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),Vet=(t={})=>(t=em(t,"获取按钮配置信息列表"),Gn({url:"/scmp-web/pri/btn_config/get_btn_config_page_list",method:"get",params:t})),$et=(t={})=>(t=em(t,"保存按钮配置信息"),Gn({url:"/scmp-web/pri/btn_config/save_btn_config",method:"post",data:t})),Oet=(t={})=>(t=em(t,"保存按钮配置在配置页面使用"),Gn({url:"/scmp-web/pri/btn_config/save_btn_config_4_config",method:"post",data:t})),Aet=(t={})=>(t=em(t,"批量按钮配置在配置页面使用"),Gn({url:"/scmp-web/pri/btn_config/save_btn_config_batch_4_config",method:"post",data:t})),Met=(t={})=>(t=em(t,"删除"),Gn({url:"/scmp-web/pri/btn_config/delete_btn_config",method:"post",data:t}));function zx(){return{getBtnConfigPageList:Vet,postSaveBtnConfig:$et,postSaveBtnConfig4Config:Oet,postSaveBtnConfigBatch4Config:Aet,postDeleteBtnConfig:Met}}const Ret=EP(),Iet=ap();function Pet(t,n){const r=e.ref(!0);e.watch(()=>n.value,()=>{t.value="",r.value=!0});const o=()=>{let i=Ke.cloneDeep(uet);n.value=Ke.assign(n.value,{form:{id:new Date().getTime().toString(),baseData:i,formData:{},formConfig:[]}})},a=(i,u,s,c)=>{let d=i.map(f=>f[s]);if(r.value&&d.length<=0)return ir.warning("接口参数为空");Iet.getPoolByFieldMap({fieldCodes:d,field_type:"2",project_code:u&&u.project_code}).then(f=>{i.forEach(p=>{var v,g,y,C,w;let m=(g=(v=n.value)==null?void 0:v.form)==null?void 0:g.formConfig.map(b=>b.data.baseData.prop);if(!Ke.includes(m,p[s])){let b=Ke.cloneDeep(wP.value);if(b.id=p[s]+new Date().getTime().toString(),b.data.baseData.label=p[c]||"参数名称",b.data.baseData.prop=p[s],b.data.baseData.el="hs-input",b.data.elData=Ke.cloneDeep(b1),console.log("res.data[param[key]]",f.data[p[s]]),f.code==1&&f.data&&f.data[p[s]]){let x=JSON.parse(f.data[p[s]].json_data);b.data=Ke.assign(b.data,x,{field_id:f.data[p[s]].id})}if(Ke.keys(AN).find(x=>x==b.data.baseData.prop)){let x=AN[b.data.baseData.prop],E=Ke.cloneDeep(b.data.baseData.prop);b.data.baseData=Ke.assign(b.data.baseData,x.baseData),b.data.elData.attrs=Ke.assign(b.data.elData.attrs,x.elData.attrs),x.elData.attrs.defaultValue&&((y=n.value)!=null&&y.form)&&(n.value.form.formData=Ke.assign(n.value.form.formData,{[E]:x.elData.attrs.defaultValue}))}(w=(C=n.value)==null?void 0:C.form)==null||w.formConfig.push(b)}})})};return{parseForm:async()=>{var i,u;if(t.value){let s=wo.get("CURRENT_SYSTEM");if(!r.value){let p=JSON.parse(t.value);(i=n.value)!=null&&i.form||await o(),console.log("parseApi.value",p),a(p,s,"prop","label");return}let c=await Ret.getApiDocs({proxy:s.project_url}),d=(Ke.keys(c.paths)||[]).filter(p=>p==t.value),f=c.paths&&c.paths[d[0]]||void 0;if(f){let p=Object.keys(f)[0],v=(p&&f[p]||{}).parameters||[];(u=n.value)!=null&&u.form||await o(),a(v,s,"name","description")}else ir.warning("请检查url是否正确")}else o()},parseUrl:r}}const Fet={class:"flex flex-row"},zet=e.defineComponent({__name:"hsFormParse",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){let n=e.useModel(t,"modelValue"),r=e.ref("");const{parseForm:o,parseUrl:a}=Pet(r,n);return(l,i)=>{const u=e.resolveComponent("hs-switch"),s=e.resolveComponent("hs-input"),c=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createTextVNode(" 是否解析url:"),e.createVNode(u,{modelValue:e.unref(a),"onUpdate:modelValue":i[0]||(i[0]=d=>e.isRef(a)?a.value=d:null)},null,8,["modelValue"]),e.createElementVNode("div",Fet,[e.createVNode(s,{class:"basis-1/4 mr-2",modelValue:e.unref(r),"onUpdate:modelValue":i[1]||(i[1]=d=>e.isRef(r)?r.value=d:r=d),placeholder:"请输入解析接口"},null,8,["modelValue"]),e.createVNode(c,{onClick:e.unref(o),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)?"一键解析":"初始化配置"),1)]),_:1},8,["onClick"])])],64)}}});function Let(t,n,r){const o=i=>{var s;let u=i.id==((s=n.current)==null?void 0:s.id)?Ke.cloneDeep(d2.value):i;t("chose",u)};return{choseTagItem:o,appendField:()=>{var s,c,d,f,p;let i=Ke.cloneDeep(wP.value);i.id=new Date().getTime().toString(),(c=(s=r.value)==null?void 0:s.form)==null||c.formConfig.push(i);let u=((p=(d=r.value)==null?void 0:d.form)==null?void 0:p.formConfig[((f=r.value)==null?void 0:f.form.formConfig.length)-1])||Ke.cloneDeep(d2.value);o(u)},deleteTagItem:i=>{da.confirm(`确定删除“${i.data&&i.data.baseData.label}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var u,s,c,d;(s=(u=r.value)==null?void 0:u.form)==null||delete s.formData[i.data.baseData.prop],Ke.remove(((d=(c=r.value)==null?void 0:c.form)==null?void 0:d.formConfig)||[],i),o(i),ir.success("删除成功")}).catch(u=>{console.log("err",u)})}}}const Het=["onClick"],Wet=["onClick"],jet={class:"p-2"},qet=e.defineComponent({__name:"hsFormConfigList",props:e.mergeModels({current:{type:Object,default:()=>{}}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["chose"],["update:modelValue"]),setup(t,{emit:n}){const r=e.ref(),o=n,a=e.useModel(t,"modelValue"),l=t,{appendField:i,deleteTagItem:u,choseTagItem:s}=Let(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(ud),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value.form.formConfig,"onUpdate:modelValue":d[1]||(d[1]=f=>a.value.form.formConfig=f),animation:150},{default:e.withCtx(()=>{var f,p;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((p=(f=a.value)==null?void 0:f.form)==null?void 0:p.formConfig,m=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:m.id,onClick:v=>e.unref(s)(m)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==m.id?"bg-blue-200":""])},e.toDisplayString(m.data&&m.data.baseData.label),3),t.current.id==m.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(v=>e.unref(u)(m),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,Wet)):e.createCommentVNode("",!0)],8,Het))),128)),e.createElementVNode("div",jet,[e.createElementVNode("div",{onClick:d[0]||(d[0]=(...m)=>e.unref(i)&&e.unref(i)(...m)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]}),_:1},8,["modelValue"])]))}}),Uet=zr(qet,[["__scopeId","data-v-2a9416b3"]]);function Ket(t){return{toggleExpand:()=>{t.value=!t.value}}}const Get={key:0},xo=e.defineComponent({__name:"hsExpand",props:e.mergeModels({expandConfig:{type:Object,default:()=>({iconSize:18,subTitle:"",class:"",rightSlot:""})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue"),{toggleExpand:r}=Ket(n);return(o,a)=>{const l=e.resolveComponent("svgIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex align-center justify-between cursor-pointer hover:bg-red-200",t.expandConfig.class])},[e.createElementVNode("div",{class:"flex align-center flex-1",onClick:a[0]||(a[0]=(...i)=>e.unref(r)&&e.unref(r)(...i))},[e.createVNode(l,{class:"pt-1",name:n.value?"ele-CaretBottom":"ele-CaretRight",size:t.expandConfig.iconSize||18},null,8,["name","size"]),e.createElementVNode("div",null,e.toDisplayString(t.expandConfig.subTitle),1)]),t.expandConfig.rightSlot?(e.openBlock(),e.createElementBlock("div",Get,[e.renderSlot(o.$slots,"default")])):e.createCommentVNode("",!0)],2)}}}),Yet=ap();function Xet(t,n){let r=e.ref(t.current),o=e.ref(Ke.cloneDeep(t.current)),a=e.ref(t.data),l=e.ref(Ke.cloneDeep(fet)),i=e.ref("hs-config-input");e.watch(()=>t.current,m=>{if(m&&m.id!=o.value.id&&(l.value.elConfig.visible=!1,r.value=m,o.value=Ke.cloneDeep(m),a.value=t.data),m&&m.id){l.value.elConfig.visible=!1;let v=o.value.data.baseData.el;i.value=V4[v]}},{deep:!0,immediate:!0}),e.watch(()=>o.value.data.baseData,m=>{m&&(l.value.baseConfig.list=l.value.baseConfig.list.map(v=>(v.prop=="positionInGroup"&&(v.show=!!o.value.data.baseData.groupMark,v.show||(o.value.data.baseData.positionInGroup="")),v)))},{deep:!0,immediate:!0});let u=e.ref({url:"/scmp-web/pri/field_config/get_field_pool_list",params:{field_type:"2",field_code:"",project_code:""},qry_key:"field_code"});e.onMounted(()=>{let m=wo.get("CURRENT_SYSTEM"),v=u.value.params;v.project_code=m.project_code||"",u.value=Ke.assign(u.value,{params:v})});const s=e.ref({labelWidth:120,span:24,minWidth:350,style:"padding:5px 10px"}),c=e.ref(!1);return{parentConfig:s,visible:c,formItemConfig:o,elComName:i,tableConfig:l,requestData:u,onChange:function(m,v){if(v!="el")return;l.value.elConfig.visible=!1,o.value.data.elData={};let g=o.value.data.baseData.el;i.value=V4[g],l.value.elConfig.visible=!0},saveData:async function(){var m,v,g;try{if(!await n.value.getSubmitData())return;let C=((m=r.value)==null?void 0:m.data.baseData.prop)||"",w=o.value.data.baseData.prop,b=((g=(v=o.value.data.elData)==null?void 0:v.attrs)==null?void 0:g.defaultValue)||"";if(Ke.has(a.value,w)&&w!=C)return ir.warning("查询参数重复,请修改");if(Ke.has(a.value,C)&&C!=w&&a.value&&delete a.value[C],a.value=Object.assign(a.value||{},{[w]:b}),r.value=Object.assign(r.value||{},Ke.cloneDeep(o.value)),o.value.data.field_id)return;let x=wo.get("CURRENT_SYSTEM"),E={field_code:o.value.data.baseData.prop,field_name:o.value.data.baseData.label,field_type:"2",json_data:JSON.stringify(o.value.data),project_code:x.project_code};Yet.postSaveFieldPool4Config(E)}catch(y){console.log("er",y)}},onChangeItem:m=>{console.log("JSON.parse(item.json_data)",JSON.parse(m.json_data)),l.value.elConfig.visible=!1,o.value.data=Ke.assign(o.value.data,JSON.parse(m.json_data),{field_id:m.id});let v=o.value.data.baseData.el;i.value=V4[v]}}}const Zet={class:"bg-blue-200 h-full flex flex-col"},Jet={style:{height:"calc(100% -50px)"},class:"overflow-y-auto flex-1"},Qet={key:0},ett={class:"text-center grow-0"},ttt=e.defineComponent({__name:"hsAttrForm",props:{current:{type:Object,default(){return{}}},data:{type:Object,default(){return{}}}},setup(t){const n=t,r=e.ref(),{parentConfig:o,visible:a,formItemConfig:l,elComName:i,tableConfig:u,requestData:s,onChange:c,saveData:d,onChangeItem:f}=Xet(n,r);return(p,m)=>{var y,C,w,b,x;const v=e.resolveComponent("bc-auto-complete"),g=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Zet,[e.createElementVNode("div",Jet,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(a),"onUpdate:modelValue":m[0]||(m[0]=E=>e.isRef(a)?a.value=E:null),expandConfig:{subTitle:"表单项代码"}},null,8,["modelValue"])),e.unref(a)?(e.openBlock(),e.createElementBlock("div",Qet,e.toDisplayString(e.unref(l)),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(u).baseConfig.visible,"onUpdate:modelValue":m[1]||(m[1]=E=>e.unref(u).baseConfig.visible=E),expandConfig:e.unref(u).baseConfig.title},null,8,["modelValue","expandConfig"])),e.createTextVNode(" "+e.toDisplayString((y=e.unref(l))==null?void 0:y.data.baseData)+" ",1),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{ref_key:"baseConfigRef",ref:r,parentConfig:e.unref(o),data:(C=e.unref(l))==null?void 0:C.data.baseData,config:e.unref(u).baseConfig.list,rules:e.unref(u).baseConfig.rules,onChange:e.unref(c)},{prop:e.withCtx(()=>[e.createVNode(v,{url:e.unref(s).url,qry_key:e.unref(s).qry_key,params:e.unref(s).params,type:"form",modelValue:e.unref(l).data.baseData.prop,"onUpdate:modelValue":m[2]||(m[2]=E=>e.unref(l).data.baseData.prop=E),onChange:e.unref(f)},null,8,["url","qry_key","params","modelValue","onChange"])]),_:1},40,["parentConfig","data","config","rules","onChange"])),[[e.vShow,e.unref(u).baseConfig.visible]]),e.createTextVNode(" "+e.toDisplayString((w=e.unref(l))==null?void 0:w.data.elData)+" ",1),(b=e.unref(l))!=null&&b.data.baseData.el?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(u).elConfig.visible,"onUpdate:modelValue":m[3]||(m[3]=E=>e.unref(u).elConfig.visible=E),expandConfig:e.unref(u).elConfig.title},null,8,["modelValue","expandConfig"])),e.unref(u).elConfig.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)),{key:0,data:(x=e.unref(l))==null?void 0:x.data.elData,ref:"elRef",isVModel:""},null,8,["data"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),e.createElementVNode("div",ett,[e.createVNode(g,{onClick:e.unref(d),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),ntt={class:"mx-auto flex flex-row h-full"},rtt={class:"flex-1 grow overflow-y-auto"},ott={key:0},att={key:0,class:"flex-none basis-1/4 ml-4"},ltt=e.defineComponent({name:"formPanel"}),itt=e.defineComponent({...ltt,props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue");let r=e.ref(Ke.cloneDeep(cet)),o=Ke.cloneDeep(d2),a=e.ref("");e.watch(()=>n.value,i=>{a.value!=(i==null?void 0:i.config_unique_id)&&(o.value=Ke.cloneDeep(d2),a.value=(i==null?void 0:i.config_unique_id)||"")},{immediate:!0});const l=i=>{o.value=i};return(i,u)=>{var s,c,d,f,p;return e.openBlock(),e.createElementBlock("div",ntt,[e.createElementVNode("div",rtt,[e.createVNode(xo,{modelValue:e.unref(yl).code.visible,"onUpdate:modelValue":u[0]||(u[0]=m=>e.unref(yl).code.visible=m),expandConfig:e.unref(yl).code},null,8,["modelValue","expandConfig"]),e.unref(yl).code.visible?(e.openBlock(),e.createElementBlock("div",ott,e.toDisplayString(n.value),1)):e.createCommentVNode("",!0),e.createVNode(zet,{modelValue:n.value,"onUpdate:modelValue":u[1]||(u[1]=m=>n.value=m)},null,8,["modelValue"]),(s=n.value)!=null&&s.form?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(yl).form.visible,"onUpdate:modelValue":u[2]||(u[2]=m=>e.unref(yl).form.visible=m),expandConfig:e.unref(yl).form},null,8,["modelValue","expandConfig"])),e.unref(yl).form.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,data:n.value.form.baseData,config:e.unref(r)},null,8,["data","config"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(yl).formItem.visible,"onUpdate:modelValue":u[3]||(u[3]=m=>e.unref(yl).formItem.visible=m),expandConfig:e.unref(yl).formItem},null,8,["modelValue","expandConfig"])),e.unref(yl).formItem.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Uet),{key:1,modelValue:n.value,"onUpdate:modelValue":u[4]||(u[4]=m=>n.value=m),current:e.unref(o),onChose:l},null,40,["modelValue","current"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),(((d=(c=n.value)==null?void 0:c.form)==null?void 0:d.formConfig)||[]).length>0&&e.unref(o).id?(e.openBlock(),e.createElementBlock("div",att,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ttt),{current:e.unref(o),data:(p=(f=n.value)==null?void 0:f.form)==null?void 0:p.formData},null,8,["current","data"]))])):e.createCommentVNode("",!0)])}}}),stt={class:"icon-selector w100 h100"},utt={class:"icon-selector-warp"},ctt={class:"icon-selector-warp-title"},dtt=e.defineComponent({name:"iconSelector"}),SP=e.defineComponent({...dtt,props:{prepend:{type:String,default:()=>"ele-Pointer"},placeholder:{type:String,default:()=>"请输入内容搜索图标或者选择图标"},size:{type:String,default:()=>"default"},title:{type:String,default:()=>"请选择图标"},disabled:{type:Boolean,default:()=>!1},clearable:{type:Boolean,default:()=>!0},emptyDescription:{type:String,default:()=>"无相关图标"},isShowPrepend:{type:Boolean,default:!0},modelValue:String},emits:["update:modelValue","get","clear"],setup(t,{emit:n}){const r=t,o=n,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./list-BIWdaen0.js"))),l=e.ref(),i=e.reactive({fontIconPrefix:"",fontIconWidth:0,fontIconSearch:"",fontIconPlaceholder:"",fontIconTabActive:"ali",fontIconList:{ali:[],ele:[],awe:[]}}),u=()=>{if(!r.modelValue)return!1;i.fontIconSearch="",i.fontIconPlaceholder=r.modelValue},s=()=>{const b=d();setTimeout(()=>{b.filter(E=>E===i.fontIconSearch).length<=0&&(i.fontIconSearch="")},300)},c=e.computed(()=>{const b=d();if(!i.fontIconSearch)return b;let x=i.fontIconSearch.trim().toLowerCase();return b.filter(E=>{if(E.toLowerCase().indexOf(x)!==-1)return E})}),d=()=>{let b=[];return i.fontIconTabActive==="ali"?b=i.fontIconList.ali:i.fontIconTabActive==="ele"?b=i.fontIconList.ele:i.fontIconTabActive==="awe"&&(b=i.fontIconList.awe),b},f=()=>{if(r.modelValue==="")return i.fontIconPlaceholder=r.placeholder;i.fontIconPlaceholder=r.modelValue,i.fontIconPrefix=r.modelValue},p=()=>{let b="ali";return r.modelValue&&(r.modelValue.indexOf("iconfont")>-1?b="ali":r.modelValue.indexOf("ele-")>-1?b="ele":r.modelValue.indexOf("fa")>-1&&(b="awe"),i.fontIconTabActive=b),b},m=async b=>{if(b==="ali"){if(i.fontIconList.ali.length>0)return;await cg.ali().then(x=>{i.fontIconList.ali=x.map(E=>`iconfont ${E}`)})}else if(b==="ele"){if(i.fontIconList.ele.length>0)return;await cg.ele().then(x=>{i.fontIconList.ele=x})}else if(b==="awe"){if(i.fontIconList.awe.length>0)return;await cg.awe().then(x=>{i.fontIconList.awe=x.map(E=>`fa ${E}`)})}i.fontIconPlaceholder=r.placeholder,f()},v=b=>{m(b.paneName),l.value.focus()},g=b=>{i.fontIconPlaceholder=b,i.fontIconPrefix=b,o("get",i.fontIconPrefix),o("update:modelValue",i.fontIconPrefix),l.value.focus()},y=()=>{i.fontIconPrefix="",o("clear",i.fontIconPrefix),o("update:modelValue",i.fontIconPrefix)},C=()=>{e.nextTick(()=>{var b;i.fontIconWidth=(b=l.value.$el)==null?void 0:b.offsetWidth})},w=()=>{window.addEventListener("resize",()=>{C()})};return e.onMounted(()=>{m(p()),w(),C()}),e.watch(()=>r.modelValue,()=>{f(),p()}),(b,x)=>{const E=e.resolveComponent("SvgIcon"),k=e.resolveComponent("el-input"),S=e.resolveComponent("el-tab-pane"),B=e.resolveComponent("el-tabs"),$=e.resolveComponent("el-popover");return e.openBlock(),e.createElementBlock("div",stt,[e.createVNode(k,{modelValue:i.fontIconSearch,"onUpdate:modelValue":x[0]||(x[0]=D=>i.fontIconSearch=D),placeholder:i.fontIconPlaceholder,clearable:t.clearable,disabled:t.disabled,size:t.size,ref_key:"inputWidthRef",ref:l,onClear:y,onFocus:u,onBlur:s},e.createSlots({_:2},[t.isShowPrepend?{name:"prepend",fn:e.withCtx(()=>{var D,N;return[(i.fontIconPrefix===""?((D=t.prepend)==null?void 0:D.indexOf("ele-"))>-1:((N=i.fontIconPrefix)==null?void 0:N.indexOf("ele-"))>-1)?(e.openBlock(),e.createBlock(E,{key:0,name:i.fontIconPrefix===""?t.prepend:i.fontIconPrefix,class:"font14"},null,8,["name"])):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass([i.fontIconPrefix===""?t.prepend:i.fontIconPrefix,"font14"])},null,2))]}),key:"0"}:void 0]),1032,["modelValue","placeholder","clearable","disabled","size"]),e.createVNode($,{placement:"bottom",width:i.fontIconWidth,transition:"el-zoom-in-top","popper-class":"icon-selector-popper",trigger:"click","virtual-ref":l.value,"virtual-triggering":""},{default:e.withCtx(()=>[e.createElementVNode("div",utt,[e.createElementVNode("div",ctt,e.toDisplayString(t.title),1),e.createVNode(B,{modelValue:i.fontIconTabActive,"onUpdate:modelValue":x[1]||(x[1]=D=>i.fontIconTabActive=D),onTabClick:v},{default:e.withCtx(()=>[e.createVNode(S,{lazy:"",label:"ali",name:"ali"},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{list:c.value,empty:t.emptyDescription,prefix:i.fontIconPrefix,onGetIcon:g},null,8,["list","empty","prefix"])]),_:1}),e.createVNode(S,{lazy:"",label:"ele",name:"ele"},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{list:c.value,empty:t.emptyDescription,prefix:i.fontIconPrefix,onGetIcon:g},null,8,["list","empty","prefix"])]),_:1}),e.createVNode(S,{lazy:"",label:"awe",name:"awe"},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{list:c.value,empty:t.emptyDescription,prefix:i.fontIconPrefix,onGetIcon:g},null,8,["list","empty","prefix"])]),_:1})]),_:1},8,["modelValue"])])]),_:1},8,["width","virtual-ref"])])}}});function ftt(t,n){const r=e.ref({labelWidth:120,span:24,minWidth:350,style:"padding:5px 10px"});let o=e.ref({url:"/scmp-web/pri/btn_config/get_btn_config_page_list",value_key:"btn_label",params:{btn_name:"",project_code:""},qry_key:"btn_name"});return e.onMounted(()=>{let i=wo.get("CURRENT_SYSTEM"),u=o.value.params;u.project_code=i.project_code||"",o.value=Ke.assign(o.value,{params:u})}),{parentConfig:r,requestData:o,onChangeItem:i=>{t.value=Ke.assign(t.value,JSON.parse(i.json_data),{field_id:i.id})},getSubmitData:async()=>await n.value.getSubmitData()}}const BP=e.defineComponent({__name:"hsBtnItemConfig",props:e.mergeModels({config:{type:Object,default:()=>{}}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:n}){const r=e.useModel(t,"modelValue"),o=e.ref(),{parentConfig:a,requestData:l,onChangeItem:i,getSubmitData:u}=ftt(r,o);return n({getSubmitData:u}),(s,c)=>{const d=e.resolveComponent("bc-auto-complete");return e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{ref_key:"baseConfigRef",ref:o,parentConfig:e.unref(a),data:r.value,config:t.config.list,rules:t.config.rules},{key:e.withCtx(()=>[e.createVNode(d,{url:e.unref(l).url,qry_key:e.unref(l).qry_key,params:e.unref(l).params,type:"btn",value_key:e.unref(l).value_key,modelValue:r.value.key,"onUpdate:modelValue":c[0]||(c[0]=f=>r.value.key=f),onChange:e.unref(i)},null,8,["url","qry_key","params","value_key","modelValue","onChange"])]),btnIcon:e.withCtx(()=>[e.createVNode(SP,{placeholder:"请选择图标",clearable:"",isShowPrepend:!1,modelValue:r.value.btnIcon,"onUpdate:modelValue":c[1]||(c[1]=f=>r.value.btnIcon=f),title:""},null,8,["modelValue"])]),_:1},8,["parentConfig","data","config","rules"])}}});let ptt=e.ref({id:"",tableName:"表格配置名称",method:"get",is_slot_loading:!1,is_slot_empty:!1,is_apply_page:!0,isCloseInitData:!1,table_page_data:{loading:!1,currentPage:1,pageSize:10,total:0,pagerCount:7,pageSizes:"string=[10,15,20,50,100]",align:"right",border:!1,background:!1,perfect:!1,autoHidden:!1},height:"auto",stripe:!0,border:"none",round:!1,size:"small",loading:!1,align:"left",headerAlign:"left",footerAlign:"left",showHeader:!0,showFooter:!1,columnConfig:{useKey:!1,isCurrent:!1,isHover:!0,resizable:!1,maxFixedSize:4},rowConfig:{useKey:!1,keyField:"_X_ROW_KEY",isCurrent:!0,isHover:!0},resizeConfig:{refreshDelay:250},resizableConfig:{minWidth:"auto"},seqConfig:{},sortConfig:{defaultSort:{},multiple:!1,chronological:!1,remote:!1,showIcon:!0},filterConfig:{remote:!1,filterMethod:"",showIcon:!0},radioConfig:{strict:!0,reserve:!1,highlight:!1},checkboxConfig:{},tooltipConfig:{},expandConfig:{expandAll:!1,accordion:!1,trigger:"default",lazy:!1,reserve:!1,showIcon:!0},treeConfig:{transform:!1,rowField:"id",parentField:"parentId",childrenField:"children",indent:20,showLine:!1,expandAll:!1,accordion:!1,trigger:"default",lazy:!1,hasChildField:"hasChild",reserve:!1,showIcon:!0},editConfig:{trigger:"click",enabled:!0,mode:"cell",showIcon:!0,showStatus:!1,showUpdateStatus:!1,showInsertStatus:!1,showAsterisk:!0,autoClear:!0},validConfig:{autoPos:!0,showMessage:!0},editRules:{},emptyRender:{},loadingConfig:{},customConfig:{storage:{}},scrollX:{},scrollY:{}}),vtt=[{prop:"id",label:"表格唯一标识",type:"",tooltip:"唯一标识(被某些特定的功能所依赖)",disabled:!0,el:"hs-input"},{prop:"tableName",label:"表格配置名称",type:"",el:"hs-input"},{prop:"requestUrl",label:"请求地址",type:"",el:"hs-input"},{prop:"method",label:"请求方式",type:"",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"proxy",label:"系统代理",type:"",el:"hs-input"},{prop:"data",label:"表格数据",tooltip:"表格数据(与 loadData 行为一致,更新数据是不会重置状态)",type:"",el:"hs-input"},{prop:"height",label:"表格的高度",type:"",disabled:!0,tooltip:"表格的高度;支持铺满父容器或者固定高度,如果设置 auto 为铺满父容器(如果设置为 auto,则必须确保存在父节点且不允许存在相邻元素)",el:"hs-input"},{prop:"minHeight",label:"表格最小高度",type:"",el:"hs-input"},{prop:"maxHeight",label:"表格的最大高度",type:"",el:"hs-input"},{prop:"border",label:"是否带有边框",type:"",op:[{label:"默认",value:"default"},{label:"完整边框",value:"full"},{label:"外边框",value:"outer"},{label:"内边框",value:"inner"},{label:"无边框",value:"none"}],el:"hs-select",cel:"hs-option"},{prop:"size",label:"表格的尺寸",type:"",op:[{label:"中等",value:"medium"},{label:"小",value:"small"},{label:"超小",value:"mini"}],el:"hs-select",cel:"hs-option"},{prop:"align",label:"所有的列对齐方式",type:"",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}],el:"hs-select",cel:"hs-option"},{prop:"headerAlign",label:"所有的表头列的对齐方式",tooltip:"所有的表头列的对齐方式",type:"",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}],el:"hs-select",cel:"hs-option"},{prop:"footerAlign",label:"所有的表尾列的对齐方式",type:"",tooltip:"所有的表尾列的对齐方式",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}],el:"hs-select",cel:"hs-option"},{prop:"emptyText",label:"空数据时显示的内容",type:"",el:"hs-input"},{prop:"showOverflow",label:"设置所有内容溢出显示",tooltip:"设置所有内容过长时显示为省略号(如果是固定列建议设置该值,提升渲染速度)",type:"",op:[{label:"省略号",value:"ellipsis"},{label:"title",value:"title"},{label:"tooltip",value:"tooltip"}],el:"hs-select",cel:"hs-option"},{prop:"showHeaderOverflow",label:"设置表头内容溢出显示",type:"",tooltip:"设置表头所有内容过长时显示为省略号",op:[{label:"省略号",value:"ellipsis"},{label:"title",value:"title"},{label:"tooltip",value:"tooltip"}],el:"hs-select",cel:"hs-option"},{prop:"showFooterOverflow",label:"设置表尾内容溢出显示",type:"",tooltip:"设置表尾所有内容过长时显示为省略号",op:[{label:"省略号",value:"ellipsis"},{label:"title",value:"title"},{label:"tooltip",value:"tooltip"}],el:"hs-select",cel:"hs-option"},{prop:"showHeader",label:"是否显示表头",type:"",el:"hs-switch"},{prop:"keepSource",label:"保持原始值的状态",type:"",tooltip:"保持原始值的状态,被某些功能所依赖,比如编辑状态、还原数据等(开启后影响性能,具体取决于数据量)",el:"hs-switch"},{prop:"loading",label:"表格是否显示加载中",type:"",el:"hs-switch"},{prop:"round",label:"是否为圆角边框",type:"",el:"hs-switch"},{prop:"stripe",label:"是否带有斑马纹",type:"",tooltip:"是否带有斑马纹(需要注意的是,在可编辑表格场景下,临时插入的数据不会有斑马纹样式)",el:"hs-switch"},{prop:"autoResize",label:"监听父元素变化重新计算表格",tooltip:"自动监听父元素的变化去重新计算表格(对于父元素可能存在动态变化、显示隐藏的容器中、列宽异常等场景中的可能会用到)",type:"",el:"hs-switch"},{prop:"syncResize",label:"随属性的变化重新计算表格",type:"",tooltip:"自动跟随某个属性的变化去重新计算表格,和手动调用 recalculate 方法是一样的效果(对于通过某个属性来控制显示/隐藏切换时可能会用到)",el:"hs-switch"},{prop:"showFooter",label:"是否显示表尾",el:"hs-switch"},{prop:"is_slot_loading",label:"自定义加载中模板",el:"hs-switch"},{prop:"is_slot_empty",label:"自定义空数据时显示模板",el:"hs-switch"},{prop:"rowClassName",label:"给行附加样式类",tooltip:"给行附加 className",type:"textarea",el:"hs-input"},{prop:"cellClassName",label:"给单元格附加样式类",type:"textarea",tooltip:"给单元格附加 className",el:"hs-input"},{prop:"headerRowClassName",label:"给表头的行附加样式类",tooltip:"给表头的行附加 className",type:"textarea",el:"hs-input"},{prop:"headerCellClass-name",label:"给表头的单元格附加样式类",type:"textarea",tooltip:"给表头的单元格附加 className",el:"hs-input"},{prop:"footerRowClassName",label:"给表尾的行附加样式类",tooltip:"给表尾的行附加 className",type:"textarea",el:"hs-input"},{prop:"footerCellClassName",label:"给表尾的单元格附加样式类",type:"textarea",el:"hs-input"},{prop:"footerMethod",label:"表尾的数据获取方法",tooltip:"表尾的数据获取方法,返回一个二维数组",type:"textarea",el:"hs-input"},{prop:"mergeCells",label:"临时合并指定的单元格",tooltip:"临时合并指定的单元格 (不能用于展开行,不建议用于固定列、树形结构)",type:"textarea",el:"hs-input"},{prop:"mergeFooterItems",label:"临时合并表尾",tooltip:"临时合并表尾 (不能用于展开行,不建议用于固定列、树形结构)",type:"textarea",el:"hs-input"},{prop:"params",label:"自定义参数",type:"textarea",el:"hs-input"},{prop:"is_apply_page",label:"是否分页",el:"hs-switch"},{prop:"isCloseInitData",label:"是否关闭初始化数据",tooltip:"是否关闭第一次加载数据",el:"hs-switch"}];const mtt=[{key:"columnConfig",visible:!1,title:"列的默认参数",columnConfig:[{prop:"useKey",label:"是否为每列设置key属性",tooltip:"是否需要为每一列的 VNode 设置 key 属性",type:"",el:"hs-switch"},{prop:"isCurrent",label:"点击列头当前列是否高亮",tooltip:"当鼠标点击列头时,是否要高亮当前列",type:"",el:"hs-switch"},{prop:"isHover",label:"当鼠标移到列头时,是否要高亮当前头",tooltip:"当鼠标移到列头时,是否要高亮当前列头",type:"",el:"hs-switch"},{prop:"resizable",label:"每一列是否启用列宽调整",type:"",tooltip:"每一列是否启用列宽调整",el:"hs-switch"},{prop:"width",label:"每一列的宽度",tooltip:"每一列的宽度",type:"",el:"hs-input"},{prop:"minWidth",label:"每一列的最小宽度",tooltip:"每一列的最小宽度",type:"",el:"hs-input"},{prop:"maxFixedSize",label:"固定列允许设置的最大数量",tooltip:"固定列允许设置的最大数量(如果是分组,则一个分组算一个",type:"number",el:"hs-input-number"},{prop:"header-export-method",label:"每一列的自定义表头单元格数据导出方法",tooltip:"每一列的自定义表头单元格数据导出方法,返回自定义的标题",type:"textarea",el:"hs-input"},{prop:"export-method",label:"每一列的自定义单元格数据导出方法",tooltip:"每一列的自定义单元格数据导出方法,返回自定义的值",type:"textarea",el:"hs-input"},{prop:"footer-export-method",label:"每一列的自定义表尾单元格数据导出方法",tooltip:"每一列的自定义表尾单元格数据导出方法,返回自定义的值",type:"textarea",el:"hs-input"}]},{key:"rowConfig",visible:!1,title:"行配置信息",rowConfig:[{prop:"useKey",label:"是否为每行设置key属性",type:"",tooltip:"是否需要为每一行的 VNode 设置 key 属性",el:"hs-switch"},{prop:"keyField",label:"自定义行主键的字段名",type:"",tooltip:"自定义行数据唯一主键的字段名(默认自动生成)",el:"hs-input"},{prop:"isCurrent",label:"点击行是否要高亮当前行",tooltip:"当鼠标点击行时,是否要高亮当前行",type:"",el:"hs-switch"},{prop:"isHover",label:"鼠标悬浮行是否高亮显示",tooltip:"当鼠标移到行时,是否要高亮当前行",type:"",el:"hs-switch"},{prop:"height",label:"每一行的高度",tooltip:"只对 show-overflow 有效,每一行的高度",type:"number",el:"hs-input-number"}]},{key:"resizeConfig",visible:!1,title:"响应式布局配置项",resizeConfig:[{prop:"refreshDelay",label:"刷新延时时长(毫秒)",type:"number",el:"hs-input-number",tooltip:"只对 auto-resize 有效,刷新延时,当父容器发生变化时,至少多少毫秒刷新布局"}]},{key:"resizableConfig",visible:!1,title:"列宽拖动配置项",resizableConfig:[{prop:"minWidth",label:"列宽拖动的最小宽度",type:"",tooltip:"列宽拖动的最小宽度",el:"hs-input"}]},{key:"seqConfig",visible:!1,title:"序号配置项",seqConfig:[{prop:"seqMethod",label:"自定义序号的方法",type:"textarea",el:"hs-input",tooltip:"自定义序号的方法返回处理后的值"}]},{key:"sortConfig",visible:!1,title:"排序配置项",sortConfig:[{prop:"orders",label:"自定义序号的方法",type:"textarea",tooltip:"自定义轮转顺序",el:"hs-input"},{prop:"sortMethod",label:"全局排序方法",type:"textarea",tooltip:"全局排序方法,当触发排序时会调用该函数返回排序后的列表",el:"hs-input"},{prop:"multiple",label:"是否启用多列组合筛选",type:"",tooltip:"是否启用多列组合筛选",el:"hs-switch"},{prop:"chronological",label:"是否按照触发顺序进行排序",type:"",tooltip:"只对 multiple 有效,是否按照先后触发顺序进行排序",el:"hs-switch"},{prop:"remote",label:"所有列是否使用服务端排序",type:"",tooltip:"所有列是否使用服务端排序,如果设置为 true 则不会对数据进行处理",el:"hs-switch"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"点击按钮",value:"default"},{label:"点击表头",value:"cell"}]},{prop:"showIcon",label:"是否显示列头排序图标",type:"",tooltip:"是否显示列头排序图标",el:"hs-switch"},{prop:"iconAsc",label:"自定义升序的图标",tooltip:"自定义升序的图标",type:"",el:"hs-input"},{prop:"iconDesc",label:"自定义降序的图标",tooltip:"自定义降序的图标",type:"",el:"hs-input"}],second_config:[{key:"defaultSort",visible:!1,title:"默认排序",defaultSort:[{prop:"field",label:"列字段名",el:"hs-input"},{prop:"order",label:"排序方式",el:"hs-input"}]}]},{key:"filterConfig",visible:!1,title:"筛选配置项",filterConfig:[{prop:"remote",label:"所有列是否使用服务端筛选",type:"",tooltip:"所有列是否使用服务端筛选,如果设置为 true 则不会对数据进行处理",el:"hs-switch"},{prop:"filterMethod",label:"全局筛选方法",type:"textarea",tooltip:"全局筛选方法,当触发筛选时会调用该函数返回是否有效",el:"hs-input"},{prop:"showIcon",label:"是否显示列头筛选图标",tooltip:"是否显示列头筛选图标",type:"",el:"hs-switch"},{prop:"iconNone",label:"自定义无条件时显示的图标",type:"",tooltip:"自定义无条件时显示的图标",el:"hs-input"},{prop:"iconMatch",label:"自定义带条件时显示的图标",tooltip:"自定义带条件时显示的图标",type:"",el:"hs-input"},{prop:"confirmButtonText",label:"自定义确认按钮文本",tooltip:"自定义确认按钮文本",type:"",el:"hs-input"},{prop:"resetButtonText",label:"自定义重置按钮文本",type:"",el:"hs-input"}]},{key:"radioConfig",visible:!1,title:"单选框配置项",radioConfig:[{prop:"strict",label:"严格模式,选中后不能取消",tooltip:"严格模式,选中后不能取消",type:"",el:"hs-switch"},{prop:"reserve",label:"是否保留勾选状态",tooltip:"是否保留勾选状态,例如:数据被刷新或者分页之后还保留之前选中的状态(需要有 rowConfig.keyField)",type:"",el:"hs-switch"},{prop:"labelField",label:"单选框显示的字段名",tooltip:"单选框显示的字段名,可以直接显示在单选框中",type:"",el:"hs-input"},{prop:"checkRowKey",label:"默认选中指定行",tooltip:"默认选中指定行(只会在初始化时被触发一次,需要有 rowConfig.keyField)",type:"",el:"hs-input"},{prop:"visibleMethod",label:"是否允许勾选的方法",tooltip:"是否允许勾选的方法,该方法,的返回值用来决定这一行的 radio 是否显示",type:"textarea",el:"hs-input"},{prop:"checkMethod",label:"是否允许选中的方法",tooltip:"是否允许选中的方法,该方法的返回值用来决定这一行的 radio 是否可以选中",type:"textarea",el:"hs-input"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"highlight",label:"高亮选中行",type:"",el:"hs-switch"}]},{key:"checkboxConfig",visible:!1,title:"复选框配置项",checkboxConfig:[{prop:"labelField",label:"复选框显示的字段名",tooltip:"复选框显示的字段名,可以直接显示在复选框中",type:"",el:"hs-input"},{prop:"checkField",label:"绑定选中属性",tooltip:"绑定选中属性(行数据中必须存在该字段,否则无效)",type:"",el:"hs-input"},{prop:"indeterminateField",label:"绑定半选属性",tooltip:"绑定半选属性(行数据中必须存在该字段,否则无效)",type:"",el:"hs-input"},{prop:"showHeader",label:"是否显示全选按钮",tooltip:"是否显示全选按钮(如果 checkStrictly=true 则默认为 false)",type:"",el:"hs-switch"},{prop:"checkAll",label:"默认勾选所有",tooltip:"默认勾选所有(只会在初始化时被触发一次)",type:"",el:"hs-switch"},{prop:"checkRowKeys",label:"默认勾选指定行",type:"textarea",tooltip:"默认勾选指定行(只会在初始化时被触发一次,需要有 rowConfig.keyField)",el:"hs-input"},{prop:"checkStrictly",label:"是否严格的遵循父子不互相关联的做法",type:"",tooltip:"是否严格的遵循父子不互相关联的做法",el:"hs-switch"},{prop:"strict",label:"严格模式",type:"",tooltip:"严格模式,当数据为空或全部禁用时,列头的复选框为禁用状态",el:"hs-switch"},{prop:"visibleMethod",label:"是否允许勾选的方法",tooltip:"是否允许勾选的方法,该方法,的返回值用来决定这一行的 checkbox 是否显示",type:"textarea",el:"hs-input"},{prop:"checkMethod",label:"是否允许勾选的方法",tooltip:"是否允许勾选的方法,该方法的返回值用来决定这一行的 checkbox 是否可以勾选",type:"textarea",el:"hs-input"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"highlight",label:"高亮勾选行",type:"",el:"hs-switch"},{prop:"reserve",label:"是否保留勾选状态",tooltip:"是否保留勾选状态,对于某些场景可能会用到,比如数据被刷新之后还保留之前选中的状态(需要有 rowConfig.keyField)",type:"",el:"hs-switch"},{prop:"range",label:"开启复选框范围选择功能",type:"",tooltip:"开启复选框范围选择功能(启用后通过鼠标在复选框的列内滑动选中或取消指定行)",el:"hs-switch"},{prop:"isShiftKey",label:"开启复选框指定行选择功能",tooltip:"开启复选框指定行选择功能(启用后通过鼠标点击和 shift 键选取指定范围的行)",type:"",el:"hs-switch"}]},{key:"tooltipConfig",visible:!1,title:"tooltip 配置项",tooltipConfig:[{prop:"showAll",label:"所有单元格开启工具提示",tooltip:"所有单元格开启工具提示",type:"",el:"hs-switch"},{prop:"theme",label:"主题颜色",tooltip:"tooltip 的主题颜色",type:"",el:"hs-select",cel:"hs-option",op:[{label:"暗黑",value:"dark"},{label:"明亮",value:"light"}]},{prop:"enterable",label:"鼠标是否可进入到工具提示中",tooltip:"鼠标是否可进入到工具提示中",type:"",el:"hs-switch"},{prop:"enterDelay",label:"鼠标移入后延时多少才显示工具提示",tooltip:"鼠标移入后延时多少才显示工具提示",type:"number",el:"hs-input-number"},{prop:"leaveDelay",label:"鼠标移出后延时多少才隐藏工具提示",type:"number",el:"hs-input-number"},{prop:"contentMethod",label:"通过返回值来重写默认的提示内容",type:"textarea",el:"hs-input",tooltip:"该方法可以通过返回值来重写默认的提示内容,可以返回 null 使用默认的提示内容,可以返回空内容去掉指定单元格的提示内容"}]},{key:"expandConfig",visible:!1,title:"展开行配置项(不支持虚拟滚动)",expandConfig:[{prop:"labelField",label:"展开列显示的字段名",type:"",tooltip:"展开列显示的字段名,可以直接显示在单元格中",el:"hs-input"},{prop:"expandAll",label:"默认展开所有行",type:"",tooltip:"默认展开所有行(只会在初始化时被触发一次)",el:"hs-switch"},{prop:"expandRowKeys",label:"默认展开指定行",type:"textarea",tooltip:"默认展开指定行(只会在初始化时被触发一次,需要有 rowConfig.keyField)",el:"hs-input"},{prop:"accordion",label:"每次只能展开一行",type:"",el:"hs-switch"},{prop:"height",label:"展开内容的高度",tooltip:"展开内容的高度,默认自适应高度",type:"",el:"hs-input"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"lazy",label:"是否使用懒加载",type:"",el:"hs-switch"},{prop:"loadMethod",label:"该方法用于异步加载展开后的内容",type:"textarea",tooltip:"该方法用于异步加载展开后的内容(必须返回 Promise<any[]> 对象)",el:"hs-input"},{prop:"toggleMethod",label:"该方法在展开或关闭触发之前调用",tooltip:"该方法在展开或关闭触发之前调用,可以通过返回值来决定是否允许继续执行",type:"textarea",el:"hs-input"},{prop:"visibleMethod",label:"是否允许显示展开按钮",tooltip:"该函数的返回值用来决定是否允许显示展开按钮",type:"textarea",el:"hs-input"},{prop:"reserve",label:"是否保留展开状态",type:"",tooltip:"是否保留展开状态,对于某些场景可能会用到,比如数据被刷新之后还保留之前展开的状态(需要有 rowConfig.keyField)",el:"hs-switch"},{prop:"showIcon",label:"是否显示图标按钮",type:"",el:"hs-switch"},{prop:"iconOpen",label:"自定义展开后显示的图标",type:"",el:"hs-input"},{prop:"iconClose",label:"自定义收起后显示的图标",type:"",el:"hs-input"},{prop:"iconLoaded",label:"自定义懒加载中显示的图标",type:"",el:"hs-input"}]},{key:"treeConfig",visible:!1,title:"树形结构配置项",treeConfig:[{prop:"transform",label:"自动将列表转为树结构",tooltip:"自动将列表转为树结构(支持虚拟滚动)",type:"",el:"hs-switch"},{prop:"rowField",label:"树节点的字段名",tooltip:"用于 treeConfig.transform,树节点的字段名",type:"",el:"hs-input"},{prop:"parentField",label:"树父节点的字段名",tooltip:"用于 treeConfig.transform,树父节点的字段名",type:"",el:"hs-input"},{prop:"childrenField",label:"树子节点的字段名",type:"",el:"hs-input"},{prop:"indent",label:"树节点的缩进",type:"number",el:"hs-input-number"},{prop:"showLine",label:"树节点的连接线",type:"",tooltip:"树节点的连接线(启用连接线会降低渲染性能)",el:"hs-switch"},{prop:"expandAll",label:"默认展开所有子孙树节点",type:"",tooltip:"默认展开所有子孙树节点(只会在初始化时被触发一次)",el:"hs-switch"},{prop:"expandRowKeys",label:"默认展开指定树节点",type:"textarea",el:"hs-input",tooltip:"默认展开指定树节点(只会在初始化时被触发一次,需要有 rowConfig.keyField)"},{prop:"accordion",label:"同级节点每次只展开一个",tooltip:"对于同一级的节点,每次只能展开一个",type:"",el:"hs-switch"},{prop:"trigger",label:"触发方式",type:"",tooltip:"触发方式(注:当多种功能重叠时,会同时触发)",el:"hs-select",cel:"hs-option",op:[{label:"默认",value:"default"},{label:"点击单元格触发",value:"cell"},{label:"点击行触发",value:"row"}]},{prop:"lazy",label:"是否使用懒加载",type:"",tooltip:"是否使用懒加载(启用后只有指定 hasChild 字段的节点才允许被点击)",el:"hs-switch"},{prop:"hasChildField",label:"标识是否存在子节点",tooltip:"只对 lazy 启用后有效,标识是否存在子节点,从而控制是否允许被点击",type:"",el:"hs-input"},{prop:"loadMethod",label:"该方法用于异步加载子节点",type:"textarea",tooltip:"该方法用于异步加载子节点(必须返回 Promise<any[]> 对象)",el:"hs-input"},{prop:"toggleMethod",label:"在展开或关闭触发判断是否继续执行",tooltip:"该方法在展开或关闭触发之前调用,可以通过返回值来决定是否允许继续执行",type:"textarea",el:"hs-input"},{prop:"reserve",label:"是否保留展开状态",type:"",tooltip:"是否保留展开状态,对于某些场景可能会用到,比如数据被刷新之后还保留之前展开的状态(需要有 rowConfig.keyField)",el:"hs-switch"},{prop:"showIcon",label:"是否显示图标按钮",type:"",el:"hs-switch"},{prop:"iconOpen",label:"自定义展开后显示的图标",type:"",el:"hs-input"},{prop:"iconClose",label:"自定义收起后显示的图标",type:"",el:"hs-input"},{prop:"iconLoaded",label:"自定义懒加载中显示的图标",type:"",el:"hs-input"}]},{key:"editConfig",visible:!1,title:"可编辑配置项",editConfig:[{prop:"trigger",label:"触发方式",type:"",el:"hs-select",cel:"hs-option",op:[{label:"手动触发(用于行编辑模式)",value:"manual"},{label:"点击触发编辑",value:"click"},{label:"双击触发编辑",value:"dblclick"}]},{prop:"enabled",label:"是否启用",type:"",el:"hs-switch"},{prop:"mode",label:"编辑模式",type:"",el:"hs-select",cel:"hs-option",op:[{label:"单元格编辑模式",value:"cell"},{label:"行编辑模式",value:"row"}]},{prop:"showIcon",label:"是否显示列头编辑图标",tooltip:"是否显示列头编辑图标",type:"",el:"hs-switch"},{prop:"showStatus",label:"是否显示单元格新增与修改状态",type:"",tooltip:"只对 keep-source 开启有效,是否显示单元格新增与修改状态",el:"hs-switch"},{prop:"showUpdateStatus",label:"是否显示单元格修改状态",type:"",tooltip:"只对 keep-source 开启有效,是否显示单元格修改状态",el:"hs-switch"},{prop:"showInsertStatus",label:"是否显示单元格新增状态",tooltip:"只对 keep-source 开启有效,是否显示单元格新增状态",type:"",el:"hs-switch"},{prop:"showAsterisk",label:"是否显示必填字段的红色星号",tooltip:"是否显示必填字段的红色星号",type:"",el:"hs-switch"},{prop:"autoClear",label:"点空白处是否清除激活状态",type:"",tooltip:"当点击非编辑列之后,是否自动清除单元格的激活状态",el:"hs-switch"},{prop:"beforeEditMethod",label:"该单元格是否允许编辑",tooltip:"该方法的返回值用来决定该单元格是否允许编辑",type:"textarea",el:"hs-input"},{prop:"icon",label:"自定义可编辑列的状态图标",type:"",el:"hs-input"}]},{key:"validConfig",visible:!1,title:"校验配置项",validConfig:[{prop:"autoPos",label:"是否自动定位到校验不通过的单元格",tooltip:"是否自动定位到校验不通过的单元格",type:"",el:"hs-switch"},{prop:"showMessage",label:"是否显示错误显示",type:"",el:"hs-switch"}]},{key:"editRules",visible:!1,title:"校验规则配置项",editRules:[{prop:"required",label:"是否必填",type:"",el:"hs-switch"},{prop:"min",label:"校验值最小长度",tooltip:"校验值最小长度(如果 type=number 则比较值大小)",type:"number",el:"hs-input-number"},{prop:"max",label:"校验值最大长度",tooltip:"校验值最大长度(如果 type=number 则比较值大小)",type:"number",el:"hs-input-number"},{prop:"type",label:"数据校验的类型",type:"",op:[{label:"数值",value:"number"},{label:"字符串",value:"string"},{label:"数组",value:"array"}],el:"hs-select",cel:"hs-option"},{prop:"pattern",label:"正则校验",type:"textarea",el:"hs-input"},{prop:"validator",label:'"自定义校验方法',tooltip:'自定义校验方法返回一个 Error 或者 Promise<new Error("提示消息")>',type:"textarea",el:"hs-input"},{prop:"message",label:"校验提示内容",tooltip:"校验提示内容(支持开启国际化)",type:"",el:"hs-input"}]},{key:"emptyRender",visible:!1,title:"空内容渲染配置项",emptyRender:[{prop:"name",label:"渲染器名称",type:"",el:"hs-input"}]},{key:"loadingConfig",visible:!1,title:"加载中配置项",loadingConfig:[{prop:"icon",label:"显示图标",type:"",el:"hs-input"},{prop:"text",label:"显示文字",type:"",el:"hs-input"}]},{key:"customConfig",visible:!1,title:"个性化信息配置项",customConfig:[{prop:"checkMethod",label:"自定义列是否允许列选中的方法",tooltip:"自定义列是否允许列选中的方法,该方法的返回值用来决定这一列的 checkbox 是否可以选中",type:"textarea",el:"hs-input"}],second_config:[{key:"storage",visible:!1,title:"是否启用缓存本地保存",storage:[{prop:"visible",label:"启用显示/隐藏列状态缓存",tooltip:"启用显示/隐藏列状态缓存",type:"",el:"hs-switch"},{prop:"resizable",label:"启用列宽状态缓存",type:"",el:"hs-switch"},{prop:"fixed",label:"启用固定列状态缓存",type:"",el:"hs-switch"}]}]},{key:"scrollX",visible:!1,title:"横向虚拟滚动配置",scrollX:[{prop:"enabled",label:"是否启用",el:"hs-switch"},{prop:"gt",label:"指定大于指定列时自动启动横向虚拟滚动",tooltip:"指定大于指定列时自动启动横向虚拟滚动,如果为 0 则总是启用;如果需要关闭,可以设置 enabled 为 false",type:"number",el:"hs-input-number"},{prop:"oSize",label:"指定每次渲染的数据偏移量",tooltip:"指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久(对于低性能浏览器可以设置大一点,减低渲染次数)",type:"number",el:"hs-input-number"},{prop:"scrollToLeftOnChange",label:"数据改变滚动条是否复位",tooltip:"当数据源被更改时,自动将横向滚动条滚动到左侧",type:"",el:"hs-switch"}]},{key:"scrollY",visible:!1,title:"纵向虚拟滚动配置",scrollY:[{prop:"enabled",label:"是否启用",type:"",el:"hs-switch"},{prop:"mode",label:"滚动模式",type:"",op:[{label:"默认",value:"default"},{label:"无限滚动",value:"wheel"}],el:"hs-select",cel:"hs-option"},{prop:"gt",label:"指定大于指定行时自动启动纵向虚拟滚动",tooltip:"指定大于指定行时自动启动纵向虚拟滚动,如果为 0 则总是启用;如果需要关闭,可以设置 enabled 为 false(注:启用纵向虚拟滚动之后将不能支持动态行高)",type:"number",el:"hs-input-number"},{prop:"oSize",label:"指定每次渲染的数据偏移量",tooltip:"指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久(对于低性能浏览器可以设置大一点,减低渲染次数)",type:"number",el:"hs-input-number"},{prop:"scrollToTopOnChange",label:"数据改变滚动条是否复位",tooltip:"当数据源被更改时,自动将纵向滚动条滚动到顶部",type:"",el:"hs-switch"}]}],htt=[{prop:"size",label:"尺寸",el:"hs-select",cel:"hs-option",op:[{label:"中等",value:"medium"},{label:"小号",value:"small"},{label:"迷你",value:"mini"}]},{prop:"loading",label:"是否加载中",el:"hs-switch"},{prop:"layouts",label:"自定义布局",type:"textarea",el:"hs-input"},{prop:"currentPage",label:"当前页",type:"number",el:"hs-input-number"},{prop:"pageSize",label:"每页大小",type:"number",el:"hs-input-number"},{prop:"total",label:"总条数",type:"number",el:"hs-input-number"},{prop:"pagerCount",label:"显示页码按钮的数量",type:"number",el:"hs-input-number"},{prop:"pageSizes",label:"每页大小选项列表",type:"textarea",el:"hs-input"},{prop:"align",label:"对齐方式",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"border",label:"带边框",el:"hs-switch"},{prop:"background",label:"带背景颜色",el:"hs-switch"},{prop:"perfect",label:"配套的样式",el:"hs-switch"},{prop:"className",label:"给分页附加 className",type:"textarea",el:"hs-input"},{prop:"autoHidden",label:"当只有一页时自动隐藏",el:"hs-switch"},{prop:"iconPrevPage",label:"自定义上一页图标",el:"hs-input"},{prop:"iconJumpPrev",label:"自定义向上跳页图标",el:"hs-input"},{prop:"iconJumpNext",label:"自定义向下跳页图标",el:"hs-input"},{prop:"iconnextPage",label:"自定义下一页图标",el:"hs-input"},{prop:"iconJumpMore",label:"自定义跳页显示图标",el:"hs-input"}],gtt=e.ref({type:null,field:"",title:"展示列名称",isSlot:!1,isApply:!0,isShow:!0,returnValueType:"",minWidth:"100",resizable:!1,visible:!0,sortType:"auto",filterMultiple:!0,cellType:"auto",treeNode:!1,filters:[],filterRender:{},titlePrefix:{},cellRender:{},editRender:{},contentRender:{}}),btt={seq:"序号",checkbox:"复选框",radio:"单选框",expand:"展开行",html:"HTML 标签"},ytt=e.ref([{prop:"type",label:"列的类型",tooltip:"列的类型(部分功能需要设置 columnConfig.useKey",type:"",el:"hs-select",cel:"hs-option",op:[{label:"序号",value:"seq"},{label:"复选框",value:"checkbox"},{label:"单选框",value:"radio"},{label:"展开行",value:"expand"},{label:"HTML 标签",value:"html"}]},{prop:"title",label:"列标题",type:"",tooltip:"列标题(支持开启国际化)",el:"hs-input"},{prop:"field",label:"列字段名",slotValue:"field",tooltip:"列字段名(注:属性层级越深,渲染性能就越差,例如:aa.bb.cc.dd.ee)",type:"",el:"hs-input"},{prop:"returnValueType",label:"返回值类型",el:"hs-select",cel:"hs-option",op:[{label:"String",value:"string"},{label:"Number",value:"number"},{label:"String|Number",value:"string|number"},{label:"Boolean",value:"boolean"}]},{prop:"isSlot",label:"是否自定义插槽",el:"hs-switch",tooltip:"下拉选择,自定义模板,选择的名称就是模板名称"},{prop:"el",label:"插槽模版",tooltip:"下拉选择组件类型,组件类型取自配置文件",el:"hs-select",cel:"hs-option",op:xP.value},{prop:"isApply",label:"是否启用",el:"hs-switch"},{prop:"isShow",label:"是否显示",el:"hs-switch"},{prop:"width",label:"列宽度",type:"",tooltip:"列宽度(如果为空则均匀分配剩余宽度,如果全部列固定了,可能会存在宽屏下不会铺满,可以配合 % 或者 min-width 布局)",el:"hs-input"},{prop:"minWidth",label:"最小列宽度",type:"",tooltip:"最小列宽度;会自动将剩余空间按比例分配",el:"hs-input"},{prop:"resizable",label:"是否允许调整列宽",type:"",tooltip:"列是否允许拖动列宽调整大小",el:"hs-switch"},{prop:"visible",label:"默认是否显示",type:"",el:"hs-switch"},{prop:"fixed",label:"列固定位置",tooltip:"将列固定在左侧或者右侧(注意:固定列应该放在左右两侧的位置)",type:"",el:"hs-select",cel:"hs-option",op:[{label:"不固定",value:""},{label:"固定左侧",value:"left"},{label:"固定右侧",value:"right"}]},{prop:"align",label:"列对齐方式",type:"",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"headerAlign",label:"表头列的对齐方式",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"footerAlign",label:"表尾列的对齐方式",el:"hs-select",cel:"hs-option",op:[{label:"左对齐",value:"left"},{label:"居中对齐",value:"center"},{label:"右对齐",value:"right"}]},{prop:"showOverflow",label:"当内容过长时显示为省略号",el:"hs-select",cel:"hs-option",op:[{label:"只显示省略号",value:"ellipsis"},{label:"显示原生title",value:"title"},{label:"显示tooltip提示",value:"tooltip"}]},{prop:"showHeaderOverflow",label:"当表头内容过长时显示为省略号",el:"hs-select",cel:"hs-option",op:[{label:"只显示省略号",value:"ellipsis"},{label:"显示原生title",value:"title"},{label:"显示tooltip提示",value:"tooltip"}]},{prop:"showFooterOverflow",label:"当表尾内容过长时显示为省略号",el:"hs-select",cel:"hs-option",op:[{label:"只显示省略号",value:"ellipsis"},{label:"显示原生title",value:"title"},{label:"显示tooltip提示",value:"tooltip"}]},{prop:"className",label:"给单元格附加 className",type:"textarea",el:"hs-input"},{prop:"headerClassName",label:"给表头的单元格附加 className",type:"textarea",el:"hs-input"},{prop:"footerClassName",label:"给表尾的单元格附加 className",type:"textarea",el:"hs-input"},{prop:"formatter",label:"格式化显示内容",type:"textarea",el:"hs-input"},{prop:"sortable",label:"是否允许列排序",tooltip:"数据排序,是否允许列排序",type:"",el:"hs-switch"},{prop:"sortBy",label:"指定排序字段",tooltip:"数据排序,只对 sortable 有效,指定排序的字段(当值 formatter 格式化后,可以设置该字段,使用值进行排序)",type:"textarea",el:"hs-input"},{prop:"sortType",label:"排序的字段类型",tooltip:"数据排序,排序的字段类型,比如字符串转数值等",type:"",el:"hs-select",cel:"hs-option",op:[{label:"auto",value:"auto"},{label:"数值",value:"number"},{label:"字符串",value:"string"}]},{prop:"filterMultiple",label:"筛选是否允许多选",tooltip:"数据筛选,只对 filters 有效,筛选是否允许多选",type:"",el:"hs-switch"},{prop:"filterMethod",label:"列的筛选方法",tooltip:"数据筛选,只对 filters 有效,列的筛选方法,该方法的返回值用来决定该行是否显示",type:"textarea",el:"hs-input"},{prop:"filterResetMethod",label:"自定义筛选重置方法",tooltip:"数据筛选,只对 filters 有效,自定义筛选重置方法",type:"textarea",el:"hs-input"},{prop:"filterRecoverMethod",label:"自定义筛选复原方法",tooltip:"数据筛选,只对 filters 有效,自定义筛选复原方法(使用自定义筛选时可能会用到)",type:"textarea",el:"hs-input"},{prop:"cellType",label:"单元格值类型",tooltip:"只对特定功能有效,单元格值类型(例如:导出数据类型设置)",type:"",el:"hs-select",cel:"hs-option",op:[{label:"默认自动转换",value:"auto"},{label:"数值",value:"number"},{label:"字符串",value:"string"}]},{prop:"treeNode",label:"是否指定为树节点",tooltip:"只对 treeConfig 配置时有效,指定为树节点",type:"",el:"hs-switch"},{prop:"params",label:"额外的参数",tooltip:"额外的参数(可以用来存放一些私有参数)",type:"",el:"hs-input"},{prop:"colId",label:"自定义列的唯一主键",tooltip:"自定义列的唯一主键(注:列主键必须确保唯一,操作不正确将导致出现问题)",type:"",el:"hs-input"}]),NP={title:[{required:!0,message:"请输入列标题"}],field:[{required:!0,message:"请输入列字段名"}],returnValueType:[{required:!0,message:"请输入返回值类型"}]},_tt=e.ref([{key:"filterRender",visible:!1,title:"筛选渲染器配置项",filterRender:[{prop:"name",label:"渲染器名称",type:"",el:"hs-input"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"",el:"hs-input"},{prop:"events",label:"渲染组件的事件(请查看自定义的 Events)",type:"textarea",el:"hs-input"},{prop:"content",label:"渲染组件的内容(仅用于特殊组件)",type:"",el:"hs-input"}]},{key:"titlePrefix",visible:!1,title:"标题前缀图标配置项",titlePrefix:[{prop:"content",label:"提示消息",tooltip:"提示消息(支持开启国际化)",el:"hs-input"},{prop:"useHTML",label:"是否显示为HTML标签",tooltip:"是否显示为HTML标签(动态渲染任意 HTML 是非常危险的,很容易导致 XSS 攻击,请确保内容是可信的)",type:"",el:"hs-input"},{prop:"icon",label:"自定义图标",type:"",el:"hs-input"}]},{key:"cellRender",visible:!1,title:"默认的渲染器配置项",cellRender:[{prop:"name",label:"渲染器名称",el:"hs-input"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"textarea",el:"hs-input"},{prop:"options",label:"下拉选项列表",tooltip:"只对 name=select 有效,下拉选项列表",type:"textarea",el:"hs-input"},{prop:"optionProps",label:"下拉选项属性参数配置",tooltip:"只对 name=select 有效,下拉选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"optionGroups",label:"下拉分组选项列表",tooltip:"只对 name=select 有效,下拉分组选项列表",type:"textarea",el:"hs-input"},{prop:"optionGroupProps",label:"下拉分组选项属性参数配置",tooltip:"只对 name=select 有效,下拉分组选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"events",label:"渲染组件的事件",tooltip:"渲染组件的事件(请查看自定义的 Events)",type:"textarea",el:"hs-input"},{prop:"content",label:"渲染组件的内容(仅用于特殊组件)",el:"hs-input"}]},{key:"editRender",visible:!1,title:"可编辑渲染器配置项",editRender:[{prop:"name",label:"渲染器名称",el:"hs-input"},{prop:"enabled",label:"是否启用",el:"hs-switch"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"textarea",el:"hs-input"},{prop:"attrs",label:"渲染的属性",tooltip:"渲染的属性(请查看自定义的 Attribute)",type:"textarea",el:"hs-input"},{prop:"options",label:"下拉选项列表",tooltip:"只对 name=select 有效,下拉选项列表",type:"textarea",el:"hs-input"},{prop:"optionProps",label:"下拉选项属性参数配置",tooltip:"只对 name=select 有效,下拉选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"optionGroups",label:"下拉分组选项列表",tooltip:"只对 name=select 有效,下拉分组选项列表",type:"textarea",el:"hs-input"},{prop:"optionGroupProps",label:"下拉分组选项属性参数配置",tooltip:"只对 name=select 有效,下拉分组选项属性参数配置",type:"textarea",el:"hs-input"},{prop:"events",label:"渲染组件的事件(请查看自定义的 Events)",type:"",default:"{row,rowIndex,$rowIndex,column,columnIndex,$columnIndex}, ...[自定义的 arguments]",param:"",el:"hs-input"},{prop:"content",label:"渲染组件的内容",tooltip:"渲染组件的内容(仅用于特殊组件)",type:"",el:"hs-input"},{prop:"autofocus",label:"指定聚焦的选择器",tooltip:"如果是自定义渲染可以指定聚焦的选择器,例如 .my-input",type:"",el:"hs-input"},{prop:"autoselect",label:"自动选中内容",tooltip:"是否在激活编辑之后自动选中输入框内容",type:"",el:"hs-input"},{prop:"defaultValue",label:"默认值",tooltip:"默认值(插入数据时列的默认值)",type:"",el:"hs-input"},{prop:"immediate",label:"输入值实时更新",tooltip:"输入值实时同步更新(默认情况下单元格编辑的值只会在被触发时同步,如果需要实时同步可以设置为 true)",type:"",el:"hs-input"},{prop:"placeholder",label:"单元格占位符",tooltip:"单元格占位符,但单元格为空值时显示的占位符",type:"",el:"hs-input"}]},{key:"contentRender",visible:!1,title:"内容渲染配置项",contentRender:[{prop:"name",label:"渲染器名称",type:"",el:"hs-input"},{prop:"props",label:"渲染的参数",tooltip:"渲染的参数(请查看自定义的 Props)",type:"textarea",el:"hs-input"},{prop:"attrs",tooltip:"渲染的属性",label:"渲染的属性(请查看自定义的 Attribute)",type:"textarea",el:"hs-input"},{prop:"events",label:"渲染组件的事件",tooltip:"渲染组件的事件(请查看自定义的 Events)",type:"textarea",el:"hs-input"}]}]),Ctt=e.ref({key:"filters",visible:!1,title:"配置数据筛选条件",filters:[{prop:"label",label:"显示的值",type:"",el:"hs-input"},{prop:"value",label:"实际的值",type:"",el:"hs-input"},{prop:"checked",label:"默认是否选中",type:"",el:"hs-switch"},{prop:"resetValue",label:"重置时的默认值",type:"textarea",el:"hs-input"},{prop:"data",label:"自定义渲染的数据值(当使用自定义模板时可能会用到)",type:"textarea",el:"hs-input"}]});let yg=e.ref({id:"",sort:0,data:gtt.value,btnData:[]});const xtt={list:ytt.value,second_config:_tt.value,filterConfig:Ctt.value,rules:{list:NP}};let FC=e.ref({id:"",data:{}}),wtt=e.ref({code:{visible:!1,subTitle:"表格配置代码",class:"font-bold my-3",iconSize:20},table:{visible:!1,subTitle:"表格配置",class:"font-bold my-3",iconSize:20},tableItem:{visible:!0,subTitle:"表格元素配置项集合",class:"font-bold my-3",iconSize:20}}),Ett={baseTableConfig:vtt,baseVisible:!1,pageVisible:!1,tableAttrConfig:mtt,tablePageConfig:htt},Nh={id:{isShow:!1,title:"id",returnValueType:"string"}};const ktt={name:"按钮名称",key:"",isApply:!0,isSlot:!1,isShow:!0,size:"default",btnIcon:"",type:"primary",plain:!1,text:!1,bg:!1,link:!1,round:!1,circle:!1,loading:!1,"loading-icon":"Loading",disabled:!1,autofocus:!1,"native-type":"button",dark:!1,tag:"button"},Stt={name:[{required:!0,message:"请输入按钮名称"}],key:[{required:!0,message:"请输入按钮key值"}]},TP={title:{subTitle:"按钮配置"},visible:!0,list:[{prop:"name",label:"按钮名称",el:"hs-input",tooltips:"按钮名称"},{prop:"key",label:"按钮key值",el:"hs-input",slotValue:"key",tooltips:"按钮key值"},{prop:"isApply",label:"是否启用",el:"hs-switch",tooltips:"是否启用"},{prop:"isSlot",label:"使用启用插槽",el:"hs-switch"},{prop:"isShow",label:"是否显示",el:"hs-switch",tooltips:"是否显示"},{prop:"color",label:"自定义颜色",el:"hs-color-picker"},{prop:"textColor",label:"按钮文本色",el:"hs-color-picker"},{prop:"btnIcon",label:"按钮图标",el:"hs-input",slotValue:"btnIcon"},{prop:"iconPosition",label:"图标位置",el:"hs-select",cel:"hs-option",op:[{label:"左边",value:"left"},{label:"右边",value:"right"}]},{prop:"fnName",label:"方法名称",el:"hs-input",type:"textarea"},{prop:"size",label:"尺寸",el:"hs-select",cel:"hs-option",op:[{label:"大",value:"large"},{label:"默认",value:"default"},{label:"小",value:"small"}]},{prop:"type",label:"类型",el:"hs-select",cel:"hs-option",op:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}]},{prop:"plain",label:"朴素按钮",el:"hs-switch",tooltips:"是否为朴素按钮"},{prop:"text",label:"文字按钮",el:"hs-switch",tooltips:"是否为文字按钮"},{prop:"bg",label:"文字按钮背景颜色",el:"hs-switch",tooltips:"是否显示文字按钮背景颜色"},{prop:"link",label:"链接按钮",el:"hs-switch",tooltips:"是否为链接按钮"},{prop:"round",label:"圆角按钮",el:"hs-switch",tooltips:"是否为圆角按钮"},{prop:"circle",label:"圆形按钮",el:"hs-switch",tooltips:"是否为圆形按钮"},{prop:"loading",label:"加载状态",el:"hs-switch",tooltips:"是否为加载中状态"},{prop:"loading-icon",label:"加载状态图标",el:"hs-input",tooltips:"自定义加载中状态图标组件"},{prop:"disabled",label:"是否禁用",el:"hs-switch",tooltips:"按钮是否为禁用状态"},{prop:"icon",label:"图标组件",el:"hs-input",tooltips:"图标组件"},{prop:"autofocus",label:"自动聚焦",el:"hs-switch",tooltips:"原生 autofocus 属性"},{prop:"native-type",label:"原生 type 属性",el:"hs-select",cel:"hs-option",op:[{label:"按钮",value:"button"},{label:"提交",value:"submit"},{label:"重置",value:"reset"}],tooltips:"原生 type 属性"},{prop:"auto-insert-space",label:"中文字符之间插入空格",el:"hs-switch",tooltips:"自动在两个中文字符之间插入空格"},{prop:"color",label:"按钮颜色",el:"hs-input",tooltips:"自定义按钮颜色, 并自动计算 hover 和 active 触发后的颜色"},{prop:"dark",label:"dark 模式",el:"hs-switch",tooltips:"dark 模式, 意味着自动设置 color 为 dark 模式的颜色"},{prop:"tag",label:"自定义元素标签",el:"hs-input",tooltips:"自定义元素标签"}],rules:Stt},DP={id:"",data:ktt,sort:0},zC={id:"",data:{}},Btt=ap(),Ntt=zx();function Ttt(t,n){let r=e.ref(t.current),o=e.ref(Ke.cloneDeep(xtt)),a=e.ref(Ke.cloneDeep(t.current)),l=e.ref(Ke.cloneDeep(t.configList).map(y=>y.data.field));const i=()=>{let y=Ke.cloneDeep(NP);return Ke.keys(y).forEach(C=>{let w=y[C].map(b=>(b.required=!a.value.data.type,b));y[C]=w}),y};e.watch(()=>t.current,y=>{y&&y.id!=a.value.id&&(r.value=y,a.value=Ke.cloneDeep(y),l.value=Ke.cloneDeep(t.configList).map(C=>C.data.field),o.value.rules.list=i())},{deep:!0}),e.watch(()=>a.value.data,y=>{y&&(o.value.list=o.value.list.map(C=>(C.prop=="el"&&(C.show=!!a.value.data.isSlot,C.show||(a.value.data.el="")),C)),o.value.rules.list=i())},{deep:!0,immediate:!0});const u=e.ref({labelWidth:120,span:24,style:"padding:5px 10px"}),s=e.ref(!1),c=async function(){var y;try{if(!await n.value.getSubmitData())return;let w=(y=r.value)==null?void 0:y.data.field,b=a.value.data.field,x=Ke.cloneDeep(l.value),E=x.findIndex(S=>S==w);if(x.splice(E,1),b&&Ke.includes(x,b))return ir.warning("列字段名重复,请修改");r.value=Object.assign(r.value||{},Ke.cloneDeep(a.value));let k=wo.get("CURRENT_SYSTEM");if(!a.value.data.field_id){let S={field_code:a.value.data.field,field_name:a.value.data.title,field_type:"3",json_data:JSON.stringify(a.value.data),project_code:k.project_code};Btt.postSaveFieldPool4Config(S)}if(a.value.btnData.length>0){let S=[];if(a.value.btnData.forEach(B=>{B.data.field_id||S.push({btn_name:B.data.key,btn_label:B.data.name,btn_icon:B.data.btnIcon,json_data:JSON.stringify(B.data),project_code:k.project_code})}),S.length==0)return;Ntt.postSaveBtnConfigBatch4Config({btnList:S})}}catch(C){console.log("er",C)}},d=()=>{var y,C;(C=(y=a.value)==null?void 0:y.data.filters)==null||C.push({label:"",value:"",checked:!1,resetValue:"",data:""})},f=y=>{let C=a.value.data.filters[y];da.confirm(`确认要删除该${C.label}配置吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{a.value.data.filters.splice(y,1),a.value.filterConfig.splice(y,1),ir.success("删除成功")}).catch(w=>{console.log("err",w)})},p=()=>{let y=Ke.cloneDeep(DP);y.id=new Date().getTime().toString(),a.value.btnData.push(y)},m=y=>{let C=a.value.btnData[y];da.confirm(`确认要删除该${C.name?"【"+C.name+"】":""}按钮配置吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{a.value.btnData.splice(y,1),ir.success("删除成功")}).catch(w=>{console.log("err",w)})};let v=e.ref({url:"/scmp-web/pri/field_config/get_field_pool_list",params:{field_type:"3",field_code:"",project_code:""},qry_key:"field_code"});return e.onMounted(()=>{let y=wo.get("CURRENT_SYSTEM"),C=v.value.params;C.project_code=y.project_code||"",v.value=Ke.assign(v.value,{params:C})}),{parentConfig:u,visible:s,tableItemConfig:a,tableDataConfig:o,requestData:v,onChangeItem:y=>{a.value.data=Ke.assign(a.value.data,JSON.parse(y.json_data),{field_id:y.id})},saveData:c,addFilterItem:d,deleteFilterConfig:f,addBtnItem:p,deleteBtnItem:m}}const Dtt={class:"h-full"},Vtt={style:{height:"94%"},class:"overflow-y-auto"},$tt=e.createElementVNode("div",{class:"bg-red-200 py-1 px-3 rounded"},"新增数据筛选配置",-1),Ott=[$tt],Att=e.createElementVNode("div",{class:"bg-red-200 py-1 px-3 rounded"},"新增按钮配置",-1),Mtt=[Att],Rtt={class:"text-center",style:{height:"40px"}},Itt=e.defineComponent({__name:"hsAttrTable",props:{current:{type:Object,default:()=>{}},configList:{type:Array,default:()=>[]}},setup(t){const n=t;let r=e.ref(),o=e.ref(Ke.cloneDeep(TP));const{parentConfig:a,visible:l,tableItemConfig:i,tableDataConfig:u,requestData:s,onChangeItem:c,addFilterItem:d,saveData:f,deleteFilterConfig:p,addBtnItem:m,deleteBtnItem:v}=Ttt(n,r);return(g,y)=>{var x,E,k;const C=e.resolveComponent("bc-auto-complete"),w=e.resolveComponent("svgIcon"),b=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Dtt,[e.createElementVNode("div",Vtt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(l),"onUpdate:modelValue":y[0]||(y[0]=S=>e.isRef(l)?l.value=S:null),expandConfig:{subTitle:"表格属性"}},null,8,["modelValue"])),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{parentConfig:e.unref(a),data:(x=e.unref(i))==null?void 0:x.data,config:e.unref(u).list,ref_key:"baseTableRef",ref:r,rules:e.unref(u).rules.list||{}},{field:e.withCtx(()=>[e.createVNode(C,{url:e.unref(s).url,qry_key:e.unref(s).qry_key,params:e.unref(s).params,type:"table",modelValue:e.unref(i).data.field,"onUpdate:modelValue":y[1]||(y[1]=S=>e.unref(i).data.field=S),onChange:e.unref(c)},null,8,["url","qry_key","params","modelValue","onChange"])]),_:1},8,["parentConfig","data","config","rules"])),[[e.vShow,e.unref(l)]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((E=e.unref(u))==null?void 0:E.second_config,(S,B)=>{var $;return e.openBlock(),e.createElementBlock("div",{key:B},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:S.visible,"onUpdate:modelValue":D=>S.visible=D,expandConfig:{subTitle:S.title}},null,8,["modelValue","onUpdate:modelValue","expandConfig"])),S.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,parentConfig:e.unref(a),config:S[S.key],data:($=e.unref(i))==null?void 0:$.data[S.key]},null,8,["parentConfig","config","data"])):e.createCommentVNode("",!0)])}),128)),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((k=e.unref(i))==null?void 0:k.data.filters,(S,B)=>(e.openBlock(),e.createElementBlock("div",{key:B},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:S.visible,"onUpdate:modelValue":$=>S.visible=$,expandConfig:{subTitle:"筛选配置项"+(S.label?"【"+S.label+"】":""),rightSlot:!0}},{default:e.withCtx(()=>[e.createVNode(w,{onClick:$=>e.unref(p)(B),color:"#F56C6C",class:"pt-1",name:"ele-RemoveFilled",size:"18"},null,8,["onClick"])]),_:2},1032,["modelValue","onUpdate:modelValue","expandConfig"])),S.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,parentConfig:e.unref(a),config:e.unref(u).filterConfig.filters,data:S},null,8,["parentConfig","config","data"])):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("div",{class:"flex align-center justify-center p-2",onClick:y[2]||(y[2]=(...S)=>e.unref(d)&&e.unref(d)(...S))},Ott)]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).btnData,(S,B)=>(e.openBlock(),e.createElementBlock("div",{key:B},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:S.visible,"onUpdate:modelValue":$=>S.visible=$,expandConfig:{subTitle:"按钮配置"+(S.data.name?"【"+S.data.name+"】":""),rightSlot:!0}},{default:e.withCtx(()=>[e.createVNode(w,{onClick:$=>e.unref(v)(B),color:"#F56C6C",class:"pt-1",name:"ele-RemoveFilled",size:"18"},null,8,["onClick"])]),_:2},1032,["modelValue","onUpdate:modelValue","expandConfig"])),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(BP),{ref_for:!0,ref:"btnItemRef",modelValue:S.data,"onUpdate:modelValue":$=>S.data=$,config:e.unref(o)},null,8,["modelValue","onUpdate:modelValue","config"])),[[e.vShow,S.visible]])]))),128)),e.createElementVNode("div",{class:"flex align-center justify-center p-2",onClick:y[3]||(y[3]=(...S)=>e.unref(m)&&e.unref(m)(...S))},Mtt)])]),e.createElementVNode("div",Rtt,[e.createVNode(b,{onClick:e.unref(f),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),MN=ap();function Ptt(t,n){let r=e.ref(!0);e.watch(()=>n.value,()=>{t.value="",r.value=!0});const o=()=>{let i=wo.get("CURRENT_SYSTEM"),u=Ke.cloneDeep(yg.value);u.id=new Date().getTime().toString(),u.data=Ke.assign(u.data,{type:"seq",title:"",minWidth:50,width:50}),Ke.assign(n.value,{baseData:Ke.assign(Ke.cloneDeep(ptt.value),{id:new Date().getTime().toString(),tableName:"表格配置名称",proxy:i.project_url}),tableConfig:[u]})},a=(i,u,s,c)=>{let d=i.map(f=>f[s]);MN.getPoolByFieldMap({fieldCodes:d,field_type:"3",project_code:u&&u.project_code}).then(f=>{i.forEach(p=>{var v,g;let m=(v=n.value)==null?void 0:v.tableConfig.map(y=>y.data.field);if(!Ke.includes(m,p[s])){let y=Ke.cloneDeep(yg.value);if(y.id=p[s]+new Date().getTime().toString(),p[s]&&(y.data.field=p[s],y.data.title=p[c]||"展示列名称"),f.code==1&&f.data&&f.data[p[s]]){let C=JSON.parse(f.data[p[s]].json_data);y.data=Ke.assign(y.data,C,{field_id:f.data[p[s]].id})}if(Ke.keys(Nh).find(C=>C==y.data.field)){let C=Nh[y.data.field];y.data=Ke.assign(y.data,C)}(g=n.value)==null||g.tableConfig.push(y)}})})};return{parseTable:()=>{var i,u;if(t.value){let s=wo.get("CURRENT_SYSTEM");if(!r.value){let c=JSON.parse(t.value);(i=n.value)!=null&&i.baseData.id||o(),console.log("parseApi.value",c),a(c,s,"id","label");return}MN.getFieldByTable({table_name:t.value,project_code:s&&s.project_code,field_type:"3"}).then(c=>{var d;if(c.code!=1)return ir.warning(c.msg);if(c.data.length>0){(d=n.value)!=null&&d.baseData.id||o(),c.data.forEach(f=>{var m,v;let p=Ke.map((m=n.value)==null?void 0:m.tableConfig,g=>g.data.field);if(!Ke.includes(p,f.column_name)){let g=Ke.cloneDeep(yg.value);if(g.id=f.column_name+new Date().getTime().toString(),f.json_data){let y=JSON.parse(f.json_data);g.data=Ke.assign(g.data,y,{field_id:f.field_id})}else g.data.field=f.column_name,g.data.title=f.column_comment||"展示列名称";Ke.keys(Nh).find(y=>y==f.column_name)&&(g.data=Ke.assign(g.data,Nh[f.column_name])),(v=n.value)==null||v.tableConfig.push(g)}});return}})}(u=n.value)!=null&&u.baseData.id||o()},parseName:r}}const Ftt={class:"flex flex-row"},ztt=e.defineComponent({__name:"hsTableParse",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){let n=e.ref(""),r=e.useModel(t,"modelValue");const{parseTable:o,parseName:a}=Ptt(n,r);return e.onMounted(()=>{n.value=""}),(l,i)=>{const u=e.resolveComponent("hs-switch"),s=e.resolveComponent("hs-input"),c=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createTextVNode(" 是否解析表名:"),e.createVNode(u,{modelValue:e.unref(a),"onUpdate:modelValue":i[0]||(i[0]=d=>e.isRef(a)?a.value=d:null)},null,8,["modelValue"]),e.createElementVNode("div",Ftt,[e.createVNode(s,{class:"basis-1/4 mr-2",modelValue:e.unref(n),"onUpdate:modelValue":i[1]||(i[1]=d=>e.isRef(n)?n.value=d:n=d),placeholder:"请输入解析表名"},null,8,["modelValue"]),e.createVNode(c,{onClick:e.unref(o),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)?"一键解析":"初始化配置"),1)]),_:1},8,["onClick"])])],64)}}}),Ltt=e.defineComponent({__name:"hsRecursionConfig",props:e.mergeModels({config:{type:Array,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue");return(r,o)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.config,(a,l)=>(e.openBlock(),e.createElementBlock("div",{key:l},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{class:"pl-4",modelValue:a.visible,"onUpdate:modelValue":i=>a.visible=i,expandConfig:{subTitle:a.title}},null,8,["modelValue","onUpdate:modelValue","expandConfig"])),a.visible&&a.second_config?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.second_config,(i,u)=>(e.openBlock(),e.createElementBlock("div",{key:u},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{class:"pl-8",modelValue:i.visible,"onUpdate:modelValue":s=>i.visible=s,expandConfig:{subTitle:i.title}},null,8,["modelValue","onUpdate:modelValue","expandConfig"])),i.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,data:e.unref(Ke).get(e.unref(Ke).get(n.value,a.key),i.key),config:i[i.key]},null,8,["data","config"])):e.createCommentVNode("",!0)]))),128)):e.createCommentVNode("",!0),a.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:1,data:e.unref(Ke).get(n.value,a.key,{}),config:a[a.key]},null,8,["data","config"])):e.createCommentVNode("",!0)]))),128))}}),Htt=e.defineComponent({__name:"hsTableConfig",props:e.mergeModels({config:{type:Object,default:()=>({baseTableConfig:[],baseVisible:!1,tableAttrConfig:[],tablePageConfig:[],pageVisible:!1})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t;let r=e.ref();e.watch(()=>n.config,a=>{r.value=a},{deep:!0,immediate:!0});let o=e.useModel(t,"modelValue");return(a,l)=>{var i,u,s,c,d,f,p;return e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{class:"pl-4",modelValue:e.unref(r).baseVisible,"onUpdate:modelValue":l[0]||(l[0]=m=>e.unref(r).baseVisible=m),expandConfig:{subTitle:"表格基本配置"}},null,8,["modelValue"])),e.unref(r).baseVisible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,data:(i=e.unref(o))==null?void 0:i.baseData,config:e.unref(r).baseTableConfig},null,8,["data","config"])):e.createCommentVNode("",!0),(s=(u=e.unref(o))==null?void 0:u.baseData)!=null&&s.is_apply_page?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{key:1,class:"pl-4",modelValue:e.unref(r).pageVisible,"onUpdate:modelValue":l[1]||(l[1]=m=>e.unref(r).pageVisible=m),expandConfig:{subTitle:"表格分页配置"}},null,8,["modelValue"])):e.createCommentVNode("",!0),e.unref(r).pageVisible&&((d=(c=e.unref(o))==null?void 0:c.baseData)!=null&&d.is_apply_page)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:2,data:(p=(f=e.unref(o))==null?void 0:f.baseData)==null?void 0:p.table_page_data,config:e.unref(r).tablePageConfig},null,8,["data","config"])):e.createCommentVNode("",!0),e.unref(o)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ltt),{key:3,config:e.unref(r).tableAttrConfig,modelValue:e.unref(o).baseData,"onUpdate:modelValue":l[2]||(l[2]=m=>e.unref(o).baseData=m)},null,8,["config","modelValue"])):e.createCommentVNode("",!0)],64)}}});function Wtt(t,n,r){const o=i=>{var s;let u=i.id==((s=n.current)==null?void 0:s.id)?Ke.cloneDeep(FC.value):i;t("chose",u)};return{choseTagItem:o,appendField:()=>{let i=Ke.cloneDeep(yg.value);if(i.id=new Date().getTime().toString(),(r.value.tableConfig.findIndex(c=>c.id==i.id)||-1)>-1)return ir.warning("字段名称重复");r.value.tableConfig.push(i);let s=r.value.tableConfig[r.value.tableConfig.length-1];o(s)},deleteTagItem:i=>{da.confirm(`确定删除“${i.data&&i.data.title}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ke.remove(r.value.tableConfig,i),o(i),ir.success("删除成功")}).catch(u=>{console.log("err",u)})}}}const jtt=["onClick"],qtt=["onClick"],Utt={class:"p-2"},Ktt=e.defineComponent({__name:"hsTableConfigList",props:e.mergeModels({current:{type:Object,default:()=>{}}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["chose"],["update:modelValue"]),setup(t,{emit:n}){const r=e.ref(),o=n,a=e.useModel(t,"modelValue"),l=t,{appendField:i,deleteTagItem:u,choseTagItem:s}=Wtt(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(ud),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value.tableConfig,"onUpdate:modelValue":d[1]||(d[1]=f=>a.value.tableConfig=f),animation:150},{default:e.withCtx(()=>{var f;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((f=a.value)==null?void 0:f.tableConfig,p=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:p.id,onClick:m=>e.unref(s)(p)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==p.id?"bg-blue-200":""])},e.toDisplayString(p.data&&p.data.title||p.data.type&&e.unref(btt)[p.data.type]||""),3),t.current.id==p.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(m=>e.unref(u)(p),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,qtt)):e.createCommentVNode("",!0)],8,jtt))),128)),e.createElementVNode("div",Utt,[e.createElementVNode("div",{onClick:d[0]||(d[0]=(...p)=>e.unref(i)&&e.unref(i)(...p)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]}),_:1},8,["modelValue"])]))}}),Gtt=zr(Ktt,[["__scopeId","data-v-d871a518"]]),Ytt={class:"mx-auto flex flex-row h-full"},Xtt={class:"flex-1 grow overflow-y-auto"},Ztt={key:0},Jtt={key:0,class:"flex-none basis-1/4 ml-4"},Qtt=e.defineComponent({__name:"hsTablePanel",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){let n=e.ref(Ke.cloneDeep(wtt.value));const r=e.useModel(t,"modelValue"),o=e.ref(Ke.cloneDeep(Ett));let a=Ke.cloneDeep(FC),l=e.ref("");e.watch(()=>r.value,u=>{l.value!=(u==null?void 0:u.id)&&(a.value=Ke.cloneDeep(FC),l.value=(u==null?void 0:u.id)||"")},{immediate:!0});const i=u=>{a.value=u};return(u,s)=>{var c,d,f;return e.openBlock(),e.createElementBlock("div",Ytt,[e.createElementVNode("div",Xtt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(n).code.visible,"onUpdate:modelValue":s[0]||(s[0]=p=>e.unref(n).code.visible=p),expandConfig:e.unref(n).code},null,8,["modelValue","expandConfig"])),e.unref(n).code.visible?(e.openBlock(),e.createElementBlock("div",Ztt,e.toDisplayString(r.value),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ztt),{modelValue:r.value,"onUpdate:modelValue":s[1]||(s[1]=p=>r.value=p)},null,8,["modelValue"])),(c=r.value)!=null&&c.baseData.id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(n).table.visible,"onUpdate:modelValue":s[2]||(s[2]=p=>e.unref(n).table.visible=p),expandConfig:e.unref(n).table},null,8,["modelValue","expandConfig"])),e.unref(n).table.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Htt),{key:0,modelValue:r.value,"onUpdate:modelValue":s[3]||(s[3]=p=>r.value=p),config:o.value},null,8,["modelValue","config"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(n).tableItem.visible,"onUpdate:modelValue":s[4]||(s[4]=p=>e.unref(n).tableItem.visible=p),expandConfig:e.unref(n).tableItem},null,8,["modelValue","expandConfig"])),e.unref(n).tableItem.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Gtt),{key:1,modelValue:r.value,"onUpdate:modelValue":s[5]||(s[5]=p=>r.value=p),current:e.unref(a),onChose:i},null,40,["modelValue","current"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),(((d=r.value)==null?void 0:d.tableConfig)||[]).length>0&&e.unref(a).id?(e.openBlock(),e.createElementBlock("div",Jtt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Itt),{current:e.unref(a),configList:(f=r.value)==null?void 0:f.tableConfig},null,8,["current","configList"]))])):e.createCommentVNode("",!0)])}}});function ent(t,n,r){const o=i=>{var s;let u=i.id==((s=n.current)==null?void 0:s.id)?Ke.cloneDeep(zC):i;t("chose",u)};return{choseTagItem:o,appendField:()=>{let i=Ke.cloneDeep(DP);i.id=new Date().getTime().toString(),r.value.push(i);let u=r.value[r.value.length-1];o(u)},deleteTagItem:i=>{da.confirm(`确定删除“${i.data&&i.data.name}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ke.remove(r.value||[],i),o(i),ir.success("删除成功")}).catch(u=>{console.log("err",u)})}}}const tnt=["onClick"],nnt=["onClick"],rnt={class:"p-2"},ont=e.defineComponent({__name:"hsBtnConfigList",props:e.mergeModels({current:{type:Object,default(){return{}}}},{modelValue:[],modelModifiers:{}}),emits:e.mergeModels(["chose"],["update:modelValue"]),setup(t,{emit:n}){const r=e.ref(),o=n,a=e.useModel(t,"modelValue",[]),l=t,{appendField:i,deleteTagItem:u,choseTagItem:s}=ent(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(ud),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value,"onUpdate:modelValue":d[1]||(d[1]=f=>a.value=f),animation:150},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,f=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:f.id,onClick:p=>e.unref(s)(f)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==f.id?"bg-blue-200":""])},e.toDisplayString(f.data&&f.data.name),3),t.current.id==f.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(p=>e.unref(u)(f),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,nnt)):e.createCommentVNode("",!0)],8,tnt))),128)),e.createElementVNode("div",rnt,[e.createElementVNode("div",{onClick:d[0]||(d[0]=(...f)=>e.unref(i)&&e.unref(i)(...f)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]),_:1},8,["modelValue"])]))}}),ant=zr(ont,[["__scopeId","data-v-1bcdcd36"]]),lnt=zx();function int(t,n){let r=e.ref(t.current),o=e.ref(Ke.cloneDeep(t.current));e.watch(()=>t.current,u=>{u&&u.id!=o.value.id&&(r.value=u,o.value=Ke.cloneDeep(u))},{deep:!0});const a=e.ref(Ke.cloneDeep(TP));return{visible:e.ref(!1),btnItemConfig:o,btnConfig:a,saveData:async function(){var u;try{if(!await n.value.getSubmitData())return;let c=(u=r.value)==null?void 0:u.data.key,d=o.value.data.key,f=Ke.map(t.btnList,v=>v.data.key);if(Ke.includes(f,d)&&d!=c)return ir.warning("按钮key值重复");if(r.value=Object.assign(r.value||{},Ke.cloneDeep(o.value)),o.value.data.field_id)return;let p=wo.get("CURRENT_SYSTEM"),m={btn_name:o.value.data.key,btn_label:o.value.data.name,btn_icon:o.value.data.btnIcon,json_data:JSON.stringify(o.value.data),project_code:p.project_code};lnt.postSaveBtnConfig4Config(m)}catch(s){console.log("er",s)}}}}const snt={class:"bg-blue-200 h-full flex flex-col"},unt={style:{height:"calc(100% -50px)"},class:"overflow-y-auto flex-1"},cnt={key:0},dnt={class:"text-center grow-0",style:{height:"50rpx"}},fnt=e.defineComponent({__name:"hsAttrBtn",props:{current:{type:Object,default(){return{}}},btnList:{type:Array,default:()=>[]}},setup(t){const n=t,r=e.ref(),{visible:o,btnItemConfig:a,btnConfig:l,saveData:i}=int(n,r);return(u,s)=>{const c=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",snt,[e.createElementVNode("div",unt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(o),"onUpdate:modelValue":s[0]||(s[0]=d=>e.isRef(o)?o.value=d:null),expandConfig:{subTitle:"按钮项代码"}},null,8,["modelValue"])),e.unref(o)?(e.openBlock(),e.createElementBlock("div",cnt,e.toDisplayString(e.unref(a)),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(xo),{modelValue:e.unref(l).visible,"onUpdate:modelValue":s[1]||(s[1]=d=>e.unref(l).visible=d),expandConfig:e.unref(l).title},null,8,["modelValue","expandConfig"])),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(BP),{ref_key:"btnItemRef",ref:r,modelValue:e.unref(a).data,"onUpdate:modelValue":s[2]||(s[2]=d=>e.unref(a).data=d),config:e.unref(l)},null,8,["modelValue","config"])),[[e.vShow,e.unref(l).visible]])]),e.createElementVNode("div",dnt,[e.createVNode(c,{onClick:e.unref(i),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),pnt={class:"mx-auto flex flex-row h-full"},vnt={class:"flex-1 grow overflow-y-auto"},mnt={key:0,class:"flex-none basis-1/4 ml-4"},hnt=e.defineComponent({name:"formPanel"}),gnt=e.defineComponent({...hnt,props:e.mergeModels({id:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,r=e.useModel(t,"modelValue"),o=e.ref({visible:!0,subTitle:"按钮配置",class:"font-bold my-3",iconSize:20});let a=e.ref(Ke.cloneDeep(zC));e.watch(()=>n.id,()=>{a.value=Ke.cloneDeep(zC)});const l=i=>{a.value=i};return(i,u)=>(e.openBlock(),e.createElementBlock("div",pnt,[e.createElementVNode("div",vnt,[e.createVNode(xo,{modelValue:o.value.visible,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value.visible=s),expandConfig:o.value},null,8,["modelValue","expandConfig"]),o.value.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(ant),{key:0,modelValue:r.value,"onUpdate:modelValue":u[1]||(u[1]=s=>r.value=s),current:e.unref(a),onChose:l},null,40,["modelValue","current"])):e.createCommentVNode("",!0)]),(r.value||[]).length>0&&e.unref(a).id?(e.openBlock(),e.createElementBlock("div",mnt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fnt),{btnList:r.value,current:e.unref(a)},null,8,["btnList","current"]))])):e.createCommentVNode("",!0)]))}});let bnt={config_name:"",config_unique_id:"",is_auth:"1"};const VP={config_name:[{required:!0,message:"请输入配置名称"}],is_auth:[{required:!0,message:"是否受权限控制"}],config_unique_id:[{required:!0,message:"请输入配置标识"}]},$P=[{prop:"config_name",label:"配置名称",el:"hs-input",required:!0},{prop:"is_auth",label:"是否配置权限",el:"hs-switch",attr:{"active-value":"1","inactive-value":"0"},show:!0,required:!0},{prop:"config_unique_id",label:"配置标识",el:"hs-input",show:!1,required:!0}],ynt={formData:bnt,formRule:VP,formConfig:$P};let _nt={name:"",config_name:"",is_auth:"1",config_unique_id:""};const Cnt=[{prop:"name",label:"配置",el:"hs-select",cel:"hs-option",multiple:!1,clearable:!1,op:[]}],RN={formData:_nt,formRule:VP,formConfig:Ke.concat(Cnt,$P)};function xnt(t,n,r){const o=e.ref({showColon:!0,xs:8,sm:8,md:8,lg:8,xl:8,minWidth:350});let a=e.ref(!0),l=e.ref(Ke.assign(Ke.cloneDeep(RN),{formData:{is_auth:"1",name:"",config_name:"",config_unique_id:new Date().getTime().toString()}}));const i=(m,v)=>{if(v=="name"){let g=Ke.cloneDeep(r.configs).find(y=>y.config_unique_id==m);l.value.formData=Ke.assign(l.value.formData,{config_name:g.config_name,config_unique_id:g.config_unique_id,is_auth:g.is_auth}),t("change",g)}},u=()=>({id:"",config_type:"1",tables:[{id:"table_"+new Date().getTime().toString(),baseData:{id:"",tableName:"表格配置名称"},tableConfig:[]}],btns:[]}),s=(m,v=0)=>{let g=Ke.cloneDeep(RN);if(g.formData.name=m[v]&&m[v].config_name||"",g.formData.config_name=m[v]&&m[v].config_name||"",g.formData.config_unique_id=m[v]&&m[v].config_unique_id||new Date().getTime().toString(),g.formData.is_auth=m[v]&&m[v].is_auth||"1",m.length>0){let C=m.map(x=>({label:x.config_name,value:x.config_unique_id,is_auth:x.is_auth})),w=Ke.findIndex(g.formConfig,x=>x.prop=="name");if(w<0)return;let b=Ke.assign(g.formConfig[w],{op:C});g.formConfig.splice(w,1,b)}l.value=g,a.value=!0;let y=u();t("change",m[v]||y)};return{parentConfig:o,formConfig:l,isEdit:a,saveConfig:async()=>{await n.value.getSubmitData()&&t("save",{config_name:l.value.formData.config_name,config_unique_id:l.value.formData.config_unique_id,is_auth:l.value.formData.is_auth})},changeConfig:i,initOriginConfig:s,addConfig:()=>{if(!(a.value&&!l.value.formData.name)){let m=u();t("change",m)}l.value=Ke.cloneDeep(ynt),l.value.formData.config_unique_id=new Date().getTime().toString(),a.value=!1},cancel:()=>{s(Ke.cloneDeep(r.configs))},deleteConfig:()=>{t("delete")}}}const wnt={class:"flex justify-around items-center"},Ent={class:"basis-3/4"},knt={class:"basis-1/4 flex justify-end"},Snt=e.defineComponent({inheritAttrs:!1,__name:"saveForm",props:{configs:{type:Array,default:[]}},emits:["save","change","delete"],setup(t,{expose:n,emit:r}){const o=t,a=e.ref(),l=r,{parentConfig:i,formConfig:u,isEdit:s,saveConfig:c,changeConfig:d,initOriginConfig:f,addConfig:p,cancel:m,deleteConfig:v}=xnt(l,a,o);return n({initOriginConfig:f}),(g,y)=>{const C=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",wnt,[e.createElementVNode("div",Ent,[e.createTextVNode(e.toDisplayString(e.unref(u).formData)+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{ref_key:"saveFormRef",ref:a,parentConfig:e.unref(i),data:e.unref(u).formData,config:e.unref(u).formConfig,rules:e.unref(u).formRule,watchConfig:!0,onChange:e.unref(d)},null,40,["parentConfig","data","config","rules","onChange"]))]),e.createElementVNode("div",knt,[!e.unref(s)||e.unref(s)&&e.unref(u).formData.name?(e.openBlock(),e.createBlock(C,{key:0,onClick:e.unref(c),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存配置")]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(s)?(e.openBlock(),e.createBlock(C,{key:1,type:"primary",onClick:e.unref(p)},{default:e.withCtx(()=>[e.createTextVNode("新增配置")]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(s)&&e.unref(u).formData.name?(e.openBlock(),e.createBlock(C,{key:2,onClick:e.unref(v)},{default:e.withCtx(()=>[e.createTextVNode("删除配置")]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(C,{key:3,onClick:e.unref(m)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1},8,["onClick"]))])])}}}),IN=ap();function Bnt(t,n,r,o){let a=e.ref(),l=e.ref();const i=()=>{t.value.tables.push({id:"table_"+new Date().getTime().toString(),baseData:{id:""},tableConfig:[]})},u=E=>{let k=B6.find(t.value.tables,S=>S.id==E);da.confirm(`确定删除${(k==null?void 0:k.baseData.tableName)||"表格配置"}吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ke.remove(t.value.tables,S=>E&&S.id==E),ir.success("删除成功")}).catch(S=>{console.log("err",S)})},s=(E,k)=>{switch(k){case"remove":u(E);break;case"add":i();break}};let c=e.ref();const d=(E,k=!1)=>{if(E.form){if(E.form.formConfig.length>0){let $=0;E.form.formConfig=Ke.filter(E.form.formConfig,D=>{if(D.data.baseData.prop&&(k||D.data.baseData.isApply))return D.sort=++$,!0})}E.form.formConfig.length<=0&&delete E.form}E.tables.map($=>{let D=0;return $.tableConfig=Ke.filter($.tableConfig,N=>{if((N.data.field||N.data.type)&&(k||N.data.isApply))return N.data.type&&(N.data.field="",N.data.returnValueType=""),N.data.filters=Ke.filter(N.data.filters,A=>A.value),N.btnData=Ke.filter(N.btnData,A=>(k||A.data.isApply)&&A.data.key),N.sort=++D,!0}),$});let S=0;E.tables=Ke.filter(E.tables,$=>{if($.tableConfig.length>0)return $.sort=++S,!0});let B=0;return E.btns=Ke.filter(E.btns,$=>{if($.data.key&&(k||$.data.isApply))return $.sort=++B,!0}),E},f=(E={})=>(Object.keys(E).forEach(k=>{E[k]==""||E[k]==null||E[k]==null||E[k]instanceof Array&&E[k].length<=0||E[k]instanceof Object&&Ke.isEmpty(E[k])?delete E[k]:E[k]instanceof Object?f(E[k]):E[k]instanceof Array&&E[k].map(S=>f(S))}),E),p=E=>(E.btns=Ke.map(E.btns,(k,S)=>({id:k.id,data:f(k.data),sort:S+1})),E.form&&(E.form.baseData=Ke.assign({},f(E.form.baseData)),E.form.formConfig=Ke.map(E.form.formConfig,(k,S)=>({data:f(k.data),id:k.id,sort:S+1}))),E.tables=Ke.map(E.tables,(k,S)=>{let B=k.tableConfig.map((D,N)=>{let A=D.btnData.map(F=>f(F));return{id:D.id,data:f(D.data),btnData:A,sort:N+1}}),$=f(k.baseData);return k=Ke.assign(k,{tableConfig:B,baseData:$,sort:S+1}),k}),E),m=E=>{var D;let k=(E.btns||[]).map((N,A)=>({id:N.id,fieldName:N.data.name,showName:N.data.name,fieldProp:N.data.key,fieldShow:N.data.isShow,fieldRequired:!1,sort:A+1})),S=(E.tables||[]).map((N,A)=>{let F=N.tableConfig.map((z,P)=>{let L=(z.btnData||[]).map((R,W)=>({id:R.id||"",fieldName:R.data.name||"",showName:R.data.name||"",fieldProp:R.data.key||"",fieldShow:R.data.isShow||"",fieldRequired:!1,sort:W+1}));return{id:z.id,fieldName:z.data.title,showName:z.data.title,fieldProp:z.data.field,fieldShow:!1,fieldRequired:!1,fieldExport:!1,option:L,sort:P+1}});return{tableId:N.id||"",id:N.id||"",tableName:N.baseData.tableName||"",data:F,sort:A+1}}),B=(((D=E.form)==null?void 0:D.formConfig)||[]).map((N,A)=>({id:N.id,fieldName:N.data.baseData.label||"",showName:N.data.baseData.label||"",fieldProp:N.data.baseData.prop||"",fieldShow:N.data.baseData.isShow||!1,fieldRequired:N.data.elData.rules&&N.data.elData.rules.required||!1,sort:A+1}));return{config_type:"1",config_unique_id:E.config_unique_id,btns:k,tables:S,form:B,menu_id:l.value.id}},v=()=>{let E=[];Ke.cloneDeep(n.value).forEach(B=>{let $={code:B.config_unique_id,name:B.config_name,btns:{},form:{},tables:{}};if($.btns=Ke.keyBy((B.btns||[]).map(D=>({code:D.data.key,name:D.data.name,is_export:!0,show:!0})),"code"),B.form){let D=B.form.formConfig.map(N=>({code:N.data.baseData.prop,name:N.data.baseData.label,is_export:!0,show:!0}));$.form=Ke.keyBy(D,"code")}(B.tables||[]).forEach(D=>{let N=Ke.keyBy(D.tableConfig.map(A=>({name:A.data.title,code:A.data.field,is_export:!0,show:!0})),"code");$.tables=Ke.assign($.tables,{[D.id]:N})}),E.push($)});let S={};return S=Ke.keyBy(E,"code"),S};let g=e.ref("btn");const y=E=>{t.value=E,g.value="btn"},C=E=>{g.value="btn",r.value&&r.value.initOriginConfig(n.value,E)};return{handleTabsEdit:s,saveFormTableConfig:async E=>{let k=await d(Ke.cloneDeep(t.value),!0);k=Ke.assign(k,E);let B=n.value.map(z=>z.config_unique_id).indexOf(k.config_unique_id);B>-1?n.value.splice(B,1,k):n.value.push(k);let $=await d(Ke.cloneDeep(k),!1),D=await p(Ke.cloneDeep($)),N=await m(Ke.cloneDeep(D)),A=await v();console.log("originConfig系统配置",k,"businessConfig==业务配置",$,D,"authConfig权限配置数组",A,"权限数据",N);let F={field_json:JSON.stringify(k),config_name:k.config_name,config_type:"1",config_unique_id:k.config_unique_id,business_json:JSON.stringify(D),menu_id:l.value.id||"",page_name:l.value.meta.title,config_json:JSON.stringify(N),id:k.id||"",project_code:a.value.project_code,update_time:k.update_time||""};IN.postSaveField4Table(F).then(()=>{ir.success("保存配置成功"),c.value=k,o("refresh")}).catch(z=>{console.log("er",z)})},changeConfig:y,initData:(E,k,S)=>{n.value=E,a.value=S,l.value=k,C(0)},tabsActiveName:g,config:c,deleteConfig:()=>{da.prompt(`确认删除【${t.value.config_name}】吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",inputPattern:/^确认删除/,inputErrorMessage:"请输入“确认删除”",inputPlaceholder:"请输入“确认删除”"}).then(()=>{IN.postDelFieldById({id:t.value.id}).then(E=>{E.code==1&&(ir.success("删除成功"),setTimeout(()=>{o("refresh")},1500))})}).catch(()=>{ir.info("已取消删除")})}}}const Nnt={class:"flex flex-col h-full"},Tnt={class:"flex-1 system-user-container",style:{height:"300px"}},Dnt=e.defineComponent({__name:"bcPageConfig",emits:["refresh"],setup(t,{expose:n,emit:r}){let o=e.ref({id:"",config_type:"1",config_unique_id:"",config_name:"",btns:[],tables:[{id:"table_"+new Date().getTime().toString(),baseData:{id:"",tableName:"表格配置名称"},tableConfig:[]}]}),a=e.ref([]),l=e.ref();const i=r,{handleTabsEdit:u,saveFormTableConfig:s,changeConfig:c,initData:d,tabsActiveName:f,deleteConfig:p}=Bnt(o,a,l,i);return n({initData:d}),(m,v)=>{const g=e.resolveComponent("hs-tab-pane"),y=e.resolveComponent("hs-tabs");return e.openBlock(),e.createElementBlock("div",Nnt,[e.createElementVNode("div",Tnt,[e.createVNode(y,{ref:"tabsRef",modelValue:e.unref(f),"onUpdate:modelValue":v[2]||(v[2]=C=>e.isRef(f)?f.value=C:null),class:"h-full tabs",type:"border-card",addable:"",onEdit:e.unref(u)},{default:e.withCtx(()=>[e.createVNode(g,{class:"tab-pane",label:"按钮配置",name:"btn"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(gnt),{id:e.unref(o).config_unique_id,modelValue:e.unref(o).btns,"onUpdate:modelValue":v[0]||(v[0]=C=>e.unref(o).btns=C)},null,8,["id","modelValue"]))]),_:1}),e.createVNode(g,{class:"tab-pane",label:"查询条件配置",name:"form"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(itt),{modelValue:e.unref(o),"onUpdate:modelValue":v[1]||(v[1]=C=>e.isRef(o)?o.value=C:o=C)},null,8,["modelValue"]))]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).tables,(C,w)=>(e.openBlock(),e.createBlock(g,{key:w,class:"tab-pane",label:C.baseData.tableName||"表格配置名称",name:C.id,closable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Qtt),{closable:"",modelValue:e.unref(o).tables[w],"onUpdate:modelValue":b=>e.unref(o).tables[w]=b},null,8,["modelValue","onUpdate:modelValue"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onEdit"])]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Snt),{configs:e.unref(a),ref_key:"saveFormRef",ref:l,onChange:e.unref(c),onSave:e.unref(s),onDelete:e.unref(p)},null,40,["configs","onChange","onSave","onDelete"]))])}}}),Vnt=zr(Dnt,[["__scopeId","data-v-db383a56"]]),$nt=kP();function Ont(t){let n=e.ref(""),r=e.ref();const o=i=>{let u=r.value.find(s=>s.value==i);n.value=Ke.get(u,"value",""),wo.set("CURRENT_SYSTEM",u),t("change",u)},a=()=>{$nt.getAllSystemInfo().then(i=>{if(i.code==1){r.value=(i.data||[]).map(s=>({...s,label:s.project_name||"",value:s.project_code||""}));let u=wo.get("CURRENT_SYSTEM")||r.value[0];o(u&&u.value||"")}}).catch(i=>{console.log("err",i)})};return{onChange:o,initData:()=>{let i=wo.get("CURRENT_SYSTEM");n.value=(i==null?void 0:i.value)||"",a()},curSys:n,systems:r}}const Ant={class:"flex"},Mnt={key:0,class:"basis-1/4 flex flex-col justify-center"},Rnt=e.defineComponent({__name:"bcSwitchSystems",props:{showLabel:{type:Boolean,default:!1},labelText:{type:String,default:"当前系统:"}},emits:["change"],setup(t,{emit:n}){const r=t,o=n,{onChange:a,initData:l,curSys:i,systems:u}=Ont(o);return e.onMounted(()=>{l()}),(s,c)=>{const d=e.resolveComponent("hs-option"),f=e.resolveComponent("hs-select");return e.openBlock(),e.createElementBlock("div",Ant,[r.showLabel?(e.openBlock(),e.createElementBlock("div",Mnt,e.toDisplayString(r.labelText),1)):e.createCommentVNode("",!0),e.createVNode(f,{class:"flex-1",modelValue:e.unref(i),"onUpdate:modelValue":c[0]||(c[0]=p=>e.isRef(i)?i.value=p:null),onChange:e.unref(a)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),p=>(e.openBlock(),e.createBlock(d,{key:p.value,label:p.label,value:p.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])}}});function Int(t,n){let r;const o=i=>new Promise(u=>{if(!i||!t.url||!t.qry_key){clearTimeout(r),u([]);return}let s=Ke.assign(t.params,{[t.qry_key||""]:i});Gn({url:t.url,method:"get",params:s}).then(c=>{if(c.code!=1){clearTimeout(r),u([]);return}clearTimeout(r),console.log("res",t.url,s),c.data?Array.isArray(c.data)?u(c.data):Ke.get(c,"data.customPageList")&&Ke.isArray(Ke.get(c,"data.customPageList"))?u(Ke.get(c,"data.customPageList",[])):u([]):u([])}).catch(()=>{clearTimeout(r),u([])})});return{handleSelect:i=>{n("change",i)},querySearchAsync:async(i,u)=>{const s=await o(i);u(s)}}}const Pnt=e.defineComponent({__name:"bcAutoComplete",props:{qry_key:{type:String,default:""},url:{type:String,default:""},params:{type:Object,default:()=>{}},type:{type:String,default:"btn"},value_key:{type:String,default:"field_name"}},emits:["change"],setup(t,{emit:n}){const r=t,o=e.ref(""),a=n,{handleSelect:l,querySearchAsync:i}=Int(r,a);return(u,s)=>{const c=e.resolveComponent("hs-autocomplete");return e.openBlock(),e.createBlock(c,{modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=d=>o.value=d),clearable:"",class:"inline-input w-50",placeholder:"请输入",ref:"hsAutocompleteRef","fetch-suggestions":e.unref(i),onSelect:e.unref(l),"value-key":r.value_key||"name"},null,8,["modelValue","fetch-suggestions","onSelect","value-key"])}}}),Fnt=e.defineComponent({name:"bcGroupDate",props:{modelValue:{type:Object,required:!0},elComponent:{type:String,required:!0},fieldComponent:{type:String,required:!0}},emits:["update:modelValue","change"],setup(t,{emit:n,expose:r}){const o=e.ref(t.modelValue),a=e.ref([]);function l(u){const[s,c]=t.modelValue[t.fieldComponent];if(u){const[f,p]=u;o.value[s]=f,o.value[c]=p}else o.value[s]="",o.value[c]="";const d={...t.modelValue,...o.value};n("change",u),n("update:modelValue",d)}function i(){l(["",""]),a.value=["",""]}return r({clearData:i}),{groupData:a,onChange:l}}});function znt(t,n,r,o,a,l){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.elComponent),{modelValue:t.groupData,"onUpdate:modelValue":n[0]||(n[0]=i=>t.groupData=i),onChange:t.onChange},null,40,["modelValue","onChange"])}const Lnt=zr(Fnt,[["render",znt]]),Hnt=tx();function Wnt(t){const n=e.ref([]),r=u=>u.map(s=>{let c=Ke.assign(s,{label:s.meta.title,value:s.name});return c.children&&c.children.length>0&&(c.children=r(c.children||[])),c}),o=u=>{Hnt.getMenuList({project_code:u.project_code}).then(s=>{s.code==1&&(n.value=r(s.data||[]))}).catch(s=>{console.log("err",s)})};let a=e.ref();return{changeNode:u=>{a.value=u,t("changeNode",u)},onChangeSystem:u=>{o(u),t("changeSystem",u)},menuData:n}}function jnt(t,n){const r=l=>{n.onlyChild?(!l.children||l.children&&l.children.length<=0)&&t("change",l):t("change",l)},o=e.ref([]);return e.watch(()=>n.menu,l=>{o.value=Ke.cloneDeep(l)},{deep:!0,immediate:!0}),{handleNodeClick:r,menuData:o,defaultProps:{children:"children",label:"label"}}}const qnt={class:"max-h-full overflow-y-auto"},Unt=e.defineComponent({__name:"bcPageTree",props:{onlyChild:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1},menu:{type:Array,default:()=>[]}},emits:["change"],setup(t,{emit:n}){const r=t,o=n,{handleNodeClick:a,menuData:l,defaultProps:i}=jnt(o,r);return(u,s)=>{const c=e.resolveComponent("hs-tree");return e.openBlock(),e.createElementBlock("div",qnt,[e.createVNode(c,{data:e.unref(l),props:e.unref(i),"highlight-current":"","show-checkbox":t.showCheckbox,onNodeClick:e.unref(a)},null,8,["data","props","show-checkbox","onNodeClick"])])}}}),Knt={class:"bg-blue-500 py-5 rounded-md",style:{width:"200px"}},Gnt=e.defineComponent({__name:"bcPageTreeBySystem",emits:["changeNode","changeSystem"],setup(t,{expose:n,emit:r}){const o=r,{changeNode:a,onChangeSystem:l,menuData:i}=Wnt(o);return n({onChangeSystem:l}),(u,s)=>{const c=e.resolveComponent("bc-switch-systems");return e.openBlock(),e.createElementBlock("div",Knt,[e.createVNode(c,{onChange:e.unref(l)},null,8,["onChange"]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Unt),{menu:e.unref(i),onChange:e.unref(a)},null,40,["menu","onChange"]))])}}}),Ynt={class:"text-[#606266]"},Xnt={key:1},Znt={class:"mb-[10px]"},Jnt={key:0,class:"flex justify-center align-middle mt-[10px]"},Qnt=e.defineComponent({__name:"baseForm",props:{data:{type:Object,default:()=>{}},config:{type:Array,default:()=>[]},isRecursive:{type:Boolean,default:!1},isVModel:{type:Boolean,default:!1},xs:{type:Number,default:24},sm:{type:Number,default:24},md:{type:Number,default:24},lg:{type:Number,default:24},xl:{type:Number,default:24}},setup(t,{expose:n}){const r=t,o=e.ref(),a=e.ref(r.data);let l=e.ref(r.isRecursive||r.isVModel?r.data:Ke.cloneDeep(r.data)),i=e.ref(r.config);const u=()=>{console.log("submitForm"),o.value&&o.value.validate(c=>{if(c)console.log("submit!",l.value),a.value=Object.assign(a.value,l.value);else return console.log("error submit!",l.value),!1})};return n({validForm:()=>new Promise(c=>{if(!o.value){c(!1);return}o.value.validate(d=>{c(!!d)})})}),(c,d)=>{const f=e.resolveComponent("ele-Warning"),p=e.resolveComponent("el-icon"),m=e.resolveComponent("el-tooltip"),v=e.resolveComponent("hs-form-item"),g=e.resolveComponent("hs-alert"),y=e.resolveComponent("base-form",!0),C=e.resolveComponent("hs-col"),w=e.resolveComponent("hs-row"),b=e.resolveComponent("hs-form"),x=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["h-full",{"overflow-y-auto":!t.isRecursive}])},[e.createVNode(b,{model:e.unref(l),"label-width":"146px","label-position":"right",ref_key:"formRef",ref:o},{default:e.withCtx(()=>[e.createVNode(w,{gutter:0,justify:"start",class:"hs-row"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(E,k)=>(e.openBlock(),e.createBlock(C,{key:k,xs:t.isRecursive?t.xs:24,sm:t.isRecursive?t.sm:24,md:t.isRecursive?t.md:24,lg:t.isRecursive?t.lg:24,xl:t.isRecursive?t.xl:24,class:"mb-[20px]"},{default:e.withCtx(()=>[E.el!="title"?(e.openBlock(),e.createBlock(v,e.normalizeProps(e.mergeProps({key:0},E)),{label:e.withCtx(()=>[e.createElementVNode("span",Ynt,"  "+e.toDisplayString(E.label)+"  ",1),e.createVNode(m,{class:"box-item",effect:"dark",content:E.tooltip||E.label,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(f)]),_:1})])]),_:2},1032,["content"])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E.el),e.mergeProps({modelValue:e.unref(l)[E.prop],"onUpdate:modelValue":S=>e.unref(l)[E.prop]=S,clearable:E.clearable!=!1,placeholder:"请输入"},E.attrs||{}),{default:e.withCtx(()=>[E.op?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(E.op||[],(S,B)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E.cel),{key:B,label:S.label,value:S.value},null,8,["label","value"]))),128)):e.createCommentVNode("",!0)]),_:2},1040,["modelValue","onUpdate:modelValue","clearable"]))]),_:2},1040)):(e.openBlock(),e.createElementBlock("div",Xnt,[e.createElementVNode("div",Znt,[e.createVNode(g,{title:E.label,type:"info",closable:!1},null,8,["title"])]),E.children?(e.openBlock(),e.createBlock(y,{key:0,data:e.unref(l)[E.prop],config:E.children,isRecursive:!0,xs:t.xs,sm:t.sm,md:t.md,lg:t.lg,xl:t.xl},null,8,["data","config","xs","sm","md","lg","xl"])):e.createCommentVNode("",!0)]))]),_:2},1032,["xs","sm","md","lg","xl"]))),128))]),_:1})]),_:1},8,["model"]),!t.isRecursive&&!t.isVModel?(e.openBlock(),e.createElementBlock("footer",Jnt,[e.createVNode(x,{type:"primary",onClick:u},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])):e.createCommentVNode("",!0)],2)}}}),qa=zr(Qnt,[["__scopeId","data-v-ec198f7a"]]),ert={class:"p-[10px] h-full"},trt=e.defineComponent({name:"inputAttrConfig"}),nrt=e.defineComponent({...trt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t;let r=e.ref({inputAttrConfig:Ke.cloneDeep(set),inputAttrConfigMap:Ke.cloneDeep(b1)});const o=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,r.value.inputAttrConfigMap):n.data);return(a,l)=>(e.openBlock(),e.createElementBlock("div",ert,[e.createVNode(qa,{data:o.value,"onUpdate:data":l[0]||(l[0]=i=>o.value=i),config:e.unref(r).inputAttrConfig,isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),rrt={class:"p-[10px] h-full overflow-y-auto"},ort=e.defineComponent({name:"inputEventConfig"}),art=e.defineComponent({...ort,props:{data:{type:Object,default:()=>{}}},setup(t){const n=()=>{console.log(o),console.log(a)},r=t,o=e.ref(Ke.isEmpty(r.data)?Object.assign(r.data,{}):r.data),a=e.ref(ON.map(()=>({})));return console.log("formData",a),(l,i)=>{const u=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",rrt,[e.createVNode(u,{onClick:n},{default:e.withCtx(()=>[e.createTextVNode("父组件获取数据")]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ON),(s,c)=>(e.openBlock(),e.createElementBlock("div",{key:c},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.el),e.mergeProps({modelValue:a.value[c][s.prop],"onUpdate:modelValue":d=>a.value[c][s.prop]=d,clearable:"",placeholder:"请输入"},s.attrs||{}),null,16,["modelValue","onUpdate:modelValue"]))]))),128))])}}}),lrt=[{prop:"attrs",label:"selectAttrs",tooltip:"selectAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"options",label:"option配置数据",tooltip:"option配置数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取options",tooltip:"通过url请求获取options配置项数据",type:"string",el:"hs-input"},{prop:"params",label:"请求参数",type:"string",el:"hs-input"},{prop:"method",label:"请求方式",type:"string",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"proxy",label:"代理",type:"string",el:"hs-input"},{prop:"dictCode",label:"字典code",tooltip:"字典code",type:"string",el:"hs-input"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"value-key",label:"value 唯一标识",tooltip:"作为 value 唯一标识的键名,绑定值为对象类型时必填",type:"string",el:"hs-input"},{prop:"placeholder",label:"占位符",tooltip:"占位符,默认为“Select”",type:"string",el:"hs-input"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"clearable",label:"是否可以清空",tooltip:"是否可以清空选项",type:"boolean",el:"hs-switch"},{prop:"collapse-tags",label:"值按文字展示",tooltip:"多选时是否将选中值按文字的形式展示",type:"boolean",el:"hs-switch"},{prop:"collapse-tags-tooltip",label:"是否显示所选",tooltip:"当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true",type:"boolean",el:"hs-switch"},{prop:"multiple-limit",label:"最多可选数",tooltip:"multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制",type:"number",el:"hs-input-number"},{prop:"name",label:"原生name属性",tooltip:"Select 输入框的原生 name 属性",type:"string",el:"hs-input"},{prop:"effect",label:"tooltip 主题",tooltip:"tooltip 主题,内置了 dark / light 两种",type:"enum / string",el:"hs-select",op:[{label:"dark",value:"dark"},{label:"light",value:"light"}],cel:"hs-option"},{prop:"autocomplete",label:"autocomplete",tooltip:"Select 输入框的原生 autocomplete 属性",type:"string",el:"hs-input"},{prop:"filterable",label:"是否可筛选",tooltip:"Select 组件是否可筛选",type:"boolean",el:"hs-switch"},{prop:"allow-create",label:"允许创建条目",tooltip:"是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。",type:"boolean",el:"hs-switch"},{prop:"filter-method",label:"筛选方法",tooltip:"自定义筛选方法",type:"Function",el:"hs-input"},{prop:"remote",label:"是否远程加载",tooltip:"其中的选项是否从服务器远程加载",type:"boolean",el:"hs-switch"},{prop:"remote-method",label:"远程搜索方法",tooltip:"自定义远程搜索方法",type:"Function",el:"hs-input"},{prop:"remote-show-suffix",label:"远程搜索图标",tooltip:"远程搜索方法显示后缀图标",type:"boolean",el:"hs-switch"},{prop:"loading",label:"是否正在获取",tooltip:"是否正在从远程获取数据",type:"boolean",el:"hs-switch"},{prop:"loading-text",label:"加载时文本",tooltip:"从服务器加载数据时显示的文本,默认为“Loading”",type:"string",el:"hs-input"},{prop:"no-match-text",label:"无匹配时显示",tooltip:"搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”",type:"string",el:"hs-input"},{prop:"no-data-text",label:"无选项时显示",tooltip:"无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”",type:"string",el:"hs-input"},{prop:"popper-class",label:"下拉菜单类名",tooltip:"选择器下拉菜单的自定义类名",type:"string",el:"hs-input"},{prop:"reserve-keyword",label:"保留关键词",tooltip:"当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词",type:"boolean",el:"hs-switch"},{prop:"default-first-option",label:"回车选择",tooltip:"是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用",type:"boolean",el:"hs-switch"},{prop:"teleported",label:"是否插入至body",tooltip:"是否将下拉列表插入至 body 元素",type:"boolean",el:"hs-switch"},{prop:"persistent",label:"选择器未被激活",tooltip:"当下拉选择器未被激活并且persistent设置为false,选择器会被删除。",type:"boolean",el:"hs-switch"},{prop:"automatic-dropdown",label:"自动弹出选项",tooltip:"对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单",type:"boolean",el:"hs-switch"},{prop:"clear-icon",label:"清除图标",tooltip:"自定义清除图标",type:"string / object",el:"hs-input"},{prop:"fit-input-width",label:"下拉框宽度",tooltip:"下拉框的宽度是否与输入框相同",type:"boolean",el:"hs-switch"},{prop:"suffix-icon",label:"后缀图标",tooltip:"自定义后缀图标组件",type:"string / object",el:"hs-input"},{prop:"suffix-transition deprecated",label:"下拉图标动画",tooltip:"下拉菜单显示/消失时后缀图标的动画",type:"boolean",el:"hs-switch"},{prop:"tag-type",label:"标签类型",tooltip:"标签类型",type:"enum",el:"hs-select",op:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}],cel:"hs-option"},{prop:"validate-event",label:"表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"placement",label:"下拉框出现位置",tooltip:"下拉框出现的位置",type:"enum",el:"hs-select",op:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}],cel:"hs-option"},{prop:"max-collapse-tags",label:"Tag最大数量",tooltip:"需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。",type:"number",el:"hs-input-number"},{prop:"popper-options",label:"popper参数",tooltip:"popper.js 参数",type:"objectrefer to popper.js doc",el:"hs-input"},{prop:"aria-label",label:"aria-label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"}]},{prop:"groupAttrs",label:"optionGroupAttrs",tooltip:"optionGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"label",label:"分组的名称",tooltip:"分组的名称",type:"string",el:"hs-input"},{prop:"disabled",label:"是否禁用分组",tooltip:"是否将该分组下所有选项置为禁用",type:"string",el:"hs-switch"}]},{prop:"optionAttrs",label:"optionAttrs",tooltip:"optionAttrs",type:"object",el:"title",children:[{prop:"value",label:"选项的值",tooltip:"选项的值",type:"string",el:"hs-input"},{prop:"label",label:"选项的标签",tooltip:"选项的标签,若不设置则默认与value相同",type:"string",el:"hs-input"},{prop:"disabled",label:"是否禁用选项",tooltip:"是否禁用该选项",type:"string",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],irt={attrs:{size:"default",multiple:!1,disabled:!1,"value-key":"value",clearable:!0,"collapse-tags":!1,"collapse-tags-tooltip":!1,"multiple-limit":0,effect:"light",autocomplete:"off",filterable:!0,"allow-create":!1,remote:!1,"remote-show-suffix":!1,loading:!1,"reserve-keyword":!0,"default-first-option":!1,teleported:!0,persistent:!0,"automatic-dropdown":!0,"clear-icon":"","fit-input-width":!1,"suffix-icon":"","tag-type":"info","validate-event":!0,placement:"bottom-start","max-collapse-tags":1,options:"string=",method:"get",proxy:"",params:"",placeholder:"请选择"},groupAttrs:{disabled:!1,isGroupEnabled:!1},optionAttrs:{value:"value",label:"label",disabled:!1},rules:{required:!1,rules:""}},srt={class:"p-[10px] h-full"},urt=e.defineComponent({name:"selectAttrConfig"}),crt=e.defineComponent({...urt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t;let r=e.ref(Ke.cloneDeep(irt));e.onMounted(()=>{let a=wo.get("CURRENT_SYSTEM");r.value.attrs.proxy=a.project_url,console.log("system",a,r.value)});const o=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,r.value):n.data);return(a,l)=>(e.openBlock(),e.createElementBlock("div",srt,[e.createVNode(qa,{data:o.value,"onUpdate:data":l[0]||(l[0]=i=>o.value=i),config:e.unref(lrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),drt=[{prop:"attrs",label:"datePickerAttrs",tooltip:"datePickerAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"number / string / object",el:"hs-input"},{prop:"readonly",label:"只读",tooltip:"只读",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"禁用",tooltip:"禁用",type:"boolean",el:"hs-switch"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"editable",label:"文本框可输入",tooltip:"文本框可输入",type:"boolean",el:"hs-switch"},{prop:"clearable",label:"清除按钮",tooltip:"是否显示清除按钮",type:"boolean",el:"hs-switch"},{prop:"placeholder",label:"占位符",tooltip:"非范围选择时的占位内容",type:"string",el:"hs-input"},{prop:"start-placeholder",label:"开始日期占位符",tooltip:"范围选择时开始日期的占位内容",type:"string",el:"hs-input"},{prop:"end-placeholder",label:"结束日期占位符",tooltip:"范围选择时结束日期的占位内容",type:"string",el:"hs-input"},{prop:"type",label:"显示类型",tooltip:"显示类型",type:"enum",el:"hs-select",op:[{label:"year",value:"year"},{label:"month",value:"month"},{label:"date",value:"date"},{label:"dates",value:"dates"},{label:"week",value:"week"},{label:"datetime",value:"datetime"},{label:"datetimerange",value:"datetimerange"},{label:"daterange",value:"daterange"},{label:"monthrange",value:"monthrange"}],cel:"hs-option"},{prop:"format",label:"输入框中的格式",tooltip:"显示在输入框中的格式",type:"参见 date formats",el:"hs-input"},{prop:"popper-class",label:"下拉框的类名",tooltip:"DatePicker 下拉框的类名",type:"string",el:"hs-input"},{prop:"popper-options",label:"自定义popper",tooltip:"自定义 popper 选项,更多请参考 popper.js",type:"object",el:"hs-input"},{prop:"range-separator",label:"分隔符",tooltip:"选择范围时的分隔符",type:"string",el:"hs-input"},{prop:"default-time",label:"default-tim",tooltip:"范围选择时选中日期所使用的当日内具体时刻",type:"object",el:"hs-input"},{prop:"value-format",label:"绑定值的格式",tooltip:"可选,绑定值的格式。 不指定则绑定值为 Date 对象",type:"参见 date formats",el:"hs-input"},{prop:"id",label:"id",tooltip:"等价于原生 input id 属性",type:"string / object",el:"hs-input"},{prop:"name",label:"name",tooltip:"等价于原生 input name 属性",type:"string / object",el:"hs-input"},{prop:"unlink-panels",label:"unlink-panels",tooltip:"在范围选择器里取消两个日期面板之间的联动",type:"boolean",el:"hs-switch"},{prop:"prefix-icon",label:"前缀图标",tooltip:"自定义前缀图标 如果 type的值是TimeLikeType,那么就是 Clock,不然就是 Calendar",type:"string / object",el:"hs-input"},{prop:"clear-icon",label:"清除图标",tooltip:"清除图标",type:"string / object",el:"hs-input"},{prop:"validate-event",label:"是否表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"disabled-date",label:"disabled-date",tooltip:"一个用来判断该日期是否被禁用的函数,接受一个 Date 对象作为参数。 应该返回一个 Boolean 值。",type:"Function",el:"hs-input"},{prop:"shortcuts",label:"设置快捷选项",tooltip:"设置快捷选项,需要传入数组对象",type:"object",el:"hs-input"},{prop:"cell-class-name",label:"设置类名",tooltip:"设置自定义类名",type:"Function",el:"hs-input"},{prop:"teleported",label:"是否插入至body",tooltip:"是否将 date-picker 的下拉列表插入至 body 元素",type:"boolean",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],frt={attrs:{size:"default",readonly:!1,disabled:!1,editable:!0,clearable:!0,type:"date","range-separator":"-","unlink-panels":!1,"clear-icon":"","validate-event":!0,teleported:!0,placeholder:"请选择",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss"},rules:{required:!1,rules:""}},prt={class:"p-[10px] h-full"},vrt=e.defineComponent({name:"datePickerAttrConfig"}),mrt=e.defineComponent({...vrt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(frt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",prt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(drt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),hrt=[{prop:"attrs",label:"按钮属性",tooltip:"按钮属性",type:"object",el:"title",children:[{prop:"operate",label:"操作",tooltip:"操作",type:"enum",el:"hs-select",op:[{label:"query",value:"query"},{label:"reset",value:"reset"},{label:"add",value:"add"},{label:"edit",value:"edit"},{label:"delete",value:"delete"},{label:"export",value:"export"},{label:"import",value:"import"}],cel:"hs-option",attrs:{filterable:!0,"allow-create":!0,"default-first-option":!0}},{prop:"type",label:"类型",tooltip:"类型",type:"enum",el:"hs-select",op:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],cel:"hs-option"},{prop:"name",label:"按钮文本内容",tooltip:"按钮文本内容",type:"string",el:"hs-input"},{prop:"disabled",label:"按钮是否禁用",tooltip:"按钮是否为禁用状态",type:"boolean",el:"hs-switch"},{prop:"size",label:"尺寸",tooltip:"尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"plain",label:"是否为朴素按钮",tooltip:"是否为朴素按钮",type:"boolean",el:"hs-switch"},{prop:"text",label:"是否为文字按钮",tooltip:"是否为文字按钮",type:"boolean",el:"hs-switch"},{prop:"bg",label:"是否显示背景色",tooltip:"是否显示文字按钮背景颜色",type:"boolean",el:"hs-switch"},{prop:"color",label:"自定义颜色",el:"hs-color-picker"},{prop:"textColor",label:"按钮文本色",el:"hs-color-picker"},{prop:"round",label:"圆角按钮",tooltip:"是否为圆角按钮",type:"boolean",el:"hs-switch"},{prop:"circle",label:"圆形按钮",tooltip:"是否为圆形按钮",type:"boolean",el:"hs-switch"},{prop:"fnName",label:"方法名称",el:"hs-input",attrs:{type:"textarea"}},{prop:"loading",label:"是否为加载中",tooltip:"是否为加载中状态",type:"boolean",el:"hs-switch"},{prop:"loading-icon",label:"加载中图标",tooltip:"自定义加载中状态图标组件",type:"string / Component",el:"hs-input"},{prop:"icon",label:"图标组件",tooltip:"图标组件",type:"string / Component",el:"hs-input"},{prop:"link",label:"链接按钮",tooltip:"是否为链接按钮",type:"boolean",el:"hs-switch"},{prop:"autofocus",label:"autofocus",tooltip:"原生 autofocus 属性",type:"boolean",el:"hs-switch"},{prop:"native-type",label:"原生 type 属性",tooltip:"原生 type 属性",type:"enum",el:"hs-select",op:[{label:"button",value:"button"},{label:"submit",value:"submit"},{label:"reset",value:"reset"}],cel:"hs-option"},{prop:"auto-insert-space",label:"自动插入空格",tooltip:"自动在两个中文字符之间插入空格",type:"boolean",el:"hs-switch"},{prop:"dark",label:"dark 模式",tooltip:"dark 模式, 意味着自动设置 color 为 dark 模式的颜色",type:"boolean",el:"hs-switch"},{prop:"tag",label:"自定义元素标签",tooltip:"自定义元素标签",type:"string / Component",el:"hs-input"}]},{prop:"groupAttrs",label:"buttonGroupAttrs",tooltip:"buttonGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"size",label:"按钮组内按钮大小",tooltip:"用于控制该按钮组内按钮的大小",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"type",label:"按钮组内按钮类型",tooltip:"用于控制该按钮组内按钮的类型",type:"enum",el:"hs-select",op:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],cel:"hs-option"}]}],grt={attrs:{size:"default",plain:!1,text:!1,bg:!1,link:!1,round:!1,circle:!1,loading:!1,"loading-icon":"Loading",autofocus:!1,"native-type":"button",dark:!1,tag:"button"},groupAttrs:{}},brt={class:"p-[10px] h-full"},yrt=e.defineComponent({name:"buttonAttrConfig"}),_rt=e.defineComponent({...yrt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(grt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",brt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(hrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Crt=[{prop:"attrs",label:"autocompleteAttrs",tooltip:"autocompleteAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"placeholder",label:"占位符",tooltip:"占位符",type:"string",el:"hs-input"},{prop:"fetch-suggestions",label:"远程搜索方法",tooltip:"获取输入建议的方法, 仅当你的输入建议数据 resolve 时,通过调用 callback(data:[]) 来返回它",type:"Function",el:"hs-input"},{prop:"fetch-url",label:"远程搜索地址",tooltip:"远程搜索地址",type:"string",el:"hs-input"},{prop:"clearable",label:"是否可清空",tooltip:"是否可清空",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"自动补全组件是否被禁用",type:"boolean",el:"hs-switch"},{prop:"value-key",label:"用于显示的键名",tooltip:"输入建议对象中用于显示的键名",type:"string",el:"hs-input"},{prop:"debounce",label:"防抖延时",tooltip:"获取输入建议的防抖延时,单位为毫秒",type:"number",el:"hs-input-number"},{prop:"placement",label:"菜单弹出位置",tooltip:"菜单弹出位置",type:"enum",el:"hs-select",op:[{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"}],cel:"hs-option"},{prop:"trigger-on-focus",label:"trigger-on-focus",tooltip:"whether show suggestions when input focus",type:"boolean",el:"hs-switch"},{prop:"select-when-unmatched",label:"回车触发select",tooltip:"在输入没有任何匹配建议的情况下,按下回车是否触发 select 事件",type:"boolean",el:"hs-switch"},{prop:"name",label:"name",tooltip:"等价于原生 input name 属性",type:"string",el:"hs-input"},{prop:"label",label:"关联的label",tooltip:"输入框关联的 label 文字",type:"string",el:"hs-input"},{prop:"hide-loading",label:"隐藏加载图标",tooltip:"是否隐藏远程加载时的加载图标",type:"boolean",el:"hs-switch"},{prop:"popper-class",label:"下拉列表的类名",tooltip:"下拉列表的类名",type:"string",el:"hs-input"},{prop:"popper-append-to-body",label:"列表插入body",tooltip:"是否将下拉列表插入至 body 元素。 在下拉列表的定位出现问题时,可将该属性设置为 false",type:"boolean",el:"hs-switch"},{prop:"teleported",label:"传送",tooltip:"是否将下拉列表元素插入 append-to 指向的元素下",type:"boolean",el:"hs-switch"},{prop:"highlight-first-item",label:"高亮结果第一项",tooltip:"是否默认高亮远程搜索结果的第一项",type:"boolean",el:"hs-switch"},{prop:"fit-input-width",label:"宽度与输入框相同",tooltip:"下拉框的宽度是否与输入框相同",type:"boolean",el:"hs-switch"}]}],xrt={attrs:{size:"default",clearable:!1,disabled:!1,"value-key":"value",debounce:300,placement:"bottom-start","trigger-on-focus":!0,"select-when-unmatched":!1,"hide-loading":!1,teleported:!0,"highlight-first-item":!1,"fit-input-width":!1,placeholder:"请输入"}},wrt={class:"p-[10px] h-full"},Ert=e.defineComponent({name:"autocompleteAttrConfig"}),krt=e.defineComponent({...Ert,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(xrt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",wrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Crt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Srt=[{prop:"attrs",label:"switchAttrs",tooltip:"switchAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"boolean / string / number",el:"hs-input"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"loading",label:"是否显示加载中",tooltip:"是否显示加载中",type:"boolean",el:"hs-switch"},{prop:"size",label:"switch 的大小",tooltip:"switch 的大小",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"width",label:"switch 的宽度",tooltip:"switch 的宽度",type:"number / string",el:"hs-input"},{prop:"inline-prompt",label:"只呈现第一个字符",tooltip:"无论图标或文本是否显示在点内,只会呈现文本的第一个字符",type:"boolean",el:"hs-switch"},{prop:"active-icon",label:"激活时所显示图标",tooltip:"switch 状态为 on 时所显示图标,设置此项会忽略 active-text",type:"string / Component",el:"hs-input"},{prop:"inactive-icon",label:"关闭时所显示图标",tooltip:"switch 状态为 off 时所显示图标,设置此项会忽略 inactive-text",type:"string / Component",el:"hs-input"},{prop:"active-action-icon",label:"打开时图标组件",tooltip:"on状态下显示的图标组件",type:"string / Component",el:"hs-input"},{prop:"inactive-action-icon",label:"关闭时图标组件",tooltip:"off状态下显示的图标组件",type:"string / Component",el:"hs-input"},{prop:"active-text",label:"打开时的文字描述",tooltip:"switch 打开时的文字描述",type:"string",el:"hs-input"},{prop:"inactive-text",label:"关闭时的文字描述",tooltip:"switch 的状态为 off 时的文字描述",type:"string",el:"hs-input"},{prop:"active-value",label:"状态为打开时的值",tooltip:"switch 状态为 on 时的值",type:"boolean / string / number",el:"hs-input"},{prop:"inactive-value",label:"状态为关闭时的值",tooltip:"switch的状态为 off 时的值",type:"boolean / string / number",el:"hs-input"},{prop:"name",label:"name",tooltip:"switch 对应的 name 属性",type:"string",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"before-change",label:"状态改变前的钩子",tooltip:"switch 状态改变前的钩子, 返回 false 或者返回 Promise 且被 reject 则停止切换",type:"boolean / Function",el:"hs-switch"},{prop:"id",label:"id",tooltip:"id",type:"string",el:"hs-input"},{prop:"tabindex",label:"tabindex",tooltip:"input 的 tabindex",type:"string / number",el:"hs-input"},{prop:"label",label:"aria-label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Brt={attrs:{size:"default",disabled:!1,loading:!1,"inline-prompt":!1,"validate-event":!0},rules:{required:!1,rules:""}},Nrt={class:"p-[10px] h-full"},Trt=e.defineComponent({name:"switchAttrConfig"}),Drt=e.defineComponent({...Trt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(Brt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Nrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Srt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Vrt=[{prop:"attrs",label:"uploadAttrs",tooltip:"uploadAttrs",type:"object",el:"title",children:[{prop:"action",label:"请求 URL",tooltip:"请求 URL",type:"string",el:"hs-input"},{prop:"headers",label:"设置上传的请求头",tooltip:"设置上传的请求头部",type:"object",el:"hs-input"},{prop:"method",label:"设置上传请求方法",tooltip:"设置上传请求方法",type:"string",el:"hs-select",op:[{label:"post",value:"post"}],cel:"hs-option"},{prop:"multiple",label:"是否支持多选文件",tooltip:"是否支持多选文件",type:"boolean",el:"hs-switch"},{prop:"data",label:"额外参数",tooltip:"上传时附带的额外参数 从 v2.3.13 支持 Awaitable 数据,和 Function",type:"object / Function",el:"hs-input"},{prop:"name",label:"上传文件字段名",tooltip:"上传的文件字段名",type:"string",el:"hs-input"},{prop:"isBase64",label:"是否是base64",tooltip:"是否是base64文件",type:"boolean",el:"hs-switch"},{prop:"isShowCapture",label:"是否显示高拍仪",tooltip:"是否显示高拍仪控件",type:"boolean",el:"hs-switch"},{prop:"with-credentials",label:"支持发送cookie",tooltip:"支持发送 cookie 凭证信息",type:"boolean",el:"hs-switch"},{prop:"show-file-list",label:"show-file-list",tooltip:"是否显示已上传文件列表",type:"boolean",el:"hs-switch"},{prop:"drag",label:"是否启用拖拽上传",tooltip:"是否启用拖拽上传",type:"boolean",el:"hs-switch"},{prop:"accept",label:"上传的文件类型",tooltip:"接受上传的文件类型(thumbnail-mode 模式下此参数无效)",type:"string",el:"hs-input"},{prop:"on-preview",label:"已上传的钩子",tooltip:"点击文件列表中已上传的文件时的钩子",type:"Function",el:"hs-input"},{prop:"on-remove",label:"移除文件的钩子",tooltip:"文件列表移除文件时的钩子",type:"Function",el:"hs-input"},{prop:"on-success",label:"上传成功的钩子",tooltip:"文件上传成功时的钩子",type:"Function",el:"hs-input"},{prop:"on-error",label:"上传失败的钩子",tooltip:"文件上传失败时的钩子",type:"Function",el:"hs-input"},{prop:"on-progress",label:"上传时的钩子",tooltip:"文件上传时的钩子",type:"Function",el:"hs-input"},{prop:"on-change",label:"状态改变时的钩子",tooltip:"文件状态改变时的钩子,添加文件、上传成功和上传失败时都会被调用",type:"Function",el:"hs-input"},{prop:"on-exceed",label:"超出限制时的钩子",tooltip:"当超出限制时,执行的钩子函数",type:"Function",el:"hs-input"},{prop:"before-upload",label:"上传之前的钩子",tooltip:"上传文件之前的钩子,参数为上传的文件, 若返回false或者返回 Promise 且被 reject,则停止上传。",type:"Function",el:"hs-input"},{prop:"before-remove",label:"删除之前的钩子",tooltip:"删除文件之前的钩子,参数为上传的文件和文件列表, 若返回 false 或者返回 Promise 且被 reject,则停止删除。",type:"Function",el:"hs-input"},{prop:"file-list",label:"默认上传文件",tooltip:"默认上传文件",type:"object",el:"hs-input"},{prop:"list-type",label:"文件列表的类型",tooltip:"文件列表的类型",type:"enum",el:"hs-select",op:[{label:"text",value:"text"},{label:"picture",value:"picture"},{label:"picture-card",value:"picture-card"}],cel:"hs-option"},{prop:"auto-upload",label:"是否自动上传文件",tooltip:"是否自动上传文件",type:"boolean",el:"hs-switch"},{prop:"http-request",label:"覆盖默认的Xhr",tooltip:"覆盖默认的 Xhr 行为,允许自行实现上传文件的请求",type:"Function",el:"hs-input"},{prop:"disabled",label:"是否禁用上传",tooltip:"是否禁用上传",type:"boolean",el:"hs-switch"},{prop:"limit",label:"最大数量",tooltip:"允许上传文件的最大数量",type:"number",el:"hs-input-number"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],$rt={attrs:{method:"post",multiple:!1,name:"file","with-credentials":!1,"show-file-list":!0,drag:!1,"list-type":"text","auto-upload":!0,disabled:!1},rules:{}},Ort={class:"p-[10px] h-full"},Art=e.defineComponent({name:"uploadAttrConfig"}),Mrt=e.defineComponent({...Art,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep($rt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Ort,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Vrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Rrt=[{prop:"attrs",label:"checkboxAttrs",tooltip:"checkboxAttrs",type:"object",el:"title",children:[{prop:"isButtonEnabled",label:"是否启用按钮",tooltip:"是否启用按钮",type:"boolean",el:"hs-switch"},{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean",el:"hs-input"},{prop:"label",label:"选中状态的值",tooltip:"选中状态的值(只有在checkbox-group或者绑定对象类型为array时有效)",type:"string / number / boolean / object",el:"hs-input"},{prop:"true-label",label:"选中时的值",tooltip:"选中时的值",type:"string / number",el:"hs-input"},{prop:"false-label",label:"没有选中时的值",tooltip:"没有选中时的值",type:"string / number",el:"hs-input"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"border",label:"是否显示边框",tooltip:"是否显示边框",type:"boolean",el:"hs-switch"},{prop:"size",label:"尺寸",tooltip:"Checkbox 的尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"name",label:"原生 name 属性",tooltip:"原生 name 属性",type:"string",el:"hs-input"},{prop:"checked",label:"当前是否勾选",tooltip:"当前是否勾选",type:"boolean",el:"hs-switch"},{prop:"indeterminate",label:"设置不确定状态",tooltip:"设置不确定状态,仅负责样式控制",type:"boolean",el:"hs-switch"},{prop:"validate-event",label:"表单的校验",tooltip:"输入时是否触发表单的校验",type:"boolean",el:"hs-switch"},{prop:"tabindex",label:"tabindex",tooltip:"输入框的 tabindex",type:"string / number",el:"hs-input"},{prop:"id",label:"id",tooltip:"input id",type:"string",el:"hs-input"},{prop:"controls",label:"controls",tooltip:"与 aria-control一致, 当 indeterminate为 true时生效",type:"boolean",el:"hs-switch"}]},{prop:"groupAttrs",label:"checkboxGroupAttrs",tooltip:"checkboxGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"options",label:"option配置数据",tooltip:"option配置数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取options",tooltip:"通过url请求获取options配置项数据",type:"string",el:"hs-input"},{prop:"method",label:"请求方式",type:"string",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"params",label:"请求参数",type:"string",el:"hs-input"},{prop:"proxy",label:"代理",type:"string",el:"hs-input"},{prop:"value",label:"选项的值value",tooltip:"选项的值",type:"string",el:"hs-input"},{prop:"label",label:"选项的标签label",tooltip:"选项的标签,若不设置则默认与value相同",type:"string",el:"hs-input"},{prop:"size",label:"多选框组尺寸",tooltip:"多选框组尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"min",label:"最小数量",tooltip:"最小数量",type:"string",el:"hs-input-number"},{prop:"max",label:"最大数量",tooltip:"最大数量",type:"string",el:"hs-input-number"},{prop:"text-color",label:"字体颜色",tooltip:"当按钮为活跃状态时的字体颜色",type:"string",el:"hs-input"},{prop:"fill",label:"边框和背景颜色",tooltip:"当按钮为活跃状态时的边框和背景颜色",type:"string",el:"hs-input"},{prop:"tag",label:"复选框组元素标签",tooltip:"复选框组元素标签",type:"string",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"string",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Irt={attrs:{isButtonEnabled:!1,size:"default",disabled:!1,border:!1,checked:!1,indeterminate:!1,"validate-event":!0},groupAttrs:{isGroupEnabled:!0,options:"string=",method:"get",disabled:!1,"text-color":"#ffffff",fill:"#409EFF",tag:"div","validate-event":!0},rules:{required:!1,rules:""}},Prt={class:"p-[10px] h-full"},Frt=e.defineComponent({name:"checkboxAttrConfig"}),zrt=e.defineComponent({...Frt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(Irt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Prt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Rrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Lrt=[{prop:"attrs",label:"radioAttrs",tooltip:"radioAttrs",type:"object",el:"title",children:[{prop:"isButtonEnabled",label:"是否启用按钮",tooltip:"是否启用按钮",type:"boolean",el:"hs-switch"},{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean",el:"hs-input"},{prop:"label",label:"单选框的label",tooltip:"单选框的 label",type:"string / number / boolean",el:"hs-input"},{prop:"disabled",label:"是否禁用单选框",tooltip:"是否禁用单选框",type:"boolean",el:"hs-switch"},{prop:"border",label:"是否显示边框",tooltip:"是否显示边框",type:"boolean",el:"hs-switch"},{prop:"size",label:"单选框的尺寸",tooltip:"单选框的尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"name",label:"原始 name 属性",tooltip:"原始 name 属性",type:"string",el:"hs-input"}]},{prop:"groupAttrs",label:"radioGroupAttrs",tooltip:"radioGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"options",label:"option配置数据",tooltip:"option配置数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取options",tooltip:"通过url请求获取options配置项数据",type:"string",el:"hs-input"},{prop:"method",label:"请求方式",type:"string",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"params",label:"请求参数",type:"string",el:"hs-input"},{prop:"proxy",label:"代理",type:"string",el:"hs-input"},{prop:"value",label:"选项的值value",tooltip:"选项的值",type:"string",el:"hs-input"},{prop:"label",label:"选项的标签label",tooltip:"选项的标签,若不设置则默认与value相同",type:"string",el:"hs-input"},{prop:"size",label:"单选框按钮大小",tooltip:"单选框按钮或边框按钮的大小",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"text-color",label:"字体颜色",tooltip:"当按钮为活跃状态时的字体颜色",type:"string",el:"hs-input"},{prop:"fill",label:"边框和背景颜色",tooltip:"当按钮为活跃状态时的边框和背景颜色",type:"string",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"string",el:"hs-switch"},{prop:"name",label:"原生 name 属性",tooltip:"原生 name 属性",type:"string",el:"hs-input"},{prop:"id ",label:"原生 id 属性",tooltip:"原生 id 属性",type:"string",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Hrt={attrs:{isButtonEnabled:!1,disabled:!1,border:!1},groupAttrs:{isGroupEnabled:!0,options:"string=",method:"get",size:"default",disabled:!1,"text-color":"#ffffff",fill:"#409EFF","validate-event":!0},rules:{required:!1,rules:""}},Wrt={class:"p-[10px] h-full"},jrt=e.defineComponent({name:"radioAttrConfig"}),qrt=e.defineComponent({...jrt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(Hrt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Wrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Lrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Urt=[{prop:"attrs",label:"inputNumberAttrs",tooltip:"inputNumberAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number",el:"hs-input"},{prop:"min",label:"最小值",tooltip:"设置计数器允许的最小值",type:"number",el:"hs-input-number"},{prop:"max",label:"最大值",tooltip:"设置计数器允许的最大值",type:"number",el:"hs-input-number"},{prop:"step",label:"计数器步长",tooltip:"计数器步长",type:"number",el:"hs-input-number"},{prop:"step-strictly",label:"只能输入step倍数",tooltip:"是否只能输入 step 的倍数",type:"boolean",el:"hs-switch"},{prop:"precision",label:"数值精度",tooltip:"数值精度",type:"number",el:"hs-input-number"},{prop:"size",label:"计数器尺寸",tooltip:"计数器尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"placeholder",label:"占位符",tooltip:"等价于原生 input placeholder 属性",type:"string",el:"hs-input"},{prop:"readonly",label:"是否只读",tooltip:"原生 readonly 属性,是否只读",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用状态",tooltip:"是否禁用状态",type:"boolean",el:"hs-switch"},{prop:"controls",label:"是否使用控制按钮",tooltip:"是否使用控制按钮",type:"boolean",el:"hs-switch"},{prop:"controls-position",label:"控制按钮位置",tooltip:"控制按钮位置",type:"enum",el:"hs-select",op:[{label:"right",value:"right"}],cel:"hs-option"},{prop:"name",label:"input name 属性",tooltip:"等价于原生 input name 属性",type:"string",el:"hs-input"},{prop:"label",label:"input label 属性",tooltip:"等价于原生 input label 属性",type:"string",el:"hs-input"},{prop:"id",label:"input id 属性",tooltip:"等价于原生 input id 属性",type:"string",el:"hs-input"},{prop:"value-on-clear",label:"被清空时显示的值",tooltip:"当输入框被清空时显示的值",type:"number / null / enum",el:"hs-input"},{prop:"validate-event",label:"是否触发表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],Krt={attrs:{"step-strictly":!1,size:"default",readonly:!1,disabled:!1,controls:!0,"validate-event":!0,placeholder:"请输入"},rules:{required:!1,rules:""}},Grt={class:"p-[10px] h-full"},Yrt=e.defineComponent({name:"inputNumberAttrConfig"}),Xrt=e.defineComponent({...Yrt,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(Krt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Grt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Urt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Zrt=[{prop:"attrs",label:"cascaderAttrs",tooltip:"cascaderAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"options",label:"选项的数据源",tooltip:"选项的数据源, value 和 label 可以通过 CascaderProps 自定义.(JSON)",type:"object",el:"hs-input",attrs:{type:"textarea"}},{prop:"props",label:"配置选项",tooltip:"配置选项, 请参阅下面 CascaderProps 表。",type:"object",el:"title",children:[{prop:"expandTrigger",label:"次级菜单展开方式",tooltip:"次级菜单的展开方式",type:"enum",el:"hs-select",op:[{label:"click",value:"click"},{label:"hover",value:"hover"}],cel:"hs-option"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"checkStrictly",label:"父子节点不关联",tooltip:"是否严格的遵守父子节点不互相关联",type:"boolean",el:"hs-switch"},{prop:"emitPath",label:"emitPath",tooltip:"在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值",type:"boolean",el:"hs-switch"},{prop:"lazy",label:"动态加载子节点",tooltip:"是否动态加载子节点,需与 lazyLoad 方法结合使用",type:"boolean",el:"hs-switch"},{prop:"lazyLoad",label:"加载动态数据方法",tooltip:"加载动态数据的方法,仅在 lazy 为 true 时有效",type:"string",el:"hs-input"},{prop:"value",label:"value",tooltip:"指定选项的值为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"label",label:"label",tooltip:"指定选项标签为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"children",label:"children",tooltip:"指定选项的子选项为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"disabled",label:"disabled",tooltip:"指定选项的禁用为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"leaf",label:"leaf",tooltip:"指定选项的叶子节点的标志位为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"hoverThreshold",label:"菜单的灵敏度阈值",tooltip:"hover 时展开菜单的灵敏度阈值",type:"number",el:"hs-input-number"}]},{prop:"size",label:"尺寸",tooltip:"尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"placeholder",label:"占位符",tooltip:"占位符",type:"string",el:"hs-input"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"clearable",label:"是否支持清空选项",tooltip:"是否支持清空选项",type:"boolean",el:"hs-switch"},{prop:"show-all-levels",label:"show-all-levels",tooltip:"输入框中是否显示选中值的完整路径",type:"boolean",el:"hs-switch"},{prop:"collapse-tags",label:"是否折叠Tag",tooltip:"多选模式下是否折叠Tag",type:"boolean",el:"hs-switch"},{prop:"collapse-tags-tooltip",label:"显示选中的标签",tooltip:"当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true",type:"boolean",el:"hs-switch"},{prop:"separator",label:"分隔选项的字符",tooltip:"用于分隔选项的字符",type:"string",el:"hs-input"},{prop:"filterable",label:"是否可以被搜索",tooltip:"该选项是否可以被搜索",type:"boolean",el:"hs-switch"},{prop:"filter-method",label:"自定义搜索逻辑",tooltip:"自定义搜索逻辑,第一个参数是node,第二个参数是keyword,返回的布尔值表示是否保留该选项(Function)",type:"Function",el:"hs-input"},{prop:"debounce",label:" 防抖延迟,毫秒",tooltip:"搜索关键词正在输入时的去抖延迟,单位为毫秒",type:"number",el:"hs-input-number"},{prop:"before-filter",label:"过滤函数前置钩子",tooltip:"过滤函数调用前,所要调用的钩子函数,该函数接收要过滤的值作为参数。 如果该函数的返回值是 false 或者是一个被拒绝的 Promise,那么接下来的过滤逻辑便不会执行。",type:"Function",el:"hs-input"},{prop:"popper-class",label:"自定义类名",tooltip:"弹出内容的自定义类名",type:"string",el:"hs-input"},{prop:"teleported",label:"是否使用teleport",tooltip:"弹层是否使用 teleport",type:"boolean",el:"hs-switch"},{prop:"tag-type",label:"标签类型",tooltip:"标签类型",type:"enum",el:"hs-select",op:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}],cel:"hs-option"},{prop:"validate-event",label:"是否触发表单校验",tooltip:"输入时是否触发表单的校验",type:"boolean",el:"hs-switch"},{prop:"max-collapse-tags",label:"Tag的最大数量",tooltip:"需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。",type:"number",el:"hs-input-number"}]}],Jrt={attrs:{size:"default",placeholder:"请选择",props:{expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,value:"value",label:"label",children:"children",disabled:"disabled",leaf:"leaf",hoverThreshold:500},"show-all-levels":!1,"collapse-tags-tooltip":!1,separator:"/",debounce:300,teleported:!0,"tag-type":"info","validate-event":!0,"max-collapse-tags":1}},Qrt={class:"p-[10px] h-full"},eot=e.defineComponent({name:"cascaderAttrConfig"}),tot=e.defineComponent({...eot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(Jrt)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Qrt,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Zrt),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),not=[{prop:"attrs",label:"cascaderAttrs",tooltip:"cascaderAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"options",label:"选项的数据源",tooltip:"选项的数据源, value 和 label 可以通过 CascaderProps 自定义. (JSON)",type:"object",el:"hs-input",attrs:{type:"textarea"}},{prop:"props",label:"配置选项",tooltip:"配置选项, 请参阅下面 CascaderProps 表。",type:"object",el:"title",children:[{prop:"expandTrigger",label:"次级菜单展开方式",tooltip:"次级菜单的展开方式",type:"enum",el:"hs-select",op:[{label:"click",value:"click"},{label:"hover",value:"hover"}],cel:"hs-option"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"checkStrictly",label:"父子节点不关联",tooltip:"是否严格的遵守父子节点不互相关联",type:"boolean",el:"hs-switch"},{prop:"emitPath",label:"emitPath",tooltip:"在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值",type:"boolean",el:"hs-switch"},{prop:"lazy",label:"动态加载子节点",tooltip:"是否动态加载子节点,需与 lazyLoad 方法结合使用",type:"boolean",el:"hs-switch"},{prop:"lazyLoad",label:"加载动态数据方法",tooltip:"加载动态数据的方法,仅在 lazy 为 true 时有效",type:"string",el:"hs-input"},{prop:"value",label:"value",tooltip:"指定选项的值为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"label",label:"label",tooltip:"指定选项标签为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"children",label:"children",tooltip:"指定选项的子选项为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"disabled",label:"disabled",tooltip:"指定选项的禁用为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"leaf",label:"leaf",tooltip:"指定选项的叶子节点的标志位为选项对象的某个属性值",type:"string",el:"hs-input"},{prop:"hoverThreshold",label:"菜单的灵敏度阈值",tooltip:"hover 时展开菜单的灵敏度阈值",type:"number",el:"hs-input-number"}]}]}],rot={attrs:{size:"default",props:{expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,value:"value",label:"label",children:"children",disabled:"disabled",leaf:"leaf",hoverThreshold:500}}},oot={class:"p-[10px] h-full"},aot=e.defineComponent({name:"cascaderPanelAttrConfig"}),lot=e.defineComponent({...aot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(rot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",oot,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(not),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),iot=[{prop:"attrs",label:"treeSelectAttrs",tooltip:"treeSelectAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"value-key",label:"value 唯一标识",tooltip:"作为 value 唯一标识的键名,绑定值为对象类型时必填",type:"string",el:"hs-input"},{prop:"placeholder",label:"占位符",tooltip:"占位符,默认为“Select”",type:"string",el:"hs-input"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"clearable",label:"是否可以清空",tooltip:"是否可以清空选项",type:"boolean",el:"hs-switch"},{prop:"collapse-tags",label:"值按文字展示",tooltip:"多选时是否将选中值按文字的形式展示",type:"boolean",el:"hs-switch"},{prop:"collapse-tags-tooltip",label:"是否显示所选",tooltip:"当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true",type:"boolean",el:"hs-switch"},{prop:"multiple-limit",label:"最多可选数",tooltip:"multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制",type:"number",el:"hs-input-number"},{prop:"name",label:"原生name属性",tooltip:"Select 输入框的原生 name 属性",type:"string",el:"hs-input"},{prop:"effect",label:"tooltip 主题",tooltip:"tooltip 主题,内置了 dark / light 两种",type:"enum / string",el:"hs-select",op:[{label:"dark",value:"dark"},{label:"light",value:"light"}],cel:"hs-option"},{prop:"autocomplete",label:"autocomplete",tooltip:"Select 输入框的原生 autocomplete 属性",type:"string",el:"hs-input"},{prop:"filterable",label:"是否可筛选",tooltip:"Select 组件是否可筛选",type:"boolean",el:"hs-switch"},{prop:"allow-create",label:"允许创建条目",tooltip:"是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。",type:"boolean",el:"hs-switch"},{prop:"filter-method",label:"筛选方法",tooltip:"自定义筛选方法",type:"Function",el:"hs-input"},{prop:"remote",label:"是否远程加载",tooltip:"其中的选项是否从服务器远程加载",type:"boolean",el:"hs-switch"},{prop:"remote-method",label:"远程搜索方法",tooltip:"自定义远程搜索方法",type:"Function",el:"hs-input"},{prop:"remote-show-suffix",label:"远程搜索图标",tooltip:"远程搜索方法显示后缀图标",type:"boolean",el:"hs-switch"},{prop:"loading",label:"是否正在获取",tooltip:"是否正在从远程获取数据",type:"boolean",el:"hs-switch"},{prop:"loading-text",label:"加载时文本",tooltip:"从服务器加载数据时显示的文本,默认为“Loading”",type:"string",el:"hs-input"},{prop:"no-match-text",label:"无匹配时显示",tooltip:"搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”",type:"string",el:"hs-input"},{prop:"no-data-text",label:"无选项时显示",tooltip:"无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”",type:"string",el:"hs-input"},{prop:"popper-class",label:"下拉菜单类名",tooltip:"选择器下拉菜单的自定义类名",type:"string",el:"hs-input"},{prop:"reserve-keyword",label:"保留关键词",tooltip:"当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词",type:"boolean",el:"hs-switch"},{prop:"default-first-option",label:"回车选择",tooltip:"是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用",type:"boolean",el:"hs-switch"},{prop:"teleported",label:"是否插入至body",tooltip:"是否将下拉列表插入至 body 元素",type:"boolean",el:"hs-switch"},{prop:"persistent",label:"选择器未被激活",tooltip:"当下拉选择器未被激活并且persistent设置为false,选择器会被删除。",type:"boolean",el:"hs-switch"},{prop:"automatic-dropdown",label:"自动弹出选项",tooltip:"对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单",type:"boolean",el:"hs-switch"},{prop:"clear-icon",label:"清除图标",tooltip:"自定义清除图标",type:"string / object",el:"hs-input"},{prop:"fit-input-width",label:"下拉框宽度",tooltip:"下拉框的宽度是否与输入框相同",type:"boolean",el:"hs-switch"},{prop:"suffix-icon",label:"后缀图标",tooltip:"自定义后缀图标组件",type:"string / object",el:"hs-input"},{prop:"suffix-transition deprecated",label:"下拉图标动画",tooltip:"下拉菜单显示/消失时后缀图标的动画",type:"boolean",el:"hs-switch"},{prop:"tag-type",label:"标签类型",tooltip:"标签类型",type:"enum",el:"hs-select",op:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}],cel:"hs-option"},{prop:"validate-event",label:"表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"placement",label:"下拉框出现位置",tooltip:"下拉框出现的位置",type:"enum",el:"hs-select",op:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}],cel:"hs-option"},{prop:"max-collapse-tags",label:"Tag最大数量",tooltip:"需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。",type:"number",el:"hs-input-number"},{prop:"popper-options",label:"popper参数",tooltip:"popper.js 参数",type:"objectrefer to popper.js doc",el:"hs-input"},{prop:"aria-label",label:"aria-label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"},{prop:"treeAttrs",label:"treeAttrs",tooltip:"treeAttrs",type:"title",el:"title"},{prop:"data",label:"data展示数据",tooltip:"data展示数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取data数据",tooltip:"通过url请求获取data展示数据",type:"string",el:"hs-input"},{prop:"params",label:"请求参数",tooltip:"请求参数",type:"string",el:"hs-input"},{prop:"proxy",label:"系统代理",tooltip:"系统代理",type:"string",el:"hs-input"},{prop:"empty-text",label:"内容为空时的文本",tooltip:"内容为空的时候展示的文本",type:"string",el:"hs-input"},{prop:"node-key",label:"唯一标识",tooltip:"每个树节点用来作为唯一标识的属性,整棵树应该是唯一的",type:"string",el:"hs-input"},{prop:"props",label:"props 配置选项",tooltip:"配置选项,具体看下表",type:"title",el:"title",children:[{prop:"label",label:"label",tooltip:"指定节点标签为节点对象的某个属性值",type:"string",el:"hs-input"},{prop:"children",label:"children",tooltip:"指定子树为节点对象的某个属性值",type:"string",el:"hs-input"},{prop:"disabled",label:"disabled",tooltip:"指定节点选择框是否禁用为节点对象的某个属性值",type:"string",el:"hs-input"},{prop:"isLeaf",label:"是否为叶子节点",tooltip:"指定节点是否为叶子节点,仅在指定了 lazy 属性的情况下生效",type:"string",el:"hs-input"},{prop:"class",label:"节点类名",tooltip:"自定义节点类名",type:"string",el:"hs-input"}]},{prop:"render-after-expand",label:"延迟渲染子节点",tooltip:"是否在第一次展开某个树节点后才渲染其子节点",type:"boolean",el:"hs-switch"},{prop:"load",label:"load",tooltip:"加载子树数据的方法,仅当 lazy 属性为true 时生效",type:"function(node, resolve),node为当前点击的节点,resolve为数据加载完成的回调(必须调用)",el:"hs-input"},{prop:"render-content",label:"节点内容区的渲染",tooltip:"树节点的内容区的渲染 Function",type:"Function(h, { node, data, store })",el:"hs-input"},{prop:"highlight-current",label:"高亮当前选中节点",tooltip:"是否高亮当前选中节点,默认值是 false。",type:"boolean",el:"hs-switch"},{prop:"default-expand-all",label:"默认展开所有节点",tooltip:"是否默认展开所有节点",type:"boolean",el:"hs-switch"},{prop:"expand-on-click-node",label:"展开或收缩节点",tooltip:"是否在点击节点的时候展开或者收缩节点, 默认值为 true,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。",type:"boolean",el:"hs-switch"},{prop:"check-on-click-node",label:"点击节点选中节点",tooltip:"是否在点击节点的时候选中节点,默认值为 false,即只有在点击复选框时才会选中节点。",type:"boolean",el:"hs-switch"},{prop:"auto-expand-parent",label:"自动展开父节点",tooltip:"展开子节点的时候是否自动展开父节点",type:"boolean",el:"hs-switch"},{prop:"default-expanded-keys",label:"默认展开数组",tooltip:"默认展开的节点的 key 的数组",type:"array",el:"hs-input"},{prop:"show-checkbox",label:"节点是否可被选择",tooltip:"节点是否可被选择",type:"boolean",el:"hs-switch"},{prop:"check-strictly",label:"父子不互相关联",tooltip:"在显示复选框的情况下,是否严格的遵循父子不互相关联的做法,默认为 false",type:"boolean",el:"hs-switch"},{prop:"default-checked-keys",label:"默认勾选的数组",tooltip:"默认勾选的节点的 key 的数组",type:"array",el:"hs-input"},{prop:"current-node-key",label:"当前选中的节点",tooltip:"当前选中的节点",type:"string / number",el:"hs-input"},{prop:"filter-node-method",label:"树节点的筛选方法",tooltip:"对树节点进行筛选时执行的方法, 返回 false 则表示这个节点会被隐藏",type:"Function(value, data, node)",el:"hs-input"},{prop:"accordion",label:"accordion",tooltip:"是否每次只打开一个同级树节点展开",type:"boolean",el:"hs-switch"},{prop:"indent",label:"节点间的缩进",tooltip:"相邻级节点间的水平缩进,单位为像素",type:"number",el:"hs-input"},{prop:"icon",label:"树节点图标组件",tooltip:"自定义树节点图标组件",type:"string | Component",el:"hs-input"},{prop:"lazy",label:"是否懒加载子节点",tooltip:"是否懒加载子节点,需与 load 方法结合使用",type:"boolean",el:"hs-switch"},{prop:"draggable",label:"开启拖拽功能",tooltip:"是否开启拖拽节点功能",type:"boolean",el:"hs-switch"},{prop:"allow-drag",label:"节点能否被拖拽",tooltip:"判断节点能否被拖拽 如果返回 false ,节点不能被拖动",type:"Function(node)",el:"hs-input"},{prop:"allow-drop",label:"allow-drop",tooltip:"拖拽时判定目标节点能否成为拖动目标位置。 如果返回 false ,拖动节点不能被拖放到目标节点。 type 参数有三种情况:'prev'、'inner' 和 'next',分别表示放置在目标节点前、插入至目标节点和放置在目标节点后",type:"Function(draggingNode, dropNode, type)",el:"hs-input"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],sot={attrs:{size:"default",multiple:!1,disabled:!1,"value-key":"value",clearable:!1,"collapse-tags":!1,"collapse-tags-tooltip":!1,"multiple-limit":0,effect:"light",autocomplete:"off",filterable:!0,"allow-create":!1,remote:!1,"remote-show-suffix":!1,loading:!1,"reserve-keyword":!0,"default-first-option":!1,teleported:!0,persistent:!0,"automatic-dropdown":!0,"clear-icon":"","fit-input-width":!1,"suffix-icon":"","tag-type":"info","validate-event":!0,placement:"bottom-start","max-collapse-tags":1,props:{},data:"string=",placeholder:"请选择"},rules:{required:!1,rules:""}},uot={class:"p-[10px] h-full"},cot=e.defineComponent({name:"treeSelectAttrConfig"}),dot=e.defineComponent({...cot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ke.isEmpty(n.data)?Object.assign(n.data,Ke.cloneDeep(sot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",uot,[e.createVNode(qa,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(iot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),fot=[{title:"hs-test",componentName:uSe},{title:"hs-table",componentName:pSe},{title:"hs-bc-table",componentName:mSe},{title:"hs-button",componentName:YSe},{title:"hs-button-group",componentName:JSe},{title:"hs-input",componentName:e5e},{title:"hs-select",componentName:n5e},{title:"hs-option",componentName:a5e},{title:"hs-option-group",componentName:s5e},{title:"hs-form",componentName:c5e},{title:"hs-form-item",componentName:f5e},{title:"hs-row",componentName:v5e},{title:"hs-col",componentName:h5e},{title:"hs-tree",componentName:y5e},{title:"hs-input-number",componentName:C5e},{title:"hs-switch",componentName:w5e},{title:"hs-radio",componentName:k5e},{title:"hs-radio-group",componentName:B5e},{title:"hs-radio-button",componentName:T5e},{title:"hs-checkbox",componentName:V5e},{title:"hs-checkbox-group",componentName:O5e},{title:"hs-checkbox-button",componentName:M5e},{title:"hs-rate",componentName:I5e},{title:"hs-autocomplete",componentName:F5e},{title:"hs-slider",componentName:L5e},{title:"hs-cascader",componentName:W5e},{title:"hs-cascader-panel",componentName:q5e},{title:"hs-color-picker",componentName:K5e},{title:"hs-upload",componentName:Y5e},{title:"hs-transfer",componentName:Z5e},{title:"hs-date-picker",componentName:Q5e},{title:"hs-scrollbar",componentName:tBe},{title:"hs-calendar",componentName:rBe},{title:"hs-carousel",componentName:aBe},{title:"hs-carousel-item",componentName:iBe},{title:"hs-collapse",componentName:uBe},{title:"hs-collapse-item",componentName:dBe},{title:"hs-progress",componentName:pBe},{title:"hs-result",componentName:mBe},{title:"hs-tour",componentName:gBe},{title:"hs-tour-step",componentName:yBe},{title:"hs-tag",componentName:CBe},{title:"hs-check-tag",componentName:wBe},{title:"hs-affix",componentName:kBe},{title:"hs-tabs",componentName:BBe},{title:"hs-tab-pane",componentName:TBe},{title:"hs-steps",componentName:VBe},{title:"hs-step",componentName:OBe},{title:"hs-alert",componentName:MBe},{title:"hs-dialog",componentName:IBe},{title:"hs-drawer",componentName:FBe},{title:"hs-popconfirm",componentName:LBe},{title:"hs-popover",componentName:WBe},{title:"hs-tooltip",componentName:qBe},{title:"hs-watermark",componentName:KBe},{title:"hs-dropdown",componentName:YBe},{title:"hs-dropdown-menu",componentName:ZBe},{title:"hs-dropdown-item",componentName:QBe},{title:"hs-tree-select",componentName:t9e},{title:"hs-badge",componentName:r9e},{title:"bc-btn",componentName:d9e},{title:"bc-box",componentName:lZe},{title:"bc-radio",componentName:sZe},{title:"bc-checkbox",componentName:cZe},{title:"bc-icon",componentName:l9e},{title:"bc-form",componentName:jZe},{title:"bc-table",componentName:UZe},{title:"bc-form-table",componentName:XQe},{title:"bc-form-config",componentName:oet},{title:"bc-select",componentName:JQe},{title:"bc-tree-select",componentName:iet},{title:"bc-page-config",componentName:Vnt},{title:"bc-switch-systems",componentName:Rnt},{title:"bc-auto-complete",componentName:Pnt},{title:"bc-group-date",componentName:Lnt},{title:"bc-page-tree-for-system",componentName:Gnt},{title:"hs-config-input",componentName:nrt},{title:"hs-config-event",componentName:art},{title:"hs-config-select",componentName:crt},{title:"hs-config-date-picker",componentName:mrt},{title:"hs-config-button",componentName:_rt},{title:"hs-config-autocomplete",componentName:krt},{title:"hs-config-switch",componentName:Drt},{title:"hs-config-upload",componentName:Mrt},{title:"hs-config-checkbox",componentName:zrt},{title:"hs-config-radio",componentName:qrt},{title:"hs-config-input-number",componentName:Xrt},{title:"hs-config-cascader",componentName:tot},{title:"hs-config-cascader-panel",componentName:lot},{title:"hs-config-tree-select",componentName:dot}],OP={install(t){fot.forEach(n=>{t.component(n.title,n.componentName)})}};function pot(t){t.directive("auth",{mounted(n,r){il().userInfos.authBtnList.some(a=>a===r.value)||n.parentNode.removeChild(n)}}),t.directive("auths",{mounted(n,r){let o=!1;il().userInfos.authBtnList.map(l=>{r.value.map(i=>{l===i&&(o=!0)})}),o||n.parentNode.removeChild(n)}}),t.directive("auth-all",{mounted(n,r){const o=il();q6(r.value,o.userInfos.authBtnList)||n.parentNode.removeChild(n)}})}function vot(t){t.directive("waves",{mounted(n,r){n.classList.add("waves-effect"),r.value&&n.classList.add(`waves-${r.value}`);function o(l){let i="";for(let u in l)l.hasOwnProperty(u)&&(i+=`${u}:${l[u]};`);return i}function a(l){let i=document.createElement("div");i.classList.add("waves-ripple"),n.appendChild(i);let u={left:`${l.layerX}px`,top:`${l.layerY}px`,opacity:1,transform:`scale(${n.clientWidth/100*10})`,"transition-duration":"750ms","transition-timing-function":"cubic-bezier(0.250, 0.460, 0.450, 0.940)"};i.setAttribute("style",o(u)),setTimeout(()=>{i.setAttribute("style",o({opacity:0,transform:u.transform,left:u.left,top:u.top})),setTimeout(()=>{i&&n.removeChild(i)},750)},450)}n.addEventListener("mousedown",a,!1)},unmounted(n){n.addEventListener("mousedown",()=>{})}})}function mot(t){t.directive("drag",{mounted(n,r){if(!r.value)return!1;const o=document.querySelector(r.value[0]),a=document.querySelector(r.value[1]);a.onmouseover=()=>a.style.cursor="move";function l(u,s){const c=s==="pc"?u.clientX-a.offsetLeft:u.touches[0].clientX-a.offsetLeft,d=s==="pc"?u.clientY-a.offsetTop:u.touches[0].clientY-a.offsetTop,f=document.body.clientWidth,p=document.documentElement.clientHeight,m=o.offsetWidth,v=o.offsetHeight,g=o.offsetLeft,y=f-o.offsetLeft-m,C=o.offsetTop,w=p-o.offsetTop-v;let b=getComputedStyle(o).left,x=getComputedStyle(o).top;return b.includes("%")?(b=+document.body.clientWidth*(+b.replace(/\%/g,"")/100),x=+document.body.clientHeight*(+x.replace(/\%/g,"")/100)):(b=+b.replace(/\px/g,""),x=+x.replace(/\px/g,"")),{disX:c,disY:d,minDragDomLeft:g,maxDragDomLeft:y,minDragDomTop:C,maxDragDomTop:w,styL:b,styT:x}}function i(u,s,c){let{disX:d,disY:f,minDragDomLeft:p,maxDragDomLeft:m,minDragDomTop:v,maxDragDomTop:g,styL:y,styT:C}=c,w=s==="pc"?u.clientX-d:u.touches[0].clientX-d,b=s==="pc"?u.clientY-f:u.touches[0].clientY-f;-w>p?w=-p:w>m&&(w=m),-b>v?b=-v:b>g&&(b=g),o.style.cssText+=`;left:${w+y}px;top:${b+C}px;`}a.onmousedown=u=>{const s=l(u,"pc");document.onmousemove=c=>{i(c,"pc",s)},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null}},a.ontouchstart=u=>{const s=l(u,"app");document.ontouchmove=c=>{i(c,"app",s)},document.ontouchend=()=>{document.ontouchmove=null,document.ontouchend=null}}}})}function hot(t){pot(t),vot(t),mot(t)}const got=Object.freeze(Object.defineProperty({__proto__:null,directive:hot},Symbol.toStringTag,{value:"Module"}));function bot(t,n){ni.value=n==null?void 0:n.NEXT_NAME,ld.value=(n==null?void 0:n.IS_DEV)||!1,t.use(Kke).use(OP)}exports.ClickOutside=Ii;exports.ElConfigProvider=QD;exports.ElMessage=ir;exports.ElMessageBox=da;exports.ElTree=X7;exports.NextLoading=X2;exports.Session=wo;exports._=Ke;exports._export_sfc=zr;exports._sfc_main=SP;exports.avatar_default=LT;exports.baseForm=qa;exports.commonjsGlobal=an;exports.component=OP;exports.delete_default=d3;exports.edit_default=KT;exports.formatAxis=YA;exports.getDataType=XA;exports.getDefaultExportFromCjs=Jo;exports.getFormData=rP;exports.getLoadData=nP;exports.index=ZXe;exports.index$1=got;exports.index$2=KSe;exports.inputAttrConfigMap=b1;exports.isObjectValueEqual=U6;exports.lodashExports=B6;exports.mittBus=QA;exports.onBeforeRouteUpdate=E$e;exports.other=iM;exports.request=Gn;exports.setBackEndControlRefreshRoutes=y7e;exports.setting_default=oD;exports.showPopup=v1;exports.storeToRefs=Mu;exports.systemStore=Di;exports.to=ud;exports.useBtnConfigController=zx;exports.useFieldConfigController=ap;exports.useHsAdminUi=bot;exports.useKeepALiveNames=HA;exports.useMenuController=tx;exports.usePostMan=EP;exports.useRoute=U$e;exports.useRouter=q$e;exports.useRoutesList=Q2;exports.useSystemController=kP;exports.useTagsViewRoutes=Q6;exports.useThemeConfig=e1;exports.useUserInfo=il;exports.useVModel=D6;exports.verifyUrl=ox;exports.zhCn=Gke;