hs-admin-ui 2.2.3 → 2.2.4

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 (472) hide show
  1. package/dist/{401-K6rKZPto.mjs → 401-Cm4UyHrn.mjs} +1 -1
  2. package/dist/401-Cm4UyHrn.mjs.gz +0 -0
  3. package/dist/{401--mcUZIMQ.js → 401-D6l3Unb4.js} +1 -1
  4. package/dist/401-D6l3Unb4.js.gz +0 -0
  5. package/dist/{404-BI2pzVj6.js → 404-B3qRvGDM.js} +1 -1
  6. package/dist/{404-BI2pzVj6.js.gz → 404-B3qRvGDM.js.gz} +0 -0
  7. package/dist/{404-C7uEconc.mjs → 404-CA1GQT7h.mjs} +1 -1
  8. package/dist/{404-C7uEconc.mjs.gz → 404-CA1GQT7h.mjs.gz} +0 -0
  9. package/dist/{account-DZVIBPyB.js → account-B57RnX3H.js} +1 -1
  10. package/dist/account-B57RnX3H.js.gz +0 -0
  11. package/dist/{account-Dh9CMRU3.mjs → account-pKq4HqKN.mjs} +2 -2
  12. package/dist/account-pKq4HqKN.mjs.gz +0 -0
  13. package/dist/{aside-BA12A9c4.js → aside-BFJ4lSlj.js} +1 -1
  14. package/dist/aside-BFJ4lSlj.js.gz +0 -0
  15. package/dist/{aside-3oejr13M.mjs → aside-BipyY6_z.mjs} +2 -2
  16. package/dist/aside-BipyY6_z.mjs.gz +0 -0
  17. package/dist/{baseFormConfig-uteR76ht.mjs → baseFormConfig-Cg6u_0K4.mjs} +1 -3
  18. package/dist/{baseFormConfig-uteR76ht.mjs.gz → baseFormConfig-Cg6u_0K4.mjs.gz} +0 -0
  19. package/dist/{btnIndex-BNSjgO4_.mjs → btnIndex-CNxW_dBl.mjs} +2 -2
  20. package/dist/btnIndex-CNxW_dBl.mjs.gz +0 -0
  21. package/dist/{btnIndex-CBA_g7ks.js → btnIndex-_CFMTzst.js} +1 -1
  22. package/dist/btnIndex-_CFMTzst.js.gz +0 -0
  23. package/dist/{classic-CACY4n6h.mjs → classic-CKATtEZS.mjs} +2 -2
  24. package/dist/classic-CKATtEZS.mjs.gz +0 -0
  25. package/dist/{classic-CCjqQLC6.js → classic-NOJ-HTWr.js} +1 -1
  26. package/dist/classic-NOJ-HTWr.js.gz +0 -0
  27. package/dist/{columns-DnGPl0KH.js → columns-68FUwhRr.js} +1 -1
  28. package/dist/columns-68FUwhRr.js.gz +0 -0
  29. package/dist/{columns-Cmf0MrSv.mjs → columns-Bm-jMXAe.mjs} +2 -2
  30. package/dist/columns-Bm-jMXAe.mjs.gz +0 -0
  31. package/dist/{columnsAside-D3cGd2l6.mjs → columnsAside-CHeVzmfv.mjs} +1 -1
  32. package/dist/columnsAside-CHeVzmfv.mjs.gz +0 -0
  33. package/dist/{columnsAside-CiUCjFPc.js → columnsAside-C_bzgzl4.js} +1 -1
  34. package/dist/columnsAside-C_bzgzl4.js.gz +0 -0
  35. package/dist/{contextmenu-D5di3GrN.mjs → contextmenu-BXMFHFYb.mjs} +1 -1
  36. package/dist/contextmenu-BXMFHFYb.mjs.gz +0 -0
  37. package/dist/{contextmenu-Bi_hFl-X.mjs → contextmenu-BxiGYFGk.mjs} +1 -1
  38. package/dist/contextmenu-BxiGYFGk.mjs.gz +0 -0
  39. package/dist/{contextmenu-D_94rB-q.js → contextmenu-D7XW_CY4.js} +1 -1
  40. package/dist/contextmenu-D7XW_CY4.js.gz +0 -0
  41. package/dist/{contextmenu-BFQoMBqu.js → contextmenu-Dauo34Cy.js} +1 -1
  42. package/dist/contextmenu-Dauo34Cy.js.gz +0 -0
  43. package/dist/{defaults-CAaJGeeq.js → defaults-CJ2HPmTX.js} +1 -1
  44. package/dist/defaults-CJ2HPmTX.js.gz +0 -0
  45. package/dist/{defaults-Ld7L13kE.mjs → defaults-Ddv2dnHZ.mjs} +2 -2
  46. package/dist/defaults-Ddv2dnHZ.mjs.gz +0 -0
  47. package/dist/{dialog-C_jEYDIT.js → dialog-Bs3XboR8.js} +1 -1
  48. package/dist/{dialog-CxxRCcwF.mjs → dialog-C6MMF0gM.mjs} +1 -1
  49. package/dist/{dialog-B6JRn3Ww.js → dialog-CclJ9_n4.js} +1 -1
  50. package/dist/{dialog-SEhk_vLn.mjs → dialog-DUxJQXbo.mjs} +1 -1
  51. package/dist/{dialog-DOpzdoYQ.js → dialog-DuZBbr3m.js} +1 -1
  52. package/dist/{dialog-CbXHri3l.mjs → dialog-jRenVFMG.mjs} +1 -1
  53. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-FAZGNEJt.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BZLt8B3r.mjs} +2 -2
  54. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BZLt8B3r.mjs.gz +0 -0
  55. package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DTjHFYEZ.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-igKXmwB7.js} +1 -1
  56. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-igKXmwB7.js.gz +0 -0
  57. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Nq5BX8Ok.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BPUgQqge.js} +1 -1
  58. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BPUgQqge.js.gz +0 -0
  59. package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B3T3IcKX.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Pb40L0Zu.mjs} +2 -2
  60. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Pb40L0Zu.mjs.gz +0 -0
  61. package/dist/{dictDialog-DxrzxaP9.mjs → dictDialog-CA4Puoj-.mjs} +1 -1
  62. package/dist/{dictDialog-BN3cJ-5n.js → dictDialog-NJ28vIBx.js} +1 -1
  63. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CPkS5FfC.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-2xZ7Kxhc.js} +1 -1
  64. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-2xZ7Kxhc.js.gz +0 -0
  65. package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CkVNc6ld.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CjbyqsgR.mjs} +2 -2
  66. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CjbyqsgR.mjs.gz +0 -0
  67. package/dist/{dictItemDialog-gah-AOb_.js → dictItemDialog-B2P_6G0z.js} +1 -1
  68. package/dist/{dictItemDialog-DGMblpEL.mjs → dictItemDialog-z2YfShd9.mjs} +1 -1
  69. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-BBy5VmaF.js → dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-BbIu_DVU.js} +1 -1
  70. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-BbIu_DVU.js.gz +0 -0
  71. package/dist/{dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-_PovTmFU.mjs → dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CCmvifc1.mjs} +2 -2
  72. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CCmvifc1.mjs.gz +0 -0
  73. package/dist/{formConfig-DNpjwytQ.js → formConfig-B3MAF6PS.js} +1 -1
  74. package/dist/formConfig-B3MAF6PS.js.gz +0 -0
  75. package/dist/{formConfig-DvNiRz7J.mjs → formConfig-BPG_7hFq.mjs} +4 -4
  76. package/dist/formConfig-BPG_7hFq.mjs.gz +0 -0
  77. package/dist/{header-2VuRDfd-.mjs → header-DCG_G8q3.mjs} +2 -2
  78. package/dist/{header-BKI-Q0is.js → header-KI2DnoP3.js} +1 -1
  79. package/dist/{horizontal-pST0XiQ4.js → horizontal-DT1F2rLG.js} +1 -1
  80. package/dist/horizontal-DT1F2rLG.js.gz +0 -0
  81. package/dist/{horizontal-Nq-tHA0-.mjs → horizontal-aFfUDBOz.mjs} +2 -2
  82. package/dist/horizontal-aFfUDBOz.mjs.gz +0 -0
  83. package/dist/{hsAttrBtn-CAeGIJ2M.js → hsAttrBtn-BH0cuz4r.js} +1 -1
  84. package/dist/{hsAttrBtn-BFMfuL8s.mjs → hsAttrBtn-rYIFelJu.mjs} +1 -1
  85. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-CNv1BhIw.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-CjXZnTCg.js} +1 -1
  86. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-CjXZnTCg.js.gz +0 -0
  87. package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-CMccccM4.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-b4QE9Bu3.mjs} +2 -2
  88. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-b4QE9Bu3.mjs.gz +0 -0
  89. package/dist/{hsAttrForm-BaNmfxLf.mjs → hsAttrForm-Bfbc4aHf.mjs} +1 -1
  90. package/dist/{hsAttrForm-BphPBJn2.js → hsAttrForm-CgRTvVte.js} +1 -1
  91. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-DUYKoN1H.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-Dxu7KOpO.mjs} +2 -2
  92. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-Dxu7KOpO.mjs.gz +0 -0
  93. package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-DCi0CMf2.js → hsAttrForm.vue_vue_type_script_setup_true_lang-l29DG4ig.js} +1 -1
  94. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-l29DG4ig.js.gz +0 -0
  95. package/dist/{hsBtnConfigList-Cjvrh4tI.mjs → hsBtnConfigList-B25X91pB.mjs} +1 -1
  96. package/dist/hsBtnConfigList-B25X91pB.mjs.gz +0 -0
  97. package/dist/{hsBtnConfigList-BaiHSuuo.js → hsBtnConfigList-D9TwUBcq.js} +1 -1
  98. package/dist/hsBtnConfigList-D9TwUBcq.js.gz +0 -0
  99. package/dist/{hsBtnItemConfig-B4zm9ZPP.js → hsBtnItemConfig-BEGYgi3f.js} +1 -1
  100. package/dist/{hsBtnItemConfig-CkoFH8xW.mjs → hsBtnItemConfig-DBfwVFBb.mjs} +1 -1
  101. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DH_7c6ii.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Cw2IYU_M.js} +1 -1
  102. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Cw2IYU_M.js.gz +0 -0
  103. package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Di__hQUs.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-txh00e1O.mjs} +1 -1
  104. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-txh00e1O.mjs.gz +0 -0
  105. package/dist/{hsBtnPanel-C1VS9uuc.mjs → hsBtnPanel-BrPIcTvd.mjs} +1 -1
  106. package/dist/{hsBtnPanel-UbjWG6mY.js → hsBtnPanel-CP7nQo2Q.js} +1 -1
  107. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C8roDflu.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-APJdBVGe.js} +1 -1
  108. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-APJdBVGe.js.gz +0 -0
  109. package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DW7Rr3-j.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DMfm0_Kx.mjs} +3 -3
  110. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DMfm0_Kx.mjs.gz +0 -0
  111. package/dist/{hsFormConfig-DQEkSyhA.mjs → hsFormConfig-B0lcPvQP.mjs} +49 -50
  112. package/dist/hsFormConfig-B0lcPvQP.mjs.gz +0 -0
  113. package/dist/hsFormConfig-CecEDFow.js +1 -0
  114. package/dist/hsFormConfig-CecEDFow.js.gz +0 -0
  115. package/dist/{hsFormConfigList-CJk_qezm.mjs → hsFormConfigList-D7MlbViU.mjs} +3 -3
  116. package/dist/hsFormConfigList-D7MlbViU.mjs.gz +0 -0
  117. package/dist/{hsFormConfigList-Bcf9fvrC.js → hsFormConfigList-DEj0r0Vr.js} +1 -1
  118. package/dist/hsFormConfigList-DEj0r0Vr.js.gz +0 -0
  119. package/dist/{hsFormPanel-D7GwXH9k.js → hsFormPanel-6lc0vAEc.js} +1 -1
  120. package/dist/{hsFormPanel-zo6tsrUp.mjs → hsFormPanel-BzsiWHQZ.mjs} +1 -1
  121. package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DmEyIRux.js → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CPToLhnk.js} +1 -1
  122. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CPToLhnk.js.gz +0 -0
  123. package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BKxl4eTT.mjs → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CdRRdqQg.mjs} +5 -5
  124. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CdRRdqQg.mjs.gz +0 -0
  125. package/dist/{hsFormParse-DzjK-aCL.js → hsFormParse-BciTLUfe.js} +1 -1
  126. package/dist/{hsFormParse-CNeoKLdl.mjs → hsFormParse-Bzp9x_cX.mjs} +1 -1
  127. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-CvtFrT0l.js → hsFormParse.vue_vue_type_script_setup_true_lang-BaLOgBNw.js} +1 -1
  128. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-BaLOgBNw.js.gz +0 -0
  129. package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-B6ARlgCn.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-DX4qa-Zb.mjs} +2 -2
  130. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-DX4qa-Zb.mjs.gz +0 -0
  131. package/dist/{hsPageTree-DD4-4qNt.mjs → hsPageTree-hpLDC3zN.mjs} +1 -1
  132. package/dist/hsPageTree-hpLDC3zN.mjs.gz +0 -0
  133. package/dist/{hsPageTree-CT-Ndq-Q.js → hsPageTree-vlGsEBXY.js} +1 -1
  134. package/dist/hsPageTree-vlGsEBXY.js.gz +0 -0
  135. package/dist/{hsPanelItem-Dsghq78i.js → hsPanelItem-B_8F-Ukv.js} +1 -1
  136. package/dist/{hsPanelItem-CBYi9R42.mjs → hsPanelItem-D30TgiTX.mjs} +1 -1
  137. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DwBOTzib.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-B1wJnJ60.js} +1 -1
  138. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-B1wJnJ60.js.gz +0 -0
  139. package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CFgVugGl.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-B4oHtBbk.mjs} +1 -1
  140. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-B4oHtBbk.mjs.gz +0 -0
  141. package/dist/{iframes-BVk5u6b3.js → iframes-CvxO6Lj3.js} +1 -1
  142. package/dist/iframes-CvxO6Lj3.js.gz +0 -0
  143. package/dist/{iframes-C80N9fzw.mjs → iframes-blud4JrX.mjs} +1 -1
  144. package/dist/iframes-blud4JrX.mjs.gz +0 -0
  145. package/dist/index-8MWXdSI-.js +1 -0
  146. package/dist/index-8MWXdSI-.js.gz +0 -0
  147. package/dist/{index-dFeWPS-8.mjs → index-B0tHHb5a.mjs} +1 -1
  148. package/dist/index-B0tHHb5a.mjs.gz +0 -0
  149. package/dist/{index-CnW1KwKg.mjs → index-BAuH_gnC.mjs} +4 -4
  150. package/dist/index-BAuH_gnC.mjs.gz +0 -0
  151. package/dist/{index-Cpi0vkMC.js → index-BE-kSt8Y.js} +1 -1
  152. package/dist/index-BE-kSt8Y.js.gz +0 -0
  153. package/dist/{index-DFN6BoY0.mjs → index-BF9dxtfp.mjs} +1 -1
  154. package/dist/index-BF9dxtfp.mjs.gz +0 -0
  155. package/dist/{index-lgsyxvIS.js → index-BJs_Pwun.js} +1 -1
  156. package/dist/index-BJs_Pwun.js.gz +0 -0
  157. package/dist/{index-ue9wvmcw.js → index-BLuJaNV9.js} +1 -1
  158. package/dist/index-BLuJaNV9.js.gz +0 -0
  159. package/dist/{index-BTJWnBVe.mjs → index-BOcJ2BSV.mjs} +1 -1
  160. package/dist/index-BOcJ2BSV.mjs.gz +0 -0
  161. package/dist/{index-CRaJD1Br.js → index-BQTHVFa3.js} +1 -1
  162. package/dist/{index-BZRE3hhB.js → index-BRe_YdvS.js} +1 -1
  163. package/dist/index-BRe_YdvS.js.gz +0 -0
  164. package/dist/{index-CeGWZbUt.mjs → index-BYXJiIYH.mjs} +3 -3
  165. package/dist/index-BYXJiIYH.mjs.gz +0 -0
  166. package/dist/{index-D1bpr6lu.js → index-B_mlw8SD.js} +1 -1
  167. package/dist/index-B_mlw8SD.js.gz +0 -0
  168. package/dist/{index-ryhQjybD.js → index-BswExGya.js} +1 -1
  169. package/dist/index-BswExGya.js.gz +0 -0
  170. package/dist/{index-BIyK3psJ.js → index-BwgiaR1S.js} +1 -1
  171. package/dist/{index-BQXnCvPu.js → index-BxcT163u.js} +1 -1
  172. package/dist/index-BxcT163u.js.gz +0 -0
  173. package/dist/{index-Ctrd7L41.mjs → index-ByDIOlcY.mjs} +1 -1
  174. package/dist/index-ByDIOlcY.mjs.gz +0 -0
  175. package/dist/{index-BS7H0gCx.js → index-C9rzDA42.js} +1 -1
  176. package/dist/{index-BQsh9kNO.mjs → index-CCmz_XIl.mjs} +3 -3
  177. package/dist/index-CCmz_XIl.mjs.gz +0 -0
  178. package/dist/{index-Dd4jTw78.mjs → index-CLzknAqK.mjs} +90 -96
  179. package/dist/index-CLzknAqK.mjs.gz +0 -0
  180. package/dist/{index-BOdhVHuW.mjs → index-CNgExBuO.mjs} +1 -1
  181. package/dist/{index-Do5SpoiI.js → index-COgShkx_.js} +1 -1
  182. package/dist/index-COgShkx_.js.gz +0 -0
  183. package/dist/{index-C3E4E-yA.js → index-CWSIXTky.js} +1 -1
  184. package/dist/index-CWSIXTky.js.gz +0 -0
  185. package/dist/{index-Gv1eatv8.js → index-CbM_l6Nj.js} +1 -1
  186. package/dist/index-CbM_l6Nj.js.gz +0 -0
  187. package/dist/{index-DZ3CwnzU.js → index-CbYnG5Q_.js} +1 -1
  188. package/dist/index-CbYnG5Q_.js.gz +0 -0
  189. package/dist/{index-CzDgKLQO.js → index-CjK4GO4m.js} +1 -1
  190. package/dist/index-CjK4GO4m.js.gz +0 -0
  191. package/dist/{index-BSBSl97c.js → index-CkpVIxXC.js} +1 -1
  192. package/dist/index-CkpVIxXC.js.gz +0 -0
  193. package/dist/{index-CcHVnp-F.mjs → index-Co2gmRjp.mjs} +1 -1
  194. package/dist/{index-B7rFYaKF.mjs → index-Cq4f9Irw.mjs} +6 -6
  195. package/dist/{index-B7rFYaKF.mjs.gz → index-Cq4f9Irw.mjs.gz} +0 -0
  196. package/dist/{index-MZddaE3p.js → index-CtPDlvs7.js} +1 -1
  197. package/dist/{index-CqzTQ5kt.mjs → index-D64hfGEl.mjs} +1 -1
  198. package/dist/index-D64hfGEl.mjs.gz +0 -0
  199. package/dist/{index-D5JyAvvg.js → index-D6sihOkL.js} +1 -1
  200. package/dist/index-D6sihOkL.js.gz +0 -0
  201. package/dist/{index-CGHk8NGQ.mjs → index-D9zqUpvs.mjs} +1 -1
  202. package/dist/index-D9zqUpvs.mjs.gz +0 -0
  203. package/dist/{index-Dmd_3-Pb.mjs → index-DAJ8ikd6.mjs} +1 -1
  204. package/dist/index-DIkniZUQ.mjs +89 -0
  205. package/dist/index-DIkniZUQ.mjs.gz +0 -0
  206. package/dist/index-DKJ9LDEF.js +1 -0
  207. package/dist/index-DKJ9LDEF.js.gz +0 -0
  208. package/dist/{index-37NTgdCA.js → index-DMCgUPNZ.js} +3 -3
  209. package/dist/{index-37NTgdCA.js.gz → index-DMCgUPNZ.js.gz} +0 -0
  210. package/dist/{index-CAyQU0uh.mjs → index-DQ8lZLIX.mjs} +1 -1
  211. package/dist/index-DQ8lZLIX.mjs.gz +0 -0
  212. package/dist/{index-BYTo8HrK.js → index-DQRMCbSC.js} +1 -1
  213. package/dist/{index-BROSa86L.js → index-DVHIwOv_.js} +1 -1
  214. package/dist/index-DVHIwOv_.js.gz +0 -0
  215. package/dist/{index-wNjqLqNy.js → index-DWPTiJTx.js} +1 -1
  216. package/dist/index-DWPTiJTx.js.gz +0 -0
  217. package/dist/{index-BPje1eI7.mjs → index-DZH7vLi7.mjs} +1 -1
  218. package/dist/index-DZH7vLi7.mjs.gz +0 -0
  219. package/dist/{index-Cay4c5lc.mjs → index-DZOSR3zs.mjs} +2 -2
  220. package/dist/index-DZOSR3zs.mjs.gz +0 -0
  221. package/dist/{index-DhhBIFnm.mjs → index-Dcne6FCJ.mjs} +2 -2
  222. package/dist/index-Dcne6FCJ.mjs.gz +0 -0
  223. package/dist/{index-Ts3jctsu.mjs → index-Dgj_B9pZ.mjs} +5 -5
  224. package/dist/index-Dgj_B9pZ.mjs.gz +0 -0
  225. package/dist/{index-B-cORFVu.mjs → index-DloRTwVf.mjs} +2 -2
  226. package/dist/index-DloRTwVf.mjs.gz +0 -0
  227. package/dist/{index-DmikjLdo.js → index-DoT9PNfG.js} +1 -1
  228. package/dist/index-DoT9PNfG.js.gz +0 -0
  229. package/dist/{index-UT8cCqpZ.mjs → index-FPVl9WA3.mjs} +1 -1
  230. package/dist/index-FPVl9WA3.mjs.gz +0 -0
  231. package/dist/{index-Tz1EKSvb.js → index-SMRmfcCL.js} +1 -1
  232. package/dist/index-SMRmfcCL.js.gz +0 -0
  233. package/dist/{index-CmP7rFIe.js → index-U2H8QC50.js} +1 -1
  234. package/dist/{index-CYtxeKIs.js → index-ZxKUeU_7.js} +1 -1
  235. package/dist/index-ZxKUeU_7.js.gz +0 -0
  236. package/dist/{index-CmNOPnje.mjs → index-b_lTB3-i.mjs} +1 -1
  237. package/dist/index-b_lTB3-i.mjs.gz +0 -0
  238. package/dist/{index-CUoFSOIZ.mjs → index-cNeOhsA7.mjs} +1 -1
  239. package/dist/index-cNeOhsA7.mjs.gz +0 -0
  240. package/dist/{index-Dfpm2Sgx.js → index-cNqIeJU8.js} +1 -1
  241. package/dist/index-cNqIeJU8.js.gz +0 -0
  242. package/dist/{index-Ca5CqUfq.mjs → index-dflG63Zo.mjs} +1 -1
  243. package/dist/index-dflG63Zo.mjs.gz +0 -0
  244. package/dist/{index-pLAvMBU8.mjs → index-f5Av9FK3.mjs} +1 -1
  245. package/dist/index-lBtAYKZs.mjs +4 -0
  246. package/dist/{index-Cywg3PGo.mjs → index-mjVkimoE.mjs} +2 -2
  247. package/dist/{index-zzPbNiax.mjs → index-ssBL34UZ.mjs} +2 -2
  248. package/dist/index-ssBL34UZ.mjs.gz +0 -0
  249. package/dist/index.js +1 -1
  250. package/dist/index.mjs +1 -1
  251. package/dist/{link-DXWr4C-O.mjs → link-3RIggMQA.mjs} +1 -1
  252. package/dist/link-3RIggMQA.mjs.gz +0 -0
  253. package/dist/{link-DsY0AuZK.js → link-789SB29w.js} +1 -1
  254. package/dist/link-789SB29w.js.gz +0 -0
  255. package/dist/{list-CeOZeDjd.mjs → list-CLc4yeOH.mjs} +1 -1
  256. package/dist/list-CLc4yeOH.mjs.gz +0 -0
  257. package/dist/{list-Ca24FoQe.js → list-Dgz0QoeV.js} +1 -1
  258. package/dist/list-Dgz0QoeV.js.gz +0 -0
  259. package/dist/{main-Dw_ctsYQ.js → main-C2RV1VCv.js} +1 -1
  260. package/dist/main-C2RV1VCv.js.gz +0 -0
  261. package/dist/{main-zkkIbaEi.mjs → main-DRpvqMV6.mjs} +2 -2
  262. package/dist/main-DRpvqMV6.mjs.gz +0 -0
  263. package/dist/{mobile-DpiPdOUo.js → mobile-BTHKKa07.js} +1 -1
  264. package/dist/mobile-BTHKKa07.js.gz +0 -0
  265. package/dist/{mobile-Bkj4_0E5.mjs → mobile-cURvn2Kj.mjs} +1 -1
  266. package/dist/mobile-cURvn2Kj.mjs.gz +0 -0
  267. package/dist/{parent-C1uhpLK2.js → parent-BhntEG8N.js} +1 -1
  268. package/dist/parent-BhntEG8N.js.gz +0 -0
  269. package/dist/{parent-BIPcmQ2E.mjs → parent-DW55ZEOx.mjs} +2 -2
  270. package/dist/parent-DW55ZEOx.mjs.gz +0 -0
  271. package/dist/{roleItem-Df3BW0R1.mjs → roleItem-Bb50JOsw.mjs} +1 -1
  272. package/dist/roleItem-Bb50JOsw.mjs.gz +0 -0
  273. package/dist/{roleItem-CG5xJEy9.js → roleItem-C5LbjO6_.js} +1 -1
  274. package/dist/roleItem-C5LbjO6_.js.gz +0 -0
  275. package/dist/{saveForm-DfX9f5zk.mjs → saveForm-0HBSAv9B.mjs} +1 -1
  276. package/dist/{saveForm-COrDlMW7.js → saveForm-YHkBljYy.js} +1 -1
  277. package/dist/{saveForm.vue_vue_type_script_setup_true_lang-Ds_sMXcc.mjs → saveForm.vue_vue_type_script_setup_true_lang-B01aIdhs.mjs} +1 -1
  278. package/dist/saveForm.vue_vue_type_script_setup_true_lang-B01aIdhs.mjs.gz +0 -0
  279. package/dist/{saveForm.vue_vue_type_script_setup_true_lang-DCejoBPz.js → saveForm.vue_vue_type_script_setup_true_lang-ORGwZ-zn.js} +1 -1
  280. package/dist/saveForm.vue_vue_type_script_setup_true_lang-ORGwZ-zn.js.gz +0 -0
  281. package/dist/{scan-3S8xVYcz.js → scan-Bdzh4ubu.js} +1 -1
  282. package/dist/scan-Bdzh4ubu.js.gz +0 -0
  283. package/dist/{scan-CS2dfWh8.mjs → scan-DbI0Lrj1.mjs} +1 -1
  284. package/dist/scan-DbI0Lrj1.mjs.gz +0 -0
  285. package/dist/{search-B71lmQhf.mjs → search-BPn6M1ae.mjs} +1 -1
  286. package/dist/search-BPn6M1ae.mjs.gz +0 -0
  287. package/dist/{search-CH70W17S.js → search-BpJWX23A.js} +1 -1
  288. package/dist/search-BpJWX23A.js.gz +0 -0
  289. package/dist/{selectConfig-mB6EqC8H.mjs → selectConfig-BHA4JzIn.mjs} +1 -1
  290. package/dist/selectConfig-BHA4JzIn.mjs.gz +0 -0
  291. package/dist/{selectConfig-DTBSoXcQ.js → selectConfig-CM_9WNV1.js} +1 -1
  292. package/dist/selectConfig-CM_9WNV1.js.gz +0 -0
  293. package/dist/style.css +1 -1
  294. package/dist/style.css.gz +0 -0
  295. package/dist/{subItem-BgBmrej1.js → subItem-B1iwvKHF.js} +1 -1
  296. package/dist/subItem-B1iwvKHF.js.gz +0 -0
  297. package/dist/{subItem-CpR3oGJp.mjs → subItem-C93pMVrp.mjs} +1 -1
  298. package/dist/subItem-C93pMVrp.mjs.gz +0 -0
  299. package/dist/{tagsView-D0sAcRw9.mjs → tagsView-BgtcJuwH.mjs} +2 -2
  300. package/dist/tagsView-BgtcJuwH.mjs.gz +0 -0
  301. package/dist/{tagsView-D13l1nQj.js → tagsView-mUWLybxp.js} +2 -2
  302. package/dist/tagsView-mUWLybxp.js.gz +0 -0
  303. package/dist/{transverse-BmOXcMKJ.js → transverse-BYY-2Pe5.js} +1 -1
  304. package/dist/transverse-BYY-2Pe5.js.gz +0 -0
  305. package/dist/{transverse-BJmid_r-.mjs → transverse-Bq6WreSR.mjs} +2 -2
  306. package/dist/transverse-Bq6WreSR.mjs.gz +0 -0
  307. package/dist/types/views/config/formSetting/components/hsForm/src/hsFormConfig.vue.d.ts +97 -0
  308. package/dist/types/views/config/formSetting/default/baseFormConfig.d.ts +439 -0
  309. package/dist/{uploadAvatar-BoeXFMl8.mjs → uploadAvatar-7NlnLDc4.mjs} +1 -1
  310. package/dist/uploadAvatar-7NlnLDc4.mjs.gz +0 -0
  311. package/dist/{uploadAvatar-CILqy-ST.js → uploadAvatar-CU_ch5RD.js} +1 -1
  312. package/dist/uploadAvatar-CU_ch5RD.js.gz +0 -0
  313. package/dist/{user-B-piYerr.mjs → user-DFmJpKT4.mjs} +3 -3
  314. package/dist/user-DFmJpKT4.mjs.gz +0 -0
  315. package/dist/{user-Bca1x-38.js → user-DjXNESoN.js} +1 -1
  316. package/dist/user-DjXNESoN.js.gz +0 -0
  317. package/dist/{userNews-Zst-lwm4.js → userNews-1QuF_nGL.js} +1 -1
  318. package/dist/userNews-1QuF_nGL.js.gz +0 -0
  319. package/dist/{userNews-CNip8gmy.mjs → userNews-CuAysEtC.mjs} +1 -1
  320. package/dist/userNews-CuAysEtC.mjs.gz +0 -0
  321. package/dist/{userSelect-eyOd-7rb.js → userSelect-C-vD64Cx.js} +1 -1
  322. package/dist/{userSelect-C5CwT1-q.mjs → userSelect-tjSvOQO4.mjs} +1 -1
  323. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-DPqUz03W.js → userSelect.vue_vue_type_script_setup_true_lang-85krpU1J.js} +1 -1
  324. package/dist/userSelect.vue_vue_type_script_setup_true_lang-85krpU1J.js.gz +0 -0
  325. package/dist/{userSelect.vue_vue_type_script_setup_true_lang-uAjSikbT.mjs → userSelect.vue_vue_type_script_setup_true_lang-Bi-1459f.mjs} +1 -1
  326. package/dist/userSelect.vue_vue_type_script_setup_true_lang-Bi-1459f.mjs.gz +0 -0
  327. package/dist/{vertical-CiZ0Hq8g.mjs → vertical-DoqNnLJs.mjs} +2 -2
  328. package/dist/vertical-DoqNnLJs.mjs.gz +0 -0
  329. package/dist/{vertical-DHhD5YUt.js → vertical-uP-3Bx4v.js} +1 -1
  330. package/dist/vertical-uP-3Bx4v.js.gz +0 -0
  331. package/package.json +1 -1
  332. package/dist/401--mcUZIMQ.js.gz +0 -0
  333. package/dist/401-K6rKZPto.mjs.gz +0 -0
  334. package/dist/account-DZVIBPyB.js.gz +0 -0
  335. package/dist/account-Dh9CMRU3.mjs.gz +0 -0
  336. package/dist/aside-3oejr13M.mjs.gz +0 -0
  337. package/dist/aside-BA12A9c4.js.gz +0 -0
  338. package/dist/btnIndex-BNSjgO4_.mjs.gz +0 -0
  339. package/dist/btnIndex-CBA_g7ks.js.gz +0 -0
  340. package/dist/classic-CACY4n6h.mjs.gz +0 -0
  341. package/dist/classic-CCjqQLC6.js.gz +0 -0
  342. package/dist/columns-Cmf0MrSv.mjs.gz +0 -0
  343. package/dist/columns-DnGPl0KH.js.gz +0 -0
  344. package/dist/columnsAside-CiUCjFPc.js.gz +0 -0
  345. package/dist/columnsAside-D3cGd2l6.mjs.gz +0 -0
  346. package/dist/contextmenu-BFQoMBqu.js.gz +0 -0
  347. package/dist/contextmenu-Bi_hFl-X.mjs.gz +0 -0
  348. package/dist/contextmenu-D5di3GrN.mjs.gz +0 -0
  349. package/dist/contextmenu-D_94rB-q.js.gz +0 -0
  350. package/dist/defaults-CAaJGeeq.js.gz +0 -0
  351. package/dist/defaults-Ld7L13kE.mjs.gz +0 -0
  352. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DTjHFYEZ.js.gz +0 -0
  353. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-FAZGNEJt.mjs.gz +0 -0
  354. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B3T3IcKX.mjs.gz +0 -0
  355. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Nq5BX8Ok.js.gz +0 -0
  356. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CPkS5FfC.js.gz +0 -0
  357. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CkVNc6ld.mjs.gz +0 -0
  358. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-BBy5VmaF.js.gz +0 -0
  359. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-_PovTmFU.mjs.gz +0 -0
  360. package/dist/formConfig-DNpjwytQ.js.gz +0 -0
  361. package/dist/formConfig-DvNiRz7J.mjs.gz +0 -0
  362. package/dist/horizontal-Nq-tHA0-.mjs.gz +0 -0
  363. package/dist/horizontal-pST0XiQ4.js.gz +0 -0
  364. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-CMccccM4.mjs.gz +0 -0
  365. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-CNv1BhIw.js.gz +0 -0
  366. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-DCi0CMf2.js.gz +0 -0
  367. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-DUYKoN1H.mjs.gz +0 -0
  368. package/dist/hsBtnConfigList-BaiHSuuo.js.gz +0 -0
  369. package/dist/hsBtnConfigList-Cjvrh4tI.mjs.gz +0 -0
  370. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DH_7c6ii.js.gz +0 -0
  371. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Di__hQUs.mjs.gz +0 -0
  372. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C8roDflu.js.gz +0 -0
  373. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DW7Rr3-j.mjs.gz +0 -0
  374. package/dist/hsFormConfig-DQEkSyhA.mjs.gz +0 -0
  375. package/dist/hsFormConfig-k3a8ArOK.js +0 -1
  376. package/dist/hsFormConfig-k3a8ArOK.js.gz +0 -0
  377. package/dist/hsFormConfigList-Bcf9fvrC.js.gz +0 -0
  378. package/dist/hsFormConfigList-CJk_qezm.mjs.gz +0 -0
  379. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BKxl4eTT.mjs.gz +0 -0
  380. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DmEyIRux.js.gz +0 -0
  381. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-B6ARlgCn.mjs.gz +0 -0
  382. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-CvtFrT0l.js.gz +0 -0
  383. package/dist/hsPageTree-CT-Ndq-Q.js.gz +0 -0
  384. package/dist/hsPageTree-DD4-4qNt.mjs.gz +0 -0
  385. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CFgVugGl.mjs.gz +0 -0
  386. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-DwBOTzib.js.gz +0 -0
  387. package/dist/iframes-BVk5u6b3.js.gz +0 -0
  388. package/dist/iframes-C80N9fzw.mjs.gz +0 -0
  389. package/dist/index-B-cORFVu.mjs.gz +0 -0
  390. package/dist/index-BB-tL9KP.js +0 -1
  391. package/dist/index-BB-tL9KP.js.gz +0 -0
  392. package/dist/index-BPje1eI7.mjs.gz +0 -0
  393. package/dist/index-BQXnCvPu.js.gz +0 -0
  394. package/dist/index-BQsh9kNO.mjs.gz +0 -0
  395. package/dist/index-BROSa86L.js.gz +0 -0
  396. package/dist/index-BSBSl97c.js.gz +0 -0
  397. package/dist/index-BTJWnBVe.mjs.gz +0 -0
  398. package/dist/index-BZRE3hhB.js.gz +0 -0
  399. package/dist/index-C3E4E-yA.js.gz +0 -0
  400. package/dist/index-CAyQU0uh.mjs.gz +0 -0
  401. package/dist/index-CGHk8NGQ.mjs.gz +0 -0
  402. package/dist/index-CUoFSOIZ.mjs.gz +0 -0
  403. package/dist/index-CYtxeKIs.js.gz +0 -0
  404. package/dist/index-Ca5CqUfq.mjs.gz +0 -0
  405. package/dist/index-Cay4c5lc.mjs.gz +0 -0
  406. package/dist/index-CcJlH0yG.js +0 -1
  407. package/dist/index-CcJlH0yG.js.gz +0 -0
  408. package/dist/index-CeGWZbUt.mjs.gz +0 -0
  409. package/dist/index-CmNOPnje.mjs.gz +0 -0
  410. package/dist/index-CnW1KwKg.mjs.gz +0 -0
  411. package/dist/index-Cpi0vkMC.js.gz +0 -0
  412. package/dist/index-CqzTQ5kt.mjs.gz +0 -0
  413. package/dist/index-Ctrd7L41.mjs.gz +0 -0
  414. package/dist/index-CzDgKLQO.js.gz +0 -0
  415. package/dist/index-D1bpr6lu.js.gz +0 -0
  416. package/dist/index-D5JyAvvg.js.gz +0 -0
  417. package/dist/index-DFN6BoY0.mjs.gz +0 -0
  418. package/dist/index-DZ3CwnzU.js.gz +0 -0
  419. package/dist/index-Dd4jTw78.mjs.gz +0 -0
  420. package/dist/index-DeLHcFr3.mjs +0 -4
  421. package/dist/index-Dfpm2Sgx.js.gz +0 -0
  422. package/dist/index-DhhBIFnm.mjs.gz +0 -0
  423. package/dist/index-DmikjLdo.js.gz +0 -0
  424. package/dist/index-Do5SpoiI.js.gz +0 -0
  425. package/dist/index-Dq0BoOH7.mjs +0 -101
  426. package/dist/index-Dq0BoOH7.mjs.gz +0 -0
  427. package/dist/index-Gv1eatv8.js.gz +0 -0
  428. package/dist/index-Ts3jctsu.mjs.gz +0 -0
  429. package/dist/index-Tz1EKSvb.js.gz +0 -0
  430. package/dist/index-UT8cCqpZ.mjs.gz +0 -0
  431. package/dist/index-dFeWPS-8.mjs.gz +0 -0
  432. package/dist/index-lgsyxvIS.js.gz +0 -0
  433. package/dist/index-ryhQjybD.js.gz +0 -0
  434. package/dist/index-ue9wvmcw.js.gz +0 -0
  435. package/dist/index-wNjqLqNy.js.gz +0 -0
  436. package/dist/index-zzPbNiax.mjs.gz +0 -0
  437. package/dist/link-DXWr4C-O.mjs.gz +0 -0
  438. package/dist/link-DsY0AuZK.js.gz +0 -0
  439. package/dist/list-Ca24FoQe.js.gz +0 -0
  440. package/dist/list-CeOZeDjd.mjs.gz +0 -0
  441. package/dist/main-Dw_ctsYQ.js.gz +0 -0
  442. package/dist/main-zkkIbaEi.mjs.gz +0 -0
  443. package/dist/mobile-Bkj4_0E5.mjs.gz +0 -0
  444. package/dist/mobile-DpiPdOUo.js.gz +0 -0
  445. package/dist/parent-BIPcmQ2E.mjs.gz +0 -0
  446. package/dist/parent-C1uhpLK2.js.gz +0 -0
  447. package/dist/roleItem-CG5xJEy9.js.gz +0 -0
  448. package/dist/roleItem-Df3BW0R1.mjs.gz +0 -0
  449. package/dist/saveForm.vue_vue_type_script_setup_true_lang-DCejoBPz.js.gz +0 -0
  450. package/dist/saveForm.vue_vue_type_script_setup_true_lang-Ds_sMXcc.mjs.gz +0 -0
  451. package/dist/scan-3S8xVYcz.js.gz +0 -0
  452. package/dist/scan-CS2dfWh8.mjs.gz +0 -0
  453. package/dist/search-B71lmQhf.mjs.gz +0 -0
  454. package/dist/search-CH70W17S.js.gz +0 -0
  455. package/dist/selectConfig-DTBSoXcQ.js.gz +0 -0
  456. package/dist/selectConfig-mB6EqC8H.mjs.gz +0 -0
  457. package/dist/subItem-BgBmrej1.js.gz +0 -0
  458. package/dist/subItem-CpR3oGJp.mjs.gz +0 -0
  459. package/dist/tagsView-D0sAcRw9.mjs.gz +0 -0
  460. package/dist/tagsView-D13l1nQj.js.gz +0 -0
  461. package/dist/transverse-BJmid_r-.mjs.gz +0 -0
  462. package/dist/transverse-BmOXcMKJ.js.gz +0 -0
  463. package/dist/uploadAvatar-BoeXFMl8.mjs.gz +0 -0
  464. package/dist/uploadAvatar-CILqy-ST.js.gz +0 -0
  465. package/dist/user-B-piYerr.mjs.gz +0 -0
  466. package/dist/user-Bca1x-38.js.gz +0 -0
  467. package/dist/userNews-CNip8gmy.mjs.gz +0 -0
  468. package/dist/userNews-Zst-lwm4.js.gz +0 -0
  469. package/dist/userSelect.vue_vue_type_script_setup_true_lang-DPqUz03W.js.gz +0 -0
  470. package/dist/userSelect.vue_vue_type_script_setup_true_lang-uAjSikbT.mjs.gz +0 -0
  471. package/dist/vertical-CiZ0Hq8g.mjs.gz +0 -0
  472. package/dist/vertical-DHhD5YUt.js.gz +0 -0
@@ -152,7 +152,7 @@ This will fail in production.`);u=Zp,u._s.has(o)||(l?mC(o,n,a,u):q5(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)})}},Mu=[{path:"/",name:"/",component:()=>Promise.resolve().then(()=>require("./index-Gv1eatv8.js")),redirect:"/home",meta:{isKeepAlive:!0},children:[]}],r3=[{path:"/:path(.*)*",name:"notFound",component:()=>Promise.resolve().then(()=>require("./404-BI2pzVj6.js")),meta:{title:"找不到此页面",isHide:!0}},{path:"/401",name:"noPower",component:()=>Promise.resolve().then(()=>require("./401--mcUZIMQ.js")),meta:{title:"没有权限",isHide:!0}}],qVe=[{path:"/login",name:"login",component:()=>Promise.resolve().then(()=>require("./index-C3E4E-yA.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)})}},Mu=[{path:"/",name:"/",component:()=>Promise.resolve().then(()=>require("./index-CbM_l6Nj.js")),redirect:"/home",meta:{isKeepAlive:!0},children:[]}],r3=[{path:"/:path(.*)*",name:"notFound",component:()=>Promise.resolve().then(()=>require("./404-B3qRvGDM.js")),meta:{title:"找不到此页面",isHide:!0}},{path:"/401",name:"noPower",component:()=>Promise.resolve().then(()=>require("./401-D6l3Unb4.js")),meta:{title:"没有权限",isHide:!0}}],qVe=[{path:"/login",name:"login",component:()=>Promise.resolve().then(()=>require("./index-CWSIXTky.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 xr({query:J.query,hash:J.hash,params:ie.path!=null?{}:J.params},ie)}}function B(J,q){const oe=c=C(J),ie=s.value,ke=J.state,De=J.force,he=J.replace===!0,be=S(oe);if(be)return B(xr(x(be),{state:typeof be=="object"?xr({},ke,be.state):ke,force:De,replace:he}),q||oe);const Fe=oe;Fe.redirectedFrom=q;let et;return!De&&K5(o,ie,oe)&&(et=Rf(16,{to:Fe,from:ie}),G(ie,ie,!0,!1)),(et?Promise.resolve(et):N(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"&&K5(o,C(He.to),Fe)&&q&&(q._count=q._count?q._count+1:1)>30?(ir(`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"))):B(xr({replace:he},x(He.to),{state:typeof He.to=="object"?xr({},ke,He.to.state):ke,force:De}),q||Fe)}else He=O(Fe,ie,!0,he,ke);return T(Fe,ie,He),He})}function k(J,q){const oe=b(J,q);return oe?Promise.reject(oe):Promise.resolve()}function V(J){const q=Q.values().next().value;return q&&typeof q.runWithContext=="function"?q.runWithContext(J):J()}function N(J,q){let oe;const[ie,ke,De]=d7e(J,q);oe=Zy(ie.reverse(),"beforeRouteLeave",J,q);for(const be of ie)be.leaveGuards.forEach(Fe=>{oe.push(cu(Fe,J,q))});const he=k.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=Zy(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(fl(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=Zy(De,"beforeRouteEnter",J,q,V),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 T(J,q,oe){u.list().forEach(ie=>V(()=>ie(J,q,oe)))}function O(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,xr({scroll:he&&be&&be.scroll},ke)):a.push(J.fullPath,ke)),s.value=J,G(J,q,oe,he),U()}let I;function z(){I||(I=a.listen((J,q,oe)=>{if(!Ce.listening)return;const ie=C(J),ke=S(ie);if(ke){B(xr(ke,{replace:!0}),ie).catch(bv);return}c=ie;const De=s.value;bs&&h$e(Y5(De.fullPath,oe.delta),J2()),N(ie,De).catch(he=>vs(he,12)?he:vs(he,2)?(B(he.to,ie).then(be=>{vs(be,20)&&!oe.delta&&oe.type===b0.pop&&a.go(-1,!1)}).catch(bv),Promise.reject()):(oe.delta&&a.go(-oe.delta,!1),W(he,ie,De))).then(he=>{he=he||O(ie,De,!1),he&&(oe.delta&&!vs(he,8)?a.go(-oe.delta,!1):oe.type===b0.pop&&vs(he,20)&&a.go(-1,!1)),T(ie,De,he)}).catch(bv)}))}let F=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"&&ir("uncaught error during route navigation:"),console.error(J)),Promise.reject(J)}function P(){return R&&s.value!==Qs?Promise.resolve():new Promise((J,q)=>{F.add([J,q])})}function U(J){return R||(R=!J,z(),F.list().forEach(([q,oe])=>J?oe(J):q()),F.reset()),J}function G(J,q,oe,ie){const{scrollBehavior:ke}=t;if(!bs||!ke)return Promise.resolve();const De=!oe&&g$e(Y5(J.fullPath,0))||(ie||!oe)&&history.state&&history.state.scroll||null;return e.nextTick().then(()=>ke(J,q,De)).then(he=>he&&m$e(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:w,replace:E,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:l.add,beforeResolve:i.add,afterEach:u.add,onError:L.add,isReady:P,install(J){const q=this;J.component("RouterLink",Y$e),J.component("RouterView",Q$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,w(a.location).catch(ke=>{process.env.NODE_ENV!=="production"&&ir("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(Q2,q),J.provide(a3,e.shallowReactive(oe)),J.provide(_C,s);const ie=J.unmount;Q.add(J),J.unmount=function(){Q.delete(J),Q.size<1&&(c=Qs,I&&I(),I=null,s.value=Qs,Y=!1,R=!1),ie()},process.env.NODE_ENV!=="production"&&bs&&n7e(J,q,n)}};function te(J){return J.reduce((q,oe)=>q.then(()=>V(oe)),Promise.resolve())}return Ce}function d7e(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 f7e(){return e.inject(Q2)}function p7e(){return e.inject(a3)}var UA={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),x=o.speed,b=o.easing;return y.offsetWidth,u(function(w){o.positionUsing===""&&(o.positionUsing=r.getPositioningCSS()),s(C,i(v,x,b)),v===1?(s(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){s(y,{transition:"all "+x+"ms linear",opacity:0}),setTimeout(function(){r.remove(),w()},x)},x)):setTimeout(w,x)}),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),x=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)),x!=document.body&&d(x,"nprogress-custom-parent"),x.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(w){return w.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(E,S){return S.toUpperCase()})}function C(w){var E=document.body.style;if(w in E)return w;for(var S=v.length,B=w.charAt(0).toUpperCase()+w.slice(1),k;S--;)if(k=v[S]+B,k in E)return k;return w}function x(w){return w=y(w),g[w]||(g[w]=C(w))}function b(w,E,S){E=x(E),w.style[E]=S}return function(w,E){var S=arguments,B,k;if(S.length==2)for(B in E)k=E[B],k!==void 0&&E.hasOwnProperty(B)&&b(w,B,k);else b(w,S[1],S[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})})(UA);var v7e=UA.exports;const Hd=Jo(v7e),KA=Jf("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=[]}}}),e1=Jf("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}}}),l3=Jf("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}}}),i3=Jf("tagsViewRoutes",{state:()=>({tagsViewRoutes:[],isTagsViewCurrenFull:!1}),actions:{async setTagsViewRoutes(t){this.tagsViewRoutes=t},setCurrenFullscreen(t){Oo.set("isTagsViewCurrenFull",t),this.isTagsViewCurrenFull=t}}});function m7e(t,n){return n.meta&&n.meta.roles?t.some(r=>n.meta.roles.includes(r)):!0}function s3(t,n){const r=[];return t.forEach(o=>{const a={...o};m7e(n,a)&&(a.children&&(a.children=s3(a.children,n)),r.push(a))}),r}function h7e(t){const n=cl(ri),{userInfos:r}=ld(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 g7e(){let t=n1(t1(Mu));return t[0].children=[...h7e(t[0].children),...r3],t}async function b7e(){await g7e().forEach(t=>{console.debug("后端路由信息:",t),Xc.addRoute(t)})}function y7e(){const t=cl(ri),n=i3(ri),{userInfos:r}=ld(t);let o=s3(Mu,r.value.roles);n.setTagsViewRoutes(n1(t1(o))[0].children)}function _7e(){const t=cl(ri),n=e1(ri),{userInfos:r}=ld(t);n.setRoutesList(s3(Mu[0].children,r.value.roles)),y7e()}async function C7e(){if(window.nextLoading===void 0&&Z2.start(),!await cl().isLogin())return!1;await b7e(),_7e()}const w7e=l3(ri),{themeConfig:x7e}=ld(w7e),{isRequestRoutes:E7e}=x7e.value,Xc=c7e({history:C$e("/"),routes:[...r3,...qVe]});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),KA(ri).setCacheKeepAlive(r)))}),n}Xc.beforeEach(async(t,n,r)=>{Hd.configure({showSpinner:!1}),t.meta.title&&Hd.start();const a=await cl().isLogin();if(t.path==="/login"&&!a)r(),Hd.done();else if(!a)r(`/login?redirect=${t.path}&params=${JSON.stringify(t.query?t.query:t.params)}`),Oo.clear(),Hd.done();else if(a&&t.path==="/login")r("/home"),Hd.done();else{const l=e1(ri),{routesList:i}=ld(l);i.value.length===0?E7e?(await GA(),r({path:t.path,query:t.query})):(await C7e(),r({path:t.path,query:t.query})):r()}});Xc.afterEach(()=>{Hd.done()});const Ms=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),k7e=(t={})=>(t=Ms(t,"新增菜单"),vn({url:"/scmp-web/pri/menu/add_menu",method:"post",data:t})),S7e=(t={})=>(t=Ms(t,"根据id,删除菜单"),vn({url:"/scmp-web/pri/menu/del_menu_info",method:"post",data:t})),B7e=(t={})=>(t=Ms(t,"获取所有菜单id集合"),vn({url:"/scmp-web/pri/menu/get_all_menu_id_list",method:"get",params:t})),N7e=(t={})=>(t=Ms(t,"获取所有菜单列表"),vn({url:"/scmp-web/pri/menu/get_all_menu_list",method:"get",params:t})),T7e=(t={})=>(t=Ms(t,"获取当前用户菜单列表(树形)"),vn({url:"/scmp-web/pri/menu/get_menu_list",method:"get",params:t})),D7e=(t={})=>(t=Ms(t,"获取一级菜单信息"),vn({url:"/scmp-web/pri/menu/get_menu_list_one",method:"get",params:t})),V7e=(t={})=>(t=Ms(t,"设置菜单页面配置项,按钮和字典数据"),vn({url:"/scmp-web/pri/menu/set_menu_config",method:"post",data:t})),$7e=(t={})=>(t=Ms(t,"更新菜单"),vn({url:"/scmp-web/pri/menu/update_menu",method:"post",data:t})),O7e=(t={})=>(t=Ms(t,"根据菜单id,互换两个菜单的排序"),vn({url:"/scmp-web/pri/menu/update_menu_sort",method:"post",data:t}));function u3(){return{postAddMenu:k7e,postDelMenuInfo:S7e,getAllMenuIdList:B7e,getAllMenuList:N7e,getMenuList:T7e,getMenuListOne:D7e,postSetMenuConfig:V7e,postUpdateMenu:$7e,postUpdateMenuSort:O7e}}const A7e=u3(),M7e=Object.assign({"../layout/routerView/iframes.vue":()=>Promise.resolve().then(()=>require("./iframes-BVk5u6b3.js")),"../layout/routerView/link.vue":()=>Promise.resolve().then(()=>require("./link-DsY0AuZK.js")),"../layout/routerView/parent.vue":()=>Promise.resolve().then(()=>require("./parent-C1uhpLK2.js"))}),R7e=Object.assign({"../views/config/buttonManagement/btnIndex.vue":()=>Promise.resolve().then(()=>require("./btnIndex-CBA_g7ks.js")),"../views/config/buttonManagement/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-C_jEYDIT.js")),"../views/config/buttonManagement/index.vue":()=>Promise.resolve().then(()=>require("./index-CYtxeKIs.js")),"../views/config/dataAuth/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-B6JRn3Ww.js")),"../views/config/dataAuth/index.vue":()=>Promise.resolve().then(()=>require("./index-D1bpr6lu.js")),"../views/config/dataDict/components/dict/dictDialog.vue":()=>Promise.resolve().then(()=>require("./dictDialog-BN3cJ-5n.js")),"../views/config/dataDict/components/dictItem/dictItemDialog.vue":()=>Promise.resolve().then(()=>require("./dictItemDialog-gah-AOb_.js")),"../views/config/dataDict/index.vue":()=>Promise.resolve().then(()=>require("./index-BB-tL9KP.js")),"../views/config/fieldPool/components/dialog/index.vue":()=>Promise.resolve().then(()=>require("./index-DCkKzPTt.js")),"../views/config/fieldPool/index.vue":()=>Promise.resolve().then(()=>require("./index-BQXnCvPu.js")),"../views/config/formSetting/components/hsBtn/src/hsAttrBtn.vue":()=>Promise.resolve().then(()=>require("./hsAttrBtn-CAeGIJ2M.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnConfigList.vue":()=>Promise.resolve().then(()=>require("./hsBtnConfigList-BaiHSuuo.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnItemConfig.vue":()=>Promise.resolve().then(()=>require("./hsBtnItemConfig-B4zm9ZPP.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnPanel.vue":()=>Promise.resolve().then(()=>require("./hsBtnPanel-UbjWG6mY.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-BFQoMBqu.js")),"../views/config/formSetting/components/hsForm/src/hsAttrForm.vue":()=>Promise.resolve().then(()=>require("./hsAttrForm-BphPBJn2.js")),"../views/config/formSetting/components/hsForm/src/hsFormConfig.vue":()=>Promise.resolve().then(()=>require("./hsFormConfig-k3a8ArOK.js")),"../views/config/formSetting/components/hsForm/src/hsFormConfigList.vue":()=>Promise.resolve().then(()=>require("./hsFormConfigList-Bcf9fvrC.js")),"../views/config/formSetting/components/hsForm/src/hsFormPanel.vue":()=>Promise.resolve().then(()=>require("./hsFormPanel-D7GwXH9k.js")),"../views/config/formSetting/components/hsForm/src/hsFormParse.vue":()=>Promise.resolve().then(()=>require("./hsFormParse-DzjK-aCL.js")),"../views/config/formSetting/components/hsPageTree/src/hsPageTree.vue":()=>Promise.resolve().then(()=>require("./hsPageTree-CT-Ndq-Q.js")),"../views/config/formSetting/components/hsSaveForm/src/saveForm.vue":()=>Promise.resolve().then(()=>require("./saveForm-COrDlMW7.js")),"../views/config/formSetting/components/selectConfig/selectConfig.vue":()=>Promise.resolve().then(()=>require("./selectConfig-DTBSoXcQ.js")),"../views/config/formSetting/formConfig.vue":()=>Promise.resolve().then(()=>require("./formConfig-DNpjwytQ.js")),"../views/config/formSetting/index.vue":()=>Promise.resolve().then(()=>require("./index-Do5SpoiI.js")),"../views/config/index.vue":()=>Promise.resolve().then(()=>require("./index-BS7H0gCx.js")),"../views/config/pageElement/components/hsPanelItem/hsPanelItem.vue":()=>Promise.resolve().then(()=>require("./hsPanelItem-Dsghq78i.js")),"../views/config/pageElement/index.vue":()=>Promise.resolve().then(()=>require("./index-BROSa86L.js")),"../views/config/parseAPI/index.vue":()=>Promise.resolve().then(()=>require("./index-CzDgKLQO.js")),"../views/config/table/index.vue":()=>Promise.resolve().then(()=>require("./index-Tz1EKSvb.js")),"../views/error/401.vue":()=>Promise.resolve().then(()=>require("./401--mcUZIMQ.js")),"../views/error/404.vue":()=>Promise.resolve().then(()=>require("./404-BI2pzVj6.js")),"../views/home/index.vue":()=>Promise.resolve().then(()=>require("./index-DmikjLdo.js")),"../views/login/component/account.vue":()=>Promise.resolve().then(()=>require("./account-DZVIBPyB.js")),"../views/login/component/mobile.vue":()=>Promise.resolve().then(()=>require("./mobile-DpiPdOUo.js")),"../views/login/component/scan.vue":()=>Promise.resolve().then(()=>require("./scan-3S8xVYcz.js")),"../views/login/index.vue":()=>Promise.resolve().then(()=>require("./index-C3E4E-yA.js")),"../views/system/auth/index.vue":()=>Promise.resolve().then(()=>require("./index-BSBSl97c.js")),"../views/system/dept/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-DeuceWcM.js")),"../views/system/dept/index.vue":()=>Promise.resolve().then(()=>require("./index-wNjqLqNy.js")),"../views/system/dic/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-Cqb6ay6R.js")),"../views/system/dic/index.vue":()=>Promise.resolve().then(()=>require("./index-ryhQjybD.js")),"../views/system/menu/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-DOpzdoYQ.js")),"../views/system/menu/index.vue":()=>Promise.resolve().then(()=>require("./index-BZRE3hhB.js")),"../views/system/role/component/roleItem.vue":()=>Promise.resolve().then(()=>require("./roleItem-CG5xJEy9.js")),"../views/system/role/component/userSelect.vue":()=>Promise.resolve().then(()=>require("./userSelect-eyOd-7rb.js")),"../views/system/role/index.vue":()=>Promise.resolve().then(()=>require("./index-D5JyAvvg.js")),"../views/system/user/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-BmCwSZ2C.js")),"../views/system/user/index.vue":()=>Promise.resolve().then(()=>require("./index-DZ3CwnzU.js")),"../views/test/form/index.vue":()=>Promise.resolve().then(()=>require("./index-lgsyxvIS.js")),"../views/test/table/index.vue":()=>Promise.resolve().then(()=>require("./index-C5AlBnuC.js")),"../views/test/test/index.vue":()=>Promise.resolve().then(()=>require("./index-CcJlH0yG.js")),"../views/test/test/uploadAvatar.vue":()=>Promise.resolve().then(()=>require("./uploadAvatar-CILqy-ST.js"))}),I7e=Object.assign({},{...M7e},{...R7e});async function GA(){if(window.nextLoading===void 0&&Z2.start(),!await cl().isLogin())return!1;const r=await ZA();if(r.data.length<=0)return Promise.resolve(!0);NA().setRequestOldRoutes(JSON.parse(JSON.stringify(r.data))),Mu[0].children=await c3(r.data),await XA(),YA()}async function YA(){e1(ri).setRoutesList(Mu[0].children),P7e()}function P7e(){i3(ri).setTagsViewRoutes(n1(t1(Mu))[0].children)}function F7e(){let t=n1(t1(Mu));return t[0].children=[...t[0].children,...r3],t}async function XA(){await F7e().forEach(t=>{Xc.addRoute(t)})}async function ZA(){let t=await A7e.getMenuList();return console.debug("menu:",t),t}async function z7e(){const t=await ZA();if(t.data.length<=0)return Promise.resolve(!0);NA().setRequestOldRoutes(JSON.parse(JSON.stringify(t.data))),Mu[0].children=await c3(t.data),await XA(),YA()}function c3(t){if(t)return t.map(n=>(n.component&&(n.component=L7e(I7e,n.component)),n.children&&c3(n.children),n))}function L7e(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 uB=dl.value||"hs-admin-ui:sid",cl=Jf("userInfo",{state:()=>({userInfos:{userName:"",photo:"",time:0,roles:[],authBtnList:[]}}),actions:{async isLogin(){const t=await Ha.get("userInfo");return this.userInfos=t,!!(t!=null&&t.id)},async setUserInfo(t){this.userInfos=t,await Ha.set("userInfo",t),Yd.set(uB,t.sid,{expires:new Date(+new Date+86400*1e3)}),await GA()},async logout(){await this.clear(),window.location.reload()},async clear(){this.userInfos={userName:"",photo:"",time:0,roles:[],authBtnList:[]},Yd.remove(uB),Oo.clear(),await Ha.clear()}}});function H7e(t){return cl().userInfos.authBtnList.some(r=>r===t)}function W7e(t){let n=!1;return cl().userInfos.authBtnList.map(o=>{t.map(a=>{o===a&&(n=!0)})}),n}function j7e(t){const n=cl();return Jx(t,n.userInfos.authBtnList)}var JA={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),x=o.speed,b=o.easing;return y.offsetWidth,u(function(w){o.positionUsing===""&&(o.positionUsing=r.getPositioningCSS()),s(C,i(v,x,b)),v===1?(s(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){s(y,{transition:"all "+x+"ms linear",opacity:0}),setTimeout(function(){r.remove(),w()},x)},x)):setTimeout(w,x)}),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),x=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)),x!=document.body&&d(x,"nprogress-custom-parent"),x.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(w){return w.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(E,S){return S.toUpperCase()})}function C(w){var E=document.body.style;if(w in E)return w;for(var S=v.length,B=w.charAt(0).toUpperCase()+w.slice(1),k;S--;)if(k=v[S]+B,k in E)return k;return w}function x(w){return w=y(w),g[w]||(g[w]=C(w))}function b(w,E,S){E=x(E),w.style[E]=S}return function(w,E){var S=arguments,B,k;if(S.length==2)for(B in E)k=E[B],k!==void 0&&E.hasOwnProperty(B)&&b(w,B,k);else b(w,S[1],S[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})})(UA);var v7e=UA.exports;const Hd=Jo(v7e),KA=Jf("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=[]}}}),e1=Jf("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}}}),l3=Jf("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}}}),i3=Jf("tagsViewRoutes",{state:()=>({tagsViewRoutes:[],isTagsViewCurrenFull:!1}),actions:{async setTagsViewRoutes(t){this.tagsViewRoutes=t},setCurrenFullscreen(t){Oo.set("isTagsViewCurrenFull",t),this.isTagsViewCurrenFull=t}}});function m7e(t,n){return n.meta&&n.meta.roles?t.some(r=>n.meta.roles.includes(r)):!0}function s3(t,n){const r=[];return t.forEach(o=>{const a={...o};m7e(n,a)&&(a.children&&(a.children=s3(a.children,n)),r.push(a))}),r}function h7e(t){const n=cl(ri),{userInfos:r}=ld(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 g7e(){let t=n1(t1(Mu));return t[0].children=[...h7e(t[0].children),...r3],t}async function b7e(){await g7e().forEach(t=>{console.debug("后端路由信息:",t),Xc.addRoute(t)})}function y7e(){const t=cl(ri),n=i3(ri),{userInfos:r}=ld(t);let o=s3(Mu,r.value.roles);n.setTagsViewRoutes(n1(t1(o))[0].children)}function _7e(){const t=cl(ri),n=e1(ri),{userInfos:r}=ld(t);n.setRoutesList(s3(Mu[0].children,r.value.roles)),y7e()}async function C7e(){if(window.nextLoading===void 0&&Z2.start(),!await cl().isLogin())return!1;await b7e(),_7e()}const w7e=l3(ri),{themeConfig:x7e}=ld(w7e),{isRequestRoutes:E7e}=x7e.value,Xc=c7e({history:C$e("/"),routes:[...r3,...qVe]});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),KA(ri).setCacheKeepAlive(r)))}),n}Xc.beforeEach(async(t,n,r)=>{Hd.configure({showSpinner:!1}),t.meta.title&&Hd.start();const a=await cl().isLogin();if(t.path==="/login"&&!a)r(),Hd.done();else if(!a)r(`/login?redirect=${t.path}&params=${JSON.stringify(t.query?t.query:t.params)}`),Oo.clear(),Hd.done();else if(a&&t.path==="/login")r("/home"),Hd.done();else{const l=e1(ri),{routesList:i}=ld(l);i.value.length===0?E7e?(await GA(),r({path:t.path,query:t.query})):(await C7e(),r({path:t.path,query:t.query})):r()}});Xc.afterEach(()=>{Hd.done()});const Ms=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),k7e=(t={})=>(t=Ms(t,"新增菜单"),vn({url:"/scmp-web/pri/menu/add_menu",method:"post",data:t})),S7e=(t={})=>(t=Ms(t,"根据id,删除菜单"),vn({url:"/scmp-web/pri/menu/del_menu_info",method:"post",data:t})),B7e=(t={})=>(t=Ms(t,"获取所有菜单id集合"),vn({url:"/scmp-web/pri/menu/get_all_menu_id_list",method:"get",params:t})),N7e=(t={})=>(t=Ms(t,"获取所有菜单列表"),vn({url:"/scmp-web/pri/menu/get_all_menu_list",method:"get",params:t})),T7e=(t={})=>(t=Ms(t,"获取当前用户菜单列表(树形)"),vn({url:"/scmp-web/pri/menu/get_menu_list",method:"get",params:t})),D7e=(t={})=>(t=Ms(t,"获取一级菜单信息"),vn({url:"/scmp-web/pri/menu/get_menu_list_one",method:"get",params:t})),V7e=(t={})=>(t=Ms(t,"设置菜单页面配置项,按钮和字典数据"),vn({url:"/scmp-web/pri/menu/set_menu_config",method:"post",data:t})),$7e=(t={})=>(t=Ms(t,"更新菜单"),vn({url:"/scmp-web/pri/menu/update_menu",method:"post",data:t})),O7e=(t={})=>(t=Ms(t,"根据菜单id,互换两个菜单的排序"),vn({url:"/scmp-web/pri/menu/update_menu_sort",method:"post",data:t}));function u3(){return{postAddMenu:k7e,postDelMenuInfo:S7e,getAllMenuIdList:B7e,getAllMenuList:N7e,getMenuList:T7e,getMenuListOne:D7e,postSetMenuConfig:V7e,postUpdateMenu:$7e,postUpdateMenuSort:O7e}}const A7e=u3(),M7e=Object.assign({"../layout/routerView/iframes.vue":()=>Promise.resolve().then(()=>require("./iframes-CvxO6Lj3.js")),"../layout/routerView/link.vue":()=>Promise.resolve().then(()=>require("./link-789SB29w.js")),"../layout/routerView/parent.vue":()=>Promise.resolve().then(()=>require("./parent-BhntEG8N.js"))}),R7e=Object.assign({"../views/config/buttonManagement/btnIndex.vue":()=>Promise.resolve().then(()=>require("./btnIndex-_CFMTzst.js")),"../views/config/buttonManagement/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-Bs3XboR8.js")),"../views/config/buttonManagement/index.vue":()=>Promise.resolve().then(()=>require("./index-ZxKUeU_7.js")),"../views/config/dataAuth/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-CclJ9_n4.js")),"../views/config/dataAuth/index.vue":()=>Promise.resolve().then(()=>require("./index-B_mlw8SD.js")),"../views/config/dataDict/components/dict/dictDialog.vue":()=>Promise.resolve().then(()=>require("./dictDialog-NJ28vIBx.js")),"../views/config/dataDict/components/dictItem/dictItemDialog.vue":()=>Promise.resolve().then(()=>require("./dictItemDialog-B2P_6G0z.js")),"../views/config/dataDict/index.vue":()=>Promise.resolve().then(()=>require("./index-DKJ9LDEF.js")),"../views/config/fieldPool/components/dialog/index.vue":()=>Promise.resolve().then(()=>require("./index-DCkKzPTt.js")),"../views/config/fieldPool/index.vue":()=>Promise.resolve().then(()=>require("./index-BxcT163u.js")),"../views/config/formSetting/components/hsBtn/src/hsAttrBtn.vue":()=>Promise.resolve().then(()=>require("./hsAttrBtn-BH0cuz4r.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnConfigList.vue":()=>Promise.resolve().then(()=>require("./hsBtnConfigList-D9TwUBcq.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnItemConfig.vue":()=>Promise.resolve().then(()=>require("./hsBtnItemConfig-BEGYgi3f.js")),"../views/config/formSetting/components/hsBtn/src/hsBtnPanel.vue":()=>Promise.resolve().then(()=>require("./hsBtnPanel-CP7nQo2Q.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-Dauo34Cy.js")),"../views/config/formSetting/components/hsForm/src/hsAttrForm.vue":()=>Promise.resolve().then(()=>require("./hsAttrForm-CgRTvVte.js")),"../views/config/formSetting/components/hsForm/src/hsFormConfig.vue":()=>Promise.resolve().then(()=>require("./hsFormConfig-CecEDFow.js")),"../views/config/formSetting/components/hsForm/src/hsFormConfigList.vue":()=>Promise.resolve().then(()=>require("./hsFormConfigList-DEj0r0Vr.js")),"../views/config/formSetting/components/hsForm/src/hsFormPanel.vue":()=>Promise.resolve().then(()=>require("./hsFormPanel-6lc0vAEc.js")),"../views/config/formSetting/components/hsForm/src/hsFormParse.vue":()=>Promise.resolve().then(()=>require("./hsFormParse-BciTLUfe.js")),"../views/config/formSetting/components/hsPageTree/src/hsPageTree.vue":()=>Promise.resolve().then(()=>require("./hsPageTree-vlGsEBXY.js")),"../views/config/formSetting/components/hsSaveForm/src/saveForm.vue":()=>Promise.resolve().then(()=>require("./saveForm-YHkBljYy.js")),"../views/config/formSetting/components/selectConfig/selectConfig.vue":()=>Promise.resolve().then(()=>require("./selectConfig-CM_9WNV1.js")),"../views/config/formSetting/formConfig.vue":()=>Promise.resolve().then(()=>require("./formConfig-B3MAF6PS.js")),"../views/config/formSetting/index.vue":()=>Promise.resolve().then(()=>require("./index-COgShkx_.js")),"../views/config/index.vue":()=>Promise.resolve().then(()=>require("./index-C9rzDA42.js")),"../views/config/pageElement/components/hsPanelItem/hsPanelItem.vue":()=>Promise.resolve().then(()=>require("./hsPanelItem-B_8F-Ukv.js")),"../views/config/pageElement/index.vue":()=>Promise.resolve().then(()=>require("./index-DVHIwOv_.js")),"../views/config/parseAPI/index.vue":()=>Promise.resolve().then(()=>require("./index-CjK4GO4m.js")),"../views/config/table/index.vue":()=>Promise.resolve().then(()=>require("./index-SMRmfcCL.js")),"../views/error/401.vue":()=>Promise.resolve().then(()=>require("./401-D6l3Unb4.js")),"../views/error/404.vue":()=>Promise.resolve().then(()=>require("./404-B3qRvGDM.js")),"../views/home/index.vue":()=>Promise.resolve().then(()=>require("./index-DoT9PNfG.js")),"../views/login/component/account.vue":()=>Promise.resolve().then(()=>require("./account-B57RnX3H.js")),"../views/login/component/mobile.vue":()=>Promise.resolve().then(()=>require("./mobile-BTHKKa07.js")),"../views/login/component/scan.vue":()=>Promise.resolve().then(()=>require("./scan-Bdzh4ubu.js")),"../views/login/index.vue":()=>Promise.resolve().then(()=>require("./index-CWSIXTky.js")),"../views/system/auth/index.vue":()=>Promise.resolve().then(()=>require("./index-CkpVIxXC.js")),"../views/system/dept/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-DeuceWcM.js")),"../views/system/dept/index.vue":()=>Promise.resolve().then(()=>require("./index-DWPTiJTx.js")),"../views/system/dic/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-Cqb6ay6R.js")),"../views/system/dic/index.vue":()=>Promise.resolve().then(()=>require("./index-BswExGya.js")),"../views/system/menu/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-DuZBbr3m.js")),"../views/system/menu/index.vue":()=>Promise.resolve().then(()=>require("./index-BRe_YdvS.js")),"../views/system/role/component/roleItem.vue":()=>Promise.resolve().then(()=>require("./roleItem-C5LbjO6_.js")),"../views/system/role/component/userSelect.vue":()=>Promise.resolve().then(()=>require("./userSelect-C-vD64Cx.js")),"../views/system/role/index.vue":()=>Promise.resolve().then(()=>require("./index-D6sihOkL.js")),"../views/system/user/dialog.vue":()=>Promise.resolve().then(()=>require("./dialog-BmCwSZ2C.js")),"../views/system/user/index.vue":()=>Promise.resolve().then(()=>require("./index-CbYnG5Q_.js")),"../views/test/form/index.vue":()=>Promise.resolve().then(()=>require("./index-BJs_Pwun.js")),"../views/test/table/index.vue":()=>Promise.resolve().then(()=>require("./index-C5AlBnuC.js")),"../views/test/test/index.vue":()=>Promise.resolve().then(()=>require("./index-8MWXdSI-.js")),"../views/test/test/uploadAvatar.vue":()=>Promise.resolve().then(()=>require("./uploadAvatar-CU_ch5RD.js"))}),I7e=Object.assign({},{...M7e},{...R7e});async function GA(){if(window.nextLoading===void 0&&Z2.start(),!await cl().isLogin())return!1;const r=await ZA();if(r.data.length<=0)return Promise.resolve(!0);NA().setRequestOldRoutes(JSON.parse(JSON.stringify(r.data))),Mu[0].children=await c3(r.data),await XA(),YA()}async function YA(){e1(ri).setRoutesList(Mu[0].children),P7e()}function P7e(){i3(ri).setTagsViewRoutes(n1(t1(Mu))[0].children)}function F7e(){let t=n1(t1(Mu));return t[0].children=[...t[0].children,...r3],t}async function XA(){await F7e().forEach(t=>{Xc.addRoute(t)})}async function ZA(){let t=await A7e.getMenuList();return console.debug("menu:",t),t}async function z7e(){const t=await ZA();if(t.data.length<=0)return Promise.resolve(!0);NA().setRequestOldRoutes(JSON.parse(JSON.stringify(t.data))),Mu[0].children=await c3(t.data),await XA(),YA()}function c3(t){if(t)return t.map(n=>(n.component&&(n.component=L7e(I7e,n.component)),n.children&&c3(n.children),n))}function L7e(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 uB=dl.value||"hs-admin-ui:sid",cl=Jf("userInfo",{state:()=>({userInfos:{userName:"",photo:"",time:0,roles:[],authBtnList:[]}}),actions:{async isLogin(){const t=await Ha.get("userInfo");return this.userInfos=t,!!(t!=null&&t.id)},async setUserInfo(t){this.userInfos=t,await Ha.set("userInfo",t),Yd.set(uB,t.sid,{expires:new Date(+new Date+86400*1e3)}),await GA()},async logout(){await this.clear(),window.location.reload()},async clear(){this.userInfos={userName:"",photo:"",time:0,roles:[],authBtnList:[]},Yd.remove(uB),Oo.clear(),await Ha.clear()}}});function H7e(t){return cl().userInfos.authBtnList.some(r=>r===t)}function W7e(t){let n=!1;return cl().userInfos.authBtnList.map(o=>{t.map(a=>{o===a&&(n=!0)})}),n}function j7e(t){const n=cl();return Jx(t,n.userInfos.authBtnList)}var JA={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 NN(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?NN(Object(r),!0).forEach(function(o){YJe(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NN(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function mg(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mg=function(n){return typeof n}:mg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mg(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 XJe(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 ZJe(t,n){if(t==null)return{};var r=XJe(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 JJe="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),nm=Es(/Edge/i),TN=Es(/firefox/i),zv=Es(/safari/i)&&!Es(/chrome/i)&&!Es(/android/i),hP=Es(/iP(ad|od|hone)/i),gP=Es(/chrome/i)&&Es(/android/i),bP={capture:!1,passive:!1};function wr(t,n,r){t.addEventListener(n,r,!Ls&&bP)}function br(t,n,r){t.removeEventListener(n,r,!Ls&&bP)}function a2(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 QJe(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Ei(t,n,r,o){if(t){r=r||document;do{if(n!=null&&(n[0]===">"?t.parentNode===r&&a2(t,n):a2(t,n))||o&&t===r)return t;if(t===r)break}while(t=QJe(t))}return null}var DN=/\s+/g;function rl(t,n,r){if(t&&n)if(t.classList)t.classList[r?"add":"remove"](n);else{var o=(" "+t.className+" ").replace(DN," ").replace(" "+n+" "," ");t.className=(o+(r?" "+n:"")).replace(DN," ")}}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 vf(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 yP(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 wo(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=vf(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 _P(t){var n=wo(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 VN(t,n,r){for(var o=_u(t,!0),a=wo(t)[n];o;){var l=wo(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 Ff(t,n,r,o){for(var a=0,l=0,i=t.children;l<i.length;){if(i[l].style.display!=="none"&&i[l]!==Bn.ghost&&(o||i[l]!==Bn.dragged)&&Ei(i[l],r.draggable,t,!1)){if(a===n)return i[l];a++}l++}return null}function q3(t,n){for(var r=t.lastElementChild;r&&(r===Bn.ghost||pn(r,"display")==="none"||n&&!a2(r,n));)r=r.previousElementSibling;return r||null}function El(t,n){var r=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Bn.clone&&(!n||a2(t,n))&&r++;return r}function $N(t){var n=0,r=0,o=$i();if(t)do{var a=vf(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 eQe(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 tQe(t,n){if(t&&n)for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);return t}function N4(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 Lv;function CP(t,n){return function(){if(!Lv){var r=arguments,o=this;r.length===1?t.call(o,r[0]):t.apply(o,r),Lv=setTimeout(function(){Lv=void 0},n)}}}function nQe(){clearTimeout(Lv),Lv=void 0}function wP(t,n,r){t.scrollLeft+=n,t.scrollTop+=r}function xP(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 il="Sortable"+new Date().getTime();function rQe(){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===Bn.ghost)){t.push({target:o,rect:wo(o)});var a=Fi({},t[t.length-1].rect);if(o.thisAnimationDuration){var l=vf(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(eQe(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=wo(s),f=s.prevFromRect,p=s.prevToRect,m=i.rect,v=vf(s,!0);v&&(d.top-=v.f,d.left-=v.e),s.toRect=d,s.thisAnimationDuration&&N4(f,d)&&!N4(c,d)&&(m.top-d.top)/(m.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(u=aQe(m,f,p,o.options)),N4(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=vf(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=oQe(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 oQe(t){return t.offsetWidth}function aQe(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 Md=[],T4={initializeByDefault:!0},rm={mount:function(t){for(var n in T4)T4.hasOwnProperty(n)&&!(n in t)&&(t[n]=T4[n]);Md.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Md.push(t)},pluginEvent:function(t,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var a=t+"Global";Md.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){Md.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 Md.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 Md.forEach(function(a){t[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(o=a.optionListeners[n].call(t[a.pluginName],r))}),o}};function lQe(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[il],!!n){var g,y=n.options,C="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!Ls&&!nm?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 x=Fi(Fi({},v),rm.getEventProperties(o,n));for(var b in x)g[b]=x[b];r&&r.dispatchEvent(g),y[C]&&y[C].call(n,g)}}var iQe=["evt"],Ia=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,a=ZJe(r,iQe);rm.pluginEvent.bind(Bn)(t,n,Fi({dragEl:Ft,parentEl:co,ghostEl:Wn,rootEl:Zr,nextEl:uc,lastDownEl:hg,cloneEl:oo,cloneHidden:mu,dragStarted:nv,putSortable:Ko,activeSortable:Bn.active,originalEvent:o,oldIndex:tf,oldDraggableIndex:Hv,newIndex:ol,newDraggableIndex:fu,hideGhostForTarget:BP,unhideGhostForTarget:NP,cloneNowHidden:function(){mu=!0},cloneNowShown:function(){mu=!1},dispatchSortableEvent:function(l){wa({sortable:n,name:l,originalEvent:o})}},a))};function wa(t){lQe(Fi({putSortable:Ko,cloneEl:oo,targetEl:Ft,rootEl:Zr,oldIndex:tf,oldDraggableIndex:Hv,newIndex:ol,newDraggableIndex:fu},t))}var Ft,co,Wn,Zr,uc,hg,oo,mu,tf,ol,Hv,fu,Sh,Ko,jd=!1,l2=!1,i2=[],oc,Xl,D4,V4,ON,AN,nv,Rd,Wv,jv=!1,Bh=!1,gg,oa,$4=[],FC=!1,s2=[],C1=typeof document<"u",Nh=hP,MN=nm||Ls?"cssFloat":"float",sQe=C1&&!gP&&!hP&&"draggable"in document.createElement("div"),EP=function(){if(C1){if(Ls)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),kP=function(t,n){var r=pn(t),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=Ff(t,0,n),l=Ff(t,1,n),i=a&&pn(a),u=l&&pn(l),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+wo(a).width,c=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+wo(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[MN]==="none"||l&&r[MN]==="none"&&s+c>o)?"vertical":"horizontal"},uQe=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},cQe=function(t,n){var r;return i2.some(function(o){var a=o[il].options.emptyInsertThreshold;if(!(!a||q3(o))){var l=wo(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},SP=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||mg(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},BP=function(){!EP&&Wn&&pn(Wn,"display","none")},NP=function(){!EP&&Wn&&pn(Wn,"display","")};C1&&!gP&&document.addEventListener("click",function(t){if(l2)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),l2=!1,!1},!0);var ac=function(t){if(Ft){t=t.touches?t.touches[0]:t;var n=cQe(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[il]._onDragOver(r)}}},dQe=function(t){Ft&&Ft.parentNode[il]._isOutsideThisEl(t.target)};function Bn(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[il]=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 kP(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:Bn.supportPointer!==!1&&"PointerEvent"in window&&!zv,emptyInsertThreshold:5};rm.initializePlugins(this,t,r);for(var o in r)!(o in n)&&(n[o]=r[o]);SP(n);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=n.forceFallback?!1:sQe,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?wr(t,"pointerdown",this._onTapStart):(wr(t,"mousedown",this._onTapStart),wr(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(wr(t,"dragover",this),wr(t,"dragenter",this)),i2.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),Ns(this,rQe())}Bn.prototype={constructor:Bn,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Rd=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(yQe(r),!Ft&&!(/mousedown|pointerdown/.test(l)&&t.button!==0||o.disabled)&&!s.isContentEditable&&!(!this.nativeDraggable&&zv&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=Ei(u,o.draggable,r,!1),!(u&&u.animated)&&hg!==u)){if(tf=El(u),Hv=El(u,o.draggable),typeof c=="function"){if(c.call(this,t,u,this)){wa({sortable:n,rootEl:s,name:"filter",targetEl:u,toEl:r,fromEl:r}),Ia("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=Ei(s,d.trim(),r,!1),d)return wa({sortable:n,rootEl:d,name:"filter",targetEl:u,fromEl:r,toEl:r}),Ia("filter",n,{evt:t}),!0}),c)){a&&t.cancelable&&t.preventDefault();return}o.handle&&!Ei(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=wo(r);if(Zr=a,Ft=r,co=Ft.parentNode,uc=Ft.nextSibling,hg=r,Sh=l.group,Bn.dragged=Ft,oc={target:Ft,clientX:(n||t).clientX,clientY:(n||t).clientY},ON=oc.clientX-s.left,AN=oc.clientY-s.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Ft.style["will-change"]="all",u=function(){if(Ia("delayEnded",o,{evt:t}),Bn.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!TN&&o.nativeDraggable&&(Ft.draggable=!0),o._triggerDragStart(t,n),wa({sortable:o,name:"choose",originalEvent:t}),rl(Ft,l.chosenClass,!0)},l.ignore.split(",").forEach(function(c){yP(Ft,c.trim(),O4)}),wr(i,"dragover",ac),wr(i,"mousemove",ac),wr(i,"touchmove",ac),wr(i,"mouseup",o._onDrop),wr(i,"touchend",o._onDrop),wr(i,"touchcancel",o._onDrop),TN&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ft.draggable=!0),Ia("delayStart",this,{evt:t}),l.delay&&(!l.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(nm||Ls))){if(Bn.eventCanceled){this._onDrop();return}wr(i,"mouseup",o._disableDelayedDrag),wr(i,"touchend",o._disableDelayedDrag),wr(i,"touchcancel",o._disableDelayedDrag),wr(i,"mousemove",o._delayedDragTouchMoveHandler),wr(i,"touchmove",o._delayedDragTouchMoveHandler),l.supportPointer&&wr(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&&O4(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?wr(document,"pointermove",this._onTouchMove):n?wr(document,"touchmove",this._onTouchMove):wr(document,"mousemove",this._onTouchMove):(wr(Ft,"dragend",this),wr(Zr,"dragstart",this._onDragStart));try{document.selection?bg(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(jd=!1,Zr&&Ft){Ia("dragStarted",this,{evt:n}),this.nativeDraggable&&wr(document,"dragover",dQe);var r=this.options;!t&&rl(Ft,r.dragClass,!1),rl(Ft,r.ghostClass,!0),Bn.active=this,t&&this._appendGhost(),wa({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Xl){this._lastX=Xl.clientX,this._lastY=Xl.clientY,BP();for(var t=document.elementFromPoint(Xl.clientX,Xl.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Xl.clientX,Xl.clientY),t!==n);)n=t;if(Ft.parentNode[il]._isOutsideThisEl(t),n)do{if(n[il]){var r=void 0;if(r=n[il]._onDragOver({clientX:Xl.clientX,clientY:Xl.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);NP()}},_onTouchMove:function(t){if(oc){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,a=t.touches?t.touches[0]:t,l=Wn&&vf(Wn,!0),i=Wn&&l&&l.a,u=Wn&&l&&l.d,s=Nh&&oa&&$N(oa),c=(a.clientX-oc.clientX+o.x)/(i||1)+(s?s[0]-$4[0]:0)/(i||1),d=(a.clientY-oc.clientY+o.y)/(u||1)+(s?s[1]-$4[1]:0)/(u||1);if(!Bn.active&&!jd){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(Wn){l?(l.e+=c-(D4||0),l.f+=d-(V4||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(Wn,"webkitTransform",f),pn(Wn,"mozTransform",f),pn(Wn,"msTransform",f),pn(Wn,"transform",f),D4=c,V4=d,Xl=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Wn){var t=this.options.fallbackOnBody?document.body:Zr,n=wo(Ft,!0,Nh,!0,t),r=this.options;if(Nh){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(),$4=$N(oa)}Wn=Ft.cloneNode(!0),rl(Wn,r.ghostClass,!1),rl(Wn,r.fallbackClass,!0),rl(Wn,r.dragClass,!0),pn(Wn,"transition",""),pn(Wn,"transform",""),pn(Wn,"box-sizing","border-box"),pn(Wn,"margin",0),pn(Wn,"top",n.top),pn(Wn,"left",n.left),pn(Wn,"width",n.width),pn(Wn,"height",n.height),pn(Wn,"opacity","0.8"),pn(Wn,"position",Nh?"absolute":"fixed"),pn(Wn,"zIndex","100000"),pn(Wn,"pointerEvents","none"),Bn.ghost=Wn,t.appendChild(Wn),pn(Wn,"transform-origin",ON/parseInt(Wn.style.width)*100+"% "+AN/parseInt(Wn.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,o=t.dataTransfer,a=r.options;if(Ia("dragStart",this,{evt:t}),Bn.eventCanceled){this._onDrop();return}Ia("setupClone",this),Bn.eventCanceled||(oo=xP(Ft),oo.removeAttribute("id"),oo.draggable=!1,oo.style["will-change"]="",this._hideClone(),rl(oo,this.options.chosenClass,!1),Bn.clone=oo),r.cloneId=bg(function(){Ia("clone",r),!Bn.eventCanceled&&(r.options.removeCloneOnHide||Zr.insertBefore(oo,Ft),r._hideClone(),wa({sortable:r,name:"clone"}))}),!n&&rl(Ft,a.dragClass,!0),n?(l2=!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)),wr(document,"drop",r),pn(Ft,"transform","translateZ(0)")),jd=!0,r._dragStartId=bg(r._dragStarted.bind(r,n,t)),wr(document,"selectstart",r),nv=!0,zv&&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=Bn.active,c=Sh===u,d=i.sort,f=Ko||s,p,m=this,v=!1;if(FC)return;function g(R,W){Ia(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(P,U){return Th(Zr,n,Ft,o,P,wo(P),t,U)},changed:x},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&&(rl(Ft,Ko?Ko.options.ghostClass:s.options.ghostClass,!1),rl(Ft,i.ghostClass,!0)),Ko!==m&&m!==Bn.active?Ko=m:m===Bn.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)&&(Rd=null),!i.dragoverBubble&&!t.rootEl&&r!==document&&(Ft.parentNode[il]._isOutsideThisEl(t.target),!R&&ac(t)),!i.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function x(){ol=El(Ft),fu=El(Ft,i.draggable),wa({sortable:m,name:"change",toEl:n,newIndex:ol,newDraggableIndex:fu,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=Ei(r,i.draggable,n,!0),g("dragOver"),Bn.eventCanceled)return v;if(Ft.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||m._ignoreWhileAnimating===r)return C(!1);if(l2=!1,s&&!i.disabled&&(c?d||(l=co!==Zr):Ko===this||(this.lastPutMode=Sh.checkPull(this,s,Ft,t))&&u.checkPut(this,s,Ft,t))){if(p=this._getDirection(t,r)==="vertical",o=wo(Ft),g("dragOverValid"),Bn.eventCanceled)return v;if(l)return co=Zr,y(),this._hideClone(),g("revert"),Bn.eventCanceled||(uc?Zr.insertBefore(Ft,uc):Zr.appendChild(Ft)),C(!0);var b=q3(n,i.draggable);if(!b||mQe(t,p,this)&&!b.animated){if(b===Ft)return C(!1);if(b&&n===t.target&&(r=b),r&&(a=wo(r)),Th(Zr,n,Ft,o,r,a,t,!!r)!==!1)return y(),b&&b.nextSibling?n.insertBefore(Ft,b.nextSibling):n.appendChild(Ft),co=n,x(),C(!0)}else if(b&&vQe(t,p,this)){var w=Ff(n,0,i,!0);if(w===Ft)return C(!1);if(r=w,a=wo(r),Th(Zr,n,Ft,o,r,a,t,!1)!==!1)return y(),n.insertBefore(Ft,w),co=n,x(),C(!0)}else if(r.parentNode===n){a=wo(r);var E=0,S,B=Ft.parentNode!==n,k=!uQe(Ft.animated&&Ft.toRect||o,r.animated&&r.toRect||a,p),V=p?"top":"left",N=VN(r,"top","top")||VN(Ft,"top","top"),T=N?N.scrollTop:void 0;Rd!==r&&(S=a[V],jv=!1,Bh=!k&&i.invertSwap||B),E=hQe(t,r,a,p,k?1:i.swapThreshold,i.invertedSwapThreshold==null?i.swapThreshold:i.invertedSwapThreshold,Bh,Rd===r);var O;if(E!==0){var I=El(Ft);do I-=E,O=co.children[I];while(O&&(pn(O,"display")==="none"||O===Wn))}if(E===0||O===r)return C(!1);Rd=r,Wv=E;var z=r.nextElementSibling,F=!1;F=E===1;var L=Th(Zr,n,Ft,o,r,a,t,F);if(L!==!1)return(L===1||L===-1)&&(F=L===1),FC=!0,setTimeout(pQe,30),y(),F&&!z?n.appendChild(Ft):r.parentNode.insertBefore(Ft,F?z:r),N&&wP(N,0,T-N.scrollTop),co=Ft.parentNode,S!==void 0&&!Bh&&(gg=Math.abs(S-wo(r)[V])),x(),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(ol=El(Ft),fu=El(Ft,r.draggable),Ia("drop",this,{evt:t}),co=Ft&&Ft.parentNode,ol=El(Ft),fu=El(Ft,r.draggable),Bn.eventCanceled){this._nulling();return}jd=!1,Bh=!1,jv=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),zC(this.cloneId),zC(this._dragStartId),this.nativeDraggable&&(br(document,"drop",this),br(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),zv&&pn(document.body,"user-select",""),pn(Ft,"transform",""),t&&(nv&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),Wn&&Wn.parentNode&&Wn.parentNode.removeChild(Wn),(Zr===co||Ko&&Ko.lastPutMode!=="clone")&&oo&&oo.parentNode&&oo.parentNode.removeChild(oo),Ft&&(this.nativeDraggable&&br(Ft,"dragend",this),O4(Ft),Ft.style["will-change"]="",nv&&!jd&&rl(Ft,Ko?Ko.options.ghostClass:this.options.ghostClass,!1),rl(Ft,this.options.chosenClass,!1),wa({sortable:this,name:"unchoose",toEl:co,newIndex:null,newDraggableIndex:null,originalEvent:t}),Zr!==co?(ol>=0&&(wa({rootEl:co,name:"add",toEl:co,fromEl:Zr,originalEvent:t}),wa({sortable:this,name:"remove",toEl:co,originalEvent:t}),wa({rootEl:co,name:"sort",toEl:co,fromEl:Zr,originalEvent:t}),wa({sortable:this,name:"sort",toEl:co,originalEvent:t})),Ko&&Ko.save()):ol!==tf&&ol>=0&&(wa({sortable:this,name:"update",toEl:co,originalEvent:t}),wa({sortable:this,name:"sort",toEl:co,originalEvent:t})),Bn.active&&((ol==null||ol===-1)&&(ol=tf,fu=Hv),wa({sortable:this,name:"end",toEl:co,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Ia("nulling",this),Zr=Ft=co=Wn=uc=oo=hg=mu=oc=Xl=nv=ol=fu=tf=Hv=Rd=Wv=Ko=Sh=Bn.dragged=Bn.ghost=Bn.clone=Bn.active=null,s2.forEach(function(t){t.checked=!0}),s2.length=D4=V4=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ft&&(this._onDragOver(t),fQe(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],Ei(n,l.draggable,this.el,!1)&&t.push(n.getAttribute(l.dataIdAttr)||bQe(n));return t},sort:function(t,n){var r={},o=this.el;this.toArray().forEach(function(a,l){var i=o.children[l];Ei(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 Ei(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=rm.modifyOption(this,t,n);typeof o<"u"?r[t]=o:r[t]=n,t==="group"&&SP(r)},destroy:function(){Ia("destroy",this);var t=this.el;t[il]=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(),i2.splice(i2.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!mu){if(Ia("hideClone",this),Bn.eventCanceled)return;pn(oo,"display","none"),this.options.removeCloneOnHide&&oo.parentNode&&oo.parentNode.removeChild(oo),mu=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(mu){if(Ia("showClone",this),Bn.eventCanceled)return;Ft.parentNode==Zr&&!this.options.group.revertClone?Zr.insertBefore(oo,Ft):uc?Zr.insertBefore(oo,uc):Zr.appendChild(oo),this.options.group.revertClone&&this.animate(Ft,oo),pn(oo,"display",""),mu=!1}}};function fQe(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Th(t,n,r,o,a,l,i,u){var s,c=t[il],d=c.options.onMove,f;return window.CustomEvent&&!Ls&&!nm?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||wo(n),s.willInsertAfter=u,s.originalEvent=i,t.dispatchEvent(s),d&&(f=d.call(c,s,i)),f}function O4(t){t.draggable=!1}function pQe(){FC=!1}function vQe(t,n,r){var o=wo(Ff(r.el,0,r.options,!0)),a=_P(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 mQe(t,n,r){var o=wo(q3(r.el,r.options.draggable)),a=_P(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 hQe(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&&gg<c*a){if(!jv&&(Wv===1?s>d+c*l/2:s<f-c*l/2)&&(jv=!0),jv)p=!0;else if(Wv===1?s<d+gg:s>f-gg)return-Wv}else if(s>d+c*(1-a)/2&&s<f-c*(1-a)/2)return gQe(n)}return p=p||i,p&&(s<d+c*l/2||s>f-c*l/2)?s>d+c/2?1:-1:0}function gQe(t){return El(Ft)<El(t)?1:-1}function bQe(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 yQe(t){s2.length=0;for(var n=t.getElementsByTagName("input"),r=n.length;r--;){var o=n[r];o.checked&&s2.push(o)}}function bg(t){return setTimeout(t,0)}function zC(t){return clearTimeout(t)}C1&&wr(document,"touchmove",function(t){(Bn.active||jd)&&t.cancelable&&t.preventDefault()});Bn.utils={on:wr,off:br,css:pn,find:yP,is:function(t,n){return!!Ei(t,n,t,!1)},extend:tQe,throttle:CP,closest:Ei,toggleClass:rl,clone:xP,index:El,nextTick:bg,cancelNextTick:zC,detectDirection:kP,getChild:Ff};Bn.get=function(t){return t[il]};Bn.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&&(Bn.utils=Fi(Fi({},Bn.utils),o.utils)),rm.mount(o)})};Bn.create=function(t,n){return new Bn(t,n)};Bn.version=JJe;var Co=[],rv,LC,HC=!1,A4,M4,u2,ov;function _Qe(){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?wr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?wr(document,"pointermove",this._handleFallbackAutoScroll):r.touches?wr(document,"touchmove",this._handleFallbackAutoScroll):wr(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)),RN(),yg(),nQe()},nulling:function(){u2=LC=rv=HC=ov=A4=M4=null,Co.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(u2=n,r||this.options.forceAutoScrollFallback||nm||Ls||zv){R4(n,this.options,i,r);var u=_u(i,!0);HC&&(!ov||a!==A4||l!==M4)&&(ov&&RN(),ov=setInterval(function(){var s=_u(document.elementFromPoint(a,l),!0);s!==u&&(u=s,yg()),R4(n,o.options,s,r)},10),A4=a,M4=l)}else{if(!this.options.bubbleScroll||_u(i,!0)===$i()){yg();return}R4(n,this.options,_u(i,!1),!1)}}},Ns(t,{pluginName:"scroll",initializeByDefault:!0})}function yg(){Co.forEach(function(t){clearInterval(t.pid)}),Co=[]}function RN(){clearInterval(ov)}var R4=CP(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;LC!==r&&(LC=r,yg(),rv=n.scroll,d=n.scrollFn,rv===!0&&(rv=_u(r,!0)));var f=0,p=rv;do{var m=p,v=wo(m),g=v.top,y=v.bottom,C=v.left,x=v.right,b=v.width,w=v.height,E=void 0,S=void 0,B=m.scrollWidth,k=m.scrollHeight,V=pn(m),N=m.scrollLeft,T=m.scrollTop;m===s?(E=b<B&&(V.overflowX==="auto"||V.overflowX==="scroll"||V.overflowX==="visible"),S=w<k&&(V.overflowY==="auto"||V.overflowY==="scroll"||V.overflowY==="visible")):(E=b<B&&(V.overflowX==="auto"||V.overflowX==="scroll"),S=w<k&&(V.overflowY==="auto"||V.overflowY==="scroll"));var O=E&&(Math.abs(x-a)<=i&&N+b<B)-(Math.abs(C-a)<=i&&!!N),I=S&&(Math.abs(y-l)<=i&&T+w<k)-(Math.abs(g-l)<=i&&!!T);if(!Co[f])for(var z=0;z<=f;z++)Co[z]||(Co[z]={});(Co[f].vx!=O||Co[f].vy!=I||Co[f].el!==m)&&(Co[f].el=m,Co[f].vx=O,Co[f].vy=I,clearInterval(Co[f].pid),(O!=0||I!=0)&&(c=!0,Co[f].pid=setInterval((function(){o&&this.layer===0&&Bn.active._onTouchMove(u2);var F=Co[this.layer].vy?Co[this.layer].vy*u:0,L=Co[this.layer].vx?Co[this.layer].vx*u:0;typeof d=="function"&&d.call(Bn.dragged.parentNode[il],L,F,t,u2,Co[this.layer].el)!=="continue"||wP(Co[this.layer].el,L,F)}).bind({layer:f}),24))),f++}while(n.bubbleScroll&&p!==s&&(p=_u(p,!1)));HC=c}},30),TP=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 U3(){}U3.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=Ff(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:TP};Ns(U3,{pluginName:"revertOnSpill"});function K3(){}K3.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:TP};Ns(K3,{pluginName:"removeOnSpill"});Bn.mount(new _Qe);Bn.mount(K3,U3);function CQe(t){return t==null?t:JSON.parse(JSON.stringify(t))}function wQe(t){e.getCurrentInstance()&&e.onUnmounted(t)}function xQe(t){e.getCurrentInstance()?e.onMounted(t):e.nextTick(t)}const IN=Symbol("cloneElement");function EQe(...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=CQe,customUpdate:d}=(r=e.unref(i))!=null?r:{};function f(S){var B;S.item[IN]=c(e.unref((B=e.unref(l))==null?void 0:B[S.oldIndex]))}function p(S){const B=S.item[IN];HJe(B)||(B4(S.item),LJe(e.unref(l),S.newDraggableIndex,B))}function m(S){const{from:B,item:k,oldIndex:V,oldDraggableIndex:N,pullMode:T,clone:O}=S;if(T==="clone"){BN(B,k,V),B4(O);return}zJe(e.unref(l),N)}function v(S){if(d){d(S);return}const{from:B,item:k,oldIndex:V,newIndex:N}=S;if(B4(k),BN(B,k,V),e.isRef(l)){const T=[...e.unref(l)];l.value=SN(T,V,N);return}SN(e.unref(l),V,N)}const g={onUpdate:v,onStart:f,onAdd:p,onRemove:m};function y(S){const B=e.unref(a);return S||(S=WJe(B)?jJe(B,o==null?void 0:o.$el):B),S&&!KJe(S)&&(S=S.$el),S||IJe("Root element not found"),S}function C(){var S;const B=(S=e.unref(i))!=null?S:{},k=vP(B,["immediate","clone"]);return UJe(l===null?{}:g,k)}const x=S=>{S=y(S),u&&b.destroy(),u=new Bn(S,C())};e.watch(()=>i,()=>{u&&GJe(C(),(S,B)=>{u==null||u.option(S,B)})},{deep:!0});const b={option:(S,B)=>u==null?void 0:u.option(S,B),destroy:()=>{u==null||u.destroy(),u=null},save:()=>u==null?void 0:u.save(),toArray:()=>u==null?void 0:u.toArray(),closest:(...S)=>u==null?void 0:u.closest(...S)},w=()=>b==null?void 0:b.option("disabled",!0),E=()=>b==null?void 0:b.option("disabled",!1);return xQe(()=>{s&&x()}),wQe(b.destroy),ef({start:x,pause:w,resume:E},b)}const WC=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],kQe=["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",...WC.map(t=>`on${t.replace(/^\S/,n=>n.toUpperCase())}`)],Fu=e.defineComponent({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:kQe,emits:["update:modelValue",...WC],setup(t,{slots:n,emit:r,expose:o,attrs:a}){const l=WC.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=vP(d,["modelValue"]),p=Object.entries(f).reduce((m,[v,g])=>{const y=e.unref(g);return y!==void 0&&(m[v]=y),m},{});return ef(ef({},l),FJe(ef(ef({},a),p)))}),u=e.computed({get:()=>t.modelValue,set:d=>r("update:modelValue",d)}),s=e.ref(),c=e.reactive(EQe(t.target||s,u,i));return o(c),()=>{if(n.default)return e.h(t.tag||"div",{ref:s},n.default(c))}}}),SQe=t=>(e.pushScopeId("data-v-6c8c63c7"),t=t(),e.popScopeId(),t),BQe=SQe(()=>e.createElementVNode("div",{class:"h-4"},null,-1)),NQe=e.defineComponent({name:"formDrag"}),TQe=e.defineComponent({...NQe,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{...Ue.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(Fu),{class:"bc-form bc-form-drag",ref_key:"dragRef",ref:l,handle:".el-form-item__label",ghostClass:"ghost",modelValue:u.value,"onUpdate:modelValue":d[0]||(d[0]=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,value:c.formData},e.unref(Ue).omit(m.data.elData,"rules")),null,16,["el-component","field-component","value"])):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(Ue).omit(m.data.elData,"rules")),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),_:2},1040))),128))]),_:3},8,["modelValue"]),BQe]),_:3},16,["model"])}}}),DQe=Or(TQe,[["__scopeId","data-v-6c8c63c7"]]),VQe=t=>(e.pushScopeId("data-v-3a9a55d0"),t=t(),e.popScopeId(),t),$Qe={class:"sort-form-wraper"},OQe={class:"sort-form-wraper__content"},AQe={class:"content__wrap"},MQe=VQe(()=>e.createElementVNode("div",{class:"head"},[e.createElementVNode("span",{class:"drag"},"拖动"),e.createElementVNode("span",{class:"name"},"列名称"),e.createElementVNode("span",null,"显示状态"),e.createElementVNode("span",null,"排序值")],-1)),RQe={class:"sort-target drag li"},IQe={class:"li name"},PQe={class:"li"},FQe={class:"li"},zQe={class:"footer"},LQe={class:"footer-confirm"},HQe=e.defineComponent({name:"sortColumn"}),WQe=e.defineComponent({...HQe,props:{uniqueId:{},mid:{},id:{},close:{type:Function},refreshData:{type:Function}},setup(t){const{proxy:n}=e.getCurrentInstance(),r=t,o=e.ref([]);let a="",l=[];i();function i(){return zl({mid:r.mid,id:r.uniqueId}).then(f=>{const{tableConfig:p}=f.table.tables.find(m=>m.id===r.id);a=f.table.project_code,o.value=p.filter(m=>!m.data.type)})}function u(){e.nextTick(()=>{o.value.forEach((f,p)=>{f.data.sortItem=p+1}),l=o.value})}function s(){vn({url:`/${a}-web/pri/v2/field_user/clear_user_field`,method:"post",data:{config_unique_id:r.uniqueId,menu_id:r.mid,table_id:r.id}}).then(()=>{n.$message.success("重置设置成功"),r.close(),r==null||r.refreshData()})}async function c(){zl({mid:r.mid,id:r.uniqueId}).then(f=>{const p=f.table.tables.find(v=>v.id===r.id),m=p.tableConfig.filter(v=>v.data.type);p.tableConfig=JSON.parse(JSON.stringify([...m,...o.value])),l=JSON.parse(JSON.stringify([...m,...o.value])),Zf({mid:r.mid,id:r.uniqueId},f).then(()=>{d().then(()=>{r.close(p),n.$message.success("保存成功")})})})}function d(){const f=JSON.stringify(l.filter(p=>!p.data.type).map(p=>({fieldName:p.data.title,showName:p.data.title,fieldProp:p.data.field,fieldShow:p.data.isShow?1:0,sort:p.data.sortItem})).sort((p,m)=>p.sort-m.sort));return vn({url:`/${a}-web/pri/v2/field_user/batch_save_user_field`,method:"post",data:{config_unique_id:r.uniqueId,menu_id:r.mid,table_id:r.id,json_data:f}})}return(f,p)=>{const m=e.resolveComponent("el-icon"),v=e.resolveComponent("hs-input"),g=e.resolveComponent("hs-switch"),y=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",$Qe,[e.createElementVNode("div",OQe,[e.createElementVNode("div",AQe,[MQe,e.createVNode(e.unref(Fu),{modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=C=>o.value=C),ghostClass:"ghost",handle:".sort-target",animation:"150",class:"drag-component",style:{height:"calc(100% - 34px)"},onUpdate:u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(C,x)=>(e.openBlock(),e.createElementBlock("div",{key:C.id,class:"sort-target__wraper"},[e.createElementVNode("span",RQe,[e.createVNode(m,{class:"rotate-90",size:"14"},{default:e.withCtx(()=>[e.createVNode(e.unref(e0))]),_:1})]),e.createElementVNode("span",IQe,[e.createVNode(v,{modelValue:C.data.title,"onUpdate:modelValue":b=>C.data.title=b},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",PQe,[e.createVNode(g,{modelValue:C.data.isShow,"onUpdate:modelValue":b=>C.data.isShow=b},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",FQe,e.toDisplayString(x+1),1)]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",zQe,[e.createVNode(y,{type:"primary",size:"small",onClick:s},{default:e.withCtx(()=>[e.createTextVNode("重置设置")]),_:1}),e.createElementVNode("div",LQe,[e.createVNode(y,{size:"small",onClick:p[1]||(p[1]=C=>f.close("cancel"))},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(y,{type:"primary",size:"small",onClick:c},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])])])}}}),jQe=Or(WQe,[["__scopeId","data-v-3a9a55d0"]]);function qQe(t,n,r,o){return new Promise(a=>{v1(jQe,{id:n,uniqueId:t,mid:r,refreshData:o},{id:n,title:"表格配置",showFooter:!1,success:({type:l})=>{a(l)}})})}const Dr=e.reactive({rowIndex:0,columnIndex:0});function UQe(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 g1(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 KQe(t,n,r){const o=e.inject("bcBoxApi",{});function a(s){Dr.rowIndex=s.rowIndex,Dr.columnIndex=s.columnIndex,r("cell-click",s)}function l(s){s.columnIndex===0?qQe(t.uniqueId,t.id,t.mid,o.refreshData).then(c=>{if(!c)return;const d=c.tableConfig.map(f=>Fc(f.data)).filter(f=>f.isShow);e.nextTick(async()=>{var f,p;await((f=e.toValue(n))==null?void 0:f.reloadColumn(d)),await((p=e.toValue(n))==null?void 0:p.refreshColumn())})}):r("header-cell-click",s)}function i(s,c){s.fnName&&typeof s.fnName=="function"&&s.fnName(c)}function u(s){r("page-change",s)}return{handleCellClick:a,headerCellClick:l,headerBtnClick:i,pageChange:u}}function GQe(){const t=e.ref(),n=e.ref(),r=e.ref(),{height:o}=xu(t),{height:a}=xu(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"}),XQe=e.defineComponent({...YQe,props:{id:{},uniqueId:{},mid:{},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}=GQe(),{handleCellClick:s,headerCellClick:c,headerBtnClick:d,pageChange:f}=KQe(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,x=>(e.openBlock(),e.createBlock(g,e.mergeProps({key:x.id},x.data),e.createSlots({_:2},[e.renderList(p.$slots,(b,w)=>({name:w,fn:e.withCtx(E=>[e.renderSlot(p.$slots,w,e.normalizeProps(e.guardReactiveProps(E||{})),void 0,!0)])})),x.data.isSlot?{name:"default",fn:e.withCtx(b=>[x.data.el?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(iP)(x.data.el)),{key:0,modelValue:b.row[b.column.field],"onUpdate:modelValue":w=>b.row[b.column.field]=w},null,8,["modelValue","onUpdate:modelValue"])):e.renderSlot(p.$slots,x.data.field,e.normalizeProps(e.mergeProps({key:1},b||{})),void 0,!0)]),key:"0"}:x.btnData&&x.btnData.length?{name:"default",fn:e.withCtx(b=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.btnData,w=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:w.id},[w.data.isShow?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[w.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:w.data,onClick:E=>e.unref(d)(w.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,(x,b)=>({name:b,fn:e.withCtx(w=>[e.renderSlot(p.$slots,"pager_"+b,e.normalizeProps(e.guardReactiveProps(w||{})),void 0,!0)])}))]),1040,["onPageChange"])):e.createCommentVNode("",!0)],512)],512)}}}),ZQe=Or(XQe,[["__scopeId","data-v-77b4b9a3"]]),JQe={key:0,class:"item-wrap"},QQe=["onClick"],eet=e.defineComponent({name:"formTabs"}),tet=e.defineComponent({...eet,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}=xu(r),{height:l}=xu(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",JQe,[(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,QQe))),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))}}),net=Or(tet,[["__scopeId","data-v-fa1d5d61"]]);function ret(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 oet=["onClick"],aet=e.defineComponent({name:"contextBody"}),iet=e.defineComponent({...aet,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}=ret(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,oet))),128))],4)):e.createCommentVNode("",!0)]),_:1})]))],512))}}),PN=Or(iet,[["__scopeId","data-v-aba5fec1"]]);function set(){const t=e.ref(!1),n=e.ref(),r=e.ref(),o=e.ref(),a=e.ref({}),{height:l}=xu(n),{height:i}=xu(r,{height:0,width:0}),{height:u}=xu(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 e.provide("formSearchApi",{onHeightChange:d}),{wrapRef:n,btnRef:r,formRef:o,tableApi:a,style:s,isOverHide:t,onReady:c}}function uet(t,n,r,o){let a={};y1(()=>{var f;return(f=o.data)==null?void 0:f.config_unique_id},()=>{var f,p;a=Ue.cloneDeep(((p=(f=o.data)==null?void 0:f.form)==null?void 0:p.formData)||{})}),e.computed(()=>n.value[r.value]);const l={add:u,reset:s,search:c,export:d},i=e.computed(()=>{var f;return((f=o.data)==null?void 0:f.btns.map(p=>(o.isConfig||(p.data.fnName=l[p.data.key]||""),p)))||[]});function u(){}function s(){var f,p,m;Ue.isEmpty((p=(f=o.data)==null?void 0:f.form)==null?void 0:p.formData)||((m=t.value.getComponents())==null||m.forEach(v=>{var g;typeof((g=e.toValue(v))==null?void 0:g.clearData)=="function"&&e.toValue(v).clearData()}),Ue.isEmpty(a)?Object.keys(o.data.form.formData).forEach(v=>{aP.test(v)||(o.data.form.formData[v]="")}):o.data.form.formData=Ue.cloneDeep(a)),c()}async function c(){const f=o.data.tables.find(p=>p.id===r.value);f.baseData.table_page_data.currentPage=1,f.tableData=await g1(f.baseData,o.data.form.formData)}function d(){}return{btns:i}}const cet=t=>(e.pushScopeId("data-v-00637085"),t=t(),e.popScopeId(),t),det={class:"sort-form-wraper"},fet={class:"sort-form-wraper__content"},pet={class:"content__wrap"},vet=cet(()=>e.createElementVNode("div",{class:"head"},[e.createElementVNode("span",{class:"drag"},"拖动"),e.createElementVNode("span",{class:"name"},"列名称"),e.createElementVNode("span",null,"显示状态"),e.createElementVNode("span",null,"排序值")],-1)),met={class:"sort-target drag li"},het={class:"li name"},get={class:"li"},bet={class:"li"},yet={class:"footer"},_et=e.defineComponent({name:"sortColumn"}),Cet=e.defineComponent({..._et,props:{id:{},mid:{},close:{type:Function}},setup(t){const n=t,r=e.ref([]);o();async function o(){return zl({mid:n.mid,id:n.id}).then(l=>{var i;r.value=((i=l.table.form)==null?void 0:i.formConfig)||[]})}async function a(){zl({mid:n.mid,id:n.id}).then(l=>{const i=JSON.parse(JSON.stringify([...r.value]));i.forEach(u=>{if(u.data.baseData.el2){const s=u.data.baseData.el;u.data.baseData.el=u.data.baseData.el2,u.data.baseData.el2=s}}),l.table.form.formConfig=i,Zf({mid:n.mid,id:n.id},l).then(()=>{n.close(l.table)})})}return(l,i)=>{const u=e.resolveComponent("el-icon"),s=e.resolveComponent("hs-input"),c=e.resolveComponent("hs-switch"),d=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",det,[e.createElementVNode("div",fet,[e.createElementVNode("div",pet,[vet,e.createVNode(e.unref(Fu),{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=f=>r.value=f),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(r.value,(f,p)=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"sort-target__wraper"},[e.createElementVNode("span",met,[e.createVNode(u,{class:"rotate-90",size:"14"},{default:e.withCtx(()=>[e.createVNode(e.unref(e0))]),_:1})]),e.createElementVNode("span",het,[e.createVNode(s,{modelValue:f.data.baseData.label,"onUpdate:modelValue":m=>f.data.baseData.label=m},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",get,[e.createVNode(c,{modelValue:f.data.baseData.isShow,"onUpdate:modelValue":m=>f.data.baseData.isShow=m},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",bet,e.toDisplayString(p+1),1)]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",yet,[e.createVNode(d,{size:"small",onClick:i[1]||(i[1]=f=>l.close("cancel"))},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(d,{type:"primary",size:"small",onClick:a},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])])}}}),wet=Or(Cet,[["__scopeId","data-v-00637085"]]);function xet(t,n){return new Promise(r=>{v1(wet,{id:t,mid:n},{title:"高级设置",showFooter:!1,success({type:o}){r(o)}})})}function Eet(t,n,r,o){const a=e.inject("bcBoxApi",{}),l=e.computed(()=>n.value[r.value]),i=e.ref(!1),u=async()=>{i.value&&await zl({id:o.data.config_unique_id,mid:o.data.mid}).then(async f=>{const p=JSON.parse(JSON.stringify(o.data.form.formConfig));p.forEach(m=>{if(m.data.baseData.el2){const v=m.data.baseData.el;m.data.baseData.el=m.data.baseData.el2,m.data.baseData.el2=v}}),f.table.form.formConfig=p,await Zf({id:o.data.config_unique_id,mid:o.data.mid},f)}),i.value=!i.value},s=()=>{xet(o.data.config_unique_id,o.data.mid).then(async f=>{const{formConfig:p}=await sP(f);o.data.form.formConfig=p})},c=async()=>{a==null||a.refreshData()},d=[{label:"高级设置",value:"222",click:s},{label:e.computed(()=>i.value?"完成排序":"排序设置"),value:"111",click:u},{label:"重置设置",value:"333",click:c}];return y1(t,()=>{setTimeout(()=>{var f;(f=Ue.get(e.toValue(t),"componentRef.0"))==null||f.focus()},1e3)}),kc("ArrowLeft",f=>{var y,C;f.preventDefault();const p=document.activeElement;if(!p.closest(".bc-form__wrapper"))return;const m=(y=e.toValue(t))==null?void 0:y.getComponents();let v=m.findIndex(x=>(x!=null&&x.activeElement&&(x=x.activeElement()),x==p)),g=v<0?m.length-1:v;g--,g<0&&(g=m.length-1),(C=Ue.get(m,g))==null||C.focus()}),kc("ArrowRight",f=>{var C,x;f.preventDefault();const p=document.activeElement;if(!p.closest(".bc-form__wrapper"))return;const m=(C=e.toValue(t))==null?void 0:C.getComponents(),v=m.length-1;let g=m.findIndex(b=>(b!=null&&b.activeElement&&(b=b.activeElement()),b==p)),y=g<0?-1:g;y++,y>v&&(y=0),(x=Ue.get(m,y))==null||x.focus()}),kc("ArrowDown",f=>{var y,C,x;if(f.preventDefault(),!document.activeElement.closest(".bc-form__wrapper"))return;Dr.rowIndex=0;const m=(y=e.toValue(l))==null?void 0:y.getData(Dr.rowIndex),{visibleColumn:v}=e.toValue(l).getTableColumn();Dr.columnIndex=v.filter(b=>b.type).length;const g=v[Dr.columnIndex].field;(C=e.toValue(l))==null||C.setCurrentRow(m),(x=e.toValue(l))==null||x.setEditRow(m,g)}),{isShowDrag:i,menuForm:d}}const ket=e.defineComponent({name:"bcFormTable"}),Bet=e.defineComponent({...ket,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===""?Ue.get(r,"data.tables.0.id",""):a.value},set(b){a.value=b}}),{wrapRef:i,btnRef:u,formRef:s,tableApi:c,style:d,isOverHide:f,onReady:p}=set(),{menuForm:m,isShowDrag:v}=Eet(s,c,l,r),{menuTable:g,onPageChange:y}=UQe(s,c,l,r),{btns:C}=uet(s,c,l,r);function x(b){o("btnClick",b)}return y1(()=>{var b;return(b=r.data)==null?void 0:b.config_unique_id},()=>{e.nextTick(()=>{o("ready",{tableApi:c,activeTabs:l,api:e.computed(()=>c.value[l.value])})})}),(b,w)=>{var S,B,k;const E=e.resolveDirective("loading");return e.withDirectives((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(C).length?(e.openBlock(),e.createBlock(e.unref(BJe),{key:0,ref_key:"btnRef",ref:u,isConfig:t.isConfig,btns:e.unref(C),onBtnClick:x},e.createSlots({_:2},[e.renderList(b.$slots,(V,N)=>({name:N,fn:e.withCtx(T=>[e.renderSlot(b.$slots,N,e.normalizeProps(e.guardReactiveProps(T||{})),void 0,!0)])}))]),1032,["isConfig","btns"])):e.createCommentVNode("",!0),!t.hideSearch&&!e.unref(Ue).isEmpty((S=t.data)==null?void 0:S.form)?(e.openBlock(),e.createBlock(e.unref(PN),{key:1,menu:e.unref(m)},{default:e.withCtx(()=>[e.unref(v)?(e.openBlock(),e.createBlock(e.unref(DQe),e.mergeProps({key:1,ref_key:"formRef",ref:s,formConfig:t.data.form.formConfig,"onUpdate:formConfig":w[0]||(w[0]=V=>t.data.form.formConfig=V)},e.unref(Ue).omit(t.data.form,"formConfig")),e.createSlots({_:2},[e.renderList(b.$slots,(V,N)=>({name:N,fn:e.withCtx(T=>[e.renderSlot(b.$slots,N,e.normalizeProps(e.guardReactiveProps(T||{})),void 0,!0)])}))]),1040,["formConfig"])):(e.openBlock(),e.createBlock(e.unref(AJe),e.mergeProps({key:0,ref_key:"formRef",ref:s},t.data.form),e.createSlots({_:2},[e.renderList(b.$slots,(V,N)=>({name:N,fn:e.withCtx(T=>[e.renderSlot(b.$slots,N,e.normalizeProps(e.guardReactiveProps(T||{})),void 0,!0)])}))]),1040))]),_:3},8,["menu"])):e.createCommentVNode("",!0),e.unref(Ue).isEmpty((B=t.data)==null?void 0:B.tables)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(PN),{key:2,target:".vxe-table--body-wrapper",menu:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(e.unref(net),{style:e.normalizeStyle(e.unref(d)),active:l.value,"onUpdate:active":w[1]||(w[1]=V=>l.value=V),tabs:t.data.tables},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data.tables,V=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(ZQe),e.mergeProps(V,{key:V.id,"unique-id":t.data.config_unique_id,mid:t.data.mid,class:"h-full",onReady:N=>e.unref(p)(N,V.id),onPageChange:e.unref(y)}),e.createSlots({_:2},[e.renderList(b.$slots,(N,T)=>({name:T,fn:e.withCtx(O=>[e.renderSlot(b.$slots,T,e.normalizeProps(e.guardReactiveProps(O||{})),void 0,!0)])}))]),1040,["unique-id","mid","onReady","onPageChange"])),[[e.vShow,l.value===V.id]])),128))]),_:3},8,["style","active","tabs"])]),_:3},8,["menu"])),e.unref(Ue).isEmpty((k=t.data)==null?void 0:k.tables)?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(e.unref(d))},[e.renderSlot(b.$slots,"customeContent",e.normalizeProps(e.guardReactiveProps(t.data||{})),void 0,!0)],4)):e.createCommentVNode("",!0)],2)),[[E,e.unref(m1)]])}}}),Net=Or(Bet,[["__scopeId","data-v-091fa117"]]),Tet=e.defineComponent({name:"BcSelect"}),Det=e.defineComponent({...Tet,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 vn({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)}}}),Vet=t=>(e.pushScopeId("data-v-db063ea8"),t=t(),e.popScopeId(),t),$et={class:"text-[#606266] truncate"},Oet={key:0},Aet=Vet(()=>e.createElementVNode("div",null,null,-1)),Met=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"),x=e.resolveComponent("hs-form");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(x,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,w)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[b.show!==!1?(e.openBlock(),e.createBlock(y,{key:w,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",$et,[e.createTextVNode("  "+e.toDisplayString(b.label)+"  ",1),t.parentConfig.showColon?(e.openBlock(),e.createElementBlock("span",Oet,":   ")):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,S)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.cel),{key:S,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)),Aet]),_:3})]),_:3},16,["label-width","inline","rules","model","style"])])}}}),Ret=Or(Met,[["__scopeId","data-v-db063ea8"]]),Iet=e.defineComponent({name:"bcTreeSelect"}),Pet=e.defineComponent({...Iet,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 vn({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"])}}}),Fet=[{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"}}]}],FN=[{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"}],w1={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 zet={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:""},Let=[{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 DP=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"}]),qv={"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"},Het={label:[{required:!0,message:"请输入参数名称"}],prop:[{required:!0,message:"请输入查询参数"}],el:[{required:!0,message:"请选择组件类型"}]};let VP=e.ref({id:"",sort:0,data:{baseData:{label:"参数名称",prop:"",el:"hs-input",isSlot:!1,isApply:!0,isShow:!0},elData:w1}}),Wet={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:DP.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:Het},elConfig:{title:{subTitle:"元素项属性"},visible:!0,list:[]}},c2=e.ref({id:"",data:{baseData:{},elData:{}}}),tl=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 $P={currentPage:{baseData:{isApply:!0,isShow:!1},elData:{attrs:{defaultValue:1}}},pageSize:{baseData:{isApply:!0,isShow:!1},elData:{attrs:{defaultValue:10}}}},jet=(t,n)=>Object.assign(t,{title:n}),qet=(t={})=>{let n=t.proxy?"/"+t.proxy:"";return delete t.proxy,t=jet(t,"后台api获取接口"),vn({url:n?n+"/v2/api-docs":"/scmp-web/v2/api-docs",method:"get",params:t})};function OP(){return{getApiDocs:qet}}const Uet=(t,n)=>Object.assign(t,{title:n}),Ket=(t={})=>(t=Uet(t,"获取所有系统信息列表"),vn({url:"/scmp-web/pri/system/get_all_system_info",method:"get",params:t}));function AP(){return{getAllSystemInfo:Ket}}const Ba=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),Get=(t={})=>(t=Ba(t,"保存新表格字段设置"),vn({url:"/scmp-web/pri/field_config/add_field",method:"post",data:t})),Yet=(t={})=>(t=Ba(t,"根据菜单id查询字段信息"),vn({url:"/scmp-web/pri/field_config/get_field_by_menu",method:"get",params:t})),Xet=(t={})=>(t=Ba(t,"查询新表格字段配置列表"),vn({url:"/scmp-web/pri/field_config/get_field_list_page",method:"get",params:t})),Zet=(t={})=>(t=Ba(t,"删除新表格字段配置"),vn({url:"/scmp-web/pri/field_config/del_field_by_id",method:"post",data:t})),Jet=(t={})=>(t=Ba(t,"保存新表格字段设置"),vn({url:"/scmp-web/pri/field_config/save_field_4_table",method:"post",data:t})),Qet=(t={})=>(t=Ba(t,"保存新表单字段设置"),vn({url:"/scmp-web/pri/field_config/save_field_4_form",method:"post",data:t})),ett=(t={})=>(t=Ba(t,"根据菜单id查询字段信息"),vn({url:"/scmp-web/pri/field_config/get_table_by_menu",method:"get",params:t})),ttt=(t={})=>(t=Ba(t,"根据菜单id查询字段信息"),vn({url:"/scmp-web/pri/field_config/get_form_by_menu",method:"get",params:t})),ntt=(t={})=>(t=Ba(t,"查询字段池匹配字段"),vn({url:"/scmp-web/pri/field_config/get_field_pool_list",method:"get",params:t})),rtt=(t={})=>(t=Ba(t,"根据表名和系统名称查询字段配置"),vn({url:"/scmp-web/pri/field_config/get_field_by_table",method:"get",params:t})),ott=(t={})=>(t=Ba(t,"保存表格字段池在配置页面使用"),vn({url:"/scmp-web/pri/field_config/save_field_pool_4_config",method:"post",data:t})),att=(t={})=>(t=Ba(t,"根据字段代码集合获取字段池信息"),vn({url:"/scmp-web/pri/field_config/get_pool_by_field_map",method:"post",data:t})),ltt=(t={})=>(t=Ba(t,"批量保存表格字段池在配置页面使用"),vn({url:"/scmp-web/pri/field_config/save_field_pool_batch_4_config",method:"post",data:t})),itt=(t={})=>(t=Ba(t,"删除字段池"),vn({url:"/scmp-web/pri/field_config/del_field_pool_by_id",method:"post",data:t})),stt=(t={})=>(t=Ba(t,"保存表格字段池"),vn({url:"/scmp-web/pri/field_config/save_field_pool",method:"post",data:t}));function op(){return{postAddField:Get,getFieldByMenu:Yet,getFieldListPage:Xet,postDelFieldById:Zet,postSaveField4Table:Jet,postSaveField4Form:Qet,getTableByMenu:ett,getFormByMenu:ttt,getFieldPoolList:ntt,getFieldByTable:rtt,postSaveFieldPool4Config:ott,getPoolByFieldMap:att,postSaveFieldPoolBatch4Config:ltt,postDelFieldPoolById:itt,postSaveFieldPool:stt}}const ap=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),utt=(t={})=>(t=ap(t,"获取按钮配置信息列表"),vn({url:"/scmp-web/pri/btn_config/get_btn_config_page_list",method:"get",params:t})),ctt=(t={})=>(t=ap(t,"保存按钮配置信息"),vn({url:"/scmp-web/pri/btn_config/save_btn_config",method:"post",data:t})),dtt=(t={})=>(t=ap(t,"保存按钮配置在配置页面使用"),vn({url:"/scmp-web/pri/btn_config/save_btn_config_4_config",method:"post",data:t})),ftt=(t={})=>(t=ap(t,"批量按钮配置在配置页面使用"),vn({url:"/scmp-web/pri/btn_config/save_btn_config_batch_4_config",method:"post",data:t})),ptt=(t={})=>(t=ap(t,"删除"),vn({url:"/scmp-web/pri/btn_config/delete_btn_config",method:"post",data:t})),vtt=(t={})=>(t=ap(t,"根据字段代码集合获取字段池信息"),vn({url:"/scmp-web/pri/btn_config/get_btn_config_by_key_map",method:"post",data:t}));function x1(){return{getBtnConfigPageList:utt,postSaveBtnConfig:ctt,postSaveBtnConfig4Config:dtt,postSaveBtnConfigBatch4Config:ftt,postDeleteBtnConfig:ptt,getBtnConfigByKeyMap:vtt}}const E1=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),mtt=(t={data:{},proxy:""})=>t.proxy?(t.data=E1(t.data,"上传"),vn({url:t.proxy+"/pri/file/singlefile",method:"post",data:t.data,headers:{"Content-Type":"multipart/form-data"}})):(An.warning("请传入代理地址"),Promise.reject("请传入代理地址")),htt=(t={data:{},proxy:""})=>t.proxy?(t.data=E1(t.data,"删除"),vn({url:t.proxy+"/pri/file/deleteFile",method:"post",data:t.data})):(An.warning("请传入代理地址"),Promise.reject("请传入代理地址")),gtt=(t={data:{},proxy:""})=>t.proxy?(t.data=E1(t.data,"无附件删除"),vn({url:t.proxy+"/pri/file/del_file_no_attch",method:"post",data:t.data})):(An.warning("请传入代理地址"),Promise.reject("请传入代理地址")),btt=(t={data:{},proxy:""})=>t.proxy?(t.data=E1(t.data,"保存-用户头像保存使用"),vn({url:t.proxy+"/pri/file/update_file",method:"post",data:t.data})):(An.warning("请传入代理地址"),Promise.reject("请传入代理地址"));function MP(){return{postSinglefile:mtt,postDeleteFile:htt,postDelFileNoAttch:gtt,postUpdateFile:btt}}const ytt=OP(),_tt=op();function Ctt(t,n){const r=e.ref(!0);e.watch(()=>n.value,()=>{t.value="",r.value=!0});const o=()=>{let i=Ue.cloneDeep(zet);n.value=Ue.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 An.warning("接口参数为空");_tt.getPoolByFieldMap({fieldCodes:d,field_type:"2",project_code:u&&u.project_code}).then(f=>{i.forEach(p=>{var v,g,y,C;let m=(g=(v=n.value)==null?void 0:v.form)==null?void 0:g.formConfig.map(x=>x.data.baseData.prop);if(!Ue.includes(m,p[s])&&!$P[p[s]]){let x=Ue.cloneDeep(VP.value);if(x.id=p[s]+new Date().getTime().toString(),x.data.baseData.label=p[c]||"参数名称",x.data.baseData.prop=p[s],x.data.baseData.el="hs-input",x.data.elData=Ue.cloneDeep(w1),console.log("res.data[param[key]]",f.data[p[s]]),f.code==1&&f.data&&f.data[p[s]]){let b=JSON.parse(f.data[p[s]].json_data);x.data=Ue.assign(x.data,b,{field_id:f.data[p[s]].id})}(C=(y=n.value)==null?void 0:y.form)==null||C.formConfig.push(x)}})})};return{parseForm:async()=>{var i,u;if(t.value){let s=Oo.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 ytt.getApiDocs({proxy:s.project_url}),d=(Ue.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 An.warning("请检查url是否正确")}else o()},parseUrl:r}}const wtt={class:"flex flex-row"},xtt=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}=Ctt(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",wtt,[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 Ett(t,n,r){const o=i=>{var s;let u=i.id==((s=n.current)==null?void 0:s.id)?Ue.cloneDeep(c2.value):i;t("chose",u)};return{choseTagItem:o,appendField:()=>{var s,c,d,f,p;let i=Ue.cloneDeep(VP.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])||Ue.cloneDeep(c2.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],Ue.remove(((d=(c=r.value)==null?void 0:c.form)==null?void 0:d.formConfig)||[],i),o(i),An.success("删除成功")}).catch(u=>{console.log("err",u)})}}}const ktt=["onClick"],Stt=["onClick"],Btt={class:"p-2"},Ntt=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}=Ett(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(Fu),{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,Stt)):e.createCommentVNode("",!0)],8,ktt))),128)),e.createElementVNode("div",Btt,[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"])]))}}),Ttt=Or(Ntt,[["__scopeId","data-v-2a9416b3"]]);function Dtt(t){return{toggleExpand:()=>{t.value=!t.value}}}const Vtt={key:0},fo=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}=Dtt(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",Vtt,[e.renderSlot(o.$slots,"default")])):e.createCommentVNode("",!0)],2)}}}),$tt=op();function Ott(t,n){let r=e.ref(t.current),o=e.ref(Ue.cloneDeep(t.current)),a=e.ref(t.data),l=e.ref(Ue.cloneDeep(Wet)),i=e.ref("hs-config-input"),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"});const s=e.ref({labelWidth:120,span:24,minWidth:350,style:"padding:5px 10px"}),c=e.ref(!1);return e.watch(()=>t.current,m=>{if(m&&m.id!=o.value.id&&(l.value.elConfig.visible=!1,r.value=m,o.value=Ue.cloneDeep(m),a.value=t.data),m&&m.id){l.value.elConfig.visible=!1;let v=o.value.data.baseData.el;i.value=qv[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}),e.onMounted(()=>{let m=Oo.get("CURRENT_SYSTEM"),v=u.value.params;v.project_code=m.project_code||"",u.value=Ue.assign(u.value,{params:v})}),{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=qv[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)||"",x=o.value.data.baseData.prop,b=((g=(v=o.value.data.elData)==null?void 0:v.attrs)==null?void 0:g.defaultValue)||"";if(Ue.has(a.value,x)&&x!=C)return An.warning("查询参数重复,请修改");if(Ue.has(a.value,C)&&C!=x&&a.value&&delete a.value[C],a.value=Object.assign(a.value||{},{[x]:b}),r.value=Object.assign(r.value||{},Ue.cloneDeep(o.value)),o.value.data.field_id)return;let w=Oo.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:w.project_code};$tt.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=Ue.assign(o.value.data,JSON.parse(m.json_data),{field_id:m.id});let v=o.value.data.baseData.el;i.value=qv[v]}}}const Att={class:"bg-blue-200 h-full flex flex-col"},Mtt={style:{height:"calc(100% -50px)"},class:"overflow-y-auto flex-1"},Rtt={key:0},Itt={class:"text-center grow-0"},Ptt=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}=Ott(n,r);return(p,m)=>{var y,C,x,b,w;const v=e.resolveComponent("bc-auto-complete"),g=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Att,[e.createElementVNode("div",Mtt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{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",Rtt,e.toDisplayString(e.unref(l)),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{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((x=e.unref(l))==null?void 0:x.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(fo),{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:(w=e.unref(l))==null?void 0:w.data.elData,ref:"elRef",isVModel:""},null,8,["data"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Itt,[e.createVNode(g,{onClick:e.unref(d),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),Ftt={class:"mx-auto flex flex-row h-full"},ztt={class:"flex-1 grow overflow-y-auto"},Ltt={key:0},Htt={key:2},Wtt={key:0,class:"flex-none basis-1/4 ml-4"},jtt=e.defineComponent({name:"formPanel"}),qtt=e.defineComponent({...jtt,props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue");let r=e.ref(Ue.cloneDeep(Let)),o=Ue.cloneDeep(c2);e.watch(()=>{var l;return(l=n.value)==null?void 0:l.config_unique_id},l=>{o.value=Ue.cloneDeep(c2)},{immediate:!0,deep:!0});const a=l=>{o.value=l};return(l,i)=>{var u,s,c,d,f;return e.openBlock(),e.createElementBlock("div",Ftt,[e.createElementVNode("div",ztt,[e.createVNode(fo,{modelValue:e.unref(tl).code.visible,"onUpdate:modelValue":i[0]||(i[0]=p=>e.unref(tl).code.visible=p),expandConfig:e.unref(tl).code},null,8,["modelValue","expandConfig"]),e.unref(tl).code.visible?(e.openBlock(),e.createElementBlock("div",Ltt,e.toDisplayString(n.value),1)):e.createCommentVNode("",!0),e.createVNode(xtt,{modelValue:n.value,"onUpdate:modelValue":i[1]||(i[1]=p=>n.value=p)},null,8,["modelValue"]),(u=n.value)!=null&&u.form?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:e.unref(tl).form.visible,"onUpdate:modelValue":i[2]||(i[2]=p=>e.unref(tl).form.visible=p),expandConfig:e.unref(tl).form},null,8,["modelValue","expandConfig"])),e.unref(tl).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(fo),{modelValue:e.unref(tl).formItem.visible,"onUpdate:modelValue":i[3]||(i[3]=p=>e.unref(tl).formItem.visible=p),expandConfig:e.unref(tl).formItem},null,8,["modelValue","expandConfig"])),e.unref(tl).formItem.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ttt),{key:1,modelValue:n.value,"onUpdate:modelValue":i[4]||(i[4]=p=>n.value=p),current:e.unref(o),onChose:a},null,40,["modelValue","current"])):e.createCommentVNode("",!0),e.unref(tl).formItem.visible?(e.openBlock(),e.createElementBlock("div",Htt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),(((c=(s=n.value)==null?void 0:s.form)==null?void 0:c.formConfig)||[]).length>0&&e.unref(o).id?(e.openBlock(),e.createElementBlock("div",Wtt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ptt),{current:e.unref(o),data:(f=(d=n.value)==null?void 0:d.form)==null?void 0:f.formData},null,8,["current","data"]))])):e.createCommentVNode("",!0)])}}}),Utt={class:"icon-selector w100 h100"},Ktt={class:"icon-selector-warp"},Gtt={class:"icon-selector-warp-title"},Ytt=e.defineComponent({name:"iconSelector"}),RP=e.defineComponent({...Ytt,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-Ca24FoQe.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 w=i.fontIconSearch.trim().toLowerCase();return b.filter(E=>{if(E.toLowerCase().indexOf(w)!==-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 fg.ali().then(w=>{i.fontIconList.ali=w.map(E=>`iconfont ${E}`)})}else if(b==="ele"){if(i.fontIconList.ele.length>0)return;await fg.ele().then(w=>{i.fontIconList.ele=w})}else if(b==="awe"){if(i.fontIconList.awe.length>0)return;await fg.awe().then(w=>{i.fontIconList.awe=w.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})},x=()=>{window.addEventListener("resize",()=>{C()})};return e.onMounted(()=>{m(p()),x(),C()}),e.watch(()=>r.modelValue,()=>{f(),p()}),(b,w)=>{const E=e.resolveComponent("SvgIcon"),S=e.resolveComponent("el-input"),B=e.resolveComponent("el-tab-pane"),k=e.resolveComponent("el-tabs"),V=e.resolveComponent("el-popover");return e.openBlock(),e.createElementBlock("div",Utt,[e.createVNode(S,{modelValue:i.fontIconSearch,"onUpdate:modelValue":w[0]||(w[0]=N=>i.fontIconSearch=N),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 N,T;return[(i.fontIconPrefix===""?((N=t.prepend)==null?void 0:N.indexOf("ele-"))>-1:((T=i.fontIconPrefix)==null?void 0:T.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(V,{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",Ktt,[e.createElementVNode("div",Gtt,e.toDisplayString(t.title),1),e.createVNode(k,{modelValue:i.fontIconTabActive,"onUpdate:modelValue":w[1]||(w[1]=N=>i.fontIconTabActive=N),onTabClick:v},{default:e.withCtx(()=>[e.createVNode(B,{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(B,{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(B,{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 Xtt(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=Oo.get("CURRENT_SYSTEM"),u=o.value.params;u.project_code=i.project_code||"",o.value=Ue.assign(o.value,{params:u})}),{parentConfig:r,requestData:o,onChangeItem:i=>{t.value=Ue.assign(t.value,JSON.parse(i.json_data),{field_id:i.id})},getSubmitData:async()=>await n.value.getSubmitData()}}const IP=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}=Xtt(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(RP,{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 Ztt=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},dynamicColumn:{isDynamicRequestConfig:!1,requestDynamicUrl:"",requestDynamicParams:"",dynamicMethod:"get",dynamicProxy:""},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:{}}),Jtt=[{prop:"id",label:"表格唯一标识",type:"",tooltip:"唯一标识(被某些特定的功能所依赖)",disabled:!0,el:"hs-input"},{prop:"tableName",label:"表格配置名称",type:"",el:"hs-input"},{prop:"height",label:"表格的高度",type:"",disabled:!0,tooltip:"表格的高度;支持铺满父容器或者固定高度,如果设置 auto 为铺满父容器(如果设置为 auto,则必须确保存在父节点且不允许存在相邻元素)",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:"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 Qtt=[{key:"dynamicColumn",visible:!1,title:"动态配置列",dynamicColumn:[{prop:"isDynamicRequestConfig",label:"是否请求动态配置",el:"hs-switch"},{prop:"requestDynamicUrl",label:"请求动态配置地址",el:"hs-input"},{prop:"requestDynamicParams",label:"请求动态配置参数",el:"hs-input"},{prop:"dynamicMethod",label:"请求动态配置方式",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"dynamicProxy",label:"请求动态配置代理",el:"hs-input"}]},{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"}]}],ent=[{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"}],tnt=e.ref({type:null,field:"",title:"展示列名称",isSlot:!1,isApply:!0,isShow:!0,returnValueType:"",minWidth:"100",resizable:!1,visible:!0,slotTemplateConfig:{},sortType:"auto",filterMultiple:!0,cellType:"auto",treeNode:!1,filters:[],filterRender:{},titlePrefix:{},cellRender:{},editRender:{},contentRender:{}}),d2={seq:"序号",checkbox:"复选框",radio:"单选框",expand:"展开行",html:"HTML 标签"},nnt=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"}]},{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:DP.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"}]),PP={title:[{required:!0,message:"请输入列标题"}],field:[{required:!0,message:"请输入列字段名"}],returnValueType:[{required:!0,message:"请输入返回值类型"}]},rnt=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"}]}]),ont=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 Uv=e.ref({id:"",sort:0,data:tnt.value,btnData:[]});const ant={list:nnt.value,second_config:rnt.value,filterConfig:ont.value,rules:{list:PP}};let f2=e.ref({id:"",data:{}}),lnt=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},dynamicTableItem:{visible:!0,subTitle:"动态配置列元素配置项集合",class:"font-bold my-3",iconSize:20}}),int={baseTableConfig:Jtt,baseVisible:!1,pageVisible:!1,tableAttrConfig:Qtt,tablePageConfig:ent},Dh={id:{isShow:!1,title:"id",returnValueType:"string"}};const snt={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"},unt={name:[{required:!0,message:"请输入按钮名称"}],key:[{required:!0,message:"请输入按钮key值"}]},FP={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:unt},zP={id:"",data:snt,sort:0},jC={id:"",data:{}},cnt=op(),dnt=x1();function fnt(t,n){let r=e.ref(t.current),o=e.ref(Ue.cloneDeep(ant)),a=e.ref(Ue.cloneDeep(t.current)),l=e.ref(Ue.cloneDeep(t.configList).map(b=>b.data.field));const i=e.ref({labelWidth:120,span:24,style:"padding:5px 10px"}),u=e.ref(!1);let s=e.ref(Ue.cloneDeep(FP));const c=e.reactive({title:"插槽模板配置",visible:!1,templateName:"hs-config-input"}),d=()=>{let b=Ue.cloneDeep(PP);return Ue.keys(b).forEach(w=>{let E=b[w].map(S=>(S.required=!a.value.data.type,S));b[w]=E}),b};e.watch(()=>t.current,b=>{b&&b.id!=a.value.id&&(r.value=b,a.value=Ue.cloneDeep(b),l.value=Ue.cloneDeep(t.configList).map(w=>w.data.field),c.visible=!1,o.value.rules.list=d())},{deep:!0}),e.watch(()=>a.value.data,b=>{b&&(o.value.list=o.value.list.map(w=>(w.prop=="el"&&(w.show=!!a.value.data.isSlot,w.show||(a.value.data.el="")),w)),console.log("value",b),b.isSlot&&b.el&&(c.templateName=qv[b.el],b.slotTemplateConfig||(a.value.data.slotTemplateConfig={})),o.value.rules.list=d())},{deep:!0,immediate:!0});const f=async function(){var b;try{if(!await n.value.getSubmitData())return;let E=(b=r.value)==null?void 0:b.data.field,S=a.value.data.field,B=Ue.cloneDeep(l.value),k=B.findIndex(N=>N==E);if(B.splice(k,1),S&&Ue.includes(B,S))return An.warning("列字段名重复,请修改");r.value=Object.assign(r.value||{},Ue.cloneDeep(a.value));let V=Oo.get("CURRENT_SYSTEM");if(!a.value.data.field_id){let N={field_code:a.value.data.field,field_name:a.value.data.title,field_type:"3",json_data:JSON.stringify(a.value.data),project_code:V.project_code};cnt.postSaveFieldPool4Config(N)}if(a.value.btnData.length>0){let N=[];if(a.value.btnData.forEach(T=>{T.data.field_id||N.push({btn_name:T.data.key,btn_label:T.data.name,btn_icon:T.data.btnIcon,json_data:JSON.stringify(T.data),project_code:V.project_code})}),N.length==0)return;dnt.postSaveBtnConfigBatch4Config({btnList:N})}}catch(w){console.log("er",w)}},p=()=>{var b,w;(w=(b=a.value)==null?void 0:b.data.filters)==null||w.push({label:"",value:"",checked:!1,resetValue:"",data:""})},m=b=>{let w=a.value.data.filters[b];da.confirm(`确认要删除该${w.label}配置吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{a.value.data.filters.splice(b,1),a.value.filterConfig.splice(b,1),An.success("删除成功")}).catch(E=>{console.log("err",E)})},v=(b,w)=>{switch(w){case"el":b&&(c.visible=!1,c.templateName=qv[b],c.visible=!0);break}},g=()=>{let b=Ue.cloneDeep(zP);b.id=new Date().getTime().toString(),a.value.btnData.push(b)},y=b=>{let w=a.value.btnData[b];da.confirm(`确认要删除该${w.name?"【"+w.name+"】":""}按钮配置吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{a.value.btnData.splice(b,1),An.success("删除成功")}).catch(E=>{console.log("err",E)})};let C=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 b=Oo.get("CURRENT_SYSTEM"),w=C.value.params;w.project_code=b.project_code||"",C.value=Ue.assign(C.value,{params:w})}),{parentConfig:i,visible:u,tableItemConfig:a,tableDataConfig:o,requestData:C,btnConfig:s,formItem:c,onChangeItem:b=>{a.value.data=Ue.assign(a.value.data,JSON.parse(b.json_data),{field_id:b.id})},onChang:v,saveData:f,addFilterItem:p,deleteFilterConfig:m,addBtnItem:g,deleteBtnItem:y}}const pnt={class:"h-full"},vnt={style:{height:"calc(100% - 40px)"},class:"overflow-y-auto"},mnt={key:0},hnt=e.createElementVNode("div",{class:"bg-red-200 py-1 px-3 rounded"},"新增数据筛选配置",-1),gnt=[hnt],bnt=e.createElementVNode("div",{class:"bg-red-200 py-1 px-3 rounded"},"新增按钮配置",-1),ynt=[bnt],_nt={class:"text-center",style:{height:"40px"}},Cnt=e.defineComponent({__name:"hsAttrTable",props:{current:{type:Object,default:()=>{}},configList:{type:Array,default:()=>[]}},setup(t){const n=t;let r=e.ref();const{parentConfig:o,visible:a,tableItemConfig:l,tableDataConfig:i,requestData:u,btnConfig:s,formItem:c,onChangeItem:d,onChang:f,addFilterItem:p,saveData:m,deleteFilterConfig:v,addBtnItem:g,deleteBtnItem:y}=fnt(n,r);return(C,x)=>{var S,B,k,V;const b=e.resolveComponent("bc-auto-complete"),w=e.resolveComponent("svgIcon"),E=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",pnt,[e.createElementVNode("div",vnt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:e.unref(a),"onUpdate:modelValue":x[0]||(x[0]=N=>e.isRef(a)?a.value=N:null),expandConfig:{subTitle:"表格属性"}},null,8,["modelValue"])),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{parentConfig:e.unref(o),data:(S=e.unref(l))==null?void 0:S.data,config:e.unref(i).list,ref_key:"baseTableRef",ref:r,rules:e.unref(i).rules.list||{},onChange:e.unref(f)},{field:e.withCtx(()=>[e.createVNode(b,{url:e.unref(u).url,qry_key:e.unref(u).qry_key,params:e.unref(u).params,type:"table",modelValue:e.unref(l).data.field,"onUpdate:modelValue":x[1]||(x[1]=N=>e.unref(l).data.field=N),onChange:e.unref(d)},null,8,["url","qry_key","params","modelValue","onChange"])]),_:1},40,["parentConfig","data","config","rules","onChange"])),[[e.vShow,e.unref(a)]]),(B=e.unref(l))!=null&&B.data.el?(e.openBlock(),e.createElementBlock("div",mnt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:e.unref(c).visible,"onUpdate:modelValue":x[2]||(x[2]=N=>e.unref(c).visible=N),expandConfig:{subTitle:e.unref(c).title}},null,8,["modelValue","expandConfig"])),e.unref(c).visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(c).templateName),{key:0,data:e.unref(l).data.slotTemplateConfig,ref:"elRef",isVModel:""},null,8,["data"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((k=e.unref(i))==null?void 0:k.second_config,(N,T)=>{var O;return e.openBlock(),e.createElementBlock("div",{key:T},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:N.visible,"onUpdate:modelValue":I=>N.visible=I,expandConfig:{subTitle:N.title}},null,8,["modelValue","onUpdate:modelValue","expandConfig"])),N.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,parentConfig:e.unref(o),config:N[N.key],data:(O=e.unref(l))==null?void 0:O.data[N.key]},null,8,["parentConfig","config","data"])):e.createCommentVNode("",!0)])}),128)),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((V=e.unref(l))==null?void 0:V.data.filters,(N,T)=>(e.openBlock(),e.createElementBlock("div",{key:T},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:N.visible,"onUpdate:modelValue":O=>N.visible=O,expandConfig:{subTitle:"筛选配置项"+(N.label?"【"+N.label+"】":""),rightSlot:!0}},{default:e.withCtx(()=>[e.createVNode(w,{onClick:O=>e.unref(v)(T),color:"#F56C6C",class:"pt-1",name:"ele-RemoveFilled",size:"18"},null,8,["onClick"])]),_:2},1032,["modelValue","onUpdate:modelValue","expandConfig"])),N.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,parentConfig:e.unref(o),config:e.unref(i).filterConfig.filters,data:N},null,8,["parentConfig","config","data"])):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("div",{class:"flex align-center justify-center p-2",onClick:x[3]||(x[3]=(...N)=>e.unref(p)&&e.unref(p)(...N))},gnt)]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).btnData,(N,T)=>(e.openBlock(),e.createElementBlock("div",{key:T},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:N.visible,"onUpdate:modelValue":O=>N.visible=O,expandConfig:{subTitle:"按钮配置"+(N.data.name?"【"+N.data.name+"】":""),rightSlot:!0}},{default:e.withCtx(()=>[e.createVNode(w,{onClick:O=>e.unref(y)(T),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(IP),{ref_for:!0,ref:"btnItemRef",modelValue:N.data,"onUpdate:modelValue":O=>N.data=O,config:e.unref(s)},null,8,["modelValue","onUpdate:modelValue","config"])),[[e.vShow,N.visible]])]))),128)),e.createElementVNode("div",{class:"flex align-center justify-center p-2",onClick:x[4]||(x[4]=(...N)=>e.unref(g)&&e.unref(g)(...N))},ynt)])]),e.createElementVNode("div",_nt,[e.createVNode(E,{onClick:e.unref(m),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),zN=op();function wnt(t,n){let r=e.ref(!0);e.watch(()=>n.value,()=>{t.value="",r.value=!0});const o=()=>{let i=Oo.get("CURRENT_SYSTEM"),u=Ue.cloneDeep(Uv.value);u.id=new Date().getTime().toString(),u.data=Ue.assign(u.data,{type:"seq",title:"",minWidth:50,width:50}),Ue.assign(n.value,{baseData:Ue.assign(Ue.cloneDeep(Ztt.value),{id:new Date().getTime().toString(),tableName:"表格配置名称",proxy:i.project_url,dynamicColumn:{isDynamicRequestConfig:!1,dynamicMethod:"get",dynamicProxy:i.project_url}}),tableConfig:[u],dynamicTableConfig:[]})},a=(i,u,s,c)=>{let d=i.map(f=>f[s]);zN.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(!Ue.includes(m,p[s])){let y=Ue.cloneDeep(Uv.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=Ue.assign(y.data,C,{field_id:f.data[p[s]].id})}if(Ue.keys(Dh).find(C=>C==y.data.field)){let C=Dh[y.data.field];y.data=Ue.assign(y.data,C)}(g=n.value)==null||g.tableConfig.push(y)}})})};return{parseTable:()=>{var i,u;if(t.value){let s=Oo.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}zN.getFieldByTable({table_name:t.value,project_code:s&&s.project_code,field_type:"3"}).then(c=>{var d;if(c.code!=1)return An.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=Ue.map((m=n.value)==null?void 0:m.tableConfig,g=>g.data.field);if(!Ue.includes(p,f.column_name)){let g=Ue.cloneDeep(Uv.value);if(g.id=f.column_name+new Date().getTime().toString(),f.json_data){let y=JSON.parse(f.json_data);g.data=Ue.assign(g.data,y,{field_id:f.field_id})}else g.data.field=f.column_name,g.data.title=f.column_comment||"展示列名称";Ue.keys(Dh).find(y=>y==f.column_name)&&(g.data=Ue.assign(g.data,Dh[f.column_name])),(v=n.value)==null||v.tableConfig.push(g)}});return}})}(u=n.value)!=null&&u.baseData.id||o()},parseName:r}}const xnt={class:"flex flex-row"},Ent=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}=wnt(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",xnt,[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)}}}),knt=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(fo),{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(fo),{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(Ue).get(e.unref(Ue).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(Ue).get(n.value,a.key,{}),config:a[a.key]},null,8,["data","config"])):e.createCommentVNode("",!0)]))),128))}}),Snt=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(fo),{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(fo),{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(knt),{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 Bnt(t,n,r){const o=i=>{var s;let u=i.id==((s=n.current)==null?void 0:s.id)?Ue.cloneDeep(f2.value):i;t("chose",u,"tableConfig")};return{choseTagItem:o,appendField:()=>{let i=Ue.cloneDeep(Uv.value);if(i.id=new Date().getTime().toString(),(r.value.tableConfig.findIndex(c=>c.id==i.id)||-1)>-1)return An.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(()=>{Ue.remove(r.value.tableConfig,i),o(i),An.success("删除成功")}).catch(u=>{console.log("err",u)})}}}const Nnt=["onClick"],Tnt=["onClick"],Dnt={class:"p-2"},Vnt=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}=Bnt(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(Fu),{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(d2)[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,Tnt)):e.createCommentVNode("",!0)],8,Nnt))),128)),e.createElementVNode("div",Dnt,[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"])]))}}),$nt=Or(Vnt,[["__scopeId","data-v-d871a518"]]);function Ont(t,n,r){const o=u=>{var c;let s=u.id==((c=n.current)==null?void 0:c.id)?Ue.cloneDeep(f2.value):u;t("chose",s,"dynamicTableConfig")};return{choseTagItem:o,appendField:()=>{let u=Ue.cloneDeep(Uv.value);if(u.id=new Date().getTime().toString(),(r.value.dynamicTableConfig.findIndex(d=>d.id==u.id)||-1)>-1)return An.warning("字段名称重复");r.value.dynamicTableConfig.push(u);let c=r.value.dynamicTableConfig[r.value.dynamicTableConfig.length-1];o(c)},deleteTagItem:u=>{da.confirm(`确定删除“${u.data&&u.data.title}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ue.remove(r.value.dynamicTableConfig,u),o(u),An.success("删除成功")}).catch(s=>{console.log("err",s)})},parseColumn:()=>{var s;let u=(s=r.value)==null?void 0:s.baseData.dynamicColumn;if(u!=null&&u.requestDynamicUrl)if(u!=null&&u.dynamicMethod){if(!(u!=null&&u.dynamicProxy))return An.warning("请填写动态配置列中的请求代理")}else return An.warning("请选择动态配置列中的请求方式");else return An.warning("请填写接口地址")}}}const Ant={class:"flex w-full"},Mnt=["onClick"],Rnt=["onClick"],Int={class:"p-2"},Pnt=e.defineComponent({__name:"hsTableDynamicConfigList",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,parseColumn:c}=Ont(o,l,a);return(d,f)=>{const p=e.resolveComponent("hs-input"),m=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Ant,[e.createVNode(p,{class:"mr-2",style:{width:"25%"},modelValue:a.value.baseData.dynamicColumn.requestDynamicUrl,"onUpdate:modelValue":f[0]||(f[0]=v=>a.value.baseData.dynamicColumn.requestDynamicUrl=v)},null,8,["modelValue"]),e.createVNode(m,{type:"primary",onClick:e.unref(c)},{default:e.withCtx(()=>[e.createTextVNode("解析配置列")]),_:1},8,["onClick"])]),e.createVNode(e.unref(Fu),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value.dynamicTableConfig,"onUpdate:modelValue":f[2]||(f[2]=v=>a.value.dynamicTableConfig=v),animation:150},{default:e.withCtx(()=>{var v;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((v=a.value)==null?void 0:v.dynamicTableConfig,g=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:g.id,onClick:y=>e.unref(s)(g)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==g.id?"bg-blue-200":""])},e.toDisplayString(g.data&&g.data.title||g.data.type&&e.unref(d2)[g.data.type]||""),3),t.current.id==g.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(y=>e.unref(u)(g),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,Rnt)):e.createCommentVNode("",!0)],8,Mnt))),128)),e.createElementVNode("div",Int,[e.createElementVNode("div",{onClick:f[1]||(f[1]=(...g)=>e.unref(i)&&e.unref(i)(...g)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]}),_:1},8,["modelValue"])])}}}),Fnt=Or(Pnt,[["__scopeId","data-v-d487599c"]]),znt={class:"mx-auto flex flex-row h-full"},Lnt={class:"flex-1 grow overflow-y-auto"},Hnt={key:0},Wnt={key:0,class:"basis-1/4 flex-none ml-4 bg-blue-100",style:{"min-width":"300px"}},jnt=e.defineComponent({__name:"hsTablePanel",props:{tableModel:{},tableModelModifiers:{},configModel:{},configModelModifiers:{}},emits:["update:tableModel","update:configModel"],setup(t){let n=e.ref(Ue.cloneDeep(lnt.value));const r=e.useModel(t,"tableModel"),o=e.useModel(t,"configModel"),a=e.ref(Ue.cloneDeep(int));let l=Ue.cloneDeep(f2);e.watch(()=>{var s;return(s=o.value)==null?void 0:s.config_unique_id},()=>{l.value=Ue.cloneDeep(f2)},{immediate:!0,deep:!0});const i=e.ref("tableConfig"),u=(s,c)=>{l.value=s,i.value=c};return(s,c)=>{var d,f;return e.openBlock(),e.createElementBlock("div",znt,[e.createElementVNode("div",Lnt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:e.unref(n).code.visible,"onUpdate:modelValue":c[0]||(c[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",Hnt,e.toDisplayString(r.value),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ent),{modelValue:r.value,"onUpdate:modelValue":c[1]||(c[1]=p=>r.value=p)},null,8,["modelValue"])),(d=r.value)!=null&&d.baseData.id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:e.unref(n).table.visible,"onUpdate:modelValue":c[2]||(c[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(Snt),{key:0,modelValue:r.value,"onUpdate:modelValue":c[3]||(c[3]=p=>r.value=p),config:a.value},null,8,["modelValue","config"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:e.unref(n).tableItem.visible,"onUpdate:modelValue":c[4]||(c[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($nt),{key:1,modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=p=>r.value=p),current:e.unref(l),onChose:u},null,40,["modelValue","current"])):e.createCommentVNode("",!0),r.value.baseData.dynamicColumn&&r.value.baseData.dynamicColumn.isDynamicRequestConfig?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{key:2,modelValue:e.unref(n).dynamicTableItem.visible,"onUpdate:modelValue":c[6]||(c[6]=p=>e.unref(n).dynamicTableItem.visible=p),expandConfig:e.unref(n).dynamicTableItem},null,8,["modelValue","expandConfig"])):e.createCommentVNode("",!0),e.unref(n).dynamicTableItem.visible&&r.value.baseData.dynamicColumn&&r.value.baseData.dynamicColumn.isDynamicRequestConfig?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Fnt),{key:3,modelValue:r.value,"onUpdate:modelValue":c[7]||(c[7]=p=>r.value=p),current:e.unref(l),onChose:u},null,40,["modelValue","current"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),(((f=r.value)==null?void 0:f.tableConfig)||[]).length>0&&e.unref(l).id?(e.openBlock(),e.createElementBlock("div",Wnt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Cnt),{current:e.unref(l),configList:r.value[i.value]},null,8,["current","configList"]))])):e.createCommentVNode("",!0)])}}});function qnt(t,n,r){const o=i=>{var s;let u=i.id==((s=n.current)==null?void 0:s.id)?Ue.cloneDeep(jC):i;t("chose",u)};return{choseTagItem:o,appendField:()=>{let i=Ue.cloneDeep(zP);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(()=>{Ue.remove(r.value||[],i),o(i),An.success("删除成功")}).catch(u=>{console.log("err",u)})}}}const Unt=["onClick"],Knt=["onClick"],Gnt={class:"p-2"},Ynt=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}=qnt(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(Fu),{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,Knt)):e.createCommentVNode("",!0)],8,Unt))),128)),e.createElementVNode("div",Gnt,[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"])]))}}),Xnt=Or(Ynt,[["__scopeId","data-v-1bcdcd36"]]),Znt=x1();function Jnt(t,n){let r=e.ref(t.current),o=e.ref(Ue.cloneDeep(t.current));e.watch(()=>t.current,u=>{u&&u.id!=o.value.id&&(r.value=u,o.value=Ue.cloneDeep(u))},{deep:!0});const a=e.ref(Ue.cloneDeep(FP));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=Ue.map(t.btnList,v=>v.data.key);if(Ue.includes(f,d)&&d!=c)return An.warning("按钮key值重复");if(r.value=Object.assign(r.value||{},Ue.cloneDeep(o.value)),o.value.data.field_id)return;let p=Oo.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};Znt.postSaveBtnConfig4Config(m)}catch(s){console.log("er",s)}}}}const Qnt={class:"bg-blue-200 h-full flex flex-col"},ert={style:{height:"calc(100% -50px)"},class:"overflow-y-auto flex-1"},trt={key:0},nrt={class:"text-center grow-0",style:{height:"50rpx"}},rrt=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}=Jnt(n,r);return(u,s)=>{const c=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Qnt,[e.createElementVNode("div",ert,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{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",trt,e.toDisplayString(e.unref(a)),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{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(IP),{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",nrt,[e.createVNode(c,{onClick:e.unref(i),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),ort={class:"mx-auto flex flex-row h-full"},art={class:"flex-1 grow overflow-y-auto"},lrt={key:0,class:"flex-none basis-1/4 ml-4"},irt=e.defineComponent({name:"formPanel"}),srt=e.defineComponent({...irt,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(Ue.cloneDeep(jC));e.watch(()=>n.id,()=>{a.value=Ue.cloneDeep(jC)});const l=i=>{a.value=i};return(i,u)=>(e.openBlock(),e.createElementBlock("div",ort,[e.createElementVNode("div",art,[e.createVNode(fo,{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(Xnt),{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",lrt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(rrt),{btnList:r.value,current:e.unref(a)},null,8,["btnList","current"]))])):e.createCommentVNode("",!0)]))}});let urt={config_name:"",config_unique_id:"",is_auth:"1"};const LP={config_name:[{required:!0,message:"请输入配置名称"}],is_auth:[{required:!0,message:"是否受权限控制"}],config_unique_id:[{required:!0,message:"请输入配置标识"}]},HP=[{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}],crt={formData:urt,formRule:LP,formConfig:HP};let drt={name:"",config_name:"",is_auth:"1",config_unique_id:""};const frt=[{prop:"name",label:"配置",el:"hs-select",cel:"hs-option",multiple:!1,clearable:!1,op:[]}],LN={formData:drt,formRule:LP,formConfig:Ue.concat(frt,HP)},prt=x1();function vrt(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(Ue.assign(Ue.cloneDeep(LN),{formData:{is_auth:"1",name:"",config_name:"",config_unique_id:new Date().getTime().toString()}}));const i=(m,v)=>{if(v=="name"){let g=Ue.cloneDeep(r.configs).find(y=>y.config_unique_id==m);console.log("config",g),l.value.formData=Ue.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=()=>new Promise(m=>{let v={id:"",config_type:"1",tables:[{id:"table_"+new Date().getTime().toString(),baseData:{id:"",tableName:"表格配置名称"},tableConfig:[],dynamicTableConfig:[]}],config_unique_id:new Date().getTime().toString(),config_name:"",is_auth:"1",btns:[]};prt.getBtnConfigByKeyMap({btnNames:["search","reset"],project_code:"scmp"}).then(g=>{if(console.log("res",g),g.code!==1)return m(v);if(g.data.search&&g.data.search.json_data){let y=JSON.parse(g.data.search.json_data);v.btns.push({id:y.key+new Date().getTime().toString(),data:y})}if(g.data.reset&&g.data.reset.json_data){let y=JSON.parse(g.data.reset.json_data);v.btns.push({id:y.key+new Date().getTime().toString(),data:y})}m(v)}).catch(()=>{m(v)})}),s=async(m,v=0)=>{let g=Ue.cloneDeep(LN);if(g.formData.name=m[v]&&m[v].config_unique_id||"",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(w=>({label:w.config_name,value:w.config_unique_id,is_auth:w.is_auth})),x=Ue.findIndex(g.formConfig,w=>w.prop=="name");if(x<0)return;let b=Ue.assign(g.formConfig[x],{op:C});g.formConfig.splice(x,1,b)}l.value=g,a.value=!0;let y=m[v];y||(y=await u()),y.tables.length>0&&y.tables.map(C=>(C.dynamicTableConfig||(C.dynamicTableConfig=[],C.baseData.dynamicColumn={}),C)),t("change",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:async()=>{if(!(a.value&&!l.value.formData.name)){let m=await u();t("change",m),console.log("initConfig",m)}l.value=Ue.cloneDeep(crt),l.value.formData.config_unique_id=new Date().getTime().toString(),a.value=!1},cancel:()=>{s(Ue.cloneDeep(r.configs))},deleteConfig:()=>{t("delete")}}}const mrt={class:"flex justify-around items-center"},hrt={class:"basis-3/4"},grt={class:"basis-1/4 flex justify-end"},brt=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}=vrt(l,a,o);return n({initOriginConfig:f}),(g,y)=>{const C=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",mrt,[e.createElementVNode("div",hrt,[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",grt,[!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"]))])])}}}),HN=op();function yrt(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:[],dynamicTableConfig:[]})},u=w=>{let E=Vx.find(t.value.tables,S=>S.id==w);da.confirm(`确定删除${(E==null?void 0:E.baseData.tableName)||"表格配置"}吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ue.remove(t.value.tables,S=>w&&S.id==w),An.success("删除成功")}).catch(S=>{console.log("err",S)})},s=(w,E)=>{switch(E){case"remove":u(w);break;case"add":i();break}};let c=e.ref();const d=(w,E=!1)=>{if(w.form){if(w.form.formConfig.length>0){let k=0;w.form.formConfig=Ue.filter(w.form.formConfig,V=>{if(V.data.baseData.prop&&!$P[V.data.baseData.prop]&&(E||V.data.baseData.isApply))return V.sort=++k,!0})}w.form.formConfig.length<=0&&delete w.form}w.tables.map(k=>{let V=0;return k.tableConfig=Ue.filter(k.tableConfig,N=>{if((N.data.field||N.data.type)&&(E||N.data.isApply))return N.data.type&&!N.data.field&&!E&&(N.data.field="type_"+N.data.type),N.data.filters=Ue.filter(N.data.filters,T=>T.value),N.btnData=Ue.filter(N.btnData,T=>(E||T.data.isApply)&&T.data.key),N.sort=++V,!0}),k.dynamicTableConfig=Ue.filter(k.dynamicTableConfig,N=>{if((N.data.field||N.data.type)&&(E||N.data.isApply))return N.data.field&&!N.data.field&&!E&&(N.data.field="type_"+N.data.field),N.data.filters=Ue.filter(N.data.filters,T=>T.value),N.btnData=Ue.filter(N.btnData,T=>(E||T.data.isApply)&&T.data.key),N.sort=++V,!0}),k});let S=0;w.tables=Ue.filter(w.tables,k=>{if(k.tableConfig.length>0||k.dynamicTableConfig.length>0)return k.sort=++S,!0});let B=0;return w.btns=Ue.filter(w.btns,k=>{if(k.data.key&&(E||k.data.isApply))return k.sort=++B,!0}),w},f=(w={})=>(Object.keys(w).forEach(E=>{w[E]===""||w[E]===null||w[E]===void 0||w[E]instanceof Array&&w[E].length<=0||w[E]instanceof Object&&Ue.isEmpty(w[E])?delete w[E]:w[E]instanceof Object?f(w[E]):w[E]instanceof Array&&w[E].map(S=>f(S))}),w),p=w=>(w.btns=Ue.map(w.btns,(E,S)=>({id:E.id,data:f(E.data),sort:S+1})),w.form&&(w.form.baseData=Ue.assign({},f(w.form.baseData)),w.form.formConfig=Ue.map(w.form.formConfig,(E,S)=>({data:f(E.data),id:E.id,sort:S+1}))),w.tables=Ue.map(w.tables,(E,S)=>{let B=E.tableConfig.map((N,T)=>{let O=N.btnData.map(I=>f(I));return{id:N.id,data:f(N.data),btnData:O,sort:T+1}}),k=E.dynamicTableConfig.map((N,T)=>{let O=N.btnData.map(I=>f(I));return{id:N.id,data:f(N.data),btnData:O,sort:T+1}}),V=f(E.baseData);return E=Ue.assign(E,{tableConfig:B,baseData:V,sort:S+1,dynamicTableConfig:k}),E}),w),m=w=>{var V;let E=(w.btns||[]).map((N,T)=>({id:N.id,fieldName:N.data.name,showName:N.data.name,fieldProp:N.data.key,fieldShow:N.data.isShow,fieldRequired:!1,sort:T+1})),S=(w.tables||[]).map((N,T)=>{let O=N.tableConfig.map((I,z)=>{let F=(I.btnData||[]).map((L,R)=>({id:L.id||"",fieldName:L.data.name||"",showName:L.data.name||"",fieldProp:L.data.key||"",fieldShow:L.data.isShow||"",fieldRequired:!1,sort:R+1}));return{id:I.id,fieldName:I.data.title||(I.data.type?d2[I.data.type]:""),showName:I.data.title||(I.data.type?d2[I.data.type]:""),fieldProp:I.data.field||(I.data.type?"type_"+I.data.type:""),fieldShow:!1,fieldRequired:!1,fieldExport:!1,option:F,sort:z+1}});return{tableId:N.id||"",id:N.id||"",tableName:N.baseData.tableName||"",data:O,sort:T+1}}),B=(((V=w.form)==null?void 0:V.formConfig)||[]).map((N,T)=>({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:T+1}));return{config_type:"1",config_unique_id:w.config_unique_id,btns:E,tables:S,form:B,menu_id:l.value.id}};let v=e.ref("btn");const g=w=>{t.value=w,v.value="btn"},y=w=>{v.value="btn",r.value&&r.value.initOriginConfig(n.value,w)};return{handleTabsEdit:s,saveFormTableConfig:async w=>{let E=await d(Ue.cloneDeep(t.value),!0);E=Ue.assign(E,w);let B=n.value.map(O=>O.config_unique_id).indexOf(E.config_unique_id);B>-1?n.value.splice(B,1,E):n.value.push(E);let k=await d(Ue.cloneDeep(E),!1),V=await p(Ue.cloneDeep(k)),N=await m(Ue.cloneDeep(V));console.log("originConfig系统配置",E,"businessConfig==业务配置",V,"权限数据",N);let T={field_json:JSON.stringify(E),config_name:E.config_name,config_type:"1",config_unique_id:E.config_unique_id,business_json:JSON.stringify(V),menu_id:l.value.id||"",page_name:l.value.meta.title,config_json:JSON.stringify(N),id:E.id||"",project_code:a.value.project_code,update_time:E.update_time||""};HN.postSaveField4Table(T).then(()=>{An.success("保存配置成功"),c.value=E,o("refresh")}).catch(O=>{console.log("er",O)})},changeConfig:g,initData:(w,E,S)=>{n.value=w,a.value=S,l.value=E,y(0)},tabsActiveName:v,config:c,deleteConfig:()=>{da.prompt(`确认删除【${t.value.config_name}】吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",inputPattern:/^确认删除/,inputErrorMessage:"请输入“确认删除”",inputPlaceholder:"请输入“确认删除”"}).then(()=>{HN.postDelFieldById({id:t.value.id}).then(w=>{w.code==1&&(An.success("删除成功"),setTimeout(()=>{o("refresh")},1500))})}).catch(()=>{An.info("已取消删除")})}}}const _rt={class:"flex flex-col h-full"},Crt={class:"flex-1 system-user-container",style:{height:"300px"}},wrt=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:[],is_auth:"1",tables:[{id:"table_"+new Date().getTime().toString(),baseData:{id:"",tableName:"表格配置名称"},tableConfig:[],dynamicTableConfig:[]}]}),a=e.ref([]),l=e.ref();const i=r,{handleTabsEdit:u,saveFormTableConfig:s,changeConfig:c,initData:d,tabsActiveName:f,deleteConfig:p}=yrt(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",_rt,[e.createElementVNode("div",Crt,[e.createVNode(y,{ref:"tabsRef",modelValue:e.unref(f),"onUpdate:modelValue":v[3]||(v[3]=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(srt),{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(qtt),{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,x)=>(e.openBlock(),e.createBlock(g,{key:x,class:"tab-pane",label:C.baseData.tableName||"表格配置名称",name:C.id,closable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(jnt),{closable:"","table-model":e.unref(o).tables[x],"onUpdate:tableModel":b=>e.unref(o).tables[x]=b,"config-model":e.unref(o),"onUpdate:configModel":v[2]||(v[2]=b=>e.isRef(o)?o.value=b:o=b)},null,40,["table-model","onUpdate:tableModel","config-model"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onEdit"])]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(brt),{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"]))])}}}),xrt=Or(wrt,[["__scopeId","data-v-eec729de"]]),Ert=AP();function krt(t){let n=e.ref(""),r=e.ref();const o=i=>{let u=r.value.find(s=>s.value==i);n.value=Ue.get(u,"value",""),Oo.set("CURRENT_SYSTEM",u),t("change",u)},a=()=>{Ert.getAllSystemInfo().then(i=>{if(i.code==1){r.value=(i.data||[]).map(s=>({...s,label:s.project_name||"",value:s.project_code||""}));let u=Oo.get("CURRENT_SYSTEM")||r.value[0];o(u&&u.value||"")}}).catch(i=>{console.log("err",i)})};return{onChange:o,initData:()=>{let i=Oo.get("CURRENT_SYSTEM");n.value=(i==null?void 0:i.value)||"",a()},curSys:n,systems:r}}const Srt={class:"flex"},Brt={key:0,class:"basis-1/4 flex flex-col justify-center"},Nrt=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}=krt(o);return e.onMounted(()=>{l()}),(s,c)=>{const d=e.resolveComponent("hs-option"),f=e.resolveComponent("hs-select");return e.openBlock(),e.createElementBlock("div",Srt,[r.showLabel?(e.openBlock(),e.createElementBlock("div",Brt,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 Trt(t,n){let r;const o=i=>new Promise(u=>{if(!i||!t.url||!t.qry_key){clearTimeout(r),u([]);return}let s=Ue.assign(t.params,{[t.qry_key||""]:i});vn({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):Ue.get(c,"data.customPageList")&&Ue.isArray(Ue.get(c,"data.customPageList"))?u(Ue.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 Drt=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}=Trt(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"])}}}),Vrt=e.defineComponent({name:"bcGroupDate",props:{value:{type:Object,required:!0},elComponent:{type:String,required:!0},fieldComponent:{type:String,required:!0}},emits:["change"],setup(t,{emit:n,expose:r}){const o=e.inject("bcTableFormApi",{}),a=e.ref(),[l,i]=t.value[t.fieldComponent],u=e.ref({[l]:"",[i]:""}),s=e.ref([]);function c(m){if(m){const[v,g]=m;u.value[l]=v,u.value[i]=g}else u.value[l]="",u.value[i]="";o==null||o.updateSearchForm(u.value),n("change",m)}function d(){c(["",""]),s.value=["",""]}function f(){var m;(m=a.value)==null||m.activeElement()}function p(){var m;(m=a.value)==null||m.focus()}return r({clearData:d,focus:p,activeElement:f}),{elRef:a,groupData:s,focus:p,onChange:c}}});function $rt(t,n,r,o,a,l){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.elComponent),{ref:"elRef",modelValue:t.groupData,"onUpdate:modelValue":n[0]||(n[0]=i=>t.groupData=i),onChange:t.onChange},null,40,["modelValue","onChange"])}const Ort=Or(Vrt,[["render",$rt]]),Art=u3();function Mrt(t){const n=e.ref([]),r=u=>u.map(s=>{let c=Ue.assign(s,{label:s.meta.title,value:s.name});return c.children&&c.children.length>0&&(c.children=r(c.children||[])),c}),o=u=>{Art.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 Rrt(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=Ue.cloneDeep(l)},{deep:!0,immediate:!0}),{handleNodeClick:r,menuData:o,defaultProps:{children:"children",label:"label"}}}const Irt={class:"max-h-full overflow-y-auto"},Prt=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}=Rrt(o,r);return(u,s)=>{const c=e.resolveComponent("hs-tree");return e.openBlock(),e.createElementBlock("div",Irt,[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"])])}}}),Frt={class:"bg-blue-500 py-5 rounded-md",style:{width:"200px"}},zrt=e.defineComponent({__name:"bcPageTreeBySystem",emits:["changeNode","changeSystem"],setup(t,{expose:n,emit:r}){const o=r,{changeNode:a,onChangeSystem:l,menuData:i}=Mrt(o);return n({onChangeSystem:l}),(u,s)=>{const c=e.resolveComponent("bc-switch-systems");return e.openBlock(),e.createElementBlock("div",Frt,[e.createVNode(c,{onChange:e.unref(l)},null,8,["onChange"]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Prt),{menu:e.unref(i),onChange:e.unref(a)},null,40,["menu","onChange"]))])}}});function Lrt(t,n){const{postDeleteFile:r,postDelFileNoAttch:o}=MP(),{proxy:a}=e.getCurrentInstance();let l=e.ref({});e.onMounted(async()=>{l.value=await Ha.get("userInfo")});const i=e.computed(()=>{let k=t.fileList||[];return t.annex?k.map(V=>({name:V.name,id:V.id,path:V.path,url:"https://"+l.value.filePath+`${V.path}?x-oss-process=style/tpys_20`})):k.map(V=>({name:V.path,path:V.path,url:"https://"+l.value.filePath+`${V.path}?x-oss-process=style/tpys_20`}))});function u(k){const V=k.size/1024/1024<t.size;return V||a.$message.error(`上传头像图片大小不能超过 ${t.size}MB!`),V}const s=[".jpg",".jpeg",".png",".gif"];function c(){return t.accept.split(",").map(N=>N.trim()).some(N=>{const T=N.toLowerCase();return s.includes(T)})}function d(k,V,N){console.log(k,V,N,t.accept,c()),(t.accept==="image/*"||c())&&(t.annex?b(k,V,N):w(k,V,N)),(t.accept.includes("xls")||t.accept.includes("xlsx"))&&n("onSuccess",k)}function f(k,V="id"){t.annex?E(k,V):S(k,"path")}let p=e.ref(!1),m=e.ref(0);function v(k){k&&(m.value=i.value.findIndex(V=>V.path===k.path)),p.value=!0}function g(){p.value=!1}const y=e.computed(()=>i.value.map(k=>k.url));function C(){a.$message.warning(`只能上传${t.limit}个文件`)}function x(k){rP(k)}function b(k,V,N){const T=[];k.code===1?(N.forEach(O=>{if(O.response){const{id:I,path:z,name:F}=O.response.data;T.push({id:I,name:F,path:z})}else{const{id:I,path:z,name:F}=O;T.push({id:I,name:F,path:z})}}),n("update:fileList",T),n("onSuccess",k.data)):(B(V,"uid"),a.$message.error(k.msg))}function w(k,V,N){const T=[];k.code===1?(N.forEach(O=>{if(O.response){const I=O.response.data;T.push({path:I})}else{const{path:I}=O;T.push({path:I})}}),n("update:fileList",T),n("onSuccess",k.data)):(B(V,"uid"),a.$message.error(k.msg))}function E(k,V="id"){let N=k[V]||k.response.data[V];r({data:{attachId:N},proxy:t.proxy}).then(T=>{T.code===1&&(B(k,V),a.$message.success(T.data))})}function S(k,V="path"){let N=k[V]||k.response.data[V];o({data:{filePath:N},proxy:t.proxy}).then(T=>{T.code===1&&(B(k,V),a.$message.success(T.data))})}function B(k,V="uid"){let N=t.fileList.filter(T=>T[V]!==k[V]);n("update:fileList",N)}return{userInfos:l,imgList:i,beforeUpload:u,onSuccess:d,onRemove:f,onPreview:v,onExceed:C,handleDownload:x,showViewer:p,onClose:g,urlList:y,viewerIndex:m}}const Hrt={key:0,class:"flex flex-col justify-center items-center gap-1"},Wrt={class:"w-full"},jrt={class:"el-upload-list__item-actions"},qrt=["onClick"],Urt=["onClick"],Krt=["onClick"],Grt=e.defineComponent({__name:"bcUpload",props:{action:{type:String,default:""},proxy:{type:String,default:"/qwp-web"},headers:{type:Object,default:()=>({})},method:{type:String,default:"post"},multiple:{type:Boolean,default:!1},data:{type:Object,default:()=>({})},name:{type:String,default:"file"},withCredentials:{type:Boolean,default:!1},showFileList:{type:Boolean,default:!0},drag:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},crossorigin:{type:String,default:""},listType:{type:String,default:"picture-card"},disabled:{type:Boolean,default:!1},limit:{type:Number},size:{type:Number,default:20},fileList:{type:Array,default:()=>[]},annex:{type:Boolean,default:!0}},emits:["update:fileList","onSuccess"],setup(t,{emit:n}){const r=t,o=()=>window.location.origin+`${r.proxy}${r.action}`,a=n,{imgList:l,beforeUpload:i,onSuccess:u,onRemove:s,onPreview:c,onExceed:d,handleDownload:f,showViewer:p,onClose:m,urlList:v,viewerIndex:g}=Lrt(r,a);return(y,C)=>{const x=e.resolveComponent("bc-icon"),b=e.resolveComponent("hs-image"),w=e.resolveComponent("hs-upload"),E=e.resolveComponent("hs-image-viewer");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(w,{action:o(),headers:t.headers,method:t.method,multiple:t.multiple,data:t.data,name:t.name,"with-credentials":t.withCredentials,"show-file-list":t.showFileList,drag:t.drag,accept:t.accept,crossorigin:t.crossorigin,"list-type":t.listType,disabled:t.disabled,limit:t.limit,"file-list":e.unref(l),"before-upload":e.unref(i),"on-success":e.unref(u),"on-exceed":e.unref(d)},e.createSlots({file:e.withCtx(({file:S})=>[e.createElementVNode("div",Wrt,[e.createVNode(b,{src:S.url,class:"el-upload-list__item-thumbnail"},null,8,["src"]),e.createElementVNode("span",jrt,[e.createElementVNode("span",{class:"el-upload-list__item-preview",onClick:B=>e.unref(c)(S)},[e.createVNode(x,{name:"ele-ZoomIn"})],8,qrt),t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:"el-upload-list__item-delete",onClick:B=>e.unref(f)(S)},[e.createVNode(x,{name:"ele-Download"})],8,Urt)),t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:1,class:"el-upload-list__item-delete",onClick:B=>e.unref(s)(S)},[e.createVNode(x,{name:"ele-Delete"})],8,Krt))])])]),default:e.withCtx(()=>[y.$slots.default?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Hrt,[e.createVNode(x,{name:"ele-Plus"}),e.createTextVNode("上传")]))]),_:2},[y.$slots.default?{name:"default",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"default")]),key:"0"}:void 0]),1032,["action","headers","method","multiple","data","name","with-credentials","show-file-list","drag","accept","crossorigin","list-type","disabled","limit","file-list","before-upload","on-success","on-exceed"]),e.unref(p)?(e.openBlock(),e.createBlock(E,{key:0,"url-list":e.unref(v),"initial-index":e.unref(g),onClose:e.unref(m)},null,8,["url-list","initial-index","onClose"])):e.createCommentVNode("",!0)])}}}),Yrt={class:"text-[#606266]"},Xrt={key:1},Zrt={class:"mb-[10px]"},Jrt={key:0,class:"flex justify-center align-middle mt-[10px]"},Qrt=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:Ue.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"),x=e.resolveComponent("hs-row"),b=e.resolveComponent("hs-form"),w=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(x,{gutter:0,justify:"start",class:"hs-row"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(E,S)=>(e.openBlock(),e.createBlock(C,{key:S,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",Yrt,"  "+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":B=>e.unref(l)[E.prop]=B,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||[],(B,k)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E.cel),{key:k,label:B.label,value:B.value},null,8,["label","value"]))),128)):e.createCommentVNode("",!0)]),_:2},1040,["modelValue","onUpdate:modelValue","clearable"]))]),_:2},1040)):(e.openBlock(),e.createElementBlock("div",Xrt,[e.createElementVNode("div",Zrt,[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",Jrt,[e.createVNode(w,{type:"primary",onClick:u},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])):e.createCommentVNode("",!0)],2)}}}),Ka=Or(Qrt,[["__scopeId","data-v-ec198f7a"]]),eot={class:"p-[10px] h-full"},tot=e.defineComponent({name:"inputAttrConfig"}),not=e.defineComponent({...tot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t;let r=e.ref({inputAttrConfig:Ue.cloneDeep(Fet),inputAttrConfigMap:Ue.cloneDeep(w1)});const o=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,r.value.inputAttrConfigMap):n.data);return(a,l)=>(e.openBlock(),e.createElementBlock("div",eot,[e.createVNode(Ka,{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"])]))}}),rot={class:"p-[10px] h-full overflow-y-auto"},oot=e.defineComponent({name:"inputEventConfig"}),aot=e.defineComponent({...oot,props:{data:{type:Object,default:()=>{}}},setup(t){const n=()=>{console.log(o),console.log(a)},r=t,o=e.ref(Ue.isEmpty(r.data)?Object.assign(r.data,{}):r.data),a=e.ref(FN.map(()=>({})));return console.log("formData",a),(l,i)=>{const u=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",rot,[e.createVNode(u,{onClick:n},{default:e.withCtx(()=>[e.createTextVNode("父组件获取数据")]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(FN),(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))])}}}),lot=[{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:"permissionsDict",label:"权限字典项",tooltip:"权限字典项",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"}}]}],iot={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:""}},sot={class:"p-[10px] h-full"},uot=e.defineComponent({name:"selectAttrConfig"}),cot=e.defineComponent({...uot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t;let r=e.ref(Ue.cloneDeep(iot));e.onMounted(()=>{let a=Oo.get("CURRENT_SYSTEM");r.value.attrs.proxy=a.project_url,console.log("system",a,r.value)});const o=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,r.value):n.data);return(a,l)=>(e.openBlock(),e.createElementBlock("div",sot,[e.createVNode(Ka,{data:o.value,"onUpdate:data":l[0]||(l[0]=i=>o.value=i),config:e.unref(lot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),dot=[{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"}}]}],fot={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:""}},pot={class:"p-[10px] h-full"},vot=e.defineComponent({name:"datePickerAttrConfig"}),mot=e.defineComponent({...vot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(fot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",pot,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(dot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),hot=[{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"}]}],got={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:{}},bot={class:"p-[10px] h-full"},yot=e.defineComponent({name:"buttonAttrConfig"}),_ot=e.defineComponent({...yot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(got)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",bot,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(hot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Cot=[{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"}]}],wot={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:"请输入"}},xot={class:"p-[10px] h-full"},Eot=e.defineComponent({name:"autocompleteAttrConfig"}),kot=e.defineComponent({...Eot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(wot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",xot,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Cot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Sot=[{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"}}]}],Bot={attrs:{size:"default",disabled:!1,loading:!1,"inline-prompt":!1,"validate-event":!0},rules:{required:!1,rules:""}},Not={class:"p-[10px] h-full"},Tot=e.defineComponent({name:"switchAttrConfig"}),Dot=e.defineComponent({...Tot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(Bot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Not,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Sot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Vot=[{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"}}]}],$ot={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:{}},Oot={class:"p-[10px] h-full"},Aot=e.defineComponent({name:"uploadAttrConfig"}),Mot=e.defineComponent({...Aot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep($ot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Oot,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Vot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Rot=[{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:"permissionsDict",label:"权限字典项",tooltip:"权限字典项",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"}}]}],Iot={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:""}},Pot={class:"p-[10px] h-full"},Fot=e.defineComponent({name:"checkboxAttrConfig"}),zot=e.defineComponent({...Fot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(Iot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Pot,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Rot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Lot=[{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:"permissionsDict",label:"权限字典项",tooltip:"权限字典项",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"}}]}],Hot={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:""}},Wot={class:"p-[10px] h-full"},jot=e.defineComponent({name:"radioAttrConfig"}),qot=e.defineComponent({...jot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(Hot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Wot,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Lot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Uot=[{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"}}]}],Kot={attrs:{"step-strictly":!1,size:"default",readonly:!1,disabled:!1,controls:!0,"validate-event":!0,placeholder:"请输入"},rules:{required:!1,rules:""}},Got={class:"p-[10px] h-full"},Yot=e.defineComponent({name:"inputNumberAttrConfig"}),Xot=e.defineComponent({...Yot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(Kot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Got,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Uot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Zot=[{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"}]}],Jot={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}},Qot={class:"p-[10px] h-full"},eat=e.defineComponent({name:"cascaderAttrConfig"}),tat=e.defineComponent({...eat,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(Jot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Qot,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Zot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),nat=[{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"}]}]}],rat={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}}},oat={class:"p-[10px] h-full"},aat=e.defineComponent({name:"cascaderPanelAttrConfig"}),lat=e.defineComponent({...aat,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(rat)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",oat,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(nat),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),iat=[{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:"permissionsDict",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"}}]}],sat={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:""}},uat={class:"p-[10px] h-full"},cat=e.defineComponent({name:"treeSelectAttrConfig"}),dat=e.defineComponent({...cat,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(sat)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",uat,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(iat),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),fat=e.defineComponent({name:"hsImageViewer"}),pat=e.defineComponent({...fat,setup(t,{expose:n}){const r=e.ref(null),o=e.getCurrentInstance();return e.onMounted(()=>{Qr(r,o)}),n({...o.exposed}),(a,l)=>{const i=e.resolveComponent("el-image-viewer");return e.openBlock(),e.createBlock(i,{ref_key:"imageViewerRef",ref:r},e.createSlots({_:2},[e.renderList(Object.keys(a.$slots),u=>({name:u,fn:e.withCtx(s=>[e.renderSlot(a.$slots,u,e.normalizeProps(e.guardReactiveProps(s||{})))])}))]),1536)}}}),vat=[{title:"hs-test",componentName:bSe},{title:"hs-table",componentName:wSe},{title:"hs-bc-table",componentName:ESe},{title:"hs-button",componentName:o5e},{title:"hs-button-group",componentName:i5e},{title:"hs-input",componentName:u5e},{title:"hs-select",componentName:d5e},{title:"hs-option",componentName:v5e},{title:"hs-option-group",componentName:g5e},{title:"hs-form",componentName:y5e},{title:"hs-form-item",componentName:C5e},{title:"hs-row",componentName:x5e},{title:"hs-col",componentName:k5e},{title:"hs-tree",componentName:N5e},{title:"hs-input-number",componentName:D5e},{title:"hs-switch",componentName:$5e},{title:"hs-radio",componentName:A5e},{title:"hs-radio-group",componentName:R5e},{title:"hs-radio-button",componentName:P5e},{title:"hs-checkbox",componentName:z5e},{title:"hs-checkbox-group",componentName:H5e},{title:"hs-checkbox-button",componentName:j5e},{title:"hs-rate",componentName:U5e},{title:"hs-autocomplete",componentName:G5e},{title:"hs-slider",componentName:X5e},{title:"hs-cascader",componentName:J5e},{title:"hs-cascader-panel",componentName:eBe},{title:"hs-color-picker",componentName:nBe},{title:"hs-upload",componentName:oBe},{title:"hs-transfer",componentName:lBe},{title:"hs-date-picker",componentName:sBe},{title:"hs-scrollbar",componentName:cBe},{title:"hs-calendar",componentName:fBe},{title:"hs-carousel",componentName:vBe},{title:"hs-carousel-item",componentName:hBe},{title:"hs-collapse",componentName:bBe},{title:"hs-collapse-item",componentName:_Be},{title:"hs-progress",componentName:wBe},{title:"hs-result",componentName:EBe},{title:"hs-tour",componentName:SBe},{title:"hs-tour-step",componentName:NBe},{title:"hs-tag",componentName:DBe},{title:"hs-check-tag",componentName:$Be},{title:"hs-affix",componentName:ABe},{title:"hs-tabs",componentName:RBe},{title:"hs-tab-pane",componentName:PBe},{title:"hs-steps",componentName:zBe},{title:"hs-step",componentName:HBe},{title:"hs-alert",componentName:jBe},{title:"hs-dialog",componentName:UBe},{title:"hs-drawer",componentName:GBe},{title:"hs-popconfirm",componentName:XBe},{title:"hs-popover",componentName:JBe},{title:"hs-tooltip",componentName:e9e},{title:"hs-watermark",componentName:n9e},{title:"hs-dropdown",componentName:o9e},{title:"hs-dropdown-menu",componentName:l9e},{title:"hs-dropdown-item",componentName:s9e},{title:"hs-tree-select",componentName:c9e},{title:"hs-badge",componentName:f9e},{title:"hs-empty",componentName:v9e},{title:"hs-image",componentName:h9e},{title:"hs-image-viewer",componentName:pat},{title:"bc-btn",componentName:E9e},{title:"bc-box",componentName:UZe},{title:"bc-radio",componentName:GZe},{title:"bc-checkbox",componentName:XZe},{title:"bc-icon",componentName:y9e},{title:"bc-form",componentName:_Je},{title:"bc-table",componentName:wJe},{title:"bc-form-table",componentName:Net},{title:"bc-form-config",componentName:Ret},{title:"bc-select",componentName:Det},{title:"bc-tree-select",componentName:Pet},{title:"bc-page-config",componentName:xrt},{title:"bc-switch-systems",componentName:Nrt},{title:"bc-auto-complete",componentName:Drt},{title:"bc-group-date",componentName:Ort},{title:"bc-page-tree-for-system",componentName:zrt},{title:"bc-upload",componentName:Grt},{title:"hs-config-input",componentName:not},{title:"hs-config-event",componentName:aot},{title:"hs-config-select",componentName:cot},{title:"hs-config-date-picker",componentName:mot},{title:"hs-config-button",componentName:_ot},{title:"hs-config-autocomplete",componentName:kot},{title:"hs-config-switch",componentName:Dot},{title:"hs-config-upload",componentName:Mot},{title:"hs-config-checkbox",componentName:zot},{title:"hs-config-radio",componentName:qot},{title:"hs-config-input-number",componentName:Xot},{title:"hs-config-cascader",componentName:tat},{title:"hs-config-cascader-panel",componentName:lat},{title:"hs-config-tree-select",componentName:dat}],WP={install(t){vat.forEach(n=>{t.component(n.title,n.componentName)})}};function mat(t){t.directive("auth",{mounted(n,r){cl().userInfos.authBtnList.some(a=>a===r.value)||n.parentNode.removeChild(n)}}),t.directive("auths",{mounted(n,r){let o=!1;cl().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=cl();Jx(r.value,o.userInfos.authBtnList)||n.parentNode.removeChild(n)}})}function hat(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 gat(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,x=p-o.offsetTop-v;let b=getComputedStyle(o).left,w=getComputedStyle(o).top;return b.includes("%")?(b=+document.body.clientWidth*(+b.replace(/\%/g,"")/100),w=+document.body.clientHeight*(+w.replace(/\%/g,"")/100)):(b=+b.replace(/\px/g,""),w=+w.replace(/\px/g,"")),{disX:c,disY:d,minDragDomLeft:g,maxDragDomLeft:y,minDragDomTop:C,maxDragDomTop:x,styL:b,styT:w}}function i(u,s,c){let{disX:d,disY:f,minDragDomLeft:p,maxDragDomLeft:m,minDragDomTop:v,maxDragDomTop:g,styL:y,styT:C}=c,x=s==="pc"?u.clientX-d:u.touches[0].clientX-d,b=s==="pc"?u.clientY-f:u.touches[0].clientY-f;-x>p?x=-p:x>m&&(x=m),-b>v?b=-v:b>g&&(b=g),o.style.cssText+=`;left:${x+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 bat(t){mat(t),hat(t),gat(t)}const yat=Object.freeze(Object.defineProperty({__proto__:null,directive:bat},Symbol.toStringTag,{value:"Module"}));function _at(t,n){dl.value=n==null?void 0:n.NEXT_NAME,L0.value=n==null?void 0:n.IS_DEV,t.use(rSe).use(WP)}exports.ClickOutside=Ii;exports.ElConfigProvider=oV;exports.ElMessage=An;exports.ElMessageBox=da;exports.ElTree=tO;exports.NextLoading=Z2;exports.Session=Oo;exports._=Ue;exports._export_sfc=Or;exports._sfc_main=RP;exports.avatar_default=UT;exports.baseForm=Ka;exports.commonjsGlobal=an;exports.component=WP;exports.delete_default=mw;exports.edit_default=JT;exports.formatAxis=eM;exports.getConfig=zl;exports.getDataType=tM;exports.getDefaultExportFromCjs=Jo;exports.getFormData=cP;exports.getLoadData=uP;exports.index=bZe;exports.index$1=yat;exports.index$2=n5e;exports.inputAttrConfigMap=w1;exports.isObjectValueEqual=Qx;exports.lodashExports=Vx;exports.mittBus=oM;exports.onBeforeRouteUpdate=q$e;exports.other=fM;exports.removeConfig=Xx;exports.request=vn;exports.setBackEndControlRefreshRoutes=z7e;exports.setting_default=uD;exports.showPopup=v1;exports.storeToRefs=ld;exports.systemStore=Ha;exports.to=Fu;exports.useBtnConfigController=x1;exports.useFieldConfigController=op;exports.useFileController=MP;exports.useHsAdminUi=_at;exports.useKeepALiveNames=KA;exports.useMenuController=u3;exports.usePostMan=OP;exports.useRoute=p7e;exports.useRouter=f7e;exports.useRoutesList=e1;exports.useSystemController=AP;exports.useTagsViewRoutes=i3;exports.useThemeConfig=l3;exports.useUserInfo=cl;exports.useVModel=Ax;exports.verifyUrl=f3;exports.zhCn=wO;
197
+ */function NN(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?NN(Object(r),!0).forEach(function(o){YJe(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NN(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function mg(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mg=function(n){return typeof n}:mg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mg(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 XJe(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 ZJe(t,n){if(t==null)return{};var r=XJe(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 JJe="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),nm=Es(/Edge/i),TN=Es(/firefox/i),zv=Es(/safari/i)&&!Es(/chrome/i)&&!Es(/android/i),hP=Es(/iP(ad|od|hone)/i),gP=Es(/chrome/i)&&Es(/android/i),bP={capture:!1,passive:!1};function wr(t,n,r){t.addEventListener(n,r,!Ls&&bP)}function br(t,n,r){t.removeEventListener(n,r,!Ls&&bP)}function a2(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 QJe(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Ei(t,n,r,o){if(t){r=r||document;do{if(n!=null&&(n[0]===">"?t.parentNode===r&&a2(t,n):a2(t,n))||o&&t===r)return t;if(t===r)break}while(t=QJe(t))}return null}var DN=/\s+/g;function rl(t,n,r){if(t&&n)if(t.classList)t.classList[r?"add":"remove"](n);else{var o=(" "+t.className+" ").replace(DN," ").replace(" "+n+" "," ");t.className=(o+(r?" "+n:"")).replace(DN," ")}}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 vf(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 yP(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 wo(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=vf(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 _P(t){var n=wo(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 VN(t,n,r){for(var o=_u(t,!0),a=wo(t)[n];o;){var l=wo(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 Ff(t,n,r,o){for(var a=0,l=0,i=t.children;l<i.length;){if(i[l].style.display!=="none"&&i[l]!==Bn.ghost&&(o||i[l]!==Bn.dragged)&&Ei(i[l],r.draggable,t,!1)){if(a===n)return i[l];a++}l++}return null}function q3(t,n){for(var r=t.lastElementChild;r&&(r===Bn.ghost||pn(r,"display")==="none"||n&&!a2(r,n));)r=r.previousElementSibling;return r||null}function El(t,n){var r=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Bn.clone&&(!n||a2(t,n))&&r++;return r}function $N(t){var n=0,r=0,o=$i();if(t)do{var a=vf(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 eQe(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 tQe(t,n){if(t&&n)for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);return t}function N4(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 Lv;function CP(t,n){return function(){if(!Lv){var r=arguments,o=this;r.length===1?t.call(o,r[0]):t.apply(o,r),Lv=setTimeout(function(){Lv=void 0},n)}}}function nQe(){clearTimeout(Lv),Lv=void 0}function wP(t,n,r){t.scrollLeft+=n,t.scrollTop+=r}function xP(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 il="Sortable"+new Date().getTime();function rQe(){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===Bn.ghost)){t.push({target:o,rect:wo(o)});var a=Fi({},t[t.length-1].rect);if(o.thisAnimationDuration){var l=vf(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(eQe(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=wo(s),f=s.prevFromRect,p=s.prevToRect,m=i.rect,v=vf(s,!0);v&&(d.top-=v.f,d.left-=v.e),s.toRect=d,s.thisAnimationDuration&&N4(f,d)&&!N4(c,d)&&(m.top-d.top)/(m.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(u=aQe(m,f,p,o.options)),N4(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=vf(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=oQe(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 oQe(t){return t.offsetWidth}function aQe(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 Md=[],T4={initializeByDefault:!0},rm={mount:function(t){for(var n in T4)T4.hasOwnProperty(n)&&!(n in t)&&(t[n]=T4[n]);Md.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Md.push(t)},pluginEvent:function(t,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var a=t+"Global";Md.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){Md.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 Md.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 Md.forEach(function(a){t[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(o=a.optionListeners[n].call(t[a.pluginName],r))}),o}};function lQe(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[il],!!n){var g,y=n.options,C="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!Ls&&!nm?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 x=Fi(Fi({},v),rm.getEventProperties(o,n));for(var b in x)g[b]=x[b];r&&r.dispatchEvent(g),y[C]&&y[C].call(n,g)}}var iQe=["evt"],Ia=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,a=ZJe(r,iQe);rm.pluginEvent.bind(Bn)(t,n,Fi({dragEl:Ft,parentEl:co,ghostEl:Wn,rootEl:Zr,nextEl:uc,lastDownEl:hg,cloneEl:oo,cloneHidden:mu,dragStarted:nv,putSortable:Ko,activeSortable:Bn.active,originalEvent:o,oldIndex:tf,oldDraggableIndex:Hv,newIndex:ol,newDraggableIndex:fu,hideGhostForTarget:BP,unhideGhostForTarget:NP,cloneNowHidden:function(){mu=!0},cloneNowShown:function(){mu=!1},dispatchSortableEvent:function(l){wa({sortable:n,name:l,originalEvent:o})}},a))};function wa(t){lQe(Fi({putSortable:Ko,cloneEl:oo,targetEl:Ft,rootEl:Zr,oldIndex:tf,oldDraggableIndex:Hv,newIndex:ol,newDraggableIndex:fu},t))}var Ft,co,Wn,Zr,uc,hg,oo,mu,tf,ol,Hv,fu,Sh,Ko,jd=!1,l2=!1,i2=[],oc,Xl,D4,V4,ON,AN,nv,Rd,Wv,jv=!1,Bh=!1,gg,oa,$4=[],FC=!1,s2=[],C1=typeof document<"u",Nh=hP,MN=nm||Ls?"cssFloat":"float",sQe=C1&&!gP&&!hP&&"draggable"in document.createElement("div"),EP=function(){if(C1){if(Ls)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),kP=function(t,n){var r=pn(t),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=Ff(t,0,n),l=Ff(t,1,n),i=a&&pn(a),u=l&&pn(l),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+wo(a).width,c=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+wo(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[MN]==="none"||l&&r[MN]==="none"&&s+c>o)?"vertical":"horizontal"},uQe=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},cQe=function(t,n){var r;return i2.some(function(o){var a=o[il].options.emptyInsertThreshold;if(!(!a||q3(o))){var l=wo(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},SP=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||mg(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},BP=function(){!EP&&Wn&&pn(Wn,"display","none")},NP=function(){!EP&&Wn&&pn(Wn,"display","")};C1&&!gP&&document.addEventListener("click",function(t){if(l2)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),l2=!1,!1},!0);var ac=function(t){if(Ft){t=t.touches?t.touches[0]:t;var n=cQe(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[il]._onDragOver(r)}}},dQe=function(t){Ft&&Ft.parentNode[il]._isOutsideThisEl(t.target)};function Bn(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[il]=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 kP(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:Bn.supportPointer!==!1&&"PointerEvent"in window&&!zv,emptyInsertThreshold:5};rm.initializePlugins(this,t,r);for(var o in r)!(o in n)&&(n[o]=r[o]);SP(n);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=n.forceFallback?!1:sQe,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?wr(t,"pointerdown",this._onTapStart):(wr(t,"mousedown",this._onTapStart),wr(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(wr(t,"dragover",this),wr(t,"dragenter",this)),i2.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),Ns(this,rQe())}Bn.prototype={constructor:Bn,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Rd=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(yQe(r),!Ft&&!(/mousedown|pointerdown/.test(l)&&t.button!==0||o.disabled)&&!s.isContentEditable&&!(!this.nativeDraggable&&zv&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=Ei(u,o.draggable,r,!1),!(u&&u.animated)&&hg!==u)){if(tf=El(u),Hv=El(u,o.draggable),typeof c=="function"){if(c.call(this,t,u,this)){wa({sortable:n,rootEl:s,name:"filter",targetEl:u,toEl:r,fromEl:r}),Ia("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=Ei(s,d.trim(),r,!1),d)return wa({sortable:n,rootEl:d,name:"filter",targetEl:u,fromEl:r,toEl:r}),Ia("filter",n,{evt:t}),!0}),c)){a&&t.cancelable&&t.preventDefault();return}o.handle&&!Ei(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=wo(r);if(Zr=a,Ft=r,co=Ft.parentNode,uc=Ft.nextSibling,hg=r,Sh=l.group,Bn.dragged=Ft,oc={target:Ft,clientX:(n||t).clientX,clientY:(n||t).clientY},ON=oc.clientX-s.left,AN=oc.clientY-s.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Ft.style["will-change"]="all",u=function(){if(Ia("delayEnded",o,{evt:t}),Bn.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!TN&&o.nativeDraggable&&(Ft.draggable=!0),o._triggerDragStart(t,n),wa({sortable:o,name:"choose",originalEvent:t}),rl(Ft,l.chosenClass,!0)},l.ignore.split(",").forEach(function(c){yP(Ft,c.trim(),O4)}),wr(i,"dragover",ac),wr(i,"mousemove",ac),wr(i,"touchmove",ac),wr(i,"mouseup",o._onDrop),wr(i,"touchend",o._onDrop),wr(i,"touchcancel",o._onDrop),TN&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ft.draggable=!0),Ia("delayStart",this,{evt:t}),l.delay&&(!l.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(nm||Ls))){if(Bn.eventCanceled){this._onDrop();return}wr(i,"mouseup",o._disableDelayedDrag),wr(i,"touchend",o._disableDelayedDrag),wr(i,"touchcancel",o._disableDelayedDrag),wr(i,"mousemove",o._delayedDragTouchMoveHandler),wr(i,"touchmove",o._delayedDragTouchMoveHandler),l.supportPointer&&wr(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&&O4(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?wr(document,"pointermove",this._onTouchMove):n?wr(document,"touchmove",this._onTouchMove):wr(document,"mousemove",this._onTouchMove):(wr(Ft,"dragend",this),wr(Zr,"dragstart",this._onDragStart));try{document.selection?bg(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(jd=!1,Zr&&Ft){Ia("dragStarted",this,{evt:n}),this.nativeDraggable&&wr(document,"dragover",dQe);var r=this.options;!t&&rl(Ft,r.dragClass,!1),rl(Ft,r.ghostClass,!0),Bn.active=this,t&&this._appendGhost(),wa({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Xl){this._lastX=Xl.clientX,this._lastY=Xl.clientY,BP();for(var t=document.elementFromPoint(Xl.clientX,Xl.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Xl.clientX,Xl.clientY),t!==n);)n=t;if(Ft.parentNode[il]._isOutsideThisEl(t),n)do{if(n[il]){var r=void 0;if(r=n[il]._onDragOver({clientX:Xl.clientX,clientY:Xl.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);NP()}},_onTouchMove:function(t){if(oc){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,a=t.touches?t.touches[0]:t,l=Wn&&vf(Wn,!0),i=Wn&&l&&l.a,u=Wn&&l&&l.d,s=Nh&&oa&&$N(oa),c=(a.clientX-oc.clientX+o.x)/(i||1)+(s?s[0]-$4[0]:0)/(i||1),d=(a.clientY-oc.clientY+o.y)/(u||1)+(s?s[1]-$4[1]:0)/(u||1);if(!Bn.active&&!jd){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(Wn){l?(l.e+=c-(D4||0),l.f+=d-(V4||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(Wn,"webkitTransform",f),pn(Wn,"mozTransform",f),pn(Wn,"msTransform",f),pn(Wn,"transform",f),D4=c,V4=d,Xl=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Wn){var t=this.options.fallbackOnBody?document.body:Zr,n=wo(Ft,!0,Nh,!0,t),r=this.options;if(Nh){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(),$4=$N(oa)}Wn=Ft.cloneNode(!0),rl(Wn,r.ghostClass,!1),rl(Wn,r.fallbackClass,!0),rl(Wn,r.dragClass,!0),pn(Wn,"transition",""),pn(Wn,"transform",""),pn(Wn,"box-sizing","border-box"),pn(Wn,"margin",0),pn(Wn,"top",n.top),pn(Wn,"left",n.left),pn(Wn,"width",n.width),pn(Wn,"height",n.height),pn(Wn,"opacity","0.8"),pn(Wn,"position",Nh?"absolute":"fixed"),pn(Wn,"zIndex","100000"),pn(Wn,"pointerEvents","none"),Bn.ghost=Wn,t.appendChild(Wn),pn(Wn,"transform-origin",ON/parseInt(Wn.style.width)*100+"% "+AN/parseInt(Wn.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,o=t.dataTransfer,a=r.options;if(Ia("dragStart",this,{evt:t}),Bn.eventCanceled){this._onDrop();return}Ia("setupClone",this),Bn.eventCanceled||(oo=xP(Ft),oo.removeAttribute("id"),oo.draggable=!1,oo.style["will-change"]="",this._hideClone(),rl(oo,this.options.chosenClass,!1),Bn.clone=oo),r.cloneId=bg(function(){Ia("clone",r),!Bn.eventCanceled&&(r.options.removeCloneOnHide||Zr.insertBefore(oo,Ft),r._hideClone(),wa({sortable:r,name:"clone"}))}),!n&&rl(Ft,a.dragClass,!0),n?(l2=!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)),wr(document,"drop",r),pn(Ft,"transform","translateZ(0)")),jd=!0,r._dragStartId=bg(r._dragStarted.bind(r,n,t)),wr(document,"selectstart",r),nv=!0,zv&&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=Bn.active,c=Sh===u,d=i.sort,f=Ko||s,p,m=this,v=!1;if(FC)return;function g(R,W){Ia(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(P,U){return Th(Zr,n,Ft,o,P,wo(P),t,U)},changed:x},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&&(rl(Ft,Ko?Ko.options.ghostClass:s.options.ghostClass,!1),rl(Ft,i.ghostClass,!0)),Ko!==m&&m!==Bn.active?Ko=m:m===Bn.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)&&(Rd=null),!i.dragoverBubble&&!t.rootEl&&r!==document&&(Ft.parentNode[il]._isOutsideThisEl(t.target),!R&&ac(t)),!i.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function x(){ol=El(Ft),fu=El(Ft,i.draggable),wa({sortable:m,name:"change",toEl:n,newIndex:ol,newDraggableIndex:fu,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=Ei(r,i.draggable,n,!0),g("dragOver"),Bn.eventCanceled)return v;if(Ft.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||m._ignoreWhileAnimating===r)return C(!1);if(l2=!1,s&&!i.disabled&&(c?d||(l=co!==Zr):Ko===this||(this.lastPutMode=Sh.checkPull(this,s,Ft,t))&&u.checkPut(this,s,Ft,t))){if(p=this._getDirection(t,r)==="vertical",o=wo(Ft),g("dragOverValid"),Bn.eventCanceled)return v;if(l)return co=Zr,y(),this._hideClone(),g("revert"),Bn.eventCanceled||(uc?Zr.insertBefore(Ft,uc):Zr.appendChild(Ft)),C(!0);var b=q3(n,i.draggable);if(!b||mQe(t,p,this)&&!b.animated){if(b===Ft)return C(!1);if(b&&n===t.target&&(r=b),r&&(a=wo(r)),Th(Zr,n,Ft,o,r,a,t,!!r)!==!1)return y(),b&&b.nextSibling?n.insertBefore(Ft,b.nextSibling):n.appendChild(Ft),co=n,x(),C(!0)}else if(b&&vQe(t,p,this)){var w=Ff(n,0,i,!0);if(w===Ft)return C(!1);if(r=w,a=wo(r),Th(Zr,n,Ft,o,r,a,t,!1)!==!1)return y(),n.insertBefore(Ft,w),co=n,x(),C(!0)}else if(r.parentNode===n){a=wo(r);var E=0,S,B=Ft.parentNode!==n,k=!uQe(Ft.animated&&Ft.toRect||o,r.animated&&r.toRect||a,p),V=p?"top":"left",N=VN(r,"top","top")||VN(Ft,"top","top"),T=N?N.scrollTop:void 0;Rd!==r&&(S=a[V],jv=!1,Bh=!k&&i.invertSwap||B),E=hQe(t,r,a,p,k?1:i.swapThreshold,i.invertedSwapThreshold==null?i.swapThreshold:i.invertedSwapThreshold,Bh,Rd===r);var O;if(E!==0){var I=El(Ft);do I-=E,O=co.children[I];while(O&&(pn(O,"display")==="none"||O===Wn))}if(E===0||O===r)return C(!1);Rd=r,Wv=E;var z=r.nextElementSibling,F=!1;F=E===1;var L=Th(Zr,n,Ft,o,r,a,t,F);if(L!==!1)return(L===1||L===-1)&&(F=L===1),FC=!0,setTimeout(pQe,30),y(),F&&!z?n.appendChild(Ft):r.parentNode.insertBefore(Ft,F?z:r),N&&wP(N,0,T-N.scrollTop),co=Ft.parentNode,S!==void 0&&!Bh&&(gg=Math.abs(S-wo(r)[V])),x(),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(ol=El(Ft),fu=El(Ft,r.draggable),Ia("drop",this,{evt:t}),co=Ft&&Ft.parentNode,ol=El(Ft),fu=El(Ft,r.draggable),Bn.eventCanceled){this._nulling();return}jd=!1,Bh=!1,jv=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),zC(this.cloneId),zC(this._dragStartId),this.nativeDraggable&&(br(document,"drop",this),br(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),zv&&pn(document.body,"user-select",""),pn(Ft,"transform",""),t&&(nv&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),Wn&&Wn.parentNode&&Wn.parentNode.removeChild(Wn),(Zr===co||Ko&&Ko.lastPutMode!=="clone")&&oo&&oo.parentNode&&oo.parentNode.removeChild(oo),Ft&&(this.nativeDraggable&&br(Ft,"dragend",this),O4(Ft),Ft.style["will-change"]="",nv&&!jd&&rl(Ft,Ko?Ko.options.ghostClass:this.options.ghostClass,!1),rl(Ft,this.options.chosenClass,!1),wa({sortable:this,name:"unchoose",toEl:co,newIndex:null,newDraggableIndex:null,originalEvent:t}),Zr!==co?(ol>=0&&(wa({rootEl:co,name:"add",toEl:co,fromEl:Zr,originalEvent:t}),wa({sortable:this,name:"remove",toEl:co,originalEvent:t}),wa({rootEl:co,name:"sort",toEl:co,fromEl:Zr,originalEvent:t}),wa({sortable:this,name:"sort",toEl:co,originalEvent:t})),Ko&&Ko.save()):ol!==tf&&ol>=0&&(wa({sortable:this,name:"update",toEl:co,originalEvent:t}),wa({sortable:this,name:"sort",toEl:co,originalEvent:t})),Bn.active&&((ol==null||ol===-1)&&(ol=tf,fu=Hv),wa({sortable:this,name:"end",toEl:co,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Ia("nulling",this),Zr=Ft=co=Wn=uc=oo=hg=mu=oc=Xl=nv=ol=fu=tf=Hv=Rd=Wv=Ko=Sh=Bn.dragged=Bn.ghost=Bn.clone=Bn.active=null,s2.forEach(function(t){t.checked=!0}),s2.length=D4=V4=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ft&&(this._onDragOver(t),fQe(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],Ei(n,l.draggable,this.el,!1)&&t.push(n.getAttribute(l.dataIdAttr)||bQe(n));return t},sort:function(t,n){var r={},o=this.el;this.toArray().forEach(function(a,l){var i=o.children[l];Ei(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 Ei(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=rm.modifyOption(this,t,n);typeof o<"u"?r[t]=o:r[t]=n,t==="group"&&SP(r)},destroy:function(){Ia("destroy",this);var t=this.el;t[il]=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(),i2.splice(i2.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!mu){if(Ia("hideClone",this),Bn.eventCanceled)return;pn(oo,"display","none"),this.options.removeCloneOnHide&&oo.parentNode&&oo.parentNode.removeChild(oo),mu=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(mu){if(Ia("showClone",this),Bn.eventCanceled)return;Ft.parentNode==Zr&&!this.options.group.revertClone?Zr.insertBefore(oo,Ft):uc?Zr.insertBefore(oo,uc):Zr.appendChild(oo),this.options.group.revertClone&&this.animate(Ft,oo),pn(oo,"display",""),mu=!1}}};function fQe(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Th(t,n,r,o,a,l,i,u){var s,c=t[il],d=c.options.onMove,f;return window.CustomEvent&&!Ls&&!nm?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||wo(n),s.willInsertAfter=u,s.originalEvent=i,t.dispatchEvent(s),d&&(f=d.call(c,s,i)),f}function O4(t){t.draggable=!1}function pQe(){FC=!1}function vQe(t,n,r){var o=wo(Ff(r.el,0,r.options,!0)),a=_P(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 mQe(t,n,r){var o=wo(q3(r.el,r.options.draggable)),a=_P(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 hQe(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&&gg<c*a){if(!jv&&(Wv===1?s>d+c*l/2:s<f-c*l/2)&&(jv=!0),jv)p=!0;else if(Wv===1?s<d+gg:s>f-gg)return-Wv}else if(s>d+c*(1-a)/2&&s<f-c*(1-a)/2)return gQe(n)}return p=p||i,p&&(s<d+c*l/2||s>f-c*l/2)?s>d+c/2?1:-1:0}function gQe(t){return El(Ft)<El(t)?1:-1}function bQe(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 yQe(t){s2.length=0;for(var n=t.getElementsByTagName("input"),r=n.length;r--;){var o=n[r];o.checked&&s2.push(o)}}function bg(t){return setTimeout(t,0)}function zC(t){return clearTimeout(t)}C1&&wr(document,"touchmove",function(t){(Bn.active||jd)&&t.cancelable&&t.preventDefault()});Bn.utils={on:wr,off:br,css:pn,find:yP,is:function(t,n){return!!Ei(t,n,t,!1)},extend:tQe,throttle:CP,closest:Ei,toggleClass:rl,clone:xP,index:El,nextTick:bg,cancelNextTick:zC,detectDirection:kP,getChild:Ff};Bn.get=function(t){return t[il]};Bn.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&&(Bn.utils=Fi(Fi({},Bn.utils),o.utils)),rm.mount(o)})};Bn.create=function(t,n){return new Bn(t,n)};Bn.version=JJe;var Co=[],rv,LC,HC=!1,A4,M4,u2,ov;function _Qe(){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?wr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?wr(document,"pointermove",this._handleFallbackAutoScroll):r.touches?wr(document,"touchmove",this._handleFallbackAutoScroll):wr(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)),RN(),yg(),nQe()},nulling:function(){u2=LC=rv=HC=ov=A4=M4=null,Co.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(u2=n,r||this.options.forceAutoScrollFallback||nm||Ls||zv){R4(n,this.options,i,r);var u=_u(i,!0);HC&&(!ov||a!==A4||l!==M4)&&(ov&&RN(),ov=setInterval(function(){var s=_u(document.elementFromPoint(a,l),!0);s!==u&&(u=s,yg()),R4(n,o.options,s,r)},10),A4=a,M4=l)}else{if(!this.options.bubbleScroll||_u(i,!0)===$i()){yg();return}R4(n,this.options,_u(i,!1),!1)}}},Ns(t,{pluginName:"scroll",initializeByDefault:!0})}function yg(){Co.forEach(function(t){clearInterval(t.pid)}),Co=[]}function RN(){clearInterval(ov)}var R4=CP(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;LC!==r&&(LC=r,yg(),rv=n.scroll,d=n.scrollFn,rv===!0&&(rv=_u(r,!0)));var f=0,p=rv;do{var m=p,v=wo(m),g=v.top,y=v.bottom,C=v.left,x=v.right,b=v.width,w=v.height,E=void 0,S=void 0,B=m.scrollWidth,k=m.scrollHeight,V=pn(m),N=m.scrollLeft,T=m.scrollTop;m===s?(E=b<B&&(V.overflowX==="auto"||V.overflowX==="scroll"||V.overflowX==="visible"),S=w<k&&(V.overflowY==="auto"||V.overflowY==="scroll"||V.overflowY==="visible")):(E=b<B&&(V.overflowX==="auto"||V.overflowX==="scroll"),S=w<k&&(V.overflowY==="auto"||V.overflowY==="scroll"));var O=E&&(Math.abs(x-a)<=i&&N+b<B)-(Math.abs(C-a)<=i&&!!N),I=S&&(Math.abs(y-l)<=i&&T+w<k)-(Math.abs(g-l)<=i&&!!T);if(!Co[f])for(var z=0;z<=f;z++)Co[z]||(Co[z]={});(Co[f].vx!=O||Co[f].vy!=I||Co[f].el!==m)&&(Co[f].el=m,Co[f].vx=O,Co[f].vy=I,clearInterval(Co[f].pid),(O!=0||I!=0)&&(c=!0,Co[f].pid=setInterval((function(){o&&this.layer===0&&Bn.active._onTouchMove(u2);var F=Co[this.layer].vy?Co[this.layer].vy*u:0,L=Co[this.layer].vx?Co[this.layer].vx*u:0;typeof d=="function"&&d.call(Bn.dragged.parentNode[il],L,F,t,u2,Co[this.layer].el)!=="continue"||wP(Co[this.layer].el,L,F)}).bind({layer:f}),24))),f++}while(n.bubbleScroll&&p!==s&&(p=_u(p,!1)));HC=c}},30),TP=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 U3(){}U3.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=Ff(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:TP};Ns(U3,{pluginName:"revertOnSpill"});function K3(){}K3.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:TP};Ns(K3,{pluginName:"removeOnSpill"});Bn.mount(new _Qe);Bn.mount(K3,U3);function CQe(t){return t==null?t:JSON.parse(JSON.stringify(t))}function wQe(t){e.getCurrentInstance()&&e.onUnmounted(t)}function xQe(t){e.getCurrentInstance()?e.onMounted(t):e.nextTick(t)}const IN=Symbol("cloneElement");function EQe(...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=CQe,customUpdate:d}=(r=e.unref(i))!=null?r:{};function f(S){var B;S.item[IN]=c(e.unref((B=e.unref(l))==null?void 0:B[S.oldIndex]))}function p(S){const B=S.item[IN];HJe(B)||(B4(S.item),LJe(e.unref(l),S.newDraggableIndex,B))}function m(S){const{from:B,item:k,oldIndex:V,oldDraggableIndex:N,pullMode:T,clone:O}=S;if(T==="clone"){BN(B,k,V),B4(O);return}zJe(e.unref(l),N)}function v(S){if(d){d(S);return}const{from:B,item:k,oldIndex:V,newIndex:N}=S;if(B4(k),BN(B,k,V),e.isRef(l)){const T=[...e.unref(l)];l.value=SN(T,V,N);return}SN(e.unref(l),V,N)}const g={onUpdate:v,onStart:f,onAdd:p,onRemove:m};function y(S){const B=e.unref(a);return S||(S=WJe(B)?jJe(B,o==null?void 0:o.$el):B),S&&!KJe(S)&&(S=S.$el),S||IJe("Root element not found"),S}function C(){var S;const B=(S=e.unref(i))!=null?S:{},k=vP(B,["immediate","clone"]);return UJe(l===null?{}:g,k)}const x=S=>{S=y(S),u&&b.destroy(),u=new Bn(S,C())};e.watch(()=>i,()=>{u&&GJe(C(),(S,B)=>{u==null||u.option(S,B)})},{deep:!0});const b={option:(S,B)=>u==null?void 0:u.option(S,B),destroy:()=>{u==null||u.destroy(),u=null},save:()=>u==null?void 0:u.save(),toArray:()=>u==null?void 0:u.toArray(),closest:(...S)=>u==null?void 0:u.closest(...S)},w=()=>b==null?void 0:b.option("disabled",!0),E=()=>b==null?void 0:b.option("disabled",!1);return xQe(()=>{s&&x()}),wQe(b.destroy),ef({start:x,pause:w,resume:E},b)}const WC=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],kQe=["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",...WC.map(t=>`on${t.replace(/^\S/,n=>n.toUpperCase())}`)],Fu=e.defineComponent({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:kQe,emits:["update:modelValue",...WC],setup(t,{slots:n,emit:r,expose:o,attrs:a}){const l=WC.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=vP(d,["modelValue"]),p=Object.entries(f).reduce((m,[v,g])=>{const y=e.unref(g);return y!==void 0&&(m[v]=y),m},{});return ef(ef({},l),FJe(ef(ef({},a),p)))}),u=e.computed({get:()=>t.modelValue,set:d=>r("update:modelValue",d)}),s=e.ref(),c=e.reactive(EQe(t.target||s,u,i));return o(c),()=>{if(n.default)return e.h(t.tag||"div",{ref:s},n.default(c))}}}),SQe=t=>(e.pushScopeId("data-v-6c8c63c7"),t=t(),e.popScopeId(),t),BQe=SQe(()=>e.createElementVNode("div",{class:"h-4"},null,-1)),NQe=e.defineComponent({name:"formDrag"}),TQe=e.defineComponent({...NQe,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{...Ue.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(Fu),{class:"bc-form bc-form-drag",ref_key:"dragRef",ref:l,handle:".el-form-item__label",ghostClass:"ghost",modelValue:u.value,"onUpdate:modelValue":d[0]||(d[0]=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,value:c.formData},e.unref(Ue).omit(m.data.elData,"rules")),null,16,["el-component","field-component","value"])):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(Ue).omit(m.data.elData,"rules")),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),_:2},1040))),128))]),_:3},8,["modelValue"]),BQe]),_:3},16,["model"])}}}),DQe=Or(TQe,[["__scopeId","data-v-6c8c63c7"]]),VQe=t=>(e.pushScopeId("data-v-3a9a55d0"),t=t(),e.popScopeId(),t),$Qe={class:"sort-form-wraper"},OQe={class:"sort-form-wraper__content"},AQe={class:"content__wrap"},MQe=VQe(()=>e.createElementVNode("div",{class:"head"},[e.createElementVNode("span",{class:"drag"},"拖动"),e.createElementVNode("span",{class:"name"},"列名称"),e.createElementVNode("span",null,"显示状态"),e.createElementVNode("span",null,"排序值")],-1)),RQe={class:"sort-target drag li"},IQe={class:"li name"},PQe={class:"li"},FQe={class:"li"},zQe={class:"footer"},LQe={class:"footer-confirm"},HQe=e.defineComponent({name:"sortColumn"}),WQe=e.defineComponent({...HQe,props:{uniqueId:{},mid:{},id:{},close:{type:Function},refreshData:{type:Function}},setup(t){const{proxy:n}=e.getCurrentInstance(),r=t,o=e.ref([]);let a="",l=[];i();function i(){return zl({mid:r.mid,id:r.uniqueId}).then(f=>{const{tableConfig:p}=f.table.tables.find(m=>m.id===r.id);a=f.table.project_code,o.value=p.filter(m=>!m.data.type)})}function u(){e.nextTick(()=>{o.value.forEach((f,p)=>{f.data.sortItem=p+1}),l=o.value})}function s(){vn({url:`/${a}-web/pri/v2/field_user/clear_user_field`,method:"post",data:{config_unique_id:r.uniqueId,menu_id:r.mid,table_id:r.id}}).then(()=>{n.$message.success("重置设置成功"),r.close(),r==null||r.refreshData()})}async function c(){zl({mid:r.mid,id:r.uniqueId}).then(f=>{const p=f.table.tables.find(v=>v.id===r.id),m=p.tableConfig.filter(v=>v.data.type);p.tableConfig=JSON.parse(JSON.stringify([...m,...o.value])),l=JSON.parse(JSON.stringify([...m,...o.value])),Zf({mid:r.mid,id:r.uniqueId},f).then(()=>{d().then(()=>{r.close(p),n.$message.success("保存成功")})})})}function d(){const f=JSON.stringify(l.filter(p=>!p.data.type).map(p=>({fieldName:p.data.title,showName:p.data.title,fieldProp:p.data.field,fieldShow:p.data.isShow?1:0,sort:p.data.sortItem})).sort((p,m)=>p.sort-m.sort));return vn({url:`/${a}-web/pri/v2/field_user/batch_save_user_field`,method:"post",data:{config_unique_id:r.uniqueId,menu_id:r.mid,table_id:r.id,json_data:f}})}return(f,p)=>{const m=e.resolveComponent("el-icon"),v=e.resolveComponent("hs-input"),g=e.resolveComponent("hs-switch"),y=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",$Qe,[e.createElementVNode("div",OQe,[e.createElementVNode("div",AQe,[MQe,e.createVNode(e.unref(Fu),{modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=C=>o.value=C),ghostClass:"ghost",handle:".sort-target",animation:"150",class:"drag-component",style:{height:"calc(100% - 34px)"},onUpdate:u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(C,x)=>(e.openBlock(),e.createElementBlock("div",{key:C.id,class:"sort-target__wraper"},[e.createElementVNode("span",RQe,[e.createVNode(m,{class:"rotate-90",size:"14"},{default:e.withCtx(()=>[e.createVNode(e.unref(e0))]),_:1})]),e.createElementVNode("span",IQe,[e.createVNode(v,{modelValue:C.data.title,"onUpdate:modelValue":b=>C.data.title=b},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",PQe,[e.createVNode(g,{modelValue:C.data.isShow,"onUpdate:modelValue":b=>C.data.isShow=b},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",FQe,e.toDisplayString(x+1),1)]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",zQe,[e.createVNode(y,{type:"primary",size:"small",onClick:s},{default:e.withCtx(()=>[e.createTextVNode("重置设置")]),_:1}),e.createElementVNode("div",LQe,[e.createVNode(y,{size:"small",onClick:p[1]||(p[1]=C=>f.close("cancel"))},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(y,{type:"primary",size:"small",onClick:c},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])])])}}}),jQe=Or(WQe,[["__scopeId","data-v-3a9a55d0"]]);function qQe(t,n,r,o){return new Promise(a=>{v1(jQe,{id:n,uniqueId:t,mid:r,refreshData:o},{id:n,title:"表格配置",showFooter:!1,success:({type:l})=>{a(l)}})})}const Dr=e.reactive({rowIndex:0,columnIndex:0});function UQe(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 g1(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 KQe(t,n,r){const o=e.inject("bcBoxApi",{});function a(s){Dr.rowIndex=s.rowIndex,Dr.columnIndex=s.columnIndex,r("cell-click",s)}function l(s){s.columnIndex===0?qQe(t.uniqueId,t.id,t.mid,o.refreshData).then(c=>{if(!c)return;const d=c.tableConfig.map(f=>Fc(f.data)).filter(f=>f.isShow);e.nextTick(async()=>{var f,p;await((f=e.toValue(n))==null?void 0:f.reloadColumn(d)),await((p=e.toValue(n))==null?void 0:p.refreshColumn())})}):r("header-cell-click",s)}function i(s,c){s.fnName&&typeof s.fnName=="function"&&s.fnName(c)}function u(s){r("page-change",s)}return{handleCellClick:a,headerCellClick:l,headerBtnClick:i,pageChange:u}}function GQe(){const t=e.ref(),n=e.ref(),r=e.ref(),{height:o}=xu(t),{height:a}=xu(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"}),XQe=e.defineComponent({...YQe,props:{id:{},uniqueId:{},mid:{},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}=GQe(),{handleCellClick:s,headerCellClick:c,headerBtnClick:d,pageChange:f}=KQe(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,x=>(e.openBlock(),e.createBlock(g,e.mergeProps({key:x.id},x.data),e.createSlots({_:2},[e.renderList(p.$slots,(b,w)=>({name:w,fn:e.withCtx(E=>[e.renderSlot(p.$slots,w,e.normalizeProps(e.guardReactiveProps(E||{})),void 0,!0)])})),x.data.isSlot?{name:"default",fn:e.withCtx(b=>[x.data.el?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(iP)(x.data.el)),{key:0,modelValue:b.row[b.column.field],"onUpdate:modelValue":w=>b.row[b.column.field]=w},null,8,["modelValue","onUpdate:modelValue"])):e.renderSlot(p.$slots,x.data.field,e.normalizeProps(e.mergeProps({key:1},b||{})),void 0,!0)]),key:"0"}:x.btnData&&x.btnData.length?{name:"default",fn:e.withCtx(b=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.btnData,w=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:w.id},[w.data.isShow?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[w.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:w.data,onClick:E=>e.unref(d)(w.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,(x,b)=>({name:b,fn:e.withCtx(w=>[e.renderSlot(p.$slots,"pager_"+b,e.normalizeProps(e.guardReactiveProps(w||{})),void 0,!0)])}))]),1040,["onPageChange"])):e.createCommentVNode("",!0)],512)],512)}}}),ZQe=Or(XQe,[["__scopeId","data-v-77b4b9a3"]]),JQe={key:0,class:"item-wrap"},QQe=["onClick"],eet=e.defineComponent({name:"formTabs"}),tet=e.defineComponent({...eet,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}=xu(r),{height:l}=xu(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",JQe,[(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,QQe))),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))}}),net=Or(tet,[["__scopeId","data-v-fa1d5d61"]]);function ret(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 oet=["onClick"],aet=e.defineComponent({name:"contextBody"}),iet=e.defineComponent({...aet,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}=ret(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,oet))),128))],4)):e.createCommentVNode("",!0)]),_:1})]))],512))}}),PN=Or(iet,[["__scopeId","data-v-aba5fec1"]]);function set(){const t=e.ref(!1),n=e.ref(),r=e.ref(),o=e.ref(),a=e.ref({}),{height:l}=xu(n),{height:i}=xu(r,{height:0,width:0}),{height:u}=xu(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 e.provide("formSearchApi",{onHeightChange:d}),{wrapRef:n,btnRef:r,formRef:o,tableApi:a,style:s,isOverHide:t,onReady:c}}function uet(t,n,r,o){let a={};y1(()=>{var f;return(f=o.data)==null?void 0:f.config_unique_id},()=>{var f,p;a=Ue.cloneDeep(((p=(f=o.data)==null?void 0:f.form)==null?void 0:p.formData)||{})}),e.computed(()=>n.value[r.value]);const l={add:u,reset:s,search:c,export:d},i=e.computed(()=>{var f;return((f=o.data)==null?void 0:f.btns.map(p=>(o.isConfig||(p.data.fnName=l[p.data.key]||""),p)))||[]});function u(){}function s(){var f,p,m;Ue.isEmpty((p=(f=o.data)==null?void 0:f.form)==null?void 0:p.formData)||((m=t.value.getComponents())==null||m.forEach(v=>{var g;typeof((g=e.toValue(v))==null?void 0:g.clearData)=="function"&&e.toValue(v).clearData()}),Ue.isEmpty(a)?Object.keys(o.data.form.formData).forEach(v=>{aP.test(v)||(o.data.form.formData[v]="")}):o.data.form.formData=Ue.cloneDeep(a)),c()}async function c(){const f=o.data.tables.find(p=>p.id===r.value);f.baseData.table_page_data.currentPage=1,f.tableData=await g1(f.baseData,o.data.form.formData)}function d(){}return{btns:i}}const cet=t=>(e.pushScopeId("data-v-00637085"),t=t(),e.popScopeId(),t),det={class:"sort-form-wraper"},fet={class:"sort-form-wraper__content"},pet={class:"content__wrap"},vet=cet(()=>e.createElementVNode("div",{class:"head"},[e.createElementVNode("span",{class:"drag"},"拖动"),e.createElementVNode("span",{class:"name"},"列名称"),e.createElementVNode("span",null,"显示状态"),e.createElementVNode("span",null,"排序值")],-1)),met={class:"sort-target drag li"},het={class:"li name"},get={class:"li"},bet={class:"li"},yet={class:"footer"},_et=e.defineComponent({name:"sortColumn"}),Cet=e.defineComponent({..._et,props:{id:{},mid:{},close:{type:Function}},setup(t){const n=t,r=e.ref([]);o();async function o(){return zl({mid:n.mid,id:n.id}).then(l=>{var i;r.value=((i=l.table.form)==null?void 0:i.formConfig)||[]})}async function a(){zl({mid:n.mid,id:n.id}).then(l=>{const i=JSON.parse(JSON.stringify([...r.value]));i.forEach(u=>{if(u.data.baseData.el2){const s=u.data.baseData.el;u.data.baseData.el=u.data.baseData.el2,u.data.baseData.el2=s}}),l.table.form.formConfig=i,Zf({mid:n.mid,id:n.id},l).then(()=>{n.close(l.table)})})}return(l,i)=>{const u=e.resolveComponent("el-icon"),s=e.resolveComponent("hs-input"),c=e.resolveComponent("hs-switch"),d=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",det,[e.createElementVNode("div",fet,[e.createElementVNode("div",pet,[vet,e.createVNode(e.unref(Fu),{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=f=>r.value=f),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(r.value,(f,p)=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"sort-target__wraper"},[e.createElementVNode("span",met,[e.createVNode(u,{class:"rotate-90",size:"14"},{default:e.withCtx(()=>[e.createVNode(e.unref(e0))]),_:1})]),e.createElementVNode("span",het,[e.createVNode(s,{modelValue:f.data.baseData.label,"onUpdate:modelValue":m=>f.data.baseData.label=m},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",get,[e.createVNode(c,{modelValue:f.data.baseData.isShow,"onUpdate:modelValue":m=>f.data.baseData.isShow=m},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",bet,e.toDisplayString(p+1),1)]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",yet,[e.createVNode(d,{size:"small",onClick:i[1]||(i[1]=f=>l.close("cancel"))},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(d,{type:"primary",size:"small",onClick:a},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])])}}}),wet=Or(Cet,[["__scopeId","data-v-00637085"]]);function xet(t,n){return new Promise(r=>{v1(wet,{id:t,mid:n},{title:"高级设置",showFooter:!1,success({type:o}){r(o)}})})}function Eet(t,n,r,o){const a=e.inject("bcBoxApi",{}),l=e.computed(()=>n.value[r.value]),i=e.ref(!1),u=async()=>{i.value&&await zl({id:o.data.config_unique_id,mid:o.data.mid}).then(async f=>{const p=JSON.parse(JSON.stringify(o.data.form.formConfig));p.forEach(m=>{if(m.data.baseData.el2){const v=m.data.baseData.el;m.data.baseData.el=m.data.baseData.el2,m.data.baseData.el2=v}}),f.table.form.formConfig=p,await Zf({id:o.data.config_unique_id,mid:o.data.mid},f)}),i.value=!i.value},s=()=>{xet(o.data.config_unique_id,o.data.mid).then(async f=>{const{formConfig:p}=await sP(f);o.data.form.formConfig=p})},c=async()=>{a==null||a.refreshData()},d=[{label:"高级设置",value:"222",click:s},{label:e.computed(()=>i.value?"完成排序":"排序设置"),value:"111",click:u},{label:"重置设置",value:"333",click:c}];return y1(t,()=>{setTimeout(()=>{var f;(f=Ue.get(e.toValue(t),"componentRef.0"))==null||f.focus()},1e3)}),kc("ArrowLeft",f=>{var y,C;f.preventDefault();const p=document.activeElement;if(!p.closest(".bc-form__wrapper"))return;const m=(y=e.toValue(t))==null?void 0:y.getComponents();let v=m.findIndex(x=>(x!=null&&x.activeElement&&(x=x.activeElement()),x==p)),g=v<0?m.length-1:v;g--,g<0&&(g=m.length-1),(C=Ue.get(m,g))==null||C.focus()}),kc("ArrowRight",f=>{var C,x;f.preventDefault();const p=document.activeElement;if(!p.closest(".bc-form__wrapper"))return;const m=(C=e.toValue(t))==null?void 0:C.getComponents(),v=m.length-1;let g=m.findIndex(b=>(b!=null&&b.activeElement&&(b=b.activeElement()),b==p)),y=g<0?-1:g;y++,y>v&&(y=0),(x=Ue.get(m,y))==null||x.focus()}),kc("ArrowDown",f=>{var y,C,x;if(f.preventDefault(),!document.activeElement.closest(".bc-form__wrapper"))return;Dr.rowIndex=0;const m=(y=e.toValue(l))==null?void 0:y.getData(Dr.rowIndex),{visibleColumn:v}=e.toValue(l).getTableColumn();Dr.columnIndex=v.filter(b=>b.type).length;const g=v[Dr.columnIndex].field;(C=e.toValue(l))==null||C.setCurrentRow(m),(x=e.toValue(l))==null||x.setEditRow(m,g)}),{isShowDrag:i,menuForm:d}}const ket=e.defineComponent({name:"bcFormTable"}),Bet=e.defineComponent({...ket,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===""?Ue.get(r,"data.tables.0.id",""):a.value},set(b){a.value=b}}),{wrapRef:i,btnRef:u,formRef:s,tableApi:c,style:d,isOverHide:f,onReady:p}=set(),{menuForm:m,isShowDrag:v}=Eet(s,c,l,r),{menuTable:g,onPageChange:y}=UQe(s,c,l,r),{btns:C}=uet(s,c,l,r);function x(b){o("btnClick",b)}return y1(()=>{var b;return(b=r.data)==null?void 0:b.config_unique_id},()=>{e.nextTick(()=>{o("ready",{tableApi:c,activeTabs:l,api:e.computed(()=>c.value[l.value])})})}),(b,w)=>{var S,B,k;const E=e.resolveDirective("loading");return e.withDirectives((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(C).length?(e.openBlock(),e.createBlock(e.unref(BJe),{key:0,ref_key:"btnRef",ref:u,isConfig:t.isConfig,btns:e.unref(C),onBtnClick:x},e.createSlots({_:2},[e.renderList(b.$slots,(V,N)=>({name:N,fn:e.withCtx(T=>[e.renderSlot(b.$slots,N,e.normalizeProps(e.guardReactiveProps(T||{})),void 0,!0)])}))]),1032,["isConfig","btns"])):e.createCommentVNode("",!0),!t.hideSearch&&!e.unref(Ue).isEmpty((S=t.data)==null?void 0:S.form)?(e.openBlock(),e.createBlock(e.unref(PN),{key:1,menu:e.unref(m)},{default:e.withCtx(()=>[e.unref(v)?(e.openBlock(),e.createBlock(e.unref(DQe),e.mergeProps({key:1,ref_key:"formRef",ref:s,formConfig:t.data.form.formConfig,"onUpdate:formConfig":w[0]||(w[0]=V=>t.data.form.formConfig=V)},e.unref(Ue).omit(t.data.form,"formConfig")),e.createSlots({_:2},[e.renderList(b.$slots,(V,N)=>({name:N,fn:e.withCtx(T=>[e.renderSlot(b.$slots,N,e.normalizeProps(e.guardReactiveProps(T||{})),void 0,!0)])}))]),1040,["formConfig"])):(e.openBlock(),e.createBlock(e.unref(AJe),e.mergeProps({key:0,ref_key:"formRef",ref:s},t.data.form),e.createSlots({_:2},[e.renderList(b.$slots,(V,N)=>({name:N,fn:e.withCtx(T=>[e.renderSlot(b.$slots,N,e.normalizeProps(e.guardReactiveProps(T||{})),void 0,!0)])}))]),1040))]),_:3},8,["menu"])):e.createCommentVNode("",!0),e.unref(Ue).isEmpty((B=t.data)==null?void 0:B.tables)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(PN),{key:2,target:".vxe-table--body-wrapper",menu:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(e.unref(net),{style:e.normalizeStyle(e.unref(d)),active:l.value,"onUpdate:active":w[1]||(w[1]=V=>l.value=V),tabs:t.data.tables},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data.tables,V=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(ZQe),e.mergeProps(V,{key:V.id,"unique-id":t.data.config_unique_id,mid:t.data.mid,class:"h-full",onReady:N=>e.unref(p)(N,V.id),onPageChange:e.unref(y)}),e.createSlots({_:2},[e.renderList(b.$slots,(N,T)=>({name:T,fn:e.withCtx(O=>[e.renderSlot(b.$slots,T,e.normalizeProps(e.guardReactiveProps(O||{})),void 0,!0)])}))]),1040,["unique-id","mid","onReady","onPageChange"])),[[e.vShow,l.value===V.id]])),128))]),_:3},8,["style","active","tabs"])]),_:3},8,["menu"])),e.unref(Ue).isEmpty((k=t.data)==null?void 0:k.tables)?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(e.unref(d))},[e.renderSlot(b.$slots,"customeContent",e.normalizeProps(e.guardReactiveProps(t.data||{})),void 0,!0)],4)):e.createCommentVNode("",!0)],2)),[[E,e.unref(m1)]])}}}),Net=Or(Bet,[["__scopeId","data-v-091fa117"]]),Tet=e.defineComponent({name:"BcSelect"}),Det=e.defineComponent({...Tet,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 vn({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)}}}),Vet=t=>(e.pushScopeId("data-v-db063ea8"),t=t(),e.popScopeId(),t),$et={class:"text-[#606266] truncate"},Oet={key:0},Aet=Vet(()=>e.createElementVNode("div",null,null,-1)),Met=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"),x=e.resolveComponent("hs-form");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(x,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,w)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[b.show!==!1?(e.openBlock(),e.createBlock(y,{key:w,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",$et,[e.createTextVNode("  "+e.toDisplayString(b.label)+"  ",1),t.parentConfig.showColon?(e.openBlock(),e.createElementBlock("span",Oet,":   ")):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,S)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.cel),{key:S,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)),Aet]),_:3})]),_:3},16,["label-width","inline","rules","model","style"])])}}}),Ret=Or(Met,[["__scopeId","data-v-db063ea8"]]),Iet=e.defineComponent({name:"bcTreeSelect"}),Pet=e.defineComponent({...Iet,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 vn({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"])}}}),Fet=[{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"}}]}],FN=[{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"}],w1={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 zet={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:""},Let=[{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 DP=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"}]),qv={"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"},Het={label:[{required:!0,message:"请输入参数名称"}],prop:[{required:!0,message:"请输入查询参数"}],el:[{required:!0,message:"请选择组件类型"}]};let VP=e.ref({id:"",sort:0,data:{baseData:{label:"参数名称",prop:"",el:"hs-input",isSlot:!1,isApply:!0,isShow:!0},elData:w1}}),Wet={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:DP.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:Het},elConfig:{title:{subTitle:"元素项属性"},visible:!0,list:[]}},c2=e.ref({id:"",data:{baseData:{},elData:{}}}),tl=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 $P={currentPage:{baseData:{isApply:!0,isShow:!1},elData:{attrs:{defaultValue:1}}},pageSize:{baseData:{isApply:!0,isShow:!1},elData:{attrs:{defaultValue:10}}}},jet=(t,n)=>Object.assign(t,{title:n}),qet=(t={})=>{let n=t.proxy?"/"+t.proxy:"";return delete t.proxy,t=jet(t,"后台api获取接口"),vn({url:n?n+"/v2/api-docs":"/scmp-web/v2/api-docs",method:"get",params:t})};function OP(){return{getApiDocs:qet}}const Uet=(t,n)=>Object.assign(t,{title:n}),Ket=(t={})=>(t=Uet(t,"获取所有系统信息列表"),vn({url:"/scmp-web/pri/system/get_all_system_info",method:"get",params:t}));function AP(){return{getAllSystemInfo:Ket}}const Ba=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),Get=(t={})=>(t=Ba(t,"保存新表格字段设置"),vn({url:"/scmp-web/pri/field_config/add_field",method:"post",data:t})),Yet=(t={})=>(t=Ba(t,"根据菜单id查询字段信息"),vn({url:"/scmp-web/pri/field_config/get_field_by_menu",method:"get",params:t})),Xet=(t={})=>(t=Ba(t,"查询新表格字段配置列表"),vn({url:"/scmp-web/pri/field_config/get_field_list_page",method:"get",params:t})),Zet=(t={})=>(t=Ba(t,"删除新表格字段配置"),vn({url:"/scmp-web/pri/field_config/del_field_by_id",method:"post",data:t})),Jet=(t={})=>(t=Ba(t,"保存新表格字段设置"),vn({url:"/scmp-web/pri/field_config/save_field_4_table",method:"post",data:t})),Qet=(t={})=>(t=Ba(t,"保存新表单字段设置"),vn({url:"/scmp-web/pri/field_config/save_field_4_form",method:"post",data:t})),ett=(t={})=>(t=Ba(t,"根据菜单id查询字段信息"),vn({url:"/scmp-web/pri/field_config/get_table_by_menu",method:"get",params:t})),ttt=(t={})=>(t=Ba(t,"根据菜单id查询字段信息"),vn({url:"/scmp-web/pri/field_config/get_form_by_menu",method:"get",params:t})),ntt=(t={})=>(t=Ba(t,"查询字段池匹配字段"),vn({url:"/scmp-web/pri/field_config/get_field_pool_list",method:"get",params:t})),rtt=(t={})=>(t=Ba(t,"根据表名和系统名称查询字段配置"),vn({url:"/scmp-web/pri/field_config/get_field_by_table",method:"get",params:t})),ott=(t={})=>(t=Ba(t,"保存表格字段池在配置页面使用"),vn({url:"/scmp-web/pri/field_config/save_field_pool_4_config",method:"post",data:t})),att=(t={})=>(t=Ba(t,"根据字段代码集合获取字段池信息"),vn({url:"/scmp-web/pri/field_config/get_pool_by_field_map",method:"post",data:t})),ltt=(t={})=>(t=Ba(t,"批量保存表格字段池在配置页面使用"),vn({url:"/scmp-web/pri/field_config/save_field_pool_batch_4_config",method:"post",data:t})),itt=(t={})=>(t=Ba(t,"删除字段池"),vn({url:"/scmp-web/pri/field_config/del_field_pool_by_id",method:"post",data:t})),stt=(t={})=>(t=Ba(t,"保存表格字段池"),vn({url:"/scmp-web/pri/field_config/save_field_pool",method:"post",data:t}));function op(){return{postAddField:Get,getFieldByMenu:Yet,getFieldListPage:Xet,postDelFieldById:Zet,postSaveField4Table:Jet,postSaveField4Form:Qet,getTableByMenu:ett,getFormByMenu:ttt,getFieldPoolList:ntt,getFieldByTable:rtt,postSaveFieldPool4Config:ott,getPoolByFieldMap:att,postSaveFieldPoolBatch4Config:ltt,postDelFieldPoolById:itt,postSaveFieldPool:stt}}const ap=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),utt=(t={})=>(t=ap(t,"获取按钮配置信息列表"),vn({url:"/scmp-web/pri/btn_config/get_btn_config_page_list",method:"get",params:t})),ctt=(t={})=>(t=ap(t,"保存按钮配置信息"),vn({url:"/scmp-web/pri/btn_config/save_btn_config",method:"post",data:t})),dtt=(t={})=>(t=ap(t,"保存按钮配置在配置页面使用"),vn({url:"/scmp-web/pri/btn_config/save_btn_config_4_config",method:"post",data:t})),ftt=(t={})=>(t=ap(t,"批量按钮配置在配置页面使用"),vn({url:"/scmp-web/pri/btn_config/save_btn_config_batch_4_config",method:"post",data:t})),ptt=(t={})=>(t=ap(t,"删除"),vn({url:"/scmp-web/pri/btn_config/delete_btn_config",method:"post",data:t})),vtt=(t={})=>(t=ap(t,"根据字段代码集合获取字段池信息"),vn({url:"/scmp-web/pri/btn_config/get_btn_config_by_key_map",method:"post",data:t}));function x1(){return{getBtnConfigPageList:utt,postSaveBtnConfig:ctt,postSaveBtnConfig4Config:dtt,postSaveBtnConfigBatch4Config:ftt,postDeleteBtnConfig:ptt,getBtnConfigByKeyMap:vtt}}const E1=(t,n)=>Object.assign(t,{other_log_info:{title:n}}),mtt=(t={data:{},proxy:""})=>t.proxy?(t.data=E1(t.data,"上传"),vn({url:t.proxy+"/pri/file/singlefile",method:"post",data:t.data,headers:{"Content-Type":"multipart/form-data"}})):(An.warning("请传入代理地址"),Promise.reject("请传入代理地址")),htt=(t={data:{},proxy:""})=>t.proxy?(t.data=E1(t.data,"删除"),vn({url:t.proxy+"/pri/file/deleteFile",method:"post",data:t.data})):(An.warning("请传入代理地址"),Promise.reject("请传入代理地址")),gtt=(t={data:{},proxy:""})=>t.proxy?(t.data=E1(t.data,"无附件删除"),vn({url:t.proxy+"/pri/file/del_file_no_attch",method:"post",data:t.data})):(An.warning("请传入代理地址"),Promise.reject("请传入代理地址")),btt=(t={data:{},proxy:""})=>t.proxy?(t.data=E1(t.data,"保存-用户头像保存使用"),vn({url:t.proxy+"/pri/file/update_file",method:"post",data:t.data})):(An.warning("请传入代理地址"),Promise.reject("请传入代理地址"));function MP(){return{postSinglefile:mtt,postDeleteFile:htt,postDelFileNoAttch:gtt,postUpdateFile:btt}}const ytt=OP(),_tt=op();function Ctt(t,n){const r=e.ref(!0);e.watch(()=>n.value,()=>{t.value="",r.value=!0});const o=()=>{let i=Ue.cloneDeep(zet);n.value=Ue.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 An.warning("接口参数为空");_tt.getPoolByFieldMap({fieldCodes:d,field_type:"2",project_code:u&&u.project_code}).then(f=>{i.forEach(p=>{var v,g,y,C;let m=(g=(v=n.value)==null?void 0:v.form)==null?void 0:g.formConfig.map(x=>x.data.baseData.prop);if(!Ue.includes(m,p[s])&&!$P[p[s]]){let x=Ue.cloneDeep(VP.value);if(x.id=p[s]+new Date().getTime().toString(),x.data.baseData.label=p[c]||"参数名称",x.data.baseData.prop=p[s],x.data.baseData.el="hs-input",x.data.elData=Ue.cloneDeep(w1),console.log("res.data[param[key]]",f.data[p[s]]),f.code==1&&f.data&&f.data[p[s]]){let b=JSON.parse(f.data[p[s]].json_data);x.data=Ue.assign(x.data,b,{field_id:f.data[p[s]].id})}(C=(y=n.value)==null?void 0:y.form)==null||C.formConfig.push(x)}})})};return{parseForm:async()=>{var i,u;if(t.value){let s=Oo.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 ytt.getApiDocs({proxy:s.project_url}),d=(Ue.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 An.warning("请检查url是否正确")}else o()},parseUrl:r}}const wtt={class:"flex flex-row"},xtt=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}=Ctt(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",wtt,[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 Ett(t,n,r){const o=i=>{var s;let u=i.id==((s=n.current)==null?void 0:s.id)?Ue.cloneDeep(c2.value):i;t("chose",u)};return{choseTagItem:o,appendField:()=>{var s,c,d,f,p;let i=Ue.cloneDeep(VP.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])||Ue.cloneDeep(c2.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],Ue.remove(((d=(c=r.value)==null?void 0:c.form)==null?void 0:d.formConfig)||[],i),o(i),An.success("删除成功")}).catch(u=>{console.log("err",u)})}}}const ktt=["onClick"],Stt=["onClick"],Btt={class:"p-2"},Ntt=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}=Ett(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(Fu),{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,Stt)):e.createCommentVNode("",!0)],8,ktt))),128)),e.createElementVNode("div",Btt,[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"])]))}}),Ttt=Or(Ntt,[["__scopeId","data-v-2a9416b3"]]);function Dtt(t){return{toggleExpand:()=>{t.value=!t.value}}}const Vtt={key:0},fo=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}=Dtt(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",Vtt,[e.renderSlot(o.$slots,"default")])):e.createCommentVNode("",!0)],2)}}}),$tt=op();function Ott(t,n){let r=e.ref(t.current),o=e.ref(Ue.cloneDeep(t.current)),a=e.ref(t.data),l=e.ref(Ue.cloneDeep(Wet)),i=e.ref("hs-config-input"),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"});const s=e.ref({labelWidth:120,span:24,minWidth:350,style:"padding:5px 10px"}),c=e.ref(!1);return e.watch(()=>t.current,m=>{if(m&&m.id!=o.value.id&&(l.value.elConfig.visible=!1,r.value=m,o.value=Ue.cloneDeep(m),a.value=t.data),m&&m.id){l.value.elConfig.visible=!1;let v=o.value.data.baseData.el;i.value=qv[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}),e.onMounted(()=>{let m=Oo.get("CURRENT_SYSTEM"),v=u.value.params;v.project_code=m.project_code||"",u.value=Ue.assign(u.value,{params:v})}),{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=qv[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)||"",x=o.value.data.baseData.prop,b=((g=(v=o.value.data.elData)==null?void 0:v.attrs)==null?void 0:g.defaultValue)||"";if(Ue.has(a.value,x)&&x!=C)return An.warning("查询参数重复,请修改");if(Ue.has(a.value,C)&&C!=x&&a.value&&delete a.value[C],a.value=Object.assign(a.value||{},{[x]:b}),r.value=Object.assign(r.value||{},Ue.cloneDeep(o.value)),o.value.data.field_id)return;let w=Oo.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:w.project_code};$tt.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=Ue.assign(o.value.data,JSON.parse(m.json_data),{field_id:m.id});let v=o.value.data.baseData.el;i.value=qv[v]}}}const Att={class:"bg-blue-200 h-full flex flex-col"},Mtt={style:{height:"calc(100% -50px)"},class:"overflow-y-auto flex-1"},Rtt={key:0},Itt={class:"text-center grow-0"},Ptt=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}=Ott(n,r);return(p,m)=>{var y,C,x,b,w;const v=e.resolveComponent("bc-auto-complete"),g=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Att,[e.createElementVNode("div",Mtt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{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",Rtt,e.toDisplayString(e.unref(l)),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{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((x=e.unref(l))==null?void 0:x.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(fo),{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:(w=e.unref(l))==null?void 0:w.data.elData,ref:"elRef",isVModel:""},null,8,["data"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Itt,[e.createVNode(g,{onClick:e.unref(d),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),Ftt={class:"mx-auto flex flex-row h-full"},ztt={class:"flex-1 grow overflow-y-auto"},Ltt={key:0},Htt={key:2},Wtt={key:0,class:"flex-none basis-1/4 ml-4"},jtt=e.defineComponent({name:"formPanel"}),qtt=e.defineComponent({...jtt,props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue");let r=e.ref(Ue.cloneDeep(Let)),o=Ue.cloneDeep(c2);e.watch(()=>{var l;return(l=n.value)==null?void 0:l.config_unique_id},l=>{o.value=Ue.cloneDeep(c2)},{immediate:!0,deep:!0});const a=l=>{o.value=l};return(l,i)=>{var u,s,c,d,f;return e.openBlock(),e.createElementBlock("div",Ftt,[e.createElementVNode("div",ztt,[e.createVNode(fo,{modelValue:e.unref(tl).code.visible,"onUpdate:modelValue":i[0]||(i[0]=p=>e.unref(tl).code.visible=p),expandConfig:e.unref(tl).code},null,8,["modelValue","expandConfig"]),e.unref(tl).code.visible?(e.openBlock(),e.createElementBlock("div",Ltt,e.toDisplayString(n.value),1)):e.createCommentVNode("",!0),e.createVNode(xtt,{modelValue:n.value,"onUpdate:modelValue":i[1]||(i[1]=p=>n.value=p)},null,8,["modelValue"]),(u=n.value)!=null&&u.form?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:e.unref(tl).form.visible,"onUpdate:modelValue":i[2]||(i[2]=p=>e.unref(tl).form.visible=p),expandConfig:e.unref(tl).form},null,8,["modelValue","expandConfig"])),e.unref(tl).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(fo),{modelValue:e.unref(tl).formItem.visible,"onUpdate:modelValue":i[3]||(i[3]=p=>e.unref(tl).formItem.visible=p),expandConfig:e.unref(tl).formItem},null,8,["modelValue","expandConfig"])),e.unref(tl).formItem.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ttt),{key:1,modelValue:n.value,"onUpdate:modelValue":i[4]||(i[4]=p=>n.value=p),current:e.unref(o),onChose:a},null,40,["modelValue","current"])):e.createCommentVNode("",!0),e.unref(tl).formItem.visible?(e.openBlock(),e.createElementBlock("div",Htt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),(((c=(s=n.value)==null?void 0:s.form)==null?void 0:c.formConfig)||[]).length>0&&e.unref(o).id?(e.openBlock(),e.createElementBlock("div",Wtt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ptt),{current:e.unref(o),data:(f=(d=n.value)==null?void 0:d.form)==null?void 0:f.formData},null,8,["current","data"]))])):e.createCommentVNode("",!0)])}}}),Utt={class:"icon-selector w100 h100"},Ktt={class:"icon-selector-warp"},Gtt={class:"icon-selector-warp-title"},Ytt=e.defineComponent({name:"iconSelector"}),RP=e.defineComponent({...Ytt,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-Dgz0QoeV.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 w=i.fontIconSearch.trim().toLowerCase();return b.filter(E=>{if(E.toLowerCase().indexOf(w)!==-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 fg.ali().then(w=>{i.fontIconList.ali=w.map(E=>`iconfont ${E}`)})}else if(b==="ele"){if(i.fontIconList.ele.length>0)return;await fg.ele().then(w=>{i.fontIconList.ele=w})}else if(b==="awe"){if(i.fontIconList.awe.length>0)return;await fg.awe().then(w=>{i.fontIconList.awe=w.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})},x=()=>{window.addEventListener("resize",()=>{C()})};return e.onMounted(()=>{m(p()),x(),C()}),e.watch(()=>r.modelValue,()=>{f(),p()}),(b,w)=>{const E=e.resolveComponent("SvgIcon"),S=e.resolveComponent("el-input"),B=e.resolveComponent("el-tab-pane"),k=e.resolveComponent("el-tabs"),V=e.resolveComponent("el-popover");return e.openBlock(),e.createElementBlock("div",Utt,[e.createVNode(S,{modelValue:i.fontIconSearch,"onUpdate:modelValue":w[0]||(w[0]=N=>i.fontIconSearch=N),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 N,T;return[(i.fontIconPrefix===""?((N=t.prepend)==null?void 0:N.indexOf("ele-"))>-1:((T=i.fontIconPrefix)==null?void 0:T.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(V,{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",Ktt,[e.createElementVNode("div",Gtt,e.toDisplayString(t.title),1),e.createVNode(k,{modelValue:i.fontIconTabActive,"onUpdate:modelValue":w[1]||(w[1]=N=>i.fontIconTabActive=N),onTabClick:v},{default:e.withCtx(()=>[e.createVNode(B,{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(B,{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(B,{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 Xtt(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=Oo.get("CURRENT_SYSTEM"),u=o.value.params;u.project_code=i.project_code||"",o.value=Ue.assign(o.value,{params:u})}),{parentConfig:r,requestData:o,onChangeItem:i=>{t.value=Ue.assign(t.value,JSON.parse(i.json_data),{field_id:i.id})},getSubmitData:async()=>await n.value.getSubmitData()}}const IP=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}=Xtt(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(RP,{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 Ztt=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},dynamicColumn:{isDynamicRequestConfig:!1,requestDynamicUrl:"",requestDynamicParams:"",dynamicMethod:"get",dynamicProxy:""},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:{}}),Jtt=[{prop:"id",label:"表格唯一标识",type:"",tooltip:"唯一标识(被某些特定的功能所依赖)",disabled:!0,el:"hs-input"},{prop:"tableName",label:"表格配置名称",type:"",el:"hs-input"},{prop:"height",label:"表格的高度",type:"",disabled:!0,tooltip:"表格的高度;支持铺满父容器或者固定高度,如果设置 auto 为铺满父容器(如果设置为 auto,则必须确保存在父节点且不允许存在相邻元素)",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:"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 Qtt=[{key:"dynamicColumn",visible:!1,title:"动态配置列",dynamicColumn:[{prop:"isDynamicRequestConfig",label:"是否请求动态配置",el:"hs-switch"},{prop:"requestDynamicUrl",label:"请求动态配置地址",el:"hs-input"},{prop:"requestDynamicParams",label:"请求动态配置参数",el:"hs-input"},{prop:"dynamicMethod",label:"请求动态配置方式",op:[{label:" POST",value:"post"},{label:"GET",value:"get"},{label:"DELETE",value:"delete"},{label:"PUT",value:"put"}],el:"hs-select",cel:"hs-option"},{prop:"dynamicProxy",label:"请求动态配置代理",el:"hs-input"}]},{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"}]}],ent=[{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"}],tnt=e.ref({type:null,field:"",title:"展示列名称",isSlot:!1,isApply:!0,isShow:!0,returnValueType:"",minWidth:"100",resizable:!1,visible:!0,slotTemplateConfig:{},sortType:"auto",filterMultiple:!0,cellType:"auto",treeNode:!1,filters:[],filterRender:{},titlePrefix:{},cellRender:{},editRender:{},contentRender:{}}),d2={seq:"序号",checkbox:"复选框",radio:"单选框",expand:"展开行",html:"HTML 标签"},nnt=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"}]},{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:DP.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"}]),PP={title:[{required:!0,message:"请输入列标题"}],field:[{required:!0,message:"请输入列字段名"}],returnValueType:[{required:!0,message:"请输入返回值类型"}]},rnt=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"}]}]),ont=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 Uv=e.ref({id:"",sort:0,data:tnt.value,btnData:[]});const ant={list:nnt.value,second_config:rnt.value,filterConfig:ont.value,rules:{list:PP}};let f2=e.ref({id:"",data:{}}),lnt=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},dynamicTableItem:{visible:!0,subTitle:"动态配置列元素配置项集合",class:"font-bold my-3",iconSize:20}}),int={baseTableConfig:Jtt,baseVisible:!1,pageVisible:!1,tableAttrConfig:Qtt,tablePageConfig:ent},Dh={id:{isShow:!1,title:"id",returnValueType:"string"}};const snt={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"},unt={name:[{required:!0,message:"请输入按钮名称"}],key:[{required:!0,message:"请输入按钮key值"}]},FP={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:unt},zP={id:"",data:snt,sort:0},jC={id:"",data:{}},cnt=op(),dnt=x1();function fnt(t,n){let r=e.ref(t.current),o=e.ref(Ue.cloneDeep(ant)),a=e.ref(Ue.cloneDeep(t.current)),l=e.ref(Ue.cloneDeep(t.configList).map(b=>b.data.field));const i=e.ref({labelWidth:120,span:24,style:"padding:5px 10px"}),u=e.ref(!1);let s=e.ref(Ue.cloneDeep(FP));const c=e.reactive({title:"插槽模板配置",visible:!1,templateName:"hs-config-input"}),d=()=>{let b=Ue.cloneDeep(PP);return Ue.keys(b).forEach(w=>{let E=b[w].map(S=>(S.required=!a.value.data.type,S));b[w]=E}),b};e.watch(()=>t.current,b=>{b&&b.id!=a.value.id&&(r.value=b,a.value=Ue.cloneDeep(b),l.value=Ue.cloneDeep(t.configList).map(w=>w.data.field),c.visible=!1,o.value.rules.list=d())},{deep:!0}),e.watch(()=>a.value.data,b=>{b&&(o.value.list=o.value.list.map(w=>(w.prop=="el"&&(w.show=!!a.value.data.isSlot,w.show||(a.value.data.el="")),w)),console.log("value",b),b.isSlot&&b.el&&(c.templateName=qv[b.el],b.slotTemplateConfig||(a.value.data.slotTemplateConfig={})),o.value.rules.list=d())},{deep:!0,immediate:!0});const f=async function(){var b;try{if(!await n.value.getSubmitData())return;let E=(b=r.value)==null?void 0:b.data.field,S=a.value.data.field,B=Ue.cloneDeep(l.value),k=B.findIndex(N=>N==E);if(B.splice(k,1),S&&Ue.includes(B,S))return An.warning("列字段名重复,请修改");r.value=Object.assign(r.value||{},Ue.cloneDeep(a.value));let V=Oo.get("CURRENT_SYSTEM");if(!a.value.data.field_id){let N={field_code:a.value.data.field,field_name:a.value.data.title,field_type:"3",json_data:JSON.stringify(a.value.data),project_code:V.project_code};cnt.postSaveFieldPool4Config(N)}if(a.value.btnData.length>0){let N=[];if(a.value.btnData.forEach(T=>{T.data.field_id||N.push({btn_name:T.data.key,btn_label:T.data.name,btn_icon:T.data.btnIcon,json_data:JSON.stringify(T.data),project_code:V.project_code})}),N.length==0)return;dnt.postSaveBtnConfigBatch4Config({btnList:N})}}catch(w){console.log("er",w)}},p=()=>{var b,w;(w=(b=a.value)==null?void 0:b.data.filters)==null||w.push({label:"",value:"",checked:!1,resetValue:"",data:""})},m=b=>{let w=a.value.data.filters[b];da.confirm(`确认要删除该${w.label}配置吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{a.value.data.filters.splice(b,1),a.value.filterConfig.splice(b,1),An.success("删除成功")}).catch(E=>{console.log("err",E)})},v=(b,w)=>{switch(w){case"el":b&&(c.visible=!1,c.templateName=qv[b],c.visible=!0);break}},g=()=>{let b=Ue.cloneDeep(zP);b.id=new Date().getTime().toString(),a.value.btnData.push(b)},y=b=>{let w=a.value.btnData[b];da.confirm(`确认要删除该${w.name?"【"+w.name+"】":""}按钮配置吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{a.value.btnData.splice(b,1),An.success("删除成功")}).catch(E=>{console.log("err",E)})};let C=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 b=Oo.get("CURRENT_SYSTEM"),w=C.value.params;w.project_code=b.project_code||"",C.value=Ue.assign(C.value,{params:w})}),{parentConfig:i,visible:u,tableItemConfig:a,tableDataConfig:o,requestData:C,btnConfig:s,formItem:c,onChangeItem:b=>{a.value.data=Ue.assign(a.value.data,JSON.parse(b.json_data),{field_id:b.id})},onChang:v,saveData:f,addFilterItem:p,deleteFilterConfig:m,addBtnItem:g,deleteBtnItem:y}}const pnt={class:"h-full"},vnt={style:{height:"calc(100% - 40px)"},class:"overflow-y-auto"},mnt={key:0},hnt=e.createElementVNode("div",{class:"bg-red-200 py-1 px-3 rounded"},"新增数据筛选配置",-1),gnt=[hnt],bnt=e.createElementVNode("div",{class:"bg-red-200 py-1 px-3 rounded"},"新增按钮配置",-1),ynt=[bnt],_nt={class:"text-center",style:{height:"40px"}},Cnt=e.defineComponent({__name:"hsAttrTable",props:{current:{type:Object,default:()=>{}},configList:{type:Array,default:()=>[]}},setup(t){const n=t;let r=e.ref();const{parentConfig:o,visible:a,tableItemConfig:l,tableDataConfig:i,requestData:u,btnConfig:s,formItem:c,onChangeItem:d,onChang:f,addFilterItem:p,saveData:m,deleteFilterConfig:v,addBtnItem:g,deleteBtnItem:y}=fnt(n,r);return(C,x)=>{var S,B,k,V;const b=e.resolveComponent("bc-auto-complete"),w=e.resolveComponent("svgIcon"),E=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",pnt,[e.createElementVNode("div",vnt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:e.unref(a),"onUpdate:modelValue":x[0]||(x[0]=N=>e.isRef(a)?a.value=N:null),expandConfig:{subTitle:"表格属性"}},null,8,["modelValue"])),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{parentConfig:e.unref(o),data:(S=e.unref(l))==null?void 0:S.data,config:e.unref(i).list,ref_key:"baseTableRef",ref:r,rules:e.unref(i).rules.list||{},onChange:e.unref(f)},{field:e.withCtx(()=>[e.createVNode(b,{url:e.unref(u).url,qry_key:e.unref(u).qry_key,params:e.unref(u).params,type:"table",modelValue:e.unref(l).data.field,"onUpdate:modelValue":x[1]||(x[1]=N=>e.unref(l).data.field=N),onChange:e.unref(d)},null,8,["url","qry_key","params","modelValue","onChange"])]),_:1},40,["parentConfig","data","config","rules","onChange"])),[[e.vShow,e.unref(a)]]),(B=e.unref(l))!=null&&B.data.el?(e.openBlock(),e.createElementBlock("div",mnt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:e.unref(c).visible,"onUpdate:modelValue":x[2]||(x[2]=N=>e.unref(c).visible=N),expandConfig:{subTitle:e.unref(c).title}},null,8,["modelValue","expandConfig"])),e.unref(c).visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(c).templateName),{key:0,data:e.unref(l).data.slotTemplateConfig,ref:"elRef",isVModel:""},null,8,["data"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((k=e.unref(i))==null?void 0:k.second_config,(N,T)=>{var O;return e.openBlock(),e.createElementBlock("div",{key:T},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:N.visible,"onUpdate:modelValue":I=>N.visible=I,expandConfig:{subTitle:N.title}},null,8,["modelValue","onUpdate:modelValue","expandConfig"])),N.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,parentConfig:e.unref(o),config:N[N.key],data:(O=e.unref(l))==null?void 0:O.data[N.key]},null,8,["parentConfig","config","data"])):e.createCommentVNode("",!0)])}),128)),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((V=e.unref(l))==null?void 0:V.data.filters,(N,T)=>(e.openBlock(),e.createElementBlock("div",{key:T},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:N.visible,"onUpdate:modelValue":O=>N.visible=O,expandConfig:{subTitle:"筛选配置项"+(N.label?"【"+N.label+"】":""),rightSlot:!0}},{default:e.withCtx(()=>[e.createVNode(w,{onClick:O=>e.unref(v)(T),color:"#F56C6C",class:"pt-1",name:"ele-RemoveFilled",size:"18"},null,8,["onClick"])]),_:2},1032,["modelValue","onUpdate:modelValue","expandConfig"])),N.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("bc-form-config"),{key:0,parentConfig:e.unref(o),config:e.unref(i).filterConfig.filters,data:N},null,8,["parentConfig","config","data"])):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("div",{class:"flex align-center justify-center p-2",onClick:x[3]||(x[3]=(...N)=>e.unref(p)&&e.unref(p)(...N))},gnt)]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).btnData,(N,T)=>(e.openBlock(),e.createElementBlock("div",{key:T},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:N.visible,"onUpdate:modelValue":O=>N.visible=O,expandConfig:{subTitle:"按钮配置"+(N.data.name?"【"+N.data.name+"】":""),rightSlot:!0}},{default:e.withCtx(()=>[e.createVNode(w,{onClick:O=>e.unref(y)(T),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(IP),{ref_for:!0,ref:"btnItemRef",modelValue:N.data,"onUpdate:modelValue":O=>N.data=O,config:e.unref(s)},null,8,["modelValue","onUpdate:modelValue","config"])),[[e.vShow,N.visible]])]))),128)),e.createElementVNode("div",{class:"flex align-center justify-center p-2",onClick:x[4]||(x[4]=(...N)=>e.unref(g)&&e.unref(g)(...N))},ynt)])]),e.createElementVNode("div",_nt,[e.createVNode(E,{onClick:e.unref(m),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),zN=op();function wnt(t,n){let r=e.ref(!0);e.watch(()=>n.value,()=>{t.value="",r.value=!0});const o=()=>{let i=Oo.get("CURRENT_SYSTEM"),u=Ue.cloneDeep(Uv.value);u.id=new Date().getTime().toString(),u.data=Ue.assign(u.data,{type:"seq",title:"",minWidth:50,width:50}),Ue.assign(n.value,{baseData:Ue.assign(Ue.cloneDeep(Ztt.value),{id:new Date().getTime().toString(),tableName:"表格配置名称",proxy:i.project_url,dynamicColumn:{isDynamicRequestConfig:!1,dynamicMethod:"get",dynamicProxy:i.project_url}}),tableConfig:[u],dynamicTableConfig:[]})},a=(i,u,s,c)=>{let d=i.map(f=>f[s]);zN.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(!Ue.includes(m,p[s])){let y=Ue.cloneDeep(Uv.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=Ue.assign(y.data,C,{field_id:f.data[p[s]].id})}if(Ue.keys(Dh).find(C=>C==y.data.field)){let C=Dh[y.data.field];y.data=Ue.assign(y.data,C)}(g=n.value)==null||g.tableConfig.push(y)}})})};return{parseTable:()=>{var i,u;if(t.value){let s=Oo.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}zN.getFieldByTable({table_name:t.value,project_code:s&&s.project_code,field_type:"3"}).then(c=>{var d;if(c.code!=1)return An.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=Ue.map((m=n.value)==null?void 0:m.tableConfig,g=>g.data.field);if(!Ue.includes(p,f.column_name)){let g=Ue.cloneDeep(Uv.value);if(g.id=f.column_name+new Date().getTime().toString(),f.json_data){let y=JSON.parse(f.json_data);g.data=Ue.assign(g.data,y,{field_id:f.field_id})}else g.data.field=f.column_name,g.data.title=f.column_comment||"展示列名称";Ue.keys(Dh).find(y=>y==f.column_name)&&(g.data=Ue.assign(g.data,Dh[f.column_name])),(v=n.value)==null||v.tableConfig.push(g)}});return}})}(u=n.value)!=null&&u.baseData.id||o()},parseName:r}}const xnt={class:"flex flex-row"},Ent=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}=wnt(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",xnt,[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)}}}),knt=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(fo),{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(fo),{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(Ue).get(e.unref(Ue).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(Ue).get(n.value,a.key,{}),config:a[a.key]},null,8,["data","config"])):e.createCommentVNode("",!0)]))),128))}}),Snt=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(fo),{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(fo),{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(knt),{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 Bnt(t,n,r){const o=i=>{var s;let u=i.id==((s=n.current)==null?void 0:s.id)?Ue.cloneDeep(f2.value):i;t("chose",u,"tableConfig")};return{choseTagItem:o,appendField:()=>{let i=Ue.cloneDeep(Uv.value);if(i.id=new Date().getTime().toString(),(r.value.tableConfig.findIndex(c=>c.id==i.id)||-1)>-1)return An.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(()=>{Ue.remove(r.value.tableConfig,i),o(i),An.success("删除成功")}).catch(u=>{console.log("err",u)})}}}const Nnt=["onClick"],Tnt=["onClick"],Dnt={class:"p-2"},Vnt=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}=Bnt(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(Fu),{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(d2)[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,Tnt)):e.createCommentVNode("",!0)],8,Nnt))),128)),e.createElementVNode("div",Dnt,[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"])]))}}),$nt=Or(Vnt,[["__scopeId","data-v-d871a518"]]);function Ont(t,n,r){const o=u=>{var c;let s=u.id==((c=n.current)==null?void 0:c.id)?Ue.cloneDeep(f2.value):u;t("chose",s,"dynamicTableConfig")};return{choseTagItem:o,appendField:()=>{let u=Ue.cloneDeep(Uv.value);if(u.id=new Date().getTime().toString(),(r.value.dynamicTableConfig.findIndex(d=>d.id==u.id)||-1)>-1)return An.warning("字段名称重复");r.value.dynamicTableConfig.push(u);let c=r.value.dynamicTableConfig[r.value.dynamicTableConfig.length-1];o(c)},deleteTagItem:u=>{da.confirm(`确定删除“${u.data&&u.data.title}”字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ue.remove(r.value.dynamicTableConfig,u),o(u),An.success("删除成功")}).catch(s=>{console.log("err",s)})},parseColumn:()=>{var s;let u=(s=r.value)==null?void 0:s.baseData.dynamicColumn;if(u!=null&&u.requestDynamicUrl)if(u!=null&&u.dynamicMethod){if(!(u!=null&&u.dynamicProxy))return An.warning("请填写动态配置列中的请求代理")}else return An.warning("请选择动态配置列中的请求方式");else return An.warning("请填写接口地址")}}}const Ant={class:"flex w-full"},Mnt=["onClick"],Rnt=["onClick"],Int={class:"p-2"},Pnt=e.defineComponent({__name:"hsTableDynamicConfigList",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,parseColumn:c}=Ont(o,l,a);return(d,f)=>{const p=e.resolveComponent("hs-input"),m=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Ant,[e.createVNode(p,{class:"mr-2",style:{width:"25%"},modelValue:a.value.baseData.dynamicColumn.requestDynamicUrl,"onUpdate:modelValue":f[0]||(f[0]=v=>a.value.baseData.dynamicColumn.requestDynamicUrl=v)},null,8,["modelValue"]),e.createVNode(m,{type:"primary",onClick:e.unref(c)},{default:e.withCtx(()=>[e.createTextVNode("解析配置列")]),_:1},8,["onClick"])]),e.createVNode(e.unref(Fu),{ref_key:"dragRef",ref:r,class:"flex flex-wrap",handle:".drag-item",ghostClass:"ghost",modelValue:a.value.dynamicTableConfig,"onUpdate:modelValue":f[2]||(f[2]=v=>a.value.dynamicTableConfig=v),animation:150},{default:e.withCtx(()=>{var v;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((v=a.value)==null?void 0:v.dynamicTableConfig,g=>(e.openBlock(),e.createElementBlock("div",{class:"drag-item p-2 relative",key:g.id,onClick:y=>e.unref(s)(g)},[e.createElementVNode("div",{class:e.normalizeClass(["border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded",t.current.id==g.id?"bg-blue-200":""])},e.toDisplayString(g.data&&g.data.title||g.data.type&&e.unref(d2)[g.data.type]||""),3),t.current.id==g.id?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(y=>e.unref(u)(g),["stop","prevent"]),style:{position:"absolute",top:"0px",right:"5px",cursor:"pointer"}}," ✖️ ",8,Rnt)):e.createCommentVNode("",!0)],8,Mnt))),128)),e.createElementVNode("div",Int,[e.createElementVNode("div",{onClick:f[1]||(f[1]=(...g)=>e.unref(i)&&e.unref(i)(...g)),class:"p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full"},"+")])]}),_:1},8,["modelValue"])])}}}),Fnt=Or(Pnt,[["__scopeId","data-v-d487599c"]]),znt={class:"mx-auto flex flex-row h-full"},Lnt={class:"flex-1 grow overflow-y-auto"},Hnt={key:0},Wnt={key:0,class:"basis-1/4 flex-none ml-4 bg-blue-100",style:{"min-width":"300px"}},jnt=e.defineComponent({__name:"hsTablePanel",props:{tableModel:{},tableModelModifiers:{},configModel:{},configModelModifiers:{}},emits:["update:tableModel","update:configModel"],setup(t){let n=e.ref(Ue.cloneDeep(lnt.value));const r=e.useModel(t,"tableModel"),o=e.useModel(t,"configModel"),a=e.ref(Ue.cloneDeep(int));let l=Ue.cloneDeep(f2);e.watch(()=>{var s;return(s=o.value)==null?void 0:s.config_unique_id},()=>{l.value=Ue.cloneDeep(f2)},{immediate:!0,deep:!0});const i=e.ref("tableConfig"),u=(s,c)=>{l.value=s,i.value=c};return(s,c)=>{var d,f;return e.openBlock(),e.createElementBlock("div",znt,[e.createElementVNode("div",Lnt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:e.unref(n).code.visible,"onUpdate:modelValue":c[0]||(c[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",Hnt,e.toDisplayString(r.value),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ent),{modelValue:r.value,"onUpdate:modelValue":c[1]||(c[1]=p=>r.value=p)},null,8,["modelValue"])),(d=r.value)!=null&&d.baseData.id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:e.unref(n).table.visible,"onUpdate:modelValue":c[2]||(c[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(Snt),{key:0,modelValue:r.value,"onUpdate:modelValue":c[3]||(c[3]=p=>r.value=p),config:a.value},null,8,["modelValue","config"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{modelValue:e.unref(n).tableItem.visible,"onUpdate:modelValue":c[4]||(c[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($nt),{key:1,modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=p=>r.value=p),current:e.unref(l),onChose:u},null,40,["modelValue","current"])):e.createCommentVNode("",!0),r.value.baseData.dynamicColumn&&r.value.baseData.dynamicColumn.isDynamicRequestConfig?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{key:2,modelValue:e.unref(n).dynamicTableItem.visible,"onUpdate:modelValue":c[6]||(c[6]=p=>e.unref(n).dynamicTableItem.visible=p),expandConfig:e.unref(n).dynamicTableItem},null,8,["modelValue","expandConfig"])):e.createCommentVNode("",!0),e.unref(n).dynamicTableItem.visible&&r.value.baseData.dynamicColumn&&r.value.baseData.dynamicColumn.isDynamicRequestConfig?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Fnt),{key:3,modelValue:r.value,"onUpdate:modelValue":c[7]||(c[7]=p=>r.value=p),current:e.unref(l),onChose:u},null,40,["modelValue","current"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),(((f=r.value)==null?void 0:f.tableConfig)||[]).length>0&&e.unref(l).id?(e.openBlock(),e.createElementBlock("div",Wnt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Cnt),{current:e.unref(l),configList:r.value[i.value]},null,8,["current","configList"]))])):e.createCommentVNode("",!0)])}}});function qnt(t,n,r){const o=i=>{var s;let u=i.id==((s=n.current)==null?void 0:s.id)?Ue.cloneDeep(jC):i;t("chose",u)};return{choseTagItem:o,appendField:()=>{let i=Ue.cloneDeep(zP);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(()=>{Ue.remove(r.value||[],i),o(i),An.success("删除成功")}).catch(u=>{console.log("err",u)})}}}const Unt=["onClick"],Knt=["onClick"],Gnt={class:"p-2"},Ynt=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}=qnt(o,l,a);return(c,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(Fu),{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,Knt)):e.createCommentVNode("",!0)],8,Unt))),128)),e.createElementVNode("div",Gnt,[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"])]))}}),Xnt=Or(Ynt,[["__scopeId","data-v-1bcdcd36"]]),Znt=x1();function Jnt(t,n){let r=e.ref(t.current),o=e.ref(Ue.cloneDeep(t.current));e.watch(()=>t.current,u=>{u&&u.id!=o.value.id&&(r.value=u,o.value=Ue.cloneDeep(u))},{deep:!0});const a=e.ref(Ue.cloneDeep(FP));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=Ue.map(t.btnList,v=>v.data.key);if(Ue.includes(f,d)&&d!=c)return An.warning("按钮key值重复");if(r.value=Object.assign(r.value||{},Ue.cloneDeep(o.value)),o.value.data.field_id)return;let p=Oo.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};Znt.postSaveBtnConfig4Config(m)}catch(s){console.log("er",s)}}}}const Qnt={class:"bg-blue-200 h-full flex flex-col"},ert={style:{height:"calc(100% -50px)"},class:"overflow-y-auto flex-1"},trt={key:0},nrt={class:"text-center grow-0",style:{height:"50rpx"}},rrt=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}=Jnt(n,r);return(u,s)=>{const c=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",Qnt,[e.createElementVNode("div",ert,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{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",trt,e.toDisplayString(e.unref(a)),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(fo),{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(IP),{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",nrt,[e.createVNode(c,{onClick:e.unref(i),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1},8,["onClick"])])])}}}),ort={class:"mx-auto flex flex-row h-full"},art={class:"flex-1 grow overflow-y-auto"},lrt={key:0,class:"flex-none basis-1/4 ml-4"},irt=e.defineComponent({name:"formPanel"}),srt=e.defineComponent({...irt,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(Ue.cloneDeep(jC));e.watch(()=>n.id,()=>{a.value=Ue.cloneDeep(jC)});const l=i=>{a.value=i};return(i,u)=>(e.openBlock(),e.createElementBlock("div",ort,[e.createElementVNode("div",art,[e.createVNode(fo,{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(Xnt),{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",lrt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(rrt),{btnList:r.value,current:e.unref(a)},null,8,["btnList","current"]))])):e.createCommentVNode("",!0)]))}});let urt={config_name:"",config_unique_id:"",is_auth:"1"};const LP={config_name:[{required:!0,message:"请输入配置名称"}],is_auth:[{required:!0,message:"是否受权限控制"}],config_unique_id:[{required:!0,message:"请输入配置标识"}]},HP=[{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}],crt={formData:urt,formRule:LP,formConfig:HP};let drt={name:"",config_name:"",is_auth:"1",config_unique_id:""};const frt=[{prop:"name",label:"配置",el:"hs-select",cel:"hs-option",multiple:!1,clearable:!1,op:[]}],LN={formData:drt,formRule:LP,formConfig:Ue.concat(frt,HP)},prt=x1();function vrt(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(Ue.assign(Ue.cloneDeep(LN),{formData:{is_auth:"1",name:"",config_name:"",config_unique_id:new Date().getTime().toString()}}));const i=(m,v)=>{if(v=="name"){let g=Ue.cloneDeep(r.configs).find(y=>y.config_unique_id==m);console.log("config",g),l.value.formData=Ue.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=()=>new Promise(m=>{let v={id:"",config_type:"1",tables:[{id:"table_"+new Date().getTime().toString(),baseData:{id:"",tableName:"表格配置名称"},tableConfig:[],dynamicTableConfig:[]}],config_unique_id:new Date().getTime().toString(),config_name:"",is_auth:"1",btns:[]};prt.getBtnConfigByKeyMap({btnNames:["search","reset"],project_code:"scmp"}).then(g=>{if(console.log("res",g),g.code!==1)return m(v);if(g.data.search&&g.data.search.json_data){let y=JSON.parse(g.data.search.json_data);v.btns.push({id:y.key+new Date().getTime().toString(),data:y})}if(g.data.reset&&g.data.reset.json_data){let y=JSON.parse(g.data.reset.json_data);v.btns.push({id:y.key+new Date().getTime().toString(),data:y})}m(v)}).catch(()=>{m(v)})}),s=async(m,v=0)=>{let g=Ue.cloneDeep(LN);if(g.formData.name=m[v]&&m[v].config_unique_id||"",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(w=>({label:w.config_name,value:w.config_unique_id,is_auth:w.is_auth})),x=Ue.findIndex(g.formConfig,w=>w.prop=="name");if(x<0)return;let b=Ue.assign(g.formConfig[x],{op:C});g.formConfig.splice(x,1,b)}l.value=g,a.value=!0;let y=m[v];y||(y=await u()),y.tables.length>0&&y.tables.map(C=>(C.dynamicTableConfig||(C.dynamicTableConfig=[],C.baseData.dynamicColumn={}),C)),t("change",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:async()=>{if(!(a.value&&!l.value.formData.name)){let m=await u();t("change",m),console.log("initConfig",m)}l.value=Ue.cloneDeep(crt),l.value.formData.config_unique_id=new Date().getTime().toString(),a.value=!1},cancel:()=>{s(Ue.cloneDeep(r.configs))},deleteConfig:()=>{t("delete")}}}const mrt={class:"flex justify-around items-center"},hrt={class:"basis-3/4"},grt={class:"basis-1/4 flex justify-end"},brt=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}=vrt(l,a,o);return n({initOriginConfig:f}),(g,y)=>{const C=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",mrt,[e.createElementVNode("div",hrt,[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",grt,[!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"]))])])}}}),HN=op();function yrt(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:[],dynamicTableConfig:[]})},u=w=>{let E=Vx.find(t.value.tables,S=>S.id==w);da.confirm(`确定删除${(E==null?void 0:E.baseData.tableName)||"表格配置"}吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Ue.remove(t.value.tables,S=>w&&S.id==w),An.success("删除成功")}).catch(S=>{console.log("err",S)})},s=(w,E)=>{switch(E){case"remove":u(w);break;case"add":i();break}};let c=e.ref();const d=(w,E=!1)=>{if(w.form){if(w.form.formConfig.length>0){let k=0;w.form.formConfig=Ue.filter(w.form.formConfig,V=>{if(V.data.baseData.prop&&!$P[V.data.baseData.prop]&&(E||V.data.baseData.isApply))return V.sort=++k,!0})}w.form.formConfig.length<=0&&delete w.form}w.tables.map(k=>{let V=0;return k.tableConfig=Ue.filter(k.tableConfig,N=>{if((N.data.field||N.data.type)&&(E||N.data.isApply))return N.data.type&&!N.data.field&&!E&&(N.data.field="type_"+N.data.type),N.data.filters=Ue.filter(N.data.filters,T=>T.value),N.btnData=Ue.filter(N.btnData,T=>(E||T.data.isApply)&&T.data.key),N.sort=++V,!0}),k.dynamicTableConfig=Ue.filter(k.dynamicTableConfig,N=>{if((N.data.field||N.data.type)&&(E||N.data.isApply))return N.data.field&&!N.data.field&&!E&&(N.data.field="type_"+N.data.field),N.data.filters=Ue.filter(N.data.filters,T=>T.value),N.btnData=Ue.filter(N.btnData,T=>(E||T.data.isApply)&&T.data.key),N.sort=++V,!0}),k});let S=0;w.tables=Ue.filter(w.tables,k=>{if(k.tableConfig.length>0||k.dynamicTableConfig.length>0)return k.sort=++S,!0});let B=0;return w.btns=Ue.filter(w.btns,k=>{if(k.data.key&&(E||k.data.isApply))return k.sort=++B,!0}),w},f=(w={})=>(Object.keys(w).forEach(E=>{w[E]===""||w[E]===null||w[E]===void 0||w[E]instanceof Array&&w[E].length<=0||w[E]instanceof Object&&Ue.isEmpty(w[E])?delete w[E]:w[E]instanceof Object?f(w[E]):w[E]instanceof Array&&w[E].map(S=>f(S))}),w),p=w=>(w.btns=Ue.map(w.btns,(E,S)=>({id:E.id,data:f(E.data),sort:S+1})),w.form&&(w.form.baseData=Ue.assign({},f(w.form.baseData)),w.form.formConfig=Ue.map(w.form.formConfig,(E,S)=>({data:f(E.data),id:E.id,sort:S+1}))),w.tables=Ue.map(w.tables,(E,S)=>{let B=E.tableConfig.map((N,T)=>{let O=N.btnData.map(I=>f(I));return{id:N.id,data:f(N.data),btnData:O,sort:T+1}}),k=E.dynamicTableConfig.map((N,T)=>{let O=N.btnData.map(I=>f(I));return{id:N.id,data:f(N.data),btnData:O,sort:T+1}}),V=f(E.baseData);return E=Ue.assign(E,{tableConfig:B,baseData:V,sort:S+1,dynamicTableConfig:k}),E}),w),m=w=>{var V;let E=(w.btns||[]).map((N,T)=>({id:N.id,fieldName:N.data.name,showName:N.data.name,fieldProp:N.data.key,fieldShow:N.data.isShow,fieldRequired:!1,sort:T+1})),S=(w.tables||[]).map((N,T)=>{let O=N.tableConfig.map((I,z)=>{let F=(I.btnData||[]).map((L,R)=>({id:L.id||"",fieldName:L.data.name||"",showName:L.data.name||"",fieldProp:L.data.key||"",fieldShow:L.data.isShow||"",fieldRequired:!1,sort:R+1}));return{id:I.id,fieldName:I.data.title||(I.data.type?d2[I.data.type]:""),showName:I.data.title||(I.data.type?d2[I.data.type]:""),fieldProp:I.data.field||(I.data.type?"type_"+I.data.type:""),fieldShow:!1,fieldRequired:!1,fieldExport:!1,option:F,sort:z+1}});return{tableId:N.id||"",id:N.id||"",tableName:N.baseData.tableName||"",data:O,sort:T+1}}),B=(((V=w.form)==null?void 0:V.formConfig)||[]).map((N,T)=>({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:T+1}));return{config_type:"1",config_unique_id:w.config_unique_id,btns:E,tables:S,form:B,menu_id:l.value.id}};let v=e.ref("btn");const g=w=>{t.value=w,v.value="btn"},y=w=>{v.value="btn",r.value&&r.value.initOriginConfig(n.value,w)};return{handleTabsEdit:s,saveFormTableConfig:async w=>{let E=await d(Ue.cloneDeep(t.value),!0);E=Ue.assign(E,w);let B=n.value.map(O=>O.config_unique_id).indexOf(E.config_unique_id);B>-1?n.value.splice(B,1,E):n.value.push(E);let k=await d(Ue.cloneDeep(E),!1),V=await p(Ue.cloneDeep(k)),N=await m(Ue.cloneDeep(V));console.log("originConfig系统配置",E,"businessConfig==业务配置",V,"权限数据",N);let T={field_json:JSON.stringify(E),config_name:E.config_name,config_type:"1",config_unique_id:E.config_unique_id,business_json:JSON.stringify(V),menu_id:l.value.id||"",page_name:l.value.meta.title,config_json:JSON.stringify(N),id:E.id||"",project_code:a.value.project_code,update_time:E.update_time||""};HN.postSaveField4Table(T).then(()=>{An.success("保存配置成功"),c.value=E,o("refresh")}).catch(O=>{console.log("er",O)})},changeConfig:g,initData:(w,E,S)=>{n.value=w,a.value=S,l.value=E,y(0)},tabsActiveName:v,config:c,deleteConfig:()=>{da.prompt(`确认删除【${t.value.config_name}】吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",inputPattern:/^确认删除/,inputErrorMessage:"请输入“确认删除”",inputPlaceholder:"请输入“确认删除”"}).then(()=>{HN.postDelFieldById({id:t.value.id}).then(w=>{w.code==1&&(An.success("删除成功"),setTimeout(()=>{o("refresh")},1500))})}).catch(()=>{An.info("已取消删除")})}}}const _rt={class:"flex flex-col h-full"},Crt={class:"flex-1 system-user-container",style:{height:"300px"}},wrt=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:[],is_auth:"1",tables:[{id:"table_"+new Date().getTime().toString(),baseData:{id:"",tableName:"表格配置名称"},tableConfig:[],dynamicTableConfig:[]}]}),a=e.ref([]),l=e.ref();const i=r,{handleTabsEdit:u,saveFormTableConfig:s,changeConfig:c,initData:d,tabsActiveName:f,deleteConfig:p}=yrt(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",_rt,[e.createElementVNode("div",Crt,[e.createVNode(y,{ref:"tabsRef",modelValue:e.unref(f),"onUpdate:modelValue":v[3]||(v[3]=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(srt),{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(qtt),{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,x)=>(e.openBlock(),e.createBlock(g,{key:x,class:"tab-pane",label:C.baseData.tableName||"表格配置名称",name:C.id,closable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(jnt),{closable:"","table-model":e.unref(o).tables[x],"onUpdate:tableModel":b=>e.unref(o).tables[x]=b,"config-model":e.unref(o),"onUpdate:configModel":v[2]||(v[2]=b=>e.isRef(o)?o.value=b:o=b)},null,40,["table-model","onUpdate:tableModel","config-model"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onEdit"])]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(brt),{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"]))])}}}),xrt=Or(wrt,[["__scopeId","data-v-eec729de"]]),Ert=AP();function krt(t){let n=e.ref(""),r=e.ref();const o=i=>{let u=r.value.find(s=>s.value==i);n.value=Ue.get(u,"value",""),Oo.set("CURRENT_SYSTEM",u),t("change",u)},a=()=>{Ert.getAllSystemInfo().then(i=>{if(i.code==1){r.value=(i.data||[]).map(s=>({...s,label:s.project_name||"",value:s.project_code||""}));let u=Oo.get("CURRENT_SYSTEM")||r.value[0];o(u&&u.value||"")}}).catch(i=>{console.log("err",i)})};return{onChange:o,initData:()=>{let i=Oo.get("CURRENT_SYSTEM");n.value=(i==null?void 0:i.value)||"",a()},curSys:n,systems:r}}const Srt={class:"flex"},Brt={key:0,class:"basis-1/4 flex flex-col justify-center"},Nrt=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}=krt(o);return e.onMounted(()=>{l()}),(s,c)=>{const d=e.resolveComponent("hs-option"),f=e.resolveComponent("hs-select");return e.openBlock(),e.createElementBlock("div",Srt,[r.showLabel?(e.openBlock(),e.createElementBlock("div",Brt,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 Trt(t,n){let r;const o=i=>new Promise(u=>{if(!i||!t.url||!t.qry_key){clearTimeout(r),u([]);return}let s=Ue.assign(t.params,{[t.qry_key||""]:i});vn({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):Ue.get(c,"data.customPageList")&&Ue.isArray(Ue.get(c,"data.customPageList"))?u(Ue.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 Drt=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}=Trt(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"])}}}),Vrt=e.defineComponent({name:"bcGroupDate",props:{value:{type:Object,required:!0},elComponent:{type:String,required:!0},fieldComponent:{type:String,required:!0}},emits:["change"],setup(t,{emit:n,expose:r}){const o=e.inject("bcTableFormApi",{}),a=e.ref(),[l,i]=t.value[t.fieldComponent],u=e.ref({[l]:"",[i]:""}),s=e.ref([]);function c(m){if(m){const[v,g]=m;u.value[l]=v,u.value[i]=g}else u.value[l]="",u.value[i]="";o==null||o.updateSearchForm(u.value),n("change",m)}function d(){c(["",""]),s.value=["",""]}function f(){var m;(m=a.value)==null||m.activeElement()}function p(){var m;(m=a.value)==null||m.focus()}return r({clearData:d,focus:p,activeElement:f}),{elRef:a,groupData:s,focus:p,onChange:c}}});function $rt(t,n,r,o,a,l){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.elComponent),{ref:"elRef",modelValue:t.groupData,"onUpdate:modelValue":n[0]||(n[0]=i=>t.groupData=i),onChange:t.onChange},null,40,["modelValue","onChange"])}const Ort=Or(Vrt,[["render",$rt]]),Art=u3();function Mrt(t){const n=e.ref([]),r=u=>u.map(s=>{let c=Ue.assign(s,{label:s.meta.title,value:s.name});return c.children&&c.children.length>0&&(c.children=r(c.children||[])),c}),o=u=>{Art.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 Rrt(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=Ue.cloneDeep(l)},{deep:!0,immediate:!0}),{handleNodeClick:r,menuData:o,defaultProps:{children:"children",label:"label"}}}const Irt={class:"max-h-full overflow-y-auto"},Prt=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}=Rrt(o,r);return(u,s)=>{const c=e.resolveComponent("hs-tree");return e.openBlock(),e.createElementBlock("div",Irt,[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"])])}}}),Frt={class:"bg-blue-500 py-5 rounded-md",style:{width:"200px"}},zrt=e.defineComponent({__name:"bcPageTreeBySystem",emits:["changeNode","changeSystem"],setup(t,{expose:n,emit:r}){const o=r,{changeNode:a,onChangeSystem:l,menuData:i}=Mrt(o);return n({onChangeSystem:l}),(u,s)=>{const c=e.resolveComponent("bc-switch-systems");return e.openBlock(),e.createElementBlock("div",Frt,[e.createVNode(c,{onChange:e.unref(l)},null,8,["onChange"]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Prt),{menu:e.unref(i),onChange:e.unref(a)},null,40,["menu","onChange"]))])}}});function Lrt(t,n){const{postDeleteFile:r,postDelFileNoAttch:o}=MP(),{proxy:a}=e.getCurrentInstance();let l=e.ref({});e.onMounted(async()=>{l.value=await Ha.get("userInfo")});const i=e.computed(()=>{let k=t.fileList||[];return t.annex?k.map(V=>({name:V.name,id:V.id,path:V.path,url:"https://"+l.value.filePath+`${V.path}?x-oss-process=style/tpys_20`})):k.map(V=>({name:V.path,path:V.path,url:"https://"+l.value.filePath+`${V.path}?x-oss-process=style/tpys_20`}))});function u(k){const V=k.size/1024/1024<t.size;return V||a.$message.error(`上传头像图片大小不能超过 ${t.size}MB!`),V}const s=[".jpg",".jpeg",".png",".gif"];function c(){return t.accept.split(",").map(N=>N.trim()).some(N=>{const T=N.toLowerCase();return s.includes(T)})}function d(k,V,N){console.log(k,V,N,t.accept,c()),(t.accept==="image/*"||c())&&(t.annex?b(k,V,N):w(k,V,N)),(t.accept.includes("xls")||t.accept.includes("xlsx"))&&n("onSuccess",k)}function f(k,V="id"){t.annex?E(k,V):S(k,"path")}let p=e.ref(!1),m=e.ref(0);function v(k){k&&(m.value=i.value.findIndex(V=>V.path===k.path)),p.value=!0}function g(){p.value=!1}const y=e.computed(()=>i.value.map(k=>k.url));function C(){a.$message.warning(`只能上传${t.limit}个文件`)}function x(k){rP(k)}function b(k,V,N){const T=[];k.code===1?(N.forEach(O=>{if(O.response){const{id:I,path:z,name:F}=O.response.data;T.push({id:I,name:F,path:z})}else{const{id:I,path:z,name:F}=O;T.push({id:I,name:F,path:z})}}),n("update:fileList",T),n("onSuccess",k.data)):(B(V,"uid"),a.$message.error(k.msg))}function w(k,V,N){const T=[];k.code===1?(N.forEach(O=>{if(O.response){const I=O.response.data;T.push({path:I})}else{const{path:I}=O;T.push({path:I})}}),n("update:fileList",T),n("onSuccess",k.data)):(B(V,"uid"),a.$message.error(k.msg))}function E(k,V="id"){let N=k[V]||k.response.data[V];r({data:{attachId:N},proxy:t.proxy}).then(T=>{T.code===1&&(B(k,V),a.$message.success(T.data))})}function S(k,V="path"){let N=k[V]||k.response.data[V];o({data:{filePath:N},proxy:t.proxy}).then(T=>{T.code===1&&(B(k,V),a.$message.success(T.data))})}function B(k,V="uid"){let N=t.fileList.filter(T=>T[V]!==k[V]);n("update:fileList",N)}return{userInfos:l,imgList:i,beforeUpload:u,onSuccess:d,onRemove:f,onPreview:v,onExceed:C,handleDownload:x,showViewer:p,onClose:g,urlList:y,viewerIndex:m}}const Hrt={key:0,class:"flex flex-col justify-center items-center gap-1"},Wrt={class:"w-full"},jrt={class:"el-upload-list__item-actions"},qrt=["onClick"],Urt=["onClick"],Krt=["onClick"],Grt=e.defineComponent({__name:"bcUpload",props:{action:{type:String,default:""},proxy:{type:String,default:"/qwp-web"},headers:{type:Object,default:()=>({})},method:{type:String,default:"post"},multiple:{type:Boolean,default:!1},data:{type:Object,default:()=>({})},name:{type:String,default:"file"},withCredentials:{type:Boolean,default:!1},showFileList:{type:Boolean,default:!0},drag:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},crossorigin:{type:String,default:""},listType:{type:String,default:"picture-card"},disabled:{type:Boolean,default:!1},limit:{type:Number},size:{type:Number,default:20},fileList:{type:Array,default:()=>[]},annex:{type:Boolean,default:!0}},emits:["update:fileList","onSuccess"],setup(t,{emit:n}){const r=t,o=()=>window.location.origin+`${r.proxy}${r.action}`,a=n,{imgList:l,beforeUpload:i,onSuccess:u,onRemove:s,onPreview:c,onExceed:d,handleDownload:f,showViewer:p,onClose:m,urlList:v,viewerIndex:g}=Lrt(r,a);return(y,C)=>{const x=e.resolveComponent("bc-icon"),b=e.resolveComponent("hs-image"),w=e.resolveComponent("hs-upload"),E=e.resolveComponent("hs-image-viewer");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(w,{action:o(),headers:t.headers,method:t.method,multiple:t.multiple,data:t.data,name:t.name,"with-credentials":t.withCredentials,"show-file-list":t.showFileList,drag:t.drag,accept:t.accept,crossorigin:t.crossorigin,"list-type":t.listType,disabled:t.disabled,limit:t.limit,"file-list":e.unref(l),"before-upload":e.unref(i),"on-success":e.unref(u),"on-exceed":e.unref(d)},e.createSlots({file:e.withCtx(({file:S})=>[e.createElementVNode("div",Wrt,[e.createVNode(b,{src:S.url,class:"el-upload-list__item-thumbnail"},null,8,["src"]),e.createElementVNode("span",jrt,[e.createElementVNode("span",{class:"el-upload-list__item-preview",onClick:B=>e.unref(c)(S)},[e.createVNode(x,{name:"ele-ZoomIn"})],8,qrt),t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:"el-upload-list__item-delete",onClick:B=>e.unref(f)(S)},[e.createVNode(x,{name:"ele-Download"})],8,Urt)),t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:1,class:"el-upload-list__item-delete",onClick:B=>e.unref(s)(S)},[e.createVNode(x,{name:"ele-Delete"})],8,Krt))])])]),default:e.withCtx(()=>[y.$slots.default?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Hrt,[e.createVNode(x,{name:"ele-Plus"}),e.createTextVNode("上传")]))]),_:2},[y.$slots.default?{name:"default",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"default")]),key:"0"}:void 0]),1032,["action","headers","method","multiple","data","name","with-credentials","show-file-list","drag","accept","crossorigin","list-type","disabled","limit","file-list","before-upload","on-success","on-exceed"]),e.unref(p)?(e.openBlock(),e.createBlock(E,{key:0,"url-list":e.unref(v),"initial-index":e.unref(g),onClose:e.unref(m)},null,8,["url-list","initial-index","onClose"])):e.createCommentVNode("",!0)])}}}),Yrt={class:"text-[#606266]"},Xrt={key:1},Zrt={class:"mb-[10px]"},Jrt={key:0,class:"flex justify-center align-middle mt-[10px]"},Qrt=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:Ue.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"),x=e.resolveComponent("hs-row"),b=e.resolveComponent("hs-form"),w=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(x,{gutter:0,justify:"start",class:"hs-row"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(E,S)=>(e.openBlock(),e.createBlock(C,{key:S,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",Yrt,"  "+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":B=>e.unref(l)[E.prop]=B,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||[],(B,k)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E.cel),{key:k,label:B.label,value:B.value},null,8,["label","value"]))),128)):e.createCommentVNode("",!0)]),_:2},1040,["modelValue","onUpdate:modelValue","clearable"]))]),_:2},1040)):(e.openBlock(),e.createElementBlock("div",Xrt,[e.createElementVNode("div",Zrt,[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",Jrt,[e.createVNode(w,{type:"primary",onClick:u},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1})])):e.createCommentVNode("",!0)],2)}}}),Ka=Or(Qrt,[["__scopeId","data-v-ec198f7a"]]),eot={class:"p-[10px] h-full"},tot=e.defineComponent({name:"inputAttrConfig"}),not=e.defineComponent({...tot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t;let r=e.ref({inputAttrConfig:Ue.cloneDeep(Fet),inputAttrConfigMap:Ue.cloneDeep(w1)});const o=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,r.value.inputAttrConfigMap):n.data);return(a,l)=>(e.openBlock(),e.createElementBlock("div",eot,[e.createVNode(Ka,{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"])]))}}),rot={class:"p-[10px] h-full overflow-y-auto"},oot=e.defineComponent({name:"inputEventConfig"}),aot=e.defineComponent({...oot,props:{data:{type:Object,default:()=>{}}},setup(t){const n=()=>{console.log(o),console.log(a)},r=t,o=e.ref(Ue.isEmpty(r.data)?Object.assign(r.data,{}):r.data),a=e.ref(FN.map(()=>({})));return console.log("formData",a),(l,i)=>{const u=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",rot,[e.createVNode(u,{onClick:n},{default:e.withCtx(()=>[e.createTextVNode("父组件获取数据")]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(FN),(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))])}}}),lot=[{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:"permissionsDict",label:"权限字典项",tooltip:"权限字典项",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"}}]}],iot={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:""}},sot={class:"p-[10px] h-full"},uot=e.defineComponent({name:"selectAttrConfig"}),cot=e.defineComponent({...uot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t;let r=e.ref(Ue.cloneDeep(iot));e.onMounted(()=>{let a=Oo.get("CURRENT_SYSTEM");r.value.attrs.proxy=a.project_url,console.log("system",a,r.value)});const o=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,r.value):n.data);return(a,l)=>(e.openBlock(),e.createElementBlock("div",sot,[e.createVNode(Ka,{data:o.value,"onUpdate:data":l[0]||(l[0]=i=>o.value=i),config:e.unref(lot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),dot=[{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"}}]}],fot={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:""}},pot={class:"p-[10px] h-full"},vot=e.defineComponent({name:"datePickerAttrConfig"}),mot=e.defineComponent({...vot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(fot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",pot,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(dot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),hot=[{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"}]}],got={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:{}},bot={class:"p-[10px] h-full"},yot=e.defineComponent({name:"buttonAttrConfig"}),_ot=e.defineComponent({...yot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(got)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",bot,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(hot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Cot=[{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"}]}],wot={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:"请输入"}},xot={class:"p-[10px] h-full"},Eot=e.defineComponent({name:"autocompleteAttrConfig"}),kot=e.defineComponent({...Eot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(wot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",xot,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Cot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Sot=[{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"}}]}],Bot={attrs:{size:"default",disabled:!1,loading:!1,"inline-prompt":!1,"validate-event":!0},rules:{required:!1,rules:""}},Not={class:"p-[10px] h-full"},Tot=e.defineComponent({name:"switchAttrConfig"}),Dot=e.defineComponent({...Tot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(Bot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Not,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Sot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Vot=[{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"}}]}],$ot={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:{}},Oot={class:"p-[10px] h-full"},Aot=e.defineComponent({name:"uploadAttrConfig"}),Mot=e.defineComponent({...Aot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep($ot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Oot,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Vot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Rot=[{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:"permissionsDict",label:"权限字典项",tooltip:"权限字典项",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"}}]}],Iot={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:""}},Pot={class:"p-[10px] h-full"},Fot=e.defineComponent({name:"checkboxAttrConfig"}),zot=e.defineComponent({...Fot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(Iot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Pot,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Rot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Lot=[{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:"permissionsDict",label:"权限字典项",tooltip:"权限字典项",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"}}]}],Hot={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:""}},Wot={class:"p-[10px] h-full"},jot=e.defineComponent({name:"radioAttrConfig"}),qot=e.defineComponent({...jot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(Hot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Wot,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Lot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Uot=[{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"}}]}],Kot={attrs:{"step-strictly":!1,size:"default",readonly:!1,disabled:!1,controls:!0,"validate-event":!0,placeholder:"请输入"},rules:{required:!1,rules:""}},Got={class:"p-[10px] h-full"},Yot=e.defineComponent({name:"inputNumberAttrConfig"}),Xot=e.defineComponent({...Yot,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(Kot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Got,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Uot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),Zot=[{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"}]}],Jot={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}},Qot={class:"p-[10px] h-full"},eat=e.defineComponent({name:"cascaderAttrConfig"}),tat=e.defineComponent({...eat,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(Jot)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",Qot,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(Zot),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),nat=[{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"}]}]}],rat={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}}},oat={class:"p-[10px] h-full"},aat=e.defineComponent({name:"cascaderPanelAttrConfig"}),lat=e.defineComponent({...aat,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(rat)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",oat,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(nat),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),iat=[{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:"permissionsDict",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"}}]}],sat={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:""}},uat={class:"p-[10px] h-full"},cat=e.defineComponent({name:"treeSelectAttrConfig"}),dat=e.defineComponent({...cat,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(t){const n=t,r=e.ref(Ue.isEmpty(n.data)?Object.assign(n.data,Ue.cloneDeep(sat)):n.data);return(o,a)=>(e.openBlock(),e.createElementBlock("div",uat,[e.createVNode(Ka,{data:r.value,"onUpdate:data":a[0]||(a[0]=l=>r.value=l),config:e.unref(iat),isVModel:t.isVModel},null,8,["data","config","isVModel"])]))}}),fat=e.defineComponent({name:"hsImageViewer"}),pat=e.defineComponent({...fat,setup(t,{expose:n}){const r=e.ref(null),o=e.getCurrentInstance();return e.onMounted(()=>{Qr(r,o)}),n({...o.exposed}),(a,l)=>{const i=e.resolveComponent("el-image-viewer");return e.openBlock(),e.createBlock(i,{ref_key:"imageViewerRef",ref:r},e.createSlots({_:2},[e.renderList(Object.keys(a.$slots),u=>({name:u,fn:e.withCtx(s=>[e.renderSlot(a.$slots,u,e.normalizeProps(e.guardReactiveProps(s||{})))])}))]),1536)}}}),vat=[{title:"hs-test",componentName:bSe},{title:"hs-table",componentName:wSe},{title:"hs-bc-table",componentName:ESe},{title:"hs-button",componentName:o5e},{title:"hs-button-group",componentName:i5e},{title:"hs-input",componentName:u5e},{title:"hs-select",componentName:d5e},{title:"hs-option",componentName:v5e},{title:"hs-option-group",componentName:g5e},{title:"hs-form",componentName:y5e},{title:"hs-form-item",componentName:C5e},{title:"hs-row",componentName:x5e},{title:"hs-col",componentName:k5e},{title:"hs-tree",componentName:N5e},{title:"hs-input-number",componentName:D5e},{title:"hs-switch",componentName:$5e},{title:"hs-radio",componentName:A5e},{title:"hs-radio-group",componentName:R5e},{title:"hs-radio-button",componentName:P5e},{title:"hs-checkbox",componentName:z5e},{title:"hs-checkbox-group",componentName:H5e},{title:"hs-checkbox-button",componentName:j5e},{title:"hs-rate",componentName:U5e},{title:"hs-autocomplete",componentName:G5e},{title:"hs-slider",componentName:X5e},{title:"hs-cascader",componentName:J5e},{title:"hs-cascader-panel",componentName:eBe},{title:"hs-color-picker",componentName:nBe},{title:"hs-upload",componentName:oBe},{title:"hs-transfer",componentName:lBe},{title:"hs-date-picker",componentName:sBe},{title:"hs-scrollbar",componentName:cBe},{title:"hs-calendar",componentName:fBe},{title:"hs-carousel",componentName:vBe},{title:"hs-carousel-item",componentName:hBe},{title:"hs-collapse",componentName:bBe},{title:"hs-collapse-item",componentName:_Be},{title:"hs-progress",componentName:wBe},{title:"hs-result",componentName:EBe},{title:"hs-tour",componentName:SBe},{title:"hs-tour-step",componentName:NBe},{title:"hs-tag",componentName:DBe},{title:"hs-check-tag",componentName:$Be},{title:"hs-affix",componentName:ABe},{title:"hs-tabs",componentName:RBe},{title:"hs-tab-pane",componentName:PBe},{title:"hs-steps",componentName:zBe},{title:"hs-step",componentName:HBe},{title:"hs-alert",componentName:jBe},{title:"hs-dialog",componentName:UBe},{title:"hs-drawer",componentName:GBe},{title:"hs-popconfirm",componentName:XBe},{title:"hs-popover",componentName:JBe},{title:"hs-tooltip",componentName:e9e},{title:"hs-watermark",componentName:n9e},{title:"hs-dropdown",componentName:o9e},{title:"hs-dropdown-menu",componentName:l9e},{title:"hs-dropdown-item",componentName:s9e},{title:"hs-tree-select",componentName:c9e},{title:"hs-badge",componentName:f9e},{title:"hs-empty",componentName:v9e},{title:"hs-image",componentName:h9e},{title:"hs-image-viewer",componentName:pat},{title:"bc-btn",componentName:E9e},{title:"bc-box",componentName:UZe},{title:"bc-radio",componentName:GZe},{title:"bc-checkbox",componentName:XZe},{title:"bc-icon",componentName:y9e},{title:"bc-form",componentName:_Je},{title:"bc-table",componentName:wJe},{title:"bc-form-table",componentName:Net},{title:"bc-form-config",componentName:Ret},{title:"bc-select",componentName:Det},{title:"bc-tree-select",componentName:Pet},{title:"bc-page-config",componentName:xrt},{title:"bc-switch-systems",componentName:Nrt},{title:"bc-auto-complete",componentName:Drt},{title:"bc-group-date",componentName:Ort},{title:"bc-page-tree-for-system",componentName:zrt},{title:"bc-upload",componentName:Grt},{title:"hs-config-input",componentName:not},{title:"hs-config-event",componentName:aot},{title:"hs-config-select",componentName:cot},{title:"hs-config-date-picker",componentName:mot},{title:"hs-config-button",componentName:_ot},{title:"hs-config-autocomplete",componentName:kot},{title:"hs-config-switch",componentName:Dot},{title:"hs-config-upload",componentName:Mot},{title:"hs-config-checkbox",componentName:zot},{title:"hs-config-radio",componentName:qot},{title:"hs-config-input-number",componentName:Xot},{title:"hs-config-cascader",componentName:tat},{title:"hs-config-cascader-panel",componentName:lat},{title:"hs-config-tree-select",componentName:dat}],WP={install(t){vat.forEach(n=>{t.component(n.title,n.componentName)})}};function mat(t){t.directive("auth",{mounted(n,r){cl().userInfos.authBtnList.some(a=>a===r.value)||n.parentNode.removeChild(n)}}),t.directive("auths",{mounted(n,r){let o=!1;cl().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=cl();Jx(r.value,o.userInfos.authBtnList)||n.parentNode.removeChild(n)}})}function hat(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 gat(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,x=p-o.offsetTop-v;let b=getComputedStyle(o).left,w=getComputedStyle(o).top;return b.includes("%")?(b=+document.body.clientWidth*(+b.replace(/\%/g,"")/100),w=+document.body.clientHeight*(+w.replace(/\%/g,"")/100)):(b=+b.replace(/\px/g,""),w=+w.replace(/\px/g,"")),{disX:c,disY:d,minDragDomLeft:g,maxDragDomLeft:y,minDragDomTop:C,maxDragDomTop:x,styL:b,styT:w}}function i(u,s,c){let{disX:d,disY:f,minDragDomLeft:p,maxDragDomLeft:m,minDragDomTop:v,maxDragDomTop:g,styL:y,styT:C}=c,x=s==="pc"?u.clientX-d:u.touches[0].clientX-d,b=s==="pc"?u.clientY-f:u.touches[0].clientY-f;-x>p?x=-p:x>m&&(x=m),-b>v?b=-v:b>g&&(b=g),o.style.cssText+=`;left:${x+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 bat(t){mat(t),hat(t),gat(t)}const yat=Object.freeze(Object.defineProperty({__proto__:null,directive:bat},Symbol.toStringTag,{value:"Module"}));function _at(t,n){dl.value=n==null?void 0:n.NEXT_NAME,L0.value=n==null?void 0:n.IS_DEV,t.use(rSe).use(WP)}exports.ClickOutside=Ii;exports.ElConfigProvider=oV;exports.ElMessage=An;exports.ElMessageBox=da;exports.ElTree=tO;exports.NextLoading=Z2;exports.Session=Oo;exports._=Ue;exports._export_sfc=Or;exports._sfc_main=RP;exports.avatar_default=UT;exports.baseForm=Ka;exports.commonjsGlobal=an;exports.component=WP;exports.delete_default=mw;exports.edit_default=JT;exports.formatAxis=eM;exports.getConfig=zl;exports.getDataType=tM;exports.getDefaultExportFromCjs=Jo;exports.getFormData=cP;exports.getLoadData=uP;exports.index=bZe;exports.index$1=yat;exports.index$2=n5e;exports.inputAttrConfigMap=w1;exports.isObjectValueEqual=Qx;exports.lodashExports=Vx;exports.mittBus=oM;exports.onBeforeRouteUpdate=q$e;exports.other=fM;exports.removeConfig=Xx;exports.request=vn;exports.setBackEndControlRefreshRoutes=z7e;exports.setting_default=uD;exports.showPopup=v1;exports.storeToRefs=ld;exports.systemStore=Ha;exports.to=Fu;exports.useBtnConfigController=x1;exports.useFieldConfigController=op;exports.useFileController=MP;exports.useHsAdminUi=_at;exports.useKeepALiveNames=KA;exports.useMenuController=u3;exports.usePostMan=OP;exports.useRoute=p7e;exports.useRouter=f7e;exports.useRoutesList=e1;exports.useSystemController=AP;exports.useTagsViewRoutes=i3;exports.useThemeConfig=l3;exports.useUserInfo=cl;exports.useVModel=Ax;exports.verifyUrl=f3;exports.zhCn=wO;