@sheetxl/studio-mui 0.7.9 → 0.7.11

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 (37) hide show
  1. package/browser/cjs/{T7VT7LHcSGCG0nHe.cjs → 6CSKwJbNaX76JrHk.cjs} +2 -2
  2. package/browser/cjs/{DA9XIw3uWopubSOm.cjs → BVcL3i-jUQBoMe45.cjs} +2 -2
  3. package/browser/cjs/{DQupeVKF6A0l_r2_.cjs → BZgunhyCzDtzqWWh.cjs} +1 -1
  4. package/browser/cjs/{Bm-7dNP3FmSD8RKB.cjs → C8FVzCzhAJQdB_Oy.cjs} +1 -1
  5. package/browser/cjs/{C_USiuvDG2dfWtXj.cjs → Chm8zWC8ekU1Qug_.cjs} +11 -11
  6. package/browser/cjs/{Cf-kkPm1FigHKB2n.cjs → DNznc2i6xg2iIKE9.cjs} +2 -2
  7. package/browser/cjs/{1SqZN5MQ5PzAcIvC.cjs → Dk9NCZiAOD9zzs39.cjs} +7 -7
  8. package/browser/cjs/{pLwzHJC2rMpMNlmN.cjs → DrcPMnvJ8yZx-YWK.cjs} +1 -1
  9. package/browser/cjs/{DWCZwMHAmHr_6pOv.cjs → MKXDODFXAmzmh_2S.cjs} +2 -2
  10. package/browser/cjs/{BBYVAwo4ouiMmtKC.cjs → WrGDj1nLC4-sMZKq.cjs} +1 -1
  11. package/browser/cjs/index.cjs +2 -2
  12. package/browser/cjs/{D1OaqRgNJbMQkAd5.cjs → rxLo_Ld1Xi-KKL6y.cjs} +1 -1
  13. package/browser/esm/{YpJtXAhMACxtW1Rk.mjs → A_B51mAtU7xxxYD-.mjs} +2 -2
  14. package/browser/esm/{DLRGvvkeHamosHqQ.mjs → BUE0z3b78bw14bK3.mjs} +380 -374
  15. package/browser/esm/{vrN0FWxqEeg1-vWU.mjs → B_3dBo5bkIr0eZVH.mjs} +1 -1
  16. package/browser/esm/{Bx_qMvcXcJ9rsRW0.mjs → BcIL0e_fUxF3JbFD.mjs} +2 -2
  17. package/browser/esm/{DTxgrQXbG3N9lW1K.mjs → CFX1xSvjQ7k3GYNy.mjs} +2 -2
  18. package/browser/esm/{CusJChXpaPfoicnm.mjs → D_6ik-OgPF7G8sN7.mjs} +2 -2
  19. package/browser/esm/{DV6MYPn_wgUytG9p.mjs → Dfg1sHqBfYLAePQR.mjs} +1 -1
  20. package/browser/esm/{BkLdZhD76b4clcIe.mjs → DmBripa50tKiqREL.mjs} +212 -208
  21. package/browser/esm/{8ySqzQ-18kdZCc_T.mjs → DneV3-mqSBq1-Ies.mjs} +1 -1
  22. package/browser/esm/{CrxCbPC8OsPYiu18.mjs → IM-boc1h29ZmHdvy.mjs} +1 -1
  23. package/browser/esm/index.mjs +43 -41
  24. package/browser/esm/{DeBXIHYAvBBDeuyl.mjs → rTUe_Q7TeplDbtPZ.mjs} +1 -1
  25. package/licenses/dependencies.txt +139 -139
  26. package/node/esm/{CN31EL9Soh-9w3jF.mjs → B220q5iXepGyNhkv.mjs} +1 -1
  27. package/node/esm/{DAMa-CbdXO0XKKam.mjs → BTPfATo02Qq6ojW1.mjs} +1 -1
  28. package/node/esm/{4Woq8PA_nHBBWJE_.mjs → Bgm2i4z2IS2cPd09.mjs} +1 -1
  29. package/node/esm/{Cglez5pr5a5RTdHS.mjs → Bqq76CFUL47Gxzv9.mjs} +1 -1
  30. package/node/esm/{CrfdSYnd6drqE5fB.mjs → C2ndkS7Xv8G7tqsJ.mjs} +1 -1
  31. package/node/esm/{DIXy8ZVj_kaaOwIJ.mjs → CDgzja3zCRKU-fkg.mjs} +1 -1
  32. package/node/esm/{jsycByMMbwMZibUQ.mjs → DLB7yLWLF3CYoYgq.mjs} +42 -38
  33. package/node/esm/{BxpSw5aPIr7UXKbB.mjs → JtXI2INXnATXNbIy.mjs} +1 -1
  34. package/node/esm/index.mjs +125 -119
  35. package/node/esm/{BVjsplqVie80wjNf.mjs → ysEyad2ZFSLz_tlq.mjs} +1 -1
  36. package/package.json +8 -8
  37. package/types/index.d.ts +6 -0
@@ -1,19 +1,19 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.9
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.11
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
7
  import { Color as e, IColor as t, ITheme as o, CommonUtils as n, IBorder as a, IFont as r, NumberFormat as l, IFontCollection as i, IStyle as s, ITextFrame as d, Table as c, IFill as m, CoordUtils as p, ISheet as u, LicenseManager as g, Workbook as h, TypesUtils as f } from "@sheetxl/sdk";
8
8
  import { LicenseManager } from "@sheetxl/sdk";
9
- import { StyledStrokePath as x, StaticBorderRenderer as b, FontUtils as y, useModelListener as w, createCellEditStateFromCell as k, SheetCellEditor as S, ScriptEditor as C, useTaskPaneArea as v, DefaultTaskPaneRegistry as T, useDocThemes as R, TabStrip as P, SheetElement as D, SheetScrollbar as M, PictureEditor as F, ChartEditor as N, EmptyFrame as B, LogoNoPaddingIcon as E, TaskPaneArea as A, TaskPaneProvider as I } from "@sheetxl/react";
9
+ import { StyledStrokePath as x, StaticBorderRenderer as b, FontUtils as y, useModelListener as w, createCellEditStateFromCell as k, SheetCellEditor as S, ScriptEditor as C, DefaultTaskPaneRegistry as v, useTaskPaneArea as T, useDocThemes as R, TabStrip as P, SheetElement as D, SheetScrollbar as M, PictureEditor as F, ChartEditor as N, EmptyFrame as B, LogoNoPaddingIcon as E, TaskPaneArea as A, TaskPaneProvider as I } 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 U, useEffect as j, Suspense as _, useRef as q, createElement as X, useReducer as Z, useImperativeHandle as Y, useLayoutEffect as Q } from "react";
13
13
  import { Box as J, Typography as ee, IconButton as te, MenuItem as oe, Divider as ne, Button as ae, SvgIcon as re, Input as le, FormControlLabel as ie, Checkbox as se, FormControl as de, TextField as ce, InputAdornment as me, Slider as pe, Paper as ue, CircularProgress as ge, Select as he, Tabs as fe, Tab as xe, useMediaQuery as be, Card as ye, CardActions as we, Collapse as ke, DialogTitle as Se, CssBaseline as Ce } from "@mui/material";
14
14
  import { CommandButton as ve, ExhibitDivider as Te, defaultCreatePopupPanel as Re, CommandPopupButton as Pe, InputCommandButton as De, SimpleTooltip as Me, LoadingPanel as Fe, PopupButtonType as Ne, ExhibitPopupIconButton as Be, ExhibitPopupMenuItem as Ee, ExhibitMenuItem as Ae, createStrokeShadowFilter as Ie, strokeShadowFilter as Le, ExhibitTooltip as He, ExhibitIconButton as ze, CommandTooltip as We, SelectedIcon as $e, SimpleCommandPopupButton as Oe, LabelIcon as Ve, ExhibitMenuHeader as Ke, ContextMenu as Ge, ExhibitOptionButton as Ue, hexToRGB as je, useFloatStack as _e, elevateColor as qe, CommandToolbar as Xe, createScrollEdgeButton as Ze, createScrollEndButton as Ye, createScrollStartButton 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, ErrorPanel as st, createExhibitTheme as dt, ModalProvider as ct } from "@sheetxl/utils-mui";
15
15
  import mt from "clsx";
16
- import { useCommands as pt, CommandButtonType as ut, useCallbackRef as gt, ReactUtils as ht, KeyCodes as ft, DynamicIcon as xt, useCommand as bt, useMouseDownAndHoldListener as yt, useEditMode as wt, useNotifier as kt, NotifierType as St, useImperativeElement as Ct, SplitPane as vt, RoundedTab as Tt, SimpleCommand as Rt, Command as Pt, KeyModifiers as Dt, CommandGroup as Mt, ToolTipPlacement as Ft, ScrollPane as Nt, useUndoManager as Bt, DefaultReactNotifier as Et, NotifierProvider as At, DefaultDynamicIconService as It, UncaughtErrorBoundary as Lt, ReactErrorBoundary as Ht } from "@sheetxl/utils-react";
16
+ import { useCommands as pt, CommandButtonType as ut, useCallbackRef as gt, ReactUtils as ht, KeyCodes as ft, DynamicIcon as xt, useCommand as bt, useMouseDownAndHoldListener as yt, useEditMode as wt, useNotifier as kt, NotifierType as St, useImperativeElement as Ct, SplitPane as vt, RoundedTab as Tt, DefaultDynamicIconService as Rt, SimpleCommand as Pt, Command as Dt, KeyModifiers as Mt, CommandGroup as Ft, ToolTipPlacement as Nt, ScrollPane as Bt, useUndoManager as Et, DefaultReactNotifier as At, NotifierProvider as It, UncaughtErrorBoundary as Lt, ReactErrorBoundary as Ht } from "@sheetxl/utils-react";
17
17
  import { useTheme as zt, alpha as Wt, getOverlayAlpha as $t, ThemeProvider as Ot } from "@mui/material/styles";
18
18
  import { alpha as Vt } from "@mui/system";
19
19
  import { useFormContext as Kt } from "react-hook-form";
