@sheetxl/studio-vanilla 0.4.12 → 0.4.14
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/README.md +2 -2
- package/browser/cjs/10IK8MFijJb-yvV6.cjs +7 -0
- package/browser/cjs/1bCMnueqxHW3rn0c.cjs +6 -0
- package/browser/cjs/AnJTeEGq7VP4T1b7.cjs +161 -0
- package/browser/cjs/BH3MYcOF7rxLX3Bk.cjs +15 -0
- package/browser/cjs/BQ4QeJYaIhLaInyR.cjs +6 -0
- package/browser/cjs/BU5k1OZewc-Z-kR9.cjs +6 -0
- package/browser/cjs/BlwK-VslgEVH2cgX.cjs +145 -0
- package/browser/cjs/Bm9fNNMIOLIwq-94.cjs +6 -0
- package/browser/cjs/BtiY-n4sGy6WaqNg.cjs +32 -0
- package/browser/cjs/BxgDhdrrKrJMEaXd.cjs +6 -0
- package/browser/cjs/BzT1y15V6Zs7c_zX.cjs +6 -0
- package/browser/cjs/C0ySf2emOB0Mslc-.cjs +6 -0
- package/browser/cjs/CE5U7gB5L-PE17gV.cjs +6 -0
- package/browser/cjs/CHd9vauNLHnOLflj.cjs +6 -0
- package/browser/cjs/CJZtyunL_qaXFylY.cjs +12 -0
- package/browser/cjs/CJoJ19i1z94kndlS.cjs +19 -0
- package/browser/cjs/CNcsGELwCAV-A5oH.cjs +16 -0
- package/browser/cjs/CTuM_aZX8wZICUe_.cjs +6 -0
- package/browser/cjs/CWW_yQpIswo7DEAT.cjs +6 -0
- package/browser/cjs/CXIHULOe7x4DYKXw.cjs +12 -0
- package/browser/cjs/CYLnJHryQcQO4XoG.cjs +6 -0
- package/browser/cjs/C_mbaid3FQ52usBI.cjs +6 -0
- package/browser/cjs/Cj_1qUo5cZ3FnOpK.cjs +6 -0
- package/browser/cjs/Cl0XSnWVDoaHTIlF.cjs +6 -0
- package/browser/cjs/CnLdhURNkVXo_0Eg.cjs +6 -0
- package/browser/cjs/CpIIsygD5mnJyl47.cjs +1501 -0
- package/browser/cjs/CpRfx14is2_4Wgp3.cjs +6 -0
- package/browser/cjs/Cuq8Nim-ol5Gdehe.cjs +6 -0
- package/browser/cjs/D4NcrJlqcLExwCNT.cjs +124 -0
- package/browser/cjs/D4vbOk4hD8-b-c10.cjs +6 -0
- package/browser/cjs/D5YUIQeOcujtq6XS.cjs +7 -0
- package/browser/cjs/D6uIvR-6Y690_Em2.cjs +11 -0
- package/browser/cjs/DAbScbuk-sjZXMIC.cjs +11 -0
- package/browser/cjs/DBNXGIWfZmgb_sHL.cjs +6 -0
- package/browser/cjs/DCd5OZXj2IRbxEF2.cjs +6 -0
- package/browser/cjs/DFNisISrsMnZrV4B.cjs +6 -0
- package/browser/cjs/DIYOARVcGtRjKpjZ.cjs +6 -0
- package/browser/cjs/DL4HgriZ3TY2K-QP.cjs +6 -0
- package/browser/cjs/DPbzY4ppgKPrdbWc.cjs +6 -0
- package/browser/cjs/DQGdVVTxixgptLdj.cjs +366 -0
- package/browser/cjs/DWzQm8Q32qNP7qKL.cjs +6 -0
- package/browser/cjs/D_7RtbQABH1zdcjr.cjs +7 -0
- package/browser/cjs/D_Q0s9KLnWHwKxTK.cjs +6 -0
- package/browser/cjs/DdTcwutSPJMeCIv3.cjs +6 -0
- package/browser/cjs/DlnKrZRyxBfbqaTi.cjs +13 -0
- package/browser/cjs/DtpB0PMEtamaB-Hv.cjs +6 -0
- package/browser/cjs/Dv8SE05ABKNLPY6A.cjs +6 -0
- package/browser/cjs/DxBLU16_E62Umowp.cjs +6 -0
- package/browser/cjs/VU_KaqGTjvnisS9e.cjs +6 -0
- package/browser/cjs/bS_BOH9cvVCFy36v.cjs +6 -0
- package/browser/cjs/dbUUj8LyIitsdYpk.cjs +6 -0
- package/browser/cjs/eZGLUWbfY3JdZRM5.cjs +6 -0
- package/browser/cjs/index.cjs +3 -4
- package/browser/cjs/mBk4Z4LZ65b3f58_.cjs +6 -0
- package/browser/cjs/rIOsSIPwxoXlIawS.cjs +6 -0
- package/browser/cjs/sMBG5eQ3-iacLXUm.cjs +6 -0
- package/browser/cjs/tShlMZrIxsGZSeHX.cjs +42 -0
- package/browser/cjs/xDqIifM_--oXscCV.cjs +6 -0
- package/browser/cjs/yBSdtSSuNERefFhR.cjs +15 -0
- package/browser/esm/4eRu4yzXkvCBip8J.mjs +10 -0
- package/browser/esm/73gcCsbqgbW3KIoA.mjs +1346 -0
- package/browser/esm/B383N9irNfyfYC2l.mjs +20 -0
- package/browser/esm/B4ji-HZTY0uvH8r7.mjs +10 -0
- package/browser/esm/B8TNpfJ8ymQcPriE.mjs +24 -0
- package/{cdn/assets/CiY3HumGDc_5bMtR.js → browser/esm/BBDu-GNDE7ZA-1sJ.mjs} +15 -17
- package/browser/esm/BF5nlSYZ38RJ0dPX.mjs +10 -0
- package/browser/esm/BHy77Km4i4t5U7ka.mjs +10 -0
- package/browser/esm/BIUVt79NHXdZx2Dz.mjs +10 -0
- package/browser/esm/BP6hA-zc0dMuMOIA.mjs +3755 -0
- package/browser/esm/BPen6C7JE2sWVgdi.mjs +10 -0
- package/browser/esm/BUqd1uVUNoWmepd2.mjs +148 -0
- package/browser/esm/BXABqQEa6kQQcjmt.mjs +820 -0
- package/browser/esm/BZxAttR2mi9td3k1.mjs +10 -0
- package/browser/esm/B_pEA9HeXKvEOCdS.mjs +10 -0
- package/browser/esm/BbW_1O3cEhZ4aSgS.mjs +55785 -0
- package/browser/esm/BdFNxdtES-3_yQ9R.mjs +421 -0
- package/browser/esm/BfFDvyaRcdKS0wPD.mjs +10 -0
- package/browser/esm/Bqqcb80cNalBs-sB.mjs +939 -0
- package/browser/esm/BrEcIDq0-c5AiQEf.mjs +21 -0
- package/browser/esm/BvYUsRgBXLSuaQ-S.mjs +10 -0
- package/browser/esm/BzE-61bmpRQzEVPt.mjs +10 -0
- package/browser/esm/C28AZ0Rwo79iGg0v.mjs +13208 -0
- package/browser/esm/C5GgK_mW25DZYw-I.mjs +2344 -0
- package/{cdn/assets/CfObTzh8pGdd8D23.js → browser/esm/CHjb5a2xwEWs4RgS.mjs} +505 -513
- package/browser/esm/CITPwlsNzJvv551I.mjs +10 -0
- package/browser/esm/CJiHNujoVUdO_G7X.mjs +46 -0
- package/browser/esm/CN73n4VDayKh_l1J.mjs +10 -0
- package/browser/esm/CcARDY0PFSWkqsG9.mjs +21 -0
- package/browser/esm/CeF0ZRfeSy83i80_.mjs +1575 -0
- package/browser/esm/Cmtx4dAVZrwq5cVO.mjs +10 -0
- package/browser/esm/Crza3kRJdEVylOfk.mjs +29 -0
- package/browser/esm/D3L89e08b7ewR6mt.mjs +21 -0
- package/browser/esm/D4G17ip9xxOX5jDd.mjs +3934 -0
- package/browser/esm/D9eVsUckA6bWBHni.mjs +10 -0
- package/browser/esm/DAscSzG63-mM5p50.mjs +41 -0
- package/browser/esm/DCyJNVtrh6kEt73Q.mjs +84 -0
- package/{cdn/assets/DWJE3K3jMKMTCi3o.js → browser/esm/DFwxjsVr4xKLPTGf.mjs} +65 -68
- package/browser/esm/DHPHhaCxihdR9Hl6.mjs +10 -0
- package/browser/esm/DKbJ-iVPuUbr3iZ_.mjs +47 -0
- package/browser/esm/DQLk_UmdpJBt-zZi.mjs +5582 -0
- package/browser/esm/DR7oVoNSe0FFWHOr.mjs +48 -0
- package/browser/esm/DVRMAeHUj0-TY-vK.mjs +10 -0
- package/browser/esm/DXIWAG-DUKHzNlRl.mjs +12 -0
- package/browser/esm/DbZJQpjZJIcz2ypV.mjs +39 -0
- package/browser/esm/Dft4BSeY0bp0A6z0.mjs +10 -0
- package/browser/esm/DgO85Q5iHe-ZmvtQ.mjs +633 -0
- package/browser/esm/DwRHGEuscm3FvnkM.mjs +1665 -0
- package/browser/esm/HyTvrvH0vItPFnFG.mjs +472 -0
- package/{cdn/assets/DgLPO_EQ9DYoGgec.js → browser/esm/Pkb6GWdyZdze_XAw.mjs} +174 -172
- package/browser/esm/QZikWr_NQfcFWCBV.mjs +44 -0
- package/browser/esm/aLv-xujBO4X6ilhV.mjs +10 -0
- package/{cdn/assets/DJQOS9qxVAlpgDMt.js → browser/esm/c9fba0RuWGogsH0X.mjs} +21 -23
- package/browser/esm/index.mjs +6 -2
- package/browser/esm/jkSJc6Omxbf-rPQY.mjs +10 -0
- package/browser/esm/uuCmCmYQQXgwyRSd.mjs +10 -0
- package/browser/esm/w3TGaFTjdsc4XTcz.mjs +1466 -0
- package/browser/esm/wV8riZWKJE7AoKQk.mjs +1365 -0
- package/browser/esm/wxvli1IH1NkfqE6-.mjs +10 -0
- package/cdn/assets/0fI22OQK5IczUH6s.js +29 -0
- package/cdn/assets/4eRu4yzXkvCBip8J.js +10 -0
- package/cdn/assets/5HYy7pIZxQRDUQl-.js +50 -0
- package/cdn/assets/6oc_f4xkoSmftsRd.js +22 -0
- package/cdn/assets/73gcCsbqgbW3KIoA.js +1346 -0
- package/cdn/assets/B3TPDOzYf_VRBIr6.js +2177 -0
- package/cdn/assets/B4HW_cy7gbE01jar.js +390 -0
- package/cdn/assets/B4ji-HZTY0uvH8r7.js +10 -0
- package/cdn/assets/B7Ky6m4VWP8vxhPt.js +1702 -0
- package/cdn/assets/B8TNpfJ8ymQcPriE.js +24 -0
- package/cdn/assets/BEfetwH6zTr6B51I.js +3755 -0
- package/cdn/assets/BF5nlSYZ38RJ0dPX.js +10 -0
- package/cdn/assets/BHy77Km4i4t5U7ka.js +10 -0
- package/cdn/assets/BIUVt79NHXdZx2Dz.js +10 -0
- package/cdn/assets/BPen6C7JE2sWVgdi.js +10 -0
- package/cdn/assets/BS1p7DgoyO-WkvB8.js +41 -0
- package/cdn/assets/BZxAttR2mi9td3k1.js +10 -0
- package/cdn/assets/B_pEA9HeXKvEOCdS.js +10 -0
- package/cdn/assets/BdFNxdtES-3_yQ9R.js +421 -0
- package/cdn/assets/BfFDvyaRcdKS0wPD.js +10 -0
- package/cdn/assets/{phYz0vGgqIEQ2hco.js → BiKaXKU3o287mgkN.js} +1 -1
- package/cdn/assets/BvYUsRgBXLSuaQ-S.js +10 -0
- package/cdn/assets/BzE-61bmpRQzEVPt.js +10 -0
- package/cdn/assets/C0yI-QYraFhnJUdD.js +49 -0
- package/cdn/assets/C28AZ0Rwo79iGg0v.js +13208 -0
- package/cdn/assets/{qA23x9VVBL9R4qxN.js → C3FTuqvfGalOVHql.js} +9 -9
- package/cdn/assets/{BSAH88RG1oubICau.js → C3W0xsNrt-Was9g-.js} +26 -26
- package/cdn/assets/C8rQWD8C7ccUHNZL.js +3934 -0
- package/cdn/assets/CITPwlsNzJvv551I.js +10 -0
- package/cdn/assets/CN73n4VDayKh_l1J.js +10 -0
- package/cdn/assets/CWkF-50YF43t7qge.js +472 -0
- package/cdn/assets/{Bv0Xb6DdcQbPYJKo.js → CaKPs_ILqLIWfUUN.js} +10 -11
- package/cdn/assets/CcARDY0PFSWkqsG9.js +21 -0
- package/cdn/assets/Cdx6LrqtHZKbwl63.js +425 -0
- package/cdn/assets/ChB-XZno7w9v221u.js +1575 -0
- package/cdn/assets/CkY7wM_4OGwZvJ4f.js +942 -0
- package/cdn/assets/Cmtx4dAVZrwq5cVO.js +10 -0
- package/cdn/assets/{dk2teWHDODYNarJY.js → CrBywNOOyPHSBoTT.js} +4 -4
- package/cdn/assets/D9eVsUckA6bWBHni.js +10 -0
- package/cdn/assets/DBpku3D2DSTmW4II.js +820 -0
- package/cdn/assets/DEOxG6u6itV8bGym.js +2346 -0
- package/cdn/assets/DHPHhaCxihdR9Hl6.js +10 -0
- package/cdn/assets/DMWARnjq06oQnfrL.js +58 -0
- package/cdn/assets/{BoOefjrM4kZ-YXxa.js → DRa6yXWuTlAjuaKT.js} +2 -2
- package/cdn/assets/DVRMAeHUj0-TY-vK.js +10 -0
- package/cdn/assets/DXIWAG-DUKHzNlRl.js +12 -0
- package/cdn/assets/{B3kbBB6oxKBErwzn.js → DYowHOSLHcADsXuK.js} +3 -3
- package/cdn/assets/{DkS6quwH1okWaho6.js → DZNoPrlxULASVlOi.js} +14 -14
- package/cdn/assets/{BB66NDz7S3ocEfRB.js → DaUJajqmQYuM0Gew.js} +51 -51
- package/cdn/assets/DcdQwhlGoI1knRUy.js +46 -0
- package/cdn/assets/Dft4BSeY0bp0A6z0.js +10 -0
- package/cdn/assets/DgO85Q5iHe-ZmvtQ.js +633 -0
- package/cdn/assets/{DDW1WJ2IM_9ZUfKm.js → Dm0hrXCbV7DITOhi.js} +2 -2
- package/cdn/assets/DnWjhq4ZlgIuFcii.js +21 -0
- package/cdn/assets/DwRHGEuscm3FvnkM.js +1665 -0
- package/cdn/assets/{BT5EcMEFBsphczwC.js → DzyNujjbHLXo9UmH.js} +565 -568
- package/cdn/assets/EYTSqAG9YOdb1vKx.js +48823 -0
- package/cdn/assets/{D_5RgqgwXsoqLJDR.js → Ux2jUY_EwSsYBCov.js} +1 -1
- package/cdn/assets/{DfmaL8DmDaFAv8M_.js → XoKiuP2ZFq0cNGkH.js} +4 -4
- package/cdn/assets/Zi3E5Kzxw2FPtLVL.js +5582 -0
- package/cdn/assets/aLv-xujBO4X6ilhV.js +10 -0
- package/cdn/assets/jkSJc6Omxbf-rPQY.js +10 -0
- package/cdn/assets/uuCmCmYQQXgwyRSd.js +10 -0
- package/cdn/assets/wV8riZWKJE7AoKQk.js +1365 -0
- package/cdn/assets/wxvli1IH1NkfqE6-.js +10 -0
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -5
- package/types/index.d.ts +1 -0
- package/browser/cjs/B35OZ0mE8aINQPP9.cjs +0 -7
- package/browser/cjs/BPzEQNENF-gEBkg9.cjs +0 -7
- package/browser/cjs/BUokV6yuzE-_8MyK.cjs +0 -7
- package/browser/cjs/BeZHmOKfa37mFNAu.cjs +0 -7
- package/browser/cjs/BflJ_0gT9lQtDvY_.cjs +0 -7
- package/browser/cjs/BwN8vKi5o3-PbIMo.cjs +0 -7
- package/browser/cjs/C3OizZPVuxO2fjSG.cjs +0 -7
- package/browser/cjs/CBL6KkiWI2RPflEN.cjs +0 -7
- package/browser/cjs/CN6-6xpZMpFqSS8M.cjs +0 -7
- package/browser/cjs/CTrEV_UpxC0W6cZZ.cjs +0 -7
- package/browser/cjs/CU30GVjjFXl44vEU.cjs +0 -7
- package/browser/cjs/CZWBxvUXzfpn_zmc.cjs +0 -7
- package/browser/cjs/Ccs2ouvlLekaLGH0.cjs +0 -7
- package/browser/cjs/Ce-8L4Viq3I_6j0i.cjs +0 -7
- package/browser/cjs/CtNjLzIHB8WX63Bl.cjs +0 -7
- package/browser/cjs/DAHpsyykuPBkoh-Z.cjs +0 -7
- package/browser/cjs/DJbKKxeeTEHHA1gR.cjs +0 -107
- package/browser/cjs/D_VQzwC1zzTJyKtG.cjs +0 -7
- package/browser/cjs/GrsZZ_mEdsM5dEMA.cjs +0 -7
- package/browser/cjs/JKEGlXjMwGnXk_Gv.cjs +0 -7
- package/browser/cjs/L1iE_VcelYZIy0wI.cjs +0 -7
- package/browser/cjs/Q_VvA-yUQx3xFKiJ.cjs +0 -7
- package/browser/cjs/fTGpiXzFm3K_u2Fm.cjs +0 -7
- package/browser/cjs/hwDUzorB6aCvH1eL.cjs +0 -7
- package/browser/cjs/no5c2H18QD2qmOH6.cjs +0 -7
- package/browser/esm/B4Mm5gczpI_k2zzN.mjs +0 -7
- package/browser/esm/B8ISUdOxsJMYWzNN.mjs +0 -7
- package/browser/esm/BnJiF38TGudjoHzT.mjs +0 -7
- package/browser/esm/Bts4nCgfCAUpTfxz.mjs +0 -7
- package/browser/esm/C3cyAbIH8Qc8MIFN.mjs +0 -107
- package/browser/esm/C4jlaVv8bELgiHyE.mjs +0 -7
- package/browser/esm/CYIhGb86r-kKOrP5.mjs +0 -7
- package/browser/esm/CcpskguvlvemArQn.mjs +0 -7
- package/browser/esm/CeRfALx1iU5fqOUg.mjs +0 -7
- package/browser/esm/CfYWmP_Hots5f0f6.mjs +0 -7
- package/browser/esm/CkarbqNx_lhlBnw7.mjs +0 -7
- package/browser/esm/D2PlWNQjrTgf6GuR.mjs +0 -7
- package/browser/esm/D3KNxvnrwR6_fTJE.mjs +0 -7
- package/browser/esm/DIJyH94oCzUnlcNZ.mjs +0 -7
- package/browser/esm/DVAG1NxFe3cMjLE1.mjs +0 -7
- package/browser/esm/DVqga7g7j0FUiM6p.mjs +0 -7
- package/browser/esm/DcX8yGEBX6qi9RCe.mjs +0 -7
- package/browser/esm/DeXfOSxGE_Ez7DZq.mjs +0 -7
- package/browser/esm/DzgM_rkwyIHsCb6I.mjs +0 -7
- package/browser/esm/M4hZ25330e96seUM.mjs +0 -7
- package/browser/esm/Qp2Toeh_EbJH_f_6.mjs +0 -7
- package/browser/esm/SAyRTPVprOHZ8Up8.mjs +0 -7
- package/browser/esm/_ft7JYO6QdDbIu3d.mjs +0 -7
- package/browser/esm/dpdy0BU4GGI5lZrX.mjs +0 -7
- package/browser/esm/oLCocGFRAwsVsOSE.mjs +0 -7
- package/cdn/assets/7_O6nILzn1fSVvkO.js +0 -13449
- package/cdn/assets/BCK7yhx9JfzU2rF0.js +0 -22
- package/cdn/assets/BcWoqhD_sX85c7Mh.js +0 -1701
- package/cdn/assets/BtweFYnoj_aEfydW.js +0 -1371
- package/cdn/assets/CC-S4NMYhLg3WgqO.js +0 -3875
- package/cdn/assets/CJhyHcQcrhbtC33r.js +0 -50
- package/cdn/assets/CUc6gRjjRGTFWSHD.js +0 -50
- package/cdn/assets/CpPLN0-hDsTIFHZV.js +0 -46
- package/cdn/assets/Cq94woVmlxhjWVRI.js +0 -21
- package/cdn/assets/CsjftXmSYQRHNKdq.js +0 -41
- package/cdn/assets/DBL4jY0AVc53RGNm.js +0 -637
- package/cdn/assets/DxMu6URURFWj9aXM.js +0 -2373
- package/cdn/assets/Jhm2DAcrfAqiM-Y-.js +0 -26490
- package/cdn/assets/MRBi3juXAW0lA_mj.js +0 -1358
|
@@ -0,0 +1,939 @@
|
|
|
1
|
+
import { s as ut, u as dt, r as s, w as $e, x as sn, z as ln, A as cn, C as un, H as dn, j as p, J as Te, O as pt, S as mt, U as bt, V as pn, X as mn, Z as Ft, _ as fn, a0 as hn, a1 as ne, a2 as Ht, a3 as xt, l as Ke, a4 as nt, a5 as gn, a6 as kn, $ as yt, a7 as pe, a8 as zt, a9 as bn, B as se, aa as _t, ab as xn, ac as ot, ad as qt, ae as yn, af as wn, ag as vn, ah as En, ai as Cn, aj as Sn, ak as Dn, al as jn, y as L, am as Mn, e as Tn, an as On, ao as rt, ap as Ln, aq as Wn, ar as Rn, as as An, at as Nn, au as In, p as Pn, av as ee, aw as ve, ax as wt, ay as Fn, az as Hn, aA as zn, aB as _n, aC as qn, aD as Bn, aE as Ge, aF as Ee, aG as Vn, aH as $n, aI as Un, aJ as Kn, aK as vt, aL as Et, aM as Gn, aN as Zn, aO as Xn, aP as Qn, aQ as Ae, aR as Jn } from "./BbW_1O3cEhZ4aSgS.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
|
|
4
|
+
*
|
|
5
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
+
*/
|
|
8
|
+
function Yn(e) {
|
|
9
|
+
return ut("MuiCollapse", e);
|
|
10
|
+
}
|
|
11
|
+
dt("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
12
|
+
const eo = Te("div", { name: "MuiCollapse", slot: "Root", overridesResolver: (e, o) => {
|
|
13
|
+
const { ownerState: r } = e;
|
|
14
|
+
return [o.root, o[r.orientation], r.state === "entered" && o.entered, r.state === "exited" && !r.in && r.collapsedSize === "0px" && o.hidden];
|
|
15
|
+
} })(pn(({ theme: e }) => ({ height: 0, overflow: "hidden", transition: e.transitions.create("height"), variants: [{ props: { orientation: "horizontal" }, style: { height: "auto", width: 0, transition: e.transitions.create("width") } }, { props: { state: "entered" }, style: { height: "auto", overflow: "visible" } }, { props: { state: "entered", orientation: "horizontal" }, style: { width: "auto" } }, { props: ({ ownerState: o }) => o.state === "exited" && !o.in && o.collapsedSize === "0px", style: { visibility: "hidden" } }] }))), to = Te("div", { name: "MuiCollapse", slot: "Wrapper", overridesResolver: (e, o) => o.wrapper })({ display: "flex", width: "100%", variants: [{ props: { orientation: "horizontal" }, style: { width: "auto", height: "100%" } }] }), no = Te("div", { name: "MuiCollapse", slot: "WrapperInner", overridesResolver: (e, o) => o.wrapperInner })({ width: "100%", variants: [{ props: { orientation: "horizontal" }, style: { width: "auto", height: "100%" } }] }), at = s.forwardRef(function(e, o) {
|
|
16
|
+
const r = $e({ props: e, name: "MuiCollapse" }), { addEndListener: t, children: n, className: a, collapsedSize: i = "0px", component: c, easing: l, in: u, onEnter: d, onEntered: f, onEntering: b, onExit: v, onExited: x, onExiting: k, orientation: w = "vertical", style: g, timeout: m = sn.standard, TransitionComponent: D = ln, ...E } = r, R = { ...r, orientation: w, collapsedSize: i }, j = ((C) => {
|
|
17
|
+
const { orientation: V, classes: $ } = C;
|
|
18
|
+
return mt({ root: ["root", `${V}`], entered: ["entered"], hidden: ["hidden"], wrapper: ["wrapper", `${V}`], wrapperInner: ["wrapperInner", `${V}`] }, Yn, $);
|
|
19
|
+
})(R), H = cn(), q = un(), I = s.useRef(null), B = s.useRef(), G = typeof i == "number" ? `${i}px` : i, Q = w === "horizontal", ae = Q ? "width" : "height", P = s.useRef(null), U = dn(o, P), y = (C) => (V) => {
|
|
20
|
+
if (C) {
|
|
21
|
+
const $ = P.current;
|
|
22
|
+
V === void 0 ? C($) : C($, V);
|
|
23
|
+
}
|
|
24
|
+
}, T = () => I.current ? I.current[Q ? "clientWidth" : "clientHeight"] : 0, M = y((C, V) => {
|
|
25
|
+
I.current && Q && (I.current.style.position = "absolute"), C.style[ae] = G, d && d(C, V);
|
|
26
|
+
}), F = y((C, V) => {
|
|
27
|
+
const $ = T();
|
|
28
|
+
I.current && Q && (I.current.style.position = "");
|
|
29
|
+
const { duration: J, easing: ie } = bt({ style: g, timeout: m, easing: l }, { mode: "enter" });
|
|
30
|
+
if (m === "auto") {
|
|
31
|
+
const fe = H.transitions.getAutoHeightDuration($);
|
|
32
|
+
C.style.transitionDuration = `${fe}ms`, B.current = fe;
|
|
33
|
+
} else C.style.transitionDuration = typeof J == "string" ? J : `${J}ms`;
|
|
34
|
+
C.style[ae] = `${$}px`, C.style.transitionTimingFunction = ie, b && b(C, V);
|
|
35
|
+
}), z = y((C, V) => {
|
|
36
|
+
C.style[ae] = "auto", f && f(C, V);
|
|
37
|
+
}), _ = y((C) => {
|
|
38
|
+
C.style[ae] = `${T()}px`, v && v(C);
|
|
39
|
+
}), ce = y(x), A = y((C) => {
|
|
40
|
+
const V = T(), { duration: $, easing: J } = bt({ style: g, timeout: m, easing: l }, { mode: "exit" });
|
|
41
|
+
if (m === "auto") {
|
|
42
|
+
const ie = H.transitions.getAutoHeightDuration(V);
|
|
43
|
+
C.style.transitionDuration = `${ie}ms`, B.current = ie;
|
|
44
|
+
} else C.style.transitionDuration = typeof $ == "string" ? $ : `${$}ms`;
|
|
45
|
+
C.style[ae] = G, C.style.transitionTimingFunction = J, k && k(C);
|
|
46
|
+
});
|
|
47
|
+
return p.jsx(D, { in: u, onEnter: M, onEntered: z, onEntering: F, onExit: _, onExited: ce, onExiting: A, addEndListener: (C) => {
|
|
48
|
+
m === "auto" && q.start(B.current || 0, C), t && t(P.current, C);
|
|
49
|
+
}, nodeRef: P, timeout: m === "auto" ? null : m, ...E, children: (C, { ownerState: V, ...$ }) => p.jsx(eo, { as: c, className: pt(j.root, a, { entered: j.entered, exited: !u && G === "0px" && j.hidden }[C]), style: { [Q ? "minWidth" : "minHeight"]: G, ...g }, ref: U, ownerState: { ...R, state: C }, ...$, children: p.jsx(to, { ownerState: { ...R, state: C }, className: j.wrapper, ref: I, children: p.jsx(no, { ownerState: { ...R, state: C }, className: j.wrapperInner, children: n }) }) }) });
|
|
50
|
+
});
|
|
51
|
+
function oo(e) {
|
|
52
|
+
return ut("MuiCard", e);
|
|
53
|
+
}
|
|
54
|
+
at && (at.muiSupportAuto = !0), dt("MuiCard", ["root"]);
|
|
55
|
+
const ro = Te(mn, { name: "MuiCard", slot: "Root", overridesResolver: (e, o) => o.root })({ overflow: "hidden" }), ao = s.forwardRef(function(e, o) {
|
|
56
|
+
const r = $e({ props: e, name: "MuiCard" }), { className: t, raised: n = !1, ...a } = r, i = { ...r, raised: n }, c = ((l) => {
|
|
57
|
+
const { classes: u } = l;
|
|
58
|
+
return mt({ root: ["root"] }, oo, u);
|
|
59
|
+
})(i);
|
|
60
|
+
return p.jsx(ro, { className: pt(c.root, t), elevation: n ? 8 : void 0, ref: o, ownerState: i, ...a });
|
|
61
|
+
});
|
|
62
|
+
function io(e) {
|
|
63
|
+
return ut("MuiCardActions", e);
|
|
64
|
+
}
|
|
65
|
+
dt("MuiCardActions", ["root", "spacing"]);
|
|
66
|
+
const so = Te("div", { name: "MuiCardActions", slot: "Root", overridesResolver: (e, o) => {
|
|
67
|
+
const { ownerState: r } = e;
|
|
68
|
+
return [o.root, !r.disableSpacing && o.spacing];
|
|
69
|
+
} })({ display: "flex", alignItems: "center", padding: 8, variants: [{ props: { disableSpacing: !1 }, style: { "& > :not(style) ~ :not(style)": { marginLeft: 8 } } }] }), lo = s.forwardRef(function(e, o) {
|
|
70
|
+
const r = $e({ props: e, name: "MuiCardActions" }), { disableSpacing: t = !1, className: n, ...a } = r, i = { ...r, disableSpacing: t }, c = ((l) => {
|
|
71
|
+
const { classes: u, disableSpacing: d } = l;
|
|
72
|
+
return mt({ root: ["root", !d && "spacing"] }, io, u);
|
|
73
|
+
})(i);
|
|
74
|
+
return p.jsx(so, { className: pt(c.root, n), ownerState: i, ref: o, ...a });
|
|
75
|
+
}), it = typeof Ft({}) == "function", co = (e, o) => ({ WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale", boxSizing: "border-box", WebkitTextSizeAdjust: "100%", ...o && !e.vars && { colorScheme: e.palette.mode } }), uo = (e) => ({ color: (e.vars || e).palette.text.primary, ...e.typography.body1, backgroundColor: (e.vars || e).palette.background.default, "@media print": { backgroundColor: (e.vars || e).palette.common.white } }), Ct = (e, o = !1) => {
|
|
76
|
+
const r = {};
|
|
77
|
+
o && e.colorSchemes && typeof e.getColorSchemeSelector == "function" && Object.entries(e.colorSchemes).forEach(([a, i]) => {
|
|
78
|
+
const c = e.getColorSchemeSelector(a);
|
|
79
|
+
c.startsWith("@") ? r[c] = { ":root": { colorScheme: i.palette?.mode } } : r[c.replace(/\s*&/, "")] = { colorScheme: i.palette?.mode };
|
|
80
|
+
});
|
|
81
|
+
let t = { html: co(e, o), "*, *::before, *::after": { boxSizing: "inherit" }, "strong, b": { fontWeight: e.typography.fontWeightBold }, body: { margin: 0, ...uo(e), "&::backdrop": { backgroundColor: (e.vars || e).palette.background.default } }, ...r };
|
|
82
|
+
const n = e.components?.MuiCssBaseline?.styleOverrides;
|
|
83
|
+
return n && (t = [t, n]), t;
|
|
84
|
+
}, qe = "mui-ecs", po = Ft(it ? ({ theme: e, enableColorScheme: o }) => Ct(e, o) : ({ theme: e }) => ((o) => {
|
|
85
|
+
const r = Ct(o, !1), t = Array.isArray(r) ? r[0] : r;
|
|
86
|
+
return !o.vars && t && (t.html[`:root:has(${qe})`] = { colorScheme: o.palette.mode }), o.colorSchemes && Object.entries(o.colorSchemes).forEach(([n, a]) => {
|
|
87
|
+
const i = o.getColorSchemeSelector(n);
|
|
88
|
+
i.startsWith("@") ? t[i] = { [`:root:not(:has(.${qe}))`]: { colorScheme: a.palette?.mode } } : t[i.replace(/\s*&/, "")] = { [`&:not(:has(.${qe}))`]: { colorScheme: a.palette?.mode } };
|
|
89
|
+
}), r;
|
|
90
|
+
})(e));
|
|
91
|
+
function mo(e) {
|
|
92
|
+
const o = $e({ props: e, name: "MuiCssBaseline" }), { children: r, enableColorScheme: t = !1 } = o;
|
|
93
|
+
return p.jsxs(s.Fragment, { children: [it && p.jsx(po, { enableColorScheme: t }), !it && !t && p.jsx("span", { className: qe, style: { display: "none" } }), r] });
|
|
94
|
+
}
|
|
95
|
+
const fo = fn(p.jsx("path", { d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z" }), "CancelOutlined"), ho = s.createContext(null), Ze = { didCatch: !1, error: null };
|
|
96
|
+
class go extends s.Component {
|
|
97
|
+
constructor(o) {
|
|
98
|
+
super(o), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ze;
|
|
99
|
+
}
|
|
100
|
+
static getDerivedStateFromError(o) {
|
|
101
|
+
return { didCatch: !0, error: o };
|
|
102
|
+
}
|
|
103
|
+
resetErrorBoundary() {
|
|
104
|
+
const { error: o } = this.state;
|
|
105
|
+
if (o !== null) {
|
|
106
|
+
for (var r, t, n = arguments.length, a = new Array(n), i = 0; i < n; i++) a[i] = arguments[i];
|
|
107
|
+
(r = (t = this.props).onReset) === null || r === void 0 || r.call(t, { args: a, reason: "imperative-api" }), this.setState(Ze);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
componentDidCatch(o, r) {
|
|
111
|
+
var t, n;
|
|
112
|
+
(t = (n = this.props).onError) === null || t === void 0 || t.call(n, o, r);
|
|
113
|
+
}
|
|
114
|
+
componentDidUpdate(o, r) {
|
|
115
|
+
const { didCatch: t } = this.state, { resetKeys: n } = this.props;
|
|
116
|
+
var a, i;
|
|
117
|
+
t && r.error !== null && function() {
|
|
118
|
+
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
119
|
+
return c.length !== l.length || c.some((u, d) => !Object.is(u, l[d]));
|
|
120
|
+
}(o.resetKeys, n) && ((a = (i = this.props).onReset) === null || a === void 0 || a.call(i, { next: n, prev: o.resetKeys, reason: "keys" }), this.setState(Ze));
|
|
121
|
+
}
|
|
122
|
+
render() {
|
|
123
|
+
const { children: o, fallbackRender: r, FallbackComponent: t, fallback: n } = this.props, { didCatch: a, error: i } = this.state;
|
|
124
|
+
let c = o;
|
|
125
|
+
if (a) {
|
|
126
|
+
const l = { error: i, resetErrorBoundary: this.resetErrorBoundary };
|
|
127
|
+
if (typeof r == "function") c = r(l);
|
|
128
|
+
else if (t) c = s.createElement(t, l);
|
|
129
|
+
else {
|
|
130
|
+
if (n === void 0) throw i;
|
|
131
|
+
c = n;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return s.createElement(ho.Provider, { value: { didCatch: a, error: i, resetErrorBoundary: this.resetErrorBoundary } }, c);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function Bt(e) {
|
|
138
|
+
var o, r, t = "";
|
|
139
|
+
if (typeof e == "string" || typeof e == "number") t += e;
|
|
140
|
+
else if (typeof e == "object") if (Array.isArray(e)) for (o = 0; o < e.length; o++) e[o] && (r = Bt(e[o])) && (t && (t += " "), t += r);
|
|
141
|
+
else for (o in e) e[o] && (t && (t += " "), t += o);
|
|
142
|
+
return t;
|
|
143
|
+
}
|
|
144
|
+
function le() {
|
|
145
|
+
for (var e, o, r = 0, t = ""; r < arguments.length; ) (e = arguments[r++]) && (o = Bt(e)) && (t && (t += " "), t += o);
|
|
146
|
+
return t;
|
|
147
|
+
}
|
|
148
|
+
let ko = { data: "" }, bo = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, xo = /\/\*[^]*?\*\/| +/g, St = /\n+/g, me = (e, o) => {
|
|
149
|
+
let r = "", t = "", n = "";
|
|
150
|
+
for (let a in e) {
|
|
151
|
+
let i = e[a];
|
|
152
|
+
a[0] == "@" ? a[1] == "i" ? r = a + " " + i + ";" : t += a[1] == "f" ? me(i, a) : a + "{" + me(i, a[1] == "k" ? "" : o) + "}" : typeof i == "object" ? t += me(i, o ? o.replace(/([^,])+/g, (c) => a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (l) => /&/.test(l) ? l.replace(/&/g, c) : c ? c + " " + l : l)) : a) : i != null && (a = /^--/.test(a) ? a : a.replace(/[A-Z]/g, "-$&").toLowerCase(), n += me.p ? me.p(a, i) : a + ":" + i + ";");
|
|
153
|
+
}
|
|
154
|
+
return r + (o && n ? o + "{" + n + "}" : n) + t;
|
|
155
|
+
}, oe = {}, Vt = (e) => {
|
|
156
|
+
if (typeof e == "object") {
|
|
157
|
+
let o = "";
|
|
158
|
+
for (let r in e) o += r + Vt(e[r]);
|
|
159
|
+
return o;
|
|
160
|
+
}
|
|
161
|
+
return e;
|
|
162
|
+
};
|
|
163
|
+
function st(e) {
|
|
164
|
+
let o = this || {}, r = e.call ? e(o.p) : e;
|
|
165
|
+
return ((i, c, l, u, d) => {
|
|
166
|
+
let f = Vt(i), b = oe[f] || (oe[f] = ((m) => {
|
|
167
|
+
let D = 0, E = 11;
|
|
168
|
+
for (; D < m.length; ) E = 101 * E + m.charCodeAt(D++) >>> 0;
|
|
169
|
+
return "go" + E;
|
|
170
|
+
})(f));
|
|
171
|
+
if (!oe[b]) {
|
|
172
|
+
let m = f !== i ? i : ((D) => {
|
|
173
|
+
let E, R, j = [{}];
|
|
174
|
+
for (; E = bo.exec(D.replace(xo, "")); ) E[4] ? j.shift() : E[3] ? (R = E[3].replace(St, " ").trim(), j.unshift(j[0][R] = j[0][R] || {})) : j[0][E[1]] = E[2].replace(St, " ").trim();
|
|
175
|
+
return j[0];
|
|
176
|
+
})(i);
|
|
177
|
+
oe[b] = me(d ? { ["@keyframes " + b]: m } : m, l ? "" : "." + b);
|
|
178
|
+
}
|
|
179
|
+
let v = l && oe.g ? oe.g : null;
|
|
180
|
+
return l && (oe.g = oe[b]), x = oe[b], k = c, w = u, (g = v) ? k.data = k.data.replace(g, x) : k.data.indexOf(x) === -1 && (k.data = w ? x + k.data : k.data + x), b;
|
|
181
|
+
var x, k, w, g;
|
|
182
|
+
})(r.unshift ? r.raw ? (t = r, n = [].slice.call(arguments, 1), a = o.p, t.reduce((i, c, l) => {
|
|
183
|
+
let u = n[l];
|
|
184
|
+
if (u && u.call) {
|
|
185
|
+
let d = u(a), f = d && d.props && d.props.className || /^go/.test(d) && d;
|
|
186
|
+
u = f ? "." + f : d && typeof d == "object" ? d.props ? "" : me(d, "") : d === !1 ? "" : d;
|
|
187
|
+
}
|
|
188
|
+
return i + c + (u ?? "");
|
|
189
|
+
}, "")) : r.reduce((i, c) => Object.assign(i, c && c.call ? c(o.p) : c), {}) : r, ((i) => typeof window == "object" ? ((i ? i.querySelector("#_goober") : window._goober) || Object.assign((i || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : i || ko)(o.target), o.g, o.o, o.k);
|
|
190
|
+
var t, n, a;
|
|
191
|
+
}
|
|
192
|
+
function $t(e, o, r) {
|
|
193
|
+
return o && function(t, n) {
|
|
194
|
+
for (var a = 0; a < n.length; a++) {
|
|
195
|
+
var i = n[a];
|
|
196
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i);
|
|
197
|
+
}
|
|
198
|
+
}(e.prototype, o), e;
|
|
199
|
+
}
|
|
200
|
+
function W() {
|
|
201
|
+
return W = Object.assign || function(e) {
|
|
202
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
203
|
+
var r = arguments[o];
|
|
204
|
+
for (var t in r) Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
205
|
+
}
|
|
206
|
+
return e;
|
|
207
|
+
}, W.apply(this, arguments);
|
|
208
|
+
}
|
|
209
|
+
function Ut(e, o) {
|
|
210
|
+
e.prototype = Object.create(o.prototype), e.prototype.constructor = e, e.__proto__ = o;
|
|
211
|
+
}
|
|
212
|
+
function Oe(e, o) {
|
|
213
|
+
if (e == null) return {};
|
|
214
|
+
var r, t, n = {}, a = Object.keys(e);
|
|
215
|
+
for (t = 0; t < a.length; t++) r = a[t], o.indexOf(r) >= 0 || (n[r] = e[r]);
|
|
216
|
+
return n;
|
|
217
|
+
}
|
|
218
|
+
function Dt(e) {
|
|
219
|
+
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
220
|
+
return e;
|
|
221
|
+
}
|
|
222
|
+
st.bind({ g: 1 }), st.bind({ k: 1 });
|
|
223
|
+
var jt = function() {
|
|
224
|
+
return "";
|
|
225
|
+
}, Kt = L.createContext({ enqueueSnackbar: jt, closeSnackbar: jt }), Xe = "@media (max-width:599.95px)", Be = "@media (min-width:600px)", Mt = function(e) {
|
|
226
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
227
|
+
}, ft = function(e) {
|
|
228
|
+
return "" + Mt(e.vertical) + Mt(e.horizontal);
|
|
229
|
+
}, Ne = function(e) {
|
|
230
|
+
return !!e || e === 0;
|
|
231
|
+
}, Ie = "unmounted", ge = "exited", ke = "entering", Ce = "entered", Tt = "exiting", ht = function(e) {
|
|
232
|
+
function o(t) {
|
|
233
|
+
var n;
|
|
234
|
+
n = e.call(this, t) || this;
|
|
235
|
+
var a, i = t.appear;
|
|
236
|
+
return n.appearStatus = null, t.in ? i ? (a = ge, n.appearStatus = ke) : a = Ce : a = t.unmountOnExit || t.mountOnEnter ? Ie : ge, n.state = { status: a }, n.nextCallback = null, n;
|
|
237
|
+
}
|
|
238
|
+
Ut(o, e), o.getDerivedStateFromProps = function(t, n) {
|
|
239
|
+
return t.in && n.status === Ie ? { status: ge } : null;
|
|
240
|
+
};
|
|
241
|
+
var r = o.prototype;
|
|
242
|
+
return r.componentDidMount = function() {
|
|
243
|
+
this.updateStatus(!0, this.appearStatus);
|
|
244
|
+
}, r.componentDidUpdate = function(t) {
|
|
245
|
+
var n = null;
|
|
246
|
+
if (t !== this.props) {
|
|
247
|
+
var a = this.state.status;
|
|
248
|
+
this.props.in ? a !== ke && a !== Ce && (n = ke) : a !== ke && a !== Ce || (n = Tt);
|
|
249
|
+
}
|
|
250
|
+
this.updateStatus(!1, n);
|
|
251
|
+
}, r.componentWillUnmount = function() {
|
|
252
|
+
this.cancelNextCallback();
|
|
253
|
+
}, r.getTimeouts = function() {
|
|
254
|
+
var t = this.props.timeout, n = t, a = t;
|
|
255
|
+
return t != null && typeof t != "number" && typeof t != "string" && (a = t.exit, n = t.enter), { exit: a, enter: n };
|
|
256
|
+
}, r.updateStatus = function(t, n) {
|
|
257
|
+
t === void 0 && (t = !1), n !== null ? (this.cancelNextCallback(), n === ke ? this.performEnter(t) : this.performExit()) : this.props.unmountOnExit && this.state.status === ge && this.setState({ status: Ie });
|
|
258
|
+
}, r.performEnter = function(t) {
|
|
259
|
+
var n = this, a = this.props.enter, i = t, c = this.getTimeouts();
|
|
260
|
+
t || a ? (this.props.onEnter && this.props.onEnter(this.node, i), this.safeSetState({ status: ke }, function() {
|
|
261
|
+
n.props.onEntering && n.props.onEntering(n.node, i), n.onTransitionEnd(c.enter, function() {
|
|
262
|
+
n.safeSetState({ status: Ce }, function() {
|
|
263
|
+
n.props.onEntered && n.props.onEntered(n.node, i);
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
})) : this.safeSetState({ status: Ce }, function() {
|
|
267
|
+
n.props.onEntered && n.props.onEntered(n.node, i);
|
|
268
|
+
});
|
|
269
|
+
}, r.performExit = function() {
|
|
270
|
+
var t = this, n = this.props.exit, a = this.getTimeouts();
|
|
271
|
+
n ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status: Tt }, function() {
|
|
272
|
+
t.props.onExiting && t.props.onExiting(t.node), t.onTransitionEnd(a.exit, function() {
|
|
273
|
+
t.safeSetState({ status: ge }, function() {
|
|
274
|
+
t.props.onExited && t.props.onExited(t.node);
|
|
275
|
+
});
|
|
276
|
+
});
|
|
277
|
+
})) : this.safeSetState({ status: ge }, function() {
|
|
278
|
+
t.props.onExited && t.props.onExited(t.node);
|
|
279
|
+
});
|
|
280
|
+
}, r.cancelNextCallback = function() {
|
|
281
|
+
this.nextCallback !== null && this.nextCallback.cancel && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
282
|
+
}, r.safeSetState = function(t, n) {
|
|
283
|
+
n = this.setNextCallback(n), this.setState(t, n);
|
|
284
|
+
}, r.setNextCallback = function(t) {
|
|
285
|
+
var n = this, a = !0;
|
|
286
|
+
return this.nextCallback = function() {
|
|
287
|
+
a && (a = !1, n.nextCallback = null, t());
|
|
288
|
+
}, this.nextCallback.cancel = function() {
|
|
289
|
+
a = !1;
|
|
290
|
+
}, this.nextCallback;
|
|
291
|
+
}, r.onTransitionEnd = function(t, n) {
|
|
292
|
+
this.setNextCallback(n);
|
|
293
|
+
var a = t == null && !this.props.addEndListener;
|
|
294
|
+
this.node && !a ? (this.props.addEndListener && this.props.addEndListener(this.node, this.nextCallback), t != null && setTimeout(this.nextCallback, t)) : setTimeout(this.nextCallback, 0);
|
|
295
|
+
}, r.render = function() {
|
|
296
|
+
var t = this.state.status;
|
|
297
|
+
if (t === Ie) return null;
|
|
298
|
+
var n = this.props;
|
|
299
|
+
return (0, n.children)(t, Oe(n, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]));
|
|
300
|
+
}, $t(o, [{ key: "node", get: function() {
|
|
301
|
+
var t, n = (t = this.props.nodeRef) === null || t === void 0 ? void 0 : t.current;
|
|
302
|
+
if (!n) throw new Error("notistack - Custom snackbar is not refForwarding");
|
|
303
|
+
return n;
|
|
304
|
+
} }]), o;
|
|
305
|
+
}(L.Component);
|
|
306
|
+
function be() {
|
|
307
|
+
}
|
|
308
|
+
function Ot(e, o) {
|
|
309
|
+
typeof e == "function" ? e(o) : e && (e.current = o);
|
|
310
|
+
}
|
|
311
|
+
function lt(e, o) {
|
|
312
|
+
return s.useMemo(function() {
|
|
313
|
+
return e == null && o == null ? null : function(r) {
|
|
314
|
+
Ot(e, r), Ot(o, r);
|
|
315
|
+
};
|
|
316
|
+
}, [e, o]);
|
|
317
|
+
}
|
|
318
|
+
function Ve(e) {
|
|
319
|
+
var o = e.timeout, r = e.style, t = r === void 0 ? {} : r, n = e.mode;
|
|
320
|
+
return { duration: typeof o == "object" ? o[n] || 0 : o, easing: t.transitionTimingFunction, delay: t.transitionDelay };
|
|
321
|
+
}
|
|
322
|
+
ht.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter: be, onEntering: be, onEntered: be, onExit: be, onExiting: be, onExited: be };
|
|
323
|
+
var Gt = function(e) {
|
|
324
|
+
e.scrollTop = e.scrollTop;
|
|
325
|
+
}, Lt = function(e) {
|
|
326
|
+
return Math.round(e) + "ms";
|
|
327
|
+
};
|
|
328
|
+
function xe(e, o) {
|
|
329
|
+
e === void 0 && (e = ["all"]);
|
|
330
|
+
var r = o || {}, t = r.duration, n = t === void 0 ? 300 : t, a = r.easing, i = a === void 0 ? "cubic-bezier(0.4, 0, 0.2, 1)" : a, c = r.delay, l = c === void 0 ? 0 : c;
|
|
331
|
+
return (Array.isArray(e) ? e : [e]).map(function(u) {
|
|
332
|
+
var d = typeof n == "string" ? n : Lt(n), f = typeof l == "string" ? l : Lt(l);
|
|
333
|
+
return u + " " + d + " " + i + " " + f;
|
|
334
|
+
}).join(",");
|
|
335
|
+
}
|
|
336
|
+
function Zt(e) {
|
|
337
|
+
var o;
|
|
338
|
+
return ((o = e) && o.ownerDocument || document).defaultView || window;
|
|
339
|
+
}
|
|
340
|
+
function Pe(e, o) {
|
|
341
|
+
if (o) {
|
|
342
|
+
var r = function(t, n) {
|
|
343
|
+
var a, i = n.getBoundingClientRect(), c = Zt(n);
|
|
344
|
+
if (n.fakeTransform) a = n.fakeTransform;
|
|
345
|
+
else {
|
|
346
|
+
var l = c.getComputedStyle(n);
|
|
347
|
+
a = l.getPropertyValue("-webkit-transform") || l.getPropertyValue("transform");
|
|
348
|
+
}
|
|
349
|
+
var u = 0, d = 0;
|
|
350
|
+
if (a && a !== "none" && typeof a == "string") {
|
|
351
|
+
var f = a.split("(")[1].split(")")[0].split(",");
|
|
352
|
+
u = parseInt(f[4], 10), d = parseInt(f[5], 10);
|
|
353
|
+
}
|
|
354
|
+
switch (t) {
|
|
355
|
+
case "left":
|
|
356
|
+
return "translateX(" + (c.innerWidth + u - i.left) + "px)";
|
|
357
|
+
case "right":
|
|
358
|
+
return "translateX(-" + (i.left + i.width - u) + "px)";
|
|
359
|
+
case "up":
|
|
360
|
+
return "translateY(" + (c.innerHeight + d - i.top) + "px)";
|
|
361
|
+
default:
|
|
362
|
+
return "translateY(-" + (i.top + i.height - d) + "px)";
|
|
363
|
+
}
|
|
364
|
+
}(e, o);
|
|
365
|
+
r && (o.style.webkitTransform = r, o.style.transform = r);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
var Xt = s.forwardRef(function(e, o) {
|
|
369
|
+
var r = e.children, t = e.direction, n = t === void 0 ? "down" : t, a = e.in, i = e.style, c = e.timeout, l = c === void 0 ? 0 : c, u = e.onEnter, d = e.onEntered, f = e.onExit, b = e.onExited, v = Oe(e, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), x = s.useRef(null), k = lt(r.ref, x), w = lt(k, o), g = s.useCallback(function() {
|
|
370
|
+
x.current && Pe(n, x.current);
|
|
371
|
+
}, [n]);
|
|
372
|
+
return s.useEffect(function() {
|
|
373
|
+
if (!a && n !== "down" && n !== "right") {
|
|
374
|
+
var m = function(E, R) {
|
|
375
|
+
var j;
|
|
376
|
+
function H() {
|
|
377
|
+
for (var q = this, I = arguments.length, B = new Array(I), G = 0; G < I; G++) B[G] = arguments[G];
|
|
378
|
+
clearTimeout(j), j = setTimeout(function() {
|
|
379
|
+
E.apply(q, B);
|
|
380
|
+
}, R);
|
|
381
|
+
}
|
|
382
|
+
return R === void 0 && (R = 166), H.clear = function() {
|
|
383
|
+
clearTimeout(j);
|
|
384
|
+
}, H;
|
|
385
|
+
}(function() {
|
|
386
|
+
x.current && Pe(n, x.current);
|
|
387
|
+
}), D = Zt(x.current);
|
|
388
|
+
return D.addEventListener("resize", m), function() {
|
|
389
|
+
m.clear(), D.removeEventListener("resize", m);
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
}, [n, a]), s.useEffect(function() {
|
|
393
|
+
a || g();
|
|
394
|
+
}, [a, g]), s.createElement(ht, Object.assign({ appear: !0, nodeRef: x, onEnter: function(m, D) {
|
|
395
|
+
Pe(n, m), Gt(m), u && u(m, D);
|
|
396
|
+
}, onEntered: d, onEntering: function(m) {
|
|
397
|
+
var D = Ve({ timeout: l, mode: "enter", style: W({}, i, { transitionTimingFunction: i?.transitionTimingFunction || "cubic-bezier(0.0, 0, 0.2, 1)" }) });
|
|
398
|
+
m.style.webkitTransition = xe("-webkit-transform", D), m.style.transition = xe("transform", D), m.style.webkitTransform = "none", m.style.transform = "none";
|
|
399
|
+
}, onExit: function(m) {
|
|
400
|
+
var D = Ve({ timeout: l, mode: "exit", style: W({}, i, { transitionTimingFunction: i?.transitionTimingFunction || "cubic-bezier(0.4, 0, 0.6, 1)" }) });
|
|
401
|
+
m.style.webkitTransition = xe("-webkit-transform", D), m.style.transition = xe("transform", D), Pe(n, m), f && f(m);
|
|
402
|
+
}, onExited: function(m) {
|
|
403
|
+
m.style.webkitTransition = "", m.style.transition = "", b && b(m);
|
|
404
|
+
}, in: a, timeout: l }, v), function(m, D) {
|
|
405
|
+
return s.cloneElement(r, W({ ref: w, style: W({ visibility: m !== "exited" || a ? void 0 : "hidden" }, i, {}, r.props.style) }, D));
|
|
406
|
+
});
|
|
407
|
+
});
|
|
408
|
+
Xt.displayName = "Slide";
|
|
409
|
+
var Fe = function(e) {
|
|
410
|
+
return L.createElement("svg", Object.assign({ viewBox: "0 0 24 24", focusable: "false", style: { fontSize: 20, marginInlineEnd: 8, userSelect: "none", width: "1em", height: "1em", display: "inline-block", fill: "currentColor", flexShrink: 0 } }, e));
|
|
411
|
+
}, de = { maxSnack: 3, persist: !1, hideIconVariant: !1, disableWindowBlurListener: !1, variant: "default", autoHideDuration: 5e3, iconVariant: { default: void 0, success: L.createElement(function() {
|
|
412
|
+
return L.createElement(Fe, null, L.createElement("path", { d: `M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
413
|
+
10.59L10 14.17L17.59 6.58L19 8L10 17Z` }));
|
|
414
|
+
}, null), warning: L.createElement(function() {
|
|
415
|
+
return L.createElement(Fe, null, L.createElement("path", { d: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z" }));
|
|
416
|
+
}, null), error: L.createElement(function() {
|
|
417
|
+
return L.createElement(Fe, null, L.createElement("path", { d: `M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
418
|
+
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
419
|
+
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z` }));
|
|
420
|
+
}, null), info: L.createElement(function() {
|
|
421
|
+
return L.createElement(Fe, null, L.createElement("path", { d: `M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
422
|
+
0 22,12A10,10 0 0,0 12,2Z` }));
|
|
423
|
+
}, null) }, anchorOrigin: { vertical: "bottom", horizontal: "left" }, TransitionComponent: Xt, transitionDuration: { enter: 225, exit: 195 } };
|
|
424
|
+
function Le(e) {
|
|
425
|
+
return Object.entries(e).reduce(function(o, r) {
|
|
426
|
+
var t, n = r[0], a = r[1];
|
|
427
|
+
return W({}, o, ((t = {})[n] = st(a), t));
|
|
428
|
+
}, {});
|
|
429
|
+
}
|
|
430
|
+
var Qt = "notistack-CollapseWrapper", yo = function(e) {
|
|
431
|
+
return "notistack-MuiContent-" + e;
|
|
432
|
+
}, Wt = Le({ root: { height: 0 }, entered: { height: "auto" } }), Qe = "0px", Jt = s.forwardRef(function(e, o) {
|
|
433
|
+
var r = e.children, t = e.in, n = e.onExited, a = s.useRef(null), i = s.useRef(null), c = lt(o, i), l = function() {
|
|
434
|
+
return a.current ? a.current.clientHeight : 0;
|
|
435
|
+
};
|
|
436
|
+
return s.createElement(ht, { in: t, unmountOnExit: !0, onEnter: function(u) {
|
|
437
|
+
u.style.height = Qe;
|
|
438
|
+
}, onEntered: function(u) {
|
|
439
|
+
u.style.height = "auto";
|
|
440
|
+
}, onEntering: function(u) {
|
|
441
|
+
var d = l(), f = Ve({ timeout: 175, mode: "enter" }), b = f.duration, v = f.easing;
|
|
442
|
+
u.style.transitionDuration = typeof b == "string" ? b : b + "ms", u.style.height = d + "px", u.style.transitionTimingFunction = v || "";
|
|
443
|
+
}, onExit: function(u) {
|
|
444
|
+
u.style.height = l() + "px";
|
|
445
|
+
}, onExited: n, onExiting: function(u) {
|
|
446
|
+
Gt(u);
|
|
447
|
+
var d = Ve({ timeout: 175, mode: "exit" }), f = d.duration, b = d.easing;
|
|
448
|
+
u.style.transitionDuration = typeof f == "string" ? f : f + "ms", u.style.height = Qe, u.style.transitionTimingFunction = b || "";
|
|
449
|
+
}, nodeRef: i, timeout: 175 }, function(u, d) {
|
|
450
|
+
return s.createElement("div", Object.assign({ ref: c, className: le(Wt.root, u === "entered" && Wt.entered), style: W({ pointerEvents: "all", overflow: "hidden", minHeight: Qe, transition: xe("height") }, u === "entered" && { overflow: "visible" }, {}, u === "exited" && !t && { visibility: "hidden" }) }, d), s.createElement("div", { ref: a, className: Qt, style: { display: "flex", width: "100%" } }, r));
|
|
451
|
+
});
|
|
452
|
+
});
|
|
453
|
+
Jt.displayName = "Collapse";
|
|
454
|
+
var Rt = { right: "left", left: "right", bottom: "up", top: "down" }, wo = function(e) {
|
|
455
|
+
return "anchorOrigin" + ft(e);
|
|
456
|
+
}, vo = function() {
|
|
457
|
+
};
|
|
458
|
+
function Me(e, o) {
|
|
459
|
+
return e.reduce(function(r, t) {
|
|
460
|
+
return t == null ? r : function() {
|
|
461
|
+
for (var n = arguments.length, a = new Array(n), i = 0; i < n; i++) a[i] = arguments[i];
|
|
462
|
+
var c = [].concat(a);
|
|
463
|
+
o && c.indexOf(o) === -1 && c.push(o), r.apply(this, c), t.apply(this, c);
|
|
464
|
+
};
|
|
465
|
+
}, vo);
|
|
466
|
+
}
|
|
467
|
+
var Eo = typeof window < "u" ? s.useLayoutEffect : s.useEffect;
|
|
468
|
+
function At(e) {
|
|
469
|
+
var o = s.useRef(e);
|
|
470
|
+
return Eo(function() {
|
|
471
|
+
o.current = e;
|
|
472
|
+
}), s.useCallback(function() {
|
|
473
|
+
return o.current.apply(void 0, arguments);
|
|
474
|
+
}, []);
|
|
475
|
+
}
|
|
476
|
+
var Je, Yt = s.forwardRef(function(e, o) {
|
|
477
|
+
var r = e.children, t = e.className, n = e.autoHideDuration, a = e.disableWindowBlurListener, i = a !== void 0 && a, c = e.onClose, l = e.id, u = e.open, d = e.SnackbarProps, f = d === void 0 ? {} : d, b = s.useRef(), v = At(function() {
|
|
478
|
+
c && c.apply(void 0, arguments);
|
|
479
|
+
}), x = At(function(g) {
|
|
480
|
+
c && g != null && (b.current && clearTimeout(b.current), b.current = setTimeout(function() {
|
|
481
|
+
v(null, "timeout", l);
|
|
482
|
+
}, g));
|
|
483
|
+
});
|
|
484
|
+
s.useEffect(function() {
|
|
485
|
+
return u && x(n), function() {
|
|
486
|
+
b.current && clearTimeout(b.current);
|
|
487
|
+
};
|
|
488
|
+
}, [u, n, x]);
|
|
489
|
+
var k = function() {
|
|
490
|
+
b.current && clearTimeout(b.current);
|
|
491
|
+
}, w = s.useCallback(function() {
|
|
492
|
+
n != null && x(0.5 * n);
|
|
493
|
+
}, [n, x]);
|
|
494
|
+
return s.useEffect(function() {
|
|
495
|
+
if (!i && u) return window.addEventListener("focus", w), window.addEventListener("blur", k), function() {
|
|
496
|
+
window.removeEventListener("focus", w), window.removeEventListener("blur", k);
|
|
497
|
+
};
|
|
498
|
+
}, [i, w, u]), s.createElement("div", Object.assign({ ref: o }, f, { className: le("notistack-Snackbar", t), onMouseEnter: function(g) {
|
|
499
|
+
f.onMouseEnter && f.onMouseEnter(g), k();
|
|
500
|
+
}, onMouseLeave: function(g) {
|
|
501
|
+
f.onMouseLeave && f.onMouseLeave(g), w();
|
|
502
|
+
} }), r);
|
|
503
|
+
});
|
|
504
|
+
Yt.displayName = "Snackbar";
|
|
505
|
+
var Co = Le({ root: (Je = { display: "flex", flexWrap: "wrap", flexGrow: 1 }, Je[Be] = { flexGrow: "initial", minWidth: "288px" }, Je) }), gt = s.forwardRef(function(e, o) {
|
|
506
|
+
var r = e.className, t = Oe(e, ["className"]);
|
|
507
|
+
return L.createElement("div", Object.assign({ ref: o, className: le(Co.root, r) }, t));
|
|
508
|
+
});
|
|
509
|
+
gt.displayName = "SnackbarContent";
|
|
510
|
+
var Se = Le({ root: { backgroundColor: "#313131", fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em", color: "#fff", alignItems: "center", padding: "6px 16px", borderRadius: "4px", boxShadow: "0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)" }, lessPadding: { paddingLeft: "20px" }, default: { backgroundColor: "#313131" }, success: { backgroundColor: "#43a047" }, error: { backgroundColor: "#d32f2f" }, warning: { backgroundColor: "#ff9800" }, info: { backgroundColor: "#2196f3" }, message: { display: "flex", alignItems: "center", padding: "8px 0" }, action: { display: "flex", alignItems: "center", marginLeft: "auto", paddingLeft: "16px", marginRight: "-8px" } }), Nt = "notistack-snackbar", en = s.forwardRef(function(e, o) {
|
|
511
|
+
var r = e.id, t = e.message, n = e.action, a = e.iconVariant, i = e.variant, c = e.hideIconVariant, l = e.style, u = e.className, d = a[i], f = n;
|
|
512
|
+
return typeof f == "function" && (f = f(r)), L.createElement(gt, { ref: o, role: "alert", "aria-describedby": Nt, style: l, className: le("notistack-MuiContent", yo(i), Se.root, Se[i], u, !c && d && Se.lessPadding) }, L.createElement("div", { id: Nt, className: Se.message }, c ? null : d, t), f && L.createElement("div", { className: Se.action }, f));
|
|
513
|
+
});
|
|
514
|
+
en.displayName = "MaterialDesignContent";
|
|
515
|
+
var De, Ye, He, ze, et, So = s.memo(en), Do = Le({ wrappedRoot: { width: "100%", position: "relative", transform: "translateX(0)", top: 0, right: 0, bottom: 0, left: 0, minWidth: "288px" } }), jo = function(e) {
|
|
516
|
+
var o = s.useRef(), r = s.useState(!0), t = r[0], n = r[1], a = Me([e.snack.onClose, e.onClose]), i = s.useCallback(function() {
|
|
517
|
+
o.current = setTimeout(function() {
|
|
518
|
+
n(function(q) {
|
|
519
|
+
return !q;
|
|
520
|
+
});
|
|
521
|
+
}, 125);
|
|
522
|
+
}, []);
|
|
523
|
+
s.useEffect(function() {
|
|
524
|
+
return function() {
|
|
525
|
+
o.current && clearTimeout(o.current);
|
|
526
|
+
};
|
|
527
|
+
}, []);
|
|
528
|
+
var c, l = e.snack, u = e.classes, d = e.Component, f = d === void 0 ? So : d, b = s.useMemo(function() {
|
|
529
|
+
return function(q) {
|
|
530
|
+
q === void 0 && (q = {});
|
|
531
|
+
var I = { containerRoot: !0, containerAnchorOriginTopCenter: !0, containerAnchorOriginBottomCenter: !0, containerAnchorOriginTopRight: !0, containerAnchorOriginBottomRight: !0, containerAnchorOriginTopLeft: !0, containerAnchorOriginBottomLeft: !0 };
|
|
532
|
+
return Object.keys(q).filter(function(B) {
|
|
533
|
+
return !I[B];
|
|
534
|
+
}).reduce(function(B, G) {
|
|
535
|
+
var Q;
|
|
536
|
+
return W({}, B, ((Q = {})[G] = q[G], Q));
|
|
537
|
+
}, {});
|
|
538
|
+
}(u);
|
|
539
|
+
}, [u]), v = l.open, x = l.SnackbarProps, k = l.TransitionComponent, w = l.TransitionProps, g = l.transitionDuration, m = l.disableWindowBlurListener, D = l.content, E = Oe(l, ["open", "SnackbarProps", "TransitionComponent", "TransitionProps", "transitionDuration", "disableWindowBlurListener", "content", "entered", "requestClose", "onEnter", "onEntered", "onExit", "onExited"]), R = W({ direction: (c = E.anchorOrigin, c.horizontal !== "center" ? Rt[c.horizontal] : Rt[c.vertical]), timeout: g }, w), j = D;
|
|
540
|
+
typeof j == "function" && (j = j(E.id, E.message));
|
|
541
|
+
var H = ["onEnter", "onEntered", "onExit", "onExited"].reduce(function(q, I) {
|
|
542
|
+
var B;
|
|
543
|
+
return W({}, q, ((B = {})[I] = Me([e.snack[I], e[I]], E.id), B));
|
|
544
|
+
}, {});
|
|
545
|
+
return L.createElement(Jt, { in: t, onExited: H.onExited }, L.createElement(Yt, { open: v, id: E.id, disableWindowBlurListener: m, autoHideDuration: E.autoHideDuration, className: le(Do.wrappedRoot, b.root, b[wo(E.anchorOrigin)]), SnackbarProps: x, onClose: a }, L.createElement(k, Object.assign({}, R, { appear: !0, in: v, onExit: H.onExit, onExited: i, onEnter: H.onEnter, onEntered: Me([H.onEntered, function() {
|
|
546
|
+
e.snack.requestClose && a(null, "instructed", e.snack.id);
|
|
547
|
+
}], E.id) }), j || L.createElement(f, Object.assign({}, E)))));
|
|
548
|
+
}, je = 20, tt = 6, Mo = 2, It = "." + Qt, _e = Le({ root: (De = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition: xe(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }), pointerEvents: "none" }, De[It] = { padding: tt + "px 0px", transition: "padding 300ms ease 0ms" }, De.maxWidth = "calc(100% - " + 2 * je + "px)", De[Xe] = { width: "100%", maxWidth: "calc(100% - 32px)" }, De), rootDense: (Ye = {}, Ye[It] = { padding: Mo + "px 0px" }, Ye), top: { top: je - tt + "px", flexDirection: "column" }, bottom: { bottom: je - tt + "px", flexDirection: "column-reverse" }, left: (He = { left: je + "px" }, He[Be] = { alignItems: "flex-start" }, He[Xe] = { left: "16px" }, He), right: (ze = { right: je + "px" }, ze[Be] = { alignItems: "flex-end" }, ze[Xe] = { right: "16px" }, ze), center: (et = { left: "50%", transform: "translateX(-50%)" }, et[Be] = { alignItems: "center" }, et) }), To = s.memo(function(e) {
|
|
549
|
+
var o = e.classes, r = o === void 0 ? {} : o, t = e.anchorOrigin, n = e.dense, a = e.children, i = le("notistack-SnackbarContainer", _e[t.vertical], _e[t.horizontal], _e.root, r.containerRoot, r["containerAnchorOrigin" + ft(t)], n && _e.rootDense);
|
|
550
|
+
return L.createElement("div", { className: i }, a);
|
|
551
|
+
}), Pt = function(e) {
|
|
552
|
+
return !(typeof e == "string" || s.isValidElement(e));
|
|
553
|
+
}, Oo = function(e) {
|
|
554
|
+
function o(r) {
|
|
555
|
+
var t;
|
|
556
|
+
return (t = e.call(this, r) || this).enqueueSnackbar = function(n, a) {
|
|
557
|
+
if (a === void 0 && (a = {}), n == null) throw new Error("enqueueSnackbar called with invalid argument");
|
|
558
|
+
var i = Pt(n) ? n : a, c = Pt(n) ? n.message : n, l = i.key, u = i.preventDuplicate, d = Oe(i, ["key", "preventDuplicate"]), f = Ne(l), b = f ? l : (/* @__PURE__ */ new Date()).getTime() + Math.random(), v = /* @__PURE__ */ function(k, w) {
|
|
559
|
+
return function(g, m) {
|
|
560
|
+
return m === void 0 && (m = !1), m ? W({}, de[g], {}, w[g], {}, k[g]) : g === "autoHideDuration" ? (j = k.autoHideDuration, H = w.autoHideDuration, (q = function(I) {
|
|
561
|
+
return typeof I == "number" || I === null;
|
|
562
|
+
})(j) ? j : q(H) ? H : de.autoHideDuration) : g === "transitionDuration" ? (D = k.transitionDuration, E = w.transitionDuration, (R = function(I, B) {
|
|
563
|
+
return B.some(function(G) {
|
|
564
|
+
return typeof I === G;
|
|
565
|
+
});
|
|
566
|
+
})(D, ["string", "number"]) ? D : R(D, ["object"]) ? W({}, de.transitionDuration, {}, R(E, ["object"]) && E, {}, D) : R(E, ["string", "number"]) ? E : R(E, ["object"]) ? W({}, de.transitionDuration, {}, E) : de.transitionDuration) : k[g] || w[g] || de[g];
|
|
567
|
+
var D, E, R, j, H, q;
|
|
568
|
+
};
|
|
569
|
+
}(d, t.props), x = W({ id: b }, d, { message: c, open: !0, entered: !1, requestClose: !1, persist: v("persist"), action: v("action"), content: v("content"), variant: v("variant"), anchorOrigin: v("anchorOrigin"), disableWindowBlurListener: v("disableWindowBlurListener"), autoHideDuration: v("autoHideDuration"), hideIconVariant: v("hideIconVariant"), TransitionComponent: v("TransitionComponent"), transitionDuration: v("transitionDuration"), TransitionProps: v("TransitionProps", !0), iconVariant: v("iconVariant", !0), style: v("style", !0), SnackbarProps: v("SnackbarProps", !0), className: le(t.props.className, d.className) });
|
|
570
|
+
return x.persist && (x.autoHideDuration = void 0), t.setState(function(k) {
|
|
571
|
+
if (u === void 0 && t.props.preventDuplicate || u) {
|
|
572
|
+
var w = function(D) {
|
|
573
|
+
return f ? D.id === b : D.message === c;
|
|
574
|
+
}, g = k.queue.findIndex(w) > -1, m = k.snacks.findIndex(w) > -1;
|
|
575
|
+
if (g || m) return k;
|
|
576
|
+
}
|
|
577
|
+
return t.handleDisplaySnack(W({}, k, { queue: [].concat(k.queue, [x]) }));
|
|
578
|
+
}), b;
|
|
579
|
+
}, t.handleDisplaySnack = function(n) {
|
|
580
|
+
return n.snacks.length >= t.maxSnack ? t.handleDismissOldest(n) : t.processQueue(n);
|
|
581
|
+
}, t.processQueue = function(n) {
|
|
582
|
+
var a = n.queue, i = n.snacks;
|
|
583
|
+
return a.length > 0 ? W({}, n, { snacks: [].concat(i, [a[0]]), queue: a.slice(1, a.length) }) : n;
|
|
584
|
+
}, t.handleDismissOldest = function(n) {
|
|
585
|
+
if (n.snacks.some(function(l) {
|
|
586
|
+
return !l.open || l.requestClose;
|
|
587
|
+
})) return n;
|
|
588
|
+
var a = !1, i = !1;
|
|
589
|
+
n.snacks.reduce(function(l, u) {
|
|
590
|
+
return l + (u.open && u.persist ? 1 : 0);
|
|
591
|
+
}, 0) === t.maxSnack && (i = !0);
|
|
592
|
+
var c = n.snacks.map(function(l) {
|
|
593
|
+
return a || l.persist && !i ? W({}, l) : (a = !0, l.entered ? (l.onClose && l.onClose(null, "maxsnack", l.id), t.props.onClose && t.props.onClose(null, "maxsnack", l.id), W({}, l, { open: !1 })) : W({}, l, { requestClose: !0 }));
|
|
594
|
+
});
|
|
595
|
+
return W({}, n, { snacks: c });
|
|
596
|
+
}, t.handleEnteredSnack = function(n, a, i) {
|
|
597
|
+
if (!Ne(i)) throw new Error("handleEnteredSnack Cannot be called with undefined key");
|
|
598
|
+
t.setState(function(c) {
|
|
599
|
+
return { snacks: c.snacks.map(function(l) {
|
|
600
|
+
return l.id === i ? W({}, l, { entered: !0 }) : W({}, l);
|
|
601
|
+
}) };
|
|
602
|
+
});
|
|
603
|
+
}, t.handleCloseSnack = function(n, a, i) {
|
|
604
|
+
t.props.onClose && t.props.onClose(n, a, i);
|
|
605
|
+
var c = i === void 0;
|
|
606
|
+
t.setState(function(l) {
|
|
607
|
+
var u = l.snacks, d = l.queue;
|
|
608
|
+
return { snacks: u.map(function(f) {
|
|
609
|
+
return c || f.id === i ? f.entered ? W({}, f, { open: !1 }) : W({}, f, { requestClose: !0 }) : W({}, f);
|
|
610
|
+
}), queue: d.filter(function(f) {
|
|
611
|
+
return f.id !== i;
|
|
612
|
+
}) };
|
|
613
|
+
});
|
|
614
|
+
}, t.closeSnackbar = function(n) {
|
|
615
|
+
var a = t.state.snacks.find(function(i) {
|
|
616
|
+
return i.id === n;
|
|
617
|
+
});
|
|
618
|
+
Ne(n) && a && a.onClose && a.onClose(null, "instructed", n), t.handleCloseSnack(null, "instructed", n);
|
|
619
|
+
}, t.handleExitedSnack = function(n, a) {
|
|
620
|
+
if (!Ne(a)) throw new Error("handleExitedSnack Cannot be called with undefined key");
|
|
621
|
+
t.setState(function(i) {
|
|
622
|
+
var c = t.processQueue(W({}, i, { snacks: i.snacks.filter(function(l) {
|
|
623
|
+
return l.id !== a;
|
|
624
|
+
}) }));
|
|
625
|
+
return c.queue.length === 0 ? c : t.handleDismissOldest(c);
|
|
626
|
+
});
|
|
627
|
+
}, t.enqueueSnackbar, t.closeSnackbar, t.state = { snacks: [], queue: [], contextValue: { enqueueSnackbar: t.enqueueSnackbar.bind(Dt(t)), closeSnackbar: t.closeSnackbar.bind(Dt(t)) } }, t;
|
|
628
|
+
}
|
|
629
|
+
return Ut(o, e), o.prototype.render = function() {
|
|
630
|
+
var r = this, t = this.state.contextValue, n = this.props, a = n.domRoot, i = n.children, c = n.dense, l = c !== void 0 && c, u = n.Components, d = u === void 0 ? {} : u, f = n.classes, b = this.state.snacks.reduce(function(x, k) {
|
|
631
|
+
var w, g = ft(k.anchorOrigin), m = x[g] || [];
|
|
632
|
+
return W({}, x, ((w = {})[g] = [].concat(m, [k]), w));
|
|
633
|
+
}, {}), v = Object.keys(b).map(function(x) {
|
|
634
|
+
var k = b[x], w = k[0];
|
|
635
|
+
return L.createElement(To, { key: x, dense: l, anchorOrigin: w.anchorOrigin, classes: f }, k.map(function(g) {
|
|
636
|
+
return L.createElement(jo, { key: g.id, snack: g, classes: f, Component: d[g.variant], onClose: r.handleCloseSnack, onEnter: r.props.onEnter, onExit: r.props.onExit, onExited: Me([r.handleExitedSnack, r.props.onExited], g.id), onEntered: Me([r.handleEnteredSnack, r.props.onEntered], g.id) });
|
|
637
|
+
}));
|
|
638
|
+
});
|
|
639
|
+
return L.createElement(Kt.Provider, { value: t }, i, a ? Mn.createPortal(v, a) : v);
|
|
640
|
+
}, $t(o, [{ key: "maxSnack", get: function() {
|
|
641
|
+
return this.props.maxSnack || de.maxSnack;
|
|
642
|
+
} }]), o;
|
|
643
|
+
}(s.Component), tn = function() {
|
|
644
|
+
return s.useContext(Kt);
|
|
645
|
+
};
|
|
646
|
+
const re = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "_icons_1a398_16", expand: "_expand_1a398_22", expandOpen: "_expandOpen_1a398_29", stackTraceContainer: "_stackTraceContainer_1a398_33" }, nn = s.forwardRef((e, o) => {
|
|
647
|
+
const { id: r, message: t, iconVariant: n, error: a, hideIconVariant: i, ...c } = e, { closeSnackbar: l } = tn(), u = Tn(), [d, f] = s.useState(!1), b = s.useCallback(() => {
|
|
648
|
+
f((k) => !k);
|
|
649
|
+
}, []), v = s.useCallback(() => {
|
|
650
|
+
l(r);
|
|
651
|
+
}, [r, l]);
|
|
652
|
+
let x = a?.message;
|
|
653
|
+
return !x && s.isValidElement(t) && (x = t), x || typeof t != "string" || (x = t), x || (x = `Unknown Error: ${t}`), p.jsx(gt, { ref: o, className: ot(re.root, "error-snackbar"), children: p.jsxs(ao, { className: re.card, style: { backgroundColor: u.palette.error.dark, border: `1px solid ${u.palette.error.dark}` }, children: [p.jsxs(lo, { className: re.actionRoot, children: [i ? null : n?.error, p.jsx(On, { variant: "body2", component: "div", className: re.typography, style: { color: u.palette.text.primary }, children: x }), p.jsx("div", { style: { flex: "1 1 auto" } }), p.jsxs("div", { className: re.icons, children: [a ? p.jsx(rt, { "aria-label": "Show more", size: "small", className: ot(re.expand, { [re.expandOpen]: d }), style: { color: u.palette.action.active }, onClick: b, children: p.jsx(Ln, {}) }) : null, p.jsx(rt, { size: "small", className: re.expand, style: { color: u.palette.action.active }, onClick: v, children: p.jsx(Wn, { fontSize: "small" }) })] })] }), a ? p.jsx(at, { in: d, timeout: "auto", unmountOnExit: !0, children: p.jsx("div", { className: re.stackTraceContainer, style: { backgroundColor: u.palette.error.light, borderTop: `1px solid ${u.palette.error.main}` }, children: p.jsx(Rn, { error: a, hideLineNumbers: !0 }) }) }) : null] }) });
|
|
654
|
+
});
|
|
655
|
+
nn.displayName = "ToastError";
|
|
656
|
+
const on = s.memo(s.forwardRef((e, o) => {
|
|
657
|
+
const { commands: r, commandHook: t, scope: n = "workbook", disabled: a = !1, ...i } = e, c = ne((u) => {
|
|
658
|
+
const d = { variant: Vn.Menuitem, parentFloat: u.floatReference, commandHook: t, scope: n, disabled: a }, f = p.jsxs(p.Fragment, { children: [p.jsx(Ge, { ...d, command: r.getCommand("newWorkbook"), icon: Ee(p.jsx($n, {})) }), p.jsx(Un, { orientation: "horizontal" }), p.jsx(Ge, { ...d, command: r.getCommand("openWorkbook"), icon: Ee(p.jsx(Kn, {})) }), p.jsx(vt, { ...d, commands: r, quickCommand: "saveWorkbook", icon: Ee(p.jsx(Xn, {})), createPopupPanel: (b) => {
|
|
659
|
+
const v = { ...d, parentFloat: b.floatReference, scope: "saveWorkbook" }, x = [];
|
|
660
|
+
return pe.getWriteFormats().forEach((k) => {
|
|
661
|
+
if (k.isDefault) return;
|
|
662
|
+
let w = null;
|
|
663
|
+
k.key === "CSV" ? w = Ee(p.jsx(Gn, {})) : k.key === "Excel" && (w = Ee(p.jsx(Zn, {})));
|
|
664
|
+
const g = r.getCommand(`saveWorkbookAs${k.key}`);
|
|
665
|
+
g ? x.push(s.createElement(Ge, { ...v, key: k.key, command: g, icon: w })) : console.warn(`Unable to resolve command: 'saveWorkbookAs${k.key}'`);
|
|
666
|
+
}), Et({ ...b, children: x, onClick: () => {
|
|
667
|
+
b.closeFloatAll();
|
|
668
|
+
} });
|
|
669
|
+
} })] });
|
|
670
|
+
return Et({ ...u, children: f, onClick: (b) => {
|
|
671
|
+
b.isDefaultPrevented || u.closeFloatAll();
|
|
672
|
+
} });
|
|
673
|
+
}, [a, r, t, n]), l = "File";
|
|
674
|
+
return p.jsx(vt, { commands: r, disabled: a, commandHook: t, scope: n, label: l, tooltip: "Options for saving and loading the workbook.", sx: { paddingBottom: "0px", "& button": { paddingTop: "0px", paddingBottom: "0px", height: (u) => `calc(1.25rem + ${u.spacing(2)}px)` } }, ...i, createPopupPanel: c, icon: p.jsx(Qn, { className: "label", icon: null, label: l }) });
|
|
675
|
+
}));
|
|
676
|
+
on.displayName = "StandaloneFileCommandButton";
|
|
677
|
+
const Lo = p.jsx(qn, { label: "SheetXL", description: "Visit me at sheetxl.com.", children: p.jsx(se, { sx: { width: "24px", height: "24px", marginBottom: "4px", marginLeft: "6px" }, children: p.jsx(Bn, { onClick: () => {
|
|
678
|
+
window?.open("https://www.sheetxl.com", "_blank");
|
|
679
|
+
}, style: { width: "24px", height: "24px", cursor: "pointer" } }) }) }), rn = s.memo(s.forwardRef((e, o) => {
|
|
680
|
+
const { commands: r, workbook: t, logo: n = Lo, mainElement: a, showFileMenu: i = !0, showAppearanceMenu: c = !0, ...l } = e, { reference: u } = Cn(), [d, { width: f }] = Sn(), b = f < 530, v = i ? p.jsx(on, { commands: r, commandHook: { beforeExecute() {
|
|
681
|
+
u?.closeAll();
|
|
682
|
+
}, onError(g, m, D) {
|
|
683
|
+
} } }) : null, x = c ? p.jsx(Dn, { commands: r, commandHook: { beforeExecute() {
|
|
684
|
+
u?.closeAll();
|
|
685
|
+
}, onError(g, m, D) {
|
|
686
|
+
} } }) : null, k = s.useMemo(() => ({ paddingLeft: (g) => g.spacing(1), paddingRight: (g) => g.spacing(1) }), []), w = s.useRef(null);
|
|
687
|
+
return p.jsx(se, { ref: qt([w, d, o]), ...l, children: jn({ commands: r, renderCompact: b, workbook: t, selectWrapper: (g) => p.jsxs(se, { sx: { display: "flex", flex: "1", flexDirection: "row", alignItems: "stretch", gap: (m) => m.spacing(1), paddingLeft: (m) => m.spacing(1), paddingRight: (m) => m.spacing(1) }, children: [p.jsxs(se, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (m) => m.spacing(0.5) }, children: [n, p.jsxs(se, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (m) => m.spacing(0.25) }, children: [v, g] })] }), p.jsx(se, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: a }), p.jsx(se, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: b && !x ? "0 0 auto" : "1 1 100%" }, children: x })] }), selectProps: k, toolbarsProps: { Home: { sx: {} } } }) });
|
|
688
|
+
}));
|
|
689
|
+
rn.displayName = "StudioToolbar";
|
|
690
|
+
const an = s.memo(s.forwardRef((e, o) => {
|
|
691
|
+
const { workbook: r, setWorkbook: t, refWorkbookTitle: n, titleWorkbook: a, setWorkbookTitle: i, titlePlaceHolder: c, children: l, undoManager: u, commands: d, importExportDisabled: f, themeOptions: b } = e, v = tn(), x = v ? v.enqueueSnackbar : () => {
|
|
692
|
+
}, k = v ? v.closeSnackbar : () => {
|
|
693
|
+
}, [w, g] = s.useState({ isMounted: !1, label: null, starting: /* @__PURE__ */ new Map(), running: /* @__PURE__ */ new Map() }), m = s.useCallback(() => {
|
|
694
|
+
g((U) => ({ ...U, isMounted: !0 }));
|
|
695
|
+
}, []), D = s.useCallback(() => {
|
|
696
|
+
g((U) => ({ ...U, isMounted: !1 }));
|
|
697
|
+
}, []), E = An(), R = Nn(), j = In(), H = s.useRef(/* @__PURE__ */ new Set()), q = s.useMemo(() => {
|
|
698
|
+
const U = (y, T) => {
|
|
699
|
+
if (T?.onceKey) {
|
|
700
|
+
if (H.current.has(T.onceKey)) return;
|
|
701
|
+
const F = new Set(H.current);
|
|
702
|
+
F.add(T.onceKey), H.current = F;
|
|
703
|
+
}
|
|
704
|
+
const M = { variant: T?.type ?? Ae.Info, anchorOrigin: { vertical: "top", horizontal: "center" }, preventDuplicate: T?.preventDuplicate, persist: T?.persist ?? T?.type === Ae.Error, action: (F) => p.jsx(rt, { onClick: () => k(F), children: p.jsx(fo, {}) }) };
|
|
705
|
+
T?.enqueueProps && Object.assign(M, T.enqueueProps), y || console.log("message is 'null'", T), x(y ?? "Alert", M);
|
|
706
|
+
};
|
|
707
|
+
return { showMessage: U, showBusy: (y, T) => {
|
|
708
|
+
let M = null;
|
|
709
|
+
const F = new Promise((z) => {
|
|
710
|
+
M = z;
|
|
711
|
+
});
|
|
712
|
+
return g((z) => {
|
|
713
|
+
const _ = new Map(z.starting);
|
|
714
|
+
return _.set(F, M), { ...z, label: y, starting: _ };
|
|
715
|
+
}), F;
|
|
716
|
+
}, showWindow: (y, T, M) => {
|
|
717
|
+
const F = { ...T, onKeyDown: (z) => {
|
|
718
|
+
d?.dispatchToFocusedCommand(z), z.isDefaultPrevented() || z.isPropagationStopped() || T?.onKeyDown?.(z);
|
|
719
|
+
} };
|
|
720
|
+
return E(y, { sort: () => import("./D3L89e08b7ewR6mt.mjs"), numberFormat: () => import("./DKbJ-iVPuUbr3iZ_.mjs"), hyperlink: () => import("./QZikWr_NQfcFWCBV.mjs"), comments: () => import("./DR7oVoNSe0FFWHOr.mjs"), find: () => import("./BUqd1uVUNoWmepd2.mjs"), tableDetails: () => import("./BBDu-GNDE7ZA-1sJ.mjs"), tableNew: () => import("./B383N9irNfyfYC2l.mjs"), namedDetails: () => import("./DAscSzG63-mM5p50.mjs") }[y], F, M);
|
|
721
|
+
}, showOptions: R, showInputOptions: j, showError: (y) => {
|
|
722
|
+
let T, M = Ae.Error, F = "Unknown Error";
|
|
723
|
+
typeof y == "string" ? F = y : y instanceof Error && (T = y, y.message && (F = y.message)), y instanceof Jn && (M = Ae.Info), U(F, { type: M, enqueueProps: { error: T } });
|
|
724
|
+
} };
|
|
725
|
+
}, []), I = s.useCallback(() => {
|
|
726
|
+
}, []), B = ((U) => {
|
|
727
|
+
const { workbook: y, setWorkbook: T, importExportDisabled: M, workbookTitle: F = "export", setWorkbookTitle: z, notifier: _, requestWorkbookTitle: ce, themeOptions: A, undoManager: C, commands: V, onExecute: $ } = U, J = ne(A?.onModeChange, [A?.onModeChange]), ie = ne(A?.onEnabledDarkGridChange, [A?.onEnabledDarkGridChange]), fe = ne(A?.onEnabledDarkImagesChange, [A?.onEnabledDarkImagesChange]), he = ne(async (N = null, te = null) => {
|
|
728
|
+
const O = [];
|
|
729
|
+
let h, S = null, X = null;
|
|
730
|
+
if (typeof N == "string" ? X = N : S = N, h = S ? N : await Pn.openFileDialog(X ?? pe.getAllReadFormatTypeAsString().join(",")), !h) return null;
|
|
731
|
+
const Y = { source: h, createWorkbookOptions: te, onWarning: (Ue) => {
|
|
732
|
+
O.push(Ue);
|
|
733
|
+
} }, we = await pe.read(Y, _);
|
|
734
|
+
return O.length > 0 && (_?.showMessage?.("Some elements were not able to be imported. See console for details."), console.warn(`Import warnings:
|
|
735
|
+
` + O.join(`
|
|
736
|
+
`))), we;
|
|
737
|
+
}, [$, _, y]), We = ne(async (N, te, O) => {
|
|
738
|
+
if (!te && ce) {
|
|
739
|
+
const h = await ce("Enter Workbook name to " + (O.isDefault ? "Save." : `Export as ${O.description}.`));
|
|
740
|
+
return h !== null && pe.writeFile(h, N, { formatType: O.key });
|
|
741
|
+
}
|
|
742
|
+
return pe.writeFile(te, N, { formatType: O.key });
|
|
743
|
+
}, [_, y, ce]), K = s.useCallback(() => ({ contains: (N) => !0, focus() {
|
|
744
|
+
} }), []), ue = s.useMemo(() => {
|
|
745
|
+
const N = [];
|
|
746
|
+
M || (pe.getWriteFormats().forEach((O) => {
|
|
747
|
+
const h = O.isDefault, S = { label: h ? "Save Workbook" : `Save Workbook as ${O.description}`, scopedLabels: { workbook: "Save", saveWorkbook: `as ${O.description}` }, tags: O.tags, description: `Save the workbook to the desktop${h ? "" : ` as ${O.description}`}.` };
|
|
748
|
+
h && (S.shortcut = { key: "S", modifiers: [ve.Ctrl] }, N.push(new ee("saveWorkbookAs", K, { label: "Save Workbook As…", scopedLabels: { workbook: "Save as…", saveWorkbook: "as…" }, shortcut: [{ key: "S", modifiers: [ve.Shift, ve.Ctrl] }, { key: "F12" }], description: "Save the workbook to the desktop with the provided name." }, () => {
|
|
749
|
+
We(y, null, O).catch((Y) => {
|
|
750
|
+
_?.showError?.(Y);
|
|
751
|
+
});
|
|
752
|
+
})));
|
|
753
|
+
const X = h ? "saveWorkbook" : `saveWorkbookAs${O.key}`;
|
|
754
|
+
N.push(new ee(X, K, S, (Y) => {
|
|
755
|
+
We(y, Y ?? F, O).catch((we) => {
|
|
756
|
+
_?.showError?.(we);
|
|
757
|
+
});
|
|
758
|
+
}));
|
|
759
|
+
}), N.push(new ee("openWorkbook", K, { label: "Open Workbook…", scopedLabels: { workbook: "Open…" }, description: "Open a workbook from the desktop.", shortcut: { key: "O", modifiers: [ve.Ctrl] } }, async (O = null) => {
|
|
760
|
+
const h = { date1904: y.isDate1904(), ...y.options };
|
|
761
|
+
try {
|
|
762
|
+
const S = await he(O, h);
|
|
763
|
+
if (!S) return;
|
|
764
|
+
const X = S.title, Y = S.workbook, we = Y.getSelectedSheet();
|
|
765
|
+
if (S.formatType.mimeType === "text/csv") {
|
|
766
|
+
const Ue = y.findValidSheetName(X);
|
|
767
|
+
await y.doBatch(async () => {
|
|
768
|
+
const kt = we.getUsedRange();
|
|
769
|
+
kt ? await y.getSheets().add({ name: Ue, autoSelect: !0 }).getRange({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }).copyFrom(kt) : _?.showMessage("The file appears to be blank.");
|
|
770
|
+
}, `Import CSV '${X}'`);
|
|
771
|
+
} else y?.close(), z?.(X), T(Y);
|
|
772
|
+
} catch (S) {
|
|
773
|
+
_?.showError?.(S);
|
|
774
|
+
}
|
|
775
|
+
})), N.push(new ee("openWorkbookFromUrl", K, { label: "Open Workbook From Web", scopedLabels: { insert: "From Web", workbook: "From Web…" }, description: "Open a workbook from the web." }, async function(O) {
|
|
776
|
+
if (!O) {
|
|
777
|
+
const h = await _?.showInputOptions?.({ title: "Open Workbook from the Web", description: "Enter the web address for the workbook to open.", inputLabel: "Address", initialValue: "https://www.sheetxl.com/examples/features-checklist.xlsx", inputProps: { style: { minWidth: "440px" } }, options: ["Open"] });
|
|
778
|
+
if (h.option !== "Open") return;
|
|
779
|
+
O = h.input;
|
|
780
|
+
}
|
|
781
|
+
O && console.log("openWorkbookFromUrl", O);
|
|
782
|
+
})));
|
|
783
|
+
let te = [];
|
|
784
|
+
return A && (te = [new ee("themeMode", K, { label: "Light/Dark Mode", scopedLabels: { appearance: "Light/Dark Mode" }, description: "Toggle the application styling between light and dark mode." }), new ee("defaultThemeMode", K, { label: "Use System Light/Dark Mode", scopedLabels: { appearance: "Use System Default" }, description: "Use the system settings to determine styling for light and dark mode." }), new ee("enableDarkGrid", K, { label: "Enable Dark Grid", description: "Allow the grid to render in dark mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)." }), new ee("enableDarkImages", K, { label: "Enable Dark Images", description: "Allow the images to render in dark mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode." })]), [...N, ...te, new wt("help", K, { label: "Show Help", description: "Provide Help.", shortcut: { key: "F1" } }, () => {
|
|
785
|
+
}), new wt("showKeyboardShortcuts", K, { label: "Keyboard Shortcuts", description: "Show keyboard shortcuts.", shortcut: { key: "/", modifiers: [ve.Ctrl] } }, () => {
|
|
786
|
+
}), new ee("gotoUrlGithub", K, { label: "Github", description: "Download examples, explore source code, and leave a star." }, () => {
|
|
787
|
+
window?.open("https://github.com/sheetxl/sheetxl");
|
|
788
|
+
}), new ee("gotoUrlDiscord", K, { label: "Discord", description: "Join our community on discord." }, () => {
|
|
789
|
+
window?.open("https://discord.gg/NTKdwUgK9p");
|
|
790
|
+
}), new ee("gotoUrlDocumentation", K, { label: "Documentation", description: "Read the documentation." }, () => {
|
|
791
|
+
window?.open("https://www.sheetxl.com/docs");
|
|
792
|
+
}), new ee("gotoUrlIssue", K, { label: "Create Issue", description: "Create an issue to identify a bug or a feature request." }, () => {
|
|
793
|
+
window?.open("https://github.com/sheetxl/sheetxl/issues");
|
|
794
|
+
})];
|
|
795
|
+
}, [y, F, _, M, A, V, C]), Z = s.useMemo(() => {
|
|
796
|
+
let N = null;
|
|
797
|
+
return N = V ? V.createChildGroup(K, "standaloneWorkbook", !1) : new zt(K, "standaloneWorkbook"), N.addCommands(ue, !0), N;
|
|
798
|
+
}, [V, ue]);
|
|
799
|
+
Fn({ manager: C, commands: Z, notifier: _ });
|
|
800
|
+
const { themeMode: ye } = Ht();
|
|
801
|
+
s.useEffect(() => {
|
|
802
|
+
if (!A || !Z) return;
|
|
803
|
+
const N = A.mode === "dark" || !A.mode && ye === "dark";
|
|
804
|
+
Z.getCommand("themeMode").update({ state: A.mode ?? null, label: N ? "Dark Mode" : "Light Mode", scopedLabels: { appearance: N ? "Dark Mode" : "Light Mode" } }).updateCallback(() => {
|
|
805
|
+
J(N ? nt.Light : nt.Dark);
|
|
806
|
+
}), Z.getCommand("defaultThemeMode").update({ state: !A.mode }).updateCallback(() => {
|
|
807
|
+
J(null);
|
|
808
|
+
}), Z.getCommand("enableDarkGrid").update({ state: A.enableDarkGrid }).updateCallback(() => {
|
|
809
|
+
ie(!A.enableDarkGrid);
|
|
810
|
+
}), Z.getCommand("enableDarkImages").update({ state: A.enableDarkImages }).updateCallback(() => {
|
|
811
|
+
fe(!A.enableDarkImages);
|
|
812
|
+
});
|
|
813
|
+
}, [ye, A, ue]);
|
|
814
|
+
const { showModal: Re } = Hn();
|
|
815
|
+
return s.useEffect(() => {
|
|
816
|
+
const N = () => new Promise((te, O) => {
|
|
817
|
+
const h = L.lazy(() => import("./CHjb5a2xwEWs4RgS.mjs")), S = Re(h, { title: "Shortcut Keys Reference", commands: Z, onDone: () => {
|
|
818
|
+
S.hide();
|
|
819
|
+
}, TransitionProps: { onExited: () => {
|
|
820
|
+
te(!0);
|
|
821
|
+
} } });
|
|
822
|
+
});
|
|
823
|
+
Z.getCommand("showKeyboardShortcuts").updateCallback(() => N()), Z.getCommand("help").updateCallback(() => N());
|
|
824
|
+
}, [ue, Z]), Z;
|
|
825
|
+
})({ workbook: r, setWorkbook: t, importExportDisabled: f, workbookTitle: a, setWorkbookTitle: i, commands: d, requestWorkbookTitle: (U) => new Promise((y) => {
|
|
826
|
+
n.current ? n.current.requestWorkbookTitle((T, M) => {
|
|
827
|
+
y(T);
|
|
828
|
+
}, { selectAll: !0, requestReason: U }) : y(c);
|
|
829
|
+
}), themeOptions: b, undoManager: u, notifier: q, onExecute: I });
|
|
830
|
+
s.useEffect(() => {
|
|
831
|
+
w.starting.size <= 0 || !w.isMounted || g((U) => {
|
|
832
|
+
const y = new Map(U.running);
|
|
833
|
+
return U.starting.forEach((T, M) => {
|
|
834
|
+
const F = () => {
|
|
835
|
+
g((z) => {
|
|
836
|
+
const _ = new Map(z.running);
|
|
837
|
+
return _.delete(M), { ...z, running: _ };
|
|
838
|
+
});
|
|
839
|
+
};
|
|
840
|
+
y.set(M, F), T(F);
|
|
841
|
+
}), { ...U, starting: /* @__PURE__ */ new Map(), running: y };
|
|
842
|
+
});
|
|
843
|
+
}, [w]);
|
|
844
|
+
const [G, Q] = s.useState(null);
|
|
845
|
+
s.useEffect(() => {
|
|
846
|
+
w.starting.size !== 0 || w.running.size !== 0 ? Q(p.jsx(_t, { icon: p.jsx(zn, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: !0, label: w.label, onMount: m, onUnmount: D, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : Q(null);
|
|
847
|
+
}, [w.starting, w.running]);
|
|
848
|
+
const ae = s.useMemo(() => p.jsx(_n, { commands: B, disableHover: !0, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [B]), P = { notifier: q, commands: B };
|
|
849
|
+
return r && (P.statusBarProps = { childrenEnd: ae }), p.jsxs(p.Fragment, { children: [G, l ? L.cloneElement(l, P) : null] });
|
|
850
|
+
}));
|
|
851
|
+
an.displayName = "SnackbarAndCommandsWrapper";
|
|
852
|
+
const ct = s.memo(s.forwardRef((e, o) => {
|
|
853
|
+
const { className: r, sx: t, style: n, onElementLoad: a, onError: i, undoManager: c, errorPanel: l = hn, onKeyDown: u, workbook: d, createWorkbookOptions: f, onWorkbookChange: b, logo: v, importExportDisabled: x = !1, themeOptions: k, autoFocus: w = !1, commands: g, title: m, onTitleChange: D, titleProps: E, renderLoadingPanel: R, ...j } = e, H = s.useRef(null), q = ne(b, [b]), I = ne(D ?? E?.onTitleChange, [D ?? E?.onTitleChange]), B = E?.placeHolder ?? "Untitled", G = k?.mode, { themeMode: Q, source: ae } = Ht({ mode: G }), P = s.useMemo(() => ({ ...k, light: xt(!1, Ke.deepMerge(k?.theme ?? {}, k?.light ?? {})), dark: xt(!0, Ke.deepMerge(k?.theme ?? {}, k?.dark ?? {})) }), [k]), U = Q === nt.Dark, [y, T] = s.useState(null);
|
|
854
|
+
s.useEffect(() => {
|
|
855
|
+
T(c ?? new gn());
|
|
856
|
+
}, [c]);
|
|
857
|
+
const [M, F] = s.useState(null), [z, _] = s.useState(null), ce = kn();
|
|
858
|
+
s.useLayoutEffect(() => {
|
|
859
|
+
if (!d || Object.keys(d).length === 0 && !Ke.isPromiseLike(d)) {
|
|
860
|
+
const h = { theme: ce.getDefaultTheme(), ...f };
|
|
861
|
+
_(new yt(h));
|
|
862
|
+
} else _(d);
|
|
863
|
+
}, [d]), s.useLayoutEffect(() => {
|
|
864
|
+
if (z) {
|
|
865
|
+
if (z instanceof yt) return F({ workbook: z }), void (d !== z && q?.(z));
|
|
866
|
+
(async () => {
|
|
867
|
+
try {
|
|
868
|
+
let h, S = await Promise.resolve(z);
|
|
869
|
+
S && S.source && (S = await pe.read(S)), S.workbook ? (J(S.title), h = S.workbook) : h = S, q?.(h), F({ workbook: h });
|
|
870
|
+
} catch (h) {
|
|
871
|
+
q?.(null), F({ error: h });
|
|
872
|
+
}
|
|
873
|
+
})();
|
|
874
|
+
}
|
|
875
|
+
}, [z]);
|
|
876
|
+
const [A, C] = s.useState(null);
|
|
877
|
+
s.useEffect(() => {
|
|
878
|
+
if (!y || !M) return;
|
|
879
|
+
y.clear();
|
|
880
|
+
const h = M?.workbook?.getTransactions();
|
|
881
|
+
return h ? h.addListener({ onCommitEnd: (S) => {
|
|
882
|
+
S.getDescription() ? y.addUndoOperation({ description: S.getDescription(), undo: () => (h.revert(S.getId()), A.source?.focus(), () => {
|
|
883
|
+
h.restore(S.getId()), A.source?.focus();
|
|
884
|
+
}) }) : console.warn("commit has no description", S);
|
|
885
|
+
} }) : void 0;
|
|
886
|
+
}, [y, M, A]);
|
|
887
|
+
const V = ne((h) => {
|
|
888
|
+
h ? y.setRepeatableOperation({ description: h.label(), repeat: async () => h.execute() }) : y.setRepeatableOperation(null);
|
|
889
|
+
}, [y]), [$, J] = s.useState(m ?? E?.title ?? "");
|
|
890
|
+
s.useEffect(() => {
|
|
891
|
+
J(m ?? E?.title ?? "");
|
|
892
|
+
}, [m ?? E?.title]), s.useEffect(() => {
|
|
893
|
+
I?.($);
|
|
894
|
+
}, [$]);
|
|
895
|
+
const [ie, fe] = s.useState(null), he = s.useMemo(() => {
|
|
896
|
+
const h = () => ({ contains: (S) => !0, focus() {
|
|
897
|
+
} });
|
|
898
|
+
return g ? g.createChildGroup(h, "application", !1) : new zt(h, "application");
|
|
899
|
+
}, [g]), We = ne((h) => {
|
|
900
|
+
fe(h.source.getViewportElement()), C(h), he.activate("sheet"), a?.(h);
|
|
901
|
+
}, [he]);
|
|
902
|
+
s.useEffect(() => {
|
|
903
|
+
A && w && A.source?.focus(typeof w == "object" ? w : void 0);
|
|
904
|
+
}, [A]);
|
|
905
|
+
const K = s.useRef(null), ue = s.useCallback((h) => {
|
|
906
|
+
let S = null;
|
|
907
|
+
return E?.hidden || (S = p.jsx(bn, { ...E, style: { maxWidth: "100%", ...E?.style }, workbook: H.current, ref: K, title: $, placeHolder: B, onTitleChange: (X) => {
|
|
908
|
+
J(X);
|
|
909
|
+
} })), p.jsx(rn, { ...h, logo: v, mainElement: S, showFileMenu: !x, showAppearanceMenu: !!(P?.onEnabledDarkGridChange || P?.onEnabledDarkImagesChange || P?.onModeChange) });
|
|
910
|
+
}, [v, $, E, P, x, he]);
|
|
911
|
+
s.useEffect(() => {
|
|
912
|
+
const h = (S) => S.preventDefault();
|
|
913
|
+
return H.current?.addEventListener("wheel", h, { passive: !1 }), () => {
|
|
914
|
+
H.current?.removeEventListener("wheel", h);
|
|
915
|
+
};
|
|
916
|
+
}, []);
|
|
917
|
+
const Z = s.useMemo(() => {
|
|
918
|
+
const h = { transparentBackground: !0 };
|
|
919
|
+
return p.jsx(se, { sx: t, style: { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, display: "flex", alignItems: "center", justifyContent: "center", ...n }, children: R?.(h) ?? p.jsx(_t, { ...h }) });
|
|
920
|
+
}, [t, n, R]), ye = s.useCallback(({ error: h }) => (i?.(h), p.jsx(l, { sx: t, style: n, error: h ?? "Unable to display empty workbook." })), [t, n, i]), Re = s.useMemo(() => ({ ...t, "& .SnackbarContainer-root": { position: "absolute !important" }, "& .notistack-Snackbar": { minWidth: "unset" }, "& .notistack-MuiContent *": { fontFamily: (h) => h.typography.fontFamily }, "& #notistack-snackbar": { maxWidth: "560px", whiteSpace: "pre-wrap" }, "*": { userSelect: "none" } }), [t]), N = qt([H, o]), te = s.useMemo(() => {
|
|
921
|
+
if (!M) return Z;
|
|
922
|
+
if (M.error || !M.workbook) return ye({ error: M.error });
|
|
923
|
+
let h = null, S = null, X = !1;
|
|
924
|
+
return P && (h = U ? P.dark : P.light, S = U && P.enableDarkGrid ? P.dark : P.light, X = P.enableDarkImages), p.jsx(xn, { sx: Re, style: n, tabIndex: 0, autoFocus: !0, workbook: M.workbook, ref: N, renderToolbar: ue, onElementLoad: We, onRepeatCommandChange: V, onKeyDown: (Y) => {
|
|
925
|
+
u?.(Y);
|
|
926
|
+
}, renderLoadingPanel: R, gridTheme: S, headersTheme: h, enableDarkImages: X, className: ot(r, "sheetxl-workbook"), onContextMenu: (Y) => Y.preventDefault(), ...j }, "WorkbookElement");
|
|
927
|
+
}, [M, $, y, Z, R, P, j, ue, Re]);
|
|
928
|
+
let O = p.jsx(go, { fallbackRender: ye, children: p.jsx(Oo, { maxSnack: 3, domRoot: ie, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (h, S, X) => {
|
|
929
|
+
H.current?.focus();
|
|
930
|
+
}, Components: { error: nn }, iconVariant: { success: p.jsx(vn, { style: { marginRight: "8px" }, children: p.jsx("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" }) }), error: p.jsx(wn, { style: { marginRight: "8px" } }) }, children: p.jsx(yn, { children: p.jsx(an, { workbook: M?.workbook, setWorkbook: _, importExportDisabled: x, titlePlaceHolder: B, titleWorkbook: $, setWorkbookTitle: J, refWorkbookTitle: K, commands: he, undoManager: y, themeOptions: P, children: te }) }) }) });
|
|
931
|
+
return P && (O = p.jsxs(En, { theme: U ? P.dark : P.light, children: [P.cssBaseline ? p.jsx(mo, {}) : null, O] })), O;
|
|
932
|
+
}));
|
|
933
|
+
ct.displayName = "EagerStudio";
|
|
934
|
+
const Wo = Object.freeze(Object.defineProperty({ __proto__: null, EagerStudio: ct, default: ct }, Symbol.toStringTag, { value: "Module" })), Ao = Object.freeze(Object.defineProperty({ __proto__: null, E: Wo, c: le }, Symbol.toStringTag, { value: "Module" }));
|
|
935
|
+
export {
|
|
936
|
+
at as C,
|
|
937
|
+
Ao as a,
|
|
938
|
+
le as h
|
|
939
|
+
};
|