@sheetxl/studio-mui 0.8.0-beta.20 → 0.8.0-beta.22

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 (102) hide show
  1. package/browser/esm/{Cvwz0PddEGW1FJ4c.mjs → 4fBGyv6A2TxumCq-.mjs} +1 -1
  2. package/browser/esm/{DQNnDQPNut_4wO6Y.mjs → 94tsNi06fbT_N5QP.mjs} +1 -1
  3. package/browser/esm/{BuSv-OgJpZJGjcyA.mjs → B73fvq9CvO4zWnAU.mjs} +3 -3
  4. package/browser/esm/{C5ZWkOAoFpcZwFw2.mjs → BChPnCMzvz7cXxgX.mjs} +2 -2
  5. package/browser/esm/{UC9qbIWz2dYrCbJn.mjs → BKwBJsEKNY-Zg8CB.mjs} +2 -2
  6. package/browser/esm/{DHrJOjy3Du7ZBo96.mjs → BOlLywIc0l3AgTeQ.mjs} +3 -3
  7. package/browser/esm/{B4L3swgLGqcOHo7U.mjs → BYtWtukbMjjvrpmO.mjs} +6 -6
  8. package/browser/esm/{C72jL8eQk_hPFDLn.mjs → B_N6a3iKw4osibIz.mjs} +1 -1
  9. package/browser/esm/{bOlMSpqTkmRboj5-.mjs → BfiIvcOXqUoxIFoz.mjs} +2 -2
  10. package/browser/esm/{BRnwCembfaZpk0sc.mjs → BhT_uJEPxlXpMzZA.mjs} +35 -42
  11. package/browser/esm/{LQC_4LWJQR_JjcxV.mjs → BuAIHmOwBspXtuLo.mjs} +4 -4
  12. package/browser/esm/{BrdpRbJ-xKeF87FO.mjs → C-LSHx-5EgUmc44h.mjs} +6 -6
  13. package/browser/esm/{CgvHVv7iIzRRgmlF.mjs → C-rODYmI2nVNJxkV.mjs} +2 -2
  14. package/browser/esm/{D_VpGjXScR-D-TWZ.mjs → C1F9o-e9q6m9MuOd.mjs} +651 -651
  15. package/browser/esm/{BtrFK5bYpBJfHRDr.mjs → C1tObUn9YlTLNn25.mjs} +2 -2
  16. package/browser/esm/{CDJ0jdx7Km3a5v6w.mjs → C3lvgNO_MVml-Awy.mjs} +2 -2
  17. package/browser/esm/{VoncM-mkj4eoKD1J.mjs → CJlwai18BnsJScjr.mjs} +2 -2
  18. package/browser/esm/{LOzFCd9lrGWhNoCz.mjs → CMPdCzAvGvFQ_NOu.mjs} +2 -2
  19. package/browser/esm/{COkfKd7FvEtpgAAI.mjs → COFmQH3tB3uvu0v4.mjs} +1 -1
  20. package/browser/esm/{hbiHjiOvIyYM3TIl.mjs → CSgrMpZ0rZKxXZyj.mjs} +4 -4
  21. package/browser/esm/{ColttpEsydVwkHtf.mjs → CStCc2wP7hmm92t1.mjs} +2 -2
  22. package/browser/esm/{CSgwY4Yb3l0WoprP.mjs → CXvLc2JRNpJ9CiWw.mjs} +3 -3
  23. package/browser/esm/{6R-JS1ZrhnwQAyOl.mjs → CgtckX24zzJUIsPm.mjs} +4 -4
  24. package/browser/esm/{Bfb84N1ywaVZm9kH.mjs → CoVFWmiy6hWV8rPy.mjs} +4 -4
  25. package/browser/esm/{CzfkYZGGhFc_gq0P.mjs → CqmCCdvSBl4ksHpK.mjs} +4 -4
  26. package/browser/esm/{3xocDjPLOJXjOs3x.mjs → CtNLEdf5v8pGcG3C.mjs} +2 -2
  27. package/browser/esm/{BENsK9C3A3CnZyXZ.mjs → CuL7ggWqWMgPSTYd.mjs} +1 -1
  28. package/browser/esm/{BXVE3yfw5gdtyl-s.mjs → CwBN8jwNndijQgmx.mjs} +1 -1
  29. package/browser/esm/{DCxc5HMSf1ZSHRoi.mjs → CzhTxHyYCZp4qxKC.mjs} +2 -2
  30. package/browser/esm/{CGDNdoMTlI8f1kRw.mjs → D26ZjloyA6kyqhCO.mjs} +2 -2
  31. package/browser/esm/{D-3WlyQuxUZCwLkb.mjs → D3H9iUvXD2rOEXUz.mjs} +3 -3
  32. package/browser/esm/{D3bI-7D37_22_-T9.mjs → DB44ddihGazQSGaZ.mjs} +1 -1
  33. package/browser/esm/{DIZ9pueRPHaNzQqo.mjs → DCjDYZjRl7IH3hl7.mjs} +1 -1
  34. package/browser/esm/{BrZVnbTt-3DeAMxo.mjs → DEMQ4FkP_kNZF_wE.mjs} +1 -1
  35. package/browser/esm/{BAFzUBAc7BpGUWl_.mjs → DNdSq8U8iqBPrwOo.mjs} +1 -1
  36. package/browser/esm/{p-2ZZeZwGZfutcDk.mjs → DQbt4DNrmq-Uhlgk.mjs} +8 -8
  37. package/browser/esm/{DMifD__JRvHH4COB.mjs → DXRtL-ZwbSMLfMWu.mjs} +1 -1
  38. package/browser/esm/{D83oSH8xR3JfeRjI.mjs → DaCPqL3R4JLbgfKh.mjs} +2 -2
  39. package/browser/esm/{nmox4_ypwR5ILBKj.mjs → DdyE9R4gSZNhRZb0.mjs} +5 -5
  40. package/browser/esm/{D7ZdGXqJXmdAHu8I.mjs → De5GPX3SbEvetD0y.mjs} +1 -1
  41. package/browser/esm/{DF0hjPW_C_3TpnDs.mjs → Df0ygc7YMQG-3ATr.mjs} +1 -1
  42. package/browser/esm/{JBCZvp0T2f4n-Csb.mjs → Df13XIFEDDEusmq6.mjs} +2 -2
  43. package/browser/esm/{BTWjCKBwd6qXldxi.mjs → DkWzWQNmOvX1iJXV.mjs} +2 -2
  44. package/browser/esm/{C1XMVwyIJNbYmtkV.mjs → Dq5jd89jluXcrOEE.mjs} +5 -5
  45. package/browser/esm/{mlTMBwB5PG7Fo1mU.mjs → DqFTGLVzd9DQ8EhO.mjs} +20 -20
  46. package/browser/esm/{DobmIAozt-IiJp1P.mjs → Dqa4YY-GeaELqOWP.mjs} +2 -2
  47. package/browser/esm/{BWSZkGPSgg9pPKni.mjs → DrMsUvIwtq9dARmW.mjs} +4 -4
  48. package/browser/esm/{CGomW4hI6SQ96yIm.mjs → Dt3cLYWyjIUhoGv5.mjs} +2 -2
  49. package/browser/esm/{BSVc4NYkBnFa7T_w.mjs → IrJcYpXt_8rkAXkj.mjs} +3 -3
  50. package/browser/esm/{D3Aests6-QUrBfmJ.mjs → PujeLGgr7jXdyoVl.mjs} +1 -1
  51. package/browser/esm/{De7cege6OU7QJqBb.mjs → UkGnqCkXqASlUdkb.mjs} +4 -4
  52. package/browser/esm/{xLnpGjmsP-zJuXUE.mjs → dAjSLtkpLCkJDkhU.mjs} +1 -1
  53. package/browser/esm/{DGFdTu5VfKecMohK.mjs → eA3xhEFzK_Y-f3m3.mjs} +5 -5
  54. package/browser/esm/{C2MuUgU0H05eZ5qQ.mjs → es5d1Dk1vs-XYLkm.mjs} +2 -2
  55. package/browser/esm/{4RkuBXBVmw7VYQ2a.mjs → h0wby0g03NYV4-XW.mjs} +5 -5
  56. package/browser/esm/index.mjs +73 -46
  57. package/browser/esm/{ClqW5S7FR6Pwmp1U.mjs → ov0v-5BfNGRojfXZ.mjs} +2 -2
  58. package/browser/esm/{CHT8_XB3_hp307XA.mjs → t7Y081CM2JBXwlh-.mjs} +1 -1
  59. package/browser/esm/{DdtM4Sy4hFIFwWvO.mjs → veW5ER4LND6O438J.mjs} +1 -1
  60. package/browser/esm/{DwYjy-b-w1xnqteA.mjs → vsSZOEJBDfjVM46M.mjs} +2 -2
  61. package/node/esm/{GeLMvw9JlqlFr6jw.mjs → B5dbA7OTeRHtdFKK.mjs} +4 -4
  62. package/node/esm/{DAuVxjZwldORNkvx.mjs → BI4aQ23a2wqqskmY.mjs} +475 -475
  63. package/node/esm/{BXKb4oUGpTWCF8ni.mjs → BML2jZO-vGc6RS51.mjs} +2 -2
  64. package/node/esm/{D8RVd9U84QC8lAvP.mjs → BNJBkYIYk2zyHoU3.mjs} +1 -1
  65. package/node/esm/{BWIatgbno8eMdTy4.mjs → BPGz9KUMwgtyF6LG.mjs} +1 -1
  66. package/node/esm/{N8h_Ft32UJATwjlk.mjs → BjpAc-kSpia0lwjr.mjs} +1 -1
  67. package/node/esm/{Bqda2dQ0l75gjnDb.mjs → Bn2kMFZYznOun538.mjs} +1 -1
  68. package/node/esm/{BCYThTuIrSXfyd-N.mjs → Bppef7aHA2mOZ_sn.mjs} +1 -1
  69. package/node/esm/{XJAfD-_V2Sx4aW33.mjs → Bu647iy66qiv3-qM.mjs} +2 -2
  70. package/node/esm/{VeNMuIWoztqGMKsZ.mjs → BuDVpL6sgPNGIN7T.mjs} +1 -1
  71. package/node/esm/{DcIySopuRr-At74Y.mjs → Bzi3tHPQ3b7BGbwU.mjs} +1 -1
  72. package/node/esm/{CY8Mel9qXoQcoE6D.mjs → C4qWN7D3UW8jLaZK.mjs} +4 -4
  73. package/node/esm/{uCFRHXTVhzTQ53TT.mjs → C9dfS-Tk6WGogUSV.mjs} +2 -2
  74. package/node/esm/{CN5U8EzIhztKzktG.mjs → CF8UfOyBsfrrOyAH.mjs} +2 -2
  75. package/node/esm/{Cs9OyntWvICLrQk-.mjs → CM2JoqeXwIblrqJM.mjs} +2 -2
  76. package/node/esm/{CDj1mR4aA0wufjjK.mjs → CTsTUI34q8TBkdX5.mjs} +1 -1
  77. package/node/esm/{e5DJjIF9cuF9r_ub.mjs → Caf_ZRpLHj97cmhq.mjs} +1 -1
  78. package/node/esm/{539u16kqHOnXHBnN.mjs → CawfjLMD5X08VllQ.mjs} +2 -2
  79. package/node/esm/{DLx_RKfK6MMX0tiy.mjs → CbE22c6PmT_9BusX.mjs} +1 -1
  80. package/node/esm/{CJX21c9lbs0lFHFH.mjs → CcLCu4TIukHypMCt.mjs} +2 -2
  81. package/node/esm/{B5kuWO6ix3DmmdhQ.mjs → D1QZYBh1NZInkWaZ.mjs} +2 -2
  82. package/node/esm/{Dbg6kW_63xZ_x2es.mjs → DBB9QhddMWoyCmju.mjs} +2 -2
  83. package/node/esm/{Dpzk8tIhwke93vji.mjs → DLQ1x8uASVrHgCX2.mjs} +1 -1
  84. package/node/esm/{bIfQAr55kQq2xXaT.mjs → DLt7HmhROlJ1V8bV.mjs} +1 -1
  85. package/node/esm/{BqkiJZsCP2hEkJs9.mjs → DRigWgmIaYtEv5Lk.mjs} +1 -1
  86. package/node/esm/{D_dyzcsGBlCNrIVJ.mjs → DY96atQfGYmZ90TD.mjs} +4 -4
  87. package/node/esm/{BJLg7uLC_b9f_1NJ.mjs → Dg5D5zMNzygUWk51.mjs} +2 -2
  88. package/node/esm/{C-s3vhDAhWAnJntP.mjs → Dj16Fzha7o7DGv6z.mjs} +2 -2
  89. package/node/esm/{DcIZXVJ5TJYu8Xf1.mjs → DomLgHu8aLIg6y2l.mjs} +1 -1
  90. package/node/esm/{B_TEor8YFmwmyhWj.mjs → DrBGMrwOCXerStOS.mjs} +2 -2
  91. package/node/esm/{h0ih_bazDGjgIXQd.mjs → Dv8pWn_FIH1LYneP.mjs} +2 -2
  92. package/node/esm/{rEdJke7xorzb_Nmh.mjs → DxRENk3CWrgvcnJj.mjs} +2 -2
  93. package/node/esm/{B1WnY8cmRz7W1yrZ.mjs → G7AEbATGEFC09W8Z.mjs} +1 -1
  94. package/node/esm/{FHL9tW8a0eqpp8dm.mjs → GeB-AGYaOLPf4xIa.mjs} +127 -134
  95. package/node/esm/{CAfDDLrXsXte2avr.mjs → JieSP-_GeRIfiW8Z.mjs} +2 -2
  96. package/node/esm/{DSZIOgi3X_EmsT65.mjs → bXPPrX3OxYcCm85J.mjs} +1 -1
  97. package/node/esm/{CsnknBUOfx3FVTP_.mjs → eCWrCiaQxjPKI08p.mjs} +1 -1
  98. package/node/esm/index.mjs +542 -515
  99. package/node/esm/{3MP8rnjjEE0LpSoH.mjs → tt1hY7OYeKg-gSFj.mjs} +1 -1
  100. package/node/esm/{ymnOnQfaRduubuPk.mjs → wC3tHWypFfvBG8Fu.mjs} +1 -1
  101. package/package.json +9 -9
  102. package/types/src/studio/useStudioApp.d.ts +4 -3
