@sheetxl/studio-mui 0.8.0-beta.22 → 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 (104) hide show
  1. package/browser/esm/{BKwBJsEKNY-Zg8CB.mjs → 7XEGWIttcSbBYq6X.mjs} +2 -2
  2. package/browser/esm/{C-rODYmI2nVNJxkV.mjs → B1J7-fSJd96S5STt.mjs} +2 -2
  3. package/browser/esm/{DrMsUvIwtq9dARmW.mjs → B1zJHbp6G6TTKTQC.mjs} +4 -4
  4. package/browser/esm/{ov0v-5BfNGRojfXZ.mjs → B2MwSeVQb2zWJrzL.mjs} +2 -2
  5. package/browser/esm/{CgtckX24zzJUIsPm.mjs → BFHH6tVY4R0lMIqf.mjs} +4 -4
  6. package/browser/esm/{CJlwai18BnsJScjr.mjs → BL4fyBwHouOSUlzC.mjs} +2 -2
  7. package/browser/esm/{Dq5jd89jluXcrOEE.mjs → BNOxvik6-Q4nIApA.mjs} +5 -5
  8. package/browser/esm/{CzhTxHyYCZp4qxKC.mjs → BNvNGU2n7yyZVKIy.mjs} +119 -116
  9. package/browser/esm/{D26ZjloyA6kyqhCO.mjs → BQ3aYpDVa6A3J9Xt.mjs} +2 -2
  10. package/browser/esm/{CuL7ggWqWMgPSTYd.mjs → BRsCZxrGyyA6h8T6.mjs} +1 -1
  11. package/browser/esm/{DQbt4DNrmq-Uhlgk.mjs → BWucl1RV8CJYTcpt.mjs} +8 -8
  12. package/browser/esm/{vsSZOEJBDfjVM46M.mjs → BY0yBoZ7AzI567Ps.mjs} +2 -2
  13. package/browser/esm/{C1F9o-e9q6m9MuOd.mjs → B_nraJQRTCR3eak_.mjs} +727 -734
  14. package/browser/esm/{h0wby0g03NYV4-XW.mjs → BaWzcy1PPng1FJin.mjs} +5 -5
  15. package/browser/esm/{CtNLEdf5v8pGcG3C.mjs → Bb3HM5mmBw-8OoNR.mjs} +2 -2
  16. package/browser/esm/{CSgrMpZ0rZKxXZyj.mjs → BfMULAFm959ZLHOe.mjs} +4 -4
  17. package/browser/esm/{BfiIvcOXqUoxIFoz.mjs → BgnjNV3VdjlTw94C.mjs} +2 -2
  18. package/browser/esm/{DkWzWQNmOvX1iJXV.mjs → Bk9tzJOoqxzTMQKv.mjs} +2 -2
  19. package/browser/esm/{BChPnCMzvz7cXxgX.mjs → Bpulk50Ex6FGKiwF.mjs} +2 -2
  20. package/browser/esm/{DaCPqL3R4JLbgfKh.mjs → Brk8Ndnu-yN80ETp.mjs} +2 -2
  21. package/browser/esm/{BOlLywIc0l3AgTeQ.mjs → BuJdDEM4YeYxoQ01.mjs} +3 -3
  22. package/browser/esm/{D3H9iUvXD2rOEXUz.mjs → BzTlI18P6oo1vgFo.mjs} +3 -3
  23. package/browser/esm/{IrJcYpXt_8rkAXkj.mjs → C0OOFFzZRgT8CBIp.mjs} +3 -3
  24. package/browser/esm/{Df0ygc7YMQG-3ATr.mjs → C2Uy5KAk1EpXx_wk.mjs} +1 -1
  25. package/browser/esm/{DEMQ4FkP_kNZF_wE.mjs → C2w9aGKwb08u3Ez7.mjs} +1 -1
  26. package/browser/esm/{BuAIHmOwBspXtuLo.mjs → C7orP4YoHT-eSyfn.mjs} +4 -4
  27. package/browser/esm/{COFmQH3tB3uvu0v4.mjs → CBMDjcxw8rlrNKnj.mjs} +1 -1
  28. package/browser/esm/{CwBN8jwNndijQgmx.mjs → CD4IYmiQX8A97dEr.mjs} +1 -1
  29. package/browser/esm/{dAjSLtkpLCkJDkhU.mjs → CEtIRobAbbsiZfrZ.mjs} +1 -1
  30. package/browser/esm/{CXvLc2JRNpJ9CiWw.mjs → CMajJZaC8s1_eSEC.mjs} +3 -3
  31. package/browser/esm/{C1tObUn9YlTLNn25.mjs → CguVBBZwZ618NlE6.mjs} +2 -2
  32. package/browser/esm/{DqFTGLVzd9DQ8EhO.mjs → Cj9TPVpIkIYcy70d.mjs} +21 -21
  33. package/browser/esm/{B73fvq9CvO4zWnAU.mjs → ClQF_ptVGM5B66xW.mjs} +3 -3
  34. package/browser/esm/{B_N6a3iKw4osibIz.mjs → CpC0uo2M0Dai7AiA.mjs} +1 -1
  35. package/browser/esm/{veW5ER4LND6O438J.mjs → Cq0vzuugOpnZM8QA.mjs} +1 -1
  36. package/browser/esm/{Dqa4YY-GeaELqOWP.mjs → CrTiob4GyK7RSm2j.mjs} +2 -2
  37. package/browser/esm/{Df13XIFEDDEusmq6.mjs → D1altjJlQetHB62D.mjs} +2 -2
  38. package/browser/esm/{C-LSHx-5EgUmc44h.mjs → D80enC00cXoSVJra.mjs} +6 -6
  39. package/browser/esm/{t7Y081CM2JBXwlh-.mjs → DD4IfoI_4c8kxYdT.mjs} +1 -1
  40. package/browser/esm/{De5GPX3SbEvetD0y.mjs → DK7jTimU_43Q6WwS.mjs} +1 -1
  41. package/browser/esm/{PujeLGgr7jXdyoVl.mjs → DKsw1VYfCTtYGlop.mjs} +1 -1
  42. package/browser/esm/{Dt3cLYWyjIUhoGv5.mjs → DPGrdFumR1i6zBRq.mjs} +2 -2
  43. package/browser/esm/{94tsNi06fbT_N5QP.mjs → DR0M8Ps9UHTIyyDI.mjs} +1 -1
  44. package/browser/esm/{UkGnqCkXqASlUdkb.mjs → DUmQjo4XoGeyakLY.mjs} +4 -4
  45. package/browser/esm/{4fBGyv6A2TxumCq-.mjs → DWv41FDs4YkqZkyJ.mjs} +1 -1
  46. package/browser/esm/{BYtWtukbMjjvrpmO.mjs → DZZC-Nkfq6DDLJ1n.mjs} +4 -4
  47. package/browser/esm/{DXRtL-ZwbSMLfMWu.mjs → DgDOmvY1hlDC7lat.mjs} +1 -1
  48. package/browser/esm/{CoVFWmiy6hWV8rPy.mjs → DhusV9FVUjYDlVj1.mjs} +4 -4
  49. package/browser/esm/{DdyE9R4gSZNhRZb0.mjs → DlICPyHPAt2vB9TF.mjs} +5 -5
  50. package/browser/esm/{DNdSq8U8iqBPrwOo.mjs → DptpTirYcok-s9Ek.mjs} +1 -1
  51. package/browser/esm/{es5d1Dk1vs-XYLkm.mjs → DyP2IhUq_LBuTK7x.mjs} +2 -2
  52. package/browser/esm/{CqmCCdvSBl4ksHpK.mjs → DzDvnHxGXipk_479.mjs} +4 -4
  53. package/browser/esm/{C3lvgNO_MVml-Awy.mjs → OqwpjZkr-pRhQuZV.mjs} +2 -2
  54. package/browser/esm/{CMPdCzAvGvFQ_NOu.mjs → SOW_dQWWWJ-cOnDw.mjs} +1 -1
  55. package/browser/esm/{DB44ddihGazQSGaZ.mjs → bdmGALeUgD9fyDGM.mjs} +1 -1
  56. package/browser/esm/{eA3xhEFzK_Y-f3m3.mjs → fz_FDlw054tjwa-c.mjs} +5 -5
  57. package/browser/esm/index.mjs +21 -19
  58. package/browser/esm/{DCjDYZjRl7IH3hl7.mjs → j-Z9J_LlODLEkT7p.mjs} +1 -1
  59. package/browser/esm/{BhT_uJEPxlXpMzZA.mjs → kp1nDU5guLdBB4_i.mjs} +8 -8
  60. package/browser/esm/{CStCc2wP7hmm92t1.mjs → tKnZpMJpv_nVyFCW.mjs} +2 -2
  61. package/licenses/dependencies.txt +34 -34
  62. package/node/esm/{bXPPrX3OxYcCm85J.mjs → 4HqJx9W3eCHZJYHq.mjs} +1 -1
  63. package/node/esm/{CawfjLMD5X08VllQ.mjs → 9BK7l-Ivt43b6KEy.mjs} +2 -2
  64. package/node/esm/{Bu647iy66qiv3-qM.mjs → B5xwJWLsa8sioS03.mjs} +2 -2
  65. package/node/esm/{DLt7HmhROlJ1V8bV.mjs → BDTeyNi7xRbf38xH.mjs} +1 -1
  66. package/node/esm/{CTsTUI34q8TBkdX5.mjs → BMgFr4sa7VguBGxk.mjs} +1 -1
  67. package/node/esm/{Dj16Fzha7o7DGv6z.mjs → BP0g0_d2f-xt8UFn.mjs} +2 -2
  68. package/node/esm/{DY96atQfGYmZ90TD.mjs → BSsmV4HYEDHVuddc.mjs} +4 -4
  69. package/node/esm/{BML2jZO-vGc6RS51.mjs → BaifedVnO6sEYMzi.mjs} +2 -2
  70. package/node/esm/{Bppef7aHA2mOZ_sn.mjs → Bh0Gj46U8muzB5rE.mjs} +1 -1
  71. package/node/esm/{BPGz9KUMwgtyF6LG.mjs → BhwrJ37EPr61SCjz.mjs} +1 -1
  72. package/node/esm/{Dv8pWn_FIH1LYneP.mjs → Bk1BxTa-h6oEeomA.mjs} +2 -2
  73. package/node/esm/{JieSP-_GeRIfiW8Z.mjs → Bv57exHF6UhZGb1O.mjs} +2 -2
  74. package/node/esm/{BI4aQ23a2wqqskmY.mjs → C2VFk9URvBZFujyP.mjs} +523 -530
  75. package/node/esm/{tt1hY7OYeKg-gSFj.mjs → CFjQXRCWP-MPTRBv.mjs} +1 -1
  76. package/node/esm/{GeB-AGYaOLPf4xIa.mjs → CPH0Wi667aTEJWCl.mjs} +2 -2
  77. package/node/esm/{DBB9QhddMWoyCmju.mjs → CRH0tGlA-sqHDUz2.mjs} +2 -2
  78. package/node/esm/{BjpAc-kSpia0lwjr.mjs → C_h-NFbdy9DIJixP.mjs} +1 -1
  79. package/node/esm/{DRigWgmIaYtEv5Lk.mjs → ChzGjcGAyzVoq3us.mjs} +1 -1
  80. package/node/esm/{C4qWN7D3UW8jLaZK.mjs → Cirjh7F_jwRd8Pi6.mjs} +4 -4
  81. package/node/esm/{B5dbA7OTeRHtdFKK.mjs → ClNrf_Pe3HfSaFUT.mjs} +4 -4
  82. package/node/esm/{CF8UfOyBsfrrOyAH.mjs → CppEuBRopVC7VxPL.mjs} +2 -2
  83. package/node/esm/{BuDVpL6sgPNGIN7T.mjs → CqWATgCFM9qYxp1y.mjs} +1 -1
  84. package/node/esm/{Dg5D5zMNzygUWk51.mjs → Ct2JrPNKwFOvQu0_.mjs} +2 -2
  85. package/node/esm/{wC3tHWypFfvBG8Fu.mjs → DCYxCMEhlKObeBEe.mjs} +1 -1
  86. package/node/esm/{CM2JoqeXwIblrqJM.mjs → DI0Up8gwhMuO7w72.mjs} +2 -2
  87. package/node/esm/{eCWrCiaQxjPKI08p.mjs → DILm8NUWBiK3awMV.mjs} +1 -1
  88. package/node/esm/{C9dfS-Tk6WGogUSV.mjs → DNtSV77EYwaspYmi.mjs} +2 -2
  89. package/node/esm/{CcLCu4TIukHypMCt.mjs → DTvy0yJqex01kzo5.mjs} +2 -2
  90. package/node/esm/{DxRENk3CWrgvcnJj.mjs → DWujZlKfLTgVGIEt.mjs} +2 -2
  91. package/node/esm/{BNJBkYIYk2zyHoU3.mjs → DZTW7YULM5cQgjS4.mjs} +1 -1
  92. package/node/esm/{DLQ1x8uASVrHgCX2.mjs → DsBCEfioTtS5807R.mjs} +1 -1
  93. package/node/esm/{DomLgHu8aLIg6y2l.mjs → DsbNzYUczH1eAcK3.mjs} +1 -1
  94. package/node/esm/{CbE22c6PmT_9BusX.mjs → DxqToqw-cEzX831t.mjs} +1 -1
  95. package/node/esm/{Caf_ZRpLHj97cmhq.mjs → EzGwAoT6udab_NyI.mjs} +1 -1
  96. package/node/esm/{G7AEbATGEFC09W8Z.mjs → FIiI413QzHon4mGk.mjs} +1 -1
  97. package/node/esm/{DrBGMrwOCXerStOS.mjs → YlDJ0a12ebcGk3BT.mjs} +2 -2
  98. package/node/esm/{D1QZYBh1NZInkWaZ.mjs → epCpPVzMrhKc5rqz.mjs} +2 -2
  99. package/node/esm/index.mjs +2408 -2402
  100. package/node/esm/{Bzi3tHPQ3b7BGbwU.mjs → oXlca69piL_uRVe2.mjs} +1 -1
  101. package/node/esm/{Bn2kMFZYznOun538.mjs → tIvPPjG0vLdENMKH.mjs} +1 -1
  102. package/package.json +10 -10
  103. package/types/src/studio/StudioProps.d.ts +14 -7
  104. package/types/src/theme/ThemeUtils.d.ts +8 -27
