@sheetxl/studio-mui 0.8.0-beta.16 → 0.8.0-beta.18

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 (112) hide show
  1. package/browser/esm/{C2V3kv29foh8dScC.mjs → 06WRKaJNHc_txDxr.mjs} +1 -1
  2. package/browser/esm/{D3XdTSymYMag6tor.mjs → 1i2GOCzP_uwuwLU5.mjs} +5 -5
  3. package/browser/esm/{CYOaHHiaC7Ip5VLn.mjs → 8bZUXEWSZi9k_S1E.mjs} +1 -1
  4. package/browser/esm/{BjR7L3X6je3fXyQi.mjs → B2a4wwMYmYAKCzxQ.mjs} +1 -1
  5. package/browser/esm/{CnId_LC0EekuwaAF.mjs → B3Nt_WBc1l3GCBgv.mjs} +2 -2
  6. package/browser/esm/{CUh56URLD9Vh5Ak9.mjs → B6vJepS5vmDS-6yI.mjs} +1888 -1732
  7. package/browser/esm/{DjCDJhBfVI9O_Sq1.mjs → BBxxJZF2EJ8Ir8C8.mjs} +5 -5
  8. package/browser/esm/{DK1K-M9iJV-DK3lK.mjs → BDrrR6bEk1vxHbzj.mjs} +1 -1
  9. package/browser/esm/{BUCQPr09aodgC88P.mjs → BFlxgpwpozp1m6o7.mjs} +4 -4
  10. package/browser/esm/{DMj9kkIWw9chI5_u.mjs → BHlHoZ7Bg-knm5oa.mjs} +4 -4
  11. package/browser/esm/BJcmwuzslRchDgSF.mjs +14 -0
  12. package/browser/esm/{KhOxaZS8EeSaYFXZ.mjs → BPzHePn2CiBErUXC.mjs} +1 -1
  13. package/browser/esm/{C8M4U_SswTd6auZd.mjs → BSCHqmWtrxi7hodH.mjs} +3 -3
  14. package/browser/esm/{BGg5TSbhaUimavRf.mjs → BZR-NXwIGzPYWmXd.mjs} +6 -6
  15. package/browser/esm/{DfYtGsqDIMAG4Sp8.mjs → BmLvGcUzmP-znGgq.mjs} +1 -1
  16. package/browser/esm/{BSrubs5qLEinR8Ew.mjs → BoH6LxJaD65sFjEK.mjs} +2 -2
  17. package/browser/esm/{C9XRjC0yoGvS9Cm9.mjs → By3lLqidoNB3DjVD.mjs} +2 -2
  18. package/browser/esm/{tffjGixzP1Ze4DqB.mjs → Bzmdnbpbcxg0R51k.mjs} +2 -2
  19. package/browser/esm/{Bp4rtdIKIFzTeJvr.mjs → C2NKwzWjiJFJGukV.mjs} +4 -4
  20. package/browser/esm/{fqZt7Z0jR4illVKU.mjs → C3HntWkKAjnyC3CV.mjs} +4 -4
  21. package/browser/esm/{ROOxAZY7YyHDmPcQ.mjs → C6uAkVUP0yIq5row.mjs} +3 -3
  22. package/browser/esm/{DjjmLQLxU_U4JB3n.mjs → C7BnTVpLGgX_kcmJ.mjs} +8 -8
  23. package/browser/esm/{ZhI7zxDSTWb1DfaE.mjs → C7TqRPMpJZbA_OOn.mjs} +2 -2
  24. package/browser/esm/{CfsYKmwU44jlvh2Y.mjs → C7X9krI43CU4eg6-.mjs} +1 -1
  25. package/browser/esm/{DMhFcJsnKSKTDivl.mjs → C8nsVSKrp_GHhYr3.mjs} +1 -1
  26. package/browser/esm/{DVJ5AK0zcqSACGov.mjs → CB5nX8EbOct6degp.mjs} +8 -8
  27. package/browser/esm/{Ch1y4AkETfKCYDwf.mjs → CDQnDyN5NoiSHowu.mjs} +1 -1
  28. package/browser/esm/{Cv99zJfRtzJQmM9a.mjs → CH8ePenim5VvX--K.mjs} +1 -1
  29. package/browser/esm/CM6VmN79n4MRjipP.mjs +94 -0
  30. package/browser/esm/{Bg6bcIJsute7rxDL.mjs → CQMlZxOt24bgmvvv.mjs} +2 -2
  31. package/browser/esm/{Dj0VEFe2ckEWgQjy.mjs → CTvpV8rf9fcWohYU.mjs} +4 -4
  32. package/browser/esm/{Dex65RXS_A5CnMg3.mjs → CihxkgnUf8nPi34_.mjs} +2 -2
  33. package/browser/esm/{TfUaejwwWzu5qFVE.mjs → Cjy-cHM-DR-Gqk-n.mjs} +2 -2
  34. package/browser/esm/{Bo_18UwXk7eK6QaM.mjs → CuDRQ-pNBc-ktVy_.mjs} +2 -2
  35. package/browser/esm/{CtVSJjciTocAi-ph.mjs → Cz5qKECCbacDmibP.mjs} +2 -2
  36. package/browser/esm/{Cxk-oWZzE2jq5ul6.mjs → D2ujgcJO_g-Wz6tL.mjs} +2 -2
  37. package/browser/esm/{DoYSmj1LQHAAqt5b.mjs → D5UYA-ocaqXccOz9.mjs} +1 -1
  38. package/browser/esm/{DmOrKFaiUUr5hlFl.mjs → D6S-Dg65OHGNEHcb.mjs} +4 -4
  39. package/browser/esm/{tiC8hseLz66gO5BS.mjs → D9f2rU9s6eWjt1U6.mjs} +536 -536
  40. package/browser/esm/{DAdhaGB933dfni3E.mjs → DDv_r6PgL9U5-R5y.mjs} +2 -2
  41. package/browser/esm/{DIAnBUXPTvYAp5fm.mjs → DG_arYvuGh2bHE-N.mjs} +2 -2
  42. package/browser/esm/{BL-h4RElQAdaeHPF.mjs → DLal4rukkujtOXW1.mjs} +36 -36
  43. package/browser/esm/{DIJh9jY37iVFn-tE.mjs → DXlf0PkvZgV_b6uG.mjs} +1 -1
  44. package/browser/esm/{9V0gwYl3BcajPwBD.mjs → DYji4vVp9fnHsk9m.mjs} +1 -1
  45. package/browser/esm/{CLgar8cakFC22X3w.mjs → D_pfOujnkunwUDXo.mjs} +1 -1
  46. package/browser/esm/{C_qDBCzb8IHBlPhJ.mjs → DbOR86fbiNhrRKf7.mjs} +2 -2
  47. package/browser/esm/{DBx1Y3oFzB6gv-LQ.mjs → DhlfJNOvN7zFLViZ.mjs} +2 -2
  48. package/browser/esm/{D4jGaUxHOgVc4qN0.mjs → Djn6orQ4oXLrHTGI.mjs} +2 -2
  49. package/browser/esm/{DUpW8HMoEhD3C9l6.mjs → DqzQr8LRt193aj1o.mjs} +1 -1
  50. package/browser/esm/{CXgBRmauwDvHb3fQ.mjs → UZFY5qdFE4QR1Agm.mjs} +1 -1
  51. package/browser/esm/{PvNtCGveCLbLAP3e.mjs → YJgzYYp1xMzxkAHE.mjs} +4 -4
  52. package/browser/esm/{B0mscuFChIInl6Mo.mjs → ZHTi6N8OUU6QO1QU.mjs} +3 -3
  53. package/browser/esm/{CuQsEoKZJrSL989Q.mjs → fC6MZtheeHoJmQaQ.mjs} +5 -5
  54. package/browser/esm/{r7bLyFzJfaGLKP_7.mjs → fYmulvJHp8Wp0wmY.mjs} +1 -1
  55. package/browser/esm/{CDgoQhayiKyo-7Br.mjs → iQrP_vhW_sp4s71r.mjs} +5 -5
  56. package/browser/esm/index.mjs +18 -17
  57. package/browser/esm/{DVaykBKx4eEsP4MI.mjs → lip_SyDs4iBRTs_8.mjs} +3 -3
  58. package/browser/esm/{2DGUEeY8au7Hbmze.mjs → oBc8AkyrAEssabOC.mjs} +1 -1
  59. package/browser/esm/{BxneVAXjYuQbCUQo.mjs → yH10EsR9eo9Zthsc.mjs} +4 -4
  60. package/licenses/dependencies.txt +33 -33
  61. package/node/esm/{D4TlOO7hjvqTR2HX.mjs → 2J7fdwNic7JOS8e6.mjs} +2 -2
  62. package/node/esm/{BtxNP8JWe16vSXAs.mjs → 5ifD6QRZEd3huWYb.mjs} +1 -1
  63. package/node/esm/B4sLVPEb397EGucl.mjs +94 -0
  64. package/node/esm/{BIviFvkWx6eP4dMd.mjs → B9duSJ-i0VqTO5_t.mjs} +2 -2
  65. package/node/esm/{B_jOG6MlKoiboP3D.mjs → Bi6LOMeX3-44pU1z.mjs} +2 -2
  66. package/node/esm/{klLaIOeBuqaYuz_q.mjs → By_evGE-PBrgdKI6.mjs} +1 -1
  67. package/node/esm/{1gdwmt5CrQy4cGTH.mjs → C7fI-BqM4p4WJS0l.mjs} +1 -1
  68. package/node/esm/{Bm054Lh36PSa5m1P.mjs → CBQ1hoazyQvlpJyI.mjs} +1 -1
  69. package/node/esm/{BTOCej61y3MazK6r.mjs → CFjes3wFNTOeB90c.mjs} +1 -1
  70. package/node/esm/{Ch7Ebxf0bFrlCJpW.mjs → CIjBJgRnP7WbRBnA.mjs} +1 -1
  71. package/node/esm/{DYNM5HfUK0JbGHsx.mjs → CLEK4zGd0mIKhiKV.mjs} +1 -1
  72. package/node/esm/{D3TsBlOewIFj-VDW.mjs → CNZKUMbD_hGSw6do.mjs} +2 -2
  73. package/node/esm/{C5dRM0ExMHpFgKd0.mjs → CUPV64pU0m9AaOfx.mjs} +2 -2
  74. package/node/esm/CUtSgTUW09Qh72ST.mjs +14 -0
  75. package/node/esm/{fazR-cWd-2-W82Nk.mjs → CpQlurB0oZqjuhgj.mjs} +2 -2
  76. package/node/esm/{-Il_piuBrbndDROB.mjs → CqYMLDeBPC2rGTWV.mjs} +1 -1
  77. package/node/esm/{mmzQ-lse6yBavXnw.mjs → Cs1GzAp4rTyQafpi.mjs} +246 -245
  78. package/node/esm/{BV9hUarSGd3mWC8o.mjs → D4g9aG5XNbSgg-3C.mjs} +2 -2
  79. package/node/esm/{rpHmm4X81z1orjHr.mjs → DGv981h_d8G1Z3Zs.mjs} +2 -2
  80. package/node/esm/{BhiuBl2z87xThV1b.mjs → DIqIt8CBVGmlUOmQ.mjs} +1 -1
  81. package/node/esm/{CyKOmz26TaZSFxmi.mjs → DSmg7M3yRDDZkUBB.mjs} +2 -2
  82. package/node/esm/{CQxu_KONf2yyKKnD.mjs → DVc_bJM9diK0winM.mjs} +1 -1
  83. package/node/esm/{CdoFRzEug2L0LwNb.mjs → DVgkD5LxGRgOyKQ6.mjs} +9 -9
  84. package/node/esm/{BzT_zks-KORaryRo.mjs → DZYhnjts845P5iUY.mjs} +18 -18
  85. package/node/esm/{DhPNzztIuq9WJwCz.mjs → Da-N8ynNfqk6THYD.mjs} +2 -2
  86. package/node/esm/{cl-bDkq8M4STBYJy.mjs → DefzzmrMXN21wmmy.mjs} +1 -1
  87. package/node/esm/{BZu-8gEXwIzW_YX9.mjs → DiAOxoMTibKoi4gs.mjs} +1 -1
  88. package/node/esm/{0cm_0VYweOBWmzi7.mjs → Djcn2kxMw3dUSbB7.mjs} +4 -4
  89. package/node/esm/{3Geel3fylTwbPuxf.mjs → DmjwVOK5INfbJZkW.mjs} +1 -1
  90. package/node/esm/{CsQTJ4JQRxLcJDiZ.mjs → DyRNwCwOwz60vRGA.mjs} +1 -1
  91. package/node/esm/{tRnEFhRlzQPziQif.mjs → FutOJu4AGdDHpujk.mjs} +1 -1
  92. package/node/esm/{4pRKBhUYhbbE6qVT.mjs → HLmlUPOPJh0q9Uym.mjs} +1 -1
  93. package/node/esm/{B9uLfbf5gMGnoUjH.mjs → JOrOb7X9oZ8Xv7Gx.mjs} +2 -2
  94. package/node/esm/{BgObBW8ZUr50OufC.mjs → NoB9LePsgjsq24TO.mjs} +22 -22
  95. package/node/esm/{iyOc5Rm5x746Qd3R.mjs → fX-2Y2Fd273TLPO2.mjs} +1 -1
  96. package/node/esm/index.mjs +2837 -2679
  97. package/node/esm/{BFO2WxwRNbu-UmKe.mjs → oE4HsQTQ_4VVSUwb.mjs} +2 -2
  98. package/node/esm/{9qIZWfzxSaxNk6Cm.mjs → rLsP_BPGB2QEWTs8.mjs} +4 -4
  99. package/node/esm/{BIJXqUbAalnd-gXD.mjs → reyCfp4xOOgMNc9U.mjs} +1 -1
  100. package/node/esm/{BX1cTEV3SpcqLcXx.mjs → t1e3-saAZc_bj152.mjs} +4 -4
  101. package/package.json +9 -9
  102. package/resources/locales/de/groups.cmd.json +17 -0
  103. package/resources/locales/de/ui.msg.json +4 -0
  104. package/resources/locales/en/groups.cmd.json +17 -0
  105. package/resources/locales/en/ui.msg.json +4 -0
  106. package/types/src/command/ColorCommandButton.d.ts +5 -0
  107. package/types/src/dialog/SparklineEditDialog.d.ts +10 -0
  108. package/types/src/dialog/SparklineNewDialog.d.ts +23 -0
  109. package/types/src/formulaBar/IFormulaBar.d.ts +17 -1
  110. package/types/src/formulaBar/MobileFormulaBar.d.ts +11 -2
  111. package/types/src/studio/StudioProps.d.ts +16 -9
  112. package/types/src/studio/useStudioApp.d.ts +6 -0
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.16
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.18
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: MIT
6
6
  */
