hs-admin-ui 14.6.3 → 14.6.5
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.
- package/dist/{401-DaQqh-uH.js → 401-DD-PkVC4.js} +1 -1
- package/dist/{401-CsEKx_WX.mjs → 401-DXRUNPkf.mjs} +1 -1
- package/dist/{404-BUoLpSbH.js → 404-CMkbhgkH.js} +1 -1
- package/dist/404-CMkbhgkH.js.gz +0 -0
- package/dist/{404-BiYgdi7K.mjs → 404-DeTmSPss.mjs} +1 -1
- package/dist/{404-BiYgdi7K.mjs.gz → 404-DeTmSPss.mjs.gz} +0 -0
- package/dist/{account-D8oUOMlE.mjs → account-DHjEnaUA.mjs} +1 -1
- package/dist/{account-DmGFSuSE.js → account-DTOrcTAS.js} +1 -1
- package/dist/{aside-ylO5-fQY.js → aside-B0yxxoUY.js} +1 -1
- package/dist/{aside-DooIbDE2.mjs → aside-BucMlxwI.mjs} +3 -3
- package/dist/{auth_test-DEYPGr4W.js → auth_test-CW9YWAr4.js} +1 -1
- package/dist/{auth_test-C7gLhlPX.mjs → auth_test-Cm7rTnMY.mjs} +1 -1
- package/dist/{baseFormConfig-CqPtzFMu.js → baseFormConfig-BPTHu0lX.js} +1 -1
- package/dist/{baseFormConfig-m1siwKk0.mjs → baseFormConfig-CBRZt8l3.mjs} +1 -1
- package/dist/baseFormConfig-CBRZt8l3.mjs.gz +0 -0
- package/dist/{baseTableConfig-D3Fl854W.mjs → baseTableConfig-Cvd2XRTD.mjs} +1 -1
- package/dist/baseTableConfig-Cvd2XRTD.mjs.gz +0 -0
- package/dist/{baseTableConfig-DEMrVq0R.js → baseTableConfig-Djd8rWtw.js} +1 -1
- package/dist/baseTableConfig-Djd8rWtw.js.gz +0 -0
- package/dist/{bcFormConfig-CzV9X7KN.mjs → bcFormConfig-BYqKpoYw.mjs} +1 -1
- package/dist/{bcFormConfig-D6d81ZN0.js → bcFormConfig-Bl31Hre9.js} +1 -1
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-pFv15QnI.mjs → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-BAudcEE0.mjs} +2 -2
- package/dist/{bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-DkXIYE73.js → bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-C9V2Batt.js} +1 -1
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-C5tEVPhW.js → bcSwitchSystems.vue_vue_type_script_setup_true_lang-BcvZHA1e.js} +1 -1
- package/dist/{bcSwitchSystems.vue_vue_type_script_setup_true_lang-Dp2tqQ_e.mjs → bcSwitchSystems.vue_vue_type_script_setup_true_lang-BnMCPPKN.mjs} +2 -2
- package/dist/{btnIndex-DuFSk9X1.mjs → btnIndex-DLExOvLJ.mjs} +3 -3
- package/dist/btnIndex-DLExOvLJ.mjs.gz +0 -0
- package/dist/{btnIndex-DWWUplIB.js → btnIndex-vfDxSphQ.js} +1 -1
- package/dist/{classic-Dr3y2B1u.mjs → classic-DRVGmbYD.mjs} +5 -5
- package/dist/{classic-Cie2ZMyR.js → classic-DykIxgUe.js} +1 -1
- package/dist/{cloneConfigDialog-i-k6Ogeb.mjs → cloneConfigDialog-Bh-V1L5x.mjs} +3 -3
- package/dist/cloneConfigDialog-Bh-V1L5x.mjs.gz +0 -0
- package/dist/{cloneConfigDialog-DYL0d9O6.js → cloneConfigDialog-DJSyPR6d.js} +1 -1
- package/dist/cloneConfigDialog-DJSyPR6d.js.gz +0 -0
- package/dist/{columns-DSBgZTjZ.js → columns-C6FU9KSC.js} +1 -1
- package/dist/{columns-brfMIIRM.mjs → columns-CcwYFc8_.mjs} +5 -5
- package/dist/{columnsAside-BP6f-rut.js → columnsAside-8H0ZmcDu.js} +1 -1
- package/dist/{columnsAside-Bch_YYBs.mjs → columnsAside-LElTg51G.mjs} +1 -1
- package/dist/{contextmenu-Dct58UCV.js → contextmenu-BnDCi0Yz.js} +1 -1
- package/dist/{contextmenu-kFW349vI.mjs → contextmenu-CJJOXi5_.mjs} +1 -1
- package/dist/{contextmenu-DLvwjZcg.mjs → contextmenu-CtJkieNg.mjs} +1 -1
- package/dist/{contextmenu-3TXoLmCL.js → contextmenu-Jy1RzJjx.js} +1 -1
- package/dist/{copyMenuConfig-C0E5rb_D.mjs → copyMenuConfig-6qjBBLdB.mjs} +1 -1
- package/dist/{copyMenuConfig-BVqA-ml3.js → copyMenuConfig-kUAnF67j.js} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-D7OL_tZ3.js → copyMenuConfig.vue_vue_type_script_setup_true_lang-BN6a4Vuw.js} +1 -1
- package/dist/{copyMenuConfig.vue_vue_type_script_setup_true_lang-BYq8F-Ns.mjs → copyMenuConfig.vue_vue_type_script_setup_true_lang-d0U41UaK.mjs} +2 -2
- package/dist/{copySystem-RjiptQZg.mjs → copySystem-BuUaeEde.mjs} +1 -1
- package/dist/{copySystem-B64HpPYW.js → copySystem-CqqcCokB.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-CVeEogav.js → copySystem.vue_vue_type_script_setup_true_lang-B1NzuEX_.js} +1 -1
- package/dist/{copySystem.vue_vue_type_script_setup_true_lang-DpvfCLmd.mjs → copySystem.vue_vue_type_script_setup_true_lang-D1XdgE_c.mjs} +2 -2
- package/dist/{defaults-DX5IuMrh.js → defaults-4_cZmdA_.js} +1 -1
- package/dist/{defaults-CQP4BrBH.mjs → defaults-PFSZ6tM2.mjs} +4 -4
- package/dist/{dialog-lrc-X4x3.mjs → dialog-BGfbqZrx.mjs} +1 -1
- package/dist/{dialog-BWWNGp1A.js → dialog-BJMLCYsJ.js} +1 -1
- package/dist/{dialog-CjgwcesB.mjs → dialog-Bf-RBZ8V.mjs} +1 -1
- package/dist/{dialog-DCMW_CDh.mjs → dialog-CK1TE0lX.mjs} +1 -1
- package/dist/{dialog-CsNjqU2p.js → dialog-CX6qovrN.js} +1 -1
- package/dist/{dialog-DYziF2c4.js → dialog-RrKXB65C.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-Bc6ovmbV.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CQwUyj55.js} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-GIVXOPn8.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-JKDr03qj.mjs} +3 -3
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Bjv6Tf3O.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D2Oy3IKk.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D2Oy3IKk.mjs.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Dz20aZqG.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DgumSFJx.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DgumSFJx.js.gz +0 -0
- package/dist/{dictDialog-BqTBQfS1.js → dictDialog-B44FoeVy.js} +1 -1
- package/dist/{dictDialog-BILBH0V7.mjs → dictDialog-DdqYrHio.mjs} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CBut3SLB.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CKJKLGr5.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CIXzAeu-.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DdwSolRo.mjs} +2 -2
- package/dist/{dictItemDialog-pYXaXGLL.mjs → dictItemDialog-DTpAE6Jc.mjs} +1 -1
- package/dist/{dictItemDialog-B4kO9iIW.js → dictItemDialog-WMQnDBxC.js} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-Be9wvnt1.js → dictItemDialog.vue_vue_type_script_setup_true_lang-Dif7s_RN.js} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_lang-BjA7-QJP.mjs → dictItemDialog.vue_vue_type_script_setup_true_lang-T-hT0xF6.mjs} +2 -2
- package/dist/{formConfig-DpGi-uZN.js → formConfig-DC_TV0J3.js} +1 -1
- package/dist/formConfig-DC_TV0J3.js.gz +0 -0
- package/dist/{formConfig-swMbbl7j.mjs → formConfig-yTtpxCXz.mjs} +6 -6
- package/dist/formConfig-yTtpxCXz.mjs.gz +0 -0
- package/dist/{header-GIQFZatH.mjs → header-CY6RE1kQ.mjs} +2 -2
- package/dist/{header-LoXSB1wA.js → header-DxaZy4nD.js} +1 -1
- package/dist/{horizontal-D2xwOYwU.mjs → horizontal-CNeSG606.mjs} +2 -2
- package/dist/{horizontal-BzT_zZbz.js → horizontal-DSXCNLJa.js} +1 -1
- package/dist/{hsAttrBtn-I1tnHT-U.js → hsAttrBtn-BYL3YOY_.js} +1 -1
- package/dist/{hsAttrBtn-DzatXaip.mjs → hsAttrBtn-DZCIv7tl.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DtY03jdr.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-Cw7VhkLG.js} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-DBzkiL22.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-ciG9lpPA.mjs} +4 -4
- package/dist/{hsAttrForm-CvTXLIfB.js → hsAttrForm-C3T9qVqS.js} +1 -1
- package/dist/{hsAttrForm-Cn5Tx9eI.mjs → hsAttrForm-CUdBoxWl.mjs} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-DQw6tCFP.js → hsAttrForm.vue_vue_type_script_setup_true_lang-C0-yTU6d.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-BUsvv_Dz.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-Cu17STIt.mjs} +4 -4
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-Cu17STIt.mjs.gz +0 -0
- package/dist/{hsBtnConfigList-BNu6Pc1B.js → hsBtnConfigList-CWEYXgSW.js} +1 -1
- package/dist/{hsBtnConfigList-U1SJFZ6s.mjs → hsBtnConfigList-ClPD-3G8.mjs} +1 -1
- package/dist/{hsBtnItemConfig-C5kiM2US.mjs → hsBtnItemConfig-B1pZwjWm.mjs} +1 -1
- package/dist/{hsBtnItemConfig-DyZzcuQy.js → hsBtnItemConfig-Chtg5CI3.js} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B6Xbsh2W.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B7g9oEtQ.mjs} +3 -3
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-CtdKbF5u.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-nNtiOAXl.js} +1 -1
- package/dist/{hsBtnPanel-B68gu39L.js → hsBtnPanel-CBUE_M_v.js} +1 -1
- package/dist/{hsBtnPanel-CxOx1OqT.mjs → hsBtnPanel-D_LVIK53.mjs} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BMYBWDDN.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-ClmnNWOk.mjs} +4 -4
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BVJZimvK.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DjxQWv27.js} +1 -1
- package/dist/{hsExpand-Ch6Hy3uY.js → hsExpand-Db4ALB5i.js} +1 -1
- package/dist/{hsExpand-guOFFGmb.mjs → hsExpand-zyIK2E_m.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-DrqKOb67.mjs → hsExpand.vue_vue_type_script_setup_true_lang-ByJ68-qC.mjs} +1 -1
- package/dist/{hsExpand.vue_vue_type_script_setup_true_lang-COhZgWoF.js → hsExpand.vue_vue_type_script_setup_true_lang-v1Fecnpf.js} +1 -1
- package/dist/{hsFormConfig-Dr_l9mQt.mjs → hsFormConfig-C1NAwng_.mjs} +1 -1
- package/dist/{hsFormConfig-BurChvES.js → hsFormConfig-CxCVhWLF.js} +1 -1
- package/dist/{hsFormConfigList-lC7BarFm.mjs → hsFormConfigList-BaYJwx4s.mjs} +2 -2
- package/dist/hsFormConfigList-BaYJwx4s.mjs.gz +0 -0
- package/dist/{hsFormConfigList-CKIAKBtw.js → hsFormConfigList-q-mvTchp.js} +1 -1
- package/dist/{hsFormPanel-Diz_dx2u.js → hsFormPanel-B0MWkEFW.js} +1 -1
- package/dist/{hsFormPanel-B2wm0-L-.mjs → hsFormPanel-PWpnqkmx.mjs} +6 -6
- package/dist/hsFormPanel-PWpnqkmx.mjs.gz +0 -0
- package/dist/{hsFormParse-DVM5Kq2I.mjs → hsFormParse-BpTqjhMD.mjs} +1 -1
- package/dist/{hsFormParse-DL0lSilW.js → hsFormParse-C3Gcs27G.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-CpNsihKV.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-D9l7kS6v.mjs} +3 -3
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-BLrAOwWC.js → hsFormParse.vue_vue_type_script_setup_true_lang-zKbMU_Ro.js} +1 -1
- package/dist/{hsPanelItem-C45hUoSS.js → hsPanelItem-CEmUWIcJ.js} +1 -1
- package/dist/{hsPanelItem-BtAnxejS.mjs → hsPanelItem-CvvE8yKm.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-D6QDK53h.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Dk2vlzuX.js} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BfMKJPyH.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-UozXSPsO.mjs} +1 -1
- package/dist/{index copy-Cn7j3hsP.js → index copy--iOK5hc7.js } +1 -1
- package/dist/{index copy-U890te4G.mjs → index copy-BnyYqCAU.mjs } +1 -1
- package/dist/index copy-BnyYqCAU.mjs.gz +0 -0
- package/dist/{index copy-BkE3_qz5.mjs → index copy-DJUpVAB3.mjs } +1 -1
- package/dist/{index copy-CtQRhzJZ.js → index copy-DN3CN-bQ.js } +1 -1
- package/dist/index copy-DN3CN-bQ.js.gz +0 -0
- package/dist/{index-CQ3tUon8.js → index-1-5rWRzl.js} +1 -1
- package/dist/{index-CSwknuAj.js → index-1ZxWQ-xH.js} +1 -1
- package/dist/{index-BWleIUMS.js → index-6y2yA8wV.js} +1 -1
- package/dist/{index-BgzU7USc.js → index-7EYLZb3-.js} +8 -8
- package/dist/index-7EYLZb3-.js.gz +0 -0
- package/dist/{index-C0NrVeDw.js → index-8dK-DKZG.js} +1 -1
- package/dist/{index-edR7TmCa.js → index-AmJe4YXJ.js} +1 -1
- package/dist/{index-BBupCMKb.mjs → index-B-HI-V-t.mjs} +9 -4
- package/dist/{index-BfCatN0X.mjs → index-B4DU32hf.mjs} +224 -146
- package/dist/index-B4DU32hf.mjs.gz +0 -0
- package/dist/{index-Dh84VAE0.mjs → index-B6oFXDH8.mjs} +1 -1
- package/dist/{index-z5B8IOjb.js → index-BBkD9hWq.js} +1 -1
- package/dist/{index-CymE8BY5.mjs → index-BEimecFD.mjs} +3 -3
- package/dist/{index-B8ViQ8XC.mjs → index-BFU6Xl_9.mjs} +1 -1
- package/dist/{index-CQkrTO8m.js → index-BK3WBsNm.js} +1 -1
- package/dist/{index-Cy1osDdh.mjs → index-BN2VI_IP.mjs} +1 -1
- package/dist/{index-BY8KhYW5.mjs → index-BQYy1bOU.mjs} +1 -1
- package/dist/index-BR-0wE1g.mjs +4 -0
- package/dist/{index-C_WHHK2G.js → index-BTKzDX5U.js} +1 -1
- package/dist/{index-BMUfLmSn.mjs → index-BXBu0JM3.mjs} +2 -2
- package/dist/{index-DBy_ZKEN.js → index-BcuVI4M3.js} +1 -1
- package/dist/{index-BK2u81yY.mjs → index-BeR5Il3_.mjs} +1 -1
- package/dist/{index-BQl4oTs9.js → index-Bil5Bulx.js} +1 -1
- package/dist/{index-BWEr-k8P.js → index-BmIrRP53.js} +1 -1
- package/dist/{index-BqB0xLIg.mjs → index-BwzyukKV.mjs} +1 -1
- package/dist/{index-DMSGBMD7.js → index-C1JGu_Na.js} +1 -1
- package/dist/{index-CZ_ZghbN.js → index-C3BiBB7l.js} +1 -1
- package/dist/index-C3BiBB7l.js.gz +0 -0
- package/dist/{index-KKu2EYo8.mjs → index-C4Cj8hhw.mjs} +3 -3
- package/dist/{index-8rlvMJlN.mjs → index-C5HKyPje.mjs} +4 -4
- package/dist/index-C5HKyPje.mjs.gz +0 -0
- package/dist/{index-C7te57n6.js → index-C5fTDS35.js} +1 -1
- package/dist/{index-DlZ71M2x.js → index-C6wzZp06.js} +1 -1
- package/dist/{index-CgdR6nKc.js → index-C7rv4LJi.js} +1 -1
- package/dist/{index-BlEP_WLz.js → index-C83ez6li.js} +1 -1
- package/dist/{index-Bk2w_SDQ.mjs → index-CH4H5WMM.mjs} +1 -1
- package/dist/{index-sCU67A8T.mjs → index-CHjt4td2.mjs} +1 -1
- package/dist/{index-BGS5SfZ3.mjs → index-CPLWvhzU.mjs} +1 -1
- package/dist/{index-C-CxGjWN.js → index-CVuL7_L7.js} +1 -1
- package/dist/{index-DLgy6XZq.mjs → index-CaodAncx.mjs} +1 -1
- package/dist/{index-BtK3qGoF.js → index-CjsLmIVJ.js} +1 -1
- package/dist/index-CjsLmIVJ.js.gz +0 -0
- package/dist/{index-CHqaYvmT.js → index-ClviLvLG.js} +1 -1
- package/dist/{index-BwXTHHLh.js → index-CwEe7EpL.js} +1 -1
- package/dist/{index-VJhf5CM-.mjs → index-CxOpxl59.mjs} +1 -1
- package/dist/{index-CLYMx73Q.mjs → index-D1fEUEQ-.mjs} +1 -1
- package/dist/{index-B03jKDLK.js → index-D3LFjuXv.js} +1 -1
- package/dist/{index-BuqhKNMW.js → index-D7GP-ocI.js} +1 -1
- package/dist/{index-BF7h59gg.mjs → index-D7pJYMgB.mjs} +1 -1
- package/dist/{index-B8t9HPi1.mjs → index-DBQ4p6Kp.mjs} +4 -4
- package/dist/{index-CEpDKSs6.mjs → index-DGeo1UGv.mjs} +4 -4
- package/dist/index-DGeo1UGv.mjs.gz +0 -0
- package/dist/{index-CXud2Ocv.js → index-DMcubpPR.js} +1 -1
- package/dist/{index-BRCQrGiA.mjs → index-DRYfJeY7.mjs} +4 -4
- package/dist/{index-DbPGlZo9.js → index-DSy99F8i.js} +1 -1
- package/dist/{index-Ca8OPD6L.js → index-DTzFi_bt.js} +1 -1
- package/dist/{index-DOb7BYKX.mjs → index-DVVY2LIu.mjs} +1 -1
- package/dist/{index-Bu3rvJGC.mjs → index-DXIYzX5X.mjs} +5 -5
- package/dist/{index-dHV1aOQu.mjs → index-DeCrNYtt.mjs} +10 -10
- package/dist/index-DeCrNYtt.mjs.gz +0 -0
- package/dist/{index-BMYnfek3.js → index-DgzqzpWi.js} +1 -1
- package/dist/{index-C5lh3-lb.mjs → index-Dj27y2Q_.mjs} +1 -1
- package/dist/{index-BYmu7Fv-.mjs → index-DkQJLjQy.mjs} +1 -1
- package/dist/{index-CnBMAxOM.mjs → index-DrMzbltr.mjs} +3 -3
- package/dist/{index-DbrCM30f.js → index-DtipM_2j.js} +1 -1
- package/dist/{index-BBzqCPYe.mjs → index-GzgPxI8u.mjs} +2 -2
- package/dist/index-GzgPxI8u.mjs.gz +0 -0
- package/dist/{index-5dL91HWY.js → index-HRqXJa6t.js} +1 -1
- package/dist/{index-CuTJUa1D.mjs → index-IYBckMO2.mjs} +1 -1
- package/dist/{index-xZxjZYxA.mjs → index-MOvBaJTb.mjs} +3 -3
- package/dist/{index-D9Aaz_Zv.js → index-Rp-aoIFP.js} +1 -1
- package/dist/{index-DnnLp-yB.mjs → index-VjTfbXzb.mjs} +1 -1
- package/dist/{index-t-0l-HSV.js → index-Xdpp_LGK.js} +1 -1
- package/dist/{index-DlBtOPIP.js → index-YsMKUauL.js} +1 -1
- package/dist/{index-C3Dx5vWj.mjs → index-bAqC46Qh.mjs} +1 -1
- package/dist/{index-BqYCildW.js → index-bgxKt9sX.js} +1 -1
- package/dist/{index-CdIUWD8M.mjs → index-gt7-hps2.mjs} +4 -4
- package/dist/{index-D62c_ZUI.mjs → index-jgG9SAdg.mjs} +5 -5
- package/dist/{index-DwmdSqmk.js → index-mIY2ym8f.js} +1 -1
- package/dist/index-ng_eM1YJ.js +1 -0
- package/dist/{index-C__RZxPV.js → index-osaovup-.js} +1 -1
- package/dist/{index-CCBJzTrq.mjs → index-t7F-y94P.mjs} +1 -1
- package/dist/{index-aOUnMt1i.mjs → index-uYU8Amwa.mjs} +4 -4
- package/dist/{index-bV6K9fGr.js → index-yHjz6fH7.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-jF7Jgycn.js → index.vue_vue_type_script_setup_true_lang-BM08mdhI.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-wFgl3rVs.mjs → index.vue_vue_type_script_setup_true_lang-BV2OHpK4.mjs} +4 -4
- package/dist/index.vue_vue_type_script_setup_true_lang-BV2OHpK4.mjs.gz +0 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-CU_FgYwF.mjs → index.vue_vue_type_script_setup_true_lang-BbW92PAK.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BKoK0pPo.js → index.vue_vue_type_script_setup_true_lang-BxpR002y.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-D9PY5mPX.mjs → index.vue_vue_type_script_setup_true_lang-C0OOgzys.mjs} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-CzEMx8GF.js → index.vue_vue_type_script_setup_true_lang-CQSSUHn1.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CFaZehUw.js → index.vue_vue_type_script_setup_true_lang-GqsA9WlR.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-B7korgeV.mjs → index.vue_vue_type_script_setup_true_lang-J8oSY8Lx.mjs} +3 -3
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-B_tTl7i3.js → index.vue_vue_type_script_setup_true_name_iconSelector_lang-2_Kk-SUy.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_name_iconSelector_lang-CS0Vhpyt.mjs → index.vue_vue_type_script_setup_true_name_iconSelector_lang-BPTEyVaJ.mjs} +2 -2
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-BPTEyVaJ.mjs.gz +0 -0
- package/dist/{link-Bv1_JXTk.mjs → link-BE0wn5pS.mjs} +1 -1
- package/dist/{link-CxgJ5I3h.js → link-BvpFhyFI.js} +1 -1
- package/dist/{list-BbwZgX-0.js → list-7ZevPbtl.js} +1 -1
- package/dist/{list-RRI8BmNG.mjs → list-BLSP0P6Y.mjs} +1 -1
- package/dist/{main-C1NJe4rt.js → main-CM8PSl_a.js} +1 -1
- package/dist/{main-CAq8MT3l.mjs → main-CvHm05TE.mjs} +3 -3
- package/dist/{mobile-CADItp-j.mjs → mobile-Bcp7KCu9.mjs} +1 -1
- package/dist/{mobile-BPxG7OOX.js → mobile-CCy4wRth.js} +1 -1
- package/dist/{parent-mIChCBQa.js → parent-CUvHKYbI.js} +1 -1
- package/dist/{parent-Ba1Pli9A.mjs → parent-DMFwXe9R.mjs} +1 -1
- package/dist/{popup-BmSV0_R_.mjs → popup-CU_Ao_AJ.mjs} +1 -1
- package/dist/{popup-CvsJb7Zv.js → popup-LOdBuw_m.js} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-BJQavfTT.js → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-COHnde9a.js} +1 -1
- package/dist/{popup.vue_vue_type_script_setup_true_name_replaceRules_lang-DyWX-j6P.mjs → popup.vue_vue_type_script_setup_true_name_replaceRules_lang-DfP2Q3gr.mjs} +1 -1
- package/dist/{roleItem-D4CLjprX.mjs → roleItem--AZoGhKX.mjs} +1 -1
- package/dist/{roleItem-nsGsBRhA.js → roleItem-BpcPdsQw.js} +1 -1
- package/dist/{saveForm-D1Q-H1lZ.mjs → saveForm-BnW2LfEs.mjs} +3 -3
- package/dist/{saveForm-BmDNCLlQ.js → saveForm-uyQzccIa.js} +1 -1
- package/dist/{scan-Bd8YeRNo.mjs → scan-D9O5btS0.mjs} +1 -1
- package/dist/scan-D9O5btS0.mjs.gz +0 -0
- package/dist/{scan-BLDpIZMS.js → scan-cv4R1DLt.js} +1 -1
- package/dist/scan-cv4R1DLt.js.gz +0 -0
- package/dist/{search-BJ3wodLk.js → search-CsRz4KHL.js} +1 -1
- package/dist/{search-B2rLt_pp.mjs → search-Dl_Hd4BA.mjs} +1 -1
- package/dist/{selectConfig-BeUnCKiR.mjs → selectConfig-CFn3mCMK.mjs} +1 -1
- package/dist/selectConfig-CFn3mCMK.mjs.gz +0 -0
- package/dist/{selectConfig-OrixNkXj.js → selectConfig-j_SWGvVX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/{subItem-BqRUzjtT.js → subItem-BYCxRhl0.js} +1 -1
- package/dist/{subItem-CWr158_s.mjs → subItem-kNgbwrxK.mjs} +1 -1
- package/dist/{tagsView-B2sz-G50.js → tagsView-69SWNi1d.js} +2 -2
- package/dist/tagsView-69SWNi1d.js.gz +0 -0
- package/dist/{tagsView-BrnRl_a8.mjs → tagsView-C8rktDKd.mjs} +2 -2
- package/dist/tagsView-C8rktDKd.mjs.gz +0 -0
- package/dist/{transverse-l39ZI0Ba.mjs → transverse-CRfrxNHu.mjs} +3 -3
- package/dist/{transverse-Bpni4lnT.js → transverse-DMd0idHg.js} +1 -1
- package/dist/types/components/business/bcTable/components/query/query.vue.d.ts +2 -6
- package/dist/types/components/business/bcTable/components/query/useQuickSearch.d.ts +8 -0
- package/dist/types/utils/download.d.ts +0 -1
- package/dist/{uploadAvatar-Bs3NYoNb.js → uploadAvatar-BH3Qep1g.js} +1 -1
- package/dist/uploadAvatar-BH3Qep1g.js.gz +0 -0
- package/dist/{uploadAvatar-Bh1so_GW.mjs → uploadAvatar-Cl49ARki.mjs} +1 -1
- package/dist/uploadAvatar-Cl49ARki.mjs.gz +0 -0
- package/dist/{user-DnEJva9z.mjs → user-D-fd2z4e.mjs} +3 -3
- package/dist/{user-BQeRMQfn.js → user-DhpcCpU3.js} +1 -1
- package/dist/{userNews-BNsBE1DN.mjs → userNews-CZDB01Bn.mjs} +1 -1
- package/dist/{userNews-DdnFuA0C.js → userNews-d9gGbh91.js} +1 -1
- package/dist/{userSelect-DCYDZXV1.js → userSelect-BrqJFDYR.js} +1 -1
- package/dist/{userSelect-2P_7g0L1.mjs → userSelect-DPn6XC0P.mjs} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-qDzY8Dj6.js → userSelect.vue_vue_type_script_setup_true_lang-C56OuzlZ.js} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-BHTab9Ys.mjs → userSelect.vue_vue_type_script_setup_true_lang-D_tXhm_P.mjs} +1 -1
- package/dist/{vertical-B78h2x26.mjs → vertical-Bc8XwCpD.mjs} +2 -2
- package/dist/{vertical-BsTqSidp.js → vertical-Bewmc7ad.js} +1 -1
- package/package.json +1 -1
- package/dist/404-BUoLpSbH.js.gz +0 -0
- package/dist/baseFormConfig-m1siwKk0.mjs.gz +0 -0
- package/dist/baseTableConfig-D3Fl854W.mjs.gz +0 -0
- package/dist/baseTableConfig-DEMrVq0R.js.gz +0 -0
- package/dist/btnIndex-DuFSk9X1.mjs.gz +0 -0
- package/dist/cloneConfigDialog-DYL0d9O6.js.gz +0 -0
- package/dist/cloneConfigDialog-i-k6Ogeb.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Bjv6Tf3O.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Dz20aZqG.js.gz +0 -0
- package/dist/formConfig-DpGi-uZN.js.gz +0 -0
- package/dist/formConfig-swMbbl7j.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BUsvv_Dz.mjs.gz +0 -0
- package/dist/hsFormConfigList-lC7BarFm.mjs.gz +0 -0
- package/dist/hsFormPanel-B2wm0-L-.mjs.gz +0 -0
- package/dist/index copy-CtQRhzJZ.js.gz +0 -0
- package/dist/index copy-U890te4G.mjs.gz +0 -0
- package/dist/index-8rlvMJlN.mjs.gz +0 -0
- package/dist/index-BBzqCPYe.mjs.gz +0 -0
- package/dist/index-BfCatN0X.mjs.gz +0 -0
- package/dist/index-BgzU7USc.js.gz +0 -0
- package/dist/index-BtK3qGoF.js.gz +0 -0
- package/dist/index-CEpDKSs6.mjs.gz +0 -0
- package/dist/index-CZ_ZghbN.js.gz +0 -0
- package/dist/index-dHV1aOQu.mjs.gz +0 -0
- package/dist/index-gaIuitJJ.mjs +0 -4
- package/dist/index-yqDHMaHf.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-wFgl3rVs.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-CS0Vhpyt.mjs.gz +0 -0
- package/dist/scan-BLDpIZMS.js.gz +0 -0
- package/dist/scan-Bd8YeRNo.mjs.gz +0 -0
- package/dist/selectConfig-BeUnCKiR.mjs.gz +0 -0
- package/dist/tagsView-B2sz-G50.js.gz +0 -0
- package/dist/tagsView-BrnRl_a8.mjs.gz +0 -0
- package/dist/uploadAvatar-Bh1so_GW.mjs.gz +0 -0
- package/dist/uploadAvatar-Bs3NYoNb.js.gz +0 -0
package/dist/style.css.gz
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-7EYLZb3-.js"),n=["onClick"],l=e.defineComponent({name:"navMenuSubItem"}),o=e.defineComponent({...l,props:{chil:{type:Array,default:()=>[]}},setup(l){const o=l,a=e.computed((()=>o.chil));return(l,o)=>{const i=e.resolveComponent("SvgIcon"),r=e.resolveComponent("sub-item",!0),c=e.resolveComponent("el-sub-menu"),m=e.resolveComponent("el-menu-item");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.children&&l.children.length>0?(e.openBlock(),e.createBlock(c,{index:`${l.path}?project=his`,key:l.path},{title:e.withCtx((()=>[e.createVNode(i,{name:l.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(l.meta.title),1)])),default:e.withCtx((()=>[e.createVNode(r,{chil:l.children},null,8,["chil"])])),_:2},1032,["index"])):(e.openBlock(),e.createBlock(m,{index:`${l.path}?project=his`,key:l.path},{default:e.withCtx((()=>[!l.meta.isLink||l.meta.isLink&&l.meta.isIframe?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(i,{name:l.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(l.meta.title),1)],64)):(e.openBlock(),e.createElementBlock("a",{key:1,class:"w100",onClick:e.withModifiers((e=>(e=>{t.other.handleOpenLink(e)})(l)),["prevent"])},[e.createVNode(i,{name:l.meta.icon},null,8,["name"]),e.createTextVNode(" "+e.toDisplayString(l.meta.title),1)],8,n))])),_:2},1032,["index"]))],64)))),256)}}});exports.default=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, createElementBlock, openBlock, Fragment, renderList, createBlock, withCtx, createVNode, createElementVNode, toDisplayString, withModifiers, createTextVNode } from "vue";
|
|
2
|
-
import { $ as other } from "./index-
|
|
2
|
+
import { $ as other } from "./index-B4DU32hf.mjs";
|
|
3
3
|
const _hoisted_1 = ["onClick"];
|
|
4
4
|
const __default__ = defineComponent({
|
|
5
5
|
name: "navMenuSubItem"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),n=require("pinia"),o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("vue-router"),n=require("pinia"),o=require("./index-7EYLZb3-.js");
|
|
2
2
|
/**!
|
|
3
3
|
* Sortable 1.15.6
|
|
4
4
|
* @author RubaXa <trash@rubaxa.org>
|
|
5
5
|
* @author owenm <owen23355@gmail.com>
|
|
6
6
|
* @license MIT
|
|
7
7
|
*/
|
|
8
|
-
function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function c(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var d=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),h=c(/Edge/i),p=c(/firefox/i),f=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),m=c(/iP(ad|od|hone)/i),g=c(/chrome/i)&&c(/android/i),v={capture:!1,passive:!1};function b(e,t,n){e.addEventListener(t,n,!d&&v)}function w(e,t,n){e.removeEventListener(t,n,!d&&v)}function y(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function D(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function S(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&y(e,t):y(e,t))||o&&e===n)return e;if(e===n)break}while(e=D(e))}return null}var E,C=/\s+/g;function _(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(C," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(C," ")}}function T(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function x(e,t){var n="";if("string"==typeof e)n=e;else do{var o=T(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function k(e,t,n){if(e){var o=e.getElementsByTagName(t),i=0,a=o.length;if(n)for(;i<a;i++)n(o[i],i);return o}return[]}function V(){var e=document.scrollingElement;return e||document.documentElement}function O(e,t,n,o,i){if(e.getBoundingClientRect||e===window){var a,r,l,s,u,c,h;if(e!==window&&e.parentNode&&e!==V()?(r=(a=e.getBoundingClientRect()).top,l=a.left,s=a.bottom,u=a.right,c=a.height,h=a.width):(r=0,l=0,s=window.innerHeight,u=window.innerWidth,c=window.innerHeight,h=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!d))do{if(i&&i.getBoundingClientRect&&("none"!==T(i,"transform")||n&&"static"!==T(i,"position"))){var p=i.getBoundingClientRect();r-=p.top+parseInt(T(i,"border-top-width")),l-=p.left+parseInt(T(i,"border-left-width")),s=r+a.height,u=l+a.width;break}}while(i=i.parentNode);if(o&&e!==window){var f=x(i||e),m=f&&f.a,g=f&&f.d;f&&(s=(r/=g)+(c/=g),u=(l/=m)+(h/=m))}return{top:r,left:l,bottom:s,right:u,width:h,height:c}}}function A(e,t,n){for(var o=N(e,!0),i=O(e)[t];o;){if(!(i>=O(o)[n]))return o;if(o===V())break;o=N(o,!1)}return!1}function L(e,t,n,o){for(var i=0,a=0,r=e.children;a<r.length;){if("none"!==r[a].style.display&&r[a]!==Xe.ghost&&(o||r[a]!==Xe.dragged)&&S(r[a],n.draggable,e,!1)){if(i===t)return r[a];i++}a++}return null}function P(e,t){for(var n=e.lastElementChild;n&&(n===Xe.ghost||"none"===T(n,"display")||t&&!y(n,t));)n=n.previousElementSibling;return n||null}function I(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Xe.clone||t&&!y(e,t)||n++;return n}function M(e){var t=0,n=0,o=V();if(e)do{var i=x(e),a=i.a,r=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*r}while(e!==o&&(e=e.parentNode));return[t,n]}function N(e,t){if(!e||!e.getBoundingClientRect)return V();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=T(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return V();if(o||t)return n;o=!0}}}while(n=n.parentNode);return V()}function R(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function B(e,t){return function(){if(!E){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),E=setTimeout((function(){E=void 0}),t)}}}function q(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function X(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Y(e,t,n){var o={};return Array.from(e.children).forEach((function(i){var a,r,l,s;if(S(i,t.draggable,e,!1)&&!i.animated&&i!==n){var u=O(i);o.left=Math.min(null!==(a=o.left)&&void 0!==a?a:1/0,u.left),o.top=Math.min(null!==(r=o.top)&&void 0!==r?r:1/0,u.top),o.right=Math.max(null!==(l=o.right)&&void 0!==l?l:-1/0,u.right),o.bottom=Math.max(null!==(s=o.bottom)&&void 0!==s?s:-1/0,u.bottom)}})),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}var j="Sortable"+(new Date).getTime();function F(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==T(e,"display")&&e!==Xe.ghost){t.push({target:e,rect:O(e)});var n=a({},t[t.length-1].rect);if(e.thisAnimationDuration){var o=x(e,!0);o&&(n.top-=o.f,n.left-=o.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var i=!1,a=0;t.forEach((function(e){var t=0,n=e.target,r=n.fromRect,l=O(n),s=n.prevFromRect,u=n.prevToRect,c=e.rect,d=x(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&R(s,l)&&!R(r,l)&&(c.top-l.top)/(c.left-l.left)===(r.top-l.top)/(r.left-l.left)&&(t=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(c,s,u,o.options)),R(l,r)||(n.prevFromRect=r,n.prevToRect=l,t||(t=o.options.animation),o.animate(n,c,l,t)),t&&(i=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"==typeof n&&n()}),a):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,o){if(o){T(e,"transition",""),T(e,"transform","");var i=x(this.el),a=i&&i.a,r=i&&i.d,l=(t.left-n.left)/(a||1),s=(t.top-n.top)/(r||1);e.animatingX=!!l,e.animatingY=!!s,T(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),T(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),T(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){T(e,"transition",""),T(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}}var H=[],W={initializeByDefault:!0},U={mount:function(e){for(var t in W)W.hasOwnProperty(t)&&!(t in e)&&(e[t]=W[t]);H.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),H.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var i=e+"Global";H.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][i]&&t[o.pluginName][i](a({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](a({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var i in H.forEach((function(o){var i=o.pluginName;if(e.options[i]||o.initializeByDefault){var a=new o(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,s(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);void 0!==a&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return H.forEach((function(o){"function"==typeof o.eventProperties&&s(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return H.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[t]&&(o=i.optionListeners[t].call(e[i.pluginName],n))})),o}};var z=["evt"],$=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,i=u(n,z);U.pluginEvent.bind(Xe)(e,t,a({dragEl:K,parentEl:Z,ghostEl:Q,rootEl:J,nextEl:ee,lastDownEl:te,cloneEl:ne,cloneHidden:oe,dragStarted:ge,putSortable:ue,activeSortable:Xe.active,originalEvent:o,oldIndex:ie,oldDraggableIndex:re,newIndex:ae,newDraggableIndex:le,hideGhostForTarget:Ne,unhideGhostForTarget:Re,cloneNowHidden:function(){oe=!0},cloneNowShown:function(){oe=!1},dispatchSortableEvent:function(e){G({sortable:t,name:e,originalEvent:o})}},i))};function G(e){!function(e){var t=e.sortable,n=e.rootEl,o=e.name,i=e.targetEl,r=e.cloneEl,l=e.toEl,s=e.fromEl,u=e.oldIndex,c=e.newIndex,p=e.oldDraggableIndex,f=e.newDraggableIndex,m=e.originalEvent,g=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[j]){var b,w=t.options,y="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||d||h?(b=document.createEvent("Event")).initEvent(o,!0,!0):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=l||n,b.from=s||n,b.item=i||n,b.clone=r,b.oldIndex=u,b.newIndex=c,b.oldDraggableIndex=p,b.newDraggableIndex=f,b.originalEvent=m,b.pullMode=g?g.lastPutMode:void 0;var D=a(a({},v),U.getEventProperties(o,t));for(var S in D)b[S]=D[S];n&&n.dispatchEvent(b),w[y]&&w[y].call(t,b)}}(a({putSortable:ue,cloneEl:ne,targetEl:K,rootEl:J,oldIndex:ie,oldDraggableIndex:re,newIndex:ae,newDraggableIndex:le},e))}var K,Z,Q,J,ee,te,ne,oe,ie,ae,re,le,se,ue,ce,de,he,pe,fe,me,ge,ve,be,we,ye,De=!1,Se=!1,Ee=[],Ce=!1,_e=!1,Te=[],xe=!1,ke=[],Ve="undefined"!=typeof document,Oe=m,Ae=h||d?"cssFloat":"float",Le=Ve&&!g&&!m&&"draggable"in document.createElement("div"),Pe=function(){if(Ve){if(d)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ie=function(e,t){var n=T(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=L(e,0,t),a=L(e,1,t),r=i&&T(i),l=a&&T(a),s=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+O(i).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&r.float&&"none"!==r.float){var c="left"===r.float?"left":"right";return!a||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return i&&("block"===r.display||"flex"===r.display||"table"===r.display||"grid"===r.display||s>=o&&"none"===n[Ae]||a&&"none"===n[Ae]&&s+u>o)?"vertical":"horizontal"},Me=function(e){function t(e,n){return function(o,i,a,r){var l=o.options.group.name&&i.options.group.name&&o.options.group.name===i.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,i,a,r),n)(o,i,a,r);var s=(n?o:i).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},o=e.group;o&&"object"==r(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},Ne=function(){!Pe&&Q&&T(Q,"display","none")},Re=function(){!Pe&&Q&&T(Q,"display","")};Ve&&!g&&document.addEventListener("click",(function(e){if(Se)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Se=!1,!1}),!0);var Be=function(e){if(K){e=e.touches?e.touches[0]:e;var t=(i=e.clientX,a=e.clientY,Ee.some((function(e){var t=e[j].options.emptyInsertThreshold;if(t&&!P(e)){var n=O(e),o=i>=n.left-t&&i<=n.right+t,l=a>=n.top-t&&a<=n.bottom+t;return o&&l?r=e:void 0}})),r);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[j]._onDragOver(n)}}var i,a,r},qe=function(e){K&&K.parentNode[j]._isOutsideThisEl(e.target)};function Xe(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=s({},t),e[j]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ie(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.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:!1!==Xe.supportPointer&&"PointerEvent"in window&&(!f||m),emptyInsertThreshold:5};for(var o in U.initializePlugins(this,e,n),n)!(o in t)&&(t[o]=n[o]);for(var i in Me(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Le,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?b(e,"pointerdown",this._onTapStart):(b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),Ee.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),s(this,F())}function Ye(e,t,n,o,i,a,r,l){var s,u,c=e[j],p=c.options.onMove;return!window.CustomEvent||d||h?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=o,s.related=i||t,s.relatedRect=a||O(t),s.willInsertAfter=l,s.originalEvent=r,e.dispatchEvent(s),p&&(u=p.call(c,s,r)),u}function je(e){e.draggable=!1}function Fe(){xe=!1}function He(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function We(e){return setTimeout(e,0)}function Ue(e){return clearTimeout(e)}Xe.prototype={constructor:Xe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ve=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,K):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,i=o.preventOnFilter,a=e.type,r=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(r||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=o.filter;if(function(e){ke.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var o=t[n];o.checked&&ke.push(o)}}(n),!K&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!f||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=S(l,o.draggable,n,!1))&&l.animated||te===l)){if(ie=I(l),re=I(l,o.draggable),"function"==typeof u){if(u.call(this,e,l,this))return G({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),$("filter",t,{evt:e}),void(i&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(o){if(o=S(s,o.trim(),n,!1))return G({sortable:t,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),$("filter",t,{evt:e}),!0}))))return void(i&&e.preventDefault());o.handle&&!S(s,o.handle,n,!1)||this._prepareDragStart(e,r,l)}}},_prepareDragStart:function(e,t,n){var o,i=this,a=i.el,r=i.options,l=a.ownerDocument;if(n&&!K&&n.parentNode===a){var s=O(n);if(J=a,Z=(K=n).parentNode,ee=K.nextSibling,te=n,se=r.group,Xe.dragged=K,ce={target:K,clientX:(t||e).clientX,clientY:(t||e).clientY},fe=ce.clientX-s.left,me=ce.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,K.style["will-change"]="all",o=function(){$("delayEnded",i,{evt:e}),Xe.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!p&&i.nativeDraggable&&(K.draggable=!0),i._triggerDragStart(e,t),G({sortable:i,name:"choose",originalEvent:e}),_(K,r.chosenClass,!0))},r.ignore.split(",").forEach((function(e){k(K,e.trim(),je)})),b(l,"dragover",Be),b(l,"mousemove",Be),b(l,"touchmove",Be),r.supportPointer?(b(l,"pointerup",i._onDrop),!this.nativeDraggable&&b(l,"pointercancel",i._onDrop)):(b(l,"mouseup",i._onDrop),b(l,"touchend",i._onDrop),b(l,"touchcancel",i._onDrop)),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,K.draggable=!0),$("delayStart",this,{evt:e}),!r.delay||r.delayOnTouchOnly&&!t||this.nativeDraggable&&(h||d))o();else{if(Xe.eventCanceled)return void this._onDrop();r.supportPointer?(b(l,"pointerup",i._disableDelayedDrag),b(l,"pointercancel",i._disableDelayedDrag)):(b(l,"mouseup",i._disableDelayedDrag),b(l,"touchend",i._disableDelayedDrag),b(l,"touchcancel",i._disableDelayedDrag)),b(l,"mousemove",i._delayedDragTouchMoveHandler),b(l,"touchmove",i._delayedDragTouchMoveHandler),r.supportPointer&&b(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(o,r.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){K&&je(K),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;w(e,"mouseup",this._disableDelayedDrag),w(e,"touchend",this._disableDelayedDrag),w(e,"touchcancel",this._disableDelayedDrag),w(e,"pointerup",this._disableDelayedDrag),w(e,"pointercancel",this._disableDelayedDrag),w(e,"mousemove",this._delayedDragTouchMoveHandler),w(e,"touchmove",this._delayedDragTouchMoveHandler),w(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):b(document,t?"touchmove":"mousemove",this._onTouchMove):(b(K,"dragend",this),b(J,"dragstart",this._onDragStart));try{document.selection?We((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(De=!1,J&&K){$("dragStarted",this,{evt:t}),this.nativeDraggable&&b(document,"dragover",qe);var n=this.options;!e&&_(K,n.dragClass,!1),_(K,n.ghostClass,!0),Xe.active=this,e&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(de){this._lastX=de.clientX,this._lastY=de.clientY,Ne();for(var e=document.elementFromPoint(de.clientX,de.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(de.clientX,de.clientY))!==t;)t=e;if(K.parentNode[j]._isOutsideThisEl(e),t)do{if(t[j]){if(t[j]._onDragOver({clientX:de.clientX,clientY:de.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=D(t));Re()}},_onTouchMove:function(e){if(ce){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=Q&&x(Q,!0),r=Q&&a&&a.a,l=Q&&a&&a.d,s=Oe&&ye&&M(ye),u=(i.clientX-ce.clientX+o.x)/(r||1)+(s?s[0]-Te[0]:0)/(r||1),c=(i.clientY-ce.clientY+o.y)/(l||1)+(s?s[1]-Te[1]:0)/(l||1);if(!Xe.active&&!De){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Q){a?(a.e+=u-(he||0),a.f+=c-(pe||0)):a={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");T(Q,"webkitTransform",d),T(Q,"mozTransform",d),T(Q,"msTransform",d),T(Q,"transform",d),he=u,pe=c,de=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Q){var e=this.options.fallbackOnBody?document.body:J,t=O(K,!0,Oe,!0,e),n=this.options;if(Oe){for(ye=e;"static"===T(ye,"position")&&"none"===T(ye,"transform")&&ye!==document;)ye=ye.parentNode;ye!==document.body&&ye!==document.documentElement?(ye===document&&(ye=V()),t.top+=ye.scrollTop,t.left+=ye.scrollLeft):ye=V(),Te=M(ye)}_(Q=K.cloneNode(!0),n.ghostClass,!1),_(Q,n.fallbackClass,!0),_(Q,n.dragClass,!0),T(Q,"transition",""),T(Q,"transform",""),T(Q,"box-sizing","border-box"),T(Q,"margin",0),T(Q,"top",t.top),T(Q,"left",t.left),T(Q,"width",t.width),T(Q,"height",t.height),T(Q,"opacity","0.8"),T(Q,"position",Oe?"absolute":"fixed"),T(Q,"zIndex","100000"),T(Q,"pointerEvents","none"),Xe.ghost=Q,e.appendChild(Q),T(Q,"transform-origin",fe/parseInt(Q.style.width)*100+"% "+me/parseInt(Q.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,i=n.options;$("dragStart",this,{evt:e}),Xe.eventCanceled?this._onDrop():($("setupClone",this),Xe.eventCanceled||((ne=X(K)).removeAttribute("id"),ne.draggable=!1,ne.style["will-change"]="",this._hideClone(),_(ne,this.options.chosenClass,!1),Xe.clone=ne),n.cloneId=We((function(){$("clone",n),Xe.eventCanceled||(n.options.removeCloneOnHide||J.insertBefore(ne,K),n._hideClone(),G({sortable:n,name:"clone"}))})),!t&&_(K,i.dragClass,!0),t?(Se=!0,n._loopId=setInterval(n._emulateDragOver,50)):(w(document,"mouseup",n._onDrop),w(document,"touchend",n._onDrop),w(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(n,o,K)),b(document,"drop",n),T(K,"transform","translateZ(0)")),De=!0,n._dragStartId=We(n._dragStarted.bind(n,t,e)),b(document,"selectstart",n),ge=!0,window.getSelection().removeAllRanges(),f&&T(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,i,r=this.el,l=e.target,s=this.options,u=s.group,c=Xe.active,d=se===u,h=s.sort,p=ue||c,f=this,m=!1;if(!xe){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=S(l,s.draggable,r,!0),B("dragOver"),Xe.eventCanceled)return m;if(K.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||f._ignoreWhileAnimating===l)return F(!1);if(Se=!1,c&&!s.disabled&&(d?h||(o=Z!==J):ue===this||(this.lastPutMode=se.checkPull(this,c,K,e))&&u.checkPut(this,c,K,e))){if(i="vertical"===this._getDirection(e,l),t=O(K),B("dragOverValid"),Xe.eventCanceled)return m;if(o)return Z=J,X(),this._hideClone(),B("revert"),Xe.eventCanceled||(ee?J.insertBefore(K,ee):J.appendChild(K)),F(!0);var g=P(r,s.draggable);if(!g||function(e,t,n){var o=O(P(n.el,n.options.draggable)),i=Y(n.el,n.options,Q),a=10;return t?e.clientX>i.right+a||e.clientY>o.bottom&&e.clientX>o.left:e.clientY>i.bottom+a||e.clientX>o.right&&e.clientY>o.top}(e,i,this)&&!g.animated){if(g===K)return F(!1);if(g&&r===e.target&&(l=g),l&&(n=O(l)),!1!==Ye(J,r,K,t,l,n,e,!!l))return X(),g&&g.nextSibling?r.insertBefore(K,g.nextSibling):r.appendChild(K),Z=r,H(),F(!0)}else if(g&&function(e,t,n){var o=O(L(n.el,0,n.options,!0)),i=Y(n.el,n.options,Q),a=10;return t?e.clientX<i.left-a||e.clientY<o.top&&e.clientX<o.right:e.clientY<i.top-a||e.clientY<o.bottom&&e.clientX<o.left}(e,i,this)){var v=L(r,0,s,!0);if(v===K)return F(!1);if(n=O(l=v),!1!==Ye(J,r,K,t,l,n,e,!1))return X(),r.insertBefore(K,v),Z=r,H(),F(!0)}else if(l.parentNode===r){n=O(l);var b,w,y,D=K.parentNode!==r,E=!function(e,t,n){var o=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,r=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return o===r||i===l||o+a/2===r+s/2}(K.animated&&K.toRect||t,l.animated&&l.toRect||n,i),C=i?"top":"left",x=A(l,"top","top")||A(K,"top","top"),k=x?x.scrollTop:void 0;if(ve!==l&&(w=n[C],Ce=!1,_e=!E&&s.invertSwap||D),b=function(e,t,n,o,i,a,r,l){var s=o?e.clientY:e.clientX,u=o?n.height:n.width,c=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!r)if(l&&we<u*i){if(!Ce&&(1===be?s>c+u*a/2:s<d-u*a/2)&&(Ce=!0),Ce)h=!0;else if(1===be?s<c+we:s>d-we)return-be}else if(s>c+u*(1-i)/2&&s<d-u*(1-i)/2)return function(e){return I(K)<I(e)?1:-1}(t);if((h=h||r)&&(s<c+u*a/2||s>d-u*a/2))return s>c+u/2?1:-1;return 0}(e,l,n,i,E?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,_e,ve===l),0!==b){var V=I(K);do{V-=b,y=Z.children[V]}while(y&&("none"===T(y,"display")||y===Q))}if(0===b||y===l)return F(!1);ve=l,be=b;var M=l.nextElementSibling,N=!1,R=Ye(J,r,K,t,l,n,e,N=1===b);if(!1!==R)return 1!==R&&-1!==R||(N=1===R),xe=!0,setTimeout(Fe,30),X(),N&&!M?r.appendChild(K):l.parentNode.insertBefore(K,N?M:l),x&&q(x,0,k-x.scrollTop),Z=K.parentNode,void 0===w||_e||(we=Math.abs(w-O(l)[C])),H(),F(!0)}if(r.contains(K))return F(!1)}return!1}function B(s,u){$(s,f,a({evt:e,isOwner:d,axis:i?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:h,fromSortable:p,target:l,completed:F,onMove:function(n,o){return Ye(J,r,K,t,n,O(n),e,o)},changed:H},u))}function X(){B("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function F(t){return B("dragOverCompleted",{insertion:t}),t&&(d?c._hideClone():c._showClone(f),f!==p&&(_(K,ue?ue.options.ghostClass:c.options.ghostClass,!1),_(K,s.ghostClass,!0)),ue!==f&&f!==Xe.active?ue=f:f===Xe.active&&ue&&(ue=null),p===f&&(f._ignoreWhileAnimating=l),f.animateAll((function(){B("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===K&&!K.animated||l===r&&!l.animated)&&(ve=null),s.dragoverBubble||e.rootEl||l===document||(K.parentNode[j]._isOutsideThisEl(e.target),!t&&Be(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function H(){ae=I(K),le=I(K,s.draggable),G({sortable:f,name:"change",toEl:r,newIndex:ae,newDraggableIndex:le,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){w(document,"mousemove",this._onTouchMove),w(document,"touchmove",this._onTouchMove),w(document,"pointermove",this._onTouchMove),w(document,"dragover",Be),w(document,"mousemove",Be),w(document,"touchmove",Be)},_offUpEvents:function(){var e=this.el.ownerDocument;w(e,"mouseup",this._onDrop),w(e,"touchend",this._onDrop),w(e,"pointerup",this._onDrop),w(e,"pointercancel",this._onDrop),w(e,"touchcancel",this._onDrop),w(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ae=I(K),le=I(K,n.draggable),$("drop",this,{evt:e}),Z=K&&K.parentNode,ae=I(K),le=I(K,n.draggable),Xe.eventCanceled||(De=!1,_e=!1,Ce=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ue(this.cloneId),Ue(this._dragStartId),this.nativeDraggable&&(w(document,"drop",this),w(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&T(document.body,"user-select",""),T(K,"transform",""),e&&(ge&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Q&&Q.parentNode&&Q.parentNode.removeChild(Q),(J===Z||ue&&"clone"!==ue.lastPutMode)&&ne&&ne.parentNode&&ne.parentNode.removeChild(ne),K&&(this.nativeDraggable&&w(K,"dragend",this),je(K),K.style["will-change"]="",ge&&!De&&_(K,ue?ue.options.ghostClass:this.options.ghostClass,!1),_(K,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:Z,newIndex:null,newDraggableIndex:null,originalEvent:e}),J!==Z?(ae>=0&&(G({rootEl:Z,name:"add",toEl:Z,fromEl:J,originalEvent:e}),G({sortable:this,name:"remove",toEl:Z,originalEvent:e}),G({rootEl:Z,name:"sort",toEl:Z,fromEl:J,originalEvent:e}),G({sortable:this,name:"sort",toEl:Z,originalEvent:e})),ue&&ue.save()):ae!==ie&&ae>=0&&(G({sortable:this,name:"update",toEl:Z,originalEvent:e}),G({sortable:this,name:"sort",toEl:Z,originalEvent:e})),Xe.active&&(null!=ae&&-1!==ae||(ae=ie,le=re),G({sortable:this,name:"end",toEl:Z,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){$("nulling",this),J=K=Z=Q=ee=ne=te=oe=ce=de=ge=ae=le=ie=re=ve=be=ue=se=Xe.dragged=Xe.ghost=Xe.clone=Xe.active=null,ke.forEach((function(e){e.checked=!0})),ke.length=he=pe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":K&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,i=n.length,a=this.options;o<i;o++)S(e=n[o],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||He(e));return t},sort:function(e,t){var n={},o=this.el;this.toArray().forEach((function(e,t){var i=o.children[t];S(i,this.options.draggable,o,!1)&&(n[e]=i)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(o.removeChild(n[e]),o.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return S(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=U.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&Me(n)},destroy:function(){$("destroy",this);var e=this.el;e[j]=null,w(e,"mousedown",this._onTapStart),w(e,"touchstart",this._onTapStart),w(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(w(e,"dragover",this),w(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ee.splice(Ee.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!oe){if($("hideClone",this),Xe.eventCanceled)return;T(ne,"display","none"),this.options.removeCloneOnHide&&ne.parentNode&&ne.parentNode.removeChild(ne),oe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(oe){if($("showClone",this),Xe.eventCanceled)return;K.parentNode!=J||this.options.group.revertClone?ee?J.insertBefore(ne,ee):J.appendChild(ne):J.insertBefore(ne,K),this.options.group.revertClone&&this.animate(K,ne),T(ne,"display",""),oe=!1}}else this._hideClone()}},Ve&&b(document,"touchmove",(function(e){(Xe.active||De)&&e.cancelable&&e.preventDefault()})),Xe.utils={on:b,off:w,css:T,find:k,is:function(e,t){return!!S(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:B,closest:S,toggleClass:_,clone:X,index:I,nextTick:We,cancelNextTick:Ue,detectDirection:Ie,getChild:L,expando:j},Xe.get=function(e){return e[j]},Xe.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Xe.utils=a(a({},Xe.utils),e.utils)),U.mount(e)}))},Xe.create=function(e,t){return new Xe(e,t)},Xe.version="1.15.6";var ze,$e,Ge,Ke,Ze,Qe,Je=[],et=!1;function tt(){Je.forEach((function(e){clearInterval(e.pid)})),Je=[]}function nt(){clearInterval(Qe)}var ot=B((function(e,t,n,o){if(t.scroll){var i,a=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,u=V(),c=!1;$e!==n&&($e=n,tt(),ze=t.scroll,i=t.scrollFn,!0===ze&&(ze=N(n,!0)));var d=0,h=ze;do{var p=h,f=O(p),m=f.top,g=f.bottom,v=f.left,b=f.right,w=f.width,y=f.height,D=void 0,S=void 0,E=p.scrollWidth,C=p.scrollHeight,_=T(p),x=p.scrollLeft,k=p.scrollTop;p===u?(D=w<E&&("auto"===_.overflowX||"scroll"===_.overflowX||"visible"===_.overflowX),S=y<C&&("auto"===_.overflowY||"scroll"===_.overflowY||"visible"===_.overflowY)):(D=w<E&&("auto"===_.overflowX||"scroll"===_.overflowX),S=y<C&&("auto"===_.overflowY||"scroll"===_.overflowY));var A=D&&(Math.abs(b-a)<=l&&x+w<E)-(Math.abs(v-a)<=l&&!!x),L=S&&(Math.abs(g-r)<=l&&k+y<C)-(Math.abs(m-r)<=l&&!!k);if(!Je[d])for(var P=0;P<=d;P++)Je[P]||(Je[P]={});Je[d].vx==A&&Je[d].vy==L&&Je[d].el===p||(Je[d].el=p,Je[d].vx=A,Je[d].vy=L,clearInterval(Je[d].pid),0==A&&0==L||(c=!0,Je[d].pid=setInterval(function(){o&&0===this.layer&&Xe.active._onTouchMove(Ze);var t=Je[this.layer].vy?Je[this.layer].vy*s:0,n=Je[this.layer].vx?Je[this.layer].vx*s:0;"function"==typeof i&&"continue"!==i.call(Xe.dragged.parentNode[j],n,t,e,Ze,Je[this.layer].el)||q(Je[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==u&&(h=N(h,!1)));et=c}}),30),it=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,r=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||i;r();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);l(),s&&!s.el.contains(c)&&(a("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function at(){}function rt(){}at.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=L(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:it},s(at,{pluginName:"revertOnSpill"}),rt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:it},s(rt,{pluginName:"removeOnSpill"}),Xe.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):t.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):(w(document,"pointermove",this._handleFallbackAutoScroll),w(document,"touchmove",this._handleFallbackAutoScroll),w(document,"mousemove",this._handleFallbackAutoScroll)),nt(),tt(),clearTimeout(E),E=void 0},nulling:function(){Ze=$e=ze=et=Qe=Ge=Ke=null,Je.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(o,i);if(Ze=e,t||this.options.forceAutoScrollFallback||h||d||f){ot(e,this.options,a,t);var r=N(a,!0);!et||Qe&&o===Ge&&i===Ke||(Qe&&nt(),Qe=setInterval((function(){var a=N(document.elementFromPoint(o,i),!0);a!==r&&(r=a,tt()),ot(e,n.options,a,t)}),10),Ge=o,Ke=i)}else{if(!this.options.bubbleScroll||N(a,!0)===V())return void tt();ot(e,this.options,N(a,!1),!1)}}},s(e,{pluginName:"scroll",initializeByDefault:!0})}),Xe.mount(rt,at);const lt=["data-url","onContextmenu","onMousedown","onClick"],st={key:0,class:"iconfont icon-webicon318 layout-navbars-tagsview-ul-li-iconfont"},ut=e.defineComponent({name:"layoutTagsView"}),ct=e.defineComponent({...ut,setup(i){const a=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./contextmenu-3TXoLmCL.js"))))),r=e.ref([]),l=e.ref(),s=e.ref(),u=e.ref(),c=o.useTagsViewRoutes(),d=o.useThemeConfig(),h=o.useTagsViewRoutes(),p=o.useRoutesList(),{themeConfig:f}=n.storeToRefs(d),{tagsViewRoutes:m}=n.storeToRefs(h),{routesList:g}=n.storeToRefs(p),v=o.useKeepALiveNames(),b=t.useRoute(),w=t.useRouter(),y=e.reactive({routeActive:"",routePath:b.path,dropdown:{x:"",y:""},sortable:"",tagsRefsIndex:0,tagsViewList:[],tagsViewRoutesList:[]}),D=e.computed((()=>f.value.tagsStyle)),S=e.computed((()=>f.value)),E=e.computed((()=>e=>o.other.setTagsViewNameI18n(e))),C=e=>S.value.isShareTagsView?e.path===y.routePath:e.query&&Object.keys(e.query).length||e.params&&Object.keys(e.params).length?e.url?e.url===y.routeActive:e.path===y.routeActive:e.path===y.routePath,_=e=>{o.Session.set("tagsViewList",e)},T=e=>{var t;let n=e.query&&Object.keys(e.query).length>0?e.query:e.params;if(!n||Object.keys(n).length<=0)return e.path;let o="";for(let i in n)o+=n[i];return`${(null==(t=e.meta)?void 0:t.isDynamic)?e.meta.isDynamicPath:e.path}-${o}`},x=async(e,t)=>{var n,i;let a=(null==(n=null==t?void 0:t.meta)?void 0:n.isDynamic)?t.meta.isDynamicPath:e;if(y.tagsViewList.filter((e=>{var n,i;return e.path===a&&o.isObjectValueEqual((null==(n=null==t?void 0:t.meta)?void 0:n.isDynamic)?e.params?e.params:null:e.query?e.query:null,(null==(i=null==t?void 0:t.meta)?void 0:i.isDynamic)?(null==t?void 0:t.params)?null==t?void 0:t.params:null:(null==t?void 0:t.query)?null==t?void 0:t.query:null)})).length<=0){let e=y.tagsViewRoutesList.find((e=>e.path===a));if(!e)return!1;if(e.meta.isAffix)return!1;if(e.meta.isLink&&!e.meta.isIframe)return!1;(null==(i=null==t?void 0:t.meta)?void 0:i.isDynamic)?e.params=t.params:e.query=null==t?void 0:t.query,e.url=T(e),y.tagsViewList.push({...e}),_(y.tagsViewList)}},k=(e,t)=>{var n;let i=(null==(n=null==t?void 0:t.meta)?void 0:n.isDynamic)?t.meta.isDynamicPath:e;y.tagsViewList.forEach((e=>{var n,a,r;e.path!==i||o.isObjectValueEqual((null==(n=null==t?void 0:t.meta)?void 0:n.isDynamic)?e.params?e.params:null:e.query?e.query:null,(null==(a=null==t?void 0:t.meta)?void 0:a.isDynamic)?(null==t?void 0:t.params)?null==t?void 0:t.params:null:(null==t?void 0:t.query)?null==t?void 0:t.query:null)||((null==(r=null==t?void 0:t.meta)?void 0:r.isDynamic)?e.params=t.params:e.query=null==t?void 0:t.query,e.url=T(e),_(y.tagsViewList))}))},V=(t,n)=>e.nextTick().then((async()=>{var e,o,i;let a;if(null==(e=null==n?void 0:n.meta)?void 0:e.isDynamic){if(S.value.isShareTagsView?await k(t,n):await x(t,n),y.tagsViewList.some((e=>{var t;return e.path===(null==(t=null==n?void 0:n.meta)?void 0:t.isDynamicPath)})))return _(y.tagsViewList),!1;a=y.tagsViewRoutesList.find((e=>{var t;return e.path===(null==(t=null==n?void 0:n.meta)?void 0:t.isDynamicPath)}))}else{if(S.value.isShareTagsView?await k(t,n):await x(t,n),y.tagsViewList.some((e=>e.path===t)))return _(y.tagsViewList),!1;a=y.tagsViewRoutesList.find((e=>e.path===t))}return!!a&&(!((null==(o=null==a?void 0:a.meta)?void 0:o.isLink)&&!a.meta.isIframe)&&((null==(i=null==n?void 0:n.meta)?void 0:i.isDynamic)?a.params=(null==n?void 0:n.params)?null==n?void 0:n.params:b.params:a.query=(null==n?void 0:n.query)?null==n?void 0:n.query:b.query,a.url=T(a),await y.tagsViewList.push({...a}),void(await _(y.tagsViewList))))})),O=t=>e.nextTick().then((async()=>{let n=await y.tagsViewList;y.tagsRefsIndex=n.findIndex((e=>S.value.isShareTagsView?e.path===t:e.url===t)),await e.nextTick().then((async()=>{var e,t;if(r.value.length<=0)return!1;let n=r.value[y.tagsRefsIndex],o=y.tagsRefsIndex,i=r.value.length,a=r.value[0],s=r.value[r.value.length-1],u=null==(t=null==(e=l.value)?void 0:e.$refs)?void 0:t.wrapRef,c=u.scrollWidth,d=u.offsetWidth,h=u.scrollLeft,p=r.value[y.tagsRefsIndex-1],f=r.value[y.tagsRefsIndex+1],m=0,g=0;n===a?u.scrollLeft=0:n===s?u.scrollLeft=c-d:(m=0===o?a.offsetLeft-5:(null==p?void 0:p.offsetLeft)-5,g=o===i?s.offsetLeft+s.offsetWidth+5:f.offsetLeft+f.offsetWidth+5,g>h+d?u.scrollLeft=g-d:m<h&&(u.scrollLeft=m)),l.value.update()}))})),A=async()=>{y.routeActive=await T(b),y.routePath=await b.meta.isDynamic?b.meta.isDynamicPath:b.path,y.tagsViewList=[],y.tagsViewRoutesList=m.value,await(async()=>{o.Session.get("tagsViewList")&&S.value.isCacheTagsView?y.tagsViewList=o.Session.get("tagsViewList"):(await y.tagsViewRoutesList.map((e=>{var t;"/home"===e.path&&(e.meta.isAffix=!0),(null==(t=e.meta)?void 0:t.isAffix)&&!e.meta.isHide&&(e.url=T(e),y.tagsViewList.push({...e}))})),await V(b.path,b)),await O(S.value.isShareTagsView?y.routePath:y.routeActive)})()},L=e=>{var t,n;let o=e.query&&Object.keys(e.query).length>0?e.query:e.params;if(!o)return"";let i="";for(let[a,r]of Object.entries(o))(null==(t=e.meta)?void 0:t.isDynamic)?i+=`/${r}`:i+=`&${a}=${r}`;return(null==(n=e.meta)?void 0:n.isDynamic)?e.isFnClick?decodeURI(e.path):`${e.path.split(":")[0]}${i.replace(/^\//,"")}`:`${e.path}${i.replace(/^&/,"?")}`},P=async e=>{const t=decodeURI(e);let n={};if(y.tagsViewList.forEach((e=>{e.transUrl=L(e),e.transUrl?e.transUrl===L(e)&&(n=e):e.path===t&&(n=e)})),!n)return!1;await v.delCachedView(n),o.mittBus.emit("onTagsViewRefreshRouterView",e)},I=e=>{y.tagsViewList.map(((t,n,o)=>{var i;(null==(i=t.meta)?void 0:i.isAffix)||(S.value.isShareTagsView?t.path===e:t.url===e)&&(v.delCachedView(t),y.tagsViewList.splice(n,1),setTimeout((()=>{(y.tagsViewList.length===n&&S.value.isShareTagsView?y.routePath===e:y.routeActive===e)?o[o.length-1].meta.isDynamic?n!==o.length?w.push({name:o[n].name,params:o[n].params}):w.push({name:o[o.length-1].name,params:o[o.length-1].params}):n!==o.length?w.push({path:o[n].path,query:o[n].query}):w.push({path:o[o.length-1].path,query:o[o.length-1].query}):(y.tagsViewList.length!==n&&S.value.isShareTagsView?y.routePath===e:y.routeActive===e)&&(o[n].meta.isDynamic?w.push({name:o[n].name,params:o[n].params}):w.push({path:o[n].path,query:o[n].query}))}),0))})),_(y.tagsViewList)},M=e=>{let t={};return y.tagsViewList.forEach((n=>{n.transUrl=L(n),n.transUrl?n.transUrl===L(n)&&n.transUrl===e.commonUrl&&(t=n):n.path===decodeURI(e.path)&&(t=n)})),t||null},N=async e=>{if(e.commonUrl=L(e),!M(e))return o.ElMessage({type:"warning",message:"请正确输入路径及完整参数(query、params)"});const{path:t,name:n,params:i,query:a,meta:r,url:l}=M(e);switch(e.contextMenuClickId){case 0:r.isDynamic?await w.push({name:n,params:i}):await w.push({path:t,query:a}),P(b.fullPath);break;case 1:I(S.value.isShareTagsView?t:l);break;case 2:r.isDynamic?await w.push({name:n,params:i}):await w.push({path:t,query:a}),await(async e=>{const t=y.tagsViewList.find((t=>t.path===e));v.delOthersCachedViews(t),o.Session.get("tagsViewList")&&(y.tagsViewList=[],o.Session.get("tagsViewList").map((e=>{var t;(null==(t=e.meta)?void 0:t.isAffix)&&!e.meta.isHide&&(e.url=T(e),y.tagsViewList.push({...e}))})),await V(e,b),_(y.tagsViewList))})(t);break;case 3:(()=>{if(o.Session.get("tagsViewList")){v.delAllCachedViews(),y.tagsViewList=[],o.Session.get("tagsViewList").map((e=>{var t;(null==(t=e.meta)?void 0:t.isAffix)&&!e.meta.isHide&&(e.url=T(e),y.tagsViewList.push({...e}))})),_(y.tagsViewList);const e=o.dynamicRoutes.find((e=>"/"===e.path));e&&w.push(e.redirect)}})();break;case 4:(async e=>{const t=y.tagsViewList.find((t=>S.value.isShareTagsView?t.path===e:t.url===e));t.meta.isDynamic?await w.push({name:t.name,params:t.params}):await w.push({name:t.name,query:t.query}),c.setCurrenFullscreen(!0)})(S.value.isShareTagsView?t:l)}},R=e=>{l.value.$refs.wrapRef.scrollLeft+=e.wheelDelta/4},B=async()=>{const e=document.querySelector(".layout-navbars-tagsview-ul");if(!e)return!1;y.sortable.el&&y.sortable.destroy(),y.sortable=Xe.create(e,{animation:300,dataIdAttr:"data-url",disabled:!S.value.isSortableTagsView,onEnd:()=>{const e=[];y.sortable.toArray().map((t=>{y.tagsViewList.map((n=>{n.url===t&&e.push({...n})}))})),_(e)}})},q=async()=>{await B(),o.other.isMobile()&&y.sortable.el&&y.sortable.destroy()};return e.onBeforeMount((()=>{q(),window.addEventListener("resize",q),o.mittBus.on("onCurrentContextmenuClick",(e=>{e.isFnClick=!0,N(e)})),o.mittBus.on("openOrCloseSortable",(async()=>{await B()})),o.mittBus.on("openShareTagsView",(()=>{S.value.isShareTagsView&&(w.push("/"),y.tagsViewList=[],y.tagsViewRoutesList.map((e=>{var t;(null==(t=e.meta)?void 0:t.isAffix)&&!e.meta.isHide&&(e.url=T(e),y.tagsViewList.push({...e}))})))}))})),e.onUnmounted((()=>{o.mittBus.off("onCurrentContextmenuClick",(()=>{})),o.mittBus.off("openOrCloseSortable",(()=>{})),o.mittBus.off("openShareTagsView",(()=>{})),window.removeEventListener("resize",q)})),e.onBeforeUpdate((()=>{r.value=[]})),e.onMounted((async()=>{await A(),await B()})),t.onBeforeRouteUpdate((async e=>{y.routeActive=T(e),y.routePath=e.meta.isDynamic?e.meta.isDynamicPath:e.path,await V(e.path,e),O(S.value.isShareTagsView?y.routePath:y.routeActive)})),e.watch((()=>m.value),(async e=>{if(e.length===y.tagsViewRoutesList.length)return!1;await A()}),{deep:!0}),(t,n)=>{const o=e.resolveComponent("SvgIcon"),i=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["layout-navbars-tagsview",{"layout-navbars-tagsview-shadow":"classic"===S.value.layout}])},[e.createVNode(i,{ref_key:"scrollbarRef",ref:l,onWheel:e.withModifiers(R,["prevent"])},{default:e.withCtx((()=>[e.createElementVNode("ul",{class:e.normalizeClass(["layout-navbars-tagsview-ul",D.value]),ref_key:"tagsUlRef",ref:u},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.tagsViewList,((i,a)=>(e.openBlock(),e.createElementBlock("li",{key:a,class:e.normalizeClass(["layout-navbars-tagsview-ul-li",{"is-active":C(i)}]),"data-url":i.url,onContextmenu:e.withModifiers((e=>((e,t)=>{const{clientX:n,clientY:o}=t;y.dropdown.x=n,y.dropdown.y=o,s.value.openContextmenu(e)})(i,e)),["prevent"]),onMousedown:e=>((e,t)=>{var n;if(!(null==(n=e.meta)?void 0:n.isAffix)&&1===t.button){const t=Object.assign({},{contextMenuClickId:1,...e});N(t)}})(i,e),onClick:e=>((e,t)=>{y.tagsRefsIndex=t,w.push(e),"columns"===S.value.layout&&(g.value.find((t=>t.path.indexOf(`/${e.path.split("/")[1]}`)>-1)).children?S.value.isCollapse=!1:S.value.isCollapse=!0)})(i,a),ref_for:!0,ref:e=>{e&&(r.value[a]=e)}},[C(i)?(e.openBlock(),e.createElementBlock("i",st)):e.createCommentVNode("",!0),!C(i)&&S.value.isTagsviewIcon?(e.openBlock(),e.createBlock(o,{key:1,name:i.meta.icon,class:"pr5"},null,8,["name"])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(E.value(i)),1),C(i)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(o,{name:"ele-RefreshRight",class:"ml5 layout-navbars-tagsview-ul-li-refresh",onClick:n[0]||(n[0]=e.withModifiers((e=>P(t.$route.fullPath)),["stop"]))}),i.meta.isAffix?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(o,{key:0,name:"ele-Close",class:"layout-navbars-tagsview-ul-li-icon layout-icon-active",onClick:e.withModifiers((e=>I(S.value.isShareTagsView?i.path:i.url)),["stop"])},null,8,["onClick"]))],64)):e.createCommentVNode("",!0),i.meta.isAffix?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(o,{key:3,name:"ele-Close",class:"layout-navbars-tagsview-ul-li-icon layout-icon-three",onClick:e.withModifiers((e=>I(S.value.isShareTagsView?i.path:i.url)),["stop"])},null,8,["onClick"]))],42,lt)))),128))],2)])),_:1},512),e.createVNode(e.unref(a),{dropdown:y.dropdown,ref_key:"contextmenuRef",ref:s,onCurrentContextmenuClick:N},null,8,["dropdown"])],2)}}}),dt=o._export_sfc(ct,[["__scopeId","data-v-97b76a44"]]);exports.default=dt;
|
|
8
|
+
function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function c(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var d=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),h=c(/Edge/i),p=c(/firefox/i),f=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),m=c(/iP(ad|od|hone)/i),g=c(/chrome/i)&&c(/android/i),v={capture:!1,passive:!1};function b(e,t,n){e.addEventListener(t,n,!d&&v)}function w(e,t,n){e.removeEventListener(t,n,!d&&v)}function y(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function D(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function S(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&y(e,t):y(e,t))||o&&e===n)return e;if(e===n)break}while(e=D(e))}return null}var E,C=/\s+/g;function _(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(C," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(C," ")}}function T(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function x(e,t){var n="";if("string"==typeof e)n=e;else do{var o=T(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function k(e,t,n){if(e){var o=e.getElementsByTagName(t),i=0,a=o.length;if(n)for(;i<a;i++)n(o[i],i);return o}return[]}function V(){var e=document.scrollingElement;return e||document.documentElement}function O(e,t,n,o,i){if(e.getBoundingClientRect||e===window){var a,r,l,s,u,c,h;if(e!==window&&e.parentNode&&e!==V()?(r=(a=e.getBoundingClientRect()).top,l=a.left,s=a.bottom,u=a.right,c=a.height,h=a.width):(r=0,l=0,s=window.innerHeight,u=window.innerWidth,c=window.innerHeight,h=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!d))do{if(i&&i.getBoundingClientRect&&("none"!==T(i,"transform")||n&&"static"!==T(i,"position"))){var p=i.getBoundingClientRect();r-=p.top+parseInt(T(i,"border-top-width")),l-=p.left+parseInt(T(i,"border-left-width")),s=r+a.height,u=l+a.width;break}}while(i=i.parentNode);if(o&&e!==window){var f=x(i||e),m=f&&f.a,g=f&&f.d;f&&(s=(r/=g)+(c/=g),u=(l/=m)+(h/=m))}return{top:r,left:l,bottom:s,right:u,width:h,height:c}}}function A(e,t,n){for(var o=N(e,!0),i=O(e)[t];o;){if(!(i>=O(o)[n]))return o;if(o===V())break;o=N(o,!1)}return!1}function L(e,t,n,o){for(var i=0,a=0,r=e.children;a<r.length;){if("none"!==r[a].style.display&&r[a]!==Xe.ghost&&(o||r[a]!==Xe.dragged)&&S(r[a],n.draggable,e,!1)){if(i===t)return r[a];i++}a++}return null}function P(e,t){for(var n=e.lastElementChild;n&&(n===Xe.ghost||"none"===T(n,"display")||t&&!y(n,t));)n=n.previousElementSibling;return n||null}function I(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Xe.clone||t&&!y(e,t)||n++;return n}function M(e){var t=0,n=0,o=V();if(e)do{var i=x(e),a=i.a,r=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*r}while(e!==o&&(e=e.parentNode));return[t,n]}function N(e,t){if(!e||!e.getBoundingClientRect)return V();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=T(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return V();if(o||t)return n;o=!0}}}while(n=n.parentNode);return V()}function R(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function B(e,t){return function(){if(!E){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),E=setTimeout((function(){E=void 0}),t)}}}function q(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function X(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Y(e,t,n){var o={};return Array.from(e.children).forEach((function(i){var a,r,l,s;if(S(i,t.draggable,e,!1)&&!i.animated&&i!==n){var u=O(i);o.left=Math.min(null!==(a=o.left)&&void 0!==a?a:1/0,u.left),o.top=Math.min(null!==(r=o.top)&&void 0!==r?r:1/0,u.top),o.right=Math.max(null!==(l=o.right)&&void 0!==l?l:-1/0,u.right),o.bottom=Math.max(null!==(s=o.bottom)&&void 0!==s?s:-1/0,u.bottom)}})),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}var j="Sortable"+(new Date).getTime();function F(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==T(e,"display")&&e!==Xe.ghost){t.push({target:e,rect:O(e)});var n=a({},t[t.length-1].rect);if(e.thisAnimationDuration){var o=x(e,!0);o&&(n.top-=o.f,n.left-=o.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var i=!1,a=0;t.forEach((function(e){var t=0,n=e.target,r=n.fromRect,l=O(n),s=n.prevFromRect,u=n.prevToRect,c=e.rect,d=x(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&R(s,l)&&!R(r,l)&&(c.top-l.top)/(c.left-l.left)===(r.top-l.top)/(r.left-l.left)&&(t=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(c,s,u,o.options)),R(l,r)||(n.prevFromRect=r,n.prevToRect=l,t||(t=o.options.animation),o.animate(n,c,l,t)),t&&(i=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"==typeof n&&n()}),a):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,o){if(o){T(e,"transition",""),T(e,"transform","");var i=x(this.el),a=i&&i.a,r=i&&i.d,l=(t.left-n.left)/(a||1),s=(t.top-n.top)/(r||1);e.animatingX=!!l,e.animatingY=!!s,T(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),T(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),T(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){T(e,"transition",""),T(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}}var H=[],W={initializeByDefault:!0},U={mount:function(e){for(var t in W)W.hasOwnProperty(t)&&!(t in e)&&(e[t]=W[t]);H.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),H.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var i=e+"Global";H.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][i]&&t[o.pluginName][i](a({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](a({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var i in H.forEach((function(o){var i=o.pluginName;if(e.options[i]||o.initializeByDefault){var a=new o(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,s(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);void 0!==a&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return H.forEach((function(o){"function"==typeof o.eventProperties&&s(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return H.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[t]&&(o=i.optionListeners[t].call(e[i.pluginName],n))})),o}};var z=["evt"],$=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,i=u(n,z);U.pluginEvent.bind(Xe)(e,t,a({dragEl:K,parentEl:Z,ghostEl:Q,rootEl:J,nextEl:ee,lastDownEl:te,cloneEl:ne,cloneHidden:oe,dragStarted:ge,putSortable:ue,activeSortable:Xe.active,originalEvent:o,oldIndex:ie,oldDraggableIndex:re,newIndex:ae,newDraggableIndex:le,hideGhostForTarget:Ne,unhideGhostForTarget:Re,cloneNowHidden:function(){oe=!0},cloneNowShown:function(){oe=!1},dispatchSortableEvent:function(e){G({sortable:t,name:e,originalEvent:o})}},i))};function G(e){!function(e){var t=e.sortable,n=e.rootEl,o=e.name,i=e.targetEl,r=e.cloneEl,l=e.toEl,s=e.fromEl,u=e.oldIndex,c=e.newIndex,p=e.oldDraggableIndex,f=e.newDraggableIndex,m=e.originalEvent,g=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[j]){var b,w=t.options,y="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||d||h?(b=document.createEvent("Event")).initEvent(o,!0,!0):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=l||n,b.from=s||n,b.item=i||n,b.clone=r,b.oldIndex=u,b.newIndex=c,b.oldDraggableIndex=p,b.newDraggableIndex=f,b.originalEvent=m,b.pullMode=g?g.lastPutMode:void 0;var D=a(a({},v),U.getEventProperties(o,t));for(var S in D)b[S]=D[S];n&&n.dispatchEvent(b),w[y]&&w[y].call(t,b)}}(a({putSortable:ue,cloneEl:ne,targetEl:K,rootEl:J,oldIndex:ie,oldDraggableIndex:re,newIndex:ae,newDraggableIndex:le},e))}var K,Z,Q,J,ee,te,ne,oe,ie,ae,re,le,se,ue,ce,de,he,pe,fe,me,ge,ve,be,we,ye,De=!1,Se=!1,Ee=[],Ce=!1,_e=!1,Te=[],xe=!1,ke=[],Ve="undefined"!=typeof document,Oe=m,Ae=h||d?"cssFloat":"float",Le=Ve&&!g&&!m&&"draggable"in document.createElement("div"),Pe=function(){if(Ve){if(d)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ie=function(e,t){var n=T(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=L(e,0,t),a=L(e,1,t),r=i&&T(i),l=a&&T(a),s=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+O(i).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&r.float&&"none"!==r.float){var c="left"===r.float?"left":"right";return!a||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return i&&("block"===r.display||"flex"===r.display||"table"===r.display||"grid"===r.display||s>=o&&"none"===n[Ae]||a&&"none"===n[Ae]&&s+u>o)?"vertical":"horizontal"},Me=function(e){function t(e,n){return function(o,i,a,r){var l=o.options.group.name&&i.options.group.name&&o.options.group.name===i.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,i,a,r),n)(o,i,a,r);var s=(n?o:i).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},o=e.group;o&&"object"==r(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},Ne=function(){!Pe&&Q&&T(Q,"display","none")},Re=function(){!Pe&&Q&&T(Q,"display","")};Ve&&!g&&document.addEventListener("click",(function(e){if(Se)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Se=!1,!1}),!0);var Be=function(e){if(K){e=e.touches?e.touches[0]:e;var t=(i=e.clientX,a=e.clientY,Ee.some((function(e){var t=e[j].options.emptyInsertThreshold;if(t&&!P(e)){var n=O(e),o=i>=n.left-t&&i<=n.right+t,l=a>=n.top-t&&a<=n.bottom+t;return o&&l?r=e:void 0}})),r);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[j]._onDragOver(n)}}var i,a,r},qe=function(e){K&&K.parentNode[j]._isOutsideThisEl(e.target)};function Xe(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=s({},t),e[j]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ie(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.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:!1!==Xe.supportPointer&&"PointerEvent"in window&&(!f||m),emptyInsertThreshold:5};for(var o in U.initializePlugins(this,e,n),n)!(o in t)&&(t[o]=n[o]);for(var i in Me(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Le,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?b(e,"pointerdown",this._onTapStart):(b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),Ee.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),s(this,F())}function Ye(e,t,n,o,i,a,r,l){var s,u,c=e[j],p=c.options.onMove;return!window.CustomEvent||d||h?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=o,s.related=i||t,s.relatedRect=a||O(t),s.willInsertAfter=l,s.originalEvent=r,e.dispatchEvent(s),p&&(u=p.call(c,s,r)),u}function je(e){e.draggable=!1}function Fe(){xe=!1}function He(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function We(e){return setTimeout(e,0)}function Ue(e){return clearTimeout(e)}Xe.prototype={constructor:Xe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ve=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,K):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,i=o.preventOnFilter,a=e.type,r=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(r||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=o.filter;if(function(e){ke.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var o=t[n];o.checked&&ke.push(o)}}(n),!K&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!f||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=S(l,o.draggable,n,!1))&&l.animated||te===l)){if(ie=I(l),re=I(l,o.draggable),"function"==typeof u){if(u.call(this,e,l,this))return G({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),$("filter",t,{evt:e}),void(i&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(o){if(o=S(s,o.trim(),n,!1))return G({sortable:t,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),$("filter",t,{evt:e}),!0}))))return void(i&&e.preventDefault());o.handle&&!S(s,o.handle,n,!1)||this._prepareDragStart(e,r,l)}}},_prepareDragStart:function(e,t,n){var o,i=this,a=i.el,r=i.options,l=a.ownerDocument;if(n&&!K&&n.parentNode===a){var s=O(n);if(J=a,Z=(K=n).parentNode,ee=K.nextSibling,te=n,se=r.group,Xe.dragged=K,ce={target:K,clientX:(t||e).clientX,clientY:(t||e).clientY},fe=ce.clientX-s.left,me=ce.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,K.style["will-change"]="all",o=function(){$("delayEnded",i,{evt:e}),Xe.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!p&&i.nativeDraggable&&(K.draggable=!0),i._triggerDragStart(e,t),G({sortable:i,name:"choose",originalEvent:e}),_(K,r.chosenClass,!0))},r.ignore.split(",").forEach((function(e){k(K,e.trim(),je)})),b(l,"dragover",Be),b(l,"mousemove",Be),b(l,"touchmove",Be),r.supportPointer?(b(l,"pointerup",i._onDrop),!this.nativeDraggable&&b(l,"pointercancel",i._onDrop)):(b(l,"mouseup",i._onDrop),b(l,"touchend",i._onDrop),b(l,"touchcancel",i._onDrop)),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,K.draggable=!0),$("delayStart",this,{evt:e}),!r.delay||r.delayOnTouchOnly&&!t||this.nativeDraggable&&(h||d))o();else{if(Xe.eventCanceled)return void this._onDrop();r.supportPointer?(b(l,"pointerup",i._disableDelayedDrag),b(l,"pointercancel",i._disableDelayedDrag)):(b(l,"mouseup",i._disableDelayedDrag),b(l,"touchend",i._disableDelayedDrag),b(l,"touchcancel",i._disableDelayedDrag)),b(l,"mousemove",i._delayedDragTouchMoveHandler),b(l,"touchmove",i._delayedDragTouchMoveHandler),r.supportPointer&&b(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(o,r.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){K&&je(K),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;w(e,"mouseup",this._disableDelayedDrag),w(e,"touchend",this._disableDelayedDrag),w(e,"touchcancel",this._disableDelayedDrag),w(e,"pointerup",this._disableDelayedDrag),w(e,"pointercancel",this._disableDelayedDrag),w(e,"mousemove",this._delayedDragTouchMoveHandler),w(e,"touchmove",this._delayedDragTouchMoveHandler),w(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):b(document,t?"touchmove":"mousemove",this._onTouchMove):(b(K,"dragend",this),b(J,"dragstart",this._onDragStart));try{document.selection?We((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(De=!1,J&&K){$("dragStarted",this,{evt:t}),this.nativeDraggable&&b(document,"dragover",qe);var n=this.options;!e&&_(K,n.dragClass,!1),_(K,n.ghostClass,!0),Xe.active=this,e&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(de){this._lastX=de.clientX,this._lastY=de.clientY,Ne();for(var e=document.elementFromPoint(de.clientX,de.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(de.clientX,de.clientY))!==t;)t=e;if(K.parentNode[j]._isOutsideThisEl(e),t)do{if(t[j]){if(t[j]._onDragOver({clientX:de.clientX,clientY:de.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=D(t));Re()}},_onTouchMove:function(e){if(ce){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=Q&&x(Q,!0),r=Q&&a&&a.a,l=Q&&a&&a.d,s=Oe&&ye&&M(ye),u=(i.clientX-ce.clientX+o.x)/(r||1)+(s?s[0]-Te[0]:0)/(r||1),c=(i.clientY-ce.clientY+o.y)/(l||1)+(s?s[1]-Te[1]:0)/(l||1);if(!Xe.active&&!De){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Q){a?(a.e+=u-(he||0),a.f+=c-(pe||0)):a={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");T(Q,"webkitTransform",d),T(Q,"mozTransform",d),T(Q,"msTransform",d),T(Q,"transform",d),he=u,pe=c,de=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Q){var e=this.options.fallbackOnBody?document.body:J,t=O(K,!0,Oe,!0,e),n=this.options;if(Oe){for(ye=e;"static"===T(ye,"position")&&"none"===T(ye,"transform")&&ye!==document;)ye=ye.parentNode;ye!==document.body&&ye!==document.documentElement?(ye===document&&(ye=V()),t.top+=ye.scrollTop,t.left+=ye.scrollLeft):ye=V(),Te=M(ye)}_(Q=K.cloneNode(!0),n.ghostClass,!1),_(Q,n.fallbackClass,!0),_(Q,n.dragClass,!0),T(Q,"transition",""),T(Q,"transform",""),T(Q,"box-sizing","border-box"),T(Q,"margin",0),T(Q,"top",t.top),T(Q,"left",t.left),T(Q,"width",t.width),T(Q,"height",t.height),T(Q,"opacity","0.8"),T(Q,"position",Oe?"absolute":"fixed"),T(Q,"zIndex","100000"),T(Q,"pointerEvents","none"),Xe.ghost=Q,e.appendChild(Q),T(Q,"transform-origin",fe/parseInt(Q.style.width)*100+"% "+me/parseInt(Q.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,i=n.options;$("dragStart",this,{evt:e}),Xe.eventCanceled?this._onDrop():($("setupClone",this),Xe.eventCanceled||((ne=X(K)).removeAttribute("id"),ne.draggable=!1,ne.style["will-change"]="",this._hideClone(),_(ne,this.options.chosenClass,!1),Xe.clone=ne),n.cloneId=We((function(){$("clone",n),Xe.eventCanceled||(n.options.removeCloneOnHide||J.insertBefore(ne,K),n._hideClone(),G({sortable:n,name:"clone"}))})),!t&&_(K,i.dragClass,!0),t?(Se=!0,n._loopId=setInterval(n._emulateDragOver,50)):(w(document,"mouseup",n._onDrop),w(document,"touchend",n._onDrop),w(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(n,o,K)),b(document,"drop",n),T(K,"transform","translateZ(0)")),De=!0,n._dragStartId=We(n._dragStarted.bind(n,t,e)),b(document,"selectstart",n),ge=!0,window.getSelection().removeAllRanges(),f&&T(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,i,r=this.el,l=e.target,s=this.options,u=s.group,c=Xe.active,d=se===u,h=s.sort,p=ue||c,f=this,m=!1;if(!xe){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=S(l,s.draggable,r,!0),B("dragOver"),Xe.eventCanceled)return m;if(K.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||f._ignoreWhileAnimating===l)return F(!1);if(Se=!1,c&&!s.disabled&&(d?h||(o=Z!==J):ue===this||(this.lastPutMode=se.checkPull(this,c,K,e))&&u.checkPut(this,c,K,e))){if(i="vertical"===this._getDirection(e,l),t=O(K),B("dragOverValid"),Xe.eventCanceled)return m;if(o)return Z=J,X(),this._hideClone(),B("revert"),Xe.eventCanceled||(ee?J.insertBefore(K,ee):J.appendChild(K)),F(!0);var g=P(r,s.draggable);if(!g||function(e,t,n){var o=O(P(n.el,n.options.draggable)),i=Y(n.el,n.options,Q),a=10;return t?e.clientX>i.right+a||e.clientY>o.bottom&&e.clientX>o.left:e.clientY>i.bottom+a||e.clientX>o.right&&e.clientY>o.top}(e,i,this)&&!g.animated){if(g===K)return F(!1);if(g&&r===e.target&&(l=g),l&&(n=O(l)),!1!==Ye(J,r,K,t,l,n,e,!!l))return X(),g&&g.nextSibling?r.insertBefore(K,g.nextSibling):r.appendChild(K),Z=r,H(),F(!0)}else if(g&&function(e,t,n){var o=O(L(n.el,0,n.options,!0)),i=Y(n.el,n.options,Q),a=10;return t?e.clientX<i.left-a||e.clientY<o.top&&e.clientX<o.right:e.clientY<i.top-a||e.clientY<o.bottom&&e.clientX<o.left}(e,i,this)){var v=L(r,0,s,!0);if(v===K)return F(!1);if(n=O(l=v),!1!==Ye(J,r,K,t,l,n,e,!1))return X(),r.insertBefore(K,v),Z=r,H(),F(!0)}else if(l.parentNode===r){n=O(l);var b,w,y,D=K.parentNode!==r,E=!function(e,t,n){var o=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,r=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return o===r||i===l||o+a/2===r+s/2}(K.animated&&K.toRect||t,l.animated&&l.toRect||n,i),C=i?"top":"left",x=A(l,"top","top")||A(K,"top","top"),k=x?x.scrollTop:void 0;if(ve!==l&&(w=n[C],Ce=!1,_e=!E&&s.invertSwap||D),b=function(e,t,n,o,i,a,r,l){var s=o?e.clientY:e.clientX,u=o?n.height:n.width,c=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!r)if(l&&we<u*i){if(!Ce&&(1===be?s>c+u*a/2:s<d-u*a/2)&&(Ce=!0),Ce)h=!0;else if(1===be?s<c+we:s>d-we)return-be}else if(s>c+u*(1-i)/2&&s<d-u*(1-i)/2)return function(e){return I(K)<I(e)?1:-1}(t);if((h=h||r)&&(s<c+u*a/2||s>d-u*a/2))return s>c+u/2?1:-1;return 0}(e,l,n,i,E?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,_e,ve===l),0!==b){var V=I(K);do{V-=b,y=Z.children[V]}while(y&&("none"===T(y,"display")||y===Q))}if(0===b||y===l)return F(!1);ve=l,be=b;var M=l.nextElementSibling,N=!1,R=Ye(J,r,K,t,l,n,e,N=1===b);if(!1!==R)return 1!==R&&-1!==R||(N=1===R),xe=!0,setTimeout(Fe,30),X(),N&&!M?r.appendChild(K):l.parentNode.insertBefore(K,N?M:l),x&&q(x,0,k-x.scrollTop),Z=K.parentNode,void 0===w||_e||(we=Math.abs(w-O(l)[C])),H(),F(!0)}if(r.contains(K))return F(!1)}return!1}function B(s,u){$(s,f,a({evt:e,isOwner:d,axis:i?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:h,fromSortable:p,target:l,completed:F,onMove:function(n,o){return Ye(J,r,K,t,n,O(n),e,o)},changed:H},u))}function X(){B("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function F(t){return B("dragOverCompleted",{insertion:t}),t&&(d?c._hideClone():c._showClone(f),f!==p&&(_(K,ue?ue.options.ghostClass:c.options.ghostClass,!1),_(K,s.ghostClass,!0)),ue!==f&&f!==Xe.active?ue=f:f===Xe.active&&ue&&(ue=null),p===f&&(f._ignoreWhileAnimating=l),f.animateAll((function(){B("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===K&&!K.animated||l===r&&!l.animated)&&(ve=null),s.dragoverBubble||e.rootEl||l===document||(K.parentNode[j]._isOutsideThisEl(e.target),!t&&Be(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function H(){ae=I(K),le=I(K,s.draggable),G({sortable:f,name:"change",toEl:r,newIndex:ae,newDraggableIndex:le,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){w(document,"mousemove",this._onTouchMove),w(document,"touchmove",this._onTouchMove),w(document,"pointermove",this._onTouchMove),w(document,"dragover",Be),w(document,"mousemove",Be),w(document,"touchmove",Be)},_offUpEvents:function(){var e=this.el.ownerDocument;w(e,"mouseup",this._onDrop),w(e,"touchend",this._onDrop),w(e,"pointerup",this._onDrop),w(e,"pointercancel",this._onDrop),w(e,"touchcancel",this._onDrop),w(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ae=I(K),le=I(K,n.draggable),$("drop",this,{evt:e}),Z=K&&K.parentNode,ae=I(K),le=I(K,n.draggable),Xe.eventCanceled||(De=!1,_e=!1,Ce=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ue(this.cloneId),Ue(this._dragStartId),this.nativeDraggable&&(w(document,"drop",this),w(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&T(document.body,"user-select",""),T(K,"transform",""),e&&(ge&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Q&&Q.parentNode&&Q.parentNode.removeChild(Q),(J===Z||ue&&"clone"!==ue.lastPutMode)&&ne&&ne.parentNode&&ne.parentNode.removeChild(ne),K&&(this.nativeDraggable&&w(K,"dragend",this),je(K),K.style["will-change"]="",ge&&!De&&_(K,ue?ue.options.ghostClass:this.options.ghostClass,!1),_(K,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:Z,newIndex:null,newDraggableIndex:null,originalEvent:e}),J!==Z?(ae>=0&&(G({rootEl:Z,name:"add",toEl:Z,fromEl:J,originalEvent:e}),G({sortable:this,name:"remove",toEl:Z,originalEvent:e}),G({rootEl:Z,name:"sort",toEl:Z,fromEl:J,originalEvent:e}),G({sortable:this,name:"sort",toEl:Z,originalEvent:e})),ue&&ue.save()):ae!==ie&&ae>=0&&(G({sortable:this,name:"update",toEl:Z,originalEvent:e}),G({sortable:this,name:"sort",toEl:Z,originalEvent:e})),Xe.active&&(null!=ae&&-1!==ae||(ae=ie,le=re),G({sortable:this,name:"end",toEl:Z,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){$("nulling",this),J=K=Z=Q=ee=ne=te=oe=ce=de=ge=ae=le=ie=re=ve=be=ue=se=Xe.dragged=Xe.ghost=Xe.clone=Xe.active=null,ke.forEach((function(e){e.checked=!0})),ke.length=he=pe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":K&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,i=n.length,a=this.options;o<i;o++)S(e=n[o],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||He(e));return t},sort:function(e,t){var n={},o=this.el;this.toArray().forEach((function(e,t){var i=o.children[t];S(i,this.options.draggable,o,!1)&&(n[e]=i)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(o.removeChild(n[e]),o.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return S(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=U.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&Me(n)},destroy:function(){$("destroy",this);var e=this.el;e[j]=null,w(e,"mousedown",this._onTapStart),w(e,"touchstart",this._onTapStart),w(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(w(e,"dragover",this),w(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ee.splice(Ee.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!oe){if($("hideClone",this),Xe.eventCanceled)return;T(ne,"display","none"),this.options.removeCloneOnHide&&ne.parentNode&&ne.parentNode.removeChild(ne),oe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(oe){if($("showClone",this),Xe.eventCanceled)return;K.parentNode!=J||this.options.group.revertClone?ee?J.insertBefore(ne,ee):J.appendChild(ne):J.insertBefore(ne,K),this.options.group.revertClone&&this.animate(K,ne),T(ne,"display",""),oe=!1}}else this._hideClone()}},Ve&&b(document,"touchmove",(function(e){(Xe.active||De)&&e.cancelable&&e.preventDefault()})),Xe.utils={on:b,off:w,css:T,find:k,is:function(e,t){return!!S(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:B,closest:S,toggleClass:_,clone:X,index:I,nextTick:We,cancelNextTick:Ue,detectDirection:Ie,getChild:L,expando:j},Xe.get=function(e){return e[j]},Xe.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Xe.utils=a(a({},Xe.utils),e.utils)),U.mount(e)}))},Xe.create=function(e,t){return new Xe(e,t)},Xe.version="1.15.6";var ze,$e,Ge,Ke,Ze,Qe,Je=[],et=!1;function tt(){Je.forEach((function(e){clearInterval(e.pid)})),Je=[]}function nt(){clearInterval(Qe)}var ot=B((function(e,t,n,o){if(t.scroll){var i,a=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,u=V(),c=!1;$e!==n&&($e=n,tt(),ze=t.scroll,i=t.scrollFn,!0===ze&&(ze=N(n,!0)));var d=0,h=ze;do{var p=h,f=O(p),m=f.top,g=f.bottom,v=f.left,b=f.right,w=f.width,y=f.height,D=void 0,S=void 0,E=p.scrollWidth,C=p.scrollHeight,_=T(p),x=p.scrollLeft,k=p.scrollTop;p===u?(D=w<E&&("auto"===_.overflowX||"scroll"===_.overflowX||"visible"===_.overflowX),S=y<C&&("auto"===_.overflowY||"scroll"===_.overflowY||"visible"===_.overflowY)):(D=w<E&&("auto"===_.overflowX||"scroll"===_.overflowX),S=y<C&&("auto"===_.overflowY||"scroll"===_.overflowY));var A=D&&(Math.abs(b-a)<=l&&x+w<E)-(Math.abs(v-a)<=l&&!!x),L=S&&(Math.abs(g-r)<=l&&k+y<C)-(Math.abs(m-r)<=l&&!!k);if(!Je[d])for(var P=0;P<=d;P++)Je[P]||(Je[P]={});Je[d].vx==A&&Je[d].vy==L&&Je[d].el===p||(Je[d].el=p,Je[d].vx=A,Je[d].vy=L,clearInterval(Je[d].pid),0==A&&0==L||(c=!0,Je[d].pid=setInterval(function(){o&&0===this.layer&&Xe.active._onTouchMove(Ze);var t=Je[this.layer].vy?Je[this.layer].vy*s:0,n=Je[this.layer].vx?Je[this.layer].vx*s:0;"function"==typeof i&&"continue"!==i.call(Xe.dragged.parentNode[j],n,t,e,Ze,Je[this.layer].el)||q(Je[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==u&&(h=N(h,!1)));et=c}}),30),it=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,r=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||i;r();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);l(),s&&!s.el.contains(c)&&(a("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function at(){}function rt(){}at.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=L(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:it},s(at,{pluginName:"revertOnSpill"}),rt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:it},s(rt,{pluginName:"removeOnSpill"}),Xe.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):t.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):(w(document,"pointermove",this._handleFallbackAutoScroll),w(document,"touchmove",this._handleFallbackAutoScroll),w(document,"mousemove",this._handleFallbackAutoScroll)),nt(),tt(),clearTimeout(E),E=void 0},nulling:function(){Ze=$e=ze=et=Qe=Ge=Ke=null,Je.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(o,i);if(Ze=e,t||this.options.forceAutoScrollFallback||h||d||f){ot(e,this.options,a,t);var r=N(a,!0);!et||Qe&&o===Ge&&i===Ke||(Qe&&nt(),Qe=setInterval((function(){var a=N(document.elementFromPoint(o,i),!0);a!==r&&(r=a,tt()),ot(e,n.options,a,t)}),10),Ge=o,Ke=i)}else{if(!this.options.bubbleScroll||N(a,!0)===V())return void tt();ot(e,this.options,N(a,!1),!1)}}},s(e,{pluginName:"scroll",initializeByDefault:!0})}),Xe.mount(rt,at);const lt=["data-url","onContextmenu","onMousedown","onClick"],st={key:0,class:"iconfont icon-webicon318 layout-navbars-tagsview-ul-li-iconfont"},ut=e.defineComponent({name:"layoutTagsView"}),ct=e.defineComponent({...ut,setup(i){const a=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./contextmenu-Jy1RzJjx.js"))))),r=e.ref([]),l=e.ref(),s=e.ref(),u=e.ref(),c=o.useTagsViewRoutes(),d=o.useThemeConfig(),h=o.useTagsViewRoutes(),p=o.useRoutesList(),{themeConfig:f}=n.storeToRefs(d),{tagsViewRoutes:m}=n.storeToRefs(h),{routesList:g}=n.storeToRefs(p),v=o.useKeepALiveNames(),b=t.useRoute(),w=t.useRouter(),y=e.reactive({routeActive:"",routePath:b.path,dropdown:{x:"",y:""},sortable:"",tagsRefsIndex:0,tagsViewList:[],tagsViewRoutesList:[]}),D=e.computed((()=>f.value.tagsStyle)),S=e.computed((()=>f.value)),E=e.computed((()=>e=>o.other.setTagsViewNameI18n(e))),C=e=>S.value.isShareTagsView?e.path===y.routePath:e.query&&Object.keys(e.query).length||e.params&&Object.keys(e.params).length?e.url?e.url===y.routeActive:e.path===y.routeActive:e.path===y.routePath,_=e=>{o.Session.set("tagsViewList",e)},T=e=>{var t;let n=e.query&&Object.keys(e.query).length>0?e.query:e.params;if(!n||Object.keys(n).length<=0)return e.path;let o="";for(let i in n)o+=n[i];return`${(null==(t=e.meta)?void 0:t.isDynamic)?e.meta.isDynamicPath:e.path}-${o}`},x=async(e,t)=>{var n,i;let a=(null==(n=null==t?void 0:t.meta)?void 0:n.isDynamic)?t.meta.isDynamicPath:e;if(y.tagsViewList.filter((e=>{var n,i;return e.path===a&&o.isObjectValueEqual((null==(n=null==t?void 0:t.meta)?void 0:n.isDynamic)?e.params?e.params:null:e.query?e.query:null,(null==(i=null==t?void 0:t.meta)?void 0:i.isDynamic)?(null==t?void 0:t.params)?null==t?void 0:t.params:null:(null==t?void 0:t.query)?null==t?void 0:t.query:null)})).length<=0){let e=y.tagsViewRoutesList.find((e=>e.path===a));if(!e)return!1;if(e.meta.isAffix)return!1;if(e.meta.isLink&&!e.meta.isIframe)return!1;(null==(i=null==t?void 0:t.meta)?void 0:i.isDynamic)?e.params=t.params:e.query=null==t?void 0:t.query,e.url=T(e),y.tagsViewList.push({...e}),_(y.tagsViewList)}},k=(e,t)=>{var n;let i=(null==(n=null==t?void 0:t.meta)?void 0:n.isDynamic)?t.meta.isDynamicPath:e;y.tagsViewList.forEach((e=>{var n,a,r;e.path!==i||o.isObjectValueEqual((null==(n=null==t?void 0:t.meta)?void 0:n.isDynamic)?e.params?e.params:null:e.query?e.query:null,(null==(a=null==t?void 0:t.meta)?void 0:a.isDynamic)?(null==t?void 0:t.params)?null==t?void 0:t.params:null:(null==t?void 0:t.query)?null==t?void 0:t.query:null)||((null==(r=null==t?void 0:t.meta)?void 0:r.isDynamic)?e.params=t.params:e.query=null==t?void 0:t.query,e.url=T(e),_(y.tagsViewList))}))},V=(t,n)=>e.nextTick().then((async()=>{var e,o,i;let a;if(null==(e=null==n?void 0:n.meta)?void 0:e.isDynamic){if(S.value.isShareTagsView?await k(t,n):await x(t,n),y.tagsViewList.some((e=>{var t;return e.path===(null==(t=null==n?void 0:n.meta)?void 0:t.isDynamicPath)})))return _(y.tagsViewList),!1;a=y.tagsViewRoutesList.find((e=>{var t;return e.path===(null==(t=null==n?void 0:n.meta)?void 0:t.isDynamicPath)}))}else{if(S.value.isShareTagsView?await k(t,n):await x(t,n),y.tagsViewList.some((e=>e.path===t)))return _(y.tagsViewList),!1;a=y.tagsViewRoutesList.find((e=>e.path===t))}return!!a&&(!((null==(o=null==a?void 0:a.meta)?void 0:o.isLink)&&!a.meta.isIframe)&&((null==(i=null==n?void 0:n.meta)?void 0:i.isDynamic)?a.params=(null==n?void 0:n.params)?null==n?void 0:n.params:b.params:a.query=(null==n?void 0:n.query)?null==n?void 0:n.query:b.query,a.url=T(a),await y.tagsViewList.push({...a}),void(await _(y.tagsViewList))))})),O=t=>e.nextTick().then((async()=>{let n=await y.tagsViewList;y.tagsRefsIndex=n.findIndex((e=>S.value.isShareTagsView?e.path===t:e.url===t)),await e.nextTick().then((async()=>{var e,t;if(r.value.length<=0)return!1;let n=r.value[y.tagsRefsIndex],o=y.tagsRefsIndex,i=r.value.length,a=r.value[0],s=r.value[r.value.length-1],u=null==(t=null==(e=l.value)?void 0:e.$refs)?void 0:t.wrapRef,c=u.scrollWidth,d=u.offsetWidth,h=u.scrollLeft,p=r.value[y.tagsRefsIndex-1],f=r.value[y.tagsRefsIndex+1],m=0,g=0;n===a?u.scrollLeft=0:n===s?u.scrollLeft=c-d:(m=0===o?a.offsetLeft-5:(null==p?void 0:p.offsetLeft)-5,g=o===i?s.offsetLeft+s.offsetWidth+5:f.offsetLeft+f.offsetWidth+5,g>h+d?u.scrollLeft=g-d:m<h&&(u.scrollLeft=m)),l.value.update()}))})),A=async()=>{y.routeActive=await T(b),y.routePath=await b.meta.isDynamic?b.meta.isDynamicPath:b.path,y.tagsViewList=[],y.tagsViewRoutesList=m.value,await(async()=>{o.Session.get("tagsViewList")&&S.value.isCacheTagsView?y.tagsViewList=o.Session.get("tagsViewList"):(await y.tagsViewRoutesList.map((e=>{var t;"/home"===e.path&&(e.meta.isAffix=!0),(null==(t=e.meta)?void 0:t.isAffix)&&!e.meta.isHide&&(e.url=T(e),y.tagsViewList.push({...e}))})),await V(b.path,b)),await O(S.value.isShareTagsView?y.routePath:y.routeActive)})()},L=e=>{var t,n;let o=e.query&&Object.keys(e.query).length>0?e.query:e.params;if(!o)return"";let i="";for(let[a,r]of Object.entries(o))(null==(t=e.meta)?void 0:t.isDynamic)?i+=`/${r}`:i+=`&${a}=${r}`;return(null==(n=e.meta)?void 0:n.isDynamic)?e.isFnClick?decodeURI(e.path):`${e.path.split(":")[0]}${i.replace(/^\//,"")}`:`${e.path}${i.replace(/^&/,"?")}`},P=async e=>{const t=decodeURI(e);let n={};if(y.tagsViewList.forEach((e=>{e.transUrl=L(e),e.transUrl?e.transUrl===L(e)&&(n=e):e.path===t&&(n=e)})),!n)return!1;await v.delCachedView(n),o.mittBus.emit("onTagsViewRefreshRouterView",e)},I=e=>{y.tagsViewList.map(((t,n,o)=>{var i;(null==(i=t.meta)?void 0:i.isAffix)||(S.value.isShareTagsView?t.path===e:t.url===e)&&(v.delCachedView(t),y.tagsViewList.splice(n,1),setTimeout((()=>{(y.tagsViewList.length===n&&S.value.isShareTagsView?y.routePath===e:y.routeActive===e)?o[o.length-1].meta.isDynamic?n!==o.length?w.push({name:o[n].name,params:o[n].params}):w.push({name:o[o.length-1].name,params:o[o.length-1].params}):n!==o.length?w.push({path:o[n].path,query:o[n].query}):w.push({path:o[o.length-1].path,query:o[o.length-1].query}):(y.tagsViewList.length!==n&&S.value.isShareTagsView?y.routePath===e:y.routeActive===e)&&(o[n].meta.isDynamic?w.push({name:o[n].name,params:o[n].params}):w.push({path:o[n].path,query:o[n].query}))}),0))})),_(y.tagsViewList)},M=e=>{let t={};return y.tagsViewList.forEach((n=>{n.transUrl=L(n),n.transUrl?n.transUrl===L(n)&&n.transUrl===e.commonUrl&&(t=n):n.path===decodeURI(e.path)&&(t=n)})),t||null},N=async e=>{if(e.commonUrl=L(e),!M(e))return o.ElMessage({type:"warning",message:"请正确输入路径及完整参数(query、params)"});const{path:t,name:n,params:i,query:a,meta:r,url:l}=M(e);switch(e.contextMenuClickId){case 0:r.isDynamic?await w.push({name:n,params:i}):await w.push({path:t,query:a}),P(b.fullPath);break;case 1:I(S.value.isShareTagsView?t:l);break;case 2:r.isDynamic?await w.push({name:n,params:i}):await w.push({path:t,query:a}),await(async e=>{const t=y.tagsViewList.find((t=>t.path===e));v.delOthersCachedViews(t),o.Session.get("tagsViewList")&&(y.tagsViewList=[],o.Session.get("tagsViewList").map((e=>{var t;(null==(t=e.meta)?void 0:t.isAffix)&&!e.meta.isHide&&(e.url=T(e),y.tagsViewList.push({...e}))})),await V(e,b),_(y.tagsViewList))})(t);break;case 3:(()=>{if(o.Session.get("tagsViewList")){v.delAllCachedViews(),y.tagsViewList=[],o.Session.get("tagsViewList").map((e=>{var t;(null==(t=e.meta)?void 0:t.isAffix)&&!e.meta.isHide&&(e.url=T(e),y.tagsViewList.push({...e}))})),_(y.tagsViewList);const e=o.dynamicRoutes.find((e=>"/"===e.path));e&&w.push(e.redirect)}})();break;case 4:(async e=>{const t=y.tagsViewList.find((t=>S.value.isShareTagsView?t.path===e:t.url===e));t.meta.isDynamic?await w.push({name:t.name,params:t.params}):await w.push({name:t.name,query:t.query}),c.setCurrenFullscreen(!0)})(S.value.isShareTagsView?t:l)}},R=e=>{l.value.$refs.wrapRef.scrollLeft+=e.wheelDelta/4},B=async()=>{const e=document.querySelector(".layout-navbars-tagsview-ul");if(!e)return!1;y.sortable.el&&y.sortable.destroy(),y.sortable=Xe.create(e,{animation:300,dataIdAttr:"data-url",disabled:!S.value.isSortableTagsView,onEnd:()=>{const e=[];y.sortable.toArray().map((t=>{y.tagsViewList.map((n=>{n.url===t&&e.push({...n})}))})),_(e)}})},q=async()=>{await B(),o.other.isMobile()&&y.sortable.el&&y.sortable.destroy()};return e.onBeforeMount((()=>{q(),window.addEventListener("resize",q),o.mittBus.on("onCurrentContextmenuClick",(e=>{e.isFnClick=!0,N(e)})),o.mittBus.on("openOrCloseSortable",(async()=>{await B()})),o.mittBus.on("openShareTagsView",(()=>{S.value.isShareTagsView&&(w.push("/"),y.tagsViewList=[],y.tagsViewRoutesList.map((e=>{var t;(null==(t=e.meta)?void 0:t.isAffix)&&!e.meta.isHide&&(e.url=T(e),y.tagsViewList.push({...e}))})))}))})),e.onUnmounted((()=>{o.mittBus.off("onCurrentContextmenuClick",(()=>{})),o.mittBus.off("openOrCloseSortable",(()=>{})),o.mittBus.off("openShareTagsView",(()=>{})),window.removeEventListener("resize",q)})),e.onBeforeUpdate((()=>{r.value=[]})),e.onMounted((async()=>{await A(),await B()})),t.onBeforeRouteUpdate((async e=>{y.routeActive=T(e),y.routePath=e.meta.isDynamic?e.meta.isDynamicPath:e.path,await V(e.path,e),O(S.value.isShareTagsView?y.routePath:y.routeActive)})),e.watch((()=>m.value),(async e=>{if(e.length===y.tagsViewRoutesList.length)return!1;await A()}),{deep:!0}),(t,n)=>{const o=e.resolveComponent("SvgIcon"),i=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["layout-navbars-tagsview",{"layout-navbars-tagsview-shadow":"classic"===S.value.layout}])},[e.createVNode(i,{ref_key:"scrollbarRef",ref:l,onWheel:e.withModifiers(R,["prevent"])},{default:e.withCtx((()=>[e.createElementVNode("ul",{class:e.normalizeClass(["layout-navbars-tagsview-ul",D.value]),ref_key:"tagsUlRef",ref:u},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.tagsViewList,((i,a)=>(e.openBlock(),e.createElementBlock("li",{key:a,class:e.normalizeClass(["layout-navbars-tagsview-ul-li",{"is-active":C(i)}]),"data-url":i.url,onContextmenu:e.withModifiers((e=>((e,t)=>{const{clientX:n,clientY:o}=t;y.dropdown.x=n,y.dropdown.y=o,s.value.openContextmenu(e)})(i,e)),["prevent"]),onMousedown:e=>((e,t)=>{var n;if(!(null==(n=e.meta)?void 0:n.isAffix)&&1===t.button){const t=Object.assign({},{contextMenuClickId:1,...e});N(t)}})(i,e),onClick:e=>((e,t)=>{y.tagsRefsIndex=t,w.push(e),"columns"===S.value.layout&&(g.value.find((t=>t.path.indexOf(`/${e.path.split("/")[1]}`)>-1)).children?S.value.isCollapse=!1:S.value.isCollapse=!0)})(i,a),ref_for:!0,ref:e=>{e&&(r.value[a]=e)}},[C(i)?(e.openBlock(),e.createElementBlock("i",st)):e.createCommentVNode("",!0),!C(i)&&S.value.isTagsviewIcon?(e.openBlock(),e.createBlock(o,{key:1,name:i.meta.icon,class:"pr5"},null,8,["name"])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(E.value(i)),1),C(i)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(o,{name:"ele-RefreshRight",class:"ml5 layout-navbars-tagsview-ul-li-refresh",onClick:n[0]||(n[0]=e.withModifiers((e=>P(t.$route.fullPath)),["stop"]))}),i.meta.isAffix?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(o,{key:0,name:"ele-Close",class:"layout-navbars-tagsview-ul-li-icon layout-icon-active",onClick:e.withModifiers((e=>I(S.value.isShareTagsView?i.path:i.url)),["stop"])},null,8,["onClick"]))],64)):e.createCommentVNode("",!0),i.meta.isAffix?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(o,{key:3,name:"ele-Close",class:"layout-navbars-tagsview-ul-li-icon layout-icon-three",onClick:e.withModifiers((e=>I(S.value.isShareTagsView?i.path:i.url)),["stop"])},null,8,["onClick"]))],42,lt)))),128))],2)])),_:1},512),e.createVNode(e.unref(a),{dropdown:y.dropdown,ref_key:"contextmenuRef",ref:s,onCurrentContextmenuClick:N},null,8,["dropdown"])],2)}}}),dt=o._export_sfc(ct,[["__scopeId","data-v-97b76a44"]]);exports.default=dt;
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, ref, reactive, computed, onBeforeMount, onUnmounted, onBeforeUpdate, onMounted, watch, resolveComponent, createElementBlock, openBlock, normalizeClass, createVNode, withModifiers, withCtx, createElementVNode, Fragment, renderList, createCommentVNode, createBlock, toDisplayString, unref, nextTick } from "vue";
|
|
2
2
|
import { useRoute, useRouter, onBeforeRouteUpdate } from "vue-router";
|
|
3
3
|
import { storeToRefs } from "pinia";
|
|
4
|
-
import { Z as useTagsViewRoutes, a as useThemeConfig, C as useRoutesList, u as useKeepALiveNames, $ as other, m as mittBus, b as ElMessage, a0 as isObjectValueEqual, S as Session, a1 as dynamicRoutes, _ as _export_sfc } from "./index-
|
|
4
|
+
import { Z as useTagsViewRoutes, a as useThemeConfig, C as useRoutesList, u as useKeepALiveNames, $ as other, m as mittBus, b as ElMessage, a0 as isObjectValueEqual, S as Session, a1 as dynamicRoutes, _ as _export_sfc } from "./index-B4DU32hf.mjs";
|
|
5
5
|
/**!
|
|
6
6
|
* Sortable 1.15.6
|
|
7
7
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -2170,7 +2170,7 @@ const __default__ = defineComponent({
|
|
|
2170
2170
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2171
2171
|
...__default__,
|
|
2172
2172
|
setup(__props) {
|
|
2173
|
-
const Contextmenu = defineAsyncComponent(() => import("./contextmenu-
|
|
2173
|
+
const Contextmenu = defineAsyncComponent(() => import("./contextmenu-CtJkieNg.mjs"));
|
|
2174
2174
|
const tagsRefs = ref([]);
|
|
2175
2175
|
const scrollbarRef = ref();
|
|
2176
2176
|
const contextmenuRef = ref();
|
|
Binary file
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, ref, onMounted, watch, nextTick, resolveComponent, createBlock, openBlock, withCtx, createVNode, unref } from "vue";
|
|
2
2
|
import { useRoute } from "vue-router";
|
|
3
3
|
import { storeToRefs } from "pinia";
|
|
4
|
-
import { a as useThemeConfig } from "./index-
|
|
4
|
+
import { a as useThemeConfig } from "./index-B4DU32hf.mjs";
|
|
5
5
|
const __default__ = defineComponent({
|
|
6
6
|
name: "layoutTransverse"
|
|
7
7
|
});
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
...__default__,
|
|
10
10
|
setup(__props) {
|
|
11
|
-
const LayoutHeader = defineAsyncComponent(() => import("./header-
|
|
12
|
-
const LayoutMain = defineAsyncComponent(() => import("./main-
|
|
11
|
+
const LayoutHeader = defineAsyncComponent(() => import("./header-CY6RE1kQ.mjs"));
|
|
12
|
+
const LayoutMain = defineAsyncComponent(() => import("./main-CvHm05TE.mjs"));
|
|
13
13
|
const layoutMainRef = ref();
|
|
14
14
|
const storesThemeConfig = useThemeConfig();
|
|
15
15
|
const { themeConfig } = storeToRefs(storesThemeConfig);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("vue-router"),t=require("pinia"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("vue-router"),t=require("pinia"),r=require("./index-7EYLZb3-.js"),n=e.defineComponent({name:"layoutTransverse"}),a=e.defineComponent({...n,setup(n){const a=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./header-DxaZy4nD.js"))))),u=e.defineAsyncComponent((()=>Promise.resolve().then((()=>require("./main-CM8PSl_a.js"))))),i=e.ref(),l=r.useThemeConfig(),{themeConfig:s}=t.storeToRefs(l),c=o.useRoute(),f=()=>{i.value.layoutMainScrollbarRef.update()},p=()=>{e.nextTick((()=>{setTimeout((()=>{f(),i.value.layoutMainScrollbarRef.wrapRef.scrollTop=0}),500)}))};return e.onMounted((()=>{p()})),e.watch((()=>c.path),(()=>{p()})),e.watch((()=>s.value.isTagsview),(()=>{e.nextTick((()=>{f()}))}),{deep:!0}),(o,t)=>{const r=e.resolveComponent("el-container");return e.openBlock(),e.createBlock(r,{class:"layout-container flex-center layout-backtop"},{default:e.withCtx((()=>[e.createVNode(e.unref(a)),e.createVNode(e.unref(u),{ref_key:"layoutMainRef",ref:i},null,512)])),_:1})}}});exports.default=a;
|
|
@@ -101,9 +101,7 @@ declare function getInstance(): ({
|
|
|
101
101
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
102
102
|
}, {
|
|
103
103
|
validate: (callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
104
|
-
validateField: (props?: Arrayable<FormItemProp> | undefined, callback
|
|
105
|
-
/** 视图尺寸范围 [768,640] */
|
|
106
|
-
? /** 视图尺寸范围 [768,640] */: FormValidateCallback | undefined) => FormValidationResult;
|
|
104
|
+
validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
107
105
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
108
106
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
109
107
|
scrollToField: (prop: FormItemProp) => void;
|
|
@@ -192,9 +190,7 @@ declare function getInstance(): ({
|
|
|
192
190
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
193
191
|
}, "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inline" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "fields"> & ShallowUnwrapRef<{
|
|
194
192
|
validate: (callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
195
|
-
validateField: (props?: Arrayable<FormItemProp> | undefined, callback
|
|
196
|
-
/** 视图尺寸范围 [768,640] */
|
|
197
|
-
? /** 视图尺寸范围 [768,640] */: FormValidateCallback | undefined) => FormValidationResult;
|
|
193
|
+
validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
198
194
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
199
195
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
200
196
|
scrollToField: (prop: FormItemProp) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { ICustomData } from '../../../../../types';
|
|
3
|
+
|
|
4
|
+
/** 表格回车键快捷查询功能 */
|
|
5
|
+
export declare function useQuickSearch(formConfigList: ComputedRef<ICustomData.FormItemConfig[]>, handleEnter: Function): {
|
|
6
|
+
unwatch: () => void;
|
|
7
|
+
resetwatch: () => void;
|
|
8
|
+
};
|
|
@@ -53,7 +53,6 @@ export declare function exportSelectedData(params: ExportDataNew): Promise<void>
|
|
|
53
53
|
* @param search_json_data 查询参数
|
|
54
54
|
* @param template_name 导出表格名称
|
|
55
55
|
* @param export_biz_type 导出表格标识,以接口做标识 /pri/easyexcel/list_page
|
|
56
|
-
*
|
|
57
56
|
*/
|
|
58
57
|
export declare function exportAllData(params: ExportDataAll, url?: string): Promise<void>;
|
|
59
58
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./uploadAvatar.vue_vue_type_style_index_0_scoped_8e10f7e4_lang-B-YXXUWn.js"),i=require("./index-BgzU7USc.js"),s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0,imgIsQqualCrop:!1}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const h=new RegExp(t,"i");for(var o=0;o<e.length;o++)h.test(e[o])&&(i=e[o]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let h=document.createElement("canvas"),o=h.getContext("2d");switch(o.save(),e){case 2:h.width=i,h.height=s,o.translate(i,0),o.scale(-1,1);break;case 3:h.width=i,h.height=s,o.translate(i/2,s/2),o.rotate(180*Math.PI/180),o.translate(-i/2,-s/2);break;case 4:h.width=i,h.height=s,o.translate(0,s),o.scale(1,-1);break;case 5:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.scale(1,-1);break;case 6:h.width=s,h.height=i,o.translate(s/2,i/2),o.rotate(90*Math.PI/180),o.translate(-i/2,-s/2);break;case 7:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.translate(i,-s),o.scale(-1,1);break;case 8:h.height=i,h.width=s,o.translate(s/2,i/2),o.rotate(-90*Math.PI/180),o.translate(-i/2,-s/2);break;default:h.width=i,h.height=s}o.drawImage(t,0,0,i,s),o.restore(),h.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=t.width,s=t.height;e.Exif.getData(t).then((e=>{this.orientation=e.orientation||1;let h=Number(this.maxImgSize);!this.orientation&&i<h&s<h?this.imgs=this.img:(i>h&&(s=s/i*h,i=h),s>h&&(i=i/s*h,s=h),this.checkOrientationImage(t,this.orientation,i,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var i=new XMLHttpRequest;i.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},i.open("GET",this.img,!0),i.responseType="blob",i.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,h=t.touches[0].clientX,o=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(h-c,2)+Math.pow(o-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=h-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,h,o,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,h=t-c+this.cropW,o=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,h=t-n+this.cropW,o=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=h),r.y2<=a.y2&&(i=o)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,h=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;h<0?e+=Math.abs(h):e>Math.abs(h)&&(e-=Math.abs(h));let o=h<0?"add":"reduce";if(o!==this.coeStatus&&(this.coeStatus=o,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var h=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];h+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=h,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,h){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=h,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,h=this.h,o=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;o=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),h>i&&(h=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-o-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-o?this.cropOldW-t:this.cropOldW+this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX-t<=s-o?this.cropChangeX+t:o):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-o?Math.abs(t+this.cropOldW):this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-o?this.cropChangeX-Math.abs(t+this.cropOldW):o))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=h-this.cropChangeY-n<=h-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY-n<=h-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=h?Math.abs(n)-this.cropOldH:h-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=h?this.cropOldH+n:h-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>h?(this.cropH=h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,h,o){const r=t/e;let a=h,c=o;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<h&&(a=h,c=Math.ceil(a/r)),c<o&&(c=o,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=h-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,h,o=i-this.cropX,r=s-this.cropY;if(e&&(o=this.cropOffsertX,r=this.cropOffsertY),t=o<=0?0:o+this.cropW>this.w?this.w-this.cropW:o,h=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),h<=e.y1&&(h=e.y1),h+this.cropH>e.y2&&(h=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=h,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},h=this.trueWidth*i,o=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(h-o)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(o-h)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=e.getContext("2d"),s=new Image,h=this.rotate,o=this.trueWidth,r=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;s.onload=()=>{if(0!==this.cropW){let t=1;this.high&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge)));let e=this.cropW*t,n=this.cropH*t,l=o*this.scale*t,d=r*this.scale*t,u=(this.x-a+this.trueWidth*(1-this.scale)/2)*t,g=(this.y-c+this.trueHeight*(1-this.scale)/2)*t;switch(p(e,n),i.save(),h){case 0:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d);break;case 1:case-3:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d/this.scale,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d,l,d));break;case 2:case-2:this.full?(p(e/this.scale,n/this.scale),i.rotate(90*h*Math.PI/180),u/=this.scale,g/=this.scale,i.drawImage(s,-u-l/this.scale,-g-d/this.scale,l/this.scale,d/this.scale)):(i.rotate(90*h*Math.PI/180),i.drawImage(s,-u-l,-g-d,l,d));break;case 3:case-1:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l/this.scale,u,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l,u,l,d));break;default:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d)}i.restore()}else{let t=o*this.scale,e=r*this.scale;switch(i.save(),h){case 0:p(t,e),i.drawImage(s,0,0,t,e);break;case 1:case-3:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,0,-e,t,e);break;case 2:case-2:p(t,e),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,-e,t,e);break;case 3:case-1:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,0,t,e);break;default:p(t,e),i.drawImage(s,0,0,t,e)}i.restore()}t(e)},"data"!==this.img.substr(0,4)&&(s.crossOrigin="Anonymous"),s.src=this.imgs;const n=this.fillColor;function p(t,s){e.width=Math.round(t),e.height=Math.round(s),n&&(i.fillStyle=n,i.fillRect(0,0,e.width,e.height))}},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let h=(this.x-this.cropOffsertX)/i,o=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${h}px, ${o}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${h}px, ${o}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let h=s[0];if(-1!==h.search("px")){h=h.replace("px",""),e=parseFloat(h);const o=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(o,r)}if(-1!==h.search("%")&&(h=h.replace("%",""),e=parseFloat(h)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===h){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(h){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,h=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=h<s?h:s}var h=t||parseFloat(this.autoCropWidth),o=e||parseFloat(this.autoCropHeight);0!==h&&0!==o||(h=.8*i,o=.8*s),h=h>i?i:h,o=o>s?s:o,this.fixed&&(o=h/this.fixedNumber[0]*this.fixedNumber[1]),o>this.h&&(h=(o=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(h,o)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let h=this.getImgAxis(t,e,i),o=this.getCropAxis();h.x1>=o.x1&&(s=!1),h.x2<=o.x2&&(s=!1),h.y1>=o.y1&&(s=!1),h.y2<=o.y2&&(s=!1),s||this.changeImgScale(h,o,i)}return s},changeImgScale(t,e,i){let s=this.trueWidth,h=this.trueHeight,o=s*i,r=h*i;if(o>=this.cropW&&r>=this.cropH)this.scale=i;else{const t=this.cropW/s,e=this.cropH/h,i=this.cropH<=h*t?t:e;this.scale=i,o=s*i,r=h*i}this.imgIsQqualCrop||(t.x1>=e.x1&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2:this.x=e.x1-(s-o)/2),t.x2<=e.x2&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2-r+this.cropW:this.x=e.x2-(s-o)/2-o),t.y1>=e.y1&&(this.isRotateRightOrLeft?this.y=e.y1-(h-r)/2-(r-o)/2:this.y=e.y1-(h-r)/2),t.y2<=e.y2&&(this.isRotateRightOrLeft?this.y=e.y2-(h-r)/2-(r-o)/2-o:this.y=e.y2-(h-r)/2-r)),(o<this.cropW||r<this.cropH)&&(this.imgIsQqualCrop=!0)}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,s){for(var h=atob(this.toDataURL(i,s).split(",")[1]),o=h.length,r=new Uint8Array(o),a=0;a<o;a++)r[a]=h.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},h={key:0,class:"cropper-box"},o=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=i._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",h,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,o)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-8e42ffcf"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({__name:"uploadAvatar",props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(e){const{postSinglefile:s,postUpdateFile:h}=i.useFileController(),o=e;let r=t.ref({});t.onMounted((async()=>{r.value=await i.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(o);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let m=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},f=t=>{const e=t||1;g.value.changeScale(e)},v=()=>{g.value.refresh()};const w=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return i.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||i.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:o.proxyId}),i=await h({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:o.proxyId});o.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),h=t.resolveComponent("el-row"),o=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(h,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:w},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(h,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[i[6]||(i[6]=t.createTextVNode(" 选择 ")),t.createVNode(o,{name:"ele-UploadFilled"})])),_:1,__:[6]})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(f)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(f)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(m)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(m)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(v)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1,__:[7]})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1,__:[8]})])),_:1})])),_:1})])}}}),g=i._export_sfc(u,[["__scopeId","data-v-8e10f7e4"]]);exports.default=g;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./uploadAvatar.vue_vue_type_style_index_0_scoped_8e10f7e4_lang-B-YXXUWn.js"),i=require("./index-7EYLZb3-.js"),s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0,imgIsQqualCrop:!1}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const h=new RegExp(t,"i");for(var o=0;o<e.length;o++)h.test(e[o])&&(i=e[o]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let h=document.createElement("canvas"),o=h.getContext("2d");switch(o.save(),e){case 2:h.width=i,h.height=s,o.translate(i,0),o.scale(-1,1);break;case 3:h.width=i,h.height=s,o.translate(i/2,s/2),o.rotate(180*Math.PI/180),o.translate(-i/2,-s/2);break;case 4:h.width=i,h.height=s,o.translate(0,s),o.scale(1,-1);break;case 5:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.scale(1,-1);break;case 6:h.width=s,h.height=i,o.translate(s/2,i/2),o.rotate(90*Math.PI/180),o.translate(-i/2,-s/2);break;case 7:h.height=i,h.width=s,o.rotate(.5*Math.PI),o.translate(i,-s),o.scale(-1,1);break;case 8:h.height=i,h.width=s,o.translate(s/2,i/2),o.rotate(-90*Math.PI/180),o.translate(-i/2,-s/2);break;default:h.width=i,h.height=s}o.drawImage(t,0,0,i,s),o.restore(),h.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=t.width,s=t.height;e.Exif.getData(t).then((e=>{this.orientation=e.orientation||1;let h=Number(this.maxImgSize);!this.orientation&&i<h&s<h?this.imgs=this.img:(i>h&&(s=s/i*h,i=h),s>h&&(i=i/s*h,s=h),this.checkOrientationImage(t,this.orientation,i,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var i=new XMLHttpRequest;i.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},i.open("GET",this.img,!0),i.responseType="blob",i.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,h=t.touches[0].clientX,o=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(h-c,2)+Math.pow(o-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=h-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,h,o,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,h=t-c+this.cropW,o=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,h=t-n+this.cropW,o=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=h),r.y2<=a.y2&&(i=o)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,h=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;h<0?e+=Math.abs(h):e>Math.abs(h)&&(e-=Math.abs(h));let o=h<0?"add":"reduce";if(o!==this.coeStatus&&(this.coeStatus=o,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var h=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];h+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=h,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,h){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=h,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,h=this.h,o=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;o=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),h>i&&(h=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-o-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-o?this.cropOldW-t:this.cropOldW+this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX-t<=s-o?this.cropChangeX+t:o):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-o?Math.abs(t+this.cropOldW):this.cropChangeX-o,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-o?this.cropChangeX-Math.abs(t+this.cropOldW):o))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=h-this.cropChangeY-n<=h-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY-n<=h-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=h?Math.abs(n)-this.cropOldH:h-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=h?this.cropOldH+n:h-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=h-this.cropChangeY+Math.abs(n+this.cropOldH)<=h-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>h?(this.cropH=h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,h,o){const r=t/e;let a=h,c=o;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<h&&(a=h,c=Math.ceil(a/r)),c<o&&(c=o,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,h="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=h-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,h,o=i-this.cropX,r=s-this.cropY;if(e&&(o=this.cropOffsertX,r=this.cropOffsertY),t=o<=0?0:o+this.cropW>this.w?this.w-this.cropW:o,h=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),h<=e.y1&&(h=e.y1),h+this.cropH>e.y2&&(h=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=h,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},h=this.trueWidth*i,o=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(h-o)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(o-h)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=e.getContext("2d"),s=new Image,h=this.rotate,o=this.trueWidth,r=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;s.onload=()=>{if(0!==this.cropW){let t=1;this.high&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge)));let e=this.cropW*t,n=this.cropH*t,l=o*this.scale*t,d=r*this.scale*t,u=(this.x-a+this.trueWidth*(1-this.scale)/2)*t,g=(this.y-c+this.trueHeight*(1-this.scale)/2)*t;switch(p(e,n),i.save(),h){case 0:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d);break;case 1:case-3:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d/this.scale,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,g,-u-d,l,d));break;case 2:case-2:this.full?(p(e/this.scale,n/this.scale),i.rotate(90*h*Math.PI/180),u/=this.scale,g/=this.scale,i.drawImage(s,-u-l/this.scale,-g-d/this.scale,l/this.scale,d/this.scale)):(i.rotate(90*h*Math.PI/180),i.drawImage(s,-u-l,-g-d,l,d));break;case 3:case-1:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l/this.scale,u,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*h*Math.PI/180),i.drawImage(s,-g-l,u,l,d));break;default:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d)}i.restore()}else{let t=o*this.scale,e=r*this.scale;switch(i.save(),h){case 0:p(t,e),i.drawImage(s,0,0,t,e);break;case 1:case-3:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,0,-e,t,e);break;case 2:case-2:p(t,e),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,-e,t,e);break;case 3:case-1:p(e,t),i.rotate(90*h*Math.PI/180),i.drawImage(s,-t,0,t,e);break;default:p(t,e),i.drawImage(s,0,0,t,e)}i.restore()}t(e)},"data"!==this.img.substr(0,4)&&(s.crossOrigin="Anonymous"),s.src=this.imgs;const n=this.fillColor;function p(t,s){e.width=Math.round(t),e.height=Math.round(s),n&&(i.fillStyle=n,i.fillRect(0,0,e.width,e.height))}},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let h=(this.x-this.cropOffsertX)/i,o=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${h}px, ${o}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${h}px, ${o}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let h=s[0];if(-1!==h.search("px")){h=h.replace("px",""),e=parseFloat(h);const o=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(o,r)}if(-1!==h.search("%")&&(h=h.replace("%",""),e=parseFloat(h)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===h){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(h){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,h=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=h<s?h:s}var h=t||parseFloat(this.autoCropWidth),o=e||parseFloat(this.autoCropHeight);0!==h&&0!==o||(h=.8*i,o=.8*s),h=h>i?i:h,o=o>s?s:o,this.fixed&&(o=h/this.fixedNumber[0]*this.fixedNumber[1]),o>this.h&&(h=(o=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(h,o)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let h=this.getImgAxis(t,e,i),o=this.getCropAxis();h.x1>=o.x1&&(s=!1),h.x2<=o.x2&&(s=!1),h.y1>=o.y1&&(s=!1),h.y2<=o.y2&&(s=!1),s||this.changeImgScale(h,o,i)}return s},changeImgScale(t,e,i){let s=this.trueWidth,h=this.trueHeight,o=s*i,r=h*i;if(o>=this.cropW&&r>=this.cropH)this.scale=i;else{const t=this.cropW/s,e=this.cropH/h,i=this.cropH<=h*t?t:e;this.scale=i,o=s*i,r=h*i}this.imgIsQqualCrop||(t.x1>=e.x1&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2:this.x=e.x1-(s-o)/2),t.x2<=e.x2&&(this.isRotateRightOrLeft?this.x=e.x1-(s-o)/2-(o-r)/2-r+this.cropW:this.x=e.x2-(s-o)/2-o),t.y1>=e.y1&&(this.isRotateRightOrLeft?this.y=e.y1-(h-r)/2-(r-o)/2:this.y=e.y1-(h-r)/2),t.y2<=e.y2&&(this.isRotateRightOrLeft?this.y=e.y2-(h-r)/2-(r-o)/2-o:this.y=e.y2-(h-r)/2-r)),(o<this.cropW||r<this.cropH)&&(this.imgIsQqualCrop=!0)}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,s){for(var h=atob(this.toDataURL(i,s).split(",")[1]),o=h.length,r=new Uint8Array(o),a=0;a<o;a++)r[a]=h.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},h={key:0,class:"cropper-box"},o=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=i._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",h,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,o)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-8e42ffcf"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({__name:"uploadAvatar",props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(e){const{postSinglefile:s,postUpdateFile:h}=i.useFileController(),o=e;let r=t.ref({});t.onMounted((async()=>{r.value=await i.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(o);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let m=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},f=t=>{const e=t||1;g.value.changeScale(e)},v=()=>{g.value.refresh()};const w=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return i.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||i.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:o.proxyId}),i=await h({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:o.proxyId});o.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),h=t.resolveComponent("el-row"),o=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(h,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:w},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(h,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[i[6]||(i[6]=t.createTextVNode(" 选择 ")),t.createVNode(o,{name:"ele-UploadFilled"})])),_:1,__:[6]})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(f)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(f)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(m)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(m)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(v)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1,__:[7]})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1,__:[8]})])),_:1})])),_:1})])}}}),g=i._export_sfc(u,[["__scopeId","data-v-8e10f7e4"]]);exports.default=g;
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElementBlock, openBlock, createCommentVNode, createElementVNode, withDirectives, normalizeStyle, vShow, normalizeClass, toDisplayString, defineComponent, ref, onMounted, toRefs, reactive, resolveComponent, createVNode, withCtx, unref, createTextVNode } from "vue";
|
|
2
2
|
import { E as Exif } from "./uploadAvatar.vue_vue_type_style_index_0_scoped_8e10f7e4_lang-DOiOwYLl.mjs";
|
|
3
|
-
import { _ as _export_sfc, V as systemStore, b as ElMessage, Y as useFileController } from "./index-
|
|
3
|
+
import { _ as _export_sfc, V as systemStore, b as ElMessage, Y as useFileController } from "./index-B4DU32hf.mjs";
|
|
4
4
|
const _sfc_main$1 = {
|
|
5
5
|
data: function() {
|
|
6
6
|
return {
|
|
Binary file
|