@sheetxl/studio-mui 0.8.0-beta.11 → 0.8.0-beta.12

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 (121) hide show
  1. package/browser/esm/{DTpRkgsTm_zYnWfW.mjs → 0IBZhOJaVmzJxuTv.mjs} +1 -1
  2. package/browser/esm/{LZoYSQAYV2wksnDv.mjs → 2nRxqrNYbmEn8fS8.mjs} +5 -5
  3. package/browser/esm/{DDc6rDuU9JAo1DH_.mjs → 7fVZXXuonYb6Z7FU.mjs} +3 -3
  4. package/browser/esm/{DpD4fg2WcyiKX_2K.mjs → BAzhmMX4Fk_qnUTp.mjs} +5 -5
  5. package/browser/esm/{CBD4RiRKbbZtSXV-.mjs → BGL3x0W74D7qZXlf.mjs} +3 -3
  6. package/browser/esm/{D9ISy7VkaRRFJl46.mjs → BHGr2gsFofTdAFxq.mjs} +4 -4
  7. package/browser/esm/{BknfGJouygmnpFIU.mjs → BKhcJI-G15D3kGap.mjs} +2 -2
  8. package/browser/esm/{CyLn6zOOp_biA3xU.mjs → BNbub9weuqm3mcoF.mjs} +8 -8
  9. package/browser/esm/{CWkOgdL7mOKiTR62.mjs → BSv9MVJaz1DVEffm.mjs} +4 -4
  10. package/browser/esm/{BAbq4-I5f5oUiNaF.mjs → BWfLpYmd3cSgJ0C6.mjs} +4 -4
  11. package/browser/esm/{0BWO0bLZ8Vm_dKd2.mjs → BZqwbIE8qzjSOYcJ.mjs} +13 -13
  12. package/browser/esm/{ttjcNHcFn8O6hfnd.mjs → BZy9xUrYpAtnKeji.mjs} +11 -11
  13. package/browser/esm/{COlZu93LRwuBvjE-.mjs → BnkwC5rsg9LZyhoP.mjs} +2 -2
  14. package/browser/esm/{BvhYPwX3GrRaO9CM.mjs → BpJsBv413cNQpyg0.mjs} +3 -3
  15. package/browser/esm/{DDczwkXhz_MHub4z.mjs → BpVrgbVISiTDyFR3.mjs} +2 -2
  16. package/browser/esm/{DRSCS6aLiYmPjUz1.mjs → BsngRDhvVYGVBJeK.mjs} +365 -362
  17. package/browser/esm/{Ds3XRkne7HxcXD8J.mjs → C29TKq47CbXs652l.mjs} +2 -2
  18. package/browser/esm/{BXhNFzyEGokTF-BL.mjs → C8p2iMad_NNCwGI_.mjs} +2 -2
  19. package/browser/esm/{G0Inqm6Eqw47dMpa.mjs → CBzXksWnb-1gGEWZ.mjs} +1 -1
  20. package/browser/esm/{zqilJefihVd7At2T.mjs → CFIAWgpU3UyepLBn.mjs} +7 -7
  21. package/browser/esm/{DG21x7RKDpge6zAE.mjs → CJD4jF4m9cBGHzr_.mjs} +1 -1
  22. package/browser/esm/{C9pIZVACtl9unFOp.mjs → CMc7G7cevxzPGxr9.mjs} +2 -2
  23. package/browser/esm/{HViD4Wfoi0mmqk9w.mjs → CYtULLhY9M2m3DeH.mjs} +1 -1
  24. package/browser/esm/{Buqcl7J75MJrhpVE.mjs → CeF35ZeFP28Do5Zx.mjs} +8 -8
  25. package/browser/esm/{D3rRUK4dIM5gUSmj.mjs → CjYKDxU4EP2Kf_vo.mjs} +2 -2
  26. package/browser/esm/{BlE_8o8tO2AgAlaj.mjs → Cq82lvdjyBvlJ8xJ.mjs} +1 -1
  27. package/browser/esm/{DEv4pIEgYr5C7etm.mjs → CuRxFAO42JkQvMEx.mjs} +1 -1
  28. package/browser/esm/{C8JU4KsMasmLvojI.mjs → Cvk2yY90hpgXWMAt.mjs} +1 -1
  29. package/browser/esm/{CynTY0oNtyJnoaBq.mjs → D0slJycx3nq53qmf.mjs} +1 -1
  30. package/browser/esm/{DKtJxrpN0axtuQ0l.mjs → D2jzliMwAo2ENpfi.mjs} +1 -1
  31. package/browser/esm/{DdcZrjMLWVukWcU5.mjs → D5Fn0Hqllwv5HY6i.mjs} +768 -660
  32. package/browser/esm/{Bujtz_Guj88d03vI.mjs → D5N4nGaZsXtrHAOh.mjs} +6 -6
  33. package/browser/esm/{ChSVxkPTIjgcC8PL.mjs → D7AqPfyhMiuda5l5.mjs} +2 -2
  34. package/browser/esm/{BED6h6YAwCf1HEQJ.mjs → DHZA48ZMCETvHmeP.mjs} +1 -1
  35. package/browser/esm/{Di3BUxA0SqFWWgeg.mjs → DX2_vf7WX6uRLaOZ.mjs} +1 -1
  36. package/browser/esm/{DnGaP5F7mLwCGUYG.mjs → DaxpbAF1ShkT7hNU.mjs} +206 -124
  37. package/browser/esm/{YThnrg3PadGs7B4j.mjs → Db3oHfXiRtcH015t.mjs} +143 -137
  38. package/browser/esm/{C0wlMAIn9iREPK6w.mjs → Dt47Huh1l3C4_5_w.mjs} +1 -1
  39. package/browser/esm/{xFqkfN8QMCxvsetB.mjs → DtPt0phL7m56YfHZ.mjs} +1 -1
  40. package/browser/esm/{CTjqDD-swFMZzI-Y.mjs → DtTDaXmnWUoG4VBO.mjs} +2 -2
  41. package/browser/esm/{Brsh5yscJ_4uKFXp.mjs → DuuyN4-7K6_io2Py.mjs} +2 -2
  42. package/browser/esm/{w_JrR69vEpvoyeMy.mjs → NeGeLF3gbGMZyV6E.mjs} +1 -1
  43. package/browser/esm/{BokqKEpU6TFgfRs6.mjs → PY3Br5Bo_TxcCnCU.mjs} +2 -2
  44. package/browser/esm/{DV6i9RQZfJiKtEaJ.mjs → WIhvQtBkGiw-oFUs.mjs} +636 -622
  45. package/browser/esm/{DJOOed_OtB-XT7f3.mjs → WgIvwAENeO8LANax.mjs} +6 -6
  46. package/browser/esm/{BjvD_4t2KGsZP5V8.mjs → Yjq3p_7eVGFw2Jod.mjs} +3 -3
  47. package/browser/esm/index.mjs +290 -287
  48. package/browser/esm/{QgaAIDUMmBQBsXP9.mjs → jFRFCWlkD7Dsrhkh.mjs} +84 -84
  49. package/browser/esm/{BYE9gCDWKyx6mnVs.mjs → lKXEDVt2ow1NlWJj.mjs} +114 -103
  50. package/browser/esm/{CEtXsBzEjEKk9GOj.mjs → oC0OwOddhOD0OoCJ.mjs} +2 -2
  51. package/browser/esm/{DsoNMWDwHZP8UXQd.mjs → tIKqpsA0vNXH9EgU.mjs} +1 -1
  52. package/browser/esm/{ClBvNPeNCAhuVWrG.mjs → u84rSnESjxqB6gay.mjs} +1 -1
  53. package/node/esm/{DMXLxp3T0E0SRTQc.mjs → B8Ls4Eh1k8-Yiry_.mjs} +1 -1
  54. package/node/esm/{3WghtBXAvCDwcVrq.mjs → B9X3n8MglL4OitAV.mjs} +1 -1
  55. package/node/esm/{XEDcegsv5AGKBfu2.mjs → BBGoyqs2L_ccSH1e.mjs} +2 -2
  56. package/node/esm/{zITjZ7R4raDqhP-n.mjs → BLv99aovW4R3C5PE.mjs} +3 -3
  57. package/node/esm/{DfCuL8AUxMFoEG2s.mjs → BUGU_5lUtnCRlp3n.mjs} +36 -36
  58. package/node/esm/{BNg4QQY0WAPLE0q7.mjs → BalROFG_oa9PFs9Q.mjs} +3 -3
  59. package/node/esm/{Bph-sR3l6AYWeuxK.mjs → BqVxnA1mo52ubjdf.mjs} +2 -2
  60. package/node/esm/{CZyA9uD4SkTvqp_G.mjs → C3FCh9xju2SccUIE.mjs} +253 -253
  61. package/node/esm/{Do-zCKziWhoG5eAv.mjs → C4F6WY8M4nkLyxdb.mjs} +2 -2
  62. package/node/esm/{CSAnTp5rwId0DUb8.mjs → CKWeipCqqpLnLE5e.mjs} +127 -116
  63. package/node/esm/{DLqBHdFp6wvm6EGs.mjs → CTnVNfz4eqFnM92M.mjs} +1 -1
  64. package/node/esm/{BPzcW4BejRqso338.mjs → Cfi_ly8fBDZZdiZT.mjs} +3 -3
  65. package/node/esm/{Db3dbaYLKUO66T9s.mjs → CgKa6JuyJ1tTodev.mjs} +414 -400
  66. package/node/esm/{4HmLH0bPVJCZLgik.mjs → Cq53M7bAUSXMNq1f.mjs} +1 -1
  67. package/node/esm/{1bf4gn-2vld4BZ9u.mjs → Cr8AYWUoU-XVt0hu.mjs} +1 -1
  68. package/node/esm/CyuOE595I2e-U4cG.mjs +236 -0
  69. package/node/esm/{D-xqQ5qOSd6WrzwJ.mjs → D72CupF9mfy2D1Xa.mjs} +1 -1
  70. package/node/esm/{CyafafEgfmjLqE5O.mjs → DGDHFK8okuVbRCe5.mjs} +1 -1
  71. package/node/esm/{DpJ2gmZJioCyq8La.mjs → DJFkALt4XrwkMbnU.mjs} +166 -160
  72. package/node/esm/{CPq-MIdEnc-53JpF.mjs → DJpwI8PlKBI2rk0r.mjs} +2 -2
  73. package/node/esm/{DWqvf4H5F2wMnZ0L.mjs → DQaGPUYbgL4Y5YZW.mjs} +1 -1
  74. package/node/esm/{CYIoK22I6Yvv12_x.mjs → DsNYnq4NtYBxPmeA.mjs} +1 -1
  75. package/node/esm/{yCUxQuqVuC4DHKPx.mjs → DygDgOpa9sJ6YFVS.mjs} +1 -1
  76. package/node/esm/Dz0Hg87UcJ-awwiI.mjs +489 -0
  77. package/node/esm/{BIMkjQUwG4Ih-6Sh.mjs → M7YxvRPGCuxuk9aK.mjs} +1 -1
  78. package/node/esm/{CWcv7UVXF8IUB0PC.mjs → QNjtpX8rIpqGGLEJ.mjs} +15 -15
  79. package/node/esm/{DdEzhVqYTrGODXrz.mjs → ZzvsynJTCSuChYS-.mjs} +1 -1
  80. package/node/esm/{CjC6s3RUJQNCF7mP.mjs → di_8-pXh90j4BO4j.mjs} +1 -1
  81. package/node/esm/{CvRbu8JPxFarsSR-.mjs → dm8dmEaTIqfmgyeL.mjs} +5 -5
  82. package/node/esm/{CuMePia6i_8yfJ6S.mjs → fmya3XQnTGyQisvT.mjs} +9 -9
  83. package/node/esm/{BR45ogAR-hY2bE60.mjs → gPYAb_A0T5ZwcQ1E.mjs} +1 -1
  84. package/node/esm/index.mjs +2817 -2702
  85. package/node/esm/{DeZJlLk8WJ3BLtLs.mjs → wB8xMpyJ_NvE16yG.mjs} +3 -3
  86. package/node/esm/{BlN7G0DVC24zauig.mjs → zGAcd4Jr7wkvXDBS.mjs} +1 -1
  87. package/package.json +9 -9
  88. package/resources/locales/de/groups.cmd.json +4 -0
  89. package/resources/locales/de/ui.msg.json +3 -1
  90. package/resources/locales/en/groups.cmd.json +4 -0
  91. package/resources/locales/en/ui.msg.json +3 -1
  92. package/types/src/border/BorderPopupButton.d.ts +1 -1
  93. package/types/src/color/ColorPopupButton.d.ts +1 -1
  94. package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
  95. package/types/src/command/DocThemeCommandButton.d.ts +1 -1
  96. package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
  97. package/types/src/command/FontSizeCommandButton.d.ts +1 -1
  98. package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
  99. package/types/src/command/LanguageCommandButton.d.ts +1 -1
  100. package/types/src/command/LocaleCommandButton.d.ts +1 -1
  101. package/types/src/command/index.d.ts +1 -0
  102. package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +1 -1
  103. package/types/src/conditions/ConditionEditor.d.ts +1 -1
  104. package/types/src/conditions/OperatorAndParamEditor.d.ts +1 -1
  105. package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
  106. package/types/src/fill/PatternPopupButton.d.ts +1 -1
  107. package/types/src/formulaBar/IFormulaBar.d.ts +4 -2
  108. package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
  109. package/types/src/named/NamedDetailsPanel.d.ts +2 -2
  110. package/types/src/statusBar/PendingStatus.d.ts +19 -0
  111. package/types/src/statusBar/index.d.ts +1 -0
  112. package/types/src/studio/StudioProps.d.ts +10 -10
  113. package/types/src/template/TemplatePanel.d.ts +5 -1
  114. package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
  115. package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
  116. package/types/src/workbook/DefaultRenderers.d.ts +30 -18
  117. package/types/src/workbook/WorkbookElement.d.ts +5 -4
  118. package/types/src/workbook/WorkbookStrip.d.ts +8 -7
  119. package/types/src/workbook/index.d.ts +1 -1
  120. package/node/esm/B0bdb_6p7fQI_ivo.mjs +0 -236
  121. package/node/esm/DatM6eEYPpAtIMy-.mjs +0 -405