7
7
  import { AnomaliesPlugin as e, CommentsPlugin as t, DocumentTitle as o, ExternalLinksPlugin as r, FormatPlugin as n, FormulaField as a, InputField as i, NamedPlugin as s, ProtectionPlugin as l, SlicerPlugin as c, TablePlugin as d, WorkbookElement as p, createStudioThemeCSS as u, defaultRenderFormulaBar as m, defaultRenderPivotMenu as g, defaultRenderStatusBar as h, defaultRenderToolbar as f, defaultRenderWorkbookError as k, defaultRenderWorkbookLoading as b, l as y, registerStudioCommandCatalogs as w, registerStudioCommandGroups as x, t as v, tokensToMuiOptions as C } from "./index.mjs";
8
- import { CommandRootProvider as D, DefaultTaskPaneRegistry as S, LogoNoPaddingIcon as T, PIVOT_TABLE_PANE_KEY as E, PivotTablePane as W, SHAPE_ICON_PACK as F, TaskPaneArea as P, TaskPaneProvider as A, ThemeStateDefaults as I, ThemeStateKey as N, WorkbookIO as R, WorkbookProvider as j, buildOOXMLThemeCSS as O, createEditable as M, createSystemColorVars as $, registerMovablePane as L, registerMovableToolbarEntry as B, useDocThemes as _, useModelSync as K, useReferenceModeStore as H, useResolvedWorkbook as V, useTaskPaneArea as z, useWorkbookEncrypted as U, useWorkbookName as G, useWorkbookSaveState as q } from "@sheetxl/react";
9
- import { Command as X, DefaultIconService as Y, DynamicIcon as Z, LanguageStateKey as J, NotifierType as Q, ReactErrorBoundary as ee, ReactNotifierProvider as te, ReactUtils as oe, RenderSlot as re, ScrollUtils as ne, SplitPane as ae, UncaughtErrorBoundary as ie, createBusyHandle as se, useCallbackRef as le, useFullscreen as ce, useImperativeElement as de, useLanguage as pe, useMeasure as ue, useNotifier as me, usePersistentState as ge, useResolvedThemeMode as he, useTokenThemeContext as fe, useTranslator as ke, useVisualViewportRect as be } from "@sheetxl/utils-react";
8
+ import { CommandRootProvider as D, DefaultTaskPaneRegistry as S, LogoNoPaddingIcon as T, PIVOT_TABLE_PANE_KEY as E, PivotTablePane as W, SHAPE_ICON_PACK as F, TaskPaneArea as P, TaskPaneProvider as A, ThemeStateDefaults as I, ThemeStateKey as N, WorkbookIO as R, WorkbookProvider as j, buildOOXMLThemeCSS as O, createEditable as $, createSystemColorVars as M, registerMovablePane as L, registerMovableToolbarEntry as B, useDocThemes as K, useModelSync as _, useReferenceModeStore as z, useResolvedWorkbook as H, useTaskPaneArea as V, useWorkbookEncrypted as U, useWorkbookName as G, useWorkbookSaveState as q } from "@sheetxl/react";
9
+ import { Command as X, DefaultIconService as Y, DynamicIcon as Z, LanguageStateKey as J, NotifierType as Q, ReactErrorBoundary as ee, ReactNotifierProvider as te, ReactUtils as oe, RenderSlot as re, ScrollUtils as ne, SplitPane as ae, UncaughtErrorBoundary as ie, createBusyHandle as se, useCallbackRef as le, useFullscreen as ce, useImperativeElement as de, useKeyboardResize as pe, useLanguage as ue, useMeasure as me, useNotifier as ge, usePersistentState as he, useResolvedThemeMode as fe, useTokenThemeContext as ke, useTranslator as be } from "@sheetxl/utils-react";
10
10
  import ye, { Fragment as we, forwardRef as xe, isValidElement as ve, memo as Ce, useCallback as De, useEffect as Se, useMemo as Te, useRef as Ee, useState as We } from "react";
