@sheetxl/studio-mui 0.8.0-beta.4 → 0.8.0-beta.6

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 (81) hide show
  1. package/browser/cjs/{BGvoJjUs21bbuE1i.cjs → 3RXtLkq7wTAV6y_e.cjs} +1 -1
  2. package/browser/cjs/{BXkdjAb4jpTr412c.cjs → BD50lsTki7wvzb5g.cjs} +1 -1
  3. package/browser/cjs/BlNKpwiG-Q7eIi5t.cjs +8 -0
  4. package/browser/cjs/ByIUHPOa02D7XbdC.cjs +1 -0
  5. package/browser/cjs/{eCw4rAEIYE3BftpG.cjs → CkroJ2FmfFvk6Eyv.cjs} +1 -1
  6. package/browser/cjs/{B9GcCj7sj8XdjPZF.cjs → CzJvR12QCQb-0Rtn.cjs} +1 -1
  7. package/browser/cjs/{3uprnzi2l0iT17Dg.cjs → D-Yo5aV9STT5KH4G.cjs} +1 -1
  8. package/browser/cjs/{BHb7TnK1NmimV4OX.cjs → DwkiLFWUtLC8ZcIQ.cjs} +1 -1
  9. package/browser/cjs/index.cjs +1 -1
  10. package/browser/cjs/xCAd86Y_REa3Xs1o.cjs +13 -0
  11. package/browser/esm/{wqS-qBYe9-awT5Rr.mjs → 27jPjqdDLWn5qbQ8.mjs} +3 -3
  12. package/browser/esm/{o8pQBbpRc03xny0J.mjs → 2_WF-hy6x4dXfEzW.mjs} +1 -1
  13. package/browser/esm/{Dj2-pD6jM9SjbPfX.mjs → 61ip_C1X9ls4svw6.mjs} +1 -1
  14. package/browser/esm/{BH7X6WilO_oB3j3h.mjs → 6EK3JgWrKYfqzAfV.mjs} +1 -1
  15. package/browser/esm/{CrTz-SMNtZoj2Z48.mjs → BFxtcKJBbfjtMft-.mjs} +2 -2
  16. package/browser/esm/{DRQzyIQfZQuviFBK.mjs → BGdZT1Ka4ohDCZpW.mjs} +3 -3
  17. package/browser/esm/{CimAg7LJqIb3ULYp.mjs → BPzT8gL3SgD0CG7V.mjs} +1131 -1091
  18. package/browser/esm/{CHqIzUemj2wQqlNO.mjs → BlWsO6M15Ii13NrV.mjs} +2 -2
  19. package/browser/esm/{DoU18LVtqUiePYs1.mjs → BofZe0q9bsHQr0Xd.mjs} +1 -1
  20. package/browser/esm/{DFbbRoJIDXqoF7nu.mjs → BybBaLxSKyGAsxqO.mjs} +3 -3
  21. package/browser/esm/{BJCaJYz86lNGZGh1.mjs → C5swGBbBLdDzg_bm.mjs} +2 -2
  22. package/browser/esm/{BVs5I1lTSja2b0B9.mjs → CKemMJZNIPnJ0dUE.mjs} +2 -2
  23. package/browser/esm/{ec1sT17zcL-gOSRO.mjs → CsNOEAKuHLfckItX.mjs} +1 -1
  24. package/browser/esm/CyQk62MFBCep2ZZs.mjs +223 -0
  25. package/browser/esm/{4zCEiqAUYE1FtC_Y.mjs → D-JQOjmAh6Gk6wVM.mjs} +2 -2
  26. package/browser/esm/{OwfpYCy5lgrQ-16J.mjs → D3b3dWTjvFd1Kj5g.mjs} +1 -1
  27. package/browser/esm/{Bv0eMxh_ZN44Ikgp.mjs → D8FEKUKVxH32duMx.mjs} +3 -3
  28. package/browser/esm/{nZ7NKFIakvUB_oNM.mjs → DRUKu2I27bidfyvH.mjs} +1 -1
  29. package/browser/esm/{CtOFBKJZWEJY5GOf.mjs → DTLKzrZGPkkNlncN.mjs} +2 -2
  30. package/browser/esm/{BWNmYjzGDBhZYgIO.mjs → Dzym1WSjYb_mnVkJ.mjs} +2 -2
  31. package/browser/esm/{CPDwT78ZJV0KhVfv.mjs → FK7vqizwRujDsqL2.mjs} +1825 -1743
  32. package/browser/esm/{DHYkgVTs7_z8sPt8.mjs → JYRkZ4iKzbWnNhEs.mjs} +2 -2
  33. package/browser/esm/{S7-XfIxL3I5D5tDS.mjs → aGoWX29-zbUaPh2U.mjs} +2 -2
  34. package/browser/esm/index.mjs +94 -94
  35. package/browser/esm/{BmVeug3PPG-mEUBe.mjs → p62JxLmjmWD2MQq1.mjs} +2 -2
  36. package/licenses/dependencies.txt +134 -134
  37. package/node/esm/{BVmpGvXDUqEmggq3.mjs → 3J2-TRYWEsvnTDnO.mjs} +1 -1
  38. package/node/esm/{BtruJA9z21K9pnuA.mjs → B2QOYsl1YmcwknsP.mjs} +9 -9
  39. package/node/esm/{DKzeeAeOVF2r68yb.mjs → CE6ZU2MVb3_-FzIk.mjs} +1 -1
  40. package/node/esm/{CUsUUWPxbO1IW9PY.mjs → CKOhL08sVy1N_Uza.mjs} +1 -1
  41. package/node/esm/{FxGz3tv6y2gcffmK.mjs → CksPMsHwUSCpFnpS.mjs} +1205 -1164
  42. package/node/esm/{B9iw8mqg0MDNDp5_.mjs → CtoRlEz1GwA88zTu.mjs} +1 -1
  43. package/node/esm/{BNROwD9ZMLgwtXL_.mjs → CzERDnu2VbNTjJgI.mjs} +8 -8
  44. package/node/esm/{2wtbIYdeGDT6UzN4.mjs → D3xcuMwJvLJhlPNV.mjs} +1 -1
  45. package/node/esm/{CGhj-BDkyrejG1Jj.mjs → DDVJs9oOFXR3RfSi.mjs} +1 -1
  46. package/node/esm/{DMbGl7mOdelCN7-u.mjs → Dc4t_AYLdTAnPOIT.mjs} +1 -1
  47. package/node/esm/{T3WcGiReCHGeKPOy.mjs → JUUre9pYia7feetw.mjs} +1 -1
  48. package/node/esm/{R1_Dii8zCHEAZKvZ.mjs → K6LEXUZkuqoEn5yJ.mjs} +1 -1
  49. package/node/esm/{B1z-keCkm0LI9ezw.mjs → ObY_iULY2ezBYD3q.mjs} +1 -1
  50. package/node/esm/index.mjs +2901 -2820
  51. package/node/esm/{DhZG-hcTUn-vLoZy.mjs → qu70N1tsIwi7LmT6.mjs} +1 -1
  52. package/node/esm/{7ZI8MoM6mY-P4VfQ.mjs → uIRinWE0OCKJvsGN.mjs} +2 -2
  53. package/package.json +9 -9
  54. package/resources/locales/de/ui.msg.json +3 -4
  55. package/resources/locales/en/ui.msg.json +3 -4
  56. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +6 -0
  57. package/types/src/conditions/BetweenOption.d.ts +5 -0
  58. package/types/src/conditions/ScalarOption.d.ts +18 -0
  59. package/types/src/dialog/index.d.ts +0 -1
  60. package/types/src/filter/FilterList.d.ts +3 -3
  61. package/types/src/form/FormulaField.d.ts +6 -0
  62. package/types/src/format/AlignmentPanel.d.ts +1 -2
  63. package/types/src/format/BorderPreview.d.ts +23 -13
  64. package/types/src/format/useFormatSelection.d.ts +3 -2
  65. package/types/src/itemsPanel/EditorCommit.d.ts +32 -0
  66. package/types/src/itemsPanel/EditorPanel.d.ts +1 -2
  67. package/types/src/itemsPanel/ItemsDescriptor.d.ts +13 -0
  68. package/types/src/itemsPanel/index.d.ts +1 -0
  69. package/types/src/studio/CommandsWrapper.d.ts +2 -0
  70. package/types/src/studio/StudioCommandProvider.d.ts +7 -0
  71. package/types/src/studio/StudioCommands.d.ts +2 -2
  72. package/types/src/studio/StudioProps.d.ts +1 -1
  73. package/types/src/studio/StudioSplitPane.d.ts +1 -1
  74. package/browser/cjs/CucKgy044KxMHXrx.cjs +0 -13
  75. package/browser/cjs/Cy_XmYq6BsWmCXkk.cjs +0 -3
  76. package/browser/cjs/Dq9lIOzvxW3EKYkD.cjs +0 -8
  77. package/browser/cjs/QI6GKw7uo1f8gY8C.cjs +0 -1
  78. package/browser/esm/BiZHUr1gWhtKdzrE.mjs +0 -222
  79. package/browser/esm/Dg5qnLoncOqT-F5i.mjs +0 -97
  80. package/node/esm/XpqeM7yyMghtMgLc.mjs +0 -98
  81. package/types/src/dialog/CommentsDialog.d.ts +0 -11
