@sheetxl/studio-mui 0.3.2 → 0.3.4
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/LICENSE.md +11 -11
- package/README.md +24 -24
- package/browser/cjs/B1DCwLSJMTHSgdcP.cjs +6 -0
- package/browser/cjs/{BtYvPg1MnEyGWx8E.cjs → BHC1oqfBYh7Xmx_G.cjs} +1 -1
- package/browser/cjs/{BBJ57oaa6vu0zEjI.cjs → BMUOX4KpmBu6GH8Q.cjs} +1 -1
- package/browser/cjs/BsXtNRaOhnjlXTcA.cjs +6 -0
- package/browser/cjs/{sxA11AN6vr9fiHaa.cjs → Bwk2L5ydEvoRIisp.cjs} +1 -1
- package/browser/cjs/{CEjq7KQ0zHIi69or.cjs → C0hVi0a9d9Sh_FgO.cjs} +2 -2
- package/browser/cjs/{CgaWzlL_p5dgqA4f.cjs → C0sbobSHWURMB8m0.cjs} +3 -3
- package/browser/cjs/{CsvjAXVeoKH34aZc.cjs → C1GrJth6YhBZDgvq.cjs} +2 -2
- package/browser/cjs/{BZfQo-wrdJc4xy1p.cjs → CB6TEerfGxS24WUy.cjs} +2 -2
- package/browser/cjs/CBIj9rqxh2ze9ckF.cjs +6 -0
- package/browser/cjs/CkdT8JSum0WmJ7Tn.cjs +87 -0
- package/browser/cjs/CtKfykOLBwpCtsPd.cjs +11 -0
- package/browser/cjs/D9t4mfnS94EkWCXT.cjs +6 -0
- package/browser/cjs/{BTSVJlDxWgqbdgwJ.cjs → DEa9UMmpvbiH_Dxm.cjs} +1 -1
- package/browser/cjs/{CJFKRBbjz7X-rEau.cjs → DY0yxZSYTOZvtIkB.cjs} +1 -1
- package/browser/cjs/DbczL66CNJYzHHvr.cjs +12 -0
- package/browser/cjs/{DLeOkdGvdWl5tqCl.cjs → DfPqfTiRAZ9i5RVA.cjs} +2 -2
- package/browser/cjs/{C-4fmxJxBM8ThtN5.cjs → Dpc0lG73ekHkTPOA.cjs} +2 -2
- package/browser/cjs/{ByKQeaRgOfTOn4P6.cjs → DzdnNJvBx5lkLTW-.cjs} +1 -1
- package/browser/cjs/EPoWWLrVLfRMaxvD.cjs +6 -0
- package/browser/cjs/_JBLryXFRVS5vFVX.cjs +12 -0
- package/browser/cjs/{CX6yLHEdmP8SVEfH.cjs → edAxlEEqzjJ_PaBv.cjs} +2 -2
- package/browser/cjs/{CMTXA4puzeAnzQwq.cjs → f1m-IERoDbQdUMNJ.cjs} +1 -1
- package/browser/cjs/index.cjs +3 -3
- package/browser/cjs/{vEKDv57iikwYjhOc.cjs → j8ba84pFnKx2xWvW.cjs} +2 -2
- package/browser/cjs/{DLcyf5qNRNueXSur.cjs → xRKATlLPCXjQqLyR.cjs} +1 -1
- package/browser/esm/{Bt8Hem_KC6UibnGm.mjs → B3E24eA0KrqZGcc6.mjs} +6 -6
- package/browser/esm/{ZwbkuvbehTjluIzn.mjs → B7spDz0f3MErGle0.mjs} +21 -20
- package/browser/esm/{AkfGEQyMAKNp1Ktw.mjs → BQSJPoCxw_CbM_GB.mjs} +11 -10
- package/browser/esm/{Dq2nqH2znDzDq0no.mjs → C0HMqAubZ7789bne.mjs} +1 -1
- package/browser/esm/{DoCwq6ipapKirQSJ.mjs → C72RDqmHBctKx6yu.mjs} +1 -1
- package/browser/esm/{C3dyK-h3mgD7XzKl.mjs → CSEDlIO1VyJbsJUh.mjs} +8 -8
- package/browser/esm/{_zJv_HkelROSMajR.mjs → Ca8SXunZNcPT82kM.mjs} +1 -1
- package/browser/esm/{Dvi6qc2t9c_bRvzo.mjs → Cbj_GBiwqMbV7xNp.mjs} +44 -43
- package/browser/esm/Cdr3G0s5DSG6bX6w.mjs +52 -0
- package/browser/esm/{DudPyyE63O5X5Tij.mjs → CoPf1k9QR8u7c9dJ.mjs} +10 -10
- package/browser/esm/{CRByH9Wf2wJ94di-.mjs → CyUxX9cLgslryjv5.mjs} +1 -1
- package/browser/esm/{FhyoG4Gyhb7gVRPB.mjs → D7kxhKOLn3UAkGzE.mjs} +13 -13
- package/browser/esm/{9vaTrJzQjSFA2egn.mjs → DGIZQy_4rgYfRKUt.mjs} +10 -10
- package/browser/esm/{BRPqw1D9DgPK_A6V.mjs → DJmEZGVO4DnLsMSK.mjs} +7 -7
- package/browser/esm/{TFr0V-rb-KYQeRVW.mjs → DTY6o1fHyy7Ldm2E.mjs} +1 -1
- package/browser/esm/DhuuaOVgVDtHsSft.mjs +1467 -0
- package/browser/esm/{ByYn00uYUmHj9zvS.mjs → Dig0J4i2Urjl9Z--.mjs} +171 -170
- package/browser/esm/{CdUwERsyanWuNPx8.mjs → DmqNGi-j-G64Ah3R.mjs} +2 -2
- package/browser/esm/{B-DwCBC-vYtRKiGS.mjs → DnH6tB6PvfbWK92p.mjs} +13 -13
- package/browser/esm/{D_LHNgrCc-7V6FjT.mjs → Sg5ukHMhDKaJmwC5.mjs} +65 -65
- package/browser/esm/{D645MdIazDB-hc3d.mjs → TfEcJxbuvenMTWzb.mjs} +1 -1
- package/browser/esm/{s-R04_lOf8TuzWvo.mjs → buSI99ehYQ3RDGh9.mjs} +1 -1
- package/browser/esm/index.mjs +75 -74
- package/browser/esm/{BNbDRm5P-Ha3rBv4.mjs → n91lwJODGYpl_0sb.mjs} +1 -1
- package/browser/esm/{BVDNIiq2e_loYVfc.mjs → oJzTpcQBF382AsoK.mjs} +16 -16
- package/browser/esm/tEvhefgL1pPAbBne.mjs +19828 -0
- package/licenses/dependencies.txt +203 -225
- package/node/assets/style.css +1 -1
- package/node/esm/{CI9F84m6LzoOkVfK.mjs → B794OzAyQ2S3DUvE.mjs} +2 -2
- package/node/esm/{N2xFXdAPXckWbqvN.mjs → B9eTznHjWdKEfnmd.mjs} +13 -13
- package/node/esm/{DjLSO4d4T2JddYG_.mjs → BA_RIYlnXvTDRdhy.mjs} +9 -9
- package/node/esm/{CYcFo_OeyApoGTg3.mjs → BBUuSB5DBjPGuwXm.mjs} +2 -2
- package/node/esm/{CWRpbP9nAT2yR2r6.mjs → BPAWh9TN2AA_qg8Q.mjs} +13 -12
- package/node/esm/{DYOAGczbRXmskyrr.mjs → BWxdcvg2Tp0Ysth3.mjs} +1 -1
- package/node/esm/{BX8KUYAnQx1vI-cS.mjs → BX8ZbzM8Zfe_MtDJ.mjs} +22 -22
- package/node/esm/{DuboCcThig3p0wzs.mjs → BdXN9t5_NDfrKA2E.mjs} +29 -29
- package/node/esm/CaySzQgftaLFVU-a.mjs +25 -0
- package/node/esm/{B5jFauUSFpo_iDkW.mjs → CrwtN-27La5MZ9yI.mjs} +1 -1
- package/node/esm/{BjIAi3GfBAjiRIja.mjs → Cug20O7hGugaeSka.mjs} +276 -275
- package/node/esm/{Bth10k64kFkk36Hy.mjs → CwZUEv9f0ywDMV-Z.mjs} +12 -12
- package/node/esm/{Bk7aoxfQtGp8id7D.mjs → D0fA-N8eAJVD4a_b.mjs} +1 -1
- package/node/esm/{ZVae6CkvsUOXzMKw.mjs → D1aU9ydYjq7iFVAr.mjs} +1 -1
- package/node/esm/{D95MPCm8ObgZN5_j.mjs → D2gUK2WMUbCR0-Kw.mjs} +24 -23
- package/node/esm/{B2Y6U5_PvKIFVtAh.mjs → D4HUF8JC55LqF87u.mjs} +86 -85
- package/node/esm/DOC-LvGYDU9FpsDS.mjs +553 -0
- package/node/esm/{BsSGinAqat7R8x_O.mjs → DXNmGNM6ItcTOZyo.mjs} +1 -1
- package/node/esm/{DfXVaugDnucoDGYk.mjs → DY3eG9Mfo_-xsWGD.mjs} +2 -2
- package/node/esm/{CwIlFXgoa_xv0Doi.mjs → Djc-gCpBoXNpI6yL.mjs} +2 -2
- package/node/esm/{CS138m7XyLHvzDPV.mjs → ILfHRiSFod9A2fKN.mjs} +1 -1
- package/node/esm/Sc5EyWF8aAI0xzOO.mjs +308 -0
- package/node/esm/{CradKrxfiGQucTZ3.mjs → dasEgLXLO2WWGkUm.mjs} +8 -8
- package/node/esm/index.mjs +12873 -41672
- package/package.json +8 -8
- package/browser/cjs/1C6nE8JXbR1K_yhw.cjs +0 -6
- package/browser/cjs/6denMJxSAR1JnvVP.cjs +0 -15
- package/browser/cjs/B-N31rKSrvqkcxZP.cjs +0 -6
- package/browser/cjs/BLHCySywMnqptSI9.cjs +0 -32
- package/browser/cjs/BbEnQfoP4EOJK3YQ.cjs +0 -6
- package/browser/cjs/BjaD6jFpWrhKL2dz.cjs +0 -6
- package/browser/cjs/BnaQy4xZm6MUD5Sg.cjs +0 -13
- package/browser/cjs/BszSSdQItUM3BnN1.cjs +0 -6
- package/browser/cjs/C0vPGOmkrEmgMUC8.cjs +0 -6
- package/browser/cjs/C19mJZkF3zJRRDNw.cjs +0 -11
- package/browser/cjs/C2kX273f3kTe7viA.cjs +0 -6
- package/browser/cjs/C6MOXXmZPlw53ARk.cjs +0 -6
- package/browser/cjs/CGxAeOIqbsFk97UV.cjs +0 -6
- package/browser/cjs/CLeyzaTKMMR0Hcac.cjs +0 -6
- package/browser/cjs/CM1UZZ4gfAch7cju.cjs +0 -7
- package/browser/cjs/CSiwPeW0XIEaw5qn.cjs +0 -6
- package/browser/cjs/CaH2ZbfCFFqmTqKi.cjs +0 -6
- package/browser/cjs/Cbffh394PX-rgpbL.cjs +0 -6
- package/browser/cjs/Ce6nJl_bhnr51GJ3.cjs +0 -238
- package/browser/cjs/ChVT2EzsTJjDsozn.cjs +0 -6
- package/browser/cjs/Cjs836g7b_ipAS4X.cjs +0 -6
- package/browser/cjs/CkxuzW8FWE8vKkSL.cjs +0 -6
- package/browser/cjs/Clh_-4NLLHCW3c-r.cjs +0 -6
- package/browser/cjs/CsxexX1uKSMjAryZ.cjs +0 -6
- package/browser/cjs/CwgzXfkSX0s-h_0a.cjs +0 -6
- package/browser/cjs/CxIFTPLgMN5VgKh1.cjs +0 -12
- package/browser/cjs/D0ByNhICkrbUC74Z.cjs +0 -6
- package/browser/cjs/DAnQwP6m2P_AUhZh.cjs +0 -6
- package/browser/cjs/DFIMAvLgAQfQm3Bx.cjs +0 -6
- package/browser/cjs/DI-wbtkuZm7yx_ek.cjs +0 -6
- package/browser/cjs/DUUZT0ElQBBkt4qe.cjs +0 -6
- package/browser/cjs/DfrXQdrMzJWgyX4S.cjs +0 -6
- package/browser/cjs/DkOOlgNR-NXixaQX.cjs +0 -6
- package/browser/cjs/DmZIqrySryidgnRl.cjs +0 -6
- package/browser/cjs/DscIvkrfig_mffwY.cjs +0 -6
- package/browser/cjs/Dz8coNXp80TEXSyH.cjs +0 -6
- package/browser/cjs/IaiQe7d-LGA2611T.cjs +0 -1501
- package/browser/cjs/KNduwqq-J9uyLgsC.cjs +0 -6
- package/browser/cjs/LTnky81SCDfvEiub.cjs +0 -6
- package/browser/cjs/_EleKbbhQWfp8mqy.cjs +0 -124
- package/browser/cjs/sNpLX232YHzUxZOr.cjs +0 -12
- package/browser/esm/26ozZ2-vj7N8rpiB.mjs +0 -10
- package/browser/esm/B1BxGO2lBpSxSvw1.mjs +0 -10
- package/browser/esm/B7mPpY5DOxEGMbPk.mjs +0 -3934
- package/browser/esm/B8le6PM3dfy1qSHY.mjs +0 -10
- package/browser/esm/BCIwvhxFiDXGEwES.mjs +0 -10
- package/browser/esm/BFtFjxXyhdNH6yAV.mjs +0 -10
- package/browser/esm/BMsToxhQy4cSxlz-.mjs +0 -10
- package/browser/esm/BSv1o1DpwfEAWYSy.mjs +0 -51
- package/browser/esm/Be1UWt41K_Sp7nbQ.mjs +0 -10
- package/browser/esm/Bqmme9ilyvrHA-e_.mjs +0 -1575
- package/browser/esm/BvPUue2e8_ByeP7c.mjs +0 -10
- package/browser/esm/C9uQaKOaImv5o9c3.mjs +0 -10
- package/browser/esm/CBFDGZ_aqeLV3IIt.mjs +0 -10
- package/browser/esm/CNdA2-u6_d2tqz5J.mjs +0 -10
- package/browser/esm/CV-D1e318ShLCDie.mjs +0 -10
- package/browser/esm/CXKMDzYsDLhyK3SV.mjs +0 -10
- package/browser/esm/CaFxIFV4dLSI4zDW.mjs +0 -472
- package/browser/esm/CpD505ep5Z3oX287.mjs +0 -1466
- package/browser/esm/Cz9BPykuRu_5ay57.mjs +0 -425
- package/browser/esm/D2yV2gASA--bjve5.mjs +0 -10
- package/browser/esm/D6mAWXETxAqf416J.mjs +0 -10
- package/browser/esm/DPw7ErLvgq_9jYHE.mjs +0 -24
- package/browser/esm/DRVlO95U75R3eY27.mjs +0 -10
- package/browser/esm/DWoRF-U96vWLWF5Q.mjs +0 -5582
- package/browser/esm/DX8AE4p9fLlmEdTJ.mjs +0 -10
- package/browser/esm/DYvwKUBbWi2NWsyf.mjs +0 -10
- package/browser/esm/Dxl5GgDFgUsBkg-b.mjs +0 -10
- package/browser/esm/Qq233O5gbpRAP6un.mjs +0 -29
- package/browser/esm/UC5M3Z5HmOzupzqQ.mjs +0 -21
- package/browser/esm/VchKQpT2_B7Ca113.mjs +0 -820
- package/browser/esm/_5B66awyRsaDd_Hv.mjs +0 -10
- package/browser/esm/cOX4zBcY0-H_8kAj.mjs +0 -43654
- package/browser/esm/iIqrOkF_gUf_5m0C.mjs +0 -10
- package/browser/esm/kjRF87FSQwIzB1KD.mjs +0 -12
- package/browser/esm/ob7IFBy7DLC-iS-g.mjs +0 -10
- package/node/esm/8OtdJtJIKyA4POih.mjs +0 -14
- package/node/esm/B1BxGO2lBpSxSvw1.mjs +0 -10
- package/node/esm/B7bDAwgd6OSbVJh_.mjs +0 -10
- package/node/esm/B8le6PM3dfy1qSHY.mjs +0 -10
- package/node/esm/BCIwvhxFiDXGEwES.mjs +0 -10
- package/node/esm/BFtFjxXyhdNH6yAV.mjs +0 -10
- package/node/esm/BK9EmmFbROJ0rZqB.mjs +0 -4002
- package/node/esm/BMsToxhQy4cSxlz-.mjs +0 -10
- package/node/esm/Be1UWt41K_Sp7nbQ.mjs +0 -10
- package/node/esm/BeyDW_Yk6iu1JB4v.mjs +0 -453
- package/node/esm/BpdsRwlUAUyUdrlR.mjs +0 -813
- package/node/esm/BwnMNGZmp-FGW86J.mjs +0 -13
- package/node/esm/C9uQaKOaImv5o9c3.mjs +0 -10
- package/node/esm/CBFDGZ_aqeLV3IIt.mjs +0 -10
- package/node/esm/CJiY4Wz9eiX2B9nv.mjs +0 -10
- package/node/esm/CM9lgZdHfhhL2cv-.mjs +0 -10
- package/node/esm/CNdA2-u6_d2tqz5J.mjs +0 -10
- package/node/esm/CV-D1e318ShLCDie.mjs +0 -10
- package/node/esm/CV4Y5e_kU8o_sXoX.mjs +0 -10
- package/node/esm/CXKMDzYsDLhyK3SV.mjs +0 -10
- package/node/esm/CYsd2qqC_WxLTKE1.mjs +0 -555
- package/node/esm/D5uKz7a9v8FUVx0k.mjs +0 -80
- package/node/esm/D61UbOtLixUCDQce.mjs +0 -307
- package/node/esm/DRVlO95U75R3eY27.mjs +0 -10
- package/node/esm/DYvwKUBbWi2NWsyf.mjs +0 -10
- package/node/esm/DdDxTsQsLWNqX7ee.mjs +0 -16
- package/node/esm/Do5a0pvRN3hayzdD.mjs +0 -10
- package/node/esm/_5B66awyRsaDd_Hv.mjs +0 -10
- package/node/esm/_Wieg3dqzHo6_Crg.mjs +0 -29
- package/node/esm/iIqrOkF_gUf_5m0C.mjs +0 -10
- package/node/esm/kTEpzGO5dC1M9dbV.mjs +0 -24
- package/node/esm/ob7IFBy7DLC-iS-g.mjs +0 -10
- package/node/esm/pTSFPHHLPzmAcEKW.mjs +0 -10
- package/node/esm/rF9x01iQv2EpxorW.mjs +0 -5642
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/const h=require("react/jsx-runtime"),a=require("react"),l=require("./Ce6nJl_bhnr51GJ3.cjs"),jt=require("react-dom"),H=require("@mui/material"),Ue=require("@mui/icons-material"),Ot=a.createContext(null),Ae={didCatch:!1,error:null};class Dt extends a.Component{constructor(i){super(i),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Ae}static getDerivedStateFromError(i){return{didCatch:!0,error:i}}resetErrorBoundary(){const{error:i}=this.state;if(i!==null){for(var r,e,n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];(r=(e=this.props).onReset)===null||r===void 0||r.call(e,{args:o,reason:"imperative-api"}),this.setState(Ae)}}componentDidCatch(i,r){var e,n;(e=(n=this.props).onError)===null||e===void 0||e.call(n,i,r)}componentDidUpdate(i,r){const{didCatch:e}=this.state,{resetKeys:n}=this.props;var o,s;e&&r.error!==null&&function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return d.length!==c.length||d.some((u,p)=>!Object.is(u,c[p]))}(i.resetKeys,n)&&((o=(s=this.props).onReset)===null||o===void 0||o.call(s,{next:n,prev:i.resetKeys,reason:"keys"}),this.setState(Ae))}render(){const{children:i,fallbackRender:r,FallbackComponent:e,fallback:n}=this.props,{didCatch:o,error:s}=this.state;let d=i;if(o){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")d=r(c);else if(e)d=a.createElement(e,c);else{if(n===void 0)throw s;d=n}}return a.createElement(Ot.Provider,{value:{didCatch:o,error:s,resetErrorBoundary:this.resetErrorBoundary}},d)}}function dt(t){var i,r,e="";if(typeof t=="string"||typeof t=="number")e+=t;else if(typeof t=="object")if(Array.isArray(t))for(i=0;i<t.length;i++)t[i]&&(r=dt(t[i]))&&(e&&(e+=" "),e+=r);else for(i in t)t[i]&&(e&&(e+=" "),e+=i);return e}function te(){for(var t,i,r=0,e="";r<arguments.length;)(t=arguments[r++])&&(i=dt(t))&&(e&&(e+=" "),e+=i);return e}let Wt={data:""},Rt=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||Wt,Ft=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,It=/\/\*[^]*?\*\/| +/g,Ye=/\n+/g,re=(t,i)=>{let r="",e="",n="";for(let o in t){let s=t[o];o[0]=="@"?o[1]=="i"?r=o+" "+s+";":e+=o[1]=="f"?re(s,o):o+"{"+re(s,o[1]=="k"?"":i)+"}":typeof s=="object"?e+=re(s,i?i.replace(/([^,])+/g,d=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,d):d?d+" "+c:c)):o):s!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=re.p?re.p(o,s):o+":"+s+";")}return r+(i&&n?i+"{"+n+"}":n)+e},Y={},pt=t=>{if(typeof t=="object"){let i="";for(let r in t)i+=r+pt(t[r]);return i}return t},Pt=(t,i,r,e,n)=>{let o=pt(t),s=Y[o]||(Y[o]=(c=>{let u=0,p=11;for(;u<c.length;)p=101*p+c.charCodeAt(u++)>>>0;return"go"+p})(o));if(!Y[s]){let c=o!==t?t:(u=>{let p,f,g=[{}];for(;p=Ft.exec(u.replace(It,""));)p[4]?g.shift():p[3]?(f=p[3].replace(Ye," ").trim(),g.unshift(g[0][f]=g[0][f]||{})):g[0][p[1]]=p[2].replace(Ye," ").trim();return g[0]})(t);Y[s]=re(n?{["@keyframes "+s]:c}:c,r?"":"."+s)}let d=r&&Y.g?Y.g:null;return r&&(Y.g=Y[s]),((c,u,p,f)=>{f?u.data=u.data.replace(f,c):u.data.indexOf(c)===-1&&(u.data=p?c+u.data:u.data+c)})(Y[s],i,e,d),s};function Qe(t){let i=this||{},r=t.call?t(i.p):t;return Pt(r.unshift?r.raw?((e,n,o)=>e.reduce((s,d,c)=>{let u=n[c];if(u&&u.call){let p=u(o),f=p&&p.props&&p.props.className||/^go/.test(p)&&p;u=f?"."+f:p&&typeof p=="object"?p.props?"":re(p,""):p===!1?"":p}return s+d+(u??"")},""))(r,[].slice.call(arguments,1),i.p):r.reduce((e,n)=>Object.assign(e,n&&n.call?n(i.p):n),{}):r,Rt(i.target),i.g,i.o,i.k)}function ft(t,i,r){return i&&function(e,n){for(var o=0;o<n.length;o++){var s=n[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}(t.prototype,i),t}function L(){return L=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},L.apply(this,arguments)}function mt(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i}function we(t,i){if(t==null)return{};var r,e,n={},o=Object.keys(t);for(e=0;e<o.length;e++)r=o[e],i.indexOf(r)>=0||(n[r]=t[r]);return n}function Je(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}Qe.bind({g:1}),Qe.bind({k:1});var et=function(){return""},ht=a.createContext({enqueueSnackbar:et,closeSnackbar:et}),He="@media (max-width:599.95px)",We="@media (min-width:600px)",tt=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Ge=function(t){return""+tt(t.vertical)+tt(t.horizontal)},Se=function(t){return!!t||t===0},Te="unmounted",ce="exited",ue="entering",ge="entered",nt="exiting",$e=function(t){function i(e){var n;n=t.call(this,e)||this;var o,s=e.appear;return n.appearStatus=null,e.in?s?(o=ce,n.appearStatus=ue):o=ge:o=e.unmountOnExit||e.mountOnEnter?Te:ce,n.state={status:o},n.nextCallback=null,n}mt(i,t),i.getDerivedStateFromProps=function(e,n){return e.in&&n.status===Te?{status:ce}:null};var r=i.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var n=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==ue&&o!==ge&&(n=ue):o!==ue&&o!==ge||(n=nt)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e=this.props.timeout,n=e,o=e;return e!=null&&typeof e!="number"&&typeof e!="string"&&(o=e.exit,n=e.enter),{exit:o,enter:n}},r.updateStatus=function(e,n){e===void 0&&(e=!1),n!==null?(this.cancelNextCallback(),n===ue?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===ce&&this.setState({status:Te})},r.performEnter=function(e){var n=this,o=this.props.enter,s=e,d=this.getTimeouts();e||o?(this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:ue},function(){n.props.onEntering&&n.props.onEntering(n.node,s),n.onTransitionEnd(d.enter,function(){n.safeSetState({status:ge},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})})})):this.safeSetState({status:ge},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})},r.performExit=function(){var e=this,n=this.props.exit,o=this.getTimeouts();n?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:nt},function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(o.exit,function(){e.safeSetState({status:ce},function(){e.props.onExited&&e.props.onExited(e.node)})})})):this.safeSetState({status:ce},function(){e.props.onExited&&e.props.onExited(e.node)})},r.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,n){n=this.setNextCallback(n),this.setState(e,n)},r.setNextCallback=function(e){var n=this,o=!0;return this.nextCallback=function(){o&&(o=!1,n.nextCallback=null,e())},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(e,n){this.setNextCallback(n);var o=e==null&&!this.props.addEndListener;this.node&&!o?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),e!=null&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Te)return null;var n=this.props;return(0,n.children)(e,we(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},ft(i,[{key:"node",get:function(){var e,n=(e=this.props.nodeRef)===null||e===void 0?void 0:e.current;if(!n)throw new Error("notistack - Custom snackbar is not refForwarding");return n}}]),i}(a.Component);function de(){}function ot(t,i){typeof t=="function"?t(i):t&&(t.current=i)}function Ke(t,i){return a.useMemo(function(){return t==null&&i==null?null:function(r){ot(t,r),ot(i,r)}},[t,i])}function Re(t){var i=t.timeout,r=t.style,e=r===void 0?{}:r,n=t.mode;return{duration:typeof i=="object"?i[n]||0:i,easing:e.transitionTimingFunction,delay:e.transitionDelay}}$e.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:de,onEntering:de,onEntered:de,onExit:de,onExiting:de,onExited:de};var qt="cubic-bezier(0.4, 0, 0.2, 1)",Nt="cubic-bezier(0.0, 0, 0.2, 1)",At="cubic-bezier(0.4, 0, 0.6, 1)",gt=function(t){t.scrollTop=t.scrollTop},rt=function(t){return Math.round(t)+"ms"};function pe(t,i){t===void 0&&(t=["all"]);var r=i||{},e=r.duration,n=e===void 0?300:e,o=r.easing,s=o===void 0?qt:o,d=r.delay,c=d===void 0?0:d;return(Array.isArray(t)?t:[t]).map(function(u){var p=typeof n=="string"?n:rt(n),f=typeof c=="string"?c:rt(c);return u+" "+p+" "+s+" "+f}).join(",")}function kt(t){var i=function(r){return r&&r.ownerDocument||document}(t);return i.defaultView||window}function Le(t,i){if(i){var r=function(e,n){var o,s=n.getBoundingClientRect(),d=kt(n);if(n.fakeTransform)o=n.fakeTransform;else{var c=d.getComputedStyle(n);o=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}var u=0,p=0;if(o&&o!=="none"&&typeof o=="string"){var f=o.split("(")[1].split(")")[0].split(",");u=parseInt(f[4],10),p=parseInt(f[5],10)}switch(e){case"left":return"translateX("+(d.innerWidth+u-s.left)+"px)";case"right":return"translateX(-"+(s.left+s.width-u)+"px)";case"up":return"translateY("+(d.innerHeight+p-s.top)+"px)";default:return"translateY(-"+(s.top+s.height-p)+"px)"}}(t,i);r&&(i.style.webkitTransform=r,i.style.transform=r)}}var bt=a.forwardRef(function(t,i){var r=t.children,e=t.direction,n=e===void 0?"down":e,o=t.in,s=t.style,d=t.timeout,c=d===void 0?0:d,u=t.onEnter,p=t.onEntered,f=t.onExit,g=t.onExited,y=we(t,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),v=a.useRef(null),w=Ke(r.ref,v),E=Ke(w,i),b=a.useCallback(function(){v.current&&Le(n,v.current)},[n]);return a.useEffect(function(){if(!o&&n!=="down"&&n!=="right"){var k=function(T,Z){var A;function B(){for(var V=this,U=arguments.length,_=new Array(U),G=0;G<U;G++)_[G]=arguments[G];clearTimeout(A),A=setTimeout(function(){T.apply(V,_)},Z)}return Z===void 0&&(Z=166),B.clear=function(){clearTimeout(A)},B}(function(){v.current&&Le(n,v.current)}),D=kt(v.current);return D.addEventListener("resize",k),function(){k.clear(),D.removeEventListener("resize",k)}}},[n,o]),a.useEffect(function(){o||b()},[o,b]),a.createElement($e,Object.assign({appear:!0,nodeRef:v,onEnter:function(k,D){Le(n,k),gt(k),u&&u(k,D)},onEntered:p,onEntering:function(k){var D=s?.transitionTimingFunction||Nt,T=Re({timeout:c,mode:"enter",style:L({},s,{transitionTimingFunction:D})});k.style.webkitTransition=pe("-webkit-transform",T),k.style.transition=pe("transform",T),k.style.webkitTransform="none",k.style.transform="none"},onExit:function(k){var D=s?.transitionTimingFunction||At,T=Re({timeout:c,mode:"exit",style:L({},s,{transitionTimingFunction:D})});k.style.webkitTransition=pe("-webkit-transform",T),k.style.transition=pe("transform",T),Le(n,k),f&&f(k)},onExited:function(k){k.style.webkitTransition="",k.style.transition="",g&&g(k)},in:o,timeout:c},y),function(k,D){return a.cloneElement(r,L({ref:E,style:L({visibility:k!=="exited"||o?void 0:"hidden"},s,{},r.props.style)},D))})});bt.displayName="Slide";var Fe=function(t){return a.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},Ht=function(){return a.createElement(Fe,null,a.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
|
|
7
|
-
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},Bt=function(){return a.createElement(Fe,null,a.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},Vt=function(){return a.createElement(Fe,null,a.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,
|
|
8
|
-
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
9
|
-
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},_t=function(){return a.createElement(Fe,null,a.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
10
|
-
0 22,12A10,10 0 0,0 12,2Z`}))},oe={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:a.createElement(Ht,null),warning:a.createElement(Bt,null),error:a.createElement(Vt,null),info:a.createElement(_t,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:bt,transitionDuration:{enter:225,exit:195}},zt=function(t,i){return function(r,e){return e===void 0&&(e=!1),e?L({},oe[r],{},i[r],{},t[r]):r==="autoHideDuration"?(n=t.autoHideDuration,o=i.autoHideDuration,(s=function(d){return typeof d=="number"||d===null})(n)?n:s(o)?o:oe.autoHideDuration):r==="transitionDuration"?function(d,c){var u=function(p,f){return f.some(function(g){return typeof p===g})};return u(d,["string","number"])?d:u(d,["object"])?L({},oe.transitionDuration,{},u(c,["object"])&&c,{},d):u(c,["string","number"])?c:u(c,["object"])?L({},oe.transitionDuration,{},c):oe.transitionDuration}(t.transitionDuration,i.transitionDuration):t[r]||i[r]||oe[r];var n,o,s}};function ve(t){return Object.entries(t).reduce(function(i,r){var e,n=r[0],o=r[1];return L({},i,((e={})[n]=Qe(o),e))},{})}var Ut="notistack-SnackbarContainer",Qt="notistack-Snackbar",xt="notistack-CollapseWrapper",Kt="notistack-MuiContent",Gt=function(t){return"notistack-MuiContent-"+t},it=ve({root:{height:0},entered:{height:"auto"}}),Be="0px",yt=a.forwardRef(function(t,i){var r=t.children,e=t.in,n=t.onExited,o=a.useRef(null),s=a.useRef(null),d=Ke(i,s),c=function(){return o.current?o.current.clientHeight:0};return a.createElement($e,{in:e,unmountOnExit:!0,onEnter:function(u){u.style.height=Be},onEntered:function(u){u.style.height="auto"},onEntering:function(u){var p=c(),f=Re({timeout:175,mode:"enter"}),g=f.duration,y=f.easing;u.style.transitionDuration=typeof g=="string"?g:g+"ms",u.style.height=p+"px",u.style.transitionTimingFunction=y||""},onExit:function(u){u.style.height=c()+"px"},onExited:n,onExiting:function(u){gt(u);var p=Re({timeout:175,mode:"exit"}),f=p.duration,g=p.easing;u.style.transitionDuration=typeof f=="string"?f:f+"ms",u.style.height=Be,u.style.transitionTimingFunction=g||""},nodeRef:s,timeout:175},function(u,p){return a.createElement("div",Object.assign({ref:d,className:te(it.root,u==="entered"&&it.entered),style:L({pointerEvents:"all",overflow:"hidden",minHeight:Be,transition:pe("height")},u==="entered"&&{overflow:"visible"},{},u==="exited"&&!e&&{visibility:"hidden"})},p),a.createElement("div",{ref:o,className:xt,style:{display:"flex",width:"100%"}},r))})});yt.displayName="Collapse";var at={right:"left",left:"right",bottom:"up",top:"down"},$t=function(t){return"anchorOrigin"+Ge(t)},Zt=function(){};function ye(t,i){return t.reduce(function(r,e){return e==null?r:function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];var d=[].concat(o);i&&d.indexOf(i)===-1&&d.push(i),r.apply(this,d),e.apply(this,d)}},Zt)}var Xt=typeof window<"u"?a.useLayoutEffect:a.useEffect;function st(t){var i=a.useRef(t);return Xt(function(){i.current=t}),a.useCallback(function(){return i.current.apply(void 0,arguments)},[])}var Ve,wt=a.forwardRef(function(t,i){var r=t.children,e=t.className,n=t.autoHideDuration,o=t.disableWindowBlurListener,s=o!==void 0&&o,d=t.onClose,c=t.id,u=t.open,p=t.SnackbarProps,f=p===void 0?{}:p,g=a.useRef(),y=st(function(){d&&d.apply(void 0,arguments)}),v=st(function(b){d&&b!=null&&(g.current&&clearTimeout(g.current),g.current=setTimeout(function(){y(null,"timeout",c)},b))});a.useEffect(function(){return u&&v(n),function(){g.current&&clearTimeout(g.current)}},[u,n,v]);var w=function(){g.current&&clearTimeout(g.current)},E=a.useCallback(function(){n!=null&&v(.5*n)},[n,v]);return a.useEffect(function(){if(!s&&u)return window.addEventListener("focus",E),window.addEventListener("blur",w),function(){window.removeEventListener("focus",E),window.removeEventListener("blur",w)}},[s,E,u]),a.createElement("div",Object.assign({ref:i},f,{className:te(Qt,e),onMouseEnter:function(b){f.onMouseEnter&&f.onMouseEnter(b),w()},onMouseLeave:function(b){f.onMouseLeave&&f.onMouseLeave(b),E()}}),r)});wt.displayName="Snackbar";var Yt=ve({root:(Ve={display:"flex",flexWrap:"wrap",flexGrow:1},Ve[We]={flexGrow:"initial",minWidth:"288px"},Ve)}),Ze=a.forwardRef(function(t,i){var r=t.className,e=we(t,["className"]);return a.createElement("div",Object.assign({ref:i,className:te(Yt.root,r)},e))});Ze.displayName="SnackbarContent";var ke=ve({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),lt="notistack-snackbar",vt=a.forwardRef(function(t,i){var r=t.id,e=t.message,n=t.action,o=t.iconVariant,s=t.variant,d=t.hideIconVariant,c=t.style,u=t.className,p=o[s],f=n;return typeof f=="function"&&(f=f(r)),a.createElement(Ze,{ref:i,role:"alert","aria-describedby":lt,style:c,className:te(Kt,Gt(s),ke.root,ke[s],u,!d&&p&&ke.lessPadding)},a.createElement("div",{id:lt,className:ke.message},d?null:p,e),f&&a.createElement("div",{className:ke.action},f))});vt.displayName="MaterialDesignContent";var be,_e,Me,je,ze,Jt=a.memo(vt),en=ve({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),tn=function(t){var i=a.useRef(),r=a.useState(!0),e=r[0],n=r[1],o=ye([t.snack.onClose,t.onClose]),s=a.useCallback(function(){i.current=setTimeout(function(){n(function(V){return!V})},125)},[]);a.useEffect(function(){return function(){i.current&&clearTimeout(i.current)}},[]);var d,c=t.snack,u=t.classes,p=t.Component,f=p===void 0?Jt:p,g=a.useMemo(function(){return function(V){V===void 0&&(V={});var U={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(V).filter(function(_){return!U[_]}).reduce(function(_,G){var ie;return L({},_,((ie={})[G]=V[G],ie))},{})}(u)},[u]),y=c.open,v=c.SnackbarProps,w=c.TransitionComponent,E=c.TransitionProps,b=c.transitionDuration,k=c.disableWindowBlurListener,D=c.content,T=we(c,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),Z=L({direction:(d=T.anchorOrigin,d.horizontal!=="center"?at[d.horizontal]:at[d.vertical]),timeout:b},E),A=D;typeof A=="function"&&(A=A(T.id,T.message));var B=["onEnter","onEntered","onExit","onExited"].reduce(function(V,U){var _;return L({},V,((_={})[U]=ye([t.snack[U],t[U]],T.id),_))},{});return a.createElement(yt,{in:e,onExited:B.onExited},a.createElement(wt,{open:y,id:T.id,disableWindowBlurListener:k,autoHideDuration:T.autoHideDuration,className:te(en.wrappedRoot,g.root,g[$t(T.anchorOrigin)]),SnackbarProps:v,onClose:o},a.createElement(w,Object.assign({},Z,{appear:!0,in:y,onExit:B.onExit,onExited:s,onEnter:B.onEnter,onEntered:ye([B.onEntered,function(){t.snack.requestClose&&o(null,"instructed",t.snack.id)}],T.id)}),A||a.createElement(f,Object.assign({},T)))))},xe={default:20},Oe={default:6,dense:2},ct="."+xt,De=ve({root:(be={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:pe(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},be[ct]={padding:Oe.default+"px 0px",transition:"padding 300ms ease 0ms"},be.maxWidth="calc(100% - "+2*xe.default+"px)",be[He]={width:"100%",maxWidth:"calc(100% - 32px)"},be),rootDense:(_e={},_e[ct]={padding:Oe.dense+"px 0px"},_e),top:{top:xe.default-Oe.default+"px",flexDirection:"column"},bottom:{bottom:xe.default-Oe.default+"px",flexDirection:"column-reverse"},left:(Me={left:xe.default+"px"},Me[We]={alignItems:"flex-start"},Me[He]={left:"16px"},Me),right:(je={right:xe.default+"px"},je[We]={alignItems:"flex-end"},je[He]={right:"16px"},je),center:(ze={left:"50%",transform:"translateX(-50%)"},ze[We]={alignItems:"center"},ze)}),nn=function(t){var i=t.classes,r=i===void 0?{}:i,e=t.anchorOrigin,n=t.dense,o=t.children,s=te(Ut,De[e.vertical],De[e.horizontal],De.root,r.containerRoot,r["containerAnchorOrigin"+Ge(e)],n&&De.rootDense);return a.createElement("div",{className:s},o)},on=a.memo(nn),ut=function(t){return!(typeof t=="string"||a.isValidElement(t))},rn=function(t){function i(r){var e;return(e=t.call(this,r)||this).enqueueSnackbar=function(n,o){if(o===void 0&&(o={}),n==null)throw new Error("enqueueSnackbar called with invalid argument");var s=ut(n)?n:o,d=ut(n)?n.message:n,c=s.key,u=s.preventDuplicate,p=we(s,["key","preventDuplicate"]),f=Se(c),g=f?c:new Date().getTime()+Math.random(),y=zt(p,e.props),v=L({id:g},p,{message:d,open:!0,entered:!1,requestClose:!1,persist:y("persist"),action:y("action"),content:y("content"),variant:y("variant"),anchorOrigin:y("anchorOrigin"),disableWindowBlurListener:y("disableWindowBlurListener"),autoHideDuration:y("autoHideDuration"),hideIconVariant:y("hideIconVariant"),TransitionComponent:y("TransitionComponent"),transitionDuration:y("transitionDuration"),TransitionProps:y("TransitionProps",!0),iconVariant:y("iconVariant",!0),style:y("style",!0),SnackbarProps:y("SnackbarProps",!0),className:te(e.props.className,p.className)});return v.persist&&(v.autoHideDuration=void 0),e.setState(function(w){if(u===void 0&&e.props.preventDuplicate||u){var E=function(D){return f?D.id===g:D.message===d},b=w.queue.findIndex(E)>-1,k=w.snacks.findIndex(E)>-1;if(b||k)return w}return e.handleDisplaySnack(L({},w,{queue:[].concat(w.queue,[v])}))}),g},e.handleDisplaySnack=function(n){return n.snacks.length>=e.maxSnack?e.handleDismissOldest(n):e.processQueue(n)},e.processQueue=function(n){var o=n.queue,s=n.snacks;return o.length>0?L({},n,{snacks:[].concat(s,[o[0]]),queue:o.slice(1,o.length)}):n},e.handleDismissOldest=function(n){if(n.snacks.some(function(c){return!c.open||c.requestClose}))return n;var o=!1,s=!1;n.snacks.reduce(function(c,u){return c+(u.open&&u.persist?1:0)},0)===e.maxSnack&&(s=!0);var d=n.snacks.map(function(c){return o||c.persist&&!s?L({},c):(o=!0,c.entered?(c.onClose&&c.onClose(null,"maxsnack",c.id),e.props.onClose&&e.props.onClose(null,"maxsnack",c.id),L({},c,{open:!1})):L({},c,{requestClose:!0}))});return L({},n,{snacks:d})},e.handleEnteredSnack=function(n,o,s){if(!Se(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");e.setState(function(d){return{snacks:d.snacks.map(function(c){return c.id===s?L({},c,{entered:!0}):L({},c)})}})},e.handleCloseSnack=function(n,o,s){e.props.onClose&&e.props.onClose(n,o,s);var d=s===void 0;e.setState(function(c){var u=c.snacks,p=c.queue;return{snacks:u.map(function(f){return d||f.id===s?f.entered?L({},f,{open:!1}):L({},f,{requestClose:!0}):L({},f)}),queue:p.filter(function(f){return f.id!==s})}})},e.closeSnackbar=function(n){var o=e.state.snacks.find(function(s){return s.id===n});Se(n)&&o&&o.onClose&&o.onClose(null,"instructed",n),e.handleCloseSnack(null,"instructed",n)},e.handleExitedSnack=function(n,o){if(!Se(o))throw new Error("handleExitedSnack Cannot be called with undefined key");e.setState(function(s){var d=e.processQueue(L({},s,{snacks:s.snacks.filter(function(c){return c.id!==o})}));return d.queue.length===0?d:e.handleDismissOldest(d)})},e.enqueueSnackbar,e.closeSnackbar,e.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:e.enqueueSnackbar.bind(Je(e)),closeSnackbar:e.closeSnackbar.bind(Je(e))}},e}return mt(i,t),i.prototype.render=function(){var r=this,e=this.state.contextValue,n=this.props,o=n.domRoot,s=n.children,d=n.dense,c=d!==void 0&&d,u=n.Components,p=u===void 0?{}:u,f=n.classes,g=this.state.snacks.reduce(function(v,w){var E,b=Ge(w.anchorOrigin),k=v[b]||[];return L({},v,((E={})[b]=[].concat(k,[w]),E))},{}),y=Object.keys(g).map(function(v){var w=g[v],E=w[0];return a.createElement(on,{key:v,dense:c,anchorOrigin:E.anchorOrigin,classes:f},w.map(function(b){return a.createElement(tn,{key:b.id,snack:b,classes:f,Component:p[b.variant],onClose:r.handleCloseSnack,onEnter:r.props.onEnter,onExit:r.props.onExit,onExited:ye([r.handleExitedSnack,r.props.onExited],b.id),onEntered:ye([r.handleEnteredSnack,r.props.onEntered],b.id)})}))});return a.createElement(ht.Provider,{value:e},s,o?jt.createPortal(y,o):y)},ft(i,[{key:"maxSnack",get:function(){return this.props.maxSnack||oe.maxSnack}}]),i}(a.Component),Et=function(){return a.useContext(ht)};const J={card:"_card_r6a8n_13",actionRoot:"_actionRoot_r6a8n_21",icons:"_icons_r6a8n_31",expand:"_expand_r6a8n_43",expandOpen:"_expandOpen_r6a8n_57",stackTraceContainer:"_stackTraceContainer_r6a8n_65"},Ct=a.forwardRef((t,i)=>{const{id:r,message:e,iconVariant:n,error:o,hideIconVariant:s,...d}=t,{closeSnackbar:c}=Et(),u=l.useTheme(),[p,f]=a.useState(!1),g=a.useCallback(()=>{f(w=>!w)},[]),y=a.useCallback(()=>{c(r)},[r,c]),v=o?.message||String(e);return h.jsx(Ze,{ref:i,className:l.clsx(J.root,"error-snackbar"),children:h.jsxs(H.Card,{className:J.card,style:{backgroundColor:u.palette.error.dark,border:`1px solid ${u.palette.error.dark}`},children:[h.jsxs(H.CardActions,{className:J.actionRoot,children:[s?null:n?.error,h.jsx(H.Typography,{variant:"body2",component:"div",className:J.typography,style:{color:u.palette.text.primary},children:v}),h.jsx("div",{style:{flex:"1 1 auto"}}),h.jsxs("div",{className:J.icons,children:[o?h.jsx(H.IconButton,{"aria-label":"Show more",size:"small",className:l.clsx(J.expand,{[J.expandOpen]:p}),style:{color:u.palette.action.active},onClick:g,children:h.jsx(Ue.ExpandMore,{})}):null,h.jsx(H.IconButton,{size:"small",className:J.expand,style:{color:u.palette.action.active},onClick:y,children:h.jsx(Ue.Close,{fontSize:"small"})})]})]}),o?h.jsx(H.Collapse,{in:p,timeout:"auto",unmountOnExit:!0,children:h.jsx("div",{className:J.stackTraceContainer,style:{backgroundColor:u.palette.error.light,borderTop:`1px solid ${u.palette.error.main}`},children:h.jsx(l.V7,{error:o,hideLineNumbers:!0})})}):null]})})});Ct.displayName="ToastError";const St=a.memo(a.forwardRef((t,i)=>{const{commands:r,commandHook:e,scope:n="workbook",disabled:o=!1,...s}=t,d=l.T(u=>{const p={variant:l.vo.Menuitem,parentFloat:u.floatReference,commandHook:e,scope:n,disabled:o},f=h.jsxs(h.Fragment,{children:[h.jsx(l.fr,{...p,command:r.getCommand("newWorkbook"),icon:l.y5(h.jsx(l.Si,{}))}),h.jsx(l.At,{orientation:"horizontal"}),h.jsx(l.fr,{...p,command:r.getCommand("openWorkbook"),icon:l.y5(h.jsx(l._i,{}))}),h.jsx(l.f4,{...p,commands:r,quickCommand:"saveWorkbook",icon:l.y5(h.jsx(l.Mi,{})),createPopupPanel:g=>{const y={...p,parentFloat:g.floatReference,scope:"saveWorkbook"},v=[];return l.WorkbookIO.getWriteFormats().forEach(w=>{if(w.isDefault)return;let E=null;w.key==="CSV"?E=l.y5(h.jsx(l.Vi,{})):w.key==="Excel"&&(E=l.y5(h.jsx(l.zi,{})));const b=r.getCommand(`saveWorkbookAs${w.key}`);b?v.push(a.createElement(l.fr,{...y,key:w.key,command:b,icon:E})):console.warn(`Unable to resolve command: 'saveWorkbookAs${w.key}'`)}),l.V5({...g,children:v,onClick:()=>{g.closeFloatAll()}})}})]});return l.V5({...u,children:f,onClick:g=>{g.isDefaultPrevented||u.closeFloatAll()}})},[o,r,e,n]),c="File";return h.jsx(l.f4,{commands:r,disabled:o,commandHook:e,scope:n,label:c,tooltip:"Options for saving and loading the workbook.",sx:{paddingBottom:"0px","& button":{paddingTop:"0px",paddingBottom:"0px",height:u=>`calc(1.25rem + ${u.spacing(2)}px)`}},...s,createPopupPanel:d,icon:h.jsx(l.sl,{className:"label",icon:null,label:c})})}));St.displayName="StandaloneFileCommandButton";const an=h.jsx(l.e2,{label:"SheetXL",description:"Visit me at sheetxl.com.",children:h.jsx(H.Box,{sx:{width:"24px",height:"24px",marginBottom:"4px",marginLeft:"6px"},children:h.jsx(l.td,{onClick:()=>{window?.open("https://www.sheetxl.com","_blank")},style:{width:"24px",height:"24px",cursor:"pointer"}})})}),Tt=a.memo(a.forwardRef((t,i)=>{const{commands:r,workbook:e,logo:n=an,mainElement:o,showFileMenu:s=!0,showAppearanceMenu:d=!0,...c}=t,{reference:u}=l.v3(),[p,{width:f}]=l.useMeasure(),g=f<530,y=s?h.jsx(St,{commands:r,commandHook:{beforeExecute(){u?.closeAll()},onError(b,k,D){}}}):null,v=d?h.jsx(l.AppearanceCommandButton,{commands:r,commandHook:{beforeExecute(){u?.closeAll()},onError(b,k,D){}}}):null,w=a.useMemo(()=>({paddingLeft:b=>b.spacing(1),paddingRight:b=>b.spacing(1)}),[]),E=a.useRef(null);return h.jsx(H.Box,{ref:l.mergeRefs([E,p,i]),...c,children:l.renderWorkbookToolbars({commands:r,renderCompact:g,workbook:e,selectWrapper:b=>h.jsxs(H.Box,{sx:{display:"flex",flex:"1",flexDirection:"row",alignItems:"stretch",gap:k=>k.spacing(1),paddingLeft:k=>k.spacing(1),paddingRight:k=>k.spacing(1)},children:[h.jsxs(H.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flex:"1 1 100%",gap:k=>k.spacing(.5)},children:[n,h.jsxs(H.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:k=>k.spacing(.25)},children:[y,b]})]}),h.jsx(H.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 300%",overflow:"hidden",alignItems:"center",justifyContent:"center"},children:o}),h.jsx(H.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",flex:g&&!v?"0 0 auto":"1 1 100%"},children:v})]}),selectProps:w,toolbarsProps:{Home:{sx:{}}}})})}));Tt.displayName="StandaloneWorkbookToolbar";const Lt=a.memo(a.forwardRef((t,i)=>{const{workbook:r,setWorkbook:e,refWorkbookTitle:n,titleWorkbook:o,setWorkbookTitle:s,titlePlaceHolder:d,children:c,undoManager:u,commands:p,importExportDisabled:f,themeModeOptions:g}=t,y=Et(),v=y?y.enqueueSnackbar:()=>{},w=y?y.closeSnackbar:()=>{},[E,b]=a.useState({isMounted:!1,label:null,starting:new Map,running:new Map}),k=a.useCallback(()=>{b(O=>({...O,isMounted:!0}))},[]),D=a.useCallback(()=>{b(O=>({...O,isMounted:!1}))},[]),T=l.ol(),Z=l.il(),A=l.al(),B=a.useRef(new Set),V=a.useMemo(()=>{const O=(C,S)=>{if(S?.onceKey){if(B.current.has(S.onceKey))return;const M=new Set(B.current);M.add(S.onceKey),B.current=M}const W={variant:S?.type??l.ye.Info,anchorOrigin:{vertical:"top",horizontal:"center"},preventDuplicate:S?.preventDuplicate,persist:S?.persist??S?.type===l.ye.Error,action:M=>h.jsx(H.IconButton,{onClick:()=>w(M),children:h.jsx(Ue.CancelOutlined,{})})};S?.enqueueProps&&Object.assign(W,S.enqueueProps),C||console.log("message is 'null'",S),v(C??"Alert",W)};return{showMessage:O,showBusy:(C,S)=>{let W=null;const M=new Promise(N=>{W=N});return b(N=>{const P=new Map(N.starting);return P.set(M,W),{...N,label:C,starting:P}}),M},showWindow:(C,S,W)=>{const M={...S,onKeyDown:N=>{p?.dispatchToFocusedCommand(N),N.isDefaultPrevented()||N.isPropagationStopped()||S?.onKeyDown?.(N)}};return T(C,{sort:()=>Promise.resolve().then(()=>require("./DmZIqrySryidgnRl.cjs")),numberFormat:()=>Promise.resolve().then(()=>require("./BbEnQfoP4EOJK3YQ.cjs")),hyperlink:()=>Promise.resolve().then(()=>require("./CEjq7KQ0zHIi69or.cjs")),comments:()=>Promise.resolve().then(()=>require("./C-4fmxJxBM8ThtN5.cjs")),find:()=>Promise.resolve().then(()=>require("./DI-wbtkuZm7yx_ek.cjs")),tableDetails:()=>Promise.resolve().then(()=>require("./vEKDv57iikwYjhOc.cjs")),tableNew:()=>Promise.resolve().then(()=>require("./CsvjAXVeoKH34aZc.cjs")),namedDetails:()=>Promise.resolve().then(()=>require("./BZfQo-wrdJc4xy1p.cjs"))}[C],M,W)},showOptions:Z,showInputOptions:A,showError:C=>{let S,W=l.ye.Error,M="Unknown Error";typeof C=="string"?M=C:C instanceof Error&&(S=C,C.message&&(M=C.message)),C instanceof l.jf&&(W=l.ye.Info),O(M,{type:W,enqueueProps:{error:S}})}}},[]),U=a.useCallback(()=>{},[]),_=(O=>{const{workbook:C,setWorkbook:S,importExportDisabled:W,workbookTitle:M="export",setWorkbookTitle:N,notifier:P,requestWorkbookTitle:X,themeModeOptions:R,undoManager:Ee,commands:$,onExecute:se}=O,Ce=l.T(R?.onForceModeChange,[R?.onForceModeChange]),Ie=l.T(R?.onForceLightGridChange,[R?.onForceLightGridChange]),le=l.T(R?.onForceLightImagesChange,[R?.onForceLightImagesChange]),Pe=l.T(async(j=null,Q=null)=>{const m=[];let x,F=null,K=null;if(typeof j=="string"?K=j:F=j,x=F?j:await l.Yt$1.openFileDialog(K??l.WorkbookIO.getAllReadFormatTypeAsString().join(",")),!x)return null;const ee={source:x,constructorOptions:Q,onWarning:Ne=>{m.push(Ne)}},he=await l.WorkbookIO.read(ee,P);return m.length>0&&(P?.showMessage?.("Some elements were not able to be imported. See console for details."),console.warn(`Import warnings:
|
|
11
|
-
`+m.join(`
|
|
12
|
-
`))),he},[se,P,C]),fe=l.T(async(j,Q,m)=>{if(!Q&&X){const x=await X("Enter Workbook name to "+(m.isDefault?"Save.":`Export as ${m.description}.`));return x!==null&&l.WorkbookIO.writeFile(x,j,{formatType:m.key})}return l.WorkbookIO.writeFile(Q,j,{formatType:m.key})},[P,C,X]),q=a.useCallback(()=>({contains:j=>!0,focus(){}}),[]),ne=a.useMemo(()=>{const j=[];W||(l.WorkbookIO.getWriteFormats().forEach(m=>{const x=m.isDefault,F={label:x?"Save Workbook":`Save Workbook as ${m.description}`,scopedLabels:{workbook:"Save",saveWorkbook:`as ${m.description}`},tags:m.tags,description:`Save the workbook to the desktop${x?"":` as ${m.description}`}.`};x&&(F.shortcut={key:"S",modifiers:[l.Z.Ctrl]},j.push(new l.Qt("saveWorkbookAs",q,{label:"Save Workbook As…",scopedLabels:{workbook:"Save as…",saveWorkbook:"as…"},shortcut:[{key:"S",modifiers:[l.Z.Shift,l.Z.Ctrl]},{key:"F12"}],description:"Save the workbook to the desktop with the provided name."},()=>{fe(C,null,m).catch(ee=>{P?.showError?.(ee)})})));const K=x?"saveWorkbook":`saveWorkbookAs${m.key}`;j.push(new l.Qt(K,q,F,ee=>{fe(C,ee??M,m).catch(he=>{P?.showError?.(he)})}))}),j.push(new l.Qt("openWorkbook",q,{label:"Open Workbook…",scopedLabels:{workbook:"Open…"},description:"Open a workbook from the desktop.",shortcut:{key:"O",modifiers:[l.Z.Ctrl]}},async(m=null)=>{const x={date1904:C.isDate1904(),...C.options};try{const F=await Pe(m,x);if(!F)return;const K=F.title,ee=F.workbook,he=ee.getSelectedSheet();if(F.formatType.mimeType==="text/csv"){const Ne=C.findValidSheetName(K);await C.doBatch(async()=>{const Xe=he.getUsedRange();if(!Xe)return void P?.showMessage("The file appears to be blank.");await C.getSheets().add({name:Ne,autoSelect:!0}).getRange({colStart:0,rowStart:0,colEnd:0,rowEnd:0}).copyFrom(Xe)},`Import CSV '${K}'`)}else C?.close(),N?.(K),S(ee)}catch(F){P?.showError?.(F)}})),j.push(new l.Qt("openWorkbookFromUrl",q,{label:"Open Workbook From Web",scopedLabels:{insert:"From Web",workbook:"From Web…"},description:"Open a workbook from the web."},async function(m){if(!m){const x=await P?.showInputOptions?.({title:"Open Workbook from the Web",description:"Enter the web address for the workbook to open.",inputLabel:"Address",initialValue:"https://www.sheetxl.com/examples/features-checklist.xlsx",inputProps:{style:{minWidth:"440px"}},options:["Open"]});if(x.option!=="Open")return;m=x.input}m&&console.log("openWorkbookFromUrl",m)})));let Q=[];return R&&(Q=[new l.Qt("themeMode",q,{label:"Light/Dark Mode",scopedLabels:{appearance:"Light/Dark Mode"},description:"Toggle the application styling between light and dark mode."}),new l.Qt("defaultThemeMode",q,{label:"Use System Light/Dark Mode",scopedLabels:{appearance:"Use System Default"},description:"Use the system settings to determine styling for light and dark mode."}),new l.Qt("forceLightGrid",q,{label:"Force Light Grid",description:"Force the grid to always render in light mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)."}),new l.Qt("forceLightImages",q,{label:"Force Light Images",description:"Force the images to always render in light mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode."})]),[...j,...Q,new l.Xt("help",q,{label:"Show Help",description:"Provide Help.",shortcut:{key:"F1"}},()=>{}),new l.Xt("showKeyboardShortcuts",q,{label:"Keyboard Shortcuts",description:"Show keyboard shortcuts.",shortcut:{key:"/",modifiers:[l.Z.Ctrl]}},()=>{}),new l.Qt("gotoUrlGithub",q,{label:"Github",description:"Download examples, explore source code, and leave a star."},()=>{window?.open("https://github.com/sheetxl/sheetxl")}),new l.Qt("gotoUrlDiscord",q,{label:"Discord",description:"Join our community on discord."},()=>{window?.open("https://discord.gg/NTKdwUgK9p")}),new l.Qt("gotoUrlDocumentation",q,{label:"Documentation",description:"Read the documentation."},()=>{window?.open("https://www.sheetxl.com/docs")}),new l.Qt("gotoUrlIssue",q,{label:"Create Issue",description:"Create an issue to identify a bug or a feature request."},()=>{window?.open("https://github.com/sheetxl/sheetxl/issues")})]},[C,M,P,W,R,$,Ee]),z=a.useMemo(()=>{let j=null;return j=$?$.createChildGroup(q,"standaloneWorkbook",!1):new l.He(q,"standaloneWorkbook"),j.addCommands(ne,!0),j},[$,ne]);l.So({manager:Ee,commands:z,notifier:P});const{themeMode:me}=l.useResolvedThemeMode();a.useEffect(()=>{if(!R||!z)return;const j=R.forceMode==="dark"||!R.forceMode&&me==="dark";z.getCommand("themeMode").update({state:R.forceMode??null,label:j?"Dark Mode":"Light Mode",scopedLabels:{appearance:j?"Dark Mode":"Light Mode"}}).updateCallback(()=>{Ce(j?l.ThemeMode.Light:l.ThemeMode.Dark)}),z.getCommand("defaultThemeMode").update({state:!R.forceMode}).updateCallback(()=>{Ce(null)}),z.getCommand("forceLightGrid").update({state:R.forceLightGrid}).updateCallback(()=>{Ie(!R.forceLightGrid)}),z.getCommand("forceLightImages").update({state:R.forceLightImages}).updateCallback(()=>{le(!R.forceLightImages)})},[me,R,ne]);const{showModal:qe}=l.L5();return a.useEffect(()=>{const j=()=>new Promise((Q,m)=>{const x=a.lazy(()=>Promise.resolve().then(()=>require("./CgaWzlL_p5dgqA4f.cjs"))),F=qe(x,{title:"Shortcut Keys Reference",commands:z,onDone:()=>{F.hide()},TransitionProps:{onExited:()=>{Q(!0)}}})});z.getCommand("showKeyboardShortcuts").updateCallback(()=>j()),z.getCommand("help").updateCallback(()=>j())},[ne,z]),z})({workbook:r,setWorkbook:e,importExportDisabled:f,workbookTitle:o,setWorkbookTitle:s,commands:p,requestWorkbookTitle:O=>new Promise(C=>{n.current?n.current.requestWorkbookTitle((S,W)=>{C(S)},{selectAll:!0,requestReason:O}):C(d)}),themeModeOptions:g,undoManager:u,notifier:V,onExecute:U});a.useEffect(()=>{E.starting.size<=0||!E.isMounted||b(O=>{const C=new Map(O.running);return O.starting.forEach((S,W)=>{const M=()=>{b(N=>{const P=new Map(N.running);return P.delete(W),{...N,running:P}})};C.set(W,M),S(M)}),{...O,starting:new Map,running:C}})},[E]);const[G,ie]=a.useState(null);a.useEffect(()=>{E.starting.size!==0||E.running.size!==0?ie(h.jsx(l.It,{icon:h.jsx(l.qa,{sx:{transform:"scale(0.7)",marginLeft:"-6px"}}),panel:!0,label:E.label,onMount:k,onUnmount:D,sx:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",zIndex:"9999"}})):ie(null)},[E.starting,E.running]);const I=a.useMemo(()=>h.jsx(l.HelpCommandButton,{commands:_,disableHover:!0,sx:{padding:"0"},buttonProps:{sx:{maxHeight:"22px"}}}),[_]),ae={notifier:V,commands:_};return r&&(ae.statusBarProps={childrenEnd:I}),h.jsxs(h.Fragment,{children:[G,c?a.cloneElement(c,ae):null]})}));Lt.displayName="SnackbarAndCommandsWrapper";const Mt=a.memo(a.forwardRef((t,i)=>{const{className:r,sx:e,style:n,onElementLoad:o,onError:s,undoManager:d,errorPanel:c=l.Bt,onKeyDown:u,workbook:p,createWorkbookOptions:f,onWorkbookChange:g,logo:y,importExportDisabled:v=!1,themeModeOptions:w,autoFocus:E=!1,commands:b,title:k,onTitleChange:D,titleProps:T,...Z}=t,A=a.useRef(null),B=l.T(g,[g]),V=l.T(D??T?.onTitleChange,[D??T?.onTitleChange]),U=T?.placeHolder??"Untitled",_=w?.forceMode,{themeMode:G,source:ie}=l.useResolvedThemeMode({mode:_}),I=a.useMemo(()=>({...w,light:l.Qa(!1,l.F.deepMerge(w?.theme??{},w?.light??{})),dark:l.Qa(!0,l.F.deepMerge(w?.theme??{},w?.dark??{}))}),[w]),ae=G===l.ThemeMode.Dark,[O,C]=a.useState(null);a.useEffect(()=>{C(d??new l.Vf)},[d]);const[S,W]=a.useState(null),[M,N]=a.useState(null),P=l.Td();a.useLayoutEffect(()=>{if(!p||Object.keys(p).length===0&&!l.F.isPromiseLike(p)){const m={theme:P.getDefaultTheme(),...f};N(new l.Zy(m))}else N(p)},[p]),a.useLayoutEffect(()=>{if(M){if(M instanceof l.Zy)return W({workbook:M}),void(p!==M&&B?.(M));(async()=>{try{let m,x=await Promise.resolve(M);x&&x.source&&(x=await l.WorkbookIO.read(x)),x.workbook?(se(x.title),m=x.workbook):m=x,B?.(m),W({workbook:m})}catch(m){B?.(null),W({error:m})}})()}},[M]);const[X,R]=a.useState(null);a.useEffect(()=>{if(!O||!S)return;O.clear();const m=S?.workbook?.getTransactions();if(m)return m.addListener({onCommitEnd:x=>{x.getDescription()?O.addUndoOperation({description:x.getDescription(),undo:()=>(m.revert(x.getId()),X.source?.focus(),()=>{m.restore(x.getId()),X.source?.focus()})}):console.warn("commit has no description",x)}})},[O,S,X]);const Ee=l.T(m=>{m?O.setRepeatableOperation({description:m.label(),repeat:async()=>m.execute()}):O.setRepeatableOperation(null)},[O]),[$,se]=a.useState(k??T?.title??"");a.useEffect(()=>{se(k??T?.title??"")},[k??T?.title]),a.useEffect(()=>{V?.($)},[$]);const[Ce,Ie]=a.useState(null),le=a.useMemo(()=>{const m=()=>({contains:x=>!0,focus(){}});return b?b.createChildGroup(m,"application",!1):new l.He(m,"application")},[b]),Pe=l.T(m=>{Ie(m.source.getViewportElement()),R(m),le.activate("sheet"),o?.(m)},[le]);a.useEffect(()=>{X&&E&&X.source?.focus(typeof E=="object"?E:void 0)},[X]);const fe=a.useRef(null),q=a.useCallback(m=>{let x=null;return T?.hidden||(x=h.jsx(l.WorkbookTitle,{...T,style:{maxWidth:"100%",...T?.style},workbook:A.current,ref:fe,title:$,placeHolder:U,onTitleChange:F=>{se(F)}})),h.jsx(Tt,{...m,logo:y,mainElement:x,showFileMenu:!v,showAppearanceMenu:!!(I?.onForceLightGridChange||I?.onForceLightImagesChange||I?.onForceModeChange)})},[y,$,T,I,v,le]);a.useEffect(()=>{const m=x=>x.preventDefault();return A.current?.addEventListener("wheel",m,{passive:!1}),()=>{A.current?.removeEventListener("wheel",m)}},[]);const ne=a.useMemo(()=>h.jsx(l.It,{transparentBackground:!0,sx:e,style:n}),[e,n]),z=a.useCallback(({error:m})=>(s?.(m),h.jsx(c,{sx:e,style:n,error:m??"Unable to display empty workbook."})),[e,n,s]),me=a.useMemo(()=>({...e,"& .SnackbarContainer-root":{position:"absolute !important"},"& .notistack-Snackbar":{minWidth:"unset"},"& .notistack-MuiContent *":{fontFamily:m=>m.typography.fontFamily},"& #notistack-snackbar":{maxWidth:"560px",whiteSpace:"pre-wrap"},"*":{userSelect:"none"}}),[e]),qe=l.mergeRefs([A,i]),j=a.useMemo(()=>{if(!S)return ne;if(S.error||!S.workbook)return z({error:S.error});let m=null,x=null,F=!1;return I&&(m=ae?I.dark:I.light,x=ae&&!I.forceLightGrid?I.dark:I.light,F=I.forceLightImages),h.jsx(l.WorkbookElement,{sx:me,style:n,tabIndex:0,autoFocus:!0,workbook:S.workbook,ref:qe,renderToolbar:q,onElementLoad:Pe,onRepeatCommandChange:Ee,onKeyDown:K=>{u?.(K)},gridTheme:x,headersTheme:m,forceLightImages:F,className:l.clsx(r,"sheetxl-workbook"),onContextMenu:K=>K.preventDefault(),...Z},"WorkbookElement")},[S,$,O,ne,I,Z,q,me]);let Q=h.jsx(Dt,{fallbackRender:z,children:h.jsx(rn,{maxSnack:3,domRoot:Ce,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3500,onClose:(m,x,F)=>{A.current?.focus()},Components:{error:Ct},iconVariant:{success:h.jsx(H.SvgIcon,{style:{marginRight:"8px"},children:h.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})}),error:h.jsx(l.oa,{style:{marginRight:"8px"}})},children:h.jsx(l.nl,{children:h.jsx(Lt,{workbook:S?.workbook,setWorkbook:N,importExportDisabled:v,titlePlaceHolder:U,titleWorkbook:$,setWorkbookTitle:se,refWorkbookTitle:fe,commands:le,undoManager:O,themeModeOptions:I,children:j})})})});return I&&(Q=h.jsxs(l.ThemeProvider,{theme:ae?I.dark:I.light,children:[I.cssBaseline?h.jsx(H.CssBaseline,{}):null,Q]})),Q}));Mt.displayName="EagerStandaloneWorkbook";const sn=Object.freeze(Object.defineProperty({__proto__:null,default:Mt},Symbol.toStringTag,{value:"Module"}));exports.EagerStandaloneWorkbook=sn,exports.clsx=te;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
const t = { ASC: { s: "Converts a string to full-width characters to half-width. Uses the double-byte character set (DBCS).", p: { text: { d: "is a text or a reference to a cell containing text" } }, h: "DBCS" }, ARRAYTOTEXT: { s: "Returns a text representation of an array", p: { array: { d: "the array to represent as text" }, format: { d: "0 for relaxed format, 1 for strict format", v: 0 } } }, CHAR: { s: "Returns the character specified by the code number from the character set for your computer", p: { number: { d: "is a number between 1 and 255 specifying which character you want" } } }, CLEAN: { s: "Removes all nonprintable characters from text", p: { text: { d: "is the text you want to clean" } } }, CODE: { s: "Returns the Unicode value of the first character in a text string", p: { text: { d: "is the text string whose Unicode value you want" } } }, CONCAT: { s: "Concatenates a list or range of text strings", p: { text: { d: "text1,text2,... are 1 to 252 text strings or ranges to be joined" } } }, CONCATENATE: { s: "Joins several text strings into one text string", p: { text: { d: "text1, text2,... are 1 to 252 text strings or ranges to be joined" } }, c: "Compatibility" }, DETECTLANGUAGE: { s: "Detects the language of a given text.", p: { text: { d: "is the text to detect the language of" } }, h: "Unimplemented" }, DBCS: { s: "Changes half-width characters to full-width characters. Uses the double-byte character set (DBCS).", p: { text: { d: "is a text or a reference to a cell containing text" } }, h: "DBCS" }, DOLLAR: { s: "Converts a number to text in currency format", p: { number: { d: "is the number to convert" }, decimals: { d: "is the number of digits to the right of the decimal point", v: 2 } } }, EXACT: { s: "Checks whether two text strings are exactly the same, and returns TRUE or FALSE. EXACT is case-sensitive", p: { text1: { d: "is the first text string" }, text2: { d: "is the second text string" } } }, FIND: { s: "Returns the starting position of one text string within another text string. FIND is case-sensitive", p: { findText: { d: "Returns the starting position of one text string within another text string. FIND is case-sensitive" }, withinText: { d: "is the text you want to search" }, startNum: { d: "specifies the character at which to start the search. The first character in Within_text is character number 1", v: 1 } } }, FINDB: { s: "Finds the starting position of one text string with another text string. FINDB is case-sensitive. Use with double-byte characters.", p: { findText: { d: "is the text you want to find" }, withinText: { d: "is the text you want to search" }, startNum: { d: "is the position in within_text to start searching", v: 1 } }, h: "DBCS" }, FIXED: { s: "Rounds a number to the specified number of decimals and returns the result as text with or without commas", p: { number: { d: "is the number you want to round and convert to text" }, decimals: { d: "is the number of digits to the right of the decimal point", v: 2 }, noCommas: { d: "is a logical value: do not display commas in the returned text = TRUE; do display commas in the returned text = FALSE", v: !1 } } }, LEFT: { s: "Returns the specified number of characters from the start of a text string", p: { text: { d: "is the text string from which you want to extract characters" }, numChars: { d: "specifies how many characters you want LEFT to extract", v: 1 } } }, LEFTB: { s: "Returns the leftmost num_bytes characters from text. Uses double-byte characters.", p: { text: { d: "is the text string from which you want to extract characters" }, numBytes: { d: "is the number of bytes to extract", v: 1 } }, h: "DBCS" }, LEN: { s: "Returns the number of characters in a text string", p: { text: { d: "is the text whose length you want to find. Spaces count as characters" } } }, LENB: { s: "Returns the number of bytes in a text string. Uses double-byte characters.", p: { text: { d: "is the text string from which you want to extract characters" } } }, LOWER: { s: "Converts all letters in a text string to lowercase", p: { text: { d: "is the text you want to convert to lowercase. Characters in Text that are not letters are not changed" } } }, MID: { s: "Returns the characters from the middle of a text string, given a starting position and length", p: { text: { d: "is the text string from which you want to extract characters" }, startNum: { d: "is the position of the first character you want to extract" }, numChars: { d: "specifies how many characters to return from Text" } } }, MIDB: { s: "Returns characters from the middle of a text string. Uses double-byte characters.", p: { text: { d: "is the text string from which you want to extract characters" }, startNum: { d: "is the position of the first character you want to extract" }, numBytes: { d: "is the number of bytes to extract" } }, h: "DBCS" }, NUMBERVALUE: { s: "Converts text to number in a locale-independent manner", p: { text: { d: "is the text string you want to convert" }, decimalSeparator: { d: "is the character that separates the integer part from the decimal part of the number", v: "." }, groupSeparator: { d: "is the character that separates groups of thousands", v: "," } } }, PERCENTOF: { s: "Returns the percentage of a subset of a given data set", p: { dataSubset: { d: "is the subset" }, dataAll: { d: "is the data set" } }, h: "Unimplemented" }, PHONETIC: { s: "Returns the phonetic spelling of a text string", p: { reference: { d: "Text string or a reference to a single cell or a range of cells that contain a furigana text string" } }, h: "Unimplemented" }, PROPER: { s: "Converts the first letter of each word in a text string to uppercase", p: { text: { d: "is the text string you want to convert" } } }, REGEXEXTRACT: { s: "Extracts substrings of 'text' based on the provided REGEX 'pattern'", p: { text: { d: "is the text string from which you want to extract characters" }, pattern: { d: "The regular expression to be applied" }, returnMode: { d: "Specify which matches to return", v: 0 }, caseSensitivity: { d: "Whether the match is case sensitive", v: !1 } }, h: "Unimplemented" }, REGEXREPLACE: { s: "Returns 'text', with 'replacement' in place of matches with 'pattern'", p: { text: { d: "is the text string from which you want to extract characters" }, pattern: { d: "The regular expression to be applied" }, replacement: { d: "The replacement string" }, occurrence: { d: "The occurrence of the match to replace", v: 0 }, caseSensitivity: { d: "Whether the match is case sensitive", v: !1 } }, h: "Unimplemented" }, REGEXTEST: { s: "Checks whether the input matches the pattern, and returns TRUE or FALSE", p: { text: { d: "is the text string to be checked" }, pattern: { d: "is the regular expression to be applied" }, caseSensitivity: { d: "Whether the match is case sensitive", v: !1 } }, h: "Unimplemented" }, REPLACE: { s: "Replaces part of a text string with a different text string", p: { oldText: { d: "is the text string to be changed" }, startNum: { d: "is the position of the first character you want to replace" }, numChars: { d: "is the number of characters to replace" }, newText: { d: "is the text string that will replace old_text" } } }, REPLACEB: { s: "Replaces part of a text string with a different text string using the number of bytes. Uses the double-byte character set (DBCS).", p: { oldText: { d: "is the text string to be changed" }, startNum: { d: "is the position of the first character you want to replace" }, numBytes: { d: "is the number of bytes to replace" }, newText: { d: "is the text string that will replace old_text" } }, h: "DBCS" }, REPT: { s: "Repeats text a given number of times", p: { text: { d: "is the text you want to repeat" }, numberTimes: { d: "is the number of times you want to repeat text" } } }, RIGHT: { s: "Returns the specified number of characters from the end of a text string", p: { text: { d: "is the text string that contains the characters you want to extract" }, numChars: { d: "specifies how many characters you want to extract", v: 1 } } }, RIGHTB: { s: "Returns the rightmost num_bytes characters from text. Uses double-byte characters.", p: { text: { d: "is the text string from which you want to extract characters" }, numBytes: { d: "is the number of bytes to extract", v: 1 } } }, SEARCH: { s: "Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)", p: { findText: { d: "Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)" }, withinText: { d: "is the text in which you want to search for Find_text" }, startNum: { d: "is the character number in Within_text, counting from the left, at which you want to start searching", v: 1 } } }, SEARCHB: { s: "Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive). Uses the double-byte character set (DBCS).", p: { findText: { d: "Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)" }, withinText: { d: "is the text in which you want to search for Find_text" }, startBytes: { d: "is the character number in Within_text, counting from the left, at which you want to start searching", v: 1 } }, h: "DBCS" }, SUBSTITUTE: { s: "Replaces existing text with new text in a text string", p: { text: { d: "is the text or the reference to a cell containing text in which you want to substitute characters" }, oldText: { d: "is the existing text you want to replace. If the case of Old_text does not match the case of text, SUBSTITUTE will not replace the text" }, newText: { d: "is the text you want to replace Old_text with" }, instanceNum: { d: "specifies which occurrence of Old_text you want to replace. If omitted, every instance of Old_text is replaced" } } }, T: { s: "Checks whether a value is text, and returns the text if it is, or returns double quotes (empty text) if it is not", p: { value: { d: "is the value to test" } } }, TEXT: { s: "Converts a value to text in a specific number format", p: { value: { d: "is a number, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value" }, formatText: { d: "is a text string that defines the number format to use" } } }, TEXTAFTER: { s: "Returns text that's after delimiting characters.", p: { text: { d: "The text you want to search for the delimiter." }, delimiter: { d: "The character or string to use as a delimiter." }, instanceNum: { d: "The desired occurrence of delimiter. The default is 1. A negative number searches from the end.", v: 1 }, matchMode: { d: "Searches the text for a delimiter match. By default, a case-sensitive match is done.", v: 0 }, matchEnd: { d: "Whether to match the delimiter against the end of text. By default, they're not matched.", v: 0 }, ifNotFound: { d: "Returned if no match is found. By default, #N/A is returned.", v: "undefined" } } }, TEXTJOIN: { s: "Concatenates a list or range of text strings using a delimiter", p: { delimiter: { d: "Character or string to insert between each text item" }, ignoreEmpty: { d: "if TRUE(default), ignores empty cells" }, text: { d: "text1,text2,... are 1 to 252 text strings or ranges to be joined" } } }, TEXTSPLIT: { s: "Splits text into rows or columns using delimiters.", p: { text: { d: "The text to split" }, colDelimiter: { d: "The column delimiter(s) - can be string or array of strings" }, rowDelimiter: { d: "The row delimiter(s), null/undefined means no row splitting", v: null }, ignoreEmpty: { d: "Whether to ignore empty values (defaults to `false`)", v: !1 }, matchMode: { d: "Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)", v: 0 }, padWith: { d: "Value to use for padding if matrix is uneven (defaults to `#N/A`)", v: "undefined" } } }, TEXTBEFORE: { s: "Returns text that's before delimiting characters.", p: { text: { d: "The text you want to search for the delimiter." }, delimiter: { d: "The character or string to use as a delimiter." }, instanceNum: { d: "The desired occurrence of delimiter. The default is 1. A negative number searches from the end.", v: 1 }, matchMode: { d: "Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)", v: 0 }, matchEnd: { d: "Whether to match the delimiter against the end of text. By default, they're not matched.", v: 0 }, ifNotFound: { d: "Returned if no match is found. By default, #N/A is returned.", v: "undefined" } } }, TRANSLATE: { s: "Translate a text string from one language to another using the Microsoft Translator service.", p: { text: { d: "The text to translate." }, sourceLanguage: { d: "Specifiy the source language your text is currently in. Expressed as a two-letter language code." }, targetLanguage: { d: "Specifiy the source language you want your text to be translated to. Expressed as a two-letter language code." } }, h: "Unimplemented" }, TRIM: { s: "Removes all spaces from text except for single spaces between words.", p: { text: { d: "The text from which you want to remove extra spaces." } } }, UNICHAR: { s: "Returns the Unicode character referenced by the given numeric value", p: { number: { d: "is the Unicode number representing a character" } } }, UNICODE: { s: "Returns the number (code point) corresponding to the first character of the text", p: { text: { d: "is the character that you want the Unicode value of" } } }, UPPER: { s: "Converts a text string to all uppercase letters", p: { text: { d: "is the text you want converted to uppercase, a reference or a text string" } } }, VALUE: { s: "Converts a text string that represents a number to a number", p: { text: { d: "is the text enclosed in quotation marks or a reference to a cell containing the text you want to convert" } } }, VALUETOTEXT: { s: "Returns a text representation of a value", p: { value: { d: "the value to represent as text" }, format: { d: "the format of the text", v: 0 } } } };
|
|
8
|
-
export {
|
|
9
|
-
t as default
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
const e = { CELL: { s: "Returns information about the cell.", p: { infoType: { d: "The type of information to return." }, reference: {} } }, "ERROR.TYPE": { s: "Returns a number matching an error value", p: { errorVal: { d: "is the error value for which you want the identifying number, and can be an actual error value or a reference to a cell containing an error value." } } }, INFO: { s: "Returns information about the current operating system.", p: { typeText: { d: "The type of information to return" } } }, ISBLANK: { s: "Checks whether a reference is to an empty cell, and returns TRUE or FALSE", p: { value: { d: "is the cell or a name that refers to the cell you want to test" } } }, ISERR: { s: "Checks whether a value is an error other than #N/A, and returns TRUE or FALSE", p: { value: { d: "is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value" } } }, ISERROR: { s: "Checks whether a value is an error, and returns TRUE or FALSE", p: { value: { d: "is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value" } } }, ISEVEN: { s: "Returns TRUE if the number is even", p: { number: { d: "is the value to test" } } }, ISFORMULA: { s: "Checks whether a reference is to a cell containing a formula, and returns TRUE or FALSE", p: { reference: { d: "is a reference to the cell you want to test. Reference can be a cell reference, a formula, or name that refers to a cell" } } }, ISLOGICAL: { s: "Checks whether a value is a logical value (TRUE or FALSE), and returns TRUE or FALSE", p: { value: { d: "is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value" } } }, ISNA: { s: "Checks whether a value is #N/A, and returns TRUE or FALSE", p: { value: { d: "is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value" } } }, ISNONTEXT: { s: "Checks whether a value is not text (blank cells are not text), and returns TRUE or FALSE", p: { value: { d: "is the value you want tested: a cell; a formula; or a name referring to a cell, formula, or value" } } }, ISNUMBER: { s: "Checks whether a value is not text (blank cells are not text), and returns TRUE or FALSE", p: { value: { d: "is the value you want tested: a cell; a formula; or a name referring to a cell, formula, or value" } } }, ISODD: { s: "Returns TRUE if the number is odd", p: { number: { d: "is the value to test" } } }, ISOMITTED: { s: "Checks whether the value is omitted, and returns TRUE or FALSE", p: { argument: { d: "is the value you want to test, such as a LAMBDA parameter" } } }, ISREF: { s: "Checks whether a value is a reference, and returns TRUE or FALSE", p: { value: { d: "is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value" } } }, ISTEXT: { s: "Converts a value to text in a specific number format", p: { value: { d: "is a number, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value" } } }, N: { s: "Converts non-number value to a number, dates to serial numbers, TRUE to 1, anything else to 0 (zero)", p: { value: { d: "is the value to convert" } } }, NA: { s: "Returns the #N/A error value", p: {} }, SHEET: { s: "Returns the sheet number of the referenced sheet", p: { value: { d: "is the name of a sheet or a reference that you want the sheet number of. If omitted the number of the sheet containing the function is returned" } } }, SHEETS: { s: "Returns the number of sheets in a reference", p: { reference: { d: "is a reference for which you want to know the number of sheets it contains. If omitted the number of sheets in the workbook containing the function is returned" } } }, TYPE: { s: "Returns an integer representing the data type of a value: number = 1; text = 2; logical value = 4; error value = 16; array = 64; compound data = 128", p: { value: { d: "is the value to check" } } } };
|
|
8
|
-
export {
|
|
9
|
-
e as default
|
|
10
|
-
};
|