@@ -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.22
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, 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, 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) => {
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
+ 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
+ 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 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
+ import { Fragment as qe, jsx as Xe, jsxs as Ye } from "react/jsx-runtime";
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
+ 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
+ import Ct from "clsx";
16
+ import { mergeRefs as Dt, useMergeRefs as St } from "react-merge-refs";
17
+ import { SnackbarContent as Tt, SnackbarProvider as Et, useSnackbar as Wt } from "notistack";
18
+ var Ft = Object.defineProperty, Pt = (e, t) => {
19
19
  let o = {};
20
- for (var r in e) Pt(o, r, {
20
+ for (var r in e) Ft(o, r, {
21
21
  get: e[r],
22
22
  enumerable: !0
23
23
  });
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) => {
24
+ return t || Ft(o, Symbol.toStringTag, { value: "Module" }), o;
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();
29
- return jt.test(o) && !Ot.test(o) ? o : t;
30
- }, Mt = {
29
+ return Nt.test(o) && !Rt.test(o) ? o : t;
30
+ }, Ot = {
31
31
  card: "_card_h0jnt_7",
32
32
  actionRoot: "_actionRoot_h0jnt_11",
33
33
  icons: "_icons_h0jnt_16",
@@ -37,63 +37,63 @@ var Pt = Object.defineProperty, It = (e, t) => {
37
37
  paper: "_paper_h0jnt_37",
38
38
  checkIcon: "_checkIcon_h0jnt_42",
39
39
  button: "_button_h0jnt_47"
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(() => {
40
+ }, Mt = ve(we((e, t) => {
41
+ const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l = ke(), { closeSnackbar: c } = Wt(), [d, p] = Ee(!1), u = a ? ft.collectErrorChain(a, !0)?.[0]?.error : void 0, m = u && !(u instanceof kt), g = Ce(() => {
42
42
  p((e) => !e);
43
- }, []), h = Se(() => {
43
+ }, []), h = Ce(() => {
44
44
  c(o);
45
45
  }, [o, c]);
46
46
  let f = u?.message;
47
- return !f && Ce(r) && (f = r), f || "string" != typeof r || (f = r), f || (f = `Unknown Error: ${r}`), Ze(Wt, {
47
+ return !f && xe(r) && (f = r), f || "string" != typeof r || (f = r), f || (f = `Unknown Error: ${r}`), Xe(Tt, {
48
48
  ref: t,
49
- className: St(Mt.root, "error-snackbar"),
50
- children: Je(et, {
51
- className: Mt.card,
49
+ className: Ct(Ot.root, "error-snackbar"),
50
+ children: Ye(Je, {
51
+ className: Ot.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: [Je(tt, {
58
- className: Mt.actionRoot,
57
+ children: [Ye(Qe, {
58
+ className: Ot.actionRoot,
59
59
  children: [
60
60
  i ? null : n?.error,
61
- Ze(pt, {
61
+ Xe(ct, {
62
62
  variant: "body2",
63
63
  component: "div",
64
- className: Mt.typography,
64
+ className: Ot.typography,
65
65
  children: f
66
66
  }),
67
- Ze("div", { style: { flex: "1 1 auto" } }),
68
- Je("div", {
69
- className: Mt.icons,
70
- children: [m ? Ze(at, {
67
+ Xe("div", { style: { flex: "1 1 auto" } }),
68
+ Ye("div", {
69
+ className: Ot.icons,
70
+ children: [m ? Xe(rt, {
71
71
  "aria-label": l("toast.showMore"),
72
72
  size: "small",
73
- className: St(Mt.expand, { [Mt.expandOpen]: d }),
73
+ className: Ct(Ot.expand, { [Ot.expandOpen]: d }),
74
74
  onClick: g,
75
- children: Ze(Z, { iconKey: "ExpandMore" })
76
- }) : null, Ze(at, {
75
+ children: Xe(Y, { iconKey: "ExpandMore" })
76
+ }) : null, Xe(rt, {
77
77
  size: "small",
78
- className: Mt.expand,
78
+ className: Ot.expand,
79
79
  onClick: h,
80
- children: Ze(Z, {
80
+ children: Xe(Y, {
81
81
  iconKey: "Close",
82
82
  style: { transform: "scale(0.8)" }
83
83
  })
84
84
  })]
85
85
  })
86
86
  ]
87
- }), m ? Ze(ot, {
87
+ }), m ? Xe(et, {
88
88
  in: d,
89
89
  timeout: "auto",
90
- children: Ze("div", {
91
- className: Mt.stackTraceContainer,
90
+ children: Xe("div", {
91
+ className: Ot.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: Ze(Be, {
96
+ children: Xe($e, {
97
97
  error: a,
98
98
  hideLineNumbers: !0
99
99
  })
@@ -102,13 +102,13 @@ var Pt = Object.defineProperty, It = (e, t) => {
102
102
  })
103
103
  });
104
104
  }));
105
- Lt.displayName = "ToastError";
106
- var Bt = () => {
107
- const e = ye();
108
- return Ze(Oe, {
105
+ Mt.displayName = "ToastError";
106
+ var $t = () => {
107
+ const e = ke();
108
+ return Xe(Re, {
109
109
  label: "SheetXL",
110
110
  description: e("logo.description"),
111
- children: Ze(Qe, {
111
+ children: Xe(Ze, {
112
112
  component: "a",
113
113
  href: "https://www.sheetxl.com",
114
114
  target: "_blank",
@@ -121,25 +121,25 @@ var Bt = () => {
121
121
  marginLeft: "6px",
122
122
  cursor: "pointer"
123
123
  },
124
- children: Ze(T, { style: {
124
+ children: Xe(T, { style: {
125
125
  width: "24px",
126
126
  height: "24px"
127
127
  } })
128
128
  })
129
129
  });
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([
130
+ }, Lt = Xe($t, {}), Bt = ve(we((e, t) => {
131
+ const { workbook: o, className: r, logo: n = Lt, mainElement: a, startElement: i, endElement: s, ...l } = e, [c, { width: d }] = me(), p = d < 530, u = Te(null), m = St([
132
132
  u,
133
133
  c,
134
134
  t
135
135
  ]);
136
- return Ze(Qe, {
136
+ return Xe(Ze, {
137
137
  ...l,
138
138
  ref: m,
139
139
  className: r,
140
140
  children: f({
141
141
  isCompact: p,
142
- wrapperSelect: (e) => Je(Qe, {
142
+ wrapperSelect: (e) => Ye(Ze, {
143
143
  sx: {
144
144
  display: "grid",
145
145
  gridTemplateColumns: "1fr auto 1fr",
@@ -150,7 +150,7 @@ var Bt = () => {
150
150
  paddingRight: (e) => e.spacing(1)
151
151
  },
152
152
  children: [
153
- Je(Qe, {
153
+ Ye(Ze, {
154
154
  sx: {
155
155
  display: "flex",
156
156
  flexDirection: "row",
@@ -158,7 +158,7 @@ var Bt = () => {
158
158
  justifyContent: "start",
159
159
  gap: (e) => e.spacing(.5)
160
160
  },
161
- children: [n, Je(Qe, {
161
+ children: [n, Ye(Ze, {
162
162
  sx: {
163
163
  display: "flex",
164
164
  flexDirection: "row",
@@ -168,7 +168,7 @@ var Bt = () => {
168
168
  children: [i, e]
169
169
  })]
170
170
  }),
171
- Ze(Qe, {
171
+ Xe(Ze, {
172
172
  sx: {
173
173
  display: "flex",
174
174
  flexDirection: "row",
@@ -179,7 +179,7 @@ var Bt = () => {
179
179
  },
180
180
  children: a
181
181
  }),
182
- Ze(Qe, {
182
+ Xe(Ze, {
183
183
  sx: {
184
184
  display: "flex",
185
185
  alignItems: "center",
@@ -192,12 +192,12 @@ var Bt = () => {
192
192
  })
193
193
  });
194
194
  }));
195
- _t.displayName = "StudioToolbar";
196
- var zt = (e, t) => {
195
+ Bt.displayName = "StudioToolbar";
196
+ var Kt = (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-" + ht.uuidV4(), "popup=true");
198
+ e && o.searchParams.set("source", e), e && t && o.searchParams.set("title", t), window.open(o.toString(), "sheetxl-" + mt.uuidV4(), "popup=true");
199
199
  };
200
- function Ht(e, t) {
200
+ function _t(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 Ht(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: Dt("dialog.password.title"),
210
- description: Dt("dialog.password.open.description", { name: e.getName() ?? "" }),
209
+ title: vt("dialog.password.title"),
210
+ description: vt("dialog.password.open.description", { name: e.getName() ?? "" }),
211
211
  inputType: "password",
212
212
  options: [{
213
213
  id: "Open",
214
- label: () => Dt("dialog.open")
214
+ label: () => vt("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: Dt("dialog.password.open.retry")
219
+ message: vt("dialog.password.open.retry")
220
220
  } : {
221
221
  valid: !1,
222
- message: Dt("dialog.password.open.required")
222
+ message: vt("dialog.password.open.required")
223
223
  }
224
224
  });
225
225
  return "Open" === o?.option ? o.input ?? null : null;
@@ -231,11 +231,11 @@ function Ht(e, t) {
231
231
  let a;
232
232
  o && (n.progress.onStart = o);
233
233
  let s = -5;
234
- return R.read({
234
+ return j.read({
235
235
  ...n,
236
236
  progress: {
237
237
  async onStart(e, t) {
238
- await n?.progress?.onStart?.(e, t), a = await i?.showBusy?.(Dt("workbook.opening", { name: e?.getName() ?? "" })), t && a?.setProgress?.(0, t);
238
+ await n?.progress?.onStart?.(e, t), a = await i?.showBusy?.(vt("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 Ht(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(Dt("workbook.importWarnings")), console.warn("Import warnings:\n" + r.join("\n")));
251
+ a?.(), r.length > 0 && (i.showMessage(vt("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 Ht(e, t) {
261
261
  format: t?.key,
262
262
  progress: {
263
263
  async onStart(e) {
264
- a = await i?.showBusy?.(Dt("workbook.saving", { name: e?.getName() ?? "" }));
264
+ a = await i?.showBusy?.(vt("workbook.saving", { name: e?.getName() ?? "" }));
265
265
  },
266
266
  onComplete() {
267
267
  a?.();
@@ -269,55 +269,55 @@ function Ht(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 = Dt("dialog.writeWarnings.title"), n = t.getFormat(), s = (n ? (await R.getWriteFormats({ search: n }))[0] : void 0)?.description ?? n ?? "", l = Dt("dialog.writeWarnings.keep");
272
+ const r = vt("dialog.writeWarnings.title"), n = t.getFormat(), s = (n ? (await j.getWriteFormats({ search: n }))[0] : void 0)?.description ?? n ?? "", l = vt("dialog.writeWarnings.keep");
273
273
  return o ? "Save" === await i.showOptions({
274
274
  title: r,
275
- type: Q.Warning,
276
- description: `${Dt("dialog.writeWarnings.confirm", { format: s })}\n\n${l}`,
275
+ type: J.Warning,
276
+ description: `${vt("dialog.writeWarnings.confirm", { format: s })}\n\n${l}`,
277
277
  options: [{
278
278
  id: "Save",
279
- label: () => Dt("dialog.save")
279
+ label: () => vt("dialog.save")
280
280
  }, "Cancel"],
281
281
  defaultOption: "Cancel"
282
- }) && (a = await i?.showBusy?.(Dt("workbook.saving", { name: t?.getName() ?? "" })), !0) : (i.showOptions({
282
+ }) && (a = await i?.showBusy?.(vt("workbook.saving", { name: t?.getName() ?? "" })), !0) : (i.showOptions({
283
283
  title: r,
284
- type: Q.Warning,
285
- description: `${Dt("dialog.writeWarnings.saved", { format: s })}\n\n${l}`,
284
+ type: J.Warning,
285
+ description: `${vt("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() || Dt("workbook.defaultName")}.${r}`;
293
- l = await R.writeAs(e, a, {
292
+ const o = e.getOrigin(), r = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${n || o.getName() || vt("workbook.defaultName")}.${r}`;
293
+ l = await j.writeAs(e, a, {
294
294
  ...s,
295
295
  prompt: !0
296
296
  });
297
- } else l = await R.write(e, void 0, s);
297
+ } else l = await j.write(e, void 0, s);
298
298
  return l;
299
299
  };
300
300
  let p = null;
301
301
  return e.updateCommand("newWorkbook", { callback: async (e) => {
302
- const t = R.canRead() && !a();
302
+ const t = j.canRead() && !a();
303
303
  e?.source ? t && p ? await p({
304
304
  url: e.source,
305
305
  title: e.title
306
- }) : zt(e.source, e.title) : t ? r({}) : zt();
306
+ }) : Kt(e.source, e.title) : t ? r({}) : Kt();
307
307
  } }), e.updateCommand("closeWorkbook", { callback: async () => {
308
308
  a() && "Close" !== await i.showOptions({
309
- title: Dt("dialog.confirm.title"),
310
- description: Dt("dialog.unsavedChanges"),
309
+ title: vt("dialog.confirm.title"),
310
+ description: vt("dialog.unsavedChanges"),
311
311
  options: [{
312
312
  id: "Close",
313
- label: () => Dt("dialog.close")
313
+ label: () => vt("dialog.close")
314
314
  }, "Cancel"],
315
315
  defaultOption: "Cancel"
316
316
  }) || window.close();
317
317
  } }), (async () => {
318
- const t = await R.getWriteFormats();
318
+ const t = await j.getWriteFormats();
319
319
  if (l) return;
320
- const n = R.canWrite(), u = R.canRead();
320
+ const n = j.canWrite(), u = j.canRead();
321
321
  if (n) {
322
322
  const r = (e) => {
323
323
  const r = e ? t.find((t) => t.key === e) : void 0;
@@ -331,13 +331,13 @@ function Ht(e, t) {
331
331
  for (const o of t) {
332
332
  const t = o.key;
333
333
  e.updateCommand(`saveWorkbookAs${t}`, {
334
- label: () => Dt("command.saveAsFormat.label", { format: o.description }),
334
+ label: () => vt("command.saveAsFormat.label", { format: o.description }),
335
335
  groupLabels: {
336
- workbook: () => Dt("command.saveAsFormat.workbook", { format: o.description }),
337
- saveWorkbookOptions: () => Dt("command.saveAsFormat.compact", { format: o.description })
336
+ workbook: () => vt("command.saveAsFormat.workbook", { format: o.description }),
337
+ saveWorkbookOptions: () => vt("command.saveAsFormat.compact", { format: o.description })
338
338
  },
339
339
  tags: o.tags,
340
- description: () => Dt("command.saveAsFormat", { format: o.description }),
340
+ description: () => vt("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 Ht(e, t) {
365
365
  autoSelect: e === i.length - 1
366
366
  }).getEntireRange().copyFrom(t.getEntireRange());
367
367
  }
368
- }, Ct("op.importData")), a.close();
368
+ }, xt("op.importData")), a.close();
369
369
  } catch (e) {
370
370
  i.showError(e);
371
371
  }
@@ -374,9 +374,9 @@ function Ht(e, t) {
374
374
  tags: ["noTransaction", "noRepeat"],
375
375
  callback: async (e = null) => {
376
376
  let t = e;
377
- if (t || R.canRead() || (t = await (async () => {
378
- const e = await R.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
379
- return ft.openFileDialog(t.length ? t.join(",") : "*.*");
377
+ if (t || j.canRead() || (t = await (async () => {
378
+ const e = await j.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
379
+ return gt.openFileDialog(t.length ? t.join(",") : "*.*");
380
380
  })(), t)) return m(t);
381
381
  }
382
382
  }), e.updateCommand("insertDataFromURL", {
@@ -384,14 +384,14 @@ function Ht(e, t) {
384
384
  callback: async (e) => {
385
385
  if (!e) {
386
386
  const t = await i.showInput({
387
- title: Dt("dialog.importFromWeb.title"),
388
- description: Dt("dialog.importFromWeb.description"),
389
- inputLabel: Dt("dialog.webAddress.inputLabel"),
387
+ title: vt("dialog.importFromWeb.title"),
388
+ description: vt("dialog.importFromWeb.description"),
389
+ inputLabel: vt("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: () => Dt("dialog.import")
394
+ label: () => vt("dialog.import")
395
395
  }]
396
396
  });
397
397
  if ("Import" !== t.option) return;
@@ -408,11 +408,11 @@ function Ht(e, t) {
408
408
  }
409
409
  }), u) {
410
410
  const t = async () => !a() || "Open" === await i.showOptions({
411
- title: Dt("dialog.confirm.title"),
412
- description: Dt("dialog.unsavedChanges"),
411
+ title: vt("dialog.confirm.title"),
412
+ description: vt("dialog.unsavedChanges"),
413
413
  options: [{
414
414
  id: "Open",
415
- label: () => Dt("dialog.open")
415
+ label: () => vt("dialog.open")
416
416
  }, "Cancel"],
417
417
  defaultOption: "Cancel"
418
418
  }), n = async (e = null) => {
@@ -435,14 +435,14 @@ function Ht(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: Dt("dialog.openFromWeb.title"),
439
- description: Dt("dialog.openFromWeb.description"),
440
- inputLabel: Dt("dialog.webAddress.inputLabel"),
438
+ title: vt("dialog.openFromWeb.title"),
439
+ description: vt("dialog.openFromWeb.description"),
440
+ inputLabel: vt("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: () => Dt("dialog.open")
445
+ label: () => vt("dialog.open")
446
446
  }]
447
447
  });
448
448
  if ("Open" !== e.option) return;
@@ -462,9 +462,9 @@ function Ht(e, t) {
462
462
  l = !0, s && (s.current = null);
463
463
  };
464
464
  }
465
- var Vt = ze(xt("studio:shortcutKeysDialog", () => import("./BjpAc-kSpia0lwjr.mjs")).load);
465
+ var zt = Ke(yt("studio:shortcutKeysDialog", () => import("./C_h-NFbdy9DIJixP.mjs")).load);
466
466
  y(), x();
467
- var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
467
+ var Ht = /* @__PURE__ */ new Set(["ui"]), Vt = (e) => {
468
468
  const t = (e) => {
469
469
  if ("function" != typeof e) return e;
470
470
  try {
@@ -474,9 +474,9 @@ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
474
474
  }
475
475
  }, o = (e, o) => {
476
476
  const r = t(e);
477
- return "string" == typeof r ? vt(r, o, kt.getActive()) : void 0;
477
+ return "string" == typeof r ? wt(r, o, ht.getActive()) : void 0;
478
478
  }, r = [];
479
- for (const n of e.names()) if (!Ut.has(n)) for (const a of e.keys(n)) {
479
+ for (const n of e.names()) if (!Ht.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,
@@ -486,27 +486,27 @@ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
486
486
  getDescription: () => o(i?.description, i?.params) ?? "",
487
487
  getShortcut: () => t(i?.shortcut) ?? null,
488
488
  getScope: () => n,
489
- getScopeLabel: () => q.DefaultCommandCatalogService.getScopeLabel(n)
489
+ getScopeLabel: () => G.DefaultCommandCatalogService.getScopeLabel(n)
490
490
  }
491
491
  });
492
492
  }
493
493
  return { getAllCommands: () => r };
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);
494
+ }, Ut = (e) => {
495
+ const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = G.useCommandScope(), c = ge(), { showModal: d } = Ue(), p = ke(), u = Te(a);
496
496
  u.current = a;
497
- const m = ce(() => {
497
+ const m = le(() => {
498
498
  const e = l?.getRoot().getRegistry();
499
499
  if (!e) return;
500
- const t = d(Vt, {
500
+ const t = d(zt, {
501
501
  title: p("dialog.shortcutKeys.title"),
502
- commands: Gt(e),
502
+ commands: Vt(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
- Te(() => {
509
+ De(() => {
510
510
  if (!l) return;
511
511
  const e = l.getRoot().contribution();
512
512
  return function(e, t) {
@@ -522,8 +522,8 @@ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
522
522
  } });
523
523
  }(e, { showShortcuts: m }), () => e.remove();
524
524
  }, [l, m]);
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(() => {
525
+ const g = pt("(prefers-color-scheme: dark)"), { themeMode: h } = fe(), [f, k] = he(R.Mode, N[R.Mode]), [b, y] = he(R.DarkGrid, N[R.DarkGrid]), [w, x] = he(R.DarkImages, N[R.DarkImages]);
526
+ De(() => {
527
527
  if (!l) return;
528
528
  const e = l.getRoot().contribution();
529
529
  return function(e, t) {
@@ -564,10 +564,10 @@ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
564
564
  y,
565
565
  x
566
566
  ]);
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(() => {
567
+ const [v, C] = he(Z.Active, null), [D, S] = Ee(() => ht.getActive());
568
+ De(() => ht.addChangeListener(S), []), De(() => {
569
+ v && v !== ht.getActive() && ht.setActive(v);
570
+ }, [v]), De(() => {
571
571
  if (!l) return;
572
572
  const e = l.getRoot().contribution();
573
573
  return function(e, t) {
@@ -588,14 +588,14 @@ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
588
588
  D,
589
589
  C
590
590
  ]);
591
- const T = Ee(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: E, isFullscreenEnabled: W, toggleFullscreen: F } = de({ target: T });
592
- Te(() => {
591
+ const T = Se(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: E, isFullscreenEnabled: W, toggleFullscreen: F } = ce({ target: T });
592
+ De(() => {
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 ? [] : [Ct("reason.fullscreenUnavailable")],
598
+ disabledReasons: t.isFullscreenAvailable ? [] : [xt("reason.fullscreenUnavailable")],
599
599
  icon: t.isFullscreenEnabled ? "FullScreenOff" : "FullScreen",
600
600
  callback: () => {
601
601
  t.toggleFullscreen();
@@ -612,21 +612,21 @@ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
612
612
  W,
613
613
  F
614
614
  ]);
615
- const P = H(!0);
616
- return Te(() => {
615
+ const A = z(!0);
616
+ return De(() => {
617
617
  if (!l) return;
618
618
  const e = l.getRoot().contribution();
619
619
  return function(e, t) {
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]), Te(() => {
626
+ }(e, (e, t) => A.activate(e, t)), () => e.remove();
627
+ }, [l, A]), De(() => {
628
628
  if (!l || !o) return;
629
- const e = l.getRoot().contribution(), t = Ht(e, {
629
+ const e = l.getRoot().contribution(), t = _t(e, {
630
630
  workbook: o,
631
631
  setWorkbook: r,
632
632
  workbookTitle: n ?? void 0,
@@ -646,9 +646,9 @@ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
646
646
  i
647
647
  ]), t;
648
648
  };
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) => {
649
+ Ut.displayName = "StudioCommandProvider";
650
+ var Gt = ({ renderWorkbook: e }) => {
651
+ const t = G.useCommandResolver(), o = Te(null), r = ke(), [n, a] = Ee(null), i = Ce((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 Xt = ({ renderWorkbook: e }) => {
665
665
  }
666
666
  e.preventDefault();
667
667
  }
668
- }, [t]), s = ce((e) => {
668
+ }, [t]), s = le((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)) {
@@ -690,15 +690,15 @@ var Xt = ({ renderWorkbook: e }) => {
690
690
  } }
691
691
  });
692
692
  } else {
693
- if (!R.canRead()) return;
693
+ if (!j.canRead()) return;
694
694
  const o = e.dataTransfer.items?.[0], n = "undefined" != typeof window && window.isSecureContext ? o?.getAsFileSystemHandle?.() : void 0;
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 = Ee(() => {
698
+ }, [t, n]), l = Se(() => {
699
699
  if (!n) return null;
700
700
  const e = "insertImage" === n;
701
- return Ze(Qe, {
701
+ return Xe(Ze, {
702
702
  className: "drop-overlay",
703
703
  sx: {
704
704
  position: "absolute",
@@ -709,12 +709,12 @@ var Xt = ({ renderWorkbook: e }) => {
709
709
  display: "flex",
710
710
  justifyContent: "center",
711
711
  alignItems: "center",
712
- backgroundColor: (e) => ut(e.palette.primary.main, .46),
712
+ backgroundColor: (e) => dt(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: Je(it, {
717
+ children: Ye(nt, {
718
718
  elevation: 6,
719
719
  sx: {
720
720
  display: "flex",
@@ -726,11 +726,11 @@ var Xt = ({ renderWorkbook: e }) => {
726
726
  color: "text.primary",
727
727
  "& .drop-overlay-icon": { color: "primary.main" }
728
728
  },
729
- children: [Ze(Z, {
729
+ children: [Xe(Y, {
730
730
  iconKey: e ? "InsertImage" : "FileOpen",
731
731
  className: "drop-overlay-icon",
732
732
  size: 32
733
- }), Ze(pt, {
733
+ }), Xe(ct, {
734
734
  variant: "h6",
735
735
  component: "span",
736
736
  children: r(e ? "drop.insertImage" : "drop.open")
@@ -738,7 +738,7 @@ var Xt = ({ renderWorkbook: e }) => {
738
738
  })
739
739
  });
740
740
  }, [n, r]);
741
- return Je(Ye, { children: [e({
741
+ return Ye(qe, { children: [e({
742
742
  ref: o,
743
743
  onDragStart: (e) => {
744
744
  if (e.target.src) {
@@ -751,52 +751,52 @@ var Xt = ({ renderWorkbook: e }) => {
751
751
  onDragOver: i,
752
752
  onDrop: s
753
753
  }), l] });
754
- }, Yt = De((e) => {
754
+ }, qt = ve((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 Ze(D, {
756
+ return Xe(D, {
757
757
  initialAnchor: s,
758
- children: Ze(qt, {
758
+ children: Xe(Ut, {
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: Ze(Xt, { renderWorkbook: l })
765
+ children: Xe(Gt, { renderWorkbook: l })
766
766
  })
767
767
  });
768
768
  });
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({
769
+ qt.displayName = "CommandsWrapper";
770
+ var Xt = {
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
+ }, Yt = ["find"], Zt = ve((e) => {
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,
789
789
  progress: null
790
- }), d = ye(), p = ht.EmptyObject, u = Ge(p), m = Xe(p), g = Ue(p), h = We(!1);
791
- Te(() => {
790
+ }), d = ke(), p = mt.EmptyObject, u = Ve(p), m = Ge(p), g = He(p), h = Te(!1);
791
+ De(() => {
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 Jt) u(e, Zt[e], { prewarm: !0 }).catch(() => {});
795
+ for (const e of Yt) u(e, Xt[e], { prewarm: !0 }).catch(() => {});
796
796
  });
797
797
  return () => o(r);
798
798
  }, []);
799
- const f = We(/* @__PURE__ */ new Set()), k = Ee(() => {
799
+ const f = Te(/* @__PURE__ */ new Set()), k = Se(() => {
800
800
  const e = (e, t) => {
801
801
  if (t?.onceKey) {
802
802
  if (f.current.has(t.onceKey)) return;
@@ -804,16 +804,16 @@ var Zt = {
804
804
  e.add(t.onceKey), f.current = e;
805
805
  }
806
806
  const o = {
807
- variant: t?.type ?? Q.Info,
807
+ variant: t?.type ?? J.Info,
808
808
  anchorOrigin: {
809
809
  vertical: "top",
810
810
  horizontal: "center"
811
811
  },
812
812
  preventDuplicate: t?.preventDuplicate,
813
- persist: t?.persist ?? t?.type === Q.Error,
814
- action: (e) => Ze(at, {
813
+ persist: t?.persist ?? t?.type === J.Error,
814
+ action: (e) => Xe(rt, {
815
815
  onClick: () => n(e),
816
- children: Ze(Z, { iconKey: "Cancel" })
816
+ children: Xe(Y, { 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 Zt = {
826
826
  ...t,
827
827
  label: e
828
828
  });
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 : {
829
+ const r = se(() => {
830
+ a.current.delete(o) && (a.current.size > 0 || (Be(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 Zt = {
838
838
  progress: o
839
839
  });
840
840
  }, (e) => {
841
- s.current = e, "string" == typeof e ? Ve(i.current, e) : c((t) => ({
841
+ s.current = e, "string" == typeof e ? ze(i.current, e) : c((t) => ({
842
842
  ...t,
843
843
  label: e
844
844
  }));
845
- }), n = Ve(i.current, "string" == typeof e ? e : void 0);
845
+ }), n = ze(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 Zt = {
852
852
  onKeyDown: (e) => {
853
853
  e.isDefaultPrevented() || e.isPropagationStopped() || o?.onKeyDown?.(e);
854
854
  }
855
- }, u(e, Zt[e], t);
855
+ }, u(e, Xt[e], t);
856
856
  },
857
857
  showOptions: m,
858
858
  showInput: g,
859
859
  showError: (t) => {
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 wt && (r = Q.Info), e(n, {
860
+ let o, r = J.Error, n = d("error.unknown");
861
+ "string" == typeof t ? n = t : t instanceof Error && (o = t, t.message && (n = d(t.message))), t instanceof bt && (r = J.Info), e(n, {
862
862
  type: r,
863
863
  enqueueProps: { error: o }
864
864
  });
865
865
  }
866
866
  };
867
- }, [d]), b = Ee(() => Ze(Ae, {
867
+ }, [d]), b = Se(() => Xe(We, {
868
868
  ref: i,
869
869
  autoStart: !1,
870
- icon: Ze(Pe, { sx: {
870
+ icon: Xe(Fe, { sx: {
871
871
  transform: "scale(0.7)",
872
872
  marginLeft: "-6px"
873
873
  } }),
@@ -884,19 +884,19 @@ var Zt = {
884
884
  pointerEvents: "none"
885
885
  }
886
886
  }), [l.label, l.progress]);
887
- return Je(te, {
887
+ return Ye(ee, {
888
888
  notifier: k,
889
889
  children: [b, t]
890
890
  });
891
891
  });
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) => {
892
+ Zt.displayName = "StudioNotifierProvider";
893
+ var Jt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", Qt = ve(we((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 = Se(() => 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 = Ze(Z, { iconKey: r }));
899
- const n = t === i, a = r ? Ze(Qe, {
898
+ "string" == typeof r && (r = Xe(Y, { iconKey: r }));
899
+ const n = t === i, a = r ? Xe(Ze, {
900
900
  sx: {
901
901
  display: "inline-block",
902
902
  transform: m ? "rotate(-90deg)" : "rotate(90deg)",
@@ -904,20 +904,20 @@ var eo = "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 = Ze(Qe, {
907
+ }) : null, l = !r || !c && n, d = Xe(Ze, {
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: Ze(Qe, {
914
+ children: Xe(Ze, {
915
915
  sx: {
916
916
  overflow: "hidden",
917
917
  minWidth: 0,
918
918
  minHeight: 0
919
919
  },
920
- children: Ze(pt, {
920
+ children: Xe(ct, {
921
921
  component: "div",
922
922
  sx: {
923
923
  textTransform: "none",
@@ -930,13 +930,13 @@ var eo = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
930
930
  })
931
931
  })
932
932
  });
933
- return Ze(lt, {
933
+ return Xe(it, {
934
934
  value: t,
935
- label: Ze(Le, {
935
+ label: Xe(Me, {
936
936
  disableInteractive: !0,
937
937
  title: o.getTitle() ?? "",
938
938
  placement: "left-start",
939
- children: Je(Qe, {
939
+ children: Ye(Ze, {
940
940
  sx: {
941
941
  padding: "0px 0px",
942
942
  writingMode: m ? "vertical-lr" : "vertical-rl",
@@ -956,7 +956,7 @@ var eo = "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: St("taskpane-strip-item", { "Mui-selected": n }),
959
+ className: Ct("taskpane-strip-item", { "Mui-selected": n }),
960
960
  onClick: () => e.onSelect(t)
961
961
  }, t);
962
962
  }), [
@@ -967,8 +967,8 @@ var eo = "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 = pe(t, () => ({ isTaskPaneStrip: () => !0 }), []), k = Ee(() => St("taskpane-strip", p), [p]);
971
- return Ze(Qe, {
970
+ ]), f = de(t, () => ({ isTaskPaneStrip: () => !0 }), []), k = Se(() => Ct("taskpane-strip", p), [p]);
971
+ return Xe(Ze, {
972
972
  ref: f,
973
973
  className: k,
974
974
  sx: {
@@ -978,7 +978,7 @@ var eo = "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: Ze(ct, {
981
+ children: Xe(st, {
982
982
  orientation: "vertical",
983
983
  variant: "scrollable",
984
984
  value: i,
@@ -996,10 +996,10 @@ var eo = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
996
996
  children: h
997
997
  })
998
998
  });
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 }),
999
+ })), eo = (e) => {
1000
+ const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s = Te(null), l = ke();
1001
+ return Xe(ot, {
1002
+ className: Ct({ "Mui-selected": a }),
1003
1003
  sx: {
1004
1004
  display: "flex",
1005
1005
  flex: "1 1 %0",
@@ -1013,11 +1013,11 @@ var eo = "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) => ut(e.palette.action.hover, .03),
1017
- borderBottom: `solid ${eo} 1px`
1016
+ backgroundColor: (e) => dt(e.palette.action.hover, .03),
1017
+ borderBottom: `solid ${Jt} 1px`
1018
1018
  },
1019
1019
  ...i,
1020
- children: Je(Qe, {
1020
+ children: Ye(Ze, {
1021
1021
  sx: {
1022
1022
  display: "flex",
1023
1023
  flex: "1 1 10%",
@@ -1028,15 +1028,15 @@ var eo = "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: [Ze(Qe, {
1031
+ children: [Xe(Ze, {
1032
1032
  sx: {
1033
1033
  flex: "1 1 100%",
1034
1034
  paddingLeft: (e) => e.spacing(1)
1035
1035
  },
1036
1036
  children: t
1037
- }), Ze(Oe, {
1037
+ }), Xe(Re, {
1038
1038
  label: l("taskPane.close"),
1039
- children: Ze(at, {
1039
+ children: Xe(rt, {
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 eo = "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: Ze(Z, { iconKey: "Close" })
1049
+ children: Xe(Y, { iconKey: "Close" })
1050
1050
  })
1051
1051
  })]
1052
1052
  })
1053
1053
  });
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, {
1054
+ }, to = we((e, t) => {
1055
+ const { model: o, side: r, ...n } = e, a = ut(), i = `solid ${Jt} 1px`, s = `${a.shape.borderRadius ?? 4}px`, l = `${a.spacing?.(.5) ?? 4}px`;
1056
+ return Xe(F, {
1057
1057
  model: o,
1058
1058
  ref: t,
1059
1059
  propsFrame: { style: {
@@ -1062,8 +1062,8 @@ var eo = "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: oo,
1066
- componentStrip: to,
1065
+ componentTitle: eo,
1066
+ componentStrip: Qt,
1067
1067
  side: r,
1068
1068
  ...e,
1069
1069
  onOpen: () => {
@@ -1074,16 +1074,16 @@ var eo = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1074
1074
  },
1075
1075
  ...n
1076
1076
  });
1077
- }), no = "_styled-resizer_li52w_3", ao = {}, io = {
1077
+ }), oo = "_styled-resizer_li52w_3", ro = {}, no = {
1078
1078
  flex: "1 1 100%",
1079
1079
  display: "flex",
1080
1080
  boxSizing: "border-box"
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);
1081
+ }, ao = ve(we((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, ro), m = ut(), [g, { width: h }] = me(), f = h > 530 || 0 === h, k = Te(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;
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 eo = "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,27 +1115,27 @@ var eo = "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
  });
1122
- const N = Et([
1122
+ const N = St([
1123
1123
  k,
1124
1124
  g,
1125
1125
  t
1126
1126
  ]);
1127
- return Ze(ae, {
1127
+ return Xe(ne, {
1128
1128
  ref: N,
1129
1129
  className: s,
1130
1130
  style: l ? {
1131
- ...io,
1131
+ ...no,
1132
1132
  ...l
1133
- } : io,
1133
+ } : no,
1134
1134
  ...d,
1135
1135
  ...C,
1136
1136
  onPositionChange: I,
1137
1137
  propsResizer: {
1138
- className: St("styled-resizer", no),
1138
+ className: Ct("styled-resizer", oo),
1139
1139
  style: {
1140
1140
  minWidth: f ? "7px" : void 0,
1141
1141
  minHeight: f ? void 0 : "6px",
@@ -1150,15 +1150,15 @@ var eo = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1150
1150
  propsPaneAfter: y
1151
1151
  });
1152
1152
  }));
1153
- so.displayName = "StudioSplitPane";
1154
- var lo = () => Ze("div", { style: {
1153
+ ao.displayName = "StudioSplitPane";
1154
+ var io = () => Xe("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
- } }), co = (e, t) => {
1159
- const o = (e) => Ze(we.Fragment, { children: t[e] }, e);
1158
+ } }), so = (e, t) => {
1159
+ const o = (e) => Xe(be.Fragment, { children: t[e] }, e);
1160
1160
  if ("bottom" === e) {
1161
- const e = t.statusBar && t.formulaBar ? Ze(lo, {}, "divider") : null;
1161
+ const e = t.statusBar && t.formulaBar ? Xe(io, {}, "divider") : null;
1162
1162
  return [
1163
1163
  o("toolbar"),
1164
1164
  o("main"),
@@ -1173,41 +1173,41 @@ var lo = () => Ze("div", { style: {
1173
1173
  o("main"),
1174
1174
  o("statusBar")
1175
1175
  ];
1176
- }, po = (e) => {
1176
+ }, lo = (e) => {
1177
1177
  const { groups: t } = e;
1178
- return Ze(Qe, {
1178
+ return Xe(Ze, {
1179
1179
  role: "menu",
1180
1180
  sx: {
1181
1181
  paddingTop: "4px",
1182
1182
  paddingBottom: "4px"
1183
1183
  },
1184
- children: t.map((e, t) => Je(xe, { children: [t > 0 ? Ze(Ne, { orientation: "horizontal" }) : null, e.map((e) => Ze(je, {
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,
1188
1188
  selected: e.checked,
1189
- icon: e.checked ? Ze(Me, {}) : void 0,
1189
+ icon: e.checked ? Xe(Oe, {}) : void 0,
1190
1190
  onClick: e.run,
1191
1191
  children: e.label
1192
1192
  }, e.key))] }, t))
1193
1193
  });
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) => {
1194
+ }, co = (e) => Xe(lo, { ...e }), po = (e) => {
1195
+ const { pivot: t, name: o, source: r, onError: n } = e, s = ke(), l = t.getWorksheet(), c = l.getProtection().isLocked(), d = Se(() => ({ scope: l.getName() }), [l]), p = le((e, o) => {
1196
1196
  "accept" === o.reason && e !== t.getName() && t.setName(e).catch(n);
1197
- }, [t, n]), u = ce((e) => {
1198
- if (0 === e.length || e.length > 255) throw new yt(s("error.pivotTable.nameInvalid"));
1197
+ }, [t, n]), u = le((e) => {
1198
+ if (0 === e.length || e.length > 255) throw new kt(s("error.pivotTable.nameInvalid"));
1199
1199
  const o = l.getPivotTables().getByName(e);
1200
- if (o && o.getName() !== t.getName()) throw new yt(s("error.pivotTable.nameExists"));
1200
+ if (o && o.getName() !== t.getName()) throw new kt(s("error.pivotTable.nameExists"));
1201
1201
  }, [
1202
1202
  l,
1203
1203
  t,
1204
1204
  s
1205
- ]), m = ce((e, o) => {
1205
+ ]), m = le((e, o) => {
1206
1206
  if ("accept" !== o.reason) return;
1207
- const r = $t(e);
1207
+ const r = jt(e);
1208
1208
  r && t.setSource("string" == typeof r ? r : r.at(0)).catch(n);
1209
1209
  }, [t, n]);
1210
- return Je(Qe, {
1210
+ return Ye(Ze, {
1211
1211
  className: "sxl-pivot-table-header",
1212
1212
  sx: {
1213
1213
  display: "flex",
@@ -1215,14 +1215,14 @@ var lo = () => Ze("div", { style: {
1215
1215
  rowGap: (e) => e.spacing(1),
1216
1216
  paddingTop: (e) => e.spacing(1)
1217
1217
  },
1218
- children: [Ze(i, {
1218
+ children: [Xe(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
- }), Ze(a, {
1225
+ }), Xe(a, {
1226
1226
  grammar: "reference",
1227
1227
  formName: "source",
1228
1228
  label: s("pivotTableNew.source"),
@@ -1235,34 +1235,34 @@ var lo = () => Ze("div", { style: {
1235
1235
  disabled: c || null === r
1236
1236
  })]
1237
1237
  });
1238
- }, go = (e) => Ze(mo, { ...e }), ho = (e) => Ze(E, {
1239
- renderMenu: uo,
1238
+ }, uo = (e) => Xe(po, { ...e }), mo = (e) => Xe(E, {
1239
+ renderMenu: co,
1240
1240
  renderFilter: g,
1241
- renderHeader: go,
1241
+ renderHeader: uo,
1242
1242
  ...e
1243
- }), fo = He(xt("studio:dataValidationDetailsTaskPane", () => import("./BML2jZO-vGc6RS51.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), ko = It({
1244
- EagerStudio: () => xo,
1245
- default: () => xo
1243
+ }), go = _e(yt("studio:dataValidationDetailsTaskPane", () => import("./BaifedVnO6sEYMzi.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), ho = Pt({
1244
+ EagerStudio: () => yo,
1245
+ default: () => yo
1246
1246
  });
1247
1247
  d(), S.registerTaskPane({
1248
- key: A.PivotTable,
1249
- component: ho
1248
+ key: P.PivotTable,
1249
+ component: mo
1250
1250
  }, !0), (() => {
1251
- X.register({
1251
+ q.register({
1252
1252
  key: "changeShapeGallery",
1253
1253
  contributions: { shapeToolbar: {
1254
1254
  order: -1,
1255
1255
  divider: "after"
1256
1256
  } },
1257
- render: (e) => Ze(C, {
1257
+ render: (e) => Xe(C, {
1258
1258
  ...e,
1259
1259
  commandKey: "changeShape",
1260
- excludeCategories: Rt
1260
+ excludeCategories: It
1261
1261
  })
1262
1262
  }, !0);
1263
- L("shape", () => import("./DY96atQfGYmZ90TD.mjs").then((e) => e.ShapeFormatPanel));
1264
- })(), L("chart", () => import("./C4qWN7D3UW8jLaZK.mjs").then((e) => e.ChartFormatPanel)), (() => {
1265
- const e = q.DefaultCommandButtonRegistry, t = [];
1263
+ $("shape", () => import("./BSsmV4HYEDHVuddc.mjs").then((e) => e.ShapeFormatPanel));
1264
+ })(), $("chart", () => import("./Cirjh7F_jwRd8Pi6.mjs").then((e) => e.ChartFormatPanel)), (() => {
1265
+ const e = G.DefaultCommandButtonRegistry, t = [];
1266
1266
  t.push(e.register({
1267
1267
  key: "changePictureOptions",
1268
1268
  defaultKey: "changePictureFromFile",
@@ -1299,10 +1299,10 @@ d(), S.registerTaskPane({
1299
1299
  members: [
1300
1300
  {
1301
1301
  key: "cropToShapeGallery",
1302
- render: (e) => Ze(C, {
1302
+ render: (e) => Xe(C, {
1303
1303
  ...e,
1304
1304
  commandKey: "cropToShape",
1305
- excludeCategories: Rt
1305
+ excludeCategories: It
1306
1306
  })
1307
1307
  },
1308
1308
  "cropAspectOptions",
@@ -1316,13 +1316,13 @@ d(), S.registerTaskPane({
1316
1316
  } }
1317
1317
  }, !0));
1318
1318
  })(), c(), S.registerTaskPane({
1319
- key: A.DataValidation,
1320
- component: fo
1319
+ key: P.DataValidation,
1320
+ component: go
1321
1321
  }, !0), S.registerTaskPane({
1322
- key: A.ConditionalFormat,
1323
- component: Nt
1322
+ key: P.ConditionalFormat,
1323
+ component: At
1324
1324
  }, !0), l(), s(), r(), t(), e(), n(), w();
1325
- var bo = () => {
1325
+ var fo = () => {
1326
1326
  let e, t;
1327
1327
  const o = new Promise((o, r) => {
1328
1328
  e = o, t = r;
@@ -1337,177 +1337,173 @@ var bo = () => {
1337
1337
  }
1338
1338
  };
1339
1339
  return o.catch(() => {}), r;
1340
- }, yo = (e, t) => {
1340
+ }, ko = (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 ? 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(() => {
1343
+ return n && "object" == typeof n ? mt.deepMerge(r, n) : r;
1344
+ }, bo = "taskPanePosition", yo = ve(we((e, t) => {
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
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
- }), [
1353
- A,
1354
- tt?.light,
1355
- tt?.dark
1356
- ]), nt = "dark" === Xe, at = Ee(() => u(ot.light, ot.dark, `.${n}`, L), [
1357
- ot,
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,
1358
1354
  n,
1359
- L
1360
- ]), lt = Ee(() => O("sxl-defaults", `.${n}`), [n]), ct = B(), [pt, ut] = Fe(() => D ?? null);
1361
- Te(() => {
1362
- ut(D ?? null);
1363
- }, [D]);
1364
- const [mt, gt] = Fe(0), ft = We(null);
1365
- ft.current || (ft.current = bo());
1366
- const bt = z(pt, {
1367
- io: R,
1368
- defaultTheme: ct.getDefaultTheme(),
1369
- reloadKey: mt
1370
- }), yt = "loaded" === bt.status ? bt.workbook : null, wt = Ee(() => "error" === bt.status ? {
1355
+ z
1356
+ ]), it = L(), [st, ct] = Ee(() => S ?? null);
1357
+ De(() => {
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
+ io: j,
1364
+ defaultTheme: it.getDefaultTheme(),
1365
+ reloadKey: dt
1366
+ }), ft = "loaded" === gt.status ? gt.workbook : null, kt = Se(() => "error" === gt.status ? {
1371
1367
  status: "error",
1372
- error: bt.error
1373
- } : "loaded" === bt.status ? {
1368
+ error: gt.error
1369
+ } : "loaded" === gt.status ? {
1374
1370
  status: "loaded",
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;
1371
+ workbook: gt.workbook
1372
+ } : { status: "loading" }, [gt]);
1373
+ De(() => {
1374
+ ut.current.settled && (ut.current = fo());
1375
+ }, [st, dt]), De(() => {
1376
+ if ("loaded" === kt.status) {
1377
+ const e = ut.current, t = kt.workbook;
1382
1378
  t.whenFontsReady().then(() => e.resolve(t), () => e.resolve(t));
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);
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);
1394
1390
  }, []);
1395
- Te(() => {
1396
- const e = Et.current;
1391
+ De(() => {
1392
+ const e = Ct.current;
1397
1393
  if (0 !== e.length) {
1398
- Et.current = e.filter((e) => e === xt);
1394
+ Ct.current = e.filter((e) => e === bt);
1399
1395
  for (let t = 0; t < e.length; t++) {
1400
1396
  const o = e[t];
1401
- if (o !== xt) try {
1397
+ if (o !== bt) try {
1402
1398
  o.close();
1403
1399
  } catch (e) {
1404
1400
  console.warn("Unable to close the replaced workbook", e);
1405
1401
  }
1406
1402
  }
1407
1403
  }
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(() => {
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(() => {
1417
1413
  const t = e;
1418
- if (e = Nt.getSession(), !t || e) return;
1414
+ if (e = Pt.getSession(), !t || e) return;
1419
1415
  if ("formula-bar" !== t.getActiveEditorId()) return;
1420
1416
  const o = Me.current;
1421
- (o?.isFocusWithin?.() ?? o?.contains?.(document.activeElement)) && je.current?.focus();
1417
+ (o?.isFocusWithin?.() ?? o?.contains?.(document.activeElement)) && Re.current?.focus();
1422
1418
  });
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
+ De(() => {
1426
+ Ut(null);
1427
+ }, [bt]);
1428
+ const Gt = Ht ?? Vt ?? It ?? "";
1429
+ De(() => {
1430
+ Ve?.(Nt);
1423
1431
  }, [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, {
1432
+ const Xt = le(T ?? (() => {}), [T]);
1433
+ De(() => {
1434
+ Xt?.(ft);
1435
+ }, [ft]);
1436
+ const Yt = Te(ft);
1437
+ Yt.current = ft, B(bt, "onViewChange");
1438
+ const Jt = Se(() => Xe(Pe, {
1443
1439
  groupKey: "helpOptions",
1444
1440
  disableHover: !0,
1445
1441
  sx: { padding: "0" },
1446
1442
  propsButton: { sx: { maxHeight: "22px" } }
1447
- }), []), [oo, ro] = Fe(null), no = Se((e) => {
1448
- ro(e);
1443
+ }), []), [Qt, eo] = Ee(null), to = Ce((e) => {
1444
+ eo(e);
1449
1445
  }, []);
1450
- Te(() => {
1451
- Y.prefetch([Y.getActive(), W]).catch((e) => {
1446
+ De(() => {
1447
+ X.prefetch([X.getActive(), W]).catch((e) => {
1452
1448
  console.warn("Icons could not be loaded:", e);
1453
1449
  });
1454
1450
  }, []);
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) => {
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) => {
1461
1457
  let t = null, r = {
1462
1458
  readOnly: !0,
1463
- ...ae
1459
+ ...se
1464
1460
  };
1465
- return ae?.hidden || (t = Ze(o, {
1461
+ return se?.hidden || (t = Xe(o, {
1466
1462
  ...r,
1467
1463
  style: {
1468
1464
  maxWidth: "100%",
1469
- ...ae?.style
1465
+ ...se?.style
1470
1466
  },
1471
- workbook: e.workbook ?? je.current,
1472
- ref: uo,
1473
- title: Zt,
1474
- modified: Ot,
1475
- encrypted: Mt,
1476
- placeHolder: Ge,
1467
+ workbook: e.workbook ?? Re.current,
1468
+ ref: lo,
1469
+ title: Gt,
1470
+ modified: Nt,
1471
+ encrypted: jt,
1472
+ placeHolder: Ue,
1477
1473
  onTitleChange: (e) => {
1478
- Xt(e), ae?.onTitleChange?.(e);
1474
+ Ut(e), se?.onTitleChange?.(e);
1479
1475
  }
1480
- })), Ze(_t, {
1476
+ })), Xe(Bt, {
1481
1477
  ...e,
1482
- logo: T,
1478
+ logo: E,
1483
1479
  mainElement: t,
1484
- startElement: E,
1485
- endElement: F
1480
+ startElement: F,
1481
+ endElement: P
1486
1482
  });
1487
1483
  }, [
1488
- T,
1489
- Zt,
1490
- Ot,
1491
- Mt,
1492
- ae,
1493
1484
  E,
1494
- F
1485
+ Gt,
1486
+ Nt,
1487
+ jt,
1488
+ se,
1489
+ F,
1490
+ P
1495
1491
  ]);
1496
- Te(() => {
1497
- const e = je.current;
1492
+ De(() => {
1493
+ const e = Re.current;
1498
1494
  if (!e) return;
1499
1495
  const t = (t) => {
1500
- (t.ctrlKey || t.metaKey || "native" !== ne.getWheelOwner(t, e)) && t.preventDefault();
1496
+ (t.ctrlKey || t.metaKey || "native" !== re.getWheelOwner(t, e)) && t.preventDefault();
1501
1497
  };
1502
1498
  return e.addEventListener("wheel", t, { passive: !1 }), () => {
1503
1499
  e.removeEventListener("wheel", t);
1504
1500
  };
1505
- }, [Vt]);
1506
- const [go, ho] = Fe(null);
1507
- Te(() => {
1508
- ho(Vt?.source?.getCommandScope?.() ?? null);
1509
- }, [Vt]);
1510
- const fo = Ee(() => ({
1501
+ }, [_t]);
1502
+ const [po, uo] = Ee(null);
1503
+ De(() => {
1504
+ uo(_t?.source?.getCommandScope?.() ?? null);
1505
+ }, [_t]);
1506
+ const mo = Se(() => ({
1511
1507
  "& .SnackbarContainer-root": { position: "absolute !important" },
1512
1508
  "& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
1513
1509
  "& .notistack-Snackbar": { minWidth: "unset" },
@@ -1520,58 +1516,56 @@ var bo = () => {
1520
1516
  whiteSpace: "pre-wrap"
1521
1517
  },
1522
1518
  "*": { userSelect: "none" }
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
- side: x,
1519
+ }), []), [go, ho] = Ee(null), [, yo] = he(null, !1);
1520
+ De(() => {
1521
+ yo(null != go);
1522
+ }, [go, yo]);
1523
+ const xo = Ce((e) => x({
1524
+ model: bt,
1525
+ side: C,
1530
1526
  ...e,
1531
- ...y
1527
+ ...w
1532
1528
  }), [
1533
- xt,
1534
- x,
1535
- y
1536
- ]), So = We(r);
1537
- So.current = r, pe(t, () => ({
1529
+ bt,
1530
+ C,
1531
+ w
1532
+ ]), vo = Te(r);
1533
+ vo.current = r, de(t, () => ({
1538
1534
  isStudioElement: () => !0,
1539
1535
  save: (e) => {
1540
- const t = Kt.current;
1536
+ const t = $t.current;
1541
1537
  return t ? t(e) : Promise.reject(/* @__PURE__ */ new Error("The studio cannot save: no workbook, or the backing store cannot write."));
1542
1538
  },
1543
- getWorkbookElement: () => je.current,
1544
- getWorkbook: () => eo.current ?? null,
1545
- isDirty: () => Bt.current?.isDirty() ?? !1,
1546
- getEditable: () => Rt.current,
1539
+ getWorkbookElement: () => Re.current,
1540
+ getWorkbook: () => Yt.current ?? null,
1541
+ isDirty: () => Ot.current?.isDirty() ?? !1,
1542
+ getEditable: () => At.current,
1547
1543
  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)
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)
1552
1548
  }), [], r);
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
- }));
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));
1557
1551
  }, []);
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
- render: g,
1552
+ De(() => {
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,
1564
1558
  props: {
1565
- ...f,
1559
+ ...y,
1566
1560
  style: {
1567
1561
  width: "100%",
1568
1562
  height: "100%",
1569
- ...f?.style
1563
+ ...y?.style
1570
1564
  },
1571
- error: wt.error
1565
+ error: kt.error
1572
1566
  }
1573
1567
  }) : null;
1574
- if (n && !xt) return Ze(it, {
1568
+ if (n && !bt) return Xe(nt, {
1575
1569
  style: {
1576
1570
  width: "100%",
1577
1571
  height: "100%",
@@ -1583,53 +1577,56 @@ var bo = () => {
1583
1577
  children: n
1584
1578
  });
1585
1579
  let l = null;
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,
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,
1589
1583
  props: {
1590
1584
  workbook: s,
1591
- ...Pe
1585
+ ...Ae
1592
1586
  }
1593
- }), u = "bottom" === Be, g = a ? Ze(re, {
1594
- render: void 0 === ye ? m : ye,
1587
+ }), g = "bottom" === Be, f = a ? Xe(oe, {
1588
+ render: void 0 === be ? m : be,
1595
1589
  props: {
1596
1590
  ref: Me,
1597
1591
  style: {
1598
- marginTop: r.spacing(u ? .5 : .25),
1592
+ marginTop: r.spacing(g ? .5 : .25),
1599
1593
  marginLeft: r.spacing(1),
1600
1594
  marginRight: r.spacing(1),
1601
- marginBottom: r.spacing(u ? .5 : .75)
1595
+ marginBottom: r.spacing(g ? .5 : .75)
1602
1596
  },
1603
1597
  workbook: e,
1604
- editable: Nt ?? void 0,
1598
+ editable: Pt ?? void 0,
1605
1599
  placement: Be,
1606
- floatOnKeyboard: "float" === _e,
1607
- ...he,
1600
+ floatOnKeyboard: "float" === Ke,
1601
+ ...ke,
1608
1602
  propsNamedCollectionEditor: {
1609
1603
  restoreFocus: (e) => s?.focus(e),
1610
- ...he?.propsNamedCollectionEditor
1604
+ ...ke?.propsNamedCollectionEditor
1611
1605
  }
1612
1606
  }
1613
- }) : null, f = i ? Ze(re, {
1614
- render: void 0 === Ae ? h : Ae,
1607
+ }) : null, k = i ? Xe(oe, {
1608
+ render: void 0 === Fe ? h : Fe,
1615
1609
  props: {
1616
- childrenEnd: to,
1617
- ...De
1610
+ childrenEnd: Jt,
1611
+ ...We
1618
1612
  }
1619
- }) : null, k = (e, r) => Ze(p, {
1613
+ }) : null, b = (e, r) => Xe(p, {
1620
1614
  ...me,
1621
1615
  tabIndex: 0,
1622
- autoFocus: !r && X,
1616
+ autoFocus: !r && J,
1623
1617
  workbook: e,
1624
- editable: r ? void 0 : Nt ?? void 0,
1625
- focusNameBox: r ? void 0 : Le,
1626
- prefetch: !r && c,
1627
- ref: r ? Oe : Tt([t, je]),
1628
- onWorkbookLoad: r ? (t) => Eo(t, e) : po,
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,
1629
1626
  onKeyDown: (e) => {
1630
- C?.(e);
1627
+ D?.(e);
1631
1628
  },
1632
- propsWorkbookLoading: de,
1629
+ propsWorkbookLoading: ue,
1633
1630
  renderWorkbookLoading: null,
1634
1631
  style: r ? {
1635
1632
  ...me?.style,
@@ -1644,30 +1641,26 @@ var bo = () => {
1644
1641
  onContextMenu: (e) => e.preventDefault(),
1645
1642
  ...r ? null : o
1646
1643
  }, e.getId());
1647
- l = Ze("div", {
1644
+ l = Xe("div", {
1648
1645
  style: {
1649
1646
  display: "flex",
1650
1647
  flexDirection: "column",
1651
1648
  flex: "1 1 100%",
1652
1649
  minWidth: 0,
1653
- minHeight: 0,
1654
- ...M({
1655
- window: r.palette.background.default,
1656
- windowText: r.palette.text.primary
1657
- })
1650
+ minHeight: 0
1658
1651
  },
1659
- children: co(Be, {
1660
- toolbar: d,
1661
- formulaBar: g,
1662
- statusBar: f,
1663
- main: Ze(so, {
1664
- taskSide: x,
1665
- persistKey: wo,
1666
- sidebarElement: ko ? Ze(q.CommandScopeProvider, {
1667
- scope: go,
1668
- children: ko
1652
+ children: so(Be, {
1653
+ toolbar: u,
1654
+ formulaBar: f,
1655
+ statusBar: k,
1656
+ main: Xe(ao, {
1657
+ taskSide: C,
1658
+ persistKey: bo,
1659
+ sidebarElement: go ? Xe(G.CommandScopeProvider, {
1660
+ scope: po,
1661
+ children: go
1669
1662
  }) : void 0,
1670
- mainElement: Je("div", {
1663
+ mainElement: Ye("div", {
1671
1664
  style: {
1672
1665
  position: "relative",
1673
1666
  display: "flex",
@@ -1676,8 +1669,8 @@ var bo = () => {
1676
1669
  minWidth: 0,
1677
1670
  minHeight: 0
1678
1671
  },
1679
- children: [[k(xt, !1), Ct ? k(Ct, !0) : null], Ze(Qe, {
1680
- ref: no,
1672
+ children: [[b(bt, !1), wt ? b(wt, !0) : null], Xe(Ze, {
1673
+ ref: to,
1681
1674
  sx: {
1682
1675
  position: "absolute",
1683
1676
  top: "10%",
@@ -1693,16 +1686,16 @@ var bo = () => {
1693
1686
  })
1694
1687
  });
1695
1688
  }
1696
- const d = !Vt && le ? Ze(re, {
1697
- render: le,
1698
- props: { ...de }
1689
+ const u = !_t && ce ? Xe(oe, {
1690
+ render: ce,
1691
+ props: { ...ue }
1699
1692
  }) : null;
1700
- return Je(it, {
1701
- sx: fo,
1693
+ return Ye(nt, {
1694
+ sx: mo,
1702
1695
  style: {
1703
1696
  width: "100%",
1704
- height: ze ? `calc(100% - ${ze}px)` : "100%",
1705
- transform: He ? `translateY(${He}px)` : void 0,
1697
+ height: _e ? `calc(100% - ${_e}px)` : "100%",
1698
+ transform: ze ? `translateY(${ze}px)` : void 0,
1706
1699
  position: "absolute",
1707
1700
  display: "flex",
1708
1701
  alignItems: "stretch",
@@ -1715,7 +1708,7 @@ var bo = () => {
1715
1708
  variant: s,
1716
1709
  children: [
1717
1710
  l,
1718
- n ? Ze(it, {
1711
+ n ? Xe(nt, {
1719
1712
  style: {
1720
1713
  position: "absolute",
1721
1714
  inset: 0,
@@ -1725,114 +1718,114 @@ var bo = () => {
1725
1718
  },
1726
1719
  children: n
1727
1720
  }) : null,
1728
- d ? Ze("div", {
1721
+ u ? Xe("div", {
1729
1722
  style: {
1730
1723
  position: "absolute",
1731
1724
  inset: 0,
1732
1725
  display: "flex",
1733
1726
  alignItems: "center",
1734
1727
  justifyContent: "center",
1735
- background: `var(--sxl-color-base-100, ${nt ? "#121212" : "#fff"})`
1728
+ background: `var(--sxl-color-base-100, ${ot ? "#121212" : "#fff"})`
1736
1729
  },
1737
- children: d
1730
+ children: u
1738
1731
  }) : null
1739
1732
  ]
1740
1733
  });
1741
1734
  }, [
1735
+ kt,
1736
+ bt,
1742
1737
  wt,
1743
- xt,
1744
- Ct,
1745
- Vt,
1746
- Zt,
1747
- le,
1748
- de,
1738
+ _t,
1739
+ Gt,
1740
+ ce,
1741
+ ue,
1749
1742
  me,
1750
1743
  a,
1751
1744
  i,
1752
1745
  s,
1753
- to,
1754
- g,
1746
+ Jt,
1755
1747
  f,
1748
+ y,
1749
+ co,
1756
1750
  mo,
1757
- fo,
1758
- ko,
1759
- x,
1760
1751
  go,
1752
+ C,
1753
+ po,
1761
1754
  ge,
1762
- he,
1763
- ye,
1755
+ ke,
1756
+ be,
1764
1757
  Be,
1765
- Nt,
1766
- Ce,
1767
- De,
1758
+ Pt,
1759
+ ve,
1760
+ We,
1761
+ Fe,
1768
1762
  Ae,
1769
- Pe,
1770
1763
  Ne,
1764
+ Ke,
1771
1765
  _e,
1772
1766
  ze,
1773
- He,
1774
- ot,
1775
- nt
1767
+ et,
1768
+ ot
1776
1769
  ]);
1777
- let Fo = Ze(Ft, {
1770
+ let To = Xe(Et, {
1778
1771
  maxSnack: 3,
1779
- domRoot: oo ?? void 0,
1772
+ domRoot: Qt ?? void 0,
1780
1773
  anchorOrigin: {
1781
1774
  vertical: "bottom",
1782
1775
  horizontal: "right"
1783
1776
  },
1784
1777
  autoHideDuration: 3500,
1785
1778
  onClose: (e, t, o) => {
1786
- je.current?.focus();
1779
+ Re.current?.focus();
1787
1780
  },
1788
- Components: { error: Lt },
1781
+ Components: { error: Mt },
1789
1782
  iconVariant: {
1790
- success: Ze(st, {
1783
+ success: Xe(at, {
1791
1784
  style: { marginRight: "8px" },
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" })
1785
+ children: Xe("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
1786
  }),
1794
- error: Ze(Z, {
1787
+ error: Xe(Y, {
1795
1788
  iconKey: "ErrorAlert",
1796
1789
  style: { marginRight: "8px" }
1797
1790
  })
1798
1791
  },
1799
- children: Ze(j, {
1800
- workbook: xt,
1801
- children: Ze(P, {
1802
- renderArea: Do,
1792
+ children: Xe(O, {
1793
+ workbook: bt,
1794
+ children: Xe(A, {
1795
+ renderArea: xo,
1803
1796
  onUpdateArea: (e) => {
1804
- xo(e);
1797
+ ho(e);
1805
1798
  },
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,
1799
+ children: Xe(je, { children: Xe(Zt, { children: Xe(ie, { children: Xe(Q, { children: Xe(qt, {
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,
1816
1809
  host: r
1817
1810
  }) }) }) }) })
1818
1811
  })
1819
1812
  })
1820
1813
  });
1821
- return Fo = Je(dt, {
1822
- theme: nt ? ot.dark : ot.light,
1814
+ return To = Ye(lt, {
1815
+ theme: ot ? et.dark : et.light,
1823
1816
  children: [
1824
- H ? Ze(rt, {}) : null,
1825
- Ze(ie, { css: at }),
1826
- Ze(ie, { css: lt }),
1827
- Ze(Re, {
1817
+ q ? Xe(tt, {}) : null,
1818
+ Xe(ae, { css: rt }),
1819
+ Xe(I, { scopeClass: n }),
1820
+ Xe(Ie, {
1828
1821
  themeScopeClass: n,
1829
1822
  themeSurface: "app",
1830
- themeMode: Xe,
1831
- children: Fo
1823
+ themeMode: qe,
1824
+ children: To
1832
1825
  })
1833
1826
  ]
1834
- }), Fo;
1827
+ }), To;
1835
1828
  }));
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 };
1829
+ yo.displayName = "EagerStudio";
1830
+ var wo = (e) => Xe(to, { ...e });
1831
+ export { yo as EagerStudio, yo as default, jt as n, ho as t };