@sheetxl/studio-mui 0.7.21 → 0.7.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/browser/cjs/{BWS4gFWp8lDPvR9C.cjs → BCSkf7oG5MtK-XGZ.cjs} +1 -1
  2. package/browser/cjs/{7uRpnSJkNHg_E-KO.cjs → BOj9VP_ZCebWTfxc.cjs} +2 -2
  3. package/browser/cjs/{DHwhTAQeNs4slttB.cjs → Biy5SuviR3Cz0S4F.cjs} +2 -2
  4. package/browser/cjs/{rIy1Cx7HX-8zaQjY.cjs → C1PlAY37pY831-YP.cjs} +7 -7
  5. package/browser/cjs/{DbqHWelIXc-F2a9N.cjs → Cc3dH2YOCi1SjPK4.cjs} +1 -1
  6. package/browser/cjs/{DX5ji_lT0Qlqznv7.cjs → Ccx9l-If3BC4K6LY.cjs} +2 -2
  7. package/browser/cjs/{CmSwD6NZAHhOcRi3.cjs → DR8b8OAx9_mnaJoN.cjs} +2 -2
  8. package/browser/cjs/{muTJOFrCXh156rjc.cjs → D_R6KuQiPoJdxVa_.cjs} +1 -1
  9. package/browser/cjs/{saPH3d5fE-ugXp6m.cjs → DkGstRdRpze8sHAr.cjs} +1 -1
  10. package/browser/cjs/{DMOT_ixtKqRvPULq.cjs → StW-maKM8OSYcle5.cjs} +1 -1
  11. package/browser/cjs/index.cjs +2 -2
  12. package/browser/cjs/{B4j_sdzJNzq1ZPbT.cjs → kjlgjQkY0fb-Rc-P.cjs} +1 -1
  13. package/browser/cjs/qoo14c2KOLE_IfIO.cjs +20 -0
  14. package/browser/esm/{C7jHdVMf6Yr4eH_B.mjs → 0OyyoHlgiaso9tYr.mjs} +1 -1
  15. package/browser/esm/{BNmwaUWz2DJqWumP.mjs → BE92YslAajVEiBuX.mjs} +2 -2
  16. package/browser/esm/{BMo7K5LaD7zuDVg9.mjs → BJO2iGA4QZN4Tzfv.mjs} +7 -7
  17. package/browser/esm/{D5XNYGaC4Yw6vCRL.mjs → BQGW_5yvCb0eTpib.mjs} +1 -1
  18. package/browser/esm/{CROTe62QHFVo8YMt.mjs → BYAdBaegvg_SoS6K.mjs} +2 -2
  19. package/browser/esm/{DUzVAMWTrS0u37LX.mjs → BsxSk3HxwjxRtPtZ.mjs} +2 -2
  20. package/browser/esm/{DltuoFr9A-WJccbV.mjs → D-9Ar2kzfZAziktn.mjs} +1 -1
  21. package/browser/esm/{0D8VtNalLeBTB51a.mjs → D4Z_3xY0vO_3FL6K.mjs} +1 -1
  22. package/browser/esm/{mqkuG-TcLS4nn4x0.mjs → DB1mGkEgnMnMQ8CH.mjs} +1229 -1227
  23. package/browser/esm/{aUkJls9HzxnrZSof.mjs → HmzSBdi0ej5oeXZ1.mjs} +1 -1
  24. package/browser/esm/{DtifaYF85GrfJ9_1.mjs → ePSxe_g7wEvzmkJ7.mjs} +1 -1
  25. package/browser/esm/index.mjs +2 -2
  26. package/browser/esm/{Btt4G85L5v01eySb.mjs → pshi0IoaQJ-EyVt3.mjs} +2 -2
  27. package/licenses/dependencies.txt +180 -180
  28. package/node/esm/{oYh6joioOWhFd_R3.mjs → B67HtQl_OohbFhFm.mjs} +1 -1
  29. package/node/esm/{DQnCFz2zJgMwLou_.mjs → BD8iIgRl14sLSdN1.mjs} +1 -1
  30. package/node/esm/{Do7ts-uMkQANfvhq.mjs → BKeEywP27oPbnpFS.mjs} +1 -1
  31. package/node/esm/{DCngEQG4um0yTeoj.mjs → BkQRle53yjTwYnC4.mjs} +28 -28
  32. package/node/esm/{BYjJIMFsheqJcsEI.mjs → Bl77xZWpq8Ix5EEF.mjs} +1 -1
  33. package/node/esm/{CJU8jJhxtR3PEj2I.mjs → C1HBS_UNswHQvckQ.mjs} +1 -1
  34. package/node/esm/{CS0OWM24rZpAGRKU.mjs → C4wnaXAtg_BfPjQR.mjs} +1 -1
  35. package/node/esm/{CACqTiBtxYlo1mu7.mjs → Dhp7eefBNVIcSWf6.mjs} +1 -1
  36. package/node/esm/{D6B7z_d11sd-U1fU.mjs → bp_PxnEExWX_-i_8.mjs} +1 -1
  37. package/node/esm/index.mjs +679 -679
  38. package/node/esm/{CdUceTAldsMTIFnD.mjs → j5ssn9j67ROjzwGT.mjs} +1 -1
  39. package/package.json +8 -8
  40. package/types/index.d.ts +9 -10
  41. package/browser/cjs/B-O26BvbKDImp7pm.cjs +0 -20
@@ -1,20 +1,20 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.21
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { Color as e, IColor as t, ITheme as o, CommonUtils as n, IBorder as a, FontUtils as r, IFont as l, NumberFormat as i, IFontCollection as s, IStyle as d, ITextFrame as c, Table as m, IFill as p, CoordUtils as u, ISheet as g, LicenseManager as h, TypesUtils as f, Workbook as x } from "@sheetxl/sdk";
7
+ import { Color as e, IColor as t, ITheme as o, CommonUtils as n, IBorder as a, FontUtils as r, IFont as l, NumberFormat as i, CoordUtils as s, Table as d, IFill as c, ISheet as m, LicenseManager as p, TypesUtils as u, IFontCollection as g, IStyle as h, ITextFrame as f, Workbook as x } from "@sheetxl/sdk";
8
8
  import { LicenseManager } from "@sheetxl/sdk";
9
- import { StyledStrokePath as b, StaticBorderRenderer as y, useModelListener as w, createCellEditStateFromCell as S, SheetCellEditor as C, ScriptEditor as k, DefaultTaskPaneRegistry as v, useTaskPaneArea as T, useDocThemes as R, TabStrip as D, SheetElement as F, SheetScrollbar as M, PictureEditor as N, ChartEditor as B, EmptyFrame as E, LogoNoPaddingIcon as P, TaskPaneArea as I, TaskPaneProvider as A } from "@sheetxl/react";
9
+ import { StyledStrokePath as b, StaticBorderRenderer as y, useModelListener as w, createCellEditStateFromCell as S, SheetCellEditor as C, DefaultTaskPaneRegistry as k, ScriptEditor as v, useTaskPaneArea as T, useDocThemes as R, TabStrip as D, SheetElement as F, SheetScrollbar as M, PictureEditor as N, ChartEditor as B, EmptyFrame as E, LogoNoPaddingIcon as P, TaskPaneArea as I, TaskPaneProvider as A } from "@sheetxl/react";
10
10
  import { DefaultTaskPaneRegistry, useModelListener, useRangeListener } from "@sheetxl/react";
11
11
  import { jsxs as L, Fragment as H, jsx as z } from "react/jsx-runtime";
12
12
  import W, { memo as $, forwardRef as O, useMemo as V, useCallback as K, isValidElement as G, useState as j, useEffect as _, Suspense as U, useRef as q, createElement as X, useReducer as Z, useLayoutEffect as Y } from "react";
13
- import { Box as Q, Typography as J, IconButton as ee, MenuItem as te, Divider as oe, Button as ne, SvgIcon as ae, Input as re, FormControlLabel as le, Checkbox as ie, FormControl as se, TextField as de, InputAdornment as ce, Slider as me, Paper as pe, CircularProgress as ue, Select as ge, Tabs as he, Tab as fe, useMediaQuery as xe, Card as be, CardActions as ye, Collapse as we, DialogTitle as Se, CssBaseline as Ce } from "@mui/material";
14
- import { CommandButton as ke, ExhibitDivider as ve, defaultCreatePopupPanel as Te, CommandPopupButton as Re, InputCommandButton as De, SimpleTooltip as Fe, AnimatedLoadingPanel as Me, PopupButtonType as Ne, ExhibitPopupIconButton as Be, ExhibitPopupMenuItem as Ee, ExhibitMenuItem as Pe, createStrokeShadowFilter as Ie, strokeShadowFilter as Ae, ExhibitTooltip as Le, ExhibitIconButton as He, CommandTooltip as ze, SimpleCommandPopupButton as We, SelectedIcon as $e, LabelIcon as Oe, ExhibitMenuHeader as Ve, ContextMenu as Ke, ExhibitOptionButton as Ge, hexToRGB as je, useFloatStack as _e, elevateColor as Ue, CommandToolbar as qe, renderScrollButtonEdge as Xe, renderScrollButtonEnd as Ze, renderScrollButtonStart as Ye, StackTraceErrorPanel as Qe, scrollbarTheming as Je, StackTrace as et, useResolvedThemeMode as tt, ThemeMode as ot, useModal as nt, useLazyWindow as at, useOptionsDialog as rt, useInputDialog as lt, AnimatedTraversingEllipsisIcon as it, createExhibitTheme as st, ModalProvider as dt } from "@sheetxl/utils-mui";
13
+ import { Box as Q, Typography as J, IconButton as ee, MenuItem as te, Divider as oe, Button as ne, SvgIcon as ae, Input as re, FormControl as le, TextField as ie, InputAdornment as se, Slider as de, Paper as ce, FormControlLabel as me, Checkbox as pe, CircularProgress as ue, Select as ge, Tabs as he, Tab as fe, useMediaQuery as xe, Card as be, CardActions as ye, Collapse as we, DialogTitle as Se, CssBaseline as Ce } from "@mui/material";
14
+ import { CommandButton as ke, ExhibitDivider as ve, defaultCreatePopupPanel as Te, CommandPopupButton as Re, InputCommandButton as De, SimpleTooltip as Fe, AnimatedLoadingPanel as Me, PopupButtonType as Ne, ExhibitPopupIconButton as Be, ExhibitPopupMenuItem as Ee, ExhibitMenuItem as Pe, createStrokeShadowFilter as Ie, strokeShadowFilter as Ae, ExhibitTooltip as Le, ExhibitIconButton as He, CommandTooltip as ze, SimpleCommandPopupButton as We, SelectedIcon as $e, ExhibitOptionButton as Oe, ExhibitMenuHeader as Ve, hexToRGB as Ke, useFloatStack as Ge, elevateColor as je, CommandToolbar as _e, renderScrollButtonEdge as Ue, renderScrollButtonEnd as qe, renderScrollButtonStart as Xe, StackTraceErrorPanel as Ze, scrollbarTheming as Ye, LabelIcon as Qe, ContextMenu as Je, StackTrace as et, useResolvedThemeMode as tt, ThemeMode as ot, useModal as nt, useLazyWindow as at, useOptionsDialog as rt, useInputDialog as lt, AnimatedTraversingEllipsisIcon as it, createExhibitTheme as st, ModalProvider as dt } from "@sheetxl/utils-mui";
15
15
  import { useTheme as ct, alpha as mt, getOverlayAlpha as pt, ThemeProvider as ut } from "@mui/material/styles";
16
16
  import gt from "clsx";
17
- import { useCommands as ht, CommandButtonType as ft, useCallbackRef as xt, ReactUtils as bt, KeyCodes as yt, DynamicIcon as wt, useCommand as St, useMouseDownAndHoldListener as Ct, useEditMode as kt, useNotifier as vt, NotifierType as Tt, useImperativeElement as Rt, SplitPane as Dt, RoundedTab as Ft, DefaultDynamicIconService as Mt, SimpleCommand as Nt, Command as Bt, KeyModifiers as Et, CommandGroup as Pt, ToolTipPlacement as It, ScrollPane as At, useUndoManager as Lt, DefaultReactNotifier as Ht, NotifierProvider as zt, UncaughtErrorBoundary as Wt, ReactErrorBoundary as $t } from "@sheetxl/utils-react";
17
+ import { useCommands as ht, CommandButtonType as ft, useCallbackRef as xt, ReactUtils as bt, KeyCodes as yt, DynamicIcon as wt, useCommand as St, useMouseDownAndHoldListener as Ct, useEditMode as kt, useNotifier as vt, NotifierType as Tt, useImperativeElement as Rt, SplitPane as Dt, DefaultDynamicIconService as Ft, RoundedTab as Mt, SimpleCommand as Nt, Command as Bt, KeyModifiers as Et, CommandGroup as Pt, ToolTipPlacement as It, ScrollPane as At, useUndoManager as Lt, DefaultReactNotifier as Ht, NotifierProvider as zt, UncaughtErrorBoundary as Wt, ReactErrorBoundary as $t } from "@sheetxl/utils-react";
18
18
  import { ResizableBox as Ot } from "react-resizable";
19
19
  import { mergeRefs as Vt } from "react-merge-refs";
20
20
  import { alpha as Kt } from "@mui/system";
@@ -27,7 +27,7 @@ import { IOUtils as eo } from "@sheetxl/io";
27
27
  import { useSnackbar as to, SnackbarContent as oo, SnackbarProvider as no } from "notistack";
28
28
  const ao = $(O((e2, t2) => {
29
29
  const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, parentFloat: l2, ...i2 } = e2, s2 = ht(o2, ["formatAlignLeftToggle", "formatAlignCenterToggle", "formatAlignRightToggle", "formatAlignJustifyToggle", "formatAlignCenterContinuousToggle", "formatAlignFillToggle", "formatAlignDistributedHorizontalToggle"]), d2 = V(() => {
30
- for (let e3 = 0; e3 < s2.length; e3++) if (s2[e3]?.state()) return s2[e3];
30
+ for (let e3 = 0; e3 < s2.length; e3++) if (s2[e3]?.getState()) return s2[e3];
31
31
  return s2[0];
32
32
  }, [s2]), c2 = V(() => {
33
33
  if (!n2) return null;
@@ -37,48 +37,48 @@ const ao = $(O((e2, t2) => {
37
37
  const o3 = { variant: ft.Menuitem, commandHook: n2, scope: a2, disabled: r2 }, l3 = L(H, { children: [z(ke, { ...o3, command: t3.getCommand("formatAlignLeftToggle") }), z(ke, { ...o3, command: t3.getCommand("formatAlignCenterToggle") }), z(ke, { ...o3, command: t3.getCommand("formatAlignRightToggle") }), z(ke, { ...o3, command: t3.getCommand("formatAlignJustifyToggle") }), z(ve, { orientation: "horizontal" }), z(ke, { ...o3, command: t3.getCommand("formatAlignCenterContinuousToggle") }), z(ke, { ...o3, command: t3.getCommand("formatAlignFillToggle") }), z(ke, { ...o3, command: t3.getCommand("formatAlignDistributedHorizontalToggle") })] }), s3 = L(Q, { sx: { className: gt("quick-buttons"), display: "flex", alignItems: "center", justifyContent: "center" }, onClick: (e4) => e4.stopPropagation(), children: [z(ke, { command: t3.getCommand("formatIndentDecrease"), commandHook: c2, scope: a2, disabled: r2 }), z(ke, { command: t3.getCommand("formatIndentIncrease"), commandHook: c2, scope: a2, disabled: r2 })] }), d3 = L(Q, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...i2, children: [s3, z(ve, { orientation: "horizontal" }), z(Q, { sx: { overflow: "auto", flex: "1 1 100%" }, children: l3 })] });
38
38
  return Te({ ...e3, children: d3 });
39
39
  }, [r2, n2]);
40
- return z(Re, { ref: t2, parentFloat: l2, commands: o2, commandHook: n2, scope: a2, createPopupPanel: m2, label: "Horizontal Alignment", tooltip: "Configure how text is placed in the horizontal direction of the cell.", quickCommand: d2?.key(), icon: d2?.icon() ?? "FormatAlignLeft", ...i2 });
40
+ return z(Re, { ref: t2, parentFloat: l2, commands: o2, commandHook: n2, scope: a2, createPopupPanel: m2, label: "Horizontal Alignment", tooltip: "Configure how text is placed in the horizontal direction of the cell.", quickCommand: d2?.getKey(), icon: d2?.getIcon() ?? "FormatAlignLeft", ...i2 });
41
41
  })), ro = $(O((e2, t2) => {
42
42
  const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, ...l2 } = e2, i2 = ht(o2, ["formatAlignTopToggle", "formatAlignMiddleToggle", "formatAlignBottomToggle", "formatAlignJustifyVerticalToggle", "formatAlignDistributedVerticalToggle"]), { activeCommand: s2, allDisabled: d2 } = V(() => {
43
43
  const e3 = i2.length;
44
44
  let t3, o3 = 0;
45
45
  for (let n3 = 0; n3 < e3; n3++) {
46
46
  const e4 = i2[n3];
47
- e4 && !e4.disabled() && (!t3 && e4?.state() && (t3 = e4), o3++);
47
+ e4 && !e4.disabled() && (!t3 && e4?.getState() && (t3 = e4), o3++);
48
48
  }
49
49
  return t3 = t3 ?? i2[0], { activeCommand: t3, allDisabled: 0 === o3 };
50
50
  }, [i2]), c2 = K((e3, t3) => {
51
51
  const o3 = { variant: ft.Menuitem, commandHook: n2, scope: a2, disabled: r2 }, l3 = L(H, { children: [z(ke, { ...o3, command: t3.getCommand("formatAlignTopToggle") }), z(ke, { ...o3, command: t3.getCommand("formatAlignMiddleToggle") }), z(ke, { ...o3, command: t3.getCommand("formatAlignBottomToggle") }), z(ve, { orientation: "horizontal" }), z(ke, { ...o3, command: t3.getCommand("formatAlignJustifyVerticalToggle") }), z(ke, { ...o3, command: t3.getCommand("formatAlignDistributedVerticalToggle") })] });
52
52
  return Te({ ...e3, children: l3 });
53
53
  }, [r2, n2]);
54
- return z(Re, { ref: t2, commands: o2, commandHook: n2, createPopupPanel: c2, disabled: r2 || d2, label: "Vertical Alignment", tooltip: "Configure how text is placed in the vertical direction of the cell.", icon: s2?.icon() ?? "TextVerticalBottom", ...l2 });
54
+ return z(Re, { ref: t2, commands: o2, commandHook: n2, createPopupPanel: c2, disabled: r2 || d2, label: "Vertical Alignment", tooltip: "Configure how text is placed in the vertical direction of the cell.", icon: s2?.getIcon() ?? "TextVerticalBottom", ...l2 });
55
55
  })), lo = $(O((e2, t2) => {
56
56
  const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, ...l2 } = e2, i2 = ht(o2, ["formatTextOverflowVisibleToggle", "formatTextOverflowWrapToggle", "formatTextOverflowClipToggle", "formatTextOverflowShrinkToggle"]), { activeCommand: s2, allDisabled: d2 } = V(() => {
57
57
  const e3 = i2.length;
58
58
  let t3, o3 = 0;
59
59
  for (let n3 = 0; n3 < e3; n3++) {
60
60
  const e4 = i2[n3];
61
- e4 && !e4.disabled() && (!t3 && e4?.state() && (t3 = e4), o3++);
61
+ e4 && !e4.disabled() && (!t3 && e4?.getState() && (t3 = e4), o3++);
62
62
  }
63
63
  return t3 = t3 ?? i2[0], { activeCommand: t3, allDisabled: 0 === o3 };
64
64
  }, [i2]), c2 = xt((e3, t3) => {
65
65
  const o3 = { variant: ft.Menuitem, commandHook: n2, scope: a2, disabled: r2 }, l3 = L(H, { children: [z(ke, { ...o3, command: t3.getCommand("formatTextOverflowVisibleToggle") }), z(ke, { ...o3, command: t3.getCommand("formatTextOverflowWrapToggle") }), z(ke, { ...o3, command: t3.getCommand("formatTextOverflowClipToggle") }), z(ve, { orientation: "horizontal" }), z(ke, { ...o3, command: t3.getCommand("formatTextOverflowShrinkToggle") })] });
66
66
  return Te({ ...e3, children: l3 });
67
67
  }, [r2, n2, a2]);
68
- return z(Re, { ref: t2, commands: o2, commandHook: n2, disabled: r2 || d2, scope: a2, label: "Text Overflow", tooltip: "Configure how text behaves when it doesn't fit within a cell.", createPopupPanel: c2, icon: s2?.icon() ?? "TextHorizontalOverflow", ...l2 });
68
+ return z(Re, { ref: t2, commands: o2, commandHook: n2, disabled: r2 || d2, scope: a2, label: "Text Overflow", tooltip: "Configure how text behaves when it doesn't fit within a cell.", createPopupPanel: c2, icon: s2?.getIcon() ?? "TextHorizontalOverflow", ...l2 });
69
69
  })), io = $(O((e2, t2) => {
70
70
  const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, ...l2 } = e2, i2 = ht(o2, ["formatTextRotate0", "formatTextRotate315", "formatTextRotate45", "formatTextRotate90", "formatTextRotate270", "formatSubscriptToggle", "formatTextRotateCustom"]), s2 = V(() => {
71
71
  const e3 = i2.length;
72
72
  for (let t3 = 0; t3 < e3; t3++) {
73
73
  const e4 = i2[t3];
74
- if (e4?.state()) return e4;
74
+ if (e4?.getState()) return e4;
75
75
  }
76
76
  return i2[1];
77
77
  }, [i2]), d2 = K((e3, t3) => {
78
78
  const o3 = { variant: ft.Menuitem, commandHook: n2, scope: a2, disabled: r2 }, l3 = L(H, { children: [z(ke, { ...o3, command: t3.getCommand("formatTextRotate0") }), z(ve, { orientation: "horizontal" }), z(ke, { ...o3, command: t3.getCommand("formatTextRotate315") }), z(ke, { ...o3, command: t3.getCommand("formatTextRotate45") }), z(ke, { ...o3, command: t3.getCommand("formatTextRotate90") }), z(ke, { ...o3, command: t3.getCommand("formatTextRotate270") }), z(ve, { orientation: "horizontal" }), z(De, { ...o3, command: t3.getCommand("formatTextRotateCustom"), label: "Custom" })] });
79
79
  return Te({ ...e3, children: l3 });
80
- }, [r2, n2, a2, o2]), c2 = V(() => 0 !== (o2.getCommand("formatTextRotateCustom")?.state() ?? 0), [i2]);
81
- return z(Re, { ref: t2, commands: o2, commandHook: n2, scope: a2, selected: c2, label: "Text Orientation", tooltip: "Rotate your text diagonally or vertically. This is a great way to label narrow columns.", createPopupPanel: d2, quickCommand: c2 ? "formatTextRotate0" : "formatTextRotate315", icon: s2?.icon() ?? "TextRotation315", ...l2 });
80
+ }, [r2, n2, a2, o2]), c2 = V(() => 0 !== (o2.getCommand("formatTextRotateCustom")?.getState() ?? 0), [i2]);
81
+ return z(Re, { ref: t2, commands: o2, commandHook: n2, scope: a2, selected: c2, label: "Text Orientation", tooltip: "Rotate your text diagonally or vertically. This is a great way to label narrow columns.", createPopupPanel: d2, quickCommand: c2 ? "formatTextRotate0" : "formatTextRotate315", icon: s2?.getIcon() ?? "TextRotation315", ...l2 });
82
82
  })), so = { Preset: "preset", Custom: "custom" }, co = { Start: "start", End: "end" }, mo = {}, po = (e2, t2, o2, n2) => {
83
83
  const a2 = e2 + "-" + t2 + "-" + o2 + (n2 ? "-server" : "");
84
84
  if (mo[a2]) return mo[a2];
@@ -150,7 +150,7 @@ const ao = $(O((e2, t2) => {
150
150
  r2?.set(d2, s2);
151
151
  const c2 = s2.toRGBA().toString();
152
152
  l2?.set(c2, s2);
153
- }, wo = W.lazy(() => import("./DQnCFz2zJgMwLou_.mjs")), So = $(O((t2, a2) => {
153
+ }, wo = W.lazy(() => import("./BD8iIgRl14sLSdN1.mjs")), So = $(O((t2, a2) => {
154
154
  const { selectedColor: r2 = null, previewColor: l2 = t2.selectedColor ?? null, recentColors: i2, schemeLookup: s2, disableAlpha: d2 = false, previewDebounceTime: c2 = 100, initialPanelType: m2, defaultButtonSize: p2 = 24, width: u2, onElementLoad: g2, onDone: h2, onEyeDropStart: f2, onEyeDropStop: x2, onPreviewColor: b2, onPreviewColorImmediate: y2, onSelectColor: w2, autoColor: S2, autoColorLabel: C2 = "Automatic", autoColorPosition: k2 = co.Start, compareRGB: v2 = false, darkMode: T2 = false, ...R2 } = t2, D2 = l2 || r2, F2 = xt(b2, [b2]), M2 = xt(y2, [y2]), N2 = xt(w2, [w2]), B2 = xt(f2, [f2]), E2 = xt(x2, [x2]), [P2, I2] = j(false), A2 = ct(), W2 = V(() => s2 || e.getDefaultSchemeLookup(), [s2]), $2 = V(() => {
155
155
  const e2 = /* @__PURE__ */ new Map(), t3 = /* @__PURE__ */ new Map(), n2 = [];
156
156
  yo("Primary Background", "bg1", W2, n2, e2, t3), yo("Primary Text", "tx1", W2, n2, e2, t3), yo("Secondary Background", "bg2", W2, n2, e2, t3), yo("Secondary Text", "tx2", W2, n2, e2, t3), yo("Accent 1", "accent1", W2, n2, e2, t3), yo("Accent 2", "accent2", W2, n2, e2, t3), yo("Accent 3", "accent3", W2, n2, e2, t3), yo("Accent 4", "accent4", W2, n2, e2, t3), yo("Accent 5", "accent5", W2, n2, e2, t3), yo("Accent 6", "accent6", W2, n2, e2, t3);
@@ -337,7 +337,7 @@ const ao = $(O((e2, t2) => {
337
337
  h2?.(v2);
338
338
  }, disabled: i2, icon: N2, ...g2 });
339
339
  })), Fo = $(O((e2, t2) => {
340
- const { commands: o2, command: n2, commandHook: a2, variant: r2 = ft.Toolbar, disabled: l2 = false, autoColor: i2, autoStrokeStyle: s2, schemeLookup: d2, createTemporaryBorder: c2, selectedBorder: m2, onSelectBorder: p2, darkMode: u2, icon: g2, label: h2, ...f2 } = e2, x2 = ht(o2, ["formatBorder"]), b2 = n2 ?? x2[0], y2 = b2?.context() ?? null, w2 = y2?.autoColor ?? i2, S2 = y2?.autoStyle ?? s2, C2 = m2 ?? y2?.quickBorder, k2 = u2 ?? y2?.darkMode, v2 = c2 ?? y2?.createTemporaryBorder, T2 = d2 ?? y2?.schemeLookup, R2 = xt((e3) => {
340
+ const { commands: o2, command: n2, commandHook: a2, variant: r2 = ft.Toolbar, disabled: l2 = false, autoColor: i2, autoStrokeStyle: s2, schemeLookup: d2, createTemporaryBorder: c2, selectedBorder: m2, onSelectBorder: p2, darkMode: u2, icon: g2, label: h2, ...f2 } = e2, x2 = ht(o2, ["formatBorder"]), b2 = n2 ?? x2[0], y2 = b2?.getContext() ?? null, w2 = y2?.autoColor ?? i2, S2 = y2?.autoStyle ?? s2, C2 = m2 ?? y2?.quickBorder, k2 = u2 ?? y2?.darkMode, v2 = c2 ?? y2?.createTemporaryBorder, T2 = d2 ?? y2?.schemeLookup, R2 = xt((e3) => {
341
341
  y2?.onBorderSelect && y2.onBorderSelect(e3), p2?.(e3), b2?.execute(e3, a2);
342
342
  }, [b2, p2, a2]), D2 = K((e3, t3) => {
343
343
  const { children: o3, title: n3, ...a3 } = e3;
@@ -360,13 +360,13 @@ const ao = $(O((e2, t2) => {
360
360
  })), Bo = $(O((e2, t2) => z(We, { ref: t2, ...e2, popupCommandKeys: ["find", "findReplace", "goto"], scope: "find", label: "Find & Select", tooltip: "Find and replace cells or go to a specific location.", quickCommand: "find", icon: "Find" }))), Eo = $(O((e2, t2) => {
361
361
  const { command: o2, commandHook: n2, showQuickButtons: a2 = !!e2.commands, commands: i2, fontSizes: s2 = r.DefaultFontSizes, disabled: d2 = false, parentFloat: c2, icon: m2, label: p2, sx: u2, ...g2 } = e2;
362
362
  St(o2);
363
- const h2 = () => o2?.state()?.toString() || "11", [f2, x2] = j(h2), b2 = xt(() => {
363
+ const h2 = () => o2?.getState()?.toString() || "11", [f2, x2] = j(h2), b2 = xt(() => {
364
364
  const e3 = parseFloat(f2);
365
365
  isNaN(e3) ? x2(h2()) : parseFloat(h2()) !== e3 && o2.execute(e3, n2);
366
366
  }, [h2, o2, f2, n2]);
367
367
  _(() => {
368
368
  x2(h2());
369
- }, [o2?.state()]);
369
+ }, [o2?.getState()]);
370
370
  const y2 = V(() => {
371
371
  if (!n2) return null;
372
372
  const e3 = { ...n2 };
@@ -394,7 +394,7 @@ const ao = $(O((e2, t2) => {
394
394
  }, [f2, d2, o2]), T2 = K((e3) => {
395
395
  const t3 = (e4) => {
396
396
  o2?.execute(e4, n2);
397
- }, a3 = o2?.state(), r2 = [];
397
+ }, a3 = o2?.getState(), r2 = [];
398
398
  for (let e4 = 0; e4 < s2.length; e4++) {
399
399
  const n3 = s2[e4] === a3;
400
400
  r2.push(z(Pe, { selected: n3, icon: n3 ? z($e, {}) : void 0, disabled: d2 || !o2 || o2.disabled(), onMouseDown: (e5) => {
@@ -407,8 +407,8 @@ const ao = $(O((e2, t2) => {
407
407
  }
408
408
  const l2 = L(Q, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...g2, children: [S2, z(ve, { orientation: "horizontal" }), z(Q, { sx: { overflow: "auto", flex: "1 1 100%" }, children: r2 })] });
409
409
  return Te({ ...e3, children: l2 });
410
- }, [d2, o2?.state(), n2]);
411
- return z(Be, { ref: t2, sx: { ...u2 }, tabIndex: -1, outlined: true, disabled: d2, parentFloat: c2, createPopupPanel: T2, createTooltip: ({ children: e3 }, t3) => z(Le, { label: o2?.label(), description: o2?.description(), disabled: t3 || o2?.disabled(), children: e3 }), renderQuickButton: v2, ...g2 });
410
+ }, [d2, o2?.getState(), n2]);
411
+ return z(Be, { ref: t2, sx: { ...u2 }, tabIndex: -1, outlined: true, disabled: d2, parentFloat: c2, createPopupPanel: T2, createTooltip: ({ children: e3 }, t3) => z(Le, { label: o2?.getLabel(), description: o2?.getDescription(), disabled: t3 || o2?.disabled(), children: e3 }), renderQuickButton: v2, ...g2 });
412
412
  })), Po = $((e2) => {
413
413
  const { selected: t2, disabled: o2, formattedValue: n2, handleSetFormat: a2, format: r2, sx: l2, ...s2 } = e2;
414
414
  return z(Pe, { sx: { maxWidth: "360px", display: "flex", "*": { lineHeight: "1.2" }, ...l2 }, disabled: o2, selected: t2, icon: t2 ? z($e, {}) : void 0, onMouseDown: (e3) => {
@@ -419,14 +419,14 @@ const ao = $(O((e2, t2) => {
419
419
  e3.keyCode !== yt.Enter && e3.keyCode !== yt.Space || a2(r2.numberFormat);
420
420
  }, ...s2, children: L(Q, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, children: [L(J, { component: "div", children: [r2.formatType, r2.formatType === i.Type.Custom ? "…" : ""] }), z(J, { variant: "caption", component: "div", sx: { color: (e3) => Kt(e3.palette.text.primary, 0.6), paddingTop: n2 && n2.length > 0 ? "1px" : void 0, overflow: "hidden", textOverflow: "ellipsis" }, children: n2 && n2.length > 0 ? n2 : " " })] }) });
421
421
  }), Io = $(O((e2, t2) => {
422
- const { commands: o2, commandHook: n2, scope: a2, sx: r2, disabled: s2 = false, parentFloat: d2, ...c2 } = e2, m2 = ht(o2, ["formatNumberFormat"])[0], p2 = m2?.state() ? i.Styles.lookupStyle(m2?.state()).formatType : i.Type.General, u2 = V(() => {
422
+ const { commands: o2, commandHook: n2, scope: a2, sx: r2, disabled: s2 = false, parentFloat: d2, ...c2 } = e2, m2 = ht(o2, ["formatNumberFormat"])[0], p2 = m2?.getState() ? i.Styles.lookupStyle(m2?.getState()).formatType : i.Type.General, u2 = V(() => {
423
423
  if (!n2) return null;
424
424
  const e3 = { ...n2 };
425
425
  return delete e3.beforeExecute, e3;
426
426
  }, [n2]), g2 = K((e3, t3) => {
427
427
  const o3 = (e4) => {
428
- n2?.beforeExecute?.(m2, m2?.state()), m2.execute(e4, n2), n2?.onExecute?.(m2, m2?.state());
429
- }, r3 = m2?.context()(), l2 = i.Styles.lookupPrimary(), d3 = [];
428
+ n2?.beforeExecute?.(m2, m2?.getState()), m2.execute(e4, n2), n2?.onExecute?.(m2, m2?.getState());
429
+ }, r3 = m2?.getContext()(), l2 = i.Styles.lookupPrimary(), d3 = [];
430
430
  for (let e4 = 0; e4 < l2.length; e4++) {
431
431
  let t4 = "";
432
432
  if (r3 && !r3.isEmpty()) try {
@@ -439,14 +439,14 @@ const ao = $(O((e2, t2) => {
439
439
  d3.push(z(Po, { selected: n3, disabled: s2 || !m2 || m2.disabled(), formattedValue: t4, handleSetFormat: o3, format: l2[e4] }, l2[e4].formatType));
440
440
  }
441
441
  const g3 = { numberFormat: "", formatType: i.Type.Custom }, h3 = p2 === i.Type.Custom, f3 = z(Po, { selected: h3, disabled: s2 || !m2 || m2.disabled(), formattedValue: h3 ? r3.getNumberFormat().displayText : "", handleSetFormat: () => {
442
- n2?.beforeExecute?.(m2, m2?.state()), t3.getCommand("formatNumberDialog")?.execute(m2?.state()), n2?.onExecute?.(m2, m2?.state());
442
+ n2?.beforeExecute?.(m2, m2?.getState()), t3.getCommand("formatNumberDialog")?.execute(m2?.getState()), n2?.onExecute?.(m2, m2?.getState());
443
443
  }, format: g3, sx: { flex: "0", width: "100%" } }, i.Type.Custom), x2 = L(Q, { className: "quick-buttons", sx: { display: "flex", alignItems: "center", justifyContent: "center" }, onClick: (e4) => e4.stopPropagation(), children: [z(ke, { command: t3.getCommand("formatNumberFormatAccountingStyle"), commandHook: u2, scope: a2 }), z(ke, { command: t3.getCommand("formatNumberFormatPercentStyle"), commandHook: u2, scope: a2 }), z(ke, { command: t3.getCommand("formatNumberFormatCommaStyle"), commandHook: u2, scope: a2 }), z(ke, { command: t3.getCommand("formatNumberFormatIncreaseDecimal"), commandHook: u2, scope: a2 }), z(ke, { command: t3.getCommand("formatNumberFormatDecreaseDecimal"), commandHook: u2, scope: a2 })] }), b2 = L(Q, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...c2, children: [x2, z(ve, { orientation: "horizontal" }), z(Q, { sx: { overflow: "auto", flex: "1 1 100%" }, children: d3 }), z(ve, { orientation: "horizontal" }), f3] });
444
444
  return Te({ ...e3, children: b2 });
445
- }, [m2?.context(), m2?.state(), n2, a2]), h2 = ct(), f2 = V(() => {
445
+ }, [m2?.getContext(), m2?.getState(), n2, a2]), h2 = ct(), f2 = V(() => {
446
446
  const e3 = i.Type.MediumTime;
447
447
  return `${l.getSharedMeasurer()(e3, Math.round(h2.typography.fontSize), h2.typography.fontFamily).width}px`;
448
448
  }, [h2]);
449
- return z(Re, { ref: t2, commands: o2, sx: r2, outlined: true, disabled: s2, parentFloat: d2, createPopupPanel: g2, createTooltip: ({ children: e3 }, t3) => z(Le, { label: m2?.label(), description: m2?.description(), disabled: t3, children: e3 }), icon: z(Q, { sx: { display: "flex", paddingLeft: "4px", paddingRight: "4px", fontSize: (e3) => `${Math.round(e3.typography.fontSize)}px`, color: (e3) => e3.palette.text.secondary, fontFamily: (e3) => e3.typography.fontFamily, width: f2 }, children: z(Q, { sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "pre" }, children: p2 }) }), ...c2 });
449
+ return z(Re, { ref: t2, commands: o2, sx: r2, outlined: true, disabled: s2, parentFloat: d2, createPopupPanel: g2, createTooltip: ({ children: e3 }, t3) => z(Le, { label: m2?.getLabel(), description: m2?.getDescription(), disabled: t3, children: e3 }), icon: z(Q, { sx: { display: "flex", paddingLeft: "4px", paddingRight: "4px", fontSize: (e3) => `${Math.round(e3.typography.fontSize)}px`, color: (e3) => e3.palette.text.secondary, fontFamily: (e3) => e3.typography.fontFamily, width: f2 }, children: z(Q, { sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "pre" }, children: p2 }) }), ...c2 });
450
450
  })), Ao = $(O((e2, t2) => z(We, { ref: t2, ...e2, popupCommandKeys: ["clearAll", "clearFormats", "clearContents", "clearComments", "clearHyperlinks"], scope: "clear", label: "Clear", tooltip: "Clear everything in the cell, or remove just the formatting or contents.", icon: "ClearAll" }))), Lo = $(O((e2, t2) => z(We, { ref: t2, ...e2, popupCommandKeys: ["fillDown", "fillRight", "fillUp", "fillLeft"], scope: "fill", label: "Fill", tooltip: "Fill the selected cells with the value from one of the corners.", icon: "FillDown" }))), Ho = $(O((e2, t2) => {
451
451
  const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, disableSheet: l2 = false, preferSingleMenu: i2 = true, showQuickButton: s2 = true, variant: d2 = ft.Toolbar, ...c2 } = e2, m2 = ["insertCellsShiftDown", "insertCellsShiftRight", "insertRows", "insertColumns", "addSheet"];
452
452
  l2 || m2.push("addSheet");
@@ -501,291 +501,7 @@ const ao = $(O((e2, t2) => {
501
501
  return z(Re, { ref: t2, commands: o2, commandHook: n2, scope: a2, createPopupPanel: d2, disabled: r2 || s2, icon: "CellsFormat", label: "Format Cells", tooltip: "Change row and column sizes or visibility.", ...l2 });
502
502
  }));
503
503
  Wo.displayName = "CellsFormatCommandButton";
504
- const $o = $(O((t2, o2) => {
505
- const { command: n2, commandHook: a2, onSelectColor: r2, disabled: l2 = false, variant: i2 = ft.Toolbar, quickColor: s2, propsPanel: d2, isSplit: c2 = false, darkMode: m2, icon: p2, ...u2 } = t2, { autoColor: g2, schemeLookup: h2, recentColors: f2, ...x2 } = d2;
506
- if (u2.selectedColor) throw new Error("Command selectedColor will be used. Do not try to provide one as a direct argument");
507
- St(n2);
508
- const b2 = n2?.context();
509
- let y2 = s2 ?? b2?.quickColor;
510
- c2 && !y2 && (y2 = new e("transparent"));
511
- const w2 = g2 ?? b2?.autoColor, S2 = h2 ?? b2?.schemeLookup, C2 = f2 ?? b2?.recentColors, k2 = m2 ?? b2?.darkMode, v2 = V(() => ({ autoColor: w2, schemeLookup: S2, recentColors: C2, darkMode: k2, ...x2 }), [w2, S2, C2, k2]), T2 = xt((e2, t3) => {
512
- e2 && t3 && b2?.addRecentColor && b2.addRecentColor(e2), b2?.onColorSelect && b2.onColorSelect(e2), r2?.(e2, t3), n2?.execute(e2, a2);
513
- }, [n2, r2, a2, b2]), R2 = K((e2, t3) => {
514
- const { children: o3, title: a3, ...r3 } = e2;
515
- let s3 = e2.children;
516
- return (n2?.disabled() || l2) && (s3 = z("div", { children: s3 })), z(ze, { command: n2, placement: i2 === ft.Toolbar ? "bottom-start" : "right-start", disabled: t3, ...r3, children: s3 });
517
- }, [n2, l2]);
518
- return z(ko, { ref: o2, propsPanel: v2, icon: p2 ?? n2?.icon(b2), quickColor: y2, selectedColor: n2?.state(), onSelectColor: T2, variant: i2 === ft.Menuitem ? Ne.Menuitem : Ne.Toolbar, createTooltip: R2, label: n2?.label(), disabled: l2 || !n2 || n2.disabled(), compareRGB: true, darkMode: k2, ...u2 });
519
- }));
520
- $o.displayName = "ColorCommandButton";
521
- const Oo = $(O((e2, t2) => {
522
- const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, parentFloat: l2, ...i2 } = e2, s2 = ht(o2, ["gridlinesToggle", "sheetViewToggleGridlinesColumns", "sheetViewToggleGridlinesRows"]), d2 = K((e3, t3) => {
523
- const o3 = { variant: ft.Menuitem, parentFloat: e3.floatReference, commandHook: n2, scope: a2, disabled: r2 }, l3 = L(H, { children: [z(ke, { ...o3, command: t3.getCommand("gridlinesToggle") }), z($o, { ...o3, command: t3.getCommand("sheetViewFormatGridlinesColor"), icon: z(wt, { iconKey: "stroke.colored" }), propsPanel: { disableAlpha: true } }), z(ve, { orientation: "horizontal" }), z(ke, { ...o3, command: t3.getCommand("sheetViewToggleGridlinesColumns") }), z(ke, { ...o3, command: t3.getCommand("sheetViewToggleGridlinesRows") })] });
524
- return Te({ ...e3, children: l3 });
525
- }, [r2, n2]);
526
- return z(Re, { ref: t2, parentFloat: l2, quickCommand: s2[0]?.key(), commands: o2, commandHook: n2, createPopupPanel: d2, label: "Gridlines", tooltip: "Configure how the lines between rows and columns in the sheet are displayed.", icon: z(Oe, { command: s2[0], scope: "view" }), ...i2 });
527
- })), Vo = $(O((e2, t2) => z(We, { ref: t2, ...e2, popupCommandKeys: ["sortAscending", "sortDescending", "sortCustom", null, "autoFilterToggle", "autoFilterClear", "autoFilterReapply"], scope: "sortFilter", label: "Sort & Filter", tooltip: L(H, { children: [z("span", { children: "Organize your data so it's easier to analyze." }), z("br", {}), z("span", { children: "You can sort the selected data from smallest to largest or largest to smallest." })] }), icon: "SortFilter" }))), Ko = $(O((e2, t2) => {
528
- const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, ...l2 } = e2, i2 = K((e3, t3) => {
529
- const o3 = { variant: ft.Menuitem, commandHook: n2, scope: "sort", disabled: r2 }, a3 = L(H, { children: [z(ke, { ...o3, scope: "filter", command: t3.getCommand("autoFilterToggle") }), z(ke, { ...o3, scope: "filter", command: t3.getCommand("autoFilterClear") }), z(ke, { ...o3, scope: "filter", command: t3.getCommand("autoFilterReapply") })] });
530
- return Te({ ...e3, children: a3 });
531
- }, [r2, n2, a2]);
532
- return z(Re, { ref: t2, commands: o2, commandHook: n2, scope: a2, disabled: r2, label: "Filter", tooltip: L(H, { children: [z("span", { children: "Organize your data so it's easier to analyze." }), z("br", {}), z("span", { children: "You can sort the selected data from smallest to largest or largest to smallest." })] }), createPopupPanel: i2, icon: "FilterToggle", ...l2 });
533
- })), Go = $(O((e2, t2) => {
534
- const { quickCommand: o2, icon: n2, isRedo: a2 = false, nestRedo: r2 = true, undoManager: l2, scope: i2, sx: s2, disabled: d2, commands: c2, ...m2 } = e2, p2 = [o2];
535
- !a2 && r2 && p2.push("redo");
536
- const u2 = ht(c2, p2), g2 = u2[0], h2 = u2[1], f2 = l2 ?? g2?.context?.()?.undoManager;
537
- let x2 = d2;
538
- d2 || (x2 = !g2 || g2.disabled(), h2 && !h2.disabled() && (x2 = false));
539
- const [b2, y2] = j(0), w2 = K((e3, t3) => {
540
- let o3 = 0 === b2 ? "Cancel" : `${g2.label()} ${b2} Action${1 === b2 ? "" : "s"}`, n3 = false;
541
- f2 || (n3 = true), n3 || (n3 = r2 ? !f2.hasRedo() && !f2.hasUndo() : !f2.hasRedo());
542
- const l3 = (e4) => {
543
- g2.execute(e4);
544
- }, i3 = z(Pe, { sx: { display: "flex", flex: "none", alignItems: "center", justifyContent: "center", padding: n3 ? void 0 : "0 0", minWidth: "180px" }, icon: z(wt, {}), onMouseEnter: () => {
545
- y2(0);
546
- }, onMouseDown: (e4) => {
547
- 0 === e4.button && e4.preventDefault();
548
- }, onMouseUp: (e4) => {
549
- 0 === e4.button && l3(b2);
550
- }, onKeyDown: (e4) => {
551
- e4.isDefaultPrevented() || e4.keyCode !== yt.Enter && e4.keyCode !== yt.Space || l3(b2);
552
- }, children: z(J, { component: "div", variant: "caption", sx: { fontSize: "0.875rem", letterSpacing: "0.01071em" }, children: o3 }) });
553
- if (n3) return i3;
554
- const s3 = a2 ? f2?.getRedoDescriptions() : f2?.getUndoDescriptions(), d3 = [];
555
- for (let e4 = 0; e4 < s3.length; e4++) {
556
- const t4 = s3[e4];
557
- d3.push(z(Pe, { sx: { maxWidth: "360px", display: "flex" }, disabled: x2, selected: e4 < b2, icon: z(wt, {}), onMouseEnter: () => {
558
- y2(e4 + 1);
559
- }, onMouseDown: (e5) => {
560
- 0 === e5.button && e5.preventDefault();
561
- }, onMouseUp: (t5) => {
562
- 0 === t5.button && l3(e4 + 1);
563
- }, onKeyDown: (t5) => {
564
- t5.isDefaultPrevented() || t5.keyCode !== yt.Enter && t5.keyCode !== yt.Space || l3(e4 + 1);
565
- }, children: L(Q, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "row", alignItems: "center", overflow: "hidden" }, children: [z(J, { component: "div", children: t4 }), z(wt, {})] }) }, `action:${e4}`));
566
- }
567
- let c3 = null;
568
- if (!a2 && r2) {
569
- const o4 = { scope: "undo", commands: t3, variant: ft.Menuitem, parentFloat: e3.floatReference };
570
- c3 = [], c3.push(z(Go, { ...o4, quickCommand: "redo", isRedo: true }, "nested:redo")), f2.hasRedo() && f2.hasUndo() && c3.push(z(ve, { orientation: "horizontal" }, "action:redo-div"));
571
- }
572
- const m3 = L(Q, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, onClick: () => {
573
- e3.closeFloatAll();
574
- }, onMouseLeave: () => {
575
- y2(0);
576
- }, children: [c3, z(Q, { sx: { overflow: "auto", flex: "1 1 100%" }, children: d3 }), z(ve, { orientation: "horizontal" }), i3] });
577
- return Te({ ...e3, children: m3 });
578
- }, [g2?.context(), g2?.state(), i2, f2, b2, x2]);
579
- return z(Re, { ref: t2, commands: c2, quickCommand: o2, scope: i2, disabled: x2, label: g2?.label() ?? (a2 ? "Redo" : "Undo"), tooltip: z(H, { children: z("span", { children: `${g2?.label() ?? "No"} last actions.` }) }), createPopupPanel: w2, icon: n2 ?? (a2 ? "Redo" : "Undo"), selected: false, ...m2 });
580
- })), jo = s.getFontList(), _o = /* @__PURE__ */ new Map();
581
- for (let e2 = 0; e2 < jo.length; e2++) _o.set(jo[e2].fontRef.getFamily(), jo[e2]);
582
- const Uo = $(O((e2, t2) => {
583
- const { command: o2, commandHook: n2, sx: a2, disabled: r2 = false, parentFloat: i2, icon: s2, label: d2, ...c2 } = e2;
584
- St(o2);
585
- const m2 = o2?.state(), p2 = ct(), u2 = V(() => `${l.getSharedMeasurer()("Times New Roman", Math.round(p2.typography.fontSize), p2.typography.fontFamily).width}px`, [p2]), g2 = K((e3) => {
586
- const t3 = (e4) => {
587
- o2?.execute(e4, n2);
588
- }, a3 = [];
589
- for (let e4 = 0; e4 < jo.length; e4++) a3.push({ key: jo[e4].fontRef.getFamily(), description: jo[e4].fontRef.getFamily() });
590
- _o.get(m2) || a3.unshift({ key: m2, description: m2 });
591
- const l2 = [];
592
- for (let e4 = 0; e4 < a3.length; e4++) {
593
- const n3 = a3[e4].key === m2;
594
- l2.push(z(Pe, { sx: { display: "flex", paddingTop: "4px", paddingBottom: "4px" }, selected: n3, disabled: r2 || !o2 || o2.disabled(), icon: n3 ? z($e, {}) : void 0, onMouseUp: (o3) => {
595
- 0 === o3.button && t3(a3[e4].key);
596
- }, onMouseDown: (e5) => {
597
- 0 === e5.button && e5.preventDefault();
598
- }, onKeyDown: (o3) => {
599
- o3.keyCode !== yt.Enter && o3.keyCode !== yt.Space || t3(a3[e4].key);
600
- }, children: z(Q, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, children: z(J, { component: "div", sx: { whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", fontFamily: () => a3[e4]?.key }, children: a3[e4].description }) }) }, e4 + "" + a3[e4].key));
601
- }
602
- const i3 = z(Q, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%" }, ...c2, children: z(Q, { sx: { overflow: "auto", flex: "1 1 100%" }, children: l2 }) });
603
- return Te({ ...e3, children: i3 });
604
- }, [r2, o2?.state()]);
605
- return z(Be, { ref: t2, sx: { ...a2 }, outlined: true, disabled: r2, parentFloat: i2, createPopupPanel: g2, createTooltip: ({ children: e3 }, t3) => z(Le, { label: o2?.label(), description: o2?.description(), disabled: t3, children: e3 }), icon: z(Q, { sx: { display: "flex", paddingLeft: "4px", paddingRight: "4px", fontSize: (e3) => `${Math.round(e3.typography.fontSize)}px`, fontFamily: (e3) => e3.typography.fontFamily, color: (e3) => e3.palette.text.secondary, width: u2 }, children: z(Q, { sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "pre" }, children: m2 }) }), ...c2 });
606
- })), qo = $(O((e2, t2) => {
607
- const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, ...l2 } = e2, i2 = ht(o2, ["formatStrikeThroughToggle", "formatSuperscriptToggle", "formatSubscriptToggle"]), s2 = V(() => {
608
- const e3 = i2.length;
609
- for (let t3 = 0; t3 < e3; t3++) {
610
- const e4 = i2[t3];
611
- if (e4?.state()) return e4;
612
- }
613
- return i2[0];
614
- }, [i2]), d2 = K((e3, t3) => {
615
- const o3 = { variant: ft.Menuitem, commandHook: n2, scope: "textEffects", disabled: r2 }, a3 = L(H, { children: [z(ke, { ...o3, command: t3.getCommand("formatStrikeThroughToggle") }), z(ke, { ...o3, command: t3.getCommand("formatSuperscriptToggle") }), z(ke, { ...o3, command: t3.getCommand("formatSubscriptToggle") })] });
616
- return Te({ ...e3, children: a3 });
617
- }, [r2, n2, a2]);
618
- return z(Re, { ref: t2, quickCommand: s2?.key(), commands: o2, commandHook: n2, createPopupPanel: d2, label: "Text Effects", tooltip: "Style your text to differentiate it.", icon: s2?.icon() ?? "TextStrike", ...l2 });
619
- })), Xo = $(O((e2, t2) => {
620
- const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, ...l2 } = e2, i2 = ht(o2, ["formatUnderlinedToggle", "formatUnderlinedDoubleToggle", "formatUnderlinedAccountingToggle", "formatUnderlinedAccountingDoubleToggle"]), s2 = V(() => {
621
- const e3 = i2.length;
622
- for (let t3 = 0; t3 < e3; t3++) if (i2[t3]?.state()) return i2[t3];
623
- return i2[0];
624
- }, [i2]), d2 = K((e3, t3) => {
625
- const o3 = { variant: ft.Menuitem, commandHook: n2, scope: "underline", disabled: r2 }, a3 = L(H, { children: [z(ke, { ...o3, command: t3.getCommand("formatUnderlinedToggle") }), z(ke, { ...o3, command: t3.getCommand("formatUnderlinedDoubleToggle") }), z(ke, { ...o3, command: t3.getCommand("formatUnderlinedAccountingToggle"), commandHook: n2 }), z(ke, { ...o3, command: t3.getCommand("formatUnderlinedAccountingDoubleToggle") })] });
626
- return Te({ ...e3, children: a3 });
627
- }, [r2, n2, a2]);
628
- return z(Re, { ref: t2, quickCommand: s2?.key(), commands: o2, commandHook: n2, label: "Underline", tooltip: "All underline stylings.", createPopupPanel: d2, icon: s2?.icon() ?? "TextUnderline", ...l2 });
629
- })), Zo = $(O((e2, t2) => {
630
- const { command: o2, commands: n2, commandHook: a2, scope: r2, includePasteAllInPopup: l2 = true, disabled: i2 = false, ...s2 } = e2, d2 = xt((e3, t3) => {
631
- const o3 = { variant: ft.Menuitem, commandHook: a2, scope: "paste", disabled: i2 }, n3 = [];
632
- return l2 && (n3.push(X(ke, { ...o3, command: t3.getCommand("paste"), key: "paste" })), n3.push(z(ve, { orientation: "horizontal" }, "paste-div"))), n3.push(X(ke, { ...o3, command: t3.getCommand("pasteValues"), key: "pasteValues" })), n3.push(X(ke, { ...o3, command: t3.getCommand("pasteFormats"), key: "pasteFormats" })), n3.push(X(ke, { ...o3, command: t3.getCommand("pasteFormulas"), key: "pasteFormulas" })), n3.push(X(ke, { ...o3, command: t3.getCommand("pasteTranspose"), key: "pasteTranspose" })), n3.push(X(ke, { ...o3, command: t3.getCommand("pasteLinks"), key: "pasteLinks" })), Te({ ...e3, children: n3 });
633
- }, [i2, a2, r2, l2]);
634
- return z(Re, { ref: t2, commands: n2, commandHook: a2, scope: r2, createPopupPanel: d2, label: "Paste", tooltip: "Add content to the clipboard to your document.", quickCommand: "paste", ...s2 });
635
- })), Yo = $(O((e2, t2) => {
636
- const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, parentFloat: l2, ...i2 } = e2, s2 = ht(o2, ["sheetViewToggleShowHeadings", "sheetViewToggleShowHeadingColumns", "sheetViewToggleShowHeadingRows"]), d2 = K((e3, t3) => {
637
- const o3 = { variant: ft.Menuitem, parentFloat: e3.floatReference, commandHook: n2, scope: a2, disabled: r2 }, l3 = L(H, { children: [z(ke, { ...o3, command: t3.getCommand("sheetViewToggleShowHeadings") }), z(ke, { ...o3, command: t3.getCommand("sheetViewToggleShowHeadingsNumeric") }), z(ve, { orientation: "horizontal" }), z(ke, { ...o3, command: t3.getCommand("sheetViewToggleShowHeadingColumns") }), z(ke, { ...o3, command: t3.getCommand("sheetViewToggleShowHeadingRows") })] });
638
- return Te({ ...e3, children: l3 });
639
- }, [r2, n2, a2]);
640
- return z(Re, { ref: t2, parentFloat: l2, quickCommand: s2[0]?.key(), commands: o2, commandHook: n2, createPopupPanel: d2, label: "Headings", tooltip: "Configure how the column and rows headings in the sheet are displayed.", icon: z(Oe, { command: s2[0], scope: "view" }), ...i2 });
641
- })), Qo = $(O((e2, t2) => {
642
- const { commands: o2, commandHook: n2, scope: a2 = "view", disabled: r2 = false, ...l2 } = e2, i2 = K((e3) => {
643
- const t3 = { variant: ft.Menuitem, parentFloat: e3.floatReference, commandHook: n2, scope: a2, disabled: r2 }, l3 = L(H, { children: [z(ke, { ...t3, command: o2.getCommand("workbookViewToggleShowFormulaBar") }), z(ke, { ...t3, command: o2.getCommand("workbookViewToggleShowTabs") }), z(ke, { ...t3, command: o2.getCommand("workbookViewToggleShowStatusBar") }), z(ve, { orientation: "horizontal" }), z(ke, { ...t3, command: o2.getCommand("workbookViewToggleShowHorizontalScrollBar") }), z(ke, { ...t3, command: o2.getCommand("workbookViewToggleShowVerticalScrollBar") })] });
644
- return Te({ ...e3, children: l3 });
645
- }, [r2, o2, n2, a2]);
646
- return z(Re, { ref: t2, commands: o2, disabled: r2, commandHook: n2, scope: a2, label: "Workbook View", tooltip: "Options to configure how the workbook is displayed.", createPopupPanel: i2, icon: z(Oe, { icon: null, label: "Workbook View" }), ...l2 });
647
- })), Jo = $(O((e2, t2) => {
648
- const { value: o2, cellStyle: n2, styles: a2, createTemporaryCell: r2, bodyStyle: l2, sx: i2, propsBorder: s2, disabled: d2, ...m2 } = e2, p2 = V(() => r2({ value: o2, style: n2 }), [o2, n2, r2]), u2 = V(() => p2.getStyle(), [p2, l2]), g2 = V(() => u2.getFill().toCSS(l2?.darkMode ?? false), [u2]), h2 = u2.getInsets(), f2 = u2.getFont(), x2 = K(() => u2.getBorder(), [u2]);
649
- return z(Q, { ref: t2, sx: { width: "100px", height: "100%", textOverflow: "ellipsis", display: "flex", alignItems: "stretch", background: l2?.fill, filter: d2 ? "grayscale(0.4) opacity(0.8);" : "none", "& .fill": { flex: "1 1 100%", overflow: "hidden", ...g2 }, "& .text": { flex: "1 1 100%", ...f2.toCSS(l2?.darkMode ?? false, 1), boxSizing: "border-box", padding: `${h2.top}px ${h2.right}px ${h2.bottom}px ${h2.left}px`, margin: "0px", outline: "none", resize: "none", overflow: "hidden", textOverflow: "ellipsis", verticalAlign: "baseline", textDecoration: f2.toCSS().textDecoration, textAlign: c.toCSSHorizontalTextAlign(p2.getRenderHorizontalAlignment()), background: "transparent", maxHeight: "100%", whiteSpace: "pre", wordWrap: "break-word" }, ...i2 }, ...m2, children: z(y, { getBorderAt: x2, darkMode: l2?.darkMode ?? false, rowCount: 1, columnCount: 1, style: { height: "100%", width: "100%", ...s2?.style }, ...s2, children: z(Q, { className: "fill", sx: { paddingLeft: "4px", paddingRight: "4px", marginLeft: "-1px", marginTop: "-1px", marginRight: "-2px", marginBottom: "-2px", display: "flex", alignItems: "center" }, children: z(Q, { className: "text", children: o2 }) }) }) });
650
- })), en = $((e2) => {
651
- const { styles: t2, namedStyle: o2, selectedNamed: n2, hasContextMenu: a2 = true, bodyStyle: r2, onSelectNamed: l2, createTemporaryCell: i2, parentFloat: s2, commands: c2, disabled: m2, commandHook: p2, ...u2 } = e2, g2 = K((e3) => {
652
- const t3 = { variant: ft.Menuitem, commandHook: p2, context: "cellStyle" }, n3 = L(H, { children: [z(ke, { ...t3, style: { fontWeight: 550 }, command: c2.getCommand("formatCellStyle"), commandState: o2, disabled: m2 }), z(ve, { orientation: "horizontal" }), z(ke, { ...t3, command: c2.getCommand("modifyCellStyle"), commandState: { named: o2 } }), z(ke, { ...t3, command: c2.getCommand("deleteCellStyle"), commandState: o2, disabled: m2 || o2?.getName() === d.BuiltInName.Normal })] });
653
- return Te({ ...e3, children: z(Q, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: z(Q, { sx: { overflow: "auto", flex: "1 1 100%" }, children: n3 }) }) });
654
- }, []), h2 = o2?.getName() === n2?.getName();
655
- let f2 = z(He, { sx: { borderRadius: "2px", padding: "2px", margin: "0px 0px", display: "flex", border: (e3) => `solid ${h2 ? e3.palette.primary.dark : "transparent"} 1px` }, propsTooltip: { label: o2.getName(), placement: "bottom-start" }, disabled: m2, icon: null, onClick: () => {
656
- l2?.(o2);
657
- }, ...u2, children: z(Jo, { value: o2.getName(), cellStyle: { named: o2.getName() }, styles: t2, createTemporaryCell: i2, bodyStyle: r2 }) }, o2.getName());
658
- return a2 && (f2 = z(Ke, { label: o2.getName(), parentFloat: s2, createPopupPanel: g2, children: f2 })), f2;
659
- }), tn = $(O((e2, t2) => {
660
- const { commands: o2, command: n2, commandHook: a2, selectedNamed: r2, onSelectNamed: i2, disabled: s2 = false, bodyStyle: c2, usePreviewIcon: m2 = true, ...p2 } = e2;
661
- St(n2);
662
- const u2 = n2?.context(), g2 = u2?.styles, h2 = r2 ?? u2?.named(), f2 = c2 ?? u2?.bodyStyle(), x2 = xt((e3) => {
663
- i2?.(e3), n2?.execute(e3, a2);
664
- }, [n2, i2, a2]), b2 = K((e3, t3) => {
665
- const n3 = { onSelectNamed: x2, styles: g2(), parentFloat: e3.floatReference }, r3 = g2().getCustomNamed(), l2 = /* @__PURE__ */ new Map(), i3 = [];
666
- for (let e4 = 0; e4 < r3.length; e4++) l2.set(r3[e4].getName(), r3[e4]), null === g2().getNamed(r3[e4].getName()).getBuiltInID() && i3.push(r3[e4].getName());
667
- const c3 = (e4) => {
668
- let t4 = l2.get(e4);
669
- return t4 || (t4 = g2().getNamed(e4)), !t4 || t4.isHidden() ? null : z(en, { namedStyle: t4, selectedNamed: h2, bodyStyle: u2.bodyStyle(), createTemporaryCell: u2.createTemporaryCell, commands: o2, commandHook: a2, ...n3 }, e4);
670
- }, m3 = (e4, t4, o3 = true) => {
671
- const n4 = [];
672
- for (let e5 = 0; e5 < t4.length; e5++) {
673
- const o4 = c3(t4[e5]);
674
- o4 && n4.push(o4);
675
- }
676
- return 0 === n4.length ? null : L(Q, { children: [o3 ? z(ve, { orientation: "horizontal" }) : null, z(Ve, { children: e4 }, e4 + "-header"), z(Q, { sx: { display: "flex", gap: "2px", marginBottom: "6px", flexWrap: "wrap", width: "646px", maxWidth: "100%" }, children: n4 }, e4 + "-presets")] }, e4);
677
- }, p3 = (e4, t4) => {
678
- const o3 = [];
679
- for (let e5 = 0; e5 < t4.length; e5++) {
680
- const n4 = c3(t4[e5]);
681
- n4 && o3.push(n4);
682
- }
683
- return 0 === o3.length ? null : z(Q, { sx: { display: "flex", gap: "2px", marginBottom: "6px", flexWrap: "wrap", flexDirection: "column", flex: "0 0 0%" }, children: o3 }, e4 + "-presets");
684
- }, f3 = [];
685
- f3.push(m3("Custom", i3, false)), f3.push(m3("Good, Bad and Neutral", [d.BuiltInName.Normal, d.BuiltInName.Bad, d.BuiltInName.Good, d.BuiltInName.Neutral], i3.length > 0)), f3.push(m3("Data and Model", [d.BuiltInName.Calculation, d.BuiltInName.CheckCell, d.BuiltInName.ExplanatoryText, d.BuiltInName.FollowedHyperlink, d.BuiltInName.Hyperlink, d.BuiltInName.Input, d.BuiltInName.LinkedCell, d.BuiltInName.Note, d.BuiltInName.Output, d.BuiltInName.WarningText])), f3.push(m3("Titles and Headings", [d.BuiltInName.Heading1, d.BuiltInName.Heading2, d.BuiltInName.Heading3, d.BuiltInName.Heading4, d.BuiltInName.Title, d.BuiltInName.Total]));
686
- let b3 = [];
687
- var y3, w3;
688
- return b3.push(p3("Accent 1", [d.BuiltInName.Accent1_20, d.BuiltInName.Accent1_40, d.BuiltInName.Accent1_60, d.BuiltInName.Accent1])), b3.push(p3("Accent 2", [d.BuiltInName.Accent2_20, d.BuiltInName.Accent2_40, d.BuiltInName.Accent2_60, d.BuiltInName.Accent2])), b3.push(p3("Accent 3", [d.BuiltInName.Accent3_20, d.BuiltInName.Accent3_40, d.BuiltInName.Accent3_60, d.BuiltInName.Accent3])), b3.push(p3("Accent 4", [d.BuiltInName.Accent4_20, d.BuiltInName.Accent4_40, d.BuiltInName.Accent4_60, d.BuiltInName.Accent4])), b3.push(p3("Accent 5", [d.BuiltInName.Accent5_20, d.BuiltInName.Accent5_40, d.BuiltInName.Accent5_60, d.BuiltInName.Accent5])), b3.push(p3("Accent 6", [d.BuiltInName.Accent6_20, d.BuiltInName.Accent6_40, d.BuiltInName.Accent6_60, d.BuiltInName.Accent6])), f3.push((y3 = "Themed Cell Styles", w3 = b3, L(Q, { children: [z(ve, { orientation: "horizontal" }), z(Ve, { children: y3 }, y3 + "-header"), z(Q, { sx: { display: "flex", gap: "2px", flexWrap: "wrap", alignItems: "start", flexDirection: "row" }, children: w3 }, y3 + "-presets")] }, y3))), f3.push(m3("Number Format", [d.BuiltInName.Comma, d.BuiltInName.Comma0, d.BuiltInName.Currency, d.BuiltInName.Currency0, d.BuiltInName.Percent])), L(Q, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", paddingTop: (e4) => `${e4.shape.borderRadius}px`, paddingBottom: (e4) => `${e4.shape.borderRadius}px` }, children: [z(Q, { onContextMenu: () => {
689
- }, sx: { display: "flex", flexDirection: "column", paddingTop: "6px", paddingBottom: "0px", paddingLeft: "16px", paddingRight: "16px" }, children: f3 }), z(ve, { orientation: "horizontal" }), z(ke, { variant: ft.Menuitem, commandState: h2, command: t3.getCommand("newCellStyle"), context: "styles", commandHook: a2, disabled: s2 })] });
690
- }, [h2, g2?.().getTheme(), f2]), y2 = xt((e3) => {
691
- const t3 = 18 / l.getDeviceScale(), o3 = u2?.createTemporaryCell(e3);
692
- return o3.getStyle().getFont().getSize() <= t3 ? o3 : o3.createTemporaryCell({ style: { font: { size: t3 } } });
693
- }, [u2?.createTemporaryCell]), w2 = s2 || !n2 || n2.disabled(), S2 = V(() => u2 && m2 ? z(Jo, { value: h2?.getName() ?? "Custom", cellStyle: h2 ? { named: h2.getName() } : void 0, styles: u2.styles(), createTemporaryCell: y2, bodyStyle: u2.bodyStyle(), className: "outline-hover", disabled: w2, sx: { marginRight: "4px", borderRadius: "2px", minHeight: "calc(100% - 2px)", overflow: "hidden", outline: (e3) => `1px solid ${e3.palette.action.hover}` }, propsBorder: { style: { height: "calc(100% - 2px)", width: "calc(100% - 1px)" } } }) : n2?.icon(), [h2, f2, w2, n2]);
694
- return z(Re, { ref: t2, createPopupPanel: b2, outlined: m2, commands: o2, createTooltip: ({ children: e3 }, t3) => z(Le, { label: n2?.label(), description: n2?.description(), disabled: t3, children: e3 }), selected: false, disabled: w2, label: n2?.label(), icon: S2, ...p2 });
695
- })), on = "_sheetxl-reset_11z3j_1", nn = 10, an = $(O((e2, t2) => {
696
- const { styles: o2, table: n2, tableStyle: a2 = n2?.getStyle() ?? o2.getDefaultTableStyle(), bodyStyle: r2, sx: l2, disabled: i2, className: s2, forceThinBorder: d2, cellHeight: c2 = nn, isLive: p2 = false, ...u2 } = e2, g2 = Math.ceil(1.3 * c2), [h2, f2] = Z((e3) => e3 + 1, 0);
697
- _(() => {
698
- if (p2 && n2) return n2.addListeners({ onAnyChange: () => {
699
- f2();
700
- } });
701
- }, [n2, p2]);
702
- const x2 = V(() => {
703
- let e3 = n2?.toJSON() ?? {};
704
- const t3 = { rowStart: 0, colStart: 0, rowEnd: 4, colEnd: 4 };
705
- return e3 && (e3.styleOptions = { ...e3.styleOptions, name: a2.getName() }), e3.ref = t3, new m({ initialAnchor: t3, json: e3, styles: o2 });
706
- }, [h2, n2, a2, o2]), b2 = V(() => {
707
- const e3 = [];
708
- for (let t3 = 0; t3 < 5; t3++) for (let o3 = 0; o3 < 5; o3++) {
709
- const n3 = x2.getStyleAt({ colIndex: o3, rowIndex: t3 });
710
- e3.push(n3);
711
- }
712
- return e3;
713
- }, [x2]), w2 = V(() => {
714
- const e3 = (e4, t4, o3) => {
715
- let n3 = o3.getFill().toCSS(r2?.darkMode ?? false);
716
- const a3 = g2 - (t4 < 4 ? 1 : 0), l3 = c2 - (e4 < 4 ? 1 : 0), i3 = o3.getFont().getFill().toCSS(r2?.darkMode ?? false);
717
- return n3 = { ...n3, position: "absolute", boxSizing: "border-box", left: t4 * (g2 - 1), top: e4 * (c2 - 1), width: a3, height: l3 }, z("td", { className: `table-style-fill ${e4}-${t4}`, style: n3, children: z("div", { className: `table-style-text ${e4}-${t4}`, style: { position: "absolute", boxSizing: "border-box", width: "6px", left: (a3 - 6) / 2, top: (l3 - 1) / 2, borderTop: `1px solid ${i3}` } }) }, `${e4}-${t4}`);
718
- }, t3 = [];
719
- for (let o3 = 0; o3 < 5; o3++) {
720
- const n3 = [];
721
- for (let t4 = 0; t4 < 5; t4++) {
722
- const a3 = b2[5 * o3 + t4];
723
- n3.push(e3(o3, t4, a3));
724
- }
725
- t3.push(z("tr", { children: n3 }, o3));
726
- }
727
- return t3;
728
- }, [x2, a2, r2]), S2 = K((e3, t3) => b2[t3].getBorder() ?? null, [b2]);
729
- return z(Q, { ref: t2, className: "table-format-preview", sx: { background: r2?.fill, filter: i2 ? "grayscale(0.4) opacity(0.8);" : "none", "& .styled-element": { position: "absolute" }, ...l2 }, ...u2, children: z(y, { getBorderAt: S2, rowCount: 5, columnCount: 5, forceThinBorder: d2, width: 5 * (g2 - 1) + 1, height: 5 * (c2 - 1) + 1, darkMode: r2?.darkMode ?? false, style: { pointerEvents: "none" }, children: z("table", { className: gt(s2, "sheetxl-table-preview", on), style: { borderCollapse: "collapse", width: 5 * (g2 - 1) + 1, height: 5 * (c2 - 1) + 1 }, children: z("tbody", { children: w2 }) }) }) });
730
- })), rn = (e2, t2, o2, n2, a2) => {
731
- e2.beginPath(), e2.moveTo(t2 + 0.5, o2 + 0.5), e2.lineTo(n2 + 0.5, a2 + 0.5), e2.stroke();
732
- }, ln = $(O((e2, t2) => {
733
- const { table: o2, tableStyle: n2, styles: a2, bodyStyle: r2, disabled: l2, style: i2, className: s2, canvas: d2, ...c2 } = e2, u2 = V(() => {
734
- const e3 = o2.toJSON(), t3 = { rowStart: 0, colStart: 0, rowEnd: 4, colEnd: 4 };
735
- return e3.styleOptions = { ...e3.styleOptions, name: n2.getName() }, e3.ref = t3, new m({ initialAnchor: t3, json: e3, styles: a2 });
736
- }, [o2, n2, a2]), g2 = V(() => {
737
- const e3 = [];
738
- for (let t3 = 0; t3 < 5; t3++) for (let o3 = 0; o3 < 5; o3++) {
739
- const n3 = u2.getStyleAt({ colIndex: o3, rowIndex: t3 });
740
- e3.push(n3);
741
- }
742
- return e3;
743
- }, [u2]), h2 = V(() => {
744
- let e3 = d2;
745
- if (d2 || (e3 = document.createElement("canvas")), !e3) return null;
746
- 61 !== e3.width && (e3.width = 61), 46 !== e3.height && (e3.height = 46);
747
- const t3 = e3.getContext("2d", { alpha: false });
748
- if (!t3) return null;
749
- const o3 = 12, n3 = r2?.darkMode ?? false;
750
- for (let e4 = 0; e4 < 5; e4++) for (let a3 = 0; a3 < 5; a3++) {
751
- const l3 = g2[5 * e4 + a3].getFill();
752
- let i3 = r2?.fill;
753
- l3.getType() === p.Type.Solid ? i3 = l3.getColor().toCSS(n3, false) : l3.getType() === p.Type.Gradient ? i3 = l3.getStops[0]?.color.toCSS(n3, false) : l3.getType() === p.Type.Pattern && (i3 = l3.getForeground().toCSS(n3, false)), t3.fillStyle = i3;
754
- const s3 = a3 * o3, d3 = 9 * e4;
755
- t3.fillRect(s3, d3, 13, 10);
756
- }
757
- t3.lineWidth = 1;
758
- for (let e4 = 0; e4 < 5; e4++) for (let a3 = 0; a3 < 5; a3++) {
759
- const r3 = g2[5 * e4 + a3], l3 = a3 * o3, i3 = 9 * e4, s3 = r3.getBorder();
760
- if (!s3.isEmpty()) {
761
- const a4 = s3.getLeft();
762
- a4.isNone() || (t3.strokeStyle = a4.getColor().toCSS(n3, false), rn(t3, l3, i3, l3, i3 + 9));
763
- const r4 = s3.getTop();
764
- r4.isNone() || (t3.strokeStyle = r4.getColor().toCSS(n3, false), rn(t3, l3, i3, l3 + o3, 9 * e4));
765
- const d4 = s3.getRight();
766
- d4.isNone() || (t3.strokeStyle = d4.getColor().toCSS(n3, false), rn(t3, l3 + o3, i3, l3 + o3, i3 + 9));
767
- const c4 = s3.getBottom();
768
- c4.isNone() || (t3.strokeStyle = c4.getColor().toCSS(n3, false), rn(t3, l3, i3 + 9, l3 + o3, i3 + 9));
769
- }
770
- t3.strokeStyle = r3.getFont().getFill().toCSS(n3, false);
771
- const d3 = 4, c3 = 2.5;
772
- rn(t3, a3 * o3 + c3, 9 * e4 + d3, a3 * o3 + c3 + 7, 9 * e4 + d3);
773
- }
774
- return `url(${e3.toDataURL()})`;
775
- }, [d2, u2, n2, r2]);
776
- return z("div", { ref: t2, className: gt("table-style-preview", s2), style: { backgroundImage: h2, width: 61, height: 46, ...i2 }, ...c2 });
777
- })), sn = "_table-style-options-container_1kfn2_1", dn = "_table-style-options_1kfn2_1", cn = $(O((e2, t2) => {
778
- const { styleOptions: o2, onStyleOptionsChange: n2, showHeaderRow: a2, onShowHeaderRowChange: r2, showTotalRow: l2, onShowTotalRowChange: i2, showFilterButton: s2, onShowFilterButtonChange: d2, sx: c2, className: m2, disabled: p2, ...u2 } = e2;
779
- return z("div", { className: sn, children: L(Q, { sx: { pt: 1, pb: 1, "& .MuiFormControlLabel-root": { marginLeft: (e3) => `${e3.spacing(2)}`, marginRight: (e3) => `${e3.spacing(2)}` }, "& .MuiCheckbox-root": { padding: (e3) => `${e3.spacing(0.5)}` }, ...c2 }, ...u2, ref: t2, className: gt(m2, dn), children: [r2 && z(le, { control: z(ie, { checked: a2 ?? false, indeterminate: null == a2, onChange: () => r2(!a2), disabled: p2 || null == a2 }), label: "Header Row", labelPlacement: "end" }), i2 && z(le, { control: z(ie, { checked: l2 ?? false, indeterminate: null == l2, onChange: () => i2(!l2), disabled: p2 || null == l2 }), label: "Total Row", labelPlacement: "end" }), z(le, { control: z(ie, { checked: o2?.showRowStripes ?? false, indeterminate: !o2, disabled: p2 || !o2, onChange: () => {
780
- n2?.({ ...o2, showRowStripes: !o2?.showRowStripes });
781
- } }), label: "Banded Rows", labelPlacement: "end" }), z(le, { control: z(ie, { checked: o2?.showFirstColumn ?? false, indeterminate: !o2, disabled: p2 || !o2, onChange: () => {
782
- n2?.({ ...o2, showFirstColumn: !o2?.showFirstColumn });
783
- } }), label: "First Column", labelPlacement: "end" }), z(le, { control: z(ie, { checked: o2?.showLastColumn ?? false, indeterminate: !o2, disabled: p2 || !o2, onChange: () => {
784
- n2?.({ ...o2, showLastColumn: !o2?.showLastColumn });
785
- } }), label: "Last Column", labelPlacement: "end" }), z(le, { control: z(ie, { checked: o2?.showColumnStripes ?? false, indeterminate: !o2, disabled: p2 || !o2, onChange: () => {
786
- n2?.({ ...o2, showColumnStripes: !o2?.showColumnStripes });
787
- } }), label: "Banded Columns", labelPlacement: "end" }), d2 && z(le, { control: z(ie, { checked: s2 ?? false, indeterminate: null == s2, disabled: p2 || !o2 || null == s2, onChange: () => d2(!s2) }), label: "Filter Button", labelPlacement: "end" })] }) });
788
- })), mn = "_range-row_akhf4_1", pn = "_action-row_akhf4_15", un = $(O((e2, t2) => {
504
+ const $o = $(O((e2, t2) => {
789
505
  const { disabled: o2, style: n2, className: a2, sx: r2, defaultInput: l2, value: i2, formName: s2, formOptions: d2, onChangeInput: c2, onValidate: m2, onKeyDown: p2, ...u2 } = e2, g2 = Gt(), h2 = s2 && g2 ? g2.register(s2, d2) : null, [f2, x2] = j(""), [b2, y2] = j(""), [w2, S2] = j(i2);
790
506
  _(() => {
791
507
  S2(i2), y2("");
@@ -807,21 +523,21 @@ const Uo = $(O((e2, t2) => {
807
523
  }, []), R2 = K((e3) => {
808
524
  C2(e3.target.value), h2?.onChange(e3);
809
525
  }, [h2]);
810
- return z(se, { sx: { paddingTop: (e3) => e3.spacing(1.5), minWidth: 135, width: "100%", ...r2 }, size: "small", ref: t2, className: gt("named-input", a2), ...u2, children: z(de, { label: "Name", placeholder: l2, onFocus: v2, onBlur: T2, inputRef: h2?.ref, disabled: o2, error: !!b2, helperText: b2 || " ", sx: { "& .MuiFormHelperText-root": { marginTop: (e3) => e3.spacing(0.5) } }, slotProps: { inputLabel: { shrink: true }, htmlInput: { className: "autoFocus", name: s2, spellCheck: false, autoComplete: "off", readOnly: o2, sx: { paddingTop: (e3) => e3.spacing(1.25), paddingBottom: (e3) => e3.spacing(0.75), backgroundImage: `linear-gradient(${mt("#fff", pt(5))}, ${mt("#fff", pt(5))})` } } }, value: w2 ?? "", onChange: R2, onKeyDownCapture: k2, onContextMenu: (e3) => {
526
+ return z(le, { sx: { paddingTop: (e3) => e3.spacing(1.5), minWidth: 135, width: "100%", ...r2 }, size: "small", ref: t2, className: gt("named-input", a2), ...u2, children: z(ie, { label: "Name", placeholder: l2, onFocus: v2, onBlur: T2, inputRef: h2?.ref, disabled: o2, error: !!b2, helperText: b2 || " ", sx: { "& .MuiFormHelperText-root": { marginTop: (e3) => e3.spacing(0.5) } }, slotProps: { inputLabel: { shrink: true }, htmlInput: { className: "autoFocus", name: s2, spellCheck: false, autoComplete: "off", readOnly: o2, sx: { paddingTop: (e3) => e3.spacing(1.25), paddingBottom: (e3) => e3.spacing(0.75), backgroundImage: `linear-gradient(${mt("#fff", pt(5))}, ${mt("#fff", pt(5))})` } } }, value: w2 ?? "", onChange: R2, onKeyDownCapture: k2, onContextMenu: (e3) => {
811
527
  e3.stopPropagation();
812
528
  } }) });
813
529
  }));
814
- un.displayName = "NamedInput";
815
- const gn = (e2) => null === e2 ? "" : e2.toString(), hn = $(O((e2, t2) => {
816
- const { formName: o2, formOptions: n2, disabled: a2, style: r2, className: l2, sx: i2, onKeyDown: s2, value: d2, onChangeInput: c2, resolvedAddress: m2, ...p2 } = e2, u2 = Gt(), g2 = o2 && u2 ? u2.register(o2, n2) : null, [h2, f2] = j(""), [x2, b2] = j(false), [y2, w2] = j(() => gn(d2));
530
+ $o.displayName = "NamedInput";
531
+ const Oo = (e2) => null === e2 ? "" : e2.toString(), Vo = $(O((e2, t2) => {
532
+ const { formName: o2, formOptions: n2, disabled: a2, style: r2, className: l2, sx: i2, onKeyDown: s2, value: d2, onChangeInput: c2, resolvedAddress: m2, ...p2 } = e2, u2 = Gt(), g2 = o2 && u2 ? u2.register(o2, n2) : null, [h2, f2] = j(""), [x2, b2] = j(false), [y2, w2] = j(() => Oo(d2));
817
533
  _(() => {
818
- w2(gn(d2)), f2(""), o2 && u2 && u2.clearErrors(o2), b2(false);
534
+ w2(Oo(d2)), f2(""), o2 && u2 && u2.clearErrors(o2), b2(false);
819
535
  }, [d2]);
820
536
  const S2 = xt((e3) => {
821
537
  let t3 = "";
822
538
  try {
823
539
  w2(e3);
824
- const t4 = gn(d2), o3 = m2(e3);
540
+ const t4 = Oo(d2), o3 = m2(e3);
825
541
  o3.toString() !== t4 && c2?.(o3);
826
542
  } catch (e4) {
827
543
  t3 = "Invalid Range";
@@ -829,7 +545,7 @@ const gn = (e2) => null === e2 ? "" : e2.toString(), hn = $(O((e2, t2) => {
829
545
  o2 && u2 && (t3 ? u2.setError(o2, { message: t3 }) : u2.clearErrors(o2)), f2(t3), b2(true);
830
546
  }, [y2, c2, o2, u2]), C2 = xt(async (e3) => {
831
547
  if (x2 && e3.keyCode === yt.Escape) {
832
- const t3 = gn(d2);
548
+ const t3 = Oo(d2);
833
549
  w2(t3), f2(""), b2(false), e3.stopPropagation();
834
550
  }
835
551
  s2?.(e3);
@@ -837,35 +553,35 @@ const gn = (e2) => null === e2 ? "" : e2.toString(), hn = $(O((e2, t2) => {
837
553
  g2?.onBlur(e3);
838
554
  }, [g2]), v2 = K((e3) => {
839
555
  S2(e3.target.value), g2?.onChange(e3);
840
- }, [g2]), [T2, R2] = j(false), D2 = V(() => z(ce, { tabIndex: -1, sx: { display: "flex", position: "relative", flex: "0" }, position: "end", children: z(Ge, { disabled: true, selected: T2, onSelectToggle: (e3) => {
556
+ }, [g2]), [T2, R2] = j(false), D2 = V(() => z(se, { tabIndex: -1, sx: { display: "flex", position: "relative", flex: "0" }, position: "end", children: z(Oe, { disabled: true, selected: T2, onSelectToggle: (e3) => {
841
557
  R2(e3);
842
558
  }, label: "Select Range", icon: z(wt, { iconKey: "SelectRangeMode" }) }) }), [T2]);
843
- return z(se, { sx: { paddingTop: (e3) => e3.spacing(1.5), minWidth: 135, width: "100%", ...i2 }, size: "small", ref: t2, className: gt("range-input", l2), ...p2, children: z(de, { label: "Range", placeholder: "Enter Range", onBlur: k2, disabled: a2, error: !!h2, inputRef: g2?.ref, helperText: h2 || " ", sx: { "& .MuiFormHelperText-root": { marginTop: (e3) => e3.spacing(0.5) } }, slotProps: { input: { endAdornment: D2 }, inputLabel: { shrink: true }, htmlInput: { spellCheck: false, autoComplete: "off", readOnly: a2, name: o2, sx: { paddingTop: (e3) => e3.spacing(1.25), paddingBottom: (e3) => e3.spacing(0.75) } } }, value: y2 ?? "", onChange: v2, onKeyDownCapture: C2, onContextMenu: (e3) => {
559
+ return z(le, { sx: { paddingTop: (e3) => e3.spacing(1.5), minWidth: 135, width: "100%", ...i2 }, size: "small", ref: t2, className: gt("range-input", l2), ...p2, children: z(ie, { label: "Range", placeholder: "Enter Range", onBlur: k2, disabled: a2, error: !!h2, inputRef: g2?.ref, helperText: h2 || " ", sx: { "& .MuiFormHelperText-root": { marginTop: (e3) => e3.spacing(0.5) } }, slotProps: { input: { endAdornment: D2 }, inputLabel: { shrink: true }, htmlInput: { spellCheck: false, autoComplete: "off", readOnly: a2, name: o2, sx: { paddingTop: (e3) => e3.spacing(1.25), paddingBottom: (e3) => e3.spacing(0.75) } } }, value: y2 ?? "", onChange: v2, onKeyDownCapture: C2, onContextMenu: (e3) => {
844
560
  e3.stopPropagation();
845
561
  } }) });
846
562
  }));
847
- hn.displayName = "RangeInput";
848
- const fn = [];
849
- fn.push(bo("Primary Background", "bg1")), fn.push(bo("Primary Text", "tx1")), fn.push(bo("Secondary Background", "bg2")), fn.push(bo("Secondary Text", "tx2")), fn.push(bo("Accent 1", "accent1")), fn.push(bo("Accent 2", "accent2")), fn.push(bo("Accent 3", "accent3")), fn.push(bo("Accent 4", "accent4")), fn.push(bo("Accent 5", "accent5")), fn.push(bo("Accent 6", "accent6"));
850
- const xn = (e2) => {
563
+ Vo.displayName = "RangeInput";
564
+ const Ko = [];
565
+ Ko.push(bo("Primary Background", "bg1")), Ko.push(bo("Primary Text", "tx1")), Ko.push(bo("Secondary Background", "bg2")), Ko.push(bo("Secondary Text", "tx2")), Ko.push(bo("Accent 1", "accent1")), Ko.push(bo("Accent 2", "accent2")), Ko.push(bo("Accent 3", "accent3")), Ko.push(bo("Accent 4", "accent4")), Ko.push(bo("Accent 5", "accent5")), Ko.push(bo("Accent 6", "accent6"));
566
+ const Go = (e2) => {
851
567
  const { docTheme: t2, onSelectTheme: o2, darkMode: n2, isSelected: a2, outlined: r2, sx: l2, ...i2 } = e2, s2 = ct(), d2 = V(() => {
852
568
  let e3 = [];
853
- for (let o3 = 0; o3 < fn.length; o3++) {
854
- const a3 = fn[o3];
569
+ for (let o3 = 0; o3 < Ko.length; o3++) {
570
+ const a3 = Ko[o3];
855
571
  e3.push(z(fo, { schemeColorLookup: t2.schemeLookup(), colorDef: a3, darkMode: n2, selectedColor: null }, o3 + "-colorDef"));
856
572
  }
857
573
  return z(Q, { sx: { display: "flex", flexDirection: "row", flex: "none" }, children: z(Q, { sx: { display: "flex", boxShadow: (e4) => e4.shadows[2] }, children: e3 }) });
858
574
  }, [t2, s2]);
859
575
  return z(He, { sx: { borderRadius: "2px", padding: "2px", margin: "0px 0px", display: "flex", border: (e3) => `solid ${a2 ? e3.palette.text.primary : "transparent"} 1px`, "&:hover:not([disabled])": { border: (e3) => `solid ${e3.palette.text.primary} 1px !important` } }, icon: null, ...i2, children: L(Q, { sx: { border: (e3) => `solid ${e3.palette.divider} 1px`, minWidth: "200px", borderRadius: "2px", padding: "4px 4px", textAlign: "left", display: "flex", gap: "4px", flexDirection: "column", alignItems: "stretch", color: (e3) => a2 ? e3.palette.text.primary : void 0, "&:hover:not([disabled])": { color: (e3) => e3.palette.text.primary } }, children: [z(Q, { sx: {}, children: t2.getName() }), L(Q, { sx: { paddingTop: "6px", paddingLeft: "12px", paddingRight: "12px", display: "flex", flexDirection: "column", alignItems: "stretch" }, children: [d2, z(Q, { sx: { flex: "1 1 100%", textOverflow: "ellipsis", overflow: "hidden", marginTop: "2px", whiteSpace: "pre", fontFamily: () => t2.getFontScheme().getMajorFont() }, children: z(Fe, { disableInteractive: true, slotProps: { popper: { style: { pointerEvents: "none" }, disablePortal: true, popperOptions: { strategy: "fixed", modifiers: [{ name: "preventOverflow", enabled: true, options: { boundariesElement: "viewport" } }] } } }, title: z("div", { style: { textOverflow: "ellipsis", overflow: "hidden", whiteSpace: "pre" }, children: `The font used for the body.
860
576
  The heading font is '${t2.getFontScheme().getMajorFont()}'.` }), placement: "bottom-start", children: z("div", { children: t2.getFontScheme().getMinorFont() }) }) })] })] }) });
861
- }, bn = $(O((e2, t2) => {
577
+ }, jo = $(O((e2, t2) => {
862
578
  const { themes: o2, selectedTheme: n2, onSelectTheme: a2, sx: r2, disabled: l2 = false, darkMode: i2, ...s2 } = e2, d2 = V(() => {
863
579
  const e3 = o2?.getItems({ selected: n2 }) ?? [], t3 = [];
864
580
  if (0 === e3.length) return z(Ve, { sx: { paddingLeft: "16px", paddingRight: "16px", paddingTop: "6px", paddingBottom: "6px" }, children: "No themes" });
865
581
  const r3 = e3.length;
866
582
  for (let o3 = 0; o3 < r3; o3++) {
867
583
  const r4 = e3[o3], s3 = n2 && r4?.getName() === n2.getName(), d3 = e3[o3 + 1];
868
- d3 && d3.isCustom() !== r4.isCustom() && t3.push(z(ve, { orientation: "horizontal", sx: { marginBottom: "4px" } }, `divider-${o3}`)), t3.push(z(xn, { docTheme: r4, onSelectTheme: () => a2(r4), isSelected: s3, disabled: l2, darkMode: i2, onMouseDown: (e4) => {
584
+ d3 && d3.isCustom() !== r4.isCustom() && t3.push(z(ve, { orientation: "horizontal", sx: { marginBottom: "4px" } }, `divider-${o3}`)), t3.push(z(Go, { docTheme: r4, onSelectTheme: () => a2(r4), isSelected: s3, disabled: l2, darkMode: i2, onMouseDown: (e4) => {
869
585
  0 === e4.button && e4.preventDefault();
870
586
  }, onMouseUp: (e4) => {
871
587
  0 === e4.button && a2(r4);
@@ -876,15 +592,15 @@ The heading font is '${t2.getFontScheme().getMajorFont()}'.` }), placement: "bot
876
592
  return t3;
877
593
  }, [n2, a2, i2]);
878
594
  return z(Q, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%" }, ref: t2, ...s2, children: L(Q, { sx: { display: "flex", flexDirection: "column", overflow: "hidden" }, children: [z(Ve, { sx: { paddingLeft: "16px", paddingRight: "16px", paddingTop: "4px", paddingBottom: "2px" }, children: "Themes" }), z(ve, {}), z(Q, { sx: { flex: "1 1 100%", overflow: "auto", padding: "6px 16px" }, children: d2 })] }) });
879
- })), yn = $(O((e2, t2) => {
595
+ })), _o = $(O((e2, t2) => {
880
596
  const { themes: o2, selectedTheme: n2, onSelectTheme: a2, icon: r2, tooltip: l2, label: i2, variant: s2 = Ne.Toolbar, darkMode: d2, propsPanel: c2, ...m2 } = e2, p2 = r2 || z(wt, { iconKey: "Theme2" }), u2 = { createPopupPanel: K((e3) => {
881
597
  const { closeFloatAll: t3 } = e3;
882
- return z(bn, { ...c2, themes: o2, selectedTheme: n2, onSelectTheme: a2, darkMode: d2, onKeyDown: (e4) => {
598
+ return z(jo, { ...c2, themes: o2, selectedTheme: n2, onSelectTheme: a2, darkMode: d2, onKeyDown: (e4) => {
883
599
  e4.which === yt.Enter && t3();
884
600
  } });
885
601
  }, [o2, n2, a2, c2, d2]), tooltip: l2 || i2 || "Theme", label: i2, icon: p2, ...m2 };
886
602
  return s2 === Ne.Toolbar ? z(Be, { ref: t2, ...u2 }) : z(Ee, { ref: t2, ...u2 });
887
- })), wn = $(O((e2, t2) => {
603
+ })), Uo = $(O((e2, t2) => {
888
604
  const { sheet: o2, className: a2, debounceDelay: r2 = 220, sx: i2, ...s2 } = e2, [d2, c2] = j(() => o2.getView().getZoomScale()), [m2, p2] = j(null), u2 = q(0);
889
605
  w(o2, { onViewChange: () => {
890
606
  p2(true), 0 === u2.current && c2(o2.getView().getZoomScale());
@@ -919,7 +635,7 @@ The heading font is '${t2.getFontScheme().getMajorFont()}'.` }), placement: "bot
919
635
  0 === e3.button && S2();
920
636
  }, ...s2, children: [z(Fe, { disableInteractive: true, title: "Zoom Out", children: z(ee, { sx: { padding: "0", "&:hover:not([disabled])": { color: (e3) => e3.palette.primary.main }, "& svg": { width: "12px", height: "12px" } }, size: "small", onPointerDown: (e3) => {
921
637
  0 !== e3.button ? e3.preventDefault() : C2(e3);
922
- }, children: z(wt, { iconKey: "Remove" }) }) }), z(me, { ref: y2, sx: { flex: "1 1 100%", padding: "6px 0px !important", marginRight: "2px", marginLeft: "2px", "& .MuiSlider-thumb": { height: 14, width: 6, borderRadius: 0.75, "&.Mui-focusVisible": { boxShadow: (e3) => `0px 0px 0px 3px ${je(e3.palette.primary.main, 0.16)}` }, "&:focus, &:hover, &.Mui-active": { boxShadow: (e3) => `0px 0px 0px 2px ${je(e3.palette.primary.main, 0.16)}` } }, "& .MuiSlider-mark": { width: "1px", height: "8px" }, "& .MuiSlider-markActive": { backgroundColor: "currentColor" }, "& .MuiSlider-thumb:not(.MuiSlider-active)": { transition: m2 ? "left 260ms ease-in" : "none" } }, valueLabelDisplay: "auto", size: "small", track: false, min: 0, step: 1, value: f2, max: 200, marks: [{ value: 100 }], onAnimationEnd: () => p2(false), onWheel: (e3) => {
638
+ }, children: z(wt, { iconKey: "Remove" }) }) }), z(de, { ref: y2, sx: { flex: "1 1 100%", padding: "6px 0px !important", marginRight: "2px", marginLeft: "2px", "& .MuiSlider-thumb": { height: 14, width: 6, borderRadius: 0.75, "&.Mui-focusVisible": { boxShadow: (e3) => `0px 0px 0px 3px ${Ke(e3.palette.primary.main, 0.16)}` }, "&:focus, &:hover, &.Mui-active": { boxShadow: (e3) => `0px 0px 0px 2px ${Ke(e3.palette.primary.main, 0.16)}` } }, "& .MuiSlider-mark": { width: "1px", height: "8px" }, "& .MuiSlider-markActive": { backgroundColor: "currentColor" }, "& .MuiSlider-thumb:not(.MuiSlider-active)": { transition: m2 ? "left 260ms ease-in" : "none" } }, valueLabelDisplay: "auto", size: "small", track: false, min: 0, step: 1, value: f2, max: 200, marks: [{ value: 100 }], onAnimationEnd: () => p2(false), onWheel: (e3) => {
923
639
  g2(h2(n.findNextStep(o2.getView().getZoomScale(), e3.deltaY < 0, 10)));
924
640
  }, onKeyDown: (e3) => {
925
641
  e3.which === yt.Down || e3.which === yt.Right ? (g2(h2(n.findNextStep(o2.getView().getZoomScale(), true, 10))), e3.preventDefault()) : e3.which === yt.Up || e3.which === yt.Left ? (g2(h2(n.findNextStep(o2.getView().getZoomScale(), false, 10))), e3.preventDefault()) : e3.which !== yt.Enter && e3.which !== yt.Escape || S2();
@@ -931,8 +647,8 @@ The heading font is '${t2.getFontScheme().getMajorFont()}'.` }), placement: "bot
931
647
  g2(100);
932
648
  }, sx: { cursor: "pointer", display: "flex", flex: "1 1 100%", fontSize: "0.70rem", marginLeft: "2px", marginRight: "2px", userSelect: "none", justifyContent: "center", width: T2 }, children: z("div", { children: Math.round(d2) + "%" }) })] })] });
933
649
  }));
934
- wn.displayName = "SheetZoomScale";
935
- const Sn = $(O((e2, t2) => {
650
+ Uo.displayName = "SheetZoomScale";
651
+ const qo = $(O((e2, t2) => {
936
652
  const { sx: o2, sheet: n2, gridStyle: a2, children: r2, childrenEnd: l2, ...i2 } = e2, s2 = q(null);
937
653
  _(() => {
938
654
  const e3 = (e4) => e4.preventDefault();
@@ -944,11 +660,11 @@ const Sn = $(O((e2, t2) => {
944
660
  const e3 = d2.getMode();
945
661
  return e3?.description ? e3.description : "Ready";
946
662
  }, [d2]), [m2, p2] = j(false);
947
- return L(Q, { className: "statusBar", ref: Vt([s2, t2]), sx: { display: "flex", alignItems: "stretch", flexDirection: "row", flex: "0", paddingLeft: "12px", paddingRight: "12px", gap: "8px", paddingTop: "1px", minHeight: "calc(1em + 8px)", overflow: m2 ? "visible" : "hidden", boxShadow: `0px -1px 0px ${a2.header.edgeStrokeFill}`, zIndex: 1e3, ...o2 }, onMouseOver: () => p2(true), onMouseLeave: () => p2(false), ...i2, children: [r2, z("div", { style: { flex: "1 1 100%", display: "flex", alignItems: "end", overflow: "hidden" }, children: z(J, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", color: (e3) => e3.palette.text.secondary }, variant: "caption", children: c2 }) }), l2 ? z(Q, { sx: { display: "flex", alignItems: "center" }, children: l2 }) : null, z(ve, { style: { marginTop: "6px", marginBottom: "6px" } }), z(wn, { sx: { paddingLeft: "4px", minWidth: "175px" }, sheet: n2 })] });
663
+ return L(Q, { className: "statusBar", ref: Vt([s2, t2]), sx: { display: "flex", alignItems: "stretch", flexDirection: "row", flex: "0", paddingLeft: "12px", paddingRight: "12px", gap: "8px", paddingTop: "1px", minHeight: "calc(1em + 8px)", overflow: m2 ? "visible" : "hidden", boxShadow: `0px -1px 0px ${a2.header.edgeStrokeFill}`, zIndex: 1e3, ...o2 }, onMouseOver: () => p2(true), onMouseLeave: () => p2(false), ...i2, children: [r2, z("div", { style: { flex: "1 1 100%", display: "flex", alignItems: "end", overflow: "hidden" }, children: z(J, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", color: (e3) => e3.palette.text.secondary }, variant: "caption", children: c2 }) }), l2 ? z(Q, { sx: { display: "flex", alignItems: "center" }, children: l2 }) : null, z(ve, { style: { marginTop: "6px", marginBottom: "6px" } }), z(Uo, { sx: { paddingLeft: "4px", minWidth: "175px" }, sheet: n2 })] });
948
664
  }));
949
- Sn.displayName = "StatusBar";
950
- const Cn = $(O((e2, t2) => {
951
- const { disabled: o2, names: a2, workbook: r2, restoreFocus: i2, readonly: s2 = false, disabled: d2 = false, propsCommandPopupButton: c2, sx: m2, ...p2 } = e2, g2 = vt(), [h2, f2] = j(null), [x2, b2] = j(() => r2.getSelectedRanges().getCoords()), [y2, S2] = j(false), { reference: C2 } = _e({ parentFloat: c2?.parentFloat }), [k2, v2] = j(() => s2 || !r2.getProtection().isStructureAllowed()), T2 = () => h2?.text ?? "", [R2, D2] = j(T2), F2 = xt(() => {
665
+ qo.displayName = "StatusBar";
666
+ const Xo = $(O((e2, t2) => {
667
+ const { disabled: o2, names: a2, workbook: r2, restoreFocus: i2, readonly: d2 = false, disabled: c2 = false, propsCommandPopupButton: m2, sx: p2, ...u2 } = e2, g2 = vt(), [h2, f2] = j(null), [x2, b2] = j(() => r2.getSelectedRanges().getCoords()), [y2, S2] = j(false), { reference: C2 } = Ge({ parentFloat: m2?.parentFloat }), [k2, v2] = j(() => d2 || !r2.getProtection().isStructureAllowed()), T2 = () => h2?.text ?? "", [R2, D2] = j(T2), F2 = xt(() => {
952
668
  if (C2?.closeAll(), !R2) {
953
669
  const e4 = T2();
954
670
  return D2(T2()), e4;
@@ -1004,7 +720,7 @@ const Cn = $(O((e2, t2) => {
1004
720
  }, [h2, x2]);
1005
721
  const [E2, P2] = j(r2?.getSelectedSheet());
1006
722
  w(r2, { onProtectionChange: (e3) => {
1007
- v2(s2 || !e3.getProtection().isStructureAllowed());
723
+ v2(d2 || !e3.getProtection().isStructureAllowed());
1008
724
  }, onSheetsChange: (e3) => {
1009
725
  P2(e3?.getSelectedSheet());
1010
726
  }, onViewChange(e3) {
@@ -1014,7 +730,7 @@ const Cn = $(O((e2, t2) => {
1014
730
  w(E2.getSelection(), { onChange: () => {
1015
731
  b2((e3) => {
1016
732
  const t3 = r2.getSelectedRanges().getCoords();
1017
- return u.isEqualRangesArrays(t3, e3) ? e3 : t3;
733
+ return s.isEqualRangesArrays(t3, e3) ? e3 : t3;
1018
734
  });
1019
735
  }, onAdjustingChange: (e3) => {
1020
736
  A2(e3.getAdjusting());
@@ -1055,26 +771,26 @@ const Cn = $(O((e2, t2) => {
1055
771
  setTimeout(() => {
1056
772
  S2(true);
1057
773
  }, 0);
1058
- const t3 = { variant: ft.Menuitem, parentFloat: e3.floatReference, commandHook: { ...c2?.commandHook, beforeExecute: (e4, t4) => (C2?.closeAll(), c2?.commandHook?.beforeExecute?.(e4, t4)) }, scope: c2?.scope, commands: c2?.commands };
774
+ const t3 = { variant: ft.Menuitem, parentFloat: e3.floatReference, commandHook: { ...m2?.commandHook, beforeExecute: (e4, t4) => (C2?.closeAll(), m2?.commandHook?.beforeExecute?.(e4, t4)) }, scope: m2?.scope, commands: m2?.commands };
1059
775
  let o3 = a2.getItems({ scope: r2?.getSelectedSheet().getName() });
1060
776
  o3 = o3.sort((e4, t4) => e4.getType() === t4.getType() ? e4.getName().localeCompare(t4.getName()) : "range" === e4.getType() ? -1 : 1);
1061
- const n2 = k2 ? null : ["editNamedReference", "deleteNamedReference"], l2 = k2 ? null : ["editTable", null, "convertTableToRange", "deleteTable"], i3 = [], s3 = o3.length;
1062
- for (let e4 = 0; e4 < s3; e4++) {
777
+ const n2 = k2 ? null : ["editNamedReference", "deleteNamedReference"], l2 = k2 ? null : ["editTable", null, "convertTableToRange", "deleteTable"], i3 = [], s2 = o3.length;
778
+ for (let e4 = 0; e4 < s2; e4++) {
1063
779
  const a3 = o3[e4], r3 = a3.getRanges();
1064
780
  if (!r3 || a3.isHidden()) continue;
1065
- const s4 = a3.getType();
1066
- s4 !== o3[e4 - 1]?.getType() && (e4 > 0 && i3.push(z(ve, { orientation: "horizontal" }, `type-divider-${i3.length}`)), i3.push(z(Ve, { variant: "subtitle2", sx: { paddingLeft: "16px" }, children: "reference" === a3.getType() ? "Ranges" : "Tables" }, `type-header-${i3.length}`))), "reference" === s4 ? i3.push(X(We, { ...t3, key: "named-" + i3.length, popupCommandKeys: n2, popupScope: "namedItem", scope: "namedItem", commandState: a3, commands: c2?.commands, label: a3.getName(), quickCommand: "selectNamed", disabled: !a3.getRanges() || d2, icon: "NamedRange" })) : "table" === s4 && i3.push(X(We, { ...t3, key: "namedItem-" + i3.length, popupCommandKeys: l2, popupScope: "namedItem", scope: "namedItem", commands: c2?.commands, commandState: a3, label: a3.getName(), quickCommand: "selectNamed", disabled: !r3 || d2, icon: "InsertTable" }));
781
+ const s3 = a3.getType();
782
+ s3 !== o3[e4 - 1]?.getType() && (e4 > 0 && i3.push(z(ve, { orientation: "horizontal" }, `type-divider-${i3.length}`)), i3.push(z(Ve, { variant: "subtitle2", sx: { paddingLeft: "16px" }, children: "reference" === a3.getType() ? "Ranges" : "Tables" }, `type-header-${i3.length}`))), "reference" === s3 ? i3.push(X(We, { ...t3, key: "named-" + i3.length, popupCommandKeys: n2, popupScope: "namedItem", scope: "namedItem", commandState: a3, commands: m2?.commands, label: a3.getName(), quickCommand: "selectNamed", disabled: !a3.getRanges() || c2, icon: "NamedRange" })) : "table" === s3 && i3.push(X(We, { ...t3, key: "namedItem-" + i3.length, popupCommandKeys: l2, popupScope: "namedItem", scope: "namedItem", commands: m2?.commands, commandState: a3, label: a3.getName(), quickCommand: "selectNamed", disabled: !r3 || c2, icon: "InsertTable" }));
1067
783
  }
1068
- const m3 = L(Q, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...p2, children: [k2 ? null : z(ke, { ...t3, scope: "namedItem", command: c2?.commands.getCommand("addNamedReference") }), i3 && i3.length > 0 ? L(H, { children: [k2 ? null : z(ve, { orientation: "horizontal" }), z(Q, { sx: { overflow: "auto", flex: "1 1 100%" }, children: i3 })] }) : null] });
1069
- return Te({ ...e3, children: m3 });
784
+ const d3 = L(Q, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...u2, children: [k2 ? null : z(ke, { ...t3, scope: "namedItem", command: m2?.commands.getCommand("addNamedReference") }), i3 && i3.length > 0 ? L(H, { children: [k2 ? null : z(ve, { orientation: "horizontal" }), z(Q, { sx: { overflow: "auto", flex: "1 1 100%" }, children: i3 })] }) : null] });
785
+ return Te({ ...e3, children: d3 });
1070
786
  }, [r2, N2, a2, h2, k2]), U2 = Rt(t2, () => ({ focus(e3) {
1071
787
  $2.current?.focus(e3);
1072
788
  } }), []);
1073
- return z(Q, { className: "outer", sx: { minWidth: 120, flex: "1 1 100%", display: "flex", alignItems: "center", justifyContent: "start", ...m2 }, ref: Vt([U2, t2]), ...p2, children: z(Be, { className: "outer-button", sx: { display: "flex", flex: "1 1 100%", "& .tooltip-wrapper": { display: "flex", flex: "1 1 100%", width: "100%" }, ...m2 }, propsButton: { sx: { backgroundColor: (e3) => e3.palette.background.paper, backgroundImage: `linear-gradient(${mt("#fff", pt(5))}, ${mt("#fff", pt(5))})` } }, tabIndex: -1, outlined: { color: (e3) => o2 ? e3.palette.action.disabled : mt(e3.palette.divider, 0.2) }, parentFloat: C2, createPopupPanel: G2, onPopupOpen: () => S2(true), onPopupClose: () => S2(false), createTooltip: ({ children: e3 }, t3) => z(Le, { title: t3 || y2 ? "" : "Name Box", disabled: t3, leaveDelay: 0, sx: { opacity: t3 || y2 ? 0 : 1 }, children: e3 }), renderQuickButton: O2 }) });
789
+ return z(Q, { className: "outer", sx: { minWidth: 120, flex: "1 1 100%", display: "flex", alignItems: "center", justifyContent: "start", ...p2 }, ref: Vt([U2, t2]), ...u2, children: z(Be, { className: "outer-button", sx: { display: "flex", flex: "1 1 100%", "& .tooltip-wrapper": { display: "flex", flex: "1 1 100%", width: "100%" }, ...p2 }, propsButton: { sx: { backgroundColor: (e3) => e3.palette.background.paper, backgroundImage: `linear-gradient(${mt("#fff", pt(5))}, ${mt("#fff", pt(5))})` } }, tabIndex: -1, outlined: { color: (e3) => o2 ? e3.palette.action.disabled : mt(e3.palette.divider, 0.2) }, parentFloat: C2, createPopupPanel: G2, onPopupOpen: () => S2(true), onPopupClose: () => S2(false), createTooltip: ({ children: e3 }, t3) => z(Le, { title: t3 || y2 ? "" : "Name Box", disabled: t3, leaveDelay: 0, sx: { opacity: t3 || y2 ? 0 : 1 }, children: e3 }), renderQuickButton: O2 }) });
1074
790
  }));
1075
- Cn.displayName = "NamedCollectionEditor";
1076
- const kn = (e2, t2) => z(Cn, { ref: t2, ...e2 }), vn = $(O((e2, t2) => {
1077
- const { sx: o2, workbook: n2, sheetElement: a2, gridStyle: r2, showNamedCollectionEditor: i2 = true, propsNamedCollectionEditor: s2, renderNamedCollectionEditor: d2 = kn, disabled: c2, commands: m2, ...p2 } = e2, [u2, g2] = j(n2?.getSelectedSheet()), [h2, f2] = j(u2.getSelectedCell().getCoords()), [x2, b2] = j(false), y2 = c2 || x2;
791
+ Xo.displayName = "NamedCollectionEditor";
792
+ const Zo = (e2, t2) => z(Xo, { ref: t2, ...e2 }), Yo = $(O((e2, t2) => {
793
+ const { sx: o2, workbook: n2, sheetElement: a2, gridStyle: r2, showNamedCollectionEditor: i2 = true, propsNamedCollectionEditor: s2, renderNamedCollectionEditor: d2 = Zo, disabled: c2, commands: m2, ...p2 } = e2, [u2, g2] = j(n2?.getSelectedSheet()), [h2, f2] = j(u2.getSelectedCell().getCoords()), [x2, b2] = j(false), y2 = c2 || x2;
1078
794
  w(n2, { onSheetsChange: (e3) => {
1079
795
  const t3 = e3?.getSelectedSheet();
1080
796
  f2(t3.getSelectedCell().getCoords()), g2(t3);
@@ -1113,7 +829,7 @@ const kn = (e2, t2) => z(Cn, { ref: t2, ...e2 }), vn = $(O((e2, t2) => {
1113
829
  }, onSubmitEdit: () => {
1114
830
  a2?.submitEdit(), a2?.focus();
1115
831
  }, linesVisible: N2 }) });
1116
- }, [u2, W2, h2, N2, a2]), O2 = q(null), K2 = V(() => i2 ? d2({ names: n2.getNames(), workbook: n2, ...s2 }, O2) : null, [d2, s2, i2, u2, n2, y2]), G2 = V(() => L(pe, { elevation: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 0, backgroundImage: `linear-gradient(${mt("#fff", pt(5))}, ${mt("#fff", pt(5))})`, border: (e3) => `solid ${y2 ? e3.palette.action.disabled : mt(e3.palette.divider, 0.2)} 1px` }, children: [z(He, { sx: { border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: true, outlined: false, color: "warning", "aria-label": "cancel-formula-edit", icon: z(wt, { iconKey: "CloseError" }), propsTooltip: { label: "Cancel", simple: true }, disabled: y2 || null === W2, onMouseDown: (e3) => {
832
+ }, [u2, W2, h2, N2, a2]), O2 = q(null), K2 = V(() => i2 ? d2({ names: n2.getNames(), workbook: n2, ...s2 }, O2) : null, [d2, s2, i2, u2, n2, y2]), G2 = V(() => L(ce, { elevation: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 0, backgroundImage: `linear-gradient(${mt("#fff", pt(5))}, ${mt("#fff", pt(5))})`, border: (e3) => `solid ${y2 ? e3.palette.action.disabled : mt(e3.palette.divider, 0.2)} 1px` }, children: [z(He, { sx: { border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: true, outlined: false, color: "warning", "aria-label": "cancel-formula-edit", icon: z(wt, { iconKey: "CloseError" }), propsTooltip: { label: "Cancel", simple: true }, disabled: y2 || null === W2, onMouseDown: (e3) => {
1117
833
  0 === e3.button && e3.preventDefault();
1118
834
  }, onClick: () => {
1119
835
  a2.cancelEdit();
@@ -1123,7 +839,7 @@ const kn = (e2, t2) => z(Cn, { ref: t2, ...e2 }), vn = $(O((e2, t2) => {
1123
839
  a2.submitEdit();
1124
840
  } }), z(He, { sx: { border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: true, outlined: false, disabled: true, "aria-label": "commit-formula-function", icon: z(wt, { iconKey: "Function", style: { transform: "scale(0.85)" } }), propsTooltip: { label: "Insert Function", simple: true }, onMouseDown: (e3) => {
1125
841
  0 === e3.button && e3.preventDefault();
1126
- } })] }), [y2, W2]), _2 = ct(), [U2, X2] = j(false), Z2 = V(() => L(Q, { className: "formula-bar", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", gap: (e3) => e3.spacing(0.5), alignItems: "start" }, children: [G2, L(pe, { elevation: 0, sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", fontFamily: (e3) => e3.typography.fontFamily, fontSize: 11 * l.getDeviceScale(), alignItems: "stretch", paddingTop: "2px", paddingBottom: "2px", boxShadow: "none", borderRadius: (e3) => `${e3.shape.borderRadius}px`, backgroundImage: `linear-gradient(${mt("#fff", pt(5))}, ${mt("#fff", pt(5))})`, border: (e3) => `solid ${y2 ? e3.palette.action.disabled : mt(e3.palette.divider, 0.2)} 1px`, "& textarea": { color: (e3) => y2 ? `${e3.palette.text.disabled} !important` : e3.palette.text.primary }, "& .react-resizable-handle": { width: "100%", height: "8px", backgroundColor: "transparent", boxSizing: "content-box", zIndex: 1e3 }, "& .react-resizable-handle-s": { position: "absolute", bottom: "-10px", cursor: "s-resize" } }, onFocus: () => X2(true), onBlur: () => X2(false), onMouseDown: (e3) => {
842
+ } })] }), [y2, W2]), _2 = ct(), [U2, X2] = j(false), Z2 = V(() => L(Q, { className: "formula-bar", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", gap: (e3) => e3.spacing(0.5), alignItems: "start" }, children: [G2, L(ce, { elevation: 0, sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", fontFamily: (e3) => e3.typography.fontFamily, fontSize: 11 * l.getDeviceScale(), alignItems: "stretch", paddingTop: "2px", paddingBottom: "2px", boxShadow: "none", borderRadius: (e3) => `${e3.shape.borderRadius}px`, backgroundImage: `linear-gradient(${mt("#fff", pt(5))}, ${mt("#fff", pt(5))})`, border: (e3) => `solid ${y2 ? e3.palette.action.disabled : mt(e3.palette.divider, 0.2)} 1px`, "& textarea": { color: (e3) => y2 ? `${e3.palette.text.disabled} !important` : e3.palette.text.primary }, "& .react-resizable-handle": { width: "100%", height: "8px", backgroundColor: "transparent", boxSizing: "content-box", zIndex: 1e3 }, "& .react-resizable-handle-s": { position: "absolute", bottom: "-10px", cursor: "s-resize" } }, onFocus: () => X2(true), onBlur: () => X2(false), onMouseDown: (e3) => {
1127
843
  e3.target?.classList.contains("react-resizable-handle") && e3.preventDefault();
1128
844
  }, children: [z(Q, { className: "formula-editor", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", alignItems: "center", marginTop: "0px", paddingLeft: (e3) => e3.spacing(1), paddingRight: (e3) => e3.spacing(1) }, children: z(Ot, { height: R2, draggableOpts: { grid: [T2, T2] }, minConstraints: [T2, T2], maxConstraints: [15 * T2, 15 * T2], onResize: P2, onResizeStop: E2, resizeHandles: ["s"], axis: "y", style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: $2 }) }), z(He, { sx: { padding: "0px", margin: "0px 0px", border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: true, outlined: false, "aria-label": "toggle-expand-formula-edit", icon: z(wt, { iconKey: N2 > 1 ? "ExpandLess" : "ExpandMore" }), propsTooltip: { label: (N2 > 1 ? "Collapse" : "Expand") + " Formula Bar", simple: true }, onMouseDown: (e3) => {
1129
845
  0 === e3.button && e3.preventDefault();
@@ -1133,21 +849,161 @@ const kn = (e2, t2) => z(Cn, { ref: t2, ...e2 }), vn = $(O((e2, t2) => {
1133
849
  } }), z(Q, { sx: { position: "absolute", width: "100%", height: "2px", bottom: "0", willChange: "opacity", transition: "opacity 60ms ease-in", opacity: U2 ? 1 : 0, borderBottomWidth: "2px", borderBottomStyle: "solid", borderBottomColor: (e3) => e3.palette.primary.main, borderRadius: (e3) => `${e3.shape.borderRadius}px` } })] })] }), [G2, $2, U2, N2, T2]), Y2 = V(() => K2 || Z2 ? !K2 && Z2 ? Z2 : K2 && !Z2 ? K2 : z(H, { children: z(Dt, { fixedPane: "before", minBefore: "165px", minAfter: "200px", propsPaneBefore: { style: { alignItems: "flex-start" } }, propsPaneAfter: { style: { overflow: "visible" } }, propsResizer: { style: { backgroundImage: `url("data:image/svg+xml,%3Csvg width='6' height='13' viewBox='0 0 6 13' version='1.1' fill='${_2.palette.text.icon ?? _2.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='m 4.5961932,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.88365,0 -1.60005,-0.71626 -1.60005,-1.59991 0,-0.88365 0.7164,-1.6000508 1.60005,-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.88365,0 -1.60005,-0.7164 -1.60005,-1.60004 0,-0.88365 0.7164,-1.60005 1.60005,-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 -0.88365,0 -1.60005,-0.7164 -1.60005,-1.60005 0,-0.88365 0.7164,-1.59991 1.60005,-1.59991 0.88364,0 1.59991,0.71626 1.59991,1.59991' /%3E%3C/svg%3E%0A")`, backgroundRepeat: "no-repeat", backgroundPosition: "center calc(((var(--icon-size, 24) - 13px + 5px) / 2))", minWidth: "18px", marginRight: "1px" } }, elementBefore: K2, elementAfter: Z2 }) }) : null, [K2, Z2]), J2 = Rt(t2, () => ({ isFormulaBarElement: () => true, getNamedCollectionEditorElement: () => O2.current }), []);
1134
850
  return z(Q, { sx: { display: "flex", flexDirection: "row", gap: (e3) => e3.spacing(0.5), ...o2 }, ref: J2, ...p2, children: Y2 });
1135
851
  }));
1136
- vn.displayName = "FormulaBar";
1137
- const Tn = $(O((e2, t2) => {
852
+ Yo.displayName = "FormulaBar";
853
+ const Qo = $(O((e2, t2) => {
1138
854
  const { filter: o2, commands: n2, disabled: a2, style: r2, floatReference: l2, ...i2 } = e2, s2 = V(() => ({}), []), d2 = V(() => ({ commandHook: { beforeExecute: (e3, t3) => l2.closeAll(), onExecute() {
1139
855
  }, onError() {
1140
856
  console.log("onError");
1141
857
  } }, disabled: a2, parentFloat: l2 }), [a2, l2]), c2 = V(() => ({ ...s2, ...d2, variant: ft.Menuitem }), [s2, d2]), m2 = L(H, { children: [z(ke, { ...c2, command: n2.getCommand("sortAscending") }), z(ke, { ...c2, command: n2.getCommand("sortDescending") }), z(ve, { orientation: "horizontal" }), z(ke, { ...c2, command: n2.getCommand("autoFilterClear") }), []] });
1142
858
  return z(Q, { ref: t2, style: { paddingTop: "4px", paddingBottom: "4px", display: "flex", flexDirection: "column", ...r2 }, ...i2, children: m2 });
1143
859
  }));
1144
- Tn.displayName = "FilterColumnMenu";
1145
- const Rn = $(O((e2, t2) => {
860
+ Qo.displayName = "FilterColumnMenu";
861
+ const Jo = $(O((e2, t2) => {
1146
862
  const { children: o2, className: n2, disabled: a2, style: r2, filter: l2, ...i2 } = e2, s2 = Rt(t2, () => ({ isFilters: () => true }), []);
1147
863
  return z("div", { ref: s2, className: gt("filters", n2), style: { position: "relative", display: "flex", flexDirection: "column", alignItems: "center", gap: "8px", ...r2 }, ...i2, children: L("div", { style: { flex: "1 1 100%", display: "flex", minHeight: "100px", minWidth: "220px", alignItems: "center", border: "grey solid 1px", padding: "4px 4px", overflow: "hidden", flexDirection: "column", justifyContent: "space-evenly", marginTop: "4px", marginBottom: "4px", marginLeft: "16px", marginRight: "16px" }, children: [z("div", { children: l2.getName() }), z("div", { children: "Filter Widget" })] }) });
1148
864
  }));
1149
- Rn.displayName = "Filters";
1150
- const Dn = $(O((e2, t2) => {
865
+ Jo.displayName = "Filters";
866
+ const en = "_sheetxl-reset_11z3j_1", tn = 10, on = $(O((e2, t2) => {
867
+ const { styles: o2, table: n2, tableStyle: a2 = n2?.getStyle() ?? o2.getDefaultTableStyle(), bodyStyle: r2, sx: l2, disabled: i2, className: s2, forceThinBorder: c2, cellHeight: m2 = tn, isLive: p2 = false, ...u2 } = e2, g2 = Math.ceil(1.3 * m2), [h2, f2] = Z((e3) => e3 + 1, 0);
868
+ _(() => {
869
+ if (p2 && n2) return n2.addListeners({ onAnyChange: () => {
870
+ f2();
871
+ } });
872
+ }, [n2, p2]);
873
+ const x2 = V(() => {
874
+ let e3 = n2?.toJSON() ?? {};
875
+ const t3 = { rowStart: 0, colStart: 0, rowEnd: 4, colEnd: 4 };
876
+ return e3 && (e3.styleOptions = { ...e3.styleOptions, name: a2.getName() }), e3.ref = t3, new d({ initialAnchor: t3, json: e3, styles: o2 });
877
+ }, [h2, n2, a2, o2]), b2 = V(() => {
878
+ const e3 = [];
879
+ for (let t3 = 0; t3 < 5; t3++) for (let o3 = 0; o3 < 5; o3++) {
880
+ const n3 = x2.getStyleAt({ colIndex: o3, rowIndex: t3 });
881
+ e3.push(n3);
882
+ }
883
+ return e3;
884
+ }, [x2]), w2 = V(() => {
885
+ const e3 = (e4, t4, o3) => {
886
+ let n3 = o3.getFill().toCSS(r2?.darkMode ?? false);
887
+ const a3 = g2 - (t4 < 4 ? 1 : 0), l3 = m2 - (e4 < 4 ? 1 : 0), i3 = o3.getFont().getFill().toCSS(r2?.darkMode ?? false);
888
+ return n3 = { ...n3, position: "absolute", boxSizing: "border-box", left: t4 * (g2 - 1), top: e4 * (m2 - 1), width: a3, height: l3 }, z("td", { className: `table-style-fill ${e4}-${t4}`, style: n3, children: z("div", { className: `table-style-text ${e4}-${t4}`, style: { position: "absolute", boxSizing: "border-box", width: "6px", left: (a3 - 6) / 2, top: (l3 - 1) / 2, borderTop: `1px solid ${i3}` } }) }, `${e4}-${t4}`);
889
+ }, t3 = [];
890
+ for (let o3 = 0; o3 < 5; o3++) {
891
+ const n3 = [];
892
+ for (let t4 = 0; t4 < 5; t4++) {
893
+ const a3 = b2[5 * o3 + t4];
894
+ n3.push(e3(o3, t4, a3));
895
+ }
896
+ t3.push(z("tr", { children: n3 }, o3));
897
+ }
898
+ return t3;
899
+ }, [x2, a2, r2]), S2 = K((e3, t3) => b2[t3].getBorder() ?? null, [b2]);
900
+ return z(Q, { ref: t2, className: "table-format-preview", sx: { background: r2?.fill, filter: i2 ? "grayscale(0.4) opacity(0.8);" : "none", "& .styled-element": { position: "absolute" }, ...l2 }, ...u2, children: z(y, { getBorderAt: S2, rowCount: 5, columnCount: 5, forceThinBorder: c2, width: 5 * (g2 - 1) + 1, height: 5 * (m2 - 1) + 1, darkMode: r2?.darkMode ?? false, style: { pointerEvents: "none" }, children: z("table", { className: gt(s2, "sheetxl-table-preview", en), style: { borderCollapse: "collapse", width: 5 * (g2 - 1) + 1, height: 5 * (m2 - 1) + 1 }, children: z("tbody", { children: w2 }) }) }) });
901
+ })), nn = (e2, t2, o2, n2, a2) => {
902
+ e2.beginPath(), e2.moveTo(t2 + 0.5, o2 + 0.5), e2.lineTo(n2 + 0.5, a2 + 0.5), e2.stroke();
903
+ }, an = $(O((e2, t2) => {
904
+ const { table: o2, tableStyle: n2, styles: a2, bodyStyle: r2, disabled: l2, style: i2, className: s2, canvas: m2, ...p2 } = e2, u2 = V(() => {
905
+ const e3 = o2.toJSON(), t3 = { rowStart: 0, colStart: 0, rowEnd: 4, colEnd: 4 };
906
+ return e3.styleOptions = { ...e3.styleOptions, name: n2.getName() }, e3.ref = t3, new d({ initialAnchor: t3, json: e3, styles: a2 });
907
+ }, [o2, n2, a2]), g2 = V(() => {
908
+ const e3 = [];
909
+ for (let t3 = 0; t3 < 5; t3++) for (let o3 = 0; o3 < 5; o3++) {
910
+ const n3 = u2.getStyleAt({ colIndex: o3, rowIndex: t3 });
911
+ e3.push(n3);
912
+ }
913
+ return e3;
914
+ }, [u2]), h2 = V(() => {
915
+ let e3 = m2;
916
+ if (m2 || (e3 = document.createElement("canvas")), !e3) return null;
917
+ 61 !== e3.width && (e3.width = 61), 46 !== e3.height && (e3.height = 46);
918
+ const t3 = e3.getContext("2d", { alpha: false });
919
+ if (!t3) return null;
920
+ const o3 = 12, n3 = r2?.darkMode ?? false;
921
+ for (let e4 = 0; e4 < 5; e4++) for (let a3 = 0; a3 < 5; a3++) {
922
+ const l3 = g2[5 * e4 + a3].getFill();
923
+ let i3 = r2?.fill;
924
+ l3.getType() === c.Type.Solid ? i3 = l3.getColor().toCSS(n3, false) : l3.getType() === c.Type.Gradient ? i3 = l3.getStops[0]?.color.toCSS(n3, false) : l3.getType() === c.Type.Pattern && (i3 = l3.getForeground().toCSS(n3, false)), t3.fillStyle = i3;
925
+ const s3 = a3 * o3, d2 = 9 * e4;
926
+ t3.fillRect(s3, d2, 13, 10);
927
+ }
928
+ t3.lineWidth = 1;
929
+ for (let e4 = 0; e4 < 5; e4++) for (let a3 = 0; a3 < 5; a3++) {
930
+ const r3 = g2[5 * e4 + a3], l3 = a3 * o3, i3 = 9 * e4, s3 = r3.getBorder();
931
+ if (!s3.isEmpty()) {
932
+ const a4 = s3.getLeft();
933
+ a4.isNone() || (t3.strokeStyle = a4.getColor().toCSS(n3, false), nn(t3, l3, i3, l3, i3 + 9));
934
+ const r4 = s3.getTop();
935
+ r4.isNone() || (t3.strokeStyle = r4.getColor().toCSS(n3, false), nn(t3, l3, i3, l3 + o3, 9 * e4));
936
+ const d3 = s3.getRight();
937
+ d3.isNone() || (t3.strokeStyle = d3.getColor().toCSS(n3, false), nn(t3, l3 + o3, i3, l3 + o3, i3 + 9));
938
+ const c3 = s3.getBottom();
939
+ c3.isNone() || (t3.strokeStyle = c3.getColor().toCSS(n3, false), nn(t3, l3, i3 + 9, l3 + o3, i3 + 9));
940
+ }
941
+ t3.strokeStyle = r3.getFont().getFill().toCSS(n3, false);
942
+ const d2 = 4, c2 = 2.5;
943
+ nn(t3, a3 * o3 + c2, 9 * e4 + d2, a3 * o3 + c2 + 7, 9 * e4 + d2);
944
+ }
945
+ return `url(${e3.toDataURL()})`;
946
+ }, [m2, u2, n2, r2]);
947
+ return z("div", { ref: t2, className: gt("table-style-preview", s2), style: { backgroundImage: h2, width: 61, height: 46, ...i2 }, ...p2 });
948
+ })), rn = "_table-style-options-container_1kfn2_1", ln = "_table-style-options_1kfn2_1", sn = $(O((e2, t2) => {
949
+ const { styleOptions: o2, onStyleOptionsChange: n2, showHeaderRow: a2, onShowHeaderRowChange: r2, showTotalRow: l2, onShowTotalRowChange: i2, showFilterButton: s2, onShowFilterButtonChange: d2, sx: c2, className: m2, disabled: p2, ...u2 } = e2;
950
+ return z("div", { className: rn, children: L(Q, { sx: { pt: 1, pb: 1, "& .MuiFormControlLabel-root": { marginLeft: (e3) => `${e3.spacing(2)}`, marginRight: (e3) => `${e3.spacing(2)}` }, "& .MuiCheckbox-root": { padding: (e3) => `${e3.spacing(0.5)}` }, ...c2 }, ...u2, ref: t2, className: gt(m2, ln), children: [r2 && z(me, { control: z(pe, { checked: a2 ?? false, indeterminate: null == a2, onChange: () => r2(!a2), disabled: p2 || null == a2 }), label: "Header Row", labelPlacement: "end" }), i2 && z(me, { control: z(pe, { checked: l2 ?? false, indeterminate: null == l2, onChange: () => i2(!l2), disabled: p2 || null == l2 }), label: "Total Row", labelPlacement: "end" }), z(me, { control: z(pe, { checked: o2?.showRowStripes ?? false, indeterminate: !o2, disabled: p2 || !o2, onChange: () => {
951
+ n2?.({ ...o2, showRowStripes: !o2?.showRowStripes });
952
+ } }), label: "Banded Rows", labelPlacement: "end" }), z(me, { control: z(pe, { checked: o2?.showFirstColumn ?? false, indeterminate: !o2, disabled: p2 || !o2, onChange: () => {
953
+ n2?.({ ...o2, showFirstColumn: !o2?.showFirstColumn });
954
+ } }), label: "First Column", labelPlacement: "end" }), z(me, { control: z(pe, { checked: o2?.showLastColumn ?? false, indeterminate: !o2, disabled: p2 || !o2, onChange: () => {
955
+ n2?.({ ...o2, showLastColumn: !o2?.showLastColumn });
956
+ } }), label: "Last Column", labelPlacement: "end" }), z(me, { control: z(pe, { checked: o2?.showColumnStripes ?? false, indeterminate: !o2, disabled: p2 || !o2, onChange: () => {
957
+ n2?.({ ...o2, showColumnStripes: !o2?.showColumnStripes });
958
+ } }), label: "Banded Columns", labelPlacement: "end" }), d2 && z(me, { control: z(pe, { checked: s2 ?? false, indeterminate: null == s2, disabled: p2 || !o2 || null == s2, onChange: () => d2(!s2) }), label: "Filter Button", labelPlacement: "end" })] }) });
959
+ })), dn = "_range-row_akhf4_1", cn = "_action-row_akhf4_15", mn = $(O((e2, t2) => {
960
+ const { title: o2, commands: n2, className: a2, ...r2 } = e2, l2 = vt(), [i2, s2] = j(false), [d2, c2] = j(false), m2 = q(null), [p2, u2] = Z((e3) => e3 + 1, 0), [g2, { width: h2 }] = jt(), f2 = ht(n2, ["editTable"])[0].getContext(), x2 = f2.table(), [b2, y2] = j(() => x2 ? f2.getNames().getRanges(x2.getRange()) : null), S2 = V(() => x2?.getName() ?? "", [x2]);
961
+ w(f2.table(), { onAnchorCoordsChange(e3) {
962
+ y2(f2.getNames().getRanges(e3.getRange()));
963
+ }, onProtectedChange(e3) {
964
+ u2();
965
+ } });
966
+ const C2 = xt((e3) => {
967
+ f2?.table().setName(e3);
968
+ }, [f2]), k2 = xt((e3) => {
969
+ f2?.table().resize(e3.at(0));
970
+ }, [f2]);
971
+ let v2 = null;
972
+ return f2.table() || (v2 = z(J, { component: "div", style: { top: "0", left: "0", width: "100%", height: "100%", display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center" }, children: "No table selected" })), z(ce, { square: true, onFocus: () => s2(true), onBlur: (e3) => {
973
+ m2?.current?.contains(e3.relatedTarget) || s2(false);
974
+ }, ref: Vt([m2, g2, t2]), sx: { display: "flex", flexDirection: "column", flex: "1 1 auto", width: "100%", height: "100%", overflow: "auto", paddingLeft: (e3) => e3.spacing(1.5), paddingRight: (e3) => e3.spacing(1.5), paddingTop: (e3) => e3.spacing(1.5), paddingBottom: (e3) => e3.spacing(1.5), boxSizing: "border-box" }, className: gt("sxl-table-details-panel", a2, { "sxl-has-focus": i2 }), ...r2, children: v2 || L(Q, { sx: { display: "flex", flex: "1 1 auto", flexDirection: "column", transition: "opacity 60ms", opacity: f2.table() ? 1 : 0 }, children: [z(Q, { sx: { containerType: "inline-size", display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingTop: (e3) => e3.spacing(2), paddingLeft: (e3) => e3.spacing(2), paddingRight: (e3) => e3.spacing(2) }, children: L(Q, { className: dn, children: [z($o, { formName: "name", defaultInput: S2, value: x2?.getName() ?? "No table", onChangeInput: C2, onValidate: (e3) => {
975
+ x2 && x2.getName().toLowerCase() === e3.toLowerCase() || f2?.getNames().validateName(e3);
976
+ }, disabled: x2?.isProtected() ?? true, onFocus: (e3) => {
977
+ d2 || e3.target?.select(), c2(true);
978
+ } }), z(Vo, { formName: "range", value: b2, onChangeInput: k2, resolvedAddress: f2.getNames().getRanges.bind(f2.getNames()), disabled: x2?.isProtected() ?? true, onFocus: (e3) => {
979
+ d2 || e3.target?.select(), c2(true);
980
+ } })] }) }), L(Q, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", containerType: "inline-size", gap: (e3) => e3.spacing(0.5), marginTop: (e3) => e3.spacing(1) }, children: [z(ve, { orientation: "horizontal", sx: { marginTop: (e3) => e3.spacing(1.5), marginBottom: (e3) => e3.spacing(0.75) } }), z(Q, { sx: { display: "flex", flex: "1 1 100%", alignItems: "center", justifyContent: "start", flexDirection: "column", marginTop: (e3) => e3.spacing(1), marginBottom: (e3) => e3.spacing(1) }, children: L("div", { style: { display: "flex", alignItems: "start", gap: "2px" }, children: [z(on, { table: x2, styles: f2.styles(), bodyStyle: f2.bodyStyle(), cellHeight: 30, isLive: true }), z(Ia, { command: n2.getCommand("formatTableStyle"), commands: n2, disabledQuickKey: true })] }) }), z(ve, { orientation: "horizontal", sx: { marginTop: (e3) => e3.spacing(1.5), marginBottom: (e3) => e3.spacing(0.75) } }), z(sn, { disabled: x2?.isProtected(), styleOptions: x2?.getStyleOptions() ?? null, onStyleOptionsChange: (e3) => {
981
+ x2.updateStyleOptions(e3);
982
+ }, showHeaderRow: x2?.getShowHeaders(), onShowHeaderRowChange: (e3) => {
983
+ try {
984
+ x2.setShowHeaders(e3);
985
+ } catch (e4) {
986
+ l2.showError(e4);
987
+ }
988
+ }, showTotalRow: x2?.getShowTotals(), onShowTotalRowChange: (e3) => {
989
+ try {
990
+ x2.setShowTotals(e3);
991
+ } catch (e4) {
992
+ l2.showError(e4);
993
+ }
994
+ }, showFilterButton: x2?.getFilter() ? x2.getShowFilterButton() : null, onShowFilterButtonChange: (e3) => {
995
+ try {
996
+ x2.setShowFilterButton(e3);
997
+ } catch (e4) {
998
+ l2.showError(e4);
999
+ }
1000
+ } }), z(ve, { orientation: "horizontal" }), L(Q, { className: cn, children: [z(ke, { variant: ft.Menuitem, command: n2.getCommand("convertTableToRange"), commandState: x2 }), z(ke, { variant: ft.Menuitem, commandState: x2, command: n2.getCommand("deleteTable") })] })] })] }) });
1001
+ })), pn = (e2, t2) => {
1002
+ const { model: o2, commands: n2, entryKey: a2, frame: r2, ...l2 } = e2;
1003
+ return z(mn, { ref: t2, commands: n2, ...l2 });
1004
+ }, un = () => {
1005
+ Ft.register("plugin-table", { icons: {} }), k.registerTaskPane({ key: "tableDetails", getTitle: () => "Table Details", getIcon: () => "Table", renderTaskPane: pn }, true);
1006
+ }, gn = $(O((e2, t2) => {
1151
1007
  const { children: o2, sheet: n2, style: a2, className: r2, value: l2, index: i2, editing: s2, editable: d2, disabled: c2, selectedIndex: m2, dragging: p2, borderColor: u2, borderWidth: g2, activeColor: h2, background: f2 = "white", tabRadius: x2 = 4, gridTheme: b2, ...y2 } = e2, [S2, C2] = j(() => !!n2 && n2.getProtection().isLocked()), [k2, v2] = j(() => n2 ? n2.getTabColor() : null);
1152
1008
  w(n2, { onProtectionChange: () => {
1153
1009
  C2(n2.getProtection().isLocked());
@@ -1165,10 +1021,10 @@ const Dn = $(O((e2, t2) => {
1165
1021
  let M2 = null;
1166
1022
  "string" == typeof u2 ? M2 = u2 : u2?.toCSS && (M2 = u2.toCSS());
1167
1023
  const N2 = R2 ? z(Q, { sx: { width: "100%", borderRadius: "4px", minWidth: "4px", height: "2px", backgroundColor: (e3) => e3.palette.primary.main } }) : null;
1168
- return z(ut, { theme: R2 ? b2 ?? T2 : T2, children: z(Q, { ref: t2, className: gt(r2), sx: { ...a2, display: "flex", flexDirection: "column", minHeight: "0px", fontWeight: R2 ? "700" : "400", fontSize: "0.85rem", letterSpacing: "0", lineHeight: "1", textTransform: "none", minWidth: "unset", cursor: p2 ? "grabbing" : void 0 }, ...y2, children: z(Ft, { style: { flex: "1 1 100%", display: "flex", flexDirection: "row" }, radius: x2, strokeColor: R2 ? M2 : "transparent", children: z(ne, { sx: { textTransform: "none", borderRadius: "0px", minHeight: "0px", paddingLeft: "11px", paddingRight: "12px", paddingTop: "3px", flex: "1 1 100%", paddingBottom: "3px", fontWeight: R2 ? "700" : "400", fontSize: "0.85rem", letterSpacing: "0", transition: "none", cursor: p2 ? "grabbing" : void 0, color: R2 ? "primary" : F2 || "text.secondary", backgroundColor: R2 ? f2 : "transparent", "&:hover:not([disabled])": { backgroundColor: R2 ? f2 : "transparent" }, "& input": { color: (e3) => `${e3.palette.text.primary}`, textAlign: "center", fontWeight: "500" }, marginTop: "0px", minWidth: "unset" }, disabled: c2, disableRipple: s2, component: "div", children: L(H, { children: [D2, L(Q, { sx: { zIndex: "1", display: "flex", flexDirection: "row", alignItems: "center" }, children: [L(Q, { sx: { display: "flex", flexDirection: "column", alignItems: "center", rowGap: "1px", lineHeight: "1", marginTop: R2 ? void 0 : "1px" }, children: [o2, N2] }), S2 ? z(wt, { iconKey: "Lock", style: { scale: "0.80", marginLeft: "2px", width: "22px", height: "22px" }, color: "secondary" }) : z(Q, { sx: { minHeight: "22px" } })] })] }) }, l2 + ":" + i2) }) }) });
1024
+ return z(ut, { theme: R2 ? b2 ?? T2 : T2, children: z(Q, { ref: t2, className: gt(r2), sx: { ...a2, display: "flex", flexDirection: "column", minHeight: "0px", fontWeight: R2 ? "700" : "400", fontSize: "0.85rem", letterSpacing: "0", lineHeight: "1", textTransform: "none", minWidth: "unset", cursor: p2 ? "grabbing" : void 0 }, ...y2, children: z(Mt, { style: { flex: "1 1 100%", display: "flex", flexDirection: "row" }, radius: x2, strokeColor: R2 ? M2 : "transparent", children: z(ne, { sx: { textTransform: "none", borderRadius: "0px", minHeight: "0px", paddingLeft: "11px", paddingRight: "12px", paddingTop: "3px", flex: "1 1 100%", paddingBottom: "3px", fontWeight: R2 ? "700" : "400", fontSize: "0.85rem", letterSpacing: "0", transition: "none", cursor: p2 ? "grabbing" : void 0, color: R2 ? "primary" : F2 || "text.secondary", backgroundColor: R2 ? f2 : "transparent", "&:hover:not([disabled])": { backgroundColor: R2 ? f2 : "transparent" }, "& input": { color: (e3) => `${e3.palette.text.primary}`, textAlign: "center", fontWeight: "500" }, marginTop: "0px", minWidth: "unset" }, disabled: c2, disableRipple: s2, component: "div", children: L(H, { children: [D2, L(Q, { sx: { zIndex: "1", display: "flex", flexDirection: "row", alignItems: "center" }, children: [L(Q, { sx: { display: "flex", flexDirection: "column", alignItems: "center", rowGap: "1px", lineHeight: "1", marginTop: R2 ? void 0 : "1px" }, children: [o2, N2] }), S2 ? z(wt, { iconKey: "Lock", style: { scale: "0.80", marginLeft: "2px", width: "22px", height: "22px" }, color: "secondary" }) : z(Q, { sx: { minHeight: "22px" } })] })] }) }, l2 + ":" + i2) }) }) });
1169
1025
  }));
1170
- Dn.displayName = "SheetTab";
1171
- const Fn = $(O((e2, t2) => {
1026
+ gn.displayName = "SheetTab";
1027
+ const hn = $(O((e2, t2) => {
1172
1028
  const { workbook: o2, index: n2, commands: a2, scope: r2 = "sheet", disabled: l2, floatReference: i2, sx: s2, className: d2, tabStripRef: c2, ...m2 } = e2, [p2, u2] = j(o2?.getProtection());
1173
1029
  w(o2, { onProtectionChange: (e3) => {
1174
1030
  u2(e3?.getProtection());
@@ -1182,29 +1038,29 @@ const Fn = $(O((e2, t2) => {
1182
1038
  Promise.resolve(i2.closeAll()).then(() => {
1183
1039
  c2?.startEdit(n2);
1184
1040
  });
1185
- }, disabled: l2 || !p2.isStructureAllowed(), parentFloat: i2, children: ["Rename", "sheet" !== r2 ? " Sheet" : ""] }), z(ke, { command: a2.getCommand("duplicateSheet"), ...f2, variant: ft.Menuitem }), z(ke, { command: a2?.getCommand("protectionSheetToggle"), ...f2, variant: ft.Menuitem }), z($o, { variant: ft.Menuitem, command: a2.getCommand("formatSheetTabColor"), icon: z(wt, { iconKey: "stroke.colored" }), propsPanel: { disableAlpha: true, autoColorLabel: "No Tab Color", autoColorPosition: co.End }, parentFloat: i2 }), z(ve, { orientation: "horizontal" }), z(ke, { command: a2.getCommand("hideSheet"), ...f2, variant: ft.Menuitem })] });
1041
+ }, disabled: l2 || !p2.isStructureAllowed(), parentFloat: i2, children: ["Rename", "sheet" !== r2 ? " Sheet" : ""] }), z(ke, { command: a2.getCommand("duplicateSheet"), ...f2, variant: ft.Menuitem }), z(ke, { command: a2?.getCommand("protectionSheetToggle"), ...f2, variant: ft.Menuitem }), z(xa, { variant: ft.Menuitem, command: a2.getCommand("formatSheetTabColor"), icon: z(wt, { iconKey: "stroke.colored" }), propsPanel: { disableAlpha: true, autoColorLabel: "No Tab Color", autoColorPosition: co.End }, parentFloat: i2 }), z(ve, { orientation: "horizontal" }), z(ke, { command: a2.getCommand("hideSheet"), ...f2, variant: ft.Menuitem })] });
1186
1042
  return z(Q, { ref: t2, className: gt("menu", d2), sx: { ...s2 }, ...m2, children: x2 });
1187
1043
  }));
1188
- Fn.displayName = "SheetTabMenu";
1189
- const Mn = $(O((e2, t2) => {
1190
- const { workbook: o2, gridStyle: n2, floatReference: a2, closeFloatAll: r2, className: l2, ...i2 } = e2, [s2, d2] = j(o2?.getSheets().getItems()), [c2, m2] = j(o2?.getProtection());
1044
+ hn.displayName = "SheetTabMenu";
1045
+ const fn = $(O((e2, t2) => {
1046
+ const { workbook: o2, gridStyle: n2, floatReference: a2, closeFloatAll: r2, className: l2, ...i2 } = e2, [s2, d2] = j(o2?.getSheets().getItems()), [c2, p2] = j(o2?.getProtection());
1191
1047
  w(o2, { onSheetsChange: (e3) => {
1192
1048
  d2(e3.getSheets().getItems());
1193
1049
  }, onProtectionChange: (e3) => {
1194
- m2(e3?.getProtection());
1050
+ p2(e3?.getProtection());
1195
1051
  } });
1196
- const p2 = V(() => {
1197
- const e3 = [], t3 = o2.getSheets().getItems({ visibility: g.Visibility.Hidden }), r3 = o2.getSelectedSheet();
1052
+ const u2 = V(() => {
1053
+ const e3 = [], t3 = o2.getSheets().getItems({ visibility: m.Visibility.Hidden }), r3 = o2.getSelectedSheet();
1198
1054
  for (let o3 = 0; o3 < t3.length; o3++) {
1199
1055
  const l3 = t3[o3], i3 = l3.getVisibility();
1200
- if (i3 === g.Visibility.VeryHidden) continue;
1201
- const s3 = r3 === l3, d3 = l3.getProtection().isLocked(), m3 = l3.getTabColor(), p3 = n2?.body.fill ?? "transparent";
1202
- let u2 = null, h2 = null, f2 = p3;
1203
- m3 && (f2 = m3.toCSS(), s3 || (h2 = m3.toBlackOrWhite().toCSS()), u2 = z(Q, { sx: { position: "absolute", display: "flex", flexDirection: "column", top: "4px", left: "40px", right: "8px", bottom: "4px", background: s3 ? f2 : "transparent", borderRadius: "4px", border: `solid 1px ${n2.header.edgeStrokeFill}` }, children: z(Q, { sx: { flex: "1 1 100%", boxSizing: "content-box", opacity: s3 || i3 === g.Visibility.Hidden ? "50%" : "100%", border: (e4) => s3 ? `${p3} solid 1.5px` : `${e4.palette.divider} solid 1px`, background: s3 && m3 ? `linear-gradient(0deg, ${f2} 0%, ${p3})` : f2, borderRadius: "4px" } }) }));
1056
+ if (i3 === m.Visibility.VeryHidden) continue;
1057
+ const s3 = r3 === l3, d3 = l3.getProtection().isLocked(), p3 = l3.getTabColor(), u3 = n2?.body.fill ?? "transparent";
1058
+ let g2 = null, h2 = null, f2 = u3;
1059
+ p3 && (f2 = p3.toCSS(), s3 || (h2 = p3.toBlackOrWhite().toCSS()), g2 = z(Q, { sx: { position: "absolute", display: "flex", flexDirection: "column", top: "4px", left: "40px", right: "8px", bottom: "4px", background: s3 ? f2 : "transparent", borderRadius: "4px", border: `solid 1px ${n2.header.edgeStrokeFill}` }, children: z(Q, { sx: { flex: "1 1 100%", boxSizing: "content-box", opacity: s3 || i3 === m.Visibility.Hidden ? "50%" : "100%", border: (e4) => s3 ? `${u3} solid 1.5px` : `${e4.palette.divider} solid 1px`, background: s3 && p3 ? `linear-gradient(0deg, ${f2} 0%, ${u3})` : f2, borderRadius: "4px" } }) }));
1204
1060
  let x2 = null;
1205
- d3 && (x2 = z(wt, { iconKey: "Lock" })), i3 !== g.Visibility.Visible && (x2 = z(wt, { iconKey: "VisibilityOff", style: { opacity: c2.isStructureAllowed() ? 1 : 0.7 }, color: "secondary" })), x2 && (x2 = z(Q, { sx: { display: "flex", flex: "1 1 100%", alignItems: "center", ml: "16px", "& *": { lineHeight: "1em", fontSize: "1.3em" } }, children: x2 })), e3.push(z(Pe, { disabled: !c2.isStructureAllowed() && i3 === g.Visibility.Hidden, sx: { color: (e4) => {
1061
+ d3 && (x2 = z(wt, { iconKey: "Lock" })), i3 !== m.Visibility.Visible && (x2 = z(wt, { iconKey: "VisibilityOff", style: { opacity: c2.isStructureAllowed() ? 1 : 0.7 }, color: "secondary" })), x2 && (x2 = z(Q, { sx: { display: "flex", flex: "1 1 100%", alignItems: "center", ml: "16px", "& *": { lineHeight: "1em", fontSize: "1.3em" } }, children: x2 })), e3.push(z(Pe, { disabled: !c2.isStructureAllowed() && i3 === m.Visibility.Hidden, sx: { color: (e4) => {
1206
1062
  let t4 = s3 ? e4.palette.primary.main : e4.palette.text.secondary;
1207
- return h2 && (t4 = h2), i3 === g.Visibility.Hidden && (t4 = Kt(t4, e4.palette.action.disabledOpacity)), t4;
1063
+ return h2 && (t4 = h2), i3 === m.Visibility.Hidden && (t4 = Kt(t4, e4.palette.action.disabledOpacity)), t4;
1208
1064
  }, borderLeft: (e4) => `${s3 ? e4.palette.primary.main : "transparent"} solid 2px`, paddingLeft: "4px", paddingTop: "4px", paddingBottom: "4px", fontWeight: s3 ? "700" : "400", "&:hover": { fontWeight: "700" } }, icon: s3 ? z($e, {}) : void 0, onMouseDown: (e4) => e4.preventDefault(), onMouseUp: () => {
1209
1065
  Promise.resolve(a2.closeAll()).then(() => {
1210
1066
  try {
@@ -1213,31 +1069,31 @@ const Mn = $(O((e2, t2) => {
1213
1069
  console.error(e4);
1214
1070
  }
1215
1071
  });
1216
- }, children: L(H, { children: [u2, L(Q, { sx: { paddingRight: "0px", paddingLeft: "4px", display: "flex", flexDirection: "row", flex: "1 1 100%", overflow: "hidden", alignItems: "center", zIndex: 2 }, children: [L(Q, { className: "sheet-name", sx: { display: "flex", flexDirection: "column", paddingLeft: "8px", paddingRight: "8px", alignItems: "center" }, children: [l3.getName(), z(Q, { sx: { height: "0px", opacity: "0", fontWeight: "700" }, children: l3.getName() })] }), x2] })] }) }, "" + o3));
1072
+ }, children: L(H, { children: [g2, L(Q, { sx: { paddingRight: "0px", paddingLeft: "4px", display: "flex", flexDirection: "row", flex: "1 1 100%", overflow: "hidden", alignItems: "center", zIndex: 2 }, children: [L(Q, { className: "sheet-name", sx: { display: "flex", flexDirection: "column", paddingLeft: "8px", paddingRight: "8px", alignItems: "center" }, children: [l3.getName(), z(Q, { sx: { height: "0px", opacity: "0", fontWeight: "700" }, children: l3.getName() })] }), x2] })] }) }, "" + o3));
1217
1073
  }
1218
1074
  return e3;
1219
1075
  }, [o2, c2, s2, a2, n2]);
1220
- return z(Q, { ref: t2, className: gt("menu", l2), ...i2, children: p2 });
1076
+ return z(Q, { ref: t2, className: gt("menu", l2), ...i2, children: u2 });
1221
1077
  }));
1222
- Mn.displayName = "SheetsAllMenu";
1223
- let Nn = false, Bn = false;
1224
- let En = null;
1225
- const Pn = async (e2) => {
1226
- const t2 = await h.getDetails();
1227
- if (Bn || t2.isEval()) {
1078
+ fn.displayName = "SheetsAllMenu";
1079
+ let xn = false, bn = false;
1080
+ let yn = null;
1081
+ const wn = async (e2) => {
1082
+ const t2 = await p.getDetails();
1083
+ if (bn || t2.isEval()) {
1228
1084
  try {
1229
1085
  const e3 = top ?? window;
1230
- e3.SheetXL || (e3.SheetXL = Object.freeze({ getSelectedWorkbook: () => En?.getWorkbook(), getSelectedSheet: () => En?.getWorkbook().getSelectedSheet(), getSelectedRange: () => En?.getWorkbook().getSelectedRange(), getSelectedRanges: () => En?.getWorkbook().getSelectedRanges(), getRange: (e4) => En?.getWorkbook().getRange(e4), getSelectedWorkbookElement: () => En, getLicenseManager: () => h, moreExamples: () => {
1086
+ e3.SheetXL || (e3.SheetXL = Object.freeze({ getSelectedWorkbook: () => yn?.getWorkbook(), getSelectedSheet: () => yn?.getWorkbook().getSelectedSheet(), getSelectedRange: () => yn?.getWorkbook().getSelectedRange(), getSelectedRanges: () => yn?.getWorkbook().getSelectedRanges(), getRange: (e4) => yn?.getWorkbook().getRange(e4), getSelectedWorkbookElement: () => yn, getLicenseManager: () => p, moreExamples: () => {
1231
1087
  const e4 = { "SheetXL.getRange('Sheet1!e5:f6').setValues([[110, 220], [210, 220]])": { Summary: "Set an array of values." }, "SheetXL.getRange('a1:e5').setValue(100)": { Summary: "Set a single repeating value to a range." }, "SheetXL.getRange('Sheet1!e5:f6').getValues()": { Summary: "Get the values as a 2d array (see forEach)." }, "SheetXL.getSelectedRange().setValue(new Date())": { Summary: "Set current date/time using Javascript Date." }, "SheetXL.getSelectedRange().setValue('10/23/95')": { Summary: "Set current date/time using string." }, "SheetXL.getSelectedSheet().getUsedRange().getValues()": { Summary: "Get all of the values in a sheet." }, "SheetXL.getSelectedRange().getStyle().update({ fill: 'accent4' })": { Summary: "Set fill to theme color 4." }, "SheetXL.getRange('E:L').getStyle().update({ fill: 'accent1 lumMod 90 lumOff 40' })": { Summary: "Set some columns to a modified theme color." }, "SheetXL.getRange('e5:f10').getStyle().update({ style: { border: 'double blue' }})": { Summary: "Set border." }, "SheetXL.getCell().getStyle().fill.toCSS()": { Summary: "Get the fill style as css for the selected cell." }, "SheetXL.getRange('a1:a3').autoFill('a1:a7')": { Summary: "Autofill down." }, "SheetXL.getRange('e7:i9').merge({ orientation: 'rows' })": { Summary: "Merge cells horizontally." }, "SheetXL.getSelectedRange().sort({ ascending: false, hasHeader: false })": { Summary: "Sort selected cells ascending with a header." }, "SheetXL.getSelectedRange().clear('all')": { Summary: "Clear the current range a different way." }, "SheetXL.getSelectedSheet().getTables().add('b2:e9')": { Summary: "Create a 4x8 table at b2 for current sheet." }, "SheetXL.getRange('a1:c3').copyFrom('e1:g3')": { Summary: "Copy cells." }, "SheetXL.getRange('c:t').getColumnHeaders().setSize(30)": { Summary: "Set the size of columns to 30 pixels." }, "SheetXL.getRange('2:3').delete()": { Summary: "Remove rows 2 and 3 and shift up." }, "SheetXL.getSelectedSheet().getMovables().addImage('https://www.sheetxl.com/logo-text.svg')": { Summary: "Add an image." }, "SheetXL.getSelectedSheet().getMovables().addImage('https://www.sheetxl.com/logo-text.svg', { bounds: { height: 100 } })": { Summary: "Add an image of height 100." }, "SheetXL.getSelectedRange().doBatch(() => { SheetXL.getSelectedRange().setValue(1.50).getStyle().update({ numberFormat: '0%' }).autoFit(); }, 'Enter 150%')": { Summary: "Set value to 100 and numberformat to 0% as a single." }, "SheetXL.getSelectedRange().doBatch(() => { SheetXL.getSelectedRange().setValue('Remind Me Later').getStyle().update({ namedStyle: 'Note'}).autoFit(); }, 'Set Reminder')": { Summary: "Set a value and style to Note style and autofit text." }, "SheetXL.getSelectedWorkbook().getNames().addReference('Small_Range', 'A2:E5');": { Summary: "Add a named range." }, "SheetXL.getSelectedWorkbook().getRange('a1:e5').addListener((e) => { console.log('got an update for:', e.getSource().toString()) })": { Summary: "Listen for updates at a range." } };
1232
1088
  console.table(e4);
1233
1089
  } }));
1234
1090
  } catch (e3) {
1235
- e3 instanceof DOMException || console.error(e3), Nn = true;
1091
+ e3 instanceof DOMException || console.error(e3), xn = true;
1236
1092
  }
1237
- if (En !== e2 && (En = e2, !Nn)) try {
1238
- Nn = true;
1239
- (top ?? window).SheetXL && (await h._validate(true), h.wasPrinted() && (() => {
1240
- _t.consoleWithNoSource("%cTip: You can access the API directly in the console.\nTry\n%c>%c SheetXL.getRange('b2:c3').setValues([[42, 'Hello Word'], [new Date(), true]]) %c\n>%c SheetXL.moreExamples()", "color:#ffa726;", "font-family:monospace;color:#1976d2;font-size:12px;", "font-family:monospace;", "font-family:monospace;color:#1976d2;font-size:12px;", "font-family:monospace;"), Nn = true;
1093
+ if (yn !== e2 && (yn = e2, !xn)) try {
1094
+ xn = true;
1095
+ (top ?? window).SheetXL && (await p._validate(true), p.wasPrinted() && (() => {
1096
+ _t.consoleWithNoSource("%cTip: You can access the API directly in the console.\nTry\n%c>%c SheetXL.getRange('b2:c3').setValues([[42, 'Hello Word'], [new Date(), true]]) %c\n>%c SheetXL.moreExamples()", "color:#ffa726;", "font-family:monospace;color:#1976d2;font-size:12px;", "font-family:monospace;", "font-family:monospace;color:#1976d2;font-size:12px;", "font-family:monospace;"), xn = true;
1241
1097
  const e3 = document.getElementById("openEditorLink");
1242
1098
  e3 && e3.addEventListener("click", (e4) => {
1243
1099
  e4.preventDefault(), console.log("openScriptEditor called from console");
@@ -1247,20 +1103,20 @@ const Pn = async (e2) => {
1247
1103
  e3 instanceof DOMException || console.error(e3);
1248
1104
  }
1249
1105
  }
1250
- }, In = (e2) => {
1251
- Bn = e2;
1252
- }, An = 0.12, Ln = (e2, t2) => {
1106
+ }, Sn = (e2) => {
1107
+ bn = e2;
1108
+ }, Cn = 0.12, kn = (e2, t2) => {
1253
1109
  const o2 = {}, n2 = (e3) => {
1254
1110
  const t3 = e3.palette?.background.default ?? "rgba(255,255,255,1)";
1255
- return { text: { fontFamily: e3.typography?.fontFamily ?? "Calibri", fontSize: e3.typography?.fontSize ?? 8.25, fontWeight: e3.typography?.fontWeightRegular ?? "400", fill: "dark" === e3.palette.mode ? e3.palette?.text?.secondary : e3.palette?.text?.primary }, fill: t3, strokeFill: Ue(t3, An, e3.palette?.mode), darkMode: "dark" === e3.palette.mode };
1111
+ return { text: { fontFamily: e3.typography?.fontFamily ?? "Calibri", fontSize: e3.typography?.fontSize ?? 8.25, fontWeight: e3.typography?.fontWeightRegular ?? "400", fill: "dark" === e3.palette.mode ? e3.palette?.text?.secondary : e3.palette?.text?.primary }, fill: t3, strokeFill: je(t3, Cn, e3.palette?.mode), darkMode: "dark" === e3.palette.mode };
1256
1112
  }, a2 = n2(t2);
1257
- o2.body = n2(e2), o2.header = { ...o2.body, strokeFill: Ue(o2.body.fill, An, e2.palette?.mode), fill: t2 && "dark" === e2.palette.mode && t2.palette.mode !== e2.palette.mode ? o2.body.fill : Ue(o2.body.fill, 0.055, e2.palette?.mode), edgeStrokeFill: "dark" === e2.palette.mode ? o2.body.strokeFill : Ue(o2.body.fill, 0.328, e2.palette?.mode) }, o2.headerHover = (t3) => ({ ...o2.header, strokeFill: Ue(t3?.fill ?? o2.body.fill, 0.22, e2.palette?.mode), fill: Ue(t3?.fill ?? o2.header.fill, 0.065, e2.palette?.mode), text: { ...t3?.text, fontWeight: e2.typography?.fontWeightBold } });
1258
- const r2 = Ue("dark" !== e2.palette.mode ? e2.palette.primary.light : e2.palette.primary.main, 0.055, e2.palette?.mode);
1259
- o2.headerSelect = { ...o2.header, strokeFill: e2.palette.primary.main, fill: Kt(r2, 0.2), text: { ...o2.header.text, fill: e2.palette.primary.main }, dividerStrokeFill: Kt(r2, 0.7) }, o2.headerSelectAll = { ...o2.headerSelect, fill: Kt(r2, 0.9), text: { ...o2.headerSelect.text, fill: e2.palette.primary.contrastText }, edgeStrokeFill: o2.headerSelect.strokeFill }, o2.buttonSurface = { ...a2, strokeFill: Ue(a2.fill, An, t2.palette?.mode), fill: t2 && "dark" === t2.palette.mode && t2.palette.mode !== e2.palette.mode ? a2.fill : Ue(a2.fill, 0.055, t2.palette?.mode), edgeStrokeFill: "dark" === t2.palette.mode ? a2.strokeFill : Ue(a2.fill, 0.328, t2.palette?.mode) }, o2.headerSelection = { fill: e2.palette?.primary?.main ? Kt(e2.palette?.primary?.main, 0.1) : void 0, strokeFill: e2.palette?.primary?.main }, o2.headerSelectionInactive = { ...o2.headerSelection, fill: e2.palette?.divider ? Kt(e2.palette?.divider, 0.05) : void 0, strokeFill: "transparent" };
1113
+ o2.body = n2(e2), o2.header = { ...o2.body, strokeFill: je(o2.body.fill, Cn, e2.palette?.mode), fill: t2 && "dark" === e2.palette.mode && t2.palette.mode !== e2.palette.mode ? o2.body.fill : je(o2.body.fill, 0.055, e2.palette?.mode), edgeStrokeFill: "dark" === e2.palette.mode ? o2.body.strokeFill : je(o2.body.fill, 0.328, e2.palette?.mode) }, o2.headerHover = (t3) => ({ ...o2.header, strokeFill: je(t3?.fill ?? o2.body.fill, 0.22, e2.palette?.mode), fill: je(t3?.fill ?? o2.header.fill, 0.065, e2.palette?.mode), text: { ...t3?.text, fontWeight: e2.typography?.fontWeightBold } });
1114
+ const r2 = je("dark" !== e2.palette.mode ? e2.palette.primary.light : e2.palette.primary.main, 0.055, e2.palette?.mode);
1115
+ o2.headerSelect = { ...o2.header, strokeFill: e2.palette.primary.main, fill: Kt(r2, 0.2), text: { ...o2.header.text, fill: e2.palette.primary.main }, dividerStrokeFill: Kt(r2, 0.7) }, o2.headerSelectAll = { ...o2.headerSelect, fill: Kt(r2, 0.9), text: { ...o2.headerSelect.text, fill: e2.palette.primary.contrastText }, edgeStrokeFill: o2.headerSelect.strokeFill }, o2.buttonSurface = { ...a2, strokeFill: je(a2.fill, Cn, t2.palette?.mode), fill: t2 && "dark" === t2.palette.mode && t2.palette.mode !== e2.palette.mode ? a2.fill : je(a2.fill, 0.055, t2.palette?.mode), edgeStrokeFill: "dark" === t2.palette.mode ? a2.strokeFill : je(a2.fill, 0.328, t2.palette?.mode) }, o2.headerSelection = { fill: e2.palette?.primary?.main ? Kt(e2.palette?.primary?.main, 0.1) : void 0, strokeFill: e2.palette?.primary?.main }, o2.headerSelectionInactive = { ...o2.headerSelection, fill: e2.palette?.divider ? Kt(e2.palette?.divider, 0.05) : void 0, strokeFill: "transparent" };
1260
1116
  const l2 = t2 ?? e2, i2 = "dark" === l2.palette.mode;
1261
1117
  return o2.selection = { fill: l2.palette?.primary?.main ? Kt(l2.palette?.primary?.main, 0.1) : void 0, strokeFill: l2.palette?.primary?.main }, o2.selectionInactive = { ...o2.selection, fill: l2.palette?.divider ? Kt(l2.palette?.divider, 0.05) : void 0, strokeFill: "transparent" }, o2.selectionRemove = { ...o2.selection, fill: Kt(l2.palette.warning.light, 0.05), strokeFill: l2.palette.warning.dark }, t2 && (o2.body = n2(t2)), o2.colorShadow = Kt(l2.palette.action.active, 0.5), o2.colorGrey = l2.palette.action.active, o2.filterDarkInvert = i2 ? "hue-rotate(180deg) invert(1) brightness(95%)" : "none", o2;
1262
- }, Hn = "_sheetxl-theme_4opcr_2", zn = $(O((e2, t2) => {
1263
- const { children: o2, sx: n2, parentFloat: a2, ...r2 } = e2, l2 = Rt(t2, () => ({}), []), [i2, s2] = jt(), d2 = q(null), c2 = q(null), [m2, p2] = W.useReducer((e3) => e3 + 1, 0), [u2, g2] = j(null), [h2, f2] = j(null), [x2, b2] = j(null), { reference: y2 } = _e({ parentFloat: a2, label: "overflow" });
1118
+ }, vn = "_sheetxl-theme_4opcr_2", Tn = $(O((e2, t2) => {
1119
+ const { children: o2, sx: n2, parentFloat: a2, ...r2 } = e2, l2 = Rt(t2, () => ({}), []), [i2, s2] = jt(), d2 = q(null), c2 = q(null), [m2, p2] = W.useReducer((e3) => e3 + 1, 0), [u2, g2] = j(null), [h2, f2] = j(null), [x2, b2] = j(null), { reference: y2 } = Ge({ parentFloat: a2, label: "overflow" });
1264
1120
  Y(() => {
1265
1121
  c2.current = { refs: [] };
1266
1122
  const e3 = [], t3 = W.Children.toArray(o2);
@@ -1317,13 +1173,13 @@ const Pn = async (e2) => {
1317
1173
  return Te({ ...e3, children: n3 });
1318
1174
  }, [x2]);
1319
1175
  return L(Q, { className: "overflow-palette", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", width: "100%", maxWidth: "100%", ...n2 }, ref: Vt([l2, i2, t2]), ...r2, children: [z(Q, { sx: { flexDirection: "row", display: "flex", maxWidth: "100%", flex: "1 1 100%", alignItems: "center" }, children: h2 ?? u2 }), z(Q, { className: "overflow-palette-popup-button", sx: { display: null !== x2 && 0 === x2.length ? "none" : "flex", flex: "1 1 0" }, children: z(Be, { createPopupPanel: w2, ref: d2, parentFloat: y2, createTooltip: ({ children: e3 }, t3) => z(Le, { label: "More", description: "More toolbar options…", disabled: t3, children: e3 }), icon: z(wt, { iconKey: "MoreHorizontal" }) }) })] });
1320
- })), Wn = "https://unpkg.com/@sheetxl/scripting-templates/dist", $n = (e2) => {
1176
+ })), Rn = "https://unpkg.com/@sheetxl/scripting-templates/dist", Dn = (e2) => {
1321
1177
  if (e2.metadata?.name) return e2.metadata.name;
1322
1178
  let t2 = (e2.path.split("/").pop() || "").replace(/\.[^/.]+$/, "");
1323
1179
  if ("formula" === e2.metadata?.icon) return t2.toUpperCase();
1324
1180
  t2 = t2.replace(/([a-z])([A-Z])/g, "$1 $2");
1325
1181
  return t2.replace(/[-_]/g, " ").trim().split(/\s+/).map((e3) => e3.charAt(0).toUpperCase() + e3.slice(1)).join(" ");
1326
- }, On = async (e2) => {
1182
+ }, Fn = async (e2) => {
1327
1183
  const t2 = eo.relativePath(e2, "./manifest.json"), o2 = await fetch(t2);
1328
1184
  if (!o2.ok) throw new Ut(`Failed to retrieve directory at '${e2}': ${o2.statusText}`);
1329
1185
  const n2 = await o2.text();
@@ -1340,7 +1196,7 @@ const Pn = async (e2) => {
1340
1196
  if (!n3.ok) throw new Error(`Failed to fetch file at '${t3.path}': ${n3.statusText}`);
1341
1197
  const a3 = await n3.text();
1342
1198
  let r3 = t3.metadata;
1343
- r3?.title || (r3 = { title: $n(t3), ...r3 });
1199
+ r3?.title || (r3 = { title: Dn(t3), ...r3 });
1344
1200
  return { path: t3.path, content: a3, metadata: r3 };
1345
1201
  } catch (e3) {
1346
1202
  console.error(e3.message);
@@ -1348,23 +1204,23 @@ const Pn = async (e2) => {
1348
1204
  return null;
1349
1205
  });
1350
1206
  return (await Promise.all(r2)).filter((e3) => null !== e3);
1351
- }, Vn = { marginRight: "4px" }, Kn = "1em", Gn = $((e2) => {
1207
+ }, Mn = { marginRight: "4px" }, Nn = "1em", Bn = $((e2) => {
1352
1208
  const { disabled: t2, snippet: o2, description: n2, handleInsert: a2, sx: r2, ...l2 } = e2;
1353
1209
  let i2;
1354
1210
  const s2 = o2.metadata?.icon;
1355
- return i2 = z(wt, "formula" === s2 ? { iconKey: "ScriptFormula", size: Kn, style: Vn } : "macro" === s2 ? { iconKey: "ScriptMacro", size: Kn, style: Vn } : { iconKey: "ScriptAutoStart", size: Kn, style: Vn }), z(Pe, { sx: { maxWidth: "460px", display: "flex", "*": { lineHeight: "1.2" }, ...r2 }, disabled: t2, icon: i2, onMouseDown: (e3) => {
1211
+ return i2 = z(wt, "formula" === s2 ? { iconKey: "ScriptFormula", size: Nn, style: Mn } : "macro" === s2 ? { iconKey: "ScriptMacro", size: Nn, style: Mn } : { iconKey: "ScriptAutoStart", size: Nn, style: Mn }), z(Pe, { sx: { maxWidth: "460px", display: "flex", "*": { lineHeight: "1.2" }, ...r2 }, disabled: t2, icon: i2, onMouseDown: (e3) => {
1356
1212
  0 === e3.button && e3.preventDefault();
1357
1213
  }, onMouseUp: (e3) => {
1358
1214
  0 === e3.button && a2(o2);
1359
1215
  }, onKeyDown: (e3) => {
1360
1216
  e3.keyCode !== yt.Enter && e3.keyCode !== yt.Space || a2(o2);
1361
1217
  }, ...l2, children: L(Q, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, children: [z(J, { component: "div", children: o2.metadata?.title ?? o2.path }), z(J, { variant: "caption", component: "div", sx: { color: (e3) => Kt(e3.palette.text.secondary ?? e3.palette.text.primary, 0.6), overflow: "hidden", textOverflow: "ellipsis" }, children: o2.metadata?.summary })] }) });
1362
- }), jn = $(O((e2, t2) => {
1363
- const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, scriptPath: l2 = Wn, ...i2 } = e2, [s2, d2] = j([]), [c2, m2] = j(true), p2 = ht(o2, ["executeSelectedScript"]), u2 = p2[0]?.context?.();
1218
+ }), En = $(O((e2, t2) => {
1219
+ const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, scriptPath: l2 = Rn, ...i2 } = e2, [s2, d2] = j([]), [c2, m2] = j(true), p2 = ht(o2, ["executeSelectedScript"]), u2 = p2[0]?.getContext();
1364
1220
  _(() => {
1365
1221
  (async () => {
1366
1222
  try {
1367
- const e3 = await On(l2);
1223
+ const e3 = await Fn(l2);
1368
1224
  d2(e3);
1369
1225
  } catch (e3) {
1370
1226
  } finally {
@@ -1379,28 +1235,28 @@ const Pn = async (e2) => {
1379
1235
  }, i3 = [];
1380
1236
  for (let e4 = 0; e4 < s2.length; e4++) {
1381
1237
  const t4 = s2[e4];
1382
- t4 && i3.push(z(Gn, { handleInsert: l3, snippet: t4 }, t4.path));
1238
+ t4 && i3.push(z(Bn, { handleInsert: l3, snippet: t4 }, t4.path));
1383
1239
  }
1384
1240
  const d3 = L(Q, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: [i3.length > 0 ? L(H, { children: [z(Q, { sx: { overflow: "auto", flex: "1 1 100%" }, children: i3 }), z(ve, { orientation: "horizontal" })] }) : null, X(ke, { ...a3, key: "help", command: o2.getCommand("help") })] });
1385
1241
  return Te({ ...e3, children: d3 });
1386
1242
  }, [r2, n2, a2, c2, u2]);
1387
1243
  return z(Re, { ref: t2, commands: o2, disabled: r2, commandHook: n2, scope: a2, label: "Insert Script", tooltip: "Inserts a script from a set of templates.", createPopupPanel: g2, icon: "ScriptInsert", ...i2 });
1388
- })), _n = $(O((e2, t2) => {
1244
+ })), Pn = $(O((e2, t2) => {
1389
1245
  const { commands: o2, parentFloat: n2, propsCommandButton: a2, ...r2 } = e2, l2 = xt((e3) => {
1390
1246
  const { propsCommandButton: t3, propsCommandPopup: a3 } = e3;
1391
- return z(H, { children: L("div", { style: { display: "flex", flex: "1 1 100%" }, children: [z("div", { children: z(zn, { parentFloat: n2, style: {}, children: z(ke, { ...t3, command: o2?.getCommand("saveScripts") }) }) }), z("div", { style: { flex: "1 1 100%" } }), z("div", { children: z(zn, { parentFloat: n2, style: {}, children: z(jn, { ...t3, commands: o2 }) }) })] }) });
1247
+ return z(H, { children: L("div", { style: { display: "flex", flex: "1 1 100%" }, children: [z("div", { children: z(Tn, { parentFloat: n2, style: {}, children: z(ke, { ...t3, command: o2?.getCommand("saveScripts") }) }) }), z("div", { style: { flex: "1 1 100%" } }), z("div", { children: z(Tn, { parentFloat: n2, style: {}, children: z(En, { ...t3, commands: o2 }) }) })] }) });
1392
1248
  }, [o2]);
1393
- return z(qe, { ref: t2, commands: o2, parentFloat: n2, propsCommandButton: a2, renderToolbarPalette: l2, ...r2 });
1249
+ return z(_e, { ref: t2, commands: o2, parentFloat: n2, propsCommandButton: a2, renderToolbarPalette: l2, ...r2 });
1394
1250
  }));
1395
- _n.displayName = "ScriptEditorToolbar";
1396
- const Un = $(O((e2, t2) => {
1397
- const { scriptPath: o2 = Wn, onScriptSelect: n2, sx: a2 = bt.EmptyCssProperties, className: r2, buttonMinWidth: l2 = 210, buttonMinHeight: i2 = 80, gap: s2 = 12, ...d2 } = e2, [c2, m2] = j([]), [p2, u2] = j(true), [g2, h2] = j(null);
1251
+ Pn.displayName = "ScriptEditorToolbar";
1252
+ const In = $(O((e2, t2) => {
1253
+ const { scriptPath: o2 = Rn, onScriptSelect: n2, sx: a2 = bt.EmptyCssProperties, className: r2, buttonMinWidth: l2 = 210, buttonMinHeight: i2 = 80, gap: s2 = 12, ...d2 } = e2, [c2, m2] = j([]), [p2, u2] = j(true), [g2, h2] = j(null);
1398
1254
  if (_(() => {
1399
1255
  (async () => {
1400
1256
  const e3 = [{ path: null, metadata: { title: "Blank Template...", summary: "Start with an empty script." }, content: "" }];
1401
1257
  try {
1402
1258
  u2(true), h2(null);
1403
- const t3 = await On(o2);
1259
+ const t3 = await Fn(o2);
1404
1260
  for (let o3 = 0; o3 < t3.length; o3++) {
1405
1261
  const n3 = t3[o3];
1406
1262
  n3 && e3.push(n3);
@@ -1420,8 +1276,8 @@ const Un = $(O((e2, t2) => {
1420
1276
  };
1421
1277
  return L(Q, { ref: t2, className: gt(r2, "script-select"), sx: { background: (e3) => e3.palette.background.paper, zIndex: 1e3, backgroundImage: `linear-gradient(${mt("#fff", pt(5))}, ${mt("#fff", pt(5))})`, ...a2 }, ...d2, children: [L(Q, { p: 3, className: "script-select-content", sx: { overflow: "auto", flex: "1 1 auto" }, children: [z(J, { variant: "h6", gutterBottom: true, children: "Script Template" }), z(J, { variant: "body2", component: "div", color: "text.secondary", gutterBottom: true, children: "Choose from a template to provide a starting point to automate tasks or create user defined functions." }), z(J, { variant: "body2", component: "div", color: "text.secondary", gutterBottom: true, children: "Templates provide a foundation to customize and meet your specific needs." }), z(Q, { sx: { display: "grid", gridTemplateColumns: `repeat(auto-fill, minmax(${l2}px, 1fr))`, gap: `${s2}px`, padding: 2, paddingLeft: "0px", paddingRight: "0px" }, children: c2.map((e3, t3) => L(ne, { variant: "outlined", sx: { minWidth: l2, minHeight: i2, display: "flex", flexDirection: "column", justifyContent: "flex-start", alignItems: "flex-start", textAlign: "left", padding: 2, textTransform: "none", overflow: "hidden", ...0 === t3 && { borderStyle: "dashed", marginBottom: "8px" }, ...1 === t3 && { gridColumn: "1" } }, onClick: () => n2?.(e3), children: [L(Q, { sx: { display: "flex", flexDirection: "row", justifyContent: "space-between", alignItems: "center", width: "100%", marginBottom: 0.5 }, children: [z(J, { variant: "subtitle2", component: "div", children: e3.metadata?.title || e3.path.split("/").pop()?.replace(/\.\w+$/, "") || "Untitled" }), x2(e3)] }), e3.metadata?.summary && z(J, { variant: "body2", component: "div", color: "text.secondary", sx: { overflow: "hidden", display: "flex", flexDirection: "column", textOverflow: "ellipsis", alignItems: "flex-start" }, children: e3.metadata.summary })] }, `${e3.path}-${t3}`)) })] }), f2] });
1422
1278
  }));
1423
- Un.displayName = "TemplateSelectPanel";
1424
- const qn = $(O((e2, t2) => {
1279
+ In.displayName = "TemplateSelectPanel";
1280
+ const An = $(O((e2, t2) => {
1425
1281
  const { className: o2, sx: n2, propsScriptEditor: a2, commands: r2, readOnly: l2 = false, frame: i2, autoFocusSel: s2, autoFocus: d2 = true, scripts: c2, ...m2 } = e2, p2 = ct(), [u2, g2] = j(false), h2 = q(false), [f2, x2] = j({ message: "Loading", cursor: "", dirty: false }), [b2, y2] = j(null);
1426
1282
  _(() => {
1427
1283
  let e3 = false;
@@ -1436,16 +1292,16 @@ const qn = $(O((e2, t2) => {
1436
1292
  }, [c2]);
1437
1293
  const w2 = K((e3) => {
1438
1294
  x2((t3) => ({ ...t3, ...e3 }));
1439
- }, []), S2 = q(null), [C2, v2] = j(null), T2 = q(null), R2 = xt((e3) => {
1295
+ }, []), S2 = q(null), [C2, k2] = j(null), T2 = q(null), R2 = xt((e3) => {
1440
1296
  if (C2) return C2.focus(e3), true;
1441
1297
  if (s2) {
1442
1298
  const t3 = S2.current?.querySelectorAll?.(s2);
1443
1299
  if (t3 && t3.length > 0) return t3[0]?.focus?.(e3), true;
1444
1300
  }
1445
1301
  return S2.current?.focus?.(e3), false;
1446
- }, [C2, s2, d2]), D2 = V(() => z(Me, { transitionDelay: "160ms", style: { position: "absolute", width: "100%", height: "100%" }, transparentBackground: false }), []), F2 = V(() => z(pe, { elevation: 1, tabIndex: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 1, marginLeft: (e3) => e3.spacing(0.5), marginRight: (e3) => e3.spacing(0.5), marginTop: (e3) => e3.spacing(1), marginBottom: (e3) => e3.spacing(1) }, children: z(_n, { commands: r2 }) }), [p2, r2]), M2 = V(() => z(Q, { className: gt("script-status-panel", "status-panel"), sx: { display: "flex", alignItems: "stretch", flexDirection: "row", flex: "0", paddingLeft: "12px", paddingRight: "12px", gap: "8px", paddingTop: "1px", minHeight: "calc(1em + 8px)", margin: 0, borderTop: `solid 1px ${p2.palette.divider}` }, children: L("div", { style: { flex: "1 1 100%", display: "flex", alignItems: "center", flexDirection: "row", justifyContent: "center" }, children: [z(J, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", flex: "1 1 100%", color: (e3) => e3.palette.text.secondary }, variant: "caption", children: f2.message }), z(J, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", flex: "none", color: (e3) => e3.palette.text.secondary }, variant: "caption", children: f2.dirty ? "Unsaved" : "" }), z(J, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", flex: "none", marginLeft: "8px", minWidth: "90px", display: "flex", justifyContent: "end", color: (e3) => e3.palette.text.secondary }, variant: "caption", children: f2.cursor })] }) }), [f2]), N2 = V(() => L(Q, { className: gt("script-editor-content"), sx: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "column", boxSizing: "border-box" }, children: [F2, z(Q, { sx: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: z(k, { ref: S2, loadingPanel: D2, readOnly: l2, frame: i2, autoFocus: d2, commands: r2, onStatusChange: w2, darkMode: "dark" === p2.palette.mode, ...a2 }) }), M2] }), [p2, r2, F2, M2, u2, D2, l2, a2, d2, s2, i2, w2]), B2 = V(() => {
1302
+ }, [C2, s2, d2]), D2 = V(() => z(Me, { transitionDelay: "160ms", style: { position: "absolute", width: "100%", height: "100%" }, transparentBackground: false }), []), F2 = V(() => z(ce, { elevation: 1, tabIndex: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 1, marginLeft: (e3) => e3.spacing(0.5), marginRight: (e3) => e3.spacing(0.5), marginTop: (e3) => e3.spacing(1), marginBottom: (e3) => e3.spacing(1) }, children: z(Pn, { commands: r2 }) }), [p2, r2]), M2 = V(() => z(Q, { className: gt("script-status-panel", "status-panel"), sx: { display: "flex", alignItems: "stretch", flexDirection: "row", flex: "0", paddingLeft: "12px", paddingRight: "12px", gap: "8px", paddingTop: "1px", minHeight: "calc(1em + 8px)", margin: 0, borderTop: `solid 1px ${p2.palette.divider}` }, children: L("div", { style: { flex: "1 1 100%", display: "flex", alignItems: "center", flexDirection: "row", justifyContent: "center" }, children: [z(J, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", flex: "1 1 100%", color: (e3) => e3.palette.text.secondary }, variant: "caption", children: f2.message }), z(J, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", flex: "none", color: (e3) => e3.palette.text.secondary }, variant: "caption", children: f2.dirty ? "Unsaved" : "" }), z(J, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", flex: "none", marginLeft: "8px", minWidth: "90px", display: "flex", justifyContent: "end", color: (e3) => e3.palette.text.secondary }, variant: "caption", children: f2.cursor })] }) }), [f2]), N2 = V(() => L(Q, { className: gt("script-editor-content"), sx: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "column", boxSizing: "border-box" }, children: [F2, z(Q, { sx: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: z(v, { ref: S2, loadingPanel: D2, readOnly: l2, frame: i2, autoFocus: d2, commands: r2, onStatusChange: w2, darkMode: "dark" === p2.palette.mode, ...a2 }) }), M2] }), [p2, r2, F2, M2, u2, D2, l2, a2, d2, s2, i2, w2]), B2 = V(() => {
1447
1303
  let e3;
1448
- return null === b2 ? null : (null === b2.source && (e3 = z(Un, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden", position: "absolute", boxSizing: "border-box", width: "100%", height: "100%" }, onScriptSelect: (e4) => {
1304
+ return null === b2 ? null : (null === b2.source && (e3 = z(In, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden", position: "absolute", boxSizing: "border-box", width: "100%", height: "100%" }, onScriptSelect: (e4) => {
1449
1305
  S2.current?.getEditor()?.insertSnippet(e4.content), y2({ source: e4.content ?? "" });
1450
1306
  } })), z(Q, { tabIndex: 0, className: gt("script-workspace", o2), sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden", alignItems: "stretch", userSelect: "none", flexGrow: 0, outline: "none" }, onPointerDown: (e4) => {
1451
1307
  e4.isDefaultPrevented() || S2.current?.focus();
@@ -1454,17 +1310,17 @@ const qn = $(O((e2, t2) => {
1454
1310
  R2(e3);
1455
1311
  } }), []);
1456
1312
  return z(Q, { sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", ...n2 }, ref: E2, ...m2, onFocus: (e3) => {
1457
- g2(true), h2.current = true, E2.current?.contains(e3.target) && e3.target !== E2.current && v2(e3.target), e3.relatedTarget && !T2.current && (T2.current = e3.relatedTarget), m2?.onFocus?.(e3);
1313
+ g2(true), h2.current = true, E2.current?.contains(e3.target) && e3.target !== E2.current && k2(e3.target), e3.relatedTarget && !T2.current && (T2.current = e3.relatedTarget), m2?.onFocus?.(e3);
1458
1314
  }, onBlur: (e3) => {
1459
1315
  E2?.current?.contains(e3.relatedTarget) || E2?.current === e3.relatedTarget || (T2.current = null, h2.current = false, g2(false)), m2?.onBlur?.(e3);
1460
1316
  }, children: B2 });
1461
1317
  }));
1462
- qn.displayName = "ScriptWorkspace";
1463
- const Xn = (e2, t2) => {
1318
+ An.displayName = "ScriptWorkspace";
1319
+ const Ln = (e2, t2) => {
1464
1320
  const { model: o2, commands: n2, entryKey: a2, frame: r2, ...l2 } = e2;
1465
- return z(qn, { ref: t2, readOnly: false, commands: n2, frame: r2, scripts: o2?.getScripts(), ...l2 });
1466
- }, Zn = $(O((e2, t2) => {
1467
- const { commands: o2, ...n2 } = e2, a2 = ht(o2, ["executeScript", "showScriptEditor"]), [r2, l2] = j([]), [i2, s2] = j(false), d2 = a2[0]?.context?.();
1321
+ return z(An, { ref: t2, readOnly: false, commands: n2, frame: r2, scripts: o2?.getScripts(), ...l2 });
1322
+ }, Hn = $(O((e2, t2) => {
1323
+ const { commands: o2, ...n2 } = e2, a2 = ht(o2, ["executeScript", "showScriptEditor"]), [r2, l2] = j([]), [i2, s2] = j(false), d2 = a2[0]?.getContext();
1468
1324
  _(() => {
1469
1325
  const e3 = d2?.getScripts();
1470
1326
  if (!e3) return;
@@ -1482,26 +1338,26 @@ const Xn = (e2, t2) => {
1482
1338
  const u2 = L(Q, { ref: t2, sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: [m2.length > 0 ? L(H, { children: [z(Q, { sx: { overflow: "auto", flex: "1 1 100%" }, children: m2 }), z(ve, { orientation: "horizontal" })] }) : null, X(ke, { ...c2, key: "show-editor", command: o2.getCommand("showScriptEditor") })] });
1483
1339
  return Te({ ...n2, children: u2 });
1484
1340
  }));
1485
- Zn.displayName = "RunScriptPopupPanel";
1486
- const Yn = $(O((e2, t2) => {
1487
- const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, ...l2 } = e2, i2 = "showScriptEditor", s2 = ht(o2, ["executeScript", "showScriptEditor"])[0].context(), d2 = K((e3, t3) => {
1488
- const o3 = z(Zn, { ...e3, commands: t3 });
1341
+ Hn.displayName = "RunScriptPopupPanel";
1342
+ const zn = $(O((e2, t2) => {
1343
+ const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, ...l2 } = e2, i2 = "showScriptEditor", s2 = ht(o2, ["executeScript", "showScriptEditor"])[0].getContext(), d2 = K((e3, t3) => {
1344
+ const o3 = z(Hn, { ...e3, commands: t3 });
1489
1345
  return Te({ ...e3, children: o3 });
1490
1346
  }, [r2, s2, n2, a2]);
1491
- return z(Re, { ref: t2, commands: o2, commandHook: n2, createPopupPanel: d2, selected: o2.getCommand(i2).state(), label: "Macros", tooltip: "Run or manage macros.", quickCommand: i2, ...l2 });
1492
- })), Qn = (e2) => z(ke, { ...e2 }), Jn = $(O((e2, t2) => {
1493
- const { commands: o2, parentFloat: n2, propsCommandButton: a2, ...r2 } = e2, [l2, i2] = j(false), s2 = ht(o2, ["executeScript", "showScriptEditor"]), d2 = s2[0]?.context?.();
1347
+ return z(Re, { ref: t2, commands: o2, commandHook: n2, createPopupPanel: d2, selected: o2.getCommand(i2).getState(), label: "Macros", tooltip: "Run or manage macros.", quickCommand: i2, ...l2 });
1348
+ })), Wn = (e2) => z(ke, { ...e2 }), $n = $(O((e2, t2) => {
1349
+ const { commands: o2, parentFloat: n2, propsCommandButton: a2, ...r2 } = e2, [l2, i2] = j(false), s2 = ht(o2, ["executeScript", "showScriptEditor"]), d2 = s2[0]?.getContext();
1494
1350
  _(() => {
1495
1351
  const e3 = d2?.getScripts();
1496
1352
  if (!e3) return;
1497
1353
  const t3 = s2[1], o3 = async () => {
1498
1354
  if (!t3) return;
1499
1355
  let o4 = false;
1500
- if (!!!t3.state()) {
1356
+ if (!!!t3.getState()) {
1501
1357
  const t4 = await e3.searchFunctions({ type: "macro" }), n4 = t4?.length ?? 0;
1502
1358
  for (let e4 = 0; t4 && !o4 && e4 < n4; e4++) o4 = true;
1503
1359
  }
1504
- i2(o4 || !!t3.state());
1360
+ i2(o4 || !!t3.getState());
1505
1361
  };
1506
1362
  o3();
1507
1363
  const n3 = t3.addPropertyListener(() => {
@@ -1514,7 +1370,7 @@ const Yn = $(O((e2, t2) => {
1514
1370
  };
1515
1371
  }, [d2]);
1516
1372
  const c2 = T(), m2 = K((e3) => {
1517
- const { propsCommandButton: t3, propsCommandPopup: a3 } = e3, r3 = v.findContributions("ribbon/home");
1373
+ const { propsCommandButton: t3, propsCommandPopup: a3 } = e3, r3 = k.findContributions("ribbon/home");
1518
1374
  let i3;
1519
1375
  const s3 = r3.length;
1520
1376
  if (s3 > 0) {
@@ -1522,49 +1378,49 @@ const Yn = $(O((e2, t2) => {
1522
1378
  for (let e4 = 0; e4 < s3; e4++) {
1523
1379
  const t4 = r3[e4], o3 = t4.createCommand?.(c2);
1524
1380
  if (!o3) continue;
1525
- const n3 = { command: o3, ...a3 }, l3 = (t4.createCommandButton ?? Qn)(n3);
1381
+ const n3 = { command: o3, ...a3 }, l3 = (t4.createCommandButton ?? Wn)(n3);
1526
1382
  i3.push(l3);
1527
1383
  }
1528
1384
  }
1529
- const d3 = z($o, { ...a3, command: o2.getCommand("formatFontColor"), isSplit: true, propsPanel: { disableAlpha: true } }), m3 = z($o, { ...a3, command: o2.getCommand("formatFillColor"), isSplit: true, propsPanel: { disableAlpha: true, autoColorLabel: "No Fill", autoColorPosition: co.End } }), p2 = o2.getCommand("undo") ? z(H, { children: z(Go, { ...a3, quickCommand: "undo" }) }) : null, u2 = o2.getCommand("find") ? z(H, { children: z(Bo, { ...a3 }) }) : null;
1385
+ const d3 = z(xa, { ...a3, command: o2.getCommand("formatFontColor"), isSplit: true, propsPanel: { disableAlpha: true } }), m3 = z(xa, { ...a3, command: o2.getCommand("formatFillColor"), isSplit: true, propsPanel: { disableAlpha: true, autoColorLabel: "No Fill", autoColorPosition: co.End } }), p2 = o2.getCommand("undo") ? z(H, { children: z(Sa, { ...a3, quickCommand: "undo" }) }) : null, u2 = o2.getCommand("find") ? z(H, { children: z(Bo, { ...a3 }) }) : null;
1530
1386
  let g2 = null;
1531
- l2 && (g2 = L(H, { children: [z(ve, {}), z(Yn, { ...a3 })] }));
1532
- return L(zn, { parentFloat: n2, children: [p2, null, p2 ? z(ve, {}) : null, z(Zo, { ...a3, command: o2.getCommand("paste") }), z(ke, { ...t3, command: o2.getCommand("formatPainterToggle") }), z(da, { ...t3, command: o2.getCommand("copy") }), z(ve, {}), z(Uo, { ...a3, command: o2.getCommand("formatFontFamily") }), z(Eo, { ...a3, command: o2.getCommand("formatFontSize") }), z(ke, { ...t3, command: o2.getCommand("formatBoldToggle") }), z(ke, { ...t3, command: o2.getCommand("formatItalicToggle") }), z(Xo, { ...a3 }), z(qo, { ...a3 }), z(Fo, { ...a3 }), m3, d3, z(ve, {}), z(ao, { ...a3 }), z(ro, { ...a3 }), z(io, { ...a3 }), z(lo, { ...a3 }), z(Mo, { ...a3 }), z(ve, {}), z(Io, { ...a3 }), z(ve, {}), z(tn, { command: o2.getCommand("formatCellStyle"), ...a3 }), z(Ia, { command: o2.getCommand("formatTableStyle"), ...a3 }), z(ve, {}), z(Ho, { ...a3 }), z(zo, { ...a3 }), z(Wo, { ...a3 }), z(ve, {}), z(Wa, { ...a3 }), z(Lo, { ...a3 }), z(Ao, { ...a3 }), z(Vo, { ...a3 }), u2, g2, i3] });
1387
+ l2 && (g2 = L(H, { children: [z(ve, {}), z(zn, { ...a3 })] }));
1388
+ return L(Tn, { parentFloat: n2, children: [p2, null, p2 ? z(ve, {}) : null, z(Da, { ...a3, command: o2.getCommand("paste") }), z(ke, { ...t3, command: o2.getCommand("formatPainterToggle") }), z(Zn, { ...t3, command: o2.getCommand("copy") }), z(ve, {}), z(va, { ...a3, command: o2.getCommand("formatFontFamily") }), z(Eo, { ...a3, command: o2.getCommand("formatFontSize") }), z(ke, { ...t3, command: o2.getCommand("formatBoldToggle") }), z(ke, { ...t3, command: o2.getCommand("formatItalicToggle") }), z(Ra, { ...a3 }), z(Ta, { ...a3 }), z(Fo, { ...a3 }), m3, d3, z(ve, {}), z(ao, { ...a3 }), z(ro, { ...a3 }), z(io, { ...a3 }), z(lo, { ...a3 }), z(Mo, { ...a3 }), z(ve, {}), z(Io, { ...a3 }), z(ve, {}), z(Ea, { command: o2.getCommand("formatCellStyle"), ...a3 }), z(Ia, { command: o2.getCommand("formatTableStyle"), ...a3 }), z(ve, {}), z(Ho, { ...a3 }), z(zo, { ...a3 }), z(Wo, { ...a3 }), z(ve, {}), z(Wa, { ...a3 }), z(Lo, { ...a3 }), z(Ao, { ...a3 }), z(ya, { ...a3 }), u2, g2, i3] });
1533
1389
  }, [o2, s2, l2, c2]);
1534
- return z(qe, { ref: t2, commands: o2, parentFloat: n2, propsCommandButton: a2, renderToolbarPalette: m2, ...r2 });
1390
+ return z(_e, { ref: t2, commands: o2, parentFloat: n2, propsCommandButton: a2, renderToolbarPalette: m2, ...r2 });
1535
1391
  }));
1536
- Jn.displayName = "HomeToolbar";
1537
- const ea = $(O((e2, t2) => {
1392
+ $n.displayName = "HomeToolbar";
1393
+ const On = $(O((e2, t2) => {
1538
1394
  const { commands: o2, parentFloat: n2, propsCommandButton: a2, ...r2 } = e2, l2 = xt((e3) => {
1539
1395
  const { propsCommandButton: t3, propsCommandPopup: a3 } = e3;
1540
- return L(zn, { parentFloat: n2, children: [z(ke, { ...t3, command: o2.getCommand("insertTable") }), z(za, { ...a3 }), null, z(ke, { ...t3, command: o2.getCommand("updateHyperlink") }), z(ke, { ...t3, command: o2.getCommand("updateComments") })] });
1396
+ return L(Tn, { parentFloat: n2, children: [z(ke, { ...t3, command: o2.getCommand("insertTable") }), z(za, { ...a3 }), null, z(ke, { ...t3, command: o2.getCommand("updateHyperlink") }), z(ke, { ...t3, command: o2.getCommand("updateComments") })] });
1541
1397
  }, [o2]);
1542
- return z(qe, { ref: t2, commands: o2, parentFloat: n2, propsCommandButton: a2, renderToolbarPalette: l2, ...r2 });
1398
+ return z(_e, { ref: t2, commands: o2, parentFloat: n2, propsCommandButton: a2, renderToolbarPalette: l2, ...r2 });
1543
1399
  }));
1544
- ea.displayName = "InsertToolbar";
1545
- const ta = $(O((e2, t2) => {
1400
+ On.displayName = "InsertToolbar";
1401
+ const Vn = $(O((e2, t2) => {
1546
1402
  const { commands: o2, parentFloat: n2, propsCommandButton: a2, ...r2 } = e2, l2 = xt((e3) => {
1547
1403
  const { propsCommandButton: t3, propsCommandPopup: a3 } = e3;
1548
- return L(zn, { parentFloat: n2, children: [z(No, { ...a3 }), z(ke, { ...a3, command: o2.getCommand("protectionSheetToggle") }), z(ve, {}), z(Oo, { ...a3 }), z(Yo, { ...a3 }), z(ve, {}), z(ke, { ...t3, command: o2.getCommand("sheetViewToggleFormulaView"), scope: "view" }), z(ke, { ...t3, command: o2.getCommand("sheetViewToggleShowZeros"), scope: "view" }), z(ve, {}), z(Qo, { ...a3 }), z(Aa, { command: o2.getCommand("selectTheme"), ...a3 }), z(ve, {}), z(Yn, { ...a3, scope: "view" }), z(ve, {}), z(ke, { ...t3, command: o2.getCommand("fullScreenToggle"), scope: "view" })] });
1404
+ return L(Tn, { parentFloat: n2, children: [z(No, { ...a3 }), z(ke, { ...a3, command: o2.getCommand("protectionSheetToggle") }), z(ve, {}), z(ba, { ...a3 }), z(Fa, { ...a3 }), z(ve, {}), z(ke, { ...t3, command: o2.getCommand("sheetViewToggleFormulaView"), scope: "view" }), z(ke, { ...t3, command: o2.getCommand("sheetViewToggleShowZeros"), scope: "view" }), z(ve, {}), z(Ma, { ...a3 }), z(Aa, { command: o2.getCommand("selectTheme"), ...a3 }), z(ve, {}), z(zn, { ...a3, scope: "view" }), z(ve, {}), z(ke, { ...t3, command: o2.getCommand("fullScreenToggle"), scope: "view" })] });
1549
1405
  }, [o2]);
1550
- return z(qe, { ref: t2, commands: o2, parentFloat: n2, propsCommandButton: a2, renderToolbarPalette: l2, ...r2 });
1406
+ return z(_e, { ref: t2, commands: o2, parentFloat: n2, propsCommandButton: a2, renderToolbarPalette: l2, ...r2 });
1551
1407
  }));
1552
- ta.displayName = "ViewToolbar";
1553
- const oa = (e2) => z(la, { ...e2 }), na = $((e2) => {
1408
+ Vn.displayName = "ViewToolbar";
1409
+ const Kn = (e2) => z(Un, { ...e2 }), Gn = $((e2) => {
1554
1410
  const { sx: t2, ...o2 } = e2;
1555
1411
  return L(Q, { sx: { display: "flex", flexDirection: "column", position: "relative", "&:hover:not([disabled]) .indicator": { borderBottom: (e3) => `${mt(e3.palette.primary.main, 0.35)} solid 2px` } }, children: [z(fe, { disableRipple: true, onMouseDown: (e3) => {
1556
1412
  0 === e3.button && e3.preventDefault();
1557
1413
  }, sx: { textTransform: "none", flex: "1 1 100%", fontWeight: (e3) => e3.typography.fontWeightRegular, padding: "2px 6px", minHeight: "0px", minWidth: "0px", marginRight: (e3) => e3.spacing(0.5), "&.Mui-selected": {}, "&.Mui-focusVisible": {}, ...t2 }, ...o2 }), z(Q, { className: "indicator", sx: { width: "90%", borderRadius: "4px", minWidth: "4px", position: "absolute", bottom: "0", alignSelf: "center", display: "flex" } })] });
1558
- }), aa = $((e2) => {
1414
+ }), jn = $((e2) => {
1559
1415
  const { toolbars: t2, value: o2, onToolbarChange: n2, sx: a2, ...r2 } = e2, l2 = V(() => {
1560
1416
  const e3 = [];
1561
- for (let o3 = 0; o3 < t2.length; o3++) e3.push(z(na, { label: t2[o3].label }, t2[o3].label));
1417
+ for (let o3 = 0; o3 < t2.length; o3++) e3.push(z(Gn, { label: t2[o3].label }, t2[o3].label));
1562
1418
  return e3;
1563
1419
  }, [t2]);
1564
1420
  return z(he, { value: o2, onChange: (e3, t3) => {
1565
1421
  n2?.(t3);
1566
1422
  }, variant: "scrollable", scrollButtons: false, sx: { paddingLeft: (e3) => e3.spacing(1.5), paddingRight: (e3) => e3.spacing(1.5), paddingTop: (e3) => e3.spacing(0), paddingBottom: (e3) => e3.spacing(0), minHeight: "26px", alignItems: "center", "& .MuiTabs-indicator": { display: "flex", justifyContent: "center", backgroundColor: "transparent" }, "& .MuiTabs-indicatorSpan": { width: "90%", borderRadius: "4px", minWidth: "4px", backgroundColor: (e3) => e3.palette.primary.main }, "& .MuiTab-root": { marginRight: "0px" }, ...a2 }, slotProps: { indicator: { children: z("span", { className: "MuiTabs-indicatorSpan" }) } }, ...r2, children: l2 });
1567
- }), ra = $((e2) => {
1423
+ }), _n = $((e2) => {
1568
1424
  const { toolbars: t2, value: o2, onToolbarChange: n2, propsSelect: a2, ...r2 } = e2, l2 = K((e3) => {
1569
1425
  n2?.(e3.target.value);
1570
1426
  }, [n2]), i2 = V(() => {
@@ -1577,38 +1433,38 @@ const oa = (e2) => z(la, { ...e2 }), na = $((e2) => {
1577
1433
  }
1578
1434
  return e3;
1579
1435
  }, [t2, o2]);
1580
- return z(se, { sx: { minWidth: "125px", maxWidth: "125px", "& .MuiInputBase-root": { paddingLeft: "0px", paddingRight: "0px" }, "& .MuiSelect-select": { paddingTop: (e3) => e3.spacing(0.5), paddingBottom: (e3) => e3.spacing(0.5), paddingLeft: (e3) => e3.spacing(2), color: (e3) => e3.palette.primary.main }, "& .MuiSelect-icon": { fill: (e3) => e3.palette.text.icon ?? e3.palette.action.active, "&:hover:not(.Mui-disabled)": { color: (e3) => e3.palette.text.icon ?? e3.palette.action.active } }, ...a2 }, size: "small", children: z(ge, { value: o2, onChange: l2, variant: "outlined", sx: { backgroundImage: `linear-gradient(${mt("#fff", pt(5))}, ${mt("#fff", pt(5))})` }, ...r2, children: i2 }) });
1581
- }), la = $(O((e2, t2) => {
1436
+ return z(le, { sx: { minWidth: "125px", maxWidth: "125px", "& .MuiInputBase-root": { paddingLeft: "0px", paddingRight: "0px" }, "& .MuiSelect-select": { paddingTop: (e3) => e3.spacing(0.5), paddingBottom: (e3) => e3.spacing(0.5), paddingLeft: (e3) => e3.spacing(2), color: (e3) => e3.palette.primary.main }, "& .MuiSelect-icon": { fill: (e3) => e3.palette.text.icon ?? e3.palette.action.active, "&:hover:not(.Mui-disabled)": { color: (e3) => e3.palette.text.icon ?? e3.palette.action.active } }, ...a2 }, size: "small", children: z(ge, { value: o2, onChange: l2, variant: "outlined", sx: { backgroundImage: `linear-gradient(${mt("#fff", pt(5))}, ${mt("#fff", pt(5))})` }, ...r2, children: i2 }) });
1437
+ }), Un = $(O((e2, t2) => {
1582
1438
  const { commands: o2, wrapperSelect: n2, propsSelect: a2 = _t.EmptyObject, isCompact: r2 = false, wrapperPalette: l2, propsToolbars: i2 = _t.EmptyObject, propsPalette: s2 = _t.EmptyObject, workbook: d2, sx: c2, ...m2 } = e2, p2 = V(() => {
1583
1439
  const e3 = [], { ref: t3, ...n3 } = i2?.Home || _t.EmptyObject;
1584
- e3.push({ label: "Home", component: z(Jn, { commands: o2, ...n3 }) });
1440
+ e3.push({ label: "Home", component: z($n, { commands: o2, ...n3 }) });
1585
1441
  const { ref: a3, ...r3 } = i2?.Insert || _t.EmptyObject;
1586
- e3.push({ label: "Insert", component: z(ea, { commands: o2, ...r3 }) });
1442
+ e3.push({ label: "Insert", component: z(On, { commands: o2, ...r3 }) });
1587
1443
  const { ref: l3, ...s3 } = i2?.View || _t.EmptyObject;
1588
- return e3.push({ label: "View", component: z(ta, { commands: o2, ...s3 }) }), e3;
1444
+ return e3.push({ label: "View", component: z(Vn, { commands: o2, ...s3 }) }), e3;
1589
1445
  }, [o2, d2]), u2 = V(() => {
1590
1446
  const e3 = [];
1591
1447
  for (let t3 = 0; t3 < p2.length; t3++) e3.push(W.cloneElement(p2[t3].component, { ...p2[t3].component.props, key: p2[t3].key ?? p2[t3].label }));
1592
1448
  return e3;
1593
1449
  }, [p2]), [g2, h2] = j(0), f2 = (e3) => {
1594
1450
  h2(e3);
1595
- }, x2 = V(() => z(r2 ? ra : aa, { toolbars: p2, value: g2, onToolbarChange: f2, sx: a2 }), [p2, g2, a2, r2]), { sx: b2, ...y2 } = s2, w2 = z(pe, { elevation: 2, tabIndex: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 1, borderRadius: "8px", backgroundImage: `linear-gradient(${mt("#fff", pt(5))}, ${mt("#fff", pt(5))})`, marginLeft: (e3) => e3.spacing(1), marginRight: (e3) => e3.spacing(1), marginTop: (e3) => e3.spacing(0.5), marginBottom: (e3) => e3.spacing(0.5), ...b2 }, ...y2, children: u2[g2] });
1451
+ }, x2 = V(() => z(r2 ? _n : jn, { toolbars: p2, value: g2, onToolbarChange: f2, sx: a2 }), [p2, g2, a2, r2]), { sx: b2, ...y2 } = s2, w2 = z(ce, { elevation: 2, tabIndex: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 1, borderRadius: "8px", backgroundImage: `linear-gradient(${mt("#fff", pt(5))}, ${mt("#fff", pt(5))})`, marginLeft: (e3) => e3.spacing(1), marginRight: (e3) => e3.spacing(1), marginTop: (e3) => e3.spacing(0.5), marginBottom: (e3) => e3.spacing(0.5), ...b2 }, ...y2, children: u2[g2] });
1596
1452
  return L(Q, { ref: t2, className: "toolbarWrappers", sx: { display: "flex", flexDirection: "column", paddingTop: (e3) => e3.spacing(0.5), "*": { userSelect: "none" }, ...c2 }, ...m2, children: [n2 ? n2(x2) : x2, l2 ? l2(w2) : w2] });
1597
1453
  }));
1598
- la.displayName = "WorkbookToolbars";
1599
- const ia = (e2) => {
1600
- const { workbook: t2, workbookElement: o2, target: n2, commands: a2, darkMode: r2 } = e2, l2 = vt(), [i2, s2] = j(t2?.getSelectedSheet()), [d2, c2] = j(t2?.getSheets().getItems()), m2 = T(), p2 = V(() => [new Nt("activateTask", n2, { label: "Activate Task", description: "Activate Task Pane.", shortcut: { key: "F6" } }), new Nt("workbookStatistics", n2, { label: "Workbook Statistics", description: "Show the workbook statistics.", shortcut: { key: "G", modifiers: [Et.Ctrl, Et.Shift] } }), new Nt("workbookStatistics", n2, { label: "Workbook Statistics", description: "Show the workbook statistics.", shortcut: { key: "G", modifiers: [Et.Ctrl, Et.Shift] } }), new Nt("showFormat", n2, { label: "Show Format", description: "Open the format pane.", shortcut: { key: "F", modifiers: [Et.Ctrl, Et.Shift] } }), new Bt("newCellStyle", n2, { label: "New Cell Style…", scopedLabels: { cellStyle: "New Cell Style" }, description: "Create a new named style can can be quickly used later.", icon: "NewPresetStyles" }), new Bt("deleteCellStyle", n2, { label: "Delete Cell Style", scopedLabels: { cellStyle: "Delete" }, description: "Remove a named style that is no longer needed." }), new Bt("modifyCellStyle", n2, { label: "Modify Cell Style", scopedLabels: { cellStyle: "Modify" }, description: "Update a style with the currently style." }), new Nt("find", n2, { label: "Find", description: "Open the Find window.", icon: "Find", shortcut: [{ key: "F", modifiers: [Et.Ctrl] }, { key: "F5", modifiers: [Et.Shift] }] }), new Nt("findReplace", n2, { label: "Find & Replace", description: "Open the Find & Replace window.", icon: "FindReplace", shortcut: [{ key: "H", modifiers: [Et.Ctrl] }, { key: "H", modifiers: [Et.Ctrl, Et.Alt] }] }), new Nt("goto", n2, { label: "Go To", description: "Open the 'Go To' window.", icon: "GoTo", shortcut: [{ key: "G", modifiers: [Et.Ctrl] }] }), new Nt("workbookViewToggleExpandFormulaBar", n2, { label: "Toggle Expand Formula bar", description: "Expand or collapse the formula bar.", shortcut: { key: "U", modifiers: [Et.Ctrl, Et.Shift] } }), new Nt("workbookViewToggleShowFormulaBar", n2, { label: "View Formula bar", scopedLabels: { view: "Formula Bar" }, description: "Show or hide the formula bar." }), new Nt("workbookViewToggleShowTabs", n2, { label: "View Sheet Tabs", description: "Show or hide the sheet tabs.", scopedLabels: { view: "Sheet Tabs" } }), new Nt("workbookViewToggleShowStatusBar", n2, { label: "View Status Bar", description: "Show or hide the status bar.", scopedLabels: { view: "Status Bar" } }), new Nt("workbookViewToggleShowHorizontalScrollBar", n2, { label: "View Horizontal Scrollbar", description: "Show or hide the horizontal scrollbar.", scopedLabels: { view: "Horizontal Scrollbar" } }), new Nt("workbookViewToggleShowVerticalScrollBar", n2, { label: "View Vertical Scrollbar", description: "Show or hide the vertical scrollbar.", scopedLabels: { view: "Vertical Scrollbar" } }), new Bt("hideSheet", n2, { label: "Hide Sheet", scopedLabels: { sheet: "Hide" }, description: "Hide the sheet from appearing in the tabs. This keeps the data but de-clutters the tabs.", icon: "VisibilityOff" }), new Bt("deleteSheet", n2, { label: "Delete Sheet", scopedLabels: { sheet: "Delete" }, description: "Delete the sheet and all the data." }), new Bt("addSheet", n2, { label: "Insert Sheet", scopedLabels: { sheet: "Insert" }, description: "Insert sheet before the current sheet.", shortcut: [{ key: "F11", modifiers: [Et.Shift] }, { key: "F1", modifiers: [Et.Alt, Et.Shift] }] }), new Bt("duplicateSheet", n2, { label: "Duplicate Sheet", description: "Duplicate the current sheet.", scopedLabels: { sheet: "Duplicate" } }), new Bt("nextSheet", n2, { label: "Next Sheet", scopedLabels: { sheet: "Next" }, description: "Activate the next sheet.", shortcut: [{ key: "PageDown", modifiers: [Et.Ctrl] }] }), new Bt("previousSheet", n2, { label: "Previous Sheet", scopedLabels: { sheet: "Previous" }, description: "Activate the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [Et.Ctrl] }] }), new Bt("selectNextSheet", n2, { label: "Select Next Sheet", scopedLabels: { sheet: "Select Next" }, description: "Select the next sheet.", shortcut: [{ key: "PageDown", modifiers: [Et.Ctrl, Et.Shift] }] }), new Bt("selectPreviousSheet", n2, { label: "Select Previous Sheet", scopedLabels: { sheet: "Select Previous" }, description: "Select the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [Et.Ctrl, Et.Shift] }] }), new Bt("selectTheme", n2, { label: "Theme", description: "Select a theme that coveys a style suitable for your data." }), new Bt("selectNamed", n2, { label: (e3) => e3?.getName() ?? "Select Named Item", scopedLabels: { namedItem: (e3) => e3?.getName() ?? "Select" }, description: "Select the item." }), new Bt("addNamedReference", n2, { label: "Define Named Reference", scopedLabels: { namedItem: "Define Name…" }, description: "Add a new named reference. Names can be used as a substitute for cell references.", icon: "InsertNamedRange" }), new Bt("editNamedReference", n2, { label: "Edit Named Reference…", scopedLabels: { namedItem: "Edit…" }, description: "Add a new named reference. Names can be used as a substitute for cell references.", icon: "NamedRangeEdit" }), new Bt("deleteNamedReference", n2, { label: "Delete Named Reference", scopedLabels: { namedItem: "Delete" }, description: "Remove the named reference.", icon: "DeleteNamedRange" }), new Nt("activeNameBox", n2, { label: "Activate Name Box", description: "Move the focus to the name box.", shortcut: { key: "F3", modifiers: [Et.Alt] } }), new Nt("createNamedReferenceFromSelection", n2, { label: "Create from Selection", description: "Automatically generate names from the selected cells.", shortcut: { key: "F3", modifiers: [Et.Ctrl, Et.Shift] } }), new Nt("activeNameManager", n2, { label: "Activate Name Manager", description: "Create, edit, delete, and find all the names used in the workbook.\n\nNames can be used as a substitute for cell references.", shortcut: { key: "F3", modifiers: [Et.Ctrl] } }), new Bt("fullScreenToggle", n2, { label: "FullScreen", description: "Toggle showing the workbook using the full screen.", shortcut: { key: "F11" }, icon: "FullScreen" }), new Bt("showScriptEditor", n2, { label: "Scripts", scopedLabels: { scripts: "Script Editor…" }, description: "Show the script editor.", icon: "ScriptRun", shortcut: [{ key: "F11", modifiers: [Et.Alt] }] }), new Bt("executeScript", n2, { label: "Run Script", description: "Run the selected or last executed script.", icon: "ScriptRun", shortcut: { key: "F8" } }), new Bt("executeSelectedScript", n2, { label: "Run Script", description: "Run the selected script.", icon: "ScriptRun", shortcut: { key: "F8" } }), new Bt("saveScripts", n2, { label: "Save Script", description: "Save the current scripts.", icon: "ScriptSave" }), new Bt("maximumWorkbookToggle", n2, { label: "Maximize", description: "Toggle showing the workbook maximized.", shortcut: { key: "F10", modifiers: [Et.Ctrl] } }), new Bt("spellCheck", n2, { label: "Spell Check", description: "Check the workbook for spelling mistakes.", shortcut: { key: "F7" } }), new Bt("calculateAll", n2, { label: "Calculate Now", description: "Recalculate all formulas.", icon: "Calculate", shortcut: { key: "F9" } })], []), u2 = V(() => {
1454
+ Un.displayName = "WorkbookToolbars";
1455
+ const qn = (e2) => {
1456
+ const { workbook: t2, workbookElement: o2, target: n2, commands: a2, darkMode: r2 } = e2, l2 = vt(), [i2, s2] = j(t2?.getSelectedSheet()), [d2, c2] = j(t2?.getSheets().getItems()), p2 = T(), u2 = V(() => [new Nt("activateTask", n2, { label: "Activate Task", description: "Activate Task Pane.", shortcut: { key: "F6" } }), new Nt("workbookStatistics", n2, { label: "Workbook Statistics", description: "Show the workbook statistics.", shortcut: { key: "G", modifiers: [Et.Ctrl, Et.Shift] } }), new Nt("workbookStatistics", n2, { label: "Workbook Statistics", description: "Show the workbook statistics.", shortcut: { key: "G", modifiers: [Et.Ctrl, Et.Shift] } }), new Nt("showFormat", n2, { label: "Show Format", description: "Open the format pane.", shortcut: { key: "F", modifiers: [Et.Ctrl, Et.Shift] } }), new Bt("newCellStyle", n2, { label: "New Cell Style…", scopedLabels: { cellStyle: "New Cell Style" }, description: "Create a new named style can can be quickly used later.", icon: "NewPresetStyles" }), new Bt("deleteCellStyle", n2, { label: "Delete Cell Style", scopedLabels: { cellStyle: "Delete" }, description: "Remove a named style that is no longer needed." }), new Bt("modifyCellStyle", n2, { label: "Modify Cell Style", scopedLabels: { cellStyle: "Modify" }, description: "Update a style with the currently style." }), new Nt("find", n2, { label: "Find", description: "Open the Find window.", icon: "Find", shortcut: [{ key: "F", modifiers: [Et.Ctrl] }, { key: "F5", modifiers: [Et.Shift] }] }), new Nt("findReplace", n2, { label: "Find & Replace", description: "Open the Find & Replace window.", icon: "FindReplace", shortcut: [{ key: "H", modifiers: [Et.Ctrl] }, { key: "H", modifiers: [Et.Ctrl, Et.Alt] }] }), new Nt("goto", n2, { label: "Go To", description: "Open the 'Go To' window.", icon: "GoTo", shortcut: [{ key: "G", modifiers: [Et.Ctrl] }] }), new Nt("workbookViewToggleExpandFormulaBar", n2, { label: "Toggle Expand Formula bar", description: "Expand or collapse the formula bar.", shortcut: { key: "U", modifiers: [Et.Ctrl, Et.Shift] } }), new Nt("workbookViewToggleShowFormulaBar", n2, { label: "View Formula bar", scopedLabels: { view: "Formula Bar" }, description: "Show or hide the formula bar." }), new Nt("workbookViewToggleShowTabs", n2, { label: "View Sheet Tabs", description: "Show or hide the sheet tabs.", scopedLabels: { view: "Sheet Tabs" } }), new Nt("workbookViewToggleShowStatusBar", n2, { label: "View Status Bar", description: "Show or hide the status bar.", scopedLabels: { view: "Status Bar" } }), new Nt("workbookViewToggleShowHorizontalScrollBar", n2, { label: "View Horizontal Scrollbar", description: "Show or hide the horizontal scrollbar.", scopedLabels: { view: "Horizontal Scrollbar" } }), new Nt("workbookViewToggleShowVerticalScrollBar", n2, { label: "View Vertical Scrollbar", description: "Show or hide the vertical scrollbar.", scopedLabels: { view: "Vertical Scrollbar" } }), new Bt("hideSheet", n2, { label: "Hide Sheet", scopedLabels: { sheet: "Hide" }, description: "Hide the sheet from appearing in the tabs. This keeps the data but de-clutters the tabs.", icon: "VisibilityOff" }), new Bt("deleteSheet", n2, { label: "Delete Sheet", scopedLabels: { sheet: "Delete" }, description: "Delete the sheet and all the data." }), new Bt("addSheet", n2, { label: "Insert Sheet", scopedLabels: { sheet: "Insert" }, description: "Insert sheet before the current sheet.", shortcut: [{ key: "F11", modifiers: [Et.Shift] }, { key: "F1", modifiers: [Et.Alt, Et.Shift] }] }), new Bt("duplicateSheet", n2, { label: "Duplicate Sheet", description: "Duplicate the current sheet.", scopedLabels: { sheet: "Duplicate" } }), new Bt("nextSheet", n2, { label: "Next Sheet", scopedLabels: { sheet: "Next" }, description: "Activate the next sheet.", shortcut: [{ key: "PageDown", modifiers: [Et.Ctrl] }] }), new Bt("previousSheet", n2, { label: "Previous Sheet", scopedLabels: { sheet: "Previous" }, description: "Activate the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [Et.Ctrl] }] }), new Bt("selectNextSheet", n2, { label: "Select Next Sheet", scopedLabels: { sheet: "Select Next" }, description: "Select the next sheet.", shortcut: [{ key: "PageDown", modifiers: [Et.Ctrl, Et.Shift] }] }), new Bt("selectPreviousSheet", n2, { label: "Select Previous Sheet", scopedLabels: { sheet: "Select Previous" }, description: "Select the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [Et.Ctrl, Et.Shift] }] }), new Bt("selectTheme", n2, { label: "Theme", description: "Select a theme that coveys a style suitable for your data." }), new Bt("selectNamed", n2, { label: (e3) => e3?.getName() ?? "Select Named Item", scopedLabels: { namedItem: (e3) => e3?.getName() ?? "Select" }, description: "Select the item." }), new Bt("addNamedReference", n2, { label: "Define Named Reference", scopedLabels: { namedItem: "Define Name…" }, description: "Add a new named reference. Names can be used as a substitute for cell references.", icon: "InsertNamedRange" }), new Bt("editNamedReference", n2, { label: "Edit Named Reference…", scopedLabels: { namedItem: "Edit…" }, description: "Add a new named reference. Names can be used as a substitute for cell references.", icon: "NamedRangeEdit" }), new Bt("deleteNamedReference", n2, { label: "Delete Named Reference", scopedLabels: { namedItem: "Delete" }, description: "Remove the named reference.", icon: "DeleteNamedRange" }), new Nt("activeNameBox", n2, { label: "Activate Name Box", description: "Move the focus to the name box.", shortcut: { key: "F3", modifiers: [Et.Alt] } }), new Nt("createNamedReferenceFromSelection", n2, { label: "Create from Selection", description: "Automatically generate names from the selected cells.", shortcut: { key: "F3", modifiers: [Et.Ctrl, Et.Shift] } }), new Nt("activeNameManager", n2, { label: "Activate Name Manager", description: "Create, edit, delete, and find all the names used in the workbook.\n\nNames can be used as a substitute for cell references.", shortcut: { key: "F3", modifiers: [Et.Ctrl] } }), new Bt("fullScreenToggle", n2, { label: "FullScreen", description: "Toggle showing the workbook using the full screen.", shortcut: { key: "F11" }, icon: "FullScreen" }), new Bt("showScriptEditor", n2, { label: "Scripts", scopedLabels: { scripts: "Script Editor…" }, description: "Show the script editor.", icon: "ScriptRun", shortcut: [{ key: "F11", modifiers: [Et.Alt] }] }), new Bt("executeScript", n2, { label: "Run Script", description: "Run the selected or last executed script.", icon: "ScriptRun", shortcut: { key: "F8" } }), new Bt("executeSelectedScript", n2, { label: "Run Script", description: "Run the selected script.", icon: "ScriptRun", shortcut: { key: "F8" } }), new Bt("saveScripts", n2, { label: "Save Script", description: "Save the current scripts.", icon: "ScriptSave" }), new Bt("maximumWorkbookToggle", n2, { label: "Maximize", description: "Toggle showing the workbook maximized.", shortcut: { key: "F10", modifiers: [Et.Ctrl] } }), new Bt("spellCheck", n2, { label: "Spell Check", description: "Check the workbook for spelling mistakes.", shortcut: { key: "F7" } }), new Bt("calculateAll", n2, { label: "Calculate Now", description: "Recalculate all formulas.", icon: "Calculate", shortcut: { key: "F9" } })], []), g2 = V(() => {
1601
1457
  let e3 = null;
1602
- return e3 = a2 ? a2.createChildGroup(n2, "workbook", false) : new Pt(n2, "workbook"), e3.addCommands(p2, true), e3;
1603
- }, [a2, p2]), h2 = kt(), f2 = W.useRef(null), x2 = xt(() => {
1458
+ return e3 = a2 ? a2.createChildGroup(n2, "workbook", false) : new Pt(n2, "workbook"), e3.addCommands(u2, true), e3;
1459
+ }, [a2, u2]), h2 = kt(), f2 = W.useRef(null), x2 = xt(() => {
1604
1460
  let e3, o3 = null;
1605
- const n3 = u2.getCommand("executeScript");
1461
+ const n3 = g2.getCommand("executeScript");
1606
1462
  if (n3.update({ disabled: false, context: { getScripts: () => t2.getScripts() } }), !n3) return;
1607
- const a3 = u2.getCommand("showScriptEditor");
1463
+ const a3 = g2.getCommand("showScriptEditor");
1608
1464
  a3.updateCallback(function(e4 = true) {
1609
- o3 ? o3.close() : m2.activateTaskPane("scriptEditor", {});
1465
+ o3 ? o3.close() : p2.activateTaskPane("scriptEditor", {});
1610
1466
  });
1611
- const r3 = u2.getCommand("executeSelectedScript");
1467
+ const r3 = g2.getCommand("executeSelectedScript");
1612
1468
  if (!r3) return;
1613
1469
  const i3 = { saveSource: async (e4) => {
1614
1470
  let o4 = null, n4 = null;
@@ -1642,7 +1498,7 @@ const ia = (e2) => {
1642
1498
  return null;
1643
1499
  }, getScripts: () => t2.getScripts() };
1644
1500
  r3.update({ context: i3 });
1645
- }, [u2, t2, o2, l2]), b2 = W.useRef(null);
1501
+ }, [g2, t2, o2, l2]), b2 = W.useRef(null);
1646
1502
  w(t2, { onBeforeSave: async () => {
1647
1503
  await b2.current?.onBeforeSave();
1648
1504
  }, onProtectionChange: () => {
@@ -1657,13 +1513,13 @@ const ia = (e2) => {
1657
1513
  s2(e3?.getSelectedSheet());
1658
1514
  }, onProtectionChange: (e3) => {
1659
1515
  const t3 = { disabled: !e3.getProtection().isStructureAllowed() };
1660
- u2.getCommand("hideSheet").update(t3), u2.getCommand("deleteSheet").update(t3), u2.getCommand("addSheet").update(t3), u2.getCommand("duplicateSheet").update(t3), u2.getCommand("selectTheme").update(t3), u2.getCommand("addNamedReference").update(t3), u2.getCommand("editNamedReference").update(t3), u2.getCommand("deleteNamedReference").update(t3);
1516
+ g2.getCommand("hideSheet").update(t3), g2.getCommand("deleteSheet").update(t3), g2.getCommand("addSheet").update(t3), g2.getCommand("duplicateSheet").update(t3), g2.getCommand("selectTheme").update(t3), g2.getCommand("addNamedReference").update(t3), g2.getCommand("editNamedReference").update(t3), g2.getCommand("deleteNamedReference").update(t3);
1661
1517
  }, onScriptsChange: (e3) => {
1662
1518
  x2();
1663
1519
  } });
1664
1520
  const { isFullscreenAvailable: y2, isFullscreenEnabled: S2, toggleFullscreen: C2 } = Jt({ target: { current: o2 ?? document.body } }), k2 = R();
1665
1521
  _(() => {
1666
- u2.getCommand("selectTheme").update({ state: () => t2.getTheme(), context: () => ({ theme: t2.getTheme(), themes: k2, darkMode: r2 }) });
1522
+ g2.getCommand("selectTheme").update({ state: () => t2.getTheme(), context: () => ({ theme: t2.getTheme(), themes: k2, darkMode: r2 }) });
1667
1523
  }, [t2?.getTheme(), r2]);
1668
1524
  const v2 = xt(async function(e3, o3) {
1669
1525
  let n3 = null;
@@ -1680,7 +1536,7 @@ const ia = (e2) => {
1680
1536
  }
1681
1537
  }, [t2, l2]);
1682
1538
  _(() => {
1683
- u2.getCommand("newCellStyle").updateCallback((e3) => {
1539
+ g2.getCommand("newCellStyle").updateCallback((e3) => {
1684
1540
  l2.showInput({ initialValue: (() => {
1685
1541
  let e4 = 0;
1686
1542
  for (; ; ) {
@@ -1691,7 +1547,7 @@ const ia = (e2) => {
1691
1547
  } catch (e5) {
1692
1548
  }
1693
1549
  }
1694
- })(), title: u2.getCommand("newCellStyle")?.label("cellStyle"), description: "Enter a name for the new cell style.", inputLabel: "Style Name", propsInput: { style: { minWidth: "300px" } }, options: ["Ok", "Cancel"], defaultOption: "Ok", onValidateInput: async (e4, o3) => {
1550
+ })(), title: g2.getCommand("newCellStyle")?.getLabel("cellStyle"), description: "Enter a name for the new cell style.", inputLabel: "Style Name", propsInput: { style: { minWidth: "300px" } }, options: ["Ok", "Cancel"], defaultOption: "Ok", onValidateInput: async (e4, o3) => {
1695
1551
  let n3 = null;
1696
1552
  try {
1697
1553
  t2.getStyles().validateStyleName(e4, false);
@@ -1706,33 +1562,33 @@ const ia = (e2) => {
1706
1562
  const a3 = t2.getStyles().setNamed({ name: e4, style: n3.getCell().getStyle() });
1707
1563
  n3.getStyle().update({ named: a3.getName() });
1708
1564
  });
1709
- }), u2.getCommand("deleteCellStyle").updateCallback((e3) => {
1565
+ }), g2.getCommand("deleteCellStyle").updateCallback((e3) => {
1710
1566
  e3.delete();
1711
- }), u2.getCommand("modifyCellStyle").updateCallback(({ named: e3 }) => {
1567
+ }), g2.getCommand("modifyCellStyle").updateCallback(({ named: e3 }) => {
1712
1568
  const o3 = t2.getSelectedSheet().getSelectedRange();
1713
1569
  t2.getStyles().setNamed({ name: e3.getName(), style: o3.getCell().getStyle() });
1714
- }), u2.getCommand("hideSheet").updateCallback((e3) => {
1715
- t2.getSheetAt(e3).setVisibility(g.Visibility.Hidden);
1716
- }), u2.getCommand("deleteSheet").updateCallback(async (e3) => {
1570
+ }), g2.getCommand("hideSheet").updateCallback((e3) => {
1571
+ t2.getSheetAt(e3).setVisibility(m.Visibility.Hidden);
1572
+ }), g2.getCommand("deleteSheet").updateCallback(async (e3) => {
1717
1573
  t2.getSheetAt(e3 ?? t2.getSelectedSheetIndex())?.delete();
1718
- }), u2.getCommand("addSheet").updateCallback((e3) => {
1574
+ }), g2.getCommand("addSheet").updateCallback((e3) => {
1719
1575
  t2.getSheets().add({ index: e3, autoSelect: true });
1720
- }), u2.getCommand("duplicateSheet").updateCallback(async (e3) => {
1576
+ }), g2.getCommand("duplicateSheet").updateCallback(async (e3) => {
1721
1577
  const o3 = await t2.getSheetAt(e3 ?? t2.getSelectedSheetIndex())?.duplicate();
1722
1578
  o3?.select();
1723
- }), u2.getCommand("nextSheet").updateCallback((e3) => {
1579
+ }), g2.getCommand("nextSheet").updateCallback((e3) => {
1724
1580
  t2.getNextSheet(e3 ?? t2.getSelectedSheetIndex()).select();
1725
- }), u2.getCommand("previousSheet").updateCallback((e3) => {
1581
+ }), g2.getCommand("previousSheet").updateCallback((e3) => {
1726
1582
  t2.getPreviousSheet(e3 ?? t2.getSelectedSheetIndex()).select();
1727
- }), u2.getCommand("selectNextSheet").updateCallback((e3) => {
1583
+ }), g2.getCommand("selectNextSheet").updateCallback((e3) => {
1728
1584
  t2.getNextSheet(e3 ?? t2.getSelectedSheetIndex()).select();
1729
- }), u2.getCommand("selectPreviousSheet").updateCallback((e3) => {
1585
+ }), g2.getCommand("selectPreviousSheet").updateCallback((e3) => {
1730
1586
  t2.getPreviousSheet(e3 ?? t2.getSelectedSheetIndex()).select();
1731
- }), u2.getCommand("selectTheme").updateCallback((e3) => {
1587
+ }), g2.getCommand("selectTheme").updateCallback((e3) => {
1732
1588
  t2.setTheme(e3);
1733
- }), u2.getCommand("calculateAll").updateCallback(() => {
1589
+ }), g2.getCommand("calculateAll").updateCallback(() => {
1734
1590
  t2.getSelectedSheet().getEntireRange().calculate(true);
1735
- }), u2.getCommand("executeScript").updateCallback(v2), u2.getCommand("executeSelectedScript").updateCallback(v2);
1591
+ }), g2.getCommand("executeScript").updateCallback(v2), g2.getCommand("executeSelectedScript").updateCallback(v2);
1736
1592
  }, [t2, l2]);
1737
1593
  const D2 = xt(async (e3) => {
1738
1594
  let o3 = 0, n3 = null, a3 = "Find & Replace";
@@ -1774,86 +1630,86 @@ const ia = (e2) => {
1774
1630
  return _(() => {
1775
1631
  const e3 = (e4 = false) => {
1776
1632
  const o3 = { initialValue: { findOptions: { text: t2.getSelectedCell().toTextUnformatted(true) }, replace: e4 }, context: () => D2, onKeyDown: (e5) => {
1777
- u2.findCommandByEvent(e5) !== u2.getCommand("find") && u2.findCommandByEvent(e5) !== u2.getCommand("findReplace") || e5.preventDefault();
1633
+ g2.findCommandByEvent(e5) !== g2.getCommand("find") && g2.findCommandByEvent(e5) !== g2.getCommand("findReplace") || e5.preventDefault();
1778
1634
  }, autoFocus: true, disableAutoDestroy: true };
1779
1635
  l2.showWindow("find", o3);
1780
1636
  };
1781
- u2.getCommand("find")?.update({ disabled: !l2.showWindow }).updateCallback(() => {
1637
+ g2.getCommand("find")?.update({ disabled: !l2.showWindow }).updateCallback(() => {
1782
1638
  e3();
1783
- }), u2.getCommand("findReplace")?.update({ disabled: !l2.showWindow }).updateCallback(() => {
1639
+ }), g2.getCommand("findReplace")?.update({ disabled: !l2.showWindow }).updateCallback(() => {
1784
1640
  e3(true);
1785
- }), u2.getCommand("activateTask")?.update({ disabled: !l2 }).updateCallback(() => {
1641
+ }), g2.getCommand("activateTask")?.update({ disabled: !l2 }).updateCallback(() => {
1786
1642
  const e4 = { onInput: async (e5) => {
1787
1643
  try {
1788
- m2.activateTaskPane(e5);
1644
+ p2.activateTaskPane(e5);
1789
1645
  } catch (e6) {
1790
1646
  l2.showError(e6.message);
1791
1647
  }
1792
- }, title: u2.getCommand("activateTask")?.label(), inputLabel: "Task Name", options: ["Activate"] };
1648
+ }, title: g2.getCommand("activateTask")?.getLabel(), inputLabel: "Task Name", options: ["Activate"] };
1793
1649
  l2.showInput(e4);
1794
- }), u2.getCommand("goto")?.update({ disabled: !l2 }).updateCallback(() => {
1650
+ }), g2.getCommand("goto")?.update({ disabled: !l2 }).updateCallback(() => {
1795
1651
  const e4 = { onInput: async (e5) => {
1796
1652
  try {
1797
1653
  await t2.getRanges(e5).select();
1798
1654
  } catch (e6) {
1799
1655
  l2.showMessage(e6.message, { type: Tt.Error });
1800
1656
  }
1801
- }, title: u2.getCommand("goto")?.label(), inputLabel: "Location", options: ["Go To"] };
1657
+ }, title: g2.getCommand("goto")?.getLabel(), inputLabel: "Location", options: ["Go To"] };
1802
1658
  l2.showInput(e4);
1803
- }), u2.getCommand("selectNamed")?.update({ disabled: !l2 }).updateCallback(async (e4) => {
1659
+ }), g2.getCommand("selectNamed")?.update({ disabled: !l2 }).updateCallback(async (e4) => {
1804
1660
  if (e4) try {
1805
1661
  await e4.select();
1806
1662
  } catch (e5) {
1807
1663
  l2.showError(e5);
1808
1664
  }
1809
- }), u2.getCommand("addNamedReference")?.updateCallback(async function(e4) {
1665
+ }), g2.getCommand("addNamedReference")?.updateCallback(async function(e4) {
1810
1666
  F2(null);
1811
- }), u2.getCommand("editNamedReference")?.updateCallback(async function(e4) {
1667
+ }), g2.getCommand("editNamedReference")?.updateCallback(async function(e4) {
1812
1668
  F2(e4);
1813
- }), u2.getCommand("deleteNamedReference")?.updateCallback(async function(e4) {
1669
+ }), g2.getCommand("deleteNamedReference")?.updateCallback(async function(e4) {
1814
1670
  e4?.delete?.();
1815
- }), u2.getCommand("activeNameBox")?.updateCallback(async function() {
1671
+ }), g2.getCommand("activeNameBox")?.updateCallback(async function() {
1816
1672
  o2?.getFormulaBarElement()?.getNamedCollectionEditorElement()?.focus();
1817
1673
  });
1818
1674
  }, [o2, t2, l2]), w(t2?.getView(), { onViewChange: (e3) => {
1819
- u2.getCommand("workbookViewToggleShowFormulaBar").update({ state: e3.isShowFormulaBar() }).updateCallback(() => {
1675
+ g2.getCommand("workbookViewToggleShowFormulaBar").update({ state: e3.isShowFormulaBar() }).updateCallback(() => {
1820
1676
  e3.setShowFormulaBar(!e3.isShowFormulaBar());
1821
- }), u2.getCommand("workbookViewToggleShowTabs").update({ state: e3.isShowTabs() }).updateCallback(() => {
1677
+ }), g2.getCommand("workbookViewToggleShowTabs").update({ state: e3.isShowTabs() }).updateCallback(() => {
1822
1678
  e3.setShowTabs(!e3.isShowTabs());
1823
- }), u2.getCommand("workbookViewToggleShowStatusBar").update({ state: e3.isShowStatusBar() }).updateCallback(() => {
1679
+ }), g2.getCommand("workbookViewToggleShowStatusBar").update({ state: e3.isShowStatusBar() }).updateCallback(() => {
1824
1680
  e3.setShowStatusBar(!e3.isShowStatusBar());
1825
- }), u2.getCommand("workbookViewToggleShowHorizontalScrollBar").update({ state: e3.isShowHorizontalScrollbar() }).updateCallback(() => {
1681
+ }), g2.getCommand("workbookViewToggleShowHorizontalScrollBar").update({ state: e3.isShowHorizontalScrollbar() }).updateCallback(() => {
1826
1682
  e3.setShowHorizontalScrollbar(!e3.isShowHorizontalScrollbar());
1827
- }), u2.getCommand("workbookViewToggleShowVerticalScrollBar").update({ state: e3.isShowVerticalScrollbar() }).updateCallback(() => {
1683
+ }), g2.getCommand("workbookViewToggleShowVerticalScrollBar").update({ state: e3.isShowVerticalScrollbar() }).updateCallback(() => {
1828
1684
  e3.setShowVerticalScrollbar(!e3.isShowVerticalScrollbar());
1829
1685
  });
1830
1686
  } }), _(() => {
1831
- u2.getCommand("fullScreenToggle").update({ state: S2, disabled: !y2, icon: S2 ? "FullScreenOff" : "FullScreen" }).updateCallback(() => {
1687
+ g2.getCommand("fullScreenToggle").update({ state: S2, disabled: !y2, icon: S2 ? "FullScreenOff" : "FullScreen" }).updateCallback(() => {
1832
1688
  C2();
1833
1689
  });
1834
1690
  }, [S2, y2]), _(() => {
1835
1691
  const e3 = t2.getProtection().isStructureAllowed();
1836
- u2.getCommand("hideSheet").update({ disabled: d2.length <= 1 || !e3 }), u2.getCommand("deleteSheet").update({ disabled: d2.length <= 1 || !e3 });
1837
- }, [d2, i2]), u2;
1838
- }, sa = "_sheetxl-workbook_g5t6x_5", da = $(O((e2, t2) => {
1692
+ g2.getCommand("hideSheet").update({ disabled: d2.length <= 1 || !e3 }), g2.getCommand("deleteSheet").update({ disabled: d2.length <= 1 || !e3 });
1693
+ }, [d2, i2]), g2;
1694
+ }, Xn = "_sheetxl-workbook_g5t6x_5", Zn = $(O((e2, t2) => {
1839
1695
  const { command: o2, ...n2 } = e2, a2 = kt(), [r2, l2] = j(false), [i2, s2] = j("info");
1840
1696
  return _(() => {
1841
1697
  const e3 = a2.getMode();
1842
1698
  l2("copy" === e3?.key || "cut" === e3?.key), s2("cut" === e3?.key ? "warn" : "accent");
1843
1699
  }, [a2]), z(ke, { ref: t2, command: o2, icon: z(wt, { iconKey: "copy.walking", propsSource: { isWalking: r2, themedType: i2 } }), ...n2 });
1844
- })), ca = $(O((e2, t2) => {
1700
+ })), Yn = $(O((e2, t2) => {
1845
1701
  const { movable: o2, commands: n2, disabled: a2, sx: r2, floatReference: l2, ...i2 } = e2;
1846
1702
  w(o2, { onAnyChange(e3) {
1847
1703
  } });
1848
1704
  const s2 = V(() => ({}), []), d2 = V(() => ({ commandHook: { beforeExecute: (e3, t3) => l2.closeAll(), onExecute() {
1849
1705
  }, onError() {
1850
1706
  console.log("onError");
1851
- } }, disabled: a2, parentFloat: l2 }), [a2, l2]), c2 = V(() => ({ variant: ft.Menuitem, ...s2, ...d2 }), [s2, d2]), m2 = V(() => ({ commands: n2, variant: ft.Menuitem, parentFloat: l2, ...d2 }), [n2, d2, l2]), p2 = L(H, { children: [z(da, { command: n2.getCommand("copy"), ...c2, variant: ft.Menuitem }), [], z(ve, { orientation: "horizontal" }), z(We, { ...m2, popupCommandKeys: ["moveToFront", "moveForward"], quickCommand: "moveToFront" }), z(We, { ...m2, popupCommandKeys: ["moveToBack", "moveBackward"], quickCommand: "moveToBack" }), z(ve, { orientation: "horizontal" }), z(ke, { ...c2, command: n2.getCommand("toggleLockAspectRatio") }), z(ve, { orientation: "horizontal" }), z(We, { ...m2, popupCommandKeys: ["formatDrawAlignLeft", "formatDrawAlignCenter", "formatDrawAlignRight", null, "formatDrawAlignTop", "formatDrawAlignMiddle", "formatDrawAlignBottom", null, "formatDrawDistributeHorz", "formatDrawDistributeVert"], label: "Align", icon: "DrawAlignLeft", tooltip: "Quickly change the placement of your drawings." }), z(ve, { orientation: "horizontal" }), z(We, { ...m2, popupCommandKeys: ["formatAnchorTypeTwoCell", "formatAnchorTypeOneCell", "formatAnchorTypeAbsolute"], label: "Sizing", icon: "DrawResize", tooltip: "Determine how the drawing size will adjust as the cell sizes adjust." }), []] });
1707
+ } }, disabled: a2, parentFloat: l2 }), [a2, l2]), c2 = V(() => ({ variant: ft.Menuitem, ...s2, ...d2 }), [s2, d2]), m2 = V(() => ({ commands: n2, variant: ft.Menuitem, parentFloat: l2, ...d2 }), [n2, d2, l2]), p2 = L(H, { children: [z(Zn, { command: n2.getCommand("copy"), ...c2, variant: ft.Menuitem }), [], z(ve, { orientation: "horizontal" }), z(We, { ...m2, popupCommandKeys: ["moveToFront", "moveForward"], quickCommand: "moveToFront" }), z(We, { ...m2, popupCommandKeys: ["moveToBack", "moveBackward"], quickCommand: "moveToBack" }), z(ve, { orientation: "horizontal" }), z(ke, { ...c2, command: n2.getCommand("toggleLockAspectRatio") }), z(ve, { orientation: "horizontal" }), z(We, { ...m2, popupCommandKeys: ["formatDrawAlignLeft", "formatDrawAlignCenter", "formatDrawAlignRight", null, "formatDrawAlignTop", "formatDrawAlignMiddle", "formatDrawAlignBottom", null, "formatDrawDistributeHorz", "formatDrawDistributeVert"], label: "Align", icon: "DrawAlignLeft", tooltip: "Quickly change the placement of your drawings." }), z(ve, { orientation: "horizontal" }), z(We, { ...m2, popupCommandKeys: ["formatAnchorTypeTwoCell", "formatAnchorTypeOneCell", "formatAnchorTypeAbsolute"], label: "Sizing", icon: "DrawResize", tooltip: "Determine how the drawing size will adjust as the cell sizes adjust." }), []] });
1852
1708
  return z(Q, { ref: t2, sx: { paddingTop: "4px", paddingBottom: "4px", ...r2 }, ...i2, children: p2 });
1853
1709
  }));
1854
- ca.displayName = "MovableContextMenu";
1855
- const ma = $(O((e2, t2) => {
1856
- const { workbook: o2, commands: n2, onBeforeUserChange: a2, onUserChange: r2, disabled: l2 = false, readOnly: i2 = false, propsContextMenu: s2, renderContextMenu: d2 = Ca, propsSheetsAll: c2, renderSheetsAll: m2 = ka, propsSheetTab: p2, renderSheetTab: u2, background: g2 = "transparent", className: h2, sx: f2, borderWidth: x2, borderColor: b2, gridTheme: y2, gridStyle: S2, ...C2 } = e2, [k2, v2] = j(o2?.getSelectedSheetIndex()), [T2, R2] = j(o2?.getSheets().getItems()), [F2, M2] = j(o2?.getProtection());
1710
+ Yn.displayName = "MovableContextMenu";
1711
+ const Qn = $(O((e2, t2) => {
1712
+ const { workbook: o2, commands: n2, onBeforeUserChange: a2, onUserChange: r2, disabled: l2 = false, readOnly: i2 = false, propsContextMenu: s2, renderContextMenu: d2 = da, propsSheetsAll: c2, renderSheetsAll: m2 = ca, propsSheetTab: p2, renderSheetTab: u2, background: g2 = "transparent", className: h2, sx: f2, borderWidth: x2, borderColor: b2, gridTheme: y2, gridStyle: S2, ...C2 } = e2, [k2, v2] = j(o2?.getSelectedSheetIndex()), [T2, R2] = j(o2?.getSheets().getItems()), [F2, M2] = j(o2?.getProtection());
1857
1713
  w(o2, { onViewChange(e3) {
1858
1714
  v2(e3?.getSelectedSheetIndex());
1859
1715
  }, onSheetsChange: (e3) => {
@@ -1878,10 +1734,10 @@ const ma = $(O((e2, t2) => {
1878
1734
  }, [o2, a2, r2, k2]), H2 = V(() => ({ placement: "top-start" }), []), W2 = q(null), [$2, O2] = j(false), G2 = K((e3) => {
1879
1735
  const { closeFloatAll: t3, floatReference: n3 } = e3;
1880
1736
  return m2({ workbook: o2, gridStyle: S2, floatReference: n3, closeFloatAll: t3, ...c2 });
1881
- }, [m2, c2, l2, o2, S2]), { reference: U2, component: X2 } = _e({ label: "allSheet", propsPopper: H2, anchor: W2.current, onOpen: () => O2(true), onClose: () => O2(false), createPopupPanel: G2 }), Z2 = q(null), [Y2, J2] = j(null), te2 = K((e3) => {
1737
+ }, [m2, c2, l2, o2, S2]), { reference: U2, component: X2 } = Ge({ label: "allSheet", propsPopper: H2, anchor: W2.current, onOpen: () => O2(true), onClose: () => O2(false), createPopupPanel: G2 }), Z2 = q(null), [Y2, J2] = j(null), te2 = K((e3) => {
1882
1738
  const { floatReference: t3 } = e3;
1883
1739
  return d2?.({ workbook: o2, index: Y2?.index, tabStripRef: Z2.current, commands: n2, disabled: l2, floatReference: t3, ...s2 });
1884
- }, [d2, s2, l2, o2, n2, Y2]), { reference: oe2, component: ne2 } = _e({ label: "sheetTab", propsPopper: H2, anchor: { getBoundingClientRect: () => new DOMRect(Y2?.left || 0, Y2?.top || 0, 0, 0) }, onClose: () => J2(null), createPopupPanel: te2 });
1740
+ }, [d2, s2, l2, o2, n2, Y2]), { reference: oe2, component: ne2 } = Ge({ label: "sheetTab", propsPopper: H2, anchor: { getBoundingClientRect: () => new DOMRect(Y2?.left || 0, Y2?.top || 0, 0, 0) }, onClose: () => J2(null), createPopupPanel: te2 });
1885
1741
  _(() => {
1886
1742
  Y2 ? oe2.open(0) : oe2.close(0);
1887
1743
  }, [Y2]);
@@ -1894,13 +1750,13 @@ const ma = $(O((e2, t2) => {
1894
1750
  } catch (e4) {
1895
1751
  }
1896
1752
  if (!t3) return null;
1897
- return (u2 ?? va)({ sheet: t3, gridTheme: y2, onContextMenu: (t4) => {
1753
+ return (u2 ?? ma)({ sheet: t3, gridTheme: y2, onContextMenu: (t4) => {
1898
1754
  E2(e3.index), ae2(t4, e3.index);
1899
1755
  }, ...e3, ...p2 });
1900
1756
  }, [u2, p2, o2, y2]), le2 = V(() => N2 ? null : z(Fe, { disableInteractive: true, title: "New sheet", children: z(ee, { disabled: l2, component: "div", sx: { padding: "0", "&:hover:not([disabled])": { color: (e3) => e3.palette.primary.main }, color: (e3) => e3.palette.text.icon ?? e3.palette.action.active, "& svg": { width: "18px", height: "18px" } }, "aria-label": "addTab", size: "small", onMouseDown: (e3) => {
1901
1757
  0 === e3.button && e3.preventDefault();
1902
1758
  }, onClick: () => A2(), children: z(wt, { iconKey: "AddCircle" }) }) }), [l2, N2, A2]);
1903
- return L(Q, { ref: t2, className: gt(h2), sx: { position: "relative", display: "flex", alignItems: "stretch", flex: "1 1 100%", maxWidth: "100%", ...f2 }, ...C2, children: [z(D, { ref: Z2, selectedTabIndex: k2, tabNames: B2, onSelectedTabIndexChange: E2, onTabNameChange: P2, onTabMove: I2, background: g2, borderColor: b2, borderWidth: x2, activeColor: null, disabled: l2, disableDrag: N2, renderScrollButtonStart: Ye, renderScrollButtonEnd: Ze, renderScrollButtonEdge: Xe, renderTabButton: re2, renderTabDivider: (e3) => {
1759
+ return L(Q, { ref: t2, className: gt(h2), sx: { position: "relative", display: "flex", alignItems: "stretch", flex: "1 1 100%", maxWidth: "100%", ...f2 }, ...C2, children: [z(D, { ref: Z2, selectedTabIndex: k2, tabNames: B2, onSelectedTabIndexChange: E2, onTabNameChange: P2, onTabMove: I2, background: g2, borderColor: b2, borderWidth: x2, activeColor: null, disabled: l2, disableDrag: N2, renderScrollButtonStart: Xe, renderScrollButtonEnd: qe, renderScrollButtonEdge: Ue, renderTabButton: re2, renderTabDivider: (e3) => {
1904
1760
  const { key: t3, ...o3 } = e3;
1905
1761
  return z(ve, { sx: { marginLeft: "-1px", marginRight: "0px", marginTop: "6px", marginBottom: "6px", background: (e4) => mt(e4.palette.divider, 0.25) }, ...o3 }, t3);
1906
1762
  }, propsEditLabel: { readOnly: N2, maxLength: 31, styleHover: { fontWeight: "700" }, onKeyPress: (e3) => {
@@ -1913,8 +1769,8 @@ const ma = $(O((e2, t2) => {
1913
1769
  $2 ? U2.close(0) : U2.open(0);
1914
1770
  }, icon: z(wt, { iconKey: "Menu" }) }) }) }), z("div", { style: { borderTop: `solid ${b2} ${x2}px`, minWidth: "4px" } }), z("div", { style: { borderTop: `solid ${b2} ${x2}px`, flex: "none", display: "flex", alignItems: "center" }, children: le2 }), z("div", { style: { borderTop: `solid ${b2} ${x2}px`, flex: 1, minWidth: "24px" } }), ne2, X2] });
1915
1771
  }));
1916
- ma.displayName = "WorkbookStrip";
1917
- const pa = $(O((e2, t2) => {
1772
+ Qn.displayName = "WorkbookStrip";
1773
+ const Jn = $(O((e2, t2) => {
1918
1774
  const { workbook: o2, commands: n2, disabled: a2, sx: r2, floatReference: l2, className: i2, ...s2 } = e2, [d2, c2] = Z((e3) => e3 + 1, 0), [m2, p2] = j(o2.getSelectedSheet()), [u2, g2] = j(m2.getSelectedRanges()), [h2, f2] = j(m2.getSelectedCell());
1919
1775
  w(o2, { onSheetsChange() {
1920
1776
  p2(o2.getSelectedSheet());
@@ -1929,7 +1785,7 @@ const pa = $(O((e2, t2) => {
1929
1785
  } }, disabled: a2, scope: "contextMenu", parentFloat: l2 }), [a2, l2]), y2 = V(() => ({ ...x2, ...b2, variant: ft.Menuitem }), [x2, b2]), S2 = V(() => ({ commands: n2, variant: ft.Menuitem, parentFloat: l2, ...b2 }), [n2, b2, l2]), C2 = [];
1930
1786
  let k2 = u2.isEntireRows(), v2 = u2.isEntireColumns();
1931
1787
  u2 && (k2 && (C2.push(z(ve, { orientation: "horizontal" }, "context:" + C2.length)), C2.push(X(ke, { command: n2.getCommand("hideColumns"), ...y2, key: "context:" + C2.length })), C2.push(X(ke, { command: n2.getCommand("unhideColumns"), ...y2, key: "context:" + C2.length }))), v2 && (C2.push(z(ve, { orientation: "horizontal" }, "context:" + C2.length)), C2.push(X(ke, { command: n2.getCommand("hideRows"), ...y2, key: "context:" + C2.length })), C2.push(X(ke, { command: n2.getCommand("unhideRows"), ...y2, key: "context:" + C2.length }))), (k2 || v2) && C2.push(z(ve, { orientation: "horizontal" }, "context:" + C2.length)), k2 && (C2.push(X(ke, { command: n2.getCommand("autoFitColumns"), ...y2, key: "context:" + C2.length })), C2.push(X(ke, { ...y2, command: n2.getCommand("resizeColumns"), key: "context:" + C2.length }))), v2 && (C2.push(X(ke, { command: n2.getCommand("autoFitRows"), ...y2, key: "context:" + C2.length })), C2.push(X(ke, { ...y2, command: n2.getCommand("resizeRows"), key: "context:" + C2.length }))));
1932
- const T2 = [], R2 = n2.getCommand("formatTableStyle"), D2 = R2?.context()?.table();
1788
+ const T2 = [], R2 = n2.getCommand("formatTableStyle"), D2 = R2?.getContext()?.table();
1933
1789
  if (St(R2), !k2 && !v2) {
1934
1790
  if (T2.push(z(ve, { orientation: "horizontal" }, "contextBefore:" + T2.length)), h2?.getHyperlink()) T2.push(X(We, { ...S2, popupCommandKeys: ["updateHyperlink", "deleteHyperlink"], popupScope: "hyperlink", key: "contextBefore:action" + T2.length, quickCommand: "openHyperlink" }));
1935
1791
  else {
@@ -1943,12 +1799,12 @@ const pa = $(O((e2, t2) => {
1943
1799
  }
1944
1800
  D2 ? T2.push(X(We, { ...S2, variant: ft.Menuitem, key: "contextBefore:" + T2.length, popupCommandKeys: ["convertTableToRange", "deleteTable"], popupScope: "table", scope: "context", commandState: D2, quickCommand: "editTable" })) : T2.push(X(ke, { command: n2.getCommand("insertTable"), ...y2, key: "context:" + C2.length })), T2.push(X(za, { ...S2, key: "contextBefore:" + T2.length }));
1945
1801
  }
1946
- const F2 = L(H, { children: [z(ke, { command: n2.getCommand("cut"), ...y2 }), z(da, { command: n2.getCommand("copy"), ...y2 }), z(Zo, { command: n2.getCommand("paste"), ...S2, includePasteAllInPopup: false }), z(ve, { orientation: "horizontal" }), z(Vo, { ...S2 }), z(ve, { orientation: "horizontal" }), z(Ho, { commands: n2, ...S2, disableSheet: true }), z(zo, { commands: n2, ...S2, disableSheet: true }), z(Ao, { ...S2 }), T2, C2] });
1802
+ const F2 = L(H, { children: [z(ke, { command: n2.getCommand("cut"), ...y2 }), z(Zn, { command: n2.getCommand("copy"), ...y2 }), z(Da, { command: n2.getCommand("paste"), ...S2, includePasteAllInPopup: false }), z(ve, { orientation: "horizontal" }), z(ya, { ...S2 }), z(ve, { orientation: "horizontal" }), z(Ho, { commands: n2, ...S2, disableSheet: true }), z(zo, { commands: n2, ...S2, disableSheet: true }), z(Ao, { ...S2 }), T2, C2] });
1947
1803
  return z(Q, { ref: t2, className: gt("menu", i2), sx: { ...r2 }, ...s2, children: F2 });
1948
1804
  }));
1949
- pa.displayName = "WorkbookContextMenu";
1950
- const ua = (e2) => z(ca, { ...e2 }), ga = (e2) => z(pa, { ...e2 }), ha = (e2) => z(Tn, { ...e2 }), fa = (e2) => z(vn, { ...e2 }), xa = (e2) => z(Me, { transitionDelay: "160ms", transparentBackground: true, ...e2 }), ba = (e2) => z(Qe, { fullscreen: true, ...e2 }), ya = (e2) => z(F, { ...e2 }), wa = (e2) => z(Sn, { ...e2 }), Sa = (e2) => z(ma, { ...e2 }), Ca = (e2) => z(Fn, { ...e2 }), ka = (e2) => z(Mn, { ...e2 }), va = (e2) => z(Dn, { ...e2 }), Ta = { fireOnModelChange: false }, Ra = { flex: "1 1 100%", display: "flex", boxSizing: "border-box" }, Da = $(O((e2, t2) => {
1951
- const { workbook: o2, onElementLoad: n2, autoFocus: a2 = false, style: r2, className: l2, onFocus: i2, onBlur: s2, onKeyDown: d2, onRepeatCommandChange: c2, commands: m2, showFormulaBar: p2, propsFormulaBar: u2, renderFormulaBar: g2 = fa, showTabs: h2, propsTabs: x2, renderTabs: b2 = Sa, showStatusBar: y2, propsStatusBar: S2, renderStatusBar: C2 = wa, propsToolbar: k2, renderToolbar: v2 = oa, propsContextMenu: T2, renderContextMenu: R2 = ga, renderFilterMenu: D2 = ha, renderMovableMenu: F2 = ua, renderLoading: P2 = xa, propsLoading: I2, propsSheet: A2, renderSheet: $2 = ya, wrapperMain: O2, showHorizontalScrollbar: G2, showVerticalScrollbar: U2, gridTheme: X2, headersTheme: ee2, enableDarkImages: te2, ...oe2 } = e2;
1805
+ Jn.displayName = "WorkbookContextMenu";
1806
+ const ea = (e2) => z(Yn, { ...e2 }), ta = (e2) => z(Jn, { ...e2 }), oa = (e2) => z(Qo, { ...e2 }), na = (e2) => z(Yo, { ...e2 }), aa = (e2) => z(Me, { transitionDelay: "160ms", transparentBackground: true, ...e2 }), ra = (e2) => z(Ze, { fullscreen: true, ...e2 }), la = (e2) => z(F, { ...e2 }), ia = (e2) => z(qo, { ...e2 }), sa = (e2) => z(Qn, { ...e2 }), da = (e2) => z(hn, { ...e2 }), ca = (e2) => z(fn, { ...e2 }), ma = (e2) => z(gn, { ...e2 }), pa = { fireOnModelChange: false }, ua = { flex: "1 1 100%", display: "flex", boxSizing: "border-box" }, ga = $(O((e2, t2) => {
1807
+ const { workbook: o2, onElementLoad: n2, autoFocus: a2 = false, style: r2, className: l2, onFocus: i2, onBlur: s2, onKeyDown: d2, onRepeatCommandChange: c2, commands: m2, showFormulaBar: p2, propsFormulaBar: g2, renderFormulaBar: h2 = na, showTabs: f2, propsTabs: x2, renderTabs: b2 = sa, showStatusBar: y2, propsStatusBar: S2, renderStatusBar: C2 = ia, propsToolbar: k2, renderToolbar: v2 = Kn, propsContextMenu: T2, renderContextMenu: R2 = ta, renderFilterMenu: D2 = oa, renderMovableMenu: F2 = ea, renderLoading: P2 = aa, propsLoading: I2, propsSheet: A2, renderSheet: $2 = la, wrapperMain: O2, showHorizontalScrollbar: G2, showVerticalScrollbar: U2, gridTheme: X2, headersTheme: ee2, enableDarkImages: te2, ...oe2 } = e2;
1952
1808
  if (!o2) throw new Error("IWorkbook must be provided.");
1953
1809
  const ne2 = ct(), ae2 = q(null), [re2, le2] = j(false), ie2 = q(null), se2 = V(() => z(Q, { className: "sheetxl-viewport", sx: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute", pointerEvents: "none !important", "& > :first-of-type": { position: "relative" } }, ref: ie2 }), []), [de2, ce2] = j(false), [me2, pe2] = j(false), ue2 = K(() => {
1954
1810
  ce2(true);
@@ -1960,7 +1816,7 @@ const ua = (e2) => z(ca, { ...e2 }), ga = (e2) => z(pa, { ...e2 }), ha = (e2) =>
1960
1816
  (async () => {
1961
1817
  fe2.current !== n2 && (await n2?.({ source: he2.current }), fe2.current = n2), pe2(true);
1962
1818
  })();
1963
- }, [de2, he2.current]), Pn(he2.current);
1819
+ }, [de2, he2.current]), wn(he2.current);
1964
1820
  const xe2 = K((e3) => (ae2.current?.submitEdit(), true), []), be2 = K(() => {
1965
1821
  requestAnimationFrame(() => {
1966
1822
  ae2?.current?.focus();
@@ -1976,22 +1832,22 @@ const ua = (e2) => z(ca, { ...e2 }), ga = (e2) => z(pa, { ...e2 }), ha = (e2) =>
1976
1832
  ae2.current.getSheet() !== t3 ? ae2.current.getGridElement()?.onViewChangeOnce(() => {
1977
1833
  ae2.current.getSheet() !== t3 && e4(false), e4(true);
1978
1834
  }) : e4(true);
1979
- }) }, Ta);
1835
+ }) }, pa);
1980
1836
  const [ke2, ve2] = Z((e3) => e3 + 1, 0), Te2 = o2.getView();
1981
1837
  w(Te2, { onViewChange: (e3) => {
1982
1838
  ve2();
1983
1839
  } });
1984
- const Re2 = X2 ?? ne2, De2 = V(() => Ln(ne2, Re2), [ne2, Re2]), Ne2 = ee2 ?? ne2, Be2 = V(() => Ln(ne2, Ne2), [ne2, Ne2]), [Ee2, Pe2] = j(null);
1840
+ const Re2 = X2 ?? ne2, De2 = V(() => kn(ne2, Re2), [ne2, Re2]), Ne2 = ee2 ?? ne2, Be2 = V(() => kn(ne2, Ne2), [ne2, Ne2]), [Ee2, Pe2] = j(null);
1985
1841
  K(() => {
1986
1842
  ae2.current.focus();
1987
1843
  }, []);
1988
- const Ie2 = ia({ workbook: o2, workbookElement: he2.current, target: () => ae2.current, commands: m2, darkMode: De2.body.darkMode }), Ae2 = q(null), [Le2, He2] = j(false), [ze2, We2] = j(null), [$e2, Oe2] = j(It.Top), [Ve2, Ke2] = j(f.EmptyBounds), Ge2 = K(() => {
1844
+ const Ie2 = qn({ workbook: o2, workbookElement: he2.current, target: () => ae2.current, commands: m2, darkMode: De2.body.darkMode }), Ae2 = q(null), [Le2, He2] = j(false), [ze2, We2] = j(null), [$e2, Oe2] = j(It.Top), [Ve2, Ke2] = j(u.EmptyBounds), je2 = K(() => {
1989
1845
  He2(false), We2(null);
1990
- }, []), je2 = K((e3, t3, o3 = It.Top) => {
1846
+ }, []), _e2 = K((e3, t3, o3 = It.Top) => {
1991
1847
  Ke2(e3), Oe2(o3), We2(t3), null !== Ae2.current && setTimeout(() => {
1992
1848
  null !== Ae2.current && Ae2.current.update();
1993
1849
  }, 160), He2(true);
1994
- }, []), [Ue2, qe2] = j("sheet"), Xe2 = h2 ?? Te2?.isShowTabs(), Ze2 = G2 ?? Te2?.isShowHorizontalScrollbar(), Ye2 = p2 ?? Te2?.isShowFormulaBar(), Qe2 = y2 ?? Te2?.isShowStatusBar(), et2 = U2 ?? Te2?.isShowVerticalScrollbar(), tt2 = De2?.header?.edgeStrokeFill || "rgb(171,171,171)", ot2 = V(() => Qe2 ? C2({ sheet: ye2, gridStyle: De2, ...S2 }) : null, [C2, S2, Qe2, De2, ye2]), nt2 = V(() => v2({ commands: Ie2, workbook: he2.current, ...k2 }), [Ie2, v2, k2, ne2]), [at2, { width: rt2 }] = jt(), lt2 = 0 === rt2 || rt2 > 560, it2 = V(() => {
1850
+ }, []), [Ue2, qe2] = j("sheet"), Xe2 = f2 ?? Te2?.isShowTabs(), Ze2 = G2 ?? Te2?.isShowHorizontalScrollbar(), Qe2 = p2 ?? Te2?.isShowFormulaBar(), Je2 = y2 ?? Te2?.isShowStatusBar(), et2 = U2 ?? Te2?.isShowVerticalScrollbar(), tt2 = De2?.header?.edgeStrokeFill || "rgb(171,171,171)", ot2 = V(() => Je2 ? C2({ sheet: ye2, gridStyle: De2, ...S2 }) : null, [C2, S2, Je2, De2, ye2]), nt2 = V(() => v2({ commands: Ie2, workbook: he2.current, ...k2 }), [Ie2, v2, k2, ne2]), [at2, { width: rt2 }] = jt(), lt2 = 0 === rt2 || rt2 > 560, it2 = V(() => {
1995
1851
  if (!Xe2) return null;
1996
1852
  let e3 = b2({ background: De2.body.fill, borderWidth: 1, borderColor: tt2, gridTheme: Re2, gridStyle: De2, onBeforeUserChange: xe2, onUserChange: be2, workbook: o2, commands: Ie2, propsSheetTab: {}, ...x2 });
1997
1853
  return lt2 || (e3 = z("div", { style: { flex: "none", display: "flex" }, children: e3 })), e3;
@@ -1999,17 +1855,17 @@ const ua = (e2) => z(ca, { ...e2 }), ga = (e2) => z(pa, { ...e2 }), ha = (e2) =>
1999
1855
  const { style: t3, ...n3 } = e3;
2000
1856
  let a3 = null, r3 = null, l3 = null;
2001
1857
  if (Ze2 && (r3 = z("div", { style: { display: "flex", flex: "1 1 100%", borderTop: `solid ${tt2} 1px`, flexDirection: "column", justifyContent: "center" }, children: z(M, { ...n3, style: { paddingLeft: "4px", paddingRight: "4px", ...t3 }, propsTouchThumb: { backgroundColor: Re2.palette.background.paper, borderColor: Re2.palette.primary.main, fillColor: "grey" }, endGap: 700, sheet: ye2, onShowTooltip: (e4) => {
2002
- je2({ x: e4.anchor.x, y: e4.anchor.y, width: 0, height: 0 }, e4.display, e4.placement);
2003
- }, onCloseTooltip: () => Ge2() }) })), Xe2 && lt2 && (l3 = it2), Xe2 && lt2 && !Ze2 && (l3 = L(Q, { sx: { display: "flex", flex: "1", position: "relative", alignContent: "center" }, children: [l3, z(Q, { sx: { borderTop: `solid ${tt2} 1px`, flex: "1" } })] })), l3 && Ze2) a3 = z(Dt, { position: o2.getView().getTabRatio() / 10 + "%", onPositionChange: ({ percent: e4 }) => {
1858
+ _e2({ x: e4.anchor.x, y: e4.anchor.y, width: 0, height: 0 }, e4.display, e4.placement);
1859
+ }, onCloseTooltip: () => je2() }) })), Xe2 && lt2 && (l3 = it2), Xe2 && lt2 && !Ze2 && (l3 = L(Q, { sx: { display: "flex", flex: "1", position: "relative", alignContent: "center" }, children: [l3, z(Q, { sx: { borderTop: `solid ${tt2} 1px`, flex: "1" } })] })), l3 && Ze2) a3 = z(Dt, { position: o2.getView().getTabRatio() / 10 + "%", onPositionChange: ({ percent: e4 }) => {
2004
1860
  o2.getView().setTabRatio(Math.round(10 * e4));
2005
1861
  }, minBefore: "200px", minAfter: "180px", propsResizer: { style: { minWidth: "11px", backgroundImage: `url("data:image/svg+xml,%3Csvg width='6.4' height='12' viewBox='0 0 9.6 16' version='1.1' fill='${ne2.palette.text.icon ?? ne2.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='M 9.60008,14.40009 C 9.60008,15.28374 8.88368,16 8.00003,16 7.11639,16 6.40012,15.28374 6.40012,14.40009 c 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40012 c 0,0.88364 -0.7164,1.60004 -1.60005,1.60004 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60004 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40006 c 0,0.88365 -0.7164,1.60005 -1.60005,1.60005 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60005 C 6.40012,0.71626 7.11639,0 8.00003,0 8.88368,0 9.60008,0.71626 9.60008,1.59991 M 3.19996,14.40009 C 3.19996,15.28374 2.48369,16 1.60005,16 0.7164,16 0,15.28374 0,14.40009 c 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40012 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 C 0.7164,9.60001 0,8.88361 0,7.99997 0,7.11632 0.7164,6.39992 1.60005,6.39992 c 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40006 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 0.7164,3.19996 0,2.48356 0,1.59991 0,0.71626 0.7164,0 1.60005,0 2.48369,0 3.19996,0.71626 3.19996,1.59991' /%3E%3C/svg%3E%0A")`, backgroundRepeat: "no-repeat", backgroundPosition: "center", borderTop: `solid ${tt2} 1px`, borderBottom: "solid 3px transparent" } }, elementBefore: l3, elementAfter: r3 });
2006
1862
  else if (Ze2) a3 = r3;
2007
1863
  else {
2008
- if (!l3) return z(Q, { sx: { display: "flex", flex: "1", position: "relative", alignContent: "center", height: "1px", borderTop: Qe2 ? null : `solid ${tt2} 1px` } });
1864
+ if (!l3) return z(Q, { sx: { display: "flex", flex: "1", position: "relative", alignContent: "center", height: "1px", borderTop: Je2 ? null : `solid ${tt2} 1px` } });
2009
1865
  a3 = l3;
2010
1866
  }
2011
1867
  return z(Q, { sx: { display: "flex", flex: "1", position: "relative", alignContent: "center" }, children: a3 });
2012
- }, [ye2, xe2, o2, De2, Re2, Ie2, Xe2, Ze2, Qe2, lt2]), [dt2, ut2] = W.useState(null), ht2 = V(() => ({ placement: "right-start", ...dt2?.propsPopper }), [dt2?.propsPopper]), { reference: ft2, component: bt2 } = _e({ label: "contextMenu", propsPopper: ht2, anchor: dt2?.anchor ?? { getBoundingClientRect: () => new DOMRect(dt2?.clientX || 0, dt2?.clientY || 0) }, onClose: () => ut2(null), createPopupPanel: dt2?.createPopupPanel });
1868
+ }, [ye2, xe2, o2, De2, Re2, Ie2, Xe2, Ze2, Je2, lt2]), [dt2, ut2] = W.useState(null), ht2 = V(() => ({ placement: "right-start", ...dt2?.propsPopper }), [dt2?.propsPopper]), { reference: ft2, component: bt2 } = Ge({ label: "contextMenu", propsPopper: ht2, anchor: dt2?.anchor ?? { getBoundingClientRect: () => new DOMRect(dt2?.clientX || 0, dt2?.clientY || 0) }, onClose: () => ut2(null), createPopupPanel: dt2?.createPopupPanel });
2013
1869
  _(() => {
2014
1870
  dt2 ? ft2.open(0) : ft2.close(0);
2015
1871
  }, [dt2]);
@@ -2049,7 +1905,7 @@ const ua = (e2) => z(ca, { ...e2 }), ga = (e2) => z(pa, { ...e2 }), ha = (e2) =>
2049
1905
  const Ct2 = xt((e3) => {
2050
1906
  Ie2?.dispatchToFocusedCommand(e3);
2051
1907
  }, [Ie2]), kt2 = xt(() => {
2052
- Pn(he2.current);
1908
+ wn(he2.current);
2053
1909
  }, []), vt2 = K(() => {
2054
1910
  qe2("sheet");
2055
1911
  }, []), Tt2 = K(() => {
@@ -2057,13 +1913,13 @@ const ua = (e2) => z(ca, { ...e2 }), ga = (e2) => z(pa, { ...e2 }), ha = (e2) =>
2057
1913
  }, []), Ft2 = K((e3) => {
2058
1914
  const { style: t3, ...o3 } = e3;
2059
1915
  return z(M, { ...o3, style: { ...t3, paddingTop: "4px", paddingBottom: "4px" }, propsTouchThumb: { backgroundColor: Re2.palette.background.paper, borderColor: Re2.palette.primary.main, fillColor: "grey" }, sheet: ye2, endGap: 700, onShowTooltip: (e4) => {
2060
- je2(e4.anchor, e4.display, It.Left);
2061
- }, onCloseTooltip: () => Ge2() });
1916
+ _e2(e4.anchor, e4.display, It.Left);
1917
+ }, onCloseTooltip: () => je2() });
2062
1918
  }, [ye2, Re2]);
2063
1919
  _(() => {
2064
1920
  a2 && ae2 && ae2.current && ae2.current.focus();
2065
1921
  }, []);
2066
- const Mt2 = q(null), Bt2 = V(() => z(Qt, { in: !me2, nodeRef: Mt2, timeout: 500, classNames: "animating", unmountOnExit: true, children: z(Q, { style: { display: "flex", alignItems: "center", justifyContent: "center", left: "0px", top: "0px", width: "100%", height: "100%", position: "absolute", boxSizing: "border-box", pointerEvents: me2 ? "none" : r2?.pointerEvents }, children: P2?.({ ref: Mt2, ...I2 }) }) }), [me2, P2, I2]), Pt2 = V(() => g2({ ref: ge2, sx: { marginTop: (e3) => e3.spacing(0.25), marginLeft: (e3) => e3.spacing(1), marginRight: (e3) => e3.spacing(1) }, workbook: o2, sheetElement: ae2.current, gridStyle: De2, onFocus: Tt2, ...u2, propsNamedCollectionEditor: { restoreFocus: (e3) => ae2.current.focus(e3), ...u2?.propsNamedCollectionEditor, propsCommandPopupButton: { commands: Ie2, ...u2?.propsNamedCollectionEditor?.propsCommandPopupButton } } }), [g2, u2, o2, De2, Ie2, me2]), Lt2 = K((e3) => {
1922
+ const Mt2 = q(null), Bt2 = V(() => z(Qt, { in: !me2, nodeRef: Mt2, timeout: 500, classNames: "animating", unmountOnExit: true, children: z(Q, { style: { display: "flex", alignItems: "center", justifyContent: "center", left: "0px", top: "0px", width: "100%", height: "100%", position: "absolute", boxSizing: "border-box", pointerEvents: me2 ? "none" : r2?.pointerEvents }, children: P2?.({ ref: Mt2, ...I2 }) }) }), [me2, P2, I2]), Pt2 = V(() => h2({ ref: ge2, sx: { marginTop: (e3) => e3.spacing(0.25), marginLeft: (e3) => e3.spacing(1), marginRight: (e3) => e3.spacing(1) }, workbook: o2, sheetElement: ae2.current, gridStyle: De2, onFocus: Tt2, ...g2, propsNamedCollectionEditor: { restoreFocus: (e3) => ae2.current.focus(e3), ...g2?.propsNamedCollectionEditor, propsCommandPopupButton: { commands: Ie2, ...g2?.propsNamedCollectionEditor?.propsCommandPopupButton } } }), [h2, g2, o2, De2, Ie2, me2]), Lt2 = K((e3) => {
2067
1923
  const { movable: t3, ...o3 } = e3, n3 = { movable: t3, onContextMenuCapture: (e4) => {
2068
1924
  St2(e4, t3);
2069
1925
  }, ...o3 }, a3 = t3.getContent().getType();
@@ -2078,32 +1934,32 @@ const ua = (e2) => z(ca, { ...e2 }), ga = (e2) => z(pa, { ...e2 }), ha = (e2) =>
2078
1934
  r3 = z(E, { ...e4 });
2079
1935
  }
2080
1936
  return z("div", { style: { position: "absolute", clipPath: "inset(0px)", display: "flex", alignItems: "stretch", justifyContent: "stretch", pointerEvents: "all" }, children: r3 }, t3.getUUID());
2081
- }, []), Ht2 = V(() => $2({ ref: ae2, style: Ra, onFocus: vt2, gridStyle: De2, headersStyle: Be2, sheet: ye2, commands: Ie2, onSheetContextMenu: wt2, onViewportChange: (e3) => {
1937
+ }, []), Ht2 = V(() => $2({ ref: ae2, style: ua, onFocus: vt2, gridStyle: De2, headersStyle: Be2, sheet: ye2, commands: Ie2, onSheetContextMenu: wt2, onViewportChange: (e3) => {
2082
1938
  Pe2(e3);
2083
1939
  }, showScrollbars: false, viewportComponent: se2, onRepeatCommandChange: c2, onElementLoad: ue2, onShowColumnTooltip: (e3) => {
2084
- je2(e3.anchor, e3.display, It.Top);
1940
+ _e2(e3.anchor, e3.display, It.Top);
2085
1941
  }, onShowRowTooltip: (e3) => {
2086
- je2(e3.anchor, e3.display, It.Right);
1942
+ _e2(e3.anchor, e3.display, It.Right);
2087
1943
  }, onShowTooltip: (e3) => {
2088
- je2({ x: e3.anchor.x, y: e3.anchor.y, width: 0, height: 0 }, e3.display, e3.placement);
2089
- }, onCloseTooltip: () => Ge2(), renderMovable: Lt2, ...A2, propsCellRender: { onFilterButtonMouseDown: (e3, t3) => {
1944
+ _e2({ x: e3.anchor.x, y: e3.anchor.y, width: 0, height: 0 }, e3.display, e3.placement);
1945
+ }, onCloseTooltip: () => je2(), renderMovable: Lt2, ...A2, propsCellRender: { onFilterButtonMouseDown: (e3, t3) => {
2090
1946
  A2?.propsCellRender?.onFilterButtonMouseDown(e3, t3), yt2(e3, t3);
2091
1947
  }, ...A2?.propsCellRender } }), [Ie2, A2, ye2, De2, c2]), zt2 = V(() => {
2092
- let e3 = z(At, { ref: at2, style: Ra, viewport: Ee2, touchElement: ae2.current?.getGridElement()?.stage, onScrollViewport: (e4) => {
1948
+ let e3 = z(At, { ref: at2, style: ua, viewport: Ee2, touchElement: ae2.current?.getGridElement()?.stage, onScrollViewport: (e4) => {
2093
1949
  ae2.current?.getGridElement()?.scrollTo(e4);
2094
1950
  }, showHorizontalScrollbar: Ze2 || Xe2, showVerticalScrollbar: et2, renderScrollbarHorizontal: st2, renderScrollbarVertical: Ft2, children: Ht2 });
2095
1951
  return lt2 || 0 === rt2 || (e3 = L(H, { children: [e3, it2] })), O2 ? O2(e3) : e3;
2096
- }, [Ze2, Xe2, st2, et2, Ee2, lt2, Ht2, it2, ne2, O2, Re2]), Wt2 = V(() => z(Fe, { arrow: true, disableInteractive: true, open: Le2, title: z(J, { variant: "subtitle2", component: "div", children: ze2 }), placement: $e2, slotProps: { transition: { timeout: { exit: 0 } }, popper: { popperRef: Ae2, sx: { "& .MuiTooltip-tooltip": { padding: "2px 6px", "& .MuiTooltip-arrow": { display: Le2 ? "visible" : "none" } } }, anchorEl: { getBoundingClientRect: () => new DOMRect(Ve2.x, Ve2.y, Ve2.width, Ve2.height) }, modifiers: [{ name: "offset", options: { offset: [0, 0] } }] } }, children: z(Q, {}) }), [Le2, ze2, $e2, Ve2, Ae2]), $t2 = V(() => ({ boxSizing: "border-box", background: (e3) => "dark" !== e3.palette.mode ? De2.header.fill : e3.palette.background.paper, "& *": { ...Je(ne2), fontWeight: 400 }, "& .viewport-overlay": { borderRight: `solid ${tt2} 1px` }, ...r2 }), [r2, De2]), Ot2 = V(() => z(Q, { sx: { marginBottom: (e3) => e3.spacing(0.75) } }), []), Vt2 = V(() => ({ flex: "1 1 100%", width: "100%", display: "flex", flexDirection: "column", opacity: me2 ? void 0 : 0, "--sxl-app-color-high-contrast": ne2.palette.primary.main, "--sxl-app-color-primary": ne2.palette.primary.main, "--sxl-app-color-primary-dark": ne2.palette.primary.dark, "--sxl-app-color-primary-light": ne2.palette.primary.light, "--sxl-app-color-info": ne2.palette.info.main, "--sxl-app-color-info-dark": ne2.palette.info.dark, "--sxl-app-color-info-light": ne2.palette.info.light, "--sxl-app-color-secondary": ne2.palette.secondary.main, "--sxl-app-color-secondary-dark": ne2.palette.secondary.dark, "--sxl-app-color-secondary-light": ne2.palette.secondary.light, "--sxl-app-color-success": ne2.palette.success.main, "--sxl-app-color-success-dark": ne2.palette.success.dark, "--sxl-app-color-success-light": ne2.palette.success.light, "--sxl-app-color-warning": ne2.palette.warning.main, "--sxl-app-color-warning-dark": ne2.palette.warning.dark, "--sxl-app-color-warning-light": ne2.palette.warning.light, "--sxl-app-color-error": ne2.palette.error.main, "--sxl-app-color-error-dark": ne2.palette.error.dark, "--sxl-app-color-error-light": ne2.palette.error.light, "--sxl-app-color-text": ne2.palette.text.primary, "--sxl-app-color-text-secondary": ne2.palette.text.secondary, "--sxl-app-color-text-disabled": ne2.palette.text.disabled, "--sxl-app-color-background": ne2.palette.background.paper, "--sxl-app-color-button-surface": ne2.palette.grey[600], "--sxl-app-color-shadow": ne2.palette.action.focus, "--sxl-app-color-grey": ne2.palette.grey[500], "--sxl-app-filter-dark-invert": De2.body.darkMode && te2 ? "hue-rotate(180deg) invert(1) brightness(95%)" : "none", "--sxl-app-image-background": De2.body.darkMode ? `linear-gradient(${mt("#fff", pt(5))}, ${mt("#fff", pt(5))})` : void 0 }), [De2, ne2, me2]), Kt2 = V(() => gt(on), []);
2097
- return L(Q, { className: gt("sheetxl-workbook", sa, { "Mui-focusVisible": re2 }, Hn, l2), sx: $t2, style: r2, ...oe2, ref: he2, onFocus: (e3) => {
1952
+ }, [Ze2, Xe2, st2, et2, Ee2, lt2, Ht2, it2, ne2, O2, Re2]), Wt2 = V(() => z(Fe, { arrow: true, disableInteractive: true, open: Le2, title: z(J, { variant: "subtitle2", component: "div", children: ze2 }), placement: $e2, slotProps: { transition: { timeout: { exit: 0 } }, popper: { popperRef: Ae2, sx: { "& .MuiTooltip-tooltip": { padding: "2px 6px", "& .MuiTooltip-arrow": { display: Le2 ? "visible" : "none" } } }, anchorEl: { getBoundingClientRect: () => new DOMRect(Ve2.x, Ve2.y, Ve2.width, Ve2.height) }, modifiers: [{ name: "offset", options: { offset: [0, 0] } }] } }, children: z(Q, {}) }), [Le2, ze2, $e2, Ve2, Ae2]), $t2 = V(() => ({ boxSizing: "border-box", background: (e3) => "dark" !== e3.palette.mode ? De2.header.fill : e3.palette.background.paper, "& *": { ...Ye(ne2), fontWeight: 400 }, "& .viewport-overlay": { borderRight: `solid ${tt2} 1px` }, ...r2 }), [r2, De2]), Ot2 = V(() => z(Q, { sx: { marginBottom: (e3) => e3.spacing(0.75) } }), []), Vt2 = V(() => ({ flex: "1 1 100%", width: "100%", display: "flex", flexDirection: "column", opacity: me2 ? void 0 : 0, "--sxl-app-color-high-contrast": ne2.palette.primary.main, "--sxl-app-color-primary": ne2.palette.primary.main, "--sxl-app-color-primary-dark": ne2.palette.primary.dark, "--sxl-app-color-primary-light": ne2.palette.primary.light, "--sxl-app-color-info": ne2.palette.info.main, "--sxl-app-color-info-dark": ne2.palette.info.dark, "--sxl-app-color-info-light": ne2.palette.info.light, "--sxl-app-color-secondary": ne2.palette.secondary.main, "--sxl-app-color-secondary-dark": ne2.palette.secondary.dark, "--sxl-app-color-secondary-light": ne2.palette.secondary.light, "--sxl-app-color-success": ne2.palette.success.main, "--sxl-app-color-success-dark": ne2.palette.success.dark, "--sxl-app-color-success-light": ne2.palette.success.light, "--sxl-app-color-warning": ne2.palette.warning.main, "--sxl-app-color-warning-dark": ne2.palette.warning.dark, "--sxl-app-color-warning-light": ne2.palette.warning.light, "--sxl-app-color-error": ne2.palette.error.main, "--sxl-app-color-error-dark": ne2.palette.error.dark, "--sxl-app-color-error-light": ne2.palette.error.light, "--sxl-app-color-text": ne2.palette.text.primary, "--sxl-app-color-text-secondary": ne2.palette.text.secondary, "--sxl-app-color-text-disabled": ne2.palette.text.disabled, "--sxl-app-color-background": ne2.palette.background.paper, "--sxl-app-color-button-surface": ne2.palette.grey[600], "--sxl-app-color-shadow": ne2.palette.action.focus, "--sxl-app-color-grey": ne2.palette.grey[500], "--sxl-app-filter-dark-invert": De2.body.darkMode && te2 ? "hue-rotate(180deg) invert(1) brightness(95%)" : "none", "--sxl-app-image-background": De2.body.darkMode ? `linear-gradient(${mt("#fff", pt(5))}, ${mt("#fff", pt(5))})` : void 0 }), [De2, ne2, me2]), Kt2 = V(() => gt(en), []);
1953
+ return L(Q, { className: gt("sheetxl-workbook", Xn, { "Mui-focusVisible": re2 }, vn, l2), sx: $t2, style: r2, ...oe2, ref: he2, onFocus: (e3) => {
2098
1954
  le2(true), kt2(), i2?.(e3);
2099
1955
  }, onBlur: (e3) => {
2100
1956
  le2(false), s2?.(e3);
2101
1957
  }, onKeyDown: (e3) => {
2102
1958
  Ct2(e3), d2?.(e3);
2103
- }, children: [L("div", { className: Kt2, style: Vt2, children: [nt2, Ye2 ? Pt2 : null, Ot2, zt2, ot2, Wt2, bt2] }), Bt2] });
1959
+ }, children: [L("div", { className: Kt2, style: Vt2, children: [nt2, Qe2 ? Pt2 : null, Ot2, zt2, ot2, Wt2, bt2] }), Bt2] });
2104
1960
  }));
2105
- Da.displayName = "WorkbookElement";
2106
- const Fa = (e2 = false, t2 = false) => t2 ? null : { "& input:not(:focus):not(:hover)": { color: (e3) => e3.palette.text.secondary }, backgroundColor: (e3) => mt(e3.palette.background.paper, 0.6), borderRadius: (e3) => `${e3.shape.borderRadius}px`, border: (t3) => `solid ${e2 ? t3.palette.divider : "transparent"} 1px`, "&.Mui-disabled": { border: (t3) => `solid ${e2 ? t3.palette.divider : "transparent"} 1px` }, "&:focus-within:not([disabled])": { backgroundColor: (e3) => e3.palette.background.paper }, "&:hover:not([disabled])": { border: (t3) => `solid ${e2 ? t3.palette.text?.primary : t3.palette.divider} 1px`, backgroundColor: null }, "&.Mui-focusVisible": { outline: (e3) => `solid ${e3.palette.primary.main} 1px !important`, border: (e3) => `1px solid ${e3.palette?.primary?.main} !important` } }, Ma = $(O((e2, t2) => {
1961
+ ga.displayName = "WorkbookElement";
1962
+ const ha = (e2 = false, t2 = false) => t2 ? null : { "& input:not(:focus):not(:hover)": { color: (e3) => e3.palette.text.secondary }, backgroundColor: (e3) => mt(e3.palette.background.paper, 0.6), borderRadius: (e3) => `${e3.shape.borderRadius}px`, border: (t3) => `solid ${e2 ? t3.palette.divider : "transparent"} 1px`, "&.Mui-disabled": { border: (t3) => `solid ${e2 ? t3.palette.divider : "transparent"} 1px` }, "&:focus-within:not([disabled])": { backgroundColor: (e3) => e3.palette.background.paper }, "&:hover:not([disabled])": { border: (t3) => `solid ${e2 ? t3.palette.text?.primary : t3.palette.divider} 1px`, backgroundColor: null }, "&.Mui-focusVisible": { outline: (e3) => `solid ${e3.palette.primary.main} 1px !important`, border: (e3) => `1px solid ${e3.palette?.primary?.main} !important` } }, fa = $(O((e2, t2) => {
2107
1963
  const { sx: o2, workbook: n2, title: a2 = "", placeHolder: r2 = "Untitled", onTitleChange: l2, readOnly: i2 = false, hidden: s2, ...d2 } = e2, [c2, m2] = j(false), [p2, u2] = j(false), [g2, h2] = j(a2 ?? ""), [f2, x2] = j(""), [b2, { width: y2 }] = jt(), [w2, { width: S2 }] = jt(), [C2, k2] = j(false), v2 = q(null), T2 = q(null), R2 = Rt(t2, () => ({ requestWorkbookTitle: (e3 = null, t3) => {
2108
1964
  T2.current = { onAccept: e3, requestReason: t3?.requestReason }, t3?.selectAll && v2.current?.select(), v2.current?.focus(t3);
2109
1965
  }, focus: (e3) => {
@@ -2117,7 +1973,7 @@ const Fa = (e2 = false, t2 = false) => t2 ? null : { "& input:not(:focus):not(:h
2117
1973
  }, 300)();
2118
1974
  }, [C2, y2]), _(() => {
2119
1975
  u2(g2 && !eo.isValidWindowsFilename(g2));
2120
- }, [g2]), s2 ? null : z(Q, { sx: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", opacity: C2 ? "0" : "1", transition: C2 ? void 0 : "opacity .25s ease-in", "& .tooltip-wrapper": { maxWidth: "100%" } }, ref: Vt([R2, w2, t2]), ...d2, children: z(Le, { label: T2.current?.requestReason ?? "Workbook Name", children: L(Q, { className: gt({ "Mui-focusVisible": c2 }), sx: { visibility: 0 === y2 ? "hidden" : "visible", display: "block", maxWidth: "100%", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", paddingLeft: "12px", paddingRight: "12px", marginLeft: "2px", marginRight: "2px", paddingTop: "2px", paddingBottom: "1px", ...Fa(true, i2), ...o2 }, children: [i2 ? z(J, { variant: "subtitle1", component: "div", sx: { whiteSpace: "nowrap", fontStyle: g2 !== f2 ? "italic" : void 0, userSelect: "none", textOverflow: "ellipsis", lineHeight: "1.4375em", border: "transparent 1px solid", color: (e3) => p2 ? e3.palette.error.dark : void 0 }, children: a2 ?? r2 }) : z(re, { sx: { width: `${Math.min(y2 + 3, Math.max(S2, R2.current?.getBoundingClientRect()?.width))}px`, overflow: "hidden", whiteSpace: "nowrap", fontWeight: "600", maxWidth: "100%", border: "none", padding: "0px", margin: "0px", color: (e3) => p2 ? e3.palette.error.dark : void 0, fontStyle: g2 !== f2 ? "italic" : void 0, "& input": { paddingTop: "0px", paddingBottom: "0px", textOverflow: "ellipsis" } }, disableUnderline: true, fullWidth: false, multiline: false, readOnly: i2, spellCheck: false, placeholder: r2, onFocus: (e3) => {
1976
+ }, [g2]), s2 ? null : z(Q, { sx: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", opacity: C2 ? "0" : "1", transition: C2 ? void 0 : "opacity .25s ease-in", "& .tooltip-wrapper": { maxWidth: "100%" } }, ref: Vt([R2, w2, t2]), ...d2, children: z(Le, { label: T2.current?.requestReason ?? "Workbook Name", children: L(Q, { className: gt({ "Mui-focusVisible": c2 }), sx: { visibility: 0 === y2 ? "hidden" : "visible", display: "block", maxWidth: "100%", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", paddingLeft: "12px", paddingRight: "12px", marginLeft: "2px", marginRight: "2px", paddingTop: "2px", paddingBottom: "1px", ...ha(true, i2), ...o2 }, children: [i2 ? z(J, { variant: "subtitle1", component: "div", sx: { whiteSpace: "nowrap", fontStyle: g2 !== f2 ? "italic" : void 0, userSelect: "none", textOverflow: "ellipsis", lineHeight: "1.4375em", border: "transparent 1px solid", color: (e3) => p2 ? e3.palette.error.dark : void 0 }, children: a2 ?? r2 }) : z(re, { sx: { width: `${Math.min(y2 + 3, Math.max(S2, R2.current?.getBoundingClientRect()?.width))}px`, overflow: "hidden", whiteSpace: "nowrap", fontWeight: "600", maxWidth: "100%", border: "none", padding: "0px", margin: "0px", color: (e3) => p2 ? e3.palette.error.dark : void 0, fontStyle: g2 !== f2 ? "italic" : void 0, "& input": { paddingTop: "0px", paddingBottom: "0px", textOverflow: "ellipsis" } }, disableUnderline: true, fullWidth: false, multiline: false, readOnly: i2, spellCheck: false, placeholder: r2, onFocus: (e3) => {
2121
1977
  m2(true), e3.target?.select();
2122
1978
  }, inputProps: { name: "input-workbook-title", autoComplete: "off", ref: v2 }, onBlur: () => {
2123
1979
  m2(false), p2 ? h2(f2) : (g2 !== f2 && (l2?.(g2), g2 && T2.current?.onAccept?.(g2, "blur")), T2.current = null);
@@ -2130,75 +1986,219 @@ const Fa = (e2 = false, t2 = false) => t2 ? null : { "& input:not(:focus):not(:h
2130
1986
  }, 0)), T2.current = null, e3.stopPropagation(), e3.preventDefault());
2131
1987
  }, value: g2 }), z(Q, { ref: b2, sx: { position: "absolute", visibility: "hidden", top: "-9999px", fontWeight: "600 !important", whiteSpace: "pre", fontStyle: g2 !== f2 ? "italic" : void 0, fontFamily: (e3) => e3.typography.fontFamily, letterSpacing: "0.00938em" }, children: g2 || r2 })] }) }) });
2132
1988
  }));
2133
- Ma.displayName = "WorkbookTitle";
2134
- const Na = $(O((e2, t2) => {
2135
- const { title: o2, commands: n2, className: a2, ...r2 } = e2, l2 = vt(), [i2, s2] = j(false), [d2, c2] = j(false), m2 = q(null), [p2, u2] = Z((e3) => e3 + 1, 0), [g2, { width: h2 }] = jt(), f2 = ht(n2, ["editTable"])[0].context(), x2 = f2.table(), [b2, y2] = j(() => x2 ? f2.getNames().getRanges(x2.getRange()) : null), S2 = V(() => x2?.getName() ?? "", [x2]);
2136
- w(f2.table(), { onAnchorCoordsChange(e3) {
2137
- y2(f2.getNames().getRanges(e3.getRange()));
2138
- }, onProtectedChange(e3) {
2139
- u2();
2140
- } });
2141
- const C2 = xt((e3) => {
2142
- f2?.table().setName(e3);
2143
- }, [f2]), k2 = xt((e3) => {
2144
- f2?.table().resize(e3.at(0));
2145
- }, [f2]);
2146
- let v2 = null;
2147
- return f2.table() || (v2 = z(J, { component: "div", style: { top: "0", left: "0", width: "100%", height: "100%", display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center" }, children: "No table selected" })), z(pe, { square: true, onFocus: () => s2(true), onBlur: (e3) => {
2148
- m2?.current?.contains(e3.relatedTarget) || s2(false);
2149
- }, ref: Vt([m2, g2, t2]), sx: { display: "flex", flexDirection: "column", flex: "1 1 auto", width: "100%", height: "100%", overflow: "auto", paddingLeft: (e3) => e3.spacing(1.5), paddingRight: (e3) => e3.spacing(1.5), paddingTop: (e3) => e3.spacing(1.5), paddingBottom: (e3) => e3.spacing(1.5), boxSizing: "border-box" }, className: gt("sxl-table-details-panel", a2, { "sxl-has-focus": i2 }), ...r2, children: v2 || L(Q, { sx: { display: "flex", flex: "1 1 auto", flexDirection: "column", transition: "opacity 60ms", opacity: f2.table() ? 1 : 0 }, children: [z(Q, { sx: { containerType: "inline-size", display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingTop: (e3) => e3.spacing(2), paddingLeft: (e3) => e3.spacing(2), paddingRight: (e3) => e3.spacing(2) }, children: L(Q, { className: mn, children: [z(un, { formName: "name", defaultInput: S2, value: x2?.getName() ?? "No table", onChangeInput: C2, onValidate: (e3) => {
2150
- x2 && x2.getName().toLowerCase() === e3.toLowerCase() || f2?.getNames().validateName(e3);
2151
- }, disabled: x2?.isProtected() ?? true, onFocus: (e3) => {
2152
- d2 || e3.target?.select(), c2(true);
2153
- } }), z(hn, { formName: "range", value: b2, onChangeInput: k2, resolvedAddress: f2.getNames().getRanges.bind(f2.getNames()), disabled: x2?.isProtected() ?? true, onFocus: (e3) => {
2154
- d2 || e3.target?.select(), c2(true);
2155
- } })] }) }), L(Q, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", containerType: "inline-size", gap: (e3) => e3.spacing(0.5), marginTop: (e3) => e3.spacing(1) }, children: [z(ve, { orientation: "horizontal", sx: { marginTop: (e3) => e3.spacing(1.5), marginBottom: (e3) => e3.spacing(0.75) } }), z(Q, { sx: { display: "flex", flex: "1 1 100%", alignItems: "center", justifyContent: "start", flexDirection: "column", marginTop: (e3) => e3.spacing(1), marginBottom: (e3) => e3.spacing(1) }, children: L("div", { style: { display: "flex", alignItems: "start", gap: "2px" }, children: [z(an, { table: x2, styles: f2.styles(), bodyStyle: f2.bodyStyle(), cellHeight: 30, isLive: true }), z(Ia, { command: n2.getCommand("formatTableStyle"), commands: n2, disabledQuickKey: true })] }) }), z(ve, { orientation: "horizontal", sx: { marginTop: (e3) => e3.spacing(1.5), marginBottom: (e3) => e3.spacing(0.75) } }), z(cn, { disabled: x2?.isProtected(), styleOptions: x2?.getStyleOptions() ?? null, onStyleOptionsChange: (e3) => {
2156
- x2.updateStyleOptions(e3);
2157
- }, showHeaderRow: x2?.getShowHeaders(), onShowHeaderRowChange: (e3) => {
2158
- try {
2159
- x2.setShowHeaders(e3);
2160
- } catch (e4) {
2161
- l2.showError(e4);
1989
+ fa.displayName = "WorkbookTitle";
1990
+ const xa = $(O((t2, o2) => {
1991
+ const { command: n2, commandHook: a2, onSelectColor: r2, disabled: l2 = false, variant: i2 = ft.Toolbar, quickColor: s2, propsPanel: d2, isSplit: c2 = false, darkMode: m2, icon: p2, ...u2 } = t2, { autoColor: g2, schemeLookup: h2, recentColors: f2, ...x2 } = d2;
1992
+ if (u2.selectedColor) throw new Error("Command selectedColor will be used. Do not try to provide one as a direct argument");
1993
+ St(n2);
1994
+ const b2 = n2?.getContext();
1995
+ let y2 = s2 ?? b2?.quickColor;
1996
+ c2 && !y2 && (y2 = new e("transparent"));
1997
+ const w2 = g2 ?? b2?.autoColor, S2 = h2 ?? b2?.schemeLookup, C2 = f2 ?? b2?.recentColors, k2 = m2 ?? b2?.darkMode, v2 = V(() => ({ autoColor: w2, schemeLookup: S2, recentColors: C2, darkMode: k2, ...x2 }), [w2, S2, C2, k2]), T2 = xt((e2, t3) => {
1998
+ e2 && t3 && b2?.addRecentColor && b2.addRecentColor(e2), b2?.onColorSelect && b2.onColorSelect(e2), r2?.(e2, t3), n2?.execute(e2, a2);
1999
+ }, [n2, r2, a2, b2]), R2 = K((e2, t3) => {
2000
+ const { children: o3, title: a3, ...r3 } = e2;
2001
+ let s3 = e2.children;
2002
+ return (n2?.disabled() || l2) && (s3 = z("div", { children: s3 })), z(ze, { command: n2, placement: i2 === ft.Toolbar ? "bottom-start" : "right-start", disabled: t3, ...r3, children: s3 });
2003
+ }, [n2, l2]);
2004
+ return z(ko, { ref: o2, propsPanel: v2, icon: p2 ?? n2?.getIcon(b2), quickColor: y2, selectedColor: n2?.getState(), onSelectColor: T2, variant: i2 === ft.Menuitem ? Ne.Menuitem : Ne.Toolbar, createTooltip: R2, label: n2?.getLabel(), disabled: l2 || !n2 || n2.disabled(), compareRGB: true, darkMode: k2, ...u2 });
2005
+ }));
2006
+ xa.displayName = "ColorCommandButton";
2007
+ const ba = $(O((e2, t2) => {
2008
+ const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, parentFloat: l2, ...i2 } = e2, s2 = ht(o2, ["gridlinesToggle", "sheetViewToggleGridlinesColumns", "sheetViewToggleGridlinesRows"]), d2 = K((e3, t3) => {
2009
+ const o3 = { variant: ft.Menuitem, parentFloat: e3.floatReference, commandHook: n2, scope: a2, disabled: r2 }, l3 = L(H, { children: [z(ke, { ...o3, command: t3.getCommand("gridlinesToggle") }), z(xa, { ...o3, command: t3.getCommand("sheetViewFormatGridlinesColor"), icon: z(wt, { iconKey: "stroke.colored" }), propsPanel: { disableAlpha: true } }), z(ve, { orientation: "horizontal" }), z(ke, { ...o3, command: t3.getCommand("sheetViewToggleGridlinesColumns") }), z(ke, { ...o3, command: t3.getCommand("sheetViewToggleGridlinesRows") })] });
2010
+ return Te({ ...e3, children: l3 });
2011
+ }, [r2, n2]);
2012
+ return z(Re, { ref: t2, parentFloat: l2, quickCommand: s2[0]?.getKey(), commands: o2, commandHook: n2, createPopupPanel: d2, label: "Gridlines", tooltip: "Configure how the lines between rows and columns in the sheet are displayed.", icon: z(Qe, { command: s2[0], scope: "view" }), ...i2 });
2013
+ })), ya = $(O((e2, t2) => z(We, { ref: t2, ...e2, popupCommandKeys: ["sortAscending", "sortDescending", "sortCustom", null, "autoFilterToggle", "autoFilterClear", "autoFilterReapply"], scope: "sortFilter", label: "Sort & Filter", tooltip: L(H, { children: [z("span", { children: "Organize your data so it's easier to analyze." }), z("br", {}), z("span", { children: "You can sort the selected data from smallest to largest or largest to smallest." })] }), icon: "SortFilter" }))), wa = $(O((e2, t2) => {
2014
+ const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, ...l2 } = e2, i2 = K((e3, t3) => {
2015
+ const o3 = { variant: ft.Menuitem, commandHook: n2, scope: "sort", disabled: r2 }, a3 = L(H, { children: [z(ke, { ...o3, scope: "filter", command: t3.getCommand("autoFilterToggle") }), z(ke, { ...o3, scope: "filter", command: t3.getCommand("autoFilterClear") }), z(ke, { ...o3, scope: "filter", command: t3.getCommand("autoFilterReapply") })] });
2016
+ return Te({ ...e3, children: a3 });
2017
+ }, [r2, n2, a2]);
2018
+ return z(Re, { ref: t2, commands: o2, commandHook: n2, scope: a2, disabled: r2, label: "Filter", tooltip: L(H, { children: [z("span", { children: "Organize your data so it's easier to analyze." }), z("br", {}), z("span", { children: "You can sort the selected data from smallest to largest or largest to smallest." })] }), createPopupPanel: i2, icon: "FilterToggle", ...l2 });
2019
+ })), Sa = $(O((e2, t2) => {
2020
+ const { quickCommand: o2, icon: n2, isRedo: a2 = false, nestRedo: r2 = true, undoManager: l2, scope: i2, sx: s2, disabled: d2, commands: c2, ...m2 } = e2, p2 = [o2];
2021
+ !a2 && r2 && p2.push("redo");
2022
+ const u2 = ht(c2, p2), g2 = u2[0], h2 = u2[1], f2 = l2 ?? g2?.getContext?.()?.undoManager;
2023
+ let x2 = d2;
2024
+ d2 || (x2 = !g2 || g2.disabled(), h2 && !h2.disabled() && (x2 = false));
2025
+ const [b2, y2] = j(0), w2 = K((e3, t3) => {
2026
+ let o3 = 0 === b2 ? "Cancel" : `${g2.getLabel()} ${b2} Action${1 === b2 ? "" : "s"}`, n3 = false;
2027
+ f2 || (n3 = true), n3 || (n3 = r2 ? !f2.hasRedo() && !f2.hasUndo() : !f2.hasRedo());
2028
+ const l3 = (e4) => {
2029
+ g2.execute(e4);
2030
+ }, i3 = z(Pe, { sx: { display: "flex", flex: "none", alignItems: "center", justifyContent: "center", padding: n3 ? void 0 : "0 0", minWidth: "180px" }, icon: z(wt, {}), onMouseEnter: () => {
2031
+ y2(0);
2032
+ }, onMouseDown: (e4) => {
2033
+ 0 === e4.button && e4.preventDefault();
2034
+ }, onMouseUp: (e4) => {
2035
+ 0 === e4.button && l3(b2);
2036
+ }, onKeyDown: (e4) => {
2037
+ e4.isDefaultPrevented() || e4.keyCode !== yt.Enter && e4.keyCode !== yt.Space || l3(b2);
2038
+ }, children: z(J, { component: "div", variant: "caption", sx: { fontSize: "0.875rem", letterSpacing: "0.01071em" }, children: o3 }) });
2039
+ if (n3) return i3;
2040
+ const s3 = a2 ? f2?.getRedoDescriptions() : f2?.getUndoDescriptions(), d3 = [];
2041
+ for (let e4 = 0; e4 < s3.length; e4++) {
2042
+ const t4 = s3[e4];
2043
+ d3.push(z(Pe, { sx: { maxWidth: "360px", display: "flex" }, disabled: x2, selected: e4 < b2, icon: z(wt, {}), onMouseEnter: () => {
2044
+ y2(e4 + 1);
2045
+ }, onMouseDown: (e5) => {
2046
+ 0 === e5.button && e5.preventDefault();
2047
+ }, onMouseUp: (t5) => {
2048
+ 0 === t5.button && l3(e4 + 1);
2049
+ }, onKeyDown: (t5) => {
2050
+ t5.isDefaultPrevented() || t5.keyCode !== yt.Enter && t5.keyCode !== yt.Space || l3(e4 + 1);
2051
+ }, children: L(Q, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "row", alignItems: "center", overflow: "hidden" }, children: [z(J, { component: "div", children: t4 }), z(wt, {})] }) }, `action:${e4}`));
2162
2052
  }
2163
- }, showTotalRow: x2?.getShowTotals(), onShowTotalRowChange: (e3) => {
2164
- try {
2165
- x2.setShowTotals(e3);
2166
- } catch (e4) {
2167
- l2.showError(e4);
2053
+ let c3 = null;
2054
+ if (!a2 && r2) {
2055
+ const o4 = { scope: "undo", commands: t3, variant: ft.Menuitem, parentFloat: e3.floatReference };
2056
+ c3 = [], c3.push(z(Sa, { ...o4, quickCommand: "redo", isRedo: true }, "nested:redo")), f2.hasRedo() && f2.hasUndo() && c3.push(z(ve, { orientation: "horizontal" }, "action:redo-div"));
2168
2057
  }
2169
- }, showFilterButton: x2?.getFilter() ? x2.getShowFilterButton() : null, onShowFilterButtonChange: (e3) => {
2170
- try {
2171
- x2.setShowFilterButton(e3);
2172
- } catch (e4) {
2173
- l2.showError(e4);
2058
+ const m3 = L(Q, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, onClick: () => {
2059
+ e3.closeFloatAll();
2060
+ }, onMouseLeave: () => {
2061
+ y2(0);
2062
+ }, children: [c3, z(Q, { sx: { overflow: "auto", flex: "1 1 100%" }, children: d3 }), z(ve, { orientation: "horizontal" }), i3] });
2063
+ return Te({ ...e3, children: m3 });
2064
+ }, [g2?.getContext(), g2?.getState(), i2, f2, b2, x2]);
2065
+ return z(Re, { ref: t2, commands: c2, quickCommand: o2, scope: i2, disabled: x2, label: g2?.getLabel() ?? (a2 ? "Redo" : "Undo"), tooltip: z(H, { children: z("span", { children: `${g2?.getLabel() ?? "No"} last actions.` }) }), createPopupPanel: w2, icon: n2 ?? (a2 ? "Redo" : "Undo"), selected: false, ...m2 });
2066
+ })), Ca = g.getFontList(), ka = /* @__PURE__ */ new Map();
2067
+ for (let e2 = 0; e2 < Ca.length; e2++) ka.set(Ca[e2].fontRef.getFamily(), Ca[e2]);
2068
+ const va = $(O((e2, t2) => {
2069
+ const { command: o2, commandHook: n2, sx: a2, disabled: r2 = false, parentFloat: i2, icon: s2, label: d2, ...c2 } = e2;
2070
+ St(o2);
2071
+ const m2 = o2?.getState(), p2 = ct(), u2 = V(() => `${l.getSharedMeasurer()("Times New Roman", Math.round(p2.typography.fontSize), p2.typography.fontFamily).width}px`, [p2]), g2 = K((e3) => {
2072
+ const t3 = (e4) => {
2073
+ o2?.execute(e4, n2);
2074
+ }, a3 = [];
2075
+ for (let e4 = 0; e4 < Ca.length; e4++) a3.push({ key: Ca[e4].fontRef.getFamily(), description: Ca[e4].fontRef.getFamily() });
2076
+ ka.get(m2) || a3.unshift({ key: m2, description: m2 });
2077
+ const l2 = [];
2078
+ for (let e4 = 0; e4 < a3.length; e4++) {
2079
+ const n3 = a3[e4].key === m2;
2080
+ l2.push(z(Pe, { sx: { display: "flex", paddingTop: "4px", paddingBottom: "4px" }, selected: n3, disabled: r2 || !o2 || o2.disabled(), icon: n3 ? z($e, {}) : void 0, onMouseUp: (o3) => {
2081
+ 0 === o3.button && t3(a3[e4].key);
2082
+ }, onMouseDown: (e5) => {
2083
+ 0 === e5.button && e5.preventDefault();
2084
+ }, onKeyDown: (o3) => {
2085
+ o3.keyCode !== yt.Enter && o3.keyCode !== yt.Space || t3(a3[e4].key);
2086
+ }, children: z(Q, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, children: z(J, { component: "div", sx: { whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", fontFamily: () => a3[e4]?.key }, children: a3[e4].description }) }) }, e4 + "" + a3[e4].key));
2174
2087
  }
2175
- } }), z(ve, { orientation: "horizontal" }), L(Q, { className: pn, children: [z(ke, { variant: ft.Menuitem, command: n2.getCommand("convertTableToRange"), commandState: x2 }), z(ke, { variant: ft.Menuitem, commandState: x2, command: n2.getCommand("deleteTable") })] })] })] }) });
2176
- })), Ba = (e2, t2) => {
2177
- const { model: o2, commands: n2, entryKey: a2, frame: r2, ...l2 } = e2;
2178
- return z(Na, { ref: t2, commands: n2, ...l2 });
2179
- }, Ea = () => {
2180
- Mt.register("plugin-table", { icons: {} }), v.registerTaskPane({ key: "tableDetails", getTitle: () => "Table Details", getIcon: () => "Table", renderTaskPane: Ba }, true);
2181
- }, Pa = $((e2) => {
2088
+ const i3 = z(Q, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%" }, ...c2, children: z(Q, { sx: { overflow: "auto", flex: "1 1 100%" }, children: l2 }) });
2089
+ return Te({ ...e3, children: i3 });
2090
+ }, [r2, o2?.getState()]);
2091
+ return z(Be, { ref: t2, sx: { ...a2 }, outlined: true, disabled: r2, parentFloat: i2, createPopupPanel: g2, createTooltip: ({ children: e3 }, t3) => z(Le, { label: o2?.getLabel(), description: o2?.getDescription(), disabled: t3, children: e3 }), icon: z(Q, { sx: { display: "flex", paddingLeft: "4px", paddingRight: "4px", fontSize: (e3) => `${Math.round(e3.typography.fontSize)}px`, fontFamily: (e3) => e3.typography.fontFamily, color: (e3) => e3.palette.text.secondary, width: u2 }, children: z(Q, { sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "pre" }, children: m2 }) }), ...c2 });
2092
+ })), Ta = $(O((e2, t2) => {
2093
+ const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, ...l2 } = e2, i2 = ht(o2, ["formatStrikeThroughToggle", "formatSuperscriptToggle", "formatSubscriptToggle"]), s2 = V(() => {
2094
+ const e3 = i2.length;
2095
+ for (let t3 = 0; t3 < e3; t3++) {
2096
+ const e4 = i2[t3];
2097
+ if (e4?.getState()) return e4;
2098
+ }
2099
+ return i2[0];
2100
+ }, [i2]), d2 = K((e3, t3) => {
2101
+ const o3 = { variant: ft.Menuitem, commandHook: n2, scope: "textEffects", disabled: r2 }, a3 = L(H, { children: [z(ke, { ...o3, command: t3.getCommand("formatStrikeThroughToggle") }), z(ke, { ...o3, command: t3.getCommand("formatSuperscriptToggle") }), z(ke, { ...o3, command: t3.getCommand("formatSubscriptToggle") })] });
2102
+ return Te({ ...e3, children: a3 });
2103
+ }, [r2, n2, a2]);
2104
+ return z(Re, { ref: t2, quickCommand: s2?.getKey(), commands: o2, commandHook: n2, createPopupPanel: d2, label: "Text Effects", tooltip: "Style your text to differentiate it.", icon: s2?.getIcon() ?? "TextStrike", ...l2 });
2105
+ })), Ra = $(O((e2, t2) => {
2106
+ const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, ...l2 } = e2, i2 = ht(o2, ["formatUnderlinedToggle", "formatUnderlinedDoubleToggle", "formatUnderlinedAccountingToggle", "formatUnderlinedAccountingDoubleToggle"]), s2 = V(() => {
2107
+ const e3 = i2.length;
2108
+ for (let t3 = 0; t3 < e3; t3++) if (i2[t3]?.getState()) return i2[t3];
2109
+ return i2[0];
2110
+ }, [i2]), d2 = K((e3, t3) => {
2111
+ const o3 = { variant: ft.Menuitem, commandHook: n2, scope: "underline", disabled: r2 }, a3 = L(H, { children: [z(ke, { ...o3, command: t3.getCommand("formatUnderlinedToggle") }), z(ke, { ...o3, command: t3.getCommand("formatUnderlinedDoubleToggle") }), z(ke, { ...o3, command: t3.getCommand("formatUnderlinedAccountingToggle"), commandHook: n2 }), z(ke, { ...o3, command: t3.getCommand("formatUnderlinedAccountingDoubleToggle") })] });
2112
+ return Te({ ...e3, children: a3 });
2113
+ }, [r2, n2, a2]);
2114
+ return z(Re, { ref: t2, quickCommand: s2?.getKey(), commands: o2, commandHook: n2, label: "Underline", tooltip: "All underline stylings.", createPopupPanel: d2, icon: s2?.getIcon() ?? "TextUnderline", ...l2 });
2115
+ })), Da = $(O((e2, t2) => {
2116
+ const { command: o2, commands: n2, commandHook: a2, scope: r2, includePasteAllInPopup: l2 = true, disabled: i2 = false, ...s2 } = e2, d2 = xt((e3, t3) => {
2117
+ const o3 = { variant: ft.Menuitem, commandHook: a2, scope: "paste", disabled: i2 }, n3 = [];
2118
+ return l2 && (n3.push(X(ke, { ...o3, command: t3.getCommand("paste"), key: "paste" })), n3.push(z(ve, { orientation: "horizontal" }, "paste-div"))), n3.push(X(ke, { ...o3, command: t3.getCommand("pasteValues"), key: "pasteValues" })), n3.push(X(ke, { ...o3, command: t3.getCommand("pasteFormats"), key: "pasteFormats" })), n3.push(X(ke, { ...o3, command: t3.getCommand("pasteFormulas"), key: "pasteFormulas" })), n3.push(X(ke, { ...o3, command: t3.getCommand("pasteTranspose"), key: "pasteTranspose" })), n3.push(X(ke, { ...o3, command: t3.getCommand("pasteLinks"), key: "pasteLinks" })), Te({ ...e3, children: n3 });
2119
+ }, [i2, a2, r2, l2]);
2120
+ return z(Re, { ref: t2, commands: n2, commandHook: a2, scope: r2, createPopupPanel: d2, label: "Paste", tooltip: "Add content to the clipboard to your document.", quickCommand: "paste", ...s2 });
2121
+ })), Fa = $(O((e2, t2) => {
2122
+ const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, parentFloat: l2, ...i2 } = e2, s2 = ht(o2, ["sheetViewToggleShowHeadings", "sheetViewToggleShowHeadingColumns", "sheetViewToggleShowHeadingRows"]), d2 = K((e3, t3) => {
2123
+ const o3 = { variant: ft.Menuitem, parentFloat: e3.floatReference, commandHook: n2, scope: a2, disabled: r2 }, l3 = L(H, { children: [z(ke, { ...o3, command: t3.getCommand("sheetViewToggleShowHeadings") }), z(ke, { ...o3, command: t3.getCommand("sheetViewToggleShowHeadingsNumeric") }), z(ve, { orientation: "horizontal" }), z(ke, { ...o3, command: t3.getCommand("sheetViewToggleShowHeadingColumns") }), z(ke, { ...o3, command: t3.getCommand("sheetViewToggleShowHeadingRows") })] });
2124
+ return Te({ ...e3, children: l3 });
2125
+ }, [r2, n2, a2]);
2126
+ return z(Re, { ref: t2, parentFloat: l2, quickCommand: s2[0]?.getKey(), commands: o2, commandHook: n2, createPopupPanel: d2, label: "Headings", tooltip: "Configure how the column and rows headings in the sheet are displayed.", icon: z(Qe, { command: s2[0], scope: "view" }), ...i2 });
2127
+ })), Ma = $(O((e2, t2) => {
2128
+ const { commands: o2, commandHook: n2, scope: a2 = "view", disabled: r2 = false, ...l2 } = e2, i2 = K((e3) => {
2129
+ const t3 = { variant: ft.Menuitem, parentFloat: e3.floatReference, commandHook: n2, scope: a2, disabled: r2 }, l3 = L(H, { children: [z(ke, { ...t3, command: o2.getCommand("workbookViewToggleShowFormulaBar") }), z(ke, { ...t3, command: o2.getCommand("workbookViewToggleShowTabs") }), z(ke, { ...t3, command: o2.getCommand("workbookViewToggleShowStatusBar") }), z(ve, { orientation: "horizontal" }), z(ke, { ...t3, command: o2.getCommand("workbookViewToggleShowHorizontalScrollBar") }), z(ke, { ...t3, command: o2.getCommand("workbookViewToggleShowVerticalScrollBar") })] });
2130
+ return Te({ ...e3, children: l3 });
2131
+ }, [r2, o2, n2, a2]);
2132
+ return z(Re, { ref: t2, commands: o2, disabled: r2, commandHook: n2, scope: a2, label: "Workbook View", tooltip: "Options to configure how the workbook is displayed.", createPopupPanel: i2, icon: z(Qe, { icon: null, label: "Workbook View" }), ...l2 });
2133
+ })), Na = $(O((e2, t2) => {
2134
+ const { value: o2, cellStyle: n2, styles: a2, createTemporaryCell: r2, bodyStyle: l2, sx: i2, propsBorder: s2, disabled: d2, ...c2 } = e2, m2 = V(() => r2({ value: o2, style: n2 }), [o2, n2, r2]), p2 = V(() => m2.getStyle(), [m2, l2]), u2 = V(() => p2.getFill().toCSS(l2?.darkMode ?? false), [p2]), g2 = p2.getInsets(), h2 = p2.getFont(), x2 = K(() => p2.getBorder(), [p2]);
2135
+ return z(Q, { ref: t2, sx: { width: "100px", height: "100%", textOverflow: "ellipsis", display: "flex", alignItems: "stretch", background: l2?.fill, filter: d2 ? "grayscale(0.4) opacity(0.8);" : "none", "& .fill": { flex: "1 1 100%", overflow: "hidden", ...u2 }, "& .text": { flex: "1 1 100%", ...h2.toCSS(l2?.darkMode ?? false, 1), boxSizing: "border-box", padding: `${g2.top}px ${g2.right}px ${g2.bottom}px ${g2.left}px`, margin: "0px", outline: "none", resize: "none", overflow: "hidden", textOverflow: "ellipsis", verticalAlign: "baseline", textDecoration: h2.toCSS().textDecoration, textAlign: f.toCSSHorizontalTextAlign(m2.getRenderHorizontalAlignment()), background: "transparent", maxHeight: "100%", whiteSpace: "pre", wordWrap: "break-word" }, ...i2 }, ...c2, children: z(y, { getBorderAt: x2, darkMode: l2?.darkMode ?? false, rowCount: 1, columnCount: 1, style: { height: "100%", width: "100%", ...s2?.style }, ...s2, children: z(Q, { className: "fill", sx: { paddingLeft: "4px", paddingRight: "4px", marginLeft: "-1px", marginTop: "-1px", marginRight: "-2px", marginBottom: "-2px", display: "flex", alignItems: "center" }, children: z(Q, { className: "text", children: o2 }) }) }) });
2136
+ })), Ba = $((e2) => {
2137
+ const { styles: t2, namedStyle: o2, selectedNamed: n2, hasContextMenu: a2 = true, bodyStyle: r2, onSelectNamed: l2, createTemporaryCell: i2, parentFloat: s2, commands: d2, disabled: c2, commandHook: m2, ...p2 } = e2, u2 = K((e3) => {
2138
+ const t3 = { variant: ft.Menuitem, commandHook: m2, context: "cellStyle" }, n3 = L(H, { children: [z(ke, { ...t3, style: { fontWeight: 550 }, command: d2.getCommand("formatCellStyle"), commandState: o2, disabled: c2 }), z(ve, { orientation: "horizontal" }), z(ke, { ...t3, command: d2.getCommand("modifyCellStyle"), commandState: { named: o2 } }), z(ke, { ...t3, command: d2.getCommand("deleteCellStyle"), commandState: o2, disabled: c2 || o2?.getName() === h.BuiltInName.Normal })] });
2139
+ return Te({ ...e3, children: z(Q, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: z(Q, { sx: { overflow: "auto", flex: "1 1 100%" }, children: n3 }) }) });
2140
+ }, []), g2 = o2?.getName() === n2?.getName();
2141
+ let f2 = z(He, { sx: { borderRadius: "2px", padding: "2px", margin: "0px 0px", display: "flex", border: (e3) => `solid ${g2 ? e3.palette.primary.dark : "transparent"} 1px` }, propsTooltip: { label: o2.getName(), placement: "bottom-start" }, disabled: c2, icon: null, onClick: () => {
2142
+ l2?.(o2);
2143
+ }, ...p2, children: z(Na, { value: o2.getName(), cellStyle: { named: o2.getName() }, styles: t2, createTemporaryCell: i2, bodyStyle: r2 }) }, o2.getName());
2144
+ return a2 && (f2 = z(Je, { label: o2.getName(), parentFloat: s2, createPopupPanel: u2, children: f2 })), f2;
2145
+ }), Ea = $(O((e2, t2) => {
2146
+ const { commands: o2, command: n2, commandHook: a2, selectedNamed: r2, onSelectNamed: i2, disabled: s2 = false, bodyStyle: d2, usePreviewIcon: c2 = true, ...m2 } = e2;
2147
+ St(n2);
2148
+ const p2 = n2?.getContext(), u2 = p2?.styles, g2 = r2 ?? p2?.named(), f2 = d2 ?? p2?.bodyStyle(), x2 = xt((e3) => {
2149
+ i2?.(e3), n2?.execute(e3, a2);
2150
+ }, [n2, i2, a2]), b2 = K((e3, t3) => {
2151
+ const n3 = { onSelectNamed: x2, styles: u2(), parentFloat: e3.floatReference }, r3 = u2().getCustomNamed(), l2 = /* @__PURE__ */ new Map(), i3 = [];
2152
+ for (let e4 = 0; e4 < r3.length; e4++) l2.set(r3[e4].getName(), r3[e4]), null === u2().getNamed(r3[e4].getName()).getBuiltInID() && i3.push(r3[e4].getName());
2153
+ const d3 = (e4) => {
2154
+ let t4 = l2.get(e4);
2155
+ return t4 || (t4 = u2().getNamed(e4)), !t4 || t4.isHidden() ? null : z(Ba, { namedStyle: t4, selectedNamed: g2, bodyStyle: p2.bodyStyle(), createTemporaryCell: p2.createTemporaryCell, commands: o2, commandHook: a2, ...n3 }, e4);
2156
+ }, c3 = (e4, t4, o3 = true) => {
2157
+ const n4 = [];
2158
+ for (let e5 = 0; e5 < t4.length; e5++) {
2159
+ const o4 = d3(t4[e5]);
2160
+ o4 && n4.push(o4);
2161
+ }
2162
+ return 0 === n4.length ? null : L(Q, { children: [o3 ? z(ve, { orientation: "horizontal" }) : null, z(Ve, { children: e4 }, e4 + "-header"), z(Q, { sx: { display: "flex", gap: "2px", marginBottom: "6px", flexWrap: "wrap", width: "646px", maxWidth: "100%" }, children: n4 }, e4 + "-presets")] }, e4);
2163
+ }, m3 = (e4, t4) => {
2164
+ const o3 = [];
2165
+ for (let e5 = 0; e5 < t4.length; e5++) {
2166
+ const n4 = d3(t4[e5]);
2167
+ n4 && o3.push(n4);
2168
+ }
2169
+ return 0 === o3.length ? null : z(Q, { sx: { display: "flex", gap: "2px", marginBottom: "6px", flexWrap: "wrap", flexDirection: "column", flex: "0 0 0%" }, children: o3 }, e4 + "-presets");
2170
+ }, f3 = [];
2171
+ f3.push(c3("Custom", i3, false)), f3.push(c3("Good, Bad and Neutral", [h.BuiltInName.Normal, h.BuiltInName.Bad, h.BuiltInName.Good, h.BuiltInName.Neutral], i3.length > 0)), f3.push(c3("Data and Model", [h.BuiltInName.Calculation, h.BuiltInName.CheckCell, h.BuiltInName.ExplanatoryText, h.BuiltInName.FollowedHyperlink, h.BuiltInName.Hyperlink, h.BuiltInName.Input, h.BuiltInName.LinkedCell, h.BuiltInName.Note, h.BuiltInName.Output, h.BuiltInName.WarningText])), f3.push(c3("Titles and Headings", [h.BuiltInName.Heading1, h.BuiltInName.Heading2, h.BuiltInName.Heading3, h.BuiltInName.Heading4, h.BuiltInName.Title, h.BuiltInName.Total]));
2172
+ let b3 = [];
2173
+ var y3, w3;
2174
+ return b3.push(m3("Accent 1", [h.BuiltInName.Accent1_20, h.BuiltInName.Accent1_40, h.BuiltInName.Accent1_60, h.BuiltInName.Accent1])), b3.push(m3("Accent 2", [h.BuiltInName.Accent2_20, h.BuiltInName.Accent2_40, h.BuiltInName.Accent2_60, h.BuiltInName.Accent2])), b3.push(m3("Accent 3", [h.BuiltInName.Accent3_20, h.BuiltInName.Accent3_40, h.BuiltInName.Accent3_60, h.BuiltInName.Accent3])), b3.push(m3("Accent 4", [h.BuiltInName.Accent4_20, h.BuiltInName.Accent4_40, h.BuiltInName.Accent4_60, h.BuiltInName.Accent4])), b3.push(m3("Accent 5", [h.BuiltInName.Accent5_20, h.BuiltInName.Accent5_40, h.BuiltInName.Accent5_60, h.BuiltInName.Accent5])), b3.push(m3("Accent 6", [h.BuiltInName.Accent6_20, h.BuiltInName.Accent6_40, h.BuiltInName.Accent6_60, h.BuiltInName.Accent6])), f3.push((y3 = "Themed Cell Styles", w3 = b3, L(Q, { children: [z(ve, { orientation: "horizontal" }), z(Ve, { children: y3 }, y3 + "-header"), z(Q, { sx: { display: "flex", gap: "2px", flexWrap: "wrap", alignItems: "start", flexDirection: "row" }, children: w3 }, y3 + "-presets")] }, y3))), f3.push(c3("Number Format", [h.BuiltInName.Comma, h.BuiltInName.Comma0, h.BuiltInName.Currency, h.BuiltInName.Currency0, h.BuiltInName.Percent])), L(Q, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", paddingTop: (e4) => `${e4.shape.borderRadius}px`, paddingBottom: (e4) => `${e4.shape.borderRadius}px` }, children: [z(Q, { onContextMenu: () => {
2175
+ }, sx: { display: "flex", flexDirection: "column", paddingTop: "6px", paddingBottom: "0px", paddingLeft: "16px", paddingRight: "16px" }, children: f3 }), z(ve, { orientation: "horizontal" }), z(ke, { variant: ft.Menuitem, commandState: g2, command: t3.getCommand("newCellStyle"), context: "styles", commandHook: a2, disabled: s2 })] });
2176
+ }, [g2, u2?.().getTheme(), f2]), y2 = xt((e3) => {
2177
+ const t3 = 18 / l.getDeviceScale(), o3 = p2?.createTemporaryCell(e3);
2178
+ return o3.getStyle().getFont().getSize() <= t3 ? o3 : o3.createTemporaryCell({ style: { font: { size: t3 } } });
2179
+ }, [p2?.createTemporaryCell]), w2 = s2 || !n2 || n2.disabled(), S2 = V(() => p2 && c2 ? z(Na, { value: g2?.getName() ?? "Custom", cellStyle: g2 ? { named: g2.getName() } : void 0, styles: p2.styles(), createTemporaryCell: y2, bodyStyle: p2.bodyStyle(), className: "outline-hover", disabled: w2, sx: { marginRight: "4px", borderRadius: "2px", minHeight: "calc(100% - 2px)", overflow: "hidden", outline: (e3) => `1px solid ${e3.palette.action.hover}` }, propsBorder: { style: { height: "calc(100% - 2px)", width: "calc(100% - 1px)" } } }) : n2?.getIcon(), [g2, f2, w2, n2]);
2180
+ return z(Re, { ref: t2, createPopupPanel: b2, outlined: c2, commands: o2, createTooltip: ({ children: e3 }, t3) => z(Le, { label: n2?.getLabel(), description: n2?.getDescription(), disabled: t3, children: e3 }), selected: false, disabled: w2, label: n2?.getLabel(), icon: S2, ...m2 });
2181
+ })), Pa = $((e2) => {
2182
2182
  const { table: t2, tableStyle: o2, selectedTableStyleName: n2, onSelectTableStyleName: a2, styles: r2, hasContextMenu: l2 = true, bodyStyle: i2, parentFloat: s2, commands: d2, disabled: c2, commandHook: m2, useCanvasPreview: p2 = true, canvas: u2, ...g2 } = e2, h2 = K((e3) => {
2183
2183
  const t3 = { variant: ft.Menuitem, commandHook: m2, context: "table" }, n3 = L(H, { children: [z(ke, { ...t3, command: d2.getCommand("formatTableStyleClearCellStyles"), commandState: o2, disabled: c2 }), z(ke, { ...t3, style: { fontWeight: 550 }, command: d2.getCommand("formatTableStyle"), commandState: { name: o2.getName() }, disabled: c2 }), z(ve, { orientation: "horizontal" }), z(ke, { ...t3, command: d2.getCommand("setDefaultTableStyle"), commandState: o2.getName(), disabled: c2 }), z(ve, { orientation: "horizontal" }), z(ke, { ...t3, command: d2.getCommand("deleteTableStyle"), commandState: o2?.getName(), disabled: c2 || !o2 || o2.isBuiltIn() })] });
2184
2184
  return Te({ ...e3, children: z(Q, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: z(Q, { sx: { overflow: "auto", flex: "1 1 100%" }, children: n3 }) }) });
2185
2185
  }, [d2]), f2 = o2?.getName() === n2, x2 = V(() => {
2186
2186
  const e3 = { table: t2, tableStyle: o2, styles: r2, bodyStyle: i2 };
2187
- return p2 ? z(ln, { canvas: u2, ...e3 }) : z(an, { ...e3 });
2187
+ return p2 ? z(an, { canvas: u2, ...e3 }) : z(on, { ...e3 });
2188
2188
  }, [t2, o2, r2, i2]);
2189
2189
  let b2 = z(He, { sx: { borderRadius: "2px", padding: "2px", margin: "0px 0px", display: "flex", border: (e3) => `solid ${f2 ? e3.palette.primary.dark : "transparent"} 1px` }, propsTooltip: { label: o2.getName() ?? "None", placement: "bottom-start" }, disabled: c2, icon: null, onClick: () => {
2190
2190
  a2?.(o2?.getName());
2191
2191
  }, ...g2, children: x2 }, o2.getName());
2192
- return l2 && (b2 = z(Ke, { label: t2.getStyleOptions().name, parentFloat: s2, createPopupPanel: h2, children: b2 })), b2;
2192
+ return l2 && (b2 = z(Je, { label: t2.getStyleOptions().name, parentFloat: s2, createPopupPanel: h2, children: b2 })), b2;
2193
2193
  }), Ia = $(O((e2, t2) => {
2194
- const { commands: o2, command: n2, commandHook: a2, selectedTable: r2, onSelectTableStyleName: l2, disabled: i2 = false, bodyStyle: s2, disabledQuickKey: d2 = false, usePreviewIcon: c2 = false, ...p2 } = e2;
2194
+ const { commands: o2, command: n2, commandHook: a2, selectedTable: r2, onSelectTableStyleName: l2, disabled: i2 = false, bodyStyle: s2, disabledQuickKey: c2 = false, usePreviewIcon: m2 = false, ...p2 } = e2;
2195
2195
  St(n2);
2196
- const u2 = n2?.context(), g2 = u2?.styles, h2 = r2 ?? u2?.table?.();
2196
+ const u2 = n2?.getContext(), g2 = u2?.styles, h2 = r2 ?? u2?.table?.();
2197
2197
  let f2 = "insertTable";
2198
2198
  h2 && (f2 = "editTable");
2199
2199
  const x2 = V(() => ((e3, t3) => {
2200
2200
  const o3 = { rowStart: 0, colStart: 0, rowEnd: 4, colEnd: 4 };
2201
- return new m({ initialAnchor: o3, styles: t3, json: { name: "PreviewTable", ref: o3, description: "PreviewTable", headerRowCount: 1, totalsRowCount: 0, styleOptions: e3 } });
2201
+ return new d({ initialAnchor: o3, styles: t3, json: { name: "PreviewTable", ref: o3, description: "PreviewTable", headerRowCount: 1, totalsRowCount: 0, styleOptions: e3 } });
2202
2202
  })(h2?.getStyleOptions(), g2?.()), [g2?.().getDefaultTableStyle(), h2?.getStyleOptions()]), b2 = h2 ?? x2, [y2, w2] = j(b2);
2203
2203
  _(() => {
2204
2204
  w2(b2);
@@ -2218,18 +2218,18 @@ const Na = $(O((e2, t2) => {
2218
2218
  o5 && a3.push(o5);
2219
2219
  }
2220
2220
  return 0 === a3.length ? null : L(Q, { children: [o4 ? z(ve, { orientation: "horizontal" }) : null, z(Ve, { children: e4 }, e4 + "-header"), z(Q, { sx: { display: "flex", gap: "2px", marginBottom: "6px", flexWrap: "wrap", width: "481px", maxWidth: "100%" }, children: a3 }, e4 + "-presets")] }, e4);
2221
- }, l3 = [], s3 = g2().getCustomTableStyles(), d3 = [];
2221
+ }, l3 = [], s3 = g2().getCustomTableStyles(), d2 = [];
2222
2222
  if (s3.length > 0) {
2223
- for (let e4 = 0; e4 < s3.length; e4++) s3[e4].isShownInTableStyles() && d3.push(s3[e4].getName());
2224
- l3.push(r3("Custom", d3, false));
2223
+ for (let e4 = 0; e4 < s3.length; e4++) s3[e4].isShownInTableStyles() && d2.push(s3[e4].getName());
2224
+ l3.push(r3("Custom", d2, false));
2225
2225
  }
2226
2226
  const c3 = [];
2227
2227
  h2 && !h2.getStyleOptions().name && c3.push(null);
2228
2228
  for (let e4 = 0; e4 < 21; e4++) c3.push("TableStyleLight" + (e4 + 1));
2229
- l3.push(r3("Light", c3, d3.length > 0));
2230
- const m2 = [];
2231
- for (let e4 = 0; e4 < 28; e4++) m2.push("TableStyleMedium" + (e4 + 1));
2232
- l3.push(r3("Medium", m2));
2229
+ l3.push(r3("Light", c3, d2.length > 0));
2230
+ const m3 = [];
2231
+ for (let e4 = 0; e4 < 28; e4++) m3.push("TableStyleMedium" + (e4 + 1));
2232
+ l3.push(r3("Medium", m3));
2233
2233
  const p3 = [];
2234
2234
  for (let e4 = 0; e4 < 11; e4++) p3.push("TableStyleDark" + (e4 + 1));
2235
2235
  l3.push(r3("Dark", p3));
@@ -2237,25 +2237,25 @@ const Na = $(O((e2, t2) => {
2237
2237
  return h2 && (f3 = L(H, { children: [z(ve, { orientation: "horizontal" }), z(ke, { variant: ft.Menuitem, command: t3.getCommand("formatTableStyleClearTableStyle"), commandHook: a2, disabled: i2 })] })), L(Q, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", paddingTop: (e4) => `${e4.shape.borderRadius}px`, paddingBottom: (e4) => `${e4.shape.borderRadius}px` }, children: [z(Q, { onContextMenu: () => {
2238
2238
  }, sx: { display: "flex", flexDirection: "column", padding: "6px 16px" }, children: l3 }), f3] });
2239
2239
  }, [g2, g2?.().getTheme(), S2, y2]), T2 = i2 || !n2 || n2.disabled(), R2 = V(() => {
2240
- if (!u2 || !c2) return n2?.icon();
2240
+ if (!u2 || !m2) return n2?.getIcon();
2241
2241
  }, [y2, S2, T2, n2]);
2242
- return z(Re, { ref: t2, quickCommand: d2 ? void 0 : f2, createPopupPanel: v2, commands: o2, label: n2?.label(), commandState: h2, commandHook: a2, selected: null !== h2, createTooltip: ({ children: e3 }, t3) => z(Le, { label: n2?.label(), description: n2?.description(), disabled: t3, children: e3 }), disabled: T2, icon: R2, ...p2 });
2242
+ return z(Re, { ref: t2, quickCommand: c2 ? void 0 : f2, createPopupPanel: v2, commands: o2, label: n2?.getLabel(), commandState: h2, commandHook: a2, selected: null !== h2, createTooltip: ({ children: e3 }, t3) => z(Le, { label: n2?.getLabel(), description: n2?.getDescription(), disabled: t3, children: e3 }), disabled: T2, icon: R2, ...p2 });
2243
2243
  })), Aa = $(O((e2, t2) => {
2244
2244
  const { command: o2, commandHook: n2, selectedTheme: a2, onSelectTheme: r2, disabled: l2 = false, darkMode: i2, label: s2, icon: d2, variant: c2, ...m2 } = e2;
2245
2245
  St(o2);
2246
- const p2 = o2?.context()?.themes, u2 = a2 || o2?.context()?.theme, g2 = i2 ?? o2?.context()?.darkMode, h2 = l2 || o2?.disabled(), f2 = xt((e3) => {
2246
+ const p2 = o2?.getContext()?.themes, u2 = a2 || o2?.getContext()?.theme, g2 = i2 ?? o2?.getContext()?.darkMode, h2 = l2 || o2?.disabled(), f2 = xt((e3) => {
2247
2247
  r2?.(e3), o2?.execute(e3, n2);
2248
2248
  }, [r2, n2]), x2 = K((e3, t3) => {
2249
2249
  const { children: n3, title: a3, ...r3 } = e3;
2250
2250
  let l3 = e3.children;
2251
2251
  return (h2 || t3) && (l3 = z("div", { children: l3 })), z(ze, { command: o2, placement: c2 === ft.Toolbar ? "bottom-start" : "right-start", disabled: h2 || t3, ...r3, children: l3 });
2252
2252
  }, [o2, h2]);
2253
- return z(yn, { ref: t2, themes: p2, selectedTheme: u2, onSelectTheme: f2, variant: c2 === ft.Menuitem ? Ne.Menuitem : Ne.Toolbar, createTooltip: x2, disabled: h2, darkMode: g2, ...m2 });
2253
+ return z(_o, { ref: t2, themes: p2, selectedTheme: u2, onSelectTheme: f2, variant: c2 === ft.Menuitem ? Ne.Menuitem : Ne.Toolbar, createTooltip: x2, disabled: h2, darkMode: g2, ...m2 });
2254
2254
  })), La = $(O((e2, t2) => {
2255
2255
  const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, ...l2 } = e2, i2 = ht(o2, ["themeMode"])[0], s2 = xt((e3, t3) => {
2256
2256
  const o3 = { variant: ft.Menuitem, commandHook: n2, scope: "appearance", disabled: r2 }, a3 = L(H, { children: [z(ke, { ...o3, command: i2 }), z(ke, { ...o3, command: t3.getCommand("defaultThemeMode") }), z(ve, { orientation: "horizontal" }), z(ke, { ...o3, command: t3.getCommand("enableDarkGrid") }), z(ke, { ...o3, command: t3.getCommand("enableDarkImages") })] });
2257
2257
  return Te({ ...e3, children: a3 });
2258
- }, [r2, i2, n2, a2]), d2 = i2?.state(), c2 = xe("(prefers-color-scheme: dark)"), m2 = "dark" === d2 || null === d2 && c2, p2 = null !== i2?.state();
2258
+ }, [r2, i2, n2, a2]), d2 = i2?.getState(), c2 = xe("(prefers-color-scheme: dark)"), m2 = "dark" === d2 || null === d2 && c2, p2 = null !== i2?.getState();
2259
2259
  return z(Re, { ref: t2, quickCommand: "themeMode", commands: o2, commandHook: n2, createPopupPanel: s2, label: "Appearance", tooltip: "Change the light/dark mode to match your viewing preference. This does not affect the view for others.", onQuickClick: () => {
2260
2260
  i2?.execute(m2 ? "light" : "dark", n2);
2261
2261
  }, selected: p2, ...l2 });
@@ -2311,12 +2311,12 @@ const Ka = $(O((e2, t2) => {
2311
2311
  _(() => {
2312
2312
  (async () => {
2313
2313
  c2(true);
2314
- const e3 = l2[0]?.context(), t3 = await e3.searchByCategory(n2);
2314
+ const e3 = l2[0]?.getContext(), t3 = await e3.searchByCategory(n2);
2315
2315
  s2(t3), c2(false);
2316
2316
  })();
2317
2317
  }, []);
2318
2318
  const m2 = i2.length, p2 = new Array(m2), u2 = o2.getCommand("insertFunction"), g2 = (e3) => {
2319
- a2?.beforeExecute?.(u2, u2?.state()), u2.execute(e3), a2?.onExecute?.(u2, u2?.state());
2319
+ a2?.beforeExecute?.(u2, u2?.getState()), u2.execute(e3), a2?.onExecute?.(u2, u2?.getState());
2320
2320
  };
2321
2321
  for (let e3 = 0; e3 < m2; e3++) {
2322
2322
  const t3 = i2[e3];
@@ -2324,9 +2324,9 @@ const Ka = $(O((e2, t2) => {
2324
2324
  }
2325
2325
  return Te({ ...r2, children: z(Q, { ref: t2, sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: m2 > 0 ? z(H, { children: z(Q, { sx: { overflow: "auto", flex: "1 1 100%" }, children: p2 }) }) : null }) });
2326
2326
  })), Ga = $(O((e2, t2) => {
2327
- const { sx: o2, style: n2, className: a2, licenseKey: r2, renderLoading: l2 = xa, propsLoading: i2, ...s2 } = e2;
2328
- r2 && h.setLicenseKey(r2);
2329
- const d2 = V(() => l2 ? z(pe, { sx: o2, style: { width: "100%", height: "100%", position: "absolute", display: "flex", alignItems: "center", justifyContent: "center", ...n2 }, children: l2({ ...i2 }) }) : null, [o2, n2, l2, i2]), c2 = V(() => W.lazy(async () => await Promise.resolve().then(() => ir)), []);
2327
+ const { sx: o2, style: n2, className: a2, licenseKey: r2, renderLoading: l2 = aa, propsLoading: i2, ...s2 } = e2;
2328
+ r2 && p.setLicenseKey(r2);
2329
+ const d2 = V(() => l2 ? z(ce, { sx: o2, style: { width: "100%", height: "100%", position: "absolute", display: "flex", alignItems: "center", justifyContent: "center", ...n2 }, children: l2({ ...i2 }) }) : null, [o2, n2, l2, i2]), c2 = V(() => W.lazy(async () => await Promise.resolve().then(() => ir)), []);
2330
2330
  return z(H, { children: z(U, { fallback: d2, children: z(c2, { ...s2, className: a2, renderLoading: l2, propsLoading: { ...i2, transitionDelay: "0ms" }, sx: o2, style: n2, ref: t2 }) }) });
2331
2331
  }));
2332
2332
  Ga.displayName = "Studio";
@@ -2418,20 +2418,20 @@ const Xa = $(O((e2, t2) => {
2418
2418
  t4.isDefaultPrevented || e3.closeFloatAll();
2419
2419
  } });
2420
2420
  }, [r2, o2, n2, a2, i2]), c2 = "File";
2421
- return z(Re, { commands: o2, disabled: r2, commandHook: n2, scope: a2, label: c2, tooltip: "Options for saving and loading the workbook.", sx: { paddingBottom: "0px", "& button": { paddingTop: "0px", paddingBottom: "0px", height: (e3) => `calc(1.25rem + ${e3.spacing(2)}px)` } }, ...l2, createPopupPanel: d2, icon: z(Oe, { className: "label", icon: null, label: c2 }) });
2421
+ return z(Re, { commands: o2, disabled: r2, commandHook: n2, scope: a2, label: c2, tooltip: "Options for saving and loading the workbook.", sx: { paddingBottom: "0px", "& button": { paddingTop: "0px", paddingBottom: "0px", height: (e3) => `calc(1.25rem + ${e3.spacing(2)}px)` } }, ...l2, createPopupPanel: d2, icon: z(Qe, { className: "label", icon: null, label: c2 }) });
2422
2422
  }));
2423
2423
  Xa.displayName = "StandaloneFileCommandButton";
2424
2424
  const Za = z(Le, { label: "SheetXL", description: "Visit me at sheetxl.com.", children: z(Q, { sx: { width: "24px", height: "24px", marginBottom: "4px", marginLeft: "6px" }, children: z(P, { onClick: () => {
2425
2425
  window?.open("https://www.sheetxl.com", "_blank");
2426
2426
  }, style: { width: "24px", height: "24px", cursor: "pointer" } }) }) }), Ya = $(O((e2, t2) => {
2427
- const { commands: o2, workbook: n2, logo: a2 = Za, mainElement: r2, showFileMenu: l2 = true, showAppearanceMenu: i2 = true, ...s2 } = e2, { reference: d2 } = _e(), [c2, { width: m2 }] = jt(), p2 = m2 < 530, u2 = l2 ? z(Xa, { commands: o2, commandHook: { beforeExecute() {
2427
+ const { commands: o2, workbook: n2, logo: a2 = Za, mainElement: r2, showFileMenu: l2 = true, showAppearanceMenu: i2 = true, ...s2 } = e2, { reference: d2 } = Ge(), [c2, { width: m2 }] = jt(), p2 = m2 < 530, u2 = l2 ? z(Xa, { commands: o2, commandHook: { beforeExecute() {
2428
2428
  d2?.closeAll();
2429
2429
  }, onError(e3, t3, o3) {
2430
2430
  } } }) : null, g2 = i2 ? z(La, { commands: o2, commandHook: { beforeExecute() {
2431
2431
  d2?.closeAll();
2432
2432
  }, onError(e3, t3, o3) {
2433
2433
  } } }) : null, h2 = V(() => ({ paddingLeft: (e3) => e3.spacing(1), paddingRight: (e3) => e3.spacing(1) }), []), f2 = q(null);
2434
- return z(Q, { ref: Vt([f2, c2, t2]), ...s2, children: oa({ commands: o2, isCompact: p2, workbook: n2, wrapperSelect: (e3) => L(Q, { sx: { display: "flex", flex: "1", flexDirection: "row", alignItems: "stretch", gap: (e4) => e4.spacing(1), paddingLeft: (e4) => e4.spacing(1), paddingRight: (e4) => e4.spacing(1) }, children: [L(Q, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (e4) => e4.spacing(0.5) }, children: [a2, L(Q, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (e4) => e4.spacing(0.25) }, children: [u2, e3] })] }), z(Q, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: r2 }), z(Q, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: p2 && !g2 ? "0 0 auto" : "1 1 100%" }, children: g2 })] }), propsSelect: h2, propsToolbars: { Home: { sx: {} } } }) });
2434
+ return z(Q, { ref: Vt([f2, c2, t2]), ...s2, children: Kn({ commands: o2, isCompact: p2, workbook: n2, wrapperSelect: (e3) => L(Q, { sx: { display: "flex", flex: "1", flexDirection: "row", alignItems: "stretch", gap: (e4) => e4.spacing(1), paddingLeft: (e4) => e4.spacing(1), paddingRight: (e4) => e4.spacing(1) }, children: [L(Q, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (e4) => e4.spacing(0.5) }, children: [a2, L(Q, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (e4) => e4.spacing(0.25) }, children: [u2, e3] })] }), z(Q, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: r2 }), z(Q, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: p2 && !g2 ? "0 0 auto" : "1 1 100%" }, children: g2 })] }), propsSelect: h2, propsToolbars: { Home: { sx: {} } } }) });
2435
2435
  }));
2436
2436
  Ya.displayName = "StudioToolbar";
2437
2437
  const Qa = () => {
@@ -2544,7 +2544,7 @@ const Qa = () => {
2544
2544
  const { showModal: T2 } = nt();
2545
2545
  return _(() => {
2546
2546
  const e4 = () => new Promise((e5, t4) => {
2547
- const o4 = W.lazy(() => import("./DCngEQG4um0yTeoj.mjs")), n4 = T2(o4, { title: "Shortcut Keys Reference", commands: C2, onDone: () => {
2547
+ const o4 = W.lazy(() => import("./BkQRle53yjTwYnC4.mjs")), n4 = T2(o4, { title: "Shortcut Keys Reference", commands: C2, onDone: () => {
2548
2548
  n4.hide();
2549
2549
  }, slotProps: { transition: { onExited: () => {
2550
2550
  e5(true);
@@ -2628,7 +2628,7 @@ const er = $((e2) => {
2628
2628
  t4 = { ...t4, onKeyDown: (e5) => {
2629
2629
  e5.isDefaultPrevented() || e5.isPropagationStopped() || o4?.onKeyDown?.(e5);
2630
2630
  } };
2631
- return c2(e4, { sort: () => import("./CACqTiBtxYlo1mu7.mjs"), numberFormat: () => import("./BYjJIMFsheqJcsEI.mjs"), hyperlink: () => import("./CS0OWM24rZpAGRKU.mjs"), comments: () => import("./CdUceTAldsMTIFnD.mjs"), find: () => import("./Do7ts-uMkQANfvhq.mjs"), tableNew: () => import("./oYh6joioOWhFd_R3.mjs"), namedDetails: () => import("./D6B7z_d11sd-U1fU.mjs"), resizeHeader: () => import("./CJU8jJhxtR3PEj2I.mjs") }[e4], t4);
2631
+ return c2(e4, { sort: () => import("./Dhp7eefBNVIcSWf6.mjs"), numberFormat: () => import("./Bl77xZWpq8Ix5EEF.mjs"), hyperlink: () => import("./C4wnaXAtg_BfPjQR.mjs"), comments: () => import("./j5ssn9j67ROjzwGT.mjs"), find: () => import("./BKeEywP27oPbnpFS.mjs"), tableNew: () => import("./B67HtQl_OohbFhFm.mjs"), namedDetails: () => import("./bp_PxnEExWX_-i_8.mjs"), resizeHeader: () => import("./C1HBS_UNswHQvckQ.mjs") }[e4], t4);
2632
2632
  }, showOptions: m2, showInput: p2, showError: (t4) => {
2633
2633
  let o4, n3 = Tt.Error, a3 = "Unknown Error";
2634
2634
  "string" == typeof t4 ? a3 = t4 : t4 instanceof Error && (o4 = t4, t4.message && (a3 = t4.message)), t4 instanceof Zt && (n3 = Tt.Info), e3(a3, { type: n3, enqueueProps: { error: o4 } });
@@ -2658,7 +2658,7 @@ const er = $((e2) => {
2658
2658
  });
2659
2659
  er.displayName = "SnackbarWrapper";
2660
2660
  const tr = $(O((e2, t2) => {
2661
- const { children: o2, title: n2, taskPanes: a2, onSelect: r2, selected: l2, registry: i2 = v, style: s2, iconsOnly: d2, className: c2, ...m2 } = e2, p2 = V(() => a2.map((t3) => {
2661
+ const { children: o2, title: n2, taskPanes: a2, onSelect: r2, selected: l2, registry: i2 = k, style: s2, iconsOnly: d2, className: c2, ...m2 } = e2, p2 = V(() => a2.map((t3) => {
2662
2662
  const o3 = i2.getRegisteredTaskPane(t3);
2663
2663
  if (!o3) return null;
2664
2664
  let n3 = o3.getIcon?.();
@@ -2688,9 +2688,9 @@ const tr = $(O((e2, t2) => {
2688
2688
  let p2 = null, u2 = 4, g2 = 13;
2689
2689
  return c2 ? p2 = "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" : (p2 = "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", u2 = 13, g2 = 4), z(Dt, { ref: Vt([m2, s2, t2]), className: a2, style: r2 ? { ...ar, ...r2 } : ar, ...l2, fixedPane: "after", position: "40%", minAfter: c2 ? "280px" : "120px", splitDirection: c2 ? "row" : "column", propsResizer: { className: "styled-resizer", style: { minWidth: c2 ? "6px" : void 0, minHeight: c2 ? void 0 : "6px", maskImage: `url("data:image/svg+xml,%3Csvg width='${u2}' height='${g2}' viewBox='0 0 ${u2} ${g2}' version='1.1' fill='${i2.palette.text.icon ?? i2.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${p2}' /%3E%3C/svg%3E%0A")`, maskRepeat: "no-repeat", maskPosition: c2 ? "left center" : "top center" } }, elementBefore: o2, propsPaneBefore: { style: { flexDirection: "column", marginRight: n2 ? void 0 : "6px" } }, elementAfter: n2, propsPaneAfter: { style: { marginLeft: c2 ? "0px" : "4px", marginRight: c2 ? "8px" : "4px" } } });
2690
2690
  }));
2691
- rr.displayName = "StudioSplitPane", Ea(), Mt.register("plugin-scripts", { icons: {} }), v.registerTaskPane({ key: "scriptEditor", getTitle: () => "Script (Typescript)", getIcon: () => "ScriptRun", renderTaskPane: Xn }, true);
2691
+ rr.displayName = "StudioSplitPane", un(), Ft.register("plugin-scripts", { icons: {} }), k.registerTaskPane({ key: "scriptEditor", getTitle: () => "Script (Typescript)", getIcon: () => "ScriptRun", renderTaskPane: Ln }, true);
2692
2692
  const lr = $(O((e2, t2) => {
2693
- const { className: o2, sx: n2, square: a2, elevation: r2, variant: l2, style: i2, onElementLoad: s2, onError: d2, undoManager: c2, renderWorkbookError: m2 = ba, onKeyDown: p2, workbook: u2, onWorkbookChange: g2, logo: h2, importExportDisabled: f2 = false, themeOptions: b2, autoFocus: y2 = false, commands: w2, title: S2, onWorkbookTitleChange: C2, propsWorkbookTitle: k2, renderLoading: v2 = xa, propsLoading: T2, ...D2 } = e2, F2 = q(null), M2 = xt(g2, [g2]), N2 = xt(C2 ?? k2?.onTitleChange, [C2 ?? k2?.onTitleChange]), B2 = k2?.placeHolder ?? "Untitled", E2 = b2?.mode, { themeMode: P2, source: I2 } = tt({ mode: E2 }), H2 = V(() => ({ ...b2, light: st(false, _t.deepMerge(b2?.theme ?? {}, b2?.light ?? {})), dark: st(true, _t.deepMerge(b2?.theme ?? {}, b2?.dark ?? {})) }), [b2]), W2 = P2 === ot.Dark, [$2, O2] = j(null);
2693
+ const { className: o2, sx: n2, square: a2, elevation: r2, variant: l2, style: i2, onElementLoad: s2, onError: d2, undoManager: c2, renderWorkbookError: m2 = ra, onKeyDown: p2, workbook: u2, onWorkbookChange: g2, logo: h2, importExportDisabled: f2 = false, themeOptions: b2, autoFocus: y2 = false, commands: w2, title: S2, onWorkbookTitleChange: C2, propsWorkbookTitle: k2, renderLoading: v2 = aa, propsLoading: T2, ...D2 } = e2, F2 = q(null), M2 = xt(g2, [g2]), N2 = xt(C2 ?? k2?.onTitleChange, [C2 ?? k2?.onTitleChange]), B2 = k2?.placeHolder ?? "Untitled", E2 = b2?.mode, { themeMode: P2, source: I2 } = tt({ mode: E2 }), H2 = V(() => ({ ...b2, light: st(false, _t.deepMerge(b2?.theme ?? {}, b2?.light ?? {})), dark: st(true, _t.deepMerge(b2?.theme ?? {}, b2?.dark ?? {})) }), [b2]), W2 = P2 === ot.Dark, [$2, O2] = j(null);
2694
2694
  _(() => {
2695
2695
  O2(c2 ?? new Yt());
2696
2696
  }, [c2]);
@@ -2727,7 +2727,7 @@ const lr = $(O((e2, t2) => {
2727
2727
  } });
2728
2728
  }, [$2, G2, J2]);
2729
2729
  const te2 = xt((e3) => {
2730
- e3 ? $2.setRepeatableOperation({ description: e3.label(), repeat: async () => e3.execute() }) : $2.setRepeatableOperation(null);
2730
+ e3 ? $2.setRepeatableOperation({ description: e3.getLabel(), repeat: async () => e3.execute() }) : $2.setRepeatableOperation(null);
2731
2731
  }, [$2]), [oe2, ne2] = j(S2 ?? k2?.title ?? "");
2732
2732
  _(() => {
2733
2733
  ne2(S2 ?? k2?.title ?? "");
@@ -2739,14 +2739,14 @@ const lr = $(O((e2, t2) => {
2739
2739
  } });
2740
2740
  return w2 ? w2.createChildGroup(e3, "application", false) : new Pt(e3, "application");
2741
2741
  }, [w2]), se2 = xt(async (e3) => {
2742
- le2(e3.source.getViewportElement()), ee2(e3), ie2.activate("sheet"), await Mt.prefetch(), s2?.(e3);
2742
+ le2(e3.source.getViewportElement()), ee2(e3), ie2.activate("sheet"), await Ft.prefetch(), s2?.(e3);
2743
2743
  }, [ie2]);
2744
2744
  _(() => {
2745
2745
  J2 && y2 && J2.source?.focus("object" == typeof y2 ? y2 : void 0);
2746
2746
  }, [J2, y2]);
2747
- const de2 = q(null), ce2 = K((e3) => {
2747
+ const de2 = q(null), me2 = K((e3) => {
2748
2748
  let t3 = null;
2749
- return k2?.hidden || (t3 = z(Ma, { ...k2, style: { maxWidth: "100%", ...k2?.style }, workbook: F2.current, ref: de2, title: oe2, placeHolder: B2, onTitleChange: (e4) => {
2749
+ return k2?.hidden || (t3 = z(fa, { ...k2, style: { maxWidth: "100%", ...k2?.style }, workbook: F2.current, ref: de2, title: oe2, placeHolder: B2, onTitleChange: (e4) => {
2750
2750
  ne2(e4);
2751
2751
  } })), z(Ya, { ...e3, logo: h2, mainElement: t3, showFileMenu: !f2, showAppearanceMenu: !!(H2?.onEnabledDarkGridChange || H2?.onEnabledDarkImagesChange || H2?.onModeChange) });
2752
2752
  }, [h2, oe2, k2, H2, f2, ie2]);
@@ -2756,17 +2756,17 @@ const lr = $(O((e2, t2) => {
2756
2756
  F2.current?.removeEventListener("wheel", e3);
2757
2757
  };
2758
2758
  }, []);
2759
- const me2 = V(() => ({ "& .SnackbarContainer-root": { position: "absolute !important" }, "& .notistack-SnackbarContainer > div": { maxWidth: "100%" }, "& .notistack-Snackbar": { minWidth: "unset" }, "& .notistack-Snackbar > .error-snackbar .MuiTypography-root": { color: (e3) => e3.palette.getContrastText(e3.palette.error.main) }, "& .notistack-Snackbar > .error-snackbar .MuiCardActions-root": { color: (e3) => e3.palette.getContrastText(e3.palette.error.main) }, "& .notistack-Snackbar > .error-snackbar .MuiButtonBase-root": { color: (e3) => e3.palette.getContrastText(e3.palette.error.main) }, "& .notistack-MuiContent *": { fontFamily: (e3) => e3.typography.fontFamily }, "& #notistack-snackbar": { maxWidth: "560px", whiteSpace: "pre-wrap" }, "*": { userSelect: "none" }, ...n2 }), [n2]), [ue2, ge2] = j(null), he2 = K((e3) => z(nr, { model: G2?.workbook, commands: ie2, ...e3 }), [ie2, G2]), fe2 = K((e3) => z(rr, { mainElement: e3, sidebarElement: ue2 }), [ue2]), xe2 = Vt([F2, t2]), be2 = K((e3) => {
2759
+ const pe2 = V(() => ({ "& .SnackbarContainer-root": { position: "absolute !important" }, "& .notistack-SnackbarContainer > div": { maxWidth: "100%" }, "& .notistack-Snackbar": { minWidth: "unset" }, "& .notistack-Snackbar > .error-snackbar .MuiTypography-root": { color: (e3) => e3.palette.getContrastText(e3.palette.error.main) }, "& .notistack-Snackbar > .error-snackbar .MuiCardActions-root": { color: (e3) => e3.palette.getContrastText(e3.palette.error.main) }, "& .notistack-Snackbar > .error-snackbar .MuiButtonBase-root": { color: (e3) => e3.palette.getContrastText(e3.palette.error.main) }, "& .notistack-MuiContent *": { fontFamily: (e3) => e3.typography.fontFamily }, "& #notistack-snackbar": { maxWidth: "560px", whiteSpace: "pre-wrap" }, "*": { userSelect: "none" }, ...n2 }), [n2]), [ue2, ge2] = j(null), he2 = K((e3) => z(nr, { model: G2?.workbook, commands: ie2, ...e3 }), [ie2, G2]), fe2 = K((e3) => z(rr, { mainElement: e3, sidebarElement: ue2 }), [ue2]), xe2 = Vt([F2, t2]), be2 = K((e3) => {
2760
2760
  const { commands: t3, ref: s3, ...d3 } = e3;
2761
- if (!G2) return z(pe, { sx: n2, style: { width: "100%", height: "100%", position: "absolute", display: "flex", alignItems: "center", justifyContent: "center", ...i2 }, children: v2({ ...T2 }) });
2762
- if (G2.error) return z(pe, { sx: n2, style: { width: "100%", height: "100%", position: "absolute", display: "flex", alignItems: "stretch", justifyContent: "stretch", ...i2 }, children: m2({ style: { width: "100%", height: "100%", ...i2 }, error: G2.error }) });
2761
+ if (!G2) return z(ce, { sx: n2, style: { width: "100%", height: "100%", position: "absolute", display: "flex", alignItems: "center", justifyContent: "center", ...i2 }, children: v2({ ...T2 }) });
2762
+ if (G2.error) return z(ce, { sx: n2, style: { width: "100%", height: "100%", position: "absolute", display: "flex", alignItems: "stretch", justifyContent: "stretch", ...i2 }, children: m2({ style: { width: "100%", height: "100%", ...i2 }, error: G2.error }) });
2763
2763
  let c3 = null, u3 = null, g3 = false;
2764
2764
  H2 && (c3 = W2 ? H2.dark : H2.light, u3 = W2 && H2.enableDarkGrid ? H2.dark : H2.light, g3 = H2.enableDarkImages);
2765
- const h3 = z(Da, { tabIndex: 0, autoFocus: false, workbook: G2.workbook, ref: Vt([s3, xe2]), renderToolbar: ce2, onElementLoad: se2, onRepeatCommandChange: te2, onKeyDown: (e4) => {
2765
+ const h3 = z(ga, { tabIndex: 0, autoFocus: false, workbook: G2.workbook, ref: Vt([s3, xe2]), renderToolbar: me2, onElementLoad: se2, onRepeatCommandChange: te2, onKeyDown: (e4) => {
2766
2766
  p2?.(e4);
2767
2767
  }, propsLoading: T2, renderLoading: v2, gridTheme: u3, headersTheme: c3, enableDarkImages: g3, wrapperMain: fe2, className: gt(o2), onContextMenu: (e4) => e4.preventDefault(), commands: t3, ...D2, ...d3 }, "WorkbookElement");
2768
- return z(pe, { sx: me2, style: { width: "100%", height: "100%", position: "absolute", display: "flex", alignItems: "stretch", justifyContent: "stretch", ...i2 }, square: a2, elevation: r2, variant: l2, children: h3 });
2769
- }, [G2, oe2, $2, v2, T2, D2, a2, r2, l2, m2, H2, ce2, me2, fe2]);
2768
+ return z(ce, { sx: pe2, style: { width: "100%", height: "100%", position: "absolute", display: "flex", alignItems: "stretch", justifyContent: "stretch", ...i2 }, square: a2, elevation: r2, variant: l2, children: h3 });
2769
+ }, [G2, oe2, $2, v2, T2, D2, a2, r2, l2, m2, H2, me2, pe2, fe2]);
2770
2770
  let ye2 = z(no, { maxSnack: 3, domRoot: re2, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (e3, t3, o3) => {
2771
2771
  F2.current?.focus();
2772
2772
  }, Components: { error: qa }, iconVariant: { success: z(ae, { style: { marginRight: "8px" }, children: z("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" }) }), error: z(wt, { iconKey: "ErrorAlert", style: { marginRight: "8px" } }) }, children: z(A, { renderArea: he2, onUpdateArea: (e3) => {
@@ -2789,7 +2789,7 @@ export {
2789
2789
  Ao as ClearCommandButton,
2790
2790
  fo as ColorButton,
2791
2791
  xo as ColorButtonList,
2792
- $o as ColorCommandButton,
2792
+ xa as ColorCommandButton,
2793
2793
  So as ColorPanel,
2794
2794
  so as ColorPanelType,
2795
2795
  ko as ColorPopupButton,
@@ -2797,13 +2797,13 @@ export {
2797
2797
  Aa as DocThemeCommandButton,
2798
2798
  lr as EagerStudio,
2799
2799
  Lo as FillCommandButton,
2800
- Tn as FilterColumnMenu,
2801
- Ko as FilterCommandButton,
2802
- Rn as Filters,
2800
+ Qo as FilterColumnMenu,
2801
+ wa as FilterCommandButton,
2802
+ Jo as Filters,
2803
2803
  Bo as FindCommandButton,
2804
- Uo as FontFamilyCommandButton,
2804
+ va as FontFamilyCommandButton,
2805
2805
  Eo as FontSizeCommandButton,
2806
- vn as FormulaBar,
2806
+ Yo as FormulaBar,
2807
2807
  No as FreezeCommandButton,
2808
2808
  Ha as HelpCommandButton,
2809
2809
  ao as HorizontalAlignCommandButton,
@@ -2812,50 +2812,50 @@ export {
2812
2812
  za as InsertImageCommandButton,
2813
2813
  LicenseManager,
2814
2814
  Mo as MergeCommandButton,
2815
- Cn as NamedCollectionEditor,
2816
- un as NamedInput,
2815
+ Xo as NamedCollectionEditor,
2816
+ $o as NamedInput,
2817
2817
  Io as NumberFormatCommandButton,
2818
- Zo as PasteCommandButton,
2819
- tn as PresetCellStylesCommandButton,
2818
+ Da as PasteCommandButton,
2819
+ Ea as PresetCellStylesCommandButton,
2820
2820
  Ia as PresetTableStylesCommandButton,
2821
- hn as RangeInput,
2822
- Dn as SheetTab,
2823
- Fn as SheetTabMenu,
2824
- wn as SheetZoomScale,
2825
- Mn as SheetsAllMenu,
2826
- Vo as SortFilterCommandButton,
2827
- Sn as StatusBar,
2821
+ Vo as RangeInput,
2822
+ gn as SheetTab,
2823
+ hn as SheetTabMenu,
2824
+ Uo as SheetZoomScale,
2825
+ fn as SheetsAllMenu,
2826
+ ya as SortFilterCommandButton,
2827
+ qo as StatusBar,
2828
2828
  Ga as Studio,
2829
2829
  To as StyledStrokeIcon,
2830
- Na as TableDetailsPanel,
2831
- Ba as TableDetailsTaskPane,
2832
- Ea as TablePlugin,
2833
- ln as TableStyleCanvasPreview,
2834
- cn as TableStyleOptionsPanel,
2835
- an as TableStylePreview,
2836
- qo as TextEffectsCommandButton,
2830
+ mn as TableDetailsPanel,
2831
+ pn as TableDetailsTaskPane,
2832
+ un as TablePlugin,
2833
+ an as TableStyleCanvasPreview,
2834
+ sn as TableStyleOptionsPanel,
2835
+ on as TableStylePreview,
2836
+ Ta as TextEffectsCommandButton,
2837
2837
  lo as TextOverflowCommandButton,
2838
2838
  io as TextRotateCommandButton,
2839
- xn as ThemeSelectButton,
2840
- bn as ThemeSelectPanel,
2841
- yn as ThemeSelectPopupButton,
2842
- Xo as UnderlineCommandButton,
2843
- Go as UndoRedoCommandButton,
2839
+ Go as ThemeSelectButton,
2840
+ jo as ThemeSelectPanel,
2841
+ _o as ThemeSelectPopupButton,
2842
+ Ra as UnderlineCommandButton,
2843
+ Sa as UndoRedoCommandButton,
2844
2844
  ro as VerticalAlignCommandButton,
2845
- Oo as ViewGridLinesCommandButton,
2846
- Yo as ViewHeadingsCommandButton,
2847
- da as WalkingCopyCommandButton,
2848
- pa as WorkbookContextMenu,
2849
- Da as WorkbookElement,
2845
+ ba as ViewGridLinesCommandButton,
2846
+ Fa as ViewHeadingsCommandButton,
2847
+ Zn as WalkingCopyCommandButton,
2848
+ Jn as WorkbookContextMenu,
2849
+ ga as WorkbookElement,
2850
2850
  _a as WorkbookIO,
2851
- ma as WorkbookStrip,
2852
- Ma as WorkbookTitle,
2853
- Qo as WorkbookViewCommandButton,
2851
+ Qn as WorkbookStrip,
2852
+ fa as WorkbookTitle,
2853
+ Ma as WorkbookViewCommandButton,
2854
2854
  ja as _WorkbookIO,
2855
- Ln as createGridStyleFromMUITheme,
2855
+ kn as createGridStyleFromMUITheme,
2856
2856
  Ga as default,
2857
- In as setPrintExamplesOnLoad,
2857
+ Sn as setPrintExamplesOnLoad,
2858
2858
  useModelListener,
2859
2859
  useRangeListener,
2860
- ia as useWorkbookCommands
2860
+ qn as useWorkbookCommands
2861
2861
  };