@@ -1,33 +1,33 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.20
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.22
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, registerStudioCommandCatalogs as y, registerStudioCommandGroups as w, t as x, tokensToMuiOptions as v, u as C } from "./index.mjs";
8
8
  import { CommandRootProvider as D, DefaultTaskPaneRegistry as S, LogoNoPaddingIcon as T, PivotTablePane as E, SHAPE_ICON_PACK as W, TaskPaneArea as F, TaskPaneKey as A, TaskPaneProvider as P, ThemeStateDefaults as I, ThemeStateKey as N, WorkbookIO as R, WorkbookProvider as j, buildOOXMLThemeCSS as O, createEditable as $, createSystemColorVars as M, registerMovablePane as L, useDocThemes as B, useModelSync as K, useReferenceModeStore as _, useResolvedWorkbook as z, useTaskPaneArea as H, useWorkbookEncrypted as V, useWorkbookName as U, useWorkbookSaveState as G } from "@sheetxl/react";
9
- import { Command as q, DefaultCommandButtonRegistry 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
- 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 Ae, CommandGroup as Pe, 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
- import { Fragment as Xe, jsx as Ye, jsxs as Ze } from "react/jsx-runtime";
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
- 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";
15
- import Dt from "clsx";
16
- import { mergeRefs as St, useMergeRefs as Tt } from "react-merge-refs";
17
- import { SnackbarContent as Et, SnackbarProvider as Wt, useSnackbar as Ft } from "notistack";
18
- var At = Object.defineProperty, Pt = (e, t) => {
9
+ import { Command as q, DefaultCommandButtonRegistry 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, ThemeStyle as ie, UncaughtErrorBoundary as se, createBusyHandle as le, useCallbackRef as ce, useFullscreen as de, useImperativeElement as pe, useKeyboardResize as ue, useLanguage as me, useMeasure as ge, useNotifier as he, usePersistentState as fe, useResolvedThemeMode as ke, useTokenThemeContext as be, useTranslator as ye } from "@sheetxl/utils-react";
10
+ import we, { Fragment as xe, forwardRef as ve, isValidElement as Ce, memo as De, useCallback as Se, useEffect as Te, useMemo as Ee, useRef as We, useState as Fe } from "react";
11
+ import { AnimatedLoadingPanel as Ae, AnimatedTraversingEllipsisIcon as Pe, CommandGroup as Ie, ExhibitDivider as Ne, ExhibitFloatProvider as Re, ExhibitMenuItem as je, ExhibitTooltip as Oe, ModalProvider as $e, SelectedIcon as Me, SimpleTooltip as Le, StackTrace as Be, createExhibitTheme as Ke, hideLoadingPanel as _e, lazyModal as ze, lazyPanel as He, showLoadingPanel as Ve, useInputDialog as Ue, useLazyWindow as Ge, useModal as qe, useOptionsDialog as Xe } from "@sheetxl/utils-mui";
12
+ import { Fragment as Ye, jsx as Ze, jsxs as Je } from "react/jsx-runtime";
13
+ import { Box as Qe, Card as et, CardActions as tt, Collapse as ot, CssBaseline as rt, DialogTitle as nt, IconButton as at, Paper as it, SvgIcon as st, Tab as lt, Tabs as ct, ThemeProvider as dt, Typography as pt, alpha as ut, useMediaQuery as mt, useTheme as gt } from "@mui/material";
14
+ import { CommonUtils as ht, DOMUtils as ft, DefaultLanguagePackService as kt, ErrorUtils as bt, ExpectedError as yt, PartialError as wt, defineLazyModule as xt, formatMessage as vt, messageKey as Ct, t as Dt } from "@sheetxl/utils";
15
+ import St from "clsx";
16
+ import { mergeRefs as Tt, useMergeRefs as Et } from "react-merge-refs";
17
+ import { SnackbarContent as Wt, SnackbarProvider as Ft, useSnackbar as At } from "notistack";
18
+ var Pt = Object.defineProperty, It = (e, t) => {
19
19
  let o = {};
20
- for (var r in e) At(o, r, {
20
+ for (var r in e) Pt(o, r, {
21
21
  get: e[r],
22
22
  enumerable: !0
23
23
  });
24
- return t || At(o, Symbol.toStringTag, { value: "Module" }), o;
25
- }, It = ze(wt("studio:conditionalFormatDetailsTaskPane", () => import("./FHL9tW8a0eqpp8dm.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), Nt = ["lines"], Rt = /^[A-Za-z_\\][\w.\\]*$/, jt = /^\$?[A-Za-z]{1,3}\$?\d+$/, Ot = (e) => {
24
+ return t || Pt(o, Symbol.toStringTag, { value: "Module" }), o;
25
+ }, Nt = He(xt("studio:conditionalFormatDetailsTaskPane", () => import("./GeB-AGYaOLPf4xIa.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), Rt = ["lines"], jt = /^[A-Za-z_\\][\w.\\]*$/, Ot = /^\$?[A-Za-z]{1,3}\$?\d+$/, $t = (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
- return Rt.test(o) && !jt.test(o) ? o : t;
30
- }, $t = {
29
+ return jt.test(o) && !Ot.test(o) ? o : t;
30
+ }, Mt = {
31
31
  card: "_card_h0jnt_7",
32
32
  actionRoot: "_actionRoot_h0jnt_11",
33
33
  icons: "_icons_h0jnt_16",
@@ -37,63 +37,63 @@ var At = Object.defineProperty, Pt = (e, t) => {
37
37
  paper: "_paper_h0jnt_37",
38
38
  checkIcon: "_checkIcon_h0jnt_42",
39
39
  button: "_button_h0jnt_47"
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(() => {
40
+ }, Lt = De(ve((e, t) => {
41
+ const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l = ye(), { closeSnackbar: c } = At(), [d, p] = Fe(!1), u = a ? bt.collectErrorChain(a, !0)?.[0]?.error : void 0, m = u && !(u instanceof yt), g = Se(() => {
42
42
  p((e) => !e);
43
- }, []), h = De(() => {
43
+ }, []), h = Se(() => {
44
44
  c(o);
45
45
  }, [o, c]);
46
46
  let f = u?.message;
47
- return !f && ve(r) && (f = r), f || "string" != typeof r || (f = r), f || (f = `Unknown Error: ${r}`), Ye(Et, {
47
+ return !f && Ce(r) && (f = r), f || "string" != typeof r || (f = r), f || (f = `Unknown Error: ${r}`), Ze(Wt, {
48
48
  ref: t,
49
- className: Dt($t.root, "error-snackbar"),
50
- children: Ze(Qe, {
51
- className: $t.card,
49
+ className: St(Mt.root, "error-snackbar"),
50
+ children: Je(et, {
51
+ className: Mt.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
- children: [Ze(et, {
58
- className: $t.actionRoot,
57
+ children: [Je(tt, {
58
+ className: Mt.actionRoot,
59
59
  children: [
60
60
  i ? null : n?.error,
61
- Ye(dt, {
61
+ Ze(pt, {
62
62
  variant: "body2",
63
63
  component: "div",
64
- className: $t.typography,
64
+ className: Mt.typography,
65
65
  children: f
66
66
  }),
67
- Ye("div", { style: { flex: "1 1 auto" } }),
68
- Ze("div", {
69
- className: $t.icons,
70
- children: [m ? Ye(nt, {
67
+ Ze("div", { style: { flex: "1 1 auto" } }),
68
+ Je("div", {
69
+ className: Mt.icons,
70
+ children: [m ? Ze(at, {
71
71
  "aria-label": l("toast.showMore"),
72
72
  size: "small",
73
- className: Dt($t.expand, { [$t.expandOpen]: d }),
73
+ className: St(Mt.expand, { [Mt.expandOpen]: d }),
74
74
  onClick: g,
75
- children: Ye(Z, { iconKey: "ExpandMore" })
76
- }) : null, Ye(nt, {
75
+ children: Ze(Z, { iconKey: "ExpandMore" })
76
+ }) : null, Ze(at, {
77
77
  size: "small",
78
- className: $t.expand,
78
+ className: Mt.expand,
79
79
  onClick: h,
80
- children: Ye(Z, {
80
+ children: Ze(Z, {
81
81
  iconKey: "Close",
82
82
  style: { transform: "scale(0.8)" }
83
83
  })
84
84
  })]
85
85
  })
86
86
  ]
87
- }), m ? Ye(tt, {
87
+ }), m ? Ze(ot, {
88
88
  in: d,
89
89
  timeout: "auto",
90
- children: Ye("div", {
91
- className: $t.stackTraceContainer,
90
+ children: Ze("div", {
91
+ className: Mt.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)"
95
95
  },
96
- children: Ye(Le, {
96
+ children: Ze(Be, {
97
97
  error: a,
98
98
  hideLineNumbers: !0
99
99
  })
@@ -102,13 +102,13 @@ var At = Object.defineProperty, Pt = (e, t) => {
102
102
  })
103
103
  });
104
104
  }));
105
- Mt.displayName = "ToastError";
106
- var Lt = () => {
107
- const e = be();
108
- return Ye(je, {
105
+ Lt.displayName = "ToastError";
106
+ var Bt = () => {
107
+ const e = ye();
108
+ return Ze(Oe, {
109
109
  label: "SheetXL",
110
110
  description: e("logo.description"),
111
- children: Ye(Je, {
111
+ children: Ze(Qe, {
112
112
  component: "a",
113
113
  href: "https://www.sheetxl.com",
114
114
  target: "_blank",
@@ -121,25 +121,25 @@ var Lt = () => {
121
121
  marginLeft: "6px",
122
122
  cursor: "pointer"
123
123
  },
124
- children: Ye(T, { style: {
124
+ children: Ze(T, { style: {
125
125
  width: "24px",
126
126
  height: "24px"
127
127
  } })
128
128
  })
129
129
  });
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([
130
+ }, Kt = Ze(Bt, {}), _t = De(ve((e, t) => {
131
+ const { workbook: o, className: r, logo: n = Kt, mainElement: a, startElement: i, endElement: s, ...l } = e, [c, { width: d }] = ge(), p = d < 530, u = We(null), m = Et([
132
132
  u,
133
133
  c,
134
134
  t
135
135
  ]);
136
- return Ye(Je, {
136
+ return Ze(Qe, {
137
137
  ...l,
138
138
  ref: m,
139
139
  className: r,
140
140
  children: f({
141
141
  isCompact: p,
142
- wrapperSelect: (e) => Ze(Je, {
142
+ wrapperSelect: (e) => Je(Qe, {
143
143
  sx: {
144
144
  display: "grid",
145
145
  gridTemplateColumns: "1fr auto 1fr",
@@ -150,7 +150,7 @@ var Lt = () => {
150
150
  paddingRight: (e) => e.spacing(1)
151
151
  },
152
152
  children: [
153
- Ze(Je, {
153
+ Je(Qe, {
154
154
  sx: {
155
155
  display: "flex",
156
156
  flexDirection: "row",
@@ -158,7 +158,7 @@ var Lt = () => {
158
158
  justifyContent: "start",
159
159
  gap: (e) => e.spacing(.5)
160
160
  },
161
- children: [n, Ze(Je, {
161
+ children: [n, Je(Qe, {
162
162
  sx: {
163
163
  display: "flex",
164
164
  flexDirection: "row",
@@ -168,7 +168,7 @@ var Lt = () => {
168
168
  children: [i, e]
169
169
  })]
170
170
  }),
171
- Ye(Je, {
171
+ Ze(Qe, {
172
172
  sx: {
173
173
  display: "flex",
174
174
  flexDirection: "row",
@@ -179,7 +179,7 @@ var Lt = () => {
179
179
  },
180
180
  children: a
181
181
  }),
182
- Ye(Je, {
182
+ Ze(Qe, {
183
183
  sx: {
184
184
  display: "flex",
185
185
  alignItems: "center",
@@ -192,12 +192,12 @@ var Lt = () => {
192
192
  })
193
193
  });
194
194
  }));
195
- Kt.displayName = "StudioToolbar";
196
- var _t = (e, t) => {
195
+ _t.displayName = "StudioToolbar";
196
+ var zt = (e, t) => {
197
197
  const o = new URL(window.location.pathname, window.location.origin);
198
- e && o.searchParams.set("source", e), e && t && o.searchParams.set("title", t), window.open(o.toString(), "sheetxl-" + gt.uuidV4(), "popup=true");
198
+ e && o.searchParams.set("source", e), e && t && o.searchParams.set("title", t), window.open(o.toString(), "sheetxl-" + ht.uuidV4(), "popup=true");
199
199
  };
200
- function zt(e, t) {
200
+ function Ht(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) => {
@@ -206,20 +206,20 @@ function zt(e, t) {
206
206
  typedCreateWorkbookOptions: t ?? void 0,
207
207
  onPassword: async ({ origin: e, validate: t }) => {
208
208
  const o = await i.showInput({
209
- title: Ct("dialog.password.title"),
210
- description: Ct("dialog.password.open.description", { name: e.getName() ?? "" }),
209
+ title: Dt("dialog.password.title"),
210
+ description: Dt("dialog.password.open.description", { name: e.getName() ?? "" }),
211
211
  inputType: "password",
212
212
  options: [{
213
213
  id: "Open",
214
- label: () => Ct("dialog.open")
214
+ label: () => Dt("dialog.open")
215
215
  }, "Cancel"],
216
216
  defaultOption: "Open",
217
217
  onValidateInput: async (e, o) => void 0 === o ? { valid: !0 } : e ? await t(e) ? { valid: !0 } : {
218
218
  valid: !1,
219
- message: Ct("dialog.password.open.retry")
219
+ message: Dt("dialog.password.open.retry")
220
220
  } : {
221
221
  valid: !1,
222
- message: Ct("dialog.password.open.required")
222
+ message: Dt("dialog.password.open.required")
223
223
  }
224
224
  });
225
225
  return "Open" === o?.option ? o.input ?? null : null;
@@ -235,7 +235,7 @@ function zt(e, t) {
235
235
  ...n,
236
236
  progress: {
237
237
  async onStart(e, t) {
238
- await n?.progress?.onStart?.(e, t), a = await i?.showBusy?.(Ct("workbook.opening", { name: e?.getName() ?? "" })), t && a?.setProgress?.(0, t);
238
+ await n?.progress?.onStart?.(e, t), a = await i?.showBusy?.(Dt("workbook.opening", { name: e?.getName() ?? "" })), t && a?.setProgress?.(0, t);
239
239
  },
240
240
  onProgress(e, t) {
241
241
  if (!t) return;
@@ -248,7 +248,7 @@ function zt(e, t) {
248
248
  o - s < 5 || (s = o, a?.setProgress?.(e, t));
249
249
  },
250
250
  onComplete() {
251
- a?.(), r.length > 0 && (i.showMessage(Ct("workbook.importWarnings")), console.warn("Import warnings:\n" + r.join("\n")));
251
+ a?.(), r.length > 0 && (i.showMessage(Dt("workbook.importWarnings")), console.warn("Import warnings:\n" + r.join("\n")));
252
252
  },
253
253
  onWarning(e, t) {
254
254
  n?.progress?.onWarning?.(e, t);
@@ -261,7 +261,7 @@ function zt(e, t) {
261
261
  format: t?.key,
262
262
  progress: {
263
263
  async onStart(e) {
264
- a = await i?.showBusy?.(Ct("workbook.saving", { name: e?.getName() ?? "" }));
264
+ a = await i?.showBusy?.(Dt("workbook.saving", { name: e?.getName() ?? "" }));
265
265
  },
266
266
  onComplete() {
267
267
  a?.();
@@ -269,27 +269,27 @@ function zt(e, t) {
269
269
  },
270
270
  onWarnings: r ?? (async ({ warnings: e, origin: t, canCancel: o }) => {
271
271
  a?.(), console.warn(`Not written to '${t.getName()}':\n${e.map((e) => ` ${e.message}`).join("\n")}`);
272
- const r = Ct("dialog.writeWarnings.title"), n = t.getFormat(), s = (n ? (await R.getWriteFormats({ search: n }))[0] : void 0)?.description ?? n ?? "", l = Ct("dialog.writeWarnings.keep");
272
+ const r = Dt("dialog.writeWarnings.title"), n = t.getFormat(), s = (n ? (await R.getWriteFormats({ search: n }))[0] : void 0)?.description ?? n ?? "", l = Dt("dialog.writeWarnings.keep");
273
273
  return o ? "Save" === await i.showOptions({
274
274
  title: r,
275
275
  type: Q.Warning,
276
- description: `${Ct("dialog.writeWarnings.confirm", { format: s })}\n\n${l}`,
276
+ description: `${Dt("dialog.writeWarnings.confirm", { format: s })}\n\n${l}`,
277
277
  options: [{
278
278
  id: "Save",
279
- label: () => Ct("dialog.save")
279
+ label: () => Dt("dialog.save")
280
280
  }, "Cancel"],
281
281
  defaultOption: "Cancel"
282
- }) && (a = await i?.showBusy?.(Ct("workbook.saving", { name: t?.getName() ?? "" })), !0) : (i.showOptions({
282
+ }) && (a = await i?.showBusy?.(Dt("workbook.saving", { name: t?.getName() ?? "" })), !0) : (i.showOptions({
283
283
  title: r,
284
284
  type: Q.Warning,
285
- description: `${Ct("dialog.writeWarnings.saved", { format: s })}\n\n${l}`,
285
+ description: `${Dt("dialog.writeWarnings.saved", { format: s })}\n\n${l}`,
286
286
  options: ["Ok"]
287
287
  }), !0);
288
288
  })
289
289
  };
290
290
  let l;
291
291
  if (o) {
292
- const o = e.getOrigin(), r = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${n || o.getName() || Ct("workbook.defaultName")}.${r}`;
292
+ const o = e.getOrigin(), r = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${n || o.getName() || Dt("workbook.defaultName")}.${r}`;
293
293
  l = await R.writeAs(e, a, {
294
294
  ...s,
295
295
  prompt: !0
@@ -303,14 +303,14 @@ function zt(e, t) {
303
303
  e?.source ? t && p ? await p({
304
304
  url: e.source,
305
305
  title: e.title
306
- }) : _t(e.source, e.title) : t ? r({}) : _t();
306
+ }) : zt(e.source, e.title) : t ? r({}) : zt();
307
307
  } }), e.updateCommand("closeWorkbook", { callback: async () => {
308
308
  a() && "Close" !== await i.showOptions({
309
- title: Ct("dialog.confirm.title"),
310
- description: Ct("dialog.unsavedChanges"),
309
+ title: Dt("dialog.confirm.title"),
310
+ description: Dt("dialog.unsavedChanges"),
311
311
  options: [{
312
312
  id: "Close",
313
- label: () => Ct("dialog.close")
313
+ label: () => Dt("dialog.close")
314
314
  }, "Cancel"],
315
315
  defaultOption: "Cancel"
316
316
  }) || window.close();
@@ -331,13 +331,13 @@ function zt(e, t) {
331
331
  for (const o of t) {
332
332
  const t = o.key;
333
333
  e.updateCommand(`saveWorkbookAs${t}`, {
334
- label: () => Ct("command.saveAsFormat.label", { format: o.description }),
334
+ label: () => Dt("command.saveAsFormat.label", { format: o.description }),
335
335
  groupLabels: {
336
- workbook: () => Ct("command.saveAsFormat.workbook", { format: o.description }),
337
- saveWorkbookOptions: () => Ct("command.saveAsFormat.compact", { format: o.description })
336
+ workbook: () => Dt("command.saveAsFormat.workbook", { format: o.description }),
337
+ saveWorkbookOptions: () => Dt("command.saveAsFormat.compact", { format: o.description })
338
338
  },
339
339
  tags: o.tags,
340
- description: () => Ct("command.saveAsFormat", { format: o.description }),
340
+ description: () => Dt("command.saveAsFormat", { format: o.description }),
341
341
  icon: "CSV" === t ? "FileDownloadAsCSV" : "Excel" === t ? "FileDownloadAsExcel" : "FileDownloadAsSheet",
342
342
  callback: () => {
343
343
  r(t);
@@ -365,7 +365,7 @@ function zt(e, t) {
365
365
  autoSelect: e === i.length - 1
366
366
  }).getEntireRange().copyFrom(t.getEntireRange());
367
367
  }
368
- }, vt("op.importData")), a.close();
368
+ }, Ct("op.importData")), a.close();
369
369
  } catch (e) {
370
370
  i.showError(e);
371
371
  }
@@ -376,7 +376,7 @@ function zt(e, t) {
376
376
  let t = e;
377
377
  if (t || R.canRead() || (t = await (async () => {
378
378
  const e = await R.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
379
- return ht.openFileDialog(t.length ? t.join(",") : "*.*");
379
+ return ft.openFileDialog(t.length ? t.join(",") : "*.*");
380
380
  })(), t)) return m(t);
381
381
  }
382
382
  }), e.updateCommand("insertDataFromURL", {
@@ -384,14 +384,14 @@ function zt(e, t) {
384
384
  callback: async (e) => {
385
385
  if (!e) {
386
386
  const t = await i.showInput({
387
- title: Ct("dialog.importFromWeb.title"),
388
- description: Ct("dialog.importFromWeb.description"),
389
- inputLabel: Ct("dialog.webAddress.inputLabel"),
387
+ title: Dt("dialog.importFromWeb.title"),
388
+ description: Dt("dialog.importFromWeb.description"),
389
+ inputLabel: Dt("dialog.webAddress.inputLabel"),
390
390
  initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
391
391
  propsInput: { style: { minWidth: "440px" } },
392
392
  options: [{
393
393
  id: "Import",
394
- label: () => Ct("dialog.import")
394
+ label: () => Dt("dialog.import")
395
395
  }]
396
396
  });
397
397
  if ("Import" !== t.option) return;
@@ -408,11 +408,11 @@ function zt(e, t) {
408
408
  }
409
409
  }), u) {
410
410
  const t = async () => !a() || "Open" === await i.showOptions({
411
- title: Ct("dialog.confirm.title"),
412
- description: Ct("dialog.unsavedChanges"),
411
+ title: Dt("dialog.confirm.title"),
412
+ description: Dt("dialog.unsavedChanges"),
413
413
  options: [{
414
414
  id: "Open",
415
- label: () => Ct("dialog.open")
415
+ label: () => Dt("dialog.open")
416
416
  }, "Cancel"],
417
417
  defaultOption: "Cancel"
418
418
  }), n = async (e = null) => {
@@ -435,14 +435,14 @@ function zt(e, t) {
435
435
  const r = "string" == typeof e ? void 0 : e?.title;
436
436
  if (!o) {
437
437
  const e = await i.showInput({
438
- title: Ct("dialog.openFromWeb.title"),
439
- description: Ct("dialog.openFromWeb.description"),
440
- inputLabel: Ct("dialog.webAddress.inputLabel"),
438
+ title: Dt("dialog.openFromWeb.title"),
439
+ description: Dt("dialog.openFromWeb.description"),
440
+ inputLabel: Dt("dialog.webAddress.inputLabel"),
441
441
  initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
442
442
  propsInput: { style: { minWidth: "440px" } },
443
443
  options: [{
444
444
  id: "Open",
445
- label: () => Ct("dialog.open")
445
+ label: () => Dt("dialog.open")
446
446
  }]
447
447
  });
448
448
  if ("Open" !== e.option) return;
@@ -462,9 +462,9 @@ function zt(e, t) {
462
462
  l = !0, s && (s.current = null);
463
463
  };
464
464
  }
465
- var Ht = _e(wt("studio:shortcutKeysDialog", () => import("./N8h_Ft32UJATwjlk.mjs")).load);
465
+ var Vt = ze(xt("studio:shortcutKeysDialog", () => import("./BjpAc-kSpia0lwjr.mjs")).load);
466
466
  y(), x();
467
- var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
467
+ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
468
468
  const t = (e) => {
469
469
  if ("function" != typeof e) return e;
470
470
  try {
@@ -474,9 +474,9 @@ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
474
474
  }
475
475
  }, o = (e, o) => {
476
476
  const r = t(e);
477
- return "string" == typeof r ? xt(r, o, ft.getActive()) : void 0;
477
+ return "string" == typeof r ? vt(r, o, kt.getActive()) : void 0;
478
478
  }, r = [];
479
- for (const n of e.names()) if (!Vt.has(n)) for (const a of e.keys(n)) {
479
+ for (const n of e.names()) if (!Ut.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,
@@ -491,22 +491,22 @@ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
491
491
  });
492
492
  }
493
493
  return { getAllCommands: () => r };
494
- }, Gt = (e) => {
495
- const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = q.useCommandScope(), c = ge(), { showModal: d } = Ge(), p = be(), u = Ee(a);
494
+ }, qt = (e) => {
495
+ const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = q.useCommandScope(), c = he(), { showModal: d } = qe(), p = ye(), u = We(a);
496
496
  u.current = a;
497
- const m = le(() => {
497
+ const m = ce(() => {
498
498
  const e = l?.getRoot().getRegistry();
499
499
  if (!e) return;
500
- const t = d(Ht, {
500
+ const t = d(Vt, {
501
501
  title: p("dialog.shortcutKeys.title"),
502
- commands: Ut(e),
502
+ commands: Gt(e),
503
503
  onDone: () => t.hide(),
504
504
  onLoadError: (e) => {
505
505
  t.destroy(), c.showError(e);
506
506
  }
507
507
  });
508
508
  }, [l, d]);
509
- Se(() => {
509
+ Te(() => {
510
510
  if (!l) return;
511
511
  const e = l.getRoot().contribution();
512
512
  return function(e, t) {
@@ -522,8 +522,8 @@ var Vt = /* @__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 } = 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
- Se(() => {
525
+ const g = mt("(prefers-color-scheme: dark)"), { themeMode: h } = ke(), [f, k] = fe(N.Mode, I[N.Mode]), [b, y] = fe(N.DarkGrid, I[N.DarkGrid]), [w, x] = fe(N.DarkImages, I[N.DarkImages]);
526
+ Te(() => {
527
527
  if (!l) return;
528
528
  const e = l.getRoot().contribution();
529
529
  return function(e, t) {
@@ -564,10 +564,10 @@ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
564
564
  y,
565
565
  x
566
566
  ]);
567
- const [v, C] = he(J.Active, null), [D, S] = We(() => ft.getActive());
568
- Se(() => ft.addChangeListener(S), []), Se(() => {
569
- v && v !== ft.getActive() && ft.setActive(v);
570
- }, [v]), Se(() => {
567
+ const [v, C] = fe(J.Active, null), [D, S] = Fe(() => kt.getActive());
568
+ Te(() => kt.addChangeListener(S), []), Te(() => {
569
+ v && v !== kt.getActive() && kt.setActive(v);
570
+ }, [v]), Te(() => {
571
571
  if (!l) return;
572
572
  const e = l.getRoot().contribution();
573
573
  return function(e, t) {
@@ -588,14 +588,14 @@ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
588
588
  D,
589
589
  C
590
590
  ]);
591
- const T = Te(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: E, isFullscreenEnabled: W, toggleFullscreen: F } = ce({ target: T });
592
- Se(() => {
591
+ const T = Ee(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: E, isFullscreenEnabled: W, toggleFullscreen: F } = de({ target: T });
592
+ Te(() => {
593
593
  if (!l) return;
594
594
  const e = l.getRoot().contribution();
595
595
  return function(e, t) {
596
596
  e.updateCommand("fullScreenToggle", {
597
597
  state: t.isFullscreenEnabled,
598
- disabledReasons: t.isFullscreenAvailable ? [] : [vt("reason.fullscreenUnavailable")],
598
+ disabledReasons: t.isFullscreenAvailable ? [] : [Ct("reason.fullscreenUnavailable")],
599
599
  icon: t.isFullscreenEnabled ? "FullScreenOff" : "FullScreen",
600
600
  callback: () => {
601
601
  t.toggleFullscreen();
@@ -613,7 +613,7 @@ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
613
613
  F
614
614
  ]);
615
615
  const P = H(!0);
616
- return Se(() => {
616
+ return Te(() => {
617
617
  if (!l) return;
618
618
  const e = l.getRoot().contribution();
619
619
  return function(e, t) {
@@ -624,9 +624,9 @@ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
624
624
  }
625
625
  });
626
626
  }(e, (e, t) => P.activate(e, t)), () => e.remove();
627
- }, [l, P]), Se(() => {
627
+ }, [l, P]), Te(() => {
628
628
  if (!l || !o) return;
629
- const e = l.getRoot().contribution(), t = zt(e, {
629
+ const e = l.getRoot().contribution(), t = Ht(e, {
630
630
  workbook: o,
631
631
  setWorkbook: r,
632
632
  workbookTitle: n ?? void 0,
@@ -646,9 +646,9 @@ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
646
646
  i
647
647
  ]), t;
648
648
  };
649
- Gt.displayName = "StudioCommandProvider";
650
- var qt = ({ renderWorkbook: e }) => {
651
- const t = q.useCommandResolver(), o = Ee(null), r = be(), [n, a] = We(null), i = De((e) => {
649
+ qt.displayName = "StudioCommandProvider";
650
+ var Xt = ({ renderWorkbook: e }) => {
651
+ const t = q.useCommandResolver(), o = We(null), r = ye(), [n, a] = Fe(null), i = Se((e) => {
652
652
  const o = e.dataTransfer;
653
653
  if (t && o) {
654
654
  if ("dragenter" === e.type || "dragover" === e.type) {
@@ -665,7 +665,7 @@ var qt = ({ renderWorkbook: e }) => {
665
665
  }
666
666
  e.preventDefault();
667
667
  }
668
- }, [t]), s = le((e) => {
668
+ }, [t]), s = ce((e) => {
669
669
  e.preventDefault();
670
670
  const r = n;
671
671
  if (a(null), r && t && (e.stopPropagation(), e.dataTransfer.files && e.dataTransfer.files.length > 0)) {
@@ -695,10 +695,10 @@ var qt = ({ renderWorkbook: e }) => {
695
695
  n ? n.then((e) => t.execute("openWorkbook", "file" === e?.kind ? e : r)).catch(() => t.execute("openWorkbook", r)) : t.execute("openWorkbook", r);
696
696
  }
697
697
  }
698
- }, [t, n]), l = Te(() => {
698
+ }, [t, n]), l = Ee(() => {
699
699
  if (!n) return null;
700
700
  const e = "insertImage" === n;
701
- return Ye(Je, {
701
+ return Ze(Qe, {
702
702
  className: "drop-overlay",
703
703
  sx: {
704
704
  position: "absolute",
@@ -709,12 +709,12 @@ var qt = ({ renderWorkbook: e }) => {
709
709
  display: "flex",
710
710
  justifyContent: "center",
711
711
  alignItems: "center",
712
- backgroundColor: (e) => pt(e.palette.primary.main, .46),
712
+ backgroundColor: (e) => ut(e.palette.primary.main, .46),
713
713
  outline: (e) => `2px dashed ${e.palette.primary.main}`,
714
714
  outlineOffset: "-6px",
715
715
  borderRadius: 2
716
716
  },
717
- children: Ze(at, {
717
+ children: Je(it, {
718
718
  elevation: 6,
719
719
  sx: {
720
720
  display: "flex",
@@ -726,11 +726,11 @@ var qt = ({ renderWorkbook: e }) => {
726
726
  color: "text.primary",
727
727
  "& .drop-overlay-icon": { color: "primary.main" }
728
728
  },
729
- children: [Ye(Z, {
729
+ children: [Ze(Z, {
730
730
  iconKey: e ? "InsertImage" : "FileOpen",
731
731
  className: "drop-overlay-icon",
732
732
  size: 32
733
- }), Ye(dt, {
733
+ }), Ze(pt, {
734
734
  variant: "h6",
735
735
  component: "span",
736
736
  children: r(e ? "drop.insertImage" : "drop.open")
@@ -738,7 +738,7 @@ var qt = ({ renderWorkbook: e }) => {
738
738
  })
739
739
  });
740
740
  }, [n, r]);
741
- return Ze(Xe, { children: [e({
741
+ return Je(Ye, { children: [e({
742
742
  ref: o,
743
743
  onDragStart: (e) => {
744
744
  if (e.target.src) {
@@ -751,52 +751,52 @@ var qt = ({ renderWorkbook: e }) => {
751
751
  onDragOver: i,
752
752
  onDrop: s
753
753
  }), l] });
754
- }, Xt = Ce((e) => {
754
+ }, Yt = De((e) => {
755
755
  const { workbook: t, setWorkbook: o, refDocumentTitle: r, titleWorkbook: n, setWorkbookTitle: a, isDirty: i, initialCommandAnchor: s, renderWorkbook: l, refSave: c, host: d } = e;
756
- return Ye(D, {
756
+ return Ze(D, {
757
757
  initialAnchor: s,
758
- children: Ye(Gt, {
758
+ children: Ze(qt, {
759
759
  workbook: t,
760
760
  setWorkbook: o,
761
761
  workbookTitle: n,
762
762
  isDirty: i,
763
763
  refSave: c,
764
764
  fullscreenTarget: d,
765
- children: Ye(qt, { renderWorkbook: l })
765
+ children: Ze(Xt, { renderWorkbook: l })
766
766
  })
767
767
  });
768
768
  });
769
- Xt.displayName = "CommandsWrapper";
770
- var Yt = {
771
- sort: wt("studio:sortDialog", () => import("./BJLg7uLC_b9f_1NJ.mjs")).load,
772
- hyperlink: wt("studio:hyperlinkDialog", () => import("./e5DJjIF9cuF9r_ub.mjs")).load,
773
- find: wt("studio:findReplaceWindow", () => import("./Dpzk8tIhwke93vji.mjs")).load,
774
- tableNew: wt("studio:tableNewDialog", () => import("./ymnOnQfaRduubuPk.mjs")).load,
775
- pivotTableNew: wt("studio:pivotTableNewDialog", () => import("./C-s3vhDAhWAnJntP.mjs")).load,
776
- sparklineNew: wt("studio:sparklineNewDialog", () => import("./DcIySopuRr-At74Y.mjs")).load,
777
- sparklineEdit: wt("studio:sparklineEditDialog", () => import("./CJX21c9lbs0lFHFH.mjs")).load,
778
- namedDetails: wt("studio:namedReferenceDialog", () => import("./CsnknBUOfx3FVTP_.mjs")).load,
779
- insertFunction: wt("studio:insertFunctionDialog", () => import("./B1WnY8cmRz7W1yrZ.mjs")).load,
780
- resizeHeader: wt("studio:resizeHeaderDialog", () => import("./CDj1mR4aA0wufjjK.mjs")).load,
781
- outlineSettings: wt("studio:outlineSettingsDialog", () => import("./DcIZXVJ5TJYu8Xf1.mjs")).load,
782
- fillSeries: wt("studio:fillSeriesDialog", () => import("./VeNMuIWoztqGMKsZ.mjs")).load,
783
- workbookStatistics: wt("studio:workbookStatisticsDialog", () => import("./D8RVd9U84QC8lAvP.mjs")).load,
784
- password: wt("studio:passwordDialog", () => import("./DLx_RKfK6MMX0tiy.mjs")).load,
785
- pivotValueSettings: wt("studio:pivotValueSettingsDialog", () => import("./B_TEor8YFmwmyhWj.mjs")).load
786
- }, Zt = ["find"], Jt = Ce((e) => {
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({
769
+ Yt.displayName = "CommandsWrapper";
770
+ var Zt = {
771
+ sort: xt("studio:sortDialog", () => import("./Dg5D5zMNzygUWk51.mjs")).load,
772
+ hyperlink: xt("studio:hyperlinkDialog", () => import("./Caf_ZRpLHj97cmhq.mjs")).load,
773
+ find: xt("studio:findReplaceWindow", () => import("./DLQ1x8uASVrHgCX2.mjs")).load,
774
+ tableNew: xt("studio:tableNewDialog", () => import("./wC3tHWypFfvBG8Fu.mjs")).load,
775
+ pivotTableNew: xt("studio:pivotTableNewDialog", () => import("./Dj16Fzha7o7DGv6z.mjs")).load,
776
+ sparklineNew: xt("studio:sparklineNewDialog", () => import("./Bzi3tHPQ3b7BGbwU.mjs")).load,
777
+ sparklineEdit: xt("studio:sparklineEditDialog", () => import("./CcLCu4TIukHypMCt.mjs")).load,
778
+ namedDetails: xt("studio:namedReferenceDialog", () => import("./eCWrCiaQxjPKI08p.mjs")).load,
779
+ insertFunction: xt("studio:insertFunctionDialog", () => import("./G7AEbATGEFC09W8Z.mjs")).load,
780
+ resizeHeader: xt("studio:resizeHeaderDialog", () => import("./CTsTUI34q8TBkdX5.mjs")).load,
781
+ outlineSettings: xt("studio:outlineSettingsDialog", () => import("./DomLgHu8aLIg6y2l.mjs")).load,
782
+ fillSeries: xt("studio:fillSeriesDialog", () => import("./BuDVpL6sgPNGIN7T.mjs")).load,
783
+ workbookStatistics: xt("studio:workbookStatisticsDialog", () => import("./BNJBkYIYk2zyHoU3.mjs")).load,
784
+ password: xt("studio:passwordDialog", () => import("./CbE22c6PmT_9BusX.mjs")).load,
785
+ pivotValueSettings: xt("studio:pivotValueSettingsDialog", () => import("./DrBGMrwOCXerStOS.mjs")).load
786
+ }, Jt = ["find"], Qt = De((e) => {
787
+ const { children: t } = e, o = At(), r = o ? o.enqueueSnackbar : () => {}, n = o ? o.closeSnackbar : () => {}, a = We(/* @__PURE__ */ new Set()), i = We(null), s = We(null), [l, c] = Fe({
788
788
  label: null,
789
789
  progress: null
790
- }), d = be(), p = gt.EmptyObject, u = Ue(p), m = qe(p), g = Ve(p), h = Ee(!1);
791
- Se(() => {
790
+ }), d = ye(), p = ht.EmptyObject, u = Ge(p), m = Xe(p), g = Ue(p), h = We(!1);
791
+ Te(() => {
792
792
  if (h.current) return;
793
793
  h.current = !0;
794
794
  const e = window, t = e.requestIdleCallback ?? ((e) => setTimeout(e, 500)), o = e.cancelIdleCallback ?? clearTimeout, r = t(() => {
795
- for (const e of Zt) u(e, Yt[e], { prewarm: !0 }).catch(() => {});
795
+ for (const e of Jt) u(e, Zt[e], { prewarm: !0 }).catch(() => {});
796
796
  });
797
797
  return () => o(r);
798
798
  }, []);
799
- const f = Ee(/* @__PURE__ */ new Set()), k = Te(() => {
799
+ const f = We(/* @__PURE__ */ new Set()), k = Ee(() => {
800
800
  const e = (e, t) => {
801
801
  if (t?.onceKey) {
802
802
  if (f.current.has(t.onceKey)) return;
@@ -811,9 +811,9 @@ var Yt = {
811
811
  },
812
812
  preventDuplicate: t?.preventDuplicate,
813
813
  persist: t?.persist ?? t?.type === Q.Error,
814
- action: (e) => Ye(nt, {
814
+ action: (e) => Ze(at, {
815
815
  onClick: () => n(e),
816
- children: Ye(Z, { iconKey: "Cancel" })
816
+ children: Ze(Z, { iconKey: "Cancel" })
817
817
  })
818
818
  };
819
819
  t?.enqueueProps && Object.assign(o, t.enqueueProps), e || console.log("message is 'null'", t), r(e ?? "Alert", o);
@@ -826,8 +826,8 @@ var Yt = {
826
826
  ...t,
827
827
  label: e
828
828
  });
829
- const r = se(() => {
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
+ const r = le(() => {
830
+ a.current.delete(o) && (a.current.size > 0 || (_e(i.current), s.current = null, c((e) => null === e.label && null === e.progress ? e : {
831
831
  label: null,
832
832
  progress: null
833
833
  })));
@@ -838,11 +838,11 @@ var Yt = {
838
838
  progress: o
839
839
  });
840
840
  }, (e) => {
841
- s.current = e, "string" == typeof e ? He(i.current, e) : c((t) => ({
841
+ s.current = e, "string" == typeof e ? Ve(i.current, e) : c((t) => ({
842
842
  ...t,
843
843
  label: e
844
844
  }));
845
- }), n = He(i.current, "string" == typeof e ? e : void 0);
845
+ }), n = Ve(i.current, "string" == typeof e ? e : void 0);
846
846
  return n ? n.then(() => r) : r;
847
847
  },
848
848
  showWindow: (e, t) => {
@@ -852,22 +852,22 @@ var Yt = {
852
852
  onKeyDown: (e) => {
853
853
  e.isDefaultPrevented() || e.isPropagationStopped() || o?.onKeyDown?.(e);
854
854
  }
855
- }, u(e, Yt[e], t);
855
+ }, u(e, Zt[e], t);
856
856
  },
857
857
  showOptions: m,
858
858
  showInput: g,
859
859
  showError: (t) => {
860
860
  let o, r = Q.Error, n = d("error.unknown");
861
- "string" == typeof t ? n = t : t instanceof Error && (o = t, t.message && (n = d(t.message))), t instanceof yt && (r = Q.Info), e(n, {
861
+ "string" == typeof t ? n = t : t instanceof Error && (o = t, t.message && (n = d(t.message))), t instanceof wt && (r = Q.Info), e(n, {
862
862
  type: r,
863
863
  enqueueProps: { error: o }
864
864
  });
865
865
  }
866
866
  };
867
- }, [d]), b = Te(() => Ye(Fe, {
867
+ }, [d]), b = Ee(() => Ze(Ae, {
868
868
  ref: i,
869
869
  autoStart: !1,
870
- icon: Ye(Ae, { sx: {
870
+ icon: Ze(Pe, { sx: {
871
871
  transform: "scale(0.7)",
872
872
  marginLeft: "-6px"
873
873
  } }),
@@ -884,19 +884,19 @@ var Yt = {
884
884
  pointerEvents: "none"
885
885
  }
886
886
  }), [l.label, l.progress]);
887
- return Ze(te, {
887
+ return Je(te, {
888
888
  notifier: k,
889
889
  children: [b, t]
890
890
  });
891
891
  });
892
- Jt.displayName = "StudioNotifierProvider";
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) => {
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) => {
892
+ Qt.displayName = "StudioNotifierProvider";
893
+ var eo = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", to = De(ve((e, 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 = me(), h = Ee(() => n.map((t) => {
895
895
  const o = s.getRegisteredTaskPane(t);
896
896
  if (!o) return null;
897
897
  let r = o.getIcon?.();
898
- "string" == typeof r && (r = Ye(Z, { iconKey: r }));
899
- const n = t === i, a = r ? Ye(Je, {
898
+ "string" == typeof r && (r = Ze(Z, { iconKey: r }));
899
+ const n = t === i, a = r ? Ze(Qe, {
900
900
  sx: {
901
901
  display: "inline-block",
902
902
  transform: m ? "rotate(-90deg)" : "rotate(90deg)",
@@ -904,20 +904,20 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
904
904
  color: (e) => e.palette.text.secondary
905
905
  },
906
906
  children: r
907
- }) : null, l = !r || !c && n, d = Ye(Je, {
907
+ }) : null, l = !r || !c && n, d = Ze(Qe, {
908
908
  sx: {
909
909
  display: "grid",
910
910
  gridTemplateColumns: l ? "1fr" : "0fr",
911
911
  opacity: l ? 1 : 0,
912
912
  transition: (e) => e.transitions.create(["grid-template-columns", "opacity"], { duration: e.transitions.duration.short })
913
913
  },
914
- children: Ye(Je, {
914
+ children: Ze(Qe, {
915
915
  sx: {
916
916
  overflow: "hidden",
917
917
  minWidth: 0,
918
918
  minHeight: 0
919
919
  },
920
- children: Ye(dt, {
920
+ children: Ze(pt, {
921
921
  component: "div",
922
922
  sx: {
923
923
  textTransform: "none",
@@ -930,13 +930,13 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
930
930
  })
931
931
  })
932
932
  });
933
- return Ye(st, {
933
+ return Ze(lt, {
934
934
  value: t,
935
- label: Ye(Me, {
935
+ label: Ze(Le, {
936
936
  disableInteractive: !0,
937
937
  title: o.getTitle() ?? "",
938
938
  placement: "left-start",
939
- children: Ze(Je, {
939
+ children: Je(Qe, {
940
940
  sx: {
941
941
  padding: "0px 0px",
942
942
  writingMode: m ? "vertical-lr" : "vertical-rl",
@@ -956,7 +956,7 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
956
956
  minHeight: "0px",
957
957
  borderRadius: "4px"
958
958
  },
959
- className: Dt("taskpane-strip-item", { "Mui-selected": n }),
959
+ className: St("taskpane-strip-item", { "Mui-selected": n }),
960
960
  onClick: () => e.onSelect(t)
961
961
  }, t);
962
962
  }), [
@@ -967,8 +967,8 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
967
967
  m,
968
968
  c,
969
969
  g
970
- ]), f = de(t, () => ({ isTaskPaneStrip: () => !0 }), []), k = Te(() => Dt("taskpane-strip", p), [p]);
971
- return Ye(Je, {
970
+ ]), f = pe(t, () => ({ isTaskPaneStrip: () => !0 }), []), k = Ee(() => St("taskpane-strip", p), [p]);
971
+ return Ze(Qe, {
972
972
  ref: f,
973
973
  className: k,
974
974
  sx: {
@@ -978,7 +978,7 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
978
978
  ...l
979
979
  },
980
980
  ...u,
981
- children: Ye(lt, {
981
+ children: Ze(ct, {
982
982
  orientation: "vertical",
983
983
  variant: "scrollable",
984
984
  value: i,
@@ -996,10 +996,10 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
996
996
  children: h
997
997
  })
998
998
  });
999
- })), to = (e) => {
1000
- const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s = Ee(null), l = be();
1001
- return Ye(rt, {
1002
- className: Dt({ "Mui-selected": a }),
999
+ })), oo = (e) => {
1000
+ const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s = We(null), l = ye();
1001
+ return Ze(nt, {
1002
+ className: St({ "Mui-selected": a }),
1003
1003
  sx: {
1004
1004
  display: "flex",
1005
1005
  flex: "1 1 %0",
@@ -1013,11 +1013,11 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1013
1013
  opacity: 1,
1014
1014
  transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
1015
1015
  },
1016
- backgroundColor: (e) => pt(e.palette.action.hover, .03),
1017
- borderBottom: `solid ${Qt} 1px`
1016
+ backgroundColor: (e) => ut(e.palette.action.hover, .03),
1017
+ borderBottom: `solid ${eo} 1px`
1018
1018
  },
1019
1019
  ...i,
1020
- children: Ze(Je, {
1020
+ children: Je(Qe, {
1021
1021
  sx: {
1022
1022
  display: "flex",
1023
1023
  flex: "1 1 10%",
@@ -1028,15 +1028,15 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1028
1028
  marginLeft: (e) => e.spacing(1),
1029
1029
  marginRight: (e) => e.spacing(1)
1030
1030
  },
1031
- children: [Ye(Je, {
1031
+ children: [Ze(Qe, {
1032
1032
  sx: {
1033
1033
  flex: "1 1 100%",
1034
1034
  paddingLeft: (e) => e.spacing(1)
1035
1035
  },
1036
1036
  children: t
1037
- }), Ye(je, {
1037
+ }), Ze(Oe, {
1038
1038
  label: l("taskPane.close"),
1039
- children: Ye(nt, {
1039
+ children: Ze(at, {
1040
1040
  "aria-label": "close",
1041
1041
  sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
1042
1042
  touchRippleRef: s,
@@ -1046,14 +1046,14 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1046
1046
  onPointerUp: () => {
1047
1047
  r();
1048
1048
  },
1049
- children: Ye(Z, { iconKey: "Close" })
1049
+ children: Ze(Z, { iconKey: "Close" })
1050
1050
  })
1051
1051
  })]
1052
1052
  })
1053
1053
  });
1054
- }, oo = xe((e, t) => {
1055
- const { model: o, side: r, ...n } = e, a = mt(), i = `solid ${Qt} 1px`, s = `${a.shape.borderRadius ?? 4}px`, l = `${a.spacing?.(.5) ?? 4}px`;
1056
- return Ye(F, {
1054
+ }, ro = ve((e, t) => {
1055
+ const { model: o, side: r, ...n } = e, a = gt(), i = `solid ${eo} 1px`, s = `${a.shape.borderRadius ?? 4}px`, l = `${a.spacing?.(.5) ?? 4}px`;
1056
+ return Ze(F, {
1057
1057
  model: o,
1058
1058
  ref: t,
1059
1059
  propsFrame: { style: {
@@ -1062,8 +1062,8 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1062
1062
  marginBottom: l
1063
1063
  } },
1064
1064
  alwaysShowStrip: !0,
1065
- componentTitle: to,
1066
- componentStrip: eo,
1065
+ componentTitle: oo,
1066
+ componentStrip: to,
1067
1067
  side: r,
1068
1068
  ...e,
1069
1069
  onOpen: () => {
@@ -1074,12 +1074,12 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1074
1074
  },
1075
1075
  ...n
1076
1076
  });
1077
- }), ro = "_styled-resizer_fdl5y_3", no = {}, ao = {
1077
+ }), no = "_styled-resizer_li52w_3", ao = {}, io = {
1078
1078
  flex: "1 1 100%",
1079
1079
  display: "flex",
1080
1080
  boxSizing: "border-box"
1081
- }, io = Ce(xe((e, t) => {
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
+ }, so = De(ve((e, t) => {
1082
+ const { mainElement: o, sidebarElement: r, position: n, persistKey: a, onPositionChange: i, className: s, style: l, taskSide: c = "right", ...d } = e, [p, u] = fe(a ?? null, ao), m = gt(), [g, { width: h }] = ge(), f = h > 530 || 0 === h, k = We(null);
1083
1083
  let b, y, w = null, x = 4, v = 13;
1084
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);
1085
1085
  let C, D = o, S = r;
@@ -1119,23 +1119,23 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1119
1119
  minAfter: f ? "280px" : "120px",
1120
1120
  splitDirection: f ? "row" : "column"
1121
1121
  });
1122
- const N = Tt([
1122
+ const N = Et([
1123
1123
  k,
1124
1124
  g,
1125
1125
  t
1126
1126
  ]);
1127
- return Ye(ae, {
1127
+ return Ze(ae, {
1128
1128
  ref: N,
1129
1129
  className: s,
1130
1130
  style: l ? {
1131
- ...ao,
1131
+ ...io,
1132
1132
  ...l
1133
- } : ao,
1133
+ } : io,
1134
1134
  ...d,
1135
1135
  ...C,
1136
1136
  onPositionChange: I,
1137
1137
  propsResizer: {
1138
- className: Dt("styled-resizer", ro),
1138
+ className: St("styled-resizer", no),
1139
1139
  style: {
1140
1140
  minWidth: f ? "7px" : void 0,
1141
1141
  minHeight: f ? void 0 : "6px",
@@ -1150,15 +1150,15 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1150
1150
  propsPaneAfter: y
1151
1151
  });
1152
1152
  }));
1153
- io.displayName = "StudioSplitPane";
1154
- var so = () => Ye("div", { style: {
1153
+ so.displayName = "StudioSplitPane";
1154
+ var lo = () => Ze("div", { style: {
1155
1155
  flex: "none",
1156
1156
  height: 0,
1157
1157
  borderTop: "solid var(--sxl-color-base-border, light-dark(rgba(0, 0, 0, 0.26), rgba(255, 255, 255, 0.3))) 1px"
1158
- } }), lo = (e, t) => {
1159
- const o = (e) => Ye(ye.Fragment, { children: t[e] }, e);
1158
+ } }), co = (e, t) => {
1159
+ const o = (e) => Ze(we.Fragment, { children: t[e] }, e);
1160
1160
  if ("bottom" === e) {
1161
- const e = t.statusBar && t.formulaBar ? Ye(so, {}, "divider") : null;
1161
+ const e = t.statusBar && t.formulaBar ? Ze(lo, {}, "divider") : null;
1162
1162
  return [
1163
1163
  o("toolbar"),
1164
1164
  o("main"),
@@ -1173,41 +1173,41 @@ var so = () => Ye("div", { style: {
1173
1173
  o("main"),
1174
1174
  o("statusBar")
1175
1175
  ];
1176
- }, co = (e) => {
1176
+ }, po = (e) => {
1177
1177
  const { groups: t } = e;
1178
- return Ye(Je, {
1178
+ return Ze(Qe, {
1179
1179
  role: "menu",
1180
1180
  sx: {
1181
1181
  paddingTop: "4px",
1182
1182
  paddingBottom: "4px"
1183
1183
  },
1184
- children: t.map((e, t) => Ze(we, { children: [t > 0 ? Ye(Ie, { orientation: "horizontal" }) : null, e.map((e) => Ye(Re, {
1184
+ children: t.map((e, t) => Je(xe, { children: [t > 0 ? Ze(Ne, { orientation: "horizontal" }) : null, e.map((e) => Ze(je, {
1185
1185
  role: void 0 === e.checked ? "menuitem" : "menuitemradio",
1186
1186
  "aria-checked": e.checked,
1187
1187
  disabled: e.disabled,
1188
1188
  selected: e.checked,
1189
- icon: e.checked ? Ye($e, {}) : void 0,
1189
+ icon: e.checked ? Ze(Me, {}) : void 0,
1190
1190
  onClick: e.run,
1191
1191
  children: e.label
1192
1192
  }, e.key))] }, t))
1193
1193
  });
1194
- }, po = (e) => Ye(co, { ...e }), uo = (e) => {
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
+ }, uo = (e) => Ze(po, { ...e }), mo = (e) => {
1195
+ const { pivot: t, name: o, source: r, onError: n } = e, s = ye(), l = t.getWorksheet(), c = l.getProtection().isLocked(), d = Ee(() => ({ scope: l.getName() }), [l]), p = ce((e, o) => {
1196
1196
  "accept" === o.reason && e !== t.getName() && t.setName(e).catch(n);
1197
- }, [t, n]), u = le((e) => {
1198
- if (0 === e.length || e.length > 255) throw new bt(s("error.pivotTable.nameInvalid"));
1197
+ }, [t, n]), u = ce((e) => {
1198
+ if (0 === e.length || e.length > 255) throw new yt(s("error.pivotTable.nameInvalid"));
1199
1199
  const o = l.getPivotTables().getByName(e);
1200
- if (o && o.getName() !== t.getName()) throw new bt(s("error.pivotTable.nameExists"));
1200
+ if (o && o.getName() !== t.getName()) throw new yt(s("error.pivotTable.nameExists"));
1201
1201
  }, [
1202
1202
  l,
1203
1203
  t,
1204
1204
  s
1205
- ]), m = le((e, o) => {
1205
+ ]), m = ce((e, o) => {
1206
1206
  if ("accept" !== o.reason) return;
1207
- const r = Ot(e);
1207
+ const r = $t(e);
1208
1208
  r && t.setSource("string" == typeof r ? r : r.at(0)).catch(n);
1209
1209
  }, [t, n]);
1210
- return Ze(Je, {
1210
+ return Je(Qe, {
1211
1211
  className: "sxl-pivot-table-header",
1212
1212
  sx: {
1213
1213
  display: "flex",
@@ -1215,14 +1215,14 @@ var so = () => Ye("div", { style: {
1215
1215
  rowGap: (e) => e.spacing(1),
1216
1216
  paddingTop: (e) => e.spacing(1)
1217
1217
  },
1218
- children: [Ye(i, {
1218
+ children: [Ze(i, {
1219
1219
  formName: "name",
1220
1220
  value: o,
1221
1221
  changeOn: "done",
1222
1222
  onDone: p,
1223
1223
  onValidate: u,
1224
1224
  disabled: c
1225
- }), Ye(a, {
1225
+ }), Ze(a, {
1226
1226
  grammar: "reference",
1227
1227
  formName: "source",
1228
1228
  label: s("pivotTableNew.source"),
@@ -1235,18 +1235,18 @@ var so = () => Ye("div", { style: {
1235
1235
  disabled: c || null === r
1236
1236
  })]
1237
1237
  });
1238
- }, mo = (e) => Ye(uo, { ...e }), go = (e) => Ye(E, {
1239
- renderMenu: po,
1238
+ }, go = (e) => Ze(mo, { ...e }), ho = (e) => Ze(E, {
1239
+ renderMenu: uo,
1240
1240
  renderFilter: g,
1241
- renderHeader: mo,
1241
+ renderHeader: go,
1242
1242
  ...e
1243
- }), ho = ze(wt("studio:dataValidationDetailsTaskPane", () => import("./BXKb4oUGpTWCF8ni.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), fo = Pt({
1244
- EagerStudio: () => wo,
1245
- default: () => wo
1243
+ }), fo = He(xt("studio:dataValidationDetailsTaskPane", () => import("./BML2jZO-vGc6RS51.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), ko = It({
1244
+ EagerStudio: () => xo,
1245
+ default: () => xo
1246
1246
  });
1247
1247
  d(), S.registerTaskPane({
1248
1248
  key: A.PivotTable,
1249
- component: go
1249
+ component: ho
1250
1250
  }, !0), (() => {
1251
1251
  X.register({
1252
1252
  key: "changeShapeGallery",
@@ -1254,14 +1254,14 @@ d(), S.registerTaskPane({
1254
1254
  order: -1,
1255
1255
  divider: "after"
1256
1256
  } },
1257
- render: (e) => Ye(C, {
1257
+ render: (e) => Ze(C, {
1258
1258
  ...e,
1259
1259
  commandKey: "changeShape",
1260
- excludeCategories: Nt
1260
+ excludeCategories: Rt
1261
1261
  })
1262
1262
  }, !0);
1263
- L("shape", () => import("./D_dyzcsGBlCNrIVJ.mjs").then((e) => e.ShapeFormatPanel));
1264
- })(), L("chart", () => import("./CY8Mel9qXoQcoE6D.mjs").then((e) => e.ChartFormatPanel)), (() => {
1263
+ L("shape", () => import("./DY96atQfGYmZ90TD.mjs").then((e) => e.ShapeFormatPanel));
1264
+ })(), L("chart", () => import("./C4qWN7D3UW8jLaZK.mjs").then((e) => e.ChartFormatPanel)), (() => {
1265
1265
  const e = q.DefaultCommandButtonRegistry, t = [];
1266
1266
  t.push(e.register({
1267
1267
  key: "changePictureOptions",
@@ -1299,10 +1299,10 @@ d(), S.registerTaskPane({
1299
1299
  members: [
1300
1300
  {
1301
1301
  key: "cropToShapeGallery",
1302
- render: (e) => Ye(C, {
1302
+ render: (e) => Ze(C, {
1303
1303
  ...e,
1304
1304
  commandKey: "cropToShape",
1305
- excludeCategories: Nt
1305
+ excludeCategories: Rt
1306
1306
  })
1307
1307
  },
1308
1308
  "cropAspectOptions",
@@ -1317,12 +1317,12 @@ d(), S.registerTaskPane({
1317
1317
  }, !0));
1318
1318
  })(), c(), S.registerTaskPane({
1319
1319
  key: A.DataValidation,
1320
- component: ho
1320
+ component: fo
1321
1321
  }, !0), S.registerTaskPane({
1322
1322
  key: A.ConditionalFormat,
1323
- component: It
1323
+ component: Nt
1324
1324
  }, !0), l(), s(), r(), t(), e(), n(), w();
1325
- var ko = () => {
1325
+ var bo = () => {
1326
1326
  let e, t;
1327
1327
  const o = new Promise((o, r) => {
1328
1328
  e = o, t = r;
@@ -1337,147 +1337,147 @@ var ko = () => {
1337
1337
  }
1338
1338
  };
1339
1339
  return o.catch(() => {}), r;
1340
- }, bo = (e, t) => {
1340
+ }, yo = (e, t) => {
1341
1341
  if (!e) return {};
1342
1342
  const { colorSchemes: o, ...r } = e, n = o?.[t ? "dark" : "light"];
1343
- return n && "object" == typeof n ? gt.deepMerge(r, n) : r;
1344
- }, yo = "taskPanePosition", wo = Ce(xe((e, t) => {
1345
- 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: C, workbook: D, onWorkbookChange: S, logo: T, topLeft: E, topRight: F, muiTheme: A, tokens: L, cssBaseline: H, autoFocus: X = !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: Ae, renderToolbar: Ie } = e, Re = Ee(null), je = Ee(null), $e = Ee(null), Me = le(() => {
1346
- $e.current?.getNamedCollectionEditorElement?.()?.focus?.();
1347
- }, []), 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);
1348
- Qe.current = Xe;
1349
- const et = ke(), tt = Te(() => ({
1350
- light: Be(!1, gt.deepMerge(bo(A, !1), v(et?.light))),
1351
- dark: Be(!0, gt.deepMerge(bo(A, !0), v(et?.dark)))
1343
+ return n && "object" == typeof n ? ht.deepMerge(r, n) : r;
1344
+ }, wo = "taskPanePosition", xo = De(ve((e, t) => {
1345
+ 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 = vo, taskPaneSide: x = "right", onKeyDown: C, workbook: D, onWorkbookChange: S, logo: T, topLeft: E, topRight: F, muiTheme: A, tokens: L, cssBaseline: H, autoFocus: X = !1, title: Q, onDirtyChange: te, propsDocumentTitle: ae, renderDocumentLoading: le = b, propsDocumentLoading: de, propsWorkbook: me, showFormulaBar: ge, propsFormulaBar: he, renderFormulaBar: ye, formulaBarPlacement: we, virtualKeyboard: xe = "float", editable: ve, showStatusBar: Ce, propsStatusBar: De, renderStatusBar: Ae, propsToolbar: Pe, renderToolbar: Ne } = e, je = We(null), Oe = We(null), Me = We(null), Le = ce(() => {
1346
+ Me.current?.getNamedCollectionEditorElement?.()?.focus?.();
1347
+ }, []), Be = ((e, t = "undefined" == typeof window ? "mouse" : oe.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(we), _e = "bottom" === Be ? xe : "none", { inset: ze, offsetTop: He } = ue("resize" === _e), Ve = ce(d ?? (() => {}), [d]), Ue = ce(te ?? (() => {}), [te]), Ge = ae?.placeHolder, [qe] = fe(N.Mode, I[N.Mode]), { themeMode: Xe } = ke({ mode: qe ?? void 0 }), [Ye] = fe(J.Active, null), et = We(Ye);
1348
+ et.current = Ye;
1349
+ const tt = be(), ot = Ee(() => ({
1350
+ light: Ke(!1, ht.deepMerge(yo(A, !1), v(tt?.light))),
1351
+ dark: Ke(!0, ht.deepMerge(yo(A, !0), v(tt?.dark)))
1352
1352
  }), [
1353
1353
  A,
1354
- et?.light,
1355
- et?.dark
1356
- ]), rt = "dark" === qe, nt = Te(() => u(tt.light, tt.dark, `.${n}`, L), [
1357
- tt,
1354
+ tt?.light,
1355
+ tt?.dark
1356
+ ]), nt = "dark" === Xe, at = Ee(() => u(ot.light, ot.dark, `.${n}`, L), [
1357
+ ot,
1358
1358
  n,
1359
1359
  L
1360
- ]), st = Te(() => O("sxl-defaults", `.${n}`), [n]), lt = B(), [dt, pt] = We(() => D ?? null);
1361
- Se(() => {
1362
- pt(D ?? null);
1360
+ ]), lt = Ee(() => O("sxl-defaults", `.${n}`), [n]), ct = B(), [pt, ut] = Fe(() => D ?? null);
1361
+ Te(() => {
1362
+ ut(D ?? null);
1363
1363
  }, [D]);
1364
- const [ut, mt] = We(0), ht = Ee(null);
1365
- ht.current || (ht.current = ko());
1366
- const kt = z(dt, {
1364
+ const [mt, gt] = Fe(0), ft = We(null);
1365
+ ft.current || (ft.current = bo());
1366
+ const bt = z(pt, {
1367
1367
  io: R,
1368
- defaultTheme: lt.getDefaultTheme(),
1369
- reloadKey: ut
1370
- }), bt = "loaded" === kt.status ? kt.workbook : null, yt = Te(() => "error" === kt.status ? {
1368
+ defaultTheme: ct.getDefaultTheme(),
1369
+ reloadKey: mt
1370
+ }), yt = "loaded" === bt.status ? bt.workbook : null, wt = Ee(() => "error" === bt.status ? {
1371
1371
  status: "error",
1372
- error: kt.error
1373
- } : "loaded" === kt.status ? {
1372
+ error: bt.error
1373
+ } : "loaded" === bt.status ? {
1374
1374
  status: "loaded",
1375
- workbook: kt.workbook
1376
- } : { status: "loading" }, [kt]);
1377
- Se(() => {
1378
- ht.current.settled && (ht.current = ko());
1379
- }, [dt, ut]), Se(() => {
1380
- if ("loaded" === yt.status) {
1381
- const e = ht.current, t = yt.workbook;
1375
+ workbook: bt.workbook
1376
+ } : { status: "loading" }, [bt]);
1377
+ Te(() => {
1378
+ ft.current.settled && (ft.current = bo());
1379
+ }, [pt, mt]), Te(() => {
1380
+ if ("loaded" === wt.status) {
1381
+ const e = ft.current, t = wt.workbook;
1382
1382
  t.whenFontsReady().then(() => e.resolve(t), () => e.resolve(t));
1383
- } else "error" === yt.status && (He?.(yt.error), ht.current.reject(yt.error));
1384
- }, [yt]);
1385
- const [wt, xt] = We(null);
1386
- bt && !wt && xt(bt);
1387
- const vt = bt && wt && bt !== wt ? bt : null, Ct = Ee(vt);
1388
- Ct.current = vt;
1389
- const Dt = Ee(wt);
1390
- Dt.current = wt;
1391
- const Tt = Ee([]), Et = De((e) => {
1392
- const t = Dt.current;
1393
- t && Tt.current.push(t), pt(e);
1383
+ } else "error" === wt.status && (Ve?.(wt.error), ft.current.reject(wt.error));
1384
+ }, [wt]);
1385
+ const [xt, vt] = Fe(null);
1386
+ yt && !xt && vt(yt);
1387
+ const Ct = yt && xt && yt !== xt ? yt : null, Dt = We(Ct);
1388
+ Dt.current = Ct;
1389
+ const St = We(xt);
1390
+ St.current = xt;
1391
+ const Et = We([]), Wt = Se((e) => {
1392
+ const t = St.current;
1393
+ t && Et.current.push(t), ut(e);
1394
1394
  }, []);
1395
- Se(() => {
1396
- const e = Tt.current;
1395
+ Te(() => {
1396
+ const e = Et.current;
1397
1397
  if (0 !== e.length) {
1398
- Tt.current = e.filter((e) => e === wt);
1398
+ Et.current = e.filter((e) => e === xt);
1399
1399
  for (let t = 0; t < e.length; t++) {
1400
1400
  const o = e[t];
1401
- if (o !== wt) try {
1401
+ if (o !== xt) try {
1402
1402
  o.close();
1403
1403
  } catch (e) {
1404
1404
  console.warn("Unable to close the replaced workbook", e);
1405
1405
  }
1406
1406
  }
1407
1407
  }
1408
- }, [wt]);
1409
- const Ft = xe ? null : wt, At = _(), Pt = Te(() => {
1410
- const e = Ft?.getSelectedWorksheet() ?? Ft?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
1411
- return e ? $(e, { referenceMode: At }) : null;
1412
- }, [Ft, At]), It = xe ?? Pt, Nt = Ee(It);
1413
- Nt.current = It, Se(() => {
1414
- if (!It) return;
1415
- let e = It.getSession();
1416
- return It.subscribe(() => {
1408
+ }, [xt]);
1409
+ const At = ve ? null : xt, Pt = _(), It = Ee(() => {
1410
+ const e = At?.getSelectedWorksheet() ?? At?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
1411
+ return e ? $(e, { referenceMode: Pt }) : null;
1412
+ }, [At, Pt]), Nt = ve ?? It, Rt = We(Nt);
1413
+ Rt.current = Nt, Te(() => {
1414
+ if (!Nt) return;
1415
+ let e = Nt.getSession();
1416
+ return Nt.subscribe(() => {
1417
1417
  const t = e;
1418
- if (e = It.getSession(), !t || e) return;
1418
+ if (e = Nt.getSession(), !t || e) return;
1419
1419
  if ("formula-bar" !== t.getActiveEditorId()) return;
1420
- const o = $e.current;
1421
- (o?.isFocusWithin?.() ?? o?.contains?.(document.activeElement)) && Re.current?.focus();
1420
+ const o = Me.current;
1421
+ (o?.isFocusWithin?.() ?? o?.contains?.(document.activeElement)) && je.current?.focus();
1422
1422
  });
1423
- }, [It]);
1424
- const Rt = U(wt), { isDirty: jt, saveState: Ot } = G(wt, R), $t = V(wt), Lt = Ee(Ot), Bt = Ee(null);
1425
- Lt.current = Ot;
1426
- const _t = De(() => Lt.current?.isDirty() ?? !1, []), zt = Ee(yt);
1427
- zt.current = yt;
1428
- const [Ht, Vt] = We(null), Ut = Q ?? ae?.title, [Gt, qt] = We(null);
1429
- Se(() => {
1430
- qt(null);
1431
- }, [wt]);
1432
- const Yt = Ut ?? Gt ?? Rt ?? "";
1433
- Se(() => {
1434
- Ve?.(jt);
1435
- }, [jt]);
1436
- const Zt = le(S ?? (() => {}), [S]);
1437
- Se(() => {
1438
- Zt?.(bt);
1439
- }, [bt]);
1440
- const Qt = Ee(bt);
1441
- Qt.current = bt, K(wt, "onViewChange");
1442
- const eo = Te(() => Ye(Pe, {
1423
+ }, [Nt]);
1424
+ const jt = U(xt), { isDirty: Ot, saveState: $t } = G(xt, R), Mt = V(xt), Bt = We($t), Kt = We(null);
1425
+ Bt.current = $t;
1426
+ const zt = Se(() => Bt.current?.isDirty() ?? !1, []), Ht = We(wt);
1427
+ Ht.current = wt;
1428
+ const [Vt, Ut] = Fe(null), Gt = Q ?? ae?.title, [qt, Xt] = Fe(null);
1429
+ Te(() => {
1430
+ Xt(null);
1431
+ }, [xt]);
1432
+ const Zt = Gt ?? qt ?? jt ?? "";
1433
+ Te(() => {
1434
+ Ue?.(Ot);
1435
+ }, [Ot]);
1436
+ const Jt = ce(S ?? (() => {}), [S]);
1437
+ Te(() => {
1438
+ Jt?.(yt);
1439
+ }, [yt]);
1440
+ const eo = We(yt);
1441
+ eo.current = yt, K(xt, "onViewChange");
1442
+ const to = Ee(() => Ze(Ie, {
1443
1443
  groupKey: "helpOptions",
1444
1444
  disableHover: !0,
1445
1445
  sx: { padding: "0" },
1446
1446
  propsButton: { sx: { maxHeight: "22px" } }
1447
- }), []), [to, oo] = We(null), ro = De((e) => {
1448
- oo(e);
1447
+ }), []), [oo, ro] = Fe(null), no = Se((e) => {
1448
+ ro(e);
1449
1449
  }, []);
1450
- Se(() => {
1450
+ Te(() => {
1451
1451
  Y.prefetch([Y.getActive(), W]).catch((e) => {
1452
1452
  console.warn("Icons could not be loaded:", e);
1453
1453
  });
1454
1454
  }, []);
1455
- const no = Ee(null);
1456
- no.current || (no.current = ko());
1457
- const ao = Ee(null), so = De(() => ao.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? no.current.promise, []), co = le(async (e) => {
1458
- const t = Qe.current;
1459
- t && t !== ft.getActive() && await ft.setActive(t), await q.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);
1460
- }, []), po = Ee(null), uo = De((e) => {
1455
+ const ao = We(null);
1456
+ ao.current || (ao.current = bo());
1457
+ const io = We(null), lo = Se(() => io.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? ao.current.promise, []), po = ce(async (e) => {
1458
+ const t = et.current;
1459
+ t && t !== kt.getActive() && await kt.setActive(t), await q.DefaultCommandCatalogService.prefetch(t ?? void 0), Ut(e), io.current = e.source, ao.current.settled || ao.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
1460
+ }, []), uo = We(null), mo = Se((e) => {
1461
1461
  let t = null, r = {
1462
1462
  readOnly: !0,
1463
1463
  ...ae
1464
1464
  };
1465
- return ae?.hidden || (t = Ye(o, {
1465
+ return ae?.hidden || (t = Ze(o, {
1466
1466
  ...r,
1467
1467
  style: {
1468
1468
  maxWidth: "100%",
1469
1469
  ...ae?.style
1470
1470
  },
1471
- workbook: e.workbook ?? Re.current,
1472
- ref: po,
1473
- title: Yt,
1474
- modified: jt,
1475
- encrypted: $t,
1476
- placeHolder: Ue,
1471
+ workbook: e.workbook ?? je.current,
1472
+ ref: uo,
1473
+ title: Zt,
1474
+ modified: Ot,
1475
+ encrypted: Mt,
1476
+ placeHolder: Ge,
1477
1477
  onTitleChange: (e) => {
1478
- qt(e), ae?.onTitleChange?.(e);
1478
+ Xt(e), ae?.onTitleChange?.(e);
1479
1479
  }
1480
- })), Ye(Kt, {
1480
+ })), Ze(_t, {
1481
1481
  ...e,
1482
1482
  logo: T,
1483
1483
  mainElement: t,
@@ -1486,15 +1486,15 @@ var ko = () => {
1486
1486
  });
1487
1487
  }, [
1488
1488
  T,
1489
- Yt,
1490
- jt,
1491
- $t,
1489
+ Zt,
1490
+ Ot,
1491
+ Mt,
1492
1492
  ae,
1493
1493
  E,
1494
1494
  F
1495
1495
  ]);
1496
- Se(() => {
1497
- const e = Re.current;
1496
+ Te(() => {
1497
+ const e = je.current;
1498
1498
  if (!e) return;
1499
1499
  const t = (t) => {
1500
1500
  (t.ctrlKey || t.metaKey || "native" !== ne.getWheelOwner(t, e)) && t.preventDefault();
@@ -1502,12 +1502,12 @@ var ko = () => {
1502
1502
  return e.addEventListener("wheel", t, { passive: !1 }), () => {
1503
1503
  e.removeEventListener("wheel", t);
1504
1504
  };
1505
- }, [Ht]);
1506
- const [mo, go] = We(null);
1507
- Se(() => {
1508
- go(Ht?.source?.getCommandScope?.() ?? null);
1509
- }, [Ht]);
1510
- const ho = Te(() => ({
1505
+ }, [Vt]);
1506
+ const [go, ho] = Fe(null);
1507
+ Te(() => {
1508
+ ho(Vt?.source?.getCommandScope?.() ?? null);
1509
+ }, [Vt]);
1510
+ const fo = Ee(() => ({
1511
1511
  "& .SnackbarContainer-root": { position: "absolute !important" },
1512
1512
  "& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
1513
1513
  "& .notistack-Snackbar": { minWidth: "unset" },
@@ -1520,46 +1520,46 @@ var ko = () => {
1520
1520
  whiteSpace: "pre-wrap"
1521
1521
  },
1522
1522
  "*": { userSelect: "none" }
1523
- }), []), [fo, wo] = We(null), [, vo] = he(null, !1);
1524
- Se(() => {
1525
- vo(null != fo);
1526
- }, [fo, vo]);
1527
- const Co = De((e) => w({
1528
- model: wt,
1523
+ }), []), [ko, xo] = Fe(null), [, Co] = fe(null, !1);
1524
+ Te(() => {
1525
+ Co(null != ko);
1526
+ }, [ko, Co]);
1527
+ const Do = Se((e) => w({
1528
+ model: xt,
1529
1529
  side: x,
1530
1530
  ...e,
1531
1531
  ...y
1532
1532
  }), [
1533
- wt,
1533
+ xt,
1534
1534
  x,
1535
1535
  y
1536
- ]), Do = Ee(r);
1537
- Do.current = r, de(t, () => ({
1536
+ ]), So = We(r);
1537
+ So.current = r, pe(t, () => ({
1538
1538
  isStudioElement: () => !0,
1539
1539
  save: (e) => {
1540
- const t = Bt.current;
1540
+ const t = Kt.current;
1541
1541
  return t ? t(e) : Promise.reject(/* @__PURE__ */ new Error("The studio cannot save: no workbook, or the backing store cannot write."));
1542
1542
  },
1543
- getWorkbookElement: () => Re.current,
1544
- getWorkbook: () => Qt.current ?? null,
1545
- isDirty: () => Lt.current?.isDirty() ?? !1,
1546
- getEditable: () => Nt.current,
1547
- getFormulaBarElement: () => $e.current ?? null,
1548
- focus: () => Re.current?.focus(),
1549
- whenReady: () => (ht.current || (ht.current = ko()), ht.current.promise),
1550
- getWorkbookState: () => zt.current,
1551
- retry: () => mt((e) => e + 1)
1543
+ getWorkbookElement: () => je.current,
1544
+ getWorkbook: () => eo.current ?? null,
1545
+ isDirty: () => Bt.current?.isDirty() ?? !1,
1546
+ getEditable: () => Rt.current,
1547
+ getFormulaBarElement: () => Me.current ?? null,
1548
+ focus: () => je.current?.focus(),
1549
+ whenReady: () => (ft.current || (ft.current = bo()), ft.current.promise),
1550
+ getWorkbookState: () => Ht.current,
1551
+ retry: () => gt((e) => e + 1)
1552
1552
  }), [], r);
1553
- const So = Ee(!1), To = le((e, t) => {
1554
- t === Ct.current && requestAnimationFrame(() => requestAnimationFrame(() => {
1555
- t === Ct.current && (So.current = Do.current?.contains(document.activeElement) ?? !0, xt(t), co(e));
1553
+ const To = We(!1), Eo = ce((e, t) => {
1554
+ t === Dt.current && requestAnimationFrame(() => requestAnimationFrame(() => {
1555
+ t === Dt.current && (To.current = So.current?.contains(document.activeElement) ?? !0, vt(t), po(e));
1556
1556
  }));
1557
1557
  }, []);
1558
- Se(() => {
1559
- So.current && (So.current = !1, Re.current?.focus());
1560
- }, [wt]);
1561
- const Eo = De((e) => {
1562
- const { ref: t, ...o } = e, r = rt ? tt.dark : tt.light, n = "error" === yt.status && g ? Ye(re, {
1558
+ Te(() => {
1559
+ To.current && (To.current = !1, je.current?.focus());
1560
+ }, [xt]);
1561
+ const Wo = Se((e) => {
1562
+ const { ref: t, ...o } = e, r = nt ? ot.dark : ot.light, n = "error" === wt.status && g ? Ze(re, {
1563
1563
  render: g,
1564
1564
  props: {
1565
1565
  ...f,
@@ -1568,10 +1568,10 @@ var ko = () => {
1568
1568
  height: "100%",
1569
1569
  ...f?.style
1570
1570
  },
1571
- error: yt.error
1571
+ error: wt.error
1572
1572
  }
1573
1573
  }) : null;
1574
- if (n && !wt) return Ye(at, {
1574
+ if (n && !xt) return Ze(it, {
1575
1575
  style: {
1576
1576
  width: "100%",
1577
1577
  height: "100%",
@@ -1583,17 +1583,17 @@ var ko = () => {
1583
1583
  children: n
1584
1584
  });
1585
1585
  let l = null;
1586
- if (wt) {
1587
- const e = wt, n = e.getView(), a = me ?? n?.isShowFormulaBar(), i = ve ?? n?.isShowStatusBar(), s = Ht?.source ?? Re.current, d = Ye(re, {
1588
- render: void 0 === Ie ? uo : Ie,
1586
+ if (xt) {
1587
+ const e = xt, n = e.getView(), a = ge ?? n?.isShowFormulaBar(), i = Ce ?? n?.isShowStatusBar(), s = Vt?.source ?? je.current, d = Ze(re, {
1588
+ render: void 0 === Ne ? mo : Ne,
1589
1589
  props: {
1590
1590
  workbook: s,
1591
- ...Ae
1591
+ ...Pe
1592
1592
  }
1593
- }), u = "bottom" === Le, g = a ? Ye(re, {
1594
- render: void 0 === be ? m : be,
1593
+ }), u = "bottom" === Be, g = a ? Ze(re, {
1594
+ render: void 0 === ye ? m : ye,
1595
1595
  props: {
1596
- ref: $e,
1596
+ ref: Me,
1597
1597
  style: {
1598
1598
  marginTop: r.spacing(u ? .5 : .25),
1599
1599
  marginLeft: r.spacing(1),
@@ -1601,50 +1601,50 @@ var ko = () => {
1601
1601
  marginBottom: r.spacing(u ? .5 : .75)
1602
1602
  },
1603
1603
  workbook: e,
1604
- editable: It ?? void 0,
1605
- placement: Le,
1606
- floatOnKeyboard: "float" === Ke,
1607
- ...ge,
1604
+ editable: Nt ?? void 0,
1605
+ placement: Be,
1606
+ floatOnKeyboard: "float" === _e,
1607
+ ...he,
1608
1608
  propsNamedCollectionEditor: {
1609
1609
  restoreFocus: (e) => s?.focus(e),
1610
- ...ge?.propsNamedCollectionEditor
1610
+ ...he?.propsNamedCollectionEditor
1611
1611
  }
1612
1612
  }
1613
- }) : null, f = i ? Ye(re, {
1614
- render: void 0 === Fe ? h : Fe,
1613
+ }) : null, f = i ? Ze(re, {
1614
+ render: void 0 === Ae ? h : Ae,
1615
1615
  props: {
1616
- childrenEnd: eo,
1617
- ...Ce
1616
+ childrenEnd: to,
1617
+ ...De
1618
1618
  }
1619
- }) : null, k = (e, r) => Ye(p, {
1620
- ...ue,
1619
+ }) : null, k = (e, r) => Ze(p, {
1620
+ ...me,
1621
1621
  tabIndex: 0,
1622
1622
  autoFocus: !r && X,
1623
1623
  workbook: e,
1624
- editable: r ? void 0 : It ?? void 0,
1625
- focusNameBox: r ? void 0 : Me,
1624
+ editable: r ? void 0 : Nt ?? void 0,
1625
+ focusNameBox: r ? void 0 : Le,
1626
1626
  prefetch: !r && c,
1627
- ref: r ? je : St([t, Re]),
1628
- onWorkbookLoad: r ? (t) => To(t, e) : co,
1627
+ ref: r ? Oe : Tt([t, je]),
1628
+ onWorkbookLoad: r ? (t) => Eo(t, e) : po,
1629
1629
  onKeyDown: (e) => {
1630
1630
  C?.(e);
1631
1631
  },
1632
- propsWorkbookLoading: ce,
1632
+ propsWorkbookLoading: de,
1633
1633
  renderWorkbookLoading: null,
1634
1634
  style: r ? {
1635
- ...ue?.style,
1635
+ ...me?.style,
1636
1636
  position: "absolute",
1637
1637
  inset: 0,
1638
1638
  visibility: "hidden"
1639
1639
  } : {
1640
1640
  flex: "1 1 100%",
1641
1641
  minHeight: 0,
1642
- ...ue?.style
1642
+ ...me?.style
1643
1643
  },
1644
1644
  onContextMenu: (e) => e.preventDefault(),
1645
1645
  ...r ? null : o
1646
1646
  }, e.getId());
1647
- l = Ye("div", {
1647
+ l = Ze("div", {
1648
1648
  style: {
1649
1649
  display: "flex",
1650
1650
  flexDirection: "column",
@@ -1656,18 +1656,18 @@ var ko = () => {
1656
1656
  windowText: r.palette.text.primary
1657
1657
  })
1658
1658
  },
1659
- children: lo(Le, {
1659
+ children: co(Be, {
1660
1660
  toolbar: d,
1661
1661
  formulaBar: g,
1662
1662
  statusBar: f,
1663
- main: Ye(io, {
1663
+ main: Ze(so, {
1664
1664
  taskSide: x,
1665
- persistKey: yo,
1666
- sidebarElement: fo ? Ye(q.CommandScopeProvider, {
1667
- scope: mo,
1668
- children: fo
1665
+ persistKey: wo,
1666
+ sidebarElement: ko ? Ze(q.CommandScopeProvider, {
1667
+ scope: go,
1668
+ children: ko
1669
1669
  }) : void 0,
1670
- mainElement: Ze("div", {
1670
+ mainElement: Je("div", {
1671
1671
  style: {
1672
1672
  position: "relative",
1673
1673
  display: "flex",
@@ -1676,8 +1676,8 @@ var ko = () => {
1676
1676
  minWidth: 0,
1677
1677
  minHeight: 0
1678
1678
  },
1679
- children: [[k(wt, !1), vt ? k(vt, !0) : null], Ye(Je, {
1680
- ref: ro,
1679
+ children: [[k(xt, !1), Ct ? k(Ct, !0) : null], Ze(Qe, {
1680
+ ref: no,
1681
1681
  sx: {
1682
1682
  position: "absolute",
1683
1683
  top: "10%",
@@ -1693,16 +1693,16 @@ var ko = () => {
1693
1693
  })
1694
1694
  });
1695
1695
  }
1696
- const d = !Ht && se ? Ye(re, {
1697
- render: se,
1698
- props: { ...ce }
1696
+ const d = !Vt && le ? Ze(re, {
1697
+ render: le,
1698
+ props: { ...de }
1699
1699
  }) : null;
1700
- return Ze(at, {
1701
- sx: ho,
1700
+ return Je(it, {
1701
+ sx: fo,
1702
1702
  style: {
1703
1703
  width: "100%",
1704
- height: _e ? `calc(100% - ${_e}px)` : "100%",
1705
- transform: ze ? `translateY(${ze}px)` : void 0,
1704
+ height: ze ? `calc(100% - ${ze}px)` : "100%",
1705
+ transform: He ? `translateY(${He}px)` : void 0,
1706
1706
  position: "absolute",
1707
1707
  display: "flex",
1708
1708
  alignItems: "stretch",
@@ -1715,7 +1715,7 @@ var ko = () => {
1715
1715
  variant: s,
1716
1716
  children: [
1717
1717
  l,
1718
- n ? Ye(at, {
1718
+ n ? Ze(it, {
1719
1719
  style: {
1720
1720
  position: "absolute",
1721
1721
  inset: 0,
@@ -1725,114 +1725,114 @@ var ko = () => {
1725
1725
  },
1726
1726
  children: n
1727
1727
  }) : null,
1728
- d ? Ye("div", {
1728
+ d ? Ze("div", {
1729
1729
  style: {
1730
1730
  position: "absolute",
1731
1731
  inset: 0,
1732
1732
  display: "flex",
1733
1733
  alignItems: "center",
1734
1734
  justifyContent: "center",
1735
- background: `var(--sxl-color-base-100, ${rt ? "#121212" : "#fff"})`
1735
+ background: `var(--sxl-color-base-100, ${nt ? "#121212" : "#fff"})`
1736
1736
  },
1737
1737
  children: d
1738
1738
  }) : null
1739
1739
  ]
1740
1740
  });
1741
1741
  }, [
1742
- yt,
1743
1742
  wt,
1744
- vt,
1745
- Ht,
1746
- Yt,
1747
- se,
1748
- ce,
1749
- ue,
1743
+ xt,
1744
+ Ct,
1745
+ Vt,
1746
+ Zt,
1747
+ le,
1748
+ de,
1749
+ me,
1750
1750
  a,
1751
1751
  i,
1752
1752
  s,
1753
- eo,
1753
+ to,
1754
1754
  g,
1755
1755
  f,
1756
- uo,
1757
- ho,
1756
+ mo,
1758
1757
  fo,
1758
+ ko,
1759
1759
  x,
1760
- mo,
1761
- me,
1760
+ go,
1762
1761
  ge,
1763
- be,
1764
- Le,
1765
- It,
1766
- ve,
1762
+ he,
1763
+ ye,
1764
+ Be,
1765
+ Nt,
1767
1766
  Ce,
1768
- Fe,
1767
+ De,
1769
1768
  Ae,
1770
- Ie,
1771
- Ke,
1769
+ Pe,
1770
+ Ne,
1772
1771
  _e,
1773
1772
  ze,
1774
- tt,
1775
- rt
1773
+ He,
1774
+ ot,
1775
+ nt
1776
1776
  ]);
1777
- let Wo = Ye(Wt, {
1777
+ let Fo = Ze(Ft, {
1778
1778
  maxSnack: 3,
1779
- domRoot: to ?? void 0,
1779
+ domRoot: oo ?? void 0,
1780
1780
  anchorOrigin: {
1781
1781
  vertical: "bottom",
1782
1782
  horizontal: "right"
1783
1783
  },
1784
1784
  autoHideDuration: 3500,
1785
1785
  onClose: (e, t, o) => {
1786
- Re.current?.focus();
1786
+ je.current?.focus();
1787
1787
  },
1788
- Components: { error: Mt },
1788
+ Components: { error: Lt },
1789
1789
  iconVariant: {
1790
- success: Ye(it, {
1790
+ success: Ze(st, {
1791
1791
  style: { marginRight: "8px" },
1792
- children: Ye("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" })
1792
+ children: Ze("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" })
1793
1793
  }),
1794
- error: Ye(Z, {
1794
+ error: Ze(Z, {
1795
1795
  iconKey: "ErrorAlert",
1796
1796
  style: { marginRight: "8px" }
1797
1797
  })
1798
1798
  },
1799
- children: Ye(j, {
1800
- workbook: wt,
1801
- children: Ye(P, {
1802
- renderArea: Co,
1799
+ children: Ze(j, {
1800
+ workbook: xt,
1801
+ children: Ze(P, {
1802
+ renderArea: Do,
1803
1803
  onUpdateArea: (e) => {
1804
- wo(e);
1804
+ xo(e);
1805
1805
  },
1806
- children: Ye(Oe, { children: Ye(Jt, { children: Ye(ie, { children: Ye(ee, { children: Ye(Xt, {
1807
- workbook: wt,
1808
- initialCommandAnchor: so,
1809
- renderWorkbook: Eo,
1810
- setWorkbook: Et,
1811
- titleWorkbook: Yt,
1812
- setWorkbookTitle: qt,
1813
- refDocumentTitle: po,
1814
- isDirty: _t,
1815
- refSave: Bt,
1806
+ children: Ze($e, { children: Ze(Qt, { children: Ze(se, { children: Ze(ee, { children: Ze(Yt, {
1807
+ workbook: xt,
1808
+ initialCommandAnchor: lo,
1809
+ renderWorkbook: Wo,
1810
+ setWorkbook: Wt,
1811
+ titleWorkbook: Zt,
1812
+ setWorkbookTitle: Xt,
1813
+ refDocumentTitle: uo,
1814
+ isDirty: zt,
1815
+ refSave: Kt,
1816
1816
  host: r
1817
1817
  }) }) }) }) })
1818
1818
  })
1819
1819
  })
1820
1820
  });
1821
- return Wo = Ze(ct, {
1822
- theme: rt ? tt.dark : tt.light,
1821
+ return Fo = Je(dt, {
1822
+ theme: nt ? ot.dark : ot.light,
1823
1823
  children: [
1824
- H ? Ye(ot, {}) : null,
1825
- Ye("style", { children: nt }),
1826
- Ye("style", { children: st }),
1827
- Ye(Ne, {
1824
+ H ? Ze(rt, {}) : null,
1825
+ Ze(ie, { css: at }),
1826
+ Ze(ie, { css: lt }),
1827
+ Ze(Re, {
1828
1828
  themeScopeClass: n,
1829
1829
  themeSurface: "app",
1830
- themeMode: qe,
1831
- children: Wo
1830
+ themeMode: Xe,
1831
+ children: Fo
1832
1832
  })
1833
1833
  ]
1834
- }), Wo;
1834
+ }), Fo;
1835
1835
  }));
1836
- wo.displayName = "EagerStudio";
1837
- var xo = (e) => Ye(oo, { ...e });
1838
- export { wo as EagerStudio, wo as default, Ot as n, fo as t };
1836
+ xo.displayName = "EagerStudio";
1837
+ var vo = (e) => Ze(ro, { ...e });
1838
+ export { xo as EagerStudio, xo as default, $t as n, ko as t };