@sheetxl/studio-mui 0.8.0-beta.23 → 0.8.0-beta.24

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 (103) hide show
  1. package/browser/esm/{B0GhKutuGufS8cTX.mjs → 7XEGWIttcSbBYq6X.mjs} +2 -2
  2. package/browser/esm/{BTw0PMEQ23eq2l3z.mjs → B1J7-fSJd96S5STt.mjs} +2 -2
  3. package/browser/esm/{Ce5ZiG5RMMewOh20.mjs → B1zJHbp6G6TTKTQC.mjs} +4 -4
  4. package/browser/esm/{C5q3B-KjPRLy3Ihp.mjs → B2MwSeVQb2zWJrzL.mjs} +2 -2
  5. package/browser/esm/{DEsDS0RX4DnyT_jk.mjs → BFHH6tVY4R0lMIqf.mjs} +4 -4
  6. package/browser/esm/{DNVpxaUopxkKOZaG.mjs → BL4fyBwHouOSUlzC.mjs} +2 -2
  7. package/browser/esm/{CUY_oauSAZX4Z-d-.mjs → BNOxvik6-Q4nIApA.mjs} +5 -5
  8. package/browser/esm/{S3LY_kWRu6v1Ft40.mjs → BNvNGU2n7yyZVKIy.mjs} +2 -2
  9. package/browser/esm/{61qlLY6EQNjbQMDi.mjs → BQ3aYpDVa6A3J9Xt.mjs} +2 -2
  10. package/browser/esm/{OAvkBxphUfqrOn_K.mjs → BRsCZxrGyyA6h8T6.mjs} +1 -1
  11. package/browser/esm/{Dv4ndHScQEENL6DA.mjs → BWucl1RV8CJYTcpt.mjs} +8 -8
  12. package/browser/esm/{DZ72x5v3_f0dhXS5.mjs → BY0yBoZ7AzI567Ps.mjs} +2 -2
  13. package/browser/esm/{C7cXbOyJfTmYUd18.mjs → B_nraJQRTCR3eak_.mjs} +684 -683
  14. package/browser/esm/{BpYJD74w23YliQn6.mjs → BaWzcy1PPng1FJin.mjs} +5 -5
  15. package/browser/esm/{CaHNU1h47mUesQQN.mjs → Bb3HM5mmBw-8OoNR.mjs} +2 -2
  16. package/browser/esm/{BkGHlu2z__idmVOV.mjs → BfMULAFm959ZLHOe.mjs} +4 -4
  17. package/browser/esm/{CWZoE2dDxX-8yQql.mjs → BgnjNV3VdjlTw94C.mjs} +2 -2
  18. package/browser/esm/{CI8k7kDBS1QVZn5S.mjs → Bk9tzJOoqxzTMQKv.mjs} +2 -2
  19. package/browser/esm/{CT8RqHXjAPVLs2bn.mjs → Bpulk50Ex6FGKiwF.mjs} +2 -2
  20. package/browser/esm/{D2S83AjNN8JCl2EL.mjs → Brk8Ndnu-yN80ETp.mjs} +2 -2
  21. package/browser/esm/{BZl2Zo1B5LmU6ND7.mjs → BuJdDEM4YeYxoQ01.mjs} +3 -3
  22. package/browser/esm/{DmfuCdn6QW__7sVr.mjs → BzTlI18P6oo1vgFo.mjs} +3 -3
  23. package/browser/esm/{B1WCXTGT4QyfuXEG.mjs → C0OOFFzZRgT8CBIp.mjs} +3 -3
  24. package/browser/esm/{Bi91aW5tILFwRzDH.mjs → C2Uy5KAk1EpXx_wk.mjs} +1 -1
  25. package/browser/esm/{JjoDQ7kBaTdBLqA4.mjs → C2w9aGKwb08u3Ez7.mjs} +1 -1
  26. package/browser/esm/{DLuMMUERB4N5Zf-n.mjs → C7orP4YoHT-eSyfn.mjs} +4 -4
  27. package/browser/esm/{BhkaQtl8eWTBqQSV.mjs → CBMDjcxw8rlrNKnj.mjs} +1 -1
  28. package/browser/esm/{BtR1nedinfNR24qm.mjs → CD4IYmiQX8A97dEr.mjs} +1 -1
  29. package/browser/esm/{DSuMuoNFUjJsd15-.mjs → CEtIRobAbbsiZfrZ.mjs} +1 -1
  30. package/browser/esm/{CwKA4g_ulbxqKWN6.mjs → CMajJZaC8s1_eSEC.mjs} +3 -3
  31. package/browser/esm/{CPGiQiXu-u6r11fr.mjs → CguVBBZwZ618NlE6.mjs} +2 -2
  32. package/browser/esm/{Bwc48kjFvd98HI3-.mjs → Cj9TPVpIkIYcy70d.mjs} +20 -20
  33. package/browser/esm/{CmYZ6sd6YCXvcNFo.mjs → ClQF_ptVGM5B66xW.mjs} +3 -3
  34. package/browser/esm/{9W8UMvVpOm879O9Q.mjs → CpC0uo2M0Dai7AiA.mjs} +1 -1
  35. package/browser/esm/{B1cZfl1su2i_IUuO.mjs → Cq0vzuugOpnZM8QA.mjs} +1 -1
  36. package/browser/esm/{DGaYmKVqluJZ8ZD8.mjs → CrTiob4GyK7RSm2j.mjs} +2 -2
  37. package/browser/esm/{ClXxtB98U76iDrtj.mjs → D1altjJlQetHB62D.mjs} +2 -2
  38. package/browser/esm/{CuCtXVvc9N3sUzWz.mjs → D80enC00cXoSVJra.mjs} +6 -6
  39. package/browser/esm/{DFdgG6xUa0_mmiSp.mjs → DD4IfoI_4c8kxYdT.mjs} +1 -1
  40. package/browser/esm/{Db-NbGskcpMZZHKM.mjs → DK7jTimU_43Q6WwS.mjs} +1 -1
  41. package/browser/esm/{NTmBvTnoLPfgA2Cj.mjs → DKsw1VYfCTtYGlop.mjs} +1 -1
  42. package/browser/esm/{B5ykigtm3LE3-S9e.mjs → DPGrdFumR1i6zBRq.mjs} +2 -2
  43. package/browser/esm/{3vdsx6Z062TFVqqm.mjs → DR0M8Ps9UHTIyyDI.mjs} +1 -1
  44. package/browser/esm/{TFJUQcKsawCh4esx.mjs → DUmQjo4XoGeyakLY.mjs} +4 -4
  45. package/browser/esm/{CrKqA0lliI3x_pFG.mjs → DWv41FDs4YkqZkyJ.mjs} +1 -1
  46. package/browser/esm/{xdqV7p4ssraS4FHb.mjs → DZZC-Nkfq6DDLJ1n.mjs} +4 -4
  47. package/browser/esm/{D7ogY8ykfJGZ35jY.mjs → DgDOmvY1hlDC7lat.mjs} +1 -1
  48. package/browser/esm/{vcqr-88ypSy0Jx2Q.mjs → DhusV9FVUjYDlVj1.mjs} +4 -4
  49. package/browser/esm/{DuzrJpmUyTTXroFX.mjs → DlICPyHPAt2vB9TF.mjs} +5 -5
  50. package/browser/esm/{Bw6mxAfCx4FULeUB.mjs → DptpTirYcok-s9Ek.mjs} +1 -1
  51. package/browser/esm/{Bcwt4-GEbF3sfJ8P.mjs → DyP2IhUq_LBuTK7x.mjs} +2 -2
  52. package/browser/esm/{B8DK-EICUzzkKHOT.mjs → DzDvnHxGXipk_479.mjs} +4 -4
  53. package/browser/esm/{DEILBkTYM5GuSYLP.mjs → OqwpjZkr-pRhQuZV.mjs} +2 -2
  54. package/browser/esm/{B19n0bcO5bMPruGk.mjs → SOW_dQWWWJ-cOnDw.mjs} +1 -1
  55. package/browser/esm/{C66BP2x5G9VxianJ.mjs → bdmGALeUgD9fyDGM.mjs} +1 -1
  56. package/browser/esm/{DnSTmOtiviJE47Im.mjs → fz_FDlw054tjwa-c.mjs} +5 -5
  57. package/browser/esm/index.mjs +21 -19
  58. package/browser/esm/{BbABKdPYxk4IMSLc.mjs → j-Z9J_LlODLEkT7p.mjs} +1 -1
  59. package/browser/esm/{ea57m6-nIYUKFyzf.mjs → kp1nDU5guLdBB4_i.mjs} +8 -8
  60. package/browser/esm/{pfN8xe0LCSTqzF_2.mjs → tKnZpMJpv_nVyFCW.mjs} +2 -2
  61. package/licenses/dependencies.txt +33 -33
  62. package/node/esm/{COrRcQDAFnkRj95H.mjs → 4HqJx9W3eCHZJYHq.mjs} +1 -1
  63. package/node/esm/{DT6duO2Kls0dywMs.mjs → 9BK7l-Ivt43b6KEy.mjs} +2 -2
  64. package/node/esm/{DgHlwwldxPMVUdYv.mjs → B5xwJWLsa8sioS03.mjs} +2 -2
  65. package/node/esm/{HTk99NQ6xaWtPNfO.mjs → BDTeyNi7xRbf38xH.mjs} +1 -1
  66. package/node/esm/{C5XI_nNcwDiNGqNp.mjs → BMgFr4sa7VguBGxk.mjs} +1 -1
  67. package/node/esm/{BS33GA7F0bkFfwXo.mjs → BP0g0_d2f-xt8UFn.mjs} +2 -2
  68. package/node/esm/{BtYfA9MPu_ajX7Y9.mjs → BSsmV4HYEDHVuddc.mjs} +4 -4
  69. package/node/esm/{CRJi4wTYJJJq2kEV.mjs → BaifedVnO6sEYMzi.mjs} +2 -2
  70. package/node/esm/{BBcWEgWdtRmfiFgw.mjs → Bh0Gj46U8muzB5rE.mjs} +1 -1
  71. package/node/esm/{Bz_1k_dxr4BRsQv3.mjs → BhwrJ37EPr61SCjz.mjs} +1 -1
  72. package/node/esm/{lHvI11zfRX3BV9uN.mjs → Bk1BxTa-h6oEeomA.mjs} +2 -2
  73. package/node/esm/{d7nC9HA-O7Jg57HD.mjs → Bv57exHF6UhZGb1O.mjs} +2 -2
  74. package/node/esm/{orrZaoah66_1GRIf.mjs → C2VFk9URvBZFujyP.mjs} +265 -264
  75. package/node/esm/{BjRqhIL_i20fCqwt.mjs → CFjQXRCWP-MPTRBv.mjs} +1 -1
  76. package/node/esm/{DScYIiZenzzEpqNX.mjs → CPH0Wi667aTEJWCl.mjs} +2 -2
  77. package/node/esm/{5Sg-hTry8N_ADjwz.mjs → CRH0tGlA-sqHDUz2.mjs} +2 -2
  78. package/node/esm/{j5sUOLJOXDDfgzyV.mjs → C_h-NFbdy9DIJixP.mjs} +1 -1
  79. package/node/esm/{C2-KRircvBQzs5Ba.mjs → ChzGjcGAyzVoq3us.mjs} +1 -1
  80. package/node/esm/{CspVpQ8x2lBzmEJr.mjs → Cirjh7F_jwRd8Pi6.mjs} +4 -4
  81. package/node/esm/{BvdZuwQByiJVQOvh.mjs → ClNrf_Pe3HfSaFUT.mjs} +4 -4
  82. package/node/esm/{C5G29l25qVLu5OZj.mjs → CppEuBRopVC7VxPL.mjs} +2 -2
  83. package/node/esm/{cFgQxgzJMvn3jgnS.mjs → CqWATgCFM9qYxp1y.mjs} +1 -1
  84. package/node/esm/{eOKsk3UBMDeeE2K8.mjs → Ct2JrPNKwFOvQu0_.mjs} +2 -2
  85. package/node/esm/{BcZDO-Mj9HsII_hy.mjs → DCYxCMEhlKObeBEe.mjs} +1 -1
  86. package/node/esm/{BQvZ_uVsIOZSfXFf.mjs → DI0Up8gwhMuO7w72.mjs} +2 -2
  87. package/node/esm/{DG5EIoSdFG3FutGu.mjs → DILm8NUWBiK3awMV.mjs} +1 -1
  88. package/node/esm/{BJYaCliDBm8LmZWp.mjs → DNtSV77EYwaspYmi.mjs} +2 -2
  89. package/node/esm/{wy1h9E1aAC6zMYna.mjs → DTvy0yJqex01kzo5.mjs} +2 -2
  90. package/node/esm/{Bq7H9YN6TQEPFxf9.mjs → DWujZlKfLTgVGIEt.mjs} +2 -2
  91. package/node/esm/{BT0yXqLFKoPiS71A.mjs → DZTW7YULM5cQgjS4.mjs} +1 -1
  92. package/node/esm/{CfvgBqV3sMafVSQM.mjs → DsBCEfioTtS5807R.mjs} +1 -1
  93. package/node/esm/{BcWKuDVZKC_PVYtg.mjs → DsbNzYUczH1eAcK3.mjs} +1 -1
  94. package/node/esm/{Db70KVKsFGdRlKEx.mjs → DxqToqw-cEzX831t.mjs} +1 -1
  95. package/node/esm/{DXGG2ZQw5gsEiizJ.mjs → EzGwAoT6udab_NyI.mjs} +1 -1
  96. package/node/esm/{tUUYzU1yWSNE4COh.mjs → FIiI413QzHon4mGk.mjs} +1 -1
  97. package/node/esm/{COXiXFKdsF49hE5l.mjs → YlDJ0a12ebcGk3BT.mjs} +2 -2
  98. package/node/esm/{BZjXyuhD5XzRKyKi.mjs → epCpPVzMrhKc5rqz.mjs} +2 -2
  99. package/node/esm/index.mjs +543 -540
  100. package/node/esm/{D0f2t3XyaDfFTC08.mjs → oXlca69piL_uRVe2.mjs} +1 -1
  101. package/node/esm/{DdX-VVGAfrU2a52x.mjs → tIvPPjG0vLdENMKH.mjs} +1 -1
  102. package/package.json +9 -9
  103. package/types/src/studio/StudioProps.d.ts +10 -2
