@sheetxl/studio-vanilla 0.3.5 → 0.3.7

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.
Files changed (90) hide show
  1. package/browser/cjs/{CvESC6HiL0-peppq.cjs → 3Z5ZVyA4M3n9q9T5.cjs} +4 -4
  2. package/browser/cjs/3rqWL42XEv7Zqb32.cjs +6 -0
  3. package/browser/cjs/{DKit140jXAUUSf-_.cjs → B1YWrCVgU7Kmnm1T.cjs} +2 -2
  4. package/browser/cjs/{D7NgrO__M-IUmM8o.cjs → BCU2ws0EwyUhMfyT.cjs} +1 -1
  5. package/browser/cjs/{BwocMiKAPb8s__1Z.cjs → BOV2jjPfpuXBZAW7.cjs} +2 -2
  6. package/browser/cjs/{BNtn_2pcq6Dd-2HL.cjs → BmhVFpv9CfTQVTjI.cjs} +3 -3
  7. package/browser/cjs/{CuY7mAREmYhHuYWx.cjs → BsMm_Huxnau2vwTD.cjs} +2 -2
  8. package/browser/cjs/{6e91IXsvk9_k3W5c.cjs → C-QeKeBTOY15puEV.cjs} +2 -2
  9. package/browser/cjs/{BW_fZwvTtMLqteuJ.cjs → C33i51TmHf4SHKrk.cjs} +1 -1
  10. package/browser/cjs/{Biyqj-Wu75uxLHv1.cjs → C3VTtTsAWlGWi885.cjs} +2 -2
  11. package/browser/cjs/{yvA5FY7oe6FILMqB.cjs → C7hVKc9K7iuGRIL7.cjs} +1 -1
  12. package/browser/cjs/{DCWZ2ZkLp-Horeca.cjs → CJJnLrYPa7KMRsHb.cjs} +1 -1
  13. package/browser/cjs/COHiox3mogLWfFMx.cjs +301 -0
  14. package/browser/cjs/{BiiW2FlRZHxGIWso.cjs → CRbPjo0Nd1eBuNIW.cjs} +1 -1
  15. package/browser/cjs/{BLHbDre9R0bvyb9G.cjs → CcUeWbB8gJ2hYZ0t.cjs} +2 -2
  16. package/browser/cjs/{DIawrhwQ7E_1l99b.cjs → CeLUWiIQ6znvqNGl.cjs} +6 -6
  17. package/browser/cjs/{qjPE6k7aYlu-R90s.cjs → Cp0Tq3YIgLuqFBEQ.cjs} +2 -2
  18. package/browser/cjs/{-aNm3r-RpjcRRCbw.cjs → CqQeZ0R_l-gQXaQx.cjs} +2 -2
  19. package/browser/cjs/{DeAt9vyyaeB2vbxQ.cjs → DNIUbptETcIIsG7h.cjs} +2 -2
  20. package/browser/cjs/{CdWBtYv7LuuDLPL2.cjs → DNomiR3OWZad9wQS.cjs} +1 -1
  21. package/browser/cjs/DOn5sCCoip2vELe9.cjs +19 -0
  22. package/browser/cjs/{Bg9KIoDuqtkhIYfN.cjs → DPDH_CuXvPlEStyU.cjs} +1 -1
  23. package/browser/cjs/{hSI9QVPgIxqt3pXc.cjs → DQuuY3WVgI5hH9Sc.cjs} +1 -1
  24. package/browser/cjs/{Ya4f5p9go_UndgNy.cjs → DtXRdjx-n_RIyAdz.cjs} +2 -2
  25. package/browser/cjs/{DKsZXMMHWKP9IZ4E.cjs → fE77FrBh8QMuUNxk.cjs} +1 -1
  26. package/browser/cjs/{BN0MiwKQ8NjKXgue.cjs → g35lb9qfQ7H4ytKa.cjs} +3 -3
  27. package/browser/cjs/index.cjs +2 -2
  28. package/browser/esm/{DDD5zfwNNPKuc_zZ.mjs → 1pCNUoxFKepRuyfa.mjs} +1 -1
  29. package/browser/esm/{CLTP12OHGQ2k4_Kt.mjs → B7vV_BImqZyJbVxt.mjs} +3 -3
  30. package/{cdn/assets/BzptX9H_YCM2l0DE.js → browser/esm/BJvTXvPtfJHHEwCI.mjs} +5 -5
  31. package/browser/esm/{BLsIMzjofsOnRFrU.mjs → BL-MGLoZVjIZRC8f.mjs} +6 -6
  32. package/browser/esm/BNrrWDYFBvlrgKLr.mjs +46 -0
  33. package/browser/esm/{ChMaIhqaEhF3SLLt.mjs → BY7jrGTT-6LIotvc.mjs} +7 -7
  34. package/browser/esm/{DFa_tXqv1VN1OZdv.mjs → BasVdd3zd4rzMJ3z.mjs} +17 -17
  35. package/browser/esm/{Btk74VwCVJ1T5LQD.mjs → BemHnQ5HC0MMwwpk.mjs} +3 -3
  36. package/{cdn/assets/mq5uPzTIc1x8unBP.js → browser/esm/Bvw4Wd4QZWwHwySN.mjs} +1 -1
  37. package/{cdn/assets/Did46-x6ZVwk_-r-.js → browser/esm/CARuwR8LCkOqbEvg.mjs} +1 -1
  38. package/browser/esm/{D0-tgawYa4KXYT2c.mjs → CHXrslW6QpPqYlQJ.mjs} +2 -2
  39. package/{cdn/assets/CvFAAktSd9TQK1h4.js → browser/esm/CNzhDDB3GbcIr1f1.mjs} +1 -1
  40. package/{cdn/assets/Bs-psXrTRw1jFety.js → browser/esm/CYOe-PNU1ddwNZxf.mjs} +8 -8
  41. package/browser/esm/{D244UwY3qPC_LNc5.mjs → Cgzk91uNsHby3_Xq.mjs} +2 -2
  42. package/browser/esm/{DdrICyX8Ead15N32.mjs → ClwDPpKvrRbivt_C.mjs} +1 -1
  43. package/{cdn/assets/DXMyzCcyP7039z13.js → browser/esm/DKgnlbWYgEPNFHp4.mjs} +799 -796
  44. package/browser/esm/DMgXE7S--oWb9q_g.mjs +22 -0
  45. package/browser/esm/{DJxioSY-hxyM7dmk.mjs → DSAItP5tyetml0Nl.mjs} +3 -3
  46. package/{cdn/assets/F-RqJeKWiW4i5344.js → browser/esm/Dh_t4LKcuJndwsWc.mjs} +10475 -10290
  47. package/browser/esm/{Q1yWEkJBu4cVEF33.mjs → Dm-FdeP6gtNunE-O.mjs} +6 -6
  48. package/{cdn/assets/CsVV_QnEl77BQM3V.js → browser/esm/F7X6GD2vCOnG9bfS.mjs} +1 -1
  49. package/{cdn/assets/C8omEbSXHWI_wNjp.js → browser/esm/FtQ1ejKmzNzLipib.mjs} +8 -8
  50. package/browser/esm/{CPWh2H15145LP-d5.mjs → dPSQKKcoZdfzlSna.mjs} +1 -1
  51. package/browser/esm/{CAm14rTtmPL5-rvQ.mjs → gPrNWR3Q7AraDNA8.mjs} +125 -125
  52. package/{cdn/assets/DCuLWmzd9eLWgI03.js → browser/esm/ggsYdlbjeTopGPhi.mjs} +1 -1
  53. package/{cdn/assets/C60KakDbde-A4anI.js → browser/esm/hZL13mv_yL17yqpF.mjs} +1 -1
  54. package/browser/esm/index.mjs +2 -2
  55. package/cdn/assets/{DDD5zfwNNPKuc_zZ.js → 1pCNUoxFKepRuyfa.js} +1 -1
  56. package/cdn/assets/{NHbXgEQMftGzY01r.js → B8qc1imSfDsRgnKK.js} +3 -3
  57. package/{browser/esm/CntwHkPpskE88Ixu.mjs → cdn/assets/BHYIY8ekfU8GIx-v.js} +5 -5
  58. package/{browser/esm/mq5uPzTIc1x8unBP.mjs → cdn/assets/Bvw4Wd4QZWwHwySN.js} +1 -1
  59. package/cdn/assets/{DLYF-18qErpwF9Q-.js → C0q06BpM_YiTdvYY.js} +6 -6
  60. package/{browser/esm/Did46-x6ZVwk_-r-.mjs → cdn/assets/CARuwR8LCkOqbEvg.js} +1 -1
  61. package/{browser/esm/Di2tNceI3NodSsgU.mjs → cdn/assets/CFDj1TcgC6DrzkQU.js} +8 -8
  62. package/{browser/esm/CvFAAktSd9TQK1h4.mjs → cdn/assets/CNzhDDB3GbcIr1f1.js} +1 -1
  63. package/cdn/assets/Cb8SYExA8SBt8-a7.js +22 -0
  64. package/cdn/assets/{Cz33L9W3cdQckAL5.js → CgJM1Sr8R1PNImSR.js} +3 -3
  65. package/cdn/assets/{CEXK9SXjFf1dGHZe.js → ClbAQfGnO0nqDI3Z.js} +6 -6
  66. package/cdn/assets/{DdrICyX8Ead15N32.js → ClwDPpKvrRbivt_C.js} +1 -1
  67. package/cdn/assets/{DBgbBl_3O65WhfWN.js → D7SAqf3XrQ0v7mGH.js} +7 -7
  68. package/cdn/assets/{BOl7blN8JotSzCHJ.js → DAOPH9ojNmrcS6Lb.js} +2 -2
  69. package/cdn/assets/{ClFGbVy7cnhMW-dO.js → DFfcguJ0tQZoGOZc.js} +2 -2
  70. package/cdn/assets/{CoCIP7n4THmzOggq.js → DIXOHjZSHBv_HKpE.js} +17 -17
  71. package/{browser/esm/BTQ-TGJnw7w1Y0CX.mjs → cdn/assets/DiomQ_bqytYxNeaP.js} +8 -8
  72. package/cdn/assets/{B41q92oKD_VR31Dd.js → Dkkb9tE81Tx0AvXw.js} +3 -3
  73. package/{browser/esm/CsVV_QnEl77BQM3V.mjs → cdn/assets/F7X6GD2vCOnG9bfS.js} +1 -1
  74. package/{browser/esm/CYXzmWJtZn5OJVBF.mjs → cdn/assets/UTibqrn6UrrGPGLU.js} +9723 -9844
  75. package/cdn/assets/{CPWh2H15145LP-d5.js → dPSQKKcoZdfzlSna.js} +1 -1
  76. package/{browser/esm/DCuLWmzd9eLWgI03.mjs → cdn/assets/ggsYdlbjeTopGPhi.js} +1 -1
  77. package/{browser/esm/C60KakDbde-A4anI.mjs → cdn/assets/hZL13mv_yL17yqpF.js} +1 -1
  78. package/{browser/esm/BdLAPrmXIfjGFhhA.mjs → cdn/assets/kLAnuk6Hj3XXu7B_.js} +799 -796
  79. package/cdn/assets/l2XreUqHdSx2sK06.js +46 -0
  80. package/cdn/assets/{Dj3GhNedlKE9TeTn.js → mjbXH-pivN9OKW3k.js} +125 -125
  81. package/cdn/index.js +8 -8
  82. package/cdn/loader.js +1 -1
  83. package/package.json +8 -8
  84. package/browser/cjs/Cxt39d6l0pu9k1vT.cjs +0 -19
  85. package/browser/cjs/DDhq2nYMdw5b7wP6.cjs +0 -301
  86. package/browser/cjs/Dkl2t2DSaDxPbm2V.cjs +0 -6
  87. package/browser/esm/BsDYj6xix3mlXry2.mjs +0 -46
  88. package/browser/esm/wziCLl5xvHu6Guu_.mjs +0 -22
  89. package/cdn/assets/C_E1C68wCcRpC6XN.js +0 -46
  90. package/cdn/assets/lM5it-aJgI7DLNH9.js +0 -22