@@ -1,21 +1,21 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.12
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { AnomaliesPlugin as e, CommentsPlugin as t, DocumentTitle as o, ExternalLinksPlugin as r, FormatPlugin as n, NamedPlugin as a, ProtectionPlugin as i, SlicerPlugin as s, TablePlugin as l, WorkbookElement as c, a as d, createStudioThemeCSS as p, i as u, n as m, p as g, r as h, registerStudioCommandCatalogs as f, registerStudioCommandGroups as k, renderWorkbookToolbars as b, t as y, tokensToMuiOptions as w } from "./index.mjs";
7
+ import { AnomaliesPlugin as e, CommentsPlugin as t, DocumentTitle as o, ExternalLinksPlugin as r, FormatPlugin as n, NamedPlugin as a, ProtectionPlugin as i, SlicerPlugin as s, TablePlugin as l, WorkbookElement as c, createStudioThemeCSS as d, defaultRenderFormulaBar as p, defaultRenderStatusBar as u, defaultRenderToolbar as m, defaultRenderWorkbookError as g, defaultRenderWorkbookLoading as h, l as f, registerStudioCommandCatalogs as k, registerStudioCommandGroups as b, t as y, tokensToMuiOptions as w } from "./index.mjs";
8
8
  import { CommandRootProvider as x, DefaultTaskPaneRegistry as v, LogoNoPaddingIcon as C, SHAPE_ICON_PACK as D, TaskPaneArea as S, TaskPaneProvider as W, ThemeStateDefaults as E, ThemeStateKey as T, WorkbookIO as F, WorkbookProvider as I, buildOOXMLThemeCSS as P, createEditable as R, createSystemColorVars as A, registerMovablePane as j, registerMovableToolbarEntry as N, useDocThemes as M, useModelSync as L, useReferenceModeStore as O, useResolvedWorkbook as $, useTaskPaneArea as B, useWorkbookEncrypted as _, useWorkbookName as K, useWorkbookSaveState as V } from "@sheetxl/react";