@@ -1,28 +1,28 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.23
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.24
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
- 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, ThemeRootStyles as I, ThemeStateDefaults as N, ThemeStateKey as R, WorkbookIO as j, WorkbookProvider as O, createEditable as M, registerMovablePane as $, useDocThemes as L, useModelSync as B, useReferenceModeStore as K, useResolvedWorkbook as _, useTaskPaneArea as z, useWorkbookEncrypted as H, useWorkbookName as V, useWorkbookSaveState as U } from "@sheetxl/react";
8
+ import { CommandRootProvider as D, DefaultTaskPaneRegistry as S, LogoNoPaddingIcon as T, PivotTablePane as E, SHAPE_ICON_PACK as W, TaskPaneArea as F, TaskPaneKey as P, TaskPaneProvider as A, ThemeRootStyles as I, ThemeStateDefaults as N, ThemeStateKey as R, WorkbookIO as j, WorkbookProvider as O, createEditable as M, registerMovablePane as $, useDocThemes as L, useModelSync as B, useReferenceModeStore as K, useResolvedWorkbook as _, useTaskPaneArea as z, useWorkbookEncrypted as H, useWorkbookName as V, useWorkbookSaveState as U } from "@sheetxl/react";
9
9
  import { Command as G, DefaultCommandButtonRegistry as q, DefaultIconService as X, DynamicIcon as Y, LanguageStateKey as Z, NotifierType as J, ReactErrorBoundary as Q, ReactNotifierProvider as ee, ReactUtils as te, RenderSlot as oe, ScrollUtils as re, SplitPane as ne, ThemeStyle 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, useTranslator as ke } from "@sheetxl/utils-react";
