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

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 (50) hide show
  1. package/browser/cjs/L0TaaQ9lceHCeg8C.cjs +8 -0
  2. package/browser/cjs/index.cjs +1 -1
  3. package/browser/esm/{o8pQBbpRc03xny0J.mjs → 0RwF0cH7JQ-VqL4E.mjs} +1 -1
  4. package/browser/esm/{S7-XfIxL3I5D5tDS.mjs → 26__l2vZsdgD-nJx.mjs} +2 -2
  5. package/browser/esm/{BmVeug3PPG-mEUBe.mjs → BDHzwq_DKJi-l3vm.mjs} +2 -2
  6. package/browser/esm/{DRQzyIQfZQuviFBK.mjs → BhUPwPyeqs6QNdfZ.mjs} +3 -3
  7. package/browser/esm/{Dg5qnLoncOqT-F5i.mjs → BkCuNLKQc4KN4Ss4.mjs} +1 -1
  8. package/browser/esm/{BJCaJYz86lNGZGh1.mjs → C2Ja33FV0pE1u_b4.mjs} +2 -2
  9. package/browser/esm/{CimAg7LJqIb3ULYp.mjs → C828ANqeXNxG8adc.mjs} +868 -866
  10. package/browser/esm/{BiZHUr1gWhtKdzrE.mjs → CMBpd4LN1GYbtCdW.mjs} +2 -2
  11. package/browser/esm/{Dj2-pD6jM9SjbPfX.mjs → CfwoCDjpHNheDLn1.mjs} +1 -1
  12. package/browser/esm/{CHqIzUemj2wQqlNO.mjs → DDYeKYs_XIOjhieg.mjs} +2 -2
  13. package/browser/esm/{CtOFBKJZWEJY5GOf.mjs → DFAzrYRM9N1LhRsL.mjs} +2 -2
  14. package/browser/esm/{CrTz-SMNtZoj2Z48.mjs → DFQo3TQ5Lpt6_Vid.mjs} +2 -2
  15. package/browser/esm/{DHYkgVTs7_z8sPt8.mjs → DG26kflIdO_PIeNZ.mjs} +2 -2
  16. package/browser/esm/{BH7X6WilO_oB3j3h.mjs → D_kD4qmjhElkOeRw.mjs} +1 -1
  17. package/browser/esm/{wqS-qBYe9-awT5Rr.mjs → DkWV5seJEk7n5n4f.mjs} +3 -3
  18. package/browser/esm/{4zCEiqAUYE1FtC_Y.mjs → DkuGZXKiwLKsUN_D.mjs} +2 -2
  19. package/browser/esm/{nZ7NKFIakvUB_oNM.mjs → DzxWYVoWw4-RT-Ia.mjs} +1 -1
  20. package/browser/esm/{CPDwT78ZJV0KhVfv.mjs → FZXipbgDJzTXFMSX.mjs} +9 -9
  21. package/browser/esm/{BVs5I1lTSja2b0B9.mjs → GZvjjMyv09_4zahu.mjs} +2 -2
  22. package/browser/esm/{OwfpYCy5lgrQ-16J.mjs → ONmBo80X5eV6cBBI.mjs} +1 -1
  23. package/browser/esm/{DoU18LVtqUiePYs1.mjs → Ot_3uk9g5RQpAjcQ.mjs} +1 -1
  24. package/browser/esm/{Bv0eMxh_ZN44Ikgp.mjs → P8cqCkmugGNd2vkm.mjs} +3 -3
  25. package/browser/esm/{DFbbRoJIDXqoF7nu.mjs → ZLszpvKCQ6ZVPKdC.mjs} +3 -3
  26. package/browser/esm/{ec1sT17zcL-gOSRO.mjs → aNqEbtO2cALJwwos.mjs} +1 -1
  27. package/browser/esm/{BWNmYjzGDBhZYgIO.mjs → bC4EbB4OILhPseb3.mjs} +2 -2
  28. package/browser/esm/index.mjs +92 -92
  29. package/licenses/dependencies.txt +55 -55
  30. package/node/esm/{2wtbIYdeGDT6UzN4.mjs → 4HI6dheaskyg9kLm.mjs} +1 -1
  31. package/node/esm/{B9iw8mqg0MDNDp5_.mjs → 6HLpHxyQNZYCN2_o.mjs} +1 -1
  32. package/node/esm/{BNROwD9ZMLgwtXL_.mjs → B77SESbao6p6Y4Dy.mjs} +2 -2
  33. package/node/esm/{CUsUUWPxbO1IW9PY.mjs → B9mtSfhFe3Hjcx9T.mjs} +1 -1
  34. package/node/esm/{CGhj-BDkyrejG1Jj.mjs → BKpja0BXFbcWlnni.mjs} +1 -1
  35. package/node/esm/{BVmpGvXDUqEmggq3.mjs → BOsZituO28YENQvh.mjs} +1 -1
  36. package/node/esm/{T3WcGiReCHGeKPOy.mjs → BT8pKXqqPi8PAXbL.mjs} +1 -1
  37. package/node/esm/{DMbGl7mOdelCN7-u.mjs → C4o3AryrtuiHuFLr.mjs} +1 -1
  38. package/node/esm/{DKzeeAeOVF2r68yb.mjs → CAe57GIDt8E3Sj1R.mjs} +1 -1
  39. package/node/esm/{BtruJA9z21K9pnuA.mjs → COd_Ly7pt0y62C8c.mjs} +1 -1
  40. package/node/esm/{FxGz3tv6y2gcffmK.mjs → CS307VndSoCLgQ-m.mjs} +1028 -1026
  41. package/node/esm/{7ZI8MoM6mY-P4VfQ.mjs → DCJNQumUzquqdCpn.mjs} +2 -2
  42. package/node/esm/{R1_Dii8zCHEAZKvZ.mjs → DHVHJBTqBhlJQXpX.mjs} +1 -1
  43. package/node/esm/{DhZG-hcTUn-vLoZy.mjs → aAEiFrxe-aYXbogR.mjs} +1 -1
  44. package/node/esm/index.mjs +2438 -2438
  45. package/node/esm/{B1z-keCkm0LI9ezw.mjs → oAiHfSODZnkRxiTN.mjs} +1 -1
  46. package/node/esm/{XpqeM7yyMghtMgLc.mjs → r_EDiG9j1gFuHgF9.mjs} +1 -1
  47. package/package.json +9 -9
  48. package/types/src/studio/CommandsWrapper.d.ts +2 -0
  49. package/types/src/studio/StudioCommandProvider.d.ts +7 -0
  50. package/browser/cjs/Dq9lIOzvxW3EKYkD.cjs +0 -8
@@ -1,28 +1,28 @@
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.5
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 { AutoColorPosition as e, BorderPopupButton as t, ColorPopupButton as o, DocumentTitle as n, ExternalLinksPlugin as r, FormatPlugin as a, FormulaField as l, NamedPlugin as i, ProtectionPlugin as s, T as d, TablePlugin as c, WorkbookElement as p, _ as u, a as m, b as g, c as h, createStudioThemeCSS as y, d as f, f as b, g as x, h as v, i as C, l as k, m as w, n as S, p as T, r as F, registerStudioCommandCatalogs as D, registerStudioCommandGroups as N, renderWorkbookToolbars as P, s as I, t as O, tokensToMuiOptions as M, u as A, v as W, x as E, y as B } from "./index.mjs";
7
+ import { AutoColorPosition as e, BorderPopupButton as t, ColorPopupButton as o, DocumentTitle as n, ExternalLinksPlugin as r, FormatPlugin as a, FormulaField as l, NamedPlugin as i, ProtectionPlugin as s, T as d, TablePlugin as c, WorkbookElement as p, _ as u, a as m, b as g, c as h, createStudioThemeCSS as y, d as f, f as b, g as x, h as v, i as C, l as k, m as w, n as S, p as T, r as F, registerStudioCommandCatalogs as D, registerStudioCommandGroups as I, renderWorkbookToolbars as N, s as P, t as O, tokensToMuiOptions as M, u as A, v as W, x as E, y as B } from "./index.mjs";
8
8
  import { Color as R, CommonUtils as L, Condition as V, FormulaError as z, FormulaText as j, ICondition as $, IConditionalFormat as K, IDataValidation as _, IFill as H, IFont as U, IStyle as q, ScalarType as G, getLocaleProfile as Q } from "@sheetxl/sdk";
