@sheetxl/studio-mui 0.5.1 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +17 -0
  2. package/browser/cjs/{BSk234vVHlO9t-0j.cjs → 5xIGptGRtwYRELQ6.cjs} +1 -1
  3. package/browser/cjs/{DZXSHPXJywU0QDaX.cjs → BK5aa-uxW0HEAxSp.cjs} +1 -1
  4. package/browser/cjs/{DBcDkQQ3AzkP7U-g.cjs → Bjli5X6AhU-a15lh.cjs} +3 -3
  5. package/browser/cjs/{B7ZqxL7HCcF4W64E.cjs → CGPHk8lNWSZmX8LP.cjs} +2 -2
  6. package/browser/cjs/{DGcWWDQoWTessrP9.cjs → CaBa5X6nJsSt52pN.cjs} +2 -2
  7. package/browser/cjs/{BSchsQWqHadL8uiG.cjs → CizQU19fj3JGaesU.cjs} +2 -2
  8. package/browser/cjs/{DwKLyvJr6BNyEpRJ.cjs → CnTAwujMWj1-OWVm.cjs} +2 -2
  9. package/browser/cjs/{Ck0B-kjPAw2A9KVg.cjs → DA4moatIHibXNpPC.cjs} +1 -1
  10. package/browser/cjs/{Dptdk7e9jdSVPSlW.cjs → DFpkJyWuZ4UNRq4z.cjs} +9 -9
  11. package/browser/cjs/{Bi2ewauCdH2w14hW.cjs → DVPtQYU8zwirma8l.cjs} +2 -2
  12. package/browser/cjs/{C6Qc9lLh9egNbs0t.cjs → K2ZLwLXzMoQl0oNR.cjs} +1 -1
  13. package/browser/cjs/{DkpiQeq_B6niQX_F.cjs → fHLoVO83PRP8HozY.cjs} +1 -1
  14. package/browser/cjs/index.cjs +2 -2
  15. package/browser/esm/{D3Q0yYY719Kq6-E0.mjs → B0DdZmmlqEsOMTPX.mjs} +2 -2
  16. package/browser/esm/{BZX8sIMfMsI3HTX8.mjs → BJFiuof0tzKRQx2c.mjs} +3 -3
  17. package/browser/esm/{C3cb5A2fg-21I_jY.mjs → Bswq6fP66W0nvCDs.mjs} +1 -1
  18. package/browser/esm/{hSy4nt2e1JaglBGF.mjs → CI9DBDQ1rRCbs2Fe.mjs} +163 -162
  19. package/browser/esm/{CBKfWBsXKJNQ1vnx.mjs → CPiqiSQn83u1sOW2.mjs} +1 -1
  20. package/browser/esm/{B07osQ30jqhbDbZd.mjs → CVcOQ3-2TAENtdUP.mjs} +2 -2
  21. package/browser/esm/{B1z2_AMWCsfpJHbb.mjs → DLslRLlEGGqF38l_.mjs} +2 -2
  22. package/browser/esm/{Bk-eJX2kHnvnG28L.mjs → DZf58XwRLhYfcqew.mjs} +2 -2
  23. package/browser/esm/{C89QUgwXHQc2dJ3l.mjs → DhDP68Gnu0ecXoEo.mjs} +1 -1
  24. package/browser/esm/{CKP6l57oywzoCW26.mjs → DuS5OUxsVj0DIXgN.mjs} +2 -2
  25. package/browser/esm/{BdX-JA-__aDsnq7S.mjs → EtifG-bfsXWhtPBs.mjs} +1 -1
  26. package/browser/esm/{Dhvid6hJKp8mH3mM.mjs → G3eXSOQR5J22vVPn.mjs} +1 -1
  27. package/browser/esm/index.mjs +19 -20
  28. package/licenses/dependencies.txt +139 -139
  29. package/node/esm/{D_iq-nakEihGXnfs.mjs → B41CH2TfTzo3WHPd.mjs} +1 -1
  30. package/node/esm/{WjtiXN--XGZjB3uh.mjs → B9mSfFWrLa2k-hsv.mjs} +1 -1
  31. package/node/esm/{DuTuCOWVEZrVzH3R.mjs → B_THR_bFCeox03R3.mjs} +1 -1
  32. package/node/esm/{BzI2nfBkzMD7nh3R.mjs → BuwIzWxDynGALgZH.mjs} +1 -1
  33. package/node/esm/{BhrCUSzh6UYuYooH.mjs → Bwg-ol9mqsoH0NSX.mjs} +1 -1
  34. package/node/esm/{CCjx6xhgYbFOq1KK.mjs → C8WUnG7GNyF-WIK8.mjs} +1 -1
  35. package/node/esm/{C2yYkXDnvboLxKsV.mjs → CY30nNWUtS-WICsR.mjs} +1 -1
  36. package/node/esm/{IXbZFmdmVOCo2beQ.mjs → DIIjkZHmA26HntN8.mjs} +1 -1
  37. package/node/esm/{C1WgCk3bWrblj2tf.mjs → DVJ66Q0avCTIQCuk.mjs} +1 -1
  38. package/node/esm/{2ivPcTvenc9052Au.mjs → D_uDrwGWemkUqzaH.mjs} +1 -1
  39. package/node/esm/index.mjs +926 -927
  40. package/package.json +8 -8
  41. package/types/index.d.ts +0 -3
