hs-admin-ui 2.3.8 → 2.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{401-g-u4vBWU.mjs → 401-Cbw4DMk9.mjs} +1 -1
- package/dist/401-Cbw4DMk9.mjs.gz +0 -0
- package/dist/{401-Dfgw75Rj.js → 401-jSppA9Zz.js} +1 -1
- package/dist/401-jSppA9Zz.js.gz +0 -0
- package/dist/{404-zrr7JX87.js → 404-CwgZtZXg.js} +1 -1
- package/dist/{404-zrr7JX87.js.gz → 404-CwgZtZXg.js.gz} +0 -0
- package/dist/{404-DzQCh7rA.mjs → 404-D_FF2tXy.mjs} +1 -1
- package/dist/{404-DzQCh7rA.mjs.gz → 404-D_FF2tXy.mjs.gz} +0 -0
- package/dist/{account-C7ACGOaE.mjs → account-C_11uCJ5.mjs} +2 -2
- package/dist/account-C_11uCJ5.mjs.gz +0 -0
- package/dist/{account-C3sGskoP.js → account-luTrDPeZ.js} +1 -1
- package/dist/account-luTrDPeZ.js.gz +0 -0
- package/dist/{aside-BPV-Msle.js → aside-DrR1ptpx.js} +1 -1
- package/dist/aside-DrR1ptpx.js.gz +0 -0
- package/dist/{aside-BUvVvT27.mjs → aside-DxXkiWCP.mjs} +2 -2
- package/dist/aside-DxXkiWCP.mjs.gz +0 -0
- package/dist/{btnIndex-DHN1oZNE.js → btnIndex-BxNzcIpl.js} +1 -1
- package/dist/btnIndex-BxNzcIpl.js.gz +0 -0
- package/dist/{btnIndex-BVcip7s6.mjs → btnIndex-DXrLV4Le.mjs} +2 -2
- package/dist/btnIndex-DXrLV4Le.mjs.gz +0 -0
- package/dist/{classic-DLNYZu-z.mjs → classic-BBXfw8PN.mjs} +2 -2
- package/dist/classic-BBXfw8PN.mjs.gz +0 -0
- package/dist/{classic-EH8fj0mf.js → classic-jN9eN3W4.js} +1 -1
- package/dist/classic-jN9eN3W4.js.gz +0 -0
- package/dist/{columns-D2GSjPml.mjs → columns-B0QQMZux.mjs} +2 -2
- package/dist/columns-B0QQMZux.mjs.gz +0 -0
- package/dist/{columns-Bedf3Wad.js → columns-ByyBBsmR.js} +1 -1
- package/dist/columns-ByyBBsmR.js.gz +0 -0
- package/dist/{columnsAside-CbYZMOQy.mjs → columnsAside-WccFk-f7.mjs} +1 -1
- package/dist/columnsAside-WccFk-f7.mjs.gz +0 -0
- package/dist/{columnsAside-CQ7ZgAHj.js → columnsAside-ZvT-MgT4.js} +1 -1
- package/dist/columnsAside-ZvT-MgT4.js.gz +0 -0
- package/dist/{contextmenu-Ds6DkZEb.js → contextmenu-B4Hb57rh.js} +1 -1
- package/dist/contextmenu-B4Hb57rh.js.gz +0 -0
- package/dist/{contextmenu-CwLSZ3Yh.mjs → contextmenu-Buy48Op6.mjs} +1 -1
- package/dist/contextmenu-Buy48Op6.mjs.gz +0 -0
- package/dist/{contextmenu-BVBYHD78.mjs → contextmenu-C_CtZxDS.mjs} +1 -1
- package/dist/contextmenu-C_CtZxDS.mjs.gz +0 -0
- package/dist/{contextmenu-dHOpR1Qx.js → contextmenu-DXs1dJQY.js} +1 -1
- package/dist/contextmenu-DXs1dJQY.js.gz +0 -0
- package/dist/{contextmenu-CgYQNPjx.mjs → contextmenu-NAHP1wsN.mjs} +1 -1
- package/dist/contextmenu-NAHP1wsN.mjs.gz +0 -0
- package/dist/{contextmenu-BpvCjHT7.js → contextmenu-RsZPuGse.js} +1 -1
- package/dist/contextmenu-RsZPuGse.js.gz +0 -0
- package/dist/{defaults-CVW7crtj.mjs → defaults-CB40cXak.mjs} +2 -2
- package/dist/defaults-CB40cXak.mjs.gz +0 -0
- package/dist/{defaults-BVTTuIR_.js → defaults-zqTmlJ78.js} +1 -1
- package/dist/defaults-zqTmlJ78.js.gz +0 -0
- package/dist/{dialog-D9eZvtxc.mjs → dialog-7oedBxDC.mjs} +1 -1
- package/dist/{dialog-CYx7NrGc.js → dialog-BjeoxDAM.js} +1 -1
- package/dist/{dialog-CZX07S3d.js → dialog-CdGbdU6q.js} +1 -1
- package/dist/{dialog-CRmRGksS.mjs → dialog-CgsL7Hwz.mjs} +1 -1
- package/dist/{dialog-B7M3cw_7.js → dialog-CwLrzcr9.js} +1 -1
- package/dist/{dialog-Cl_1nPYt.mjs → dialog-pt58ZJ12.mjs} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-C2HEUviM.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-B2zy6kao.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-B2zy6kao.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DorwKr22.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CnF5i0Sp.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CnF5i0Sp.mjs.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BCgkyM3k.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CKREdnWS.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-CKREdnWS.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C3BnOJVK.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DmOkXvkd.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-DmOkXvkd.mjs.gz +0 -0
- package/dist/{dictDialog-DfvPdSeL.mjs → dictDialog-BZj9vMQ4.mjs} +1 -1
- package/dist/{dictDialog-Bibu1wNQ.js → dictDialog-C5cjwTRk.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DGtCbZ7Z.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Cv-A-IqQ.mjs} +2 -2
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-Cv-A-IqQ.mjs.gz +0 -0
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-C7FKjUhn.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DsUkjIt3.js} +1 -1
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DsUkjIt3.js.gz +0 -0
- package/dist/{dictItemDialog-d1LSFcus.js → dictItemDialog-CyUbld8C.js} +1 -1
- package/dist/{dictItemDialog-CSvZR94A.mjs → dictItemDialog-xiXnPttp.mjs} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-DWdjxJHY.js → dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-DX-0LYTR.js} +1 -1
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-DX-0LYTR.js.gz +0 -0
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-BKFdM9p1.mjs → dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-DsKdd5JW.mjs} +2 -2
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-DsKdd5JW.mjs.gz +0 -0
- package/dist/{formConfig-BVFpWQ4E.mjs → formConfig-B1m1dg_F.mjs} +4 -4
- package/dist/formConfig-B1m1dg_F.mjs.gz +0 -0
- package/dist/{formConfig-CqMXl37Q.js → formConfig-DOsjbrJl.js} +1 -1
- package/dist/formConfig-DOsjbrJl.js.gz +0 -0
- package/dist/{header-D63no7Mn.js → header-6g_kcXjg.js} +1 -1
- package/dist/{header-CbbBR9Zw.mjs → header-MRDb44NG.mjs} +2 -2
- package/dist/{horizontal-BWwenmZn.mjs → horizontal-D49HjNGk.mjs} +2 -2
- package/dist/horizontal-D49HjNGk.mjs.gz +0 -0
- package/dist/{horizontal-4q2AYAOB.js → horizontal-DN9X40rU.js} +1 -1
- package/dist/horizontal-DN9X40rU.js.gz +0 -0
- package/dist/{hsAttrBtn-DZeMIo1O.js → hsAttrBtn-DD_u3Eo-.js} +1 -1
- package/dist/{hsAttrBtn-CGThTn34.mjs → hsAttrBtn-nuhYpODp.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-Bv3sfJjM.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-CJb1Un_L.mjs} +2 -2
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-CJb1Un_L.mjs.gz +0 -0
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-BPCYs1KK.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-CRsyn0Hs.js} +1 -1
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-CRsyn0Hs.js.gz +0 -0
- package/dist/{hsAttrForm-BUQB8aP_.mjs → hsAttrForm-iL_bZMtD.mjs} +1 -1
- package/dist/{hsAttrForm-DP8qsRlg.js → hsAttrForm-rjk10YEk.js} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-Df-FT9i4.js → hsAttrForm.vue_vue_type_script_setup_true_lang-BgHWghFk.js} +1 -1
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BgHWghFk.js.gz +0 -0
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-B6ianqwG.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-CfskxT0p.mjs} +1 -1
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-CfskxT0p.mjs.gz +0 -0
- package/dist/{hsBtnConfigList-C4ZeRFui.js → hsBtnConfigList-BXif05ap.js} +1 -1
- package/dist/hsBtnConfigList-BXif05ap.js.gz +0 -0
- package/dist/{hsBtnConfigList-C2XGdPMb.mjs → hsBtnConfigList-CQ_V0rXf.mjs} +1 -1
- package/dist/hsBtnConfigList-CQ_V0rXf.mjs.gz +0 -0
- package/dist/{hsBtnItemConfig-5Z0LWg_8.js → hsBtnItemConfig-BEzPifNo.js} +1 -1
- package/dist/{hsBtnItemConfig-CuKshNxs.mjs → hsBtnItemConfig-CydxRUWV.mjs} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Bgl5wCIY.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B5OQR63n.js} +1 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B5OQR63n.js.gz +0 -0
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B1R9V-HF.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BIPNTFYF.mjs} +1 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BIPNTFYF.mjs.gz +0 -0
- package/dist/{hsBtnPanel-Dna-LwMy.js → hsBtnPanel-Ci1qsf0w.js} +1 -1
- package/dist/{hsBtnPanel-DmV4OgZ0.mjs → hsBtnPanel-Dmi3D0n3.mjs} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BgmZdeNw.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Cj28bE8F.js} +1 -1
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Cj28bE8F.js.gz +0 -0
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-HB01bFGa.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-XUSwx9Xv.mjs} +3 -3
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-XUSwx9Xv.mjs.gz +0 -0
- package/dist/{hsFormConfig-Uz3pwQT-.mjs → hsFormConfig-Di4EadkM.mjs} +1 -1
- package/dist/hsFormConfig-Di4EadkM.mjs.gz +0 -0
- package/dist/{hsFormConfig-C2rYCsx9.js → hsFormConfig-DkQgjtk7.js} +1 -1
- package/dist/hsFormConfig-DkQgjtk7.js.gz +0 -0
- package/dist/{hsFormConfigList-Duz0FyVG.mjs → hsFormConfigList-C_gC4x4o.mjs} +2 -2
- package/dist/hsFormConfigList-C_gC4x4o.mjs.gz +0 -0
- package/dist/{hsFormConfigList-CGvfa_Zz.js → hsFormConfigList-ud7YjLRV.js} +1 -1
- package/dist/hsFormConfigList-ud7YjLRV.js.gz +0 -0
- package/dist/{hsFormPanel-DI568WqB.mjs → hsFormPanel-Bj4ykgSq.mjs} +1 -1
- package/dist/{hsFormPanel-iN_aLZYG.js → hsFormPanel-CZu6O7p5.js} +1 -1
- package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C7X9ff6u.js → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BYQYI7Sf.js} +1 -1
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BYQYI7Sf.js.gz +0 -0
- package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-8rbL4F7f.mjs → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CdMVK_XT.mjs} +4 -4
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CdMVK_XT.mjs.gz +0 -0
- package/dist/{hsFormParse-HADqhjV2.mjs → hsFormParse-BfiqaA4q.mjs} +1 -1
- package/dist/{hsFormParse-CAcd6eZa.js → hsFormParse-DfMuUzUH.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-OAJ7nZLC.js → hsFormParse.vue_vue_type_script_setup_true_lang-Dzwtrj0O.js} +1 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-Dzwtrj0O.js.gz +0 -0
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-C0DedwKM.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-KF1SfBRj.mjs} +1 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-KF1SfBRj.mjs.gz +0 -0
- package/dist/{hsPageTree-D8lDvIGs.mjs → hsPageTree-BeTxeXJV.mjs} +1 -1
- package/dist/hsPageTree-BeTxeXJV.mjs.gz +0 -0
- package/dist/{hsPageTree-Dzwi9FIh.js → hsPageTree-D8L0sq7H.js} +1 -1
- package/dist/hsPageTree-D8L0sq7H.js.gz +0 -0
- package/dist/{hsPanelItem-DEf8gXEt.js → hsPanelItem-B-whaUR3.js} +1 -1
- package/dist/{hsPanelItem-iwC7pakp.mjs → hsPanelItem-DsJFmjfW.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-zeKKBTB0.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-By9LPu8N.mjs} +1 -1
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-By9LPu8N.mjs.gz +0 -0
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-l7VX7SM6.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-XtPxC4MS.js} +1 -1
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-XtPxC4MS.js.gz +0 -0
- package/dist/{iframes-CDshyLTu.mjs → iframes-DE_eR7g1.mjs} +1 -1
- package/dist/iframes-DE_eR7g1.mjs.gz +0 -0
- package/dist/{iframes-CZAhVPxh.js → iframes-Da6jiiTA.js} +1 -1
- package/dist/iframes-Da6jiiTA.js.gz +0 -0
- package/dist/{index-Cae--6-5.mjs → index-1fTYvUv5.mjs} +2 -2
- package/dist/index-1fTYvUv5.mjs.gz +0 -0
- package/dist/{index-CU8lrTd2.mjs → index-80soceQ-.mjs} +1 -1
- package/dist/{index-DRXg5IhW.js → index-B08fdcZC.js} +1 -1
- package/dist/index-B08fdcZC.js.gz +0 -0
- package/dist/{index-BWxQ70Wi.mjs → index-B5AOFotu.mjs} +2 -2
- package/dist/{index-BtokjamT.js → index-B8wemy7u.js} +1 -1
- package/dist/index-B8wemy7u.js.gz +0 -0
- package/dist/{index-DffuAtXI.js → index-B9Vs9qvS.js} +1 -1
- package/dist/index-B9Vs9qvS.js.gz +0 -0
- package/dist/{index-Czdrt5Rf.js → index-BA7rSAhS.js} +1 -1
- package/dist/{index-bk5kC246.mjs → index-BAJnHHzs.mjs} +3 -3
- package/dist/index-BAJnHHzs.mjs.gz +0 -0
- package/dist/{index-BjFtBYYx.mjs → index-BCTqarx_.mjs} +1 -1
- package/dist/index-BCTqarx_.mjs.gz +0 -0
- package/dist/{index-ByyFl6xE.js → index-BJcj_huV.js} +1 -1
- package/dist/index-BJcj_huV.js.gz +0 -0
- package/dist/{index-CK2UN4QF.mjs → index-BM6181oD.mjs} +1 -1
- package/dist/index-BM6181oD.mjs.gz +0 -0
- package/dist/{index-CPyqvHGM.js → index-BPfP9jGR.js} +1 -1
- package/dist/index-BPfP9jGR.js.gz +0 -0
- package/dist/{index-BhgzmN-s.mjs → index-BRhSGghO.mjs} +1 -1
- package/dist/index-BRhSGghO.mjs.gz +0 -0
- package/dist/{index-D6BYH5l6.js → index-BUyaiEeC.js} +1 -1
- package/dist/index-BUyaiEeC.js.gz +0 -0
- package/dist/{index-C0xwnlUB.js → index-BV-oSmw2.js} +1 -1
- package/dist/{index-DAlqTHTo.mjs → index-BueMjrHz.mjs} +1 -1
- package/dist/index-BueMjrHz.mjs.gz +0 -0
- package/dist/{index-UjgP-Shd.mjs → index-C9ybJw4j.mjs} +5 -5
- package/dist/index-C9ybJw4j.mjs.gz +0 -0
- package/dist/{index-BfCma0S9.js → index-CHQH1aky.js} +1 -1
- package/dist/{index-CtqrR5aV.js → index-CKHwLwqW.js} +1 -1
- package/dist/index-CKHwLwqW.js.gz +0 -0
- package/dist/{index-8Tsr3iRi.mjs → index-CN0wUp_i.mjs} +4 -4
- package/dist/index-CN0wUp_i.mjs.gz +0 -0
- package/dist/{index-hTl5BRjC.js → index-COi6YRAJ.js} +1 -1
- package/dist/index-COi6YRAJ.js.gz +0 -0
- package/dist/{index-R7DRZ3ob.js → index-CYdEEJo9.js} +1 -1
- package/dist/index-CYdEEJo9.js.gz +0 -0
- package/dist/{index-Bi9HeWsm.mjs → index-Cg2-sGV1.mjs} +4 -4
- package/dist/index-Cg2-sGV1.mjs.gz +0 -0
- package/dist/{index-CuGLT2vB.mjs → index-CghBDK6P.mjs} +1 -1
- package/dist/{index-6sa2kYZI.js → index-ClczFsVP.js} +1 -1
- package/dist/index-ClczFsVP.js.gz +0 -0
- package/dist/{index-khQ3qRd_.mjs → index-CoNV2sPO.mjs} +1 -1
- package/dist/{index-DMvbtuDl.js → index-Cx10Wgcu.js} +3 -3
- package/dist/{index-DMvbtuDl.js.gz → index-Cx10Wgcu.js.gz} +0 -0
- package/dist/{index-CTMmZEs5.js → index-D-uVuXFC.js} +1 -1
- package/dist/index-D-uVuXFC.js.gz +0 -0
- package/dist/{index-Cr9GB2eM.mjs → index-D34lj1wG.mjs} +1 -1
- package/dist/index-D34lj1wG.mjs.gz +0 -0
- package/dist/{index-YdpCEsbk.mjs → index-D3gZ00Ij.mjs} +2 -2
- package/dist/index-D3gZ00Ij.mjs.gz +0 -0
- package/dist/{index-D2C5dTZd.js → index-D4MkT_sh.js} +1 -1
- package/dist/index-D4MkT_sh.js.gz +0 -0
- package/dist/{index-CYonf1vD.js → index-D7AzMsf9.js} +1 -1
- package/dist/index-D7AzMsf9.js.gz +0 -0
- package/dist/{index-C3IBAhZG.mjs → index-DBwKzCzQ.mjs} +1 -1
- package/dist/index-DBwKzCzQ.mjs.gz +0 -0
- package/dist/{index-BLFKr4a5.js → index-DCfDFFiE.js} +1 -1
- package/dist/{index-BI7ZD2i3.js → index-DFZG0Hak.js} +1 -1
- package/dist/index-DFZG0Hak.js.gz +0 -0
- package/dist/{index-CHnlgBbf.js → index-DFgLHJsn.js} +1 -1
- package/dist/index-DFgLHJsn.js.gz +0 -0
- package/dist/{index-CFDL4F4r.mjs → index-DG18BUo4.mjs} +2 -2
- package/dist/index-DG18BUo4.mjs.gz +0 -0
- package/dist/{index-DhumpyyI.js → index-DH03YwhA.js} +1 -1
- package/dist/index-DH03YwhA.js.gz +0 -0
- package/dist/{index-Cx7rHG8Q.mjs → index-DJugTRzW.mjs} +1 -1
- package/dist/index-DJugTRzW.mjs.gz +0 -0
- package/dist/{index-WeiIw9Ku.mjs → index-DK5Ey7yl.mjs} +1 -1
- package/dist/index-DK5Ey7yl.mjs.gz +0 -0
- package/dist/{index-DlEFYL-i.js → index-DLAfc-EJ.js} +1 -1
- package/dist/index-DLAfc-EJ.js.gz +0 -0
- package/dist/{index-CQpg4P9B.js → index-DNAMG-1M.js} +1 -1
- package/dist/{index-DP46bdim.mjs → index-DNoandSV.mjs} +13 -12
- package/dist/{index-DP46bdim.mjs.gz → index-DNoandSV.mjs.gz} +0 -0
- package/dist/{index-CxdJgFdG.mjs → index-DRMXtgBO.mjs} +1 -1
- package/dist/index-DRMXtgBO.mjs.gz +0 -0
- package/dist/{index-OxNtxFW9.js → index-DT8K_eDy.js} +1 -1
- package/dist/index-DT8K_eDy.js.gz +0 -0
- package/dist/{index-Dgi4pX-f.mjs → index-DVywBEBC.mjs} +3 -3
- package/dist/index-DVywBEBC.mjs.gz +0 -0
- package/dist/{index-S1OA8Dhx.mjs → index-DhR9jK7d.mjs} +2 -2
- package/dist/index-DhR9jK7d.mjs.gz +0 -0
- package/dist/{index-DygZbsWU.js → index-Dkl_Ap3d.js} +1 -1
- package/dist/{index-DOlb1IrS.mjs → index-Dw69W10i.mjs} +1 -1
- package/dist/index-Dw69W10i.mjs.gz +0 -0
- package/dist/{index-BThlo-cV.mjs → index-DwS0chWS.mjs} +1 -1
- package/dist/index-GoEktYup.mjs +4 -0
- package/dist/{index-D16A9YTU.js → index-J-4OOehT.js} +1 -1
- package/dist/index-J-4OOehT.js.gz +0 -0
- package/dist/{index-C4ogOLdH.mjs → index-MiQJmQyj.mjs} +2 -2
- package/dist/index-MiQJmQyj.mjs.gz +0 -0
- package/dist/{index-BLzZieQO.js → index-UAIXT-re.js} +1 -1
- package/dist/index-UAIXT-re.js.gz +0 -0
- package/dist/{index-B8KBs2DI.mjs → index-XQuVqk1b.mjs} +1 -1
- package/dist/index-XQuVqk1b.mjs.gz +0 -0
- package/dist/{index-mIwBf5ni.mjs → index-dAcAAjFL.mjs} +1 -1
- package/dist/index-dAcAAjFL.mjs.gz +0 -0
- package/dist/{index-BciTgMeM.js → index-lCr3_Fxu.js} +1 -1
- package/dist/index-lCr3_Fxu.js.gz +0 -0
- package/dist/{index-DT6DfhcU.js → index-sgZzOEWU.js} +1 -1
- package/dist/index-sgZzOEWU.js.gz +0 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{link-DhFEofYR.js → link-D7rOOMZO.js} +1 -1
- package/dist/link-D7rOOMZO.js.gz +0 -0
- package/dist/{link-CdaOGEEy.mjs → link-DOpo6XMs.mjs} +1 -1
- package/dist/link-DOpo6XMs.mjs.gz +0 -0
- package/dist/{list-CtY7HZuR.mjs → list-5KZ9mT7c.mjs} +1 -1
- package/dist/list-5KZ9mT7c.mjs.gz +0 -0
- package/dist/{list-BYJ_KzTg.js → list-BlNmhg1l.js} +1 -1
- package/dist/list-BlNmhg1l.js.gz +0 -0
- package/dist/{main-Dq7xzoWE.mjs → main-BRSJ4Lfu.mjs} +2 -2
- package/dist/main-BRSJ4Lfu.mjs.gz +0 -0
- package/dist/{main-Dl9aJ0o4.js → main-DD1Z09Z0.js} +1 -1
- package/dist/main-DD1Z09Z0.js.gz +0 -0
- package/dist/{mobile-B8ErkL_f.mjs → mobile-C98_IfNn.mjs} +1 -1
- package/dist/mobile-C98_IfNn.mjs.gz +0 -0
- package/dist/{mobile-MqqGpAOH.js → mobile-Dj3ygvdR.js} +1 -1
- package/dist/mobile-Dj3ygvdR.js.gz +0 -0
- package/dist/{parent-BRrY-6IZ.mjs → parent-BC4XEXv7.mjs} +2 -2
- package/dist/parent-BC4XEXv7.mjs.gz +0 -0
- package/dist/{parent-CTm3oW9E.js → parent-BtRiNALH.js} +1 -1
- package/dist/parent-BtRiNALH.js.gz +0 -0
- package/dist/{roleItem-CF0g6ZKj.mjs → roleItem-BTTAFmRP.mjs} +1 -1
- package/dist/roleItem-BTTAFmRP.mjs.gz +0 -0
- package/dist/{roleItem-BRx1ugqB.js → roleItem-DFNJszgn.js} +1 -1
- package/dist/roleItem-DFNJszgn.js.gz +0 -0
- package/dist/{saveForm-D1m352qA.js → saveForm-Cpv73bS6.js} +1 -1
- package/dist/{saveForm-C8ho69YJ.mjs → saveForm-Jm7HQCxh.mjs} +1 -1
- package/dist/{saveForm.vue_vue_type_script_setup_true_lang-DVwcQTjW.js → saveForm.vue_vue_type_script_setup_true_lang-D2YVM-Y1.js} +1 -1
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-D2YVM-Y1.js.gz +0 -0
- package/dist/{saveForm.vue_vue_type_script_setup_true_lang-BNYEeTWh.mjs → saveForm.vue_vue_type_script_setup_true_lang-bqdIwz2E.mjs} +1 -1
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-bqdIwz2E.mjs.gz +0 -0
- package/dist/{scan-B1zMxFep.mjs → scan-BYdFkDMQ.mjs} +1 -1
- package/dist/scan-BYdFkDMQ.mjs.gz +0 -0
- package/dist/{scan-Q05HdNPL.js → scan-CrUYtAAI.js} +1 -1
- package/dist/scan-CrUYtAAI.js.gz +0 -0
- package/dist/{search-DEHxkefH.js → search-0HH97AiR.js} +1 -1
- package/dist/search-0HH97AiR.js.gz +0 -0
- package/dist/{search-V5TQdT7D.mjs → search-CmjTP005.mjs} +1 -1
- package/dist/search-CmjTP005.mjs.gz +0 -0
- package/dist/{selectConfig-DyTGNTge.js → selectConfig-CTkF4Ffq.js} +1 -1
- package/dist/selectConfig-CTkF4Ffq.js.gz +0 -0
- package/dist/{selectConfig-OdW8ufdY.mjs → selectConfig-CYbFLPPt.mjs} +1 -1
- package/dist/selectConfig-CYbFLPPt.mjs.gz +0 -0
- package/dist/{subItem-CvolT4Q3.mjs → subItem-BNC7Fy8A.mjs} +1 -1
- package/dist/subItem-BNC7Fy8A.mjs.gz +0 -0
- package/dist/{subItem-qAU0JSpk.js → subItem-OlanChHd.js} +1 -1
- package/dist/subItem-OlanChHd.js.gz +0 -0
- package/dist/{tagsView-BEXYJUee.mjs → tagsView-BPWuGkgr.mjs} +2 -2
- package/dist/tagsView-BPWuGkgr.mjs.gz +0 -0
- package/dist/{tagsView-CllKOIzs.js → tagsView-Bzav4Q3l.js} +2 -2
- package/dist/tagsView-Bzav4Q3l.js.gz +0 -0
- package/dist/{transverse-kuBdBp0H.mjs → transverse-BXyRDTzJ.mjs} +2 -2
- package/dist/transverse-BXyRDTzJ.mjs.gz +0 -0
- package/dist/{transverse-BcnhFhJH.js → transverse-Dg45GBdK.js} +1 -1
- package/dist/transverse-Dg45GBdK.js.gz +0 -0
- package/dist/types/components/business/bcPageConfig/components/hsSaveForm/useCloneConfigDialog.d.ts +12 -2
- package/dist/{uploadAvatar-B5EtyIGs.mjs → uploadAvatar-C8mx_Bxt.mjs} +1 -1
- package/dist/uploadAvatar-C8mx_Bxt.mjs.gz +0 -0
- package/dist/{uploadAvatar-BfeeR7lR.js → uploadAvatar-DuiKtcpj.js} +1 -1
- package/dist/uploadAvatar-DuiKtcpj.js.gz +0 -0
- package/dist/{user-DgBfbV3D.js → user-BlHuvVC2.js} +1 -1
- package/dist/user-BlHuvVC2.js.gz +0 -0
- package/dist/{user-lH38pxoF.mjs → user-CJQKq7P7.mjs} +3 -3
- package/dist/user-CJQKq7P7.mjs.gz +0 -0
- package/dist/{userNews-BsJoYL52.js → userNews-BwmwnAN7.js} +1 -1
- package/dist/userNews-BwmwnAN7.js.gz +0 -0
- package/dist/{userNews-ChBvUFnq.mjs → userNews-R_wHXIn4.mjs} +1 -1
- package/dist/userNews-R_wHXIn4.mjs.gz +0 -0
- package/dist/{userSelect-BhE93IzN.mjs → userSelect-BAAlIV7O.mjs} +1 -1
- package/dist/{userSelect-awQdDJhR.js → userSelect-D-328IJy.js} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-D4s_8fUQ.js → userSelect.vue_vue_type_script_setup_true_lang-1xf4J_BJ.js} +1 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-1xf4J_BJ.js.gz +0 -0
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-B9_G3oEH.mjs → userSelect.vue_vue_type_script_setup_true_lang-DQaCmSv8.mjs} +1 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-DQaCmSv8.mjs.gz +0 -0
- package/dist/{vertical-D9_xdACx.js → vertical-BFS4elHW.js} +1 -1
- package/dist/vertical-BFS4elHW.js.gz +0 -0
- package/dist/{vertical-DqktWeHV.mjs → vertical-DX-NHVEY.mjs} +2 -2
- package/dist/vertical-DX-NHVEY.mjs.gz +0 -0
- package/package.json +102 -101
- package/dist/401-Dfgw75Rj.js.gz +0 -0
- package/dist/401-g-u4vBWU.mjs.gz +0 -0
- package/dist/account-C3sGskoP.js.gz +0 -0
- package/dist/account-C7ACGOaE.mjs.gz +0 -0
- package/dist/aside-BPV-Msle.js.gz +0 -0
- package/dist/aside-BUvVvT27.mjs.gz +0 -0
- package/dist/btnIndex-BVcip7s6.mjs.gz +0 -0
- package/dist/btnIndex-DHN1oZNE.js.gz +0 -0
- package/dist/classic-DLNYZu-z.mjs.gz +0 -0
- package/dist/classic-EH8fj0mf.js.gz +0 -0
- package/dist/columns-Bedf3Wad.js.gz +0 -0
- package/dist/columns-D2GSjPml.mjs.gz +0 -0
- package/dist/columnsAside-CQ7ZgAHj.js.gz +0 -0
- package/dist/columnsAside-CbYZMOQy.mjs.gz +0 -0
- package/dist/contextmenu-BVBYHD78.mjs.gz +0 -0
- package/dist/contextmenu-BpvCjHT7.js.gz +0 -0
- package/dist/contextmenu-CgYQNPjx.mjs.gz +0 -0
- package/dist/contextmenu-CwLSZ3Yh.mjs.gz +0 -0
- package/dist/contextmenu-Ds6DkZEb.js.gz +0 -0
- package/dist/contextmenu-dHOpR1Qx.js.gz +0 -0
- package/dist/defaults-BVTTuIR_.js.gz +0 -0
- package/dist/defaults-CVW7crtj.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-C2HEUviM.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DorwKr22.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BCgkyM3k.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-C3BnOJVK.mjs.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-C7FKjUhn.js.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-DGtCbZ7Z.mjs.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-BKFdM9p1.mjs.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-DWdjxJHY.js.gz +0 -0
- package/dist/formConfig-BVFpWQ4E.mjs.gz +0 -0
- package/dist/formConfig-CqMXl37Q.js.gz +0 -0
- package/dist/horizontal-4q2AYAOB.js.gz +0 -0
- package/dist/horizontal-BWwenmZn.mjs.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-BPCYs1KK.js.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-Bv3sfJjM.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-B6ianqwG.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-Df-FT9i4.js.gz +0 -0
- package/dist/hsBtnConfigList-C2XGdPMb.mjs.gz +0 -0
- package/dist/hsBtnConfigList-C4ZeRFui.js.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B1R9V-HF.mjs.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Bgl5wCIY.js.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BgmZdeNw.js.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-HB01bFGa.mjs.gz +0 -0
- package/dist/hsFormConfig-C2rYCsx9.js.gz +0 -0
- package/dist/hsFormConfig-Uz3pwQT-.mjs.gz +0 -0
- package/dist/hsFormConfigList-CGvfa_Zz.js.gz +0 -0
- package/dist/hsFormConfigList-Duz0FyVG.mjs.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-8rbL4F7f.mjs.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-C7X9ff6u.js.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-C0DedwKM.mjs.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-OAJ7nZLC.js.gz +0 -0
- package/dist/hsPageTree-D8lDvIGs.mjs.gz +0 -0
- package/dist/hsPageTree-Dzwi9FIh.js.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-l7VX7SM6.js.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-zeKKBTB0.mjs.gz +0 -0
- package/dist/iframes-CDshyLTu.mjs.gz +0 -0
- package/dist/iframes-CZAhVPxh.js.gz +0 -0
- package/dist/index-6sa2kYZI.js.gz +0 -0
- package/dist/index-8Tsr3iRi.mjs.gz +0 -0
- package/dist/index-B8KBs2DI.mjs.gz +0 -0
- package/dist/index-BI7ZD2i3.js.gz +0 -0
- package/dist/index-BLzZieQO.js.gz +0 -0
- package/dist/index-BciTgMeM.js.gz +0 -0
- package/dist/index-BhgzmN-s.mjs.gz +0 -0
- package/dist/index-Bi9HeWsm.mjs.gz +0 -0
- package/dist/index-BjFtBYYx.mjs.gz +0 -0
- package/dist/index-BtokjamT.js.gz +0 -0
- package/dist/index-ByyFl6xE.js.gz +0 -0
- package/dist/index-C3IBAhZG.mjs.gz +0 -0
- package/dist/index-C4ogOLdH.mjs.gz +0 -0
- package/dist/index-CFDL4F4r.mjs.gz +0 -0
- package/dist/index-CHnlgBbf.js.gz +0 -0
- package/dist/index-CK2UN4QF.mjs.gz +0 -0
- package/dist/index-CPyqvHGM.js.gz +0 -0
- package/dist/index-CTMmZEs5.js.gz +0 -0
- package/dist/index-CYonf1vD.js.gz +0 -0
- package/dist/index-Cae--6-5.mjs.gz +0 -0
- package/dist/index-Cr9GB2eM.mjs.gz +0 -0
- package/dist/index-CtqrR5aV.js.gz +0 -0
- package/dist/index-Cx7rHG8Q.mjs.gz +0 -0
- package/dist/index-CxdJgFdG.mjs.gz +0 -0
- package/dist/index-D16A9YTU.js.gz +0 -0
- package/dist/index-D2C5dTZd.js.gz +0 -0
- package/dist/index-D6BYH5l6.js.gz +0 -0
- package/dist/index-DAlqTHTo.mjs.gz +0 -0
- package/dist/index-DOlb1IrS.mjs.gz +0 -0
- package/dist/index-DRXg5IhW.js.gz +0 -0
- package/dist/index-DT6DfhcU.js.gz +0 -0
- package/dist/index-DffuAtXI.js.gz +0 -0
- package/dist/index-Dgi4pX-f.mjs.gz +0 -0
- package/dist/index-DhumpyyI.js.gz +0 -0
- package/dist/index-DlEFYL-i.js.gz +0 -0
- package/dist/index-OxNtxFW9.js.gz +0 -0
- package/dist/index-R7DRZ3ob.js.gz +0 -0
- package/dist/index-S1OA8Dhx.mjs.gz +0 -0
- package/dist/index-UjgP-Shd.mjs.gz +0 -0
- package/dist/index-WeiIw9Ku.mjs.gz +0 -0
- package/dist/index-YdpCEsbk.mjs.gz +0 -0
- package/dist/index-bk5kC246.mjs.gz +0 -0
- package/dist/index-hTl5BRjC.js.gz +0 -0
- package/dist/index-hhUBUfsE.mjs +0 -4
- package/dist/index-mIwBf5ni.mjs.gz +0 -0
- package/dist/link-CdaOGEEy.mjs.gz +0 -0
- package/dist/link-DhFEofYR.js.gz +0 -0
- package/dist/list-BYJ_KzTg.js.gz +0 -0
- package/dist/list-CtY7HZuR.mjs.gz +0 -0
- package/dist/main-Dl9aJ0o4.js.gz +0 -0
- package/dist/main-Dq7xzoWE.mjs.gz +0 -0
- package/dist/mobile-B8ErkL_f.mjs.gz +0 -0
- package/dist/mobile-MqqGpAOH.js.gz +0 -0
- package/dist/parent-BRrY-6IZ.mjs.gz +0 -0
- package/dist/parent-CTm3oW9E.js.gz +0 -0
- package/dist/roleItem-BRx1ugqB.js.gz +0 -0
- package/dist/roleItem-CF0g6ZKj.mjs.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-BNYEeTWh.mjs.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-DVwcQTjW.js.gz +0 -0
- package/dist/scan-B1zMxFep.mjs.gz +0 -0
- package/dist/scan-Q05HdNPL.js.gz +0 -0
- package/dist/search-DEHxkefH.js.gz +0 -0
- package/dist/search-V5TQdT7D.mjs.gz +0 -0
- package/dist/selectConfig-DyTGNTge.js.gz +0 -0
- package/dist/selectConfig-OdW8ufdY.mjs.gz +0 -0
- package/dist/subItem-CvolT4Q3.mjs.gz +0 -0
- package/dist/subItem-qAU0JSpk.js.gz +0 -0
- package/dist/tagsView-BEXYJUee.mjs.gz +0 -0
- package/dist/tagsView-CllKOIzs.js.gz +0 -0
- package/dist/transverse-BcnhFhJH.js.gz +0 -0
- package/dist/transverse-kuBdBp0H.mjs.gz +0 -0
- package/dist/uploadAvatar-B5EtyIGs.mjs.gz +0 -0
- package/dist/uploadAvatar-BfeeR7lR.js.gz +0 -0
- package/dist/user-DgBfbV3D.js.gz +0 -0
- package/dist/user-lH38pxoF.mjs.gz +0 -0
- package/dist/userNews-BsJoYL52.js.gz +0 -0
- package/dist/userNews-ChBvUFnq.mjs.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-B9_G3oEH.mjs.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-D4s_8fUQ.js.gz +0 -0
- package/dist/vertical-D9_xdACx.js.gz +0 -0
- package/dist/vertical-DqktWeHV.mjs.gz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-Cx10Wgcu.js"),s=[{prop:"attrs",label:"selectAttrs",tooltip:"selectAttrs",type:"object",el:"title",children:[{prop:"defaultValue",label:"默认值",tooltip:"默认值",type:"string / number / boolean / object / array",el:"hs-input"},{prop:"options",label:"option配置数据",tooltip:"option配置数据",type:"string",el:"hs-input",attrs:{type:"textarea"}},{prop:"url",label:"url获取options",tooltip:"通过url请求获取options配置项数据",type:"string",el:"hs-input"},{prop:"paramKey",label:"请求参数key",tooltip:"请求参数key",type:"string",el:"hs-input"},{prop:"paramValue",label:"请求参数Value",tooltip:"请求参数Value",type:"string",el:"hs-input"},{prop:"multiple",label:"是否多选",tooltip:"是否多选",type:"boolean",el:"hs-switch"},{prop:"disabled",label:"是否禁用",tooltip:"是否禁用",type:"boolean",el:"hs-switch"},{prop:"value-key",label:"value 唯一标识",tooltip:"作为 value 唯一标识的键名,绑定值为对象类型时必填",type:"string",el:"hs-input"},{prop:"placeholder",label:"占位符",tooltip:"占位符,默认为“Select”",type:"string",el:"hs-input"},{prop:"size",label:"输入框尺寸",tooltip:"输入框尺寸",type:"enum",el:"hs-select",op:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}],cel:"hs-option"},{prop:"clearable",label:"是否可以清空",tooltip:"是否可以清空选项",type:"boolean",el:"hs-switch"},{prop:"collapse-tags",label:"值按文字展示",tooltip:"多选时是否将选中值按文字的形式展示",type:"boolean",el:"hs-switch"},{prop:"collapse-tags-tooltip",label:"是否显示所选",tooltip:"当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true",type:"boolean",el:"hs-switch"},{prop:"multiple-limit",label:"最多可选数",tooltip:"multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制",type:"number",el:"hs-input-number"},{prop:"name",label:"原生name属性",tooltip:"Select 输入框的原生 name 属性",type:"string",el:"hs-input"},{prop:"effect",label:"tooltip 主题",tooltip:"tooltip 主题,内置了 dark / light 两种",type:"enum / string",el:"hs-select",op:[{label:"dark",value:"dark"},{label:"light",value:"light"}],cel:"hs-option"},{prop:"autocomplete",label:"autocomplete",tooltip:"Select 输入框的原生 autocomplete 属性",type:"string",el:"hs-input"},{prop:"filterable",label:"是否可筛选",tooltip:"Select 组件是否可筛选",type:"boolean",el:"hs-switch"},{prop:"allow-create",label:"允许创建条目",tooltip:"是否允许用户创建新条目, 只有当 filterable 设置为 true 时才会生效。",type:"boolean",el:"hs-switch"},{prop:"filter-method",label:"筛选方法",tooltip:"自定义筛选方法",type:"Function",el:"hs-input"},{prop:"remote",label:"是否远程加载",tooltip:"其中的选项是否从服务器远程加载",type:"boolean",el:"hs-switch"},{prop:"remote-method",label:"远程搜索方法",tooltip:"自定义远程搜索方法",type:"Function",el:"hs-input"},{prop:"remote-show-suffix",label:"远程搜索图标",tooltip:"远程搜索方法显示后缀图标",type:"boolean",el:"hs-switch"},{prop:"loading",label:"是否正在获取",tooltip:"是否正在从远程获取数据",type:"boolean",el:"hs-switch"},{prop:"loading-text",label:"加载时文本",tooltip:"从服务器加载数据时显示的文本,默认为“Loading”",type:"string",el:"hs-input"},{prop:"no-match-text",label:"无匹配时显示",tooltip:"搜索条件无匹配时显示的文字,也可以使用 empty 插槽设置,默认是 “No matching data'”",type:"string",el:"hs-input"},{prop:"no-data-text",label:"无选项时显示",tooltip:"无选项时显示的文字,也可以使用 empty 插槽设置自定义内容,默认是 “No data”",type:"string",el:"hs-input"},{prop:"popper-class",label:"下拉菜单类名",tooltip:"选择器下拉菜单的自定义类名",type:"string",el:"hs-input"},{prop:"reserve-keyword",label:"保留关键词",tooltip:"当 multiple 和 filterable被设置为 true 时,是否在选中一个选项后保留当前的搜索关键词",type:"boolean",el:"hs-switch"},{prop:"default-first-option",label:"回车选择",tooltip:"是否在输入框按下回车时,选择第一个匹配项。 需配合 filterable 或 remote 使用",type:"boolean",el:"hs-switch"},{prop:"teleported",label:"是否插入至body",tooltip:"是否将下拉列表插入至 body 元素",type:"boolean",el:"hs-switch"},{prop:"persistent",label:"选择器未被激活",tooltip:"当下拉选择器未被激活并且persistent设置为false,选择器会被删除。",type:"boolean",el:"hs-switch"},{prop:"automatic-dropdown",label:"自动弹出选项",tooltip:"对于不可搜索的 Select,是否在输入框获得焦点后自动弹出选项菜单",type:"boolean",el:"hs-switch"},{prop:"clear-icon",label:"清除图标",tooltip:"自定义清除图标",type:"string / object",el:"hs-input"},{prop:"fit-input-width",label:"下拉框宽度",tooltip:"下拉框的宽度是否与输入框相同",type:"boolean",el:"hs-switch"},{prop:"suffix-icon",label:"后缀图标",tooltip:"自定义后缀图标组件",type:"string / object",el:"hs-input"},{prop:"suffix-transition deprecated",label:"下拉图标动画",tooltip:"下拉菜单显示/消失时后缀图标的动画",type:"boolean",el:"hs-switch"},{prop:"tag-type",label:"标签类型",tooltip:"标签类型",type:"enum",el:"hs-select",op:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}],cel:"hs-option"},{prop:"validate-event",label:"表单验证",tooltip:"是否触发表单验证",type:"boolean",el:"hs-switch"},{prop:"placement",label:"下拉框出现位置",tooltip:"下拉框出现的位置",type:"enum",el:"hs-select",op:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}],cel:"hs-option"},{prop:"max-collapse-tags",label:"Tag最大数量",tooltip:"需要显示的 Tag 的最大数量 只有当 collapse-tags 设置为 true 时才会生效。",type:"number",el:"hs-input-number"},{prop:"popper-options",label:"popper参数",tooltip:"popper.js 参数",type:"objectrefer to popper.js doc",el:"hs-input"},{prop:"aria-label",label:"aria-label",tooltip:"等价于原生 input aria-label 属性",type:"string",el:"hs-input"}]},{prop:"groupAttrs",label:"optionGroupAttrs",tooltip:"optionGroupAttrs",type:"object",el:"title",children:[{prop:"isGroupEnabled",label:"是否启用分组",tooltip:"是否启用分组",type:"boolean",el:"hs-switch"},{prop:"label",label:"分组的名称",tooltip:"分组的名称",type:"string",el:"hs-input"},{prop:"disabled",label:"是否禁用分组",tooltip:"是否将该分组下所有选项置为禁用",type:"string",el:"hs-switch"}]},{prop:"optionAttrs",label:"optionAttrs",tooltip:"optionAttrs",type:"object",el:"title",children:[{prop:"value",label:"选项的值",tooltip:"选项的值",type:"string",el:"hs-input"},{prop:"label",label:"选项的标签",tooltip:"选项的标签,若不设置则默认与value相同",type:"string",el:"hs-input"},{prop:"disabled",label:"是否禁用选项",tooltip:"是否禁用该选项",type:"string",el:"hs-switch"}]},{prop:"rules",label:"rules",tooltip:"rules",type:"object",el:"title",children:[{prop:"required",label:"是否必填",tooltip:"是否必填",type:"boolean",el:"hs-switch"},{prop:"rules",label:"必填项规则",tooltip:"必填项规则",type:"array",el:"hs-input",attrs:{type:"textarea"}}]}],r={attrs:{multiple:!1,disabled:!1,"value-key":"value",clearable:!0,"collapse-tags":!1,"collapse-tags-tooltip":!1,"multiple-limit":0,effect:"light",autocomplete:"off",filterable:!0,"allow-create":!1,remote:!1,"remote-show-suffix":!1,loading:!1,"reserve-keyword":!0,"default-first-option":!1,teleported:!0,persistent:!0,"automatic-dropdown":!0,"clear-icon":"CircleClose","fit-input-width":!1,"suffix-icon":"ArrowDown","tag-type":"info","validate-event":!0,placement:"bottom-start","max-collapse-tags":1},groupAttrs:{disabled:!1,isGroupEnabled:!1},optionAttrs:{value:"value",label:"label",disabled:!1},rules:{}},n={class:"select-wrap"},b=e.defineComponent({name:"selectConfig"}),u=e.defineComponent({...b,props:{data:{type:Object,default:()=>{}},isVModel:{type:Boolean,default:!1}},setup(o){const t=o,p=e.ref(l._.isEmpty(t.data)?Object.assign(t.data,r):t.data);return(h,a)=>(e.openBlock(),e.createElementBlock("div",n,[e.createVNode(l.baseForm,{data:p.value,"onUpdate:data":a[0]||(a[0]=i=>p.value=i),config:e.unref(s),isVModel:o.isVModel,lg:12},null,8,["data","config","isVModel"])]))}}),c=l._export_sfc(u,[["__scopeId","data-v-6281a8a9"]]);exports.default=c;
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, ref as i, openBlock as s, createElementBlock as r, createVNode as n, unref as b } from "vue";
|
|
2
|
-
import { e as u, j as c, _ as h } from "./index-
|
|
2
|
+
import { e as u, j as c, _ as h } from "./index-DNoandSV.mjs";
|
|
3
3
|
const d = [
|
|
4
4
|
{
|
|
5
5
|
prop: "attrs",
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, computed as C, resolveComponent as t, openBlock as n, createElementBlock as o, Fragment as m, renderList as b, createBlock as u, withCtx as r, createVNode as i, createElementVNode as a, toDisplayString as l, withModifiers as g, createTextVNode as L } from "vue";
|
|
2
|
-
import { O as I } from "./index-
|
|
2
|
+
import { O as I } from "./index-DNoandSV.mjs";
|
|
3
3
|
const S = ["onClick"], w = p({
|
|
4
4
|
name: "navMenuSubItem"
|
|
5
5
|
}), E = /* @__PURE__ */ p({
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-Cx10Wgcu.js"),p=["onClick"],d=e.defineComponent({name:"navMenuSubItem"}),_=e.defineComponent({...d,props:{chil:{type:Array,default:()=>[]}},setup(c){const i=c,l=e.computed(()=>i.chil),r=o=>{u.other.handleOpenLink(o)};return(o,k)=>{const n=e.resolveComponent("SvgIcon"),m=e.resolveComponent("sub-item",!0),a=e.resolveComponent("el-sub-menu"),s=e.resolveComponent("el-menu-item");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.children&&t.children.length>0?(e.openBlock(),e.createBlock(a,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.createVNode(n,{name:t.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)]),default:e.withCtx(()=>[e.createVNode(m,{chil:t.children},null,8,["chil"])]),_:2},1032,["index"])):(e.openBlock(),e.createBlock(s,{index:t.path,key:t.path},{default:e.withCtx(()=>[!t.meta.isLink||t.meta.isLink&&t.meta.isIframe?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(n,{name:t.meta.icon},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(t.meta.title),1)],64)):(e.openBlock(),e.createElementBlock("a",{key:1,class:"w100",onClick:e.withModifiers(h=>r(t),["prevent"])},[e.createVNode(n,{name:t.meta.icon},null,8,["name"]),e.createTextVNode(" "+e.toDisplayString(t.meta.title),1)],8,p))]),_:2},1032,["index"]))],64))),256)}}});exports.default=_;
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Jt, defineAsyncComponent as wn, ref as je, reactive as bn, computed as gt, onBeforeMount as yn, onUnmounted as En, onBeforeUpdate as _n, onMounted as Dn, watch as Sn, resolveComponent as Ft, openBlock as ce, createElementBlock as Pe, normalizeClass as mt, createVNode as vt, withModifiers as Le, withCtx as Tn, createElementVNode as qt, Fragment as Bt, renderList as Cn, createCommentVNode as Re, createBlock as wt, toDisplayString as In, unref as On, nextTick as bt } from "vue";
|
|
2
|
-
import { x as Xt, c as xn, C as An, s as yt, b as Vn, u as Pn, a as Ln, O as Yt, m as we, P as Rn, d as Nn, S as be, Q as Ht, _ as Mn } from "./index-
|
|
2
|
+
import { x as Xt, c as xn, C as An, s as yt, b as Vn, u as Pn, a as Ln, O as Yt, m as we, P as Rn, d as Nn, S as be, Q as Ht, _ as Mn } from "./index-DNoandSV.mjs";
|
|
3
3
|
/**!
|
|
4
4
|
* Sortable 1.15.2
|
|
5
5
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -1277,7 +1277,7 @@ const ui = ["data-url", "onContextmenu", "onMousedown", "onClick"], fi = {
|
|
|
1277
1277
|
}), di = /* @__PURE__ */ Jt({
|
|
1278
1278
|
...ci,
|
|
1279
1279
|
setup(i) {
|
|
1280
|
-
const e = wn(() => import("./contextmenu-
|
|
1280
|
+
const e = wn(() => import("./contextmenu-NAHP1wsN.mjs")), t = je([]), n = je(), a = je(), r = je(), s = Xt(), u = xn(), f = Xt(), c = An(), { themeConfig: m } = yt(u), { tagsViewRoutes: g } = yt(f), { routesList: I } = yt(c), C = Vn(), _ = Pn(), D = Ln(), d = bn({
|
|
1281
1281
|
routeActive: "",
|
|
1282
1282
|
routePath: _.path,
|
|
1283
1283
|
dropdown: { x: "", y: "" },
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("vue"),x=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("vue"),x=require("./index-Cx10Wgcu.js");/**!
|
|
2
2
|
* Sortable 1.15.2
|
|
3
3
|
* @author RubaXa <trash@rubaxa.org>
|
|
4
4
|
* @author owenm <owen23355@gmail.com>
|
|
5
5
|
* @license MIT
|
|
6
|
-
*/function It(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),t.push.apply(t,n)}return t}function se(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?It(Object(t),!0).forEach(function(n){Jt(i,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):It(Object(t)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(t,n))})}return i}function Ue(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ue=function(e){return typeof e}:Ue=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(i)}function Jt(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function ue(){return ue=Object.assign||function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},ue.apply(this,arguments)}function en(i,e){if(i==null)return{};var t={},n=Object.keys(i),a,r;for(r=0;r<n.length;r++)a=n[r],!(e.indexOf(a)>=0)&&(t[a]=i[a]);return t}function tn(i,e){if(i==null)return{};var t=en(i,e),n,a;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);for(a=0;a<r.length;a++)n=r[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(i,n)&&(t[n]=i[n])}return t}var nn="1.15.2";function le(i){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(i)}var ce=le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Be=le(/Edge/i),Vt=le(/firefox/i),Ne=le(/safari/i)&&!le(/chrome/i)&&!le(/android/i),kt=le(/iP(ad|od|hone)/i),Mt=le(/chrome/i)&&le(/android/i),Ft={capture:!1,passive:!1};function A(i,e,t){i.addEventListener(e,t,!ce&&Ft)}function O(i,e,t){i.removeEventListener(e,t,!ce&&Ft)}function Qe(i,e){if(e){if(e[0]===">"&&(e=e.substring(1)),i)try{if(i.matches)return i.matches(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e)}catch{return!1}return!1}}function an(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function ae(i,e,t,n){if(i){t=t||document;do{if(e!=null&&(e[0]===">"?i.parentNode===t&&Qe(i,e):Qe(i,e))||n&&i===t)return i;if(i===t)break}while(i=an(i))}return null}var Ot=/\s+/g;function G(i,e,t){if(i&&e)if(i.classList)i.classList[t?"add":"remove"](e);else{var n=(" "+i.className+" ").replace(Ot," ").replace(" "+e+" "," ");i.className=(n+(t?" "+e:"")).replace(Ot," ")}}function y(i,e,t){var n=i&&i.style;if(n){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(t=i.currentStyle),e===void 0?t:t[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=t+(typeof t=="string"?"":"px")}}function Ve(i,e){var t="";if(typeof i=="string")t=i;else do{var n=y(i,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!e&&(i=i.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(t)}function Bt(i,e,t){if(i){var n=i.getElementsByTagName(e),a=0,r=n.length;if(t)for(;a<r;a++)t(n[a],a);return n}return[]}function oe(){var i=document.scrollingElement;return i||document.documentElement}function F(i,e,t,n,a){if(!(!i.getBoundingClientRect&&i!==window)){var r,s,u,c,f,v,g;if(i!==window&&i.parentNode&&i!==oe()?(r=i.getBoundingClientRect(),s=r.top,u=r.left,c=r.bottom,f=r.right,v=r.height,g=r.width):(s=0,u=0,c=window.innerHeight,f=window.innerWidth,v=window.innerHeight,g=window.innerWidth),(e||t)&&i!==window&&(a=a||i.parentNode,!ce))do if(a&&a.getBoundingClientRect&&(y(a,"transform")!=="none"||t&&y(a,"position")!=="static")){var V=a.getBoundingClientRect();s-=V.top+parseInt(y(a,"border-top-width")),u-=V.left+parseInt(y(a,"border-left-width")),c=s+r.height,f=u+r.width;break}while(a=a.parentNode);if(n&&i!==window){var I=Ve(a||i),D=I&&I.a,_=I&&I.d;I&&(s/=_,u/=D,g/=D,v/=_,c=s+v,f=u+g)}return{top:s,left:u,bottom:c,right:f,width:g,height:v}}}function xt(i,e,t){for(var n=ge(i,!0),a=F(i)[e];n;){var r=F(n)[t],s=void 0;if(t==="top"||t==="left"?s=a>=r:s=a<=r,!s)return n;if(n===oe())break;n=ge(n,!1)}return!1}function Oe(i,e,t,n){for(var a=0,r=0,s=i.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==E.ghost&&(n||s[r]!==E.dragged)&&ae(s[r],t.draggable,i,!1)){if(a===e)return s[r];a++}r++}return null}function Dt(i,e){for(var t=i.lastElementChild;t&&(t===E.ghost||y(t,"display")==="none"||e&&!Qe(t,e));)t=t.previousElementSibling;return t||null}function ee(i,e){var t=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==E.clone&&(!e||Qe(i,e))&&t++;return t}function At(i){var e=0,t=0,n=oe();if(i)do{var a=Ve(i),r=a.a,s=a.d;e+=i.scrollLeft*r,t+=i.scrollTop*s}while(i!==n&&(i=i.parentNode));return[e,t]}function rn(i,e){for(var t in i)if(i.hasOwnProperty(t)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===i[t][n])return Number(t)}return-1}function ge(i,e){if(!i||!i.getBoundingClientRect)return oe();var t=i,n=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var a=y(t);if(t.clientWidth<t.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return oe();if(n||e)return t;n=!0}}while(t=t.parentNode);return oe()}function on(i,e){if(i&&e)for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function ct(i,e){return Math.round(i.top)===Math.round(e.top)&&Math.round(i.left)===Math.round(e.left)&&Math.round(i.height)===Math.round(e.height)&&Math.round(i.width)===Math.round(e.width)}var Re;function qt(i,e){return function(){if(!Re){var t=arguments,n=this;t.length===1?i.call(n,t[0]):i.apply(n,t),Re=setTimeout(function(){Re=void 0},e)}}}function sn(){clearTimeout(Re),Re=void 0}function Xt(i,e,t){i.scrollLeft+=e,i.scrollTop+=t}function Yt(i){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(i).cloneNode(!0):t?t(i).clone(!0)[0]:i.cloneNode(!0)}function Ht(i,e,t){var n={};return Array.from(i.children).forEach(function(a){var r,s,u,c;if(!(!ae(a,e.draggable,i,!1)||a.animated||a===t)){var f=F(a);n.left=Math.min((r=n.left)!==null&&r!==void 0?r:1/0,f.left),n.top=Math.min((s=n.top)!==null&&s!==void 0?s:1/0,f.top),n.right=Math.max((u=n.right)!==null&&u!==void 0?u:-1/0,f.right),n.bottom=Math.max((c=n.bottom)!==null&&c!==void 0?c:-1/0,f.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var Z="Sortable"+new Date().getTime();function ln(){var i=[],e;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(a){if(!(y(a,"display")==="none"||a===E.ghost)){i.push({target:a,rect:F(a)});var r=se({},i[i.length-1].rect);if(a.thisAnimationDuration){var s=Ve(a,!0);s&&(r.top-=s.f,r.left-=s.e)}a.fromRect=r}})}},addAnimationState:function(n){i.push(n)},removeAnimationState:function(n){i.splice(rn(i,{target:n}),1)},animateAll:function(n){var a=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var r=!1,s=0;i.forEach(function(u){var c=0,f=u.target,v=f.fromRect,g=F(f),V=f.prevFromRect,I=f.prevToRect,D=u.rect,_=Ve(f,!0);_&&(g.top-=_.f,g.left-=_.e),f.toRect=g,f.thisAnimationDuration&&ct(V,g)&&!ct(v,g)&&(D.top-g.top)/(D.left-g.left)===(v.top-g.top)/(v.left-g.left)&&(c=cn(D,V,I,a.options)),ct(g,v)||(f.prevFromRect=v,f.prevToRect=g,c||(c=a.options.animation),a.animate(f,D,g,c)),c&&(r=!0,s=Math.max(s,c),clearTimeout(f.animationResetTimer),f.animationResetTimer=setTimeout(function(){f.animationTime=0,f.prevFromRect=null,f.fromRect=null,f.prevToRect=null,f.thisAnimationDuration=null},c),f.thisAnimationDuration=c)}),clearTimeout(e),r?e=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),i=[]},animate:function(n,a,r,s){if(s){y(n,"transition",""),y(n,"transform","");var u=Ve(this.el),c=u&&u.a,f=u&&u.d,v=(a.left-r.left)/(c||1),g=(a.top-r.top)/(f||1);n.animatingX=!!v,n.animatingY=!!g,y(n,"transform","translate3d("+v+"px,"+g+"px,0)"),this.forRepaintDummy=un(n),y(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),y(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){y(n,"transition",""),y(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function un(i){return i.offsetWidth}function cn(i,e,t,n){return Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*n.animation}var _e=[],ft={initializeByDefault:!0},qe={mount:function(e){for(var t in ft)ft.hasOwnProperty(t)&&!(t in e)&&(e[t]=ft[t]);_e.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),_e.push(e)},pluginEvent:function(e,t,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var r=e+"Global";_e.forEach(function(s){t[s.pluginName]&&(t[s.pluginName][r]&&t[s.pluginName][r](se({sortable:t},n)),t.options[s.pluginName]&&t[s.pluginName][e]&&t[s.pluginName][e](se({sortable:t},n)))})},initializePlugins:function(e,t,n,a){_e.forEach(function(u){var c=u.pluginName;if(!(!e.options[c]&&!u.initializeByDefault)){var f=new u(e,t,e.options);f.sortable=e,f.options=e.options,e[c]=f,ue(n,f.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var s=this.modifyOption(e,r,e.options[r]);typeof s<"u"&&(e.options[r]=s)}},getEventProperties:function(e,t){var n={};return _e.forEach(function(a){typeof a.eventProperties=="function"&&ue(n,a.eventProperties.call(t[a.pluginName],e))}),n},modifyOption:function(e,t,n){var a;return _e.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[t]=="function"&&(a=r.optionListeners[t].call(e[r.pluginName],n))}),a}};function fn(i){var e=i.sortable,t=i.rootEl,n=i.name,a=i.targetEl,r=i.cloneEl,s=i.toEl,u=i.fromEl,c=i.oldIndex,f=i.newIndex,v=i.oldDraggableIndex,g=i.newDraggableIndex,V=i.originalEvent,I=i.putSortable,D=i.extraEventProperties;if(e=e||t&&t[Z],!!e){var _,d=e.options,te="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!ce&&!Be?_=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(_=document.createEvent("Event"),_.initEvent(n,!0,!0)),_.to=s||t,_.from=u||t,_.item=a||t,_.clone=r,_.oldIndex=c,_.newIndex=f,_.oldDraggableIndex=v,_.newDraggableIndex=g,_.originalEvent=V,_.pullMode=I?I.lastPutMode:void 0;var C=se(se({},D),qe.getEventProperties(n,e));for(var U in C)_[U]=C[U];t&&t.dispatchEvent(_),d[te]&&d[te].call(e,_)}}var dn=["evt"],j=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.evt,r=tn(n,dn);qe.pluginEvent.bind(E)(e,t,se({dragEl:p,parentEl:R,ghostEl:T,rootEl:L,nextEl:Ee,lastDownEl:ze,cloneEl:N,cloneHidden:pe,dragStarted:Ae,putSortable:H,activeSortable:E.active,originalEvent:a,oldIndex:Ie,oldDraggableIndex:ke,newIndex:K,newDraggableIndex:he,hideGhostForTarget:Ut,unhideGhostForTarget:zt,cloneNowHidden:function(){pe=!0},cloneNowShown:function(){pe=!1},dispatchSortableEvent:function(u){$({sortable:t,name:u,originalEvent:a})}},r))};function $(i){fn(se({putSortable:H,cloneEl:N,targetEl:p,rootEl:L,oldIndex:Ie,oldDraggableIndex:ke,newIndex:K,newDraggableIndex:he},i))}var p,R,T,L,Ee,ze,N,pe,Ie,K,ke,he,He,H,Ce=!1,Je=!1,et=[],be,ie,dt,ht,Pt,Lt,Ae,Te,Me,Fe=!1,We=!1,Ge,W,pt=[],bt=!1,tt=[],it=typeof document<"u",$e=kt,Nt=Be||ce?"cssFloat":"float",hn=it&&!Mt&&!kt&&"draggable"in document.createElement("div"),Wt=function(){if(it){if(ce)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),$t=function(e,t){var n=y(e),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=Oe(e,0,t),s=Oe(e,1,t),u=r&&y(r),c=s&&y(s),f=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+F(r).width,v=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+F(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&u.float&&u.float!=="none"){var g=u.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===g)?"vertical":"horizontal"}return r&&(u.display==="block"||u.display==="flex"||u.display==="table"||u.display==="grid"||f>=a&&n[Nt]==="none"||s&&n[Nt]==="none"&&f+v>a)?"vertical":"horizontal"},pn=function(e,t,n){var a=n?e.left:e.top,r=n?e.right:e.bottom,s=n?e.width:e.height,u=n?t.left:t.top,c=n?t.right:t.bottom,f=n?t.width:t.height;return a===u||r===c||a+s/2===u+f/2},gn=function(e,t){var n;return et.some(function(a){var r=a[Z].options.emptyInsertThreshold;if(!(!r||Dt(a))){var s=F(a),u=e>=s.left-r&&e<=s.right+r,c=t>=s.top-r&&t<=s.bottom+r;if(u&&c)return n=a}}),n},jt=function(e){function t(r,s){return function(u,c,f,v){var g=u.options.group.name&&c.options.group.name&&u.options.group.name===c.options.group.name;if(r==null&&(s||g))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return t(r(u,c,f,v),s)(u,c,f,v);var V=(s?u:c).options.group.name;return r===!0||typeof r=="string"&&r===V||r.join&&r.indexOf(V)>-1}}var n={},a=e.group;(!a||Ue(a)!="object")&&(a={name:a}),n.name=a.name,n.checkPull=t(a.pull,!0),n.checkPut=t(a.put),n.revertClone=a.revertClone,e.group=n},Ut=function(){!Wt&&T&&y(T,"display","none")},zt=function(){!Wt&&T&&y(T,"display","")};it&&!Mt&&document.addEventListener("click",function(i){if(Je)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),Je=!1,!1},!0);var ye=function(e){if(p){e=e.touches?e.touches[0]:e;var t=gn(e.clientX,e.clientY);if(t){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Z]._onDragOver(n)}}},mn=function(e){p&&p.parentNode[Z]._isOutsideThisEl(e.target)};function E(i,e){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=e=ue({},e),i[Z]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return $t(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,u){s.setData("Text",u.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:E.supportPointer!==!1&&"PointerEvent"in window&&!Ne,emptyInsertThreshold:5};qe.initializePlugins(this,i,t);for(var n in t)!(n in e)&&(e[n]=t[n]);jt(e);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=e.forceFallback?!1:hn,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?A(i,"pointerdown",this._onTapStart):(A(i,"mousedown",this._onTapStart),A(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(A(i,"dragover",this),A(i,"dragenter",this)),et.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),ue(this,ln())}E.prototype={constructor:E,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Te=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,p):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,a=this.options,r=a.preventOnFilter,s=e.type,u=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,c=(u||e).target,f=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||c,v=a.filter;if(_n(n),!p&&!(/mousedown|pointerdown/.test(s)&&e.button!==0||a.disabled)&&!f.isContentEditable&&!(!this.nativeDraggable&&Ne&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=ae(c,a.draggable,n,!1),!(c&&c.animated)&&ze!==c)){if(Ie=ee(c),ke=ee(c,a.draggable),typeof v=="function"){if(v.call(this,e,c,this)){$({sortable:t,rootEl:f,name:"filter",targetEl:c,toEl:n,fromEl:n}),j("filter",t,{evt:e}),r&&e.cancelable&&e.preventDefault();return}}else if(v&&(v=v.split(",").some(function(g){if(g=ae(f,g.trim(),n,!1),g)return $({sortable:t,rootEl:g,name:"filter",targetEl:c,fromEl:n,toEl:n}),j("filter",t,{evt:e}),!0}),v)){r&&e.cancelable&&e.preventDefault();return}a.handle&&!ae(f,a.handle,n,!1)||this._prepareDragStart(e,u,c)}}},_prepareDragStart:function(e,t,n){var a=this,r=a.el,s=a.options,u=r.ownerDocument,c;if(n&&!p&&n.parentNode===r){var f=F(n);if(L=r,p=n,R=p.parentNode,Ee=p.nextSibling,ze=n,He=s.group,E.dragged=p,be={target:p,clientX:(t||e).clientX,clientY:(t||e).clientY},Pt=be.clientX-f.left,Lt=be.clientY-f.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,p.style["will-change"]="all",c=function(){if(j("delayEnded",a,{evt:e}),E.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Vt&&a.nativeDraggable&&(p.draggable=!0),a._triggerDragStart(e,t),$({sortable:a,name:"choose",originalEvent:e}),G(p,s.chosenClass,!0)},s.ignore.split(",").forEach(function(v){Bt(p,v.trim(),gt)}),A(u,"dragover",ye),A(u,"mousemove",ye),A(u,"touchmove",ye),A(u,"mouseup",a._onDrop),A(u,"touchend",a._onDrop),A(u,"touchcancel",a._onDrop),Vt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,p.draggable=!0),j("delayStart",this,{evt:e}),s.delay&&(!s.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Be||ce))){if(E.eventCanceled){this._onDrop();return}A(u,"mouseup",a._disableDelayedDrag),A(u,"touchend",a._disableDelayedDrag),A(u,"touchcancel",a._disableDelayedDrag),A(u,"mousemove",a._delayedDragTouchMoveHandler),A(u,"touchmove",a._delayedDragTouchMoveHandler),s.supportPointer&&A(u,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(c,s.delay)}else c()}},_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(){p&>(p),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;O(e,"mouseup",this._disableDelayedDrag),O(e,"touchend",this._disableDelayedDrag),O(e,"touchcancel",this._disableDelayedDrag),O(e,"mousemove",this._delayedDragTouchMoveHandler),O(e,"touchmove",this._delayedDragTouchMoveHandler),O(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?A(document,"pointermove",this._onTouchMove):t?A(document,"touchmove",this._onTouchMove):A(document,"mousemove",this._onTouchMove):(A(p,"dragend",this),A(L,"dragstart",this._onDragStart));try{document.selection?Ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Ce=!1,L&&p){j("dragStarted",this,{evt:t}),this.nativeDraggable&&A(document,"dragover",mn);var n=this.options;!e&&G(p,n.dragClass,!1),G(p,n.ghostClass,!0),E.active=this,e&&this._appendGhost(),$({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ie){this._lastX=ie.clientX,this._lastY=ie.clientY,Ut();for(var e=document.elementFromPoint(ie.clientX,ie.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ie.clientX,ie.clientY),e!==t);)t=e;if(p.parentNode[Z]._isOutsideThisEl(e),t)do{if(t[Z]){var n=void 0;if(n=t[Z]._onDragOver({clientX:ie.clientX,clientY:ie.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);zt()}},_onTouchMove:function(e){if(be){var t=this.options,n=t.fallbackTolerance,a=t.fallbackOffset,r=e.touches?e.touches[0]:e,s=T&&Ve(T,!0),u=T&&s&&s.a,c=T&&s&&s.d,f=$e&&W&&At(W),v=(r.clientX-be.clientX+a.x)/(u||1)+(f?f[0]-pt[0]:0)/(u||1),g=(r.clientY-be.clientY+a.y)/(c||1)+(f?f[1]-pt[1]:0)/(c||1);if(!E.active&&!Ce){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(T){s?(s.e+=v-(dt||0),s.f+=g-(ht||0)):s={a:1,b:0,c:0,d:1,e:v,f:g};var V="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");y(T,"webkitTransform",V),y(T,"mozTransform",V),y(T,"msTransform",V),y(T,"transform",V),dt=v,ht=g,ie=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!T){var e=this.options.fallbackOnBody?document.body:L,t=F(p,!0,$e,!0,e),n=this.options;if($e){for(W=e;y(W,"position")==="static"&&y(W,"transform")==="none"&&W!==document;)W=W.parentNode;W!==document.body&&W!==document.documentElement?(W===document&&(W=oe()),t.top+=W.scrollTop,t.left+=W.scrollLeft):W=oe(),pt=At(W)}T=p.cloneNode(!0),G(T,n.ghostClass,!1),G(T,n.fallbackClass,!0),G(T,n.dragClass,!0),y(T,"transition",""),y(T,"transform",""),y(T,"box-sizing","border-box"),y(T,"margin",0),y(T,"top",t.top),y(T,"left",t.left),y(T,"width",t.width),y(T,"height",t.height),y(T,"opacity","0.8"),y(T,"position",$e?"absolute":"fixed"),y(T,"zIndex","100000"),y(T,"pointerEvents","none"),E.ghost=T,e.appendChild(T),y(T,"transform-origin",Pt/parseInt(T.style.width)*100+"% "+Lt/parseInt(T.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,a=e.dataTransfer,r=n.options;if(j("dragStart",this,{evt:e}),E.eventCanceled){this._onDrop();return}j("setupClone",this),E.eventCanceled||(N=Yt(p),N.removeAttribute("id"),N.draggable=!1,N.style["will-change"]="",this._hideClone(),G(N,this.options.chosenClass,!1),E.clone=N),n.cloneId=Ke(function(){j("clone",n),!E.eventCanceled&&(n.options.removeCloneOnHide||L.insertBefore(N,p),n._hideClone(),$({sortable:n,name:"clone"}))}),!t&&G(p,r.dragClass,!0),t?(Je=!0,n._loopId=setInterval(n._emulateDragOver,50)):(O(document,"mouseup",n._onDrop),O(document,"touchend",n._onDrop),O(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",r.setData&&r.setData.call(n,a,p)),A(document,"drop",n),y(p,"transform","translateZ(0)")),Ce=!0,n._dragStartId=Ke(n._dragStarted.bind(n,t,e)),A(document,"selectstart",n),Ae=!0,Ne&&y(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,a,r,s,u=this.options,c=u.group,f=E.active,v=He===c,g=u.sort,V=H||f,I,D=this,_=!1;if(bt)return;function d(we,at){j(we,D,se({evt:e,isOwner:v,axis:I?"vertical":"horizontal",revert:s,dragRect:a,targetRect:r,canSort:g,fromSortable:V,target:n,completed:C,onMove:function(De,ot){return je(L,t,p,a,De,F(De),e,ot)},changed:U},at))}function te(){d("dragOverAnimationCapture"),D.captureAnimationState(),D!==V&&V.captureAnimationState()}function C(we){return d("dragOverCompleted",{insertion:we}),we&&(v?f._hideClone():f._showClone(D),D!==V&&(G(p,H?H.options.ghostClass:f.options.ghostClass,!1),G(p,u.ghostClass,!0)),H!==D&&D!==E.active?H=D:D===E.active&&H&&(H=null),V===D&&(D._ignoreWhileAnimating=n),D.animateAll(function(){d("dragOverAnimationComplete"),D._ignoreWhileAnimating=null}),D!==V&&(V.animateAll(),V._ignoreWhileAnimating=null)),(n===p&&!p.animated||n===t&&!n.animated)&&(Te=null),!u.dragoverBubble&&!e.rootEl&&n!==document&&(p.parentNode[Z]._isOutsideThisEl(e.target),!we&&ye(e)),!u.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),_=!0}function U(){K=ee(p),he=ee(p,u.draggable),$({sortable:D,name:"change",toEl:t,newIndex:K,newDraggableIndex:he,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=ae(n,u.draggable,t,!0),d("dragOver"),E.eventCanceled)return _;if(p.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||D._ignoreWhileAnimating===n)return C(!1);if(Je=!1,f&&!u.disabled&&(v?g||(s=R!==L):H===this||(this.lastPutMode=He.checkPull(this,f,p,e))&&c.checkPut(this,f,p,e))){if(I=this._getDirection(e,n)==="vertical",a=F(p),d("dragOverValid"),E.eventCanceled)return _;if(s)return R=L,te(),this._hideClone(),d("revert"),E.eventCanceled||(Ee?L.insertBefore(p,Ee):L.appendChild(p)),C(!0);var B=Dt(t,u.draggable);if(!B||yn(e,I,this)&&!B.animated){if(B===p)return C(!1);if(B&&t===e.target&&(n=B),n&&(r=F(n)),je(L,t,p,a,n,r,e,!!n)!==!1)return te(),B&&B.nextSibling?t.insertBefore(p,B.nextSibling):t.appendChild(p),R=t,U(),C(!0)}else if(B&&bn(e,I,this)){var q=Oe(t,0,u,!0);if(q===p)return C(!1);if(n=q,r=F(n),je(L,t,p,a,n,r,e,!1)!==!1)return te(),t.insertBefore(p,q),R=t,U(),C(!0)}else if(n.parentNode===t){r=F(n);var k=0,re,fe=p.parentNode!==t,X=!pn(p.animated&&p.toRect||a,n.animated&&n.toRect||r,I),me=I?"top":"left",ne=xt(n,"top","top")||xt(p,"top","top"),ve=ne?ne.scrollTop:void 0;Te!==n&&(re=r[me],Fe=!1,We=!X&&u.invertSwap||fe),k=En(e,n,r,I,X?1:u.swapThreshold,u.invertedSwapThreshold==null?u.swapThreshold:u.invertedSwapThreshold,We,Te===n);var Q;if(k!==0){var z=ee(p);do z-=k,Q=R.children[z];while(Q&&(y(Q,"display")==="none"||Q===T))}if(k===0||Q===n)return C(!1);Te=n,Me=k;var de=n.nextElementSibling,J=!1;J=k===1;var Se=je(L,t,p,a,n,r,e,J);if(Se!==!1)return(Se===1||Se===-1)&&(J=Se===1),bt=!0,setTimeout(wn,30),te(),J&&!de?t.appendChild(p):n.parentNode.insertBefore(p,J?de:n),ne&&Xt(ne,0,ve-ne.scrollTop),R=p.parentNode,re!==void 0&&!We&&(Ge=Math.abs(re-F(n)[me])),U(),C(!0)}if(t.contains(p))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){O(document,"mousemove",this._onTouchMove),O(document,"touchmove",this._onTouchMove),O(document,"pointermove",this._onTouchMove),O(document,"dragover",ye),O(document,"mousemove",ye),O(document,"touchmove",ye)},_offUpEvents:function(){var e=this.el.ownerDocument;O(e,"mouseup",this._onDrop),O(e,"touchend",this._onDrop),O(e,"pointerup",this._onDrop),O(e,"touchcancel",this._onDrop),O(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(K=ee(p),he=ee(p,n.draggable),j("drop",this,{evt:e}),R=p&&p.parentNode,K=ee(p),he=ee(p,n.draggable),E.eventCanceled){this._nulling();return}Ce=!1,We=!1,Fe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),yt(this.cloneId),yt(this._dragStartId),this.nativeDraggable&&(O(document,"drop",this),O(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ne&&y(document.body,"user-select",""),y(p,"transform",""),e&&(Ae&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),T&&T.parentNode&&T.parentNode.removeChild(T),(L===R||H&&H.lastPutMode!=="clone")&&N&&N.parentNode&&N.parentNode.removeChild(N),p&&(this.nativeDraggable&&O(p,"dragend",this),gt(p),p.style["will-change"]="",Ae&&!Ce&&G(p,H?H.options.ghostClass:this.options.ghostClass,!1),G(p,this.options.chosenClass,!1),$({sortable:this,name:"unchoose",toEl:R,newIndex:null,newDraggableIndex:null,originalEvent:e}),L!==R?(K>=0&&($({rootEl:R,name:"add",toEl:R,fromEl:L,originalEvent:e}),$({sortable:this,name:"remove",toEl:R,originalEvent:e}),$({rootEl:R,name:"sort",toEl:R,fromEl:L,originalEvent:e}),$({sortable:this,name:"sort",toEl:R,originalEvent:e})),H&&H.save()):K!==Ie&&K>=0&&($({sortable:this,name:"update",toEl:R,originalEvent:e}),$({sortable:this,name:"sort",toEl:R,originalEvent:e})),E.active&&((K==null||K===-1)&&(K=Ie,he=ke),$({sortable:this,name:"end",toEl:R,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){j("nulling",this),L=p=R=T=Ee=N=ze=pe=be=ie=Ae=K=he=Ie=ke=Te=Me=H=He=E.dragged=E.ghost=E.clone=E.active=null,tt.forEach(function(e){e.checked=!0}),tt.length=dt=ht=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":p&&(this._onDragOver(e),vn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,a=0,r=n.length,s=this.options;a<r;a++)t=n[a],ae(t,s.draggable,this.el,!1)&&e.push(t.getAttribute(s.dataIdAttr)||Dn(t));return e},sort:function(e,t){var n={},a=this.el;this.toArray().forEach(function(r,s){var u=a.children[s];ae(u,this.options.draggable,a,!1)&&(n[r]=u)},this),t&&this.captureAnimationState(),e.forEach(function(r){n[r]&&(a.removeChild(n[r]),a.appendChild(n[r]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return ae(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var a=qe.modifyOption(this,e,t);typeof a<"u"?n[e]=a:n[e]=t,e==="group"&&jt(n)},destroy:function(){j("destroy",this);var e=this.el;e[Z]=null,O(e,"mousedown",this._onTapStart),O(e,"touchstart",this._onTapStart),O(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(O(e,"dragover",this),O(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),et.splice(et.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!pe){if(j("hideClone",this),E.eventCanceled)return;y(N,"display","none"),this.options.removeCloneOnHide&&N.parentNode&&N.parentNode.removeChild(N),pe=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(pe){if(j("showClone",this),E.eventCanceled)return;p.parentNode==L&&!this.options.group.revertClone?L.insertBefore(N,p):Ee?L.insertBefore(N,Ee):L.appendChild(N),this.options.group.revertClone&&this.animate(p,N),y(N,"display",""),pe=!1}}};function vn(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function je(i,e,t,n,a,r,s,u){var c,f=i[Z],v=f.options.onMove,g;return window.CustomEvent&&!ce&&!Be?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=e,c.from=i,c.dragged=t,c.draggedRect=n,c.related=a||e,c.relatedRect=r||F(e),c.willInsertAfter=u,c.originalEvent=s,i.dispatchEvent(c),v&&(g=v.call(f,c,s)),g}function gt(i){i.draggable=!1}function wn(){bt=!1}function bn(i,e,t){var n=F(Oe(t.el,0,t.options,!0)),a=Ht(t.el,t.options,T),r=10;return e?i.clientX<a.left-r||i.clientY<n.top&&i.clientX<n.right:i.clientY<a.top-r||i.clientY<n.bottom&&i.clientX<n.left}function yn(i,e,t){var n=F(Dt(t.el,t.options.draggable)),a=Ht(t.el,t.options,T),r=10;return e?i.clientX>a.right+r||i.clientY>n.bottom&&i.clientX>n.left:i.clientY>a.bottom+r||i.clientX>n.right&&i.clientY>n.top}function En(i,e,t,n,a,r,s,u){var c=n?i.clientY:i.clientX,f=n?t.height:t.width,v=n?t.top:t.left,g=n?t.bottom:t.right,V=!1;if(!s){if(u&&Ge<f*a){if(!Fe&&(Me===1?c>v+f*r/2:c<g-f*r/2)&&(Fe=!0),Fe)V=!0;else if(Me===1?c<v+Ge:c>g-Ge)return-Me}else if(c>v+f*(1-a)/2&&c<g-f*(1-a)/2)return Sn(e)}return V=V||s,V&&(c<v+f*r/2||c>g-f*r/2)?c>v+f/2?1:-1:0}function Sn(i){return ee(p)<ee(i)?1:-1}function Dn(i){for(var e=i.tagName+i.className+i.src+i.href+i.textContent,t=e.length,n=0;t--;)n+=e.charCodeAt(t);return n.toString(36)}function _n(i){tt.length=0;for(var e=i.getElementsByTagName("input"),t=e.length;t--;){var n=e[t];n.checked&&tt.push(n)}}function Ke(i){return setTimeout(i,0)}function yt(i){return clearTimeout(i)}it&&A(document,"touchmove",function(i){(E.active||Ce)&&i.cancelable&&i.preventDefault()});E.utils={on:A,off:O,css:y,find:Bt,is:function(e,t){return!!ae(e,t,e,!1)},extend:on,throttle:qt,closest:ae,toggleClass:G,clone:Yt,index:ee,nextTick:Ke,cancelNextTick:yt,detectDirection:$t,getChild:Oe};E.get=function(i){return i[Z]};E.mount=function(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(E.utils=se(se({},E.utils),n.utils)),qe.mount(n)})};E.create=function(i,e){return new E(i,e)};E.version=nn;var M=[],Pe,Et,St=!1,mt,vt,nt,Le;function Tn(){function i(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return i.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):this.options.supportPointer?A(document,"pointermove",this._handleFallbackAutoScroll):n.touches?A(document,"touchmove",this._handleFallbackAutoScroll):A(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?O(document,"dragover",this._handleAutoScroll):(O(document,"pointermove",this._handleFallbackAutoScroll),O(document,"touchmove",this._handleFallbackAutoScroll),O(document,"mousemove",this._handleFallbackAutoScroll)),Rt(),Ze(),sn()},nulling:function(){nt=Et=Pe=St=Le=mt=vt=null,M.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var a=this,r=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,u=document.elementFromPoint(r,s);if(nt=t,n||this.options.forceAutoScrollFallback||Be||ce||Ne){wt(t,this.options,u,n);var c=ge(u,!0);St&&(!Le||r!==mt||s!==vt)&&(Le&&Rt(),Le=setInterval(function(){var f=ge(document.elementFromPoint(r,s),!0);f!==c&&(c=f,Ze()),wt(t,a.options,f,n)},10),mt=r,vt=s)}else{if(!this.options.bubbleScroll||ge(u,!0)===oe()){Ze();return}wt(t,this.options,ge(u,!1),!1)}}},ue(i,{pluginName:"scroll",initializeByDefault:!0})}function Ze(){M.forEach(function(i){clearInterval(i.pid)}),M=[]}function Rt(){clearInterval(Le)}var wt=qt(function(i,e,t,n){if(e.scroll){var a=(i.touches?i.touches[0]:i).clientX,r=(i.touches?i.touches[0]:i).clientY,s=e.scrollSensitivity,u=e.scrollSpeed,c=oe(),f=!1,v;Et!==t&&(Et=t,Ze(),Pe=e.scroll,v=e.scrollFn,Pe===!0&&(Pe=ge(t,!0)));var g=0,V=Pe;do{var I=V,D=F(I),_=D.top,d=D.bottom,te=D.left,C=D.right,U=D.width,B=D.height,q=void 0,k=void 0,re=I.scrollWidth,fe=I.scrollHeight,X=y(I),me=I.scrollLeft,ne=I.scrollTop;I===c?(q=U<re&&(X.overflowX==="auto"||X.overflowX==="scroll"||X.overflowX==="visible"),k=B<fe&&(X.overflowY==="auto"||X.overflowY==="scroll"||X.overflowY==="visible")):(q=U<re&&(X.overflowX==="auto"||X.overflowX==="scroll"),k=B<fe&&(X.overflowY==="auto"||X.overflowY==="scroll"));var ve=q&&(Math.abs(C-a)<=s&&me+U<re)-(Math.abs(te-a)<=s&&!!me),Q=k&&(Math.abs(d-r)<=s&&ne+B<fe)-(Math.abs(_-r)<=s&&!!ne);if(!M[g])for(var z=0;z<=g;z++)M[z]||(M[z]={});(M[g].vx!=ve||M[g].vy!=Q||M[g].el!==I)&&(M[g].el=I,M[g].vx=ve,M[g].vy=Q,clearInterval(M[g].pid),(ve!=0||Q!=0)&&(f=!0,M[g].pid=setInterval((function(){n&&this.layer===0&&E.active._onTouchMove(nt);var de=M[this.layer].vy?M[this.layer].vy*u:0,J=M[this.layer].vx?M[this.layer].vx*u:0;typeof v=="function"&&v.call(E.dragged.parentNode[Z],J,de,i,nt,M[this.layer].el)!=="continue"||Xt(M[this.layer].el,J,de)}).bind({layer:g}),24))),g++}while(e.bubbleScroll&&V!==c&&(V=ge(V,!1)));St=f}},30),Gt=function(e){var t=e.originalEvent,n=e.putSortable,a=e.dragEl,r=e.activeSortable,s=e.dispatchSortableEvent,u=e.hideGhostForTarget,c=e.unhideGhostForTarget;if(t){var f=n||r;u();var v=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,g=document.elementFromPoint(v.clientX,v.clientY);c(),f&&!f.el.contains(g)&&(s("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function _t(){}_t.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 a=Oe(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(t,a):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Gt};ue(_t,{pluginName:"revertOnSpill"});function Tt(){}Tt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,a=n||this.sortable;a.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),a.animateAll()},drop:Gt};ue(Tt,{pluginName:"removeOnSpill"});E.mount(new Tn);E.mount(Tt,_t);const Cn=["data-url","onContextmenu","onMousedown","onClick"],In={key:0,class:"iconfont icon-webicon318 layout-navbars-tagsview-ul-li-iconfont"},Vn=m.defineComponent({name:"layoutTagsView"}),On=m.defineComponent({...Vn,setup(i){const e=m.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./contextmenu-dHOpR1Qx.js"))),t=m.ref([]),n=m.ref(),a=m.ref(),r=m.ref(),s=x.useTagsViewRoutes(),u=x.useThemeConfig(),c=x.useTagsViewRoutes(),f=x.useRoutesList(),{themeConfig:v}=x.storeToRefs(u),{tagsViewRoutes:g}=x.storeToRefs(c),{routesList:V}=x.storeToRefs(f),I=x.useKeepALiveNames(),D=x.useRoute(),_=x.useRouter(),d=m.reactive({routeActive:"",routePath:D.path,dropdown:{x:"",y:""},sortable:"",tagsRefsIndex:0,tagsViewList:[],tagsViewRoutesList:[]}),te=m.computed(()=>v.value.tagsStyle),C=m.computed(()=>v.value),U=m.computed(()=>l=>x.other.setTagsViewNameI18n(l)),B=l=>C.value.isShareTagsView?l.path===d.routePath:l.query&&Object.keys(l.query).length||l.params&&Object.keys(l.params).length?l.url?l.url===d.routeActive:l.path===d.routeActive:l.path===d.routePath,q=l=>{x.Session.set("tagsViewList",l)},k=l=>{var b;let o=l.query&&Object.keys(l.query).length>0?l.query:l.params;if(!o||Object.keys(o).length<=0)return l.path;let h="";for(let w in o)h+=o[w];return`${(b=l.meta)!=null&&b.isDynamic?l.meta.isDynamicPath:l.path}-${h}`},re=async(l,o)=>{var w,P;let h=(w=o==null?void 0:o.meta)!=null&&w.isDynamic?o.meta.isDynamicPath:l;if(d.tagsViewList.filter(S=>{var Y,xe;return S.path===h&&x.isObjectValueEqual((Y=o==null?void 0:o.meta)!=null&&Y.isDynamic?S.params?S.params:null:S.query?S.query:null,(xe=o==null?void 0:o.meta)!=null&&xe.isDynamic?o!=null&&o.params?o==null?void 0:o.params:null:o!=null&&o.query?o==null?void 0:o.query:null)}).length<=0){let S=d.tagsViewRoutesList.find(Y=>Y.path===h);if(!S||S.meta.isAffix||S.meta.isLink&&!S.meta.isIframe)return!1;(P=o==null?void 0:o.meta)!=null&&P.isDynamic?S.params=o.params:S.query=o==null?void 0:o.query,S.url=k(S),d.tagsViewList.push({...S}),await I.addCachedView(S),q(d.tagsViewList)}},fe=(l,o)=>{var b;let h=(b=o==null?void 0:o.meta)!=null&&b.isDynamic?o.meta.isDynamicPath:l;d.tagsViewList.forEach(w=>{var P,S,Y;w.path===h&&!x.isObjectValueEqual((P=o==null?void 0:o.meta)!=null&&P.isDynamic?w.params?w.params:null:w.query?w.query:null,(S=o==null?void 0:o.meta)!=null&&S.isDynamic?o!=null&&o.params?o==null?void 0:o.params:null:o!=null&&o.query?o==null?void 0:o.query:null)&&((Y=o==null?void 0:o.meta)!=null&&Y.isDynamic?w.params=o.params:w.query=o==null?void 0:o.query,w.url=k(w),q(d.tagsViewList))})},X=(l,o)=>{m.nextTick(async()=>{var b,w,P;let h;if((b=o==null?void 0:o.meta)!=null&&b.isDynamic){if(C.value.isShareTagsView?await fe(l,o):await re(l,o),d.tagsViewList.some(S=>{var Y;return S.path===((Y=o==null?void 0:o.meta)==null?void 0:Y.isDynamicPath)}))return q(d.tagsViewList),!1;h=d.tagsViewRoutesList.find(S=>{var Y;return S.path===((Y=o==null?void 0:o.meta)==null?void 0:Y.isDynamicPath)})}else{if(C.value.isShareTagsView?await fe(l,o):await re(l,o),d.tagsViewList.some(S=>S.path===l))return q(d.tagsViewList),!1;h=d.tagsViewRoutesList.find(S=>S.path===l)}if(!h||(w=h==null?void 0:h.meta)!=null&&w.isLink&&!h.meta.isIframe)return!1;(P=o==null?void 0:o.meta)!=null&&P.isDynamic?h.params=o!=null&&o.params?o==null?void 0:o.params:D.params:h.query=o!=null&&o.query?o==null?void 0:o.query:D.query,h.url=k(h),await I.addCachedView(h),await d.tagsViewList.push({...h}),await q(d.tagsViewList)})},me=()=>{m.nextTick(()=>{if(t.value.length<=0)return!1;let l=t.value[d.tagsRefsIndex],o=d.tagsRefsIndex,h=t.value.length,b=t.value[0],w=t.value[t.value.length-1],P=n.value.$refs.wrapRef,S=P.scrollWidth,Y=P.offsetWidth,xe=P.scrollLeft,ut=t.value[d.tagsRefsIndex-1],Ct=t.value[d.tagsRefsIndex+1],Xe=0,Ye=0;l===b?P.scrollLeft=0:l===w?P.scrollLeft=S-Y:(o===0?Xe=b.offsetLeft-5:Xe=(ut==null?void 0:ut.offsetLeft)-5,o===h?Ye=w.offsetLeft+w.offsetWidth+5:Ye=Ct.offsetLeft+Ct.offsetWidth+5,Ye>xe+Y?P.scrollLeft=Ye-Y:Xe<xe&&(P.scrollLeft=Xe)),n.value.update()})},ne=l=>{m.nextTick(async()=>{let o=await d.tagsViewList;d.tagsRefsIndex=o.findIndex(h=>C.value.isShareTagsView?h.path===l:h.url===l),me()})},ve=async()=>{x.Session.get("tagsViewList")&&C.value.isCacheTagsView?d.tagsViewList=await x.Session.get("tagsViewList"):(await d.tagsViewRoutesList.map(l=>{var o;(o=l.meta)!=null&&o.isAffix&&!l.meta.isHide&&(l.url=k(l),d.tagsViewList.push({...l}),I.addCachedView(l))}),await X(D.path,D)),ne(C.value.isShareTagsView?d.routePath:d.routeActive)},Q=async()=>{d.routeActive=await k(D),d.routePath=await D.meta.isDynamic?D.meta.isDynamicPath:D.path,d.tagsViewList=[],d.tagsViewRoutesList=g.value,ve()},z=l=>{var b,w;let o=l.query&&Object.keys(l.query).length>0?l.query:l.params;if(!o)return"";let h="";for(let[P,S]of Object.entries(o))(b=l.meta)!=null&&b.isDynamic?h+=`/${S}`:h+=`&${P}=${S}`;return(w=l.meta)!=null&&w.isDynamic?l.isFnClick?decodeURI(l.path):`${l.path.split(":")[0]}${h.replace(/^\//,"")}`:`${l.path}${h.replace(/^&/,"?")}`},de=async l=>{var b;const o=decodeURI(l);let h={};if(d.tagsViewList.forEach(w=>{w.transUrl=z(w),w.transUrl?w.transUrl===z(w)&&(h=w):w.path===o&&(h=w)}),!h)return!1;await I.delCachedView(h),x.mittBus.emit("onTagsViewRefreshRouterView",l),(b=h.meta)!=null&&b.isKeepAlive&&I.addCachedView(h)},J=l=>{d.tagsViewList.map((o,h,b)=>{var w;(w=o.meta)!=null&&w.isAffix||(C.value.isShareTagsView?o.path===l:o.url===l)&&(I.delCachedView(o),d.tagsViewList.splice(h,1),setTimeout(()=>{(d.tagsViewList.length===h&&C.value.isShareTagsView?d.routePath===l:d.routeActive===l)?b[b.length-1].meta.isDynamic?h!==b.length?_.push({name:b[h].name,params:b[h].params}):_.push({name:b[b.length-1].name,params:b[b.length-1].params}):h!==b.length?_.push({path:b[h].path,query:b[h].query}):_.push({path:b[b.length-1].path,query:b[b.length-1].query}):(d.tagsViewList.length!==h&&C.value.isShareTagsView?d.routePath===l:d.routeActive===l)&&(b[h].meta.isDynamic?_.push({name:b[h].name,params:b[h].params}):_.push({path:b[h].path,query:b[h].query}))},0))}),q(d.tagsViewList)},Se=l=>{x.Session.get("tagsViewList")&&(d.tagsViewList=[],x.Session.get("tagsViewList").map(o=>{var h;(h=o.meta)!=null&&h.isAffix&&!o.meta.isHide&&(o.url=k(o),I.delOthersCachedViews(o),d.tagsViewList.push({...o}))}),X(l,D),q(d.tagsViewList))},we=()=>{x.Session.get("tagsViewList")&&(I.delAllCachedViews(),d.tagsViewList=[],x.Session.get("tagsViewList").map(l=>{var o;(o=l.meta)!=null&&o.isAffix&&!l.meta.isHide&&(l.url=k(l),d.tagsViewList.push({...l}),_.push({path:d.tagsViewList[d.tagsViewList.length-1].path}))}),q(d.tagsViewList))},at=async l=>{const o=d.tagsViewList.find(h=>C.value.isShareTagsView?h.path===l:h.url===l);o.meta.isDynamic?await _.push({name:o.name,params:o.params}):await _.push({name:o.name,query:o.query}),s.setCurrenFullscreen(!0)},rt=l=>{let o={};return d.tagsViewList.forEach(h=>{h.transUrl=z(h),h.transUrl?h.transUrl===z(h)&&h.transUrl===l.commonUrl&&(o=h):h.path===decodeURI(l.path)&&(o=h)}),o||null},De=async l=>{if(l.commonUrl=z(l),!rt(l))return x.ElMessage({type:"warning",message:"请正确输入路径及完整参数(query、params)"});const{path:o,name:h,params:b,query:w,meta:P,url:S}=rt(l);switch(l.contextMenuClickId){case 0:P.isDynamic?await _.push({name:h,params:b}):await _.push({path:o,query:w}),de(D.fullPath);break;case 1:J(C.value.isShareTagsView?o:S);break;case 2:P.isDynamic?await _.push({name:h,params:b}):await _.push({path:o,query:w}),Se(o);break;case 3:we();break;case 4:at(C.value.isShareTagsView?o:S);break}},ot=(l,o)=>{const{clientX:h,clientY:b}=o;d.dropdown.x=h,d.dropdown.y=b,a.value.openContextmenu(l)},Kt=(l,o)=>{var h;if(!((h=l.meta)!=null&&h.isAffix)&&o.button===1){const b=Object.assign({},{contextMenuClickId:1,...l});De(b)}},Zt=(l,o)=>{d.tagsRefsIndex=o,_.push(l),C.value.layout==="columns"&&(V.value.find(b=>b.path.indexOf(`/${l.path.split("/")[1]}`)>-1).children?C.value.isCollapse=!1:C.value.isCollapse=!0)},Qt=l=>{n.value.$refs.wrapRef.scrollLeft+=l.wheelDelta/4},st=async()=>{const l=document.querySelector(".layout-navbars-tagsview-ul");if(!l)return!1;d.sortable.el&&d.sortable.destroy(),d.sortable=E.create(l,{animation:300,dataIdAttr:"data-url",disabled:!C.value.isSortableTagsView,onEnd:()=>{const o=[];d.sortable.toArray().map(h=>{d.tagsViewList.map(b=>{b.url===h&&o.push({...b})})}),q(o)}})},lt=async()=>{await st(),x.other.isMobile()&&d.sortable.el&&d.sortable.destroy()};return m.onBeforeMount(()=>{lt(),window.addEventListener("resize",lt),x.mittBus.on("onCurrentContextmenuClick",l=>{l.isFnClick=!0,De(l)}),x.mittBus.on("openOrCloseSortable",()=>{st()}),x.mittBus.on("openShareTagsView",()=>{C.value.isShareTagsView&&(_.push("/home"),d.tagsViewList=[],d.tagsViewRoutesList.map(l=>{var o;(o=l.meta)!=null&&o.isAffix&&!l.meta.isHide&&(l.url=k(l),d.tagsViewList.push({...l}))}))})}),m.onUnmounted(()=>{x.mittBus.off("onCurrentContextmenuClick",()=>{}),x.mittBus.off("openOrCloseSortable",()=>{}),x.mittBus.off("openShareTagsView",()=>{}),window.removeEventListener("resize",lt)}),m.onBeforeUpdate(()=>{t.value=[]}),m.onMounted(()=>{Q(),st()}),x.onBeforeRouteUpdate(async l=>{d.routeActive=k(l),d.routePath=l.meta.isDynamic?l.meta.isDynamicPath:l.path,await X(l.path,l),ne(C.value.isShareTagsView?d.routePath:d.routeActive)}),m.watch(()=>g.value,l=>{if(l.length===d.tagsViewRoutesList.length)return!1;Q()},{deep:!0}),(l,o)=>{const h=m.resolveComponent("SvgIcon"),b=m.resolveComponent("el-scrollbar");return m.openBlock(),m.createElementBlock("div",{class:m.normalizeClass(["layout-navbars-tagsview",{"layout-navbars-tagsview-shadow":C.value.layout==="classic"}])},[m.createVNode(b,{ref_key:"scrollbarRef",ref:n,onWheel:m.withModifiers(Qt,["prevent"])},{default:m.withCtx(()=>[m.createElementVNode("ul",{class:m.normalizeClass(["layout-navbars-tagsview-ul",te.value]),ref_key:"tagsUlRef",ref:r},[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(d.tagsViewList,(w,P)=>(m.openBlock(),m.createElementBlock("li",{key:P,class:m.normalizeClass(["layout-navbars-tagsview-ul-li",{"is-active":B(w)}]),"data-url":w.url,onContextmenu:m.withModifiers(S=>ot(w,S),["prevent"]),onMousedown:S=>Kt(w,S),onClick:S=>Zt(w,P),ref_for:!0,ref:S=>{S&&(t.value[P]=S)}},[B(w)?(m.openBlock(),m.createElementBlock("i",In)):m.createCommentVNode("",!0),!B(w)&&C.value.isTagsviewIcon?(m.openBlock(),m.createBlock(h,{key:1,name:w.meta.icon,class:"pr5"},null,8,["name"])):m.createCommentVNode("",!0),m.createElementVNode("span",null,m.toDisplayString(U.value(w)),1),B(w)?(m.openBlock(),m.createElementBlock(m.Fragment,{key:2},[m.createVNode(h,{name:"ele-RefreshRight",class:"ml5 layout-navbars-tagsview-ul-li-refresh",onClick:o[0]||(o[0]=m.withModifiers(S=>de(l.$route.fullPath),["stop"]))}),w.meta.isAffix?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(h,{key:0,name:"ele-Close",class:"layout-navbars-tagsview-ul-li-icon layout-icon-active",onClick:m.withModifiers(S=>J(C.value.isShareTagsView?w.path:w.url),["stop"])},null,8,["onClick"]))],64)):m.createCommentVNode("",!0),w.meta.isAffix?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(h,{key:3,name:"ele-Close",class:"layout-navbars-tagsview-ul-li-icon layout-icon-three",onClick:m.withModifiers(S=>J(C.value.isShareTagsView?w.path:w.url),["stop"])},null,8,["onClick"]))],42,Cn))),128))],2)]),_:1},512),m.createVNode(m.unref(e),{dropdown:d.dropdown,ref_key:"contextmenuRef",ref:a,onCurrentContextmenuClick:De},null,8,["dropdown"])],2)}}}),xn=x._export_sfc(On,[["__scopeId","data-v-a7a031b3"]]);exports.default=xn;
|
|
6
|
+
*/function It(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),t.push.apply(t,n)}return t}function se(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?It(Object(t),!0).forEach(function(n){Jt(i,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):It(Object(t)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(t,n))})}return i}function Ue(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ue=function(e){return typeof e}:Ue=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(i)}function Jt(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function ue(){return ue=Object.assign||function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},ue.apply(this,arguments)}function en(i,e){if(i==null)return{};var t={},n=Object.keys(i),a,r;for(r=0;r<n.length;r++)a=n[r],!(e.indexOf(a)>=0)&&(t[a]=i[a]);return t}function tn(i,e){if(i==null)return{};var t=en(i,e),n,a;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);for(a=0;a<r.length;a++)n=r[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(i,n)&&(t[n]=i[n])}return t}var nn="1.15.2";function le(i){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(i)}var ce=le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Be=le(/Edge/i),Vt=le(/firefox/i),Ne=le(/safari/i)&&!le(/chrome/i)&&!le(/android/i),kt=le(/iP(ad|od|hone)/i),Mt=le(/chrome/i)&&le(/android/i),Ft={capture:!1,passive:!1};function A(i,e,t){i.addEventListener(e,t,!ce&&Ft)}function O(i,e,t){i.removeEventListener(e,t,!ce&&Ft)}function Qe(i,e){if(e){if(e[0]===">"&&(e=e.substring(1)),i)try{if(i.matches)return i.matches(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e)}catch{return!1}return!1}}function an(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function ae(i,e,t,n){if(i){t=t||document;do{if(e!=null&&(e[0]===">"?i.parentNode===t&&Qe(i,e):Qe(i,e))||n&&i===t)return i;if(i===t)break}while(i=an(i))}return null}var Ot=/\s+/g;function G(i,e,t){if(i&&e)if(i.classList)i.classList[t?"add":"remove"](e);else{var n=(" "+i.className+" ").replace(Ot," ").replace(" "+e+" "," ");i.className=(n+(t?" "+e:"")).replace(Ot," ")}}function y(i,e,t){var n=i&&i.style;if(n){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(t=i.currentStyle),e===void 0?t:t[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=t+(typeof t=="string"?"":"px")}}function Ve(i,e){var t="";if(typeof i=="string")t=i;else do{var n=y(i,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!e&&(i=i.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(t)}function Bt(i,e,t){if(i){var n=i.getElementsByTagName(e),a=0,r=n.length;if(t)for(;a<r;a++)t(n[a],a);return n}return[]}function oe(){var i=document.scrollingElement;return i||document.documentElement}function F(i,e,t,n,a){if(!(!i.getBoundingClientRect&&i!==window)){var r,s,u,c,f,v,g;if(i!==window&&i.parentNode&&i!==oe()?(r=i.getBoundingClientRect(),s=r.top,u=r.left,c=r.bottom,f=r.right,v=r.height,g=r.width):(s=0,u=0,c=window.innerHeight,f=window.innerWidth,v=window.innerHeight,g=window.innerWidth),(e||t)&&i!==window&&(a=a||i.parentNode,!ce))do if(a&&a.getBoundingClientRect&&(y(a,"transform")!=="none"||t&&y(a,"position")!=="static")){var V=a.getBoundingClientRect();s-=V.top+parseInt(y(a,"border-top-width")),u-=V.left+parseInt(y(a,"border-left-width")),c=s+r.height,f=u+r.width;break}while(a=a.parentNode);if(n&&i!==window){var I=Ve(a||i),D=I&&I.a,_=I&&I.d;I&&(s/=_,u/=D,g/=D,v/=_,c=s+v,f=u+g)}return{top:s,left:u,bottom:c,right:f,width:g,height:v}}}function xt(i,e,t){for(var n=ge(i,!0),a=F(i)[e];n;){var r=F(n)[t],s=void 0;if(t==="top"||t==="left"?s=a>=r:s=a<=r,!s)return n;if(n===oe())break;n=ge(n,!1)}return!1}function Oe(i,e,t,n){for(var a=0,r=0,s=i.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==E.ghost&&(n||s[r]!==E.dragged)&&ae(s[r],t.draggable,i,!1)){if(a===e)return s[r];a++}r++}return null}function Dt(i,e){for(var t=i.lastElementChild;t&&(t===E.ghost||y(t,"display")==="none"||e&&!Qe(t,e));)t=t.previousElementSibling;return t||null}function ee(i,e){var t=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==E.clone&&(!e||Qe(i,e))&&t++;return t}function At(i){var e=0,t=0,n=oe();if(i)do{var a=Ve(i),r=a.a,s=a.d;e+=i.scrollLeft*r,t+=i.scrollTop*s}while(i!==n&&(i=i.parentNode));return[e,t]}function rn(i,e){for(var t in i)if(i.hasOwnProperty(t)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===i[t][n])return Number(t)}return-1}function ge(i,e){if(!i||!i.getBoundingClientRect)return oe();var t=i,n=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var a=y(t);if(t.clientWidth<t.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return oe();if(n||e)return t;n=!0}}while(t=t.parentNode);return oe()}function on(i,e){if(i&&e)for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function ct(i,e){return Math.round(i.top)===Math.round(e.top)&&Math.round(i.left)===Math.round(e.left)&&Math.round(i.height)===Math.round(e.height)&&Math.round(i.width)===Math.round(e.width)}var Re;function qt(i,e){return function(){if(!Re){var t=arguments,n=this;t.length===1?i.call(n,t[0]):i.apply(n,t),Re=setTimeout(function(){Re=void 0},e)}}}function sn(){clearTimeout(Re),Re=void 0}function Xt(i,e,t){i.scrollLeft+=e,i.scrollTop+=t}function Yt(i){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(i).cloneNode(!0):t?t(i).clone(!0)[0]:i.cloneNode(!0)}function Ht(i,e,t){var n={};return Array.from(i.children).forEach(function(a){var r,s,u,c;if(!(!ae(a,e.draggable,i,!1)||a.animated||a===t)){var f=F(a);n.left=Math.min((r=n.left)!==null&&r!==void 0?r:1/0,f.left),n.top=Math.min((s=n.top)!==null&&s!==void 0?s:1/0,f.top),n.right=Math.max((u=n.right)!==null&&u!==void 0?u:-1/0,f.right),n.bottom=Math.max((c=n.bottom)!==null&&c!==void 0?c:-1/0,f.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var Z="Sortable"+new Date().getTime();function ln(){var i=[],e;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(a){if(!(y(a,"display")==="none"||a===E.ghost)){i.push({target:a,rect:F(a)});var r=se({},i[i.length-1].rect);if(a.thisAnimationDuration){var s=Ve(a,!0);s&&(r.top-=s.f,r.left-=s.e)}a.fromRect=r}})}},addAnimationState:function(n){i.push(n)},removeAnimationState:function(n){i.splice(rn(i,{target:n}),1)},animateAll:function(n){var a=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var r=!1,s=0;i.forEach(function(u){var c=0,f=u.target,v=f.fromRect,g=F(f),V=f.prevFromRect,I=f.prevToRect,D=u.rect,_=Ve(f,!0);_&&(g.top-=_.f,g.left-=_.e),f.toRect=g,f.thisAnimationDuration&&ct(V,g)&&!ct(v,g)&&(D.top-g.top)/(D.left-g.left)===(v.top-g.top)/(v.left-g.left)&&(c=cn(D,V,I,a.options)),ct(g,v)||(f.prevFromRect=v,f.prevToRect=g,c||(c=a.options.animation),a.animate(f,D,g,c)),c&&(r=!0,s=Math.max(s,c),clearTimeout(f.animationResetTimer),f.animationResetTimer=setTimeout(function(){f.animationTime=0,f.prevFromRect=null,f.fromRect=null,f.prevToRect=null,f.thisAnimationDuration=null},c),f.thisAnimationDuration=c)}),clearTimeout(e),r?e=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),i=[]},animate:function(n,a,r,s){if(s){y(n,"transition",""),y(n,"transform","");var u=Ve(this.el),c=u&&u.a,f=u&&u.d,v=(a.left-r.left)/(c||1),g=(a.top-r.top)/(f||1);n.animatingX=!!v,n.animatingY=!!g,y(n,"transform","translate3d("+v+"px,"+g+"px,0)"),this.forRepaintDummy=un(n),y(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),y(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){y(n,"transition",""),y(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function un(i){return i.offsetWidth}function cn(i,e,t,n){return Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*n.animation}var _e=[],ft={initializeByDefault:!0},qe={mount:function(e){for(var t in ft)ft.hasOwnProperty(t)&&!(t in e)&&(e[t]=ft[t]);_e.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),_e.push(e)},pluginEvent:function(e,t,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var r=e+"Global";_e.forEach(function(s){t[s.pluginName]&&(t[s.pluginName][r]&&t[s.pluginName][r](se({sortable:t},n)),t.options[s.pluginName]&&t[s.pluginName][e]&&t[s.pluginName][e](se({sortable:t},n)))})},initializePlugins:function(e,t,n,a){_e.forEach(function(u){var c=u.pluginName;if(!(!e.options[c]&&!u.initializeByDefault)){var f=new u(e,t,e.options);f.sortable=e,f.options=e.options,e[c]=f,ue(n,f.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var s=this.modifyOption(e,r,e.options[r]);typeof s<"u"&&(e.options[r]=s)}},getEventProperties:function(e,t){var n={};return _e.forEach(function(a){typeof a.eventProperties=="function"&&ue(n,a.eventProperties.call(t[a.pluginName],e))}),n},modifyOption:function(e,t,n){var a;return _e.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[t]=="function"&&(a=r.optionListeners[t].call(e[r.pluginName],n))}),a}};function fn(i){var e=i.sortable,t=i.rootEl,n=i.name,a=i.targetEl,r=i.cloneEl,s=i.toEl,u=i.fromEl,c=i.oldIndex,f=i.newIndex,v=i.oldDraggableIndex,g=i.newDraggableIndex,V=i.originalEvent,I=i.putSortable,D=i.extraEventProperties;if(e=e||t&&t[Z],!!e){var _,d=e.options,te="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!ce&&!Be?_=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(_=document.createEvent("Event"),_.initEvent(n,!0,!0)),_.to=s||t,_.from=u||t,_.item=a||t,_.clone=r,_.oldIndex=c,_.newIndex=f,_.oldDraggableIndex=v,_.newDraggableIndex=g,_.originalEvent=V,_.pullMode=I?I.lastPutMode:void 0;var C=se(se({},D),qe.getEventProperties(n,e));for(var U in C)_[U]=C[U];t&&t.dispatchEvent(_),d[te]&&d[te].call(e,_)}}var dn=["evt"],j=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.evt,r=tn(n,dn);qe.pluginEvent.bind(E)(e,t,se({dragEl:p,parentEl:R,ghostEl:T,rootEl:L,nextEl:Ee,lastDownEl:ze,cloneEl:N,cloneHidden:pe,dragStarted:Ae,putSortable:H,activeSortable:E.active,originalEvent:a,oldIndex:Ie,oldDraggableIndex:ke,newIndex:K,newDraggableIndex:he,hideGhostForTarget:Ut,unhideGhostForTarget:zt,cloneNowHidden:function(){pe=!0},cloneNowShown:function(){pe=!1},dispatchSortableEvent:function(u){$({sortable:t,name:u,originalEvent:a})}},r))};function $(i){fn(se({putSortable:H,cloneEl:N,targetEl:p,rootEl:L,oldIndex:Ie,oldDraggableIndex:ke,newIndex:K,newDraggableIndex:he},i))}var p,R,T,L,Ee,ze,N,pe,Ie,K,ke,he,He,H,Ce=!1,Je=!1,et=[],be,ie,dt,ht,Pt,Lt,Ae,Te,Me,Fe=!1,We=!1,Ge,W,pt=[],bt=!1,tt=[],it=typeof document<"u",$e=kt,Nt=Be||ce?"cssFloat":"float",hn=it&&!Mt&&!kt&&"draggable"in document.createElement("div"),Wt=function(){if(it){if(ce)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),$t=function(e,t){var n=y(e),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=Oe(e,0,t),s=Oe(e,1,t),u=r&&y(r),c=s&&y(s),f=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+F(r).width,v=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+F(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&u.float&&u.float!=="none"){var g=u.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===g)?"vertical":"horizontal"}return r&&(u.display==="block"||u.display==="flex"||u.display==="table"||u.display==="grid"||f>=a&&n[Nt]==="none"||s&&n[Nt]==="none"&&f+v>a)?"vertical":"horizontal"},pn=function(e,t,n){var a=n?e.left:e.top,r=n?e.right:e.bottom,s=n?e.width:e.height,u=n?t.left:t.top,c=n?t.right:t.bottom,f=n?t.width:t.height;return a===u||r===c||a+s/2===u+f/2},gn=function(e,t){var n;return et.some(function(a){var r=a[Z].options.emptyInsertThreshold;if(!(!r||Dt(a))){var s=F(a),u=e>=s.left-r&&e<=s.right+r,c=t>=s.top-r&&t<=s.bottom+r;if(u&&c)return n=a}}),n},jt=function(e){function t(r,s){return function(u,c,f,v){var g=u.options.group.name&&c.options.group.name&&u.options.group.name===c.options.group.name;if(r==null&&(s||g))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return t(r(u,c,f,v),s)(u,c,f,v);var V=(s?u:c).options.group.name;return r===!0||typeof r=="string"&&r===V||r.join&&r.indexOf(V)>-1}}var n={},a=e.group;(!a||Ue(a)!="object")&&(a={name:a}),n.name=a.name,n.checkPull=t(a.pull,!0),n.checkPut=t(a.put),n.revertClone=a.revertClone,e.group=n},Ut=function(){!Wt&&T&&y(T,"display","none")},zt=function(){!Wt&&T&&y(T,"display","")};it&&!Mt&&document.addEventListener("click",function(i){if(Je)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),Je=!1,!1},!0);var ye=function(e){if(p){e=e.touches?e.touches[0]:e;var t=gn(e.clientX,e.clientY);if(t){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Z]._onDragOver(n)}}},mn=function(e){p&&p.parentNode[Z]._isOutsideThisEl(e.target)};function E(i,e){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=e=ue({},e),i[Z]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return $t(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,u){s.setData("Text",u.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:E.supportPointer!==!1&&"PointerEvent"in window&&!Ne,emptyInsertThreshold:5};qe.initializePlugins(this,i,t);for(var n in t)!(n in e)&&(e[n]=t[n]);jt(e);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=e.forceFallback?!1:hn,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?A(i,"pointerdown",this._onTapStart):(A(i,"mousedown",this._onTapStart),A(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(A(i,"dragover",this),A(i,"dragenter",this)),et.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),ue(this,ln())}E.prototype={constructor:E,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Te=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,p):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,a=this.options,r=a.preventOnFilter,s=e.type,u=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,c=(u||e).target,f=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||c,v=a.filter;if(_n(n),!p&&!(/mousedown|pointerdown/.test(s)&&e.button!==0||a.disabled)&&!f.isContentEditable&&!(!this.nativeDraggable&&Ne&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=ae(c,a.draggable,n,!1),!(c&&c.animated)&&ze!==c)){if(Ie=ee(c),ke=ee(c,a.draggable),typeof v=="function"){if(v.call(this,e,c,this)){$({sortable:t,rootEl:f,name:"filter",targetEl:c,toEl:n,fromEl:n}),j("filter",t,{evt:e}),r&&e.cancelable&&e.preventDefault();return}}else if(v&&(v=v.split(",").some(function(g){if(g=ae(f,g.trim(),n,!1),g)return $({sortable:t,rootEl:g,name:"filter",targetEl:c,fromEl:n,toEl:n}),j("filter",t,{evt:e}),!0}),v)){r&&e.cancelable&&e.preventDefault();return}a.handle&&!ae(f,a.handle,n,!1)||this._prepareDragStart(e,u,c)}}},_prepareDragStart:function(e,t,n){var a=this,r=a.el,s=a.options,u=r.ownerDocument,c;if(n&&!p&&n.parentNode===r){var f=F(n);if(L=r,p=n,R=p.parentNode,Ee=p.nextSibling,ze=n,He=s.group,E.dragged=p,be={target:p,clientX:(t||e).clientX,clientY:(t||e).clientY},Pt=be.clientX-f.left,Lt=be.clientY-f.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,p.style["will-change"]="all",c=function(){if(j("delayEnded",a,{evt:e}),E.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Vt&&a.nativeDraggable&&(p.draggable=!0),a._triggerDragStart(e,t),$({sortable:a,name:"choose",originalEvent:e}),G(p,s.chosenClass,!0)},s.ignore.split(",").forEach(function(v){Bt(p,v.trim(),gt)}),A(u,"dragover",ye),A(u,"mousemove",ye),A(u,"touchmove",ye),A(u,"mouseup",a._onDrop),A(u,"touchend",a._onDrop),A(u,"touchcancel",a._onDrop),Vt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,p.draggable=!0),j("delayStart",this,{evt:e}),s.delay&&(!s.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Be||ce))){if(E.eventCanceled){this._onDrop();return}A(u,"mouseup",a._disableDelayedDrag),A(u,"touchend",a._disableDelayedDrag),A(u,"touchcancel",a._disableDelayedDrag),A(u,"mousemove",a._delayedDragTouchMoveHandler),A(u,"touchmove",a._delayedDragTouchMoveHandler),s.supportPointer&&A(u,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(c,s.delay)}else c()}},_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(){p&>(p),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;O(e,"mouseup",this._disableDelayedDrag),O(e,"touchend",this._disableDelayedDrag),O(e,"touchcancel",this._disableDelayedDrag),O(e,"mousemove",this._delayedDragTouchMoveHandler),O(e,"touchmove",this._delayedDragTouchMoveHandler),O(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?A(document,"pointermove",this._onTouchMove):t?A(document,"touchmove",this._onTouchMove):A(document,"mousemove",this._onTouchMove):(A(p,"dragend",this),A(L,"dragstart",this._onDragStart));try{document.selection?Ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Ce=!1,L&&p){j("dragStarted",this,{evt:t}),this.nativeDraggable&&A(document,"dragover",mn);var n=this.options;!e&&G(p,n.dragClass,!1),G(p,n.ghostClass,!0),E.active=this,e&&this._appendGhost(),$({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ie){this._lastX=ie.clientX,this._lastY=ie.clientY,Ut();for(var e=document.elementFromPoint(ie.clientX,ie.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ie.clientX,ie.clientY),e!==t);)t=e;if(p.parentNode[Z]._isOutsideThisEl(e),t)do{if(t[Z]){var n=void 0;if(n=t[Z]._onDragOver({clientX:ie.clientX,clientY:ie.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);zt()}},_onTouchMove:function(e){if(be){var t=this.options,n=t.fallbackTolerance,a=t.fallbackOffset,r=e.touches?e.touches[0]:e,s=T&&Ve(T,!0),u=T&&s&&s.a,c=T&&s&&s.d,f=$e&&W&&At(W),v=(r.clientX-be.clientX+a.x)/(u||1)+(f?f[0]-pt[0]:0)/(u||1),g=(r.clientY-be.clientY+a.y)/(c||1)+(f?f[1]-pt[1]:0)/(c||1);if(!E.active&&!Ce){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(T){s?(s.e+=v-(dt||0),s.f+=g-(ht||0)):s={a:1,b:0,c:0,d:1,e:v,f:g};var V="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");y(T,"webkitTransform",V),y(T,"mozTransform",V),y(T,"msTransform",V),y(T,"transform",V),dt=v,ht=g,ie=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!T){var e=this.options.fallbackOnBody?document.body:L,t=F(p,!0,$e,!0,e),n=this.options;if($e){for(W=e;y(W,"position")==="static"&&y(W,"transform")==="none"&&W!==document;)W=W.parentNode;W!==document.body&&W!==document.documentElement?(W===document&&(W=oe()),t.top+=W.scrollTop,t.left+=W.scrollLeft):W=oe(),pt=At(W)}T=p.cloneNode(!0),G(T,n.ghostClass,!1),G(T,n.fallbackClass,!0),G(T,n.dragClass,!0),y(T,"transition",""),y(T,"transform",""),y(T,"box-sizing","border-box"),y(T,"margin",0),y(T,"top",t.top),y(T,"left",t.left),y(T,"width",t.width),y(T,"height",t.height),y(T,"opacity","0.8"),y(T,"position",$e?"absolute":"fixed"),y(T,"zIndex","100000"),y(T,"pointerEvents","none"),E.ghost=T,e.appendChild(T),y(T,"transform-origin",Pt/parseInt(T.style.width)*100+"% "+Lt/parseInt(T.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,a=e.dataTransfer,r=n.options;if(j("dragStart",this,{evt:e}),E.eventCanceled){this._onDrop();return}j("setupClone",this),E.eventCanceled||(N=Yt(p),N.removeAttribute("id"),N.draggable=!1,N.style["will-change"]="",this._hideClone(),G(N,this.options.chosenClass,!1),E.clone=N),n.cloneId=Ke(function(){j("clone",n),!E.eventCanceled&&(n.options.removeCloneOnHide||L.insertBefore(N,p),n._hideClone(),$({sortable:n,name:"clone"}))}),!t&&G(p,r.dragClass,!0),t?(Je=!0,n._loopId=setInterval(n._emulateDragOver,50)):(O(document,"mouseup",n._onDrop),O(document,"touchend",n._onDrop),O(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",r.setData&&r.setData.call(n,a,p)),A(document,"drop",n),y(p,"transform","translateZ(0)")),Ce=!0,n._dragStartId=Ke(n._dragStarted.bind(n,t,e)),A(document,"selectstart",n),Ae=!0,Ne&&y(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,a,r,s,u=this.options,c=u.group,f=E.active,v=He===c,g=u.sort,V=H||f,I,D=this,_=!1;if(bt)return;function d(we,at){j(we,D,se({evt:e,isOwner:v,axis:I?"vertical":"horizontal",revert:s,dragRect:a,targetRect:r,canSort:g,fromSortable:V,target:n,completed:C,onMove:function(De,ot){return je(L,t,p,a,De,F(De),e,ot)},changed:U},at))}function te(){d("dragOverAnimationCapture"),D.captureAnimationState(),D!==V&&V.captureAnimationState()}function C(we){return d("dragOverCompleted",{insertion:we}),we&&(v?f._hideClone():f._showClone(D),D!==V&&(G(p,H?H.options.ghostClass:f.options.ghostClass,!1),G(p,u.ghostClass,!0)),H!==D&&D!==E.active?H=D:D===E.active&&H&&(H=null),V===D&&(D._ignoreWhileAnimating=n),D.animateAll(function(){d("dragOverAnimationComplete"),D._ignoreWhileAnimating=null}),D!==V&&(V.animateAll(),V._ignoreWhileAnimating=null)),(n===p&&!p.animated||n===t&&!n.animated)&&(Te=null),!u.dragoverBubble&&!e.rootEl&&n!==document&&(p.parentNode[Z]._isOutsideThisEl(e.target),!we&&ye(e)),!u.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),_=!0}function U(){K=ee(p),he=ee(p,u.draggable),$({sortable:D,name:"change",toEl:t,newIndex:K,newDraggableIndex:he,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=ae(n,u.draggable,t,!0),d("dragOver"),E.eventCanceled)return _;if(p.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||D._ignoreWhileAnimating===n)return C(!1);if(Je=!1,f&&!u.disabled&&(v?g||(s=R!==L):H===this||(this.lastPutMode=He.checkPull(this,f,p,e))&&c.checkPut(this,f,p,e))){if(I=this._getDirection(e,n)==="vertical",a=F(p),d("dragOverValid"),E.eventCanceled)return _;if(s)return R=L,te(),this._hideClone(),d("revert"),E.eventCanceled||(Ee?L.insertBefore(p,Ee):L.appendChild(p)),C(!0);var B=Dt(t,u.draggable);if(!B||yn(e,I,this)&&!B.animated){if(B===p)return C(!1);if(B&&t===e.target&&(n=B),n&&(r=F(n)),je(L,t,p,a,n,r,e,!!n)!==!1)return te(),B&&B.nextSibling?t.insertBefore(p,B.nextSibling):t.appendChild(p),R=t,U(),C(!0)}else if(B&&bn(e,I,this)){var q=Oe(t,0,u,!0);if(q===p)return C(!1);if(n=q,r=F(n),je(L,t,p,a,n,r,e,!1)!==!1)return te(),t.insertBefore(p,q),R=t,U(),C(!0)}else if(n.parentNode===t){r=F(n);var k=0,re,fe=p.parentNode!==t,X=!pn(p.animated&&p.toRect||a,n.animated&&n.toRect||r,I),me=I?"top":"left",ne=xt(n,"top","top")||xt(p,"top","top"),ve=ne?ne.scrollTop:void 0;Te!==n&&(re=r[me],Fe=!1,We=!X&&u.invertSwap||fe),k=En(e,n,r,I,X?1:u.swapThreshold,u.invertedSwapThreshold==null?u.swapThreshold:u.invertedSwapThreshold,We,Te===n);var Q;if(k!==0){var z=ee(p);do z-=k,Q=R.children[z];while(Q&&(y(Q,"display")==="none"||Q===T))}if(k===0||Q===n)return C(!1);Te=n,Me=k;var de=n.nextElementSibling,J=!1;J=k===1;var Se=je(L,t,p,a,n,r,e,J);if(Se!==!1)return(Se===1||Se===-1)&&(J=Se===1),bt=!0,setTimeout(wn,30),te(),J&&!de?t.appendChild(p):n.parentNode.insertBefore(p,J?de:n),ne&&Xt(ne,0,ve-ne.scrollTop),R=p.parentNode,re!==void 0&&!We&&(Ge=Math.abs(re-F(n)[me])),U(),C(!0)}if(t.contains(p))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){O(document,"mousemove",this._onTouchMove),O(document,"touchmove",this._onTouchMove),O(document,"pointermove",this._onTouchMove),O(document,"dragover",ye),O(document,"mousemove",ye),O(document,"touchmove",ye)},_offUpEvents:function(){var e=this.el.ownerDocument;O(e,"mouseup",this._onDrop),O(e,"touchend",this._onDrop),O(e,"pointerup",this._onDrop),O(e,"touchcancel",this._onDrop),O(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(K=ee(p),he=ee(p,n.draggable),j("drop",this,{evt:e}),R=p&&p.parentNode,K=ee(p),he=ee(p,n.draggable),E.eventCanceled){this._nulling();return}Ce=!1,We=!1,Fe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),yt(this.cloneId),yt(this._dragStartId),this.nativeDraggable&&(O(document,"drop",this),O(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ne&&y(document.body,"user-select",""),y(p,"transform",""),e&&(Ae&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),T&&T.parentNode&&T.parentNode.removeChild(T),(L===R||H&&H.lastPutMode!=="clone")&&N&&N.parentNode&&N.parentNode.removeChild(N),p&&(this.nativeDraggable&&O(p,"dragend",this),gt(p),p.style["will-change"]="",Ae&&!Ce&&G(p,H?H.options.ghostClass:this.options.ghostClass,!1),G(p,this.options.chosenClass,!1),$({sortable:this,name:"unchoose",toEl:R,newIndex:null,newDraggableIndex:null,originalEvent:e}),L!==R?(K>=0&&($({rootEl:R,name:"add",toEl:R,fromEl:L,originalEvent:e}),$({sortable:this,name:"remove",toEl:R,originalEvent:e}),$({rootEl:R,name:"sort",toEl:R,fromEl:L,originalEvent:e}),$({sortable:this,name:"sort",toEl:R,originalEvent:e})),H&&H.save()):K!==Ie&&K>=0&&($({sortable:this,name:"update",toEl:R,originalEvent:e}),$({sortable:this,name:"sort",toEl:R,originalEvent:e})),E.active&&((K==null||K===-1)&&(K=Ie,he=ke),$({sortable:this,name:"end",toEl:R,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){j("nulling",this),L=p=R=T=Ee=N=ze=pe=be=ie=Ae=K=he=Ie=ke=Te=Me=H=He=E.dragged=E.ghost=E.clone=E.active=null,tt.forEach(function(e){e.checked=!0}),tt.length=dt=ht=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":p&&(this._onDragOver(e),vn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,a=0,r=n.length,s=this.options;a<r;a++)t=n[a],ae(t,s.draggable,this.el,!1)&&e.push(t.getAttribute(s.dataIdAttr)||Dn(t));return e},sort:function(e,t){var n={},a=this.el;this.toArray().forEach(function(r,s){var u=a.children[s];ae(u,this.options.draggable,a,!1)&&(n[r]=u)},this),t&&this.captureAnimationState(),e.forEach(function(r){n[r]&&(a.removeChild(n[r]),a.appendChild(n[r]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return ae(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var a=qe.modifyOption(this,e,t);typeof a<"u"?n[e]=a:n[e]=t,e==="group"&&jt(n)},destroy:function(){j("destroy",this);var e=this.el;e[Z]=null,O(e,"mousedown",this._onTapStart),O(e,"touchstart",this._onTapStart),O(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(O(e,"dragover",this),O(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),et.splice(et.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!pe){if(j("hideClone",this),E.eventCanceled)return;y(N,"display","none"),this.options.removeCloneOnHide&&N.parentNode&&N.parentNode.removeChild(N),pe=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(pe){if(j("showClone",this),E.eventCanceled)return;p.parentNode==L&&!this.options.group.revertClone?L.insertBefore(N,p):Ee?L.insertBefore(N,Ee):L.appendChild(N),this.options.group.revertClone&&this.animate(p,N),y(N,"display",""),pe=!1}}};function vn(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function je(i,e,t,n,a,r,s,u){var c,f=i[Z],v=f.options.onMove,g;return window.CustomEvent&&!ce&&!Be?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=e,c.from=i,c.dragged=t,c.draggedRect=n,c.related=a||e,c.relatedRect=r||F(e),c.willInsertAfter=u,c.originalEvent=s,i.dispatchEvent(c),v&&(g=v.call(f,c,s)),g}function gt(i){i.draggable=!1}function wn(){bt=!1}function bn(i,e,t){var n=F(Oe(t.el,0,t.options,!0)),a=Ht(t.el,t.options,T),r=10;return e?i.clientX<a.left-r||i.clientY<n.top&&i.clientX<n.right:i.clientY<a.top-r||i.clientY<n.bottom&&i.clientX<n.left}function yn(i,e,t){var n=F(Dt(t.el,t.options.draggable)),a=Ht(t.el,t.options,T),r=10;return e?i.clientX>a.right+r||i.clientY>n.bottom&&i.clientX>n.left:i.clientY>a.bottom+r||i.clientX>n.right&&i.clientY>n.top}function En(i,e,t,n,a,r,s,u){var c=n?i.clientY:i.clientX,f=n?t.height:t.width,v=n?t.top:t.left,g=n?t.bottom:t.right,V=!1;if(!s){if(u&&Ge<f*a){if(!Fe&&(Me===1?c>v+f*r/2:c<g-f*r/2)&&(Fe=!0),Fe)V=!0;else if(Me===1?c<v+Ge:c>g-Ge)return-Me}else if(c>v+f*(1-a)/2&&c<g-f*(1-a)/2)return Sn(e)}return V=V||s,V&&(c<v+f*r/2||c>g-f*r/2)?c>v+f/2?1:-1:0}function Sn(i){return ee(p)<ee(i)?1:-1}function Dn(i){for(var e=i.tagName+i.className+i.src+i.href+i.textContent,t=e.length,n=0;t--;)n+=e.charCodeAt(t);return n.toString(36)}function _n(i){tt.length=0;for(var e=i.getElementsByTagName("input"),t=e.length;t--;){var n=e[t];n.checked&&tt.push(n)}}function Ke(i){return setTimeout(i,0)}function yt(i){return clearTimeout(i)}it&&A(document,"touchmove",function(i){(E.active||Ce)&&i.cancelable&&i.preventDefault()});E.utils={on:A,off:O,css:y,find:Bt,is:function(e,t){return!!ae(e,t,e,!1)},extend:on,throttle:qt,closest:ae,toggleClass:G,clone:Yt,index:ee,nextTick:Ke,cancelNextTick:yt,detectDirection:$t,getChild:Oe};E.get=function(i){return i[Z]};E.mount=function(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(E.utils=se(se({},E.utils),n.utils)),qe.mount(n)})};E.create=function(i,e){return new E(i,e)};E.version=nn;var M=[],Pe,Et,St=!1,mt,vt,nt,Le;function Tn(){function i(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return i.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):this.options.supportPointer?A(document,"pointermove",this._handleFallbackAutoScroll):n.touches?A(document,"touchmove",this._handleFallbackAutoScroll):A(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?O(document,"dragover",this._handleAutoScroll):(O(document,"pointermove",this._handleFallbackAutoScroll),O(document,"touchmove",this._handleFallbackAutoScroll),O(document,"mousemove",this._handleFallbackAutoScroll)),Rt(),Ze(),sn()},nulling:function(){nt=Et=Pe=St=Le=mt=vt=null,M.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var a=this,r=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,u=document.elementFromPoint(r,s);if(nt=t,n||this.options.forceAutoScrollFallback||Be||ce||Ne){wt(t,this.options,u,n);var c=ge(u,!0);St&&(!Le||r!==mt||s!==vt)&&(Le&&Rt(),Le=setInterval(function(){var f=ge(document.elementFromPoint(r,s),!0);f!==c&&(c=f,Ze()),wt(t,a.options,f,n)},10),mt=r,vt=s)}else{if(!this.options.bubbleScroll||ge(u,!0)===oe()){Ze();return}wt(t,this.options,ge(u,!1),!1)}}},ue(i,{pluginName:"scroll",initializeByDefault:!0})}function Ze(){M.forEach(function(i){clearInterval(i.pid)}),M=[]}function Rt(){clearInterval(Le)}var wt=qt(function(i,e,t,n){if(e.scroll){var a=(i.touches?i.touches[0]:i).clientX,r=(i.touches?i.touches[0]:i).clientY,s=e.scrollSensitivity,u=e.scrollSpeed,c=oe(),f=!1,v;Et!==t&&(Et=t,Ze(),Pe=e.scroll,v=e.scrollFn,Pe===!0&&(Pe=ge(t,!0)));var g=0,V=Pe;do{var I=V,D=F(I),_=D.top,d=D.bottom,te=D.left,C=D.right,U=D.width,B=D.height,q=void 0,k=void 0,re=I.scrollWidth,fe=I.scrollHeight,X=y(I),me=I.scrollLeft,ne=I.scrollTop;I===c?(q=U<re&&(X.overflowX==="auto"||X.overflowX==="scroll"||X.overflowX==="visible"),k=B<fe&&(X.overflowY==="auto"||X.overflowY==="scroll"||X.overflowY==="visible")):(q=U<re&&(X.overflowX==="auto"||X.overflowX==="scroll"),k=B<fe&&(X.overflowY==="auto"||X.overflowY==="scroll"));var ve=q&&(Math.abs(C-a)<=s&&me+U<re)-(Math.abs(te-a)<=s&&!!me),Q=k&&(Math.abs(d-r)<=s&&ne+B<fe)-(Math.abs(_-r)<=s&&!!ne);if(!M[g])for(var z=0;z<=g;z++)M[z]||(M[z]={});(M[g].vx!=ve||M[g].vy!=Q||M[g].el!==I)&&(M[g].el=I,M[g].vx=ve,M[g].vy=Q,clearInterval(M[g].pid),(ve!=0||Q!=0)&&(f=!0,M[g].pid=setInterval((function(){n&&this.layer===0&&E.active._onTouchMove(nt);var de=M[this.layer].vy?M[this.layer].vy*u:0,J=M[this.layer].vx?M[this.layer].vx*u:0;typeof v=="function"&&v.call(E.dragged.parentNode[Z],J,de,i,nt,M[this.layer].el)!=="continue"||Xt(M[this.layer].el,J,de)}).bind({layer:g}),24))),g++}while(e.bubbleScroll&&V!==c&&(V=ge(V,!1)));St=f}},30),Gt=function(e){var t=e.originalEvent,n=e.putSortable,a=e.dragEl,r=e.activeSortable,s=e.dispatchSortableEvent,u=e.hideGhostForTarget,c=e.unhideGhostForTarget;if(t){var f=n||r;u();var v=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,g=document.elementFromPoint(v.clientX,v.clientY);c(),f&&!f.el.contains(g)&&(s("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function _t(){}_t.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 a=Oe(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(t,a):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Gt};ue(_t,{pluginName:"revertOnSpill"});function Tt(){}Tt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,a=n||this.sortable;a.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),a.animateAll()},drop:Gt};ue(Tt,{pluginName:"removeOnSpill"});E.mount(new Tn);E.mount(Tt,_t);const Cn=["data-url","onContextmenu","onMousedown","onClick"],In={key:0,class:"iconfont icon-webicon318 layout-navbars-tagsview-ul-li-iconfont"},Vn=m.defineComponent({name:"layoutTagsView"}),On=m.defineComponent({...Vn,setup(i){const e=m.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./contextmenu-DXs1dJQY.js"))),t=m.ref([]),n=m.ref(),a=m.ref(),r=m.ref(),s=x.useTagsViewRoutes(),u=x.useThemeConfig(),c=x.useTagsViewRoutes(),f=x.useRoutesList(),{themeConfig:v}=x.storeToRefs(u),{tagsViewRoutes:g}=x.storeToRefs(c),{routesList:V}=x.storeToRefs(f),I=x.useKeepALiveNames(),D=x.useRoute(),_=x.useRouter(),d=m.reactive({routeActive:"",routePath:D.path,dropdown:{x:"",y:""},sortable:"",tagsRefsIndex:0,tagsViewList:[],tagsViewRoutesList:[]}),te=m.computed(()=>v.value.tagsStyle),C=m.computed(()=>v.value),U=m.computed(()=>l=>x.other.setTagsViewNameI18n(l)),B=l=>C.value.isShareTagsView?l.path===d.routePath:l.query&&Object.keys(l.query).length||l.params&&Object.keys(l.params).length?l.url?l.url===d.routeActive:l.path===d.routeActive:l.path===d.routePath,q=l=>{x.Session.set("tagsViewList",l)},k=l=>{var b;let o=l.query&&Object.keys(l.query).length>0?l.query:l.params;if(!o||Object.keys(o).length<=0)return l.path;let h="";for(let w in o)h+=o[w];return`${(b=l.meta)!=null&&b.isDynamic?l.meta.isDynamicPath:l.path}-${h}`},re=async(l,o)=>{var w,P;let h=(w=o==null?void 0:o.meta)!=null&&w.isDynamic?o.meta.isDynamicPath:l;if(d.tagsViewList.filter(S=>{var Y,xe;return S.path===h&&x.isObjectValueEqual((Y=o==null?void 0:o.meta)!=null&&Y.isDynamic?S.params?S.params:null:S.query?S.query:null,(xe=o==null?void 0:o.meta)!=null&&xe.isDynamic?o!=null&&o.params?o==null?void 0:o.params:null:o!=null&&o.query?o==null?void 0:o.query:null)}).length<=0){let S=d.tagsViewRoutesList.find(Y=>Y.path===h);if(!S||S.meta.isAffix||S.meta.isLink&&!S.meta.isIframe)return!1;(P=o==null?void 0:o.meta)!=null&&P.isDynamic?S.params=o.params:S.query=o==null?void 0:o.query,S.url=k(S),d.tagsViewList.push({...S}),await I.addCachedView(S),q(d.tagsViewList)}},fe=(l,o)=>{var b;let h=(b=o==null?void 0:o.meta)!=null&&b.isDynamic?o.meta.isDynamicPath:l;d.tagsViewList.forEach(w=>{var P,S,Y;w.path===h&&!x.isObjectValueEqual((P=o==null?void 0:o.meta)!=null&&P.isDynamic?w.params?w.params:null:w.query?w.query:null,(S=o==null?void 0:o.meta)!=null&&S.isDynamic?o!=null&&o.params?o==null?void 0:o.params:null:o!=null&&o.query?o==null?void 0:o.query:null)&&((Y=o==null?void 0:o.meta)!=null&&Y.isDynamic?w.params=o.params:w.query=o==null?void 0:o.query,w.url=k(w),q(d.tagsViewList))})},X=(l,o)=>{m.nextTick(async()=>{var b,w,P;let h;if((b=o==null?void 0:o.meta)!=null&&b.isDynamic){if(C.value.isShareTagsView?await fe(l,o):await re(l,o),d.tagsViewList.some(S=>{var Y;return S.path===((Y=o==null?void 0:o.meta)==null?void 0:Y.isDynamicPath)}))return q(d.tagsViewList),!1;h=d.tagsViewRoutesList.find(S=>{var Y;return S.path===((Y=o==null?void 0:o.meta)==null?void 0:Y.isDynamicPath)})}else{if(C.value.isShareTagsView?await fe(l,o):await re(l,o),d.tagsViewList.some(S=>S.path===l))return q(d.tagsViewList),!1;h=d.tagsViewRoutesList.find(S=>S.path===l)}if(!h||(w=h==null?void 0:h.meta)!=null&&w.isLink&&!h.meta.isIframe)return!1;(P=o==null?void 0:o.meta)!=null&&P.isDynamic?h.params=o!=null&&o.params?o==null?void 0:o.params:D.params:h.query=o!=null&&o.query?o==null?void 0:o.query:D.query,h.url=k(h),await I.addCachedView(h),await d.tagsViewList.push({...h}),await q(d.tagsViewList)})},me=()=>{m.nextTick(()=>{if(t.value.length<=0)return!1;let l=t.value[d.tagsRefsIndex],o=d.tagsRefsIndex,h=t.value.length,b=t.value[0],w=t.value[t.value.length-1],P=n.value.$refs.wrapRef,S=P.scrollWidth,Y=P.offsetWidth,xe=P.scrollLeft,ut=t.value[d.tagsRefsIndex-1],Ct=t.value[d.tagsRefsIndex+1],Xe=0,Ye=0;l===b?P.scrollLeft=0:l===w?P.scrollLeft=S-Y:(o===0?Xe=b.offsetLeft-5:Xe=(ut==null?void 0:ut.offsetLeft)-5,o===h?Ye=w.offsetLeft+w.offsetWidth+5:Ye=Ct.offsetLeft+Ct.offsetWidth+5,Ye>xe+Y?P.scrollLeft=Ye-Y:Xe<xe&&(P.scrollLeft=Xe)),n.value.update()})},ne=l=>{m.nextTick(async()=>{let o=await d.tagsViewList;d.tagsRefsIndex=o.findIndex(h=>C.value.isShareTagsView?h.path===l:h.url===l),me()})},ve=async()=>{x.Session.get("tagsViewList")&&C.value.isCacheTagsView?d.tagsViewList=await x.Session.get("tagsViewList"):(await d.tagsViewRoutesList.map(l=>{var o;(o=l.meta)!=null&&o.isAffix&&!l.meta.isHide&&(l.url=k(l),d.tagsViewList.push({...l}),I.addCachedView(l))}),await X(D.path,D)),ne(C.value.isShareTagsView?d.routePath:d.routeActive)},Q=async()=>{d.routeActive=await k(D),d.routePath=await D.meta.isDynamic?D.meta.isDynamicPath:D.path,d.tagsViewList=[],d.tagsViewRoutesList=g.value,ve()},z=l=>{var b,w;let o=l.query&&Object.keys(l.query).length>0?l.query:l.params;if(!o)return"";let h="";for(let[P,S]of Object.entries(o))(b=l.meta)!=null&&b.isDynamic?h+=`/${S}`:h+=`&${P}=${S}`;return(w=l.meta)!=null&&w.isDynamic?l.isFnClick?decodeURI(l.path):`${l.path.split(":")[0]}${h.replace(/^\//,"")}`:`${l.path}${h.replace(/^&/,"?")}`},de=async l=>{var b;const o=decodeURI(l);let h={};if(d.tagsViewList.forEach(w=>{w.transUrl=z(w),w.transUrl?w.transUrl===z(w)&&(h=w):w.path===o&&(h=w)}),!h)return!1;await I.delCachedView(h),x.mittBus.emit("onTagsViewRefreshRouterView",l),(b=h.meta)!=null&&b.isKeepAlive&&I.addCachedView(h)},J=l=>{d.tagsViewList.map((o,h,b)=>{var w;(w=o.meta)!=null&&w.isAffix||(C.value.isShareTagsView?o.path===l:o.url===l)&&(I.delCachedView(o),d.tagsViewList.splice(h,1),setTimeout(()=>{(d.tagsViewList.length===h&&C.value.isShareTagsView?d.routePath===l:d.routeActive===l)?b[b.length-1].meta.isDynamic?h!==b.length?_.push({name:b[h].name,params:b[h].params}):_.push({name:b[b.length-1].name,params:b[b.length-1].params}):h!==b.length?_.push({path:b[h].path,query:b[h].query}):_.push({path:b[b.length-1].path,query:b[b.length-1].query}):(d.tagsViewList.length!==h&&C.value.isShareTagsView?d.routePath===l:d.routeActive===l)&&(b[h].meta.isDynamic?_.push({name:b[h].name,params:b[h].params}):_.push({path:b[h].path,query:b[h].query}))},0))}),q(d.tagsViewList)},Se=l=>{x.Session.get("tagsViewList")&&(d.tagsViewList=[],x.Session.get("tagsViewList").map(o=>{var h;(h=o.meta)!=null&&h.isAffix&&!o.meta.isHide&&(o.url=k(o),I.delOthersCachedViews(o),d.tagsViewList.push({...o}))}),X(l,D),q(d.tagsViewList))},we=()=>{x.Session.get("tagsViewList")&&(I.delAllCachedViews(),d.tagsViewList=[],x.Session.get("tagsViewList").map(l=>{var o;(o=l.meta)!=null&&o.isAffix&&!l.meta.isHide&&(l.url=k(l),d.tagsViewList.push({...l}),_.push({path:d.tagsViewList[d.tagsViewList.length-1].path}))}),q(d.tagsViewList))},at=async l=>{const o=d.tagsViewList.find(h=>C.value.isShareTagsView?h.path===l:h.url===l);o.meta.isDynamic?await _.push({name:o.name,params:o.params}):await _.push({name:o.name,query:o.query}),s.setCurrenFullscreen(!0)},rt=l=>{let o={};return d.tagsViewList.forEach(h=>{h.transUrl=z(h),h.transUrl?h.transUrl===z(h)&&h.transUrl===l.commonUrl&&(o=h):h.path===decodeURI(l.path)&&(o=h)}),o||null},De=async l=>{if(l.commonUrl=z(l),!rt(l))return x.ElMessage({type:"warning",message:"请正确输入路径及完整参数(query、params)"});const{path:o,name:h,params:b,query:w,meta:P,url:S}=rt(l);switch(l.contextMenuClickId){case 0:P.isDynamic?await _.push({name:h,params:b}):await _.push({path:o,query:w}),de(D.fullPath);break;case 1:J(C.value.isShareTagsView?o:S);break;case 2:P.isDynamic?await _.push({name:h,params:b}):await _.push({path:o,query:w}),Se(o);break;case 3:we();break;case 4:at(C.value.isShareTagsView?o:S);break}},ot=(l,o)=>{const{clientX:h,clientY:b}=o;d.dropdown.x=h,d.dropdown.y=b,a.value.openContextmenu(l)},Kt=(l,o)=>{var h;if(!((h=l.meta)!=null&&h.isAffix)&&o.button===1){const b=Object.assign({},{contextMenuClickId:1,...l});De(b)}},Zt=(l,o)=>{d.tagsRefsIndex=o,_.push(l),C.value.layout==="columns"&&(V.value.find(b=>b.path.indexOf(`/${l.path.split("/")[1]}`)>-1).children?C.value.isCollapse=!1:C.value.isCollapse=!0)},Qt=l=>{n.value.$refs.wrapRef.scrollLeft+=l.wheelDelta/4},st=async()=>{const l=document.querySelector(".layout-navbars-tagsview-ul");if(!l)return!1;d.sortable.el&&d.sortable.destroy(),d.sortable=E.create(l,{animation:300,dataIdAttr:"data-url",disabled:!C.value.isSortableTagsView,onEnd:()=>{const o=[];d.sortable.toArray().map(h=>{d.tagsViewList.map(b=>{b.url===h&&o.push({...b})})}),q(o)}})},lt=async()=>{await st(),x.other.isMobile()&&d.sortable.el&&d.sortable.destroy()};return m.onBeforeMount(()=>{lt(),window.addEventListener("resize",lt),x.mittBus.on("onCurrentContextmenuClick",l=>{l.isFnClick=!0,De(l)}),x.mittBus.on("openOrCloseSortable",()=>{st()}),x.mittBus.on("openShareTagsView",()=>{C.value.isShareTagsView&&(_.push("/home"),d.tagsViewList=[],d.tagsViewRoutesList.map(l=>{var o;(o=l.meta)!=null&&o.isAffix&&!l.meta.isHide&&(l.url=k(l),d.tagsViewList.push({...l}))}))})}),m.onUnmounted(()=>{x.mittBus.off("onCurrentContextmenuClick",()=>{}),x.mittBus.off("openOrCloseSortable",()=>{}),x.mittBus.off("openShareTagsView",()=>{}),window.removeEventListener("resize",lt)}),m.onBeforeUpdate(()=>{t.value=[]}),m.onMounted(()=>{Q(),st()}),x.onBeforeRouteUpdate(async l=>{d.routeActive=k(l),d.routePath=l.meta.isDynamic?l.meta.isDynamicPath:l.path,await X(l.path,l),ne(C.value.isShareTagsView?d.routePath:d.routeActive)}),m.watch(()=>g.value,l=>{if(l.length===d.tagsViewRoutesList.length)return!1;Q()},{deep:!0}),(l,o)=>{const h=m.resolveComponent("SvgIcon"),b=m.resolveComponent("el-scrollbar");return m.openBlock(),m.createElementBlock("div",{class:m.normalizeClass(["layout-navbars-tagsview",{"layout-navbars-tagsview-shadow":C.value.layout==="classic"}])},[m.createVNode(b,{ref_key:"scrollbarRef",ref:n,onWheel:m.withModifiers(Qt,["prevent"])},{default:m.withCtx(()=>[m.createElementVNode("ul",{class:m.normalizeClass(["layout-navbars-tagsview-ul",te.value]),ref_key:"tagsUlRef",ref:r},[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(d.tagsViewList,(w,P)=>(m.openBlock(),m.createElementBlock("li",{key:P,class:m.normalizeClass(["layout-navbars-tagsview-ul-li",{"is-active":B(w)}]),"data-url":w.url,onContextmenu:m.withModifiers(S=>ot(w,S),["prevent"]),onMousedown:S=>Kt(w,S),onClick:S=>Zt(w,P),ref_for:!0,ref:S=>{S&&(t.value[P]=S)}},[B(w)?(m.openBlock(),m.createElementBlock("i",In)):m.createCommentVNode("",!0),!B(w)&&C.value.isTagsviewIcon?(m.openBlock(),m.createBlock(h,{key:1,name:w.meta.icon,class:"pr5"},null,8,["name"])):m.createCommentVNode("",!0),m.createElementVNode("span",null,m.toDisplayString(U.value(w)),1),B(w)?(m.openBlock(),m.createElementBlock(m.Fragment,{key:2},[m.createVNode(h,{name:"ele-RefreshRight",class:"ml5 layout-navbars-tagsview-ul-li-refresh",onClick:o[0]||(o[0]=m.withModifiers(S=>de(l.$route.fullPath),["stop"]))}),w.meta.isAffix?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(h,{key:0,name:"ele-Close",class:"layout-navbars-tagsview-ul-li-icon layout-icon-active",onClick:m.withModifiers(S=>J(C.value.isShareTagsView?w.path:w.url),["stop"])},null,8,["onClick"]))],64)):m.createCommentVNode("",!0),w.meta.isAffix?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(h,{key:3,name:"ele-Close",class:"layout-navbars-tagsview-ul-li-icon layout-icon-three",onClick:m.withModifiers(S=>J(C.value.isShareTagsView?w.path:w.url),["stop"])},null,8,["onClick"]))],42,Cn))),128))],2)]),_:1},512),m.createVNode(m.unref(e),{dropdown:d.dropdown,ref_key:"contextmenuRef",ref:a,onCurrentContextmenuClick:De},null,8,["dropdown"])],2)}}}),xn=x._export_sfc(On,[["__scopeId","data-v-a7a031b3"]]);exports.default=xn;
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as l, defineAsyncComponent as n, ref as d, onMounted as y, watch as a, nextTick as r, resolveComponent as h, openBlock as T, createBlock as C, withCtx as R, createVNode as c, unref as s } from "vue";
|
|
2
|
-
import { c as v, s as M, u as g } from "./index-
|
|
2
|
+
import { c as v, s as M, u as g } from "./index-DNoandSV.mjs";
|
|
3
3
|
const k = l({
|
|
4
4
|
name: "layoutTransverse"
|
|
5
5
|
}), H = /* @__PURE__ */ l({
|
|
6
6
|
...k,
|
|
7
7
|
setup(x) {
|
|
8
|
-
const u = n(() => import("./header-
|
|
8
|
+
const u = n(() => import("./header-MRDb44NG.mjs")), i = n(() => import("./main-BRSJ4Lfu.mjs")), e = d(), f = v(), { themeConfig: p } = M(f), m = g(), o = () => {
|
|
9
9
|
e.value.layoutMainScrollbarRef.update();
|
|
10
10
|
}, t = () => {
|
|
11
11
|
r(() => {
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-Cx10Wgcu.js"),f=e.defineComponent({name:"layoutTransverse"}),p=e.defineComponent({...f,setup(d){const a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./header-6g_kcXjg.js"))),c=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-DD1Z09Z0.js"))),t=e.ref(),s=o.useThemeConfig(),{themeConfig:u}=o.storeToRefs(s),l=o.useRoute(),n=()=>{t.value.layoutMainScrollbarRef.update()},r=()=>{e.nextTick(()=>{setTimeout(()=>{n(),t.value.layoutMainScrollbarRef.wrapRef.scrollTop=0},500)})};return e.onMounted(()=>{r()}),e.watch(()=>l.path,()=>{r()}),e.watch(()=>u.value.isTagsview,()=>{e.nextTick(()=>{n()})},{deep:!0}),(m,_)=>{const i=e.resolveComponent("el-container");return e.openBlock(),e.createBlock(i,{class:"layout-container flex-center layout-backtop"},{default:e.withCtx(()=>[e.createVNode(e.unref(a)),e.createVNode(e.unref(c),{ref_key:"layoutMainRef",ref:t},null,512)]),_:1})}}});exports.default=p;
|
|
Binary file
|
package/dist/types/components/business/bcPageConfig/components/hsSaveForm/useCloneConfigDialog.d.ts
CHANGED
|
@@ -1908,10 +1908,15 @@ export declare function useCloneConfig(): {
|
|
|
1908
1908
|
content?: string | undefined;
|
|
1909
1909
|
columnFilterMethod?: ((params: {
|
|
1910
1910
|
column: import("vxe-table").VxeTableDefines.ColumnInfo<VxeTableDataRow>;
|
|
1911
|
+
/**
|
|
1912
|
+
* 查询菜单数据
|
|
1913
|
+
*/
|
|
1911
1914
|
$columnIndex: number;
|
|
1912
1915
|
}) => boolean) | undefined;
|
|
1913
1916
|
dataFilterMethod?: ((params: {
|
|
1914
|
-
row: any;
|
|
1917
|
+
row: any; /**
|
|
1918
|
+
* 查询菜单数据
|
|
1919
|
+
*/
|
|
1915
1920
|
$rowIndex: number;
|
|
1916
1921
|
}) => boolean) | undefined;
|
|
1917
1922
|
footerFilterMethod?: ((params: {
|
|
@@ -5170,10 +5175,15 @@ export declare function useCloneConfig(): {
|
|
|
5170
5175
|
content?: string | undefined;
|
|
5171
5176
|
columnFilterMethod?: ((params: {
|
|
5172
5177
|
column: import("vxe-table").VxeTableDefines.ColumnInfo<VxeTableDataRow>;
|
|
5178
|
+
/**
|
|
5179
|
+
* 查询菜单数据
|
|
5180
|
+
*/
|
|
5173
5181
|
$columnIndex: number;
|
|
5174
5182
|
}) => boolean) | undefined;
|
|
5175
5183
|
dataFilterMethod?: ((params: {
|
|
5176
|
-
row: any;
|
|
5184
|
+
row: any; /**
|
|
5185
|
+
* 查询菜单数据
|
|
5186
|
+
*/
|
|
5177
5187
|
$rowIndex: number;
|
|
5178
5188
|
}) => boolean) | undefined;
|
|
5179
5189
|
footerFilterMethod?: ((params: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as Y, createElementBlock as M, withDirectives as k, createElementVNode as w, normalizeStyle as S, vShow as A, createCommentVNode as L, normalizeClass as U, toDisplayString as N, defineComponent as F, ref as I, onMounted as z, getCurrentInstance as D, toRefs as j, reactive as V, resolveComponent as O, createVNode as v, withCtx as y, unref as H, createTextVNode as E } from "vue";
|
|
2
|
-
import { _ as B, L as q, M as G } from "./index-
|
|
2
|
+
import { _ as B, L as q, M as G } from "./index-DNoandSV.mjs";
|
|
3
3
|
const $ = {};
|
|
4
4
|
$.getData = (t) => new Promise((e, i) => {
|
|
5
5
|
let s = {};
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),H=require("./index-DMvbtuDl.js"),W={};W.getData=e=>new Promise((t,i)=>{let s={};M(e).then(o=>{s.arrayBuffer=o;try{s.orientation=E(o)}catch{s.orientation=-1}t(s)}).catch(o=>{i(o)})});function M(e){let t=null;return new Promise((i,s)=>{if(e.src)if(/^data\:/i.test(e.src))t=N(e.src),i(t);else if(/^blob\:/i.test(e.src)){var o=new FileReader;o.onload=function(h){t=h.target.result,i(t)},S(e.src,function(h){o.readAsArrayBuffer(h)})}else{var r=new XMLHttpRequest;r.onload=function(){if(this.status==200||this.status===0)t=r.response,i(t);else throw"Could not load image";r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else s("img error")})}function S(e,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(s){(this.status==200||this.status===0)&&t(this.response)},i.send()}function N(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/mi)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gmi,"");for(var i=atob(e),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),r=new Uint16Array(o),h=0;h<s;h++)r[h]=i.charCodeAt(h);return o}function I(e,t,i){var s="",o;for(o=t,i+=t;o<i;o++)s+=String.fromCharCode(e.getUint8(o));return s}function E(e){var t=new DataView(e),i=t.byteLength,s,o,r,h,n,p,l,c,f,u;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(f=2;f<i;){if(t.getUint8(f)===255&&t.getUint8(f+1)===225){l=f;break}f++}if(l&&(o=l+4,r=l+10,I(t,o,4)==="Exif"&&(p=t.getUint16(r),n=p===18761,(n||p===19789)&&t.getUint16(r+2,n)===42&&(h=t.getUint32(r+4,n),h>=8&&(c=r+h)))),c){for(i=t.getUint16(c,n),u=0;u<i;u++)if(f=c+u*12+2,t.getUint16(f,n)===274){f+=8,s=t.getUint16(f,n);break}}return s}const L={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}},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(e){return Array.isArray(e)?Number(e[0])>=0&&Number(e[1])>=0:Number(e)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let e={};if(e.top=this.cropOffsertY>21?"-21px":"0px",e.width=this.cropW>0?this.cropW:0,e.height=this.cropH>0?this.cropH:0,this.infoTrue){let t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),e.width=e.width*t,e.height=e.height*t,this.full&&(e.width=e.width/this.scale,e.height=e.height/this.scale)}return e.width=e.width.toFixed(0),e.height=e.height.toFixed(0),e},isIE(){return!!window.ActiveXObject||"ActiveXObject"in window},passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(e){e!==""&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(e,t){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(e){e&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(e){var t=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(e,"i");for(var r=0;r<t.length;r++)o.test(t[r])&&(i=t[r]);return i?s=i.split("/")[1].split("."):s=["0","0","0"],s},checkOrientationImage(e,t,i,s){if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){const h=this.getVersion("version");h[0]>13&&h[1]>1&&(t=-1)}else{const h=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(h){let n=h[1];n=n.split("_"),(n[0]>13||n[0]>=13&&n[1]>=4)&&(t=-1)}}let o=document.createElement("canvas"),r=o.getContext("2d");switch(r.save(),t){case 2:o.width=i,o.height=s,r.translate(i,0),r.scale(-1,1);break;case 3:o.width=i,o.height=s,r.translate(i/2,s/2),r.rotate(180*Math.PI/180),r.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,r.translate(0,s),r.scale(1,-1);break;case 5:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.scale(1,-1);break;case 6:o.width=s,o.height=i,r.translate(s/2,i/2),r.rotate(90*Math.PI/180),r.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.translate(i,-s),r.scale(-1,1);break;case 8:o.height=i,o.width=s,r.translate(s/2,i/2),r.rotate(-90*Math.PI/180),r.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}r.drawImage(e,0,0,i,s),r.restore(),o.toBlob(h=>{let n=URL.createObjectURL(h);URL.revokeObjectURL(this.imgs),this.imgs=n},"image/"+this.outputType,1)},checkedImg(){if(this.img===null||this.img===""){this.imgs="",this.clearCrop();return}this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let e=new Image;if(e.onload=()=>{if(this.img==="")return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=e.width,s=e.height;W.getData(e).then(o=>{this.orientation=o.orientation||1;let r=Number(this.maxImgSize);if(!this.orientation&&i<r&s<r){this.imgs=this.img;return}i>r&&(s=s/i*r,i=r),s>r&&(i=i/s*r,s=r),this.checkOrientationImage(e,this.orientation,i,s)}).catch(o=>{this.$emit("img-load","error"),this.$emit("img-load-error",o)})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},this.img.substr(0,4)!=="data"&&(e.crossOrigin=""),this.isIE){var t=new XMLHttpRequest;t.onload=function(){var i=URL.createObjectURL(this.response);e.src=i},t.open("GET",this.img,!0),t.responseType="blob",t.send()}else e.src=this.img},startMove(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in e?e.clientX:e.touches[0].clientX)-this.x,this.moveY=("clientY"in e?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),e.touches.length==2&&(this.touches=e.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=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(e){e.preventDefault();let t=this.scale;var i={x:this.touches[0].clientX,y:this.touches[0].clientY},s={x:e.touches[0].clientX,y:e.touches[0].clientY},o={x:this.touches[1].clientX,y:this.touches[1].clientY},r={x:e.touches[1].clientX,y:e.touches[1].clientY},h=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),n=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),p=n-h,l=1;l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth,l=l>.1?.1:l;var c=l*p;if(!this.touchNow){if(this.touchNow=!0,p>0?t+=Math.abs(c):p<0&&t>Math.abs(c)&&(t-=Math.abs(c)),this.touches=e.touches,setTimeout(()=>{this.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t}},cancelTouchScale(e){window.removeEventListener("touchmove",this.touchScale)},moveImg(e){if(e.preventDefault(),e.touches&&e.touches.length===2)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.moveX,o=i-this.moveY,this.$nextTick(()=>{if(this.centerBox){let r=this.getImgAxis(s,o,this.scale),h=this.getCropAxis(),n=this.trueHeight*this.scale,p=this.trueWidth*this.scale,l,c,f,u;switch(this.rotate){case 1:case-1:case 3:case-3:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(n-p)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(p-n)/2,f=l-n+this.cropW,u=c-p+this.cropH;break;default:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,f=l-p+this.cropW,u=c-n+this.cropH;break}r.x1>=h.x1&&(s=l),r.y1>=h.y1&&(o=c),r.x2<=h.x2&&(s=f),r.y2<=h.y2&&(o=u)}this.x=s,this.y=o,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})})},leaveImg(e){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(e){e.preventDefault();let t=this.scale;var i=e.deltaY||e.wheelDelta,s=navigator.userAgent.indexOf("Firefox");i=s>0?i*30:i,this.isIE&&(i=-i);var o=this.coe;o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth;var r=o*i;r<0?t+=Math.abs(r):t>Math.abs(r)&&(t-=Math.abs(r));let h=r<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,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,t))return!1;this.scale=t},changeScale(e){let t=this.scale;e=e||1;var i=20;if(i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth,e=e*i,e>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick(()=>{var s=t-this.cropX,o=i-this.cropY;if(s>0?(this.cropW=s+this.cropChangeX>this.w?this.w-this.cropChangeX:s,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(s)>this.w?this.cropChangeX:Math.abs(s),this.cropOffsertX=this.cropChangeX+s>0?this.cropChangeX+s:0),!this.fixed)o>0?(this.cropH=o+this.cropChangeY>this.h?this.h-this.cropChangeY:o,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(o)>this.h?this.cropChangeY:Math.abs(o),this.cropOffsertY=this.cropChangeY+o>0?this.cropChangeY+o:0);else{var r=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];r+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],s>0?this.cropOffsertX=this.cropChangeX:this.cropOffsertX=this.cropChangeX-this.cropW):this.cropH=r,this.cropOffsertY=this.cropOffsertY}})},changeCropSize(e,t,i,s,o){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.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(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;let s=this.w,o=this.h,r=0,h=0;if(this.centerBox){let l=this.getImgAxis(),c=l.x2,f=l.y2;r=l.x1>0?l.x1:0,h=l.y1>0?l.y1:0,s>c&&(s=c),o>f&&(o=f)}const[n,p]=this.checkCropLimitSize();this.$nextTick(()=>{var l=t-this.cropX,c=i-this.cropY;if(this.canChangeX&&(this.changeCropTypeX===1?this.cropOldW-l<n?(this.cropW=n,this.cropOffsertX=this.cropOldW+this.cropChangeX-r-n):this.cropOldW-l>0?(this.cropW=s-this.cropChangeX-l<=s-r?this.cropOldW-l:this.cropOldW+this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX-l<=s-r?this.cropChangeX+l:r):(this.cropW=Math.abs(l)+this.cropChangeX<=s?Math.abs(l)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):this.changeCropTypeX===2&&(this.cropOldW+l<n?this.cropW=n:this.cropOldW+l>0?(this.cropW=this.cropOldW+l+this.cropOffsertX<=s?this.cropOldW+l:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?Math.abs(l+this.cropOldW):this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?this.cropChangeX-Math.abs(l+this.cropOldW):r))),this.canChangeY&&(this.changeCropTypeY===1?this.cropOldH-c<p?(this.cropH=p,this.cropOffsertY=this.cropOldH+this.cropChangeY-h-p):this.cropOldH-c>0?(this.cropH=o-this.cropChangeY-c<=o-h?this.cropOldH-c:this.cropOldH+this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY-c<=o-h?this.cropChangeY+c:h):(this.cropH=Math.abs(c)+this.cropChangeY<=o?Math.abs(c)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):this.changeCropTypeY===2&&(this.cropOldH+c<p?this.cropH=p:this.cropOldH+c>0?(this.cropH=this.cropOldH+c+this.cropOffsertY<=o?this.cropOldH+c:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?Math.abs(c+this.cropOldH):this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?this.cropChangeY-Math.abs(c+this.cropOldH):h))),this.canChangeX&&this.fixed){var f=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];f<p?(this.cropH=p,this.cropW=this.fixedNumber[0]*p/this.fixedNumber[1],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):f+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=f}if(this.canChangeY&&this.fixed){var u=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];u<n?(this.cropW=n,this.cropH=this.fixedNumber[1]*n/this.fixedNumber[0]):u+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=u}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})})},checkCropLimitSize(){let{cropW:e,cropH:t,limitMinSize:i}=this,s=new Array;return Array.isArray(i)?s=i:s=[i,i],e=parseFloat(s[0]),t=parseFloat(s[1]),[e,t]},changeCropEnd(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(e,t,i,s,o,r){const h=e/t;let n=o,p=r;return n<i&&(n=i,p=Math.ceil(n/h)),p<s&&(p=s,n=Math.ceil(p*h),n<i&&(n=i,p=Math.ceil(n/h))),n<o&&(n=o,p=Math.ceil(n/h)),p<r&&(p=r,n=Math.ceil(p*h)),{width:n,height:p}},endCrop(){this.cropW===0&&this.cropH===0&&(this.cropping=!1);let[e,t]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],e,t,this.cropW,this.cropH):{width:e,height:t};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(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&e.touches.length===2)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.cropOffsertX,o=i-this.cropOffsertY,this.cropX=s,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(e,t){let i=0,s=0;e&&(e.preventDefault(),i="clientX"in e?e.clientX:e.touches[0].clientX,s="clientY"in e?e.clientY:e.touches[0].clientY),this.$nextTick(()=>{let o,r,h=i-this.cropX,n=s-this.cropY;if(t&&(h=this.cropOffsertX,n=this.cropOffsertY),h<=0?o=0:h+this.cropW>this.w?o=this.w-this.cropW:o=h,n<=0?r=0:n+this.cropH>this.h?r=this.h-this.cropH:r=n,this.centerBox){let p=this.getImgAxis();o<=p.x1&&(o=p.x1),o+this.cropW>p.x2&&(o=p.x2-this.cropW),r<=p.y1&&(r=p.y1),r+this.cropH>p.y2&&(r=p.y2-this.cropH)}this.cropOffsertX=o,this.cropOffsertY=r,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})})},getImgAxis(e,t,i){e=e||this.x,t=t||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,r=this.trueHeight*i;switch(this.rotate){case 0:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=e+this.trueWidth*(1-i)/2+(o-r)/2,s.x2=s.x1+this.trueHeight*i,s.y1=t+this.trueHeight*(1-i)/2+(r-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break}return s},getCropAxis(){let e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop(e){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(e){let t=document.createElement("canvas"),i=new Image,s=this.rotate,o=this.trueWidth,r=this.trueHeight,h=this.cropOffsertX,n=this.cropOffsertY;i.onload=()=>{if(this.cropW!==0){let c=t.getContext("2d"),f=1;this.high&!this.full&&(f=window.devicePixelRatio),this.enlarge!==1&!this.full&&(f=Math.abs(Number(this.enlarge)));let u=this.cropW*f,x=this.cropH*f,g=o*this.scale*f,m=r*this.scale*f,v=(this.x-h+this.trueWidth*(1-this.scale)/2)*f,d=(this.y-n+this.trueHeight*(1-this.scale)/2)*f;switch(l(u,x),c.save(),this.fillColor&&(c.fillStyle=this.fillColor,c.fillRect(0,0,t.width,t.height)),s){case 0:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m);break;case 1:case-3:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m/this.scale,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m,g,m));break;case 2:case-2:this.full?(l(u/this.scale,x/this.scale),c.rotate(s*90*Math.PI/180),v=v/this.scale,d=d/this.scale,c.drawImage(i,-v-g/this.scale,-d-m/this.scale,g/this.scale,m/this.scale)):(c.rotate(s*90*Math.PI/180),c.drawImage(i,-v-g,-d-m,g,m));break;case 3:case-1:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g/this.scale,v,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g,v,g,m));break;default:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m)}c.restore()}else{let c=o*this.scale,f=r*this.scale,u=t.getContext("2d");switch(u.save(),this.fillColor&&(u.fillStyle=this.fillColor,u.fillRect(0,0,t.width,t.height)),s){case 0:l(c,f),u.drawImage(i,0,0,c,f);break;case 1:case-3:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,0,-f,c,f);break;case 2:case-2:l(c,f),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,-f,c,f);break;case 3:case-1:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,0,c,f);break;default:l(c,f),u.drawImage(i,0,0,c,f)}u.restore()}e(t)};var p=this.img.substr(0,4);p!=="data"&&(i.crossOrigin="Anonymous"),i.src=this.imgs;function l(c,f){t.width=Math.round(c),t.height=Math.round(f)}},getCropData(e){this.getCropChecked(t=>{e(t.toDataURL("image/"+this.outputType,this.outputSize))})},getCropBlob(e){this.getCropChecked(t=>{t.toBlob(i=>e(i),"image/"+this.outputType,this.outputSize)})},showPreview(){if(this.isCanShow)this.isCanShow=!1,setTimeout(()=>{this.isCanShow=!0},16);else return!1;let e=this.cropW,t=this.cropH,i=this.scale;var s={};s.div={width:`${e}px`,height:`${t}px`};let o=(this.x-this.cropOffsertX)/i,r=(this.y-this.cropOffsertY)/i,h=0;s.w=e,s.h=t,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${r}px, ${h}px)rotateZ(${this.rotate*90}deg)`},s.html=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),H=require("./index-Cx10Wgcu.js"),W={};W.getData=e=>new Promise((t,i)=>{let s={};M(e).then(o=>{s.arrayBuffer=o;try{s.orientation=E(o)}catch{s.orientation=-1}t(s)}).catch(o=>{i(o)})});function M(e){let t=null;return new Promise((i,s)=>{if(e.src)if(/^data\:/i.test(e.src))t=N(e.src),i(t);else if(/^blob\:/i.test(e.src)){var o=new FileReader;o.onload=function(h){t=h.target.result,i(t)},S(e.src,function(h){o.readAsArrayBuffer(h)})}else{var r=new XMLHttpRequest;r.onload=function(){if(this.status==200||this.status===0)t=r.response,i(t);else throw"Could not load image";r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else s("img error")})}function S(e,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(s){(this.status==200||this.status===0)&&t(this.response)},i.send()}function N(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/mi)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gmi,"");for(var i=atob(e),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),r=new Uint16Array(o),h=0;h<s;h++)r[h]=i.charCodeAt(h);return o}function I(e,t,i){var s="",o;for(o=t,i+=t;o<i;o++)s+=String.fromCharCode(e.getUint8(o));return s}function E(e){var t=new DataView(e),i=t.byteLength,s,o,r,h,n,p,l,c,f,u;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(f=2;f<i;){if(t.getUint8(f)===255&&t.getUint8(f+1)===225){l=f;break}f++}if(l&&(o=l+4,r=l+10,I(t,o,4)==="Exif"&&(p=t.getUint16(r),n=p===18761,(n||p===19789)&&t.getUint16(r+2,n)===42&&(h=t.getUint32(r+4,n),h>=8&&(c=r+h)))),c){for(i=t.getUint16(c,n),u=0;u<i;u++)if(f=c+u*12+2,t.getUint16(f,n)===274){f+=8,s=t.getUint16(f,n);break}}return s}const L={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}},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(e){return Array.isArray(e)?Number(e[0])>=0&&Number(e[1])>=0:Number(e)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let e={};if(e.top=this.cropOffsertY>21?"-21px":"0px",e.width=this.cropW>0?this.cropW:0,e.height=this.cropH>0?this.cropH:0,this.infoTrue){let t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),e.width=e.width*t,e.height=e.height*t,this.full&&(e.width=e.width/this.scale,e.height=e.height/this.scale)}return e.width=e.width.toFixed(0),e.height=e.height.toFixed(0),e},isIE(){return!!window.ActiveXObject||"ActiveXObject"in window},passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(e){e!==""&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(e,t){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(e){e&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(e){var t=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(e,"i");for(var r=0;r<t.length;r++)o.test(t[r])&&(i=t[r]);return i?s=i.split("/")[1].split("."):s=["0","0","0"],s},checkOrientationImage(e,t,i,s){if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){const h=this.getVersion("version");h[0]>13&&h[1]>1&&(t=-1)}else{const h=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(h){let n=h[1];n=n.split("_"),(n[0]>13||n[0]>=13&&n[1]>=4)&&(t=-1)}}let o=document.createElement("canvas"),r=o.getContext("2d");switch(r.save(),t){case 2:o.width=i,o.height=s,r.translate(i,0),r.scale(-1,1);break;case 3:o.width=i,o.height=s,r.translate(i/2,s/2),r.rotate(180*Math.PI/180),r.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,r.translate(0,s),r.scale(1,-1);break;case 5:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.scale(1,-1);break;case 6:o.width=s,o.height=i,r.translate(s/2,i/2),r.rotate(90*Math.PI/180),r.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.translate(i,-s),r.scale(-1,1);break;case 8:o.height=i,o.width=s,r.translate(s/2,i/2),r.rotate(-90*Math.PI/180),r.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}r.drawImage(e,0,0,i,s),r.restore(),o.toBlob(h=>{let n=URL.createObjectURL(h);URL.revokeObjectURL(this.imgs),this.imgs=n},"image/"+this.outputType,1)},checkedImg(){if(this.img===null||this.img===""){this.imgs="",this.clearCrop();return}this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let e=new Image;if(e.onload=()=>{if(this.img==="")return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=e.width,s=e.height;W.getData(e).then(o=>{this.orientation=o.orientation||1;let r=Number(this.maxImgSize);if(!this.orientation&&i<r&s<r){this.imgs=this.img;return}i>r&&(s=s/i*r,i=r),s>r&&(i=i/s*r,s=r),this.checkOrientationImage(e,this.orientation,i,s)}).catch(o=>{this.$emit("img-load","error"),this.$emit("img-load-error",o)})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},this.img.substr(0,4)!=="data"&&(e.crossOrigin=""),this.isIE){var t=new XMLHttpRequest;t.onload=function(){var i=URL.createObjectURL(this.response);e.src=i},t.open("GET",this.img,!0),t.responseType="blob",t.send()}else e.src=this.img},startMove(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in e?e.clientX:e.touches[0].clientX)-this.x,this.moveY=("clientY"in e?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),e.touches.length==2&&(this.touches=e.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=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(e){e.preventDefault();let t=this.scale;var i={x:this.touches[0].clientX,y:this.touches[0].clientY},s={x:e.touches[0].clientX,y:e.touches[0].clientY},o={x:this.touches[1].clientX,y:this.touches[1].clientY},r={x:e.touches[1].clientX,y:e.touches[1].clientY},h=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),n=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),p=n-h,l=1;l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth,l=l>.1?.1:l;var c=l*p;if(!this.touchNow){if(this.touchNow=!0,p>0?t+=Math.abs(c):p<0&&t>Math.abs(c)&&(t-=Math.abs(c)),this.touches=e.touches,setTimeout(()=>{this.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t}},cancelTouchScale(e){window.removeEventListener("touchmove",this.touchScale)},moveImg(e){if(e.preventDefault(),e.touches&&e.touches.length===2)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.moveX,o=i-this.moveY,this.$nextTick(()=>{if(this.centerBox){let r=this.getImgAxis(s,o,this.scale),h=this.getCropAxis(),n=this.trueHeight*this.scale,p=this.trueWidth*this.scale,l,c,f,u;switch(this.rotate){case 1:case-1:case 3:case-3:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(n-p)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(p-n)/2,f=l-n+this.cropW,u=c-p+this.cropH;break;default:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,f=l-p+this.cropW,u=c-n+this.cropH;break}r.x1>=h.x1&&(s=l),r.y1>=h.y1&&(o=c),r.x2<=h.x2&&(s=f),r.y2<=h.y2&&(o=u)}this.x=s,this.y=o,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})})},leaveImg(e){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(e){e.preventDefault();let t=this.scale;var i=e.deltaY||e.wheelDelta,s=navigator.userAgent.indexOf("Firefox");i=s>0?i*30:i,this.isIE&&(i=-i);var o=this.coe;o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth;var r=o*i;r<0?t+=Math.abs(r):t>Math.abs(r)&&(t-=Math.abs(r));let h=r<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,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,t))return!1;this.scale=t},changeScale(e){let t=this.scale;e=e||1;var i=20;if(i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth,e=e*i,e>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick(()=>{var s=t-this.cropX,o=i-this.cropY;if(s>0?(this.cropW=s+this.cropChangeX>this.w?this.w-this.cropChangeX:s,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(s)>this.w?this.cropChangeX:Math.abs(s),this.cropOffsertX=this.cropChangeX+s>0?this.cropChangeX+s:0),!this.fixed)o>0?(this.cropH=o+this.cropChangeY>this.h?this.h-this.cropChangeY:o,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(o)>this.h?this.cropChangeY:Math.abs(o),this.cropOffsertY=this.cropChangeY+o>0?this.cropChangeY+o:0);else{var r=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];r+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],s>0?this.cropOffsertX=this.cropChangeX:this.cropOffsertX=this.cropChangeX-this.cropW):this.cropH=r,this.cropOffsertY=this.cropOffsertY}})},changeCropSize(e,t,i,s,o){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.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(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;let s=this.w,o=this.h,r=0,h=0;if(this.centerBox){let l=this.getImgAxis(),c=l.x2,f=l.y2;r=l.x1>0?l.x1:0,h=l.y1>0?l.y1:0,s>c&&(s=c),o>f&&(o=f)}const[n,p]=this.checkCropLimitSize();this.$nextTick(()=>{var l=t-this.cropX,c=i-this.cropY;if(this.canChangeX&&(this.changeCropTypeX===1?this.cropOldW-l<n?(this.cropW=n,this.cropOffsertX=this.cropOldW+this.cropChangeX-r-n):this.cropOldW-l>0?(this.cropW=s-this.cropChangeX-l<=s-r?this.cropOldW-l:this.cropOldW+this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX-l<=s-r?this.cropChangeX+l:r):(this.cropW=Math.abs(l)+this.cropChangeX<=s?Math.abs(l)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):this.changeCropTypeX===2&&(this.cropOldW+l<n?this.cropW=n:this.cropOldW+l>0?(this.cropW=this.cropOldW+l+this.cropOffsertX<=s?this.cropOldW+l:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?Math.abs(l+this.cropOldW):this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?this.cropChangeX-Math.abs(l+this.cropOldW):r))),this.canChangeY&&(this.changeCropTypeY===1?this.cropOldH-c<p?(this.cropH=p,this.cropOffsertY=this.cropOldH+this.cropChangeY-h-p):this.cropOldH-c>0?(this.cropH=o-this.cropChangeY-c<=o-h?this.cropOldH-c:this.cropOldH+this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY-c<=o-h?this.cropChangeY+c:h):(this.cropH=Math.abs(c)+this.cropChangeY<=o?Math.abs(c)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):this.changeCropTypeY===2&&(this.cropOldH+c<p?this.cropH=p:this.cropOldH+c>0?(this.cropH=this.cropOldH+c+this.cropOffsertY<=o?this.cropOldH+c:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?Math.abs(c+this.cropOldH):this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?this.cropChangeY-Math.abs(c+this.cropOldH):h))),this.canChangeX&&this.fixed){var f=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];f<p?(this.cropH=p,this.cropW=this.fixedNumber[0]*p/this.fixedNumber[1],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):f+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=f}if(this.canChangeY&&this.fixed){var u=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];u<n?(this.cropW=n,this.cropH=this.fixedNumber[1]*n/this.fixedNumber[0]):u+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=u}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})})},checkCropLimitSize(){let{cropW:e,cropH:t,limitMinSize:i}=this,s=new Array;return Array.isArray(i)?s=i:s=[i,i],e=parseFloat(s[0]),t=parseFloat(s[1]),[e,t]},changeCropEnd(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(e,t,i,s,o,r){const h=e/t;let n=o,p=r;return n<i&&(n=i,p=Math.ceil(n/h)),p<s&&(p=s,n=Math.ceil(p*h),n<i&&(n=i,p=Math.ceil(n/h))),n<o&&(n=o,p=Math.ceil(n/h)),p<r&&(p=r,n=Math.ceil(p*h)),{width:n,height:p}},endCrop(){this.cropW===0&&this.cropH===0&&(this.cropping=!1);let[e,t]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],e,t,this.cropW,this.cropH):{width:e,height:t};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(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&e.touches.length===2)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.cropOffsertX,o=i-this.cropOffsertY,this.cropX=s,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(e,t){let i=0,s=0;e&&(e.preventDefault(),i="clientX"in e?e.clientX:e.touches[0].clientX,s="clientY"in e?e.clientY:e.touches[0].clientY),this.$nextTick(()=>{let o,r,h=i-this.cropX,n=s-this.cropY;if(t&&(h=this.cropOffsertX,n=this.cropOffsertY),h<=0?o=0:h+this.cropW>this.w?o=this.w-this.cropW:o=h,n<=0?r=0:n+this.cropH>this.h?r=this.h-this.cropH:r=n,this.centerBox){let p=this.getImgAxis();o<=p.x1&&(o=p.x1),o+this.cropW>p.x2&&(o=p.x2-this.cropW),r<=p.y1&&(r=p.y1),r+this.cropH>p.y2&&(r=p.y2-this.cropH)}this.cropOffsertX=o,this.cropOffsertY=r,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})})},getImgAxis(e,t,i){e=e||this.x,t=t||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,r=this.trueHeight*i;switch(this.rotate){case 0:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=e+this.trueWidth*(1-i)/2+(o-r)/2,s.x2=s.x1+this.trueHeight*i,s.y1=t+this.trueHeight*(1-i)/2+(r-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break}return s},getCropAxis(){let e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop(e){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(e){let t=document.createElement("canvas"),i=new Image,s=this.rotate,o=this.trueWidth,r=this.trueHeight,h=this.cropOffsertX,n=this.cropOffsertY;i.onload=()=>{if(this.cropW!==0){let c=t.getContext("2d"),f=1;this.high&!this.full&&(f=window.devicePixelRatio),this.enlarge!==1&!this.full&&(f=Math.abs(Number(this.enlarge)));let u=this.cropW*f,x=this.cropH*f,g=o*this.scale*f,m=r*this.scale*f,v=(this.x-h+this.trueWidth*(1-this.scale)/2)*f,d=(this.y-n+this.trueHeight*(1-this.scale)/2)*f;switch(l(u,x),c.save(),this.fillColor&&(c.fillStyle=this.fillColor,c.fillRect(0,0,t.width,t.height)),s){case 0:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m);break;case 1:case-3:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m/this.scale,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m,g,m));break;case 2:case-2:this.full?(l(u/this.scale,x/this.scale),c.rotate(s*90*Math.PI/180),v=v/this.scale,d=d/this.scale,c.drawImage(i,-v-g/this.scale,-d-m/this.scale,g/this.scale,m/this.scale)):(c.rotate(s*90*Math.PI/180),c.drawImage(i,-v-g,-d-m,g,m));break;case 3:case-1:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g/this.scale,v,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g,v,g,m));break;default:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m)}c.restore()}else{let c=o*this.scale,f=r*this.scale,u=t.getContext("2d");switch(u.save(),this.fillColor&&(u.fillStyle=this.fillColor,u.fillRect(0,0,t.width,t.height)),s){case 0:l(c,f),u.drawImage(i,0,0,c,f);break;case 1:case-3:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,0,-f,c,f);break;case 2:case-2:l(c,f),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,-f,c,f);break;case 3:case-1:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,0,c,f);break;default:l(c,f),u.drawImage(i,0,0,c,f)}u.restore()}e(t)};var p=this.img.substr(0,4);p!=="data"&&(i.crossOrigin="Anonymous"),i.src=this.imgs;function l(c,f){t.width=Math.round(c),t.height=Math.round(f)}},getCropData(e){this.getCropChecked(t=>{e(t.toDataURL("image/"+this.outputType,this.outputSize))})},getCropBlob(e){this.getCropChecked(t=>{t.toBlob(i=>e(i),"image/"+this.outputType,this.outputSize)})},showPreview(){if(this.isCanShow)this.isCanShow=!1,setTimeout(()=>{this.isCanShow=!0},16);else return!1;let e=this.cropW,t=this.cropH,i=this.scale;var s={};s.div={width:`${e}px`,height:`${t}px`};let o=(this.x-this.cropOffsertX)/i,r=(this.y-this.cropOffsertY)/i,h=0;s.w=e,s.h=t,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${r}px, ${h}px)rotateZ(${this.rotate*90}deg)`},s.html=`
|
|
2
2
|
<div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">
|
|
3
3
|
<div style="width: ${e}px; height: ${t}px">
|
|
4
4
|
<img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:
|
|
Binary file
|