9
- import { Command as z, DefaultIconService as H, DynamicIcon as U, LanguageStateKey as G, NotifierType as q, ReactErrorBoundary as X, ReactNotifierProvider as Y, ReactUtils as Z, ScrollUtils as J, SplitPane as Q, UncaughtErrorBoundary as ee, createBusyHandle as te, useCallbackRef as oe, useFullscreen as re, useImperativeElement as ne, useLanguage as ae, useMeasure as ie, useNotifier as se, usePersistentState as le, useResolvedThemeMode as ce, useTokenThemeContext as de, useTranslator as pe, useVisualViewportRect as ue } from "@sheetxl/utils-react";
10
- import me, { forwardRef as ge, isValidElement as he, memo as fe, useCallback as ke, useEffect as be, useMemo as ye, useRef as we, useState as xe } from "react";
11
- import { AnimatedLoadingPanel as ve, AnimatedTraversingEllipsisIcon as Ce, CommandGroup as De, ExhibitFloatProvider as Se, ExhibitTooltip as We, ModalProvider as Ee, SimpleTooltip as Te, StackTrace as Fe, createExhibitTheme as Ie, hideLoadingPanel as Pe, lazyModal as Re, lazyPanel as Ae, showLoadingPanel as je, useInputDialog as Ne, useLazyWindow as Me, useModal as Le, useOptionsDialog as Oe } from "@sheetxl/utils-mui";
12
- import { Fragment as $e, jsx as Be, jsxs as _e } from "react/jsx-runtime";
13
- import { Box as Ke, Card as Ve, CardActions as ze, Collapse as He, CssBaseline as Ue, DialogTitle as Ge, IconButton as qe, Paper as Xe, SvgIcon as Ye, Tab as Ze, Tabs as Je, ThemeProvider as Qe, Typography as et, alpha as tt, useMediaQuery as ot, useTheme as rt } from "@mui/material";
14
- import { CommonUtils as nt, DOMUtils as at, DefaultLanguagePackService as it, ErrorUtils as st, ExpectedError as lt, PartialError as ct, defineLazyModule as dt, formatMessage as pt, messageKey as ut, t as mt } from "@sheetxl/utils";
15
- import gt from "clsx";
16
- import { mergeRefs as ht, useMergeRefs as ft } from "react-merge-refs";
17
- import { SnackbarContent as kt, SnackbarProvider as bt, useSnackbar as yt } from "notistack";
18
- var wt = Ae(dt("studio:conditionalFormatDetailsTaskPane", () => import("./CZyA9uD4SkTvqp_G.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), xt = ["lines"], vt = {
9
+ import { Command as z, DefaultIconService as H, DynamicIcon as U, LanguageStateKey as G, NotifierType as q, ReactErrorBoundary as X, ReactNotifierProvider as Y, ReactUtils as Z, RenderSlot as J, ScrollUtils as Q, SplitPane as ee, UncaughtErrorBoundary as te, createBusyHandle as oe, useCallbackRef as re, useFullscreen as ne, useImperativeElement as ae, useLanguage as ie, useMeasure as se, useNotifier as le, usePersistentState as ce, useResolvedThemeMode as de, useTokenThemeContext as pe, useTranslator as ue, useVisualViewportRect as me } from "@sheetxl/utils-react";
10
+ import ge, { forwardRef as he, isValidElement as fe, memo as ke, useCallback as be, useEffect as ye, useMemo as we, useRef as xe, useState as ve } from "react";
11
+ import { AnimatedLoadingPanel as Ce, AnimatedTraversingEllipsisIcon as De, CommandGroup as Se, ExhibitFloatProvider as We, ExhibitTooltip as Ee, ModalProvider as Te, SimpleTooltip as Fe, StackTrace as Ie, createExhibitTheme as Pe, hideLoadingPanel as Re, lazyModal as Ae, lazyPanel as je, showLoadingPanel as Ne, useInputDialog as Me, useLazyWindow as Le, useModal as Oe, useOptionsDialog as $e } from "@sheetxl/utils-mui";
12
+ import { Fragment as Be, jsx as _e, jsxs as Ke } from "react/jsx-runtime";
13
+ import { Box as Ve, Card as ze, CardActions as He, Collapse as Ue, CssBaseline as Ge, DialogTitle as qe, IconButton as Xe, Paper as Ye, SvgIcon as Ze, Tab as Je, Tabs as Qe, ThemeProvider as et, Typography as tt, alpha as ot, useMediaQuery as rt, useTheme as nt } from "@mui/material";
14
+ import { CommonUtils as at, DOMUtils as it, DefaultLanguagePackService as st, ErrorUtils as lt, ExpectedError as ct, PartialError as dt, defineLazyModule as pt, formatMessage as ut, messageKey as mt, t as gt } from "@sheetxl/utils";
15
+ import ht from "clsx";
16
+ import { mergeRefs as ft, useMergeRefs as kt } from "react-merge-refs";
17
+ import { SnackbarContent as bt, SnackbarProvider as yt, useSnackbar as wt } from "notistack";
18
+ var xt = je(pt("studio:conditionalFormatDetailsTaskPane", () => import("./C3FCh9xju2SccUIE.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), vt = ["lines"], Ct = {
19
19
  card: "_card_h0jnt_7",
20
20
  actionRoot: "_actionRoot_h0jnt_11",
21
21
  icons: "_icons_h0jnt_16",
@@ -25,63 +25,63 @@ var wt = Ae(dt("studio:conditionalFormatDetailsTaskPane", () => import("./CZyA9u
25
25
  paper: "_paper_h0jnt_37",
26
26
  checkIcon: "_checkIcon_h0jnt_42",
27
27
  button: "_button_h0jnt_47"
28
- }, Ct = fe(ge((e, t) => {
29
- const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l = pe(), { closeSnackbar: c } = yt(), [d, p] = xe(!1), u = a ? st.collectErrorChain(a, !0)?.[0]?.error : void 0, m = u && !(u instanceof lt), g = ke(() => {
28
+ }, Dt = ke(he((e, t) => {
29
+ const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l = ue(), { closeSnackbar: c } = wt(), [d, p] = ve(!1), u = a ? lt.collectErrorChain(a, !0)?.[0]?.error : void 0, m = u && !(u instanceof ct), g = be(() => {
30
30
  p((e) => !e);
31
- }, []), h = ke(() => {
31
+ }, []), h = be(() => {
32
32
  c(o);
33
33
  }, [o, c]);
34
34
  let f = u?.message;
35
- return !f && he(r) && (f = r), f || "string" != typeof r || (f = r), f || (f = `Unknown Error: ${r}`), Be(kt, {
35
+ return !f && fe(r) && (f = r), f || "string" != typeof r || (f = r), f || (f = `Unknown Error: ${r}`), _e(bt, {
36
36
  ref: t,
37
- className: gt(vt.root, "error-snackbar"),
38
- children: _e(Ve, {
39
- className: vt.card,
37
+ className: ht(Ct.root, "error-snackbar"),
38
+ children: Ke(ze, {
39
+ className: Ct.card,
40
40
  style: {
41
41
  backgroundColor: "var(--sxl-color-error)",
42
42
  color: "var(--sxl-color-error-content)",
43
43
  border: "1px solid var(--sxl-color-error)"
44
44
  },
45
- children: [_e(ze, {
46
- className: vt.actionRoot,
45
+ children: [Ke(He, {
46
+ className: Ct.actionRoot,
47
47
  children: [
48
48
  i ? null : n?.error,
49
- Be(et, {
49
+ _e(tt, {
50
50
  variant: "body2",
51
51
  component: "div",
52
- className: vt.typography,
52
+ className: Ct.typography,
53
53
  children: f
54
54
  }),
55
- Be("div", { style: { flex: "1 1 auto" } }),
56
- _e("div", {
57
- className: vt.icons,
58
- children: [m ? Be(qe, {
55
+ _e("div", { style: { flex: "1 1 auto" } }),
56
+ Ke("div", {
57
+ className: Ct.icons,
58
+ children: [m ? _e(Xe, {
59
59
  "aria-label": l("toast.showMore"),
60
60
  size: "small",
61
- className: gt(vt.expand, { [vt.expandOpen]: d }),
61
+ className: ht(Ct.expand, { [Ct.expandOpen]: d }),
62
62
  onClick: g,
63
- children: Be(U, { iconKey: "ExpandMore" })
64
- }) : null, Be(qe, {
63
+ children: _e(U, { iconKey: "ExpandMore" })
64
+ }) : null, _e(Xe, {
65
65
  size: "small",
66
- className: vt.expand,
66
+ className: Ct.expand,
67
67
  onClick: h,
68
- children: Be(U, {
68
+ children: _e(U, {
69
69
  iconKey: "Close",
70
70
  style: { transform: "scale(0.8)" }
71
71
  })
72
72
  })]
73
73
  })
74
74
  ]
75
- }), m ? Be(He, {
75
+ }), m ? _e(Ue, {
76
76
  in: d,
77
77
  timeout: "auto",
78
- children: Be("div", {
79
- className: vt.stackTraceContainer,
78
+ children: _e("div", {
79
+ className: Ct.stackTraceContainer,
80
80
  style: {
81
81
  backgroundColor: "color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))",
82
82
  borderTop: "1px solid var(--sxl-color-error)"
83
83
  },
84
- children: Be(Fe, {
84
+ children: _e(Ie, {
85
85
  error: a,
86
86
  hideLineNumbers: !0
87
87
  })
@@ -90,13 +90,13 @@ var wt = Ae(dt("studio:conditionalFormatDetailsTaskPane", () => import("./CZyA9u
90
90
  })
91
91
  });
92
92
  }));
93
- Ct.displayName = "ToastError";
94
- var Dt = () => {
95
- const e = pe();
96
- return Be(We, {
93
+ Dt.displayName = "ToastError";
94
+ var St = () => {
95
+ const e = ue();
96
+ return _e(Ee, {
97
97
  label: "SheetXL",
98
98
  description: e("logo.description"),
99
- children: Be(Ke, {
99
+ children: _e(Ve, {
100
100
  component: "a",
101
101
  href: "https://www.sheetxl.com",
102
102
  target: "_blank",
@@ -109,25 +109,25 @@ var Dt = () => {
109
109
  marginLeft: "6px",
110
110
  cursor: "pointer"
111
111
  },
112
- children: Be(C, { style: {
112
+ children: _e(C, { style: {
113
113
  width: "24px",
114
114
  height: "24px"
115
115
  } })
116
116
  })
117
117
  });
118
- }, St = Be(Dt, {}), Wt = fe(ge((e, t) => {
119
- const { workbook: o, className: r, logo: n = St, mainElement: a, startElement: i, endElement: s, ...l } = e, [c, { width: d }] = ie(), p = d < 530, u = we(null), m = ft([
118
+ }, Wt = _e(St, {}), Et = ke(he((e, t) => {
119
+ const { workbook: o, className: r, logo: n = Wt, mainElement: a, startElement: i, endElement: s, ...l } = e, [c, { width: d }] = se(), p = d < 530, u = xe(null), g = kt([
120
120
  u,
121
121
  c,
122
122
  t
123
123
  ]);
124
- return Be(Ke, {
124
+ return _e(Ve, {
125
125
  ...l,
126
- ref: m,
126
+ ref: g,
127
127
  className: r,
128
- children: b({
128
+ children: m({
129
129
  isCompact: p,
130
- wrapperSelect: (e) => _e(Ke, {
130
+ wrapperSelect: (e) => Ke(Ve, {
131
131
  sx: {
132
132
  display: "grid",
133
133
  gridTemplateColumns: "1fr auto 1fr",
@@ -138,7 +138,7 @@ var Dt = () => {
138
138
  paddingRight: (e) => e.spacing(1)
139
139
  },
140
140
  children: [
141
- _e(Ke, {
141
+ Ke(Ve, {
142
142
  sx: {
143
143
  display: "flex",
144
144
  flexDirection: "row",
@@ -146,7 +146,7 @@ var Dt = () => {
146
146
  justifyContent: "start",
147
147
  gap: (e) => e.spacing(.5)
148
148
  },
149
- children: [n, _e(Ke, {
149
+ children: [n, Ke(Ve, {
150
150
  sx: {
151
151
  display: "flex",
152
152
  flexDirection: "row",
@@ -156,7 +156,7 @@ var Dt = () => {
156
156
  children: [i, e]
157
157
  })]
158
158
  }),
159
- Be(Ke, {
159
+ _e(Ve, {
160
160
  sx: {
161
161
  display: "flex",
162
162
  flexDirection: "row",
@@ -167,7 +167,7 @@ var Dt = () => {
167
167
  },
168
168
  children: a
169
169
  }),
170
- Be(Ke, {
170
+ _e(Ve, {
171
171
  sx: {
172
172
  display: "flex",
173
173
  alignItems: "center",
@@ -180,12 +180,12 @@ var Dt = () => {
180
180
  })
181
181
  });
182
182
  }));
183
- Wt.displayName = "StudioToolbar";
184
- var Et = (e, t) => {
183
+ Et.displayName = "StudioToolbar";
184
+ var Tt = (e, t) => {
185
185
  const o = new URL(window.location.pathname, window.location.origin);
186
- e && o.searchParams.set("source", e), e && t && o.searchParams.set("title", t), window.open(o.toString(), "sheetxl-" + nt.uuidV4(), "popup=true");
186
+ e && o.searchParams.set("source", e), e && t && o.searchParams.set("title", t), window.open(o.toString(), "sheetxl-" + at.uuidV4(), "popup=true");
187
187
  };
188
- function Tt(e, t) {
188
+ function Ft(e, t) {
189
189
  const { workbook: o, setWorkbook: r, workbookTitle: n = "export", isDirty: a, notifier: i, refSave: s } = t;
190
190
  let l = !1;
191
191
  const c = async (e = null, t = null, o = null) => {
@@ -194,20 +194,20 @@ function Tt(e, t) {
194
194
  typedCreateWorkbookOptions: t ?? void 0,
195
195
  onPassword: async ({ origin: e, validate: t }) => {
196
196
  const o = await i.showInput({
197
- title: mt("dialog.password.title"),
198
- description: mt("dialog.password.open.description", { name: e.getName() ?? "" }),
197
+ title: gt("dialog.password.title"),
198
+ description: gt("dialog.password.open.description", { name: e.getName() ?? "" }),
199
199
  inputType: "password",
200
200
  options: [{
201
201
  id: "Open",
202
- label: () => mt("dialog.open")
202
+ label: () => gt("dialog.open")
203
203
  }, "Cancel"],
204
204
  defaultOption: "Open",
205
205
  onValidateInput: async (e, o) => void 0 === o ? { valid: !0 } : e ? await t(e) ? { valid: !0 } : {
206
206
  valid: !1,
207
- message: mt("dialog.password.open.retry")
207
+ message: gt("dialog.password.open.retry")
208
208
  } : {
209
209
  valid: !1,
210
- message: mt("dialog.password.open.required")
210
+ message: gt("dialog.password.open.required")
211
211
  }
212
212
  });
213
213
  return "Open" === o?.option ? o.input ?? null : null;
@@ -223,7 +223,7 @@ function Tt(e, t) {
223
223
  ...n,
224
224
  progress: {
225
225
  async onStart(e, t) {
226
- await n?.progress?.onStart?.(e, t), a = await i?.showBusy?.(mt("workbook.opening", { name: e?.getName() ?? "" })), t && a?.setProgress?.(0, t);
226
+ await n?.progress?.onStart?.(e, t), a = await i?.showBusy?.(gt("workbook.opening", { name: e?.getName() ?? "" })), t && a?.setProgress?.(0, t);
227
227
  },
228
228
  onProgress(e, t) {
229
229
  if (!t) return;
@@ -236,7 +236,7 @@ function Tt(e, t) {
236
236
  o - s < 5 || (s = o, a?.setProgress?.(e, t));
237
237
  },
238
238
  onComplete() {
239
- a?.(), r.length > 0 && (i.showMessage(mt("workbook.importWarnings")), console.warn("Import warnings:\n" + r.join("\n")));
239
+ a?.(), r.length > 0 && (i.showMessage(gt("workbook.importWarnings")), console.warn("Import warnings:\n" + r.join("\n")));
240
240
  },
241
241
  onWarning(e, t) {
242
242
  n?.progress?.onWarning?.(e, t);
@@ -249,7 +249,7 @@ function Tt(e, t) {
249
249
  format: t?.key,
250
250
  progress: {
251
251
  async onStart(e) {
252
- a = await i?.showBusy?.(mt("workbook.saving", { name: e?.getName() ?? "" }));
252
+ a = await i?.showBusy?.(gt("workbook.saving", { name: e?.getName() ?? "" }));
253
253
  },
254
254
  onComplete() {
255
255
  a?.();
@@ -257,27 +257,27 @@ function Tt(e, t) {
257
257
  },
258
258
  onWarnings: r ?? (async ({ warnings: e, origin: t, canCancel: o }) => {
259
259
  a?.(), console.warn(`Not written to '${t.getName()}':\n${e.map((e) => ` ${e.message}`).join("\n")}`);
260
- const r = mt("dialog.writeWarnings.title"), n = t.getFormat(), s = (n ? (await F.getWriteFormats({ search: n }))[0] : void 0)?.description ?? n ?? "", l = mt("dialog.writeWarnings.keep");
260
+ const r = gt("dialog.writeWarnings.title"), n = t.getFormat(), s = (n ? (await F.getWriteFormats({ search: n }))[0] : void 0)?.description ?? n ?? "", l = gt("dialog.writeWarnings.keep");
261
261
  return o ? "Save" === await i.showOptions({
262
262
  title: r,
263
263
  type: q.Warning,
264
- description: `${mt("dialog.writeWarnings.confirm", { format: s })}\n\n${l}`,
264
+ description: `${gt("dialog.writeWarnings.confirm", { format: s })}\n\n${l}`,
265
265
  options: [{
266
266
  id: "Save",
267
- label: () => mt("dialog.save")
267
+ label: () => gt("dialog.save")
268
268
  }, "Cancel"],
269
269
  defaultOption: "Cancel"
270
- }) && (a = await i?.showBusy?.(mt("workbook.saving", { name: t?.getName() ?? "" })), !0) : (i.showOptions({
270
+ }) && (a = await i?.showBusy?.(gt("workbook.saving", { name: t?.getName() ?? "" })), !0) : (i.showOptions({
271
271
  title: r,
272
272
  type: q.Warning,
273
- description: `${mt("dialog.writeWarnings.saved", { format: s })}\n\n${l}`,
273
+ description: `${gt("dialog.writeWarnings.saved", { format: s })}\n\n${l}`,
274
274
  options: ["Ok"]
275
275
  }), !0);
276
276
  })
277
277
  };
278
278
  let l;
279
279
  if (o) {
280
- const o = e.getOrigin(), r = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${n || o.getName() || mt("workbook.defaultName")}.${r}`;
280
+ const o = e.getOrigin(), r = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${n || o.getName() || gt("workbook.defaultName")}.${r}`;
281
281
  l = await F.writeAs(e, a, {
282
282
  ...s,
283
283
  prompt: !0
@@ -291,14 +291,14 @@ function Tt(e, t) {
291
291
  e?.source ? t && p ? await p({
292
292
  url: e.source,
293
293
  title: e.title
294
- }) : Et(e.source, e.title) : t ? r({}) : Et();
294
+ }) : Tt(e.source, e.title) : t ? r({}) : Tt();
295
295
  } }), e.updateCommand("closeWorkbook", { callback: async () => {
296
296
  a() && "Close" !== await i.showOptions({
297
- title: mt("dialog.confirm.title"),
298
- description: mt("dialog.unsavedChanges"),
297
+ title: gt("dialog.confirm.title"),
298
+ description: gt("dialog.unsavedChanges"),
299
299
  options: [{
300
300
  id: "Close",
301
- label: () => mt("dialog.close")
301
+ label: () => gt("dialog.close")
302
302
  }, "Cancel"],
303
303
  defaultOption: "Cancel"
304
304
  }) || window.close();
@@ -319,13 +319,13 @@ function Tt(e, t) {
319
319
  for (const o of t) {
320
320
  const t = o.key;
321
321
  e.updateCommand(`saveWorkbookAs${t}`, {
322
- label: () => mt("command.saveAsFormat.label", { format: o.description }),
322
+ label: () => gt("command.saveAsFormat.label", { format: o.description }),
323
323
  groupLabels: {
324
- workbook: () => mt("command.saveAsFormat.workbook", { format: o.description }),
325
- saveWorkbookOptions: () => mt("command.saveAsFormat.compact", { format: o.description })
324
+ workbook: () => gt("command.saveAsFormat.workbook", { format: o.description }),
325
+ saveWorkbookOptions: () => gt("command.saveAsFormat.compact", { format: o.description })
326
326
  },
327
327
  tags: o.tags,
328
- description: () => mt("command.saveAsFormat", { format: o.description }),
328
+ description: () => gt("command.saveAsFormat", { format: o.description }),
329
329
  icon: "CSV" === t ? "FileDownloadAsCSV" : "Excel" === t ? "FileDownloadAsExcel" : "FileDownloadAsSheet",
330
330
  callback: () => {
331
331
  r(t);
@@ -353,7 +353,7 @@ function Tt(e, t) {
353
353
  autoSelect: e === i.length - 1
354
354
  }).getEntireRange().copyFrom(t.getEntireRange());
355
355
  }
356
- }, ut("op.importData")), a.close();
356
+ }, mt("op.importData")), a.close();
357
357
  } catch (e) {
358
358
  i.showError(e);
359
359
  }
@@ -364,7 +364,7 @@ function Tt(e, t) {
364
364
  let t = e;
365
365
  if (t || F.canRead() || (t = await (async () => {
366
366
  const e = await F.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
367
- return at.openFileDialog(t.length ? t.join(",") : "*.*");
367
+ return it.openFileDialog(t.length ? t.join(",") : "*.*");
368
368
  })(), t)) return m(t);
369
369
  }
370
370
  }), e.updateCommand("insertDataFromURL", {
@@ -372,14 +372,14 @@ function Tt(e, t) {
372
372
  callback: async (e) => {
373
373
  if (!e) {
374
374
  const t = await i.showInput({
375
- title: mt("dialog.importFromWeb.title"),
376
- description: mt("dialog.importFromWeb.description"),
377
- inputLabel: mt("dialog.webAddress.inputLabel"),
378
- initialValue: "https://www.sheetxl.com/docs/examples/financial-calculators.xlsx",
375
+ title: gt("dialog.importFromWeb.title"),
376
+ description: gt("dialog.importFromWeb.description"),
377
+ inputLabel: gt("dialog.webAddress.inputLabel"),
378
+ initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
379
379
  propsInput: { style: { minWidth: "440px" } },
380
380
  options: [{
381
381
  id: "Import",
382
- label: () => mt("dialog.import")
382
+ label: () => gt("dialog.import")
383
383
  }]
384
384
  });
385
385
  if ("Import" !== t.option) return;
@@ -396,11 +396,11 @@ function Tt(e, t) {
396
396
  }
397
397
  }), u) {
398
398
  const t = async () => !a() || "Open" === await i.showOptions({
399
- title: mt("dialog.confirm.title"),
400
- description: mt("dialog.unsavedChanges"),
399
+ title: gt("dialog.confirm.title"),
400
+ description: gt("dialog.unsavedChanges"),
401
401
  options: [{
402
402
  id: "Open",
403
- label: () => mt("dialog.open")
403
+ label: () => gt("dialog.open")
404
404
  }, "Cancel"],
405
405
  defaultOption: "Cancel"
406
406
  }), n = async (e = null) => {
@@ -423,14 +423,14 @@ function Tt(e, t) {
423
423
  const r = "string" == typeof e ? void 0 : e?.title;
424
424
  if (!o) {
425
425
  const e = await i.showInput({
426
- title: mt("dialog.openFromWeb.title"),
427
- description: mt("dialog.openFromWeb.description"),
428
- inputLabel: mt("dialog.webAddress.inputLabel"),
429
- initialValue: "https://www.sheetxl.com/docs/examples/financial-calculators.xlsx",
426
+ title: gt("dialog.openFromWeb.title"),
427
+ description: gt("dialog.openFromWeb.description"),
428
+ inputLabel: gt("dialog.webAddress.inputLabel"),
429
+ initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
430
430
  propsInput: { style: { minWidth: "440px" } },
431
431
  options: [{
432
432
  id: "Open",
433
- label: () => mt("dialog.open")
433
+ label: () => gt("dialog.open")
434
434
  }]
435
435
  });
436
436
  if ("Open" !== e.option) return;
@@ -450,9 +450,9 @@ function Tt(e, t) {
450
450
  l = !0, s && (s.current = null);
451
451
  };
452
452
  }
453
- var Ft = Re(dt("studio:shortcutKeysDialog", () => import("./CyafafEgfmjLqE5O.mjs")).load);
454
- f(), y();
455
- var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
453
+ var It = Ae(pt("studio:shortcutKeysDialog", () => import("./DGDHFK8okuVbRCe5.mjs")).load);
454
+ k(), y();
455
+ var Pt = /* @__PURE__ */ new Set(["ui"]), Rt = (e) => {
456
456
  const t = (e) => {
457
457
  if ("function" != typeof e) return e;
458
458
  try {
@@ -462,9 +462,9 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
462
462
  }
463
463
  }, o = (e, o) => {
464
464
  const r = t(e);
465
- return "string" == typeof r ? pt(r, o, it.getActive()) : void 0;
465
+ return "string" == typeof r ? ut(r, o, st.getActive()) : void 0;
466
466
  }, r = [];
467
- for (const n of e.names()) if (!It.has(n)) for (const a of e.keys(n)) {
467
+ for (const n of e.names()) if (!Pt.has(n)) for (const a of e.keys(n)) {
468
468
  const i = e.resolveDefinition(n, a);
469
469
  r.push({
470
470
  groupKey: n,
@@ -479,22 +479,22 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
479
479
  });
480
480
  }
481
481
  return { getAllCommands: () => r };
482
- }, Rt = (e) => {
483
- const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = z.useCommandScope(), c = se(), { showModal: d } = Le(), p = pe(), u = we(a);
482
+ }, At = (e) => {
483
+ const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = z.useCommandScope(), c = le(), { showModal: d } = Oe(), p = ue(), u = xe(a);
484
484
  u.current = a;
485
- const m = oe(() => {
485
+ const m = re(() => {
486
486
  const e = l?.getRoot().getRegistry();
487
487
  if (!e) return;
488
- const t = d(Ft, {
488
+ const t = d(It, {
489
489
  title: p("dialog.shortcutKeys.title"),
490
- commands: Pt(e),
490
+ commands: Rt(e),
491
491
  onDone: () => t.hide(),
492
492
  onLoadError: (e) => {
493
493
  t.destroy(), c.showError(e);
494
494
  }
495
495
  });
496
496
  }, [l, d]);
497
- be(() => {
497
+ ye(() => {
498
498
  if (!l) return;
499
499
  const e = l.getRoot().contribution();
500
500
  return function(e, t) {
@@ -510,8 +510,8 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
510
510
  } });
511
511
  }(e, { showShortcuts: m }), () => e.remove();
512
512
  }, [l, m]);
513
- const g = ot("(prefers-color-scheme: dark)"), { themeMode: h } = ce(), [f, k] = le(T.Mode, E[T.Mode]), [b, y] = le(T.DarkGrid, E[T.DarkGrid]), [w, x] = le(T.DarkImages, E[T.DarkImages]);
514
- be(() => {
513
+ const g = rt("(prefers-color-scheme: dark)"), { themeMode: h } = de(), [f, k] = ce(T.Mode, E[T.Mode]), [b, y] = ce(T.DarkGrid, E[T.DarkGrid]), [w, x] = ce(T.DarkImages, E[T.DarkImages]);
514
+ ye(() => {
515
515
  if (!l) return;
516
516
  const e = l.getRoot().contribution();
517
517
  return function(e, t) {
@@ -552,10 +552,10 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
552
552
  y,
553
553
  x
554
554
  ]);
555
- const [v, C] = le(G.Active, null), [D, S] = xe(() => it.getActive());
556
- be(() => it.addChangeListener(S), []), be(() => {
557
- v && v !== it.getActive() && it.setActive(v);
558
- }, [v]), be(() => {
555
+ const [v, C] = ce(G.Active, null), [D, S] = ve(() => st.getActive());
556
+ ye(() => st.addChangeListener(S), []), ye(() => {
557
+ v && v !== st.getActive() && st.setActive(v);
558
+ }, [v]), ye(() => {
559
559
  if (!l) return;
560
560
  const e = l.getRoot().contribution();
561
561
  return function(e, t) {
@@ -576,14 +576,14 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
576
576
  D,
577
577
  C
578
578
  ]);
579
- const W = ye(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: F, isFullscreenEnabled: I, toggleFullscreen: P } = re({ target: W });
580
- be(() => {
579
+ const W = we(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: F, isFullscreenEnabled: I, toggleFullscreen: P } = ne({ target: W });
580
+ ye(() => {
581
581
  if (!l) return;
582
582
  const e = l.getRoot().contribution();
583
583
  return function(e, t) {
584
584
  e.updateCommand("fullScreenToggle", {
585
585
  state: t.isFullscreenEnabled,
586
- disabledReasons: t.isFullscreenAvailable ? [] : [ut("reason.fullscreenUnavailable")],
586
+ disabledReasons: t.isFullscreenAvailable ? [] : [mt("reason.fullscreenUnavailable")],
587
587
  icon: t.isFullscreenEnabled ? "FullScreenOff" : "FullScreen",
588
588
  callback: () => {
589
589
  t.toggleFullscreen();
@@ -601,7 +601,7 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
601
601
  P
602
602
  ]);
603
603
  const R = B(!0);
604
- return be(() => {
604
+ return ye(() => {
605
605
  if (!l) return;
606
606
  const e = l.getRoot().contribution();
607
607
  return function(e, t) {
@@ -612,9 +612,9 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
612
612
  }
613
613
  });
614
614
  }(e, (e, t) => R.activate(e, t)), () => e.remove();
615
- }, [l, R]), be(() => {
615
+ }, [l, R]), ye(() => {
616
616
  if (!l || !o) return;
617
- const e = l.getRoot().contribution(), t = Tt(e, {
617
+ const e = l.getRoot().contribution(), t = Ft(e, {
618
618
  workbook: o,
619
619
  setWorkbook: r,
620
620
  workbookTitle: n ?? void 0,
@@ -634,9 +634,9 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
634
634
  i
635
635
  ]), t;
636
636
  };
637
- Rt.displayName = "StudioCommandProvider";
638
- var At = ({ renderWorkbook: e }) => {
639
- const t = z.useCommandResolver(), o = we(null), r = pe(), [n, a] = xe(null), i = ke((e) => {
637
+ At.displayName = "StudioCommandProvider";
638
+ var jt = ({ renderWorkbook: e }) => {
639
+ const t = z.useCommandResolver(), o = xe(null), r = ue(), [n, a] = ve(null), i = be((e) => {
640
640
  const o = e.dataTransfer;
641
641
  if (t && o) {
642
642
  if ("dragenter" === e.type || "dragover" === e.type) {
@@ -653,7 +653,7 @@ var At = ({ renderWorkbook: e }) => {
653
653
  }
654
654
  e.preventDefault();
655
655
  }
656
- }, [t]), s = oe((e) => {
656
+ }, [t]), s = re((e) => {
657
657
  e.preventDefault();
658
658
  const r = n;
659
659
  if (a(null), r && t && (e.stopPropagation(), e.dataTransfer.files && e.dataTransfer.files.length > 0)) {
@@ -683,10 +683,10 @@ var At = ({ renderWorkbook: e }) => {
683
683
  n ? n.then((e) => t.execute("openWorkbook", "file" === e?.kind ? e : r)).catch(() => t.execute("openWorkbook", r)) : t.execute("openWorkbook", r);
684
684
  }
685
685
  }
686
- }, [t, n]), l = ye(() => {
686
+ }, [t, n]), l = we(() => {
687
687
  if (!n) return null;
688
688
  const e = "insertImage" === n;
689
- return Be(Ke, {
689
+ return _e(Ve, {
690
690
  className: "drop-overlay",
691
691
  sx: {
692
692
  position: "absolute",
@@ -697,12 +697,12 @@ var At = ({ renderWorkbook: e }) => {
697
697
  display: "flex",
698
698
  justifyContent: "center",
699
699
  alignItems: "center",
700
- backgroundColor: (e) => tt(e.palette.primary.main, .46),
700
+ backgroundColor: (e) => ot(e.palette.primary.main, .46),
701
701
  outline: (e) => `2px dashed ${e.palette.primary.main}`,
702
702
  outlineOffset: "-6px",
703
703
  borderRadius: 2
704
704
  },
705
- children: _e(Xe, {
705
+ children: Ke(Ye, {
706
706
  elevation: 6,
707
707
  sx: {
708
708
  display: "flex",
@@ -714,11 +714,11 @@ var At = ({ renderWorkbook: e }) => {
714
714
  color: "text.primary",
715
715
  "& .drop-overlay-icon": { color: "primary.main" }
716
716
  },
717
- children: [Be(U, {
717
+ children: [_e(U, {
718
718
  iconKey: e ? "InsertImage" : "FileOpen",
719
719
  className: "drop-overlay-icon",
720
720
  size: 32
721
- }), Be(et, {
721
+ }), _e(tt, {
722
722
  variant: "h6",
723
723
  component: "span",
724
724
  children: r(e ? "drop.insertImage" : "drop.open")
@@ -726,7 +726,7 @@ var At = ({ renderWorkbook: e }) => {
726
726
  })
727
727
  });
728
728
  }, [n, r]);
729
- return _e($e, { children: [e({
729
+ return Ke(Be, { children: [e({
730
730
  ref: o,
731
731
  onDragStart: (e) => {
732
732
  if (e.target.src) {
@@ -739,48 +739,48 @@ var At = ({ renderWorkbook: e }) => {
739
739
  onDragOver: i,
740
740
  onDrop: s
741
741
  }), l] });
742
- }, jt = fe((e) => {
742
+ }, Nt = ke((e) => {
743
743
  const { workbook: t, setWorkbook: o, refDocumentTitle: r, titleWorkbook: n, setWorkbookTitle: a, isDirty: i, initialCommandAnchor: s, renderWorkbook: l, refSave: c, host: d } = e;
744
- return Be(x, {
744
+ return _e(x, {
745
745
  initialAnchor: s,
746
- children: Be(Rt, {
746
+ children: _e(At, {
747
747
  workbook: t,
748
748
  setWorkbook: o,
749
749
  workbookTitle: n,
750
750
  isDirty: i,
751
751
  refSave: c,
752
752
  fullscreenTarget: d,
753
- children: Be(At, { renderWorkbook: l })
753
+ children: _e(jt, { renderWorkbook: l })
754
754
  })
755
755
  });
756
756
  });
757
- jt.displayName = "CommandsWrapper";
758
- var Nt = {
759
- sort: dt("studio:sortDialog", () => import("./XEDcegsv5AGKBfu2.mjs")).load,
760
- hyperlink: dt("studio:hyperlinkDialog", () => import("./B0bdb_6p7fQI_ivo.mjs")).load,
761
- find: dt("studio:findReplaceWindow", () => import("./DMXLxp3T0E0SRTQc.mjs")).load,
762
- tableNew: dt("studio:tableNewDialog", () => import("./4HmLH0bPVJCZLgik.mjs")).load,
763
- namedDetails: dt("studio:namedReferenceDialog", () => import("./3WghtBXAvCDwcVrq.mjs")).load,
764
- insertFunction: dt("studio:insertFunctionDialog", () => import("./CYIoK22I6Yvv12_x.mjs")).load,
765
- resizeHeader: dt("studio:resizeHeaderDialog", () => import("./CjC6s3RUJQNCF7mP.mjs")).load,
766
- outlineSettings: dt("studio:outlineSettingsDialog", () => import("./DdEzhVqYTrGODXrz.mjs")).load,
767
- fillSeries: dt("studio:fillSeriesDialog", () => import("./1bf4gn-2vld4BZ9u.mjs")).load,
768
- workbookStatistics: dt("studio:workbookStatisticsDialog", () => import("./DWqvf4H5F2wMnZ0L.mjs")).load,
769
- password: dt("studio:passwordDialog", () => import("./D-xqQ5qOSd6WrzwJ.mjs")).load
770
- }, Mt = ["find"], Lt = fe((e) => {
771
- const { children: t } = e, o = yt(), r = o ? o.enqueueSnackbar : () => {}, n = o ? o.closeSnackbar : () => {}, a = we(/* @__PURE__ */ new Set()), i = we(null), s = we(null), [l, c] = xe({
757
+ Nt.displayName = "CommandsWrapper";
758
+ var Mt = {
759
+ sort: pt("studio:sortDialog", () => import("./BBGoyqs2L_ccSH1e.mjs")).load,
760
+ hyperlink: pt("studio:hyperlinkDialog", () => import("./CyuOE595I2e-U4cG.mjs")).load,
761
+ find: pt("studio:findReplaceWindow", () => import("./B8Ls4Eh1k8-Yiry_.mjs")).load,
762
+ tableNew: pt("studio:tableNewDialog", () => import("./Cq53M7bAUSXMNq1f.mjs")).load,
763
+ namedDetails: pt("studio:namedReferenceDialog", () => import("./B9X3n8MglL4OitAV.mjs")).load,
764
+ insertFunction: pt("studio:insertFunctionDialog", () => import("./DsNYnq4NtYBxPmeA.mjs")).load,
765
+ resizeHeader: pt("studio:resizeHeaderDialog", () => import("./di_8-pXh90j4BO4j.mjs")).load,
766
+ outlineSettings: pt("studio:outlineSettingsDialog", () => import("./ZzvsynJTCSuChYS-.mjs")).load,
767
+ fillSeries: pt("studio:fillSeriesDialog", () => import("./Cr8AYWUoU-XVt0hu.mjs")).load,
768
+ workbookStatistics: pt("studio:workbookStatisticsDialog", () => import("./DQaGPUYbgL4Y5YZW.mjs")).load,
769
+ password: pt("studio:passwordDialog", () => import("./D72CupF9mfy2D1Xa.mjs")).load
770
+ }, Lt = ["find"], Ot = ke((e) => {
771
+ const { children: t } = e, o = wt(), r = o ? o.enqueueSnackbar : () => {}, n = o ? o.closeSnackbar : () => {}, a = xe(/* @__PURE__ */ new Set()), i = xe(null), s = xe(null), [l, c] = ve({
772
772
  label: null,
773
773
  progress: null
774
- }), d = pe(), p = nt.EmptyObject, u = Me(p), m = Oe(p), g = Ne(p), h = we(!1);
775
- be(() => {
774
+ }), d = ue(), p = at.EmptyObject, u = Le(p), m = $e(p), g = Me(p), h = xe(!1);
775
+ ye(() => {
776
776
  if (h.current) return;
777
777
  h.current = !0;
778
778
  const e = window, t = e.requestIdleCallback ?? ((e) => setTimeout(e, 500)), o = e.cancelIdleCallback ?? clearTimeout, r = t(() => {
779
- for (const e of Mt) u(e, Nt[e], { prewarm: !0 }).catch(() => {});
779
+ for (const e of Lt) u(e, Mt[e], { prewarm: !0 }).catch(() => {});
780
780
  });
781
781
  return () => o(r);
782
782
  }, []);
783
- const f = we(/* @__PURE__ */ new Set()), k = ye(() => {
783
+ const f = xe(/* @__PURE__ */ new Set()), k = we(() => {
784
784
  const e = (e, t) => {
785
785
  if (t?.onceKey) {
786
786
  if (f.current.has(t.onceKey)) return;
@@ -795,9 +795,9 @@ var Nt = {
795
795
  },
796
796
  preventDuplicate: t?.preventDuplicate,
797
797
  persist: t?.persist ?? t?.type === q.Error,
798
- action: (e) => Be(qe, {
798
+ action: (e) => _e(Xe, {
799
799
  onClick: () => n(e),
800
- children: Be(U, { iconKey: "Cancel" })
800
+ children: _e(U, { iconKey: "Cancel" })
801
801
  })
802
802
  };
803
803
  t?.enqueueProps && Object.assign(o, t.enqueueProps), e || console.log("message is 'null'", t), r(e ?? "Alert", o);
@@ -810,8 +810,8 @@ var Nt = {
810
810
  ...t,
811
811
  label: e
812
812
  });
813
- const r = te(() => {
814
- a.current.delete(o) && (a.current.size > 0 || (Pe(i.current), s.current = null, c((e) => null === e.label && null === e.progress ? e : {
813
+ const r = oe(() => {
814
+ a.current.delete(o) && (a.current.size > 0 || (Re(i.current), s.current = null, c((e) => null === e.label && null === e.progress ? e : {
815
815
  label: null,
816
816
  progress: null
817
817
  })));
@@ -822,11 +822,11 @@ var Nt = {
822
822
  progress: o
823
823
  });
824
824
  }, (e) => {
825
- s.current = e, "string" == typeof e ? je(i.current, e) : c((t) => ({
825
+ s.current = e, "string" == typeof e ? Ne(i.current, e) : c((t) => ({
826
826
  ...t,
827
827
  label: e
828
828
  }));
829
- }), n = je(i.current, "string" == typeof e ? e : void 0);
829
+ }), n = Ne(i.current, "string" == typeof e ? e : void 0);
830
830
  return n ? n.then(() => r) : r;
831
831
  },
832
832
  showWindow: (e, t) => {
@@ -836,22 +836,22 @@ var Nt = {
836
836
  onKeyDown: (e) => {
837
837
  e.isDefaultPrevented() || e.isPropagationStopped() || o?.onKeyDown?.(e);
838
838
  }
839
- }, u(e, Nt[e], t);
839
+ }, u(e, Mt[e], t);
840
840
  },
841
841
  showOptions: m,
842
842
  showInput: g,
843
843
  showError: (t) => {
844
844
  let o, r = q.Error, n = d("error.unknown");
845
- "string" == typeof t ? n = t : t instanceof Error && (o = t, t.message && (n = d(t.message))), t instanceof ct && (r = q.Info), e(n, {
845
+ "string" == typeof t ? n = t : t instanceof Error && (o = t, t.message && (n = d(t.message))), t instanceof dt && (r = q.Info), e(n, {
846
846
  type: r,
847
847
  enqueueProps: { error: o }
848
848
  });
849
849
  }
850
850
  };
851
- }, [d]), b = ye(() => Be(ve, {
851
+ }, [d]), b = we(() => _e(Ce, {
852
852
  ref: i,
853
853
  autoStart: !1,
854
- icon: Be(Ce, { sx: {
854
+ icon: _e(De, { sx: {
855
855
  transform: "scale(0.7)",
856
856
  marginLeft: "-6px"
857
857
  } }),
@@ -868,19 +868,19 @@ var Nt = {
868
868
  pointerEvents: "none"
869
869
  }
870
870
  }), [l.label, l.progress]);
871
- return _e(Y, {
871
+ return Ke(Y, {
872
872
  notifier: k,
873
873
  children: [b, t]
874
874
  });
875
875
  });
876
- Lt.displayName = "StudioNotifierProvider";
877
- var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", $t = fe(ge((e, t) => {
878
- const { children: o, title: r, taskPanes: n, onSelect: a, selected: i, registry: s = v, style: l, iconsOnly: c, side: d = "right", className: p, ...u } = e, m = "right" !== d, g = ae(), h = ye(() => n.map((t) => {
876
+ Ot.displayName = "StudioNotifierProvider";
877
+ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", Bt = ke(he((e, t) => {
878
+ const { children: o, title: r, taskPanes: n, onSelect: a, selected: i, registry: s = v, style: l, iconsOnly: c, side: d = "right", className: p, ...u } = e, m = "right" !== d, g = ie(), h = we(() => n.map((t) => {
879
879
  const o = s.getRegisteredTaskPane(t);
880
880
  if (!o) return null;
881
881
  let r = o.getIcon?.();
882
- "string" == typeof r && (r = Be(U, { iconKey: r }));
883
- const n = t === i, a = r ? Be(Ke, {
882
+ "string" == typeof r && (r = _e(U, { iconKey: r }));
883
+ const n = t === i, a = r ? _e(Ve, {
884
884
  sx: {
885
885
  display: "inline-block",
886
886
  transform: m ? "rotate(-90deg)" : "rotate(90deg)",
@@ -888,20 +888,20 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
888
888
  color: (e) => e.palette.text.secondary
889
889
  },
890
890
  children: r
891
- }) : null, l = !r || !c && n, d = Be(Ke, {
891
+ }) : null, l = !r || !c && n, d = _e(Ve, {
892
892
  sx: {
893
893
  display: "grid",
894
894
  gridTemplateColumns: l ? "1fr" : "0fr",
895
895
  opacity: l ? 1 : 0,
896
896
  transition: (e) => e.transitions.create(["grid-template-columns", "opacity"], { duration: e.transitions.duration.short })
897
897
  },
898
- children: Be(Ke, {
898
+ children: _e(Ve, {
899
899
  sx: {
900
900
  overflow: "hidden",
901
901
  minWidth: 0,
902
902
  minHeight: 0
903
903
  },
904
- children: Be(et, {
904
+ children: _e(tt, {
905
905
  component: "div",
906
906
  sx: {
907
907
  textTransform: "none",
@@ -914,13 +914,13 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
914
914
  })
915
915
  })
916
916
  });
917
- return Be(Ze, {
917
+ return _e(Je, {
918
918
  value: t,
919
- label: Be(Te, {
919
+ label: _e(Fe, {
920
920
  disableInteractive: !0,
921
921
  title: o.getTitle() ?? "",
922
922
  placement: "left-start",
923
- children: _e(Ke, {
923
+ children: Ke(Ve, {
924
924
  sx: {
925
925
  padding: "0px 0px",
926
926
  writingMode: m ? "vertical-lr" : "vertical-rl",
@@ -940,7 +940,7 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
940
940
  minHeight: "0px",
941
941
  borderRadius: "4px"
942
942
  },
943
- className: gt("taskpane-strip-item", { "Mui-selected": n }),
943
+ className: ht("taskpane-strip-item", { "Mui-selected": n }),
944
944
  onClick: () => e.onSelect(t)
945
945
  }, t);
946
946
  }), [
@@ -951,8 +951,8 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
951
951
  m,
952
952
  c,
953
953
  g
954
- ]), f = ne(t, () => ({ isTaskPaneStrip: () => !0 }), []), k = ye(() => gt("taskpane-strip", p), [p]);
955
- return Be(Ke, {
954
+ ]), f = ae(t, () => ({ isTaskPaneStrip: () => !0 }), []), k = we(() => ht("taskpane-strip", p), [p]);
955
+ return _e(Ve, {
956
956
  ref: f,
957
957
  className: k,
958
958
  sx: {
@@ -962,7 +962,7 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
962
962
  ...l
963
963
  },
964
964
  ...u,
965
- children: Be(Je, {
965
+ children: _e(Qe, {
966
966
  orientation: "vertical",
967
967
  variant: "scrollable",
968
968
  value: i,
@@ -980,10 +980,10 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
980
980
  children: h
981
981
  })
982
982
  });
983
- })), Bt = (e) => {
984
- const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s = we(null), l = pe();
985
- return Be(Ge, {
986
- className: gt({ "Mui-selected": a }),
983
+ })), _t = (e) => {
984
+ const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s = xe(null), l = ue();
985
+ return _e(qe, {
986
+ className: ht({ "Mui-selected": a }),
987
987
  sx: {
988
988
  display: "flex",
989
989
  flex: "1 1 %0",
@@ -997,11 +997,11 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
997
997
  opacity: 1,
998
998
  transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
999
999
  },
1000
- backgroundColor: (e) => tt(e.palette.action.hover, .03),
1001
- borderBottom: `solid ${Ot} 1px`
1000
+ backgroundColor: (e) => ot(e.palette.action.hover, .03),
1001
+ borderBottom: `solid ${$t} 1px`
1002
1002
  },
1003
1003
  ...i,
1004
- children: _e(Ke, {
1004
+ children: Ke(Ve, {
1005
1005
  sx: {
1006
1006
  display: "flex",
1007
1007
  flex: "1 1 10%",
@@ -1012,15 +1012,15 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1012
1012
  marginLeft: (e) => e.spacing(1),
1013
1013
  marginRight: (e) => e.spacing(1)
1014
1014
  },
1015
- children: [Be(Ke, {
1015
+ children: [_e(Ve, {
1016
1016
  sx: {
1017
1017
  flex: "1 1 100%",
1018
1018
  paddingLeft: (e) => e.spacing(1)
1019
1019
  },
1020
1020
  children: t
1021
- }), Be(We, {
1021
+ }), _e(Ee, {
1022
1022
  label: l("taskPane.close"),
1023
- children: Be(qe, {
1023
+ children: _e(Xe, {
1024
1024
  "aria-label": "close",
1025
1025
  sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
1026
1026
  touchRippleRef: s,
@@ -1030,14 +1030,14 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1030
1030
  onPointerUp: () => {
1031
1031
  r();
1032
1032
  },
1033
- children: Be(U, { iconKey: "Close" })
1033
+ children: _e(U, { iconKey: "Close" })
1034
1034
  })
1035
1035
  })]
1036
1036
  })
1037
1037
  });
1038
- }, _t = ge((e, t) => {
1039
- const { model: o, side: r, ...n } = e, a = rt(), i = `solid ${Ot} 1px`, s = `${a.shape.borderRadius ?? 4}px`, l = `${a.spacing?.(.5) ?? 4}px`;
1040
- return Be(S, {
1038
+ }, Kt = he((e, t) => {
1039
+ const { model: o, side: r, ...n } = e, a = nt(), i = `solid ${$t} 1px`, s = `${a.shape.borderRadius ?? 4}px`, l = `${a.spacing?.(.5) ?? 4}px`;
1040
+ return _e(S, {
1041
1041
  model: o,
1042
1042
  ref: t,
1043
1043
  propsFrame: { style: {
@@ -1046,8 +1046,8 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1046
1046
  marginBottom: l
1047
1047
  } },
1048
1048
  alwaysShowStrip: !0,
1049
- componentTitle: Bt,
1050
- componentStrip: $t,
1049
+ componentTitle: _t,
1050
+ componentStrip: Bt,
1051
1051
  side: r,
1052
1052
  ...e,
1053
1053
  onOpen: () => {
@@ -1058,12 +1058,12 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1058
1058
  },
1059
1059
  ...n
1060
1060
  });
1061
- }), Kt = "_styled-resizer_fdl5y_3", Vt = {}, zt = {
1061
+ }), Vt = "_styled-resizer_fdl5y_3", zt = {}, Ht = {
1062
1062
  flex: "1 1 100%",
1063
1063
  display: "flex",
1064
1064
  boxSizing: "border-box"
1065
- }, Ht = fe(ge((e, t) => {
1066
- const { mainElement: o, sidebarElement: r, position: n, persistKey: a, onPositionChange: i, className: s, style: l, taskSide: c = "right", ...d } = e, [p, u] = le(a ?? null, Vt), m = rt(), [g, { width: h }] = ie(), f = h > 530 || 0 === h, k = we(null);
1065
+ }, Ut = ke(he((e, t) => {
1066
+ const { mainElement: o, sidebarElement: r, position: n, persistKey: a, onPositionChange: i, className: s, style: l, taskSide: c = "right", ...d } = e, [p, u] = ce(a ?? null, zt), m = nt(), [g, { width: h }] = se(), f = h > 530 || 0 === h, k = xe(null);
1067
1067
  let b, y, w = null, x = 4, v = 13;
1068
1068
  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);
1069
1069
  let C, D = o, S = r;
@@ -1103,23 +1103,23 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1103
1103
  minAfter: f ? "280px" : "120px",
1104
1104
  splitDirection: f ? "row" : "column"
1105
1105
  });
1106
- const A = ft([
1106
+ const A = kt([
1107
1107
  k,
1108
1108
  g,
1109
1109
  t
1110
1110
  ]);
1111
- return Be(Q, {
1111
+ return _e(ee, {
1112
1112
  ref: A,
1113
1113
  className: s,
1114
1114
  style: l ? {
1115
- ...zt,
1115
+ ...Ht,
1116
1116
  ...l
1117
- } : zt,
1117
+ } : Ht,
1118
1118
  ...d,
1119
1119
  ...C,
1120
1120
  onPositionChange: R,
1121
1121
  propsResizer: {
1122
- className: gt("styled-resizer", Kt),
1122
+ className: ht("styled-resizer", Vt),
1123
1123
  style: {
1124
1124
  minWidth: f ? "7px" : void 0,
1125
1125
  minHeight: f ? void 0 : "6px",
@@ -1134,15 +1134,15 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1134
1134
  propsPaneAfter: y
1135
1135
  });
1136
1136
  }));
1137
- Ht.displayName = "StudioSplitPane";
1138
- var Ut = () => Be("div", { style: {
1137
+ Ut.displayName = "StudioSplitPane";
1138
+ var Gt = () => _e("div", { style: {
1139
1139
  flex: "none",
1140
1140
  height: 0,
1141
1141
  borderTop: "solid var(--sxl-color-base-border, light-dark(rgba(0, 0, 0, 0.26), rgba(255, 255, 255, 0.3))) 1px"
1142
- } }), Gt = (e, t) => {
1143
- const o = (e) => Be(me.Fragment, { children: t[e] }, e);
1142
+ } }), qt = (e, t) => {
1143
+ const o = (e) => _e(ge.Fragment, { children: t[e] }, e);
1144
1144
  if ("bottom" === e) {
1145
- const e = t.statusBar && t.formulaBar ? Be(Ut, {}, "divider") : null;
1145
+ const e = t.statusBar && t.formulaBar ? _e(Gt, {}, "divider") : null;
1146
1146
  return [
1147
1147
  o("toolbar"),
1148
1148
  o("main"),
@@ -1157,18 +1157,18 @@ var Ut = () => Be("div", { style: {
1157
1157
  o("main"),
1158
1158
  o("statusBar")
1159
1159
  ];
1160
- }, qt = Ae(dt("studio:dataValidationDetailsTaskPane", () => import("./CvRbu8JPxFarsSR-.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load);
1160
+ }, Xt = je(pt("studio:dataValidationDetailsTaskPane", () => import("./dm8dmEaTIqfmgyeL.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load);
1161
1161
  l(), N("shape", {
1162
1162
  key: "changeShapeGallery",
1163
- render: (e) => Be(g, {
1163
+ render: (e) => _e(f, {
1164
1164
  ...e,
1165
1165
  commandKey: "changeShape",
1166
- excludeCategories: xt
1166
+ excludeCategories: vt
1167
1167
  })
1168
1168
  }, {
1169
1169
  order: -1,
1170
1170
  divider: "after"
1171
- }), j("shape", () => import("./BPzcW4BejRqso338.mjs").then((e) => e.ShapeFormatPanel)), j("chart", () => import("./zITjZ7R4raDqhP-n.mjs").then((e) => e.ChartFormatPanel)), N("picture", {
1171
+ }), j("shape", () => import("./Cfi_ly8fBDZZdiZT.mjs").then((e) => e.ShapeFormatPanel)), j("chart", () => import("./BLv99aovW4R3C5PE.mjs").then((e) => e.ChartFormatPanel)), N("picture", {
1172
1172
  key: "changePictureOptions",
1173
1173
  defaultKey: "changePictureFromFile",
1174
1174
  members: ["changePictureFromFile", "changePictureFromURL"]
@@ -1179,14 +1179,14 @@ l(), N("shape", {
1179
1179
  key: "dataValidationDetails",
1180
1180
  getTitle: () => "Data Validation",
1181
1181
  getIcon: () => "DataValidation",
1182
- component: qt
1182
+ component: Xt
1183
1183
  }, !0), v.registerTaskPane({
1184
1184
  key: "conditionalFormatDetails",
1185
1185
  getTitle: () => "Conditional Formatting",
1186
1186
  getIcon: () => "FormatPaint",
1187
- component: wt
1188
- }, !0), i(), a(), r(), t(), e(), n(), k();
1189
- var Xt = () => {
1187
+ component: xt
1188
+ }, !0), i(), a(), r(), t(), e(), n(), b();
1189
+ var Yt = () => {
1190
1190
  let e, t;
1191
1191
  const o = new Promise((o, r) => {
1192
1192
  e = o, t = r;
@@ -1201,66 +1201,66 @@ var Xt = () => {
1201
1201
  }
1202
1202
  };
1203
1203
  return o.catch(() => {}), r;
1204
- }, Yt = (e, t) => {
1204
+ }, Zt = (e, t) => {
1205
1205
  if (!e) return {};
1206
1206
  const { colorSchemes: o, ...r } = e, n = o?.[t ? "dark" : "light"];
1207
- return n && "object" == typeof n ? nt.deepMerge(r, n) : r;
1208
- }, Zt = "taskPanePosition", Jt = fe(ge((e, t) => {
1209
- const { host: r, scopeClass: n, square: a, elevation: i, variant: s, onWorkbookLoad: l, prefetch: g, onDocumentError: f, renderDocumentError: k = m, propsDocumentError: b, propsTaskPaneArea: y, renderTaskPaneArea: x = Qt, taskPaneSide: v = "right", onKeyDown: C, workbook: S, onWorkbookChange: j, logo: N, topLeft: B, topRight: q, muiTheme: Y, tokens: Q, cssBaseline: te, autoFocus: re = !1, title: ae, onDirtyChange: ie, propsDocumentTitle: se, renderDocumentLoading: pe = u, propsDocumentLoading: me, propsWorkbook: ge, showFormulaBar: he, propsFormulaBar: fe, renderFormulaBar: ve, formulaBarPlacement: Ce, manageVisualViewport: We = !0, editable: Te, showStatusBar: Fe, propsStatusBar: Pe, renderStatusBar: Re, propsToolbar: Ae, renderToolbar: je } = e, Ne = we(null), Me = we(null), Le = we(null), Oe = oe(() => {
1210
- Le.current?.getNamedCollectionEditorElement?.()?.focus?.();
1211
- }, []), Ve = ((e, t = "undefined" == typeof window ? "mouse" : Z.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(Ce), ze = "bottom" === Ve && We, He = ue(ze), Ge = He ? Math.max(0, Math.round(window.innerHeight - He.height)) : 0, qe = He ? Math.round(He.offsetTop) : 0, Ze = He?.height;
1212
- be(() => {
1213
- ze && void 0 !== Ze && (0 === window.scrollX && 0 === window.scrollY || window.scrollTo(0, 0));
1214
- }, [ze, Ze]);
1215
- const Je = oe(f ?? (() => {}), [f]), et = oe(ie ?? (() => {}), [ie]), tt = se?.placeHolder, [ot] = le(T.Mode, E[T.Mode]), { themeMode: rt } = ce({ mode: ot ?? void 0 }), [at] = le(G.Active, null), st = we(at);
1216
- st.current = at;
1217
- const lt = de(), ct = ye(() => ({
1218
- light: Ie(!1, nt.deepMerge(Yt(Y, !1), w(lt?.light))),
1219
- dark: Ie(!0, nt.deepMerge(Yt(Y, !0), w(lt?.dark)))
1207
+ return n && "object" == typeof n ? at.deepMerge(r, n) : r;
1208
+ }, Jt = "taskPanePosition", Qt = ke(he((e, t) => {
1209
+ const { host: r, scopeClass: n, square: a, elevation: i, variant: s, onWorkbookLoad: l, prefetch: m, onDocumentError: f, renderDocumentError: k = g, propsDocumentError: b, propsTaskPaneArea: y, renderTaskPaneArea: x = eo, taskPaneSide: v = "right", onKeyDown: C, workbook: S, onWorkbookChange: j, logo: N, topLeft: B, topRight: q, muiTheme: Y, tokens: ee, cssBaseline: oe, autoFocus: ne = !1, title: ie, onDirtyChange: se, propsDocumentTitle: le, renderDocumentLoading: ue = h, propsDocumentLoading: ge, propsWorkbook: he, showFormulaBar: fe, propsFormulaBar: ke, renderFormulaBar: Ce, formulaBarPlacement: De, manageVisualViewport: Ee = !0, editable: Fe, showStatusBar: Ie, propsStatusBar: Re, renderStatusBar: Ae, propsToolbar: je, renderToolbar: Ne } = e, Me = xe(null), Le = xe(null), Oe = xe(null), $e = re(() => {
1210
+ Oe.current?.getNamedCollectionEditorElement?.()?.focus?.();
1211
+ }, []), Be = ((e, t = "undefined" == typeof window ? "mouse" : Z.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(De), ze = "bottom" === Be && Ee, He = me(ze), Ue = He ? Math.max(0, Math.round(window.innerHeight - He.height)) : 0, qe = He ? Math.round(He.offsetTop) : 0, Xe = He?.height;
1212
+ ye(() => {
1213
+ ze && void 0 !== Xe && (0 === window.scrollX && 0 === window.scrollY || window.scrollTo(0, 0));
1214
+ }, [ze, Xe]);
1215
+ const Je = re(f ?? (() => {}), [f]), Qe = re(se ?? (() => {}), [se]), tt = le?.placeHolder, [ot] = ce(T.Mode, E[T.Mode]), { themeMode: rt } = de({ mode: ot ?? void 0 }), [nt] = ce(G.Active, null), it = xe(nt);
1216
+ it.current = nt;
1217
+ const lt = pe(), ct = we(() => ({
1218
+ light: Pe(!1, at.deepMerge(Zt(Y, !1), w(lt?.light))),
1219
+ dark: Pe(!0, at.deepMerge(Zt(Y, !0), w(lt?.dark)))
1220
1220
  }), [
1221
1221
  Y,
1222
1222
  lt?.light,
1223
1223
  lt?.dark
1224
- ]), dt = "dark" === rt, pt = ye(() => p(ct.light, ct.dark, `.${n}`, Q), [
1224
+ ]), dt = "dark" === rt, pt = we(() => d(ct.light, ct.dark, `.${n}`, ee), [
1225
1225
  ct,
1226
1226
  n,
1227
- Q
1228
- ]), ut = ye(() => P("sxl-defaults", `.${n}`), [n]), mt = M(), [gt, ft] = xe(() => S ?? null);
1229
- be(() => {
1230
- ft(S ?? null);
1227
+ ee
1228
+ ]), ut = we(() => P("sxl-defaults", `.${n}`), [n]), mt = M(), [gt, ht] = ve(() => S ?? null);
1229
+ ye(() => {
1230
+ ht(S ?? null);
1231
1231
  }, [S]);
1232
- const [kt, yt] = xe(0), wt = we(null);
1233
- wt.current || (wt.current = Xt());
1232
+ const [kt, bt] = ve(0), wt = xe(null);
1233
+ wt.current || (wt.current = Yt());
1234
1234
  const xt = $(gt, {
1235
1235
  io: F,
1236
1236
  defaultTheme: mt.getDefaultTheme(),
1237
1237
  reloadKey: kt
1238
- }), vt = "loaded" === xt.status ? xt.workbook : null, Dt = ye(() => "error" === xt.status ? {
1238
+ }), vt = "loaded" === xt.status ? xt.workbook : null, Ct = we(() => "error" === xt.status ? {
1239
1239
  status: "error",
1240
1240
  error: xt.error
1241
1241
  } : "loaded" === xt.status ? {
1242
1242
  status: "loaded",
1243
1243
  workbook: xt.workbook
1244
1244
  } : { status: "loading" }, [xt]);
1245
- be(() => {
1246
- wt.current.settled && (wt.current = Xt());
1247
- }, [gt, kt]), be(() => {
1248
- if ("loaded" === Dt.status) {
1249
- const e = wt.current, t = Dt.workbook;
1245
+ ye(() => {
1246
+ wt.current.settled && (wt.current = Yt());
1247
+ }, [gt, kt]), ye(() => {
1248
+ if ("loaded" === Ct.status) {
1249
+ const e = wt.current, t = Ct.workbook;
1250
1250
  t.whenFontsReady().then(() => e.resolve(t), () => e.resolve(t));
1251
- } else "error" === Dt.status && (Je?.(Dt.error), wt.current.reject(Dt.error));
1252
- }, [Dt]);
1253
- const [St, Et] = xe(null);
1254
- vt && !St && Et(vt);
1255
- const Tt = vt && St && vt !== St ? vt : null, Ft = we(Tt);
1251
+ } else "error" === Ct.status && (Je?.(Ct.error), wt.current.reject(Ct.error));
1252
+ }, [Ct]);
1253
+ const [St, Wt] = ve(null);
1254
+ vt && !St && Wt(vt);
1255
+ const Tt = vt && St && vt !== St ? vt : null, Ft = xe(Tt);
1256
1256
  Ft.current = Tt;
1257
- const It = we(St);
1257
+ const It = xe(St);
1258
1258
  It.current = St;
1259
- const Pt = we([]), Rt = ke((e) => {
1259
+ const Pt = xe([]), Rt = be((e) => {
1260
1260
  const t = It.current;
1261
- t && Pt.current.push(t), ft(e);
1261
+ t && Pt.current.push(t), ht(e);
1262
1262
  }, []);
1263
- be(() => {
1263
+ ye(() => {
1264
1264
  const e = Pt.current;
1265
1265
  if (0 !== e.length) {
1266
1266
  Pt.current = e.filter((e) => e === St);
@@ -1274,75 +1274,75 @@ var Xt = () => {
1274
1274
  }
1275
1275
  }
1276
1276
  }, [St]);
1277
- const At = Te ? null : St, Nt = O(), Mt = ye(() => {
1277
+ const At = Fe ? null : St, jt = O(), Mt = we(() => {
1278
1278
  const e = At?.getSelectedWorksheet() ?? At?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
1279
- return e ? R(e, { referenceMode: Nt }) : null;
1280
- }, [At, Nt]), Ot = Te ?? Mt, $t = we(Ot);
1281
- $t.current = Ot, be(() => {
1282
- if (!Ot) return;
1283
- let e = Ot.getSession();
1284
- return Ot.subscribe(() => {
1279
+ return e ? R(e, { referenceMode: jt }) : null;
1280
+ }, [At, jt]), Lt = Fe ?? Mt, $t = xe(Lt);
1281
+ $t.current = Lt, ye(() => {
1282
+ if (!Lt) return;
1283
+ let e = Lt.getSession();
1284
+ return Lt.subscribe(() => {
1285
1285
  const t = e;
1286
- e = Ot.getSession(), t && !e && "formula-bar" === t.getActiveEditorId() && Le.current?.contains?.(document.activeElement) && Ne.current?.focus();
1286
+ e = Lt.getSession(), t && !e && "formula-bar" === t.getActiveEditorId() && Oe.current?.contains?.(document.activeElement) && Me.current?.focus();
1287
1287
  });
1288
- }, [Ot]);
1289
- const Bt = K(St), { isDirty: _t, saveState: Kt } = V(St, F), Vt = _(St), zt = we(Kt), Ut = we(null);
1288
+ }, [Lt]);
1289
+ const Bt = K(St), { isDirty: _t, saveState: Kt } = V(St, F), Vt = _(St), zt = xe(Kt), Ht = xe(null);
1290
1290
  zt.current = Kt;
1291
- const qt = ke(() => zt.current?.isDirty() ?? !1, []), Jt = we(Dt);
1292
- Jt.current = Dt;
1293
- const [eo, to] = xe(null), oo = ae ?? se?.title, [ro, no] = xe(null);
1294
- be(() => {
1291
+ const Gt = be(() => zt.current?.isDirty() ?? !1, []), Xt = xe(Ct);
1292
+ Xt.current = Ct;
1293
+ const [Qt, to] = ve(null), oo = ie ?? le?.title, [ro, no] = ve(null);
1294
+ ye(() => {
1295
1295
  no(null);
1296
1296
  }, [St]);
1297
1297
  const ao = oo ?? ro ?? Bt ?? "";
1298
- be(() => {
1299
- et?.(_t);
1298
+ ye(() => {
1299
+ Qe?.(_t);
1300
1300
  }, [_t]);
1301
- const io = oe(j ?? (() => {}), [j]);
1302
- be(() => {
1301
+ const io = re(j ?? (() => {}), [j]);
1302
+ ye(() => {
1303
1303
  io?.(vt);
1304
1304
  }, [vt]);
1305
- const so = we(vt);
1305
+ const so = xe(vt);
1306
1306
  so.current = vt, L(St, "onViewChange");
1307
- const lo = ye(() => Be(De, {
1307
+ const lo = we(() => _e(Se, {
1308
1308
  groupKey: "helpOptions",
1309
1309
  disableHover: !0,
1310
1310
  sx: { padding: "0" },
1311
1311
  propsButton: { sx: { maxHeight: "22px" } }
1312
- }), []), [co, po] = xe(null), uo = ke((e) => {
1312
+ }), []), [co, po] = ve(null), uo = be((e) => {
1313
1313
  po(e);
1314
1314
  }, []);
1315
- be(() => {
1315
+ ye(() => {
1316
1316
  H.prefetch([H.getActive(), D]).catch((e) => {
1317
1317
  console.warn("Icons could not be loaded:", e);
1318
1318
  });
1319
1319
  }, []);
1320
- const mo = we(null);
1321
- mo.current || (mo.current = Xt());
1322
- const go = we(null), ho = ke(() => go.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? mo.current.promise, []), fo = oe(async (e) => {
1323
- const t = st.current;
1324
- t && t !== it.getActive() && await it.setActive(t), await z.DefaultCommandCatalogService.prefetch(t ?? void 0), to(e), go.current = e.source, mo.current.settled || mo.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
1325
- }, []), ko = we(null), bo = ke((e) => {
1320
+ const mo = xe(null);
1321
+ mo.current || (mo.current = Yt());
1322
+ const go = xe(null), ho = be(() => go.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? mo.current.promise, []), fo = re(async (e) => {
1323
+ const t = it.current;
1324
+ t && t !== st.getActive() && await st.setActive(t), await z.DefaultCommandCatalogService.prefetch(t ?? void 0), to(e), go.current = e.source, mo.current.settled || mo.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
1325
+ }, []), ko = xe(null), bo = be((e) => {
1326
1326
  let t = null, r = {
1327
1327
  readOnly: !0,
1328
- ...se
1328
+ ...le
1329
1329
  };
1330
- return se?.hidden || (t = Be(o, {
1330
+ return le?.hidden || (t = _e(o, {
1331
1331
  ...r,
1332
1332
  style: {
1333
1333
  maxWidth: "100%",
1334
- ...se?.style
1334
+ ...le?.style
1335
1335
  },
1336
- workbook: e.workbook ?? Ne.current,
1336
+ workbook: e.workbook ?? Me.current,
1337
1337
  ref: ko,
1338
1338
  title: ao,
1339
1339
  modified: _t,
1340
1340
  encrypted: Vt,
1341
1341
  placeHolder: tt,
1342
1342
  onTitleChange: (e) => {
1343
- no(e), se?.onTitleChange?.(e);
1343
+ no(e), le?.onTitleChange?.(e);
1344
1344
  }
1345
- })), Be(Wt, {
1345
+ })), _e(Et, {
1346
1346
  ...e,
1347
1347
  logo: N,
1348
1348
  mainElement: t,
@@ -1354,25 +1354,25 @@ var Xt = () => {
1354
1354
  ao,
1355
1355
  _t,
1356
1356
  Vt,
1357
- se,
1357
+ le,
1358
1358
  B,
1359
1359
  q
1360
1360
  ]);
1361
- be(() => {
1362
- const e = Ne.current;
1361
+ ye(() => {
1362
+ const e = Me.current;
1363
1363
  if (!e) return;
1364
1364
  const t = (t) => {
1365
- (t.ctrlKey || t.metaKey || "native" !== J.getWheelOwner(t, e)) && t.preventDefault();
1365
+ (t.ctrlKey || t.metaKey || "native" !== Q.getWheelOwner(t, e)) && t.preventDefault();
1366
1366
  };
1367
1367
  return e.addEventListener("wheel", t, { passive: !1 }), () => {
1368
1368
  e.removeEventListener("wheel", t);
1369
1369
  };
1370
- }, [eo]);
1371
- const [yo, wo] = xe(null);
1372
- be(() => {
1373
- wo(eo?.source?.getCommandScope?.() ?? null);
1374
- }, [eo]);
1375
- const xo = ye(() => ({
1370
+ }, [Qt]);
1371
+ const [yo, wo] = ve(null);
1372
+ ye(() => {
1373
+ wo(Qt?.source?.getCommandScope?.() ?? null);
1374
+ }, [Qt]);
1375
+ const xo = we(() => ({
1376
1376
  "& .SnackbarContainer-root": { position: "absolute !important" },
1377
1377
  "& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
1378
1378
  "& .notistack-Snackbar": { minWidth: "unset" },
@@ -1385,11 +1385,11 @@ var Xt = () => {
1385
1385
  whiteSpace: "pre-wrap"
1386
1386
  },
1387
1387
  "*": { userSelect: "none" }
1388
- }), []), [vo, Co] = xe(null), [, Do] = le(null, !1);
1389
- be(() => {
1388
+ }), []), [vo, Co] = ve(null), [, Do] = ce(null, !1);
1389
+ ye(() => {
1390
1390
  Do(null != vo);
1391
1391
  }, [vo, Do]);
1392
- const So = ke((e) => x({
1392
+ const So = be((e) => x({
1393
1393
  model: St,
1394
1394
  side: v,
1395
1395
  ...e,
@@ -1398,42 +1398,45 @@ var Xt = () => {
1398
1398
  St,
1399
1399
  v,
1400
1400
  y
1401
- ]), Wo = we(r);
1402
- Wo.current = r, ne(t, () => ({
1401
+ ]), Wo = xe(r);
1402
+ Wo.current = r, ae(t, () => ({
1403
1403
  isStudioElement: () => !0,
1404
1404
  save: (e) => {
1405
- const t = Ut.current;
1405
+ const t = Ht.current;
1406
1406
  return t ? t(e) : Promise.reject(/* @__PURE__ */ new Error("The studio cannot save: no workbook, or the backing store cannot write."));
1407
1407
  },
1408
- getWorkbookElement: () => Ne.current,
1408
+ getWorkbookElement: () => Me.current,
1409
1409
  getWorkbook: () => so.current ?? null,
1410
1410
  isDirty: () => zt.current?.isDirty() ?? !1,
1411
1411
  getEditable: () => $t.current,
1412
- getFormulaBarElement: () => Le.current ?? null,
1413
- focus: () => Ne.current?.focus(),
1414
- whenReady: () => (wt.current || (wt.current = Xt()), wt.current.promise),
1415
- getWorkbookState: () => Jt.current,
1416
- retry: () => yt((e) => e + 1)
1412
+ getFormulaBarElement: () => Oe.current ?? null,
1413
+ focus: () => Me.current?.focus(),
1414
+ whenReady: () => (wt.current || (wt.current = Yt()), wt.current.promise),
1415
+ getWorkbookState: () => Xt.current,
1416
+ retry: () => bt((e) => e + 1)
1417
1417
  }), [], r);
1418
- const Eo = we(!1), To = oe((e, t) => {
1418
+ const Eo = xe(!1), To = re((e, t) => {
1419
1419
  t === Ft.current && requestAnimationFrame(() => requestAnimationFrame(() => {
1420
- t === Ft.current && (Eo.current = Wo.current?.contains(document.activeElement) ?? !0, Et(t), fo(e));
1420
+ t === Ft.current && (Eo.current = Wo.current?.contains(document.activeElement) ?? !0, Wt(t), fo(e));
1421
1421
  }));
1422
1422
  }, []);
1423
- be(() => {
1424
- Eo.current && (Eo.current = !1, Ne.current?.focus());
1423
+ ye(() => {
1424
+ Eo.current && (Eo.current = !1, Me.current?.focus());
1425
1425
  }, [St]);
1426
- const Fo = ke(() => Be($e, {}), []), Io = ke((e) => {
1427
- const { ref: t, ...o } = e, r = dt ? ct.dark : ct.light, n = "error" === Dt.status ? k({
1428
- ...b,
1429
- style: {
1430
- width: "100%",
1431
- height: "100%",
1432
- ...b?.style
1433
- },
1434
- error: Dt.error
1426
+ const Fo = be((e) => {
1427
+ const { ref: t, ...o } = e, r = dt ? ct.dark : ct.light, n = "error" === Ct.status && k ? _e(J, {
1428
+ render: k,
1429
+ props: {
1430
+ ...b,
1431
+ style: {
1432
+ width: "100%",
1433
+ height: "100%",
1434
+ ...b?.style
1435
+ },
1436
+ error: Ct.error
1437
+ }
1435
1438
  }) : null;
1436
- if (n && !St) return Be(Xe, {
1439
+ if (n && !St) return _e(Ye, {
1437
1440
  style: {
1438
1441
  width: "100%",
1439
1442
  height: "100%",
@@ -1446,57 +1449,66 @@ var Xt = () => {
1446
1449
  });
1447
1450
  let l = null;
1448
1451
  if (St) {
1449
- const e = St, n = e.getView(), a = he ?? n?.isShowFormulaBar(), i = Fe ?? n?.isShowStatusBar(), s = eo?.source ?? Ne.current, p = (je ?? bo)({
1450
- workbook: s,
1451
- ...Ae
1452
- }), u = "bottom" === Ve, m = a ? (ve ?? h)({
1453
- ref: Le,
1454
- style: {
1455
- marginTop: r.spacing(u ? .5 : .25),
1456
- marginLeft: r.spacing(1),
1457
- marginRight: r.spacing(1),
1458
- marginBottom: r.spacing(u ? .5 : .75)
1459
- },
1460
- workbook: e,
1461
- editable: Ot ?? void 0,
1462
- placement: Ve,
1463
- ...fe,
1464
- propsNamedCollectionEditor: {
1465
- restoreFocus: (e) => s?.focus(e),
1466
- ...fe?.propsNamedCollectionEditor
1452
+ const e = St, n = e.getView(), a = fe ?? n?.isShowFormulaBar(), i = Ie ?? n?.isShowStatusBar(), s = Qt?.source ?? Me.current, d = _e(J, {
1453
+ render: void 0 === Ne ? bo : Ne,
1454
+ props: {
1455
+ workbook: s,
1456
+ ...je
1457
+ }
1458
+ }), g = "bottom" === Be, h = a ? _e(J, {
1459
+ render: void 0 === Ce ? p : Ce,
1460
+ props: {
1461
+ ref: Oe,
1462
+ style: {
1463
+ marginTop: r.spacing(g ? .5 : .25),
1464
+ marginLeft: r.spacing(1),
1465
+ marginRight: r.spacing(1),
1466
+ marginBottom: r.spacing(g ? .5 : .75)
1467
+ },
1468
+ workbook: e,
1469
+ editable: Lt ?? void 0,
1470
+ placement: Be,
1471
+ ...ke,
1472
+ propsNamedCollectionEditor: {
1473
+ restoreFocus: (e) => s?.focus(e),
1474
+ ...ke?.propsNamedCollectionEditor
1475
+ }
1476
+ }
1477
+ }) : null, f = i ? _e(J, {
1478
+ render: void 0 === Ae ? u : Ae,
1479
+ props: {
1480
+ childrenEnd: lo,
1481
+ ...Re
1467
1482
  }
1468
- }) : null, f = i ? (Re ?? d)({
1469
- childrenEnd: lo,
1470
- ...Pe
1471
- }) : null, k = (e, r) => Be(c, {
1472
- ...ge,
1483
+ }) : null, k = (e, r) => _e(c, {
1484
+ ...he,
1473
1485
  tabIndex: 0,
1474
- autoFocus: !r && re,
1486
+ autoFocus: !r && ne,
1475
1487
  workbook: e,
1476
- editable: r ? void 0 : Ot ?? void 0,
1477
- focusNameBox: r ? void 0 : Oe,
1478
- prefetch: !r && g,
1479
- ref: r ? Me : ht([t, Ne]),
1488
+ editable: r ? void 0 : Lt ?? void 0,
1489
+ focusNameBox: r ? void 0 : $e,
1490
+ prefetch: !r && m,
1491
+ ref: r ? Le : ft([t, Me]),
1480
1492
  onWorkbookLoad: r ? (t) => To(t, e) : fo,
1481
1493
  onKeyDown: (e) => {
1482
1494
  C?.(e);
1483
1495
  },
1484
- propsWorkbookLoading: me,
1485
- renderWorkbookLoading: Fo,
1496
+ propsWorkbookLoading: ge,
1497
+ renderWorkbookLoading: null,
1486
1498
  style: r ? {
1487
- ...ge?.style,
1499
+ ...he?.style,
1488
1500
  position: "absolute",
1489
1501
  inset: 0,
1490
1502
  visibility: "hidden"
1491
1503
  } : {
1492
1504
  flex: "1 1 100%",
1493
1505
  minHeight: 0,
1494
- ...ge?.style
1506
+ ...he?.style
1495
1507
  },
1496
1508
  onContextMenu: (e) => e.preventDefault(),
1497
1509
  ...r ? null : o
1498
1510
  }, e.getId());
1499
- l = Be("div", {
1511
+ l = _e("div", {
1500
1512
  style: {
1501
1513
  display: "flex",
1502
1514
  flexDirection: "column",
@@ -1508,18 +1520,18 @@ var Xt = () => {
1508
1520
  windowText: r.palette.text.primary
1509
1521
  })
1510
1522
  },
1511
- children: Gt(Ve, {
1512
- toolbar: p,
1513
- formulaBar: m,
1523
+ children: qt(Be, {
1524
+ toolbar: d,
1525
+ formulaBar: h,
1514
1526
  statusBar: f,
1515
- main: Be(Ht, {
1527
+ main: _e(Ut, {
1516
1528
  taskSide: v,
1517
- persistKey: Zt,
1518
- sidebarElement: vo ? Be(z.CommandScopeProvider, {
1529
+ persistKey: Jt,
1530
+ sidebarElement: vo ? _e(z.CommandScopeProvider, {
1519
1531
  scope: yo,
1520
1532
  children: vo
1521
1533
  }) : void 0,
1522
- mainElement: _e("div", {
1534
+ mainElement: Ke("div", {
1523
1535
  style: {
1524
1536
  position: "relative",
1525
1537
  display: "flex",
@@ -1528,7 +1540,7 @@ var Xt = () => {
1528
1540
  minWidth: 0,
1529
1541
  minHeight: 0
1530
1542
  },
1531
- children: [[k(St, !1), Tt ? k(Tt, !0) : null], Be(Ke, {
1543
+ children: [[k(St, !1), Tt ? k(Tt, !0) : null], _e(Ve, {
1532
1544
  ref: uo,
1533
1545
  sx: {
1534
1546
  position: "absolute",
@@ -1545,12 +1557,15 @@ var Xt = () => {
1545
1557
  })
1546
1558
  });
1547
1559
  }
1548
- const p = eo ? null : pe({ ...me });
1549
- return _e(Xe, {
1560
+ const d = !Qt && ue ? _e(J, {
1561
+ render: ue,
1562
+ props: { ...ge }
1563
+ }) : null;
1564
+ return Ke(Ye, {
1550
1565
  sx: xo,
1551
1566
  style: {
1552
1567
  width: "100%",
1553
- height: Ge ? `calc(100% - ${Ge}px)` : "100%",
1568
+ height: Ue ? `calc(100% - ${Ue}px)` : "100%",
1554
1569
  transform: qe ? `translateY(${qe}px)` : void 0,
1555
1570
  overscrollBehavior: ze ? "none" : void 0,
1556
1571
  position: "absolute",
@@ -1565,7 +1580,7 @@ var Xt = () => {
1565
1580
  variant: s,
1566
1581
  children: [
1567
1582
  l,
1568
- n ? Be(Xe, {
1583
+ n ? _e(Ye, {
1569
1584
  style: {
1570
1585
  position: "absolute",
1571
1586
  inset: 0,
@@ -1575,7 +1590,7 @@ var Xt = () => {
1575
1590
  },
1576
1591
  children: n
1577
1592
  }) : null,
1578
- p ? Be("div", {
1593
+ d ? _e("div", {
1579
1594
  style: {
1580
1595
  position: "absolute",
1581
1596
  inset: 0,
@@ -1584,20 +1599,19 @@ var Xt = () => {
1584
1599
  justifyContent: "center",
1585
1600
  background: `var(--sxl-color-base-100, ${dt ? "#121212" : "#fff"})`
1586
1601
  },
1587
- children: p
1602
+ children: d
1588
1603
  }) : null
1589
1604
  ]
1590
1605
  });
1591
1606
  }, [
1592
- Dt,
1607
+ Ct,
1593
1608
  St,
1594
1609
  Tt,
1595
- eo,
1610
+ Qt,
1596
1611
  ao,
1597
- pe,
1598
- me,
1599
- Fo,
1612
+ ue,
1600
1613
  ge,
1614
+ he,
1601
1615
  a,
1602
1616
  i,
1603
1617
  s,
@@ -1609,23 +1623,23 @@ var Xt = () => {
1609
1623
  vo,
1610
1624
  v,
1611
1625
  yo,
1612
- he,
1613
1626
  fe,
1614
- ve,
1615
- Ve,
1616
- Ot,
1617
- Fe,
1618
- Pe,
1627
+ ke,
1628
+ Ce,
1629
+ Be,
1630
+ Lt,
1631
+ Ie,
1619
1632
  Re,
1620
1633
  Ae,
1621
1634
  je,
1635
+ Ne,
1622
1636
  ze,
1623
- Ge,
1637
+ Ue,
1624
1638
  qe,
1625
1639
  ct,
1626
1640
  dt
1627
1641
  ]);
1628
- let Po = Be(bt, {
1642
+ let Io = _e(yt, {
1629
1643
  maxSnack: 3,
1630
1644
  domRoot: co ?? void 0,
1631
1645
  anchorOrigin: {
@@ -1634,56 +1648,56 @@ var Xt = () => {
1634
1648
  },
1635
1649
  autoHideDuration: 3500,
1636
1650
  onClose: (e, t, o) => {
1637
- Ne.current?.focus();
1651
+ Me.current?.focus();
1638
1652
  },
1639
- Components: { error: Ct },
1653
+ Components: { error: Dt },
1640
1654
  iconVariant: {
1641
- success: Be(Ye, {
1655
+ success: _e(Ze, {
1642
1656
  style: { marginRight: "8px" },
1643
- children: Be("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" })
1657
+ children: _e("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" })
1644
1658
  }),
1645
- error: Be(U, {
1659
+ error: _e(U, {
1646
1660
  iconKey: "ErrorAlert",
1647
1661
  style: { marginRight: "8px" }
1648
1662
  })
1649
1663
  },
1650
- children: Be(I, {
1664
+ children: _e(I, {
1651
1665
  workbook: St,
1652
- children: Be(W, {
1666
+ children: _e(W, {
1653
1667
  renderArea: So,
1654
1668
  onUpdateArea: (e) => {
1655
1669
  Co(e);
1656
1670
  },
1657
- children: Be(Ee, { children: Be(Lt, { children: Be(ee, { children: Be(X, { children: Be(jt, {
1671
+ children: _e(Te, { children: _e(Ot, { children: _e(te, { children: _e(X, { children: _e(Nt, {
1658
1672
  workbook: St,
1659
1673
  initialCommandAnchor: ho,
1660
- renderWorkbook: Io,
1674
+ renderWorkbook: Fo,
1661
1675
  setWorkbook: Rt,
1662
1676
  titleWorkbook: ao,
1663
1677
  setWorkbookTitle: no,
1664
1678
  refDocumentTitle: ko,
1665
- isDirty: qt,
1666
- refSave: Ut,
1679
+ isDirty: Gt,
1680
+ refSave: Ht,
1667
1681
  host: r
1668
1682
  }) }) }) }) })
1669
1683
  })
1670
1684
  })
1671
1685
  });
1672
- return Po = _e(Qe, {
1686
+ return Io = Ke(et, {
1673
1687
  theme: dt ? ct.dark : ct.light,
1674
1688
  children: [
1675
- te ? Be(Ue, {}) : null,
1676
- Be("style", { children: pt }),
1677
- Be("style", { children: ut }),
1678
- Be(Se, {
1689
+ oe ? _e(Ge, {}) : null,
1690
+ _e("style", { children: pt }),
1691
+ _e("style", { children: ut }),
1692
+ _e(We, {
1679
1693
  themeScopeClass: n,
1680
1694
  themeSurface: "app",
1681
1695
  themeMode: rt,
1682
- children: Po
1696
+ children: Io
1683
1697
  })
1684
1698
  ]
1685
- }), Po;
1699
+ }), Io;
1686
1700
  }));
1687
- Jt.displayName = "EagerStudio";
1688
- var Qt = (e) => Be(_t, { ...e });
1689
- export { Jt as EagerStudio, Jt as default };
1701
+ Qt.displayName = "EagerStudio";
1702
+ var eo = (e) => _e(Kt, { ...e });
1703
+ export { Qt as EagerStudio, Qt as default };