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

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 (101) hide show
  1. package/browser/esm/{7fVZXXuonYb6Z7FU.mjs → 6QDKC3DXaJjdTQvn.mjs} +3 -3
  2. package/browser/esm/{2nRxqrNYbmEn8fS8.mjs → B8-aNCyDzXh-3BnN.mjs} +5 -5
  3. package/browser/esm/{D5N4nGaZsXtrHAOh.mjs → BEjT3zSht5iH93uB.mjs} +3 -3
  4. package/browser/esm/{C29TKq47CbXs652l.mjs → BKB6y-l1USxdLM8V.mjs} +2 -2
  5. package/browser/esm/{DHZA48ZMCETvHmeP.mjs → BKE2ez65WLb02bOy.mjs} +1 -1
  6. package/browser/esm/{CMc7G7cevxzPGxr9.mjs → BOKRcLS0QikMyoWf.mjs} +2 -2
  7. package/browser/esm/{D5Fn0Hqllwv5HY6i.mjs → BTH-nzAPniB6G4TG.mjs} +69 -48
  8. package/browser/esm/{lKXEDVt2ow1NlWJj.mjs → Bbvx7IiwR5jW-Hwu.mjs} +6 -6
  9. package/browser/esm/{CFIAWgpU3UyepLBn.mjs → BgYy8t04q74BFK5_.mjs} +4 -4
  10. package/browser/esm/{D0slJycx3nq53qmf.mjs → BniGX5aeZXM9zMWH.mjs} +1 -1
  11. package/browser/esm/{BHGr2gsFofTdAFxq.mjs → BsxCXTfNJhFrldW9.mjs} +4 -4
  12. package/browser/esm/{CjYKDxU4EP2Kf_vo.mjs → BwbheU7gonBpE9Bs.mjs} +2 -2
  13. package/browser/esm/{BpVrgbVISiTDyFR3.mjs → BzLjlI67XDv3JcvA.mjs} +2 -2
  14. package/browser/esm/{tIKqpsA0vNXH9EgU.mjs → C3KoAU2WKPxC5-u7.mjs} +1 -1
  15. package/browser/esm/{0IBZhOJaVmzJxuTv.mjs → C9HzAN75sBq35kZg.mjs} +1 -1
  16. package/browser/esm/{BKhcJI-G15D3kGap.mjs → CMbJhvtUGfi-wQ3o.mjs} +2 -2
  17. package/browser/esm/{DaxpbAF1ShkT7hNU.mjs → CQd6qQ6b5R96lYkQ.mjs} +5 -5
  18. package/browser/esm/{WIhvQtBkGiw-oFUs.mjs → CYDqU_DnwM2dkv3O.mjs} +174 -133
  19. package/browser/esm/{D7AqPfyhMiuda5l5.mjs → CYNVxcg3QJ1RHCwS.mjs} +2 -2
  20. package/browser/esm/{Yjq3p_7eVGFw2Jod.mjs → CcyyIgMejaWOK8qw.mjs} +3 -3
  21. package/browser/esm/{u84rSnESjxqB6gay.mjs → CkmieJ2_aHVESg8Q.mjs} +1 -1
  22. package/browser/esm/{DX2_vf7WX6uRLaOZ.mjs → CtVEsNpA7LivARDl.mjs} +1 -1
  23. package/browser/esm/{NeGeLF3gbGMZyV6E.mjs → CyRZCFT_uVfmLkoB.mjs} +1 -1
  24. package/browser/esm/{BAzhmMX4Fk_qnUTp.mjs → D2KYXweAKTJVnLbt.mjs} +5 -5
  25. package/browser/esm/{CBzXksWnb-1gGEWZ.mjs → D9KI3TDs1Ed_en8o.mjs} +1 -1
  26. package/browser/esm/{oC0OwOddhOD0OoCJ.mjs → DAX7uqV05BahXHL1.mjs} +2 -2
  27. package/browser/esm/{BnkwC5rsg9LZyhoP.mjs → DFEz0RMRQrGo3tWC.mjs} +2 -2
  28. package/browser/esm/{CJD4jF4m9cBGHzr_.mjs → DLP2vkb2VDlGGA1A.mjs} +1 -1
  29. package/browser/esm/{C8p2iMad_NNCwGI_.mjs → DSIQFoVhlKSPzucu.mjs} +2 -2
  30. package/browser/esm/{CeF35ZeFP28Do5Zx.mjs → DWUrXikL8TyDNRrI.mjs} +6 -6
  31. package/browser/esm/{BZqwbIE8qzjSOYcJ.mjs → DYypTSo0adN5dUTS.mjs} +3 -3
  32. package/browser/esm/{DtTDaXmnWUoG4VBO.mjs → D_x6k92V4etahUtS.mjs} +2 -2
  33. package/browser/esm/{Db3oHfXiRtcH015t.mjs → DeSHnKGHmL3Lwl6t.mjs} +2 -2
  34. package/browser/esm/{Cq82lvdjyBvlJ8xJ.mjs → DkRUwiADZvoEL2xg.mjs} +1 -1
  35. package/browser/esm/{BWfLpYmd3cSgJ0C6.mjs → DlGOcFqQzrYB9wiZ.mjs} +4 -4
  36. package/browser/esm/{Dt47Huh1l3C4_5_w.mjs → DvDPtmuD-1bVFXhc.mjs} +1 -1
  37. package/browser/esm/{D2jzliMwAo2ENpfi.mjs → DyKgCJS1jQMxcPFF.mjs} +1 -1
  38. package/browser/esm/{BSv9MVJaz1DVEffm.mjs → ERVyjcGWX4mUl1p_.mjs} +4 -4
  39. package/browser/esm/{CYtULLhY9M2m3DeH.mjs → H8Dxocn689KdLYhD.mjs} +1 -1
  40. package/browser/esm/{DuuyN4-7K6_io2Py.mjs → LF4eGB9EZ_W6kUXC.mjs} +2 -2
  41. package/browser/esm/{PY3Br5Bo_TxcCnCU.mjs → PSYAcayGMjkZauMz.mjs} +2 -2
  42. package/browser/esm/{WgIvwAENeO8LANax.mjs → TT3Q8r0Jww_zZmNv.mjs} +2 -2
  43. package/browser/esm/{Cvk2yY90hpgXWMAt.mjs → UMji8dlv0GKyfjRw.mjs} +1 -1
  44. package/browser/esm/UWvqHAyCVY3D-8Pk.mjs +242 -0
  45. package/browser/esm/{BsngRDhvVYGVBJeK.mjs → aNYq27kJA5RA4L_0.mjs} +4 -4
  46. package/browser/esm/{BGL3x0W74D7qZXlf.mjs → dn1AnYOyR4bZamV4.mjs} +3 -3
  47. package/browser/esm/{BZy9xUrYpAtnKeji.mjs → eKakg1lFqn9dZkOO.mjs} +8 -8
  48. package/browser/esm/index.mjs +16 -16
  49. package/browser/esm/{BNbub9weuqm3mcoF.mjs → jbPNLnRSS8Xt5_Zd.mjs} +4 -4
  50. package/browser/esm/{BpJsBv413cNQpyg0.mjs → oj398-Nn8Gb8Cmu7.mjs} +3 -3
  51. package/browser/esm/{CuRxFAO42JkQvMEx.mjs → qyIg2o8AfCcwCuVZ.mjs} +1 -1
  52. package/browser/esm/{DtPt0phL7m56YfHZ.mjs → w9rl3kS5ehDc2U18.mjs} +1 -1
  53. package/node/esm/{C4F6WY8M4nkLyxdb.mjs → A-6VdAxUYuVCsS80.mjs} +2 -2
  54. package/node/esm/{CgKa6JuyJ1tTodev.mjs → BN5K-JWYdHJtnF5G.mjs} +171 -130
  55. package/node/esm/{CKWeipCqqpLnLE5e.mjs → BRSLQ_UNOJKAWRUq.mjs} +2 -2
  56. package/node/esm/{BqVxnA1mo52ubjdf.mjs → BVCjSh6m3Z_Cd6DD.mjs} +2 -2
  57. package/node/esm/{Cq53M7bAUSXMNq1f.mjs → BVyN4cLnT2ii1GMj.mjs} +1 -1
  58. package/node/esm/{BLv99aovW4R3C5PE.mjs → BWG2FA3rbsOsBHQM.mjs} +3 -3
  59. package/node/esm/{B8Ls4Eh1k8-Yiry_.mjs → BZVe_afv1tfvExD6.mjs} +1 -1
  60. package/node/esm/{DsNYnq4NtYBxPmeA.mjs → BiBMdXkWOUHZpWcb.mjs} +1 -1
  61. package/node/esm/{Cr8AYWUoU-XVt0hu.mjs → Bj-UqmrrHdVSX4vS.mjs} +1 -1
  62. package/node/esm/{fmya3XQnTGyQisvT.mjs → Blxb1C2eUbWoXcsl.mjs} +1 -1
  63. package/node/esm/{C3FCh9xju2SccUIE.mjs → BmySpSgR3H6eUK0L.mjs} +2 -2
  64. package/node/esm/{DJpwI8PlKBI2rk0r.mjs → C86bIpa86VUEVY3_.mjs} +2 -2
  65. package/node/esm/CVeYUjvKIc1XuPC1.mjs +242 -0
  66. package/node/esm/{BBGoyqs2L_ccSH1e.mjs → Cg1eqOYlWMCprF6j.mjs} +2 -2
  67. package/node/esm/{zGAcd4Jr7wkvXDBS.mjs → CksDVaPvtllTUe7F.mjs} +1 -1
  68. package/node/esm/{Cfi_ly8fBDZZdiZT.mjs → D0HpdVWcePBpfQHX.mjs} +3 -3
  69. package/node/esm/{BUGU_5lUtnCRlp3n.mjs → DEK0D7wAs-O0YMBq.mjs} +2 -2
  70. package/node/esm/{CTnVNfz4eqFnM92M.mjs → DFZctv5meqoQLuQF.mjs} +1 -1
  71. package/node/esm/{M7YxvRPGCuxuk9aK.mjs → DQ9BkHy3YgoLqyAw.mjs} +1 -1
  72. package/node/esm/{D72CupF9mfy2D1Xa.mjs → DTtGcAuClHgv-5s6.mjs} +1 -1
  73. package/node/esm/{dm8dmEaTIqfmgyeL.mjs → DcUXYRkJLeQFybOy.mjs} +2 -2
  74. package/node/esm/{di_8-pXh90j4BO4j.mjs → DjB5CHk5N8mYRiAW.mjs} +1 -1
  75. package/node/esm/{wB8xMpyJ_NvE16yG.mjs → DopRYDglwpRFuZ9y.mjs} +2 -2
  76. package/node/esm/{Dz0Hg87UcJ-awwiI.mjs → E3iNwBp5FzwRWhBH.mjs} +2 -2
  77. package/node/esm/{DQaGPUYbgL4Y5YZW.mjs → Mm5HFZHyaIJ5EfYO.mjs} +1 -1
  78. package/node/esm/{QNjtpX8rIpqGGLEJ.mjs → VLp3LfRG5Njlf4Mp.mjs} +2 -2
  79. package/node/esm/{DGDHFK8okuVbRCe5.mjs → YTiLYQEQ-ST2j-Yd.mjs} +1 -1
  80. package/node/esm/{ZzvsynJTCSuChYS-.mjs → h5Tt_pl2Dpa9vaR-.mjs} +1 -1
  81. package/node/esm/index.mjs +243 -222
  82. package/node/esm/{gPYAb_A0T5ZwcQ1E.mjs → nVZW0-P7DISm9GFM.mjs} +1 -1
  83. package/node/esm/{DygDgOpa9sJ6YFVS.mjs → sKA_898BrWm-kfiS.mjs} +1 -1
  84. package/node/esm/{B9X3n8MglL4OitAV.mjs → uySjOpgLC6iCqgC-.mjs} +1 -1
  85. package/node/esm/{BalROFG_oa9PFs9Q.mjs → xw7vek0VNw7ofbq1.mjs} +2 -2
  86. package/node/esm/{DJFkALt4XrwkMbnU.mjs → zZTOpRFxWBgeZTpk.mjs} +1 -1
  87. package/package.json +9 -9
  88. package/resources/locales/de/groups.cmd.json +12 -1
  89. package/resources/locales/en/groups.cmd.json +12 -1
  90. package/types/src/conditions/MembershipOption.d.ts +1 -1
  91. package/types/src/conditions/SelectorSelect.d.ts +1 -1
  92. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +1 -1
  93. package/types/src/dialog/HyperlinkDialog.d.ts +15 -0
  94. package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +1 -1
  95. package/types/src/filter/ColumnMenu.d.ts +1 -1
  96. package/types/src/shape/ShapeGalleryCommandButton.d.ts +18 -0
  97. package/types/src/shape/ShapePlugin.d.ts +2 -0
  98. package/types/src/shape/index.d.ts +1 -1
  99. package/browser/esm/jFRFCWlkD7Dsrhkh.mjs +0 -236
  100. package/node/esm/CyuOE595I2e-U4cG.mjs +0 -236
  101. package/types/src/shape/InsertShapeCommandButton.d.ts +0 -20