@@ -1,11 +1,11 @@
1
- import { jsx as g, jsxs as se, Fragment as Kt } from "react/jsx-runtime";
1
+ import { jsx as g, jsxs as se, Fragment as Gt } from "react/jsx-runtime";
2
2
  import * as ve from "react";
3
- import T, { memo as Me, forwardRef as ce, useRef as le, useMemo as te, useState as ae, useEffect as G, useLayoutEffect as dt, useCallback as ne, Component as Gt, createElement as fe, createContext as xn, useContext as yn, isValidElement as wn, cloneElement as vn } from "react";
4
- import { g as xt, d as yt, u as Ye, e as En, f as Cn, h as Sn, i as Ln, j as Mn, k as je, l as wt, n as vt, o as Mt, p as Dn, P as Tn, q as Zt, r as On, v as Wn, t as ie, H as Xt, x as Dt, y as pt, z as Fn, $ as ye, A as Qt, C as Nn, J as Yt, K as An, L as mt, M as Jt, N as Rn, O as Pn, S as In, R as jn, U as Hn, V as zn, W as qn, B as xe, Y as _n, E as Bn, Z as Vn, a0 as ht, a1 as $n, a2 as Un, a3 as Kn, a4 as Gn, a5 as Zn, a6 as Xn, Q as Qn, a7 as ee, a8 as We, a9 as Tt, aa as Yn, ab as Jn, ac as eo, ad as to, ae as no, af as oo, ag as nt, ah as Fe, ai as ro, aj as ao, ak as io, al as so, am as Ot, an as Wt, ao as lo, ap as co, aq as uo, ar as po, as as qe } from "./CYXzmWJtZn5OJVBF.mjs";
3
+ import T, { memo as Me, forwardRef as ce, useRef as le, useMemo as te, useState as ae, useEffect as K, useLayoutEffect as dt, useCallback as ne, Component as Kt, createElement as fe, createContext as xn, useContext as yn, isValidElement as wn, cloneElement as vn } from "react";
4
+ import { g as xt, f as yt, u as Ye, h as En, i as Cn, j as Sn, k as Ln, l as Mn, m as je, n as wt, o as vt, p as Mt, q as Dn, P as Tn, r as Zt, t as On, v as Wn, w as ie, x as Xt, I as Dt, U as pt, y as Fn, Z as ye, A as Qt, C as Nn, G as Yt, H as An, J as mt, K as Jt, L as Rn, R as In, M as Pn, N as jn, V as Hn, W as zn, $ as _n, B as xe, Y as qn, E as Bn, _ as Vn, a0 as ht, a1 as $n, a2 as Un, a3 as Gn, a4 as Kn, a5 as Zn, a6 as Xn, Q as Qn, a7 as ee, a8 as We, a9 as Tt, aa as Yn, ab as Jn, ac as eo, ad as to, ae as no, af as oo, ag as nt, ah as Fe, ai as ro, aj as ao, ak as io, al as so, am as Ot, an as Wt, ao as lo, ap as co, aq as uo, ar as po, as as _e } from "./Dh_t4LKcuJndwsWc.mjs";
5
5
  import { createPortal as mo } from "react-dom";
6
6
  import { CommonUtils as ot, UndoManager as ho, Workbook as Ft, PartialError as fo } from "@sheetxl/sdk";