9
- import { COLOR_SCALE_PRESETS as Y, CommandRootProvider as J, DATA_BAR_PRESETS as X, DefaultTaskPaneRegistry as Z, ICON_CATALOG as ee, IconSetGlyphs as te, LogoNoPaddingIcon as oe, NO_CELL_ICON as ne, PickerPanel as re, STYLE_PRESETS as ae, TaskPaneArea as le, TaskPaneProvider as ie, ThemeStateKey as se, WorkbookIO as de, WorkbookProvider as ce, buildOOXMLThemeCSS as pe, createEditable as ue, createSystemColorVars as me, defaultColorScale as ge, defaultDataBar as he, defaultIconSet as ye, defaultIconStops as fe, getConditionalIconSet as be, iconSetSize as xe, resolveIconSetIcons as ve, useDocThemes as Ce, useModelSync as ke, useReferenceModeStore as we, useResolvedWorkbook as Se, useSheet as Te, useTaskPaneArea as Fe, useWorkbookEncrypted as De, useWorkbookName as Ne, useWorkbookSaveState as Pe, withIconOverride as Ie } from "@sheetxl/react";
10
- import { Command as Oe, DefaultIconService as Me, DefaultReactNotifier as Ae, DynamicIcon as We, KeyCodes as Ee, LanguageStateKey as Be, NotifierType as Re, ReactErrorBoundary as Le, ReactNotifierProvider as Ve, SplitPane as ze, UncaughtErrorBoundary as je, createBusyHandle as $e, floatThemeScopeProps as Ke, useCallbackRef as _e, useFloatSurface as He, useFullscreen as Ue, useImperativeElement as qe, useLanguage as Ge, useNotifier as Qe, usePersistenceState as Ye, useResolvedThemeMode as Je, useTokenThemeContext as Xe, useTranslator as Ze } from "@sheetxl/utils-react";
11
- import et, { createContext as tt, forwardRef as ot, isValidElement as nt, memo as rt, useCallback as at, useContext as lt, useEffect as it, useMemo as st, useRef as dt, useState as ct } from "react";
12
- import { AnimatedLoadingPanel as pt, AnimatedTraversingEllipsisIcon as ut, CommandGroup as mt, ExhibitFloatProvider as gt, ExhibitIconButton as ht, ExhibitPopupIconButton as yt, ExhibitTooltip as ft, ModalProvider as bt, SimpleTooltip as xt, StackTrace as vt, createExhibitTheme as Ct, defaultCreatePopupPanel as kt, hideLoadingPanel as wt, lazyModal as St, showLoadingPanel as Tt, useInputDialog as Ft, useLazyWindow as Dt, useModal as Nt, useOptionsDialog as Pt } from "@sheetxl/utils-mui";
13
- import { Fragment as It, jsx as Ot, jsxs as Mt } from "react/jsx-runtime";
14
- import { Accordion as At, AccordionDetails as Wt, AccordionSummary as Et, Box as Bt, Button as Rt, Card as Lt, CardActions as Vt, Checkbox as zt, Collapse as jt, CssBaseline as $t, DialogTitle as Kt, Divider as _t, FormControl as Ht, FormControlLabel as Ut, FormHelperText as qt, IconButton as Gt, InputLabel as Qt, ListSubheader as Yt, MenuItem as Jt, MenuList as Xt, Paper as Zt, Popover as eo, Select as to, SvgIcon as oo, Tab as no, Tabs as ro, TextField as ao, ThemeProvider as lo, ToggleButton as io, ToggleButtonGroup as so, Typography as co, alpha as po, useMediaQuery as uo, useTheme as mo } from "@mui/material";
15
- import { CommonUtils as go, DOMUtils as ho, DefaultLanguagePackService as yo, ErrorUtils as fo, ExpectedError as bo, PartialError as xo, defineLazyModule as vo, formatMessage as Co, messageKey as ko, t as wo } from "@sheetxl/utils";
16
- import So from "clsx";
17
- import { mergeRefs as To } from "react-merge-refs";
18
- import { useMeasure as Fo } from "react-use";
19
- import { SnackbarContent as Do, SnackbarProvider as No, useSnackbar as Po } from "notistack";
20
- var Io = rt((e) => {
9
+ import { COLOR_SCALE_PRESETS as Y, CommandRootProvider as J, DATA_BAR_PRESETS as X, DefaultTaskPaneRegistry as Z, ICON_CATALOG as ee, IconSetGlyphs as te, LogoNoPaddingIcon as oe, NO_CELL_ICON as ne, PickerPanel as re, STYLE_PRESETS as ae, TaskPaneArea as le, TaskPaneProvider as ie, ThemeStateDefaults as se, ThemeStateKey as de, WorkbookIO as ce, WorkbookProvider as pe, buildOOXMLThemeCSS as ue, createEditable as me, createSystemColorVars as ge, defaultColorScale as he, defaultDataBar as ye, defaultIconSet as fe, defaultIconStops as be, getConditionalIconSet as xe, iconSetSize as ve, resolveIconSetIcons as Ce, useDocThemes as ke, useModelSync as we, useReferenceModeStore as Se, useResolvedWorkbook as Te, useSheet as Fe, useTaskPaneArea as De, useWorkbookEncrypted as Ie, useWorkbookName as Ne, useWorkbookSaveState as Pe, withIconOverride as Oe } from "@sheetxl/react";
10
+ import { Command as Me, DefaultIconService as Ae, DefaultReactNotifier as We, DynamicIcon as Ee, KeyCodes as Be, LanguageStateKey as Re, NotifierType as Le, ReactErrorBoundary as Ve, ReactNotifierProvider as ze, SplitPane as je, UncaughtErrorBoundary as $e, createBusyHandle as Ke, floatThemeScopeProps as _e, useCallbackRef as He, useFloatSurface as Ue, useFullscreen as qe, useImperativeElement as Ge, useLanguage as Qe, useNotifier as Ye, usePersistenceState as Je, useResolvedThemeMode as Xe, useTokenThemeContext as Ze, useTranslator as et } from "@sheetxl/utils-react";
11
+ import tt, { createContext as ot, forwardRef as nt, isValidElement as rt, memo as at, useCallback as lt, useContext as it, useEffect as st, useMemo as dt, useRef as ct, useState as pt } from "react";
12
+ import { AnimatedLoadingPanel as ut, AnimatedTraversingEllipsisIcon as mt, CommandGroup as gt, ExhibitFloatProvider as ht, ExhibitIconButton as yt, ExhibitPopupIconButton as ft, ExhibitTooltip as bt, ModalProvider as xt, SimpleTooltip as vt, StackTrace as Ct, createExhibitTheme as kt, defaultCreatePopupPanel as wt, hideLoadingPanel as St, lazyModal as Tt, showLoadingPanel as Ft, useInputDialog as Dt, useLazyWindow as It, useModal as Nt, useOptionsDialog as Pt } from "@sheetxl/utils-mui";
13
+ import { Fragment as Ot, jsx as Mt, jsxs as At } from "react/jsx-runtime";
14
+ import { Accordion as Wt, AccordionDetails as Et, AccordionSummary as Bt, Box as Rt, Button as Lt, Card as Vt, CardActions as zt, Checkbox as jt, Collapse as $t, CssBaseline as Kt, DialogTitle as _t, Divider as Ht, FormControl as Ut, FormControlLabel as qt, FormHelperText as Gt, IconButton as Qt, InputLabel as Yt, ListSubheader as Jt, MenuItem as Xt, MenuList as Zt, Paper as eo, Popover as to, Select as oo, SvgIcon as no, Tab as ro, Tabs as ao, TextField as lo, ThemeProvider as io, ToggleButton as so, ToggleButtonGroup as co, Typography as po, alpha as uo, useMediaQuery as mo, useTheme as go } from "@mui/material";
15
+ import { CommonUtils as ho, DOMUtils as yo, DefaultLanguagePackService as fo, ErrorUtils as bo, ExpectedError as xo, PartialError as vo, defineLazyModule as Co, formatMessage as ko, messageKey as wo, t as So } from "@sheetxl/utils";
16
+ import To from "clsx";
17
+ import { mergeRefs as Fo } from "react-merge-refs";
18
+ import { useMeasure as Do } from "react-use";
19
+ import { SnackbarContent as Io, SnackbarProvider as No, useSnackbar as Po } from "notistack";
20
+ var Oo = at((e) => {
21
21
  const { option: t, onOptionChange: o, readOnly: n, ...r } = e;
22
- return Ot(ao, {
22
+ return Mt(lo, {
23
23
  size: "small",
24
24
  type: "text",
25
- placeholder: Ze()("condition.enterText"),
25
+ placeholder: et()("condition.enterText"),
26
26
  value: t ?? "",
27
27
  onChange: (e) => o(String(e.target.value)),
28
28
  disabled: n,
@@ -30,13 +30,13 @@ var Io = rt((e) => {
30
30
  slotProps: { input: { sx: { backgroundColor: "background.paper" } } }
31
31
  });
32
32
  });
33
- Io.displayName = "StringOption";
34
- var Oo = rt((e) => {
33
+ Oo.displayName = "StringOption";
34
+ var Mo = at((e) => {
35
35
  const { option: t, onOptionChange: o, readOnly: n, ...r } = e;
36
- return Ot(ao, {
36
+ return Mt(lo, {
37
37
  size: "small",
38
38
  type: "number",
39
- placeholder: Ze()("condition.enterNumber"),
39
+ placeholder: et()("condition.enterNumber"),
40
40
  value: "" + (t ?? ""),
41
41
  onChange: (e) => o(Number(e.target.value)),
42
42
  disabled: n,
@@ -44,14 +44,14 @@ var Oo = rt((e) => {
44
44
  slotProps: { input: { sx: { backgroundColor: "background.paper" } } }
45
45
  });
46
46
  });
47
- Oo.displayName = "NumberOption";
48
- var Mo = tt(null), Ao = (e) => {
47
+ Mo.displayName = "NumberOption";
48
+ var Ao = ot(null), Wo = (e) => {
49
49
  const { rowIndex: t, colIndex: o } = e.getSelectedCell().getCoords();
50
50
  return {
51
51
  rowIndex: t,
52
52
  colIndex: o
53
53
  };
54
- }, Wo = (e, t) => {
54
+ }, Eo = (e, t) => {
55
55
  const o = ((e) => {
56
56
  const t = e?.getCoords();
57
57
  if (!t || 0 === t.length) return null;
@@ -63,7 +63,7 @@ var Mo = tt(null), Ao = (e) => {
63
63
  };
64
64
  })(t?.getRanges() ?? null);
65
65
  if (!e || !o) return null;
66
- const { rowIndex: n, colIndex: r } = Ao(e);
66
+ const { rowIndex: n, colIndex: r } = Wo(e);
67
67
  return n === o.rowIndex && r === o.colIndex ? null : {
68
68
  active: {
69
69
  rowIndex: n,
@@ -71,8 +71,8 @@ var Mo = tt(null), Ao = (e) => {
71
71
  },
72
72
  anchor: o
73
73
  };
74
- }, Eo = () => {
75
- const e = Te(), t = lt(Mo), o = dt(null), n = e ? Ao(e) : null, r = e?.getName() ?? null, a = st(() => n && r ? {
74
+ }, Bo = () => {
75
+ const e = Fe(), t = it(Ao), o = ct(null), n = e ? Wo(e) : null, r = e?.getName() ?? null, a = dt(() => n && r ? {
76
76
  ...n,
77
77
  scope: r
78
78
  } : void 0, [
@@ -80,12 +80,12 @@ var Mo = tt(null), Ao = (e) => {
80
80
  n?.rowIndex,
81
81
  n?.colIndex
82
82
  ]);
83
- return st(() => ({
83
+ return dt(() => ({
84
84
  home: a,
85
85
  display: (n) => {
86
86
  const r = o.current;
87
87
  if (r && r.stored === n.getExpression()) return r.text;
88
- const a = Wo(e, t);
88
+ const a = Eo(e, t);
89
89
  if (a) try {
90
90
  const t = e.createFormula(n.getExpression(), a.anchor).shift(a.active);
91
91
  if (t) return t.getExpression({ target: "display" });
@@ -93,7 +93,7 @@ var Mo = tt(null), Ao = (e) => {
93
93
  return n.getExpression({ target: "display" });
94
94
  },
95
95
  compile: (n) => {
96
- const r = Wo(e, t);
96
+ const r = Eo(e, t);
97
97
  let a = null;
98
98
  try {
99
99
  a = e?.createFormula(n, r?.active, { target: "display" }) ?? null, a && r && (a = a.shift(r.anchor));
@@ -110,12 +110,12 @@ var Mo = tt(null), Ao = (e) => {
110
110
  t,
111
111
  a
112
112
  ]);
113
- }, Bo = (e, t) => null == e ? "" : e.isIFormula ? "=" + t.display(e) : "boolean" == typeof e ? e ? "TRUE" : "FALSE" : z.isError(e) ? e.getLabel() : String(e), Ro = rt((e) => {
114
- const { option: t, onOptionChange: o, readOnly: n, ...r } = e, a = Ze(), i = Eo();
115
- return Ot(l, {
113
+ }, Ro = (e, t) => null == e ? "" : e.isIFormula ? "=" + t.display(e) : "boolean" == typeof e ? e ? "TRUE" : "FALSE" : z.isError(e) ? e.getLabel() : String(e), Lo = at((e) => {
114
+ const { option: t, onOptionChange: o, readOnly: n, ...r } = e, a = et(), i = Bo();
115
+ return Mt(l, {
116
116
  size: "small",
117
117
  home: i.home,
118
- value: Bo(t, i),
118
+ value: Ro(t, i),
119
119
  onChangeText: (e) => o(((e, t) => {
120
120
  if (0 === e.length) return null;
121
121
  if (e.startsWith("=")) {
@@ -140,18 +140,18 @@ var Mo = tt(null), Ao = (e) => {
140
140
  ...r
141
141
  });
142
142
  });
143
- Ro.displayName = "ScalarOption";
144
- var Lo = (e, t, o) => {
143
+ Lo.displayName = "ScalarOption";
144
+ var Vo = (e, t, o) => {
145
145
  if (null == e) return "";
146
146
  if (e.isIFormula) return "=" + o.display(e);
147
147
  if (Array.isArray(e)) return e.map((e) => String(e ?? "")).join(t);
148
148
  const n = V.parseListLiteral(e);
149
149
  return n ? n.join(t) : e.length > 0 ? "=" + e : "";
150
- }, Vo = rt((e) => {
151
- const { option: t, onOptionChange: o, readOnly: n, sx: r, ...a } = e, i = Ze(), s = Te(), d = lt(Mo), c = Eo(), p = Q(s?.getWorkbook()?.getLocale() ?? "en").listSeparator, [u, m] = ct(null), g = t?.items, [h, y] = ct(null), f = dt(0);
152
- it(() => {
150
+ }, zo = at((e) => {
151
+ const { option: t, onOptionChange: o, readOnly: n, sx: r, ...a } = e, i = et(), s = Fe(), d = it(Ao), c = Bo(), p = Q(s?.getWorkbook()?.getLocale() ?? "en").listSeparator, [u, m] = pt(null), g = t?.items, [h, y] = pt(null), f = ct(0);
152
+ st(() => {
153
153
  if (!d?.getListItemsAt || !s) return void y(null);
154
- const e = ++f.current, { rowIndex: t, colIndex: o } = Ao(s);
154
+ const e = ++f.current, { rowIndex: t, colIndex: o } = Wo(s);
155
155
  d.getListItemsAt(t, o).then((t) => {
156
156
  e === f.current && y(t);
157
157
  }, () => {
@@ -162,24 +162,24 @@ var Lo = (e, t, o) => {
162
162
  s,
163
163
  g
164
164
  ]);
165
- const [b, x] = ct(null), { className: v } = Ke(He()?.themeScope), C = st(() => s?.getStyles().getNormal().getFont().toCSS("adaptive"), [s]), [k, w] = ct(null), S = k ?? u;
166
- return Mt(Bt, {
165
+ const [b, x] = pt(null), { className: v } = _e(Ue()?.themeScope), C = dt(() => s?.getStyles().getNormal().getFont().toCSS("adaptive"), [s]), [k, w] = pt(null), S = k ?? u;
166
+ return At(Rt, {
167
167
  sx: {
168
168
  display: "flex",
169
169
  flexDirection: "column",
170
170
  mt: .75,
171
171
  ...r
172
172
  },
173
- children: [Mt(Bt, {
173
+ children: [At(Rt, {
174
174
  sx: {
175
175
  display: "flex",
176
176
  alignItems: "stretch",
177
177
  gap: 1
178
178
  },
179
- children: [Ot(l, {
179
+ children: [Mt(l, {
180
180
  size: "small",
181
181
  home: c.home,
182
- value: Lo(g, p, c),
182
+ value: Vo(g, p, c),
183
183
  onChangeText: (e) => {
184
184
  const n = ((e, t, o) => {
185
185
  if (0 === e.length) return { items: "" };
@@ -190,10 +190,10 @@ var Lo = (e, t, o) => {
190
190
  let t = e;
191
191
  for (; "paren" === t?.type && 1 === t.inputs?.length;) t = t.inputs[0];
192
192
  return "list" === t?.type || "paren" === t?.type && (t.inputs?.length ?? 0) > 1;
193
- })(j.parse(t.getExpression())) ? { error: ko("condition.listSourceOneRange") } : { items: t.getExpression() };
193
+ })(j.parse(t.getExpression())) ? { error: wo("condition.listSourceOneRange") } : { items: t.getExpression() };
194
194
  }
195
195
  const n = V.formatListLiteral(e.split(t));
196
- return null === n ? { error: ko("condition.listItemHasComma") } : { items: n };
196
+ return null === n ? { error: wo("condition.listItemHasComma") } : { items: n };
197
197
  })(e, p, c);
198
198
  m(n.error ?? null), void 0 !== n.items && o({
199
199
  ...t,
@@ -212,19 +212,19 @@ var Lo = (e, t, o) => {
212
212
  showError: !1,
213
213
  helperText: null,
214
214
  ...a
215
- }), null !== h && Mt(It, { children: [Ot(Rt, {
215
+ }), null !== h && At(Ot, { children: [Mt(Lt, {
216
216
  size: "small",
217
217
  variant: "outlined",
218
218
  color: "inherit",
219
219
  onClick: (e) => x(e.currentTarget),
220
- endIcon: Ot(We, { iconKey: "ExpandMore" }),
220
+ endIcon: Mt(Ee, { iconKey: "ExpandMore" }),
221
221
  sx: {
222
222
  flexShrink: 0,
223
223
  width: "8.5em",
224
224
  justifyContent: "space-between",
225
225
  textTransform: "none"
226
226
  },
227
- children: Ot(Bt, {
227
+ children: Mt(Rt, {
228
228
  component: "span",
229
229
  sx: {
230
230
  overflow: "hidden",
@@ -233,7 +233,7 @@ var Lo = (e, t, o) => {
233
233
  },
234
234
  children: i("condition.listPreview", { count: h.length })
235
235
  })
236
- }), Ot(eo, {
236
+ }), Mt(to, {
237
237
  open: !!b,
238
238
  anchorEl: b,
239
239
  onClose: () => x(null),
@@ -246,29 +246,29 @@ var Lo = (e, t, o) => {
246
246
  vertical: "top",
247
247
  horizontal: "right"
248
248
  },
249
- children: Ot(re, {
249
+ children: Mt(re, {
250
250
  items: h,
251
251
  minWidth: b?.getBoundingClientRect().width,
252
252
  style: C,
253
253
  onChoose: () => x(null)
254
254
  })
255
255
  })] })]
256
- }), S && Ot(qt, {
256
+ }), S && Mt(Gt, {
257
257
  error: !0,
258
258
  children: i(S)
259
259
  })]
260
260
  });
261
261
  });
262
- Vo.displayName = "ListSourceOption";
263
- var zo = {}, jo = rt((e) => {
264
- const { option: t, onOptionChange: o, className: n, readOnly: r, ...a } = e, l = Ze(), i = t?.type ?? $.AverageType.Above, s = t?.stdDevs ?? "";
262
+ zo.displayName = "ListSourceOption";
263
+ var jo = {}, $o = at((e) => {
264
+ const { option: t, onOptionChange: o, className: n, readOnly: r, ...a } = e, l = et(), i = t?.type ?? $.AverageType.Above, s = t?.stdDevs ?? "";
265
265
  let d = { backgroundColor: "background.paper" };
266
266
  return r && (d = {
267
267
  ...d,
268
268
  "& .MuiSelect-icon": { display: "none" },
269
269
  "& .MuiOutlinedInput-notchedOutline": { borderColor: "action.disabled" }
270
- }), Mt(Bt, {
271
- className: So(n, zo.option),
270
+ }), At(Rt, {
271
+ className: To(n, jo.option),
272
272
  ...a,
273
273
  sx: {
274
274
  display: "flex",
@@ -276,13 +276,13 @@ var zo = {}, jo = rt((e) => {
276
276
  gap: .25,
277
277
  ...a?.sx
278
278
  },
279
- children: [Ot(Ht, {
279
+ children: [Mt(Ut, {
280
280
  sx: { flex: .5 },
281
281
  size: "small",
282
- children: Mt(to, {
282
+ children: At(oo, {
283
283
  value: i,
284
284
  sx: d,
285
- IconComponent: (e) => Ot(We, {
285
+ IconComponent: (e) => Mt(Ee, {
286
286
  iconKey: "ExpandMore",
287
287
  ...e
288
288
  }),
@@ -291,15 +291,15 @@ var zo = {}, jo = rt((e) => {
291
291
  ...t,
292
292
  type: e.target.value
293
293
  }),
294
- children: [Ot(Jt, {
294
+ children: [Mt(Xt, {
295
295
  value: $.AverageType.Above,
296
296
  children: l("condition.above")
297
- }), Ot(Jt, {
297
+ }), Mt(Xt, {
298
298
  value: $.AverageType.Below,
299
299
  children: l("condition.below")
300
300
  })]
301
301
  })
302
- }), Ot(ao, {
302
+ }), Mt(lo, {
303
303
  size: "small",
304
304
  placeholder: l("condition.stdDevs"),
305
305
  value: s,
@@ -314,11 +314,11 @@ var zo = {}, jo = rt((e) => {
314
314
  })]
315
315
  });
316
316
  });
317
- jo.displayName = "AverageOption";
318
- var $o = 0, Ko = /* @__PURE__ */ new WeakMap(), _o = (e) => {
319
- let t = Ko.get(e);
320
- return t || (t = "__ci_" + ++$o, Ko.set(e, t)), t;
321
- }, Ho = Object.freeze([$.BuiltInOperatorNames.Icon, $.BuiltInOperatorNames.Color]), Uo = (e, t, o, n = Ho) => {
317
+ $o.displayName = "AverageOption";
318
+ var Ko = 0, _o = /* @__PURE__ */ new WeakMap(), Ho = (e) => {
319
+ let t = _o.get(e);
320
+ return t || (t = "__ci_" + ++Ko, _o.set(e, t)), t;
321
+ }, Uo = Object.freeze([$.BuiltInOperatorNames.Icon, $.BuiltInOperatorNames.Color]), qo = (e, t, o, n = Uo) => {
322
322
  const r = t ?? Object.values(V.BuiltInOperators), a = e?.getSelectType() ?? null, l = e?.isList;
323
323
  return r.filter((t) => {
324
324
  if (n.includes(t.getName())) return !1;
@@ -329,25 +329,25 @@ var $o = 0, Ko = /* @__PURE__ */ new WeakMap(), _o = (e) => {
329
329
  const r = t.getAcceptsTypes?.();
330
330
  return !r || r.includes(a);
331
331
  }).sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", o));
332
- }, qo = (e, t, o, n) => {
332
+ }, Go = (e, t, o, n) => {
333
333
  const r = (e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", n), a = e.filter((e) => !e.isCombinator?.()).sort(r), l = e.filter((e) => e.isCombinator?.()).sort(r), i = [];
334
- return a.length > 0 && (i.push(Ot(Yt, {
334
+ return a.length > 0 && (i.push(Mt(Jt, {
335
335
  disableSticky: !0,
336
- sx: Qo,
336
+ sx: Yo,
337
337
  children: o("condition.groupBasic")
338
- }, "__header:leaf")), a.forEach((e) => i.push(t(e)))), a.length > 0 && l.length > 0 && i.push(Ot(_t, {}, "__divider")), l.length > 0 && (i.push(Ot(Yt, {
338
+ }, "__header:leaf")), a.forEach((e) => i.push(t(e)))), a.length > 0 && l.length > 0 && i.push(Mt(Ht, {}, "__divider")), l.length > 0 && (i.push(Mt(Jt, {
339
339
  disableSticky: !0,
340
- sx: Qo,
340
+ sx: Yo,
341
341
  children: o("condition.groupCombine")
342
342
  }, "__header:combinator")), l.forEach((e) => i.push(t(e)))), i;
343
- }, Go = (e, t, o = null) => {
343
+ }, Qo = (e, t, o = null) => {
344
344
  if (!e.isCombinator?.()) return e.createDefaultParam?.(o ?? void 0) ?? null;
345
345
  const n = t.find((e) => !e.isCombinator?.()) ?? null, r = n ? {
346
346
  operator: n.getName(),
347
347
  param: n.createDefaultParam?.(o ?? void 0) ?? null
348
348
  } : null;
349
349
  return "not" === e.getName() ? r : r ? [r] : [];
350
- }, Qo = {
350
+ }, Yo = {
351
351
  userSelect: "none",
352
352
  lineHeight: "2",
353
353
  fontSize: "0.75rem",
@@ -355,8 +355,8 @@ var $o = 0, Ko = /* @__PURE__ */ new WeakMap(), _o = (e) => {
355
355
  color: "text.secondary",
356
356
  paddingLeft: 1,
357
357
  paddingRight: 1
358
- }, Yo = { pl: 2 };
359
- var Jo = rt((e) => {
358
+ }, Jo = { pl: 2 };
359
+ var Xo = at((e) => {
360
360
  const { option: t, onOptionChange: o, readOnly: n, ...r } = e, a = function(e, t) {
361
361
  const o = (e) => new Intl.DateTimeFormat(t, { month: "long" }).format(new Date(2e3, e, 1));
362
362
  return [
@@ -508,8 +508,8 @@ var Jo = rt((e) => {
508
508
  ]
509
509
  }
510
510
  ];
511
- }(Ze(), Ge()), l = t?.type ?? $.TimePeriodType.Today;
512
- return Ot(Bt, {
511
+ }(et(), Qe()), l = t?.type ?? $.TimePeriodType.Today;
512
+ return Mt(Rt, {
513
513
  ...r,
514
514
  sx: {
515
515
  display: "flex",
@@ -517,12 +517,12 @@ var Jo = rt((e) => {
517
517
  gap: 2,
518
518
  ...r?.sx
519
519
  },
520
- children: Ot(Ht, {
520
+ children: Mt(Ut, {
521
521
  size: "small",
522
- children: Ot(to, {
522
+ children: Mt(oo, {
523
523
  value: l,
524
524
  sx: { backgroundColor: "background.paper" },
525
- IconComponent: (e) => Ot(We, {
525
+ IconComponent: (e) => Mt(Ee, {
526
526
  iconKey: "ExpandMore",
527
527
  ...e
528
528
  }),
@@ -533,11 +533,11 @@ var Jo = rt((e) => {
533
533
  disabled: n,
534
534
  children: a.map((e, t) => {
535
535
  const o = [];
536
- return t > 0 && o.push(Ot(_t, {}, `divider-${t}`)), o.push(Ot(Yt, {
537
- sx: Qo,
538
- children: e.header
539
- }, `header-${t}`)), e.options.map((e) => o.push(Ot(Jt, {
536
+ return t > 0 && o.push(Mt(Ht, {}, `divider-${t}`)), o.push(Mt(Jt, {
540
537
  sx: Yo,
538
+ children: e.header
539
+ }, `header-${t}`)), e.options.map((e) => o.push(Mt(Xt, {
540
+ sx: Jo,
541
541
  value: e.value,
542
542
  children: e.label
543
543
  }, e.value))), o;
@@ -546,10 +546,10 @@ var Jo = rt((e) => {
546
546
  })
547
547
  });
548
548
  });
549
- Jo.displayName = "TimePeriodOption";
550
- var Xo = rt((e) => {
551
- const { option: t, onOptionChange: o, readOnly: n, ...r } = e, a = Ze(), l = t?.top ?? !0, i = t?.limit ?? 10, s = t?.percent ?? !1;
552
- return Mt(Bt, {
549
+ Xo.displayName = "TimePeriodOption";
550
+ var Zo = at((e) => {
551
+ const { option: t, onOptionChange: o, readOnly: n, ...r } = e, a = et(), l = t?.top ?? !0, i = t?.limit ?? 10, s = t?.percent ?? !1;
552
+ return At(Rt, {
553
553
  ...r,
554
554
  sx: {
555
555
  display: "flex",
@@ -558,13 +558,13 @@ var Xo = rt((e) => {
558
558
  ...r?.sx
559
559
  },
560
560
  children: [
561
- Ot(Ht, {
561
+ Mt(Ut, {
562
562
  size: "small",
563
563
  sx: { flex: 1 },
564
- children: Mt(to, {
564
+ children: At(oo, {
565
565
  value: l ? "top" : "bottom",
566
566
  sx: { backgroundColor: "background.paper" },
567
- IconComponent: (e) => Ot(We, {
567
+ IconComponent: (e) => Mt(Ee, {
568
568
  iconKey: "ExpandMore",
569
569
  ...e
570
570
  }),
@@ -573,16 +573,16 @@ var Xo = rt((e) => {
573
573
  top: "top" === e.target.value
574
574
  }),
575
575
  disabled: n,
576
- children: [Ot(Jt, {
576
+ children: [Mt(Xt, {
577
577
  value: "top",
578
578
  children: a("condition.top")
579
- }), Ot(Jt, {
579
+ }), Mt(Xt, {
580
580
  value: "bottom",
581
581
  children: a("condition.bottom")
582
582
  })]
583
583
  })
584
584
  }),
585
- Ot(ao, {
585
+ Mt(lo, {
586
586
  size: "small",
587
587
  placeholder: "10",
588
588
  value: i,
@@ -598,13 +598,13 @@ var Xo = rt((e) => {
598
598
  slotProps: { input: { sx: { backgroundColor: "background.paper" } } },
599
599
  sx: { flex: .6 }
600
600
  }),
601
- Ot(Ht, {
601
+ Mt(Ut, {
602
602
  size: "small",
603
603
  sx: { flex: 1 },
604
- children: Mt(to, {
604
+ children: At(oo, {
605
605
  value: s ? "percent" : "items",
606
606
  sx: { backgroundColor: "background.paper" },
607
- IconComponent: (e) => Ot(We, {
607
+ IconComponent: (e) => Mt(Ee, {
608
608
  iconKey: "ExpandMore",
609
609
  ...e
610
610
  }),
@@ -613,10 +613,10 @@ var Xo = rt((e) => {
613
613
  percent: "percent" === e.target.value
614
614
  }),
615
615
  disabled: n,
616
- children: [Ot(Jt, {
616
+ children: [Mt(Xt, {
617
617
  value: "items",
618
618
  children: a("condition.items")
619
- }), Ot(Jt, {
619
+ }), Mt(Xt, {
620
620
  value: "percent",
621
621
  children: a("condition.percent")
622
622
  })]
@@ -625,10 +625,10 @@ var Xo = rt((e) => {
625
625
  ]
626
626
  });
627
627
  });
628
- Xo.displayName = "TopNOption";
629
- var Zo = rt((e) => {
630
- const { option: t, onOptionChange: o, readOnly: n, ...r } = e, a = Ze();
631
- return Mt(Bt, {
628
+ Zo.displayName = "TopNOption";
629
+ var en = at((e) => {
630
+ const { option: t, onOptionChange: o, readOnly: n, ...r } = e, a = et();
631
+ return At(Rt, {
632
632
  ...r,
633
633
  sx: {
634
634
  display: "flex",
@@ -636,7 +636,7 @@ var Zo = rt((e) => {
636
636
  gap: .25,
637
637
  ...r?.sx
638
638
  },
639
- children: [Ot(Ro, {
639
+ children: [Mt(Lo, {
640
640
  option: t?.from ?? null,
641
641
  placeholder: a("condition.from"),
642
642
  onOptionChange: (e) => {
@@ -650,7 +650,7 @@ var Zo = rt((e) => {
650
650
  flex: .6,
651
651
  minWidth: 0
652
652
  }
653
- }), Ot(Ro, {
653
+ }), Mt(Lo, {
654
654
  option: t?.to ?? null,
655
655
  placeholder: a("condition.to"),
656
656
  onOptionChange: (e) => {
@@ -667,10 +667,10 @@ var Zo = rt((e) => {
667
667
  })]
668
668
  });
669
669
  });
670
- Zo.displayName = "BetweenOption";
671
- var en = rt((e) => {
672
- const { option: t, onOptionChange: o, readOnly: n, ...r } = e, a = Ze(), i = Eo(), s = t?.isIFormula ? i.display(t) : t ?? "";
673
- return Ot(l, {
670
+ en.displayName = "BetweenOption";
671
+ var tn = at((e) => {
672
+ const { option: t, onOptionChange: o, readOnly: n, ...r } = e, a = et(), i = Bo(), s = t?.isIFormula ? i.display(t) : t ?? "";
673
+ return Mt(l, {
674
674
  size: "small",
675
675
  home: i.home,
676
676
  value: s,
@@ -685,11 +685,11 @@ var en = rt((e) => {
685
685
  ...r
686
686
  });
687
687
  });
688
- en.displayName = "ExpressionOption";
689
- var tn = rt((e) => {
690
- const { value: t = null, selectors: o, onChange: n, title: r, allowNull: a = !1, readOnly: l = !1, ...i } = e, s = Ze(), d = r ?? s("condition.selectorTitle"), c = o.map((e) => {
688
+ tn.displayName = "ExpressionOption";
689
+ var on = at((e) => {
690
+ const { value: t = null, selectors: o, onChange: n, title: r, allowNull: a = !1, readOnly: l = !1, ...i } = e, s = et(), d = r ?? s("condition.selectorTitle"), c = o.map((e) => {
691
691
  const t = e.getName();
692
- return Ot(Jt, {
692
+ return Mt(Xt, {
693
693
  value: t,
694
694
  children: e.getTitle?.() ?? e.getName()
695
695
  }, t);
@@ -699,14 +699,14 @@ var tn = rt((e) => {
699
699
  ...p,
700
700
  "& .MuiSelect-icon": { display: "none" },
701
701
  "& .MuiOutlinedInput-notchedOutline": { borderColor: "action.disabled" }
702
- }), Mt(Ht, {
702
+ }), At(Ut, {
703
703
  size: "small",
704
704
  ...i,
705
- children: [Ot(Qt, { children: d }), Mt(to, {
705
+ children: [Mt(Yt, { children: d }), At(oo, {
706
706
  value: t?.getName() ?? "null",
707
707
  label: d,
708
708
  readOnly: l,
709
- IconComponent: (e) => Ot(We, {
709
+ IconComponent: (e) => Mt(Ee, {
710
710
  iconKey: "ExpandMore",
711
711
  ...e
712
712
  }),
@@ -715,32 +715,32 @@ var tn = rt((e) => {
715
715
  n(r);
716
716
  },
717
717
  sx: p,
718
- children: [a && Ot(Jt, {
718
+ children: [a && Mt(Xt, {
719
719
  value: "null",
720
720
  children: s("condition.anySelector")
721
721
  }), c]
722
722
  })]
723
723
  });
724
724
  });
725
- tn.displayName = "SelectorSelect";
726
- var on = rt((e) => {
727
- const { value: t, operators: o, onChange: n, title: r, readOnly: a = !1, ...l } = e, i = Ze(), s = Ge(), d = r ?? i("condition.operatorTitle"), c = /* @__PURE__ */ new Map();
725
+ on.displayName = "SelectorSelect";
726
+ var nn = at((e) => {
727
+ const { value: t, operators: o, onChange: n, title: r, readOnly: a = !1, ...l } = e, i = et(), s = Qe(), d = r ?? i("condition.operatorTitle"), c = /* @__PURE__ */ new Map();
728
728
  o.forEach((e) => {
729
729
  c.set(e.getName(), e);
730
730
  });
731
- const p = qo(o, (e) => Ot(Jt, {
731
+ const p = Go(o, (e) => Mt(Xt, {
732
732
  value: e.getName(),
733
- sx: Yo,
733
+ sx: Jo,
734
734
  children: e.getTitle?.()
735
735
  }, e.getName()), i, s);
736
- return Mt(Ht, {
736
+ return At(Ut, {
737
737
  size: "small",
738
738
  ...l,
739
- children: [Ot(Qt, { children: d }), Ot(to, {
739
+ children: [Mt(Yt, { children: d }), Mt(oo, {
740
740
  value: t?.getName() ?? "null",
741
741
  label: d,
742
742
  readOnly: a,
743
- IconComponent: (e) => Ot(We, {
743
+ IconComponent: (e) => Mt(Ee, {
744
744
  iconKey: "ExpandMore",
745
745
  ...e
746
746
  }),
@@ -756,23 +756,23 @@ var on = rt((e) => {
756
756
  })]
757
757
  });
758
758
  });
759
- on.displayName = "OperatorSelect";
760
- var nn = rt(ot((e, t) => {
761
- const { icon: o, tooltip: n, label: r, darkMode: a, propsPanel: l, value: i, operators: s, onChange: d, title: c, readOnly: p = !1, ...u } = e, m = Ze(), g = Ge();
759
+ nn.displayName = "OperatorSelect";
760
+ var rn = at(nt((e, t) => {
761
+ const { icon: o, tooltip: n, label: r, darkMode: a, propsPanel: l, value: i, operators: s, onChange: d, title: c, readOnly: p = !1, ...u } = e, m = et(), g = Qe();
762
762
  c ?? m("condition.operatorTitle");
763
- const h = o || Ot(We, { iconKey: "Add" }), y = dt(d);
764
- return y.current = d, Ot(yt, {
763
+ const h = o || Mt(Ee, { iconKey: "Add" }), y = ct(d);
764
+ return y.current = d, Mt(ft, {
765
765
  ref: t,
766
- createPopupPanel: at((e) => {
767
- const { closeFloatAll: t } = e, o = qo(s, (e) => Ot(Jt, {
768
- sx: Yo,
766
+ createPopupPanel: lt((e) => {
767
+ const { closeFloatAll: t } = e, o = Go(s, (e) => Mt(Xt, {
768
+ sx: Jo,
769
769
  value: e.getName(),
770
770
  onClick: () => {
771
771
  t?.(), y.current(e);
772
772
  },
773
773
  children: e.getTitle?.()
774
774
  }, e.getName()), m, g);
775
- return Ot("div", {
775
+ return Mt("div", {
776
776
  style: {
777
777
  minWidth: 200,
778
778
  paddingTop: "8px",
@@ -781,9 +781,9 @@ var nn = rt(ot((e, t) => {
781
781
  },
782
782
  ...l,
783
783
  onKeyDown: (e) => {
784
- e.which === Ee.Enter && t?.();
784
+ e.which === Be.Enter && t?.();
785
785
  },
786
- children: Ot(Xt, {
786
+ children: Mt(Zt, {
787
787
  disablePadding: !0,
788
788
  children: o
789
789
  })
@@ -799,18 +799,18 @@ var nn = rt(ot((e, t) => {
799
799
  icon: h,
800
800
  ...u
801
801
  });
802
- })), rn = rt((e) => {
803
- const { operator: t, inputs: o, onOptionChange: n, operators: r, selector: a, readOnly: l, ...i } = e, s = Ze(), d = "not" === t.getName(), c = d ? null : "and" === t.getName() ? s("condition.and") : s("condition.or"), p = (e, t) => {
802
+ })), an = at((e) => {
803
+ const { operator: t, inputs: o, onOptionChange: n, operators: r, selector: a, readOnly: l, ...i } = e, s = et(), d = "not" === t.getName(), c = d ? null : "and" === t.getName() ? s("condition.and") : s("condition.or"), p = (e, t) => {
804
804
  const r = o.slice(), a = {
805
805
  operator: t.operator,
806
806
  param: t.param
807
807
  };
808
808
  ((e, t) => {
809
- const o = Ko.get(e);
810
- o && Ko.set(t, o);
809
+ const o = _o.get(e);
810
+ o && _o.set(t, o);
811
811
  })(o[e], a), r[e] = a, n(r);
812
812
  }, u = d ? s("condition.not") : c;
813
- return Ot(Bt, {
813
+ return Mt(Rt, {
814
814
  sx: {
815
815
  display: "flex",
816
816
  flexDirection: "column",
@@ -820,7 +820,7 @@ var nn = rt(ot((e, t) => {
820
820
  borderColor: "divider"
821
821
  },
822
822
  ...i,
823
- children: o.map((e, t) => Ot(et.Fragment, { children: Ot(un, {
823
+ children: o.map((e, t) => Mt(tt.Fragment, { children: Mt(mn, {
824
824
  operatorTitle: t > 0 ? u ?? "" : "",
825
825
  operatorParam: e,
826
826
  onOperatorParamChange: (e) => p(t, e),
@@ -832,13 +832,13 @@ var nn = rt(ot((e, t) => {
832
832
  selector: a,
833
833
  readOnly: l,
834
834
  required: d
835
- }) }, _o(e)))
835
+ }) }, Ho(e)))
836
836
  });
837
837
  });
838
- rn.displayName = "CombinatorOption";
839
- var an = rt((e) => {
840
- const { option: t, onOptionChange: o, readOnly: n } = e, r = Ze();
841
- return Mt(so, {
838
+ an.displayName = "CombinatorOption";
839
+ var ln = at((e) => {
840
+ const { option: t, onOptionChange: o, readOnly: n } = e, r = et();
841
+ return At(co, {
842
842
  exclusive: !0,
843
843
  size: "small",
844
844
  value: t ?? !0,
@@ -851,34 +851,34 @@ var an = rt((e) => {
851
851
  backgroundColor: "background.paper"
852
852
  },
853
853
  disabled: n,
854
- children: [Ot(io, {
854
+ children: [Mt(so, {
855
855
  value: !0,
856
856
  children: r("condition.true")
857
- }), Ot(io, {
857
+ }), Mt(so, {
858
858
  value: !1,
859
859
  children: r("condition.false")
860
860
  })]
861
861
  });
862
862
  });
863
- function ln(e, t) {
864
- if (!e) return sn(t);
863
+ function sn(e, t) {
864
+ if (!e) return dn(t);
865
865
  const o = /* @__PURE__ */ new Date(`${e}T${t || "00:00"}`);
866
866
  return isNaN(o.getTime()) ? null : o;
867
867
  }
868
- function sn(e) {
869
- return e ? ln("1970-01-01", e) : null;
868
+ function dn(e) {
869
+ return e ? sn("1970-01-01", e) : null;
870
870
  }
871
- an.displayName = "BooleanOption";
872
- var dn = rt((e) => {
873
- const { option: t, onOptionChange: o, allowFormula: n, readOnly: r, type: a = "dateTime", ...l } = e, i = Ze(), s = "date" === a || "dateTime" === a, d = "time" === a || "dateTime" === a, c = Te(), p = at((e) => {
871
+ ln.displayName = "BooleanOption";
872
+ var cn = at((e) => {
873
+ const { option: t, onOptionChange: o, allowFormula: n, readOnly: r, type: a = "dateTime", ...l } = e, i = et(), s = "date" === a || "dateTime" === a, d = "time" === a || "dateTime" === a, c = Fe(), p = lt((e) => {
874
874
  if (!c || null === e) return null;
875
875
  const t = c.createCell({ value: e }), o = t.getValue();
876
876
  return t.getType() !== G.Number ? null : o;
877
- }, [c]), u = at((e) => c ? c.createCell({
877
+ }, [c]), u = lt((e) => c ? c.createCell({
878
878
  value: e,
879
879
  style: { numberFormat: "Short DateTime" }
880
880
  }).getDate() : null, [c]);
881
- if (n && ("string" == typeof t || t?.isIFormula)) return Ot(Ro, {
881
+ if (n && ("string" == typeof t || t?.isIFormula)) return Mt(Lo, {
882
882
  option: t,
883
883
  onOptionChange: (e) => o(e),
884
884
  readOnly: r,
@@ -889,7 +889,7 @@ var dn = rt((e) => {
889
889
  const y = function(e) {
890
890
  return !e || isNaN(e.getTime()) ? "" : `${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}`;
891
891
  }(m);
892
- return Mt(Bt, {
892
+ return At(Rt, {
893
893
  ...l,
894
894
  sx: {
895
895
  display: "flex",
@@ -897,22 +897,22 @@ var dn = rt((e) => {
897
897
  gap: .5,
898
898
  ...l?.sx
899
899
  },
900
- children: [s && Ot(Io, {
900
+ children: [s && Mt(Oo, {
901
901
  option: g,
902
902
  type: "date",
903
903
  placeholder: i("condition.enterDate"),
904
904
  onOptionChange: (e) => {
905
- const t = p(ln(e, y));
905
+ const t = p(sn(e, y));
906
906
  o(t);
907
907
  },
908
908
  sx: { flex: 1.5 },
909
909
  readOnly: r
910
- }), d && Ot(Io, {
910
+ }), d && Mt(Oo, {
911
911
  option: y,
912
912
  type: "time",
913
913
  placeholder: i("condition.enterTime"),
914
914
  onOptionChange: (e) => {
915
- const t = p("time" === a ? sn(e) : ln(g, e));
915
+ const t = p("time" === a ? dn(e) : sn(g, e));
916
916
  o(t);
917
917
  },
918
918
  sx: { flex: 1 },
@@ -920,28 +920,28 @@ var dn = rt((e) => {
920
920
  })]
921
921
  });
922
922
  });
923
- dn.displayName = "DateTimeOption";
924
- var cn = $.BuiltInOperatorNames, pn = /* @__PURE__ */ new Set([
925
- cn.EqualTo,
926
- cn.GreaterThan,
927
- cn.GreaterThanEqualTo,
928
- cn.LessThan,
929
- cn.LessThanEqualTo,
930
- cn.After,
931
- cn.AfterEqualTo,
932
- cn.Before,
933
- cn.BeforeEqualTo
934
- ]), un = rt((e) => {
935
- const { operatorParam: t, onOperatorParamChange: o, onRemove: n, operators: r, selector: a, operatorTitle: l, readOnly: i, required: s, ...d } = e, c = Ze(), p = l ?? c("condition.when"), u = t?.operator ?? null, m = r.find((e) => e.getName() === u) ?? null, g = t?.param ?? null, h = !!m?.isCombinator?.(), [y, { width: f }] = Fo(), b = st(() => !m || h ? null : m.getParamType?.(a ?? void 0) ?? null, [
923
+ cn.displayName = "DateTimeOption";
924
+ var pn = $.BuiltInOperatorNames, un = /* @__PURE__ */ new Set([
925
+ pn.EqualTo,
926
+ pn.GreaterThan,
927
+ pn.GreaterThanEqualTo,
928
+ pn.LessThan,
929
+ pn.LessThanEqualTo,
930
+ pn.After,
931
+ pn.AfterEqualTo,
932
+ pn.Before,
933
+ pn.BeforeEqualTo
934
+ ]), mn = at((e) => {
935
+ const { operatorParam: t, onOperatorParamChange: o, onRemove: n, operators: r, selector: a, operatorTitle: l, readOnly: i, required: s, ...d } = e, c = et(), p = l ?? c("condition.when"), u = t?.operator ?? null, m = r.find((e) => e.getName() === u) ?? null, g = t?.param ?? null, h = !!m?.isCombinator?.(), [y, { width: f }] = Do(), b = dt(() => !m || h ? null : m.getParamType?.(a ?? void 0) ?? null, [
936
936
  m,
937
937
  h,
938
938
  a
939
- ]), x = !h && "list" !== b && f > 360, v = _e((e) => {
939
+ ]), x = !h && "list" !== b && f > 360, v = He((e) => {
940
940
  o({
941
941
  operator: u,
942
942
  param: e
943
943
  });
944
- }, [o, u]), C = st(() => {
944
+ }, [o, u]), C = dt(() => {
945
945
  if (!m || h || !b) return null;
946
946
  const e = {
947
947
  sx: {
@@ -950,8 +950,8 @@ var cn = $.BuiltInOperatorNames, pn = /* @__PURE__ */ new Set([
950
950
  },
951
951
  option: g,
952
952
  onOptionChange: v
953
- }, t = !!u && pn.has(u);
954
- return b === $.BuiltInSelectorNames.Number || b === $.BuiltInSelectorNames.TextLength ? Ot(t ? Ro : Oo, { ...e }) : b === $.BuiltInSelectorNames.Whole ? t ? Ot(Ro, { ...e }) : Ot(Oo, {
953
+ }, t = !!u && un.has(u);
954
+ return b === $.BuiltInSelectorNames.Number || b === $.BuiltInSelectorNames.TextLength ? Mt(t ? Lo : Mo, { ...e }) : b === $.BuiltInSelectorNames.Whole ? t ? Mt(Lo, { ...e }) : Mt(Mo, {
955
955
  ...e,
956
956
  placeholder: c("condition.enterWholeNumber"),
957
957
  slotProps: { htmlInput: {
@@ -968,39 +968,39 @@ var cn = $.BuiltInOperatorNames, pn = /* @__PURE__ */ new Set([
968
968
  /^-?\d+$/.test(e.clipboardData.getData("text")) || e.preventDefault();
969
969
  }
970
970
  } }
971
- }) : b === $.BuiltInSelectorNames.Text ? Ot(t ? Ro : Io, { ...e }) : b === $.BuiltInSelectorNames.DateTime ? Ot(dn, {
971
+ }) : b === $.BuiltInSelectorNames.Text ? Mt(t ? Lo : Oo, { ...e }) : b === $.BuiltInSelectorNames.DateTime ? Mt(cn, {
972
972
  ...e,
973
973
  allowFormula: t
974
- }) : b === $.BuiltInSelectorNames.Date ? Ot(dn, {
974
+ }) : b === $.BuiltInSelectorNames.Date ? Mt(cn, {
975
975
  ...e,
976
976
  type: "date",
977
977
  allowFormula: t
978
- }) : b === $.BuiltInSelectorNames.Time ? Ot(dn, {
978
+ }) : b === $.BuiltInSelectorNames.Time ? Mt(cn, {
979
979
  ...e,
980
980
  type: "time",
981
981
  allowFormula: t
982
- }) : b === $.BuiltInSelectorNames.List ? Ot(Vo, { ...e }) : b === $.BuiltInSelectorNames.Logical ? Ot(an, { ...e }) : b === $.BuiltInOperatorNames.Average ? Ot(jo, { ...e }) : b === $.BuiltInOperatorNames.TimePeriod ? Ot(Jo, { ...e }) : b === $.BuiltInOperatorNames.TopN ? Ot(Xo, { ...e }) : b === $.BuiltInOperatorNames.Between ? Ot(Zo, { ...e }) : b === $.BuiltInOperatorNames.Expression ? Ot(en, { ...e }) : null;
982
+ }) : b === $.BuiltInSelectorNames.List ? Mt(zo, { ...e }) : b === $.BuiltInSelectorNames.Logical ? Mt(ln, { ...e }) : b === $.BuiltInOperatorNames.Average ? Mt($o, { ...e }) : b === $.BuiltInOperatorNames.TimePeriod ? Mt(Xo, { ...e }) : b === $.BuiltInOperatorNames.TopN ? Mt(Zo, { ...e }) : b === $.BuiltInOperatorNames.Between ? Mt(en, { ...e }) : b === $.BuiltInOperatorNames.Expression ? Mt(tn, { ...e }) : null;
983
983
  }, [
984
984
  m,
985
985
  h,
986
986
  b,
987
987
  g,
988
988
  c
989
- ]), k = st(() => h && g ? Array.isArray(g) ? g : [g] : [], [h, g]), w = h && "not" === m?.getName(), S = (e) => {
989
+ ]), k = dt(() => h && g ? Array.isArray(g) ? g : [g] : [], [h, g]), w = h && "not" === m?.getName(), S = (e) => {
990
990
  if (!e || e === m) return;
991
991
  const t = !!e.isCombinator?.();
992
992
  let n;
993
- if (t && h) n = "not" === e.getName() ? k[0] ?? Go(e, r, a) : k.length > 0 ? k : Go(e, r, a);
993
+ if (t && h) n = "not" === e.getName() ? k[0] ?? Qo(e, r, a) : k.length > 0 ? k : Qo(e, r, a);
994
994
  else {
995
995
  const o = m?.getParamType?.(a ?? void 0) ?? null, l = e.getParamType?.(a ?? void 0) ?? null;
996
- n = !t && l && l === o ? g : Go(e, r, a);
996
+ n = !t && l && l === o ? g : Qo(e, r, a);
997
997
  }
998
998
  o({
999
999
  operator: e?.getName() ?? null,
1000
1000
  param: n
1001
1001
  });
1002
1002
  };
1003
- return Ot(Bt, {
1003
+ return Mt(Rt, {
1004
1004
  ref: y,
1005
1005
  sx: {
1006
1006
  display: "flex",
@@ -1013,7 +1013,7 @@ var cn = $.BuiltInOperatorNames, pn = /* @__PURE__ */ new Set([
1013
1013
  p: 1
1014
1014
  },
1015
1015
  ...d,
1016
- children: x ? Mt(Bt, {
1016
+ children: x ? At(Rt, {
1017
1017
  sx: {
1018
1018
  display: "flex",
1019
1019
  flexDirection: "row",
@@ -1021,7 +1021,7 @@ var cn = $.BuiltInOperatorNames, pn = /* @__PURE__ */ new Set([
1021
1021
  gap: .5
1022
1022
  },
1023
1023
  children: [
1024
- Ot(on, {
1024
+ Mt(nn, {
1025
1025
  title: p,
1026
1026
  sx: { flex: .4 },
1027
1027
  value: m,
@@ -1030,12 +1030,12 @@ var cn = $.BuiltInOperatorNames, pn = /* @__PURE__ */ new Set([
1030
1030
  readOnly: i
1031
1031
  }),
1032
1032
  C,
1033
- !i && !s && Ot(ht, {
1034
- icon: Ot(We, { iconKey: "Close" }),
1033
+ !i && !s && Mt(yt, {
1034
+ icon: Mt(Ee, { iconKey: "Close" }),
1035
1035
  onClick: n
1036
1036
  })
1037
1037
  ]
1038
- }) : Mt(It, { children: [Mt(Bt, {
1038
+ }) : At(Ot, { children: [At(Rt, {
1039
1039
  sx: {
1040
1040
  display: "flex",
1041
1041
  flexDirection: "row",
@@ -1043,7 +1043,7 @@ var cn = $.BuiltInOperatorNames, pn = /* @__PURE__ */ new Set([
1043
1043
  gap: .5
1044
1044
  },
1045
1045
  children: [
1046
- Ot(on, {
1046
+ Mt(nn, {
1047
1047
  title: p,
1048
1048
  sx: { flex: 1 },
1049
1049
  value: m,
@@ -1051,14 +1051,14 @@ var cn = $.BuiltInOperatorNames, pn = /* @__PURE__ */ new Set([
1051
1051
  onChange: S,
1052
1052
  readOnly: i
1053
1053
  }),
1054
- h && !w && !i && Ot(nn, {
1054
+ h && !w && !i && Mt(rn, {
1055
1055
  label: m?.getTitle?.(),
1056
- icon: Ot(We, { iconKey: "Add" }),
1056
+ icon: Mt(Ee, { iconKey: "Add" }),
1057
1057
  operators: r,
1058
1058
  value: null,
1059
1059
  onChange: (e) => {
1060
1060
  if (!e) return;
1061
- const t = Go(e, r, a), n = [...k, {
1061
+ const t = Qo(e, r, a), n = [...k, {
1062
1062
  operator: e?.getName() ?? null,
1063
1063
  param: t
1064
1064
  }];
@@ -1068,13 +1068,13 @@ var cn = $.BuiltInOperatorNames, pn = /* @__PURE__ */ new Set([
1068
1068
  });
1069
1069
  }
1070
1070
  }),
1071
- !i && !s && Ot(ht, {
1072
- icon: Ot(We, { iconKey: "Close" }),
1071
+ !i && !s && Mt(yt, {
1072
+ icon: Mt(Ee, { iconKey: "Close" }),
1073
1073
  disabled: i,
1074
1074
  onClick: n
1075
1075
  })
1076
1076
  ]
1077
- }), h ? Ot(rn, {
1077
+ }), h ? Mt(an, {
1078
1078
  operator: m,
1079
1079
  inputs: k,
1080
1080
  onOptionChange: (e) => {
@@ -1089,13 +1089,13 @@ var cn = $.BuiltInOperatorNames, pn = /* @__PURE__ */ new Set([
1089
1089
  }) : C] })
1090
1090
  });
1091
1091
  });
1092
- un.displayName = "OperatorAndParamEditor";
1093
- var mn = rt((e) => {
1094
- const { condition: t, onConditionChange: o, showIncludeBlanks: n = !1, selectorTitle: r, readOnly: a, operators: l, selectors: i, ranges: s, ...d } = e, c = Ze(), p = Ge(), [u, m] = ct(() => t?.getSelector() ?? null), [g, h] = ct(() => t?.getOperator() ? {
1092
+ mn.displayName = "OperatorAndParamEditor";
1093
+ var gn = at((e) => {
1094
+ const { condition: t, onConditionChange: o, showIncludeBlanks: n = !1, selectorTitle: r, readOnly: a, operators: l, selectors: i, ranges: s, ...d } = e, c = et(), p = Qe(), [u, m] = pt(() => t?.getSelector() ?? null), [g, h] = pt(() => t?.getOperator() ? {
1095
1095
  operator: t.getOperator().getName(),
1096
1096
  param: t.getParam()
1097
- } : null), [y, f] = ct(() => t?.isIncludeBlanks() ?? !1);
1098
- it(() => {
1097
+ } : null), [y, f] = pt(() => t?.isIncludeBlanks() ?? !1);
1098
+ st(() => {
1099
1099
  if (!t) return m(null), void h(null);
1100
1100
  const e = t.getOperator(), o = t.getSelector() ?? null;
1101
1101
  m(o), h(e ? {
@@ -1103,12 +1103,12 @@ var mn = rt((e) => {
1103
1103
  param: t.getParam()
1104
1104
  } : null), f(t.isIncludeBlanks());
1105
1105
  }, [t]);
1106
- const b = st(() => (i ?? Object.values(V.BuiltInSelectors)).slice().sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", p)), [i, p]), x = st(() => l ?? Object.values(V.BuiltInOperators), [l]), v = st(() => Uo(u, x, p), [
1106
+ const b = dt(() => (i ?? Object.values(V.BuiltInSelectors)).slice().sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", p)), [i, p]), x = dt(() => l ?? Object.values(V.BuiltInOperators), [l]), v = dt(() => qo(u, x, p), [
1107
1107
  u,
1108
1108
  x,
1109
1109
  p
1110
- ]), C = dt(/* @__PURE__ */ new Map()), k = (e) => e?.getName() ?? "", w = dt(null), S = dt(!1);
1111
- it(() => {
1110
+ ]), C = ct(/* @__PURE__ */ new Map()), k = (e) => e?.getName() ?? "", w = ct(null), S = ct(!1);
1111
+ st(() => {
1112
1112
  if (!S.current) return;
1113
1113
  S.current = !1;
1114
1114
  const e = Array.from(w.current?.querySelectorAll("input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"hidden\"]):not([tabindex=\"-1\"]), textarea") ?? []).find((e) => !e.disabled && !e.readOnly && "true" !== e.getAttribute("aria-hidden"));
@@ -1121,7 +1121,7 @@ var mn = rt((e) => {
1121
1121
  includeBlanks: y
1122
1122
  });
1123
1123
  }, F = n;
1124
- return Mt(Bt, {
1124
+ return At(Rt, {
1125
1125
  sx: {
1126
1126
  display: "flex",
1127
1127
  flexDirection: "column",
@@ -1135,27 +1135,27 @@ var mn = rt((e) => {
1135
1135
  },
1136
1136
  ...d,
1137
1137
  children: [
1138
- Ot(tn, {
1138
+ Mt(on, {
1139
1139
  title: r,
1140
1140
  selectors: b,
1141
1141
  value: u,
1142
1142
  onChange: (e) => {
1143
1143
  g && C.current.set(k(u), g);
1144
1144
  const t = ((e) => {
1145
- const { from: t, to: o, current: n, remembered: r, operators: a, context: l } = e, i = Uo(o, a), s = (e) => e && i.find((t) => t.getName() === e) || null;
1145
+ const { from: t, to: o, current: n, remembered: r, operators: a, context: l } = e, i = qo(o, a), s = (e) => e && i.find((t) => t.getName() === e) || null;
1146
1146
  if (r && s(r.operator)) return r;
1147
1147
  const d = s(n?.operator);
1148
1148
  if (n && d) {
1149
1149
  const e = (d.getParamType?.(t ?? void 0) ?? null) !== (d.getParamType?.(o ?? void 0) ?? null);
1150
1150
  return d.isCombinator?.() || e ? {
1151
1151
  operator: n.operator,
1152
- param: Go(d, i, o)
1152
+ param: Qo(d, i, o)
1153
1153
  } : n;
1154
1154
  }
1155
1155
  const c = o?.getDefaultCondition?.(l) ?? null, p = s(c?.operator);
1156
1156
  return c && p ? {
1157
1157
  operator: c.operator,
1158
- param: void 0 !== c.param ? c.param : Go(p, i, o)
1158
+ param: void 0 !== c.param ? c.param : Qo(p, i, o)
1159
1159
  } : null;
1160
1160
  })({
1161
1161
  from: u,
@@ -1177,10 +1177,10 @@ var mn = rt((e) => {
1177
1177
  allowNull: !0,
1178
1178
  readOnly: a
1179
1179
  }),
1180
- g ? Ot(Bt, {
1180
+ g ? Mt(Rt, {
1181
1181
  ref: w,
1182
1182
  sx: { display: "contents" },
1183
- children: Ot(un, {
1183
+ children: Mt(mn, {
1184
1184
  operatorParam: g,
1185
1185
  onOperatorParamChange: T,
1186
1186
  onRemove: () => {
@@ -1195,23 +1195,23 @@ var mn = rt((e) => {
1195
1195
  selector: u,
1196
1196
  readOnly: a
1197
1197
  })
1198
- }) : !a && Ot(Bt, {
1198
+ }) : !a && Mt(Rt, {
1199
1199
  sx: { display: "flex" },
1200
- children: Ot(nn, {
1200
+ children: Mt(rn, {
1201
1201
  label: c("condition.when"),
1202
1202
  operators: v,
1203
1203
  value: null,
1204
1204
  onChange: (e) => {
1205
1205
  e && (S.current = !0, T({
1206
1206
  operator: e?.getName() ?? null,
1207
- param: Go(e, v, u)
1207
+ param: Qo(e, v, u)
1208
1208
  }));
1209
1209
  },
1210
1210
  readOnly: a
1211
1211
  })
1212
1212
  }),
1213
- F && Ot(Ut, {
1214
- control: Ot(zt, {
1213
+ F && Mt(qt, {
1214
+ control: Mt(jt, {
1215
1215
  checked: y,
1216
1216
  onChange: (e) => {
1217
1217
  t = e.target.checked, f(t), o?.({
@@ -1229,10 +1229,10 @@ var mn = rt((e) => {
1229
1229
  ]
1230
1230
  });
1231
1231
  });
1232
- mn.displayName = "ConditionEditor";
1233
- var gn = rt((e) => {
1232
+ gn.displayName = "ConditionEditor";
1233
+ var hn = at((e) => {
1234
1234
  const { variant: t = "format", children: o, sx: n, ...r } = e;
1235
- return Ot(Bt, {
1235
+ return Mt(Rt, {
1236
1236
  className: `sxl-cf-rule-section sxl-cf-rule-section-${t}`,
1237
1237
  sx: {
1238
1238
  display: "flex",
@@ -1249,25 +1249,25 @@ var gn = rt((e) => {
1249
1249
  children: o
1250
1250
  });
1251
1251
  });
1252
- gn.displayName = "RuleSection";
1253
- var hn = new R("transparent"), yn = {
1254
- lightRedFillDarkRedText: ko("conditionalFormat.preset.lightRedFillDarkRedText"),
1255
- yellowFillDarkYellowText: ko("conditionalFormat.preset.yellowFillDarkYellowText"),
1256
- greenFillDarkGreenText: ko("conditionalFormat.preset.greenFillDarkGreenText"),
1257
- lightRedFill: ko("conditionalFormat.preset.lightRedFill"),
1258
- redText: ko("conditionalFormat.preset.redText"),
1259
- redBorder: ko("conditionalFormat.preset.redBorder")
1260
- }, fn = (e) => e ? "string" == typeof e ? e : e.type === H.Type.None ? null : e.color ?? e.foreground ?? null : null, bn = (e, t) => "auto" === e ? null : W(e, t), xn = rt((n) => {
1261
- const { format: r, onFormatChange: a, readOnly: l, ...i } = n, s = Ze(), { workbook: d, schemeLookup: c, themeKey: p, darkMode: u, propsColorPanel: m } = B(), g = r?.font ?? null, h = (g?.weight ?? 400) >= 600, y = g?.style === U.Style.Italic, f = !!g?.underline && g.underline !== U.UnderlineStyle.None, b = !!g?.strike, x = (e) => {
1252
+ hn.displayName = "RuleSection";
1253
+ var yn = new R("transparent"), fn = {
1254
+ lightRedFillDarkRedText: wo("conditionalFormat.preset.lightRedFillDarkRedText"),
1255
+ yellowFillDarkYellowText: wo("conditionalFormat.preset.yellowFillDarkYellowText"),
1256
+ greenFillDarkGreenText: wo("conditionalFormat.preset.greenFillDarkGreenText"),
1257
+ lightRedFill: wo("conditionalFormat.preset.lightRedFill"),
1258
+ redText: wo("conditionalFormat.preset.redText"),
1259
+ redBorder: wo("conditionalFormat.preset.redBorder")
1260
+ }, bn = (e) => e ? "string" == typeof e ? e : e.type === H.Type.None ? null : e.color ?? e.foreground ?? null : null, xn = (e, t) => "auto" === e ? null : W(e, t), vn = at((n) => {
1261
+ const { format: r, onFormatChange: a, readOnly: l, ...i } = n, s = et(), { workbook: d, schemeLookup: c, themeKey: p, darkMode: u, propsColorPanel: m } = B(), g = r?.font ?? null, h = (g?.weight ?? 400) >= 600, y = g?.style === U.Style.Italic, f = !!g?.underline && g.underline !== U.UnderlineStyle.None, b = !!g?.strike, x = (e) => {
1262
1262
  const t = { ...g };
1263
1263
  for (const [o, n] of Object.entries(e)) void 0 === n ? delete t[o] : t[o] = n;
1264
1264
  const o = { ...r };
1265
1265
  0 === Object.keys(t).length ? delete o.font : o.font = t, a(0 === Object.keys(o).length ? null : o);
1266
- }, v = st(() => d?.getStyles().getNormal().getFont().getColor(), [d, p]), C = st(() => bn(g?.color, d), [
1266
+ }, v = dt(() => d?.getStyles().getNormal().getFont().getColor(), [d, p]), C = dt(() => xn(g?.color, d), [
1267
1267
  g?.color,
1268
1268
  d,
1269
1269
  p
1270
- ]), k = st(() => bn(fn(r?.fill), d), [
1270
+ ]), k = dt(() => xn(bn(r?.fill), d), [
1271
1271
  r?.fill,
1272
1272
  d,
1273
1273
  p
@@ -1276,15 +1276,15 @@ var hn = new R("transparent"), yn = {
1276
1276
  border: "none",
1277
1277
  borderRadius: 1
1278
1278
  };
1279
- return Mt(gn, {
1279
+ return At(hn, {
1280
1280
  ...i,
1281
- children: [Mt(Bt, {
1281
+ children: [At(Rt, {
1282
1282
  sx: {
1283
1283
  display: "flex",
1284
1284
  alignItems: "flex-start",
1285
1285
  gap: 1
1286
1286
  },
1287
- children: [Ot(Bt, {
1287
+ children: [Mt(Rt, {
1288
1288
  sx: {
1289
1289
  flex: "1 1 auto",
1290
1290
  minWidth: 0,
@@ -1293,10 +1293,10 @@ var hn = new R("transparent"), yn = {
1293
1293
  flexWrap: "wrap"
1294
1294
  },
1295
1295
  children: ae.map((e, t) => {
1296
- const o = bn(fn(e.style.fill), d), n = bn(e.style.font?.color, d), r = e.style.borders ? bn(Object.values(e.style.borders)[0]?.color, d) : null;
1297
- return Ot(A, {
1296
+ const o = xn(bn(e.style.fill), d), n = xn(e.style.font?.color, d), r = e.style.borders ? xn(Object.values(e.style.borders)[0]?.color, d) : null;
1297
+ return Mt(A, {
1298
1298
  sheet: !0,
1299
- title: s(yn[e.key] ?? e.key),
1299
+ title: s(fn[e.key] ?? e.key),
1300
1300
  disabled: l,
1301
1301
  onClick: () => a(structuredClone(e.style)),
1302
1302
  sx: {
@@ -1308,7 +1308,7 @@ var hn = new R("transparent"), yn = {
1308
1308
  children: "Aa"
1309
1309
  }, t);
1310
1310
  })
1311
- }), Ot(A, {
1311
+ }), Mt(A, {
1312
1312
  title: s("conditionalFormat.clearStyle"),
1313
1313
  disabled: l || !r,
1314
1314
  onClick: () => a(null),
@@ -1316,55 +1316,55 @@ var hn = new R("transparent"), yn = {
1316
1316
  color: "text.secondary",
1317
1317
  "&:disabled": { opacity: .4 }
1318
1318
  },
1319
- children: Ot(We, {
1319
+ children: Mt(Ee, {
1320
1320
  iconKey: "ClearFormats",
1321
1321
  size: 16
1322
1322
  })
1323
1323
  })]
1324
- }), Mt(Bt, {
1324
+ }), At(Rt, {
1325
1325
  sx: {
1326
1326
  display: "flex",
1327
1327
  alignItems: "center",
1328
1328
  gap: .25
1329
1329
  },
1330
1330
  children: [
1331
- Ot(io, {
1331
+ Mt(so, {
1332
1332
  value: "bold",
1333
1333
  size: "small",
1334
1334
  sx: w,
1335
1335
  selected: h,
1336
1336
  disabled: l,
1337
1337
  onChange: () => x({ weight: h ? void 0 : 700 }),
1338
- children: Ot(We, { iconKey: "TextBold" })
1338
+ children: Mt(Ee, { iconKey: "TextBold" })
1339
1339
  }),
1340
- Ot(io, {
1340
+ Mt(so, {
1341
1341
  value: "italic",
1342
1342
  size: "small",
1343
1343
  sx: w,
1344
1344
  selected: y,
1345
1345
  disabled: l,
1346
1346
  onChange: () => x({ style: y ? void 0 : U.Style.Italic }),
1347
- children: Ot(We, { iconKey: "TextItalic" })
1347
+ children: Mt(Ee, { iconKey: "TextItalic" })
1348
1348
  }),
1349
- Ot(io, {
1349
+ Mt(so, {
1350
1350
  value: "underline",
1351
1351
  size: "small",
1352
1352
  sx: w,
1353
1353
  selected: f,
1354
1354
  disabled: l,
1355
1355
  onChange: () => x({ underline: f ? void 0 : U.UnderlineStyle.Single }),
1356
- children: Ot(We, { iconKey: "TextUnderline" })
1356
+ children: Mt(Ee, { iconKey: "TextUnderline" })
1357
1357
  }),
1358
- Ot(io, {
1358
+ Mt(so, {
1359
1359
  value: "strike",
1360
1360
  size: "small",
1361
1361
  sx: w,
1362
1362
  selected: b,
1363
1363
  disabled: l,
1364
1364
  onChange: () => x({ strike: !b || void 0 }),
1365
- children: Ot(We, { iconKey: "TextStrike" })
1365
+ children: Mt(Ee, { iconKey: "TextStrike" })
1366
1366
  }),
1367
- d && Ot(t, {
1367
+ d && Mt(t, {
1368
1368
  tooltip: s("conditionalFormat.border"),
1369
1369
  selectedBorder: r?.borders,
1370
1370
  createBorder: (e) => d.getStyles().getNormal().createStyle({ borders: e }).getBorders(),
@@ -1377,7 +1377,7 @@ var hn = new R("transparent"), yn = {
1377
1377
  e && 0 !== Object.keys(e).length ? t.borders = e : delete t.borders, a(0 === Object.keys(t).length ? null : t);
1378
1378
  })(e)
1379
1379
  }),
1380
- Ot(o, {
1380
+ Mt(o, {
1381
1381
  icon: "fill.colored",
1382
1382
  tooltip: s("conditionalFormat.fillColor"),
1383
1383
  selectedColor: k,
@@ -1392,13 +1392,13 @@ var hn = new R("transparent"), yn = {
1392
1392
  darkMode: u,
1393
1393
  propsPanel: {
1394
1394
  disableAlpha: !0,
1395
- autoColor: hn,
1396
- autoColorLabelKey: ko("color.noFill"),
1395
+ autoColor: yn,
1396
+ autoColorLabelKey: wo("color.noFill"),
1397
1397
  autoColorPosition: e.End,
1398
1398
  ...m
1399
1399
  }
1400
1400
  }),
1401
- Ot(o, {
1401
+ Mt(o, {
1402
1402
  icon: "text.colored",
1403
1403
  tooltip: s("conditionalFormat.fontColor"),
1404
1404
  selectedColor: C,
@@ -1415,24 +1415,24 @@ var hn = new R("transparent"), yn = {
1415
1415
  })]
1416
1416
  });
1417
1417
  });
1418
- xn.displayName = "ConditionalFormatStylePicker";
1419
- var vn = {
1420
- [K.ColorStopType.AutoMin]: ko("conditionalFormat.stopType.autoMin"),
1421
- [K.ColorStopType.AutoMax]: ko("conditionalFormat.stopType.autoMax"),
1422
- [K.ColorStopType.Min]: ko("conditionalFormat.stopType.min"),
1423
- [K.ColorStopType.Max]: ko("conditionalFormat.stopType.max"),
1424
- [K.ColorStopType.Num]: ko("conditionalFormat.stopType.num"),
1425
- [K.ColorStopType.Percent]: ko("conditionalFormat.stopType.percent"),
1426
- [K.ColorStopType.Percentile]: ko("conditionalFormat.stopType.percentile"),
1427
- [K.ColorStopType.Formula]: ko("conditionalFormat.stopType.formula")
1428
- }, Cn = /* @__PURE__ */ new Set([
1418
+ vn.displayName = "ConditionalFormatStylePicker";
1419
+ var Cn = {
1420
+ [K.ColorStopType.AutoMin]: wo("conditionalFormat.stopType.autoMin"),
1421
+ [K.ColorStopType.AutoMax]: wo("conditionalFormat.stopType.autoMax"),
1422
+ [K.ColorStopType.Min]: wo("conditionalFormat.stopType.min"),
1423
+ [K.ColorStopType.Max]: wo("conditionalFormat.stopType.max"),
1424
+ [K.ColorStopType.Num]: wo("conditionalFormat.stopType.num"),
1425
+ [K.ColorStopType.Percent]: wo("conditionalFormat.stopType.percent"),
1426
+ [K.ColorStopType.Percentile]: wo("conditionalFormat.stopType.percentile"),
1427
+ [K.ColorStopType.Formula]: wo("conditionalFormat.stopType.formula")
1428
+ }, kn = /* @__PURE__ */ new Set([
1429
1429
  K.ColorStopType.AutoMin,
1430
1430
  K.ColorStopType.AutoMax,
1431
1431
  K.ColorStopType.Min,
1432
1432
  K.ColorStopType.Max
1433
- ]), kn = rt((e) => {
1434
- const { label: t, stop: n, onStopChange: r, allowedTypes: a, showColor: i = !1, leading: s, showExclusive: d = !1, readOnly: c, ...p } = e, u = Ze(), { darkMode: m, toColor: g, propsColorPanel: h } = B(), y = Eo(), f = n.type ?? K.ColorStopType.Num, b = !Cn.has(f), x = c || !b, v = f === K.ColorStopType.Formula, C = n.value?.isIFormula ? n.value : null, k = n.color, w = i ? g(k) : null;
1435
- return Mt(Bt, {
1433
+ ]), wn = at((e) => {
1434
+ const { label: t, stop: n, onStopChange: r, allowedTypes: a, showColor: i = !1, leading: s, showExclusive: d = !1, readOnly: c, ...p } = e, u = et(), { darkMode: m, toColor: g, propsColorPanel: h } = B(), y = Bo(), f = n.type ?? K.ColorStopType.Num, b = !kn.has(f), x = c || !b, v = f === K.ColorStopType.Formula, C = n.value?.isIFormula ? n.value : null, k = n.color, w = i ? g(k) : null;
1435
+ return At(Rt, {
1436
1436
  sx: {
1437
1437
  display: "flex",
1438
1438
  alignItems: "center",
@@ -1440,7 +1440,7 @@ var vn = {
1440
1440
  },
1441
1441
  ...p,
1442
1442
  children: [
1443
- void 0 !== t && Ot(co, {
1443
+ void 0 !== t && Mt(po, {
1444
1444
  variant: "caption",
1445
1445
  sx: {
1446
1446
  color: "text.secondary",
@@ -1452,7 +1452,7 @@ var vn = {
1452
1452
  children: t
1453
1453
  }),
1454
1454
  s,
1455
- i && Ot(o, {
1455
+ i && Mt(o, {
1456
1456
  tooltip: u("conditionalFormat.stopColor"),
1457
1457
  selectedColor: w,
1458
1458
  disabled: c,
@@ -1468,7 +1468,7 @@ var vn = {
1468
1468
  ...h
1469
1469
  }
1470
1470
  }),
1471
- d && Mt(to, {
1471
+ d && At(oo, {
1472
1472
  size: "small",
1473
1473
  value: n.exclusive ? "gt" : "gte",
1474
1474
  disabled: c,
@@ -1480,15 +1480,15 @@ var vn = {
1480
1480
  flex: "0 0 auto",
1481
1481
  backgroundColor: "background.paper"
1482
1482
  },
1483
- children: [Ot(Jt, {
1483
+ children: [Mt(Xt, {
1484
1484
  value: "gte",
1485
1485
  children: ">="
1486
- }), Ot(Jt, {
1486
+ }), Mt(Xt, {
1487
1487
  value: "gt",
1488
1488
  children: ">"
1489
1489
  })]
1490
1490
  }),
1491
- Ot(to, {
1491
+ Mt(oo, {
1492
1492
  size: "small",
1493
1493
  value: f,
1494
1494
  disabled: c,
@@ -1497,7 +1497,7 @@ var vn = {
1497
1497
  ...n,
1498
1498
  type: e
1499
1499
  };
1500
- if (Cn.has(e)) delete t.value;
1500
+ if (kn.has(e)) delete t.value;
1501
1501
  else if (void 0 === t.value) t.value = e === K.ColorStopType.Formula ? "" : 0;
1502
1502
  else if (e !== K.ColorStopType.Formula && "number" != typeof t.value) {
1503
1503
  const e = "string" == typeof t.value ? Number(t.value) : NaN;
@@ -1510,12 +1510,12 @@ var vn = {
1510
1510
  minWidth: 0,
1511
1511
  backgroundColor: "background.paper"
1512
1512
  },
1513
- children: a.map((e) => Ot(Jt, {
1513
+ children: a.map((e) => Mt(Xt, {
1514
1514
  value: e,
1515
- children: u(vn[e])
1515
+ children: u(Cn[e])
1516
1516
  }, e))
1517
1517
  }),
1518
- v ? Ot(l, {
1518
+ v ? Mt(l, {
1519
1519
  size: "small",
1520
1520
  home: y.home,
1521
1521
  value: C ? y.display(C) : `${n.value ?? ""}`,
@@ -1537,7 +1537,7 @@ var vn = {
1537
1537
  minWidth: 0,
1538
1538
  "& .MuiInputBase-root": { backgroundColor: x ? "action.disabledBackground" : "background.paper" }
1539
1539
  }
1540
- }) : Ot(ao, {
1540
+ }) : Mt(lo, {
1541
1541
  size: "small",
1542
1542
  type: "number",
1543
1543
  placeholder: b ? void 0 : u("conditionalFormat.stopFromData"),
@@ -1563,34 +1563,34 @@ var vn = {
1563
1563
  ]
1564
1564
  });
1565
1565
  });
1566
- kn.displayName = "ScaleStopRow";
1567
- var wn = [
1566
+ wn.displayName = "ScaleStopRow";
1567
+ var Sn = [
1568
1568
  K.ColorStopType.Min,
1569
1569
  K.ColorStopType.Max,
1570
1570
  K.ColorStopType.Num,
1571
1571
  K.ColorStopType.Percent,
1572
1572
  K.ColorStopType.Percentile,
1573
1573
  K.ColorStopType.Formula
1574
- ], Sn = rt((e) => {
1575
- const { scale: t, onScaleChange: o, readOnly: n, ...r } = e, a = Ze(), { workbook: l, toColor: i } = B(), s = t.stops ?? [], d = 2 === s.length ? [ko("conditionalFormat.stop.minimum"), ko("conditionalFormat.stop.maximum")] : [
1576
- ko("conditionalFormat.stop.minimum"),
1577
- ko("conditionalFormat.stop.midpoint"),
1578
- ko("conditionalFormat.stop.maximum")
1574
+ ], Tn = at((e) => {
1575
+ const { scale: t, onScaleChange: o, readOnly: n, ...r } = e, a = et(), { workbook: l, toColor: i } = B(), s = t.stops ?? [], d = 2 === s.length ? [wo("conditionalFormat.stop.minimum"), wo("conditionalFormat.stop.maximum")] : [
1576
+ wo("conditionalFormat.stop.minimum"),
1577
+ wo("conditionalFormat.stop.midpoint"),
1578
+ wo("conditionalFormat.stop.maximum")
1579
1579
  ];
1580
- return Mt(Bt, {
1580
+ return At(Rt, {
1581
1581
  sx: {
1582
1582
  display: "flex",
1583
1583
  flexDirection: "column",
1584
1584
  gap: 1
1585
1585
  },
1586
1586
  ...r,
1587
- children: [Ot(gn, { children: Mt(Bt, {
1587
+ children: [Mt(hn, { children: At(Rt, {
1588
1588
  sx: {
1589
1589
  display: "flex",
1590
1590
  alignItems: "flex-start",
1591
1591
  gap: 1
1592
1592
  },
1593
- children: [Ot(Bt, {
1593
+ children: [Mt(Rt, {
1594
1594
  sx: {
1595
1595
  flex: "1 1 auto",
1596
1596
  minWidth: 0,
@@ -1598,13 +1598,13 @@ var wn = [
1598
1598
  gap: .5,
1599
1599
  flexWrap: "wrap"
1600
1600
  },
1601
- children: Y.filter((e) => e.stops.length === (2 === s.length ? 2 : 3)).map((e, t) => Ot(A, {
1601
+ children: Y.filter((e) => e.stops.length === (2 === s.length ? 2 : 3)).map((e, t) => Mt(A, {
1602
1602
  sheet: !0,
1603
1603
  disabled: n,
1604
1604
  onClick: () => o(structuredClone(e)),
1605
- children: Ot(v, { rows: x(e.stops ?? [], b, l) })
1605
+ children: Mt(v, { rows: x(e.stops ?? [], b, l) })
1606
1606
  }, t))
1607
- }), Mt(so, {
1607
+ }), At(co, {
1608
1608
  exclusive: !0,
1609
1609
  size: "small",
1610
1610
  value: 2 === s.length ? 2 : 3,
@@ -1633,7 +1633,7 @@ var wn = [
1633
1633
  })(n);
1634
1634
  },
1635
1635
  sx: { flex: "0 0 auto" },
1636
- children: [Ot(io, {
1636
+ children: [Mt(so, {
1637
1637
  value: 2,
1638
1638
  sx: {
1639
1639
  textTransform: "none",
@@ -1641,7 +1641,7 @@ var wn = [
1641
1641
  pb: .25
1642
1642
  },
1643
1643
  children: a("conditionalFormat.twoColor")
1644
- }), Ot(io, {
1644
+ }), Mt(so, {
1645
1645
  value: 3,
1646
1646
  sx: {
1647
1647
  textTransform: "none",
@@ -1651,12 +1651,12 @@ var wn = [
1651
1651
  children: a("conditionalFormat.threeColor")
1652
1652
  })]
1653
1653
  })]
1654
- }) }), Ot(gn, {
1654
+ }) }), Mt(hn, {
1655
1655
  variant: "config",
1656
- children: s.map((e, r) => Ot(kn, {
1656
+ children: s.map((e, r) => Mt(wn, {
1657
1657
  label: a(d[Math.min(r, d.length - 1)]),
1658
1658
  stop: e,
1659
- allowedTypes: wn,
1659
+ allowedTypes: Sn,
1660
1660
  showColor: !0,
1661
1661
  readOnly: n,
1662
1662
  onStopChange: (e) => {
@@ -1670,42 +1670,42 @@ var wn = [
1670
1670
  })]
1671
1671
  });
1672
1672
  });
1673
- Sn.displayName = "ColorScaleRulePanel";
1674
- var Tn = [
1673
+ Tn.displayName = "ColorScaleRulePanel";
1674
+ var Fn = [
1675
1675
  K.ColorStopType.AutoMin,
1676
1676
  K.ColorStopType.Min,
1677
1677
  K.ColorStopType.Num,
1678
1678
  K.ColorStopType.Percent,
1679
1679
  K.ColorStopType.Percentile,
1680
1680
  K.ColorStopType.Formula
1681
- ], Fn = [
1681
+ ], Dn = [
1682
1682
  K.ColorStopType.AutoMax,
1683
1683
  K.ColorStopType.Max,
1684
1684
  K.ColorStopType.Num,
1685
1685
  K.ColorStopType.Percent,
1686
1686
  K.ColorStopType.Percentile,
1687
1687
  K.ColorStopType.Formula
1688
- ], Dn = "__auto__", Nn = rt((e) => {
1689
- const { scale: t, onScaleChange: n, readOnly: r, ...a } = e, l = Ze(), { darkMode: i, toColor: s, propsColorPanel: d } = B(), c = t.stops ?? [], p = s(t.color), m = s(t.negativeFillColor), g = s(t.borderColor), h = s(t.negativeBorderColor), y = t.gradient ?? !1, f = (e) => {
1688
+ ], In = "__auto__", Nn = at((e) => {
1689
+ const { scale: t, onScaleChange: n, readOnly: r, ...a } = e, l = et(), { darkMode: i, toColor: s, propsColorPanel: d } = B(), c = t.stops ?? [], p = s(t.color), m = s(t.negativeFillColor), g = s(t.borderColor), h = s(t.negativeBorderColor), y = t.gradient ?? !1, f = (e) => {
1690
1690
  const o = { ...t };
1691
1691
  for (const [t, n] of Object.entries(e)) void 0 === n ? delete o[t] : o[t] = n;
1692
1692
  n(o);
1693
1693
  }, b = { backgroundColor: "background.paper" };
1694
- return Mt(Bt, {
1694
+ return At(Rt, {
1695
1695
  sx: {
1696
1696
  display: "flex",
1697
1697
  flexDirection: "column",
1698
1698
  gap: 1
1699
1699
  },
1700
1700
  ...a,
1701
- children: [Mt(gn, { children: [
1702
- Mt(Bt, {
1701
+ children: [At(hn, { children: [
1702
+ At(Rt, {
1703
1703
  sx: {
1704
1704
  display: "flex",
1705
1705
  alignItems: "flex-start",
1706
1706
  gap: 1
1707
1707
  },
1708
- children: [Ot(Bt, {
1708
+ children: [Mt(Rt, {
1709
1709
  sx: {
1710
1710
  flex: "1 1 auto",
1711
1711
  minWidth: 0,
@@ -1713,7 +1713,7 @@ var Tn = [
1713
1713
  gap: .5,
1714
1714
  flexWrap: "wrap"
1715
1715
  },
1716
- children: X.filter((e) => (e.gradient ?? !1) === y).map((e, t) => Ot(A, {
1716
+ children: X.filter((e) => (e.gradient ?? !1) === y).map((e, t) => Mt(A, {
1717
1717
  sheet: !0,
1718
1718
  disabled: r,
1719
1719
  onClick: () => f({
@@ -1721,9 +1721,9 @@ var Tn = [
1721
1721
  gradient: e.gradient,
1722
1722
  borderColor: e.borderColor
1723
1723
  }),
1724
- children: Ot(v, { rows: u(e, s(e.color)?.toCSS("adaptive") ?? "var(--sxl-color-primary, rgb(33, 115, 70))") })
1724
+ children: Mt(v, { rows: u(e, s(e.color)?.toCSS("adaptive") ?? "var(--sxl-color-primary, rgb(33, 115, 70))") })
1725
1725
  }, t))
1726
- }), Mt(so, {
1726
+ }), At(co, {
1727
1727
  exclusive: !0,
1728
1728
  size: "small",
1729
1729
  value: y,
@@ -1732,7 +1732,7 @@ var Tn = [
1732
1732
  null !== t && f({ gradient: !!t || void 0 });
1733
1733
  },
1734
1734
  sx: { flex: "0 0 auto" },
1735
- children: [Ot(io, {
1735
+ children: [Mt(so, {
1736
1736
  value: !1,
1737
1737
  sx: {
1738
1738
  textTransform: "none",
@@ -1740,7 +1740,7 @@ var Tn = [
1740
1740
  pb: .25
1741
1741
  },
1742
1742
  children: l("conditionalFormat.solidFill")
1743
- }), Ot(io, {
1743
+ }), Mt(so, {
1744
1744
  value: !0,
1745
1745
  sx: {
1746
1746
  textTransform: "none",
@@ -1751,26 +1751,26 @@ var Tn = [
1751
1751
  })]
1752
1752
  })]
1753
1753
  }),
1754
- Ot(Ut, {
1755
- control: Ot(zt, {
1754
+ Mt(qt, {
1755
+ control: Mt(jt, {
1756
1756
  size: "small",
1757
1757
  checked: !1 === t.showValue,
1758
1758
  disabled: r,
1759
1759
  onChange: (e) => f({ showValue: !e.target.checked && void 0 })
1760
1760
  }),
1761
- label: Ot(co, {
1761
+ label: Mt(po, {
1762
1762
  variant: "body2",
1763
1763
  children: l("conditionalFormat.showBarsOnly")
1764
1764
  })
1765
1765
  }),
1766
- Mt(Bt, {
1766
+ At(Rt, {
1767
1767
  sx: {
1768
1768
  display: "flex",
1769
1769
  alignItems: "center",
1770
1770
  gap: .5
1771
1771
  },
1772
1772
  children: [
1773
- Ot(co, {
1773
+ Mt(po, {
1774
1774
  variant: "caption",
1775
1775
  sx: {
1776
1776
  color: "text.secondary",
@@ -1778,7 +1778,7 @@ var Tn = [
1778
1778
  },
1779
1779
  children: l("conditionalFormat.bar")
1780
1780
  }),
1781
- Ot(o, {
1781
+ Mt(o, {
1782
1782
  icon: "fill.colored",
1783
1783
  tooltip: l("conditionalFormat.barColor"),
1784
1784
  selectedColor: p,
@@ -1790,7 +1790,7 @@ var Tn = [
1790
1790
  ...d
1791
1791
  }
1792
1792
  }),
1793
- Ot(o, {
1793
+ Mt(o, {
1794
1794
  icon: "stroke.colored",
1795
1795
  tooltip: l("conditionalFormat.barBorderColor"),
1796
1796
  selectedColor: g,
@@ -1804,14 +1804,14 @@ var Tn = [
1804
1804
  })
1805
1805
  ]
1806
1806
  }),
1807
- Mt(Bt, {
1807
+ At(Rt, {
1808
1808
  sx: {
1809
1809
  display: "flex",
1810
1810
  alignItems: "center",
1811
1811
  gap: .5
1812
1812
  },
1813
1813
  children: [
1814
- Ot(co, {
1814
+ Mt(po, {
1815
1815
  variant: "caption",
1816
1816
  sx: {
1817
1817
  color: "text.secondary",
@@ -1819,7 +1819,7 @@ var Tn = [
1819
1819
  },
1820
1820
  children: l("conditionalFormat.negative")
1821
1821
  }),
1822
- Ot(o, {
1822
+ Mt(o, {
1823
1823
  icon: "fill.colored",
1824
1824
  tooltip: l("conditionalFormat.negativeColor"),
1825
1825
  selectedColor: m ?? p,
@@ -1831,7 +1831,7 @@ var Tn = [
1831
1831
  ...d
1832
1832
  }
1833
1833
  }),
1834
- Ot(o, {
1834
+ Mt(o, {
1835
1835
  icon: "stroke.colored",
1836
1836
  tooltip: l("conditionalFormat.negativeBorderColor"),
1837
1837
  selectedColor: h ?? g,
@@ -1843,7 +1843,7 @@ var Tn = [
1843
1843
  ...d
1844
1844
  }
1845
1845
  }),
1846
- Ot(A, {
1846
+ Mt(A, {
1847
1847
  title: l("conditionalFormat.sameAsPositive"),
1848
1848
  disabled: r || !t.negativeFillColor && !t.negativeBorderColor,
1849
1849
  onClick: () => f({
@@ -1854,74 +1854,74 @@ var Tn = [
1854
1854
  color: "text.secondary",
1855
1855
  "&:disabled": { opacity: .4 }
1856
1856
  },
1857
- children: Ot(We, {
1857
+ children: Mt(Ee, {
1858
1858
  iconKey: "ClearFormats",
1859
1859
  size: 16
1860
1860
  })
1861
1861
  })
1862
1862
  ]
1863
1863
  }),
1864
- Mt(Bt, {
1864
+ At(Rt, {
1865
1865
  sx: {
1866
1866
  display: "flex",
1867
1867
  gap: 1,
1868
1868
  mt: .5
1869
1869
  },
1870
- children: [Mt(Ht, {
1870
+ children: [At(Ut, {
1871
1871
  size: "small",
1872
1872
  sx: {
1873
1873
  flex: 1,
1874
1874
  minWidth: 0
1875
1875
  },
1876
- children: [Ot(Qt, { children: l("conditionalFormat.axis") }), Mt(to, {
1876
+ children: [Mt(Yt, { children: l("conditionalFormat.axis") }), At(oo, {
1877
1877
  label: l("conditionalFormat.axis"),
1878
- value: t.axisPosition ?? Dn,
1878
+ value: t.axisPosition ?? In,
1879
1879
  disabled: r,
1880
1880
  sx: b,
1881
1881
  onChange: (e) => {
1882
1882
  const t = e.target.value;
1883
- f({ axisPosition: t === Dn ? void 0 : t });
1883
+ f({ axisPosition: t === In ? void 0 : t });
1884
1884
  },
1885
1885
  children: [
1886
- Ot(Jt, {
1887
- value: Dn,
1886
+ Mt(Xt, {
1887
+ value: In,
1888
1888
  children: l("conditionalFormat.automatic")
1889
1889
  }),
1890
- Ot(Jt, {
1890
+ Mt(Xt, {
1891
1891
  value: "middle",
1892
1892
  children: l("conditionalFormat.axisMiddle")
1893
1893
  }),
1894
- Ot(Jt, {
1894
+ Mt(Xt, {
1895
1895
  value: "none",
1896
1896
  children: l("conditionalFormat.axisNone")
1897
1897
  })
1898
1898
  ]
1899
1899
  })]
1900
- }), Mt(Ht, {
1900
+ }), At(Ut, {
1901
1901
  size: "small",
1902
1902
  sx: {
1903
1903
  flex: 1,
1904
1904
  minWidth: 0
1905
1905
  },
1906
- children: [Ot(Qt, { children: l("conditionalFormat.direction") }), Mt(to, {
1906
+ children: [Mt(Yt, { children: l("conditionalFormat.direction") }), At(oo, {
1907
1907
  label: l("conditionalFormat.direction"),
1908
- value: t.direction ?? Dn,
1908
+ value: t.direction ?? In,
1909
1909
  disabled: r,
1910
1910
  sx: b,
1911
1911
  onChange: (e) => {
1912
1912
  const t = e.target.value;
1913
- f({ direction: t === Dn ? void 0 : t });
1913
+ f({ direction: t === In ? void 0 : t });
1914
1914
  },
1915
1915
  children: [
1916
- Ot(Jt, {
1917
- value: Dn,
1916
+ Mt(Xt, {
1917
+ value: In,
1918
1918
  children: l("conditionalFormat.automatic")
1919
1919
  }),
1920
- Ot(Jt, {
1920
+ Mt(Xt, {
1921
1921
  value: "leftToRight",
1922
1922
  children: l("conditionalFormat.leftToRight")
1923
1923
  }),
1924
- Ot(Jt, {
1924
+ Mt(Xt, {
1925
1925
  value: "rightToLeft",
1926
1926
  children: l("conditionalFormat.rightToLeft")
1927
1927
  })
@@ -1929,21 +1929,21 @@ var Tn = [
1929
1929
  })]
1930
1930
  })]
1931
1931
  })
1932
- ] }), Mt(gn, {
1932
+ ] }), At(hn, {
1933
1933
  variant: "config",
1934
- children: [Ot(kn, {
1934
+ children: [Mt(wn, {
1935
1935
  label: l("conditionalFormat.stop.minimum"),
1936
1936
  stop: c[0] ?? { type: K.ColorStopType.AutoMin },
1937
- allowedTypes: Tn,
1937
+ allowedTypes: Fn,
1938
1938
  readOnly: r,
1939
1939
  onStopChange: (e) => {
1940
1940
  const t = c.slice();
1941
1941
  t[0] = e, f({ stops: t });
1942
1942
  }
1943
- }), Ot(kn, {
1943
+ }), Mt(wn, {
1944
1944
  label: l("conditionalFormat.stop.maximum"),
1945
1945
  stop: c[1] ?? { type: K.ColorStopType.AutoMax },
1946
- allowedTypes: Fn,
1946
+ allowedTypes: Dn,
1947
1947
  readOnly: r,
1948
1948
  onStopChange: (e) => {
1949
1949
  const t = c.slice();
@@ -1955,37 +1955,37 @@ var Tn = [
1955
1955
  });
1956
1956
  });
1957
1957
  Nn.displayName = "DataBarRulePanel";
1958
- var Pn = ko("conditionalFormat.noCellIcon"), In = ko("conditionalFormat.cellIcon"), On = {
1958
+ var Pn = wo("conditionalFormat.noCellIcon"), On = wo("conditionalFormat.cellIcon"), Mn = {
1959
1959
  borderColor: "primary.main",
1960
1960
  boxShadow: (e) => `inset 0 0 0 1px ${e.palette.primary.main}`
1961
- }, Mn = {
1961
+ }, An = {
1962
1962
  width: "28px",
1963
1963
  height: "26px"
1964
- }, An = rt((e) => {
1965
- const { icon: t, onPick: o } = e, n = Ze();
1966
- return Mt(Bt, {
1964
+ }, Wn = at((e) => {
1965
+ const { icon: t, onPick: o } = e, n = et();
1966
+ return At(Rt, {
1967
1967
  sx: {
1968
1968
  display: "flex",
1969
1969
  flexDirection: "column",
1970
1970
  gap: "4px",
1971
1971
  padding: "6px 8px"
1972
1972
  },
1973
- children: [Ot(A, {
1973
+ children: [Mt(A, {
1974
1974
  sheet: !0,
1975
1975
  title: n(Pn),
1976
1976
  "aria-pressed": null === t,
1977
1977
  sx: {
1978
- ...Mn,
1979
- ...null === t ? On : null
1978
+ ...An,
1979
+ ...null === t ? Mn : null
1980
1980
  },
1981
1981
  onClick: () => {
1982
1982
  o({ ...ne });
1983
1983
  },
1984
- children: Ot(te, {
1984
+ children: Mt(te, {
1985
1985
  icons: [null],
1986
1986
  size: 16
1987
1987
  })
1988
- }), Ot(Bt, {
1988
+ }), Mt(Rt, {
1989
1989
  sx: {
1990
1990
  display: "grid",
1991
1991
  gridTemplateColumns: "repeat(8, auto)",
@@ -1995,13 +1995,13 @@ var Pn = ko("conditionalFormat.noCellIcon"), In = ko("conditionalFormat.cellIcon
1995
1995
  children: ee.map((e) => {
1996
1996
  const r = (a = t, l = e.spec, !!a && a.iconKey === l.iconKey && a.color === l.color);
1997
1997
  var a, l;
1998
- return Ot(A, {
1998
+ return Mt(A, {
1999
1999
  sheet: !0,
2000
2000
  title: k(n, e.spec),
2001
2001
  "aria-pressed": r,
2002
2002
  sx: {
2003
- ...Mn,
2004
- ...r ? On : null
2003
+ ...An,
2004
+ ...r ? Mn : null
2005
2005
  },
2006
2006
  onClick: () => {
2007
2007
  o({
@@ -2009,7 +2009,7 @@ var Pn = ko("conditionalFormat.noCellIcon"), In = ko("conditionalFormat.cellIcon
2009
2009
  id: e.id
2010
2010
  });
2011
2011
  },
2012
- children: Ot(te, {
2012
+ children: Mt(te, {
2013
2013
  icons: [e.spec],
2014
2014
  size: 16
2015
2015
  })
@@ -2018,25 +2018,25 @@ var Pn = ko("conditionalFormat.noCellIcon"), In = ko("conditionalFormat.cellIcon
2018
2018
  })]
2019
2019
  });
2020
2020
  });
2021
- An.displayName = "IconCatalogPanel";
2022
- var Wn = rt(ot((e, t) => {
2023
- const { icon: o, onPick: n, tooltip: r, ...a } = e, l = Ze();
2024
- return Ot(yt, {
2021
+ Wn.displayName = "IconCatalogPanel";
2022
+ var En = at(nt((e, t) => {
2023
+ const { icon: o, onPick: n, tooltip: r, ...a } = e, l = et();
2024
+ return Mt(ft, {
2025
2025
  ref: t,
2026
- createPopupPanel: at((e) => {
2027
- const { closeFloat: t } = e, r = Ot(An, {
2026
+ createPopupPanel: lt((e) => {
2027
+ const { closeFloat: t } = e, r = Mt(Wn, {
2028
2028
  icon: o,
2029
2029
  onPick: (e) => {
2030
2030
  t?.(), n(e);
2031
2031
  }
2032
2032
  });
2033
- return kt({
2033
+ return wt({
2034
2034
  ...e,
2035
2035
  children: r
2036
2036
  });
2037
2037
  }, [o, n]),
2038
- tooltip: r ?? l(In),
2039
- icon: Ot(te, {
2038
+ tooltip: r ?? l(On),
2039
+ icon: Mt(te, {
2040
2040
  icons: [o],
2041
2041
  size: 16
2042
2042
  }),
@@ -2044,27 +2044,27 @@ var Wn = rt(ot((e, t) => {
2044
2044
  ...a
2045
2045
  });
2046
2046
  }));
2047
- Wn.displayName = "IconPickerPopupButton";
2048
- var En = [
2047
+ En.displayName = "IconPickerPopupButton";
2048
+ var Bn = [
2049
2049
  K.ColorStopType.Percent,
2050
2050
  K.ColorStopType.Num,
2051
2051
  K.ColorStopType.Percentile,
2052
2052
  K.ColorStopType.Formula
2053
- ], Bn = rt((e) => {
2054
- const { scale: t, onScaleChange: o, readOnly: n, ...r } = e, a = Ze(), l = t.iconSet ?? q.IconSet.TrafficLights3, i = 0 === be(l).length, s = t.stops ?? [], d = s.length, c = ve(t), p = (e) => {
2053
+ ], Rn = at((e) => {
2054
+ const { scale: t, onScaleChange: o, readOnly: n, ...r } = e, a = et(), l = t.iconSet ?? q.IconSet.TrafficLights3, i = 0 === xe(l).length, s = t.stops ?? [], d = s.length, c = Ce(t), p = (e) => {
2055
2055
  const n = { ...t };
2056
2056
  for (const [t, o] of Object.entries(e)) void 0 === o ? delete n[t] : n[t] = o;
2057
2057
  o(n);
2058
- }, u = at((e) => {
2059
- const { closeFloat: t } = e, o = Ot(h, {
2060
- groups: I,
2058
+ }, u = lt((e) => {
2059
+ const { closeFloat: t } = e, o = Mt(h, {
2060
+ groups: P,
2061
2061
  disabled: n,
2062
2062
  onPick: (e) => {
2063
2063
  t?.(), e.type === K.ScaleType.IconSet && e.iconSet && ((e) => {
2064
2064
  if (e === l) return;
2065
- const t = xe(e);
2065
+ const t = ve(e);
2066
2066
  let o = s;
2067
- t !== s.length && (o = fe(t)), p({
2067
+ t !== s.length && (o = be(t)), p({
2068
2068
  iconSet: e,
2069
2069
  stops: o,
2070
2070
  icon: void 0
@@ -2072,42 +2072,42 @@ var En = [
2072
2072
  })(e.iconSet);
2073
2073
  }
2074
2074
  });
2075
- return kt({
2075
+ return wt({
2076
2076
  ...e,
2077
2077
  children: o
2078
2078
  });
2079
2079
  }, [n, t]), m = L.camelToPrettyCase(l);
2080
- return Mt(Bt, {
2080
+ return At(Rt, {
2081
2081
  sx: {
2082
2082
  display: "flex",
2083
2083
  flexDirection: "column",
2084
2084
  gap: 1
2085
2085
  },
2086
2086
  ...r,
2087
- children: [Mt(gn, { children: [
2088
- Ot(Bt, {
2087
+ children: [At(hn, { children: [
2088
+ Mt(Rt, {
2089
2089
  sx: {
2090
2090
  display: "flex",
2091
2091
  alignItems: "center",
2092
2092
  gap: 1
2093
2093
  },
2094
- children: Ot(yt, {
2094
+ children: Mt(ft, {
2095
2095
  outlined: !0,
2096
2096
  disabled: n,
2097
2097
  label: m,
2098
2098
  tooltip: m,
2099
- icon: Ot(Bt, {
2099
+ icon: Mt(Rt, {
2100
2100
  sx: {
2101
2101
  width: "82px",
2102
2102
  display: "flex",
2103
2103
  justifyContent: "center"
2104
2104
  },
2105
- children: i ? Ot(co, {
2105
+ children: i ? Mt(po, {
2106
2106
  variant: "caption",
2107
2107
  noWrap: !0,
2108
2108
  children: m
2109
- }) : Ot(te, {
2110
- icons: be(l),
2109
+ }) : Mt(te, {
2110
+ icons: xe(l),
2111
2111
  order: "descending",
2112
2112
  size: 14,
2113
2113
  gap: 3
@@ -2116,53 +2116,53 @@ var En = [
2116
2116
  createPopupPanel: u
2117
2117
  })
2118
2118
  }),
2119
- i && Ot(co, {
2119
+ i && Mt(po, {
2120
2120
  variant: "caption",
2121
2121
  sx: { color: "text.secondary" },
2122
2122
  children: a("conditionalFormat.adoptedIconSet")
2123
2123
  }),
2124
- Mt(Bt, {
2124
+ At(Rt, {
2125
2125
  sx: {
2126
2126
  display: "flex",
2127
2127
  gap: 1
2128
2128
  },
2129
- children: [Ot(Ut, {
2130
- control: Ot(zt, {
2129
+ children: [Mt(qt, {
2130
+ control: Mt(jt, {
2131
2131
  size: "small",
2132
2132
  checked: !1 === t.showValue,
2133
2133
  disabled: n,
2134
2134
  onChange: (e) => p({ showValue: !e.target.checked && void 0 })
2135
2135
  }),
2136
- label: Ot(co, {
2136
+ label: Mt(po, {
2137
2137
  variant: "body2",
2138
2138
  children: a("conditionalFormat.showIconsOnly")
2139
2139
  })
2140
- }), Ot(Ut, {
2141
- control: Ot(zt, {
2140
+ }), Mt(qt, {
2141
+ control: Mt(jt, {
2142
2142
  size: "small",
2143
2143
  checked: t.reverse ?? !1,
2144
2144
  disabled: n,
2145
2145
  onChange: (e) => p({ reverse: !!e.target.checked || void 0 })
2146
2146
  }),
2147
- label: Ot(co, {
2147
+ label: Mt(po, {
2148
2148
  variant: "body2",
2149
2149
  children: a("conditionalFormat.reverseIcons")
2150
2150
  })
2151
2151
  })]
2152
2152
  })
2153
- ] }), Ot(gn, {
2153
+ ] }), Mt(hn, {
2154
2154
  variant: "config",
2155
2155
  children: s.map((e, r) => {
2156
2156
  const a = t.reverse ? d - 1 - r : r;
2157
- return Ot(kn, {
2157
+ return Mt(wn, {
2158
2158
  stop: e,
2159
- allowedTypes: En,
2159
+ allowedTypes: Bn,
2160
2160
  showExclusive: !0,
2161
2161
  readOnly: n || 0 === r,
2162
- leading: Ot(Wn, {
2162
+ leading: Mt(En, {
2163
2163
  icon: c[r] ?? null,
2164
2164
  disabled: n || i,
2165
- onPick: (e) => o(Ie(t, a, e))
2165
+ onPick: (e) => o(Oe(t, a, e))
2166
2166
  }),
2167
2167
  onStopChange: (e) => {
2168
2168
  const t = s.slice();
@@ -2173,26 +2173,26 @@ var En = [
2173
2173
  })]
2174
2174
  });
2175
2175
  });
2176
- Bn.displayName = "IconSetRulePanel";
2177
- var Rn = (e, t, o) => W(e, t)?.toCSS("adaptive") ?? o, Ln = (e, t, o) => {
2176
+ Rn.displayName = "IconSetRulePanel";
2177
+ var Ln = (e, t, o) => W(e, t)?.toCSS("adaptive") ?? o, Vn = (e, t, o) => {
2178
2178
  if (!e) return o;
2179
- if ("string" == typeof e) return Rn(e, t, o);
2179
+ if ("string" == typeof e) return Ln(e, t, o);
2180
2180
  if (e.type === H.Type.None) return o;
2181
2181
  const n = e, r = e;
2182
- return Rn(r.foreground ?? n.color ?? r.background, t, o);
2183
- }, Vn = rt((e) => {
2182
+ return Ln(r.foreground ?? n.color ?? r.background, t, o);
2183
+ }, zn = at((e) => {
2184
2184
  const { conditionalFormat: t, size: o = 28, ...n } = e, { workbook: r, themeKey: a } = B();
2185
- ke(t, "onAnyChange");
2186
- const l = t.getScale(), i = t.getStyle(), s = st(() => {
2185
+ we(t, "onAnyChange");
2186
+ const l = t.getScale(), i = t.getStyle(), s = dt(() => {
2187
2187
  try {
2188
2188
  return r?.getStyles().getNormal().getFont().toCSS("adaptive") ?? {};
2189
2189
  } catch {
2190
2190
  return {};
2191
2191
  }
2192
- }, [r, a]), d = st(() => {
2193
- if (l?.type === K.ScaleType.ColorScale) return Ot(v, { rows: x(l.stops ?? [], b, r) });
2194
- if (l?.type === K.ScaleType.DataBar) return Ot(v, { rows: u(l, Rn(l.color, r, f), l.borderColor ? Rn(l.borderColor, r, f) : void 0) });
2195
- if (l?.type === K.ScaleType.IconSet) return Ot(Bt, {
2192
+ }, [r, a]), d = dt(() => {
2193
+ if (l?.type === K.ScaleType.ColorScale) return Mt(v, { rows: x(l.stops ?? [], b, r) });
2194
+ if (l?.type === K.ScaleType.DataBar) return Mt(v, { rows: u(l, Ln(l.color, r, f), l.borderColor ? Ln(l.borderColor, r, f) : void 0) });
2195
+ if (l?.type === K.ScaleType.IconSet) return Mt(Rt, {
2196
2196
  sx: {
2197
2197
  display: "flex",
2198
2198
  alignItems: "center",
@@ -2201,15 +2201,15 @@ var Rn = (e, t, o) => W(e, t)?.toCSS("adaptive") ?? o, Ln = (e, t, o) => {
2201
2201
  height: "100%",
2202
2202
  px: .5
2203
2203
  },
2204
- children: Ot(te, {
2205
- icons: ve(l),
2204
+ children: Mt(te, {
2205
+ icons: Ce(l),
2206
2206
  order: "descending",
2207
2207
  size: 14,
2208
2208
  gap: 3
2209
2209
  })
2210
2210
  });
2211
2211
  const e = i?.font, t = e?.underline && e.underline !== U.UnderlineStyle.None;
2212
- return Ot(Bt, {
2212
+ return Mt(Rt, {
2213
2213
  sx: {
2214
2214
  width: "100%",
2215
2215
  height: "100%",
@@ -2217,14 +2217,14 @@ var Rn = (e, t, o) => W(e, t)?.toCSS("adaptive") ?? o, Ln = (e, t, o) => {
2217
2217
  alignItems: "center",
2218
2218
  justifyContent: "center",
2219
2219
  ...s,
2220
- backgroundColor: Ln(i?.fill, r, "transparent"),
2221
- ...e?.color && "auto" !== e.color ? { color: Rn(e.color, r, w) } : null,
2220
+ backgroundColor: Vn(i?.fill, r, "transparent"),
2221
+ ...e?.color && "auto" !== e.color ? { color: Ln(e.color, r, w) } : null,
2222
2222
  ...e?.weight ? { fontWeight: e.weight } : null,
2223
2223
  ...e?.style ? { fontStyle: e.style } : null,
2224
2224
  textDecoration: [t ? "underline" : "", e?.strike ? "line-through" : ""].join(" ").trim() || "none",
2225
2225
  fontSize: `${Math.round(.5 * o)}px`,
2226
2226
  lineHeight: 1,
2227
- outline: i?.borders ? `1px solid ${Rn(Object.values(i.borders)[0]?.color, r, T)}` : void 0,
2227
+ outline: i?.borders ? `1px solid ${Ln(Object.values(i.borders)[0]?.color, r, T)}` : void 0,
2228
2228
  outlineOffset: "-3px"
2229
2229
  },
2230
2230
  children: "Aa"
@@ -2237,7 +2237,7 @@ var Rn = (e, t, o) => W(e, t)?.toCSS("adaptive") ?? o, Ln = (e, t, o) => {
2237
2237
  r,
2238
2238
  a
2239
2239
  ]);
2240
- return Ot(A, {
2240
+ return Mt(A, {
2241
2241
  sheet: !0,
2242
2242
  className: "sxl-cf-rule-preview",
2243
2243
  sx: {
@@ -2249,23 +2249,23 @@ var Rn = (e, t, o) => W(e, t)?.toCSS("adaptive") ?? o, Ln = (e, t, o) => {
2249
2249
  children: d
2250
2250
  });
2251
2251
  });
2252
- Vn.displayName = "RulePreview";
2253
- var zn = (e, t) => {
2252
+ zn.displayName = "RulePreview";
2253
+ var jn = (e, t) => {
2254
2254
  const o = e.getCondition()?.toString();
2255
2255
  if (o) return o;
2256
2256
  const n = e.getScale();
2257
2257
  return n ? L.camelToPrettyCase(n.type) : t("conditionalFormat.noCondition");
2258
- }, jn = {
2259
- classic: ko("conditionalFormat.tab.classic"),
2260
- [K.ScaleType.ColorScale]: ko("conditionalFormat.tab.colorScale"),
2261
- [K.ScaleType.DataBar]: ko("conditionalFormat.tab.dataBars"),
2262
- [K.ScaleType.IconSet]: ko("conditionalFormat.tab.iconSets")
2263
- }, $n = rt((e) => {
2264
- const { conditionalFormat: t } = e, o = Ze();
2265
- ke(t, "onAnyChange");
2266
- const n = t.getScale(), r = t.getCondition(), a = t.getStyle(), l = t.isProtected(), i = n?.type ?? "classic", s = dt({ scales: {} }), c = (e) => {
2258
+ }, $n = {
2259
+ classic: wo("conditionalFormat.tab.classic"),
2260
+ [K.ScaleType.ColorScale]: wo("conditionalFormat.tab.colorScale"),
2261
+ [K.ScaleType.DataBar]: wo("conditionalFormat.tab.dataBars"),
2262
+ [K.ScaleType.IconSet]: wo("conditionalFormat.tab.iconSets")
2263
+ }, Kn = at((e) => {
2264
+ const { conditionalFormat: t } = e, o = et();
2265
+ we(t, "onAnyChange");
2266
+ const n = t.getScale(), r = t.getCondition(), a = t.getStyle(), l = t.isProtected(), i = n?.type ?? "classic", s = ct({ scales: {} }), c = (e) => {
2267
2267
  t.update({ scale: e });
2268
- }, p = Mt(Zt, {
2268
+ }, p = At(eo, {
2269
2269
  tabIndex: 0,
2270
2270
  className: d["editor-panel"],
2271
2271
  sx: {
@@ -2279,7 +2279,7 @@ var zn = (e, t) => {
2279
2279
  overflow: "auto"
2280
2280
  },
2281
2281
  children: [
2282
- Mt(Bt, {
2282
+ At(Rt, {
2283
2283
  sx: {
2284
2284
  display: "flex",
2285
2285
  flexDirection: "column",
@@ -2287,29 +2287,29 @@ var zn = (e, t) => {
2287
2287
  margin: (e) => e.spacing(1.25),
2288
2288
  marginBottom: 0
2289
2289
  },
2290
- children: [Mt(Bt, {
2290
+ children: [At(Rt, {
2291
2291
  sx: {
2292
2292
  display: "flex",
2293
2293
  alignItems: "center",
2294
2294
  gap: (e) => e.spacing(1.5)
2295
2295
  },
2296
- children: [Ot(Vn, {
2296
+ children: [Mt(zn, {
2297
2297
  conditionalFormat: t,
2298
2298
  size: 48
2299
- }), Ot(co, {
2299
+ }), Mt(po, {
2300
2300
  variant: "body2",
2301
2301
  sx: {
2302
2302
  minWidth: 0,
2303
2303
  wordBreak: "break-word"
2304
2304
  },
2305
- children: zn(t, o)
2305
+ children: jn(t, o)
2306
2306
  })]
2307
- }), Ot(g, {
2307
+ }), Mt(g, {
2308
2308
  item: t,
2309
2309
  label: o("conditionalFormat.applyTo")
2310
2310
  })]
2311
2311
  }),
2312
- Ot(ro, {
2312
+ Mt(ao, {
2313
2313
  value: i,
2314
2314
  onChange: (e, o) => {
2315
2315
  l || ((e) => {
@@ -2322,7 +2322,7 @@ var zn = (e, t) => {
2322
2322
  scale: null
2323
2323
  });
2324
2324
  else {
2325
- const o = s.current.scales[e] ?? (e === K.ScaleType.ColorScale ? ge() : e === K.ScaleType.DataBar ? he() : ye());
2325
+ const o = s.current.scales[e] ?? (e === K.ScaleType.ColorScale ? he() : e === K.ScaleType.DataBar ? ye() : fe());
2326
2326
  t.update({
2327
2327
  scale: o,
2328
2328
  condition: null,
@@ -2345,38 +2345,38 @@ var zn = (e, t) => {
2345
2345
  minWidth: 0
2346
2346
  }
2347
2347
  },
2348
- children: Object.keys(jn).map((e) => Ot(no, {
2348
+ children: Object.keys($n).map((e) => Mt(ro, {
2349
2349
  value: e,
2350
- label: o(jn[e])
2350
+ label: o($n[e])
2351
2351
  }, e))
2352
2352
  }),
2353
- "classic" === i && Mt(It, { children: [Ot(xn, {
2353
+ "classic" === i && At(Ot, { children: [Mt(vn, {
2354
2354
  format: a,
2355
2355
  readOnly: l,
2356
2356
  onFormatChange: (e) => t.update({ style: e })
2357
- }), Ot(mn, {
2357
+ }), Mt(gn, {
2358
2358
  selectorTitle: o("conditionalFormat.highlight"),
2359
2359
  condition: r,
2360
2360
  ranges: t.getRanges(),
2361
2361
  readOnly: l,
2362
2362
  onConditionChange: (e) => t.setCondition(e)
2363
2363
  })] }),
2364
- n?.type === K.ScaleType.ColorScale && Ot(Sn, {
2364
+ n?.type === K.ScaleType.ColorScale && Mt(Tn, {
2365
2365
  scale: n,
2366
2366
  onScaleChange: c,
2367
2367
  readOnly: l
2368
2368
  }),
2369
- n?.type === K.ScaleType.DataBar && Ot(Nn, {
2369
+ n?.type === K.ScaleType.DataBar && Mt(Nn, {
2370
2370
  scale: n,
2371
2371
  onScaleChange: c,
2372
2372
  readOnly: l
2373
2373
  }),
2374
- n?.type === K.ScaleType.IconSet && Ot(Bn, {
2374
+ n?.type === K.ScaleType.IconSet && Mt(Rn, {
2375
2375
  scale: n,
2376
2376
  onScaleChange: c,
2377
2377
  readOnly: l
2378
2378
  }),
2379
- "classic" === i && Ot(Bt, {
2379
+ "classic" === i && Mt(Rt, {
2380
2380
  sx: {
2381
2381
  pl: 2,
2382
2382
  pr: 2,
@@ -2384,8 +2384,8 @@ var zn = (e, t) => {
2384
2384
  borderColor: "divider",
2385
2385
  borderRadius: 1
2386
2386
  },
2387
- children: Ot(Ut, {
2388
- control: Ot(zt, {
2387
+ children: Mt(qt, {
2388
+ control: Mt(jt, {
2389
2389
  checked: t.isStopIfTrue(),
2390
2390
  disabled: l,
2391
2391
  onChange: (e) => t.setStopIfTrue(e.target.checked)
@@ -2395,15 +2395,15 @@ var zn = (e, t) => {
2395
2395
  })
2396
2396
  ]
2397
2397
  });
2398
- return Ot(Mo.Provider, {
2398
+ return Mt(Ao.Provider, {
2399
2399
  value: t,
2400
2400
  children: p
2401
2401
  });
2402
2402
  });
2403
- $n.displayName = "ConditionalFormatEditorPanel";
2404
- var Kn = rt(({ item: e }) => {
2405
- const t = Ze();
2406
- return ke(e, "onAnyChange"), !e.isStopIfTrue() || e.getScale() ? null : Ot(Bt, {
2403
+ Kn.displayName = "ConditionalFormatEditorPanel";
2404
+ var _n = at(({ item: e }) => {
2405
+ const t = et();
2406
+ return we(e, "onAnyChange"), !e.isStopIfTrue() || e.getScale() ? null : Mt(Rt, {
2407
2407
  sx: {
2408
2408
  display: "inline-flex",
2409
2409
  alignItems: "center",
@@ -2415,34 +2415,34 @@ var Kn = rt(({ item: e }) => {
2415
2415
  borderRadius: 1,
2416
2416
  color: "text.secondary"
2417
2417
  },
2418
- children: Ot(co, {
2418
+ children: Mt(po, {
2419
2419
  variant: "caption",
2420
2420
  children: t("conditionalFormat.stopIfTrue")
2421
2421
  })
2422
2422
  });
2423
2423
  });
2424
- Kn.displayName = "StopIfTrueBadge";
2425
- var _n = rt(({ item: e }) => Ot(g, {
2424
+ _n.displayName = "StopIfTrueBadge";
2425
+ var Hn = at(({ item: e }) => Mt(g, {
2426
2426
  item: e,
2427
- label: Ze()("conditionalFormat.applyTo"),
2427
+ label: et()("conditionalFormat.applyTo"),
2428
2428
  helperText: null
2429
2429
  }));
2430
- _n.displayName = "ConditionalFormatCardRanges";
2431
- var Hn = {
2430
+ Hn.displayName = "ConditionalFormatCardRanges";
2431
+ var Un = {
2432
2432
  key: "conditional-format",
2433
2433
  messageKeys: {
2434
- none: ko("conditionalFormat.none"),
2435
- addPrompt: ko("conditionalFormat.addPrompt"),
2436
- heading: ko("conditionalFormat.heading"),
2437
- insert: ko("conditionalFormat.insert"),
2438
- new: ko("conditionalFormat.new"),
2439
- moveUp: ko("conditionalFormat.moveUp"),
2440
- moveDown: ko("conditionalFormat.moveDown"),
2441
- edit: ko("conditionalFormat.edit"),
2442
- duplicate: ko("conditionalFormat.duplicate"),
2443
- delete: ko("conditionalFormat.delete"),
2444
- cancel: ko("conditionalFormat.cancel"),
2445
- save: ko("conditionalFormat.save")
2434
+ none: wo("conditionalFormat.none"),
2435
+ addPrompt: wo("conditionalFormat.addPrompt"),
2436
+ heading: wo("conditionalFormat.heading"),
2437
+ insert: wo("conditionalFormat.insert"),
2438
+ new: wo("conditionalFormat.new"),
2439
+ moveUp: wo("conditionalFormat.moveUp"),
2440
+ moveDown: wo("conditionalFormat.moveDown"),
2441
+ edit: wo("conditionalFormat.edit"),
2442
+ duplicate: wo("conditionalFormat.duplicate"),
2443
+ delete: wo("conditionalFormat.delete"),
2444
+ cancel: wo("conditionalFormat.cancel"),
2445
+ save: wo("conditionalFormat.save")
2446
2446
  },
2447
2447
  getCollection: (e) => e.getConditionalFormats(),
2448
2448
  changeEvents: ["onConditionalFormatsChange"],
@@ -2458,35 +2458,35 @@ var Hn = {
2458
2458
  stopIfTrue: t.stopIfTrue ?? !1
2459
2459
  });
2460
2460
  },
2461
- getCardTitle: zn,
2462
- CardMedia: ({ item: e }) => Ot(Vn, {
2461
+ getCardTitle: jn,
2462
+ CardMedia: ({ item: e }) => Mt(zn, {
2463
2463
  conditionalFormat: e,
2464
2464
  size: 32
2465
2465
  }),
2466
- CardSubtitle: _n,
2467
- CardBody: Kn,
2468
- EditorBody: ({ item: e }) => Ot($n, { conditionalFormat: e })
2469
- }, Un = rt(ot((e, t) => {
2466
+ CardSubtitle: Hn,
2467
+ CardBody: _n,
2468
+ EditorBody: ({ item: e }) => Mt(Kn, { conditionalFormat: e })
2469
+ }, qn = at(nt((e, t) => {
2470
2470
  const { workbook: o, args: n, ...r } = e;
2471
- return Ot(E, {
2471
+ return Mt(E, {
2472
2472
  ref: t,
2473
2473
  workbook: o,
2474
- descriptor: Hn,
2474
+ descriptor: Un,
2475
2475
  args: n,
2476
2476
  dragReorder: !0,
2477
2477
  ...r
2478
2478
  });
2479
2479
  }));
2480
- Un.displayName = "ConditionalFormatDetailsPanel";
2481
- var qn = (e) => {
2480
+ qn.displayName = "ConditionalFormatDetailsPanel";
2481
+ var Gn = (e) => {
2482
2482
  const { model: t, entryKey: o, frame: n, args: r, ref: a, ...l } = e;
2483
- return Ot(Un, {
2483
+ return Mt(qn, {
2484
2484
  ref: a,
2485
2485
  workbook: t,
2486
2486
  args: r,
2487
2487
  ...l
2488
2488
  });
2489
- }, Gn = {
2489
+ }, Qn = {
2490
2490
  card: "_card_h0jnt_7",
2491
2491
  actionRoot: "_actionRoot_h0jnt_11",
2492
2492
  icons: "_icons_h0jnt_16",
@@ -2496,63 +2496,63 @@ var qn = (e) => {
2496
2496
  paper: "_paper_h0jnt_37",
2497
2497
  checkIcon: "_checkIcon_h0jnt_42",
2498
2498
  button: "_button_h0jnt_47"
2499
- }, Qn = rt(ot((e, t) => {
2500
- const { id: o, message: n, iconVariant: r, error: a, hideIconVariant: l, ...i } = e, s = Ze(), { closeSnackbar: d } = Po(), [c, p] = ct(!1), u = a ? fo.collectErrorChain(a, !0)?.[0]?.error : void 0, m = u && !(u instanceof bo), g = at(() => {
2499
+ }, Yn = at(nt((e, t) => {
2500
+ const { id: o, message: n, iconVariant: r, error: a, hideIconVariant: l, ...i } = e, s = et(), { closeSnackbar: d } = Po(), [c, p] = pt(!1), u = a ? bo.collectErrorChain(a, !0)?.[0]?.error : void 0, m = u && !(u instanceof xo), g = lt(() => {
2501
2501
  p((e) => !e);
2502
- }, []), h = at(() => {
2502
+ }, []), h = lt(() => {
2503
2503
  d(o);
2504
2504
  }, [o, d]);
2505
2505
  let y = u?.message;
2506
- return !y && nt(n) && (y = n), y || "string" != typeof n || (y = n), y || (y = `Unknown Error: ${n}`), Ot(Do, {
2506
+ return !y && rt(n) && (y = n), y || "string" != typeof n || (y = n), y || (y = `Unknown Error: ${n}`), Mt(Io, {
2507
2507
  ref: t,
2508
- className: So(Gn.root, "error-snackbar"),
2509
- children: Mt(Lt, {
2510
- className: Gn.card,
2508
+ className: To(Qn.root, "error-snackbar"),
2509
+ children: At(Vt, {
2510
+ className: Qn.card,
2511
2511
  style: {
2512
2512
  backgroundColor: "var(--sxl-color-error)",
2513
2513
  color: "var(--sxl-color-error-content)",
2514
2514
  border: "1px solid var(--sxl-color-error)"
2515
2515
  },
2516
- children: [Mt(Vt, {
2517
- className: Gn.actionRoot,
2516
+ children: [At(zt, {
2517
+ className: Qn.actionRoot,
2518
2518
  children: [
2519
2519
  l ? null : r?.error,
2520
- Ot(co, {
2520
+ Mt(po, {
2521
2521
  variant: "body2",
2522
2522
  component: "div",
2523
- className: Gn.typography,
2523
+ className: Qn.typography,
2524
2524
  children: y
2525
2525
  }),
2526
- Ot("div", { style: { flex: "1 1 auto" } }),
2527
- Mt("div", {
2528
- className: Gn.icons,
2529
- children: [m ? Ot(Gt, {
2526
+ Mt("div", { style: { flex: "1 1 auto" } }),
2527
+ At("div", {
2528
+ className: Qn.icons,
2529
+ children: [m ? Mt(Qt, {
2530
2530
  "aria-label": s("toast.showMore"),
2531
2531
  size: "small",
2532
- className: So(Gn.expand, { [Gn.expandOpen]: c }),
2532
+ className: To(Qn.expand, { [Qn.expandOpen]: c }),
2533
2533
  onClick: g,
2534
- children: Ot(We, { iconKey: "ExpandMore" })
2535
- }) : null, Ot(Gt, {
2534
+ children: Mt(Ee, { iconKey: "ExpandMore" })
2535
+ }) : null, Mt(Qt, {
2536
2536
  size: "small",
2537
- className: Gn.expand,
2537
+ className: Qn.expand,
2538
2538
  onClick: h,
2539
- children: Ot(We, {
2539
+ children: Mt(Ee, {
2540
2540
  iconKey: "Close",
2541
2541
  style: { transform: "scale(0.8)" }
2542
2542
  })
2543
2543
  })]
2544
2544
  })
2545
2545
  ]
2546
- }), m ? Ot(jt, {
2546
+ }), m ? Mt($t, {
2547
2547
  in: c,
2548
2548
  timeout: "auto",
2549
- children: Ot("div", {
2550
- className: Gn.stackTraceContainer,
2549
+ children: Mt("div", {
2550
+ className: Qn.stackTraceContainer,
2551
2551
  style: {
2552
2552
  backgroundColor: "color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))",
2553
2553
  borderTop: "1px solid var(--sxl-color-error)"
2554
2554
  },
2555
- children: Ot(vt, {
2555
+ children: Mt(Ct, {
2556
2556
  error: a,
2557
2557
  hideLineNumbers: !0
2558
2558
  })
@@ -2561,11 +2561,11 @@ var qn = (e) => {
2561
2561
  })
2562
2562
  });
2563
2563
  }));
2564
- Qn.displayName = "ToastError";
2565
- var Yn = Ot(() => Ot(ft, {
2564
+ Yn.displayName = "ToastError";
2565
+ var Jn = Mt(() => Mt(bt, {
2566
2566
  label: "SheetXL",
2567
- description: Ze()("logo.description"),
2568
- children: Ot(Bt, {
2567
+ description: et()("logo.description"),
2568
+ children: Mt(Rt, {
2569
2569
  component: "a",
2570
2570
  href: "https://www.sheetxl.com",
2571
2571
  target: "_blank",
@@ -2578,24 +2578,24 @@ var Yn = Ot(() => Ot(ft, {
2578
2578
  marginLeft: "6px",
2579
2579
  cursor: "pointer"
2580
2580
  },
2581
- children: Ot(oe, { style: {
2581
+ children: Mt(oe, { style: {
2582
2582
  width: "24px",
2583
2583
  height: "24px"
2584
2584
  } })
2585
2585
  })
2586
- }), {}), Jn = rt(ot((e, t) => {
2587
- const { workbook: o, className: n, logo: r = Yn, mainElement: a, startElement: l, endElement: i, ...s } = e, [d, { width: c }] = Fo(), p = c < 530, u = dt(null);
2588
- return Ot(Bt, {
2586
+ }), {}), Xn = at(nt((e, t) => {
2587
+ const { workbook: o, className: n, logo: r = Jn, mainElement: a, startElement: l, endElement: i, ...s } = e, [d, { width: c }] = Do(), p = c < 530, u = ct(null);
2588
+ return Mt(Rt, {
2589
2589
  ...s,
2590
- ref: To([
2590
+ ref: Fo([
2591
2591
  u,
2592
2592
  d,
2593
2593
  t
2594
2594
  ]),
2595
2595
  className: n,
2596
- children: P({
2596
+ children: N({
2597
2597
  isCompact: p,
2598
- wrapperSelect: (e) => Mt(Bt, {
2598
+ wrapperSelect: (e) => At(Rt, {
2599
2599
  sx: {
2600
2600
  display: "grid",
2601
2601
  gridTemplateColumns: "1fr auto 1fr",
@@ -2606,7 +2606,7 @@ var Yn = Ot(() => Ot(ft, {
2606
2606
  paddingRight: (e) => e.spacing(1)
2607
2607
  },
2608
2608
  children: [
2609
- Mt(Bt, {
2609
+ At(Rt, {
2610
2610
  sx: {
2611
2611
  display: "flex",
2612
2612
  flexDirection: "row",
@@ -2614,7 +2614,7 @@ var Yn = Ot(() => Ot(ft, {
2614
2614
  justifyContent: "start",
2615
2615
  gap: (e) => e.spacing(.5)
2616
2616
  },
2617
- children: [r, Mt(Bt, {
2617
+ children: [r, At(Rt, {
2618
2618
  sx: {
2619
2619
  display: "flex",
2620
2620
  flexDirection: "row",
@@ -2624,7 +2624,7 @@ var Yn = Ot(() => Ot(ft, {
2624
2624
  children: [l, e]
2625
2625
  })]
2626
2626
  }),
2627
- Ot(Bt, {
2627
+ Mt(Rt, {
2628
2628
  sx: {
2629
2629
  display: "flex",
2630
2630
  flexDirection: "row",
@@ -2635,7 +2635,7 @@ var Yn = Ot(() => Ot(ft, {
2635
2635
  },
2636
2636
  children: a
2637
2637
  }),
2638
- Ot(Bt, {
2638
+ Mt(Rt, {
2639
2639
  sx: {
2640
2640
  display: "flex",
2641
2641
  alignItems: "center",
@@ -2648,12 +2648,12 @@ var Yn = Ot(() => Ot(ft, {
2648
2648
  })
2649
2649
  });
2650
2650
  }));
2651
- Jn.displayName = "StudioToolbar";
2652
- var Xn = (e, t) => {
2651
+ Xn.displayName = "StudioToolbar";
2652
+ var Zn = (e, t) => {
2653
2653
  const o = new URL(window.location.pathname, window.location.origin);
2654
- e && o.searchParams.set("source", e), e && t && o.searchParams.set("title", t), window.open(o.toString(), "sheetxl-" + go.uuidV4(), "popup=true");
2654
+ e && o.searchParams.set("source", e), e && t && o.searchParams.set("title", t), window.open(o.toString(), "sheetxl-" + ho.uuidV4(), "popup=true");
2655
2655
  };
2656
- function Zn(e, t) {
2656
+ function er(e, t) {
2657
2657
  const { workbook: o, setWorkbook: n, workbookTitle: r = "export", isDirty: a, notifier: l, refSave: i } = t;
2658
2658
  let s = !1;
2659
2659
  const d = async (e = null, t = null, o = null) => {
@@ -2662,20 +2662,20 @@ function Zn(e, t) {
2662
2662
  typedCreateWorkbookOptions: t ?? void 0,
2663
2663
  onPassword: async ({ origin: e, validate: t }) => {
2664
2664
  const o = await l.showInput({
2665
- title: wo("dialog.password.title"),
2666
- description: wo("dialog.password.open.description", { name: e.getName() ?? "" }),
2665
+ title: So("dialog.password.title"),
2666
+ description: So("dialog.password.open.description", { name: e.getName() ?? "" }),
2667
2667
  inputType: "password",
2668
2668
  options: [{
2669
2669
  id: "Open",
2670
- label: () => wo("dialog.open")
2670
+ label: () => So("dialog.open")
2671
2671
  }, "Cancel"],
2672
2672
  defaultOption: "Open",
2673
2673
  onValidateInput: async (e, o) => void 0 === o ? { valid: !0 } : e ? await t(e) ? { valid: !0 } : {
2674
2674
  valid: !1,
2675
- message: wo("dialog.password.open.retry")
2675
+ message: So("dialog.password.open.retry")
2676
2676
  } : {
2677
2677
  valid: !1,
2678
- message: wo("dialog.password.open.required")
2678
+ message: So("dialog.password.open.required")
2679
2679
  }
2680
2680
  });
2681
2681
  return "Open" === o?.option ? o.input ?? null : null;
@@ -2687,11 +2687,11 @@ function Zn(e, t) {
2687
2687
  let a;
2688
2688
  o && (r.progress.onStart = o);
2689
2689
  let i = -5;
2690
- return de.read({
2690
+ return ce.read({
2691
2691
  ...r,
2692
2692
  progress: {
2693
2693
  async onStart(e, t) {
2694
- await r?.progress?.onStart?.(e, t), a = await l?.showBusy?.(wo("workbook.opening", { name: e?.getName() ?? "" })), t && a?.setProgress?.(0, t);
2694
+ await r?.progress?.onStart?.(e, t), a = await l?.showBusy?.(So("workbook.opening", { name: e?.getName() ?? "" })), t && a?.setProgress?.(0, t);
2695
2695
  },
2696
2696
  onProgress(e, t) {
2697
2697
  if (!t) return;
@@ -2704,7 +2704,7 @@ function Zn(e, t) {
2704
2704
  o - i < 5 || (i = o, a?.setProgress?.(e, t));
2705
2705
  },
2706
2706
  onComplete() {
2707
- a?.(), n.length > 0 && (l.showMessage(wo("workbook.importWarnings")), console.warn("Import warnings:\n" + n.join("\n")));
2707
+ a?.(), n.length > 0 && (l.showMessage(So("workbook.importWarnings")), console.warn("Import warnings:\n" + n.join("\n")));
2708
2708
  },
2709
2709
  onWarning(e, t) {
2710
2710
  r?.progress?.onWarning?.(e, t);
@@ -2717,7 +2717,7 @@ function Zn(e, t) {
2717
2717
  format: t?.key,
2718
2718
  progress: {
2719
2719
  async onStart(e) {
2720
- a = await l?.showBusy?.(wo("workbook.saving", { name: e?.getName() ?? "" }));
2720
+ a = await l?.showBusy?.(So("workbook.saving", { name: e?.getName() ?? "" }));
2721
2721
  },
2722
2722
  onComplete() {
2723
2723
  a?.();
@@ -2725,55 +2725,55 @@ function Zn(e, t) {
2725
2725
  },
2726
2726
  onWarnings: n ?? (async ({ warnings: e, origin: t, canCancel: o }) => {
2727
2727
  a?.(), console.warn(`Not written to '${t.getName()}':\n${e.map((e) => ` ${e.message}`).join("\n")}`);
2728
- const n = wo("dialog.writeWarnings.title"), r = t.getFormat(), i = (r ? (await de.getWriteFormats({ search: r }))[0] : void 0)?.description ?? r ?? "", s = wo("dialog.writeWarnings.keep");
2728
+ const n = So("dialog.writeWarnings.title"), r = t.getFormat(), i = (r ? (await ce.getWriteFormats({ search: r }))[0] : void 0)?.description ?? r ?? "", s = So("dialog.writeWarnings.keep");
2729
2729
  return o ? "Save" === await l.showOptions({
2730
2730
  title: n,
2731
- type: Re.Warning,
2732
- description: `${wo("dialog.writeWarnings.confirm", { format: i })}\n\n${s}`,
2731
+ type: Le.Warning,
2732
+ description: `${So("dialog.writeWarnings.confirm", { format: i })}\n\n${s}`,
2733
2733
  options: [{
2734
2734
  id: "Save",
2735
- label: () => wo("dialog.save")
2735
+ label: () => So("dialog.save")
2736
2736
  }, "Cancel"],
2737
2737
  defaultOption: "Cancel"
2738
- }) && (a = await l?.showBusy?.(wo("workbook.saving", { name: t?.getName() ?? "" })), !0) : (l.showOptions({
2738
+ }) && (a = await l?.showBusy?.(So("workbook.saving", { name: t?.getName() ?? "" })), !0) : (l.showOptions({
2739
2739
  title: n,
2740
- type: Re.Warning,
2741
- description: `${wo("dialog.writeWarnings.saved", { format: i })}\n\n${s}`,
2740
+ type: Le.Warning,
2741
+ description: `${So("dialog.writeWarnings.saved", { format: i })}\n\n${s}`,
2742
2742
  options: ["Ok"]
2743
2743
  }), !0);
2744
2744
  })
2745
2745
  };
2746
2746
  let s;
2747
2747
  if (o) {
2748
- const o = e.getOrigin(), n = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${r || o.getName() || wo("workbook.defaultName")}.${n}`;
2749
- s = await de.writeAs(e, a, {
2748
+ const o = e.getOrigin(), n = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${r || o.getName() || So("workbook.defaultName")}.${n}`;
2749
+ s = await ce.writeAs(e, a, {
2750
2750
  ...i,
2751
2751
  prompt: !0
2752
2752
  });
2753
- } else s = await de.write(e, void 0, i);
2753
+ } else s = await ce.write(e, void 0, i);
2754
2754
  return s;
2755
2755
  };
2756
2756
  let p = null;
2757
2757
  return e.updateCommand("newWorkbook", { callback: async (e) => {
2758
- const t = de.canRead() && !a();
2758
+ const t = ce.canRead() && !a();
2759
2759
  e?.source ? t && p ? await p({
2760
2760
  url: e.source,
2761
2761
  title: e.title
2762
- }) : Xn(e.source, e.title) : t ? n({}) : Xn();
2762
+ }) : Zn(e.source, e.title) : t ? n({}) : Zn();
2763
2763
  } }), e.updateCommand("closeWorkbook", { callback: async () => {
2764
2764
  a() && "Close" !== await l.showOptions({
2765
- title: wo("dialog.confirm.title"),
2766
- description: wo("dialog.unsavedChanges"),
2765
+ title: So("dialog.confirm.title"),
2766
+ description: So("dialog.unsavedChanges"),
2767
2767
  options: [{
2768
2768
  id: "Close",
2769
- label: () => wo("dialog.close")
2769
+ label: () => So("dialog.close")
2770
2770
  }, "Cancel"],
2771
2771
  defaultOption: "Cancel"
2772
2772
  }) || window.close();
2773
2773
  } }), (async () => {
2774
- const t = await de.getWriteFormats();
2774
+ const t = await ce.getWriteFormats();
2775
2775
  if (s) return;
2776
- const r = de.canWrite(), u = de.canRead();
2776
+ const r = ce.canWrite(), u = ce.canRead();
2777
2777
  if (r) {
2778
2778
  const n = (e) => {
2779
2779
  const n = e ? t.find((t) => t.key === e) : void 0;
@@ -2787,13 +2787,13 @@ function Zn(e, t) {
2787
2787
  for (const o of t) {
2788
2788
  const t = o.key;
2789
2789
  e.updateCommand(`saveWorkbookAs${t}`, {
2790
- label: () => wo("command.saveAsFormat.label", { format: o.description }),
2790
+ label: () => So("command.saveAsFormat.label", { format: o.description }),
2791
2791
  groupLabels: {
2792
- workbook: () => wo("command.saveAsFormat.workbook", { format: o.description }),
2793
- saveWorkbookOptions: () => wo("command.saveAsFormat.compact", { format: o.description })
2792
+ workbook: () => So("command.saveAsFormat.workbook", { format: o.description }),
2793
+ saveWorkbookOptions: () => So("command.saveAsFormat.compact", { format: o.description })
2794
2794
  },
2795
2795
  tags: o.tags,
2796
- description: () => wo("command.saveAsFormat", { format: o.description }),
2796
+ description: () => So("command.saveAsFormat", { format: o.description }),
2797
2797
  icon: "CSV" === t ? "FileDownloadAsCSV" : "Excel" === t ? "FileDownloadAsExcel" : "FileDownloadAsSheet",
2798
2798
  callback: () => {
2799
2799
  n(t);
@@ -2821,7 +2821,7 @@ function Zn(e, t) {
2821
2821
  autoSelect: e === l.length - 1
2822
2822
  }).getEntireRange().copyFrom(t.getEntireRange());
2823
2823
  }
2824
- }, ko("op.importData")), a.close();
2824
+ }, wo("op.importData")), a.close();
2825
2825
  } catch (e) {
2826
2826
  l.showError(e);
2827
2827
  }
@@ -2830,9 +2830,9 @@ function Zn(e, t) {
2830
2830
  tags: ["noTransaction", "noRepeat"],
2831
2831
  callback: async (e = null) => {
2832
2832
  let t = e;
2833
- if (t || de.canRead() || (t = await (async () => {
2834
- const e = await de.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
2835
- return ho.openFileDialog(t.length ? t.join(",") : "*.*");
2833
+ if (t || ce.canRead() || (t = await (async () => {
2834
+ const e = await ce.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
2835
+ return yo.openFileDialog(t.length ? t.join(",") : "*.*");
2836
2836
  })(), t)) return m(t);
2837
2837
  }
2838
2838
  }), e.updateCommand("insertDataFromURL", {
@@ -2840,14 +2840,14 @@ function Zn(e, t) {
2840
2840
  callback: async (e) => {
2841
2841
  if (!e) {
2842
2842
  const t = await l.showInput({
2843
- title: wo("dialog.importFromWeb.title"),
2844
- description: wo("dialog.importFromWeb.description"),
2845
- inputLabel: wo("dialog.webAddress.inputLabel"),
2843
+ title: So("dialog.importFromWeb.title"),
2844
+ description: So("dialog.importFromWeb.description"),
2845
+ inputLabel: So("dialog.webAddress.inputLabel"),
2846
2846
  initialValue: "https://www.sheetxl.com/docs/examples/financial-calculators.xlsx",
2847
2847
  propsInput: { style: { minWidth: "440px" } },
2848
2848
  options: [{
2849
2849
  id: "Import",
2850
- label: () => wo("dialog.import")
2850
+ label: () => So("dialog.import")
2851
2851
  }]
2852
2852
  });
2853
2853
  if ("Import" !== t.option) return;
@@ -2864,11 +2864,11 @@ function Zn(e, t) {
2864
2864
  }
2865
2865
  }), u) {
2866
2866
  const t = async () => !a() || "Open" === await l.showOptions({
2867
- title: wo("dialog.confirm.title"),
2868
- description: wo("dialog.unsavedChanges"),
2867
+ title: So("dialog.confirm.title"),
2868
+ description: So("dialog.unsavedChanges"),
2869
2869
  options: [{
2870
2870
  id: "Open",
2871
- label: () => wo("dialog.open")
2871
+ label: () => So("dialog.open")
2872
2872
  }, "Cancel"],
2873
2873
  defaultOption: "Cancel"
2874
2874
  }), r = async (e = null) => {
@@ -2891,14 +2891,14 @@ function Zn(e, t) {
2891
2891
  const n = "string" == typeof e ? void 0 : e?.title;
2892
2892
  if (!o) {
2893
2893
  const e = await l.showInput({
2894
- title: wo("dialog.openFromWeb.title"),
2895
- description: wo("dialog.openFromWeb.description"),
2896
- inputLabel: wo("dialog.webAddress.inputLabel"),
2894
+ title: So("dialog.openFromWeb.title"),
2895
+ description: So("dialog.openFromWeb.description"),
2896
+ inputLabel: So("dialog.webAddress.inputLabel"),
2897
2897
  initialValue: "https://www.sheetxl.com/docs/examples/financial-calculators.xlsx",
2898
2898
  propsInput: { style: { minWidth: "440px" } },
2899
2899
  options: [{
2900
2900
  id: "Open",
2901
- label: () => wo("dialog.open")
2901
+ label: () => So("dialog.open")
2902
2902
  }]
2903
2903
  });
2904
2904
  if ("Open" !== e.option) return;
@@ -2918,9 +2918,9 @@ function Zn(e, t) {
2918
2918
  s = !0, i && (i.current = null);
2919
2919
  };
2920
2920
  }
2921
- var er = St(vo("studio:shortcutKeysDialog", () => import("./2wtbIYdeGDT6UzN4.mjs")).load);
2921
+ var tr = Tt(Co("studio:shortcutKeysDialog", () => import("./4HI6dheaskyg9kLm.mjs")).load);
2922
2922
  D(), O();
2923
- var tr = /* @__PURE__ */ new Set(["ui"]), or = (e) => {
2923
+ var or = /* @__PURE__ */ new Set(["ui"]), nr = (e) => {
2924
2924
  const t = (e) => {
2925
2925
  if ("function" != typeof e) return e;
2926
2926
  try {
@@ -2930,9 +2930,9 @@ var tr = /* @__PURE__ */ new Set(["ui"]), or = (e) => {
2930
2930
  }
2931
2931
  }, o = (e, o) => {
2932
2932
  const n = t(e);
2933
- return "string" == typeof n ? Co(n, o, yo.getActive()) : void 0;
2933
+ return "string" == typeof n ? ko(n, o, fo.getActive()) : void 0;
2934
2934
  }, n = [];
2935
- for (const r of e.names()) if (!tr.has(r)) for (const a of e.keys(r)) {
2935
+ for (const r of e.names()) if (!or.has(r)) for (const a of e.keys(r)) {
2936
2936
  const l = e.resolveDefinition(r, a);
2937
2937
  n.push({
2938
2938
  groupKey: r,
@@ -2942,29 +2942,29 @@ var tr = /* @__PURE__ */ new Set(["ui"]), or = (e) => {
2942
2942
  getDescription: () => o(l?.description, l?.params) ?? "",
2943
2943
  getShortcut: () => t(l?.shortcut) ?? null,
2944
2944
  getScope: () => r,
2945
- getScopeLabel: () => Oe.DefaultCommandCatalogService.getScopeLabel(r)
2945
+ getScopeLabel: () => Me.DefaultCommandCatalogService.getScopeLabel(r)
2946
2946
  }
2947
2947
  });
2948
2948
  }
2949
2949
  return { getAllCommands: () => n };
2950
- }, nr = (e) => {
2951
- const { children: t, workbook: o, setWorkbook: n, workbookTitle: r, isDirty: a, refSave: l } = e, i = Oe.useCommandScope(), s = Qe(), { showModal: d } = Nt(), c = Ze(), p = dt(a);
2952
- p.current = a;
2953
- const u = _e(() => {
2954
- const e = i?.getRoot().getRegistry();
2950
+ }, rr = (e) => {
2951
+ const { children: t, workbook: o, setWorkbook: n, workbookTitle: r, isDirty: a, refSave: l, fullscreenTarget: i } = e, s = Me.useCommandScope(), d = Ye(), { showModal: c } = Nt(), p = et(), u = ct(a);
2952
+ u.current = a;
2953
+ const m = He(() => {
2954
+ const e = s?.getRoot().getRegistry();
2955
2955
  if (!e) return;
2956
- const t = d(er, {
2957
- title: c("dialog.shortcutKeys.title"),
2958
- commands: or(e),
2956
+ const t = c(tr, {
2957
+ title: p("dialog.shortcutKeys.title"),
2958
+ commands: nr(e),
2959
2959
  onDone: () => t.hide(),
2960
2960
  onLoadError: (e) => {
2961
- t.destroy(), s.showError(e);
2961
+ t.destroy(), d.showError(e);
2962
2962
  }
2963
2963
  });
2964
- }, [i, d]);
2965
- it(() => {
2966
- if (!i) return;
2967
- const e = i.getRoot().contribution();
2964
+ }, [s, c]);
2965
+ st(() => {
2966
+ if (!s) return;
2967
+ const e = s.getRoot().contribution();
2968
2968
  return function(e, t) {
2969
2969
  const o = () => t.showShortcuts();
2970
2970
  e.updateCommand("showKeyboardShortcuts", { callback: o }), e.updateCommand("help", { callback: o });
@@ -2976,12 +2976,12 @@ var tr = /* @__PURE__ */ new Set(["ui"]), or = (e) => {
2976
2976
  })) e.updateCommand(t, { callback: () => {
2977
2977
  window?.open(o);
2978
2978
  } });
2979
- }(e, { showShortcuts: u }), () => e.remove();
2980
- }, [i, u]);
2981
- const m = uo("(prefers-color-scheme: dark)"), { themeMode: g } = Je(), [h, y] = Ye(se.Mode, null), [f, b] = Ye(se.DarkGrid, !1), [x, v] = Ye(se.DarkImages, !1);
2982
- it(() => {
2983
- if (!i) return;
2984
- const e = i.getRoot().contribution();
2979
+ }(e, { showShortcuts: m }), () => e.remove();
2980
+ }, [s, m]);
2981
+ const g = mo("(prefers-color-scheme: dark)"), { themeMode: h } = Xe(), [y, f] = Je(de.Mode, se[de.Mode]), [b, x] = Je(de.DarkGrid, se[de.DarkGrid]), [v, C] = Je(de.DarkImages, se[de.DarkImages]);
2982
+ st(() => {
2983
+ if (!s) return;
2984
+ const e = s.getRoot().contribution();
2985
2985
  return function(e, t) {
2986
2986
  e.updateCommand("themeMode", {
2987
2987
  state: t.mode ?? null,
@@ -3000,32 +3000,32 @@ var tr = /* @__PURE__ */ new Set(["ui"]), or = (e) => {
3000
3000
  callback: () => t.setEnableDarkImages((e) => !e)
3001
3001
  });
3002
3002
  }(e, {
3003
- mode: h,
3004
- setMode: y,
3005
- isDark: "dark" === h || !h && "dark" === g,
3006
- systemDefaultDark: m,
3007
- enableDarkGrid: f,
3008
- setEnableDarkGrid: b,
3009
- enableDarkImages: x,
3010
- setEnableDarkImages: v
3003
+ mode: y,
3004
+ setMode: f,
3005
+ isDark: "dark" === y || !y && "dark" === h,
3006
+ systemDefaultDark: g,
3007
+ enableDarkGrid: b,
3008
+ setEnableDarkGrid: x,
3009
+ enableDarkImages: v,
3010
+ setEnableDarkImages: C
3011
3011
  }), () => e.remove();
3012
3012
  }, [
3013
- i,
3013
+ s,
3014
+ y,
3014
3015
  h,
3015
3016
  g,
3016
- m,
3017
+ b,
3018
+ v,
3017
3019
  f,
3018
3020
  x,
3019
- y,
3020
- b,
3021
- v
3021
+ C
3022
3022
  ]);
3023
- const [C, k] = Ye(Be.Active, null), [w, S] = ct(() => yo.getActive());
3024
- it(() => yo.addChangeListener(S), []), it(() => {
3025
- C && C !== yo.getActive() && yo.setActive(C);
3026
- }, [C]), it(() => {
3027
- if (!i) return;
3028
- const e = i.getRoot().contribution();
3023
+ const [k, w] = Je(Re.Active, null), [S, T] = pt(() => fo.getActive());
3024
+ st(() => fo.addChangeListener(T), []), st(() => {
3025
+ k && k !== fo.getActive() && fo.setActive(k);
3026
+ }, [k]), st(() => {
3027
+ if (!s) return;
3028
+ const e = s.getRoot().contribution();
3029
3029
  return function(e, t) {
3030
3030
  e.updateCommand("language", {
3031
3031
  state: t.active,
@@ -3034,44 +3034,44 @@ var tr = /* @__PURE__ */ new Set(["ui"]), or = (e) => {
3034
3034
  }
3035
3035
  });
3036
3036
  }(e, {
3037
- active: w,
3037
+ active: S,
3038
3038
  setActive: (e) => {
3039
- k(e);
3039
+ w(e);
3040
3040
  }
3041
3041
  }), () => e.remove();
3042
3042
  }, [
3043
- i,
3044
- w,
3045
- k
3043
+ s,
3044
+ S,
3045
+ w
3046
3046
  ]);
3047
- const { isFullscreenAvailable: T, isFullscreenEnabled: F, toggleFullscreen: D } = Ue();
3048
- it(() => {
3049
- if (!i) return;
3050
- const e = i.getRoot().contribution();
3047
+ const { isFullscreenAvailable: F, isFullscreenEnabled: D, toggleFullscreen: I } = qe({ target: dt(() => ({ current: i ?? null }), [i]) });
3048
+ st(() => {
3049
+ if (!s) return;
3050
+ const e = s.getRoot().contribution();
3051
3051
  return function(e, t) {
3052
3052
  e.updateCommand("fullScreenToggle", {
3053
3053
  state: t.isFullscreenEnabled,
3054
- disabledReasons: t.isFullscreenAvailable ? [] : [ko("reason.fullscreenUnavailable")],
3054
+ disabledReasons: t.isFullscreenAvailable ? [] : [wo("reason.fullscreenUnavailable")],
3055
3055
  icon: t.isFullscreenEnabled ? "FullScreenOff" : "FullScreen",
3056
3056
  callback: () => {
3057
3057
  t.toggleFullscreen();
3058
3058
  }
3059
3059
  });
3060
3060
  }(e, {
3061
- isFullscreenAvailable: T,
3062
- isFullscreenEnabled: F,
3063
- toggleFullscreen: D
3061
+ isFullscreenAvailable: F,
3062
+ isFullscreenEnabled: D,
3063
+ toggleFullscreen: I
3064
3064
  }), () => e.remove();
3065
3065
  }, [
3066
- i,
3067
- T,
3066
+ s,
3068
3067
  F,
3069
- D
3068
+ D,
3069
+ I
3070
3070
  ]);
3071
- const N = Fe(!0);
3072
- return it(() => {
3073
- if (!i) return;
3074
- const e = i.getRoot().contribution();
3071
+ const N = De(!0);
3072
+ return st(() => {
3073
+ if (!s) return;
3074
+ const e = s.getRoot().contribution();
3075
3075
  return function(e, t) {
3076
3076
  e.updateCommand("protectWorkbook", {
3077
3077
  tags: ["noTransaction", "noRepeat"],
@@ -3080,31 +3080,31 @@ var tr = /* @__PURE__ */ new Set(["ui"]), or = (e) => {
3080
3080
  }
3081
3081
  });
3082
3082
  }(e, (e, t) => N.activate(e, t)), () => e.remove();
3083
- }, [i, N]), it(() => {
3084
- if (!i || !o) return;
3085
- const e = i.getRoot().contribution(), t = Zn(e, {
3083
+ }, [s, N]), st(() => {
3084
+ if (!s || !o) return;
3085
+ const e = s.getRoot().contribution(), t = er(e, {
3086
3086
  workbook: o,
3087
3087
  setWorkbook: n,
3088
3088
  workbookTitle: r ?? void 0,
3089
- isDirty: () => p.current?.() ?? !1,
3090
- notifier: s,
3089
+ isDirty: () => u.current?.() ?? !1,
3090
+ notifier: d,
3091
3091
  refSave: l
3092
3092
  });
3093
3093
  return () => {
3094
3094
  t(), e.remove();
3095
3095
  };
3096
3096
  }, [
3097
- i,
3097
+ s,
3098
3098
  o,
3099
3099
  n,
3100
3100
  r,
3101
- s,
3101
+ d,
3102
3102
  l
3103
3103
  ]), t;
3104
3104
  };
3105
- nr.displayName = "StudioCommandProvider";
3106
- var rr = ({ renderWorkbook: e }) => {
3107
- const t = Oe.useCommandResolver(), o = dt(null), n = Ze(), [r, a] = ct(null), l = at((e) => {
3105
+ rr.displayName = "StudioCommandProvider";
3106
+ var ar = ({ renderWorkbook: e }) => {
3107
+ const t = Me.useCommandResolver(), o = ct(null), n = et(), [r, a] = pt(null), l = lt((e) => {
3108
3108
  const o = e.dataTransfer;
3109
3109
  if (t && o) {
3110
3110
  if ("dragenter" === e.type || "dragover" === e.type) {
@@ -3121,7 +3121,7 @@ var rr = ({ renderWorkbook: e }) => {
3121
3121
  }
3122
3122
  e.preventDefault();
3123
3123
  }
3124
- }, [t]), i = _e((e) => {
3124
+ }, [t]), i = He((e) => {
3125
3125
  e.preventDefault();
3126
3126
  const n = r;
3127
3127
  if (a(null), n && t && (e.stopPropagation(), e.dataTransfer.files && e.dataTransfer.files.length > 0)) {
@@ -3146,15 +3146,15 @@ var rr = ({ renderWorkbook: e }) => {
3146
3146
  } }
3147
3147
  });
3148
3148
  } else {
3149
- if (!de.canRead()) return;
3149
+ if (!ce.canRead()) return;
3150
3150
  const o = e.dataTransfer.items?.[0], r = "undefined" != typeof window && window.isSecureContext ? o?.getAsFileSystemHandle?.() : void 0;
3151
3151
  r ? r.then((e) => t.execute("openWorkbook", "file" === e?.kind ? e : n)).catch(() => t.execute("openWorkbook", n)) : t.execute("openWorkbook", n);
3152
3152
  }
3153
3153
  }
3154
- }, [t, r]), s = st(() => {
3154
+ }, [t, r]), s = dt(() => {
3155
3155
  if (!r) return null;
3156
3156
  const e = "insertImage" === r;
3157
- return Ot(Bt, {
3157
+ return Mt(Rt, {
3158
3158
  className: "drop-overlay",
3159
3159
  sx: {
3160
3160
  position: "absolute",
@@ -3165,12 +3165,12 @@ var rr = ({ renderWorkbook: e }) => {
3165
3165
  display: "flex",
3166
3166
  justifyContent: "center",
3167
3167
  alignItems: "center",
3168
- backgroundColor: (e) => po(e.palette.primary.main, .46),
3168
+ backgroundColor: (e) => uo(e.palette.primary.main, .46),
3169
3169
  outline: (e) => `2px dashed ${e.palette.primary.main}`,
3170
3170
  outlineOffset: "-6px",
3171
3171
  borderRadius: 2
3172
3172
  },
3173
- children: Mt(Zt, {
3173
+ children: At(eo, {
3174
3174
  elevation: 6,
3175
3175
  sx: {
3176
3176
  display: "flex",
@@ -3182,11 +3182,11 @@ var rr = ({ renderWorkbook: e }) => {
3182
3182
  color: "text.primary",
3183
3183
  "& .drop-overlay-icon": { color: "primary.main" }
3184
3184
  },
3185
- children: [Ot(We, {
3185
+ children: [Mt(Ee, {
3186
3186
  iconKey: e ? "InsertImage" : "FileOpen",
3187
3187
  className: "drop-overlay-icon",
3188
3188
  size: 32
3189
- }), Ot(co, {
3189
+ }), Mt(po, {
3190
3190
  variant: "h6",
3191
3191
  component: "span",
3192
3192
  children: n(e ? "drop.insertImage" : "drop.open")
@@ -3194,7 +3194,7 @@ var rr = ({ renderWorkbook: e }) => {
3194
3194
  })
3195
3195
  });
3196
3196
  }, [r, n]);
3197
- return Mt(It, { children: [e({
3197
+ return At(Ot, { children: [e({
3198
3198
  ref: o,
3199
3199
  onDragStart: (e) => {
3200
3200
  if (e.target.src) {
@@ -3207,49 +3207,50 @@ var rr = ({ renderWorkbook: e }) => {
3207
3207
  onDragOver: l,
3208
3208
  onDrop: i
3209
3209
  }), s] });
3210
- }, ar = rt((e) => {
3211
- const { workbook: t, setWorkbook: o, refDocumentTitle: n, titleWorkbook: r, setWorkbookTitle: a, isDirty: l, initialCommandAnchor: i, renderWorkbook: s, refSave: d } = e;
3212
- return Ot(J, {
3210
+ }, lr = at((e) => {
3211
+ const { workbook: t, setWorkbook: o, refDocumentTitle: n, titleWorkbook: r, setWorkbookTitle: a, isDirty: l, initialCommandAnchor: i, renderWorkbook: s, refSave: d, host: c } = e;
3212
+ return Mt(J, {
3213
3213
  initialAnchor: i,
3214
- children: Ot(nr, {
3214
+ children: Mt(rr, {
3215
3215
  workbook: t,
3216
3216
  setWorkbook: o,
3217
3217
  workbookTitle: r,
3218
3218
  isDirty: l,
3219
3219
  refSave: d,
3220
- children: Ot(rr, { renderWorkbook: s })
3220
+ fullscreenTarget: c,
3221
+ children: Mt(ar, { renderWorkbook: s })
3221
3222
  })
3222
3223
  });
3223
3224
  });
3224
- ar.displayName = "CommandsWrapper";
3225
- var lr = {
3226
- sort: vo("studio:sortDialog", () => import("./T3WcGiReCHGeKPOy.mjs"), { tier: "common" }).load,
3227
- hyperlink: vo("studio:hyperlinkDialog", () => import("./DhZG-hcTUn-vLoZy.mjs"), { tier: "common" }).load,
3228
- comments: vo("studio:commentsDialog", () => import("./XpqeM7yyMghtMgLc.mjs"), { tier: "common" }).load,
3229
- find: vo("studio:findReplaceWindow", () => import("./DKzeeAeOVF2r68yb.mjs"), { tier: "common" }).load,
3230
- tableNew: vo("studio:tableNewDialog", () => import("./DMbGl7mOdelCN7-u.mjs"), { tier: "common" }).load,
3231
- namedDetails: vo("studio:namedReferenceDialog", () => import("./CUsUUWPxbO1IW9PY.mjs")).load,
3232
- insertFunction: vo("studio:insertFunctionDialog", () => import("./CGhj-BDkyrejG1Jj.mjs"), { tier: "common" }).load,
3233
- resizeHeader: vo("studio:resizeHeaderDialog", () => import("./B1z-keCkm0LI9ezw.mjs")).load,
3234
- fillSeries: vo("studio:fillSeriesDialog", () => import("./R1_Dii8zCHEAZKvZ.mjs")).load,
3235
- workbookStatistics: vo("studio:workbookStatisticsDialog", () => import("./B9iw8mqg0MDNDp5_.mjs")).load,
3236
- password: vo("studio:passwordDialog", () => import("./index.mjs").then((e) => e.o)).load
3237
- }, ir = ["find"], sr = rt((e) => {
3238
- const { children: t } = e, o = Po(), n = o ? o.enqueueSnackbar : () => {}, r = o ? o.closeSnackbar : () => {}, a = dt(/* @__PURE__ */ new Set()), l = dt(null), i = dt(null), [s, d] = ct({
3225
+ lr.displayName = "CommandsWrapper";
3226
+ var ir = {
3227
+ sort: Co("studio:sortDialog", () => import("./BT8pKXqqPi8PAXbL.mjs"), { tier: "common" }).load,
3228
+ hyperlink: Co("studio:hyperlinkDialog", () => import("./aAEiFrxe-aYXbogR.mjs"), { tier: "common" }).load,
3229
+ comments: Co("studio:commentsDialog", () => import("./r_EDiG9j1gFuHgF9.mjs"), { tier: "common" }).load,
3230
+ find: Co("studio:findReplaceWindow", () => import("./CAe57GIDt8E3Sj1R.mjs"), { tier: "common" }).load,
3231
+ tableNew: Co("studio:tableNewDialog", () => import("./C4o3AryrtuiHuFLr.mjs"), { tier: "common" }).load,
3232
+ namedDetails: Co("studio:namedReferenceDialog", () => import("./B9mtSfhFe3Hjcx9T.mjs")).load,
3233
+ insertFunction: Co("studio:insertFunctionDialog", () => import("./BKpja0BXFbcWlnni.mjs"), { tier: "common" }).load,
3234
+ resizeHeader: Co("studio:resizeHeaderDialog", () => import("./oAiHfSODZnkRxiTN.mjs")).load,
3235
+ fillSeries: Co("studio:fillSeriesDialog", () => import("./DHVHJBTqBhlJQXpX.mjs")).load,
3236
+ workbookStatistics: Co("studio:workbookStatisticsDialog", () => import("./6HLpHxyQNZYCN2_o.mjs")).load,
3237
+ password: Co("studio:passwordDialog", () => import("./index.mjs").then((e) => e.o)).load
3238
+ }, sr = ["find"], dr = at((e) => {
3239
+ const { children: t } = e, o = Po(), n = o ? o.enqueueSnackbar : () => {}, r = o ? o.closeSnackbar : () => {}, a = ct(/* @__PURE__ */ new Set()), l = ct(null), i = ct(null), [s, d] = pt({
3239
3240
  label: null,
3240
3241
  progress: null
3241
- }), c = Ze(), p = go.EmptyObject, u = Dt(p), m = Pt(p), g = Ft(p), h = dt(!1);
3242
- it(() => {
3242
+ }), c = et(), p = ho.EmptyObject, u = It(p), m = Pt(p), g = Dt(p), h = ct(!1);
3243
+ st(() => {
3243
3244
  if (h.current) return;
3244
3245
  h.current = !0;
3245
3246
  const e = window, t = e.requestIdleCallback ?? ((e) => setTimeout(e, 500)), o = e.cancelIdleCallback ?? clearTimeout, n = t(() => {
3246
- for (const e of ir) u(e, lr[e], { prewarm: !0 }).catch(() => {});
3247
+ for (const e of sr) u(e, ir[e], { prewarm: !0 }).catch(() => {});
3247
3248
  });
3248
3249
  return () => o(n);
3249
3250
  }, []);
3250
- const y = dt(/* @__PURE__ */ new Set());
3251
- return Mt(Ve, {
3252
- notifier: st(() => {
3251
+ const y = ct(/* @__PURE__ */ new Set());
3252
+ return At(ze, {
3253
+ notifier: dt(() => {
3253
3254
  const e = (e, t) => {
3254
3255
  if (t?.onceKey) {
3255
3256
  if (y.current.has(t.onceKey)) return;
@@ -3257,16 +3258,16 @@ var lr = {
3257
3258
  e.add(t.onceKey), y.current = e;
3258
3259
  }
3259
3260
  const o = {
3260
- variant: t?.type ?? Re.Info,
3261
+ variant: t?.type ?? Le.Info,
3261
3262
  anchorOrigin: {
3262
3263
  vertical: "top",
3263
3264
  horizontal: "center"
3264
3265
  },
3265
3266
  preventDuplicate: t?.preventDuplicate,
3266
- persist: t?.persist ?? t?.type === Re.Error,
3267
- action: (e) => Ot(Gt, {
3267
+ persist: t?.persist ?? t?.type === Le.Error,
3268
+ action: (e) => Mt(Qt, {
3268
3269
  onClick: () => r(e),
3269
- children: Ot(We, { iconKey: "Cancel" })
3270
+ children: Mt(Ee, { iconKey: "Cancel" })
3270
3271
  })
3271
3272
  };
3272
3273
  t?.enqueueProps && Object.assign(o, t.enqueueProps), e || console.log("message is 'null'", t), n(e ?? "Alert", o);
@@ -3278,8 +3279,8 @@ var lr = {
3278
3279
  ...t,
3279
3280
  label: e
3280
3281
  });
3281
- const n = $e(() => {
3282
- a.current.delete(o) && (a.current.size > 0 || (wt(l.current), i.current = null, d((e) => null === e.label && null === e.progress ? e : {
3282
+ const n = Ke(() => {
3283
+ a.current.delete(o) && (a.current.size > 0 || (St(l.current), i.current = null, d((e) => null === e.label && null === e.progress ? e : {
3283
3284
  label: null,
3284
3285
  progress: null
3285
3286
  })));
@@ -3290,11 +3291,11 @@ var lr = {
3290
3291
  progress: o
3291
3292
  });
3292
3293
  }, (e) => {
3293
- i.current = e, "string" == typeof e ? Tt(l.current, e) : d((t) => ({
3294
+ i.current = e, "string" == typeof e ? Ft(l.current, e) : d((t) => ({
3294
3295
  ...t,
3295
3296
  label: e
3296
3297
  }));
3297
- }), r = Tt(l.current, "string" == typeof e ? e : void 0);
3298
+ }), r = Ft(l.current, "string" == typeof e ? e : void 0);
3298
3299
  return r ? r.then(() => n) : n;
3299
3300
  },
3300
3301
  showWindow: (e, t) => {
@@ -3304,24 +3305,24 @@ var lr = {
3304
3305
  onKeyDown: (e) => {
3305
3306
  e.isDefaultPrevented() || e.isPropagationStopped() || o?.onKeyDown?.(e);
3306
3307
  }
3307
- }, u(e, lr[e], t);
3308
+ }, u(e, ir[e], t);
3308
3309
  },
3309
3310
  showOptions: m,
3310
3311
  showInput: g,
3311
3312
  showError: (t) => {
3312
- let o, n = Re.Error, r = c("error.unknown");
3313
- "string" == typeof t ? r = t : t instanceof Error && (o = t, t.message && (r = c(t.message))), t instanceof xo && (n = Re.Info), e(r, {
3313
+ let o, n = Le.Error, r = c("error.unknown");
3314
+ "string" == typeof t ? r = t : t instanceof Error && (o = t, t.message && (r = c(t.message))), t instanceof vo && (n = Le.Info), e(r, {
3314
3315
  type: n,
3315
3316
  enqueueProps: { error: o }
3316
3317
  });
3317
3318
  }
3318
- }, o = new Ae();
3319
+ }, o = new We();
3319
3320
  return o.setOverrides(t), o;
3320
3321
  }, [c]),
3321
- children: [st(() => Ot(pt, {
3322
+ children: [dt(() => Mt(ut, {
3322
3323
  ref: l,
3323
3324
  autoStart: !1,
3324
- icon: Ot(ut, { sx: {
3325
+ icon: Mt(mt, { sx: {
3325
3326
  transform: "scale(0.7)",
3326
3327
  marginLeft: "-6px"
3327
3328
  } }),
@@ -3340,14 +3341,14 @@ var lr = {
3340
3341
  }), [s.label, s.progress]), t]
3341
3342
  });
3342
3343
  });
3343
- sr.displayName = "StudioNotifierProvider";
3344
- var dr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", cr = rt(ot((e, t) => {
3345
- const { children: o, title: n, taskPanes: r, onSelect: a, selected: l, registry: i = Z, style: s, iconsOnly: d, side: c = "right", className: p, ...u } = e, m = "right" !== c, g = st(() => r.map((t) => {
3344
+ dr.displayName = "StudioNotifierProvider";
3345
+ var cr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", pr = at(nt((e, t) => {
3346
+ const { children: o, title: n, taskPanes: r, onSelect: a, selected: l, registry: i = Z, style: s, iconsOnly: d, side: c = "right", className: p, ...u } = e, m = "right" !== c, g = dt(() => r.map((t) => {
3346
3347
  const o = i.getRegisteredTaskPane(t);
3347
3348
  if (!o) return null;
3348
3349
  let n = o.getIcon?.();
3349
- "string" == typeof n && (n = Ot(We, { iconKey: n }));
3350
- const r = t === l, a = n ? Ot(Bt, {
3350
+ "string" == typeof n && (n = Mt(Ee, { iconKey: n }));
3351
+ const r = t === l, a = n ? Mt(Rt, {
3351
3352
  sx: {
3352
3353
  display: "inline-block",
3353
3354
  transform: m ? "rotate(-90deg)" : "rotate(90deg)",
@@ -3355,20 +3356,20 @@ var dr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
3355
3356
  color: (e) => e.palette.text.secondary
3356
3357
  },
3357
3358
  children: n
3358
- }) : null, s = !n || !d && r, c = Ot(Bt, {
3359
+ }) : null, s = !n || !d && r, c = Mt(Rt, {
3359
3360
  sx: {
3360
3361
  display: "grid",
3361
3362
  gridTemplateColumns: s ? "1fr" : "0fr",
3362
3363
  opacity: s ? 1 : 0,
3363
3364
  transition: (e) => e.transitions.create(["grid-template-columns", "opacity"], { duration: e.transitions.duration.short })
3364
3365
  },
3365
- children: Ot(Bt, {
3366
+ children: Mt(Rt, {
3366
3367
  sx: {
3367
3368
  overflow: "hidden",
3368
3369
  minWidth: 0,
3369
3370
  minHeight: 0
3370
3371
  },
3371
- children: Ot(co, {
3372
+ children: Mt(po, {
3372
3373
  component: "div",
3373
3374
  sx: {
3374
3375
  textTransform: "none",
@@ -3381,13 +3382,13 @@ var dr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
3381
3382
  })
3382
3383
  })
3383
3384
  });
3384
- return Ot(no, {
3385
+ return Mt(ro, {
3385
3386
  value: t,
3386
- label: Ot(xt, {
3387
+ label: Mt(vt, {
3387
3388
  disableInteractive: !0,
3388
3389
  title: o.getTitle() ?? "",
3389
3390
  placement: "left-start",
3390
- children: Mt(Bt, {
3391
+ children: At(Rt, {
3391
3392
  sx: {
3392
3393
  padding: "0px 0px",
3393
3394
  writingMode: m ? "vertical-lr" : "vertical-rl",
@@ -3407,7 +3408,7 @@ var dr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
3407
3408
  minHeight: "0px",
3408
3409
  borderRadius: "4px"
3409
3410
  },
3410
- className: So("taskpane-strip-item", { "Mui-selected": r }),
3411
+ className: To("taskpane-strip-item", { "Mui-selected": r }),
3411
3412
  onClick: () => e.onSelect(t)
3412
3413
  }, t);
3413
3414
  }), [
@@ -3417,11 +3418,11 @@ var dr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
3417
3418
  i,
3418
3419
  m,
3419
3420
  d,
3420
- Ge()
3421
+ Qe()
3421
3422
  ]);
3422
- return Ot(Bt, {
3423
- ref: qe(t, () => ({ isTaskPaneStrip: () => !0 }), []),
3424
- className: st(() => So("taskpane-strip", p), [p]),
3423
+ return Mt(Rt, {
3424
+ ref: Ge(t, () => ({ isTaskPaneStrip: () => !0 }), []),
3425
+ className: dt(() => To("taskpane-strip", p), [p]),
3425
3426
  sx: {
3426
3427
  paddingLeft: m ? void 0 : "2px",
3427
3428
  paddingRight: m ? "2px" : void 0,
@@ -3429,7 +3430,7 @@ var dr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
3429
3430
  ...s
3430
3431
  },
3431
3432
  ...u,
3432
- children: Ot(ro, {
3433
+ children: Mt(ao, {
3433
3434
  orientation: "vertical",
3434
3435
  variant: "scrollable",
3435
3436
  value: l,
@@ -3447,10 +3448,10 @@ var dr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
3447
3448
  children: g
3448
3449
  })
3449
3450
  });
3450
- })), pr = (e) => {
3451
- const { title: t, icon: o, onClose: n, readOnly: r, focused: a, ...l } = e, i = dt(null), s = Ze();
3452
- return Ot(Kt, {
3453
- className: So({ "Mui-selected": a }),
3451
+ })), ur = (e) => {
3452
+ const { title: t, icon: o, onClose: n, readOnly: r, focused: a, ...l } = e, i = ct(null), s = et();
3453
+ return Mt(_t, {
3454
+ className: To({ "Mui-selected": a }),
3454
3455
  sx: {
3455
3456
  display: "flex",
3456
3457
  flex: "1 1 %0",
@@ -3464,11 +3465,11 @@ var dr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
3464
3465
  opacity: 1,
3465
3466
  transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
3466
3467
  },
3467
- backgroundColor: (e) => po(e.palette.action.hover, .03),
3468
- borderBottom: `solid ${dr} 1px`
3468
+ backgroundColor: (e) => uo(e.palette.action.hover, .03),
3469
+ borderBottom: `solid ${cr} 1px`
3469
3470
  },
3470
3471
  ...l,
3471
- children: Mt(Bt, {
3472
+ children: At(Rt, {
3472
3473
  sx: {
3473
3474
  display: "flex",
3474
3475
  flex: "1 1 10%",
@@ -3479,15 +3480,15 @@ var dr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
3479
3480
  marginLeft: (e) => e.spacing(1),
3480
3481
  marginRight: (e) => e.spacing(1)
3481
3482
  },
3482
- children: [Ot(Bt, {
3483
+ children: [Mt(Rt, {
3483
3484
  sx: {
3484
3485
  flex: "1 1 100%",
3485
3486
  paddingLeft: (e) => e.spacing(1)
3486
3487
  },
3487
3488
  children: t
3488
- }), Ot(ft, {
3489
+ }), Mt(bt, {
3489
3490
  label: s("taskPane.close"),
3490
- children: Ot(Gt, {
3491
+ children: Mt(Qt, {
3491
3492
  "aria-label": "close",
3492
3493
  sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
3493
3494
  touchRippleRef: i,
@@ -3497,24 +3498,24 @@ var dr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
3497
3498
  onPointerUp: () => {
3498
3499
  n();
3499
3500
  },
3500
- children: Ot(We, { iconKey: "Close" })
3501
+ children: Mt(Ee, { iconKey: "Close" })
3501
3502
  })
3502
3503
  })]
3503
3504
  })
3504
3505
  });
3505
- }, ur = ot((e, t) => {
3506
- const { model: o, side: n, ...r } = e, a = mo();
3507
- return Ot(le, {
3506
+ }, mr = nt((e, t) => {
3507
+ const { model: o, side: n, ...r } = e, a = go();
3508
+ return Mt(le, {
3508
3509
  model: o,
3509
3510
  ref: t,
3510
3511
  propsFrame: { style: {
3511
- border: `solid ${dr} 1px`,
3512
+ border: `solid ${cr} 1px`,
3512
3513
  borderRadius: `${a.shape.borderRadius ?? 4}px`,
3513
3514
  marginBottom: `${a.spacing?.(.5) ?? 4}px`
3514
3515
  } },
3515
3516
  alwaysShowStrip: !0,
3516
- componentTitle: pr,
3517
- componentStrip: cr,
3517
+ componentTitle: ur,
3518
+ componentStrip: pr,
3518
3519
  side: n,
3519
3520
  ...e,
3520
3521
  onOpen: () => {
@@ -3525,28 +3526,28 @@ var dr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
3525
3526
  },
3526
3527
  ...r
3527
3528
  });
3528
- }), mr = "_styled-resizer_fdl5y_3", gr = {}, hr = {
3529
+ }), gr = "_styled-resizer_fdl5y_3", hr = {}, yr = {
3529
3530
  flex: "1 1 100%",
3530
3531
  display: "flex",
3531
3532
  boxSizing: "border-box"
3532
- }, yr = rt(ot((e, t) => {
3533
- const { mainElement: o, sidebarElement: n, position: r, persistKey: a, onPositionChange: l, className: i, style: s, taskSide: d = "right", ...c } = e, [p, u] = Ye(a ?? null, gr), m = mo(), [g, { width: h }] = Fo(), y = h > 530 || 0 === h, f = dt(null);
3533
+ }, fr = at(nt((e, t) => {
3534
+ const { mainElement: o, sidebarElement: n, position: r, persistKey: a, onPositionChange: l, className: i, style: s, taskSide: d = "right", ...c } = e, [p, u] = Je(a ?? null, hr), m = go(), [g, { width: h }] = Do(), y = h > 530 || 0 === h, f = ct(null);
3534
3535
  let b, x, v = null, C = 4, k = 13;
3535
3536
  y ? v = "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" : (v = "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", C = 13, k = 4);
3536
3537
  let w, S = o, T = n;
3537
- const F = "right" !== d, D = y ? "row" : "column", N = F && T ? "before" : "after", P = `${D}:${N}`, I = a ? p[P] : void 0, O = null != I ? `${I}%` : ((e, t) => {
3538
+ const F = "right" !== d, D = y ? "row" : "column", I = F && T ? "before" : "after", N = `${D}:${I}`, P = a ? p[N] : void 0, O = null != P ? `${P}%` : ((e, t) => {
3538
3539
  if (null == e) return "40%";
3539
3540
  if ("number" == typeof e || "string" == typeof e) return e;
3540
3541
  const o = e[t];
3541
3542
  return null != o ? `${o}%` : "40%";
3542
- })(r, P), M = a || l ? (e) => {
3543
+ })(r, N), M = a || l ? (e) => {
3543
3544
  a && u((t) => ({
3544
3545
  ...t,
3545
- [P]: e.percent
3546
+ [N]: e.percent
3546
3547
  })), l?.(e, {
3547
3548
  orientation: D,
3548
- side: N,
3549
- key: P
3549
+ side: I,
3550
+ key: N
3550
3551
  });
3551
3552
  } : void 0;
3552
3553
  return F && T ? (S = n, T = o, x = { style: {
@@ -3569,22 +3570,22 @@ var dr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
3569
3570
  position: O,
3570
3571
  minAfter: y ? "280px" : "120px",
3571
3572
  splitDirection: y ? "row" : "column"
3572
- }), Ot(ze, {
3573
- ref: To([
3573
+ }), Mt(je, {
3574
+ ref: Fo([
3574
3575
  f,
3575
3576
  g,
3576
3577
  t
3577
3578
  ]),
3578
3579
  className: i,
3579
3580
  style: s ? {
3580
- ...hr,
3581
+ ...yr,
3581
3582
  ...s
3582
- } : hr,
3583
+ } : yr,
3583
3584
  ...c,
3584
3585
  ...w,
3585
3586
  onPositionChange: M,
3586
3587
  propsResizer: {
3587
- className: So("styled-resizer", mr),
3588
+ className: To("styled-resizer", gr),
3588
3589
  style: {
3589
3590
  minWidth: y ? "7px" : void 0,
3590
3591
  minHeight: y ? void 0 : "6px",
@@ -3599,35 +3600,35 @@ var dr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
3599
3600
  propsPaneAfter: x
3600
3601
  });
3601
3602
  }));
3602
- yr.displayName = "StudioSplitPane";
3603
- var fr = $.BuiltInSelectorNames, br = {
3604
- [fr.Whole]: "FormulaMathTrig",
3605
- [fr.Number]: "IncreaseDecimal",
3606
- [fr.List]: "Menu",
3607
- [fr.Date]: "FormulaDateTime",
3608
- [fr.DateTime]: "FormulaDateTime",
3609
- [fr.Time]: "FormulaDateTime",
3610
- [fr.TextLength]: "FormulaText"
3611
- }, xr = (e) => {
3603
+ fr.displayName = "StudioSplitPane";
3604
+ var br = $.BuiltInSelectorNames, xr = {
3605
+ [br.Whole]: "FormulaMathTrig",
3606
+ [br.Number]: "IncreaseDecimal",
3607
+ [br.List]: "Menu",
3608
+ [br.Date]: "FormulaDateTime",
3609
+ [br.DateTime]: "FormulaDateTime",
3610
+ [br.Time]: "FormulaDateTime",
3611
+ [br.TextLength]: "FormulaText"
3612
+ }, vr = (e) => {
3612
3613
  const t = e.getCondition();
3613
3614
  if (!t) return "DataValidation";
3614
3615
  const o = t.toJSON();
3615
- return o.operator === $.BuiltInOperatorNames.Expression ? "FormulaCustom" : "string" == typeof o.selector && br[o.selector] || "DataValidation";
3616
- }, vr = rt(({ dataValidation: e, size: t = 28 }) => (ke(e, "onAnyChange"), Ot(A, {
3616
+ return o.operator === $.BuiltInOperatorNames.Expression ? "FormulaCustom" : "string" == typeof o.selector && xr[o.selector] || "DataValidation";
3617
+ }, Cr = at(({ dataValidation: e, size: t = 28 }) => (we(e, "onAnyChange"), Mt(A, {
3617
3618
  className: "sxl-dv-icon",
3618
3619
  sx: {
3619
3620
  width: "auto",
3620
3621
  minWidth: 1.7 * t + "px",
3621
3622
  height: `${t}px`
3622
3623
  },
3623
- children: Ot(We, {
3624
- iconKey: xr(e),
3624
+ children: Mt(Ee, {
3625
+ iconKey: vr(e),
3625
3626
  size: Math.round(.6 * t),
3626
3627
  ariaHidden: !0
3627
3628
  })
3628
3629
  })));
3629
- vr.displayName = "DataValidationIcon";
3630
- var Cr = (e, t) => {
3630
+ Cr.displayName = "DataValidationIcon";
3631
+ var kr = (e, t) => {
3631
3632
  const o = e.getCondition();
3632
3633
  if (!o) return t("dataValidation.anyValue");
3633
3634
  const n = o.toJSON();
@@ -3641,15 +3642,15 @@ var Cr = (e, t) => {
3641
3642
  if ("string" == typeof e) return t("dataValidation.titleListFrom", { source: e });
3642
3643
  }
3643
3644
  return o.toString();
3644
- }, kr = {
3645
+ }, wr = {
3645
3646
  [_.AlertStyle.Stop]: "ValidationStop",
3646
3647
  [_.AlertStyle.Warning]: "ValidationWarning",
3647
3648
  [_.AlertStyle.Information]: "ValidationInformation"
3648
- }, wr = {
3649
- [_.AlertStyle.Stop]: ko("dataValidation.alertStop"),
3650
- [_.AlertStyle.Warning]: ko("dataValidation.alertWarning"),
3651
- [_.AlertStyle.Information]: ko("dataValidation.alertInformation")
3652
- }, Sr = ({ checked: e, onCheckedChange: t, label: o, readOnly: n, children: r }) => Mt(At, {
3649
+ }, Sr = {
3650
+ [_.AlertStyle.Stop]: wo("dataValidation.alertStop"),
3651
+ [_.AlertStyle.Warning]: wo("dataValidation.alertWarning"),
3652
+ [_.AlertStyle.Information]: wo("dataValidation.alertInformation")
3653
+ }, Tr = ({ checked: e, onCheckedChange: t, label: o, readOnly: n, children: r }) => At(Wt, {
3653
3654
  expanded: e,
3654
3655
  onChange: (e, o) => {
3655
3656
  n || t(o);
@@ -3668,15 +3669,15 @@ var Cr = (e, t) => {
3668
3669
  mb: 1
3669
3670
  }
3670
3671
  },
3671
- children: [Ot(Et, {
3672
- expandIcon: Ot(We, { iconKey: "ExpandMore" }),
3672
+ children: [Mt(Bt, {
3673
+ expandIcon: Mt(Ee, { iconKey: "ExpandMore" }),
3673
3674
  sx: {
3674
3675
  px: 2,
3675
3676
  "& .MuiAccordionSummary-content": { my: 0 },
3676
3677
  "&.Mui-expanded .MuiAccordionSummary-content": { my: 0 }
3677
3678
  },
3678
- children: Ot(Ut, {
3679
- control: Ot(zt, {
3679
+ children: Mt(qt, {
3680
+ control: Mt(jt, {
3680
3681
  checked: e,
3681
3682
  disabled: n,
3682
3683
  onChange: (e) => {
@@ -3687,7 +3688,7 @@ var Cr = (e, t) => {
3687
3688
  label: o,
3688
3689
  onClick: (e) => e.stopPropagation()
3689
3690
  })
3690
- }), Ot(Wt, {
3691
+ }), Mt(Et, {
3691
3692
  sx: {
3692
3693
  pl: 2,
3693
3694
  pr: 2,
@@ -3699,10 +3700,10 @@ var Cr = (e, t) => {
3699
3700
  },
3700
3701
  children: r
3701
3702
  })]
3702
- }), Tr = rt((e) => {
3703
- const { dataValidation: t } = e, o = Ze();
3704
- ke(t, "onAnyChange");
3705
- const n = t.isProtected(), r = t.getRenderHints().includes("list"), a = Mt(Zt, {
3703
+ }), Fr = at((e) => {
3704
+ const { dataValidation: t } = e, o = et();
3705
+ we(t, "onAnyChange");
3706
+ const n = t.isProtected(), r = t.getRenderHints().includes("list"), a = At(eo, {
3706
3707
  tabIndex: 0,
3707
3708
  className: d["editor-panel"],
3708
3709
  sx: {
@@ -3716,7 +3717,7 @@ var Cr = (e, t) => {
3716
3717
  overflow: "auto"
3717
3718
  },
3718
3719
  children: [
3719
- Mt(Bt, {
3720
+ At(Rt, {
3720
3721
  sx: {
3721
3722
  display: "flex",
3722
3723
  flexDirection: "column",
@@ -3724,29 +3725,29 @@ var Cr = (e, t) => {
3724
3725
  margin: (e) => e.spacing(1.25),
3725
3726
  marginBottom: 0
3726
3727
  },
3727
- children: [Mt(Bt, {
3728
+ children: [At(Rt, {
3728
3729
  sx: {
3729
3730
  display: "flex",
3730
3731
  alignItems: "center",
3731
3732
  gap: (e) => e.spacing(1.5)
3732
3733
  },
3733
- children: [Ot(vr, {
3734
+ children: [Mt(Cr, {
3734
3735
  dataValidation: t,
3735
3736
  size: 48
3736
- }), Ot(co, {
3737
+ }), Mt(po, {
3737
3738
  variant: "body2",
3738
3739
  sx: {
3739
3740
  minWidth: 0,
3740
3741
  wordBreak: "break-word"
3741
3742
  },
3742
- children: Cr(t, o)
3743
+ children: kr(t, o)
3743
3744
  })]
3744
- }), Ot(g, {
3745
+ }), Mt(g, {
3745
3746
  item: t,
3746
3747
  label: o("dataValidation.applyTo")
3747
3748
  })]
3748
3749
  }),
3749
- Ot(mn, {
3750
+ Mt(gn, {
3750
3751
  selectorTitle: o("dataValidation.allow"),
3751
3752
  showIncludeBlanks: !0,
3752
3753
  condition: t.getCondition(),
@@ -3760,7 +3761,7 @@ var Cr = (e, t) => {
3760
3761
  t.setCondition(o);
3761
3762
  }
3762
3763
  }),
3763
- r && Ot(Bt, {
3764
+ r && Mt(Rt, {
3764
3765
  sx: {
3765
3766
  pl: 2,
3766
3767
  pr: 2,
@@ -3768,8 +3769,8 @@ var Cr = (e, t) => {
3768
3769
  borderColor: "divider",
3769
3770
  borderRadius: 1
3770
3771
  },
3771
- children: Ot(Ut, {
3772
- control: Ot(zt, {
3772
+ children: Mt(qt, {
3773
+ control: Mt(jt, {
3773
3774
  checked: !t.isHideDropdown(),
3774
3775
  disabled: n,
3775
3776
  onChange: (e) => t.setHideDropdown(!e.target.checked)
@@ -3777,12 +3778,12 @@ var Cr = (e, t) => {
3777
3778
  label: o("dataValidation.inCellDropdown")
3778
3779
  })
3779
3780
  }),
3780
- Mt(Sr, {
3781
+ At(Tr, {
3781
3782
  checked: t.isShowPromptMessage(),
3782
3783
  onCheckedChange: (e) => t.setShowPromptMessage(e),
3783
3784
  label: o("dataValidation.prompt"),
3784
3785
  readOnly: n,
3785
- children: [Ot(ao, {
3786
+ children: [Mt(lo, {
3786
3787
  size: "small",
3787
3788
  label: o("dataValidation.title"),
3788
3789
  value: t.getPromptTitle(),
@@ -3791,7 +3792,7 @@ var Cr = (e, t) => {
3791
3792
  fullWidth: !0,
3792
3793
  slotProps: { htmlInput: { maxLength: 32 } },
3793
3794
  sx: { backgroundColor: "background.paper" }
3794
- }), Ot(ao, {
3795
+ }), Mt(lo, {
3795
3796
  size: "small",
3796
3797
  label: o("dataValidation.message"),
3797
3798
  value: t.getPromptMessage(),
@@ -3804,45 +3805,45 @@ var Cr = (e, t) => {
3804
3805
  sx: { backgroundColor: "background.paper" }
3805
3806
  })]
3806
3807
  }),
3807
- Mt(Sr, {
3808
+ At(Tr, {
3808
3809
  checked: t.isShowAlertMessage(),
3809
3810
  onCheckedChange: (e) => t.setShowAlertMessage(e),
3810
3811
  label: o("dataValidation.alert"),
3811
3812
  readOnly: n,
3812
3813
  children: [
3813
- Mt(Ht, {
3814
+ At(Ut, {
3814
3815
  fullWidth: !0,
3815
3816
  size: "small",
3816
3817
  disabled: n,
3817
3818
  sx: { backgroundColor: "background.paper" },
3818
- children: [Ot(Qt, { children: o("dataValidation.alertStyle") }), Ot(to, {
3819
+ children: [Mt(Yt, { children: o("dataValidation.alertStyle") }), Mt(oo, {
3819
3820
  value: t.getAlertStyle(),
3820
3821
  label: o("dataValidation.alertStyle"),
3821
3822
  onChange: (e) => t.setAlertStyle(e.target.value),
3822
- renderValue: (e) => Mt(Bt, {
3823
+ renderValue: (e) => At(Rt, {
3823
3824
  sx: {
3824
3825
  display: "flex",
3825
3826
  alignItems: "center",
3826
3827
  gap: 1
3827
3828
  },
3828
- children: [Ot(We, {
3829
- iconKey: kr[e],
3829
+ children: [Mt(Ee, {
3830
+ iconKey: wr[e],
3830
3831
  size: 18,
3831
3832
  ariaHidden: !0
3832
- }), o(wr[e])]
3833
+ }), o(Sr[e])]
3833
3834
  }),
3834
- children: Object.keys(kr).map((e) => Mt(Jt, {
3835
+ children: Object.keys(wr).map((e) => At(Xt, {
3835
3836
  value: e,
3836
3837
  sx: { gap: 1 },
3837
- children: [Ot(We, {
3838
- iconKey: kr[e],
3838
+ children: [Mt(Ee, {
3839
+ iconKey: wr[e],
3839
3840
  size: 18,
3840
3841
  ariaHidden: !0
3841
- }), o(wr[e])]
3842
+ }), o(Sr[e])]
3842
3843
  }, e))
3843
3844
  })]
3844
3845
  }),
3845
- Ot(ao, {
3846
+ Mt(lo, {
3846
3847
  size: "small",
3847
3848
  label: o("dataValidation.title"),
3848
3849
  value: t.getAlertTitle(),
@@ -3852,7 +3853,7 @@ var Cr = (e, t) => {
3852
3853
  slotProps: { htmlInput: { maxLength: 32 } },
3853
3854
  sx: { backgroundColor: "background.paper" }
3854
3855
  }),
3855
- Ot(ao, {
3856
+ Mt(lo, {
3856
3857
  size: "small",
3857
3858
  label: o("dataValidation.message"),
3858
3859
  value: t.getAlertMessage(),
@@ -3868,13 +3869,13 @@ var Cr = (e, t) => {
3868
3869
  })
3869
3870
  ]
3870
3871
  });
3871
- return Ot(Mo.Provider, {
3872
+ return Mt(Ao.Provider, {
3872
3873
  value: t,
3873
3874
  children: a
3874
3875
  });
3875
3876
  });
3876
- Tr.displayName = "DataValidationEditorPanel";
3877
- var Fr = ({ children: e }) => Ot(Bt, {
3877
+ Fr.displayName = "DataValidationEditorPanel";
3878
+ var Dr = ({ children: e }) => Mt(Rt, {
3878
3879
  sx: {
3879
3880
  display: "inline-flex",
3880
3881
  alignItems: "center",
@@ -3885,45 +3886,45 @@ var Fr = ({ children: e }) => Ot(Bt, {
3885
3886
  borderRadius: 1,
3886
3887
  color: "text.secondary"
3887
3888
  },
3888
- children: Ot(co, {
3889
+ children: Mt(po, {
3889
3890
  variant: "caption",
3890
3891
  children: e
3891
3892
  })
3892
- }), Dr = rt(({ item: e }) => {
3893
- const t = Ze();
3894
- ke(e, "onAnyChange");
3893
+ }), Ir = at(({ item: e }) => {
3894
+ const t = et();
3895
+ we(e, "onAnyChange");
3895
3896
  const o = [];
3896
- return e.isShowPromptMessage() && e.getPromptTitle() && o.push(t("dataValidation.promptPrefix", { title: e.getPromptTitle() })), e.getCondition() && (e.isShowAlertMessage() ? e.getAlertStyle() === _.AlertStyle.Warning ? o.push(t("dataValidation.alertWarning")) : e.getAlertStyle() === _.AlertStyle.Information && o.push(t("dataValidation.alertInformation")) : o.push(t("dataValidation.badgeNoAlert"))), e.isHideDropdown() && e.getRenderHints().includes("list") && o.push(t("dataValidation.badgeDropdownHidden")), 0 === o.length ? null : Ot(Bt, {
3897
+ return e.isShowPromptMessage() && e.getPromptTitle() && o.push(t("dataValidation.promptPrefix", { title: e.getPromptTitle() })), e.getCondition() && (e.isShowAlertMessage() ? e.getAlertStyle() === _.AlertStyle.Warning ? o.push(t("dataValidation.alertWarning")) : e.getAlertStyle() === _.AlertStyle.Information && o.push(t("dataValidation.alertInformation")) : o.push(t("dataValidation.badgeNoAlert"))), e.isHideDropdown() && e.getRenderHints().includes("list") && o.push(t("dataValidation.badgeDropdownHidden")), 0 === o.length ? null : Mt(Rt, {
3897
3898
  sx: {
3898
3899
  display: "flex",
3899
3900
  flexWrap: "wrap",
3900
3901
  gap: .5
3901
3902
  },
3902
- children: o.map((e, t) => Ot(Fr, { children: e }, t))
3903
+ children: o.map((e, t) => Mt(Dr, { children: e }, t))
3903
3904
  });
3904
3905
  });
3905
- Dr.displayName = "DataValidationCardBody";
3906
- var Nr = rt(({ item: e }) => Ot(g, {
3906
+ Ir.displayName = "DataValidationCardBody";
3907
+ var Nr = at(({ item: e }) => Mt(g, {
3907
3908
  item: e,
3908
- label: Ze()("dataValidation.applyTo"),
3909
+ label: et()("dataValidation.applyTo"),
3909
3910
  helperText: null
3910
3911
  }));
3911
3912
  Nr.displayName = "DataValidationCardRanges";
3912
3913
  var Pr = {
3913
3914
  key: "data-validation",
3914
3915
  messageKeys: {
3915
- none: ko("dataValidation.none"),
3916
- addPrompt: ko("dataValidation.addPrompt"),
3917
- heading: ko("dataValidation.heading"),
3918
- insert: ko("dataValidation.insert"),
3919
- new: ko("dataValidation.new"),
3920
- moveUp: ko("dataValidation.moveUp"),
3921
- moveDown: ko("dataValidation.moveDown"),
3922
- edit: ko("dataValidation.edit"),
3923
- duplicate: ko("dataValidation.duplicate"),
3924
- delete: ko("dataValidation.delete"),
3925
- cancel: ko("dataValidation.cancel"),
3926
- save: ko("dataValidation.save")
3916
+ none: wo("dataValidation.none"),
3917
+ addPrompt: wo("dataValidation.addPrompt"),
3918
+ heading: wo("dataValidation.heading"),
3919
+ insert: wo("dataValidation.insert"),
3920
+ new: wo("dataValidation.new"),
3921
+ moveUp: wo("dataValidation.moveUp"),
3922
+ moveDown: wo("dataValidation.moveDown"),
3923
+ edit: wo("dataValidation.edit"),
3924
+ duplicate: wo("dataValidation.duplicate"),
3925
+ delete: wo("dataValidation.delete"),
3926
+ cancel: wo("dataValidation.cancel"),
3927
+ save: wo("dataValidation.save")
3927
3928
  },
3928
3929
  getCollection: (e) => e.getDataValidations(),
3929
3930
  changeEvents: ["onDataValidationsChange"],
@@ -3940,17 +3941,17 @@ var Pr = {
3940
3941
  applySeed: (e, t) => {
3941
3942
  e.update(t);
3942
3943
  },
3943
- getCardTitle: Cr,
3944
- CardMedia: ({ item: e }) => Ot(vr, {
3944
+ getCardTitle: kr,
3945
+ CardMedia: ({ item: e }) => Mt(Cr, {
3945
3946
  dataValidation: e,
3946
3947
  size: 32
3947
3948
  }),
3948
3949
  CardSubtitle: Nr,
3949
- CardBody: Dr,
3950
- EditorBody: ({ item: e }) => Ot(Tr, { dataValidation: e })
3951
- }, Ir = rt(ot((e, t) => {
3950
+ CardBody: Ir,
3951
+ EditorBody: ({ item: e }) => Mt(Fr, { dataValidation: e })
3952
+ }, Or = at(nt((e, t) => {
3952
3953
  const { workbook: o, args: n, ...r } = e;
3953
- return Ot(E, {
3954
+ return Mt(E, {
3954
3955
  ref: t,
3955
3956
  workbook: o,
3956
3957
  descriptor: Pr,
@@ -3959,28 +3960,28 @@ var Pr = {
3959
3960
  ...r
3960
3961
  });
3961
3962
  }));
3962
- Ir.displayName = "DataValidationDetailsPanel";
3963
- var Or = (e) => {
3963
+ Or.displayName = "DataValidationDetailsPanel";
3964
+ var Mr = (e) => {
3964
3965
  const { model: t, entryKey: o, frame: n, args: r, ref: a, ...l } = e;
3965
- return Ot(Ir, {
3966
+ return Mt(Or, {
3966
3967
  ref: a,
3967
3968
  workbook: t,
3968
3969
  args: r,
3969
3970
  ...l
3970
3971
  });
3971
3972
  };
3972
- c(), Me.register("plugin-table", { icons: {} }), Z.registerTaskPane({
3973
+ c(), Ae.register("plugin-table", { icons: {} }), Z.registerTaskPane({
3973
3974
  key: "dataValidationDetails",
3974
3975
  getTitle: () => "Data Validation",
3975
3976
  getIcon: () => "DataValidation",
3976
- component: Or
3977
+ component: Mr
3977
3978
  }, !0), Z.registerTaskPane({
3978
3979
  key: "conditionalFormatDetails",
3979
3980
  getTitle: () => "Conditional Formatting",
3980
3981
  getIcon: () => "FormatPaint",
3981
- component: qn
3982
- }, !0), s(), i(), r(), a(), N();
3983
- var Mr = () => {
3982
+ component: Gn
3983
+ }, !0), s(), i(), r(), a(), I();
3984
+ var Ar = () => {
3984
3985
  let e, t;
3985
3986
  const o = new Promise((o, n) => {
3986
3987
  e = o, t = n;
@@ -3995,138 +3996,138 @@ var Mr = () => {
3995
3996
  }
3996
3997
  };
3997
3998
  return o.catch(() => {}), n;
3998
- }, Ar = (e, t) => {
3999
+ }, Wr = (e, t) => {
3999
4000
  if (!e) return {};
4000
4001
  const { colorSchemes: o, ...n } = e, r = o?.[t ? "dark" : "light"];
4001
- return r && "object" == typeof r ? go.deepMerge(n, r) : n;
4002
- }, Wr = "taskPanePosition", Er = rt(ot((e, t) => {
4003
- const { host: o, scopeClass: r, square: a, elevation: l, variant: i, onWorkbookLoad: s, onDocumentError: d, renderDocumentError: c = S, propsDocumentError: u, propsTaskPaneArea: g, renderTaskPaneArea: h = Br, taskPaneSide: f = "right", onKeyDown: b, workbook: x, onWorkbookChange: v, logo: k, topLeft: w, topRight: T, muiTheme: D, tokens: N, cssBaseline: P, autoFocus: I = !1, title: O, onDirtyChange: A, propsDocumentTitle: W, renderDocumentLoading: E = C, propsDocumentLoading: B, propsWorkbook: R, showFormulaBar: L, propsFormulaBar: V, renderFormulaBar: z, editable: j, showStatusBar: $, propsStatusBar: K, renderStatusBar: _, propsToolbar: H, renderToolbar: U } = e, q = dt(null), G = dt(null), Q = dt(null), Y = _e(() => {
4002
+ return r && "object" == typeof r ? ho.deepMerge(n, r) : n;
4003
+ }, Er = "taskPanePosition", Br = at(nt((e, t) => {
4004
+ const { host: o, scopeClass: r, square: a, elevation: l, variant: i, onWorkbookLoad: s, onDocumentError: d, renderDocumentError: c = S, propsDocumentError: u, propsTaskPaneArea: g, renderTaskPaneArea: h = Rr, taskPaneSide: f = "right", onKeyDown: b, workbook: x, onWorkbookChange: v, logo: k, topLeft: w, topRight: T, muiTheme: D, tokens: I, cssBaseline: N, autoFocus: P = !1, title: O, onDirtyChange: A, propsDocumentTitle: W, renderDocumentLoading: E = C, propsDocumentLoading: B, propsWorkbook: R, showFormulaBar: L, propsFormulaBar: V, renderFormulaBar: z, editable: j, showStatusBar: $, propsStatusBar: K, renderStatusBar: _, propsToolbar: H, renderToolbar: U } = e, q = ct(null), G = ct(null), Q = ct(null), Y = He(() => {
4004
4005
  Q.current?.getNamedCollectionEditorElement?.()?.focus?.();
4005
- }, []), J = _e(d ?? (() => {}), [d]), X = _e(A ?? (() => {}), [A]), Z = W?.placeHolder, [ee] = Ye(se.Mode, void 0), { themeMode: te } = Je({ mode: ee ?? void 0 }), [oe] = Ye(Be.Active, null), ne = dt(oe);
4006
+ }, []), J = He(d ?? (() => {}), [d]), X = He(A ?? (() => {}), [A]), Z = W?.placeHolder, [ee] = Je(de.Mode, se[de.Mode]), { themeMode: te } = Xe({ mode: ee ?? void 0 }), [oe] = Je(Re.Active, null), ne = ct(oe);
4006
4007
  ne.current = oe;
4007
- const re = Xe(), ae = st(() => ({
4008
- light: Ct(!1, go.deepMerge(Ar(D, !1), M(re?.light))),
4009
- dark: Ct(!0, go.deepMerge(Ar(D, !0), M(re?.dark)))
4008
+ const re = Ze(), ae = dt(() => ({
4009
+ light: kt(!1, ho.deepMerge(Wr(D, !1), M(re?.light))),
4010
+ dark: kt(!0, ho.deepMerge(Wr(D, !0), M(re?.dark)))
4010
4011
  }), [
4011
4012
  D,
4012
4013
  re?.light,
4013
4014
  re?.dark
4014
- ]), le = "dark" === te, ge = st(() => y(ae.light, ae.dark, `.${r}`, N), [
4015
+ ]), le = "dark" === te, he = dt(() => y(ae.light, ae.dark, `.${r}`, I), [
4015
4016
  ae,
4016
4017
  r,
4017
- N
4018
- ]), he = st(() => pe("sxl-defaults", `.${r}`), [r]), ye = Ce(), [fe, be] = ct(() => x ?? null);
4019
- it(() => {
4020
- be(x ?? null);
4018
+ I
4019
+ ]), ye = dt(() => ue("sxl-defaults", `.${r}`), [r]), fe = ke(), [be, xe] = pt(() => x ?? null);
4020
+ st(() => {
4021
+ xe(x ?? null);
4021
4022
  }, [x]);
4022
- const [xe, ve] = ct(0), Te = dt(null);
4023
- Te.current || (Te.current = Mr());
4024
- const Fe = Se(fe, {
4025
- io: de,
4026
- defaultTheme: ye.getDefaultTheme(),
4027
- reloadKey: xe
4028
- }), Ie = "loaded" === Fe.status ? Fe.workbook : null, Ae = st(() => "error" === Fe.status ? {
4023
+ const [ve, Ce] = pt(0), Fe = ct(null);
4024
+ Fe.current || (Fe.current = Ar());
4025
+ const De = Te(be, {
4026
+ io: ce,
4027
+ defaultTheme: fe.getDefaultTheme(),
4028
+ reloadKey: ve
4029
+ }), Oe = "loaded" === De.status ? De.workbook : null, We = dt(() => "error" === De.status ? {
4029
4030
  status: "error",
4030
- error: Fe.error
4031
- } : "loaded" === Fe.status ? {
4031
+ error: De.error
4032
+ } : "loaded" === De.status ? {
4032
4033
  status: "loaded",
4033
- workbook: Fe.workbook
4034
- } : { status: "loading" }, [Fe]);
4035
- it(() => {
4036
- Te.current.settled && (Te.current = Mr());
4037
- }, [fe, xe]), it(() => {
4038
- "loaded" === Ae.status ? Te.current.resolve(Ae.workbook) : "error" === Ae.status && (J?.(Ae.error), Te.current.reject(Ae.error));
4039
- }, [Ae]);
4040
- const [Ee, Re] = ct(null);
4041
- Ie && !Ee && Re(Ie);
4042
- const Ve = Ie && Ee && Ie !== Ee ? Ie : null, ze = dt(Ve);
4043
- ze.current = Ve;
4044
- const $e = dt(Ee);
4045
- $e.current = Ee;
4046
- const Ke = dt([]), He = at((e) => {
4047
- const t = $e.current;
4048
- t && Ke.current.push(t), be(e);
4034
+ workbook: De.workbook
4035
+ } : { status: "loading" }, [De]);
4036
+ st(() => {
4037
+ Fe.current.settled && (Fe.current = Ar());
4038
+ }, [be, ve]), st(() => {
4039
+ "loaded" === We.status ? Fe.current.resolve(We.workbook) : "error" === We.status && (J?.(We.error), Fe.current.reject(We.error));
4040
+ }, [We]);
4041
+ const [Be, Le] = pt(null);
4042
+ Oe && !Be && Le(Oe);
4043
+ const ze = Oe && Be && Oe !== Be ? Oe : null, je = ct(ze);
4044
+ je.current = ze;
4045
+ const Ke = ct(Be);
4046
+ Ke.current = Be;
4047
+ const _e = ct([]), Ue = lt((e) => {
4048
+ const t = Ke.current;
4049
+ t && _e.current.push(t), xe(e);
4049
4050
  }, []);
4050
- it(() => {
4051
- const e = Ke.current;
4051
+ st(() => {
4052
+ const e = _e.current;
4052
4053
  if (0 !== e.length) {
4053
- Ke.current = e.filter((e) => e === Ee);
4054
+ _e.current = e.filter((e) => e === Be);
4054
4055
  for (let t = 0; t < e.length; t++) {
4055
4056
  const o = e[t];
4056
- if (o !== Ee) try {
4057
+ if (o !== Be) try {
4057
4058
  o.close();
4058
4059
  } catch (e) {
4059
4060
  console.warn("Unable to close the replaced workbook", e);
4060
4061
  }
4061
4062
  }
4062
4063
  }
4063
- }, [Ee]);
4064
- const Ue = j ? null : Ee, Ge = we(), Qe = st(() => Ue ? ue(Ue.getSelectedSheet(), { referenceMode: Ge }) : null, [Ue, Ge]), Ze = j ?? Qe, et = dt(Ze);
4065
- et.current = Ze, it(() => {
4066
- if (!Ze) return;
4067
- let e = Ze.getSession();
4068
- return Ze.subscribe(() => {
4064
+ }, [Be]);
4065
+ const qe = j ? null : Be, Qe = Se(), Ye = dt(() => qe ? me(qe.getSelectedSheet(), { referenceMode: Qe }) : null, [qe, Qe]), et = j ?? Ye, tt = ct(et);
4066
+ tt.current = et, st(() => {
4067
+ if (!et) return;
4068
+ let e = et.getSession();
4069
+ return et.subscribe(() => {
4069
4070
  const t = e;
4070
- e = Ze.getSession(), t && !e && "formula-bar" === t.getActiveEditorId() && Q.current?.contains?.(document.activeElement) && q.current?.focus();
4071
+ e = et.getSession(), t && !e && "formula-bar" === t.getActiveEditorId() && Q.current?.contains?.(document.activeElement) && q.current?.focus();
4071
4072
  });
4072
- }, [Ze]);
4073
- const tt = Ne(Ee), { isDirty: ot, saveState: nt } = Pe(Ee, de), rt = De(Ee), lt = dt(nt), pt = dt(null);
4074
- lt.current = nt;
4075
- const ut = at(() => lt.current?.isDirty() ?? !1, []), ht = dt(Ae);
4076
- ht.current = Ae;
4077
- const [yt, ft] = ct(null), xt = O ?? W?.title, [vt, kt] = ct(null);
4078
- it(() => {
4079
- kt(null);
4080
- }, [Ee]);
4081
- const wt = xt ?? vt ?? tt ?? "";
4082
- it(() => {
4083
- X?.(ot);
4084
- }, [ot]);
4085
- const St = _e(v ?? (() => {}), [v]);
4086
- it(() => {
4087
- St?.(Ie);
4088
- }, [Ie]);
4089
- const Tt = dt(Ie);
4090
- Tt.current = Ie, ke(Ee, "onViewChange");
4091
- const Ft = st(() => Ot(mt, {
4073
+ }, [et]);
4074
+ const ot = Ne(Be), { isDirty: nt, saveState: rt } = Pe(Be, ce), at = Ie(Be), it = ct(rt), ut = ct(null);
4075
+ it.current = rt;
4076
+ const mt = lt(() => it.current?.isDirty() ?? !1, []), yt = ct(We);
4077
+ yt.current = We;
4078
+ const [ft, bt] = pt(null), vt = O ?? W?.title, [Ct, wt] = pt(null);
4079
+ st(() => {
4080
+ wt(null);
4081
+ }, [Be]);
4082
+ const St = vt ?? Ct ?? ot ?? "";
4083
+ st(() => {
4084
+ X?.(nt);
4085
+ }, [nt]);
4086
+ const Tt = He(v ?? (() => {}), [v]);
4087
+ st(() => {
4088
+ Tt?.(Oe);
4089
+ }, [Oe]);
4090
+ const Ft = ct(Oe);
4091
+ Ft.current = Oe, we(Be, "onViewChange");
4092
+ const Dt = dt(() => Mt(gt, {
4092
4093
  groupKey: "helpOptions",
4093
4094
  disableHover: !0,
4094
4095
  sx: { padding: "0" },
4095
4096
  propsButton: { sx: { maxHeight: "22px" } }
4096
- }), []), [Dt, Nt] = ct(null), Pt = at((e) => {
4097
+ }), []), [It, Nt] = pt(null), Pt = lt((e) => {
4097
4098
  Nt(e);
4098
4099
  }, []);
4099
- it(() => {
4100
- Me.prefetch().catch((e) => {
4100
+ st(() => {
4101
+ Ae.prefetch().catch((e) => {
4101
4102
  console.warn("Icons could not be loaded:", e);
4102
4103
  });
4103
4104
  }, []);
4104
- const At = dt(null);
4105
- At.current || (At.current = Mr());
4106
- const Wt = dt(null), Et = at(() => Wt.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? At.current.promise, []), Rt = _e(async (e) => {
4105
+ const Wt = ct(null);
4106
+ Wt.current || (Wt.current = Ar());
4107
+ const Et = ct(null), Bt = lt(() => Et.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? Wt.current.promise, []), Lt = He(async (e) => {
4107
4108
  const t = ne.current;
4108
- t && t !== yo.getActive() && await yo.setActive(t), await Oe.DefaultCommandCatalogService.prefetch(t ?? void 0), ft(e), Wt.current = e.source, At.current.settled || At.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), s?.(e);
4109
- }, []), Lt = dt(null), Vt = at((e) => {
4109
+ t && t !== fo.getActive() && await fo.setActive(t), await Me.DefaultCommandCatalogService.prefetch(t ?? void 0), bt(e), Et.current = e.source, Wt.current.settled || Wt.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), s?.(e);
4110
+ }, []), Vt = ct(null), zt = lt((e) => {
4110
4111
  let t = null, o = {
4111
4112
  readOnly: !0,
4112
4113
  ...W
4113
4114
  };
4114
- return W?.hidden || (t = Ot(n, {
4115
+ return W?.hidden || (t = Mt(n, {
4115
4116
  ...o,
4116
4117
  style: {
4117
4118
  maxWidth: "100%",
4118
4119
  ...W?.style
4119
4120
  },
4120
4121
  workbook: e.workbook ?? q.current,
4121
- ref: Lt,
4122
- title: wt,
4123
- modified: ot,
4124
- encrypted: rt,
4122
+ ref: Vt,
4123
+ title: St,
4124
+ modified: nt,
4125
+ encrypted: at,
4125
4126
  placeHolder: Z,
4126
4127
  onTitleChange: (e) => {
4127
- kt(e), W?.onTitleChange?.(e);
4128
+ wt(e), W?.onTitleChange?.(e);
4128
4129
  }
4129
- })), Ot(Jn, {
4130
+ })), Mt(Xn, {
4130
4131
  ...e,
4131
4132
  logo: k,
4132
4133
  mainElement: t,
@@ -4135,26 +4136,26 @@ var Mr = () => {
4135
4136
  });
4136
4137
  }, [
4137
4138
  k,
4138
- wt,
4139
- ot,
4140
- rt,
4139
+ St,
4140
+ nt,
4141
+ at,
4141
4142
  W,
4142
4143
  w,
4143
4144
  T
4144
4145
  ]);
4145
- it(() => {
4146
+ st(() => {
4146
4147
  const e = q.current;
4147
4148
  if (!e) return;
4148
4149
  const t = (e) => e.preventDefault();
4149
4150
  return e.addEventListener("wheel", t, { passive: !1 }), () => {
4150
4151
  e.removeEventListener("wheel", t);
4151
4152
  };
4152
- }, [yt]);
4153
- const [zt, jt] = ct(null);
4154
- it(() => {
4155
- jt(yt?.source?.getCommandScope?.() ?? null);
4156
- }, [yt]);
4157
- const Kt = st(() => ({
4153
+ }, [ft]);
4154
+ const [jt, $t] = pt(null);
4155
+ st(() => {
4156
+ $t(ft?.source?.getCommandScope?.() ?? null);
4157
+ }, [ft]);
4158
+ const _t = dt(() => ({
4158
4159
  "& .SnackbarContainer-root": { position: "absolute !important" },
4159
4160
  "& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
4160
4161
  "& .notistack-Snackbar": { minWidth: "unset" },
@@ -4167,55 +4168,55 @@ var Mr = () => {
4167
4168
  whiteSpace: "pre-wrap"
4168
4169
  },
4169
4170
  "*": { userSelect: "none" }
4170
- }), []), [_t, Ht] = ct(null), [, Ut] = Ye(null, !1);
4171
- it(() => {
4172
- Ut(null != _t);
4173
- }, [_t, Ut]);
4174
- const qt = at((e) => h({
4175
- model: Ee,
4171
+ }), []), [Ht, Ut] = pt(null), [, qt] = Je(null, !1);
4172
+ st(() => {
4173
+ qt(null != Ht);
4174
+ }, [Ht, qt]);
4175
+ const Gt = lt((e) => h({
4176
+ model: Be,
4176
4177
  side: f,
4177
4178
  ...e,
4178
4179
  ...g
4179
4180
  }), [
4180
- Ee,
4181
+ Be,
4181
4182
  f,
4182
4183
  g
4183
- ]), Gt = dt(o);
4184
- Gt.current = o, qe(t, () => ({
4184
+ ]), Qt = ct(o);
4185
+ Qt.current = o, Ge(t, () => ({
4185
4186
  isStudioElement: () => !0,
4186
4187
  save: (e) => {
4187
- const t = pt.current;
4188
+ const t = ut.current;
4188
4189
  return t ? t(e) : Promise.reject(/* @__PURE__ */ new Error("The studio cannot save: no workbook, or the backing store cannot write."));
4189
4190
  },
4190
4191
  getWorkbookElement: () => q.current,
4191
- getWorkbook: () => Tt.current ?? null,
4192
- isDirty: () => lt.current?.isDirty() ?? !1,
4193
- getEditable: () => et.current,
4192
+ getWorkbook: () => Ft.current ?? null,
4193
+ isDirty: () => it.current?.isDirty() ?? !1,
4194
+ getEditable: () => tt.current,
4194
4195
  getFormulaBarElement: () => Q.current ?? null,
4195
4196
  focus: () => q.current?.focus(),
4196
- whenReady: () => (Te.current || (Te.current = Mr()), Te.current.promise),
4197
- getWorkbookState: () => ht.current,
4198
- retry: () => ve((e) => e + 1)
4197
+ whenReady: () => (Fe.current || (Fe.current = Ar()), Fe.current.promise),
4198
+ getWorkbookState: () => yt.current,
4199
+ retry: () => Ce((e) => e + 1)
4199
4200
  }), [], o);
4200
- const Qt = dt(!1), Yt = _e((e, t) => {
4201
- t === ze.current && requestAnimationFrame(() => requestAnimationFrame(() => {
4202
- t === ze.current && (Qt.current = Gt.current?.contains(document.activeElement) ?? !0, Re(t), Rt(e));
4201
+ const Yt = ct(!1), Jt = He((e, t) => {
4202
+ t === je.current && requestAnimationFrame(() => requestAnimationFrame(() => {
4203
+ t === je.current && (Yt.current = Qt.current?.contains(document.activeElement) ?? !0, Le(t), Lt(e));
4203
4204
  }));
4204
4205
  }, []);
4205
- it(() => {
4206
- Qt.current && (Qt.current = !1, q.current?.focus());
4207
- }, [Ee]);
4208
- const Jt = at(() => Ot(It, {}), []), Xt = at((e) => {
4209
- const { ref: t, ...o } = e, n = le ? ae.dark : ae.light, r = "error" === Ae.status ? c({
4206
+ st(() => {
4207
+ Yt.current && (Yt.current = !1, q.current?.focus());
4208
+ }, [Be]);
4209
+ const Xt = lt(() => Mt(Ot, {}), []), Zt = lt((e) => {
4210
+ const { ref: t, ...o } = e, n = le ? ae.dark : ae.light, r = "error" === We.status ? c({
4210
4211
  ...u,
4211
4212
  style: {
4212
4213
  width: "100%",
4213
4214
  height: "100%",
4214
4215
  ...u?.style
4215
4216
  },
4216
- error: Ae.error
4217
+ error: We.error
4217
4218
  }) : null;
4218
- if (r && !Ee) return Ot(Zt, {
4219
+ if (r && !Be) return Mt(eo, {
4219
4220
  style: {
4220
4221
  width: "100%",
4221
4222
  height: "100%",
@@ -4227,8 +4228,8 @@ var Mr = () => {
4227
4228
  children: r
4228
4229
  });
4229
4230
  let s = null;
4230
- if (Ee) {
4231
- const e = Ee, r = e.getView(), a = L ?? r?.isShowFormulaBar(), l = $ ?? r?.isShowStatusBar(), i = yt?.source ?? q.current, d = (U ?? Vt)({
4231
+ if (Be) {
4232
+ const e = Be, r = e.getView(), a = L ?? r?.isShowFormulaBar(), l = $ ?? r?.isShowStatusBar(), i = ft?.source ?? q.current, d = (U ?? zt)({
4232
4233
  workbook: i,
4233
4234
  ...H
4234
4235
  }), c = a ? (z ?? F)({
@@ -4240,29 +4241,29 @@ var Mr = () => {
4240
4241
  marginBottom: n.spacing(.75)
4241
4242
  },
4242
4243
  workbook: e,
4243
- editable: Ze ?? void 0,
4244
+ editable: et ?? void 0,
4244
4245
  ...V,
4245
4246
  propsNamedCollectionEditor: {
4246
4247
  restoreFocus: (e) => i?.focus(e),
4247
4248
  ...V?.propsNamedCollectionEditor
4248
4249
  }
4249
4250
  }) : null, u = l ? (_ ?? m)({
4250
- childrenEnd: Ft,
4251
+ childrenEnd: Dt,
4251
4252
  ...K
4252
- }) : null, g = (e, n) => Ot(p, {
4253
+ }) : null, g = (e, n) => Mt(p, {
4253
4254
  ...R,
4254
4255
  tabIndex: 0,
4255
- autoFocus: !n && I,
4256
+ autoFocus: !n && P,
4256
4257
  workbook: e,
4257
- editable: n ? void 0 : Ze ?? void 0,
4258
+ editable: n ? void 0 : et ?? void 0,
4258
4259
  focusNameBox: n ? void 0 : Y,
4259
- ref: n ? G : To([t, q]),
4260
- onWorkbookLoad: n ? (t) => Yt(t, e) : Rt,
4260
+ ref: n ? G : Fo([t, q]),
4261
+ onWorkbookLoad: n ? (t) => Jt(t, e) : Lt,
4261
4262
  onKeyDown: (e) => {
4262
4263
  b?.(e);
4263
4264
  },
4264
4265
  propsWorkbookLoading: B,
4265
- renderWorkbookLoading: Jt,
4266
+ renderWorkbookLoading: Xt,
4266
4267
  style: n ? {
4267
4268
  ...R?.style,
4268
4269
  position: "absolute",
@@ -4276,14 +4277,14 @@ var Mr = () => {
4276
4277
  onContextMenu: (e) => e.preventDefault(),
4277
4278
  ...n ? null : o
4278
4279
  }, e.getId());
4279
- s = Mt("div", {
4280
+ s = At("div", {
4280
4281
  style: {
4281
4282
  display: "flex",
4282
4283
  flexDirection: "column",
4283
4284
  flex: "1 1 100%",
4284
4285
  minWidth: 0,
4285
4286
  minHeight: 0,
4286
- ...me({
4287
+ ...ge({
4287
4288
  window: n.palette.background.default,
4288
4289
  windowText: n.palette.text.primary
4289
4290
  })
@@ -4291,14 +4292,14 @@ var Mr = () => {
4291
4292
  children: [
4292
4293
  d,
4293
4294
  c,
4294
- Ot(yr, {
4295
+ Mt(fr, {
4295
4296
  taskSide: f,
4296
- persistKey: Wr,
4297
- sidebarElement: _t ? Ot(Oe.CommandScopeProvider, {
4298
- scope: zt,
4299
- children: _t
4297
+ persistKey: Er,
4298
+ sidebarElement: Ht ? Mt(Me.CommandScopeProvider, {
4299
+ scope: jt,
4300
+ children: Ht
4300
4301
  }) : void 0,
4301
- mainElement: Mt("div", {
4302
+ mainElement: At("div", {
4302
4303
  style: {
4303
4304
  position: "relative",
4304
4305
  display: "flex",
@@ -4307,7 +4308,7 @@ var Mr = () => {
4307
4308
  minWidth: 0,
4308
4309
  minHeight: 0
4309
4310
  },
4310
- children: [[g(Ee, !1), Ve ? g(Ve, !0) : null], Ot(Bt, {
4311
+ children: [[g(Be, !1), ze ? g(ze, !0) : null], Mt(Rt, {
4311
4312
  ref: Pt,
4312
4313
  sx: {
4313
4314
  position: "absolute",
@@ -4325,9 +4326,9 @@ var Mr = () => {
4325
4326
  ]
4326
4327
  });
4327
4328
  }
4328
- const d = yt ? null : E({ ...B });
4329
- return Mt(Zt, {
4330
- sx: Kt,
4329
+ const d = ft ? null : E({ ...B });
4330
+ return At(eo, {
4331
+ sx: _t,
4331
4332
  style: {
4332
4333
  width: "100%",
4333
4334
  height: "100%",
@@ -4343,7 +4344,7 @@ var Mr = () => {
4343
4344
  variant: i,
4344
4345
  children: [
4345
4346
  s,
4346
- r ? Ot(Zt, {
4347
+ r ? Mt(eo, {
4347
4348
  style: {
4348
4349
  position: "absolute",
4349
4350
  inset: 0,
@@ -4353,7 +4354,7 @@ var Mr = () => {
4353
4354
  },
4354
4355
  children: r
4355
4356
  }) : null,
4356
- d ? Ot("div", {
4357
+ d ? Mt("div", {
4357
4358
  style: {
4358
4359
  position: "absolute",
4359
4360
  inset: 0,
@@ -4367,30 +4368,30 @@ var Mr = () => {
4367
4368
  ]
4368
4369
  });
4369
4370
  }, [
4370
- Ae,
4371
- Ee,
4372
- Ve,
4373
- yt,
4374
- wt,
4371
+ We,
4372
+ Be,
4373
+ ze,
4374
+ ft,
4375
+ St,
4375
4376
  E,
4376
4377
  B,
4377
- Jt,
4378
+ Xt,
4378
4379
  R,
4379
4380
  a,
4380
4381
  l,
4381
4382
  i,
4382
- Ft,
4383
+ Dt,
4383
4384
  c,
4384
4385
  u,
4385
- Vt,
4386
- Kt,
4386
+ zt,
4387
4387
  _t,
4388
+ Ht,
4388
4389
  f,
4389
- zt,
4390
+ jt,
4390
4391
  L,
4391
4392
  V,
4392
4393
  z,
4393
- Ze,
4394
+ et,
4394
4395
  $,
4395
4396
  K,
4396
4397
  _,
@@ -4399,9 +4400,9 @@ var Mr = () => {
4399
4400
  ae,
4400
4401
  le
4401
4402
  ]);
4402
- let eo = Ot(No, {
4403
+ let to = Mt(No, {
4403
4404
  maxSnack: 3,
4404
- domRoot: Dt ?? void 0,
4405
+ domRoot: It ?? void 0,
4405
4406
  anchorOrigin: {
4406
4407
  vertical: "bottom",
4407
4408
  horizontal: "right"
@@ -4410,53 +4411,54 @@ var Mr = () => {
4410
4411
  onClose: (e, t, o) => {
4411
4412
  q.current?.focus();
4412
4413
  },
4413
- Components: { error: Qn },
4414
+ Components: { error: Yn },
4414
4415
  iconVariant: {
4415
- success: Ot(oo, {
4416
+ success: Mt(no, {
4416
4417
  style: { marginRight: "8px" },
4417
- children: Ot("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" })
4418
+ children: Mt("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" })
4418
4419
  }),
4419
- error: Ot(We, {
4420
+ error: Mt(Ee, {
4420
4421
  iconKey: "ErrorAlert",
4421
4422
  style: { marginRight: "8px" }
4422
4423
  })
4423
4424
  },
4424
- children: Ot(ce, {
4425
- workbook: Ee,
4426
- children: Ot(ie, {
4427
- renderArea: qt,
4425
+ children: Mt(pe, {
4426
+ workbook: Be,
4427
+ children: Mt(ie, {
4428
+ renderArea: Gt,
4428
4429
  onUpdateArea: (e) => {
4429
- Ht(e);
4430
+ Ut(e);
4430
4431
  },
4431
- children: Ot(bt, { children: Ot(sr, { children: Ot(je, { children: Ot(Le, { children: Ot(ar, {
4432
- workbook: Ee,
4433
- initialCommandAnchor: Et,
4434
- renderWorkbook: Xt,
4435
- setWorkbook: He,
4436
- titleWorkbook: wt,
4437
- setWorkbookTitle: kt,
4438
- refDocumentTitle: Lt,
4439
- isDirty: ut,
4440
- refSave: pt
4432
+ children: Mt(xt, { children: Mt(dr, { children: Mt($e, { children: Mt(Ve, { children: Mt(lr, {
4433
+ workbook: Be,
4434
+ initialCommandAnchor: Bt,
4435
+ renderWorkbook: Zt,
4436
+ setWorkbook: Ue,
4437
+ titleWorkbook: St,
4438
+ setWorkbookTitle: wt,
4439
+ refDocumentTitle: Vt,
4440
+ isDirty: mt,
4441
+ refSave: ut,
4442
+ host: o
4441
4443
  }) }) }) }) })
4442
4444
  })
4443
4445
  })
4444
4446
  });
4445
- return eo = Mt(lo, {
4447
+ return to = At(io, {
4446
4448
  theme: le ? ae.dark : ae.light,
4447
4449
  children: [
4448
- P ? Ot($t, {}) : null,
4449
- Ot("style", { children: ge }),
4450
- Ot("style", { children: he }),
4451
- Ot(gt, {
4450
+ N ? Mt(Kt, {}) : null,
4451
+ Mt("style", { children: he }),
4452
+ Mt("style", { children: ye }),
4453
+ Mt(ht, {
4452
4454
  themeScopeClass: r,
4453
4455
  themeSurface: "app",
4454
4456
  themeMode: te,
4455
- children: eo
4457
+ children: to
4456
4458
  })
4457
4459
  ]
4458
- }), eo;
4460
+ }), to;
4459
4461
  }));
4460
- Er.displayName = "EagerStudio";
4461
- var Br = (e) => Ot(ur, { ...e });
4462
- export { Er as EagerStudio, Er as default };
4462
+ Br.displayName = "EagerStudio";
4463
+ var Rr = (e) => Mt(mr, { ...e });
4464
+ export { Br as EagerStudio, Br as default };