@@ -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.12
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.13
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
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
- 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, 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";
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 A, buildOOXMLThemeCSS as P, createEditable as I, createSystemColorVars as R, registerMovablePane as j, registerMovableToolbarEntry as N, useDocThemes as O, useModelSync as M, useReferenceModeStore as L, useResolvedWorkbook as $, useTaskPaneArea as B, useWorkbookEncrypted as _, useWorkbookName as K, useWorkbookSaveState as H } from "@sheetxl/react";
9
+ import { Command as V, DefaultIconService as z, 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
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";
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 Ae, createExhibitTheme as Pe, hideLoadingPanel as Ie, lazyModal as Re, lazyPanel as je, showLoadingPanel as Ne, useInputDialog as Oe, useLazyWindow as Me, useModal as Le, useOptionsDialog as $e } from "@sheetxl/utils-mui";
12
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";
13
+ import { Box as He, Card as Ve, CardActions as ze, 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
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
15
  import ht from "clsx";
16
16
  import { mergeRefs as ft, useMergeRefs as kt } from "react-merge-refs";
17
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 = {
18
+ var xt = je(pt("studio:conditionalFormatDetailsTaskPane", () => import("./BmySpSgR3H6eUK0L.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",
@@ -35,14 +35,14 @@ var xt = je(pt("studio:conditionalFormatDetailsTaskPane", () => import("./C3FCh9
35
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
37
  className: ht(Ct.root, "error-snackbar"),
38
- children: Ke(ze, {
38
+ children: Ke(Ve, {
39
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: [Ke(He, {
45
+ children: [Ke(ze, {
46
46
  className: Ct.actionRoot,
47
47
  children: [
48
48
  i ? null : n?.error,
@@ -81,7 +81,7 @@ var xt = je(pt("studio:conditionalFormatDetailsTaskPane", () => import("./C3FCh9
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: _e(Ie, {
84
+ children: _e(Ae, {
85
85
  error: a,
86
86
  hideLineNumbers: !0
87
87
  })
@@ -96,7 +96,7 @@ var St = () => {
96
96
  return _e(Ee, {
97
97
  label: "SheetXL",
98
98
  description: e("logo.description"),
99
- children: _e(Ve, {
99
+ children: _e(He, {
100
100
  component: "a",
101
101
  href: "https://www.sheetxl.com",
102
102
  target: "_blank",
@@ -121,13 +121,13 @@ var St = () => {
121
121
  c,
122
122
  t
123
123
  ]);
124
- return _e(Ve, {
124
+ return _e(He, {
125
125
  ...l,
126
126
  ref: g,
127
127
  className: r,
128
128
  children: m({
129
129
  isCompact: p,
130
- wrapperSelect: (e) => Ke(Ve, {
130
+ wrapperSelect: (e) => Ke(He, {
131
131
  sx: {
132
132
  display: "grid",
133
133
  gridTemplateColumns: "1fr auto 1fr",
@@ -138,7 +138,7 @@ var St = () => {
138
138
  paddingRight: (e) => e.spacing(1)
139
139
  },
140
140
  children: [
141
- Ke(Ve, {
141
+ Ke(He, {
142
142
  sx: {
143
143
  display: "flex",
144
144
  flexDirection: "row",
@@ -146,7 +146,7 @@ var St = () => {
146
146
  justifyContent: "start",
147
147
  gap: (e) => e.spacing(.5)
148
148
  },
149
- children: [n, Ke(Ve, {
149
+ children: [n, Ke(He, {
150
150
  sx: {
151
151
  display: "flex",
152
152
  flexDirection: "row",
@@ -156,7 +156,7 @@ var St = () => {
156
156
  children: [i, e]
157
157
  })]
158
158
  }),
159
- _e(Ve, {
159
+ _e(He, {
160
160
  sx: {
161
161
  display: "flex",
162
162
  flexDirection: "row",
@@ -167,7 +167,7 @@ var St = () => {
167
167
  },
168
168
  children: a
169
169
  }),
170
- _e(Ve, {
170
+ _e(He, {
171
171
  sx: {
172
172
  display: "flex",
173
173
  alignItems: "center",
@@ -450,9 +450,9 @@ function Ft(e, t) {
450
450
  l = !0, s && (s.current = null);
451
451
  };
452
452
  }
453
- var It = Ae(pt("studio:shortcutKeysDialog", () => import("./DGDHFK8okuVbRCe5.mjs")).load);
453
+ var At = Re(pt("studio:shortcutKeysDialog", () => import("./YTiLYQEQ-ST2j-Yd.mjs")).load);
454
454
  k(), y();
455
- var Pt = /* @__PURE__ */ new Set(["ui"]), Rt = (e) => {
455
+ var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
456
456
  const t = (e) => {
457
457
  if ("function" != typeof e) return e;
458
458
  try {
@@ -474,20 +474,20 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), Rt = (e) => {
474
474
  getDescription: () => o(i?.description, i?.params) ?? "",
475
475
  getShortcut: () => t(i?.shortcut) ?? null,
476
476
  getScope: () => n,
477
- getScopeLabel: () => z.DefaultCommandCatalogService.getScopeLabel(n)
477
+ getScopeLabel: () => V.DefaultCommandCatalogService.getScopeLabel(n)
478
478
  }
479
479
  });
480
480
  }
481
481
  return { getAllCommands: () => r };
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);
482
+ }, Rt = (e) => {
483
+ const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = V.useCommandScope(), c = le(), { showModal: d } = Le(), p = ue(), u = xe(a);
484
484
  u.current = a;
485
485
  const m = re(() => {
486
486
  const e = l?.getRoot().getRegistry();
487
487
  if (!e) return;
488
- const t = d(It, {
488
+ const t = d(At, {
489
489
  title: p("dialog.shortcutKeys.title"),
490
- commands: Rt(e),
490
+ commands: It(e),
491
491
  onDone: () => t.hide(),
492
492
  onLoadError: (e) => {
493
493
  t.destroy(), c.showError(e);
@@ -576,7 +576,7 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), Rt = (e) => {
576
576
  D,
577
577
  C
578
578
  ]);
579
- const W = we(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: F, isFullscreenEnabled: I, toggleFullscreen: P } = ne({ target: W });
579
+ const W = we(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: F, isFullscreenEnabled: A, toggleFullscreen: P } = ne({ target: W });
580
580
  ye(() => {
581
581
  if (!l) return;
582
582
  const e = l.getRoot().contribution();
@@ -591,16 +591,16 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), Rt = (e) => {
591
591
  });
592
592
  }(e, {
593
593
  isFullscreenAvailable: F,
594
- isFullscreenEnabled: I,
594
+ isFullscreenEnabled: A,
595
595
  toggleFullscreen: P
596
596
  }), () => e.remove();
597
597
  }, [
598
598
  l,
599
599
  F,
600
- I,
600
+ A,
601
601
  P
602
602
  ]);
603
- const R = B(!0);
603
+ const I = B(!0);
604
604
  return ye(() => {
605
605
  if (!l) return;
606
606
  const e = l.getRoot().contribution();
@@ -611,8 +611,8 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), Rt = (e) => {
611
611
  t("manageProtection", { args: { tab: "workbook" } });
612
612
  }
613
613
  });
614
- }(e, (e, t) => R.activate(e, t)), () => e.remove();
615
- }, [l, R]), ye(() => {
614
+ }(e, (e, t) => I.activate(e, t)), () => e.remove();
615
+ }, [l, I]), ye(() => {
616
616
  if (!l || !o) return;
617
617
  const e = l.getRoot().contribution(), t = Ft(e, {
618
618
  workbook: o,
@@ -634,9 +634,9 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), Rt = (e) => {
634
634
  i
635
635
  ]), t;
636
636
  };
637
- At.displayName = "StudioCommandProvider";
637
+ Rt.displayName = "StudioCommandProvider";
638
638
  var jt = ({ renderWorkbook: e }) => {
639
- const t = z.useCommandResolver(), o = xe(null), r = ue(), [n, a] = ve(null), i = be((e) => {
639
+ const t = V.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) {
@@ -686,7 +686,7 @@ var jt = ({ renderWorkbook: e }) => {
686
686
  }, [t, n]), l = we(() => {
687
687
  if (!n) return null;
688
688
  const e = "insertImage" === n;
689
- return _e(Ve, {
689
+ return _e(He, {
690
690
  className: "drop-overlay",
691
691
  sx: {
692
692
  position: "absolute",
@@ -743,7 +743,7 @@ var jt = ({ renderWorkbook: 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
744
  return _e(x, {
745
745
  initialAnchor: s,
746
- children: _e(At, {
746
+ children: _e(Rt, {
747
747
  workbook: t,
748
748
  setWorkbook: o,
749
749
  workbookTitle: n,
@@ -755,28 +755,28 @@ var jt = ({ renderWorkbook: e }) => {
755
755
  });
756
756
  });
757
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) => {
758
+ var Ot = {
759
+ sort: pt("studio:sortDialog", () => import("./Cg1eqOYlWMCprF6j.mjs")).load,
760
+ hyperlink: pt("studio:hyperlinkDialog", () => import("./CVeYUjvKIc1XuPC1.mjs")).load,
761
+ find: pt("studio:findReplaceWindow", () => import("./BZVe_afv1tfvExD6.mjs")).load,
762
+ tableNew: pt("studio:tableNewDialog", () => import("./BVyN4cLnT2ii1GMj.mjs")).load,
763
+ namedDetails: pt("studio:namedReferenceDialog", () => import("./uySjOpgLC6iCqgC-.mjs")).load,
764
+ insertFunction: pt("studio:insertFunctionDialog", () => import("./BiBMdXkWOUHZpWcb.mjs")).load,
765
+ resizeHeader: pt("studio:resizeHeaderDialog", () => import("./DjB5CHk5N8mYRiAW.mjs")).load,
766
+ outlineSettings: pt("studio:outlineSettingsDialog", () => import("./h5Tt_pl2Dpa9vaR-.mjs")).load,
767
+ fillSeries: pt("studio:fillSeriesDialog", () => import("./Bj-UqmrrHdVSX4vS.mjs")).load,
768
+ workbookStatistics: pt("studio:workbookStatisticsDialog", () => import("./Mm5HFZHyaIJ5EfYO.mjs")).load,
769
+ password: pt("studio:passwordDialog", () => import("./DTtGcAuClHgv-5s6.mjs")).load
770
+ }, Mt = ["find"], Lt = ke((e) => {
771
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 = ue(), p = at.EmptyObject, u = Le(p), m = $e(p), g = Me(p), h = xe(!1);
774
+ }), d = ue(), p = at.EmptyObject, u = Me(p), m = $e(p), g = Oe(p), h = xe(!1);
775
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 Lt) u(e, Mt[e], { prewarm: !0 }).catch(() => {});
779
+ for (const e of Mt) u(e, Ot[e], { prewarm: !0 }).catch(() => {});
780
780
  });
781
781
  return () => o(r);
782
782
  }, []);
@@ -811,7 +811,7 @@ var Mt = {
811
811
  label: e
812
812
  });
813
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 : {
814
+ a.current.delete(o) && (a.current.size > 0 || (Ie(i.current), s.current = null, c((e) => null === e.label && null === e.progress ? e : {
815
815
  label: null,
816
816
  progress: null
817
817
  })));
@@ -836,7 +836,7 @@ var Mt = {
836
836
  onKeyDown: (e) => {
837
837
  e.isDefaultPrevented() || e.isPropagationStopped() || o?.onKeyDown?.(e);
838
838
  }
839
- }, u(e, Mt[e], t);
839
+ }, u(e, Ot[e], t);
840
840
  },
841
841
  showOptions: m,
842
842
  showInput: g,
@@ -873,14 +873,14 @@ var Mt = {
873
873
  children: [b, t]
874
874
  });
875
875
  });
876
- Ot.displayName = "StudioNotifierProvider";
876
+ Lt.displayName = "StudioNotifierProvider";
877
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
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
882
  "string" == typeof r && (r = _e(U, { iconKey: r }));
883
- const n = t === i, a = r ? _e(Ve, {
883
+ const n = t === i, a = r ? _e(He, {
884
884
  sx: {
885
885
  display: "inline-block",
886
886
  transform: m ? "rotate(-90deg)" : "rotate(90deg)",
@@ -888,14 +888,14 @@ var $t = "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 = _e(Ve, {
891
+ }) : null, l = !r || !c && n, d = _e(He, {
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: _e(Ve, {
898
+ children: _e(He, {
899
899
  sx: {
900
900
  overflow: "hidden",
901
901
  minWidth: 0,
@@ -920,7 +920,7 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
920
920
  disableInteractive: !0,
921
921
  title: o.getTitle() ?? "",
922
922
  placement: "left-start",
923
- children: Ke(Ve, {
923
+ children: Ke(He, {
924
924
  sx: {
925
925
  padding: "0px 0px",
926
926
  writingMode: m ? "vertical-lr" : "vertical-rl",
@@ -952,7 +952,7 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
952
952
  c,
953
953
  g
954
954
  ]), f = ae(t, () => ({ isTaskPaneStrip: () => !0 }), []), k = we(() => ht("taskpane-strip", p), [p]);
955
- return _e(Ve, {
955
+ return _e(He, {
956
956
  ref: f,
957
957
  className: k,
958
958
  sx: {
@@ -1001,7 +1001,7 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1001
1001
  borderBottom: `solid ${$t} 1px`
1002
1002
  },
1003
1003
  ...i,
1004
- children: Ke(Ve, {
1004
+ children: Ke(He, {
1005
1005
  sx: {
1006
1006
  display: "flex",
1007
1007
  flex: "1 1 10%",
@@ -1012,7 +1012,7 @@ var $t = "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: [_e(Ve, {
1015
+ children: [_e(He, {
1016
1016
  sx: {
1017
1017
  flex: "1 1 100%",
1018
1018
  paddingLeft: (e) => e.spacing(1)
@@ -1058,21 +1058,21 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1058
1058
  },
1059
1059
  ...n
1060
1060
  });
1061
- }), Vt = "_styled-resizer_fdl5y_3", zt = {}, Ht = {
1061
+ }), Ht = "_styled-resizer_fdl5y_3", Vt = {}, zt = {
1062
1062
  flex: "1 1 100%",
1063
1063
  display: "flex",
1064
1064
  boxSizing: "border-box"
1065
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);
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, Vt), 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;
1070
- const W = "right" !== c, E = f ? "row" : "column", T = W && S ? "before" : "after", F = `${E}:${T}`, I = a ? p[F] : void 0, P = null != I ? `${I}%` : ((e, t) => {
1070
+ const W = "right" !== c, E = f ? "row" : "column", T = W && S ? "before" : "after", F = `${E}:${T}`, A = a ? p[F] : void 0, P = null != A ? `${A}%` : ((e, t) => {
1071
1071
  if (null == e) return "40%";
1072
1072
  if ("number" == typeof e || "string" == typeof e) return e;
1073
1073
  const o = e[t];
1074
1074
  return null != o ? `${o}%` : "40%";
1075
- })(n, F), R = a || i ? (e) => {
1075
+ })(n, F), I = a || i ? (e) => {
1076
1076
  a && u((t) => ({
1077
1077
  ...t,
1078
1078
  [F]: e.percent
@@ -1103,23 +1103,23 @@ var $t = "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 = kt([
1106
+ const R = kt([
1107
1107
  k,
1108
1108
  g,
1109
1109
  t
1110
1110
  ]);
1111
1111
  return _e(ee, {
1112
- ref: A,
1112
+ ref: R,
1113
1113
  className: s,
1114
1114
  style: l ? {
1115
- ...Ht,
1115
+ ...zt,
1116
1116
  ...l
1117
- } : Ht,
1117
+ } : zt,
1118
1118
  ...d,
1119
1119
  ...C,
1120
- onPositionChange: R,
1120
+ onPositionChange: I,
1121
1121
  propsResizer: {
1122
- className: ht("styled-resizer", Vt),
1122
+ className: ht("styled-resizer", Ht),
1123
1123
  style: {
1124
1124
  minWidth: f ? "7px" : void 0,
1125
1125
  minHeight: f ? void 0 : "6px",
@@ -1157,7 +1157,7 @@ var Gt = () => _e("div", { style: {
1157
1157
  o("main"),
1158
1158
  o("statusBar")
1159
1159
  ];
1160
- }, Xt = je(pt("studio:dataValidationDetailsTaskPane", () => import("./dm8dmEaTIqfmgyeL.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load);
1160
+ }, Xt = je(pt("studio:dataValidationDetailsTaskPane", () => import("./DcUXYRkJLeQFybOy.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load);
1161
1161
  l(), N("shape", {
1162
1162
  key: "changeShapeGallery",
1163
1163
  render: (e) => _e(f, {
@@ -1168,14 +1168,55 @@ l(), N("shape", {
1168
1168
  }, {
1169
1169
  order: -1,
1170
1170
  divider: "after"
1171
- }), j("shape", () => import("./Cfi_ly8fBDZZdiZT.mjs").then((e) => e.ShapeFormatPanel)), j("chart", () => import("./BLv99aovW4R3C5PE.mjs").then((e) => e.ChartFormatPanel)), N("picture", {
1171
+ }), j("shape", () => import("./D0HpdVWcePBpfQHX.mjs").then((e) => e.ShapeFormatPanel)), j("chart", () => import("./BWG2FA3rbsOsBHQM.mjs").then((e) => e.ChartFormatPanel)), N("picture", {
1172
1172
  key: "changePictureOptions",
1173
1173
  defaultKey: "changePictureFromFile",
1174
1174
  members: ["changePictureFromFile", "changePictureFromURL"]
1175
+ }, { order: -3 }), N("picture", {
1176
+ key: "pictureHyperlinkOptions",
1177
+ defaultKey: "updatePictureHyperlink",
1178
+ members: [
1179
+ "updatePictureHyperlink",
1180
+ "openPictureHyperlink",
1181
+ "deletePictureHyperlink"
1182
+ ]
1183
+ }, { order: -2 }), V.DefaultCommandButtonRegistry.register({
1184
+ key: "cropAspectOptions",
1185
+ members: [
1186
+ "cropAspect1x1",
1187
+ "-",
1188
+ "cropAspect2x3",
1189
+ "cropAspect3x4",
1190
+ "cropAspect3x5",
1191
+ "cropAspect4x5",
1192
+ "-",
1193
+ "cropAspect3x2",
1194
+ "cropAspect4x3",
1195
+ "cropAspect5x3",
1196
+ "cropAspect5x4",
1197
+ "cropAspect16x9",
1198
+ "cropAspect16x10"
1199
+ ]
1200
+ }, !0), N("picture", {
1201
+ key: "cropOptions",
1202
+ members: [
1203
+ {
1204
+ key: "cropToShapeGallery",
1205
+ render: (e) => _e(f, {
1206
+ ...e,
1207
+ commandKey: "cropToShape",
1208
+ excludeCategories: vt
1209
+ })
1210
+ },
1211
+ "cropAspectOptions",
1212
+ "-",
1213
+ "cropFill",
1214
+ "cropFit"
1215
+ ]
1175
1216
  }, {
1176
1217
  order: -1,
1177
1218
  divider: "after"
1178
- }), s(), H.register("plugin-table", { icons: {} }), v.registerTaskPane({
1219
+ }), s(), z.register("plugin-table", { icons: {} }), v.registerTaskPane({
1179
1220
  key: "dataValidationDetails",
1180
1221
  getTitle: () => "Data Validation",
1181
1222
  getIcon: () => "DataValidation",
@@ -1206,12 +1247,12 @@ var Yt = () => {
1206
1247
  const { colorSchemes: o, ...r } = e, n = o?.[t ? "dark" : "light"];
1207
1248
  return n && "object" == typeof n ? at.deepMerge(r, n) : r;
1208
1249
  }, 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;
1250
+ 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: Ae, propsStatusBar: Ie, renderStatusBar: Re, propsToolbar: je, renderToolbar: Ne } = e, Oe = xe(null), Me = xe(null), Le = xe(null), $e = re(() => {
1251
+ Le.current?.getNamedCollectionEditorElement?.()?.focus?.();
1252
+ }, []), Be = ((e, t = "undefined" == typeof window ? "mouse" : Z.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(De), Ve = "bottom" === Be && Ee, ze = me(Ve), Ue = ze ? Math.max(0, Math.round(window.innerHeight - ze.height)) : 0, qe = ze ? Math.round(ze.offsetTop) : 0, Xe = ze?.height;
1212
1253
  ye(() => {
1213
- ze && void 0 !== Xe && (0 === window.scrollX && 0 === window.scrollY || window.scrollTo(0, 0));
1214
- }, [ze, Xe]);
1254
+ Ve && void 0 !== Xe && (0 === window.scrollX && 0 === window.scrollY || window.scrollTo(0, 0));
1255
+ }, [Ve, Xe]);
1215
1256
  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
1257
  it.current = nt;
1217
1258
  const lt = pe(), ct = we(() => ({
@@ -1225,7 +1266,7 @@ var Yt = () => {
1225
1266
  ct,
1226
1267
  n,
1227
1268
  ee
1228
- ]), ut = we(() => P("sxl-defaults", `.${n}`), [n]), mt = M(), [gt, ht] = ve(() => S ?? null);
1269
+ ]), ut = we(() => P("sxl-defaults", `.${n}`), [n]), mt = O(), [gt, ht] = ve(() => S ?? null);
1229
1270
  ye(() => {
1230
1271
  ht(S ?? null);
1231
1272
  }, [S]);
@@ -1254,10 +1295,10 @@ var Yt = () => {
1254
1295
  vt && !St && Wt(vt);
1255
1296
  const Tt = vt && St && vt !== St ? vt : null, Ft = xe(Tt);
1256
1297
  Ft.current = Tt;
1257
- const It = xe(St);
1258
- It.current = St;
1259
- const Pt = xe([]), Rt = be((e) => {
1260
- const t = It.current;
1298
+ const At = xe(St);
1299
+ At.current = St;
1300
+ const Pt = xe([]), It = be((e) => {
1301
+ const t = At.current;
1261
1302
  t && Pt.current.push(t), ht(e);
1262
1303
  }, []);
1263
1304
  ye(() => {
@@ -1274,21 +1315,21 @@ var Yt = () => {
1274
1315
  }
1275
1316
  }
1276
1317
  }, [St]);
1277
- const At = Fe ? null : St, jt = O(), Mt = we(() => {
1278
- const e = At?.getSelectedWorksheet() ?? At?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
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(() => {
1318
+ const Rt = Fe ? null : St, jt = L(), Ot = we(() => {
1319
+ const e = Rt?.getSelectedWorksheet() ?? Rt?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
1320
+ return e ? I(e, { referenceMode: jt }) : null;
1321
+ }, [Rt, jt]), Mt = Fe ?? Ot, $t = xe(Mt);
1322
+ $t.current = Mt, ye(() => {
1323
+ if (!Mt) return;
1324
+ let e = Mt.getSession();
1325
+ return Mt.subscribe(() => {
1285
1326
  const t = e;
1286
- e = Lt.getSession(), t && !e && "formula-bar" === t.getActiveEditorId() && Oe.current?.contains?.(document.activeElement) && Me.current?.focus();
1327
+ e = Mt.getSession(), t && !e && "formula-bar" === t.getActiveEditorId() && Le.current?.contains?.(document.activeElement) && Oe.current?.focus();
1287
1328
  });
1288
- }, [Lt]);
1289
- const Bt = K(St), { isDirty: _t, saveState: Kt } = V(St, F), Vt = _(St), zt = xe(Kt), Ht = xe(null);
1290
- zt.current = Kt;
1291
- const Gt = be(() => zt.current?.isDirty() ?? !1, []), Xt = xe(Ct);
1329
+ }, [Mt]);
1330
+ const Bt = K(St), { isDirty: _t, saveState: Kt } = H(St, F), Ht = _(St), Vt = xe(Kt), zt = xe(null);
1331
+ Vt.current = Kt;
1332
+ const Gt = be(() => Vt.current?.isDirty() ?? !1, []), Xt = xe(Ct);
1292
1333
  Xt.current = Ct;
1293
1334
  const [Qt, to] = ve(null), oo = ie ?? le?.title, [ro, no] = ve(null);
1294
1335
  ye(() => {
@@ -1303,7 +1344,7 @@ var Yt = () => {
1303
1344
  io?.(vt);
1304
1345
  }, [vt]);
1305
1346
  const so = xe(vt);
1306
- so.current = vt, L(St, "onViewChange");
1347
+ so.current = vt, M(St, "onViewChange");
1307
1348
  const lo = we(() => _e(Se, {
1308
1349
  groupKey: "helpOptions",
1309
1350
  disableHover: !0,
@@ -1313,7 +1354,7 @@ var Yt = () => {
1313
1354
  po(e);
1314
1355
  }, []);
1315
1356
  ye(() => {
1316
- H.prefetch([H.getActive(), D]).catch((e) => {
1357
+ z.prefetch([z.getActive(), D]).catch((e) => {
1317
1358
  console.warn("Icons could not be loaded:", e);
1318
1359
  });
1319
1360
  }, []);
@@ -1321,7 +1362,7 @@ var Yt = () => {
1321
1362
  mo.current || (mo.current = Yt());
1322
1363
  const go = xe(null), ho = be(() => go.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? mo.current.promise, []), fo = re(async (e) => {
1323
1364
  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);
1365
+ t && t !== st.getActive() && await st.setActive(t), await V.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
1366
  }, []), ko = xe(null), bo = be((e) => {
1326
1367
  let t = null, r = {
1327
1368
  readOnly: !0,
@@ -1333,11 +1374,11 @@ var Yt = () => {
1333
1374
  maxWidth: "100%",
1334
1375
  ...le?.style
1335
1376
  },
1336
- workbook: e.workbook ?? Me.current,
1377
+ workbook: e.workbook ?? Oe.current,
1337
1378
  ref: ko,
1338
1379
  title: ao,
1339
1380
  modified: _t,
1340
- encrypted: Vt,
1381
+ encrypted: Ht,
1341
1382
  placeHolder: tt,
1342
1383
  onTitleChange: (e) => {
1343
1384
  no(e), le?.onTitleChange?.(e);
@@ -1353,13 +1394,13 @@ var Yt = () => {
1353
1394
  N,
1354
1395
  ao,
1355
1396
  _t,
1356
- Vt,
1397
+ Ht,
1357
1398
  le,
1358
1399
  B,
1359
1400
  q
1360
1401
  ]);
1361
1402
  ye(() => {
1362
- const e = Me.current;
1403
+ const e = Oe.current;
1363
1404
  if (!e) return;
1364
1405
  const t = (t) => {
1365
1406
  (t.ctrlKey || t.metaKey || "native" !== Q.getWheelOwner(t, e)) && t.preventDefault();
@@ -1402,15 +1443,15 @@ var Yt = () => {
1402
1443
  Wo.current = r, ae(t, () => ({
1403
1444
  isStudioElement: () => !0,
1404
1445
  save: (e) => {
1405
- const t = Ht.current;
1446
+ const t = zt.current;
1406
1447
  return t ? t(e) : Promise.reject(/* @__PURE__ */ new Error("The studio cannot save: no workbook, or the backing store cannot write."));
1407
1448
  },
1408
- getWorkbookElement: () => Me.current,
1449
+ getWorkbookElement: () => Oe.current,
1409
1450
  getWorkbook: () => so.current ?? null,
1410
- isDirty: () => zt.current?.isDirty() ?? !1,
1451
+ isDirty: () => Vt.current?.isDirty() ?? !1,
1411
1452
  getEditable: () => $t.current,
1412
- getFormulaBarElement: () => Oe.current ?? null,
1413
- focus: () => Me.current?.focus(),
1453
+ getFormulaBarElement: () => Le.current ?? null,
1454
+ focus: () => Oe.current?.focus(),
1414
1455
  whenReady: () => (wt.current || (wt.current = Yt()), wt.current.promise),
1415
1456
  getWorkbookState: () => Xt.current,
1416
1457
  retry: () => bt((e) => e + 1)
@@ -1421,7 +1462,7 @@ var Yt = () => {
1421
1462
  }));
1422
1463
  }, []);
1423
1464
  ye(() => {
1424
- Eo.current && (Eo.current = !1, Me.current?.focus());
1465
+ Eo.current && (Eo.current = !1, Oe.current?.focus());
1425
1466
  }, [St]);
1426
1467
  const Fo = be((e) => {
1427
1468
  const { ref: t, ...o } = e, r = dt ? ct.dark : ct.light, n = "error" === Ct.status && k ? _e(J, {
@@ -1449,7 +1490,7 @@ var Yt = () => {
1449
1490
  });
1450
1491
  let l = null;
1451
1492
  if (St) {
1452
- const e = St, n = e.getView(), a = fe ?? n?.isShowFormulaBar(), i = Ie ?? n?.isShowStatusBar(), s = Qt?.source ?? Me.current, d = _e(J, {
1493
+ const e = St, n = e.getView(), a = fe ?? n?.isShowFormulaBar(), i = Ae ?? n?.isShowStatusBar(), s = Qt?.source ?? Oe.current, d = _e(J, {
1453
1494
  render: void 0 === Ne ? bo : Ne,
1454
1495
  props: {
1455
1496
  workbook: s,
@@ -1458,7 +1499,7 @@ var Yt = () => {
1458
1499
  }), g = "bottom" === Be, h = a ? _e(J, {
1459
1500
  render: void 0 === Ce ? p : Ce,
1460
1501
  props: {
1461
- ref: Oe,
1502
+ ref: Le,
1462
1503
  style: {
1463
1504
  marginTop: r.spacing(g ? .5 : .25),
1464
1505
  marginLeft: r.spacing(1),
@@ -1466,7 +1507,7 @@ var Yt = () => {
1466
1507
  marginBottom: r.spacing(g ? .5 : .75)
1467
1508
  },
1468
1509
  workbook: e,
1469
- editable: Lt ?? void 0,
1510
+ editable: Mt ?? void 0,
1470
1511
  placement: Be,
1471
1512
  ...ke,
1472
1513
  propsNamedCollectionEditor: {
@@ -1475,20 +1516,20 @@ var Yt = () => {
1475
1516
  }
1476
1517
  }
1477
1518
  }) : null, f = i ? _e(J, {
1478
- render: void 0 === Ae ? u : Ae,
1519
+ render: void 0 === Re ? u : Re,
1479
1520
  props: {
1480
1521
  childrenEnd: lo,
1481
- ...Re
1522
+ ...Ie
1482
1523
  }
1483
1524
  }) : null, k = (e, r) => _e(c, {
1484
1525
  ...he,
1485
1526
  tabIndex: 0,
1486
1527
  autoFocus: !r && ne,
1487
1528
  workbook: e,
1488
- editable: r ? void 0 : Lt ?? void 0,
1529
+ editable: r ? void 0 : Mt ?? void 0,
1489
1530
  focusNameBox: r ? void 0 : $e,
1490
1531
  prefetch: !r && m,
1491
- ref: r ? Le : ft([t, Me]),
1532
+ ref: r ? Me : ft([t, Oe]),
1492
1533
  onWorkbookLoad: r ? (t) => To(t, e) : fo,
1493
1534
  onKeyDown: (e) => {
1494
1535
  C?.(e);
@@ -1515,7 +1556,7 @@ var Yt = () => {
1515
1556
  flex: "1 1 100%",
1516
1557
  minWidth: 0,
1517
1558
  minHeight: 0,
1518
- ...A({
1559
+ ...R({
1519
1560
  window: r.palette.background.default,
1520
1561
  windowText: r.palette.text.primary
1521
1562
  })
@@ -1527,7 +1568,7 @@ var Yt = () => {
1527
1568
  main: _e(Ut, {
1528
1569
  taskSide: v,
1529
1570
  persistKey: Jt,
1530
- sidebarElement: vo ? _e(z.CommandScopeProvider, {
1571
+ sidebarElement: vo ? _e(V.CommandScopeProvider, {
1531
1572
  scope: yo,
1532
1573
  children: vo
1533
1574
  }) : void 0,
@@ -1540,7 +1581,7 @@ var Yt = () => {
1540
1581
  minWidth: 0,
1541
1582
  minHeight: 0
1542
1583
  },
1543
- children: [[k(St, !1), Tt ? k(Tt, !0) : null], _e(Ve, {
1584
+ children: [[k(St, !1), Tt ? k(Tt, !0) : null], _e(He, {
1544
1585
  ref: uo,
1545
1586
  sx: {
1546
1587
  position: "absolute",
@@ -1567,7 +1608,7 @@ var Yt = () => {
1567
1608
  width: "100%",
1568
1609
  height: Ue ? `calc(100% - ${Ue}px)` : "100%",
1569
1610
  transform: qe ? `translateY(${qe}px)` : void 0,
1570
- overscrollBehavior: ze ? "none" : void 0,
1611
+ overscrollBehavior: Ve ? "none" : void 0,
1571
1612
  position: "absolute",
1572
1613
  display: "flex",
1573
1614
  alignItems: "stretch",
@@ -1627,19 +1668,19 @@ var Yt = () => {
1627
1668
  ke,
1628
1669
  Ce,
1629
1670
  Be,
1630
- Lt,
1671
+ Mt,
1672
+ Ae,
1631
1673
  Ie,
1632
1674
  Re,
1633
- Ae,
1634
1675
  je,
1635
1676
  Ne,
1636
- ze,
1677
+ Ve,
1637
1678
  Ue,
1638
1679
  qe,
1639
1680
  ct,
1640
1681
  dt
1641
1682
  ]);
1642
- let Io = _e(yt, {
1683
+ let Ao = _e(yt, {
1643
1684
  maxSnack: 3,
1644
1685
  domRoot: co ?? void 0,
1645
1686
  anchorOrigin: {
@@ -1648,7 +1689,7 @@ var Yt = () => {
1648
1689
  },
1649
1690
  autoHideDuration: 3500,
1650
1691
  onClose: (e, t, o) => {
1651
- Me.current?.focus();
1692
+ Oe.current?.focus();
1652
1693
  },
1653
1694
  Components: { error: Dt },
1654
1695
  iconVariant: {
@@ -1661,29 +1702,29 @@ var Yt = () => {
1661
1702
  style: { marginRight: "8px" }
1662
1703
  })
1663
1704
  },
1664
- children: _e(I, {
1705
+ children: _e(A, {
1665
1706
  workbook: St,
1666
1707
  children: _e(W, {
1667
1708
  renderArea: So,
1668
1709
  onUpdateArea: (e) => {
1669
1710
  Co(e);
1670
1711
  },
1671
- children: _e(Te, { children: _e(Ot, { children: _e(te, { children: _e(X, { children: _e(Nt, {
1712
+ children: _e(Te, { children: _e(Lt, { children: _e(te, { children: _e(X, { children: _e(Nt, {
1672
1713
  workbook: St,
1673
1714
  initialCommandAnchor: ho,
1674
1715
  renderWorkbook: Fo,
1675
- setWorkbook: Rt,
1716
+ setWorkbook: It,
1676
1717
  titleWorkbook: ao,
1677
1718
  setWorkbookTitle: no,
1678
1719
  refDocumentTitle: ko,
1679
1720
  isDirty: Gt,
1680
- refSave: Ht,
1721
+ refSave: zt,
1681
1722
  host: r
1682
1723
  }) }) }) }) })
1683
1724
  })
1684
1725
  })
1685
1726
  });
1686
- return Io = Ke(et, {
1727
+ return Ao = Ke(et, {
1687
1728
  theme: dt ? ct.dark : ct.light,
1688
1729
  children: [
1689
1730
  oe ? _e(Ge, {}) : null,
@@ -1693,10 +1734,10 @@ var Yt = () => {
1693
1734
  themeScopeClass: n,
1694
1735
  themeSurface: "app",
1695
1736
  themeMode: rt,
1696
- children: Io
1737
+ children: Ao
1697
1738
  })
1698
1739
  ]
1699
- }), Io;
1740
+ }), Ao;
1700
1741
  }));
1701
1742
  Qt.displayName = "EagerStudio";
1702
1743
  var eo = (e) => _e(Kt, { ...e });