@tmrw-abfrl/nc-lib-gui 1.0.20260122171414 → 1.0.20260122183257
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 +1 -1
- package/lib/dist/404.html +1 -1
- package/lib/dist/_nuxt/-Fd_Y_qf.js +2 -0
- package/lib/dist/_nuxt/0COa5-nV.js +1 -0
- package/lib/dist/_nuxt/0Kjq-V1w.js +1 -0
- package/lib/dist/_nuxt/0htZ5ipH.js +1 -0
- package/lib/dist/_nuxt/1TApqDoI.js +1 -0
- package/lib/dist/_nuxt/1V70ZYsZ.js +2 -0
- package/lib/dist/_nuxt/2lQuvV2J.js +1 -0
- package/lib/dist/_nuxt/3bLlRPIa.js +1 -0
- package/lib/dist/_nuxt/4IOa-BI2.js +2 -0
- package/lib/dist/_nuxt/5-JhWV4z.js +1 -0
- package/lib/dist/_nuxt/5Kve3IYw.js +1 -0
- package/lib/dist/_nuxt/5MQS528d.js +1 -0
- package/lib/dist/_nuxt/5isTmGTM.js +2 -0
- package/lib/dist/_nuxt/5s8ujhzj.js +1 -0
- package/lib/dist/_nuxt/6E377i00.js +2 -0
- package/lib/dist/_nuxt/6Ejwe0XB.js +1 -0
- package/lib/dist/_nuxt/6vYw9cDT.js +1 -0
- package/lib/dist/_nuxt/7CqiPGM9.js +1 -0
- package/lib/dist/_nuxt/7Ebvubfs.js +1 -0
- package/lib/dist/_nuxt/7YB7OXpi.js +4 -0
- package/lib/dist/_nuxt/8CwP5NB9.js +4 -0
- package/lib/dist/_nuxt/8h9o3Adl.js +2 -0
- package/lib/dist/_nuxt/9yD2xc3m.js +1 -0
- package/lib/dist/_nuxt/Asy1uBGa.js +2 -0
- package/lib/dist/_nuxt/B-1qCRYo.js +2 -0
- package/lib/dist/_nuxt/B-7EK0KC.js +1 -0
- package/lib/dist/_nuxt/B-reyJxj.js +2 -0
- package/lib/dist/_nuxt/B0Yo28ZF.js +1 -0
- package/lib/dist/_nuxt/B1W6jLrr.js +2 -0
- package/lib/dist/_nuxt/B2DOwCjS.js +1 -0
- package/lib/dist/_nuxt/B2NoqxUq.js +2 -0
- package/lib/dist/_nuxt/B2OAmZEV.js +2 -0
- package/lib/dist/_nuxt/B35tlh_g.js +2 -0
- package/lib/dist/_nuxt/B4Cch6N3.js +1 -0
- package/lib/dist/_nuxt/B4Ed0fqQ.js +1 -0
- package/lib/dist/_nuxt/B53VDQ-6.js +2 -0
- package/lib/dist/_nuxt/B6K-e6Tr.js +1 -0
- package/lib/dist/_nuxt/B6e2XiCt.js +1 -0
- package/lib/dist/_nuxt/B6fK2RsU.js +1 -0
- package/lib/dist/_nuxt/B81Uc1aW.js +2 -0
- package/lib/dist/_nuxt/B8EmbNtu.js +1 -0
- package/lib/dist/_nuxt/B8PzKNM2.js +1 -0
- package/lib/dist/_nuxt/B8m7mIyP.js +2 -0
- package/lib/dist/_nuxt/B9YQttXw.js +3 -0
- package/lib/dist/_nuxt/BA7i8dul.js +6 -0
- package/lib/dist/_nuxt/BAU4Za63.js +1 -0
- package/lib/dist/_nuxt/BAhgV4id.js +4 -0
- package/lib/dist/_nuxt/BB2ChmrB.js +2 -0
- package/lib/dist/_nuxt/BBtqLPsZ.js +1 -0
- package/lib/dist/_nuxt/BBxNcJtZ.js +1 -0
- package/lib/dist/_nuxt/BByGvBCU.js +2 -0
- package/lib/dist/_nuxt/BCAPeql7.js +1 -0
- package/lib/dist/_nuxt/BDaghQ07.js +2 -0
- package/lib/dist/_nuxt/BDy7MGkV.js +1 -0
- package/lib/dist/_nuxt/BExHbR6k.js +1 -0
- package/lib/dist/_nuxt/BFXne93u.js +1 -0
- package/lib/dist/_nuxt/BGoIy6WB.js +1 -0
- package/lib/dist/_nuxt/BHF0EPO7.js +2 -0
- package/lib/dist/_nuxt/BHnliyNK.js +1 -0
- package/lib/dist/_nuxt/BHyHGAcL.js +1 -0
- package/lib/dist/_nuxt/BJ-LVJRf.js +1 -0
- package/lib/dist/_nuxt/BJaa3yHB.js +2 -0
- package/lib/dist/_nuxt/BKDQtfkC.js +2 -0
- package/lib/dist/_nuxt/BKuz4HRx.js +1 -0
- package/lib/dist/_nuxt/BMdO1i0h.js +1 -0
- package/lib/dist/_nuxt/BMxa1Der.js +1 -0
- package/lib/dist/_nuxt/BNdudTOc.js +2 -0
- package/lib/dist/_nuxt/BOIUwIWk.js +1 -0
- package/lib/dist/_nuxt/BOqo-8N7.js +1 -0
- package/lib/dist/_nuxt/BQFUmFTD.js +1 -0
- package/lib/dist/_nuxt/BQRXuNi_.js +1 -0
- package/lib/dist/_nuxt/BQbEgLL3.js +21 -0
- package/lib/dist/_nuxt/BR1FmEe_.js +1 -0
- package/lib/dist/_nuxt/BRoT0DPT.js +2 -0
- package/lib/dist/_nuxt/BSWNA3qD.js +3 -0
- package/lib/dist/_nuxt/BSt0tuOV.js +1 -0
- package/lib/dist/_nuxt/BTKgGbLM.js +8 -0
- package/lib/dist/_nuxt/BTLckA2p.js +1 -0
- package/lib/dist/_nuxt/BTVAKIdn.js +2 -0
- package/lib/dist/_nuxt/BUMh_PBG.js +1 -0
- package/lib/dist/_nuxt/BUR4hxtJ.js +1 -0
- package/lib/dist/_nuxt/BVbbuXCR.js +1 -0
- package/lib/dist/_nuxt/BVzVyKOj.js +1 -0
- package/lib/dist/_nuxt/BWOJSpju.js +2 -0
- package/lib/dist/_nuxt/BXEB85yH.js +1 -0
- package/lib/dist/_nuxt/BXP6Lh1H.js +1 -0
- package/lib/dist/_nuxt/BXlTBtIG.js +1 -0
- package/lib/dist/_nuxt/BY9arnzS.js +1 -0
- package/lib/dist/_nuxt/BYgvYTHH.js +1 -0
- package/lib/dist/_nuxt/BYqjur5y.js +1 -0
- package/lib/dist/_nuxt/BZ9SbCcO.js +1 -0
- package/lib/dist/_nuxt/BZETQpTp.js +6 -0
- package/lib/dist/_nuxt/BZWht0Ml.js +1 -0
- package/lib/dist/_nuxt/B_awVk7D.js +1 -0
- package/lib/dist/_nuxt/BaHMJ5q-.js +1 -0
- package/lib/dist/_nuxt/BaOT4qLX.js +1 -0
- package/lib/dist/_nuxt/BaoPx-Dz.js +2 -0
- package/lib/dist/_nuxt/Bc60R9iA.js +1 -0
- package/lib/dist/_nuxt/Bd-_Xc-Q.js +1 -0
- package/lib/dist/_nuxt/Bdp6rK6M.js +2 -0
- package/lib/dist/_nuxt/BeO2MIBg.js +1 -0
- package/lib/dist/_nuxt/Bf8TM5tm.js +48 -0
- package/lib/dist/_nuxt/BfY6D2lG.js +1 -0
- package/lib/dist/_nuxt/BgQD9pvt.js +1 -0
- package/lib/dist/_nuxt/Bgwmazb3.js +1 -0
- package/lib/dist/_nuxt/BhE5pbhm.js +1 -0
- package/lib/dist/_nuxt/BhEAHA22.js +1 -0
- package/lib/dist/_nuxt/BiGFAF-j.js +1 -0
- package/lib/dist/_nuxt/Bifegrr8.js +1 -0
- package/lib/dist/_nuxt/Bj5LT2XI.js +1 -0
- package/lib/dist/_nuxt/BkCp8eW2.js +12 -0
- package/lib/dist/_nuxt/BkJKfwBq.js +1 -0
- package/lib/dist/_nuxt/BmU6zKMa.js +1 -0
- package/lib/dist/_nuxt/BmjgBNnZ.js +1 -0
- package/lib/dist/_nuxt/BnBiFfj7.js +1 -0
- package/lib/dist/_nuxt/BnKsznHj.js +1 -0
- package/lib/dist/_nuxt/BnvInYw8.js +1 -0
- package/lib/dist/_nuxt/Bo5BQ8V5.js +1 -0
- package/lib/dist/_nuxt/BonziR5d.js +1 -0
- package/lib/dist/_nuxt/Bp73vM9B.js +1 -0
- package/lib/dist/_nuxt/BpWdrZut.js +1 -0
- package/lib/dist/_nuxt/BqOoPwY1.js +1 -0
- package/lib/dist/_nuxt/BqRJ3Ny_.js +726 -0
- package/lib/dist/_nuxt/BrTWT1Uk.js +1 -0
- package/lib/dist/_nuxt/Bs1_SlB1.js +3 -0
- package/lib/dist/_nuxt/Bs_nNgIV.js +1 -0
- package/lib/dist/_nuxt/Bt4rLQ8b.js +2 -0
- package/lib/dist/_nuxt/BuGPbAJx.js +1 -0
- package/lib/dist/_nuxt/BuOyYzO9.js +1 -0
- package/lib/dist/_nuxt/BuvI0dmv.js +1 -0
- package/lib/dist/_nuxt/Bv3Dy2xo.js +1 -0
- package/lib/dist/_nuxt/BvObEiiE.js +1 -0
- package/lib/dist/_nuxt/BvR98UvE.js +2 -0
- package/lib/dist/_nuxt/BvWTPQdT.js +1 -0
- package/lib/dist/_nuxt/BwOaQNfY.js +1 -0
- package/lib/dist/_nuxt/BwqUIpiz.js +1 -0
- package/lib/dist/_nuxt/BxlE4Nu4.js +1 -0
- package/lib/dist/_nuxt/Bz-rxbYW.js +1 -0
- package/lib/dist/_nuxt/BzDwyekv.js +1 -0
- package/lib/dist/_nuxt/BzMffU1-.js +1 -0
- package/lib/dist/_nuxt/BzXucPhg.js +2 -0
- package/lib/dist/_nuxt/BzpOnCZZ.js +1 -0
- package/lib/dist/_nuxt/BzwJuH_i.js +2 -0
- package/lib/dist/_nuxt/C-awrbo8.js +9 -0
- package/lib/dist/_nuxt/C06BaeCV.js +1 -0
- package/lib/dist/_nuxt/C0agLNIe.js +1 -0
- package/lib/dist/_nuxt/C0gSvII1.js +2 -0
- package/lib/dist/_nuxt/C15rFp-f.js +1 -0
- package/lib/dist/_nuxt/C1h3AgHe.js +3 -0
- package/lib/dist/_nuxt/C1tUYpCb.js +1 -0
- package/lib/dist/_nuxt/C27nJv_C.js +8 -0
- package/lib/dist/_nuxt/C2xmVDZe.js +1 -0
- package/lib/dist/_nuxt/C3aMyUfk.js +1 -0
- package/lib/dist/_nuxt/C41oIsn-.js +2 -0
- package/lib/dist/_nuxt/C4CC-Gza.js +1 -0
- package/lib/dist/_nuxt/C4UyJh_D.js +1 -0
- package/lib/dist/_nuxt/C4yvr0_H.js +2 -0
- package/lib/dist/_nuxt/C4zyEjws.js +1 -0
- package/lib/dist/_nuxt/C5xrrcVF.js +1 -0
- package/lib/dist/_nuxt/C65g_V0g.js +7 -0
- package/lib/dist/_nuxt/C6C3PXie.js +1 -0
- package/lib/dist/_nuxt/C6xcfego.js +1 -0
- package/lib/dist/_nuxt/C7nA347z.js +2 -0
- package/lib/dist/_nuxt/C83ektio.js +6 -0
- package/lib/dist/_nuxt/C8i0yWq8.js +2 -0
- package/lib/dist/_nuxt/C8w5Z_YF.js +2 -0
- package/lib/dist/_nuxt/C9Y5nv9h.js +1 -0
- package/lib/dist/_nuxt/CAdQ7l69.js +1 -0
- package/lib/dist/_nuxt/CAsO-tbQ.js +2 -0
- package/lib/dist/_nuxt/CBSwfAsu.js +1 -0
- package/lib/dist/_nuxt/CBi0JASy.js +1 -0
- package/lib/dist/_nuxt/CBsyutmM.js +1 -0
- package/lib/dist/_nuxt/CE4e7K6f.js +2 -0
- package/lib/dist/_nuxt/CEdVJviq.js +1 -0
- package/lib/dist/_nuxt/CEjMmiHO.js +1 -0
- package/lib/dist/_nuxt/CFMKhP7n.js +1 -0
- package/lib/dist/_nuxt/CFg6h5vJ.js +2 -0
- package/lib/dist/_nuxt/CGIyyySa.js +1 -0
- package/lib/dist/_nuxt/CGeKcfhY.js +1 -0
- package/lib/dist/_nuxt/CIWhxqLz.js +1 -0
- package/lib/dist/_nuxt/CJ7y6RLt.js +1 -0
- package/lib/dist/_nuxt/CJOM7JBW.js +1 -0
- package/lib/dist/_nuxt/CK8TK-ZQ.js +2 -0
- package/lib/dist/_nuxt/CKDi01Mo.js +2 -0
- package/lib/dist/_nuxt/CKFEKdG7.js +1 -0
- package/lib/dist/_nuxt/CKrUi8oT.js +2 -0
- package/lib/dist/_nuxt/CL6aUcHf.js +1 -0
- package/lib/dist/_nuxt/CLWXlgK5.js +1 -0
- package/lib/dist/_nuxt/CM1cyMBt.js +1 -0
- package/lib/dist/_nuxt/CM7hSDYm.js +1 -0
- package/lib/dist/_nuxt/CMho0y4m.js +1 -0
- package/lib/dist/_nuxt/CNFZdBft.js +1 -0
- package/lib/dist/_nuxt/CNGmrH-0.js +2 -0
- package/lib/dist/_nuxt/COkV9zDD.js +1 -0
- package/lib/dist/_nuxt/CPEybeZK.js +1 -0
- package/lib/dist/_nuxt/CQHnOBUR.js +1 -0
- package/lib/dist/_nuxt/CRAjczL1.js +1 -0
- package/lib/dist/_nuxt/CSXb2tcR.js +1 -0
- package/lib/dist/_nuxt/CSXrUkcL.js +2 -0
- package/lib/dist/_nuxt/CTjmTRvC.js +2 -0
- package/lib/dist/_nuxt/CU6CyD0C.js +2 -0
- package/lib/dist/_nuxt/CUXvXvwq.js +2 -0
- package/lib/dist/_nuxt/CVI49OVx.js +1 -0
- package/lib/dist/_nuxt/CVThbMmy.js +1 -0
- package/lib/dist/_nuxt/CVZSsIc0.js +2 -0
- package/lib/dist/_nuxt/CV_nniNd.js +1 -0
- package/lib/dist/_nuxt/CVfegH0S.js +1 -0
- package/lib/dist/_nuxt/CWO3-uDK.js +2 -0
- package/lib/dist/_nuxt/CXJK1k-4.js +1 -0
- package/lib/dist/_nuxt/C_AiR1PT.js +2 -0
- package/lib/dist/_nuxt/C_Xm6H1T.js +1 -0
- package/lib/dist/_nuxt/Calkzdea.js +2 -0
- package/lib/dist/_nuxt/Cb1hyCs1.js +3 -0
- package/lib/dist/_nuxt/Cb6c1pXi.js +1 -0
- package/lib/dist/_nuxt/CbmLug65.js +2 -0
- package/lib/dist/_nuxt/CdLnwfB3.js +1 -0
- package/lib/dist/_nuxt/CdUTwh7F.js +1 -0
- package/lib/dist/_nuxt/Ce4MeAGU.js +1 -0
- package/lib/dist/_nuxt/CeAiaTrB.js +1 -0
- package/lib/dist/_nuxt/CeD7F3nc.js +1 -0
- package/lib/dist/_nuxt/Cf0eD5iU.js +2 -0
- package/lib/dist/_nuxt/CfBsm4I3.js +1 -0
- package/lib/dist/_nuxt/CfetvOdO.js +2 -0
- package/lib/dist/_nuxt/Cgq223Zc.js +1 -0
- package/lib/dist/_nuxt/Ch6kOw88.js +2 -0
- package/lib/dist/_nuxt/ChFtlv-K.js +1 -0
- package/lib/dist/_nuxt/Chwlhc6_.js +2 -0
- package/lib/dist/_nuxt/CiLDJiP0.js +2 -0
- package/lib/dist/_nuxt/CjmM5CdV.js +1 -0
- package/lib/dist/_nuxt/CjnvxKUS.js +1 -0
- package/lib/dist/_nuxt/Cl0FFEyS.js +2 -0
- package/lib/dist/_nuxt/ClUtHUkC.js +2 -0
- package/lib/dist/_nuxt/ClfbvAP0.js +1 -0
- package/lib/dist/_nuxt/ClrmVswW.js +9 -0
- package/lib/dist/_nuxt/CmoTNS7d.js +1 -0
- package/lib/dist/_nuxt/CnA22mYo.js +488 -0
- package/lib/dist/_nuxt/CnLyeD4F.js +1 -0
- package/lib/dist/_nuxt/CoRFg58g.js +1 -0
- package/lib/dist/_nuxt/CoYQZOy1.js +1 -0
- package/lib/dist/_nuxt/Cp3Ze73S.js +1 -0
- package/lib/dist/_nuxt/CpA0EnQ9.js +2 -0
- package/lib/dist/_nuxt/CqDStTL1.js +1 -0
- package/lib/dist/_nuxt/CqwGyHAy.js +1 -0
- package/lib/dist/_nuxt/Cr8yz3no.js +1 -0
- package/lib/dist/_nuxt/Crf9kA2w.js +1 -0
- package/lib/dist/_nuxt/CsGYi5Sp.js +3 -0
- package/lib/dist/_nuxt/CuQOsUxV.js +1 -0
- package/lib/dist/_nuxt/CuSHEikX.js +1 -0
- package/lib/dist/_nuxt/CuSKaMgt.js +1 -0
- package/lib/dist/_nuxt/CuiNsVHW.js +1 -0
- package/lib/dist/_nuxt/Cuu3_08c.js +1 -0
- package/lib/dist/_nuxt/Cuu8TSah.js +2 -0
- package/lib/dist/_nuxt/Cv2lh-C6.js +1 -0
- package/lib/dist/_nuxt/CvYAOYY-.js +1 -0
- package/lib/dist/_nuxt/Cvv4Vyt7.js +1 -0
- package/lib/dist/_nuxt/CwmRWfEJ.js +1 -0
- package/lib/dist/_nuxt/Cx5YQYT7.js +1 -0
- package/lib/dist/_nuxt/CxUFM77j.js +1 -0
- package/lib/dist/_nuxt/Cxi3jZyQ.js +6 -0
- package/lib/dist/_nuxt/CyxeQkjj.js +1 -0
- package/lib/dist/_nuxt/CzL-Xgt4.js +3 -0
- package/lib/dist/_nuxt/CzS6LhIG.js +1 -0
- package/lib/dist/_nuxt/CzeKhTED.js +1 -0
- package/lib/dist/_nuxt/D-3e_c5D.js +1 -0
- package/lib/dist/_nuxt/D-Ko2Feo.js +1 -0
- package/lib/dist/_nuxt/D-gugQxK.js +1 -0
- package/lib/dist/_nuxt/D06TEjiX.js +2 -0
- package/lib/dist/_nuxt/D1NG0Dc-.js +2 -0
- package/lib/dist/_nuxt/D23qZVsg.js +1 -0
- package/lib/dist/_nuxt/D2M3rGqr.js +1 -0
- package/lib/dist/_nuxt/D2R8MrvG.js +1 -0
- package/lib/dist/_nuxt/D3b8UD8e.js +4 -0
- package/lib/dist/_nuxt/D5GjxhTX.js +2 -0
- package/lib/dist/_nuxt/D5JgjSYF.js +1 -0
- package/lib/dist/_nuxt/D5qikQV5.js +1 -0
- package/lib/dist/_nuxt/D5yxpOdN.js +1 -0
- package/lib/dist/_nuxt/D60fMI88.js +1 -0
- package/lib/dist/_nuxt/D69VaCxZ.js +1 -0
- package/lib/dist/_nuxt/D7IMdk1k.js +1 -0
- package/lib/dist/_nuxt/D8Tp6Ki0.js +1 -0
- package/lib/dist/_nuxt/D8hONJGo.js +1 -0
- package/lib/dist/_nuxt/D97a1TsM.js +1 -0
- package/lib/dist/_nuxt/D9x8QAub.js +1 -0
- package/lib/dist/_nuxt/DAUQe_S6.js +2 -0
- package/lib/dist/_nuxt/DAsFhGyc.js +1 -0
- package/lib/dist/_nuxt/DBCMec4F.js +2 -0
- package/lib/dist/_nuxt/DCAAb4J7.js +1 -0
- package/lib/dist/_nuxt/DDBB59Fi.js +2 -0
- package/lib/dist/_nuxt/DDM4Nzvz.js +1 -0
- package/lib/dist/_nuxt/DDig03HY.js +2 -0
- package/lib/dist/_nuxt/DEFygKeD.js +1 -0
- package/lib/dist/_nuxt/DEwhL5an.js +1 -0
- package/lib/dist/_nuxt/DF0w6sB6.js +1 -0
- package/lib/dist/_nuxt/DFMh25Em.js +1 -0
- package/lib/dist/_nuxt/DFONWdch.js +1 -0
- package/lib/dist/_nuxt/DF_kbmss.js +1 -0
- package/lib/dist/_nuxt/DGDCvQWf.js +1 -0
- package/lib/dist/_nuxt/DGFHBMNr.js +1 -0
- package/lib/dist/_nuxt/DGhje6c_.js +1 -0
- package/lib/dist/_nuxt/DH8thXJx.js +1 -0
- package/lib/dist/_nuxt/DHw6mhtQ.js +2 -0
- package/lib/dist/_nuxt/DIj6TIDj.js +11 -0
- package/lib/dist/_nuxt/DKDWyBHx.js +1 -0
- package/lib/dist/_nuxt/DLGZ-NjB.js +1 -0
- package/lib/dist/_nuxt/DLHxQlGN.js +1 -0
- package/lib/dist/_nuxt/DLQ5KxY8.js +1 -0
- package/lib/dist/_nuxt/DLfcvm1O.js +2 -0
- package/lib/dist/_nuxt/DLw5zJXj.js +1 -0
- package/lib/dist/_nuxt/DM9qzoZB.js +1 -0
- package/lib/dist/_nuxt/DMT3QQv-.js +2 -0
- package/lib/dist/_nuxt/DMkME4i2.js +1 -0
- package/lib/dist/_nuxt/DNM-_St_.js +1 -0
- package/lib/dist/_nuxt/DNwnM6Zf.js +1 -0
- package/lib/dist/_nuxt/DOAy4TI4.js +2 -0
- package/lib/dist/_nuxt/DODTrm1m.js +1 -0
- package/lib/dist/_nuxt/DOHZ0aEk.js +1 -0
- package/lib/dist/_nuxt/DOMw3hAT.js +1 -0
- package/lib/dist/_nuxt/DPOaDoXG.js +1 -0
- package/lib/dist/_nuxt/DPrLJ97k.js +2 -0
- package/lib/dist/_nuxt/DRXtlk-t.js +1 -0
- package/lib/dist/_nuxt/DRl6XW_A.js +1 -0
- package/lib/dist/_nuxt/DULDvQGr.js +5 -0
- package/lib/dist/_nuxt/DUah4HE4.js +2 -0
- package/lib/dist/_nuxt/DUco_4dn.js +2 -0
- package/lib/dist/_nuxt/DUeOSm51.js +1 -0
- package/lib/dist/_nuxt/DUgy5tPE.js +1 -0
- package/lib/dist/_nuxt/DV3jAMRE.js +1 -0
- package/lib/dist/_nuxt/DVJeMZJp.js +2 -0
- package/lib/dist/_nuxt/DW5H9pyl.js +1 -0
- package/lib/dist/_nuxt/DWqDeWtt.js +2 -0
- package/lib/dist/_nuxt/DWrnK8Lk.js +1 -0
- package/lib/dist/_nuxt/DYPiqUuU.js +1 -0
- package/lib/dist/_nuxt/DYxbChpt.js +1 -0
- package/lib/dist/_nuxt/DZ3A_yJ4.js +1 -0
- package/lib/dist/_nuxt/DZS5rUgq.js +1 -0
- package/lib/dist/_nuxt/DZT0HUe7.js +2 -0
- package/lib/dist/_nuxt/DZXjJkq-.js +1 -0
- package/lib/dist/_nuxt/DZlgEL_f.js +1 -0
- package/lib/dist/_nuxt/D_8wKuW4.js +1 -0
- package/lib/dist/_nuxt/D_Ti86sc.js +2 -0
- package/lib/dist/_nuxt/D__iFAK1.js +1 -0
- package/lib/dist/_nuxt/Db7sTbAZ.js +47 -0
- package/lib/dist/_nuxt/DcMo0SOA.js +1 -0
- package/lib/dist/_nuxt/Dctz_gLv.js +3 -0
- package/lib/dist/_nuxt/DeMYtuYN.js +1 -0
- package/lib/dist/_nuxt/DerWIaoi.js +2 -0
- package/lib/dist/_nuxt/DfYS6EHE.js +1 -0
- package/lib/dist/_nuxt/DgIfXVu-.js +1 -0
- package/lib/dist/_nuxt/Dg_oQqj8.js +2 -0
- package/lib/dist/_nuxt/DgclfCDJ.js +7 -0
- package/lib/dist/_nuxt/Dhk_KR1W.js +1 -0
- package/lib/dist/_nuxt/DicMPuw2.js +1 -0
- package/lib/dist/_nuxt/Dictw1kt.js +1 -0
- package/lib/dist/_nuxt/DjLaEZqV.js +1 -0
- package/lib/dist/_nuxt/DjbRcs-k.js +1 -0
- package/lib/dist/_nuxt/DlMCyRVz.js +1 -0
- package/lib/dist/_nuxt/DmeAZcZb.js +1 -0
- package/lib/dist/_nuxt/DmoExzgD.js +2 -0
- package/lib/dist/_nuxt/DnJtxELW.js +1 -0
- package/lib/dist/_nuxt/Dp15zvTl.js +1 -0
- package/lib/dist/_nuxt/DpPG0C-E.js +1 -0
- package/lib/dist/_nuxt/DprQox-8.js +1 -0
- package/lib/dist/_nuxt/DqtdRWac.js +2 -0
- package/lib/dist/_nuxt/Drd6kw1s.js +2 -0
- package/lib/dist/_nuxt/Drem9HAv.js +1 -0
- package/lib/dist/_nuxt/DsAS1XY1.js +3 -0
- package/lib/dist/_nuxt/DsEWpVSe.js +1 -0
- package/lib/dist/_nuxt/DsU8zamN.js +2 -0
- package/lib/dist/_nuxt/DsUkaoXU.js +2 -0
- package/lib/dist/_nuxt/DsjDfIJV.js +1 -0
- package/lib/dist/_nuxt/DuEDsKDM.js +1 -0
- package/lib/dist/_nuxt/Duann63Z.js +2 -0
- package/lib/dist/_nuxt/DvQjfJ2p.js +1 -0
- package/lib/dist/_nuxt/DvfrJlUb.js +1 -0
- package/lib/dist/_nuxt/DvlHRRIj.js +2 -0
- package/lib/dist/_nuxt/DvujLrbm.js +1 -0
- package/lib/dist/_nuxt/DxKvtRwx.js +2 -0
- package/lib/dist/_nuxt/DxPG8dfv.js +1 -0
- package/lib/dist/_nuxt/DxiXLigU.js +1 -0
- package/lib/dist/_nuxt/Dy54IGDL.js +1 -0
- package/lib/dist/_nuxt/Dy7HbUjS.js +1 -0
- package/lib/dist/_nuxt/DyNZEvJj.js +1 -0
- package/lib/dist/_nuxt/Dycr75Lf.js +7 -0
- package/lib/dist/_nuxt/DzTKls2Y.js +1 -0
- package/lib/dist/_nuxt/DznoZu4x.js +1 -0
- package/lib/dist/_nuxt/E5P4RoVE.js +1 -0
- package/lib/dist/_nuxt/Eb0Hx39r.js +1 -0
- package/lib/dist/_nuxt/FBOr_5Ix.js +1 -0
- package/lib/dist/_nuxt/FZnPOkCN.js +1 -0
- package/lib/dist/_nuxt/GpeBEDv2.js +1 -0
- package/lib/dist/_nuxt/HKAd0pym.js +2 -0
- package/lib/dist/_nuxt/HnL4JP2M.js +1 -0
- package/lib/dist/_nuxt/Jf6gVjXh.js +1 -0
- package/lib/dist/_nuxt/Jq_AJ7T-.js +1 -0
- package/lib/dist/_nuxt/K4cWyGkv.js +1 -0
- package/lib/dist/_nuxt/Ld34Ph8r.js +1 -0
- package/lib/dist/_nuxt/LqWboF0m.js +1 -0
- package/lib/dist/_nuxt/LwpuLyQg.js +1 -0
- package/lib/dist/_nuxt/Mh2zACMb.js +1 -0
- package/lib/dist/_nuxt/MtCPXdFM.js +1 -0
- package/lib/dist/_nuxt/NXX4Fa9F.js +1 -0
- package/lib/dist/_nuxt/NfeRl6Xc.js +1 -0
- package/lib/dist/_nuxt/OBUfZgNM.js +1 -0
- package/lib/dist/_nuxt/OlvCkwHf.js +4 -0
- package/lib/dist/_nuxt/Q3V0E9Nm.js +2 -0
- package/lib/dist/_nuxt/Q74Q4dZq.js +2 -0
- package/lib/dist/_nuxt/QQ8T3tU_.js +22 -0
- package/lib/dist/_nuxt/Qy4O9QrY.js +1 -0
- package/lib/dist/_nuxt/REuUzkHA.js +1 -0
- package/lib/dist/_nuxt/RF8_AEhD.js +2 -0
- package/lib/dist/_nuxt/Rd6M8QZT.js +1 -0
- package/lib/dist/_nuxt/RhZMrjT8.js +1 -0
- package/lib/dist/_nuxt/SmF5jl4C.js +1 -0
- package/lib/dist/_nuxt/SwyNcIya.js +2 -0
- package/lib/dist/_nuxt/Table.BaOgF66L.css +1 -0
- package/lib/dist/_nuxt/TjQkfa2w.js +5 -0
- package/lib/dist/_nuxt/WDIfbPpm.js +1 -0
- package/lib/dist/_nuxt/XGMO3ZQT.js +1 -0
- package/lib/dist/_nuxt/XVDZ4xU3.js +2 -0
- package/lib/dist/_nuxt/XvD1YsUN.js +27 -0
- package/lib/dist/_nuxt/YJKojZzJ.js +2 -0
- package/lib/dist/_nuxt/YJVN-wBK.js +1 -0
- package/lib/dist/_nuxt/YZeDTjZb.js +1 -0
- package/lib/dist/_nuxt/Z3d5ZHzZ.js +2 -0
- package/lib/dist/_nuxt/ZBa6AkJe.js +1 -0
- package/lib/dist/_nuxt/ZlQY0nlT.js +1 -0
- package/lib/dist/_nuxt/_GJVIm_P.js +1 -0
- package/lib/dist/_nuxt/a9lb-tDQ.js +1 -0
- package/lib/dist/_nuxt/builds/latest.json +1 -1
- package/lib/dist/_nuxt/builds/meta/96e7bda1-2716-47f9-b822-d6201d518286.json +1 -0
- package/lib/dist/_nuxt/dWmrnkCd.js +1 -0
- package/lib/dist/_nuxt/de5cZNXf.js +2 -0
- package/lib/dist/_nuxt/e8izwLM-.js +1 -0
- package/lib/dist/_nuxt/eETKzdul.js +1 -0
- package/lib/dist/_nuxt/hA612T15.js +1 -0
- package/lib/dist/_nuxt/index.BuByuM0f.css +1 -0
- package/lib/dist/_nuxt/jbny01Xo.js +1 -0
- package/lib/dist/_nuxt/k1sXy3nQ.js +10 -0
- package/lib/dist/_nuxt/kDByXptR.js +1 -0
- package/lib/dist/_nuxt/kudtI8JX.js +1 -0
- package/lib/dist/_nuxt/lF1E6m0u.js +1 -0
- package/lib/dist/_nuxt/lUWgwLgg.js +2 -0
- package/lib/dist/_nuxt/m-SI38mR.js +2 -0
- package/lib/dist/_nuxt/mnCN0j8C.js +1 -0
- package/lib/dist/_nuxt/mqnsmo7g.js +1 -0
- package/lib/dist/_nuxt/nsDmnYg7.js +1 -0
- package/lib/dist/_nuxt/oXChQf6I.js +1 -0
- package/lib/dist/_nuxt/o_i1645F.js +1 -0
- package/lib/dist/_nuxt/qKhVL-FH.js +11 -0
- package/lib/dist/_nuxt/qNN-BUVd.js +2 -0
- package/lib/dist/_nuxt/qUfnOnNg.js +1 -0
- package/lib/dist/_nuxt/r1fk63SR.js +5 -0
- package/lib/dist/_nuxt/suYnRR1c.js +2 -0
- package/lib/dist/_nuxt/teDwEpTx.js +1 -0
- package/lib/dist/_nuxt/tgwmD6oS.js +1 -0
- package/lib/dist/_nuxt/uNQKtoOo.js +1 -0
- package/lib/dist/_nuxt/v7BoD94i.js +1 -0
- package/lib/dist/_nuxt/vITcss-z.js +1 -0
- package/lib/dist/_nuxt/v_vUyNRi.js +1 -0
- package/lib/dist/_nuxt/wEbtUDA9.js +1 -0
- package/lib/dist/_nuxt/wNI1Hoqt.js +1 -0
- package/lib/dist/_nuxt/wSxb_RRd.js +2 -0
- package/lib/dist/_nuxt/wh0trWQd.js +1 -0
- package/lib/dist/_nuxt/wl0XRaFg.js +1 -0
- package/lib/dist/_nuxt/xG0CGrQq.js +8 -0
- package/lib/dist/_nuxt/xnKgVw3-.js +1 -0
- package/lib/dist/_nuxt/y7INSpBL.js +2 -0
- package/lib/dist/_nuxt/yoEKKWFx.js +1 -0
- package/lib/dist/_nuxt/ywVIO4WR.js +1 -0
- package/lib/dist/_nuxt/zmgXS08W.js +2 -0
- package/lib/dist/_nuxt/zthe_vUH.js +1 -0
- package/lib/dist/index.html +1 -1
- package/package.json +1 -1
- package/lib/dist/_nuxt/0312nOgm.js +0 -2
- package/lib/dist/_nuxt/0Bt5OBKD.js +0 -1
- package/lib/dist/_nuxt/0jsfyAqM.js +0 -1
- package/lib/dist/_nuxt/1QOSI9Cg.js +0 -1
- package/lib/dist/_nuxt/2HYYQX_E.js +0 -1
- package/lib/dist/_nuxt/2cYGipZb.js +0 -1
- package/lib/dist/_nuxt/5rrI7NC7.js +0 -1
- package/lib/dist/_nuxt/6z_CdRRJ.js +0 -1
- package/lib/dist/_nuxt/7pKfhUZx.js +0 -1
- package/lib/dist/_nuxt/8lp7WtQC.js +0 -1
- package/lib/dist/_nuxt/9JdANm76.js +0 -2
- package/lib/dist/_nuxt/9P8vE5Pi.js +0 -47
- package/lib/dist/_nuxt/9tiaqWlL.js +0 -1
- package/lib/dist/_nuxt/AWKbSlhV.js +0 -5
- package/lib/dist/_nuxt/B-CgdOvB.js +0 -2
- package/lib/dist/_nuxt/B-bEifJI.js +0 -1
- package/lib/dist/_nuxt/B-yKIaI2.js +0 -1
- package/lib/dist/_nuxt/B0w-Powt.js +0 -2
- package/lib/dist/_nuxt/B1z2qeD0.js +0 -1
- package/lib/dist/_nuxt/B3lum8zQ.js +0 -7
- package/lib/dist/_nuxt/B3yq-bD6.js +0 -1
- package/lib/dist/_nuxt/B52ROGrc.js +0 -1
- package/lib/dist/_nuxt/B5IQ1MTu.js +0 -1
- package/lib/dist/_nuxt/B5KeyP2B.js +0 -2
- package/lib/dist/_nuxt/B5XGiAVv.js +0 -1
- package/lib/dist/_nuxt/B5iPPHXg.js +0 -1
- package/lib/dist/_nuxt/B6gtONH_.js +0 -1
- package/lib/dist/_nuxt/B70vtxr6.js +0 -1
- package/lib/dist/_nuxt/B783qB3r.js +0 -1
- package/lib/dist/_nuxt/B7Cd6Mbd.js +0 -1
- package/lib/dist/_nuxt/B8LajyGq.js +0 -1
- package/lib/dist/_nuxt/B8RZA9F_.js +0 -27
- package/lib/dist/_nuxt/B8VxtBkR.js +0 -1
- package/lib/dist/_nuxt/B8rtR2W9.js +0 -2
- package/lib/dist/_nuxt/B9akUj7i.js +0 -1
- package/lib/dist/_nuxt/B9ddcxoX.js +0 -2
- package/lib/dist/_nuxt/B9l2-idX.js +0 -1
- package/lib/dist/_nuxt/B9nZ49LB.js +0 -1
- package/lib/dist/_nuxt/BA0C8iXj.js +0 -2
- package/lib/dist/_nuxt/BAFTPD3Y.js +0 -1
- package/lib/dist/_nuxt/BAJVGiVu.js +0 -1
- package/lib/dist/_nuxt/BAPIzECJ.js +0 -1
- package/lib/dist/_nuxt/BBO8yt5G.js +0 -1
- package/lib/dist/_nuxt/BBjHpnli.js +0 -1
- package/lib/dist/_nuxt/BBqMSLQi.js +0 -1
- package/lib/dist/_nuxt/BC8X-W_4.js +0 -2
- package/lib/dist/_nuxt/BDky6Gcp.js +0 -1
- package/lib/dist/_nuxt/BENKNyhI.js +0 -1
- package/lib/dist/_nuxt/BEP-OaYM.js +0 -1
- package/lib/dist/_nuxt/BFRyn_GU.js +0 -2
- package/lib/dist/_nuxt/BFw2OcN5.js +0 -1
- package/lib/dist/_nuxt/BG433Rhm.js +0 -1
- package/lib/dist/_nuxt/BGKTupoj.js +0 -1
- package/lib/dist/_nuxt/BGai3JSg.js +0 -6
- package/lib/dist/_nuxt/BHB9ehbV.js +0 -1
- package/lib/dist/_nuxt/BHLKM31-.js +0 -1
- package/lib/dist/_nuxt/BIPn2F8x.js +0 -1
- package/lib/dist/_nuxt/BIhGzgWM.js +0 -1
- package/lib/dist/_nuxt/BJBL97-B.js +0 -1
- package/lib/dist/_nuxt/BKEc6DrD.js +0 -3
- package/lib/dist/_nuxt/BKQIXi73.js +0 -1
- package/lib/dist/_nuxt/BKwot03I.js +0 -1
- package/lib/dist/_nuxt/BL1YIkUM.js +0 -1
- package/lib/dist/_nuxt/BMIsKpuw.js +0 -1
- package/lib/dist/_nuxt/BMN3ds8C.js +0 -1
- package/lib/dist/_nuxt/BMp_dzM0.js +0 -11
- package/lib/dist/_nuxt/BN2yOY1_.js +0 -2
- package/lib/dist/_nuxt/BNSU4aZ8.js +0 -1
- package/lib/dist/_nuxt/BOBSLVNP.js +0 -2
- package/lib/dist/_nuxt/BODAtgGO.js +0 -1
- package/lib/dist/_nuxt/BPXLefra.js +0 -1
- package/lib/dist/_nuxt/BPYV7pHx.js +0 -1
- package/lib/dist/_nuxt/BPoDyL6T.js +0 -22
- package/lib/dist/_nuxt/BQXDWCjP.js +0 -1
- package/lib/dist/_nuxt/BQh7iTDo.js +0 -1
- package/lib/dist/_nuxt/BQnCevyL.js +0 -1
- package/lib/dist/_nuxt/BRAK1JSF.js +0 -3
- package/lib/dist/_nuxt/BRac1jiv.js +0 -1
- package/lib/dist/_nuxt/BSKhT-A_.js +0 -2
- package/lib/dist/_nuxt/BSvIBF6e.js +0 -1
- package/lib/dist/_nuxt/BT2TFVyO.js +0 -1
- package/lib/dist/_nuxt/BUL5W9nB.js +0 -1
- package/lib/dist/_nuxt/BUdCmb3O.js +0 -2
- package/lib/dist/_nuxt/BUeUyKq4.js +0 -1
- package/lib/dist/_nuxt/BYkbwCVi.js +0 -1
- package/lib/dist/_nuxt/BZ-WZs6-.js +0 -1
- package/lib/dist/_nuxt/BZaag6Ow.js +0 -1
- package/lib/dist/_nuxt/BZrihVyT.js +0 -2
- package/lib/dist/_nuxt/B__pJH7R.js +0 -2
- package/lib/dist/_nuxt/BauTtf9y.js +0 -1
- package/lib/dist/_nuxt/BbTTmaAf.js +0 -1
- package/lib/dist/_nuxt/BbbkQoqU.js +0 -1
- package/lib/dist/_nuxt/BdB7RNr9.js +0 -1
- package/lib/dist/_nuxt/BeDk4S96.js +0 -2
- package/lib/dist/_nuxt/Bf4PsZeJ.js +0 -1
- package/lib/dist/_nuxt/BfzLIGKS.js +0 -1
- package/lib/dist/_nuxt/BgDgPsFm.js +0 -2
- package/lib/dist/_nuxt/BgOvZXcj.js +0 -1
- package/lib/dist/_nuxt/BgeVX9pC.js +0 -1
- package/lib/dist/_nuxt/BgyBOPVO.js +0 -1
- package/lib/dist/_nuxt/Bhfx3AN8.js +0 -1
- package/lib/dist/_nuxt/BiMwgCzv.js +0 -1
- package/lib/dist/_nuxt/BiYYWn8S.js +0 -1
- package/lib/dist/_nuxt/BikiS2Kj.js +0 -1
- package/lib/dist/_nuxt/BjQS7j_1.js +0 -3
- package/lib/dist/_nuxt/BjTl7RMq.js +0 -2
- package/lib/dist/_nuxt/Bk7NhBiK.js +0 -1
- package/lib/dist/_nuxt/BkI-Z0P3.js +0 -2
- package/lib/dist/_nuxt/BmNUIaUC.js +0 -1
- package/lib/dist/_nuxt/BmadD5xZ.js +0 -1
- package/lib/dist/_nuxt/BnHW0QQQ.js +0 -1
- package/lib/dist/_nuxt/BnMPLEhm.js +0 -1
- package/lib/dist/_nuxt/BnkAsMcy.js +0 -1
- package/lib/dist/_nuxt/BoCYP1Tw.js +0 -1
- package/lib/dist/_nuxt/BoTg9Usg.js +0 -2
- package/lib/dist/_nuxt/BoyYQVE2.js +0 -1
- package/lib/dist/_nuxt/BpYKeTV0.js +0 -1
- package/lib/dist/_nuxt/BpjoLtyc.js +0 -4
- package/lib/dist/_nuxt/BrGN9QxL.js +0 -2
- package/lib/dist/_nuxt/BrNu0Pwa.js +0 -2
- package/lib/dist/_nuxt/BrQG-YqG.js +0 -1
- package/lib/dist/_nuxt/BrtcOPyg.js +0 -1
- package/lib/dist/_nuxt/BsQJFjHH.js +0 -2
- package/lib/dist/_nuxt/Bsqi8loJ.js +0 -1
- package/lib/dist/_nuxt/BtfjnEZy.js +0 -1
- package/lib/dist/_nuxt/Btg9ZGuM.js +0 -1
- package/lib/dist/_nuxt/BtsoZayf.js +0 -1
- package/lib/dist/_nuxt/Bw4BKgrR.js +0 -1
- package/lib/dist/_nuxt/Bw9-TMuu.js +0 -1
- package/lib/dist/_nuxt/BwEXTVf7.js +0 -2
- package/lib/dist/_nuxt/BwNDck0z.js +0 -1
- package/lib/dist/_nuxt/BwxbQwe3.js +0 -1
- package/lib/dist/_nuxt/BxDqVdNG.js +0 -1
- package/lib/dist/_nuxt/Bzb3WLov.js +0 -1
- package/lib/dist/_nuxt/BztCckgD.js +0 -1
- package/lib/dist/_nuxt/BzxOoYxa.js +0 -1
- package/lib/dist/_nuxt/C-BDvpiG.js +0 -1
- package/lib/dist/_nuxt/C-FAkT9H.js +0 -1
- package/lib/dist/_nuxt/C-jpqUED.js +0 -2
- package/lib/dist/_nuxt/C13F5yI1.js +0 -4
- package/lib/dist/_nuxt/C1XcMlBy.js +0 -2
- package/lib/dist/_nuxt/C1rRcoTp.js +0 -2
- package/lib/dist/_nuxt/C1zCV2HF.js +0 -1
- package/lib/dist/_nuxt/C26Qj2a4.js +0 -6
- package/lib/dist/_nuxt/C2JbRk0L.js +0 -2
- package/lib/dist/_nuxt/C2gfQLRh.js +0 -2
- package/lib/dist/_nuxt/C2tOuIRf.js +0 -1
- package/lib/dist/_nuxt/C3l8tPU3.js +0 -1
- package/lib/dist/_nuxt/C44WcmOq.js +0 -1
- package/lib/dist/_nuxt/C5-QI7E9.js +0 -1
- package/lib/dist/_nuxt/C57-1Uuw.js +0 -2
- package/lib/dist/_nuxt/C5wloQhp.js +0 -1
- package/lib/dist/_nuxt/C6LKOky9.js +0 -488
- package/lib/dist/_nuxt/C6okRD2S.js +0 -2
- package/lib/dist/_nuxt/C6qQsOX1.js +0 -1
- package/lib/dist/_nuxt/C7Ceovbr.js +0 -1
- package/lib/dist/_nuxt/C7olhD9d.js +0 -1
- package/lib/dist/_nuxt/C84ie10X.js +0 -1
- package/lib/dist/_nuxt/C8FfL9Tu.js +0 -1
- package/lib/dist/_nuxt/C8Ij3Y-h.js +0 -1
- package/lib/dist/_nuxt/C8f3jD1O.js +0 -2
- package/lib/dist/_nuxt/C8rROCJL.js +0 -3
- package/lib/dist/_nuxt/C9ABXXrE.js +0 -1
- package/lib/dist/_nuxt/CA5S_ZYA.js +0 -1
- package/lib/dist/_nuxt/CAFE4Bq2.js +0 -2
- package/lib/dist/_nuxt/CB6P6Wr7.js +0 -1
- package/lib/dist/_nuxt/CB7z8qng.js +0 -1
- package/lib/dist/_nuxt/CBJrCeEW.js +0 -1
- package/lib/dist/_nuxt/CC1BUyxP.js +0 -1
- package/lib/dist/_nuxt/CCX5zXnl.js +0 -2
- package/lib/dist/_nuxt/CD9QJzxZ.js +0 -1
- package/lib/dist/_nuxt/CD_oFqTJ.js +0 -1
- package/lib/dist/_nuxt/CE1F9haK.js +0 -5
- package/lib/dist/_nuxt/CE1GaoyX.js +0 -1
- package/lib/dist/_nuxt/CERg95f4.js +0 -1
- package/lib/dist/_nuxt/CFg00Ag0.js +0 -1
- package/lib/dist/_nuxt/CHNziEv9.js +0 -2
- package/lib/dist/_nuxt/CIE5VHc5.js +0 -1
- package/lib/dist/_nuxt/CIF7jgJ3.js +0 -1
- package/lib/dist/_nuxt/CINvbF6P.js +0 -2
- package/lib/dist/_nuxt/CKKcI9_S.js +0 -2
- package/lib/dist/_nuxt/CKLZlTp2.js +0 -1
- package/lib/dist/_nuxt/CKqoPW1X.js +0 -1
- package/lib/dist/_nuxt/CMEGCd07.js +0 -2
- package/lib/dist/_nuxt/CNpNGPoT.js +0 -1
- package/lib/dist/_nuxt/CNwSHzST.js +0 -1
- package/lib/dist/_nuxt/COLPFJj3.js +0 -2
- package/lib/dist/_nuxt/COj52xAx.js +0 -1
- package/lib/dist/_nuxt/CPqVc6Wk.js +0 -1
- package/lib/dist/_nuxt/CQewCz9m.js +0 -1
- package/lib/dist/_nuxt/CRN-6HWq.js +0 -2
- package/lib/dist/_nuxt/CRj3wo_h.js +0 -3
- package/lib/dist/_nuxt/CSFYK9Ps.js +0 -1
- package/lib/dist/_nuxt/CSGuNZ7K.js +0 -1
- package/lib/dist/_nuxt/CSfOgxn4.js +0 -1
- package/lib/dist/_nuxt/CSh_BHHt.js +0 -1
- package/lib/dist/_nuxt/CUkRkZVc.js +0 -1
- package/lib/dist/_nuxt/CVQmbhK4.js +0 -1
- package/lib/dist/_nuxt/CVbJE4eu.js +0 -1
- package/lib/dist/_nuxt/CVsVykIv.js +0 -1
- package/lib/dist/_nuxt/CW8X1kZo.js +0 -1
- package/lib/dist/_nuxt/CWLfaJDG.js +0 -2
- package/lib/dist/_nuxt/CWr_TBc7.js +0 -1
- package/lib/dist/_nuxt/CX7CUJUj.js +0 -1
- package/lib/dist/_nuxt/CX_saPhR.js +0 -1
- package/lib/dist/_nuxt/CZ4sGrz-.js +0 -1
- package/lib/dist/_nuxt/C_J09qi1.js +0 -2
- package/lib/dist/_nuxt/C_yfDJev.js +0 -1
- package/lib/dist/_nuxt/CaGUcDi5.js +0 -1
- package/lib/dist/_nuxt/CaaS_Qgs.js +0 -3
- package/lib/dist/_nuxt/CauKe3YF.js +0 -1
- package/lib/dist/_nuxt/Cb3JW2ND.js +0 -1
- package/lib/dist/_nuxt/Cb_eucik.js +0 -1
- package/lib/dist/_nuxt/CbnQLV7K.js +0 -2
- package/lib/dist/_nuxt/Cbr59atG.js +0 -6
- package/lib/dist/_nuxt/Cbxull61.js +0 -1
- package/lib/dist/_nuxt/CcivTiNO.js +0 -2
- package/lib/dist/_nuxt/Cekvwgoc.js +0 -2
- package/lib/dist/_nuxt/CfIafbXz.js +0 -1
- package/lib/dist/_nuxt/CgDrphRT.js +0 -1
- package/lib/dist/_nuxt/CgL2qxZt.js +0 -2
- package/lib/dist/_nuxt/Cgc98pIo.js +0 -2
- package/lib/dist/_nuxt/ChFlNafS.js +0 -1
- package/lib/dist/_nuxt/ChPsvZd6.js +0 -1
- package/lib/dist/_nuxt/Che0PZL9.js +0 -2
- package/lib/dist/_nuxt/CiDbrcHL.js +0 -1
- package/lib/dist/_nuxt/CjBPrtkj.js +0 -1
- package/lib/dist/_nuxt/CkEm0r0I.js +0 -1
- package/lib/dist/_nuxt/Cl9Doq-D.js +0 -2
- package/lib/dist/_nuxt/ClyWdfF0.js +0 -1
- package/lib/dist/_nuxt/CmLXiGIu.js +0 -2
- package/lib/dist/_nuxt/CmTBtFYc.js +0 -1
- package/lib/dist/_nuxt/CmjnkC6m.js +0 -2
- package/lib/dist/_nuxt/Cmk-NoAx.js +0 -2
- package/lib/dist/_nuxt/CmnkqU17.js +0 -4
- package/lib/dist/_nuxt/Cmx1pNBO.js +0 -2
- package/lib/dist/_nuxt/Cn_ayLst.js +0 -1
- package/lib/dist/_nuxt/Co0Hdll3.js +0 -1
- package/lib/dist/_nuxt/CpLpqUeD.js +0 -2
- package/lib/dist/_nuxt/CqDQX5Nr.js +0 -2
- package/lib/dist/_nuxt/CqGOZQ-9.js +0 -1
- package/lib/dist/_nuxt/Cqo432X3.js +0 -1
- package/lib/dist/_nuxt/CqpFa4tZ.js +0 -2
- package/lib/dist/_nuxt/CqxlWp7_.js +0 -1
- package/lib/dist/_nuxt/CrVcTaIQ.js +0 -2
- package/lib/dist/_nuxt/CreiEcqK.js +0 -1
- package/lib/dist/_nuxt/Ct4ttr0W.js +0 -1
- package/lib/dist/_nuxt/CtGJ7-wI.js +0 -2
- package/lib/dist/_nuxt/CtwIsrPp.js +0 -1
- package/lib/dist/_nuxt/CueCUzRr.js +0 -1
- package/lib/dist/_nuxt/Cv7Wr2rr.js +0 -1
- package/lib/dist/_nuxt/Cv7i2VRk.js +0 -1
- package/lib/dist/_nuxt/CvfBKHwK.js +0 -1
- package/lib/dist/_nuxt/Cvir316l.js +0 -1
- package/lib/dist/_nuxt/Cw5uGWKD.js +0 -1
- package/lib/dist/_nuxt/CxKa96I0.js +0 -1
- package/lib/dist/_nuxt/CxcSrcfV.js +0 -1
- package/lib/dist/_nuxt/CyK8ktIH.js +0 -48
- package/lib/dist/_nuxt/CzURwYi-.js +0 -1
- package/lib/dist/_nuxt/D0FnnzlB.js +0 -1
- package/lib/dist/_nuxt/D0RXBsa0.js +0 -1
- package/lib/dist/_nuxt/D1YnB9s8.js +0 -1
- package/lib/dist/_nuxt/D2Vdk0H3.js +0 -1
- package/lib/dist/_nuxt/D3fM7YEM.js +0 -4
- package/lib/dist/_nuxt/D4m1MwWO.js +0 -2
- package/lib/dist/_nuxt/D4sECrS9.js +0 -2
- package/lib/dist/_nuxt/D4ugt6Ul.js +0 -1
- package/lib/dist/_nuxt/D5ZQUmwn.js +0 -1
- package/lib/dist/_nuxt/D6047MzV.js +0 -1
- package/lib/dist/_nuxt/D76GAmy8.js +0 -8
- package/lib/dist/_nuxt/D7KzHbGj.js +0 -1
- package/lib/dist/_nuxt/D7_HDNmt.js +0 -2
- package/lib/dist/_nuxt/D8OS2XfJ.js +0 -2
- package/lib/dist/_nuxt/D8WEK0kL.js +0 -2
- package/lib/dist/_nuxt/D9Lvr0If.js +0 -1
- package/lib/dist/_nuxt/DAYpJlF7.js +0 -1
- package/lib/dist/_nuxt/DBN94CZB.js +0 -1
- package/lib/dist/_nuxt/DBVmk-Jy.js +0 -1
- package/lib/dist/_nuxt/DBjyFBR_.js +0 -1
- package/lib/dist/_nuxt/DBm9jeWK.js +0 -1
- package/lib/dist/_nuxt/DC1_1eQB.js +0 -1
- package/lib/dist/_nuxt/DD-IMYou.js +0 -1
- package/lib/dist/_nuxt/DFHS7AjG.js +0 -1
- package/lib/dist/_nuxt/DFVD7rtM.js +0 -1
- package/lib/dist/_nuxt/DGCBPPKf.js +0 -726
- package/lib/dist/_nuxt/DHzDwR0c.js +0 -1
- package/lib/dist/_nuxt/DIBD9OVD.js +0 -1
- package/lib/dist/_nuxt/DJFBNHiB.js +0 -7
- package/lib/dist/_nuxt/DKUkQR25.js +0 -1
- package/lib/dist/_nuxt/DLCX7b9b.js +0 -2
- package/lib/dist/_nuxt/DLG2jd2u.js +0 -1
- package/lib/dist/_nuxt/DLcwRTCx.js +0 -2
- package/lib/dist/_nuxt/DLex6x9M.js +0 -1
- package/lib/dist/_nuxt/DMYijRXt.js +0 -1
- package/lib/dist/_nuxt/DMh6i7CJ.js +0 -1
- package/lib/dist/_nuxt/DN5xIXQr.js +0 -1
- package/lib/dist/_nuxt/DNCi98wH.js +0 -1
- package/lib/dist/_nuxt/DNE3h4rB.js +0 -2
- package/lib/dist/_nuxt/DNGjnIBE.js +0 -1
- package/lib/dist/_nuxt/DNQroclD.js +0 -2
- package/lib/dist/_nuxt/DNc6ahl1.js +0 -1
- package/lib/dist/_nuxt/DOMhvXRP.js +0 -5
- package/lib/dist/_nuxt/DOVFU2LK.js +0 -1
- package/lib/dist/_nuxt/DOYTpuWX.js +0 -1
- package/lib/dist/_nuxt/DPjZfkjy.js +0 -8
- package/lib/dist/_nuxt/DPq-K6KH.js +0 -1
- package/lib/dist/_nuxt/DQEs9foJ.js +0 -1
- package/lib/dist/_nuxt/DQdJe6TK.js +0 -2
- package/lib/dist/_nuxt/DQnFJH5w.js +0 -2
- package/lib/dist/_nuxt/DRAcszxk.js +0 -2
- package/lib/dist/_nuxt/DRHCwAb2.js +0 -2
- package/lib/dist/_nuxt/DRO8K__7.js +0 -1
- package/lib/dist/_nuxt/DSGmdywR.js +0 -1
- package/lib/dist/_nuxt/DSLNkZgy.js +0 -1
- package/lib/dist/_nuxt/DSat9Ze9.js +0 -2
- package/lib/dist/_nuxt/DSlfE7GQ.js +0 -1
- package/lib/dist/_nuxt/DTIkxODX.js +0 -3
- package/lib/dist/_nuxt/DTgLUuVL.js +0 -2
- package/lib/dist/_nuxt/DUA1fBDs.js +0 -1
- package/lib/dist/_nuxt/DUBYsUix.js +0 -1
- package/lib/dist/_nuxt/DUPZttWL.js +0 -2
- package/lib/dist/_nuxt/DVU_MHhx.js +0 -1
- package/lib/dist/_nuxt/DW4hmSnK.js +0 -2
- package/lib/dist/_nuxt/DW6e7ELi.js +0 -1
- package/lib/dist/_nuxt/DXYCzTQu.js +0 -1
- package/lib/dist/_nuxt/DXnHhKHG.js +0 -1
- package/lib/dist/_nuxt/DYcIYfb7.js +0 -2
- package/lib/dist/_nuxt/DYs4RdAM.js +0 -1
- package/lib/dist/_nuxt/DZvF-Bn_.js +0 -1
- package/lib/dist/_nuxt/D_i9qpTa.js +0 -1
- package/lib/dist/_nuxt/DaJ3iJwN.js +0 -1
- package/lib/dist/_nuxt/DaJLZ_Bp.js +0 -1
- package/lib/dist/_nuxt/DakBaTHs.js +0 -1
- package/lib/dist/_nuxt/DalRnZNy.js +0 -1
- package/lib/dist/_nuxt/DbQ0dWwx.js +0 -1
- package/lib/dist/_nuxt/DbjQrFcv.js +0 -1
- package/lib/dist/_nuxt/DbmFarWi.js +0 -21
- package/lib/dist/_nuxt/DbnES-nd.js +0 -1
- package/lib/dist/_nuxt/Dc-u2ChT.js +0 -2
- package/lib/dist/_nuxt/DcCEyun3.js +0 -1
- package/lib/dist/_nuxt/DcEQJbi_.js +0 -2
- package/lib/dist/_nuxt/DcKg1Yf0.js +0 -1
- package/lib/dist/_nuxt/DdT_fcG0.js +0 -1
- package/lib/dist/_nuxt/De82q56S.js +0 -1
- package/lib/dist/_nuxt/DeaGMpSx.js +0 -2
- package/lib/dist/_nuxt/Deo0QA2n.js +0 -1
- package/lib/dist/_nuxt/DevCGnBQ.js +0 -1
- package/lib/dist/_nuxt/Dh1rgJvX.js +0 -1
- package/lib/dist/_nuxt/Dh7XFlnD.js +0 -1
- package/lib/dist/_nuxt/DhMV00qH.js +0 -1
- package/lib/dist/_nuxt/Dhb2HbJ5.js +0 -1
- package/lib/dist/_nuxt/DiYv_OvB.js +0 -1
- package/lib/dist/_nuxt/Dio1_Vu_.js +0 -1
- package/lib/dist/_nuxt/DirWzN4K.js +0 -1
- package/lib/dist/_nuxt/DjLOnyDz.js +0 -2
- package/lib/dist/_nuxt/Dkp-cu7j.js +0 -1
- package/lib/dist/_nuxt/DlhTe3kw.js +0 -1
- package/lib/dist/_nuxt/Dn4-umDe.js +0 -1
- package/lib/dist/_nuxt/Dn_avDgp.js +0 -2
- package/lib/dist/_nuxt/Dnl-lxpU.js +0 -1
- package/lib/dist/_nuxt/DnsUg6CQ.js +0 -1
- package/lib/dist/_nuxt/DoTiOFT9.js +0 -1
- package/lib/dist/_nuxt/DpJBkeS-.js +0 -1
- package/lib/dist/_nuxt/DpLHfePV.js +0 -2
- package/lib/dist/_nuxt/DpRWYUxh.js +0 -1
- package/lib/dist/_nuxt/DpuOI1IG.js +0 -1
- package/lib/dist/_nuxt/Dq6I2eh1.js +0 -3
- package/lib/dist/_nuxt/DqQMPSFF.js +0 -1
- package/lib/dist/_nuxt/DqyG-W75.js +0 -1
- package/lib/dist/_nuxt/DrtMf53-.js +0 -1
- package/lib/dist/_nuxt/DsKoFyy5.js +0 -1
- package/lib/dist/_nuxt/DtiKLgBR.js +0 -2
- package/lib/dist/_nuxt/DuQoK3qe.js +0 -1
- package/lib/dist/_nuxt/Duuy8kwS.js +0 -1
- package/lib/dist/_nuxt/DuzBGfJ3.js +0 -1
- package/lib/dist/_nuxt/Dw-uskR5.js +0 -1
- package/lib/dist/_nuxt/DwD-fwW4.js +0 -3
- package/lib/dist/_nuxt/DwWjqrED.js +0 -1
- package/lib/dist/_nuxt/DxisbaHi.js +0 -1
- package/lib/dist/_nuxt/DyLBWxA4.js +0 -2
- package/lib/dist/_nuxt/FccdwoyC.js +0 -1
- package/lib/dist/_nuxt/GbrI8Wmg.js +0 -1
- package/lib/dist/_nuxt/HeP7TKdq.js +0 -1
- package/lib/dist/_nuxt/IL8g2aR1.js +0 -1
- package/lib/dist/_nuxt/IoMLRS21.js +0 -1
- package/lib/dist/_nuxt/IxiSrI6f.js +0 -1
- package/lib/dist/_nuxt/JRccFAWi.js +0 -1
- package/lib/dist/_nuxt/JScBkpam.js +0 -1
- package/lib/dist/_nuxt/Jbmy7I1P.js +0 -2
- package/lib/dist/_nuxt/Lo-hP5D2.js +0 -1
- package/lib/dist/_nuxt/M6tknBBW.js +0 -2
- package/lib/dist/_nuxt/N6HuQj9i.js +0 -1
- package/lib/dist/_nuxt/N8DiO8V-.js +0 -1
- package/lib/dist/_nuxt/N_0afE8Q.js +0 -9
- package/lib/dist/_nuxt/O9ZOqdXZ.js +0 -2
- package/lib/dist/_nuxt/OEvZX9l4.js +0 -2
- package/lib/dist/_nuxt/OYFCm6DZ.js +0 -2
- package/lib/dist/_nuxt/PC-Gdz5l.js +0 -1
- package/lib/dist/_nuxt/PFh0vGX3.js +0 -2
- package/lib/dist/_nuxt/PmbEsOp8.js +0 -1
- package/lib/dist/_nuxt/R1OTc6xI.js +0 -12
- package/lib/dist/_nuxt/R3M5dx5t.js +0 -1
- package/lib/dist/_nuxt/RVvvxG3i.js +0 -1
- package/lib/dist/_nuxt/RwL55bw_.js +0 -1
- package/lib/dist/_nuxt/SIj5aIMP.js +0 -7
- package/lib/dist/_nuxt/SQmY-Yu3.js +0 -1
- package/lib/dist/_nuxt/Table.eqROB0lj.css +0 -1
- package/lib/dist/_nuxt/UITfHKhR.js +0 -1
- package/lib/dist/_nuxt/UODVGT7h.js +0 -1
- package/lib/dist/_nuxt/Uid-x4R0.js +0 -1
- package/lib/dist/_nuxt/W65HVqQ1.js +0 -1
- package/lib/dist/_nuxt/YZffbgwP.js +0 -1
- package/lib/dist/_nuxt/Y_lkh4o4.js +0 -1
- package/lib/dist/_nuxt/YgmF9ZQm.js +0 -2
- package/lib/dist/_nuxt/ZEndZd4G.js +0 -2
- package/lib/dist/_nuxt/Z_rUxX_3.js +0 -2
- package/lib/dist/_nuxt/aWVjLD02.js +0 -1
- package/lib/dist/_nuxt/bbmVnua1.js +0 -1
- package/lib/dist/_nuxt/boz2MXw1.js +0 -1
- package/lib/dist/_nuxt/builds/meta/99473f9f-56f2-47fc-9843-9411e5245357.json +0 -1
- package/lib/dist/_nuxt/d0-zcPfV.js +0 -1
- package/lib/dist/_nuxt/dUOCG-ZN.js +0 -2
- package/lib/dist/_nuxt/dqLwLHHe.js +0 -2
- package/lib/dist/_nuxt/e6uRR2iu.js +0 -1
- package/lib/dist/_nuxt/eCqwy0_N.js +0 -1
- package/lib/dist/_nuxt/gT_broIq.js +0 -2
- package/lib/dist/_nuxt/garb5UqG.js +0 -1
- package/lib/dist/_nuxt/gbKlM4lC.js +0 -6
- package/lib/dist/_nuxt/gtsNOpGw.js +0 -1
- package/lib/dist/_nuxt/guK6IcUC.js +0 -9
- package/lib/dist/_nuxt/hTcDf1pW.js +0 -1
- package/lib/dist/_nuxt/hvWb2Wpk.js +0 -1
- package/lib/dist/_nuxt/hxPxSB9x.js +0 -1
- package/lib/dist/_nuxt/i3038J2l.js +0 -1
- package/lib/dist/_nuxt/iRe-eGLd.js +0 -8
- package/lib/dist/_nuxt/index.CPCOQnNl.css +0 -1
- package/lib/dist/_nuxt/j4A7AON6.js +0 -10
- package/lib/dist/_nuxt/jAVyc8jr.js +0 -1
- package/lib/dist/_nuxt/jPPdShbL.js +0 -1
- package/lib/dist/_nuxt/kGbedJm-.js +0 -1
- package/lib/dist/_nuxt/kx7AoXFN.js +0 -2
- package/lib/dist/_nuxt/lsVYq3A5.js +0 -1
- package/lib/dist/_nuxt/mI08uoLm.js +0 -2
- package/lib/dist/_nuxt/oDxxqBHa.js +0 -1
- package/lib/dist/_nuxt/oJXkyIOa.js +0 -1
- package/lib/dist/_nuxt/pKWo-pLV.js +0 -1
- package/lib/dist/_nuxt/pgjAgmOw.js +0 -2
- package/lib/dist/_nuxt/pqLfwl55.js +0 -2
- package/lib/dist/_nuxt/qQjzY86g.js +0 -1
- package/lib/dist/_nuxt/qVj9e9X7.js +0 -1
- package/lib/dist/_nuxt/qXot1NID.js +0 -11
- package/lib/dist/_nuxt/qr-1SOdG.js +0 -2
- package/lib/dist/_nuxt/s9qgpKqN.js +0 -1
- package/lib/dist/_nuxt/sBZIc5BU.js +0 -1
- package/lib/dist/_nuxt/seVsLuS6.js +0 -1
- package/lib/dist/_nuxt/sub9kxHx.js +0 -1
- package/lib/dist/_nuxt/ui8DNR7H.js +0 -1
- package/lib/dist/_nuxt/vKUXjCuG.js +0 -1
- package/lib/dist/_nuxt/vUReA9ss.js +0 -2
- package/lib/dist/_nuxt/vjVJZIEm.js +0 -1
- package/lib/dist/_nuxt/vuqr1bIL.js +0 -2
- package/lib/dist/_nuxt/w-Mi70os.js +0 -1
- package/lib/dist/_nuxt/w2BQUTDl.js +0 -2
- package/lib/dist/_nuxt/w5PAfJ1u.js +0 -1
- package/lib/dist/_nuxt/wLCW5nUF.js +0 -1
- package/lib/dist/_nuxt/wTsaoz_M.js +0 -4
- package/lib/dist/_nuxt/y59HTFHp.js +0 -2
- package/lib/dist/_nuxt/yQBDHD4e.js +0 -1
- package/lib/dist/_nuxt/yQF3Pd_2.js +0 -2
- package/lib/dist/_nuxt/yltN8JbS.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ma as i,aa as a,hI as s,mb as m,mc as h,jA as B,aD as c,ew as f,ft as M,fu as F}from"./C6LKOky9.js";const $=(t,r,e)=>{const n=c(r.meta)?.date_format??"YYYY-MM-DD";return!t||!f(t).isValid()?"":f(/^\d+$/.test(String(t))?+t:t).format(n)},d=(t,r=1)=>{if(!t||Number.isNaN(t))return t;const e=10**r;return Math.round(+t*e)/e},D=(t,r,e)=>{if(!t||!f(t).isValid())return"";const n=c(r?.meta)?.date_format??M[0],u=c(r?.meta)?.time_format??F[0],o=`${n} ${u}`;return f(/^\d+$/.test(t)?+t:t,o).format(o)},g=(t,r)=>{const e={currency_locale:"en-US",currency_code:"USD",...c(r.meta)};try{return t==null||Number.isNaN(t)?t??"":new Intl.NumberFormat(e.currency_locale||"en-US",{style:"currency",currency:e.currency_code||"USD"}).format(+t)}catch{return t}};function C(t,r=2,e=1e3){if(t===0)return"0 Bytes";const n=e,u=Math.max(0,r),o=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],y=Math.floor(Math.log(t)/Math.log(n));return`${(t/n**y).toFixed(u)} ${o[y]}`}const A=(t,r,e)=>[i.EarliestDate,i.LatestDate].includes(t)?e.uidt===a.DateTime?D(r,e):e.uidt===a.Date?$(r,e):D(r,e):[s.PercentEmpty,s.PercentFilled,s.PercentUnique,m.PercentChecked,m.PercentUnchecked].includes(t)?`${d(r,1)??0}%`:[i.MonthRange,i.DateRange].includes(t)?t===i.DateRange?`${r??0} days`:`${r??0} months`:[s.Count,s.CountEmpty,s.CountFilled,s.CountUnique].includes(t)?r:[h.AttachmentSize].includes(t)?C(r??0):e.uidt===a.Currency?g(r,e):e.uidt===a.Percent?`${d(r,1)}%`:e.uidt===a.Duration?B(r,c(e.meta)?.duration||0):typeof r=="number"?d(r,1)??"∞":r;export{C as a,A as f};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./gtsNOpGw.js","./C6LKOky9.js","./entry.B91DZ4_L.css","./CmnkqU17.js","./BsA3AuFY.js","./BKEc6DrD.js","./DaJ3iJwN.js","./BAPIzECJ.js","./BQQOEPN4.js","./DqyG-W75.js","./DPq-K6KH.js","./BMp_dzM0.js","./BPYV7pHx.js","./Markdown.CUPXKfeQ.css","./C8FfL9Tu.js","./RichText.BmVf9T10.css","./C7Ceovbr.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{d as Ke,ai as m,p as r,aB as Ye,eV as qe,ju as Je,hM as We,hQ as Xe,fo as Qe,hR as Ze,hS as et,hT as tt,hE as nt,mw as at,j4 as st,j5 as lt,j8 as ot,js as it,b as rt,y as dt,s as ye,z as ut,c as be,gP as ct,g6 as he,C as B,c2 as pt,fp as mt,hV as ft,g as e,N as vt,ja as gt,jb as we,o as s,j as c,h as i,Y as g,k as f,i as K,a4 as I,bQ as X,hU as G,n as xt,bA as yt,a5 as v,Q as bt,l as y,f as j,w as d,m as E,ao as ht,t as k,_ as wt,au as kt,aJ as At,F as le,bh as Mt,x as U,gt as It,ax as ke,ay as Ae,K as Et}from"./C6LKOky9.js";import _t from"./BRac1jiv.js";import{a as Rt}from"./DBjyFBR_.js";import{u as Ct}from"./sub9kxHx.js";import{_ as Tt}from"./BMp_dzM0.js";import"./DdT_fcG0.js";import"./oJXkyIOa.js";import"./boyBAVNN.js";import"./BAPIzECJ.js";import"./BQQOEPN4.js";import"./DqyG-W75.js";const St=ke(()=>Ae(()=>import("./gtsNOpGw.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url).then(h=>h.default||h)),Lt=ke(()=>Ae(()=>import("./C7Ceovbr.js"),__vite__mapDeps([16,1,2]),import.meta.url).then(h=>h.default||h)),Bt={key:0,class:"w-full"},jt=["innerHTML"],zt=["rows","disabled"],Ht={key:0,class:"-mt-1"},$t={class:"flex items-start p-3 bg-nc-bg-purple-light gap-4"},Nt={key:1,class:"flex items-center gap-2 px-3 py-0.5 !text-small leading-[18px]"},Ut={key:2,class:"flex-1"},Ot={key:3,class:"nc-null uppercase"},Ft={key:5},Pt={class:"truncate"},Vt={class:"flex items-center text-small leading-[18px] gap-3 ml-2"},Gt={key:0,class:"text-nc-content-green-dark truncate"},Dt={key:1,class:"text-green-600"},Kt={key:0,class:"flex items-center gap-1 mr-4"},Yt={class:"flex items-center gap-2"},qt={class:"text-sm font-bold"},Jt={class:"flex items-center p-4 bg-nc-bg-purple-light gap-4"},Wt={key:2,class:"p-3 pb-0 h-full"},oe="nc-long-text-expanded-modal-size",Xt=Ke({__name:"TextArea",props:{modelValue:{},isFocus:{type:Boolean},virtual:{type:Boolean},isAi:{type:Boolean},aiMeta:{},isAiEdited:{type:Boolean},isFieldAiIntegrationAvailable:{type:Boolean}},emits:["update:modelValue","update:isAiEdited","generate","close"],setup(h,{emit:Me}){const a=h,Y=Me,Q=m(Ye,r()),_=m(qe),z=m(Je,r(!1)),A=m(We,r(!1)),R=m(Xe,r(1)),u=m(Qe,r(!1)),Z=m(Ze,r(!1)),Ie=m(et,r(!1)),Ee=m(tt,r(!1)),_e=m(nt,r(!1)),H=m(at,r(!1)),x=U(()=>_e.value||_.value.readonly),ie=m(st,!1),ee=m(lt),re=m(ot,r(!1)),Re=m(it),{showNull:Ce,user:q}=rt(),{currentRow:Te}=Rt(),{aiLoading:Se,aiIntegrations:de,generatingRows:Le,generatingColumnRows:Be}=Ct(),je=dt(),{idUserMap:C}=ye(je),ze=ut(),{basesUser:He}=ye(ze),$e=U(()=>Q.value?.base_id?He.value.get(Q.value.base_id)||[]:[]),p=be(a,"modelValue",Y,{shouldEmit:()=>!x.value}),te=be(a,"isAiEdited",Y),l=m(ct,r(!1)),ue=r(),T=r(),O=r(),F=r(!1),ne=U(()=>l.value?144:!R.value||R.value===1||A.value?36:R.value*36),$=U(()=>x.value&&!l.value&&(Ie.value||Ee.value)?6:R.value),o=r(!1),ae=r(null),J=r(null),se=r(),{height:ce}=he(se),pe=U(()=>It(Te.value?.row,Q.value.columns)),P=U(()=>!!(pe.value&&_?.value.id&&Le.value.includes(pe.value)&&Be.value.includes(_.value.id)));B(o,(n,t)=>{o.value&&setTimeout(()=>{J.value?.focus()},100),t&&!n&&Re?.trigger()}),pt(ae,n=>{n.target?.className.includes("nc-long-text-toggle-expand")||n?.target?.closest(".bubble-menu, .tippy-content, .nc-textarea-rich-editor, .tippy-box, .mention, .nc-mention-list, .tippy-content")||(Y("close"),o.value=!1)});const Ne=()=>{a.virtual&&(o.value=!0,z.value=!0)},M=U(()=>{let n={};return typeof _?.value?.meta=="string"?n=JSON.parse(_?.value?.meta):n=_?.value?.meta??{},n?.richMode}),Ue=mt(async()=>M.value&&p.value?Promise.resolve(ft.parse(e(p.value),{enableMention:!0,users:e($e.value),currentUser:e(q.value),...l.value?{maxBlockTokens:void 0}:{maxBlockTokens:R.value}},!0)):Promise.resolve("")),D=()=>{o.value=!0},me=n=>{F.value&&(n.stopPropagation(),T.value={top:n.clientY-(O.value?.top||0)>0?n.clientY-(O.value?.top||0):T.value?.top||0,left:n.clientX-(O.value?.left||0)>-16?n.clientX-(O.value?.left||0):T.value?.left||0})},fe=n=>{F.value&&(n.stopPropagation(),F.value=!1,T.value=void 0,O.value=void 0,document.removeEventListener("mousemove",me),document.removeEventListener("mouseup",fe))};B(T,()=>{const n=document.querySelector(".nc-long-text-expanded-modal .ant-modal-content");!n||!T.value||(n.style.transform="none",n.style.left=`${T.value.left}px`,n.style.top=`${T.value.top}px`)},{deep:!0});const Oe=n=>{if(A.value)return;const t=document.querySelector(".nc-long-text-expanded-modal .ant-modal-content");O.value={top:n.clientY-t.getBoundingClientRect().top,left:n.clientX-t.getBoundingClientRect().left+16},document.addEventListener("mousemove",me),document.addEventListener("mouseup",fe),F.value=!0},W=()=>{Y("generate")};a.isAi&&B(p,(n,t)=>{te.value=!0}),B(z,()=>{z.value&&(M.value||a.isAi)&&(o.value=!0)});const V=n=>{n.stopPropagation()};B(ae,()=>{if(!A.value)return;const n=document.querySelector(".nc-long-text-expanded-modal");o.value&&n?.parentElement?(n.parentElement.addEventListener("click",V),n.parentElement.addEventListener("mousedown",V),n.parentElement.addEventListener("mouseup",V)):n?.parentElement&&(n.parentElement.removeEventListener("click",V),n.parentElement.removeEventListener("mousedown",V),n.parentElement.removeEventListener("mouseup",V))});const Fe=()=>{o.value=!1},{width:ve,height:ge}=he(J);B([ve,ge],()=>{if(o.value){const n={width:ve.value,height:ge.value};localStorage.setItem(oe,JSON.stringify(n))}});const xe=()=>{try{const n=localStorage.getItem(oe);let t=document.querySelector(".nc-text-area-expanded");M.value&&(t=document.querySelector(".nc-long-text-expanded-modal .nc-textarea-rich-editor .tiptap"));const w=JSON.parse(n);w&&t&&(t.style.width=`${w.width}px`,t.style.height=`${w.height}px`)}catch(n){console.error(n)}};return B([o,J],n=>{const t=new ResizeObserver(w=>{for(const S of w){const{width:L,height:N}=S.contentRect;if(!o.value)return;localStorage.setItem(oe,JSON.stringify({width:L,height:N}))}});n?M.value&&o.value?setTimeout(()=>{const w=document.querySelector(".nc-long-text-expanded-modal .nc-textarea-rich-editor .tiptap");w&&(t.observe(w),xe())},50):xe():t.disconnect()},{immediate:!0}),B(ue,n=>{n&&!l.value&&!A.value&&!u.value&&n.focus()}),vt(()=>{if(re.value||!ie||!ee||l.value)return;const n={clientX:ee.clientX,clientY:ee.clientY+2};gt(()=>{we(".nc-canvas-table-editable-cell-wrapper .nc-textarea-expand",n)?D():we(".nc-canvas-table-editable-cell-wrapper .nc-textarea-generate",n)?W():(M.value||a.isAi)&&D()})}),(n,t)=>{const w=St,S=bt,L=ht,N=wt,Pe=Lt,Ve=_t,Ge=Tt,De=Mt;return s(),c("div",{class:g({"nc-expanded-form-open":e(l)})},[i("div",{class:g(["flex flex-row w-full long-text-wrapper items-center",{"min-h-10":e(R)!==1||e(l),"min-h-5.5":e(R)===1&&!e(l),"h-full w-full":e(u)}])},[e(u)&&e(M)?(s(),c("div",Bt,[i("div",{class:g(["w-full relative w-full px-0",{"pt-11":!e(x)}])},[f(w,{value:e(p),"onUpdate:value":t[0]||(t[0]=b=>K(p)?p.value=b:null),class:g({"border-t-1 border-gray-100 allow-vertical-resize":!e(x)}),autofocus:!1,"show-menu":"","read-only":e(x)},null,8,["value","class","read-only"])],2)])):e(M)?(s(),c("div",{key:1,class:g(["w-full cursor-pointer nc-readonly-rich-text-wrapper",[e(l)?"nc-scrollbar-thin":"overflow-hidden",{"nc-readonly-rich-text-grid ":!e(l)&&!e(u),"nc-readonly-rich-text-sort-height":e($)===1&&!e(l)&&!e(u)}]]),style:X({maxHeight:e(u)?void 0:e(l)?`${e(ne)}px`:`${16.6*("rowHeightTruncateLines"in n?n.rowHeightTruncateLines:e(G))(e($))}px`,minHeight:e(u)?void 0:e(l)?`${e(ne)}px`:`${16.5*("rowHeightTruncateLines"in n?n.rowHeightTruncateLines:e(G))(e($))}px`}),onDblclick:D,onKeydown:I(D,["enter"])},[i("div",{class:g(["nc-cell-field nc-rich-text-content nc-rich-text-content-grid",e(l)?"py-2":`line-clamp-${("rowHeightTruncateLines"in n?n.rowHeightTruncateLines:e(G))(e($),!0)}`]),innerHTML:e(Ue)},null,10,jt)],38)):e(z)&&!e(o)||e(u)||e(H)&&e(o)||e(ie)&&e(H)||e(H)&&e(l)&&!e(re)?(s(),c("div",{key:2,class:g(["h-full w-full",{"my-1 bg-nc-bg-purple-light rounded-lg":a.isAi&&e(l)&&!e(x)}])},[xt(i("textarea",{ref_key:"textAreaRef",ref:ue,"onUpdate:modelValue":t[1]||(t[1]=b=>K(p)?p.value=b:null),rows:e(u)?5:4,class:g(["h-full w-full !outline-none nc-scrollbar-thin",{"p-2":e(z)||e(H),"py-1 h-full":e(u),"px-2":e(l),"border-none":!(a.isAi&&e(l)),"border-1 border-nc-border-gray-medium rounded-lg !focus:shadow-selected !focus:border-primary !focus:ring-0 transition-shadow duration-300":a.isAi&&e(l),"bg-transparent":e(H)}]),style:X({minHeight:e(u)?"117px":`${e(ne)}px`,maxHeight:"min(800px, calc(100vh - 200px))"}),disabled:e(x)||a.isAi&&e(A),onBlur:t[2]||(t[2]=b=>z.value=!1),onKeydown:[t[3]||(t[3]=v(()=>{},["alt","stop"])),t[4]||(t[4]=I(v(()=>{},["alt","stop"]),["enter"])),t[5]||(t[5]=I(v(()=>{},["shift","stop"]),["enter"])),t[6]||(t[6]=I(v(()=>{},["stop"]),["down"])),t[7]||(t[7]=I(v(()=>{},["stop"]),["left"])),t[8]||(t[8]=I(v(()=>{},["stop"]),["right"])),t[9]||(t[9]=I(v(()=>{},["stop"]),["up"])),t[10]||(t[10]=I(v(()=>{},["stop"]),["delete"]))],onSelectstartCapture:t[11]||(t[11]=v(()=>{},["stop"])),onMousedown:t[12]||(t[12]=v(()=>{},["stop"]))},null,46,zt),[[yt,e(p)]]),!e(x)&&a.isAi&&e(l)?(s(),c("div",Ht,[a.aiMeta?.isStale?(s(),c("div",{key:0,ref_key:"aiWarningRef",ref:se},[i("div",$t,[f(S,{icon:"alertTriangleSolid",class:"text-nc-content-purple-medium h-4 w-4 flex-none"}),t[20]||(t[20]=i("div",{class:"flex flex-col"},[i("div",{class:"font-bold text-small leading-[18px] text-nc-content-gray"},"Record Data Updated"),i("div",{class:"text-small leading-[18px] text-nc-content-gray-muted"}," Cell values in this record have been updated. Regenerate to get more accurate content. ")],-1))])],512)):y("",!0),e(A)?y("",!0):(s(),c("div",Nt,[t[25]||(t[25]=i("span",{class:"text-nc-content-purple-light truncate"},"Generated by AI",-1)),e(te)?(s(),j(L,{key:0,class:"text-nc-content-green-dark flex-1 truncate","show-on-truncate-only":""},{title:d(()=>[...t[21]||(t[21]=[E(" Edited by you ",-1)])]),default:d(()=>[t[22]||(t[22]=E(" Edited by you ",-1))]),_:1})):a.aiMeta?.lastModifiedBy&&e(C)[a.aiMeta?.lastModifiedBy]?(s(),j(L,{key:1,class:"text-nc-content-green-dark flex-1 truncate","show-on-truncate-only":""},{title:d(()=>[E(" Edited by "+k(e(q)?.id===a.aiMeta?.lastModifiedBy?"you":e(C)[a.aiMeta?.lastModifiedBy]?.display_name||e(C)[a.aiMeta?.lastModifiedBy]?.email),1)]),default:d(()=>[E(" Edited by "+k(e(q)?.id===a.aiMeta?.lastModifiedBy?"you":e(C)[a.aiMeta?.lastModifiedBy]?.display_name||e(C)[a.aiMeta?.lastModifiedBy]?.email),1)]),_:1})):(s(),c("div",Ut)),f(L,{disabled:h.isFieldAiIntegrationAvailable,class:"flex"},{title:d(()=>[E(k(e(de).length?n.$t("tooltip.aiIntegrationReConfigure"):n.$t("tooltip.aiIntegrationAddAndReConfigure")),1)]),default:d(()=>[f(N,{type:"text",theme:"ai",size:"xs",disabled:!h.isFieldAiIntegrationAvailable,loading:e(P),onClick:v(W,["stop"])},{icon:d(()=>[f(S,{icon:"ncAutoAwesome",class:"h-4 w-4"})]),loading:d(()=>[...t[23]||(t[23]=[E(" Re-generating... ",-1)])]),default:d(()=>[t[24]||(t[24]=E(" Re-generate ",-1))]),_:1},8,["disabled","loading"])]),_:1},8,["disabled"])]))])):y("",!0)],2)):e(p)===null&&e(Ce)?(s(),c("span",Ot,k(n.$t("general.null")),1)):e(R)?(s(),j(Pe,{key:4,value:e(p),lines:("rowHeightTruncateLines"in n?n.rowHeightTruncateLines:e(G))(e($)),class:"nc-text-area-clamped-text",style:X({"word-break":"break-word","max-height":`${25*("rowHeightTruncateLines"in n?n.rowHeightTruncateLines:e(G))(e($))}px`,"my-auto":("rowHeightTruncateLines"in n?n.rowHeightTruncateLines:e(G))(e($))===1}),onClick:Ne},null,8,["value","lines","style"])):(s(),c("span",Ft,k(e(p)),1)),i("div",{class:g(["!absolute !hidden nc-text-area-expand-btn group-hover:block z-3 items-center gap-1",{"right-1":e(u),"right-0":!e(u),"top-0 right-0":e(Z)&&!e(l)&&!e(u),"!right-2 top-2":e(Z)&&!e(l)&&!e(u)&&!e(M)&&(e(z)&&!e(o)||e(u)||e(H)&&e(o)),"top-1":!(e(Z)&&!e(l)&&!e(u))||e(H)}])},[!e(o)&&!e(u)&&!e(x)&&a.isAi&&!e(l)&&!e(A)?(s(),j(L,{key:0,placement:"bottom",class:"nc-action-icon"},{title:d(()=>[E(k(e(P)?"Re-generating...":"Re-generate"),1)]),default:d(()=>[f(N,{type:"secondary",size:"xsmall",class:"!p-0 !w-5 !h-5 !min-w-[fit-content] nc-textarea-generate",disabled:e(P),"loader-size":"small","icon-only":"",onClick:v(W,["stop"])},{icon:d(()=>[f(S,{icon:"refresh",class:g(["transform !group-hover:text-grey-800 text-gray-700 w-3 h-3",{"animate-infinite animate-spin":e(P)}])},null,8,["class"])]),_:1},8,["disabled"])]),_:1})):y("",!0),!e(o)&&!e(u)?(s(),j(L,{key:1,placement:"bottom",class:"nc-action-icon"},{title:d(()=>[E(k(n.$t("title.expand")),1)]),default:d(()=>[f(N,{type:"secondary",size:"xsmall",class:"nc-textarea-expand !p-0 !w-5 !h-5 !min-w-[fit-content]",onClick:v(D,["stop"])},{default:d(()=>[(s(),j(kt(("iconMap"in n?n.iconMap:e(At)).maximize),{class:"transform !group-hover:text-grey-800 text-gray-700 w-3 h-3"}))]),_:1})]),_:1})):y("",!0)],2)],2),e(o)?(s(),j(De,{key:0,visible:e(o),"onUpdate:visible":t[19]||(t[19]=b=>K(o)?o.value=b:null),closable:!1,footer:null,"wrap-class-name":"nc-long-text-expanded-modal",mask:!0,"mask-closable":!1,"mask-style":{zIndex:1051},"z-index":1052},{default:d(()=>[i("div",{ref_key:"inputWrapperRef",ref:ae,class:g(["flex flex-col pb-3 w-full expanded-cell-input relative",{"cursor-move":e(F),"expanded-cell-input-ai":a.isAi}]),onKeydown:t[18]||(t[18]=I(v(()=>{},["stop"]),["enter"]))},[e(_)?(s(),c("div",{key:0,class:g(["flex flex-row gap-x-1 items-center font-medium pl-3 pb-2.5 pt-3 border-b-1 border-gray-100 overflow-hidden",{"select-none":e(F),"cursor-move":!e(A)}]),onMousedown:Oe},[f(Ve,{class:g(["flex",{"!w-6 !h-6":a.isAi}])},null,8,["class"]),i("div",{class:g(["flex max-w-38",{"text-xl":a.isAi}])},[i("span",Pt,k(e(_).title),1)],2),!a.isAi&&!e(M)?(s(),c(le,{key:0},[t[26]||(t[26]=i("div",{class:"flex-1"},null,-1)),f(N,{class:"mr-2",type:"text",size:"small",onClick:t[13]||(t[13]=b=>o.value=!1)},{default:d(()=>[f(S,{icon:"close"})]),_:1})],64)):y("",!0),a.isAi&&!e(A)?(s(),c(le,{key:1},[i("div",Vt,[t[27]||(t[27]=i("span",{class:"text-nc-content-purple-dark truncate"},"Generated by AI",-1)),e(x)?y("",!0):(s(),c(le,{key:0},[e(te)?(s(),c("span",Gt," Edited by you ")):a.aiMeta?.lastModifiedBy&&e(C)[a.aiMeta?.lastModifiedBy]?(s(),c("span",Dt," Edited by "+k(e(q)?.id===a.aiMeta?.lastModifiedBy?"you":e(C)[a.aiMeta?.lastModifiedBy]?.display_name||e(C)[a.aiMeta?.lastModifiedBy]?.email),1)):y("",!0)],64))]),t[28]||(t[28]=i("div",{class:"flex-1"},null,-1)),e(x)?y("",!0):(s(),c("div",Kt,[f(L,{disabled:h.isFieldAiIntegrationAvailable,class:"flex"},{title:d(()=>[E(k(e(de).length?n.$t("tooltip.aiIntegrationReConfigure"):n.$t("tooltip.aiIntegrationAddAndReConfigure")),1)]),default:d(()=>[f(N,{type:"secondary",bordered:!1,theme:"ai",size:"small",disabled:!h.isFieldAiIntegrationAvailable,onClick:v(W,["stop"])},{default:d(()=>[i("div",Yt,[f(S,{icon:"refresh",class:g({"animate-infinite animate-spin":e(P)})},null,8,["class"]),i("span",qt,k(e(P)?"Re-generating...":"Re-generate"),1)])]),_:1},8,["disabled"])]),_:1},8,["disabled"])]))],64)):y("",!0)],34)):y("",!0),a.isAi&&a.aiMeta?.isStale&&!e(x)?(s(),c("div",{key:1,ref_key:"aiWarningRef",ref:se,class:"border-b-1 border-gray-100"},[i("div",Jt,[f(S,{icon:"alertTriangleSolid",class:"text-nc-content-purple-medium h-6 w-6 flex-none"}),t[29]||(t[29]=i("div",{class:"flex flex-col"},[i("div",{class:"font-bold text-base text-nc-content-gray"},"Record Data Updated"),i("div",{class:"text-nc-content-gray-muted text-sm"}," Cell values in this record have been updated since the last time this content was generated. Regenerate to get more accurate content. ")],-1))])],512)):y("",!0),e(M)?(s(),j(w,{key:3,value:e(p),"onUpdate:value":t[17]||(t[17]=b=>K(p)?p.value=b:null),"show-menu":"","full-mode":"","read-only":e(x),onClose:Fe},null,8,["value","read-only"])):(s(),c("div",Wt,[f(Ge,{ref_key:"inputRef",ref:J,value:e(p),"onUpdate:value":t[14]||(t[14]=b=>K(p)?p.value=b:null),class:"nc-text-area-expanded !py-1 !px-3 !text-black !transition-none !cursor-text !min-h-[210px] !rounded-lg focus:border-brand-500 disabled:!bg-gray-50 nc-longtext-scrollbar",placeholder:n.$t("activity.enterText"),style:X({resize:"both",maxHeight:a.isAi?`min(795px - ${e(ce)+8}px, 100vh - 170px - ${e(ce)+8}px)`:"min(795px, 100vh - 170px)"}),disabled:e(x)||a.isAi&&e(Se)||a.isAi&&e(A),onKeydown:[t[15]||(t[15]=I(b=>o.value=!1,["escape"])),t[16]||(t[16]=v(()=>{},["alt","stop"]))]},null,8,["value","placeholder","style","disabled"])]))],34)]),_:1},8,["visible"])):y("",!0)],2)}}}),un=Object.assign(Et(Xt,[["__scopeId","data-v-da646687"]]),{__name:"CellTextArea"});export{un as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as ie,c as H,aG as ce,cr as de,gc as fe,C as me,S as ve,o as v,j as k,a4 as E,a5 as g,g as l,F,h as _,U as u,k as S,i as pe,w as I,Q as he,l as $,a3 as ye,ek as we,el as ge,R as _e,f as j,ao as Se,Y as Ie,m as D,t as N,fL as G,p,x as U,gd as be,ge as z,K as xe}from"./C6LKOky9.js";import{_ as ke}from"./CQewCz9m.js";import"./DaJ3iJwN.js";import{I as Ee}from"./BAPIzECJ.js";import"./D2Vdk0H3.js";import"./DPq-K6KH.js";import"./BMp_dzM0.js";import"./BQQOEPN4.js";import"./DqyG-W75.js";import"./BPYV7pHx.js";const $e=["onKeydown"],Ce={class:"nc-list-wrapper"},Me={key:0,class:"h-auto !max-h-[247px]"},Le={class:"h-full text-center flex items-center justify-center gap-3 mt-4"},Oe=ie({__name:"index",props:{value:{},list:{},optionValueKey:{default:"value"},optionLabelKey:{default:"label"},open:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},searchInputPlaceholder:{default:"Search"},showSearchAlways:{type:Boolean,default:!1},showSelectedOption:{type:Boolean,default:!0},itemHeight:{default:38},filterOption:{},isMultiSelect:{type:Boolean,default:!1},minItemsForSearch:{default:4},containerClassName:{default:""},itemClassName:{default:""},itemTooltipPlacement:{default:"right"}},emits:["update:value","update:open","change"],setup(C,{emit:A}){const n=C,M=A,i=H(n,"value",M,{defaultValue:n.isMultiSelect?[]:void 0}),h=H(n,"open",M),{optionValueKey:o,optionLabelKey:L}=n,{closeOnSelect:Q,showSelectedOption:q,containerClassName:W,itemClassName:Y}=ce(n),T=de(),K=p(),y=p(""),P=p(),a=p(-1),d=p(!0),O=U(()=>n.showSearchAlways||T.headerExtraLeft||T.headerExtraRight||n.list.length>n.minItemsForSearch),w=p(!1),r=U(()=>{const e=y.value.toLowerCase();return n.list.filter((s,f)=>n?.filterOption?n.filterOption(e,s,f):s[L]?.toLowerCase()?.includes(e))}),{list:J,containerProps:X,wrapperProps:Z,scrollTo:B}=fe(r,{itemHeight:n.itemHeight+2});function c(e){return n.isMultiSelect?i.value.includes(e):i.value===e}const b=(e=!1,s)=>{e&&w.value||e&&a.value===s||(e&&d.value&&(a.value=-1),s!==void 0&&(a.value=s),d.value&&(d.value=!1))},x=(e,s)=>{!be(e)||!(o in e)||e.ncItemDisabled||(s!==void 0&&(a.value=s),n.isMultiSelect?i.value.includes(e?.[o])?i.value=i.value.filter(f=>f!==e?.[o]):i.value=[...i.value,e?.[o]]:i.value=e[o],M("change",e),Q.value&&(h.value=!1))},R=(e=!1)=>{if(a.value!==-1){if(!e){B(a.value);return}setTimeout(()=>{B(a.value)},150)}},ee=()=>{w.value=!0,b(),a.value!==r.value.length-1&&(a.value=Math.min(a.value+1,r.value.length-1),R(),z(100).then(()=>{w.value=!1}))},te=()=>{w.value=!0,b(),a.value!==0&&(a.value=Math.max(a.value-1,0),R(),z(100).then(()=>{w.value=!1}))},le=()=>{(r.value[a.value]||r.value[0])&&x(r.value[a.value])},ae=()=>{h.value&&setTimeout(()=>{P.value?.focus()},100)},se=()=>{!h.value||O.value||setTimeout(()=>{K.value?.focus()},100)};return me(h,()=>{h.value&&(y.value="",n.isMultiSelect?d.value=!1:d.value=!0,i.value&&!n.isMultiSelect?(a.value=r.value.findIndex(e=>c(e?.[o])),ve(()=>{R(!0)})):a.value=-1,O.value?ae():se())},{immediate:!0}),(e,s)=>{const f=he,ne=Ee,oe=ke,V=Se,re=G;return v(),k("div",{ref_key:"listRef",ref:K,tabindex:"0",class:"flex flex-col pt-2 w-64 !focus:shadow-none !focus:outline-none",onKeydown:[E(g(ee,["prevent"]),["arrow-down"]),E(g(te,["prevent"]),["arrow-up"]),s[3]||(s[3]=E(g(t=>x(l(r)[l(a)]),["prevent"]),["enter"]))]},[l(O)?(v(),k(F,{key:0},[_("div",{class:"w-full px-2 flex items-center gap-2",onClick:s[2]||(s[2]=g(()=>{},["stop"]))},[u(e.$slots,"headerExtraLeft",{},void 0,!0),S(ne,{ref_key:"inputRef",ref:P,value:l(y),"onUpdate:value":s[0]||(s[0]=t=>pe(y)?y.value=t:null),placeholder:C.searchInputPlaceholder,class:"nc-toolbar-dropdown-search-field-input !pl-2 !pr-1.5 flex-1","allow-clear":"",bordered:!1,onKeydown:E(g(le,["stop"]),["enter"]),onChange:s[1]||(s[1]=t=>b(!1,0))},{prefix:I(()=>[S(f,{icon:"search",class:"nc-search-icon h-3.5 w-3.5 mr-1"})]),_:1},8,["value","placeholder","onKeydown"]),u(e.$slots,"headerExtraRight",{},void 0,!0)]),S(oe)],64)):$("",!0),u(e.$slots,"listHeader",{},void 0,!0),_("div",Ce,[l(r).length?(v(),k("div",Me,[_("div",ye(l(X),{class:["nc-list !h-auto w-full nc-scrollbar-thin px-2 pb-2 !max-h-[247px]",l(W)]}),[_("div",we(ge(l(Z))),[(v(!0),k(F,null,_e(l(J),({data:t,index:m})=>(v(),j(V,{key:m,class:Ie(["flex items-center gap-2 w-full py-2 px-2 rounded-md my-[2px] first-of-type:mt-0 last-of-type:mb-0",[`nc-list-option-${m}`,{"nc-list-option-selected":c(t[l(o)]),"bg-gray-100 ":!t?.ncItemDisabled&&l(d)&&c(t[l(o)]),"bg-gray-100 nc-list-option-active":!t?.ncItemDisabled&&l(a)===m,"opacity-60 cursor-not-allowed":t?.ncItemDisabled,"hover:bg-gray-100 cursor-pointer":!t?.ncItemDisabled},`${l(Y)}`]]),placement:C.itemTooltipPlacement,disabled:!t?.ncItemTooltip,onMouseover:ue=>b(!0,m),onClick:ue=>x(t,m)},{title:I(()=>[D(N(t.ncItemTooltip),1)]),default:I(()=>[u(e.$slots,"listItem",{option:t,isSelected:c(t[l(o)]),index:m},()=>[u(e.$slots,"listItemExtraLeft",{option:t,isSelected:c(t[l(o)])},void 0,!0),u(e.$slots,"listItemContent",{option:t,isSelected:c(t[l(o)])},()=>[S(V,{class:"truncate flex-1","show-on-truncate-only":""},{title:I(()=>[D(N(t[l(L)]),1)]),default:I(()=>[D(" "+N(t[l(L)]),1)]),_:2},1024)],!0),u(e.$slots,"listItemExtraRight",{option:t,isSelected:c(t[l(o)])},void 0,!0),u(e.$slots,"listItemSelectedIcon",{option:t,isSelected:c(t[l(o)])},()=>[l(q)&&c(t[l(o)])?(v(),j(f,{key:0,id:"nc-selected-item-icon",icon:"check",class:"flex-none text-primary w-4 h-4"})):$("",!0)],!0)],!0)]),_:2},1032,["class","placement","disabled","onMouseover","onClick"]))),128))],16)],16)])):$("",!0),l(r).length?$("",!0):u(e.$slots,"emptyState",{key:1},()=>[_("div",Le,[S(re,{image:("Empty"in e?e.Empty:l(G)).PRESENTED_IMAGE_SIMPLE,description:e.$t("labels.noData"),class:"!my-0"},null,8,["image","description"])])],!0)]),u(e.$slots,"listFooter",{},void 0,!0)],40,$e)}}}),je=Object.assign(xe(Oe,[["__scopeId","data-v-c035cbe8"]]),{__name:"NcList"});export{je as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./W65HVqQ1.js","./C6LKOky9.js","./entry.B91DZ4_L.css","./DKUkQR25.js","./BjQS7j_1.js","./hTcDf1pW.js","./CAFE4Bq2.js","./BBqMSLQi.js","./DqyG-W75.js","./Checkbox.BOwteAiW.css","./CgeBSb2D.js","./CB7z8qng.js","./Modal.CB1oWLel.css","./1QOSI9Cg.js","./R1OTc6xI.js","./B8LajyGq.js","./CVQmbhK4.js","./DaJ3iJwN.js","./BAPIzECJ.js","./BQQOEPN4.js","./DPq-K6KH.js","./BMp_dzM0.js","./BPYV7pHx.js","./DdT_fcG0.js","./B5IQ1MTu.js","./DBjyFBR_.js","./oJXkyIOa.js","./boyBAVNN.js","./CERg95f4.js","./DUA1fBDs.js","./Overlay.CpKx7Pnx.css","./0jsfyAqM.js","./DdTU3J9A.js","./BDky6Gcp.js","./DrtMf53-.js","./BIhGzgWM.js","./index.CRz5VEKV.css","./Local.BXi4cwEo.css","./w5PAfJ1u.js","./Camera.CpAhqNyN.css","./C44WcmOq.js","./CfIafbXz.js","./Url.CyoHkG9C.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{d as $,b as D,c as E,C as I,o as c,f as d,w as m,h as i,Y as p,g as l,k as n,Q as T,m as b,t as x,l as w,n as B,X as F,a4 as O,i as R,p as K,ax as h,ay as g,K as S}from"./C6LKOky9.js";import{_ as G}from"./BgOvZXcj.js";import{_ as j}from"./DuQoK3qe.js";import Q from"./DuzBGfJ3.js";import{u as X}from"./BjQS7j_1.js";import"./hTcDf1pW.js";import"./CAFE4Bq2.js";import"./BBqMSLQi.js";import"./DqyG-W75.js";import"./CgeBSb2D.js";import"./CB7z8qng.js";import"./1QOSI9Cg.js";import"./R1OTc6xI.js";import"./B8LajyGq.js";import"./CVQmbhK4.js";import"./DaJ3iJwN.js";import"./BAPIzECJ.js";import"./BQQOEPN4.js";import"./DPq-K6KH.js";import"./BMp_dzM0.js";import"./BPYV7pHx.js";import"./DdT_fcG0.js";import"./B5IQ1MTu.js";import"./DBjyFBR_.js";import"./oJXkyIOa.js";import"./boyBAVNN.js";import"./CERg95f4.js";import"./DUA1fBDs.js";import"./0jsfyAqM.js";import"./DdTU3J9A.js";import"./BDky6Gcp.js";import"./DrtMf53-.js";import"./BIhGzgWM.js";const Y=h(()=>g(()=>import("./W65HVqQ1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37]),import.meta.url).then(a=>a.default||a)),q=h(()=>g(()=>import("./w5PAfJ1u.js"),__vite__mapDeps([38,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,39]),import.meta.url).then(a=>a.default||a)),H=h(()=>g(()=>import("./C44WcmOq.js"),__vite__mapDeps([40,1,2,41,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,42]),import.meta.url).then(a=>a.default||a)),J={style:{"border-top-left-radius":"1rem","border-bottom-left-radius":"1rem"},class:"px-2 !-full flex-grow bg-gray-50"},W={class:"flex gap-2 items-center"},Z={class:"flex gap-2 items-center"},ee={class:"flex gap-2 items-center"},te={style:{height:"425px"},class:"w-full p-2"},oe=$({__name:"AttachFile",props:{value:{type:Boolean}},setup(a){const A=a,{isMobileMode:C}=D(),r=E(A,"value"),{onDrop:k,isPublic:U,stopCamera:M}=X(),s=K("local"),_=t=>{s.value=t},u=t=>{r.value=t},v=async t=>{await k(t,{}),r.value=!1};return I(s,(t,e)=>{e==="webcam"&&t!=="webcam"&&setTimeout(()=>{M()},1e3)}),(t,e)=>{const f=T,y=G,V=j,z=Y,P=q,L=H,N=Q;return c(),d(N,{visible:l(r),"onUpdate:visible":e[6]||(e[6]=o=>R(r)?r.value=o:null),"show-separator":!1,size:"medium",width:"50rem","wrap-class-name":"nc-modal-attachment-create",class:"!rounded-md",onKeydown:e[7]||(e[7]=O(o=>r.value=!1,["esc"]))},{default:m(()=>[i("div",{class:p(["flex h-full",l(C)?"flex-col":"flex-row"])},[i("div",J,[n(V,{class:p(["!h-full !bg-gray-50 flex flex-col",{"!flex-row overflow-x-scroll":l(C)}])},{default:m(()=>[n(y,{key:"local",class:p(["!hover:bg-gray-200 !hover:text-gray-800 rounded-md",{"active-menu":l(s)==="local"}]),onClick:e[0]||(e[0]=o=>_("local"))},{default:m(()=>[i("div",W,[n(f,{icon:"file"}),b(" "+x(t.$t("title.localFiles")),1)])]),_:1},8,["class"]),l(U)?w("",!0):(c(),d(y,{key:"url",class:p(["!hover:bg-gray-200 !hover:text-gray-800 rounded-md",{"active-menu":l(s)==="url"}]),onClick:e[1]||(e[1]=o=>_("url"))},{default:m(()=>[i("div",Z,[n(f,{icon:"link2"}),b(" "+x(t.$t("title.uploadViaUrl")),1)])]),_:1},8,["class"])),n(y,{key:"webcam",class:p(["!hover:bg-gray-200 !hover:text-gray-800 rounded-md",{"active-menu":l(s)==="webcam"}]),onClick:e[2]||(e[2]=o=>_("webcam"))},{default:m(()=>[i("div",ee,[n(f,{icon:"camera"}),b(" "+x(t.$t("title.webcam")),1)])]),_:1},8,["class"])]),_:1},8,["class"])]),i("div",te,[B(n(z,{"onUpdate:visible":u,onUpload:e[3]||(e[3]=o=>v(o))},null,512),[[F,l(s)==="local"]]),l(s)==="webcam"?(c(),d(P,{key:0,"onUpdate:visible":u,onUpload:e[4]||(e[4]=o=>v(o))})):w("",!0),l(s)==="url"?(c(),d(L,{key:1,"onUpdate:visible":u,onUpload:e[5]||(e[5]=o=>v(o))})):w("",!0)])],2)]),_:1},8,["visible"])}}}),Ie=Object.assign(S(oe,[["__scopeId","data-v-2eaddaa5"]]),{__name:"CellAttachmentAttachFile"});export{Ie as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as e,o as t,j as c}from"./C6LKOky9.js";const r={};function n(o,a){return t(),c("div")}const _=Object.assign(e(r,[["render",n]]),{__name:"SmartsheetTopbarScriptAction"});export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as R,ai as r,eV as F,p as d,fo as N,hQ as $,hT as E,ju as K,y as P,o as s,j as c,g as e,aD as z,k as p,w as o,F as C,R as S,f as I,Y as m,h as f,bQ as g,l1 as j,ao as D,t as w,m as B,a5 as Q,hU as q,x as y,K as G}from"./C6LKOky9.js";import{g as U,a as Y}from"./BgDgPsFm.js";import{C as A,a as J}from"./CAFE4Bq2.js";import{T as W}from"./DSlfE7GQ.js";import"./BBqMSLQi.js";import"./DqyG-W75.js";const X={key:0,class:"w-full max-w-full"},Z={class:"text-ellipsis overflow-hidden",style:{wordBreak:"keep-all",whiteSpace:"nowrap",display:"inline"}},ee={class:"text-ellipsis overflow-hidden",style:{wordBreak:"keep-all",whiteSpace:"nowrap",display:"inline"}},te=R({__name:"Readonly",props:{modelValue:{},rowIndex:{},location:{},options:{}},setup(u){const i=r(F),x=r(N,d(!1)),h=r($,d(void 0)),_=r(E,d(!1)),L=r(K,d(!1)),{isMysql:V}=P(),v=y(()=>u.options??U(i.value,L.value,x.value)),k=y(()=>v.value.reduce((t,a)=>(a.title&&(t[a.title.trim()]=a),t),{})),T=y(()=>Y(i.value,k.value,V,u.modelValue).reduce((t,a)=>{const n=k.value[a?.trim()];return(n?.id||n?.title)&&t.push(n),t},[])),H=y(()=>T.value.map(t=>t.title));return(t,a)=>{const n=D,b=W,M=A,O=J;return s(),c("div",{class:m(["nc-cell-field nc-multi-select h-full w-full flex items-center read-only",{"max-w-full":e(x)}])},[e(x)&&("parseProp"in t?t.parseProp:e(z))(e(i).meta)?.isList?(s(),c("div",X,[p(O,{value:e(H),disabled:"",class:"nc-field-layout-list",onClick:a[0]||(a[0]=Q(()=>{},["stop"]))},{default:o(()=>[(s(!0),c(C,null,S(e(v),l=>(s(),I(M,{key:l.title,value:l.title,class:m(["gap-2",`nc-select-option-${e(i).title}-${l.title}`]),"data-testid":`select-option-${e(i).title}-${u.location==="filter"?"filter":u.rowIndex}`},{default:o(()=>[p(b,{class:"rounded-tag max-w-full",color:l.color},{default:o(()=>[f("span",{style:g({color:("getSelectTypeOptionTextColor"in t?t.getSelectTypeOptionTextColor:e(j))(l.color)}),class:"text-small"},[p(n,{class:"truncate max-w-full","show-on-truncate-only":""},{title:o(()=>[B(w(l.title),1)]),default:o(()=>[f("span",Z,w(l.title),1)]),_:2},1024)],4)]),_:2},1032,["color"])]),_:2},1032,["value","data-testid","class"]))),128))]),_:1},8,["value"])])):(s(),c("div",{key:1,class:"flex flex-wrap",style:g({display:"-webkit-box","max-width":"100%","-webkit-line-clamp":("rowHeightTruncateLines"in t?t.rowHeightTruncateLines:e(q))(e(h),!0),"-webkit-box-orient":"vertical","-webkit-box-align":"center",overflow:"hidden"})},[(s(!0),c(C,null,S(e(T),l=>(s(),I(b,{key:l.value,class:m(["rounded-tag max-w-full",{"!my-0":!e(h)||e(h)===1}]),color:l.color},{default:o(()=>[f("span",{style:g({color:("getSelectTypeOptionTextColor"in t?t.getSelectTypeOptionTextColor:e(j))(l.color)}),class:m({"text-sm":e(_),"text-small":!e(_)})},[p(n,{class:"truncate max-w-full","show-on-truncate-only":""},{title:o(()=>[B(w(l.title),1)]),default:o(()=>[f("span",ee,w(l.title),1)]),_:2},1024)],6)]),_:2},1032,["class","color"]))),128))],4))],2)}}}),re=Object.assign(G(te,[["__scopeId","data-v-aed25c9b"]]),{__name:"CellMultiSelectReadonly"});export{re as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as Z,e as R,a7 as D,N as ee,g as s,o as l,j as r,k as y,aT as se,h as i,Y as te,l as S,t as U,w as f,ac as le,ab as ae,F as m,R as h,m as J,f as p,au as P,aJ as T,_ as oe,a3 as ne,p as k,q as g,v as L}from"./C6LKOky9.js";import"./DaJ3iJwN.js";import{I as re}from"./BAPIzECJ.js";import{F as ie}from"./1QOSI9Cg.js";import{_ as pe}from"./R1OTc6xI.js";import{_ as ce}from"./BPYV7pHx.js";import{_ as ue}from"./BMp_dzM0.js";import{_ as de}from"./D4ugt6Ul.js";import"./DPq-K6KH.js";import"./BQQOEPN4.js";import"./DqyG-W75.js";import"./CVQmbhK4.js";import"./B8LajyGq.js";const _e={key:0,class:"flex flex-row w-full justify-center items-center h-52"},ye={key:1,class:"flex flex-col"},fe={class:"w-full relative"},ve={class:"flex flex-row justify-center pb-4 mb-2 border-b-1 w-full gap-x-1"},me=["alt","src"],he={class:"font-semibold text-lg"},ke={class:"absolute -right-2 -top-0.5"},ge={key:0,class:"flex flex-row justify-center"},be={class:"text-center font-normal mb-2"},xe={key:0,class:"text-red-600"},we={key:4,class:"absolute flex flex-col justify-start mt-2 -right-6 top-0"},Ce=["colspan"],Se={class:"flex flex-row space-x-4 justify-center mt-4"},Ue=Z({__name:"AppInstall",props:{id:{}},emits:["saved","close"],setup(N,{emit:V}){const j=V,{$api:b}=R(),q=k(),{t:x}=D(),a=k(null),n=k({}),w=k(!0),_=k(null),E={labelCol:{span:14,pull:4},wrapperCol:{span:20,pull:4}},z=()=>n.value.push({}),Y=async()=>{_.value="save";try{await q.value?.validateFields(),await b.plugin.update(N.id,{input:JSON.stringify(n.value),active:!0}),j("saved"),g.success(a.value?.formDetails.msgOnInstall||x("msg.success.pluginSettingsSaved"))}catch(o){g.error(await L(o))}finally{_.value=null}},G=async()=>{_.value="test";try{a.value&&(await b.plugin.test({input:JSON.stringify(n.value),title:a.value.title,category:a.value.category})?g.success(x("msg.success.pluginTested")):g.info(x("msg.info.invalidCredentials")))}catch(o){g.error(await L(o))}finally{_.value=null}},H=async o=>{switch(o){case"save":await Y();break;case"test":await G();break}},K=async()=>{try{w.value=!0;const o=await b.plugin.read(N.id),v=JSON.parse(o.input_schema??"{}"),C=v.array?[{}]:{},d=typeof o.input=="string"?JSON.parse(o.input):C;"secure"in d&&typeof d.secure=="string"&&(d.secure=d.secure==="true"),a.value={...o,formDetails:v,parsedInput:d},n.value=a.value.parsedInput}catch(o){console.log(o)}finally{w.value=!1}},Q=o=>n.value.splice(o,1);return ee(async()=>{a.value||await K()}),(o,v)=>{const C=se,d=le,M=ae,$=ce,A=ue,F=de,I=re,B=pe,W=oe,X=ie;return s(w)?(l(),r("div",_e,[y(C,{size:"large"})])):(l(),r("div",ye,[i("div",fe,[i("div",ve,[s(a).logo?(l(),r("div",{key:0,class:te(["mr-1 flex items-center justify-center",[s(a).title==="SES"?"p-2 bg-[#242f3e]":""]])},[i("img",{alt:s(a).title||"plugin",src:s(a).logo,class:"h-6"},null,8,me)],2)):S("",!0),i("span",he,U(s(a).formDetails.title),1)]),i("div",ke,[y(M,{type:"text",class:"!rounded-md mr-1",onClick:v[0]||(v[0]=e=>j("close"))},{icon:f(()=>[y(d,{class:"flex mx-auto"})]),_:1})])]),y(X,ne({ref_key:"formRef",ref:q},s(a)?.formDetails.array?{}:E,{model:s(n),class:"mx-4 mt-3"}),{default:f(()=>[s(a).formDetails.array?(l(),r("div",ge,[i("table",null,[i("thead",null,[i("tr",null,[(l(!0),r(m,null,h(s(a).formDetails.items,(e,c)=>(l(),r("th",{key:c},[i("div",be,[J(U(e.label)+" ",1),e.required?(l(),r("span",xe,"*")):S("",!0)])]))),128))])]),i("tbody",null,[(l(!0),r(m,null,h(s(a).parsedInput,(e,c)=>(l(),r("tr",{key:c},[(l(!0),r(m,null,h(s(a).formDetails.items,(t,O)=>(l(),r("td",{key:O,class:"px-2"},[y(B,{class:"relative mb-3",name:[`${c}`,t.key],rules:[{required:t.required,message:`${t.label} is required`}]},{default:f(()=>[t.type==="Password"?(l(),p($,{key:0,value:e[t.key],"onUpdate:value":u=>e[t.key]=u,placeholder:t.placeholder},null,8,["value","onUpdate:value","placeholder"])):t.type==="LongText"?(l(),p(A,{key:1,value:e[t.key],"onUpdate:value":u=>e[t.key]=u,placeholder:t.placeholder},null,8,["value","onUpdate:value","placeholder"])):t.type==="Checkbox"?(l(),p(F,{key:2,value:e[t.key],"onUpdate:value":u=>e[t.key]=u,placeholder:t.placeholder},null,8,["value","onUpdate:value","placeholder"])):(l(),p(I,{key:3,value:e[t.key],"onUpdate:value":u=>e[t.key]=u,placeholder:t.placeholder},null,8,["value","onUpdate:value","placeholder"])),c!==0&&O===s(a).formDetails.items.length-1?(l(),r("div",we,[(l(),p(P(("iconMap"in o?o.iconMap:s(T)).delete),{class:"hover:text-red-400 cursor-pointer",onClick:u=>Q(c)},null,8,["onClick"]))])):S("",!0)]),_:2},1032,["name","rules"])]))),128))]))),128))]),i("tfoot",null,[i("tr",null,[i("td",{colspan:s(a).formDetails.items.length,class:"text-center"},[y(M,{type:"default",class:"!bg-gray-100 rounded-md border-none mr-1",onClick:z},{icon:f(()=>[(l(),p(P(("iconMap"in o?o.iconMap:s(T)).plus),{class:"flex mx-auto"}))]),_:1})],8,Ce)])])])])):(l(!0),r(m,{key:1},h(s(a).formDetails.items,(e,c)=>(l(),p(B,{key:c,label:e.label,name:e.key,rules:[{required:e.required,message:`${e.label} is required`}]},{default:f(()=>[e.type==="Password"?(l(),p($,{key:0,value:s(n)[e.key],"onUpdate:value":t=>s(n)[e.key]=t,placeholder:e.placeholder},null,8,["value","onUpdate:value","placeholder"])):e.type==="LongText"?(l(),p(A,{key:1,value:s(n)[e.key],"onUpdate:value":t=>s(n)[e.key]=t,placeholder:e.placeholder},null,8,["value","onUpdate:value","placeholder"])):e.type==="Checkbox"?(l(),p(F,{key:2,checked:s(n)[e.key],"onUpdate:checked":t=>s(n)[e.key]=t,placeholder:e.placeholder},null,8,["checked","onUpdate:checked","placeholder"])):(l(),p(I,{key:3,value:s(n)[e.key],"onUpdate:value":t=>s(n)[e.key]=t,placeholder:e.placeholder},null,8,["value","onUpdate:value","placeholder"]))]),_:2},1032,["label","name","rules"]))),128)),i("div",Se,[(l(!0),r(m,null,h(s(a).formDetails.actions,(e,c)=>(l(),p(W,{key:c,class:"!px-5",loading:s(_)===e.key,type:e.key==="save"?"primary":"default",disabled:!!s(_),onClick:t=>H(e.key)},{default:f(()=>[J(U(e.label),1)]),_:2},1032,["loading","type","disabled","onClick"]))),128))])]),_:1},16,["model"])]))}}}),Le=Object.assign(Ue,{__name:"DashboardSettingsAppStoreAppInstall"});export{Le as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{gj as s}from"./C6LKOky9.js";const t=s("/img/ghost.svg");export{t as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as C,c as w,a9 as k,c2 as N,o as B,f as D,c3 as S,g as l,w as c,U as u,ad as s,x as v,p as h}from"./C6LKOky9.js";const x=C({__name:"Dropdown",props:{trigger:{default:()=>["click"]},visible:{type:Boolean,default:void 0},overlayClassName:{default:void 0},overlayStyle:{default:()=>({})},disabled:{type:Boolean,default:!1},placement:{default:"bottomLeft"},autoClose:{type:Boolean,default:!0}},emits:["update:visible"],setup(t,{emit:p}){const o=t,r=p,f=s(o,"trigger"),n=s(o,"overlayClassName"),m=s(o,"placement"),y=s(o,"overlayStyle"),i=v(()=>o.autoClose),a=w(o,"visible",r),b=v(()=>{let e="nc-dropdown bg-white rounded-lg border-1 border-gray-200 shadow-lg";return n.value&&(e+=` ${n.value}`),e+=a.value?" active":" ",e});k("Escape",()=>{a.value&&i.value&&(a.value=!1)});const d=h(null);N(d,()=>{i.value&&(a.value=!1)});const g=e=>{a!==void 0?a.value=e:r("update:visible",e)};return(e,R)=>{const _=S;return B(),D(_,{disabled:t.disabled,visible:l(a),placement:l(m),trigger:l(f),"overlay-class-name":l(b),"overlay-style":l(y),"onUpdate:visible":g},{overlay:c(()=>[u(e.$slots,"overlay",{ref_key:"overlayWrapperDomRef",ref:d})]),default:c(()=>[u(e.$slots,"default")]),_:3},8,["disabled","visible","placement","trigger","overlay-class-name","overlay-style"])}}}),$=Object.assign(x,{__name:"NcDropdown"});export{$ as _};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ZEndZd4G.js","./C6LKOky9.js","./entry.B91DZ4_L.css","./DXYCzTQu.js","./BBjHpnli.js","./BMp_dzM0.js","./BAPIzECJ.js","./BQQOEPN4.js","./DqyG-W75.js","./UODVGT7h.js","./B6gtONH_.js","./AppStore.CxFWjIMq.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as $e}from"./Dnl-lxpU.js";import{d as re,o as s,j as m,F as le,g as t,f as $,ao as Te,w as i,h as o,t as c,U as se,p,x as V,u as Le,e as De,aR as Pe,a7 as Ce,k as l,_ as Oe,au as K,aJ as Z,m as M,l as L,Y as Ue,fL as ie,R as xe,i as F,Q as ce,a6 as Me,q as G,v as ee,gY as Ge,gZ as g,c as ye,gI as Re,C as ke,S as Se,a3 as ze,dm as Fe,g_ as Ve,an as Be,a5 as Ne,g$ as qe,eQ as Je,K as Ie,b as We,h0 as He,gA as Ke,aD as be,bd as Qe,aw as Ye,gd as Xe,ax as Ze,ay as et,h1 as ae}from"./C6LKOky9.js";import tt from"./DbjQrFcv.js";import{i as we}from"./vyeUQQMA.js";import{_ as ot}from"./DBm9jeWK.js";import"./DaJ3iJwN.js";import{I as Ee}from"./BAPIzECJ.js";import{_ as nt}from"./JScBkpam.js";import at from"./Btg9ZGuM.js";import{_ as st}from"./N6HuQj9i.js";import{_ as lt}from"./DNCi98wH.js";import{_ as it}from"./CaaS_Qgs.js";import{E as rt,d as ct,P as ut}from"./B3yq-bD6.js";import{U as dt,a as pt}from"./CueCUzRr.js";import{u as mt}from"./CSGuNZ7K.js";import{F as ft}from"./1QOSI9Cg.js";import{_ as _t}from"./R1OTc6xI.js";import"./CB7z8qng.js";import"./B6gtONH_.js";import"./DPq-K6KH.js";import"./BMp_dzM0.js";import"./BQQOEPN4.js";import"./DqyG-W75.js";import"./BPYV7pHx.js";import"./e6uRR2iu.js";import"./BRAK1JSF.js";import"./B8LajyGq.js";import"./UODVGT7h.js";import"./HeP7TKdq.js";import"./Ct4ttr0W.js";import"./DuzBGfJ3.js";import"./CRj3wo_h.js";import"./CVQmbhK4.js";const vt={class:"w-full"},gt={key:1,class:"w-full","data-testid":"truncate-label"},ht=re({__name:"TruncateText",props:{placement:{default:"bottom"},length:{default:20}},setup(f){const u=p(),b=V(()=>u.value?.textContent?.length&&u.value?.textContent?.length>f.length),y=V(()=>u.value?.textContent?.length&&u.value?.textContent.length>f.length?`${u.value?.textContent?.substr(0,f.length-3)}...`:u.value?.textContent);return(a,w)=>{const h=Te;return s(),m(le,null,[t(b)?(s(),$(h,{key:0,placement:f.placement},{title:i(()=>[se(a.$slots,"default")]),default:i(()=>[o("div",vt,c(t(y)),1)]),_:3},8,["placement"])):(s(),m("div",gt,[se(a.$slots,"default")])),o("div",{ref_key:"text",ref:u,class:"hidden"},[se(a.$slots,"default")],512)],64)}}}),yt=Object.assign(ht,{__name:"GeneralTruncateText"}),bt=""+new URL("api-tokens.DEwwjpuX.png",import.meta.url).href,xt={class:"flex flex-col"},kt={"data-rec":"true"},wt={class:"nc-content-max-w p-6 h-[calc(100vh_-_100px)] flex flex-col gap-6 overflow-auto nc-scrollbar-thin"},$t={class:"max-w-202 mx-auto h-full w-full","data-testid":"nc-token-list"},Tt={class:"flex gap-4 items-baseline justify-between"},Ct={class:"text-xl text-left font-bold my-0","data-rec":"true"},It={class:"hidden md:block","data-rec":"true"},Et={class:"flex items-center justify-center md:hidden","data-rec":"true"},Mt={"data-rec":"true"},St={key:0,class:"mt-6 h-full max-h-[calc(100%-80px)]"},Nt={class:"h-full w-full overflow-y-auto rounded-md"},Ot={class:"flex w-full pl-5 bg-gray-50 border-1 rounded-t-md"},Ut={class:"py-3.5 text-gray-500 font-medium text-3.5 w-2/9","data-rec":"true"},At={class:"py-3.5 text-gray-500 font-medium text-3.5 w-2/9 text-start","data-rec":"true"},jt={class:"py-3.5 text-gray-500 font-medium text-3.5 w-3/9 text-start","data-rec":"true"},Lt={class:"py-3.5 pl-19 text-gray-500 font-medium text-3.5 w-2/9 text-start","data-rec":"true"},Dt={class:"nc-scrollbar-md !overflow-y-auto flex flex-col h-[calc(100%-52px)]"},Pt={key:0},Gt={class:"flex w-full"},Rt={key:0,class:"text-red-500 text-xs font-light mt-1.5 ml-1","data-rec":"true"},zt={class:"flex gap-2 justify-start"},Ft={key:1,class:"border-l-1 border-r-1 border-b-1 rounded-b-md justify-center flex items-center"},Vt={class:"text-black font-bold text-3.5 text-start w-2/9"},Bt={class:"text-gray-500 font-medium text-3.5 text-start w-2/9"},qt={class:"text-gray-500 font-medium text-3.5 text-start w-3/9"},Jt={key:1},Wt={class:"flex justify-end items-center gap-3 pr-5 text-gray-500 font-medium text-3.5 w-2/9"},Ht={key:1,class:"max-w-[40rem] border px-3 py-6 flex flex-col items-center justify-center gap-6 text-center"},Kt={class:"text-2xl text-gray-800 font-bold"},Qt={class:"text-sm text-gray-700"},Yt={class:"hidden md:block","data-rec":"true"},Xt={class:"flex items-center justify-center md:hidden","data-rec":"true"},Zt={key:2,class:"flex items-center justify-center mt-5"},eo={class:"flex flex-row items-center py-2.25 px-2.5 bg-gray-50 rounded-lg text-gray-700 mb-4"},to={class:"capitalize text-ellipsis overflow-hidden select-none w-full pl-1.75",style:{wordBreak:"keep-all",whiteSpace:"nowrap",display:"inline"}},oo=re({__name:"Token",setup(f){const{api:u,isLoading:b}=Le(),{$e:y}=De(),{copy:a}=Pe(),{t:w}=Ce(),h=p([]),S=p([]),N=Me({isShow:!1,id:""}),_=p(1),T=p(!1),O=p(10),E=w("labels.token"),C=p({description:E}),k=p(""),d=Me({total:0,pageSize:10}),D=p(!0),B=()=>{C.value.description=Ge([...S.value.map(e=>e?.description||"")],E)},Q=e=>{N.isShow&&N.id===e?(N.isShow=!1,N.id=""):(N.isShow=!0,N.id=e)},Y=async(e=d.total)=>{try{const r=await u.orgTokens.list({query:{limit:e}});if(!r)return;S.value=r.list,B()}catch(r){G.error(await ee(r))}},U=(e,r)=>{switch(e){case"add":{S.value=[...S.value,r];break}case"delete":{S.value=[...S.value.filter(j=>j.token!==r.token)];break}}B()},R=async(e=_.value,r=O.value,j=!1)=>{_.value=e;try{const z=await u.orgTokens.list({query:{limit:r,offset:k.value.length===0?(e-1)*r:0}});if(!z){D.value=!1;return}d.total=z.pageInfo.totalRows??0,d.pageSize=10,h.value=z.list,j&&(T.value=!1,C.value={}),S.value.length||await Y(d.total)}catch(z){G.error(await ee(z))}finally{D.value&&(D.value=!1)}};R();const A=p(!1),v=p(""),J=p(""),P=p(!1),ue=async e=>{try{const r=S.value.find(j=>j.token===e)?.id;await u.orgTokens.delete(r),await R(),U("delete",{token:e}),!h.value.length&&_.value!==1&&(_.value--,R(_.value))}catch(r){G.error(await ee(r))}y("a:account:token:delete"),A.value=!1,J.value="",v.value=""},te=e=>e?e.length<255:!1,oe=async()=>{if(P.value=te(C.value.description),!!P.value)try{const e=await u.orgTokens.create(C.value);await R(_.value,O.value,!0),U("add",e)}catch(e){G.error(await ee(e))}finally{y("a:api-token:generate")}},de=async e=>{if(e)try{await a(e),G.info(w("msg.info.copiedToClipboard")),y("c:api-token:copy")}catch(r){G.error(r.message)}},pe=(e,r)=>{J.value=e,v.value=r,A.value=!0},ne=e=>C.value.description===E&&e?.select(),me=V(()=>{const e=C.value.description?.length;if(e){if(e>255)return w("msg.info.tokenNameMaxLength")}else return w("msg.info.tokenNameNotEmpty")}),n=()=>{T.value=!1,P.value=!1};return(e,r)=>{const j=ot,z=$e,W=Oe,H=Te,fe=Ee,_e=ie,X=yt,ve=nt,ge=ce,he=tt;return s(),m("div",xt,[l(z,null,{icon:i(()=>[l(j,{class:"flex-none text-gray-700 h-5 w-5"})]),title:i(()=>[o("span",kt,c(e.$t("title.tokens")),1)]),_:1}),o("div",wt,[o("div",$t,[o("div",Tt,[o("h6",Ct,c(e.$t("title.apiTokens")),1),t(h).length?(s(),$(H,{key:0,disabled:!(("isEeUI"in e?e.isEeUI:t(we))&&t(h).length)},{title:i(()=>[M(c(e.$t("labels.tokenLimit")),1)]),default:i(()=>[l(W,{disabled:t(T)||("isEeUI"in e?e.isEeUI:t(we))&&t(h).length,class:"!rounded-md","data-testid":"nc-token-create",size:"middle",type:"primary",tooltip:"bottom",onClick:r[0]||(r[0]=x=>T.value=!0)},{default:i(()=>[o("span",It,c(e.$t("title.addNewToken")),1),o("span",Et,[(s(),$(K(("iconMap"in e?e.iconMap:t(Z)).plus)))])]),_:1},8,["disabled"])]),_:1},8,["disabled"])):L("",!0)]),o("span",Mt,c(e.$t("msg.apiTokenCreate")),1),!t(D)&&(t(h).length||t(T))?(s(),m("div",St,[o("div",Nt,[o("div",Ot,[o("span",Ut,c(e.$t("title.tokenName")),1),o("span",At,c(e.$t("title.creator")),1),o("span",jt,c(e.$t("labels.token")),1),o("span",Lt,c(e.$t("labels.actions")),1)]),o("div",Dt,[t(T)?(s(),m("div",Pt,[o("div",{class:Ue(["flex gap-5 px-3 py-2.5 text-gray-500 font-medium text-3.5 w-full nc-token-generate border-b-1 border-l-1 border-r-1",{"rounded-b-md":!t(h).length}])},[o("div",Gt,[l(fe,{ref:ne,value:t(C).description,"onUpdate:value":r[1]||(r[1]=x=>t(C).description=x),"default-value":t(E),type:"text",class:"!rounded-lg !py-1",placeholder:"Token Name","data-testid":"nc-token-input",disabled:t(b),onPressEnter:oe},null,8,["value","default-value","disabled"]),t(P)?L("",!0):(s(),m("span",Rt,c(t(me)),1))]),o("div",zt,[t(b)?L("",!0):(s(),$(W,{key:0,type:"secondary",size:"small",onClick:n},{default:i(()=>[M(c(e.$t("general.cancel")),1)]),_:1})),l(W,{type:"primary",size:"sm",loading:t(b),"data-testid":"nc-token-save-btn",onClick:oe},{default:i(()=>[M(c(e.$t("general.save")),1)]),_:1},8,["loading"])])],2)])):L("",!0),!t(h).length&&!t(T)?(s(),m("div",Ft,[l(_e,{image:("Empty"in e?e.Empty:t(ie)).PRESENTED_IMAGE_SIMPLE,description:e.$t("labels.noToken")},null,8,["image","description"])])):L("",!0),(s(!0),m(le,null,xe(t(h),x=>(s(),m("div",{key:x.id,"data-testid":"nc-token-list",class:"flex pl-5 py-3 justify-between token items-center border-l-1 border-r-1 border-b-1"},[o("span",Vt,[l(X,{placement:"top",length:20},{default:i(()=>[M(c(x.description),1)]),_:2},1024)]),o("span",Bt,[l(X,{placement:"top",length:20},{default:i(()=>[M(c(x.created_by),1)]),_:2},1024)]),o("span",qt,[x.token===t(N).id&&t(N).isShow?(s(),$(X,{key:0,placement:"top",length:29},{default:i(()=>[M(c(x.token),1)]),_:2},1024)):(s(),m("span",Jt,"************************************"))]),o("div",Wt,[l(H,{placement:"top"},{title:i(()=>[M(c(e.$t("labels.showOrHide")),1)]),default:i(()=>[(s(),$(K(("iconMap"in e?e.iconMap:t(Z)).eye),{class:"nc-toggle-token-visibility hover::cursor-pointer w-h-4 mb-[1.8px]",onClick:I=>Q(x.token)},null,8,["onClick"]))]),_:2},1024),l(H,{placement:"top"},{title:i(()=>[M(c(e.$t("general.copy")),1)]),default:i(()=>[(s(),$(K(("iconMap"in e?e.iconMap:t(Z)).copy),{class:"hover::cursor-pointer w-4 h-4 text-gray-600",onClick:I=>de(x.token)},null,8,["onClick"]))]),_:2},1024),l(H,{placement:"top"},{title:i(()=>[M(c(e.$t("general.delete")),1)]),default:i(()=>[(s(),$(K(("iconMap"in e?e.iconMap:t(Z)).delete),{"data-testid":"nc-token-row-action-icon",class:"nc-delete-icon hover::cursor-pointer w-4 h-4",onClick:I=>pe(x.token,x.description)},null,8,["onClick"]))]),_:2},1024)])]))),128))])])])):!t(D)&&!t(h).length&&!t(T)?(s(),m("div",Ht,[r[6]||(r[6]=o("img",{src:bt,class:"!w-[22rem] flex-none"},null,-1)),o("div",Kt,c(e.$t("placeholder.noTokenCreated")),1),o("div",Qt,c(e.$t("placeholder.noTokenCreatedLabel")),1),l(W,{class:"!rounded-lg !py-3 !h-10","data-testid":"nc-token-create",type:"primary",onClick:r[2]||(r[2]=x=>T.value=!0)},{default:i(()=>[o("span",Yt,c(e.$t("title.createNewToken")),1),o("span",Xt,[(s(),$(K(("iconMap"in e?e.iconMap:t(Z)).plus)))])]),_:1})])):L("",!0),t(d).total>10?(s(),m("div",Zt,[l(ve,{current:t(_),"onUpdate:current":r[3]||(r[3]=x=>F(_)?_.value=x:null),total:t(d).total,"show-less-items":"",onChange:r[4]||(r[4]=x=>R(t(_),t(O)))},null,8,["current","total"])])):L("",!0)]),l(he,{visible:t(A),"onUpdate:visible":r[5]||(r[5]=x=>F(A)?A.value=x:null),"entity-name":e.$t("labels.token"),"on-delete":()=>ue(t(J))},{"entity-preview":i(()=>[o("span",null,[o("div",eo,[l(ge,{icon:"key",class:"nc-view-icon"}),o("div",to,c(t(v)),1)])])]),_:1},8,["visible","entity-name","on-delete"])])])}}}),no=Object.assign(oo,{__name:"AccountToken"}),ao={class:"pt-2 h-[320px]"},so={class:"tab-title"},lo={key:0,class:"h-full overflow-auto nc-scrollbar-thin flex flex-col"},io={class:"!sticky top-0 flex gap-2 bg-white px-2 py-2"},ro={key:0,class:"grid px-3 auto-rows-max pb-2 gap-3 grid-cols-10"},co={key:1,class:"flex-1 grid place-items-center"},uo={key:1,class:"p-2 flex flex-col gap-2.5 h-full"},po={key:0,class:"flex items-center gap-4"},mo={class:"h-12 w-12 p-2"},fo={class:"flex-1 w-[calc(100%_-_108px)]"},_o={class:"text-nc-content-gray-muted text-sm"},vo={class:"flex-1"},go={class:"ant-upload-drag-icon !text-nc-content-gray-muted !mb-2 text-center"},ho={key:0,class:"h-6 grid place-items-center"},yo={key:2,class:"h-full"},bo=re({__name:"IconSelector",props:{icon:{},iconType:{},imageCropperData:{},tabOrder:{default:()=>[g.ICON,g.IMAGE,g.EMOJI]},defaultActiveTab:{default:g.ICON}},emits:["update:icon","update:iconType","update:imageCropperData","submit"],setup(f,{emit:u}){const b=f,y=u,a=ye(b,"icon",y),w=ye(b,"iconType",y),h=ye(b,"imageCropperData",y),{t:S}=Ce(),{getPossibleAttachmentSrc:N}=Re(),_=p(!1),T=p(!1),O=p(),E=p(""),C=p(b.defaultActiveTab),k=V({get:()=>C.value,set:n=>{E.value="",C.value=n,Se(()=>{ne()})}}),d=V(()=>qe(E.value)),D=n=>{a.value=n,w.value=g.ICON,y("submit"),_.value=!1},B=(n=!0)=>{a.value="",w.value="",y("submit"),n&&(_.value=!1)},Q=new rt(ct,{emojisToShowFilter:n=>!(Number(n.added_in)>=14)});function Y(n){a.value=n.native,w.value=g.EMOJI,y("submit"),_.value=!1}const U=p([]),R=async n=>{a.value=n,w.value=g.IMAGE,y("submit"),_.value=!1},A=p(!1),v=p(!1),J=V(()=>a.value&&w.value===g.IMAGE?N(a.value):[]),P=p(!1);function ue(n){n.map(e=>G.error(`${S("msg.error.fileUploadFailed")} ${e.name}`))}const te=n=>{const e=n.file.status;if(e==="uploading"){P.value=!0;return}if(e==="done"&&n.file.originFileObj instanceof File){h.value.imageConfig.src&&URL.revokeObjectURL(h.value.imageConfig.src);const r=URL.createObjectURL(n.file.originFileObj);h.value.imageConfig={src:r,type:n.file.originFileObj.type,name:n.file.originFileObj.name},P.value=!1,v.value=!0;return}e==="error"&&(P.value=!1,G.error(`${S("msg.error.fileUploadFailed")} ${n.file.name}`))},oe=n=>{U.value.forEach(e=>{e.uid===n.file.uid&&(e.status="done",te({file:e,fileList:U.value}))}),n.onSuccess()},de=n=>{const e=n.size/1024/1024>2;return e&&G.error(`File ${n.name} is too big. The accepted file size is less than 2MB.`),!e||pt.LIST_IGNORE},pe=n=>{!n&&A.value&&(_.value=!0)};function ne(){k.value===g.EMOJI?setTimeout(()=>{const n=document.querySelector(".emoji-mart-search input");n&&(n.focus(),n.select())}):k.value===g.ICON&&setTimeout(()=>{Je(O.value)?(O.value?.[0]?.focus(),O.value?.[0]?.select()):(O.value?.focus(),O.value?.select())},250)}const me=V(()=>[{title:"Icon",value:g.ICON,icon:"ncPlaceholderIcon"},{title:"Upload",value:g.IMAGE,icon:"ncUpload"},{title:"Emoji",value:g.EMOJI,icon:"ncSmile"}].sort((n,e)=>b.tabOrder.indexOf(n.value)-b.tabOrder.indexOf(e.value)));return ke(v,n=>{n?A.value=!0:setTimeout(()=>{A.value=!1},500)}),ke(_,n=>{n&&Se(()=>{ne()})}),(n,e)=>{const r=Oe,j=ce,z=Ee,W=ie,H=Ve,fe=Te,_e=Be,X=dt,ve=Fe,ge=st,he=lt,x=it;return s(),m("div",null,[l(he,ze(n.$attrs,{visible:t(_),"onUpdate:visible":e[4]||(e[4]=I=>F(_)?_.value=I:null),"overlay-class-name":"w-[432px]",class:"nc-icon-selector",onVisibleChange:pe}),{overlay:i(()=>[o("div",ao,[l(ge,{activeKey:t(k),"onUpdate:activeKey":e[3]||(e[3]=I=>F(k)?k.value=I:null),class:"nc-icon-selector-dropdown-tabs h-full"},{leftExtra:i(()=>[...e[6]||(e[6]=[o("div",{class:"w-0"},null,-1)])]),rightExtra:i(()=>[o("div",null,[l(r,{size:"xs",type:"text",disabled:!t(a),onClick:Ne(B,["stop"])},{default:i(()=>[...e[7]||(e[7]=[M(" Remove ",-1)])]),_:1},8,["disabled"])])]),default:i(()=>[(s(!0),m(le,null,xe(t(me),I=>(s(),$(ve,{key:I.value,class:"w-full",disabled:t(T)},{tab:i(()=>[o("div",so,[l(j,{icon:I.icon,class:"flex-none"},null,8,["icon"]),M(" "+c(I.title),1)])]),default:i(()=>[I.value===t(g).ICON?(s(),m("div",lo,[o("div",io,[l(z,{ref_for:!0,ref_key:"inputRef",ref:O,value:t(E),"onUpdate:value":e[0]||(e[0]=q=>F(E)?E.value=q:null),placeholder:n.$t("placeholder.searchIcons"),class:"nc-dropdown-search-unified-input z-10"},null,8,["value","placeholder"])]),t(d).length?(s(),m("div",ro,[(s(!0),m(le,null,xe(t(d),({icon:q,name:Ae},je)=>(s(),$(K(q),{key:je,icon:q,class:"w-6 hover:bg-gray-100 cursor-pointer rounded p-1 text-gray-700 h-6",onClick:qo=>D(Ae)},null,8,["icon","onClick"]))),128))])):(s(),m("div",co,[l(W,{image:("Empty"in n?n.Empty:t(ie)).PRESENTED_IMAGE_SIMPLE,description:n.$t("labels.noData"),class:"!my-0"},null,8,["image","description"])]))])):L("",!0),I.value===t(g).IMAGE?(s(),m("div",uo,[t(J).length?(s(),m("div",po,[o("div",mo,[l(H,{srcs:t(J),class:"flex-none !object-contain max-h-full max-w-full !m-0 rounded-lg"},null,8,["srcs"])]),o("div",fo,[l(fe,{class:"truncate flex-1","show-on-truncate-only":""},{title:i(()=>[M(c(t(a)?.title||"Workspace logo"),1)]),default:i(()=>[M(" "+c(t(a)?.title||"Workspace logo"),1)]),_:1}),o("div",_o,c(t(a)?.size?`${(t(a)?.size/1048576).toFixed(2)} MB`:"0 MB"),1)]),o("div",null,[l(r,{"icon-only":"",type:"text",size:"xs",class:"!px-1",onClick:e[1]||(e[1]=q=>B(!1))},{icon:i(()=>[l(j,{icon:"deleteListItem"})]),_:1})])])):L("",!0),o("div",vo,[l(X,{fileList:t(U),"onUpdate:fileList":e[2]||(e[2]=q=>F(U)?U.value=q:null),name:"file",accept:"image/*",disabled:t(P),multiple:!1,"show-upload-list":!1,class:"nc-icon-selector-image-uploader","custom-request":oe,"before-upload":de,onChange:te,onReject:ue},{default:i(()=>[o("div",go,[t(P)?(s(),m("div",ho,[l(_e,{size:"regular"})])):(s(),$(j,{key:1,icon:"upload",class:"h-6 w-6"}))]),e[8]||(e[8]=o("div",{class:"ant-upload-text !text-nc-content-gray-muted !text-sm"},[M(" Drop your icon here or "),o("span",{class:"text-nc-content-brand hover:underline"},"browse file"),o("div",{class:"mt-1"},"Supported: image/*")],-1))]),_:1},8,["fileList","disabled"])])])):L("",!0),I.value===t(g).EMOJI?(s(),m("div",yo,[l(t(ut),{data:t(Q),native:!0,"show-preview":!1,color:"#40444D","auto-focus":!0,"show-categories":!1,i18n:{search:"Search emoji"},class:"nc-icon-selector-emoji-picker",onSelect:Y,onClick:Ne(()=>{},["stop"])},null,8,["data"])])):L("",!0)]),_:2},1032,["disabled"]))),128))]),_:1},8,["activeKey"])])]),default:i(()=>[se(n.$slots,"default",{isOpen:t(_),icon:t(a),iconType:t(w)},void 0,!0)]),_:3},16,["visible"]),l(x,{"show-cropper":t(v),"onUpdate:showCropper":e[5]||(e[5]=I=>F(v)?v.value=I:null),"cropper-config":t(h).cropperConfig,"image-config":t(h).imageConfig,"upload-config":t(h).uploadConfig,onSubmit:R},null,8,["show-cropper","cropper-config","image-config","upload-config"])])}}}),xo=Object.assign(Ie(bo,[["__scopeId","data-v-40ce2188"]]),{__name:"GeneralIconSelector"}),ko={class:"flex flex-col"},wo={"data-rec":"true"},$o={class:"nc-content-max-w p-6 h-[calc(100vh_-_100px)] flex flex-col gap-6 overflow-auto nc-scrollbar-thin"},To={class:"flex flex-col w-150 mx-auto"},Co={class:"mt-5 border-1 rounded-2xl border-gray-200 p-6"},Io={class:"font-bold text-base text-nc-content-gray-emphasis mb-2","data-rec":"true"},Eo={class:"flex text-gray-500","data-rec":"true"},Mo={class:"flex gap-4 mt-6"},So={class:"flex-1 flex flex-col gap-4"},No={class:"text-gray-800 mb-2","data-rec":"true"},Oo={class:"text-gray-800 mb-2","data-rec":"true"},Uo=re({__name:"Profile",setup(f){const{user:u}=We(),{t:b}=Ce(),y=p(!1),a=p({title:"",email:"",icon:"",iconType:""}),{updateUserProfile:w}=mt(),h=p(),S={title:[{required:!0,message:b("msg.error.nameRequired")},{min:2,message:b("msg.error.nameMinLength")},{max:60,message:b("msg.error.nameMaxLength")}]},N=async()=>{try{return await h.value.validate()}catch{return!1}},_=()=>({...u.value?.meta?be(u.value.meta):{},icon:a.value.iconType===g.IMAGE&&Xe(a.value.icon)?{...a.value.icon,data:""}:a.value.icon,iconType:a.value.iconType}),T=async(k=!1)=>{if(!k){if(!((u.value?.display_name??"")!==a.value.title))return;if(await N())y.value=!1;else{y.value=!0;return}}try{await w({attrs:{...k?{meta:_()}:{display_name:a.value?.title}}})}catch(d){console.error(d),G.error(await ee(d))}},O=Ye(async()=>{await T()},250,{maxWait:2e3}),E=V(()=>u.value?.email),C=p({cropperConfig:{stencilProps:{aspectRatio:1,fillDefault:!0,circlePreview:!0},minHeight:150,minWidth:150},imageConfig:{src:"",type:"image",name:"icon"},uploadConfig:{path:[Ke,"profile","icon"].join("/"),scope:He.PROFILEPICS,maxFileSize:2*1024*1024}});return ke(u,()=>{u.value&&(y.value||(a.value.title=u.value.display_name??""),a.value.email=u.value.email,a.value.icon=be(u.value.meta)?.icon??"",a.value.iconType=be(u.value.meta)?.iconType??"")},{immediate:!0}),(k,d)=>{const D=ce,B=$e,Q=Qe,Y=xo,U=Ee,R=_t,A=ft;return s(),m("div",ko,[l(B,null,{icon:i(()=>[l(D,{class:"flex-none !h-5 !w-5",icon:"user"})]),title:i(()=>[o("span",wo,c(k.$t("labels.profile")),1)]),_:1}),o("div",$o,[o("div",To,[o("div",Co,[o("div",null,[o("div",Io,c(k.$t("labels.accountDetails")),1),o("div",Eo,c(k.$t("labels.controlAppearance")),1)]),l(A,{ref_key:"formValidator",ref:h,layout:"vertical","no-style":"",model:t(a),class:"w-full",onFinish:T},{default:i(()=>[o("div",Mo,[o("div",null,[l(Y,{icon:t(a).icon,"onUpdate:icon":d[0]||(d[0]=v=>t(a).icon=v),"icon-type":t(a).iconType,"onUpdate:iconType":d[1]||(d[1]=v=>t(a).iconType=v),"image-cropper-data":t(C),"onUpdate:imageCropperData":d[2]||(d[2]=v=>F(C)?C.value=v:null),"default-active-tab":t(g).IMAGE,"tab-order":[t(g).IMAGE,t(g).ICON,t(g).EMOJI],onSubmit:d[3]||(d[3]=()=>T(!0))},{default:i(({isOpen:v})=>[o("div",{class:Ue(["border-1 w-26.25 h-26.25 flex-none rounded-full overflow-hidden transition-all duration-300 cursor-pointer",{"border-transparent":!v&&t(a).iconType===t(g).IMAGE,"border-nc-gray-medium":!v&&t(a).iconType!==t(g).IMAGE,"border-primary shadow-selected":v}])},[l(Q,{size:"xlarge",user:t(u),class:"!w-full !h-full !min-w-full select-none cursor-pointer"},null,8,["user"])],2)]),_:1},8,["icon","icon-type","image-cropper-data","default-active-tab","tab-order"])]),o("div",So,[o("div",null,[o("div",No,c(k.$t("general.name")),1),l(R,{name:"title",rules:S.title,class:"!my-0"},{default:i(()=>[l(U,{value:t(a).title,"onUpdate:value":[d[4]||(d[4]=v=>t(a).title=v),t(O)],class:"w-full !rounded-lg !px-4 h-10",placeholder:k.$t("general.name"),"data-testid":"nc-account-settings-rename-input"},null,8,["value","placeholder","onUpdate:value"])]),_:1},8,["rules"])]),o("div",null,[o("div",Oo,c(k.$t("labels.accountEmailID")),1),l(U,{value:t(E),"onUpdate:value":d[5]||(d[5]=v=>F(E)?E.value=v:null),class:"w-full !rounded-lg !px-4 h-10",placeholder:k.$t("labels.email"),disabled:"","data-testid":"nc-account-settings-email-input"},null,8,["value","placeholder"])])])])]),_:1},8,["model"])])])])])}}}),Ao=Object.assign(Uo,{__name:"AccountProfile"}),jo=Ze(()=>et(()=>import("./ZEndZd4G.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url).then(f=>f.default||f)),Lo={},Do={class:"flex flex-col"},Po={"data-rec":"true"},Go={class:"nc-content-max-w p-6 h-[calc(100vh_-_100px)] flex flex-col gap-6 overflow-auto nc-scrollbar-thin"};function Ro(f,u){const b=ce,y=$e,a=jo;return s(),m("div",Do,[l(y,null,{icon:i(()=>[l(b,{icon:"appStore",class:"flex-none text-gray-700 text-[20px] h-5 w-5"})]),title:i(()=>[o("span",Po,c(f.$t("title.appStore")),1)]),_:1}),o("div",Go,[o("div",null,[l(a)])])])}const zo=Object.assign(Ie(Lo,[["render",Ro]]),{__name:"AccountAppStore"}),Fo={},Vo={key:4};function Bo(f,u){const b=no,y=at,a=Ao,w=zo;return s(),m("div",null,[(f._.provides[ae]||f.$route).params.page==="tokens"?(s(),$(b,{key:0})):(f._.provides[ae]||f.$route).params.page==="setup"?(s(),$(y,{key:1})):(f._.provides[ae]||f.$route).params.page==="profile"?(s(),$(a,{key:2})):(f._.provides[ae]||f.$route).params.page==="apps"&&!("isEeUI"in f?f.isEeUI:t(we))?(s(),$(w,{key:3})):(s(),m("span",Vo))])}const Cn=Ie(Fo,[["render",Bo]]);export{Cn as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./C6LKOky9.js";const t=""+new URL("no-search-result-found.utg9F49C.png",import.meta.url).href;export{t as _};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SIj5aIMP.js","./C6LKOky9.js","./entry.B91DZ4_L.css","./pKWo-pLV.js","./BRAK1JSF.js","./B8LajyGq.js","./BQQOEPN4.js","./UODVGT7h.js","./DPq-K6KH.js","./DqyG-W75.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{d as Y,a7 as Z,s as ee,y as se,b as te,e as ae,aR as oe,p as g,a$ as y,N as le,x as k,C as ie,S as ne,o as r,f,w as i,h as s,g as a,j as m,t as n,l as I,au as w,aJ as U,k as l,ab as re,a3 as de,F as ce,R as me,bQ as ue,aX as ve,m as M,q as x,v as fe,ax as pe,ay as _e}from"./C6LKOky9.js";import{_ as ye}from"./CB7z8qng.js";import{_ as xe}from"./BUL5W9nB.js";import{u as he}from"./pKWo-pLV.js";import{k as be}from"./C26Qj2a4.js";import{u as ge}from"./BIhGzgWM.js";import{F as S}from"./1QOSI9Cg.js";import"./DaJ3iJwN.js";import{I as ke}from"./BAPIzECJ.js";import{S as we,a as Ue}from"./BRAK1JSF.js";import{_ as Me}from"./B6gtONH_.js";import{_ as $e}from"./R1OTc6xI.js";import"./CVQmbhK4.js";import"./DqyG-W75.js";import"./DPq-K6KH.js";import"./BMp_dzM0.js";import"./BQQOEPN4.js";import"./BPYV7pHx.js";import"./B8LajyGq.js";import"./UODVGT7h.js";const Ce=pe(()=>_e(()=>import("./SIj5aIMP.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url).then(o=>o.default||o)),Te={class:"flex flex-col p-6","data-testid":"invite-user-and-share-base-modal"},Re={class:"flex flex-row justify-between items-center pb-1.5 mb-2 border-b-1 border-gray-100 w-full"},Ee={key:0,class:"select-none font-medium"},je={class:"px-2 mt-1.5"},Ie={key:0,class:"flex flex-col mt-1 border-b-1 pb-5"},Se={class:"flex flex-row items-center pl-1.5 pb-1 h-[1.1rem]"},Be={class:"flex flex-row justify-between items-center py-1"},Fe={class:"flex pl-2 text-green-700 text-xs","data-testid":"invite-modal-invitation-url"},Ve={class:"flex text-xs text-gray-500 mt-2 justify-start ml-2"},Ne={class:"flex flex-row justify-start mt-4 ml-2"},ze={class:"flex flex-row justify-center items-center space-x-0.5"},Ae={class:"text-xs text-gray-600"},De={key:1,class:"flex flex-col pb-4"},Le={key:0,class:"flex flex-row items-center pl-2 pb-1 h-[1rem]"},Pe={class:"text-xs ml-0.5 mt-0.5"},qe={class:"border-1 py-3 px-4 rounded-md mt-1"},Oe={class:"flex flex-row space-x-4"},Ge={class:"flex flex-col w-3/4"},We={class:"ml-1 mb-1 text-xs text-gray-500"},Je={class:"flex flex-col w-1/4"},Ke={class:"ml-1 mb-1 text-xs text-gray-500"},Qe={class:"flex flex-row h-full justify-start items-center"},Xe={class:"flex flex-row justify-end"},He={key:0},Ye={key:1,class:"flex flex-row justify-center items-center space-x-1.5"},Ze={class:"flex"},es={class:"flex flex-row justify-end gap-x-2 border-t-1 border-gray-100 pt-3"},ss=Y({__name:"UsersModal",props:{show:{type:Boolean},selectedUser:{}},emits:["closed","reload"],setup(o,{emit:B}){const $=B,{t:p}=Z(),{base:v}=ee(se()),{isMobileMode:F}=te(),{$api:C,$e:h}=ae(),{copy:V}=oe(),{dashboardUrl:N}=he(),t=g({emails:void 0,role:y.VIEWER,invitationToken:void 0}),T=g(),z=S.useForm,A=k(()=>({emails:[be]})),{validateInfos:D}=z(t.value,A);le(()=>{!t.value.emails&&o.selectedUser?.email&&(t.value.emails=o.selectedUser.email,t.value.role=o.selectedUser.roles)});const _=()=>{$("closed"),t.value={role:y.VIEWER}},L=async()=>{if(h("a:user:invite",{role:t.value.role}),!!v.value.id){await T.value?.validateFields();try{if(o.selectedUser?.id)await C.auth.baseUserUpdate(v.value.id,o.selectedUser.id,{roles:t.value.role,email:o.selectedUser.email,base_id:v.value.id,baseName:v.value.title}),_();else{const e=await C.auth.baseUserAdd(v.value.id,{roles:t.value.role,email:t.value.emails});t.value.invitationToken=e?.invite_token}$("reload"),x.success(p("msg.success.userDetailsUpdated"))}catch(e){console.error(e),x.error(await fe(e))}}},b=k(()=>t.value.invitationToken?`${N.value}#/signup/${t.value.invitationToken}`:null),P=async()=>{if(b.value){try{await V(b.value),x.success(p("msg.success.shareableURLCopied"))}catch(e){x.error(e.message)}h("c:shared-base:copy-url")}},q=()=>{h("c:user:invite-more"),t.value.invitationToken=void 0,t.value.role=y.VIEWER,t.value.emails=void 0},R=g();return ge(k(()=>o.show),e=>{e.key==="Escape"&&_()},{immediate:!0,isGridCell:!1}),ie(()=>o.show,async e=>{e&&(await ne(),R.value?.$el?.focus())},{immediate:!0}),(e,d)=>{const u=re,O=Me,E=xe,G=ke,j=$e,W=Ue,J=we,K=S,Q=Ce,X=ye;return r(),f(X,{centered:"",visible:o.show,onCancel:_},{default:i(()=>[s("div",Te,[s("div",Re,[a(F)?I("",!0):(r(),m("div",Ee,n(e.$t("activity.share")),1))]),s("div",je,[a(t).invitationToken?(r(),m("div",Ie,[s("div",Se,[(r(),f(w(("iconMap"in e?e.iconMap:a(U)).account))),d[2]||(d[2]=s("div",{class:"text-xs ml-0.5 mt-0.5"},"Copy Invite Token",-1))]),l(O,{class:"mt-1",type:"success","show-icon":""},{message:i(()=>[s("div",Be,[s("div",Fe,n(a(b)),1),l(u,{type:"text",class:"!rounded-md -mt-0.5",onClick:P},{icon:i(()=>[(r(),f(w(("iconMap"in e?e.iconMap:a(U)).copy),{class:"flex mx-auto text-green-700 h-[1rem]"}))]),_:1})])]),_:1}),s("div",Ve,n(e.$t("msg.info.userInviteNoSMTP"))+" "+n(a(t).invitationToken&&a(t).emails),1),s("div",Ne,[l(u,{size:"small",outlined:"",onClick:q},{default:i(()=>[s("div",ze,[l(E,{class:"flex mx-auto text-gray-600 h-[0.8rem]"}),s("div",Ae,n(e.$t("activity.inviteMore")),1)])]),_:1})])])):(r(),m("div",De,[o.selectedUser?(r(),m("div",Le,[(r(),f(w(("iconMap"in e?e.iconMap:a(U)).account))),s("div",Pe,n(o.selectedUser?e.$t("activity.editUser"):e.$t("activity.inviteTeam")),1)])):I("",!0),l(K,{ref_key:"formRef",ref:T,"validate-on-rule-change":!1,model:a(t),"validate-trigger":"onBlur",onFinish:L},{default:i(()=>[s("div",qe,[s("div",Oe,[s("div",Ge,[l(j,de(a(D).emails,{"validate-trigger":"onBlur",name:"emails",rules:[{required:!0,message:a(p)("msg.plsInputEmail")}]}),{default:i(()=>[s("div",We,n(e.$t("datatype.Email"))+":",1),l(G,{ref_key:"emailField",ref:R,value:a(t).emails,"onUpdate:value":d[0]||(d[0]=c=>a(t).emails=c),size:"middle","validate-trigger":"onBlur",placeholder:e.$t("labels.email"),disabled:!!o.selectedUser},null,8,["value","placeholder","disabled"])]),_:1},16,["rules"])]),s("div",Je,[l(j,{name:"role",rules:[{required:!0,message:a(p)("msg.roleRequired")}]},{default:i(()=>[s("div",Ke,n(e.$t("labels.selectUserRole")),1),l(J,{value:a(t).role,"onUpdate:value":d[1]||(d[1]=c=>a(t).role=c),size:"middle",class:"nc-user-roles !rounded-md","dropdown-class-name":"nc-dropdown-user-role"},{default:i(()=>[(r(!0),m(ce,null,me(a(y),(c,H)=>(r(),f(W,{key:H,value:c,class:"nc-role-option"},{default:i(()=>[s("div",Qe,[s("div",{class:"px-3 py-1 flex rounded-full text-xs",style:ue({backgroundColor:a(ve)[c]})},n(c),5)])]),_:2},1032,["value"]))),128))]),_:1},8,["value"])]),_:1},8,["rules"])])]),s("div",Xe,[l(u,{type:"primary","html-type":"submit",class:"!rounded-md"},{default:i(()=>[o.selectedUser?(r(),m("div",He,n(e.$t("general.save")),1)):(r(),m("div",Ye,[l(E,{class:"flex h-[0.8rem]"}),s("div",null,n(e.$t("activity.invite")),1)]))]),_:1})])])]),_:1},8,["model"])])),s("div",Ze,[l(Q)])]),s("div",es,[l(u,{key:"back",class:"!rounded-md",onClick:_},{default:i(()=>[M(n(e.$t("general.cancel")),1)]),_:1}),l(u,{class:"!rounded-md"},{default:i(()=>[...d[3]||(d[3]=[M("Manage base access",-1)])]),_:1}),l(u,{key:"submit",class:"!rounded-md",type:"primary"},{default:i(()=>[M(n(e.$t("activity.share")),1)]),_:1})])])]),_:1},8,["visible"])}}}),ks=Object.assign(ss,{__name:"TabsAuthUserManagementUsersModal"});export{ks as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as r,o as p,f as c,eE as _,Y as f,w as s,h as t,U as o,Q as m}from"./C6LKOky9.js";const d={class:"nc-submenu-title flex flex-row items-center gap-x-1.5 py-1.75 justify-between group"},x={class:"flex flex-row items-center gap-x-2"},b={class:"py-1.5"},v=r({__name:"SubMenu",props:{popupOffset:{},variant:{default:"default"}},setup(n){const u=n;return(e,a)=>{const l=m,i=_;return p(),c(i,{"popup-offset":u.popupOffset,class:f(["nc-sub-menu",`nc-variant-${n.variant}`]),"popup-class-name":`nc-variant-${n.variant} nc-submenu-popup`},{title:s(()=>[t("div",d,[t("div",x,[o(e.$slots,"title")]),e.$slots.expandIcon?o(e.$slots,"expandIcon",{key:0}):(p(),c(l,{key:1,icon:"ncChevronRight",class:"nc-submenu-arrow !opacity-60"}))])]),expandIcon:s(()=>[...a[0]||(a[0]=[])]),default:s(()=>[t("div",b,[o(e.$slots,"default")])]),_:3},8,["popup-offset","class","popup-class-name"])}}}),h=Object.assign(v,{__name:"NcSubMenu"});export{h as _};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{d as he,b as me,B as ge,aH as ye,u as Se,a$ as h,I as Ee,N as we,o as U,j as Y,f as be,w as z,h as W,t as Te,k as Re,Q as _e,l as X,bf as Ae,p as Q,K as ve}from"./C6LKOky9.js";import{_ as Pe}from"./B6gtONH_.js";const B=crypto,re=e=>e instanceof CryptoKey,N=new TextEncoder,$=new TextDecoder;function Ce(...e){const t=e.reduce((o,{length:s})=>o+s,0),r=new Uint8Array(t);let n=0;for(const o of e)r.set(o,n),n+=o.length;return r}const Ke=e=>{const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r},A=e=>{let t=e;t instanceof Uint8Array&&(t=$.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return Ke(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class m extends Error{constructor(t,r){super(t,r),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}m.code="ERR_JOSE_GENERIC";class w extends m{constructor(t,r,n="unspecified",o="unspecified"){super(t,{cause:{claim:n,reason:o,payload:r}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=n,this.reason=o,this.payload=r}}w.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class V extends m{constructor(t,r,n="unspecified",o="unspecified"){super(t,{cause:{claim:n,reason:o,payload:r}}),this.code="ERR_JWT_EXPIRED",this.claim=n,this.reason=o,this.payload=r}}V.code="ERR_JWT_EXPIRED";class ne extends m{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}ne.code="ERR_JOSE_ALG_NOT_ALLOWED";class _ extends m{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}_.code="ERR_JOSE_NOT_SUPPORTED";class Ie extends m{constructor(t="decryption operation failed",r){super(t,r),this.code="ERR_JWE_DECRYPTION_FAILED"}}Ie.code="ERR_JWE_DECRYPTION_FAILED";class We extends m{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}We.code="ERR_JWE_INVALID";class d extends m{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}d.code="ERR_JWS_INVALID";class F extends m{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}F.code="ERR_JWT_INVALID";class Je extends m{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}Je.code="ERR_JWK_INVALID";class Oe extends m{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}Oe.code="ERR_JWKS_INVALID";class xe extends m{constructor(t="no applicable key found in the JSON Web Key Set",r){super(t,r),this.code="ERR_JWKS_NO_MATCHING_KEY"}}xe.code="ERR_JWKS_NO_MATCHING_KEY";class Ne extends m{constructor(t="multiple matching keys found in the JSON Web Key Set",r){super(t,r),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}Ne.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";class De extends m{constructor(t="request timed out",r){super(t,r),this.code="ERR_JWKS_TIMEOUT"}}De.code="ERR_JWKS_TIMEOUT";class oe extends m{constructor(t="signature verification failed",r){super(t,r),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}oe.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";function T(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function J(e,t){return e.name===t}function k(e){return parseInt(e.name.slice(4),10)}function He(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function $e(e,t){if(t.length&&!t.some(r=>e.usages.includes(r))){let r="CryptoKey does not support this operation, its usages must include ";if(t.length>2){const n=t.pop();r+=`one of ${t.join(", ")}, or ${n}.`}else t.length===2?r+=`one of ${t[0]} or ${t[1]}.`:r+=`${t[0]}.`;throw new TypeError(r)}}function Me(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!J(e.algorithm,"HMAC"))throw T("HMAC");const n=parseInt(t.slice(2),10);if(k(e.algorithm.hash)!==n)throw T(`SHA-${n}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!J(e.algorithm,"RSASSA-PKCS1-v1_5"))throw T("RSASSA-PKCS1-v1_5");const n=parseInt(t.slice(2),10);if(k(e.algorithm.hash)!==n)throw T(`SHA-${n}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!J(e.algorithm,"RSA-PSS"))throw T("RSA-PSS");const n=parseInt(t.slice(2),10);if(k(e.algorithm.hash)!==n)throw T(`SHA-${n}`,"algorithm.hash");break}case"EdDSA":{if(e.algorithm.name!=="Ed25519"&&e.algorithm.name!=="Ed448")throw T("Ed25519 or Ed448");break}case"Ed25519":{if(!J(e.algorithm,"Ed25519"))throw T("Ed25519");break}case"ES256":case"ES384":case"ES512":{if(!J(e.algorithm,"ECDSA"))throw T("ECDSA");const n=He(t);if(e.algorithm.namedCurve!==n)throw T(n,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}$e(e,r)}function se(e,t,...r){if(r=r.filter(Boolean),r.length>2){const n=r.pop();e+=`one of type ${r.join(", ")}, or ${n}.`}else r.length===2?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return t==null?e+=` Received ${t}`:typeof t=="function"&&t.name?e+=` Received function ${t.name}`:typeof t=="object"&&t!=null&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}const Z=(e,...t)=>se("Key must be ",e,...t);function ae(e,t,...r){return se(`Key for the ${e} algorithm must be `,t,...r)}const ie=e=>re(e)?!0:e?.[Symbol.toStringTag]==="KeyObject",D=["CryptoKey"],Le=(...e)=>{const t=e.filter(Boolean);if(t.length===0||t.length===1)return!0;let r;for(const n of t){const o=Object.keys(n);if(!r||r.size===0){r=new Set(o);continue}for(const s of o){if(r.has(s))return!1;r.add(s)}}return!0};function Ue(e){return typeof e=="object"&&e!==null}function O(e){if(!Ue(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}const ke=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:r}=t.algorithm;if(typeof r!="number"||r<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function K(e){return O(e)&&typeof e.kty=="string"}function Ve(e){return e.kty!=="oct"&&typeof e.d=="string"}function Ge(e){return e.kty!=="oct"&&typeof e.d>"u"}function Be(e){return K(e)&&e.kty==="oct"&&typeof e.k=="string"}function Fe(e){let t,r;switch(e.kty){case"RSA":{switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new _('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new _('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(e.alg){case"Ed25519":t={name:"Ed25519"},r=e.d?["sign"]:["verify"];break;case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new _('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new _('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}const ce=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:t,keyUsages:r}=Fe(e),n=[t,e.ext??!1,e.key_ops??r],o={...e};return delete o.alg,delete o.use,B.subtle.importKey("jwk",o,...n)},le=e=>A(e);let v,P;const de=e=>e?.[Symbol.toStringTag]==="KeyObject",H=async(e,t,r,n,o=!1)=>{let s=e.get(t);if(s?.[n])return s[n];const a=await ce({...r,alg:n});return o&&Object.freeze(t),s?s[n]=a:e.set(t,{[n]:a}),a},qe=(e,t)=>{if(de(e)){let r=e.export({format:"jwk"});return delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k?le(r.k):(P||(P=new WeakMap),H(P,e,r,t))}return K(e)?e.k?A(e.k):(P||(P=new WeakMap),H(P,e,e,t,!0)):e},Ye=(e,t)=>{if(de(e)){let r=e.export({format:"jwk"});return r.k?le(r.k):(v||(v=new WeakMap),H(v,e,r,t))}return K(e)?e.k?A(e.k):(v||(v=new WeakMap),H(v,e,e,t,!0)):e},ze={normalizePublicKey:qe,normalizePrivateKey:Ye};async function Xe(e,t){if(!O(e))throw new TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if(typeof e.k!="string"||!e.k)throw new TypeError('missing "k" (Key Value) Parameter value');return A(e.k);case"RSA":if("oth"in e&&e.oth!==void 0)throw new _('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return ce({...e,alg:t});default:throw new _('Unsupported "kty" (Key Type) Parameter value')}}const C=e=>e?.[Symbol.toStringTag],G=(e,t,r)=>{if(t.use!==void 0&&t.use!=="sig")throw new TypeError("Invalid key for this operation, when present its use must be sig");if(t.key_ops!==void 0&&t.key_ops.includes?.(r)!==!0)throw new TypeError(`Invalid key for this operation, when present its key_ops must include ${r}`);if(t.alg!==void 0&&t.alg!==e)throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);return!0},Qe=(e,t,r,n)=>{if(!(t instanceof Uint8Array)){if(n&&K(t)){if(Be(t)&&G(e,t,r))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!ie(t))throw new TypeError(ae(e,t,...D,"Uint8Array",n?"JSON Web Key":null));if(t.type!=="secret")throw new TypeError(`${C(t)} instances for symmetric algorithms must be of type "secret"`)}},Ze=(e,t,r,n)=>{if(n&&K(t))switch(r){case"sign":if(Ve(t)&&G(e,t,r))return;throw new TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(Ge(t)&&G(e,t,r))return;throw new TypeError("JSON Web Key for this operation be a public JWK")}if(!ie(t))throw new TypeError(ae(e,t,...D,n?"JSON Web Key":null));if(t.type==="secret")throw new TypeError(`${C(t)} instances for asymmetric algorithms must not be of type "secret"`);if(r==="sign"&&t.type==="public")throw new TypeError(`${C(t)} instances for asymmetric algorithm signing must be of type "private"`);if(r==="decrypt"&&t.type==="public")throw new TypeError(`${C(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&r==="verify"&&t.type==="private")throw new TypeError(`${C(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&r==="encrypt"&&t.type==="private")throw new TypeError(`${C(t)} instances for asymmetric algorithm encryption must be of type "public"`)};function ue(e,t,r,n){t.startsWith("HS")||t==="dir"||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?Qe(t,r,n,e):Ze(t,r,n,e)}ue.bind(void 0,!1);const j=ue.bind(void 0,!0);function je(e,t,r,n,o){if(o.crit!==void 0&&n?.crit===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||n.crit===void 0)return new Set;if(!Array.isArray(n.crit)||n.crit.length===0||n.crit.some(a=>typeof a!="string"||a.length===0))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let s;r!==void 0?s=new Map([...Object.entries(r),...t.entries()]):s=t;for(const a of n.crit){if(!s.has(a))throw new _(`Extension Header Parameter "${a}" is not recognized`);if(o[a]===void 0)throw new e(`Extension Header Parameter "${a}" is missing`);if(s.get(a)&&n[a]===void 0)throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(n.crit)}const et=(e,t)=>{if(t!==void 0&&(!Array.isArray(t)||t.some(r=>typeof r!="string")))throw new TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};function tt(e,t){const r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"Ed25519":return{name:"Ed25519"};case"EdDSA":return{name:t.name};default:throw new _(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}async function rt(e,t,r){if(t=await ze.normalizePublicKey(t,e),re(t))return Me(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(Z(t,...D));return B.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw new TypeError(Z(t,...D,"Uint8Array","JSON Web Key"))}const nt=async(e,t,r,n)=>{const o=await rt(e,t,"verify");ke(e,o);const s=tt(e,o.algorithm);try{return await B.subtle.verify(s,o,r,n)}catch{return!1}};async function ot(e,t,r){if(!O(e))throw new d("Flattened JWS must be an object");if(e.protected===void 0&&e.header===void 0)throw new d('Flattened JWS must have either of the "protected" or "header" members');if(e.protected!==void 0&&typeof e.protected!="string")throw new d("JWS Protected Header incorrect type");if(e.payload===void 0)throw new d("JWS Payload missing");if(typeof e.signature!="string")throw new d("JWS Signature missing or incorrect type");if(e.header!==void 0&&!O(e.header))throw new d("JWS Unprotected Header incorrect type");let n={};if(e.protected)try{const I=A(e.protected);n=JSON.parse($.decode(I))}catch{throw new d("JWS Protected Header is invalid")}if(!Le(n,e.header))throw new d("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const o={...n,...e.header},s=je(d,new Map([["b64",!0]]),r?.crit,n,o);let a=!0;if(s.has("b64")&&(a=n.b64,typeof a!="boolean"))throw new d('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:l}=o;if(typeof l!="string"||!l)throw new d('JWS "alg" (Algorithm) Header Parameter missing or invalid');const g=r&&et("algorithms",r.algorithms);if(g&&!g.has(l))throw new ne('"alg" (Algorithm) Header Parameter value not allowed');if(a){if(typeof e.payload!="string")throw new d("JWS Payload must be a string")}else if(typeof e.payload!="string"&&!(e.payload instanceof Uint8Array))throw new d("JWS Payload must be a string or an Uint8Array instance");let f=!1;typeof t=="function"?(t=await t(n,e),f=!0,j(l,t,"verify"),K(t)&&(t=await Xe(t,l))):j(l,t,"verify");const R=Ce(N.encode(e.protected??""),N.encode("."),typeof e.payload=="string"?N.encode(e.payload):e.payload);let p;try{p=A(e.signature)}catch{throw new d("Failed to base64url decode the signature")}if(!await nt(l,t,p,R))throw new oe;let b;if(a)try{b=A(e.payload)}catch{throw new d("Failed to base64url decode the payload")}else typeof e.payload=="string"?b=N.encode(e.payload):b=e.payload;const y={payload:b};return e.protected!==void 0&&(y.protectedHeader=n),e.header!==void 0&&(y.unprotectedHeader=e.header),f?{...y,key:t}:y}async function st(e,t,r){if(e instanceof Uint8Array&&(e=$.decode(e)),typeof e!="string")throw new d("Compact JWS must be a string or Uint8Array");const{0:n,1:o,2:s,length:a}=e.split(".");if(a!==3)throw new d("Invalid Compact JWS");const l=await ot({payload:o,protected:n,signature:s},t,r),g={payload:l.payload,protectedHeader:l.protectedHeader};return typeof t=="function"?{...g,key:l.key}:g}const at=e=>Math.floor(e.getTime()/1e3),fe=60,pe=fe*60,q=pe*24,it=q*7,ct=q*365.25,lt=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,ee=e=>{const t=lt.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");const r=parseFloat(t[2]),n=t[3].toLowerCase();let o;switch(n){case"sec":case"secs":case"second":case"seconds":case"s":o=Math.round(r);break;case"minute":case"minutes":case"min":case"mins":case"m":o=Math.round(r*fe);break;case"hour":case"hours":case"hr":case"hrs":case"h":o=Math.round(r*pe);break;case"day":case"days":case"d":o=Math.round(r*q);break;case"week":case"weeks":case"w":o=Math.round(r*it);break;default:o=Math.round(r*ct);break}return t[1]==="-"||t[4]==="ago"?-o:o},te=e=>e.toLowerCase().replace(/^application\//,""),dt=(e,t)=>typeof e=="string"?t.includes(e):Array.isArray(e)?t.some(Set.prototype.has.bind(new Set(e))):!1,ut=(e,t,r={})=>{let n;try{n=JSON.parse($.decode(t))}catch{}if(!O(n))throw new F("JWT Claims Set must be a top-level JSON object");const{typ:o}=r;if(o&&(typeof e.typ!="string"||te(e.typ)!==te(o)))throw new w('unexpected "typ" JWT header value',n,"typ","check_failed");const{requiredClaims:s=[],issuer:a,subject:l,audience:g,maxTokenAge:f}=r,R=[...s];f!==void 0&&R.push("iat"),g!==void 0&&R.push("aud"),l!==void 0&&R.push("sub"),a!==void 0&&R.push("iss");for(const y of new Set(R.reverse()))if(!(y in n))throw new w(`missing required "${y}" claim`,n,y,"missing");if(a&&!(Array.isArray(a)?a:[a]).includes(n.iss))throw new w('unexpected "iss" claim value',n,"iss","check_failed");if(l&&n.sub!==l)throw new w('unexpected "sub" claim value',n,"sub","check_failed");if(g&&!dt(n.aud,typeof g=="string"?[g]:g))throw new w('unexpected "aud" claim value',n,"aud","check_failed");let p;switch(typeof r.clockTolerance){case"string":p=ee(r.clockTolerance);break;case"number":p=r.clockTolerance;break;case"undefined":p=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:x}=r,b=at(x||new Date);if((n.iat!==void 0||f)&&typeof n.iat!="number")throw new w('"iat" claim must be a number',n,"iat","invalid");if(n.nbf!==void 0){if(typeof n.nbf!="number")throw new w('"nbf" claim must be a number',n,"nbf","invalid");if(n.nbf>b+p)throw new w('"nbf" claim timestamp check failed',n,"nbf","check_failed")}if(n.exp!==void 0){if(typeof n.exp!="number")throw new w('"exp" claim must be a number',n,"exp","invalid");if(n.exp<=b-p)throw new V('"exp" claim timestamp check failed',n,"exp","check_failed")}if(f){const y=b-n.iat,I=typeof f=="number"?f:ee(f);if(y-p>I)throw new V('"iat" claim timestamp check failed (too far in the past)',n,"iat","check_failed");if(y<0-p)throw new w('"iat" claim timestamp check failed (it should be in the past)',n,"iat","check_failed")}return n};async function ft(e,t,r){const n=await st(e,t,r);if(n.protectedHeader.crit?.includes("b64")&&n.protectedHeader.b64===!1)throw new F("JWTs MUST NOT use unencoded payload");const s={payload:ut(n.protectedHeader,n.payload,r),protectedHeader:n.protectedHeader};return typeof t=="function"?{...s,key:n.key}:s}const pt={class:"flex flex-col items-center"},ht={class:"flex flex-row items-center gap-2 mb-2"},mt={class:"text-gray-500 text-[15px] leading-6 ml-7"},gt={key:1,class:"flex flex-col items-center justify-center min-h-screen"},yt=he({__name:"index",setup(e){const{signIn:t}=me(),r=ge(),n=ye(),{api:o}=Se({useGlobalInstance:!0});window.onerror=function(i,u,c,E,S){return console.error(`Error: ${i}
|
|
2
|
-
URL: ${u}
|
|
3
|
-
Line: ${c}
|
|
4
|
-
Column: ${E}
|
|
5
|
-
Error object: ${JSON.stringify(S)}`),!1},console.log("Testing page script setup running"),console.log("ProjectRoles.SOURCING_MDM_HEAD:",h.SOURCING_MDM_HEAD),console.log("Current route:",n.fullPath),console.log("Query params:",n.query),console.log("Window location:",window.location.href),console.log("Route name:",n.name),console.log("Route path:",n.path),console.log("Route fullPath:",n.fullPath);const s=Ae(),a=s.public.nextauthSecret||"ZQ9YXtZIc9+IC87SAEcE5bOoxXHsSKuwqGRONtjRXp4=",l=s.public.nocodbUserStaticPassword||"6bZ43M2iDYW97AjF",g=Q(!0),f=Q(null),R=()=>(console.log("useTokenVerification"),{verifyToken:async u=>{console.log("verifyToken");try{const c=new TextEncoder().encode(a);console.log("secretKey",a),console.log("key",c);const{payload:E}=await ft(u,c,{algorithms:["HS512"]});return console.log("payload",E),E}catch(c){return console.log("err",c),console.error("Token verification failed:",c),null}}}),p={sourcing_mdm_head:h.SOURCING_MDM_HEAD,sourcing_team:h.SOURCING_TEAM,sourcing_mis:h.SOURCING_MIS,sourcing_poc:h.SOURCING_POC,designer:h.DESIGNER,attribute_master:h.ATTRIBUTE_MASTER,vendor:h.VENDOR,vendor_operator:h.VENDOR_OPERATOR,inspector:h.INSPECTOR,sch_head:h.SCH_HEAD,sch_operator:h.SCH_OPERATOR,cataloguing_team:h.CATALOGUING_TEAM};console.log("Project Roles: ",h);const{setTesseraJwtToken:x}=Ee(),b=i=>{if(console.log(`[TestingPage] Raw mdmRole: "${i}"`),!i)throw console.error("[TestingPage] mdmRole is undefined or null"),new Error("mdmRole is required but was not provided");const u=i.trim().toLowerCase();console.log(`[TestingPage] Processed mdmRole: "${u}"`);for(const c in p)if(c===u)return console.log(`[TestingPage] Found matching key: "${c}"`),console.log(`Role map: ${p[c]}`),p[c];throw console.error(`[TestingPage] Role not found in roleMap for key: "${u}"`),console.error("[TestingPage] Available keys in roleMap:",Object.keys(p)),console.error("[TestingPage] RoleMap:",p),new Error(`Invalid role: ${i}`)},y=async(i,u,c,E)=>{console.log(`[TestingPage] updateBaseUserRole called with baseId: ${i}, role: ${u}, userEmail: ${E}`);try{await o.instance.patch(`/api/v2/meta/bases/${i}/user-role`,{role:u,email:E},{headers:{"xc-auth":c}})}catch(S){throw console.error("Error updating base user role:",S),S.response&&(console.error("[TestingPage] updateBaseUserRole - Axios Response Status:",S.response.status),console.error("[TestingPage] updateBaseUserRole - Axios Response Data:",S.response.data)),S}},I=async()=>{try{console.log("[TestingPage] Starting handleSignIn");const i=n.query.token;if(console.log("[TestingPage] Token from URL:",i),console.log("Tessera Issued JWT Token:",i),!i){f.value="No token provided",console.error("[TestingPage] Error: No token provided");return}const{verifyToken:u}=R();console.log("[TestingPage] Verifying token...");const c=await u(i);if(console.log("[TestingPage] Decoded token:",c),!c?.email){f.value="Invalid token or missing email",console.error("[TestingPage] Error: Invalid token or missing email",c);return}console.log("[TestingPage] Static password used:",l?"Set":"Not Set");const E={email:c.email,password:l};console.log("[TestingPage] Attempting first signin...");const{token:S}=await o.auth.signin(E);if(console.log("[TestingPage] First authToken received:",S?"Yes":"No"),!S){f.value="Authentication failed (1st attempt)",console.error("[TestingPage] Error: Authentication failed (1st attempt)");return}if(console.log("[TestingPage] Attempting role update..."),c.mdmRole){const L=b(c.mdmRole);await y(s.public.stylesTableBaseName||"pn4e49u2a52fxtm",L,S,c.email)}else{console.warn("[TestingPage] mdmRole not found in token, using default role: viewer");const L=h.VIEWER;await y(s.public.stylesTableBaseName||"pn4e49u2a52fxtm",L,S,c.email)}console.log("[TestingPage] Role update successful (or no error thrown)."),console.log("[TestingPage] Attempting second signin...");const{token:M}=await o.auth.signin(E);console.log("[TestingPage] Second authToken received:",M?"Yes":"No"),M?t(M):(console.warn("[TestingPage] Warning: Second signin attempt failed, proceeding with first token."),t(S)),console.log("[TestingPage] Sign in complete, redirecting to /"),window.history.pushState({},"","/"),r.replace("/"),x(i)}catch(i){console.error("[TestingPage] CATCH BLOCK ERROR:",i),i.response?(console.error("[TestingPage] CATCH BLOCK - Axios Response Status:",i.response.status),console.error("[TestingPage] CATCH BLOCK - Axios Response Data:",i.response.data)):i.request?console.error("[TestingPage] CATCH BLOCK - Axios Request Made (No Response):",i.request):console.error("[TestingPage] CATCH BLOCK - Error Message:",i.message),f.value=`An unexpected error occurred: ${i.message||"Unknown error"}`}finally{console.log("[TestingPage] handleSignIn finally block reached."),g.value=!1}};return we(()=>{console.log("[TestingPage] Component mounted, calling handleSignIn."),I()}),(i,u)=>{const c=_e,E=Pe;return U(),Y("div",pt,[f.value?(U(),be(E,{key:0,type:"error",class:"!rounded-lg !bg-transparent !border-gray-200 !p-4 !w-[80%] !max-w-[600px] !mt-12"},{message:z(()=>[W("div",ht,[Re(c,{icon:"ncAlertCircleFilled",class:"text-red-500 w-5 h-5"}),u[0]||(u[0]=W("span",{class:"font-weight-700 text-[16px]"},"Error",-1))])]),description:z(()=>[W("div",mt,Te(f.value),1)]),_:1})):X("",!0),g.value?(U(),Y("div",gt,[...u[1]||(u[1]=[W("div",{class:"animate-spin rounded-full h-12 w-12 border-b-2 border-gray-900 mx-auto"},null,-1),W("p",{class:"mt-4"},"Redirecting...",-1)])])):X("",!0)])}}}),wt=ve(yt,[["__scopeId","data-v-a4f82862"]]);export{wt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as f,o as s,j as r,h as o,Y as _,U as d,f as x,w as l,k as c,Q as h,m as b,ao as y,l as i,t as m}from"./C6LKOky9.js";import{_ as w}from"./Bw4BKgrR.js";const k={class:"border-1 cursor-pointer h-12.5 border-gray-200 flex gap-2 flex-col rounded-lg"},D={class:"flex relative items-center gap-2"},C={class:"flex gap-1 py-1 flex-col"},v={class:"text-[13px] leading-4 max-w-56 font-medium truncate text-gray-800"},B={class:"flex items-center gap-1"},N={key:1,class:"text-xs font-medium leading-4 text-gray-600"},S=f({__name:"SideRecordCard",props:{fromDate:{default:""},toDate:{},color:{default:"gray"},showDate:{type:Boolean,default:!0},invalid:{type:Boolean,default:!1}},setup(e){const t=e;return(n,a)=>{const p=h,g=w,u=y;return s(),r("div",k,[o("div",D,[o("span",{class:_([{"bg-maroon-500":t.color==="maroon","bg-blue-500":t.color==="blue","bg-green-500":t.color==="green","bg-yellow-500":t.color==="yellow","bg-pink-500":t.color==="pink","bg-purple-500":t.color==="purple","bg-gray-900":e.color==="gray"},"block h-12 w-1 rounded-l-lg"])},null,2),d(n.$slots,"image"),o("div",C,[o("span",v,[d(n.$slots,"default")]),e.invalid?(s(),x(u,{key:0,placement:"left",class:"top-1 absolute right-2"},{title:l(()=>[...a[1]||(a[1]=[b(" Record with end date before the start date won't be displayed in the calendar. Update the end date to display the record. ",-1)])]),default:l(()=>[c(g,{color:"red",border:!1,class:"!h-5"},{default:l(()=>[o("div",B,[c(p,{icon:"warning",class:"text-red-500 !h-4 !w-4"}),a[0]||(a[0]=o("span",{class:"font-normal text-xs"}," Date Error ",-1))])]),_:1})]),_:1})):i("",!0),e.showDate?(s(),r("span",N,m(e.fromDate)+" "+m(e.toDate?` - ${e.toDate}`:""),1)):i("",!0)])])])}}}),$=Object.assign(S,{__name:"SmartsheetCalendarSideRecordCard"});export{$ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as w,_ as V,c as b}from"./DpuOI1IG.js";import{d as k,c as C,o as t,f as s,i as I,g as n,w as c,j as N,R as B,h as D,l as _,k as M,m as p,t as u,ao as R,au as T,aJ as $,F as j,x as F,fV as K,K as O}from"./C6LKOky9.js";import{_ as E}from"./CvfBKHwK.js";import{a as G}from"./BRAK1JSF.js";const J={class:"w-full flex gap-2 items-center"},L=k({__name:"Select",props:{modelValue:{}},emits:["update:modelValue","change"],setup(m,{emit:d}){const i=m,l=d,o=C(i,"modelValue",l),{integrationsRefreshKey:y}=w(),f=F(()=>(y.value,b.filter(a=>a.type===K.SYNC))),h=a=>{l("change",a)};return(a,r)=>{const x=V,v=R,S=G,g=E;return t(),s(g,{value:n(o),"onUpdate:value":r[0]||(r[0]=e=>I(o)?o.value=e:null),class:"nc-select-shadow","dropdown-class-name":"nc-dropdown-sync-type",placeholder:"Select Source","show-search":"","dropdown-match-select-width":"",onChange:h},{default:c(()=>[(t(!0),N(j,null,B(n(f),e=>(t(),s(S,{key:`${e.sub_type}`,value:e.sub_type},{default:c(()=>[D("div",J,[e?.sub_type?(t(),s(x,{key:0,type:e.sub_type},null,8,["type"])):_("",!0),M(v,{class:"flex-1 truncate"},{title:c(()=>[p(u(e.title),1)]),default:c(()=>[p(" "+u(e.title),1)]),_:2},1024),n(o)===e.sub_type?(t(),s(T(n($).check),{key:1,id:"nc-selected-item-icon",class:"text-primary w-4 h-4"})):_("",!0)])]),_:2},1032,["value"]))),128))]),_:1},8,["value"])}}}),A=Object.assign(O(L,[["__scopeId","data-v-a326746e"]]),{__name:"DashboardSettingsSyncSelect"});export{A as _};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{bI as ne}from"./C6LKOky9.js";var z={},Q,pt;function re(){return pt||(pt=1,Q=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Q}var W={},U={},Rt;function _(){if(Rt)return U;Rt=1;let r;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return U.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17},U.getSymbolTotalCodewords=function(e){return o[e]},U.getBCHDigit=function(i){let e=0;for(;i!==0;)e++,i>>>=1;return e},U.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');r=e},U.isKanjiModeEnabled=function(){return typeof r<"u"},U.toSJIS=function(e){return r(e)},U}var Z={},At;function Ct(){return At||(At=1,(function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function o(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+i)}}r.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},r.from=function(e,t){if(r.isValid(e))return e;try{return o(e)}catch{return t}}})(Z)),Z}var X,It;function oe(){if(It)return X;It=1;function r(){this.buffer=[],this.length=0}return r.prototype={get:function(o){const i=Math.floor(o/8);return(this.buffer[i]>>>7-o%8&1)===1},put:function(o,i){for(let e=0;e<i;e++)this.putBit((o>>>i-e-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(o){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),o&&(this.buffer[i]|=128>>>this.length%8),this.length++}},X=r,X}var x,Tt;function ie(){if(Tt)return x;Tt=1;function r(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}return r.prototype.set=function(o,i,e,t){const n=o*this.size+i;this.data[n]=e,t&&(this.reservedBit[n]=!0)},r.prototype.get=function(o,i){return this.data[o*this.size+i]},r.prototype.xor=function(o,i,e){this.data[o*this.size+i]^=e},r.prototype.isReserved=function(o,i){return this.reservedBit[o*this.size+i]},x=r,x}var $={},Nt;function ue(){return Nt||(Nt=1,(function(r){const o=_().getSymbolSize;r.getRowColCoords=function(e){if(e===1)return[];const t=Math.floor(e/7)+2,n=o(e),u=n===145?26:Math.ceil((n-13)/(2*t-2))*2,a=[n-7];for(let s=1;s<t-1;s++)a[s]=a[s-1]-u;return a.push(6),a.reverse()},r.getPositions=function(e){const t=[],n=r.getRowColCoords(e),u=n.length;for(let a=0;a<u;a++)for(let s=0;s<u;s++)a===0&&s===0||a===0&&s===u-1||a===u-1&&s===0||t.push([n[a],n[s]]);return t}})($)),$}var tt={},Mt;function se(){if(Mt)return tt;Mt=1;const r=_().getSymbolSize,o=7;return tt.getPositions=function(e){const t=r(e);return[[0,0],[t-o,0],[0,t-o]]},tt}var et={},Pt;function ae(){return Pt||(Pt=1,(function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const o={N1:3,N2:3,N3:40,N4:10};r.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7},r.from=function(t){return r.isValid(t)?parseInt(t,10):void 0},r.getPenaltyN1=function(t){const n=t.size;let u=0,a=0,s=0,c=null,d=null;for(let B=0;B<n;B++){a=s=0,c=d=null;for(let h=0;h<n;h++){let f=t.get(B,h);f===c?a++:(a>=5&&(u+=o.N1+(a-5)),c=f,a=1),f=t.get(h,B),f===d?s++:(s>=5&&(u+=o.N1+(s-5)),d=f,s=1)}a>=5&&(u+=o.N1+(a-5)),s>=5&&(u+=o.N1+(s-5))}return u},r.getPenaltyN2=function(t){const n=t.size;let u=0;for(let a=0;a<n-1;a++)for(let s=0;s<n-1;s++){const c=t.get(a,s)+t.get(a,s+1)+t.get(a+1,s)+t.get(a+1,s+1);(c===4||c===0)&&u++}return u*o.N2},r.getPenaltyN3=function(t){const n=t.size;let u=0,a=0,s=0;for(let c=0;c<n;c++){a=s=0;for(let d=0;d<n;d++)a=a<<1&2047|t.get(c,d),d>=10&&(a===1488||a===93)&&u++,s=s<<1&2047|t.get(d,c),d>=10&&(s===1488||s===93)&&u++}return u*o.N3},r.getPenaltyN4=function(t){let n=0;const u=t.data.length;for(let s=0;s<u;s++)n+=t.data[s];return Math.abs(Math.ceil(n*100/u/5)-10)*o.N4};function i(e,t,n){switch(e){case r.Patterns.PATTERN000:return(t+n)%2===0;case r.Patterns.PATTERN001:return t%2===0;case r.Patterns.PATTERN010:return n%3===0;case r.Patterns.PATTERN011:return(t+n)%3===0;case r.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2===0;case r.Patterns.PATTERN101:return t*n%2+t*n%3===0;case r.Patterns.PATTERN110:return(t*n%2+t*n%3)%2===0;case r.Patterns.PATTERN111:return(t*n%3+(t+n)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}r.applyMask=function(t,n){const u=n.size;for(let a=0;a<u;a++)for(let s=0;s<u;s++)n.isReserved(s,a)||n.xor(s,a,i(t,s,a))},r.getBestMask=function(t,n){const u=Object.keys(r.Patterns).length;let a=0,s=1/0;for(let c=0;c<u;c++){n(c),r.applyMask(c,t);const d=r.getPenaltyN1(t)+r.getPenaltyN2(t)+r.getPenaltyN3(t)+r.getPenaltyN4(t);r.applyMask(c,t),d<s&&(s=d,a=c)}return a}})(et)),et}var J={},St;function Wt(){if(St)return J;St=1;const r=Ct(),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return J.getBlocksCount=function(t,n){switch(n){case r.L:return o[(t-1)*4+0];case r.M:return o[(t-1)*4+1];case r.Q:return o[(t-1)*4+2];case r.H:return o[(t-1)*4+3];default:return}},J.getTotalCodewordsCount=function(t,n){switch(n){case r.L:return i[(t-1)*4+0];case r.M:return i[(t-1)*4+1];case r.Q:return i[(t-1)*4+2];case r.H:return i[(t-1)*4+3];default:return}},J}var nt={},K={},bt;function ce(){if(bt)return K;bt=1;const r=new Uint8Array(512),o=new Uint8Array(256);return(function(){let e=1;for(let t=0;t<255;t++)r[t]=e,o[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)r[t]=r[t-255]})(),K.log=function(e){if(e<1)throw new Error("log("+e+")");return o[e]},K.exp=function(e){return r[e]},K.mul=function(e,t){return e===0||t===0?0:r[o[e]+o[t]]},K}var Lt;function fe(){return Lt||(Lt=1,(function(r){const o=ce();r.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let u=0;u<e.length;u++)for(let a=0;a<t.length;a++)n[u+a]^=o.mul(e[u],t[a]);return n},r.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const u=n[0];for(let s=0;s<t.length;s++)n[s]^=o.mul(t[s],u);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n},r.generateECPolynomial=function(e){let t=new Uint8Array([1]);for(let n=0;n<e;n++)t=r.mul(t,new Uint8Array([1,o.exp(n)]));return t}})(nt)),nt}var rt,Dt;function le(){if(Dt)return rt;Dt=1;const r=fe();function o(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}return o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),u=this.degree-n.length;if(u>0){const a=new Uint8Array(this.degree);return a.set(n,u),a}return n},rt=o,rt}var ot={},it={},ut={},qt;function Zt(){return qt||(qt=1,ut.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}),ut}var L={},vt;function Xt(){if(vt)return L;vt=1;const r="[0-9]+",o="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const e="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+`)(?:.|[\r
|
|
2
|
-
]))+`;L.KANJI=new RegExp(i,"g"),L.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),L.BYTE=new RegExp(e,"g"),L.NUMERIC=new RegExp(r,"g"),L.ALPHANUMERIC=new RegExp(o,"g");const t=new RegExp("^"+i+"$"),n=new RegExp("^"+r+"$"),u=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return L.testKanji=function(s){return t.test(s)},L.testNumeric=function(s){return n.test(s)},L.testAlphanumeric=function(s){return u.test(s)},L}var Ut;function F(){return Ut||(Ut=1,(function(r){const o=Zt(),i=Xt();r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(n,u){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!o.isValid(u))throw new Error("Invalid version: "+u);return u>=1&&u<10?n.ccBits[0]:u<27?n.ccBits[1]:n.ccBits[2]},r.getBestModeForData=function(n){return i.testNumeric(n)?r.NUMERIC:i.testAlphanumeric(n)?r.ALPHANUMERIC:i.testKanji(n)?r.KANJI:r.BYTE},r.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},r.isValid=function(n){return n&&n.bit&&n.ccBits};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+t)}}r.from=function(n,u){if(r.isValid(n))return n;try{return e(n)}catch{return u}}})(it)),it}var _t;function de(){return _t||(_t=1,(function(r){const o=_(),i=Wt(),e=Ct(),t=F(),n=Zt(),u=7973,a=o.getBCHDigit(u);function s(h,f,N){for(let M=1;M<=40;M++)if(f<=r.getCapacity(M,N,h))return M}function c(h,f){return t.getCharCountIndicator(h,f)+4}function d(h,f){let N=0;return h.forEach(function(M){const S=c(M.mode,f);N+=S+M.getBitsLength()}),N}function B(h,f){for(let N=1;N<=40;N++)if(d(h,N)<=r.getCapacity(N,f,t.MIXED))return N}r.from=function(f,N){return n.isValid(f)?parseInt(f,10):N},r.getCapacity=function(f,N,M){if(!n.isValid(f))throw new Error("Invalid QR Code version");typeof M>"u"&&(M=t.BYTE);const S=o.getSymbolTotalCodewords(f),A=i.getTotalCodewordsCount(f,N),P=(S-A)*8;if(M===t.MIXED)return P;const I=P-c(M,f);switch(M){case t.NUMERIC:return Math.floor(I/10*3);case t.ALPHANUMERIC:return Math.floor(I/11*2);case t.KANJI:return Math.floor(I/13);case t.BYTE:default:return Math.floor(I/8)}},r.getBestVersionForData=function(f,N){let M;const S=e.from(N,e.M);if(Array.isArray(f)){if(f.length>1)return B(f,S);if(f.length===0)return 1;M=f[0]}else M=f;return s(M.mode,M.getLength(),S)},r.getEncodedBits=function(f){if(!n.isValid(f)||f<7)throw new Error("Invalid QR Code version");let N=f<<12;for(;o.getBCHDigit(N)-a>=0;)N^=u<<o.getBCHDigit(N)-a;return f<<12|N}})(ot)),ot}var st={},Ft;function ge(){if(Ft)return st;Ft=1;const r=_(),o=1335,i=21522,e=r.getBCHDigit(o);return st.getEncodedBits=function(n,u){const a=n.bit<<3|u;let s=a<<10;for(;r.getBCHDigit(s)-e>=0;)s^=o<<r.getBCHDigit(s)-e;return(a<<10|s)^i},st}var at={},ct,kt;function he(){if(kt)return ct;kt=1;const r=F();function o(i){this.mode=r.NUMERIC,this.data=i.toString()}return o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n,u;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),u=parseInt(n,10),e.put(u,10);const a=this.data.length-t;a>0&&(n=this.data.substr(t),u=parseInt(n,10),e.put(u,a*3+1))},ct=o,ct}var ft,zt;function me(){if(zt)return ft;zt=1;const r=F(),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=r.ALPHANUMERIC,this.data=e}return i.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let u=o.indexOf(this.data[n])*45;u+=o.indexOf(this.data[n+1]),t.put(u,11)}this.data.length%2&&t.put(o.indexOf(this.data[n]),6)},ft=i,ft}var lt,Vt;function we(){if(Vt)return lt;Vt=1;const r=F();function o(i){this.mode=r.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}return o.getBitsLength=function(e){return e*8},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(i){for(let e=0,t=this.data.length;e<t;e++)i.put(this.data[e],8)},lt=o,lt}var dt,Kt;function Ce(){if(Kt)return dt;Kt=1;const r=F(),o=_();function i(e){this.mode=r.KANJI,this.data=e}return i.getBitsLength=function(t){return t*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
3
|
-
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},dt=i,dt}var gt={exports:{}},Ht;function Ee(){return Ht||(Ht=1,(function(r){var o={single_source_shortest_paths:function(i,e,t){var n={},u={};u[e]=0;var a=o.PriorityQueue.make();a.push(e,0);for(var s,c,d,B,h,f,N,M,S;!a.empty();){s=a.pop(),c=s.value,B=s.cost,h=i[c]||{};for(d in h)h.hasOwnProperty(d)&&(f=h[d],N=B+f,M=u[d],S=typeof u[d]>"u",(S||M>N)&&(u[d]=N,a.push(d,N),n[d]=c))}if(typeof t<"u"&&typeof u[t]>"u"){var A=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(A)}return n},extract_shortest_path_from_predecessor_list:function(i,e){for(var t=[],n=e;n;)t.push(n),i[n],n=i[n];return t.reverse(),t},find_path:function(i,e,t){var n=o.single_source_shortest_paths(i,e,t);return o.extract_shortest_path_from_predecessor_list(n,t)},PriorityQueue:{make:function(i){var e=o.PriorityQueue,t={},n;i=i||{};for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t.queue=[],t.sorter=i.sorter||e.default_sorter,t},default_sorter:function(i,e){return i.cost-e.cost},push:function(i,e){var t={value:i,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};r.exports=o})(gt)),gt.exports}var Jt;function ye(){return Jt||(Jt=1,(function(r){const o=F(),i=he(),e=me(),t=we(),n=Ce(),u=Xt(),a=_(),s=Ee();function c(A){return unescape(encodeURIComponent(A)).length}function d(A,P,I){const p=[];let b;for(;(b=A.exec(I))!==null;)p.push({data:b[0],index:b.index,mode:P,length:b[0].length});return p}function B(A){const P=d(u.NUMERIC,o.NUMERIC,A),I=d(u.ALPHANUMERIC,o.ALPHANUMERIC,A);let p,b;return a.isKanjiModeEnabled()?(p=d(u.BYTE,o.BYTE,A),b=d(u.KANJI,o.KANJI,A)):(p=d(u.BYTE_KANJI,o.BYTE,A),b=[]),P.concat(I,p,b).sort(function(E,C){return E.index-C.index}).map(function(E){return{data:E.data,mode:E.mode,length:E.length}})}function h(A,P){switch(P){case o.NUMERIC:return i.getBitsLength(A);case o.ALPHANUMERIC:return e.getBitsLength(A);case o.KANJI:return n.getBitsLength(A);case o.BYTE:return t.getBitsLength(A)}}function f(A){return A.reduce(function(P,I){const p=P.length-1>=0?P[P.length-1]:null;return p&&p.mode===I.mode?(P[P.length-1].data+=I.data,P):(P.push(I),P)},[])}function N(A){const P=[];for(let I=0;I<A.length;I++){const p=A[I];switch(p.mode){case o.NUMERIC:P.push([p,{data:p.data,mode:o.ALPHANUMERIC,length:p.length},{data:p.data,mode:o.BYTE,length:p.length}]);break;case o.ALPHANUMERIC:P.push([p,{data:p.data,mode:o.BYTE,length:p.length}]);break;case o.KANJI:P.push([p,{data:p.data,mode:o.BYTE,length:c(p.data)}]);break;case o.BYTE:P.push([{data:p.data,mode:o.BYTE,length:c(p.data)}])}}return P}function M(A,P){const I={},p={start:{}};let b=["start"];for(let g=0;g<A.length;g++){const E=A[g],C=[];for(let l=0;l<E.length;l++){const R=E[l],m=""+g+l;C.push(m),I[m]={node:R,lastCount:0},p[m]={};for(let y=0;y<b.length;y++){const w=b[y];I[w]&&I[w].node.mode===R.mode?(p[w][m]=h(I[w].lastCount+R.length,R.mode)-h(I[w].lastCount,R.mode),I[w].lastCount+=R.length):(I[w]&&(I[w].lastCount=R.length),p[w][m]=h(R.length,R.mode)+4+o.getCharCountIndicator(R.mode,P))}}b=C}for(let g=0;g<b.length;g++)p[b[g]].end=0;return{map:p,table:I}}function S(A,P){let I;const p=o.getBestModeForData(A);if(I=o.from(P,p),I!==o.BYTE&&I.bit<p.bit)throw new Error('"'+A+'" cannot be encoded with mode '+o.toString(I)+`.
|
|
4
|
-
Suggested mode is: `+o.toString(p));switch(I===o.KANJI&&!a.isKanjiModeEnabled()&&(I=o.BYTE),I){case o.NUMERIC:return new i(A);case o.ALPHANUMERIC:return new e(A);case o.KANJI:return new n(A);case o.BYTE:return new t(A)}}r.fromArray=function(P){return P.reduce(function(I,p){return typeof p=="string"?I.push(S(p,null)):p.data&&I.push(S(p.data,p.mode)),I},[])},r.fromString=function(P,I){const p=B(P,a.isKanjiModeEnabled()),b=N(p),g=M(b,I),E=s.find_path(g.map,"start","end"),C=[];for(let l=1;l<E.length-1;l++)C.push(g.table[E[l]].node);return r.fromArray(f(C))},r.rawSplit=function(P){return r.fromArray(B(P,a.isKanjiModeEnabled()))}})(at)),at}var Yt;function Be(){if(Yt)return W;Yt=1;const r=_(),o=Ct(),i=oe(),e=ie(),t=ue(),n=se(),u=ae(),a=Wt(),s=le(),c=de(),d=ge(),B=F(),h=ye();function f(g,E){const C=g.size,l=n.getPositions(E);for(let R=0;R<l.length;R++){const m=l[R][0],y=l[R][1];for(let w=-1;w<=7;w++)if(!(m+w<=-1||C<=m+w))for(let T=-1;T<=7;T++)y+T<=-1||C<=y+T||(w>=0&&w<=6&&(T===0||T===6)||T>=0&&T<=6&&(w===0||w===6)||w>=2&&w<=4&&T>=2&&T<=4?g.set(m+w,y+T,!0,!0):g.set(m+w,y+T,!1,!0))}}function N(g){const E=g.size;for(let C=8;C<E-8;C++){const l=C%2===0;g.set(C,6,l,!0),g.set(6,C,l,!0)}}function M(g,E){const C=t.getPositions(E);for(let l=0;l<C.length;l++){const R=C[l][0],m=C[l][1];for(let y=-2;y<=2;y++)for(let w=-2;w<=2;w++)y===-2||y===2||w===-2||w===2||y===0&&w===0?g.set(R+y,m+w,!0,!0):g.set(R+y,m+w,!1,!0)}}function S(g,E){const C=g.size,l=c.getEncodedBits(E);let R,m,y;for(let w=0;w<18;w++)R=Math.floor(w/3),m=w%3+C-8-3,y=(l>>w&1)===1,g.set(R,m,y,!0),g.set(m,R,y,!0)}function A(g,E,C){const l=g.size,R=d.getEncodedBits(E,C);let m,y;for(m=0;m<15;m++)y=(R>>m&1)===1,m<6?g.set(m,8,y,!0):m<8?g.set(m+1,8,y,!0):g.set(l-15+m,8,y,!0),m<8?g.set(8,l-m-1,y,!0):m<9?g.set(8,15-m-1+1,y,!0):g.set(8,15-m-1,y,!0);g.set(l-8,8,1,!0)}function P(g,E){const C=g.size;let l=-1,R=C-1,m=7,y=0;for(let w=C-1;w>0;w-=2)for(w===6&&w--;;){for(let T=0;T<2;T++)if(!g.isReserved(R,w-T)){let v=!1;y<E.length&&(v=(E[y]>>>m&1)===1),g.set(R,w-T,v),m--,m===-1&&(y++,m=7)}if(R+=l,R<0||C<=R){R-=l,l=-l;break}}}function I(g,E,C){const l=new i;C.forEach(function(T){l.put(T.mode.bit,4),l.put(T.getLength(),B.getCharCountIndicator(T.mode,g)),T.write(l)});const R=r.getSymbolTotalCodewords(g),m=a.getTotalCodewordsCount(g,E),y=(R-m)*8;for(l.getLengthInBits()+4<=y&&l.put(0,4);l.getLengthInBits()%8!==0;)l.putBit(0);const w=(y-l.getLengthInBits())/8;for(let T=0;T<w;T++)l.put(T%2?17:236,8);return p(l,g,E)}function p(g,E,C){const l=r.getSymbolTotalCodewords(E),R=a.getTotalCodewordsCount(E,C),m=l-R,y=a.getBlocksCount(E,C),w=l%y,T=y-w,v=Math.floor(l/y),V=Math.floor(m/y),$t=V+1,Et=v-V,te=new s(Et);let Y=0;const H=new Array(y),yt=new Array(y);let j=0;const ee=new Uint8Array(g.buffer);for(let k=0;k<y;k++){const G=k<T?V:$t;H[k]=ee.slice(Y,Y+G),yt[k]=te.encode(H[k]),Y+=G,j=Math.max(j,G)}const O=new Uint8Array(l);let Bt=0,D,q;for(D=0;D<j;D++)for(q=0;q<y;q++)D<H[q].length&&(O[Bt++]=H[q][D]);for(D=0;D<Et;D++)for(q=0;q<y;q++)O[Bt++]=yt[q][D];return O}function b(g,E,C,l){let R;if(Array.isArray(g))R=h.fromArray(g);else if(typeof g=="string"){let v=E;if(!v){const V=h.rawSplit(g);v=c.getBestVersionForData(V,C)}R=h.fromString(g,v||40)}else throw new Error("Invalid data");const m=c.getBestVersionForData(R,C);if(!m)throw new Error("The amount of data is too big to be stored in a QR Code");if(!E)E=m;else if(E<m)throw new Error(`
|
|
5
|
-
The chosen QR Code version cannot contain this amount of data.
|
|
6
|
-
Minimum version required to store current data is: `+m+`.
|
|
7
|
-
`);const y=I(E,C,R),w=r.getSymbolSize(E),T=new e(w);return f(T,E),N(T),M(T,E),A(T,C,0),E>=7&&S(T,E),P(T,y),isNaN(l)&&(l=u.getBestMask(T,A.bind(null,T,C))),u.applyMask(l,T),A(T,C,l),{modules:T,version:E,errorCorrectionLevel:C,maskPattern:l,segments:R}}return W.create=function(E,C){if(typeof E>"u"||E==="")throw new Error("No input text");let l=o.M,R,m;return typeof C<"u"&&(l=o.from(C.errorCorrectionLevel,o.M),R=c.from(C.version),m=u.from(C.maskPattern),C.toSJISFunc&&r.setToSJISFunction(C.toSJISFunc)),b(E,R,l,m)},W}var ht={},mt={},jt;function xt(){return jt||(jt=1,(function(r){function o(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let e=i.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+i);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");const t=parseInt(e.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+e.slice(0,6).join("")}}r.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,u=e.scale||4;return{width:n,scale:n?4:u,margin:t,color:{dark:o(e.color.dark||"#000000ff"),light:o(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},r.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},r.getImageWidth=function(e,t){const n=r.getScale(e,t);return Math.floor((e+t.margin*2)*n)},r.qrToImageData=function(e,t,n){const u=t.modules.size,a=t.modules.data,s=r.getScale(u,n),c=Math.floor((u+n.margin*2)*s),d=n.margin*s,B=[n.color.light,n.color.dark];for(let h=0;h<c;h++)for(let f=0;f<c;f++){let N=(h*c+f)*4,M=n.color.light;if(h>=d&&f>=d&&h<c-d&&f<c-d){const S=Math.floor((h-d)/s),A=Math.floor((f-d)/s);M=B[a[S*u+A]?1:0]}e[N++]=M.r,e[N++]=M.g,e[N++]=M.b,e[N]=M.a}}})(mt)),mt}var Ot;function pe(){return Ot||(Ot=1,(function(r){const o=xt();function i(t,n,u){t.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=u,n.width=u,n.style.height=u+"px",n.style.width=u+"px"}function e(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}r.render=function(n,u,a){let s=a,c=u;typeof s>"u"&&(!u||!u.getContext)&&(s=u,u=void 0),u||(c=e()),s=o.getOptions(s);const d=o.getImageWidth(n.modules.size,s),B=c.getContext("2d"),h=B.createImageData(d,d);return o.qrToImageData(h.data,n,s),i(B,c,d),B.putImageData(h,0,0),c},r.renderToDataURL=function(n,u,a){let s=a;typeof s>"u"&&(!u||!u.getContext)&&(s=u,u=void 0),s||(s={});const c=r.render(n,u,s),d=s.type||"image/png",B=s.rendererOpts||{};return c.toDataURL(d,B.quality)}})(ht)),ht}var wt={},Gt;function Re(){if(Gt)return wt;Gt=1;const r=xt();function o(t,n){const u=t.a/255,a=n+'="'+t.hex+'"';return u<1?a+" "+n+'-opacity="'+u.toFixed(2).slice(1)+'"':a}function i(t,n,u){let a=t+n;return typeof u<"u"&&(a+=" "+u),a}function e(t,n,u){let a="",s=0,c=!1,d=0;for(let B=0;B<t.length;B++){const h=Math.floor(B%n),f=Math.floor(B/n);!h&&!c&&(c=!0),t[B]?(d++,B>0&&h>0&&t[B-1]||(a+=c?i("M",h+u,.5+f+u):i("m",s,0),s=0,c=!1),h+1<n&&t[B+1]||(a+=i("h",d),d=0)):s++}return a}return wt.render=function(n,u,a){const s=r.getOptions(u),c=n.modules.size,d=n.modules.data,B=c+s.margin*2,h=s.color.light.a?"<path "+o(s.color.light,"fill")+' d="M0 0h'+B+"v"+B+'H0z"/>':"",f="<path "+o(s.color.dark,"stroke")+' d="'+e(d,c,s.margin)+'"/>',N='viewBox="0 0 '+B+" "+B+'"',S='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+N+' shape-rendering="crispEdges">'+h+f+`</svg>
|
|
8
|
-
`;return typeof a=="function"&&a(null,S),S},wt}var Qt;function Ae(){if(Qt)return z;Qt=1;const r=re(),o=Be(),i=pe(),e=Re();function t(n,u,a,s,c){const d=[].slice.call(arguments,1),B=d.length,h=typeof d[B-1]=="function";if(!h&&!r())throw new Error("Callback required as last argument");if(h){if(B<2)throw new Error("Too few arguments provided");B===2?(c=a,a=u,u=s=void 0):B===3&&(u.getContext&&typeof c>"u"?(c=s,s=void 0):(c=s,s=a,a=u,u=void 0))}else{if(B<1)throw new Error("Too few arguments provided");return B===1?(a=u,u=s=void 0):B===2&&!u.getContext&&(s=a,a=u,u=void 0),new Promise(function(f,N){try{const M=o.create(a,s);f(n(M,u,s))}catch(M){N(M)}})}try{const f=o.create(a,s);c(null,n(f,u,s))}catch(f){c(f)}}return z.create=o.create,z.toCanvas=t.bind(null,i.render),z.toDataURL=t.bind(null,i.renderToDataURL),z.toString=t.bind(null,function(n,u,a){return e.render(n,a)}),z}var Ie=Ae();const Ne=ne(Ie);export{Ne as Q};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as l,cn as u}from"./C6LKOky9.js";var o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function c(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),n.forEach(function(a){s(r,a,t[a])})}return r}function s(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var i=function(e,t){var n=c({},e,t.attrs);return l(u,c({},n,{icon:o}),null)};i.displayName="SearchOutlined";i.inheritAttrs=!1;export{i as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as i,o as r,j as l,h as o,U as s,m as n,t as c,k as _,w as d,g as m,H as g,_ as p}from"./C6LKOky9.js";import{_ as f}from"./DpJBkeS-.js";const x={},u={class:"nc-h-screen grid place-items-center text-center"},v={class:"flex flex-col items-center gap-6"},N={class:"text-xl text-nc-content-gray font-bold"};function B(e,t){const a=p;return r(),l("div",u,[o("div",v,[s(e.$slots,"icon",{},()=>[t[1]||(t[1]=o("img",{width:"48",alt:"NocoDB",src:f},null,-1))]),o("div",N,[s(e.$slots,"title",{},()=>[n(c(e.$t("title.thisPageDoesNotExist")),1)])]),_(a,{onClick:t[0]||(t[0]=k=>("navigateTo"in e?e.navigateTo:m(g))("/"))},{default:d(()=>[...t[2]||(t[2]=[n(" Home",-1)])]),_:1})])])}const $=Object.assign(i(x,[["render",B]]),{__name:"GeneralPageDoesNotExist"});export{$ as _};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DuzBGfJ3.js","./C6LKOky9.js","./entry.B91DZ4_L.css","./Modal.BYPzfqB3.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{d as Z,p as u,C as J,e as se,b as le,B as ae,aH as pe,o as n,f as R,w as S,h as t,g as l,j as i,k as v,Q as oe,l as A,t as D,bQ as be,a5 as Y,Y as ee,m as fe,i as K,q as f,b6 as ye,ax as me,ay as xe,N as ve,bS as ge,F as O,R as te,dm as _e,bf as ke,a6 as he,K as Ae}from"./C6LKOky9.js";import{_ as we}from"./DZvF-Bn_.js";import{_ as Se}from"./CvfBKHwK.js";import De from"./DuzBGfJ3.js";import{writeFile as ne,utils as C,read as Ce}from"./CKwrMZHi.js";import{_ as Fe}from"./N6HuQj9i.js";import{_ as $e}from"./DN5xIXQr.js";import"./BRAK1JSF.js";import"./B8LajyGq.js";import"./BQQOEPN4.js";import"./UODVGT7h.js";import"./DPq-K6KH.js";import"./DqyG-W75.js";const Ue=me(()=>xe(()=>import("./DuzBGfJ3.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(U=>U.default||U)),ze={key:0,class:"rounded-lg p-2 bg-[#FEF3F2] mb-5 text-[#B42318] flex items-center gap-2"},Ie={key:1,class:"flex flex-col gap-2 items-center justify-center p-2"},Ee={key:2,class:"rounded-lg p-4 border-1 border-[#EAECF0] flex flex-col gap-2"},Pe={class:"text-[#1D2939] font-bold text-lg"},je={class:"flex items-center justify-center gap-4"},Me={class:"relative w-full h-2 bg-[#F2F4F7] rounded-md"},Te={class:"text-sm font-bold text-[#344054] text-center"},Ne={class:"flex flex-col gap-1 items-center justify-center"},Be={key:0,class:"text-[#7F56D9] text-sm"},Re={key:1,class:"text-[#7F56D9] text-xs"},Le={key:2,class:"text-green-600"},Ve={class:"flex gap-3 mt-8 items-center justify-center"},Ge=["disabled"],We=Z({__name:"uploadStyleAttributes",props:{showUploadStyleAttributesModal:{type:Boolean},handleStyleAttributesModalClose:{type:Function},refreshAttributesData:{type:Function},table:{}},emits:["update:refreshStyles"],setup(U,{emit:z}){const k=U,L=z,g=u(k.showUploadStyleAttributesModal);J(()=>k.showUploadStyleAttributesModal,e=>{g.value=e});const{$axios:E}=se(),P=le(),{user:re}=P,j=ae(),V=pe(),M=u(null),r=u(!1),b=u(null),F=u(""),$=u([]),c=u(0),p=u(!1),_=u(!1),x=u({isUploading:!1,type:""}),h=u(0),G=()=>{h.value=0;const e=ye(()=>{h.value<90?h.value+=10:clearInterval(e)},100)};J(()=>g.value,e=>{console.log(e,"new val",c.value),e||(c.value>0&&(L("update:refreshStyles",!0),V.name!=="index-typeOrId-styleMaster"&&j.push("styleMaster")),k.handleStyleAttributesModalClose(),r.value=!1,b.value=null,F.value="",p.value=!1,$.value=[],c.value=0,_.value=!1)});const B=e=>[".xlsx"].some(d=>e.name.toLowerCase().endsWith(d)),W=async e=>{try{if(!B(e)){f.error("Please upload only Excel (.xlsx) files");return}x.value={isUploading:!0,type:"Uploading file"},G();const s=new FormData;s.append("file",e,e.name),s.append("type","style-sheet");const d=await E.post("/noco/upload",s,{headers:{"Content-Type":"multipart/form-data"}});if(d.status===200){b.value=e,f.success("File uploaded successfully");const{url:y}=d.data;F.value=y,p.value=!1}else console.error("Error uploading file"),f.error("Error uploading file")}catch(s){console.error("Error uploading file:",s),f.error("Error uploading file"),b.value=null}finally{x.value.isUploading=!1}},X=e=>{if(e.preventDefault(),r.value=!1,e.dataTransfer?.files){const s=e.dataTransfer.files[0];s&&(B(s)?W(s):p.value=!0)}},q=e=>{const s=e.target.files;if(s?.length){const d=s[0];d&&B(d)&&W(d)}},H=()=>{M.value?.click()},Q=async()=>{try{if(!F){f.error("No file uploaded");return}x.value={isUploading:!0,type:"Importing styles"},G();const e=await E.post("/noco/styles/style-attributes",{fileUrl:F.value,table:k.table}),s=e.data;e.status===200?(h.value=100,f.success(s.message),_.value=!0,k.refreshAttributesData(),k.handleStyleAttributesModalClose()):(console.error("Error updating style master"),f.error(s.message))}catch(e){console.error("Error updating style master",e),f.error(`Error updating style master: ${e.response?.data?.message}`)}finally{x.value.isUploading=!1}},I=async()=>{try{const e=await E.get("/noco/styles/style-attributes");if(e.status===200){const s=e.data,d=a(s);ne(d,"style_attributes_multi_sheet.xlsx")}}catch(e){f.error(e.message||"Download Attributes sheet failed")}},a=e=>{const s=C.book_new();if(e.data){const d=Ce(e.data,{type:"base64"});d.SheetNames.forEach(y=>{const m=d.Sheets[y];m&&C.book_append_sheet(s,m,y)})}return Object.keys(e).sort().forEach(d=>{if(d!=="data"&&e[d]){const y=e[d];if(Array.isArray(y)&&y.length>0){const m=C.json_to_sheet(y),T=d.charAt(0).toUpperCase()+d.slice(1);C.book_append_sheet(s,m,T)}else if(typeof y=="object"&&y!==null){const m=C.json_to_sheet([y]),T=d.charAt(0).toUpperCase()+d.slice(1);C.book_append_sheet(s,m,T)}}}),s};return(e,s)=>{const d=oe,y=Ue;return n(),R(y,{visible:l(g),"onUpdate:visible":s[5]||(s[5]=m=>K(g)?g.value=m:null),size:"medium","show-separator":!1,closable:!0,"mask-closable":!0},{header:S(()=>[...s[6]||(s[6]=[t("div",{class:"text-lg font-bold text-black"},"Import style Attributes from Excel",-1)])]),default:S(()=>[t("div",{class:"flex flex-col gap-2"},[t("button",{class:"rounded-lg py-2.5 px-4.5 text-white font-bold w-full bg-[#039855] mb-4",onClick:I}," Download All Attributes ")]),l(p)?(n(),i("div",ze,[v(d,{icon:"error"}),s[7]||(s[7]=t("span",null,"File must be .XLSX",-1))])):A("",!0),l(_)?(n(),i("div",Ie,[v(d,{icon:"check",class:"text-[#039855] w-10 h-10"}),s[8]||(s[8]=t("div",{class:"text-[#101828] text-lg font-bold"},D("Import successful"),-1)),s[9]||(s[9]=t("div",{class:"text-[#667085] text-sm"},"Import has been successfully completed.",-1))])):l(x).isUploading?(n(),i("div",Ee,[t("span",Pe,D(l(x).type),1),t("div",je,[t("div",Me,[t("div",{class:"absolute h-full bg-[#7F56D9] rounded",style:be({width:`${l(h)}%`})},null,4)]),t("div",Te,D(l(h))+"%",1)])])):(n(),i("div",{key:3,class:ee(["border-1 border-[#D6BBFB] bg-[#FCFAFF] rounded-lg py-4 px-6 cursor-pointer",[{"bg-[#eefaf2] border-[#93bea1]":l(b)}]]),onDragenter:s[0]||(s[0]=Y(m=>r.value=!0,["prevent"])),onDragleave:s[1]||(s[1]=Y(m=>r.value=!1,["prevent"])),onDragover:s[2]||(s[2]=Y(()=>{},["prevent"])),onDrop:X,onClick:H},[t("div",Ne,[t("input",{ref_key:"fileInput",ref:M,type:"file",class:"hidden",accept:".xlsx",onChange:q},null,544),v(d,{icon:l(b)?"check":"cloudUpload2",class:ee(["h-12 w-12 mb-2",[{"fill-[#7F56D9] text-[#7F56D9]":!l(b)},{"text-[#039855]":l(b)}]])},null,8,["icon","class"]),l(b)?A("",!0):(n(),i("div",Be,[...s[10]||(s[10]=[t("span",{class:"text-[#6941C6] font-bold"},"Add file",-1),fe(" or drag and drop ",-1)])])),l(b)?(n(),i("span",Le,D(l(b).name)+" uploaded successfully!",1)):(n(),i("span",Re,"File type must be .XLSX"))])],34)),t("div",Ve,[t("button",{class:"rounded-lg py-2.5 px-4.5 text-[#344054] font-bold border-1 border-[#D0D5DD] w-[50%]",onClick:s[3]||(s[3]=m=>g.value=!1)}," Cancel "),l(_)?A("",!0):(n(),i("button",{key:0,class:"rounded-lg py-2.5 px-4.5 text-white font-bold w-[50%] bg-[#7F56D9] border-1 border-[#7F56D9] disabled:opacity-50 disabled:cursor-not-allowed",disabled:!l(b),onClick:Q}," Upload ",8,Ge)),l(_)?(n(),i("button",{key:1,class:"rounded-lg py-2.5 px-4.5 text-white font-bold w-[50%] bg-[#039855]",onClick:s[4]||(s[4]=m=>g.value=!1)}," Done ")):A("",!0)])]),_:1},8,["visible"])}}}),Oe=Object.assign(We,{__name:"WorkspaceStyleAttributesUploadStyleAttributes"}),Ke={class:"flex flex-col overflow-y-auto"},Xe={key:0,class:"flex flex-col items-center justify-center gap-4 h-[calc(100vh-200px)]"},qe={key:1},He={class:"tab","data-testid":"nc-erd-tab"},Qe={class:"flex items-center justify-end my-4"},Ye={class:"h-full p-6"},Je={key:0,class:"bg-[#E64937] rounded-lg p-1 text-sm text-[#101828]"},Ze={key:1,class:"bg-[#35A60C] rounded-lg p-1 text-sm text-[#101828]"},et={key:1},tt={key:2},st=["onClick"],lt=["onClick"],at={key:4,class:"text"},ot={key:5,class:"w-full h-full flex flex-row items-center"},nt={class:"mx-2 px-2 bg-[#F9FAFB] rounded-lg w-8"},rt={key:6},it={class:"flex flex-col gap-5"},dt={class:"flex flex-col gap-4"},ut={class:"flex flex-col gap-2"},ct=["value"],pt={key:0,class:"flex flex-col gap-2"},bt={key:1,class:"flex flex-col gap-2"},ft=["value"],yt={class:"flex items-center justify-between"},mt=["disabled"],xt={class:"flex flex-col gap-5"},vt={class:"flex flex-col gap-4"},gt={class:"flex flex-col gap-2"},_t=["value"],kt={key:0,class:"flex flex-col gap-2"},ht={key:1,class:"flex flex-col gap-2"},At=["value"],wt={class:"flex items-center justify-between"},St=["disabled"],Dt=Z({__name:"StyleAttributesTable",setup(U){const z=ae(),k=le(),{user:L}=k,g=u(!1),E=u(!0),P=u({});ke().public.tesseraApiUrl;const{$axios:j}=se(),V=new URLSearchParams(z.currentRoute.value.query),M=u([]),r=u(""),b=u(!1),F=u(!1),$=u(!1),c=u({attributeValue:"",table:"",sizeCodes:null,marketPlace:null}),p=u({id:"",value:"",table:"",sizeCodes:null,marketPlace:null});u({page:V.get("page")||"1",pageSize:V.get("pageSize")||"10"});const _=a=>typeof a!="string"||a.length===0?a:a.charAt(0).toLowerCase()+a.slice(1),x=u([{key:`${_(r.value.replace("StyleAttribute",""))}`,title:`${r.value.replace("StyleAttribute","")}`,dataIndex:`${_(r.value.replace("StyleAttribute",""))}`,width:300},{key:"sizeCodes",title:"Size Codes",dataIndex:"sizeCodes",width:300},{key:"marketPlace",title:"MarketPlace",dataIndex:"marketPlace",width:300},{key:"updatedBy",title:"Updated By",dataIndex:"updatedBy",width:150},{key:"createdAt",title:"Created At",dataIndex:"createdAt",width:150},{key:"updatedAt",title:"Updated At",dataIndex:"updatedAt",width:150},{key:"action",title:"Action",dataIndex:"action",width:150},{key:"isDeleted",title:"Status",dataIndex:"isDeleted",width:150}]),h=u([]),G=he({}),B=a=>({class:`${G[a.id]?"selected":""}`}),W=async a=>{b.value=!0,p.value.id=a.id,p.value.value=a[`${_(r.value.replace("StyleAttribute",""))}`],p.value.table=r.value,a.sizeCodes&&(p.value.sizeCodes=a.sizeCodes),a.marketPlace&&(p.value.marketPlace=a.marketPlace)},X=async()=>{try{const a=await j.patch("/noco/styles/style-attributes",{...p.value,action:"UPDATE"});a.status===200?(f.success("Attribute updated successfully"),b.value=!1,p.value.id="",p.value.value="",p.value.table="",I()):f.error("Failed to update attribute: "+a.data.message)}catch(a){console.error("Error updating attribute:",a),f.error(`Failed to update attribute: ${a.response?.data?.message}`)}},q=async()=>{try{c.value.table=r.value;const a=await j.post("/noco/styles/style-attributes",{...c.value});a.status===200?(f.success("Attribute added successfully"),$.value=!1,c.value.attributeValue="",c.value.table="",c.value.marketPlace=null,c.value.sizeCodes=null,I()):f.error(`Failed to add attribute ${a.data.message}`)}catch(a){console.error("Error adding single attribute:",a),f.error(`Failed to add attribute: ${a.response?.data?.message}`)}},H=async()=>{const a=C.book_new(),e=[`${_(r.value.replace("StyleAttribute",""))}`,...r.value==="StyleAttributeDenimColour"?["marketPlace"]:[],...["StyleAttributeAgeGroup","StyleAttributeSizeRange"].includes(r.value)?["sizeCodes"]:[]],s=C.aoa_to_sheet([e]);C.book_append_sheet(a,s,"Sheet1"),ne(a,`${r.value}_template.xlsx`)},Q=async a=>{try{const e=await j.patch("/noco/styles/style-attributes",{id:a.id,table:r.value,action:"STATUS_CHANGE"});e.status===200?(f.success("Status changed successfully"),I()):f.error("Failed to change status: "+e.data.message)}catch(e){console.error("Error changing status:",e),f.error(`Failed to change status: ${e.response?.data?.message}`)}},I=async()=>{try{g.value=!0;const a=await j.get("/noco/styles/style-attributes");P.value=a.data,M.value=Object.keys(a.data).sort(),r.value=r.value||M.value[0]||""}catch(a){console.error("Error fetching attributes:",a)}finally{g.value=!1}};return ve(()=>{I()}),J(()=>r.value,a=>{a&&(x.value[0].key=`${_(r.value.replace("StyleAttribute",""))}`,x.value[0].title=`${r.value.replace("StyleAttribute","")}`,x.value[0].dataIndex=`${_(r.value.replace("StyleAttribute",""))}`,["SizeRange","AgeGroup","DenimColour"].includes(a.replace("StyleAttribute",""))?["SizeRange","AgeGroup"].includes(a.replace("StyleAttribute",""))?h.value=x.value.filter(e=>e.key!=="marketPlace"):["DenimColour"].includes(a.replace("StyleAttribute",""))&&(h.value=x.value.filter(e=>e.key!=="sizeCodes")):h.value=x.value.filter(e=>!["sizeCodes","marketPlace"].includes(e.key)),c.value.attributeValue="",c.value.table="",c.value.marketPlace=null,c.value.sizeCodes=null)}),(a,e)=>{const s=ge("NcSpin"),d=oe,y=we,m=Se,T=De,ie=Oe,de=_e,ue=Fe;return n(),i("div",Ke,[l(g)&&l(E)?(n(),i("div",Xe,[v(s,{size:"large"}),e[13]||(e[13]=t("span",{class:"text-lg font-medium text-black"},"Loading style attributes...",-1))])):(n(),i("div",qe,[v(ue,{activeKey:l(r),"onUpdate:activeKey":e[12]||(e[12]=N=>K(r)?r.value=N:null),class:"nc-source-tab w-full h-[calc(100%_-_58px)] max-h-[calc(100%_-_58px)]"},{default:S(()=>[(n(!0),i(O,null,te(l(M),N=>(n(),R(de,{key:N},{tab:S(()=>[t("div",He,[t("div",null,D(N.replace("StyleAttribute","")),1)])]),default:S(()=>[t("div",Qe,[["SizeRange","AgeGroup","DenimColour"].includes(N.replace("StyleAttribute",""))?A("",!0):(n(),i("button",{key:0,class:"mx-2 py-2 px-3.5 rounded-lg bg-white shadow-xs border-1 border-[#D0D5DD] text-black font-bold text-sm",onClick:H}," Download Template ")),t("button",{class:"mx-2 py-2 px-3.5 rounded-lg bg-white shadow-xs border-1 border-[#D0D5DD] text-black font-bold text-sm",onClick:e[0]||(e[0]=o=>$.value=!0)}," Add Single Attribute "),["SizeRange","AgeGroup","DenimColour"].includes(N.replace("StyleAttribute",""))?A("",!0):(n(),i("button",{key:1,class:"mx-2 py-2 px-3.5 rounded-lg bg-white shadow-xs border-1 border-[#D0D5DD] text-black font-bold text-sm",onClick:e[1]||(e[1]=o=>F.value=!0)}," Upload File "))]),t("div",Ye,[v(y,{columns:l(h),data:l(P)[l(r)]||[],"custom-row":B,loading:l(g)&&!l(E),"header-row-class-name":"bg-white","header-cell-class-name":"!bg-[#F9FAFB] !text-[#101828] !font-bold !text-sm","body-cell-class-name":"!tect-[#1D2939] !text-sm","sticky-first-column":"","sticky-last-column":"","destroy-on-close":""},{bodyCell:S(({column:o,record:w})=>[o.key==="isDeleted"?(n(),i(O,{key:0},[w[o.dataIndex]?(n(),i("div",Je," Inactive ")):(n(),i("div",Ze,"Active"))],64)):o.key==="createdAt"?(n(),i("span",et,D(w[o.dataIndex].split("T")[0]),1)):o.key==="updatedAt"?(n(),i("span",tt,D(w[o.dataIndex].split("T")[0]),1)):o.key==="action"?(n(),i(O,{key:3},[t("button",{class:"mx-2 bg-[#7F56D9] rounded-lg p-1 flex items-center justify-center text-white border-1 border-[#7F56D9]",onClick:()=>W(w)},[v(d,{icon:"edit"})],8,st),t("button",{class:"mx-2 bg-[#7F56D9] rounded-lg p-1 flex items-center justify-center text-white border-1 border-[#7F56D9]",onClick:()=>Q(w)},[w.isDeleted===!0?(n(),R(d,{key:0,icon:"plus"})):w.isDeleted===!1?(n(),R(d,{key:1,icon:"minus"})):A("",!0)],8,lt)],64)):o.key==="updatedBy"?(n(),i("span",at,D(w[o.dataIndex]),1)):o.key==="sizeCodes"?(n(),i("div",ot,[(n(!0),i(O,null,te(w[o.dataIndex].split(","),ce=>(n(),i("div",nt,D(ce),1))),256))])):(n(),i("span",rt,D(w[o.dataIndex]),1))]),emptyText:S(()=>[...e[14]||(e[14]=[t("div",{class:"flex flex-col items-center justify-center gap-2"},[t("img",{src:$e,alt:"Not Available",class:"w-50 h-50"}),t("div",{class:"flex flex-col items-center justify-center gap-2"},[t("span",{class:"text-2xl font-bold text-black"},"No style Attribute found"),t("span",{class:"text-sm text-black"},"Looks like you have not created any style Attributes")])],-1)])]),tableFooter:S(()=>[...e[15]||(e[15]=[t("div",{class:"flex p-4 items-center justify-between bg-[#FFFFFF] border-t-1 border-[#EAECF0]"},null,-1)])]),_:1},8,["columns","data","loading"])]),v(T,{visible:l(b),"onUpdate:visible":e[6]||(e[6]=o=>K(b)?b.value=o:null),title:"Attribute Update",closable:!0,"mask-closable":!0,size:"medium"},{default:S(()=>[t("div",it,[e[19]||(e[19]=t("span",{class:"text-sm text-[#1D2939]"}," Update the attribute. ",-1)),t("div",dt,[t("div",ut,[e[16]||(e[16]=t("span",null,"Enter the new value for attribute",-1)),t("input",{type:"text",class:"w-full p-2 rounded-lg border-1 border-[#D0D5DD] text-base text-[#101828]",value:l(p).value,onInput:e[2]||(e[2]=o=>l(p).value=o.target?.value.trim().toUpperCase())},null,40,ct)]),l(r)==="StyleAttributeDenimColour"?(n(),i("div",pt,[e[17]||(e[17]=t("span",null,"Select the marketplace mapping",-1)),v(m,{"show-search":"",size:"large","dropdown-class-name":"text-sm text-[#1D2939] nc-select-dropdown-fixed","select-class-name":"select-custom","suffix-icon":"chevronDown",placeholder:"Select Marketplace Mapping",options:l(P).StyleAttributeMarketPlace?.map(o=>({id:o.id,label:o.marketPlace,value:o.marketPlace})),value:l(p).marketPlace,"onUpdate:value":e[3]||(e[3]=o=>l(p).marketPlace=o)},null,8,["options","value"])])):A("",!0),["StyleAttributeAgeGroup","StyleAttributeSizeRange"].includes(l(r))?(n(),i("div",bt,[e[18]||(e[18]=t("span",null,"Add Size codes",-1)),t("input",{type:"text",placeholder:"Enter the size codes values seperated by ','",class:"w-full p-2 rounded-lg border-1 border-[#D0D5DD] text-base text-[#101828]",value:l(p).sizeCodes,onInput:e[4]||(e[4]=o=>l(p).sizeCodes=o.target?.value.trim())},null,40,ft)])):A("",!0),t("div",yt,[t("button",{class:"py-2 px-3.5 rounded-lg bg-white shadow-xs border-1 border-[#D0D5DD] text-black font-bold text-sm",onClick:e[5]||(e[5]=o=>b.value=!1)}," Cancel "),t("button",{class:"py-2 px-3.5 rounded-lg bg-[#039855] shadow-xs text-white font-bold text-sm",onClick:X,disabled:!l(p).value}," Update ",8,mt)])])])]),_:1},8,["visible"]),v(T,{visible:l($),"onUpdate:visible":e[11]||(e[11]=o=>K($)?$.value=o:null),title:"Add Single Attribute",closable:!0,"mask-closable":!0,size:"medium"},{default:S(()=>[t("div",xt,[e[23]||(e[23]=t("span",{class:"text-sm text-[#1D2939]"}," Add Attribute. ",-1)),t("div",vt,[t("div",gt,[e[20]||(e[20]=t("span",null,"Enter the value for attribute",-1)),t("input",{type:"text",class:"w-full p-2 rounded-lg border-1 border-[#D0D5DD] text-base text-[#101828]",value:l(c).attributeValue,onInput:e[7]||(e[7]=o=>l(c).attributeValue=o.target?.value.trim().toUpperCase())},null,40,_t)]),l(r)==="StyleAttributeDenimColour"?(n(),i("div",kt,[e[21]||(e[21]=t("span",null,"Select the marketplace mapping",-1)),v(m,{"show-search":"",size:"large","dropdown-class-name":"text-sm text-[#1D2939] nc-select-dropdown-fixed","select-class-name":"select-custom","suffix-icon":"chevronDown",placeholder:"Select Marketplace Mapping",options:l(P).StyleAttributeMarketPlace?.map(o=>({id:o.id,label:o.marketPlace,value:o.marketPlace})),value:l(c).marketPlace,"onUpdate:value":e[8]||(e[8]=o=>l(c).marketPlace=o)},null,8,["options","value"])])):A("",!0),["StyleAttributeAgeGroup","StyleAttributeSizeRange"].includes(l(r))?(n(),i("div",ht,[e[22]||(e[22]=t("span",null,"Add Size codes",-1)),t("input",{type:"text",placeholder:"Enter the size codes values seperated by ','",class:"w-full p-2 rounded-lg border-1 border-[#D0D5DD] text-base text-[#101828]",value:l(c).sizeCodes,onInput:e[9]||(e[9]=o=>l(c).sizeCodes=o.target?.value.trim().toUpperCase())},null,40,At)])):A("",!0),t("div",wt,[t("button",{class:"py-2 px-3.5 rounded-lg bg-white shadow-xs border-1 border-[#D0D5DD] text-black font-bold text-sm",onClick:e[10]||(e[10]=o=>$.value=!1)}," Cancel "),t("button",{class:"py-2 px-3.5 rounded-lg bg-[#039855] shadow-xs text-white font-bold text-sm",onClick:q,disabled:!l(c).attributeValue,"disabled-style":"opacity-50 cursor-not-allowed"}," Add ",8,St)])])])]),_:1},8,["visible"]),v(ie,{"show-upload-style-attributes-modal":l(F),"handle-style-attributes-modal-close":()=>F.value=!1,"refresh-attributes-data":I,table:l(r)},null,8,["show-upload-style-attributes-modal","handle-style-attributes-modal-close","table"])]),_:2},1024))),128))]),_:1},8,["activeKey"])]))])}}}),Ct=Object.assign(Dt,{__name:"WorkspaceStyleAttributesTable"}),Ft={},$t={class:"flex flex-col w-full h-screen bg-[#F7F7F8] p-6"};function Ut(U,z){const k=Ct;return n(),i("div",$t,[z[0]||(z[0]=t("div",{class:"flex items-center justify-between"},[t("div",{class:"font-bold text-2xl"},"Style Attributes"),t("div",{class:"flex items-center justify-between gap-6"})],-1)),v(k)])}const zt=Object.assign(Ae(Ft,[["render",Ut]]),{__name:"WorkspaceStyleAttributesView"}),Ot=Z({__name:"styleAttributes",setup(U){return(z,k)=>{const L=zt;return n(),R(L)}}});export{Ot as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./C6LKOky9.js","./entry.B91DZ4_L.css","./gbKlM4lC.js","./VirtualCell.Dz53FJvf.css","./B__pJH7R.js","./BRac1jiv.js","./Cell.qlg9T3aF.css","./B3lum8zQ.js","./BZaag6Ow.js","./BRAK1JSF.js","./B8LajyGq.js","./BQQOEPN4.js","./UODVGT7h.js","./DPq-K6KH.js","./DqyG-W75.js","./Pagination.BgtWvJGd.css","./DdT_fcG0.js","./B5IQ1MTu.js","./lsVYq3A5.js","./oJXkyIOa.js","./boyBAVNN.js","./DBjyFBR_.js","./BztCckgD.js","./qVj9e9X7.js","./C26Qj2a4.js","./1QOSI9Cg.js","./R1OTc6xI.js","./CVQmbhK4.js","./DaJ3iJwN.js","./BAPIzECJ.js","./BMp_dzM0.js","./BPYV7pHx.js","./BmNUIaUC.js","./BGKTupoj.js","./DHzDwR0c.js","./RwL55bw_.js","./CzURwYi-.js","./DNCi98wH.js","./BIhGzgWM.js","./VirtualCell.Dihj6yIF.css","./CqpFa4tZ.js","./CQewCz9m.js","./D2Vdk0H3.js","./Divider.Cvoc5Z1t.css","./IoMLRS21.js","./DateWeekSelector.BDBlPvRU.css","./Bk7NhBiK.js","./BoCYP1Tw.js","./CmTBtFYc.js","./DbQ0dWwx.js","./sub9kxHx.js","./Cell.7OHhiNdE.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{aF as J,o as n,j as l,h as u,d as K,ai as I,p as c,fo as Y,c as q,aG as W,bB as X,hE as Z,gI as ee,r as te,k as m,w as r,F as g,g as e,R as E,f as d,l as h,Q as ne,t as L,m3 as ae,ao as oe,eU as z,n as le,a5 as se,m as D,Y as A,ej as re,x as R,i$ as ie,aa as ce,ax as y,ay as f,az as v,gP as me,hQ as de,j8 as ue,m4 as pe,K as _e}from"./C6LKOky9.js";import{i as he}from"./CgeBSb2D.js";import{_ as ye}from"./BxDqVdNG.js";const fe={class:"nc-icon",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function xe(t,o){return n(),l("svg",fe,[...o[0]||(o[0]=[u("path",{fill:"currentColor",d:"M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8"},null,-1)])])}const ge=J({name:"mdi-loading",render:xe}),ve=y(()=>f(()=>import("./C6LKOky9.js").then(t=>t.n1),__vite__mapDeps([0,1]),import.meta.url).then(t=>t.default||t)),we=y(()=>f(()=>import("./gbKlM4lC.js"),__vite__mapDeps([2,0,1,3]),import.meta.url).then(t=>t.default||t)),ke=y(()=>f(()=>import("./B__pJH7R.js"),__vite__mapDeps([4,0,1,5,6]),import.meta.url).then(t=>t.default||t)),be=y(()=>f(()=>import("./B3lum8zQ.js").then(t=>t.V),__vite__mapDeps([7,0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39]),import.meta.url).then(t=>t.default||t)),Ve=y(()=>f(()=>import("./CqpFa4tZ.js").then(t=>t.C),__vite__mapDeps([40,0,1,41,42,43,37,25,26,10,14,27,28,29,11,13,30,31,44,45,38,46,47,48,49,24,23,21,16,19,20,50,51]),import.meta.url).then(t=>t.default||t)),Ie={class:"nc-list-item-wrapper group px-[1px] hover:bg-gray-50 border-y-1 border-gray-200 border-t-transparent"},Le={class:"flex items-center gap-3"},Pe={key:0},Te={key:1,class:"h-11 w-11 !min-h-11 !min-w-11 !max-h-11 !max-w-11 !flex flex-row items-center !rounded-l-xl justify-center"},Ce={class:"flex-1 flex flex-col gap-1 justify-center overflow-hidden"},Ee={class:"flex justify-start"},ze={class:"font-semibold text-brand-500 nc-display-value truncate leading-[20px]"},De={key:0,class:"flex ml-[-0.25rem] sm:flex-row xs:flex-col xs:mt-2 gap-4 min-h-5"},Ae={key:0,class:"flex flex-col gap-[-1]"},Re={class:"nc-link-record-cell flex w-full max-w-full"},je={key:1,class:"flex flex-row w-full max-w-72 h-5 pl-1 items-center justify-start"},Fe={key:1,class:"flex-none flex items-center w-7"},Se={key:0,class:"flex"},Ue=K({__name:"ListItem",props:{row:{},fields:{},attachment:{},relatedTableDisplayValueProp:{},displayValueTypeAndFormatProp:{},isLoading:{type:Boolean,default:!1},isLinked:{type:Boolean},isSelected:{type:Boolean,default:!1}},emits:["expand","linkOrUnlink"],setup(t){const o=t;v(me,c(!0)),v(de,c(1)),v(ue,c(!0)),v(pe,c(!0));const P=I(Y,c(!1)),s=q(o,"row"),{isLinked:x,isLoading:T,isSelected:j}=W(o),C=I(X,c(!1)),w=I(Z,c(!1)),{getPossibleAttachmentSrc:F}=ee(),k=R(()=>{try{return o.attachment&&s.value[o.attachment.title]?typeof s.value[o.attachment.title]=="string"?JSON.parse(s.value[o.attachment.title]):s.value[o.attachment.title]:[]}catch{return[]}}),S=R(()=>s.value[o.relatedTableDisplayValueProp]&&o.displayValueTypeAndFormatProp.type&&o.displayValueTypeAndFormatProp.format?ie(s.value[o.relatedTableDisplayValueProp],o.displayValueTypeAndFormatProp.format,o.displayValueTypeAndFormatProp.format!==ce.Time):s.value[o.relatedTableDisplayValueProp]);return(i,p)=>{const U=ve,B=ye,b=ne,$=we,O=ke,N=be,M=Ve,V=oe,H=ge,G=re,Q=te("e");return n(),l("div",Ie,[m(G,{tabindex:"0",class:A(["nc-list-item !outline-none transition-all relative group-hover:bg-gray-50 cursor-auto",{"!bg-white":e(T),"!hover:bg-white":e(w),"nc-is-selected":e(j)}]),"body-style":{padding:"6px 10px !important",borderRadius:0},hoverable:!1},{default:r(()=>[u("div",Le,[t.attachment?(n(),l(g,{key:0},[e(k)&&e(k).length?(n(),l("div",Pe,[m(B,{autoplay:"",class:"!w-11 !h-11 !max-h-11 !max-w-11"},{customPaging:r(()=>[...p[2]||(p[2]=[])]),default:r(()=>[(n(!0),l(g,null,E(e(k),(a,_)=>(n(),l(g,null,[("isImage"in i?i.isImage:e(he))(a.title,a.mimetype??a.type)?(n(),d(U,{key:`carousel-${a.title}-${_}`,class:"!w-11 !h-11 !max-h-11 !max-w-11object-cover !rounded-l-xl",srcs:e(F)(a,"tiny")},null,8,["srcs"])):h("",!0)],64))),256))]),_:1})])):(n(),l("div",Te,[m(b,{class:"w-full h-full !text-6xl !leading-10 !text-transparent rounded-lg",icon:"fileImage"})]))],64)):h("",!0),u("div",Ce,[u("div",Ee,[u("span",ze,L(e(S)),1)]),t.fields.length>0?(n(),l("div",De,[(n(!0),l(g,null,E(t.fields,a=>(n(),l("div",{key:a.id,class:"sm:w-1/3 sm:max-w-1/3 sm:overflow-hidden"},[("isRowEmpty"in i?i.isRowEmpty:e(ae))({row:e(s)},a)?(n(),l("div",je,"-")):(n(),l("div",Ae,[m(V,{class:"z-10 flex",placement:"bottomLeft","arrow-point-at-center":!1},{title:r(()=>[e(z)(a)?(n(),d($,{key:0,class:"text-gray-100 !text-sm nc-link-record-cell-tooltip",column:a,"hide-menu":!0},null,8,["column"])):(n(),d(O,{key:1,class:"text-gray-100 !text-sm nc-link-record-cell-tooltip",column:a,"hide-menu":!0},null,8,["column"]))]),default:r(()=>[u("div",Re,[e(z)(a)?(n(),d(N,{key:0,modelValue:e(s)[a.title],"onUpdate:modelValue":_=>e(s)[a.title]=_,row:e(s),column:a,class:"!h-auto"},null,8,["modelValue","onUpdate:modelValue","row","column"])):(n(),d(M,{key:1,modelValue:e(s)[a.title],"onUpdate:modelValue":_=>e(s)[a.title]=_,column:a,"edit-enabled":!1,"read-only":!0,class:"!h-auto"},null,8,["modelValue","onUpdate:modelValue","column"]))])]),_:2},1024)]))]))),128))])):h("",!0)]),!e(P)&&!e(C)&&!e(w)?(n(),l("div",Fe,[m(V,{class:"flex"},{title:r(()=>[D(L(i.$t("title.expand")),1)]),default:r(()=>[le((n(),l("button",{tabindex:-1,class:"z-10 flex items-center justify-center nc-expand-item !group-hover:visible !invisible !h-7 !w-7 transition-all !hover:children:w-4.5 !hover:children:h-4.5",onClick:p[0]||(p[0]=se(a=>i.$emit("expand",e(s)),["stop"]))},[m(b,{icon:"maximize",class:"flex-none w-4 h-4 scale-125"})])),[[Q,["c:row-expand:open"]]])]),_:1})])):h("",!0),!e(C)&&!e(w)||e(P)?(n(),d(V,{key:2,class:"z-10 flex"},{title:r(()=>[D(L(e(x)?"Unlink":"Link"),1)]),default:r(()=>[u("button",{tabindex:"-1",class:A(["nc-list-item-link-unlink-btn p-1.5 flex rounded-lg transition-all",{"bg-gray-200 text-gray-800 hover:bg-red-100 hover:text-red-500":e(x),"bg-green-[#D4F7E0] text-[#17803D] hover:bg-green-200":!e(x)}]),onClick:p[1]||(p[1]=a=>i.$emit("linkOrUnlink"))},[e(T)?(n(),l("div",Se,[m(H,{class:"flex-none w-4 h-4 !text-brand-500 animate-spin"})])):(n(),d(b,{key:1,icon:e(x)?"minus":"plus",class:"flex-none w-4 h-4 !font-extrabold"},null,8,["icon"]))],2)]),_:1})):h("",!0)])]),_:1},8,["class"])])}}}),Ne=Object.assign(_e(Ue,[["__scopeId","data-v-35d43b0b"]]),{__name:"VirtualCellComponentsListItem"});export{Ne as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DuzBGfJ3.js","./C6LKOky9.js","./entry.B91DZ4_L.css","./Modal.BYPzfqB3.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{d as Z,p as d,C as T,e as ee,B as te,aH as oe,bS as ae,o as i,f as M,i as se,g as a,w as j,j as p,k as C,Q as le,h as r,l as _,t as U,bQ as re,a5 as A,Y as $,bf as ne,x as de,q as l,b6 as ie,ax as ue,ay as ce}from"./C6LKOky9.js";const pe=ue(()=>ce(()=>import("./DuzBGfJ3.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(S=>S.default||S)),me={key:0,class:"rounded-lg p-2 bg-[#FEF3F2] mb-5 text-[#B42318] flex items-center gap-2","data-testid":"nc-modal-upload-sku-master__file-type-error"},fe={key:1,class:"flex flex-col gap-4 items-center justify-center p-6 bg-[#F0F9FF] border border-[#BAE6FD] rounded-lg","data-testid":"nc-modal-upload-sku-master__import-success"},ve={class:"flex flex-col items-center gap-3","data-testid":"nc-modal-upload-sku-master__import-success-content"},ge={class:"text-[#101828] text-xl font-bold text-center","data-testid":"nc-modal-upload-sku-master__import-success-title"},_e={key:2,class:"flex flex-col gap-4 items-center justify-center p-6 bg-[#FEF3F2] border border-[#FECACA] rounded-lg","data-testid":"nc-modal-upload-sku-master__import-failed"},be={class:"flex flex-col items-center gap-3","data-testid":"nc-modal-upload-sku-master__import-failed-content"},ke={key:3,class:"rounded-lg p-4 border-1 border-[#EAECF0] flex flex-col gap-2","data-testid":"nc-modal-upload-sku-master__uploading-state"},he={class:"text-[#1D2939] font-bold text-lg","data-testid":"nc-modal-upload-sku-master__uploading-title"},ye={class:"flex items-center justify-center gap-4","data-testid":"nc-modal-upload-sku-master__uploading-progress"},xe={class:"relative w-full h-2 bg-[#F2F4F7] rounded-md","data-testid":"nc-modal-upload-sku-master__progress-bar-container"},we={class:"text-sm font-bold text-[#344054] text-center","data-testid":"nc-modal-upload-sku-master__progress-percentage"},Ue={class:"flex flex-col gap-2 items-center justify-center","data-testid":"nc-modal-upload-sku-master__drop-zone-content"},Se={key:0,class:"text-[#6941C6] font-bold text-center","data-testid":"nc-modal-upload-sku-master__upload-text"},Ee={key:1,class:"text-[#6941C6] text-xs text-center","data-testid":"nc-modal-upload-sku-master__file-type-info"},Re={key:2,class:"text-[#039855] font-bold text-center","data-testid":"nc-modal-upload-sku-master__file-uploaded-title"},Ce={key:3,class:"text-[#039855] text-sm text-center","data-testid":"nc-modal-upload-sku-master__file-name"},Fe={class:"flex gap-3 mt-8 items-center justify-center","data-testid":"nc-modal-upload-sku-master__actions"},De=["disabled"],Be=["disabled"],Me=Z({__name:"uploadSkuMaster",props:{showUploadSkuMasterModal:{type:Boolean},handleSkuMasterModalClose:{type:Function},refreshSkus:{type:Boolean}},emits:["update:refreshSkus"],setup(S,{emit:z}){const F=S,V=z,v=d(F.showUploadSkuMasterModal);T(()=>F.showUploadSkuMasterModal,t=>{v.value=t});const{$axios:I,$state:X}=ee(),q=ne().public.tesseraApiUrl||"https://tessera.tmrw.in/api",D=te();oe();const N=d(""),P=d(null),E=d(!1),c=d(null),b=d(""),n=d([]),k=d([]),y=d(0),R=d(!1),m=d(!1),g=d({isUploading:!1,type:""}),h=d(0),x=d(!1),f=d({totalRows:0,validRows:0,invalidRows:0}),L=()=>{h.value=0;const t=ie(()=>{h.value<90?h.value+=10:clearInterval(t)},100)},O=de(()=>f.value.totalRows>0?Math.round(f.value.validRows/f.value.totalRows*100):!k.value||k.value.length===0?0:Math.round(y.value/k.value.length*100));T(()=>v.value,t=>{t||(y.value>0&&V("update:refreshSkus",!0),F.handleSkuMasterModalClose(),E.value=!1,c.value=null,b.value="",R.value=!1,n.value=[],k.value=[],y.value=0,m.value=!1,f.value={totalRows:0,validRows:0,invalidRows:0})});const B=t=>[".xlsx"].some(s=>t.name.toLowerCase().endsWith(s)),K=async t=>{try{if(!B(t)){l.error("Please upload only Excel (.xlsx) files");return}g.value={isUploading:!0,type:"Uploading file"},L();const e=new FormData;e.append("file",t,t.name),e.append("type","sku-sheet");const s=await I.post("/noco/upload",e,{headers:{"Content-Type":"multipart/form-data"}});if(s.status===200){c.value=t,l.success("File uploaded successfully");const{url:o}=s.data;b.value=o,R.value=!1}else console.error("Error uploading file"),l.error("Error uploading file")}catch(e){console.error("Error uploading file:",e),l.error("Error uploading file"),c.value=null}finally{g.value.isUploading=!1}},W=t=>{if(t.preventDefault(),E.value=!1,t.dataTransfer?.files){const e=t.dataTransfer.files[0];e&&(B(e)?K(e):R.value=!0)}},Q=t=>{const e=t.target.files;if(e?.length){const s=e[0];s&&B(s)?K(s):s&&l.error("Invalid file type selected")}},Y=()=>{P.value?.click()},G=async()=>{try{if(!b){l.error("No file uploaded");return}g.value={isUploading:!0,type:"Importing SKUs"},L();const t=localStorage.getItem("selectedBrandId"),e={};t&&(e["X-API-BRAND-ID"]=t);const s=await I.post("/mdm/skus/update",{fileUrl:b.value},{headers:e}),o=s.data;if(s.status===200)if(h.value=100,o.success===!1&&o.validationErrors)n.value=o.validationErrors,k.value=o.validRows||[],N.value=o.brandName||"",y.value=o.validRows||0,f.value={totalRows:o.totalRows||0,validRows:o.validRows||0,invalidRows:o.invalidRows||0,errorSummary:o.errorSummary},console.log("Upload Component: Validation errors detected:",o.validationErrors),console.log("Upload Component: Valid rows:",o.validRows),console.log("Upload Component: Total rows:",o.totalRows),console.log("Upload Component: Full response data:",o),console.log("Upload Component: Stored validation data:",f.value),l.error(o.message||"SKU validation failed. Please download the error sheet for details."),m.value=!0,console.log("Upload Component: Setting importSuccessful to true for validation failures"),console.log("Upload Component: invalidEntries.value after setting:",n.value),console.log("Upload Component: invalidEntries.value.length:",n.value?.length),console.log("Upload Component: Button should show when invalidEntries.length > 0 && importSuccessful:",n.value?.length>0&&m.value);else if(n.value=o.invalidEntries||[],k.value=o.updatedSkus||[],N.value=o.brandName||"",y.value=o.skusUpdated||0,console.log("Upload Component: handleSubmitFile - skusUpdated set to:",o.skusUpdated),console.log("Upload Component: handleSubmitFile - data:",o),console.log("Upload Component: invalidEntries set to:",o.invalidEntries),console.log("Upload Component: invalidEntries.length after setting:",n.value),console.log("Upload Component: invalidEntries.value after setting:",n.value),o.skusUpdated===0)l.error(o.message||"No SKUs were updated"),m.value=!0;else if(l.success(o.message||"SKUs updated successfully"),m.value=!0,D.currentRoute.value.name==="index-typeOrId-skuMaster")console.log("Upload Component: Already on SKU Master route, table will refresh"),window.dispatchEvent(new CustomEvent("refreshSkuMasterTable"));else{const J=D.currentRoute.value.params.typeOrId||"nc";D.push(`/${J}/skuMaster`)}else console.error("Error updating SKU master"),l.error(o.message)}catch(t){if(console.error("Error updating SKU master",t),t.response?.status===400){const e=t.response?.data?.errorCode;if(e==="ERR-SKU-UPLOAD-BRAND-001"){const s=localStorage.getItem("selectedBrandName")||"current brand";l.error(`Please upload SKUs for the selected brand ${s}`)}else e==="ERR-SKU-UPLOAD-BRAND-002"?l.error("Brand not present"):e==="ERR-SKU-UPLOAD-001"?l.error("The uploaded file is empty. Please check your file and try again."):e==="ERR-STYLE-UPLOAD-001"?l.error("The uploaded file is empty. Please check your file and try again."):l.error(t.response?.data?.message||"Error updating SKU master")}else l.error("Error updating SKU master")}finally{g.value.isUploading=!1}},H=async()=>{x.value=!0;try{if(!n.value||!b.value){l.error("No error data available for download");return}let t={fileUrl:b.value};n.value.length>0&&n.value[0]?.type==="ConsolidatedError"?(t.validationErrors=n.value,t.totalRows=f.value.totalRows,t.validRows=f.value.validRows,t.invalidRows=f.value.invalidRows,t.errorSummary=f.value.errorSummary,console.log("Download Error Sheet: Using new validationErrors format"),console.log("Download Error Sheet: Request body:",t)):(t.invalidEntries=n.value,console.log("Download Error Sheet: Using legacy invalidEntries format"),console.log("Download Error Sheet: Request body:",t));const e=await fetch(`${q}/mdm/skus/error-sheet`,{method:"POST",headers:{"Content-Type":"application/json","xc-auth":X.token.value},body:JSON.stringify(t)});if(e.ok){const s=await e.blob(),o=new Blob([s],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),w=URL.createObjectURL(o),u=document.createElement("a");u.href=w,u.download="skus_error_sheet.xlsx",u.style.display="none",document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(w),l.success("Error sheet downloaded successfully")}else{const s=await e.json();throw new Error(s.message||"Failed to download error sheet")}}catch(t){console.error("Download Error sheet failed:",t),l.error(t.message||"Download Error sheet failed")}finally{x.value=!1}};return(t,e)=>{const s=le,o=ae("NcSpin"),w=pe;return i(),M(w,{visible:a(v),"onUpdate:visible":e[5]||(e[5]=u=>se(v)?v.value=u:null),size:"medium","show-separator":!1,closable:!0,"mask-closable":!0,"data-testid":"nc-modal-upload-sku-master"},{header:j(()=>[...e[6]||(e[6]=[r("div",{class:"text-lg font-bold text-black","data-testid":"nc-modal-upload-sku-master__title"},"Import SKU master from Excel",-1)])]),default:j(()=>[a(R)?(i(),p("div",me,[C(s,{icon:"error"}),e[7]||(e[7]=r("span",null,"File must be .XLSX",-1))])):_("",!0),a(m)&&a(n).length===0?(i(),p("div",fe,[r("div",ve,[C(s,{icon:"check",class:"text-[#039855] w-12 h-12","data-testid":"nc-modal-upload-sku-master__import-success-icon"}),r("div",ge,U(a(O)>0?`${a(O)}% import successful`:"Import completed"),1),e[8]||(e[8]=r("div",{class:"text-[#667085] text-sm text-center","data-testid":"nc-modal-upload-sku-master__import-success-message"}," Import has been successfully completed. ",-1))])])):a(m)&&a(n).length>0?(i(),p("div",_e,[r("div",be,[C(s,{icon:"ncAlertCircle",class:"text-[#B42318] w-12 h-12","data-testid":"nc-modal-upload-sku-master__import-failed-icon"}),e[9]||(e[9]=r("div",{class:"text-[#101828] text-xl font-bold text-center","data-testid":"nc-modal-upload-sku-master__import-failed-title"}," Import Failed ",-1)),e[10]||(e[10]=r("div",{class:"text-[#667085] text-sm text-center","data-testid":"nc-modal-upload-sku-master__import-failed-message"}," Import has failed. Please check the error sheet for details. ",-1))])])):a(g).isUploading?(i(),p("div",ke,[r("span",he,U(a(g).type),1),r("div",ye,[r("div",xe,[r("div",{class:"absolute h-full bg-[#7F56D9] rounded",style:re({width:`${a(h)}%`}),"data-testid":"nc-modal-upload-sku-master__progress-bar"},null,4)]),r("div",we,U(a(h))+"%",1)])])):a(m)?_("",!0):(i(),p("div",{key:4,class:$(["border-1 border-[#D6BBFB] bg-[#FCFAFF] rounded-lg py-6 px-6 cursor-pointer transition-all duration-200 hover:border-[#7F56D9] hover:bg-[#F9FAFB]",[{"bg-[#eefaf2] border-[#93bea1]":a(c)}]]),"data-testid":"nc-modal-upload-sku-master__drop-zone",onDragenter:e[0]||(e[0]=A(u=>E.value=!0,["prevent"])),onDragleave:e[1]||(e[1]=A(u=>E.value=!1,["prevent"])),onDragover:e[2]||(e[2]=A(()=>{},["prevent"])),onDrop:W,onClick:Y},[r("div",Ue,[r("input",{ref_key:"fileInput",ref:P,type:"file",class:"hidden",accept:".xlsx","data-testid":"nc-modal-upload-sku-master__file-input",onChange:Q},null,544),C(s,{icon:a(c)?"check":"cloudUpload2",class:$(["h-12 w-12 mb-2",[{"fill-[#7F56D9] text-[#7F56D9]":!a(c)},{"text-[#039855]":a(c)}]]),"data-testid":"nc-modal-upload-sku-master__upload-icon"},null,8,["icon","class"]),a(c)?_("",!0):(i(),p("div",Se,"Add file")),a(c)?(i(),p("div",Re,"File uploaded")):(i(),p("span",Ee,"File type must be .XLSX")),a(c)?(i(),p("span",Ce,U(a(c)?.name),1)):_("",!0)])],34)),r("div",Fe,[r("button",{class:"rounded-lg py-2.5 px-4.5 text-[#344054] font-bold border-1 border-[#D0D5DD] w-[50%]","data-testid":"nc-modal-upload-sku-master__cancel-btn",onClick:e[3]||(e[3]=u=>v.value=!1)}," Cancel "),!a(m)&&!a(g).isUploading?(i(),p("button",{key:0,class:"rounded-lg py-2.5 px-4.5 text-white font-bold w-[50%] bg-[#7F56D9] border-1 border-[#7F56D9] disabled:opacity-50 disabled:cursor-not-allowed",disabled:!a(c),"data-testid":"nc-modal-upload-sku-master__upload-btn",onClick:G}," Upload ",8,De)):_("",!0),a(m)&&a(n).length>0?(i(),p("button",{key:1,class:"rounded-lg py-2.5 px-4.5 flex items-center justify-center gap-2 bg-[#D92D20] border-1 border-[#D92D20] text-white font-bold w-[50%] disabled:opacity-50 disabled:cursor-not-allowed",disabled:a(x),"data-testid":"nc-modal-upload-sku-master__download-error-btn",onClick:H},[a(x)?(i(),M(o,{key:0,size:"small"})):(i(),M(s,{key:1,icon:"error"})),r("span",null,U(a(x)?"Downloading...":"Download error sheet"),1)],8,Be)):_("",!0),a(m)&&a(n).length===0?(i(),p("button",{key:2,class:"rounded-lg py-2.5 px-4.5 text-white font-bold w-[50%] bg-[#039855]","data-testid":"nc-modal-upload-sku-master__done-btn",onClick:e[4]||(e[4]=u=>v.value=!1)}," Done ")):_("",!0)])]),_:1},8,["visible"])}}}),Ne=Object.assign(Me,{__name:"WorkspaceSkuMasterUploadSkuMaster"});export{Ne as W};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CreiEcqK.js","./C6LKOky9.js","./entry.B91DZ4_L.css","./DuzBGfJ3.js","./Modal.BYPzfqB3.css","./1QOSI9Cg.js","./R1OTc6xI.js","./B8LajyGq.js","./DqyG-W75.js","./CVQmbhK4.js","./BPYV7pHx.js","./BAPIzECJ.js","./BQQOEPN4.js","./BA0C8iXj.js","./B5IQ1MTu.js","./DdT_fcG0.js","./BGai3JSg.js","./boyBAVNN.js","./Bsqi8loJ.js","./CtwIsrPp.js","./DBVmk-Jy.js","./oJXkyIOa.js","./Grid.BmXwZeSZ.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{d as w,aH as v,gS as y,s as V,L as h,N as k,q as R,v as S,g as t,o as l,j as g,k as x,i as E,f as I,al as L,l as z,p as P,ax as i,ay as u,az as A,aB as B}from"./C6LKOky9.js";const D=i(()=>u(()=>import("./CreiEcqK.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(e=>e.default||e)),N=i(()=>u(()=>import("./BA0C8iXj.js"),__vite__mapDeps([13,1,2,14,15,16,17,18,19,20,21,22]),import.meta.url).then(e=>e.default||e)),T={key:0},M=w({__name:"[viewId]",setup(e){const _=v(),{loadSharedView:d,meta:o,triggerNotFound:p}=y(),{isViewDataLoading:r}=V(h());A(B,o);const a=P(!1);return k(async()=>{r.value=!0;try{await d(_.params.viewId)}catch(s){s?.response?.status===403?a.value=!0:s?.response?.status===404?p():(console.error(s),R.error(await S(s)))}finally{r.value=!1}}),(s,n)=>{const c=D,m=N;return t(a)?(l(),g("div",T,[x(c,{modelValue:t(a),"onUpdate:modelValue":n[0]||(n[0]=f=>E(a)?a.value=f:null)},null,8,["modelValue"])])):t(o)?(l(),I(m,{key:1,"view-type":t(L).GRID},null,8,["view-type"])):z("",!0)}}});export{M as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as m,o,f as d,ao as u,w as n,U as p,m as s,t as l,h as g,j as i,l as r}from"./C6LKOky9.js";const y={key:0},h={key:1,class:"!text-current",href:"https://docs.nocodb.com/data-sources/connect-to-data-source#configuring-permissions",target:"_blank"},_=m({__name:"SourceRestrictionTooltip",props:{tooltipStyle:{},overlayInnerStyle:{},mouseLeaveDelay:{},placement:{},trigger:{},message:{},enabled:{type:Boolean},isSqlView:{type:Boolean}},setup(e){return(t,a)=>{const c=u;return o(),d(c,{disabled:!e.enabled,"tooltip-style":{"min-width":"max-content"},"overlay-inner-style":{"min-width":"max-content"},"mouse-leave-delay":.3,placement:"left",trigger:"hover"},{title:n(()=>[s(l(e.isSqlView?t.$t("tooltip.schemaChangeDisabledFormSqlView"):t.$t("tooltip.schemaChangeDisabled"))+" ",1),a[0]||(a[0]=g("br",null,null,-1)),s(" "+l(e.message)+" ",1),e.message?(o(),i("br",y)):r("",!0),e.isSqlView?r("",!0):(o(),i("a",h," Learn more "))]),default:n(()=>[p(t.$slots,"default")]),_:3},8,["disabled"])}}}),S=Object.assign(_,{__name:"GeneralSourceRestrictionTooltip"});export{S as _};
|