7
7
  /**
8
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
8
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.7
9
9
  *
10
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
11
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -21,13 +21,13 @@ const ko = je("div", { name: "MuiCollapse", slot: "Root", overridesResolver: (e,
21
21
  const r = Ye({ props: e, name: "MuiCollapse" }), { addEndListener: t, children: n, className: a, collapsedSize: i = "0px", component: l, easing: s, in: c, onEnter: u, onEntered: m, onEntering: k, onExit: y, onExited: b, onExiting: f, orientation: x = "vertical", style: h, timeout: d = En.standard, TransitionComponent: L = Cn, ...w } = r, R = { ...r, orientation: x, collapsedSize: i }, M = ((C) => {
22
22
  const { orientation: W, classes: V } = C;
23
23
  return vt({ root: ["root", `${W}`], entered: ["entered"], hidden: ["hidden"], wrapper: ["wrapper", `${W}`], wrapperInner: ["wrapperInner", `${W}`] }, go, V);
24
- })(R), j = Sn(), _ = Ln(), N = ve.useRef(null), z = ve.useRef(), K = typeof i == "number" ? `${i}px` : i, Q = x === "horizontal", P = Q ? "width" : "height", oe = ve.useRef(null), A = Mn(o, oe), E = (C) => (W) => {
24
+ })(R), j = Sn(), q = Ln(), N = ve.useRef(null), z = ve.useRef(), G = typeof i == "number" ? `${i}px` : i, Q = x === "horizontal", I = Q ? "width" : "height", oe = ve.useRef(null), A = Mn(o, oe), E = (C) => (W) => {
25
25
  if (C) {
26
26
  const V = oe.current;
27
27
  W === void 0 ? C(V) : C(V, W);
28
28
  }
29
- }, S = () => N.current ? N.current[Q ? "clientWidth" : "clientHeight"] : 0, I = E((C, W) => {
30
- N.current && Q && (N.current.style.position = "absolute"), C.style[P] = K, u && u(C, W);
29
+ }, S = () => N.current ? N.current[Q ? "clientWidth" : "clientHeight"] : 0, P = E((C, W) => {
30
+ N.current && Q && (N.current.style.position = "absolute"), C.style[I] = G, u && u(C, W);
31
31
  }), D = E((C, W) => {
32
32
  const V = S();
33
33
  N.current && Q && (N.current.style.position = "");
@@ -36,22 +36,22 @@ const ko = je("div", { name: "MuiCollapse", slot: "Root", overridesResolver: (e,
36
36
  const ue = j.transitions.getAutoHeightDuration(V);
37
37
  C.style.transitionDuration = `${ue}ms`, z.current = ue;
38
38
  } else C.style.transitionDuration = typeof re == "string" ? re : `${re}ms`;
39
- C.style[P] = `${V}px`, C.style.transitionTimingFunction = me, k && k(C, W);
39
+ C.style[I] = `${V}px`, C.style.transitionTimingFunction = me, k && k(C, W);
40
40
  }), B = E((C, W) => {
41
- C.style[P] = "auto", m && m(C, W);
42
- }), q = E((C) => {
43
- C.style[P] = `${S()}px`, y && y(C);
41
+ C.style[I] = "auto", m && m(C, W);
42
+ }), _ = E((C) => {
43
+ C.style[I] = `${S()}px`, y && y(C);
44
44
  }), Y = E(b), H = E((C) => {
45
45
  const W = S(), { duration: V, easing: re } = Mt({ style: h, timeout: d, easing: s }, { mode: "exit" });
46
46
  if (d === "auto") {
47
47
  const me = j.transitions.getAutoHeightDuration(W);
48
48
  C.style.transitionDuration = `${me}ms`, z.current = me;
49
49
  } else C.style.transitionDuration = typeof V == "string" ? V : `${V}ms`;
50
- C.style[P] = K, C.style.transitionTimingFunction = re, f && f(C);
50
+ C.style[I] = G, C.style.transitionTimingFunction = re, f && f(C);
51
51
  });
52
- return g(L, { in: c, onEnter: I, onEntered: B, onEntering: D, onExit: q, onExited: Y, onExiting: H, addEndListener: (C) => {
53
- d === "auto" && _.start(z.current || 0, C), t && t(oe.current, C);
54
- }, nodeRef: oe, timeout: d === "auto" ? null : d, ...w, children: (C, { ownerState: W, ...V }) => g(ko, { as: l, className: wt(M.root, a, { entered: M.entered, exited: !c && K === "0px" && M.hidden }[C]), style: { [Q ? "minWidth" : "minHeight"]: K, ...h }, ref: A, ownerState: { ...R, state: C }, ...V, children: g(bo, { ownerState: { ...R, state: C }, className: M.wrapper, ref: N, children: g(xo, { ownerState: { ...R, state: C }, className: M.wrapperInner, children: n }) }) }) });
52
+ return g(L, { in: c, onEnter: P, onEntered: B, onEntering: D, onExit: _, onExited: Y, onExiting: H, addEndListener: (C) => {
53
+ d === "auto" && q.start(z.current || 0, C), t && t(oe.current, C);
54
+ }, nodeRef: oe, timeout: d === "auto" ? null : d, ...w, children: (C, { ownerState: W, ...V }) => g(ko, { as: l, className: wt(M.root, a, { entered: M.entered, exited: !c && G === "0px" && M.hidden }[C]), style: { [Q ? "minWidth" : "minHeight"]: G, ...h }, ref: A, ownerState: { ...R, state: C }, ...V, children: g(bo, { ownerState: { ...R, state: C }, className: M.wrapper, ref: N, children: g(xo, { ownerState: { ...R, state: C }, className: M.wrapperInner, children: n }) }) }) });
55
55
  });
56
56
  function yo(e) {
57
57
  return xt("MuiCard", e);
@@ -98,7 +98,7 @@ function To(e) {
98
98
  return se(ve.Fragment, { children: [gt && g(Do, { enableColorScheme: t }), !gt && !t && g("span", { className: Ze, style: { display: "none" } }), r] });
99
99
  }
100
100
  const Oo = On(g("path", { d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z" }), "CancelOutlined"), Wo = xn(null), rt = { didCatch: !1, error: null };
101
- class Fo extends Gt {
101
+ class Fo extends Kt {
102
102
  constructor(o) {
103
103
  super(o), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = rt;
104
104
  }
@@ -225,13 +225,13 @@ function Rt(e) {
225
225
  return e;
226
226
  }
227
227
  kt.bind({ g: 1 }), kt.bind({ k: 1 });
228
- var Pt = function() {
228
+ var It = function() {
229
229
  return "";
230
- }, rn = T.createContext({ enqueueSnackbar: Pt, closeSnackbar: Pt }), at = "@media (max-width:599.95px)", Xe = "@media (min-width:600px)", It = function(e) {
230
+ }, rn = T.createContext({ enqueueSnackbar: It, closeSnackbar: It }), at = "@media (max-width:599.95px)", Xe = "@media (min-width:600px)", Pt = function(e) {
231
231
  return e.charAt(0).toUpperCase() + e.slice(1);
232
232
  }, Et = function(e) {
233
- return "" + It(e.vertical) + It(e.horizontal);
234
- }, _e = function(e) {
233
+ return "" + Pt(e.vertical) + Pt(e.horizontal);
234
+ }, qe = function(e) {
235
235
  return !!e || e === 0;
236
236
  }, Be = "unmounted", Ee = "exited", Ce = "entering", Ne = "entered", jt = "exiting", Ct = function(e) {
237
237
  function o(t) {
@@ -374,14 +374,14 @@ var ln = ce(function(e, o) {
374
374
  var r = e.children, t = e.direction, n = t === void 0 ? "down" : t, a = e.in, i = e.style, l = e.timeout, s = l === void 0 ? 0 : l, c = e.onEnter, u = e.onEntered, m = e.onExit, k = e.onExited, y = He(e, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), b = le(null), f = bt(r.ref, b), x = bt(f, o), h = ne(function() {
375
375
  b.current && Ve(n, b.current);
376
376
  }, [n]);
377
- return G(function() {
377
+ return K(function() {
378
378
  if (!a && n !== "down" && n !== "right") {
379
379
  var d = function(w, R) {
380
380
  var M;
381
381
  function j() {
382
- for (var _ = this, N = arguments.length, z = new Array(N), K = 0; K < N; K++) z[K] = arguments[K];
382
+ for (var q = this, N = arguments.length, z = new Array(N), G = 0; G < N; G++) z[G] = arguments[G];
383
383
  clearTimeout(M), M = setTimeout(function() {
384
- w.apply(_, z);
384
+ w.apply(q, z);
385
385
  }, R);
386
386
  }
387
387
  return R === void 0 && (R = 166), j.clear = function() {
@@ -394,7 +394,7 @@ var ln = ce(function(e, o) {
394
394
  d.clear(), L.removeEventListener("resize", d);
395
395
  };
396
396
  }
397
- }, [n, a]), G(function() {
397
+ }, [n, a]), K(function() {
398
398
  a || h();
399
399
  }, [a, h]), fe(Ct, Object.assign({ appear: !0, nodeRef: b, onEnter: function(d, L) {
400
400
  Ve(n, d), an(d), c && c(d, L);
@@ -432,9 +432,9 @@ function ze(e) {
432
432
  return O({}, o, ((t = {})[n] = kt(a), t));
433
433
  }, {});
434
434
  }
435
- var cn = "notistack-CollapseWrapper", Po = function(e) {
435
+ var cn = "notistack-CollapseWrapper", Io = function(e) {
436
436
  return "notistack-MuiContent-" + e;
437
- }, qt = ze({ root: { height: 0 }, entered: { height: "auto" } }), it = "0px", un = ce(function(e, o) {
437
+ }, _t = ze({ root: { height: 0 }, entered: { height: "auto" } }), it = "0px", un = ce(function(e, o) {
438
438
  var r = e.children, t = e.in, n = e.onExited, a = le(null), i = le(null), l = bt(o, i), s = function() {
439
439
  return a.current ? a.current.clientHeight : 0;
440
440
  };
@@ -452,15 +452,15 @@ var cn = "notistack-CollapseWrapper", Po = function(e) {
452
452
  var u = Qe({ timeout: 175, mode: "exit" }), m = u.duration, k = u.easing;
453
453
  c.style.transitionDuration = typeof m == "string" ? m : m + "ms", c.style.height = it, c.style.transitionTimingFunction = k || "";
454
454
  }, nodeRef: i, timeout: 175 }, function(c, u) {
455
- return fe("div", Object.assign({ ref: l, className: ge(qt.root, c === "entered" && qt.entered), style: O({ pointerEvents: "all", overflow: "hidden", minHeight: it, transition: Le("height") }, c === "entered" && { overflow: "visible" }, {}, c === "exited" && !t && { visibility: "hidden" }) }, u), fe("div", { ref: a, className: cn, style: { display: "flex", width: "100%" } }, r));
455
+ return fe("div", Object.assign({ ref: l, className: ge(_t.root, c === "entered" && _t.entered), style: O({ pointerEvents: "all", overflow: "hidden", minHeight: it, transition: Le("height") }, c === "entered" && { overflow: "visible" }, {}, c === "exited" && !t && { visibility: "hidden" }) }, u), fe("div", { ref: a, className: cn, style: { display: "flex", width: "100%" } }, r));
456
456
  });
457
457
  });
458
458
  un.displayName = "Collapse";
459
- var _t = { right: "left", left: "right", bottom: "up", top: "down" }, Io = function(e) {
459
+ var qt = { right: "left", left: "right", bottom: "up", top: "down" }, Po = function(e) {
460
460
  return "anchorOrigin" + Et(e);
461
461
  }, jo = function() {
462
462
  };
463
- function Ie(e, o) {
463
+ function Pe(e, o) {
464
464
  return e.reduce(function(r, t) {
465
465
  return t == null ? r : function() {
466
466
  for (var n = arguments.length, a = new Array(n), i = 0; i < n; i++) a[i] = arguments[i];
@@ -469,7 +469,7 @@ function Ie(e, o) {
469
469
  };
470
470
  }, jo);
471
471
  }
472
- var Ho = typeof window < "u" ? dt : G;
472
+ var Ho = typeof window < "u" ? dt : K;
473
473
  function Bt(e) {
474
474
  var o = le(e);
475
475
  return Ho(function() {
@@ -486,7 +486,7 @@ var st, dn = ce(function(e, o) {
486
486
  y(null, "timeout", s);
487
487
  }, h));
488
488
  });
489
- G(function() {
489
+ K(function() {
490
490
  return c && b(n), function() {
491
491
  k.current && clearTimeout(k.current);
492
492
  };
@@ -496,7 +496,7 @@ var st, dn = ce(function(e, o) {
496
496
  }, x = ne(function() {
497
497
  n != null && b(0.5 * n);
498
498
  }, [n, b]);
499
- return G(function() {
499
+ return K(function() {
500
500
  if (!i && c) return window.addEventListener("focus", x), window.addEventListener("blur", f), function() {
501
501
  window.removeEventListener("focus", x), window.removeEventListener("blur", f);
502
502
  };
@@ -514,44 +514,44 @@ var zo = ze({ root: (st = { display: "flex", flexWrap: "wrap", flexGrow: 1 }, st
514
514
  St.displayName = "SnackbarContent";
515
515
  var Ae = ze({ 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" } }), Vt = "notistack-snackbar", pn = ce(function(e, o) {
516
516
  var r = e.id, t = e.message, n = e.action, a = e.iconVariant, i = e.variant, l = e.hideIconVariant, s = e.style, c = e.className, u = a[i], m = n;
517
- return typeof m == "function" && (m = m(r)), T.createElement(St, { ref: o, role: "alert", "aria-describedby": Vt, style: s, className: ge("notistack-MuiContent", Po(i), Ae.root, Ae[i], c, !l && u && Ae.lessPadding) }, T.createElement("div", { id: Vt, className: Ae.message }, l ? null : u, t), m && T.createElement("div", { className: Ae.action }, m));
517
+ return typeof m == "function" && (m = m(r)), T.createElement(St, { ref: o, role: "alert", "aria-describedby": Vt, style: s, className: ge("notistack-MuiContent", Io(i), Ae.root, Ae[i], c, !l && u && Ae.lessPadding) }, T.createElement("div", { id: Vt, className: Ae.message }, l ? null : u, t), m && T.createElement("div", { className: Ae.action }, m));
518
518
  });
519
519
  pn.displayName = "MaterialDesignContent";
520
- var Re, lt, Ue, Ke, ct, qo = Me(pn), _o = ze({ wrappedRoot: { width: "100%", position: "relative", transform: "translateX(0)", top: 0, right: 0, bottom: 0, left: 0, minWidth: "288px" } }), Bo = function(e) {
521
- var o = le(), r = ae(!0), t = r[0], n = r[1], a = Ie([e.snack.onClose, e.onClose]), i = ne(function() {
520
+ var Re, lt, Ue, Ge, ct, _o = Me(pn), qo = ze({ wrappedRoot: { width: "100%", position: "relative", transform: "translateX(0)", top: 0, right: 0, bottom: 0, left: 0, minWidth: "288px" } }), Bo = function(e) {
521
+ var o = le(), r = ae(!0), t = r[0], n = r[1], a = Pe([e.snack.onClose, e.onClose]), i = ne(function() {
522
522
  o.current = setTimeout(function() {
523
- n(function(_) {
524
- return !_;
523
+ n(function(q) {
524
+ return !q;
525
525
  });
526
526
  }, 125);
527
527
  }, []);
528
- G(function() {
528
+ K(function() {
529
529
  return function() {
530
530
  o.current && clearTimeout(o.current);
531
531
  };
532
532
  }, []);
533
- var l, s = e.snack, c = e.classes, u = e.Component, m = u === void 0 ? qo : u, k = te(function() {
534
- return function(_) {
535
- _ === void 0 && (_ = {});
533
+ var l, s = e.snack, c = e.classes, u = e.Component, m = u === void 0 ? _o : u, k = te(function() {
534
+ return function(q) {
535
+ q === void 0 && (q = {});
536
536
  var N = { containerRoot: !0, containerAnchorOriginTopCenter: !0, containerAnchorOriginBottomCenter: !0, containerAnchorOriginTopRight: !0, containerAnchorOriginBottomRight: !0, containerAnchorOriginTopLeft: !0, containerAnchorOriginBottomLeft: !0 };
537
- return Object.keys(_).filter(function(z) {
537
+ return Object.keys(q).filter(function(z) {
538
538
  return !N[z];
539
- }).reduce(function(z, K) {
539
+ }).reduce(function(z, G) {
540
540
  var Q;
541
- return O({}, z, ((Q = {})[K] = _[K], Q));
541
+ return O({}, z, ((Q = {})[G] = q[G], Q));
542
542
  }, {});
543
543
  }(c);
544
- }, [c]), y = s.open, b = s.SnackbarProps, f = s.TransitionComponent, x = s.TransitionProps, h = s.transitionDuration, d = s.disableWindowBlurListener, L = s.content, w = He(s, ["open", "SnackbarProps", "TransitionComponent", "TransitionProps", "transitionDuration", "disableWindowBlurListener", "content", "entered", "requestClose", "onEnter", "onEntered", "onExit", "onExited"]), R = O({ direction: (l = w.anchorOrigin, l.horizontal !== "center" ? _t[l.horizontal] : _t[l.vertical]), timeout: h }, x), M = L;
544
+ }, [c]), y = s.open, b = s.SnackbarProps, f = s.TransitionComponent, x = s.TransitionProps, h = s.transitionDuration, d = s.disableWindowBlurListener, L = s.content, w = He(s, ["open", "SnackbarProps", "TransitionComponent", "TransitionProps", "transitionDuration", "disableWindowBlurListener", "content", "entered", "requestClose", "onEnter", "onEntered", "onExit", "onExited"]), R = O({ direction: (l = w.anchorOrigin, l.horizontal !== "center" ? qt[l.horizontal] : qt[l.vertical]), timeout: h }, x), M = L;
545
545
  typeof M == "function" && (M = M(w.id, w.message));
546
- var j = ["onEnter", "onEntered", "onExit", "onExited"].reduce(function(_, N) {
546
+ var j = ["onEnter", "onEntered", "onExit", "onExited"].reduce(function(q, N) {
547
547
  var z;
548
- return O({}, _, ((z = {})[N] = Ie([e.snack[N], e[N]], w.id), z));
548
+ return O({}, q, ((z = {})[N] = Pe([e.snack[N], e[N]], w.id), z));
549
549
  }, {});
550
- return T.createElement(un, { in: t, onExited: j.onExited }, T.createElement(dn, { open: y, id: w.id, disableWindowBlurListener: d, autoHideDuration: w.autoHideDuration, className: ge(_o.wrappedRoot, k.root, k[Io(w.anchorOrigin)]), SnackbarProps: b, onClose: a }, T.createElement(f, Object.assign({}, R, { appear: !0, in: y, onExit: j.onExit, onExited: i, onEnter: j.onEnter, onEntered: Ie([j.onEntered, function() {
550
+ return T.createElement(un, { in: t, onExited: j.onExited }, T.createElement(dn, { open: y, id: w.id, disableWindowBlurListener: d, autoHideDuration: w.autoHideDuration, className: ge(qo.wrappedRoot, k.root, k[Po(w.anchorOrigin)]), SnackbarProps: b, onClose: a }, T.createElement(f, Object.assign({}, R, { appear: !0, in: y, onExit: j.onExit, onExited: i, onEnter: j.onEnter, onEntered: Pe([j.onEntered, function() {
551
551
  e.snack.requestClose && a(null, "instructed", e.snack.id);
552
552
  }], w.id) }), M || T.createElement(m, Object.assign({}, w)))));
553
- }, Pe = 20, ut = 6, Vo = 2, $t = "." + cn, Ge = ze({ root: (Re = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition: Le(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }), pointerEvents: "none" }, Re[$t] = { padding: ut + "px 0px", transition: "padding 300ms ease 0ms" }, Re.maxWidth = "calc(100% - " + 2 * Pe + "px)", Re[at] = { width: "100%", maxWidth: "calc(100% - 32px)" }, Re), rootDense: (lt = {}, lt[$t] = { padding: Vo + "px 0px" }, lt), top: { top: Pe - ut + "px", flexDirection: "column" }, bottom: { bottom: Pe - ut + "px", flexDirection: "column-reverse" }, left: (Ue = { left: Pe + "px" }, Ue[Xe] = { alignItems: "flex-start" }, Ue[at] = { left: "16px" }, Ue), right: (Ke = { right: Pe + "px" }, Ke[Xe] = { alignItems: "flex-end" }, Ke[at] = { right: "16px" }, Ke), center: (ct = { left: "50%", transform: "translateX(-50%)" }, ct[Xe] = { alignItems: "center" }, ct) }), $o = Me(function(e) {
554
- var o = e.classes, r = o === void 0 ? {} : o, t = e.anchorOrigin, n = e.dense, a = e.children, i = ge("notistack-SnackbarContainer", Ge[t.vertical], Ge[t.horizontal], Ge.root, r.containerRoot, r["containerAnchorOrigin" + Et(t)], n && Ge.rootDense);
553
+ }, Ie = 20, ut = 6, Vo = 2, $t = "." + cn, Ke = ze({ root: (Re = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition: Le(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }), pointerEvents: "none" }, Re[$t] = { padding: ut + "px 0px", transition: "padding 300ms ease 0ms" }, Re.maxWidth = "calc(100% - " + 2 * Ie + "px)", Re[at] = { width: "100%", maxWidth: "calc(100% - 32px)" }, Re), rootDense: (lt = {}, lt[$t] = { padding: Vo + "px 0px" }, lt), top: { top: Ie - ut + "px", flexDirection: "column" }, bottom: { bottom: Ie - ut + "px", flexDirection: "column-reverse" }, left: (Ue = { left: Ie + "px" }, Ue[Xe] = { alignItems: "flex-start" }, Ue[at] = { left: "16px" }, Ue), right: (Ge = { right: Ie + "px" }, Ge[Xe] = { alignItems: "flex-end" }, Ge[at] = { right: "16px" }, Ge), center: (ct = { left: "50%", transform: "translateX(-50%)" }, ct[Xe] = { alignItems: "center" }, ct) }), $o = Me(function(e) {
554
+ var o = e.classes, r = o === void 0 ? {} : o, t = e.anchorOrigin, n = e.dense, a = e.children, i = ge("notistack-SnackbarContainer", Ke[t.vertical], Ke[t.horizontal], Ke.root, r.containerRoot, r["containerAnchorOrigin" + Et(t)], n && Ke.rootDense);
555
555
  return T.createElement("div", { className: i }, a);
556
556
  }), Ut = function(e) {
557
557
  return !(typeof e == "string" || wn(e));
@@ -560,16 +560,16 @@ var Re, lt, Ue, Ke, ct, qo = Me(pn), _o = ze({ wrappedRoot: { width: "100%", pos
560
560
  var t;
561
561
  return (t = e.call(this, r) || this).enqueueSnackbar = function(n, a) {
562
562
  if (a === void 0 && (a = {}), n == null) throw new Error("enqueueSnackbar called with invalid argument");
563
- var i = Ut(n) ? n : a, l = Ut(n) ? n.message : n, s = i.key, c = i.preventDuplicate, u = He(i, ["key", "preventDuplicate"]), m = _e(s), k = m ? s : (/* @__PURE__ */ new Date()).getTime() + Math.random(), y = /* @__PURE__ */ function(f, x) {
563
+ var i = Ut(n) ? n : a, l = Ut(n) ? n.message : n, s = i.key, c = i.preventDuplicate, u = He(i, ["key", "preventDuplicate"]), m = qe(s), k = m ? s : (/* @__PURE__ */ new Date()).getTime() + Math.random(), y = /* @__PURE__ */ function(f, x) {
564
564
  return function(h, d) {
565
- return d === void 0 && (d = !1), d ? O({}, be[h], {}, x[h], {}, f[h]) : h === "autoHideDuration" ? (M = f.autoHideDuration, j = x.autoHideDuration, (_ = function(N) {
565
+ return d === void 0 && (d = !1), d ? O({}, be[h], {}, x[h], {}, f[h]) : h === "autoHideDuration" ? (M = f.autoHideDuration, j = x.autoHideDuration, (q = function(N) {
566
566
  return typeof N == "number" || N === null;
567
- })(M) ? M : _(j) ? j : be.autoHideDuration) : h === "transitionDuration" ? (L = f.transitionDuration, w = x.transitionDuration, (R = function(N, z) {
568
- return z.some(function(K) {
569
- return typeof N === K;
567
+ })(M) ? M : q(j) ? j : be.autoHideDuration) : h === "transitionDuration" ? (L = f.transitionDuration, w = x.transitionDuration, (R = function(N, z) {
568
+ return z.some(function(G) {
569
+ return typeof N === G;
570
570
  });
571
571
  })(L, ["string", "number"]) ? L : R(L, ["object"]) ? O({}, be.transitionDuration, {}, R(w, ["object"]) && w, {}, L) : R(w, ["string", "number"]) ? w : R(w, ["object"]) ? O({}, be.transitionDuration, {}, w) : be.transitionDuration) : f[h] || x[h] || be[h];
572
- var L, w, R, M, j, _;
572
+ var L, w, R, M, j, q;
573
573
  };
574
574
  }(u, t.props), b = O({ id: k }, u, { message: l, 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: ge(t.props.className, u.className) });
575
575
  return b.persist && (b.autoHideDuration = void 0), t.setState(function(f) {
@@ -599,7 +599,7 @@ var Re, lt, Ue, Ke, ct, qo = Me(pn), _o = ze({ wrappedRoot: { width: "100%", pos
599
599
  });
600
600
  return O({}, n, { snacks: l });
601
601
  }, t.handleEnteredSnack = function(n, a, i) {
602
- if (!_e(i)) throw new Error("handleEnteredSnack Cannot be called with undefined key");
602
+ if (!qe(i)) throw new Error("handleEnteredSnack Cannot be called with undefined key");
603
603
  t.setState(function(l) {
604
604
  return { snacks: l.snacks.map(function(s) {
605
605
  return s.id === i ? O({}, s, { entered: !0 }) : O({}, s);
@@ -620,9 +620,9 @@ var Re, lt, Ue, Ke, ct, qo = Me(pn), _o = ze({ wrappedRoot: { width: "100%", pos
620
620
  var a = t.state.snacks.find(function(i) {
621
621
  return i.id === n;
622
622
  });
623
- _e(n) && a && a.onClose && a.onClose(null, "instructed", n), t.handleCloseSnack(null, "instructed", n);
623
+ qe(n) && a && a.onClose && a.onClose(null, "instructed", n), t.handleCloseSnack(null, "instructed", n);
624
624
  }, t.handleExitedSnack = function(n, a) {
625
- if (!_e(a)) throw new Error("handleExitedSnack Cannot be called with undefined key");
625
+ if (!qe(a)) throw new Error("handleExitedSnack Cannot be called with undefined key");
626
626
  t.setState(function(i) {
627
627
  var l = t.processQueue(O({}, i, { snacks: i.snacks.filter(function(s) {
628
628
  return s.id !== a;
@@ -638,14 +638,14 @@ var Re, lt, Ue, Ke, ct, qo = Me(pn), _o = ze({ wrappedRoot: { width: "100%", pos
638
638
  }, {}), y = Object.keys(k).map(function(b) {
639
639
  var f = k[b], x = f[0];
640
640
  return T.createElement($o, { key: b, dense: s, anchorOrigin: x.anchorOrigin, classes: m }, f.map(function(h) {
641
- return T.createElement(Bo, { key: h.id, snack: h, classes: m, Component: u[h.variant], onClose: r.handleCloseSnack, onEnter: r.props.onEnter, onExit: r.props.onExit, onExited: Ie([r.handleExitedSnack, r.props.onExited], h.id), onEntered: Ie([r.handleEnteredSnack, r.props.onEntered], h.id) });
641
+ return T.createElement(Bo, { key: h.id, snack: h, classes: m, Component: u[h.variant], onClose: r.handleCloseSnack, onEnter: r.props.onEnter, onExit: r.props.onExit, onExited: Pe([r.handleExitedSnack, r.props.onExited], h.id), onEntered: Pe([r.handleEnteredSnack, r.props.onEntered], h.id) });
642
642
  }));
643
643
  });
644
644
  return T.createElement(rn.Provider, { value: t }, i, a ? mo(y, a) : y);
645
645
  }, nn(o, [{ key: "maxSnack", get: function() {
646
646
  return this.props.maxSnack || be.maxSnack;
647
647
  } }]), o;
648
- }(Gt), mn = function() {
648
+ }(Kt), mn = function() {
649
649
  return yn(rn);
650
650
  };
651
651
  const pe = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "_icons_1a398_16", expand: "_expand_1a398_22", expandOpen: "_expandOpen_1a398_29", stackTraceContainer: "_stackTraceContainer_1a398_33" }, hn = ce((e, o) => {
@@ -654,12 +654,12 @@ const pe = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "
654
654
  }, []), y = ne(() => {
655
655
  s(r);
656
656
  }, [r, s]), b = a?.message || String(t);
657
- return g(St, { ref: o, className: mt(pe.root, "error-snackbar"), children: se(vo, { className: pe.card, style: { backgroundColor: c.palette.error.dark, border: `1px solid ${c.palette.error.dark}` }, children: [se(So, { className: pe.actionRoot, children: [i ? null : n?.error, g(Vn, { variant: "body2", component: "div", className: pe.typography, style: { color: c.palette.text.primary }, children: b }), g("div", { style: { flex: "1 1 auto" } }), se("div", { className: pe.icons, children: [a ? g(ht, { "aria-label": "Show more", size: "small", className: mt(pe.expand, { [pe.expandOpen]: u }), style: { color: c.palette.action.active }, onClick: k, children: g($n, {}) }) : null, g(ht, { size: "small", className: pe.expand, style: { color: c.palette.action.active }, onClick: y, children: g(Un, { fontSize: "small" }) })] })] }), a ? g(ft, { in: u, timeout: "auto", unmountOnExit: !0, children: g("div", { className: pe.stackTraceContainer, style: { backgroundColor: c.palette.error.light, borderTop: `1px solid ${c.palette.error.main}` }, children: g(Kn, { error: a, hideLineNumbers: !0 }) }) }) : null] }) });
657
+ return g(St, { ref: o, className: mt(pe.root, "error-snackbar"), children: se(vo, { className: pe.card, style: { backgroundColor: c.palette.error.dark, border: `1px solid ${c.palette.error.dark}` }, children: [se(So, { className: pe.actionRoot, children: [i ? null : n?.error, g(Vn, { variant: "body2", component: "div", className: pe.typography, style: { color: c.palette.text.primary }, children: b }), g("div", { style: { flex: "1 1 auto" } }), se("div", { className: pe.icons, children: [a ? g(ht, { "aria-label": "Show more", size: "small", className: mt(pe.expand, { [pe.expandOpen]: u }), style: { color: c.palette.action.active }, onClick: k, children: g($n, {}) }) : null, g(ht, { size: "small", className: pe.expand, style: { color: c.palette.action.active }, onClick: y, children: g(Un, { fontSize: "small" }) })] })] }), a ? g(ft, { in: u, timeout: "auto", unmountOnExit: !0, children: g("div", { className: pe.stackTraceContainer, style: { backgroundColor: c.palette.error.light, borderTop: `1px solid ${c.palette.error.main}` }, children: g(Gn, { error: a, hideLineNumbers: !0 }) }) }) : null] }) });
658
658
  });
659
659
  hn.displayName = "ToastError";
660
660
  const fn = Me(ce((e, o) => {
661
661
  const { commands: r, commandHook: t, scope: n = "workbook", disabled: a = !1, ...i } = e, l = ie((c) => {
662
- const u = { variant: ro.Menuitem, parentFloat: c.floatReference, commandHook: t, scope: n, disabled: a }, m = se(Kt, { children: [g(nt, { ...u, command: r.getCommand("newWorkbook"), icon: Fe(g(ao, {})) }), g(io, { orientation: "horizontal" }), g(nt, { ...u, command: r.getCommand("openWorkbook"), icon: Fe(g(so, {})) }), g(Ot, { ...u, commands: r, quickCommand: "saveWorkbook", icon: Fe(g(uo, {})), createPopupPanel: (k) => {
662
+ const u = { variant: ro.Menuitem, parentFloat: c.floatReference, commandHook: t, scope: n, disabled: a }, m = se(Gt, { children: [g(nt, { ...u, command: r.getCommand("newWorkbook"), icon: Fe(g(ao, {})) }), g(io, { orientation: "horizontal" }), g(nt, { ...u, command: r.getCommand("openWorkbook"), icon: Fe(g(so, {})) }), g(Ot, { ...u, commands: r, quickCommand: "saveWorkbook", icon: Fe(g(uo, {})), createPopupPanel: (k) => {
663
663
  const y = { ...u, parentFloat: k.floatReference, scope: "saveWorkbook" }, b = [];
664
664
  return ye.getWriteFormats().forEach((f) => {
665
665
  if (f.isDefault) return;
@@ -678,17 +678,17 @@ const fn = Me(ce((e, o) => {
678
678
  return g(Ot, { commands: r, disabled: a, commandHook: t, scope: n, label: s, tooltip: "Options for saving and loading the workbook.", sx: { paddingBottom: "0px", "& button": { paddingTop: "0px", paddingBottom: "0px", height: (c) => `calc(1.25rem + ${c.spacing(2)}px)` } }, ...i, createPopupPanel: l, icon: g(po, { className: "label", icon: null, label: s }) });
679
679
  }));
680
680
  fn.displayName = "StandaloneFileCommandButton";
681
- const Ko = g(no, { label: "SheetXL", description: "Visit me at sheetxl.com.", children: g(xe, { sx: { width: "24px", height: "24px", marginBottom: "4px", marginLeft: "6px" }, children: g(oo, { onClick: () => {
681
+ const Go = g(no, { label: "SheetXL", description: "Visit me at sheetxl.com.", children: g(xe, { sx: { width: "24px", height: "24px", marginBottom: "4px", marginLeft: "6px" }, children: g(oo, { onClick: () => {
682
682
  window?.open("https://www.sheetxl.com", "_blank");
683
683
  }, style: { width: "24px", height: "24px", cursor: "pointer" } }) }) }), gn = Me(ce((e, o) => {
684
- const { commands: r, workbook: t, logo: n = Ko, mainElement: a, showFileMenu: i = !0, showAppearanceMenu: l = !0, ...s } = e, { reference: c } = Hn(), [u, { width: m }] = zn(), k = m < 530, y = i ? g(fn, { commands: r, commandHook: { beforeExecute() {
684
+ const { commands: r, workbook: t, logo: n = Go, mainElement: a, showFileMenu: i = !0, showAppearanceMenu: l = !0, ...s } = e, { reference: c } = Hn(), [u, { width: m }] = zn(), k = m < 530, y = i ? g(fn, { commands: r, commandHook: { beforeExecute() {
685
685
  c?.closeAll();
686
686
  }, onError(h, d, L) {
687
- } } }) : null, b = l ? g(qn, { commands: r, commandHook: { beforeExecute() {
687
+ } } }) : null, b = l ? g(_n, { commands: r, commandHook: { beforeExecute() {
688
688
  c?.closeAll();
689
689
  }, onError(h, d, L) {
690
690
  } } }) : null, f = te(() => ({ paddingLeft: (h) => h.spacing(1), paddingRight: (h) => h.spacing(1) }), []), x = le(null);
691
- return g(xe, { ref: Jt([x, u, o]), ...s, children: _n({ commands: r, renderCompact: k, workbook: t, selectWrapper: (h) => se(xe, { sx: { display: "flex", flex: "1", flexDirection: "row", alignItems: "stretch", gap: (d) => d.spacing(1), paddingLeft: (d) => d.spacing(1), paddingRight: (d) => d.spacing(1) }, children: [se(xe, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (d) => d.spacing(0.5) }, children: [n, se(xe, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (d) => d.spacing(0.25) }, children: [y, h] })] }), g(xe, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: a }), g(xe, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: k && !b ? "0 0 auto" : "1 1 100%" }, children: b })] }), selectProps: f, toolbarsProps: { Home: { sx: {} } } }) });
691
+ return g(xe, { ref: Jt([x, u, o]), ...s, children: qn({ commands: r, renderCompact: k, workbook: t, selectWrapper: (h) => se(xe, { sx: { display: "flex", flex: "1", flexDirection: "row", alignItems: "stretch", gap: (d) => d.spacing(1), paddingLeft: (d) => d.spacing(1), paddingRight: (d) => d.spacing(1) }, children: [se(xe, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (d) => d.spacing(0.5) }, children: [n, se(xe, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (d) => d.spacing(0.25) }, children: [y, h] })] }), g(xe, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: a }), g(xe, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: k && !b ? "0 0 auto" : "1 1 100%" }, children: b })] }), selectProps: f, toolbarsProps: { Home: { sx: {} } } }) });
692
692
  }));
693
693
  gn.displayName = "StandaloneWorkbookToolbar";
694
694
  const kn = Me(ce((e, o) => {
@@ -698,66 +698,66 @@ const kn = Me(ce((e, o) => {
698
698
  h((A) => ({ ...A, isMounted: !0 }));
699
699
  }, []), L = ne(() => {
700
700
  h((A) => ({ ...A, isMounted: !1 }));
701
- }, []), w = Gn(), R = Zn(), M = Xn(), j = le(/* @__PURE__ */ new Set()), _ = te(() => {
701
+ }, []), w = Kn(), R = Zn(), M = Xn(), j = le(/* @__PURE__ */ new Set()), q = te(() => {
702
702
  const A = (E, S) => {
703
703
  if (S?.onceKey) {
704
704
  if (j.current.has(S.onceKey)) return;
705
705
  const D = new Set(j.current);
706
706
  D.add(S.onceKey), j.current = D;
707
707
  }
708
- const I = { variant: S?.type ?? qe.Info, anchorOrigin: { vertical: "top", horizontal: "center" }, preventDuplicate: S?.preventDuplicate, persist: S?.persist ?? S?.type === qe.Error, action: (D) => g(ht, { onClick: () => f(D), children: g(Oo, {}) }) };
709
- S?.enqueueProps && Object.assign(I, S.enqueueProps), E || console.log("message is 'null'", S), b(E ?? "Alert", I);
708
+ const P = { variant: S?.type ?? _e.Info, anchorOrigin: { vertical: "top", horizontal: "center" }, preventDuplicate: S?.preventDuplicate, persist: S?.persist ?? S?.type === _e.Error, action: (D) => g(ht, { onClick: () => f(D), children: g(Oo, {}) }) };
709
+ S?.enqueueProps && Object.assign(P, S.enqueueProps), E || console.log("message is 'null'", S), b(E ?? "Alert", P);
710
710
  };
711
711
  return { showMessage: A, showBusy: (E, S) => {
712
- let I = null;
712
+ let P = null;
713
713
  const D = new Promise((B) => {
714
- I = B;
714
+ P = B;
715
715
  });
716
716
  return h((B) => {
717
- const q = new Map(B.starting);
718
- return q.set(D, I), { ...B, label: E, starting: q };
717
+ const _ = new Map(B.starting);
718
+ return _.set(D, P), { ...B, label: E, starting: _ };
719
719
  }), D;
720
- }, showWindow: (E, S, I) => {
720
+ }, showWindow: (E, S, P) => {
721
721
  const D = { ...S, onKeyDown: (B) => {
722
722
  u?.dispatchToFocusedCommand(B), B.isDefaultPrevented() || B.isPropagationStopped() || S?.onKeyDown?.(B);
723
723
  } };
724
- return w(E, { sort: () => import("./CntwHkPpskE88Ixu.mjs"), numberFormat: () => import("./CLTP12OHGQ2k4_Kt.mjs"), hyperlink: () => import("./BsDYj6xix3mlXry2.mjs"), comments: () => import("./ChMaIhqaEhF3SLLt.mjs"), find: () => import("./DFa_tXqv1VN1OZdv.mjs"), tableDetails: () => import("./BTQ-TGJnw7w1Y0CX.mjs"), tableNew: () => import("./wziCLl5xvHu6Guu_.mjs"), namedDetails: () => import("./BLsIMzjofsOnRFrU.mjs") }[E], D, I);
724
+ return w(E, { sort: () => import("./BJvTXvPtfJHHEwCI.mjs"), numberFormat: () => import("./B7vV_BImqZyJbVxt.mjs"), hyperlink: () => import("./BNrrWDYFBvlrgKLr.mjs"), comments: () => import("./BY7jrGTT-6LIotvc.mjs"), find: () => import("./BasVdd3zd4rzMJ3z.mjs"), tableDetails: () => import("./CYOe-PNU1ddwNZxf.mjs"), tableNew: () => import("./DMgXE7S--oWb9q_g.mjs"), namedDetails: () => import("./BL-MGLoZVjIZRC8f.mjs") }[E], D, P);
725
725
  }, showOptions: R, showInputOptions: M, showError: (E) => {
726
- let S, I = qe.Error, D = "Unknown Error";
727
- typeof E == "string" ? D = E : E instanceof Error && (S = E, E.message && (D = E.message)), E instanceof fo && (I = qe.Info), A(D, { type: I, enqueueProps: { error: S } });
726
+ let S, P = _e.Error, D = "Unknown Error";
727
+ typeof E == "string" ? D = E : E instanceof Error && (S = E, E.message && (D = E.message)), E instanceof fo && (P = _e.Info), A(D, { type: P, enqueueProps: { error: S } });
728
728
  } };
729
729
  }, []), N = ne(() => {
730
730
  }, []), z = ((A) => {
731
- const { workbook: E, setWorkbook: S, importExportDisabled: I, workbookTitle: D = "export", setWorkbookTitle: B, notifier: q, requestWorkbookTitle: Y, themeModeOptions: H, undoManager: C, commands: W, onExecute: V } = A, re = ie(H?.onForceModeChange, [H?.onForceModeChange]), me = ie(H?.onForceLightGridChange, [H?.onForceLightGridChange]), ue = ie(H?.onForceLightImagesChange, [H?.onForceLightImagesChange]), Je = ie(async (F = null, X = null) => {
731
+ const { workbook: E, setWorkbook: S, importExportDisabled: P, workbookTitle: D = "export", setWorkbookTitle: B, notifier: _, requestWorkbookTitle: Y, themeModeOptions: H, undoManager: C, commands: W, onExecute: V } = A, re = ie(H?.onForceModeChange, [H?.onForceModeChange]), me = ie(H?.onForceLightGridChange, [H?.onForceLightGridChange]), ue = ie(H?.onForceLightImagesChange, [H?.onForceLightImagesChange]), Je = ie(async (F = null, X = null) => {
732
732
  const p = [];
733
733
  let v, $ = null, J = null;
734
734
  if (typeof F == "string" ? J = F : $ = F, v = $ ? F : await Qn.openFileDialog(J ?? ye.getAllReadFormatTypeAsString().join(",")), !v) return null;
735
735
  const he = { source: v, constructorOptions: X, onWarning: (tt) => {
736
736
  p.push(tt);
737
- } }, Oe = await ye.read(he, q);
738
- return p.length > 0 && (q?.showMessage?.("Some elements were not able to be imported. See console for details."), console.warn(`Import warnings:
737
+ } }, Oe = await ye.read(he, _);
738
+ return p.length > 0 && (_?.showMessage?.("Some elements were not able to be imported. See console for details."), console.warn(`Import warnings:
739
739
  ` + p.join(`
740
740
  `))), Oe;
741
- }, [V, q, E]), De = ie(async (F, X, p) => {
741
+ }, [V, _, E]), De = ie(async (F, X, p) => {
742
742
  if (!X && Y) {
743
743
  const v = await Y("Enter Workbook name to " + (p.isDefault ? "Save." : `Export as ${p.description}.`));
744
744
  return v !== null && ye.writeFile(v, F, { formatType: p.key });
745
745
  }
746
746
  return ye.writeFile(X, F, { formatType: p.key });
747
- }, [q, E, Y]), U = ne(() => ({ contains: (F) => !0, focus() {
747
+ }, [_, E, Y]), U = ne(() => ({ contains: (F) => !0, focus() {
748
748
  } }), []), ke = te(() => {
749
749
  const F = [];
750
- I || (ye.getWriteFormats().forEach((p) => {
750
+ P || (ye.getWriteFormats().forEach((p) => {
751
751
  const v = p.isDefault, $ = { label: v ? "Save Workbook" : `Save Workbook as ${p.description}`, scopedLabels: { workbook: "Save", saveWorkbook: `as ${p.description}` }, tags: p.tags, description: `Save the workbook to the desktop${v ? "" : ` as ${p.description}`}.` };
752
752
  v && ($.shortcut = { key: "S", modifiers: [We.Ctrl] }, F.push(new ee("saveWorkbookAs", U, { label: "Save Workbook As…", scopedLabels: { workbook: "Save as…", saveWorkbook: "as…" }, shortcut: [{ key: "S", modifiers: [We.Shift, We.Ctrl] }, { key: "F12" }], description: "Save the workbook to the desktop with the provided name." }, () => {
753
753
  De(E, null, p).catch((he) => {
754
- q?.showError?.(he);
754
+ _?.showError?.(he);
755
755
  });
756
756
  })));
757
757
  const J = v ? "saveWorkbook" : `saveWorkbookAs${p.key}`;
758
758
  F.push(new ee(J, U, $, (he) => {
759
759
  De(E, he ?? D, p).catch((Oe) => {
760
- q?.showError?.(Oe);
760
+ _?.showError?.(Oe);
761
761
  });
762
762
  }));
763
763
  }), F.push(new ee("openWorkbook", U, { label: "Open Workbook…", scopedLabels: { workbook: "Open…" }, description: "Open a workbook from the desktop.", shortcut: { key: "O", modifiers: [We.Ctrl] } }, async (p = null) => {
@@ -770,15 +770,15 @@ const kn = Me(ce((e, o) => {
770
770
  const tt = E.findValidSheetName(J);
771
771
  await E.doBatch(async () => {
772
772
  const Lt = Oe.getUsedRange();
773
- Lt ? await E.getSheets().add({ name: tt, autoSelect: !0 }).getRange({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }).copyFrom(Lt) : q?.showMessage("The file appears to be blank.");
773
+ Lt ? await E.getSheets().add({ name: tt, autoSelect: !0 }).getRange({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }).copyFrom(Lt) : _?.showMessage("The file appears to be blank.");
774
774
  }, `Import CSV '${J}'`);
775
775
  } else E?.close(), B?.(J), S(he);
776
776
  } catch ($) {
777
- q?.showError?.($);
777
+ _?.showError?.($);
778
778
  }
779
779
  })), F.push(new ee("openWorkbookFromUrl", U, { label: "Open Workbook From Web", scopedLabels: { insert: "From Web", workbook: "From Web…" }, description: "Open a workbook from the web." }, async function(p) {
780
780
  if (!p) {
781
- const v = await q?.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"] });
781
+ const v = await _?.showInputOptions?.({ title: "Open Workbook from the Web", description: "Enter the web address for the workbook to open.", inputLabel: "Address", initialValue: "https://www.sheetxl.com/examples/features-checklist.xlsx", inputProps: { style: { minWidth: "440px" } }, options: ["Open"] });
782
782
  if (v.option !== "Open") return;
783
783
  p = v.input;
784
784
  }
@@ -796,13 +796,13 @@ const kn = Me(ce((e, o) => {
796
796
  }), new ee("gotoUrlIssue", U, { label: "Create Issue", description: "Create an issue to identify a bug or a feature request." }, () => {
797
797
  window?.open("https://github.com/sheetxl/sheetxl/issues");
798
798
  })];
799
- }, [E, D, q, I, H, W, C]), Z = te(() => {
799
+ }, [E, D, _, P, H, W, C]), Z = te(() => {
800
800
  let F = null;
801
801
  return F = W ? W.createChildGroup(U, "standaloneWorkbook", !1) : new Qt(U, "standaloneWorkbook"), F.addCommands(ke, !0), F;
802
802
  }, [W, ke]);
803
- Yn({ manager: C, commands: Z, notifier: q });
803
+ Yn({ manager: C, commands: Z, notifier: _ });
804
804
  const { themeMode: Te } = Xt();
805
- G(() => {
805
+ K(() => {
806
806
  if (!H || !Z) return;
807
807
  const F = H.forceMode === "dark" || !H.forceMode && Te === "dark";
808
808
  Z.getCommand("themeMode").update({ state: H.forceMode ?? null, label: F ? "Dark Mode" : "Light Mode", scopedLabels: { appearance: F ? "Dark Mode" : "Light Mode" } }).updateCallback(() => {
@@ -816,9 +816,9 @@ const kn = Me(ce((e, o) => {
816
816
  });
817
817
  }, [Te, H, ke]);
818
818
  const { showModal: et } = Jn();
819
- return G(() => {
819
+ return K(() => {
820
820
  const F = () => new Promise((X, p) => {
821
- const v = T.lazy(() => import("./BdLAPrmXIfjGFhhA.mjs")), $ = et(v, { title: "Shortcut Keys Reference", commands: Z, onDone: () => {
821
+ const v = T.lazy(() => import("./DKgnlbWYgEPNFHp4.mjs")), $ = et(v, { title: "Shortcut Keys Reference", commands: Z, onDone: () => {
822
822
  $.hide();
823
823
  }, TransitionProps: { onExited: () => {
824
824
  X(!0);
@@ -827,58 +827,58 @@ const kn = Me(ce((e, o) => {
827
827
  Z.getCommand("showKeyboardShortcuts").updateCallback(() => F()), Z.getCommand("help").updateCallback(() => F());
828
828
  }, [ke, Z]), Z;
829
829
  })({ workbook: r, setWorkbook: t, importExportDisabled: m, workbookTitle: a, setWorkbookTitle: i, commands: u, requestWorkbookTitle: (A) => new Promise((E) => {
830
- n.current ? n.current.requestWorkbookTitle((S, I) => {
830
+ n.current ? n.current.requestWorkbookTitle((S, P) => {
831
831
  E(S);
832
832
  }, { selectAll: !0, requestReason: A }) : E(l);
833
- }), themeModeOptions: k, undoManager: c, notifier: _, onExecute: N });
834
- G(() => {
833
+ }), themeModeOptions: k, undoManager: c, notifier: q, onExecute: N });
834
+ K(() => {
835
835
  x.starting.size <= 0 || !x.isMounted || h((A) => {
836
836
  const E = new Map(A.running);
837
- return A.starting.forEach((S, I) => {
837
+ return A.starting.forEach((S, P) => {
838
838
  const D = () => {
839
839
  h((B) => {
840
- const q = new Map(B.running);
841
- return q.delete(I), { ...B, running: q };
840
+ const _ = new Map(B.running);
841
+ return _.delete(P), { ...B, running: _ };
842
842
  });
843
843
  };
844
- E.set(I, D), S(D);
844
+ E.set(P, D), S(D);
845
845
  }), { ...A, starting: /* @__PURE__ */ new Map(), running: E };
846
846
  });
847
847
  }, [x]);
848
- const [K, Q] = ae(null);
849
- G(() => {
848
+ const [G, Q] = ae(null);
849
+ K(() => {
850
850
  x.starting.size !== 0 || x.running.size !== 0 ? Q(g(Yt, { icon: g(eo, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: !0, label: x.label, onMount: d, onUnmount: L, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : Q(null);
851
851
  }, [x.starting, x.running]);
852
- const P = te(() => g(to, { commands: z, disableHover: !0, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [z]), oe = { notifier: _, commands: z };
853
- return r && (oe.statusBarProps = { childrenEnd: P }), se(Kt, { children: [K, s ? T.cloneElement(s, oe) : null] });
852
+ const I = te(() => g(to, { commands: z, disableHover: !0, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [z]), oe = { notifier: q, commands: z };
853
+ return r && (oe.statusBarProps = { childrenEnd: I }), se(Gt, { children: [G, s ? T.cloneElement(s, oe) : null] });
854
854
  }));
855
855
  kn.displayName = "SnackbarAndCommandsWrapper";
856
856
  const bn = Me(ce((e, o) => {
857
- const { className: r, sx: t, style: n, onElementLoad: a, onError: i, undoManager: l, errorPanel: s = Wn, onKeyDown: c, workbook: u, createWorkbookOptions: m, onWorkbookChange: k, logo: y, importExportDisabled: b = !1, themeModeOptions: f, autoFocus: x = !1, commands: h, title: d, onTitleChange: L, titleProps: w, ...R } = e, M = le(null), j = ie(k, [k]), _ = ie(L ?? w?.onTitleChange, [L ?? w?.onTitleChange]), N = w?.placeHolder ?? "Untitled", z = f?.forceMode, { themeMode: K, source: Q } = Xt({ mode: z }), P = te(() => ({ ...f, light: Dt(!1, ot.deepMerge(f?.theme ?? {}, f?.light ?? {})), dark: Dt(!0, ot.deepMerge(f?.theme ?? {}, f?.dark ?? {})) }), [f]), oe = K === pt.Dark, [A, E] = ae(null);
858
- G(() => {
857
+ const { className: r, sx: t, style: n, onElementLoad: a, onError: i, undoManager: l, errorPanel: s = Wn, onKeyDown: c, workbook: u, createWorkbookOptions: m, onWorkbookChange: k, logo: y, importExportDisabled: b = !1, themeModeOptions: f, autoFocus: x = !1, commands: h, title: d, onTitleChange: L, titleProps: w, ...R } = e, M = le(null), j = ie(k, [k]), q = ie(L ?? w?.onTitleChange, [L ?? w?.onTitleChange]), N = w?.placeHolder ?? "Untitled", z = f?.forceMode, { themeMode: G, source: Q } = Xt({ mode: z }), I = te(() => ({ ...f, light: Dt(!1, ot.deepMerge(f?.theme ?? {}, f?.light ?? {})), dark: Dt(!0, ot.deepMerge(f?.theme ?? {}, f?.dark ?? {})) }), [f]), oe = G === pt.Dark, [A, E] = ae(null);
858
+ K(() => {
859
859
  E(l ?? new ho());
860
860
  }, [l]);
861
- const [S, I] = ae(null), [D, B] = ae(null), q = Fn();
861
+ const [S, P] = ae(null), [D, B] = ae(null), _ = Fn();
862
862
  dt(() => {
863
863
  if (!u || Object.keys(u).length === 0 && !ot.isPromiseLike(u)) {
864
- const p = { theme: q.getDefaultTheme(), ...m };
864
+ const p = { theme: _.getDefaultTheme(), ...m };
865
865
  B(new Ft(p));
866
866
  } else B(u);
867
867
  }, [u]), dt(() => {
868
868
  if (D) {
869
- if (D instanceof Ft) return I({ workbook: D }), void (u !== D && j?.(D));
869
+ if (D instanceof Ft) return P({ workbook: D }), void (u !== D && j?.(D));
870
870
  (async () => {
871
871
  try {
872
872
  let p, v = await Promise.resolve(D);
873
- v && v.source && (v = await ye.read(v)), v.workbook ? (V(v.title), p = v.workbook) : p = v, j?.(p), I({ workbook: p });
873
+ v && v.source && (v = await ye.read(v)), v.workbook ? (V(v.title), p = v.workbook) : p = v, j?.(p), P({ workbook: p });
874
874
  } catch (p) {
875
- j?.(null), I({ error: p });
875
+ j?.(null), P({ error: p });
876
876
  }
877
877
  })();
878
878
  }
879
879
  }, [D]);
880
880
  const [Y, H] = ae(null);
881
- G(() => {
881
+ K(() => {
882
882
  if (!A || !S) return;
883
883
  A.clear();
884
884
  const p = S?.workbook?.getTransactions();
@@ -891,10 +891,10 @@ const bn = Me(ce((e, o) => {
891
891
  const C = ie((p) => {
892
892
  p ? A.setRepeatableOperation({ description: p.label(), repeat: async () => p.execute() }) : A.setRepeatableOperation(null);
893
893
  }, [A]), [W, V] = ae(d ?? w?.title ?? "");
894
- G(() => {
894
+ K(() => {
895
895
  V(d ?? w?.title ?? "");
896
- }, [d ?? w?.title]), G(() => {
897
- _?.(W);
896
+ }, [d ?? w?.title]), K(() => {
897
+ q?.(W);
898
898
  }, [W]);
899
899
  const [re, me] = ae(null), ue = te(() => {
900
900
  const p = () => ({ contains: (v) => !0, focus() {
@@ -903,16 +903,16 @@ const bn = Me(ce((e, o) => {
903
903
  }, [h]), Je = ie((p) => {
904
904
  me(p.source.getViewportElement()), H(p), ue.activate("sheet"), a?.(p);
905
905
  }, [ue]);
906
- G(() => {
906
+ K(() => {
907
907
  Y && x && Y.source?.focus(typeof x == "object" ? x : void 0);
908
908
  }, [Y]);
909
909
  const De = le(null), U = ne((p) => {
910
910
  let v = null;
911
911
  return w?.hidden || (v = g(Nn, { ...w, style: { maxWidth: "100%", ...w?.style }, workbook: M.current, ref: De, title: W, placeHolder: N, onTitleChange: ($) => {
912
912
  V($);
913
- } })), g(gn, { ...p, logo: y, mainElement: v, showFileMenu: !b, showAppearanceMenu: !!(P?.onForceLightGridChange || P?.onForceLightImagesChange || P?.onForceModeChange) });
914
- }, [y, W, w, P, b, ue]);
915
- G(() => {
913
+ } })), g(gn, { ...p, logo: y, mainElement: v, showFileMenu: !b, showAppearanceMenu: !!(I?.onForceLightGridChange || I?.onForceLightImagesChange || I?.onForceModeChange) });
914
+ }, [y, W, w, I, b, ue]);
915
+ K(() => {
916
916
  const p = (v) => v.preventDefault();
917
917
  return M.current?.addEventListener("wheel", p, { passive: !1 }), () => {
918
918
  M.current?.removeEventListener("wheel", p);
@@ -922,17 +922,17 @@ const bn = Me(ce((e, o) => {
922
922
  if (!S) return ke;
923
923
  if (S.error || !S.workbook) return Z({ error: S.error });
924
924
  let p = null, v = null, $ = !1;
925
- return P && (p = oe ? P.dark : P.light, v = oe && !P.forceLightGrid ? P.dark : P.light, $ = P.forceLightImages), g(An, { sx: Te, style: n, tabIndex: 0, autoFocus: !0, workbook: S.workbook, ref: et, renderToolbar: U, onElementLoad: Je, onRepeatCommandChange: C, onKeyDown: (J) => {
925
+ return I && (p = oe ? I.dark : I.light, v = oe && !I.forceLightGrid ? I.dark : I.light, $ = I.forceLightImages), g(An, { sx: Te, style: n, tabIndex: 0, autoFocus: !0, workbook: S.workbook, ref: et, renderToolbar: U, onElementLoad: Je, onRepeatCommandChange: C, onKeyDown: (J) => {
926
926
  c?.(J);
927
927
  }, gridTheme: v, headersTheme: p, forceLightImages: $, className: mt(r, "sheetxl-workbook"), onContextMenu: (J) => J.preventDefault(), ...R }, "WorkbookElement");
928
- }, [S, W, A, ke, P, R, U, Te]);
928
+ }, [S, W, A, ke, I, R, U, Te]);
929
929
  let X = g(Fo, { fallbackRender: Z, children: g(Uo, { maxSnack: 3, domRoot: re, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (p, v, $) => {
930
930
  M.current?.focus();
931
- }, Components: { error: hn }, iconVariant: { success: g(In, { style: { marginRight: "8px" }, children: g("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: g(Pn, { style: { marginRight: "8px" } }) }, children: g(Rn, { children: g(kn, { workbook: S?.workbook, setWorkbook: B, importExportDisabled: b, titlePlaceHolder: N, titleWorkbook: W, setWorkbookTitle: V, refWorkbookTitle: De, commands: ue, undoManager: A, themeModeOptions: P, children: F }) }) }) });
932
- return P && (X = se(jn, { theme: oe ? P.dark : P.light, children: [P.cssBaseline ? g(To, {}) : null, X] })), X;
931
+ }, Components: { error: hn }, iconVariant: { success: g(Pn, { style: { marginRight: "8px" }, children: g("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: g(In, { style: { marginRight: "8px" } }) }, children: g(Rn, { children: g(kn, { workbook: S?.workbook, setWorkbook: B, importExportDisabled: b, titlePlaceHolder: N, titleWorkbook: W, setWorkbookTitle: V, refWorkbookTitle: De, commands: ue, undoManager: A, themeModeOptions: I, children: F }) }) }) });
932
+ return I && (X = se(jn, { theme: oe ? I.dark : I.light, children: [I.cssBaseline ? g(To, {}) : null, X] })), X;
933
933
  }));
934
934
  bn.displayName = "EagerStandaloneWorkbook";
935
- const Go = Object.freeze(Object.defineProperty({ __proto__: null, default: bn }, Symbol.toStringTag, { value: "Module" })), er = Object.freeze(Object.defineProperty({ __proto__: null, E: Go, c: ge }, Symbol.toStringTag, { value: "Module" }));
935
+ const Ko = Object.freeze(Object.defineProperty({ __proto__: null, default: bn }, Symbol.toStringTag, { value: "Module" })), er = Object.freeze(Object.defineProperty({ __proto__: null, E: Ko, c: ge }, Symbol.toStringTag, { value: "Module" }));
936
936
  export {
937
937
  ft as C,
938
938
  er as D,