@sheetxl/studio-vanilla 0.8.0-beta.1 → 0.8.0-beta.10
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/browser/esm/-LoBx7J6imeqaxCq.mjs +236 -0
- package/browser/esm/8-jmVNNbOHuXFdVQ.mjs +392 -0
- package/browser/esm/{CJPemkFUzhcAD_qR.mjs → B00ixdmb8-O5ijEp.mjs} +1 -1
- package/{cdn/assets/Bv_96nwOEMHN9Sa0.js → browser/esm/B0Wjc3lwtjKMwnvn.mjs} +27 -29
- package/browser/esm/B3Ii8x6RquHW1jMc.mjs +299 -0
- package/{cdn/assets/C_Io1QC4CeLGRBrz.js → browser/esm/B7iV5qzlmJlM2nQv.mjs} +179 -202
- package/{cdn/assets/D_t53-8k73CNpV-p2.js → browser/esm/BAH_cWcQEIBKWnl6.mjs} +94 -74
- package/browser/esm/BAdRecWK1maKGOZd.mjs +142 -0
- package/browser/esm/BBjgqNlHm-ssbSAG.mjs +47 -0
- package/browser/esm/BCWTI3jdTPG37r8W.mjs +46 -0
- package/browser/esm/{Dnx3_xXfRlD6ECfZ2.mjs → BMlPFJ1glExv-70Z.mjs} +5 -5
- package/browser/esm/{DBL3Qp5jyPrFg7KI2.mjs → BN2d5U1nw7pRtOrn.mjs} +1 -1
- package/browser/esm/BNIInlJQbJjH8B6G.mjs +84250 -0
- package/browser/esm/BPrHgyAsm2Htx15h.mjs +67 -0
- package/browser/esm/BRfat1fV3oGLwvin.mjs +76 -0
- package/browser/esm/{8V-VceXEjpADM8qK2.mjs → BSCja5yvevmKZPBB.mjs} +1 -1
- package/browser/esm/BThOwSja2ra4xejQ.mjs +6306 -0
- package/browser/esm/BVJUL2HhoedhbwVy.mjs +77 -0
- package/browser/esm/{CfvrjQGuf7vXiQCB.mjs → BWo1N4YbK_zGU0nu.mjs} +1 -1
- package/browser/esm/B_HB4y7AA88Z775Z.mjs +91 -0
- package/browser/esm/BaEZmurTZnX_yfKD.mjs +1082 -0
- package/browser/esm/BeMLfv6hWo15VCIL.mjs +239 -0
- package/{cdn/assets/C1ZePT2B182vSnxW.js → browser/esm/BhkeuRcx8RlLCQ5E.mjs} +1 -1
- package/browser/esm/Bi5-feQLtwpV6Ai8.mjs +57 -0
- package/browser/esm/BlPn_DXaEXOPxMxC.mjs +540 -0
- package/browser/esm/{B4iT_CduJeJunwBc.mjs → BsUrrzAgfyAdcCJW.mjs} +28 -13
- package/browser/esm/{47Yv4X226-93If7L.mjs → BtGmrIqU9W1L8zfZ.mjs} +1 -1
- package/browser/esm/BtdRr6IbtO6Gypsk.mjs +27 -0
- package/browser/esm/BwOxnbR61WFJwy0A.mjs +607 -0
- package/browser/esm/BxhKgo_rPQ2d12HT.mjs +35 -0
- package/browser/esm/By3a43qwWICwXRmw.mjs +8035 -0
- package/browser/esm/{BqTFwWLbXXJ0Fu-X2.mjs → ByUcqyCNfqi5Mm7w.mjs} +2 -2
- package/browser/esm/{Blc1T4zLkp8bRC_n2.mjs → ByqhqEMBLrnkaPKE.mjs} +28 -27
- package/{cdn/assets/8f9hCbpXTTYEgG31.js → browser/esm/C-0viTjg1dT2F-sk.mjs} +2 -2
- package/{cdn/assets/BMRav2VAqEzDSp3r.js → browser/esm/C3r_9RqlWrEmlXZ1.mjs} +37 -3
- package/browser/esm/C4VT6lNbpaDXCpBb.mjs +8820 -0
- package/browser/esm/{Be4QC65cR8N84rTn.mjs → C5EKgE9Owsc_juw-.mjs} +1 -1
- package/browser/esm/{1guzFZp1LHz_FwfL.mjs → C9NyIoUahFiyRCxP.mjs} +2 -2
- package/{cdn/assets/BykiUmcpDgSRNQI1.js → browser/esm/CBdNC7BOfc5TewHU.mjs} +1 -1
- package/browser/esm/CCd192S7yVpc6iOe.mjs +118 -0
- package/browser/esm/{BLcn1kGRsjURZSzk.mjs → CDsuiN--qdALFyql.mjs} +179 -202
- package/{cdn/assets/BDkVAo0CDCTE04ZJ.js → browser/esm/CFvKDDbrL3wpXnQH.mjs} +1 -1
- package/browser/esm/{CH0of3GZTzHviuQV.mjs → CHMqT9DzYKTxPfP6.mjs} +2 -2
- package/browser/esm/{CEN8dYSpN2oew8HH.mjs → CMxbiQ5J79M3n1tk.mjs} +604 -405
- package/browser/esm/{vcRSnmAqjwKglEkY.mjs → CQOyeq_-pg3CM-uA.mjs} +6 -7
- package/browser/esm/CQuv-nk5jtXUfu7C.mjs +7 -0
- package/browser/esm/CRAzVh3CaAa16avf.mjs +521 -0
- package/{cdn/assets/hFSDx-LnUOObv-6h.js → browser/esm/CSEMxasVyGCekxKf.mjs} +6 -7
- package/browser/esm/CTI-mCJbJzitJZwj.mjs +25 -0
- package/{cdn/assets/CdMv3f8Gyxh8q2RR.js → browser/esm/CTdFZ_I-41Vr6Dy4.mjs} +1 -1
- package/browser/esm/CVcCUfSRsiZ1-6hs.mjs +119 -0
- package/browser/esm/CVxlfyE-gnJM8hOz.mjs +177 -0
- package/browser/esm/CWJzHmEgahdOfNjH.mjs +527 -0
- package/browser/esm/CWoPWWRwMgkGPFFP.mjs +7393 -0
- package/browser/esm/CZOJogyZqMfUxcXj.mjs +1141 -0
- package/{cdn/assets/DLEdaT0MmrOxMa2h2.js → browser/esm/CaS8_J5HfBRk5_Nw.mjs} +94 -94
- package/browser/esm/CdeXXPCp5cCYvGyD.mjs +14 -0
- package/browser/esm/{BVRzmIk5PujkT_Ap.mjs → CfltjY8hY-RPwwpd.mjs} +582 -551
- package/browser/esm/Chr_TXM-48IsK8Va.mjs +155 -0
- package/browser/esm/{DTaVECXVrgvC48BE.mjs → ClJvUf8aR8vNC_3Z.mjs} +6 -6
- package/browser/esm/Clx8vvGDOTWK_M2l.mjs +484 -0
- package/browser/esm/CnWNviK4qlX2GVl6.mjs +73 -0
- package/browser/esm/{CQM87ZBN7Yzn4Yxr.mjs → Cpza4AeltEVHASij.mjs} +3 -3
- package/browser/esm/{BceIETi6JJRW6Ss62.mjs → CqoHxlGpZ3yzPj5V.mjs} +22 -21
- package/{cdn/assets/iXWgTu3qpYZHcx1J.js → browser/esm/CtZPEkaldpJpoGtW.mjs} +2197 -2013
- package/browser/esm/CvWGtHslTdesJik-.mjs +69 -0
- package/browser/esm/Cw-4uoMuq_m7ziA3.mjs +36 -0
- package/browser/esm/CxCipDFamYSOctBo.mjs +299 -0
- package/browser/esm/Cy00y9b9j17Txyv1.mjs +466 -0
- package/browser/esm/D-55MlIn7Wo_hdjI.mjs +905 -0
- package/browser/esm/D-9f1NKcpuYSgond.mjs +412 -0
- package/browser/esm/D-KZpU6HMaP4VUva.mjs +357 -0
- package/browser/esm/D0r2MPlWLnStWJNW.mjs +622 -0
- package/browser/esm/{9_bymSfTn_rR_v6W.mjs → D2aQPiGg0ZoMYzuf.mjs} +22 -21
- package/{cdn/assets/DKeLjEJPO9nT3bpr.js → browser/esm/D2coM-dNrlLpnUu5.mjs} +1000 -1010
- package/browser/esm/D7CGuQcwpkiuesEI.mjs +229 -0
- package/browser/esm/{RW23HF8taEtW8q9D.mjs → D7DWH3-5fBNx8jtc.mjs} +182 -132
- package/browser/esm/D7kkzIFPqKBK94kO.mjs +17952 -0
- package/browser/esm/D88StfSjZJi5E8Xb.mjs +5153 -0
- package/browser/esm/D8exjrado9TJrBp-.mjs +1946 -0
- package/browser/esm/DAE3Kv0Vs0VuBecT.mjs +32 -0
- package/browser/esm/DAprxR00V9qvNLL2.mjs +6607 -0
- package/browser/esm/DEvZj68igS7Q8SZE.mjs +763 -0
- package/browser/esm/DG3BfxRsbjey-B7E.mjs +441 -0
- package/browser/esm/DGCOPbZbEmt0x9z0.mjs +155 -0
- package/browser/esm/DGcvio2uhlrsE3ZY.mjs +236 -0
- package/browser/esm/DGuynZFJ9tqziqQs.mjs +92 -0
- package/browser/esm/DJqj66SnUcx0QmSN.mjs +15 -0
- package/browser/esm/DLhK_oSGg71ry6-m.mjs +86 -0
- package/{cdn/assets/D9-wpGVbTS9rRpxx.js → browser/esm/DLqc11Pf8vaE4Q5B.mjs} +2 -2
- package/browser/esm/DNCqTF9EbT-U1TdV.mjs +20 -0
- package/browser/esm/{R5bs6kCQSZmsCXz-.mjs → DNaPo7BQu6hr1fWq.mjs} +1 -1
- package/browser/esm/{BCkXtOM3yKocv7L-2.mjs → DQEjvIGMgEkiaP6J.mjs} +1 -1
- package/{cdn/assets/CAPgMrAKg07EREFD2.js → browser/esm/DQIRFXG4MveFkK3I.mjs} +1 -1
- package/browser/esm/{DrUEYcXg6N2D2s1Z2.mjs → DRm1R4uVOkaMfXNI.mjs} +51 -11
- package/browser/esm/DSf-Db1h8rlW2A6n.mjs +122 -0
- package/browser/esm/DSviq1TNoiIAGW7W.mjs +32 -0
- package/{cdn/assets/UYgwKnPX3US3Cj2k2.js → browser/esm/DTn9oYyiIYgyijAk.mjs} +110 -83
- package/{cdn/assets/Clfp7SznkOrJoQvL.js → browser/esm/DVpi1vC8ixXvUQG_.mjs} +3 -3
- package/browser/esm/{BOl4FzJRD7MplCU72.mjs → DWgp4t9N9u0eWthH.mjs} +1 -1
- package/{cdn/assets/B5ZqqASTcBEV5L9K.js → browser/esm/DXo8mR6t5HGsmTcu.mjs} +1 -1
- package/browser/esm/DZRmBfjn2TgOTu5e.mjs +3604 -0
- package/browser/esm/{DVZ_UnchuMRveDG32.mjs → D_7BWdsu8yejhUxy.mjs} +184 -11
- package/browser/esm/D_thhK0vSez8Yfle.mjs +798 -0
- package/browser/esm/DaMKWQQTgIF08cT7.mjs +105 -0
- package/browser/esm/Db6Tvr45TS9J5Qsb.mjs +259 -0
- package/{cdn/assets/EwzqnZl1lTr56hH-.js → browser/esm/Dc2ZwgbIEgYWwAsF.mjs} +1 -1
- package/{cdn/assets/DQ4o4dG7gWbL1X8F.js → browser/esm/DeUXRggj8Oz9ru_i.mjs} +2 -2
- package/{cdn/assets/DRc_Wi5c7WdKHTVN.js → browser/esm/DfESVLC8CAi8m8A7.mjs} +6 -6
- package/browser/esm/{D3G3tI3DVCUF3Gdk.mjs → DjdkGy-EI1kSo226.mjs} +7 -5
- package/browser/esm/DjtXfgbmXjUAoG0y.mjs +58 -0
- package/browser/esm/DlOVZD0OiAjouS6-.mjs +3563 -0
- package/browser/esm/Dme0qpRinBnhzp53.mjs +519 -0
- package/browser/esm/DnyZmrwPxShyeUjm.mjs +849 -0
- package/browser/esm/DoS1sE431fEhdOQb.mjs +216 -0
- package/browser/esm/DqBj-9o7UdXu4qhb.mjs +33 -0
- package/browser/esm/{DZbR5R1fNikjgqYb.mjs → DrI_S0A9TQvriTua.mjs} +1 -1
- package/browser/esm/Dv2z0548SZRGTN3l.mjs +149 -0
- package/browser/esm/{D6SKy2BtcWkhfiA02.mjs → Dv8aQFTTaQBJKDDk.mjs} +2 -5
- package/browser/esm/DvWCBuY0jAL-RmJV.mjs +3363 -0
- package/browser/esm/Dwxz0s23ra1tRtsH.mjs +7 -0
- package/browser/esm/{Cbw0JeJURvQyxIoa.mjs → DxcRLd7wmBGDgJsA.mjs} +1 -1
- package/{cdn/assets/DOsbSsKsexrBoeXa2.js → browser/esm/DxwprgjYhcmfDbXH.mjs} +24 -24
- package/browser/esm/{Dc0BDcQUGy_WIVFa.mjs → Dy44qJVkwNseMG-3.mjs} +1 -1
- package/browser/esm/DyeY6XwMQ_XNUHiW.mjs +89 -0
- package/browser/esm/{BD7RxHQgrqy_4tb5.mjs → ErIXJFPDFXwGEL8V.mjs} +2 -2
- package/{cdn/assets/COA_SZY2x8q6t4BD.js → browser/esm/FO1Jezau486fH4kN.mjs} +7 -6
- package/browser/esm/FjNOhkR7-JAIaRP6.mjs +19 -0
- package/browser/esm/H-JnJQMcZQbpvjdb.mjs +2706 -0
- package/browser/esm/J9i3r1fU0H10b2hX.mjs +1001 -0
- package/browser/esm/LAbUYeLiPG8z9cmA.mjs +277 -0
- package/browser/esm/M7RYrx20B_Yl_euJ.mjs +400 -0
- package/browser/esm/{Gy0CHZTvn4hY-rkx2.mjs → PtGiIWFBYP-ujLmf.mjs} +1 -1
- package/browser/esm/RLU85PsAYtKPUf6N.mjs +71 -0
- package/browser/esm/{qG5zdZZAe6mQIJo32.mjs → RfHd1JATBlcsfLPv.mjs} +5 -5
- package/{cdn/assets/CtXoSHbCUKMY-tSJ2.js → browser/esm/SNze-adFJwKuGSQW.mjs} +48 -2
- package/browser/esm/UTZcodQydbuMfCOS.mjs +171 -0
- package/browser/esm/{BHmYoIIbNW3GdcqV2.mjs → VwGokBaawZfZiV2X.mjs} +1 -1
- package/browser/esm/WMYR09ZOR8JbZEnx.mjs +4748 -0
- package/browser/esm/{DW72HwfnJtQxzoGa.mjs → ZbGPiRN9j0629JJQ.mjs} +2 -2
- package/browser/esm/{CR3jgkduTLczbMjH2.mjs → ZxsFYopF0_WWqw4Q.mjs} +1 -1
- package/browser/esm/_MPToH4oMe4rhTdZ.mjs +63 -0
- package/{cdn/assets/BHBJtVTiQByD_y9j2.js → browser/esm/_t0Mx-mUFVtmVNkU.mjs} +2 -2
- package/browser/esm/{B0HA_dHcr0kKfudQ.mjs → _zRV52yhE4gPf3XI.mjs} +213 -190
- package/browser/esm/aUREGNA8H7p4BpMK.mjs +33 -0
- package/browser/esm/cwuYkcKwsKkPe3gG.mjs +598 -0
- package/browser/esm/{NekeSGoazNCraGNC2.mjs → djM9mJznx8GzVq51.mjs} +16 -15
- package/browser/esm/{DuPdSe-EXFTx9dsc2.mjs → f1OJemsiZnbwnds-.mjs} +16 -15
- package/{cdn/assets/DQ-0yyFAwoWtxmhV2.js → browser/esm/i0P63Wd0RRlgJotb.mjs} +1 -1
- package/browser/esm/{B4vYIE3kSPTxCgpf2.mjs → iC69oOND5T8khIWf.mjs} +18 -17
- package/browser/esm/index.mjs +644 -48
- package/browser/esm/{7rixDGGrR72lXkMV.mjs → kVBPUUnVyZfb8pf3.mjs} +52 -52
- package/{cdn/assets/BCZjYGV8AqIZghBH.js → browser/esm/lqknEt3DTma5Juxs.mjs} +69 -4
- package/browser/esm/mZ92wNrHVpYdli1U.mjs +182 -0
- package/browser/esm/{DtXC6uPF2LLktqFE.mjs → pKc_RPdZPLAgvNDh.mjs} +2 -2
- package/browser/esm/{BPv6Pw1hW-sV5Fya.mjs → pc49xtHdprXZLW2X.mjs} +1 -1
- package/browser/esm/px-aQ8dMjiWag_pV.mjs +167 -0
- package/browser/esm/qYca4mdySLkACfo1.mjs +37 -0
- package/browser/esm/r2Az2Yc4_qj2-sn0.mjs +398 -0
- package/browser/esm/{DXWmgQSeh0_HDxZj.mjs → rY-dC3WB558TIbum.mjs} +4 -4
- package/browser/esm/rkTVQiYG3wd8oPom.mjs +2452 -0
- package/browser/esm/sDVzjXC1mS5rucF5.mjs +2447 -0
- package/browser/esm/sxxbiJiCMOW2Eivd.mjs +24952 -0
- package/{cdn/assets/CopfZ7Y1Zn_PDNXK.js → browser/esm/vGKTE7yjY8y-XnsW.mjs} +16 -11
- package/browser/esm/{CG5v2hAwGR5Ptufn.mjs → x6GcENwqoUVbd60j.mjs} +1 -1
- package/{cdn/assets/CGqvy5LwQ4z9J2oD.js → browser/esm/ycmpAs4kQfeh78Pa.mjs} +1 -1
- package/browser/esm/ztqpWR65YYMZ3EPk.mjs +811 -0
- package/cdn/assets/0vqRTRN0wEzWao1c.js +522 -0
- package/cdn/assets/514mXPTuNvdNgw35.js +412 -0
- package/{browser/esm/DVQNQmjI2PKkwiOw2.mjs → cdn/assets/7Sg0ht_ZCMJkPurt.js} +89 -87
- package/cdn/assets/{mtrwY1hjJeYlmzC-.js → 7i4WSxDsu2ApJJ2_.js} +6 -6
- package/cdn/assets/AjMG7Fb9r4Fk7Hsf.js +78 -0
- package/cdn/assets/{CJPemkFUzhcAD_qR.js → B00ixdmb8-O5ijEp.js} +1 -1
- package/{browser/esm/Bv_96nwOEMHN9Sa02.mjs → cdn/assets/B0Wjc3lwtjKMwnvn.js} +27 -29
- package/cdn/assets/B27vTQlxbHhSQJx8.js +24953 -0
- package/cdn/assets/B3NWCYKXucbHhOix.js +93 -0
- package/{browser/esm/D_t53-8k73CNpV-p.mjs → cdn/assets/BAH_cWcQEIBKWnl6.js} +94 -74
- package/cdn/assets/BAdRecWK1maKGOZd.js +142 -0
- package/cdn/assets/BB4MW8sSYEXjPvvf.js +64 -0
- package/cdn/assets/BBjgqNlHm-ssbSAG.js +47 -0
- package/cdn/assets/BI6afPOpgNYkzIWv.js +6609 -0
- package/cdn/assets/{CF8m5SqeMaRkGIYM.js → BIsbcP5RXRU2XPfx.js} +2 -2
- package/cdn/assets/{Dnx3_xXfRlD6ECfZ.js → BMlPFJ1glExv-70Z.js} +5 -5
- package/cdn/assets/{DBL3Qp5jyPrFg7KI.js → BN2d5U1nw7pRtOrn.js} +1 -1
- package/cdn/assets/BNsqqoZY7a4N1wWC.js +905 -0
- package/cdn/assets/BPrHgyAsm2Htx15h.js +67 -0
- package/cdn/assets/{8V-VceXEjpADM8qK.js → BSCja5yvevmKZPBB.js} +1 -1
- package/cdn/assets/{CfvrjQGuf7vXiQCB2.js → BWo1N4YbK_zGU0nu.js} +1 -1
- package/cdn/assets/B_3Musz0q2MSZ5H-.js +799 -0
- package/cdn/assets/Ba8taVvLslFcKS72.js +119 -0
- package/cdn/assets/{CBuvbUg67ah_3BOZ.js → BeQ95CzwR65il0CK.js} +2 -2
- package/cdn/assets/BelX6bvQPsGuo-x3.js +7 -0
- package/cdn/assets/{C8mUyjJ26jsHGl_D.js → Bgbi7BFR3rN5qj51.js} +22 -21
- package/cdn/assets/BgyY4zVPZSXljoCZ.js +14 -0
- package/{browser/esm/C1ZePT2B182vSnxW2.mjs → cdn/assets/BhkeuRcx8RlLCQ5E.js} +1 -1
- package/cdn/assets/BlIZ30huelIxNo6S.js +91 -0
- package/cdn/assets/BlPn_DXaEXOPxMxC.js +540 -0
- package/cdn/assets/BoFx07POTorOb5g-.js +7393 -0
- package/cdn/assets/{-2S675KWulPRlVNb2.js → BpZ7P0CO148rR4zW.js} +23 -22
- package/cdn/assets/BsTFy_iJXJYmaO3Z.js +763 -0
- package/cdn/assets/{j8nXVEYbO2kPuEYQ.js → Bsn-tUx172sEG2kR.js} +59 -47
- package/cdn/assets/{47Yv4X226-93If7L2.js → BtGmrIqU9W1L8zfZ.js} +1 -1
- package/cdn/assets/BuYS_ZjSlcvWZ1JC.js +8035 -0
- package/cdn/assets/BvlfKrfrDhE9Jw4d.js +598 -0
- package/cdn/assets/BwOxnbR61WFJwy0A.js +607 -0
- package/cdn/assets/BxqXOiOyI_XiOmvN.js +156 -0
- package/cdn/assets/{BqTFwWLbXXJ0Fu-X.js → ByUcqyCNfqi5Mm7w.js} +2 -2
- package/{browser/esm/CsufM5aF6VTLKDWM.mjs → cdn/assets/BzbP4jaN13wC9aSi.js} +58 -55
- package/{browser/esm/8f9hCbpXTTYEgG312.mjs → cdn/assets/C-0viTjg1dT2F-sk.js} +2 -2
- package/cdn/assets/C0CeCYdLWLjySEFe.js +123 -0
- package/cdn/assets/{B55nrhIK6gAAu4ZA.js → C32co-XulWTkEKrW.js} +2 -2
- package/{browser/esm/BMRav2VAqEzDSp3r2.mjs → cdn/assets/C3r_9RqlWrEmlXZ1.js} +37 -3
- package/cdn/assets/{Be4QC65cR8N84rTn2.js → C5EKgE9Owsc_juw-.js} +1 -1
- package/cdn/assets/C6INLvBy8kdzFpsX.js +2447 -0
- package/cdn/assets/C7fu6LrSMBlHqwUy.js +46 -0
- package/{browser/esm/DMX-ZlC_ljcf7oUN.mjs → cdn/assets/C9NyIoUahFiyRCxP.js} +2 -2
- package/{browser/esm/BykiUmcpDgSRNQI12.mjs → cdn/assets/CBdNC7BOfc5TewHU.js} +1 -1
- package/cdn/assets/{DZDynaLqNeVaDoiH2.js → CCvBdPu7W2ZF6A9J.js} +3 -3
- package/cdn/assets/{Chq4BwbjH0sbIkJN2.js → CDAYVaQYywqaxg4O.js} +28 -13
- package/cdn/assets/CEYyp6Qrr_IopxpL.js +22597 -0
- package/cdn/assets/CFBgmXap8kmumhoz.js +622 -0
- package/{browser/esm/BDkVAo0CDCTE04ZJ2.mjs → cdn/assets/CFvKDDbrL3wpXnQH.js} +1 -1
- package/cdn/assets/{1guzFZp1LHz_FwfL2.js → CHMqT9DzYKTxPfP6.js} +2 -2
- package/cdn/assets/CILUMtSddGz7WXEv.js +240 -0
- package/cdn/assets/{DnzDlqizzNkbhJP7.js → CIyaijfp6itgRpFM.js} +95 -87
- package/cdn/assets/{DW7JlG-SQEdLYNar2.js → CL6Tgu_rUO6G-fyq.js} +183 -10
- package/cdn/assets/CMVTwWHsRgyfSEDM.js +300 -0
- package/cdn/assets/{CEN8dYSpN2oew8HH2.js → CMxbiQ5J79M3n1tk.js} +604 -405
- package/cdn/assets/COMOqucXq7X1vi0P.js +230 -0
- package/cdn/assets/{vcRSnmAqjwKglEkY2.js → CQOyeq_-pg3CM-uA.js} +6 -7
- package/cdn/assets/{c6VvwMHfXubjjtyj.js → CRXSrbGNABtzf532.js} +141 -126
- package/{browser/esm/hFSDx-LnUOObv-6h2.mjs → cdn/assets/CSEMxasVyGCekxKf.js} +6 -7
- package/cdn/assets/CSIZpJClc66_20kP.js +849 -0
- package/cdn/assets/CTI-mCJbJzitJZwj.js +25 -0
- package/{browser/esm/CdMv3f8Gyxh8q2RR2.mjs → cdn/assets/CTdFZ_I-41Vr6Dy4.js} +1 -1
- package/cdn/assets/CTvPIYWTcjwlJeEA.js +237 -0
- package/cdn/assets/CU5cKipVT1X8Xz7F.js +156 -0
- package/cdn/assets/CVcCUfSRsiZ1-6hs.js +119 -0
- package/cdn/assets/CWJzHmEgahdOfNjH.js +527 -0
- package/cdn/assets/CZOJogyZqMfUxcXj.js +1141 -0
- package/{browser/esm/D4VqLbEWag8lTWzC2.mjs → cdn/assets/CakrxSS_RXtKmcUX.js} +123 -94
- package/{browser/esm/Bl6bX86tSq8hfyb2.mjs → cdn/assets/CbTN0q6XnYGJqyEp.js} +2215 -2027
- package/cdn/assets/{gspQcUnmlRIwG609.js → Cfg4Dtndwurxv9LM.js} +8 -8
- package/cdn/assets/{BhDLR-jtbOOG-tl12.js → ChAKLV5zrGAHAof2.js} +28 -27
- package/cdn/assets/{CpnA5TZRkPDt4HnM2.js → CsrTRThObSryov1b.js} +182 -132
- package/cdn/assets/Cv5PLuhEmh5IDHjb.js +75 -0
- package/cdn/assets/Cw-4uoMuq_m7ziA3.js +36 -0
- package/cdn/assets/Cw7AJWd0S2sjRmr6.js +6309 -0
- package/cdn/assets/CwqRA5h1u92Cyit-.js +7 -0
- package/cdn/assets/Cy00y9b9j17Txyv1.js +466 -0
- package/cdn/assets/{CT3G9YRPVfKtHWwf2.js → D-bNmX0QsA8SuT0m.js} +32 -31
- package/{browser/esm/Dg5wjQp0fArKXlM3.mjs → cdn/assets/D-yz3V2UC54rwctD.js} +16 -11
- package/cdn/assets/D32D_biNXRCZ24vG.js +87 -0
- package/cdn/assets/D8DghdqjOtBzO2Wx.js +35 -0
- package/cdn/assets/DAE3Kv0Vs0VuBecT.js +32 -0
- package/cdn/assets/DCnWyVXikb_8Dat3.js +61 -0
- package/cdn/assets/DHH_uKVzQ_kRYO2N.js +57 -0
- package/cdn/assets/DHugYwX4_ZyqGn-C.js +1947 -0
- package/cdn/assets/DJqj66SnUcx0QmSN.js +15 -0
- package/cdn/assets/{R5bs6kCQSZmsCXz-2.js → DNaPo7BQu6hr1fWq.js} +1 -1
- package/cdn/assets/DOHh3pUXxMM09UY5.js +3604 -0
- package/cdn/assets/DONxZZT2Iwu7psS5.js +27 -0
- package/cdn/assets/{BCkXtOM3yKocv7L-.js → DQEjvIGMgEkiaP6J.js} +1 -1
- package/{browser/esm/CAPgMrAKg07EREFD.mjs → cdn/assets/DQIRFXG4MveFkK3I.js} +1 -1
- package/cdn/assets/DQjxp9lDP9DzP8ah.js +357 -0
- package/cdn/assets/{DrUEYcXg6N2D2s1Z.js → DRm1R4uVOkaMfXNI.js} +51 -11
- package/cdn/assets/DSXJHEORGmMQX_Mb.js +8391 -0
- package/cdn/assets/DSviq1TNoiIAGW7W.js +32 -0
- package/{browser/esm/Clfp7SznkOrJoQvL.mjs → cdn/assets/DVpi1vC8ixXvUQG_.js} +3 -3
- package/cdn/assets/{BOl4FzJRD7MplCU7.js → DWgp4t9N9u0eWthH.js} +1 -1
- package/{browser/esm/B5ZqqASTcBEV5L9K2.mjs → cdn/assets/DXo8mR6t5HGsmTcu.js} +1 -1
- package/cdn/assets/DYvBgX17ZerZSHEJ.js +300 -0
- package/cdn/assets/DZRm4H75lnEtOG8e.js +260 -0
- package/cdn/assets/D_pMOq6FdH4RSBLc.js +3364 -0
- package/{browser/esm/EwzqnZl1lTr56hH-2.mjs → cdn/assets/Dc2ZwgbIEgYWwAsF.js} +1 -1
- package/cdn/assets/DckmFyHxGX4Y1gOq.js +70 -0
- package/{browser/esm/oYdWyqsKo9ejAdVm.mjs → cdn/assets/De2z8LdHaWRFiR5T.js} +179 -202
- package/{browser/esm/DQ4o4dG7gWbL1X8F2.mjs → cdn/assets/DeUXRggj8Oz9ru_i.js} +2 -2
- package/{browser/esm/DRc_Wi5c7WdKHTVN2.mjs → cdn/assets/DfESVLC8CAi8m8A7.js} +6 -6
- package/cdn/assets/DicTo_3G-KZyWDiE.js +1084 -0
- package/cdn/assets/{D3G3tI3DVCUF3Gdk2.js → DjdkGy-EI1kSo226.js} +7 -5
- package/cdn/assets/DjtXfgbmXjUAoG0y.js +58 -0
- package/cdn/assets/DlpgIJxNq2V4gdDq.js +74 -0
- package/cdn/assets/{DaBczM5xU9ev5_or.js → Dp-GJXOMz_b8qAxD.js} +2 -2
- package/cdn/assets/DqBj-9o7UdXu4qhb.js +33 -0
- package/cdn/assets/{DZbR5R1fNikjgqYb.js → DrI_S0A9TQvriTua.js} +1 -1
- package/cdn/assets/DuAbY54w5gJpQgss.js +84250 -0
- package/cdn/assets/{D6SKy2BtcWkhfiA0.js → Dv8aQFTTaQBJKDDk.js} +2 -5
- package/cdn/assets/DviEoeWW0EvDg1hr.js +149 -0
- package/cdn/assets/{Cbw0JeJURvQyxIoa.js → DxcRLd7wmBGDgJsA.js} +1 -1
- package/cdn/assets/DxisV9_27l_WU-nk.js +21 -0
- package/cdn/assets/{Dc0BDcQUGy_WIVFa.js → Dy44qJVkwNseMG-3.js} +1 -1
- package/cdn/assets/ENtt4kmaU9mJfVEp.js +236 -0
- package/{browser/esm/COA_SZY2x8q6t4BD.mjs → cdn/assets/FO1Jezau486fH4kN.js} +7 -6
- package/cdn/assets/FjNOhkR7-JAIaRP6.js +19 -0
- package/cdn/assets/{DbEGszSW_J_k96KJ.js → G5z0uVlyF6CLw_PA.js} +179 -202
- package/cdn/assets/H-JnJQMcZQbpvjdb.js +2706 -0
- package/cdn/assets/J3hutJxqQiHENpIe.js +392 -0
- package/cdn/assets/J9i3r1fU0H10b2hX.js +1001 -0
- package/cdn/assets/{Gy0CHZTvn4hY-rkx.js → PtGiIWFBYP-ujLmf.js} +1 -1
- package/cdn/assets/PzWqv-oXxEuzKdaT.js +484 -0
- package/cdn/assets/QJ4AkDD269D1MzmI.js +89 -0
- package/cdn/assets/{qG5zdZZAe6mQIJo3.js → RfHd1JATBlcsfLPv.js} +5 -5
- package/{browser/esm/CtXoSHbCUKMY-tSJ.mjs → cdn/assets/SNze-adFJwKuGSQW.js} +48 -2
- package/cdn/assets/UTZcodQydbuMfCOS.js +171 -0
- package/{browser/esm/DzDwSOBdJh_lx_NM.mjs → cdn/assets/VCiu_neIjCTg2NUa.js} +998 -1006
- package/cdn/assets/{BHmYoIIbNW3GdcqV.js → VwGokBaawZfZiV2X.js} +1 -1
- package/cdn/assets/W1d6GQyySAHrtjEu.js +3563 -0
- package/cdn/assets/ZSYS1J3uR7UQuHwZ.js +217 -0
- package/cdn/assets/{CR3jgkduTLczbMjH.js → ZxsFYopF0_WWqw4Q.js} +1 -1
- package/{browser/esm/BHBJtVTiQByD_y9j.mjs → cdn/assets/_t0Mx-mUFVtmVNkU.js} +2 -2
- package/cdn/assets/aHTKr1ijZ6bRi3Zg.js +33 -0
- package/cdn/assets/anQDUZhHMDPi1eha.js +812 -0
- package/cdn/assets/{tVOVNvOs6ro8FXqa2.js → dn69mDhY7Xcc91kF.js} +20 -19
- package/cdn/assets/fm3mUdTDo-STB36M.js +4749 -0
- package/cdn/assets/gpQ4FdJMbIScKnS_.js +400 -0
- package/cdn/assets/{EjOJX5m8OEL-IjPB.js → hg8WYI0Yy4WPPPoP.js} +28 -27
- package/{browser/esm/DQ-0yyFAwoWtxmhV2.mjs → cdn/assets/i0P63Wd0RRlgJotb.js} +1 -1
- package/cdn/assets/lWY3TbG2NDscy9He.js +72 -0
- package/{browser/esm/BCZjYGV8AqIZghBH.mjs → cdn/assets/lqknEt3DTma5Juxs.js} +69 -4
- package/cdn/assets/mK8HcIZyXkOTvL6E.js +2453 -0
- package/cdn/assets/{BPv6Pw1hW-sV5Fya.js → pc49xtHdprXZLW2X.js} +1 -1
- package/cdn/assets/px-aQ8dMjiWag_pV.js +167 -0
- package/cdn/assets/qYca4mdySLkACfo1.js +37 -0
- package/{browser/esm/BqwvP0318zI2izeL2.mjs → cdn/assets/w5IQWbJETgHhqMsY.js} +33 -31
- package/cdn/assets/wM7DzeOpoEGBVDBe.js +441 -0
- package/cdn/assets/{CG5v2hAwGR5Ptufn2.js → x6GcENwqoUVbd60j.js} +1 -1
- package/cdn/assets/xlXDq-qoj7eOE6_T.js +5153 -0
- package/{browser/esm/CGqvy5LwQ4z9J2oD2.mjs → cdn/assets/ycmpAs4kQfeh78Pa.js} +1 -1
- package/cdn/index.js +2 -2
- package/package.json +13 -14
- package/browser/cjs/1XrWGMP3GmsQOMIX2.cjs +0 -1
- package/browser/cjs/2zXD3NPfuQT2KSZq.cjs +0 -7
- package/browser/cjs/49_x589Na12sizKK.cjs +0 -1
- package/browser/cjs/4nReftSsKWmnRdtf2.cjs +0 -1
- package/browser/cjs/507hQYooKKjnRzsZ2.cjs +0 -1
- package/browser/cjs/B19QM3SGmPKKwD_o.cjs +0 -1
- package/browser/cjs/B4JJfKSI4ppwU8552.cjs +0 -1
- package/browser/cjs/B5YBx0GqLor3i0O1.cjs +0 -1
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
- package/browser/cjs/B9EI7wviSkHS9ZkH.cjs +0 -1
- package/browser/cjs/BAxVLKkxFgI6cXnR.cjs +0 -1
- package/browser/cjs/BC2gCQkR1iykfAuC.cjs +0 -1
- package/browser/cjs/BEJFcqVMDMKOvs11.cjs +0 -1
- package/browser/cjs/BEVqcFGFU6Ri9y8T.cjs +0 -5
- package/browser/cjs/BEzaum_kgG4yAOx0.cjs +0 -1
- package/browser/cjs/BF-38Z7Z0FZOPl192.cjs +0 -1
- package/browser/cjs/BIQZDBQfv3Qm5iC8.cjs +0 -4
- package/browser/cjs/BK0SCfN_VZYqBxoQ2.cjs +0 -1
- package/browser/cjs/BSCgCfORdZz1Ii5S.cjs +0 -2
- package/browser/cjs/BWDfauDHqB6U_2ka2.cjs +0 -1
- package/browser/cjs/BZr-IqNS1skh1hr6.cjs +0 -21
- package/browser/cjs/B_WV3e3yexp3dKaz.cjs +0 -9
- package/browser/cjs/BfzzZ9IR27ZPzj-8.cjs +0 -3
- package/browser/cjs/Bgke3PtMSF2Iaen4.cjs +0 -1
- package/browser/cjs/BnccBYHCCq9TGFx4.cjs +0 -8
- package/browser/cjs/Btc0Nzu40VYOpzLX.cjs +0 -1
- package/browser/cjs/BvG8N7G_8CXIAlT-.cjs +0 -1
- package/browser/cjs/BwLx9ix5Sq7suAYP2.cjs +0 -1
- package/browser/cjs/BziOCn_XEGT4ynN5.cjs +0 -1
- package/browser/cjs/C-HOJozu5NgCil1q.cjs +0 -1
- package/browser/cjs/C-bW8lKUTFFUVap4.cjs +0 -1
- package/browser/cjs/C2oTW2DjZypuqq7x.cjs +0 -1
- package/browser/cjs/C2uDl8VIJqh58YF_.cjs +0 -1
- package/browser/cjs/C5rQELB0TUeXY6VM.cjs +0 -1
- package/browser/cjs/C6yxQPAEgcGWAhYR.cjs +0 -33
- package/browser/cjs/C9C-pr-T_ThweQX92.cjs +0 -1
- package/browser/cjs/CHFOXPbNUaeZbrXn.cjs +0 -1
- package/browser/cjs/CHMgm0vAbEBS1mVW.cjs +0 -1
- package/browser/cjs/CJYewYJ5Z3iojl7J.cjs +0 -1
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
- package/browser/cjs/CPgCih_KEqnUZ9Rv.cjs +0 -3
- package/browser/cjs/CRx1WvmgBjT8WVyB2.cjs +0 -1
- package/browser/cjs/CSNCOmYEOR-iTJ7K.cjs +0 -5
- package/browser/cjs/CV4KQsHluMqo1I2Q.cjs +0 -1
- package/browser/cjs/CW-b31_-r-_raT8Y2.cjs +0 -1
- package/browser/cjs/CXlzsh_WHCOsErJ12.cjs +0 -1
- package/browser/cjs/C_7w8EJZpHw8ueuq.cjs +0 -1
- package/browser/cjs/C_IEgjM-hSJCv6Gm.cjs +0 -1
- package/browser/cjs/CbLXP9WY38wTcGn5.cjs +0 -10
- package/browser/cjs/CcneNtiqtKppCa-p.cjs +0 -57
- package/browser/cjs/CeF0DZ-k4DB8M47I.cjs +0 -1
- package/browser/cjs/Ci8Uu7_b4lwwRLAD2.cjs +0 -1
- package/browser/cjs/Clu7XiAsCB48GDXN2.cjs +0 -1
- package/browser/cjs/Cm21F18ga8TluA9h.cjs +0 -1
- package/browser/cjs/CnZfa45XxA-9Jhmp.cjs +0 -1
- package/browser/cjs/CojEXZgX08waZOoq.cjs +0 -1
- package/browser/cjs/CpJJh4UnFl1_qFui.cjs +0 -1
- package/browser/cjs/CrDTTLE9EvaGDSD4.cjs +0 -88
- package/browser/cjs/CrZlUtdX1h2RUnCP.cjs +0 -1
- package/browser/cjs/Cty5pi0fwToP1GWe.cjs +0 -7
- package/browser/cjs/CvV18ZJgssoHMkdf2.cjs +0 -2
- package/browser/cjs/Cy-4IMt-AbR-ifP3.cjs +0 -126
- package/browser/cjs/CyGzzWYDy-IniKCq2.cjs +0 -7
- package/browser/cjs/CzgwTfy2072Dmt5u.cjs +0 -1
- package/browser/cjs/D19RglhKiroWfpQn2.cjs +0 -1
- package/browser/cjs/D8-KovdJ0LjxqCe2.cjs +0 -1
- package/browser/cjs/DCIlWcGDrp-5PDoA.cjs +0 -1
- package/browser/cjs/DDnGLOLTqLFsdUDS2.cjs +0 -1
- package/browser/cjs/DEOu_cHJ1FfTA9R_2.cjs +0 -1
- package/browser/cjs/DFHxNnJ-lHtv0hIq.cjs +0 -1
- package/browser/cjs/DG-AY_xO8RKHtEBE.cjs +0 -2
- package/browser/cjs/DG2kqsWRUtVugjay2.cjs +0 -1
- package/browser/cjs/DH3WXPfGHwWJW0nH.cjs +0 -1
- package/browser/cjs/DIbdDzNf_3S2RYZN.cjs +0 -1
- package/browser/cjs/DLYEQZzAGuSAmJsp.cjs +0 -6
- package/browser/cjs/DM7-R_ltoLbA9jde2.cjs +0 -1
- package/browser/cjs/DNCC-QNp2I7saV-I.cjs +0 -1
- package/browser/cjs/DNKyaSruDogoBd2H2.cjs +0 -1
- package/browser/cjs/DNy-UU3NKNqQQngF.cjs +0 -1
- package/browser/cjs/DPjEO7dwhCFd8DHR2.cjs +0 -2
- package/browser/cjs/DYqvGm5rx1DB53p7.cjs +0 -1
- package/browser/cjs/DZSvmqU8nRas1uz62.cjs +0 -1
- package/browser/cjs/DfMJOaJ0GcUiSn4Q.cjs +0 -1
- package/browser/cjs/DiZDRPIgbO3sQ8Vb.cjs +0 -1
- package/browser/cjs/DsFZgtSQpC75d1M02.cjs +0 -1
- package/browser/cjs/DsIHLUKUrSrYhFHl.cjs +0 -1
- package/browser/cjs/Du4jBiFxRIF1OjD4.cjs +0 -1
- package/browser/cjs/DvSvfeo9V0Abfd3q2.cjs +0 -1
- package/browser/cjs/Dx79LP1-YCQg8B87.cjs +0 -1
- package/browser/cjs/DxQkFYAFNZubVdn22.cjs +0 -1
- package/browser/cjs/E-IqDztfMb_xdszH.cjs +0 -1
- package/browser/cjs/EeOVMRq7TuptFKTc2.cjs +0 -1
- package/browser/cjs/ElcoSB--cCpS6i7R2.cjs +0 -1
- package/browser/cjs/JfM6P_qoQQTWakZf.cjs +0 -1
- package/browser/cjs/KNCocKN9uPR0tvUS.cjs +0 -1
- package/browser/cjs/Kr8f1inOTt-MICaP2.cjs +0 -1
- package/browser/cjs/Kvn916ebqGc4t6hv2.cjs +0 -1
- package/browser/cjs/NcNz8RfT5V889CMT.cjs +0 -10
- package/browser/cjs/PM3PrEWG3WHKxaDx.cjs +0 -1
- package/browser/cjs/YG320hBA20Dl3HoU2.cjs +0 -1
- package/browser/cjs/Ytzw6iUYx5f19wfK.cjs +0 -9
- package/browser/cjs/_H5j4dU7HOBYTawU.cjs +0 -1
- package/browser/cjs/a0Z-SXs_N71CtqYb2.cjs +0 -1
- package/browser/cjs/aONv0Ys3C8xmnaR82.cjs +0 -1
- package/browser/cjs/aYuNpndpwcZG5eik2.cjs +0 -20
- package/browser/cjs/bGMaev70Zd_NXqLM2.cjs +0 -1
- package/browser/cjs/bIaGoYEDSBCrAaB6.cjs +0 -1
- package/browser/cjs/bM25C5avKgBAJVfk2.cjs +0 -1
- package/browser/cjs/fqTQ_p3ehzUvc1tF2.cjs +0 -1
- package/browser/cjs/h3dw1jAp2J5Pu4p32.cjs +0 -1
- package/browser/cjs/hzUo76TXMOBqsI3U2.cjs +0 -1
- package/browser/cjs/i2VboqjlOcozI9MQ.cjs +0 -12
- package/browser/cjs/index.cjs +0 -79
- package/browser/cjs/jev6VGWTdgEgm4Yk2.cjs +0 -1
- package/browser/cjs/lEQC21-Sk4lwHy2r2.cjs +0 -1
- package/browser/cjs/ppSJKdLn646BZOzg.cjs +0 -1
- package/browser/cjs/xBcvszV6x7ys-m532.cjs +0 -1
- package/browser/cjs/xQ6-wbTw5UzZUM1Y.cjs +0 -1
- package/browser/cjs/z_rZE1OHFPpdGBh42.cjs +0 -1
- package/browser/esm/-vgNEEXiEad4bltZ.mjs +0 -28782
- package/browser/esm/3y_bCend8tkaewDG2.mjs +0 -106
- package/browser/esm/At60x9FEPePwPP_J.mjs +0 -51151
- package/browser/esm/B1NoGosH2YQh01g7.mjs +0 -105
- package/browser/esm/B4h6iO7hQ9lCR7kj.mjs +0 -11273
- package/browser/esm/BBtOlJMVlsWorNJH.mjs +0 -824
- package/browser/esm/BQDXkeSabbxB5DUB2.mjs +0 -47
- package/browser/esm/BUCKq_2lHPd1ndvw.mjs +0 -149
- package/browser/esm/BVjXdv_wkL1x_8ZJ2.mjs +0 -1149
- package/browser/esm/BX4f6i2WMBMKFVCq.mjs +0 -99
- package/browser/esm/BZsx0QHg1RZlM9ZN.mjs +0 -15
- package/browser/esm/BhxX7CZWSOlV2Dsz.mjs +0 -224
- package/browser/esm/BhzLZRz2N8RxjQ_U.mjs +0 -34
- package/browser/esm/BjTf3XA9Swj0ngpH.mjs +0 -7813
- package/browser/esm/BkSb_vyWe-AhyEDa.mjs +0 -4423
- package/browser/esm/Bp9qFBIcpIGXvMgo.mjs +0 -134
- package/browser/esm/C0rS1uBqfsj-gPR8.mjs +0 -152
- package/browser/esm/C6CK_4GD9IpxKglV2.mjs +0 -6713
- package/browser/esm/CGGJWgWSPZ0aP_C3.mjs +0 -87
- package/browser/esm/CGyydD3tRb0ik50l2.mjs +0 -20
- package/browser/esm/CPUlpDM6aAzZzCat2.mjs +0 -471
- package/browser/esm/CU1d8OvDv5TU6fSd.mjs +0 -2211
- package/browser/esm/CY1zykikO58_ADk8.mjs +0 -3188
- package/browser/esm/CZWIS7FuqNjbheSw.mjs +0 -235
- package/browser/esm/Cb-FUOYcyRSkHG6u2.mjs +0 -238
- package/browser/esm/Cc5IufffX4N-8QpE.mjs +0 -6104
- package/browser/esm/Cd8HXAJlflkkTXxc.mjs +0 -53
- package/browser/esm/CfuhUkrvOq11d9FR.mjs +0 -44
- package/browser/esm/Ckl3FLCOeqw7yhkP2.mjs +0 -82
- package/browser/esm/CpjX81WsWJbXMUoT.mjs +0 -3655
- package/browser/esm/D9-wpGVbTS9rRpxx.mjs +0 -24
- package/browser/esm/DDOO4tcrO4OfMUDe.mjs +0 -25
- package/browser/esm/DDUYQ8FPeh1TJU24.mjs +0 -538
- package/browser/esm/DFdU1DsC1lXOrejZ.mjs +0 -8260
- package/browser/esm/DMLwXmjo28k_iNEU.mjs +0 -4740
- package/browser/esm/DVJd6McdAG5udItH.mjs +0 -27
- package/browser/esm/D_zNx76HGunFi7xJ.mjs +0 -509
- package/browser/esm/DfRGH6mEtIVDWEYN2.mjs +0 -304
- package/browser/esm/DnuaqN0xfgqzl8qG.mjs +0 -2687
- package/browser/esm/fJ1McMt7xzRA_lUX.mjs +0 -383
- package/browser/esm/nguMxPB9LKexKBRX.mjs +0 -219
- package/browser/esm/qzhFT2j-mpQEQnKs.mjs +0 -16386
- package/cdn/assets/2CuCH0wi9XPgVzE42.js +0 -44
- package/cdn/assets/2UHIeioUPXrwtZy-2.js +0 -83
- package/cdn/assets/BAhvL7M7ZcgZ8eDc2.js +0 -48
- package/cdn/assets/BJEpPEyFWtLzMIq-2.js +0 -3655
- package/cdn/assets/BKEzd89UphJ8q1pp2.js +0 -2211
- package/cdn/assets/BM7OqAUEUk-up7_82.js +0 -134
- package/cdn/assets/BNuoKAzs4zkxSocG2.js +0 -44
- package/cdn/assets/BNybEGR813e3aNIv.js +0 -8263
- package/cdn/assets/BU6uQhQhpaLElTT82.js +0 -225
- package/cdn/assets/BVgTMDEoPgsWFmku.js +0 -510
- package/cdn/assets/BVjXdv_wkL1x_8ZJ2.js +0 -1149
- package/cdn/assets/BWlMK76Aj2d4ygsH.js +0 -538
- package/cdn/assets/BZsx0QHg1RZlM9ZN2.js +0 -15
- package/cdn/assets/BixsQGDDf3Iv_PtW2.js +0 -4740
- package/cdn/assets/Bl6C6xWT8E6b7OwJ2.js +0 -239
- package/cdn/assets/BzUU8y1IFjREzgog2.js +0 -107
- package/cdn/assets/CGyydD3tRb0ik50l.js +0 -20
- package/cdn/assets/CH0of3GZTzHviuQV.js +0 -24
- package/cdn/assets/CH0of3GZTzHviuQV2.js +0 -24
- package/cdn/assets/CHttngK66Ido5dWW.js +0 -106
- package/cdn/assets/Ce5A_D4YBgi_s2KF.js +0 -176
- package/cdn/assets/CpYlf4dXa_V2v-iS2.js +0 -3188
- package/cdn/assets/Crkvq5j5KIa6eTLI2.js +0 -51151
- package/cdn/assets/Cv-KXN9kl0UeMezQ.js +0 -824
- package/cdn/assets/CvtkpvGzCHhNuwTm.js +0 -16386
- package/cdn/assets/D-fJXasEYyfRUcj2.js +0 -6104
- package/cdn/assets/D1MA2ed2cLMt7hV9.js +0 -236
- package/cdn/assets/D9gETGi23d14kT7u2.js +0 -99
- package/cdn/assets/D9joTG0Z2zdWHAEa2.js +0 -4423
- package/cdn/assets/DC9obE_EVmxtvXCf.js +0 -11275
- package/cdn/assets/DCnA2-zB7W_QB-tD2.js +0 -2199
- package/cdn/assets/DDNivpFWzQ3AIJia.js +0 -2687
- package/cdn/assets/DDOO4tcrO4OfMUDe.js +0 -25
- package/cdn/assets/DEUY_zuVwmptMX4l.js +0 -150
- package/cdn/assets/DIQf1pX-j-dWQu_e.js +0 -472
- package/cdn/assets/DJwQ9abZkyFO9Doy.js +0 -7404
- package/cdn/assets/DTCtbG90ip7Z7LaG.js +0 -220
- package/cdn/assets/DVS_5oDniuAFH3vT2.js +0 -6715
- package/cdn/assets/D_HeH7AJqWoxehn52.js +0 -53
- package/cdn/assets/DfRGH6mEtIVDWEYN.js +0 -304
- package/cdn/assets/DvItgGbf8IOWPyxd.js +0 -28784
- package/cdn/assets/DvlpP6sUZ9Qzl9s22.js +0 -616
- package/cdn/assets/WLUhtyUNK5QJ7Pff.js +0 -34
- package/cdn/assets/c7aIqKLOO4pvUsV12.js +0 -220
- package/cdn/assets/mtI43hWjdp4E3Z_-.js +0 -152
- package/cdn/assets/nmR_PgTW7GrlbHHZ.js +0 -27
- package/cdn/assets/vTCuFafvRlSaT9wy.js +0 -87
|
@@ -0,0 +1,4749 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.10
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { t as e } from "./CIyaijfp6itgRpFM.js";
|
|
8
|
+
import { t } from "./Bsn-tUx172sEG2kR.js";
|
|
9
|
+
import { t as n } from "./BeQ95CzwR65il0CK.js";
|
|
10
|
+
import { M as r, O as i, P as a, T as o, X as s, a as c, b as l, o as u, u as d, w as f } from "./CMxbiQ5J79M3n1tk.js";
|
|
11
|
+
import { E as p, N as m, W as h, bt as g } from "./BoFx07POTorOb5g-.js";
|
|
12
|
+
import { $ as _, It as v, zt as y } from "./DuAbY54w5gJpQgss.js";
|
|
13
|
+
import { r as b, t as x } from "./hg8WYI0Yy4WPPPoP.js";
|
|
14
|
+
import { Et as S, J as C, K as w, R as T, at as ee, ct as E, dt as te, et as D, g as ne, h as O, ht as k, i as re, l as ie, m as A, rt as j, tt as M, ut as ae, v as oe, w as se, xt as N, y as ce, z as le } from "./Cw7AJWd0S2sjRmr6.js";
|
|
15
|
+
import { t as ue } from "./C7fu6LrSMBlHqwUy.js";
|
|
16
|
+
import { h as de } from "./BI6afPOpgNYkzIWv.js";
|
|
17
|
+
import { M as fe, S as P, _ as pe, b as me, d as F, g as he, i as ge, n as _e, s as ve, t as I, v as ye, z as be } from "./mK8HcIZyXkOTvL6E.js";
|
|
18
|
+
import { B as xe, N as Se, Q as Ce, _ as we, _t as Te, a as L, b as Ee, gt as De, i as Oe, j as R, lt as ke, st as Ae, vt as je, xt as Me, yt as Ne } from "./CbTN0q6XnYGJqyEp.js";
|
|
19
|
+
import { D as Pe, E as Fe, T as Ie, m as Le, t as Re, y as ze } from "./VCiu_neIjCTg2NUa.js";
|
|
20
|
+
import { n as Be, t as z } from "./CRXSrbGNABtzf532.js";
|
|
21
|
+
import { t as B } from "./CTvPIYWTcjwlJeEA.js";
|
|
22
|
+
import { D as Ve, N as He, S as Ue, c as We, f as Ge, g as Ke, h as qe, i as Je, l as Ye, m as Xe, o as Ze, s as Qe, t as V, u as $e, z as H } from "./D_pMOq6FdH4RSBLc.js";
|
|
23
|
+
import { t as U } from "./BzbP4jaN13wC9aSi.js";
|
|
24
|
+
import { $ as W, At as et, C as tt, D as nt, Dt as rt, E as it, J as at, K as ot, Mt as st, O as ct, Ot as lt, P as ut, Pt as dt, S as ft, St as pt, T as mt, U as ht, V as G, _t as gt, a as _t, b as vt, ct as yt, ft as bt, g as xt, j as St, lt as Ct, m as wt, rt as Tt, st as Et, t as Dt, tt as Ot, u as kt, v as At, z as jt } from "./B27vTQlxbHhSQJx8.js";
|
|
25
|
+
import { t as Mt } from "./DjdkGy-EI1kSo226.js";
|
|
26
|
+
import { n as Nt } from "./COMOqucXq7X1vi0P.js";
|
|
27
|
+
import { i as Pt, p as K } from "./DHugYwX4_ZyqGn-C.js";
|
|
28
|
+
import { BorderPopupButton as Ft, C as It, CommentsPlugin as Lt, D as Rt, DocumentTitle as zt, E as Bt, ExternalLinksPlugin as Vt, F as q, FormatPlugin as Ht, H as Ut, I as Wt, L as Gt, N as Kt, NamedPlugin as qt, O as Jt, P as Yt, PresetChip as J, ProtectionPlugin as Xt, S as Y, SlicerPlugin as Zt, T as Qt, TablePlugin as $t, WorkbookElement as en, _ as tn, a as nn, b as rn, c as an, createStudioThemeCSS as on, d as sn, f as cn, g as ln, h as un, i as dn, k as fn, l as pn, m as mn, o as hn, p as gn, r as _n, registerStudioCommandCatalogs as vn, registerStudioCommandGroups as yn, renderWorkbookToolbars as bn, s as xn, tokensToMuiOptions as Sn, u as Cn, v as wn, w as Tn, x as En, y as Dn } from "./CEYyp6Qrr_IopxpL.js";
|
|
29
|
+
import { r as On } from "./DCnWyVXikb_8Dat3.js";
|
|
30
|
+
var X = On(e(), 1), kn = X.createContext(null);
|
|
31
|
+
function An() {
|
|
32
|
+
return X.useContext(kn);
|
|
33
|
+
}
|
|
34
|
+
var jn = typeof Symbol == "function" && Symbol.for ? Symbol.for("mui.nested") : "__THEME_NESTED__", Z = n();
|
|
35
|
+
function Mn(e) {
|
|
36
|
+
let { children: t, theme: n } = e, r = An(), i = X.useMemo(() => {
|
|
37
|
+
let e = r === null ? { ...n } : function(e, t) {
|
|
38
|
+
return typeof t == "function" ? t(e) : {
|
|
39
|
+
...e,
|
|
40
|
+
...t
|
|
41
|
+
};
|
|
42
|
+
}(r, n);
|
|
43
|
+
return e != null && (e[jn] = r !== null), e;
|
|
44
|
+
}, [n, r]);
|
|
45
|
+
return (0, Z.jsx)(kn.Provider, {
|
|
46
|
+
value: i,
|
|
47
|
+
children: t
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
var Nn = {};
|
|
51
|
+
function Pn(e, t, n, r = !1) {
|
|
52
|
+
return X.useMemo(() => {
|
|
53
|
+
let i = e && t[e] || t;
|
|
54
|
+
if (typeof n == "function") {
|
|
55
|
+
let a = n(i), o = e ? {
|
|
56
|
+
...t,
|
|
57
|
+
[e]: a
|
|
58
|
+
} : a;
|
|
59
|
+
return r ? () => o : o;
|
|
60
|
+
}
|
|
61
|
+
return e ? {
|
|
62
|
+
...t,
|
|
63
|
+
[e]: n
|
|
64
|
+
} : {
|
|
65
|
+
...t,
|
|
66
|
+
...n
|
|
67
|
+
};
|
|
68
|
+
}, [
|
|
69
|
+
e,
|
|
70
|
+
t,
|
|
71
|
+
n,
|
|
72
|
+
r
|
|
73
|
+
]);
|
|
74
|
+
}
|
|
75
|
+
function Fn(e) {
|
|
76
|
+
let { children: t, theme: n, themeId: r } = e, i = me(Nn), a = An() || Nn, o = Pn(r, i, n), s = Pn(r, a, n, !0), c = (r ? o[r] : o).direction === "rtl", l = function(e) {
|
|
77
|
+
let t = me(), n = Te() || "", { modularCssLayers: r } = e, i = "mui.global, mui.components, mui.theme, mui.custom, mui.sx";
|
|
78
|
+
return i = r && t === null ? typeof r == "string" ? r.replace(/mui(?!\.)/g, i) : `@layer ${i};` : "", Me(() => {
|
|
79
|
+
let e = document.querySelector("head");
|
|
80
|
+
if (!e) return;
|
|
81
|
+
let t = e.firstChild;
|
|
82
|
+
if (i) {
|
|
83
|
+
if (t && t.hasAttribute?.("data-mui-layer-order") && t.getAttribute("data-mui-layer-order") === n) return;
|
|
84
|
+
let r = document.createElement("style");
|
|
85
|
+
r.setAttribute("data-mui-layer-order", n), r.textContent = i, e.prepend(r);
|
|
86
|
+
} else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove();
|
|
87
|
+
}, [i, n]), i ? (0, Z.jsx)(Fe, { styles: i }) : null;
|
|
88
|
+
}(o);
|
|
89
|
+
return (0, Z.jsx)(Mn, {
|
|
90
|
+
theme: s,
|
|
91
|
+
children: (0, Z.jsx)(fe.Provider, {
|
|
92
|
+
value: o,
|
|
93
|
+
children: (0, Z.jsx)(Ne, {
|
|
94
|
+
value: c,
|
|
95
|
+
children: (0, Z.jsxs)(je, {
|
|
96
|
+
value: r ? o[r].components : o.components,
|
|
97
|
+
children: [l, t]
|
|
98
|
+
})
|
|
99
|
+
})
|
|
100
|
+
})
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
var In = "mode", Ln = "color-scheme", Rn = "data-color-scheme";
|
|
104
|
+
({ ...X }).useSyncExternalStore;
|
|
105
|
+
function zn(e) {
|
|
106
|
+
return JSON.stringify(e).replace(/</g, "\\u003c").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
107
|
+
}
|
|
108
|
+
function Bn(e, t) {
|
|
109
|
+
let n = e.split("%s"), r = [];
|
|
110
|
+
for (let e = 0; e < n.length; e += 1) e > 0 && r.push(t), n[e] && r.push(zn(n[e]));
|
|
111
|
+
return r.join(" + ") || "\"\"";
|
|
112
|
+
}
|
|
113
|
+
function Vn() {}
|
|
114
|
+
var Hn = ({ key: e, storageWindow: t }) => (t || typeof window > "u" || (t = window), {
|
|
115
|
+
get(n) {
|
|
116
|
+
if (typeof window > "u") return;
|
|
117
|
+
if (!t) return n;
|
|
118
|
+
let r;
|
|
119
|
+
try {
|
|
120
|
+
r = t.localStorage.getItem(e);
|
|
121
|
+
} catch {}
|
|
122
|
+
return r || n;
|
|
123
|
+
},
|
|
124
|
+
set: (n) => {
|
|
125
|
+
if (t) try {
|
|
126
|
+
t.localStorage.setItem(e, n);
|
|
127
|
+
} catch {}
|
|
128
|
+
},
|
|
129
|
+
subscribe: (n) => {
|
|
130
|
+
if (!t) return Vn;
|
|
131
|
+
let r = (t) => {
|
|
132
|
+
let r = t.newValue;
|
|
133
|
+
t.key === e && n(r);
|
|
134
|
+
};
|
|
135
|
+
return t.addEventListener("storage", r), () => {
|
|
136
|
+
t.removeEventListener("storage", r);
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
function Un() {}
|
|
141
|
+
function Wn(e) {
|
|
142
|
+
if (typeof window < "u" && typeof window.matchMedia == "function" && e === "system") return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
143
|
+
}
|
|
144
|
+
function Gn(e, t) {
|
|
145
|
+
return e.mode === "light" || e.mode === "system" && e.systemMode === "light" ? t("light") : e.mode === "dark" || e.mode === "system" && e.systemMode === "dark" ? t("dark") : void 0;
|
|
146
|
+
}
|
|
147
|
+
function Kn(e) {
|
|
148
|
+
let { defaultMode: t = "light", defaultLightColorScheme: n, defaultDarkColorScheme: r, supportedColorSchemes: i = [], modeStorageKey: a = In, colorSchemeStorageKey: o = Ln, storageWindow: s = typeof window > "u" ? void 0 : window, storageManager: c = Hn, noSsr: l = !1 } = e, u = i.join(","), d = i.length > 1, f = X.useMemo(() => c?.({
|
|
149
|
+
key: a,
|
|
150
|
+
storageWindow: s
|
|
151
|
+
}), [
|
|
152
|
+
c,
|
|
153
|
+
a,
|
|
154
|
+
s
|
|
155
|
+
]), p = X.useMemo(() => c?.({
|
|
156
|
+
key: `${o}-light`,
|
|
157
|
+
storageWindow: s
|
|
158
|
+
}), [
|
|
159
|
+
c,
|
|
160
|
+
o,
|
|
161
|
+
s
|
|
162
|
+
]), m = X.useMemo(() => c?.({
|
|
163
|
+
key: `${o}-dark`,
|
|
164
|
+
storageWindow: s
|
|
165
|
+
}), [
|
|
166
|
+
c,
|
|
167
|
+
o,
|
|
168
|
+
s
|
|
169
|
+
]), [h, g] = X.useState(() => {
|
|
170
|
+
let e = f?.get(t) || t, i = p?.get(n) || n, a = m?.get(r) || r;
|
|
171
|
+
return {
|
|
172
|
+
mode: e,
|
|
173
|
+
systemMode: Wn(e),
|
|
174
|
+
lightColorScheme: i,
|
|
175
|
+
darkColorScheme: a
|
|
176
|
+
};
|
|
177
|
+
}), [_, v] = X.useState(l || !d);
|
|
178
|
+
X.useEffect(() => {
|
|
179
|
+
v(!0);
|
|
180
|
+
}, []);
|
|
181
|
+
let y = function(e) {
|
|
182
|
+
return Gn(e, (t) => t === "light" ? e.lightColorScheme : t === "dark" ? e.darkColorScheme : void 0);
|
|
183
|
+
}(h), b = X.useCallback((e) => {
|
|
184
|
+
g((n) => {
|
|
185
|
+
if (e === n.mode) return n;
|
|
186
|
+
let r = e ?? t;
|
|
187
|
+
return f?.set(r), {
|
|
188
|
+
...n,
|
|
189
|
+
mode: r,
|
|
190
|
+
systemMode: Wn(r)
|
|
191
|
+
};
|
|
192
|
+
});
|
|
193
|
+
}, [f, t]), x = X.useCallback((e) => {
|
|
194
|
+
e ? typeof e == "string" ? e && !u.includes(e) ? console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`) : g((t) => {
|
|
195
|
+
let n = { ...t };
|
|
196
|
+
return Gn(t, (t) => {
|
|
197
|
+
t === "light" && (p?.set(e), n.lightColorScheme = e), t === "dark" && (m?.set(e), n.darkColorScheme = e);
|
|
198
|
+
}), n;
|
|
199
|
+
}) : g((t) => {
|
|
200
|
+
let i = { ...t }, a = e.light === null ? n : e.light, o = e.dark === null ? r : e.dark;
|
|
201
|
+
return a && (u.includes(a) ? (i.lightColorScheme = a, p?.set(a)) : console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)), o && (u.includes(o) ? (i.darkColorScheme = o, m?.set(o)) : console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)), i;
|
|
202
|
+
}) : g((e) => (p?.set(n), m?.set(r), {
|
|
203
|
+
...e,
|
|
204
|
+
lightColorScheme: n,
|
|
205
|
+
darkColorScheme: r
|
|
206
|
+
}));
|
|
207
|
+
}, [
|
|
208
|
+
u,
|
|
209
|
+
p,
|
|
210
|
+
m,
|
|
211
|
+
n,
|
|
212
|
+
r
|
|
213
|
+
]), S = X.useCallback((e) => {
|
|
214
|
+
h.mode === "system" && g((t) => {
|
|
215
|
+
let n = e?.matches ? "dark" : "light";
|
|
216
|
+
return t.systemMode === n ? t : {
|
|
217
|
+
...t,
|
|
218
|
+
systemMode: n
|
|
219
|
+
};
|
|
220
|
+
});
|
|
221
|
+
}, [h.mode]), C = X.useRef(S);
|
|
222
|
+
return C.current = S, X.useEffect(() => {
|
|
223
|
+
if (typeof window.matchMedia != "function" || !d) return;
|
|
224
|
+
let e = (...e) => C.current(...e), t = window.matchMedia("(prefers-color-scheme: dark)");
|
|
225
|
+
return t.addListener(e), e(t), () => {
|
|
226
|
+
t.removeListener(e);
|
|
227
|
+
};
|
|
228
|
+
}, [d]), X.useEffect(() => {
|
|
229
|
+
if (d) {
|
|
230
|
+
let e = f?.subscribe((e) => {
|
|
231
|
+
e && ![
|
|
232
|
+
"light",
|
|
233
|
+
"dark",
|
|
234
|
+
"system"
|
|
235
|
+
].includes(e) || b(e || t);
|
|
236
|
+
}) || Un, n = p?.subscribe((e) => {
|
|
237
|
+
e && !u.match(e) || x({ light: e });
|
|
238
|
+
}) || Un, r = m?.subscribe((e) => {
|
|
239
|
+
e && !u.match(e) || x({ dark: e });
|
|
240
|
+
}) || Un;
|
|
241
|
+
return () => {
|
|
242
|
+
e(), n(), r();
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
}, [
|
|
246
|
+
x,
|
|
247
|
+
b,
|
|
248
|
+
u,
|
|
249
|
+
t,
|
|
250
|
+
s,
|
|
251
|
+
d,
|
|
252
|
+
f,
|
|
253
|
+
p,
|
|
254
|
+
m
|
|
255
|
+
]), {
|
|
256
|
+
...h,
|
|
257
|
+
mode: _ ? h.mode : void 0,
|
|
258
|
+
systemMode: _ ? h.systemMode : void 0,
|
|
259
|
+
colorScheme: _ ? y : void 0,
|
|
260
|
+
setMode: b,
|
|
261
|
+
setColorScheme: x
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
function qn({ theme: e, ...t }) {
|
|
265
|
+
let n = "$$material" in e ? e[be] : void 0;
|
|
266
|
+
return (0, Z.jsx)(Fn, {
|
|
267
|
+
...t,
|
|
268
|
+
themeId: n ? be : void 0,
|
|
269
|
+
theme: n || e
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
var { CssVarsProvider: Jn, useColorScheme: Yn, getInitColorSchemeScript: Xn } = function(e) {
|
|
273
|
+
let { themeId: t, theme: n = {}, modeStorageKey: r = In, colorSchemeStorageKey: i = Ln, disableTransitionOnChange: a = !1, defaultColorScheme: o, resolveTheme: s } = e, c = {
|
|
274
|
+
allColorSchemes: [],
|
|
275
|
+
colorScheme: void 0,
|
|
276
|
+
darkColorScheme: void 0,
|
|
277
|
+
lightColorScheme: void 0,
|
|
278
|
+
mode: void 0,
|
|
279
|
+
setColorScheme: () => {},
|
|
280
|
+
setMode: () => {},
|
|
281
|
+
systemMode: void 0
|
|
282
|
+
}, l = X.createContext(void 0), u = {}, d = {}, f = typeof o == "string" ? o : o.light, p = typeof o == "string" ? o : o.dark;
|
|
283
|
+
return {
|
|
284
|
+
CssVarsProvider: function(e) {
|
|
285
|
+
let { children: c, theme: f, modeStorageKey: p = r, colorSchemeStorageKey: m = i, disableTransitionOnChange: h = a, storageManager: g, storageWindow: _ = typeof window > "u" ? void 0 : window, documentNode: v = typeof document > "u" ? void 0 : document, colorSchemeNode: y = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: b = !1, disableStyleSheetGeneration: x = !1, defaultMode: S = "system", forceThemeRerender: C = !1, noSsr: w } = e, T = X.useRef(!1), ee = An(), E = X.useContext(l), te = !!E && !b, D = X.useMemo(() => f || (typeof n == "function" ? n() : n), [f]), ne = D[t], O = ne || D, { colorSchemes: k = u, components: re = d, cssVarPrefix: ie } = O, A = Object.keys(k).filter((e) => !!k[e]).join(","), j = X.useMemo(() => A.split(","), [A]), M = typeof o == "string" ? o : o.light, ae = typeof o == "string" ? o : o.dark, { mode: oe, setMode: se, systemMode: N, lightColorScheme: ce, darkColorScheme: le, colorScheme: ue, setColorScheme: de } = Kn({
|
|
286
|
+
supportedColorSchemes: j,
|
|
287
|
+
defaultLightColorScheme: M,
|
|
288
|
+
defaultDarkColorScheme: ae,
|
|
289
|
+
modeStorageKey: p,
|
|
290
|
+
colorSchemeStorageKey: m,
|
|
291
|
+
defaultMode: k[M] && k[ae] ? S : k[O.defaultColorScheme]?.palette?.mode || O.palette?.mode,
|
|
292
|
+
storageManager: g,
|
|
293
|
+
storageWindow: _,
|
|
294
|
+
noSsr: w
|
|
295
|
+
}), fe = oe, P = ue;
|
|
296
|
+
te && (fe = E.mode, P = E.colorScheme);
|
|
297
|
+
let pe = P || O.defaultColorScheme;
|
|
298
|
+
O.vars && !C && (pe = O.defaultColorScheme);
|
|
299
|
+
let me = X.useMemo(() => {
|
|
300
|
+
let e = O.generateThemeVars?.() || O.vars, t = {
|
|
301
|
+
...O,
|
|
302
|
+
components: re,
|
|
303
|
+
colorSchemes: k,
|
|
304
|
+
cssVarPrefix: ie,
|
|
305
|
+
vars: e
|
|
306
|
+
};
|
|
307
|
+
if (typeof t.generateSpacing == "function" && (t.spacing = t.generateSpacing()), pe) {
|
|
308
|
+
let e = k[pe];
|
|
309
|
+
e && typeof e == "object" && Object.keys(e).forEach((n) => {
|
|
310
|
+
e[n] && typeof e[n] == "object" ? t[n] = {
|
|
311
|
+
...t[n],
|
|
312
|
+
...e[n]
|
|
313
|
+
} : t[n] = e[n];
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
return s ? s(t) : t;
|
|
317
|
+
}, [
|
|
318
|
+
O,
|
|
319
|
+
pe,
|
|
320
|
+
re,
|
|
321
|
+
k,
|
|
322
|
+
ie
|
|
323
|
+
]), F = O.colorSchemeSelector;
|
|
324
|
+
Me(() => {
|
|
325
|
+
if (P && y && F && F !== "media") {
|
|
326
|
+
let e = F, t = F;
|
|
327
|
+
if (e === "class" && (t = ".%s"), e === "data" && (t = "[data-%s]"), e?.startsWith("data-") && !e.includes("%s") && (t = `[${e}="%s"]`), t.startsWith(".")) y.classList.remove(...j.map((e) => t.substring(1).replace("%s", e))), y.classList.add(t.substring(1).replace("%s", P));
|
|
328
|
+
else {
|
|
329
|
+
let e = t.replace("%s", P).match(/\[([^\]]+)\]/);
|
|
330
|
+
if (e) {
|
|
331
|
+
let [t, n] = e[1].split("=");
|
|
332
|
+
n || j.forEach((e) => {
|
|
333
|
+
y.removeAttribute(t.replace(P, e));
|
|
334
|
+
}), y.setAttribute(t, n ? n.replace(/"|'/g, "") : "");
|
|
335
|
+
} else y.setAttribute(t, P);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}, [
|
|
339
|
+
P,
|
|
340
|
+
F,
|
|
341
|
+
y,
|
|
342
|
+
j
|
|
343
|
+
]), X.useEffect(() => {
|
|
344
|
+
let e;
|
|
345
|
+
if (h && T.current && v) {
|
|
346
|
+
let t = v.createElement("style");
|
|
347
|
+
t.appendChild(v.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), v.head.appendChild(t), window.getComputedStyle(v.body), e = setTimeout(() => {
|
|
348
|
+
v.head.removeChild(t);
|
|
349
|
+
}, 1);
|
|
350
|
+
}
|
|
351
|
+
return () => {
|
|
352
|
+
clearTimeout(e);
|
|
353
|
+
};
|
|
354
|
+
}, [
|
|
355
|
+
P,
|
|
356
|
+
h,
|
|
357
|
+
v
|
|
358
|
+
]), X.useEffect(() => (T.current = !0, () => {
|
|
359
|
+
T.current = !1;
|
|
360
|
+
}), []);
|
|
361
|
+
let he = X.useMemo(() => ({
|
|
362
|
+
allColorSchemes: j,
|
|
363
|
+
colorScheme: P,
|
|
364
|
+
darkColorScheme: le,
|
|
365
|
+
lightColorScheme: ce,
|
|
366
|
+
mode: fe,
|
|
367
|
+
setColorScheme: de,
|
|
368
|
+
setMode: se,
|
|
369
|
+
systemMode: N
|
|
370
|
+
}), [
|
|
371
|
+
j,
|
|
372
|
+
P,
|
|
373
|
+
le,
|
|
374
|
+
ce,
|
|
375
|
+
fe,
|
|
376
|
+
de,
|
|
377
|
+
se,
|
|
378
|
+
N,
|
|
379
|
+
me.colorSchemeSelector
|
|
380
|
+
]), ge = !0;
|
|
381
|
+
(x || !1 === O.cssVariables || te && ee?.cssVarPrefix === ie) && (ge = !1);
|
|
382
|
+
let _e = (0, Z.jsxs)(X.Fragment, { children: [(0, Z.jsx)(Fn, {
|
|
383
|
+
themeId: ne ? t : void 0,
|
|
384
|
+
theme: me,
|
|
385
|
+
children: c
|
|
386
|
+
}), ge && (0, Z.jsx)(Pe, { styles: me.generateStyleSheets?.() || [] })] });
|
|
387
|
+
return te ? _e : (0, Z.jsx)(l.Provider, {
|
|
388
|
+
value: he,
|
|
389
|
+
children: _e
|
|
390
|
+
});
|
|
391
|
+
},
|
|
392
|
+
useColorScheme: () => X.useContext(l) || c,
|
|
393
|
+
getInitColorSchemeScript: (e) => function(e) {
|
|
394
|
+
let { defaultMode: t = "system", defaultLightColorScheme: n = "light", defaultDarkColorScheme: r = "dark", modeStorageKey: i = In, colorSchemeStorageKey: a = Ln, attribute: o = Rn, colorSchemeNode: s = "document.documentElement", nonce: c } = e || {}, l = "", u = o;
|
|
395
|
+
if (o === "class" && (u = ".%s"), o === "data" && (u = "[data-%s]"), u.startsWith(".")) {
|
|
396
|
+
let e = u.substring(1);
|
|
397
|
+
l += `${s}.classList.remove(${Bn(e, "light")}, ${Bn(e, "dark")});\n ${s}.classList.add(${Bn(e, "colorScheme")});`;
|
|
398
|
+
}
|
|
399
|
+
let d = u.match(/\[([^[\]]+)\]/);
|
|
400
|
+
if (d) {
|
|
401
|
+
let e = d[1].indexOf("="), t = e === -1 ? d[1] : d[1].slice(0, e), n = e === -1 ? void 0 : d[1].slice(e + 1);
|
|
402
|
+
n || (l += `${s}.removeAttribute(${Bn(t, "light")});\n ${s}.removeAttribute(${Bn(t, "dark")});`);
|
|
403
|
+
let r = n ? Bn(n.replace(/^(['"])(.*)\1$/, "$2"), "colorScheme") : "\"\"";
|
|
404
|
+
l += `\n ${s}.setAttribute(${Bn(t, "colorScheme")}, ${r});`;
|
|
405
|
+
} else u.startsWith(".") || (l += `${s}.setAttribute(${zn(u)}, colorScheme);`);
|
|
406
|
+
return (0, Z.jsx)("script", {
|
|
407
|
+
suppressHydrationWarning: !0,
|
|
408
|
+
nonce: typeof window > "u" ? c : "",
|
|
409
|
+
dangerouslySetInnerHTML: { __html: `(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem(${zn(i)}) || ${zn(t)};\n const dark = localStorage.getItem(${zn(`${a}-dark`)}) || ${zn(r)};\n const light = localStorage.getItem(${zn(`${a}-light`)}) || ${zn(n)};\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${l}\n }\n} catch(e){}})();` }
|
|
410
|
+
}, "mui-color-scheme-init");
|
|
411
|
+
}({
|
|
412
|
+
colorSchemeStorageKey: i,
|
|
413
|
+
defaultLightColorScheme: f,
|
|
414
|
+
defaultDarkColorScheme: p,
|
|
415
|
+
modeStorageKey: r,
|
|
416
|
+
...e
|
|
417
|
+
})
|
|
418
|
+
};
|
|
419
|
+
}({
|
|
420
|
+
themeId: be,
|
|
421
|
+
theme: () => ge({ cssVariables: !0 }),
|
|
422
|
+
colorSchemeStorageKey: "mui-color-scheme",
|
|
423
|
+
modeStorageKey: "mui-mode",
|
|
424
|
+
defaultColorScheme: {
|
|
425
|
+
light: "light",
|
|
426
|
+
dark: "dark"
|
|
427
|
+
},
|
|
428
|
+
resolveTheme: (e) => {
|
|
429
|
+
let t = {
|
|
430
|
+
...e,
|
|
431
|
+
typography: ve(e.palette, e.typography)
|
|
432
|
+
};
|
|
433
|
+
return t.unstable_sx = function(e) {
|
|
434
|
+
return P({
|
|
435
|
+
sx: e,
|
|
436
|
+
theme: this
|
|
437
|
+
});
|
|
438
|
+
}, t;
|
|
439
|
+
}
|
|
440
|
+
}), Zn = Jn;
|
|
441
|
+
function Qn({ theme: e, ...t }) {
|
|
442
|
+
let n = X.useMemo(() => {
|
|
443
|
+
if (typeof e == "function") return e;
|
|
444
|
+
let t = "$$material" in e ? e[be] : e;
|
|
445
|
+
return "colorSchemes" in t ? null : "vars" in t ? e : {
|
|
446
|
+
...e,
|
|
447
|
+
vars: null
|
|
448
|
+
};
|
|
449
|
+
}, [e]);
|
|
450
|
+
return n ? (0, Z.jsx)(qn, {
|
|
451
|
+
theme: n,
|
|
452
|
+
...t
|
|
453
|
+
}) : (0, Z.jsx)(Zn, {
|
|
454
|
+
theme: e,
|
|
455
|
+
...t
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
function $n(e) {
|
|
459
|
+
return pe("MuiCard", e);
|
|
460
|
+
}
|
|
461
|
+
he("MuiCard", ["root"]);
|
|
462
|
+
var er = ke(xe, {
|
|
463
|
+
name: "MuiCard",
|
|
464
|
+
slot: "Root"
|
|
465
|
+
})({ overflow: "hidden" }), tr = X.forwardRef(function(e, t) {
|
|
466
|
+
let n = Ae({
|
|
467
|
+
props: e,
|
|
468
|
+
name: "MuiCard"
|
|
469
|
+
}), { className: r, raised: i = !1, ...a } = n, o = {
|
|
470
|
+
...n,
|
|
471
|
+
raised: i
|
|
472
|
+
}, s = ((e) => {
|
|
473
|
+
let { classes: t } = e;
|
|
474
|
+
return De({ root: ["root"] }, $n, t);
|
|
475
|
+
})(o);
|
|
476
|
+
return (0, Z.jsx)(er, {
|
|
477
|
+
className: ye(s.root, r),
|
|
478
|
+
elevation: i ? 8 : void 0,
|
|
479
|
+
ref: t,
|
|
480
|
+
ownerState: o,
|
|
481
|
+
...a
|
|
482
|
+
});
|
|
483
|
+
});
|
|
484
|
+
function nr(e) {
|
|
485
|
+
return pe("MuiCardActions", e);
|
|
486
|
+
}
|
|
487
|
+
he("MuiCardActions", ["root", "spacing"]);
|
|
488
|
+
var rr = ke("div", {
|
|
489
|
+
name: "MuiCardActions",
|
|
490
|
+
slot: "Root",
|
|
491
|
+
overridesResolver: (e, t) => {
|
|
492
|
+
let { ownerState: n } = e;
|
|
493
|
+
return [t.root, !n.disableSpacing && t.spacing];
|
|
494
|
+
}
|
|
495
|
+
})({
|
|
496
|
+
display: "flex",
|
|
497
|
+
alignItems: "center",
|
|
498
|
+
padding: 8,
|
|
499
|
+
variants: [{
|
|
500
|
+
props: { disableSpacing: !1 },
|
|
501
|
+
style: { "& > :not(style) ~ :not(style)": { marginLeft: 8 } }
|
|
502
|
+
}]
|
|
503
|
+
}), ir = X.forwardRef(function(e, t) {
|
|
504
|
+
let n = Ae({
|
|
505
|
+
props: e,
|
|
506
|
+
name: "MuiCardActions"
|
|
507
|
+
}), { disableSpacing: r = !1, className: i, ...a } = n, o = {
|
|
508
|
+
...n,
|
|
509
|
+
disableSpacing: r
|
|
510
|
+
}, s = ((e) => {
|
|
511
|
+
let { classes: t, disableSpacing: n } = e;
|
|
512
|
+
return De({ root: ["root", !n && "spacing"] }, nr, t);
|
|
513
|
+
})(o);
|
|
514
|
+
return (0, Z.jsx)(rr, {
|
|
515
|
+
className: ye(s.root, i),
|
|
516
|
+
ownerState: o,
|
|
517
|
+
ref: t,
|
|
518
|
+
...a
|
|
519
|
+
});
|
|
520
|
+
}), ar = typeof Ie({}) == "function", or = (e, t) => ({
|
|
521
|
+
WebkitFontSmoothing: "antialiased",
|
|
522
|
+
MozOsxFontSmoothing: "grayscale",
|
|
523
|
+
boxSizing: "border-box",
|
|
524
|
+
WebkitTextSizeAdjust: "100%",
|
|
525
|
+
...t && !e.vars && { colorScheme: e.palette.mode }
|
|
526
|
+
}), sr = (e) => ({
|
|
527
|
+
color: (e.vars || e).palette.text.primary,
|
|
528
|
+
...e.typography.body1,
|
|
529
|
+
backgroundColor: (e.vars || e).palette.background.default,
|
|
530
|
+
"@media print": { backgroundColor: (e.vars || e).palette.common.white }
|
|
531
|
+
}), cr = (e, t = !1) => {
|
|
532
|
+
let n = {};
|
|
533
|
+
t && e.colorSchemes && typeof e.getColorSchemeSelector == "function" && Object.entries(e.colorSchemes).forEach(([t, r]) => {
|
|
534
|
+
let i = e.getColorSchemeSelector(t);
|
|
535
|
+
i.startsWith("@") ? n[i] = { ":root": { colorScheme: r.palette?.mode } } : n[i.replace(/\s*&/, "")] = { colorScheme: r.palette?.mode };
|
|
536
|
+
});
|
|
537
|
+
let r = {
|
|
538
|
+
html: or(e, t),
|
|
539
|
+
"*, *::before, *::after": { boxSizing: "inherit" },
|
|
540
|
+
"strong, b": { fontWeight: e.typography.fontWeightBold },
|
|
541
|
+
body: {
|
|
542
|
+
margin: 0,
|
|
543
|
+
...sr(e),
|
|
544
|
+
"&::backdrop": { backgroundColor: (e.vars || e).palette.background.default }
|
|
545
|
+
},
|
|
546
|
+
...n
|
|
547
|
+
}, i = e.components?.MuiCssBaseline?.styleOverrides;
|
|
548
|
+
return i && (r = [r, i]), r;
|
|
549
|
+
}, lr = "mui-ecs", ur = Ie(ar ? ({ theme: e, enableColorScheme: t }) => cr(e, t) : ({ theme: e }) => ((e) => {
|
|
550
|
+
let t = cr(e, !1), n = Array.isArray(t) ? t[0] : t;
|
|
551
|
+
return !e.vars && n && (n.html[`:root:has(${lr})`] = { colorScheme: e.palette.mode }), e.colorSchemes && Object.entries(e.colorSchemes).forEach(([t, r]) => {
|
|
552
|
+
let i = e.getColorSchemeSelector(t);
|
|
553
|
+
i.startsWith("@") ? n[i] = { [`:root:not(:has(.${lr}))`]: { colorScheme: r.palette?.mode } } : n[i.replace(/\s*&/, "")] = { [`&:not(:has(.${lr}))`]: { colorScheme: r.palette?.mode } };
|
|
554
|
+
}), t;
|
|
555
|
+
})(e));
|
|
556
|
+
function dr(e) {
|
|
557
|
+
let { children: t, enableColorScheme: n = !1 } = Ae({
|
|
558
|
+
props: e,
|
|
559
|
+
name: "MuiCssBaseline"
|
|
560
|
+
});
|
|
561
|
+
return (0, Z.jsxs)(X.Fragment, { children: [
|
|
562
|
+
ar && (0, Z.jsx)(ur, { enableColorScheme: n }),
|
|
563
|
+
!ar && !n && (0, Z.jsx)("span", {
|
|
564
|
+
className: lr,
|
|
565
|
+
style: { display: "none" }
|
|
566
|
+
}),
|
|
567
|
+
t
|
|
568
|
+
] });
|
|
569
|
+
}
|
|
570
|
+
var fr = On(t(), 1), pr = (0, X.memo)((e) => {
|
|
571
|
+
let { variant: t = "format", children: n, sx: r, ...i } = e;
|
|
572
|
+
return (0, Z.jsx)(I, {
|
|
573
|
+
className: `sxl-cf-rule-section sxl-cf-rule-section-${t}`,
|
|
574
|
+
sx: {
|
|
575
|
+
display: "flex",
|
|
576
|
+
flexDirection: "column",
|
|
577
|
+
gap: 1,
|
|
578
|
+
p: 2,
|
|
579
|
+
border: 1,
|
|
580
|
+
borderColor: "divider",
|
|
581
|
+
borderRadius: 1,
|
|
582
|
+
...t === "config" ? { backgroundColor: "action.hover" } : null,
|
|
583
|
+
...r
|
|
584
|
+
},
|
|
585
|
+
...i,
|
|
586
|
+
children: n
|
|
587
|
+
});
|
|
588
|
+
});
|
|
589
|
+
pr.displayName = "RuleSection";
|
|
590
|
+
var mr = new m("transparent"), hr = {
|
|
591
|
+
lightRedFillDarkRedText: l("conditionalFormat.preset.lightRedFillDarkRedText"),
|
|
592
|
+
yellowFillDarkYellowText: l("conditionalFormat.preset.yellowFillDarkYellowText"),
|
|
593
|
+
greenFillDarkGreenText: l("conditionalFormat.preset.greenFillDarkGreenText"),
|
|
594
|
+
lightRedFill: l("conditionalFormat.preset.lightRedFill"),
|
|
595
|
+
redText: l("conditionalFormat.preset.redText"),
|
|
596
|
+
redBorder: l("conditionalFormat.preset.redBorder")
|
|
597
|
+
}, gr = (e) => e ? typeof e == "string" ? e : e.type === p.Type.None ? null : e.color ?? e.foreground ?? null : null, _r = (e, t) => e === "auto" ? null : Jt(e, t), vr = (0, X.memo)((e) => {
|
|
598
|
+
let { format: t, onFormatChange: n, readOnly: r, ...i } = e, a = M(), { workbook: o, schemeLookup: s, themeKey: c, darkMode: u, propsColorPanel: d } = Y(), f = t?.font ?? null, m = (f?.weight ?? 400) >= 600, h = f?.style === g.Style.Italic, _ = !!f?.underline && f.underline !== g.UnderlineStyle.None, v = !!f?.strike, y = (e) => {
|
|
599
|
+
let r = { ...f };
|
|
600
|
+
for (let [t, n] of Object.entries(e)) n === void 0 ? delete r[t] : r[t] = n;
|
|
601
|
+
let i = { ...t };
|
|
602
|
+
Object.keys(r).length === 0 ? delete i.font : i.font = r, n(Object.keys(i).length === 0 ? null : i);
|
|
603
|
+
}, x = (0, X.useMemo)(() => o?.getStyles().getNormal().getFont().getColor(), [o, c]), S = (0, X.useMemo)(() => _r(f?.color, o), [
|
|
604
|
+
f?.color,
|
|
605
|
+
o,
|
|
606
|
+
c
|
|
607
|
+
]), C = (0, X.useMemo)(() => _r(gr(t?.fill), o), [
|
|
608
|
+
t?.fill,
|
|
609
|
+
o,
|
|
610
|
+
c
|
|
611
|
+
]), w = {
|
|
612
|
+
padding: "4px",
|
|
613
|
+
border: "none",
|
|
614
|
+
borderRadius: 1
|
|
615
|
+
};
|
|
616
|
+
return (0, Z.jsxs)(pr, {
|
|
617
|
+
...i,
|
|
618
|
+
children: [(0, Z.jsxs)(I, {
|
|
619
|
+
sx: {
|
|
620
|
+
display: "flex",
|
|
621
|
+
alignItems: "flex-start",
|
|
622
|
+
gap: 1
|
|
623
|
+
},
|
|
624
|
+
children: [(0, Z.jsx)(I, {
|
|
625
|
+
sx: {
|
|
626
|
+
flex: "1 1 auto",
|
|
627
|
+
minWidth: 0,
|
|
628
|
+
display: "flex",
|
|
629
|
+
gap: .5,
|
|
630
|
+
flexWrap: "wrap"
|
|
631
|
+
},
|
|
632
|
+
children: vt.map((e, t) => {
|
|
633
|
+
let i = _r(gr(e.style.fill), o), s = _r(e.style.font?.color, o), c = e.style.borders ? _r(Object.values(e.style.borders)[0]?.color, o) : null;
|
|
634
|
+
return (0, Z.jsx)(J, {
|
|
635
|
+
sheet: !0,
|
|
636
|
+
title: a(hr[e.key] ?? e.key),
|
|
637
|
+
disabled: r,
|
|
638
|
+
onClick: () => n(structuredClone(e.style)),
|
|
639
|
+
sx: {
|
|
640
|
+
backgroundColor: i?.toCSS("adaptive") ?? void 0,
|
|
641
|
+
color: s?.toCSS("adaptive") ?? void 0,
|
|
642
|
+
outline: c ? `1px solid ${c.toCSS("adaptive")}` : void 0,
|
|
643
|
+
outlineOffset: "-3px"
|
|
644
|
+
},
|
|
645
|
+
children: "Aa"
|
|
646
|
+
}, t);
|
|
647
|
+
})
|
|
648
|
+
}), (0, Z.jsx)(J, {
|
|
649
|
+
title: a("conditionalFormat.clearStyle"),
|
|
650
|
+
disabled: r || !t,
|
|
651
|
+
onClick: () => n(null),
|
|
652
|
+
sx: {
|
|
653
|
+
color: "text.secondary",
|
|
654
|
+
"&:disabled": { opacity: .4 }
|
|
655
|
+
},
|
|
656
|
+
children: (0, Z.jsx)(b, {
|
|
657
|
+
iconKey: "ClearFormats",
|
|
658
|
+
size: 16
|
|
659
|
+
})
|
|
660
|
+
})]
|
|
661
|
+
}), (0, Z.jsxs)(I, {
|
|
662
|
+
sx: {
|
|
663
|
+
display: "flex",
|
|
664
|
+
alignItems: "center",
|
|
665
|
+
gap: .25
|
|
666
|
+
},
|
|
667
|
+
children: [
|
|
668
|
+
(0, Z.jsx)(q, {
|
|
669
|
+
value: "bold",
|
|
670
|
+
size: "small",
|
|
671
|
+
sx: w,
|
|
672
|
+
selected: m,
|
|
673
|
+
disabled: r,
|
|
674
|
+
onChange: () => y({ weight: m ? void 0 : 700 }),
|
|
675
|
+
children: (0, Z.jsx)(b, { iconKey: "TextBold" })
|
|
676
|
+
}),
|
|
677
|
+
(0, Z.jsx)(q, {
|
|
678
|
+
value: "italic",
|
|
679
|
+
size: "small",
|
|
680
|
+
sx: w,
|
|
681
|
+
selected: h,
|
|
682
|
+
disabled: r,
|
|
683
|
+
onChange: () => y({ style: h ? void 0 : g.Style.Italic }),
|
|
684
|
+
children: (0, Z.jsx)(b, { iconKey: "TextItalic" })
|
|
685
|
+
}),
|
|
686
|
+
(0, Z.jsx)(q, {
|
|
687
|
+
value: "underline",
|
|
688
|
+
size: "small",
|
|
689
|
+
sx: w,
|
|
690
|
+
selected: _,
|
|
691
|
+
disabled: r,
|
|
692
|
+
onChange: () => y({ underline: _ ? void 0 : g.UnderlineStyle.Single }),
|
|
693
|
+
children: (0, Z.jsx)(b, { iconKey: "TextUnderline" })
|
|
694
|
+
}),
|
|
695
|
+
(0, Z.jsx)(q, {
|
|
696
|
+
value: "strike",
|
|
697
|
+
size: "small",
|
|
698
|
+
sx: w,
|
|
699
|
+
selected: v,
|
|
700
|
+
disabled: r,
|
|
701
|
+
onChange: () => y({ strike: !v || void 0 }),
|
|
702
|
+
children: (0, Z.jsx)(b, { iconKey: "TextStrike" })
|
|
703
|
+
}),
|
|
704
|
+
o && (0, Z.jsx)(Ft, {
|
|
705
|
+
tooltip: a("conditionalFormat.border"),
|
|
706
|
+
selectedBorder: t?.borders,
|
|
707
|
+
createBorder: (e) => o.getStyles().getNormal().createStyle({ borders: e }).getBorders(),
|
|
708
|
+
schemeLookup: s,
|
|
709
|
+
autoColor: x,
|
|
710
|
+
darkMode: u,
|
|
711
|
+
disabled: r,
|
|
712
|
+
onSelectBorder: (e) => ((e) => {
|
|
713
|
+
let r = { ...t };
|
|
714
|
+
e && Object.keys(e).length !== 0 ? r.borders = e : delete r.borders, n(Object.keys(r).length === 0 ? null : r);
|
|
715
|
+
})(e)
|
|
716
|
+
}),
|
|
717
|
+
(0, Z.jsx)(K, {
|
|
718
|
+
icon: "fill.colored",
|
|
719
|
+
tooltip: a("conditionalFormat.fillColor"),
|
|
720
|
+
selectedColor: C,
|
|
721
|
+
disabled: r,
|
|
722
|
+
onSelectColor: (e) => ((e) => {
|
|
723
|
+
let r = { ...t };
|
|
724
|
+
e ? r.fill = {
|
|
725
|
+
type: p.Type.Solid,
|
|
726
|
+
color: e.toString()
|
|
727
|
+
} : delete r.fill, n(Object.keys(r).length === 0 ? null : r);
|
|
728
|
+
})(e),
|
|
729
|
+
darkMode: u,
|
|
730
|
+
propsPanel: {
|
|
731
|
+
disableAlpha: !0,
|
|
732
|
+
autoColor: mr,
|
|
733
|
+
autoColorLabelKey: l("color.noFill"),
|
|
734
|
+
autoColorPosition: Pt.End,
|
|
735
|
+
...d
|
|
736
|
+
}
|
|
737
|
+
}),
|
|
738
|
+
(0, Z.jsx)(K, {
|
|
739
|
+
icon: "text.colored",
|
|
740
|
+
tooltip: a("conditionalFormat.fontColor"),
|
|
741
|
+
selectedColor: S,
|
|
742
|
+
disabled: r,
|
|
743
|
+
onSelectColor: (e) => y({ color: e ? e.toString() : void 0 }),
|
|
744
|
+
darkMode: u,
|
|
745
|
+
propsPanel: {
|
|
746
|
+
disableAlpha: !0,
|
|
747
|
+
autoColor: x,
|
|
748
|
+
...d
|
|
749
|
+
}
|
|
750
|
+
})
|
|
751
|
+
]
|
|
752
|
+
})]
|
|
753
|
+
});
|
|
754
|
+
});
|
|
755
|
+
vr.displayName = "ConditionalFormatStylePicker";
|
|
756
|
+
var yr = {
|
|
757
|
+
[y.ColorStopType.AutoMin]: l("conditionalFormat.stopType.autoMin"),
|
|
758
|
+
[y.ColorStopType.AutoMax]: l("conditionalFormat.stopType.autoMax"),
|
|
759
|
+
[y.ColorStopType.Min]: l("conditionalFormat.stopType.min"),
|
|
760
|
+
[y.ColorStopType.Max]: l("conditionalFormat.stopType.max"),
|
|
761
|
+
[y.ColorStopType.Num]: l("conditionalFormat.stopType.num"),
|
|
762
|
+
[y.ColorStopType.Percent]: l("conditionalFormat.stopType.percent"),
|
|
763
|
+
[y.ColorStopType.Percentile]: l("conditionalFormat.stopType.percentile"),
|
|
764
|
+
[y.ColorStopType.Formula]: l("conditionalFormat.stopType.formula")
|
|
765
|
+
}, br = /* @__PURE__ */ new Set([
|
|
766
|
+
y.ColorStopType.AutoMin,
|
|
767
|
+
y.ColorStopType.AutoMax,
|
|
768
|
+
y.ColorStopType.Min,
|
|
769
|
+
y.ColorStopType.Max
|
|
770
|
+
]), xr = (0, X.memo)((e) => {
|
|
771
|
+
let { label: t, stop: n, onStopChange: r, allowedTypes: i, showColor: a = !1, leading: o, showExclusive: s = !1, readOnly: c, ...l } = e, u = M(), { darkMode: d, toColor: f, propsColorPanel: p } = Y(), m = sn(), h = n.type ?? y.ColorStopType.Num, g = !br.has(h), _ = c || !g, v = h === y.ColorStopType.Formula, b = n.value?.isIFormula ? n.value : null, x = n.color, S = a ? f(x) : null;
|
|
772
|
+
return (0, Z.jsxs)(I, {
|
|
773
|
+
sx: {
|
|
774
|
+
display: "flex",
|
|
775
|
+
alignItems: "center",
|
|
776
|
+
gap: .5
|
|
777
|
+
},
|
|
778
|
+
...l,
|
|
779
|
+
children: [
|
|
780
|
+
t !== void 0 && (0, Z.jsx)(R, {
|
|
781
|
+
variant: "caption",
|
|
782
|
+
sx: {
|
|
783
|
+
color: "text.secondary",
|
|
784
|
+
flex: "0 0 62px",
|
|
785
|
+
minWidth: 0,
|
|
786
|
+
overflow: "hidden",
|
|
787
|
+
textOverflow: "ellipsis"
|
|
788
|
+
},
|
|
789
|
+
children: t
|
|
790
|
+
}),
|
|
791
|
+
o,
|
|
792
|
+
a && (0, Z.jsx)(K, {
|
|
793
|
+
tooltip: u("conditionalFormat.stopColor"),
|
|
794
|
+
selectedColor: S,
|
|
795
|
+
disabled: c,
|
|
796
|
+
onSelectColor: (e) => {
|
|
797
|
+
e && r({
|
|
798
|
+
...n,
|
|
799
|
+
color: e.toString()
|
|
800
|
+
});
|
|
801
|
+
},
|
|
802
|
+
darkMode: d,
|
|
803
|
+
propsPanel: {
|
|
804
|
+
disableAlpha: !0,
|
|
805
|
+
...p
|
|
806
|
+
}
|
|
807
|
+
}),
|
|
808
|
+
s && (0, Z.jsxs)(Re, {
|
|
809
|
+
size: "small",
|
|
810
|
+
value: n.exclusive ? "gt" : "gte",
|
|
811
|
+
disabled: c,
|
|
812
|
+
onChange: (e) => {
|
|
813
|
+
let t = { ...n };
|
|
814
|
+
e.target.value === "gt" ? t.exclusive = !0 : delete t.exclusive, r(t);
|
|
815
|
+
},
|
|
816
|
+
sx: {
|
|
817
|
+
flex: "0 0 auto",
|
|
818
|
+
backgroundColor: "background.paper"
|
|
819
|
+
},
|
|
820
|
+
children: [(0, Z.jsx)(U, {
|
|
821
|
+
value: "gte",
|
|
822
|
+
children: ">="
|
|
823
|
+
}), (0, Z.jsx)(U, {
|
|
824
|
+
value: "gt",
|
|
825
|
+
children: ">"
|
|
826
|
+
})]
|
|
827
|
+
}),
|
|
828
|
+
(0, Z.jsx)(Re, {
|
|
829
|
+
size: "small",
|
|
830
|
+
value: h,
|
|
831
|
+
disabled: c,
|
|
832
|
+
onChange: (e) => ((e) => {
|
|
833
|
+
let t = {
|
|
834
|
+
...n,
|
|
835
|
+
type: e
|
|
836
|
+
};
|
|
837
|
+
if (br.has(e)) delete t.value;
|
|
838
|
+
else if (t.value === void 0) t.value = e === y.ColorStopType.Formula ? "" : 0;
|
|
839
|
+
else if (e !== y.ColorStopType.Formula && typeof t.value != "number") {
|
|
840
|
+
let e = typeof t.value == "string" ? Number(t.value) : NaN;
|
|
841
|
+
t.value = Number.isFinite(e) ? e : 0;
|
|
842
|
+
}
|
|
843
|
+
r(t);
|
|
844
|
+
})(e.target.value),
|
|
845
|
+
sx: {
|
|
846
|
+
flex: "1 1 40%",
|
|
847
|
+
minWidth: 0,
|
|
848
|
+
backgroundColor: "background.paper"
|
|
849
|
+
},
|
|
850
|
+
children: i.map((e) => (0, Z.jsx)(U, {
|
|
851
|
+
value: e,
|
|
852
|
+
children: u(yr[e])
|
|
853
|
+
}, e))
|
|
854
|
+
}),
|
|
855
|
+
v ? (0, Z.jsx)(Nt, {
|
|
856
|
+
size: "small",
|
|
857
|
+
home: m.home,
|
|
858
|
+
value: b ? m.display(b) : `${n.value ?? ""}`,
|
|
859
|
+
onChangeText: (e) => {
|
|
860
|
+
r({
|
|
861
|
+
...n,
|
|
862
|
+
value: e.trim().length > 0 ? m.compile(e) : e
|
|
863
|
+
});
|
|
864
|
+
},
|
|
865
|
+
placeholder: u("conditionalFormat.enterFormula"),
|
|
866
|
+
disabled: _,
|
|
867
|
+
equals: "bare",
|
|
868
|
+
pickAs: "absolute",
|
|
869
|
+
label: null,
|
|
870
|
+
showError: !1,
|
|
871
|
+
helperText: null,
|
|
872
|
+
sx: {
|
|
873
|
+
flex: "1 1 30%",
|
|
874
|
+
minWidth: 0,
|
|
875
|
+
"& .MuiInputBase-root": { backgroundColor: _ ? "action.disabledBackground" : "background.paper" }
|
|
876
|
+
}
|
|
877
|
+
}) : (0, Z.jsx)(B, {
|
|
878
|
+
size: "small",
|
|
879
|
+
type: "number",
|
|
880
|
+
placeholder: g ? void 0 : u("conditionalFormat.stopFromData"),
|
|
881
|
+
value: g ? `${n.value ?? ""}` : "",
|
|
882
|
+
disabled: _,
|
|
883
|
+
onChange: (e) => {
|
|
884
|
+
let t = e.target.value;
|
|
885
|
+
r({
|
|
886
|
+
...n,
|
|
887
|
+
value: t === "" ? 0 : Number(t)
|
|
888
|
+
});
|
|
889
|
+
},
|
|
890
|
+
sx: {
|
|
891
|
+
flex: "1 1 30%",
|
|
892
|
+
minWidth: 0,
|
|
893
|
+
cursor: _ ? "not-allowed" : void 0
|
|
894
|
+
},
|
|
895
|
+
slotProps: { input: { sx: {
|
|
896
|
+
backgroundColor: _ ? "action.disabledBackground" : "background.paper",
|
|
897
|
+
cursor: _ ? "not-allowed" : void 0
|
|
898
|
+
} } }
|
|
899
|
+
})
|
|
900
|
+
]
|
|
901
|
+
});
|
|
902
|
+
});
|
|
903
|
+
xr.displayName = "ScaleStopRow";
|
|
904
|
+
var Sr = [
|
|
905
|
+
y.ColorStopType.Min,
|
|
906
|
+
y.ColorStopType.Max,
|
|
907
|
+
y.ColorStopType.Num,
|
|
908
|
+
y.ColorStopType.Percent,
|
|
909
|
+
y.ColorStopType.Percentile,
|
|
910
|
+
y.ColorStopType.Formula
|
|
911
|
+
], Cr = (0, X.memo)((e) => {
|
|
912
|
+
let { scale: t, onScaleChange: n, readOnly: r, ...i } = e, a = M(), { workbook: o, toColor: s } = Y(), c = t.stops ?? [], u = c.length === 2 ? [l("conditionalFormat.stop.minimum"), l("conditionalFormat.stop.maximum")] : [
|
|
913
|
+
l("conditionalFormat.stop.minimum"),
|
|
914
|
+
l("conditionalFormat.stop.midpoint"),
|
|
915
|
+
l("conditionalFormat.stop.maximum")
|
|
916
|
+
];
|
|
917
|
+
return (0, Z.jsxs)(I, {
|
|
918
|
+
sx: {
|
|
919
|
+
display: "flex",
|
|
920
|
+
flexDirection: "column",
|
|
921
|
+
gap: 1
|
|
922
|
+
},
|
|
923
|
+
...i,
|
|
924
|
+
children: [(0, Z.jsx)(pr, { children: (0, Z.jsxs)(I, {
|
|
925
|
+
sx: {
|
|
926
|
+
display: "flex",
|
|
927
|
+
alignItems: "flex-start",
|
|
928
|
+
gap: 1
|
|
929
|
+
},
|
|
930
|
+
children: [(0, Z.jsx)(I, {
|
|
931
|
+
sx: {
|
|
932
|
+
flex: "1 1 auto",
|
|
933
|
+
minWidth: 0,
|
|
934
|
+
display: "flex",
|
|
935
|
+
gap: .5,
|
|
936
|
+
flexWrap: "wrap"
|
|
937
|
+
},
|
|
938
|
+
children: kt.filter((e) => e.stops.length === (c.length === 2 ? 2 : 3)).map((e, t) => (0, Z.jsx)(J, {
|
|
939
|
+
sheet: !0,
|
|
940
|
+
disabled: r,
|
|
941
|
+
onClick: () => n(structuredClone(e)),
|
|
942
|
+
children: (0, Z.jsx)(tn, { rows: mn(e.stops ?? [], Tn, o) })
|
|
943
|
+
}, t))
|
|
944
|
+
}), (0, Z.jsxs)(Yt, {
|
|
945
|
+
exclusive: !0,
|
|
946
|
+
size: "small",
|
|
947
|
+
value: c.length === 2 ? 2 : 3,
|
|
948
|
+
disabled: r,
|
|
949
|
+
onChange: (e, r) => {
|
|
950
|
+
r && ((e) => {
|
|
951
|
+
if (e === c.length || e !== 2 && e !== 3) return;
|
|
952
|
+
let r = c.slice();
|
|
953
|
+
if (e === 3) {
|
|
954
|
+
let e = "#FFEB84", t = s(c[0]?.color ?? e)?.toRGBA(), n = s(c[c.length - 1]?.color ?? e)?.toRGBA();
|
|
955
|
+
if (t && n) {
|
|
956
|
+
let r = (e) => Math.round(e).toString(16).padStart(2, "0").toUpperCase();
|
|
957
|
+
e = `#${r((t.red + n.red) / 2)}${r((t.green + n.green) / 2)}${r((t.blue + n.blue) / 2)}`;
|
|
958
|
+
}
|
|
959
|
+
r.splice(1, 0, {
|
|
960
|
+
type: y.ColorStopType.Percentile,
|
|
961
|
+
value: 50,
|
|
962
|
+
color: e
|
|
963
|
+
});
|
|
964
|
+
} else r.splice(1, r.length - 2);
|
|
965
|
+
n({
|
|
966
|
+
...t,
|
|
967
|
+
stops: r
|
|
968
|
+
});
|
|
969
|
+
})(r);
|
|
970
|
+
},
|
|
971
|
+
sx: { flex: "0 0 auto" },
|
|
972
|
+
children: [(0, Z.jsx)(q, {
|
|
973
|
+
value: 2,
|
|
974
|
+
sx: {
|
|
975
|
+
textTransform: "none",
|
|
976
|
+
pt: .25,
|
|
977
|
+
pb: .25
|
|
978
|
+
},
|
|
979
|
+
children: a("conditionalFormat.twoColor")
|
|
980
|
+
}), (0, Z.jsx)(q, {
|
|
981
|
+
value: 3,
|
|
982
|
+
sx: {
|
|
983
|
+
textTransform: "none",
|
|
984
|
+
pt: .25,
|
|
985
|
+
pb: .25
|
|
986
|
+
},
|
|
987
|
+
children: a("conditionalFormat.threeColor")
|
|
988
|
+
})]
|
|
989
|
+
})]
|
|
990
|
+
}) }), (0, Z.jsx)(pr, {
|
|
991
|
+
variant: "config",
|
|
992
|
+
children: c.map((e, i) => (0, Z.jsx)(xr, {
|
|
993
|
+
label: a(u[Math.min(i, u.length - 1)]),
|
|
994
|
+
stop: e,
|
|
995
|
+
allowedTypes: Sr,
|
|
996
|
+
showColor: !0,
|
|
997
|
+
readOnly: r,
|
|
998
|
+
onStopChange: (e) => {
|
|
999
|
+
let r = c.slice();
|
|
1000
|
+
r[i] = e, n({
|
|
1001
|
+
...t,
|
|
1002
|
+
stops: r
|
|
1003
|
+
});
|
|
1004
|
+
}
|
|
1005
|
+
}, i))
|
|
1006
|
+
})]
|
|
1007
|
+
});
|
|
1008
|
+
});
|
|
1009
|
+
Cr.displayName = "ColorScaleRulePanel";
|
|
1010
|
+
var wr = [
|
|
1011
|
+
y.ColorStopType.AutoMin,
|
|
1012
|
+
y.ColorStopType.Min,
|
|
1013
|
+
y.ColorStopType.Num,
|
|
1014
|
+
y.ColorStopType.Percent,
|
|
1015
|
+
y.ColorStopType.Percentile,
|
|
1016
|
+
y.ColorStopType.Formula
|
|
1017
|
+
], Tr = [
|
|
1018
|
+
y.ColorStopType.AutoMax,
|
|
1019
|
+
y.ColorStopType.Max,
|
|
1020
|
+
y.ColorStopType.Num,
|
|
1021
|
+
y.ColorStopType.Percent,
|
|
1022
|
+
y.ColorStopType.Percentile,
|
|
1023
|
+
y.ColorStopType.Formula
|
|
1024
|
+
], Er = "__auto__", Dr = (0, X.memo)((e) => {
|
|
1025
|
+
let { scale: t, onScaleChange: n, readOnly: r, ...i } = e, a = M(), { darkMode: o, toColor: s, propsColorPanel: c } = Y(), l = t.stops ?? [], u = s(t.color), d = s(t.negativeFillColor), f = s(t.borderColor), p = s(t.negativeBorderColor), m = t.gradient ?? !1, h = (e) => {
|
|
1026
|
+
let r = { ...t };
|
|
1027
|
+
for (let [t, n] of Object.entries(e)) n === void 0 ? delete r[t] : r[t] = n;
|
|
1028
|
+
n(r);
|
|
1029
|
+
}, g = { backgroundColor: "background.paper" };
|
|
1030
|
+
return (0, Z.jsxs)(I, {
|
|
1031
|
+
sx: {
|
|
1032
|
+
display: "flex",
|
|
1033
|
+
flexDirection: "column",
|
|
1034
|
+
gap: 1
|
|
1035
|
+
},
|
|
1036
|
+
...i,
|
|
1037
|
+
children: [(0, Z.jsxs)(pr, { children: [
|
|
1038
|
+
(0, Z.jsxs)(I, {
|
|
1039
|
+
sx: {
|
|
1040
|
+
display: "flex",
|
|
1041
|
+
alignItems: "flex-start",
|
|
1042
|
+
gap: 1
|
|
1043
|
+
},
|
|
1044
|
+
children: [(0, Z.jsx)(I, {
|
|
1045
|
+
sx: {
|
|
1046
|
+
flex: "1 1 auto",
|
|
1047
|
+
minWidth: 0,
|
|
1048
|
+
display: "flex",
|
|
1049
|
+
gap: .5,
|
|
1050
|
+
flexWrap: "wrap"
|
|
1051
|
+
},
|
|
1052
|
+
children: ct.filter((e) => (e.gradient ?? !1) === m).map((e, t) => (0, Z.jsx)(J, {
|
|
1053
|
+
sheet: !0,
|
|
1054
|
+
disabled: r,
|
|
1055
|
+
onClick: () => h({
|
|
1056
|
+
color: e.color,
|
|
1057
|
+
gradient: e.gradient,
|
|
1058
|
+
borderColor: e.borderColor
|
|
1059
|
+
}),
|
|
1060
|
+
children: (0, Z.jsx)(tn, { rows: rn(e, s(e.color)?.toCSS("adaptive") ?? "var(--sxl-color-primary, rgb(33, 115, 70))") })
|
|
1061
|
+
}, t))
|
|
1062
|
+
}), (0, Z.jsxs)(Yt, {
|
|
1063
|
+
exclusive: !0,
|
|
1064
|
+
size: "small",
|
|
1065
|
+
value: m,
|
|
1066
|
+
disabled: r,
|
|
1067
|
+
onChange: (e, t) => {
|
|
1068
|
+
t !== null && h({ gradient: !!t || void 0 });
|
|
1069
|
+
},
|
|
1070
|
+
sx: { flex: "0 0 auto" },
|
|
1071
|
+
children: [(0, Z.jsx)(q, {
|
|
1072
|
+
value: !1,
|
|
1073
|
+
sx: {
|
|
1074
|
+
textTransform: "none",
|
|
1075
|
+
pt: .25,
|
|
1076
|
+
pb: .25
|
|
1077
|
+
},
|
|
1078
|
+
children: a("conditionalFormat.solidFill")
|
|
1079
|
+
}), (0, Z.jsx)(q, {
|
|
1080
|
+
value: !0,
|
|
1081
|
+
sx: {
|
|
1082
|
+
textTransform: "none",
|
|
1083
|
+
pt: .25,
|
|
1084
|
+
pb: .25
|
|
1085
|
+
},
|
|
1086
|
+
children: a("conditionalFormat.gradientFill")
|
|
1087
|
+
})]
|
|
1088
|
+
})]
|
|
1089
|
+
}),
|
|
1090
|
+
(0, Z.jsx)(z, {
|
|
1091
|
+
control: (0, Z.jsx)(Be, {
|
|
1092
|
+
size: "small",
|
|
1093
|
+
checked: !1 === t.showValue,
|
|
1094
|
+
disabled: r,
|
|
1095
|
+
onChange: (e) => h({ showValue: !e.target.checked && void 0 })
|
|
1096
|
+
}),
|
|
1097
|
+
label: (0, Z.jsx)(R, {
|
|
1098
|
+
variant: "body2",
|
|
1099
|
+
children: a("conditionalFormat.showBarsOnly")
|
|
1100
|
+
})
|
|
1101
|
+
}),
|
|
1102
|
+
(0, Z.jsxs)(I, {
|
|
1103
|
+
sx: {
|
|
1104
|
+
display: "flex",
|
|
1105
|
+
alignItems: "center",
|
|
1106
|
+
gap: .5
|
|
1107
|
+
},
|
|
1108
|
+
children: [
|
|
1109
|
+
(0, Z.jsx)(R, {
|
|
1110
|
+
variant: "caption",
|
|
1111
|
+
sx: {
|
|
1112
|
+
color: "text.secondary",
|
|
1113
|
+
flex: "0 0 62px"
|
|
1114
|
+
},
|
|
1115
|
+
children: a("conditionalFormat.bar")
|
|
1116
|
+
}),
|
|
1117
|
+
(0, Z.jsx)(K, {
|
|
1118
|
+
icon: "fill.colored",
|
|
1119
|
+
tooltip: a("conditionalFormat.barColor"),
|
|
1120
|
+
selectedColor: u,
|
|
1121
|
+
disabled: r,
|
|
1122
|
+
onSelectColor: (e) => h({ color: e ? e.toString() : void 0 }),
|
|
1123
|
+
darkMode: o,
|
|
1124
|
+
propsPanel: {
|
|
1125
|
+
disableAlpha: !0,
|
|
1126
|
+
...c
|
|
1127
|
+
}
|
|
1128
|
+
}),
|
|
1129
|
+
(0, Z.jsx)(K, {
|
|
1130
|
+
icon: "stroke.colored",
|
|
1131
|
+
tooltip: a("conditionalFormat.barBorderColor"),
|
|
1132
|
+
selectedColor: f,
|
|
1133
|
+
disabled: r,
|
|
1134
|
+
onSelectColor: (e) => h({ borderColor: e ? e.toString() : void 0 }),
|
|
1135
|
+
darkMode: o,
|
|
1136
|
+
propsPanel: {
|
|
1137
|
+
disableAlpha: !0,
|
|
1138
|
+
...c
|
|
1139
|
+
}
|
|
1140
|
+
})
|
|
1141
|
+
]
|
|
1142
|
+
}),
|
|
1143
|
+
(0, Z.jsxs)(I, {
|
|
1144
|
+
sx: {
|
|
1145
|
+
display: "flex",
|
|
1146
|
+
alignItems: "center",
|
|
1147
|
+
gap: .5
|
|
1148
|
+
},
|
|
1149
|
+
children: [
|
|
1150
|
+
(0, Z.jsx)(R, {
|
|
1151
|
+
variant: "caption",
|
|
1152
|
+
sx: {
|
|
1153
|
+
color: "text.secondary",
|
|
1154
|
+
flex: "0 0 62px"
|
|
1155
|
+
},
|
|
1156
|
+
children: a("conditionalFormat.negative")
|
|
1157
|
+
}),
|
|
1158
|
+
(0, Z.jsx)(K, {
|
|
1159
|
+
icon: "fill.colored",
|
|
1160
|
+
tooltip: a("conditionalFormat.negativeColor"),
|
|
1161
|
+
selectedColor: d ?? u,
|
|
1162
|
+
disabled: r,
|
|
1163
|
+
onSelectColor: (e) => h({ negativeFillColor: e ? e.toString() : void 0 }),
|
|
1164
|
+
darkMode: o,
|
|
1165
|
+
propsPanel: {
|
|
1166
|
+
disableAlpha: !0,
|
|
1167
|
+
...c
|
|
1168
|
+
}
|
|
1169
|
+
}),
|
|
1170
|
+
(0, Z.jsx)(K, {
|
|
1171
|
+
icon: "stroke.colored",
|
|
1172
|
+
tooltip: a("conditionalFormat.negativeBorderColor"),
|
|
1173
|
+
selectedColor: p ?? f,
|
|
1174
|
+
disabled: r,
|
|
1175
|
+
onSelectColor: (e) => h({ negativeBorderColor: e ? e.toString() : void 0 }),
|
|
1176
|
+
darkMode: o,
|
|
1177
|
+
propsPanel: {
|
|
1178
|
+
disableAlpha: !0,
|
|
1179
|
+
...c
|
|
1180
|
+
}
|
|
1181
|
+
}),
|
|
1182
|
+
(0, Z.jsx)(J, {
|
|
1183
|
+
title: a("conditionalFormat.sameAsPositive"),
|
|
1184
|
+
disabled: r || !t.negativeFillColor && !t.negativeBorderColor,
|
|
1185
|
+
onClick: () => h({
|
|
1186
|
+
negativeFillColor: void 0,
|
|
1187
|
+
negativeBorderColor: void 0
|
|
1188
|
+
}),
|
|
1189
|
+
sx: {
|
|
1190
|
+
color: "text.secondary",
|
|
1191
|
+
"&:disabled": { opacity: .4 }
|
|
1192
|
+
},
|
|
1193
|
+
children: (0, Z.jsx)(b, {
|
|
1194
|
+
iconKey: "ClearFormats",
|
|
1195
|
+
size: 16
|
|
1196
|
+
})
|
|
1197
|
+
})
|
|
1198
|
+
]
|
|
1199
|
+
}),
|
|
1200
|
+
(0, Z.jsxs)(I, {
|
|
1201
|
+
sx: {
|
|
1202
|
+
display: "flex",
|
|
1203
|
+
gap: 1,
|
|
1204
|
+
mt: .5
|
|
1205
|
+
},
|
|
1206
|
+
children: [(0, Z.jsxs)(ze, {
|
|
1207
|
+
size: "small",
|
|
1208
|
+
sx: {
|
|
1209
|
+
flex: 1,
|
|
1210
|
+
minWidth: 0
|
|
1211
|
+
},
|
|
1212
|
+
children: [(0, Z.jsx)(Le, { children: a("conditionalFormat.axis") }), (0, Z.jsxs)(Re, {
|
|
1213
|
+
label: a("conditionalFormat.axis"),
|
|
1214
|
+
value: t.axisPosition ?? Er,
|
|
1215
|
+
disabled: r,
|
|
1216
|
+
sx: g,
|
|
1217
|
+
onChange: (e) => {
|
|
1218
|
+
let t = e.target.value;
|
|
1219
|
+
h({ axisPosition: t === Er ? void 0 : t });
|
|
1220
|
+
},
|
|
1221
|
+
children: [
|
|
1222
|
+
(0, Z.jsx)(U, {
|
|
1223
|
+
value: Er,
|
|
1224
|
+
children: a("conditionalFormat.automatic")
|
|
1225
|
+
}),
|
|
1226
|
+
(0, Z.jsx)(U, {
|
|
1227
|
+
value: "middle",
|
|
1228
|
+
children: a("conditionalFormat.axisMiddle")
|
|
1229
|
+
}),
|
|
1230
|
+
(0, Z.jsx)(U, {
|
|
1231
|
+
value: "none",
|
|
1232
|
+
children: a("conditionalFormat.axisNone")
|
|
1233
|
+
})
|
|
1234
|
+
]
|
|
1235
|
+
})]
|
|
1236
|
+
}), (0, Z.jsxs)(ze, {
|
|
1237
|
+
size: "small",
|
|
1238
|
+
sx: {
|
|
1239
|
+
flex: 1,
|
|
1240
|
+
minWidth: 0
|
|
1241
|
+
},
|
|
1242
|
+
children: [(0, Z.jsx)(Le, { children: a("conditionalFormat.direction") }), (0, Z.jsxs)(Re, {
|
|
1243
|
+
label: a("conditionalFormat.direction"),
|
|
1244
|
+
value: t.direction ?? Er,
|
|
1245
|
+
disabled: r,
|
|
1246
|
+
sx: g,
|
|
1247
|
+
onChange: (e) => {
|
|
1248
|
+
let t = e.target.value;
|
|
1249
|
+
h({ direction: t === Er ? void 0 : t });
|
|
1250
|
+
},
|
|
1251
|
+
children: [
|
|
1252
|
+
(0, Z.jsx)(U, {
|
|
1253
|
+
value: Er,
|
|
1254
|
+
children: a("conditionalFormat.automatic")
|
|
1255
|
+
}),
|
|
1256
|
+
(0, Z.jsx)(U, {
|
|
1257
|
+
value: "leftToRight",
|
|
1258
|
+
children: a("conditionalFormat.leftToRight")
|
|
1259
|
+
}),
|
|
1260
|
+
(0, Z.jsx)(U, {
|
|
1261
|
+
value: "rightToLeft",
|
|
1262
|
+
children: a("conditionalFormat.rightToLeft")
|
|
1263
|
+
})
|
|
1264
|
+
]
|
|
1265
|
+
})]
|
|
1266
|
+
})]
|
|
1267
|
+
})
|
|
1268
|
+
] }), (0, Z.jsxs)(pr, {
|
|
1269
|
+
variant: "config",
|
|
1270
|
+
children: [(0, Z.jsx)(xr, {
|
|
1271
|
+
label: a("conditionalFormat.stop.minimum"),
|
|
1272
|
+
stop: l[0] ?? { type: y.ColorStopType.AutoMin },
|
|
1273
|
+
allowedTypes: wr,
|
|
1274
|
+
readOnly: r,
|
|
1275
|
+
onStopChange: (e) => {
|
|
1276
|
+
let t = l.slice();
|
|
1277
|
+
t[0] = e, h({ stops: t });
|
|
1278
|
+
}
|
|
1279
|
+
}), (0, Z.jsx)(xr, {
|
|
1280
|
+
label: a("conditionalFormat.stop.maximum"),
|
|
1281
|
+
stop: l[1] ?? { type: y.ColorStopType.AutoMax },
|
|
1282
|
+
allowedTypes: Tr,
|
|
1283
|
+
readOnly: r,
|
|
1284
|
+
onStopChange: (e) => {
|
|
1285
|
+
let t = l.slice();
|
|
1286
|
+
for (; t.length < 2;) t.push({ type: y.ColorStopType.AutoMax });
|
|
1287
|
+
t[1] = e, h({ stops: t });
|
|
1288
|
+
}
|
|
1289
|
+
})]
|
|
1290
|
+
})]
|
|
1291
|
+
});
|
|
1292
|
+
});
|
|
1293
|
+
Dr.displayName = "DataBarRulePanel";
|
|
1294
|
+
var Or = l("conditionalFormat.noCellIcon"), kr = l("conditionalFormat.cellIcon"), Ar = {
|
|
1295
|
+
borderColor: "primary.main",
|
|
1296
|
+
boxShadow: (e) => `inset 0 0 0 1px ${e.palette.primary.main}`
|
|
1297
|
+
}, jr = {
|
|
1298
|
+
width: "28px",
|
|
1299
|
+
height: "26px"
|
|
1300
|
+
}, Mr = (0, X.memo)((e) => {
|
|
1301
|
+
let { icon: t, onPick: n } = e, r = M();
|
|
1302
|
+
return (0, Z.jsxs)(I, {
|
|
1303
|
+
sx: {
|
|
1304
|
+
display: "flex",
|
|
1305
|
+
flexDirection: "column",
|
|
1306
|
+
gap: "4px",
|
|
1307
|
+
padding: "6px 8px"
|
|
1308
|
+
},
|
|
1309
|
+
children: [(0, Z.jsx)(J, {
|
|
1310
|
+
sheet: !0,
|
|
1311
|
+
title: r(Or),
|
|
1312
|
+
"aria-pressed": t === null,
|
|
1313
|
+
sx: {
|
|
1314
|
+
...jr,
|
|
1315
|
+
...t === null ? Ar : null
|
|
1316
|
+
},
|
|
1317
|
+
onClick: () => {
|
|
1318
|
+
n({ ...jt });
|
|
1319
|
+
},
|
|
1320
|
+
children: (0, Z.jsx)(At, {
|
|
1321
|
+
icons: [null],
|
|
1322
|
+
size: 16
|
|
1323
|
+
})
|
|
1324
|
+
}), (0, Z.jsx)(I, {
|
|
1325
|
+
sx: {
|
|
1326
|
+
display: "grid",
|
|
1327
|
+
gridTemplateColumns: "repeat(8, auto)",
|
|
1328
|
+
justifyContent: "start",
|
|
1329
|
+
gap: "3px"
|
|
1330
|
+
},
|
|
1331
|
+
children: _t.map((e) => {
|
|
1332
|
+
let i = ((e, t) => !!e && e.iconKey === t.iconKey && e.color === t.color)(t, e.spec);
|
|
1333
|
+
return (0, Z.jsx)(J, {
|
|
1334
|
+
sheet: !0,
|
|
1335
|
+
title: dn(r, e.spec),
|
|
1336
|
+
"aria-pressed": i,
|
|
1337
|
+
sx: {
|
|
1338
|
+
...jr,
|
|
1339
|
+
...i ? Ar : null
|
|
1340
|
+
},
|
|
1341
|
+
onClick: () => {
|
|
1342
|
+
n({
|
|
1343
|
+
set: e.set,
|
|
1344
|
+
id: e.id
|
|
1345
|
+
});
|
|
1346
|
+
},
|
|
1347
|
+
children: (0, Z.jsx)(At, {
|
|
1348
|
+
icons: [e.spec],
|
|
1349
|
+
size: 16
|
|
1350
|
+
})
|
|
1351
|
+
}, `${e.set}:${e.id}`);
|
|
1352
|
+
})
|
|
1353
|
+
})]
|
|
1354
|
+
});
|
|
1355
|
+
});
|
|
1356
|
+
Mr.displayName = "IconCatalogPanel";
|
|
1357
|
+
var Nr = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
1358
|
+
let { icon: n, onPick: r, tooltip: i, ...a } = e, o = M(), s = (0, X.useCallback)((e) => {
|
|
1359
|
+
let { closeFloat: t } = e, i = (0, Z.jsx)(Mr, {
|
|
1360
|
+
icon: n,
|
|
1361
|
+
onPick: (e) => {
|
|
1362
|
+
t?.(), r(e);
|
|
1363
|
+
}
|
|
1364
|
+
});
|
|
1365
|
+
return V({
|
|
1366
|
+
...e,
|
|
1367
|
+
children: i
|
|
1368
|
+
});
|
|
1369
|
+
}, [n, r]);
|
|
1370
|
+
return (0, Z.jsx)(Ue, {
|
|
1371
|
+
ref: t,
|
|
1372
|
+
createPopupPanel: s,
|
|
1373
|
+
tooltip: i ?? o(kr),
|
|
1374
|
+
icon: (0, Z.jsx)(At, {
|
|
1375
|
+
icons: [n],
|
|
1376
|
+
size: 16
|
|
1377
|
+
}),
|
|
1378
|
+
outlined: !0,
|
|
1379
|
+
...a
|
|
1380
|
+
});
|
|
1381
|
+
}));
|
|
1382
|
+
Nr.displayName = "IconPickerPopupButton";
|
|
1383
|
+
var Pr = [
|
|
1384
|
+
y.ColorStopType.Percent,
|
|
1385
|
+
y.ColorStopType.Num,
|
|
1386
|
+
y.ColorStopType.Percentile,
|
|
1387
|
+
y.ColorStopType.Formula
|
|
1388
|
+
], Fr = (0, X.memo)((e) => {
|
|
1389
|
+
let { scale: t, onScaleChange: n, readOnly: r, ...i } = e, o = M(), s = t.iconSet ?? h.IconSet.TrafficLights3, c = ft(s).length === 0, l = t.stops ?? [], u = l.length, d = et(t), f = (e) => {
|
|
1390
|
+
let r = { ...t };
|
|
1391
|
+
for (let [t, n] of Object.entries(e)) n === void 0 ? delete r[t] : r[t] = n;
|
|
1392
|
+
n(r);
|
|
1393
|
+
}, p = (0, X.useCallback)((e) => {
|
|
1394
|
+
let { closeFloat: t } = e, n = (0, Z.jsx)(wn, {
|
|
1395
|
+
groups: nn,
|
|
1396
|
+
disabled: r,
|
|
1397
|
+
onPick: (e) => {
|
|
1398
|
+
t?.(), e.type === y.ScaleType.IconSet && e.iconSet && ((e) => {
|
|
1399
|
+
if (e === s) return;
|
|
1400
|
+
let t = Ct(e), n = l;
|
|
1401
|
+
t !== l.length && (n = Dt(t)), f({
|
|
1402
|
+
iconSet: e,
|
|
1403
|
+
stops: n,
|
|
1404
|
+
icon: void 0
|
|
1405
|
+
});
|
|
1406
|
+
})(e.iconSet);
|
|
1407
|
+
}
|
|
1408
|
+
});
|
|
1409
|
+
return V({
|
|
1410
|
+
...e,
|
|
1411
|
+
children: n
|
|
1412
|
+
});
|
|
1413
|
+
}, [r, t]), m = a.camelToPrettyCase(s);
|
|
1414
|
+
return (0, Z.jsxs)(I, {
|
|
1415
|
+
sx: {
|
|
1416
|
+
display: "flex",
|
|
1417
|
+
flexDirection: "column",
|
|
1418
|
+
gap: 1
|
|
1419
|
+
},
|
|
1420
|
+
...i,
|
|
1421
|
+
children: [(0, Z.jsxs)(pr, { children: [
|
|
1422
|
+
(0, Z.jsx)(I, {
|
|
1423
|
+
sx: {
|
|
1424
|
+
display: "flex",
|
|
1425
|
+
alignItems: "center",
|
|
1426
|
+
gap: 1
|
|
1427
|
+
},
|
|
1428
|
+
children: (0, Z.jsx)(Ue, {
|
|
1429
|
+
outlined: !0,
|
|
1430
|
+
disabled: r,
|
|
1431
|
+
label: m,
|
|
1432
|
+
tooltip: m,
|
|
1433
|
+
icon: (0, Z.jsx)(I, {
|
|
1434
|
+
sx: {
|
|
1435
|
+
width: "82px",
|
|
1436
|
+
display: "flex",
|
|
1437
|
+
justifyContent: "center"
|
|
1438
|
+
},
|
|
1439
|
+
children: c ? (0, Z.jsx)(R, {
|
|
1440
|
+
variant: "caption",
|
|
1441
|
+
noWrap: !0,
|
|
1442
|
+
children: m
|
|
1443
|
+
}) : (0, Z.jsx)(At, {
|
|
1444
|
+
icons: ft(s),
|
|
1445
|
+
order: "descending",
|
|
1446
|
+
size: 14,
|
|
1447
|
+
gap: 3
|
|
1448
|
+
})
|
|
1449
|
+
}),
|
|
1450
|
+
createPopupPanel: p
|
|
1451
|
+
})
|
|
1452
|
+
}),
|
|
1453
|
+
c && (0, Z.jsx)(R, {
|
|
1454
|
+
variant: "caption",
|
|
1455
|
+
sx: { color: "text.secondary" },
|
|
1456
|
+
children: o("conditionalFormat.adoptedIconSet")
|
|
1457
|
+
}),
|
|
1458
|
+
(0, Z.jsxs)(I, {
|
|
1459
|
+
sx: {
|
|
1460
|
+
display: "flex",
|
|
1461
|
+
gap: 1
|
|
1462
|
+
},
|
|
1463
|
+
children: [(0, Z.jsx)(z, {
|
|
1464
|
+
control: (0, Z.jsx)(Be, {
|
|
1465
|
+
size: "small",
|
|
1466
|
+
checked: !1 === t.showValue,
|
|
1467
|
+
disabled: r,
|
|
1468
|
+
onChange: (e) => f({ showValue: !e.target.checked && void 0 })
|
|
1469
|
+
}),
|
|
1470
|
+
label: (0, Z.jsx)(R, {
|
|
1471
|
+
variant: "body2",
|
|
1472
|
+
children: o("conditionalFormat.showIconsOnly")
|
|
1473
|
+
})
|
|
1474
|
+
}), (0, Z.jsx)(z, {
|
|
1475
|
+
control: (0, Z.jsx)(Be, {
|
|
1476
|
+
size: "small",
|
|
1477
|
+
checked: t.reverse ?? !1,
|
|
1478
|
+
disabled: r,
|
|
1479
|
+
onChange: (e) => f({ reverse: !!e.target.checked || void 0 })
|
|
1480
|
+
}),
|
|
1481
|
+
label: (0, Z.jsx)(R, {
|
|
1482
|
+
variant: "body2",
|
|
1483
|
+
children: o("conditionalFormat.reverseIcons")
|
|
1484
|
+
})
|
|
1485
|
+
})]
|
|
1486
|
+
})
|
|
1487
|
+
] }), (0, Z.jsx)(pr, {
|
|
1488
|
+
variant: "config",
|
|
1489
|
+
children: l.map((e, i) => {
|
|
1490
|
+
let a = t.reverse ? u - 1 - i : i;
|
|
1491
|
+
return (0, Z.jsx)(xr, {
|
|
1492
|
+
stop: e,
|
|
1493
|
+
allowedTypes: Pr,
|
|
1494
|
+
showExclusive: !0,
|
|
1495
|
+
readOnly: r || i === 0,
|
|
1496
|
+
leading: (0, Z.jsx)(Nr, {
|
|
1497
|
+
icon: d[i] ?? null,
|
|
1498
|
+
disabled: r || c,
|
|
1499
|
+
onPick: (e) => n(pt(t, a, e))
|
|
1500
|
+
}),
|
|
1501
|
+
onStopChange: (e) => {
|
|
1502
|
+
let t = l.slice();
|
|
1503
|
+
t[i] = e, f({ stops: t });
|
|
1504
|
+
}
|
|
1505
|
+
}, i);
|
|
1506
|
+
})
|
|
1507
|
+
})]
|
|
1508
|
+
});
|
|
1509
|
+
});
|
|
1510
|
+
Fr.displayName = "IconSetRulePanel";
|
|
1511
|
+
var Ir = (e, t, n) => Jt(e, t)?.toCSS("adaptive") ?? n, Lr = (e, t, n) => {
|
|
1512
|
+
if (!e) return n;
|
|
1513
|
+
if (typeof e == "string") return Ir(e, t, n);
|
|
1514
|
+
if (e.type === p.Type.None) return n;
|
|
1515
|
+
let r = e, i = e;
|
|
1516
|
+
return Ir(i.foreground ?? r.color ?? i.background, t, n);
|
|
1517
|
+
}, Rr = (0, X.memo)((e) => {
|
|
1518
|
+
let { conditionalFormat: t, size: n = 28, ...r } = e, { workbook: i, themeKey: a } = Y();
|
|
1519
|
+
ue(t, "onAnyChange");
|
|
1520
|
+
let o = t.getScale(), s = t.getStyle(), c = (0, X.useMemo)(() => {
|
|
1521
|
+
try {
|
|
1522
|
+
return i?.getStyles().getNormal().getFont().toCSS("adaptive") ?? {};
|
|
1523
|
+
} catch {
|
|
1524
|
+
return {};
|
|
1525
|
+
}
|
|
1526
|
+
}, [i, a]), l = (0, X.useMemo)(() => {
|
|
1527
|
+
if (o?.type === y.ScaleType.ColorScale) return (0, Z.jsx)(tn, { rows: mn(o.stops ?? [], Tn, i) });
|
|
1528
|
+
if (o?.type === y.ScaleType.DataBar) return (0, Z.jsx)(tn, { rows: rn(o, Ir(o.color, i, Cn), o.borderColor ? Ir(o.borderColor, i, Cn) : void 0) });
|
|
1529
|
+
if (o?.type === y.ScaleType.IconSet) return (0, Z.jsx)(I, {
|
|
1530
|
+
sx: {
|
|
1531
|
+
display: "flex",
|
|
1532
|
+
alignItems: "center",
|
|
1533
|
+
justifyContent: "center",
|
|
1534
|
+
width: "100%",
|
|
1535
|
+
height: "100%",
|
|
1536
|
+
px: .5
|
|
1537
|
+
},
|
|
1538
|
+
children: (0, Z.jsx)(At, {
|
|
1539
|
+
icons: et(o),
|
|
1540
|
+
order: "descending",
|
|
1541
|
+
size: 14,
|
|
1542
|
+
gap: 3
|
|
1543
|
+
})
|
|
1544
|
+
});
|
|
1545
|
+
let e = s?.font, t = e?.underline && e.underline !== g.UnderlineStyle.None;
|
|
1546
|
+
return (0, Z.jsx)(I, {
|
|
1547
|
+
sx: {
|
|
1548
|
+
width: "100%",
|
|
1549
|
+
height: "100%",
|
|
1550
|
+
display: "flex",
|
|
1551
|
+
alignItems: "center",
|
|
1552
|
+
justifyContent: "center",
|
|
1553
|
+
...c,
|
|
1554
|
+
backgroundColor: Lr(s?.fill, i, "transparent"),
|
|
1555
|
+
...e?.color && e.color !== "auto" ? { color: Ir(e.color, i, It) } : null,
|
|
1556
|
+
...e?.weight ? { fontWeight: e.weight } : null,
|
|
1557
|
+
...e?.style ? { fontStyle: e.style } : null,
|
|
1558
|
+
textDecoration: [t ? "underline" : "", e?.strike ? "line-through" : ""].join(" ").trim() || "none",
|
|
1559
|
+
fontSize: `${Math.round(.5 * n)}px`,
|
|
1560
|
+
lineHeight: 1,
|
|
1561
|
+
outline: s?.borders ? `1px solid ${Ir(Object.values(s.borders)[0]?.color, i, Qt)}` : void 0,
|
|
1562
|
+
outlineOffset: "-3px"
|
|
1563
|
+
},
|
|
1564
|
+
children: "Aa"
|
|
1565
|
+
});
|
|
1566
|
+
}, [
|
|
1567
|
+
o,
|
|
1568
|
+
s,
|
|
1569
|
+
n,
|
|
1570
|
+
c,
|
|
1571
|
+
i,
|
|
1572
|
+
a
|
|
1573
|
+
]);
|
|
1574
|
+
return (0, Z.jsx)(J, {
|
|
1575
|
+
sheet: !0,
|
|
1576
|
+
className: "sxl-cf-rule-preview",
|
|
1577
|
+
sx: {
|
|
1578
|
+
width: "auto",
|
|
1579
|
+
minWidth: 1.7 * n + "px",
|
|
1580
|
+
height: `${n}px`
|
|
1581
|
+
},
|
|
1582
|
+
...r,
|
|
1583
|
+
children: l
|
|
1584
|
+
});
|
|
1585
|
+
});
|
|
1586
|
+
Rr.displayName = "RulePreview";
|
|
1587
|
+
var zr = (e, t) => {
|
|
1588
|
+
let n = e.getCondition()?.toString();
|
|
1589
|
+
if (n) return n;
|
|
1590
|
+
let r = e.getScale();
|
|
1591
|
+
return r ? a.camelToPrettyCase(r.type) : t("conditionalFormat.noCondition");
|
|
1592
|
+
}, Br = {
|
|
1593
|
+
classic: l("conditionalFormat.tab.classic"),
|
|
1594
|
+
[y.ScaleType.ColorScale]: l("conditionalFormat.tab.colorScale"),
|
|
1595
|
+
[y.ScaleType.DataBar]: l("conditionalFormat.tab.dataBars"),
|
|
1596
|
+
[y.ScaleType.IconSet]: l("conditionalFormat.tab.iconSets")
|
|
1597
|
+
}, Vr = (0, X.memo)((e) => {
|
|
1598
|
+
let { conditionalFormat: t } = e, n = M();
|
|
1599
|
+
ue(t, "onAnyChange");
|
|
1600
|
+
let r = t.getScale(), i = t.getCondition(), a = t.getStyle(), o = t.isProtected(), s = r?.type ?? "classic", c = (0, X.useRef)({ scales: {} }), l = (e) => {
|
|
1601
|
+
t.update({ scale: e });
|
|
1602
|
+
}, u = (0, Z.jsxs)(xe, {
|
|
1603
|
+
tabIndex: 0,
|
|
1604
|
+
className: xn["editor-panel"],
|
|
1605
|
+
sx: {
|
|
1606
|
+
gap: (e) => e.spacing(1),
|
|
1607
|
+
paddingTop: (e) => e.spacing(1.25),
|
|
1608
|
+
paddingBottom: (e) => e.spacing(2),
|
|
1609
|
+
paddingLeft: (e) => e.spacing(1.5),
|
|
1610
|
+
paddingRight: (e) => e.spacing(1.5),
|
|
1611
|
+
border: (e) => `1px solid ${e.palette.divider}`,
|
|
1612
|
+
borderRadius: (e) => e.spacing(1.25),
|
|
1613
|
+
overflow: "auto"
|
|
1614
|
+
},
|
|
1615
|
+
children: [
|
|
1616
|
+
(0, Z.jsxs)(I, {
|
|
1617
|
+
sx: {
|
|
1618
|
+
display: "flex",
|
|
1619
|
+
flexDirection: "column",
|
|
1620
|
+
gap: (e) => e.spacing(1.75),
|
|
1621
|
+
margin: (e) => e.spacing(1.25),
|
|
1622
|
+
marginBottom: 0
|
|
1623
|
+
},
|
|
1624
|
+
children: [(0, Z.jsxs)(I, {
|
|
1625
|
+
sx: {
|
|
1626
|
+
display: "flex",
|
|
1627
|
+
alignItems: "center",
|
|
1628
|
+
gap: (e) => e.spacing(1.5)
|
|
1629
|
+
},
|
|
1630
|
+
children: [(0, Z.jsx)(Rr, {
|
|
1631
|
+
conditionalFormat: t,
|
|
1632
|
+
size: 48
|
|
1633
|
+
}), (0, Z.jsx)(R, {
|
|
1634
|
+
variant: "body2",
|
|
1635
|
+
sx: {
|
|
1636
|
+
minWidth: 0,
|
|
1637
|
+
wordBreak: "break-word"
|
|
1638
|
+
},
|
|
1639
|
+
children: zr(t, n)
|
|
1640
|
+
})]
|
|
1641
|
+
}), (0, Z.jsx)(En, {
|
|
1642
|
+
item: t,
|
|
1643
|
+
label: n("conditionalFormat.applyTo")
|
|
1644
|
+
})]
|
|
1645
|
+
}),
|
|
1646
|
+
(0, Z.jsx)(Wt, {
|
|
1647
|
+
value: s,
|
|
1648
|
+
onChange: (e, n) => {
|
|
1649
|
+
o || ((e) => {
|
|
1650
|
+
if (e !== s) {
|
|
1651
|
+
if (s === "classic" ? (c.current.condition = i?.toJSON() ?? null, c.current.style = a) : r && (c.current.scales[r.type] = r), e === "classic") t.update({
|
|
1652
|
+
condition: c.current.condition ?? {
|
|
1653
|
+
operator: _.BuiltInOperatorNames.Between,
|
|
1654
|
+
param: null
|
|
1655
|
+
},
|
|
1656
|
+
style: c.current.style ?? null,
|
|
1657
|
+
scale: null
|
|
1658
|
+
});
|
|
1659
|
+
else {
|
|
1660
|
+
let n = c.current.scales[e] ?? (e === y.ScaleType.ColorScale ? St() : e === y.ScaleType.DataBar ? xt() : ot());
|
|
1661
|
+
t.update({
|
|
1662
|
+
scale: n,
|
|
1663
|
+
condition: null,
|
|
1664
|
+
style: null
|
|
1665
|
+
});
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
})(n);
|
|
1669
|
+
},
|
|
1670
|
+
variant: "fullWidth",
|
|
1671
|
+
sx: {
|
|
1672
|
+
minHeight: "36px",
|
|
1673
|
+
borderBottom: 1,
|
|
1674
|
+
borderColor: "divider",
|
|
1675
|
+
"& .MuiTab-root": {
|
|
1676
|
+
minHeight: "36px",
|
|
1677
|
+
textTransform: "none",
|
|
1678
|
+
pt: .5,
|
|
1679
|
+
pb: .5,
|
|
1680
|
+
px: .5,
|
|
1681
|
+
minWidth: 0
|
|
1682
|
+
}
|
|
1683
|
+
},
|
|
1684
|
+
children: Object.keys(Br).map((e) => (0, Z.jsx)(Gt, {
|
|
1685
|
+
value: e,
|
|
1686
|
+
label: n(Br[e])
|
|
1687
|
+
}, e))
|
|
1688
|
+
}),
|
|
1689
|
+
s === "classic" && (0, Z.jsxs)(Z.Fragment, { children: [(0, Z.jsx)(vr, {
|
|
1690
|
+
format: a,
|
|
1691
|
+
readOnly: o,
|
|
1692
|
+
onFormatChange: (e) => t.update({ style: e })
|
|
1693
|
+
}), (0, Z.jsx)(gn, {
|
|
1694
|
+
sx: {
|
|
1695
|
+
..._n,
|
|
1696
|
+
p: 2,
|
|
1697
|
+
pb: 1
|
|
1698
|
+
},
|
|
1699
|
+
selectorTitle: n("conditionalFormat.highlight"),
|
|
1700
|
+
condition: i,
|
|
1701
|
+
ranges: t.getRanges(),
|
|
1702
|
+
readOnly: o,
|
|
1703
|
+
onConditionChange: (e) => t.setCondition(e)
|
|
1704
|
+
})] }),
|
|
1705
|
+
r?.type === y.ScaleType.ColorScale && (0, Z.jsx)(Cr, {
|
|
1706
|
+
scale: r,
|
|
1707
|
+
onScaleChange: l,
|
|
1708
|
+
readOnly: o
|
|
1709
|
+
}),
|
|
1710
|
+
r?.type === y.ScaleType.DataBar && (0, Z.jsx)(Dr, {
|
|
1711
|
+
scale: r,
|
|
1712
|
+
onScaleChange: l,
|
|
1713
|
+
readOnly: o
|
|
1714
|
+
}),
|
|
1715
|
+
r?.type === y.ScaleType.IconSet && (0, Z.jsx)(Fr, {
|
|
1716
|
+
scale: r,
|
|
1717
|
+
onScaleChange: l,
|
|
1718
|
+
readOnly: o
|
|
1719
|
+
}),
|
|
1720
|
+
s === "classic" && (0, Z.jsx)(I, {
|
|
1721
|
+
sx: {
|
|
1722
|
+
pl: 2,
|
|
1723
|
+
pr: 2,
|
|
1724
|
+
border: 1,
|
|
1725
|
+
borderColor: "divider",
|
|
1726
|
+
borderRadius: 1
|
|
1727
|
+
},
|
|
1728
|
+
children: (0, Z.jsx)(z, {
|
|
1729
|
+
control: (0, Z.jsx)(Be, {
|
|
1730
|
+
checked: t.isStopIfTrue(),
|
|
1731
|
+
disabled: o,
|
|
1732
|
+
onChange: (e) => t.setStopIfTrue(e.target.checked)
|
|
1733
|
+
}),
|
|
1734
|
+
label: n("conditionalFormat.stopIfTrue")
|
|
1735
|
+
})
|
|
1736
|
+
})
|
|
1737
|
+
]
|
|
1738
|
+
});
|
|
1739
|
+
return (0, Z.jsx)(pn.Provider, {
|
|
1740
|
+
value: t,
|
|
1741
|
+
children: u
|
|
1742
|
+
});
|
|
1743
|
+
});
|
|
1744
|
+
Vr.displayName = "ConditionalFormatEditorPanel";
|
|
1745
|
+
var Hr = (0, X.memo)(({ item: e }) => {
|
|
1746
|
+
let t = M();
|
|
1747
|
+
return ue(e, "onAnyChange"), !e.isStopIfTrue() || e.getScale() ? null : (0, Z.jsx)(I, {
|
|
1748
|
+
sx: {
|
|
1749
|
+
display: "inline-flex",
|
|
1750
|
+
alignItems: "center",
|
|
1751
|
+
alignSelf: "flex-start",
|
|
1752
|
+
px: .75,
|
|
1753
|
+
py: .25,
|
|
1754
|
+
border: 1,
|
|
1755
|
+
borderColor: "divider",
|
|
1756
|
+
borderRadius: 1,
|
|
1757
|
+
color: "text.secondary"
|
|
1758
|
+
},
|
|
1759
|
+
children: (0, Z.jsx)(R, {
|
|
1760
|
+
variant: "caption",
|
|
1761
|
+
children: t("conditionalFormat.stopIfTrue")
|
|
1762
|
+
})
|
|
1763
|
+
});
|
|
1764
|
+
});
|
|
1765
|
+
Hr.displayName = "StopIfTrueBadge";
|
|
1766
|
+
var Ur = (0, X.memo)(({ item: e }) => {
|
|
1767
|
+
let t = M();
|
|
1768
|
+
return (0, Z.jsx)(En, {
|
|
1769
|
+
item: e,
|
|
1770
|
+
label: t("conditionalFormat.applyTo"),
|
|
1771
|
+
helperText: null
|
|
1772
|
+
});
|
|
1773
|
+
});
|
|
1774
|
+
Ur.displayName = "ConditionalFormatCardRanges";
|
|
1775
|
+
var Wr = {
|
|
1776
|
+
key: "conditional-format",
|
|
1777
|
+
messageKeys: {
|
|
1778
|
+
none: l("conditionalFormat.none"),
|
|
1779
|
+
addPrompt: l("conditionalFormat.addPrompt"),
|
|
1780
|
+
heading: l("conditionalFormat.heading"),
|
|
1781
|
+
insert: l("conditionalFormat.insert"),
|
|
1782
|
+
new: l("conditionalFormat.new"),
|
|
1783
|
+
moveUp: l("conditionalFormat.moveUp"),
|
|
1784
|
+
moveDown: l("conditionalFormat.moveDown"),
|
|
1785
|
+
edit: l("conditionalFormat.edit"),
|
|
1786
|
+
duplicate: l("conditionalFormat.duplicate"),
|
|
1787
|
+
delete: l("conditionalFormat.delete"),
|
|
1788
|
+
cancel: l("conditionalFormat.cancel"),
|
|
1789
|
+
save: l("conditionalFormat.save")
|
|
1790
|
+
},
|
|
1791
|
+
getCollection: (e) => e.getConditionalFormats(),
|
|
1792
|
+
changeEvents: ["onConditionalFormatsChange"],
|
|
1793
|
+
isReadOnly: (e) => !e.getProtection().isFormatCellsAllowed(),
|
|
1794
|
+
applyUpdate: (e, t) => {
|
|
1795
|
+
e.update(t);
|
|
1796
|
+
},
|
|
1797
|
+
validate: (e) => e.getCondition()?.validate() ?? null,
|
|
1798
|
+
applySeed: (e, t) => {
|
|
1799
|
+
e.update({
|
|
1800
|
+
condition: t.condition ?? null,
|
|
1801
|
+
style: t.style ?? null,
|
|
1802
|
+
scale: t.scale ?? null,
|
|
1803
|
+
stopIfTrue: t.stopIfTrue ?? !1
|
|
1804
|
+
});
|
|
1805
|
+
},
|
|
1806
|
+
getCardTitle: zr,
|
|
1807
|
+
CardMedia: ({ item: e }) => (0, Z.jsx)(Rr, {
|
|
1808
|
+
conditionalFormat: e,
|
|
1809
|
+
size: 32
|
|
1810
|
+
}),
|
|
1811
|
+
CardSubtitle: Ur,
|
|
1812
|
+
CardBody: Hr,
|
|
1813
|
+
EditorBody: ({ item: e }) => (0, Z.jsx)(Vr, { conditionalFormat: e })
|
|
1814
|
+
}, Gr = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
1815
|
+
let { workbook: n, args: r, ...i } = e;
|
|
1816
|
+
return (0, Z.jsx)(Rt, {
|
|
1817
|
+
ref: t,
|
|
1818
|
+
workbook: n,
|
|
1819
|
+
descriptor: Wr,
|
|
1820
|
+
args: r,
|
|
1821
|
+
dragReorder: !0,
|
|
1822
|
+
...i
|
|
1823
|
+
});
|
|
1824
|
+
}));
|
|
1825
|
+
Gr.displayName = "ConditionalFormatDetailsPanel";
|
|
1826
|
+
var Kr = ["lines"];
|
|
1827
|
+
function qr(e) {
|
|
1828
|
+
var t, n, r = "";
|
|
1829
|
+
if (typeof e == "string" || typeof e == "number") r += e;
|
|
1830
|
+
else if (typeof e == "object") {
|
|
1831
|
+
if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = qr(e[t])) && (r && (r += " "), r += n);
|
|
1832
|
+
else for (t in e) e[t] && (r && (r += " "), r += t);
|
|
1833
|
+
}
|
|
1834
|
+
return r;
|
|
1835
|
+
}
|
|
1836
|
+
function Jr() {
|
|
1837
|
+
for (var e, t, n = 0, r = ""; n < arguments.length;) (e = arguments[n++]) && (t = qr(e)) && (r && (r += " "), r += t);
|
|
1838
|
+
return r;
|
|
1839
|
+
}
|
|
1840
|
+
var Yr = { data: "" }, Xr = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Zr = /\/\*[^]*?\*\/| +/g, Qr = /\n+/g, $r = (e, t) => {
|
|
1841
|
+
let n = "", r = "", i = "";
|
|
1842
|
+
for (let a in e) {
|
|
1843
|
+
let o = e[a];
|
|
1844
|
+
a[0] == "@" ? a[1] == "i" ? n = a + " " + o + ";" : r += a[1] == "f" ? $r(o, a) : a + "{" + $r(o, a[1] == "k" ? "" : t) + "}" : typeof o == "object" ? r += $r(o, t ? t.replace(/([^,])+/g, (e) => a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (t) => /&/.test(t) ? t.replace(/&/g, e) : e ? e + " " + t : t)) : a) : o != null && (a = a[1] == "-" ? a : a.replace(/[A-Z]/g, "-$&").toLowerCase(), i += $r.p ? $r.p(a, o) : a + ":" + o + ";");
|
|
1845
|
+
}
|
|
1846
|
+
return n + (t && i ? t + "{" + i + "}" : i) + r;
|
|
1847
|
+
}, ei = {}, ti = (e) => {
|
|
1848
|
+
if (typeof e == "object") {
|
|
1849
|
+
let t = "";
|
|
1850
|
+
for (let n in e) t += n + ti(e[n]);
|
|
1851
|
+
return t;
|
|
1852
|
+
}
|
|
1853
|
+
return e;
|
|
1854
|
+
};
|
|
1855
|
+
function ni(e) {
|
|
1856
|
+
let t = this || {}, n = e.call ? e(t.p) : e;
|
|
1857
|
+
return ((e, t, n, r, i) => {
|
|
1858
|
+
let a = ti(e), o = ei[a] || (ei[a] = ((e) => {
|
|
1859
|
+
let t = 0, n = 11;
|
|
1860
|
+
for (; t < e.length;) n = 101 * n + e.charCodeAt(t++) >>> 0;
|
|
1861
|
+
return "go" + n;
|
|
1862
|
+
})(a));
|
|
1863
|
+
if (!ei[o]) {
|
|
1864
|
+
let t = a === e ? ((e) => {
|
|
1865
|
+
let t, n, r = [{}];
|
|
1866
|
+
for (; t = Xr.exec(e.replace(Zr, ""));) t[4] ? r.shift() : t[3] ? (n = t[3].replace(Qr, " ").trim(), r.unshift(r[0][n] = r[0][n] || {})) : r[0][t[1]] = t[2].replace(Qr, " ").trim();
|
|
1867
|
+
return r[0];
|
|
1868
|
+
})(e) : e;
|
|
1869
|
+
ei[o] = $r(i ? { ["@keyframes " + o]: t } : t, n ? "" : "." + o);
|
|
1870
|
+
}
|
|
1871
|
+
let s = n && ei.g;
|
|
1872
|
+
return n && (ei.g = ei[o]), ((e, t, n, r) => {
|
|
1873
|
+
r ? t.data = t.data.replace(r, e) : t.data.indexOf(e) === -1 && (t.data = n ? e + t.data : t.data + e);
|
|
1874
|
+
})(ei[o], t, r, s), o;
|
|
1875
|
+
})(n.unshift ? n.raw ? ((e, t, n) => e.reduce((e, r, i) => {
|
|
1876
|
+
let a = t[i];
|
|
1877
|
+
if (a && a.call) {
|
|
1878
|
+
let e = a(n), t = e && e.props && e.props.className || /^go/.test(e) && e;
|
|
1879
|
+
a = t ? "." + t : e && typeof e == "object" ? e.props ? "" : $r(e, "") : !1 === e ? "" : e;
|
|
1880
|
+
}
|
|
1881
|
+
return e + r + (a ?? "");
|
|
1882
|
+
}, ""))(n, [].slice.call(arguments, 1), t.p) : n.reduce((e, n) => Object.assign(e, n && n.call ? n(t.p) : n), {}) : n, ((e) => {
|
|
1883
|
+
if (typeof window == "object") {
|
|
1884
|
+
let t = (e ? e.querySelector("#_goober") : window._goober) || Object.assign(document.createElement("style"), {
|
|
1885
|
+
innerHTML: " ",
|
|
1886
|
+
id: "_goober"
|
|
1887
|
+
});
|
|
1888
|
+
return t.nonce = window.__nonce__, t.parentNode || (e || document.head).appendChild(t), t.firstChild;
|
|
1889
|
+
}
|
|
1890
|
+
return e || Yr;
|
|
1891
|
+
})(t.target), t.g, t.o, t.k);
|
|
1892
|
+
}
|
|
1893
|
+
function ri(e, t) {
|
|
1894
|
+
for (var n = 0; n < t.length; n++) {
|
|
1895
|
+
var r = t[n];
|
|
1896
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
function ii(e, t, n) {
|
|
1900
|
+
return t && ri(e.prototype, t), n && ri(e, n), e;
|
|
1901
|
+
}
|
|
1902
|
+
function Q() {
|
|
1903
|
+
return Q = Object.assign || function(e) {
|
|
1904
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1905
|
+
var n = arguments[t];
|
|
1906
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1907
|
+
}
|
|
1908
|
+
return e;
|
|
1909
|
+
}, Q.apply(this, arguments);
|
|
1910
|
+
}
|
|
1911
|
+
function ai(e, t) {
|
|
1912
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
|
|
1913
|
+
}
|
|
1914
|
+
function oi(e, t) {
|
|
1915
|
+
if (e == null) return {};
|
|
1916
|
+
for (var n, r = {}, i = Object.keys(e), a = 0; a < i.length; a++) n = i[a], t.indexOf(n) >= 0 || (r[n] = e[n]);
|
|
1917
|
+
return r;
|
|
1918
|
+
}
|
|
1919
|
+
function si(e) {
|
|
1920
|
+
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1921
|
+
return e;
|
|
1922
|
+
}
|
|
1923
|
+
ni.bind({ g: 1 }), ni.bind({ k: 1 });
|
|
1924
|
+
var ci = function() {
|
|
1925
|
+
return "";
|
|
1926
|
+
}, li = X.createContext({
|
|
1927
|
+
enqueueSnackbar: ci,
|
|
1928
|
+
closeSnackbar: ci
|
|
1929
|
+
}), ui = "@media (max-width:599.95px)", di = "@media (min-width:600px)", fi = function(e) {
|
|
1930
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1931
|
+
}, pi = function(e) {
|
|
1932
|
+
return "" + fi(e.vertical) + fi(e.horizontal);
|
|
1933
|
+
}, mi = function(e) {
|
|
1934
|
+
return !!e || e === 0;
|
|
1935
|
+
}, hi = "unmounted", gi = "exited", _i = "entering", vi = "entered", yi = "exiting", bi = function(e) {
|
|
1936
|
+
function t(t) {
|
|
1937
|
+
var n, r = e.call(this, t) || this, i = t.appear;
|
|
1938
|
+
return r.appearStatus = null, t.in ? i ? (n = gi, r.appearStatus = _i) : n = vi : n = t.unmountOnExit || t.mountOnEnter ? hi : gi, r.state = { status: n }, r.nextCallback = null, r;
|
|
1939
|
+
}
|
|
1940
|
+
ai(t, e), t.getDerivedStateFromProps = function(e, t) {
|
|
1941
|
+
return e.in && t.status === hi ? { status: gi } : null;
|
|
1942
|
+
};
|
|
1943
|
+
var n = t.prototype;
|
|
1944
|
+
return n.componentDidMount = function() {
|
|
1945
|
+
this.updateStatus(!0, this.appearStatus);
|
|
1946
|
+
}, n.componentDidUpdate = function(e) {
|
|
1947
|
+
var t = null;
|
|
1948
|
+
if (e !== this.props) {
|
|
1949
|
+
var n = this.state.status;
|
|
1950
|
+
this.props.in ? n !== _i && n !== vi && (t = _i) : n !== _i && n !== vi || (t = yi);
|
|
1951
|
+
}
|
|
1952
|
+
this.updateStatus(!1, t);
|
|
1953
|
+
}, n.componentWillUnmount = function() {
|
|
1954
|
+
this.cancelNextCallback();
|
|
1955
|
+
}, n.getTimeouts = function() {
|
|
1956
|
+
var e = this.props.timeout, t = e, n = e;
|
|
1957
|
+
return e != null && typeof e != "number" && typeof e != "string" && (n = e.exit, t = e.enter), {
|
|
1958
|
+
exit: n,
|
|
1959
|
+
enter: t
|
|
1960
|
+
};
|
|
1961
|
+
}, n.updateStatus = function(e, t) {
|
|
1962
|
+
e === void 0 && (e = !1), t === null ? this.props.unmountOnExit && this.state.status === gi && this.setState({ status: hi }) : (this.cancelNextCallback(), t === _i ? this.performEnter(e) : this.performExit());
|
|
1963
|
+
}, n.performEnter = function(e) {
|
|
1964
|
+
var t = this, n = this.props.enter, r = e, i = this.getTimeouts();
|
|
1965
|
+
e || n ? (this.props.onEnter && this.props.onEnter(this.node, r), this.safeSetState({ status: _i }, function() {
|
|
1966
|
+
t.props.onEntering && t.props.onEntering(t.node, r), t.onTransitionEnd(i.enter, function() {
|
|
1967
|
+
t.safeSetState({ status: vi }, function() {
|
|
1968
|
+
t.props.onEntered && t.props.onEntered(t.node, r);
|
|
1969
|
+
});
|
|
1970
|
+
});
|
|
1971
|
+
})) : this.safeSetState({ status: vi }, function() {
|
|
1972
|
+
t.props.onEntered && t.props.onEntered(t.node, r);
|
|
1973
|
+
});
|
|
1974
|
+
}, n.performExit = function() {
|
|
1975
|
+
var e = this, t = this.props.exit, n = this.getTimeouts();
|
|
1976
|
+
t ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status: yi }, function() {
|
|
1977
|
+
e.props.onExiting && e.props.onExiting(e.node), e.onTransitionEnd(n.exit, function() {
|
|
1978
|
+
e.safeSetState({ status: gi }, function() {
|
|
1979
|
+
e.props.onExited && e.props.onExited(e.node);
|
|
1980
|
+
});
|
|
1981
|
+
});
|
|
1982
|
+
})) : this.safeSetState({ status: gi }, function() {
|
|
1983
|
+
e.props.onExited && e.props.onExited(e.node);
|
|
1984
|
+
});
|
|
1985
|
+
}, n.cancelNextCallback = function() {
|
|
1986
|
+
this.nextCallback !== null && this.nextCallback.cancel && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
1987
|
+
}, n.safeSetState = function(e, t) {
|
|
1988
|
+
t = this.setNextCallback(t), this.setState(e, t);
|
|
1989
|
+
}, n.setNextCallback = function(e) {
|
|
1990
|
+
var t = this, n = !0;
|
|
1991
|
+
return this.nextCallback = function() {
|
|
1992
|
+
n && (n = !1, t.nextCallback = null, e());
|
|
1993
|
+
}, this.nextCallback.cancel = function() {
|
|
1994
|
+
n = !1;
|
|
1995
|
+
}, this.nextCallback;
|
|
1996
|
+
}, n.onTransitionEnd = function(e, t) {
|
|
1997
|
+
this.setNextCallback(t);
|
|
1998
|
+
var n = e == null && !this.props.addEndListener;
|
|
1999
|
+
this.node && !n ? (this.props.addEndListener && this.props.addEndListener(this.node, this.nextCallback), e != null && setTimeout(this.nextCallback, e)) : setTimeout(this.nextCallback, 0);
|
|
2000
|
+
}, n.render = function() {
|
|
2001
|
+
var e = this.state.status;
|
|
2002
|
+
if (e === hi) return null;
|
|
2003
|
+
var t = this.props;
|
|
2004
|
+
return (0, t.children)(e, oi(t, [
|
|
2005
|
+
"children",
|
|
2006
|
+
"in",
|
|
2007
|
+
"mountOnEnter",
|
|
2008
|
+
"unmountOnExit",
|
|
2009
|
+
"appear",
|
|
2010
|
+
"enter",
|
|
2011
|
+
"exit",
|
|
2012
|
+
"timeout",
|
|
2013
|
+
"addEndListener",
|
|
2014
|
+
"onEnter",
|
|
2015
|
+
"onEntering",
|
|
2016
|
+
"onEntered",
|
|
2017
|
+
"onExit",
|
|
2018
|
+
"onExiting",
|
|
2019
|
+
"onExited",
|
|
2020
|
+
"nodeRef"
|
|
2021
|
+
]));
|
|
2022
|
+
}, ii(t, [{
|
|
2023
|
+
key: "node",
|
|
2024
|
+
get: function() {
|
|
2025
|
+
var e = this.props.nodeRef?.current;
|
|
2026
|
+
if (!e) throw Error("notistack - Custom snackbar is not refForwarding");
|
|
2027
|
+
return e;
|
|
2028
|
+
}
|
|
2029
|
+
}]), t;
|
|
2030
|
+
}(X.Component);
|
|
2031
|
+
function xi() {}
|
|
2032
|
+
function Si(e, t) {
|
|
2033
|
+
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
2034
|
+
}
|
|
2035
|
+
function Ci(e, t) {
|
|
2036
|
+
return (0, X.useMemo)(function() {
|
|
2037
|
+
return e == null && t == null ? null : function(n) {
|
|
2038
|
+
Si(e, n), Si(t, n);
|
|
2039
|
+
};
|
|
2040
|
+
}, [e, t]);
|
|
2041
|
+
}
|
|
2042
|
+
function wi(e) {
|
|
2043
|
+
var t = e.timeout, n = e.style, r = n === void 0 ? {} : n, i = e.mode;
|
|
2044
|
+
return {
|
|
2045
|
+
duration: typeof t == "object" ? t[i] || 0 : t,
|
|
2046
|
+
easing: r.transitionTimingFunction,
|
|
2047
|
+
delay: r.transitionDelay
|
|
2048
|
+
};
|
|
2049
|
+
}
|
|
2050
|
+
bi.defaultProps = {
|
|
2051
|
+
in: !1,
|
|
2052
|
+
mountOnEnter: !1,
|
|
2053
|
+
unmountOnExit: !1,
|
|
2054
|
+
appear: !1,
|
|
2055
|
+
enter: !0,
|
|
2056
|
+
exit: !0,
|
|
2057
|
+
onEnter: xi,
|
|
2058
|
+
onEntering: xi,
|
|
2059
|
+
onEntered: xi,
|
|
2060
|
+
onExit: xi,
|
|
2061
|
+
onExiting: xi,
|
|
2062
|
+
onExited: xi
|
|
2063
|
+
};
|
|
2064
|
+
var Ti = function(e) {
|
|
2065
|
+
e.scrollTop = e.scrollTop;
|
|
2066
|
+
}, Ei = function(e) {
|
|
2067
|
+
return Math.round(e) + "ms";
|
|
2068
|
+
};
|
|
2069
|
+
function Di(e, t) {
|
|
2070
|
+
e === void 0 && (e = ["all"]);
|
|
2071
|
+
var n = t || {}, r = n.duration, i = r === void 0 ? 300 : r, a = n.easing, o = a === void 0 ? "cubic-bezier(0.4, 0, 0.2, 1)" : a, s = n.delay, c = s === void 0 ? 0 : s;
|
|
2072
|
+
return (Array.isArray(e) ? e : [e]).map(function(e) {
|
|
2073
|
+
var t = typeof i == "string" ? i : Ei(i), n = typeof c == "string" ? c : Ei(c);
|
|
2074
|
+
return e + " " + t + " " + o + " " + n;
|
|
2075
|
+
}).join(",");
|
|
2076
|
+
}
|
|
2077
|
+
function Oi(e) {
|
|
2078
|
+
return function(e) {
|
|
2079
|
+
return e && e.ownerDocument || document;
|
|
2080
|
+
}(e).defaultView || window;
|
|
2081
|
+
}
|
|
2082
|
+
function ki(e, t) {
|
|
2083
|
+
if (t) {
|
|
2084
|
+
var n = function(e, t) {
|
|
2085
|
+
var n, r = t.getBoundingClientRect(), i = Oi(t);
|
|
2086
|
+
if (t.fakeTransform) n = t.fakeTransform;
|
|
2087
|
+
else {
|
|
2088
|
+
var a = i.getComputedStyle(t);
|
|
2089
|
+
n = a.getPropertyValue("-webkit-transform") || a.getPropertyValue("transform");
|
|
2090
|
+
}
|
|
2091
|
+
var o = 0, s = 0;
|
|
2092
|
+
if (n && n !== "none" && typeof n == "string") {
|
|
2093
|
+
var c = n.split("(")[1].split(")")[0].split(",");
|
|
2094
|
+
o = parseInt(c[4], 10), s = parseInt(c[5], 10);
|
|
2095
|
+
}
|
|
2096
|
+
switch (e) {
|
|
2097
|
+
case "left": return "translateX(" + (i.innerWidth + o - r.left) + "px)";
|
|
2098
|
+
case "right": return "translateX(-" + (r.left + r.width - o) + "px)";
|
|
2099
|
+
case "up": return "translateY(" + (i.innerHeight + s - r.top) + "px)";
|
|
2100
|
+
default: return "translateY(-" + (r.top + r.height - s) + "px)";
|
|
2101
|
+
}
|
|
2102
|
+
}(e, t);
|
|
2103
|
+
n && (t.style.webkitTransform = n, t.style.transform = n);
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
var Ai = (0, X.forwardRef)(function(e, t) {
|
|
2107
|
+
var n = e.children, r = e.direction, i = r === void 0 ? "down" : r, a = e.in, o = e.style, s = e.timeout, c = s === void 0 ? 0 : s, l = e.onEnter, u = e.onEntered, d = e.onExit, f = e.onExited, p = oi(e, [
|
|
2108
|
+
"children",
|
|
2109
|
+
"direction",
|
|
2110
|
+
"in",
|
|
2111
|
+
"style",
|
|
2112
|
+
"timeout",
|
|
2113
|
+
"onEnter",
|
|
2114
|
+
"onEntered",
|
|
2115
|
+
"onExit",
|
|
2116
|
+
"onExited"
|
|
2117
|
+
]), m = (0, X.useRef)(null), h = Ci(Ci(n.ref, m), t), g = (0, X.useCallback)(function() {
|
|
2118
|
+
m.current && ki(i, m.current);
|
|
2119
|
+
}, [i]);
|
|
2120
|
+
return (0, X.useEffect)(function() {
|
|
2121
|
+
if (!a && i !== "down" && i !== "right") {
|
|
2122
|
+
var e = function(e, t) {
|
|
2123
|
+
var n;
|
|
2124
|
+
function r() {
|
|
2125
|
+
for (var r = this, i = arguments.length, a = Array(i), o = 0; o < i; o++) a[o] = arguments[o];
|
|
2126
|
+
clearTimeout(n), n = setTimeout(function() {
|
|
2127
|
+
e.apply(r, a);
|
|
2128
|
+
}, t);
|
|
2129
|
+
}
|
|
2130
|
+
return t === void 0 && (t = 166), r.clear = function() {
|
|
2131
|
+
clearTimeout(n);
|
|
2132
|
+
}, r;
|
|
2133
|
+
}(function() {
|
|
2134
|
+
m.current && ki(i, m.current);
|
|
2135
|
+
}), t = Oi(m.current);
|
|
2136
|
+
return t.addEventListener("resize", e), function() {
|
|
2137
|
+
e.clear(), t.removeEventListener("resize", e);
|
|
2138
|
+
};
|
|
2139
|
+
}
|
|
2140
|
+
}, [i, a]), (0, X.useEffect)(function() {
|
|
2141
|
+
a || g();
|
|
2142
|
+
}, [a, g]), (0, X.createElement)(bi, Object.assign({
|
|
2143
|
+
appear: !0,
|
|
2144
|
+
nodeRef: m,
|
|
2145
|
+
onEnter: function(e, t) {
|
|
2146
|
+
ki(i, e), Ti(e), l && l(e, t);
|
|
2147
|
+
},
|
|
2148
|
+
onEntered: u,
|
|
2149
|
+
onEntering: function(e) {
|
|
2150
|
+
var t = wi({
|
|
2151
|
+
timeout: c,
|
|
2152
|
+
mode: "enter",
|
|
2153
|
+
style: Q({}, o, { transitionTimingFunction: o?.transitionTimingFunction || "cubic-bezier(0.0, 0, 0.2, 1)" })
|
|
2154
|
+
});
|
|
2155
|
+
e.style.webkitTransition = Di("-webkit-transform", t), e.style.transition = Di("transform", t), e.style.webkitTransform = "none", e.style.transform = "none";
|
|
2156
|
+
},
|
|
2157
|
+
onExit: function(e) {
|
|
2158
|
+
var t = wi({
|
|
2159
|
+
timeout: c,
|
|
2160
|
+
mode: "exit",
|
|
2161
|
+
style: Q({}, o, { transitionTimingFunction: o?.transitionTimingFunction || "cubic-bezier(0.4, 0, 0.6, 1)" })
|
|
2162
|
+
});
|
|
2163
|
+
e.style.webkitTransition = Di("-webkit-transform", t), e.style.transition = Di("transform", t), ki(i, e), d && d(e);
|
|
2164
|
+
},
|
|
2165
|
+
onExited: function(e) {
|
|
2166
|
+
e.style.webkitTransition = "", e.style.transition = "", f && f(e);
|
|
2167
|
+
},
|
|
2168
|
+
in: a,
|
|
2169
|
+
timeout: c
|
|
2170
|
+
}, p), function(e, t) {
|
|
2171
|
+
return (0, X.cloneElement)(n, Q({
|
|
2172
|
+
ref: h,
|
|
2173
|
+
style: Q({ visibility: e !== "exited" || a ? void 0 : "hidden" }, o, {}, n.props.style)
|
|
2174
|
+
}, t));
|
|
2175
|
+
});
|
|
2176
|
+
});
|
|
2177
|
+
Ai.displayName = "Slide";
|
|
2178
|
+
var ji = function(e) {
|
|
2179
|
+
return X.createElement("svg", Object.assign({
|
|
2180
|
+
viewBox: "0 0 24 24",
|
|
2181
|
+
focusable: "false",
|
|
2182
|
+
style: {
|
|
2183
|
+
fontSize: 20,
|
|
2184
|
+
marginInlineEnd: 8,
|
|
2185
|
+
userSelect: "none",
|
|
2186
|
+
width: "1em",
|
|
2187
|
+
height: "1em",
|
|
2188
|
+
display: "inline-block",
|
|
2189
|
+
fill: "currentColor",
|
|
2190
|
+
flexShrink: 0
|
|
2191
|
+
}
|
|
2192
|
+
}, e));
|
|
2193
|
+
}, Mi = {
|
|
2194
|
+
maxSnack: 3,
|
|
2195
|
+
persist: !1,
|
|
2196
|
+
hideIconVariant: !1,
|
|
2197
|
+
disableWindowBlurListener: !1,
|
|
2198
|
+
variant: "default",
|
|
2199
|
+
autoHideDuration: 5e3,
|
|
2200
|
+
iconVariant: {
|
|
2201
|
+
default: void 0,
|
|
2202
|
+
success: X.createElement(function() {
|
|
2203
|
+
return X.createElement(ji, null, X.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\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z" }));
|
|
2204
|
+
}, null),
|
|
2205
|
+
warning: X.createElement(function() {
|
|
2206
|
+
return X.createElement(ji, null, X.createElement("path", { d: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z" }));
|
|
2207
|
+
}, null),
|
|
2208
|
+
error: X.createElement(function() {
|
|
2209
|
+
return X.createElement(ji, null, X.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,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z" }));
|
|
2210
|
+
}, null),
|
|
2211
|
+
info: X.createElement(function() {
|
|
2212
|
+
return X.createElement(ji, null, X.createElement("path", { d: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z" }));
|
|
2213
|
+
}, null)
|
|
2214
|
+
},
|
|
2215
|
+
anchorOrigin: {
|
|
2216
|
+
vertical: "bottom",
|
|
2217
|
+
horizontal: "left"
|
|
2218
|
+
},
|
|
2219
|
+
TransitionComponent: Ai,
|
|
2220
|
+
transitionDuration: {
|
|
2221
|
+
enter: 225,
|
|
2222
|
+
exit: 195
|
|
2223
|
+
}
|
|
2224
|
+
};
|
|
2225
|
+
function Ni(e) {
|
|
2226
|
+
return Object.entries(e).reduce(function(e, t) {
|
|
2227
|
+
var n, r = t[0], i = t[1];
|
|
2228
|
+
return Q({}, e, ((n = {})[r] = ni(i), n));
|
|
2229
|
+
}, {});
|
|
2230
|
+
}
|
|
2231
|
+
var Pi = "notistack-CollapseWrapper", Fi = function(e) {
|
|
2232
|
+
return "notistack-MuiContent-" + e;
|
|
2233
|
+
}, Ii = Ni({
|
|
2234
|
+
root: { height: 0 },
|
|
2235
|
+
entered: { height: "auto" }
|
|
2236
|
+
}), Li = "0px", Ri = (0, X.forwardRef)(function(e, t) {
|
|
2237
|
+
var n = e.children, r = e.in, i = e.onExited, a = (0, X.useRef)(null), o = (0, X.useRef)(null), s = Ci(t, o), c = function() {
|
|
2238
|
+
return a.current ? a.current.clientHeight : 0;
|
|
2239
|
+
};
|
|
2240
|
+
return (0, X.createElement)(bi, {
|
|
2241
|
+
in: r,
|
|
2242
|
+
unmountOnExit: !0,
|
|
2243
|
+
onEnter: function(e) {
|
|
2244
|
+
e.style.height = Li;
|
|
2245
|
+
},
|
|
2246
|
+
onEntered: function(e) {
|
|
2247
|
+
e.style.height = "auto";
|
|
2248
|
+
},
|
|
2249
|
+
onEntering: function(e) {
|
|
2250
|
+
var t = c(), n = wi({
|
|
2251
|
+
timeout: 175,
|
|
2252
|
+
mode: "enter"
|
|
2253
|
+
}), r = n.duration, i = n.easing;
|
|
2254
|
+
e.style.transitionDuration = typeof r == "string" ? r : r + "ms", e.style.height = t + "px", e.style.transitionTimingFunction = i || "";
|
|
2255
|
+
},
|
|
2256
|
+
onExit: function(e) {
|
|
2257
|
+
e.style.height = c() + "px";
|
|
2258
|
+
},
|
|
2259
|
+
onExited: i,
|
|
2260
|
+
onExiting: function(e) {
|
|
2261
|
+
Ti(e);
|
|
2262
|
+
var t = wi({
|
|
2263
|
+
timeout: 175,
|
|
2264
|
+
mode: "exit"
|
|
2265
|
+
}), n = t.duration, r = t.easing;
|
|
2266
|
+
e.style.transitionDuration = typeof n == "string" ? n : n + "ms", e.style.height = Li, e.style.transitionTimingFunction = r || "";
|
|
2267
|
+
},
|
|
2268
|
+
nodeRef: o,
|
|
2269
|
+
timeout: 175
|
|
2270
|
+
}, function(e, t) {
|
|
2271
|
+
return (0, X.createElement)("div", Object.assign({
|
|
2272
|
+
ref: s,
|
|
2273
|
+
className: Jr(Ii.root, e === "entered" && Ii.entered),
|
|
2274
|
+
style: Q({
|
|
2275
|
+
pointerEvents: "all",
|
|
2276
|
+
overflow: "hidden",
|
|
2277
|
+
minHeight: Li,
|
|
2278
|
+
transition: Di("height")
|
|
2279
|
+
}, e === "entered" && { overflow: "visible" }, {}, e === "exited" && !r && { visibility: "hidden" })
|
|
2280
|
+
}, t), (0, X.createElement)("div", {
|
|
2281
|
+
ref: a,
|
|
2282
|
+
className: Pi,
|
|
2283
|
+
style: {
|
|
2284
|
+
display: "flex",
|
|
2285
|
+
width: "100%"
|
|
2286
|
+
}
|
|
2287
|
+
}, n));
|
|
2288
|
+
});
|
|
2289
|
+
});
|
|
2290
|
+
Ri.displayName = "Collapse";
|
|
2291
|
+
var zi = {
|
|
2292
|
+
right: "left",
|
|
2293
|
+
left: "right",
|
|
2294
|
+
bottom: "up",
|
|
2295
|
+
top: "down"
|
|
2296
|
+
}, Bi = function(e) {
|
|
2297
|
+
return "anchorOrigin" + pi(e);
|
|
2298
|
+
}, Vi = function() {};
|
|
2299
|
+
function Hi(e, t) {
|
|
2300
|
+
return e.reduce(function(e, n) {
|
|
2301
|
+
return n == null ? e : function() {
|
|
2302
|
+
var r = [...arguments], i = [].concat(r);
|
|
2303
|
+
t && i.indexOf(t) === -1 && i.push(t), e.apply(this, i), n.apply(this, i);
|
|
2304
|
+
};
|
|
2305
|
+
}, Vi);
|
|
2306
|
+
}
|
|
2307
|
+
var Ui, Wi = typeof window < "u" ? X.useLayoutEffect : X.useEffect;
|
|
2308
|
+
function Gi(e) {
|
|
2309
|
+
var t = (0, X.useRef)(e);
|
|
2310
|
+
return Wi(function() {
|
|
2311
|
+
t.current = e;
|
|
2312
|
+
}), (0, X.useCallback)(function() {
|
|
2313
|
+
return t.current.apply(void 0, arguments);
|
|
2314
|
+
}, []);
|
|
2315
|
+
}
|
|
2316
|
+
var Ki = (0, X.forwardRef)(function(e, t) {
|
|
2317
|
+
var n = e.children, r = e.className, i = e.autoHideDuration, a = e.disableWindowBlurListener, o = a !== void 0 && a, s = e.onClose, c = e.id, l = e.open, u = e.SnackbarProps, d = u === void 0 ? {} : u, f = (0, X.useRef)(), p = Gi(function() {
|
|
2318
|
+
s && s.apply(void 0, arguments);
|
|
2319
|
+
}), m = Gi(function(e) {
|
|
2320
|
+
s && e != null && (f.current && clearTimeout(f.current), f.current = setTimeout(function() {
|
|
2321
|
+
p(null, "timeout", c);
|
|
2322
|
+
}, e));
|
|
2323
|
+
});
|
|
2324
|
+
(0, X.useEffect)(function() {
|
|
2325
|
+
return l && m(i), function() {
|
|
2326
|
+
f.current && clearTimeout(f.current);
|
|
2327
|
+
};
|
|
2328
|
+
}, [
|
|
2329
|
+
l,
|
|
2330
|
+
i,
|
|
2331
|
+
m
|
|
2332
|
+
]);
|
|
2333
|
+
var h = function() {
|
|
2334
|
+
f.current && clearTimeout(f.current);
|
|
2335
|
+
}, g = (0, X.useCallback)(function() {
|
|
2336
|
+
i != null && m(.5 * i);
|
|
2337
|
+
}, [i, m]);
|
|
2338
|
+
return (0, X.useEffect)(function() {
|
|
2339
|
+
if (!o && l) return window.addEventListener("focus", g), window.addEventListener("blur", h), function() {
|
|
2340
|
+
window.removeEventListener("focus", g), window.removeEventListener("blur", h);
|
|
2341
|
+
};
|
|
2342
|
+
}, [
|
|
2343
|
+
o,
|
|
2344
|
+
g,
|
|
2345
|
+
l
|
|
2346
|
+
]), (0, X.createElement)("div", Object.assign({ ref: t }, d, {
|
|
2347
|
+
className: Jr("notistack-Snackbar", r),
|
|
2348
|
+
onMouseEnter: function(e) {
|
|
2349
|
+
d.onMouseEnter && d.onMouseEnter(e), h();
|
|
2350
|
+
},
|
|
2351
|
+
onMouseLeave: function(e) {
|
|
2352
|
+
d.onMouseLeave && d.onMouseLeave(e), g();
|
|
2353
|
+
}
|
|
2354
|
+
}), n);
|
|
2355
|
+
});
|
|
2356
|
+
Ki.displayName = "Snackbar";
|
|
2357
|
+
var qi = Ni({ root: (Ui = {
|
|
2358
|
+
display: "flex",
|
|
2359
|
+
flexWrap: "wrap",
|
|
2360
|
+
flexGrow: 1
|
|
2361
|
+
}, Ui[di] = {
|
|
2362
|
+
flexGrow: "initial",
|
|
2363
|
+
minWidth: "288px"
|
|
2364
|
+
}, Ui) }), Ji = (0, X.forwardRef)(function(e, t) {
|
|
2365
|
+
var n = e.className, r = oi(e, ["className"]);
|
|
2366
|
+
return X.createElement("div", Object.assign({
|
|
2367
|
+
ref: t,
|
|
2368
|
+
className: Jr(qi.root, n)
|
|
2369
|
+
}, r));
|
|
2370
|
+
});
|
|
2371
|
+
Ji.displayName = "SnackbarContent";
|
|
2372
|
+
var Yi, Xi, Zi, Qi, $i, ea = Ni({
|
|
2373
|
+
root: {
|
|
2374
|
+
backgroundColor: "#313131",
|
|
2375
|
+
fontSize: "0.875rem",
|
|
2376
|
+
lineHeight: 1.43,
|
|
2377
|
+
letterSpacing: "0.01071em",
|
|
2378
|
+
color: "#fff",
|
|
2379
|
+
alignItems: "center",
|
|
2380
|
+
padding: "6px 16px",
|
|
2381
|
+
borderRadius: "4px",
|
|
2382
|
+
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)"
|
|
2383
|
+
},
|
|
2384
|
+
lessPadding: { paddingLeft: "20px" },
|
|
2385
|
+
default: { backgroundColor: "#313131" },
|
|
2386
|
+
success: { backgroundColor: "#43a047" },
|
|
2387
|
+
error: { backgroundColor: "#d32f2f" },
|
|
2388
|
+
warning: { backgroundColor: "#ff9800" },
|
|
2389
|
+
info: { backgroundColor: "#2196f3" },
|
|
2390
|
+
message: {
|
|
2391
|
+
display: "flex",
|
|
2392
|
+
alignItems: "center",
|
|
2393
|
+
padding: "8px 0"
|
|
2394
|
+
},
|
|
2395
|
+
action: {
|
|
2396
|
+
display: "flex",
|
|
2397
|
+
alignItems: "center",
|
|
2398
|
+
marginLeft: "auto",
|
|
2399
|
+
paddingLeft: "16px",
|
|
2400
|
+
marginRight: "-8px"
|
|
2401
|
+
}
|
|
2402
|
+
}), ta = "notistack-snackbar", na = (0, X.forwardRef)(function(e, t) {
|
|
2403
|
+
var n = e.id, r = e.message, i = e.action, a = e.iconVariant, o = e.variant, s = e.hideIconVariant, c = e.style, l = e.className, u = a[o], d = i;
|
|
2404
|
+
return typeof d == "function" && (d = d(n)), X.createElement(Ji, {
|
|
2405
|
+
ref: t,
|
|
2406
|
+
role: "alert",
|
|
2407
|
+
"aria-describedby": ta,
|
|
2408
|
+
style: c,
|
|
2409
|
+
className: Jr("notistack-MuiContent", Fi(o), ea.root, ea[o], l, !s && u && ea.lessPadding)
|
|
2410
|
+
}, X.createElement("div", {
|
|
2411
|
+
id: ta,
|
|
2412
|
+
className: ea.message
|
|
2413
|
+
}, s ? null : u, r), d && X.createElement("div", { className: ea.action }, d));
|
|
2414
|
+
});
|
|
2415
|
+
na.displayName = "MaterialDesignContent";
|
|
2416
|
+
var ra = (0, X.memo)(na), ia = Ni({ wrappedRoot: {
|
|
2417
|
+
width: "100%",
|
|
2418
|
+
position: "relative",
|
|
2419
|
+
transform: "translateX(0)",
|
|
2420
|
+
top: 0,
|
|
2421
|
+
right: 0,
|
|
2422
|
+
bottom: 0,
|
|
2423
|
+
left: 0,
|
|
2424
|
+
minWidth: "288px"
|
|
2425
|
+
} }), aa = function(e) {
|
|
2426
|
+
var t = (0, X.useRef)(), n = (0, X.useState)(!0), r = n[0], i = n[1], a = Hi([e.snack.onClose, e.onClose]), o = (0, X.useCallback)(function() {
|
|
2427
|
+
t.current = setTimeout(function() {
|
|
2428
|
+
i(function(e) {
|
|
2429
|
+
return !e;
|
|
2430
|
+
});
|
|
2431
|
+
}, 125);
|
|
2432
|
+
}, []);
|
|
2433
|
+
(0, X.useEffect)(function() {
|
|
2434
|
+
return function() {
|
|
2435
|
+
t.current && clearTimeout(t.current);
|
|
2436
|
+
};
|
|
2437
|
+
}, []);
|
|
2438
|
+
var s, c = e.snack, l = e.classes, u = e.Component, d = u === void 0 ? ra : u, f = (0, X.useMemo)(function() {
|
|
2439
|
+
return function(e) {
|
|
2440
|
+
e === void 0 && (e = {});
|
|
2441
|
+
var t = {
|
|
2442
|
+
containerRoot: !0,
|
|
2443
|
+
containerAnchorOriginTopCenter: !0,
|
|
2444
|
+
containerAnchorOriginBottomCenter: !0,
|
|
2445
|
+
containerAnchorOriginTopRight: !0,
|
|
2446
|
+
containerAnchorOriginBottomRight: !0,
|
|
2447
|
+
containerAnchorOriginTopLeft: !0,
|
|
2448
|
+
containerAnchorOriginBottomLeft: !0
|
|
2449
|
+
};
|
|
2450
|
+
return Object.keys(e).filter(function(e) {
|
|
2451
|
+
return !t[e];
|
|
2452
|
+
}).reduce(function(t, n) {
|
|
2453
|
+
var r;
|
|
2454
|
+
return Q({}, t, ((r = {})[n] = e[n], r));
|
|
2455
|
+
}, {});
|
|
2456
|
+
}(l);
|
|
2457
|
+
}, [l]), p = c.open, m = c.SnackbarProps, h = c.TransitionComponent, g = c.TransitionProps, _ = c.transitionDuration, v = c.disableWindowBlurListener, y = c.content, b = oi(c, [
|
|
2458
|
+
"open",
|
|
2459
|
+
"SnackbarProps",
|
|
2460
|
+
"TransitionComponent",
|
|
2461
|
+
"TransitionProps",
|
|
2462
|
+
"transitionDuration",
|
|
2463
|
+
"disableWindowBlurListener",
|
|
2464
|
+
"content",
|
|
2465
|
+
"entered",
|
|
2466
|
+
"requestClose",
|
|
2467
|
+
"onEnter",
|
|
2468
|
+
"onEntered",
|
|
2469
|
+
"onExit",
|
|
2470
|
+
"onExited"
|
|
2471
|
+
]), x = Q({
|
|
2472
|
+
direction: (s = b.anchorOrigin, s.horizontal === "center" ? zi[s.vertical] : zi[s.horizontal]),
|
|
2473
|
+
timeout: _
|
|
2474
|
+
}, g), S = y;
|
|
2475
|
+
typeof S == "function" && (S = S(b.id, b.message));
|
|
2476
|
+
var C = [
|
|
2477
|
+
"onEnter",
|
|
2478
|
+
"onEntered",
|
|
2479
|
+
"onExit",
|
|
2480
|
+
"onExited"
|
|
2481
|
+
].reduce(function(t, n) {
|
|
2482
|
+
var r;
|
|
2483
|
+
return Q({}, t, ((r = {})[n] = Hi([e.snack[n], e[n]], b.id), r));
|
|
2484
|
+
}, {});
|
|
2485
|
+
return X.createElement(Ri, {
|
|
2486
|
+
in: r,
|
|
2487
|
+
onExited: C.onExited
|
|
2488
|
+
}, X.createElement(Ki, {
|
|
2489
|
+
open: p,
|
|
2490
|
+
id: b.id,
|
|
2491
|
+
disableWindowBlurListener: v,
|
|
2492
|
+
autoHideDuration: b.autoHideDuration,
|
|
2493
|
+
className: Jr(ia.wrappedRoot, f.root, f[Bi(b.anchorOrigin)]),
|
|
2494
|
+
SnackbarProps: m,
|
|
2495
|
+
onClose: a
|
|
2496
|
+
}, X.createElement(h, Object.assign({}, x, {
|
|
2497
|
+
appear: !0,
|
|
2498
|
+
in: p,
|
|
2499
|
+
onExit: C.onExit,
|
|
2500
|
+
onExited: o,
|
|
2501
|
+
onEnter: C.onEnter,
|
|
2502
|
+
onEntered: Hi([C.onEntered, function() {
|
|
2503
|
+
e.snack.requestClose && a(null, "instructed", e.snack.id);
|
|
2504
|
+
}], b.id)
|
|
2505
|
+
}), S || X.createElement(d, Object.assign({}, b)))));
|
|
2506
|
+
}, oa = 20, sa = 6, ca = 2, la = "." + Pi, ua = Ni({
|
|
2507
|
+
root: (Yi = {
|
|
2508
|
+
boxSizing: "border-box",
|
|
2509
|
+
display: "flex",
|
|
2510
|
+
maxHeight: "100%",
|
|
2511
|
+
position: "fixed",
|
|
2512
|
+
zIndex: 1400,
|
|
2513
|
+
height: "auto",
|
|
2514
|
+
width: "auto",
|
|
2515
|
+
transition: Di([
|
|
2516
|
+
"top",
|
|
2517
|
+
"right",
|
|
2518
|
+
"bottom",
|
|
2519
|
+
"left",
|
|
2520
|
+
"max-width"
|
|
2521
|
+
], {
|
|
2522
|
+
duration: 300,
|
|
2523
|
+
easing: "ease"
|
|
2524
|
+
}),
|
|
2525
|
+
pointerEvents: "none"
|
|
2526
|
+
}, Yi[la] = {
|
|
2527
|
+
padding: sa + "px 0px",
|
|
2528
|
+
transition: "padding 300ms ease 0ms"
|
|
2529
|
+
}, Yi.maxWidth = "calc(100% - " + 2 * oa + "px)", Yi[ui] = {
|
|
2530
|
+
width: "100%",
|
|
2531
|
+
maxWidth: "calc(100% - 32px)"
|
|
2532
|
+
}, Yi),
|
|
2533
|
+
rootDense: (Xi = {}, Xi[la] = { padding: ca + "px 0px" }, Xi),
|
|
2534
|
+
top: {
|
|
2535
|
+
top: oa - sa + "px",
|
|
2536
|
+
flexDirection: "column"
|
|
2537
|
+
},
|
|
2538
|
+
bottom: {
|
|
2539
|
+
bottom: oa - sa + "px",
|
|
2540
|
+
flexDirection: "column-reverse"
|
|
2541
|
+
},
|
|
2542
|
+
left: (Zi = { left: oa + "px" }, Zi[di] = { alignItems: "flex-start" }, Zi[ui] = { left: "16px" }, Zi),
|
|
2543
|
+
right: (Qi = { right: oa + "px" }, Qi[di] = { alignItems: "flex-end" }, Qi[ui] = { right: "16px" }, Qi),
|
|
2544
|
+
center: ($i = {
|
|
2545
|
+
left: "50%",
|
|
2546
|
+
transform: "translateX(-50%)"
|
|
2547
|
+
}, $i[di] = { alignItems: "center" }, $i)
|
|
2548
|
+
}), da = (0, X.memo)(function(e) {
|
|
2549
|
+
var t = e.classes, n = t === void 0 ? {} : t, r = e.anchorOrigin, i = e.dense, a = e.children, o = Jr("notistack-SnackbarContainer", ua[r.vertical], ua[r.horizontal], ua.root, n.containerRoot, n["containerAnchorOrigin" + pi(r)], i && ua.rootDense);
|
|
2550
|
+
return X.createElement("div", { className: o }, a);
|
|
2551
|
+
}), fa = function(e) {
|
|
2552
|
+
return !(typeof e == "string" || (0, X.isValidElement)(e));
|
|
2553
|
+
}, pa = function(e) {
|
|
2554
|
+
function t(t) {
|
|
2555
|
+
var n = e.call(this, t) || this;
|
|
2556
|
+
return n.enqueueSnackbar = function(e, t) {
|
|
2557
|
+
if (t === void 0 && (t = {}), e == null) throw Error("enqueueSnackbar called with invalid argument");
|
|
2558
|
+
var r = fa(e) ? e : t, i = fa(e) ? e.message : e, a = r.key, o = r.preventDuplicate, s = oi(r, ["key", "preventDuplicate"]), c = mi(a), l = c ? a : (/* @__PURE__ */ new Date()).getTime() + Math.random(), u = function(e, t) {
|
|
2559
|
+
return function(n, r) {
|
|
2560
|
+
return r === void 0 && (r = !1), r ? Q({}, Mi[n], {}, t[n], {}, e[n]) : n === "autoHideDuration" ? (i = e.autoHideDuration, a = t.autoHideDuration, (o = function(e) {
|
|
2561
|
+
return typeof e == "number" || e === null;
|
|
2562
|
+
})(i) ? i : o(a) ? a : Mi.autoHideDuration) : n === "transitionDuration" ? function(e, t) {
|
|
2563
|
+
var n = function(e, t) {
|
|
2564
|
+
return t.some(function(t) {
|
|
2565
|
+
return typeof e === t;
|
|
2566
|
+
});
|
|
2567
|
+
};
|
|
2568
|
+
return n(e, ["string", "number"]) ? e : n(e, ["object"]) ? Q({}, Mi.transitionDuration, {}, n(t, ["object"]) && t, {}, e) : n(t, ["string", "number"]) ? t : n(t, ["object"]) ? Q({}, Mi.transitionDuration, {}, t) : Mi.transitionDuration;
|
|
2569
|
+
}(e.transitionDuration, t.transitionDuration) : e[n] || t[n] || Mi[n];
|
|
2570
|
+
var i, a, o;
|
|
2571
|
+
};
|
|
2572
|
+
}(s, n.props), d = Q({ id: l }, s, {
|
|
2573
|
+
message: i,
|
|
2574
|
+
open: !0,
|
|
2575
|
+
entered: !1,
|
|
2576
|
+
requestClose: !1,
|
|
2577
|
+
persist: u("persist"),
|
|
2578
|
+
action: u("action"),
|
|
2579
|
+
content: u("content"),
|
|
2580
|
+
variant: u("variant"),
|
|
2581
|
+
anchorOrigin: u("anchorOrigin"),
|
|
2582
|
+
disableWindowBlurListener: u("disableWindowBlurListener"),
|
|
2583
|
+
autoHideDuration: u("autoHideDuration"),
|
|
2584
|
+
hideIconVariant: u("hideIconVariant"),
|
|
2585
|
+
TransitionComponent: u("TransitionComponent"),
|
|
2586
|
+
transitionDuration: u("transitionDuration"),
|
|
2587
|
+
TransitionProps: u("TransitionProps", !0),
|
|
2588
|
+
iconVariant: u("iconVariant", !0),
|
|
2589
|
+
style: u("style", !0),
|
|
2590
|
+
SnackbarProps: u("SnackbarProps", !0),
|
|
2591
|
+
className: Jr(n.props.className, s.className)
|
|
2592
|
+
});
|
|
2593
|
+
return d.persist && (d.autoHideDuration = void 0), n.setState(function(e) {
|
|
2594
|
+
if (o === void 0 && n.props.preventDuplicate || o) {
|
|
2595
|
+
var t = function(e) {
|
|
2596
|
+
return c ? e.id === l : e.message === i;
|
|
2597
|
+
}, r = e.queue.findIndex(t) > -1, a = e.snacks.findIndex(t) > -1;
|
|
2598
|
+
if (r || a) return e;
|
|
2599
|
+
}
|
|
2600
|
+
return n.handleDisplaySnack(Q({}, e, { queue: [].concat(e.queue, [d]) }));
|
|
2601
|
+
}), l;
|
|
2602
|
+
}, n.handleDisplaySnack = function(e) {
|
|
2603
|
+
return e.snacks.length >= n.maxSnack ? n.handleDismissOldest(e) : n.processQueue(e);
|
|
2604
|
+
}, n.processQueue = function(e) {
|
|
2605
|
+
var t = e.queue, n = e.snacks;
|
|
2606
|
+
return t.length > 0 ? Q({}, e, {
|
|
2607
|
+
snacks: [].concat(n, [t[0]]),
|
|
2608
|
+
queue: t.slice(1, t.length)
|
|
2609
|
+
}) : e;
|
|
2610
|
+
}, n.handleDismissOldest = function(e) {
|
|
2611
|
+
if (e.snacks.some(function(e) {
|
|
2612
|
+
return !e.open || e.requestClose;
|
|
2613
|
+
})) return e;
|
|
2614
|
+
var t = !1, r = !1;
|
|
2615
|
+
e.snacks.reduce(function(e, t) {
|
|
2616
|
+
return e + (t.open && t.persist ? 1 : 0);
|
|
2617
|
+
}, 0) === n.maxSnack && (r = !0);
|
|
2618
|
+
var i = e.snacks.map(function(e) {
|
|
2619
|
+
return t || e.persist && !r ? Q({}, e) : (t = !0, e.entered ? (e.onClose && e.onClose(null, "maxsnack", e.id), n.props.onClose && n.props.onClose(null, "maxsnack", e.id), Q({}, e, { open: !1 })) : Q({}, e, { requestClose: !0 }));
|
|
2620
|
+
});
|
|
2621
|
+
return Q({}, e, { snacks: i });
|
|
2622
|
+
}, n.handleEnteredSnack = function(e, t, r) {
|
|
2623
|
+
if (!mi(r)) throw Error("handleEnteredSnack Cannot be called with undefined key");
|
|
2624
|
+
n.setState(function(e) {
|
|
2625
|
+
return { snacks: e.snacks.map(function(e) {
|
|
2626
|
+
return e.id === r ? Q({}, e, { entered: !0 }) : Q({}, e);
|
|
2627
|
+
}) };
|
|
2628
|
+
});
|
|
2629
|
+
}, n.handleCloseSnack = function(e, t, r) {
|
|
2630
|
+
n.props.onClose && n.props.onClose(e, t, r);
|
|
2631
|
+
var i = r === void 0;
|
|
2632
|
+
n.setState(function(e) {
|
|
2633
|
+
var t = e.snacks, n = e.queue;
|
|
2634
|
+
return {
|
|
2635
|
+
snacks: t.map(function(e) {
|
|
2636
|
+
return i || e.id === r ? e.entered ? Q({}, e, { open: !1 }) : Q({}, e, { requestClose: !0 }) : Q({}, e);
|
|
2637
|
+
}),
|
|
2638
|
+
queue: n.filter(function(e) {
|
|
2639
|
+
return e.id !== r;
|
|
2640
|
+
})
|
|
2641
|
+
};
|
|
2642
|
+
});
|
|
2643
|
+
}, n.closeSnackbar = function(e) {
|
|
2644
|
+
var t = n.state.snacks.find(function(t) {
|
|
2645
|
+
return t.id === e;
|
|
2646
|
+
});
|
|
2647
|
+
mi(e) && t && t.onClose && t.onClose(null, "instructed", e), n.handleCloseSnack(null, "instructed", e);
|
|
2648
|
+
}, n.handleExitedSnack = function(e, t) {
|
|
2649
|
+
if (!mi(t)) throw Error("handleExitedSnack Cannot be called with undefined key");
|
|
2650
|
+
n.setState(function(e) {
|
|
2651
|
+
var r = n.processQueue(Q({}, e, { snacks: e.snacks.filter(function(e) {
|
|
2652
|
+
return e.id !== t;
|
|
2653
|
+
}) }));
|
|
2654
|
+
return r.queue.length === 0 ? r : n.handleDismissOldest(r);
|
|
2655
|
+
});
|
|
2656
|
+
}, n.enqueueSnackbar, n.closeSnackbar, n.state = {
|
|
2657
|
+
snacks: [],
|
|
2658
|
+
queue: [],
|
|
2659
|
+
contextValue: {
|
|
2660
|
+
enqueueSnackbar: n.enqueueSnackbar.bind(si(n)),
|
|
2661
|
+
closeSnackbar: n.closeSnackbar.bind(si(n))
|
|
2662
|
+
}
|
|
2663
|
+
}, n;
|
|
2664
|
+
}
|
|
2665
|
+
return ai(t, e), t.prototype.render = function() {
|
|
2666
|
+
var e = this, t = this.state.contextValue, n = this.props, r = n.domRoot, i = n.children, a = n.dense, o = a !== void 0 && a, s = n.Components, c = s === void 0 ? {} : s, l = n.classes, u = this.state.snacks.reduce(function(e, t) {
|
|
2667
|
+
var n, r = pi(t.anchorOrigin), i = e[r] || [];
|
|
2668
|
+
return Q({}, e, ((n = {})[r] = [].concat(i, [t]), n));
|
|
2669
|
+
}, {}), d = Object.keys(u).map(function(t) {
|
|
2670
|
+
var n = u[t], r = n[0];
|
|
2671
|
+
return X.createElement(da, {
|
|
2672
|
+
key: t,
|
|
2673
|
+
dense: o,
|
|
2674
|
+
anchorOrigin: r.anchorOrigin,
|
|
2675
|
+
classes: l
|
|
2676
|
+
}, n.map(function(t) {
|
|
2677
|
+
return X.createElement(aa, {
|
|
2678
|
+
key: t.id,
|
|
2679
|
+
snack: t,
|
|
2680
|
+
classes: l,
|
|
2681
|
+
Component: c[t.variant],
|
|
2682
|
+
onClose: e.handleCloseSnack,
|
|
2683
|
+
onEnter: e.props.onEnter,
|
|
2684
|
+
onExit: e.props.onExit,
|
|
2685
|
+
onExited: Hi([e.handleExitedSnack, e.props.onExited], t.id),
|
|
2686
|
+
onEntered: Hi([e.handleEnteredSnack, e.props.onEntered], t.id)
|
|
2687
|
+
});
|
|
2688
|
+
}));
|
|
2689
|
+
});
|
|
2690
|
+
return X.createElement(li.Provider, { value: t }, i, r ? (0, fr.createPortal)(d, r) : d);
|
|
2691
|
+
}, ii(t, [{
|
|
2692
|
+
key: "maxSnack",
|
|
2693
|
+
get: function() {
|
|
2694
|
+
return this.props.maxSnack || Mi.maxSnack;
|
|
2695
|
+
}
|
|
2696
|
+
}]), t;
|
|
2697
|
+
}(X.Component), ma = function() {
|
|
2698
|
+
return (0, X.useContext)(li);
|
|
2699
|
+
}, $ = {
|
|
2700
|
+
card: "_card_h0jnt_7",
|
|
2701
|
+
actionRoot: "_actionRoot_h0jnt_11",
|
|
2702
|
+
icons: "_icons_h0jnt_16",
|
|
2703
|
+
expand: "_expand_h0jnt_22",
|
|
2704
|
+
expandOpen: "_expandOpen_h0jnt_29",
|
|
2705
|
+
stackTraceContainer: "_stackTraceContainer_h0jnt_33",
|
|
2706
|
+
paper: "_paper_h0jnt_37",
|
|
2707
|
+
checkIcon: "_checkIcon_h0jnt_42",
|
|
2708
|
+
button: "_button_h0jnt_47"
|
|
2709
|
+
}, ha = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
2710
|
+
let { id: n, message: i, iconVariant: a, error: o, hideIconVariant: s, ...c } = e, l = M(), { closeSnackbar: u } = ma(), [f, p] = (0, X.useState)(!1), m = o ? r.collectErrorChain(o, !0)?.[0]?.error : void 0, h = m && !(m instanceof d), g = (0, X.useCallback)(() => {
|
|
2711
|
+
p((e) => !e);
|
|
2712
|
+
}, []), _ = (0, X.useCallback)(() => {
|
|
2713
|
+
u(n);
|
|
2714
|
+
}, [n, u]), v = m?.message;
|
|
2715
|
+
return !v && (0, X.isValidElement)(i) && (v = i), v || typeof i != "string" || (v = i), v ||= `Unknown Error: ${i}`, (0, Z.jsx)(Ji, {
|
|
2716
|
+
ref: t,
|
|
2717
|
+
className: Mt($.root, "error-snackbar"),
|
|
2718
|
+
children: (0, Z.jsxs)(tr, {
|
|
2719
|
+
className: $.card,
|
|
2720
|
+
style: {
|
|
2721
|
+
backgroundColor: "var(--sxl-color-error)",
|
|
2722
|
+
color: "var(--sxl-color-error-content)",
|
|
2723
|
+
border: "1px solid var(--sxl-color-error)"
|
|
2724
|
+
},
|
|
2725
|
+
children: [(0, Z.jsxs)(ir, {
|
|
2726
|
+
className: $.actionRoot,
|
|
2727
|
+
children: [
|
|
2728
|
+
s ? null : a?.error,
|
|
2729
|
+
(0, Z.jsx)(R, {
|
|
2730
|
+
variant: "body2",
|
|
2731
|
+
component: "div",
|
|
2732
|
+
className: $.typography,
|
|
2733
|
+
children: v
|
|
2734
|
+
}),
|
|
2735
|
+
(0, Z.jsx)("div", { style: { flex: "1 1 auto" } }),
|
|
2736
|
+
(0, Z.jsxs)("div", {
|
|
2737
|
+
className: $.icons,
|
|
2738
|
+
children: [h ? (0, Z.jsx)(Se, {
|
|
2739
|
+
"aria-label": l("toast.showMore"),
|
|
2740
|
+
size: "small",
|
|
2741
|
+
className: Mt($.expand, { [$.expandOpen]: f }),
|
|
2742
|
+
onClick: g,
|
|
2743
|
+
children: (0, Z.jsx)(b, { iconKey: "ExpandMore" })
|
|
2744
|
+
}) : null, (0, Z.jsx)(Se, {
|
|
2745
|
+
size: "small",
|
|
2746
|
+
className: $.expand,
|
|
2747
|
+
onClick: _,
|
|
2748
|
+
children: (0, Z.jsx)(b, {
|
|
2749
|
+
iconKey: "Close",
|
|
2750
|
+
style: { transform: "scale(0.8)" }
|
|
2751
|
+
})
|
|
2752
|
+
})]
|
|
2753
|
+
})
|
|
2754
|
+
]
|
|
2755
|
+
}), h ? (0, Z.jsx)(Ut, {
|
|
2756
|
+
in: f,
|
|
2757
|
+
timeout: "auto",
|
|
2758
|
+
children: (0, Z.jsx)("div", {
|
|
2759
|
+
className: $.stackTraceContainer,
|
|
2760
|
+
style: {
|
|
2761
|
+
backgroundColor: "color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))",
|
|
2762
|
+
borderTop: "1px solid var(--sxl-color-error)"
|
|
2763
|
+
},
|
|
2764
|
+
children: (0, Z.jsx)(We, {
|
|
2765
|
+
error: o,
|
|
2766
|
+
hideLineNumbers: !0
|
|
2767
|
+
})
|
|
2768
|
+
})
|
|
2769
|
+
}) : null]
|
|
2770
|
+
})
|
|
2771
|
+
});
|
|
2772
|
+
}));
|
|
2773
|
+
ha.displayName = "ToastError";
|
|
2774
|
+
var ga = (0, Z.jsx)(() => {
|
|
2775
|
+
let e = M();
|
|
2776
|
+
return (0, Z.jsx)(Oe, {
|
|
2777
|
+
label: "SheetXL",
|
|
2778
|
+
description: e("logo.description"),
|
|
2779
|
+
children: (0, Z.jsx)(I, {
|
|
2780
|
+
component: "a",
|
|
2781
|
+
href: "https://www.sheetxl.com",
|
|
2782
|
+
target: "_blank",
|
|
2783
|
+
rel: "noopener noreferrer",
|
|
2784
|
+
sx: {
|
|
2785
|
+
display: "inline-flex",
|
|
2786
|
+
width: "24px",
|
|
2787
|
+
height: "24px",
|
|
2788
|
+
marginBottom: "4px",
|
|
2789
|
+
marginLeft: "6px",
|
|
2790
|
+
cursor: "pointer"
|
|
2791
|
+
},
|
|
2792
|
+
children: (0, Z.jsx)(it, { style: {
|
|
2793
|
+
width: "24px",
|
|
2794
|
+
height: "24px"
|
|
2795
|
+
} })
|
|
2796
|
+
})
|
|
2797
|
+
});
|
|
2798
|
+
}, {}), _a = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
2799
|
+
let { workbook: n, className: r, logo: i = ga, mainElement: a, startElement: o, endElement: s, ...c } = e, [l, { width: u }] = oe(), d = u < 530, f = (0, X.useRef)(null), p = un([
|
|
2800
|
+
f,
|
|
2801
|
+
l,
|
|
2802
|
+
t
|
|
2803
|
+
]);
|
|
2804
|
+
return (0, Z.jsx)(I, {
|
|
2805
|
+
...c,
|
|
2806
|
+
ref: p,
|
|
2807
|
+
className: r,
|
|
2808
|
+
children: bn({
|
|
2809
|
+
isCompact: d,
|
|
2810
|
+
wrapperSelect: (e) => (0, Z.jsxs)(I, {
|
|
2811
|
+
sx: {
|
|
2812
|
+
display: "grid",
|
|
2813
|
+
gridTemplateColumns: "1fr auto 1fr",
|
|
2814
|
+
flex: "1",
|
|
2815
|
+
alignItems: "stretch",
|
|
2816
|
+
gap: (e) => e.spacing(1),
|
|
2817
|
+
paddingLeft: (e) => e.spacing(1),
|
|
2818
|
+
paddingRight: (e) => e.spacing(1)
|
|
2819
|
+
},
|
|
2820
|
+
children: [
|
|
2821
|
+
(0, Z.jsxs)(I, {
|
|
2822
|
+
sx: {
|
|
2823
|
+
display: "flex",
|
|
2824
|
+
flexDirection: "row",
|
|
2825
|
+
alignItems: "center",
|
|
2826
|
+
justifyContent: "start",
|
|
2827
|
+
gap: (e) => e.spacing(.5)
|
|
2828
|
+
},
|
|
2829
|
+
children: [i, (0, Z.jsxs)(I, {
|
|
2830
|
+
sx: {
|
|
2831
|
+
display: "flex",
|
|
2832
|
+
flexDirection: "row",
|
|
2833
|
+
alignItems: "center",
|
|
2834
|
+
gap: (e) => e.spacing(.25)
|
|
2835
|
+
},
|
|
2836
|
+
children: [o, e]
|
|
2837
|
+
})]
|
|
2838
|
+
}),
|
|
2839
|
+
(0, Z.jsx)(I, {
|
|
2840
|
+
sx: {
|
|
2841
|
+
display: "flex",
|
|
2842
|
+
flexDirection: "row",
|
|
2843
|
+
minWidth: 0,
|
|
2844
|
+
overflow: "hidden",
|
|
2845
|
+
alignItems: "center",
|
|
2846
|
+
justifyContent: "center"
|
|
2847
|
+
},
|
|
2848
|
+
children: a
|
|
2849
|
+
}),
|
|
2850
|
+
(0, Z.jsx)(I, {
|
|
2851
|
+
sx: {
|
|
2852
|
+
display: "flex",
|
|
2853
|
+
alignItems: "center",
|
|
2854
|
+
justifyContent: "end"
|
|
2855
|
+
},
|
|
2856
|
+
children: s
|
|
2857
|
+
})
|
|
2858
|
+
]
|
|
2859
|
+
})
|
|
2860
|
+
})
|
|
2861
|
+
});
|
|
2862
|
+
}));
|
|
2863
|
+
_a.displayName = "StudioToolbar";
|
|
2864
|
+
var va = (e, t) => {
|
|
2865
|
+
let n = new URL(window.location.pathname, window.location.origin);
|
|
2866
|
+
e && n.searchParams.set("source", e), e && t && n.searchParams.set("title", t), window.open(n.toString(), "sheetxl-" + a.uuidV4(), "popup=true");
|
|
2867
|
+
}, ya = Qe(f("studio:shortcutKeysDialog", () => import("./0vqRTRN0wEzWao1c.js")).load);
|
|
2868
|
+
vn(), hn();
|
|
2869
|
+
var ba = /* @__PURE__ */ new Set(["ui"]), xa = (e) => {
|
|
2870
|
+
let t = (e) => {
|
|
2871
|
+
if (typeof e != "function") return e;
|
|
2872
|
+
try {
|
|
2873
|
+
return e();
|
|
2874
|
+
} catch {
|
|
2875
|
+
return;
|
|
2876
|
+
}
|
|
2877
|
+
}, n = (e, n) => {
|
|
2878
|
+
let r = t(e);
|
|
2879
|
+
return typeof r == "string" ? o(r, n, i.getActive()) : void 0;
|
|
2880
|
+
}, r = [];
|
|
2881
|
+
for (let i of e.names()) if (!ba.has(i)) for (let a of e.keys(i)) {
|
|
2882
|
+
let o = e.resolveDefinition(i, a);
|
|
2883
|
+
r.push({
|
|
2884
|
+
groupKey: i,
|
|
2885
|
+
command: {
|
|
2886
|
+
getLabel: () => n(o?.label, o?.params) ?? a,
|
|
2887
|
+
getIcon: () => t(o?.icon),
|
|
2888
|
+
getDescription: () => n(o?.description, o?.params) ?? "",
|
|
2889
|
+
getShortcut: () => t(o?.shortcut) ?? null,
|
|
2890
|
+
getScope: () => i,
|
|
2891
|
+
getScopeLabel: () => E.DefaultCommandCatalogService.getScopeLabel(i)
|
|
2892
|
+
}
|
|
2893
|
+
});
|
|
2894
|
+
}
|
|
2895
|
+
return { getAllCommands: () => r };
|
|
2896
|
+
}, Sa = (e) => {
|
|
2897
|
+
let { children: t, workbook: n, setWorkbook: r, workbookTitle: a, isDirty: o, refSave: c, fullscreenTarget: d } = e, f = E.useCommandScope(), p = C(), { showModal: m } = H(), h = M(), g = (0, X.useRef)(o);
|
|
2898
|
+
g.current = o;
|
|
2899
|
+
let _ = A(() => {
|
|
2900
|
+
let e = f?.getRoot().getRegistry();
|
|
2901
|
+
if (!e) return;
|
|
2902
|
+
let t = m(ya, {
|
|
2903
|
+
title: h("dialog.shortcutKeys.title"),
|
|
2904
|
+
commands: xa(e),
|
|
2905
|
+
onDone: () => t.hide(),
|
|
2906
|
+
onLoadError: (e) => {
|
|
2907
|
+
t.destroy(), p.showError(e);
|
|
2908
|
+
}
|
|
2909
|
+
});
|
|
2910
|
+
}, [f, m]);
|
|
2911
|
+
(0, X.useEffect)(() => {
|
|
2912
|
+
if (!f) return;
|
|
2913
|
+
let e = f.getRoot().contribution();
|
|
2914
|
+
return function(e, t) {
|
|
2915
|
+
let n = () => t.showShortcuts();
|
|
2916
|
+
e.updateCommand("showKeyboardShortcuts", { callback: n }), e.updateCommand("help", { callback: n });
|
|
2917
|
+
for (let [t, n] of Object.entries({
|
|
2918
|
+
gotoUrlGithub: "https://github.com/sheetxl/sheetxl",
|
|
2919
|
+
gotoUrlDiscord: "https://discord.gg/NTKdwUgK9p",
|
|
2920
|
+
gotoUrlDocumentation: "https://www.sheetxl.com/docs",
|
|
2921
|
+
gotoUrlIssue: "https://github.com/sheetxl/sheetxl/issues"
|
|
2922
|
+
})) e.updateCommand(t, { callback: () => {
|
|
2923
|
+
window?.open(n);
|
|
2924
|
+
} });
|
|
2925
|
+
}(e, { showShortcuts: _ }), () => e.remove();
|
|
2926
|
+
}, [f, _]);
|
|
2927
|
+
let v = Kt("(prefers-color-scheme: dark)"), { themeMode: y } = ce(), [b, x] = S(gt.Mode, Et[gt.Mode]), [w, T] = S(gt.DarkGrid, Et[gt.DarkGrid]), [ee, ne] = S(gt.DarkImages, Et[gt.DarkImages]);
|
|
2928
|
+
(0, X.useEffect)(() => {
|
|
2929
|
+
if (!f) return;
|
|
2930
|
+
let e = f.getRoot().contribution();
|
|
2931
|
+
return function(e, t) {
|
|
2932
|
+
e.updateCommand("themeMode", {
|
|
2933
|
+
state: t.mode ?? null,
|
|
2934
|
+
params: { dark: t.isDark },
|
|
2935
|
+
icon: t.isDark ? "DarkMode" : "LightMode",
|
|
2936
|
+
callback: () => t.setMode(t.isDark ? "light" : "dark")
|
|
2937
|
+
}), e.updateCommand("defaultThemeMode", {
|
|
2938
|
+
state: !t.mode,
|
|
2939
|
+
icon: t.systemDefaultDark ? "SystemDefaultDarkMode" : "SystemDefaultLightMode",
|
|
2940
|
+
callback: () => t.setMode(null)
|
|
2941
|
+
}), e.updateCommand("enableDarkGrid", {
|
|
2942
|
+
state: t.enableDarkGrid,
|
|
2943
|
+
callback: () => t.setEnableDarkGrid((e) => !e)
|
|
2944
|
+
}), e.updateCommand("enableDarkImages", {
|
|
2945
|
+
state: t.enableDarkImages,
|
|
2946
|
+
callback: () => t.setEnableDarkImages((e) => !e)
|
|
2947
|
+
});
|
|
2948
|
+
}(e, {
|
|
2949
|
+
mode: b,
|
|
2950
|
+
setMode: x,
|
|
2951
|
+
isDark: b === "dark" || !b && y === "dark",
|
|
2952
|
+
systemDefaultDark: v,
|
|
2953
|
+
enableDarkGrid: w,
|
|
2954
|
+
setEnableDarkGrid: T,
|
|
2955
|
+
enableDarkImages: ee,
|
|
2956
|
+
setEnableDarkImages: ne
|
|
2957
|
+
}), () => e.remove();
|
|
2958
|
+
}, [
|
|
2959
|
+
f,
|
|
2960
|
+
b,
|
|
2961
|
+
y,
|
|
2962
|
+
v,
|
|
2963
|
+
w,
|
|
2964
|
+
ee,
|
|
2965
|
+
x,
|
|
2966
|
+
T,
|
|
2967
|
+
ne
|
|
2968
|
+
]);
|
|
2969
|
+
let [O, k] = S(te.Active, null), [re, ie] = (0, X.useState)(() => i.getActive());
|
|
2970
|
+
(0, X.useEffect)(() => i.addChangeListener(ie), []), (0, X.useEffect)(() => {
|
|
2971
|
+
O && O !== i.getActive() && i.setActive(O);
|
|
2972
|
+
}, [O]), (0, X.useEffect)(() => {
|
|
2973
|
+
if (!f) return;
|
|
2974
|
+
let e = f.getRoot().contribution();
|
|
2975
|
+
return function(e, t) {
|
|
2976
|
+
e.updateCommand("language", {
|
|
2977
|
+
state: t.active,
|
|
2978
|
+
callback: (e) => {
|
|
2979
|
+
e && t.setActive(e);
|
|
2980
|
+
}
|
|
2981
|
+
});
|
|
2982
|
+
}(e, {
|
|
2983
|
+
active: re,
|
|
2984
|
+
setActive: (e) => {
|
|
2985
|
+
k(e);
|
|
2986
|
+
}
|
|
2987
|
+
}), () => e.remove();
|
|
2988
|
+
}, [
|
|
2989
|
+
f,
|
|
2990
|
+
re,
|
|
2991
|
+
k
|
|
2992
|
+
]);
|
|
2993
|
+
let j = (0, X.useMemo)(() => ({ current: d ?? null }), [d]), { isFullscreenAvailable: ae, isFullscreenEnabled: oe, toggleFullscreen: se } = N({ target: j });
|
|
2994
|
+
(0, X.useEffect)(() => {
|
|
2995
|
+
if (!f) return;
|
|
2996
|
+
let e = f.getRoot().contribution();
|
|
2997
|
+
return function(e, t) {
|
|
2998
|
+
e.updateCommand("fullScreenToggle", {
|
|
2999
|
+
state: t.isFullscreenEnabled,
|
|
3000
|
+
disabledReasons: t.isFullscreenAvailable ? [] : [l("reason.fullscreenUnavailable")],
|
|
3001
|
+
icon: t.isFullscreenEnabled ? "FullScreenOff" : "FullScreen",
|
|
3002
|
+
callback: () => {
|
|
3003
|
+
t.toggleFullscreen();
|
|
3004
|
+
}
|
|
3005
|
+
});
|
|
3006
|
+
}(e, {
|
|
3007
|
+
isFullscreenAvailable: ae,
|
|
3008
|
+
isFullscreenEnabled: oe,
|
|
3009
|
+
toggleFullscreen: se
|
|
3010
|
+
}), () => e.remove();
|
|
3011
|
+
}, [
|
|
3012
|
+
f,
|
|
3013
|
+
ae,
|
|
3014
|
+
oe,
|
|
3015
|
+
se
|
|
3016
|
+
]);
|
|
3017
|
+
let le = st(!0);
|
|
3018
|
+
return (0, X.useEffect)(() => {
|
|
3019
|
+
if (!f) return;
|
|
3020
|
+
let e = f.getRoot().contribution();
|
|
3021
|
+
return function(e) {
|
|
3022
|
+
e.updateCommand("protectWorkbook", {
|
|
3023
|
+
tags: ["noTransaction", "noRepeat"],
|
|
3024
|
+
callback: () => {
|
|
3025
|
+
((e, t) => {
|
|
3026
|
+
le.activate(e, t);
|
|
3027
|
+
})("manageProtection", { args: { tab: "workbook" } });
|
|
3028
|
+
}
|
|
3029
|
+
});
|
|
3030
|
+
}(e), () => e.remove();
|
|
3031
|
+
}, [f, le]), (0, X.useEffect)(() => {
|
|
3032
|
+
if (!f || !n) return;
|
|
3033
|
+
let e = f.getRoot().contribution(), t = function(e, t) {
|
|
3034
|
+
let { workbook: n, setWorkbook: r, workbookTitle: i = "export", isDirty: a, notifier: o, refSave: c } = t, d = !1, f = async (e = null, t = null, n = null) => {
|
|
3035
|
+
let r, i = [], a = {
|
|
3036
|
+
source: e && typeof e != "string" ? e : null,
|
|
3037
|
+
typedCreateWorkbookOptions: t ?? void 0,
|
|
3038
|
+
onPassword: async ({ origin: e, validate: t }) => {
|
|
3039
|
+
let n = await o.showInput({
|
|
3040
|
+
title: u("dialog.password.title"),
|
|
3041
|
+
description: u("dialog.password.open.description", { name: e.getName() ?? "" }),
|
|
3042
|
+
inputType: "password",
|
|
3043
|
+
options: [{
|
|
3044
|
+
id: "Open",
|
|
3045
|
+
label: () => u("dialog.open")
|
|
3046
|
+
}, "Cancel"],
|
|
3047
|
+
defaultOption: "Open",
|
|
3048
|
+
onValidateInput: async (e, n) => n === void 0 ? { valid: !0 } : e ? await t(e) ? { valid: !0 } : {
|
|
3049
|
+
valid: !1,
|
|
3050
|
+
message: u("dialog.password.open.retry")
|
|
3051
|
+
} : {
|
|
3052
|
+
valid: !1,
|
|
3053
|
+
message: u("dialog.password.open.required")
|
|
3054
|
+
}
|
|
3055
|
+
});
|
|
3056
|
+
return n?.option === "Open" ? n.input ?? null : null;
|
|
3057
|
+
},
|
|
3058
|
+
progress: { onWarning: (e) => {
|
|
3059
|
+
i.push(e);
|
|
3060
|
+
} }
|
|
3061
|
+
};
|
|
3062
|
+
n && (a.progress.onStart = n);
|
|
3063
|
+
let s = -5;
|
|
3064
|
+
return W.read({
|
|
3065
|
+
...a,
|
|
3066
|
+
progress: {
|
|
3067
|
+
async onStart(e, t) {
|
|
3068
|
+
await a?.progress?.onStart?.(e, t), r = await o?.showBusy?.(u("workbook.opening", { name: e?.getName() ?? "" })), t && r?.setProgress?.(0, t);
|
|
3069
|
+
},
|
|
3070
|
+
onProgress(e, t) {
|
|
3071
|
+
if (!t) return;
|
|
3072
|
+
let n = Math.min(100, Math.round(e / t * 100));
|
|
3073
|
+
if (n >= 100) {
|
|
3074
|
+
if (s === 100) return;
|
|
3075
|
+
s = 100, r?.setProgress?.(e, t);
|
|
3076
|
+
} else n - s < 5 || (s = n, r?.setProgress?.(e, t));
|
|
3077
|
+
},
|
|
3078
|
+
onComplete() {
|
|
3079
|
+
r?.(), i.length > 0 && (o.showMessage(u("workbook.importWarnings")), console.warn("Import warnings:\n" + i.join("\n")));
|
|
3080
|
+
},
|
|
3081
|
+
onWarning(e, t) {
|
|
3082
|
+
a?.progress?.onWarning?.(e, t);
|
|
3083
|
+
}
|
|
3084
|
+
}
|
|
3085
|
+
});
|
|
3086
|
+
}, p = async (e, t, n = !1, r) => {
|
|
3087
|
+
let a, s, c = {
|
|
3088
|
+
format: t?.key,
|
|
3089
|
+
progress: {
|
|
3090
|
+
async onStart(e) {
|
|
3091
|
+
a = await o?.showBusy?.(u("workbook.saving", { name: e?.getName() ?? "" }));
|
|
3092
|
+
},
|
|
3093
|
+
onComplete() {
|
|
3094
|
+
a?.();
|
|
3095
|
+
}
|
|
3096
|
+
},
|
|
3097
|
+
onWarnings: r ?? (async ({ warnings: e, origin: t, canCancel: n }) => {
|
|
3098
|
+
a?.(), console.warn(`Not written to '${t.getName()}':\n${e.map((e) => ` ${e.message}`).join("\n")}`);
|
|
3099
|
+
let r = u("dialog.writeWarnings.title"), i = t.getFormat(), s = (i ? (await W.getWriteFormats({ search: i }))[0] : void 0)?.description ?? i ?? "", c = u("dialog.writeWarnings.keep");
|
|
3100
|
+
return n ? await o.showOptions({
|
|
3101
|
+
title: r,
|
|
3102
|
+
type: D.Warning,
|
|
3103
|
+
description: `${u("dialog.writeWarnings.confirm", { format: s })}\n\n${c}`,
|
|
3104
|
+
options: [{
|
|
3105
|
+
id: "Save",
|
|
3106
|
+
label: () => u("dialog.save")
|
|
3107
|
+
}, "Cancel"],
|
|
3108
|
+
defaultOption: "Cancel"
|
|
3109
|
+
}) === "Save" && (a = await o?.showBusy?.(u("workbook.saving", { name: t?.getName() ?? "" })), !0) : (o.showOptions({
|
|
3110
|
+
title: r,
|
|
3111
|
+
type: D.Warning,
|
|
3112
|
+
description: `${u("dialog.writeWarnings.saved", { format: s })}\n\n${c}`,
|
|
3113
|
+
options: ["Ok"]
|
|
3114
|
+
}), !0);
|
|
3115
|
+
})
|
|
3116
|
+
};
|
|
3117
|
+
if (n) {
|
|
3118
|
+
let n = e.getOrigin(), r = t?.exts?.[0] ?? (n.getExtension() || "sxl"), a = `${i || n.getName() || u("workbook.defaultName")}.${r}`;
|
|
3119
|
+
s = await W.writeAs(e, a, {
|
|
3120
|
+
...c,
|
|
3121
|
+
prompt: !0
|
|
3122
|
+
});
|
|
3123
|
+
} else s = await W.write(e, void 0, c);
|
|
3124
|
+
return s;
|
|
3125
|
+
}, m = null;
|
|
3126
|
+
return e.updateCommand("newWorkbook", { callback: async (e) => {
|
|
3127
|
+
let t = W.canRead() && !a();
|
|
3128
|
+
e?.source ? t && m ? await m({
|
|
3129
|
+
url: e.source,
|
|
3130
|
+
title: e.title
|
|
3131
|
+
}) : va(e.source, e.title) : t ? r({}) : va();
|
|
3132
|
+
} }), e.updateCommand("closeWorkbook", { callback: async () => {
|
|
3133
|
+
a() && await o.showOptions({
|
|
3134
|
+
title: u("dialog.confirm.title"),
|
|
3135
|
+
description: u("dialog.unsavedChanges"),
|
|
3136
|
+
options: [{
|
|
3137
|
+
id: "Close",
|
|
3138
|
+
label: () => u("dialog.close")
|
|
3139
|
+
}, "Cancel"],
|
|
3140
|
+
defaultOption: "Cancel"
|
|
3141
|
+
}) !== "Close" || window.close();
|
|
3142
|
+
} }), (async () => {
|
|
3143
|
+
let t = await W.getWriteFormats();
|
|
3144
|
+
if (d) return;
|
|
3145
|
+
let i = W.canWrite(), h = W.canRead();
|
|
3146
|
+
if (i) {
|
|
3147
|
+
let r = (e) => {
|
|
3148
|
+
let r = e ? t.find((t) => t.key === e) : void 0;
|
|
3149
|
+
p(n, r, !0).catch((e) => o.showError(e));
|
|
3150
|
+
};
|
|
3151
|
+
e.updateCommand("saveWorkbook", { callback: () => {
|
|
3152
|
+
p(n, void 0, !1).catch((e) => o.showError(e));
|
|
3153
|
+
} }), c && (c.current = (e) => p(n, void 0, !1, e?.onWarnings)), e.updateCommand("saveWorkbookAs", { callback: (e) => {
|
|
3154
|
+
r(e);
|
|
3155
|
+
} });
|
|
3156
|
+
for (let n of t) {
|
|
3157
|
+
let t = n.key;
|
|
3158
|
+
e.updateCommand(`saveWorkbookAs${t}`, {
|
|
3159
|
+
label: () => u("command.saveAsFormat.label", { format: n.description }),
|
|
3160
|
+
groupLabels: {
|
|
3161
|
+
workbook: () => u("command.saveAsFormat.workbook", { format: n.description }),
|
|
3162
|
+
saveWorkbookOptions: () => u("command.saveAsFormat.compact", { format: n.description })
|
|
3163
|
+
},
|
|
3164
|
+
tags: n.tags,
|
|
3165
|
+
description: () => u("command.saveAsFormat", { format: n.description }),
|
|
3166
|
+
icon: t === "CSV" ? "FileDownloadAsCSV" : t === "Excel" ? "FileDownloadAsExcel" : "FileDownloadAsSheet",
|
|
3167
|
+
callback: () => {
|
|
3168
|
+
r(t);
|
|
3169
|
+
}
|
|
3170
|
+
});
|
|
3171
|
+
}
|
|
3172
|
+
}
|
|
3173
|
+
let g = async (e = null) => {
|
|
3174
|
+
let t = { csv: {
|
|
3175
|
+
date1904: n.getRuntime().isDate1904(),
|
|
3176
|
+
...n.options
|
|
3177
|
+
} };
|
|
3178
|
+
try {
|
|
3179
|
+
let r = "", i = await f(e, t, async (e) => {
|
|
3180
|
+
r = e?.getName() ?? "";
|
|
3181
|
+
});
|
|
3182
|
+
if (!i) return;
|
|
3183
|
+
let a = i.getSheets().getItems();
|
|
3184
|
+
await n.doBatch(async () => {
|
|
3185
|
+
for (let e = 0; e < a.length; e++) {
|
|
3186
|
+
let t = a[e], i = a.length === 1 ? r : t.getName(), o = n.findValidSheetName(i);
|
|
3187
|
+
await n.getSheets().add({
|
|
3188
|
+
name: o,
|
|
3189
|
+
autoSelect: e === a.length - 1
|
|
3190
|
+
}).getEntireRange().copyFrom(t.getEntireRange());
|
|
3191
|
+
}
|
|
3192
|
+
}, l("op.importData")), i.close();
|
|
3193
|
+
} catch (e) {
|
|
3194
|
+
o.showError(e);
|
|
3195
|
+
}
|
|
3196
|
+
};
|
|
3197
|
+
if (e.updateCommand("insertDataFromFile", {
|
|
3198
|
+
tags: ["noTransaction", "noRepeat"],
|
|
3199
|
+
callback: async (e = null) => {
|
|
3200
|
+
let t = e;
|
|
3201
|
+
if (t || W.canRead() || (t = await (async () => {
|
|
3202
|
+
let e = await W.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
|
|
3203
|
+
return s.openFileDialog(t.length ? t.join(",") : "*.*");
|
|
3204
|
+
})(), t)) return g(t);
|
|
3205
|
+
}
|
|
3206
|
+
}), e.updateCommand("insertDataFromURL", {
|
|
3207
|
+
tags: ["noTransaction", "noRepeat"],
|
|
3208
|
+
callback: async (e) => {
|
|
3209
|
+
if (!e) {
|
|
3210
|
+
let t = await o.showInput({
|
|
3211
|
+
title: u("dialog.importFromWeb.title"),
|
|
3212
|
+
description: u("dialog.importFromWeb.description"),
|
|
3213
|
+
inputLabel: u("dialog.webAddress.inputLabel"),
|
|
3214
|
+
initialValue: "https://www.sheetxl.com/docs/examples/financial-calculators.xlsx",
|
|
3215
|
+
propsInput: { style: { minWidth: "440px" } },
|
|
3216
|
+
options: [{
|
|
3217
|
+
id: "Import",
|
|
3218
|
+
label: () => u("dialog.import")
|
|
3219
|
+
}]
|
|
3220
|
+
});
|
|
3221
|
+
if (t.option !== "Import") return;
|
|
3222
|
+
e = t.input;
|
|
3223
|
+
}
|
|
3224
|
+
if (e) try {
|
|
3225
|
+
let t = await fetch(e);
|
|
3226
|
+
if (!t.ok) throw Error(`Could not fetch '${e}' (${t.status} ${t.statusText}).`);
|
|
3227
|
+
let n = await t.blob(), r = decodeURIComponent(e.split("/").pop()?.split("?")[0] || "") || "import.xlsx";
|
|
3228
|
+
await g(new File([n], r, { type: n.type }));
|
|
3229
|
+
} catch (e) {
|
|
3230
|
+
o.showError(e);
|
|
3231
|
+
}
|
|
3232
|
+
}
|
|
3233
|
+
}), h) {
|
|
3234
|
+
let t = async () => !a() || await o.showOptions({
|
|
3235
|
+
title: u("dialog.confirm.title"),
|
|
3236
|
+
description: u("dialog.unsavedChanges"),
|
|
3237
|
+
options: [{
|
|
3238
|
+
id: "Open",
|
|
3239
|
+
label: () => u("dialog.open")
|
|
3240
|
+
}, "Cancel"],
|
|
3241
|
+
defaultOption: "Cancel"
|
|
3242
|
+
}) === "Open", i = async (e = null) => {
|
|
3243
|
+
let t = { csv: {
|
|
3244
|
+
date1904: n.getRuntime().isDate1904(),
|
|
3245
|
+
...n.options
|
|
3246
|
+
} };
|
|
3247
|
+
try {
|
|
3248
|
+
let n = await f(e, t);
|
|
3249
|
+
if (!n) return;
|
|
3250
|
+
r(n);
|
|
3251
|
+
} catch (e) {
|
|
3252
|
+
o.showError(e);
|
|
3253
|
+
}
|
|
3254
|
+
};
|
|
3255
|
+
e.updateCommand("openWorkbook", { callback: async (e = null) => {
|
|
3256
|
+
await t() && await i(e);
|
|
3257
|
+
} }), m = async (e) => {
|
|
3258
|
+
let n = typeof e == "string" ? e : e?.url, r = typeof e == "string" ? void 0 : e?.title;
|
|
3259
|
+
if (!n) {
|
|
3260
|
+
let e = await o.showInput({
|
|
3261
|
+
title: u("dialog.openFromWeb.title"),
|
|
3262
|
+
description: u("dialog.openFromWeb.description"),
|
|
3263
|
+
inputLabel: u("dialog.webAddress.inputLabel"),
|
|
3264
|
+
initialValue: "https://www.sheetxl.com/docs/examples/financial-calculators.xlsx",
|
|
3265
|
+
propsInput: { style: { minWidth: "440px" } },
|
|
3266
|
+
options: [{
|
|
3267
|
+
id: "Open",
|
|
3268
|
+
label: () => u("dialog.open")
|
|
3269
|
+
}]
|
|
3270
|
+
});
|
|
3271
|
+
if (e.option !== "Open") return;
|
|
3272
|
+
n = e.input;
|
|
3273
|
+
}
|
|
3274
|
+
if (n && await t()) try {
|
|
3275
|
+
let e = await fetch(n);
|
|
3276
|
+
if (!e.ok) throw Error(`Could not fetch '${n}' (${e.status} ${e.statusText}).`);
|
|
3277
|
+
let t = await e.blob(), a = decodeURIComponent(n.split("/").pop()?.split("?")[0] || "") || "workbook.xlsx", o = a.match(/\.[^/.]+$/)?.[0] ?? "", s = r ? `${r}${o}` : a;
|
|
3278
|
+
await i(new File([t], s, { type: t.type }));
|
|
3279
|
+
} catch (e) {
|
|
3280
|
+
o.showError(e);
|
|
3281
|
+
}
|
|
3282
|
+
}, e.updateCommand("openWorkbookFromUrl", { callback: m });
|
|
3283
|
+
}
|
|
3284
|
+
})(), () => {
|
|
3285
|
+
d = !0, c && (c.current = null);
|
|
3286
|
+
};
|
|
3287
|
+
}(e, {
|
|
3288
|
+
workbook: n,
|
|
3289
|
+
setWorkbook: r,
|
|
3290
|
+
workbookTitle: a ?? void 0,
|
|
3291
|
+
isDirty: () => g.current?.() ?? !1,
|
|
3292
|
+
notifier: p,
|
|
3293
|
+
refSave: c
|
|
3294
|
+
});
|
|
3295
|
+
return () => {
|
|
3296
|
+
t(), e.remove();
|
|
3297
|
+
};
|
|
3298
|
+
}, [
|
|
3299
|
+
f,
|
|
3300
|
+
n,
|
|
3301
|
+
r,
|
|
3302
|
+
a,
|
|
3303
|
+
p,
|
|
3304
|
+
c
|
|
3305
|
+
]), t;
|
|
3306
|
+
};
|
|
3307
|
+
Sa.displayName = "StudioCommandProvider";
|
|
3308
|
+
var Ca = ({ renderWorkbook: e }) => {
|
|
3309
|
+
let t = E.useCommandResolver(), n = (0, X.useRef)(null), r = M(), [i, a] = (0, X.useState)(null), o = (0, X.useCallback)((e) => {
|
|
3310
|
+
let n = e.dataTransfer;
|
|
3311
|
+
if (t && n) {
|
|
3312
|
+
if (e.type === "dragenter" || e.type === "dragover") {
|
|
3313
|
+
let e = n.types, t = n.items, r = !1;
|
|
3314
|
+
for (let e = 0; e < t.length; e++) if (t[e].type.startsWith("image/")) {
|
|
3315
|
+
r = !0;
|
|
3316
|
+
break;
|
|
3317
|
+
}
|
|
3318
|
+
r ? a("insertImage") : e.includes("Files") && t.length > 0 ? a("open") : (n.effectAllowed = "none", n.dropEffect = "none");
|
|
3319
|
+
} else if (e.type === "dragleave") {
|
|
3320
|
+
let t = e.relatedTarget;
|
|
3321
|
+
t && e.currentTarget.contains(t) || a(null);
|
|
3322
|
+
}
|
|
3323
|
+
e.preventDefault();
|
|
3324
|
+
}
|
|
3325
|
+
}, [t]), s = A((e) => {
|
|
3326
|
+
e.preventDefault();
|
|
3327
|
+
let r = i;
|
|
3328
|
+
if (a(null), r && t && (e.stopPropagation(), e.dataTransfer.files && e.dataTransfer.files.length > 0)) {
|
|
3329
|
+
let r = e.dataTransfer.files[0];
|
|
3330
|
+
if (!r) return;
|
|
3331
|
+
if (r?.type?.startsWith("image/")) {
|
|
3332
|
+
let i = n.current?.getSheetElement()?.getGridSurface().getPaneFromClient(e.clientX, e.clientY);
|
|
3333
|
+
if (!i) return;
|
|
3334
|
+
let a = i.getPanePointFromPointer(e.clientX, e.clientY);
|
|
3335
|
+
if (!a) return;
|
|
3336
|
+
let o = i.toAbsoluteBounds({
|
|
3337
|
+
x: a.x ?? 0,
|
|
3338
|
+
y: a.y ?? 0,
|
|
3339
|
+
width: 0,
|
|
3340
|
+
height: 0
|
|
3341
|
+
});
|
|
3342
|
+
t.execute("insertImageFromFile", {
|
|
3343
|
+
file: r,
|
|
3344
|
+
options: { bounds: {
|
|
3345
|
+
x: o.x,
|
|
3346
|
+
y: o.y
|
|
3347
|
+
} }
|
|
3348
|
+
});
|
|
3349
|
+
} else {
|
|
3350
|
+
if (!W.canRead()) return;
|
|
3351
|
+
let n = e.dataTransfer.items?.[0], i = typeof window < "u" && window.isSecureContext ? n?.getAsFileSystemHandle?.() : void 0;
|
|
3352
|
+
i ? i.then((e) => t.execute("openWorkbook", e?.kind === "file" ? e : r)).catch(() => t.execute("openWorkbook", r)) : t.execute("openWorkbook", r);
|
|
3353
|
+
}
|
|
3354
|
+
}
|
|
3355
|
+
}, [t, i]), c = (0, X.useMemo)(() => {
|
|
3356
|
+
if (!i) return null;
|
|
3357
|
+
let e = i === "insertImage";
|
|
3358
|
+
return (0, Z.jsx)(I, {
|
|
3359
|
+
className: "drop-overlay",
|
|
3360
|
+
sx: {
|
|
3361
|
+
position: "absolute",
|
|
3362
|
+
inset: 0,
|
|
3363
|
+
zIndex: 1,
|
|
3364
|
+
boxSizing: "border-box",
|
|
3365
|
+
pointerEvents: "none",
|
|
3366
|
+
display: "flex",
|
|
3367
|
+
justifyContent: "center",
|
|
3368
|
+
alignItems: "center",
|
|
3369
|
+
backgroundColor: (e) => F(e.palette.primary.main, .46),
|
|
3370
|
+
outline: (e) => `2px dashed ${e.palette.primary.main}`,
|
|
3371
|
+
outlineOffset: "-6px",
|
|
3372
|
+
borderRadius: 2
|
|
3373
|
+
},
|
|
3374
|
+
children: (0, Z.jsxs)(xe, {
|
|
3375
|
+
elevation: 6,
|
|
3376
|
+
sx: {
|
|
3377
|
+
display: "flex",
|
|
3378
|
+
alignItems: "center",
|
|
3379
|
+
gap: 1.5,
|
|
3380
|
+
px: 3,
|
|
3381
|
+
py: 2,
|
|
3382
|
+
borderRadius: 2,
|
|
3383
|
+
color: "text.primary",
|
|
3384
|
+
"& .drop-overlay-icon": { color: "primary.main" }
|
|
3385
|
+
},
|
|
3386
|
+
children: [(0, Z.jsx)(b, {
|
|
3387
|
+
iconKey: e ? "InsertImage" : "FileOpen",
|
|
3388
|
+
className: "drop-overlay-icon",
|
|
3389
|
+
size: 32
|
|
3390
|
+
}), (0, Z.jsx)(R, {
|
|
3391
|
+
variant: "h6",
|
|
3392
|
+
component: "span",
|
|
3393
|
+
children: r(e ? "drop.insertImage" : "drop.open")
|
|
3394
|
+
})]
|
|
3395
|
+
})
|
|
3396
|
+
});
|
|
3397
|
+
}, [i, r]);
|
|
3398
|
+
return (0, Z.jsxs)(Z.Fragment, { children: [e({
|
|
3399
|
+
ref: n,
|
|
3400
|
+
onDragStart: (e) => {
|
|
3401
|
+
if (e.target.src) {
|
|
3402
|
+
let t = new Image();
|
|
3403
|
+
t.src = e.target.src, e.dataTransfer.setDragImage(t, 1, 1);
|
|
3404
|
+
}
|
|
3405
|
+
},
|
|
3406
|
+
onDragEnter: o,
|
|
3407
|
+
onDragLeave: o,
|
|
3408
|
+
onDragOver: o,
|
|
3409
|
+
onDrop: s
|
|
3410
|
+
}), c] });
|
|
3411
|
+
}, wa = (0, X.memo)((e) => {
|
|
3412
|
+
let { workbook: t, setWorkbook: n, refDocumentTitle: r, titleWorkbook: i, setWorkbookTitle: a, isDirty: o, initialCommandAnchor: s, renderWorkbook: c, refSave: l, host: u } = e;
|
|
3413
|
+
return (0, Z.jsx)(yt, {
|
|
3414
|
+
initialAnchor: s,
|
|
3415
|
+
children: (0, Z.jsx)(Sa, {
|
|
3416
|
+
workbook: t,
|
|
3417
|
+
setWorkbook: n,
|
|
3418
|
+
workbookTitle: i,
|
|
3419
|
+
isDirty: o,
|
|
3420
|
+
refSave: l,
|
|
3421
|
+
fullscreenTarget: u,
|
|
3422
|
+
children: (0, Z.jsx)(Ca, { renderWorkbook: c })
|
|
3423
|
+
})
|
|
3424
|
+
});
|
|
3425
|
+
});
|
|
3426
|
+
wa.displayName = "CommandsWrapper";
|
|
3427
|
+
var Ta = {
|
|
3428
|
+
sort: f("studio:sortDialog", () => import("./CakrxSS_RXtKmcUX.js")).load,
|
|
3429
|
+
hyperlink: f("studio:hyperlinkDialog", () => import("./CILUMtSddGz7WXEv.js")).load,
|
|
3430
|
+
find: f("studio:findReplaceWindow", () => import("./7Sg0ht_ZCMJkPurt.js")).load,
|
|
3431
|
+
tableNew: f("studio:tableNewDialog", () => import("./Ba8taVvLslFcKS72.js")).load,
|
|
3432
|
+
namedDetails: f("studio:namedReferenceDialog", () => import("./D-bNmX0QsA8SuT0m.js")).load,
|
|
3433
|
+
insertFunction: f("studio:insertFunctionDialog", () => import("./BpZ7P0CO148rR4zW.js")).load,
|
|
3434
|
+
resizeHeader: f("studio:resizeHeaderDialog", () => import("./w5IQWbJETgHhqMsY.js")).load,
|
|
3435
|
+
outlineSettings: f("studio:outlineSettingsDialog", () => import("./DckmFyHxGX4Y1gOq.js")).load,
|
|
3436
|
+
fillSeries: f("studio:fillSeriesDialog", () => import("./CMVTwWHsRgyfSEDM.js")).load,
|
|
3437
|
+
workbookStatistics: f("studio:workbookStatisticsDialog", () => import("./ChAKLV5zrGAHAof2.js")).load,
|
|
3438
|
+
password: f("studio:passwordDialog", () => import("./CEYyp6Qrr_IopxpL.js").then((e) => e.n).then((e) => e.t)).load
|
|
3439
|
+
}, Ea = ["find"], Da = (0, X.memo)((e) => {
|
|
3440
|
+
let { children: t } = e, n = ma(), r = n ? n.enqueueSnackbar : () => {}, i = n ? n.closeSnackbar : () => {}, o = (0, X.useRef)(/* @__PURE__ */ new Set()), s = (0, X.useRef)(null), l = (0, X.useRef)(null), [u, d] = (0, X.useState)({
|
|
3441
|
+
label: null,
|
|
3442
|
+
progress: null
|
|
3443
|
+
}), f = M(), p = a.EmptyObject, m = Xe(p), h = Ke(p), g = Ye(p), _ = (0, X.useRef)(!1);
|
|
3444
|
+
(0, X.useEffect)(() => {
|
|
3445
|
+
if (_.current) return;
|
|
3446
|
+
_.current = !0;
|
|
3447
|
+
let e = window, t = e.requestIdleCallback ?? ((e) => setTimeout(e, 500)), n = e.cancelIdleCallback ?? clearTimeout, r = t(() => {
|
|
3448
|
+
for (let e of Ea) m(e, Ta[e], { prewarm: !0 }).catch(() => {});
|
|
3449
|
+
});
|
|
3450
|
+
return () => n(r);
|
|
3451
|
+
}, []);
|
|
3452
|
+
let v = (0, X.useRef)(/* @__PURE__ */ new Set()), y = (0, X.useMemo)(() => {
|
|
3453
|
+
let e = (e, t) => {
|
|
3454
|
+
if (t?.onceKey) {
|
|
3455
|
+
if (v.current.has(t.onceKey)) return;
|
|
3456
|
+
let e = new Set(v.current);
|
|
3457
|
+
e.add(t.onceKey), v.current = e;
|
|
3458
|
+
}
|
|
3459
|
+
let n = {
|
|
3460
|
+
variant: t?.type ?? D.Info,
|
|
3461
|
+
anchorOrigin: {
|
|
3462
|
+
vertical: "top",
|
|
3463
|
+
horizontal: "center"
|
|
3464
|
+
},
|
|
3465
|
+
preventDuplicate: t?.preventDuplicate,
|
|
3466
|
+
persist: t?.persist ?? t?.type === D.Error,
|
|
3467
|
+
action: (e) => (0, Z.jsx)(Se, {
|
|
3468
|
+
onClick: () => i(e),
|
|
3469
|
+
children: (0, Z.jsx)(b, { iconKey: "Cancel" })
|
|
3470
|
+
})
|
|
3471
|
+
};
|
|
3472
|
+
t?.enqueueProps && Object.assign(n, t.enqueueProps), e || console.log("message is 'null'", t), r(e ?? "Alert", n);
|
|
3473
|
+
}, t = {
|
|
3474
|
+
showMessage: e,
|
|
3475
|
+
showBusy: (e, t) => {
|
|
3476
|
+
let n = Symbol("busy");
|
|
3477
|
+
o.current.add(n), l.current = e, e != null && typeof e != "string" && d((t) => t.label === e ? t : {
|
|
3478
|
+
...t,
|
|
3479
|
+
label: e
|
|
3480
|
+
});
|
|
3481
|
+
let r = k(() => {
|
|
3482
|
+
o.current.delete(n) && (o.current.size > 0 || (qe(s.current), l.current = null, d((e) => e.label === null && e.progress === null ? e : {
|
|
3483
|
+
label: null,
|
|
3484
|
+
progress: null
|
|
3485
|
+
})));
|
|
3486
|
+
}, (e, t) => {
|
|
3487
|
+
let n = t && t > 0 && e != null ? Math.max(0, Math.min(1, e / t)) : null;
|
|
3488
|
+
d((e) => e.progress === n ? e : {
|
|
3489
|
+
...e,
|
|
3490
|
+
progress: n
|
|
3491
|
+
});
|
|
3492
|
+
}, (e) => {
|
|
3493
|
+
l.current = e, typeof e == "string" ? Je(s.current, e) : d((t) => ({
|
|
3494
|
+
...t,
|
|
3495
|
+
label: e
|
|
3496
|
+
}));
|
|
3497
|
+
}), i = Je(s.current, typeof e == "string" ? e : void 0);
|
|
3498
|
+
return i ? i.then(() => r) : r;
|
|
3499
|
+
},
|
|
3500
|
+
showWindow: (e, t) => {
|
|
3501
|
+
let n = t;
|
|
3502
|
+
return t = {
|
|
3503
|
+
...t,
|
|
3504
|
+
onKeyDown: (e) => {
|
|
3505
|
+
e.isDefaultPrevented() || e.isPropagationStopped() || n?.onKeyDown?.(e);
|
|
3506
|
+
}
|
|
3507
|
+
}, m(e, Ta[e], t);
|
|
3508
|
+
},
|
|
3509
|
+
showOptions: h,
|
|
3510
|
+
showInput: g,
|
|
3511
|
+
showError: (t) => {
|
|
3512
|
+
let n, r = D.Error, i = f("error.unknown");
|
|
3513
|
+
typeof t == "string" ? i = t : t instanceof Error && (n = t, t.message && (i = f(t.message))), t instanceof c && (r = D.Info), e(i, {
|
|
3514
|
+
type: r,
|
|
3515
|
+
enqueueProps: { error: n }
|
|
3516
|
+
});
|
|
3517
|
+
}
|
|
3518
|
+
}, n = new w();
|
|
3519
|
+
return n.setOverrides(t), n;
|
|
3520
|
+
}, [f]), x = (0, X.useMemo)(() => (0, Z.jsx)(Ze, {
|
|
3521
|
+
ref: s,
|
|
3522
|
+
autoStart: !1,
|
|
3523
|
+
icon: (0, Z.jsx)(Ge, { sx: {
|
|
3524
|
+
transform: "scale(0.7)",
|
|
3525
|
+
marginLeft: "-6px"
|
|
3526
|
+
} }),
|
|
3527
|
+
panel: !0,
|
|
3528
|
+
label: u.label ?? (typeof l.current == "string" ? l.current : void 0),
|
|
3529
|
+
progress: u.progress,
|
|
3530
|
+
sx: {
|
|
3531
|
+
position: "absolute",
|
|
3532
|
+
left: "0",
|
|
3533
|
+
top: "0",
|
|
3534
|
+
width: "100%",
|
|
3535
|
+
height: "100%",
|
|
3536
|
+
zIndex: "9999",
|
|
3537
|
+
pointerEvents: "none"
|
|
3538
|
+
}
|
|
3539
|
+
}), [u.label, u.progress]);
|
|
3540
|
+
return (0, Z.jsxs)(j, {
|
|
3541
|
+
notifier: y,
|
|
3542
|
+
children: [x, t]
|
|
3543
|
+
});
|
|
3544
|
+
});
|
|
3545
|
+
Da.displayName = "StudioNotifierProvider";
|
|
3546
|
+
var Oa = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", ka = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
3547
|
+
let { children: n, title: r, taskPanes: i, onSelect: a, selected: o, registry: s = G, style: c, iconsOnly: l, side: u = "right", className: d, ...f } = e, p = u !== "right", m = T(), h = (0, X.useMemo)(() => i.map((t) => {
|
|
3548
|
+
let n = s.getRegisteredTaskPane(t);
|
|
3549
|
+
if (!n) return null;
|
|
3550
|
+
let r = n.getIcon?.();
|
|
3551
|
+
typeof r == "string" && (r = (0, Z.jsx)(b, { iconKey: r }));
|
|
3552
|
+
let i = t === o, a = r ? (0, Z.jsx)(I, {
|
|
3553
|
+
sx: {
|
|
3554
|
+
display: "inline-block",
|
|
3555
|
+
transform: p ? "rotate(-90deg)" : "rotate(90deg)",
|
|
3556
|
+
transformOrigin: "center",
|
|
3557
|
+
color: (e) => e.palette.text.secondary
|
|
3558
|
+
},
|
|
3559
|
+
children: r
|
|
3560
|
+
}) : null, c = !r || !l && i, u = (0, Z.jsx)(I, {
|
|
3561
|
+
sx: {
|
|
3562
|
+
display: "grid",
|
|
3563
|
+
gridTemplateColumns: c ? "1fr" : "0fr",
|
|
3564
|
+
opacity: +!!c,
|
|
3565
|
+
transition: (e) => e.transitions.create(["grid-template-columns", "opacity"], { duration: e.transitions.duration.short })
|
|
3566
|
+
},
|
|
3567
|
+
children: (0, Z.jsx)(I, {
|
|
3568
|
+
sx: {
|
|
3569
|
+
overflow: "hidden",
|
|
3570
|
+
minWidth: 0,
|
|
3571
|
+
minHeight: 0
|
|
3572
|
+
},
|
|
3573
|
+
children: (0, Z.jsx)(R, {
|
|
3574
|
+
component: "div",
|
|
3575
|
+
sx: {
|
|
3576
|
+
textTransform: "none",
|
|
3577
|
+
whiteSpace: "nowrap",
|
|
3578
|
+
transform: p ? "rotate(180deg)" : void 0,
|
|
3579
|
+
padding: "4px 0px",
|
|
3580
|
+
color: (e) => i ? e.palette.primary.main : e.palette.text.secondary
|
|
3581
|
+
},
|
|
3582
|
+
children: n.getTitle()
|
|
3583
|
+
})
|
|
3584
|
+
})
|
|
3585
|
+
});
|
|
3586
|
+
return (0, Z.jsx)(Gt, {
|
|
3587
|
+
value: t,
|
|
3588
|
+
label: (0, Z.jsx)(L, {
|
|
3589
|
+
disableInteractive: !0,
|
|
3590
|
+
title: n.getTitle() ?? "",
|
|
3591
|
+
placement: "left-start",
|
|
3592
|
+
children: (0, Z.jsxs)(I, {
|
|
3593
|
+
sx: {
|
|
3594
|
+
padding: "0px 0px",
|
|
3595
|
+
writingMode: p ? "vertical-lr" : "vertical-rl",
|
|
3596
|
+
textOrientation: "mixed",
|
|
3597
|
+
display: "flex",
|
|
3598
|
+
alignItems: "center",
|
|
3599
|
+
justifyContent: "space-between",
|
|
3600
|
+
minWidth: "0px",
|
|
3601
|
+
color: (e) => e.palette.text.secondary
|
|
3602
|
+
},
|
|
3603
|
+
children: [p ? u : a, p ? a : u]
|
|
3604
|
+
})
|
|
3605
|
+
}),
|
|
3606
|
+
sx: {
|
|
3607
|
+
padding: "4px 4px",
|
|
3608
|
+
minWidth: "0px",
|
|
3609
|
+
minHeight: "0px",
|
|
3610
|
+
borderRadius: "4px"
|
|
3611
|
+
},
|
|
3612
|
+
className: Mt("taskpane-strip-item", { "Mui-selected": i }),
|
|
3613
|
+
onClick: () => e.onSelect(t)
|
|
3614
|
+
}, t);
|
|
3615
|
+
}), [
|
|
3616
|
+
i,
|
|
3617
|
+
o,
|
|
3618
|
+
a,
|
|
3619
|
+
s,
|
|
3620
|
+
p,
|
|
3621
|
+
l,
|
|
3622
|
+
m
|
|
3623
|
+
]), g = ie(t, () => ({ isTaskPaneStrip: () => !0 }), []), _ = (0, X.useMemo)(() => Mt("taskpane-strip", d), [d]);
|
|
3624
|
+
return (0, Z.jsx)(I, {
|
|
3625
|
+
ref: g,
|
|
3626
|
+
className: _,
|
|
3627
|
+
sx: {
|
|
3628
|
+
paddingLeft: p ? void 0 : "2px",
|
|
3629
|
+
paddingRight: p ? "2px" : void 0,
|
|
3630
|
+
paddingTop: "4px",
|
|
3631
|
+
...c
|
|
3632
|
+
},
|
|
3633
|
+
...f,
|
|
3634
|
+
children: (0, Z.jsx)(Wt, {
|
|
3635
|
+
orientation: "vertical",
|
|
3636
|
+
variant: "scrollable",
|
|
3637
|
+
value: o,
|
|
3638
|
+
onChange: (e, t) => {
|
|
3639
|
+
a(t);
|
|
3640
|
+
},
|
|
3641
|
+
slotProps: {
|
|
3642
|
+
list: { sx: { gap: "2px" } },
|
|
3643
|
+
indicator: { sx: {
|
|
3644
|
+
left: p ? void 0 : "0px",
|
|
3645
|
+
right: p ? void 0 : "unset",
|
|
3646
|
+
bottom: p ? "0px" : void 0
|
|
3647
|
+
} }
|
|
3648
|
+
},
|
|
3649
|
+
children: h
|
|
3650
|
+
})
|
|
3651
|
+
});
|
|
3652
|
+
})), Aa = (e) => {
|
|
3653
|
+
let { title: t, icon: n, onClose: r, readOnly: i, focused: a, ...o } = e, s = (0, X.useRef)(null), c = M();
|
|
3654
|
+
return (0, Z.jsx)(Ee, {
|
|
3655
|
+
className: Mt({ "Mui-selected": a }),
|
|
3656
|
+
sx: {
|
|
3657
|
+
display: "flex",
|
|
3658
|
+
flex: "1 1 %0",
|
|
3659
|
+
color: (e) => e.palette.text.secondary,
|
|
3660
|
+
boxSizing: "border-box",
|
|
3661
|
+
padding: "0 0",
|
|
3662
|
+
transitionProperty: "opacity",
|
|
3663
|
+
transitionDuration: (e) => `${e.transitions.duration.shortest}ms`,
|
|
3664
|
+
opacity: .7,
|
|
3665
|
+
"&.Mui-selected": {
|
|
3666
|
+
opacity: 1,
|
|
3667
|
+
transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
|
|
3668
|
+
},
|
|
3669
|
+
backgroundColor: (e) => F(e.palette.action.hover, .03),
|
|
3670
|
+
borderBottom: `solid ${Oa} 1px`
|
|
3671
|
+
},
|
|
3672
|
+
...o,
|
|
3673
|
+
children: (0, Z.jsxs)(I, {
|
|
3674
|
+
sx: {
|
|
3675
|
+
display: "flex",
|
|
3676
|
+
flex: "1 1 10%",
|
|
3677
|
+
flexDirection: "row",
|
|
3678
|
+
alignItems: "center",
|
|
3679
|
+
marginTop: (e) => e.spacing(.25),
|
|
3680
|
+
marginBottom: (e) => e.spacing(.25),
|
|
3681
|
+
marginLeft: (e) => e.spacing(1),
|
|
3682
|
+
marginRight: (e) => e.spacing(1)
|
|
3683
|
+
},
|
|
3684
|
+
children: [(0, Z.jsx)(I, {
|
|
3685
|
+
sx: {
|
|
3686
|
+
flex: "1 1 100%",
|
|
3687
|
+
paddingLeft: (e) => e.spacing(1)
|
|
3688
|
+
},
|
|
3689
|
+
children: t
|
|
3690
|
+
}), (0, Z.jsx)(Oe, {
|
|
3691
|
+
label: c("taskPane.close"),
|
|
3692
|
+
children: (0, Z.jsx)(Se, {
|
|
3693
|
+
"aria-label": "close",
|
|
3694
|
+
sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
|
|
3695
|
+
touchRippleRef: s,
|
|
3696
|
+
onPointerDown: (e) => {
|
|
3697
|
+
s.current?.start(e, { center: !1 }), e.stopPropagation(), e.preventDefault();
|
|
3698
|
+
},
|
|
3699
|
+
onPointerUp: () => {
|
|
3700
|
+
r();
|
|
3701
|
+
},
|
|
3702
|
+
children: (0, Z.jsx)(b, { iconKey: "Close" })
|
|
3703
|
+
})
|
|
3704
|
+
})]
|
|
3705
|
+
})
|
|
3706
|
+
});
|
|
3707
|
+
}, ja = (0, X.forwardRef)((e, t) => {
|
|
3708
|
+
let { model: n, side: r, ...i } = e, a = _e(), o = `solid ${Oa} 1px`, s = `${a.shape.borderRadius ?? 4}px`, c = `${a.spacing?.(.5) ?? 4}px`;
|
|
3709
|
+
return (0, Z.jsx)(mt, {
|
|
3710
|
+
model: n,
|
|
3711
|
+
ref: t,
|
|
3712
|
+
propsFrame: { style: {
|
|
3713
|
+
border: o,
|
|
3714
|
+
borderRadius: s,
|
|
3715
|
+
marginBottom: c
|
|
3716
|
+
} },
|
|
3717
|
+
alwaysShowStrip: !0,
|
|
3718
|
+
componentTitle: Aa,
|
|
3719
|
+
componentStrip: ka,
|
|
3720
|
+
side: r,
|
|
3721
|
+
...e,
|
|
3722
|
+
onOpen: () => {
|
|
3723
|
+
e?.onOpen?.();
|
|
3724
|
+
},
|
|
3725
|
+
onClose: () => {
|
|
3726
|
+
e?.onClose?.();
|
|
3727
|
+
},
|
|
3728
|
+
...i
|
|
3729
|
+
});
|
|
3730
|
+
}), Ma = {}, Na = {
|
|
3731
|
+
flex: "1 1 100%",
|
|
3732
|
+
display: "flex",
|
|
3733
|
+
boxSizing: "border-box"
|
|
3734
|
+
}, Pa = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
3735
|
+
let n, r, { mainElement: i, sidebarElement: a, position: o, persistKey: s, onPositionChange: c, className: l, style: u, taskSide: d = "right", ...f } = e, [p, m] = S(s ?? null, Ma), h = _e(), [g, { width: _ }] = oe(), v = _ > 530 || _ === 0, y = (0, X.useRef)(null), b = null, x = 4, C = 13;
|
|
3736
|
+
v ? b = "m 3.6261898,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.8836498,0 -1.60004965,-0.71626 -1.60004965,-1.59991 0,-0.88365 0.71639985,-1.6000508 1.60004965,-1.6000508 0.88364,0 1.59991,0.7164008 1.59991,1.6000508 m 0,-4.881294 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 -0.8836498,0 -1.60004965,-0.7164 -1.60004965,-1.60004 0,-0.88365 0.71639985,-1.60005 1.60004965,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-4.881226 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 1.14263,3.19996 0.42623015,2.48356 0.42623015,1.59991 0.42623015,0.71626 1.14263,0 2.0262798,0 c 0.88364,0 1.59991,0.71626 1.59991,1.59991" : (b = "M 1.59991,3.62619 C 0.71626,3.62619 0,2.90992 0,2.02628 0,1.1426301 0.71626,0.42623015 1.59991,0.42623015 c 0.88365,0 1.6000508,0.71639995 1.6000508,1.60004985 0,0.88364 -0.7164008,1.59991 -1.6000508,1.59991 m 4.881294,0 c -0.88364,0 -1.60004,-0.71627 -1.60004,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60004,-1.60004985 0.88365,0 1.60005,0.71639995 1.60005,1.60004985 0,0.88364 -0.7164,1.59991 -1.60005,1.59991 m 4.881226,0 c -0.88365,0 -1.60005,-0.71627 -1.60005,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60005,-1.60004985 0.88365,0 1.59991,0.71639995 1.59991,1.60004985 0,0.88364 -0.71626,1.59991 -1.59991,1.59991", x = 13, C = 4);
|
|
3737
|
+
let w, T = i, ee = a, E = d !== "right", te = v ? "row" : "column", D = E && ee ? "before" : "after", O = `${te}:${D}`, k = s ? p[O] : void 0, re = k == null ? ((e, t) => {
|
|
3738
|
+
if (e == null) return "40%";
|
|
3739
|
+
if (typeof e == "number" || typeof e == "string") return e;
|
|
3740
|
+
let n = e[t];
|
|
3741
|
+
return n == null ? "40%" : `${n}%`;
|
|
3742
|
+
})(o, O) : `${k}%`, ie = s || c ? (e) => {
|
|
3743
|
+
s && m((t) => ({
|
|
3744
|
+
...t,
|
|
3745
|
+
[O]: e.percent
|
|
3746
|
+
})), c?.(e, {
|
|
3747
|
+
orientation: te,
|
|
3748
|
+
side: D,
|
|
3749
|
+
key: O
|
|
3750
|
+
});
|
|
3751
|
+
} : void 0;
|
|
3752
|
+
E && ee ? (T = a, ee = i, r = { style: {
|
|
3753
|
+
flexDirection: "column",
|
|
3754
|
+
boxSizing: "border-box",
|
|
3755
|
+
paddingRight: "2px"
|
|
3756
|
+
} }, n = {}, w = {
|
|
3757
|
+
fixedPane: "before",
|
|
3758
|
+
position: re,
|
|
3759
|
+
minBefore: v ? "280px" : "120px",
|
|
3760
|
+
splitDirection: v ? "row" : "column"
|
|
3761
|
+
}) : (n = { style: {
|
|
3762
|
+
flexDirection: "column",
|
|
3763
|
+
marginRight: a ? void 0 : "6px"
|
|
3764
|
+
} }, r = { style: {
|
|
3765
|
+
marginLeft: v ? "0px" : "4px",
|
|
3766
|
+
marginRight: v ? "8px" : "4px"
|
|
3767
|
+
} }, w = {
|
|
3768
|
+
fixedPane: "after",
|
|
3769
|
+
position: re,
|
|
3770
|
+
minAfter: v ? "280px" : "120px",
|
|
3771
|
+
splitDirection: v ? "row" : "column"
|
|
3772
|
+
});
|
|
3773
|
+
let A = un([
|
|
3774
|
+
y,
|
|
3775
|
+
g,
|
|
3776
|
+
t
|
|
3777
|
+
]);
|
|
3778
|
+
return (0, Z.jsx)(ne, {
|
|
3779
|
+
ref: A,
|
|
3780
|
+
className: l,
|
|
3781
|
+
style: u ? {
|
|
3782
|
+
...Na,
|
|
3783
|
+
...u
|
|
3784
|
+
} : Na,
|
|
3785
|
+
...f,
|
|
3786
|
+
...w,
|
|
3787
|
+
onPositionChange: ie,
|
|
3788
|
+
propsResizer: {
|
|
3789
|
+
className: Mt("styled-resizer", "_styled-resizer_fdl5y_3"),
|
|
3790
|
+
style: {
|
|
3791
|
+
minWidth: v ? "7px" : void 0,
|
|
3792
|
+
minHeight: v ? void 0 : "6px",
|
|
3793
|
+
maskImage: `url("data:image/svg+xml,%3Csvg width='${x}' height='${C}' viewBox='0 0 ${x} ${C}' version='1.1' fill='${h.palette.text.icon ?? h.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${b}' /%3E%3C/svg%3E%0A")`,
|
|
3794
|
+
maskRepeat: "no-repeat",
|
|
3795
|
+
maskPosition: E ? v ? "center center" : "bottom center" : v ? "left center" : "top center"
|
|
3796
|
+
}
|
|
3797
|
+
},
|
|
3798
|
+
elementBefore: T,
|
|
3799
|
+
propsPaneBefore: n,
|
|
3800
|
+
elementAfter: ee,
|
|
3801
|
+
propsPaneAfter: r
|
|
3802
|
+
});
|
|
3803
|
+
}));
|
|
3804
|
+
Pa.displayName = "StudioSplitPane";
|
|
3805
|
+
var Fa = () => (0, Z.jsx)("div", { style: {
|
|
3806
|
+
flex: "none",
|
|
3807
|
+
height: 0,
|
|
3808
|
+
borderTop: "solid var(--sxl-color-base-border, light-dark(rgba(0, 0, 0, 0.26), rgba(255, 255, 255, 0.3))) 1px"
|
|
3809
|
+
} }), Ia = (e, t) => {
|
|
3810
|
+
let n = (e) => (0, Z.jsx)(X.Fragment, { children: t[e] }, e);
|
|
3811
|
+
if (e === "bottom") {
|
|
3812
|
+
let e = t.statusBar && t.formulaBar ? (0, Z.jsx)(Fa, {}, "divider") : null;
|
|
3813
|
+
return [
|
|
3814
|
+
n("toolbar"),
|
|
3815
|
+
n("main"),
|
|
3816
|
+
n("statusBar"),
|
|
3817
|
+
e,
|
|
3818
|
+
n("formulaBar")
|
|
3819
|
+
];
|
|
3820
|
+
}
|
|
3821
|
+
return [
|
|
3822
|
+
n("toolbar"),
|
|
3823
|
+
n("formulaBar"),
|
|
3824
|
+
n("main"),
|
|
3825
|
+
n("statusBar")
|
|
3826
|
+
];
|
|
3827
|
+
}, La = _.BuiltInSelectorNames, Ra = {
|
|
3828
|
+
[La.Whole]: "FormulaMathTrig",
|
|
3829
|
+
[La.Number]: "IncreaseDecimal",
|
|
3830
|
+
[La.Date]: "FormulaDateTime",
|
|
3831
|
+
[La.DateTime]: "FormulaDateTime",
|
|
3832
|
+
[La.Time]: "FormulaDateTime",
|
|
3833
|
+
[La.TextLength]: "FormulaText"
|
|
3834
|
+
}, za = (e) => {
|
|
3835
|
+
let t = e.getCondition();
|
|
3836
|
+
if (!t) return "DataValidation";
|
|
3837
|
+
let n = t.toJSON();
|
|
3838
|
+
return n.operator === _.BuiltInOperatorNames.Expression ? "FormulaCustom" : n.selector || n.operator !== _.BuiltInOperatorNames.InSet ? typeof n.selector == "string" && Ra[n.selector] || "DataValidation" : "Menu";
|
|
3839
|
+
}, Ba = (0, X.memo)(({ dataValidation: e, size: t = 28 }) => (ue(e, "onAnyChange"), (0, Z.jsx)(J, {
|
|
3840
|
+
className: "sxl-dv-icon",
|
|
3841
|
+
sx: {
|
|
3842
|
+
width: "auto",
|
|
3843
|
+
minWidth: 1.7 * t + "px",
|
|
3844
|
+
height: `${t}px`
|
|
3845
|
+
},
|
|
3846
|
+
children: (0, Z.jsx)(b, {
|
|
3847
|
+
iconKey: za(e),
|
|
3848
|
+
size: Math.round(.6 * t),
|
|
3849
|
+
ariaHidden: !0
|
|
3850
|
+
})
|
|
3851
|
+
})));
|
|
3852
|
+
Ba.displayName = "DataValidationIcon";
|
|
3853
|
+
var Va = (e, t) => {
|
|
3854
|
+
let n = e.getCondition();
|
|
3855
|
+
if (!n) return t("dataValidation.anyValue");
|
|
3856
|
+
let r = n.toJSON();
|
|
3857
|
+
if (r.operator === _.BuiltInOperatorNames.Expression && typeof r.param == "string") return t("dataValidation.titleCustom", { formula: r.param });
|
|
3858
|
+
if (!r.selector && r.operator === _.BuiltInOperatorNames.InSet) {
|
|
3859
|
+
let e = r.param, n = e?.source;
|
|
3860
|
+
if (typeof n == "string" && n.length > 0) return t("dataValidation.titleListFrom", { source: n });
|
|
3861
|
+
let i = (e?.items ?? []).map((e) => String(e ?? "")).concat((e?.additions ?? []).map((e) => e.trimStart()));
|
|
3862
|
+
return t("dataValidation.titleList", {
|
|
3863
|
+
items: i.slice(0, 3).join(", "),
|
|
3864
|
+
more: Math.max(0, i.length - 3)
|
|
3865
|
+
});
|
|
3866
|
+
}
|
|
3867
|
+
return n.toString();
|
|
3868
|
+
}, Ha = {
|
|
3869
|
+
[v.AlertStyle.Stop]: "ValidationStop",
|
|
3870
|
+
[v.AlertStyle.Warning]: "ValidationWarning",
|
|
3871
|
+
[v.AlertStyle.Information]: "ValidationInformation"
|
|
3872
|
+
}, Ua = "none", Wa = {
|
|
3873
|
+
width: 18,
|
|
3874
|
+
height: 18,
|
|
3875
|
+
flex: "0 0 auto"
|
|
3876
|
+
}, Ga = {
|
|
3877
|
+
[v.AlertStyle.Stop]: l("dataValidation.alertStop"),
|
|
3878
|
+
[v.AlertStyle.Warning]: l("dataValidation.alertWarning"),
|
|
3879
|
+
[v.AlertStyle.Information]: l("dataValidation.alertInformation")
|
|
3880
|
+
}, Ka = (0, X.memo)((e) => {
|
|
3881
|
+
let { dataValidation: t } = e, n = M();
|
|
3882
|
+
ue(t, "onAnyChange");
|
|
3883
|
+
let r = t.isProtected(), i = t.getRenderHints().includes("list"), [a, o] = (0, X.useState)("rule"), s = (0, Z.jsxs)(xe, {
|
|
3884
|
+
tabIndex: 0,
|
|
3885
|
+
className: xn["editor-panel"],
|
|
3886
|
+
sx: {
|
|
3887
|
+
gap: (e) => e.spacing(1),
|
|
3888
|
+
paddingTop: (e) => e.spacing(1.25),
|
|
3889
|
+
paddingBottom: (e) => e.spacing(2),
|
|
3890
|
+
paddingLeft: (e) => e.spacing(1.5),
|
|
3891
|
+
paddingRight: (e) => e.spacing(1.5),
|
|
3892
|
+
border: (e) => `1px solid ${e.palette.divider}`,
|
|
3893
|
+
borderRadius: (e) => e.spacing(1.25),
|
|
3894
|
+
overflow: "auto"
|
|
3895
|
+
},
|
|
3896
|
+
children: [
|
|
3897
|
+
(0, Z.jsxs)(I, {
|
|
3898
|
+
sx: {
|
|
3899
|
+
display: "flex",
|
|
3900
|
+
flexDirection: "column",
|
|
3901
|
+
gap: (e) => e.spacing(1.75),
|
|
3902
|
+
margin: (e) => e.spacing(1.25),
|
|
3903
|
+
marginBottom: 0
|
|
3904
|
+
},
|
|
3905
|
+
children: [(0, Z.jsxs)(I, {
|
|
3906
|
+
sx: {
|
|
3907
|
+
display: "flex",
|
|
3908
|
+
alignItems: "center",
|
|
3909
|
+
gap: (e) => e.spacing(1.5)
|
|
3910
|
+
},
|
|
3911
|
+
children: [(0, Z.jsx)(Ba, {
|
|
3912
|
+
dataValidation: t,
|
|
3913
|
+
size: 48
|
|
3914
|
+
}), (0, Z.jsx)(R, {
|
|
3915
|
+
variant: "body2",
|
|
3916
|
+
sx: {
|
|
3917
|
+
minWidth: 0,
|
|
3918
|
+
wordBreak: "break-word"
|
|
3919
|
+
},
|
|
3920
|
+
children: Va(t, n)
|
|
3921
|
+
})]
|
|
3922
|
+
}), (0, Z.jsx)(En, {
|
|
3923
|
+
item: t,
|
|
3924
|
+
label: n("dataValidation.applyTo")
|
|
3925
|
+
})]
|
|
3926
|
+
}),
|
|
3927
|
+
(0, Z.jsxs)(Wt, {
|
|
3928
|
+
value: a,
|
|
3929
|
+
onChange: (e, t) => o(t),
|
|
3930
|
+
sx: {
|
|
3931
|
+
minHeight: "36px",
|
|
3932
|
+
borderBottom: 1,
|
|
3933
|
+
borderColor: "divider",
|
|
3934
|
+
"& .MuiTab-root": {
|
|
3935
|
+
minHeight: "36px",
|
|
3936
|
+
textTransform: "none",
|
|
3937
|
+
pt: .5,
|
|
3938
|
+
pb: .5,
|
|
3939
|
+
px: 1.5,
|
|
3940
|
+
minWidth: 0
|
|
3941
|
+
}
|
|
3942
|
+
},
|
|
3943
|
+
children: [(0, Z.jsx)(Gt, {
|
|
3944
|
+
value: "rule",
|
|
3945
|
+
label: n("dataValidation.tabRule")
|
|
3946
|
+
}), (0, Z.jsx)(Gt, {
|
|
3947
|
+
value: "prompt",
|
|
3948
|
+
label: n("dataValidation.prompt")
|
|
3949
|
+
})]
|
|
3950
|
+
}),
|
|
3951
|
+
a === "prompt" ? (0, Z.jsxs)(I, {
|
|
3952
|
+
sx: {
|
|
3953
|
+
display: "flex",
|
|
3954
|
+
flexDirection: "column",
|
|
3955
|
+
gap: 2
|
|
3956
|
+
},
|
|
3957
|
+
children: [
|
|
3958
|
+
(0, Z.jsx)(z, {
|
|
3959
|
+
control: (0, Z.jsx)(Be, {
|
|
3960
|
+
checked: t.isShowPromptMessage(),
|
|
3961
|
+
disabled: r,
|
|
3962
|
+
onChange: (e) => t.setShowPromptMessage(e.target.checked)
|
|
3963
|
+
}),
|
|
3964
|
+
label: n("dataValidation.showPrompt"),
|
|
3965
|
+
sx: {
|
|
3966
|
+
ml: 0,
|
|
3967
|
+
pl: .5
|
|
3968
|
+
}
|
|
3969
|
+
}),
|
|
3970
|
+
(0, Z.jsx)(B, {
|
|
3971
|
+
size: "small",
|
|
3972
|
+
label: n("dataValidation.title"),
|
|
3973
|
+
value: t.getPromptTitle(),
|
|
3974
|
+
onChange: (e) => t.setPromptTitle(e.target.value),
|
|
3975
|
+
disabled: r,
|
|
3976
|
+
fullWidth: !0,
|
|
3977
|
+
slotProps: { htmlInput: { maxLength: 32 } },
|
|
3978
|
+
sx: { backgroundColor: "background.paper" }
|
|
3979
|
+
}),
|
|
3980
|
+
(0, Z.jsx)(B, {
|
|
3981
|
+
size: "small",
|
|
3982
|
+
label: n("dataValidation.message"),
|
|
3983
|
+
value: t.getPromptMessage(),
|
|
3984
|
+
onChange: (e) => t.setPromptMessage(e.target.value),
|
|
3985
|
+
disabled: r,
|
|
3986
|
+
multiline: !0,
|
|
3987
|
+
rows: 2,
|
|
3988
|
+
fullWidth: !0,
|
|
3989
|
+
slotProps: { htmlInput: { maxLength: 254 } },
|
|
3990
|
+
sx: { backgroundColor: "background.paper" }
|
|
3991
|
+
})
|
|
3992
|
+
]
|
|
3993
|
+
}) : (0, Z.jsxs)(Z.Fragment, { children: [(0, Z.jsx)(gn, {
|
|
3994
|
+
sx: {
|
|
3995
|
+
..._n,
|
|
3996
|
+
p: 2,
|
|
3997
|
+
pb: 0
|
|
3998
|
+
},
|
|
3999
|
+
selectorTitle: n("dataValidation.allow"),
|
|
4000
|
+
condition: t.getCondition(),
|
|
4001
|
+
ranges: t.getRanges(),
|
|
4002
|
+
readOnly: r,
|
|
4003
|
+
onConditionChange: (e) => {
|
|
4004
|
+
let n = !t.getCondition() && e ? {
|
|
4005
|
+
...e,
|
|
4006
|
+
includeBlanks: !0
|
|
4007
|
+
} : e;
|
|
4008
|
+
t.setCondition(n);
|
|
4009
|
+
},
|
|
4010
|
+
qualifiers: i ? (0, Z.jsx)(z, {
|
|
4011
|
+
control: (0, Z.jsx)(Be, {
|
|
4012
|
+
size: "small",
|
|
4013
|
+
checked: !t.isHideDropdown(),
|
|
4014
|
+
disabled: r,
|
|
4015
|
+
onChange: (e) => t.setHideDropdown(!e.target.checked)
|
|
4016
|
+
}),
|
|
4017
|
+
label: n("dataValidation.inCellDropdown")
|
|
4018
|
+
}) : null
|
|
4019
|
+
}), (0, Z.jsxs)(I, {
|
|
4020
|
+
sx: {
|
|
4021
|
+
display: "flex",
|
|
4022
|
+
flexDirection: "column",
|
|
4023
|
+
gap: 2,
|
|
4024
|
+
p: 2,
|
|
4025
|
+
border: 1,
|
|
4026
|
+
borderColor: "divider",
|
|
4027
|
+
borderRadius: 1
|
|
4028
|
+
},
|
|
4029
|
+
children: [(0, Z.jsxs)(ze, {
|
|
4030
|
+
fullWidth: !0,
|
|
4031
|
+
size: "small",
|
|
4032
|
+
disabled: r,
|
|
4033
|
+
sx: { backgroundColor: "background.paper" },
|
|
4034
|
+
children: [(0, Z.jsx)(Le, { children: n("dataValidation.onInvalid") }), (0, Z.jsxs)(Re, {
|
|
4035
|
+
className: "on-invalid",
|
|
4036
|
+
value: t.isShowAlertMessage() ? t.getAlertStyle() : Ua,
|
|
4037
|
+
label: n("dataValidation.onInvalid"),
|
|
4038
|
+
onChange: (e) => {
|
|
4039
|
+
let n = e.target.value;
|
|
4040
|
+
n === Ua ? t.setShowAlertMessage(!1) : (t.setAlertStyle(n), t.setShowAlertMessage(!0));
|
|
4041
|
+
},
|
|
4042
|
+
renderValue: (e) => (0, Z.jsxs)(I, {
|
|
4043
|
+
sx: {
|
|
4044
|
+
display: "flex",
|
|
4045
|
+
alignItems: "center",
|
|
4046
|
+
gap: 1
|
|
4047
|
+
},
|
|
4048
|
+
children: [e === Ua ? (0, Z.jsx)(I, { sx: Wa }) : (0, Z.jsx)(b, {
|
|
4049
|
+
iconKey: Ha[e],
|
|
4050
|
+
size: 18,
|
|
4051
|
+
ariaHidden: !0
|
|
4052
|
+
}), n(e === Ua ? "dataValidation.alertNone" : Ga[e])]
|
|
4053
|
+
}),
|
|
4054
|
+
children: [Object.keys(Ha).map((e) => (0, Z.jsxs)(U, {
|
|
4055
|
+
value: e,
|
|
4056
|
+
sx: { gap: 1 },
|
|
4057
|
+
children: [(0, Z.jsx)(b, {
|
|
4058
|
+
iconKey: Ha[e],
|
|
4059
|
+
size: 18,
|
|
4060
|
+
ariaHidden: !0
|
|
4061
|
+
}), n(Ga[e])]
|
|
4062
|
+
}, e)), (0, Z.jsxs)(U, {
|
|
4063
|
+
value: Ua,
|
|
4064
|
+
sx: { gap: 1 },
|
|
4065
|
+
children: [(0, Z.jsx)(I, { sx: Wa }), n("dataValidation.alertNone")]
|
|
4066
|
+
}, Ua)]
|
|
4067
|
+
})]
|
|
4068
|
+
}), t.isShowAlertMessage() ? (0, Z.jsxs)(Z.Fragment, { children: [(0, Z.jsx)(B, {
|
|
4069
|
+
size: "small",
|
|
4070
|
+
label: n("dataValidation.title"),
|
|
4071
|
+
value: t.getAlertTitle(),
|
|
4072
|
+
onChange: (e) => t.setAlertTitle(e.target.value),
|
|
4073
|
+
disabled: r,
|
|
4074
|
+
fullWidth: !0,
|
|
4075
|
+
slotProps: { htmlInput: { maxLength: 32 } },
|
|
4076
|
+
sx: { backgroundColor: "background.paper" }
|
|
4077
|
+
}), (0, Z.jsx)(B, {
|
|
4078
|
+
size: "small",
|
|
4079
|
+
label: n("dataValidation.message"),
|
|
4080
|
+
value: t.getAlertMessage(),
|
|
4081
|
+
onChange: (e) => t.setAlertMessage(e.target.value),
|
|
4082
|
+
disabled: r,
|
|
4083
|
+
multiline: !0,
|
|
4084
|
+
rows: 2,
|
|
4085
|
+
fullWidth: !0,
|
|
4086
|
+
slotProps: { htmlInput: { maxLength: 225 } },
|
|
4087
|
+
sx: { backgroundColor: "background.paper" }
|
|
4088
|
+
})] }) : null]
|
|
4089
|
+
})] })
|
|
4090
|
+
]
|
|
4091
|
+
});
|
|
4092
|
+
return (0, Z.jsx)(pn.Provider, {
|
|
4093
|
+
value: t,
|
|
4094
|
+
children: s
|
|
4095
|
+
});
|
|
4096
|
+
});
|
|
4097
|
+
Ka.displayName = "DataValidationEditorPanel";
|
|
4098
|
+
var qa = ({ icon: e, title: t, children: n }) => (0, Z.jsxs)(I, {
|
|
4099
|
+
className: "validation-badge",
|
|
4100
|
+
title: t,
|
|
4101
|
+
"aria-label": t,
|
|
4102
|
+
sx: {
|
|
4103
|
+
display: "inline-flex",
|
|
4104
|
+
alignItems: "center",
|
|
4105
|
+
gap: .5,
|
|
4106
|
+
px: .75,
|
|
4107
|
+
py: .25,
|
|
4108
|
+
border: 1,
|
|
4109
|
+
borderColor: "divider",
|
|
4110
|
+
borderRadius: 1,
|
|
4111
|
+
color: "text.secondary"
|
|
4112
|
+
},
|
|
4113
|
+
children: [(0, Z.jsx)(b, {
|
|
4114
|
+
iconKey: e,
|
|
4115
|
+
size: 14,
|
|
4116
|
+
ariaHidden: !0
|
|
4117
|
+
}), n ? (0, Z.jsx)(R, {
|
|
4118
|
+
variant: "caption",
|
|
4119
|
+
children: n
|
|
4120
|
+
}) : null]
|
|
4121
|
+
}), Ja = {
|
|
4122
|
+
[v.AlertStyle.Stop]: "dataValidation.alertStop",
|
|
4123
|
+
[v.AlertStyle.Warning]: "dataValidation.alertWarning",
|
|
4124
|
+
[v.AlertStyle.Information]: "dataValidation.alertInformation"
|
|
4125
|
+
}, Ya = (0, X.memo)(({ item: e }) => {
|
|
4126
|
+
let t = M();
|
|
4127
|
+
ue(e, "onAnyChange");
|
|
4128
|
+
let n = [];
|
|
4129
|
+
if (e.isShowPromptMessage() && n.push((0, Z.jsx)(qa, {
|
|
4130
|
+
icon: "NoteInsert",
|
|
4131
|
+
title: t("dataValidation.prompt"),
|
|
4132
|
+
children: e.getPromptTitle() || null
|
|
4133
|
+
}, "prompt")), e.getCondition() && e.isShowAlertMessage()) {
|
|
4134
|
+
let r = e.getAlertStyle();
|
|
4135
|
+
n.push((0, Z.jsx)(qa, {
|
|
4136
|
+
icon: Ha[r],
|
|
4137
|
+
title: `${t("dataValidation.alert")}: ${t(Ja[r])}`
|
|
4138
|
+
}, "alert"));
|
|
4139
|
+
}
|
|
4140
|
+
return !e.isHideDropdown() && e.getRenderHints().includes("list") && n.push((0, Z.jsx)(qa, {
|
|
4141
|
+
icon: "ArrowDownOutline",
|
|
4142
|
+
title: t("dataValidation.inCellDropdown")
|
|
4143
|
+
}, "dropdown")), n.length === 0 ? null : (0, Z.jsx)(I, {
|
|
4144
|
+
sx: {
|
|
4145
|
+
display: "flex",
|
|
4146
|
+
flexWrap: "wrap",
|
|
4147
|
+
gap: .5
|
|
4148
|
+
},
|
|
4149
|
+
children: n
|
|
4150
|
+
});
|
|
4151
|
+
});
|
|
4152
|
+
Ya.displayName = "DataValidationCardBody";
|
|
4153
|
+
var Xa = (0, X.memo)(({ item: e }) => {
|
|
4154
|
+
let t = M();
|
|
4155
|
+
return (0, Z.jsx)(En, {
|
|
4156
|
+
item: e,
|
|
4157
|
+
label: t("dataValidation.applyTo"),
|
|
4158
|
+
helperText: null
|
|
4159
|
+
});
|
|
4160
|
+
});
|
|
4161
|
+
Xa.displayName = "DataValidationCardRanges";
|
|
4162
|
+
var Za = {
|
|
4163
|
+
key: "data-validation",
|
|
4164
|
+
messageKeys: {
|
|
4165
|
+
none: l("dataValidation.none"),
|
|
4166
|
+
addPrompt: l("dataValidation.addPrompt"),
|
|
4167
|
+
heading: l("dataValidation.heading"),
|
|
4168
|
+
insert: l("dataValidation.insert"),
|
|
4169
|
+
new: l("dataValidation.new"),
|
|
4170
|
+
moveUp: l("dataValidation.moveUp"),
|
|
4171
|
+
moveDown: l("dataValidation.moveDown"),
|
|
4172
|
+
edit: l("dataValidation.edit"),
|
|
4173
|
+
duplicate: l("dataValidation.duplicate"),
|
|
4174
|
+
delete: l("dataValidation.delete"),
|
|
4175
|
+
cancel: l("dataValidation.cancel"),
|
|
4176
|
+
save: l("dataValidation.save")
|
|
4177
|
+
},
|
|
4178
|
+
getCollection: (e) => e.getDataValidations(),
|
|
4179
|
+
changeEvents: ["onDataValidationsChange"],
|
|
4180
|
+
isReadOnly: (e) => e.getProtection().isLocked() || e.getProtection().isReadOnly(),
|
|
4181
|
+
applyUpdate: (e, t) => {
|
|
4182
|
+
e.update(t);
|
|
4183
|
+
},
|
|
4184
|
+
validate: (e) => e.getCondition()?.validate() ?? null,
|
|
4185
|
+
applyNewDefaults: (e) => {
|
|
4186
|
+
e.update({
|
|
4187
|
+
alertStyle: v.AlertStyle.Stop,
|
|
4188
|
+
showAlertMessage: !0
|
|
4189
|
+
});
|
|
4190
|
+
},
|
|
4191
|
+
applySeed: (e, t) => {
|
|
4192
|
+
e.update(t);
|
|
4193
|
+
},
|
|
4194
|
+
getCardTitle: Va,
|
|
4195
|
+
CardMedia: ({ item: e }) => (0, Z.jsx)(Ba, {
|
|
4196
|
+
dataValidation: e,
|
|
4197
|
+
size: 32
|
|
4198
|
+
}),
|
|
4199
|
+
CardSubtitle: Xa,
|
|
4200
|
+
CardBody: Ya,
|
|
4201
|
+
EditorBody: ({ item: e }) => (0, Z.jsx)(Ka, { dataValidation: e })
|
|
4202
|
+
}, Qa = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
4203
|
+
let { workbook: n, args: r, ...i } = e;
|
|
4204
|
+
return (0, Z.jsx)(Rt, {
|
|
4205
|
+
ref: t,
|
|
4206
|
+
workbook: n,
|
|
4207
|
+
descriptor: Za,
|
|
4208
|
+
args: r,
|
|
4209
|
+
dragReorder: !0,
|
|
4210
|
+
...i
|
|
4211
|
+
});
|
|
4212
|
+
}));
|
|
4213
|
+
Qa.displayName = "DataValidationDetailsPanel", $t(), lt("shape", {
|
|
4214
|
+
key: "changeShapeGallery",
|
|
4215
|
+
render: (e) => (0, Z.jsx)(an, {
|
|
4216
|
+
...e,
|
|
4217
|
+
commandKey: "changeShape",
|
|
4218
|
+
excludeCategories: Kr
|
|
4219
|
+
})
|
|
4220
|
+
}, {
|
|
4221
|
+
order: -1,
|
|
4222
|
+
divider: "after"
|
|
4223
|
+
}), de("shape", () => import("./DlpgIJxNq2V4gdDq.js").then((e) => e.ShapeFormatPanel)), lt("picture", {
|
|
4224
|
+
key: "changePictureOptions",
|
|
4225
|
+
defaultKey: "changePictureFromFile",
|
|
4226
|
+
members: ["changePictureFromFile", "changePictureFromURL"]
|
|
4227
|
+
}, {
|
|
4228
|
+
order: -1,
|
|
4229
|
+
divider: "after"
|
|
4230
|
+
}), Zt(), x.register("plugin-table", { icons: {} }), G.registerTaskPane({
|
|
4231
|
+
key: "dataValidationDetails",
|
|
4232
|
+
getTitle: () => "Data Validation",
|
|
4233
|
+
getIcon: () => "DataValidation",
|
|
4234
|
+
component: (e) => {
|
|
4235
|
+
let { model: t, entryKey: n, frame: r, args: i, ref: a, ...o } = e;
|
|
4236
|
+
return (0, Z.jsx)(Qa, {
|
|
4237
|
+
ref: a,
|
|
4238
|
+
workbook: t,
|
|
4239
|
+
args: i,
|
|
4240
|
+
...o
|
|
4241
|
+
});
|
|
4242
|
+
}
|
|
4243
|
+
}, !0), G.registerTaskPane({
|
|
4244
|
+
key: "conditionalFormatDetails",
|
|
4245
|
+
getTitle: () => "Conditional Formatting",
|
|
4246
|
+
getIcon: () => "FormatPaint",
|
|
4247
|
+
component: (e) => {
|
|
4248
|
+
let { model: t, entryKey: n, frame: r, args: i, ref: a, ...o } = e;
|
|
4249
|
+
return (0, Z.jsx)(Gr, {
|
|
4250
|
+
ref: a,
|
|
4251
|
+
workbook: t,
|
|
4252
|
+
args: i,
|
|
4253
|
+
...o
|
|
4254
|
+
});
|
|
4255
|
+
}
|
|
4256
|
+
}, !0), Xt(), qt(), Vt(), Lt(), Ht(), yn();
|
|
4257
|
+
var $a = () => {
|
|
4258
|
+
let e, t, n = new Promise((n, r) => {
|
|
4259
|
+
e = n, t = r;
|
|
4260
|
+
}), r = {
|
|
4261
|
+
promise: n,
|
|
4262
|
+
settled: !1,
|
|
4263
|
+
resolve: (t) => {
|
|
4264
|
+
r.settled = !0, e(t);
|
|
4265
|
+
},
|
|
4266
|
+
reject: (e) => {
|
|
4267
|
+
r.settled = !0, t(e);
|
|
4268
|
+
}
|
|
4269
|
+
};
|
|
4270
|
+
return n.catch(() => {}), r;
|
|
4271
|
+
}, eo = (e, t) => {
|
|
4272
|
+
if (!e) return {};
|
|
4273
|
+
let { colorSchemes: n, ...r } = e, i = n?.[t ? "dark" : "light"];
|
|
4274
|
+
return i && typeof i == "object" ? a.deepMerge(r, i) : r;
|
|
4275
|
+
}, to = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
4276
|
+
let { host: n, scopeClass: r, square: o, elevation: s, variant: c, onWorkbookLoad: l, prefetch: u, onDocumentError: d, renderDocumentError: f = Dn, propsDocumentError: p, propsTaskPaneArea: m, renderTaskPaneArea: h = no, taskPaneSide: g = "right", onKeyDown: _, workbook: v, onWorkbookChange: y, logo: C, topLeft: w, topRight: T, muiTheme: D, tokens: ne, cssBaseline: k, autoFocus: j = !1, title: M, onDirtyChange: oe, propsDocumentTitle: N, renderDocumentLoading: de = cn, propsDocumentLoading: fe, propsWorkbook: P, showFormulaBar: pe, propsFormulaBar: me, renderFormulaBar: F, formulaBarPlacement: he, manageVisualViewport: ge = !0, editable: _e, showStatusBar: ve, propsStatusBar: ye, renderStatusBar: be, propsToolbar: Se, renderToolbar: Te } = e, L = (0, X.useRef)(null), Ee = (0, X.useRef)(null), De = (0, X.useRef)(null), Oe = A(() => {
|
|
4277
|
+
De.current?.getNamedCollectionEditorElement?.()?.focus?.();
|
|
4278
|
+
}, []), R = ((e, t = typeof window > "u" ? "mouse" : le.detectIt().primaryInput) => e === "top" || e === "bottom" ? e : t === "touch" ? "bottom" : "top")(he), ke = R === "bottom" && ge, Ae = re(ke), je = Ae ? Math.max(0, Math.round(window.innerHeight - Ae.height)) : 0, Me = Ae ? Math.round(Ae.offsetTop) : 0, Ne = Ae?.height;
|
|
4279
|
+
(0, X.useEffect)(() => {
|
|
4280
|
+
ke && Ne !== void 0 && (window.scrollX === 0 && window.scrollY === 0 || window.scrollTo(0, 0));
|
|
4281
|
+
}, [ke, Ne]);
|
|
4282
|
+
let Pe = A(d ?? (() => {}), [d]), Fe = A(oe ?? (() => {}), [oe]), Ie = N?.placeHolder, [Le] = S(gt.Mode, Et[gt.Mode]), { themeMode: Re } = ce({ mode: Le ?? void 0 }), [ze] = S(te.Active, null), Be = (0, X.useRef)(ze);
|
|
4283
|
+
Be.current = ze;
|
|
4284
|
+
let z = O(), B = (0, X.useMemo)(() => ({
|
|
4285
|
+
light: we(!1, a.deepMerge(eo(D, !1), Sn(z?.light))),
|
|
4286
|
+
dark: we(!0, a.deepMerge(eo(D, !0), Sn(z?.dark)))
|
|
4287
|
+
}), [
|
|
4288
|
+
D,
|
|
4289
|
+
z?.light,
|
|
4290
|
+
z?.dark
|
|
4291
|
+
]), Ue = Re === "dark", We = (0, X.useMemo)(() => on(B.light, B.dark, `.${r}`, ne), [
|
|
4292
|
+
B,
|
|
4293
|
+
r,
|
|
4294
|
+
ne
|
|
4295
|
+
]), Ge = (0, X.useMemo)(() => ht("sxl-defaults", `.${r}`), [r]), Ke = ut(), [qe, Je] = (0, X.useState)(() => v ?? null);
|
|
4296
|
+
(0, X.useEffect)(() => {
|
|
4297
|
+
Je(v ?? null);
|
|
4298
|
+
}, [v]);
|
|
4299
|
+
let [Ye, Xe] = (0, X.useState)(0), Ze = (0, X.useRef)(null);
|
|
4300
|
+
Ze.current ||= $a();
|
|
4301
|
+
let Qe = bt(qe, {
|
|
4302
|
+
io: W,
|
|
4303
|
+
defaultTheme: Ke.getDefaultTheme(),
|
|
4304
|
+
reloadKey: Ye
|
|
4305
|
+
}), V = Qe.status === "loaded" ? Qe.workbook : null, H = (0, X.useMemo)(() => Qe.status === "error" ? {
|
|
4306
|
+
status: "error",
|
|
4307
|
+
error: Qe.error
|
|
4308
|
+
} : Qe.status === "loaded" ? {
|
|
4309
|
+
status: "loaded",
|
|
4310
|
+
workbook: Qe.workbook
|
|
4311
|
+
} : { status: "loading" }, [Qe]);
|
|
4312
|
+
(0, X.useEffect)(() => {
|
|
4313
|
+
Ze.current.settled && (Ze.current = $a());
|
|
4314
|
+
}, [qe, Ye]), (0, X.useEffect)(() => {
|
|
4315
|
+
H.status === "loaded" ? Ze.current.resolve(H.workbook) : H.status === "error" && (Pe?.(H.error), Ze.current.reject(H.error));
|
|
4316
|
+
}, [H]);
|
|
4317
|
+
let [U, et] = (0, X.useState)(null);
|
|
4318
|
+
V && !U && et(V);
|
|
4319
|
+
let it = V && U && V !== U ? V : null, ot = (0, X.useRef)(it);
|
|
4320
|
+
ot.current = it;
|
|
4321
|
+
let st = (0, X.useRef)(U);
|
|
4322
|
+
st.current = U;
|
|
4323
|
+
let ct = (0, X.useRef)([]), lt = (0, X.useCallback)((e) => {
|
|
4324
|
+
let t = st.current;
|
|
4325
|
+
t && ct.current.push(t), Je(e);
|
|
4326
|
+
}, []);
|
|
4327
|
+
(0, X.useEffect)(() => {
|
|
4328
|
+
let e = ct.current;
|
|
4329
|
+
if (e.length !== 0) {
|
|
4330
|
+
ct.current = e.filter((e) => e === U);
|
|
4331
|
+
for (let t = 0; t < e.length; t++) {
|
|
4332
|
+
let n = e[t];
|
|
4333
|
+
if (n !== U) try {
|
|
4334
|
+
n.close();
|
|
4335
|
+
} catch (e) {
|
|
4336
|
+
console.warn("Unable to close the replaced workbook", e);
|
|
4337
|
+
}
|
|
4338
|
+
}
|
|
4339
|
+
}
|
|
4340
|
+
}, [U]);
|
|
4341
|
+
let ft = _e ? null : U, pt = at(), mt = (0, X.useMemo)(() => ft ? tt(ft.getSelectedSheet(), { referenceMode: pt }) : null, [ft, pt]), G = _e ?? mt, _t = (0, X.useRef)(G);
|
|
4342
|
+
_t.current = G, (0, X.useEffect)(() => {
|
|
4343
|
+
if (!G) return;
|
|
4344
|
+
let e = G.getSession();
|
|
4345
|
+
return G.subscribe(() => {
|
|
4346
|
+
let t = e;
|
|
4347
|
+
e = G.getSession(), t && !e && t.getActiveEditorId() === "formula-bar" && De.current?.contains?.(document.activeElement) && L.current?.focus();
|
|
4348
|
+
});
|
|
4349
|
+
}, [G]);
|
|
4350
|
+
let vt = Tt(U), { isDirty: yt, saveState: xt } = wt(U, W), St = Ot(U), Ct = (0, X.useRef)(xt), Dt = (0, X.useRef)(null);
|
|
4351
|
+
Ct.current = xt;
|
|
4352
|
+
let kt = (0, X.useCallback)(() => Ct.current?.isDirty() ?? !1, []), At = (0, X.useRef)(H);
|
|
4353
|
+
At.current = H;
|
|
4354
|
+
let [jt, Mt] = (0, X.useState)(null), Nt = M ?? N?.title, [Pt, K] = (0, X.useState)(null);
|
|
4355
|
+
(0, X.useEffect)(() => {
|
|
4356
|
+
K(null);
|
|
4357
|
+
}, [U]);
|
|
4358
|
+
let Ft = Nt ?? Pt ?? vt ?? "";
|
|
4359
|
+
(0, X.useEffect)(() => {
|
|
4360
|
+
Fe?.(yt);
|
|
4361
|
+
}, [yt]);
|
|
4362
|
+
let It = A(y ?? (() => {}), [y]);
|
|
4363
|
+
(0, X.useEffect)(() => {
|
|
4364
|
+
It?.(V);
|
|
4365
|
+
}, [V]);
|
|
4366
|
+
let Lt = (0, X.useRef)(V);
|
|
4367
|
+
Lt.current = V, ue(U, "onViewChange");
|
|
4368
|
+
let Rt = (0, X.useMemo)(() => (0, Z.jsx)(Ve, {
|
|
4369
|
+
groupKey: "helpOptions",
|
|
4370
|
+
disableHover: !0,
|
|
4371
|
+
sx: { padding: "0" },
|
|
4372
|
+
propsButton: { sx: { maxHeight: "22px" } }
|
|
4373
|
+
}), []), [Vt, q] = (0, X.useState)(null), Ht = (0, X.useCallback)((e) => {
|
|
4374
|
+
q(e);
|
|
4375
|
+
}, []);
|
|
4376
|
+
(0, X.useEffect)(() => {
|
|
4377
|
+
x.prefetch().catch((e) => {
|
|
4378
|
+
console.warn("Icons could not be loaded:", e);
|
|
4379
|
+
});
|
|
4380
|
+
}, []);
|
|
4381
|
+
let Ut = (0, X.useRef)(null);
|
|
4382
|
+
Ut.current ||= $a();
|
|
4383
|
+
let Wt = (0, X.useRef)(null), Gt = (0, X.useCallback)(() => Wt.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? Ut.current.promise, []), Kt = A(async (e) => {
|
|
4384
|
+
let t = Be.current;
|
|
4385
|
+
t && t !== i.getActive() && await i.setActive(t), await E.DefaultCommandCatalogService.prefetch(t ?? void 0), Mt(e), Wt.current = e.source, Ut.current.settled || Ut.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
|
|
4386
|
+
}, []), qt = (0, X.useRef)(null), Jt = (0, X.useCallback)((e) => {
|
|
4387
|
+
let t = null, n = {
|
|
4388
|
+
readOnly: !0,
|
|
4389
|
+
...N
|
|
4390
|
+
};
|
|
4391
|
+
return N?.hidden || (t = (0, Z.jsx)(zt, {
|
|
4392
|
+
...n,
|
|
4393
|
+
style: {
|
|
4394
|
+
maxWidth: "100%",
|
|
4395
|
+
...N?.style
|
|
4396
|
+
},
|
|
4397
|
+
workbook: e.workbook ?? L.current,
|
|
4398
|
+
ref: qt,
|
|
4399
|
+
title: Ft,
|
|
4400
|
+
modified: yt,
|
|
4401
|
+
encrypted: St,
|
|
4402
|
+
placeHolder: Ie,
|
|
4403
|
+
onTitleChange: (e) => {
|
|
4404
|
+
K(e), N?.onTitleChange?.(e);
|
|
4405
|
+
}
|
|
4406
|
+
})), (0, Z.jsx)(_a, {
|
|
4407
|
+
...e,
|
|
4408
|
+
logo: C,
|
|
4409
|
+
mainElement: t,
|
|
4410
|
+
startElement: w,
|
|
4411
|
+
endElement: T
|
|
4412
|
+
});
|
|
4413
|
+
}, [
|
|
4414
|
+
C,
|
|
4415
|
+
Ft,
|
|
4416
|
+
yt,
|
|
4417
|
+
St,
|
|
4418
|
+
N,
|
|
4419
|
+
w,
|
|
4420
|
+
T
|
|
4421
|
+
]);
|
|
4422
|
+
(0, X.useEffect)(() => {
|
|
4423
|
+
let e = L.current;
|
|
4424
|
+
if (!e) return;
|
|
4425
|
+
let t = (t) => {
|
|
4426
|
+
(t.ctrlKey || t.metaKey || se.getWheelOwner(t, e) !== "native") && t.preventDefault();
|
|
4427
|
+
};
|
|
4428
|
+
return e.addEventListener("wheel", t, { passive: !1 }), () => {
|
|
4429
|
+
e.removeEventListener("wheel", t);
|
|
4430
|
+
};
|
|
4431
|
+
}, [jt]);
|
|
4432
|
+
let [Yt, J] = (0, X.useState)(null);
|
|
4433
|
+
(0, X.useEffect)(() => {
|
|
4434
|
+
J(jt?.source?.getCommandScope?.() ?? null);
|
|
4435
|
+
}, [jt]);
|
|
4436
|
+
let Xt = (0, X.useMemo)(() => ({
|
|
4437
|
+
"& .SnackbarContainer-root": { position: "absolute !important" },
|
|
4438
|
+
"& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
|
|
4439
|
+
"& .notistack-Snackbar": { minWidth: "unset" },
|
|
4440
|
+
"& .notistack-Snackbar > .error-snackbar .MuiTypography-root": { color: (e) => e.palette.getContrastText(e.palette.error.main) },
|
|
4441
|
+
"& .notistack-Snackbar > .error-snackbar .MuiCardActions-root": { color: (e) => e.palette.getContrastText(e.palette.error.main) },
|
|
4442
|
+
"& .notistack-Snackbar > .error-snackbar .MuiButtonBase-root": { color: (e) => e.palette.getContrastText(e.palette.error.main) },
|
|
4443
|
+
"& .notistack-MuiContent *": { fontFamily: (e) => e.typography.fontFamily },
|
|
4444
|
+
"& #notistack-snackbar": {
|
|
4445
|
+
maxWidth: "560px",
|
|
4446
|
+
whiteSpace: "pre-wrap"
|
|
4447
|
+
},
|
|
4448
|
+
"*": { userSelect: "none" }
|
|
4449
|
+
}), []), [Y, Zt] = (0, X.useState)(null), [, Qt] = S(null, !1);
|
|
4450
|
+
(0, X.useEffect)(() => {
|
|
4451
|
+
Qt(Y != null);
|
|
4452
|
+
}, [Y, Qt]);
|
|
4453
|
+
let $t = (0, X.useCallback)((e) => h({
|
|
4454
|
+
model: U,
|
|
4455
|
+
side: g,
|
|
4456
|
+
...e,
|
|
4457
|
+
...m
|
|
4458
|
+
}), [
|
|
4459
|
+
U,
|
|
4460
|
+
g,
|
|
4461
|
+
m
|
|
4462
|
+
]), tn = (0, X.useRef)(n);
|
|
4463
|
+
tn.current = n, ie(t, () => ({
|
|
4464
|
+
isStudioElement: () => !0,
|
|
4465
|
+
save: (e) => {
|
|
4466
|
+
let t = Dt.current;
|
|
4467
|
+
return t ? t(e) : Promise.reject(Error("The studio cannot save: no workbook, or the backing store cannot write."));
|
|
4468
|
+
},
|
|
4469
|
+
getWorkbookElement: () => L.current,
|
|
4470
|
+
getWorkbook: () => Lt.current ?? null,
|
|
4471
|
+
isDirty: () => Ct.current?.isDirty() ?? !1,
|
|
4472
|
+
getEditable: () => _t.current,
|
|
4473
|
+
getFormulaBarElement: () => De.current ?? null,
|
|
4474
|
+
focus: () => L.current?.focus(),
|
|
4475
|
+
whenReady: () => (Ze.current ||= $a(), Ze.current.promise),
|
|
4476
|
+
getWorkbookState: () => At.current,
|
|
4477
|
+
retry: () => Xe((e) => e + 1)
|
|
4478
|
+
}), [], n);
|
|
4479
|
+
let nn = (0, X.useRef)(!1), rn = A((e, t) => {
|
|
4480
|
+
t === ot.current && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
4481
|
+
t === ot.current && (nn.current = tn.current?.contains(document.activeElement) ?? !0, et(t), Kt(e));
|
|
4482
|
+
}));
|
|
4483
|
+
}, []);
|
|
4484
|
+
(0, X.useEffect)(() => {
|
|
4485
|
+
nn.current && (nn.current = !1, L.current?.focus());
|
|
4486
|
+
}, [U]);
|
|
4487
|
+
let an = (0, X.useCallback)(() => (0, Z.jsx)(Z.Fragment, {}), []), sn = (0, X.useCallback)((e) => {
|
|
4488
|
+
let { ref: t, ...n } = e, r = Ue ? B.dark : B.light, i = H.status === "error" ? f({
|
|
4489
|
+
...p,
|
|
4490
|
+
style: {
|
|
4491
|
+
width: "100%",
|
|
4492
|
+
height: "100%",
|
|
4493
|
+
...p?.style
|
|
4494
|
+
},
|
|
4495
|
+
error: H.error
|
|
4496
|
+
}) : null;
|
|
4497
|
+
if (i && !U) return (0, Z.jsx)(xe, {
|
|
4498
|
+
style: {
|
|
4499
|
+
width: "100%",
|
|
4500
|
+
height: "100%",
|
|
4501
|
+
position: "absolute",
|
|
4502
|
+
display: "flex",
|
|
4503
|
+
alignItems: "stretch",
|
|
4504
|
+
justifyContent: "stretch"
|
|
4505
|
+
},
|
|
4506
|
+
children: i
|
|
4507
|
+
});
|
|
4508
|
+
let a = null;
|
|
4509
|
+
if (U) {
|
|
4510
|
+
let e = U, i = e.getView(), o = pe ?? i?.isShowFormulaBar(), s = ve ?? i?.isShowStatusBar(), c = jt?.source ?? L.current, l = (Te ?? Jt)({
|
|
4511
|
+
workbook: c,
|
|
4512
|
+
...Se
|
|
4513
|
+
}), d = R === "bottom", f = o ? (F ?? Bt)({
|
|
4514
|
+
ref: De,
|
|
4515
|
+
style: {
|
|
4516
|
+
marginTop: r.spacing(d ? .5 : .25),
|
|
4517
|
+
marginLeft: r.spacing(1),
|
|
4518
|
+
marginRight: r.spacing(1),
|
|
4519
|
+
marginBottom: r.spacing(d ? .5 : .75)
|
|
4520
|
+
},
|
|
4521
|
+
workbook: e,
|
|
4522
|
+
editable: G ?? void 0,
|
|
4523
|
+
placement: R,
|
|
4524
|
+
...me,
|
|
4525
|
+
propsNamedCollectionEditor: {
|
|
4526
|
+
restoreFocus: (e) => c?.focus(e),
|
|
4527
|
+
...me?.propsNamedCollectionEditor
|
|
4528
|
+
}
|
|
4529
|
+
}) : null, p = s ? (be ?? fn)({
|
|
4530
|
+
childrenEnd: Rt,
|
|
4531
|
+
...ye
|
|
4532
|
+
}) : null, m = (e, r) => (0, Z.jsx)(en, {
|
|
4533
|
+
...P,
|
|
4534
|
+
tabIndex: 0,
|
|
4535
|
+
autoFocus: !r && j,
|
|
4536
|
+
workbook: e,
|
|
4537
|
+
editable: r ? void 0 : G ?? void 0,
|
|
4538
|
+
focusNameBox: r ? void 0 : Oe,
|
|
4539
|
+
prefetch: !r && u,
|
|
4540
|
+
ref: r ? Ee : ln([t, L]),
|
|
4541
|
+
onWorkbookLoad: r ? (t) => rn(t, e) : Kt,
|
|
4542
|
+
onKeyDown: (e) => {
|
|
4543
|
+
_?.(e);
|
|
4544
|
+
},
|
|
4545
|
+
propsWorkbookLoading: fe,
|
|
4546
|
+
renderWorkbookLoading: an,
|
|
4547
|
+
style: r ? {
|
|
4548
|
+
...P?.style,
|
|
4549
|
+
position: "absolute",
|
|
4550
|
+
inset: 0,
|
|
4551
|
+
visibility: "hidden"
|
|
4552
|
+
} : {
|
|
4553
|
+
flex: "1 1 100%",
|
|
4554
|
+
minHeight: 0,
|
|
4555
|
+
...P?.style
|
|
4556
|
+
},
|
|
4557
|
+
onContextMenu: (e) => e.preventDefault(),
|
|
4558
|
+
...r ? null : n
|
|
4559
|
+
}, e.getId());
|
|
4560
|
+
a = (0, Z.jsx)("div", {
|
|
4561
|
+
style: {
|
|
4562
|
+
display: "flex",
|
|
4563
|
+
flexDirection: "column",
|
|
4564
|
+
flex: "1 1 100%",
|
|
4565
|
+
minWidth: 0,
|
|
4566
|
+
minHeight: 0,
|
|
4567
|
+
...rt({
|
|
4568
|
+
window: r.palette.background.default,
|
|
4569
|
+
windowText: r.palette.text.primary
|
|
4570
|
+
})
|
|
4571
|
+
},
|
|
4572
|
+
children: Ia(R, {
|
|
4573
|
+
toolbar: l,
|
|
4574
|
+
formulaBar: f,
|
|
4575
|
+
statusBar: p,
|
|
4576
|
+
main: (0, Z.jsx)(Pa, {
|
|
4577
|
+
taskSide: g,
|
|
4578
|
+
persistKey: "taskPanePosition",
|
|
4579
|
+
sidebarElement: Y ? (0, Z.jsx)(E.CommandScopeProvider, {
|
|
4580
|
+
scope: Yt,
|
|
4581
|
+
children: Y
|
|
4582
|
+
}) : void 0,
|
|
4583
|
+
mainElement: (0, Z.jsxs)("div", {
|
|
4584
|
+
style: {
|
|
4585
|
+
position: "relative",
|
|
4586
|
+
display: "flex",
|
|
4587
|
+
flexDirection: "column",
|
|
4588
|
+
flex: "1 1 100%",
|
|
4589
|
+
minWidth: 0,
|
|
4590
|
+
minHeight: 0
|
|
4591
|
+
},
|
|
4592
|
+
children: [[m(U, !1), it ? m(it, !0) : null], (0, Z.jsx)(I, {
|
|
4593
|
+
ref: Ht,
|
|
4594
|
+
sx: {
|
|
4595
|
+
position: "absolute",
|
|
4596
|
+
top: "10%",
|
|
4597
|
+
left: 0,
|
|
4598
|
+
right: 0,
|
|
4599
|
+
bottom: 0,
|
|
4600
|
+
pointerEvents: "none",
|
|
4601
|
+
"& > :first-of-type": { position: "relative" }
|
|
4602
|
+
}
|
|
4603
|
+
})]
|
|
4604
|
+
})
|
|
4605
|
+
})
|
|
4606
|
+
})
|
|
4607
|
+
});
|
|
4608
|
+
}
|
|
4609
|
+
let l = jt ? null : de({ ...fe });
|
|
4610
|
+
return (0, Z.jsxs)(xe, {
|
|
4611
|
+
sx: Xt,
|
|
4612
|
+
style: {
|
|
4613
|
+
width: "100%",
|
|
4614
|
+
height: je ? `calc(100% - ${je}px)` : "100%",
|
|
4615
|
+
transform: Me ? `translateY(${Me}px)` : void 0,
|
|
4616
|
+
overscrollBehavior: ke ? "none" : void 0,
|
|
4617
|
+
position: "absolute",
|
|
4618
|
+
display: "flex",
|
|
4619
|
+
alignItems: "stretch",
|
|
4620
|
+
justifyContent: "stretch",
|
|
4621
|
+
backgroundColor: "var(--sxl-color-base-200)"
|
|
4622
|
+
},
|
|
4623
|
+
className: "eager-studio",
|
|
4624
|
+
square: o,
|
|
4625
|
+
elevation: s,
|
|
4626
|
+
variant: c,
|
|
4627
|
+
children: [
|
|
4628
|
+
a,
|
|
4629
|
+
i ? (0, Z.jsx)(xe, {
|
|
4630
|
+
style: {
|
|
4631
|
+
position: "absolute",
|
|
4632
|
+
inset: 0,
|
|
4633
|
+
display: "flex",
|
|
4634
|
+
alignItems: "stretch",
|
|
4635
|
+
justifyContent: "stretch"
|
|
4636
|
+
},
|
|
4637
|
+
children: i
|
|
4638
|
+
}) : null,
|
|
4639
|
+
l ? (0, Z.jsx)("div", {
|
|
4640
|
+
style: {
|
|
4641
|
+
position: "absolute",
|
|
4642
|
+
inset: 0,
|
|
4643
|
+
display: "flex",
|
|
4644
|
+
alignItems: "center",
|
|
4645
|
+
justifyContent: "center",
|
|
4646
|
+
background: `var(--sxl-color-base-100, ${Ue ? "#121212" : "#fff"})`
|
|
4647
|
+
},
|
|
4648
|
+
children: l
|
|
4649
|
+
}) : null
|
|
4650
|
+
]
|
|
4651
|
+
});
|
|
4652
|
+
}, [
|
|
4653
|
+
H,
|
|
4654
|
+
U,
|
|
4655
|
+
it,
|
|
4656
|
+
jt,
|
|
4657
|
+
Ft,
|
|
4658
|
+
de,
|
|
4659
|
+
fe,
|
|
4660
|
+
an,
|
|
4661
|
+
P,
|
|
4662
|
+
o,
|
|
4663
|
+
s,
|
|
4664
|
+
c,
|
|
4665
|
+
Rt,
|
|
4666
|
+
f,
|
|
4667
|
+
p,
|
|
4668
|
+
Jt,
|
|
4669
|
+
Xt,
|
|
4670
|
+
Y,
|
|
4671
|
+
g,
|
|
4672
|
+
Yt,
|
|
4673
|
+
pe,
|
|
4674
|
+
me,
|
|
4675
|
+
F,
|
|
4676
|
+
R,
|
|
4677
|
+
G,
|
|
4678
|
+
ve,
|
|
4679
|
+
ye,
|
|
4680
|
+
be,
|
|
4681
|
+
Se,
|
|
4682
|
+
Te,
|
|
4683
|
+
ke,
|
|
4684
|
+
je,
|
|
4685
|
+
Me,
|
|
4686
|
+
B,
|
|
4687
|
+
Ue
|
|
4688
|
+
]), un = (0, Z.jsx)(pa, {
|
|
4689
|
+
maxSnack: 3,
|
|
4690
|
+
domRoot: Vt ?? void 0,
|
|
4691
|
+
anchorOrigin: {
|
|
4692
|
+
vertical: "bottom",
|
|
4693
|
+
horizontal: "right"
|
|
4694
|
+
},
|
|
4695
|
+
autoHideDuration: 3500,
|
|
4696
|
+
onClose: (e, t, n) => {
|
|
4697
|
+
L.current?.focus();
|
|
4698
|
+
},
|
|
4699
|
+
Components: { error: ha },
|
|
4700
|
+
iconVariant: {
|
|
4701
|
+
success: (0, Z.jsx)(Ce, {
|
|
4702
|
+
style: { marginRight: "8px" },
|
|
4703
|
+
children: (0, Z.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" })
|
|
4704
|
+
}),
|
|
4705
|
+
error: (0, Z.jsx)(b, {
|
|
4706
|
+
iconKey: "ErrorAlert",
|
|
4707
|
+
style: { marginRight: "8px" }
|
|
4708
|
+
})
|
|
4709
|
+
},
|
|
4710
|
+
children: (0, Z.jsx)(nt, {
|
|
4711
|
+
workbook: U,
|
|
4712
|
+
children: (0, Z.jsx)(dt, {
|
|
4713
|
+
renderArea: $t,
|
|
4714
|
+
onUpdateArea: (e) => {
|
|
4715
|
+
Zt(e);
|
|
4716
|
+
},
|
|
4717
|
+
children: (0, Z.jsx)($e, { children: (0, Z.jsx)(Da, { children: (0, Z.jsx)(ae, { children: (0, Z.jsx)(ee, { children: (0, Z.jsx)(wa, {
|
|
4718
|
+
workbook: U,
|
|
4719
|
+
initialCommandAnchor: Gt,
|
|
4720
|
+
renderWorkbook: sn,
|
|
4721
|
+
setWorkbook: lt,
|
|
4722
|
+
titleWorkbook: Ft,
|
|
4723
|
+
setWorkbookTitle: K,
|
|
4724
|
+
refDocumentTitle: qt,
|
|
4725
|
+
isDirty: kt,
|
|
4726
|
+
refSave: Dt,
|
|
4727
|
+
host: n
|
|
4728
|
+
}) }) }) }) })
|
|
4729
|
+
})
|
|
4730
|
+
})
|
|
4731
|
+
});
|
|
4732
|
+
return un = (0, Z.jsxs)(Qn, {
|
|
4733
|
+
theme: Ue ? B.dark : B.light,
|
|
4734
|
+
children: [
|
|
4735
|
+
k ? (0, Z.jsx)(dr, {}) : null,
|
|
4736
|
+
(0, Z.jsx)("style", { children: We }),
|
|
4737
|
+
(0, Z.jsx)("style", { children: Ge }),
|
|
4738
|
+
(0, Z.jsx)(He, {
|
|
4739
|
+
themeScopeClass: r,
|
|
4740
|
+
themeSurface: "app",
|
|
4741
|
+
themeMode: Re,
|
|
4742
|
+
children: un
|
|
4743
|
+
})
|
|
4744
|
+
]
|
|
4745
|
+
}), un;
|
|
4746
|
+
}));
|
|
4747
|
+
to.displayName = "EagerStudio";
|
|
4748
|
+
var no = (e) => (0, Z.jsx)(ja, { ...e });
|
|
4749
|
+
export { to as EagerStudio, to as default };
|