@@ -1,25 +1,25 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.4
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { An as e, Bt as t, Dt as n, En as r, Et as i, Ft as a, Gt as o, Ht as s, It as c, Kt as l, Lt as u, Mt as d, Nt as f, Pn as p, Pt as m, Qt as h, Rt as g, Sn as _, Ut as v, Vt as y, Wt as b, Xt as x, a as S, h as C, i as w, jt as T, l as ee, lt as te, o as ne, on as re, r as ie, rn as ae, s as oe, t as se, tt as ce, w as le, zt as ue } from "./CPDwT78ZJV0KhVfv.mjs";
8
- import { t as de } from "./ec1sT17zcL-gOSRO.mjs";
9
- import { t as fe } from "./nZ7NKFIakvUB_oNM.mjs";
10
- import { n as pe } from "./BiZHUr1gWhtKdzrE.mjs";
11
- import { Color as me, CommonUtils as he, Condition as ge, FormulaError as _e, FormulaText as ve, ICondition as E, IConditionalFormat as D, IDataValidation as ye, IFill as O, IFont as be, IStyle as xe, ScalarType as Se, getLocaleProfile as Ce } from "@sheetxl/sdk";
12
- import { COLOR_SCALE_PRESETS as we, CommandRootProvider as Te, DATA_BAR_PRESETS as Ee, DefaultTaskPaneRegistry as De, ICON_CATALOG as Oe, IconSetGlyphs as ke, LogoNoPaddingIcon as Ae, NO_CELL_ICON as je, PickerPanel as Me, STYLE_PRESETS as Ne, TaskPaneArea as Pe, TaskPaneProvider as Fe, ThemeStateKey as Ie, WorkbookIO as k, WorkbookProvider as Le, buildOOXMLThemeCSS as Re, createEditable as ze, createSystemColorVars as Be, defaultColorScale as Ve, defaultDataBar as He, defaultIconSet as Ue, defaultIconStops as We, getConditionalIconSet as Ge, iconSetSize as Ke, resolveIconSetIcons as qe, useDocThemes as Je, useModelSync as Ye, useReferenceModeStore as Xe, useResolvedWorkbook as Ze, useSheet as A, useTaskPaneArea as j, useWorkbookEncrypted as Qe, useWorkbookName as $e, useWorkbookSaveState as et, withIconOverride as M } from "@sheetxl/react";
13
- import { Command as tt, DefaultIconService as nt, DefaultReactNotifier as rt, DynamicIcon as N, KeyCodes as it, LanguageStateKey as at, NotifierType as ot, ReactErrorBoundary as st, ReactNotifierProvider as ct, SplitPane as lt, UncaughtErrorBoundary as ut, createBusyHandle as dt, floatThemeScopeProps as ft, useCallbackRef as pt, useFloatSurface as mt, useFullscreen as ht, useImperativeElement as gt, useLanguage as P, useNotifier as _t, usePersistenceState as vt, useResolvedThemeMode as yt, useTokenThemeContext as bt, useTranslator as F } from "@sheetxl/utils-react";
14
- import I, { Component as xt, cloneElement as St, createContext as Ct, createElement as wt, forwardRef as L, isValidElement as Tt, memo as R, useCallback as z, useContext as Et, useEffect as B, useLayoutEffect as Dt, useMemo as V, useRef as H, useState as U } from "react";
15
- import { AnimatedLoadingPanel as Ot, AnimatedTraversingEllipsisIcon as kt, CommandGroup as At, ExhibitFloatProvider as jt, ExhibitIconButton as Mt, ExhibitPopupIconButton as Nt, ExhibitTooltip as Pt, ModalProvider as Ft, SimpleTooltip as It, StackTrace as Lt, createExhibitTheme as Rt, defaultCreatePopupPanel as zt, hideLoadingPanel as Bt, lazyModal as Vt, showLoadingPanel as Ht, useInputDialog as Ut, useLazyWindow as Wt, useModal as Gt, useOptionsDialog as Kt } from "@sheetxl/utils-mui";
16
- import { Fragment as qt, jsx as W, jsxs as G } from "react/jsx-runtime";
17
- import { Accordion as Jt, AccordionDetails as Yt, AccordionSummary as Xt, Box as K, Button as Zt, Card as Qt, CardActions as $t, Checkbox as en, Collapse as tn, CssBaseline as nn, DialogTitle as rn, Divider as an, FormControl as q, FormControlLabel as on, FormHelperText as sn, IconButton as cn, InputLabel as ln, ListSubheader as un, MenuItem as J, MenuList as dn, Paper as fn, Popover as pn, Select as mn, SvgIcon as hn, Tab as gn, Tabs as _n, TextField as vn, ThemeProvider as yn, ToggleButton as bn, ToggleButtonGroup as xn, Typography as Y, alpha as Sn, useMediaQuery as Cn, useTheme as wn } from "@mui/material";
18
- import { CommonUtils as Tn, DOMUtils as En, DefaultLanguagePackService as Dn, ErrorUtils as On, ExpectedError as kn, PartialError as An, defineLazyModule as X, formatMessage as jn, messageKey as Z, t as Q } from "@sheetxl/utils";
19
- import { createPortal as Mn } from "react-dom";
20
- var Nn = R((e) => {
7
+ import { $t as e, Bt as t, Cn as n, Dn as r, Dt as i, Et as a, Fn as o, Ft as s, Gt as c, Ht as l, It as u, Kt as d, Lt as f, Mt as p, Nt as m, Pt as h, Rt as g, Ut as _, Vt as v, Wt as y, Zt as b, a as x, h as S, i as C, in as w, jn as ee, jt as te, l as ne, lt as re, o as ie, qt as ae, r as oe, s as se, sn as ce, t as le, tt as ue, w as de, zt as fe } from "./FK7vqizwRujDsqL2.mjs";
8
+ import { t as T } from "./CsNOEAKuHLfckItX.mjs";
9
+ import { t as pe } from "./DRUKu2I27bidfyvH.mjs";
10
+ import { n as me } from "./CyQk62MFBCep2ZZs.mjs";
11
+ import { Color as he, CommonUtils as ge, Condition as _e, FormulaError as ve, FormulaText as ye, ICondition as E, IConditionalFormat as D, IDataValidation as O, IFill as be, IFont as xe, IStyle as Se, ScalarType as Ce, getLocaleProfile as we } from "@sheetxl/sdk";
12
+ import { COLOR_SCALE_PRESETS as Te, CommandRootProvider as Ee, DATA_BAR_PRESETS as De, DefaultTaskPaneRegistry as Oe, ICON_CATALOG as ke, IconSetGlyphs as Ae, LogoNoPaddingIcon as je, NO_CELL_ICON as Me, PickerPanel as Ne, STYLE_PRESETS as Pe, TaskPaneArea as Fe, TaskPaneProvider as Ie, ThemeStateDefaults as Le, ThemeStateKey as Re, WorkbookIO as k, WorkbookProvider as ze, buildOOXMLThemeCSS as Be, createEditable as Ve, createSystemColorVars as He, defaultColorScale as Ue, defaultDataBar as We, defaultIconSet as Ge, defaultIconStops as Ke, getConditionalIconSet as qe, iconSetSize as Je, resolveIconSetIcons as A, useDocThemes as Ye, useModelSync as Xe, useReferenceModeStore as Ze, useResolvedWorkbook as Qe, useSheet as j, useTaskPaneArea as M, useWorkbookEncrypted as $e, useWorkbookName as et, useWorkbookSaveState as tt, withIconOverride as nt } from "@sheetxl/react";
13
+ import { Command as rt, DefaultIconService as it, DefaultReactNotifier as at, DynamicIcon as N, KeyCodes as ot, LanguageStateKey as st, NotifierType as ct, ReactErrorBoundary as lt, ReactNotifierProvider as ut, SplitPane as dt, UncaughtErrorBoundary as ft, createBusyHandle as pt, floatThemeScopeProps as mt, useCallbackRef as ht, useFloatSurface as gt, useFullscreen as P, useImperativeElement as _t, useLanguage as vt, useNotifier as yt, usePersistentState as bt, useResolvedThemeMode as xt, useTokenThemeContext as St, useTranslator as F } from "@sheetxl/utils-react";
14
+ import I, { Component as Ct, cloneElement as wt, createContext as Tt, createElement as Et, forwardRef as L, isValidElement as Dt, memo as R, useCallback as z, useContext as Ot, useEffect as B, useLayoutEffect as kt, useMemo as V, useRef as H, useState as U } from "react";
15
+ import { AnimatedLoadingPanel as At, AnimatedTraversingEllipsisIcon as jt, CommandGroup as Mt, ExhibitFloatProvider as Nt, ExhibitIconButton as Pt, ExhibitPopupIconButton as Ft, ExhibitTooltip as It, ModalProvider as Lt, SimpleTooltip as Rt, StackTrace as zt, createExhibitTheme as Bt, defaultCreatePopupPanel as Vt, hideLoadingPanel as Ht, lazyModal as Ut, showLoadingPanel as Wt, useInputDialog as Gt, useLazyWindow as Kt, useModal as qt, useOptionsDialog as Jt } from "@sheetxl/utils-mui";
16
+ import { Fragment as Yt, jsx as W, jsxs as G } from "react/jsx-runtime";
17
+ import { Accordion as Xt, AccordionDetails as Zt, AccordionSummary as Qt, Box as K, Button as $t, Card as en, CardActions as tn, Checkbox as nn, Collapse as rn, CssBaseline as an, DialogTitle as on, Divider as sn, FormControl as cn, FormControlLabel as ln, FormHelperText as un, IconButton as dn, InputLabel as fn, ListSubheader as pn, MenuItem as q, MenuList as mn, Paper as hn, Popover as gn, Select as J, SvgIcon as _n, Tab as vn, Tabs as yn, TextField as bn, ThemeProvider as xn, ToggleButton as Sn, ToggleButtonGroup as Cn, Typography as Y, alpha as wn, useMediaQuery as Tn, useTheme as En } from "@mui/material";
18
+ import { CommonUtils as Dn, DOMUtils as On, DefaultLanguagePackService as kn, ErrorUtils as An, ExpectedError as jn, PartialError as Mn, defineLazyModule as X, formatMessage as Nn, messageKey as Z, t as Q } from "@sheetxl/utils";
19
+ import { createPortal as Pn } from "react-dom";
20
+ var Fn = R((e) => {
21
21
  let { option: t, onOptionChange: n, readOnly: r, ...i } = e;
22
- return W(vn, {
22
+ return W(bn, {
23
23
  size: "small",
24
24
  type: "text",
25
25
  placeholder: F()("condition.enterText"),
@@ -30,10 +30,10 @@ var Nn = R((e) => {
30
30
  slotProps: { input: { sx: { backgroundColor: "background.paper" } } }
31
31
  });
32
32
  });
33
- Nn.displayName = "StringOption";
34
- var Pn = R((e) => {
33
+ Fn.displayName = "StringOption";
34
+ var In = R((e) => {
35
35
  let { option: t, onOptionChange: n, readOnly: r, ...i } = e;
36
- return W(vn, {
36
+ return W(bn, {
37
37
  size: "small",
38
38
  type: "number",
39
39
  placeholder: F()("condition.enterNumber"),
@@ -44,14 +44,14 @@ var Pn = R((e) => {
44
44
  slotProps: { input: { sx: { backgroundColor: "background.paper" } } }
45
45
  });
46
46
  });
47
- Pn.displayName = "NumberOption";
48
- var Fn = Ct(null), In = (e) => {
47
+ In.displayName = "NumberOption";
48
+ var Ln = Tt(null), Rn = (e) => {
49
49
  let { rowIndex: t, colIndex: n } = e.getSelectedCell().getCoords();
50
50
  return {
51
51
  rowIndex: t,
52
52
  colIndex: n
53
53
  };
54
- }, Ln = (e, t) => {
54
+ }, zn = (e, t) => {
55
55
  let n = ((e) => {
56
56
  let t = e?.getCoords();
57
57
  if (!t || t.length === 0) return null;
@@ -63,7 +63,7 @@ var Fn = Ct(null), In = (e) => {
63
63
  };
64
64
  })(t?.getRanges() ?? null);
65
65
  if (!e || !n) return null;
66
- let { rowIndex: r, colIndex: i } = In(e);
66
+ let { rowIndex: r, colIndex: i } = Rn(e);
67
67
  return r === n.rowIndex && i === n.colIndex ? null : {
68
68
  active: {
69
69
  rowIndex: r,
@@ -71,8 +71,8 @@ var Fn = Ct(null), In = (e) => {
71
71
  },
72
72
  anchor: n
73
73
  };
74
- }, Rn = () => {
75
- let e = A(), t = Et(Fn), n = H(null), r = e ? In(e) : null, i = e?.getName() ?? null, a = V(() => r && i ? {
74
+ }, Bn = () => {
75
+ let e = j(), t = Ot(Ln), n = H(null), r = e ? Rn(e) : null, i = e?.getName() ?? null, a = V(() => r && i ? {
76
76
  ...r,
77
77
  scope: i
78
78
  } : void 0, [
@@ -85,7 +85,7 @@ var Fn = Ct(null), In = (e) => {
85
85
  display: (r) => {
86
86
  let i = n.current;
87
87
  if (i && i.stored === r.getExpression()) return i.text;
88
- let a = Ln(e, t);
88
+ let a = zn(e, t);
89
89
  if (a) try {
90
90
  let t = e.createFormula(r.getExpression(), a.anchor).shift(a.active);
91
91
  if (t) return t.getExpression({ target: "display" });
@@ -93,7 +93,7 @@ var Fn = Ct(null), In = (e) => {
93
93
  return r.getExpression({ target: "display" });
94
94
  },
95
95
  compile: (r) => {
96
- let i = Ln(e, t), a = null;
96
+ let i = zn(e, t), a = null;
97
97
  try {
98
98
  a = e?.createFormula(r, i?.active, { target: "display" }) ?? null, a && i && (a = a.shift(i.anchor));
99
99
  } catch {
@@ -109,48 +109,72 @@ var Fn = Ct(null), In = (e) => {
109
109
  t,
110
110
  a
111
111
  ]);
112
- }, zn = (e, t) => e == null ? "" : e.isIFormula ? "=" + t.display(e) : typeof e == "boolean" ? e ? "TRUE" : "FALSE" : _e.isError(e) ? e.getLabel() : String(e), Bn = R((e) => {
113
- let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = F(), o = Rn();
114
- return W(pe, {
112
+ }, Vn = (e, t) => !!t && typeof e == "string" && !e.startsWith("="), Hn = (e, t, n, r) => e == null ? "" : e.isIFormula ? "=" + t.display(e) : typeof e == "boolean" ? e ? "TRUE" : "FALSE" : ve.isError(e) ? e.getLabel() : r && typeof e == "number" ? ((e, t, n) => {
113
+ if (!e || t < 0) return String(t);
114
+ let r = t >= 1, i = !Number.isInteger(t), a;
115
+ return a = n !== "time" || r ? i ? r ? "Short DateTime" : "Long Time" : "Short Date" : "Long Time", e.createCell({
116
+ value: t,
117
+ style: { numberFormat: a }
118
+ }).getText();
119
+ })(n, e, r) : String(e), Un = (e, t, n, r) => {
120
+ if (e.length === 0) return null;
121
+ if (e.startsWith("=")) {
122
+ let n = t.compile(e.substring(1));
123
+ return typeof n == "string" ? e : n;
124
+ }
125
+ let i = e.trim();
126
+ if (i.length === 0) return e;
127
+ if (r) return ((e, t) => {
128
+ if (!e) return null;
129
+ let n = e.createCell({ value: t }, void 0, { textParser: !0 });
130
+ return n.getType() === Ce.Number ? n.getValue() : null;
131
+ })(n, i) ?? e;
132
+ let a = Number(i);
133
+ return Number.isFinite(a) ? a : e;
134
+ }, Wn = R((e) => {
135
+ let { option: t, onOptionChange: n, literal: r, readOnly: i, ...a } = e, o = F(), s = j(), c = Bn(), l = H(""), u = H(null);
136
+ return d(() => {
137
+ let e = u.current;
138
+ return !e || !e.error && (e.dirty ? (e.commit(), !Vn(Un(l.current, c, s, r), r)) : !Vn(t, r));
139
+ }), W(me, {
115
140
  size: "small",
116
- home: o.home,
117
- value: zn(t, o),
118
- onChangeText: (e) => n(((e, t) => {
119
- if (e.length === 0) return null;
120
- if (e.startsWith("=")) {
121
- let n = t.compile(e.substring(1));
122
- return typeof n == "string" ? e : n;
123
- }
124
- let n = e.trim();
125
- if (n.length > 0) {
126
- let e = Number(n);
127
- if (Number.isFinite(e)) return e;
128
- }
129
- return e;
130
- })(e, o)),
131
- placeholder: a("condition.enterValueOrFormula"),
132
- disabled: r,
141
+ home: c.home,
142
+ value: Hn(t, c, s, r),
143
+ changeOn: "done",
144
+ apiRef: u,
145
+ onChangeText: (e) => {
146
+ l.current = e;
147
+ },
148
+ onDone: (e, t) => {
149
+ t.reason === "accept" && (() => {
150
+ let e = Un(l.current, c, s, r);
151
+ n(e);
152
+ })();
153
+ },
154
+ validationError: Vn(t, r) ? Z("condition.invalidDateTime") : null,
155
+ placeholder: o("condition.enterValueOrFormula"),
156
+ disabled: i,
133
157
  fullWidth: !0,
134
158
  equals: "literal",
135
159
  pickAs: "absolute",
136
160
  label: null,
137
161
  showError: !1,
138
162
  helperText: null,
139
- ...i
163
+ ...a
140
164
  });
141
165
  });
142
- Bn.displayName = "ScalarOption";
143
- var Vn = (e, t, n) => {
166
+ Wn.displayName = "ScalarOption";
167
+ var Gn = (e, t, n) => {
144
168
  if (e == null) return "";
145
169
  if (e.isIFormula) return "=" + n.display(e);
146
170
  if (Array.isArray(e)) return e.map((e) => String(e ?? "")).join(t);
147
- let r = ge.parseListLiteral(e);
171
+ let r = _e.parseListLiteral(e);
148
172
  return r ? r.join(t) : e.length > 0 ? "=" + e : "";
149
- }, Hn = R((e) => {
150
- let { option: t, onOptionChange: n, readOnly: r, sx: i, ...a } = e, o = F(), s = A(), c = Et(Fn), l = Rn(), u = Ce(s?.getWorkbook()?.getLocale() ?? "en").listSeparator, [d, f] = U(null), p = t?.items, [m, h] = U(null), g = H(0);
173
+ }, Kn = R((e) => {
174
+ let { option: t, onOptionChange: n, readOnly: r, sx: i, ...a } = e, o = F(), s = j(), c = Ot(Ln), l = Bn(), u = we(s?.getWorkbook()?.getLocale() ?? "en").listSeparator, [d, f] = U(null), p = t?.items, [m, h] = U(null), g = H(0);
151
175
  B(() => {
152
176
  if (!c?.getListItemsAt || !s) return void h(null);
153
- let e = ++g.current, { rowIndex: t, colIndex: n } = In(s);
177
+ let e = ++g.current, { rowIndex: t, colIndex: n } = Rn(s);
154
178
  c.getListItemsAt(t, n).then((t) => {
155
179
  e === g.current && h(t);
156
180
  }, () => {
@@ -161,7 +185,7 @@ var Vn = (e, t, n) => {
161
185
  s,
162
186
  p
163
187
  ]);
164
- let [_, v] = U(null), { className: y } = ft(mt()?.themeScope), b = V(() => s?.getStyles().getNormal().getFont().toCSS("adaptive"), [s]), [x, S] = U(null), C = x ?? d;
188
+ let [_, v] = U(null), { className: y } = mt(gt()?.themeScope), b = V(() => s?.getStyles().getNormal().getFont().toCSS("adaptive"), [s]), [x, S] = U(null), C = x ?? d;
165
189
  return G(K, {
166
190
  sx: {
167
191
  display: "flex",
@@ -175,10 +199,10 @@ var Vn = (e, t, n) => {
175
199
  alignItems: "stretch",
176
200
  gap: 1
177
201
  },
178
- children: [W(pe, {
202
+ children: [W(me, {
179
203
  size: "small",
180
204
  home: l.home,
181
- value: Vn(p, u, l),
205
+ value: Gn(p, u, l),
182
206
  onChangeText: (e) => {
183
207
  let r = ((e, t, n) => {
184
208
  if (e.length === 0) return { items: "" };
@@ -189,9 +213,9 @@ var Vn = (e, t, n) => {
189
213
  let t = e;
190
214
  for (; t?.type === "paren" && t.inputs?.length === 1;) t = t.inputs[0];
191
215
  return t?.type === "list" || t?.type === "paren" && (t.inputs?.length ?? 0) > 1;
192
- })(ve.parse(t.getExpression())) ? { error: Z("condition.listSourceOneRange") } : { items: t.getExpression() };
216
+ })(ye.parse(t.getExpression())) ? { error: Z("condition.listSourceOneRange") } : { items: t.getExpression() };
193
217
  }
194
- let r = ge.formatListLiteral(e.split(t));
218
+ let r = _e.formatListLiteral(e.split(t));
195
219
  return r === null ? { error: Z("condition.listItemHasComma") } : { items: r };
196
220
  })(e, u, l);
197
221
  f(r.error ?? null), r.items !== void 0 && n({
@@ -211,7 +235,7 @@ var Vn = (e, t, n) => {
211
235
  showError: !1,
212
236
  helperText: null,
213
237
  ...a
214
- }), m !== null && G(qt, { children: [W(Zt, {
238
+ }), m !== null && G(Yt, { children: [W($t, {
215
239
  size: "small",
216
240
  variant: "outlined",
217
241
  color: "inherit",
@@ -232,7 +256,7 @@ var Vn = (e, t, n) => {
232
256
  },
233
257
  children: o("condition.listPreview", { count: m.length })
234
258
  })
235
- }), W(pn, {
259
+ }), W(gn, {
236
260
  open: !!_,
237
261
  anchorEl: _,
238
262
  onClose: () => v(null),
@@ -245,28 +269,28 @@ var Vn = (e, t, n) => {
245
269
  vertical: "top",
246
270
  horizontal: "right"
247
271
  },
248
- children: W(Me, {
272
+ children: W(Ne, {
249
273
  items: m,
250
274
  minWidth: _?.getBoundingClientRect().width,
251
275
  style: b,
252
276
  onChoose: () => v(null)
253
277
  })
254
278
  })] })]
255
- }), C && W(sn, {
279
+ }), C && W(un, {
256
280
  error: !0,
257
281
  children: o(C)
258
282
  })]
259
283
  });
260
284
  });
261
- Hn.displayName = "ListSourceOption";
262
- var Un = {}, Wn = R((e) => {
285
+ Kn.displayName = "ListSourceOption";
286
+ var qn = {}, Jn = R((e) => {
263
287
  let { option: t, onOptionChange: n, className: r, readOnly: i, ...a } = e, o = F(), s = t?.type ?? E.AverageType.Above, c = t?.stdDevs ?? "", l = { backgroundColor: "background.paper" };
264
288
  return i && (l = {
265
289
  ...l,
266
290
  "& .MuiSelect-icon": { display: "none" },
267
291
  "& .MuiOutlinedInput-notchedOutline": { borderColor: "action.disabled" }
268
292
  }), G(K, {
269
- className: de(r, Un.option),
293
+ className: T(r, qn.option),
270
294
  ...a,
271
295
  sx: {
272
296
  display: "flex",
@@ -274,10 +298,10 @@ var Un = {}, Wn = R((e) => {
274
298
  gap: .25,
275
299
  ...a?.sx
276
300
  },
277
- children: [W(q, {
301
+ children: [W(cn, {
278
302
  sx: { flex: .5 },
279
303
  size: "small",
280
- children: G(mn, {
304
+ children: G(J, {
281
305
  value: s,
282
306
  sx: l,
283
307
  IconComponent: (e) => W(N, {
@@ -289,15 +313,15 @@ var Un = {}, Wn = R((e) => {
289
313
  ...t,
290
314
  type: e.target.value
291
315
  }),
292
- children: [W(J, {
316
+ children: [W(q, {
293
317
  value: E.AverageType.Above,
294
318
  children: o("condition.above")
295
- }), W(J, {
319
+ }), W(q, {
296
320
  value: E.AverageType.Below,
297
321
  children: o("condition.below")
298
322
  })]
299
323
  })
300
- }), W(vn, {
324
+ }), W(bn, {
301
325
  size: "small",
302
326
  placeholder: o("condition.stdDevs"),
303
327
  value: c,
@@ -312,12 +336,12 @@ var Un = {}, Wn = R((e) => {
312
336
  })]
313
337
  });
314
338
  });
315
- Wn.displayName = "AverageOption";
316
- var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
317
- let t = Kn.get(e);
318
- return t || (t = "__ci_" + ++Gn, Kn.set(e, t)), t;
319
- }, Jn = Object.freeze([E.BuiltInOperatorNames.Icon, E.BuiltInOperatorNames.Color]), Yn = (e, t, n, r = Jn) => {
320
- let i = t ?? Object.values(ge.BuiltInOperators), a = e?.getSelectType() ?? null, o = e?.isList;
339
+ Jn.displayName = "AverageOption";
340
+ var Yn = 0, Xn = /* @__PURE__ */ new WeakMap(), Zn = (e) => {
341
+ let t = Xn.get(e);
342
+ return t || (t = "__ci_" + ++Yn, Xn.set(e, t)), t;
343
+ }, Qn = Object.freeze([E.BuiltInOperatorNames.Icon, E.BuiltInOperatorNames.Color]), $n = (e, t, n, r = Qn) => {
344
+ let i = t ?? Object.values(_e.BuiltInOperators), a = e?.getSelectType() ?? null, o = e?.isList;
321
345
  return i.filter((t) => {
322
346
  if (r.includes(t.getName())) return !1;
323
347
  let n = t.acceptsList?.();
@@ -326,25 +350,25 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
326
350
  let i = t.getAcceptsTypes?.();
327
351
  return !i || i.includes(a);
328
352
  }).sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", n));
329
- }, Xn = (e, t, n, r) => {
353
+ }, er = (e, t, n, r) => {
330
354
  let i = (e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", r), a = e.filter((e) => !e.isCombinator?.()).sort(i), o = e.filter((e) => e.isCombinator?.()).sort(i), s = [];
331
- return a.length > 0 && (s.push(W(un, {
355
+ return a.length > 0 && (s.push(W(pn, {
332
356
  disableSticky: !0,
333
- sx: Qn,
357
+ sx: nr,
334
358
  children: n("condition.groupBasic")
335
- }, "__header:leaf")), a.forEach((e) => s.push(t(e)))), a.length > 0 && o.length > 0 && s.push(W(an, {}, "__divider")), o.length > 0 && (s.push(W(un, {
359
+ }, "__header:leaf")), a.forEach((e) => s.push(t(e)))), a.length > 0 && o.length > 0 && s.push(W(sn, {}, "__divider")), o.length > 0 && (s.push(W(pn, {
336
360
  disableSticky: !0,
337
- sx: Qn,
361
+ sx: nr,
338
362
  children: n("condition.groupCombine")
339
363
  }, "__header:combinator")), o.forEach((e) => s.push(t(e)))), s;
340
- }, Zn = (e, t, n = null) => {
364
+ }, tr = (e, t, n = null) => {
341
365
  if (!e.isCombinator?.()) return e.createDefaultParam?.(n ?? void 0) ?? null;
342
366
  let r = t.find((e) => !e.isCombinator?.()) ?? null, i = r ? {
343
367
  operator: r.getName(),
344
368
  param: r.createDefaultParam?.(n ?? void 0) ?? null
345
369
  } : null;
346
370
  return e.getName() === "not" ? i : i ? [i] : [];
347
- }, Qn = {
371
+ }, nr = {
348
372
  userSelect: "none",
349
373
  lineHeight: "2",
350
374
  fontSize: "0.75rem",
@@ -352,7 +376,7 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
352
376
  color: "text.secondary",
353
377
  paddingLeft: 1,
354
378
  paddingRight: 1
355
- }, $n = { pl: 2 }, er = R((e) => {
379
+ }, rr = { pl: 2 }, ir = R((e) => {
356
380
  let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = function(e, t) {
357
381
  let n = (e) => new Intl.DateTimeFormat(t, { month: "long" }).format(new Date(2e3, e, 1));
358
382
  return [
@@ -504,7 +528,7 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
504
528
  ]
505
529
  }
506
530
  ];
507
- }(F(), P()), o = t?.type ?? E.TimePeriodType.Today;
531
+ }(F(), vt()), o = t?.type ?? E.TimePeriodType.Today;
508
532
  return W(K, {
509
533
  ...i,
510
534
  sx: {
@@ -513,9 +537,9 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
513
537
  gap: 2,
514
538
  ...i?.sx
515
539
  },
516
- children: W(q, {
540
+ children: W(cn, {
517
541
  size: "small",
518
- children: W(mn, {
542
+ children: W(J, {
519
543
  value: o,
520
544
  sx: { backgroundColor: "background.paper" },
521
545
  IconComponent: (e) => W(N, {
@@ -529,11 +553,11 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
529
553
  disabled: r,
530
554
  children: a.map((e, t) => {
531
555
  let n = [];
532
- return t > 0 && n.push(W(an, {}, `divider-${t}`)), n.push(W(un, {
533
- sx: Qn,
556
+ return t > 0 && n.push(W(sn, {}, `divider-${t}`)), n.push(W(pn, {
557
+ sx: nr,
534
558
  children: e.header
535
- }, `header-${t}`)), e.options.map((e) => n.push(W(J, {
536
- sx: $n,
559
+ }, `header-${t}`)), e.options.map((e) => n.push(W(q, {
560
+ sx: rr,
537
561
  value: e.value,
538
562
  children: e.label
539
563
  }, e.value))), n;
@@ -542,8 +566,8 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
542
566
  })
543
567
  });
544
568
  });
545
- er.displayName = "TimePeriodOption";
546
- var tr = R((e) => {
569
+ ir.displayName = "TimePeriodOption";
570
+ var ar = R((e) => {
547
571
  let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = F(), o = t?.top ?? !0, s = t?.limit ?? 10, c = t?.percent ?? !1;
548
572
  return G(K, {
549
573
  ...i,
@@ -554,10 +578,10 @@ var tr = R((e) => {
554
578
  ...i?.sx
555
579
  },
556
580
  children: [
557
- W(q, {
581
+ W(cn, {
558
582
  size: "small",
559
583
  sx: { flex: 1 },
560
- children: G(mn, {
584
+ children: G(J, {
561
585
  value: o ? "top" : "bottom",
562
586
  sx: { backgroundColor: "background.paper" },
563
587
  IconComponent: (e) => W(N, {
@@ -569,16 +593,16 @@ var tr = R((e) => {
569
593
  top: e.target.value === "top"
570
594
  }),
571
595
  disabled: r,
572
- children: [W(J, {
596
+ children: [W(q, {
573
597
  value: "top",
574
598
  children: a("condition.top")
575
- }), W(J, {
599
+ }), W(q, {
576
600
  value: "bottom",
577
601
  children: a("condition.bottom")
578
602
  })]
579
603
  })
580
604
  }),
581
- W(vn, {
605
+ W(bn, {
582
606
  size: "small",
583
607
  placeholder: "10",
584
608
  value: s,
@@ -594,10 +618,10 @@ var tr = R((e) => {
594
618
  slotProps: { input: { sx: { backgroundColor: "background.paper" } } },
595
619
  sx: { flex: .6 }
596
620
  }),
597
- W(q, {
621
+ W(cn, {
598
622
  size: "small",
599
623
  sx: { flex: 1 },
600
- children: G(mn, {
624
+ children: G(J, {
601
625
  value: c ? "percent" : "items",
602
626
  sx: { backgroundColor: "background.paper" },
603
627
  IconComponent: (e) => W(N, {
@@ -609,10 +633,10 @@ var tr = R((e) => {
609
633
  percent: e.target.value === "percent"
610
634
  }),
611
635
  disabled: r,
612
- children: [W(J, {
636
+ children: [W(q, {
613
637
  value: "items",
614
638
  children: a("condition.items")
615
- }), W(J, {
639
+ }), W(q, {
616
640
  value: "percent",
617
641
  children: a("condition.percent")
618
642
  })]
@@ -621,41 +645,50 @@ var tr = R((e) => {
621
645
  ]
622
646
  });
623
647
  });
624
- tr.displayName = "TopNOption";
625
- var nr = R((e) => {
626
- let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = F();
648
+ ar.displayName = "TopNOption";
649
+ var or = R((e) => {
650
+ let { option: t, onOptionChange: n, selector: r, readOnly: i, ...a } = e, o = F(), s = ((e) => {
651
+ switch (e?.getName()) {
652
+ case E.BuiltInSelectorNames.Date: return "date";
653
+ case E.BuiltInSelectorNames.Time: return "time";
654
+ case E.BuiltInSelectorNames.DateTime: return "dateTime";
655
+ default: return;
656
+ }
657
+ })(r);
627
658
  return G(K, {
628
- ...i,
659
+ ...a,
629
660
  sx: {
630
661
  display: "flex",
631
662
  flexDirection: "row",
632
663
  gap: .25,
633
- ...i?.sx
664
+ ...a?.sx
634
665
  },
635
- children: [W(Bn, {
666
+ children: [W(Wn, {
636
667
  option: t?.from ?? null,
637
- placeholder: a("condition.from"),
668
+ literal: s,
669
+ placeholder: o("condition.from"),
638
670
  onOptionChange: (e) => {
639
671
  n({
640
672
  ...t,
641
673
  from: e
642
674
  });
643
675
  },
644
- readOnly: r,
676
+ readOnly: i,
645
677
  sx: {
646
678
  flex: .6,
647
679
  minWidth: 0
648
680
  }
649
- }), W(Bn, {
681
+ }), W(Wn, {
650
682
  option: t?.to ?? null,
651
- placeholder: a("condition.to"),
683
+ literal: s,
684
+ placeholder: o("condition.to"),
652
685
  onOptionChange: (e) => {
653
686
  n({
654
687
  ...t,
655
688
  to: e
656
689
  });
657
690
  },
658
- readOnly: r,
691
+ readOnly: i,
659
692
  sx: {
660
693
  flex: .6,
661
694
  minWidth: 0
@@ -663,10 +696,10 @@ var nr = R((e) => {
663
696
  })]
664
697
  });
665
698
  });
666
- nr.displayName = "BetweenOption";
667
- var rr = R((e) => {
668
- let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = F(), o = Rn(), s = t?.isIFormula ? o.display(t) : t ?? "";
669
- return W(pe, {
699
+ or.displayName = "BetweenOption";
700
+ var sr = R((e) => {
701
+ let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = F(), o = Bn(), s = t?.isIFormula ? o.display(t) : t ?? "";
702
+ return W(me, {
670
703
  size: "small",
671
704
  home: o.home,
672
705
  value: s,
@@ -681,11 +714,11 @@ var rr = R((e) => {
681
714
  ...i
682
715
  });
683
716
  });
684
- rr.displayName = "ExpressionOption";
685
- var ir = R((e) => {
717
+ sr.displayName = "ExpressionOption";
718
+ var cr = R((e) => {
686
719
  let { value: t = null, selectors: n, onChange: r, title: i, allowNull: a = !1, readOnly: o = !1, ...s } = e, c = F(), l = i ?? c("condition.selectorTitle"), u = n.map((e) => {
687
720
  let t = e.getName();
688
- return W(J, {
721
+ return W(q, {
689
722
  value: t,
690
723
  children: e.getTitle?.() ?? e.getName()
691
724
  }, t);
@@ -694,10 +727,10 @@ var ir = R((e) => {
694
727
  ...d,
695
728
  "& .MuiSelect-icon": { display: "none" },
696
729
  "& .MuiOutlinedInput-notchedOutline": { borderColor: "action.disabled" }
697
- }), G(q, {
730
+ }), G(cn, {
698
731
  size: "small",
699
732
  ...s,
700
- children: [W(ln, { children: l }), G(mn, {
733
+ children: [W(fn, { children: l }), G(J, {
701
734
  value: t?.getName() ?? "null",
702
735
  label: l,
703
736
  readOnly: o,
@@ -710,28 +743,28 @@ var ir = R((e) => {
710
743
  r(i);
711
744
  },
712
745
  sx: d,
713
- children: [a && W(J, {
746
+ children: [a && W(q, {
714
747
  value: "null",
715
748
  children: c("condition.anySelector")
716
749
  }), u]
717
750
  })]
718
751
  });
719
752
  });
720
- ir.displayName = "SelectorSelect";
721
- var ar = R((e) => {
722
- let { value: t, operators: n, onChange: r, title: i, readOnly: a = !1, ...o } = e, s = F(), c = P(), l = i ?? s("condition.operatorTitle"), u = /* @__PURE__ */ new Map();
753
+ cr.displayName = "SelectorSelect";
754
+ var lr = R((e) => {
755
+ let { value: t, operators: n, onChange: r, title: i, readOnly: a = !1, ...o } = e, s = F(), c = vt(), l = i ?? s("condition.operatorTitle"), u = /* @__PURE__ */ new Map();
723
756
  n.forEach((e) => {
724
757
  u.set(e.getName(), e);
725
758
  });
726
- let d = Xn(n, (e) => W(J, {
759
+ let d = er(n, (e) => W(q, {
727
760
  value: e.getName(),
728
- sx: $n,
761
+ sx: rr,
729
762
  children: e.getTitle?.()
730
763
  }, e.getName()), s, c);
731
- return G(q, {
764
+ return G(cn, {
732
765
  size: "small",
733
766
  ...o,
734
- children: [W(ln, { children: l }), W(mn, {
767
+ children: [W(fn, { children: l }), W(J, {
735
768
  value: t?.getName() ?? "null",
736
769
  label: l,
737
770
  readOnly: a,
@@ -751,16 +784,16 @@ var ar = R((e) => {
751
784
  })]
752
785
  });
753
786
  });
754
- ar.displayName = "OperatorSelect";
755
- var or = R(L((e, t) => {
756
- let { icon: n, tooltip: r, label: i, darkMode: a, propsPanel: o, value: s, operators: c, onChange: l, title: u, readOnly: d = !1, ...f } = e, p = F(), m = P();
787
+ lr.displayName = "OperatorSelect";
788
+ var ur = R(L((e, t) => {
789
+ let { icon: n, tooltip: r, label: i, darkMode: a, propsPanel: o, value: s, operators: c, onChange: l, title: u, readOnly: d = !1, ...f } = e, p = F(), m = vt();
757
790
  u ?? p("condition.operatorTitle");
758
791
  let h = n || W(N, { iconKey: "Add" }), g = H(l);
759
- return g.current = l, W(Nt, {
792
+ return g.current = l, W(Ft, {
760
793
  ref: t,
761
794
  createPopupPanel: z((e) => {
762
- let { closeFloatAll: t } = e, n = Xn(c, (e) => W(J, {
763
- sx: $n,
795
+ let { closeFloatAll: t } = e, n = er(c, (e) => W(q, {
796
+ sx: rr,
764
797
  value: e.getName(),
765
798
  onClick: () => {
766
799
  t?.(), g.current(e);
@@ -776,9 +809,9 @@ var or = R(L((e, t) => {
776
809
  },
777
810
  ...o,
778
811
  onKeyDown: (e) => {
779
- e.which === it.Enter && t?.();
812
+ e.which === ot.Enter && t?.();
780
813
  },
781
- children: W(dn, {
814
+ children: W(mn, {
782
815
  disablePadding: !0,
783
816
  children: n
784
817
  })
@@ -794,15 +827,15 @@ var or = R(L((e, t) => {
794
827
  icon: h,
795
828
  ...f
796
829
  });
797
- })), sr = R((e) => {
830
+ })), dr = R((e) => {
798
831
  let { operator: t, inputs: n, onOptionChange: r, operators: i, selector: a, readOnly: o, ...s } = e, c = F(), l = t.getName() === "not", u = l ? null : t.getName() === "and" ? c("condition.and") : c("condition.or"), d = (e, t) => {
799
832
  let i = n.slice(), a = {
800
833
  operator: t.operator,
801
834
  param: t.param
802
835
  };
803
836
  ((e, t) => {
804
- let n = Kn.get(e);
805
- n && Kn.set(t, n);
837
+ let n = Xn.get(e);
838
+ n && Xn.set(t, n);
806
839
  })(n[e], a), i[e] = a, r(i);
807
840
  }, f = l ? c("condition.not") : u;
808
841
  return W(K, {
@@ -815,7 +848,7 @@ var or = R(L((e, t) => {
815
848
  borderColor: "divider"
816
849
  },
817
850
  ...s,
818
- children: n.map((e, t) => W(I.Fragment, { children: W(mr, {
851
+ children: n.map((e, t) => W(I.Fragment, { children: W(vr, {
819
852
  operatorTitle: t > 0 ? f ?? "" : "",
820
853
  operatorParam: e,
821
854
  onOperatorParamChange: (e) => d(t, e),
@@ -827,13 +860,13 @@ var or = R(L((e, t) => {
827
860
  selector: a,
828
861
  readOnly: o,
829
862
  required: l
830
- }) }, qn(e)))
863
+ }) }, Zn(e)))
831
864
  });
832
865
  });
833
- sr.displayName = "CombinatorOption";
834
- var cr = R((e) => {
866
+ dr.displayName = "CombinatorOption";
867
+ var fr = R((e) => {
835
868
  let { option: t, onOptionChange: n, readOnly: r } = e, i = F();
836
- return G(xn, {
869
+ return G(Cn, {
837
870
  exclusive: !0,
838
871
  size: "small",
839
872
  value: t ?? !0,
@@ -846,34 +879,34 @@ var cr = R((e) => {
846
879
  backgroundColor: "background.paper"
847
880
  },
848
881
  disabled: r,
849
- children: [W(bn, {
882
+ children: [W(Sn, {
850
883
  value: !0,
851
884
  children: i("condition.true")
852
- }), W(bn, {
885
+ }), W(Sn, {
853
886
  value: !1,
854
887
  children: i("condition.false")
855
888
  })]
856
889
  });
857
890
  });
858
- function lr(e, t) {
859
- if (!e) return ur(t);
891
+ function pr(e, t) {
892
+ if (!e) return mr(t);
860
893
  let n = /* @__PURE__ */ new Date(`${e}T${t || "00:00"}`);
861
894
  return isNaN(n.getTime()) ? null : n;
862
895
  }
863
- function ur(e) {
864
- return e ? lr("1970-01-01", e) : null;
896
+ function mr(e) {
897
+ return e ? pr("1970-01-01", e) : null;
865
898
  }
866
- cr.displayName = "BooleanOption";
867
- var dr = R((e) => {
868
- let { option: t, onOptionChange: n, allowFormula: r, readOnly: i, type: a = "dateTime", ...o } = e, s = F(), c = a === "date" || a === "dateTime", l = a === "time" || a === "dateTime", u = A(), d = z((e) => {
899
+ fr.displayName = "BooleanOption";
900
+ var hr = R((e) => {
901
+ let { option: t, onOptionChange: n, allowFormula: r, readOnly: i, type: a = "dateTime", ...o } = e, s = F(), c = a === "date" || a === "dateTime", l = a === "time" || a === "dateTime", u = j(), d = z((e) => {
869
902
  if (!u || e === null) return null;
870
903
  let t = u.createCell({ value: e }), n = t.getValue();
871
- return t.getType() === Se.Number ? n : null;
904
+ return t.getType() === Ce.Number ? n : null;
872
905
  }, [u]), f = z((e) => u ? u.createCell({
873
906
  value: e,
874
907
  style: { numberFormat: "Short DateTime" }
875
908
  }).getDate() : null, [u]);
876
- if (r && (typeof t == "string" || t?.isIFormula)) return W(Bn, {
909
+ if (r && (typeof t == "string" || t?.isIFormula)) return W(Wn, {
877
910
  option: t,
878
911
  onOptionChange: (e) => n(e),
879
912
  readOnly: i,
@@ -892,22 +925,22 @@ var dr = R((e) => {
892
925
  gap: .5,
893
926
  ...o?.sx
894
927
  },
895
- children: [c && W(Nn, {
928
+ children: [c && W(Fn, {
896
929
  option: m,
897
930
  type: "date",
898
931
  placeholder: s("condition.enterDate"),
899
932
  onOptionChange: (e) => {
900
- let t = d(lr(e, g));
933
+ let t = d(pr(e, g));
901
934
  n(t);
902
935
  },
903
936
  sx: { flex: 1.5 },
904
937
  readOnly: i
905
- }), l && W(Nn, {
938
+ }), l && W(Fn, {
906
939
  option: g,
907
940
  type: "time",
908
941
  placeholder: s("condition.enterTime"),
909
942
  onOptionChange: (e) => {
910
- let t = d(a === "time" ? ur(e) : lr(m, e));
943
+ let t = d(a === "time" ? mr(e) : pr(m, e));
911
944
  n(t);
912
945
  },
913
946
  sx: { flex: 1 },
@@ -915,23 +948,23 @@ var dr = R((e) => {
915
948
  })]
916
949
  });
917
950
  });
918
- dr.displayName = "DateTimeOption";
919
- var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
920
- fr.EqualTo,
921
- fr.GreaterThan,
922
- fr.GreaterThanEqualTo,
923
- fr.LessThan,
924
- fr.LessThanEqualTo,
925
- fr.After,
926
- fr.AfterEqualTo,
927
- fr.Before,
928
- fr.BeforeEqualTo
929
- ]), mr = R((e) => {
930
- let { operatorParam: t, onOperatorParamChange: n, onRemove: r, operators: i, selector: a, operatorTitle: o, readOnly: s, required: c, ...l } = e, u = F(), d = o ?? u("condition.when"), f = t?.operator ?? null, p = i.find((e) => e.getName() === f) ?? null, m = t?.param ?? null, h = !!p?.isCombinator?.(), [g, { width: _ }] = fe(), v = V(() => !p || h ? null : p.getParamType?.(a ?? void 0) ?? null, [
951
+ hr.displayName = "DateTimeOption";
952
+ var gr = E.BuiltInOperatorNames, _r = /* @__PURE__ */ new Set([
953
+ gr.EqualTo,
954
+ gr.GreaterThan,
955
+ gr.GreaterThanEqualTo,
956
+ gr.LessThan,
957
+ gr.LessThanEqualTo,
958
+ gr.After,
959
+ gr.AfterEqualTo,
960
+ gr.Before,
961
+ gr.BeforeEqualTo
962
+ ]), vr = R((e) => {
963
+ let { operatorParam: t, onOperatorParamChange: n, onRemove: r, operators: i, selector: a, operatorTitle: o, readOnly: s, required: c, ...l } = e, u = F(), d = o ?? u("condition.when"), f = t?.operator ?? null, p = i.find((e) => e.getName() === f) ?? null, m = t?.param ?? null, h = !!p?.isCombinator?.(), [g, { width: _ }] = pe(), v = V(() => !p || h ? null : p.getParamType?.(a ?? void 0) ?? null, [
931
964
  p,
932
965
  h,
933
966
  a
934
- ]), y = !h && v !== "list" && _ > 360, b = pt((e) => {
967
+ ]), y = !h && v !== "list" && _ > 360, b = ht((e) => {
935
968
  n({
936
969
  operator: f,
937
970
  param: e
@@ -945,8 +978,8 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
945
978
  },
946
979
  option: m,
947
980
  onOptionChange: b
948
- }, t = !!f && pr.has(f);
949
- return v === E.BuiltInSelectorNames.Number || v === E.BuiltInSelectorNames.TextLength ? W(t ? Bn : Pn, { ...e }) : v === E.BuiltInSelectorNames.Whole ? t ? W(Bn, { ...e }) : W(Pn, {
981
+ }, t = !!f && _r.has(f);
982
+ return v === E.BuiltInSelectorNames.Number || v === E.BuiltInSelectorNames.TextLength ? W(t ? Wn : In, { ...e }) : v === E.BuiltInSelectorNames.Whole ? t ? W(Wn, { ...e }) : W(In, {
950
983
  ...e,
951
984
  placeholder: u("condition.enterWholeNumber"),
952
985
  slotProps: { htmlInput: {
@@ -963,31 +996,35 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
963
996
  /^-?\d+$/.test(e.clipboardData.getData("text")) || e.preventDefault();
964
997
  }
965
998
  } }
966
- }) : v === E.BuiltInSelectorNames.Text ? W(t ? Bn : Nn, { ...e }) : v === E.BuiltInSelectorNames.DateTime ? W(dr, {
999
+ }) : v === E.BuiltInSelectorNames.Text ? W(t ? Wn : Fn, { ...e }) : v === E.BuiltInSelectorNames.DateTime ? W(hr, {
967
1000
  ...e,
968
1001
  allowFormula: t
969
- }) : v === E.BuiltInSelectorNames.Date ? W(dr, {
1002
+ }) : v === E.BuiltInSelectorNames.Date ? W(hr, {
970
1003
  ...e,
971
1004
  type: "date",
972
1005
  allowFormula: t
973
- }) : v === E.BuiltInSelectorNames.Time ? W(dr, {
1006
+ }) : v === E.BuiltInSelectorNames.Time ? W(hr, {
974
1007
  ...e,
975
1008
  type: "time",
976
1009
  allowFormula: t
977
- }) : v === E.BuiltInSelectorNames.List ? W(Hn, { ...e }) : v === E.BuiltInSelectorNames.Logical ? W(cr, { ...e }) : v === E.BuiltInOperatorNames.Average ? W(Wn, { ...e }) : v === E.BuiltInOperatorNames.TimePeriod ? W(er, { ...e }) : v === E.BuiltInOperatorNames.TopN ? W(tr, { ...e }) : v === E.BuiltInOperatorNames.Between ? W(nr, { ...e }) : v === E.BuiltInOperatorNames.Expression ? W(rr, { ...e }) : null;
1010
+ }) : v === E.BuiltInSelectorNames.List ? W(Kn, { ...e }) : v === E.BuiltInSelectorNames.Logical ? W(fr, { ...e }) : v === E.BuiltInOperatorNames.Average ? W(Jn, { ...e }) : v === E.BuiltInOperatorNames.TimePeriod ? W(ir, { ...e }) : v === E.BuiltInOperatorNames.TopN ? W(ar, { ...e }) : v === E.BuiltInOperatorNames.Between ? W(or, {
1011
+ ...e,
1012
+ selector: a
1013
+ }) : v === E.BuiltInOperatorNames.Expression ? W(sr, { ...e }) : null;
978
1014
  }, [
979
1015
  p,
980
1016
  h,
981
1017
  v,
982
1018
  m,
1019
+ a,
983
1020
  u
984
1021
  ]), S = V(() => h && m ? Array.isArray(m) ? m : [m] : [], [h, m]), C = h && p?.getName() === "not", w = (e) => {
985
1022
  if (!e || e === p) return;
986
1023
  let t = !!e.isCombinator?.(), r;
987
- if (t && h) r = e.getName() === "not" ? S[0] ?? Zn(e, i, a) : S.length > 0 ? S : Zn(e, i, a);
1024
+ if (t && h) r = e.getName() === "not" ? S[0] ?? tr(e, i, a) : S.length > 0 ? S : tr(e, i, a);
988
1025
  else {
989
1026
  let n = p?.getParamType?.(a ?? void 0) ?? null, o = e.getParamType?.(a ?? void 0) ?? null;
990
- r = !t && o && o === n ? m : Zn(e, i, a);
1027
+ r = !t && o && o === n ? m : tr(e, i, a);
991
1028
  }
992
1029
  n({
993
1030
  operator: e?.getName() ?? null,
@@ -1015,7 +1052,7 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
1015
1052
  gap: .5
1016
1053
  },
1017
1054
  children: [
1018
- W(ar, {
1055
+ W(lr, {
1019
1056
  title: d,
1020
1057
  sx: { flex: .4 },
1021
1058
  value: p,
@@ -1024,12 +1061,12 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
1024
1061
  readOnly: s
1025
1062
  }),
1026
1063
  x,
1027
- !s && !c && W(Mt, {
1064
+ !s && !c && W(Pt, {
1028
1065
  icon: W(N, { iconKey: "Close" }),
1029
1066
  onClick: r
1030
1067
  })
1031
1068
  ]
1032
- }) : G(qt, { children: [G(K, {
1069
+ }) : G(Yt, { children: [G(K, {
1033
1070
  sx: {
1034
1071
  display: "flex",
1035
1072
  flexDirection: "row",
@@ -1037,7 +1074,7 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
1037
1074
  gap: .5
1038
1075
  },
1039
1076
  children: [
1040
- W(ar, {
1077
+ W(lr, {
1041
1078
  title: d,
1042
1079
  sx: { flex: 1 },
1043
1080
  value: p,
@@ -1045,14 +1082,14 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
1045
1082
  onChange: w,
1046
1083
  readOnly: s
1047
1084
  }),
1048
- h && !C && !s && W(or, {
1085
+ h && !C && !s && W(ur, {
1049
1086
  label: p?.getTitle?.(),
1050
1087
  icon: W(N, { iconKey: "Add" }),
1051
1088
  operators: i,
1052
1089
  value: null,
1053
1090
  onChange: (e) => {
1054
1091
  if (!e) return;
1055
- let t = Zn(e, i, a), r = [...S, {
1092
+ let t = tr(e, i, a), r = [...S, {
1056
1093
  operator: e?.getName() ?? null,
1057
1094
  param: t
1058
1095
  }];
@@ -1062,13 +1099,13 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
1062
1099
  });
1063
1100
  }
1064
1101
  }),
1065
- !s && !c && W(Mt, {
1102
+ !s && !c && W(Pt, {
1066
1103
  icon: W(N, { iconKey: "Close" }),
1067
1104
  disabled: s,
1068
1105
  onClick: r
1069
1106
  })
1070
1107
  ]
1071
- }), h ? W(sr, {
1108
+ }), h ? W(dr, {
1072
1109
  operator: p,
1073
1110
  inputs: S,
1074
1111
  onOptionChange: (e) => {
@@ -1083,9 +1120,9 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
1083
1120
  }) : x] })
1084
1121
  });
1085
1122
  });
1086
- mr.displayName = "OperatorAndParamEditor";
1087
- var hr = R((e) => {
1088
- let { condition: t, onConditionChange: n, showIncludeBlanks: r = !1, selectorTitle: i, readOnly: a, operators: o, selectors: s, ranges: c, ...l } = e, u = F(), d = P(), [f, p] = U(() => t?.getSelector() ?? null), [m, h] = U(() => t?.getOperator() ? {
1123
+ vr.displayName = "OperatorAndParamEditor";
1124
+ var yr = R((e) => {
1125
+ let { condition: t, onConditionChange: n, showIncludeBlanks: r = !1, selectorTitle: i, readOnly: a, operators: o, selectors: s, ranges: c, ...l } = e, u = F(), d = vt(), [f, p] = U(() => t?.getSelector() ?? null), [m, h] = U(() => t?.getOperator() ? {
1089
1126
  operator: t.getOperator().getName(),
1090
1127
  param: t.getParam()
1091
1128
  } : null), [g, _] = U(() => t?.isIncludeBlanks() ?? !1);
@@ -1097,7 +1134,7 @@ var hr = R((e) => {
1097
1134
  param: t.getParam()
1098
1135
  } : null), _(t.isIncludeBlanks());
1099
1136
  }, [t]);
1100
- let v = V(() => (s ?? Object.values(ge.BuiltInSelectors)).slice().sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", d)), [s, d]), y = V(() => o ?? Object.values(ge.BuiltInOperators), [o]), b = V(() => Yn(f, y, d), [
1137
+ let v = V(() => (s ?? Object.values(_e.BuiltInSelectors)).slice().sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", d)), [s, d]), y = V(() => o ?? Object.values(_e.BuiltInOperators), [o]), b = V(() => $n(f, y, d), [
1101
1138
  f,
1102
1139
  y,
1103
1140
  d
@@ -1108,19 +1145,19 @@ var hr = R((e) => {
1108
1145
  let e = Array.from(C.current?.querySelectorAll("input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"hidden\"]):not([tabindex=\"-1\"]), textarea") ?? []).find((e) => !e.disabled && !e.readOnly && e.getAttribute("aria-hidden") !== "true");
1109
1146
  e && (e.focus(), e.select());
1110
1147
  }, [f, m]);
1111
- let T = (e) => {
1148
+ let ee = (e) => {
1112
1149
  h(e), n?.({
1113
1150
  selector: f,
1114
1151
  ...e,
1115
1152
  includeBlanks: g
1116
1153
  });
1117
- }, ee = r;
1154
+ }, te = r;
1118
1155
  return G(K, {
1119
1156
  sx: {
1120
1157
  display: "flex",
1121
1158
  flexDirection: "column",
1122
1159
  p: 2,
1123
- pb: +!ee,
1160
+ pb: +!te,
1124
1161
  gap: 1,
1125
1162
  backgroundColor: "action.hover",
1126
1163
  border: 1,
@@ -1129,27 +1166,27 @@ var hr = R((e) => {
1129
1166
  },
1130
1167
  ...l,
1131
1168
  children: [
1132
- W(ir, {
1169
+ W(cr, {
1133
1170
  title: i,
1134
1171
  selectors: v,
1135
1172
  value: f,
1136
1173
  onChange: (e) => {
1137
1174
  m && x.current.set(S(f), m);
1138
1175
  let t = ((e) => {
1139
- let { from: t, to: n, current: r, remembered: i, operators: a, context: o } = e, s = Yn(n, a), c = (e) => e && s.find((t) => t.getName() === e) || null;
1176
+ let { from: t, to: n, current: r, remembered: i, operators: a, context: o } = e, s = $n(n, a), c = (e) => e && s.find((t) => t.getName() === e) || null;
1140
1177
  if (i && c(i.operator)) return i;
1141
1178
  let l = c(r?.operator);
1142
1179
  if (r && l) {
1143
1180
  let e = (l.getParamType?.(t ?? void 0) ?? null) !== (l.getParamType?.(n ?? void 0) ?? null);
1144
1181
  return l.isCombinator?.() || e ? {
1145
1182
  operator: r.operator,
1146
- param: Zn(l, s, n)
1183
+ param: tr(l, s, n)
1147
1184
  } : r;
1148
1185
  }
1149
1186
  let u = n?.getDefaultCondition?.(o) ?? null, d = c(u?.operator);
1150
1187
  return u && d ? {
1151
1188
  operator: u.operator,
1152
- param: u.param === void 0 ? Zn(d, s, n) : u.param
1189
+ param: u.param === void 0 ? tr(d, s, n) : u.param
1153
1190
  } : null;
1154
1191
  })({
1155
1192
  from: f,
@@ -1174,9 +1211,9 @@ var hr = R((e) => {
1174
1211
  m ? W(K, {
1175
1212
  ref: C,
1176
1213
  sx: { display: "contents" },
1177
- children: W(mr, {
1214
+ children: W(vr, {
1178
1215
  operatorParam: m,
1179
- onOperatorParamChange: T,
1216
+ onOperatorParamChange: ee,
1180
1217
  onRemove: () => {
1181
1218
  h(null), n?.({
1182
1219
  selector: f,
@@ -1191,21 +1228,21 @@ var hr = R((e) => {
1191
1228
  })
1192
1229
  }) : !a && W(K, {
1193
1230
  sx: { display: "flex" },
1194
- children: W(or, {
1231
+ children: W(ur, {
1195
1232
  label: u("condition.when"),
1196
1233
  operators: b,
1197
1234
  value: null,
1198
1235
  onChange: (e) => {
1199
- e && (w.current = !0, T({
1236
+ e && (w.current = !0, ee({
1200
1237
  operator: e?.getName() ?? null,
1201
- param: Zn(e, b, f)
1238
+ param: tr(e, b, f)
1202
1239
  }));
1203
1240
  },
1204
1241
  readOnly: a
1205
1242
  })
1206
1243
  }),
1207
- ee && W(on, {
1208
- control: W(en, {
1244
+ te && W(ln, {
1245
+ control: W(nn, {
1209
1246
  checked: g,
1210
1247
  onChange: (e) => {
1211
1248
  t = e.target.checked, _(t), n?.({
@@ -1223,8 +1260,8 @@ var hr = R((e) => {
1223
1260
  ]
1224
1261
  });
1225
1262
  });
1226
- hr.displayName = "ConditionEditor";
1227
- var gr = R((e) => {
1263
+ yr.displayName = "ConditionEditor";
1264
+ var br = R((e) => {
1228
1265
  let { variant: t = "format", children: n, sx: r, ...i } = e;
1229
1266
  return W(K, {
1230
1267
  className: `sxl-cf-rule-section sxl-cf-rule-section-${t}`,
@@ -1243,34 +1280,34 @@ var gr = R((e) => {
1243
1280
  children: n
1244
1281
  });
1245
1282
  });
1246
- gr.displayName = "RuleSection";
1247
- var _r = new me("transparent"), vr = {
1283
+ br.displayName = "RuleSection";
1284
+ var xr = new he("transparent"), Sr = {
1248
1285
  lightRedFillDarkRedText: Z("conditionalFormat.preset.lightRedFillDarkRedText"),
1249
1286
  yellowFillDarkYellowText: Z("conditionalFormat.preset.yellowFillDarkYellowText"),
1250
1287
  greenFillDarkGreenText: Z("conditionalFormat.preset.greenFillDarkGreenText"),
1251
1288
  lightRedFill: Z("conditionalFormat.preset.lightRedFill"),
1252
1289
  redText: Z("conditionalFormat.preset.redText"),
1253
1290
  redBorder: Z("conditionalFormat.preset.redBorder")
1254
- }, yr = (e) => e ? typeof e == "string" ? e : e.type === O.Type.None ? null : e.color ?? e.foreground ?? null : null, br = (e, t) => e === "auto" ? null : s(e, t), xr = R((t) => {
1255
- let { format: n, onFormatChange: i, readOnly: a, ...o } = t, s = F(), { workbook: c, schemeLookup: l, themeKey: u, darkMode: d, propsColorPanel: f } = v(), p = n?.font ?? null, h = (p?.weight ?? 400) >= 600, g = p?.style === be.Style.Italic, y = !!p?.underline && p.underline !== be.UnderlineStyle.None, b = !!p?.strike, x = (e) => {
1256
- let t = { ...p };
1257
- for (let [n, r] of Object.entries(e)) r === void 0 ? delete t[n] : t[n] = r;
1258
- let r = { ...n };
1259
- Object.keys(t).length === 0 ? delete r.font : r.font = t, i(Object.keys(r).length === 0 ? null : r);
1260
- }, S = V(() => c?.getStyles().getNormal().getFont().getColor(), [c, u]), C = V(() => br(p?.color, c), [
1291
+ }, Cr = (e) => e ? typeof e == "string" ? e : e.type === be.Type.None ? null : e.color ?? e.foreground ?? null : null, wr = (e, t) => e === "auto" ? null : l(e, t), Tr = R((e) => {
1292
+ let { format: t, onFormatChange: i, readOnly: a, ...o } = e, s = F(), { workbook: c, schemeLookup: l, themeKey: u, darkMode: d, propsColorPanel: f } = _(), p = t?.font ?? null, m = (p?.weight ?? 400) >= 600, g = p?.style === xe.Style.Italic, v = !!p?.underline && p.underline !== xe.UnderlineStyle.None, y = !!p?.strike, b = (e) => {
1293
+ let n = { ...p };
1294
+ for (let [t, r] of Object.entries(e)) r === void 0 ? delete n[t] : n[t] = r;
1295
+ let r = { ...t };
1296
+ Object.keys(n).length === 0 ? delete r.font : r.font = n, i(Object.keys(r).length === 0 ? null : r);
1297
+ }, x = V(() => c?.getStyles().getNormal().getFont().getColor(), [c, u]), S = V(() => wr(p?.color, c), [
1261
1298
  p?.color,
1262
1299
  c,
1263
1300
  u
1264
- ]), w = V(() => br(yr(n?.fill), c), [
1265
- n?.fill,
1301
+ ]), C = V(() => wr(Cr(t?.fill), c), [
1302
+ t?.fill,
1266
1303
  c,
1267
1304
  u
1268
- ]), T = {
1305
+ ]), w = {
1269
1306
  padding: "4px",
1270
1307
  border: "none",
1271
1308
  borderRadius: 1
1272
1309
  };
1273
- return G(gr, {
1310
+ return G(br, {
1274
1311
  ...o,
1275
1312
  children: [G(K, {
1276
1313
  sx: {
@@ -1286,11 +1323,11 @@ var _r = new me("transparent"), vr = {
1286
1323
  gap: .5,
1287
1324
  flexWrap: "wrap"
1288
1325
  },
1289
- children: Ne.map((e, t) => {
1290
- let n = br(yr(e.style.fill), c), r = br(e.style.font?.color, c), o = e.style.borders ? br(Object.values(e.style.borders)[0]?.color, c) : null;
1291
- return W(m, {
1326
+ children: Pe.map((e, t) => {
1327
+ let n = wr(Cr(e.style.fill), c), r = wr(e.style.font?.color, c), o = e.style.borders ? wr(Object.values(e.style.borders)[0]?.color, c) : null;
1328
+ return W(h, {
1292
1329
  sheet: !0,
1293
- title: s(vr[e.key] ?? e.key),
1330
+ title: s(Sr[e.key] ?? e.key),
1294
1331
  disabled: a,
1295
1332
  onClick: () => i(structuredClone(e.style)),
1296
1333
  sx: {
@@ -1302,9 +1339,9 @@ var _r = new me("transparent"), vr = {
1302
1339
  children: "Aa"
1303
1340
  }, t);
1304
1341
  })
1305
- }), W(m, {
1342
+ }), W(h, {
1306
1343
  title: s("conditionalFormat.clearStyle"),
1307
- disabled: a || !n,
1344
+ disabled: a || !t,
1308
1345
  onClick: () => i(null),
1309
1346
  sx: {
1310
1347
  color: "text.secondary",
@@ -1322,86 +1359,86 @@ var _r = new me("transparent"), vr = {
1322
1359
  gap: .25
1323
1360
  },
1324
1361
  children: [
1325
- W(bn, {
1362
+ W(Sn, {
1326
1363
  value: "bold",
1327
1364
  size: "small",
1328
- sx: T,
1329
- selected: h,
1365
+ sx: w,
1366
+ selected: m,
1330
1367
  disabled: a,
1331
- onChange: () => x({ weight: h ? void 0 : 700 }),
1368
+ onChange: () => b({ weight: m ? void 0 : 700 }),
1332
1369
  children: W(N, { iconKey: "TextBold" })
1333
1370
  }),
1334
- W(bn, {
1371
+ W(Sn, {
1335
1372
  value: "italic",
1336
1373
  size: "small",
1337
- sx: T,
1374
+ sx: w,
1338
1375
  selected: g,
1339
1376
  disabled: a,
1340
- onChange: () => x({ style: g ? void 0 : be.Style.Italic }),
1377
+ onChange: () => b({ style: g ? void 0 : xe.Style.Italic }),
1341
1378
  children: W(N, { iconKey: "TextItalic" })
1342
1379
  }),
1343
- W(bn, {
1380
+ W(Sn, {
1344
1381
  value: "underline",
1345
1382
  size: "small",
1346
- sx: T,
1347
- selected: y,
1383
+ sx: w,
1384
+ selected: v,
1348
1385
  disabled: a,
1349
- onChange: () => x({ underline: y ? void 0 : be.UnderlineStyle.Single }),
1386
+ onChange: () => b({ underline: v ? void 0 : xe.UnderlineStyle.Single }),
1350
1387
  children: W(N, { iconKey: "TextUnderline" })
1351
1388
  }),
1352
- W(bn, {
1389
+ W(Sn, {
1353
1390
  value: "strike",
1354
1391
  size: "small",
1355
- sx: T,
1356
- selected: b,
1392
+ sx: w,
1393
+ selected: y,
1357
1394
  disabled: a,
1358
- onChange: () => x({ strike: !b || void 0 }),
1395
+ onChange: () => b({ strike: !y || void 0 }),
1359
1396
  children: W(N, { iconKey: "TextStrike" })
1360
1397
  }),
1361
- c && W(_, {
1398
+ c && W(n, {
1362
1399
  tooltip: s("conditionalFormat.border"),
1363
- selectedBorder: n?.borders,
1400
+ selectedBorder: t?.borders,
1364
1401
  createBorder: (e) => c.getStyles().getNormal().createStyle({ borders: e }).getBorders(),
1365
1402
  schemeLookup: l,
1366
- autoColor: S,
1403
+ autoColor: x,
1367
1404
  darkMode: d,
1368
1405
  disabled: a,
1369
1406
  onSelectBorder: (e) => ((e) => {
1370
- let t = { ...n };
1371
- e && Object.keys(e).length !== 0 ? t.borders = e : delete t.borders, i(Object.keys(t).length === 0 ? null : t);
1407
+ let n = { ...t };
1408
+ e && Object.keys(e).length !== 0 ? n.borders = e : delete n.borders, i(Object.keys(n).length === 0 ? null : n);
1372
1409
  })(e)
1373
1410
  }),
1374
1411
  W(r, {
1375
1412
  icon: "fill.colored",
1376
1413
  tooltip: s("conditionalFormat.fillColor"),
1377
- selectedColor: w,
1414
+ selectedColor: C,
1378
1415
  disabled: a,
1379
1416
  onSelectColor: (e) => ((e) => {
1380
- let t = { ...n };
1381
- e ? t.fill = {
1382
- type: O.Type.Solid,
1417
+ let n = { ...t };
1418
+ e ? n.fill = {
1419
+ type: be.Type.Solid,
1383
1420
  color: e.toString()
1384
- } : delete t.fill, i(Object.keys(t).length === 0 ? null : t);
1421
+ } : delete n.fill, i(Object.keys(n).length === 0 ? null : n);
1385
1422
  })(e),
1386
1423
  darkMode: d,
1387
1424
  propsPanel: {
1388
1425
  disableAlpha: !0,
1389
- autoColor: _r,
1426
+ autoColor: xr,
1390
1427
  autoColorLabelKey: Z("color.noFill"),
1391
- autoColorPosition: e.End,
1428
+ autoColorPosition: ee.End,
1392
1429
  ...f
1393
1430
  }
1394
1431
  }),
1395
1432
  W(r, {
1396
1433
  icon: "text.colored",
1397
1434
  tooltip: s("conditionalFormat.fontColor"),
1398
- selectedColor: C,
1435
+ selectedColor: S,
1399
1436
  disabled: a,
1400
- onSelectColor: (e) => x({ color: e ? e.toString() : void 0 }),
1437
+ onSelectColor: (e) => b({ color: e ? e.toString() : void 0 }),
1401
1438
  darkMode: d,
1402
1439
  propsPanel: {
1403
1440
  disableAlpha: !0,
1404
- autoColor: S,
1441
+ autoColor: x,
1405
1442
  ...f
1406
1443
  }
1407
1444
  })
@@ -1409,8 +1446,8 @@ var _r = new me("transparent"), vr = {
1409
1446
  })]
1410
1447
  });
1411
1448
  });
1412
- xr.displayName = "ConditionalFormatStylePicker";
1413
- var Sr = {
1449
+ Tr.displayName = "ConditionalFormatStylePicker";
1450
+ var Er = {
1414
1451
  [D.ColorStopType.AutoMin]: Z("conditionalFormat.stopType.autoMin"),
1415
1452
  [D.ColorStopType.AutoMax]: Z("conditionalFormat.stopType.autoMax"),
1416
1453
  [D.ColorStopType.Min]: Z("conditionalFormat.stopType.min"),
@@ -1419,13 +1456,13 @@ var Sr = {
1419
1456
  [D.ColorStopType.Percent]: Z("conditionalFormat.stopType.percent"),
1420
1457
  [D.ColorStopType.Percentile]: Z("conditionalFormat.stopType.percentile"),
1421
1458
  [D.ColorStopType.Formula]: Z("conditionalFormat.stopType.formula")
1422
- }, Cr = /* @__PURE__ */ new Set([
1459
+ }, Dr = /* @__PURE__ */ new Set([
1423
1460
  D.ColorStopType.AutoMin,
1424
1461
  D.ColorStopType.AutoMax,
1425
1462
  D.ColorStopType.Min,
1426
1463
  D.ColorStopType.Max
1427
- ]), wr = R((e) => {
1428
- let { label: t, stop: n, onStopChange: i, allowedTypes: a, showColor: o = !1, leading: s, showExclusive: c = !1, readOnly: l, ...u } = e, d = F(), { darkMode: f, toColor: p, propsColorPanel: m } = v(), h = Rn(), g = n.type ?? D.ColorStopType.Num, _ = !Cr.has(g), y = l || !_, b = g === D.ColorStopType.Formula, x = n.value?.isIFormula ? n.value : null, S = n.color, C = o ? p(S) : null;
1464
+ ]), Or = R((e) => {
1465
+ let { label: t, stop: n, onStopChange: i, allowedTypes: a, showColor: o = !1, leading: s, showExclusive: c = !1, readOnly: l, ...u } = e, d = F(), { darkMode: f, toColor: p, propsColorPanel: m } = _(), h = Bn(), g = n.type ?? D.ColorStopType.Num, v = !Dr.has(g), y = l || !v, b = g === D.ColorStopType.Formula, x = n.value?.isIFormula ? n.value : null, S = n.color, C = o ? p(S) : null;
1429
1466
  return G(K, {
1430
1467
  sx: {
1431
1468
  display: "flex",
@@ -1462,7 +1499,7 @@ var Sr = {
1462
1499
  ...m
1463
1500
  }
1464
1501
  }),
1465
- c && G(mn, {
1502
+ c && G(J, {
1466
1503
  size: "small",
1467
1504
  value: n.exclusive ? "gt" : "gte",
1468
1505
  disabled: l,
@@ -1474,15 +1511,15 @@ var Sr = {
1474
1511
  flex: "0 0 auto",
1475
1512
  backgroundColor: "background.paper"
1476
1513
  },
1477
- children: [W(J, {
1514
+ children: [W(q, {
1478
1515
  value: "gte",
1479
1516
  children: ">="
1480
- }), W(J, {
1517
+ }), W(q, {
1481
1518
  value: "gt",
1482
1519
  children: ">"
1483
1520
  })]
1484
1521
  }),
1485
- W(mn, {
1522
+ W(J, {
1486
1523
  size: "small",
1487
1524
  value: g,
1488
1525
  disabled: l,
@@ -1491,7 +1528,7 @@ var Sr = {
1491
1528
  ...n,
1492
1529
  type: e
1493
1530
  };
1494
- if (Cr.has(e)) delete t.value;
1531
+ if (Dr.has(e)) delete t.value;
1495
1532
  else if (t.value === void 0) t.value = e === D.ColorStopType.Formula ? "" : 0;
1496
1533
  else if (e !== D.ColorStopType.Formula && typeof t.value != "number") {
1497
1534
  let e = typeof t.value == "string" ? Number(t.value) : NaN;
@@ -1504,12 +1541,12 @@ var Sr = {
1504
1541
  minWidth: 0,
1505
1542
  backgroundColor: "background.paper"
1506
1543
  },
1507
- children: a.map((e) => W(J, {
1544
+ children: a.map((e) => W(q, {
1508
1545
  value: e,
1509
- children: d(Sr[e])
1546
+ children: d(Er[e])
1510
1547
  }, e))
1511
1548
  }),
1512
- b ? W(pe, {
1549
+ b ? W(me, {
1513
1550
  size: "small",
1514
1551
  home: h.home,
1515
1552
  value: x ? h.display(x) : `${n.value ?? ""}`,
@@ -1531,11 +1568,11 @@ var Sr = {
1531
1568
  minWidth: 0,
1532
1569
  "& .MuiInputBase-root": { backgroundColor: y ? "action.disabledBackground" : "background.paper" }
1533
1570
  }
1534
- }) : W(vn, {
1571
+ }) : W(bn, {
1535
1572
  size: "small",
1536
1573
  type: "number",
1537
- placeholder: _ ? void 0 : d("conditionalFormat.stopFromData"),
1538
- value: _ ? `${n.value ?? ""}` : "",
1574
+ placeholder: v ? void 0 : d("conditionalFormat.stopFromData"),
1575
+ value: v ? `${n.value ?? ""}` : "",
1539
1576
  disabled: y,
1540
1577
  onChange: (e) => {
1541
1578
  let t = e.target.value;
@@ -1557,16 +1594,16 @@ var Sr = {
1557
1594
  ]
1558
1595
  });
1559
1596
  });
1560
- wr.displayName = "ScaleStopRow";
1561
- var Tr = [
1597
+ Or.displayName = "ScaleStopRow";
1598
+ var kr = [
1562
1599
  D.ColorStopType.Min,
1563
1600
  D.ColorStopType.Max,
1564
1601
  D.ColorStopType.Num,
1565
1602
  D.ColorStopType.Percent,
1566
1603
  D.ColorStopType.Percentile,
1567
1604
  D.ColorStopType.Formula
1568
- ], Er = R((e) => {
1569
- let { scale: n, onScaleChange: r, readOnly: i, ...a } = e, o = F(), { workbook: s, toColor: l } = v(), u = n.stops ?? [], d = u.length === 2 ? [Z("conditionalFormat.stop.minimum"), Z("conditionalFormat.stop.maximum")] : [
1605
+ ], Ar = R((e) => {
1606
+ let { scale: n, onScaleChange: r, readOnly: i, ...a } = e, o = F(), { workbook: s, toColor: c } = _(), l = n.stops ?? [], d = l.length === 2 ? [Z("conditionalFormat.stop.minimum"), Z("conditionalFormat.stop.maximum")] : [
1570
1607
  Z("conditionalFormat.stop.minimum"),
1571
1608
  Z("conditionalFormat.stop.midpoint"),
1572
1609
  Z("conditionalFormat.stop.maximum")
@@ -1578,7 +1615,7 @@ var Tr = [
1578
1615
  gap: 1
1579
1616
  },
1580
1617
  ...a,
1581
- children: [W(gr, { children: G(K, {
1618
+ children: [W(br, { children: G(K, {
1582
1619
  sx: {
1583
1620
  display: "flex",
1584
1621
  alignItems: "flex-start",
@@ -1592,23 +1629,23 @@ var Tr = [
1592
1629
  gap: .5,
1593
1630
  flexWrap: "wrap"
1594
1631
  },
1595
- children: we.filter((e) => e.stops.length === (u.length === 2 ? 2 : 3)).map((e, n) => W(m, {
1632
+ children: Te.filter((e) => e.stops.length === (l.length === 2 ? 2 : 3)).map((e, n) => W(h, {
1596
1633
  sheet: !0,
1597
1634
  disabled: i,
1598
1635
  onClick: () => r(structuredClone(e)),
1599
- children: W(ue, { rows: t(e.stops ?? [], c, s) })
1636
+ children: W(fe, { rows: t(e.stops ?? [], u, s) })
1600
1637
  }, n))
1601
- }), G(xn, {
1638
+ }), G(Cn, {
1602
1639
  exclusive: !0,
1603
1640
  size: "small",
1604
- value: u.length === 2 ? 2 : 3,
1641
+ value: l.length === 2 ? 2 : 3,
1605
1642
  disabled: i,
1606
1643
  onChange: (e, t) => {
1607
1644
  t && ((e) => {
1608
- if (e === u.length || e !== 2 && e !== 3) return;
1609
- let t = u.slice();
1645
+ if (e === l.length || e !== 2 && e !== 3) return;
1646
+ let t = l.slice();
1610
1647
  if (e === 3) {
1611
- let e = "#FFEB84", n = l(u[0]?.color ?? e)?.toRGBA(), r = l(u[u.length - 1]?.color ?? e)?.toRGBA();
1648
+ let e = "#FFEB84", n = c(l[0]?.color ?? e)?.toRGBA(), r = c(l[l.length - 1]?.color ?? e)?.toRGBA();
1612
1649
  if (n && r) {
1613
1650
  let t = (e) => Math.round(e).toString(16).padStart(2, "0").toUpperCase();
1614
1651
  e = `#${t((n.red + r.red) / 2)}${t((n.green + r.green) / 2)}${t((n.blue + r.blue) / 2)}`;
@@ -1626,7 +1663,7 @@ var Tr = [
1626
1663
  })(t);
1627
1664
  },
1628
1665
  sx: { flex: "0 0 auto" },
1629
- children: [W(bn, {
1666
+ children: [W(Sn, {
1630
1667
  value: 2,
1631
1668
  sx: {
1632
1669
  textTransform: "none",
@@ -1634,7 +1671,7 @@ var Tr = [
1634
1671
  pb: .25
1635
1672
  },
1636
1673
  children: o("conditionalFormat.twoColor")
1637
- }), W(bn, {
1674
+ }), W(Sn, {
1638
1675
  value: 3,
1639
1676
  sx: {
1640
1677
  textTransform: "none",
@@ -1644,16 +1681,16 @@ var Tr = [
1644
1681
  children: o("conditionalFormat.threeColor")
1645
1682
  })]
1646
1683
  })]
1647
- }) }), W(gr, {
1684
+ }) }), W(br, {
1648
1685
  variant: "config",
1649
- children: u.map((e, t) => W(wr, {
1686
+ children: l.map((e, t) => W(Or, {
1650
1687
  label: o(d[Math.min(t, d.length - 1)]),
1651
1688
  stop: e,
1652
- allowedTypes: Tr,
1689
+ allowedTypes: kr,
1653
1690
  showColor: !0,
1654
1691
  readOnly: i,
1655
1692
  onStopChange: (e) => {
1656
- let i = u.slice();
1693
+ let i = l.slice();
1657
1694
  i[t] = e, r({
1658
1695
  ...n,
1659
1696
  stops: i
@@ -1663,23 +1700,23 @@ var Tr = [
1663
1700
  })]
1664
1701
  });
1665
1702
  });
1666
- Er.displayName = "ColorScaleRulePanel";
1667
- var Dr = [
1703
+ Ar.displayName = "ColorScaleRulePanel";
1704
+ var jr = [
1668
1705
  D.ColorStopType.AutoMin,
1669
1706
  D.ColorStopType.Min,
1670
1707
  D.ColorStopType.Num,
1671
1708
  D.ColorStopType.Percent,
1672
1709
  D.ColorStopType.Percentile,
1673
1710
  D.ColorStopType.Formula
1674
- ], Or = [
1711
+ ], Mr = [
1675
1712
  D.ColorStopType.AutoMax,
1676
1713
  D.ColorStopType.Max,
1677
1714
  D.ColorStopType.Num,
1678
1715
  D.ColorStopType.Percent,
1679
1716
  D.ColorStopType.Percentile,
1680
1717
  D.ColorStopType.Formula
1681
- ], kr = "__auto__", Ar = R((e) => {
1682
- let { scale: t, onScaleChange: n, readOnly: i, ...a } = e, o = F(), { darkMode: s, toColor: c, propsColorPanel: l } = v(), u = t.stops ?? [], d = c(t.color), f = c(t.negativeFillColor), p = c(t.borderColor), h = c(t.negativeBorderColor), g = t.gradient ?? !1, _ = (e) => {
1718
+ ], Nr = "__auto__", Pr = R((e) => {
1719
+ let { scale: t, onScaleChange: n, readOnly: i, ...a } = e, o = F(), { darkMode: s, toColor: c, propsColorPanel: l } = _(), u = t.stops ?? [], d = c(t.color), f = c(t.negativeFillColor), p = c(t.borderColor), m = c(t.negativeBorderColor), g = t.gradient ?? !1, y = (e) => {
1683
1720
  let r = { ...t };
1684
1721
  for (let [t, n] of Object.entries(e)) n === void 0 ? delete r[t] : r[t] = n;
1685
1722
  n(r);
@@ -1691,7 +1728,7 @@ var Dr = [
1691
1728
  gap: 1
1692
1729
  },
1693
1730
  ...a,
1694
- children: [G(gr, { children: [
1731
+ children: [G(br, { children: [
1695
1732
  G(K, {
1696
1733
  sx: {
1697
1734
  display: "flex",
@@ -1706,26 +1743,26 @@ var Dr = [
1706
1743
  gap: .5,
1707
1744
  flexWrap: "wrap"
1708
1745
  },
1709
- children: Ee.filter((e) => (e.gradient ?? !1) === g).map((e, t) => W(m, {
1746
+ children: De.filter((e) => (e.gradient ?? !1) === g).map((e, t) => W(h, {
1710
1747
  sheet: !0,
1711
1748
  disabled: i,
1712
- onClick: () => _({
1749
+ onClick: () => y({
1713
1750
  color: e.color,
1714
1751
  gradient: e.gradient,
1715
1752
  borderColor: e.borderColor
1716
1753
  }),
1717
- children: W(ue, { rows: y(e, c(e.color)?.toCSS("adaptive") ?? "var(--sxl-color-primary, rgb(33, 115, 70))") })
1754
+ children: W(fe, { rows: v(e, c(e.color)?.toCSS("adaptive") ?? "var(--sxl-color-primary, rgb(33, 115, 70))") })
1718
1755
  }, t))
1719
- }), G(xn, {
1756
+ }), G(Cn, {
1720
1757
  exclusive: !0,
1721
1758
  size: "small",
1722
1759
  value: g,
1723
1760
  disabled: i,
1724
1761
  onChange: (e, t) => {
1725
- t !== null && _({ gradient: !!t || void 0 });
1762
+ t !== null && y({ gradient: !!t || void 0 });
1726
1763
  },
1727
1764
  sx: { flex: "0 0 auto" },
1728
- children: [W(bn, {
1765
+ children: [W(Sn, {
1729
1766
  value: !1,
1730
1767
  sx: {
1731
1768
  textTransform: "none",
@@ -1733,7 +1770,7 @@ var Dr = [
1733
1770
  pb: .25
1734
1771
  },
1735
1772
  children: o("conditionalFormat.solidFill")
1736
- }), W(bn, {
1773
+ }), W(Sn, {
1737
1774
  value: !0,
1738
1775
  sx: {
1739
1776
  textTransform: "none",
@@ -1744,12 +1781,12 @@ var Dr = [
1744
1781
  })]
1745
1782
  })]
1746
1783
  }),
1747
- W(on, {
1748
- control: W(en, {
1784
+ W(ln, {
1785
+ control: W(nn, {
1749
1786
  size: "small",
1750
1787
  checked: !1 === t.showValue,
1751
1788
  disabled: i,
1752
- onChange: (e) => _({ showValue: !e.target.checked && void 0 })
1789
+ onChange: (e) => y({ showValue: !e.target.checked && void 0 })
1753
1790
  }),
1754
1791
  label: W(Y, {
1755
1792
  variant: "body2",
@@ -1776,7 +1813,7 @@ var Dr = [
1776
1813
  tooltip: o("conditionalFormat.barColor"),
1777
1814
  selectedColor: d,
1778
1815
  disabled: i,
1779
- onSelectColor: (e) => _({ color: e ? e.toString() : void 0 }),
1816
+ onSelectColor: (e) => y({ color: e ? e.toString() : void 0 }),
1780
1817
  darkMode: s,
1781
1818
  propsPanel: {
1782
1819
  disableAlpha: !0,
@@ -1788,7 +1825,7 @@ var Dr = [
1788
1825
  tooltip: o("conditionalFormat.barBorderColor"),
1789
1826
  selectedColor: p,
1790
1827
  disabled: i,
1791
- onSelectColor: (e) => _({ borderColor: e ? e.toString() : void 0 }),
1828
+ onSelectColor: (e) => y({ borderColor: e ? e.toString() : void 0 }),
1792
1829
  darkMode: s,
1793
1830
  propsPanel: {
1794
1831
  disableAlpha: !0,
@@ -1817,7 +1854,7 @@ var Dr = [
1817
1854
  tooltip: o("conditionalFormat.negativeColor"),
1818
1855
  selectedColor: f ?? d,
1819
1856
  disabled: i,
1820
- onSelectColor: (e) => _({ negativeFillColor: e ? e.toString() : void 0 }),
1857
+ onSelectColor: (e) => y({ negativeFillColor: e ? e.toString() : void 0 }),
1821
1858
  darkMode: s,
1822
1859
  propsPanel: {
1823
1860
  disableAlpha: !0,
@@ -1827,19 +1864,19 @@ var Dr = [
1827
1864
  W(r, {
1828
1865
  icon: "stroke.colored",
1829
1866
  tooltip: o("conditionalFormat.negativeBorderColor"),
1830
- selectedColor: h ?? p,
1867
+ selectedColor: m ?? p,
1831
1868
  disabled: i,
1832
- onSelectColor: (e) => _({ negativeBorderColor: e ? e.toString() : void 0 }),
1869
+ onSelectColor: (e) => y({ negativeBorderColor: e ? e.toString() : void 0 }),
1833
1870
  darkMode: s,
1834
1871
  propsPanel: {
1835
1872
  disableAlpha: !0,
1836
1873
  ...l
1837
1874
  }
1838
1875
  }),
1839
- W(m, {
1876
+ W(h, {
1840
1877
  title: o("conditionalFormat.sameAsPositive"),
1841
1878
  disabled: i || !t.negativeFillColor && !t.negativeBorderColor,
1842
- onClick: () => _({
1879
+ onClick: () => y({
1843
1880
  negativeFillColor: void 0,
1844
1881
  negativeBorderColor: void 0
1845
1882
  }),
@@ -1860,61 +1897,61 @@ var Dr = [
1860
1897
  gap: 1,
1861
1898
  mt: .5
1862
1899
  },
1863
- children: [G(q, {
1900
+ children: [G(cn, {
1864
1901
  size: "small",
1865
1902
  sx: {
1866
1903
  flex: 1,
1867
1904
  minWidth: 0
1868
1905
  },
1869
- children: [W(ln, { children: o("conditionalFormat.axis") }), G(mn, {
1906
+ children: [W(fn, { children: o("conditionalFormat.axis") }), G(J, {
1870
1907
  label: o("conditionalFormat.axis"),
1871
- value: t.axisPosition ?? kr,
1908
+ value: t.axisPosition ?? Nr,
1872
1909
  disabled: i,
1873
1910
  sx: b,
1874
1911
  onChange: (e) => {
1875
1912
  let t = e.target.value;
1876
- _({ axisPosition: t === kr ? void 0 : t });
1913
+ y({ axisPosition: t === Nr ? void 0 : t });
1877
1914
  },
1878
1915
  children: [
1879
- W(J, {
1880
- value: kr,
1916
+ W(q, {
1917
+ value: Nr,
1881
1918
  children: o("conditionalFormat.automatic")
1882
1919
  }),
1883
- W(J, {
1920
+ W(q, {
1884
1921
  value: "middle",
1885
1922
  children: o("conditionalFormat.axisMiddle")
1886
1923
  }),
1887
- W(J, {
1924
+ W(q, {
1888
1925
  value: "none",
1889
1926
  children: o("conditionalFormat.axisNone")
1890
1927
  })
1891
1928
  ]
1892
1929
  })]
1893
- }), G(q, {
1930
+ }), G(cn, {
1894
1931
  size: "small",
1895
1932
  sx: {
1896
1933
  flex: 1,
1897
1934
  minWidth: 0
1898
1935
  },
1899
- children: [W(ln, { children: o("conditionalFormat.direction") }), G(mn, {
1936
+ children: [W(fn, { children: o("conditionalFormat.direction") }), G(J, {
1900
1937
  label: o("conditionalFormat.direction"),
1901
- value: t.direction ?? kr,
1938
+ value: t.direction ?? Nr,
1902
1939
  disabled: i,
1903
1940
  sx: b,
1904
1941
  onChange: (e) => {
1905
1942
  let t = e.target.value;
1906
- _({ direction: t === kr ? void 0 : t });
1943
+ y({ direction: t === Nr ? void 0 : t });
1907
1944
  },
1908
1945
  children: [
1909
- W(J, {
1910
- value: kr,
1946
+ W(q, {
1947
+ value: Nr,
1911
1948
  children: o("conditionalFormat.automatic")
1912
1949
  }),
1913
- W(J, {
1950
+ W(q, {
1914
1951
  value: "leftToRight",
1915
1952
  children: o("conditionalFormat.leftToRight")
1916
1953
  }),
1917
- W(J, {
1954
+ W(q, {
1918
1955
  value: "rightToLeft",
1919
1956
  children: o("conditionalFormat.rightToLeft")
1920
1957
  })
@@ -1922,39 +1959,39 @@ var Dr = [
1922
1959
  })]
1923
1960
  })]
1924
1961
  })
1925
- ] }), G(gr, {
1962
+ ] }), G(br, {
1926
1963
  variant: "config",
1927
- children: [W(wr, {
1964
+ children: [W(Or, {
1928
1965
  label: o("conditionalFormat.stop.minimum"),
1929
1966
  stop: u[0] ?? { type: D.ColorStopType.AutoMin },
1930
- allowedTypes: Dr,
1967
+ allowedTypes: jr,
1931
1968
  readOnly: i,
1932
1969
  onStopChange: (e) => {
1933
1970
  let t = u.slice();
1934
- t[0] = e, _({ stops: t });
1971
+ t[0] = e, y({ stops: t });
1935
1972
  }
1936
- }), W(wr, {
1973
+ }), W(Or, {
1937
1974
  label: o("conditionalFormat.stop.maximum"),
1938
1975
  stop: u[1] ?? { type: D.ColorStopType.AutoMax },
1939
- allowedTypes: Or,
1976
+ allowedTypes: Mr,
1940
1977
  readOnly: i,
1941
1978
  onStopChange: (e) => {
1942
1979
  let t = u.slice();
1943
1980
  for (; t.length < 2;) t.push({ type: D.ColorStopType.AutoMax });
1944
- t[1] = e, _({ stops: t });
1981
+ t[1] = e, y({ stops: t });
1945
1982
  }
1946
1983
  })]
1947
1984
  })]
1948
1985
  });
1949
1986
  });
1950
- Ar.displayName = "DataBarRulePanel";
1951
- var jr = Z("conditionalFormat.noCellIcon"), Mr = Z("conditionalFormat.cellIcon"), Nr = {
1987
+ Pr.displayName = "DataBarRulePanel";
1988
+ var Fr = Z("conditionalFormat.noCellIcon"), Ir = Z("conditionalFormat.cellIcon"), Lr = {
1952
1989
  borderColor: "primary.main",
1953
1990
  boxShadow: (e) => `inset 0 0 0 1px ${e.palette.primary.main}`
1954
- }, Pr = {
1991
+ }, Rr = {
1955
1992
  width: "28px",
1956
1993
  height: "26px"
1957
- }, Fr = R((e) => {
1994
+ }, zr = R((e) => {
1958
1995
  let { icon: t, onPick: n } = e, r = F();
1959
1996
  return G(K, {
1960
1997
  sx: {
@@ -1963,18 +2000,18 @@ var jr = Z("conditionalFormat.noCellIcon"), Mr = Z("conditionalFormat.cellIcon")
1963
2000
  gap: "4px",
1964
2001
  padding: "6px 8px"
1965
2002
  },
1966
- children: [W(m, {
2003
+ children: [W(h, {
1967
2004
  sheet: !0,
1968
- title: r(jr),
2005
+ title: r(Fr),
1969
2006
  "aria-pressed": t === null,
1970
2007
  sx: {
1971
- ...Pr,
1972
- ...t === null ? Nr : null
2008
+ ...Rr,
2009
+ ...t === null ? Lr : null
1973
2010
  },
1974
2011
  onClick: () => {
1975
- n({ ...je });
2012
+ n({ ...Me });
1976
2013
  },
1977
- children: W(ke, {
2014
+ children: W(Ae, {
1978
2015
  icons: [null],
1979
2016
  size: 16
1980
2017
  })
@@ -1985,15 +2022,15 @@ var jr = Z("conditionalFormat.noCellIcon"), Mr = Z("conditionalFormat.cellIcon")
1985
2022
  justifyContent: "start",
1986
2023
  gap: "3px"
1987
2024
  },
1988
- children: Oe.map((e) => {
2025
+ children: ke.map((e) => {
1989
2026
  let i = ((e, t) => !!e && e.iconKey === t.iconKey && e.color === t.color)(t, e.spec);
1990
- return W(m, {
2027
+ return W(h, {
1991
2028
  sheet: !0,
1992
- title: f(r, e.spec),
2029
+ title: m(r, e.spec),
1993
2030
  "aria-pressed": i,
1994
2031
  sx: {
1995
- ...Pr,
1996
- ...i ? Nr : null
2032
+ ...Rr,
2033
+ ...i ? Lr : null
1997
2034
  },
1998
2035
  onClick: () => {
1999
2036
  n({
@@ -2001,7 +2038,7 @@ var jr = Z("conditionalFormat.noCellIcon"), Mr = Z("conditionalFormat.cellIcon")
2001
2038
  id: e.id
2002
2039
  });
2003
2040
  },
2004
- children: W(ke, {
2041
+ children: W(Ae, {
2005
2042
  icons: [e.spec],
2006
2043
  size: 16
2007
2044
  })
@@ -2010,25 +2047,25 @@ var jr = Z("conditionalFormat.noCellIcon"), Mr = Z("conditionalFormat.cellIcon")
2010
2047
  })]
2011
2048
  });
2012
2049
  });
2013
- Fr.displayName = "IconCatalogPanel";
2014
- var Ir = R(L((e, t) => {
2050
+ zr.displayName = "IconCatalogPanel";
2051
+ var Br = R(L((e, t) => {
2015
2052
  let { icon: n, onPick: r, tooltip: i, ...a } = e, o = F();
2016
- return W(Nt, {
2053
+ return W(Ft, {
2017
2054
  ref: t,
2018
2055
  createPopupPanel: z((e) => {
2019
- let { closeFloat: t } = e, i = W(Fr, {
2056
+ let { closeFloat: t } = e, i = W(zr, {
2020
2057
  icon: n,
2021
2058
  onPick: (e) => {
2022
2059
  t?.(), r(e);
2023
2060
  }
2024
2061
  });
2025
- return zt({
2062
+ return Vt({
2026
2063
  ...e,
2027
2064
  children: i
2028
2065
  });
2029
2066
  }, [n, r]),
2030
- tooltip: i ?? o(Mr),
2031
- icon: W(ke, {
2067
+ tooltip: i ?? o(Ir),
2068
+ icon: W(Ae, {
2032
2069
  icons: [n],
2033
2070
  size: 16
2034
2071
  }),
@@ -2036,26 +2073,26 @@ var Ir = R(L((e, t) => {
2036
2073
  ...a
2037
2074
  });
2038
2075
  }));
2039
- Ir.displayName = "IconPickerPopupButton";
2040
- var Lr = [
2076
+ Br.displayName = "IconPickerPopupButton";
2077
+ var Vr = [
2041
2078
  D.ColorStopType.Percent,
2042
2079
  D.ColorStopType.Num,
2043
2080
  D.ColorStopType.Percentile,
2044
2081
  D.ColorStopType.Formula
2045
- ], Rr = R((e) => {
2046
- let { scale: t, onScaleChange: n, readOnly: r, ...i } = e, a = F(), o = t.iconSet ?? xe.IconSet.TrafficLights3, s = Ge(o).length === 0, c = t.stops ?? [], l = c.length, u = qe(t), f = (e) => {
2082
+ ], Hr = R((e) => {
2083
+ let { scale: t, onScaleChange: n, readOnly: r, ...i } = e, a = F(), o = t.iconSet ?? Se.IconSet.TrafficLights3, s = qe(o).length === 0, c = t.stops ?? [], l = c.length, u = A(t), d = (e) => {
2047
2084
  let r = { ...t };
2048
2085
  for (let [t, n] of Object.entries(e)) n === void 0 ? delete r[t] : r[t] = n;
2049
2086
  n(r);
2050
- }, p = z((e) => {
2051
- let { closeFloat: t } = e, n = W(d, {
2052
- groups: T,
2087
+ }, f = z((e) => {
2088
+ let { closeFloat: t } = e, n = W(p, {
2089
+ groups: te,
2053
2090
  disabled: r,
2054
2091
  onPick: (e) => {
2055
2092
  t?.(), e.type === D.ScaleType.IconSet && e.iconSet && ((e) => {
2056
2093
  if (e === o) return;
2057
- let t = Ke(e), n = c;
2058
- t !== c.length && (n = We(t)), f({
2094
+ let t = Je(e), n = c;
2095
+ t !== c.length && (n = Ke(t)), d({
2059
2096
  iconSet: e,
2060
2097
  stops: n,
2061
2098
  icon: void 0
@@ -2063,11 +2100,11 @@ var Lr = [
2063
2100
  })(e.iconSet);
2064
2101
  }
2065
2102
  });
2066
- return zt({
2103
+ return Vt({
2067
2104
  ...e,
2068
2105
  children: n
2069
2106
  });
2070
- }, [r, t]), m = he.camelToPrettyCase(o);
2107
+ }, [r, t]), m = ge.camelToPrettyCase(o);
2071
2108
  return G(K, {
2072
2109
  sx: {
2073
2110
  display: "flex",
@@ -2075,14 +2112,14 @@ var Lr = [
2075
2112
  gap: 1
2076
2113
  },
2077
2114
  ...i,
2078
- children: [G(gr, { children: [
2115
+ children: [G(br, { children: [
2079
2116
  W(K, {
2080
2117
  sx: {
2081
2118
  display: "flex",
2082
2119
  alignItems: "center",
2083
2120
  gap: 1
2084
2121
  },
2085
- children: W(Nt, {
2122
+ children: W(Ft, {
2086
2123
  outlined: !0,
2087
2124
  disabled: r,
2088
2125
  label: m,
@@ -2097,14 +2134,14 @@ var Lr = [
2097
2134
  variant: "caption",
2098
2135
  noWrap: !0,
2099
2136
  children: m
2100
- }) : W(ke, {
2101
- icons: Ge(o),
2137
+ }) : W(Ae, {
2138
+ icons: qe(o),
2102
2139
  order: "descending",
2103
2140
  size: 14,
2104
2141
  gap: 3
2105
2142
  })
2106
2143
  }),
2107
- createPopupPanel: p
2144
+ createPopupPanel: f
2108
2145
  })
2109
2146
  }),
2110
2147
  s && W(Y, {
@@ -2117,23 +2154,23 @@ var Lr = [
2117
2154
  display: "flex",
2118
2155
  gap: 1
2119
2156
  },
2120
- children: [W(on, {
2121
- control: W(en, {
2157
+ children: [W(ln, {
2158
+ control: W(nn, {
2122
2159
  size: "small",
2123
2160
  checked: !1 === t.showValue,
2124
2161
  disabled: r,
2125
- onChange: (e) => f({ showValue: !e.target.checked && void 0 })
2162
+ onChange: (e) => d({ showValue: !e.target.checked && void 0 })
2126
2163
  }),
2127
2164
  label: W(Y, {
2128
2165
  variant: "body2",
2129
2166
  children: a("conditionalFormat.showIconsOnly")
2130
2167
  })
2131
- }), W(on, {
2132
- control: W(en, {
2168
+ }), W(ln, {
2169
+ control: W(nn, {
2133
2170
  size: "small",
2134
2171
  checked: t.reverse ?? !1,
2135
2172
  disabled: r,
2136
- onChange: (e) => f({ reverse: !!e.target.checked || void 0 })
2173
+ onChange: (e) => d({ reverse: !!e.target.checked || void 0 })
2137
2174
  }),
2138
2175
  label: W(Y, {
2139
2176
  variant: "body2",
@@ -2141,49 +2178,49 @@ var Lr = [
2141
2178
  })
2142
2179
  })]
2143
2180
  })
2144
- ] }), W(gr, {
2181
+ ] }), W(br, {
2145
2182
  variant: "config",
2146
2183
  children: c.map((e, i) => {
2147
2184
  let a = t.reverse ? l - 1 - i : i;
2148
- return W(wr, {
2185
+ return W(Or, {
2149
2186
  stop: e,
2150
- allowedTypes: Lr,
2187
+ allowedTypes: Vr,
2151
2188
  showExclusive: !0,
2152
2189
  readOnly: r || i === 0,
2153
- leading: W(Ir, {
2190
+ leading: W(Br, {
2154
2191
  icon: u[i] ?? null,
2155
2192
  disabled: r || s,
2156
- onPick: (e) => n(M(t, a, e))
2193
+ onPick: (e) => n(nt(t, a, e))
2157
2194
  }),
2158
2195
  onStopChange: (e) => {
2159
2196
  let t = c.slice();
2160
- t[i] = e, f({ stops: t });
2197
+ t[i] = e, d({ stops: t });
2161
2198
  }
2162
2199
  }, i);
2163
2200
  })
2164
2201
  })]
2165
2202
  });
2166
2203
  });
2167
- Rr.displayName = "IconSetRulePanel";
2168
- var zr = (e, t, n) => s(e, t)?.toCSS("adaptive") ?? n, Br = (e, t, n) => {
2204
+ Hr.displayName = "IconSetRulePanel";
2205
+ var Ur = (e, t, n) => l(e, t)?.toCSS("adaptive") ?? n, Wr = (e, t, n) => {
2169
2206
  if (!e) return n;
2170
- if (typeof e == "string") return zr(e, t, n);
2171
- if (e.type === O.Type.None) return n;
2207
+ if (typeof e == "string") return Ur(e, t, n);
2208
+ if (e.type === be.Type.None) return n;
2172
2209
  let r = e, i = e;
2173
- return zr(i.foreground ?? r.color ?? i.background, t, n);
2174
- }, Vr = R((e) => {
2175
- let { conditionalFormat: n, size: r = 28, ...i } = e, { workbook: o, themeKey: s } = v();
2176
- Ye(n, "onAnyChange");
2177
- let l = n.getScale(), d = n.getStyle(), f = V(() => {
2210
+ return Ur(i.foreground ?? r.color ?? i.background, t, n);
2211
+ }, Gr = R((e) => {
2212
+ let { conditionalFormat: n, size: r = 28, ...i } = e, { workbook: a, themeKey: o } = _();
2213
+ Xe(n, "onAnyChange");
2214
+ let c = n.getScale(), l = n.getStyle(), d = V(() => {
2178
2215
  try {
2179
- return o?.getStyles().getNormal().getFont().toCSS("adaptive") ?? {};
2216
+ return a?.getStyles().getNormal().getFont().toCSS("adaptive") ?? {};
2180
2217
  } catch {
2181
2218
  return {};
2182
2219
  }
2183
- }, [o, s]), p = V(() => {
2184
- if (l?.type === D.ScaleType.ColorScale) return W(ue, { rows: t(l.stops ?? [], c, o) });
2185
- if (l?.type === D.ScaleType.DataBar) return W(ue, { rows: y(l, zr(l.color, o, a), l.borderColor ? zr(l.borderColor, o, a) : void 0) });
2186
- if (l?.type === D.ScaleType.IconSet) return W(K, {
2220
+ }, [a, o]), p = V(() => {
2221
+ if (c?.type === D.ScaleType.ColorScale) return W(fe, { rows: t(c.stops ?? [], u, a) });
2222
+ if (c?.type === D.ScaleType.DataBar) return W(fe, { rows: v(c, Ur(c.color, a, s), c.borderColor ? Ur(c.borderColor, a, s) : void 0) });
2223
+ if (c?.type === D.ScaleType.IconSet) return W(K, {
2187
2224
  sx: {
2188
2225
  display: "flex",
2189
2226
  alignItems: "center",
@@ -2192,14 +2229,14 @@ var zr = (e, t, n) => s(e, t)?.toCSS("adaptive") ?? n, Br = (e, t, n) => {
2192
2229
  height: "100%",
2193
2230
  px: .5
2194
2231
  },
2195
- children: W(ke, {
2196
- icons: qe(l),
2232
+ children: W(Ae, {
2233
+ icons: A(c),
2197
2234
  order: "descending",
2198
2235
  size: 14,
2199
2236
  gap: 3
2200
2237
  })
2201
2238
  });
2202
- let e = d?.font, n = e?.underline && e.underline !== be.UnderlineStyle.None;
2239
+ let e = l?.font, n = e?.underline && e.underline !== xe.UnderlineStyle.None;
2203
2240
  return W(K, {
2204
2241
  sx: {
2205
2242
  width: "100%",
@@ -2207,28 +2244,28 @@ var zr = (e, t, n) => s(e, t)?.toCSS("adaptive") ?? n, Br = (e, t, n) => {
2207
2244
  display: "flex",
2208
2245
  alignItems: "center",
2209
2246
  justifyContent: "center",
2210
- ...f,
2211
- backgroundColor: Br(d?.fill, o, "transparent"),
2212
- ...e?.color && e.color !== "auto" ? { color: zr(e.color, o, g) } : null,
2247
+ ...d,
2248
+ backgroundColor: Wr(l?.fill, a, "transparent"),
2249
+ ...e?.color && e.color !== "auto" ? { color: Ur(e.color, a, g) } : null,
2213
2250
  ...e?.weight ? { fontWeight: e.weight } : null,
2214
2251
  ...e?.style ? { fontStyle: e.style } : null,
2215
2252
  textDecoration: [n ? "underline" : "", e?.strike ? "line-through" : ""].join(" ").trim() || "none",
2216
2253
  fontSize: `${Math.round(.5 * r)}px`,
2217
2254
  lineHeight: 1,
2218
- outline: d?.borders ? `1px solid ${zr(Object.values(d.borders)[0]?.color, o, u)}` : void 0,
2255
+ outline: l?.borders ? `1px solid ${Ur(Object.values(l.borders)[0]?.color, a, f)}` : void 0,
2219
2256
  outlineOffset: "-3px"
2220
2257
  },
2221
2258
  children: "Aa"
2222
2259
  });
2223
2260
  }, [
2261
+ c,
2224
2262
  l,
2225
- d,
2226
2263
  r,
2227
- f,
2228
- o,
2229
- s
2264
+ d,
2265
+ a,
2266
+ o
2230
2267
  ]);
2231
- return W(m, {
2268
+ return W(h, {
2232
2269
  sheet: !0,
2233
2270
  className: "sxl-cf-rule-preview",
2234
2271
  sx: {
@@ -2240,25 +2277,25 @@ var zr = (e, t, n) => s(e, t)?.toCSS("adaptive") ?? n, Br = (e, t, n) => {
2240
2277
  children: p
2241
2278
  });
2242
2279
  });
2243
- Vr.displayName = "RulePreview";
2244
- var Hr = (e, t) => {
2280
+ Gr.displayName = "RulePreview";
2281
+ var Kr = (e, t) => {
2245
2282
  let n = e.getCondition()?.toString();
2246
2283
  if (n) return n;
2247
2284
  let r = e.getScale();
2248
- return r ? he.camelToPrettyCase(r.type) : t("conditionalFormat.noCondition");
2249
- }, Ur = {
2285
+ return r ? ge.camelToPrettyCase(r.type) : t("conditionalFormat.noCondition");
2286
+ }, qr = {
2250
2287
  classic: Z("conditionalFormat.tab.classic"),
2251
2288
  [D.ScaleType.ColorScale]: Z("conditionalFormat.tab.colorScale"),
2252
2289
  [D.ScaleType.DataBar]: Z("conditionalFormat.tab.dataBars"),
2253
2290
  [D.ScaleType.IconSet]: Z("conditionalFormat.tab.iconSets")
2254
- }, Wr = R((e) => {
2291
+ }, Jr = R((e) => {
2255
2292
  let { conditionalFormat: t } = e, n = F();
2256
- Ye(t, "onAnyChange");
2257
- let r = t.getScale(), i = t.getCondition(), a = t.getStyle(), o = t.isProtected(), s = r?.type ?? "classic", c = H({ scales: {} }), u = (e) => {
2293
+ Xe(t, "onAnyChange");
2294
+ let r = t.getScale(), i = t.getCondition(), a = t.getStyle(), o = t.isProtected(), s = r?.type ?? "classic", c = H({ scales: {} }), l = (e) => {
2258
2295
  t.update({ scale: e });
2259
- }, d = G(fn, {
2296
+ }, u = G(hn, {
2260
2297
  tabIndex: 0,
2261
- className: l["editor-panel"],
2298
+ className: ae["editor-panel"],
2262
2299
  sx: {
2263
2300
  gap: (e) => e.spacing(1),
2264
2301
  paddingTop: (e) => e.spacing(1.25),
@@ -2284,7 +2321,7 @@ var Hr = (e, t) => {
2284
2321
  alignItems: "center",
2285
2322
  gap: (e) => e.spacing(1.5)
2286
2323
  },
2287
- children: [W(Vr, {
2324
+ children: [W(Gr, {
2288
2325
  conditionalFormat: t,
2289
2326
  size: 48
2290
2327
  }), W(Y, {
@@ -2293,14 +2330,14 @@ var Hr = (e, t) => {
2293
2330
  minWidth: 0,
2294
2331
  wordBreak: "break-word"
2295
2332
  },
2296
- children: Hr(t, n)
2333
+ children: Kr(t, n)
2297
2334
  })]
2298
- }), W(b, {
2335
+ }), W(y, {
2299
2336
  item: t,
2300
2337
  label: n("conditionalFormat.applyTo")
2301
2338
  })]
2302
2339
  }),
2303
- W(_n, {
2340
+ W(yn, {
2304
2341
  value: s,
2305
2342
  onChange: (e, n) => {
2306
2343
  o || ((e) => {
@@ -2313,7 +2350,7 @@ var Hr = (e, t) => {
2313
2350
  scale: null
2314
2351
  });
2315
2352
  else {
2316
- let n = c.current.scales[e] ?? (e === D.ScaleType.ColorScale ? Ve() : e === D.ScaleType.DataBar ? He() : Ue());
2353
+ let n = c.current.scales[e] ?? (e === D.ScaleType.ColorScale ? Ue() : e === D.ScaleType.DataBar ? We() : Ge());
2317
2354
  t.update({
2318
2355
  scale: n,
2319
2356
  condition: null,
@@ -2336,35 +2373,35 @@ var Hr = (e, t) => {
2336
2373
  minWidth: 0
2337
2374
  }
2338
2375
  },
2339
- children: Object.keys(Ur).map((e) => W(gn, {
2376
+ children: Object.keys(qr).map((e) => W(vn, {
2340
2377
  value: e,
2341
- label: n(Ur[e])
2378
+ label: n(qr[e])
2342
2379
  }, e))
2343
2380
  }),
2344
- s === "classic" && G(qt, { children: [W(xr, {
2381
+ s === "classic" && G(Yt, { children: [W(Tr, {
2345
2382
  format: a,
2346
2383
  readOnly: o,
2347
2384
  onFormatChange: (e) => t.update({ style: e })
2348
- }), W(hr, {
2385
+ }), W(yr, {
2349
2386
  selectorTitle: n("conditionalFormat.highlight"),
2350
2387
  condition: i,
2351
2388
  ranges: t.getRanges(),
2352
2389
  readOnly: o,
2353
2390
  onConditionChange: (e) => t.setCondition(e)
2354
2391
  })] }),
2355
- r?.type === D.ScaleType.ColorScale && W(Er, {
2392
+ r?.type === D.ScaleType.ColorScale && W(Ar, {
2356
2393
  scale: r,
2357
- onScaleChange: u,
2394
+ onScaleChange: l,
2358
2395
  readOnly: o
2359
2396
  }),
2360
- r?.type === D.ScaleType.DataBar && W(Ar, {
2397
+ r?.type === D.ScaleType.DataBar && W(Pr, {
2361
2398
  scale: r,
2362
- onScaleChange: u,
2399
+ onScaleChange: l,
2363
2400
  readOnly: o
2364
2401
  }),
2365
- r?.type === D.ScaleType.IconSet && W(Rr, {
2402
+ r?.type === D.ScaleType.IconSet && W(Hr, {
2366
2403
  scale: r,
2367
- onScaleChange: u,
2404
+ onScaleChange: l,
2368
2405
  readOnly: o
2369
2406
  }),
2370
2407
  s === "classic" && W(K, {
@@ -2375,8 +2412,8 @@ var Hr = (e, t) => {
2375
2412
  borderColor: "divider",
2376
2413
  borderRadius: 1
2377
2414
  },
2378
- children: W(on, {
2379
- control: W(en, {
2415
+ children: W(ln, {
2416
+ control: W(nn, {
2380
2417
  checked: t.isStopIfTrue(),
2381
2418
  disabled: o,
2382
2419
  onChange: (e) => t.setStopIfTrue(e.target.checked)
@@ -2386,15 +2423,15 @@ var Hr = (e, t) => {
2386
2423
  })
2387
2424
  ]
2388
2425
  });
2389
- return W(Fn.Provider, {
2426
+ return W(Ln.Provider, {
2390
2427
  value: t,
2391
- children: d
2428
+ children: u
2392
2429
  });
2393
2430
  });
2394
- Wr.displayName = "ConditionalFormatEditorPanel";
2395
- var Gr = R(({ item: e }) => {
2431
+ Jr.displayName = "ConditionalFormatEditorPanel";
2432
+ var Yr = R(({ item: e }) => {
2396
2433
  let t = F();
2397
- return Ye(e, "onAnyChange"), !e.isStopIfTrue() || e.getScale() ? null : W(K, {
2434
+ return Xe(e, "onAnyChange"), !e.isStopIfTrue() || e.getScale() ? null : W(K, {
2398
2435
  sx: {
2399
2436
  display: "inline-flex",
2400
2437
  alignItems: "center",
@@ -2412,14 +2449,14 @@ var Gr = R(({ item: e }) => {
2412
2449
  })
2413
2450
  });
2414
2451
  });
2415
- Gr.displayName = "StopIfTrueBadge";
2416
- var Kr = R(({ item: e }) => W(b, {
2452
+ Yr.displayName = "StopIfTrueBadge";
2453
+ var Xr = R(({ item: e }) => W(y, {
2417
2454
  item: e,
2418
2455
  label: F()("conditionalFormat.applyTo"),
2419
2456
  helperText: null
2420
2457
  }));
2421
- Kr.displayName = "ConditionalFormatCardRanges";
2422
- var qr = {
2458
+ Xr.displayName = "ConditionalFormatCardRanges";
2459
+ var Zr = {
2423
2460
  key: "conditional-format",
2424
2461
  messageKeys: {
2425
2462
  none: Z("conditionalFormat.none"),
@@ -2441,6 +2478,7 @@ var qr = {
2441
2478
  applyUpdate: (e, t) => {
2442
2479
  e.update(t);
2443
2480
  },
2481
+ validate: (e) => e.getCondition()?.validate() ?? null,
2444
2482
  applySeed: (e, t) => {
2445
2483
  e.update({
2446
2484
  condition: t.condition ?? null,
@@ -2449,47 +2487,47 @@ var qr = {
2449
2487
  stopIfTrue: t.stopIfTrue ?? !1
2450
2488
  });
2451
2489
  },
2452
- getCardTitle: Hr,
2453
- CardMedia: ({ item: e }) => W(Vr, {
2490
+ getCardTitle: Kr,
2491
+ CardMedia: ({ item: e }) => W(Gr, {
2454
2492
  conditionalFormat: e,
2455
2493
  size: 32
2456
2494
  }),
2457
- CardSubtitle: Kr,
2458
- CardBody: Gr,
2459
- EditorBody: ({ item: e }) => W(Wr, { conditionalFormat: e })
2460
- }, Jr = R(L((e, t) => {
2495
+ CardSubtitle: Xr,
2496
+ CardBody: Yr,
2497
+ EditorBody: ({ item: e }) => W(Jr, { conditionalFormat: e })
2498
+ }, Qr = R(L((e, t) => {
2461
2499
  let { workbook: n, args: r, ...i } = e;
2462
- return W(o, {
2500
+ return W(c, {
2463
2501
  ref: t,
2464
2502
  workbook: n,
2465
- descriptor: qr,
2503
+ descriptor: Zr,
2466
2504
  args: r,
2467
2505
  dragReorder: !0,
2468
2506
  ...i
2469
2507
  });
2470
2508
  }));
2471
- Jr.displayName = "ConditionalFormatDetailsPanel";
2472
- var Yr = (e) => {
2509
+ Qr.displayName = "ConditionalFormatDetailsPanel";
2510
+ var $r = (e) => {
2473
2511
  let { model: t, entryKey: n, frame: r, args: i, ref: a, ...o } = e;
2474
- return W(Jr, {
2512
+ return W(Qr, {
2475
2513
  ref: a,
2476
2514
  workbook: t,
2477
2515
  args: i,
2478
2516
  ...o
2479
2517
  });
2480
2518
  };
2481
- function Xr(e) {
2519
+ function ei(e) {
2482
2520
  var t, n, r = "";
2483
2521
  if (typeof e == "string" || typeof e == "number") r += e;
2484
- else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = Xr(e[t])) && (r && (r += " "), r += n);
2522
+ else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = ei(e[t])) && (r && (r += " "), r += n);
2485
2523
  else for (t in e) e[t] && (r && (r += " "), r += t);
2486
2524
  return r;
2487
2525
  }
2488
- function Zr() {
2489
- for (var e, t, n = 0, r = ""; n < arguments.length;) (e = arguments[n++]) && (t = Xr(e)) && (r && (r += " "), r += t);
2526
+ function ti() {
2527
+ for (var e, t, n = 0, r = ""; n < arguments.length;) (e = arguments[n++]) && (t = ei(e)) && (r && (r += " "), r += t);
2490
2528
  return r;
2491
2529
  }
2492
- var Qr = { data: "" }, $r = (e) => {
2530
+ var ni = { data: "" }, ri = (e) => {
2493
2531
  if (typeof window == "object") {
2494
2532
  let t = (e ? e.querySelector("#_goober") : window._goober) || Object.assign(document.createElement("style"), {
2495
2533
  innerHTML: " ",
@@ -2497,60 +2535,60 @@ var Qr = { data: "" }, $r = (e) => {
2497
2535
  });
2498
2536
  return t.nonce = window.__nonce__, t.parentNode || (e || document.head).appendChild(t), t.firstChild;
2499
2537
  }
2500
- return e || Qr;
2501
- }, ei = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, ti = /\/\*[^]*?\*\/| +/g, ni = /\n+/g, ri = (e, t) => {
2538
+ return e || ni;
2539
+ }, ii = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, ai = /\/\*[^]*?\*\/| +/g, oi = /\n+/g, si = (e, t) => {
2502
2540
  let n = "", r = "", i = "";
2503
2541
  for (let a in e) {
2504
2542
  let o = e[a];
2505
- a[0] == "@" ? a[1] == "i" ? n = a + " " + o + ";" : r += a[1] == "f" ? ri(o, a) : a + "{" + ri(o, a[1] == "k" ? "" : t) + "}" : typeof o == "object" ? r += ri(o, t ? t.replace(/([^,])+/g, (e) => a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (t) => /&/.test(t) ? t.replace(/&/g, e) : e ? e + " " + t : t)) : a) : o != null && (a = a[1] == "-" ? a : a.replace(/[A-Z]/g, "-$&").toLowerCase(), i += ri.p ? ri.p(a, o) : a + ":" + o + ";");
2543
+ a[0] == "@" ? a[1] == "i" ? n = a + " " + o + ";" : r += a[1] == "f" ? si(o, a) : a + "{" + si(o, a[1] == "k" ? "" : t) + "}" : typeof o == "object" ? r += si(o, t ? t.replace(/([^,])+/g, (e) => a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (t) => /&/.test(t) ? t.replace(/&/g, e) : e ? e + " " + t : t)) : a) : o != null && (a = a[1] == "-" ? a : a.replace(/[A-Z]/g, "-$&").toLowerCase(), i += si.p ? si.p(a, o) : a + ":" + o + ";");
2506
2544
  }
2507
2545
  return n + (t && i ? t + "{" + i + "}" : i) + r;
2508
- }, ii = {}, ai = (e) => {
2546
+ }, ci = {}, li = (e) => {
2509
2547
  if (typeof e == "object") {
2510
2548
  let t = "";
2511
- for (let n in e) t += n + ai(e[n]);
2549
+ for (let n in e) t += n + li(e[n]);
2512
2550
  return t;
2513
2551
  }
2514
2552
  return e;
2515
- }, oi = (e, t, n, r, i) => {
2516
- let a = ai(e), o = ii[a] || (ii[a] = ((e) => {
2553
+ }, ui = (e, t, n, r, i) => {
2554
+ let a = li(e), o = ci[a] || (ci[a] = ((e) => {
2517
2555
  let t = 0, n = 11;
2518
2556
  for (; t < e.length;) n = 101 * n + e.charCodeAt(t++) >>> 0;
2519
2557
  return "go" + n;
2520
2558
  })(a));
2521
- if (!ii[o]) {
2559
+ if (!ci[o]) {
2522
2560
  let t = a === e ? ((e) => {
2523
2561
  let t, n, r = [{}];
2524
- for (; t = ei.exec(e.replace(ti, ""));) t[4] ? r.shift() : t[3] ? (n = t[3].replace(ni, " ").trim(), r.unshift(r[0][n] = r[0][n] || {})) : r[0][t[1]] = t[2].replace(ni, " ").trim();
2562
+ for (; t = ii.exec(e.replace(ai, ""));) t[4] ? r.shift() : t[3] ? (n = t[3].replace(oi, " ").trim(), r.unshift(r[0][n] = r[0][n] || {})) : r[0][t[1]] = t[2].replace(oi, " ").trim();
2525
2563
  return r[0];
2526
2564
  })(e) : e;
2527
- ii[o] = ri(i ? { ["@keyframes " + o]: t } : t, n ? "" : "." + o);
2565
+ ci[o] = si(i ? { ["@keyframes " + o]: t } : t, n ? "" : "." + o);
2528
2566
  }
2529
- let s = n && ii.g;
2530
- return n && (ii.g = ii[o]), ((e, t, n, r) => {
2567
+ let s = n && ci.g;
2568
+ return n && (ci.g = ci[o]), ((e, t, n, r) => {
2531
2569
  r ? t.data = t.data.replace(r, e) : t.data.indexOf(e) === -1 && (t.data = n ? e + t.data : t.data + e);
2532
- })(ii[o], t, r, s), o;
2570
+ })(ci[o], t, r, s), o;
2533
2571
  };
2534
- function si(e) {
2572
+ function di(e) {
2535
2573
  let t = this || {}, n = e.call ? e(t.p) : e;
2536
- return oi(n.unshift ? n.raw ? ((e, t, n) => e.reduce((e, r, i) => {
2574
+ return ui(n.unshift ? n.raw ? ((e, t, n) => e.reduce((e, r, i) => {
2537
2575
  let a = t[i];
2538
2576
  if (a && a.call) {
2539
2577
  let e = a(n), t = e && e.props && e.props.className || /^go/.test(e) && e;
2540
- a = t ? "." + t : e && typeof e == "object" ? e.props ? "" : ri(e, "") : !1 === e ? "" : e;
2578
+ a = t ? "." + t : e && typeof e == "object" ? e.props ? "" : si(e, "") : !1 === e ? "" : e;
2541
2579
  }
2542
2580
  return e + r + (a ?? "");
2543
- }, ""))(n, [].slice.call(arguments, 1), t.p) : n.reduce((e, n) => Object.assign(e, n && n.call ? n(t.p) : n), {}) : n, $r(t.target), t.g, t.o, t.k);
2581
+ }, ""))(n, [].slice.call(arguments, 1), t.p) : n.reduce((e, n) => Object.assign(e, n && n.call ? n(t.p) : n), {}) : n, ri(t.target), t.g, t.o, t.k);
2544
2582
  }
2545
- si.bind({ g: 1 }), si.bind({ k: 1 });
2546
- function ci(e, t) {
2583
+ di.bind({ g: 1 }), di.bind({ k: 1 });
2584
+ function fi(e, t) {
2547
2585
  for (var n = 0; n < t.length; n++) {
2548
2586
  var r = t[n];
2549
2587
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
2550
2588
  }
2551
2589
  }
2552
- function li(e, t, n) {
2553
- return t && ci(e.prototype, t), n && ci(e, n), e;
2590
+ function pi(e, t, n) {
2591
+ return t && fi(e.prototype, t), n && fi(e, n), e;
2554
2592
  }
2555
2593
  function $() {
2556
2594
  return $ = Object.assign || function(e) {
@@ -2561,37 +2599,37 @@ function $() {
2561
2599
  return e;
2562
2600
  }, $.apply(this, arguments);
2563
2601
  }
2564
- function ui(e, t) {
2602
+ function mi(e, t) {
2565
2603
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
2566
2604
  }
2567
- function di(e, t) {
2605
+ function hi(e, t) {
2568
2606
  if (e == null) return {};
2569
2607
  var n, r, i = {}, a = Object.keys(e);
2570
2608
  for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]);
2571
2609
  return i;
2572
2610
  }
2573
- function fi(e) {
2611
+ function gi(e) {
2574
2612
  if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
2575
2613
  return e;
2576
2614
  }
2577
- var pi = function() {
2615
+ var _i = function() {
2578
2616
  return "";
2579
- }, mi = I.createContext({
2580
- enqueueSnackbar: pi,
2581
- closeSnackbar: pi
2582
- }), hi = "@media (max-width:599.95px)", gi = "@media (min-width:600px)", _i = function(e) {
2617
+ }, vi = I.createContext({
2618
+ enqueueSnackbar: _i,
2619
+ closeSnackbar: _i
2620
+ }), yi = "@media (max-width:599.95px)", bi = "@media (min-width:600px)", xi = function(e) {
2583
2621
  return e.charAt(0).toUpperCase() + e.slice(1);
2584
- }, vi = function(e) {
2585
- return "" + _i(e.vertical) + _i(e.horizontal);
2586
- }, yi = function(e) {
2622
+ }, Si = function(e) {
2623
+ return "" + xi(e.vertical) + xi(e.horizontal);
2624
+ }, Ci = function(e) {
2587
2625
  return !!e || e === 0;
2588
- }, bi = "unmounted", xi = "exited", Si = "entering", Ci = "entered", wi = "exiting", Ti = function(e) {
2626
+ }, wi = "unmounted", Ti = "exited", Ei = "entering", Di = "entered", Oi = "exiting", ki = function(e) {
2589
2627
  function t(t) {
2590
2628
  var n, r = e.call(this, t) || this, i = t.appear;
2591
- return r.appearStatus = null, t.in ? i ? (n = xi, r.appearStatus = Si) : n = Ci : n = t.unmountOnExit || t.mountOnEnter ? bi : xi, r.state = { status: n }, r.nextCallback = null, r;
2629
+ return r.appearStatus = null, t.in ? i ? (n = Ti, r.appearStatus = Ei) : n = Di : n = t.unmountOnExit || t.mountOnEnter ? wi : Ti, r.state = { status: n }, r.nextCallback = null, r;
2592
2630
  }
2593
- ui(t, e), t.getDerivedStateFromProps = function(e, t) {
2594
- return e.in && t.status === bi ? { status: xi } : null;
2631
+ mi(t, e), t.getDerivedStateFromProps = function(e, t) {
2632
+ return e.in && t.status === wi ? { status: Ti } : null;
2595
2633
  };
2596
2634
  var n = t.prototype;
2597
2635
  return n.componentDidMount = function() {
@@ -2600,7 +2638,7 @@ var pi = function() {
2600
2638
  var t = null;
2601
2639
  if (e !== this.props) {
2602
2640
  var n = this.state.status;
2603
- this.props.in ? n !== Si && n !== Ci && (t = Si) : n !== Si && n !== Ci || (t = wi);
2641
+ this.props.in ? n !== Ei && n !== Di && (t = Ei) : n !== Ei && n !== Di || (t = Oi);
2604
2642
  }
2605
2643
  this.updateStatus(!1, t);
2606
2644
  }, n.componentWillUnmount = function() {
@@ -2612,27 +2650,27 @@ var pi = function() {
2612
2650
  enter: t
2613
2651
  };
2614
2652
  }, n.updateStatus = function(e, t) {
2615
- e === void 0 && (e = !1), t === null ? this.props.unmountOnExit && this.state.status === xi && this.setState({ status: bi }) : (this.cancelNextCallback(), t === Si ? this.performEnter(e) : this.performExit());
2653
+ e === void 0 && (e = !1), t === null ? this.props.unmountOnExit && this.state.status === Ti && this.setState({ status: wi }) : (this.cancelNextCallback(), t === Ei ? this.performEnter(e) : this.performExit());
2616
2654
  }, n.performEnter = function(e) {
2617
2655
  var t = this, n = this.props.enter, r = e, i = this.getTimeouts();
2618
- e || n ? (this.props.onEnter && this.props.onEnter(this.node, r), this.safeSetState({ status: Si }, function() {
2656
+ e || n ? (this.props.onEnter && this.props.onEnter(this.node, r), this.safeSetState({ status: Ei }, function() {
2619
2657
  t.props.onEntering && t.props.onEntering(t.node, r), t.onTransitionEnd(i.enter, function() {
2620
- t.safeSetState({ status: Ci }, function() {
2658
+ t.safeSetState({ status: Di }, function() {
2621
2659
  t.props.onEntered && t.props.onEntered(t.node, r);
2622
2660
  });
2623
2661
  });
2624
- })) : this.safeSetState({ status: Ci }, function() {
2662
+ })) : this.safeSetState({ status: Di }, function() {
2625
2663
  t.props.onEntered && t.props.onEntered(t.node, r);
2626
2664
  });
2627
2665
  }, n.performExit = function() {
2628
2666
  var e = this, t = this.props.exit, n = this.getTimeouts();
2629
- t ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status: wi }, function() {
2667
+ t ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status: Oi }, function() {
2630
2668
  e.props.onExiting && e.props.onExiting(e.node), e.onTransitionEnd(n.exit, function() {
2631
- e.safeSetState({ status: xi }, function() {
2669
+ e.safeSetState({ status: Ti }, function() {
2632
2670
  e.props.onExited && e.props.onExited(e.node);
2633
2671
  });
2634
2672
  });
2635
- })) : this.safeSetState({ status: xi }, function() {
2673
+ })) : this.safeSetState({ status: Ti }, function() {
2636
2674
  e.props.onExited && e.props.onExited(e.node);
2637
2675
  });
2638
2676
  }, n.cancelNextCallback = function() {
@@ -2652,9 +2690,9 @@ var pi = function() {
2652
2690
  this.node && !n ? (this.props.addEndListener && this.props.addEndListener(this.node, this.nextCallback), e != null && setTimeout(this.nextCallback, e)) : setTimeout(this.nextCallback, 0);
2653
2691
  }, n.render = function() {
2654
2692
  var e = this.state.status;
2655
- if (e === bi) return null;
2693
+ if (e === wi) return null;
2656
2694
  var t = this.props;
2657
- return (0, t.children)(e, di(t, [
2695
+ return (0, t.children)(e, hi(t, [
2658
2696
  "children",
2659
2697
  "in",
2660
2698
  "mountOnEnter",
@@ -2672,7 +2710,7 @@ var pi = function() {
2672
2710
  "onExited",
2673
2711
  "nodeRef"
2674
2712
  ]));
2675
- }, li(t, [{
2713
+ }, pi(t, [{
2676
2714
  key: "node",
2677
2715
  get: function() {
2678
2716
  var e = this.props.nodeRef?.current;
@@ -2681,18 +2719,18 @@ var pi = function() {
2681
2719
  }
2682
2720
  }]), t;
2683
2721
  }(I.Component);
2684
- function Ei() {}
2685
- function Di(e, t) {
2722
+ function Ai() {}
2723
+ function ji(e, t) {
2686
2724
  typeof e == "function" ? e(t) : e && (e.current = t);
2687
2725
  }
2688
- function Oi(e, t) {
2726
+ function Mi(e, t) {
2689
2727
  return V(function() {
2690
2728
  return e == null && t == null ? null : function(n) {
2691
- Di(e, n), Di(t, n);
2729
+ ji(e, n), ji(t, n);
2692
2730
  };
2693
2731
  }, [e, t]);
2694
2732
  }
2695
- function ki(e) {
2733
+ function Ni(e) {
2696
2734
  var t = e.timeout, n = e.style, r = n === void 0 ? {} : n, i = e.mode;
2697
2735
  return {
2698
2736
  duration: typeof t == "object" ? t[i] || 0 : t,
@@ -2700,42 +2738,42 @@ function ki(e) {
2700
2738
  delay: r.transitionDelay
2701
2739
  };
2702
2740
  }
2703
- Ti.defaultProps = {
2741
+ ki.defaultProps = {
2704
2742
  in: !1,
2705
2743
  mountOnEnter: !1,
2706
2744
  unmountOnExit: !1,
2707
2745
  appear: !1,
2708
2746
  enter: !0,
2709
2747
  exit: !0,
2710
- onEnter: Ei,
2711
- onEntering: Ei,
2712
- onEntered: Ei,
2713
- onExit: Ei,
2714
- onExiting: Ei,
2715
- onExited: Ei
2748
+ onEnter: Ai,
2749
+ onEntering: Ai,
2750
+ onEntered: Ai,
2751
+ onExit: Ai,
2752
+ onExiting: Ai,
2753
+ onExited: Ai
2716
2754
  };
2717
- var Ai = "cubic-bezier(0.4, 0, 0.2, 1)", ji = "cubic-bezier(0.0, 0, 0.2, 1)", Mi = "cubic-bezier(0.4, 0, 0.6, 1)", Ni = function(e) {
2755
+ var Pi = "cubic-bezier(0.4, 0, 0.2, 1)", Fi = "cubic-bezier(0.0, 0, 0.2, 1)", Ii = "cubic-bezier(0.4, 0, 0.6, 1)", Li = function(e) {
2718
2756
  e.scrollTop = e.scrollTop;
2719
- }, Pi = function(e) {
2757
+ }, Ri = function(e) {
2720
2758
  return Math.round(e) + "ms";
2721
2759
  };
2722
- function Fi(e, t) {
2760
+ function zi(e, t) {
2723
2761
  e === void 0 && (e = ["all"]);
2724
- var n = t || {}, r = n.duration, i = r === void 0 ? 300 : r, a = n.easing, o = a === void 0 ? Ai : a, s = n.delay, c = s === void 0 ? 0 : s;
2762
+ var n = t || {}, r = n.duration, i = r === void 0 ? 300 : r, a = n.easing, o = a === void 0 ? Pi : a, s = n.delay, c = s === void 0 ? 0 : s;
2725
2763
  return (Array.isArray(e) ? e : [e]).map(function(e) {
2726
- var t = typeof i == "string" ? i : Pi(i), n = typeof c == "string" ? c : Pi(c);
2764
+ var t = typeof i == "string" ? i : Ri(i), n = typeof c == "string" ? c : Ri(c);
2727
2765
  return e + " " + t + " " + o + " " + n;
2728
2766
  }).join(",");
2729
2767
  }
2730
- function Ii(e) {
2768
+ function Bi(e) {
2731
2769
  return function(e) {
2732
2770
  return e && e.ownerDocument || document;
2733
2771
  }(e).defaultView || window;
2734
2772
  }
2735
- function Li(e, t) {
2773
+ function Vi(e, t) {
2736
2774
  if (t) {
2737
2775
  var n = function(e, t) {
2738
- var n, r = t.getBoundingClientRect(), i = Ii(t);
2776
+ var n, r = t.getBoundingClientRect(), i = Bi(t);
2739
2777
  if (t.fakeTransform) n = t.fakeTransform;
2740
2778
  else {
2741
2779
  var a = i.getComputedStyle(t);
@@ -2756,8 +2794,8 @@ function Li(e, t) {
2756
2794
  n && (t.style.webkitTransform = n, t.style.transform = n);
2757
2795
  }
2758
2796
  }
2759
- var Ri = L(function(e, t) {
2760
- var n = e.children, r = e.direction, i = r === void 0 ? "down" : r, a = e.in, o = e.style, s = e.timeout, c = s === void 0 ? 0 : s, l = e.onEnter, u = e.onEntered, d = e.onExit, f = e.onExited, p = di(e, [
2797
+ var Hi = L(function(e, t) {
2798
+ var n = e.children, r = e.direction, i = r === void 0 ? "down" : r, a = e.in, o = e.style, s = e.timeout, c = s === void 0 ? 0 : s, l = e.onEnter, u = e.onEntered, d = e.onExit, f = e.onExited, p = hi(e, [
2761
2799
  "children",
2762
2800
  "direction",
2763
2801
  "in",
@@ -2767,8 +2805,8 @@ var Ri = L(function(e, t) {
2767
2805
  "onEntered",
2768
2806
  "onExit",
2769
2807
  "onExited"
2770
- ]), m = H(null), h = Oi(Oi(n.ref, m), t), g = z(function() {
2771
- m.current && Li(i, m.current);
2808
+ ]), m = H(null), h = Mi(Mi(n.ref, m), t), g = z(function() {
2809
+ m.current && Vi(i, m.current);
2772
2810
  }, [i]);
2773
2811
  return B(function() {
2774
2812
  if (!a && i !== "down" && i !== "right") {
@@ -2784,36 +2822,36 @@ var Ri = L(function(e, t) {
2784
2822
  clearTimeout(n);
2785
2823
  }, r;
2786
2824
  }(function() {
2787
- m.current && Li(i, m.current);
2788
- }), t = Ii(m.current);
2825
+ m.current && Vi(i, m.current);
2826
+ }), t = Bi(m.current);
2789
2827
  return t.addEventListener("resize", e), function() {
2790
2828
  e.clear(), t.removeEventListener("resize", e);
2791
2829
  };
2792
2830
  }
2793
2831
  }, [i, a]), B(function() {
2794
2832
  a || g();
2795
- }, [a, g]), wt(Ti, Object.assign({
2833
+ }, [a, g]), Et(ki, Object.assign({
2796
2834
  appear: !0,
2797
2835
  nodeRef: m,
2798
2836
  onEnter: function(e, t) {
2799
- Li(i, e), Ni(e), l && l(e, t);
2837
+ Vi(i, e), Li(e), l && l(e, t);
2800
2838
  },
2801
2839
  onEntered: u,
2802
2840
  onEntering: function(e) {
2803
- var t = o?.transitionTimingFunction || ji, n = ki({
2841
+ var t = o?.transitionTimingFunction || Fi, n = Ni({
2804
2842
  timeout: c,
2805
2843
  mode: "enter",
2806
2844
  style: $({}, o, { transitionTimingFunction: t })
2807
2845
  });
2808
- e.style.webkitTransition = Fi("-webkit-transform", n), e.style.transition = Fi("transform", n), e.style.webkitTransform = "none", e.style.transform = "none";
2846
+ e.style.webkitTransition = zi("-webkit-transform", n), e.style.transition = zi("transform", n), e.style.webkitTransform = "none", e.style.transform = "none";
2809
2847
  },
2810
2848
  onExit: function(e) {
2811
- var t = o?.transitionTimingFunction || Mi, n = ki({
2849
+ var t = o?.transitionTimingFunction || Ii, n = Ni({
2812
2850
  timeout: c,
2813
2851
  mode: "exit",
2814
2852
  style: $({}, o, { transitionTimingFunction: t })
2815
2853
  });
2816
- e.style.webkitTransition = Fi("-webkit-transform", n), e.style.transition = Fi("transform", n), Li(i, e), d && d(e);
2854
+ e.style.webkitTransition = zi("-webkit-transform", n), e.style.transition = zi("transform", n), Vi(i, e), d && d(e);
2817
2855
  },
2818
2856
  onExited: function(e) {
2819
2857
  e.style.webkitTransition = "", e.style.transition = "", f && f(e);
@@ -2821,14 +2859,14 @@ var Ri = L(function(e, t) {
2821
2859
  in: a,
2822
2860
  timeout: c
2823
2861
  }, p), function(e, t) {
2824
- return St(n, $({
2862
+ return wt(n, $({
2825
2863
  ref: h,
2826
2864
  style: $({ visibility: e !== "exited" || a ? void 0 : "hidden" }, o, {}, n.props.style)
2827
2865
  }, t));
2828
2866
  });
2829
2867
  });
2830
- Ri.displayName = "Slide";
2831
- var zi = function(e) {
2868
+ Hi.displayName = "Slide";
2869
+ var Ui = function(e) {
2832
2870
  return I.createElement("svg", Object.assign({
2833
2871
  viewBox: "0 0 24 24",
2834
2872
  focusable: "false",
@@ -2843,7 +2881,7 @@ var zi = function(e) {
2843
2881
  flexShrink: 0
2844
2882
  }
2845
2883
  }, e));
2846
- }, Bi = {
2884
+ }, Wi = {
2847
2885
  maxSnack: 3,
2848
2886
  persist: !1,
2849
2887
  hideIconVariant: !1,
@@ -2853,68 +2891,68 @@ var zi = function(e) {
2853
2891
  iconVariant: {
2854
2892
  default: void 0,
2855
2893
  success: I.createElement(function() {
2856
- return I.createElement(zi, null, I.createElement("path", { d: "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z" }));
2894
+ return I.createElement(Ui, null, I.createElement("path", { d: "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z" }));
2857
2895
  }, null),
2858
2896
  warning: I.createElement(function() {
2859
- return I.createElement(zi, null, I.createElement("path", { d: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z" }));
2897
+ return I.createElement(Ui, null, I.createElement("path", { d: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z" }));
2860
2898
  }, null),
2861
2899
  error: I.createElement(function() {
2862
- return I.createElement(zi, null, I.createElement("path", { d: "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z" }));
2900
+ return I.createElement(Ui, null, I.createElement("path", { d: "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z" }));
2863
2901
  }, null),
2864
2902
  info: I.createElement(function() {
2865
- return I.createElement(zi, null, I.createElement("path", { d: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z" }));
2903
+ return I.createElement(Ui, null, I.createElement("path", { d: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z" }));
2866
2904
  }, null)
2867
2905
  },
2868
2906
  anchorOrigin: {
2869
2907
  vertical: "bottom",
2870
2908
  horizontal: "left"
2871
2909
  },
2872
- TransitionComponent: Ri,
2910
+ TransitionComponent: Hi,
2873
2911
  transitionDuration: {
2874
2912
  enter: 225,
2875
2913
  exit: 195
2876
2914
  }
2877
- }, Vi = function(e, t) {
2915
+ }, Gi = function(e, t) {
2878
2916
  return function(n, r) {
2879
- return r === void 0 && (r = !1), r ? $({}, Bi[n], {}, t[n], {}, e[n]) : n === "autoHideDuration" ? (i = e.autoHideDuration, a = t.autoHideDuration, (o = function(e) {
2917
+ return r === void 0 && (r = !1), r ? $({}, Wi[n], {}, t[n], {}, e[n]) : n === "autoHideDuration" ? (i = e.autoHideDuration, a = t.autoHideDuration, (o = function(e) {
2880
2918
  return typeof e == "number" || e === null;
2881
- })(i) ? i : o(a) ? a : Bi.autoHideDuration) : n === "transitionDuration" ? function(e, t) {
2919
+ })(i) ? i : o(a) ? a : Wi.autoHideDuration) : n === "transitionDuration" ? function(e, t) {
2882
2920
  var n = function(e, t) {
2883
2921
  return t.some(function(t) {
2884
2922
  return typeof e === t;
2885
2923
  });
2886
2924
  };
2887
- return n(e, ["string", "number"]) ? e : n(e, ["object"]) ? $({}, Bi.transitionDuration, {}, n(t, ["object"]) && t, {}, e) : n(t, ["string", "number"]) ? t : n(t, ["object"]) ? $({}, Bi.transitionDuration, {}, t) : Bi.transitionDuration;
2888
- }(e.transitionDuration, t.transitionDuration) : e[n] || t[n] || Bi[n];
2925
+ return n(e, ["string", "number"]) ? e : n(e, ["object"]) ? $({}, Wi.transitionDuration, {}, n(t, ["object"]) && t, {}, e) : n(t, ["string", "number"]) ? t : n(t, ["object"]) ? $({}, Wi.transitionDuration, {}, t) : Wi.transitionDuration;
2926
+ }(e.transitionDuration, t.transitionDuration) : e[n] || t[n] || Wi[n];
2889
2927
  var i, a, o;
2890
2928
  };
2891
2929
  };
2892
- function Hi(e) {
2930
+ function Ki(e) {
2893
2931
  return Object.entries(e).reduce(function(e, t) {
2894
2932
  var n, r = t[0], i = t[1];
2895
- return $({}, e, ((n = {})[r] = si(i), n));
2933
+ return $({}, e, ((n = {})[r] = di(i), n));
2896
2934
  }, {});
2897
2935
  }
2898
- var Ui = "notistack-SnackbarContainer", Wi = "notistack-Snackbar", Gi = "notistack-CollapseWrapper", Ki = "notistack-MuiContent", qi = function(e) {
2936
+ var qi = "notistack-SnackbarContainer", Ji = "notistack-Snackbar", Yi = "notistack-CollapseWrapper", Xi = "notistack-MuiContent", Zi = function(e) {
2899
2937
  return "notistack-MuiContent-" + e;
2900
- }, Ji = Hi({
2938
+ }, Qi = Ki({
2901
2939
  root: { height: 0 },
2902
2940
  entered: { height: "auto" }
2903
- }), Yi = "0px", Xi = L(function(e, t) {
2904
- var n = e.children, r = e.in, i = e.onExited, a = H(null), o = H(null), s = Oi(t, o), c = function() {
2941
+ }), $i = "0px", ea = L(function(e, t) {
2942
+ var n = e.children, r = e.in, i = e.onExited, a = H(null), o = H(null), s = Mi(t, o), c = function() {
2905
2943
  return a.current ? a.current.clientHeight : 0;
2906
2944
  };
2907
- return wt(Ti, {
2945
+ return Et(ki, {
2908
2946
  in: r,
2909
2947
  unmountOnExit: !0,
2910
2948
  onEnter: function(e) {
2911
- e.style.height = Yi;
2949
+ e.style.height = $i;
2912
2950
  },
2913
2951
  onEntered: function(e) {
2914
2952
  e.style.height = "auto";
2915
2953
  },
2916
2954
  onEntering: function(e) {
2917
- var t = c(), n = ki({
2955
+ var t = c(), n = Ni({
2918
2956
  timeout: 175,
2919
2957
  mode: "enter"
2920
2958
  }), r = n.duration, i = n.easing;
@@ -2925,28 +2963,28 @@ var Ui = "notistack-SnackbarContainer", Wi = "notistack-Snackbar", Gi = "notista
2925
2963
  },
2926
2964
  onExited: i,
2927
2965
  onExiting: function(e) {
2928
- Ni(e);
2929
- var t = ki({
2966
+ Li(e);
2967
+ var t = Ni({
2930
2968
  timeout: 175,
2931
2969
  mode: "exit"
2932
2970
  }), n = t.duration, r = t.easing;
2933
- e.style.transitionDuration = typeof n == "string" ? n : n + "ms", e.style.height = Yi, e.style.transitionTimingFunction = r || "";
2971
+ e.style.transitionDuration = typeof n == "string" ? n : n + "ms", e.style.height = $i, e.style.transitionTimingFunction = r || "";
2934
2972
  },
2935
2973
  nodeRef: o,
2936
2974
  timeout: 175
2937
2975
  }, function(e, t) {
2938
- return wt("div", Object.assign({
2976
+ return Et("div", Object.assign({
2939
2977
  ref: s,
2940
- className: Zr(Ji.root, e === "entered" && Ji.entered),
2978
+ className: ti(Qi.root, e === "entered" && Qi.entered),
2941
2979
  style: $({
2942
2980
  pointerEvents: "all",
2943
2981
  overflow: "hidden",
2944
- minHeight: Yi,
2945
- transition: Fi("height")
2982
+ minHeight: $i,
2983
+ transition: zi("height")
2946
2984
  }, e === "entered" && { overflow: "visible" }, {}, e === "exited" && !r && { visibility: "hidden" })
2947
- }, t), wt("div", {
2985
+ }, t), Et("div", {
2948
2986
  ref: a,
2949
- className: Gi,
2987
+ className: Yi,
2950
2988
  style: {
2951
2989
  display: "flex",
2952
2990
  width: "100%"
@@ -2954,36 +2992,36 @@ var Ui = "notistack-SnackbarContainer", Wi = "notistack-Snackbar", Gi = "notista
2954
2992
  }, n));
2955
2993
  });
2956
2994
  });
2957
- Xi.displayName = "Collapse";
2958
- var Zi = {
2995
+ ea.displayName = "Collapse";
2996
+ var ta = {
2959
2997
  right: "left",
2960
2998
  left: "right",
2961
2999
  bottom: "up",
2962
3000
  top: "down"
2963
- }, Qi = function(e) {
2964
- return "anchorOrigin" + vi(e);
2965
- }, $i = function() {};
2966
- function ea(e, t) {
3001
+ }, na = function(e) {
3002
+ return "anchorOrigin" + Si(e);
3003
+ }, ra = function() {};
3004
+ function ia(e, t) {
2967
3005
  return e.reduce(function(e, n) {
2968
3006
  return n == null ? e : function() {
2969
3007
  var r = [...arguments], i = [].concat(r);
2970
3008
  t && i.indexOf(t) === -1 && i.push(t), e.apply(this, i), n.apply(this, i);
2971
3009
  };
2972
- }, $i);
3010
+ }, ra);
2973
3011
  }
2974
- var ta = typeof window < "u" ? Dt : B;
2975
- function na(e) {
3012
+ var aa = typeof window < "u" ? kt : B;
3013
+ function oa(e) {
2976
3014
  var t = H(e);
2977
- return ta(function() {
3015
+ return aa(function() {
2978
3016
  t.current = e;
2979
3017
  }), z(function() {
2980
3018
  return t.current.apply(void 0, arguments);
2981
3019
  }, []);
2982
3020
  }
2983
- var ra, ia = L(function(e, t) {
2984
- var n = e.children, r = e.className, i = e.autoHideDuration, a = e.disableWindowBlurListener, o = a !== void 0 && a, s = e.onClose, c = e.id, l = e.open, u = e.SnackbarProps, d = u === void 0 ? {} : u, f = H(), p = na(function() {
3021
+ var sa, ca = L(function(e, t) {
3022
+ var n = e.children, r = e.className, i = e.autoHideDuration, a = e.disableWindowBlurListener, o = a !== void 0 && a, s = e.onClose, c = e.id, l = e.open, u = e.SnackbarProps, d = u === void 0 ? {} : u, f = H(), p = oa(function() {
2985
3023
  s && s.apply(void 0, arguments);
2986
- }), m = na(function(e) {
3024
+ }), m = oa(function(e) {
2987
3025
  s && e != null && (f.current && clearTimeout(f.current), f.current = setTimeout(function() {
2988
3026
  p(null, "timeout", c);
2989
3027
  }, e));
@@ -3010,8 +3048,8 @@ var ra, ia = L(function(e, t) {
3010
3048
  o,
3011
3049
  g,
3012
3050
  l
3013
- ]), wt("div", Object.assign({ ref: t }, d, {
3014
- className: Zr(Wi, r),
3051
+ ]), Et("div", Object.assign({ ref: t }, d, {
3052
+ className: ti(Ji, r),
3015
3053
  onMouseEnter: function(e) {
3016
3054
  d.onMouseEnter && d.onMouseEnter(e), h();
3017
3055
  },
@@ -3020,23 +3058,23 @@ var ra, ia = L(function(e, t) {
3020
3058
  }
3021
3059
  }), n);
3022
3060
  });
3023
- ia.displayName = "Snackbar";
3024
- var aa = Hi({ root: (ra = {
3061
+ ca.displayName = "Snackbar";
3062
+ var la = Ki({ root: (sa = {
3025
3063
  display: "flex",
3026
3064
  flexWrap: "wrap",
3027
3065
  flexGrow: 1
3028
- }, ra[gi] = {
3066
+ }, sa[bi] = {
3029
3067
  flexGrow: "initial",
3030
3068
  minWidth: "288px"
3031
- }, ra) }), oa = L(function(e, t) {
3032
- var n = e.className, r = di(e, ["className"]);
3069
+ }, sa) }), ua = L(function(e, t) {
3070
+ var n = e.className, r = hi(e, ["className"]);
3033
3071
  return I.createElement("div", Object.assign({
3034
3072
  ref: t,
3035
- className: Zr(aa.root, n)
3073
+ className: ti(la.root, n)
3036
3074
  }, r));
3037
3075
  });
3038
- oa.displayName = "SnackbarContent";
3039
- var sa = Hi({
3076
+ ua.displayName = "SnackbarContent";
3077
+ var da = Ki({
3040
3078
  root: {
3041
3079
  backgroundColor: "#313131",
3042
3080
  fontSize: "0.875rem",
@@ -3066,21 +3104,21 @@ var sa = Hi({
3066
3104
  paddingLeft: "16px",
3067
3105
  marginRight: "-8px"
3068
3106
  }
3069
- }), ca = "notistack-snackbar", la = L(function(e, t) {
3107
+ }), fa = "notistack-snackbar", pa = L(function(e, t) {
3070
3108
  var n = e.id, r = e.message, i = e.action, a = e.iconVariant, o = e.variant, s = e.hideIconVariant, c = e.style, l = e.className, u = a[o], d = i;
3071
- return typeof d == "function" && (d = d(n)), I.createElement(oa, {
3109
+ return typeof d == "function" && (d = d(n)), I.createElement(ua, {
3072
3110
  ref: t,
3073
3111
  role: "alert",
3074
- "aria-describedby": ca,
3112
+ "aria-describedby": fa,
3075
3113
  style: c,
3076
- className: Zr(Ki, qi(o), sa.root, sa[o], l, !s && u && sa.lessPadding)
3114
+ className: ti(Xi, Zi(o), da.root, da[o], l, !s && u && da.lessPadding)
3077
3115
  }, I.createElement("div", {
3078
- id: ca,
3079
- className: sa.message
3080
- }, s ? null : u, r), d && I.createElement("div", { className: sa.action }, d));
3116
+ id: fa,
3117
+ className: da.message
3118
+ }, s ? null : u, r), d && I.createElement("div", { className: da.action }, d));
3081
3119
  });
3082
- la.displayName = "MaterialDesignContent";
3083
- var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3120
+ pa.displayName = "MaterialDesignContent";
3121
+ var ma, ha, ga, _a, va, ya = R(pa), ba = Ki({ wrappedRoot: {
3084
3122
  width: "100%",
3085
3123
  position: "relative",
3086
3124
  transform: "translateX(0)",
@@ -3089,8 +3127,8 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3089
3127
  bottom: 0,
3090
3128
  left: 0,
3091
3129
  minWidth: "288px"
3092
- } }), _a = function(e) {
3093
- var t = H(), n = U(!0), r = n[0], i = n[1], a = ea([e.snack.onClose, e.onClose]), o = z(function() {
3130
+ } }), xa = function(e) {
3131
+ var t = H(), n = U(!0), r = n[0], i = n[1], a = ia([e.snack.onClose, e.onClose]), o = z(function() {
3094
3132
  t.current = setTimeout(function() {
3095
3133
  i(function(e) {
3096
3134
  return !e;
@@ -3102,7 +3140,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3102
3140
  t.current && clearTimeout(t.current);
3103
3141
  };
3104
3142
  }, []);
3105
- var s, c = e.snack, l = e.classes, u = e.Component, d = u === void 0 ? ha : u, f = V(function() {
3143
+ var s, c = e.snack, l = e.classes, u = e.Component, d = u === void 0 ? ya : u, f = V(function() {
3106
3144
  return function(e) {
3107
3145
  e === void 0 && (e = {});
3108
3146
  var t = {
@@ -3121,7 +3159,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3121
3159
  return $({}, t, ((r = {})[n] = e[n], r));
3122
3160
  }, {});
3123
3161
  }(l);
3124
- }, [l]), p = c.open, m = c.SnackbarProps, h = c.TransitionComponent, g = c.TransitionProps, _ = c.transitionDuration, v = c.disableWindowBlurListener, y = c.content, b = di(c, [
3162
+ }, [l]), p = c.open, m = c.SnackbarProps, h = c.TransitionComponent, g = c.TransitionProps, _ = c.transitionDuration, v = c.disableWindowBlurListener, y = c.content, b = hi(c, [
3125
3163
  "open",
3126
3164
  "SnackbarProps",
3127
3165
  "TransitionComponent",
@@ -3136,7 +3174,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3136
3174
  "onExit",
3137
3175
  "onExited"
3138
3176
  ]), x = $({
3139
- direction: (s = b.anchorOrigin, s.horizontal === "center" ? Zi[s.vertical] : Zi[s.horizontal]),
3177
+ direction: (s = b.anchorOrigin, s.horizontal === "center" ? ta[s.vertical] : ta[s.horizontal]),
3140
3178
  timeout: _
3141
3179
  }, g), S = y;
3142
3180
  typeof S == "function" && (S = S(b.id, b.message));
@@ -3147,17 +3185,17 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3147
3185
  "onExited"
3148
3186
  ].reduce(function(t, n) {
3149
3187
  var r;
3150
- return $({}, t, ((r = {})[n] = ea([e.snack[n], e[n]], b.id), r));
3188
+ return $({}, t, ((r = {})[n] = ia([e.snack[n], e[n]], b.id), r));
3151
3189
  }, {});
3152
- return I.createElement(Xi, {
3190
+ return I.createElement(ea, {
3153
3191
  in: r,
3154
3192
  onExited: C.onExited
3155
- }, I.createElement(ia, {
3193
+ }, I.createElement(ca, {
3156
3194
  open: p,
3157
3195
  id: b.id,
3158
3196
  disableWindowBlurListener: v,
3159
3197
  autoHideDuration: b.autoHideDuration,
3160
- className: Zr(ga.wrappedRoot, f.root, f[Qi(b.anchorOrigin)]),
3198
+ className: ti(ba.wrappedRoot, f.root, f[na(b.anchorOrigin)]),
3161
3199
  SnackbarProps: m,
3162
3200
  onClose: a
3163
3201
  }, I.createElement(h, Object.assign({}, x, {
@@ -3166,18 +3204,18 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3166
3204
  onExit: C.onExit,
3167
3205
  onExited: o,
3168
3206
  onEnter: C.onEnter,
3169
- onEntered: ea([C.onEntered, function() {
3207
+ onEntered: ia([C.onEntered, function() {
3170
3208
  e.snack.requestClose && a(null, "instructed", e.snack.id);
3171
3209
  }], b.id)
3172
3210
  }), S || I.createElement(d, Object.assign({}, b)))));
3173
- }, va = {
3211
+ }, Sa = {
3174
3212
  default: 20,
3175
3213
  dense: 4
3176
- }, ya = {
3214
+ }, Ca = {
3177
3215
  default: 6,
3178
3216
  dense: 2
3179
- }, ba = "." + Gi, xa = Hi({
3180
- root: (ua = {
3217
+ }, wa = "." + Yi, Ta = Ki({
3218
+ root: (ma = {
3181
3219
  boxSizing: "border-box",
3182
3220
  display: "flex",
3183
3221
  maxHeight: "100%",
@@ -3185,7 +3223,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3185
3223
  zIndex: 1400,
3186
3224
  height: "auto",
3187
3225
  width: "auto",
3188
- transition: Fi([
3226
+ transition: zi([
3189
3227
  "top",
3190
3228
  "right",
3191
3229
  "bottom",
@@ -3196,39 +3234,39 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3196
3234
  easing: "ease"
3197
3235
  }),
3198
3236
  pointerEvents: "none"
3199
- }, ua[ba] = {
3200
- padding: ya.default + "px 0px",
3237
+ }, ma[wa] = {
3238
+ padding: Ca.default + "px 0px",
3201
3239
  transition: "padding 300ms ease 0ms"
3202
- }, ua.maxWidth = "calc(100% - " + 2 * va.default + "px)", ua[hi] = {
3240
+ }, ma.maxWidth = "calc(100% - " + 2 * Sa.default + "px)", ma[yi] = {
3203
3241
  width: "100%",
3204
3242
  maxWidth: "calc(100% - 32px)"
3205
- }, ua),
3206
- rootDense: (da = {}, da[ba] = { padding: ya.dense + "px 0px" }, da),
3243
+ }, ma),
3244
+ rootDense: (ha = {}, ha[wa] = { padding: Ca.dense + "px 0px" }, ha),
3207
3245
  top: {
3208
- top: va.default - ya.default + "px",
3246
+ top: Sa.default - Ca.default + "px",
3209
3247
  flexDirection: "column"
3210
3248
  },
3211
3249
  bottom: {
3212
- bottom: va.default - ya.default + "px",
3250
+ bottom: Sa.default - Ca.default + "px",
3213
3251
  flexDirection: "column-reverse"
3214
3252
  },
3215
- left: (fa = { left: va.default + "px" }, fa[gi] = { alignItems: "flex-start" }, fa[hi] = { left: "16px" }, fa),
3216
- right: (pa = { right: va.default + "px" }, pa[gi] = { alignItems: "flex-end" }, pa[hi] = { right: "16px" }, pa),
3217
- center: (ma = {
3253
+ left: (ga = { left: Sa.default + "px" }, ga[bi] = { alignItems: "flex-start" }, ga[yi] = { left: "16px" }, ga),
3254
+ right: (_a = { right: Sa.default + "px" }, _a[bi] = { alignItems: "flex-end" }, _a[yi] = { right: "16px" }, _a),
3255
+ center: (va = {
3218
3256
  left: "50%",
3219
3257
  transform: "translateX(-50%)"
3220
- }, ma[gi] = { alignItems: "center" }, ma)
3221
- }), Sa = R(function(e) {
3222
- var t = e.classes, n = t === void 0 ? {} : t, r = e.anchorOrigin, i = e.dense, a = e.children, o = Zr(Ui, xa[r.vertical], xa[r.horizontal], xa.root, n.containerRoot, n["containerAnchorOrigin" + vi(r)], i && xa.rootDense);
3258
+ }, va[bi] = { alignItems: "center" }, va)
3259
+ }), Ea = R(function(e) {
3260
+ var t = e.classes, n = t === void 0 ? {} : t, r = e.anchorOrigin, i = e.dense, a = e.children, o = ti(qi, Ta[r.vertical], Ta[r.horizontal], Ta.root, n.containerRoot, n["containerAnchorOrigin" + Si(r)], i && Ta.rootDense);
3223
3261
  return I.createElement("div", { className: o }, a);
3224
- }), Ca = function(e) {
3225
- return !(typeof e == "string" || Tt(e));
3226
- }, wa = function(e) {
3262
+ }), Da = function(e) {
3263
+ return !(typeof e == "string" || Dt(e));
3264
+ }, Oa = function(e) {
3227
3265
  function t(t) {
3228
3266
  var n = e.call(this, t) || this;
3229
3267
  return n.enqueueSnackbar = function(e, t) {
3230
3268
  if (t === void 0 && (t = {}), e == null) throw Error("enqueueSnackbar called with invalid argument");
3231
- var r = Ca(e) ? e : t, i = Ca(e) ? e.message : e, a = r.key, o = r.preventDuplicate, s = di(r, ["key", "preventDuplicate"]), c = yi(a), l = c ? a : (/* @__PURE__ */ new Date()).getTime() + Math.random(), u = Vi(s, n.props), d = $({ id: l }, s, {
3269
+ var r = Da(e) ? e : t, i = Da(e) ? e.message : e, a = r.key, o = r.preventDuplicate, s = hi(r, ["key", "preventDuplicate"]), c = Ci(a), l = c ? a : (/* @__PURE__ */ new Date()).getTime() + Math.random(), u = Gi(s, n.props), d = $({ id: l }, s, {
3232
3270
  message: i,
3233
3271
  open: !0,
3234
3272
  entered: !1,
@@ -3247,7 +3285,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3247
3285
  iconVariant: u("iconVariant", !0),
3248
3286
  style: u("style", !0),
3249
3287
  SnackbarProps: u("SnackbarProps", !0),
3250
- className: Zr(n.props.className, s.className)
3288
+ className: ti(n.props.className, s.className)
3251
3289
  });
3252
3290
  return d.persist && (d.autoHideDuration = void 0), n.setState(function(e) {
3253
3291
  if (o === void 0 && n.props.preventDuplicate || o) {
@@ -3279,7 +3317,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3279
3317
  });
3280
3318
  return $({}, e, { snacks: i });
3281
3319
  }, n.handleEnteredSnack = function(e, t, r) {
3282
- if (!yi(r)) throw Error("handleEnteredSnack Cannot be called with undefined key");
3320
+ if (!Ci(r)) throw Error("handleEnteredSnack Cannot be called with undefined key");
3283
3321
  n.setState(function(e) {
3284
3322
  return { snacks: e.snacks.map(function(e) {
3285
3323
  return e.id === r ? $({}, e, { entered: !0 }) : $({}, e);
@@ -3303,9 +3341,9 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3303
3341
  var t = n.state.snacks.find(function(t) {
3304
3342
  return t.id === e;
3305
3343
  });
3306
- yi(e) && t && t.onClose && t.onClose(null, "instructed", e), n.handleCloseSnack(null, "instructed", e);
3344
+ Ci(e) && t && t.onClose && t.onClose(null, "instructed", e), n.handleCloseSnack(null, "instructed", e);
3307
3345
  }, n.handleExitedSnack = function(e, t) {
3308
- if (!yi(t)) throw Error("handleExitedSnack Cannot be called with undefined key");
3346
+ if (!Ci(t)) throw Error("handleExitedSnack Cannot be called with undefined key");
3309
3347
  n.setState(function(e) {
3310
3348
  var r = n.processQueue($({}, e, { snacks: e.snacks.filter(function(e) {
3311
3349
  return e.id !== t;
@@ -3316,24 +3354,24 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3316
3354
  snacks: [],
3317
3355
  queue: [],
3318
3356
  contextValue: {
3319
- enqueueSnackbar: n.enqueueSnackbar.bind(fi(n)),
3320
- closeSnackbar: n.closeSnackbar.bind(fi(n))
3357
+ enqueueSnackbar: n.enqueueSnackbar.bind(gi(n)),
3358
+ closeSnackbar: n.closeSnackbar.bind(gi(n))
3321
3359
  }
3322
3360
  }, n;
3323
3361
  }
3324
- return ui(t, e), t.prototype.render = function() {
3362
+ return mi(t, e), t.prototype.render = function() {
3325
3363
  var e = this, t = this.state.contextValue, n = this.props, r = n.domRoot, i = n.children, a = n.dense, o = a !== void 0 && a, s = n.Components, c = s === void 0 ? {} : s, l = n.classes, u = this.state.snacks.reduce(function(e, t) {
3326
- var n, r = vi(t.anchorOrigin), i = e[r] || [];
3364
+ var n, r = Si(t.anchorOrigin), i = e[r] || [];
3327
3365
  return $({}, e, ((n = {})[r] = [].concat(i, [t]), n));
3328
3366
  }, {}), d = Object.keys(u).map(function(t) {
3329
3367
  var n = u[t], r = n[0];
3330
- return I.createElement(Sa, {
3368
+ return I.createElement(Ea, {
3331
3369
  key: t,
3332
3370
  dense: o,
3333
3371
  anchorOrigin: r.anchorOrigin,
3334
3372
  classes: l
3335
3373
  }, n.map(function(t) {
3336
- return I.createElement(_a, {
3374
+ return I.createElement(xa, {
3337
3375
  key: t.id,
3338
3376
  snack: t,
3339
3377
  classes: l,
@@ -3341,21 +3379,21 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3341
3379
  onClose: e.handleCloseSnack,
3342
3380
  onEnter: e.props.onEnter,
3343
3381
  onExit: e.props.onExit,
3344
- onExited: ea([e.handleExitedSnack, e.props.onExited], t.id),
3345
- onEntered: ea([e.handleEnteredSnack, e.props.onEntered], t.id)
3382
+ onExited: ia([e.handleExitedSnack, e.props.onExited], t.id),
3383
+ onEntered: ia([e.handleEnteredSnack, e.props.onEntered], t.id)
3346
3384
  });
3347
3385
  }));
3348
3386
  });
3349
- return I.createElement(mi.Provider, { value: t }, i, r ? Mn(d, r) : d);
3350
- }, li(t, [{
3387
+ return I.createElement(vi.Provider, { value: t }, i, r ? Pn(d, r) : d);
3388
+ }, pi(t, [{
3351
3389
  key: "maxSnack",
3352
3390
  get: function() {
3353
- return this.props.maxSnack || Bi.maxSnack;
3391
+ return this.props.maxSnack || Wi.maxSnack;
3354
3392
  }
3355
3393
  }]), t;
3356
- }(xt), Ta = function() {
3357
- return Et(mi);
3358
- }, Ea = {
3394
+ }(Ct), ka = function() {
3395
+ return Ot(vi);
3396
+ }, Aa = {
3359
3397
  card: "_card_h0jnt_7",
3360
3398
  actionRoot: "_actionRoot_h0jnt_11",
3361
3399
  icons: "_icons_h0jnt_16",
@@ -3365,44 +3403,44 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3365
3403
  paper: "_paper_h0jnt_37",
3366
3404
  checkIcon: "_checkIcon_h0jnt_42",
3367
3405
  button: "_button_h0jnt_47"
3368
- }, Da = R(L((e, t) => {
3369
- let { id: n, message: r, iconVariant: i, error: a, hideIconVariant: o, ...s } = e, c = F(), { closeSnackbar: l } = Ta(), [u, d] = U(!1), f = a ? On.collectErrorChain(a, !0)?.[0]?.error : void 0, p = f && !(f instanceof kn), m = z(() => {
3406
+ }, ja = R(L((e, t) => {
3407
+ let { id: n, message: r, iconVariant: i, error: a, hideIconVariant: o, ...s } = e, c = F(), { closeSnackbar: l } = ka(), [u, d] = U(!1), f = a ? An.collectErrorChain(a, !0)?.[0]?.error : void 0, p = f && !(f instanceof jn), m = z(() => {
3370
3408
  d((e) => !e);
3371
3409
  }, []), h = z(() => {
3372
3410
  l(n);
3373
3411
  }, [n, l]), g = f?.message;
3374
- return !g && Tt(r) && (g = r), g || typeof r != "string" || (g = r), g ||= `Unknown Error: ${r}`, W(oa, {
3412
+ return !g && Dt(r) && (g = r), g || typeof r != "string" || (g = r), g ||= `Unknown Error: ${r}`, W(ua, {
3375
3413
  ref: t,
3376
- className: de(Ea.root, "error-snackbar"),
3377
- children: G(Qt, {
3378
- className: Ea.card,
3414
+ className: T(Aa.root, "error-snackbar"),
3415
+ children: G(en, {
3416
+ className: Aa.card,
3379
3417
  style: {
3380
3418
  backgroundColor: "var(--sxl-color-error)",
3381
3419
  color: "var(--sxl-color-error-content)",
3382
3420
  border: "1px solid var(--sxl-color-error)"
3383
3421
  },
3384
- children: [G($t, {
3385
- className: Ea.actionRoot,
3422
+ children: [G(tn, {
3423
+ className: Aa.actionRoot,
3386
3424
  children: [
3387
3425
  o ? null : i?.error,
3388
3426
  W(Y, {
3389
3427
  variant: "body2",
3390
3428
  component: "div",
3391
- className: Ea.typography,
3429
+ className: Aa.typography,
3392
3430
  children: g
3393
3431
  }),
3394
3432
  W("div", { style: { flex: "1 1 auto" } }),
3395
3433
  G("div", {
3396
- className: Ea.icons,
3397
- children: [p ? W(cn, {
3434
+ className: Aa.icons,
3435
+ children: [p ? W(dn, {
3398
3436
  "aria-label": c("toast.showMore"),
3399
3437
  size: "small",
3400
- className: de(Ea.expand, { [Ea.expandOpen]: u }),
3438
+ className: T(Aa.expand, { [Aa.expandOpen]: u }),
3401
3439
  onClick: m,
3402
3440
  children: W(N, { iconKey: "ExpandMore" })
3403
- }) : null, W(cn, {
3441
+ }) : null, W(dn, {
3404
3442
  size: "small",
3405
- className: Ea.expand,
3443
+ className: Aa.expand,
3406
3444
  onClick: h,
3407
3445
  children: W(N, {
3408
3446
  iconKey: "Close",
@@ -3411,16 +3449,16 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3411
3449
  })]
3412
3450
  })
3413
3451
  ]
3414
- }), p ? W(tn, {
3452
+ }), p ? W(rn, {
3415
3453
  in: u,
3416
3454
  timeout: "auto",
3417
3455
  children: W("div", {
3418
- className: Ea.stackTraceContainer,
3456
+ className: Aa.stackTraceContainer,
3419
3457
  style: {
3420
3458
  backgroundColor: "color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))",
3421
3459
  borderTop: "1px solid var(--sxl-color-error)"
3422
3460
  },
3423
- children: W(Lt, {
3461
+ children: W(zt, {
3424
3462
  error: a,
3425
3463
  hideLineNumbers: !0
3426
3464
  })
@@ -3429,8 +3467,8 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
3429
3467
  })
3430
3468
  });
3431
3469
  }));
3432
- Da.displayName = "ToastError";
3433
- var Oa = W(() => W(Pt, {
3470
+ ja.displayName = "ToastError";
3471
+ var Ma = W(() => W(It, {
3434
3472
  label: "SheetXL",
3435
3473
  description: F()("logo.description"),
3436
3474
  children: W(K, {
@@ -3446,22 +3484,22 @@ var Oa = W(() => W(Pt, {
3446
3484
  marginLeft: "6px",
3447
3485
  cursor: "pointer"
3448
3486
  },
3449
- children: W(Ae, { style: {
3487
+ children: W(je, { style: {
3450
3488
  width: "24px",
3451
3489
  height: "24px"
3452
3490
  } })
3453
3491
  })
3454
- }), {}), ka = R(L((e, t) => {
3455
- let { workbook: n, className: r, logo: a = Oa, mainElement: o, startElement: s, endElement: c, ...l } = e, [u, { width: d }] = fe(), f = d < 530, p = H(null);
3492
+ }), {}), Na = R(L((e, t) => {
3493
+ let { workbook: n, className: r, logo: i = Ma, mainElement: o, startElement: s, endElement: c, ...l } = e, [u, { width: d }] = pe(), f = d < 530, p = H(null);
3456
3494
  return W(K, {
3457
3495
  ...l,
3458
- ref: re([
3496
+ ref: ce([
3459
3497
  p,
3460
3498
  u,
3461
3499
  t
3462
3500
  ]),
3463
3501
  className: r,
3464
- children: i({
3502
+ children: a({
3465
3503
  isCompact: f,
3466
3504
  wrapperSelect: (e) => G(K, {
3467
3505
  sx: {
@@ -3482,7 +3520,7 @@ var Oa = W(() => W(Pt, {
3482
3520
  justifyContent: "start",
3483
3521
  gap: (e) => e.spacing(.5)
3484
3522
  },
3485
- children: [a, G(K, {
3523
+ children: [i, G(K, {
3486
3524
  sx: {
3487
3525
  display: "flex",
3488
3526
  flexDirection: "row",
@@ -3516,12 +3554,12 @@ var Oa = W(() => W(Pt, {
3516
3554
  })
3517
3555
  });
3518
3556
  }));
3519
- ka.displayName = "StudioToolbar";
3520
- var Aa = (e, t) => {
3557
+ Na.displayName = "StudioToolbar";
3558
+ var Pa = (e, t) => {
3521
3559
  let n = new URL(window.location.pathname, window.location.origin);
3522
- e && n.searchParams.set("source", e), e && t && n.searchParams.set("title", t), window.open(n.toString(), "sheetxl-" + Tn.uuidV4(), "popup=true");
3560
+ e && n.searchParams.set("source", e), e && t && n.searchParams.set("title", t), window.open(n.toString(), "sheetxl-" + Dn.uuidV4(), "popup=true");
3523
3561
  };
3524
- function ja(e, t) {
3562
+ function Fa(e, t) {
3525
3563
  let { workbook: n, setWorkbook: r, workbookTitle: i = "export", isDirty: a, notifier: o, refSave: s } = t, c = !1, l = async (e = null, t = null, n = null) => {
3526
3564
  let r = [], i = {
3527
3565
  source: e && typeof e != "string" ? e : null,
@@ -3592,7 +3630,7 @@ function ja(e, t) {
3592
3630
  let r = Q("dialog.writeWarnings.title"), i = t.getFormat(), s = (i ? (await k.getWriteFormats({ search: i }))[0] : void 0)?.description ?? i ?? "", c = Q("dialog.writeWarnings.keep");
3593
3631
  return n ? await o.showOptions({
3594
3632
  title: r,
3595
- type: ot.Warning,
3633
+ type: ct.Warning,
3596
3634
  description: `${Q("dialog.writeWarnings.confirm", { format: s })}\n\n${c}`,
3597
3635
  options: [{
3598
3636
  id: "Save",
@@ -3601,7 +3639,7 @@ function ja(e, t) {
3601
3639
  defaultOption: "Cancel"
3602
3640
  }) === "Save" && (a = await o?.showBusy?.(Q("workbook.saving", { name: t?.getName() ?? "" })), !0) : (o.showOptions({
3603
3641
  title: r,
3604
- type: ot.Warning,
3642
+ type: ct.Warning,
3605
3643
  description: `${Q("dialog.writeWarnings.saved", { format: s })}\n\n${c}`,
3606
3644
  options: ["Ok"]
3607
3645
  }), !0);
@@ -3621,7 +3659,7 @@ function ja(e, t) {
3621
3659
  e?.source ? t && d ? await d({
3622
3660
  url: e.source,
3623
3661
  title: e.title
3624
- }) : Aa(e.source, e.title) : t ? r({}) : Aa();
3662
+ }) : Pa(e.source, e.title) : t ? r({}) : Pa();
3625
3663
  } }), e.updateCommand("closeWorkbook", { callback: async () => {
3626
3664
  a() && await o.showOptions({
3627
3665
  title: Q("dialog.confirm.title"),
@@ -3693,7 +3731,7 @@ function ja(e, t) {
3693
3731
  let t = e;
3694
3732
  if (t || k.canRead() || (t = await (async () => {
3695
3733
  let e = await k.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
3696
- return En.openFileDialog(t.length ? t.join(",") : "*.*");
3734
+ return On.openFileDialog(t.length ? t.join(",") : "*.*");
3697
3735
  })(), t)) return p(t);
3698
3736
  }
3699
3737
  }), e.updateCommand("insertDataFromURL", {
@@ -3778,9 +3816,9 @@ function ja(e, t) {
3778
3816
  c = !0, s && (s.current = null);
3779
3817
  };
3780
3818
  }
3781
- var Ma = Vt(X("studio:shortcutKeysDialog", () => import("./BWNmYjzGDBhZYgIO.mjs")).load);
3782
- p(), se();
3783
- var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
3819
+ var Ia = Ut(X("studio:shortcutKeysDialog", () => import("./Dzym1WSjYb_mnVkJ.mjs")).load);
3820
+ o(), le();
3821
+ var La = /* @__PURE__ */ new Set(["ui"]), Ra = (e) => {
3784
3822
  let t = (e) => {
3785
3823
  if (typeof e != "function") return e;
3786
3824
  try {
@@ -3790,9 +3828,9 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
3790
3828
  }
3791
3829
  }, n = (e, n) => {
3792
3830
  let r = t(e);
3793
- return typeof r == "string" ? jn(r, n, Dn.getActive()) : void 0;
3831
+ return typeof r == "string" ? Nn(r, n, kn.getActive()) : void 0;
3794
3832
  }, r = [];
3795
- for (let i of e.names()) if (!Na.has(i)) for (let a of e.keys(i)) {
3833
+ for (let i of e.names()) if (!La.has(i)) for (let a of e.keys(i)) {
3796
3834
  let o = e.resolveDefinition(i, a);
3797
3835
  r.push({
3798
3836
  groupKey: i,
@@ -3802,29 +3840,29 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
3802
3840
  getDescription: () => n(o?.description, o?.params) ?? "",
3803
3841
  getShortcut: () => t(o?.shortcut) ?? null,
3804
3842
  getScope: () => i,
3805
- getScopeLabel: () => tt.DefaultCommandCatalogService.getScopeLabel(i)
3843
+ getScopeLabel: () => rt.DefaultCommandCatalogService.getScopeLabel(i)
3806
3844
  }
3807
3845
  });
3808
3846
  }
3809
3847
  return { getAllCommands: () => r };
3810
- }, Fa = (e) => {
3811
- let { children: t, workbook: n, setWorkbook: r, workbookTitle: i, isDirty: a, refSave: o } = e, s = tt.useCommandScope(), c = _t(), { showModal: l } = Gt(), u = F(), d = H(a);
3812
- d.current = a;
3813
- let f = pt(() => {
3814
- let e = s?.getRoot().getRegistry();
3848
+ }, za = (e) => {
3849
+ let { children: t, workbook: n, setWorkbook: r, workbookTitle: i, isDirty: a, refSave: o, fullscreenTarget: s } = e, c = rt.useCommandScope(), l = yt(), { showModal: u } = qt(), d = F(), f = H(a);
3850
+ f.current = a;
3851
+ let p = ht(() => {
3852
+ let e = c?.getRoot().getRegistry();
3815
3853
  if (!e) return;
3816
- let t = l(Ma, {
3817
- title: u("dialog.shortcutKeys.title"),
3818
- commands: Pa(e),
3854
+ let t = u(Ia, {
3855
+ title: d("dialog.shortcutKeys.title"),
3856
+ commands: Ra(e),
3819
3857
  onDone: () => t.hide(),
3820
3858
  onLoadError: (e) => {
3821
- t.destroy(), c.showError(e);
3859
+ t.destroy(), l.showError(e);
3822
3860
  }
3823
3861
  });
3824
- }, [s, l]);
3862
+ }, [c, u]);
3825
3863
  B(() => {
3826
- if (!s) return;
3827
- let e = s.getRoot().contribution();
3864
+ if (!c) return;
3865
+ let e = c.getRoot().contribution();
3828
3866
  return function(e, t) {
3829
3867
  let n = () => t.showShortcuts();
3830
3868
  e.updateCommand("showKeyboardShortcuts", { callback: n }), e.updateCommand("help", { callback: n });
@@ -3836,12 +3874,12 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
3836
3874
  })) e.updateCommand(t, { callback: () => {
3837
3875
  window?.open(n);
3838
3876
  } });
3839
- }(e, { showShortcuts: f }), () => e.remove();
3840
- }, [s, f]);
3841
- let p = Cn("(prefers-color-scheme: dark)"), { themeMode: m } = yt(), [h, g] = vt(Ie.Mode, null), [_, v] = vt(Ie.DarkGrid, !1), [y, b] = vt(Ie.DarkImages, !1);
3877
+ }(e, { showShortcuts: p }), () => e.remove();
3878
+ }, [c, p]);
3879
+ let m = Tn("(prefers-color-scheme: dark)"), { themeMode: h } = xt(), [g, _] = bt(Re.Mode, Le[Re.Mode]), [v, y] = bt(Re.DarkGrid, Le[Re.DarkGrid]), [b, x] = bt(Re.DarkImages, Le[Re.DarkImages]);
3842
3880
  B(() => {
3843
- if (!s) return;
3844
- let e = s.getRoot().contribution();
3881
+ if (!c) return;
3882
+ let e = c.getRoot().contribution();
3845
3883
  return function(e, t) {
3846
3884
  e.updateCommand("themeMode", {
3847
3885
  state: t.mode ?? null,
@@ -3860,32 +3898,32 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
3860
3898
  callback: () => t.setEnableDarkImages((e) => !e)
3861
3899
  });
3862
3900
  }(e, {
3863
- mode: h,
3864
- setMode: g,
3865
- isDark: h === "dark" || !h && m === "dark",
3866
- systemDefaultDark: p,
3867
- enableDarkGrid: _,
3868
- setEnableDarkGrid: v,
3869
- enableDarkImages: y,
3870
- setEnableDarkImages: b
3901
+ mode: g,
3902
+ setMode: _,
3903
+ isDark: g === "dark" || !g && h === "dark",
3904
+ systemDefaultDark: m,
3905
+ enableDarkGrid: v,
3906
+ setEnableDarkGrid: y,
3907
+ enableDarkImages: b,
3908
+ setEnableDarkImages: x
3871
3909
  }), () => e.remove();
3872
3910
  }, [
3873
- s,
3911
+ c,
3912
+ g,
3874
3913
  h,
3875
3914
  m,
3876
- p,
3915
+ v,
3916
+ b,
3877
3917
  _,
3878
3918
  y,
3879
- g,
3880
- v,
3881
- b
3919
+ x
3882
3920
  ]);
3883
- let [x, S] = vt(at.Active, null), [C, w] = U(() => Dn.getActive());
3884
- B(() => Dn.addChangeListener(w), []), B(() => {
3885
- x && x !== Dn.getActive() && Dn.setActive(x);
3886
- }, [x]), B(() => {
3887
- if (!s) return;
3888
- let e = s.getRoot().contribution();
3921
+ let [S, C] = bt(st.Active, null), [w, ee] = U(() => kn.getActive());
3922
+ B(() => kn.addChangeListener(ee), []), B(() => {
3923
+ S && S !== kn.getActive() && kn.setActive(S);
3924
+ }, [S]), B(() => {
3925
+ if (!c) return;
3926
+ let e = c.getRoot().contribution();
3889
3927
  return function(e, t) {
3890
3928
  e.updateCommand("language", {
3891
3929
  state: t.active,
@@ -3894,20 +3932,20 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
3894
3932
  }
3895
3933
  });
3896
3934
  }(e, {
3897
- active: C,
3935
+ active: w,
3898
3936
  setActive: (e) => {
3899
- S(e);
3937
+ C(e);
3900
3938
  }
3901
3939
  }), () => e.remove();
3902
3940
  }, [
3903
- s,
3904
- C,
3905
- S
3941
+ c,
3942
+ w,
3943
+ C
3906
3944
  ]);
3907
- let { isFullscreenAvailable: T, isFullscreenEnabled: ee, toggleFullscreen: te } = ht();
3945
+ let { isFullscreenAvailable: te, isFullscreenEnabled: ne, toggleFullscreen: re } = P({ target: V(() => ({ current: s ?? null }), [s]) });
3908
3946
  B(() => {
3909
- if (!s) return;
3910
- let e = s.getRoot().contribution();
3947
+ if (!c) return;
3948
+ let e = c.getRoot().contribution();
3911
3949
  return function(e, t) {
3912
3950
  e.updateCommand("fullScreenToggle", {
3913
3951
  state: t.isFullscreenEnabled,
@@ -3918,20 +3956,20 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
3918
3956
  }
3919
3957
  });
3920
3958
  }(e, {
3921
- isFullscreenAvailable: T,
3922
- isFullscreenEnabled: ee,
3923
- toggleFullscreen: te
3959
+ isFullscreenAvailable: te,
3960
+ isFullscreenEnabled: ne,
3961
+ toggleFullscreen: re
3924
3962
  }), () => e.remove();
3925
3963
  }, [
3926
- s,
3927
- T,
3928
- ee,
3929
- te
3964
+ c,
3965
+ te,
3966
+ ne,
3967
+ re
3930
3968
  ]);
3931
- let ne = j(!0);
3969
+ let ie = M(!0);
3932
3970
  return B(() => {
3933
- if (!s) return;
3934
- let e = s.getRoot().contribution();
3971
+ if (!c) return;
3972
+ let e = c.getRoot().contribution();
3935
3973
  return function(e, t) {
3936
3974
  e.updateCommand("protectWorkbook", {
3937
3975
  tags: ["noTransaction", "noRepeat"],
@@ -3939,32 +3977,32 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
3939
3977
  t("manageProtection", { args: { tab: "workbook" } });
3940
3978
  }
3941
3979
  });
3942
- }(e, (e, t) => ne.activate(e, t)), () => e.remove();
3943
- }, [s, ne]), B(() => {
3944
- if (!s || !n) return;
3945
- let e = s.getRoot().contribution(), t = ja(e, {
3980
+ }(e, (e, t) => ie.activate(e, t)), () => e.remove();
3981
+ }, [c, ie]), B(() => {
3982
+ if (!c || !n) return;
3983
+ let e = c.getRoot().contribution(), t = Fa(e, {
3946
3984
  workbook: n,
3947
3985
  setWorkbook: r,
3948
3986
  workbookTitle: i ?? void 0,
3949
- isDirty: () => d.current?.() ?? !1,
3950
- notifier: c,
3987
+ isDirty: () => f.current?.() ?? !1,
3988
+ notifier: l,
3951
3989
  refSave: o
3952
3990
  });
3953
3991
  return () => {
3954
3992
  t(), e.remove();
3955
3993
  };
3956
3994
  }, [
3957
- s,
3995
+ c,
3958
3996
  n,
3959
3997
  r,
3960
3998
  i,
3961
- c,
3999
+ l,
3962
4000
  o
3963
4001
  ]), t;
3964
4002
  };
3965
- Fa.displayName = "StudioCommandProvider";
3966
- var Ia = ({ renderWorkbook: e }) => {
3967
- let t = tt.useCommandResolver(), n = H(null), r = F(), [i, a] = U(null), o = z((e) => {
4003
+ za.displayName = "StudioCommandProvider";
4004
+ var Ba = ({ renderWorkbook: e }) => {
4005
+ let t = rt.useCommandResolver(), n = H(null), r = F(), [i, a] = U(null), o = z((e) => {
3968
4006
  let n = e.dataTransfer;
3969
4007
  if (t && n) {
3970
4008
  if (e.type === "dragenter" || e.type === "dragover") {
@@ -3980,7 +4018,7 @@ var Ia = ({ renderWorkbook: e }) => {
3980
4018
  }
3981
4019
  e.preventDefault();
3982
4020
  }
3983
- }, [t]), s = pt((e) => {
4021
+ }, [t]), s = ht((e) => {
3984
4022
  e.preventDefault();
3985
4023
  let r = i;
3986
4024
  if (a(null), r && t && (e.stopPropagation(), e.dataTransfer.files && e.dataTransfer.files.length > 0)) {
@@ -4024,12 +4062,12 @@ var Ia = ({ renderWorkbook: e }) => {
4024
4062
  display: "flex",
4025
4063
  justifyContent: "center",
4026
4064
  alignItems: "center",
4027
- backgroundColor: (e) => Sn(e.palette.primary.main, .46),
4065
+ backgroundColor: (e) => wn(e.palette.primary.main, .46),
4028
4066
  outline: (e) => `2px dashed ${e.palette.primary.main}`,
4029
4067
  outlineOffset: "-6px",
4030
4068
  borderRadius: 2
4031
4069
  },
4032
- children: G(fn, {
4070
+ children: G(hn, {
4033
4071
  elevation: 6,
4034
4072
  sx: {
4035
4073
  display: "flex",
@@ -4053,7 +4091,7 @@ var Ia = ({ renderWorkbook: e }) => {
4053
4091
  })
4054
4092
  });
4055
4093
  }, [i, r]);
4056
- return G(qt, { children: [e({
4094
+ return G(Yt, { children: [e({
4057
4095
  ref: n,
4058
4096
  onDragStart: (e) => {
4059
4097
  if (e.target.src) {
@@ -4066,48 +4104,48 @@ var Ia = ({ renderWorkbook: e }) => {
4066
4104
  onDragOver: o,
4067
4105
  onDrop: s
4068
4106
  }), c] });
4069
- }, La = R((e) => {
4070
- let { workbook: t, setWorkbook: n, refDocumentTitle: r, titleWorkbook: i, setWorkbookTitle: a, isDirty: o, initialCommandAnchor: s, renderWorkbook: c, refSave: l } = e;
4071
- return W(Te, {
4107
+ }, Va = R((e) => {
4108
+ let { workbook: t, setWorkbook: n, refDocumentTitle: r, titleWorkbook: i, setWorkbookTitle: a, isDirty: o, initialCommandAnchor: s, renderWorkbook: c, refSave: l, host: u } = e;
4109
+ return W(Ee, {
4072
4110
  initialAnchor: s,
4073
- children: W(Fa, {
4111
+ children: W(za, {
4074
4112
  workbook: t,
4075
4113
  setWorkbook: n,
4076
4114
  workbookTitle: i,
4077
4115
  isDirty: o,
4078
4116
  refSave: l,
4079
- children: W(Ia, { renderWorkbook: c })
4117
+ fullscreenTarget: u,
4118
+ children: W(Ba, { renderWorkbook: c })
4080
4119
  })
4081
4120
  });
4082
4121
  });
4083
- La.displayName = "CommandsWrapper";
4084
- var Ra = {
4085
- sort: X("studio:sortDialog", () => import("./CHqIzUemj2wQqlNO.mjs"), { tier: "common" }).load,
4086
- hyperlink: X("studio:hyperlinkDialog", () => import("./DRQzyIQfZQuviFBK.mjs"), { tier: "common" }).load,
4087
- comments: X("studio:commentsDialog", () => import("./Dg5qnLoncOqT-F5i.mjs"), { tier: "common" }).load,
4088
- find: X("studio:findReplaceWindow", () => import("./4zCEiqAUYE1FtC_Y.mjs"), { tier: "common" }).load,
4089
- tableNew: X("studio:tableNewDialog", () => import("./Bv0eMxh_ZN44Ikgp.mjs"), { tier: "common" }).load,
4090
- namedDetails: X("studio:namedReferenceDialog", () => import("./wqS-qBYe9-awT5Rr.mjs")).load,
4091
- insertFunction: X("studio:insertFunctionDialog", () => import("./S7-XfIxL3I5D5tDS.mjs"), { tier: "common" }).load,
4092
- resizeHeader: X("studio:resizeHeaderDialog", () => import("./OwfpYCy5lgrQ-16J.mjs")).load,
4093
- fillSeries: X("studio:fillSeriesDialog", () => import("./Dj2-pD6jM9SjbPfX.mjs")).load,
4094
- workbookStatistics: X("studio:workbookStatisticsDialog", () => import("./o8pQBbpRc03xny0J.mjs")).load,
4122
+ Va.displayName = "CommandsWrapper";
4123
+ var Ha = {
4124
+ sort: X("studio:sortDialog", () => import("./BlWsO6M15Ii13NrV.mjs"), { tier: "common" }).load,
4125
+ hyperlink: X("studio:hyperlinkDialog", () => import("./BGdZT1Ka4ohDCZpW.mjs"), { tier: "common" }).load,
4126
+ find: X("studio:findReplaceWindow", () => import("./D-JQOjmAh6Gk6wVM.mjs"), { tier: "common" }).load,
4127
+ tableNew: X("studio:tableNewDialog", () => import("./D8FEKUKVxH32duMx.mjs"), { tier: "common" }).load,
4128
+ namedDetails: X("studio:namedReferenceDialog", () => import("./27jPjqdDLWn5qbQ8.mjs")).load,
4129
+ insertFunction: X("studio:insertFunctionDialog", () => import("./aGoWX29-zbUaPh2U.mjs"), { tier: "common" }).load,
4130
+ resizeHeader: X("studio:resizeHeaderDialog", () => import("./D3b3dWTjvFd1Kj5g.mjs")).load,
4131
+ fillSeries: X("studio:fillSeriesDialog", () => import("./61ip_C1X9ls4svw6.mjs")).load,
4132
+ workbookStatistics: X("studio:workbookStatisticsDialog", () => import("./2_WF-hy6x4dXfEzW.mjs")).load,
4095
4133
  password: X("studio:passwordDialog", () => import("./index.mjs").then((e) => e.t)).load
4096
- }, za = ["find"], Ba = R((e) => {
4097
- let { children: t } = e, n = Ta(), r = n ? n.enqueueSnackbar : () => {}, i = n ? n.closeSnackbar : () => {}, a = H(/* @__PURE__ */ new Set()), o = H(null), s = H(null), [c, l] = U({
4134
+ }, Ua = ["find"], Wa = R((e) => {
4135
+ let { children: t } = e, n = ka(), r = n ? n.enqueueSnackbar : () => {}, i = n ? n.closeSnackbar : () => {}, a = H(/* @__PURE__ */ new Set()), o = H(null), s = H(null), [c, l] = U({
4098
4136
  label: null,
4099
4137
  progress: null
4100
- }), u = F(), d = Tn.EmptyObject, f = Wt(d), p = Kt(d), m = Ut(d), h = H(!1);
4138
+ }), u = F(), d = Dn.EmptyObject, f = Kt(d), p = Jt(d), m = Gt(d), h = H(!1);
4101
4139
  B(() => {
4102
4140
  if (h.current) return;
4103
4141
  h.current = !0;
4104
4142
  let e = window, t = e.requestIdleCallback ?? ((e) => setTimeout(e, 500)), n = e.cancelIdleCallback ?? clearTimeout, r = t(() => {
4105
- for (let e of za) f(e, Ra[e], { prewarm: !0 }).catch(() => {});
4143
+ for (let e of Ua) f(e, Ha[e], { prewarm: !0 }).catch(() => {});
4106
4144
  });
4107
4145
  return () => n(r);
4108
4146
  }, []);
4109
4147
  let g = H(/* @__PURE__ */ new Set());
4110
- return G(ct, {
4148
+ return G(ut, {
4111
4149
  notifier: V(() => {
4112
4150
  let e = (e, t) => {
4113
4151
  if (t?.onceKey) {
@@ -4116,14 +4154,14 @@ var Ra = {
4116
4154
  e.add(t.onceKey), g.current = e;
4117
4155
  }
4118
4156
  let n = {
4119
- variant: t?.type ?? ot.Info,
4157
+ variant: t?.type ?? ct.Info,
4120
4158
  anchorOrigin: {
4121
4159
  vertical: "top",
4122
4160
  horizontal: "center"
4123
4161
  },
4124
4162
  preventDuplicate: t?.preventDuplicate,
4125
- persist: t?.persist ?? t?.type === ot.Error,
4126
- action: (e) => W(cn, {
4163
+ persist: t?.persist ?? t?.type === ct.Error,
4164
+ action: (e) => W(dn, {
4127
4165
  onClick: () => i(e),
4128
4166
  children: W(N, { iconKey: "Cancel" })
4129
4167
  })
@@ -4137,8 +4175,8 @@ var Ra = {
4137
4175
  ...t,
4138
4176
  label: e
4139
4177
  });
4140
- let r = dt(() => {
4141
- a.current.delete(n) && (a.current.size > 0 || (Bt(o.current), s.current = null, l((e) => e.label === null && e.progress === null ? e : {
4178
+ let r = pt(() => {
4179
+ a.current.delete(n) && (a.current.size > 0 || (Ht(o.current), s.current = null, l((e) => e.label === null && e.progress === null ? e : {
4142
4180
  label: null,
4143
4181
  progress: null
4144
4182
  })));
@@ -4149,11 +4187,11 @@ var Ra = {
4149
4187
  progress: n
4150
4188
  });
4151
4189
  }, (e) => {
4152
- s.current = e, typeof e == "string" ? Ht(o.current, e) : l((t) => ({
4190
+ s.current = e, typeof e == "string" ? Wt(o.current, e) : l((t) => ({
4153
4191
  ...t,
4154
4192
  label: e
4155
4193
  }));
4156
- }), i = Ht(o.current, typeof e == "string" ? e : void 0);
4194
+ }), i = Wt(o.current, typeof e == "string" ? e : void 0);
4157
4195
  return i ? i.then(() => r) : r;
4158
4196
  },
4159
4197
  showWindow: (e, t) => {
@@ -4163,24 +4201,24 @@ var Ra = {
4163
4201
  onKeyDown: (e) => {
4164
4202
  e.isDefaultPrevented() || e.isPropagationStopped() || n?.onKeyDown?.(e);
4165
4203
  }
4166
- }, f(e, Ra[e], t);
4204
+ }, f(e, Ha[e], t);
4167
4205
  },
4168
4206
  showOptions: p,
4169
4207
  showInput: m,
4170
4208
  showError: (t) => {
4171
- let n, r = ot.Error, i = u("error.unknown");
4172
- typeof t == "string" ? i = t : t instanceof Error && (n = t, t.message && (i = u(t.message))), t instanceof An && (r = ot.Info), e(i, {
4209
+ let n, r = ct.Error, i = u("error.unknown");
4210
+ typeof t == "string" ? i = t : t instanceof Error && (n = t, t.message && (i = u(t.message))), t instanceof Mn && (r = ct.Info), e(i, {
4173
4211
  type: r,
4174
4212
  enqueueProps: { error: n }
4175
4213
  });
4176
4214
  }
4177
- }, n = new rt();
4215
+ }, n = new at();
4178
4216
  return n.setOverrides(t), n;
4179
4217
  }, [u]),
4180
- children: [V(() => W(Ot, {
4218
+ children: [V(() => W(At, {
4181
4219
  ref: o,
4182
4220
  autoStart: !1,
4183
- icon: W(kt, { sx: {
4221
+ icon: W(jt, { sx: {
4184
4222
  transform: "scale(0.7)",
4185
4223
  marginLeft: "-6px"
4186
4224
  } }),
@@ -4199,9 +4237,9 @@ var Ra = {
4199
4237
  }), [c.label, c.progress]), t]
4200
4238
  });
4201
4239
  });
4202
- Ba.displayName = "StudioNotifierProvider";
4203
- var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", Ha = R(L((e, t) => {
4204
- let { children: n, title: r, taskPanes: i, onSelect: a, selected: o, registry: s = De, style: c, iconsOnly: l, side: u = "right", className: d, ...f } = e, p = u !== "right", m = V(() => i.map((t) => {
4240
+ Wa.displayName = "StudioNotifierProvider";
4241
+ var Ga = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", Ka = R(L((e, t) => {
4242
+ let { children: n, title: r, taskPanes: i, onSelect: a, selected: o, registry: s = Oe, style: c, iconsOnly: l, side: u = "right", className: d, ...f } = e, p = u !== "right", m = V(() => i.map((t) => {
4205
4243
  let n = s.getRegisteredTaskPane(t);
4206
4244
  if (!n) return null;
4207
4245
  let r = n.getIcon?.();
@@ -4240,9 +4278,9 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
4240
4278
  })
4241
4279
  })
4242
4280
  });
4243
- return W(gn, {
4281
+ return W(vn, {
4244
4282
  value: t,
4245
- label: W(It, {
4283
+ label: W(Rt, {
4246
4284
  disableInteractive: !0,
4247
4285
  title: n.getTitle() ?? "",
4248
4286
  placement: "left-start",
@@ -4266,7 +4304,7 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
4266
4304
  minHeight: "0px",
4267
4305
  borderRadius: "4px"
4268
4306
  },
4269
- className: de("taskpane-strip-item", { "Mui-selected": i }),
4307
+ className: T("taskpane-strip-item", { "Mui-selected": i }),
4270
4308
  onClick: () => e.onSelect(t)
4271
4309
  }, t);
4272
4310
  }), [
@@ -4276,11 +4314,11 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
4276
4314
  s,
4277
4315
  p,
4278
4316
  l,
4279
- P()
4317
+ vt()
4280
4318
  ]);
4281
4319
  return W(K, {
4282
- ref: gt(t, () => ({ isTaskPaneStrip: () => !0 }), []),
4283
- className: V(() => de("taskpane-strip", d), [d]),
4320
+ ref: _t(t, () => ({ isTaskPaneStrip: () => !0 }), []),
4321
+ className: V(() => T("taskpane-strip", d), [d]),
4284
4322
  sx: {
4285
4323
  paddingLeft: p ? void 0 : "2px",
4286
4324
  paddingRight: p ? "2px" : void 0,
@@ -4288,7 +4326,7 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
4288
4326
  ...c
4289
4327
  },
4290
4328
  ...f,
4291
- children: W(_n, {
4329
+ children: W(yn, {
4292
4330
  orientation: "vertical",
4293
4331
  variant: "scrollable",
4294
4332
  value: o,
@@ -4306,10 +4344,10 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
4306
4344
  children: m
4307
4345
  })
4308
4346
  });
4309
- })), Ua = (e) => {
4347
+ })), qa = (e) => {
4310
4348
  let { title: t, icon: n, onClose: r, readOnly: i, focused: a, ...o } = e, s = H(null), c = F();
4311
- return W(rn, {
4312
- className: de({ "Mui-selected": a }),
4349
+ return W(on, {
4350
+ className: T({ "Mui-selected": a }),
4313
4351
  sx: {
4314
4352
  display: "flex",
4315
4353
  flex: "1 1 %0",
@@ -4323,8 +4361,8 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
4323
4361
  opacity: 1,
4324
4362
  transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
4325
4363
  },
4326
- backgroundColor: (e) => Sn(e.palette.action.hover, .03),
4327
- borderBottom: `solid ${Va} 1px`
4364
+ backgroundColor: (e) => wn(e.palette.action.hover, .03),
4365
+ borderBottom: `solid ${Ga} 1px`
4328
4366
  },
4329
4367
  ...o,
4330
4368
  children: G(K, {
@@ -4344,9 +4382,9 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
4344
4382
  paddingLeft: (e) => e.spacing(1)
4345
4383
  },
4346
4384
  children: t
4347
- }), W(Pt, {
4385
+ }), W(It, {
4348
4386
  label: c("taskPane.close"),
4349
- children: W(cn, {
4387
+ children: W(dn, {
4350
4388
  "aria-label": "close",
4351
4389
  sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
4352
4390
  touchRippleRef: s,
@@ -4361,19 +4399,19 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
4361
4399
  })]
4362
4400
  })
4363
4401
  });
4364
- }, Wa = L((e, t) => {
4365
- let { model: n, side: r, ...i } = e, a = wn();
4366
- return W(Pe, {
4402
+ }, Ja = L((e, t) => {
4403
+ let { model: n, side: r, ...i } = e, a = En();
4404
+ return W(Fe, {
4367
4405
  model: n,
4368
4406
  ref: t,
4369
4407
  propsFrame: { style: {
4370
- border: `solid ${Va} 1px`,
4408
+ border: `solid ${Ga} 1px`,
4371
4409
  borderRadius: `${a.shape.borderRadius ?? 4}px`,
4372
4410
  marginBottom: `${a.spacing?.(.5) ?? 4}px`
4373
4411
  } },
4374
4412
  alwaysShowStrip: !0,
4375
- componentTitle: Ua,
4376
- componentStrip: Ha,
4413
+ componentTitle: qa,
4414
+ componentStrip: Ka,
4377
4415
  side: r,
4378
4416
  ...e,
4379
4417
  onOpen: () => {
@@ -4384,14 +4422,14 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
4384
4422
  },
4385
4423
  ...i
4386
4424
  });
4387
- }), Ga = "_styled-resizer_fdl5y_3", Ka = {}, qa = {
4425
+ }), Ya = "_styled-resizer_fdl5y_3", Xa = {}, Za = {
4388
4426
  flex: "1 1 100%",
4389
4427
  display: "flex",
4390
4428
  boxSizing: "border-box"
4391
- }, Ja = R(L((e, t) => {
4392
- let { mainElement: n, sidebarElement: r, position: i, persistKey: a, onPositionChange: o, className: s, style: c, taskSide: l = "right", ...u } = e, [d, f] = vt(a ?? null, Ka), p = wn(), [m, { width: h }] = fe(), g = h > 530 || h === 0, _ = H(null), v, y, b = null, x = 4, S = 13;
4429
+ }, Qa = R(L((e, t) => {
4430
+ let { mainElement: n, sidebarElement: r, position: i, persistKey: a, onPositionChange: o, className: s, style: c, taskSide: l = "right", ...u } = e, [d, f] = bt(a ?? null, Xa), p = En(), [m, { width: h }] = pe(), g = h > 530 || h === 0, _ = H(null), v, y, b = null, x = 4, S = 13;
4393
4431
  g ? b = "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" : (b = "M 1.59991,3.62619 C 0.71626,3.62619 0,2.90992 0,2.02628 0,1.1426301 0.71626,0.42623015 1.59991,0.42623015 c 0.88365,0 1.6000508,0.71639995 1.6000508,1.60004985 0,0.88364 -0.7164008,1.59991 -1.6000508,1.59991 m 4.881294,0 c -0.88364,0 -1.60004,-0.71627 -1.60004,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60004,-1.60004985 0.88365,0 1.60005,0.71639995 1.60005,1.60004985 0,0.88364 -0.7164,1.59991 -1.60005,1.59991 m 4.881226,0 c -0.88365,0 -1.60005,-0.71627 -1.60005,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60005,-1.60004985 0.88365,0 1.59991,0.71639995 1.59991,1.60004985 0,0.88364 -0.71626,1.59991 -1.59991,1.59991", x = 13, S = 4);
4394
- let C, w = n, T = r, ee = l !== "right", te = g ? "row" : "column", ne = ee && T ? "before" : "after", ie = `${te}:${ne}`, ae = a ? d[ie] : void 0, oe = ae == null ? ((e, t) => {
4432
+ let C, w = n, ee = r, te = l !== "right", ne = g ? "row" : "column", re = te && ee ? "before" : "after", ie = `${ne}:${re}`, ae = a ? d[ie] : void 0, oe = ae == null ? ((e, t) => {
4395
4433
  if (e == null) return "40%";
4396
4434
  if (typeof e == "number" || typeof e == "string") return e;
4397
4435
  let n = e[t];
@@ -4401,12 +4439,12 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
4401
4439
  ...t,
4402
4440
  [ie]: e.percent
4403
4441
  })), o?.(e, {
4404
- orientation: te,
4405
- side: ne,
4442
+ orientation: ne,
4443
+ side: re,
4406
4444
  key: ie
4407
4445
  });
4408
4446
  } : void 0;
4409
- return ee && T ? (w = r, T = n, y = { style: {
4447
+ return te && ee ? (w = r, ee = n, y = { style: {
4410
4448
  flexDirection: "column",
4411
4449
  boxSizing: "border-box",
4412
4450
  paddingRight: "2px"
@@ -4426,51 +4464,51 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
4426
4464
  position: oe,
4427
4465
  minAfter: g ? "280px" : "120px",
4428
4466
  splitDirection: g ? "row" : "column"
4429
- }), W(lt, {
4430
- ref: re([
4467
+ }), W(dt, {
4468
+ ref: ce([
4431
4469
  _,
4432
4470
  m,
4433
4471
  t
4434
4472
  ]),
4435
4473
  className: s,
4436
4474
  style: c ? {
4437
- ...qa,
4475
+ ...Za,
4438
4476
  ...c
4439
- } : qa,
4477
+ } : Za,
4440
4478
  ...u,
4441
4479
  ...C,
4442
4480
  onPositionChange: se,
4443
4481
  propsResizer: {
4444
- className: de("styled-resizer", Ga),
4482
+ className: T("styled-resizer", Ya),
4445
4483
  style: {
4446
4484
  minWidth: g ? "7px" : void 0,
4447
4485
  minHeight: g ? void 0 : "6px",
4448
4486
  maskImage: `url("data:image/svg+xml,%3Csvg width='${x}' height='${S}' viewBox='0 0 ${x} ${S}' version='1.1' fill='${p.palette.text.icon ?? p.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${b}' /%3E%3C/svg%3E%0A")`,
4449
4487
  maskRepeat: "no-repeat",
4450
- maskPosition: ee ? g ? "center center" : "bottom center" : g ? "left center" : "top center"
4488
+ maskPosition: te ? g ? "center center" : "bottom center" : g ? "left center" : "top center"
4451
4489
  }
4452
4490
  },
4453
4491
  elementBefore: w,
4454
4492
  propsPaneBefore: v,
4455
- elementAfter: T,
4493
+ elementAfter: ee,
4456
4494
  propsPaneAfter: y
4457
4495
  });
4458
4496
  }));
4459
- Ja.displayName = "StudioSplitPane";
4460
- var Ya = E.BuiltInSelectorNames, Xa = {
4461
- [Ya.Whole]: "FormulaMathTrig",
4462
- [Ya.Number]: "IncreaseDecimal",
4463
- [Ya.List]: "Menu",
4464
- [Ya.Date]: "FormulaDateTime",
4465
- [Ya.DateTime]: "FormulaDateTime",
4466
- [Ya.Time]: "FormulaDateTime",
4467
- [Ya.TextLength]: "FormulaText"
4468
- }, Za = (e) => {
4497
+ Qa.displayName = "StudioSplitPane";
4498
+ var $a = E.BuiltInSelectorNames, eo = {
4499
+ [$a.Whole]: "FormulaMathTrig",
4500
+ [$a.Number]: "IncreaseDecimal",
4501
+ [$a.List]: "Menu",
4502
+ [$a.Date]: "FormulaDateTime",
4503
+ [$a.DateTime]: "FormulaDateTime",
4504
+ [$a.Time]: "FormulaDateTime",
4505
+ [$a.TextLength]: "FormulaText"
4506
+ }, to = (e) => {
4469
4507
  let t = e.getCondition();
4470
4508
  if (!t) return "DataValidation";
4471
4509
  let n = t.toJSON();
4472
- return n.operator === E.BuiltInOperatorNames.Expression ? "FormulaCustom" : typeof n.selector == "string" && Xa[n.selector] || "DataValidation";
4473
- }, Qa = R(({ dataValidation: e, size: t = 28 }) => (Ye(e, "onAnyChange"), W(m, {
4510
+ return n.operator === E.BuiltInOperatorNames.Expression ? "FormulaCustom" : typeof n.selector == "string" && eo[n.selector] || "DataValidation";
4511
+ }, no = R(({ dataValidation: e, size: t = 28 }) => (Xe(e, "onAnyChange"), W(h, {
4474
4512
  className: "sxl-dv-icon",
4475
4513
  sx: {
4476
4514
  width: "auto",
@@ -4478,13 +4516,13 @@ var Ya = E.BuiltInSelectorNames, Xa = {
4478
4516
  height: `${t}px`
4479
4517
  },
4480
4518
  children: W(N, {
4481
- iconKey: Za(e),
4519
+ iconKey: to(e),
4482
4520
  size: Math.round(.6 * t),
4483
4521
  ariaHidden: !0
4484
4522
  })
4485
4523
  })));
4486
- Qa.displayName = "DataValidationIcon";
4487
- var $a = (e, t) => {
4524
+ no.displayName = "DataValidationIcon";
4525
+ var ro = (e, t) => {
4488
4526
  let n = e.getCondition();
4489
4527
  if (!n) return t("dataValidation.anyValue");
4490
4528
  let r = n.toJSON();
@@ -4498,15 +4536,15 @@ var $a = (e, t) => {
4498
4536
  if (typeof e == "string") return t("dataValidation.titleListFrom", { source: e });
4499
4537
  }
4500
4538
  return n.toString();
4501
- }, eo = {
4502
- [ye.AlertStyle.Stop]: "ValidationStop",
4503
- [ye.AlertStyle.Warning]: "ValidationWarning",
4504
- [ye.AlertStyle.Information]: "ValidationInformation"
4505
- }, to = {
4506
- [ye.AlertStyle.Stop]: Z("dataValidation.alertStop"),
4507
- [ye.AlertStyle.Warning]: Z("dataValidation.alertWarning"),
4508
- [ye.AlertStyle.Information]: Z("dataValidation.alertInformation")
4509
- }, no = ({ checked: e, onCheckedChange: t, label: n, readOnly: r, children: i }) => G(Jt, {
4539
+ }, io = {
4540
+ [O.AlertStyle.Stop]: "ValidationStop",
4541
+ [O.AlertStyle.Warning]: "ValidationWarning",
4542
+ [O.AlertStyle.Information]: "ValidationInformation"
4543
+ }, ao = {
4544
+ [O.AlertStyle.Stop]: Z("dataValidation.alertStop"),
4545
+ [O.AlertStyle.Warning]: Z("dataValidation.alertWarning"),
4546
+ [O.AlertStyle.Information]: Z("dataValidation.alertInformation")
4547
+ }, oo = ({ checked: e, onCheckedChange: t, label: n, readOnly: r, children: i }) => G(Xt, {
4510
4548
  expanded: e,
4511
4549
  onChange: (e, n) => {
4512
4550
  r || t(n);
@@ -4525,15 +4563,15 @@ var $a = (e, t) => {
4525
4563
  mb: 1
4526
4564
  }
4527
4565
  },
4528
- children: [W(Xt, {
4566
+ children: [W(Qt, {
4529
4567
  expandIcon: W(N, { iconKey: "ExpandMore" }),
4530
4568
  sx: {
4531
4569
  px: 2,
4532
4570
  "& .MuiAccordionSummary-content": { my: 0 },
4533
4571
  "&.Mui-expanded .MuiAccordionSummary-content": { my: 0 }
4534
4572
  },
4535
- children: W(on, {
4536
- control: W(en, {
4573
+ children: W(ln, {
4574
+ control: W(nn, {
4537
4575
  checked: e,
4538
4576
  disabled: r,
4539
4577
  onChange: (e) => {
@@ -4544,7 +4582,7 @@ var $a = (e, t) => {
4544
4582
  label: n,
4545
4583
  onClick: (e) => e.stopPropagation()
4546
4584
  })
4547
- }), W(Yt, {
4585
+ }), W(Zt, {
4548
4586
  sx: {
4549
4587
  pl: 2,
4550
4588
  pr: 2,
@@ -4556,12 +4594,12 @@ var $a = (e, t) => {
4556
4594
  },
4557
4595
  children: i
4558
4596
  })]
4559
- }), ro = R((e) => {
4597
+ }), so = R((e) => {
4560
4598
  let { dataValidation: t } = e, n = F();
4561
- Ye(t, "onAnyChange");
4562
- let r = t.isProtected(), i = t.getRenderHints().includes("list"), a = G(fn, {
4599
+ Xe(t, "onAnyChange");
4600
+ let r = t.isProtected(), i = t.getRenderHints().includes("list"), a = G(hn, {
4563
4601
  tabIndex: 0,
4564
- className: l["editor-panel"],
4602
+ className: ae["editor-panel"],
4565
4603
  sx: {
4566
4604
  gap: (e) => e.spacing(1),
4567
4605
  paddingTop: (e) => e.spacing(1.25),
@@ -4587,7 +4625,7 @@ var $a = (e, t) => {
4587
4625
  alignItems: "center",
4588
4626
  gap: (e) => e.spacing(1.5)
4589
4627
  },
4590
- children: [W(Qa, {
4628
+ children: [W(no, {
4591
4629
  dataValidation: t,
4592
4630
  size: 48
4593
4631
  }), W(Y, {
@@ -4596,14 +4634,14 @@ var $a = (e, t) => {
4596
4634
  minWidth: 0,
4597
4635
  wordBreak: "break-word"
4598
4636
  },
4599
- children: $a(t, n)
4637
+ children: ro(t, n)
4600
4638
  })]
4601
- }), W(b, {
4639
+ }), W(y, {
4602
4640
  item: t,
4603
4641
  label: n("dataValidation.applyTo")
4604
4642
  })]
4605
4643
  }),
4606
- W(hr, {
4644
+ W(yr, {
4607
4645
  selectorTitle: n("dataValidation.allow"),
4608
4646
  showIncludeBlanks: !0,
4609
4647
  condition: t.getCondition(),
@@ -4625,8 +4663,8 @@ var $a = (e, t) => {
4625
4663
  borderColor: "divider",
4626
4664
  borderRadius: 1
4627
4665
  },
4628
- children: W(on, {
4629
- control: W(en, {
4666
+ children: W(ln, {
4667
+ control: W(nn, {
4630
4668
  checked: !t.isHideDropdown(),
4631
4669
  disabled: r,
4632
4670
  onChange: (e) => t.setHideDropdown(!e.target.checked)
@@ -4634,12 +4672,12 @@ var $a = (e, t) => {
4634
4672
  label: n("dataValidation.inCellDropdown")
4635
4673
  })
4636
4674
  }),
4637
- G(no, {
4675
+ G(oo, {
4638
4676
  checked: t.isShowPromptMessage(),
4639
4677
  onCheckedChange: (e) => t.setShowPromptMessage(e),
4640
4678
  label: n("dataValidation.prompt"),
4641
4679
  readOnly: r,
4642
- children: [W(vn, {
4680
+ children: [W(bn, {
4643
4681
  size: "small",
4644
4682
  label: n("dataValidation.title"),
4645
4683
  value: t.getPromptTitle(),
@@ -4648,7 +4686,7 @@ var $a = (e, t) => {
4648
4686
  fullWidth: !0,
4649
4687
  slotProps: { htmlInput: { maxLength: 32 } },
4650
4688
  sx: { backgroundColor: "background.paper" }
4651
- }), W(vn, {
4689
+ }), W(bn, {
4652
4690
  size: "small",
4653
4691
  label: n("dataValidation.message"),
4654
4692
  value: t.getPromptMessage(),
@@ -4661,18 +4699,18 @@ var $a = (e, t) => {
4661
4699
  sx: { backgroundColor: "background.paper" }
4662
4700
  })]
4663
4701
  }),
4664
- G(no, {
4702
+ G(oo, {
4665
4703
  checked: t.isShowAlertMessage(),
4666
4704
  onCheckedChange: (e) => t.setShowAlertMessage(e),
4667
4705
  label: n("dataValidation.alert"),
4668
4706
  readOnly: r,
4669
4707
  children: [
4670
- G(q, {
4708
+ G(cn, {
4671
4709
  fullWidth: !0,
4672
4710
  size: "small",
4673
4711
  disabled: r,
4674
4712
  sx: { backgroundColor: "background.paper" },
4675
- children: [W(ln, { children: n("dataValidation.alertStyle") }), W(mn, {
4713
+ children: [W(fn, { children: n("dataValidation.alertStyle") }), W(J, {
4676
4714
  value: t.getAlertStyle(),
4677
4715
  label: n("dataValidation.alertStyle"),
4678
4716
  onChange: (e) => t.setAlertStyle(e.target.value),
@@ -4683,23 +4721,23 @@ var $a = (e, t) => {
4683
4721
  gap: 1
4684
4722
  },
4685
4723
  children: [W(N, {
4686
- iconKey: eo[e],
4724
+ iconKey: io[e],
4687
4725
  size: 18,
4688
4726
  ariaHidden: !0
4689
- }), n(to[e])]
4727
+ }), n(ao[e])]
4690
4728
  }),
4691
- children: Object.keys(eo).map((e) => G(J, {
4729
+ children: Object.keys(io).map((e) => G(q, {
4692
4730
  value: e,
4693
4731
  sx: { gap: 1 },
4694
4732
  children: [W(N, {
4695
- iconKey: eo[e],
4733
+ iconKey: io[e],
4696
4734
  size: 18,
4697
4735
  ariaHidden: !0
4698
- }), n(to[e])]
4736
+ }), n(ao[e])]
4699
4737
  }, e))
4700
4738
  })]
4701
4739
  }),
4702
- W(vn, {
4740
+ W(bn, {
4703
4741
  size: "small",
4704
4742
  label: n("dataValidation.title"),
4705
4743
  value: t.getAlertTitle(),
@@ -4709,7 +4747,7 @@ var $a = (e, t) => {
4709
4747
  slotProps: { htmlInput: { maxLength: 32 } },
4710
4748
  sx: { backgroundColor: "background.paper" }
4711
4749
  }),
4712
- W(vn, {
4750
+ W(bn, {
4713
4751
  size: "small",
4714
4752
  label: n("dataValidation.message"),
4715
4753
  value: t.getAlertMessage(),
@@ -4725,13 +4763,13 @@ var $a = (e, t) => {
4725
4763
  })
4726
4764
  ]
4727
4765
  });
4728
- return W(Fn.Provider, {
4766
+ return W(Ln.Provider, {
4729
4767
  value: t,
4730
4768
  children: a
4731
4769
  });
4732
4770
  });
4733
- ro.displayName = "DataValidationEditorPanel";
4734
- var io = ({ children: e }) => W(K, {
4771
+ so.displayName = "DataValidationEditorPanel";
4772
+ var co = ({ children: e }) => W(K, {
4735
4773
  sx: {
4736
4774
  display: "inline-flex",
4737
4775
  alignItems: "center",
@@ -4746,27 +4784,27 @@ var io = ({ children: e }) => W(K, {
4746
4784
  variant: "caption",
4747
4785
  children: e
4748
4786
  })
4749
- }), ao = R(({ item: e }) => {
4787
+ }), lo = R(({ item: e }) => {
4750
4788
  let t = F();
4751
- Ye(e, "onAnyChange");
4789
+ Xe(e, "onAnyChange");
4752
4790
  let n = [];
4753
- return e.isShowPromptMessage() && e.getPromptTitle() && n.push(t("dataValidation.promptPrefix", { title: e.getPromptTitle() })), e.getCondition() && (e.isShowAlertMessage() ? e.getAlertStyle() === ye.AlertStyle.Warning ? n.push(t("dataValidation.alertWarning")) : e.getAlertStyle() === ye.AlertStyle.Information && n.push(t("dataValidation.alertInformation")) : n.push(t("dataValidation.badgeNoAlert"))), e.isHideDropdown() && e.getRenderHints().includes("list") && n.push(t("dataValidation.badgeDropdownHidden")), n.length === 0 ? null : W(K, {
4791
+ return e.isShowPromptMessage() && e.getPromptTitle() && n.push(t("dataValidation.promptPrefix", { title: e.getPromptTitle() })), e.getCondition() && (e.isShowAlertMessage() ? e.getAlertStyle() === O.AlertStyle.Warning ? n.push(t("dataValidation.alertWarning")) : e.getAlertStyle() === O.AlertStyle.Information && n.push(t("dataValidation.alertInformation")) : n.push(t("dataValidation.badgeNoAlert"))), e.isHideDropdown() && e.getRenderHints().includes("list") && n.push(t("dataValidation.badgeDropdownHidden")), n.length === 0 ? null : W(K, {
4754
4792
  sx: {
4755
4793
  display: "flex",
4756
4794
  flexWrap: "wrap",
4757
4795
  gap: .5
4758
4796
  },
4759
- children: n.map((e, t) => W(io, { children: e }, t))
4797
+ children: n.map((e, t) => W(co, { children: e }, t))
4760
4798
  });
4761
4799
  });
4762
- ao.displayName = "DataValidationCardBody";
4763
- var oo = R(({ item: e }) => W(b, {
4800
+ lo.displayName = "DataValidationCardBody";
4801
+ var uo = R(({ item: e }) => W(y, {
4764
4802
  item: e,
4765
4803
  label: F()("dataValidation.applyTo"),
4766
4804
  helperText: null
4767
4805
  }));
4768
- oo.displayName = "DataValidationCardRanges";
4769
- var so = {
4806
+ uo.displayName = "DataValidationCardRanges";
4807
+ var fo = {
4770
4808
  key: "data-validation",
4771
4809
  messageKeys: {
4772
4810
  none: Z("dataValidation.none"),
@@ -4788,54 +4826,55 @@ var so = {
4788
4826
  applyUpdate: (e, t) => {
4789
4827
  e.update(t);
4790
4828
  },
4829
+ validate: (e) => e.getCondition()?.validate() ?? null,
4791
4830
  applyNewDefaults: (e) => {
4792
4831
  e.update({
4793
- alertStyle: ye.AlertStyle.Stop,
4832
+ alertStyle: O.AlertStyle.Stop,
4794
4833
  showAlertMessage: !0
4795
4834
  });
4796
4835
  },
4797
4836
  applySeed: (e, t) => {
4798
4837
  e.update(t);
4799
4838
  },
4800
- getCardTitle: $a,
4801
- CardMedia: ({ item: e }) => W(Qa, {
4839
+ getCardTitle: ro,
4840
+ CardMedia: ({ item: e }) => W(no, {
4802
4841
  dataValidation: e,
4803
4842
  size: 32
4804
4843
  }),
4805
- CardSubtitle: oo,
4806
- CardBody: ao,
4807
- EditorBody: ({ item: e }) => W(ro, { dataValidation: e })
4808
- }, co = R(L((e, t) => {
4844
+ CardSubtitle: uo,
4845
+ CardBody: lo,
4846
+ EditorBody: ({ item: e }) => W(so, { dataValidation: e })
4847
+ }, po = R(L((e, t) => {
4809
4848
  let { workbook: n, args: r, ...i } = e;
4810
- return W(o, {
4849
+ return W(c, {
4811
4850
  ref: t,
4812
4851
  workbook: n,
4813
- descriptor: so,
4852
+ descriptor: fo,
4814
4853
  args: r,
4815
4854
  dragReorder: !0,
4816
4855
  ...i
4817
4856
  });
4818
4857
  }));
4819
- co.displayName = "DataValidationDetailsPanel", ae(), nt.register("plugin-table", { icons: {} }), De.registerTaskPane({
4858
+ po.displayName = "DataValidationDetailsPanel", w(), it.register("plugin-table", { icons: {} }), Oe.registerTaskPane({
4820
4859
  key: "dataValidationDetails",
4821
4860
  getTitle: () => "Data Validation",
4822
4861
  getIcon: () => "DataValidation",
4823
4862
  component: (e) => {
4824
4863
  let { model: t, entryKey: n, frame: r, args: i, ref: a, ...o } = e;
4825
- return W(co, {
4864
+ return W(po, {
4826
4865
  ref: a,
4827
4866
  workbook: t,
4828
4867
  args: i,
4829
4868
  ...o
4830
4869
  });
4831
4870
  }
4832
- }, !0), De.registerTaskPane({
4871
+ }, !0), Oe.registerTaskPane({
4833
4872
  key: "conditionalFormatDetails",
4834
4873
  getTitle: () => "Conditional Formatting",
4835
4874
  getIcon: () => "FormatPaint",
4836
- component: Yr
4837
- }, !0), C(), te(), ce(), le(), n();
4838
- var lo = () => {
4875
+ component: $r
4876
+ }, !0), S(), re(), ue(), de(), i();
4877
+ var mo = () => {
4839
4878
  let e, t, n = new Promise((n, r) => {
4840
4879
  e = n, t = r;
4841
4880
  }), r = {
@@ -4849,62 +4888,62 @@ var lo = () => {
4849
4888
  }
4850
4889
  };
4851
4890
  return n.catch(() => {}), r;
4852
- }, uo = (e, t) => {
4891
+ }, ho = (e, t) => {
4853
4892
  if (!e) return {};
4854
4893
  let { colorSchemes: n, ...r } = e, i = n?.[t ? "dark" : "light"];
4855
- return i && typeof i == "object" ? Tn.deepMerge(r, i) : r;
4856
- }, fo = "taskPanePosition", po = R(L((e, t) => {
4857
- let { host: n, scopeClass: r, square: i, elevation: a, variant: o, onWorkbookLoad: s, onDocumentError: c, renderDocumentError: l = S, propsDocumentError: u, propsTaskPaneArea: d, renderTaskPaneArea: f = mo, taskPaneSide: p = "right", onKeyDown: m, workbook: g, onWorkbookChange: _, logo: v, topLeft: y, topRight: b, muiTheme: C, tokens: T, cssBaseline: te, autoFocus: ae = !1, title: se, onDirtyChange: ce, propsDocumentTitle: le, renderDocumentLoading: ue = oe, propsDocumentLoading: de, propsWorkbook: fe, showFormulaBar: pe, propsFormulaBar: me, renderFormulaBar: he, editable: ge, showStatusBar: _e, propsStatusBar: ve, renderStatusBar: E, propsToolbar: D, renderToolbar: ye } = e, O = H(null), be = H(null), xe = H(null), Se = pt(() => {
4894
+ return i && typeof i == "object" ? Dn.deepMerge(r, i) : r;
4895
+ }, go = "taskPanePosition", _o = R(L((t, n) => {
4896
+ let { host: r, scopeClass: i, square: a, elevation: o, variant: s, onWorkbookLoad: c, onDocumentError: l, renderDocumentError: u = x, propsDocumentError: d, propsTaskPaneArea: f, renderTaskPaneArea: p = vo, taskPaneSide: m = "right", onKeyDown: h, workbook: g, onWorkbookChange: _, logo: v, topLeft: y, topRight: S, muiTheme: w, tokens: ee, cssBaseline: te, autoFocus: re = !1, title: ae, onDirtyChange: le, propsDocumentTitle: ue, renderDocumentLoading: de = se, propsDocumentLoading: fe, propsWorkbook: T, showFormulaBar: pe, propsFormulaBar: me, renderFormulaBar: he, editable: ge, showStatusBar: _e, propsStatusBar: ve, renderStatusBar: ye, propsToolbar: E, renderToolbar: D } = t, O = H(null), be = H(null), xe = H(null), Se = ht(() => {
4858
4897
  xe.current?.getNamedCollectionEditorElement?.()?.focus?.();
4859
- }, []), Ce = pt(c ?? (() => {}), [c]), we = pt(ce ?? (() => {}), [ce]), Te = le?.placeHolder, [Ee] = vt(Ie.Mode, void 0), { themeMode: De } = yt({ mode: Ee ?? void 0 }), [Oe] = vt(at.Active, null), ke = H(Oe);
4898
+ }, []), Ce = ht(l ?? (() => {}), [l]), we = ht(le ?? (() => {}), [le]), Te = ue?.placeHolder, [Ee] = bt(Re.Mode, Le[Re.Mode]), { themeMode: De } = xt({ mode: Ee ?? void 0 }), [Oe] = bt(st.Active, null), ke = H(Oe);
4860
4899
  ke.current = Oe;
4861
- let Ae = bt(), je = V(() => ({
4862
- light: Rt(!1, Tn.deepMerge(uo(C, !1), h(Ae?.light))),
4863
- dark: Rt(!0, Tn.deepMerge(uo(C, !0), h(Ae?.dark)))
4900
+ let Ae = St(), je = V(() => ({
4901
+ light: Bt(!1, Dn.deepMerge(ho(w, !1), e(Ae?.light))),
4902
+ dark: Bt(!0, Dn.deepMerge(ho(w, !0), e(Ae?.dark)))
4864
4903
  }), [
4865
- C,
4904
+ w,
4866
4905
  Ae?.light,
4867
4906
  Ae?.dark
4868
- ]), Me = De === "dark", Ne = V(() => x(je.light, je.dark, `.${r}`, T), [
4907
+ ]), Me = De === "dark", Ne = V(() => b(je.light, je.dark, `.${i}`, ee), [
4869
4908
  je,
4870
- r,
4871
- T
4872
- ]), Pe = V(() => Re("sxl-defaults", `.${r}`), [r]), Ve = Je(), [He, Ue] = U(() => g ?? null);
4909
+ i,
4910
+ ee
4911
+ ]), Pe = V(() => Be("sxl-defaults", `.${i}`), [i]), Fe = Ye(), [Ue, We] = U(() => g ?? null);
4873
4912
  B(() => {
4874
- Ue(g ?? null);
4913
+ We(g ?? null);
4875
4914
  }, [g]);
4876
- let [We, Ge] = U(0), Ke = H(null);
4877
- Ke.current ||= lo();
4878
- let qe = Ze(He, {
4915
+ let [Ge, Ke] = U(0), qe = H(null);
4916
+ qe.current ||= mo();
4917
+ let Je = Qe(Ue, {
4879
4918
  io: k,
4880
- defaultTheme: Ve.getDefaultTheme(),
4881
- reloadKey: We
4882
- }), A = qe.status === "loaded" ? qe.workbook : null, j = V(() => qe.status === "error" ? {
4919
+ defaultTheme: Fe.getDefaultTheme(),
4920
+ reloadKey: Ge
4921
+ }), A = Je.status === "loaded" ? Je.workbook : null, j = V(() => Je.status === "error" ? {
4883
4922
  status: "error",
4884
- error: qe.error
4885
- } : qe.status === "loaded" ? {
4923
+ error: Je.error
4924
+ } : Je.status === "loaded" ? {
4886
4925
  status: "loaded",
4887
- workbook: qe.workbook
4888
- } : { status: "loading" }, [qe]);
4926
+ workbook: Je.workbook
4927
+ } : { status: "loading" }, [Je]);
4889
4928
  B(() => {
4890
- Ke.current.settled && (Ke.current = lo());
4891
- }, [He, We]), B(() => {
4892
- j.status === "loaded" ? Ke.current.resolve(j.workbook) : j.status === "error" && (Ce?.(j.error), Ke.current.reject(j.error));
4929
+ qe.current.settled && (qe.current = mo());
4930
+ }, [Ue, Ge]), B(() => {
4931
+ j.status === "loaded" ? qe.current.resolve(j.workbook) : j.status === "error" && (Ce?.(j.error), qe.current.reject(j.error));
4893
4932
  }, [j]);
4894
- let [M, rt] = U(null);
4895
- A && !M && rt(A);
4896
- let it = A && M && A !== M ? A : null, ot = H(it);
4897
- ot.current = it;
4933
+ let [M, nt] = U(null);
4934
+ A && !M && nt(A);
4935
+ let at = A && M && A !== M ? A : null, ot = H(at);
4936
+ ot.current = at;
4898
4937
  let ct = H(M);
4899
4938
  ct.current = M;
4900
- let lt = H([]), dt = z((e) => {
4939
+ let ut = H([]), dt = z((e) => {
4901
4940
  let t = ct.current;
4902
- t && lt.current.push(t), Ue(e);
4941
+ t && ut.current.push(t), We(e);
4903
4942
  }, []);
4904
4943
  B(() => {
4905
- let e = lt.current;
4944
+ let e = ut.current;
4906
4945
  if (e.length !== 0) {
4907
- lt.current = e.filter((e) => e === M);
4946
+ ut.current = e.filter((e) => e === M);
4908
4947
  for (let t = 0; t < e.length; t++) {
4909
4948
  let n = e[t];
4910
4949
  if (n !== M) try {
@@ -4915,8 +4954,8 @@ var lo = () => {
4915
4954
  }
4916
4955
  }
4917
4956
  }, [M]);
4918
- let ft = ge ? null : M, mt = Xe(), ht = V(() => ft ? ze(ft.getSelectedSheet(), { referenceMode: mt }) : null, [ft, mt]), P = ge ?? ht, _t = H(P);
4919
- _t.current = P, B(() => {
4957
+ let pt = ge ? null : M, mt = Ze(), gt = V(() => pt ? Ve(pt.getSelectedSheet(), { referenceMode: mt }) : null, [pt, mt]), P = ge ?? gt, vt = H(P);
4958
+ vt.current = P, B(() => {
4920
4959
  if (!P) return;
4921
4960
  let e = P.getSession();
4922
4961
  return P.subscribe(() => {
@@ -4924,77 +4963,77 @@ var lo = () => {
4924
4963
  e = P.getSession(), t && !e && t.getActiveEditorId() === "formula-bar" && xe.current?.contains?.(document.activeElement) && O.current?.focus();
4925
4964
  });
4926
4965
  }, [P]);
4927
- let F = $e(M), { isDirty: I, saveState: xt } = et(M, k), St = Qe(M), Ct = H(xt), wt = H(null);
4928
- Ct.current = xt;
4929
- let L = z(() => Ct.current?.isDirty() ?? !1, []), Tt = H(j);
4930
- Tt.current = j;
4931
- let [R, Et] = U(null), Dt = se ?? le?.title, [Ot, kt] = U(null);
4966
+ let yt = et(M), { isDirty: F, saveState: I } = tt(M, k), Ct = $e(M), wt = H(I), Tt = H(null);
4967
+ wt.current = I;
4968
+ let Et = z(() => wt.current?.isDirty() ?? !1, []), L = H(j);
4969
+ L.current = j;
4970
+ let [Dt, R] = U(null), Ot = ae ?? ue?.title, [kt, At] = U(null);
4932
4971
  B(() => {
4933
- kt(null);
4972
+ At(null);
4934
4973
  }, [M]);
4935
- let Mt = Dt ?? Ot ?? F ?? "";
4974
+ let jt = Ot ?? kt ?? yt ?? "";
4936
4975
  B(() => {
4937
- we?.(I);
4938
- }, [I]);
4939
- let Nt = pt(_ ?? (() => {}), [_]);
4976
+ we?.(F);
4977
+ }, [F]);
4978
+ let Pt = ht(_ ?? (() => {}), [_]);
4940
4979
  B(() => {
4941
- Nt?.(A);
4980
+ Pt?.(A);
4942
4981
  }, [A]);
4943
- let Pt = H(A);
4944
- Pt.current = A, Ye(M, "onViewChange");
4945
- let It = V(() => W(At, {
4982
+ let Ft = H(A);
4983
+ Ft.current = A, Xe(M, "onViewChange");
4984
+ let It = V(() => W(Mt, {
4946
4985
  groupKey: "helpOptions",
4947
4986
  disableHover: !0,
4948
4987
  sx: { padding: "0" },
4949
4988
  propsButton: { sx: { maxHeight: "22px" } }
4950
- }), []), [Lt, zt] = U(null), Bt = z((e) => {
4989
+ }), []), [Rt, zt] = U(null), Vt = z((e) => {
4951
4990
  zt(e);
4952
4991
  }, []);
4953
4992
  B(() => {
4954
- nt.prefetch().catch((e) => {
4993
+ it.prefetch().catch((e) => {
4955
4994
  console.warn("Icons could not be loaded:", e);
4956
4995
  });
4957
4996
  }, []);
4958
- let Vt = H(null);
4959
- Vt.current ||= lo();
4960
- let Ht = H(null), Ut = z(() => Ht.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? Vt.current.promise, []), Wt = pt(async (e) => {
4997
+ let Ht = H(null);
4998
+ Ht.current ||= mo();
4999
+ let Ut = H(null), Wt = z(() => Ut.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? Ht.current.promise, []), Gt = ht(async (e) => {
4961
5000
  let t = ke.current;
4962
- t && t !== Dn.getActive() && await Dn.setActive(t), await tt.DefaultCommandCatalogService.prefetch(t ?? void 0), Et(e), Ht.current = e.source, Vt.current.settled || Vt.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), s?.(e);
4963
- }, []), Gt = H(null), Kt = z((e) => {
5001
+ t && t !== kn.getActive() && await kn.setActive(t), await rt.DefaultCommandCatalogService.prefetch(t ?? void 0), R(e), Ut.current = e.source, Ht.current.settled || Ht.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), c?.(e);
5002
+ }, []), Kt = H(null), qt = z((e) => {
4964
5003
  let t = null, n = {
4965
5004
  readOnly: !0,
4966
- ...le
5005
+ ...ue
4967
5006
  };
4968
- return le?.hidden || (t = W(ie, {
5007
+ return ue?.hidden || (t = W(oe, {
4969
5008
  ...n,
4970
5009
  style: {
4971
5010
  maxWidth: "100%",
4972
- ...le?.style
5011
+ ...ue?.style
4973
5012
  },
4974
5013
  workbook: e.workbook ?? O.current,
4975
- ref: Gt,
4976
- title: Mt,
4977
- modified: I,
4978
- encrypted: St,
5014
+ ref: Kt,
5015
+ title: jt,
5016
+ modified: F,
5017
+ encrypted: Ct,
4979
5018
  placeHolder: Te,
4980
5019
  onTitleChange: (e) => {
4981
- kt(e), le?.onTitleChange?.(e);
5020
+ At(e), ue?.onTitleChange?.(e);
4982
5021
  }
4983
- })), W(ka, {
5022
+ })), W(Na, {
4984
5023
  ...e,
4985
5024
  logo: v,
4986
5025
  mainElement: t,
4987
5026
  startElement: y,
4988
- endElement: b
5027
+ endElement: S
4989
5028
  });
4990
5029
  }, [
4991
5030
  v,
4992
- Mt,
4993
- I,
4994
- St,
4995
- le,
5031
+ jt,
5032
+ F,
5033
+ Ct,
5034
+ ue,
4996
5035
  y,
4997
- b
5036
+ S
4998
5037
  ]);
4999
5038
  B(() => {
5000
5039
  let e = O.current;
@@ -5003,12 +5042,12 @@ var lo = () => {
5003
5042
  return e.addEventListener("wheel", t, { passive: !1 }), () => {
5004
5043
  e.removeEventListener("wheel", t);
5005
5044
  };
5006
- }, [R]);
5007
- let [Jt, Yt] = U(null);
5045
+ }, [Dt]);
5046
+ let [Jt, Xt] = U(null);
5008
5047
  B(() => {
5009
- Yt(R?.source?.getCommandScope?.() ?? null);
5010
- }, [R]);
5011
- let Xt = V(() => ({
5048
+ Xt(Dt?.source?.getCommandScope?.() ?? null);
5049
+ }, [Dt]);
5050
+ let Zt = V(() => ({
5012
5051
  "& .SnackbarContainer-root": { position: "absolute !important" },
5013
5052
  "& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
5014
5053
  "& .notistack-Snackbar": { minWidth: "unset" },
@@ -5021,55 +5060,55 @@ var lo = () => {
5021
5060
  whiteSpace: "pre-wrap"
5022
5061
  },
5023
5062
  "*": { userSelect: "none" }
5024
- }), []), [Zt, Qt] = U(null), [, $t] = vt(null, !1);
5063
+ }), []), [Qt, $t] = U(null), [, en] = bt(null, !1);
5025
5064
  B(() => {
5026
- $t(Zt != null);
5027
- }, [Zt, $t]);
5028
- let en = z((e) => f({
5065
+ en(Qt != null);
5066
+ }, [Qt, en]);
5067
+ let tn = z((e) => p({
5029
5068
  model: M,
5030
- side: p,
5069
+ side: m,
5031
5070
  ...e,
5032
- ...d
5071
+ ...f
5033
5072
  }), [
5034
5073
  M,
5035
- p,
5036
- d
5037
- ]), tn = H(n);
5038
- tn.current = n, gt(t, () => ({
5074
+ m,
5075
+ f
5076
+ ]), nn = H(r);
5077
+ nn.current = r, _t(n, () => ({
5039
5078
  isStudioElement: () => !0,
5040
5079
  save: (e) => {
5041
- let t = wt.current;
5080
+ let t = Tt.current;
5042
5081
  return t ? t(e) : Promise.reject(/* @__PURE__ */ Error("The studio cannot save: no workbook, or the backing store cannot write."));
5043
5082
  },
5044
5083
  getWorkbookElement: () => O.current,
5045
- getWorkbook: () => Pt.current ?? null,
5046
- isDirty: () => Ct.current?.isDirty() ?? !1,
5047
- getEditable: () => _t.current,
5084
+ getWorkbook: () => Ft.current ?? null,
5085
+ isDirty: () => wt.current?.isDirty() ?? !1,
5086
+ getEditable: () => vt.current,
5048
5087
  getFormulaBarElement: () => xe.current ?? null,
5049
5088
  focus: () => O.current?.focus(),
5050
- whenReady: () => (Ke.current ||= lo(), Ke.current.promise),
5051
- getWorkbookState: () => Tt.current,
5052
- retry: () => Ge((e) => e + 1)
5053
- }), [], n);
5054
- let rn = H(!1), an = pt((e, t) => {
5089
+ whenReady: () => (qe.current ||= mo(), qe.current.promise),
5090
+ getWorkbookState: () => L.current,
5091
+ retry: () => Ke((e) => e + 1)
5092
+ }), [], r);
5093
+ let rn = H(!1), on = ht((e, t) => {
5055
5094
  t === ot.current && requestAnimationFrame(() => requestAnimationFrame(() => {
5056
- t === ot.current && (rn.current = tn.current?.contains(document.activeElement) ?? !0, rt(t), Wt(e));
5095
+ t === ot.current && (rn.current = nn.current?.contains(document.activeElement) ?? !0, nt(t), Gt(e));
5057
5096
  }));
5058
5097
  }, []);
5059
5098
  B(() => {
5060
5099
  rn.current && (rn.current = !1, O.current?.focus());
5061
5100
  }, [M]);
5062
- let q = z(() => W(qt, {}), []), on = z((e) => {
5063
- let { ref: t, ...n } = e, r = Me ? je.dark : je.light, s = j.status === "error" ? l({
5064
- ...u,
5101
+ let sn = z(() => W(Yt, {}), []), cn = z((e) => {
5102
+ let { ref: t, ...n } = e, r = Me ? je.dark : je.light, i = j.status === "error" ? u({
5103
+ ...d,
5065
5104
  style: {
5066
5105
  width: "100%",
5067
5106
  height: "100%",
5068
- ...u?.style
5107
+ ...d?.style
5069
5108
  },
5070
5109
  error: j.error
5071
5110
  }) : null;
5072
- if (s && !M) return W(fn, {
5111
+ if (i && !M) return W(hn, {
5073
5112
  style: {
5074
5113
  width: "100%",
5075
5114
  height: "100%",
@@ -5078,14 +5117,14 @@ var lo = () => {
5078
5117
  alignItems: "stretch",
5079
5118
  justifyContent: "stretch"
5080
5119
  },
5081
- children: s
5120
+ children: i
5082
5121
  });
5083
5122
  let c = null;
5084
5123
  if (M) {
5085
- let e = M, i = e.getView(), a = pe ?? i?.isShowFormulaBar(), o = _e ?? i?.isShowStatusBar(), s = R?.source ?? O.current, l = (ye ?? Kt)({
5124
+ let e = M, i = e.getView(), a = pe ?? i?.isShowFormulaBar(), o = _e ?? i?.isShowStatusBar(), s = Dt?.source ?? O.current, l = (D ?? qt)({
5086
5125
  workbook: s,
5087
- ...D
5088
- }), u = a ? (he ?? ne)({
5126
+ ...E
5127
+ }), u = a ? (he ?? ie)({
5089
5128
  ref: xe,
5090
5129
  style: {
5091
5130
  marginTop: r.spacing(.25),
@@ -5100,32 +5139,32 @@ var lo = () => {
5100
5139
  restoreFocus: (e) => s?.focus(e),
5101
5140
  ...me?.propsNamedCollectionEditor
5102
5141
  }
5103
- }) : null, d = o ? (E ?? ee)({
5142
+ }) : null, d = o ? (ye ?? ne)({
5104
5143
  childrenEnd: It,
5105
5144
  ...ve
5106
- }) : null, f = (e, r) => W(w, {
5107
- ...fe,
5145
+ }) : null, f = (e, r) => W(C, {
5146
+ ...T,
5108
5147
  tabIndex: 0,
5109
- autoFocus: !r && ae,
5148
+ autoFocus: !r && re,
5110
5149
  workbook: e,
5111
5150
  editable: r ? void 0 : P ?? void 0,
5112
5151
  focusNameBox: r ? void 0 : Se,
5113
- ref: r ? be : re([t, O]),
5114
- onWorkbookLoad: r ? (t) => an(t, e) : Wt,
5152
+ ref: r ? be : ce([t, O]),
5153
+ onWorkbookLoad: r ? (t) => on(t, e) : Gt,
5115
5154
  onKeyDown: (e) => {
5116
- m?.(e);
5155
+ h?.(e);
5117
5156
  },
5118
- propsWorkbookLoading: de,
5119
- renderWorkbookLoading: q,
5157
+ propsWorkbookLoading: fe,
5158
+ renderWorkbookLoading: sn,
5120
5159
  style: r ? {
5121
- ...fe?.style,
5160
+ ...T?.style,
5122
5161
  position: "absolute",
5123
5162
  inset: 0,
5124
5163
  visibility: "hidden"
5125
5164
  } : {
5126
5165
  flex: "1 1 100%",
5127
5166
  minHeight: 0,
5128
- ...fe?.style
5167
+ ...T?.style
5129
5168
  },
5130
5169
  onContextMenu: (e) => e.preventDefault(),
5131
5170
  ...r ? null : n
@@ -5137,7 +5176,7 @@ var lo = () => {
5137
5176
  flex: "1 1 100%",
5138
5177
  minWidth: 0,
5139
5178
  minHeight: 0,
5140
- ...Be({
5179
+ ...He({
5141
5180
  window: r.palette.background.default,
5142
5181
  windowText: r.palette.text.primary
5143
5182
  })
@@ -5145,12 +5184,12 @@ var lo = () => {
5145
5184
  children: [
5146
5185
  l,
5147
5186
  u,
5148
- W(Ja, {
5149
- taskSide: p,
5150
- persistKey: fo,
5151
- sidebarElement: Zt ? W(tt.CommandScopeProvider, {
5187
+ W(Qa, {
5188
+ taskSide: m,
5189
+ persistKey: go,
5190
+ sidebarElement: Qt ? W(rt.CommandScopeProvider, {
5152
5191
  scope: Jt,
5153
- children: Zt
5192
+ children: Qt
5154
5193
  }) : void 0,
5155
5194
  mainElement: G("div", {
5156
5195
  style: {
@@ -5161,8 +5200,8 @@ var lo = () => {
5161
5200
  minWidth: 0,
5162
5201
  minHeight: 0
5163
5202
  },
5164
- children: [[f(M, !1), it ? f(it, !0) : null], W(K, {
5165
- ref: Bt,
5203
+ children: [[f(M, !1), at ? f(at, !0) : null], W(K, {
5204
+ ref: Vt,
5166
5205
  sx: {
5167
5206
  position: "absolute",
5168
5207
  top: "10%",
@@ -5179,9 +5218,9 @@ var lo = () => {
5179
5218
  ]
5180
5219
  });
5181
5220
  }
5182
- let d = R ? null : ue({ ...de });
5183
- return G(fn, {
5184
- sx: Xt,
5221
+ let l = Dt ? null : de({ ...fe });
5222
+ return G(hn, {
5223
+ sx: Zt,
5185
5224
  style: {
5186
5225
  width: "100%",
5187
5226
  height: "100%",
@@ -5192,12 +5231,12 @@ var lo = () => {
5192
5231
  backgroundColor: "var(--sxl-color-base-200)"
5193
5232
  },
5194
5233
  className: "eager-studio",
5195
- square: i,
5196
- elevation: a,
5197
- variant: o,
5234
+ square: a,
5235
+ elevation: o,
5236
+ variant: s,
5198
5237
  children: [
5199
5238
  c,
5200
- s ? W(fn, {
5239
+ i ? W(hn, {
5201
5240
  style: {
5202
5241
  position: "absolute",
5203
5242
  inset: 0,
@@ -5205,9 +5244,9 @@ var lo = () => {
5205
5244
  alignItems: "stretch",
5206
5245
  justifyContent: "stretch"
5207
5246
  },
5208
- children: s
5247
+ children: i
5209
5248
  }) : null,
5210
- d ? W("div", {
5249
+ l ? W("div", {
5211
5250
  style: {
5212
5251
  position: "absolute",
5213
5252
  inset: 0,
@@ -5216,30 +5255,30 @@ var lo = () => {
5216
5255
  justifyContent: "center",
5217
5256
  background: `var(--sxl-color-base-100, ${Me ? "#121212" : "#fff"})`
5218
5257
  },
5219
- children: d
5258
+ children: l
5220
5259
  }) : null
5221
5260
  ]
5222
5261
  });
5223
5262
  }, [
5224
5263
  j,
5225
5264
  M,
5226
- it,
5227
- R,
5228
- Mt,
5229
- ue,
5265
+ at,
5266
+ Dt,
5267
+ jt,
5230
5268
  de,
5231
- q,
5232
5269
  fe,
5233
- i,
5270
+ sn,
5271
+ T,
5234
5272
  a,
5235
5273
  o,
5274
+ s,
5236
5275
  It,
5237
- l,
5238
5276
  u,
5239
- Kt,
5240
- Xt,
5277
+ d,
5278
+ qt,
5241
5279
  Zt,
5242
- p,
5280
+ Qt,
5281
+ m,
5243
5282
  Jt,
5244
5283
  pe,
5245
5284
  me,
@@ -5247,14 +5286,14 @@ var lo = () => {
5247
5286
  P,
5248
5287
  _e,
5249
5288
  ve,
5289
+ ye,
5250
5290
  E,
5251
5291
  D,
5252
- ye,
5253
5292
  je,
5254
5293
  Me
5255
- ]), sn = W(wa, {
5294
+ ]), ln = W(Oa, {
5256
5295
  maxSnack: 3,
5257
- domRoot: Lt ?? void 0,
5296
+ domRoot: Rt ?? void 0,
5258
5297
  anchorOrigin: {
5259
5298
  vertical: "bottom",
5260
5299
  horizontal: "right"
@@ -5263,9 +5302,9 @@ var lo = () => {
5263
5302
  onClose: (e, t, n) => {
5264
5303
  O.current?.focus();
5265
5304
  },
5266
- Components: { error: Da },
5305
+ Components: { error: ja },
5267
5306
  iconVariant: {
5268
- success: W(hn, {
5307
+ success: W(_n, {
5269
5308
  style: { marginRight: "8px" },
5270
5309
  children: W("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" })
5271
5310
  }),
@@ -5274,42 +5313,43 @@ var lo = () => {
5274
5313
  style: { marginRight: "8px" }
5275
5314
  })
5276
5315
  },
5277
- children: W(Le, {
5316
+ children: W(ze, {
5278
5317
  workbook: M,
5279
- children: W(Fe, {
5280
- renderArea: en,
5318
+ children: W(Ie, {
5319
+ renderArea: tn,
5281
5320
  onUpdateArea: (e) => {
5282
- Qt(e);
5321
+ $t(e);
5283
5322
  },
5284
- children: W(Ft, { children: W(Ba, { children: W(ut, { children: W(st, { children: W(La, {
5323
+ children: W(Lt, { children: W(Wa, { children: W(ft, { children: W(lt, { children: W(Va, {
5285
5324
  workbook: M,
5286
- initialCommandAnchor: Ut,
5287
- renderWorkbook: on,
5325
+ initialCommandAnchor: Wt,
5326
+ renderWorkbook: cn,
5288
5327
  setWorkbook: dt,
5289
- titleWorkbook: Mt,
5290
- setWorkbookTitle: kt,
5291
- refDocumentTitle: Gt,
5292
- isDirty: L,
5293
- refSave: wt
5328
+ titleWorkbook: jt,
5329
+ setWorkbookTitle: At,
5330
+ refDocumentTitle: Kt,
5331
+ isDirty: Et,
5332
+ refSave: Tt,
5333
+ host: r
5294
5334
  }) }) }) }) })
5295
5335
  })
5296
5336
  })
5297
5337
  });
5298
- return sn = G(yn, {
5338
+ return ln = G(xn, {
5299
5339
  theme: Me ? je.dark : je.light,
5300
5340
  children: [
5301
- te ? W(nn, {}) : null,
5341
+ te ? W(an, {}) : null,
5302
5342
  W("style", { children: Ne }),
5303
5343
  W("style", { children: Pe }),
5304
- W(jt, {
5305
- themeScopeClass: r,
5344
+ W(Nt, {
5345
+ themeScopeClass: i,
5306
5346
  themeSurface: "app",
5307
5347
  themeMode: De,
5308
- children: sn
5348
+ children: ln
5309
5349
  })
5310
5350
  ]
5311
- }), sn;
5351
+ }), ln;
5312
5352
  }));
5313
- po.displayName = "EagerStudio";
5314
- var mo = (e) => W(Wa, { ...e });
5315
- export { po as EagerStudio, po as default };
5353
+ _o.displayName = "EagerStudio";
5354
+ var vo = (e) => W(Ja, { ...e });
5355
+ export { _o as EagerStudio, _o as default };