10
10
  import be, { Fragment as ye, forwardRef as we, isValidElement as xe, memo as ve, useCallback as Ce, useEffect as De, useMemo as Se, useRef as Te, useState as Ee } from "react";
11
- import { AnimatedLoadingPanel as We, AnimatedTraversingEllipsisIcon as Fe, CommandGroup as Ae, ExhibitDivider as Pe, ExhibitFloatProvider as Ie, ExhibitMenuItem as Ne, ExhibitTooltip as Re, ModalProvider as je, SelectedIcon as Oe, SimpleTooltip as Me, StackTrace as $e, createExhibitTheme as Le, hideLoadingPanel as Be, lazyModal as Ke, lazyPanel as _e, showLoadingPanel as ze, useInputDialog as He, useLazyWindow as Ve, useModal as Ue, useOptionsDialog as Ge } from "@sheetxl/utils-mui";
11
+ import { AnimatedLoadingPanel as We, AnimatedTraversingEllipsisIcon as Fe, CommandGroup as Pe, ExhibitDivider as Ae, ExhibitFloatProvider as Ie, ExhibitMenuItem as Ne, ExhibitTooltip as Re, ModalProvider as je, SelectedIcon as Oe, SimpleTooltip as Me, StackTrace as $e, createExhibitTheme as Le, hideLoadingPanel as Be, lazyModal as Ke, lazyPanel as _e, showLoadingPanel as ze, useInputDialog as He, useLazyWindow as Ve, useModal as Ue, useOptionsDialog as Ge } from "@sheetxl/utils-mui";
12
12
  import { Fragment as qe, jsx as Xe, jsxs as Ye } from "react/jsx-runtime";
13
13
  import { Box as Ze, Card as Je, CardActions as Qe, Collapse as et, CssBaseline as tt, DialogTitle as ot, IconButton as rt, Paper as nt, SvgIcon as at, Tab as it, Tabs as st, ThemeProvider as lt, Typography as ct, alpha as dt, useMediaQuery as pt, useTheme as ut } from "@mui/material";
14
14
  import { CommonUtils as mt, DOMUtils as gt, DefaultLanguagePackService as ht, ErrorUtils as ft, ExpectedError as kt, PartialError as bt, defineLazyModule as yt, formatMessage as wt, messageKey as xt, t as vt } from "@sheetxl/utils";
15
15
  import Ct from "clsx";
16
16
  import { mergeRefs as Dt, useMergeRefs as St } from "react-merge-refs";
17
17
  import { SnackbarContent as Tt, SnackbarProvider as Et, useSnackbar as Wt } from "notistack";
