nc-lib-gui-daily 0.251.3-pr-9140-20240807-1322 → 0.251.3-pr-9140-20240807-1349
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/lib/dist/200.html +78 -78
- package/lib/dist/404.html +78 -78
- package/lib/dist/_nuxt/{BECNAICj.js → -4t4xnv8.js} +1 -1
- package/lib/dist/_nuxt/{B9wWUMeH.js → 0i0s40zL.js} +1 -1
- package/lib/dist/_nuxt/{ClrSNVKi.js → 2DrjKvbb.js} +1 -1
- package/lib/dist/_nuxt/{BWYKlc03.js → 3joeZ-MH.js} +1 -1
- package/lib/dist/_nuxt/{BjOAkC1I.js → 3v3fVjjF.js} +2 -2
- package/lib/dist/_nuxt/{C0Gqhynn.js → 4TzZ_5zC.js} +1 -1
- package/lib/dist/_nuxt/{CQPSFno8.js → 4XAL69Ip.js} +1 -1
- package/lib/dist/_nuxt/{Bu5HFIT4.js → 5d2JKIpI.js} +2 -2
- package/lib/dist/_nuxt/{CaoTQXu2.js → 5nCkSrke.js} +1 -1
- package/lib/dist/_nuxt/{Ek7a6tav.js → 5wn80Wdx.js} +1 -1
- package/lib/dist/_nuxt/6U1p19-U.js +1 -0
- package/lib/dist/_nuxt/{Bu9W_1Kn.js → 75R1pBVU.js} +2 -2
- package/lib/dist/_nuxt/{WDDKUx4k.js → 7_p21RjN.js} +1 -1
- package/lib/dist/_nuxt/{CZztu25l.js → 8K2eSNBm.js} +3 -3
- package/lib/dist/_nuxt/8YSh_QYU.js +1 -0
- package/lib/dist/_nuxt/{CLa-GND5.js → 9ZzieOOa.js} +1 -1
- package/lib/dist/_nuxt/{DGmT4XJW.js → 9j5A48K7.js} +1 -1
- package/lib/dist/_nuxt/{Cf37dmb0.js → A1VS529Y.js} +2 -2
- package/lib/dist/_nuxt/{CnUzkPPI.js → AoMdM-MP.js} +1 -1
- package/lib/dist/_nuxt/{5dTVPtqf.js → B-MIOvj6.js} +1 -1
- package/lib/dist/_nuxt/{Xvj7w1oq.js → B0gfXKmM.js} +1 -1
- package/lib/dist/_nuxt/{DBfDNbQe.js → B0y7Q991.js} +2 -2
- package/lib/dist/_nuxt/{COSuR5gX.js → B12ilfKh.js} +1 -1
- package/lib/dist/_nuxt/{DLcCozgP.js → B1R2-rCU.js} +2 -2
- package/lib/dist/_nuxt/{CMITlXbV.js → B1h49W-1.js} +2 -2
- package/lib/dist/_nuxt/{CkCKzP-b.js → B2NO182c.js} +1 -1
- package/lib/dist/_nuxt/{DKgzeeDD.js → B33qDdnq.js} +1 -1
- package/lib/dist/_nuxt/{Dr_t1CQX.js → B3AUipTz.js} +1 -1
- package/lib/dist/_nuxt/{CVmH__0I.js → B3JDEiCa.js} +2 -2
- package/lib/dist/_nuxt/{BUd0o8q2.js → B3TBCQg9.js} +1 -1
- package/lib/dist/_nuxt/{CHRxsLpF.js → B4rH_4ZN.js} +1 -1
- package/lib/dist/_nuxt/{M4L2Leg7.js → B4rimoYw.js} +1 -1
- package/lib/dist/_nuxt/{BnbA25UM.js → B5FLXBR1.js} +1 -1
- package/lib/dist/_nuxt/{CqcwF_4v.js → B5NtOENv.js} +1 -1
- package/lib/dist/_nuxt/{BaaPy9e4.js → B74kAxrX.js} +2 -2
- package/lib/dist/_nuxt/{Cf4R9mtz.js → B78zylNk.js} +1 -1
- package/lib/dist/_nuxt/{CqFm4PeH.js → B8Ch0bfd.js} +2 -2
- package/lib/dist/_nuxt/{BbFx5cgg.js → B9aNdXy_.js} +2 -2
- package/lib/dist/_nuxt/{DEWywo6s.js → B9dOhF-2.js} +1 -1
- package/lib/dist/_nuxt/{BOYXVEfo.js → BBA0nfaW.js} +1 -1
- package/lib/dist/_nuxt/{C9TR8pMm.js → BBW1h0ks.js} +1 -1
- package/lib/dist/_nuxt/{EohHWhQi.js → BC6xG-3q.js} +1 -1
- package/lib/dist/_nuxt/{D-3pY83G.js → BDlHzTvk.js} +1 -1
- package/lib/dist/_nuxt/{DglPsyiE.js → BE4MlnZf.js} +1 -1
- package/lib/dist/_nuxt/{DQRX9Xt5.js → BEZkcRcL.js} +1 -1
- package/lib/dist/_nuxt/{CDbcx2MC.js → BGugcrMS.js} +1 -1
- package/lib/dist/_nuxt/{DkSSi9ve.js → BHNEB9HJ.js} +1 -1
- package/lib/dist/_nuxt/{_fB9sOmQ.js → BHXU4B_2.js} +2 -2
- package/lib/dist/_nuxt/{BaXP97h1.js → BIHLSlqp.js} +1 -1
- package/lib/dist/_nuxt/BIo3okPc.js +1 -0
- package/lib/dist/_nuxt/{CokApUov.js → BLBtvxjT.js} +1 -1
- package/lib/dist/_nuxt/{CaoUireh.js → BLJJDzIX.js} +3 -3
- package/lib/dist/_nuxt/{wogaDWws.js → BLNSv8WU.js} +1 -1
- package/lib/dist/_nuxt/{BSnfz81Y.js → BMpULef7.js} +2 -2
- package/lib/dist/_nuxt/{CYG3uB4k.js → BNhTB5D3.js} +1 -1
- package/lib/dist/_nuxt/{D5LCiDa8.js → BNv598XD.js} +1 -1
- package/lib/dist/_nuxt/{CaKL5hX5.js → BPBo3uNz.js} +1 -1
- package/lib/dist/_nuxt/{tuC3W76x.js → BPS1H-Sz.js} +1 -1
- package/lib/dist/_nuxt/{DRPzkOuH.js → BPXkp7pR.js} +1 -1
- package/lib/dist/_nuxt/{CEaqjIiA.js → BPaH70bH.js} +1 -1
- package/lib/dist/_nuxt/{DQvo0yED.js → BPfa9v3p.js} +1 -1
- package/lib/dist/_nuxt/{DpJilvje.js → BPxXddiW.js} +1 -1
- package/lib/dist/_nuxt/{K69OaLqe.js → BQTbXctc.js} +1 -1
- package/lib/dist/_nuxt/{DQrwfJfV.js → BT6OdjOC.js} +1 -1
- package/lib/dist/_nuxt/{BtbkYOXM.js → BTPzUNVG.js} +1 -1
- package/lib/dist/_nuxt/{CZqfRZSO.js → BTX_9KaN.js} +2 -2
- package/lib/dist/_nuxt/{BF-z5sdC.js → BUWWmS1v.js} +1 -1
- package/lib/dist/_nuxt/{DSt1bB14.js → BUa3Jukl.js} +1 -1
- package/lib/dist/_nuxt/{Dpt9sRgQ.js → BUjHox0o.js} +2 -2
- package/lib/dist/_nuxt/{DEqhUnZ-.js → BV-KNIgj.js} +1 -1
- package/lib/dist/_nuxt/BV0H6cZy.js +2 -0
- package/lib/dist/_nuxt/{DFA4S6bS.js → BV5fkeNl.js} +1 -1
- package/lib/dist/_nuxt/{CgIyTi2b.js → BW3iYn6v.js} +1 -1
- package/lib/dist/_nuxt/{DvN7jpPi.js → BWALYZJv.js} +1 -1
- package/lib/dist/_nuxt/{D3V1uXBy.js → BWgRi_b3.js} +1 -1
- package/lib/dist/_nuxt/{D5LgkGGj.js → BWn3cSKa.js} +1 -1
- package/lib/dist/_nuxt/{Csj74Kwp.js → BWsrBkPc.js} +2 -2
- package/lib/dist/_nuxt/{CHMw6lkg.js → BXoKLvWd.js} +2 -2
- package/lib/dist/_nuxt/{CDnEKjsz.js → BXzZkUYy.js} +1 -1
- package/lib/dist/_nuxt/{DmDx5TyZ.js → BZdJF2g5.js} +1 -1
- package/lib/dist/_nuxt/{BipOdpcd.js → BZfcRRAG.js} +1 -1
- package/lib/dist/_nuxt/{D3pPrsLQ.js → B_FyKctL.js} +1 -1
- package/lib/dist/_nuxt/B_LFFdI9.js +1 -0
- package/lib/dist/_nuxt/{DPUW3H0R.js → BadBS-yn.js} +2 -2
- package/lib/dist/_nuxt/{BmApFhTv.js → BbCrTQHD.js} +1 -1
- package/lib/dist/_nuxt/{DCn9KvFr.js → BcquqdOq.js} +1 -1
- package/lib/dist/_nuxt/{Cadw426x.js → Bdxi8XdN.js} +2 -2
- package/lib/dist/_nuxt/{BTEJrFxq.js → Be6wJwW7.js} +1 -1
- package/lib/dist/_nuxt/{Dgf6zkFW.js → Bey_B0Pg.js} +1 -1
- package/lib/dist/_nuxt/{ov8xLaHe.js → Bf-Jn9fN.js} +1 -1
- package/lib/dist/_nuxt/{DPPtI03V.js → Bf_oJAxP.js} +1 -1
- package/lib/dist/_nuxt/{uUj38y4-.js → BgtuIwr8.js} +1 -1
- package/lib/dist/_nuxt/{CiBbHMre.js → Bh7NKnnJ.js} +1 -1
- package/lib/dist/_nuxt/{D1_wgH1i.js → Bh8L_8vr.js} +1 -1
- package/lib/dist/_nuxt/{CGTkNfNg.js → BhE3_y96.js} +1 -1
- package/lib/dist/_nuxt/{DMRRjwxM.js → BhLSFmBI.js} +2 -2
- package/lib/dist/_nuxt/BhZrVUuE.js +1 -0
- package/lib/dist/_nuxt/{3jIF1AyF.js → Bi74c53l.js} +2 -2
- package/lib/dist/_nuxt/{Wfb3YMK3.js → BjIWxehG.js} +1 -1
- package/lib/dist/_nuxt/{BKIlBt-6.js → Bjh8Jc00.js} +2 -2
- package/lib/dist/_nuxt/{CYDrr8e0.js → BkA6Hv4O.js} +1 -1
- package/lib/dist/_nuxt/{tEU5SOvF.js → Bn3JgSEE.js} +1 -1
- package/lib/dist/_nuxt/{BhRzGy_7.js → BnhkHttA.js} +1 -1
- package/lib/dist/_nuxt/{yUmIs97a.js → BnjAp9hj.js} +1 -1
- package/lib/dist/_nuxt/{DdiY6i5M.js → Bp5oHXSc.js} +1 -1
- package/lib/dist/_nuxt/{CZPLvSl2.js → BpLvq4Ij.js} +2 -2
- package/lib/dist/_nuxt/{B0oPZzHj.js → Bpjzp6Vo.js} +1 -1
- package/lib/dist/_nuxt/{Bj3GBQrH.js → BqKbedJW.js} +1 -1
- package/lib/dist/_nuxt/{CP29yz9Z.js → BqjTSgjN.js} +1 -1
- package/lib/dist/_nuxt/{CXqu_veX.js → Bqoh1mnx.js} +1 -1
- package/lib/dist/_nuxt/{Ccy4fxMp.js → Br4sW-aN.js} +2 -2
- package/lib/dist/_nuxt/{DsK9Oi2B.js → BsNs6tYV.js} +1 -1
- package/lib/dist/_nuxt/{CjnsQ0f3.js → BsdyC_c2.js} +1 -1
- package/lib/dist/_nuxt/{izr94Pxw.js → BsepGfVv.js} +2 -2
- package/lib/dist/_nuxt/{BSOsTxoF.js → BtRkeQ7z.js} +1 -1
- package/lib/dist/_nuxt/{45BtyJEq.js → BtYrspp1.js} +1 -1
- package/lib/dist/_nuxt/{DqQodY25.js → BtzsCl9b.js} +1 -1
- package/lib/dist/_nuxt/{BLd8XNte.js → BuNVIA4o.js} +1 -1
- package/lib/dist/_nuxt/{BIs2Ub4q.js → BuvUqaUR.js} +1 -1
- package/lib/dist/_nuxt/{BmZeKA3g.js → BvJHFs9-.js} +1 -1
- package/lib/dist/_nuxt/{SUjsexOK.js → BvdnmSRl.js} +1 -1
- package/lib/dist/_nuxt/{DU4YOMw-.js → BxlEsFh4.js} +2 -2
- package/lib/dist/_nuxt/{C10-KGd5.js → ByJ4I0p_.js} +1 -1
- package/lib/dist/_nuxt/{CxCKV_Px.js → BycyOgkZ.js} +1 -1
- package/lib/dist/_nuxt/{BVTg5uiQ.js → C-_nHsP3.js} +2 -2
- package/lib/dist/_nuxt/{DoClxtqO.js → C0Cjsdmx.js} +1 -1
- package/lib/dist/_nuxt/{BFdtwV5O.js → C0aGyUZt.js} +1 -1
- package/lib/dist/_nuxt/{BTBhJ3yz.js → C0cVOb1Y.js} +1 -1
- package/lib/dist/_nuxt/{DzBWyRMo.js → C0mEOfI4.js} +1 -1
- package/lib/dist/_nuxt/{BwxlFrx3.js → C0o-ksvC.js} +1 -1
- package/lib/dist/_nuxt/{CXPckVUD.js → C0vKFrOr.js} +1 -1
- package/lib/dist/_nuxt/{CQ3cJtsQ.js → C0x2Mtrn.js} +2 -2
- package/lib/dist/_nuxt/{DSo-2nFJ.js → C17-0Owd.js} +1 -1
- package/lib/dist/_nuxt/{C77-d5Nm.js → C24V68J3.js} +1 -1
- package/lib/dist/_nuxt/{UJDZNh8e.js → C2y2A27G.js} +1 -1
- package/lib/dist/_nuxt/{BPWyQanZ.js → C4FX_vFj.js} +1 -1
- package/lib/dist/_nuxt/{DVJ1H8-2.js → C4NvFsmx.js} +1 -1
- package/lib/dist/_nuxt/{Dj7AODgl.js → C5Fh5dLw.js} +1 -1
- package/lib/dist/_nuxt/{DGN1FUOe.js → C5LZc7bi.js} +1 -1
- package/lib/dist/_nuxt/{TGNXCWG6.js → C5YDuKgZ.js} +1 -1
- package/lib/dist/_nuxt/{DHL8lIZa.js → C6c9Dspn.js} +1 -1
- package/lib/dist/_nuxt/{Bj1Tr8na.js → C8Qc_SsI.js} +1 -1
- package/lib/dist/_nuxt/{C5QeThbn.js → C8UZPp3_.js} +1 -1
- package/lib/dist/_nuxt/{DcjeHTDt.js → C8_ndKXt.js} +2 -2
- package/lib/dist/_nuxt/{D31WRIha.js → C9Uj1v8v.js} +1 -1
- package/lib/dist/_nuxt/{BUCNUONm.js → CB02C89T.js} +1 -1
- package/lib/dist/_nuxt/{C7hcWPKb.js → CB3a7P0t.js} +2 -2
- package/lib/dist/_nuxt/{Dy33QHkd.js → CCIDjjGj.js} +3 -3
- package/lib/dist/_nuxt/CCSHPfQT.js +1 -0
- package/lib/dist/_nuxt/{DXGgVe0f.js → CDptPd_U.js} +3 -3
- package/lib/dist/_nuxt/{B82t3bcZ.js → CEZpXdoB.js} +1 -1
- package/lib/dist/_nuxt/{Cv1taij4.js → CFW-eKdT.js} +2 -2
- package/lib/dist/_nuxt/{DHbZD8lm.js → CGJkgYAS.js} +1 -1
- package/lib/dist/_nuxt/{C1P8Zhm3.js → CHf2540r.js} +1 -1
- package/lib/dist/_nuxt/{BJTGqbe7.js → CI_vGZBR.js} +1 -1
- package/lib/dist/_nuxt/{bCkRhWD-.js → CJFAfeQm.js} +1 -1
- package/lib/dist/_nuxt/{DourgGBB.js → CJnTHSo6.js} +1 -1
- package/lib/dist/_nuxt/{eM235LmA.js → CKjn3He-.js} +1 -1
- package/lib/dist/_nuxt/{BswdcBt-.js → CM94AsjQ.js} +1 -1
- package/lib/dist/_nuxt/{CrYOZ6xG.js → CMLvVVCa.js} +2 -2
- package/lib/dist/_nuxt/{scxxAgRq.js → CNurVxTA.js} +1 -1
- package/lib/dist/_nuxt/{BeT-kB3R.js → COR1mRIv.js} +1 -1
- package/lib/dist/_nuxt/{B0Sm2Utn.js → CPghe2bF.js} +2 -2
- package/lib/dist/_nuxt/{_dwjyJHh.js → CPmrHRfD.js} +1 -1
- package/lib/dist/_nuxt/{Cwun9h-Y.js → CPq1MIkE.js} +2 -2
- package/lib/dist/_nuxt/{DjcxKpIM.js → CQaV3CAE.js} +1 -1
- package/lib/dist/_nuxt/{CD37t5Sv.js → CS3cYx35.js} +2 -2
- package/lib/dist/_nuxt/{BbQblmCC.js → CTrYGv0V.js} +1 -1
- package/lib/dist/_nuxt/{CAp-kO3G.js → CU2qgEB0.js} +2 -2
- package/lib/dist/_nuxt/{Cnd_RIW1.js → CVNIqWCz.js} +2 -2
- package/lib/dist/_nuxt/{BwNtMX7v.js → CVziAYYM.js} +1 -1
- package/lib/dist/_nuxt/{xVsvxyFN.js → CXV9y0ij.js} +1 -1
- package/lib/dist/_nuxt/{Bmo45vb1.js → CXjFiOva.js} +1 -1
- package/lib/dist/_nuxt/{COzZ75BE.js → CYRe9VEh.js} +1 -1
- package/lib/dist/_nuxt/{Dy7Fxfea.js → CZfW7u7e.js} +1 -1
- package/lib/dist/_nuxt/C_0MCAHg.js +2 -0
- package/lib/dist/_nuxt/{DHhzMvUY.js → C_KncATK.js} +1 -1
- package/lib/dist/_nuxt/{BHvFET_1.js → C_r_z2w4.js} +1 -1
- package/lib/dist/_nuxt/{DuTGHMTZ.js → Ca68hr9N.js} +1 -1
- package/lib/dist/_nuxt/{B5XOKBjI.js → CaQmYARh.js} +1 -1
- package/lib/dist/_nuxt/{B4w8tHEf.js → Caap6ad5.js} +1 -1
- package/lib/dist/_nuxt/Can5iqu7.js +1 -0
- package/lib/dist/_nuxt/{CumiqXf7.js → CbXnLsg7.js} +1 -1
- package/lib/dist/_nuxt/{BkVBsUs7.js → Cc8KviHt.js} +2 -2
- package/lib/dist/_nuxt/{C2LFvZUN.js → CcKY7-rX.js} +2 -2
- package/lib/dist/_nuxt/{BqrLXvNe.js → Ccf8GJao.js} +1 -1
- package/lib/dist/_nuxt/{CLuKe_fT.js → Cd87RhmG.js} +1 -1
- package/lib/dist/_nuxt/{CGoFBv-S.js → CdAW-Pmn.js} +1 -1
- package/lib/dist/_nuxt/{CoJTDitE.js → CeOTGq8S.js} +2 -2
- package/lib/dist/_nuxt/{CpYnnah9.js → CeUvd5CG.js} +1 -1
- package/lib/dist/_nuxt/{CYpSrlPh.js → Ch8L35kx.js} +1 -1
- package/lib/dist/_nuxt/{DeiJLuN8.js → ChOVvzZi.js} +1 -1
- package/lib/dist/_nuxt/{DS9TSCsw.js → ChvF81cy.js} +1 -1
- package/lib/dist/_nuxt/{Bnayetoi.js → CjJR9ku8.js} +1 -1
- package/lib/dist/_nuxt/{qcgVJISv.js → CjLxSPxU.js} +1 -1
- package/lib/dist/_nuxt/{CUiPrnOA.js → CjiyXwOk.js} +1 -1
- package/lib/dist/_nuxt/{4p5F9hBn.js → Ck8SavWn.js} +1 -1
- package/lib/dist/_nuxt/{CY-umpv2.js → Ckrtr2Si.js} +1 -1
- package/lib/dist/_nuxt/{BvZfIYOw.js → ClgX2jSX.js} +1 -1
- package/lib/dist/_nuxt/{DxP-nfEC.js → CmHIFce4.js} +1 -1
- package/lib/dist/_nuxt/{BiyCj6F9.js → Cmi92uvW.js} +4 -4
- package/lib/dist/_nuxt/{Tog_yjwe.js → Cno1xGGH.js} +1 -1
- package/lib/dist/_nuxt/{DTIgeuov.js → CoIVRkRs.js} +2 -2
- package/lib/dist/_nuxt/{Dp03Bz--.js → CpVxdhe3.js} +1 -1
- package/lib/dist/_nuxt/{3fdRvCCy.js → CpWeSecD.js} +1 -1
- package/lib/dist/_nuxt/CpydMTRh.js +2 -0
- package/lib/dist/_nuxt/{BDWmjfg6.js → CqocAHnv.js} +1 -1
- package/lib/dist/_nuxt/CrsolQNu.js +2 -0
- package/lib/dist/_nuxt/{DID7jAGh.js → CsMB6UJB.js} +1 -1
- package/lib/dist/_nuxt/{CjWKi8WI.js → CtiXmthf.js} +1 -1
- package/lib/dist/_nuxt/{BiKFdSE2.js → CtrRzeqn.js} +2 -2
- package/lib/dist/_nuxt/{DYOpadwh.js → CvJ6cBZg.js} +1 -1
- package/lib/dist/_nuxt/{BLZezBti.js → CvJQycOH.js} +1 -1
- package/lib/dist/_nuxt/{RgrGrVar.js → CveN6MY0.js} +1 -1
- package/lib/dist/_nuxt/{BdAcoDOD.js → Cvf4IlAF.js} +1 -1
- package/lib/dist/_nuxt/{COkSW75E.js → CwXGZkgw.js} +1 -1
- package/lib/dist/_nuxt/{BfcNiwJm.js → Cwg1qVG3.js} +2 -2
- package/lib/dist/_nuxt/{lA0REAhs.js → CwglIeux.js} +1 -1
- package/lib/dist/_nuxt/{CnxZEFWN.js → CwzcEVHI.js} +1 -1
- package/lib/dist/_nuxt/{cjY5Hf50.js → Cx74SJIJ.js} +2 -2
- package/lib/dist/_nuxt/{DxIWAeh5.js → CyEUDpIZ.js} +1 -1
- package/lib/dist/_nuxt/{yluqkvFW.js → CzuZWkKi.js} +2 -2
- package/lib/dist/_nuxt/{BsCG6_t5.js → D-ULZAvr.js} +1 -1
- package/lib/dist/_nuxt/{Bg5wwbYB.js → D0MWYD9u.js} +2 -2
- package/lib/dist/_nuxt/{B_u_YqcL.js → D0MdXf-I.js} +1 -1
- package/lib/dist/_nuxt/{Vezsq5pc.js → D0lTgCiL.js} +1 -1
- package/lib/dist/_nuxt/D13Jpe71.js +1 -0
- package/lib/dist/_nuxt/{DAjBmuY8.js → D1WSfdBz.js} +2 -2
- package/lib/dist/_nuxt/{BzA-S3rc.js → D2hUzAIJ.js} +1 -1
- package/lib/dist/_nuxt/{DfZdmYLx.js → D2v4gSXy.js} +3 -3
- package/lib/dist/_nuxt/{C9siHYBR.js → D3yE50jn.js} +2 -2
- package/lib/dist/_nuxt/{BMcEsnd8.js → D4XRaUrE.js} +1 -1
- package/lib/dist/_nuxt/{BLXy3y_A.js → D58OV0x2.js} +1 -1
- package/lib/dist/_nuxt/{BuhJ4rY4.js → D7raIqCw.js} +1 -1
- package/lib/dist/_nuxt/{CRMJPIbJ.js → D86M42wR.js} +2 -2
- package/lib/dist/_nuxt/{B8QKymay.js → D87Esdzw.js} +1 -1
- package/lib/dist/_nuxt/{OslaI-1o.js → D8KkEwuG.js} +2 -2
- package/lib/dist/_nuxt/{BDxJYdK6.js → D8mGg8p3.js} +2 -2
- package/lib/dist/_nuxt/D8y_QymV.js +1 -0
- package/lib/dist/_nuxt/{D9eajlYc.js → DAE0H6cn.js} +2 -2
- package/lib/dist/_nuxt/DANQtblt.js +2 -0
- package/lib/dist/_nuxt/{BP0PseId.js → DAYX7_s6.js} +1 -1
- package/lib/dist/_nuxt/{DJ1Y7z-I.js → DBEHU1i8.js} +1 -1
- package/lib/dist/_nuxt/{BcwBv9GB.js → DDUq96bI.js} +1 -1
- package/lib/dist/_nuxt/{o2Vywl-H.js → DDncg9QB.js} +1 -1
- package/lib/dist/_nuxt/{DsJrb1nI.js → DEDBCwhz.js} +1 -1
- package/lib/dist/_nuxt/{CjEhR2ws.js → DEpLw3WP.js} +2 -2
- package/lib/dist/_nuxt/DEwjid9p.js +1 -0
- package/lib/dist/_nuxt/{Cr8Q8tPu.js → DFLo1Tyf.js} +1 -1
- package/lib/dist/_nuxt/{Dt1XZ-dT.js → DHne9z0s.js} +1 -1
- package/lib/dist/_nuxt/{B-IoKwno.js → DHwwmVq4.js} +1 -1
- package/lib/dist/_nuxt/{DeLYsJ35.js → DIwUs3Ba.js} +1 -1
- package/lib/dist/_nuxt/{D9V7WJRV.js → DIxWEKmp.js} +2 -2
- package/lib/dist/_nuxt/{BOjB8Iur.js → DKZtAEbi.js} +1 -1
- package/lib/dist/_nuxt/{N5zD6OYu.js → DK_LjI_d.js} +2 -2
- package/lib/dist/_nuxt/{DCyCGspM.js → DLgZMh7k.js} +2 -2
- package/lib/dist/_nuxt/{DNyOCYge.js → DNVg-DAK.js} +2 -2
- package/lib/dist/_nuxt/DOhAGoXx.js +1 -0
- package/lib/dist/_nuxt/{wE2b238O.js → DOhTCpLP.js} +1 -1
- package/lib/dist/_nuxt/DPIrVNpu.js +2 -0
- package/lib/dist/_nuxt/{BFGeur5y.js → DPiZHWmv.js} +1 -1
- package/lib/dist/_nuxt/{DhCfdE-S.js → DPvwYIe4.js} +2 -2
- package/lib/dist/_nuxt/{DQYlfQhI.js → DR3-ZZ6f.js} +2 -2
- package/lib/dist/_nuxt/DRw_Dh4U.js +1 -0
- package/lib/dist/_nuxt/{yd4iXUAH.js → DShHkyiK.js} +1 -1
- package/lib/dist/_nuxt/{CgemNdgi.js → DTBGgeX5.js} +1 -1
- package/lib/dist/_nuxt/{DgWM9QND.js → DTWPCMsX.js} +1 -1
- package/lib/dist/_nuxt/{BYeAlzmH.js → DThQY4jW.js} +2 -2
- package/lib/dist/_nuxt/{kHdMm7Ia.js → DV4c1hol.js} +1 -1
- package/lib/dist/_nuxt/{DhjCIkTM.js → DVo2fInm.js} +1 -1
- package/lib/dist/_nuxt/{Cf9rATwN.js → DW2SxN4U.js} +1 -1
- package/lib/dist/_nuxt/{Cyv2J_Eh.js → DW4mS2-E.js} +1 -1
- package/lib/dist/_nuxt/{Dm22wCnj.js → DWgfP12k.js} +2 -2
- package/lib/dist/_nuxt/{BWiEf5Q8.js → DWhMxXig.js} +1 -1
- package/lib/dist/_nuxt/{BcAgrix2.js → DYHT9W45.js} +2 -2
- package/lib/dist/_nuxt/{8nelJp1H.js → DYk50ONW.js} +1 -1
- package/lib/dist/_nuxt/{CW0qxcUd.js → DZ3fQXBC.js} +2 -2
- package/lib/dist/_nuxt/{DK5KFoxg.js → DZg_OLF6.js} +1 -1
- package/lib/dist/_nuxt/{ClM36jHa.js → D_bFc41P.js} +2 -2
- package/lib/dist/_nuxt/{D_qsPe1a.js → DaSR3TNr.js} +2 -2
- package/lib/dist/_nuxt/{DEtZQrqc.js → DaZBDg2f.js} +1 -1
- package/lib/dist/_nuxt/{B5Tmc1nh.js → DauyJKz3.js} +1 -1
- package/lib/dist/_nuxt/{DrHVm0_b.js → DbCVM54P.js} +3 -3
- package/lib/dist/_nuxt/{DLdhkiR1.js → DbGbCtZA.js} +1 -1
- package/lib/dist/_nuxt/{CjhAMb0e.js → DbQ8PEQZ.js} +1 -1
- package/lib/dist/_nuxt/{Doul1WC1.js → DePuxtA_.js} +1 -1
- package/lib/dist/_nuxt/{D0Ixu-2d.js → De_R8rrE.js} +1 -1
- package/lib/dist/_nuxt/{CdEISqkr.js → De_RKAA3.js} +2 -2
- package/lib/dist/_nuxt/{Du4GQqsD.js → DgD9_KW9.js} +2 -2
- package/lib/dist/_nuxt/{DmMnX8Ap.js → DgkuvGlL.js} +2 -2
- package/lib/dist/_nuxt/{Dl7beGcU.js → Diky6b8B.js} +1 -1
- package/lib/dist/_nuxt/{CR_iTixR.js → DjFxLMdW.js} +1 -1
- package/lib/dist/_nuxt/{C8D7ZQoo.js → DkhnRb2B.js} +1 -1
- package/lib/dist/_nuxt/{BzcRdSjL.js → Dl_k7PcY.js} +1 -1
- package/lib/dist/_nuxt/{Cyvv3q_1.js → Dl_zFQLa.js} +1 -1
- package/lib/dist/_nuxt/{CmrZvHjC.js → Dm1YWlhs.js} +1 -1
- package/lib/dist/_nuxt/{BEWPFIwa.js → Dm6wi6No.js} +1 -1
- package/lib/dist/_nuxt/{BE7ip4Qt.js → Dme6Ir5a.js} +2 -2
- package/lib/dist/_nuxt/{BmoKdN2h.js → DnFxlRi4.js} +1 -1
- package/lib/dist/_nuxt/{MmcLEC5o.js → DqHVb7w6.js} +1 -1
- package/lib/dist/_nuxt/{BLJLyCJW.js → Dqd3UFGy.js} +1 -1
- package/lib/dist/_nuxt/{D7y3R7Ve.js → DqyL5Uhs.js} +1 -1
- package/lib/dist/_nuxt/{DrKBqNbB.js → DsHvRxpH.js} +1 -1
- package/lib/dist/_nuxt/{BBl0m-42.js → DsURLYvZ.js} +2 -2
- package/lib/dist/_nuxt/{C4JQ9OHi.js → DtawBFI-.js} +2 -2
- package/lib/dist/_nuxt/{CxsGCxm3.js → DvgZT7js.js} +1 -1
- package/lib/dist/_nuxt/{nK1_ybEV.js → DvnUxboW.js} +1 -1
- package/lib/dist/_nuxt/{zErPCtcB.js → DxRO0DFU.js} +1 -1
- package/lib/dist/_nuxt/{Buq-jeAD.js → Dy4meA85.js} +1 -1
- package/lib/dist/_nuxt/{280IOBLC.js → DyjEoH9B.js} +2 -2
- package/lib/dist/_nuxt/{Dovr4y_N.js → Dz5Y7G3v.js} +1 -1
- package/lib/dist/_nuxt/{CfSPTPvX.js → EsjoHwle.js} +1 -1
- package/lib/dist/_nuxt/{Dw6QZof-.js → FJzXgD1q.js} +1 -1
- package/lib/dist/_nuxt/HgF9ENQO.js +1 -0
- package/lib/dist/_nuxt/{O2LGllLZ.js → INibGBS3.js} +1 -1
- package/lib/dist/_nuxt/{C-Bnpd2e.js → IyW17NS0.js} +1 -1
- package/lib/dist/_nuxt/{u2QnTgop.js → J2s5CnRS.js} +1 -1
- package/lib/dist/_nuxt/{CP1s9025.js → KY60TpFQ.js} +1 -1
- package/lib/dist/_nuxt/{Bg-tZGz_.js → L9TIwNpK.js} +1 -1
- package/lib/dist/_nuxt/{BPu-in_i.js → LAEswO5v.js} +1 -1
- package/lib/dist/_nuxt/{QpmejnYJ.js → LAiD9eOm.js} +1 -1
- package/lib/dist/_nuxt/{BWKx5AMV.js → LK2GcfhS.js} +3 -3
- package/lib/dist/_nuxt/{CKkNNjlN.js → LLghMu9r.js} +1 -1
- package/lib/dist/_nuxt/{_xiY6FSW.js → LMDDbn5I.js} +1 -1
- package/lib/dist/_nuxt/{VwKRn_Ub.js → LMIBhNmZ.js} +2 -2
- package/lib/dist/_nuxt/{CJL5s59L.js → LrQ3PXSl.js} +1 -1
- package/lib/dist/_nuxt/{Dty0Z0z-.js → Lu06hHio.js} +1 -1
- package/lib/dist/_nuxt/{CE_eotpK.js → Lv_gHbcP.js} +2 -2
- package/lib/dist/_nuxt/{M_38KAtu.js → MWyA65x_.js} +1 -1
- package/lib/dist/_nuxt/{D0skW1jq.js → NHZFd8bQ.js} +6 -6
- package/lib/dist/_nuxt/{CieNK_Hy.js → NuKLqi_C.js} +1 -1
- package/lib/dist/_nuxt/{B9joLcm_.js → P0QkPGdf.js} +2 -2
- package/lib/dist/_nuxt/{CSqy6vht.js → P1U7Y6XL.js} +1 -1
- package/lib/dist/_nuxt/{C4ETrJi7.js → QWjz_-lm.js} +1 -1
- package/lib/dist/_nuxt/QujOlhZj.js +2 -0
- package/lib/dist/_nuxt/{BSzJ4FxO.js → RCSYvIJN.js} +1 -1
- package/lib/dist/_nuxt/{Bx6zLbPy.js → ReAu2ibT.js} +1 -1
- package/lib/dist/_nuxt/{BTW1NQFl.js → TlYMG5Lb.js} +7 -7
- package/lib/dist/_nuxt/U6Yv1qW2.js +2 -0
- package/lib/dist/_nuxt/{BmU5H8v_.js → X3VQ5PkD.js} +2 -2
- package/lib/dist/_nuxt/{ugJET5xs.js → XZK4lLIj.js} +1 -1
- package/lib/dist/_nuxt/{DOx4axN9.js → Y45Pvb6W.js} +1 -1
- package/lib/dist/_nuxt/{BIgDKQss.js → ZJoY4cv8.js} +1 -1
- package/lib/dist/_nuxt/{CZK_s1tg.js → Zbz8jq1G.js} +1 -1
- package/lib/dist/_nuxt/aCruzJXG.js +1 -0
- package/lib/dist/_nuxt/{Bw11haZJ.js → aJ7vL21_.js} +1 -1
- package/lib/dist/_nuxt/{DOtEMrYm.js → bQDfPeIU.js} +1 -1
- package/lib/dist/_nuxt/builds/latest.json +1 -1
- package/lib/dist/_nuxt/builds/meta/4d3455d9-8566-4611-8871-432defb7e328.json +1 -0
- package/lib/dist/_nuxt/{C2Y5XRar.js → cBorlqEK.js} +2 -2
- package/lib/dist/_nuxt/{D48FTZfZ.js → cI3AFhs3.js} +1 -1
- package/lib/dist/_nuxt/{aDq49son.js → d-tLNYlP.js} +1 -1
- package/lib/dist/_nuxt/{CDSEzxpf.js → dHKlbiDl.js} +1 -1
- package/lib/dist/_nuxt/{C8vzQM9F.js → eKjPor-g.js} +2 -2
- package/lib/dist/_nuxt/{43F7ME7I.js → eskGEf7B.js} +1 -1
- package/lib/dist/_nuxt/{CxqNjWIa.js → euJqEUdj.js} +1 -1
- package/lib/dist/_nuxt/{CZ1dfjxk.js → gfY1oWFn.js} +1 -1
- package/lib/dist/_nuxt/{jdd8DREa.js → gkkS3OdB.js} +1 -1
- package/lib/dist/_nuxt/{BIaf71U6.js → hK_vol2i.js} +1 -1
- package/lib/dist/_nuxt/{Dyq8wlm2.js → iP1ZjiJa.js} +2 -2
- package/lib/dist/_nuxt/{BVg_3UXa.js → iSAFOGha.js} +2 -2
- package/lib/dist/_nuxt/{xZsSy3RW.js → ijWpAKHL.js} +1 -1
- package/lib/dist/_nuxt/{D5ELxc-k.js → jxmEYLWk.js} +1 -1
- package/lib/dist/_nuxt/{DUyMuvWw.js → kMYqkelq.js} +1 -1
- package/lib/dist/_nuxt/kgA_spNm.js +1 -0
- package/lib/dist/_nuxt/{Dyb0u-HW.js → kv4-NDtx.js} +3 -3
- package/lib/dist/_nuxt/{clwBgde6.js → l2p4hKoB.js} +1 -1
- package/lib/dist/_nuxt/{ClX7IuYy.js → lt6VDLdz.js} +1 -1
- package/lib/dist/_nuxt/{BkeBYOsG.js → m-_0Ui4u.js} +1 -1
- package/lib/dist/_nuxt/{EPaHYVRO.js → m9SI53XN.js} +1 -1
- package/lib/dist/_nuxt/{LWWX4jJK.js → mFTJNPpO.js} +2 -2
- package/lib/dist/_nuxt/{ebEXfNSo.js → natIdR_4.js} +1 -1
- package/lib/dist/_nuxt/{COU5RsPn.js → nhJGrFyW.js} +1 -1
- package/lib/dist/_nuxt/{tryzmhi-.js → oU1_jzX3.js} +2 -2
- package/lib/dist/_nuxt/{l5kmItbI.js → qMnjxg1z.js} +2 -2
- package/lib/dist/_nuxt/{D3xcU-9s.js → qUZV8ckr.js} +1 -1
- package/lib/dist/_nuxt/{BGeyVyh0.js → qq4q0aR6.js} +1 -1
- package/lib/dist/_nuxt/{Czkqqtnx.js → rLJJko6s.js} +2 -2
- package/lib/dist/_nuxt/{mMZq6K4Q.js → rNQe47vo.js} +1 -1
- package/lib/dist/_nuxt/{Ct1oIb_4.js → s-MsS4iB.js} +1 -1
- package/lib/dist/_nuxt/{DXFidnjK.js → s0RDr8Yh.js} +1 -1
- package/lib/dist/_nuxt/{BlXcT63I.js → tIh8AlSR.js} +1 -1
- package/lib/dist/_nuxt/{CWxOTqy6.js → uzC90Djt.js} +1 -1
- package/lib/dist/_nuxt/{Cupjn1oo.js → vLzSHf6u.js} +1 -1
- package/lib/dist/_nuxt/{CdLRqnlg.js → vMzl2isH.js} +2 -2
- package/lib/dist/_nuxt/{CA9orR1m.js → w_XtQjYV.js} +1 -1
- package/lib/dist/_nuxt/{spkU7cBe.js → wlN_Lind.js} +1 -1
- package/lib/dist/_nuxt/{DQ_P5qhG.js → xrjPLgbZ.js} +2 -2
- package/lib/dist/_nuxt/{BBNdAyDm.js → yYBIpa2d.js} +2 -2
- package/lib/dist/_nuxt/{CGnFnNNP.js → yvNBUCYV.js} +2 -2
- package/lib/dist/index.html +78 -78
- package/package.json +1 -1
- package/lib/dist/_nuxt/5k15r58b.js +0 -2
- package/lib/dist/_nuxt/6hwpPwDU.js +0 -1
- package/lib/dist/_nuxt/BOcIFZYZ.js +0 -1
- package/lib/dist/_nuxt/BRDmg5de.js +0 -1
- package/lib/dist/_nuxt/BWn7t3Vo.js +0 -1
- package/lib/dist/_nuxt/BieqjKAc.js +0 -1
- package/lib/dist/_nuxt/BkmIs3tY.js +0 -1
- package/lib/dist/_nuxt/C-eSTurT.js +0 -1
- package/lib/dist/_nuxt/CCLf8Ov5.js +0 -1
- package/lib/dist/_nuxt/CJLrQ8Hb.js +0 -2
- package/lib/dist/_nuxt/CPE_7hUe.js +0 -1
- package/lib/dist/_nuxt/CZhg4TfM.js +0 -2
- package/lib/dist/_nuxt/Cde3ly4N.js +0 -1
- package/lib/dist/_nuxt/Cng_fVI_.js +0 -1
- package/lib/dist/_nuxt/D64AfRxx.js +0 -1
- package/lib/dist/_nuxt/D7AJ3OTd.js +0 -1
- package/lib/dist/_nuxt/DG6rkk6h.js +0 -2
- package/lib/dist/_nuxt/DaW8Mwua.js +0 -1
- package/lib/dist/_nuxt/KYUg3rcO.js +0 -1
- package/lib/dist/_nuxt/VaTSRx_Q.js +0 -2
- package/lib/dist/_nuxt/builds/meta/78ffa04d-dc42-4d55-af86-caabed101676.json +0 -1
- package/lib/dist/_nuxt/mkTWPTBO.js +0 -2
- package/lib/dist/_nuxt/nQ8h8-3-.js +0 -2
- package/lib/dist/_nuxt/pBpIB2qI.js +0 -2
@@ -1 +1 @@
|
|
1
|
-
import{e as Te,R as Zn,f as L,S as Qn,aP as ce,z as I,_ as q,P as ke,h0 as et,r as ae,H as D,gx as Ee,bJ as nt,$ as tt,fV as at,ac as Be,hJ as rt,y as Ke,g as Ot,dp as Me,dn as xe,ax as Xe,eh as $e,ff as wt,aj as Nn,w as we,eK as Pt,b as be,aZ as Dn,o as Tt,F as Lt,G as It,hK as ot,T as At,ay as Ft,ab as En,g9 as fn,a1 as Mt,ba as Ie,ct as Ae,b8 as $t,A as Bt,e4 as _t,v as lt,eO as jt,gW as Rt}from"./D0skW1jq.js";import{L as Ht}from"./CP1s9025.js";import{e as pe}from"./Cyvv3q_1.js";var it=Symbol("TreeContextKey"),Vt=Te({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup:function(e,t){var a=t.slots;return Zn(it,L(function(){return e.value})),function(){var r;return(r=a.default)===null||r===void 0?void 0:r.call(a)}}}),On=function(){return Qn(it,L(function(){return{}}))},dt=Symbol("KeysStateKey"),Gt=function(e){Zn(dt,e)},ct=function(){return Qn(dt,{expandedKeys:ce([]),selectedKeys:ce([]),loadedKeys:ce([]),loadingKeys:ce([]),checkedKeys:ce([]),halfCheckedKeys:ce([]),expandedKeysSet:L(function(){return new Set}),selectedKeysSet:L(function(){return new Set}),loadedKeysSet:L(function(){return new Set}),loadingKeysSet:L(function(){return new Set}),checkedKeysSet:L(function(){return new Set}),halfCheckedKeysSet:L(function(){return new Set}),flattenNodes:ce([])})},zt=function(e){for(var t=e.prefixCls,a=e.level,r=e.isStart,c=e.isEnd,d="".concat(t,"-indent-unit"),l=[],u=0;u<a;u+=1){var f;l.push(I("span",{key:u,class:(f={},q(f,d,!0),q(f,"".concat(d,"-start"),r[u]),q(f,"".concat(d,"-end"),c[u]),f)},null))}return I("span",{"aria-hidden":"true",class:"".concat(t,"-indent")},[l])},ut={eventKey:[String,Number],prefixCls:String,title:ke.any,data:{type:Object,default:void 0},parent:{type:Object,default:void 0},isStart:{type:Array},isEnd:{type:Array},active:{type:Boolean,default:void 0},onMousemove:{type:Function},isLeaf:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},disableCheckbox:{type:Boolean,default:void 0},icon:ke.any,switcherIcon:ke.any,domRef:{type:Function}},Wt={prefixCls:{type:String},motion:{type:Object},focusable:{type:Boolean},activeItem:{type:Object},focused:{type:Boolean},tabindex:{type:Number},checkable:{type:Boolean},selectable:{type:Boolean},disabled:{type:Boolean},height:{type:Number},itemHeight:{type:Number},virtual:{type:Boolean},onScroll:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onActiveChange:{type:Function},onContextmenu:{type:Function},onListChangeStart:{type:Function},onListChangeEnd:{type:Function}},st=function(){return{prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:ke.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:ke.any,selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:ke.any,switcherIcon:ke.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String}}},qt=["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"],Mn="open",$n="close",Ut="---";const bn=Te({compatConfig:{MODE:3},name:"ATreeNode",inheritAttrs:!1,props:ut,isTreeNode:1,slots:["title","icon","switcherIcon"],setup:function(e,t){var a=t.attrs,r=t.slots,c=t.expose;et(!("slots"in e.data),"treeData slots is deprecated, please use ".concat(Object.keys(e.data.slots||{}).map(function(C){return"`v-slot:"+C+"` "}),"instead"));var d=ae(!1),l=On(),u=ct(),f=u.expandedKeysSet,b=u.selectedKeysSet,g=u.loadedKeysSet,p=u.loadingKeysSet,S=u.checkedKeysSet,x=u.halfCheckedKeysSet,E=l.value,o=E.dragOverNodeKey,h=E.dropPosition,K=E.keyEntities,P=L(function(){return xn(e.eventKey,{expandedKeysSet:f.value,selectedKeysSet:b.value,loadedKeysSet:g.value,loadingKeysSet:p.value,checkedKeysSet:S.value,halfCheckedKeysSet:x.value,dragOverNodeKey:o,dropPosition:h,keyEntities:K})}),B=pe(function(){return P.value.expanded}),j=pe(function(){return P.value.selected}),W=pe(function(){return P.value.checked}),te=pe(function(){return P.value.loaded}),z=pe(function(){return P.value.loading}),A=pe(function(){return P.value.halfChecked}),Q=pe(function(){return P.value.dragOver}),O=pe(function(){return P.value.dragOverGapTop}),w=pe(function(){return P.value.dragOverGapBottom}),F=pe(function(){return P.value.pos}),R=ae(),re=L(function(){var C=e.eventKey,i=l.value.keyEntities,m=i[C]||{},H=m.children;return!!(H||[]).length}),U=L(function(){var C=e.isLeaf,i=l.value.loadData,m=re.value;return C===!1?!1:C||!i&&!m||i&&te.value&&!m}),le=L(function(){return U.value?null:B.value?Mn:$n}),G=L(function(){var C=e.disabled,i=l.value.disabled;return!!(i||C)}),X=L(function(){var C=e.checkable,i=l.value.checkable;return!i||C===!1?!1:i}),ue=L(function(){var C=e.selectable,i=l.value.selectable;return typeof C=="boolean"?C:i}),J=L(function(){var C=e.data,i=e.active,m=e.checkable,H=e.disableCheckbox,k=e.disabled,s=e.selectable;return D(D({active:i,checkable:m,disableCheckbox:H,disabled:k,selectable:s},C),{},{dataRef:C,data:C,isLeaf:U.value,checked:W.value,expanded:B.value,loading:z.value,selected:j.value,halfChecked:A.value})}),fe=Ot(),ie=L(function(){var C=e.eventKey,i=l.value.keyEntities,m=i[C]||{},H=m.parent;return D(D({},Cn(Ee({},e,P.value))),{},{parent:H})}),ye=nt({eventData:ie,eventKey:L(function(){return e.eventKey}),selectHandle:R,pos:F,key:fe.vnode.key});c(ye);var Ce=function(i){var m=l.value.onNodeDoubleClick;m(i,ie.value)},je=function(i){if(!G.value){var m=l.value.onNodeSelect;i.preventDefault(),m(i,ie.value)}},Fe=function(i){if(!G.value){var m=e.disableCheckbox,H=l.value.onNodeCheck;if(!(!X.value||m)){i.preventDefault();var k=!W.value;H(i,ie.value,k)}}},Re=function(i){var m=l.value.onNodeClick;m(i,ie.value),ue.value?je(i):Fe(i)},Qe=function(i){var m=l.value.onNodeMouseEnter;m(i,ie.value)},en=function(i){var m=l.value.onNodeMouseLeave;m(i,ie.value)},nn=function(i){var m=l.value.onNodeContextMenu;m(i,ie.value)},tn=function(i){var m=l.value.onNodeDragStart;i.stopPropagation(),d.value=!0,m(i,ye);try{i.dataTransfer.setData("text/plain","")}catch{}},an=function(i){var m=l.value.onNodeDragEnter;i.preventDefault(),i.stopPropagation(),m(i,ye)},rn=function(i){var m=l.value.onNodeDragOver;i.preventDefault(),i.stopPropagation(),m(i,ye)},on=function(i){var m=l.value.onNodeDragLeave;i.stopPropagation(),m(i,ye)},He=function(i){var m=l.value.onNodeDragEnd;i.stopPropagation(),d.value=!1,m(i,ye)},Ve=function(i){var m=l.value.onNodeDrop;i.preventDefault(),i.stopPropagation(),d.value=!1,m(i,ye)},Ge=function(i){var m=l.value.onNodeExpand;z.value||m(i,ie.value)},ln=function(){var i=e.data,m=l.value.draggable;return!!(m&&(!m.nodeDraggable||m.nodeDraggable(i)))},dn=function(){var i=l.value,m=i.draggable,H=i.prefixCls;return m&&m!==null&&m!==void 0&&m.icon?I("span",{class:"".concat(H,"-draggable-icon")},[m.icon]):null},cn=function(){var i,m,H,k=e.switcherIcon,s=k===void 0?r.switcherIcon||((i=l.value.slots)===null||i===void 0?void 0:i[(m=e.data)===null||m===void 0||(H=m.slots)===null||H===void 0?void 0:H.switcherIcon]):k,v=l.value.switcherIcon,y=s||v;return typeof y=="function"?y(J.value):y},ze=function(){var i=l.value,m=i.loadData,H=i.onNodeLoad;z.value||m&&B.value&&!U.value&&!re.value&&!te.value&&H(ie.value)};tt(function(){ze()}),at(function(){ze()});var un=function(){var i=l.value.prefixCls,m=cn();if(U.value)return m!==!1?I("span",{class:Ke("".concat(i,"-switcher"),"".concat(i,"-switcher-noop"))},[m]):null;var H=Ke("".concat(i,"-switcher"),"".concat(i,"-switcher_").concat(B.value?Mn:$n));return m!==!1?I("span",{onClick:Ge,class:H},[m]):null},Le=function(){var i,m,H=e.disableCheckbox,k=l.value.prefixCls,s=G.value,v=X.value;return v?I("span",{class:Ke("".concat(k,"-checkbox"),W.value&&"".concat(k,"-checkbox-checked"),!W.value&&A.value&&"".concat(k,"-checkbox-indeterminate"),(s||H)&&"".concat(k,"-checkbox-disabled")),onClick:Fe},[(i=(m=l.value).customCheckable)===null||i===void 0?void 0:i.call(m)]):null},We=function(){var i=l.value.prefixCls;return I("span",{class:Ke("".concat(i,"-iconEle"),"".concat(i,"-icon__").concat(le.value||"docu"),z.value&&"".concat(i,"-icon_loading"))},null)},sn=function(){var i=e.disabled,m=e.eventKey,H=l.value,k=H.draggable,s=H.dropLevelOffset,v=H.dropPosition,y=H.prefixCls,_=H.indent,M=H.dropIndicatorRender,T=H.dragOverNodeKey,N=H.direction,$=k!==!1,V=!i&&$&&T===m;return V?M({dropPosition:v,dropLevelOffset:s,indent:_,prefixCls:y,direction:N}):null},Se=function(){var i,m,H,k,s=e.icon,v=s===void 0?r.icon:s,y=e.data,_=r.title||((i=l.value.slots)===null||i===void 0?void 0:i[(m=e.data)===null||m===void 0||(H=m.slots)===null||H===void 0?void 0:H.title])||((k=l.value.slots)===null||k===void 0?void 0:k.title)||e.title,M=l.value,T=M.prefixCls,N=M.showIcon,$=M.icon,V=M.loadData,Y=G.value,Z="".concat(T,"-node-content-wrapper"),ee;if(N){var oe,de,ve=v||((oe=l.value.slots)===null||oe===void 0?void 0:oe[y==null||(de=y.slots)===null||de===void 0?void 0:de.icon])||$;ee=ve?I("span",{class:Ke("".concat(T,"-iconEle"),"".concat(T,"-icon__customize"))},[typeof ve=="function"?ve(J.value):ve]):We()}else V&&z.value&&(ee=We());var se;typeof _=="function"?se=_(J.value):se=_,se=se===void 0?Ut:se;var ne=I("span",{class:"".concat(T,"-title")},[se]);return I("span",{ref:R,title:typeof _=="string"?_:"",class:Ke("".concat(Z),"".concat(Z,"-").concat(le.value||"normal"),!Y&&(j.value||d.value)&&"".concat(T,"-node-selected")),onMouseenter:Qe,onMouseleave:en,onContextmenu:nn,onClick:Re,onDblclick:Ce},[ee,ne,sn()])};return function(){var C,i=D(D({},e),a),m=i.eventKey,H=i.isLeaf,k=i.isStart,s=i.isEnd,v=i.domRef,y=i.active;i.data;var _=i.onMousemove,M=i.selectable,T=Be(i,qt),N=l.value,$=N.prefixCls,V=N.filterTreeNode,Y=N.keyEntities,Z=N.dropContainerKey,ee=N.dropTargetKey,oe=N.draggingNodeKey,de=G.value,ve=rt(T,{aria:!0,data:!0}),se=Y[m]||{},ne=se.level,he=s[s.length-1],ge=ln(),Ne=!de&&ge,qe=oe===m,vn=M!==void 0?{"aria-selected":!!M}:void 0;return I("div",D(D({ref:v,class:Ke(a.class,"".concat($,"-treenode"),(C={},q(C,"".concat($,"-treenode-disabled"),de),q(C,"".concat($,"-treenode-switcher-").concat(B.value?"open":"close"),!H),q(C,"".concat($,"-treenode-checkbox-checked"),W.value),q(C,"".concat($,"-treenode-checkbox-indeterminate"),A.value),q(C,"".concat($,"-treenode-selected"),j.value),q(C,"".concat($,"-treenode-loading"),z.value),q(C,"".concat($,"-treenode-active"),y),q(C,"".concat($,"-treenode-leaf-last"),he),q(C,"".concat($,"-treenode-draggable"),Ne),q(C,"dragging",qe),q(C,"drop-target",ee===m),q(C,"drop-container",Z===m),q(C,"drag-over",!de&&Q.value),q(C,"drag-over-gap-top",!de&&O.value),q(C,"drag-over-gap-bottom",!de&&w.value),q(C,"filter-node",V&&V(ie.value)),C)),style:a.style,draggable:Ne,"aria-grabbed":qe,onDragstart:Ne?tn:void 0,onDragenter:ge?an:void 0,onDragover:ge?rn:void 0,onDragleave:ge?on:void 0,onDrop:ge?Ve:void 0,onDragend:ge?He:void 0,onMousemove:_},vn),ve),[I(zt,{prefixCls:$,level:ne,isStart:k,isEnd:s},null),dn(),un(),Le(),Se()])}}});function De(n,e){if(!n)return[];var t=n.slice(),a=t.indexOf(e);return a>=0&&t.splice(a,1),t}function Oe(n,e){var t=(n||[]).slice();return t.indexOf(e)===-1&&t.push(e),t}function wn(n){return n.split("-")}function vt(n,e){return"".concat(n,"-").concat(e)}function Yt(n){return n&&n.type&&n.type.isTreeNode}function Xt(n,e){var t=[],a=e[n];function r(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];c.forEach(function(d){var l=d.key,u=d.children;t.push(l),r(u)})}return r(a.children),t}function Jt(n){if(n.parent){var e=wn(n.pos);return Number(e[e.length-1])===n.parent.children.length-1}return!1}function Zt(n){var e=wn(n.pos);return Number(e[e.length-1])===0}function Bn(n,e,t,a,r,c,d,l,u,f){var b,g=n.clientX,p=n.clientY,S=n.target.getBoundingClientRect(),x=S.top,E=S.height,o=(f==="rtl"?-1:1)*(((r==null?void 0:r.x)||0)-g),h=(o-12)/a,K=l[t.eventKey];if(p<x+E/2){var P=d.findIndex(function(re){return re.key===K.key}),B=P<=0?0:P-1,j=d[B].key;K=l[j]}var W=K.key,te=K,z=K.key,A=0,Q=0;if(!u.has(W))for(var O=0;O<h&&Jt(K);O+=1)K=K.parent,Q+=1;var w=e.eventData,F=K.node,R=!0;return Zt(K)&&K.level===0&&p<x+E/2&&c({dragNode:w,dropNode:F,dropPosition:-1})&&K.key===t.eventKey?A=-1:(te.children||[]).length&&u.has(z)?c({dragNode:w,dropNode:F,dropPosition:0})?A=0:R=!1:Q===0?h>-1.5?c({dragNode:w,dropNode:F,dropPosition:1})?A=1:R=!1:c({dragNode:w,dropNode:F,dropPosition:0})?A=0:c({dragNode:w,dropNode:F,dropPosition:1})?A=1:R=!1:c({dragNode:w,dropNode:F,dropPosition:1})?A=1:R=!1,{dropPosition:A,dropLevelOffset:Q,dropTargetKey:K.key,dropTargetPos:K.pos,dragOverNodeKey:z,dropContainerKey:A===0?null:((b=K.parent)===null||b===void 0?void 0:b.key)||null,dropAllowed:R}}function _n(n,e){if(n){var t=e.multiple;return t?n.slice():n.length?[n[0]]:n}}function yn(n){if(!n)return null;var e;if(Array.isArray(n))e={checkedKeys:n,halfCheckedKeys:void 0};else if(Me(n)==="object")e={checkedKeys:n.checked||void 0,halfCheckedKeys:n.halfChecked||void 0};else return null;return e}function mn(n,e){var t=new Set;function a(r){if(!t.has(r)){var c=e[r];if(c){t.add(r);var d=c.parent,l=c.node;l.disabled||d&&a(d.key)}}}return(n||[]).forEach(function(r){a(r)}),xe(t)}var Qt=["title","icon","switcherIcon"];function _e(n,e){return n??e}function Je(n){var e=n||{},t=e.title,a=e._title,r=e.key,c=e.children,d=t||"title";return{title:d,_title:a||[d],key:r||"key",children:c||"children"}}function kn(n){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=Xe(t);return a.map(function(r){var c,d,l,u;if(!Yt(r))return null;for(var f=r.children||{},b=r.key,g={},p=0,S=Object.entries(r.props);p<S.length;p++){var x=$e(S[p],2),E=x[0],o=x[1];g[wt(E)]=o}var h=g.isLeaf,K=g.checkable,P=g.selectable,B=g.disabled,j=g.disableCheckbox,W={isLeaf:h||h===""||void 0,checkable:K||K===""||void 0,selectable:P||P===""||void 0,disabled:B||B===""||void 0,disableCheckbox:j||j===""||void 0},te=D(D({},g),W),z=g.title,A=z===void 0?(c=f.title)===null||c===void 0?void 0:c.call(f,te):z,Q=g.icon,O=Q===void 0?(d=f.icon)===null||d===void 0?void 0:d.call(f,te):Q,w=g.switcherIcon,F=w===void 0?(l=f.switcherIcon)===null||l===void 0?void 0:l.call(f,te):w,R=Be(g,Qt),re=(u=f.default)===null||u===void 0?void 0:u.call(f),U=D(D({},R),{},{title:A,icon:O,switcherIcon:F,key:b,isLeaf:h},W),le=e(re);return le.length&&(U.children=le),U})}return e(n)}function ea(n,e,t){var a=Je(t),r=a._title,c=a.key,d=a.children,l=new Set(e===!0?[]:e),u=[];function f(b){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return b.map(function(p,S){for(var x=vt(g?g.pos:"0",S),E=_e(p[c],x),o,h=0;h<r.length;h+=1){var K=r[h];if(p[K]!==void 0){o=p[K];break}}var P=D(D({},Nn(p,[].concat(xe(r),[c,d]))),{},{title:o,key:E,parent:g,pos:x,children:null,data:p,isStart:[].concat(xe(g?g.isStart:[]),[S===0]),isEnd:[].concat(xe(g?g.isEnd:[]),[S===b.length-1])});return u.push(P),e===!0||l.has(E)?P.children=f(p[d]||[],P):P.children=[],P})}return f(n),u}function na(n,e,t){var a={};Me(t)==="object"?a=t:a={externalGetKey:t},a=a||{};var r=a,c=r.childrenPropName,d=r.externalGetKey,l=r.fieldNames,u=Je(l),f=u.key,b=u.children,g=c||b,p;d?typeof d=="string"?p=function(E){return E[d]}:typeof d=="function"&&(p=function(E){return d(E)}):p=function(E,o){return _e(E[f],o)};function S(x,E,o,h){var K=x?x[g]:n,P=x?vt(o.pos,E):"0",B=x?[].concat(xe(h),[x]):[];if(x){var j=p(x,P),W={node:x,index:E,pos:P,key:j,parentPos:o.node?o.pos:null,level:o.level+1,nodes:B};e(W)}K&&K.forEach(function(te,z){S(te,z,{node:x,pos:P,level:o?o.level+1:-1},B)})}S(null)}function ft(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.initWrapper,a=e.processEntity,r=e.onProcessFinished,c=e.externalGetKey,d=e.childrenPropName,l=e.fieldNames,u=arguments.length>2?arguments[2]:void 0,f=c||u,b={},g={},p={posEntities:b,keyEntities:g};return t&&(p=t(p)||p),na(n,function(S){var x=S.node,E=S.index,o=S.pos,h=S.key,K=S.parentPos,P=S.level,B=S.nodes,j={node:x,nodes:B,index:E,key:h,pos:o,level:P},W=_e(h,o);b[o]=j,g[W]=j,j.parent=b[K],j.parent&&(j.parent.children=j.parent.children||[],j.parent.children.push(j)),a&&a(j,p)},{externalGetKey:f,childrenPropName:d,fieldNames:l}),r&&r(p),p}function xn(n,e){var t=e.expandedKeysSet,a=e.selectedKeysSet,r=e.loadedKeysSet,c=e.loadingKeysSet,d=e.checkedKeysSet,l=e.halfCheckedKeysSet,u=e.dragOverNodeKey,f=e.dropPosition,b=e.keyEntities,g=b[n],p={eventKey:n,expanded:t.has(n),selected:a.has(n),loaded:r.has(n),loading:c.has(n),checked:d.has(n),halfChecked:l.has(n),pos:String(g?g.pos:""),parent:g.parent,dragOver:u===n&&f===0,dragOverGapTop:u===n&&f===-1,dragOverGapBottom:u===n&&f===1};return p}function Cn(n){var e=n.data,t=n.expanded,a=n.selected,r=n.checked,c=n.loaded,d=n.loading,l=n.halfChecked,u=n.dragOver,f=n.dragOverGapTop,b=n.dragOverGapBottom,g=n.pos,p=n.active,S=n.eventKey,x=D(D({dataRef:e},e),{},{expanded:t,selected:a,checked:r,loaded:c,loading:d,halfChecked:l,dragOver:u,dragOverGapTop:f,dragOverGapBottom:b,pos:g,active:p,eventKey:S,key:S});return"props"in x||Object.defineProperty(x,"props",{get:function(){return n}}),x}function yt(n,e){var t=new Set;return n.forEach(function(a){e.has(a)||t.add(a)}),t}function ta(n){var e=n||{},t=e.disabled,a=e.disableCheckbox,r=e.checkable;return!!(t||a)||r===!1}function aa(n,e,t,a){for(var r=new Set(n),c=new Set,d=0;d<=t;d+=1){var l=e.get(d)||new Set;l.forEach(function(g){var p=g.key,S=g.node,x=g.children,E=x===void 0?[]:x;r.has(p)&&!a(S)&&E.filter(function(o){return!a(o.node)}).forEach(function(o){r.add(o.key)})})}for(var u=new Set,f=t;f>=0;f-=1){var b=e.get(f)||new Set;b.forEach(function(g){var p=g.parent,S=g.node;if(!(a(S)||!g.parent||u.has(g.parent.key))){if(a(g.parent.node)){u.add(p.key);return}var x=!0,E=!1;(p.children||[]).filter(function(o){return!a(o.node)}).forEach(function(o){var h=o.key,K=r.has(h);x&&!K&&(x=!1),!E&&(K||c.has(h))&&(E=!0)}),x&&r.add(p.key),E&&c.add(p.key),u.add(p.key)}})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(yt(c,r))}}function ra(n,e,t,a,r){for(var c=new Set(n),d=new Set(e),l=0;l<=a;l+=1){var u=t.get(l)||new Set;u.forEach(function(p){var S=p.key,x=p.node,E=p.children,o=E===void 0?[]:E;!c.has(S)&&!d.has(S)&&!r(x)&&o.filter(function(h){return!r(h.node)}).forEach(function(h){c.delete(h.key)})})}d=new Set;for(var f=new Set,b=a;b>=0;b-=1){var g=t.get(b)||new Set;g.forEach(function(p){var S=p.parent,x=p.node;if(!(r(x)||!p.parent||f.has(p.parent.key))){if(r(p.parent.node)){f.add(S.key);return}var E=!0,o=!1;(S.children||[]).filter(function(h){return!r(h.node)}).forEach(function(h){var K=h.key,P=c.has(K);E&&!P&&(E=!1),!o&&(P||d.has(K))&&(o=!0)}),E||c.delete(S.key),o&&d.add(S.key),f.add(S.key)}})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(yt(d,c))}}function hn(n,e,t,a,r,c){var d;c?d=c:d=ta;var l=new Set(n.filter(function(f){var b=!!t[f];return b})),u;return e===!0?u=aa(l,r,a,d):u=ra(l,e.halfCheckedKeys,r,a,d),u}function oa(n){var e=ae(0),t=ce();return we(function(){var a=new Map,r=0,c=n.value||{};for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)){var l=c[d],u=l.level,f=a.get(u);f||(f=new Set,a.set(u,f)),f.add(l),r=Math.max(r,u)}e.value=r,t.value=a}),{maxLevel:e,levelEntities:t}}var la=["motion","motionNodes","motionType","active","eventKey"];const ia=Te({compatConfig:{MODE:3},name:"MotionTreeNode",inheritAttrs:!1,props:D(D({},ut),{},{active:Boolean,motion:Object,motionNodes:{type:Array},onMotionStart:Function,onMotionEnd:Function,motionType:String}),slots:["title","icon","switcherIcon","checkable"],setup:function(e,t){var a=t.attrs,r=t.slots,c=ae(!0),d=On(),l=ae(!1),u=L(function(){return e.motion?e.motion:Pt()}),f=function(g,p){if(p==="appear"){var S,x;(S=u.value)===null||S===void 0||(x=S.onAfterEnter)===null||x===void 0||x.call(S,g)}else if(p==="leave"){var E,o;(E=u.value)===null||E===void 0||(o=E.onAfterLeave)===null||o===void 0||o.call(E,g)}l.value||e.onMotionEnd(),l.value=!0};return be(function(){return e.motionNodes},function(){e.motionNodes&&e.motionType==="hide"&&c.value&&Dn(function(){c.value=!1})},{immediate:!0,flush:"post"}),tt(function(){e.motionNodes&&e.onMotionStart()}),Tt(function(){e.motionNodes&&f()}),function(){e.motion;var b=e.motionNodes,g=e.motionType,p=e.active,S=e.eventKey,x=Be(e,la);return b?I(At,D(D({},u.value),{},{appear:g==="show",onAfterAppear:function(o){return f(o,"appear")},onAfterLeave:function(o){return f(o,"leave")}}),{default:function(){return[Lt(I("div",{class:"".concat(d.value.prefixCls,"-treenode-motion")},[b.map(function(o){var h=Ee({},(ot(o.data),o.data)),K=o.title,P=o.key,B=o.isStart,j=o.isEnd;return delete h.children,I(bn,D(D({},h),{},{title:K,active:p,data:o.data,key:P,eventKey:P,isStart:B,isEnd:j}),r)})]),[[It,c.value]])]}}):I(bn,D(D({domRef:ae,class:a.class,style:a.style},x),{},{active:p,eventKey:S}),r)}}});function da(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=n.length,a=e.length;if(Math.abs(t-a)!==1)return{add:!1,key:null};function r(c,d){var l=new Map;c.forEach(function(f){l.set(f,!0)});var u=d.filter(function(f){return!l.has(f)});return u.length===1?u[0]:null}return t<a?{add:!0,key:r(n,e)}:{add:!1,key:r(e,n)}}function jn(n,e,t){var a=n.findIndex(function(l){return l.key===t}),r=n[a+1],c=e.findIndex(function(l){return l.key===t});if(r){var d=e.findIndex(function(l){return l.key===r.key});return e.slice(c+1,d)}return e.slice(c+1)}var ca=["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"],Rn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ua=function(){},Pe="RC_TREE_MOTION_".concat(Math.random()),Sn={key:Pe},ht={key:Pe,level:0,index:0,pos:"0",node:Sn,nodes:[Sn]},Hn={parent:null,children:[],pos:ht.pos,data:Sn,title:null,key:Pe,isStart:[],isEnd:[]};function Vn(n,e,t,a){return e===!1||!t?n:n.slice(0,Math.ceil(t/a)+1)}function Gn(n){var e=n.key,t=n.pos;return _e(e,t)}function sa(n){for(var e=String(n.key),t=n;t.parent;)t=t.parent,e="".concat(t.key," > ").concat(e);return e}const va=Te({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:Wt,setup:function(e,t){var a=t.expose,r=t.attrs,c=ae(),d=ae(),l=ct(),u=l.expandedKeys,f=l.flattenNodes;a({scrollTo:function(K){c.value.scrollTo(K)},getIndentWidth:function(){return d.value.offsetWidth}});var b=ce(f.value),g=ce([]),p=ae(null);function S(){b.value=f.value,g.value=[],p.value=null,e.onListChangeEnd()}var x=On();be([function(){return u.value.slice()},f],function(h,K){var P=$e(h,2),B=P[0],j=P[1],W=$e(K,2),te=W[0],z=W[1],A=da(te,B);if(A.key!==null){var Q=e.virtual,O=e.height,w=e.itemHeight;if(A.add){var F=z.findIndex(function(X){var ue=X.key;return ue===A.key}),R=Vn(jn(z,j,A.key),Q,O,w),re=z.slice();re.splice(F+1,0,Hn),b.value=re,g.value=R,p.value="show"}else{var U=j.findIndex(function(X){var ue=X.key;return ue===A.key}),le=Vn(jn(j,z,A.key),Q,O,w),G=j.slice();G.splice(U+1,0,Hn),b.value=G,g.value=le,p.value="hide"}}else z!==j&&(b.value=j)}),be(function(){return x.value.dragging},function(h){h||S()});var E=L(function(){return e.motion===void 0?b.value:f.value}),o=function(){e.onActiveChange(null)};return function(){var h=D(D({},e),r),K=h.prefixCls;h.selectable,h.checkable;var P=h.disabled,B=h.motion,j=h.height,W=h.itemHeight,te=h.virtual,z=h.focusable,A=h.activeItem,Q=h.focused,O=h.tabindex,w=h.onKeydown,F=h.onFocus,R=h.onBlur,re=h.onListChangeStart;h.onListChangeEnd;var U=Be(h,ca);return I(Ft,null,[Q&&A&&I("span",{style:Rn,"aria-live":"assertive"},[sa(A)]),I("div",null,[I("input",{style:Rn,disabled:z===!1||P,tabindex:z!==!1?O:null,onKeydown:w,onFocus:F,onBlur:R,value:"",onChange:ua,"aria-label":"for screen reader"},null)]),I("div",{class:"".concat(K,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[I("div",{class:"".concat(K,"-indent")},[I("div",{ref:d,class:"".concat(K,"-indent-unit")},null)])]),I(Ht,D(D({},Nn(U,["onActiveChange"])),{},{data:E.value,itemKey:Gn,height:j,fullHeight:!1,virtual:te,itemHeight:W,prefixCls:"".concat(K,"-list"),ref:c,onVisibleChange:function(G,X){var ue=new Set(G),J=X.filter(function(fe){return!ue.has(fe)});J.some(function(fe){return Gn(fe)===Pe})&&S()}}),{default:function(G){var X=G.pos,ue=Ee({},(ot(G.data),G.data)),J=G.title,fe=G.key,ie=G.isStart,ye=G.isEnd,Ce=_e(fe,X);return delete ue.key,delete ue.children,I(ia,D(D({},ue),{},{eventKey:Ce,title:J,active:!!A&&fe===A.key,data:G.data,isStart:ie,isEnd:ye,motion:B,motionNodes:fe===Pe?g.value:null,motionType:p.value,onMotionStart:re,onMotionEnd:S,onMousemove:o}),null)}})])}}});function fa(n){var e=n.dropPosition,t=n.dropLevelOffset,a=n.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"".concat(2,"px")};switch(e){case-1:r.top=0,r.left="".concat(-t*a,"px");break;case 1:r.bottom=0,r.left="".concat(-t*a,"px");break;case 0:r.bottom=0,r.left="".concat(a);break}return I("div",{style:r},null)}var ya=10;const ha=Te({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,slots:["checkable","title","icon","titleRender"],props:En(st(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:fa,allowDrop:function(){return!0}}),setup:function(e,t){var a=t.attrs,r=t.slots,c=t.expose,d=ae(!1),l={},u=ae(),f=ce([]),b=ce([]),g=ce([]),p=ce([]),S=ce([]),x=ce([]),E={},o=nt({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),h=ce([]);be([function(){return e.treeData},function(){return e.children}],function(){h.value=e.treeData!==void 0?fn(e.treeData).slice():kn(fn(e.children))},{immediate:!0,deep:!0});var K=ce({}),P=ae(!1),B=ae(null),j=ae(!1),W=L(function(){return Je(e.fieldNames)}),te=ae(),z=null,A=null,Q=null,O=L(function(){return{expandedKeysSet:w.value,selectedKeysSet:F.value,loadedKeysSet:R.value,loadingKeysSet:re.value,checkedKeysSet:U.value,halfCheckedKeysSet:le.value,dragOverNodeKey:o.dragOverNodeKey,dropPosition:o.dropPosition,keyEntities:K.value}}),w=L(function(){return new Set(x.value)}),F=L(function(){return new Set(f.value)}),R=L(function(){return new Set(p.value)}),re=L(function(){return new Set(S.value)}),U=L(function(){return new Set(b.value)}),le=L(function(){return new Set(g.value)});we(function(){if(h.value){var k=ft(h.value,{fieldNames:W.value});K.value=D(q({},Pe,ht),k.keyEntities)}});var G=!1;be([function(){return e.expandedKeys},function(){return e.autoExpandParent},K],function(k,s){var v=$e(k,2);v[0];var y=v[1],_=$e(s,2);_[0];var M=_[1],T=x.value;if(e.expandedKeys!==void 0||G&&y!==M)T=e.autoExpandParent||!G&&e.defaultExpandParent?mn(e.expandedKeys,K.value):e.expandedKeys;else if(!G&&e.defaultExpandAll){var N=D({},K.value);delete N[Pe],T=Object.keys(N).map(function($){return N[$].key})}else!G&&e.defaultExpandedKeys&&(T=e.autoExpandParent||e.defaultExpandParent?mn(e.defaultExpandedKeys,K.value):e.defaultExpandedKeys);T&&(x.value=T),G=!0},{immediate:!0});var X=ce([]);we(function(){X.value=ea(h.value,x.value,W.value)}),we(function(){e.selectable&&(e.selectedKeys!==void 0?f.value=_n(e.selectedKeys,e):!G&&e.defaultSelectedKeys&&(f.value=_n(e.defaultSelectedKeys,e)))});var ue=oa(K),J=ue.maxLevel,fe=ue.levelEntities;we(function(){if(e.checkable){var k;if(e.checkedKeys!==void 0?k=yn(e.checkedKeys)||{}:!G&&e.defaultCheckedKeys?k=yn(e.defaultCheckedKeys)||{}:h.value&&(k=yn(e.checkedKeys)||{checkedKeys:b.value,halfCheckedKeys:g.value}),k){var s=k,v=s.checkedKeys,y=v===void 0?[]:v,_=s.halfCheckedKeys,M=_===void 0?[]:_;if(!e.checkStrictly){var T=hn(y,!0,K.value,J.value,fe.value);y=T.checkedKeys,M=T.halfCheckedKeys}b.value=y,g.value=M}}}),we(function(){e.loadedKeys&&(p.value=e.loadedKeys)});var ie=function(){Ee(o,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},ye=function(s){te.value.scrollTo(s)};be(function(){return e.activeKey},function(){e.activeKey!==void 0&&(B.value=e.activeKey)},{immediate:!0}),be(B,function(k){Dn(function(){k!==null&&ye({key:k})})},{immediate:!0,flush:"post"});var Ce=function(s){e.expandedKeys===void 0&&(x.value=s)},je=function(){o.draggingNodeKey!==null&&Ee(o,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),z=null,Q=null},Fe=function(s,v){var y=e.onDragend;o.dragOverNodeKey=null,je(),y==null||y({event:s,node:v.eventData}),A=null},Re=function k(s){Fe(s,null),window.removeEventListener("dragend",k)},Qe=function(s,v){var y=e.onDragstart,_=v.eventKey,M=v.eventData;A=v,z={x:s.clientX,y:s.clientY};var T=De(x.value,_);o.draggingNodeKey=_,o.dragChildrenKeys=Xt(_,K.value),u.value=te.value.getIndentWidth(),Ce(T),window.addEventListener("dragend",Re),y&&y({event:s,node:M})},en=function(s,v){var y=e.onDragenter,_=e.onExpand,M=e.allowDrop,T=e.direction,N=v.pos,$=v.eventKey;if(Q!==$&&(Q=$),!A){ie();return}var V=Bn(s,A,v,u.value,z,M,X.value,K.value,w.value,T),Y=V.dropPosition,Z=V.dropLevelOffset,ee=V.dropTargetKey,oe=V.dropContainerKey,de=V.dropTargetPos,ve=V.dropAllowed,se=V.dragOverNodeKey;if(o.dragChildrenKeys.indexOf(ee)!==-1||!ve){ie();return}if(l||(l={}),Object.keys(l).forEach(function(ne){clearTimeout(l[ne])}),A.eventKey!==v.eventKey&&(l[N]=window.setTimeout(function(){if(o.draggingNodeKey!==null){var ne=x.value.slice(),he=K.value[v.eventKey];he&&(he.children||[]).length&&(ne=Oe(x.value,v.eventKey)),Ce(ne),_&&_(ne,{node:v.eventData,expanded:!0,nativeEvent:s})}},800)),A.eventKey===ee&&Z===0){ie();return}Ee(o,{dragOverNodeKey:se,dropPosition:Y,dropLevelOffset:Z,dropTargetKey:ee,dropContainerKey:oe,dropTargetPos:de,dropAllowed:ve}),y&&y({event:s,node:v.eventData,expandedKeys:x.value})},nn=function(s,v){var y=e.onDragover,_=e.allowDrop,M=e.direction;if(A){var T=Bn(s,A,v,u.value,z,_,X.value,K.value,w.value,M),N=T.dropPosition,$=T.dropLevelOffset,V=T.dropTargetKey,Y=T.dropContainerKey,Z=T.dropAllowed,ee=T.dropTargetPos,oe=T.dragOverNodeKey;o.dragChildrenKeys.indexOf(V)!==-1||!Z||(A.eventKey===V&&$===0?o.dropPosition===null&&o.dropLevelOffset===null&&o.dropTargetKey===null&&o.dropContainerKey===null&&o.dropTargetPos===null&&o.dropAllowed===!1&&o.dragOverNodeKey===null||ie():N===o.dropPosition&&$===o.dropLevelOffset&&V===o.dropTargetKey&&Y===o.dropContainerKey&&ee===o.dropTargetPos&&Z===o.dropAllowed&&oe===o.dragOverNodeKey||Ee(o,{dropPosition:N,dropLevelOffset:$,dropTargetKey:V,dropContainerKey:Y,dropTargetPos:ee,dropAllowed:Z,dragOverNodeKey:oe}),y&&y({event:s,node:v.eventData}))}},tn=function(s,v){Q===v.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(ie(),Q=null);var y=e.onDragleave;y&&y({event:s,node:v.eventData})},an=function(s,v){var y,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,M=o.dragChildrenKeys,T=o.dropPosition,N=o.dropTargetKey,$=o.dropTargetPos,V=o.dropAllowed;if(V){var Y=e.onDrop;if(o.dragOverNodeKey=null,je(),N!==null){var Z=D(D({},xn(N,fn(O.value))),{},{active:((y=C.value)===null||y===void 0?void 0:y.key)===N,data:K.value[N].node});M.indexOf(N);var ee=wn($),oe={event:s,node:Cn(Z),dragNode:A?A.eventData:null,dragNodesKeys:[A.eventKey].concat(M),dropToGap:T!==0,dropPosition:T+Number(ee[ee.length-1])};_||Y==null||Y(oe),A=null}}},rn=function(s,v){var y=e.onClick;y&&y(s,v)},on=function(s,v){var y=e.onDblclick;y&&y(s,v)},He=function(s,v){var y=f.value,_=e.onSelect,M=e.multiple,T=v.selected,N=v[W.value.key],$=!T;$?M?y=Oe(y,N):y=[N]:y=De(y,N);var V=K.value,Y=y.map(function(Z){var ee=V[Z];return ee?ee.node:null}).filter(function(Z){return Z});e.selectedKeys===void 0&&(f.value=y),_&&_(y,{event:"select",selected:$,node:v,selectedNodes:Y,nativeEvent:s})},Ve=function(s,v,y){var _=e.checkStrictly,M=e.onCheck,T=v[W.value.key],N,$={event:"check",node:v,checked:y,nativeEvent:s},V=K.value;if(_){var Y=y?Oe(b.value,T):De(b.value,T),Z=De(g.value,T);N={checked:Y,halfChecked:Z},$.checkedNodes=Y.map(function(ne){return V[ne]}).filter(function(ne){return ne}).map(function(ne){return ne.node}),e.checkedKeys===void 0&&(b.value=Y)}else{var ee=hn([].concat(xe(b.value),[T]),!0,V,J.value,fe.value),oe=ee.checkedKeys,de=ee.halfCheckedKeys;if(!y){var ve=new Set(oe);ve.delete(T);var se=hn(Array.from(ve),{checked:!1,halfCheckedKeys:de},V,J.value,fe.value);oe=se.checkedKeys,de=se.halfCheckedKeys}N=oe,$.checkedNodes=[],$.checkedNodesPositions=[],$.halfCheckedKeys=de,oe.forEach(function(ne){var he=V[ne];if(he){var ge=he.node,Ne=he.pos;$.checkedNodes.push(ge),$.checkedNodesPositions.push({node:ge,pos:Ne})}}),e.checkedKeys===void 0&&(b.value=oe,g.value=de)}M&&M(N,$)},Ge=function(s){var v=s[W.value.key],y=new Promise(function(_,M){var T=e.loadData,N=e.onLoad;if(!T||R.value.has(v)||re.value.has(v))return null;var $=T(s);$.then(function(){var V=Oe(p.value,v),Y=De(S.value,v);N&&N(V,{event:"load",node:s}),e.loadedKeys===void 0&&(p.value=V),S.value=Y,_()}).catch(function(V){var Y=De(S.value,v);if(S.value=Y,E[v]=(E[v]||0)+1,E[v]>=ya){var Z=Oe(p.value,v);e.loadedKeys===void 0&&(p.value=Z),_()}M(V)}),S.value=Oe(S.value,v)});return y.catch(function(){}),y},ln=function(s,v){var y=e.onMouseenter;y&&y({event:s,node:v})},dn=function(s,v){var y=e.onMouseleave;y&&y({event:s,node:v})},cn=function(s,v){var y=e.onRightClick;y&&(s.preventDefault(),y({event:s,node:v}))},ze=function(s){var v=e.onFocus;P.value=!0,v&&v(s)},un=function(s){var v=e.onBlur;P.value=!1,Se(null),v&&v(s)},Le=function(s,v){var y=x.value,_=e.onExpand,M=e.loadData,T=v.expanded,N=v[W.value.key];if(!j.value){y.indexOf(N);var $=!T;if($?y=Oe(y,N):y=De(y,N),Ce(y),_&&_(y,{node:v,expanded:$,nativeEvent:s}),$&&M){var V=Ge(v);V&&V.then(function(){}).catch(function(Y){var Z=De(x.value,N);Ce(Z),Promise.reject(Y)})}}},We=function(){j.value=!0},sn=function(){setTimeout(function(){j.value=!1})},Se=function(s){var v=e.onActiveChange;B.value!==s&&(e.activeKey!==void 0&&(B.value=s),s!==null&&ye({key:s}),v&&v(s))},C=L(function(){return B.value===null?null:X.value.find(function(k){var s=k.key;return s===B.value})||null}),i=function(s){var v=X.value.findIndex(function(M){var T=M.key;return T===B.value});v===-1&&s<0&&(v=X.value.length),v=(v+s+X.value.length)%X.value.length;var y=X.value[v];if(y){var _=y.key;Se(_)}else Se(null)},m=L(function(){return Cn(D(D({},xn(B.value,O.value)),{},{data:C.value.data,active:!0}))}),H=function(s){var v=e.onKeydown,y=e.checkable,_=e.selectable;switch(s.which){case Ie.UP:{i(-1),s.preventDefault();break}case Ie.DOWN:{i(1),s.preventDefault();break}}var M=C.value;if(M&&M.data){var T=M.data.isLeaf===!1||!!(M.data.children||[]).length,N=m.value;switch(s.which){case Ie.LEFT:{T&&w.value.has(B.value)?Le({},N):M.parent&&Se(M.parent.key),s.preventDefault();break}case Ie.RIGHT:{T&&!w.value.has(B.value)?Le({},N):M.children&&M.children.length&&Se(M.children[0].key),s.preventDefault();break}case Ie.ENTER:case Ie.SPACE:{y&&!N.disabled&&N.checkable!==!1&&!N.disableCheckbox?Ve({},N,!U.value.has(B.value)):!y&&_&&!N.disabled&&N.selectable!==!1&&He({},N);break}}}v&&v(s)};return c({onNodeExpand:Le,scrollTo:ye,onKeydown:H,selectedKeys:L(function(){return f.value}),checkedKeys:L(function(){return b.value}),halfCheckedKeys:L(function(){return g.value}),loadedKeys:L(function(){return p.value}),loadingKeys:L(function(){return S.value}),expandedKeys:L(function(){return x.value})}),Mt(function(){window.removeEventListener("dragend",Re),d.value=!0}),Gt({expandedKeys:x,selectedKeys:f,loadedKeys:p,loadingKeys:S,checkedKeys:b,halfCheckedKeys:g,expandedKeysSet:w,selectedKeysSet:F,loadedKeysSet:R,loadingKeysSet:re,checkedKeysSet:U,halfCheckedKeysSet:le,flattenNodes:X}),function(){var k,s=o.draggingNodeKey,v=o.dropLevelOffset,y=o.dropContainerKey,_=o.dropTargetKey,M=o.dropPosition,T=o.dragOverNodeKey,N=e.prefixCls,$=e.showLine,V=e.focusable,Y=e.tabindex,Z=Y===void 0?0:Y,ee=e.selectable,oe=e.showIcon,de=e.icon,ve=de===void 0?r.icon:de,se=e.switcherIcon,ne=e.draggable,he=e.checkable,ge=e.checkStrictly,Ne=e.disabled,qe=e.motion,vn=e.loadData,pt=e.filterTreeNode,Kt=e.height,bt=e.itemHeight,mt=e.virtual,kt=e.dropIndicatorRender,xt=e.onContextmenu,Ct=e.onScroll,St=e.direction,Nt=a.class,Dt=a.style,Et=rt(D(D({},e),a),{aria:!0,data:!0}),Ue;return ne&&(Me(ne)==="object"?Ue=ne:typeof ne=="function"?Ue={nodeDraggable:ne}:Ue={}),I(Vt,{value:{prefixCls:N,selectable:ee,showIcon:oe,icon:ve,switcherIcon:se,draggable:Ue,draggingNodeKey:s,checkable:he,customCheckable:r.checkable,checkStrictly:ge,disabled:Ne,keyEntities:K.value,dropLevelOffset:v,dropContainerKey:y,dropTargetKey:_,dropPosition:M,dragOverNodeKey:T,dragging:s!==null,indent:u.value,direction:St,dropIndicatorRender:kt,loadData:vn,filterTreeNode:pt,onNodeClick:rn,onNodeDoubleClick:on,onNodeExpand:Le,onNodeSelect:He,onNodeCheck:Ve,onNodeLoad:Ge,onNodeMouseEnter:ln,onNodeMouseLeave:dn,onNodeContextMenu:cn,onNodeDragStart:Qe,onNodeDragEnter:en,onNodeDragOver:nn,onNodeDragLeave:tn,onNodeDragEnd:Fe,onNodeDrop:an,slots:r}},{default:function(){return[I("div",{role:"tree",class:Ke(N,Nt,(k={},q(k,"".concat(N,"-show-line"),$),q(k,"".concat(N,"-focused"),P.value),q(k,"".concat(N,"-active-focused"),B.value!==null),k))},[I(va,D({ref:te,prefixCls:N,style:Dt,disabled:Ne,selectable:ee,checkable:!!he,motion:qe,height:Kt,itemHeight:bt,virtual:mt,focusable:V,focused:P.value,tabindex:Z,activeItem:C.value,onFocus:ze,onBlur:un,onKeydown:H,onActiveChange:Se,onListChangeStart:We,onListChangeEnd:sn,onContextmenu:xt,onScroll:Ct},Et),null)])]}})}}});var ga={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};function zn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){pa(n,r,t[r])})}return n}function pa(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Ze=function(e,t){var a=zn({},e,t.attrs);return I(Ae,zn({},a,{icon:ga}),null)};Ze.displayName="FileOutlined";Ze.inheritAttrs=!1;var Ka={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};function Wn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){ba(n,r,t[r])})}return n}function ba(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Pn=function(e,t){var a=Wn({},e,t.attrs);return I(Ae,Wn({},a,{icon:Ka}),null)};Pn.displayName="MinusSquareOutlined";Pn.inheritAttrs=!1;var ma={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};function qn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){ka(n,r,t[r])})}return n}function ka(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Tn=function(e,t){var a=qn({},e,t.attrs);return I(Ae,qn({},a,{icon:ma}),null)};Tn.displayName="PlusSquareOutlined";Tn.inheritAttrs=!1;var xa={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};function Un(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Ca(n,r,t[r])})}return n}function Ca(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Ln=function(e,t){var a=Un({},e,t.attrs);return I(Ae,Un({},a,{icon:xa}),null)};Ln.displayName="CaretDownFilled";Ln.inheritAttrs=!1;function Sa(n,e,t,a){var r=a.isLeaf,c=a.expanded,d=a.loading,l=e;if(d)return I($t,{class:"".concat(n,"-switcher-loading-icon")},null);var u;t&&Me(t)==="object"&&(u=t.showLeafIcon);var f=null,b="".concat(n,"-switcher-icon");return r?(t&&(Me(t)==="object"&&!u?f=I("span",{class:"".concat(n,"-switcher-leaf-line")},null):f=I(Ze,{class:"".concat(n,"-switcher-line-icon")},null)),f):(f=I(Ln,{class:b},null),t&&(f=c?I(Pn,{class:"".concat(n,"-switcher-line-icon")},null):I(Tn,{class:"".concat(n,"-switcher-line-icon")},null)),typeof e=="function"?l=e(D(D({},a),{},{defaultIcon:f,switcherCls:b})):Bt(l)&&(l=_t(l,{class:b})),l||f)}var Yn=4;function Na(n){var e,t=n.dropPosition,a=n.dropLevelOffset,r=n.prefixCls,c=n.indent,d=n.direction,l=d===void 0?"ltr":d,u=l==="ltr"?"left":"right",f=l==="ltr"?"right":"left",b=(e={},q(e,u,"".concat(-a*c+Yn,"px")),q(e,f,0),e);switch(t){case-1:b.top="".concat(-3,"px");break;case 1:b.bottom="".concat(-3,"px");break;default:b.bottom="".concat(-3,"px"),b[u]="".concat(c+Yn,"px");break}return I("div",{style:b,class:"".concat(r,"-drop-indicator")},null)}var gt=function(){var e=st();return D(D({},e),{},{showLine:{type:[Boolean,Object],default:void 0},multiple:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandParent:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},checkedKeys:{type:[Array,Object]},defaultCheckedKeys:{type:Array},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array},selectable:{type:Boolean,default:void 0},loadedKeys:{type:Array},draggable:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:void 0},icon:{type:Function},switcherIcon:ke.any,prefixCls:String,replaceFields:{type:Object},blockNode:{type:Boolean,default:void 0},openAnimation:ke.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":Function,"onUpdate:checkedKeys":Function,"onUpdate:expandedKeys":Function})};const Ye=Te({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:En(gt(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:["icon","title","switcherIcon","titleRender"],setup:function(e,t){var a=t.attrs,r=t.expose,c=t.emit,d=t.slots;et(!(e.treeData===void 0&&d.default));var l=lt("tree",e),u=l.prefixCls,f=l.direction,b=l.virtual,g=ae(),p=function(h){var K;(K=g.value)===null||K===void 0||K.scrollTo(h)};r({treeRef:g,onNodeExpand:function(){for(var h,K=arguments.length,P=new Array(K),B=0;B<K;B++)P[B]=arguments[B];(h=g.value)===null||h===void 0||h.onNodeExpand.apply(h,P)},scrollTo:p,selectedKeys:L(function(){var o;return(o=g.value)===null||o===void 0?void 0:o.selectedKeys}),checkedKeys:L(function(){var o;return(o=g.value)===null||o===void 0?void 0:o.checkedKeys}),halfCheckedKeys:L(function(){var o;return(o=g.value)===null||o===void 0?void 0:o.halfCheckedKeys}),loadedKeys:L(function(){var o;return(o=g.value)===null||o===void 0?void 0:o.loadedKeys}),loadingKeys:L(function(){var o;return(o=g.value)===null||o===void 0?void 0:o.loadingKeys}),expandedKeys:L(function(){var o;return(o=g.value)===null||o===void 0?void 0:o.expandedKeys})}),we(function(){jt(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});var S=function(h,K){c("update:checkedKeys",h),c("check",h,K)},x=function(h,K){c("update:expandedKeys",h),c("expand",h,K)},E=function(h,K){c("update:selectedKeys",h),c("select",h,K)};return function(){var o,h=e.showIcon,K=e.showLine,P=e.switcherIcon,B=P===void 0?d.switcherIcon:P,j=e.icon,W=j===void 0?d.icon:j,te=e.blockNode,z=e.checkable,A=e.selectable,Q=e.fieldNames,O=Q===void 0?e.replaceFields:Q,w=e.motion,F=w===void 0?e.openAnimation:w,R=e.itemHeight,re=R===void 0?28:R,U=e.onDoubleclick,le=e.onDblclick,G=D(D(D({},a),Nn(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{},{showLine:!!K,dropIndicatorRender:Na,fieldNames:O,icon:W,itemHeight:re}),X=d.default?Xe(d.default()):void 0;return I(ha,D(D({},G),{},{virtual:b.value,motion:F,ref:g,prefixCls:u.value,class:Ke((o={},q(o,"".concat(u.value,"-icon-hide"),!h),q(o,"".concat(u.value,"-block-node"),te),q(o,"".concat(u.value,"-unselectable"),!A),q(o,"".concat(u.value,"-rtl"),f.value==="rtl"),o),a.class),direction:f.value,checkable:z,selectable:A,switcherIcon:function(J){return Sa(u.value,B,K,J)},onCheck:S,onExpand:x,onSelect:E,onDblclick:le||U,children:X}),D(D({},d),{},{checkable:function(){return I("span",{class:"".concat(u.value,"-checkbox-inner")},null)}}))}}});var Da={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};function Xn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Ea(n,r,t[r])})}return n}function Ea(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var In=function(e,t){var a=Xn({},e,t.attrs);return I(Ae,Xn({},a,{icon:Da}),null)};In.displayName="FolderOpenOutlined";In.inheritAttrs=!1;var Oa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};function Jn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){wa(n,r,t[r])})}return n}function wa(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var An=function(e,t){var a=Jn({},e,t.attrs);return I(Ae,Jn({},a,{icon:Oa}),null)};An.displayName="FolderOutlined";An.inheritAttrs=!1;var me;(function(n){n[n.None=0]="None",n[n.Start=1]="Start",n[n.End=2]="End"})(me||(me={}));function Fn(n,e,t){function a(r){var c=r[e.key],d=r[e.children];t(c,r)!==!1&&Fn(d||[],e,t)}n.forEach(a)}function Pa(n){var e=n.treeData,t=n.expandedKeys,a=n.startKey,r=n.endKey,c=n.fieldNames,d=c===void 0?{title:"title",key:"key",children:"children"}:c,l=[],u=me.None;if(a&&a===r)return[a];if(!a||!r)return[];function f(b){return b===a||b===r}return Fn(e,d,function(b){if(u===me.End)return!1;if(f(b)){if(l.push(b),u===me.None)u=me.Start;else if(u===me.Start)return u=me.End,!1}else u===me.Start&&l.push(b);return t.indexOf(b)!==-1}),l}function gn(n,e,t){var a=xe(e),r=[];return Fn(n,t,function(c,d){var l=a.indexOf(c);return l!==-1&&(r.push(d),a.splice(l,1)),!!a.length}),r}var Ta=["icon","blockNode"],La=function(){return D(D({},gt()),{},{expandAction:{type:[Boolean,String]}})};function Ia(n){var e=n.isLeaf,t=n.expanded;return e?I(Ze,null,null):t?I(In,null,null):I(An,null,null)}const pn=Te({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:En(La(),{showIcon:!0,expandAction:"click"}),slots:["icon","title","switcherIcon","titleRender"],setup:function(e,t){var a,r=t.attrs,c=t.slots,d=t.emit,l=t.expose,u=ae(e.treeData||kn(Xe((a=c.default)===null||a===void 0?void 0:a.call(c))));be(function(){return e.treeData},function(){u.value=e.treeData}),at(function(){Dn(function(){if(e.treeData===void 0&&c.default){var O;u.value=kn(Xe((O=c.default)===null||O===void 0?void 0:O.call(c)))}})});var f=ae(),b=ae(),g=L(function(){return Je(e.fieldNames)}),p=ae(),S=function(w){var F;(F=p.value)===null||F===void 0||F.scrollTo(w)};l({scrollTo:S,selectedKeys:L(function(){var O;return(O=p.value)===null||O===void 0?void 0:O.selectedKeys}),checkedKeys:L(function(){var O;return(O=p.value)===null||O===void 0?void 0:O.checkedKeys}),halfCheckedKeys:L(function(){var O;return(O=p.value)===null||O===void 0?void 0:O.halfCheckedKeys}),loadedKeys:L(function(){var O;return(O=p.value)===null||O===void 0?void 0:O.loadedKeys}),loadingKeys:L(function(){var O;return(O=p.value)===null||O===void 0?void 0:O.loadingKeys}),expandedKeys:L(function(){var O;return(O=p.value)===null||O===void 0?void 0:O.expandedKeys})});var x=function(){var w=ft(u.value,{fieldNames:g.value}),F=w.keyEntities,R;return e.defaultExpandAll?R=Object.keys(F):e.defaultExpandParent?R=mn(e.expandedKeys||e.defaultExpandedKeys||[],F):R=e.expandedKeys||e.defaultExpandedKeys,R},E=ae(e.selectedKeys||e.defaultSelectedKeys||[]),o=ae(x());be(function(){return e.selectedKeys},function(){e.selectedKeys!==void 0&&(E.value=e.selectedKeys)},{immediate:!0}),be(function(){return e.expandedKeys},function(){e.expandedKeys!==void 0&&(o.value=e.expandedKeys)},{immediate:!0});var h=function(w,F){var R=F.isLeaf;R||w.shiftKey||w.metaKey||w.ctrlKey||p.value.onNodeExpand(w,F)},K=Rt(h,200,{leading:!0}),P=function(w,F){e.expandedKeys===void 0&&(o.value=w),d("update:expandedKeys",w),d("expand",w,F)},B=function(w,F){var R=e.expandAction;R==="click"&&K(w,F),d("click",w,F)},j=function(w,F){var R=e.expandAction;(R==="dblclick"||R==="doubleclick")&&K(w,F),d("doubleclick",w,F),d("dblclick",w,F)},W=function(w,F){var R=e.multiple,re=F.node,U=F.nativeEvent,le=re[g.value.key],G=D(D({},F),{},{selected:!0}),X=(U==null?void 0:U.ctrlKey)||(U==null?void 0:U.metaKey),ue=U==null?void 0:U.shiftKey,J;R&&X?(J=w,f.value=le,b.value=J,G.selectedNodes=gn(u.value,J,g.value)):R&&ue?(J=Array.from(new Set([].concat(xe(b.value||[]),xe(Pa({treeData:u.value,expandedKeys:o.value,startKey:le,endKey:f.value,fieldNames:g.value}))))),G.selectedNodes=gn(u.value,J,g.value)):(J=[le],f.value=le,b.value=J,G.selectedNodes=gn(u.value,J,g.value)),d("update:selectedKeys",J),d("select",J,G),e.selectedKeys===void 0&&(E.value=J)},te=function(w,F){d("update:checkedKeys",w),d("check",w,F)},z=lt("tree",e),A=z.prefixCls,Q=z.direction;return function(){var O=Ke("".concat(A.value,"-directory"),q({},"".concat(A.value,"-directory-rtl"),Q.value==="rtl"),r.class),w=e.icon,F=w===void 0?c.icon:w,R=e.blockNode,re=R===void 0?!0:R,U=Be(e,Ta);return I(Ye,D(D(D({},r),{},{icon:F||Ia,ref:p,blockNode:re},U),{},{prefixCls:A.value,class:O,expandedKeys:o.value,selectedKeys:E.value,onSelect:W,onClick:B,onDblclick:j,onExpand:P,onCheck:te}),c)}}});var Kn=bn;const Ba=Ee(Ye,{DirectoryTree:pn,TreeNode:Kn,install:function(e){return e.component(Ye.name,Ye),e.component(Kn.name,Kn),e.component(pn.name,pn),e}});export{Ba as _,hn as a,De as b,ft as c,Oe as d,oa as u};
|
1
|
+
import{e as Te,R as Zn,f as L,S as Qn,aP as ce,z as I,_ as q,P as ke,h0 as et,r as ae,H as D,gx as Ee,bJ as nt,$ as tt,fV as at,ac as Be,hJ as rt,y as Ke,g as Ot,dp as Me,dn as xe,ax as Xe,eh as $e,ff as wt,aj as Nn,w as we,eK as Pt,b as be,aZ as Dn,o as Tt,F as Lt,G as It,hK as ot,T as At,ay as Ft,ab as En,g9 as fn,a1 as Mt,ba as Ie,ct as Ae,b8 as $t,A as Bt,e4 as _t,v as lt,eO as jt,gW as Rt}from"./NHZFd8bQ.js";import{L as Ht}from"./KY60TpFQ.js";import{e as pe}from"./Dl_zFQLa.js";var it=Symbol("TreeContextKey"),Vt=Te({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup:function(e,t){var a=t.slots;return Zn(it,L(function(){return e.value})),function(){var r;return(r=a.default)===null||r===void 0?void 0:r.call(a)}}}),On=function(){return Qn(it,L(function(){return{}}))},dt=Symbol("KeysStateKey"),Gt=function(e){Zn(dt,e)},ct=function(){return Qn(dt,{expandedKeys:ce([]),selectedKeys:ce([]),loadedKeys:ce([]),loadingKeys:ce([]),checkedKeys:ce([]),halfCheckedKeys:ce([]),expandedKeysSet:L(function(){return new Set}),selectedKeysSet:L(function(){return new Set}),loadedKeysSet:L(function(){return new Set}),loadingKeysSet:L(function(){return new Set}),checkedKeysSet:L(function(){return new Set}),halfCheckedKeysSet:L(function(){return new Set}),flattenNodes:ce([])})},zt=function(e){for(var t=e.prefixCls,a=e.level,r=e.isStart,c=e.isEnd,d="".concat(t,"-indent-unit"),l=[],u=0;u<a;u+=1){var f;l.push(I("span",{key:u,class:(f={},q(f,d,!0),q(f,"".concat(d,"-start"),r[u]),q(f,"".concat(d,"-end"),c[u]),f)},null))}return I("span",{"aria-hidden":"true",class:"".concat(t,"-indent")},[l])},ut={eventKey:[String,Number],prefixCls:String,title:ke.any,data:{type:Object,default:void 0},parent:{type:Object,default:void 0},isStart:{type:Array},isEnd:{type:Array},active:{type:Boolean,default:void 0},onMousemove:{type:Function},isLeaf:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},disableCheckbox:{type:Boolean,default:void 0},icon:ke.any,switcherIcon:ke.any,domRef:{type:Function}},Wt={prefixCls:{type:String},motion:{type:Object},focusable:{type:Boolean},activeItem:{type:Object},focused:{type:Boolean},tabindex:{type:Number},checkable:{type:Boolean},selectable:{type:Boolean},disabled:{type:Boolean},height:{type:Number},itemHeight:{type:Number},virtual:{type:Boolean},onScroll:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onActiveChange:{type:Function},onContextmenu:{type:Function},onListChangeStart:{type:Function},onListChangeEnd:{type:Function}},st=function(){return{prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:ke.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:ke.any,selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:ke.any,switcherIcon:ke.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String}}},qt=["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"],Mn="open",$n="close",Ut="---";const bn=Te({compatConfig:{MODE:3},name:"ATreeNode",inheritAttrs:!1,props:ut,isTreeNode:1,slots:["title","icon","switcherIcon"],setup:function(e,t){var a=t.attrs,r=t.slots,c=t.expose;et(!("slots"in e.data),"treeData slots is deprecated, please use ".concat(Object.keys(e.data.slots||{}).map(function(C){return"`v-slot:"+C+"` "}),"instead"));var d=ae(!1),l=On(),u=ct(),f=u.expandedKeysSet,b=u.selectedKeysSet,g=u.loadedKeysSet,p=u.loadingKeysSet,S=u.checkedKeysSet,x=u.halfCheckedKeysSet,E=l.value,o=E.dragOverNodeKey,h=E.dropPosition,K=E.keyEntities,P=L(function(){return xn(e.eventKey,{expandedKeysSet:f.value,selectedKeysSet:b.value,loadedKeysSet:g.value,loadingKeysSet:p.value,checkedKeysSet:S.value,halfCheckedKeysSet:x.value,dragOverNodeKey:o,dropPosition:h,keyEntities:K})}),B=pe(function(){return P.value.expanded}),j=pe(function(){return P.value.selected}),W=pe(function(){return P.value.checked}),te=pe(function(){return P.value.loaded}),z=pe(function(){return P.value.loading}),A=pe(function(){return P.value.halfChecked}),Q=pe(function(){return P.value.dragOver}),O=pe(function(){return P.value.dragOverGapTop}),w=pe(function(){return P.value.dragOverGapBottom}),F=pe(function(){return P.value.pos}),R=ae(),re=L(function(){var C=e.eventKey,i=l.value.keyEntities,m=i[C]||{},H=m.children;return!!(H||[]).length}),U=L(function(){var C=e.isLeaf,i=l.value.loadData,m=re.value;return C===!1?!1:C||!i&&!m||i&&te.value&&!m}),le=L(function(){return U.value?null:B.value?Mn:$n}),G=L(function(){var C=e.disabled,i=l.value.disabled;return!!(i||C)}),X=L(function(){var C=e.checkable,i=l.value.checkable;return!i||C===!1?!1:i}),ue=L(function(){var C=e.selectable,i=l.value.selectable;return typeof C=="boolean"?C:i}),J=L(function(){var C=e.data,i=e.active,m=e.checkable,H=e.disableCheckbox,k=e.disabled,s=e.selectable;return D(D({active:i,checkable:m,disableCheckbox:H,disabled:k,selectable:s},C),{},{dataRef:C,data:C,isLeaf:U.value,checked:W.value,expanded:B.value,loading:z.value,selected:j.value,halfChecked:A.value})}),fe=Ot(),ie=L(function(){var C=e.eventKey,i=l.value.keyEntities,m=i[C]||{},H=m.parent;return D(D({},Cn(Ee({},e,P.value))),{},{parent:H})}),ye=nt({eventData:ie,eventKey:L(function(){return e.eventKey}),selectHandle:R,pos:F,key:fe.vnode.key});c(ye);var Ce=function(i){var m=l.value.onNodeDoubleClick;m(i,ie.value)},je=function(i){if(!G.value){var m=l.value.onNodeSelect;i.preventDefault(),m(i,ie.value)}},Fe=function(i){if(!G.value){var m=e.disableCheckbox,H=l.value.onNodeCheck;if(!(!X.value||m)){i.preventDefault();var k=!W.value;H(i,ie.value,k)}}},Re=function(i){var m=l.value.onNodeClick;m(i,ie.value),ue.value?je(i):Fe(i)},Qe=function(i){var m=l.value.onNodeMouseEnter;m(i,ie.value)},en=function(i){var m=l.value.onNodeMouseLeave;m(i,ie.value)},nn=function(i){var m=l.value.onNodeContextMenu;m(i,ie.value)},tn=function(i){var m=l.value.onNodeDragStart;i.stopPropagation(),d.value=!0,m(i,ye);try{i.dataTransfer.setData("text/plain","")}catch{}},an=function(i){var m=l.value.onNodeDragEnter;i.preventDefault(),i.stopPropagation(),m(i,ye)},rn=function(i){var m=l.value.onNodeDragOver;i.preventDefault(),i.stopPropagation(),m(i,ye)},on=function(i){var m=l.value.onNodeDragLeave;i.stopPropagation(),m(i,ye)},He=function(i){var m=l.value.onNodeDragEnd;i.stopPropagation(),d.value=!1,m(i,ye)},Ve=function(i){var m=l.value.onNodeDrop;i.preventDefault(),i.stopPropagation(),d.value=!1,m(i,ye)},Ge=function(i){var m=l.value.onNodeExpand;z.value||m(i,ie.value)},ln=function(){var i=e.data,m=l.value.draggable;return!!(m&&(!m.nodeDraggable||m.nodeDraggable(i)))},dn=function(){var i=l.value,m=i.draggable,H=i.prefixCls;return m&&m!==null&&m!==void 0&&m.icon?I("span",{class:"".concat(H,"-draggable-icon")},[m.icon]):null},cn=function(){var i,m,H,k=e.switcherIcon,s=k===void 0?r.switcherIcon||((i=l.value.slots)===null||i===void 0?void 0:i[(m=e.data)===null||m===void 0||(H=m.slots)===null||H===void 0?void 0:H.switcherIcon]):k,v=l.value.switcherIcon,y=s||v;return typeof y=="function"?y(J.value):y},ze=function(){var i=l.value,m=i.loadData,H=i.onNodeLoad;z.value||m&&B.value&&!U.value&&!re.value&&!te.value&&H(ie.value)};tt(function(){ze()}),at(function(){ze()});var un=function(){var i=l.value.prefixCls,m=cn();if(U.value)return m!==!1?I("span",{class:Ke("".concat(i,"-switcher"),"".concat(i,"-switcher-noop"))},[m]):null;var H=Ke("".concat(i,"-switcher"),"".concat(i,"-switcher_").concat(B.value?Mn:$n));return m!==!1?I("span",{onClick:Ge,class:H},[m]):null},Le=function(){var i,m,H=e.disableCheckbox,k=l.value.prefixCls,s=G.value,v=X.value;return v?I("span",{class:Ke("".concat(k,"-checkbox"),W.value&&"".concat(k,"-checkbox-checked"),!W.value&&A.value&&"".concat(k,"-checkbox-indeterminate"),(s||H)&&"".concat(k,"-checkbox-disabled")),onClick:Fe},[(i=(m=l.value).customCheckable)===null||i===void 0?void 0:i.call(m)]):null},We=function(){var i=l.value.prefixCls;return I("span",{class:Ke("".concat(i,"-iconEle"),"".concat(i,"-icon__").concat(le.value||"docu"),z.value&&"".concat(i,"-icon_loading"))},null)},sn=function(){var i=e.disabled,m=e.eventKey,H=l.value,k=H.draggable,s=H.dropLevelOffset,v=H.dropPosition,y=H.prefixCls,_=H.indent,M=H.dropIndicatorRender,T=H.dragOverNodeKey,N=H.direction,$=k!==!1,V=!i&&$&&T===m;return V?M({dropPosition:v,dropLevelOffset:s,indent:_,prefixCls:y,direction:N}):null},Se=function(){var i,m,H,k,s=e.icon,v=s===void 0?r.icon:s,y=e.data,_=r.title||((i=l.value.slots)===null||i===void 0?void 0:i[(m=e.data)===null||m===void 0||(H=m.slots)===null||H===void 0?void 0:H.title])||((k=l.value.slots)===null||k===void 0?void 0:k.title)||e.title,M=l.value,T=M.prefixCls,N=M.showIcon,$=M.icon,V=M.loadData,Y=G.value,Z="".concat(T,"-node-content-wrapper"),ee;if(N){var oe,de,ve=v||((oe=l.value.slots)===null||oe===void 0?void 0:oe[y==null||(de=y.slots)===null||de===void 0?void 0:de.icon])||$;ee=ve?I("span",{class:Ke("".concat(T,"-iconEle"),"".concat(T,"-icon__customize"))},[typeof ve=="function"?ve(J.value):ve]):We()}else V&&z.value&&(ee=We());var se;typeof _=="function"?se=_(J.value):se=_,se=se===void 0?Ut:se;var ne=I("span",{class:"".concat(T,"-title")},[se]);return I("span",{ref:R,title:typeof _=="string"?_:"",class:Ke("".concat(Z),"".concat(Z,"-").concat(le.value||"normal"),!Y&&(j.value||d.value)&&"".concat(T,"-node-selected")),onMouseenter:Qe,onMouseleave:en,onContextmenu:nn,onClick:Re,onDblclick:Ce},[ee,ne,sn()])};return function(){var C,i=D(D({},e),a),m=i.eventKey,H=i.isLeaf,k=i.isStart,s=i.isEnd,v=i.domRef,y=i.active;i.data;var _=i.onMousemove,M=i.selectable,T=Be(i,qt),N=l.value,$=N.prefixCls,V=N.filterTreeNode,Y=N.keyEntities,Z=N.dropContainerKey,ee=N.dropTargetKey,oe=N.draggingNodeKey,de=G.value,ve=rt(T,{aria:!0,data:!0}),se=Y[m]||{},ne=se.level,he=s[s.length-1],ge=ln(),Ne=!de&&ge,qe=oe===m,vn=M!==void 0?{"aria-selected":!!M}:void 0;return I("div",D(D({ref:v,class:Ke(a.class,"".concat($,"-treenode"),(C={},q(C,"".concat($,"-treenode-disabled"),de),q(C,"".concat($,"-treenode-switcher-").concat(B.value?"open":"close"),!H),q(C,"".concat($,"-treenode-checkbox-checked"),W.value),q(C,"".concat($,"-treenode-checkbox-indeterminate"),A.value),q(C,"".concat($,"-treenode-selected"),j.value),q(C,"".concat($,"-treenode-loading"),z.value),q(C,"".concat($,"-treenode-active"),y),q(C,"".concat($,"-treenode-leaf-last"),he),q(C,"".concat($,"-treenode-draggable"),Ne),q(C,"dragging",qe),q(C,"drop-target",ee===m),q(C,"drop-container",Z===m),q(C,"drag-over",!de&&Q.value),q(C,"drag-over-gap-top",!de&&O.value),q(C,"drag-over-gap-bottom",!de&&w.value),q(C,"filter-node",V&&V(ie.value)),C)),style:a.style,draggable:Ne,"aria-grabbed":qe,onDragstart:Ne?tn:void 0,onDragenter:ge?an:void 0,onDragover:ge?rn:void 0,onDragleave:ge?on:void 0,onDrop:ge?Ve:void 0,onDragend:ge?He:void 0,onMousemove:_},vn),ve),[I(zt,{prefixCls:$,level:ne,isStart:k,isEnd:s},null),dn(),un(),Le(),Se()])}}});function De(n,e){if(!n)return[];var t=n.slice(),a=t.indexOf(e);return a>=0&&t.splice(a,1),t}function Oe(n,e){var t=(n||[]).slice();return t.indexOf(e)===-1&&t.push(e),t}function wn(n){return n.split("-")}function vt(n,e){return"".concat(n,"-").concat(e)}function Yt(n){return n&&n.type&&n.type.isTreeNode}function Xt(n,e){var t=[],a=e[n];function r(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];c.forEach(function(d){var l=d.key,u=d.children;t.push(l),r(u)})}return r(a.children),t}function Jt(n){if(n.parent){var e=wn(n.pos);return Number(e[e.length-1])===n.parent.children.length-1}return!1}function Zt(n){var e=wn(n.pos);return Number(e[e.length-1])===0}function Bn(n,e,t,a,r,c,d,l,u,f){var b,g=n.clientX,p=n.clientY,S=n.target.getBoundingClientRect(),x=S.top,E=S.height,o=(f==="rtl"?-1:1)*(((r==null?void 0:r.x)||0)-g),h=(o-12)/a,K=l[t.eventKey];if(p<x+E/2){var P=d.findIndex(function(re){return re.key===K.key}),B=P<=0?0:P-1,j=d[B].key;K=l[j]}var W=K.key,te=K,z=K.key,A=0,Q=0;if(!u.has(W))for(var O=0;O<h&&Jt(K);O+=1)K=K.parent,Q+=1;var w=e.eventData,F=K.node,R=!0;return Zt(K)&&K.level===0&&p<x+E/2&&c({dragNode:w,dropNode:F,dropPosition:-1})&&K.key===t.eventKey?A=-1:(te.children||[]).length&&u.has(z)?c({dragNode:w,dropNode:F,dropPosition:0})?A=0:R=!1:Q===0?h>-1.5?c({dragNode:w,dropNode:F,dropPosition:1})?A=1:R=!1:c({dragNode:w,dropNode:F,dropPosition:0})?A=0:c({dragNode:w,dropNode:F,dropPosition:1})?A=1:R=!1:c({dragNode:w,dropNode:F,dropPosition:1})?A=1:R=!1,{dropPosition:A,dropLevelOffset:Q,dropTargetKey:K.key,dropTargetPos:K.pos,dragOverNodeKey:z,dropContainerKey:A===0?null:((b=K.parent)===null||b===void 0?void 0:b.key)||null,dropAllowed:R}}function _n(n,e){if(n){var t=e.multiple;return t?n.slice():n.length?[n[0]]:n}}function yn(n){if(!n)return null;var e;if(Array.isArray(n))e={checkedKeys:n,halfCheckedKeys:void 0};else if(Me(n)==="object")e={checkedKeys:n.checked||void 0,halfCheckedKeys:n.halfChecked||void 0};else return null;return e}function mn(n,e){var t=new Set;function a(r){if(!t.has(r)){var c=e[r];if(c){t.add(r);var d=c.parent,l=c.node;l.disabled||d&&a(d.key)}}}return(n||[]).forEach(function(r){a(r)}),xe(t)}var Qt=["title","icon","switcherIcon"];function _e(n,e){return n??e}function Je(n){var e=n||{},t=e.title,a=e._title,r=e.key,c=e.children,d=t||"title";return{title:d,_title:a||[d],key:r||"key",children:c||"children"}}function kn(n){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=Xe(t);return a.map(function(r){var c,d,l,u;if(!Yt(r))return null;for(var f=r.children||{},b=r.key,g={},p=0,S=Object.entries(r.props);p<S.length;p++){var x=$e(S[p],2),E=x[0],o=x[1];g[wt(E)]=o}var h=g.isLeaf,K=g.checkable,P=g.selectable,B=g.disabled,j=g.disableCheckbox,W={isLeaf:h||h===""||void 0,checkable:K||K===""||void 0,selectable:P||P===""||void 0,disabled:B||B===""||void 0,disableCheckbox:j||j===""||void 0},te=D(D({},g),W),z=g.title,A=z===void 0?(c=f.title)===null||c===void 0?void 0:c.call(f,te):z,Q=g.icon,O=Q===void 0?(d=f.icon)===null||d===void 0?void 0:d.call(f,te):Q,w=g.switcherIcon,F=w===void 0?(l=f.switcherIcon)===null||l===void 0?void 0:l.call(f,te):w,R=Be(g,Qt),re=(u=f.default)===null||u===void 0?void 0:u.call(f),U=D(D({},R),{},{title:A,icon:O,switcherIcon:F,key:b,isLeaf:h},W),le=e(re);return le.length&&(U.children=le),U})}return e(n)}function ea(n,e,t){var a=Je(t),r=a._title,c=a.key,d=a.children,l=new Set(e===!0?[]:e),u=[];function f(b){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return b.map(function(p,S){for(var x=vt(g?g.pos:"0",S),E=_e(p[c],x),o,h=0;h<r.length;h+=1){var K=r[h];if(p[K]!==void 0){o=p[K];break}}var P=D(D({},Nn(p,[].concat(xe(r),[c,d]))),{},{title:o,key:E,parent:g,pos:x,children:null,data:p,isStart:[].concat(xe(g?g.isStart:[]),[S===0]),isEnd:[].concat(xe(g?g.isEnd:[]),[S===b.length-1])});return u.push(P),e===!0||l.has(E)?P.children=f(p[d]||[],P):P.children=[],P})}return f(n),u}function na(n,e,t){var a={};Me(t)==="object"?a=t:a={externalGetKey:t},a=a||{};var r=a,c=r.childrenPropName,d=r.externalGetKey,l=r.fieldNames,u=Je(l),f=u.key,b=u.children,g=c||b,p;d?typeof d=="string"?p=function(E){return E[d]}:typeof d=="function"&&(p=function(E){return d(E)}):p=function(E,o){return _e(E[f],o)};function S(x,E,o,h){var K=x?x[g]:n,P=x?vt(o.pos,E):"0",B=x?[].concat(xe(h),[x]):[];if(x){var j=p(x,P),W={node:x,index:E,pos:P,key:j,parentPos:o.node?o.pos:null,level:o.level+1,nodes:B};e(W)}K&&K.forEach(function(te,z){S(te,z,{node:x,pos:P,level:o?o.level+1:-1},B)})}S(null)}function ft(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.initWrapper,a=e.processEntity,r=e.onProcessFinished,c=e.externalGetKey,d=e.childrenPropName,l=e.fieldNames,u=arguments.length>2?arguments[2]:void 0,f=c||u,b={},g={},p={posEntities:b,keyEntities:g};return t&&(p=t(p)||p),na(n,function(S){var x=S.node,E=S.index,o=S.pos,h=S.key,K=S.parentPos,P=S.level,B=S.nodes,j={node:x,nodes:B,index:E,key:h,pos:o,level:P},W=_e(h,o);b[o]=j,g[W]=j,j.parent=b[K],j.parent&&(j.parent.children=j.parent.children||[],j.parent.children.push(j)),a&&a(j,p)},{externalGetKey:f,childrenPropName:d,fieldNames:l}),r&&r(p),p}function xn(n,e){var t=e.expandedKeysSet,a=e.selectedKeysSet,r=e.loadedKeysSet,c=e.loadingKeysSet,d=e.checkedKeysSet,l=e.halfCheckedKeysSet,u=e.dragOverNodeKey,f=e.dropPosition,b=e.keyEntities,g=b[n],p={eventKey:n,expanded:t.has(n),selected:a.has(n),loaded:r.has(n),loading:c.has(n),checked:d.has(n),halfChecked:l.has(n),pos:String(g?g.pos:""),parent:g.parent,dragOver:u===n&&f===0,dragOverGapTop:u===n&&f===-1,dragOverGapBottom:u===n&&f===1};return p}function Cn(n){var e=n.data,t=n.expanded,a=n.selected,r=n.checked,c=n.loaded,d=n.loading,l=n.halfChecked,u=n.dragOver,f=n.dragOverGapTop,b=n.dragOverGapBottom,g=n.pos,p=n.active,S=n.eventKey,x=D(D({dataRef:e},e),{},{expanded:t,selected:a,checked:r,loaded:c,loading:d,halfChecked:l,dragOver:u,dragOverGapTop:f,dragOverGapBottom:b,pos:g,active:p,eventKey:S,key:S});return"props"in x||Object.defineProperty(x,"props",{get:function(){return n}}),x}function yt(n,e){var t=new Set;return n.forEach(function(a){e.has(a)||t.add(a)}),t}function ta(n){var e=n||{},t=e.disabled,a=e.disableCheckbox,r=e.checkable;return!!(t||a)||r===!1}function aa(n,e,t,a){for(var r=new Set(n),c=new Set,d=0;d<=t;d+=1){var l=e.get(d)||new Set;l.forEach(function(g){var p=g.key,S=g.node,x=g.children,E=x===void 0?[]:x;r.has(p)&&!a(S)&&E.filter(function(o){return!a(o.node)}).forEach(function(o){r.add(o.key)})})}for(var u=new Set,f=t;f>=0;f-=1){var b=e.get(f)||new Set;b.forEach(function(g){var p=g.parent,S=g.node;if(!(a(S)||!g.parent||u.has(g.parent.key))){if(a(g.parent.node)){u.add(p.key);return}var x=!0,E=!1;(p.children||[]).filter(function(o){return!a(o.node)}).forEach(function(o){var h=o.key,K=r.has(h);x&&!K&&(x=!1),!E&&(K||c.has(h))&&(E=!0)}),x&&r.add(p.key),E&&c.add(p.key),u.add(p.key)}})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(yt(c,r))}}function ra(n,e,t,a,r){for(var c=new Set(n),d=new Set(e),l=0;l<=a;l+=1){var u=t.get(l)||new Set;u.forEach(function(p){var S=p.key,x=p.node,E=p.children,o=E===void 0?[]:E;!c.has(S)&&!d.has(S)&&!r(x)&&o.filter(function(h){return!r(h.node)}).forEach(function(h){c.delete(h.key)})})}d=new Set;for(var f=new Set,b=a;b>=0;b-=1){var g=t.get(b)||new Set;g.forEach(function(p){var S=p.parent,x=p.node;if(!(r(x)||!p.parent||f.has(p.parent.key))){if(r(p.parent.node)){f.add(S.key);return}var E=!0,o=!1;(S.children||[]).filter(function(h){return!r(h.node)}).forEach(function(h){var K=h.key,P=c.has(K);E&&!P&&(E=!1),!o&&(P||d.has(K))&&(o=!0)}),E||c.delete(S.key),o&&d.add(S.key),f.add(S.key)}})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(yt(d,c))}}function hn(n,e,t,a,r,c){var d;c?d=c:d=ta;var l=new Set(n.filter(function(f){var b=!!t[f];return b})),u;return e===!0?u=aa(l,r,a,d):u=ra(l,e.halfCheckedKeys,r,a,d),u}function oa(n){var e=ae(0),t=ce();return we(function(){var a=new Map,r=0,c=n.value||{};for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)){var l=c[d],u=l.level,f=a.get(u);f||(f=new Set,a.set(u,f)),f.add(l),r=Math.max(r,u)}e.value=r,t.value=a}),{maxLevel:e,levelEntities:t}}var la=["motion","motionNodes","motionType","active","eventKey"];const ia=Te({compatConfig:{MODE:3},name:"MotionTreeNode",inheritAttrs:!1,props:D(D({},ut),{},{active:Boolean,motion:Object,motionNodes:{type:Array},onMotionStart:Function,onMotionEnd:Function,motionType:String}),slots:["title","icon","switcherIcon","checkable"],setup:function(e,t){var a=t.attrs,r=t.slots,c=ae(!0),d=On(),l=ae(!1),u=L(function(){return e.motion?e.motion:Pt()}),f=function(g,p){if(p==="appear"){var S,x;(S=u.value)===null||S===void 0||(x=S.onAfterEnter)===null||x===void 0||x.call(S,g)}else if(p==="leave"){var E,o;(E=u.value)===null||E===void 0||(o=E.onAfterLeave)===null||o===void 0||o.call(E,g)}l.value||e.onMotionEnd(),l.value=!0};return be(function(){return e.motionNodes},function(){e.motionNodes&&e.motionType==="hide"&&c.value&&Dn(function(){c.value=!1})},{immediate:!0,flush:"post"}),tt(function(){e.motionNodes&&e.onMotionStart()}),Tt(function(){e.motionNodes&&f()}),function(){e.motion;var b=e.motionNodes,g=e.motionType,p=e.active,S=e.eventKey,x=Be(e,la);return b?I(At,D(D({},u.value),{},{appear:g==="show",onAfterAppear:function(o){return f(o,"appear")},onAfterLeave:function(o){return f(o,"leave")}}),{default:function(){return[Lt(I("div",{class:"".concat(d.value.prefixCls,"-treenode-motion")},[b.map(function(o){var h=Ee({},(ot(o.data),o.data)),K=o.title,P=o.key,B=o.isStart,j=o.isEnd;return delete h.children,I(bn,D(D({},h),{},{title:K,active:p,data:o.data,key:P,eventKey:P,isStart:B,isEnd:j}),r)})]),[[It,c.value]])]}}):I(bn,D(D({domRef:ae,class:a.class,style:a.style},x),{},{active:p,eventKey:S}),r)}}});function da(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=n.length,a=e.length;if(Math.abs(t-a)!==1)return{add:!1,key:null};function r(c,d){var l=new Map;c.forEach(function(f){l.set(f,!0)});var u=d.filter(function(f){return!l.has(f)});return u.length===1?u[0]:null}return t<a?{add:!0,key:r(n,e)}:{add:!1,key:r(e,n)}}function jn(n,e,t){var a=n.findIndex(function(l){return l.key===t}),r=n[a+1],c=e.findIndex(function(l){return l.key===t});if(r){var d=e.findIndex(function(l){return l.key===r.key});return e.slice(c+1,d)}return e.slice(c+1)}var ca=["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"],Rn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ua=function(){},Pe="RC_TREE_MOTION_".concat(Math.random()),Sn={key:Pe},ht={key:Pe,level:0,index:0,pos:"0",node:Sn,nodes:[Sn]},Hn={parent:null,children:[],pos:ht.pos,data:Sn,title:null,key:Pe,isStart:[],isEnd:[]};function Vn(n,e,t,a){return e===!1||!t?n:n.slice(0,Math.ceil(t/a)+1)}function Gn(n){var e=n.key,t=n.pos;return _e(e,t)}function sa(n){for(var e=String(n.key),t=n;t.parent;)t=t.parent,e="".concat(t.key," > ").concat(e);return e}const va=Te({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:Wt,setup:function(e,t){var a=t.expose,r=t.attrs,c=ae(),d=ae(),l=ct(),u=l.expandedKeys,f=l.flattenNodes;a({scrollTo:function(K){c.value.scrollTo(K)},getIndentWidth:function(){return d.value.offsetWidth}});var b=ce(f.value),g=ce([]),p=ae(null);function S(){b.value=f.value,g.value=[],p.value=null,e.onListChangeEnd()}var x=On();be([function(){return u.value.slice()},f],function(h,K){var P=$e(h,2),B=P[0],j=P[1],W=$e(K,2),te=W[0],z=W[1],A=da(te,B);if(A.key!==null){var Q=e.virtual,O=e.height,w=e.itemHeight;if(A.add){var F=z.findIndex(function(X){var ue=X.key;return ue===A.key}),R=Vn(jn(z,j,A.key),Q,O,w),re=z.slice();re.splice(F+1,0,Hn),b.value=re,g.value=R,p.value="show"}else{var U=j.findIndex(function(X){var ue=X.key;return ue===A.key}),le=Vn(jn(j,z,A.key),Q,O,w),G=j.slice();G.splice(U+1,0,Hn),b.value=G,g.value=le,p.value="hide"}}else z!==j&&(b.value=j)}),be(function(){return x.value.dragging},function(h){h||S()});var E=L(function(){return e.motion===void 0?b.value:f.value}),o=function(){e.onActiveChange(null)};return function(){var h=D(D({},e),r),K=h.prefixCls;h.selectable,h.checkable;var P=h.disabled,B=h.motion,j=h.height,W=h.itemHeight,te=h.virtual,z=h.focusable,A=h.activeItem,Q=h.focused,O=h.tabindex,w=h.onKeydown,F=h.onFocus,R=h.onBlur,re=h.onListChangeStart;h.onListChangeEnd;var U=Be(h,ca);return I(Ft,null,[Q&&A&&I("span",{style:Rn,"aria-live":"assertive"},[sa(A)]),I("div",null,[I("input",{style:Rn,disabled:z===!1||P,tabindex:z!==!1?O:null,onKeydown:w,onFocus:F,onBlur:R,value:"",onChange:ua,"aria-label":"for screen reader"},null)]),I("div",{class:"".concat(K,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[I("div",{class:"".concat(K,"-indent")},[I("div",{ref:d,class:"".concat(K,"-indent-unit")},null)])]),I(Ht,D(D({},Nn(U,["onActiveChange"])),{},{data:E.value,itemKey:Gn,height:j,fullHeight:!1,virtual:te,itemHeight:W,prefixCls:"".concat(K,"-list"),ref:c,onVisibleChange:function(G,X){var ue=new Set(G),J=X.filter(function(fe){return!ue.has(fe)});J.some(function(fe){return Gn(fe)===Pe})&&S()}}),{default:function(G){var X=G.pos,ue=Ee({},(ot(G.data),G.data)),J=G.title,fe=G.key,ie=G.isStart,ye=G.isEnd,Ce=_e(fe,X);return delete ue.key,delete ue.children,I(ia,D(D({},ue),{},{eventKey:Ce,title:J,active:!!A&&fe===A.key,data:G.data,isStart:ie,isEnd:ye,motion:B,motionNodes:fe===Pe?g.value:null,motionType:p.value,onMotionStart:re,onMotionEnd:S,onMousemove:o}),null)}})])}}});function fa(n){var e=n.dropPosition,t=n.dropLevelOffset,a=n.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"".concat(2,"px")};switch(e){case-1:r.top=0,r.left="".concat(-t*a,"px");break;case 1:r.bottom=0,r.left="".concat(-t*a,"px");break;case 0:r.bottom=0,r.left="".concat(a);break}return I("div",{style:r},null)}var ya=10;const ha=Te({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,slots:["checkable","title","icon","titleRender"],props:En(st(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:fa,allowDrop:function(){return!0}}),setup:function(e,t){var a=t.attrs,r=t.slots,c=t.expose,d=ae(!1),l={},u=ae(),f=ce([]),b=ce([]),g=ce([]),p=ce([]),S=ce([]),x=ce([]),E={},o=nt({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),h=ce([]);be([function(){return e.treeData},function(){return e.children}],function(){h.value=e.treeData!==void 0?fn(e.treeData).slice():kn(fn(e.children))},{immediate:!0,deep:!0});var K=ce({}),P=ae(!1),B=ae(null),j=ae(!1),W=L(function(){return Je(e.fieldNames)}),te=ae(),z=null,A=null,Q=null,O=L(function(){return{expandedKeysSet:w.value,selectedKeysSet:F.value,loadedKeysSet:R.value,loadingKeysSet:re.value,checkedKeysSet:U.value,halfCheckedKeysSet:le.value,dragOverNodeKey:o.dragOverNodeKey,dropPosition:o.dropPosition,keyEntities:K.value}}),w=L(function(){return new Set(x.value)}),F=L(function(){return new Set(f.value)}),R=L(function(){return new Set(p.value)}),re=L(function(){return new Set(S.value)}),U=L(function(){return new Set(b.value)}),le=L(function(){return new Set(g.value)});we(function(){if(h.value){var k=ft(h.value,{fieldNames:W.value});K.value=D(q({},Pe,ht),k.keyEntities)}});var G=!1;be([function(){return e.expandedKeys},function(){return e.autoExpandParent},K],function(k,s){var v=$e(k,2);v[0];var y=v[1],_=$e(s,2);_[0];var M=_[1],T=x.value;if(e.expandedKeys!==void 0||G&&y!==M)T=e.autoExpandParent||!G&&e.defaultExpandParent?mn(e.expandedKeys,K.value):e.expandedKeys;else if(!G&&e.defaultExpandAll){var N=D({},K.value);delete N[Pe],T=Object.keys(N).map(function($){return N[$].key})}else!G&&e.defaultExpandedKeys&&(T=e.autoExpandParent||e.defaultExpandParent?mn(e.defaultExpandedKeys,K.value):e.defaultExpandedKeys);T&&(x.value=T),G=!0},{immediate:!0});var X=ce([]);we(function(){X.value=ea(h.value,x.value,W.value)}),we(function(){e.selectable&&(e.selectedKeys!==void 0?f.value=_n(e.selectedKeys,e):!G&&e.defaultSelectedKeys&&(f.value=_n(e.defaultSelectedKeys,e)))});var ue=oa(K),J=ue.maxLevel,fe=ue.levelEntities;we(function(){if(e.checkable){var k;if(e.checkedKeys!==void 0?k=yn(e.checkedKeys)||{}:!G&&e.defaultCheckedKeys?k=yn(e.defaultCheckedKeys)||{}:h.value&&(k=yn(e.checkedKeys)||{checkedKeys:b.value,halfCheckedKeys:g.value}),k){var s=k,v=s.checkedKeys,y=v===void 0?[]:v,_=s.halfCheckedKeys,M=_===void 0?[]:_;if(!e.checkStrictly){var T=hn(y,!0,K.value,J.value,fe.value);y=T.checkedKeys,M=T.halfCheckedKeys}b.value=y,g.value=M}}}),we(function(){e.loadedKeys&&(p.value=e.loadedKeys)});var ie=function(){Ee(o,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},ye=function(s){te.value.scrollTo(s)};be(function(){return e.activeKey},function(){e.activeKey!==void 0&&(B.value=e.activeKey)},{immediate:!0}),be(B,function(k){Dn(function(){k!==null&&ye({key:k})})},{immediate:!0,flush:"post"});var Ce=function(s){e.expandedKeys===void 0&&(x.value=s)},je=function(){o.draggingNodeKey!==null&&Ee(o,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),z=null,Q=null},Fe=function(s,v){var y=e.onDragend;o.dragOverNodeKey=null,je(),y==null||y({event:s,node:v.eventData}),A=null},Re=function k(s){Fe(s,null),window.removeEventListener("dragend",k)},Qe=function(s,v){var y=e.onDragstart,_=v.eventKey,M=v.eventData;A=v,z={x:s.clientX,y:s.clientY};var T=De(x.value,_);o.draggingNodeKey=_,o.dragChildrenKeys=Xt(_,K.value),u.value=te.value.getIndentWidth(),Ce(T),window.addEventListener("dragend",Re),y&&y({event:s,node:M})},en=function(s,v){var y=e.onDragenter,_=e.onExpand,M=e.allowDrop,T=e.direction,N=v.pos,$=v.eventKey;if(Q!==$&&(Q=$),!A){ie();return}var V=Bn(s,A,v,u.value,z,M,X.value,K.value,w.value,T),Y=V.dropPosition,Z=V.dropLevelOffset,ee=V.dropTargetKey,oe=V.dropContainerKey,de=V.dropTargetPos,ve=V.dropAllowed,se=V.dragOverNodeKey;if(o.dragChildrenKeys.indexOf(ee)!==-1||!ve){ie();return}if(l||(l={}),Object.keys(l).forEach(function(ne){clearTimeout(l[ne])}),A.eventKey!==v.eventKey&&(l[N]=window.setTimeout(function(){if(o.draggingNodeKey!==null){var ne=x.value.slice(),he=K.value[v.eventKey];he&&(he.children||[]).length&&(ne=Oe(x.value,v.eventKey)),Ce(ne),_&&_(ne,{node:v.eventData,expanded:!0,nativeEvent:s})}},800)),A.eventKey===ee&&Z===0){ie();return}Ee(o,{dragOverNodeKey:se,dropPosition:Y,dropLevelOffset:Z,dropTargetKey:ee,dropContainerKey:oe,dropTargetPos:de,dropAllowed:ve}),y&&y({event:s,node:v.eventData,expandedKeys:x.value})},nn=function(s,v){var y=e.onDragover,_=e.allowDrop,M=e.direction;if(A){var T=Bn(s,A,v,u.value,z,_,X.value,K.value,w.value,M),N=T.dropPosition,$=T.dropLevelOffset,V=T.dropTargetKey,Y=T.dropContainerKey,Z=T.dropAllowed,ee=T.dropTargetPos,oe=T.dragOverNodeKey;o.dragChildrenKeys.indexOf(V)!==-1||!Z||(A.eventKey===V&&$===0?o.dropPosition===null&&o.dropLevelOffset===null&&o.dropTargetKey===null&&o.dropContainerKey===null&&o.dropTargetPos===null&&o.dropAllowed===!1&&o.dragOverNodeKey===null||ie():N===o.dropPosition&&$===o.dropLevelOffset&&V===o.dropTargetKey&&Y===o.dropContainerKey&&ee===o.dropTargetPos&&Z===o.dropAllowed&&oe===o.dragOverNodeKey||Ee(o,{dropPosition:N,dropLevelOffset:$,dropTargetKey:V,dropContainerKey:Y,dropTargetPos:ee,dropAllowed:Z,dragOverNodeKey:oe}),y&&y({event:s,node:v.eventData}))}},tn=function(s,v){Q===v.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(ie(),Q=null);var y=e.onDragleave;y&&y({event:s,node:v.eventData})},an=function(s,v){var y,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,M=o.dragChildrenKeys,T=o.dropPosition,N=o.dropTargetKey,$=o.dropTargetPos,V=o.dropAllowed;if(V){var Y=e.onDrop;if(o.dragOverNodeKey=null,je(),N!==null){var Z=D(D({},xn(N,fn(O.value))),{},{active:((y=C.value)===null||y===void 0?void 0:y.key)===N,data:K.value[N].node});M.indexOf(N);var ee=wn($),oe={event:s,node:Cn(Z),dragNode:A?A.eventData:null,dragNodesKeys:[A.eventKey].concat(M),dropToGap:T!==0,dropPosition:T+Number(ee[ee.length-1])};_||Y==null||Y(oe),A=null}}},rn=function(s,v){var y=e.onClick;y&&y(s,v)},on=function(s,v){var y=e.onDblclick;y&&y(s,v)},He=function(s,v){var y=f.value,_=e.onSelect,M=e.multiple,T=v.selected,N=v[W.value.key],$=!T;$?M?y=Oe(y,N):y=[N]:y=De(y,N);var V=K.value,Y=y.map(function(Z){var ee=V[Z];return ee?ee.node:null}).filter(function(Z){return Z});e.selectedKeys===void 0&&(f.value=y),_&&_(y,{event:"select",selected:$,node:v,selectedNodes:Y,nativeEvent:s})},Ve=function(s,v,y){var _=e.checkStrictly,M=e.onCheck,T=v[W.value.key],N,$={event:"check",node:v,checked:y,nativeEvent:s},V=K.value;if(_){var Y=y?Oe(b.value,T):De(b.value,T),Z=De(g.value,T);N={checked:Y,halfChecked:Z},$.checkedNodes=Y.map(function(ne){return V[ne]}).filter(function(ne){return ne}).map(function(ne){return ne.node}),e.checkedKeys===void 0&&(b.value=Y)}else{var ee=hn([].concat(xe(b.value),[T]),!0,V,J.value,fe.value),oe=ee.checkedKeys,de=ee.halfCheckedKeys;if(!y){var ve=new Set(oe);ve.delete(T);var se=hn(Array.from(ve),{checked:!1,halfCheckedKeys:de},V,J.value,fe.value);oe=se.checkedKeys,de=se.halfCheckedKeys}N=oe,$.checkedNodes=[],$.checkedNodesPositions=[],$.halfCheckedKeys=de,oe.forEach(function(ne){var he=V[ne];if(he){var ge=he.node,Ne=he.pos;$.checkedNodes.push(ge),$.checkedNodesPositions.push({node:ge,pos:Ne})}}),e.checkedKeys===void 0&&(b.value=oe,g.value=de)}M&&M(N,$)},Ge=function(s){var v=s[W.value.key],y=new Promise(function(_,M){var T=e.loadData,N=e.onLoad;if(!T||R.value.has(v)||re.value.has(v))return null;var $=T(s);$.then(function(){var V=Oe(p.value,v),Y=De(S.value,v);N&&N(V,{event:"load",node:s}),e.loadedKeys===void 0&&(p.value=V),S.value=Y,_()}).catch(function(V){var Y=De(S.value,v);if(S.value=Y,E[v]=(E[v]||0)+1,E[v]>=ya){var Z=Oe(p.value,v);e.loadedKeys===void 0&&(p.value=Z),_()}M(V)}),S.value=Oe(S.value,v)});return y.catch(function(){}),y},ln=function(s,v){var y=e.onMouseenter;y&&y({event:s,node:v})},dn=function(s,v){var y=e.onMouseleave;y&&y({event:s,node:v})},cn=function(s,v){var y=e.onRightClick;y&&(s.preventDefault(),y({event:s,node:v}))},ze=function(s){var v=e.onFocus;P.value=!0,v&&v(s)},un=function(s){var v=e.onBlur;P.value=!1,Se(null),v&&v(s)},Le=function(s,v){var y=x.value,_=e.onExpand,M=e.loadData,T=v.expanded,N=v[W.value.key];if(!j.value){y.indexOf(N);var $=!T;if($?y=Oe(y,N):y=De(y,N),Ce(y),_&&_(y,{node:v,expanded:$,nativeEvent:s}),$&&M){var V=Ge(v);V&&V.then(function(){}).catch(function(Y){var Z=De(x.value,N);Ce(Z),Promise.reject(Y)})}}},We=function(){j.value=!0},sn=function(){setTimeout(function(){j.value=!1})},Se=function(s){var v=e.onActiveChange;B.value!==s&&(e.activeKey!==void 0&&(B.value=s),s!==null&&ye({key:s}),v&&v(s))},C=L(function(){return B.value===null?null:X.value.find(function(k){var s=k.key;return s===B.value})||null}),i=function(s){var v=X.value.findIndex(function(M){var T=M.key;return T===B.value});v===-1&&s<0&&(v=X.value.length),v=(v+s+X.value.length)%X.value.length;var y=X.value[v];if(y){var _=y.key;Se(_)}else Se(null)},m=L(function(){return Cn(D(D({},xn(B.value,O.value)),{},{data:C.value.data,active:!0}))}),H=function(s){var v=e.onKeydown,y=e.checkable,_=e.selectable;switch(s.which){case Ie.UP:{i(-1),s.preventDefault();break}case Ie.DOWN:{i(1),s.preventDefault();break}}var M=C.value;if(M&&M.data){var T=M.data.isLeaf===!1||!!(M.data.children||[]).length,N=m.value;switch(s.which){case Ie.LEFT:{T&&w.value.has(B.value)?Le({},N):M.parent&&Se(M.parent.key),s.preventDefault();break}case Ie.RIGHT:{T&&!w.value.has(B.value)?Le({},N):M.children&&M.children.length&&Se(M.children[0].key),s.preventDefault();break}case Ie.ENTER:case Ie.SPACE:{y&&!N.disabled&&N.checkable!==!1&&!N.disableCheckbox?Ve({},N,!U.value.has(B.value)):!y&&_&&!N.disabled&&N.selectable!==!1&&He({},N);break}}}v&&v(s)};return c({onNodeExpand:Le,scrollTo:ye,onKeydown:H,selectedKeys:L(function(){return f.value}),checkedKeys:L(function(){return b.value}),halfCheckedKeys:L(function(){return g.value}),loadedKeys:L(function(){return p.value}),loadingKeys:L(function(){return S.value}),expandedKeys:L(function(){return x.value})}),Mt(function(){window.removeEventListener("dragend",Re),d.value=!0}),Gt({expandedKeys:x,selectedKeys:f,loadedKeys:p,loadingKeys:S,checkedKeys:b,halfCheckedKeys:g,expandedKeysSet:w,selectedKeysSet:F,loadedKeysSet:R,loadingKeysSet:re,checkedKeysSet:U,halfCheckedKeysSet:le,flattenNodes:X}),function(){var k,s=o.draggingNodeKey,v=o.dropLevelOffset,y=o.dropContainerKey,_=o.dropTargetKey,M=o.dropPosition,T=o.dragOverNodeKey,N=e.prefixCls,$=e.showLine,V=e.focusable,Y=e.tabindex,Z=Y===void 0?0:Y,ee=e.selectable,oe=e.showIcon,de=e.icon,ve=de===void 0?r.icon:de,se=e.switcherIcon,ne=e.draggable,he=e.checkable,ge=e.checkStrictly,Ne=e.disabled,qe=e.motion,vn=e.loadData,pt=e.filterTreeNode,Kt=e.height,bt=e.itemHeight,mt=e.virtual,kt=e.dropIndicatorRender,xt=e.onContextmenu,Ct=e.onScroll,St=e.direction,Nt=a.class,Dt=a.style,Et=rt(D(D({},e),a),{aria:!0,data:!0}),Ue;return ne&&(Me(ne)==="object"?Ue=ne:typeof ne=="function"?Ue={nodeDraggable:ne}:Ue={}),I(Vt,{value:{prefixCls:N,selectable:ee,showIcon:oe,icon:ve,switcherIcon:se,draggable:Ue,draggingNodeKey:s,checkable:he,customCheckable:r.checkable,checkStrictly:ge,disabled:Ne,keyEntities:K.value,dropLevelOffset:v,dropContainerKey:y,dropTargetKey:_,dropPosition:M,dragOverNodeKey:T,dragging:s!==null,indent:u.value,direction:St,dropIndicatorRender:kt,loadData:vn,filterTreeNode:pt,onNodeClick:rn,onNodeDoubleClick:on,onNodeExpand:Le,onNodeSelect:He,onNodeCheck:Ve,onNodeLoad:Ge,onNodeMouseEnter:ln,onNodeMouseLeave:dn,onNodeContextMenu:cn,onNodeDragStart:Qe,onNodeDragEnter:en,onNodeDragOver:nn,onNodeDragLeave:tn,onNodeDragEnd:Fe,onNodeDrop:an,slots:r}},{default:function(){return[I("div",{role:"tree",class:Ke(N,Nt,(k={},q(k,"".concat(N,"-show-line"),$),q(k,"".concat(N,"-focused"),P.value),q(k,"".concat(N,"-active-focused"),B.value!==null),k))},[I(va,D({ref:te,prefixCls:N,style:Dt,disabled:Ne,selectable:ee,checkable:!!he,motion:qe,height:Kt,itemHeight:bt,virtual:mt,focusable:V,focused:P.value,tabindex:Z,activeItem:C.value,onFocus:ze,onBlur:un,onKeydown:H,onActiveChange:Se,onListChangeStart:We,onListChangeEnd:sn,onContextmenu:xt,onScroll:Ct},Et),null)])]}})}}});var ga={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};function zn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){pa(n,r,t[r])})}return n}function pa(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Ze=function(e,t){var a=zn({},e,t.attrs);return I(Ae,zn({},a,{icon:ga}),null)};Ze.displayName="FileOutlined";Ze.inheritAttrs=!1;var Ka={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};function Wn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){ba(n,r,t[r])})}return n}function ba(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Pn=function(e,t){var a=Wn({},e,t.attrs);return I(Ae,Wn({},a,{icon:Ka}),null)};Pn.displayName="MinusSquareOutlined";Pn.inheritAttrs=!1;var ma={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};function qn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){ka(n,r,t[r])})}return n}function ka(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Tn=function(e,t){var a=qn({},e,t.attrs);return I(Ae,qn({},a,{icon:ma}),null)};Tn.displayName="PlusSquareOutlined";Tn.inheritAttrs=!1;var xa={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};function Un(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Ca(n,r,t[r])})}return n}function Ca(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Ln=function(e,t){var a=Un({},e,t.attrs);return I(Ae,Un({},a,{icon:xa}),null)};Ln.displayName="CaretDownFilled";Ln.inheritAttrs=!1;function Sa(n,e,t,a){var r=a.isLeaf,c=a.expanded,d=a.loading,l=e;if(d)return I($t,{class:"".concat(n,"-switcher-loading-icon")},null);var u;t&&Me(t)==="object"&&(u=t.showLeafIcon);var f=null,b="".concat(n,"-switcher-icon");return r?(t&&(Me(t)==="object"&&!u?f=I("span",{class:"".concat(n,"-switcher-leaf-line")},null):f=I(Ze,{class:"".concat(n,"-switcher-line-icon")},null)),f):(f=I(Ln,{class:b},null),t&&(f=c?I(Pn,{class:"".concat(n,"-switcher-line-icon")},null):I(Tn,{class:"".concat(n,"-switcher-line-icon")},null)),typeof e=="function"?l=e(D(D({},a),{},{defaultIcon:f,switcherCls:b})):Bt(l)&&(l=_t(l,{class:b})),l||f)}var Yn=4;function Na(n){var e,t=n.dropPosition,a=n.dropLevelOffset,r=n.prefixCls,c=n.indent,d=n.direction,l=d===void 0?"ltr":d,u=l==="ltr"?"left":"right",f=l==="ltr"?"right":"left",b=(e={},q(e,u,"".concat(-a*c+Yn,"px")),q(e,f,0),e);switch(t){case-1:b.top="".concat(-3,"px");break;case 1:b.bottom="".concat(-3,"px");break;default:b.bottom="".concat(-3,"px"),b[u]="".concat(c+Yn,"px");break}return I("div",{style:b,class:"".concat(r,"-drop-indicator")},null)}var gt=function(){var e=st();return D(D({},e),{},{showLine:{type:[Boolean,Object],default:void 0},multiple:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandParent:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},checkedKeys:{type:[Array,Object]},defaultCheckedKeys:{type:Array},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array},selectable:{type:Boolean,default:void 0},loadedKeys:{type:Array},draggable:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:void 0},icon:{type:Function},switcherIcon:ke.any,prefixCls:String,replaceFields:{type:Object},blockNode:{type:Boolean,default:void 0},openAnimation:ke.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":Function,"onUpdate:checkedKeys":Function,"onUpdate:expandedKeys":Function})};const Ye=Te({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:En(gt(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:["icon","title","switcherIcon","titleRender"],setup:function(e,t){var a=t.attrs,r=t.expose,c=t.emit,d=t.slots;et(!(e.treeData===void 0&&d.default));var l=lt("tree",e),u=l.prefixCls,f=l.direction,b=l.virtual,g=ae(),p=function(h){var K;(K=g.value)===null||K===void 0||K.scrollTo(h)};r({treeRef:g,onNodeExpand:function(){for(var h,K=arguments.length,P=new Array(K),B=0;B<K;B++)P[B]=arguments[B];(h=g.value)===null||h===void 0||h.onNodeExpand.apply(h,P)},scrollTo:p,selectedKeys:L(function(){var o;return(o=g.value)===null||o===void 0?void 0:o.selectedKeys}),checkedKeys:L(function(){var o;return(o=g.value)===null||o===void 0?void 0:o.checkedKeys}),halfCheckedKeys:L(function(){var o;return(o=g.value)===null||o===void 0?void 0:o.halfCheckedKeys}),loadedKeys:L(function(){var o;return(o=g.value)===null||o===void 0?void 0:o.loadedKeys}),loadingKeys:L(function(){var o;return(o=g.value)===null||o===void 0?void 0:o.loadingKeys}),expandedKeys:L(function(){var o;return(o=g.value)===null||o===void 0?void 0:o.expandedKeys})}),we(function(){jt(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});var S=function(h,K){c("update:checkedKeys",h),c("check",h,K)},x=function(h,K){c("update:expandedKeys",h),c("expand",h,K)},E=function(h,K){c("update:selectedKeys",h),c("select",h,K)};return function(){var o,h=e.showIcon,K=e.showLine,P=e.switcherIcon,B=P===void 0?d.switcherIcon:P,j=e.icon,W=j===void 0?d.icon:j,te=e.blockNode,z=e.checkable,A=e.selectable,Q=e.fieldNames,O=Q===void 0?e.replaceFields:Q,w=e.motion,F=w===void 0?e.openAnimation:w,R=e.itemHeight,re=R===void 0?28:R,U=e.onDoubleclick,le=e.onDblclick,G=D(D(D({},a),Nn(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{},{showLine:!!K,dropIndicatorRender:Na,fieldNames:O,icon:W,itemHeight:re}),X=d.default?Xe(d.default()):void 0;return I(ha,D(D({},G),{},{virtual:b.value,motion:F,ref:g,prefixCls:u.value,class:Ke((o={},q(o,"".concat(u.value,"-icon-hide"),!h),q(o,"".concat(u.value,"-block-node"),te),q(o,"".concat(u.value,"-unselectable"),!A),q(o,"".concat(u.value,"-rtl"),f.value==="rtl"),o),a.class),direction:f.value,checkable:z,selectable:A,switcherIcon:function(J){return Sa(u.value,B,K,J)},onCheck:S,onExpand:x,onSelect:E,onDblclick:le||U,children:X}),D(D({},d),{},{checkable:function(){return I("span",{class:"".concat(u.value,"-checkbox-inner")},null)}}))}}});var Da={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};function Xn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Ea(n,r,t[r])})}return n}function Ea(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var In=function(e,t){var a=Xn({},e,t.attrs);return I(Ae,Xn({},a,{icon:Da}),null)};In.displayName="FolderOpenOutlined";In.inheritAttrs=!1;var Oa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};function Jn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){wa(n,r,t[r])})}return n}function wa(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var An=function(e,t){var a=Jn({},e,t.attrs);return I(Ae,Jn({},a,{icon:Oa}),null)};An.displayName="FolderOutlined";An.inheritAttrs=!1;var me;(function(n){n[n.None=0]="None",n[n.Start=1]="Start",n[n.End=2]="End"})(me||(me={}));function Fn(n,e,t){function a(r){var c=r[e.key],d=r[e.children];t(c,r)!==!1&&Fn(d||[],e,t)}n.forEach(a)}function Pa(n){var e=n.treeData,t=n.expandedKeys,a=n.startKey,r=n.endKey,c=n.fieldNames,d=c===void 0?{title:"title",key:"key",children:"children"}:c,l=[],u=me.None;if(a&&a===r)return[a];if(!a||!r)return[];function f(b){return b===a||b===r}return Fn(e,d,function(b){if(u===me.End)return!1;if(f(b)){if(l.push(b),u===me.None)u=me.Start;else if(u===me.Start)return u=me.End,!1}else u===me.Start&&l.push(b);return t.indexOf(b)!==-1}),l}function gn(n,e,t){var a=xe(e),r=[];return Fn(n,t,function(c,d){var l=a.indexOf(c);return l!==-1&&(r.push(d),a.splice(l,1)),!!a.length}),r}var Ta=["icon","blockNode"],La=function(){return D(D({},gt()),{},{expandAction:{type:[Boolean,String]}})};function Ia(n){var e=n.isLeaf,t=n.expanded;return e?I(Ze,null,null):t?I(In,null,null):I(An,null,null)}const pn=Te({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:En(La(),{showIcon:!0,expandAction:"click"}),slots:["icon","title","switcherIcon","titleRender"],setup:function(e,t){var a,r=t.attrs,c=t.slots,d=t.emit,l=t.expose,u=ae(e.treeData||kn(Xe((a=c.default)===null||a===void 0?void 0:a.call(c))));be(function(){return e.treeData},function(){u.value=e.treeData}),at(function(){Dn(function(){if(e.treeData===void 0&&c.default){var O;u.value=kn(Xe((O=c.default)===null||O===void 0?void 0:O.call(c)))}})});var f=ae(),b=ae(),g=L(function(){return Je(e.fieldNames)}),p=ae(),S=function(w){var F;(F=p.value)===null||F===void 0||F.scrollTo(w)};l({scrollTo:S,selectedKeys:L(function(){var O;return(O=p.value)===null||O===void 0?void 0:O.selectedKeys}),checkedKeys:L(function(){var O;return(O=p.value)===null||O===void 0?void 0:O.checkedKeys}),halfCheckedKeys:L(function(){var O;return(O=p.value)===null||O===void 0?void 0:O.halfCheckedKeys}),loadedKeys:L(function(){var O;return(O=p.value)===null||O===void 0?void 0:O.loadedKeys}),loadingKeys:L(function(){var O;return(O=p.value)===null||O===void 0?void 0:O.loadingKeys}),expandedKeys:L(function(){var O;return(O=p.value)===null||O===void 0?void 0:O.expandedKeys})});var x=function(){var w=ft(u.value,{fieldNames:g.value}),F=w.keyEntities,R;return e.defaultExpandAll?R=Object.keys(F):e.defaultExpandParent?R=mn(e.expandedKeys||e.defaultExpandedKeys||[],F):R=e.expandedKeys||e.defaultExpandedKeys,R},E=ae(e.selectedKeys||e.defaultSelectedKeys||[]),o=ae(x());be(function(){return e.selectedKeys},function(){e.selectedKeys!==void 0&&(E.value=e.selectedKeys)},{immediate:!0}),be(function(){return e.expandedKeys},function(){e.expandedKeys!==void 0&&(o.value=e.expandedKeys)},{immediate:!0});var h=function(w,F){var R=F.isLeaf;R||w.shiftKey||w.metaKey||w.ctrlKey||p.value.onNodeExpand(w,F)},K=Rt(h,200,{leading:!0}),P=function(w,F){e.expandedKeys===void 0&&(o.value=w),d("update:expandedKeys",w),d("expand",w,F)},B=function(w,F){var R=e.expandAction;R==="click"&&K(w,F),d("click",w,F)},j=function(w,F){var R=e.expandAction;(R==="dblclick"||R==="doubleclick")&&K(w,F),d("doubleclick",w,F),d("dblclick",w,F)},W=function(w,F){var R=e.multiple,re=F.node,U=F.nativeEvent,le=re[g.value.key],G=D(D({},F),{},{selected:!0}),X=(U==null?void 0:U.ctrlKey)||(U==null?void 0:U.metaKey),ue=U==null?void 0:U.shiftKey,J;R&&X?(J=w,f.value=le,b.value=J,G.selectedNodes=gn(u.value,J,g.value)):R&&ue?(J=Array.from(new Set([].concat(xe(b.value||[]),xe(Pa({treeData:u.value,expandedKeys:o.value,startKey:le,endKey:f.value,fieldNames:g.value}))))),G.selectedNodes=gn(u.value,J,g.value)):(J=[le],f.value=le,b.value=J,G.selectedNodes=gn(u.value,J,g.value)),d("update:selectedKeys",J),d("select",J,G),e.selectedKeys===void 0&&(E.value=J)},te=function(w,F){d("update:checkedKeys",w),d("check",w,F)},z=lt("tree",e),A=z.prefixCls,Q=z.direction;return function(){var O=Ke("".concat(A.value,"-directory"),q({},"".concat(A.value,"-directory-rtl"),Q.value==="rtl"),r.class),w=e.icon,F=w===void 0?c.icon:w,R=e.blockNode,re=R===void 0?!0:R,U=Be(e,Ta);return I(Ye,D(D(D({},r),{},{icon:F||Ia,ref:p,blockNode:re},U),{},{prefixCls:A.value,class:O,expandedKeys:o.value,selectedKeys:E.value,onSelect:W,onClick:B,onDblclick:j,onExpand:P,onCheck:te}),c)}}});var Kn=bn;const Ba=Ee(Ye,{DirectoryTree:pn,TreeNode:Kn,install:function(e){return e.component(Ye.name,Ye),e.component(Kn.name,Kn),e.component(pn.name,pn),e}});export{Ba as _,hn as a,De as b,ft as c,Oe as d,oa as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{k as c,a8 as p,a9 as a,e as R,r as h,$ as T,o as G,z as i,m as l,aS as u,aT as n,p as t,aU as A,F as v,G as g,l as H,aB as O,aC as U,ay as z,aV as W,aW as E,aX as L,aQ as Q}from"./
|
1
|
+
import{k as c,a8 as p,a9 as a,e as R,r as h,$ as T,o as G,z as i,m as l,aS as u,aT as n,p as t,aU as A,F as v,G as g,l as H,aB as O,aC as U,ay as z,aV as W,aW as E,aX as L,aQ as Q}from"./NHZFd8bQ.js";import{f as X}from"./DsHvRxpH.js";import{u as Y}from"./CDptPd_U.js";import"./C9Sjn86N.js";import"./CqocAHnv.js";import"./CpVxdhe3.js";import"./C5YDuKgZ.js";import"./XZK4lLIj.js";import"./l2p4hKoB.js";import"./BPXkp7pR.js";import"./B33qDdnq.js";import"./boyBAVNN.js";import"./BWn3cSKa.js";import"./BGugcrMS.js";import"./Y45Pvb6W.js";import"./C00NHga8.js";import"./BjIWxehG.js";import"./B5FLXBR1.js";import"./DqyL5Uhs.js";import"./BE4MlnZf.js";import"./LrQ3PXSl.js";import"./BQQOEPN4.js";import"./BZfcRRAG.js";import"./BV5fkeNl.js";import"./B4rH_4ZN.js";import"./Ckrtr2Si.js";import"./C17-0Owd.js";import"./BDlHzTvk.js";import"./B_LFFdI9.js";import"./DvgZT7js.js";import"./C0-Qcoum.js";const q={class:"nc-icon",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},J=a("path",{fill:"currentColor",d:"M4 4h3l2-2h6l2 2h3a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2m8 3a5 5 0 0 0-5 5a5 5 0 0 0 5 5a5 5 0 0 0 5-5a5 5 0 0 0-5-5m0 2a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3"},null,-1),K=[J];function P(M,x){return c(),p("svg",q,[...K])}const Z={name:"mdi-camera",render:P},ee={class:"w-full relative h-full"},te={key:0,class:"w-full h-full flex bg-gray-50 items-center justify-center"},ae={class:"p-5 bg-white rounded-md shadow-sm"},oe={class:"text-gray-800 font-semibold text-center text-xl"},se={class:"w-full gap-3 h-full flex-col flex items-center justify-between"},ie={class:"flex group flex-col gap-1"},le={class:"relative text-[12px] font-semibold text-gray-800 flex"},ne={class:"flex-auto truncate line-height-4"},re={class:"flex-none hide-ui transition-all transition-ease-in-out !h-4 flex items-center bg-white"},ce={class:"flex-none text-[10px] font-semibold text-gray-500"},me={class:"flex gap-2 pr-2 bottom-1 relative w-full items-center justify-end"},de=R({__name:"Camera",emits:["update:visible","upload"],setup(M,{emit:x}){const y=x,{isLoading:f,startCamera:D,stopCamera:N,videoStream:w,permissionGranted:S}=Y(),s=h(null),m=h(),b=h(),_=async()=>{try{if(await D(),!m.value||!w.value)return;m.value.srcObject=w.value}catch{}},C=()=>{N(),m.value&&(m.value.srcObject=null)},V=()=>{s.value=null,_()},F=()=>{const e=m.value,o=b.value;if(!e||!o)return;o.width=e.videoWidth,o.height=e.videoHeight;const d=o.getContext("2d");d&&(o.style.display="block",d.translate(o.width,0),d.scale(-1,1),d.drawImage(e,0,0,o.width,o.height),o.toBlob(r=>{r&&(s.value=new File([r],`${new Date().toDateString()}.png`,{type:"image/png"}))},"image/png"),C())},k=()=>{y("update:visible",!1)};return T(()=>{_()}),G(()=>{C()}),(e,o)=>{var j,I;const d=W,r=E,$=L,B=Z;return c(),p("div",ee,[i($,{class:"absolute top-3 right-2"},{title:l(()=>[u(n(e.$t("general.close")),1)]),default:l(()=>[i(r,{type:"text",class:"!border-0",size:"xsmall",onClick:k},{default:l(()=>[i(d,{icon:"close"})]),_:1})]),_:1}),t(S)?(c(),p("div",{key:1,class:A([{"py-8":!t(s),"pt-8 pb-2":t(s)},"w-full gap-3 h-full flex-col flex items-center justify-between"])},[v(a("div",se,[a("video",{ref_key:"videoRef",ref:m,class:"rounded-md",style:{width:"400px"},autoplay:""},null,512),i(r,{class:"!rounded-full !px-0",onClick:F},{default:l(()=>[i(B,{class:"text-xl"})]),_:1})],512),[[g,!t(s)]]),v(a("div",ie,[a("canvas",{ref_key:"canvasRef",ref:b,class:"rounded-md",style:{width:"400px",display:"none"}},null,512),a("div",le,[a("div",ne,n((j=t(s))==null?void 0:j.name),1),a("div",re,[i($,{placement:"bottom"},{title:l(()=>[u(n(e.$t("title.removeFile")),1)]),default:l(()=>[(c(),H(O(("iconMap"in e?e.iconMap:t(U)).delete),{class:"!text-red-500 cursor-pointer",onClick:V}))]),_:1})])]),a("div",ce,n(("formatBytes"in e?e.formatBytes:t(X))((I=t(s))==null?void 0:I.size,0)),1)],512),[[g,t(s)]]),v(a("div",me,[i(r,{disabled:t(f),type:"secondary",size:"small",onClick:k},{default:l(()=>[u(n(e.$t("labels.cancel")),1)]),_:1},8,["disabled"]),i(r,{loading:t(f),size:"small",onClick:o[0]||(o[0]=pe=>y("upload",[t(s)]))},{default:l(()=>[t(f)?(c(),p(z,{key:1},[u(n(e.$t("labels.uploading")),1)],64)):(c(),p(z,{key:0},[u(n(e.$t("labels.uploadImage")),1)],64))]),_:1},8,["loading"])],512),[[g,t(s)]])],2)):(c(),p("div",te,[a("div",{class:"flex flex-col hover:bg-white p-2 cursor-pointer rounded-md !transition-all transition-ease-in-out duration-300 gap-2 items-center justify-center",onClick:_},[a("div",ae,[i(B,{class:"text-4xl text-gray-800"})]),a("h1",oe,n(e.$t("labels.allowAccessToYourCamera")),1)])]))])}}}),Ee=Q(de,[["__scopeId","data-v-c9628cfa"]]);export{Ee as default};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
const __vite__fileDeps=["./
|
2
|
-
import{e as w,bg as f,bE as V,aF as v,aY as y,R as h,r as k,$ as R,bo as b,bq as E,p as o,k as l,a8 as I,z as S,b_ as x,l as z,bO as A,b1 as D,aD as _,cH as L,aA as i}from"./
|
1
|
+
const __vite__fileDeps=["./CNurVxTA.js","./NHZFd8bQ.js","./entry.6uu-XYG8.css","./C6c9Dspn.js","./DeleteModal.SEMJ_gSK.css","./C17-0Owd.js","./BDlHzTvk.js","./B_LFFdI9.js","./BZfcRRAG.js","./DvgZT7js.js","./Ckrtr2Si.js","./LrQ3PXSl.js","./BQQOEPN4.js","./DANQtblt.js","./CpVxdhe3.js","./C5YDuKgZ.js","./DFLo1Tyf.js","./BWn3cSKa.js","./boyBAVNN.js","./J2s5CnRS.js","./Dl_k7PcY.js","./Ccf8GJao.js","./BPXkp7pR.js","./B33qDdnq.js","./Grid.BcST9OoS.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
2
|
+
import{e as w,bg as f,bE as V,aF as v,aY as y,R as h,r as k,$ as R,bo as b,bq as E,p as o,k as l,a8 as I,z as S,b_ as x,l as z,bO as A,b1 as D,aD as _,cH as L,aA as i}from"./NHZFd8bQ.js";const P=_(()=>i(()=>import("./CNurVxTA.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(a=>a.default||a)),T=_(()=>i(()=>import("./DANQtblt.js"),__vite__mapDeps([13,1,2,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url).then(a=>a.default||a)),g={key:0},C=w({__name:"[viewId]",setup(a){const u=f(),{loadSharedView:d,meta:r}=V(),{isViewDataLoading:n}=v(y());h(L,r);const t=k(!1);return R(async()=>{var s;n.value=!0;try{await d(u.params.viewId)}catch(e){((s=e==null?void 0:e.response)==null?void 0:s.status)===403?t.value=!0:(console.error(e),b.error(await E(e)))}finally{n.value=!1}}),(s,e)=>{const c=P,p=T;return o(t)?(l(),I("div",g,[S(c,{modelValue:o(t),"onUpdate:modelValue":e[0]||(e[0]=m=>x(t)?t.value=m:null)},null,8,["modelValue"])])):o(r)?(l(),z(p,{key:1,"view-type":o(A).GRID},null,8,["view-type"])):D("",!0)}}});export{C as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{e as E,u as L,bg as U,bE as $,r as _,f as T,bO as m,k as g,a8 as w,z as t,m as o,a9 as c,aS as p,aT as d,p as a,T as D,b1 as B,b_ as F,aU as P,ay as z,bm as M,bn as G,bo as K,aV as O,aW as W}from"./
|
1
|
+
import{e as E,u as L,bg as U,bE as $,r as _,f as T,bO as m,k as g,a8 as w,z as t,m as o,a9 as c,aS as p,aT as d,p as a,T as D,b1 as B,b_ as F,aU as P,ay as z,bm as M,bn as G,bo as K,aV as O,aW as W}from"./NHZFd8bQ.js";import{_ as j}from"./C6c9Dspn.js";import{F as q}from"./C17-0Owd.js";import{_ as H}from"./Ckrtr2Si.js";import{_ as J}from"./BDlHzTvk.js";import"./DvgZT7js.js";import"./BZfcRRAG.js";import"./LrQ3PXSl.js";import"./BQQOEPN4.js";import"./B_LFFdI9.js";const b=""+new URL("grid.DUgR9AKo.png",import.meta.url).href,X=""+new URL("gallery.Cd9ckno3.png",import.meta.url).href,Y=""+new URL("kanban.C7eL09OH.png",import.meta.url).href,Q=""+new URL("calendar.XdsCSkJk.png",import.meta.url).href,Z={class:"flex flex-col gap-5"},ee={class:"flex flex-row items-center gap-x-2 text-base font-weight-700 text-gray-800"},se={key:0,class:"mb-2 text-sm text-red-500"},ae={class:"flex flex-row justify-end gap-x-2"},te=["src"],_e=E({__name:"AskPassword",props:{modelValue:{type:Boolean},viewType:{}},emits:["update:modelValue"],setup(v,{emit:y}){const u=v,r=L(u,"modelValue",y),h=U(),{loadSharedView:x}=$(),n=_({password:void 0}),l=_(null),f=async()=>{try{await x(h.params.viewId,n.value.password),r.value=!1}catch(e){const s=await M(e);console.error(s.message),s.error===G.INVALID_SHARED_VIEW_PASSWORD?l.value=s.message:K.error(s.message)}},k=e=>{var s;return e&&((s=e==null?void 0:e.focus)==null?void 0:s.call(e))},R=T(()=>{switch(u.viewType){case m.GRID:return b;case m.GALLERY:return X;case m.KANBAN:return Y;case m.CALENDAR:return Q;default:return b}});return(e,s)=>{const V=O,I=H,N=J,S=q,A=W,C=j;return g(),w(z,null,[t(C,{visible:a(r),"onUpdate:visible":s[2]||(s[2]=i=>F(r)?r.value=i:null),c:"",size:"small",class:P({active:a(r)}),"mask-closable":!1,"mask-style":{backgroundColor:"rgba(255, 255, 255, 0.64)",backdropFilter:"blur(8px)"}},{default:o(()=>[c("div",Z,[c("div",ee,[t(V,{icon:"ncKey",class:"!text-base w-5 h-5"}),p(" "+d(e.$t("msg.thisSharedViewIsProtected")),1)]),t(S,{ref:"formRef",model:a(n),name:"create-new-table-form",onFinish:f},{default:o(()=>[t(N,{name:"password",rules:[{required:!0,message:e.$t("msg.error.signUpRules.passwdRequired")}],class:"!mb-0"},{default:o(()=>[t(I,{ref:k,value:a(n).password,"onUpdate:value":s[0]||(s[0]=i=>a(n).password=i),class:"!rounded-lg !text-small","hide-details":"",placeholder:e.$t("msg.enterPassword"),onInput:s[1]||(s[1]=i=>l.value=null)},null,8,["value","placeholder"]),t(D,{name:"layout"},{default:o(()=>[a(l)?(g(),w("div",se,d(a(l)),1)):B("",!0)]),_:1})]),_:1},8,["rules"])]),_:1},8,["model"]),c("div",ae,[t(A,{disabled:!a(n).password,type:"primary",size:"small","html-type":"submit",class:"!px-2","data-testid":"nc-shared-view-password-submit-btn",onClick:f},{loading:o(()=>[p(d(e.$t("msg.verifyingPassword")),1)]),default:o(()=>[p(d(e.$t("objects.view"))+" ",1)]),_:1},8,["disabled"])])])]),_:1},8,["visible","class"]),c("img",{alt:"view image",src:a(R),class:"fixed inset-0 w-full h-full"},null,8,te)],64)}}});export{_e as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{aQ as e,k as s,a8 as t}from"./
|
1
|
+
import{aQ as e,k as s,a8 as t}from"./NHZFd8bQ.js";const n={name:"Index"},o={class:"p-4"};function a(c,r,_,p,d,i){return s(),t("div",o)}const l=e(n,[["render",a]]);export{l as default};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
const __vite__fileDeps=["./
|
2
|
-
import{e as C,aR as O,p as e,k as m,a8 as d,a9 as s,aT as a,F as v,z as n,b1 as p,dc as x,m as g,aS as k,ay as T,aD as F,aA as U,aI as u}from"./
|
1
|
+
const __vite__fileDeps=["./CjiyXwOk.js","./NHZFd8bQ.js","./entry.6uu-XYG8.css","./B2NO182c.js","./UserIcon.JKLzA6N5.css","./ChOVvzZi.js","./BE4MlnZf.js","./LrQ3PXSl.js","./BQQOEPN4.js","./BZfcRRAG.js","./BV5fkeNl.js","./B4rH_4ZN.js","./Ckrtr2Si.js","./Zbz8jq1G.js","./LimitOptions.BFjDwmNk.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
2
|
+
import{e as C,aR as O,p as e,k as m,a8 as d,a9 as s,aT as a,F as v,z as n,b1 as p,dc as x,m as g,aS as k,ay as T,aD as F,aA as U,aI as u}from"./NHZFd8bQ.js";import{u as V}from"./BLJJDzIX.js";import{u as z}from"./CjLxSPxU.js";import{R,_ as j}from"./Ck8SavWn.js";import{_ as D}from"./BvJHFs9-.js";import"./C-_nHsP3.js";import"./XZK4lLIj.js";import"./aCruzJXG.js";import"./DJYXGfCo.js";import"./C6c9Dspn.js";import"./Bh8L_8vr.js";import"./B33qDdnq.js";import"./BBW1h0ks.js";import"./BjIWxehG.js";import"./m9SI53XN.js";import"./NuKLqi_C.js";import"./Bpjzp6Vo.js";import"./B9dOhF-2.js";import"./DqyL5Uhs.js";import"./CpWeSecD.js";import"./CpVxdhe3.js";import"./C5YDuKgZ.js";import"./L9TIwNpK.js";import"./BPS1H-Sz.js";import"./BZfcRRAG.js";import"./DTBGgeX5.js";import"./BWn3cSKa.js";import"./D-ULZAvr.js";import"./LLghMu9r.js";import"./CB02C89T.js";import"./BtzsCl9b.js";import"./CTrYGv0V.js";import"./DnFxlRi4.js";import"./C17-0Owd.js";import"./BDlHzTvk.js";import"./B_LFFdI9.js";import"./DvgZT7js.js";import"./Dl_k7PcY.js";import"./l2p4hKoB.js";import"./BPXkp7pR.js";import"./boyBAVNN.js";import"./ChOVvzZi.js";import"./BE4MlnZf.js";import"./LrQ3PXSl.js";import"./BQQOEPN4.js";import"./BV5fkeNl.js";import"./B4rH_4ZN.js";import"./Ckrtr2Si.js";const N=F(()=>U(()=>import("./CjiyXwOk.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url).then(c=>c.default||c)),B={class:"nc-form-field-settings p-4 flex flex-col gap-4 border-b border-gray-200"},E={class:"text-base font-bold"},A={class:"flex flex-col gap-6"},I={class:"flex items-center justify-between gap-3"},P={key:0,class:"!my-0 nc-form-input-enable-scanner-form-item"},M={class:"flex items-center justify-between gap-3"},G={class:"nc-form-input-enable-scanner text-gray-800 font-medium"},H={key:1,class:"w-full flex items-start justify-between gap-3"},J={class:"flex-1 max-w-[calc(100%_-_40px)]"},K={class:"font-medium text-gray-800"},Q={class:"text-gray-500 mt-1"},W={key:0,class:"mt-3"},X={key:0,class:"nc-form-field-appearance-settings p-4 flex flex-col gap-4 border-b border-gray-200"},Y={class:"text-base font-bold text-gray-600"},Z={class:"flex flex-col gap-6"},ee=s("div",{class:"text-gray-800 font-medium"},"Options layout",-1),Qe=C({__name:"field-settings",setup(c){const{formState:b,activeField:t,updateColMeta:l,isRequired:w}=V(),{betaFeatureToggleState:h}=z(),L=i=>{t.value&&(t.value.meta.isList=i,l(t.value))},S=i=>h.show&&[u.SingleLineText,u.Number,u.Email,u.URL,u.LongText].includes(i);return(i,o)=>{const f=D,$=N,y=R,q=j,_=O("e");return e(t)?(m(),d(T,{key:0},[s("div",B,[s("div",E,a(i.$t("objects.field"))+" "+a(i.$t("activity.validations").toLowerCase()),1),s("div",A,[s("div",I,[s("div",{class:"nc-form-input-required text-gray-800 font-medium",onClick:o[0]||(o[0]=()=>{e(t).required=!e(t).required,e(l)(e(t))})},a(i.$t("general.required"))+" "+a(i.$t("objects.field").toLowerCase()),1),v(n(f,{checked:e(t).required,"onUpdate:checked":o[1]||(o[1]=r=>e(t).required=r),size:"small","data-testid":"nc-form-input-required",onChange:o[2]||(o[2]=r=>e(l)(e(t)))},null,8,["checked"]),[[_,["a:form-view:field:mark-required"]]])]),S(e(t).uidt)?(m(),d("div",P,[s("div",M,[s("div",G,a(i.$t("general.enableScanner")),1),v(n(f,{checked:e(t).enable_scanner,"onUpdate:checked":o[3]||(o[3]=r=>e(t).enable_scanner=r),"data-testid":"nc-form-input-enable-scanner",size:"small",onChange:o[4]||(o[4]=r=>e(l)(e(t)))},null,8,["checked"]),[[_,["a:form-view:field:mark-enable-scanner"]]])])])):p("",!0),e(x)(e(t).uidt)?(m(),d("div",H,[s("div",J,[s("div",K,a(i.$t("labels.limitOptions")),1),s("div",Q,a(i.$t("labels.limitOptionsSubtext"))+".",1),e(t).meta.isLimitOption?(m(),d("div",W,[n($,{"model-value":e(t).meta.limitOptions,"onUpdate:modelValue":[o[5]||(o[5]=r=>e(t).meta.limitOptions=r),o[6]||(o[6]=r=>e(l)(e(t)))],"form-field-state":e(b)[e(t).title]||"",column:e(t),"is-required":e(w)(e(t),e(t).required),"onUpdate:formFieldState":o[7]||(o[7]=r=>{e(b)[e(t).title]=r})},null,8,["model-value","form-field-state","column","is-required"])])):p("",!0)]),v(n(f,{checked:e(t).meta.isLimitOption,"onUpdate:checked":o[8]||(o[8]=r=>e(t).meta.isLimitOption=r),size:"small",class:"flex-none nc-form-switch-focus",onChange:o[9]||(o[9]=r=>e(l)(e(t)))},null,8,["checked"]),[[_,["a:form-view:field:limit-options"]]])])):p("",!0)])]),e(x)(e(t).uidt)?(m(),d("div",X,[s("div",Y,a(i.$t("general.appearance")),1),s("div",Z,[s("div",null,[ee,n(q,{value:!!e(t).meta.isList,class:"nc-form-field-layout !mt-3 max-w-[calc(100%_-_40px)]","onUpdate:value":L},{default:g(()=>[n(y,{value:!1},{default:g(()=>[k(a(i.$t("general.dropdown")),1)]),_:1}),n(y,{value:!0},{default:g(()=>[k(a(i.$t("general.list")),1)]),_:1})]),_:1},8,["value"])])])])):p("",!0)],64)):p("",!0)}}});export{Qe as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{_ as m}from"./
|
1
|
+
import{_ as m}from"./5nCkSrke.js";import{k as a,a8 as d,a9 as t,aQ as i,l as h,m as e,z as n,cp as u,cr as p,D as f}from"./NHZFd8bQ.js";const v={class:"nc-icon",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},x=t("path",{fill:"currentColor",d:"m11.9 22l4.55-12h2.1l4.55 12H21l-1.075-3.05h-4.85L14 22zM4 19l-1.4-1.4l5.05-5.05q-.875-.875-1.588-2T4.75 8h2.1q.5.975 1 1.7t1.2 1.45q.825-.825 1.713-2.313T12.1 6H1V4h7V2h2v2h7v2h-2.9q-.525 1.8-1.575 3.7t-2.075 2.9l2.4 2.45l-.75 2.05l-3.05-3.125zm11.7-1.8h3.6l-1.8-5.1z"},null,-1),g=[x];function w(o,s){return a(),d("svg",v,[...g])}const k={name:"material-symbols-translate",render:w},y={},b={class:"m-1.5"};function B(o,s){const r=k,c=m,l=p,_=f;return a(),h(_,{class:"select-none color-transition cursor-pointer",trigger:["click"],"overlay-class-name":"nc-dropdown-menu-translate"},{overlay:e(()=>[n(l,{class:"nc-scrollbar-dark-md min-w-64 max-h-90vh overflow-auto !p-1 m-1 rounded-md border-1 border-gray-200"},{default:e(()=>[t("div",b,[n(c)])]),_:1})]),default:e(()=>[t("div",u(o.$attrs,{class:"flex items-center justify-center"}),[n(r,{class:"md:text-xl nc-menu-translate"})],16)]),_:1})}const M=i(y,[["render",B]]);export{M as default};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
const __vite__fileDeps=["./
|
2
|
-
import{e as j,bc as q,bf as D,bg as E,bD as F,bJ as L,r as M,k as u,a8 as v,z as s,m as r,a9 as t,p as o,aT as i,aS as _,T as S,b1 as T,l as A,aB as I,aC as U,aD as z,bo as W,bq as G,aW as J,bv as O,aA as H}from"./
|
1
|
+
const __vite__fileDeps=["./Diky6b8B.js","./NHZFd8bQ.js","./entry.6uu-XYG8.css","./aCruzJXG.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
2
|
+
import{e as j,bc as q,bf as D,bg as E,bD as F,bJ as L,r as M,k as u,a8 as v,z as s,m as r,a9 as t,p as o,aT as i,aS as _,T as S,b1 as T,l as A,aB as I,aC as U,aD as z,bo as W,bq as G,aW as J,bv as O,aA as H}from"./NHZFd8bQ.js";import{_ as K}from"./BXzZkUYy.js";import{_ as Q}from"./Dm6wi6No.js";import{_ as X}from"./CGJkgYAS.js";import{v as Y}from"./BtEbFxXZ.js";import{F as Z}from"./C17-0Owd.js";import{_ as ee}from"./Ckrtr2Si.js";import{_ as se}from"./BDlHzTvk.js";import"./DvgZT7js.js";import"./BZfcRRAG.js";import"./LrQ3PXSl.js";import"./BQQOEPN4.js";import"./B_LFFdI9.js";const oe=z(()=>H(()=>import("./Diky6b8B.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(c=>c.default||c)),ae={class:"md:bg-primary signin bg-opacity-5 forgot-password h-full min-h-[600px] flex flex-col justify-center items-center"},te={class:"bg-white mt-[60px] relative flex flex-col justify-center gap-2 w-full max-w-[500px] mx-auto p-8 md:rounded-lg md:border-1 md:border-gray-200 md:shadow-xl"},re={class:"self-center flex flex-col justify-center items-center text-center gap-2"},ne={class:"prose-2xl font-bold my-4 w-full"},le={class:"prose-sm text-success flex items-center leading-8 gap-2"},ie={key:0,class:"self-center mb-4 bg-red-500 text-white rounded-lg w-3/4 mx-auto p-1"},ce={class:"flex items-center gap-2 justify-center"},de={class:"break-words"},pe={class:"self-center flex flex-col gap-4 items-center justify-center w-full"},me={class:"flex items-center gap-2"},ke=j({__name:"[id]",setup(c){const{api:y,isLoading:f,error:n}=q(),{t:w}=D(),b=E(),x=F(),a=L({password:"",newPassword:""}),$=M();async function P(){if(a.newPassword!==a.password){n.value="password does not match";return}const{error:e,valid:l}=Y(a.password);if(!l){n.value=e.includes("8")?"password should be atleast 8 characters":e;return}d();try{await y.auth.passwordReset(b.params.id,{password:a.password}),x.push("/#/sigin")}catch(p){W.error(await G(p))}}function d(){n.value&&(n.value=null)}return(e,l)=>{const p=oe,R=X,k=K,C=Q,g=ee,h=se,N=J,V=Z,B=O;return u(),v("div",null,[s(B,null,{default:r(()=>[t("div",ae,[t("div",te,[s(p,{class:"color-transition hover:ring hover:ring-accent hover:ring-opacity-100",animate:o(f)},null,8,["animate"]),t("div",re,[t("h1",ne,i(e.$t("title.resetPassword")),1),t("div",le,[_(i(e.$t("msg.info.passwordRecovery.success"))+" ",1),s(R)]),s(k,{to:"/signin"},{default:r(()=>[_(i(e.$t("general.signIn")),1)]),_:1})]),s(V,{ref_key:"formValidator",ref:$,layout:"vertical",model:o(a),"no-style":"",onFinish:P},{default:r(()=>[s(S,{name:"layout"},{default:r(()=>[o(n)?(u(),v("div",ie,[t("div",ce,[s(C),t("div",de,i(o(n)),1)])])):T("",!0)]),_:1}),s(h,{label:e.$t("placeholder.password.new"),name:"password",rules:[{required:!0,message:o(w)("msg.error.signUpRules.passwdRequired")}]},{default:r(()=>[s(g,{value:o(a).password,"onUpdate:value":l[0]||(l[0]=m=>o(a).password=m),placeholder:e.$t("placeholder.password.new"),class:"password",onFocus:d},null,8,["value","placeholder"])]),_:1},8,["label","rules"]),s(h,{label:e.$t("placeholder.password.confirm"),name:"newPassword",rules:[{required:!0,message:o(w)("msg.error.signUpRules.passwdRequired")}]},{default:r(()=>[s(g,{value:o(a).newPassword,"onUpdate:value":l[1]||(l[1]=m=>o(a).newPassword=m),type:"password",class:"password",placeholder:e.$t("placeholder.password.confirm"),onFocus:d},null,8,["value","placeholder"])]),_:1},8,["label","rules"]),t("div",pe,[s(N,{type:"primary","is-loading":o(f),"html-type":"submit"},{default:r(()=>[t("span",me,[(u(),A(I(("iconMap"in e?e.iconMap:o(U)).signin))),_(" "+i(e.$t("general.reset")),1)])]),_:1},8,["is-loading"])])]),_:1},8,["model"])])])]),_:1})])}}});export{ke as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{_ as Ae}from"./aDq49son.js";import{e as Be,aG as Me,be as Fe,aF as Qe,S as We,cK as Ve,f as x,dD as Ge,r as b,bc as Oe,bf as Ke,dE as d,b as le,$ as Re,dF as U,k as f,a8 as $,a9 as i,z as n,m as s,cp as w,p as t,ay as B,bA as q,l as _,b1 as D,aS as P,aT as h,aB as je,aC as qe,b_ as z,aU as ce,an as ze,dG as He,bo as ie,bq as re,dH as Xe,aZ as Ye,de as Ze,df as Je,aX as ea,aV as aa,aW as ta,bx as oa,by as na,aQ as sa}from"./D0skW1jq.js";import{_ as la}from"./CaKL5hX5.js";import{_ as ca,a as ia}from"./CGnFnNNP.js";import{_ as ra}from"./DQvo0yED.js";import{u as da,v as ua}from"./UJDZNh8e.js";import{b as ma,a as pa,f as N}from"./BmoKdN2h.js";import{F as de}from"./DSo-2nFJ.js";import"./DglPsyiE.js";import{I as fa}from"./CJL5s59L.js";import{_ as _a,C as va}from"./CjhAMb0e.js";import{_ as ba}from"./D-3pY83G.js";import{S as Sa}from"./CP1s9025.js";import"./Dy33QHkd.js";import"./DHL8lIZa.js";import"./COSuR5gX.js";import"./CqcwF_4v.js";import"./Bg-tZGz_.js";import"./tuC3W76x.js";import"./BipOdpcd.js";import"./C4ETrJi7.js";import"./CY-umpv2.js";import"./CgemNdgi.js";import"./BkeBYOsG.js";import"./CXPckVUD.js";import"./COzZ75BE.js";import"./Dj7AODgl.js";import"./CKkNNjlN.js";import"./BSnfz81Y.js";import"./Vezsq5pc.js";import"./D7y3R7Ve.js";import"./BnbA25UM.js";import"./CDnEKjsz.js";import"./DpJilvje.js";import"./CkCKzP-b.js";import"./D5LCiDa8.js";import"./BsCG6_t5.js";import"./DVJ1H8-2.js";import"./BSzJ4FxO.js";import"./DLdhkiR1.js";import"./BmZeKA3g.js";import"./EPaHYVRO.js";import"./CieNK_Hy.js";import"./CpYnnah9.js";import"./DEWywo6s.js";import"./3fdRvCCy.js";import"./CnUzkPPI.js";import"./Cng_fVI_.js";import"./DeiJLuN8.js";import"./CHRxsLpF.js";import"./BQQOEPN4.js";import"./BOYXVEfo.js";import"./CEaqjIiA.js";import"./TGNXCWG6.js";import"./izr94Pxw.js";import"./boyBAVNN.js";import"./C00NHga8.js";import"./G4Pt-Lbf.js";import"./BUd0o8q2.js";import"./CxsGCxm3.js";import"./DFA4S6bS.js";import"./D64AfRxx.js";const M=I=>(oa("data-v-3e055b0b"),I=I(),na(),I),ha={class:"edit-source bg-white relative h-full flex flex-col w-full"},ga={class:"h-full max-h-[calc(100%_-_65px)] flex"},ya={class:"nc-edit-source-left-panel nc-scrollbar-thin"},xa={class:"h-full max-w-[768px] mx-auto"},wa={class:"nc-form-section"},ka={class:"nc-form-section-body"},Ca=["data-testid"],Pa={class:"nc-form-section"},Ia={class:"nc-form-section-body"},Ta={class:"nc-form-section"},Ea=M(()=>i("div",{class:"nc-form-section-title"},"Permissions",-1)),Ua={class:"nc-form-section-body"},$a=M(()=>i("div",{class:"nc-form-section-title"},"Advanced options",-1)),Da=M(()=>i("span",null,null,-1)),Na={class:"flex flex-col gap-4"},La={class:"flex flex-col gap-4"},Aa=M(()=>i("div",null,null,-1)),Ba={class:"nc-edit-source-right-panel"},Ma={class:"p-4 w-full flex items-center justify-between gap-3 border-t-1 border-gray-200"},Fa={class:"flex-1 flex items-center gap-3"},Qa={class:"flex-1 flex items-center gap-3 text-[#C86827]"},Wa={class:"flex items-center gap-3"},Va=Be({__name:"EditBase",props:{sourceId:{}},emits:["sourceUpdated","close"],setup(I,{emit:ue}){const H=I,X=ue,me=Me(),pe=Fe(),{base:k}=Qe(me),{integrations:Y,loadIntegrations:fe}=da(),F=We(Ve,void 0),_e=x(()=>{var a;return(F==null?void 0:F.value)??((a=k.value)==null?void 0:a.id)}),{refreshCommandPalette:ve}=Ge(),be=de.useForm,v=b(!1),Q=b(!1),Z=b(),{api:W}=Oe(),{$e:L}=ze(),{t:Se}=Ke(),he=b(!1),ge=b(!1),J=b(0),C=b([]),ye=()=>{J.value+=1,J.value>=2&&(ge.value=!0)},e=b(((a=d.MYSQL)=>({title:"",dataSource:{...He(a)},inflection:{inflectionColumn:"none",inflectionTable:"none"},sslUse:U.No,extraParameters:[],is_schema_readonly:!0,is_data_readonly:!1}))()),g=x(()=>e.value.fk_integration_id&&Y.value.find(a=>a.id===e.value.fk_integration_id)),xe=x(()=>{var a,o,c;return(c=(o=(a=g.value)==null?void 0:a.config)==null?void 0:o.connection)==null?void 0:c.database}),V=x(()=>{var a,o,c;return(c=(o=(a=g.value)==null?void 0:a.config)==null?void 0:o.searchPath)==null?void 0:c[0]}),ee=a=>{if(a==="database")return xe.value;if(a==="schema")return V.value},we=x(()=>({title:[ma()],extraParameters:[pa],"dataSource.client":[N()],...e.value.dataSource.client===d.SQLITE?{}:e.value.dataSource.client===d.SNOWFLAKE?{"dataSource.connection.database":[N()],"dataSource.connection.schema":[N()]}:{"dataSource.connection.database":g.value&&ee("database")?[]:[N()],...[d.PG,d.MSSQL].includes(e.value.dataSource.client)&&e.value.dataSource.searchPath?{"dataSource.searchPath.0":g.value&&ee("schema")?[]:[N()]}:{}}})),{validate:ae,validateInfos:y}=be(e,we),ke=()=>{if(e.value.dataSource.client!==d.SQLITE){const a=e.value.dataSource.connection;a.ssl?typeof a.ssl=="string"?e.value.sslUse=U.Allowed:e.value.sslUse=U.Preferred:e.value.sslUse=U.No}},te=["camelize","none"];function oe(){const a=Object.fromEntries(new Map(e.value.extraParameters.map(c=>[c.key,c.value]))),o={...e.value.dataSource.connection,...a};return o.ssl=ua(o,e.value.sslUse,e.value.dataSource.client),o}const ne=()=>{var a,o,c,r,m;(m=(r=(c=(o=(a=Z.value)==null?void 0:a.$el.querySelector(".ant-form-item-explain-error"))==null?void 0:o.parentNode)==null?void 0:c.parentNode)==null?void 0:r.querySelector("input"))==null||m.focus()},Ce=async()=>{var a,o,c,r,m,u;try{await ae()}catch{ne();return}try{if(!((a=k.value)!=null&&a.id))return;const S=oe(),p={...e.value.dataSource,connection:S};p.client===d.SQLITE&&((c=(o=p.connection)==null?void 0:o.connection)!=null&&c.filename)&&(p.connection.filename=p.connection.connection.filename),g.value&&(((r=p.connection)==null?void 0:r.database)===""&&(p.connection.database=void 0),((m=p.searchPath)==null?void 0:m[0])===""&&(p.searchPath=void 0)),await W.source.update((u=k.value)==null?void 0:u.id,H.sourceId,{alias:e.value.title,type:e.value.dataSource.client,config:p,inflection_column:e.value.inflection.inflectionColumn,inflection_table:e.value.inflection.inflectionTable,is_schema_readonly:e.value.is_schema_readonly,is_data_readonly:e.value.is_data_readonly}),L("a:source:edit:extdb"),await pe.loadProject(_e.value,!0),X("sourceUpdated"),X("close")}catch(S){ie.error(await re(S))}finally{ve()}},T=b(),Pe=async()=>{try{await ae()}catch{ne();return}L("a:source:edit:extdb:test-connection",[]);try{if(Q.value=!0,e.value.dataSource.client===d.SQLITE)v.value=!0;else{const a=oe();a.database=Xe(e.value.dataSource);let o=e.value.dataSource.searchPath;g.value&&((a==null?void 0:a.database)===""&&(a.database=void 0),(o==null?void 0:o[0])===""&&(o=void 0));const c={...e.value.dataSource,connection:a,searchPath:o,fk_integration_id:e.value.fk_integration_id},r=await W.utils.testConnection(c);r.code===0?v.value=!0:(v.value=!1,ie.error(`${Se("msg.error.dbConnectionFailed")} ${r.message}`))}}catch(a){v.value=!1,T.value=await re(a)}Q.value=!1};le(()=>e.value.dataSource,()=>{v.value=!1,T.value=null},{deep:!0}),Re(async()=>{var a,o,c,r;if(await fe(!0,(a=k.value)==null?void 0:a.id),(o=k.value)!=null&&o.id){const m=["host","port","user","password","database"],u=await W.source.read((c=k.value)==null?void 0:c.id,H.sourceId),S=Object.entries(u.config.connection||{}).filter(([p])=>!m.includes(p)).map(([p,E])=>({key:p,value:E}));e.value={title:u.alias||"",dataSource:{connection:{},...u.config||{},searchPath:((r=u.config)==null?void 0:r.searchPath)||[]},inflection:{inflectionColumn:u.inflection_column,inflectionTable:u.inflection_table},extraParameters:S,sslUse:U.No,is_schema_readonly:u.is_schema_readonly,is_data_readonly:u.is_data_readonly,fk_integration_id:u.fk_integration_id},ke()}}),le(()=>e.value.dataSource.searchPath,a=>{[d.PG,d.MSSQL].includes(e.value.dataSource.client)&&!a&&(e.value.dataSource.searchPath=[])},{immediate:!0});const G=x({get:()=>!e.value.is_schema_readonly,set:a=>{e.value.is_schema_readonly=!a,a&&(e.value.is_data_readonly=!1),L("c:source:schema-write-toggle",{allowed:!a,edit:!0})}}),O=x({get:()=>!e.value.is_data_readonly,set:a=>{e.value.is_data_readonly=!a,L("c:source:data-write-toggle",{allowed:!a,edit:!0})}}),Ie=a=>{a?(C.value=["1"],Te(!0,"nc-source-advanced-options")):C.value=[]};let K;function Te(a,o){K&&clearTimeout(K),Ye(()=>{const c=document.querySelector(`.edit-source .${o}`);c&&(K=setTimeout(()=>{c.scrollIntoView({block:"center",behavior:"smooth"})},400))})}return(a,o)=>{const c=fa,r=ba,m=Ze,u=Je,S=Ae,p=ea,E=Sa,R=la,Ee=ca,A=aa,j=ta,Ue=_a,$e=va,De=de,Ne=ia,Le=ra;return f(),$("div",ha,[i("div",ga,[i("div",ya,[i("div",xa,[n(De,{ref_key:"form",ref:Z,model:t(e),"hide-required-mark":"",name:"external-base-create-form",layout:"vertical","no-style":"",class:"flex flex-col gap-5.5"},{default:s(()=>[i("div",wa,[i("div",ka,[n(u,{gutter:24},{default:s(()=>[n(m,{span:12},{default:s(()=>[n(r,w({label:"Data Source Name"},t(y).title),{default:s(()=>[n(c,{value:t(e).title,"onUpdate:value":o[0]||(o[0]=l=>t(e).title=l),class:"nc-extdb-proj-name"},null,8,["value"])]),_:1},16)]),_:1})]),_:1}),n(u,{gutter:24},{default:s(()=>[n(m,{span:12},{default:s(()=>[n(r,{label:"Select connection"},{default:s(()=>[n(R,{value:t(e).fk_integration_id,disabled:"",class:"nc-extdb-db-type nc-select-shadow","dropdown-class-name":"nc-dropdown-ext-db-type",placeholder:"Select connection","allow-clear":"","show-search":"","dropdown-match-select-width":""},{default:s(()=>[(f(!0),$(B,null,q(t(Y),l=>(f(),_(E,{key:l.id,value:l.id},{default:s(()=>[i("div",{class:"w-full flex gap-2 items-center","data-testid":l.title},[l.type?(f(),_(S,{key:0,"source-type":l.sub_type,class:"flex-none h-4 w-4"},null,8,["source-type"])):D("",!0),n(p,{class:"flex-1 truncate","show-on-truncate-only":""},{title:s(()=>[P(h(l.title),1)]),default:s(()=>[P(" "+h(l.title),1)]),_:2},1024),t(e).fk_integration_id===l.id?(f(),_(je(("iconMap"in a?a.iconMap:t(qe)).check),{key:1,id:"nc-selected-item-icon",class:"text-primary w-4 h-4"})):D("",!0)],8,Ca)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1})]),_:1})]),_:1})])]),i("div",Pa,[i("div",Ia,[t(e).dataSource.client===t(d).SQLITE?(f(),$(B,{key:0},[],64)):t(e).dataSource.client===t(d).SNOWFLAKE?(f(),_(u,{key:1,gutter:24},{default:s(()=>[n(m,{span:12},{default:s(()=>[n(r,w({label:a.$t("labels.database")},t(y)["dataSource.connection.database"]),{default:s(()=>[n(c,{value:t(e).dataSource.connection.database,"onUpdate:value":o[1]||(o[1]=l=>t(e).dataSource.connection.database=l),class:"nc-extdb-host-database"},null,8,["value"])]),_:1},16,["label"])]),_:1}),n(m,{span:12},{default:s(()=>[n(r,w({label:"Schema"},t(y)["dataSource.connection.schema"]),{default:s(()=>[n(c,{value:t(e).dataSource.connection.schema,"onUpdate:value":o[2]||(o[2]=l=>t(e).dataSource.connection.schema=l),class:"nc-extdb-host-database"},null,8,["value"])]),_:1},16)]),_:1})]),_:1})):t(e).dataSource.client===t(d).DATABRICKS?(f(),_(u,{key:2,gutter:24},{default:s(()=>[n(m,{span:12},{default:s(()=>[n(r,w({label:"Database"},t(y)["dataSource.connection.database"]),{default:s(()=>[n(c,{value:t(e).dataSource.connection.database,"onUpdate:value":o[3]||(o[3]=l=>t(e).dataSource.connection.database=l),class:"nc-extdb-host-database"},null,8,["value"])]),_:1},16)]),_:1}),n(m,{span:12},{default:s(()=>[n(r,w({label:"Schema"},t(y)["dataSource.connection.schema"]),{default:s(()=>[n(c,{value:t(e).dataSource.connection.schema,"onUpdate:value":o[4]||(o[4]=l=>t(e).dataSource.connection.schema=l),class:"nc-extdb-host-schema"},null,8,["value"])]),_:1},16)]),_:1})]),_:1})):(f(),_(u,{key:3,gutter:24},{default:s(()=>[n(m,{span:12},{default:s(()=>[n(r,w({label:a.$t("labels.database")},t(y)["dataSource.connection.database"]),{default:s(()=>[n(c,{value:t(e).dataSource.connection.database,"onUpdate:value":o[5]||(o[5]=l=>t(e).dataSource.connection.database=l),placeholder:a.$t("labels.dbCreateIfNotExists"),class:"nc-extdb-host-database"},null,8,["value","placeholder"])]),_:1},16,["label"])]),_:1}),n(m,{span:12},{default:s(()=>{var l;return[([t(d).MSSQL,t(d).PG].includes(t(e).dataSource.client)||[t(d).MSSQL,t(d).PG].includes((l=t(g))==null?void 0:l.sub_type))&&t(e).dataSource.searchPath?(f(),_(r,w({key:0,label:a.$t("labels.schemaName")},t(y)["dataSource.searchPath.0"]),{default:s(()=>[n(c,{value:t(e).dataSource.searchPath[0],"onUpdate:value":o[6]||(o[6]=se=>t(e).dataSource.searchPath[0]=se),placeholder:t(V)&&`${t(V)} (default)`},null,8,["value","placeholder"])]),_:1},16,["label"])):D("",!0)]}),_:1})]),_:1}))])]),i("div",Ta,[Ea,i("div",Ua,[n(Ee,{allowMetaWrite:t(G),"onUpdate:allowMetaWrite":o[7]||(o[7]=l=>z(G)?G.value=l:null),allowDataWrite:t(O),"onUpdate:allowDataWrite":o[8]||(o[8]=l=>z(O)?O.value=l:null)},null,8,["allowMetaWrite","allowDataWrite"])])]),[t(d).SQLITE,t(d).SNOWFLAKE,t(d).DATABRICKS].includes(t(e).dataSource.client)?D("",!0):(f(),_($e,{key:0,"active-key":t(C),"onUpdate:activeKey":o[12]||(o[12]=l=>z(C)?C.value=l:null),ghost:"",class:"nc-source-advanced-options !mt-4"},{expandIcon:s(({isActive:l})=>[n(j,{type:"text",size:"small",class:"!-ml-1.5",onClick:o[9]||(o[9]=se=>Ie(!t(C).length))},{default:s(()=>[$a,n(A,{icon:"chevronDown",class:ce(["ml-2 flex-none cursor-pointer transform transition-transform duration-500",{"!rotate-180":l}])},null,8,["class"])]),_:2},1024)]),default:s(()=>[n(Ue,{key:"1",collapsible:"disabled"},{header:s(()=>[Da]),default:s(()=>[i("div",Na,[i("div",La,[n(u,{gutter:24},{default:s(()=>[n(m,{span:12},{default:s(()=>[n(r,{label:a.$t("labels.inflection.tableName")},{default:s(()=>[n(R,{value:t(e).inflection.inflectionTable,"onUpdate:value":o[10]||(o[10]=l=>t(e).inflection.inflectionTable=l),class:"nc-select-shadow","dropdown-class-name":"nc-dropdown-inflection-table-name"},{default:s(()=>[(f(),$(B,null,q(te,l=>n(E,{key:l,value:l},{default:s(()=>[P(h(l),1)]),_:2},1032,["value"])),64))]),_:1},8,["value"])]),_:1},8,["label"])]),_:1}),n(m,{span:12},{default:s(()=>[n(r,{label:a.$t("labels.inflection.columnName")},{default:s(()=>[n(R,{value:t(e).inflection.inflectionColumn,"onUpdate:value":o[11]||(o[11]=l=>t(e).inflection.inflectionColumn=l),class:"nc-select-shadow","dropdown-class-name":"nc-dropdown-inflection-column-name"},{default:s(()=>[(f(),$(B,null,q(te,l=>n(E,{key:l,value:l},{default:s(()=>[P(h(l),1)]),_:2},1032,["value"])),64))]),_:1},8,["value"])]),_:1},8,["label"])]),_:1})]),_:1})])])]),_:1})]),_:1},8,["active-key"])),Aa]),_:1},8,["model"])])]),i("div",Ba,[n(Ne),n(Le)])]),i("div",Ma,[i("div",Fa,[i("div",Qa,[n(A,{icon:"alertTriangle",class:"flex-none"}),i("div",null,h(a.$t("msg.warning.dbValid")),1)])]),i("div",Wa,[i("div",{class:"w-[15px] h-[15px] cursor-pointer",onDblclick:ye},null,32),n(p,{disabled:!t(T)},{title:s(()=>[P(h(t(T)),1)]),default:s(()=>[n(j,{type:"secondary",size:"small",class:ce(["nc-extdb-btn-test-connection",{"pointer-events-none":t(v)}]),loading:t(Q),"icon-position":"right",onClick:Pe},{icon:s(()=>[t(v)?(f(),_(A,{key:0,icon:"circleCheckSolid",class:"!text-green-700 w-4 h-4"})):t(T)?(f(),_(A,{key:1,icon:"alertTriangleSolid",class:"!text-red-700 w-4 h-4"})):D("",!0)]),default:s(()=>[i("span",null,h(t(v)?"Test successful":"Test connection"),1)]),_:1},8,["class","loading"])]),_:1},8,["disabled"]),n(j,{size:"small",type:"primary",disabled:!t(v),loading:t(he),class:"nc-extdb-btn-submit",onClick:Ce},{default:s(()=>[P(h(a.$t("general.submit")),1)]),_:1},8,["disabled","loading"])])])])}}}),Yt=sa(Va,[["__scopeId","data-v-3e055b0b"]]);export{Yt as default};
|
1
|
+
import{_ as Ae}from"./d-tLNYlP.js";import{e as Be,aG as Me,be as Fe,aF as Qe,S as We,cK as Ve,f as x,dD as Ge,r as b,bc as Oe,bf as Ke,dE as d,b as le,$ as Re,dF as U,k as f,a8 as $,a9 as i,z as n,m as s,cp as w,p as t,ay as B,bA as q,l as _,b1 as D,aS as P,aT as h,aB as je,aC as qe,b_ as z,aU as ce,an as ze,dG as He,bo as ie,bq as re,dH as Xe,aZ as Ye,de as Ze,df as Je,aX as ea,aV as aa,aW as ta,bx as oa,by as na,aQ as sa}from"./NHZFd8bQ.js";import{_ as la}from"./BPBo3uNz.js";import{_ as ca,a as ia}from"./yvNBUCYV.js";import{_ as ra}from"./BPfa9v3p.js";import{u as da,v as ua}from"./C2y2A27G.js";import{b as ma,a as pa,f as N}from"./DnFxlRi4.js";import{F as de}from"./C17-0Owd.js";import"./BE4MlnZf.js";import{I as fa}from"./LrQ3PXSl.js";import{_ as _a,C as va}from"./DbQ8PEQZ.js";import{_ as ba}from"./BDlHzTvk.js";import{S as Sa}from"./KY60TpFQ.js";import"./CCIDjjGj.js";import"./C6c9Dspn.js";import"./B12ilfKh.js";import"./B5NtOENv.js";import"./L9TIwNpK.js";import"./BPS1H-Sz.js";import"./BZfcRRAG.js";import"./QWjz_-lm.js";import"./Ckrtr2Si.js";import"./DTBGgeX5.js";import"./m-_0Ui4u.js";import"./C0vKFrOr.js";import"./CYRe9VEh.js";import"./C5Fh5dLw.js";import"./LLghMu9r.js";import"./BMpULef7.js";import"./D0lTgCiL.js";import"./DqyL5Uhs.js";import"./B5FLXBR1.js";import"./BXzZkUYy.js";import"./BPxXddiW.js";import"./B2NO182c.js";import"./BNv598XD.js";import"./D-ULZAvr.js";import"./C4NvFsmx.js";import"./RCSYvIJN.js";import"./DbGbCtZA.js";import"./BvJHFs9-.js";import"./m9SI53XN.js";import"./NuKLqi_C.js";import"./CeUvd5CG.js";import"./B9dOhF-2.js";import"./CpWeSecD.js";import"./AoMdM-MP.js";import"./BhZrVUuE.js";import"./ChOVvzZi.js";import"./B4rH_4ZN.js";import"./BQQOEPN4.js";import"./BBA0nfaW.js";import"./BPaH70bH.js";import"./C5YDuKgZ.js";import"./BsepGfVv.js";import"./boyBAVNN.js";import"./C00NHga8.js";import"./G4Pt-Lbf.js";import"./B3TBCQg9.js";import"./DvgZT7js.js";import"./BV5fkeNl.js";import"./B_LFFdI9.js";const M=I=>(oa("data-v-3e055b0b"),I=I(),na(),I),ha={class:"edit-source bg-white relative h-full flex flex-col w-full"},ga={class:"h-full max-h-[calc(100%_-_65px)] flex"},ya={class:"nc-edit-source-left-panel nc-scrollbar-thin"},xa={class:"h-full max-w-[768px] mx-auto"},wa={class:"nc-form-section"},ka={class:"nc-form-section-body"},Ca=["data-testid"],Pa={class:"nc-form-section"},Ia={class:"nc-form-section-body"},Ta={class:"nc-form-section"},Ea=M(()=>i("div",{class:"nc-form-section-title"},"Permissions",-1)),Ua={class:"nc-form-section-body"},$a=M(()=>i("div",{class:"nc-form-section-title"},"Advanced options",-1)),Da=M(()=>i("span",null,null,-1)),Na={class:"flex flex-col gap-4"},La={class:"flex flex-col gap-4"},Aa=M(()=>i("div",null,null,-1)),Ba={class:"nc-edit-source-right-panel"},Ma={class:"p-4 w-full flex items-center justify-between gap-3 border-t-1 border-gray-200"},Fa={class:"flex-1 flex items-center gap-3"},Qa={class:"flex-1 flex items-center gap-3 text-[#C86827]"},Wa={class:"flex items-center gap-3"},Va=Be({__name:"EditBase",props:{sourceId:{}},emits:["sourceUpdated","close"],setup(I,{emit:ue}){const H=I,X=ue,me=Me(),pe=Fe(),{base:k}=Qe(me),{integrations:Y,loadIntegrations:fe}=da(),F=We(Ve,void 0),_e=x(()=>{var a;return(F==null?void 0:F.value)??((a=k.value)==null?void 0:a.id)}),{refreshCommandPalette:ve}=Ge(),be=de.useForm,v=b(!1),Q=b(!1),Z=b(),{api:W}=Oe(),{$e:L}=ze(),{t:Se}=Ke(),he=b(!1),ge=b(!1),J=b(0),C=b([]),ye=()=>{J.value+=1,J.value>=2&&(ge.value=!0)},e=b(((a=d.MYSQL)=>({title:"",dataSource:{...He(a)},inflection:{inflectionColumn:"none",inflectionTable:"none"},sslUse:U.No,extraParameters:[],is_schema_readonly:!0,is_data_readonly:!1}))()),g=x(()=>e.value.fk_integration_id&&Y.value.find(a=>a.id===e.value.fk_integration_id)),xe=x(()=>{var a,o,c;return(c=(o=(a=g.value)==null?void 0:a.config)==null?void 0:o.connection)==null?void 0:c.database}),V=x(()=>{var a,o,c;return(c=(o=(a=g.value)==null?void 0:a.config)==null?void 0:o.searchPath)==null?void 0:c[0]}),ee=a=>{if(a==="database")return xe.value;if(a==="schema")return V.value},we=x(()=>({title:[ma()],extraParameters:[pa],"dataSource.client":[N()],...e.value.dataSource.client===d.SQLITE?{}:e.value.dataSource.client===d.SNOWFLAKE?{"dataSource.connection.database":[N()],"dataSource.connection.schema":[N()]}:{"dataSource.connection.database":g.value&&ee("database")?[]:[N()],...[d.PG,d.MSSQL].includes(e.value.dataSource.client)&&e.value.dataSource.searchPath?{"dataSource.searchPath.0":g.value&&ee("schema")?[]:[N()]}:{}}})),{validate:ae,validateInfos:y}=be(e,we),ke=()=>{if(e.value.dataSource.client!==d.SQLITE){const a=e.value.dataSource.connection;a.ssl?typeof a.ssl=="string"?e.value.sslUse=U.Allowed:e.value.sslUse=U.Preferred:e.value.sslUse=U.No}},te=["camelize","none"];function oe(){const a=Object.fromEntries(new Map(e.value.extraParameters.map(c=>[c.key,c.value]))),o={...e.value.dataSource.connection,...a};return o.ssl=ua(o,e.value.sslUse,e.value.dataSource.client),o}const ne=()=>{var a,o,c,r,m;(m=(r=(c=(o=(a=Z.value)==null?void 0:a.$el.querySelector(".ant-form-item-explain-error"))==null?void 0:o.parentNode)==null?void 0:c.parentNode)==null?void 0:r.querySelector("input"))==null||m.focus()},Ce=async()=>{var a,o,c,r,m,u;try{await ae()}catch{ne();return}try{if(!((a=k.value)!=null&&a.id))return;const S=oe(),p={...e.value.dataSource,connection:S};p.client===d.SQLITE&&((c=(o=p.connection)==null?void 0:o.connection)!=null&&c.filename)&&(p.connection.filename=p.connection.connection.filename),g.value&&(((r=p.connection)==null?void 0:r.database)===""&&(p.connection.database=void 0),((m=p.searchPath)==null?void 0:m[0])===""&&(p.searchPath=void 0)),await W.source.update((u=k.value)==null?void 0:u.id,H.sourceId,{alias:e.value.title,type:e.value.dataSource.client,config:p,inflection_column:e.value.inflection.inflectionColumn,inflection_table:e.value.inflection.inflectionTable,is_schema_readonly:e.value.is_schema_readonly,is_data_readonly:e.value.is_data_readonly}),L("a:source:edit:extdb"),await pe.loadProject(_e.value,!0),X("sourceUpdated"),X("close")}catch(S){ie.error(await re(S))}finally{ve()}},T=b(),Pe=async()=>{try{await ae()}catch{ne();return}L("a:source:edit:extdb:test-connection",[]);try{if(Q.value=!0,e.value.dataSource.client===d.SQLITE)v.value=!0;else{const a=oe();a.database=Xe(e.value.dataSource);let o=e.value.dataSource.searchPath;g.value&&((a==null?void 0:a.database)===""&&(a.database=void 0),(o==null?void 0:o[0])===""&&(o=void 0));const c={...e.value.dataSource,connection:a,searchPath:o,fk_integration_id:e.value.fk_integration_id},r=await W.utils.testConnection(c);r.code===0?v.value=!0:(v.value=!1,ie.error(`${Se("msg.error.dbConnectionFailed")} ${r.message}`))}}catch(a){v.value=!1,T.value=await re(a)}Q.value=!1};le(()=>e.value.dataSource,()=>{v.value=!1,T.value=null},{deep:!0}),Re(async()=>{var a,o,c,r;if(await fe(!0,(a=k.value)==null?void 0:a.id),(o=k.value)!=null&&o.id){const m=["host","port","user","password","database"],u=await W.source.read((c=k.value)==null?void 0:c.id,H.sourceId),S=Object.entries(u.config.connection||{}).filter(([p])=>!m.includes(p)).map(([p,E])=>({key:p,value:E}));e.value={title:u.alias||"",dataSource:{connection:{},...u.config||{},searchPath:((r=u.config)==null?void 0:r.searchPath)||[]},inflection:{inflectionColumn:u.inflection_column,inflectionTable:u.inflection_table},extraParameters:S,sslUse:U.No,is_schema_readonly:u.is_schema_readonly,is_data_readonly:u.is_data_readonly,fk_integration_id:u.fk_integration_id},ke()}}),le(()=>e.value.dataSource.searchPath,a=>{[d.PG,d.MSSQL].includes(e.value.dataSource.client)&&!a&&(e.value.dataSource.searchPath=[])},{immediate:!0});const G=x({get:()=>!e.value.is_schema_readonly,set:a=>{e.value.is_schema_readonly=!a,a&&(e.value.is_data_readonly=!1),L("c:source:schema-write-toggle",{allowed:!a,edit:!0})}}),O=x({get:()=>!e.value.is_data_readonly,set:a=>{e.value.is_data_readonly=!a,L("c:source:data-write-toggle",{allowed:!a,edit:!0})}}),Ie=a=>{a?(C.value=["1"],Te(!0,"nc-source-advanced-options")):C.value=[]};let K;function Te(a,o){K&&clearTimeout(K),Ye(()=>{const c=document.querySelector(`.edit-source .${o}`);c&&(K=setTimeout(()=>{c.scrollIntoView({block:"center",behavior:"smooth"})},400))})}return(a,o)=>{const c=fa,r=ba,m=Ze,u=Je,S=Ae,p=ea,E=Sa,R=la,Ee=ca,A=aa,j=ta,Ue=_a,$e=va,De=de,Ne=ia,Le=ra;return f(),$("div",ha,[i("div",ga,[i("div",ya,[i("div",xa,[n(De,{ref_key:"form",ref:Z,model:t(e),"hide-required-mark":"",name:"external-base-create-form",layout:"vertical","no-style":"",class:"flex flex-col gap-5.5"},{default:s(()=>[i("div",wa,[i("div",ka,[n(u,{gutter:24},{default:s(()=>[n(m,{span:12},{default:s(()=>[n(r,w({label:"Data Source Name"},t(y).title),{default:s(()=>[n(c,{value:t(e).title,"onUpdate:value":o[0]||(o[0]=l=>t(e).title=l),class:"nc-extdb-proj-name"},null,8,["value"])]),_:1},16)]),_:1})]),_:1}),n(u,{gutter:24},{default:s(()=>[n(m,{span:12},{default:s(()=>[n(r,{label:"Select connection"},{default:s(()=>[n(R,{value:t(e).fk_integration_id,disabled:"",class:"nc-extdb-db-type nc-select-shadow","dropdown-class-name":"nc-dropdown-ext-db-type",placeholder:"Select connection","allow-clear":"","show-search":"","dropdown-match-select-width":""},{default:s(()=>[(f(!0),$(B,null,q(t(Y),l=>(f(),_(E,{key:l.id,value:l.id},{default:s(()=>[i("div",{class:"w-full flex gap-2 items-center","data-testid":l.title},[l.type?(f(),_(S,{key:0,"source-type":l.sub_type,class:"flex-none h-4 w-4"},null,8,["source-type"])):D("",!0),n(p,{class:"flex-1 truncate","show-on-truncate-only":""},{title:s(()=>[P(h(l.title),1)]),default:s(()=>[P(" "+h(l.title),1)]),_:2},1024),t(e).fk_integration_id===l.id?(f(),_(je(("iconMap"in a?a.iconMap:t(qe)).check),{key:1,id:"nc-selected-item-icon",class:"text-primary w-4 h-4"})):D("",!0)],8,Ca)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1})]),_:1})]),_:1})])]),i("div",Pa,[i("div",Ia,[t(e).dataSource.client===t(d).SQLITE?(f(),$(B,{key:0},[],64)):t(e).dataSource.client===t(d).SNOWFLAKE?(f(),_(u,{key:1,gutter:24},{default:s(()=>[n(m,{span:12},{default:s(()=>[n(r,w({label:a.$t("labels.database")},t(y)["dataSource.connection.database"]),{default:s(()=>[n(c,{value:t(e).dataSource.connection.database,"onUpdate:value":o[1]||(o[1]=l=>t(e).dataSource.connection.database=l),class:"nc-extdb-host-database"},null,8,["value"])]),_:1},16,["label"])]),_:1}),n(m,{span:12},{default:s(()=>[n(r,w({label:"Schema"},t(y)["dataSource.connection.schema"]),{default:s(()=>[n(c,{value:t(e).dataSource.connection.schema,"onUpdate:value":o[2]||(o[2]=l=>t(e).dataSource.connection.schema=l),class:"nc-extdb-host-database"},null,8,["value"])]),_:1},16)]),_:1})]),_:1})):t(e).dataSource.client===t(d).DATABRICKS?(f(),_(u,{key:2,gutter:24},{default:s(()=>[n(m,{span:12},{default:s(()=>[n(r,w({label:"Database"},t(y)["dataSource.connection.database"]),{default:s(()=>[n(c,{value:t(e).dataSource.connection.database,"onUpdate:value":o[3]||(o[3]=l=>t(e).dataSource.connection.database=l),class:"nc-extdb-host-database"},null,8,["value"])]),_:1},16)]),_:1}),n(m,{span:12},{default:s(()=>[n(r,w({label:"Schema"},t(y)["dataSource.connection.schema"]),{default:s(()=>[n(c,{value:t(e).dataSource.connection.schema,"onUpdate:value":o[4]||(o[4]=l=>t(e).dataSource.connection.schema=l),class:"nc-extdb-host-schema"},null,8,["value"])]),_:1},16)]),_:1})]),_:1})):(f(),_(u,{key:3,gutter:24},{default:s(()=>[n(m,{span:12},{default:s(()=>[n(r,w({label:a.$t("labels.database")},t(y)["dataSource.connection.database"]),{default:s(()=>[n(c,{value:t(e).dataSource.connection.database,"onUpdate:value":o[5]||(o[5]=l=>t(e).dataSource.connection.database=l),placeholder:a.$t("labels.dbCreateIfNotExists"),class:"nc-extdb-host-database"},null,8,["value","placeholder"])]),_:1},16,["label"])]),_:1}),n(m,{span:12},{default:s(()=>{var l;return[([t(d).MSSQL,t(d).PG].includes(t(e).dataSource.client)||[t(d).MSSQL,t(d).PG].includes((l=t(g))==null?void 0:l.sub_type))&&t(e).dataSource.searchPath?(f(),_(r,w({key:0,label:a.$t("labels.schemaName")},t(y)["dataSource.searchPath.0"]),{default:s(()=>[n(c,{value:t(e).dataSource.searchPath[0],"onUpdate:value":o[6]||(o[6]=se=>t(e).dataSource.searchPath[0]=se),placeholder:t(V)&&`${t(V)} (default)`},null,8,["value","placeholder"])]),_:1},16,["label"])):D("",!0)]}),_:1})]),_:1}))])]),i("div",Ta,[Ea,i("div",Ua,[n(Ee,{allowMetaWrite:t(G),"onUpdate:allowMetaWrite":o[7]||(o[7]=l=>z(G)?G.value=l:null),allowDataWrite:t(O),"onUpdate:allowDataWrite":o[8]||(o[8]=l=>z(O)?O.value=l:null)},null,8,["allowMetaWrite","allowDataWrite"])])]),[t(d).SQLITE,t(d).SNOWFLAKE,t(d).DATABRICKS].includes(t(e).dataSource.client)?D("",!0):(f(),_($e,{key:0,"active-key":t(C),"onUpdate:activeKey":o[12]||(o[12]=l=>z(C)?C.value=l:null),ghost:"",class:"nc-source-advanced-options !mt-4"},{expandIcon:s(({isActive:l})=>[n(j,{type:"text",size:"small",class:"!-ml-1.5",onClick:o[9]||(o[9]=se=>Ie(!t(C).length))},{default:s(()=>[$a,n(A,{icon:"chevronDown",class:ce(["ml-2 flex-none cursor-pointer transform transition-transform duration-500",{"!rotate-180":l}])},null,8,["class"])]),_:2},1024)]),default:s(()=>[n(Ue,{key:"1",collapsible:"disabled"},{header:s(()=>[Da]),default:s(()=>[i("div",Na,[i("div",La,[n(u,{gutter:24},{default:s(()=>[n(m,{span:12},{default:s(()=>[n(r,{label:a.$t("labels.inflection.tableName")},{default:s(()=>[n(R,{value:t(e).inflection.inflectionTable,"onUpdate:value":o[10]||(o[10]=l=>t(e).inflection.inflectionTable=l),class:"nc-select-shadow","dropdown-class-name":"nc-dropdown-inflection-table-name"},{default:s(()=>[(f(),$(B,null,q(te,l=>n(E,{key:l,value:l},{default:s(()=>[P(h(l),1)]),_:2},1032,["value"])),64))]),_:1},8,["value"])]),_:1},8,["label"])]),_:1}),n(m,{span:12},{default:s(()=>[n(r,{label:a.$t("labels.inflection.columnName")},{default:s(()=>[n(R,{value:t(e).inflection.inflectionColumn,"onUpdate:value":o[11]||(o[11]=l=>t(e).inflection.inflectionColumn=l),class:"nc-select-shadow","dropdown-class-name":"nc-dropdown-inflection-column-name"},{default:s(()=>[(f(),$(B,null,q(te,l=>n(E,{key:l,value:l},{default:s(()=>[P(h(l),1)]),_:2},1032,["value"])),64))]),_:1},8,["value"])]),_:1},8,["label"])]),_:1})]),_:1})])])]),_:1})]),_:1},8,["active-key"])),Aa]),_:1},8,["model"])])]),i("div",Ba,[n(Ne),n(Le)])]),i("div",Ma,[i("div",Fa,[i("div",Qa,[n(A,{icon:"alertTriangle",class:"flex-none"}),i("div",null,h(a.$t("msg.warning.dbValid")),1)])]),i("div",Wa,[i("div",{class:"w-[15px] h-[15px] cursor-pointer",onDblclick:ye},null,32),n(p,{disabled:!t(T)},{title:s(()=>[P(h(t(T)),1)]),default:s(()=>[n(j,{type:"secondary",size:"small",class:ce(["nc-extdb-btn-test-connection",{"pointer-events-none":t(v)}]),loading:t(Q),"icon-position":"right",onClick:Pe},{icon:s(()=>[t(v)?(f(),_(A,{key:0,icon:"circleCheckSolid",class:"!text-green-700 w-4 h-4"})):t(T)?(f(),_(A,{key:1,icon:"alertTriangleSolid",class:"!text-red-700 w-4 h-4"})):D("",!0)]),default:s(()=>[i("span",null,h(t(v)?"Test successful":"Test connection"),1)]),_:1},8,["class","loading"])]),_:1},8,["disabled"]),n(j,{size:"small",type:"primary",disabled:!t(v),loading:t(he),class:"nc-extdb-btn-submit",onClick:Ce},{default:s(()=>[P(h(a.$t("general.submit")),1)]),_:1},8,["disabled","loading"])])])])}}}),Yt=sa(Va,[["__scopeId","data-v-3e055b0b"]]);export{Yt as default};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
const __vite__fileDeps=["./
|
2
|
-
import{e as B,S as i,aJ as V,d0 as z,aG as S,f as m,d6 as A,d7 as H,bK as P,r as p,c1 as U,c3 as G,cZ as M,p as e,k as o,l as c,b_ as Z,a8 as r,m as g,a9 as C,aT as u,b1 as h,aU as $,aD as b,aA as w,av as J}from"./
|
1
|
+
const __vite__fileDeps=["./yYBIpa2d.js","./NHZFd8bQ.js","./entry.6uu-XYG8.css","./BjIWxehG.js","./FormulaWrapperCell.D9jkpMT6.css","./ijWpAKHL.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
2
|
+
import{e as B,S as i,aJ as V,d0 as z,aG as S,f as m,d6 as A,d7 as H,bK as P,r as p,c1 as U,c3 as G,cZ as M,p as e,k as o,l as c,b_ as Z,a8 as r,m as g,a9 as C,aT as u,b1 as h,aU as $,aD as b,aA as w,av as J}from"./NHZFd8bQ.js";import{B as k}from"./BjIWxehG.js";import{u as K}from"./BQTbXctc.js";import"./Y45Pvb6W.js";const q=b(()=>w(()=>import("./yYBIpa2d.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(s=>s.default||s)),Q=b(()=>w(()=>import("./ijWpAKHL.js"),__vite__mapDeps([5,1,2]),import.meta.url).then(s=>s.default||s)),X={class:"font-bold"},Y=C("span",null,"ERR!",-1),ee=["innerHTML"],te={key:2,class:"text-left text-wrap mt-2 text-[#e65100] text-xs"},ae={key:3,class:"text-left text-wrap mt-2 text-[#e65100] text-xs"},ie=B({__name:"Formula",setup(s){const t=i(V),a=i(z),{isPg:F}=S(),_=m(()=>F(t.value.source_id)?k(A(a==null?void 0:a.value)):k(a==null?void 0:a.value)),f=m(()=>H(_.value)),{showEditNonEditableFieldWarning:I,showClearNonEditableFieldWarning:T,activateShowEditNonEditableFieldWarning:y}=K(),N=m(()=>{var l,n;return((n=(l=t.value.colOptions)==null?void 0:l.parsed_tree)==null?void 0:n.dataType)===P.NUMERIC}),O=i(U,p(void 0)),W=i(G,p(!1)),D=i(M,p(!1));return(l,n)=>{var v,x,E;const L=q,R=J,j=Q;return(v=e(t).meta)!=null&&v.display_type?(o(),c(L,{key:0,modelValue:e(a),"onUpdate:modelValue":n[0]||(n[0]=d=>Z(a)?a.value=d:null),column:{uidt:(x=e(t).meta)==null?void 0:x.display_type,...(E=e(t).meta)==null?void 0:E.display_column_meta}},null,8,["modelValue","column"])):(o(),r("div",{key:1,class:$(["w-full",{"text-right":e(N)&&e(D)&&!e(W)}])},[e(t)&&e(t).colOptions&&e(t).colOptions.error?(o(),c(R,{key:0,placement:"bottom",class:"text-orange-700"},{title:g(()=>[C("span",X,u(e(t).colOptions.error),1)]),default:g(()=>[Y]),_:1})):(o(),r("div",{key:1,class:"nc-cell-field py-1",onDblclick:n[1]||(n[1]=(...d)=>e(y)&&e(y)(...d))},[e(f)?(o(),r("div",{key:0,innerHTML:e(f)},null,8,ee)):(o(),c(j,{key:1,value:e(_),lines:e(O)},null,8,["value","lines"])),e(I)?(o(),r("div",te,u(l.$t("msg.info.computedFieldEditWarning")),1)):h("",!0),e(T)?(o(),r("div",ae,u(l.$t("msg.info.computedFieldDeleteWarning")),1)):h("",!0)],32))],2))}}});export{ie as default};
|