11
- import { AnimatedLoadingPanel as Fe, AnimatedTraversingEllipsisIcon as Pe, CommandGroup as Ae, ExhibitDivider as Ie, ExhibitFloatProvider as Ne, ExhibitMenuItem as Re, ExhibitTooltip as je, ModalProvider as Oe, SelectedIcon as Me, SimpleTooltip as $e, StackTrace as Le, createExhibitTheme as Be, hideLoadingPanel as _e, lazyModal as Ke, lazyPanel as He, showLoadingPanel as Ve, useInputDialog as ze, useLazyWindow as Ue, useModal as Ge, useOptionsDialog as qe } from "@sheetxl/utils-mui";
11
+ import { AnimatedLoadingPanel as Fe, AnimatedTraversingEllipsisIcon as Pe, CommandGroup as Ae, ExhibitDivider as Ie, ExhibitFloatProvider as Ne, ExhibitMenuItem as Re, ExhibitTooltip as je, ModalProvider as Oe, SelectedIcon as $e, SimpleTooltip as Me, StackTrace as Le, createExhibitTheme as Be, hideLoadingPanel as Ke, lazyModal as _e, lazyPanel as ze, showLoadingPanel as He, useInputDialog as Ve, useLazyWindow as Ue, useModal as Ge, useOptionsDialog as qe } from "@sheetxl/utils-mui";
12
12
  import { Fragment as Xe, jsx as Ye, jsxs as Ze } from "react/jsx-runtime";
13
13
  import { Box as Je, Card as Qe, CardActions as et, Collapse as tt, CssBaseline as ot, DialogTitle as rt, IconButton as nt, Paper as at, SvgIcon as it, Tab as st, Tabs as lt, ThemeProvider as ct, Typography as dt, alpha as pt, useMediaQuery as ut, useTheme as mt } from "@mui/material";
14
14
  import { CommonUtils as gt, DOMUtils as ht, DefaultLanguagePackService as ft, ErrorUtils as kt, ExpectedError as bt, PartialError as yt, defineLazyModule as wt, formatMessage as xt, messageKey as vt, t as Ct } from "@sheetxl/utils";
@@ -22,12 +22,12 @@ var Pt = Object.defineProperty, At = (e, t) => {
22
22
  enumerable: !0
23
23
  });
24
24
  return t || Pt(o, Symbol.toStringTag, { value: "Module" }), o;