@@ -4,15 +4,15 @@ import le, { memo as K, forwardRef as J, useMemo as W, useCallback as q, isValid
4
4
  import { Box as B, Typography as Be, IconButton as dt, MenuItem as di, Divider as lo, Button as nn, SvgIcon as ar, Input as ir, FormControlLabel as Et, Checkbox as Dt, useMediaQuery as fs, FormControl as lr, TextField as pi, InputAdornment as xs, Slider as bs, Paper as Po, CircularProgress as ys, DialogTitle as ws, Select as Ss, Tabs as vs, Tab as Cs, Card as ks, CardActions as Ts, Collapse as Es, CssBaseline as Ds } from "@mui/material";
5
5
  import { themeIcon as P, CommandButton as F, ExhibitDivider as re, FormatIndentDecreaseIcon as Ps, FormatIndentIncreaseIcon as Rs, defaultCreatePopupPanel as ke, CommandPopupButton as Re, TextVerticalTopIcon as Ms, TextVerticalCenterIcon as Ns, TextVerticalBottomIcon as zr, TextHorizontalOverflowIcon as Wr, TextHorizontalWrapIcon as Is, TextHorizontalClipIcon as Fs, TextHorizontalShrinkIcon as Os, TextRotation315Icon as zo, TextRotation45Icon as jr, TextRotation90Icon as Vr, TextRotation2702Icon as $r, TextRotationCustomIcon as _r, TextRotation0Icon as As, InputCommandButton as Bs, SimpleTooltip as At, LoadingPanel as Lt, PopupButtonType as nt, ExhibitPopupIconButton as vt, ExhibitPopupMenuItem as sr, ColorizedCircleIcon as Ls, ExhibitMenuItem as xt, createStrokeShadowFilter as Ur, strokeShadowFilter as Hs, ColorizedStrokeIcon as cr, ExhibitTooltip as rt, ExhibitIconButton as ft, CommandTooltip as dr, MergeAllIcon as qr, MergeHorizontalIcon as zs, MergeVerticalIcon as Ws, MergeUnMergeIcon as ui, FreezeBothIcon as js, FreezeRowsIcon as Vs, FreezeColumnsIcon as $s, FreezeIcon as _s, FindIcon as Gr, FindReplaceIcon as Us, GotoIcon as qs, TextSizeIncreaseIcon as Gs, TextSizeDecreaseIcon as Xs, SelectedIcon as sn, CurrencyDollarIcon as Ks, PercentIcon as Ys, CommaIcon as Zs, IncreaseDecimalIcon2 as Js, DecreaseDecimalIcon2 as Qs, ClearAllIcon as Xr, ClearFormatsIcon as mi, ClearContentsIcon as ec, FillDownIcon as so, InsertCells as Kr, InsertRowIcon as tc, InsertColumn2Icon as Yr, BlankIcon as rn, RemoveCellsIcon as Zr, RemoveRowIcon as oc, RemoveColumn2Icon as Jr, LabelIcon as eo, SortIncreaseIcon as Vn, SortDecreaseIcon as gi, SortCustomIcon as nc, FilterToggleIcon as $n, FilterClearIcon as pr, FilterReapplyIcon as hi, RedoIcon as rc, UndoIcon as ac, TextStrikeIcon as Qr, TextSuperscriptIcon as ic, TextSubscriptIcon as lc, TextUnderlineIcon as Tn, TextUnderlineDoubleIcon as ea, TextUnderlineAccountingIcon as ta, TextUnderlineAccountingDoubleIcon as oa, PasteIcon as na, PasteValuesIcon as sc, PasteFormatsIcon as cc, PasteFormulasIcon as dc, PasteTransposeIcon as pc, PasteLinksIcon as uc, NewPresetStylesIcon as mc, PresetStylesIcon as Ro, ExhibitMenuHeader as to, ContextMenu as fi, Theme2Icon as xi, SystemDefaultDarkMode as gc, SystemDefaultLightMode as hc, GithubIcon as fc, DiscordIcon as xc, DocumentationIcon as bi, TicketIcon as bc, HelpIcon as yc, InsertImageIcon as Wo, WalkingCopyIcon as wc, SimpleCommandPopupButton as ct, FunctionThinIcon as Sc, FunctionSumIcon as vc, ExhibitOptionButton as Cc, SelectRangeModeIcon as kc, hexToRGB as ra, useFloatStack as oo, CellSelectionIcon as Tc, CellSelectionRemoveIcon as Ec, CellSelectionEditIcon as Dc, InsertTableIcon as an, CellSelectionInsertIcon as Pc, CloseErrorIcon as Rc, CheckSuccessIcon as Mc, FunctionIcon as Nc, VisibilityOffIcon as yi, elevateColor as it, ThemedIcon as Ic, ScriptNewIcon as Fc, ScriptFormulaIcon as wi, ScriptMacroIcon as ur, ScriptSaveIcon as Oc, CommandToolbar as cn, CodeIcon as Ac, ScriptRunIcon as Bc, ColorizedTextIcon as Lc, ColorizedFillIcon as Hc, FormatPaintIcon as zc, TextBoldIcon as Wc, TextItalicIcon as jc, InsertHyperlinkIcon as _n, InsertCommentIcon as Un, FullScreenOffIcon as Vc, FullScreenIcon as $c, createScrollEdgeButton as _c, createScrollEndButton as Uc, createScrollStartButton as qc, HideColumnIcon as Gc, ShowColumnIcon as Xc, HideRowIcon as Kc, ShowRowIcon as Yc, ColumnsResizeAutoIcon as Zc, RowsResizeAutoIcon as Jc, CutIcon as Qc, DrawAspectIcon as aa, DrawAlignLeftIcon as ia, DrawResizeIcon as la, DrawAlignDistributeVertIcon as ed, DrawAlignDistributeHorzIcon as td, DrawAlignBottomIcon as od, DrawAlignMiddleIcon as nd, DrawAlignTopIcon as rd, DrawAlignRightIcon as ad, DrawAlignCenterIcon as id, DrawMoveBackwardIcon as ld, DrawToBackIcon as sd, DrawMoveForwardIcon as cd, DrawToFrontIcon as dd, scrollbarTheming as pd, StackTrace as ud, FileNewIcon as md, FileOpenIcon as gd, FileDownloadAsCSVIcon as hd, FileDownloadAsExcelIcon as fd, FileDownloadAsSheetIcon as xd, useResolvedThemeMode as Si, ThemeMode as qn, useModal as bd, useLazyWindow as yd, useOptionsDialog as wd, useInputDialog as Sd, AnimatedTraversingEllipsisIcon as vd, ErrorPanel as Cd, createExhibitTheme as sa, ModalProvider as kd, ErrorAlertIcon as Td } from "@sheetxl/utils-mui";
6
6
  import { FormatAlignLeft as ca, FormatAlignCenter as da, FormatAlignRight as Ed, FormatAlignJustify as To, Colorize as Dd, DarkMode as pa, LightMode as ua, Keyboard as Pd, Remove as Rd, Add as Md, ExpandLess as Nd, ExpandMore as vi, Lock as dn, MoreHoriz as Id, WebhookOutlined as Ci, Close as ki, AddCircleOutline as Fd, Menu as Od, CancelOutlined as Ad } from "@mui/icons-material";
7
- import { useCommands as We, CommandButtonType as ie, useCallbackRef as ee, ReactUtils as pn, KeyCodes as we, useCommand as Ht, useEditMode as un, useMouseDownAndHoldListener as ma, NotificationType as wt, useImperativeElement as zt, SplitPane as Gn, RoundedTab as Bd, SimpleCommand as _e, Command as ye, KeyModifiers as be, CommandGroup as mr, ToolTipPlacement as co, ScrollPane as Ld, useUndoManager as Hd } from "@sheetxl/utils-react";
7
+ import { useCommands as We, CommandButtonType as ie, useCallbackRef as ee, ReactUtils as pn, KeyCodes as ye, useCommand as Ht, useEditMode as un, useMouseDownAndHoldListener as ma, NotificationType as wt, useImperativeElement as zt, SplitPane as Gn, RoundedTab as Bd, SimpleCommand as _e, Command as be, KeyModifiers as we, CommandGroup as mr, ToolTipPlacement as co, ScrollPane as Ld, useUndoManager as Hd } from "@sheetxl/utils-react";
8
8
  import { useTheme as at, alpha as he, getOverlayAlpha as De, ThemeProvider as Ti } from "@mui/material/styles";
9
- import { StyledStrokePath as zd, StaticBorderRenderer as gr, FontUtils as Wd, useModelListener as Ue, createCellEditStateFromCell as jd, SheetCellEditor as Vd, ScriptEditor as $d, TabStrip as _d, useDocThemes as hr, SheetScrollbar as ga, PictureEditor as Ud, ChartEditor as qd, SheetElement as Gd, EmptyFrame as Xd, LogoNoPaddingIcon as Kd } from "@sheetxl/react";
9
+ import { StyledStrokePath as zd, StaticBorderRenderer as gr, FontUtils as Wd, useModelListener as Ue, createCellEditStateFromCell as jd, SheetCellEditor as Vd, ScriptEditor as $d, useDocThemes as hr, TabStrip as _d, SheetElement as Ud, SheetScrollbar as ga, PictureEditor as qd, ChartEditor as Gd, EmptyFrame as Xd, LogoNoPaddingIcon as Kd } from "@sheetxl/react";
10
10
  import { alpha as Qe } from "@mui/system";
11
11
  import Kt, { createPortal as Yd } from "react-dom";
12
12
  import { CommonUtils as Jt, ChainedError as Xn, PartialError as Zd, UndoManager as Jd } from "@sheetxl/utils";
13
13
  import { IOUtils as Yt } from "@sheetxl/io";
14
14
  /**
15
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.5.1
15
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.1
16
16
  *
17
17
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
18
18
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -112,7 +112,7 @@ const Qd = K(J((r, i) => {
112
112
  }, [t, m]), w = q((k) => {
113
113
  a?.(k), k.isDefaultPrevented() || t?.(i.toRGBA());
114
114
  }, [t, a, i]), v = q((k) => {
115
- l?.(k), k.isDefaultPrevented() || k.keyCode === we.Enter && o?.(i.toRGBA());
115
+ l?.(k), k.isDefaultPrevented() || k.keyCode === ye.Enter && o?.(i.toRGBA());
116
116
  }, [o, l, i]), C = W(() => i.toRGBA().alpha === 1 ? null : e(ip, { size: g, white: d, grey: f, style: { position: "absolute", width: "calc(100% - 1.5px)", height: "calc(100% - 1.5px)", top: "0.75px", left: "0.75px" } }), [d, f, i]);
117
117
  return j("div", { style: { position: "absolute", height: "100%", width: "100%", top: "0px", left: "0px", cursor: "pointer", outline: "none", ...s }, tabIndex: 0, ...y, onClick: b, onKeyDown: v, onMouseOver: x, onMouseLeave: h, onFocus: w, children: [C, e("div", { style: { position: "absolute", top: "0px", left: "0px", height: "100%", width: "100%", background: i.toCSS(p) }, children: u })] });
118
118
  }), fr = K((r) => {
@@ -157,7 +157,7 @@ const Qd = K(J((r, i) => {
157
157
  n?.set(a, m);
158
158
  const s = m.toRGBA().toString();
159
159
  l?.set(s, m);
160
- }, sp = le.lazy(() => import("./Bk-eJX2kHnvnG28L.mjs")), cp = K(J((r, i) => {
160
+ }, sp = le.lazy(() => import("./DZf58XwRLhYfcqew.mjs")), cp = K(J((r, i) => {
161
161
  const { selectedColor: o = null, previewColor: t = r.selectedColor ?? null, recentColors: n, schemeLookup: l, disableAlpha: c = !1, previewDebounceTime: m = 100, initialPanelType: a, defaultButtonSize: s = 24, width: u, onElementLoad: d, onDone: f, onEyeDropStart: p, onEyeDropStop: g, onPreviewColor: y, onPreviewColorImmediate: b, onSelectColor: x, autoColor: h, autoColorLabel: w = "Automatic", autoColorPosition: v = Eo.Start, compareRGB: C = !1, darkMode: k = !1, ...T } = r, M = t || o, I = ee(y, [y]), A = ee(b, [b]), R = ee(x, [x]), S = ee(p, [p]), N = ee(g, [g]), [L, O] = U(!1), $ = at(), D = W(() => l || ht.getDefaultSchemeLookup(), [l]), E = W(() => {
162
162
  const H = /* @__PURE__ */ new Map(), oe = /* @__PURE__ */ new Map(), Te = [];
163
163
  He("Primary Background", "bg1", D, Te, H, oe), He("Primary Text", "tx1", D, Te, H, oe), He("Secondary Background", "bg2", D, Te, H, oe), He("Secondary Text", "tx2", D, Te, H, oe), He("Accent 1", "accent1", D, Te, H, oe), He("Accent 2", "accent2", D, Te, H, oe), He("Accent 3", "accent3", D, Te, H, oe), He("Accent 4", "accent4", D, Te, H, oe), He("Accent 5", "accent5", D, Te, H, oe), He("Accent 6", "accent6", D, Te, H, oe);
@@ -266,7 +266,7 @@ const Qd = K(J((r, i) => {
266
266
  }, [h, t]), [L, O] = U(!1), $ = q((E) => {
267
267
  const { closeFloat: Y, closeFloatAll: Z } = E;
268
268
  return e(cp, { ...d, selectedColor: o, previewColor: w, onDone: f ? Z : Y, onKeyDown: (X) => {
269
- X.which === we.Enter && (f ? Z() : Y());
269
+ X.which === ye.Enter && (f ? Z() : Y());
270
270
  }, onPreviewColorImmediate: A, onPreviewColor: I, onSelectColor: R, onEyeDropStart: () => O(!0), onEyeDropStop: () => O(!1), compareRGB: p, darkMode: g });
271
271
  }, [o, w, f, C, d?.autoColor, g]), D = { onQuickClick: t ? N : void 0, createPopupPanel: $, popupProps: { popperProps: { resizeOnOverflow: !1 } }, onPopupOpen: M, onPopupClose: T, tooltip: l || c || "Color", label: c, icon: S, ...y };
272
272
  return u === nt.Toolbar ? e(vt, { ref: i, ...D }) : e(sr, { ref: i, ...D });
@@ -284,7 +284,7 @@ const Qd = K(J((r, i) => {
284
284
  S = t ? j(se, { children: [e(B, { sx: { marginRight: "6px" }, children: A.description }), j(B, { sx: { marginLeft: "6px", marginRight: "6px", display: "flex", alignItems: "center", flex: "1 1 100%" }, children: [e("div", { style: { flex: "1 1 100%" } }), R] })] }) : A.description === "None" ? "None" : R, T.push(e(xt, { className: "border-stroke", tabIndex: 0, sx: { height: "28px", "& svg path.activeColor": { filter: Ur(4) }, paddingLeft: "16px", background: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})` }, tooltipProps: { description: t ? "" : A.description }, icon: null, disabled: n, onMouseDown: (N) => N.preventDefault(), onMouseUp: () => {
285
285
  C(), p(A.style);
286
286
  }, onKeyDown: (N) => {
287
- N.which === we.Enter && C();
287
+ N.which === ye.Enter && C();
288
288
  }, selected: A.style === m, parentFloat: v, children: S }, I));
289
289
  }
290
290
  return e(B, { sx: { display: "flex", flexDirection: "column", paddingTop: "4px", paddingBottom: "4px" }, children: T });
@@ -381,13 +381,13 @@ const Qd = K(J((r, i) => {
381
381
  return e(dt, { component: "div", ...R, disableRipple: !0, children: e(ir, { inputMode: "numeric", disabled: m || !o || o.disabled(), inputProps: { name: "font-input", autoComplete: "off", tabIndex: 0, type: "number", maxLength: 4, max: 409, min: 2 }, sx: { "&::before": { borderBottom: "1px solid transparent" }, "&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before": { borderBottom: (S) => `1px solid ${S.palette.text.icon ?? S.palette.action.active}` }, "&:hover:not(.Mui-disabled):not(.Mui-error):before": { borderBottom: (S) => `1px solid ${S.palette.error.main}` }, "::after": { borderBottom: (S) => `1px solid ${S.palette.primary.main}` }, paddingTop: "0px", paddingBottom: "0px", paddingLeft: "0px", paddingRight: "0px", fontSize: (S) => `${Math.round(S.typography.fontSize)}px`, width: C, color: (S) => S.palette.text.secondary, input: { padding: "0 0", textAlign: "center", MozAppearance: "textfield", "&:hover:not(.Mui-disabled):not(.Mui-error)": { color: (S) => S.palette.text.primary }, "&:focus:not(.Mui-disabled):not(.Mui-error)": { color: (S) => S.palette.text.primary } }, "input::-webkit-inner-spin-button": { WebkitAppearance: "none", margin: "0" }, minHeight: "24px" }, value: g, onFocus: (S) => {
382
382
  S.target?.select();
383
383
  }, onKeyDown: (S) => {
384
- if (S.which === we.Enter) p() !== g && (S.stopPropagation(), S.preventDefault(), b());
385
- else if (S.which === we.Escape) p() !== g && (y(p()), setTimeout(() => {
384
+ if (S.which === ye.Enter) p() !== g && (S.stopPropagation(), S.preventDefault(), b());
385
+ else if (S.which === ye.Escape) p() !== g && (y(p()), setTimeout(() => {
386
386
  S.target?.select();
387
387
  }, 0), S.stopPropagation(), S.preventDefault());
388
388
  else {
389
389
  if (S.key.match("[-]") || S.key.match("[0-9.]") && (g + S.key).length > 4) return S.stopPropagation(), void S.preventDefault();
390
- if (S.which === we.Space) return void S.preventDefault();
390
+ if (S.which === ye.Space) return void S.preventDefault();
391
391
  }
392
392
  }, onBlur: () => {
393
393
  b();
@@ -406,7 +406,7 @@ const Qd = K(J((r, i) => {
406
406
  }, onMouseUp: (O) => {
407
407
  O.button === 0 && I(c[N]);
408
408
  }, onKeyDown: (O) => {
409
- O.keyCode !== we.Enter && O.keyCode !== we.Space || I(c[N]);
409
+ O.keyCode !== ye.Enter && O.keyCode !== ye.Space || I(c[N]);
410
410
  }, sx: { paddingTop: "4px", paddingBottom: "4px" }, children: e(B, { sx: { display: "flex", flex: "1 1 100%", justifyContent: "end" }, children: c[N] }) }, "fontSize-" + N));
411
411
  }
412
412
  const S = j(B, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...f, children: [w, e(re, { orientation: "horizontal" }), e(B, { sx: { overflow: "auto", flex: "1 1 100%" }, children: R })] });
@@ -420,7 +420,7 @@ const Qd = K(J((r, i) => {
420
420
  }, onMouseUp: (a) => {
421
421
  a.button === 0 && n(l.numberFormat);
422
422
  }, onKeyDown: (a) => {
423
- a.keyCode !== we.Enter && a.keyCode !== we.Space || n(l.numberFormat);
423
+ a.keyCode !== ye.Enter && a.keyCode !== ye.Space || n(l.numberFormat);
424
424
  }, ...m, children: j(B, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, children: [j(Be, { component: "div", children: [l.formatType, l.formatType === mt.Type.Custom ? "…" : ""] }), e(Be, { variant: "caption", component: "div", sx: { color: (a) => Qe(a.palette.text.primary, 0.6), paddingTop: t && t.length > 0 ? "1px" : void 0, overflow: "hidden", textOverflow: "ellipsis" }, children: t && t.length > 0 ? t : " " })] }) });
425
425
  }), bp = K(J((r, i) => {
426
426
  const { commands: o, commandHook: t, scope: n, sx: l, disabled: c = !1, parentFloat: m, ...a } = r, s = We(o, ["formatNumberFormat"])[0], u = s?.state() ? mt.Styles.lookupStyle(s?.state()).formatType : mt.Type.General, d = W(() => {
@@ -548,7 +548,7 @@ const wp = K(J((r, i) => {
548
548
  }, onMouseUp: (O) => {
549
549
  O.button === 0 && I(h);
550
550
  }, onKeyDown: (O) => {
551
- O.isDefaultPrevented() || O.keyCode !== we.Enter && O.keyCode !== we.Space || I(h);
551
+ O.isDefaultPrevented() || O.keyCode !== ye.Enter && O.keyCode !== ye.Space || I(h);
552
552
  }, children: e(Be, { component: "div", variant: "caption", sx: { fontSize: "0.875rem", letterSpacing: "0.01071em" }, children: T }) });
553
553
  if (M) return A;
554
554
  const R = n ? b?.getRedoDescriptions() : b?.getUndoDescriptions(), S = [];
@@ -561,7 +561,7 @@ const wp = K(J((r, i) => {
561
561
  }, onMouseUp: (D) => {
562
562
  D.button === 0 && I(O + 1);
563
563
  }, onKeyDown: (D) => {
564
- D.isDefaultPrevented() || D.keyCode !== we.Enter && D.keyCode !== we.Space || I(O + 1);
564
+ D.isDefaultPrevented() || D.keyCode !== ye.Enter && D.keyCode !== ye.Space || I(O + 1);
565
565
  }, children: j(B, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "row", alignItems: "center", overflow: "hidden" }, children: [e(Be, { component: "div", children: $ }), e(rn, {})] }) }, `action:${O}`));
566
566
  }
567
567
  let N = null;
@@ -596,7 +596,7 @@ const Sp = K(J((r, i) => {
596
596
  }, onMouseDown: (C) => {
597
597
  C.button === 0 && C.preventDefault();
598
598
  }, onKeyDown: (C) => {
599
- C.keyCode !== we.Enter && C.keyCode !== we.Space || y(b[w].key);
599
+ C.keyCode !== ye.Enter && C.keyCode !== ye.Space || y(b[w].key);
600
600
  }, children: e(B, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, children: e(Be, { component: "div", sx: { whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", fontFamily: () => b[w]?.key }, children: b[w].description }) }) }, w + "" + b[w].key));
601
601
  }
602
602
  const h = e(B, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%" }, ...s, children: e(B, { sx: { overflow: "auto", flex: "1 1 100%" }, children: x }) });
@@ -873,7 +873,7 @@ The heading font is '${i.getFontScheme().getMajorFont()}'.` }), placement: "bott
873
873
  }, onMouseUp: (x) => {
874
874
  x.button === 0 && n(g);
875
875
  }, onKeyDown: (x) => {
876
- x.keyCode !== we.Enter && x.keyCode !== we.Space || n(g);
876
+ x.keyCode !== ye.Enter && x.keyCode !== ye.Space || n(g);
877
877
  } }, g.getName()));
878
878
  }