@@ -140,7 +140,7 @@ const ro = $(O((e2, t2) => {
140
140
  r2?.set(d2, s2);
141
141
  const c2 = s2.toRGBA().toString();
142
142
  l2?.set(c2, s2);
143
- }, ko = W.lazy(() => import("./BVjsplqVie80wjNf.mjs")), So = $(O((t2, a2) => {
143
+ }, ko = W.lazy(() => import("./ysEyad2ZFSLz_tlq.mjs")), So = $(O((t2, a2) => {
144
144
  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: k2, autoColorLabel: S2 = "Automatic", autoColorPosition: C2 = mo.Start, compareRGB: v2 = false, darkMode: T2 = false, ...R2 } = t2, P2 = l2 || r2, D2 = gt(b2, [b2]), M2 = gt(y2, [y2]), F2 = gt(w2, [w2]), N2 = gt(f2, [f2]), B2 = gt(x2, [x2]), [E2, A2] = U(false), I2 = zt(), W2 = V(() => s2 || e.getDefaultSchemeLookup(), [s2]), $2 = V(() => {
145
145
  const e2 = /* @__PURE__ */ new Map(), t3 = /* @__PURE__ */ new Map(), n2 = [];
146
146
  wo("Primary Background", "bg1", W2, n2, e2, t3), wo("Primary Text", "tx1", W2, n2, e2, t3), wo("Secondary Background", "bg2", W2, n2, e2, t3), wo("Secondary Text", "tx2", W2, n2, e2, t3), wo("Accent 1", "accent1", W2, n2, e2, t3), wo("Accent 2", "accent2", W2, n2, e2, t3), wo("Accent 3", "accent3", W2, n2, e2, t3), wo("Accent 4", "accent4", W2, n2, e2, t3), wo("Accent 5", "accent5", W2, n2, e2, t3), wo("Accent 6", "accent6", W2, n2, e2, t3);
@@ -517,7 +517,7 @@ const Vo = $(O((e2, t2) => {
517
517
  const o3 = { variant: ut.Menuitem, commandHook: n2, scope: "sort", disabled: r2 }, a3 = t3.getCommand("sortCustom"), l3 = L(H, { children: [z(ve, { ...o3, command: t3.getCommand("sortAscending") }), z(ve, { ...o3, command: t3.getCommand("sortDescending") }), a3 ? z(ve, { ...o3, command: a3 }) : null, z(Te, { orientation: "horizontal" }), z(ve, { ...o3, scope: "filter", command: t3.getCommand("autoFilterToggle") }), z(ve, { ...o3, scope: "filter", command: t3.getCommand("autoFilterClear") }), z(ve, { ...o3, scope: "filter", command: t3.getCommand("autoFilterReapply") })] });
518
518
  return Re({ ...e3, children: l3 });
519
519
  }, [r2, n2, a2]);
520
- return z(Pe, { ref: t2, commands: o2, commandHook: n2, scope: a2, disabled: r2, label: "Sort", 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: "SortIncrease", ...l2 });
520
+ return z(Pe, { ref: t2, commands: o2, commandHook: n2, scope: a2, disabled: r2, label: "Sort", 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: "SortFilter", ...l2 });
521
521
  })), Go = $(O((e2, t2) => {
522
522
  const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, ...l2 } = e2, i2 = K((e3, t3) => {
523
523
  const o3 = { variant: ut.Menuitem, commandHook: n2, scope: "sort", disabled: r2 }, a3 = L(H, { children: [z(ve, { ...o3, scope: "filter", command: t3.getCommand("autoFilterToggle") }), z(ve, { ...o3, scope: "filter", command: t3.getCommand("autoFilterClear") }), z(ve, { ...o3, scope: "filter", command: t3.getCommand("autoFilterReapply") })] });
@@ -620,7 +620,7 @@ const qo = $(O((e2, t2) => {
620
620
  const o3 = { variant: ut.Menuitem, commandHook: a2, scope: "paste", disabled: i2 }, n3 = [];
621
621
  return l2 && (n3.push(X(ve, { ...o3, command: t3.getCommand("paste"), key: "paste" })), n3.push(z(Te, { orientation: "horizontal" }, "paste-div"))), n3.push(X(ve, { ...o3, command: t3.getCommand("pasteValues"), key: "pasteValues" })), n3.push(X(ve, { ...o3, command: t3.getCommand("pasteFormats"), key: "pasteFormats" })), n3.push(X(ve, { ...o3, command: t3.getCommand("pasteFormulas"), key: "pasteFormulas" })), n3.push(X(ve, { ...o3, command: t3.getCommand("pasteTranspose"), key: "pasteTranspose" })), n3.push(X(ve, { ...o3, command: t3.getCommand("pasteLinks"), key: "pasteLinks" })), Re({ ...e3, children: n3 });
622
622
  }, [i2, a2, r2, l2]);
623
- return z(Pe, { ref: t2, commands: n2, commandHook: a2, scope: r2, createPopupPanel: d2, label: "Paste", tooltip: "Add content to the clipboard to your document.", quickCommand: "paste", icon: "paste", ...s2 });
623
+ return z(Pe, { ref: t2, commands: n2, commandHook: a2, scope: r2, createPopupPanel: d2, label: "Paste", tooltip: "Add content to the clipboard to your document.", quickCommand: "paste", ...s2 });
624
624
  })), Qo = $(O((e2, t2) => {
625
625
  const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, parentFloat: l2, ...i2 } = e2, s2 = pt(o2, ["sheetViewToggleShowHeadings", "sheetViewToggleShowHeadingColumns", "sheetViewToggleShowHeadingRows"]), d2 = K((e3, t3) => {
626
626
  const o3 = { variant: ut.Menuitem, parentFloat: e3.floatReference, commandHook: n2, scope: a2, disabled: r2 }, l3 = L(H, { children: [z(ve, { ...o3, command: t3.getCommand("sheetViewToggleShowHeadings") }), z(ve, { ...o3, command: t3.getCommand("sheetViewToggleShowHeadingsNumeric") }), z(Te, { orientation: "horizontal" }), z(ve, { ...o3, command: t3.getCommand("sheetViewToggleShowHeadingColumns") }), z(ve, { ...o3, command: t3.getCommand("sheetViewToggleShowHeadingRows") })] });
@@ -1113,7 +1113,7 @@ const vn = (e2, t2) => z(Cn, { ref: t2, ...e2 }), Tn = $(O((e2, t2) => {
1113
1113
  0 === e3.button && e3.preventDefault();
1114
1114
  } })] }), [b2, I2]), G2 = zt(), [j2, _2] = U(false), X2 = V(() => L(J, { className: "formula-bar", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", gap: (e3) => e3.spacing(0.5), alignItems: "start" }, children: [K2, L(ue, { elevation: 0, sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", fontFamily: (e3) => e3.typography.fontFamily, fontSize: 11 * r.getDeviceScale(), alignItems: "stretch", paddingTop: "2px", paddingBottom: "2px", boxShadow: "none", borderRadius: (e3) => `${e3.shape.borderRadius}px`, backgroundImage: `linear-gradient(${Wt("#fff", $t(5))}, ${Wt("#fff", $t(5))})`, border: (e3) => `solid ${b2 ? e3.palette.action.disabled : Wt(e3.palette.divider, 0.2)} 1px`, "& textarea": { color: (e3) => b2 ? `${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: () => _2(true), onBlur: () => _2(false), onMouseDown: (e3) => {
1115
1115
  e3.target?.classList.contains("react-resizable-handle") && e3.preventDefault();
1116
- }, children: [z(J, { className: "formula-editor", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", alignItems: "center", marginTop: "-1px", paddingLeft: (e3) => e3.spacing(1), paddingRight: (e3) => e3.spacing(1) }, children: z(Gt, { height: T2, draggableOpts: { grid: [v2, v2] }, minConstraints: [v2, v2], maxConstraints: [15 * v2, 15 * v2], onResize: B2, onResizeStop: N2, resizeHandles: ["s"], axis: "y", style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: W2 }) }), z(ze, { 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(xt, { iconKey: M2 > 1 ? "ExpandLess" : "ExpandMore" }), tooltipProps: { label: (M2 > 1 ? "Collapse" : "Expand") + " Formula Bar", simple: true }, onMouseDown: (e3) => {
1116
+ }, children: [z(J, { 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(Gt, { height: T2, draggableOpts: { grid: [v2, v2] }, minConstraints: [v2, v2], maxConstraints: [15 * v2, 15 * v2], onResize: B2, onResizeStop: N2, resizeHandles: ["s"], axis: "y", style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: W2 }) }), z(ze, { 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(xt, { iconKey: M2 > 1 ? "ExpandLess" : "ExpandMore" }), tooltipProps: { label: (M2 > 1 ? "Collapse" : "Expand") + " Formula Bar", simple: true }, onMouseDown: (e3) => {
1117
1117
  0 === e3.button && e3.preventDefault();
1118
1118
  }, onClick: () => {
1119
1119
  const e3 = M2 > 1 ? 1 : P2;
@@ -1501,8 +1501,8 @@ const Yn = $(O((e2, t2) => {
1501
1501
  a3(), n3();
1502
1502
  };
1503
1503
  }, [d2]);
1504
- const c2 = v(), m2 = K((e3) => {
1505
- const { commandButtonProps: t3, commandPopupProps: a3 } = e3, r3 = T.findContributions("ribbon/home");
1504
+ const c2 = T(), m2 = K((e3) => {
1505
+ const { commandButtonProps: t3, commandPopupProps: a3 } = e3, r3 = v.findContributions("ribbon/home");
1506
1506
  let i3;
1507
1507
  const s3 = r3.length;
1508
1508
  if (s3 > 0) {
@@ -1517,7 +1517,7 @@ const Yn = $(O((e2, t2) => {
1517
1517
  const d3 = z(Oo, { ...a3, command: o2.getCommand("formatFontColor"), icon: z(xt, { iconKey: "text.colored" }), isSplit: true, panelProps: { disableAlpha: true } }), m3 = z(Oo, { ...a3, command: o2.getCommand("formatFillColor"), icon: z(xt, { iconKey: "fill.colored" }), isSplit: true, panelProps: { disableAlpha: true, autoColorLabel: "No Fill", autoColorPosition: mo.End } }), p2 = o2.getCommand("undo") ? z(H, { children: z(Uo, { ...a3, quickCommand: "undo" }) }) : null, u2 = o2.getCommand("find") ? z(H, { children: z(Bo, { ...a3 }) }) : null;
1518
1518
  let g2 = null;
1519
1519
  l2 && (g2 = L(H, { children: [z(Te, {}), z(Yn, { ...a3 })] }));
1520
- return L(zn, { parentFloat: n2, children: [p2, null, p2 ? z(Te, {}) : null, z(Yo, { ...a3, command: o2.getCommand("paste") }), z(ve, { ...t3, command: o2.getCommand("formatPainterToggle") }), z(xa, { ...t3, command: o2.getCommand("copy") }), z(Te, {}), z(qo, { ...a3, command: o2.getCommand("formatFontFamily") }), z(Eo, { ...a3, command: o2.getCommand("formatFontSize") }), z(ve, { ...t3, command: o2.getCommand("formatBoldToggle") }), z(ve, { ...t3, command: o2.getCommand("formatItalicToggle") }), z(Zo, { ...a3 }), z(Xo, { ...a3 }), z(Mo, { ...a3 }), m3, d3, z(Te, {}), z(ro, { ...a3 }), z(lo, { ...a3 }), z(so, { ...a3 }), z(io, { ...a3 }), z(Fo, { ...a3 }), z(Te, {}), z(Io, { ...a3 }), z(on, { command: o2.getCommand("formatCellStyle"), ...a3 }), z(Aa, { command: o2.getCommand("formatTableStyle"), ...a3 }), z(Te, {}), z(zo, { ...a3 }), z(Wo, { ...a3 }), z($o, { ...a3 }), z(Te, {}), z(za, { ...a3 }), z(Ho, { ...a3 }), z(Lo, { ...a3 }), z(Ko, { ...a3 }), u2, g2, i3] });
1520
+ return L(zn, { parentFloat: n2, children: [p2, null, p2 ? z(Te, {}) : null, z(Yo, { ...a3, command: o2.getCommand("paste") }), z(ve, { ...t3, command: o2.getCommand("formatPainterToggle") }), z(xa, { ...t3, command: o2.getCommand("copy") }), z(Te, {}), z(qo, { ...a3, command: o2.getCommand("formatFontFamily") }), z(Eo, { ...a3, command: o2.getCommand("formatFontSize") }), z(ve, { ...t3, command: o2.getCommand("formatBoldToggle") }), z(ve, { ...t3, command: o2.getCommand("formatItalicToggle") }), z(Zo, { ...a3 }), z(Xo, { ...a3 }), z(Mo, { ...a3 }), m3, d3, z(Te, {}), z(ro, { ...a3 }), z(lo, { ...a3 }), z(so, { ...a3 }), z(io, { ...a3 }), z(Fo, { ...a3 }), z(Te, {}), z(Io, { ...a3 }), z(on, { command: o2.getCommand("formatCellStyle"), ...a3 }), z(La, { command: o2.getCommand("formatTableStyle"), ...a3 }), z(Te, {}), z(zo, { ...a3 }), z(Wo, { ...a3 }), z($o, { ...a3 }), z(Te, {}), z($a, { ...a3 }), z(Ho, { ...a3 }), z(Lo, { ...a3 }), z(Ko, { ...a3 }), u2, g2, i3] });
1521
1521
  }, [o2, s2, l2, c2]);
1522
1522
  return z(Xe, { ref: t2, commands: o2, parentFloat: n2, commandButtonProps: a2, createToolbarPalette: m2, ...r2 });
1523
1523
  }));
@@ -1543,7 +1543,7 @@ ta.displayName = "InsertToolbar";
1543
1543
  const oa = $(O((e2, t2) => {
1544
1544
  const { commands: o2, parentFloat: n2, commandButtonProps: a2, ...r2 } = e2, l2 = gt((e3) => {
1545
1545
  const { commandButtonProps: t3, commandPopupProps: a3 } = e3;
1546
- return L(zn, { parentFloat: n2, children: [z(No, { ...a3 }), z(ve, { ...t3, command: o2.getCommand("protectionSheetToggle") }), z(Te, {}), z(Vo, { ...a3 }), z(Qo, { ...a3 }), z(Te, {}), z(ve, { ...t3, command: o2.getCommand("sheetViewToggleFormulaView"), scope: "view" }), z(ve, { ...t3, command: o2.getCommand("sheetViewToggleShowZeros"), scope: "view" }), z(Te, {}), z(Jo, { ...a3 }), z(Ia, { command: o2.getCommand("selectTheme"), ...a3 }), z(Te, {}), z(Yn, { ...a3, scope: "view" }), z(Te, {}), z(ve, { ...t3, command: o2.getCommand("fullScreenToggle"), scope: "view" })] });
1546
+ return L(zn, { parentFloat: n2, children: [z(No, { ...a3 }), z(ve, { ...t3, command: o2.getCommand("protectionSheetToggle") }), z(Te, {}), z(Vo, { ...a3 }), z(Qo, { ...a3 }), z(Te, {}), z(ve, { ...t3, command: o2.getCommand("sheetViewToggleFormulaView"), scope: "view" }), z(ve, { ...t3, command: o2.getCommand("sheetViewToggleShowZeros"), scope: "view" }), z(Te, {}), z(Jo, { ...a3 }), z(Ha, { command: o2.getCommand("selectTheme"), ...a3 }), z(Te, {}), z(Yn, { ...a3, scope: "view" }), z(Te, {}), z(ve, { ...t3, command: o2.getCommand("fullScreenToggle"), scope: "view" })] });
1547
1547
  }, [o2]);
1548
1548
  return z(Xe, { ref: t2, commands: o2, parentFloat: n2, commandButtonProps: a2, createToolbarPalette: l2, ...r2 });
1549
1549
  }));
@@ -1595,9 +1595,9 @@ const na = (e2) => z(ia, { ...e2 }), aa = $((e2) => {
1595
1595
  }));
1596
1596
  ia.displayName = "WorkbookToolbars";
1597
1597
  const sa = (e2) => {
1598
- const { workbook: t2, workbookElement: o2, target: n2, commands: a2, darkMode: r2, onNewWorkbook: l2 = da } = e2, i2 = kt(), [s2, d2] = U(t2?.getSelectedSheet()), [c2, m2] = U(t2?.getSheets().getItems()), p2 = gt(l2, [l2]), g2 = v(), h2 = V(() => [new Rt("activateTask", n2, { label: "Activate Task", description: "Activate Task Pane.", shortcut: { key: "F6" } }), new Rt("workbookStatistics", n2, { label: "Workbook Statistics", description: "Show the workbook statistics.", shortcut: { key: "G", modifiers: [Dt.Ctrl, Dt.Shift] } }), new Rt("workbookStatistics", n2, { label: "Workbook Statistics", description: "Show the workbook statistics.", shortcut: { key: "G", modifiers: [Dt.Ctrl, Dt.Shift] } }), new Rt("showFormat", n2, { label: "Show Format", description: "Open the format pane.", shortcut: { key: "F", modifiers: [Dt.Ctrl, Dt.Shift] } }), new Pt("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 Pt("deleteCellStyle", n2, { label: "Delete Cell Style", scopedLabels: { cellStyle: "Delete" }, description: "Remove a named style that is no longer needed." }), new Pt("modifyCellStyle", n2, { label: "Modify Cell Style", scopedLabels: { cellStyle: "Modify" }, description: "Update a style with the currently style." }), new Rt("find", n2, { label: "Find", description: "Open the Find window.", icon: "Find", shortcut: [{ key: "F", modifiers: [Dt.Ctrl] }, { key: "F5", modifiers: [Dt.Shift] }] }), new Rt("findReplace", n2, { label: "Find & Replace", description: "Open the Find & Replace window.", icon: "FindReplace", shortcut: [{ key: "H", modifiers: [Dt.Ctrl] }, { key: "H", modifiers: [Dt.Ctrl, Dt.Alt] }] }), new Rt("goto", n2, { label: "Go To", description: "Open the 'Go To' window.", icon: "Goto", shortcut: [{ key: "G", modifiers: [Dt.Ctrl] }] }), new Rt("workbookViewToggleExpandFormulaBar", n2, { label: "Toggle Expand Formula bar", description: "Expand or collapse the formula bar.", shortcut: { key: "U", modifiers: [Dt.Ctrl, Dt.Shift] } }), new Rt("workbookViewToggleShowFormulaBar", n2, { label: "View Formula bar", scopedLabels: { view: "Formula Bar" }, description: "Show or hide the formula bar." }), new Rt("workbookViewToggleShowTabs", n2, { label: "View Sheet Tabs", description: "Show or hide the sheet tabs.", scopedLabels: { view: "Sheet Tabs" } }), new Rt("workbookViewToggleShowStatusBar", n2, { label: "View Status Bar", description: "Show or hide the status bar.", scopedLabels: { view: "Status Bar" } }), new Rt("workbookViewToggleShowHorizontalScrollBar", n2, { label: "View Horizontal Scrollbar", description: "Show or hide the horizontal scrollbar.", scopedLabels: { view: "Horizontal Scrollbar" } }), new Rt("workbookViewToggleShowVerticalScrollBar", n2, { label: "View Vertical Scrollbar", description: "Show or hide the vertical scrollbar.", scopedLabels: { view: "Vertical Scrollbar" } }), new Pt("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 Pt("deleteSheet", n2, { label: "Delete Sheet", scopedLabels: { sheet: "Delete" }, description: "Delete the sheet and all the data." }), new Pt("addSheet", n2, { label: "Insert Sheet", scopedLabels: { sheet: "Insert" }, description: "Insert sheet before the current sheet.", shortcut: [{ key: "F11", modifiers: [Dt.Shift] }, { key: "F1", modifiers: [Dt.Alt, Dt.Shift] }] }), new Pt("duplicateSheet", n2, { label: "Duplicate Sheet", description: "Duplicate the current sheet.", scopedLabels: { sheet: "Duplicate" } }), new Pt("nextSheet", n2, { label: "Next Sheet", scopedLabels: { sheet: "Next" }, description: "Activate the next sheet.", shortcut: [{ key: "PageDown", modifiers: [Dt.Ctrl] }] }), new Pt("previousSheet", n2, { label: "Previous Sheet", scopedLabels: { sheet: "Previous" }, description: "Activate the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [Dt.Ctrl] }] }), new Pt("selectNextSheet", n2, { label: "Select Next Sheet", scopedLabels: { sheet: "Select Next" }, description: "Select the next sheet.", shortcut: [{ key: "PageDown", modifiers: [Dt.Ctrl, Dt.Shift] }] }), new Pt("selectPreviousSheet", n2, { label: "Select Previous Sheet", scopedLabels: { sheet: "Select Previous" }, description: "Select the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [Dt.Ctrl, Dt.Shift] }] }), new Pt("selectTheme", n2, { label: "Theme", description: "Select a theme that coveys a style suitable for your data." }), new Pt("selectNamed", n2, { label: (e3) => e3?.getName() ?? "Select Named Item", scopedLabels: { namedItem: (e3) => e3?.getName() ?? "Select" }, description: "Select the item." }), new Pt("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 Pt("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 Pt("deleteNamedReference", n2, { label: "Delete Named Reference", scopedLabels: { namedItem: "Delete" }, description: "Remove the named reference.", icon: "DeleteNamedRange" }), new Rt("activeNameBox", n2, { label: "Activate Name Box", description: "Move the focus to the name box.", shortcut: { key: "F3", modifiers: [Dt.Alt] } }), new Rt("createNamedReferenceFromSelection", n2, { label: "Create from Selection", description: "Automatically generate names from the selected cells.", shortcut: { key: "F3", modifiers: [Dt.Ctrl, Dt.Shift] } }), new Rt("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: [Dt.Ctrl] } }), new Pt("fullScreenToggle", n2, { label: "FullScreen", description: "Toggle showing the workbook using the full screen.", shortcut: { key: "F11" }, icon: "FullScreen" }), new Pt("showScriptEditor", n2, { label: "Scripts", scopedLabels: { scripts: "Script Editor…" }, description: "Show the script editor.", icon: "ScriptRun", shortcut: [{ key: "F11", modifiers: [Dt.Alt] }] }), new Pt("executeScript", n2, { label: "Run Script", description: "Run the selected or last executed script.", icon: "ScriptRun", shortcut: { key: "F8" } }), new Pt("executeSelectedScript", n2, { label: "Run Script", description: "Run the selected script.", icon: "ScriptRun", shortcut: { key: "F8" } }), new Pt("saveScripts", n2, { label: "Save Script", description: "Save the current scripts.", icon: "ScriptSave" }), new Pt("maximumWorkbookToggle", n2, { label: "Maximize", description: "Toggle showing the workbook maximized.", shortcut: { key: "F10", modifiers: [Dt.Ctrl] } }), new Pt("spellCheck", n2, { label: "Spell Check", description: "Check the workbook for spelling mistakes.", shortcut: { key: "F7" } }), new Pt("calculateAll", n2, { label: "Calculate Now", description: "Recalculate all formulas.", icon: "Calculate", shortcut: { key: "F9" } }), new Rt("closeWorkbook", n2, { label: "Close Workbook", description: "Close the workbook.", shortcut: { key: "W", modifiers: [Dt.Ctrl] } }), new Rt("newWorkbook", n2, { label: "New Workbook", description: "Create a new workbook in another tab.", icon: "FileNew" })], []), f2 = V(() => {
1598
+ const { workbook: t2, workbookElement: o2, target: n2, commands: a2, darkMode: r2, onNewWorkbook: l2 = da } = e2, i2 = kt(), [s2, d2] = U(t2?.getSelectedSheet()), [c2, m2] = U(t2?.getSheets().getItems()), p2 = gt(l2, [l2]), g2 = T(), h2 = V(() => [new Pt("activateTask", n2, { label: "Activate Task", description: "Activate Task Pane.", shortcut: { key: "F6" } }), new Pt("workbookStatistics", n2, { label: "Workbook Statistics", description: "Show the workbook statistics.", shortcut: { key: "G", modifiers: [Mt.Ctrl, Mt.Shift] } }), new Pt("workbookStatistics", n2, { label: "Workbook Statistics", description: "Show the workbook statistics.", shortcut: { key: "G", modifiers: [Mt.Ctrl, Mt.Shift] } }), new Pt("showFormat", n2, { label: "Show Format", description: "Open the format pane.", shortcut: { key: "F", modifiers: [Mt.Ctrl, Mt.Shift] } }), new Dt("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 Dt("deleteCellStyle", n2, { label: "Delete Cell Style", scopedLabels: { cellStyle: "Delete" }, description: "Remove a named style that is no longer needed." }), new Dt("modifyCellStyle", n2, { label: "Modify Cell Style", scopedLabels: { cellStyle: "Modify" }, description: "Update a style with the currently style." }), new Pt("find", n2, { label: "Find", description: "Open the Find window.", icon: "Find", shortcut: [{ key: "F", modifiers: [Mt.Ctrl] }, { key: "F5", modifiers: [Mt.Shift] }] }), new Pt("findReplace", n2, { label: "Find & Replace", description: "Open the Find & Replace window.", icon: "FindReplace", shortcut: [{ key: "H", modifiers: [Mt.Ctrl] }, { key: "H", modifiers: [Mt.Ctrl, Mt.Alt] }] }), new Pt("goto", n2, { label: "Go To", description: "Open the 'Go To' window.", icon: "GoTo", shortcut: [{ key: "G", modifiers: [Mt.Ctrl] }] }), new Pt("workbookViewToggleExpandFormulaBar", n2, { label: "Toggle Expand Formula bar", description: "Expand or collapse the formula bar.", shortcut: { key: "U", modifiers: [Mt.Ctrl, Mt.Shift] } }), new Pt("workbookViewToggleShowFormulaBar", n2, { label: "View Formula bar", scopedLabels: { view: "Formula Bar" }, description: "Show or hide the formula bar." }), new Pt("workbookViewToggleShowTabs", n2, { label: "View Sheet Tabs", description: "Show or hide the sheet tabs.", scopedLabels: { view: "Sheet Tabs" } }), new Pt("workbookViewToggleShowStatusBar", n2, { label: "View Status Bar", description: "Show or hide the status bar.", scopedLabels: { view: "Status Bar" } }), new Pt("workbookViewToggleShowHorizontalScrollBar", n2, { label: "View Horizontal Scrollbar", description: "Show or hide the horizontal scrollbar.", scopedLabels: { view: "Horizontal Scrollbar" } }), new Pt("workbookViewToggleShowVerticalScrollBar", n2, { label: "View Vertical Scrollbar", description: "Show or hide the vertical scrollbar.", scopedLabels: { view: "Vertical Scrollbar" } }), new Dt("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 Dt("deleteSheet", n2, { label: "Delete Sheet", scopedLabels: { sheet: "Delete" }, description: "Delete the sheet and all the data." }), new Dt("addSheet", n2, { label: "Insert Sheet", scopedLabels: { sheet: "Insert" }, description: "Insert sheet before the current sheet.", shortcut: [{ key: "F11", modifiers: [Mt.Shift] }, { key: "F1", modifiers: [Mt.Alt, Mt.Shift] }] }), new Dt("duplicateSheet", n2, { label: "Duplicate Sheet", description: "Duplicate the current sheet.", scopedLabels: { sheet: "Duplicate" } }), new Dt("nextSheet", n2, { label: "Next Sheet", scopedLabels: { sheet: "Next" }, description: "Activate the next sheet.", shortcut: [{ key: "PageDown", modifiers: [Mt.Ctrl] }] }), new Dt("previousSheet", n2, { label: "Previous Sheet", scopedLabels: { sheet: "Previous" }, description: "Activate the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [Mt.Ctrl] }] }), new Dt("selectNextSheet", n2, { label: "Select Next Sheet", scopedLabels: { sheet: "Select Next" }, description: "Select the next sheet.", shortcut: [{ key: "PageDown", modifiers: [Mt.Ctrl, Mt.Shift] }] }), new Dt("selectPreviousSheet", n2, { label: "Select Previous Sheet", scopedLabels: { sheet: "Select Previous" }, description: "Select the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [Mt.Ctrl, Mt.Shift] }] }), new Dt("selectTheme", n2, { label: "Theme", description: "Select a theme that coveys a style suitable for your data." }), new Dt("selectNamed", n2, { label: (e3) => e3?.getName() ?? "Select Named Item", scopedLabels: { namedItem: (e3) => e3?.getName() ?? "Select" }, description: "Select the item." }), new Dt("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 Dt("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 Dt("deleteNamedReference", n2, { label: "Delete Named Reference", scopedLabels: { namedItem: "Delete" }, description: "Remove the named reference.", icon: "DeleteNamedRange" }), new Pt("activeNameBox", n2, { label: "Activate Name Box", description: "Move the focus to the name box.", shortcut: { key: "F3", modifiers: [Mt.Alt] } }), new Pt("createNamedReferenceFromSelection", n2, { label: "Create from Selection", description: "Automatically generate names from the selected cells.", shortcut: { key: "F3", modifiers: [Mt.Ctrl, Mt.Shift] } }), new Pt("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: [Mt.Ctrl] } }), new Dt("fullScreenToggle", n2, { label: "FullScreen", description: "Toggle showing the workbook using the full screen.", shortcut: { key: "F11" }, icon: "FullScreen" }), new Dt("showScriptEditor", n2, { label: "Scripts", scopedLabels: { scripts: "Script Editor…" }, description: "Show the script editor.", icon: "ScriptRun", shortcut: [{ key: "F11", modifiers: [Mt.Alt] }] }), new Dt("executeScript", n2, { label: "Run Script", description: "Run the selected or last executed script.", icon: "ScriptRun", shortcut: { key: "F8" } }), new Dt("executeSelectedScript", n2, { label: "Run Script", description: "Run the selected script.", icon: "ScriptRun", shortcut: { key: "F8" } }), new Dt("saveScripts", n2, { label: "Save Script", description: "Save the current scripts.", icon: "ScriptSave" }), new Dt("maximumWorkbookToggle", n2, { label: "Maximize", description: "Toggle showing the workbook maximized.", shortcut: { key: "F10", modifiers: [Mt.Ctrl] } }), new Dt("spellCheck", n2, { label: "Spell Check", description: "Check the workbook for spelling mistakes.", shortcut: { key: "F7" } }), new Dt("calculateAll", n2, { label: "Calculate Now", description: "Recalculate all formulas.", icon: "Calculate", shortcut: { key: "F9" } }), new Pt("closeWorkbook", n2, { label: "Close Workbook", description: "Close the workbook.", shortcut: { key: "W", modifiers: [Mt.Ctrl] } }), new Pt("newWorkbook", n2, { label: "New Workbook", description: "Create a new workbook in another tab.", icon: "FileNew" })], []), f2 = V(() => {
1599
1599
  let e3 = null;
1600
- return e3 = a2 ? a2.createChildGroup(n2, "workbook", false) : new Mt(n2, "workbook"), e3.addCommands(h2, true), e3;
1600
+ return e3 = a2 ? a2.createChildGroup(n2, "workbook", false) : new Ft(n2, "workbook"), e3.addCommands(h2, true), e3;
1601
1601
  }, [a2, h2]), x2 = wt(), b2 = W.useRef(null), y2 = gt(() => {
1602
1602
  let e3, o3 = null;
1603
1603
  const n3 = f2.getCommand("executeScript");
@@ -1659,7 +1659,7 @@ const sa = (e2) => {
1659
1659
  }, onScriptsChange: (e3) => {
1660
1660
  y2();
1661
1661
  } });
1662
- const { isFullscreenAvailable: S2, isFullscreenEnabled: C2, toggleFullscreen: T2 } = eo({ target: { current: o2 ?? document.body } }), P2 = R();
1662
+ const { isFullscreenAvailable: S2, isFullscreenEnabled: C2, toggleFullscreen: v2 } = eo({ target: { current: o2 ?? document.body } }), P2 = R();
1663
1663
  j(() => {
1664
1664
  f2.getCommand("selectTheme").update({ state: () => t2.getTheme(), context: () => ({ theme: t2.getTheme(), themes: P2, darkMode: r2 }) });
1665
1665
  }, [t2?.getTheme(), r2]);
@@ -1833,7 +1833,7 @@ const sa = (e2) => {
1833
1833
  });
1834
1834
  } }), j(() => {
1835
1835
  f2.getCommand("fullScreenToggle").update({ state: C2, disabled: !S2, icon: C2 ? "FullScreenOff" : "FullScreen" }).updateCallback(() => {
1836
- T2();
1836
+ v2();
1837
1837
  });
1838
1838
  }, [C2, S2]), j(() => {
1839
1839
  const e3 = t2.getProtection().isStructureAllowed();
@@ -1992,9 +1992,9 @@ const ya = (e2) => z(ba, { ...e2 }), wa = (e2) => z(fa, { ...e2 }), ka = (e2) =>
1992
1992
  K(() => {
1993
1993
  me2.current.focus();
1994
1994
  }, []);
1995
- const Ve2 = sa({ workbook: ce2, workbookElement: Ce2.current, target: () => me2.current, commands: g2, darkMode: He2.body.darkMode, onNewWorkbook: a2 }), Ke2 = q(null), [Ge2, Ue2] = U(false), [je2, qe2] = U(null), [Xe2, Ze2] = U(Ft.Top), [Ye2, Qe2] = U(f.EmptyBounds), et2 = K(() => {
1995
+ const Ve2 = sa({ workbook: ce2, workbookElement: Ce2.current, target: () => me2.current, commands: g2, darkMode: He2.body.darkMode, onNewWorkbook: a2 }), Ke2 = q(null), [Ge2, Ue2] = U(false), [je2, qe2] = U(null), [Xe2, Ze2] = U(Nt.Top), [Ye2, Qe2] = U(f.EmptyBounds), et2 = K(() => {
1996
1996
  Ue2(false), qe2(null);
1997
- }, []), tt2 = K((e3, t3, o3 = Ft.Top) => {
1997
+ }, []), tt2 = K((e3, t3, o3 = Nt.Top) => {
1998
1998
  Qe2(e3), Ze2(o3), qe2(t3), null !== Ke2.current && setTimeout(() => {
1999
1999
  null !== Ke2.current && Ke2.current.update();
2000
2000
  }, 160), Ue2(true);
@@ -2020,19 +2020,19 @@ const ya = (e2) => z(ba, { ...e2 }), wa = (e2) => z(fa, { ...e2 }), ka = (e2) =>
2020
2020
  j(() => {
2021
2021
  yt2 ? St2.open(0) : St2.close(0);
2022
2022
  }, [yt2]);
2023
- const Pt2 = gt((e3, t3) => {
2023
+ const Rt2 = gt((e3, t3) => {
2024
2024
  if (e3?.isDefaultPrevented()) return true;
2025
2025
  e3.preventDefault(), yt2 && yt2.anchor === e3.currentTarget ? wt2(null) : wt2({ anchor: e3.currentTarget, popperProps: { offsets: [-4, 2] }, createPopupPanel: (e4) => {
2026
2026
  const { floatReference: o3 } = e4;
2027
2027
  return $2({ filter: t3, commands: Ve2, floatReference: o3, sx: { ...A2 } });
2028
2028
  } });
2029
- }, [$2, A2, Ve2, ce2, yt2]), Mt2 = gt((e3) => {
2029
+ }, [$2, A2, Ve2, ce2, yt2]), Dt2 = gt((e3) => {
2030
2030
  if (e3.originalEvent?.isDefaultPrevented()) return true;
2031
2031
  e3.originalEvent?.preventDefault(), wt2({ clientX: e3.clientX, clientY: e3.clientY, createPopupPanel: (e4) => {
2032
2032
  const { floatReference: t3 } = e4;
2033
2033
  return I2({ commands: Ve2, workbook: ce2, floatReference: t3, sx: { ...A2 } });
2034
2034
  } });
2035
- }, [I2, A2, Ve2, ce2]), Bt2 = gt((e3, t3) => {
2035
+ }, [I2, A2, Ve2, ce2]), Ft2 = gt((e3, t3) => {
2036
2036
  if (e3?.isDefaultPrevented()) return true;
2037
2037
  e3.preventDefault(), wt2({ clientX: e3.clientX, clientY: e3.clientY, createPopupPanel: (e4) => {
2038
2038
  const { floatReference: o3 } = e4;
@@ -2040,7 +2040,7 @@ const ya = (e2) => z(ba, { ...e2 }), wa = (e2) => z(fa, { ...e2 }), ka = (e2) =>
2040
2040
  } });
2041
2041
  }, [O2, A2, Ve2]);
2042
2042
  V(() => {
2043
- const e3 = [new Rt("openContextMenu", () => me2.current, { label: "Context Menu", description: "Open the context menu.", shortcut: [{ key: "F10", modifiers: [Dt.Shift] }, { key: "ContextMenu" }] })];
2043
+ const e3 = [new Pt("openContextMenu", () => me2.current, { label: "Context Menu", description: "Open the context menu.", shortcut: [{ key: "F10", modifiers: [Mt.Shift] }, { key: "ContextMenu" }] })];
2044
2044
  Ve2.addCommands(e3, true);
2045
2045
  }, [Ve2]), j(() => {
2046
2046
  Ve2.getCommand("openContextMenu").updateCallback(() => {
@@ -2048,7 +2048,7 @@ const ya = (e2) => z(ba, { ...e2 }), wa = (e2) => z(fa, { ...e2 }), ka = (e2) =>
2048
2048
  me2.current?.getGridElement()?.scrollCellCoordsIntoView(e3).then((t3) => {
2049
2049
  requestAnimationFrame(() => {
2050
2050
  const o3 = Pe2.getView().getZoomScale() / 100, n3 = Pe2.getColumnHeaders().findOffset(e3.colIndex + 1) * o3, a3 = Pe2.getRowHeaders().findOffset(e3.rowIndex + 1) * o3, r3 = me2.current?.getGridElement()?.getRelativePointFromClient(0, 0) || { x: 0, y: 0 };
2051
- Mt2({ clientX: n3 - r3.x - t3.left + 6, clientY: a3 - r3.y - t3.top + 6 });
2051
+ Dt2({ clientX: n3 - r3.x - t3.left + 6, clientY: a3 - r3.y - t3.top + 6 });
2052
2052
  });
2053
2053
  });
2054
2054
  });
@@ -2064,7 +2064,7 @@ const ya = (e2) => z(ba, { ...e2 }), wa = (e2) => z(fa, { ...e2 }), ka = (e2) =>
2064
2064
  }, []), Ht2 = gt((e3) => {
2065
2065
  const { style: t3, ...o3 } = e3;
2066
2066
  return z(M, { style: { ...t3, paddingTop: "4px", paddingBottom: "4px" }, ...o3, sheet: Pe2, endGap: 700, onShowTooltip: (e4) => {
2067
- tt2(e4.anchor, e4.display, Ft.Left);
2067
+ tt2(e4.anchor, e4.display, Nt.Left);
2068
2068
  }, onCloseTooltip: () => et2() });
2069
2069
  }, [Pe2]);
2070
2070
  j(() => {
@@ -2086,7 +2086,7 @@ const ya = (e2) => z(ba, { ...e2 }), wa = (e2) => z(fa, { ...e2 }), ka = (e2) =>
2086
2086
  }
2087
2087
  }, [Ve2, Ot2]), Ut2 = V(() => Ot2 ? z(J, { sx: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", pointerEvents: "none", display: "flex", justifyContent: "center", alignItems: "center", background: (e3) => e3.palette.divider, color: (e3) => e3.palette.primary.dark }, children: z(ee, { variant: "h4", children: Ot2 }) }) : null, [Ot2]), _t2 = q(null), qt2 = V(() => z(Jt, { in: !ye2, nodeRef: _t2, timeout: 500, classNames: "animating", unmountOnExit: true, children: z(J, { style: { display: "flex", alignItems: "center", justifyContent: "center", left: "0px", top: "0px", width: "100%", height: "100%", pointerEvents: ye2 ? "none" : i2?.pointerEvents, position: "absolute", boxSizing: "border-box" }, children: G2({ ref: _t2, transitionDelay: "0", transparentBackground: false, sx: { opacity: ye2 ? 0 : i2?.opacity, pointerEvents: ye2 ? "none" : i2?.pointerEvents, position: "absolute", left: "0px", top: "0px", width: "100%", height: "100%", ..._2 } }) }) }), [ye2, G2, _2]), Xt2 = V(() => y2({ sx: { marginTop: (e3) => e3.spacing(0.25), marginLeft: (e3) => e3.spacing(1), marginRight: (e3) => e3.spacing(1) }, workbook: ce2, sheetElement: me2.current, gridStyle: He2, onFocus: Lt2, ...b2, NamedCollectionEditorProps: { restoreFocus: (e3) => me2.current.focus(e3), ...b2?.NamedCollectionEditorProps, commandPopupButtonProps: { commands: Ve2, ...b2?.NamedCollectionEditorProps?.commandPopupButtonProps } } }, Se2), [y2, b2, ce2, He2, Ve2, ye2]), Zt2 = K((e3) => {
2088
2088
  const { movable: t3, ...o3 } = e3, n3 = { movable: t3, onContextMenuCapture: (e4) => {
2089
- Bt2(e4, t3);
2089
+ Ft2(e4, t3);
2090
2090
  }, ...o3 }, a3 = t3.getContent().getType();
2091
2091
  let r3 = null;
2092
2092
  if ("picture" === a3) return z(F, { loadingPanel: z(Fe, { transitionDelay: "100", style: { position: "absolute" }, sx: { border: (e4) => `solid 1px ${e4.palette.action.active}` } }), picture: t3.getContent(), description: t3.getDescription() ?? t3?.getName(), ...n3 });
@@ -2099,18 +2099,18 @@ const ya = (e2) => z(ba, { ...e2 }), wa = (e2) => z(fa, { ...e2 }), ka = (e2) =>
2099
2099
  r3 = z(B, { ...e4 });
2100
2100
  }
2101
2101
  return z("div", { style: { position: "absolute", clipPath: "inset(0px)", display: "flex", alignItems: "stretch", justifyContent: "stretch", pointerEvents: "all" }, children: r3 }, t3.getUUID());
2102
- }, []), Yt2 = V(() => Y2({ style: Da, onFocus: It2, gridStyle: He2, headersStyle: We2, sheet: Pe2, commands: Ve2, onSheetContextMenu: Mt2, onViewportChange: (e3) => {
2102
+ }, []), Yt2 = V(() => Y2({ style: Da, onFocus: It2, gridStyle: He2, headersStyle: We2, sheet: Pe2, commands: Ve2, onSheetContextMenu: Dt2, onViewportChange: (e3) => {
2103
2103
  Oe2(e3);
2104
2104
  }, showScrollbars: false, viewportComponent: fe2, onRepeatCommandChange: u2, onElementLoad: ke2, onShowColumnTooltip: (e3) => {
2105
- tt2(e3.anchor, e3.display, Ft.Top);
2105
+ tt2(e3.anchor, e3.display, Nt.Top);
2106
2106
  }, onShowRowTooltip: (e3) => {
2107
- tt2(e3.anchor, e3.display, Ft.Right);
2107
+ tt2(e3.anchor, e3.display, Nt.Right);
2108
2108
  }, onShowTooltip: (e3) => {
2109
2109
  tt2({ x: e3.anchor.x, y: e3.anchor.y, width: 0, height: 0 }, e3.display, e3.placement);
2110
2110
  }, onCloseTooltip: () => et2(), renderMovable: Zt2, ...X2, cellRenderProps: { onFilterButtonMouseDown: (e3, t3) => {
2111
- X2?.cellRenderProps?.onFilterButtonMouseDown(e3, t3), Pt2(e3, t3);
2111
+ X2?.cellRenderProps?.onFilterButtonMouseDown(e3, t3), Rt2(e3, t3);
2112
2112
  }, ...X2?.cellRenderProps } }, me2), [Ve2, X2, Pe2, He2, u2]), Qt2 = V(() => {
2113
- let e3 = z(Nt, { ref: ut2, style: Da, viewport: $e2, touchElement: me2.current?.getGridElement()?.stage, onScrollViewport: (e4) => {
2113
+ let e3 = z(Bt, { ref: ut2, style: Da, viewport: $e2, touchElement: me2.current?.getGridElement()?.stage, onScrollViewport: (e4) => {
2114
2114
  me2.current?.getGridElement()?.scrollTo(e4);
2115
2115
  }, showHorizontalScrollbar: rt2 || at2, showVerticalScrollbar: st2, createHorizontalScrollbar: bt2, createVerticalScrollbar: Ht2, children: Yt2 });
2116
2116
  return ft2 || 0 === ht2 || (e3 = L(H, { children: [e3, xt2] })), te2 ? te2(e3) : e3;
@@ -2198,8 +2198,13 @@ const Ba = $(O((e2, t2) => {
2198
2198
  } catch (e4) {
2199
2199
  l2.showError(e4);
2200
2200
  }
2201
- } }), z(Te, { orientation: "horizontal", sx: { marginTop: (e3) => e3.spacing(1.5), marginBottom: (e3) => e3.spacing(0.75) } }), z(J, { sx: { display: "flex", flex: "1 1 100%", alignItems: "center", justifyContent: "start", flexDirection: "column", marginTop: (e3) => e3.spacing(2), marginBottom: (e3) => e3.spacing(1) }, children: L("div", { style: { display: "flex", alignItems: "start", gap: "2px" }, children: [z(rn, { table: x2, styles: f2.styles(), bodyStyle: f2.bodyStyle(), cellHeight: 30, isLive: true }), z(Aa, { command: n2.getCommand("formatTableStyle"), commands: n2, disabledQuickKey: true })] }) }), z(Te, { orientation: "horizontal" }), L(J, { className: un, children: [z(ve, { variant: ut.Menuitem, command: n2.getCommand("convertTableToRange"), commandState: x2 }), z(ve, { variant: ut.Menuitem, commandState: x2, command: n2.getCommand("deleteTable") })] })] })] }) });
2202
- })), Ea = $((e2) => {
2201
+ } }), z(Te, { orientation: "horizontal", sx: { marginTop: (e3) => e3.spacing(1.5), marginBottom: (e3) => e3.spacing(0.75) } }), z(J, { sx: { display: "flex", flex: "1 1 100%", alignItems: "center", justifyContent: "start", flexDirection: "column", marginTop: (e3) => e3.spacing(2), marginBottom: (e3) => e3.spacing(1) }, children: L("div", { style: { display: "flex", alignItems: "start", gap: "2px" }, children: [z(rn, { table: x2, styles: f2.styles(), bodyStyle: f2.bodyStyle(), cellHeight: 30, isLive: true }), z(La, { command: n2.getCommand("formatTableStyle"), commands: n2, disabledQuickKey: true })] }) }), z(Te, { orientation: "horizontal" }), L(J, { className: un, children: [z(ve, { variant: ut.Menuitem, command: n2.getCommand("convertTableToRange"), commandState: x2 }), z(ve, { variant: ut.Menuitem, commandState: x2, command: n2.getCommand("deleteTable") })] })] })] }) });
2202
+ })), Ea = (e2, t2) => {
2203
+ const { model: o2, commands: n2, entryKey: a2, frame: r2, ...l2 } = e2;
2204
+ return z(Ba, { ref: t2, commands: n2, ...l2 });
2205
+ }, Aa = () => {
2206
+ Rt.register("plugin-table", { icons: {} }), v.registerTaskPane({ key: "tableDetails", getTitle: () => "Table Details", getIcon: () => "Table", renderTaskPane: Ea }, true);
2207
+ }, Ia = $((e2) => {
2203
2208
  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) => {
2204
2209
  const t3 = { variant: ut.Menuitem, commandHook: m2, context: "table" }, n3 = L(H, { children: [z(ve, { ...t3, command: d2.getCommand("formatTableStyleClearCellStyles"), commandState: o2, disabled: c2 }), z(ve, { ...t3, style: { fontWeight: 550 }, command: d2.getCommand("formatTableStyle"), commandState: { name: o2.getName() }, disabled: c2 }), z(Te, { orientation: "horizontal" }), z(ve, { ...t3, command: d2.getCommand("setDefaultTableStyle"), commandState: o2.getName(), disabled: c2 }), z(Te, { orientation: "horizontal" }), z(ve, { ...t3, command: d2.getCommand("deleteTableStyle"), commandState: o2?.getName(), disabled: c2 || !o2 || o2.isBuiltIn() })] });
2205
2210
  return Re({ ...e3, children: z(J, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: z(J, { sx: { overflow: "auto", flex: "1 1 100%" }, children: n3 }) }) });
@@ -2211,7 +2216,7 @@ const Ba = $(O((e2, t2) => {
2211
2216
  a2?.(o2?.getName());
2212
2217
  }, ...g2, children: x2 }, o2.getName());
2213
2218
  return l2 && (b2 = z(Ge, { label: t2.getStyleOptions().name, parentFloat: s2, createPopupPanel: h2, children: b2 })), b2;
2214
- }), Aa = $(O((e2, t2) => {
2219
+ }), La = $(O((e2, t2) => {
2215
2220
  const { commands: o2, command: n2, commandHook: a2, selectedTable: r2, onSelectTableStyleName: l2, disabled: i2 = false, bodyStyle: s2, disabledQuickKey: d2 = false, usePreviewIcon: m2 = false, ...p2 } = e2;
2216
2221
  bt(n2);
2217
2222
  const u2 = n2?.context(), g2 = u2?.styles, h2 = r2 ?? u2?.table?.();
@@ -2231,7 +2236,7 @@ const Ba = $(O((e2, t2) => {
2231
2236
  C2.current || (C2.current = document.createElement("canvas"));
2232
2237
  const n3 = (e4) => {
2233
2238
  const n4 = g2().getTableStyle(e4);
2234
- return n4 ? z(Ea, { table: y2, tableStyle: n4, selectedTableStyleName: y2.getStyleOptions().name, bodyStyle: u2.bodyStyle(), commands: t3, commandHook: a2, canvas: C2.current, ...o3 }, e4) : null;
2239
+ return n4 ? z(Ia, { table: y2, tableStyle: n4, selectedTableStyleName: y2.getStyleOptions().name, bodyStyle: u2.bodyStyle(), commands: t3, commandHook: a2, canvas: C2.current, ...o3 }, e4) : null;
2235
2240
  }, r3 = (e4, t4, o4 = true) => {
2236
2241
  const a3 = [];
2237
2242
  for (let e5 = 0; e5 < t4.length; e5++) {
@@ -2261,7 +2266,7 @@ const Ba = $(O((e2, t2) => {
2261
2266
  if (!u2 || !m2) return n2?.icon();
2262
2267
  }, [y2, k2, T2, n2]);
2263
2268
  return z(Pe, { 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(He, { label: n2?.label(), description: n2?.description(), disabled: t3, children: e3 }), disabled: T2, icon: R2, ...p2 });
2264
- })), Ia = $(O((e2, t2) => {
2269
+ })), Ha = $(O((e2, t2) => {
2265
2270
  const { command: o2, commandHook: n2, selectedTheme: a2, onSelectTheme: r2, disabled: l2 = false, darkMode: i2, label: s2, icon: d2, variant: c2, ...m2 } = e2;
2266
2271
  bt(o2);
2267
2272
  const p2 = o2?.context()?.themes, u2 = a2 || o2?.context()?.theme, g2 = i2 ?? o2?.context()?.darkMode, h2 = l2 || o2?.disabled(), f2 = gt((e3) => {
@@ -2272,7 +2277,7 @@ const Ba = $(O((e2, t2) => {
2272
2277
  return (h2 || t3) && (l3 = z("div", { children: l3 })), z(We, { command: o2, placement: c2 === ut.Toolbar ? "bottom-start" : "right-start", disabled: h2 || t3, ...r3, children: l3 });
2273
2278
  }, [o2, h2]);
2274
2279
  return z(wn, { ref: t2, themes: p2, selectedTheme: u2, onSelectTheme: f2, variant: c2 === ut.Menuitem ? Ne.Menuitem : Ne.Toolbar, createTooltip: x2, disabled: h2, darkMode: g2, ...m2 });
2275
- })), La = $(O((e2, t2) => {
2280
+ })), za = $(O((e2, t2) => {
2276
2281
  const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, ...l2 } = e2, i2 = pt(o2, ["themeMode"])[0], s2 = gt((e3, t3) => {
2277
2282
  const o3 = { variant: ut.Menuitem, commandHook: n2, scope: "appearance", disabled: r2 }, a3 = L(H, { children: [z(ve, { ...o3, command: i2 }), z(ve, { ...o3, command: t3.getCommand("defaultThemeMode") }), z(Te, { orientation: "horizontal" }), z(ve, { ...o3, command: t3.getCommand("enableDarkGrid") }), z(ve, { ...o3, command: t3.getCommand("enableDarkImages") })] });
2278
2283
  return Re({ ...e3, children: a3 });
@@ -2280,7 +2285,7 @@ const Ba = $(O((e2, t2) => {
2280
2285
  return z(Pe, { 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: () => {
2281
2286
  i2?.execute(m2 ? "light" : "dark", n2);
2282
2287
  }, selected: p2, ...l2 });
2283
- })), Ha = $(O((e2, t2) => {
2288
+ })), Wa = $(O((e2, t2) => {
2284
2289
  const { commands: o2, commandHook: n2, scope: a2, disabled: r2 = false, sx: l2, ...i2 } = e2, s2 = K((e3, t3) => {
2285
2290
  const o3 = { variant: ut.Menuitem, scope: "help", commandHook: { ...n2, beforeExecute: (t4, o4) => {
2286
2291
  const a4 = n2?.beforeExecute?.(t4, o4);
@@ -2289,12 +2294,12 @@ const Ba = $(O((e2, t2) => {
2289
2294
  return Re({ ...e3, children: a3 });
2290
2295
  }, [r2, n2]);
2291
2296
  return z(Pe, { ref: t2, sx: l2, commands: o2, disabled: r2, commandHook: n2, scope: a2, label: "Help", tooltip: "Help, feedback, and keyboard shortcuts.", createPopupPanel: s2, icon: z(xt, { iconKey: "Help", style: { transform: "scale(0.75)" } }), ...i2 });
2292
- })), za = $(O((e2, t2) => {
2297
+ })), $a = $(O((e2, t2) => {
2293
2298
  const { ...o2 } = e2;
2294
2299
  return z(Oe, { ref: t2, ...o2, popupCommandKeys: ["insertFunctionSum", "insertFunctionAverage", "insertFunctionCount", "insertFunctionMax", "insertFunctionMin", null, "insertFunction"], quickCommand: "insertFunctionSum", popupScope: "insertFunction", label: "Quick Function", tooltip: "More functions." });
2295
2300
  }));
2296
- za.displayName = "InsertFunctionSumCommandPopupButton";
2297
- const Wa = new Map([{ key: "financial", label: "Financial", icon: "FormulaFinancial" }, { key: "logical", label: "Logical", icon: "FormulaLogical" }, { key: "text", label: "Text", icon: "FormulaText" }, { key: "dateTime", label: "Date & Time", icon: "FormulaDateTime" }, { key: "lookupReference", label: "Lookup & Reference", icon: "FormulaLookupReference" }, { key: "mathTrig", label: "Math & Trig", icon: "FormulaMathTrig" }, { key: "statDist", label: "Statistical", icon: "FormulaStatistical" }, { key: "engineering", label: "Engineering", icon: "FormulaEngineering" }, { key: "information", label: "Information", icon: "FormulaInformation" }, { key: "cube", label: "Cube", icon: "FormulaCube" }, { key: "database", label: "Database", icon: "FormulaDatabase" }, { key: "web", label: "Web", icon: "FormulaWeb" }, { key: "custom", label: "Custom", icon: "FormulaCustom" }].map((e2) => [e2.key, e2])), $a = $((e2) => {
2301
+ $a.displayName = "InsertFunctionSumCommandPopupButton";
2302
+ const Oa = new Map([{ key: "financial", label: "Financial", icon: "FormulaFinancial" }, { key: "logical", label: "Logical", icon: "FormulaLogical" }, { key: "text", label: "Text", icon: "FormulaText" }, { key: "dateTime", label: "Date & Time", icon: "FormulaDateTime" }, { key: "lookupReference", label: "Lookup & Reference", icon: "FormulaLookupReference" }, { key: "mathTrig", label: "Math & Trig", icon: "FormulaMathTrig" }, { key: "statDist", label: "Statistical", icon: "FormulaStatistical" }, { key: "engineering", label: "Engineering", icon: "FormulaEngineering" }, { key: "information", label: "Information", icon: "FormulaInformation" }, { key: "cube", label: "Cube", icon: "FormulaCube" }, { key: "database", label: "Database", icon: "FormulaDatabase" }, { key: "web", label: "Web", icon: "FormulaWeb" }, { key: "custom", label: "Custom", icon: "FormulaCustom" }].map((e2) => [e2.key, e2])), Va = $((e2) => {
2298
2303
  const { command: t2, formulaFunction: o2, commandHook: n2, disabled: a2 = false, parentFloat: r2, handleInsert: l2, icon: i2, label: s2, sx: d2, ...c2 } = e2, m2 = new Promise((e3) => {
2299
2304
  o2.getDescriptor().then((t3) => {
2300
2305
  e3(t3.getSummary());
@@ -2307,17 +2312,17 @@ const Wa = new Map([{ key: "financial", label: "Financial", icon: "FormulaFinanc
2307
2312
  }, onKeyDown: (e3) => {
2308
2313
  e3.keyCode === ft.Enter || (e3.keyCode, ft.Space);
2309
2314
  }, ...c2, children: z(J, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, children: z(ee, { component: "div", children: o2.getName() }) }) });
2310
- }), Oa = $(O((e2, t2) => {
2315
+ }), Ka = $(O((e2, t2) => {
2311
2316
  const { category: o2, commands: n2, commandHook: a2, scope: r2, sx: l2, disabled: i2 = false, parentFloat: s2, ...d2 } = e2, c2 = pt(n2, ["insertFunction"])[0], m2 = K((e3, t3) => {
2312
- const n3 = Wa.get(o2);
2317
+ const n3 = Oa.get(o2);
2313
2318
  if (!n3) return console.warn("invalidate category", o2), null;
2314
- const r3 = { commandHook: a2, ...e3 }, l3 = z(Va, { category: n3.label, ...r3, commands: t3 });
2319
+ const r3 = { commandHook: a2, ...e3 }, l3 = z(Ga, { category: n3.label, ...r3, commands: t3 });
2315
2320
  return Re({ ...e3, children: l3 });
2316
- }, [o2, c2, a2, r2]), p2 = Wa.get(o2);
2317
- return z(Pe, { ref: t2, commands: n2, commandHook: a2, createPopupPanel: m2, label: p2.label, tooltip: "Insert Function", icon: Wa.get(o2)?.icon ?? "FormulaGroup", ...d2 });
2321
+ }, [o2, c2, a2, r2]), p2 = Oa.get(o2);
2322
+ return z(Pe, { ref: t2, commands: n2, commandHook: a2, createPopupPanel: m2, label: p2.label, tooltip: "Insert Function", icon: Oa.get(o2)?.icon ?? "FormulaGroup", ...d2 });
2318
2323
  }));
2319
- Oa.displayName = "InsertFunctionCommandPopupButton";
2320
- const Va = $(O((e2, t2) => {
2324
+ Ka.displayName = "InsertFunctionCommandPopupButton";
2325
+ const Ga = $(O((e2, t2) => {
2321
2326
  const { commands: o2, category: n2, commandHook: a2, ...r2 } = e2, l2 = pt(o2, ["insertFunction"]), [i2, s2] = U([]), [d2, c2] = U(false);
2322
2327
  j(() => {
2323
2328
  (async () => {
@@ -2331,22 +2336,22 @@ const Va = $(O((e2, t2) => {
2331
2336
  };
2332
2337
  for (let e3 = 0; e3 < m2; e3++) {
2333
2338
  const t3 = i2[e3];
2334
- p2[e3] = z($a, { command: u2, formulaFunction: t3, handleInsert: g2 }, `formula-${t3.getName()}-${e3}`);
2339
+ p2[e3] = z(Va, { command: u2, formulaFunction: t3, handleInsert: g2 }, `formula-${t3.getName()}-${e3}`);
2335
2340
  }
2336
2341
  return Re({ ...r2, children: z(J, { ref: t2, sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: m2 > 0 ? z(H, { children: z(J, { sx: { overflow: "auto", flex: "1 1 100%" }, children: p2 }) }) : null }) });
2337
- })), Ka = $(O((e2, t2) => {
2342
+ })), Ua = $(O((e2, t2) => {
2338
2343
  const { sx: o2, style: n2, className: a2, licenseKey: r2, renderLoadingPanel: l2, ...i2 } = e2;
2339
2344
  r2 && g.setLicenseKey(r2);
2340
2345
  const s2 = V(() => {
2341
2346
  const e3 = { transitionDelay: "160ms", transparentBackground: true };
2342
2347
  return z(J, { sx: o2, style: { width: "100%", height: "100%", position: "absolute", display: "flex", alignItems: "center", justifyContent: "center", ...n2 }, children: l2?.(e3) ?? z(Fe, { ...e3 }) });
2343
- }, [o2, n2, l2]), d2 = V(() => W.lazy(async () => await Promise.resolve().then(() => ir)), []);
2348
+ }, [o2, n2, l2]), d2 = V(() => W.lazy(async () => await Promise.resolve().then(() => dr)), []);
2344
2349
  return z(H, { children: z(_, { fallback: s2, children: z(d2, { ...i2, className: a2, renderLoadingPanel: l2, sx: o2, style: n2, ref: t2 }) }) });
2345
2350
  }));
2346
- Ka.displayName = "Studio";
2347
- const Ga = [{ key: "SheetXL", description: "SheetXL", mimeType: ".sxl", exts: ["sxl"], handler: null, isDefault: true }, { key: "CSV", description: "Comma Delimited", mimeType: "text/csv", exts: ["csv"], handler: null }, { key: "Excel", description: "Excel Workbook", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", exts: ["xlsx", "xls", "xlsm"], handler: null }], Ua = [{ key: "SheetXL", mimeType: "application/vnd.sheetxl.sheet", description: "SheetXL", ext: "sxl", handler: null, isDefault: true }, { key: "CSV", mimeType: "text/csv", description: "Comma Delimited", ext: "csv", handler: null }, { key: "Excel", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", description: "Excel Workbook", ext: "xlsx", tags: ["SheetJS Pro"], handler: null }];
2348
- class ja {
2349
- constructor(e2 = Ga, t2 = Ua) {
2351
+ Ua.displayName = "Studio";
2352
+ const ja = [{ key: "SheetXL", description: "SheetXL", mimeType: ".sxl", exts: ["sxl"], handler: null, isDefault: true }, { key: "CSV", description: "Comma Delimited", mimeType: "text/csv", exts: ["csv"], handler: null }, { key: "Excel", description: "Excel Workbook", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", exts: ["xlsx", "xls", "xlsm"], handler: null }], _a = [{ key: "SheetXL", mimeType: "application/vnd.sheetxl.sheet", description: "SheetXL", ext: "sxl", handler: null, isDefault: true }, { key: "CSV", mimeType: "text/csv", description: "Comma Delimited", ext: "csv", handler: null }, { key: "Excel", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", description: "Excel Workbook", ext: "xlsx", tags: ["SheetJS Pro"], handler: null }];
2353
+ class qa {
2354
+ constructor(e2 = ja, t2 = _a) {
2350
2355
  this._readFormatType = [], this._writeFormatType = [], this._readFormatType = Object.freeze([...e2]), this._writeFormatType = Object.freeze([...t2]);
2351
2356
  }
2352
2357
  getReadFormats() {
@@ -2387,21 +2392,21 @@ class ja {
2387
2392
  }
2388
2393
  }
2389
2394
  }
2390
- const _a = new ja(), qa = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "_icons_1a398_16", expand: "_expand_1a398_22", expandOpen: "_expandOpen_1a398_29", stackTraceContainer: "_stackTraceContainer_1a398_33" }, Xa = $(O((e2, t2) => {
2395
+ const Xa = new qa(), Za = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "_icons_1a398_16", expand: "_expand_1a398_22", expandOpen: "_expandOpen_1a398_29", stackTraceContainer: "_stackTraceContainer_1a398_33" }, Ya = $(O((e2, t2) => {
2391
2396
  const { id: o2, message: n2, iconVariant: a2, error: r2, hideIconVariant: l2, ...i2 } = e2, { closeSnackbar: s2 } = oo(), d2 = zt(), [c2, m2] = U(false), p2 = Xt.collectErrorChain(r2, true)?.[0]?.error, u2 = p2 && !(p2 instanceof Zt), g2 = K(() => {
2392
2397
  m2((e3) => !e3);
2393
2398
  }, []), h2 = K(() => {
2394
2399
  s2(o2);
2395
2400
  }, [o2, s2]);
2396
2401
  let f2 = p2?.message;
2397
- return !f2 && G(n2) && (f2 = n2), f2 || "string" != typeof n2 || (f2 = n2), f2 || (f2 = `Unknown Error: ${n2}`), z(no, { ref: t2, className: mt(qa.root, "error-snackbar"), children: L(ye, { className: qa.card, style: { backgroundColor: d2.palette.error.dark, border: `1px solid ${d2.palette.error.dark}` }, children: [L(we, { className: qa.actionRoot, children: [l2 ? null : a2?.error, z(ee, { variant: "body2", component: "div", className: qa.typography, children: f2 }), z("div", { style: { flex: "1 1 auto" } }), L("div", { className: qa.icons, children: [u2 ? z(te, { "aria-label": "Show more", size: "small", className: mt(qa.expand, { [qa.expandOpen]: c2 }), onClick: g2, children: z(xt, { iconKey: "ExpandMore" }) }) : null, z(te, { size: "small", className: qa.expand, onClick: h2, children: z(xt, { iconKey: "Close", style: { transform: "scale(0.8)" } }) })] })] }), u2 ? z(ke, { in: c2, timeout: "auto", children: z("div", { className: qa.stackTraceContainer, style: { backgroundColor: d2.palette.error.light, borderTop: `1px solid ${d2.palette.error.main}` }, children: z(et, { error: r2, hideLineNumbers: true }) }) }) : null] }) });
2402
+ return !f2 && G(n2) && (f2 = n2), f2 || "string" != typeof n2 || (f2 = n2), f2 || (f2 = `Unknown Error: ${n2}`), z(no, { ref: t2, className: mt(Za.root, "error-snackbar"), children: L(ye, { className: Za.card, style: { backgroundColor: d2.palette.error.dark, border: `1px solid ${d2.palette.error.dark}` }, children: [L(we, { className: Za.actionRoot, children: [l2 ? null : a2?.error, z(ee, { variant: "body2", component: "div", className: Za.typography, children: f2 }), z("div", { style: { flex: "1 1 auto" } }), L("div", { className: Za.icons, children: [u2 ? z(te, { "aria-label": "Show more", size: "small", className: mt(Za.expand, { [Za.expandOpen]: c2 }), onClick: g2, children: z(xt, { iconKey: "ExpandMore" }) }) : null, z(te, { size: "small", className: Za.expand, onClick: h2, children: z(xt, { iconKey: "Close", style: { transform: "scale(0.8)" } }) })] })] }), u2 ? z(ke, { in: c2, timeout: "auto", children: z("div", { className: Za.stackTraceContainer, style: { backgroundColor: d2.palette.error.light, borderTop: `1px solid ${d2.palette.error.main}` }, children: z(et, { error: r2, hideLineNumbers: true }) }) }) : null] }) });
2398
2403
  }));
2399
- Xa.displayName = "ToastError";
2400
- const Za = $(O((e2, t2) => {
2404
+ Ya.displayName = "ToastError";
2405
+ const Qa = $(O((e2, t2) => {
2401
2406
  const { commands: o2, commandHook: n2, scope: a2 = "workbook", disabled: r2 = false, ...l2 } = e2, i2 = gt((e3) => {
2402
2407
  const t3 = { variant: ut.Menuitem, parentFloat: e3.floatReference, commandHook: n2, scope: a2, disabled: r2 }, l3 = L(H, { children: [z(ve, { ...t3, command: o2.getCommand("newWorkbook") }), z(Te, { orientation: "horizontal" }), z(ve, { ...t3, command: o2.getCommand("openWorkbook") }), z(Pe, { ...t3, commands: o2, quickCommand: "saveWorkbook", createPopupPanel: (e4) => {
2403
2408
  const n3 = { ...t3, parentFloat: e4.floatReference, scope: "saveWorkbook" }, a3 = [];
2404
- return _a.getWriteFormats().forEach((e5) => {
2409
+ return Xa.getWriteFormats().forEach((e5) => {
2405
2410
  if (e5.isDefault) return;
2406
2411
  const t4 = e5.key, r3 = o2.getCommand(`saveWorkbookAs${t4}`);
2407
2412
  r3 ? a3.push(X(ve, { ...n3, key: t4, command: r3 })) : console.warn(`Unable to resolve command: 'saveWorkbookAs${t4}'`);
@@ -2415,53 +2420,53 @@ const Za = $(O((e2, t2) => {
2415
2420
  }, [r2, o2, n2, a2]), s2 = "File";
2416
2421
  return z(Pe, { commands: o2, disabled: r2, commandHook: n2, scope: a2, label: s2, 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: i2, icon: z(Ve, { className: "label", icon: null, label: s2 }) });
2417
2422
  }));
2418
- Za.displayName = "StandaloneFileCommandButton";
2419
- const Ya = z(He, { label: "SheetXL", description: "Visit me at sheetxl.com.", children: z(J, { sx: { width: "24px", height: "24px", marginBottom: "4px", marginLeft: "6px" }, children: z(E, { onClick: () => {
2423
+ Qa.displayName = "StandaloneFileCommandButton";
2424
+ const Ja = z(He, { label: "SheetXL", description: "Visit me at sheetxl.com.", children: z(J, { sx: { width: "24px", height: "24px", marginBottom: "4px", marginLeft: "6px" }, children: z(E, { onClick: () => {
2420
2425
  window?.open("https://www.sheetxl.com", "_blank");
2421
- }, style: { width: "24px", height: "24px", cursor: "pointer" } }) }) }), Qa = $(O((e2, t2) => {
2422
- const { commands: o2, workbook: n2, logo: a2 = Ya, mainElement: r2, showFileMenu: l2 = true, showAppearanceMenu: i2 = true, ...s2 } = e2, { reference: d2 } = _e(), [c2, { width: m2 }] = jt(), p2 = m2 < 530, u2 = l2 ? z(Za, { commands: o2, commandHook: { beforeExecute() {
2426
+ }, style: { width: "24px", height: "24px", cursor: "pointer" } }) }) }), er = $(O((e2, t2) => {
2427
+ const { commands: o2, workbook: n2, logo: a2 = Ja, mainElement: r2, showFileMenu: l2 = true, showAppearanceMenu: i2 = true, ...s2 } = e2, { reference: d2 } = _e(), [c2, { width: m2 }] = jt(), p2 = m2 < 530, u2 = l2 ? z(Qa, { commands: o2, commandHook: { beforeExecute() {
2423
2428
  d2?.closeAll();
2424
2429
  }, onError(e3, t3, o3) {
2425
- } } }) : null, g2 = i2 ? z(La, { commands: o2, commandHook: { beforeExecute() {
2430
+ } } }) : null, g2 = i2 ? z(za, { commands: o2, commandHook: { beforeExecute() {
2426
2431
  d2?.closeAll();
2427
2432
  }, onError(e3, t3, o3) {
2428
2433
  } } }) : null, h2 = V(() => ({ paddingLeft: (e3) => e3.spacing(1), paddingRight: (e3) => e3.spacing(1) }), []), f2 = q(null);
2429
2434
  return z(J, { ref: Ut([f2, c2, t2]), ...s2, children: na({ commands: o2, renderCompact: p2, workbook: n2, selectWrapper: (e3) => L(J, { 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(J, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (e4) => e4.spacing(0.5) }, children: [a2, L(J, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (e4) => e4.spacing(0.25) }, children: [u2, e3] })] }), z(J, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: r2 }), z(J, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: p2 && !g2 ? "0 0 auto" : "1 1 100%" }, children: g2 })] }), selectProps: h2, toolbarsProps: { Home: { sx: {} } } }) });
2430
2435
  }));
2431
- Qa.displayName = "StudioToolbar";
2432
- const Ja = $((e2) => {
2436
+ er.displayName = "StudioToolbar";
2437
+ const tr = $((e2) => {
2433
2438
  const { workbook: t2, setWorkbook: o2, refWorkbookTitle: n2, titleWorkbook: a2, setWorkbookTitle: r2, titlePlaceHolder: l2, children: i2, undoManager: s2, commands: d2, importExportDisabled: c2, themeOptions: m2 } = e2, p2 = ((e3) => {
2434
2439
  const { workbook: t3, setWorkbook: o3, importExportDisabled: n3, workbookTitle: a3 = "export", setWorkbookTitle: r3, requestWorkbookTitle: l3, themeOptions: i3, undoManager: s3, commands: d3, onExecute: c3 } = e3, m3 = kt(), p3 = gt(i3?.onModeChange, [i3?.onModeChange]), u3 = gt(i3?.onEnabledDarkGridChange, [i3?.onEnabledDarkGridChange]), g3 = gt(i3?.onEnabledDarkImagesChange, [i3?.onEnabledDarkImagesChange]), h2 = gt(async (e4 = null, t4 = null) => {
2435
2440
  const o4 = [];
2436
2441
  let n4, a4 = null, r4 = null;
2437
- if ("string" == typeof e4 ? r4 = e4 : a4 = e4, n4 = a4 ? e4 : await _t.openFileDialog(r4 ?? _a.getAllReadFormatTypeAsString().join(",")), !n4) return null;
2442
+ if ("string" == typeof e4 ? r4 = e4 : a4 = e4, n4 = a4 ? e4 : await _t.openFileDialog(r4 ?? Xa.getAllReadFormatTypeAsString().join(",")), !n4) return null;
2438
2443
  const l4 = { source: n4, createWorkbookOptions: t4, onWarning: (e5) => {
2439
2444
  o4.push(e5);
2440
- } }, i4 = await _a.read(l4, m3);
2445
+ } }, i4 = await Xa.read(l4, m3);
2441
2446
  return o4.length > 0 && (m3.showMessage("Some elements were not able to be imported. See console for details."), console.warn("Import warnings:\n" + o4.join("\n"))), i4;
2442
2447
  }, [c3, m3, t3]), f2 = gt(async (e4, t4, o4) => {
2443
2448
  if (!t4 && l3) {
2444
2449
  const t5 = await l3("Enter Workbook name to " + (o4.isDefault ? "Save." : `Export as ${o4.description}.`));
2445
- return null !== t5 && _a.writeFile(t5, e4, { formatType: o4.key });
2450
+ return null !== t5 && Xa.writeFile(t5, e4, { formatType: o4.key });
2446
2451
  }
2447
- return _a.writeFile(t4, e4, { formatType: o4.key });
2452
+ return Xa.writeFile(t4, e4, { formatType: o4.key });
2448
2453
  }, [m3, t3, l3]), x2 = K(() => ({ contains: (e4) => true, focus() {
2449
2454
  } }), []), b2 = V(() => {
2450
2455
  const e4 = [];
2451
- n3 || (_a.getWriteFormats().forEach((o4) => {
2456
+ n3 || (Xa.getWriteFormats().forEach((o4) => {
2452
2457
  const n4 = o4.isDefault, r4 = { label: n4 ? "Save Workbook" : `Save Workbook as ${o4.description}`, scopedLabels: { workbook: "Save", saveWorkbook: `as ${o4.description}` }, tags: o4.tags, description: `Save the workbook to the desktop${n4 ? "" : ` as ${o4.description}`}.`, icon: "FileDownloadAsSheet" };
2453
- n4 && (r4.shortcut = { key: "S", modifiers: [Dt.Ctrl] }, e4.push(new Pt("saveWorkbookAs", x2, { label: "Save Workbook As…", scopedLabels: { workbook: "Save as…", saveWorkbook: "as…" }, shortcut: [{ key: "S", modifiers: [Dt.Shift, Dt.Ctrl] }, { key: "F12" }], description: "Save the workbook to the desktop with the provided name." }, () => {
2458
+ n4 && (r4.shortcut = { key: "S", modifiers: [Mt.Ctrl] }, e4.push(new Dt("saveWorkbookAs", x2, { label: "Save Workbook As…", scopedLabels: { workbook: "Save as…", saveWorkbook: "as…" }, shortcut: [{ key: "S", modifiers: [Mt.Shift, Mt.Ctrl] }, { key: "F12" }], description: "Save the workbook to the desktop with the provided name." }, () => {
2454
2459
  f2(t3, null, o4).catch((e5) => {
2455
2460
  m3.showError(e5);
2456
2461
  });
2457
2462
  })));
2458
2463
  const l5 = o4.key, i4 = n4 ? "saveWorkbook" : `saveWorkbookAs${l5}`;
2459
- "CSV" === l5 ? r4.icon = "FileDownloadAsCSV" : "Excel" === l5 && (r4.icon = "FileDownloadAsExcel"), e4.push(new Pt(i4, x2, r4, (e5) => {
2464
+ "CSV" === l5 ? r4.icon = "FileDownloadAsCSV" : "Excel" === l5 && (r4.icon = "FileDownloadAsExcel"), e4.push(new Dt(i4, x2, r4, (e5) => {
2460
2465
  f2(t3, e5 ?? a3, o4).catch((e6) => {
2461
2466
  m3.showError(e6);
2462
2467
  });
2463
2468
  }));
2464
- }), e4.push(new Pt("openWorkbook", x2, { label: "Open Workbook…", scopedLabels: { workbook: "Open…" }, description: "Open a workbook from the desktop.", icon: "FileOpen", shortcut: { key: "O", modifiers: [Dt.Ctrl] } }, async (e5 = null) => {
2469
+ }), e4.push(new Dt("openWorkbook", x2, { label: "Open Workbook…", scopedLabels: { workbook: "Open…" }, description: "Open a workbook from the desktop.", icon: "FileOpen", shortcut: { key: "O", modifiers: [Mt.Ctrl] } }, async (e5 = null) => {
2465
2470
  const n4 = { date1904: t3.isDate1904(), ...t3.options };
2466
2471
  try {
2467
2472
  const a4 = await h2(e5, n4);
@@ -2481,7 +2486,7 @@ const Ja = $((e2) => {
2481
2486
  } catch (e6) {
2482
2487
  m3.showError(e6);
2483
2488
  }
2484
- })), e4.push(new Pt("openWorkbookFromUrl", x2, { label: "Open Workbook From Web", scopedLabels: { insert: "From Web", workbook: "From Web…" }, description: "Open a workbook from the web." }, async function(e5) {
2489
+ })), e4.push(new Dt("openWorkbookFromUrl", x2, { label: "Open Workbook From Web", scopedLabels: { insert: "From Web", workbook: "From Web…" }, description: "Open a workbook from the web." }, async function(e5) {
2485
2490
  if (!e5) {
2486
2491
  const t4 = await m3.showInputOptions({ title: "Open Workbook from the Web", description: "Enter the web address for the workbook to open.", inputLabel: "Address", initialValue: "https://www.sheetxl.com/examples/features-checklist.xlsx", inputProps: { style: { minWidth: "440px" } }, options: ["Open"] });
2487
2492
  if ("Open" !== t4.option) return;
@@ -2490,22 +2495,22 @@ const Ja = $((e2) => {
2490
2495
  e5 && console.log("openWorkbookFromUrl", e5);
2491
2496
  })));
2492
2497
  let l4 = [];
2493
- return i3 && (l4 = [new Pt("themeMode", x2, { label: "Light/Dark Mode", scopedLabels: { appearance: "Light/Dark Mode" }, description: "Toggle the application styling between light and dark mode." }), new Pt("defaultThemeMode", x2, { label: "Use System Light/Dark Mode", scopedLabels: { appearance: "Use System Default" }, description: "Use the system settings to determine styling for light and dark mode." }), new Pt("enableDarkGrid", x2, { label: "Enable Dark Grid", description: "Allow the grid to render in dark mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)." }), new Pt("enableDarkImages", x2, { label: "Enable Dark Images", description: "Allow the images to render in dark mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode." })]), [...e4, ...l4, new Rt("help", x2, { label: "Show Help", description: "Provide Help.", icon: "Documentation", shortcut: { key: "F1" } }, () => {
2494
- }), new Rt("showKeyboardShortcuts", x2, { label: "Keyboard Shortcuts", description: "Show keyboard shortcuts.", icon: "Keyboard", shortcut: { key: "/", modifiers: [Dt.Ctrl] } }, () => {
2495
- }), new Pt("gotoUrlGithub", x2, { label: "Github", description: "Download examples, explore source code, and leave a star.", icon: "Github" }, () => {
2498
+ return i3 && (l4 = [new Dt("themeMode", x2, { label: "Light/Dark Mode", scopedLabels: { appearance: "Light/Dark Mode" }, description: "Toggle the application styling between light and dark mode." }), new Dt("defaultThemeMode", x2, { label: "Use System Light/Dark Mode", scopedLabels: { appearance: "Use System Default" }, description: "Use the system settings to determine styling for light and dark mode." }), new Dt("enableDarkGrid", x2, { label: "Enable Dark Grid", description: "Allow the grid to render in dark mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)." }), new Dt("enableDarkImages", x2, { label: "Enable Dark Images", description: "Allow the images to render in dark mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode." })]), [...e4, ...l4, new Pt("help", x2, { label: "Show Help", description: "Provide Help.", icon: "Documentation", shortcut: { key: "F1" } }, () => {
2499
+ }), new Pt("showKeyboardShortcuts", x2, { label: "Keyboard Shortcuts", description: "Show keyboard shortcuts.", icon: "Keyboard", shortcut: { key: "/", modifiers: [Mt.Ctrl] } }, () => {
2500
+ }), new Dt("gotoUrlGithub", x2, { label: "Github", description: "Download examples, explore source code, and leave a star.", icon: "Github" }, () => {
2496
2501
  window?.open("https://github.com/sheetxl/sheetxl");
2497
- }), new Pt("gotoUrlDiscord", x2, { label: "Discord", description: "Join our community on discord.", icon: "Discord" }, () => {
2502
+ }), new Dt("gotoUrlDiscord", x2, { label: "Discord", description: "Join our community on discord.", icon: "Discord" }, () => {
2498
2503
  window?.open("https://discord.gg/NTKdwUgK9p");
2499
- }), new Pt("gotoUrlDocumentation", x2, { label: "Documentation", description: "Read the documentation.", icon: "Documentation" }, () => {
2504
+ }), new Dt("gotoUrlDocumentation", x2, { label: "Documentation", description: "Read the documentation.", icon: "Documentation" }, () => {
2500
2505
  window?.open("https://www.sheetxl.com/docs");
2501
- }), new Pt("gotoUrlIssue", x2, { label: "Create Issue", description: "Create an issue to identify a bug or a feature request.", icon: "Ticket" }, () => {
2506
+ }), new Dt("gotoUrlIssue", x2, { label: "Create Issue", description: "Create an issue to identify a bug or a feature request.", icon: "Ticket" }, () => {
2502
2507
  window?.open("https://github.com/sheetxl/sheetxl/issues");
2503
2508
  })];
2504
2509
  }, [t3, a3, m3, n3, i3, d3, s3]), y2 = V(() => {
2505
2510
  let e4 = null;
2506
- return e4 = d3 ? d3.createChildGroup(x2, "standaloneWorkbook", false) : new Mt(x2, "standaloneWorkbook"), e4.addCommands(b2, true), e4;
2511
+ return e4 = d3 ? d3.createChildGroup(x2, "standaloneWorkbook", false) : new Ft(x2, "standaloneWorkbook"), e4.addCommands(b2, true), e4;
2507
2512
  }, [d3, b2]);
2508
- Bt({ manager: s3, commands: y2 });
2513
+ Et({ manager: s3, commands: y2 });
2509
2514
  const w2 = be("(prefers-color-scheme: dark)"), { themeMode: k2 } = tt();
2510
2515
  j(() => {
2511
2516
  if (!i3 || !y2) return;
@@ -2523,7 +2528,7 @@ const Ja = $((e2) => {
2523
2528
  const { showModal: S2 } = nt();
2524
2529
  return j(() => {
2525
2530
  const e4 = () => new Promise((e5, t4) => {
2526
- const o4 = W.lazy(() => import("./jsycByMMbwMZibUQ.mjs")), n4 = S2(o4, { title: "Shortcut Keys Reference", commands: y2, onDone: () => {
2531
+ const o4 = W.lazy(() => import("./DLB7yLWLF3CYoYgq.mjs")), n4 = S2(o4, { title: "Shortcut Keys Reference", commands: y2, onDone: () => {
2527
2532
  n4.hide();
2528
2533
  }, slotProps: { transition: { onExited: () => {
2529
2534
  e5(true);
@@ -2536,11 +2541,11 @@ const Ja = $((e2) => {
2536
2541
  t3(e4);
2537
2542
  }, { selectAll: true, requestReason: e3 }) : t3(l2);
2538
2543
  }), themeOptions: m2, undoManager: s2, onExecute: K(() => {
2539
- }, []) }), u2 = V(() => z(Ha, { commands: p2, disableHover: true, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [p2]), g2 = { commands: p2 };
2544
+ }, []) }), u2 = V(() => z(Wa, { commands: p2, disableHover: true, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [p2]), g2 = { commands: p2 };
2540
2545
  return t2 && (g2.statusBarProps = { childrenEnd: u2 }), i2 ? W.cloneElement(i2, g2) : null;
2541
2546
  });
2542
- Ja.displayName = "CommandsWrapper";
2543
- const er = $((e2) => {
2547
+ tr.displayName = "CommandsWrapper";
2548
+ const or = $((e2) => {
2544
2549
  const { children: t2 } = e2, o2 = oo(), n2 = o2 ? o2.enqueueSnackbar : () => {
2545
2550
  }, a2 = o2 ? o2.closeSnackbar : () => {
2546
2551
  }, [r2, l2] = U({ isMounted: false, label: null, starting: /* @__PURE__ */ new Map(), running: /* @__PURE__ */ new Map() }), i2 = K(() => {
@@ -2570,11 +2575,11 @@ const er = $((e2) => {
2570
2575
  const n3 = { ...t4, onKeyDown: (e5) => {
2571
2576
  e5.isDefaultPrevented() || e5.isPropagationStopped() || t4?.onKeyDown?.(e5);
2572
2577
  } };
2573
- return c2(e4, { sort: () => import("./DIXy8ZVj_kaaOwIJ.mjs"), numberFormat: () => import("./BxpSw5aPIr7UXKbB.mjs"), hyperlink: () => import("./CN31EL9Soh-9w3jF.mjs"), comments: () => import("./CrfdSYnd6drqE5fB.mjs"), find: () => import("./4Woq8PA_nHBBWJE_.mjs"), tableNew: () => import("./DAMa-CbdXO0XKKam.mjs"), namedDetails: () => import("./Cglez5pr5a5RTdHS.mjs") }[e4], n3, o4);
2578
+ return c2(e4, { sort: () => import("./CDgzja3zCRKU-fkg.mjs"), numberFormat: () => import("./JtXI2INXnATXNbIy.mjs"), hyperlink: () => import("./B220q5iXepGyNhkv.mjs"), comments: () => import("./C2ndkS7Xv8G7tqsJ.mjs"), find: () => import("./Bgm2i4z2IS2cPd09.mjs"), tableNew: () => import("./BTPfATo02Qq6ojW1.mjs"), namedDetails: () => import("./Bqq76CFUL47Gxzv9.mjs") }[e4], n3, o4);
2574
2579
  }, showOptions: m2, showInputOptions: p2, showError: (t4) => {
2575
2580
  let o4, n3 = St.Error, a3 = "Unknown Error";
2576
2581
  "string" == typeof t4 ? a3 = t4 : t4 instanceof Error && (o4 = t4, t4.message && (a3 = t4.message)), t4 instanceof Yt && (n3 = St.Info), e3(a3, { type: n3, enqueueProps: { error: o4 } });
2577
- } }, o3 = new Et();
2582
+ } }, o3 = new At();
2578
2583
  return o3.setOverrides(t3), o3;
2579
2584
  }, []);
2580
2585
  j(() => {
@@ -2596,11 +2601,11 @@ const er = $((e2) => {
2596
2601
  const [h2, f2] = U(null);
2597
2602
  return j(() => {
2598
2603
  0 !== r2.starting.size || 0 !== r2.running.size ? f2(z(Fe, { icon: z(it, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: true, label: r2.label, onMount: i2, onUnmount: s2, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : f2(null);
2599
- }, [r2.starting, r2.running]), L(At, { notifier: g2, children: [h2, t2] });
2604
+ }, [r2.starting, r2.running]), L(It, { notifier: g2, children: [h2, t2] });
2600
2605
  });
2601
- er.displayName = "SnackbarWrapper";
2602
- const tr = $(O((e2, t2) => {
2603
- const { children: o2, title: n2, taskPanes: a2, onSelect: r2, selected: l2, registry: i2 = T, style: s2, iconsOnly: d2, className: c2, ...m2 } = e2, p2 = V(() => a2.map((t3) => {
2606
+ or.displayName = "SnackbarWrapper";
2607
+ const nr = $(O((e2, t2) => {
2608
+ 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) => {
2604
2609
  const o3 = i2.getRegisteredTaskPane(t3);
2605
2610
  if (!o3) return null;
2606
2611
  let n3 = o3.getIcon?.();
@@ -2611,7 +2616,7 @@ const tr = $(O((e2, t2) => {
2611
2616
  return z(J, { ref: u2, className: g2, sx: { paddingLeft: "2px", paddingTop: "4px", ...s2 }, ...m2, children: z(fe, { orientation: "vertical", variant: "scrollable", value: l2, onChange: (e3, t3) => {
2612
2617
  r2(t3);
2613
2618
  }, slotProps: { list: { sx: { gap: "2px" } }, indicator: { sx: { left: "0px", right: "unset" } } }, children: p2 }) });
2614
- })), or = (e2, t2) => z(tr, { ref: t2, ...e2 }), nr = W.forwardRef((e2, t2) => {
2619
+ })), ar = (e2, t2) => z(nr, { ref: t2, ...e2 }), rr = W.forwardRef((e2, t2) => {
2615
2620
  const { commands: o2, model: n2, ...a2 } = e2, r2 = zt(), l2 = `solid ${Wt(r2.palette.divider, 0.2)} 1px`, i2 = `${r2.shape.borderRadius ?? 4}px`, s2 = `${r2.spacing?.(0.5) ?? 4}px`, d2 = q(null);
2616
2621
  return z(A, { model: n2, ref: t2, frameProps: { style: { border: l2, borderRadius: i2, marginBottom: s2 } }, alwaysShowStrip: true, renderTaskPanelTitle: (e3, t3) => {
2617
2622
  const { title: o3, icon: n3, onClose: a3, readOnly: r3, focused: l3, ...i3 } = e3;
@@ -2620,19 +2625,18 @@ const tr = $(O((e2, t2) => {
2620
2625
  }, onPointerUp: () => {
2621
2626
  a3();
2622
2627
  }, children: z(xt, { iconKey: "Close" }) }) })] }) });
2623
- }, renderTaskPaneStrip: or, ...e2, onOpen: () => {
2628
+ }, renderTaskPaneStrip: ar, ...e2, onOpen: () => {
2624
2629
  e2?.onOpen?.();
2625
2630
  }, onClose: () => {
2626
2631
  e2?.onClose?.();
2627
2632
  }, commands: o2, ...a2 });
2628
- }), ar = { flex: "1 1 100%", display: "flex", boxSizing: "border-box" }, rr = $(O((e2, t2) => {
2633
+ }), lr = { flex: "1 1 100%", display: "flex", boxSizing: "border-box" }, ir = $(O((e2, t2) => {
2629
2634
  const { mainElement: o2, sidebarElement: n2, className: a2, style: r2, ...l2 } = e2, i2 = zt(), [s2, { width: d2 }] = jt(), c2 = d2 > 530 || 0 === d2, m2 = q(null);
2630
2635
  let p2 = null, u2 = 4, g2 = 13;
2631
- 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(vt, { ref: Ut([m2, s2, t2]), className: a2, style: r2 ? { ...ar, ...r2 } : ar, ...l2, fixedPane: "after", position: "40%", minAfter: c2 ? "280px" : "120px", splitDirection: c2 ? "row" : "column", resizerProps: { 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, paneBeforeProps: { style: { flexDirection: "column", marginRight: n2 ? void 0 : "6px" } }, elementAfter: n2, paneAfterProps: { style: { marginLeft: c2 ? "0px" : "4px", marginRight: c2 ? "8px" : "4px" } } });
2636
+ 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(vt, { ref: Ut([m2, s2, t2]), className: a2, style: r2 ? { ...lr, ...r2 } : lr, ...l2, fixedPane: "after", position: "40%", minAfter: c2 ? "280px" : "120px", splitDirection: c2 ? "row" : "column", resizerProps: { 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, paneBeforeProps: { style: { flexDirection: "column", marginRight: n2 ? void 0 : "6px" } }, elementAfter: n2, paneAfterProps: { style: { marginLeft: c2 ? "0px" : "4px", marginRight: c2 ? "8px" : "4px" } } });
2632
2637
  }));
2633
- rr.displayName = "StudioSplitPane";
2634
- It.register("plugin-scripts", { icons: {} }), T.registerTaskPane({ key: "scriptEditor", getTitle: () => "Script (Typescript)", getIcon: () => "ScriptRun", renderTaskPane: Xn }, true);
2635
- const lr = $(O((e2, t2) => {
2638
+ ir.displayName = "StudioSplitPane", Aa(), Rt.register("plugin-scripts", { icons: {} }), v.registerTaskPane({ key: "scriptEditor", getTitle: () => "Script (Typescript)", getIcon: () => "ScriptRun", renderTaskPane: Xn }, true);
2639
+ const sr = $(O((e2, t2) => {
2636
2640
  const { className: o2, sx: n2, style: a2, onElementLoad: r2, onError: l2, undoManager: i2, errorPanel: s2 = st, onKeyDown: d2, workbook: c2, createWorkbookOptions: m2, onWorkbookChange: p2, logo: u2, importExportDisabled: g2 = false, themeOptions: f2, autoFocus: x2 = false, commands: b2, title: y2, onTitleChange: w2, titleProps: k2, renderLoadingPanel: S2, ...C2 } = e2, v2 = q(null), T2 = gt(p2, [p2]), P2 = gt(w2 ?? k2?.onTitleChange, [w2 ?? k2?.onTitleChange]), D2 = k2?.placeHolder ?? "Untitled", M2 = f2?.mode, { themeMode: F2, source: N2 } = tt({ mode: M2 }), B2 = V(() => ({ ...f2, light: dt(false, _t.deepMerge(f2?.theme ?? {}, f2?.light ?? {})), dark: dt(true, _t.deepMerge(f2?.theme ?? {}, f2?.dark ?? {})) }), [f2]), E2 = F2 === ot.Dark, [A2, H2] = U(null);
2637
2641
  j(() => {
2638
2642
  H2(i2 ?? new Qt());
@@ -2649,7 +2653,7 @@ const lr = $(O((e2, t2) => {
2649
2653
  (async () => {
2650
2654
  try {
2651
2655
  let e3, t3 = await Promise.resolve(O2);
2652
- t3 && t3.source && (t3 = await _a.read(t3)), t3.workbook ? (te2(t3.title), e3 = t3.workbook) : e3 = t3, T2?.(e3), $2({ workbook: e3 });
2656
+ t3 && t3.source && (t3 = await Xa.read(t3)), t3.workbook ? (te2(t3.title), e3 = t3.workbook) : e3 = t3, T2?.(e3), $2({ workbook: e3 });
2653
2657
  } catch (e3) {
2654
2658
  T2?.(null), $2({ error: e3 });
2655
2659
  }
@@ -2678,9 +2682,9 @@ const lr = $(O((e2, t2) => {
2678
2682
  const [oe2, ne2] = U(null), ae2 = V(() => {
2679
2683
  const e3 = () => ({ contains: (e4) => true, focus() {
2680
2684
  } });
2681
- return b2 ? b2.createChildGroup(e3, "application", false) : new Mt(e3, "application");
2685
+ return b2 ? b2.createChildGroup(e3, "application", false) : new Ft(e3, "application");
2682
2686
  }, [b2]), le2 = gt(async (e3) => {
2683
- ne2(e3.source.getViewportElement()), Z2(e3), ae2.activate("sheet"), await It.prefetch(), r2?.(e3);
2687
+ ne2(e3.source.getViewportElement()), Z2(e3), ae2.activate("sheet"), await Rt.prefetch(), r2?.(e3);
2684
2688
  }, [ae2]);
2685
2689
  j(() => {
2686
2690
  X2 && x2 && X2.source?.focus("object" == typeof x2 ? x2 : void 0);
@@ -2689,7 +2693,7 @@ const lr = $(O((e2, t2) => {
2689
2693
  let t3 = null;
2690
2694
  return k2?.hidden || (t3 = z(Na, { ...k2, style: { maxWidth: "100%", ...k2?.style }, workbook: v2.current, ref: ie2, title: ee2, placeHolder: D2, onTitleChange: (e4) => {
2691
2695
  te2(e4);
2692
- } })), z(Qa, { ...e3, logo: u2, mainElement: t3, showFileMenu: !g2, showAppearanceMenu: !!(B2?.onEnabledDarkGridChange || B2?.onEnabledDarkImagesChange || B2?.onModeChange) });
2696
+ } })), z(er, { ...e3, logo: u2, mainElement: t3, showFileMenu: !g2, showAppearanceMenu: !!(B2?.onEnabledDarkGridChange || B2?.onEnabledDarkImagesChange || B2?.onModeChange) });
2693
2697
  }, [u2, ee2, k2, B2, g2, ae2]);
2694
2698
  j(() => {
2695
2699
  const e3 = (e4) => e4.preventDefault();
@@ -2700,7 +2704,7 @@ const lr = $(O((e2, t2) => {
2700
2704
  const de2 = V(() => {
2701
2705
  const e3 = { transparentBackground: true };
2702
2706
  return z(J, { sx: n2, style: { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, display: "flex", alignItems: "center", justifyContent: "center", ...a2 }, children: S2?.(e3) ?? z(Fe, { ...e3 }) });
2703
- }, [n2, a2, S2]), ce2 = K(({ error: e3 }) => (l2?.(e3), z(s2, { sx: n2, style: a2, error: e3 ?? "Unable to display empty workbook." })), [n2, a2, l2]), me2 = V(() => ({ ...n2, "& .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]), [pe2, ue2] = U(null), ge2 = K((e3, t3) => z(nr, { ref: t3, model: O2, commands: ae2, ...e3 }), [ae2, O2]), he2 = K((e3) => z(rr, { mainElement: e3, sidebarElement: pe2 }), [pe2]), fe2 = Ut([v2, t2]), xe2 = V(() => {
2707
+ }, [n2, a2, S2]), ce2 = K(({ error: e3 }) => (l2?.(e3), z(s2, { sx: n2, style: a2, error: e3 ?? "Unable to display empty workbook." })), [n2, a2, l2]), me2 = V(() => ({ ...n2, "& .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]), [pe2, ue2] = U(null), ge2 = K((e3, t3) => z(rr, { ref: t3, model: O2, commands: ae2, ...e3 }), [ae2, O2]), he2 = K((e3) => z(ir, { mainElement: e3, sidebarElement: pe2 }), [pe2]), fe2 = Ut([v2, t2]), xe2 = V(() => {
2704
2708
  if (!W2) return de2;
2705
2709
  if (W2.error || !W2.workbook) return ce2({ error: W2.error });
2706
2710
  let e3 = null, t3 = null, n3 = false;
@@ -2710,15 +2714,15 @@ const lr = $(O((e2, t2) => {
2710
2714
  }, [W2, ee2, A2, de2, S2, B2, C2, se2, me2, he2]);
2711
2715
  let be2 = z(ao, { maxSnack: 3, domRoot: oe2, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (e3, t3, o3) => {
2712
2716
  v2.current?.focus();
2713
- }, Components: { error: Xa }, iconVariant: { success: z(re, { 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(xt, { iconKey: "ErrorAlert", style: { marginRight: "8px" } }) }, children: z(I, { createArea: ge2, onUpdateArea: (e3) => {
2717
+ }, Components: { error: Ya }, iconVariant: { success: z(re, { 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(xt, { iconKey: "ErrorAlert", style: { marginRight: "8px" } }) }, children: z(I, { createArea: ge2, onUpdateArea: (e3) => {
2714
2718
  ue2(e3);
2715
- }, children: z(ct, { children: z(er, { children: z(Lt, { children: z(Ht, { children: z(Ja, { workbook: W2?.workbook, setWorkbook: G2, importExportDisabled: g2, titlePlaceHolder: D2, titleWorkbook: ee2, setWorkbookTitle: te2, refWorkbookTitle: ie2, commands: ae2, undoManager: A2, themeOptions: B2, children: xe2 }) }) }) }) }) }) });
2719
+ }, children: z(ct, { children: z(or, { children: z(Lt, { children: z(Ht, { children: z(tr, { workbook: W2?.workbook, setWorkbook: G2, importExportDisabled: g2, titlePlaceHolder: D2, titleWorkbook: ee2, setWorkbookTitle: te2, refWorkbookTitle: ie2, commands: ae2, undoManager: A2, themeOptions: B2, children: xe2 }) }) }) }) }) }) });
2716
2720
  return B2 && (be2 = L(Ot, { theme: E2 ? B2.dark : B2.light, children: [B2.cssBaseline ? z(Ce, {}) : null, be2] })), be2;
2717
2721
  }));
2718
- lr.displayName = "EagerStudio";
2719
- const ir = Object.freeze(Object.defineProperty({ __proto__: null, EagerStudio: lr, default: lr }, Symbol.toStringTag, { value: "Module" }));
2722
+ sr.displayName = "EagerStudio";
2723
+ const dr = Object.freeze(Object.defineProperty({ __proto__: null, EagerStudio: sr, default: sr }, Symbol.toStringTag, { value: "Module" }));
2720
2724
  export {
2721
- La as AppearanceCommandButton,
2725
+ za as AppearanceCommandButton,
2722
2726
  mo as AutoColorPosition,
2723
2727
  Mo as BorderCommandButton,
2724
2728
  Do as BorderPopupButton,
@@ -2734,8 +2738,8 @@ export {
2734
2738
  co as ColorPanelType,
2735
2739
  vo as ColorPopupButton,
2736
2740
  DefaultTaskPaneRegistry,
2737
- Ia as DocThemeCommandButton,
2738
- lr as EagerStudio,
2741
+ Ha as DocThemeCommandButton,
2742
+ sr as EagerStudio,
2739
2743
  Ho as FillCommandButton,
2740
2744
  Rn as FilterColumnMenu,
2741
2745
  Go as FilterCommandButton,
@@ -2745,10 +2749,10 @@ export {
2745
2749
  Eo as FontSizeCommandButton,
2746
2750
  Tn as FormulaBar,
2747
2751
  No as FreezeCommandButton,
2748
- Ha as HelpCommandButton,
2752
+ Wa as HelpCommandButton,
2749
2753
  ro as HorizontalAlignCommandButton,
2750
- Oa as InsertFunctionCommandPopupButton,
2751
- za as InsertFunctionSumCommandPopupButton,
2754
+ Ka as InsertFunctionCommandPopupButton,
2755
+ $a as InsertFunctionSumCommandPopupButton,
2752
2756
  ea as InsertImageCommandButton,
2753
2757
  LicenseManager,
2754
2758
  Fo as MergeCommandButton,
@@ -2757,7 +2761,7 @@ export {
2757
2761
  Io as NumberFormatCommandButton,
2758
2762
  Yo as PasteCommandButton,
2759
2763
  on as PresetCellStylesCommandButton,
2760
- Aa as PresetTableStylesCommandButton,
2764
+ La as PresetTableStylesCommandButton,
2761
2765
  fn as RangeInput,
2762
2766
  Dn as SheetTab,
2763
2767
  Mn as SheetTabMenu,
@@ -2765,9 +2769,11 @@ export {
2765
2769
  Fn as SheetsAllMenu,
2766
2770
  Ko as SortFilterCommandButton,
2767
2771
  Sn as StatusBar,
2768
- Ka as Studio,
2772
+ Ua as Studio,
2769
2773
  Ro as StyledStrokeIcon,
2770
2774
  Ba as TableDetailsPanel,
2775
+ Ea as TableDetailsTaskPane,
2776
+ Aa as TablePlugin,
2771
2777
  sn as TableStyleCanvasPreview,
2772
2778
  mn as TableStyleOptionsPanel,
2773
2779
  rn as TableStylePreview,
@@ -2785,13 +2791,13 @@ export {
2785
2791
  xa as WalkingCopyCommandButton,
2786
2792
  fa as WorkbookContextMenu,
2787
2793
  Ma as WorkbookElement,
2788
- _a as WorkbookIO,
2794
+ Xa as WorkbookIO,
2789
2795
  ha as WorkbookStrip,
2790
2796
  Na as WorkbookTitle,
2791
2797
  Jo as WorkbookViewCommandButton,
2792
- ja as _WorkbookIO,
2798
+ qa as _WorkbookIO,
2793
2799
  Hn as createGridStyleFromMUITheme,
2794
- Ka as default,
2800
+ Ua as default,
2795
2801
  da as defaultNewWorkbook,
2796
2802
  In as setPrintExamplesOnLoad,
2797
2803
  useModelListener,