25
- }, It = He(wt("studio:conditionalFormatDetailsTaskPane", () => import("./DhPNzztIuq9WJwCz.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), Nt = ["lines"], Rt = /^[A-Za-z_\\][\w.\\]*$/, jt = /^\$?[A-Za-z]{1,3}\$?\d+$/, Ot = (e) => {
25
+ }, It = ze(wt("studio:conditionalFormatDetailsTaskPane", () => import("./Da-N8ynNfqk6THYD.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), Nt = ["lines"], Rt = /^[A-Za-z_\\][\w.\\]*$/, jt = /^\$?[A-Za-z]{1,3}\$?\d+$/, Ot = (e) => {
26
26
  const t = e?.getReferences() ?? null;
27
27
  if (!e || !t || 1 !== t.getCount()) return null;
28
28
  const o = e.getExpression().trim();
29
29
  return Rt.test(o) && !jt.test(o) ? o : t;
30
- }, Mt = {
30
+ }, $t = {
31
31
  card: "_card_h0jnt_7",
32
32
  actionRoot: "_actionRoot_h0jnt_11",
33
33
  icons: "_icons_h0jnt_16",
@@ -37,8 +37,8 @@ var Pt = Object.defineProperty, At = (e, t) => {
37
37
  paper: "_paper_h0jnt_37",
38
38
  checkIcon: "_checkIcon_h0jnt_42",
39
39
  button: "_button_h0jnt_47"
40
- }, $t = Ce(xe((e, t) => {
41
- const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l = ke(), { closeSnackbar: c } = Ft(), [d, p] = We(!1), u = a ? kt.collectErrorChain(a, !0)?.[0]?.error : void 0, m = u && !(u instanceof bt), g = De(() => {
40
+ }, Mt = Ce(xe((e, t) => {
41
+ const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l = be(), { closeSnackbar: c } = Ft(), [d, p] = We(!1), u = a ? kt.collectErrorChain(a, !0)?.[0]?.error : void 0, m = u && !(u instanceof bt), g = De(() => {
42
42
  p((e) => !e);
43
43
  }, []), h = De(() => {
44
44
  c(o);
@@ -46,36 +46,36 @@ var Pt = Object.defineProperty, At = (e, t) => {
46
46
  let f = u?.message;
47
47
  return !f && ve(r) && (f = r), f || "string" != typeof r || (f = r), f || (f = `Unknown Error: ${r}`), Ye(Et, {
48
48
  ref: t,
49
- className: Dt(Mt.root, "error-snackbar"),
49
+ className: Dt($t.root, "error-snackbar"),
50
50
  children: Ze(Qe, {
51
- className: Mt.card,
51
+ className: $t.card,
52
52
  style: {
53
53
  backgroundColor: "var(--sxl-color-error)",
54
54
  color: "var(--sxl-color-error-content)",
55
55
  border: "1px solid var(--sxl-color-error)"
56
56
  },
57
57
  children: [Ze(et, {
58
- className: Mt.actionRoot,
58
+ className: $t.actionRoot,
59
59
  children: [
60
60
  i ? null : n?.error,
61
61
  Ye(dt, {
62
62
  variant: "body2",
63
63
  component: "div",
64
- className: Mt.typography,
64
+ className: $t.typography,
65
65
  children: f
66
66
  }),
67
67
  Ye("div", { style: { flex: "1 1 auto" } }),
68
68
  Ze("div", {
69
- className: Mt.icons,
69
+ className: $t.icons,
70
70
  children: [m ? Ye(nt, {
71
71
  "aria-label": l("toast.showMore"),
72
72
  size: "small",
73
- className: Dt(Mt.expand, { [Mt.expandOpen]: d }),
73
+ className: Dt($t.expand, { [$t.expandOpen]: d }),
74
74
  onClick: g,
75
75
  children: Ye(Z, { iconKey: "ExpandMore" })
76
76
  }) : null, Ye(nt, {
77
77
  size: "small",
78
- className: Mt.expand,
78
+ className: $t.expand,
79
79
  onClick: h,
80
80
  children: Ye(Z, {
81
81
  iconKey: "Close",
@@ -88,7 +88,7 @@ var Pt = Object.defineProperty, At = (e, t) => {
88
88
  in: d,
89
89
  timeout: "auto",
90
90
  children: Ye("div", {
91
- className: Mt.stackTraceContainer,
91
+ className: $t.stackTraceContainer,
92
92
  style: {
93
93
  backgroundColor: "color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))",
94
94
  borderTop: "1px solid var(--sxl-color-error)"
@@ -102,9 +102,9 @@ var Pt = Object.defineProperty, At = (e, t) => {
102
102
  })
103
103
  });
104
104
  }));
105
- $t.displayName = "ToastError";
105
+ Mt.displayName = "ToastError";
106
106
  var Lt = () => {
107
- const e = ke();
107
+ const e = be();
108
108
  return Ye(je, {
109
109
  label: "SheetXL",
110
110
  description: e("logo.description"),
@@ -127,8 +127,8 @@ var Lt = () => {
127
127
  } })
128
128
  })
129
129
  });
130
- }, Bt = Ye(Lt, {}), _t = Ce(xe((e, t) => {
131
- const { workbook: o, className: r, logo: n = Bt, mainElement: a, startElement: i, endElement: s, ...l } = e, [c, { width: d }] = ue(), p = d < 530, u = Ee(null), m = Tt([
130
+ }, Bt = Ye(Lt, {}), Kt = Ce(xe((e, t) => {
131
+ const { workbook: o, className: r, logo: n = Bt, mainElement: a, startElement: i, endElement: s, ...l } = e, [c, { width: d }] = me(), p = d < 530, u = Ee(null), m = Tt([
132
132
  u,
133
133
  c,
134
134
  t
@@ -192,12 +192,12 @@ var Lt = () => {
192
192
  })
193
193
  });
194
194
  }));
195
- _t.displayName = "StudioToolbar";
196
- var Kt = (e, t) => {
195
+ Kt.displayName = "StudioToolbar";
196
+ var _t = (e, t) => {
197
197
  const o = new URL(window.location.pathname, window.location.origin);
198
198
  e && o.searchParams.set("source", e), e && t && o.searchParams.set("title", t), window.open(o.toString(), "sheetxl-" + gt.uuidV4(), "popup=true");
199
199
  };
200
- function Ht(e, t) {
200
+ function zt(e, t) {
201
201
  const { workbook: o, setWorkbook: r, workbookTitle: n = "export", isDirty: a, notifier: i, refSave: s } = t;
202
202
  let l = !1;
203
203
  const c = async (e = null, t = null, o = null) => {
@@ -303,7 +303,7 @@ function Ht(e, t) {
303
303
  e?.source ? t && p ? await p({
304
304
  url: e.source,
305
305
  title: e.title
306
- }) : Kt(e.source, e.title) : t ? r({}) : Kt();
306
+ }) : _t(e.source, e.title) : t ? r({}) : _t();
307
307
  } }), e.updateCommand("closeWorkbook", { callback: async () => {
308
308
  a() && "Close" !== await i.showOptions({
309
309
  title: Ct("dialog.confirm.title"),
@@ -462,9 +462,9 @@ function Ht(e, t) {
462
462
  l = !0, s && (s.current = null);
463
463
  };
464
464
  }
465
- var Vt = Ke(wt("studio:shortcutKeysDialog", () => import("./1gdwmt5CrQy4cGTH.mjs")).load);
465
+ var Ht = _e(wt("studio:shortcutKeysDialog", () => import("./C7fI-BqM4p4WJS0l.mjs")).load);
466
466
  w(), v();
467
- var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
467
+ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
468
468
  const t = (e) => {
469
469
  if ("function" != typeof e) return e;
470
470
  try {
@@ -476,7 +476,7 @@ var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
476
476
  const r = t(e);
477
477
  return "string" == typeof r ? xt(r, o, ft.getActive()) : void 0;
478
478
  }, r = [];
479
- for (const n of e.names()) if (!zt.has(n)) for (const a of e.keys(n)) {
479
+ for (const n of e.names()) if (!Vt.has(n)) for (const a of e.keys(n)) {
480
480
  const i = e.resolveDefinition(n, a);
481
481
  r.push({
482
482
  groupKey: n,
@@ -492,12 +492,12 @@ var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
492
492
  }
493
493
  return { getAllCommands: () => r };
494
494
  }, Gt = (e) => {
495
- const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = X.useCommandScope(), c = me(), { showModal: d } = Ge(), p = ke(), u = Ee(a);
495
+ const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = X.useCommandScope(), c = ge(), { showModal: d } = Ge(), p = be(), u = Ee(a);
496
496
  u.current = a;
497
497
  const m = le(() => {
498
498
  const e = l?.getRoot().getRegistry();
499
499
  if (!e) return;
500
- const t = d(Vt, {
500
+ const t = d(Ht, {
501
501
  title: p("dialog.shortcutKeys.title"),
502
502
  commands: Ut(e),
503
503
  onDone: () => t.hide(),
@@ -522,7 +522,7 @@ var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
522
522
  } });
523
523
  }(e, { showShortcuts: m }), () => e.remove();
524
524
  }, [l, m]);
525
- const g = ut("(prefers-color-scheme: dark)"), { themeMode: h } = he(), [f, k] = ge(N.Mode, I[N.Mode]), [b, y] = ge(N.DarkGrid, I[N.DarkGrid]), [w, x] = ge(N.DarkImages, I[N.DarkImages]);
525
+ const g = ut("(prefers-color-scheme: dark)"), { themeMode: h } = fe(), [f, k] = he(N.Mode, I[N.Mode]), [b, y] = he(N.DarkGrid, I[N.DarkGrid]), [w, x] = he(N.DarkImages, I[N.DarkImages]);
526
526
  Se(() => {
527
527
  if (!l) return;
528
528
  const e = l.getRoot().contribution();
@@ -564,7 +564,7 @@ var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
564
564
  y,
565
565
  x
566
566
  ]);
567
- const [v, C] = ge(J.Active, null), [D, S] = We(() => ft.getActive());
567
+ const [v, C] = he(J.Active, null), [D, S] = We(() => ft.getActive());
568
568
  Se(() => ft.addChangeListener(S), []), Se(() => {
569
569
  v && v !== ft.getActive() && ft.setActive(v);
570
570
  }, [v]), Se(() => {
@@ -612,7 +612,7 @@ var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
612
612
  W,
613
613
  F
614
614
  ]);
615
- const P = z(!0);
615
+ const P = V(!0);
616
616
  return Se(() => {
617
617
  if (!l) return;
618
618
  const e = l.getRoot().contribution();
@@ -626,7 +626,7 @@ var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
626
626
  }(e, (e, t) => P.activate(e, t)), () => e.remove();
627
627
  }, [l, P]), Se(() => {
628
628
  if (!l || !o) return;
629
- const e = l.getRoot().contribution(), t = Ht(e, {
629
+ const e = l.getRoot().contribution(), t = zt(e, {
630
630
  workbook: o,
631
631
  setWorkbook: r,
632
632
  workbookTitle: n ?? void 0,
@@ -648,7 +648,7 @@ var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
648
648
  };
649
649
  Gt.displayName = "StudioCommandProvider";
650
650
  var qt = ({ renderWorkbook: e }) => {
651
- const t = X.useCommandResolver(), o = Ee(null), r = ke(), [n, a] = We(null), i = De((e) => {
651
+ const t = X.useCommandResolver(), o = Ee(null), r = be(), [n, a] = We(null), i = De((e) => {
652
652
  const o = e.dataTransfer;
653
653
  if (t && o) {
654
654
  if ("dragenter" === e.type || "dragover" === e.type) {
@@ -768,24 +768,26 @@ var qt = ({ renderWorkbook: e }) => {
768
768
  });
769
769
  Xt.displayName = "CommandsWrapper";
770
770
  var Yt = {
771
- sort: wt("studio:sortDialog", () => import("./rpHmm4X81z1orjHr.mjs")).load,
772
- hyperlink: wt("studio:hyperlinkDialog", () => import("./Bm054Lh36PSa5m1P.mjs")).load,
773
- find: wt("studio:findReplaceWindow", () => import("./BTOCej61y3MazK6r.mjs")).load,
774
- tableNew: wt("studio:tableNewDialog", () => import("./4pRKBhUYhbbE6qVT.mjs")).load,
775
- pivotTableNew: wt("studio:pivotTableNewDialog", () => import("./BzT_zks-KORaryRo.mjs")).load,
776
- namedDetails: wt("studio:namedReferenceDialog", () => import("./DYNM5HfUK0JbGHsx.mjs")).load,
777
- insertFunction: wt("studio:insertFunctionDialog", () => import("./-Il_piuBrbndDROB.mjs")).load,
778
- resizeHeader: wt("studio:resizeHeaderDialog", () => import("./cl-bDkq8M4STBYJy.mjs")).load,
779
- outlineSettings: wt("studio:outlineSettingsDialog", () => import("./klLaIOeBuqaYuz_q.mjs")).load,
780
- fillSeries: wt("studio:fillSeriesDialog", () => import("./CsQTJ4JQRxLcJDiZ.mjs")).load,
781
- workbookStatistics: wt("studio:workbookStatisticsDialog", () => import("./BZu-8gEXwIzW_YX9.mjs")).load,
782
- password: wt("studio:passwordDialog", () => import("./BIJXqUbAalnd-gXD.mjs")).load,
783
- pivotValueSettings: wt("studio:pivotValueSettingsDialog", () => import("./D3TsBlOewIFj-VDW.mjs")).load
771
+ sort: wt("studio:sortDialog", () => import("./DGv981h_d8G1Z3Zs.mjs")).load,
772
+ hyperlink: wt("studio:hyperlinkDialog", () => import("./CBQ1hoazyQvlpJyI.mjs")).load,
773
+ find: wt("studio:findReplaceWindow", () => import("./CFjes3wFNTOeB90c.mjs")).load,
774
+ tableNew: wt("studio:tableNewDialog", () => import("./HLmlUPOPJh0q9Uym.mjs")).load,
775
+ pivotTableNew: wt("studio:pivotTableNewDialog", () => import("./DZYhnjts845P5iUY.mjs")).load,
776
+ sparklineNew: wt("studio:sparklineNewDialog", () => import("./B4sLVPEb397EGucl.mjs")).load,
777
+ sparklineEdit: wt("studio:sparklineEditDialog", () => import("./CUtSgTUW09Qh72ST.mjs")).load,
778
+ namedDetails: wt("studio:namedReferenceDialog", () => import("./CLEK4zGd0mIKhiKV.mjs")).load,
779
+ insertFunction: wt("studio:insertFunctionDialog", () => import("./CqYMLDeBPC2rGTWV.mjs")).load,
780
+ resizeHeader: wt("studio:resizeHeaderDialog", () => import("./DefzzmrMXN21wmmy.mjs")).load,
781
+ outlineSettings: wt("studio:outlineSettingsDialog", () => import("./By_evGE-PBrgdKI6.mjs")).load,
782
+ fillSeries: wt("studio:fillSeriesDialog", () => import("./DyRNwCwOwz60vRGA.mjs")).load,
783
+ workbookStatistics: wt("studio:workbookStatisticsDialog", () => import("./DiAOxoMTibKoi4gs.mjs")).load,
784
+ password: wt("studio:passwordDialog", () => import("./reyCfp4xOOgMNc9U.mjs")).load,
785
+ pivotValueSettings: wt("studio:pivotValueSettingsDialog", () => import("./CNZKUMbD_hGSw6do.mjs")).load
784
786
  }, Zt = ["find"], Jt = Ce((e) => {
785
787
  const { children: t } = e, o = Ft(), r = o ? o.enqueueSnackbar : () => {}, n = o ? o.closeSnackbar : () => {}, a = Ee(/* @__PURE__ */ new Set()), i = Ee(null), s = Ee(null), [l, c] = We({
786
788
  label: null,
787
789
  progress: null
788
- }), d = ke(), p = gt.EmptyObject, u = Ue(p), m = qe(p), g = ze(p), h = Ee(!1);
790
+ }), d = be(), p = gt.EmptyObject, u = Ue(p), m = qe(p), g = Ve(p), h = Ee(!1);
789
791
  Se(() => {
790
792
  if (h.current) return;
791
793
  h.current = !0;
@@ -825,7 +827,7 @@ var Yt = {
825
827
  label: e
826
828
  });
827
829
  const r = se(() => {
828
- a.current.delete(o) && (a.current.size > 0 || (_e(i.current), s.current = null, c((e) => null === e.label && null === e.progress ? e : {
830
+ a.current.delete(o) && (a.current.size > 0 || (Ke(i.current), s.current = null, c((e) => null === e.label && null === e.progress ? e : {
829
831
  label: null,
830
832
  progress: null
831
833
  })));
@@ -836,11 +838,11 @@ var Yt = {
836
838
  progress: o
837
839
  });
838
840
  }, (e) => {
839
- s.current = e, "string" == typeof e ? Ve(i.current, e) : c((t) => ({
841
+ s.current = e, "string" == typeof e ? He(i.current, e) : c((t) => ({
840
842
  ...t,
841
843
  label: e
842
844
  }));
843
- }), n = Ve(i.current, "string" == typeof e ? e : void 0);
845
+ }), n = He(i.current, "string" == typeof e ? e : void 0);
844
846
  return n ? n.then(() => r) : r;
845
847
  },
846
848
  showWindow: (e, t) => {
@@ -889,7 +891,7 @@ var Yt = {
889
891
  });
890
892
  Jt.displayName = "StudioNotifierProvider";
891
893
  var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", eo = Ce(xe((e, t) => {
892
- const { children: o, title: r, taskPanes: n, onSelect: a, selected: i, registry: s = S, style: l, iconsOnly: c, side: d = "right", className: p, ...u } = e, m = "right" !== d, g = pe(), h = Te(() => n.map((t) => {
894
+ const { children: o, title: r, taskPanes: n, onSelect: a, selected: i, registry: s = S, style: l, iconsOnly: c, side: d = "right", className: p, ...u } = e, m = "right" !== d, g = ue(), h = Te(() => n.map((t) => {
893
895
  const o = s.getRegisteredTaskPane(t);
894
896
  if (!o) return null;
895
897
  let r = o.getIcon?.();
@@ -930,7 +932,7 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
930
932
  });
931
933
  return Ye(st, {
932
934
  value: t,
933
- label: Ye($e, {
935
+ label: Ye(Me, {
934
936
  disableInteractive: !0,
935
937
  title: o.getTitle() ?? "",
936
938
  placement: "left-start",
@@ -995,7 +997,7 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
995
997
  })
996
998
  });
997
999
  })), to = (e) => {
998
- const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s = Ee(null), l = ke();
1000
+ const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s = Ee(null), l = be();
999
1001
  return Ye(rt, {
1000
1002
  className: Dt({ "Mui-selected": a }),
1001
1003
  sx: {
@@ -1077,7 +1079,7 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1077
1079
  display: "flex",
1078
1080
  boxSizing: "border-box"
1079
1081
  }, io = Ce(xe((e, t) => {
1080
- const { mainElement: o, sidebarElement: r, position: n, persistKey: a, onPositionChange: i, className: s, style: l, taskSide: c = "right", ...d } = e, [p, u] = ge(a ?? null, no), m = mt(), [g, { width: h }] = ue(), f = h > 530 || 0 === h, k = Ee(null);
1082
+ const { mainElement: o, sidebarElement: r, position: n, persistKey: a, onPositionChange: i, className: s, style: l, taskSide: c = "right", ...d } = e, [p, u] = he(a ?? null, no), m = mt(), [g, { width: h }] = me(), f = h > 530 || 0 === h, k = Ee(null);
1081
1083
  let b, y, w = null, x = 4, v = 13;
1082
1084
  f ? w = "m 3.6261898,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.8836498,0 -1.60004965,-0.71626 -1.60004965,-1.59991 0,-0.88365 0.71639985,-1.6000508 1.60004965,-1.6000508 0.88364,0 1.59991,0.7164008 1.59991,1.6000508 m 0,-4.881294 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 -0.8836498,0 -1.60004965,-0.7164 -1.60004965,-1.60004 0,-0.88365 0.71639985,-1.60005 1.60004965,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-4.881226 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 1.14263,3.19996 0.42623015,2.48356 0.42623015,1.59991 0.42623015,0.71626 1.14263,0 2.0262798,0 c 0.88364,0 1.59991,0.71626 1.59991,1.59991" : (w = "M 1.59991,3.62619 C 0.71626,3.62619 0,2.90992 0,2.02628 0,1.1426301 0.71626,0.42623015 1.59991,0.42623015 c 0.88365,0 1.6000508,0.71639995 1.6000508,1.60004985 0,0.88364 -0.7164008,1.59991 -1.6000508,1.59991 m 4.881294,0 c -0.88364,0 -1.60004,-0.71627 -1.60004,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60004,-1.60004985 0.88365,0 1.60005,0.71639995 1.60005,1.60004985 0,0.88364 -0.7164,1.59991 -1.60005,1.59991 m 4.881226,0 c -0.88365,0 -1.60005,-0.71627 -1.60005,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60005,-1.60004985 0.88365,0 1.59991,0.71639995 1.59991,1.60004985 0,0.88364 -0.71626,1.59991 -1.59991,1.59991", x = 13, v = 4);
1083
1085
  let C, D = o, S = r;
@@ -1184,13 +1186,13 @@ var so = () => Ye("div", { style: {
1184
1186
  "aria-checked": e.checked,
1185
1187
  disabled: e.disabled,
1186
1188
  selected: e.checked,
1187
- icon: e.checked ? Ye(Me, {}) : void 0,
1189
+ icon: e.checked ? Ye($e, {}) : void 0,
1188
1190
  onClick: e.run,
1189
1191
  children: e.label
1190
1192
  }, e.key))] }, t))
1191
1193
  });
1192
1194
  }, po = (e) => Ye(co, { ...e }), uo = (e) => {
1193
- const { pivot: t, name: o, source: r, onError: n } = e, s = ke(), l = t.getWorksheet(), c = l.getProtection().isLocked(), d = Te(() => ({ scope: l.getName() }), [l]), p = le((e, o) => {
1195
+ const { pivot: t, name: o, source: r, onError: n } = e, s = be(), l = t.getWorksheet(), c = l.getProtection().isLocked(), d = Te(() => ({ scope: l.getName() }), [l]), p = le((e, o) => {
1194
1196
  "accept" === o.reason && e !== t.getName() && t.setName(e).catch(n);
1195
1197
  }, [t, n]), u = le((e) => {
1196
1198
  if (0 === e.length || e.length > 255) throw new bt(s("error.pivotTable.nameInvalid"));
@@ -1238,7 +1240,7 @@ var so = () => Ye("div", { style: {
1238
1240
  renderFilter: g,
1239
1241
  renderHeader: mo,
1240
1242
  ...e
1241
- }), ho = He(wt("studio:dataValidationDetailsTaskPane", () => import("./D4TlOO7hjvqTR2HX.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), fo = At({
1243
+ }), ho = ze(wt("studio:dataValidationDetailsTaskPane", () => import("./2J7fdwNic7JOS8e6.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), fo = At({
1242
1244
  EagerStudio: () => wo,
1243
1245
  default: () => wo
1244
1246
  });
@@ -1257,7 +1259,7 @@ d(), S.registerTaskPane({
1257
1259
  }, {
1258
1260
  order: -1,
1259
1261
  divider: "after"
1260
- }), L("shape", () => import("./9qIZWfzxSaxNk6Cm.mjs").then((e) => e.ShapeFormatPanel)), L("chart", () => import("./BX1cTEV3SpcqLcXx.mjs").then((e) => e.ChartFormatPanel)), B("picture", {
1262
+ }), L("shape", () => import("./rLsP_BPGB2QEWTs8.mjs").then((e) => e.ShapeFormatPanel)), L("chart", () => import("./t1e3-saAZc_bj152.mjs").then((e) => e.ChartFormatPanel)), B("picture", {
1261
1263
  key: "changePictureOptions",
1262
1264
  defaultKey: "changePictureFromFile",
1263
1265
  members: ["changePictureFromFile", "changePictureFromURL"]
@@ -1336,123 +1338,122 @@ var ko = () => {
1336
1338
  const { colorSchemes: o, ...r } = e, n = o?.[t ? "dark" : "light"];
1337
1339
  return n && "object" == typeof n ? gt.deepMerge(r, n) : r;
1338
1340
  }, yo = "taskPanePosition", wo = Ce(xe((e, t) => {
1339
- const { host: r, scopeClass: n, square: a, elevation: i, variant: s, onWorkbookLoad: l, prefetch: c, onDocumentError: d, renderDocumentError: g = k, propsDocumentError: f, propsTaskPaneArea: y, renderTaskPaneArea: w = xo, taskPaneSide: x = "right", onKeyDown: v, workbook: D, onWorkbookChange: S, logo: T, topLeft: E, topRight: W, muiTheme: P, tokens: L, cssBaseline: B, autoFocus: z = !1, title: Q, onDirtyChange: te, propsDocumentTitle: ae, renderDocumentLoading: se = b, propsDocumentLoading: ce, propsWorkbook: pe, showFormulaBar: ue, propsFormulaBar: me, renderFormulaBar: ke, formulaBarPlacement: ye, manageVisualViewport: we = !0, editable: xe, showStatusBar: ve, propsStatusBar: Ce, renderStatusBar: Fe, propsToolbar: Pe, renderToolbar: Ie } = e, Re = Ee(null), je = Ee(null), Me = Ee(null), $e = le(() => {
1340
- Me.current?.getNamedCollectionEditorElement?.()?.focus?.();
1341
- }, []), Le = ((e, t = "undefined" == typeof window ? "mouse" : oe.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(ye), _e = "bottom" === Le && we, Ke = be(_e), He = Ke ? Math.max(0, Math.round(window.innerHeight - Ke.height)) : 0, Ve = Ke ? Math.round(Ke.offsetTop) : 0, ze = Ke?.height;
1342
- Se(() => {
1343
- _e && void 0 !== ze && (0 === window.scrollX && 0 === window.scrollY || window.scrollTo(0, 0));
1344
- }, [_e, ze]);
1345
- const Ue = le(d ?? (() => {}), [d]), Ge = le(te ?? (() => {}), [te]), qe = ae?.placeHolder, [Xe] = ge(N.Mode, I[N.Mode]), { themeMode: Qe } = he({ mode: Xe ?? void 0 }), [et] = ge(J.Active, null), tt = Ee(et);
1346
- tt.current = et;
1347
- const rt = fe(), nt = Te(() => ({
1348
- light: Be(!1, gt.deepMerge(bo(P, !1), C(rt?.light))),
1349
- dark: Be(!0, gt.deepMerge(bo(P, !0), C(rt?.dark)))
1341
+ const { host: r, scopeClass: n, square: a, elevation: i, variant: s, onWorkbookLoad: l, prefetch: c, onDocumentError: d, renderDocumentError: g = k, propsDocumentError: f, propsTaskPaneArea: y, renderTaskPaneArea: w = xo, taskPaneSide: x = "right", onKeyDown: v, workbook: D, onWorkbookChange: S, logo: T, topLeft: E, topRight: W, muiTheme: P, tokens: L, cssBaseline: B, autoFocus: V = !1, title: Q, onDirtyChange: te, propsDocumentTitle: ae, renderDocumentLoading: se = b, propsDocumentLoading: ce, propsWorkbook: ue, showFormulaBar: me, propsFormulaBar: ge, renderFormulaBar: be, formulaBarPlacement: ye, virtualKeyboard: we = "float", editable: xe, showStatusBar: ve, propsStatusBar: Ce, renderStatusBar: Fe, propsToolbar: Pe, renderToolbar: Ie } = e, Re = Ee(null), je = Ee(null), $e = Ee(null), Me = le(() => {
1342
+ $e.current?.getNamedCollectionEditorElement?.()?.focus?.();
1343
+ }, []), Le = ((e, t = "undefined" == typeof window ? "mouse" : oe.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(ye), Ke = "bottom" === Le ? we : "none", { inset: _e, offsetTop: ze } = pe("resize" === Ke), He = le(d ?? (() => {}), [d]), Ve = le(te ?? (() => {}), [te]), Ue = ae?.placeHolder, [Ge] = he(N.Mode, I[N.Mode]), { themeMode: qe } = fe({ mode: Ge ?? void 0 }), [Xe] = he(J.Active, null), Qe = Ee(Xe);
1344
+ Qe.current = Xe;
1345
+ const et = ke(), tt = Te(() => ({
1346
+ light: Be(!1, gt.deepMerge(bo(P, !1), C(et?.light))),
1347
+ dark: Be(!0, gt.deepMerge(bo(P, !0), C(et?.dark)))
1350
1348
  }), [
1351
1349
  P,
1352
- rt?.light,
1353
- rt?.dark
1354
- ]), st = "dark" === Qe, lt = Te(() => u(nt.light, nt.dark, `.${n}`, L), [
1355
- nt,
1350
+ et?.light,
1351
+ et?.dark
1352
+ ]), rt = "dark" === qe, nt = Te(() => u(tt.light, tt.dark, `.${n}`, L), [
1353
+ tt,
1356
1354
  n,
1357
1355
  L
1358
- ]), dt = Te(() => O("sxl-defaults", `.${n}`), [n]), pt = _(), [ut, mt] = We(() => D ?? null);
1356
+ ]), st = Te(() => O("sxl-defaults", `.${n}`), [n]), lt = K(), [dt, pt] = We(() => D ?? null);
1359
1357
  Se(() => {
1360
- mt(D ?? null);
1358
+ pt(D ?? null);
1361
1359
  }, [D]);
1362
- const [ht, kt] = We(0), bt = Ee(null);
1363
- bt.current || (bt.current = ko());
1364
- const yt = V(ut, {
1360
+ const [ut, mt] = We(0), ht = Ee(null);
1361
+ ht.current || (ht.current = ko());
1362
+ const kt = H(dt, {
1365
1363
  io: R,
1366
- defaultTheme: pt.getDefaultTheme(),
1367
- reloadKey: ht
1368
- }), wt = "loaded" === yt.status ? yt.workbook : null, xt = Te(() => "error" === yt.status ? {
1364
+ defaultTheme: lt.getDefaultTheme(),
1365
+ reloadKey: ut
1366
+ }), bt = "loaded" === kt.status ? kt.workbook : null, yt = Te(() => "error" === kt.status ? {
1369
1367
  status: "error",
1370
- error: yt.error
1371
- } : "loaded" === yt.status ? {
1368
+ error: kt.error
1369
+ } : "loaded" === kt.status ? {
1372
1370
  status: "loaded",
1373
- workbook: yt.workbook
1374
- } : { status: "loading" }, [yt]);
1371
+ workbook: kt.workbook
1372
+ } : { status: "loading" }, [kt]);
1375
1373
  Se(() => {
1376
- bt.current.settled && (bt.current = ko());
1377
- }, [ut, ht]), Se(() => {
1378
- if ("loaded" === xt.status) {
1379
- const e = bt.current, t = xt.workbook;
1374
+ ht.current.settled && (ht.current = ko());
1375
+ }, [dt, ut]), Se(() => {
1376
+ if ("loaded" === yt.status) {
1377
+ const e = ht.current, t = yt.workbook;
1380
1378
  t.whenFontsReady().then(() => e.resolve(t), () => e.resolve(t));
1381
- } else "error" === xt.status && (Ue?.(xt.error), bt.current.reject(xt.error));
1382
- }, [xt]);
1383
- const [vt, Ct] = We(null);
1384
- wt && !vt && Ct(wt);
1385
- const Dt = wt && vt && wt !== vt ? wt : null, Tt = Ee(Dt);
1386
- Tt.current = Dt;
1387
- const Et = Ee(vt);
1388
- Et.current = vt;
1389
- const Ft = Ee([]), Pt = De((e) => {
1390
- const t = Et.current;
1391
- t && Ft.current.push(t), mt(e);
1379
+ } else "error" === yt.status && (He?.(yt.error), ht.current.reject(yt.error));
1380
+ }, [yt]);
1381
+ const [wt, xt] = We(null);
1382
+ bt && !wt && xt(bt);
1383
+ const vt = bt && wt && bt !== wt ? bt : null, Ct = Ee(vt);
1384
+ Ct.current = vt;
1385
+ const Dt = Ee(wt);
1386
+ Dt.current = wt;
1387
+ const Tt = Ee([]), Et = De((e) => {
1388
+ const t = Dt.current;
1389
+ t && Tt.current.push(t), pt(e);
1392
1390
  }, []);
1393
1391
  Se(() => {
1394
- const e = Ft.current;
1392
+ const e = Tt.current;
1395
1393
  if (0 !== e.length) {
1396
- Ft.current = e.filter((e) => e === vt);
1394
+ Tt.current = e.filter((e) => e === wt);
1397
1395
  for (let t = 0; t < e.length; t++) {
1398
1396
  const o = e[t];
1399
- if (o !== vt) try {
1397
+ if (o !== wt) try {
1400
1398
  o.close();
1401
1399
  } catch (e) {
1402
1400
  console.warn("Unable to close the replaced workbook", e);
1403
1401
  }
1404
1402
  }
1405
1403
  }
1406
- }, [vt]);
1407
- const At = xe ? null : vt, It = H(), Nt = Te(() => {
1408
- const e = At?.getSelectedWorksheet() ?? At?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
1409
- return e ? M(e, { referenceMode: It }) : null;
1410
- }, [At, It]), Rt = xe ?? Nt, jt = Ee(Rt);
1411
- jt.current = Rt, Se(() => {
1412
- if (!Rt) return;
1413
- let e = Rt.getSession();
1414
- return Rt.subscribe(() => {
1404
+ }, [wt]);
1405
+ const Ft = xe ? null : wt, Pt = z(), At = Te(() => {
1406
+ const e = Ft?.getSelectedWorksheet() ?? Ft?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
1407
+ return e ? $(e, { referenceMode: Pt }) : null;
1408
+ }, [Ft, Pt]), It = xe ?? At, Nt = Ee(It);
1409
+ Nt.current = It, Se(() => {
1410
+ if (!It) return;
1411
+ let e = It.getSession();
1412
+ return It.subscribe(() => {
1415
1413
  const t = e;
1416
- e = Rt.getSession(), t && !e && "formula-bar" === t.getActiveEditorId() && Me.current?.contains?.(document.activeElement) && Re.current?.focus();
1414
+ if (e = It.getSession(), !t || e) return;
1415
+ if ("formula-bar" !== t.getActiveEditorId()) return;
1416
+ const o = $e.current;
1417
+ (o?.isFocusWithin?.() ?? o?.contains?.(document.activeElement)) && Re.current?.focus();
1417
1418
  });
1418
- }, [Rt]);
1419
- const Ot = G(vt), { isDirty: Mt, saveState: Lt } = q(vt, R), Bt = U(vt), Kt = Ee(Lt), Ht = Ee(null);
1420
- Kt.current = Lt;
1421
- const Vt = De(() => Kt.current?.isDirty() ?? !1, []), zt = Ee(xt);
1422
- zt.current = xt;
1423
- const [Ut, Gt] = We(null), qt = Q ?? ae?.title, [Yt, Zt] = We(null);
1419
+ }, [It]);
1420
+ const Rt = G(wt), { isDirty: jt, saveState: Ot } = q(wt, R), $t = U(wt), Lt = Ee(Ot), Bt = Ee(null);
1421
+ Lt.current = Ot;
1422
+ const _t = De(() => Lt.current?.isDirty() ?? !1, []), zt = Ee(yt);
1423
+ zt.current = yt;
1424
+ const [Ht, Vt] = We(null), Ut = Q ?? ae?.title, [Gt, qt] = We(null);
1424
1425
  Se(() => {
1425
- Zt(null);
1426
- }, [vt]);
1427
- const Qt = qt ?? Yt ?? Ot ?? "";
1426
+ qt(null);
1427
+ }, [wt]);
1428
+ const Yt = Ut ?? Gt ?? Rt ?? "";
1428
1429
  Se(() => {
1429
- Ge?.(Mt);
1430
- }, [Mt]);
1431
- const eo = le(S ?? (() => {}), [S]);
1430
+ Ve?.(jt);
1431
+ }, [jt]);
1432
+ const Zt = le(S ?? (() => {}), [S]);
1432
1433
  Se(() => {
1433
- eo?.(wt);
1434
- }, [wt]);
1435
- const to = Ee(wt);
1436
- to.current = wt, K(vt, "onViewChange");
1437
- const oo = Te(() => Ye(Ae, {
1434
+ Zt?.(bt);
1435
+ }, [bt]);
1436
+ const Qt = Ee(bt);
1437
+ Qt.current = bt, _(wt, "onViewChange");
1438
+ const eo = Te(() => Ye(Ae, {
1438
1439
  groupKey: "helpOptions",
1439
1440
  disableHover: !0,
1440
1441
  sx: { padding: "0" },
1441
1442
  propsButton: { sx: { maxHeight: "22px" } }
1442
- }), []), [ro, no] = We(null), ao = De((e) => {
1443
- no(e);
1443
+ }), []), [to, oo] = We(null), ro = De((e) => {
1444
+ oo(e);
1444
1445
  }, []);
1445
1446
  Se(() => {
1446
1447
  Y.prefetch([Y.getActive(), F]).catch((e) => {
1447
1448
  console.warn("Icons could not be loaded:", e);
1448
1449
  });
1449
1450
  }, []);
1450
- const so = Ee(null);
1451
- so.current || (so.current = ko());
1452
- const co = Ee(null), po = De(() => co.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? so.current.promise, []), uo = le(async (e) => {
1453
- const t = tt.current;
1454
- t && t !== ft.getActive() && await ft.setActive(t), await X.DefaultCommandCatalogService.prefetch(t ?? void 0), Gt(e), co.current = e.source, so.current.settled || so.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
1455
- }, []), mo = Ee(null), go = De((e) => {
1451
+ const no = Ee(null);
1452
+ no.current || (no.current = ko());
1453
+ const ao = Ee(null), so = De(() => ao.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? no.current.promise, []), co = le(async (e) => {
1454
+ const t = Qe.current;
1455
+ t && t !== ft.getActive() && await ft.setActive(t), await X.DefaultCommandCatalogService.prefetch(t ?? void 0), Vt(e), ao.current = e.source, no.current.settled || no.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
1456
+ }, []), po = Ee(null), uo = De((e) => {
1456
1457
  let t = null, r = {
1457
1458
  readOnly: !0,
1458
1459
  ...ae
@@ -1464,15 +1465,15 @@ var ko = () => {
1464
1465
  ...ae?.style
1465
1466
  },
1466
1467
  workbook: e.workbook ?? Re.current,
1467
- ref: mo,
1468
- title: Qt,
1469
- modified: Mt,
1470
- encrypted: Bt,
1471
- placeHolder: qe,
1468
+ ref: po,
1469
+ title: Yt,
1470
+ modified: jt,
1471
+ encrypted: $t,
1472
+ placeHolder: Ue,
1472
1473
  onTitleChange: (e) => {
1473
- Zt(e), ae?.onTitleChange?.(e);
1474
+ qt(e), ae?.onTitleChange?.(e);
1474
1475
  }
1475
- })), Ye(_t, {
1476
+ })), Ye(Kt, {
1476
1477
  ...e,
1477
1478
  logo: T,
1478
1479
  mainElement: t,
@@ -1481,9 +1482,9 @@ var ko = () => {
1481
1482
  });
1482
1483
  }, [
1483
1484
  T,
1484
- Qt,
1485
- Mt,
1486
- Bt,
1485
+ Yt,
1486
+ jt,
1487
+ $t,
1487
1488
  ae,
1488
1489
  E,
1489
1490
  W
@@ -1497,12 +1498,12 @@ var ko = () => {
1497
1498
  return e.addEventListener("wheel", t, { passive: !1 }), () => {
1498
1499
  e.removeEventListener("wheel", t);
1499
1500
  };
1500
- }, [Ut]);
1501
- const [ho, fo] = We(null);
1501
+ }, [Ht]);
1502
+ const [mo, go] = We(null);
1502
1503
  Se(() => {
1503
- fo(Ut?.source?.getCommandScope?.() ?? null);
1504
- }, [Ut]);
1505
- const wo = Te(() => ({
1504
+ go(Ht?.source?.getCommandScope?.() ?? null);
1505
+ }, [Ht]);
1506
+ const ho = Te(() => ({
1506
1507
  "& .SnackbarContainer-root": { position: "absolute !important" },
1507
1508
  "& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
1508
1509
  "& .notistack-Snackbar": { minWidth: "unset" },
@@ -1515,46 +1516,46 @@ var ko = () => {
1515
1516
  whiteSpace: "pre-wrap"
1516
1517
  },
1517
1518
  "*": { userSelect: "none" }
1518
- }), []), [vo, Co] = We(null), [, Do] = ge(null, !1);
1519
+ }), []), [fo, wo] = We(null), [, vo] = he(null, !1);
1519
1520
  Se(() => {
1520
- Do(null != vo);
1521
- }, [vo, Do]);
1522
- const So = De((e) => w({
1523
- model: vt,
1521
+ vo(null != fo);
1522
+ }, [fo, vo]);
1523
+ const Co = De((e) => w({
1524
+ model: wt,
1524
1525
  side: x,
1525
1526
  ...e,
1526
1527
  ...y
1527
1528
  }), [
1528
- vt,
1529
+ wt,
1529
1530
  x,
1530
1531
  y
1531
- ]), To = Ee(r);
1532
- To.current = r, de(t, () => ({
1532
+ ]), Do = Ee(r);
1533
+ Do.current = r, de(t, () => ({
1533
1534
  isStudioElement: () => !0,
1534
1535
  save: (e) => {
1535
- const t = Ht.current;
1536
+ const t = Bt.current;
1536
1537
  return t ? t(e) : Promise.reject(/* @__PURE__ */ new Error("The studio cannot save: no workbook, or the backing store cannot write."));
1537
1538
  },
1538
1539
  getWorkbookElement: () => Re.current,
1539
- getWorkbook: () => to.current ?? null,
1540
- isDirty: () => Kt.current?.isDirty() ?? !1,
1541
- getEditable: () => jt.current,
1542
- getFormulaBarElement: () => Me.current ?? null,
1540
+ getWorkbook: () => Qt.current ?? null,
1541
+ isDirty: () => Lt.current?.isDirty() ?? !1,
1542
+ getEditable: () => Nt.current,
1543
+ getFormulaBarElement: () => $e.current ?? null,
1543
1544
  focus: () => Re.current?.focus(),
1544
- whenReady: () => (bt.current || (bt.current = ko()), bt.current.promise),
1545
+ whenReady: () => (ht.current || (ht.current = ko()), ht.current.promise),
1545
1546
  getWorkbookState: () => zt.current,
1546
- retry: () => kt((e) => e + 1)
1547
+ retry: () => mt((e) => e + 1)
1547
1548
  }), [], r);
1548
- const Eo = Ee(!1), Wo = le((e, t) => {
1549
- t === Tt.current && requestAnimationFrame(() => requestAnimationFrame(() => {
1550
- t === Tt.current && (Eo.current = To.current?.contains(document.activeElement) ?? !0, Ct(t), uo(e));
1549
+ const So = Ee(!1), To = le((e, t) => {
1550
+ t === Ct.current && requestAnimationFrame(() => requestAnimationFrame(() => {
1551
+ t === Ct.current && (So.current = Do.current?.contains(document.activeElement) ?? !0, xt(t), co(e));
1551
1552
  }));
1552
1553
  }, []);
1553
1554
  Se(() => {
1554
- Eo.current && (Eo.current = !1, Re.current?.focus());
1555
- }, [vt]);
1556
- const Fo = De((e) => {
1557
- const { ref: t, ...o } = e, r = st ? nt.dark : nt.light, n = "error" === xt.status && g ? Ye(re, {
1555
+ So.current && (So.current = !1, Re.current?.focus());
1556
+ }, [wt]);
1557
+ const Eo = De((e) => {
1558
+ const { ref: t, ...o } = e, r = rt ? tt.dark : tt.light, n = "error" === yt.status && g ? Ye(re, {
1558
1559
  render: g,
1559
1560
  props: {
1560
1561
  ...f,
@@ -1563,10 +1564,10 @@ var ko = () => {
1563
1564
  height: "100%",
1564
1565
  ...f?.style
1565
1566
  },
1566
- error: xt.error
1567
+ error: yt.error
1567
1568
  }
1568
1569
  }) : null;
1569
- if (n && !vt) return Ye(at, {
1570
+ if (n && !wt) return Ye(at, {
1570
1571
  style: {
1571
1572
  width: "100%",
1572
1573
  height: "100%",
@@ -1578,17 +1579,17 @@ var ko = () => {
1578
1579
  children: n
1579
1580
  });
1580
1581
  let l = null;
1581
- if (vt) {
1582
- const e = vt, n = e.getView(), a = ue ?? n?.isShowFormulaBar(), i = ve ?? n?.isShowStatusBar(), s = Ut?.source ?? Re.current, d = Ye(re, {
1583
- render: void 0 === Ie ? go : Ie,
1582
+ if (wt) {
1583
+ const e = wt, n = e.getView(), a = me ?? n?.isShowFormulaBar(), i = ve ?? n?.isShowStatusBar(), s = Ht?.source ?? Re.current, d = Ye(re, {
1584
+ render: void 0 === Ie ? uo : Ie,
1584
1585
  props: {
1585
1586
  workbook: s,
1586
1587
  ...Pe
1587
1588
  }
1588
1589
  }), u = "bottom" === Le, g = a ? Ye(re, {
1589
- render: void 0 === ke ? m : ke,
1590
+ render: void 0 === be ? m : be,
1590
1591
  props: {
1591
- ref: Me,
1592
+ ref: $e,
1592
1593
  style: {
1593
1594
  marginTop: r.spacing(u ? .5 : .25),
1594
1595
  marginLeft: r.spacing(1),
@@ -1596,44 +1597,45 @@ var ko = () => {
1596
1597
  marginBottom: r.spacing(u ? .5 : .75)
1597
1598
  },
1598
1599
  workbook: e,
1599
- editable: Rt ?? void 0,
1600
+ editable: It ?? void 0,
1600
1601
  placement: Le,
1601
- ...me,
1602
+ floatOnKeyboard: "float" === Ke,
1603
+ ...ge,
1602
1604
  propsNamedCollectionEditor: {
1603
1605
  restoreFocus: (e) => s?.focus(e),
1604
- ...me?.propsNamedCollectionEditor
1606
+ ...ge?.propsNamedCollectionEditor
1605
1607
  }
1606
1608
  }
1607
1609
  }) : null, f = i ? Ye(re, {
1608
1610
  render: void 0 === Fe ? h : Fe,
1609
1611
  props: {
1610
- childrenEnd: oo,
1612
+ childrenEnd: eo,
1611
1613
  ...Ce
1612
1614
  }
1613
1615
  }) : null, k = (e, r) => Ye(p, {
1614
- ...pe,
1616
+ ...ue,
1615
1617
  tabIndex: 0,
1616
- autoFocus: !r && z,
1618
+ autoFocus: !r && V,
1617
1619
  workbook: e,
1618
- editable: r ? void 0 : Rt ?? void 0,
1619
- focusNameBox: r ? void 0 : $e,
1620
+ editable: r ? void 0 : It ?? void 0,
1621
+ focusNameBox: r ? void 0 : Me,
1620
1622
  prefetch: !r && c,
1621
1623
  ref: r ? je : St([t, Re]),
1622
- onWorkbookLoad: r ? (t) => Wo(t, e) : uo,
1624
+ onWorkbookLoad: r ? (t) => To(t, e) : co,
1623
1625
  onKeyDown: (e) => {
1624
1626
  v?.(e);
1625
1627
  },
1626
1628
  propsWorkbookLoading: ce,
1627
1629
  renderWorkbookLoading: null,
1628
1630
  style: r ? {
1629
- ...pe?.style,
1631
+ ...ue?.style,
1630
1632
  position: "absolute",
1631
1633
  inset: 0,
1632
1634
  visibility: "hidden"
1633
1635
  } : {
1634
1636
  flex: "1 1 100%",
1635
1637
  minHeight: 0,
1636
- ...pe?.style
1638
+ ...ue?.style
1637
1639
  },
1638
1640
  onContextMenu: (e) => e.preventDefault(),
1639
1641
  ...r ? null : o
@@ -1645,7 +1647,7 @@ var ko = () => {
1645
1647
  flex: "1 1 100%",
1646
1648
  minWidth: 0,
1647
1649
  minHeight: 0,
1648
- ...$({
1650
+ ...M({
1649
1651
  window: r.palette.background.default,
1650
1652
  windowText: r.palette.text.primary
1651
1653
  })
@@ -1657,9 +1659,9 @@ var ko = () => {
1657
1659
  main: Ye(io, {
1658
1660
  taskSide: x,
1659
1661
  persistKey: yo,
1660
- sidebarElement: vo ? Ye(X.CommandScopeProvider, {
1661
- scope: ho,
1662
- children: vo
1662
+ sidebarElement: fo ? Ye(X.CommandScopeProvider, {
1663
+ scope: mo,
1664
+ children: fo
1663
1665
  }) : void 0,
1664
1666
  mainElement: Ze("div", {
1665
1667
  style: {
@@ -1670,8 +1672,8 @@ var ko = () => {
1670
1672
  minWidth: 0,
1671
1673
  minHeight: 0
1672
1674
  },
1673
- children: [[k(vt, !1), Dt ? k(Dt, !0) : null], Ye(Je, {
1674
- ref: ao,
1675
+ children: [[k(wt, !1), vt ? k(vt, !0) : null], Ye(Je, {
1676
+ ref: ro,
1675
1677
  sx: {
1676
1678
  position: "absolute",
1677
1679
  top: "10%",
@@ -1687,17 +1689,16 @@ var ko = () => {
1687
1689
  })
1688
1690
  });
1689
1691
  }
1690
- const d = !Ut && se ? Ye(re, {
1692
+ const d = !Ht && se ? Ye(re, {
1691
1693
  render: se,
1692
1694
  props: { ...ce }
1693
1695
  }) : null;
1694
1696
  return Ze(at, {
1695
- sx: wo,
1697
+ sx: ho,
1696
1698
  style: {
1697
1699
  width: "100%",
1698
- height: He ? `calc(100% - ${He}px)` : "100%",
1699
- transform: Ve ? `translateY(${Ve}px)` : void 0,
1700
- overscrollBehavior: _e ? "none" : void 0,
1700
+ height: _e ? `calc(100% - ${_e}px)` : "100%",
1701
+ transform: ze ? `translateY(${ze}px)` : void 0,
1701
1702
  position: "absolute",
1702
1703
  display: "flex",
1703
1704
  alignItems: "stretch",
@@ -1727,51 +1728,51 @@ var ko = () => {
1727
1728
  display: "flex",
1728
1729
  alignItems: "center",
1729
1730
  justifyContent: "center",
1730
- background: `var(--sxl-color-base-100, ${st ? "#121212" : "#fff"})`
1731
+ background: `var(--sxl-color-base-100, ${rt ? "#121212" : "#fff"})`
1731
1732
  },
1732
1733
  children: d
1733
1734
  }) : null
1734
1735
  ]
1735
1736
  });
1736
1737
  }, [
1737
- xt,
1738
+ yt,
1739
+ wt,
1738
1740
  vt,
1739
- Dt,
1740
- Ut,
1741
- Qt,
1741
+ Ht,
1742
+ Yt,
1742
1743
  se,
1743
1744
  ce,
1744
- pe,
1745
+ ue,
1745
1746
  a,
1746
1747
  i,
1747
1748
  s,
1748
- oo,
1749
+ eo,
1749
1750
  g,
1750
1751
  f,
1751
- go,
1752
- wo,
1753
- vo,
1754
- x,
1752
+ uo,
1755
1753
  ho,
1756
- ue,
1754
+ fo,
1755
+ x,
1756
+ mo,
1757
1757
  me,
1758
- ke,
1758
+ ge,
1759
+ be,
1759
1760
  Le,
1760
- Rt,
1761
+ It,
1761
1762
  ve,
1762
1763
  Ce,
1763
1764
  Fe,
1764
1765
  Pe,
1765
1766
  Ie,
1767
+ Ke,
1766
1768
  _e,
1767
- He,
1768
- Ve,
1769
- nt,
1770
- st
1769
+ ze,
1770
+ tt,
1771
+ rt
1771
1772
  ]);
1772
- let Po = Ye(Wt, {
1773
+ let Wo = Ye(Wt, {
1773
1774
  maxSnack: 3,
1774
- domRoot: ro ?? void 0,
1775
+ domRoot: to ?? void 0,
1775
1776
  anchorOrigin: {
1776
1777
  vertical: "bottom",
1777
1778
  horizontal: "right"
@@ -1780,7 +1781,7 @@ var ko = () => {
1780
1781
  onClose: (e, t, o) => {
1781
1782
  Re.current?.focus();
1782
1783
  },
1783
- Components: { error: $t },
1784
+ Components: { error: Mt },
1784
1785
  iconVariant: {
1785
1786
  success: Ye(it, {
1786
1787
  style: { marginRight: "8px" },
@@ -1792,41 +1793,41 @@ var ko = () => {
1792
1793
  })
1793
1794
  },
1794
1795
  children: Ye(j, {
1795
- workbook: vt,
1796
+ workbook: wt,
1796
1797
  children: Ye(A, {
1797
- renderArea: So,
1798
+ renderArea: Co,
1798
1799
  onUpdateArea: (e) => {
1799
- Co(e);
1800
+ wo(e);
1800
1801
  },
1801
1802
  children: Ye(Oe, { children: Ye(Jt, { children: Ye(ie, { children: Ye(ee, { children: Ye(Xt, {
1802
- workbook: vt,
1803
- initialCommandAnchor: po,
1804
- renderWorkbook: Fo,
1805
- setWorkbook: Pt,
1806
- titleWorkbook: Qt,
1807
- setWorkbookTitle: Zt,
1808
- refDocumentTitle: mo,
1809
- isDirty: Vt,
1810
- refSave: Ht,
1803
+ workbook: wt,
1804
+ initialCommandAnchor: so,
1805
+ renderWorkbook: Eo,
1806
+ setWorkbook: Et,
1807
+ titleWorkbook: Yt,
1808
+ setWorkbookTitle: qt,
1809
+ refDocumentTitle: po,
1810
+ isDirty: _t,
1811
+ refSave: Bt,
1811
1812
  host: r
1812
1813
  }) }) }) }) })
1813
1814
  })
1814
1815
  })
1815
1816
  });
1816
- return Po = Ze(ct, {
1817
- theme: st ? nt.dark : nt.light,
1817
+ return Wo = Ze(ct, {
1818
+ theme: rt ? tt.dark : tt.light,
1818
1819
  children: [
1819
1820
  B ? Ye(ot, {}) : null,
1820
- Ye("style", { children: lt }),
1821
- Ye("style", { children: dt }),
1821
+ Ye("style", { children: nt }),
1822
+ Ye("style", { children: st }),
1822
1823
  Ye(Ne, {
1823
1824
  themeScopeClass: n,
1824
1825
  themeSurface: "app",
1825
- themeMode: Qe,
1826
- children: Po
1826
+ themeMode: qe,
1827
+ children: Wo
1827
1828
  })
1828
1829
  ]
1829
- }), Po;
1830
+ }), Wo;
1830
1831
  }));
1831
1832
  wo.displayName = "EagerStudio";
1832
1833
  var xo = (e) => Ye(oo, { ...e });