879
879
  return d;
@@ -883,7 +883,7 @@ The heading font is '${i.getFontScheme().getMajorFont()}'.` }), placement: "bott
883
883
  const { themes: o, selectedTheme: t, onSelectTheme: n, icon: l, tooltip: c, label: m, variant: a = nt.Toolbar, darkMode: s, panelProps: u, ...d } = r, f = l || P(e(xi, {})), p = q((y) => {
884
884
  const { closeFloatAll: b } = y;
885
885
  return e(Op, { ...u, themes: o, selectedTheme: t, onSelectTheme: n, darkMode: s, onKeyDown: (x) => {
886
- x.which === we.Enter && b();
886
+ x.which === ye.Enter && b();
887
887
  } });
888
888
  }, [o, t, n, u, s]), g = { createPopupPanel: p, tooltip: c || m || "Theme", label: m, icon: f, ...d };
889
889
  return a === nt.Toolbar ? e(vt, { ref: i, ...g }) : e(sr, { ref: i, ...g });
@@ -956,7 +956,7 @@ const zi = () => le.useContext(Hi), zp = K(J((r, i) => {
956
956
  }
957
957
  a && g && (S ? g.setError(a, { message: S }) : g.clearErrors(a)), w(S);
958
958
  }, [m, d, u]), T = ee(async (R) => {
959
- R.keyCode === we.Escape && b !== m && (k(b), g?.setValue(a, b), g?.clearErrors(a), R.stopPropagation()), f?.(R);
959
+ R.keyCode === ye.Escape && b !== m && (k(b), g?.setValue(a, b), g?.clearErrors(a), R.stopPropagation()), f?.(R);
960
960
  }, [f, b, m, g]), M = ee((R) => {
961
961
  x(R.target.value ?? "");
962
962
  }, []), I = ee((R) => {
@@ -985,7 +985,7 @@ const Vo = (r) => r === null ? "" : r.toString(), Wp = K(J((r, i) => {
985
985
  }
986
986
  o && p && (N ? p.setError(o, { message: N }) : p.clearErrors(o)), b(N), h(!0);
987
987
  }, [w, u, o, p]), k = ee(async (S) => {
988
- if (x && S.keyCode === we.Escape) {
988
+ if (x && S.keyCode === ye.Escape) {
989
989
  const N = Vo(s);
990
990
  v(N), b(""), h(!1), S.stopPropagation();
991
991
  }
@@ -1040,7 +1040,7 @@ const Wi = K(J((r, i) => {
1040
1040
  }, children: e(Rd, {}) }) }), e(bs, { ref: x, sx: { flex: "1 1 100%", padding: "6px 0px !important", marginRight: "2px", marginLeft: "2px", "& .MuiSlider-thumb": { height: 14, width: 6, borderRadius: 0.75, "&.Mui-focusVisible": { boxShadow: (T) => `0px 0px 0px 3px ${ra(T.palette.primary.main, 0.16)}` }, "&:focus, &:hover, &.Mui-active": { boxShadow: (T) => `0px 0px 0px 2px ${ra(T.palette.primary.main, 0.16)}` } }, "& .MuiSlider-mark": { width: "1px", height: "8px" }, "& .MuiSlider-markActive": { backgroundColor: "currentColor" }, "& .MuiSlider-thumb:not(.MuiSlider-active)": { transition: s ? "left 260ms ease-in" : "none" } }, valueLabelDisplay: "auto", size: "small", track: !1, min: 0, step: 1, value: g, max: 200, marks: [{ value: 100 }], onAnimationEnd: () => u(!1), onWheel: (T) => {
1041
1041
  f(p(Ze.findNextStep(o.getView().getZoomScale(), T.deltaY < 0, 10)));
1042
1042
  }, onKeyDown: (T) => {
1043
- T.which === we.Down || T.which === we.Right ? (f(p(Ze.findNextStep(o.getView().getZoomScale(), !0, 10))), T.preventDefault()) : T.which === we.Up || T.which === we.Left ? (f(p(Ze.findNextStep(o.getView().getZoomScale(), !1, 10))), T.preventDefault()) : T.which !== we.Enter && T.which !== we.Escape || h();
1043
+ T.which === ye.Down || T.which === ye.Right ? (f(p(Ze.findNextStep(o.getView().getZoomScale(), !0, 10))), T.preventDefault()) : T.which === ye.Up || T.which === ye.Left ? (f(p(Ze.findNextStep(o.getView().getZoomScale(), !1, 10))), T.preventDefault()) : T.which !== ye.Enter && T.which !== ye.Escape || h();
1044
1044
  }, onChange: (T, M) => {
1045
1045
  Math.abs(M - 100) < 3 ? f(100) : f(M);
1046
1046
  }, valueLabelFormat: (T, M) => `Zoom: ${Math.round(m)}%` }), e(At, { disableInteractive: !0, title: "Zoom In", children: e(dt, { sx: { padding: "0", "&:hover:not([disabled])": { color: (T) => T.palette.primary.main }, "& svg": { width: "12px", height: "12px" } }, size: "small", onPointerDown: (T) => {
@@ -1927,13 +1927,13 @@ const Gi = K(J((r, i) => {
1927
1927
  return e(dt, { ...G, sx: { ...G?.sx, display: "flex", flex: "1 1 100%" }, disableRipple: !0, children: e(ir, { inputMode: "text", inputProps: { tabIndex: 0, name: "input-named-range", maxLength: 255, className: "input", autoFocus: !1, spellCheck: !1, autoComplete: "off", ref: D }, sx: { "&::before": { borderBottom: "1px solid transparent" }, "&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before": { borderBottom: (z) => `1px solid ${z.palette.text.icon ?? z.palette.action.active}` }, "&:hover:not(.Mui-disabled):not(.Mui-error):before": { borderBottom: (z) => `1px solid ${z.palette.primary.main}` }, "::after": { borderBottom: (z) => `1px solid ${z.palette.primary.main}` }, paddingTop: "0px", paddingBottom: "0px", fontSize: 11 * Bt.getDeviceScale(), fontStyle: f?.fontStyle, paddingLeft: (z) => z.spacing(0.75), paddingRight: (z) => z.spacing(0.75), boxShadow: "none", flex: "1", color: (z) => z.palette.text.secondary, input: { padding: "0", textAlign: "left", "&:hover:not(.Mui-disabled):not(.Mui-error)": { color: (z) => z.palette.text.primary }, "&:focus:not(.Mui-disabled):not(.Mui-error)": { color: (z) => z.palette.text.primary } } }, value: k, onFocus: (z) => {
1928
1928
  z.target?.select();
1929
1929
  }, onKeyDown: (z) => {
1930
- if (z.which === we.Enter || z.which === we.Tab) {
1930
+ if (z.which === ye.Enter || z.which === ye.Tab) {
1931
1931
  let Q = k;
1932
1932
  C() !== k && (z.stopPropagation(), z.preventDefault(), Q = M()), Q ? Y(Q) : l?.();
1933
- } else if (z.which === we.Escape) C() !== k ? (T(C()), setTimeout(() => {
1933
+ } else if (z.which === ye.Escape) C() !== k ? (T(C()), setTimeout(() => {
1934
1934
  z.target?.select();
1935
1935
  }, 0), z.stopPropagation(), z.preventDefault()) : l?.();
1936
- else if (z.which === we.Space) return void z.stopPropagation();
1936
+ else if (z.which === ye.Space) return void z.stopPropagation();
1937
1937
  }, onBlur: () => {
1938
1938
  T(C());
1939
1939
  }, onChange: (z) => {
@@ -2452,7 +2452,7 @@ const Mn = 0.12, ja = (r, i) => {
2452
2452
  }, onMouseUp: (a) => {
2453
2453
  a.button === 0 && n(o);
2454
2454
  }, onKeyDown: (a) => {
2455
- a.keyCode !== we.Enter && a.keyCode !== we.Space || n(o);
2455
+ a.keyCode !== ye.Enter && a.keyCode !== ye.Space || n(o);
2456
2456
  }, ...c, children: j(B, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, children: [e(Be, { component: "div", children: o.metadata?.title ?? o.path }), e(Be, { variant: "caption", component: "div", sx: { color: (a) => Qe(a.palette.text.secondary ?? a.palette.text.primary, 0.6), overflow: "hidden", textOverflow: "ellipsis" }, children: o.metadata?.summary })] }) });
2457
2457
  }), eu = K(J((r, i) => {
2458
2458
  const { commands: o, commandHook: t, scope: n, disabled: l = !1, scriptPath: c = al, ...m } = r, [a, s] = U([]), [u, d] = U(!0), f = We(o, ["executeSelectedScript"]), p = f[0]?.context?.();
@@ -2644,101 +2644,9 @@ const dl = K(J((r, i) => {
2644
2644
  y(C);
2645
2645
  }, x = W(() => e(l ? iu : au, { toolbars: f, value: g, onToolbarChange: b, sx: n }), [f, g, n, l]), { sx: h, ...w } = a, v = e(Po, { elevation: 2, tabIndex: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 1, backgroundImage: `linear-gradient(${he("#fff", De(5))}, ${he("#fff", De(5))})`, marginLeft: (C) => C.spacing(1), marginRight: (C) => C.spacing(1), marginTop: (C) => C.spacing(0.5), marginBottom: (C) => C.spacing(0.5), ...h }, ...w, children: p[g] });
2646
2646
  return j(B, { ref: i, className: "toolbarWrappers", sx: { display: "flex", flexDirection: "column", paddingTop: (C) => C.spacing(0.5), "*": { userSelect: "none" }, ...u }, ...d, children: [t ? t(x) : x, c ? c(v) : v] });
2647
- })), su = (r) => e(Zi, { ...r }), cu = (r) => e(Ji, { ...r }), du = (r) => e(Yi, { ...r }), ul = K(J((r, i) => {
2648
- const { workbook: o, commands: t, onBeforeUserChange: n, onUserChange: l, disabled: c = !1, readOnly: m = !1, contextMenuProps: a, renderContextMenu: s = su, sheetsAllProps: u, renderSheetsAll: d = cu, sheetTabProps: f, renderSheetTab: p, background: g = "transparent", className: y, notifier: b, sx: x, borderWidth: h, borderColor: w, gridTheme: v, gridStyle: C, ...k } = r, [T, M] = U(o?.getSelectedSheetIndex()), [I, A] = U(o?.getSheets().getItems()), [R, S] = U(o?.getProtection());
2649
- Ue(o, { onViewChange(H) {
2650
- M(H?.getSelectedSheetIndex());
2651
- }, onSheetsChange: (H) => {
2652
- A(H.getSheets().getItems());
2653
- }, onProtectionChange: (H) => {
2654
- S(H?.getProtection());
2655
- } });
2656
- const N = m || !R.isStructureAllowed(), L = W(() => {
2657
- const H = [];
2658
- for (let oe = 0; oe < I.length; oe++) H.push(I[oe].getName());
2659
- return H;
2660
- }, [I]), O = q((H) => {
2661
- n?.(H) !== !1 && (o.getSheetAt(H).select(), l?.(H));
2662
- }, [o, n, l]), $ = q((H, oe) => {
2663
- o.getSheetAt(H).setName(oe), l?.(H);
2664
- }, [o, l]), D = q((H, oe) => {
2665
- o.getSheetAt(H).setPosition(oe), l?.(oe);
2666
- }, [o, l]), E = ee(() => {
2667
- if (n?.(T) === !1) return;
2668
- const H = T + 1;
2669
- o.getSheets().add({ name: void 0, autoSelect: !0 }), l?.(H);
2670
- }, [o, n, l, T]), Y = W(() => ({ placement: "top-start" }), []), Z = Se(null), [X, _] = U(!1), ne = q((H) => {
2671
- const { closeFloatAll: oe, floatReference: Te } = H;
2672
- return d({ workbook: o, gridStyle: C, floatReference: Te, closeFloatAll: oe, ...u });
2673
- }, [d, u, c, o, C]), { reference: ae, component: G } = oo({ label: "allSheet", popperProps: Y, anchor: Z.current, onOpen: () => _(!0), onClose: () => _(!1), createPopupPanel: ne }), z = Se(null), [Q, ue] = U(null), Le = q((H) => {
2674
- const { floatReference: oe } = H;
2675
- return s?.({ workbook: o, index: Q?.index, tabStripRef: z.current, commands: t, disabled: c, floatReference: oe, ...a });
2676
- }, [s, a, c, o, t, Q]), { reference: Fe, component: Ae } = oo({ label: "sheetTab", popperProps: Y, anchor: { getBoundingClientRect: () => new DOMRect(Q?.left || 0, Q?.top || 0, 0, 0) }, onClose: () => ue(null), createPopupPanel: Le });
2677
- me(() => {
2678
- Q ? Fe.open(0) : Fe.close(0);
2679
- }, [Q]);
2680
- const Ye = q((H, oe) => {
2681
- H.preventDefault(), ue({ left: H.clientX - 2, top: H.clientY - 4, index: oe });
2682
- }, []), ve = ee((H) => {
2683
- let oe;
2684
- try {
2685
- oe = o?.getSheetAt(H.index);
2686
- } catch {
2687
- }
2688
- return oe ? (p ?? du)({ sheet: oe, gridTheme: v, onContextMenu: (Te) => {
2689
- O(H.index), Ye(Te, H.index);
2690
- }, ...H, ...f }) : null;
2691
- }, [p, f, o, v]), je = W(() => N ? null : e(At, { disableInteractive: !0, title: "New sheet", children: e(dt, { disabled: c, component: "div", sx: { padding: "0", "&:hover:not([disabled])": { color: (H) => H.palette.primary.main }, color: (H) => H.palette.text.icon ?? H.palette.action.active, "& svg": { width: "18px", height: "18px" } }, "aria-label": "addTab", size: "small", onMouseDown: (H) => {
2692
- H.button === 0 && H.preventDefault();
2693
- }, onClick: () => E(), children: e(Fd, {}) }) }), [c, N, E]);
2694
- return j(B, { ref: i, className: Oe(y), sx: { position: "relative", display: "flex", alignItems: "stretch", flex: "1 1 100%", maxWidth: "100%", ...x }, ...k, children: [e(_d, { ref: z, selectedTabIndex: T, tabNames: L, onSelectedTabIndexChange: O, onTabNameChange: $, onTabMove: D, background: g, borderColor: w, borderWidth: h, activeColor: null, disabled: c, disableDrag: N, createScrollStartButton: qc, createScrollEndButton: Uc, createScrollEdgeButton: _c, createTabButton: ve, createTabDivider: (H) => {
2695
- const { key: oe, ...Te } = H;
2696
- return e(re, { sx: { marginLeft: "-1px", marginRight: "0px", marginTop: "6px", marginBottom: "6px", background: (ge) => he(ge.palette.divider, 0.25) }, ...Te }, oe);
2697
- }, editLabelProps: { readOnly: N, maxLength: 31, styleHover: { fontWeight: "700" }, onKeyPress: (H) => {
2698
- o.isValidSheetNameCharacter(H.key) || H.preventDefault();
2699
- }, onCancel: () => {
2700
- l?.(T);
2701
- }, notifier: b }, children: e(At, { disableInteractive: !0, title: X ? "" : "List all sheets", children: e(ft, { sx: { padding: "0px", ml: 0.5, mr: 0, mt: 0, mb: 0, "& svg": { transform: "scale(0.8, 1)" }, color: (H) => H.palette.text.icon ?? H.palette.action.active }, ref: Z, dense: !0, outlined: !1, selected: X, color: "primary", "aria-label": "menu", onMouseDown: (H) => {
2702
- H.button === 0 && H.preventDefault();
2703
- }, onClick: () => {
2704
- X ? ae.close(0) : ae.open(0);
2705
- }, icon: e(Od, {}) }) }) }), e("div", { style: { borderTop: `solid ${w} ${h}px`, minWidth: "4px" } }), e("div", { style: { borderTop: `solid ${w} ${h}px`, flex: "none", display: "flex", alignItems: "center" }, children: je }), e("div", { style: { borderTop: `solid ${w} ${h}px`, flex: 1, minWidth: "24px" } }), Ae, G] });
2706
- }));
2707
- ul.displayName = "WorkbookStrip";
2708
- const ml = K(J((r, i) => {
2709
- const { workbook: o, commands: t, disabled: n, sx: l, floatReference: c, className: m, ...a } = r, [s, u] = rr((S) => S + 1, 0), [d, f] = U(o.getSelectedSheet()), [p, g] = U(d.getSelectedRanges()), [y, b] = U(d.getSelectedCell());
2710
- Ue(o, { onSheetsChange() {
2711
- f(o.getSelectedSheet());
2712
- } }), Ue(d.getSelection(), { onChange() {
2713
- g(d.getSelectedRanges()), b(d.getSelectedCell());
2714
- } }), We(t, [], { onChange: () => {
2715
- u();
2716
- } });
2717
- const x = W(() => ({}), []), h = W(() => ({ commandHook: { beforeExecute: (S, N) => c.closeAll(), onExecute() {
2718
- }, onError() {
2719
- console.log("onError");
2720
- } }, disabled: n, scope: "contextMenu", parentFloat: c }), [n, c]), w = W(() => ({ ...x, ...h, variant: ie.Menuitem }), [x, h]), v = W(() => ({ commands: t, variant: ie.Menuitem, parentFloat: c, ...h }), [t, h, c]), C = [];
2721
- let k = p.isEntireRows(), T = p.isEntireColumns();
2722
- p && (k && (C.push(e(re, { orientation: "horizontal" }, "context:" + C.length)), C.push(Pe(F, { command: t.getCommand("hideColumns"), ...w, icon: P(e(Gc, {})), key: "context:" + C.length })), C.push(Pe(F, { command: t.getCommand("unhideColumns"), ...w, icon: P(e(Xc, {})), key: "context:" + C.length }))), T && (C.push(e(re, { orientation: "horizontal" }, "context:" + C.length)), C.push(Pe(F, { command: t.getCommand("hideRows"), ...w, icon: P(e(Kc, {})), key: "context:" + C.length })), C.push(Pe(F, { command: t.getCommand("unhideRows"), ...w, icon: P(e(Yc, {})), key: "context:" + C.length }))), (k || T) && C.push(e(re, { orientation: "horizontal" }, "context:" + C.length)), k && C.push(Pe(F, { command: t.getCommand("autoFitColumns"), ...w, icon: P(e(Zc, {})), key: "context:" + C.length })), T && C.push(Pe(F, { command: t.getCommand("autoFitRows"), ...w, icon: P(e(Jc, {})), key: "context:" + C.length })));
2723
- const M = [], I = t.getCommand("formatTableStyle"), A = I?.context()?.table();
2724
- if (Ht(I), !k && !T) {
2725
- if (M.push(e(re, { orientation: "horizontal" }, "contextBefore:" + M.length)), y?.getHyperlink()) M.push(Pe(ct, { ...v, popupCommandKeys: ["updateHyperlink", "deleteHyperlink"], popupScope: "hyperlink", key: "contextBefore:action" + M.length, quickCommand: "openHyperlink", icon: (S) => S.key() === "openHyperlink" ? P(e(_n, {})) : null }));
2726
- else {
2727
- const S = t.getCommand("updateHyperlink");
2728
- M.push(Pe(F, { command: S, ...w, icon: P(e(_n, {})), key: "contextBefore:" + M.length }));
2729
- }
2730
- if (y?.getComments()) M.push(Pe(ct, { ...v, popupCommandKeys: ["deleteComments"], key: "contextBefore:action" + M.length, quickCommand: "updateComments", icon: (S) => S.key() === "updateComments" ? P(e(Un, {})) : null }));
2731
- else {
2732
- const S = t.getCommand("updateComments");
2733
- M.push(Pe(F, { command: S, ...w, icon: P(e(Un, {})), key: "contextBefore:" + M.length }));
2734
- }
2735
- A ? M.push(Pe(ct, { ...v, variant: ie.Menuitem, key: "contextBefore:" + M.length, popupCommandKeys: ["convertTableToRange", "deleteTable"], popupScope: "table", scope: "context", commandState: A, quickCommand: "editTable", icon: (S) => (S.key(), P(e(an, {}))) })) : M.push(Pe(F, { command: t.getCommand("insertTable"), ...w, icon: P(e(an, {})), key: "context:" + C.length })), M.push(Pe(Li, { ...v, key: "contextBefore:" + M.length }));
2736
- }
2737
- const R = j(se, { children: [e(F, { command: t.getCommand("cut"), ...w, icon: e(Qc, {}) }), e(xr, { command: t.getCommand("copy"), ...w }), e(Oi, { command: t.getCommand("paste"), ...v, includePasteAllInPopup: !1 }), e(re, { orientation: "horizontal" }), e(Ni, { ...v }), e(re, { orientation: "horizontal" }), e(Ri, { commands: t, ...v, disableSheet: !0 }), e(Mi, { commands: t, ...v, disableSheet: !0 }), e(Pi, { ...v }), M, C] });
2738
- return e(B, { ref: i, className: Oe("menu", m), sx: { ...l }, ...a, children: R });
2739
2647
  }));
2740
2648
  var Va, $a;
2741
- ml.displayName = "WorkbookContextMenu", function() {
2649
+ (function() {
2742
2650
  if ($a) return Va;
2743
2651
  $a = 1;
2744
2652
  var r = /^\s+|\s+$/g, i = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, t = /^0o[0-7]+$/i, n = parseInt, l = typeof Co == "object" && Co && Co.Object === Object && Co, c = typeof self == "object" && self && self.Object === Object && self, m = l || c || Function("return this")(), a = Object.prototype.toString, s = Math.max, u = Math.min, d = function() {
@@ -2802,7 +2710,7 @@ ml.displayName = "WorkbookContextMenu", function() {
2802
2710
  return C === void 0 ? v : L(d());
2803
2711
  }, O;
2804
2712
  };
2805
- }();
2713
+ })();
2806
2714
  var _a, Ua, qa = { exports: {} }, Fn = {};
2807
2715
  Ua || (Ua = 1, qa.exports = function() {
2808
2716
  if (_a) return Fn;
@@ -2834,7 +2742,7 @@ Ua || (Ua = 1, qa.exports = function() {
2834
2742
  };
2835
2743
  return Fn.useSyncExternalStore = r.useSyncExternalStore !== void 0 ? r.useSyncExternalStore : m, Fn;
2836
2744
  }()), qa.exports;
2837
- var Ga, Xa, xo = { exports: {} }, Xt = { exports: {} }, pu = Xt.exports;
2745
+ var Ga, Xa, xo = { exports: {} }, Xt = { exports: {} }, su = Xt.exports;
2838
2746
  (function() {
2839
2747
  if (Xa) return xo.exports;
2840
2748
  Xa = 1;
@@ -2852,7 +2760,7 @@ var Ga, Xa, xo = { exports: {} }, Xt = { exports: {} }, pu = Xt.exports;
2852
2760
  }, p = Date.now()) : (Xt.exports = function() {
2853
2761
  return (/* @__PURE__ */ new Date()).getTime() - p;
2854
2762
  }, p = (/* @__PURE__ */ new Date()).getTime());
2855
- }.call(pu)), Xt.exports), i = typeof window > "u" ? Co : window, o = ["moz", "webkit"], t = "AnimationFrame", n = i["request" + t], l = i["cancel" + t] || i["cancelRequest" + t], c = 0; !n && c < o.length; c++) n = i[o[c] + "Request" + t], l = i[o[c] + "Cancel" + t] || i[o[c] + "CancelRequest" + t];
2763
+ }.call(su)), Xt.exports), i = typeof window > "u" ? Co : window, o = ["moz", "webkit"], t = "AnimationFrame", n = i["request" + t], l = i["cancel" + t] || i["cancelRequest" + t], c = 0; !n && c < o.length; c++) n = i[o[c] + "Request" + t], l = i[o[c] + "Cancel" + t] || i[o[c] + "CancelRequest" + t];
2856
2764
  if (!n || !l) {
2857
2765
  var m = 0, a = 0, s = [], u = 1e3 / 60;
2858
2766
  n = function(d) {
@@ -2915,12 +2823,12 @@ var st = { DOM_UNAVAILABLE_ERROR: "DOM is unavailable server-side. Please use th
2915
2823
  const o = this.getEventName(r);
2916
2824
  o && document.removeEventListener(o, i);
2917
2825
  } };
2918
- const uu = (r) => {
2919
- const { workbook: i, workbookElement: o, notifier: t, commandTarget: n, commands: l, darkMode: c, onShowSidebar: m, onNewWorkbook: a = mu } = r, [s, u] = U(i?.getSelectedSheet()), [d, f] = U(i?.getSheets().getItems()), p = ee(m, [m]), g = ee(a, [a]), y = W(() => [new _e("workbookStatistics", n, { label: "Workbook Statistics", description: "Show the workbook statistics.", shortcut: { key: "G", modifiers: [be.Ctrl, be.Shift] } }), new _e("showFormat", n, { label: "Show Format", description: "Open the format pane.", shortcut: { key: "F", modifiers: [be.Ctrl, be.Shift] } }), new ye("newCellStyle", n, { label: "New Cell Style…", scopedLabels: { cellStyle: "New Cell Style" }, description: "Create a new named style can can be quickly used later." }), new ye("deleteCellStyle", n, { label: "Delete Cell Style", scopedLabels: { cellStyle: "Delete" }, description: "Remove a named style that is no longer needed." }), new ye("modifyCellStyle", n, { label: "Modify Cell Style", scopedLabels: { cellStyle: "Modify" }, description: "Update a style with the currently style." }), new _e("find", n, { label: "Find", description: "Open the Find window.", shortcut: [{ key: "F", modifiers: [be.Ctrl] }, { key: "F5", modifiers: [be.Shift] }] }), new _e("findReplace", n, { label: "Find & Replace", description: "Open the Find & Replace window.", shortcut: [{ key: "H", modifiers: [be.Ctrl] }, { key: "H", modifiers: [be.Ctrl, be.Alt] }] }), new _e("goto", n, { label: "Go To", description: "Open the 'Go To' window.", shortcut: [{ key: "G", modifiers: [be.Ctrl] }] }), new _e("workbookViewToggleExpandFormulaBar", n, { label: "Toggle Expand Formula bar", description: "Expand or collapse the formula bar.", shortcut: { key: "U", modifiers: [be.Ctrl, be.Shift] } }), new _e("workbookViewToggleShowFormulaBar", n, { label: "View Formula bar", scopedLabels: { view: "Formula Bar" }, description: "Show or hide the formula bar." }), new _e("workbookViewToggleShowTabs", n, { label: "View Sheet Tabs", description: "Show or hide the sheet tabs.", scopedLabels: { view: "Sheet Tabs" } }), new _e("workbookViewToggleShowStatusBar", n, { label: "View Status Bar", description: "Show or hide the status bar.", scopedLabels: { view: "Status Bar" } }), new _e("workbookViewToggleShowHorizontalScrollBar", n, { label: "View Horizontal Scrollbar", description: "Show or hide the horizontal scrollbar.", scopedLabels: { view: "Horizontal Scrollbar" } }), new _e("workbookViewToggleShowVerticalScrollBar", n, { label: "View Vertical Scrollbar", description: "Show or hide the vertical scrollbar.", scopedLabels: { view: "Vertical Scrollbar" } }), new ye("hideSheet", n, { label: "Hide Sheet", scopedLabels: { sheet: "Hide" }, description: "Hide the sheet from appearing in the tabs. This keeps the data but de-clutters the tabs." }), new ye("deleteSheet", n, { label: "Delete Sheet", scopedLabels: { sheet: "Delete" }, description: "Delete the sheet and all the data." }), new ye("addSheet", n, { label: "Insert Sheet", scopedLabels: { sheet: "Insert" }, description: "Insert sheet before the current sheet.", shortcut: [{ key: "F11", modifiers: [be.Shift] }, { key: "F1", modifiers: [be.Alt, be.Shift] }] }), new ye("duplicateSheet", n, { label: "Duplicate Sheet", description: "Duplicate the current sheet.", scopedLabels: { sheet: "Duplicate" } }), new ye("nextSheet", n, { label: "Next Sheet", scopedLabels: { sheet: "Next" }, description: "Activate the next sheet.", shortcut: [{ key: "PageDown", modifiers: [be.Ctrl] }] }), new ye("previousSheet", n, { label: "Previous Sheet", scopedLabels: { sheet: "Previous" }, description: "Activate the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [be.Ctrl] }] }), new ye("selectNextSheet", n, { label: "Select Next Sheet", scopedLabels: { sheet: "Select Next" }, description: "Select the next sheet.", shortcut: [{ key: "PageDown", modifiers: [be.Ctrl, be.Shift] }] }), new ye("selectPreviousSheet", n, { label: "Select Previous Sheet", scopedLabels: { sheet: "Select Previous" }, description: "Select the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [be.Ctrl, be.Shift] }] }), new ye("selectTheme", n, { label: "Theme", description: "Select a theme that coveys a style suitable for your data." }), new ye("selectNamed", n, { label: (S) => S?.getName() ?? "Select Named Item", scopedLabels: { namedItem: (S) => S?.getName() ?? "Select" }, description: "Select the item." }), new ye("addNamedReference", n, { label: "Define Named Reference", scopedLabels: { namedItem: "Define Name…" }, description: "Add a new named reference. Names can be used as a substitute for cell references." }), new ye("editNamedReference", n, { label: "Edit Named Reference…", scopedLabels: { namedItem: "Edit…" }, description: "Add a new named reference. Names can be used as a substitute for cell references." }), new ye("deleteNamedReference", n, { label: "Delete Named Reference", scopedLabels: { namedItem: "Delete" }, description: "Remove the named reference." }), new _e("activeNameBox", n, { label: "Activate Name Box", description: "Move the focus to the name box.", shortcut: { key: "F3", modifiers: [be.Alt] } }), new _e("createNamedReferenceFromSelection", n, { label: "Create from Selection", description: "Automatically generate names from the selected cells.", shortcut: { key: "F3", modifiers: [be.Ctrl, be.Shift] } }), new _e("activeNameManager", n, { label: "Activate Name Manager", description: `Create, edit, delete, and find all the names used in the workbook.
2826
+ const cu = (r) => {
2827
+ const { workbook: i, workbookElement: o, notifier: t, commandTarget: n, commands: l, darkMode: c, onShowSidebar: m, onNewWorkbook: a = du } = r, [s, u] = U(i?.getSelectedSheet()), [d, f] = U(i?.getSheets().getItems()), p = ee(m, [m]), g = ee(a, [a]), y = W(() => [new _e("workbookStatistics", n, { label: "Workbook Statistics", description: "Show the workbook statistics.", shortcut: { key: "G", modifiers: [we.Ctrl, we.Shift] } }), new _e("showFormat", n, { label: "Show Format", description: "Open the format pane.", shortcut: { key: "F", modifiers: [we.Ctrl, we.Shift] } }), new be("newCellStyle", n, { label: "New Cell Style…", scopedLabels: { cellStyle: "New Cell Style" }, description: "Create a new named style can can be quickly used later." }), new be("deleteCellStyle", n, { label: "Delete Cell Style", scopedLabels: { cellStyle: "Delete" }, description: "Remove a named style that is no longer needed." }), new be("modifyCellStyle", n, { label: "Modify Cell Style", scopedLabels: { cellStyle: "Modify" }, description: "Update a style with the currently style." }), new _e("find", n, { label: "Find", description: "Open the Find window.", shortcut: [{ key: "F", modifiers: [we.Ctrl] }, { key: "F5", modifiers: [we.Shift] }] }), new _e("findReplace", n, { label: "Find & Replace", description: "Open the Find & Replace window.", shortcut: [{ key: "H", modifiers: [we.Ctrl] }, { key: "H", modifiers: [we.Ctrl, we.Alt] }] }), new _e("goto", n, { label: "Go To", description: "Open the 'Go To' window.", shortcut: [{ key: "G", modifiers: [we.Ctrl] }] }), new _e("workbookViewToggleExpandFormulaBar", n, { label: "Toggle Expand Formula bar", description: "Expand or collapse the formula bar.", shortcut: { key: "U", modifiers: [we.Ctrl, we.Shift] } }), new _e("workbookViewToggleShowFormulaBar", n, { label: "View Formula bar", scopedLabels: { view: "Formula Bar" }, description: "Show or hide the formula bar." }), new _e("workbookViewToggleShowTabs", n, { label: "View Sheet Tabs", description: "Show or hide the sheet tabs.", scopedLabels: { view: "Sheet Tabs" } }), new _e("workbookViewToggleShowStatusBar", n, { label: "View Status Bar", description: "Show or hide the status bar.", scopedLabels: { view: "Status Bar" } }), new _e("workbookViewToggleShowHorizontalScrollBar", n, { label: "View Horizontal Scrollbar", description: "Show or hide the horizontal scrollbar.", scopedLabels: { view: "Horizontal Scrollbar" } }), new _e("workbookViewToggleShowVerticalScrollBar", n, { label: "View Vertical Scrollbar", description: "Show or hide the vertical scrollbar.", scopedLabels: { view: "Vertical Scrollbar" } }), new be("hideSheet", n, { label: "Hide Sheet", scopedLabels: { sheet: "Hide" }, description: "Hide the sheet from appearing in the tabs. This keeps the data but de-clutters the tabs." }), new be("deleteSheet", n, { label: "Delete Sheet", scopedLabels: { sheet: "Delete" }, description: "Delete the sheet and all the data." }), new be("addSheet", n, { label: "Insert Sheet", scopedLabels: { sheet: "Insert" }, description: "Insert sheet before the current sheet.", shortcut: [{ key: "F11", modifiers: [we.Shift] }, { key: "F1", modifiers: [we.Alt, we.Shift] }] }), new be("duplicateSheet", n, { label: "Duplicate Sheet", description: "Duplicate the current sheet.", scopedLabels: { sheet: "Duplicate" } }), new be("nextSheet", n, { label: "Next Sheet", scopedLabels: { sheet: "Next" }, description: "Activate the next sheet.", shortcut: [{ key: "PageDown", modifiers: [we.Ctrl] }] }), new be("previousSheet", n, { label: "Previous Sheet", scopedLabels: { sheet: "Previous" }, description: "Activate the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [we.Ctrl] }] }), new be("selectNextSheet", n, { label: "Select Next Sheet", scopedLabels: { sheet: "Select Next" }, description: "Select the next sheet.", shortcut: [{ key: "PageDown", modifiers: [we.Ctrl, we.Shift] }] }), new be("selectPreviousSheet", n, { label: "Select Previous Sheet", scopedLabels: { sheet: "Select Previous" }, description: "Select the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [we.Ctrl, we.Shift] }] }), new be("selectTheme", n, { label: "Theme", description: "Select a theme that coveys a style suitable for your data." }), new be("selectNamed", n, { label: (S) => S?.getName() ?? "Select Named Item", scopedLabels: { namedItem: (S) => S?.getName() ?? "Select" }, description: "Select the item." }), new be("addNamedReference", n, { label: "Define Named Reference", scopedLabels: { namedItem: "Define Name…" }, description: "Add a new named reference. Names can be used as a substitute for cell references." }), new be("editNamedReference", n, { label: "Edit Named Reference…", scopedLabels: { namedItem: "Edit…" }, description: "Add a new named reference. Names can be used as a substitute for cell references." }), new be("deleteNamedReference", n, { label: "Delete Named Reference", scopedLabels: { namedItem: "Delete" }, description: "Remove the named reference." }), new _e("activeNameBox", n, { label: "Activate Name Box", description: "Move the focus to the name box.", shortcut: { key: "F3", modifiers: [we.Alt] } }), new _e("createNamedReferenceFromSelection", n, { label: "Create from Selection", description: "Automatically generate names from the selected cells.", shortcut: { key: "F3", modifiers: [we.Ctrl, we.Shift] } }), new _e("activeNameManager", n, { label: "Activate Name Manager", description: `Create, edit, delete, and find all the names used in the workbook.
2920
2828
 
2921
- Names can be used as a substitute for cell references.`, shortcut: { key: "F3", modifiers: [be.Ctrl] } }), new ye("fullScreenToggle", n, { label: "FullScreen", description: "Toggle showing the workbook using the full screen.", shortcut: { key: "F11" } }), new ye("showScriptEditor", n, { label: "Scripts", scopedLabels: { scripts: "Script Editor…" }, description: "Show the script editor.", shortcut: [{ key: "F11", modifiers: [be.Alt] }] }, function(S = !0) {
2829
+ Names can be used as a substitute for cell references.`, shortcut: { key: "F3", modifiers: [we.Ctrl] } }), new be("fullScreenToggle", n, { label: "FullScreen", description: "Toggle showing the workbook using the full screen.", shortcut: { key: "F11" } }), new be("showScriptEditor", n, { label: "Scripts", scopedLabels: { scripts: "Script Editor…" }, description: "Show the script editor.", shortcut: [{ key: "F11", modifiers: [we.Alt] }] }, function(S = !0) {
2922
2830
  p?.();
2923
- }), new ye("executeScript", n, { label: "Run Script", description: "Run the selected or last executed script.", shortcut: { key: "F8" } }), new ye("executeSelectedScript", n, { label: "Run Script", description: "Run the selected script.", shortcut: { key: "F8" } }), new ye("saveScripts", n, { label: "Save Script", description: "Save the current scripts." }), new ye("maximumWorkbookToggle", n, { label: "Maximize", description: "Toggle showing the workbook maximized.", shortcut: { key: "F10", modifiers: [be.Ctrl] } }), new ye("spellCheck", n, { label: "Spell Check", description: "Check the workbook for spelling mistakes.", shortcut: { key: "F7" } }), new ye("calculateAll", n, { label: "Calculate Now", description: "Recalculate all formulas.", shortcut: { key: "F9" } }), new _e("calculate", n, { label: "Calculate Sheet", description: "Recalculate the formulas on the current sheet.", shortcut: { key: "=", modifiers: [be.Ctrl] } }), new _e("closeWorkbook", n, { label: "Close Workbook", description: "Close the workbook.", shortcut: { key: "W", modifiers: [be.Ctrl] } }), new _e("newWorkbook", n, { label: "New Workbook", description: "Create a new workbook in another tab.", shortcut: { key: "N", modifiers: [be.Ctrl] } })], []), b = W(() => {
2831
+ }), new be("executeScript", n, { label: "Run Script", description: "Run the selected or last executed script.", shortcut: { key: "F8" } }), new be("executeSelectedScript", n, { label: "Run Script", description: "Run the selected script.", shortcut: { key: "F8" } }), new be("saveScripts", n, { label: "Save Script", description: "Save the current scripts." }), new be("maximumWorkbookToggle", n, { label: "Maximize", description: "Toggle showing the workbook maximized.", shortcut: { key: "F10", modifiers: [we.Ctrl] } }), new be("spellCheck", n, { label: "Spell Check", description: "Check the workbook for spelling mistakes.", shortcut: { key: "F7" } }), new be("calculateAll", n, { label: "Calculate Now", description: "Recalculate all formulas.", shortcut: { key: "F9" } }), new _e("calculate", n, { label: "Calculate Sheet", description: "Recalculate the formulas on the current sheet.", shortcut: { key: "=", modifiers: [we.Ctrl] } }), new _e("closeWorkbook", n, { label: "Close Workbook", description: "Close the workbook.", shortcut: { key: "W", modifiers: [we.Ctrl] } }), new _e("newWorkbook", n, { label: "New Workbook", description: "Create a new workbook in another tab." })], []), b = W(() => {
2924
2832
  let S = null;
2925
2833
  return S = l ? l.createChildGroup(n, "workbook", !1) : new mr(n, "workbook"), S.addCommands(y, !0), S;
2926
2834
  }, [l, y]), x = un(), h = le.useRef(null), w = ee(() => {
@@ -3158,9 +3066,103 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
3158
3066
  const S = i.getProtection().isStructureAllowed();
3159
3067
  b.getCommand("hideSheet").update({ disabled: d.length <= 1 || !S }), b.getCommand("deleteSheet").update({ disabled: d.length <= 1 || !S });
3160
3068
  }, [d, s]), b;
3161
- }, mu = () => {
3069
+ }, du = () => {
3162
3070
  window.open(window.origin.toString(), "sheetxl-" + Ze.uuidV4(), "popup=true");
3163
- }, gl = K(J((r, i) => {
3071
+ }, pu = "_sheetxl-theme_4opcr_2", uu = "_sheetxl-workbook_1j3lu_5", mu = (r) => e(Zi, { ...r }), gu = (r) => e(Ji, { ...r }), hu = (r) => e(Yi, { ...r }), ul = K(J((r, i) => {
3072
+ const { workbook: o, commands: t, onBeforeUserChange: n, onUserChange: l, disabled: c = !1, readOnly: m = !1, contextMenuProps: a, renderContextMenu: s = mu, sheetsAllProps: u, renderSheetsAll: d = gu, sheetTabProps: f, renderSheetTab: p, background: g = "transparent", className: y, notifier: b, sx: x, borderWidth: h, borderColor: w, gridTheme: v, gridStyle: C, ...k } = r, [T, M] = U(o?.getSelectedSheetIndex()), [I, A] = U(o?.getSheets().getItems()), [R, S] = U(o?.getProtection());
3073
+ Ue(o, { onViewChange(H) {
3074
+ M(H?.getSelectedSheetIndex());
3075
+ }, onSheetsChange: (H) => {
3076
+ A(H.getSheets().getItems());
3077
+ }, onProtectionChange: (H) => {
3078
+ S(H?.getProtection());
3079
+ } });
3080
+ const N = m || !R.isStructureAllowed(), L = W(() => {
3081
+ const H = [];
3082
+ for (let oe = 0; oe < I.length; oe++) H.push(I[oe].getName());
3083
+ return H;
3084
+ }, [I]), O = q((H) => {
3085
+ n?.(H) !== !1 && (o.getSheetAt(H).select(), l?.(H));
3086
+ }, [o, n, l]), $ = q((H, oe) => {
3087
+ o.getSheetAt(H).setName(oe), l?.(H);
3088
+ }, [o, l]), D = q((H, oe) => {
3089
+ o.getSheetAt(H).setPosition(oe), l?.(oe);
3090
+ }, [o, l]), E = ee(() => {
3091
+ if (n?.(T) === !1) return;
3092
+ const H = T + 1;
3093
+ o.getSheets().add({ name: void 0, autoSelect: !0 }), l?.(H);
3094
+ }, [o, n, l, T]), Y = W(() => ({ placement: "top-start" }), []), Z = Se(null), [X, _] = U(!1), ne = q((H) => {
3095
+ const { closeFloatAll: oe, floatReference: Te } = H;
3096
+ return d({ workbook: o, gridStyle: C, floatReference: Te, closeFloatAll: oe, ...u });
3097
+ }, [d, u, c, o, C]), { reference: ae, component: G } = oo({ label: "allSheet", popperProps: Y, anchor: Z.current, onOpen: () => _(!0), onClose: () => _(!1), createPopupPanel: ne }), z = Se(null), [Q, ue] = U(null), Le = q((H) => {
3098
+ const { floatReference: oe } = H;
3099
+ return s?.({ workbook: o, index: Q?.index, tabStripRef: z.current, commands: t, disabled: c, floatReference: oe, ...a });
3100
+ }, [s, a, c, o, t, Q]), { reference: Fe, component: Ae } = oo({ label: "sheetTab", popperProps: Y, anchor: { getBoundingClientRect: () => new DOMRect(Q?.left || 0, Q?.top || 0, 0, 0) }, onClose: () => ue(null), createPopupPanel: Le });
3101
+ me(() => {
3102
+ Q ? Fe.open(0) : Fe.close(0);
3103
+ }, [Q]);
3104
+ const Ye = q((H, oe) => {
3105
+ H.preventDefault(), ue({ left: H.clientX - 2, top: H.clientY - 4, index: oe });
3106
+ }, []), ve = ee((H) => {
3107
+ let oe;
3108
+ try {
3109
+ oe = o?.getSheetAt(H.index);
3110
+ } catch {
3111
+ }
3112
+ return oe ? (p ?? hu)({ sheet: oe, gridTheme: v, onContextMenu: (Te) => {
3113
+ O(H.index), Ye(Te, H.index);
3114
+ }, ...H, ...f }) : null;
3115
+ }, [p, f, o, v]), je = W(() => N ? null : e(At, { disableInteractive: !0, title: "New sheet", children: e(dt, { disabled: c, component: "div", sx: { padding: "0", "&:hover:not([disabled])": { color: (H) => H.palette.primary.main }, color: (H) => H.palette.text.icon ?? H.palette.action.active, "& svg": { width: "18px", height: "18px" } }, "aria-label": "addTab", size: "small", onMouseDown: (H) => {
3116
+ H.button === 0 && H.preventDefault();
3117
+ }, onClick: () => E(), children: e(Fd, {}) }) }), [c, N, E]);
3118
+ return j(B, { ref: i, className: Oe(y), sx: { position: "relative", display: "flex", alignItems: "stretch", flex: "1 1 100%", maxWidth: "100%", ...x }, ...k, children: [e(_d, { ref: z, selectedTabIndex: T, tabNames: L, onSelectedTabIndexChange: O, onTabNameChange: $, onTabMove: D, background: g, borderColor: w, borderWidth: h, activeColor: null, disabled: c, disableDrag: N, createScrollStartButton: qc, createScrollEndButton: Uc, createScrollEdgeButton: _c, createTabButton: ve, createTabDivider: (H) => {
3119
+ const { key: oe, ...Te } = H;
3120
+ return e(re, { sx: { marginLeft: "-1px", marginRight: "0px", marginTop: "6px", marginBottom: "6px", background: (ge) => he(ge.palette.divider, 0.25) }, ...Te }, oe);
3121
+ }, editLabelProps: { readOnly: N, maxLength: 31, styleHover: { fontWeight: "700" }, onKeyPress: (H) => {
3122
+ o.isValidSheetNameCharacter(H.key) || H.preventDefault();
3123
+ }, onCancel: () => {
3124
+ l?.(T);
3125
+ }, notifier: b }, children: e(At, { disableInteractive: !0, title: X ? "" : "List all sheets", children: e(ft, { sx: { padding: "0px", ml: 0.5, mr: 0, mt: 0, mb: 0, "& svg": { transform: "scale(0.8, 1)" }, color: (H) => H.palette.text.icon ?? H.palette.action.active }, ref: Z, dense: !0, outlined: !1, selected: X, color: "primary", "aria-label": "menu", onMouseDown: (H) => {
3126
+ H.button === 0 && H.preventDefault();
3127
+ }, onClick: () => {
3128
+ X ? ae.close(0) : ae.open(0);
3129
+ }, icon: e(Od, {}) }) }) }), e("div", { style: { borderTop: `solid ${w} ${h}px`, minWidth: "4px" } }), e("div", { style: { borderTop: `solid ${w} ${h}px`, flex: "none", display: "flex", alignItems: "center" }, children: je }), e("div", { style: { borderTop: `solid ${w} ${h}px`, flex: 1, minWidth: "24px" } }), Ae, G] });
3130
+ }));
3131
+ ul.displayName = "WorkbookStrip";
3132
+ const ml = K(J((r, i) => {
3133
+ const { workbook: o, commands: t, disabled: n, sx: l, floatReference: c, className: m, ...a } = r, [s, u] = rr((S) => S + 1, 0), [d, f] = U(o.getSelectedSheet()), [p, g] = U(d.getSelectedRanges()), [y, b] = U(d.getSelectedCell());
3134
+ Ue(o, { onSheetsChange() {
3135
+ f(o.getSelectedSheet());
3136
+ } }), Ue(d.getSelection(), { onChange() {
3137
+ g(d.getSelectedRanges()), b(d.getSelectedCell());
3138
+ } }), We(t, [], { onChange: () => {
3139
+ u();
3140
+ } });
3141
+ const x = W(() => ({}), []), h = W(() => ({ commandHook: { beforeExecute: (S, N) => c.closeAll(), onExecute() {
3142
+ }, onError() {
3143
+ console.log("onError");
3144
+ } }, disabled: n, scope: "contextMenu", parentFloat: c }), [n, c]), w = W(() => ({ ...x, ...h, variant: ie.Menuitem }), [x, h]), v = W(() => ({ commands: t, variant: ie.Menuitem, parentFloat: c, ...h }), [t, h, c]), C = [];
3145
+ let k = p.isEntireRows(), T = p.isEntireColumns();
3146
+ p && (k && (C.push(e(re, { orientation: "horizontal" }, "context:" + C.length)), C.push(Pe(F, { command: t.getCommand("hideColumns"), ...w, icon: P(e(Gc, {})), key: "context:" + C.length })), C.push(Pe(F, { command: t.getCommand("unhideColumns"), ...w, icon: P(e(Xc, {})), key: "context:" + C.length }))), T && (C.push(e(re, { orientation: "horizontal" }, "context:" + C.length)), C.push(Pe(F, { command: t.getCommand("hideRows"), ...w, icon: P(e(Kc, {})), key: "context:" + C.length })), C.push(Pe(F, { command: t.getCommand("unhideRows"), ...w, icon: P(e(Yc, {})), key: "context:" + C.length }))), (k || T) && C.push(e(re, { orientation: "horizontal" }, "context:" + C.length)), k && C.push(Pe(F, { command: t.getCommand("autoFitColumns"), ...w, icon: P(e(Zc, {})), key: "context:" + C.length })), T && C.push(Pe(F, { command: t.getCommand("autoFitRows"), ...w, icon: P(e(Jc, {})), key: "context:" + C.length })));
3147
+ const M = [], I = t.getCommand("formatTableStyle"), A = I?.context()?.table();
3148
+ if (Ht(I), !k && !T) {
3149
+ if (M.push(e(re, { orientation: "horizontal" }, "contextBefore:" + M.length)), y?.getHyperlink()) M.push(Pe(ct, { ...v, popupCommandKeys: ["updateHyperlink", "deleteHyperlink"], popupScope: "hyperlink", key: "contextBefore:action" + M.length, quickCommand: "openHyperlink", icon: (S) => S.key() === "openHyperlink" ? P(e(_n, {})) : null }));
3150
+ else {
3151
+ const S = t.getCommand("updateHyperlink");
3152
+ M.push(Pe(F, { command: S, ...w, icon: P(e(_n, {})), key: "contextBefore:" + M.length }));
3153
+ }
3154
+ if (y?.getComments()) M.push(Pe(ct, { ...v, popupCommandKeys: ["deleteComments"], key: "contextBefore:action" + M.length, quickCommand: "updateComments", icon: (S) => S.key() === "updateComments" ? P(e(Un, {})) : null }));
3155
+ else {
3156
+ const S = t.getCommand("updateComments");
3157
+ M.push(Pe(F, { command: S, ...w, icon: P(e(Un, {})), key: "contextBefore:" + M.length }));
3158
+ }
3159
+ A ? M.push(Pe(ct, { ...v, variant: ie.Menuitem, key: "contextBefore:" + M.length, popupCommandKeys: ["convertTableToRange", "deleteTable"], popupScope: "table", scope: "context", commandState: A, quickCommand: "editTable", icon: (S) => (S.key(), P(e(an, {}))) })) : M.push(Pe(F, { command: t.getCommand("insertTable"), ...w, icon: P(e(an, {})), key: "context:" + C.length })), M.push(Pe(Li, { ...v, key: "contextBefore:" + M.length }));
3160
+ }
3161
+ const R = j(se, { children: [e(F, { command: t.getCommand("cut"), ...w, icon: e(Qc, {}) }), e(xr, { command: t.getCommand("copy"), ...w }), e(Oi, { command: t.getCommand("paste"), ...v, includePasteAllInPopup: !1 }), e(re, { orientation: "horizontal" }), e(Ni, { ...v }), e(re, { orientation: "horizontal" }), e(Ri, { commands: t, ...v, disableSheet: !0 }), e(Mi, { commands: t, ...v, disableSheet: !0 }), e(Pi, { ...v }), M, C] });
3162
+ return e(B, { ref: i, className: Oe("menu", m), sx: { ...l }, ...a, children: R });
3163
+ }));
3164
+ ml.displayName = "WorkbookContextMenu";
3165
+ const gl = K(J((r, i) => {
3164
3166
  const { movable: o, commands: t, disabled: n, sx: l, floatReference: c, ...m } = r;
3165
3167
  Ue(o, { onAnyChange(g) {
3166
3168
  } });
@@ -3206,8 +3208,8 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
3206
3208
  return e(B, { ref: i, sx: { paddingTop: "4px", paddingBottom: "4px", ...l }, ...m, children: p });
3207
3209
  }));
3208
3210
  gl.displayName = "MovableContextMenu";
3209
- const gu = "_sheetxl-theme_4opcr_2", hu = "_sheetxl-workbook_1j3lu_5", fu = { fireOnModelChange: !1 }, On = { flex: "1 1 100%", display: "flex" }, xu = (r) => e(ji, { ...r }), bu = (r) => e(ul, { ...r }), yu = (r) => e(gl, { ...r }), wu = (r) => e(ml, { ...r }), Su = (r) => e(Ki, { ...r }), vu = (r, i) => e(Xi, { ref: i, ...r }), Cu = (r) => e(Lt, { ...r }), ku = (r, i) => e(Gd, { ref: i, ...r }), hl = K(J((r, i) => {
3210
- const { workbook: o, createWorkbookOptions: t, onNewWorkbook: n, onElementLoad: l, notifier: c, autoFocus: m = !1, sx: a, style: s, className: u, onFocus: d, onBlur: f, onKeyDown: p, onRepeatCommandChange: g, commands: y, showFormulaBar: b, formulaBarProps: x, renderFormulaBar: h = vu, showTabs: w, tabsProps: v, renderTabs: C = bu, showStatusBar: k, statusBarProps: T, renderStatusBar: M = xu, toolbarProps: I, renderToolbar: A = pl, contextMenuSx: R, renderContextMenu: S = wu, renderFilterMenu: N = Su, renderMovableMenu: L = yu, renderLoadingPanel: O = Cu, loadingPanelProps: $, sheetProps: D, renderSheet: E = ku, showHorizontalScrollbar: Y, showVerticalScrollbar: Z, gridTheme: X, headersTheme: _, enableDarkImages: ne, ...ae } = r, G = at(), z = hr(), Q = W(() => {
3211
+ const fu = (r) => e(gl, { ...r }), xu = (r) => e(ml, { ...r }), bu = (r) => e(Ki, { ...r }), yu = (r, i) => e(Xi, { ref: i, ...r }), wu = (r) => e(Lt, { ...r }), Su = (r, i) => e(Ud, { ref: i, ...r }), vu = (r) => e(ji, { ...r }), Cu = (r) => e(ul, { ...r }), ku = { fireOnModelChange: !1 }, On = { flex: "1 1 100%", display: "flex" }, hl = K(J((r, i) => {
3212
+ const { workbook: o, createWorkbookOptions: t, onNewWorkbook: n, onElementLoad: l, notifier: c, autoFocus: m = !1, sx: a, style: s, className: u, onFocus: d, onBlur: f, onKeyDown: p, onRepeatCommandChange: g, commands: y, showFormulaBar: b, formulaBarProps: x, renderFormulaBar: h = yu, showTabs: w, tabsProps: v, renderTabs: C = Cu, showStatusBar: k, statusBarProps: T, renderStatusBar: M = vu, toolbarProps: I, renderToolbar: A = pl, contextMenuSx: R, renderContextMenu: S = xu, renderFilterMenu: N = bu, renderMovableMenu: L = fu, renderLoadingPanel: O = wu, loadingPanelProps: $, sheetProps: D, renderSheet: E = Su, showHorizontalScrollbar: Y, showVerticalScrollbar: Z, gridTheme: X, headersTheme: _, enableDarkImages: ne, ...ae } = r, G = at(), z = hr(), Q = W(() => {
3211
3213
  const V = { theme: z.getDefaultTheme(), ...t };
3212
3214
  return o ?? new jn(V);
3213
3215
  }, [o]), ue = Se(null), [Le, Fe] = U(!1), Ae = Se(null), Ye = W(() => e(B, { className: "sheetxl-viewport", sx: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute", pointerEvents: "none !important", "& > :first-of-type": { position: "relative" } }, ref: Ae }), []), [ve, je] = U(!1), [H, oe] = U(!1), Te = q(() => {
@@ -3233,7 +3235,7 @@ const gu = "_sheetxl-theme_4opcr_2", hu = "_sheetxl-workbook_1j3lu_5", fu = { fi
3233
3235
  ue.current.getSheet() !== de ? ue.current.getGridElement()?.onViewChangeOnce(() => {
3234
3236
  ue.current.getSheet() !== de && Ee(!1), Ee(!0);
3235
3237
  }) : Ee(!0);
3236
- }) }, fu);
3238
+ }) }, ku);
3237
3239
  const [fn, vr] = rr((V) => V + 1, 0), jt = Q?.getView();
3238
3240
  Ue(jt, { onViewChange: (V) => {
3239
3241
  vr();
@@ -3242,7 +3244,7 @@ const gu = "_sheetxl-theme_4opcr_2", hu = "_sheetxl-workbook_1j3lu_5", fu = { fi
3242
3244
  q(() => {
3243
3245
  ue.current.focus();
3244
3246
  }, []);
3245
- const [xn, Tr] = U(!1), Er = Se(null), Ne = uu({ workbook: Q, workbookElement: fe.current, commandTarget: () => ue.current, notifier: c, commands: y, darkMode: Ke.body.darkMode, onNewWorkbook: n, onShowSidebar: () => {
3247
+ const [xn, Tr] = U(!1), Er = Se(null), Ne = cu({ workbook: Q, workbookElement: fe.current, commandTarget: () => ue.current, notifier: c, commands: y, darkMode: Ke.body.darkMode, onNewWorkbook: n, onShowSidebar: () => {
3246
3248
  xn ? Er.current?.focus() : Tr(!0);
3247
3249
  } }), bn = Se(null), [Dr, Pr] = U(!1), [Bl, Rr] = U(null), [Ll, Hl] = U(co.Top), [Bo, zl] = U(ds.EmptyBounds), yn = () => {
3248
3250
  Pr(!1), Rr(null);
@@ -3290,7 +3292,7 @@ const gu = "_sheetxl-theme_4opcr_2", hu = "_sheetxl-workbook_1j3lu_5", fu = { fi
3290
3292
  } });
3291
3293
  }, [L, R, Ne]);
3292
3294
  W(() => {
3293
- const V = [new _e("openContextMenu", () => ue.current, { label: "Context Menu", description: "Open the context menu.", shortcut: [{ key: "F10", modifiers: [be.Shift] }, { key: "ContextMenu" }] })];
3295
+ const V = [new _e("openContextMenu", () => ue.current, { label: "Context Menu", description: "Open the context menu.", shortcut: [{ key: "F10", modifiers: [we.Shift] }, { key: "ContextMenu" }] })];
3294
3296
  Ne.addCommands(V, !0);
3295
3297
  }, [Ne]), me(() => {
3296
3298
  Ne.getCommand("openContextMenu").updateCallback(() => {
@@ -3339,10 +3341,10 @@ const gu = "_sheetxl-theme_4opcr_2", hu = "_sheetxl-workbook_1j3lu_5", fu = { fi
3339
3341
  Gl(Tt, de);
3340
3342
  }, ...Ee }, Ve = de.getContent().getType();
3341
3343
  let $e = null;
3342
- if (Ve === "picture") return e(Ud, { loadingPanel: e(Lt, { transitionDelay: "100", style: { position: "absolute" }, sx: { border: (Tt) => `solid 1px ${Tt.palette.action.active}` } }), picture: de.getContent(), description: de.getDescription() ?? de?.getName(), ...qe });
3344
+ if (Ve === "picture") return e(qd, { loadingPanel: e(Lt, { transitionDelay: "100", style: { position: "absolute" }, sx: { border: (Tt) => `solid 1px ${Tt.palette.action.active}` } }), picture: de.getContent(), description: de.getDescription() ?? de?.getName(), ...qe });
3343
3345
  if (Ve === "chart") {
3344
3346
  const Tt = { ...qe, chart: de.getContent() };
3345
- return e(qd, { ...Tt });
3347
+ return e(Gd, { ...Tt });
3346
3348
  }
3347
3349
  if ($e = `Float of type '${Ve}'.`, typeof $e == "string") {
3348
3350
  const Tt = { ...qe, description: $e };
@@ -3376,7 +3378,7 @@ const gu = "_sheetxl-theme_4opcr_2", hu = "_sheetxl-workbook_1j3lu_5", fu = { fi
3376
3378
  let Ee = null, qe = 4, Ve = 13;
3377
3379
  return Xe ? Ee = "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" : (Ee = "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", qe = 13, Ve = 4), e(Gn, { fixedPane: "after", position: "40%", minAfter: Xe ? "280px" : "120px", splitDirection: Xe ? "row" : "column", style: On, ref: $l, resizerProps: { className: "styled-resizer", style: { minWidth: Xe ? "6px" : void 0, minHeight: Xe ? void 0 : "6px", maskImage: `url("data:image/svg+xml,%3Csvg width='${qe}' height='${Ve}' viewBox='0 0 ${qe} ${Ve}' version='1.1' fill='${G.palette.text.icon ?? G.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${Ee}' /%3E%3C/svg%3E%0A")`, maskRepeat: "no-repeat", maskPosition: Xe ? "left center" : "top center" } }, elementBefore: de, paneBeforeProps: { style: { flexDirection: "column" } }, elementAfter: Cn, paneAfterProps: { style: { marginLeft: Xe ? "0px" : "4px", marginRight: Xe ? "8px" : "4px" } } });
3378
3380
  }, [kt, Ct, Fr, Nr, kr, Cn, Lr, wn, G, Xe]), as = W(() => ({ boxSizing: "border-box", background: (V) => V.palette.mode !== "dark" ? Ke.header.fill : V.palette.background.paper, "& *": { ...pd(G), fontWeight: 400 }, "&.Mui-focusVisible": {}, "& .viewport-overlay": { borderRight: `solid ${Vt} 1px` }, ...a }), [a, Ke]);
3379
- return j(Po, { className: Oe("sheetxl-workbook", hu, { "Mui-focusVisible": Le }, gu, u), sx: as, style: s, square: !1, ...ae, ref: fe, onFocus: (V) => {
3381
+ return j(Po, { className: Oe("sheetxl-workbook", uu, { "Mui-focusVisible": Le }, pu, u), sx: as, style: s, square: !1, ...ae, ref: fe, onFocus: (V) => {
3380
3382
  Fe(!0), Kl(), d?.(V);
3381
3383
  }, onBlur: (V) => {
3382
3384
  Fe(!1), f?.(V);
@@ -3412,7 +3414,7 @@ const Tu = (r = !1, i = !1) => i ? null : { "& input:not(:focus):not(:hover)": {
3412
3414
  if (R.target.value.length > Yt.MAX_WORKBOOK_NAME_SIZE) return R.stopPropagation(), void R.preventDefault();
3413
3415
  y(R.target.value);
3414
3416
  }, onKeyDown: (R) => {
3415
- (Yt.WINDOW_FILENAME_CHAR_RESERVED_REGEX.test(R.key) || R.target?.value.length > Yt.MAX_WORKBOOK_NAME_SIZE) && R.preventDefault(), R.which === we.Enter || R.which === we.Tab ? (f ? y(b) : (c?.(g), g && (I.current?.onAccept?.(g, "keydown"), I.current = null)), R.stopPropagation(), R.preventDefault(), t?.focus()) : R.which === we.Escape && (g === b ? t?.focus() : (y(b), setTimeout(() => {
3417
+ (Yt.WINDOW_FILENAME_CHAR_RESERVED_REGEX.test(R.key) || R.target?.value.length > Yt.MAX_WORKBOOK_NAME_SIZE) && R.preventDefault(), R.which === ye.Enter || R.which === ye.Tab ? (f ? y(b) : (c?.(g), g && (I.current?.onAccept?.(g, "keydown"), I.current = null)), R.stopPropagation(), R.preventDefault(), t?.focus()) : R.which === ye.Escape && (g === b ? t?.focus() : (y(b), setTimeout(() => {
3416
3418
  R.target?.select();
3417
3419
  }, 0)), I.current = null, R.stopPropagation(), R.preventDefault());
3418
3420
  }, value: g }), e(B, { ref: h, sx: { position: "absolute", visibility: "hidden", top: "-9999px", fontWeight: "600 !important", whiteSpace: "pre", fontStyle: g !== b ? "italic" : void 0, fontFamily: (R) => R.typography.fontFamily, letterSpacing: "0.00938em" }, children: g || l })] }) }) });
@@ -4101,7 +4103,7 @@ const Fl = K(J((r, i) => {
4101
4103
  const Z = { ...E, onKeyDown: (X) => {
4102
4104
  u?.dispatchToFocusedCommand(X), X.isDefaultPrevented() || X.isPropagationStopped() || E?.onKeyDown?.(X);
4103
4105
  } };
4104
- return C(D, { sort: () => import("./BdX-JA-__aDsnq7S.mjs"), numberFormat: () => import("./Dhvid6hJKp8mH3mM.mjs"), hyperlink: () => import("./C89QUgwXHQc2dJ3l.mjs"), comments: () => import("./C3cb5A2fg-21I_jY.mjs"), find: () => import("./B1z2_AMWCsfpJHbb.mjs"), tableDetails: () => import("./B07osQ30jqhbDbZd.mjs"), tableNew: () => import("./CKP6l57oywzoCW26.mjs"), namedDetails: () => import("./D3Q0yYY719Kq6-E0.mjs") }[D], Z, Y);
4106
+ return C(D, { sort: () => import("./EtifG-bfsXWhtPBs.mjs"), numberFormat: () => import("./G3eXSOQR5J22vVPn.mjs"), hyperlink: () => import("./DhDP68Gnu0ecXoEo.mjs"), comments: () => import("./Bswq6fP66W0nvCDs.mjs"), find: () => import("./DLslRLlEGGqF38l_.mjs"), tableDetails: () => import("./CVcOQ3-2TAENtdUP.mjs"), tableNew: () => import("./DuS5OUxsVj0DIXgN.mjs"), namedDetails: () => import("./B0DdZmmlqEsOMTPX.mjs") }[D], Z, Y);
4105
4107
  }, showOptions: k, showInputOptions: T, showError: (D) => {
4106
4108
  let E, Y = wt.Error, Z = "Unknown Error";
4107
4109
  typeof D == "string" ? Z = D : D instanceof Error && (E = D, D.message && (Z = D.message)), D instanceof Zd && (Y = wt.Info), $(Z, { type: Y, enqueueProps: { error: E } });
@@ -4129,18 +4131,18 @@ const Fl = K(J((r, i) => {
4129
4131
  const ge = [];
4130
4132
  Y || (Ot.getWriteFormats().forEach((te) => {
4131
4133
  const ce = te.isDefault, Me = { label: ce ? "Save Workbook" : `Save Workbook as ${te.description}`, scopedLabels: { workbook: "Save", saveWorkbook: `as ${te.description}` }, tags: te.tags, description: `Save the workbook to the desktop${ce ? "" : ` as ${te.description}`}.` };
4132
- ce && (Me.shortcut = { key: "S", modifiers: [be.Ctrl] }, ge.push(new ye("saveWorkbookAs", ve, { label: "Save Workbook As…", scopedLabels: { workbook: "Save as…", saveWorkbook: "as…" }, shortcut: [{ key: "S", modifiers: [be.Shift, be.Ctrl] }, { key: "F12" }], description: "Save the workbook to the desktop with the provided name." }, () => {
4134
+ ce && (Me.shortcut = { key: "S", modifiers: [we.Ctrl] }, ge.push(new be("saveWorkbookAs", ve, { label: "Save Workbook As…", scopedLabels: { workbook: "Save as…", saveWorkbook: "as…" }, shortcut: [{ key: "S", modifiers: [we.Shift, we.Ctrl] }, { key: "F12" }], description: "Save the workbook to the desktop with the provided name." }, () => {
4133
4135
  Ye(D, null, te).catch((Ge) => {
4134
4136
  _?.showError?.(Ge);
4135
4137
  });
4136
4138
  })));
4137
4139
  const xe = ce ? "saveWorkbook" : `saveWorkbookAs${te.key}`;
4138
- ge.push(new ye(xe, ve, Me, (Ge) => {
4140
+ ge.push(new be(xe, ve, Me, (Ge) => {
4139
4141
  Ye(D, Ge ?? Z, te).catch((et) => {
4140
4142
  _?.showError?.(et);
4141
4143
  });
4142
4144
  }));
4143
- }), ge.push(new ye("openWorkbook", ve, { label: "Open Workbook…", scopedLabels: { workbook: "Open…" }, description: "Open a workbook from the desktop.", shortcut: { key: "O", modifiers: [be.Ctrl] } }, async (te = null) => {
4145
+ }), ge.push(new be("openWorkbook", ve, { label: "Open Workbook…", scopedLabels: { workbook: "Open…" }, description: "Open a workbook from the desktop.", shortcut: { key: "O", modifiers: [we.Ctrl] } }, async (te = null) => {
4144
4146
  const ce = { date1904: D.isDate1904(), ...D.options };
4145
4147
  try {
4146
4148
  const Me = await Ae(te, ce);
@@ -4157,7 +4159,7 @@ const Fl = K(J((r, i) => {
4157
4159
  } catch (Me) {
4158
4160
  _?.showError?.(Me);
4159
4161
  }
4160
- })), ge.push(new ye("openWorkbookFromUrl", ve, { label: "Open Workbook From Web", scopedLabels: { insert: "From Web", workbook: "From Web…" }, description: "Open a workbook from the web." }, async function(te) {
4162
+ })), ge.push(new be("openWorkbookFromUrl", ve, { label: "Open Workbook From Web", scopedLabels: { insert: "From Web", workbook: "From Web…" }, description: "Open a workbook from the web." }, async function(te) {
4161
4163
  if (!te) {
4162
4164
  const ce = await _?.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"] });
4163
4165
  if (ce.option !== "Open") return;
@@ -4166,15 +4168,15 @@ const Fl = K(J((r, i) => {
4166
4168
  te && console.log("openWorkbookFromUrl", te);
4167
4169
  })));
4168
4170
  let fe = [];
4169
- return ae && (fe = [new ye("themeMode", ve, { label: "Light/Dark Mode", scopedLabels: { appearance: "Light/Dark Mode" }, description: "Toggle the application styling between light and dark mode." }), new ye("defaultThemeMode", ve, { 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 ye("enableDarkGrid", ve, { 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 ye("enableDarkImages", ve, { 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." })]), [...ge, ...fe, new _e("help", ve, { label: "Show Help", description: "Provide Help.", shortcut: { key: "F1" } }, () => {
4170
- }), new _e("showKeyboardShortcuts", ve, { label: "Keyboard Shortcuts", description: "Show keyboard shortcuts.", shortcut: { key: "/", modifiers: [be.Ctrl] } }, () => {
4171
- }), new ye("gotoUrlGithub", ve, { label: "Github", description: "Download examples, explore source code, and leave a star." }, () => {
4171
+ return ae && (fe = [new be("themeMode", ve, { label: "Light/Dark Mode", scopedLabels: { appearance: "Light/Dark Mode" }, description: "Toggle the application styling between light and dark mode." }), new be("defaultThemeMode", ve, { 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 be("enableDarkGrid", ve, { 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 be("enableDarkImages", ve, { 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." })]), [...ge, ...fe, new _e("help", ve, { label: "Show Help", description: "Provide Help.", shortcut: { key: "F1" } }, () => {
4172
+ }), new _e("showKeyboardShortcuts", ve, { label: "Keyboard Shortcuts", description: "Show keyboard shortcuts.", shortcut: { key: "/", modifiers: [we.Ctrl] } }, () => {
4173
+ }), new be("gotoUrlGithub", ve, { label: "Github", description: "Download examples, explore source code, and leave a star." }, () => {
4172
4174
  window?.open("https://github.com/sheetxl/sheetxl");
4173
- }), new ye("gotoUrlDiscord", ve, { label: "Discord", description: "Join our community on discord." }, () => {
4175
+ }), new be("gotoUrlDiscord", ve, { label: "Discord", description: "Join our community on discord." }, () => {
4174
4176
  window?.open("https://discord.gg/NTKdwUgK9p");
4175
- }), new ye("gotoUrlDocumentation", ve, { label: "Documentation", description: "Read the documentation." }, () => {
4177
+ }), new be("gotoUrlDocumentation", ve, { label: "Documentation", description: "Read the documentation." }, () => {
4176
4178
  window?.open("https://www.sheetxl.com/docs");
4177
- }), new ye("gotoUrlIssue", ve, { label: "Create Issue", description: "Create an issue to identify a bug or a feature request." }, () => {
4179
+ }), new be("gotoUrlIssue", ve, { label: "Create Issue", description: "Create an issue to identify a bug or a feature request." }, () => {
4178
4180
  window?.open("https://github.com/sheetxl/sheetxl/issues");
4179
4181
  })];
4180
4182
  }, [D, Z, _, Y, ae, z, G]), H = W(() => {
@@ -4199,7 +4201,7 @@ const Fl = K(J((r, i) => {
4199
4201
  const { showModal: Te } = bd();
4200
4202
  return me(() => {
4201
4203
  const ge = () => new Promise((fe, te) => {
4202
- const ce = le.lazy(() => import("./BZX8sIMfMsI3HTX8.mjs")), Me = Te(ce, { title: "Shortcut Keys Reference", commands: H, onDone: () => {
4204
+ const ce = le.lazy(() => import("./BJFiuof0tzKRQx2c.mjs")), Me = Te(ce, { title: "Shortcut Keys Reference", commands: H, onDone: () => {
4203
4205
  Me.hide();
4204
4206
  }, TransitionProps: { onExited: () => {
4205
4207
  fe(!0);
@@ -4364,21 +4366,20 @@ export {
4364
4366
  Zi as ad,
4365
4367
  Ji as ae,
4366
4368
  km as af,
4367
- Cu as ag,
4368
- hl as ah,
4369
- fl as ai,
4370
- ml as aj,
4371
- ul as ak,
4372
- uu as al,
4373
- mu as am,
4374
- ja as an,
4375
- tr as ao,
4376
- nm as ap,
4377
- Ot as aq,
4378
- cl as ar,
4379
- dl as as,
4380
- eu as at,
4381
- ll as au,
4369
+ hl as ag,
4370
+ fl as ah,
4371
+ ml as ai,
4372
+ ul as aj,
4373
+ cu as ak,
4374
+ du as al,
4375
+ ja as am,
4376
+ tr as an,
4377
+ nm as ao,
4378
+ Ot as ap,
4379
+ cl as aq,
4380
+ dl as ar,
4381
+ eu as as,
4382
+ ll as at,
4382
4383
  Wt as b,
4383
4384
  Co as c,
4384
4385
  Kn as d,