18
- var Ft = Object.defineProperty, At = (e, t) => {
18
+ var Ft = Object.defineProperty, Pt = (e, t) => {
19
19
  let o = {};
20
20
  for (var r in e) Ft(o, r, {
21
21
  get: e[r],
22
22
  enumerable: !0
23
23
  });
24
24
  return t || Ft(o, Symbol.toStringTag, { value: "Module" }), o;
25
- }, Pt = _e(yt("studio:conditionalFormatDetailsTaskPane", () => import("./DScYIiZenzzEpqNX.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), It = ["lines"], Nt = /^[A-Za-z_\\][\w.\\]*$/, Rt = /^\$?[A-Za-z]{1,3}\$?\d+$/, jt = (e) => {
25
+ }, At = _e(yt("studio:conditionalFormatDetailsTaskPane", () => import("./CPH0Wi667aTEJWCl.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), It = ["lines"], Nt = /^[A-Za-z_\\][\w.\\]*$/, Rt = /^\$?[A-Za-z]{1,3}\$?\d+$/, jt = (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();
@@ -462,7 +462,7 @@ function _t(e, t) {
462
462
  l = !0, s && (s.current = null);
463
463
  };
464
464
  }
465
- var zt = Ke(yt("studio:shortcutKeysDialog", () => import("./j5sUOLJOXDDfgzyV.mjs")).load);
465
+ var zt = Ke(yt("studio:shortcutKeysDialog", () => import("./C_h-NFbdy9DIJixP.mjs")).load);
466
466
  y(), x();
467
467
  var Ht = /* @__PURE__ */ new Set(["ui"]), Vt = (e) => {
468
468
  const t = (e) => {
@@ -612,7 +612,7 @@ var Ht = /* @__PURE__ */ new Set(["ui"]), Vt = (e) => {
612
612
  W,
613
613
  F
614
614
  ]);
615
- const P = z(!0);
615
+ const A = z(!0);
616
616
  return De(() => {
617
617
  if (!l) return;
618
618
  const e = l.getRoot().contribution();
@@ -620,11 +620,11 @@ var Ht = /* @__PURE__ */ new Set(["ui"]), Vt = (e) => {
620
620
  e.updateCommand("protectWorkbook", {
621
621
  tags: ["noTransaction", "noRepeat"],
622
622
  callback: () => {
623
- t(A.Protection, { args: { tab: "workbook" } });
623
+ t(P.Protection, { args: { tab: "workbook" } });
624
624
  }
625
625
  });
626
- }(e, (e, t) => P.activate(e, t)), () => e.remove();
627
- }, [l, P]), De(() => {
626
+ }(e, (e, t) => A.activate(e, t)), () => e.remove();
627
+ }, [l, A]), De(() => {
628
628
  if (!l || !o) return;
629
629
  const e = l.getRoot().contribution(), t = _t(e, {
630
630
  workbook: o,
@@ -768,21 +768,21 @@ var Gt = ({ renderWorkbook: e }) => {
768
768
  });
769
769
  qt.displayName = "CommandsWrapper";
770
770
  var Xt = {
771
- sort: yt("studio:sortDialog", () => import("./eOKsk3UBMDeeE2K8.mjs")).load,
772
- hyperlink: yt("studio:hyperlinkDialog", () => import("./DXGG2ZQw5gsEiizJ.mjs")).load,
773
- find: yt("studio:findReplaceWindow", () => import("./CfvgBqV3sMafVSQM.mjs")).load,
774
- tableNew: yt("studio:tableNewDialog", () => import("./BcZDO-Mj9HsII_hy.mjs")).load,
775
- pivotTableNew: yt("studio:pivotTableNewDialog", () => import("./BS33GA7F0bkFfwXo.mjs")).load,
776
- sparklineNew: yt("studio:sparklineNewDialog", () => import("./D0f2t3XyaDfFTC08.mjs")).load,
777
- sparklineEdit: yt("studio:sparklineEditDialog", () => import("./wy1h9E1aAC6zMYna.mjs")).load,
778
- namedDetails: yt("studio:namedReferenceDialog", () => import("./DG5EIoSdFG3FutGu.mjs")).load,
779
- insertFunction: yt("studio:insertFunctionDialog", () => import("./tUUYzU1yWSNE4COh.mjs")).load,
780
- resizeHeader: yt("studio:resizeHeaderDialog", () => import("./C5XI_nNcwDiNGqNp.mjs")).load,
781
- outlineSettings: yt("studio:outlineSettingsDialog", () => import("./BcWKuDVZKC_PVYtg.mjs")).load,
782
- fillSeries: yt("studio:fillSeriesDialog", () => import("./cFgQxgzJMvn3jgnS.mjs")).load,
783
- workbookStatistics: yt("studio:workbookStatisticsDialog", () => import("./BT0yXqLFKoPiS71A.mjs")).load,
784
- password: yt("studio:passwordDialog", () => import("./Db70KVKsFGdRlKEx.mjs")).load,
785
- pivotValueSettings: yt("studio:pivotValueSettingsDialog", () => import("./COXiXFKdsF49hE5l.mjs")).load
771
+ sort: yt("studio:sortDialog", () => import("./Ct2JrPNKwFOvQu0_.mjs")).load,
772
+ hyperlink: yt("studio:hyperlinkDialog", () => import("./EzGwAoT6udab_NyI.mjs")).load,
773
+ find: yt("studio:findReplaceWindow", () => import("./DsBCEfioTtS5807R.mjs")).load,
774
+ tableNew: yt("studio:tableNewDialog", () => import("./DCYxCMEhlKObeBEe.mjs")).load,
775
+ pivotTableNew: yt("studio:pivotTableNewDialog", () => import("./BP0g0_d2f-xt8UFn.mjs")).load,
776
+ sparklineNew: yt("studio:sparklineNewDialog", () => import("./oXlca69piL_uRVe2.mjs")).load,
777
+ sparklineEdit: yt("studio:sparklineEditDialog", () => import("./DTvy0yJqex01kzo5.mjs")).load,
778
+ namedDetails: yt("studio:namedReferenceDialog", () => import("./DILm8NUWBiK3awMV.mjs")).load,
779
+ insertFunction: yt("studio:insertFunctionDialog", () => import("./FIiI413QzHon4mGk.mjs")).load,
780
+ resizeHeader: yt("studio:resizeHeaderDialog", () => import("./BMgFr4sa7VguBGxk.mjs")).load,
781
+ outlineSettings: yt("studio:outlineSettingsDialog", () => import("./DsbNzYUczH1eAcK3.mjs")).load,
782
+ fillSeries: yt("studio:fillSeriesDialog", () => import("./CqWATgCFM9qYxp1y.mjs")).load,
783
+ workbookStatistics: yt("studio:workbookStatisticsDialog", () => import("./DZTW7YULM5cQgjS4.mjs")).load,
784
+ password: yt("studio:passwordDialog", () => import("./DxqToqw-cEzX831t.mjs")).load,
785
+ pivotValueSettings: yt("studio:pivotValueSettingsDialog", () => import("./YlDJ0a12ebcGk3BT.mjs")).load
786
786
  }, Yt = ["find"], Zt = ve((e) => {
787
787
  const { children: t } = e, o = Wt(), r = o ? o.enqueueSnackbar : () => {}, n = o ? o.closeSnackbar : () => {}, a = Te(/* @__PURE__ */ new Set()), i = Te(null), s = Te(null), [l, c] = Ee({
788
788
  label: null,
@@ -1083,7 +1083,7 @@ var Jt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
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;
1086
- const T = "right" !== c, E = f ? "row" : "column", W = T && S ? "before" : "after", F = `${E}:${W}`, A = a ? p[F] : void 0, P = null != A ? `${A}%` : ((e, t) => {
1086
+ const T = "right" !== c, E = f ? "row" : "column", W = T && S ? "before" : "after", F = `${E}:${W}`, P = a ? p[F] : void 0, A = null != P ? `${P}%` : ((e, t) => {
1087
1087
  if (null == e) return "40%";
1088
1088
  if ("number" == typeof e || "string" == typeof e) return e;
1089
1089
  const o = e[t];
@@ -1104,7 +1104,7 @@ var Jt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1104
1104
  paddingRight: "2px"
1105
1105
  } }, b = {}, C = {
1106
1106
  fixedPane: "before",
1107
- position: P,
1107
+ position: A,
1108
1108
  minBefore: f ? "280px" : "120px",
1109
1109
  splitDirection: f ? "row" : "column"
1110
1110
  }) : (b = { style: {
@@ -1115,7 +1115,7 @@ var Jt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1115
1115
  marginRight: f ? "8px" : "4px"
1116
1116
  } }, C = {
1117
1117
  fixedPane: "after",
1118
- position: P,
1118
+ position: A,
1119
1119
  minAfter: f ? "280px" : "120px",
1120
1120
  splitDirection: f ? "row" : "column"
1121
1121
  });
@@ -1181,7 +1181,7 @@ var io = () => Xe("div", { style: {
1181
1181
  paddingTop: "4px",
1182
1182
  paddingBottom: "4px"
1183
1183
  },
1184
- children: t.map((e, t) => Ye(ye, { children: [t > 0 ? Xe(Pe, { orientation: "horizontal" }) : null, e.map((e) => Xe(Ne, {
1184
+ children: t.map((e, t) => Ye(ye, { children: [t > 0 ? Xe(Ae, { orientation: "horizontal" }) : null, e.map((e) => Xe(Ne, {
1185
1185
  role: void 0 === e.checked ? "menuitem" : "menuitemradio",
1186
1186
  "aria-checked": e.checked,
1187
1187
  disabled: e.disabled,
@@ -1240,12 +1240,12 @@ var io = () => Xe("div", { style: {
1240
1240
  renderFilter: g,
1241
1241
  renderHeader: uo,
1242
1242
  ...e
1243
- }), go = _e(yt("studio:dataValidationDetailsTaskPane", () => import("./CRJi4wTYJJJq2kEV.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), ho = At({
1243
+ }), go = _e(yt("studio:dataValidationDetailsTaskPane", () => import("./BaifedVnO6sEYMzi.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), ho = Pt({
1244
1244
  EagerStudio: () => yo,
1245
1245
  default: () => yo
1246
1246
  });
1247
1247
  d(), S.registerTaskPane({
1248
- key: A.PivotTable,
1248
+ key: P.PivotTable,
1249
1249
  component: mo
1250
1250
  }, !0), (() => {
1251
1251
  q.register({
@@ -1260,8 +1260,8 @@ d(), S.registerTaskPane({
1260
1260
  excludeCategories: It
1261
1261
  })
1262
1262
  }, !0);
1263
- $("shape", () => import("./BtYfA9MPu_ajX7Y9.mjs").then((e) => e.ShapeFormatPanel));
1264
- })(), $("chart", () => import("./CspVpQ8x2lBzmEJr.mjs").then((e) => e.ChartFormatPanel)), (() => {
1263
+ $("shape", () => import("./BSsmV4HYEDHVuddc.mjs").then((e) => e.ShapeFormatPanel));
1264
+ })(), $("chart", () => import("./Cirjh7F_jwRd8Pi6.mjs").then((e) => e.ChartFormatPanel)), (() => {
1265
1265
  const e = G.DefaultCommandButtonRegistry, t = [];
1266
1266
  t.push(e.register({
1267
1267
  key: "changePictureOptions",
@@ -1316,11 +1316,11 @@ d(), S.registerTaskPane({
1316
1316
  } }
1317
1317
  }, !0));
1318
1318
  })(), c(), S.registerTaskPane({
1319
- key: A.DataValidation,
1319
+ key: P.DataValidation,
1320
1320
  component: go
1321
1321
  }, !0), S.registerTaskPane({
1322
- key: A.ConditionalFormat,
1323
- component: Pt
1322
+ key: P.ConditionalFormat,
1323
+ component: At
1324
1324
  }, !0), l(), s(), r(), t(), e(), n(), w();
1325
1325
  var fo = () => {
1326
1326
  let e, t;
@@ -1342,155 +1342,155 @@ var fo = () => {
1342
1342
  const { colorSchemes: o, ...r } = e, n = o?.[t ? "dark" : "light"];
1343
1343
  return n && "object" == typeof n ? mt.deepMerge(r, n) : r;
1344
1344
  }, bo = "taskPanePosition", yo = ve(we((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 = wo, taskPaneSide: x = "right", onKeyDown: C, workbook: D, onWorkbookChange: S, logo: T, topLeft: E, topRight: F, muiTheme: A, tokens: $, cssBaseline: z, autoFocus: q = !1, title: J, onDirtyChange: ee, propsDocumentTitle: ne, renderDocumentLoading: se = b, propsDocumentLoading: ce, propsWorkbook: ue, showFormulaBar: me, propsFormulaBar: ge, renderFormulaBar: ke, formulaBarPlacement: be, virtualKeyboard: ye = "float", editable: we, showStatusBar: xe, propsStatusBar: ve, renderStatusBar: We, propsToolbar: Fe, renderToolbar: Pe } = e, Ne = Te(null), Re = Te(null), Oe = Te(null), Me = le(() => {
1346
- Oe.current?.getNamedCollectionEditorElement?.()?.focus?.();
1347
- }, []), $e = ((e, t = "undefined" == typeof window ? "mouse" : te.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(be), Be = "bottom" === $e ? ye : "none", { inset: Ke, offsetTop: _e } = pe("resize" === Be), ze = le(d ?? (() => {}), [d]), He = le(ee ?? (() => {}), [ee]), Ve = ne?.placeHolder, [Ue] = he(R.Mode, N[R.Mode]), { themeMode: Ge } = fe({ mode: Ue ?? void 0 }), [qe] = he(Z.Active, null), Je = Te(qe);
1348
- Je.current = qe;
1349
- const Qe = Se(() => ({
1350
- light: Le(!1, mt.deepMerge(ko(A, !1), v($?.light?.app))),
1351
- dark: Le(!0, mt.deepMerge(ko(A, !0), v($?.dark?.app)))
1352
- }), [A, $]), et = "dark" === Ge, ot = Se(() => u(Qe.light, Qe.dark, `.${n}`, $), [
1353
- Qe,
1345
+ const { host: r, scopeClass: n, square: a, elevation: i, variant: s, onWorkbookLoad: l, onRenderSettled: c, prefetch: d, onDocumentError: g, renderDocumentError: f = k, propsDocumentError: y, propsTaskPaneArea: w, renderTaskPaneArea: x = wo, taskPaneSide: C = "right", onKeyDown: D, workbook: S, onWorkbookChange: T, logo: E, topLeft: F, topRight: P, muiTheme: $, tokens: z, cssBaseline: q, autoFocus: J = !1, title: ee, onDirtyChange: ne, propsDocumentTitle: se, renderDocumentLoading: ce = b, propsDocumentLoading: ue, propsWorkbook: me, showFormulaBar: ge, propsFormulaBar: ke, renderFormulaBar: be, formulaBarPlacement: ye, virtualKeyboard: we = "float", editable: xe, showStatusBar: ve, propsStatusBar: We, renderStatusBar: Fe, propsToolbar: Ae, renderToolbar: Ne } = e, Re = Te(null), Oe = Te(null), Me = Te(null), $e = le(() => {
1346
+ Me.current?.getNamedCollectionEditorElement?.()?.focus?.();
1347
+ }, []), Be = ((e, t = "undefined" == typeof window ? "mouse" : te.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(ye), Ke = "bottom" === Be ? we : "none", { inset: _e, offsetTop: ze } = pe("resize" === Ke), He = le(g ?? (() => {}), [g]), Ve = le(ne ?? (() => {}), [ne]), Ue = se?.placeHolder, [Ge] = he(R.Mode, N[R.Mode]), { themeMode: qe } = fe({ mode: Ge ?? void 0 }), [Je] = he(Z.Active, null), Qe = Te(Je);
1348
+ Qe.current = Je;
1349
+ const et = Se(() => ({
1350
+ light: Le(!1, mt.deepMerge(ko($, !1), v(z?.light?.app))),
1351
+ dark: Le(!0, mt.deepMerge(ko($, !0), v(z?.dark?.app)))
1352
+ }), [$, z]), ot = "dark" === qe, rt = Se(() => u(et.light, et.dark, `.${n}`, z), [
1353
+ et,
1354
1354
  n,
1355
- $
1356
- ]), rt = L(), [it, st] = Ee(() => D ?? null);
1355
+ z
1356
+ ]), it = L(), [st, ct] = Ee(() => S ?? null);
1357
1357
  De(() => {
1358
- st(D ?? null);
1359
- }, [D]);
1360
- const [ct, dt] = Ee(0), pt = Te(null);
1361
- pt.current || (pt.current = fo());
1362
- const ut = _(it, {
1358
+ ct(S ?? null);
1359
+ }, [S]);
1360
+ const [dt, pt] = Ee(0), ut = Te(null);
1361
+ ut.current || (ut.current = fo());
1362
+ const gt = _(st, {
1363
1363
  io: j,
1364
- defaultTheme: rt.getDefaultTheme(),
1365
- reloadKey: ct
1366
- }), gt = "loaded" === ut.status ? ut.workbook : null, ft = Se(() => "error" === ut.status ? {
1364
+ defaultTheme: it.getDefaultTheme(),
1365
+ reloadKey: dt
1366
+ }), ft = "loaded" === gt.status ? gt.workbook : null, kt = Se(() => "error" === gt.status ? {
1367
1367
  status: "error",
1368
- error: ut.error
1369
- } : "loaded" === ut.status ? {
1368
+ error: gt.error
1369
+ } : "loaded" === gt.status ? {
1370
1370
  status: "loaded",
1371
- workbook: ut.workbook
1372
- } : { status: "loading" }, [ut]);
1371
+ workbook: gt.workbook
1372
+ } : { status: "loading" }, [gt]);
1373
1373
  De(() => {
1374
- pt.current.settled && (pt.current = fo());
1375
- }, [it, ct]), De(() => {
1376
- if ("loaded" === ft.status) {
1377
- const e = pt.current, t = ft.workbook;
1374
+ ut.current.settled && (ut.current = fo());
1375
+ }, [st, dt]), De(() => {
1376
+ if ("loaded" === kt.status) {
1377
+ const e = ut.current, t = kt.workbook;
1378
1378
  t.whenFontsReady().then(() => e.resolve(t), () => e.resolve(t));
1379
- } else "error" === ft.status && (ze?.(ft.error), pt.current.reject(ft.error));
1380
- }, [ft]);
1381
- const [kt, bt] = Ee(null);
1382
- gt && !kt && bt(gt);
1383
- const yt = gt && kt && gt !== kt ? gt : null, wt = Te(yt);
1384
- wt.current = yt;
1385
- const xt = Te(kt);
1386
- xt.current = kt;
1387
- const vt = Te([]), Ct = Ce((e) => {
1388
- const t = xt.current;
1389
- t && vt.current.push(t), st(e);
1379
+ } else "error" === kt.status && (He?.(kt.error), ut.current.reject(kt.error));
1380
+ }, [kt]);
1381
+ const [bt, yt] = Ee(null);
1382
+ ft && !bt && yt(ft);
1383
+ const wt = ft && bt && ft !== bt ? ft : null, xt = Te(wt);
1384
+ xt.current = wt;
1385
+ const vt = Te(bt);
1386
+ vt.current = bt;
1387
+ const Ct = Te([]), St = Ce((e) => {
1388
+ const t = vt.current;
1389
+ t && Ct.current.push(t), ct(e);
1390
1390
  }, []);
1391
1391
  De(() => {
1392
- const e = vt.current;
1392
+ const e = Ct.current;
1393
1393
  if (0 !== e.length) {
1394
- vt.current = e.filter((e) => e === kt);
1394
+ Ct.current = e.filter((e) => e === bt);
1395
1395
  for (let t = 0; t < e.length; t++) {
1396
1396
  const o = e[t];
1397
- if (o !== kt) try {
1397
+ if (o !== bt) try {
1398
1398
  o.close();
1399
1399
  } catch (e) {
1400
1400
  console.warn("Unable to close the replaced workbook", e);
1401
1401
  }
1402
1402
  }
1403
1403
  }
1404
- }, [kt]);
1405
- const St = we ? null : kt, Tt = K(), Wt = Se(() => {
1406
- const e = St?.getSelectedWorksheet() ?? St?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
1407
- return e ? M(e, { referenceMode: Tt }) : null;
1408
- }, [St, Tt]), Ft = we ?? Wt, At = Te(Ft);
1409
- At.current = Ft, De(() => {
1410
- if (!Ft) return;
1411
- let e = Ft.getSession();
1412
- return Ft.subscribe(() => {
1404
+ }, [bt]);
1405
+ const Tt = xe ? null : bt, Wt = K(), Ft = Se(() => {
1406
+ const e = Tt?.getSelectedWorksheet() ?? Tt?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
1407
+ return e ? M(e, { referenceMode: Wt }) : null;
1408
+ }, [Tt, Wt]), Pt = xe ?? Ft, At = Te(Pt);
1409
+ At.current = Pt, De(() => {
1410
+ if (!Pt) return;
1411
+ let e = Pt.getSession();
1412
+ return Pt.subscribe(() => {
1413
1413
  const t = e;
1414
- if (e = Ft.getSession(), !t || e) return;
1414
+ if (e = Pt.getSession(), !t || e) return;
1415
1415
  if ("formula-bar" !== t.getActiveEditorId()) return;
1416
- const o = Oe.current;
1417
- (o?.isFocusWithin?.() ?? o?.contains?.(document.activeElement)) && Ne.current?.focus();
1416
+ const o = Me.current;
1417
+ (o?.isFocusWithin?.() ?? o?.contains?.(document.activeElement)) && Re.current?.focus();
1418
1418
  });
1419
- }, [Ft]);
1420
- const Pt = V(kt), { isDirty: It, saveState: Nt } = U(kt, j), Rt = H(kt), jt = Te(Nt), Ot = Te(null);
1421
- jt.current = Nt;
1422
- const $t = Ce(() => jt.current?.isDirty() ?? !1, []), Lt = Te(ft);
1423
- Lt.current = ft;
1424
- const [Kt, _t] = Ee(null), zt = J ?? ne?.title, [Ht, Vt] = Ee(null);
1419
+ }, [Pt]);
1420
+ const It = V(bt), { isDirty: Nt, saveState: Rt } = U(bt, j), jt = H(bt), Ot = Te(Rt), $t = Te(null);
1421
+ Ot.current = Rt;
1422
+ const Lt = Ce(() => Ot.current?.isDirty() ?? !1, []), Kt = Te(kt);
1423
+ Kt.current = kt;
1424
+ const [_t, zt] = Ee(null), Ht = ee ?? se?.title, [Vt, Ut] = Ee(null);
1425
1425
  De(() => {
1426
- Vt(null);
1427
- }, [kt]);
1428
- const Ut = zt ?? Ht ?? Pt ?? "";
1426
+ Ut(null);
1427
+ }, [bt]);
1428
+ const Gt = Ht ?? Vt ?? It ?? "";
1429
1429
  De(() => {
1430
- He?.(It);
1431
- }, [It]);
1432
- const Gt = le(S ?? (() => {}), [S]);
1430
+ Ve?.(Nt);
1431
+ }, [Nt]);
1432
+ const Xt = le(T ?? (() => {}), [T]);
1433
1433
  De(() => {
1434
- Gt?.(gt);
1435
- }, [gt]);
1436
- const Xt = Te(gt);
1437
- Xt.current = gt, B(kt, "onViewChange");
1438
- const Yt = Se(() => Xe(Ae, {
1434
+ Xt?.(ft);
1435
+ }, [ft]);
1436
+ const Yt = Te(ft);
1437
+ Yt.current = ft, B(bt, "onViewChange");
1438
+ const Jt = Se(() => Xe(Pe, {
1439
1439
  groupKey: "helpOptions",
1440
1440
  disableHover: !0,
1441
1441
  sx: { padding: "0" },
1442
1442
  propsButton: { sx: { maxHeight: "22px" } }
1443
- }), []), [Jt, Qt] = Ee(null), eo = Ce((e) => {
1444
- Qt(e);
1443
+ }), []), [Qt, eo] = Ee(null), to = Ce((e) => {
1444
+ eo(e);
1445
1445
  }, []);
1446
1446
  De(() => {
1447
1447
  X.prefetch([X.getActive(), W]).catch((e) => {
1448
1448
  console.warn("Icons could not be loaded:", e);
1449
1449
  });
1450
1450
  }, []);
1451
- const to = Te(null);
1452
- to.current || (to.current = fo());
1453
- const oo = Te(null), ro = Ce(() => oo.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? to.current.promise, []), no = le(async (e) => {
1454
- const t = Je.current;
1455
- t && t !== ht.getActive() && await ht.setActive(t), await G.DefaultCommandCatalogService.prefetch(t ?? void 0), _t(e), oo.current = e.source, to.current.settled || to.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
1456
- }, []), io = Te(null), lo = Ce((e) => {
1451
+ const oo = Te(null);
1452
+ oo.current || (oo.current = fo());
1453
+ const ro = Te(null), no = Ce(() => ro.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? oo.current.promise, []), io = le(async (e) => {
1454
+ const t = Qe.current;
1455
+ t && t !== ht.getActive() && await ht.setActive(t), await G.DefaultCommandCatalogService.prefetch(t ?? void 0), zt(e), ro.current = e.source, oo.current.settled || oo.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
1456
+ }, []), lo = Te(null), co = Ce((e) => {
1457
1457
  let t = null, r = {
1458
1458
  readOnly: !0,
1459
- ...ne
1459
+ ...se
1460
1460
  };
1461
- return ne?.hidden || (t = Xe(o, {
1461
+ return se?.hidden || (t = Xe(o, {
1462
1462
  ...r,
1463
1463
  style: {
1464
1464
  maxWidth: "100%",
1465
- ...ne?.style
1465
+ ...se?.style
1466
1466
  },
1467
- workbook: e.workbook ?? Ne.current,
1468
- ref: io,
1469
- title: Ut,
1470
- modified: It,
1471
- encrypted: Rt,
1472
- placeHolder: Ve,
1467
+ workbook: e.workbook ?? Re.current,
1468
+ ref: lo,
1469
+ title: Gt,
1470
+ modified: Nt,
1471
+ encrypted: jt,
1472
+ placeHolder: Ue,
1473
1473
  onTitleChange: (e) => {
1474
- Vt(e), ne?.onTitleChange?.(e);
1474
+ Ut(e), se?.onTitleChange?.(e);
1475
1475
  }
1476
1476
  })), Xe(Bt, {
1477
1477
  ...e,
1478
- logo: T,
1478
+ logo: E,
1479
1479
  mainElement: t,
1480
- startElement: E,
1481
- endElement: F
1480
+ startElement: F,
1481
+ endElement: P
1482
1482
  });
1483
1483
  }, [
1484
- T,
1485
- Ut,
1486
- It,
1487
- Rt,
1488
- ne,
1489
1484
  E,
1490
- F
1485
+ Gt,
1486
+ Nt,
1487
+ jt,
1488
+ se,
1489
+ F,
1490
+ P
1491
1491
  ]);
1492
1492
  De(() => {
1493
- const e = Ne.current;
1493
+ const e = Re.current;
1494
1494
  if (!e) return;
1495
1495
  const t = (t) => {
1496
1496
  (t.ctrlKey || t.metaKey || "native" !== re.getWheelOwner(t, e)) && t.preventDefault();
@@ -1498,12 +1498,12 @@ var fo = () => {
1498
1498
  return e.addEventListener("wheel", t, { passive: !1 }), () => {
1499
1499
  e.removeEventListener("wheel", t);
1500
1500
  };
1501
- }, [Kt]);
1502
- const [co, po] = Ee(null);
1501
+ }, [_t]);
1502
+ const [po, uo] = Ee(null);
1503
1503
  De(() => {
1504
- po(Kt?.source?.getCommandScope?.() ?? null);
1505
- }, [Kt]);
1506
- const uo = Se(() => ({
1504
+ uo(_t?.source?.getCommandScope?.() ?? null);
1505
+ }, [_t]);
1506
+ const mo = Se(() => ({
1507
1507
  "& .SnackbarContainer-root": { position: "absolute !important" },
1508
1508
  "& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
1509
1509
  "& .notistack-Snackbar": { minWidth: "unset" },
@@ -1516,58 +1516,56 @@ var fo = () => {
1516
1516
  whiteSpace: "pre-wrap"
1517
1517
  },
1518
1518
  "*": { userSelect: "none" }
1519
- }), []), [mo, go] = Ee(null), [, ho] = he(null, !1);
1519
+ }), []), [go, ho] = Ee(null), [, yo] = he(null, !1);
1520
1520
  De(() => {
1521
- ho(null != mo);
1522
- }, [mo, ho]);
1523
- const yo = Ce((e) => w({
1524
- model: kt,
1525
- side: x,
1521
+ yo(null != go);
1522
+ }, [go, yo]);
1523
+ const xo = Ce((e) => x({
1524
+ model: bt,
1525
+ side: C,
1526
1526
  ...e,
1527
- ...y
1527
+ ...w
1528
1528
  }), [
1529
- kt,
1530
- x,
1531
- y
1532
- ]), xo = Te(r);
1533
- xo.current = r, de(t, () => ({
1529
+ bt,
1530
+ C,
1531
+ w
1532
+ ]), vo = Te(r);
1533
+ vo.current = r, de(t, () => ({
1534
1534
  isStudioElement: () => !0,
1535
1535
  save: (e) => {
1536
- const t = Ot.current;
1536
+ const t = $t.current;
1537
1537
  return t ? t(e) : Promise.reject(/* @__PURE__ */ new Error("The studio cannot save: no workbook, or the backing store cannot write."));
1538
1538
  },
1539
- getWorkbookElement: () => Ne.current,
1540
- getWorkbook: () => Xt.current ?? null,
1541
- isDirty: () => jt.current?.isDirty() ?? !1,
1539
+ getWorkbookElement: () => Re.current,
1540
+ getWorkbook: () => Yt.current ?? null,
1541
+ isDirty: () => Ot.current?.isDirty() ?? !1,
1542
1542
  getEditable: () => At.current,
1543
- getFormulaBarElement: () => Oe.current ?? null,
1544
- focus: () => Ne.current?.focus(),
1545
- whenReady: () => (pt.current || (pt.current = fo()), pt.current.promise),
1546
- getWorkbookState: () => Lt.current,
1547
- retry: () => dt((e) => e + 1)
1543
+ getFormulaBarElement: () => Me.current ?? null,
1544
+ focus: () => Re.current?.focus(),
1545
+ whenReady: () => (ut.current || (ut.current = fo()), ut.current.promise),
1546
+ getWorkbookState: () => Kt.current,
1547
+ retry: () => pt((e) => e + 1)
1548
1548
  }), [], r);
1549
- const vo = Te(!1), Co = le((e, t) => {
1550
- t === wt.current && requestAnimationFrame(() => requestAnimationFrame(() => {
1551
- t === wt.current && (vo.current = xo.current?.contains(document.activeElement) ?? !0, bt(t), no(e));
1552
- }));
1549
+ const Co = Te(!1), Do = le(async (e, t) => {
1550
+ t === xt.current && (Co.current = vo.current?.contains(document.activeElement) ?? !0, yt(t), await io(e), c?.(e));
1553
1551
  }, []);
1554
1552
  De(() => {
1555
- vo.current && (vo.current = !1, Ne.current?.focus());
1556
- }, [kt]);
1557
- const Do = Ce((e) => {
1558
- const { ref: t, ...o } = e, r = et ? Qe.dark : Qe.light, n = "error" === ft.status && g ? Xe(oe, {
1559
- render: g,
1553
+ Co.current && (Co.current = !1, Re.current?.focus());
1554
+ }, [bt]);
1555
+ const So = Ce((e) => {
1556
+ const { ref: t, ...o } = e, r = ot ? et.dark : et.light, n = "error" === kt.status && f ? Xe(oe, {
1557
+ render: f,
1560
1558
  props: {
1561
- ...f,
1559
+ ...y,
1562
1560
  style: {
1563
1561
  width: "100%",
1564
1562
  height: "100%",
1565
- ...f?.style
1563
+ ...y?.style
1566
1564
  },
1567
- error: ft.error
1565
+ error: kt.error
1568
1566
  }
1569
1567
  }) : null;
1570
- if (n && !kt) return Xe(nt, {
1568
+ if (n && !bt) return Xe(nt, {
1571
1569
  style: {
1572
1570
  width: "100%",
1573
1571
  height: "100%",
@@ -1579,63 +1577,66 @@ var fo = () => {
1579
1577
  children: n
1580
1578
  });
1581
1579
  let l = null;
1582
- if (kt) {
1583
- const e = kt, n = e.getView(), a = me ?? n?.isShowFormulaBar(), i = xe ?? n?.isShowStatusBar(), s = Kt?.source ?? Ne.current, d = Xe(oe, {
1584
- render: void 0 === Pe ? lo : Pe,
1580
+ if (bt) {
1581
+ const e = bt, n = e.getView(), a = ge ?? n?.isShowFormulaBar(), i = ve ?? n?.isShowStatusBar(), s = _t?.source ?? Re.current, u = Xe(oe, {
1582
+ render: void 0 === Ne ? co : Ne,
1585
1583
  props: {
1586
1584
  workbook: s,
1587
- ...Fe
1585
+ ...Ae
1588
1586
  }
1589
- }), u = "bottom" === $e, g = a ? Xe(oe, {
1590
- render: void 0 === ke ? m : ke,
1587
+ }), g = "bottom" === Be, f = a ? Xe(oe, {
1588
+ render: void 0 === be ? m : be,
1591
1589
  props: {
1592
- ref: Oe,
1590
+ ref: Me,
1593
1591
  style: {
1594
- marginTop: r.spacing(u ? .5 : .25),
1592
+ marginTop: r.spacing(g ? .5 : .25),
1595
1593
  marginLeft: r.spacing(1),
1596
1594
  marginRight: r.spacing(1),
1597
- marginBottom: r.spacing(u ? .5 : .75)
1595
+ marginBottom: r.spacing(g ? .5 : .75)
1598
1596
  },
1599
1597
  workbook: e,
1600
- editable: Ft ?? void 0,
1601
- placement: $e,
1602
- floatOnKeyboard: "float" === Be,
1603
- ...ge,
1598
+ editable: Pt ?? void 0,
1599
+ placement: Be,
1600
+ floatOnKeyboard: "float" === Ke,
1601
+ ...ke,
1604
1602
  propsNamedCollectionEditor: {
1605
1603
  restoreFocus: (e) => s?.focus(e),
1606
- ...ge?.propsNamedCollectionEditor
1604
+ ...ke?.propsNamedCollectionEditor
1607
1605
  }
1608
1606
  }
1609
- }) : null, f = i ? Xe(oe, {
1610
- render: void 0 === We ? h : We,
1607
+ }) : null, k = i ? Xe(oe, {
1608
+ render: void 0 === Fe ? h : Fe,
1611
1609
  props: {
1612
- childrenEnd: Yt,
1613
- ...ve
1610
+ childrenEnd: Jt,
1611
+ ...We
1614
1612
  }
1615
- }) : null, k = (e, r) => Xe(p, {
1616
- ...ue,
1613
+ }) : null, b = (e, r) => Xe(p, {
1614
+ ...me,
1617
1615
  tabIndex: 0,
1618
- autoFocus: !r && q,
1616
+ autoFocus: !r && J,
1619
1617
  workbook: e,
1620
- editable: r ? void 0 : Ft ?? void 0,
1621
- focusNameBox: r ? void 0 : Me,
1622
- prefetch: !r && c,
1623
- ref: r ? Re : Dt([t, Ne]),
1624
- onWorkbookLoad: r ? (t) => Co(t, e) : no,
1618
+ editable: r ? void 0 : Pt ?? void 0,
1619
+ focusNameBox: r ? void 0 : $e,
1620
+ prefetch: !r && d,
1621
+ ref: r ? Oe : Dt([t, Re]),
1622
+ onWorkbookLoad: r ? void 0 : io,
1623
+ onRenderSettled: r ? (t) => {
1624
+ Do(t, e);
1625
+ } : c,
1625
1626
  onKeyDown: (e) => {
1626
- C?.(e);
1627
+ D?.(e);
1627
1628
  },
1628
- propsWorkbookLoading: ce,
1629
+ propsWorkbookLoading: ue,
1629
1630
  renderWorkbookLoading: null,
1630
1631
  style: r ? {
1631
- ...ue?.style,
1632
+ ...me?.style,
1632
1633
  position: "absolute",
1633
1634
  inset: 0,
1634
1635
  visibility: "hidden"
1635
1636
  } : {
1636
1637
  flex: "1 1 100%",
1637
1638
  minHeight: 0,
1638
- ...ue?.style
1639
+ ...me?.style
1639
1640
  },
1640
1641
  onContextMenu: (e) => e.preventDefault(),
1641
1642
  ...r ? null : o
@@ -1648,16 +1649,16 @@ var fo = () => {
1648
1649
  minWidth: 0,
1649
1650
  minHeight: 0
1650
1651
  },
1651
- children: so($e, {
1652
- toolbar: d,
1653
- formulaBar: g,
1654
- statusBar: f,
1652
+ children: so(Be, {
1653
+ toolbar: u,
1654
+ formulaBar: f,
1655
+ statusBar: k,
1655
1656
  main: Xe(ao, {
1656
- taskSide: x,
1657
+ taskSide: C,
1657
1658
  persistKey: bo,
1658
- sidebarElement: mo ? Xe(G.CommandScopeProvider, {
1659
- scope: co,
1660
- children: mo
1659
+ sidebarElement: go ? Xe(G.CommandScopeProvider, {
1660
+ scope: po,
1661
+ children: go
1661
1662
  }) : void 0,
1662
1663
  mainElement: Ye("div", {
1663
1664
  style: {
@@ -1668,8 +1669,8 @@ var fo = () => {
1668
1669
  minWidth: 0,
1669
1670
  minHeight: 0
1670
1671
  },
1671
- children: [[k(kt, !1), yt ? k(yt, !0) : null], Xe(Ze, {
1672
- ref: eo,
1672
+ children: [[b(bt, !1), wt ? b(wt, !0) : null], Xe(Ze, {
1673
+ ref: to,
1673
1674
  sx: {
1674
1675
  position: "absolute",
1675
1676
  top: "10%",
@@ -1685,16 +1686,16 @@ var fo = () => {
1685
1686
  })
1686
1687
  });
1687
1688
  }
1688
- const d = !Kt && se ? Xe(oe, {
1689
- render: se,
1690
- props: { ...ce }
1689
+ const u = !_t && ce ? Xe(oe, {
1690
+ render: ce,
1691
+ props: { ...ue }
1691
1692
  }) : null;
1692
1693
  return Ye(nt, {
1693
- sx: uo,
1694
+ sx: mo,
1694
1695
  style: {
1695
1696
  width: "100%",
1696
- height: Ke ? `calc(100% - ${Ke}px)` : "100%",
1697
- transform: _e ? `translateY(${_e}px)` : void 0,
1697
+ height: _e ? `calc(100% - ${_e}px)` : "100%",
1698
+ transform: ze ? `translateY(${ze}px)` : void 0,
1698
1699
  position: "absolute",
1699
1700
  display: "flex",
1700
1701
  alignItems: "stretch",
@@ -1717,65 +1718,65 @@ var fo = () => {
1717
1718
  },
1718
1719
  children: n
1719
1720
  }) : null,
1720
- d ? Xe("div", {
1721
+ u ? Xe("div", {
1721
1722
  style: {
1722
1723
  position: "absolute",
1723
1724
  inset: 0,
1724
1725
  display: "flex",
1725
1726
  alignItems: "center",
1726
1727
  justifyContent: "center",
1727
- background: `var(--sxl-color-base-100, ${et ? "#121212" : "#fff"})`
1728
+ background: `var(--sxl-color-base-100, ${ot ? "#121212" : "#fff"})`
1728
1729
  },
1729
- children: d
1730
+ children: u
1730
1731
  }) : null
1731
1732
  ]
1732
1733
  });
1733
1734
  }, [
1734
- ft,
1735
1735
  kt,
1736
- yt,
1737
- Kt,
1738
- Ut,
1739
- se,
1736
+ bt,
1737
+ wt,
1738
+ _t,
1739
+ Gt,
1740
1740
  ce,
1741
1741
  ue,
1742
+ me,
1742
1743
  a,
1743
1744
  i,
1744
1745
  s,
1745
- Yt,
1746
- g,
1746
+ Jt,
1747
1747
  f,
1748
- lo,
1749
- uo,
1750
- mo,
1751
- x,
1748
+ y,
1752
1749
  co,
1753
- me,
1750
+ mo,
1751
+ go,
1752
+ C,
1753
+ po,
1754
1754
  ge,
1755
1755
  ke,
1756
- $e,
1757
- Ft,
1758
- xe,
1756
+ be,
1757
+ Be,
1758
+ Pt,
1759
1759
  ve,
1760
1760
  We,
1761
1761
  Fe,
1762
- Pe,
1763
- Be,
1762
+ Ae,
1763
+ Ne,
1764
1764
  Ke,
1765
1765
  _e,
1766
- Qe,
1767
- et
1766
+ ze,
1767
+ et,
1768
+ ot
1768
1769
  ]);
1769
- let So = Xe(Et, {
1770
+ let To = Xe(Et, {
1770
1771
  maxSnack: 3,
1771
- domRoot: Jt ?? void 0,
1772
+ domRoot: Qt ?? void 0,
1772
1773
  anchorOrigin: {
1773
1774
  vertical: "bottom",
1774
1775
  horizontal: "right"
1775
1776
  },
1776
1777
  autoHideDuration: 3500,
1777
1778
  onClose: (e, t, o) => {
1778
- Ne.current?.focus();
1779
+ Re.current?.focus();
1779
1780
  },
1780
1781
  Components: { error: Mt },
1781
1782
  iconVariant: {
@@ -1789,41 +1790,41 @@ var fo = () => {
1789
1790
  })
1790
1791
  },
1791
1792
  children: Xe(O, {
1792
- workbook: kt,
1793
- children: Xe(P, {
1794
- renderArea: yo,
1793
+ workbook: bt,
1794
+ children: Xe(A, {
1795
+ renderArea: xo,
1795
1796
  onUpdateArea: (e) => {
1796
- go(e);
1797
+ ho(e);
1797
1798
  },
1798
1799
  children: Xe(je, { children: Xe(Zt, { children: Xe(ie, { children: Xe(Q, { children: Xe(qt, {
1799
- workbook: kt,
1800
- initialCommandAnchor: ro,
1801
- renderWorkbook: Do,
1802
- setWorkbook: Ct,
1803
- titleWorkbook: Ut,
1804
- setWorkbookTitle: Vt,
1805
- refDocumentTitle: io,
1806
- isDirty: $t,
1807
- refSave: Ot,
1800
+ workbook: bt,
1801
+ initialCommandAnchor: no,
1802
+ renderWorkbook: So,
1803
+ setWorkbook: St,
1804
+ titleWorkbook: Gt,
1805
+ setWorkbookTitle: Ut,
1806
+ refDocumentTitle: lo,
1807
+ isDirty: Lt,
1808
+ refSave: $t,
1808
1809
  host: r
1809
1810
  }) }) }) }) })
1810
1811
  })
1811
1812
  })
1812
1813
  });
1813
- return So = Ye(lt, {
1814
- theme: et ? Qe.dark : Qe.light,
1814
+ return To = Ye(lt, {
1815
+ theme: ot ? et.dark : et.light,
1815
1816
  children: [
1816
- z ? Xe(tt, {}) : null,
1817
- Xe(ae, { css: ot }),
1817
+ q ? Xe(tt, {}) : null,
1818
+ Xe(ae, { css: rt }),
1818
1819
  Xe(I, { scopeClass: n }),
1819
1820
  Xe(Ie, {
1820
1821
  themeScopeClass: n,
1821
1822
  themeSurface: "app",
1822
- themeMode: Ge,
1823
- children: So
1823
+ themeMode: qe,
1824
+ children: To
1824
1825
  })
1825
1826
  ]
1826
- }), So;
1827
+ }), To;
1827
1828
  }));
1828
1829
  yo.displayName = "EagerStudio";
1829
1830
  var wo = (e) => Xe(to, { ...e });