@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.
- package/browser/cjs/L0TaaQ9lceHCeg8C.cjs +8 -0
- package/browser/cjs/index.cjs +1 -1
- package/browser/esm/{o8pQBbpRc03xny0J.mjs → 0RwF0cH7JQ-VqL4E.mjs} +1 -1
- package/browser/esm/{S7-XfIxL3I5D5tDS.mjs → 26__l2vZsdgD-nJx.mjs} +2 -2
- package/browser/esm/{BmVeug3PPG-mEUBe.mjs → BDHzwq_DKJi-l3vm.mjs} +2 -2
- package/browser/esm/{DRQzyIQfZQuviFBK.mjs → BhUPwPyeqs6QNdfZ.mjs} +3 -3
- package/browser/esm/{Dg5qnLoncOqT-F5i.mjs → BkCuNLKQc4KN4Ss4.mjs} +1 -1
- package/browser/esm/{BJCaJYz86lNGZGh1.mjs → C2Ja33FV0pE1u_b4.mjs} +2 -2
- package/browser/esm/{CimAg7LJqIb3ULYp.mjs → C828ANqeXNxG8adc.mjs} +868 -866
- package/browser/esm/{BiZHUr1gWhtKdzrE.mjs → CMBpd4LN1GYbtCdW.mjs} +2 -2
- package/browser/esm/{Dj2-pD6jM9SjbPfX.mjs → CfwoCDjpHNheDLn1.mjs} +1 -1
- package/browser/esm/{CHqIzUemj2wQqlNO.mjs → DDYeKYs_XIOjhieg.mjs} +2 -2
- package/browser/esm/{CtOFBKJZWEJY5GOf.mjs → DFAzrYRM9N1LhRsL.mjs} +2 -2
- package/browser/esm/{CrTz-SMNtZoj2Z48.mjs → DFQo3TQ5Lpt6_Vid.mjs} +2 -2
- package/browser/esm/{DHYkgVTs7_z8sPt8.mjs → DG26kflIdO_PIeNZ.mjs} +2 -2
- package/browser/esm/{BH7X6WilO_oB3j3h.mjs → D_kD4qmjhElkOeRw.mjs} +1 -1
- package/browser/esm/{wqS-qBYe9-awT5Rr.mjs → DkWV5seJEk7n5n4f.mjs} +3 -3
- package/browser/esm/{4zCEiqAUYE1FtC_Y.mjs → DkuGZXKiwLKsUN_D.mjs} +2 -2
- package/browser/esm/{nZ7NKFIakvUB_oNM.mjs → DzxWYVoWw4-RT-Ia.mjs} +1 -1
- package/browser/esm/{CPDwT78ZJV0KhVfv.mjs → FZXipbgDJzTXFMSX.mjs} +9 -9
- package/browser/esm/{BVs5I1lTSja2b0B9.mjs → GZvjjMyv09_4zahu.mjs} +2 -2
- package/browser/esm/{OwfpYCy5lgrQ-16J.mjs → ONmBo80X5eV6cBBI.mjs} +1 -1
- package/browser/esm/{DoU18LVtqUiePYs1.mjs → Ot_3uk9g5RQpAjcQ.mjs} +1 -1
- package/browser/esm/{Bv0eMxh_ZN44Ikgp.mjs → P8cqCkmugGNd2vkm.mjs} +3 -3
- package/browser/esm/{DFbbRoJIDXqoF7nu.mjs → ZLszpvKCQ6ZVPKdC.mjs} +3 -3
- package/browser/esm/{ec1sT17zcL-gOSRO.mjs → aNqEbtO2cALJwwos.mjs} +1 -1
- package/browser/esm/{BWNmYjzGDBhZYgIO.mjs → bC4EbB4OILhPseb3.mjs} +2 -2
- package/browser/esm/index.mjs +92 -92
- package/licenses/dependencies.txt +55 -55
- package/node/esm/{2wtbIYdeGDT6UzN4.mjs → 4HI6dheaskyg9kLm.mjs} +1 -1
- package/node/esm/{B9iw8mqg0MDNDp5_.mjs → 6HLpHxyQNZYCN2_o.mjs} +1 -1
- package/node/esm/{BNROwD9ZMLgwtXL_.mjs → B77SESbao6p6Y4Dy.mjs} +2 -2
- package/node/esm/{CUsUUWPxbO1IW9PY.mjs → B9mtSfhFe3Hjcx9T.mjs} +1 -1
- package/node/esm/{CGhj-BDkyrejG1Jj.mjs → BKpja0BXFbcWlnni.mjs} +1 -1
- package/node/esm/{BVmpGvXDUqEmggq3.mjs → BOsZituO28YENQvh.mjs} +1 -1
- package/node/esm/{T3WcGiReCHGeKPOy.mjs → BT8pKXqqPi8PAXbL.mjs} +1 -1
- package/node/esm/{DMbGl7mOdelCN7-u.mjs → C4o3AryrtuiHuFLr.mjs} +1 -1
- package/node/esm/{DKzeeAeOVF2r68yb.mjs → CAe57GIDt8E3Sj1R.mjs} +1 -1
- package/node/esm/{BtruJA9z21K9pnuA.mjs → COd_Ly7pt0y62C8c.mjs} +1 -1
- package/node/esm/{FxGz3tv6y2gcffmK.mjs → CS307VndSoCLgQ-m.mjs} +1028 -1026
- package/node/esm/{7ZI8MoM6mY-P4VfQ.mjs → DCJNQumUzquqdCpn.mjs} +2 -2
- package/node/esm/{R1_Dii8zCHEAZKvZ.mjs → DHVHJBTqBhlJQXpX.mjs} +1 -1
- package/node/esm/{DhZG-hcTUn-vLoZy.mjs → aAEiFrxe-aYXbogR.mjs} +1 -1
- package/node/esm/index.mjs +2438 -2438
- package/node/esm/{B1z-keCkm0LI9ezw.mjs → oAiHfSODZnkRxiTN.mjs} +1 -1
- package/node/esm/{XpqeM7yyMghtMgLc.mjs → r_EDiG9j1gFuHgF9.mjs} +1 -1
- package/package.json +9 -9
- package/types/src/studio/CommandsWrapper.d.ts +2 -0
- package/types/src/studio/StudioCommandProvider.d.ts +7 -0
- package/browser/cjs/Dq9lIOzvxW3EKYkD.cjs +0 -8
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
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 { An as e, Bt as t, Dt as n, En as r, Et as i, Ft as a, Gt as o, Ht as s, It as c, Kt as l, Lt as u, Mt as d, Nt as f, Pn as p, Pt as m, Qt as h, Rt as g, Sn as _, Ut as v, Vt as y, Wt as b, Xt as x, a as S, h as C, i as w, jt as T, l as ee, lt as te, o as ne, on as re, r as ie, rn as ae, s as oe, t as se, tt as ce, w as le, zt as ue } from "./
|
|
8
|
-
import { t as de } from "./
|
|
9
|
-
import { t as fe } from "./
|
|
10
|
-
import { n as pe } from "./
|
|
7
|
+
import { An as e, Bt as t, Dt as n, En as r, Et as i, Ft as a, Gt as o, Ht as s, It as c, Kt as l, Lt as u, Mt as d, Nt as f, Pn as p, Pt as m, Qt as h, Rt as g, Sn as _, Ut as v, Vt as y, Wt as b, Xt as x, a as S, h as C, i as w, jt as T, l as ee, lt as te, o as ne, on as re, r as ie, rn as ae, s as oe, t as se, tt as ce, w as le, zt as ue } from "./FZXipbgDJzTXFMSX.mjs";
|
|
8
|
+
import { t as de } from "./aNqEbtO2cALJwwos.mjs";
|
|
9
|
+
import { t as fe } from "./DzxWYVoWw4-RT-Ia.mjs";
|
|
10
|
+
import { n as pe } from "./CMBpd4LN1GYbtCdW.mjs";
|
|
11
11
|
import { Color as me, CommonUtils as he, Condition as ge, FormulaError as _e, FormulaText as ve, ICondition as E, IConditionalFormat as D, IDataValidation as ye, IFill as O, IFont as be, IStyle as xe, ScalarType as Se, getLocaleProfile as Ce } from "@sheetxl/sdk";
|
|
12
|
-
import { COLOR_SCALE_PRESETS as we, CommandRootProvider as Te, DATA_BAR_PRESETS as Ee, DefaultTaskPaneRegistry as De, ICON_CATALOG as Oe, IconSetGlyphs as ke, LogoNoPaddingIcon as Ae, NO_CELL_ICON as je, PickerPanel as Me, STYLE_PRESETS as Ne, TaskPaneArea as Pe, TaskPaneProvider as Fe,
|
|
13
|
-
import { Command as
|
|
14
|
-
import I, { Component as
|
|
15
|
-
import { AnimatedLoadingPanel as
|
|
16
|
-
import { Fragment as
|
|
17
|
-
import { Accordion as
|
|
18
|
-
import { CommonUtils as
|
|
19
|
-
import { createPortal as
|
|
20
|
-
var
|
|
12
|
+
import { COLOR_SCALE_PRESETS as we, CommandRootProvider as Te, DATA_BAR_PRESETS as Ee, DefaultTaskPaneRegistry as De, ICON_CATALOG as Oe, IconSetGlyphs as ke, LogoNoPaddingIcon as Ae, NO_CELL_ICON as je, PickerPanel as Me, STYLE_PRESETS as Ne, TaskPaneArea as Pe, TaskPaneProvider as Fe, ThemeStateDefaults as Ie, ThemeStateKey as Le, WorkbookIO as k, WorkbookProvider as Re, buildOOXMLThemeCSS as ze, createEditable as Be, createSystemColorVars as Ve, defaultColorScale as He, defaultDataBar as Ue, defaultIconSet as We, defaultIconStops as Ge, getConditionalIconSet as Ke, iconSetSize as qe, resolveIconSetIcons as Je, useDocThemes as Ye, useModelSync as Xe, useReferenceModeStore as Ze, useResolvedWorkbook as Qe, useSheet as A, useTaskPaneArea as j, useWorkbookEncrypted as $e, useWorkbookName as et, useWorkbookSaveState as tt, withIconOverride as M } from "@sheetxl/react";
|
|
13
|
+
import { Command as nt, DefaultIconService as rt, DefaultReactNotifier as it, DynamicIcon as N, KeyCodes as at, LanguageStateKey as ot, NotifierType as st, ReactErrorBoundary as ct, ReactNotifierProvider as lt, SplitPane as ut, UncaughtErrorBoundary as dt, createBusyHandle as ft, floatThemeScopeProps as pt, useCallbackRef as mt, useFloatSurface as ht, useFullscreen as gt, useImperativeElement as _t, useLanguage as P, useNotifier as vt, usePersistenceState as yt, useResolvedThemeMode as bt, useTokenThemeContext as xt, useTranslator as F } from "@sheetxl/utils-react";
|
|
14
|
+
import I, { Component as St, cloneElement as Ct, createContext as wt, createElement as Tt, forwardRef as L, isValidElement as Et, memo as R, useCallback as z, useContext as Dt, useEffect as B, useLayoutEffect as Ot, useMemo as V, useRef as H, useState as U } from "react";
|
|
15
|
+
import { AnimatedLoadingPanel as kt, AnimatedTraversingEllipsisIcon as At, CommandGroup as jt, ExhibitFloatProvider as Mt, ExhibitIconButton as Nt, ExhibitPopupIconButton as Pt, ExhibitTooltip as Ft, ModalProvider as It, SimpleTooltip as Lt, StackTrace as Rt, createExhibitTheme as zt, defaultCreatePopupPanel as Bt, hideLoadingPanel as Vt, lazyModal as Ht, showLoadingPanel as Ut, useInputDialog as Wt, useLazyWindow as Gt, useModal as Kt, useOptionsDialog as qt } from "@sheetxl/utils-mui";
|
|
16
|
+
import { Fragment as Jt, jsx as W, jsxs as G } from "react/jsx-runtime";
|
|
17
|
+
import { Accordion as Yt, AccordionDetails as Xt, AccordionSummary as Zt, Box as K, Button as Qt, Card as $t, CardActions as en, Checkbox as tn, Collapse as nn, CssBaseline as rn, DialogTitle as an, Divider as on, FormControl as sn, FormControlLabel as cn, FormHelperText as ln, IconButton as un, InputLabel as dn, ListSubheader as fn, MenuItem as q, MenuList as pn, Paper as mn, Popover as hn, Select as J, SvgIcon as gn, Tab as _n, Tabs as vn, TextField as yn, ThemeProvider as bn, ToggleButton as xn, ToggleButtonGroup as Sn, Typography as Y, alpha as Cn, useMediaQuery as wn, useTheme as Tn } from "@mui/material";
|
|
18
|
+
import { CommonUtils as En, DOMUtils as Dn, DefaultLanguagePackService as On, ErrorUtils as kn, ExpectedError as An, PartialError as jn, defineLazyModule as X, formatMessage as Mn, messageKey as Z, t as Q } from "@sheetxl/utils";
|
|
19
|
+
import { createPortal as Nn } from "react-dom";
|
|
20
|
+
var Pn = R((e) => {
|
|
21
21
|
let { option: t, onOptionChange: n, readOnly: r, ...i } = e;
|
|
22
|
-
return W(
|
|
22
|
+
return W(yn, {
|
|
23
23
|
size: "small",
|
|
24
24
|
type: "text",
|
|
25
25
|
placeholder: F()("condition.enterText"),
|
|
@@ -30,10 +30,10 @@ var Nn = R((e) => {
|
|
|
30
30
|
slotProps: { input: { sx: { backgroundColor: "background.paper" } } }
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
|
-
|
|
34
|
-
var
|
|
33
|
+
Pn.displayName = "StringOption";
|
|
34
|
+
var Fn = R((e) => {
|
|
35
35
|
let { option: t, onOptionChange: n, readOnly: r, ...i } = e;
|
|
36
|
-
return W(
|
|
36
|
+
return W(yn, {
|
|
37
37
|
size: "small",
|
|
38
38
|
type: "number",
|
|
39
39
|
placeholder: F()("condition.enterNumber"),
|
|
@@ -44,14 +44,14 @@ var Pn = R((e) => {
|
|
|
44
44
|
slotProps: { input: { sx: { backgroundColor: "background.paper" } } }
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
|
-
|
|
48
|
-
var
|
|
47
|
+
Fn.displayName = "NumberOption";
|
|
48
|
+
var In = wt(null), Ln = (e) => {
|
|
49
49
|
let { rowIndex: t, colIndex: n } = e.getSelectedCell().getCoords();
|
|
50
50
|
return {
|
|
51
51
|
rowIndex: t,
|
|
52
52
|
colIndex: n
|
|
53
53
|
};
|
|
54
|
-
},
|
|
54
|
+
}, Rn = (e, t) => {
|
|
55
55
|
let n = ((e) => {
|
|
56
56
|
let t = e?.getCoords();
|
|
57
57
|
if (!t || t.length === 0) return null;
|
|
@@ -63,7 +63,7 @@ var Fn = Ct(null), In = (e) => {
|
|
|
63
63
|
};
|
|
64
64
|
})(t?.getRanges() ?? null);
|
|
65
65
|
if (!e || !n) return null;
|
|
66
|
-
let { rowIndex: r, colIndex: i } =
|
|
66
|
+
let { rowIndex: r, colIndex: i } = Ln(e);
|
|
67
67
|
return r === n.rowIndex && i === n.colIndex ? null : {
|
|
68
68
|
active: {
|
|
69
69
|
rowIndex: r,
|
|
@@ -71,8 +71,8 @@ var Fn = Ct(null), In = (e) => {
|
|
|
71
71
|
},
|
|
72
72
|
anchor: n
|
|
73
73
|
};
|
|
74
|
-
},
|
|
75
|
-
let e = A(), t =
|
|
74
|
+
}, zn = () => {
|
|
75
|
+
let e = A(), t = Dt(In), n = H(null), r = e ? Ln(e) : null, i = e?.getName() ?? null, a = V(() => r && i ? {
|
|
76
76
|
...r,
|
|
77
77
|
scope: i
|
|
78
78
|
} : void 0, [
|
|
@@ -85,7 +85,7 @@ var Fn = Ct(null), In = (e) => {
|
|
|
85
85
|
display: (r) => {
|
|
86
86
|
let i = n.current;
|
|
87
87
|
if (i && i.stored === r.getExpression()) return i.text;
|
|
88
|
-
let a =
|
|
88
|
+
let a = Rn(e, t);
|
|
89
89
|
if (a) try {
|
|
90
90
|
let t = e.createFormula(r.getExpression(), a.anchor).shift(a.active);
|
|
91
91
|
if (t) return t.getExpression({ target: "display" });
|
|
@@ -93,7 +93,7 @@ var Fn = Ct(null), In = (e) => {
|
|
|
93
93
|
return r.getExpression({ target: "display" });
|
|
94
94
|
},
|
|
95
95
|
compile: (r) => {
|
|
96
|
-
let i =
|
|
96
|
+
let i = Rn(e, t), a = null;
|
|
97
97
|
try {
|
|
98
98
|
a = e?.createFormula(r, i?.active, { target: "display" }) ?? null, a && i && (a = a.shift(i.anchor));
|
|
99
99
|
} catch {
|
|
@@ -109,12 +109,12 @@ var Fn = Ct(null), In = (e) => {
|
|
|
109
109
|
t,
|
|
110
110
|
a
|
|
111
111
|
]);
|
|
112
|
-
},
|
|
113
|
-
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = F(), o =
|
|
112
|
+
}, Bn = (e, t) => e == null ? "" : e.isIFormula ? "=" + t.display(e) : typeof e == "boolean" ? e ? "TRUE" : "FALSE" : _e.isError(e) ? e.getLabel() : String(e), Vn = R((e) => {
|
|
113
|
+
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = F(), o = zn();
|
|
114
114
|
return W(pe, {
|
|
115
115
|
size: "small",
|
|
116
116
|
home: o.home,
|
|
117
|
-
value:
|
|
117
|
+
value: Bn(t, o),
|
|
118
118
|
onChangeText: (e) => n(((e, t) => {
|
|
119
119
|
if (e.length === 0) return null;
|
|
120
120
|
if (e.startsWith("=")) {
|
|
@@ -139,18 +139,18 @@ var Fn = Ct(null), In = (e) => {
|
|
|
139
139
|
...i
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
|
-
|
|
143
|
-
var
|
|
142
|
+
Vn.displayName = "ScalarOption";
|
|
143
|
+
var Hn = (e, t, n) => {
|
|
144
144
|
if (e == null) return "";
|
|
145
145
|
if (e.isIFormula) return "=" + n.display(e);
|
|
146
146
|
if (Array.isArray(e)) return e.map((e) => String(e ?? "")).join(t);
|
|
147
147
|
let r = ge.parseListLiteral(e);
|
|
148
148
|
return r ? r.join(t) : e.length > 0 ? "=" + e : "";
|
|
149
|
-
},
|
|
150
|
-
let { option: t, onOptionChange: n, readOnly: r, sx: i, ...a } = e, o = F(), s = A(), c =
|
|
149
|
+
}, Un = R((e) => {
|
|
150
|
+
let { option: t, onOptionChange: n, readOnly: r, sx: i, ...a } = e, o = F(), s = A(), c = Dt(In), l = zn(), u = Ce(s?.getWorkbook()?.getLocale() ?? "en").listSeparator, [d, f] = U(null), p = t?.items, [m, h] = U(null), g = H(0);
|
|
151
151
|
B(() => {
|
|
152
152
|
if (!c?.getListItemsAt || !s) return void h(null);
|
|
153
|
-
let e = ++g.current, { rowIndex: t, colIndex: n } =
|
|
153
|
+
let e = ++g.current, { rowIndex: t, colIndex: n } = Ln(s);
|
|
154
154
|
c.getListItemsAt(t, n).then((t) => {
|
|
155
155
|
e === g.current && h(t);
|
|
156
156
|
}, () => {
|
|
@@ -161,7 +161,7 @@ var Vn = (e, t, n) => {
|
|
|
161
161
|
s,
|
|
162
162
|
p
|
|
163
163
|
]);
|
|
164
|
-
let [_, v] = U(null), { className: y } =
|
|
164
|
+
let [_, v] = U(null), { className: y } = pt(ht()?.themeScope), b = V(() => s?.getStyles().getNormal().getFont().toCSS("adaptive"), [s]), [x, S] = U(null), C = x ?? d;
|
|
165
165
|
return G(K, {
|
|
166
166
|
sx: {
|
|
167
167
|
display: "flex",
|
|
@@ -178,7 +178,7 @@ var Vn = (e, t, n) => {
|
|
|
178
178
|
children: [W(pe, {
|
|
179
179
|
size: "small",
|
|
180
180
|
home: l.home,
|
|
181
|
-
value:
|
|
181
|
+
value: Hn(p, u, l),
|
|
182
182
|
onChangeText: (e) => {
|
|
183
183
|
let r = ((e, t, n) => {
|
|
184
184
|
if (e.length === 0) return { items: "" };
|
|
@@ -211,7 +211,7 @@ var Vn = (e, t, n) => {
|
|
|
211
211
|
showError: !1,
|
|
212
212
|
helperText: null,
|
|
213
213
|
...a
|
|
214
|
-
}), m !== null && G(
|
|
214
|
+
}), m !== null && G(Jt, { children: [W(Qt, {
|
|
215
215
|
size: "small",
|
|
216
216
|
variant: "outlined",
|
|
217
217
|
color: "inherit",
|
|
@@ -232,7 +232,7 @@ var Vn = (e, t, n) => {
|
|
|
232
232
|
},
|
|
233
233
|
children: o("condition.listPreview", { count: m.length })
|
|
234
234
|
})
|
|
235
|
-
}), W(
|
|
235
|
+
}), W(hn, {
|
|
236
236
|
open: !!_,
|
|
237
237
|
anchorEl: _,
|
|
238
238
|
onClose: () => v(null),
|
|
@@ -252,21 +252,21 @@ var Vn = (e, t, n) => {
|
|
|
252
252
|
onChoose: () => v(null)
|
|
253
253
|
})
|
|
254
254
|
})] })]
|
|
255
|
-
}), C && W(
|
|
255
|
+
}), C && W(ln, {
|
|
256
256
|
error: !0,
|
|
257
257
|
children: o(C)
|
|
258
258
|
})]
|
|
259
259
|
});
|
|
260
260
|
});
|
|
261
|
-
|
|
262
|
-
var
|
|
261
|
+
Un.displayName = "ListSourceOption";
|
|
262
|
+
var Wn = {}, Gn = R((e) => {
|
|
263
263
|
let { option: t, onOptionChange: n, className: r, readOnly: i, ...a } = e, o = F(), s = t?.type ?? E.AverageType.Above, c = t?.stdDevs ?? "", l = { backgroundColor: "background.paper" };
|
|
264
264
|
return i && (l = {
|
|
265
265
|
...l,
|
|
266
266
|
"& .MuiSelect-icon": { display: "none" },
|
|
267
267
|
"& .MuiOutlinedInput-notchedOutline": { borderColor: "action.disabled" }
|
|
268
268
|
}), G(K, {
|
|
269
|
-
className: de(r,
|
|
269
|
+
className: de(r, Wn.option),
|
|
270
270
|
...a,
|
|
271
271
|
sx: {
|
|
272
272
|
display: "flex",
|
|
@@ -274,10 +274,10 @@ var Un = {}, Wn = R((e) => {
|
|
|
274
274
|
gap: .25,
|
|
275
275
|
...a?.sx
|
|
276
276
|
},
|
|
277
|
-
children: [W(
|
|
277
|
+
children: [W(sn, {
|
|
278
278
|
sx: { flex: .5 },
|
|
279
279
|
size: "small",
|
|
280
|
-
children: G(
|
|
280
|
+
children: G(J, {
|
|
281
281
|
value: s,
|
|
282
282
|
sx: l,
|
|
283
283
|
IconComponent: (e) => W(N, {
|
|
@@ -289,15 +289,15 @@ var Un = {}, Wn = R((e) => {
|
|
|
289
289
|
...t,
|
|
290
290
|
type: e.target.value
|
|
291
291
|
}),
|
|
292
|
-
children: [W(
|
|
292
|
+
children: [W(q, {
|
|
293
293
|
value: E.AverageType.Above,
|
|
294
294
|
children: o("condition.above")
|
|
295
|
-
}), W(
|
|
295
|
+
}), W(q, {
|
|
296
296
|
value: E.AverageType.Below,
|
|
297
297
|
children: o("condition.below")
|
|
298
298
|
})]
|
|
299
299
|
})
|
|
300
|
-
}), W(
|
|
300
|
+
}), W(yn, {
|
|
301
301
|
size: "small",
|
|
302
302
|
placeholder: o("condition.stdDevs"),
|
|
303
303
|
value: c,
|
|
@@ -312,11 +312,11 @@ var Un = {}, Wn = R((e) => {
|
|
|
312
312
|
})]
|
|
313
313
|
});
|
|
314
314
|
});
|
|
315
|
-
|
|
316
|
-
var
|
|
317
|
-
let t =
|
|
318
|
-
return t || (t = "__ci_" + ++
|
|
319
|
-
},
|
|
315
|
+
Gn.displayName = "AverageOption";
|
|
316
|
+
var Kn = 0, qn = /* @__PURE__ */ new WeakMap(), Jn = (e) => {
|
|
317
|
+
let t = qn.get(e);
|
|
318
|
+
return t || (t = "__ci_" + ++Kn, qn.set(e, t)), t;
|
|
319
|
+
}, Yn = Object.freeze([E.BuiltInOperatorNames.Icon, E.BuiltInOperatorNames.Color]), Xn = (e, t, n, r = Yn) => {
|
|
320
320
|
let i = t ?? Object.values(ge.BuiltInOperators), a = e?.getSelectType() ?? null, o = e?.isList;
|
|
321
321
|
return i.filter((t) => {
|
|
322
322
|
if (r.includes(t.getName())) return !1;
|
|
@@ -326,25 +326,25 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
|
|
|
326
326
|
let i = t.getAcceptsTypes?.();
|
|
327
327
|
return !i || i.includes(a);
|
|
328
328
|
}).sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", n));
|
|
329
|
-
},
|
|
329
|
+
}, Zn = (e, t, n, r) => {
|
|
330
330
|
let i = (e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", r), a = e.filter((e) => !e.isCombinator?.()).sort(i), o = e.filter((e) => e.isCombinator?.()).sort(i), s = [];
|
|
331
|
-
return a.length > 0 && (s.push(W(
|
|
331
|
+
return a.length > 0 && (s.push(W(fn, {
|
|
332
332
|
disableSticky: !0,
|
|
333
|
-
sx:
|
|
333
|
+
sx: $n,
|
|
334
334
|
children: n("condition.groupBasic")
|
|
335
|
-
}, "__header:leaf")), a.forEach((e) => s.push(t(e)))), a.length > 0 && o.length > 0 && s.push(W(
|
|
335
|
+
}, "__header:leaf")), a.forEach((e) => s.push(t(e)))), a.length > 0 && o.length > 0 && s.push(W(on, {}, "__divider")), o.length > 0 && (s.push(W(fn, {
|
|
336
336
|
disableSticky: !0,
|
|
337
|
-
sx:
|
|
337
|
+
sx: $n,
|
|
338
338
|
children: n("condition.groupCombine")
|
|
339
339
|
}, "__header:combinator")), o.forEach((e) => s.push(t(e)))), s;
|
|
340
|
-
},
|
|
340
|
+
}, Qn = (e, t, n = null) => {
|
|
341
341
|
if (!e.isCombinator?.()) return e.createDefaultParam?.(n ?? void 0) ?? null;
|
|
342
342
|
let r = t.find((e) => !e.isCombinator?.()) ?? null, i = r ? {
|
|
343
343
|
operator: r.getName(),
|
|
344
344
|
param: r.createDefaultParam?.(n ?? void 0) ?? null
|
|
345
345
|
} : null;
|
|
346
346
|
return e.getName() === "not" ? i : i ? [i] : [];
|
|
347
|
-
},
|
|
347
|
+
}, $n = {
|
|
348
348
|
userSelect: "none",
|
|
349
349
|
lineHeight: "2",
|
|
350
350
|
fontSize: "0.75rem",
|
|
@@ -352,7 +352,7 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
|
|
|
352
352
|
color: "text.secondary",
|
|
353
353
|
paddingLeft: 1,
|
|
354
354
|
paddingRight: 1
|
|
355
|
-
},
|
|
355
|
+
}, er = { pl: 2 }, tr = R((e) => {
|
|
356
356
|
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = function(e, t) {
|
|
357
357
|
let n = (e) => new Intl.DateTimeFormat(t, { month: "long" }).format(new Date(2e3, e, 1));
|
|
358
358
|
return [
|
|
@@ -513,9 +513,9 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
|
|
|
513
513
|
gap: 2,
|
|
514
514
|
...i?.sx
|
|
515
515
|
},
|
|
516
|
-
children: W(
|
|
516
|
+
children: W(sn, {
|
|
517
517
|
size: "small",
|
|
518
|
-
children: W(
|
|
518
|
+
children: W(J, {
|
|
519
519
|
value: o,
|
|
520
520
|
sx: { backgroundColor: "background.paper" },
|
|
521
521
|
IconComponent: (e) => W(N, {
|
|
@@ -529,11 +529,11 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
|
|
|
529
529
|
disabled: r,
|
|
530
530
|
children: a.map((e, t) => {
|
|
531
531
|
let n = [];
|
|
532
|
-
return t > 0 && n.push(W(
|
|
533
|
-
sx: Qn,
|
|
534
|
-
children: e.header
|
|
535
|
-
}, `header-${t}`)), e.options.map((e) => n.push(W(J, {
|
|
532
|
+
return t > 0 && n.push(W(on, {}, `divider-${t}`)), n.push(W(fn, {
|
|
536
533
|
sx: $n,
|
|
534
|
+
children: e.header
|
|
535
|
+
}, `header-${t}`)), e.options.map((e) => n.push(W(q, {
|
|
536
|
+
sx: er,
|
|
537
537
|
value: e.value,
|
|
538
538
|
children: e.label
|
|
539
539
|
}, e.value))), n;
|
|
@@ -542,8 +542,8 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
|
|
|
542
542
|
})
|
|
543
543
|
});
|
|
544
544
|
});
|
|
545
|
-
|
|
546
|
-
var
|
|
545
|
+
tr.displayName = "TimePeriodOption";
|
|
546
|
+
var nr = R((e) => {
|
|
547
547
|
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = F(), o = t?.top ?? !0, s = t?.limit ?? 10, c = t?.percent ?? !1;
|
|
548
548
|
return G(K, {
|
|
549
549
|
...i,
|
|
@@ -554,10 +554,10 @@ var tr = R((e) => {
|
|
|
554
554
|
...i?.sx
|
|
555
555
|
},
|
|
556
556
|
children: [
|
|
557
|
-
W(
|
|
557
|
+
W(sn, {
|
|
558
558
|
size: "small",
|
|
559
559
|
sx: { flex: 1 },
|
|
560
|
-
children: G(
|
|
560
|
+
children: G(J, {
|
|
561
561
|
value: o ? "top" : "bottom",
|
|
562
562
|
sx: { backgroundColor: "background.paper" },
|
|
563
563
|
IconComponent: (e) => W(N, {
|
|
@@ -569,16 +569,16 @@ var tr = R((e) => {
|
|
|
569
569
|
top: e.target.value === "top"
|
|
570
570
|
}),
|
|
571
571
|
disabled: r,
|
|
572
|
-
children: [W(
|
|
572
|
+
children: [W(q, {
|
|
573
573
|
value: "top",
|
|
574
574
|
children: a("condition.top")
|
|
575
|
-
}), W(
|
|
575
|
+
}), W(q, {
|
|
576
576
|
value: "bottom",
|
|
577
577
|
children: a("condition.bottom")
|
|
578
578
|
})]
|
|
579
579
|
})
|
|
580
580
|
}),
|
|
581
|
-
W(
|
|
581
|
+
W(yn, {
|
|
582
582
|
size: "small",
|
|
583
583
|
placeholder: "10",
|
|
584
584
|
value: s,
|
|
@@ -594,10 +594,10 @@ var tr = R((e) => {
|
|
|
594
594
|
slotProps: { input: { sx: { backgroundColor: "background.paper" } } },
|
|
595
595
|
sx: { flex: .6 }
|
|
596
596
|
}),
|
|
597
|
-
W(
|
|
597
|
+
W(sn, {
|
|
598
598
|
size: "small",
|
|
599
599
|
sx: { flex: 1 },
|
|
600
|
-
children: G(
|
|
600
|
+
children: G(J, {
|
|
601
601
|
value: c ? "percent" : "items",
|
|
602
602
|
sx: { backgroundColor: "background.paper" },
|
|
603
603
|
IconComponent: (e) => W(N, {
|
|
@@ -609,10 +609,10 @@ var tr = R((e) => {
|
|
|
609
609
|
percent: e.target.value === "percent"
|
|
610
610
|
}),
|
|
611
611
|
disabled: r,
|
|
612
|
-
children: [W(
|
|
612
|
+
children: [W(q, {
|
|
613
613
|
value: "items",
|
|
614
614
|
children: a("condition.items")
|
|
615
|
-
}), W(
|
|
615
|
+
}), W(q, {
|
|
616
616
|
value: "percent",
|
|
617
617
|
children: a("condition.percent")
|
|
618
618
|
})]
|
|
@@ -621,8 +621,8 @@ var tr = R((e) => {
|
|
|
621
621
|
]
|
|
622
622
|
});
|
|
623
623
|
});
|
|
624
|
-
|
|
625
|
-
var
|
|
624
|
+
nr.displayName = "TopNOption";
|
|
625
|
+
var rr = R((e) => {
|
|
626
626
|
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = F();
|
|
627
627
|
return G(K, {
|
|
628
628
|
...i,
|
|
@@ -632,7 +632,7 @@ var nr = R((e) => {
|
|
|
632
632
|
gap: .25,
|
|
633
633
|
...i?.sx
|
|
634
634
|
},
|
|
635
|
-
children: [W(
|
|
635
|
+
children: [W(Vn, {
|
|
636
636
|
option: t?.from ?? null,
|
|
637
637
|
placeholder: a("condition.from"),
|
|
638
638
|
onOptionChange: (e) => {
|
|
@@ -646,7 +646,7 @@ var nr = R((e) => {
|
|
|
646
646
|
flex: .6,
|
|
647
647
|
minWidth: 0
|
|
648
648
|
}
|
|
649
|
-
}), W(
|
|
649
|
+
}), W(Vn, {
|
|
650
650
|
option: t?.to ?? null,
|
|
651
651
|
placeholder: a("condition.to"),
|
|
652
652
|
onOptionChange: (e) => {
|
|
@@ -663,9 +663,9 @@ var nr = R((e) => {
|
|
|
663
663
|
})]
|
|
664
664
|
});
|
|
665
665
|
});
|
|
666
|
-
|
|
667
|
-
var
|
|
668
|
-
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = F(), o =
|
|
666
|
+
rr.displayName = "BetweenOption";
|
|
667
|
+
var ir = R((e) => {
|
|
668
|
+
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = F(), o = zn(), s = t?.isIFormula ? o.display(t) : t ?? "";
|
|
669
669
|
return W(pe, {
|
|
670
670
|
size: "small",
|
|
671
671
|
home: o.home,
|
|
@@ -681,11 +681,11 @@ var rr = R((e) => {
|
|
|
681
681
|
...i
|
|
682
682
|
});
|
|
683
683
|
});
|
|
684
|
-
|
|
685
|
-
var
|
|
684
|
+
ir.displayName = "ExpressionOption";
|
|
685
|
+
var ar = R((e) => {
|
|
686
686
|
let { value: t = null, selectors: n, onChange: r, title: i, allowNull: a = !1, readOnly: o = !1, ...s } = e, c = F(), l = i ?? c("condition.selectorTitle"), u = n.map((e) => {
|
|
687
687
|
let t = e.getName();
|
|
688
|
-
return W(
|
|
688
|
+
return W(q, {
|
|
689
689
|
value: t,
|
|
690
690
|
children: e.getTitle?.() ?? e.getName()
|
|
691
691
|
}, t);
|
|
@@ -694,10 +694,10 @@ var ir = R((e) => {
|
|
|
694
694
|
...d,
|
|
695
695
|
"& .MuiSelect-icon": { display: "none" },
|
|
696
696
|
"& .MuiOutlinedInput-notchedOutline": { borderColor: "action.disabled" }
|
|
697
|
-
}), G(
|
|
697
|
+
}), G(sn, {
|
|
698
698
|
size: "small",
|
|
699
699
|
...s,
|
|
700
|
-
children: [W(
|
|
700
|
+
children: [W(dn, { children: l }), G(J, {
|
|
701
701
|
value: t?.getName() ?? "null",
|
|
702
702
|
label: l,
|
|
703
703
|
readOnly: o,
|
|
@@ -710,28 +710,28 @@ var ir = R((e) => {
|
|
|
710
710
|
r(i);
|
|
711
711
|
},
|
|
712
712
|
sx: d,
|
|
713
|
-
children: [a && W(
|
|
713
|
+
children: [a && W(q, {
|
|
714
714
|
value: "null",
|
|
715
715
|
children: c("condition.anySelector")
|
|
716
716
|
}), u]
|
|
717
717
|
})]
|
|
718
718
|
});
|
|
719
719
|
});
|
|
720
|
-
|
|
721
|
-
var
|
|
720
|
+
ar.displayName = "SelectorSelect";
|
|
721
|
+
var or = R((e) => {
|
|
722
722
|
let { value: t, operators: n, onChange: r, title: i, readOnly: a = !1, ...o } = e, s = F(), c = P(), l = i ?? s("condition.operatorTitle"), u = /* @__PURE__ */ new Map();
|
|
723
723
|
n.forEach((e) => {
|
|
724
724
|
u.set(e.getName(), e);
|
|
725
725
|
});
|
|
726
|
-
let d =
|
|
726
|
+
let d = Zn(n, (e) => W(q, {
|
|
727
727
|
value: e.getName(),
|
|
728
|
-
sx:
|
|
728
|
+
sx: er,
|
|
729
729
|
children: e.getTitle?.()
|
|
730
730
|
}, e.getName()), s, c);
|
|
731
|
-
return G(
|
|
731
|
+
return G(sn, {
|
|
732
732
|
size: "small",
|
|
733
733
|
...o,
|
|
734
|
-
children: [W(
|
|
734
|
+
children: [W(dn, { children: l }), W(J, {
|
|
735
735
|
value: t?.getName() ?? "null",
|
|
736
736
|
label: l,
|
|
737
737
|
readOnly: a,
|
|
@@ -751,16 +751,16 @@ var ar = R((e) => {
|
|
|
751
751
|
})]
|
|
752
752
|
});
|
|
753
753
|
});
|
|
754
|
-
|
|
755
|
-
var
|
|
754
|
+
or.displayName = "OperatorSelect";
|
|
755
|
+
var sr = R(L((e, t) => {
|
|
756
756
|
let { icon: n, tooltip: r, label: i, darkMode: a, propsPanel: o, value: s, operators: c, onChange: l, title: u, readOnly: d = !1, ...f } = e, p = F(), m = P();
|
|
757
757
|
u ?? p("condition.operatorTitle");
|
|
758
758
|
let h = n || W(N, { iconKey: "Add" }), g = H(l);
|
|
759
|
-
return g.current = l, W(
|
|
759
|
+
return g.current = l, W(Pt, {
|
|
760
760
|
ref: t,
|
|
761
761
|
createPopupPanel: z((e) => {
|
|
762
|
-
let { closeFloatAll: t } = e, n =
|
|
763
|
-
sx:
|
|
762
|
+
let { closeFloatAll: t } = e, n = Zn(c, (e) => W(q, {
|
|
763
|
+
sx: er,
|
|
764
764
|
value: e.getName(),
|
|
765
765
|
onClick: () => {
|
|
766
766
|
t?.(), g.current(e);
|
|
@@ -776,9 +776,9 @@ var or = R(L((e, t) => {
|
|
|
776
776
|
},
|
|
777
777
|
...o,
|
|
778
778
|
onKeyDown: (e) => {
|
|
779
|
-
e.which ===
|
|
779
|
+
e.which === at.Enter && t?.();
|
|
780
780
|
},
|
|
781
|
-
children: W(
|
|
781
|
+
children: W(pn, {
|
|
782
782
|
disablePadding: !0,
|
|
783
783
|
children: n
|
|
784
784
|
})
|
|
@@ -794,15 +794,15 @@ var or = R(L((e, t) => {
|
|
|
794
794
|
icon: h,
|
|
795
795
|
...f
|
|
796
796
|
});
|
|
797
|
-
})),
|
|
797
|
+
})), cr = R((e) => {
|
|
798
798
|
let { operator: t, inputs: n, onOptionChange: r, operators: i, selector: a, readOnly: o, ...s } = e, c = F(), l = t.getName() === "not", u = l ? null : t.getName() === "and" ? c("condition.and") : c("condition.or"), d = (e, t) => {
|
|
799
799
|
let i = n.slice(), a = {
|
|
800
800
|
operator: t.operator,
|
|
801
801
|
param: t.param
|
|
802
802
|
};
|
|
803
803
|
((e, t) => {
|
|
804
|
-
let n =
|
|
805
|
-
n &&
|
|
804
|
+
let n = qn.get(e);
|
|
805
|
+
n && qn.set(t, n);
|
|
806
806
|
})(n[e], a), i[e] = a, r(i);
|
|
807
807
|
}, f = l ? c("condition.not") : u;
|
|
808
808
|
return W(K, {
|
|
@@ -815,7 +815,7 @@ var or = R(L((e, t) => {
|
|
|
815
815
|
borderColor: "divider"
|
|
816
816
|
},
|
|
817
817
|
...s,
|
|
818
|
-
children: n.map((e, t) => W(I.Fragment, { children: W(
|
|
818
|
+
children: n.map((e, t) => W(I.Fragment, { children: W(hr, {
|
|
819
819
|
operatorTitle: t > 0 ? f ?? "" : "",
|
|
820
820
|
operatorParam: e,
|
|
821
821
|
onOperatorParamChange: (e) => d(t, e),
|
|
@@ -827,13 +827,13 @@ var or = R(L((e, t) => {
|
|
|
827
827
|
selector: a,
|
|
828
828
|
readOnly: o,
|
|
829
829
|
required: l
|
|
830
|
-
}) },
|
|
830
|
+
}) }, Jn(e)))
|
|
831
831
|
});
|
|
832
832
|
});
|
|
833
|
-
|
|
834
|
-
var
|
|
833
|
+
cr.displayName = "CombinatorOption";
|
|
834
|
+
var lr = R((e) => {
|
|
835
835
|
let { option: t, onOptionChange: n, readOnly: r } = e, i = F();
|
|
836
|
-
return G(
|
|
836
|
+
return G(Sn, {
|
|
837
837
|
exclusive: !0,
|
|
838
838
|
size: "small",
|
|
839
839
|
value: t ?? !0,
|
|
@@ -846,25 +846,25 @@ var cr = R((e) => {
|
|
|
846
846
|
backgroundColor: "background.paper"
|
|
847
847
|
},
|
|
848
848
|
disabled: r,
|
|
849
|
-
children: [W(
|
|
849
|
+
children: [W(xn, {
|
|
850
850
|
value: !0,
|
|
851
851
|
children: i("condition.true")
|
|
852
|
-
}), W(
|
|
852
|
+
}), W(xn, {
|
|
853
853
|
value: !1,
|
|
854
854
|
children: i("condition.false")
|
|
855
855
|
})]
|
|
856
856
|
});
|
|
857
857
|
});
|
|
858
|
-
function
|
|
859
|
-
if (!e) return
|
|
858
|
+
function ur(e, t) {
|
|
859
|
+
if (!e) return dr(t);
|
|
860
860
|
let n = /* @__PURE__ */ new Date(`${e}T${t || "00:00"}`);
|
|
861
861
|
return isNaN(n.getTime()) ? null : n;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
864
|
-
return e ?
|
|
863
|
+
function dr(e) {
|
|
864
|
+
return e ? ur("1970-01-01", e) : null;
|
|
865
865
|
}
|
|
866
|
-
|
|
867
|
-
var
|
|
866
|
+
lr.displayName = "BooleanOption";
|
|
867
|
+
var fr = R((e) => {
|
|
868
868
|
let { option: t, onOptionChange: n, allowFormula: r, readOnly: i, type: a = "dateTime", ...o } = e, s = F(), c = a === "date" || a === "dateTime", l = a === "time" || a === "dateTime", u = A(), d = z((e) => {
|
|
869
869
|
if (!u || e === null) return null;
|
|
870
870
|
let t = u.createCell({ value: e }), n = t.getValue();
|
|
@@ -873,7 +873,7 @@ var dr = R((e) => {
|
|
|
873
873
|
value: e,
|
|
874
874
|
style: { numberFormat: "Short DateTime" }
|
|
875
875
|
}).getDate() : null, [u]);
|
|
876
|
-
if (r && (typeof t == "string" || t?.isIFormula)) return W(
|
|
876
|
+
if (r && (typeof t == "string" || t?.isIFormula)) return W(Vn, {
|
|
877
877
|
option: t,
|
|
878
878
|
onOptionChange: (e) => n(e),
|
|
879
879
|
readOnly: i,
|
|
@@ -892,22 +892,22 @@ var dr = R((e) => {
|
|
|
892
892
|
gap: .5,
|
|
893
893
|
...o?.sx
|
|
894
894
|
},
|
|
895
|
-
children: [c && W(
|
|
895
|
+
children: [c && W(Pn, {
|
|
896
896
|
option: m,
|
|
897
897
|
type: "date",
|
|
898
898
|
placeholder: s("condition.enterDate"),
|
|
899
899
|
onOptionChange: (e) => {
|
|
900
|
-
let t = d(
|
|
900
|
+
let t = d(ur(e, g));
|
|
901
901
|
n(t);
|
|
902
902
|
},
|
|
903
903
|
sx: { flex: 1.5 },
|
|
904
904
|
readOnly: i
|
|
905
|
-
}), l && W(
|
|
905
|
+
}), l && W(Pn, {
|
|
906
906
|
option: g,
|
|
907
907
|
type: "time",
|
|
908
908
|
placeholder: s("condition.enterTime"),
|
|
909
909
|
onOptionChange: (e) => {
|
|
910
|
-
let t = d(a === "time" ?
|
|
910
|
+
let t = d(a === "time" ? dr(e) : ur(m, e));
|
|
911
911
|
n(t);
|
|
912
912
|
},
|
|
913
913
|
sx: { flex: 1 },
|
|
@@ -915,23 +915,23 @@ var dr = R((e) => {
|
|
|
915
915
|
})]
|
|
916
916
|
});
|
|
917
917
|
});
|
|
918
|
-
|
|
919
|
-
var
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
]),
|
|
918
|
+
fr.displayName = "DateTimeOption";
|
|
919
|
+
var pr = E.BuiltInOperatorNames, mr = /* @__PURE__ */ new Set([
|
|
920
|
+
pr.EqualTo,
|
|
921
|
+
pr.GreaterThan,
|
|
922
|
+
pr.GreaterThanEqualTo,
|
|
923
|
+
pr.LessThan,
|
|
924
|
+
pr.LessThanEqualTo,
|
|
925
|
+
pr.After,
|
|
926
|
+
pr.AfterEqualTo,
|
|
927
|
+
pr.Before,
|
|
928
|
+
pr.BeforeEqualTo
|
|
929
|
+
]), hr = R((e) => {
|
|
930
930
|
let { operatorParam: t, onOperatorParamChange: n, onRemove: r, operators: i, selector: a, operatorTitle: o, readOnly: s, required: c, ...l } = e, u = F(), d = o ?? u("condition.when"), f = t?.operator ?? null, p = i.find((e) => e.getName() === f) ?? null, m = t?.param ?? null, h = !!p?.isCombinator?.(), [g, { width: _ }] = fe(), v = V(() => !p || h ? null : p.getParamType?.(a ?? void 0) ?? null, [
|
|
931
931
|
p,
|
|
932
932
|
h,
|
|
933
933
|
a
|
|
934
|
-
]), y = !h && v !== "list" && _ > 360, b =
|
|
934
|
+
]), y = !h && v !== "list" && _ > 360, b = mt((e) => {
|
|
935
935
|
n({
|
|
936
936
|
operator: f,
|
|
937
937
|
param: e
|
|
@@ -945,8 +945,8 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
945
945
|
},
|
|
946
946
|
option: m,
|
|
947
947
|
onOptionChange: b
|
|
948
|
-
}, t = !!f &&
|
|
949
|
-
return v === E.BuiltInSelectorNames.Number || v === E.BuiltInSelectorNames.TextLength ? W(t ?
|
|
948
|
+
}, t = !!f && mr.has(f);
|
|
949
|
+
return v === E.BuiltInSelectorNames.Number || v === E.BuiltInSelectorNames.TextLength ? W(t ? Vn : Fn, { ...e }) : v === E.BuiltInSelectorNames.Whole ? t ? W(Vn, { ...e }) : W(Fn, {
|
|
950
950
|
...e,
|
|
951
951
|
placeholder: u("condition.enterWholeNumber"),
|
|
952
952
|
slotProps: { htmlInput: {
|
|
@@ -963,18 +963,18 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
963
963
|
/^-?\d+$/.test(e.clipboardData.getData("text")) || e.preventDefault();
|
|
964
964
|
}
|
|
965
965
|
} }
|
|
966
|
-
}) : v === E.BuiltInSelectorNames.Text ? W(t ?
|
|
966
|
+
}) : v === E.BuiltInSelectorNames.Text ? W(t ? Vn : Pn, { ...e }) : v === E.BuiltInSelectorNames.DateTime ? W(fr, {
|
|
967
967
|
...e,
|
|
968
968
|
allowFormula: t
|
|
969
|
-
}) : v === E.BuiltInSelectorNames.Date ? W(
|
|
969
|
+
}) : v === E.BuiltInSelectorNames.Date ? W(fr, {
|
|
970
970
|
...e,
|
|
971
971
|
type: "date",
|
|
972
972
|
allowFormula: t
|
|
973
|
-
}) : v === E.BuiltInSelectorNames.Time ? W(
|
|
973
|
+
}) : v === E.BuiltInSelectorNames.Time ? W(fr, {
|
|
974
974
|
...e,
|
|
975
975
|
type: "time",
|
|
976
976
|
allowFormula: t
|
|
977
|
-
}) : v === E.BuiltInSelectorNames.List ? W(
|
|
977
|
+
}) : v === E.BuiltInSelectorNames.List ? W(Un, { ...e }) : v === E.BuiltInSelectorNames.Logical ? W(lr, { ...e }) : v === E.BuiltInOperatorNames.Average ? W(Gn, { ...e }) : v === E.BuiltInOperatorNames.TimePeriod ? W(tr, { ...e }) : v === E.BuiltInOperatorNames.TopN ? W(nr, { ...e }) : v === E.BuiltInOperatorNames.Between ? W(rr, { ...e }) : v === E.BuiltInOperatorNames.Expression ? W(ir, { ...e }) : null;
|
|
978
978
|
}, [
|
|
979
979
|
p,
|
|
980
980
|
h,
|
|
@@ -984,10 +984,10 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
984
984
|
]), S = V(() => h && m ? Array.isArray(m) ? m : [m] : [], [h, m]), C = h && p?.getName() === "not", w = (e) => {
|
|
985
985
|
if (!e || e === p) return;
|
|
986
986
|
let t = !!e.isCombinator?.(), r;
|
|
987
|
-
if (t && h) r = e.getName() === "not" ? S[0] ??
|
|
987
|
+
if (t && h) r = e.getName() === "not" ? S[0] ?? Qn(e, i, a) : S.length > 0 ? S : Qn(e, i, a);
|
|
988
988
|
else {
|
|
989
989
|
let n = p?.getParamType?.(a ?? void 0) ?? null, o = e.getParamType?.(a ?? void 0) ?? null;
|
|
990
|
-
r = !t && o && o === n ? m :
|
|
990
|
+
r = !t && o && o === n ? m : Qn(e, i, a);
|
|
991
991
|
}
|
|
992
992
|
n({
|
|
993
993
|
operator: e?.getName() ?? null,
|
|
@@ -1015,7 +1015,7 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
1015
1015
|
gap: .5
|
|
1016
1016
|
},
|
|
1017
1017
|
children: [
|
|
1018
|
-
W(
|
|
1018
|
+
W(or, {
|
|
1019
1019
|
title: d,
|
|
1020
1020
|
sx: { flex: .4 },
|
|
1021
1021
|
value: p,
|
|
@@ -1024,12 +1024,12 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
1024
1024
|
readOnly: s
|
|
1025
1025
|
}),
|
|
1026
1026
|
x,
|
|
1027
|
-
!s && !c && W(
|
|
1027
|
+
!s && !c && W(Nt, {
|
|
1028
1028
|
icon: W(N, { iconKey: "Close" }),
|
|
1029
1029
|
onClick: r
|
|
1030
1030
|
})
|
|
1031
1031
|
]
|
|
1032
|
-
}) : G(
|
|
1032
|
+
}) : G(Jt, { children: [G(K, {
|
|
1033
1033
|
sx: {
|
|
1034
1034
|
display: "flex",
|
|
1035
1035
|
flexDirection: "row",
|
|
@@ -1037,7 +1037,7 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
1037
1037
|
gap: .5
|
|
1038
1038
|
},
|
|
1039
1039
|
children: [
|
|
1040
|
-
W(
|
|
1040
|
+
W(or, {
|
|
1041
1041
|
title: d,
|
|
1042
1042
|
sx: { flex: 1 },
|
|
1043
1043
|
value: p,
|
|
@@ -1045,14 +1045,14 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
1045
1045
|
onChange: w,
|
|
1046
1046
|
readOnly: s
|
|
1047
1047
|
}),
|
|
1048
|
-
h && !C && !s && W(
|
|
1048
|
+
h && !C && !s && W(sr, {
|
|
1049
1049
|
label: p?.getTitle?.(),
|
|
1050
1050
|
icon: W(N, { iconKey: "Add" }),
|
|
1051
1051
|
operators: i,
|
|
1052
1052
|
value: null,
|
|
1053
1053
|
onChange: (e) => {
|
|
1054
1054
|
if (!e) return;
|
|
1055
|
-
let t =
|
|
1055
|
+
let t = Qn(e, i, a), r = [...S, {
|
|
1056
1056
|
operator: e?.getName() ?? null,
|
|
1057
1057
|
param: t
|
|
1058
1058
|
}];
|
|
@@ -1062,13 +1062,13 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
1062
1062
|
});
|
|
1063
1063
|
}
|
|
1064
1064
|
}),
|
|
1065
|
-
!s && !c && W(
|
|
1065
|
+
!s && !c && W(Nt, {
|
|
1066
1066
|
icon: W(N, { iconKey: "Close" }),
|
|
1067
1067
|
disabled: s,
|
|
1068
1068
|
onClick: r
|
|
1069
1069
|
})
|
|
1070
1070
|
]
|
|
1071
|
-
}), h ? W(
|
|
1071
|
+
}), h ? W(cr, {
|
|
1072
1072
|
operator: p,
|
|
1073
1073
|
inputs: S,
|
|
1074
1074
|
onOptionChange: (e) => {
|
|
@@ -1083,8 +1083,8 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
1083
1083
|
}) : x] })
|
|
1084
1084
|
});
|
|
1085
1085
|
});
|
|
1086
|
-
|
|
1087
|
-
var
|
|
1086
|
+
hr.displayName = "OperatorAndParamEditor";
|
|
1087
|
+
var gr = R((e) => {
|
|
1088
1088
|
let { condition: t, onConditionChange: n, showIncludeBlanks: r = !1, selectorTitle: i, readOnly: a, operators: o, selectors: s, ranges: c, ...l } = e, u = F(), d = P(), [f, p] = U(() => t?.getSelector() ?? null), [m, h] = U(() => t?.getOperator() ? {
|
|
1089
1089
|
operator: t.getOperator().getName(),
|
|
1090
1090
|
param: t.getParam()
|
|
@@ -1097,7 +1097,7 @@ var hr = R((e) => {
|
|
|
1097
1097
|
param: t.getParam()
|
|
1098
1098
|
} : null), _(t.isIncludeBlanks());
|
|
1099
1099
|
}, [t]);
|
|
1100
|
-
let v = V(() => (s ?? Object.values(ge.BuiltInSelectors)).slice().sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", d)), [s, d]), y = V(() => o ?? Object.values(ge.BuiltInOperators), [o]), b = V(() =>
|
|
1100
|
+
let v = V(() => (s ?? Object.values(ge.BuiltInSelectors)).slice().sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", d)), [s, d]), y = V(() => o ?? Object.values(ge.BuiltInOperators), [o]), b = V(() => Xn(f, y, d), [
|
|
1101
1101
|
f,
|
|
1102
1102
|
y,
|
|
1103
1103
|
d
|
|
@@ -1129,27 +1129,27 @@ var hr = R((e) => {
|
|
|
1129
1129
|
},
|
|
1130
1130
|
...l,
|
|
1131
1131
|
children: [
|
|
1132
|
-
W(
|
|
1132
|
+
W(ar, {
|
|
1133
1133
|
title: i,
|
|
1134
1134
|
selectors: v,
|
|
1135
1135
|
value: f,
|
|
1136
1136
|
onChange: (e) => {
|
|
1137
1137
|
m && x.current.set(S(f), m);
|
|
1138
1138
|
let t = ((e) => {
|
|
1139
|
-
let { from: t, to: n, current: r, remembered: i, operators: a, context: o } = e, s =
|
|
1139
|
+
let { from: t, to: n, current: r, remembered: i, operators: a, context: o } = e, s = Xn(n, a), c = (e) => e && s.find((t) => t.getName() === e) || null;
|
|
1140
1140
|
if (i && c(i.operator)) return i;
|
|
1141
1141
|
let l = c(r?.operator);
|
|
1142
1142
|
if (r && l) {
|
|
1143
1143
|
let e = (l.getParamType?.(t ?? void 0) ?? null) !== (l.getParamType?.(n ?? void 0) ?? null);
|
|
1144
1144
|
return l.isCombinator?.() || e ? {
|
|
1145
1145
|
operator: r.operator,
|
|
1146
|
-
param:
|
|
1146
|
+
param: Qn(l, s, n)
|
|
1147
1147
|
} : r;
|
|
1148
1148
|
}
|
|
1149
1149
|
let u = n?.getDefaultCondition?.(o) ?? null, d = c(u?.operator);
|
|
1150
1150
|
return u && d ? {
|
|
1151
1151
|
operator: u.operator,
|
|
1152
|
-
param: u.param === void 0 ?
|
|
1152
|
+
param: u.param === void 0 ? Qn(d, s, n) : u.param
|
|
1153
1153
|
} : null;
|
|
1154
1154
|
})({
|
|
1155
1155
|
from: f,
|
|
@@ -1174,7 +1174,7 @@ var hr = R((e) => {
|
|
|
1174
1174
|
m ? W(K, {
|
|
1175
1175
|
ref: C,
|
|
1176
1176
|
sx: { display: "contents" },
|
|
1177
|
-
children: W(
|
|
1177
|
+
children: W(hr, {
|
|
1178
1178
|
operatorParam: m,
|
|
1179
1179
|
onOperatorParamChange: T,
|
|
1180
1180
|
onRemove: () => {
|
|
@@ -1191,21 +1191,21 @@ var hr = R((e) => {
|
|
|
1191
1191
|
})
|
|
1192
1192
|
}) : !a && W(K, {
|
|
1193
1193
|
sx: { display: "flex" },
|
|
1194
|
-
children: W(
|
|
1194
|
+
children: W(sr, {
|
|
1195
1195
|
label: u("condition.when"),
|
|
1196
1196
|
operators: b,
|
|
1197
1197
|
value: null,
|
|
1198
1198
|
onChange: (e) => {
|
|
1199
1199
|
e && (w.current = !0, T({
|
|
1200
1200
|
operator: e?.getName() ?? null,
|
|
1201
|
-
param:
|
|
1201
|
+
param: Qn(e, b, f)
|
|
1202
1202
|
}));
|
|
1203
1203
|
},
|
|
1204
1204
|
readOnly: a
|
|
1205
1205
|
})
|
|
1206
1206
|
}),
|
|
1207
|
-
ee && W(
|
|
1208
|
-
control: W(
|
|
1207
|
+
ee && W(cn, {
|
|
1208
|
+
control: W(tn, {
|
|
1209
1209
|
checked: g,
|
|
1210
1210
|
onChange: (e) => {
|
|
1211
1211
|
t = e.target.checked, _(t), n?.({
|
|
@@ -1223,8 +1223,8 @@ var hr = R((e) => {
|
|
|
1223
1223
|
]
|
|
1224
1224
|
});
|
|
1225
1225
|
});
|
|
1226
|
-
|
|
1227
|
-
var
|
|
1226
|
+
gr.displayName = "ConditionEditor";
|
|
1227
|
+
var _r = R((e) => {
|
|
1228
1228
|
let { variant: t = "format", children: n, sx: r, ...i } = e;
|
|
1229
1229
|
return W(K, {
|
|
1230
1230
|
className: `sxl-cf-rule-section sxl-cf-rule-section-${t}`,
|
|
@@ -1243,25 +1243,25 @@ var gr = R((e) => {
|
|
|
1243
1243
|
children: n
|
|
1244
1244
|
});
|
|
1245
1245
|
});
|
|
1246
|
-
|
|
1247
|
-
var
|
|
1246
|
+
_r.displayName = "RuleSection";
|
|
1247
|
+
var vr = new me("transparent"), yr = {
|
|
1248
1248
|
lightRedFillDarkRedText: Z("conditionalFormat.preset.lightRedFillDarkRedText"),
|
|
1249
1249
|
yellowFillDarkYellowText: Z("conditionalFormat.preset.yellowFillDarkYellowText"),
|
|
1250
1250
|
greenFillDarkGreenText: Z("conditionalFormat.preset.greenFillDarkGreenText"),
|
|
1251
1251
|
lightRedFill: Z("conditionalFormat.preset.lightRedFill"),
|
|
1252
1252
|
redText: Z("conditionalFormat.preset.redText"),
|
|
1253
1253
|
redBorder: Z("conditionalFormat.preset.redBorder")
|
|
1254
|
-
},
|
|
1254
|
+
}, br = (e) => e ? typeof e == "string" ? e : e.type === O.Type.None ? null : e.color ?? e.foreground ?? null : null, xr = (e, t) => e === "auto" ? null : s(e, t), Sr = R((t) => {
|
|
1255
1255
|
let { format: n, onFormatChange: i, readOnly: a, ...o } = t, s = F(), { workbook: c, schemeLookup: l, themeKey: u, darkMode: d, propsColorPanel: f } = v(), p = n?.font ?? null, h = (p?.weight ?? 400) >= 600, g = p?.style === be.Style.Italic, y = !!p?.underline && p.underline !== be.UnderlineStyle.None, b = !!p?.strike, x = (e) => {
|
|
1256
1256
|
let t = { ...p };
|
|
1257
1257
|
for (let [n, r] of Object.entries(e)) r === void 0 ? delete t[n] : t[n] = r;
|
|
1258
1258
|
let r = { ...n };
|
|
1259
1259
|
Object.keys(t).length === 0 ? delete r.font : r.font = t, i(Object.keys(r).length === 0 ? null : r);
|
|
1260
|
-
}, S = V(() => c?.getStyles().getNormal().getFont().getColor(), [c, u]), C = V(() =>
|
|
1260
|
+
}, S = V(() => c?.getStyles().getNormal().getFont().getColor(), [c, u]), C = V(() => xr(p?.color, c), [
|
|
1261
1261
|
p?.color,
|
|
1262
1262
|
c,
|
|
1263
1263
|
u
|
|
1264
|
-
]), w = V(() => br(
|
|
1264
|
+
]), w = V(() => xr(br(n?.fill), c), [
|
|
1265
1265
|
n?.fill,
|
|
1266
1266
|
c,
|
|
1267
1267
|
u
|
|
@@ -1270,7 +1270,7 @@ var _r = new me("transparent"), vr = {
|
|
|
1270
1270
|
border: "none",
|
|
1271
1271
|
borderRadius: 1
|
|
1272
1272
|
};
|
|
1273
|
-
return G(
|
|
1273
|
+
return G(_r, {
|
|
1274
1274
|
...o,
|
|
1275
1275
|
children: [G(K, {
|
|
1276
1276
|
sx: {
|
|
@@ -1287,10 +1287,10 @@ var _r = new me("transparent"), vr = {
|
|
|
1287
1287
|
flexWrap: "wrap"
|
|
1288
1288
|
},
|
|
1289
1289
|
children: Ne.map((e, t) => {
|
|
1290
|
-
let n = br(
|
|
1290
|
+
let n = xr(br(e.style.fill), c), r = xr(e.style.font?.color, c), o = e.style.borders ? xr(Object.values(e.style.borders)[0]?.color, c) : null;
|
|
1291
1291
|
return W(m, {
|
|
1292
1292
|
sheet: !0,
|
|
1293
|
-
title: s(
|
|
1293
|
+
title: s(yr[e.key] ?? e.key),
|
|
1294
1294
|
disabled: a,
|
|
1295
1295
|
onClick: () => i(structuredClone(e.style)),
|
|
1296
1296
|
sx: {
|
|
@@ -1322,7 +1322,7 @@ var _r = new me("transparent"), vr = {
|
|
|
1322
1322
|
gap: .25
|
|
1323
1323
|
},
|
|
1324
1324
|
children: [
|
|
1325
|
-
W(
|
|
1325
|
+
W(xn, {
|
|
1326
1326
|
value: "bold",
|
|
1327
1327
|
size: "small",
|
|
1328
1328
|
sx: T,
|
|
@@ -1331,7 +1331,7 @@ var _r = new me("transparent"), vr = {
|
|
|
1331
1331
|
onChange: () => x({ weight: h ? void 0 : 700 }),
|
|
1332
1332
|
children: W(N, { iconKey: "TextBold" })
|
|
1333
1333
|
}),
|
|
1334
|
-
W(
|
|
1334
|
+
W(xn, {
|
|
1335
1335
|
value: "italic",
|
|
1336
1336
|
size: "small",
|
|
1337
1337
|
sx: T,
|
|
@@ -1340,7 +1340,7 @@ var _r = new me("transparent"), vr = {
|
|
|
1340
1340
|
onChange: () => x({ style: g ? void 0 : be.Style.Italic }),
|
|
1341
1341
|
children: W(N, { iconKey: "TextItalic" })
|
|
1342
1342
|
}),
|
|
1343
|
-
W(
|
|
1343
|
+
W(xn, {
|
|
1344
1344
|
value: "underline",
|
|
1345
1345
|
size: "small",
|
|
1346
1346
|
sx: T,
|
|
@@ -1349,7 +1349,7 @@ var _r = new me("transparent"), vr = {
|
|
|
1349
1349
|
onChange: () => x({ underline: y ? void 0 : be.UnderlineStyle.Single }),
|
|
1350
1350
|
children: W(N, { iconKey: "TextUnderline" })
|
|
1351
1351
|
}),
|
|
1352
|
-
W(
|
|
1352
|
+
W(xn, {
|
|
1353
1353
|
value: "strike",
|
|
1354
1354
|
size: "small",
|
|
1355
1355
|
sx: T,
|
|
@@ -1386,7 +1386,7 @@ var _r = new me("transparent"), vr = {
|
|
|
1386
1386
|
darkMode: d,
|
|
1387
1387
|
propsPanel: {
|
|
1388
1388
|
disableAlpha: !0,
|
|
1389
|
-
autoColor:
|
|
1389
|
+
autoColor: vr,
|
|
1390
1390
|
autoColorLabelKey: Z("color.noFill"),
|
|
1391
1391
|
autoColorPosition: e.End,
|
|
1392
1392
|
...f
|
|
@@ -1409,8 +1409,8 @@ var _r = new me("transparent"), vr = {
|
|
|
1409
1409
|
})]
|
|
1410
1410
|
});
|
|
1411
1411
|
});
|
|
1412
|
-
|
|
1413
|
-
var
|
|
1412
|
+
Sr.displayName = "ConditionalFormatStylePicker";
|
|
1413
|
+
var Cr = {
|
|
1414
1414
|
[D.ColorStopType.AutoMin]: Z("conditionalFormat.stopType.autoMin"),
|
|
1415
1415
|
[D.ColorStopType.AutoMax]: Z("conditionalFormat.stopType.autoMax"),
|
|
1416
1416
|
[D.ColorStopType.Min]: Z("conditionalFormat.stopType.min"),
|
|
@@ -1419,13 +1419,13 @@ var Sr = {
|
|
|
1419
1419
|
[D.ColorStopType.Percent]: Z("conditionalFormat.stopType.percent"),
|
|
1420
1420
|
[D.ColorStopType.Percentile]: Z("conditionalFormat.stopType.percentile"),
|
|
1421
1421
|
[D.ColorStopType.Formula]: Z("conditionalFormat.stopType.formula")
|
|
1422
|
-
},
|
|
1422
|
+
}, wr = /* @__PURE__ */ new Set([
|
|
1423
1423
|
D.ColorStopType.AutoMin,
|
|
1424
1424
|
D.ColorStopType.AutoMax,
|
|
1425
1425
|
D.ColorStopType.Min,
|
|
1426
1426
|
D.ColorStopType.Max
|
|
1427
|
-
]),
|
|
1428
|
-
let { label: t, stop: n, onStopChange: i, allowedTypes: a, showColor: o = !1, leading: s, showExclusive: c = !1, readOnly: l, ...u } = e, d = F(), { darkMode: f, toColor: p, propsColorPanel: m } = v(), h =
|
|
1427
|
+
]), Tr = R((e) => {
|
|
1428
|
+
let { label: t, stop: n, onStopChange: i, allowedTypes: a, showColor: o = !1, leading: s, showExclusive: c = !1, readOnly: l, ...u } = e, d = F(), { darkMode: f, toColor: p, propsColorPanel: m } = v(), h = zn(), g = n.type ?? D.ColorStopType.Num, _ = !wr.has(g), y = l || !_, b = g === D.ColorStopType.Formula, x = n.value?.isIFormula ? n.value : null, S = n.color, C = o ? p(S) : null;
|
|
1429
1429
|
return G(K, {
|
|
1430
1430
|
sx: {
|
|
1431
1431
|
display: "flex",
|
|
@@ -1462,7 +1462,7 @@ var Sr = {
|
|
|
1462
1462
|
...m
|
|
1463
1463
|
}
|
|
1464
1464
|
}),
|
|
1465
|
-
c && G(
|
|
1465
|
+
c && G(J, {
|
|
1466
1466
|
size: "small",
|
|
1467
1467
|
value: n.exclusive ? "gt" : "gte",
|
|
1468
1468
|
disabled: l,
|
|
@@ -1474,15 +1474,15 @@ var Sr = {
|
|
|
1474
1474
|
flex: "0 0 auto",
|
|
1475
1475
|
backgroundColor: "background.paper"
|
|
1476
1476
|
},
|
|
1477
|
-
children: [W(
|
|
1477
|
+
children: [W(q, {
|
|
1478
1478
|
value: "gte",
|
|
1479
1479
|
children: ">="
|
|
1480
|
-
}), W(
|
|
1480
|
+
}), W(q, {
|
|
1481
1481
|
value: "gt",
|
|
1482
1482
|
children: ">"
|
|
1483
1483
|
})]
|
|
1484
1484
|
}),
|
|
1485
|
-
W(
|
|
1485
|
+
W(J, {
|
|
1486
1486
|
size: "small",
|
|
1487
1487
|
value: g,
|
|
1488
1488
|
disabled: l,
|
|
@@ -1491,7 +1491,7 @@ var Sr = {
|
|
|
1491
1491
|
...n,
|
|
1492
1492
|
type: e
|
|
1493
1493
|
};
|
|
1494
|
-
if (
|
|
1494
|
+
if (wr.has(e)) delete t.value;
|
|
1495
1495
|
else if (t.value === void 0) t.value = e === D.ColorStopType.Formula ? "" : 0;
|
|
1496
1496
|
else if (e !== D.ColorStopType.Formula && typeof t.value != "number") {
|
|
1497
1497
|
let e = typeof t.value == "string" ? Number(t.value) : NaN;
|
|
@@ -1504,9 +1504,9 @@ var Sr = {
|
|
|
1504
1504
|
minWidth: 0,
|
|
1505
1505
|
backgroundColor: "background.paper"
|
|
1506
1506
|
},
|
|
1507
|
-
children: a.map((e) => W(
|
|
1507
|
+
children: a.map((e) => W(q, {
|
|
1508
1508
|
value: e,
|
|
1509
|
-
children: d(
|
|
1509
|
+
children: d(Cr[e])
|
|
1510
1510
|
}, e))
|
|
1511
1511
|
}),
|
|
1512
1512
|
b ? W(pe, {
|
|
@@ -1531,7 +1531,7 @@ var Sr = {
|
|
|
1531
1531
|
minWidth: 0,
|
|
1532
1532
|
"& .MuiInputBase-root": { backgroundColor: y ? "action.disabledBackground" : "background.paper" }
|
|
1533
1533
|
}
|
|
1534
|
-
}) : W(
|
|
1534
|
+
}) : W(yn, {
|
|
1535
1535
|
size: "small",
|
|
1536
1536
|
type: "number",
|
|
1537
1537
|
placeholder: _ ? void 0 : d("conditionalFormat.stopFromData"),
|
|
@@ -1557,15 +1557,15 @@ var Sr = {
|
|
|
1557
1557
|
]
|
|
1558
1558
|
});
|
|
1559
1559
|
});
|
|
1560
|
-
|
|
1561
|
-
var
|
|
1560
|
+
Tr.displayName = "ScaleStopRow";
|
|
1561
|
+
var Er = [
|
|
1562
1562
|
D.ColorStopType.Min,
|
|
1563
1563
|
D.ColorStopType.Max,
|
|
1564
1564
|
D.ColorStopType.Num,
|
|
1565
1565
|
D.ColorStopType.Percent,
|
|
1566
1566
|
D.ColorStopType.Percentile,
|
|
1567
1567
|
D.ColorStopType.Formula
|
|
1568
|
-
],
|
|
1568
|
+
], Dr = R((e) => {
|
|
1569
1569
|
let { scale: n, onScaleChange: r, readOnly: i, ...a } = e, o = F(), { workbook: s, toColor: l } = v(), u = n.stops ?? [], d = u.length === 2 ? [Z("conditionalFormat.stop.minimum"), Z("conditionalFormat.stop.maximum")] : [
|
|
1570
1570
|
Z("conditionalFormat.stop.minimum"),
|
|
1571
1571
|
Z("conditionalFormat.stop.midpoint"),
|
|
@@ -1578,7 +1578,7 @@ var Tr = [
|
|
|
1578
1578
|
gap: 1
|
|
1579
1579
|
},
|
|
1580
1580
|
...a,
|
|
1581
|
-
children: [W(
|
|
1581
|
+
children: [W(_r, { children: G(K, {
|
|
1582
1582
|
sx: {
|
|
1583
1583
|
display: "flex",
|
|
1584
1584
|
alignItems: "flex-start",
|
|
@@ -1598,7 +1598,7 @@ var Tr = [
|
|
|
1598
1598
|
onClick: () => r(structuredClone(e)),
|
|
1599
1599
|
children: W(ue, { rows: t(e.stops ?? [], c, s) })
|
|
1600
1600
|
}, n))
|
|
1601
|
-
}), G(
|
|
1601
|
+
}), G(Sn, {
|
|
1602
1602
|
exclusive: !0,
|
|
1603
1603
|
size: "small",
|
|
1604
1604
|
value: u.length === 2 ? 2 : 3,
|
|
@@ -1626,7 +1626,7 @@ var Tr = [
|
|
|
1626
1626
|
})(t);
|
|
1627
1627
|
},
|
|
1628
1628
|
sx: { flex: "0 0 auto" },
|
|
1629
|
-
children: [W(
|
|
1629
|
+
children: [W(xn, {
|
|
1630
1630
|
value: 2,
|
|
1631
1631
|
sx: {
|
|
1632
1632
|
textTransform: "none",
|
|
@@ -1634,7 +1634,7 @@ var Tr = [
|
|
|
1634
1634
|
pb: .25
|
|
1635
1635
|
},
|
|
1636
1636
|
children: o("conditionalFormat.twoColor")
|
|
1637
|
-
}), W(
|
|
1637
|
+
}), W(xn, {
|
|
1638
1638
|
value: 3,
|
|
1639
1639
|
sx: {
|
|
1640
1640
|
textTransform: "none",
|
|
@@ -1644,12 +1644,12 @@ var Tr = [
|
|
|
1644
1644
|
children: o("conditionalFormat.threeColor")
|
|
1645
1645
|
})]
|
|
1646
1646
|
})]
|
|
1647
|
-
}) }), W(
|
|
1647
|
+
}) }), W(_r, {
|
|
1648
1648
|
variant: "config",
|
|
1649
|
-
children: u.map((e, t) => W(
|
|
1649
|
+
children: u.map((e, t) => W(Tr, {
|
|
1650
1650
|
label: o(d[Math.min(t, d.length - 1)]),
|
|
1651
1651
|
stop: e,
|
|
1652
|
-
allowedTypes:
|
|
1652
|
+
allowedTypes: Er,
|
|
1653
1653
|
showColor: !0,
|
|
1654
1654
|
readOnly: i,
|
|
1655
1655
|
onStopChange: (e) => {
|
|
@@ -1663,22 +1663,22 @@ var Tr = [
|
|
|
1663
1663
|
})]
|
|
1664
1664
|
});
|
|
1665
1665
|
});
|
|
1666
|
-
|
|
1667
|
-
var
|
|
1666
|
+
Dr.displayName = "ColorScaleRulePanel";
|
|
1667
|
+
var Or = [
|
|
1668
1668
|
D.ColorStopType.AutoMin,
|
|
1669
1669
|
D.ColorStopType.Min,
|
|
1670
1670
|
D.ColorStopType.Num,
|
|
1671
1671
|
D.ColorStopType.Percent,
|
|
1672
1672
|
D.ColorStopType.Percentile,
|
|
1673
1673
|
D.ColorStopType.Formula
|
|
1674
|
-
],
|
|
1674
|
+
], kr = [
|
|
1675
1675
|
D.ColorStopType.AutoMax,
|
|
1676
1676
|
D.ColorStopType.Max,
|
|
1677
1677
|
D.ColorStopType.Num,
|
|
1678
1678
|
D.ColorStopType.Percent,
|
|
1679
1679
|
D.ColorStopType.Percentile,
|
|
1680
1680
|
D.ColorStopType.Formula
|
|
1681
|
-
],
|
|
1681
|
+
], Ar = "__auto__", jr = R((e) => {
|
|
1682
1682
|
let { scale: t, onScaleChange: n, readOnly: i, ...a } = e, o = F(), { darkMode: s, toColor: c, propsColorPanel: l } = v(), u = t.stops ?? [], d = c(t.color), f = c(t.negativeFillColor), p = c(t.borderColor), h = c(t.negativeBorderColor), g = t.gradient ?? !1, _ = (e) => {
|
|
1683
1683
|
let r = { ...t };
|
|
1684
1684
|
for (let [t, n] of Object.entries(e)) n === void 0 ? delete r[t] : r[t] = n;
|
|
@@ -1691,7 +1691,7 @@ var Dr = [
|
|
|
1691
1691
|
gap: 1
|
|
1692
1692
|
},
|
|
1693
1693
|
...a,
|
|
1694
|
-
children: [G(
|
|
1694
|
+
children: [G(_r, { children: [
|
|
1695
1695
|
G(K, {
|
|
1696
1696
|
sx: {
|
|
1697
1697
|
display: "flex",
|
|
@@ -1716,7 +1716,7 @@ var Dr = [
|
|
|
1716
1716
|
}),
|
|
1717
1717
|
children: W(ue, { rows: y(e, c(e.color)?.toCSS("adaptive") ?? "var(--sxl-color-primary, rgb(33, 115, 70))") })
|
|
1718
1718
|
}, t))
|
|
1719
|
-
}), G(
|
|
1719
|
+
}), G(Sn, {
|
|
1720
1720
|
exclusive: !0,
|
|
1721
1721
|
size: "small",
|
|
1722
1722
|
value: g,
|
|
@@ -1725,7 +1725,7 @@ var Dr = [
|
|
|
1725
1725
|
t !== null && _({ gradient: !!t || void 0 });
|
|
1726
1726
|
},
|
|
1727
1727
|
sx: { flex: "0 0 auto" },
|
|
1728
|
-
children: [W(
|
|
1728
|
+
children: [W(xn, {
|
|
1729
1729
|
value: !1,
|
|
1730
1730
|
sx: {
|
|
1731
1731
|
textTransform: "none",
|
|
@@ -1733,7 +1733,7 @@ var Dr = [
|
|
|
1733
1733
|
pb: .25
|
|
1734
1734
|
},
|
|
1735
1735
|
children: o("conditionalFormat.solidFill")
|
|
1736
|
-
}), W(
|
|
1736
|
+
}), W(xn, {
|
|
1737
1737
|
value: !0,
|
|
1738
1738
|
sx: {
|
|
1739
1739
|
textTransform: "none",
|
|
@@ -1744,8 +1744,8 @@ var Dr = [
|
|
|
1744
1744
|
})]
|
|
1745
1745
|
})]
|
|
1746
1746
|
}),
|
|
1747
|
-
W(
|
|
1748
|
-
control: W(
|
|
1747
|
+
W(cn, {
|
|
1748
|
+
control: W(tn, {
|
|
1749
1749
|
size: "small",
|
|
1750
1750
|
checked: !1 === t.showValue,
|
|
1751
1751
|
disabled: i,
|
|
@@ -1860,61 +1860,61 @@ var Dr = [
|
|
|
1860
1860
|
gap: 1,
|
|
1861
1861
|
mt: .5
|
|
1862
1862
|
},
|
|
1863
|
-
children: [G(
|
|
1863
|
+
children: [G(sn, {
|
|
1864
1864
|
size: "small",
|
|
1865
1865
|
sx: {
|
|
1866
1866
|
flex: 1,
|
|
1867
1867
|
minWidth: 0
|
|
1868
1868
|
},
|
|
1869
|
-
children: [W(
|
|
1869
|
+
children: [W(dn, { children: o("conditionalFormat.axis") }), G(J, {
|
|
1870
1870
|
label: o("conditionalFormat.axis"),
|
|
1871
|
-
value: t.axisPosition ??
|
|
1871
|
+
value: t.axisPosition ?? Ar,
|
|
1872
1872
|
disabled: i,
|
|
1873
1873
|
sx: b,
|
|
1874
1874
|
onChange: (e) => {
|
|
1875
1875
|
let t = e.target.value;
|
|
1876
|
-
_({ axisPosition: t ===
|
|
1876
|
+
_({ axisPosition: t === Ar ? void 0 : t });
|
|
1877
1877
|
},
|
|
1878
1878
|
children: [
|
|
1879
|
-
W(
|
|
1880
|
-
value:
|
|
1879
|
+
W(q, {
|
|
1880
|
+
value: Ar,
|
|
1881
1881
|
children: o("conditionalFormat.automatic")
|
|
1882
1882
|
}),
|
|
1883
|
-
W(
|
|
1883
|
+
W(q, {
|
|
1884
1884
|
value: "middle",
|
|
1885
1885
|
children: o("conditionalFormat.axisMiddle")
|
|
1886
1886
|
}),
|
|
1887
|
-
W(
|
|
1887
|
+
W(q, {
|
|
1888
1888
|
value: "none",
|
|
1889
1889
|
children: o("conditionalFormat.axisNone")
|
|
1890
1890
|
})
|
|
1891
1891
|
]
|
|
1892
1892
|
})]
|
|
1893
|
-
}), G(
|
|
1893
|
+
}), G(sn, {
|
|
1894
1894
|
size: "small",
|
|
1895
1895
|
sx: {
|
|
1896
1896
|
flex: 1,
|
|
1897
1897
|
minWidth: 0
|
|
1898
1898
|
},
|
|
1899
|
-
children: [W(
|
|
1899
|
+
children: [W(dn, { children: o("conditionalFormat.direction") }), G(J, {
|
|
1900
1900
|
label: o("conditionalFormat.direction"),
|
|
1901
|
-
value: t.direction ??
|
|
1901
|
+
value: t.direction ?? Ar,
|
|
1902
1902
|
disabled: i,
|
|
1903
1903
|
sx: b,
|
|
1904
1904
|
onChange: (e) => {
|
|
1905
1905
|
let t = e.target.value;
|
|
1906
|
-
_({ direction: t ===
|
|
1906
|
+
_({ direction: t === Ar ? void 0 : t });
|
|
1907
1907
|
},
|
|
1908
1908
|
children: [
|
|
1909
|
-
W(
|
|
1910
|
-
value:
|
|
1909
|
+
W(q, {
|
|
1910
|
+
value: Ar,
|
|
1911
1911
|
children: o("conditionalFormat.automatic")
|
|
1912
1912
|
}),
|
|
1913
|
-
W(
|
|
1913
|
+
W(q, {
|
|
1914
1914
|
value: "leftToRight",
|
|
1915
1915
|
children: o("conditionalFormat.leftToRight")
|
|
1916
1916
|
}),
|
|
1917
|
-
W(
|
|
1917
|
+
W(q, {
|
|
1918
1918
|
value: "rightToLeft",
|
|
1919
1919
|
children: o("conditionalFormat.rightToLeft")
|
|
1920
1920
|
})
|
|
@@ -1922,21 +1922,21 @@ var Dr = [
|
|
|
1922
1922
|
})]
|
|
1923
1923
|
})]
|
|
1924
1924
|
})
|
|
1925
|
-
] }), G(
|
|
1925
|
+
] }), G(_r, {
|
|
1926
1926
|
variant: "config",
|
|
1927
|
-
children: [W(
|
|
1927
|
+
children: [W(Tr, {
|
|
1928
1928
|
label: o("conditionalFormat.stop.minimum"),
|
|
1929
1929
|
stop: u[0] ?? { type: D.ColorStopType.AutoMin },
|
|
1930
|
-
allowedTypes:
|
|
1930
|
+
allowedTypes: Or,
|
|
1931
1931
|
readOnly: i,
|
|
1932
1932
|
onStopChange: (e) => {
|
|
1933
1933
|
let t = u.slice();
|
|
1934
1934
|
t[0] = e, _({ stops: t });
|
|
1935
1935
|
}
|
|
1936
|
-
}), W(
|
|
1936
|
+
}), W(Tr, {
|
|
1937
1937
|
label: o("conditionalFormat.stop.maximum"),
|
|
1938
1938
|
stop: u[1] ?? { type: D.ColorStopType.AutoMax },
|
|
1939
|
-
allowedTypes:
|
|
1939
|
+
allowedTypes: kr,
|
|
1940
1940
|
readOnly: i,
|
|
1941
1941
|
onStopChange: (e) => {
|
|
1942
1942
|
let t = u.slice();
|
|
@@ -1947,14 +1947,14 @@ var Dr = [
|
|
|
1947
1947
|
})]
|
|
1948
1948
|
});
|
|
1949
1949
|
});
|
|
1950
|
-
|
|
1951
|
-
var
|
|
1950
|
+
jr.displayName = "DataBarRulePanel";
|
|
1951
|
+
var Mr = Z("conditionalFormat.noCellIcon"), Nr = Z("conditionalFormat.cellIcon"), Pr = {
|
|
1952
1952
|
borderColor: "primary.main",
|
|
1953
1953
|
boxShadow: (e) => `inset 0 0 0 1px ${e.palette.primary.main}`
|
|
1954
|
-
},
|
|
1954
|
+
}, Fr = {
|
|
1955
1955
|
width: "28px",
|
|
1956
1956
|
height: "26px"
|
|
1957
|
-
},
|
|
1957
|
+
}, Ir = R((e) => {
|
|
1958
1958
|
let { icon: t, onPick: n } = e, r = F();
|
|
1959
1959
|
return G(K, {
|
|
1960
1960
|
sx: {
|
|
@@ -1965,11 +1965,11 @@ var jr = Z("conditionalFormat.noCellIcon"), Mr = Z("conditionalFormat.cellIcon")
|
|
|
1965
1965
|
},
|
|
1966
1966
|
children: [W(m, {
|
|
1967
1967
|
sheet: !0,
|
|
1968
|
-
title: r(
|
|
1968
|
+
title: r(Mr),
|
|
1969
1969
|
"aria-pressed": t === null,
|
|
1970
1970
|
sx: {
|
|
1971
|
-
...
|
|
1972
|
-
...t === null ?
|
|
1971
|
+
...Fr,
|
|
1972
|
+
...t === null ? Pr : null
|
|
1973
1973
|
},
|
|
1974
1974
|
onClick: () => {
|
|
1975
1975
|
n({ ...je });
|
|
@@ -1992,8 +1992,8 @@ var jr = Z("conditionalFormat.noCellIcon"), Mr = Z("conditionalFormat.cellIcon")
|
|
|
1992
1992
|
title: f(r, e.spec),
|
|
1993
1993
|
"aria-pressed": i,
|
|
1994
1994
|
sx: {
|
|
1995
|
-
...
|
|
1996
|
-
...i ?
|
|
1995
|
+
...Fr,
|
|
1996
|
+
...i ? Pr : null
|
|
1997
1997
|
},
|
|
1998
1998
|
onClick: () => {
|
|
1999
1999
|
n({
|
|
@@ -2010,24 +2010,24 @@ var jr = Z("conditionalFormat.noCellIcon"), Mr = Z("conditionalFormat.cellIcon")
|
|
|
2010
2010
|
})]
|
|
2011
2011
|
});
|
|
2012
2012
|
});
|
|
2013
|
-
|
|
2014
|
-
var
|
|
2013
|
+
Ir.displayName = "IconCatalogPanel";
|
|
2014
|
+
var Lr = R(L((e, t) => {
|
|
2015
2015
|
let { icon: n, onPick: r, tooltip: i, ...a } = e, o = F();
|
|
2016
|
-
return W(
|
|
2016
|
+
return W(Pt, {
|
|
2017
2017
|
ref: t,
|
|
2018
2018
|
createPopupPanel: z((e) => {
|
|
2019
|
-
let { closeFloat: t } = e, i = W(
|
|
2019
|
+
let { closeFloat: t } = e, i = W(Ir, {
|
|
2020
2020
|
icon: n,
|
|
2021
2021
|
onPick: (e) => {
|
|
2022
2022
|
t?.(), r(e);
|
|
2023
2023
|
}
|
|
2024
2024
|
});
|
|
2025
|
-
return
|
|
2025
|
+
return Bt({
|
|
2026
2026
|
...e,
|
|
2027
2027
|
children: i
|
|
2028
2028
|
});
|
|
2029
2029
|
}, [n, r]),
|
|
2030
|
-
tooltip: i ?? o(
|
|
2030
|
+
tooltip: i ?? o(Nr),
|
|
2031
2031
|
icon: W(ke, {
|
|
2032
2032
|
icons: [n],
|
|
2033
2033
|
size: 16
|
|
@@ -2036,14 +2036,14 @@ var Ir = R(L((e, t) => {
|
|
|
2036
2036
|
...a
|
|
2037
2037
|
});
|
|
2038
2038
|
}));
|
|
2039
|
-
|
|
2040
|
-
var
|
|
2039
|
+
Lr.displayName = "IconPickerPopupButton";
|
|
2040
|
+
var Rr = [
|
|
2041
2041
|
D.ColorStopType.Percent,
|
|
2042
2042
|
D.ColorStopType.Num,
|
|
2043
2043
|
D.ColorStopType.Percentile,
|
|
2044
2044
|
D.ColorStopType.Formula
|
|
2045
|
-
],
|
|
2046
|
-
let { scale: t, onScaleChange: n, readOnly: r, ...i } = e, a = F(), o = t.iconSet ?? xe.IconSet.TrafficLights3, s =
|
|
2045
|
+
], zr = R((e) => {
|
|
2046
|
+
let { scale: t, onScaleChange: n, readOnly: r, ...i } = e, a = F(), o = t.iconSet ?? xe.IconSet.TrafficLights3, s = Ke(o).length === 0, c = t.stops ?? [], l = c.length, u = Je(t), f = (e) => {
|
|
2047
2047
|
let r = { ...t };
|
|
2048
2048
|
for (let [t, n] of Object.entries(e)) n === void 0 ? delete r[t] : r[t] = n;
|
|
2049
2049
|
n(r);
|
|
@@ -2054,8 +2054,8 @@ var Lr = [
|
|
|
2054
2054
|
onPick: (e) => {
|
|
2055
2055
|
t?.(), e.type === D.ScaleType.IconSet && e.iconSet && ((e) => {
|
|
2056
2056
|
if (e === o) return;
|
|
2057
|
-
let t =
|
|
2058
|
-
t !== c.length && (n =
|
|
2057
|
+
let t = qe(e), n = c;
|
|
2058
|
+
t !== c.length && (n = Ge(t)), f({
|
|
2059
2059
|
iconSet: e,
|
|
2060
2060
|
stops: n,
|
|
2061
2061
|
icon: void 0
|
|
@@ -2063,7 +2063,7 @@ var Lr = [
|
|
|
2063
2063
|
})(e.iconSet);
|
|
2064
2064
|
}
|
|
2065
2065
|
});
|
|
2066
|
-
return
|
|
2066
|
+
return Bt({
|
|
2067
2067
|
...e,
|
|
2068
2068
|
children: n
|
|
2069
2069
|
});
|
|
@@ -2075,14 +2075,14 @@ var Lr = [
|
|
|
2075
2075
|
gap: 1
|
|
2076
2076
|
},
|
|
2077
2077
|
...i,
|
|
2078
|
-
children: [G(
|
|
2078
|
+
children: [G(_r, { children: [
|
|
2079
2079
|
W(K, {
|
|
2080
2080
|
sx: {
|
|
2081
2081
|
display: "flex",
|
|
2082
2082
|
alignItems: "center",
|
|
2083
2083
|
gap: 1
|
|
2084
2084
|
},
|
|
2085
|
-
children: W(
|
|
2085
|
+
children: W(Pt, {
|
|
2086
2086
|
outlined: !0,
|
|
2087
2087
|
disabled: r,
|
|
2088
2088
|
label: m,
|
|
@@ -2098,7 +2098,7 @@ var Lr = [
|
|
|
2098
2098
|
noWrap: !0,
|
|
2099
2099
|
children: m
|
|
2100
2100
|
}) : W(ke, {
|
|
2101
|
-
icons:
|
|
2101
|
+
icons: Ke(o),
|
|
2102
2102
|
order: "descending",
|
|
2103
2103
|
size: 14,
|
|
2104
2104
|
gap: 3
|
|
@@ -2117,8 +2117,8 @@ var Lr = [
|
|
|
2117
2117
|
display: "flex",
|
|
2118
2118
|
gap: 1
|
|
2119
2119
|
},
|
|
2120
|
-
children: [W(
|
|
2121
|
-
control: W(
|
|
2120
|
+
children: [W(cn, {
|
|
2121
|
+
control: W(tn, {
|
|
2122
2122
|
size: "small",
|
|
2123
2123
|
checked: !1 === t.showValue,
|
|
2124
2124
|
disabled: r,
|
|
@@ -2128,8 +2128,8 @@ var Lr = [
|
|
|
2128
2128
|
variant: "body2",
|
|
2129
2129
|
children: a("conditionalFormat.showIconsOnly")
|
|
2130
2130
|
})
|
|
2131
|
-
}), W(
|
|
2132
|
-
control: W(
|
|
2131
|
+
}), W(cn, {
|
|
2132
|
+
control: W(tn, {
|
|
2133
2133
|
size: "small",
|
|
2134
2134
|
checked: t.reverse ?? !1,
|
|
2135
2135
|
disabled: r,
|
|
@@ -2141,16 +2141,16 @@ var Lr = [
|
|
|
2141
2141
|
})
|
|
2142
2142
|
})]
|
|
2143
2143
|
})
|
|
2144
|
-
] }), W(
|
|
2144
|
+
] }), W(_r, {
|
|
2145
2145
|
variant: "config",
|
|
2146
2146
|
children: c.map((e, i) => {
|
|
2147
2147
|
let a = t.reverse ? l - 1 - i : i;
|
|
2148
|
-
return W(
|
|
2148
|
+
return W(Tr, {
|
|
2149
2149
|
stop: e,
|
|
2150
|
-
allowedTypes:
|
|
2150
|
+
allowedTypes: Rr,
|
|
2151
2151
|
showExclusive: !0,
|
|
2152
2152
|
readOnly: r || i === 0,
|
|
2153
|
-
leading: W(
|
|
2153
|
+
leading: W(Lr, {
|
|
2154
2154
|
icon: u[i] ?? null,
|
|
2155
2155
|
disabled: r || s,
|
|
2156
2156
|
onPick: (e) => n(M(t, a, e))
|
|
@@ -2164,16 +2164,16 @@ var Lr = [
|
|
|
2164
2164
|
})]
|
|
2165
2165
|
});
|
|
2166
2166
|
});
|
|
2167
|
-
|
|
2168
|
-
var
|
|
2167
|
+
zr.displayName = "IconSetRulePanel";
|
|
2168
|
+
var Br = (e, t, n) => s(e, t)?.toCSS("adaptive") ?? n, Vr = (e, t, n) => {
|
|
2169
2169
|
if (!e) return n;
|
|
2170
|
-
if (typeof e == "string") return
|
|
2170
|
+
if (typeof e == "string") return Br(e, t, n);
|
|
2171
2171
|
if (e.type === O.Type.None) return n;
|
|
2172
2172
|
let r = e, i = e;
|
|
2173
|
-
return
|
|
2174
|
-
},
|
|
2173
|
+
return Br(i.foreground ?? r.color ?? i.background, t, n);
|
|
2174
|
+
}, Hr = R((e) => {
|
|
2175
2175
|
let { conditionalFormat: n, size: r = 28, ...i } = e, { workbook: o, themeKey: s } = v();
|
|
2176
|
-
|
|
2176
|
+
Xe(n, "onAnyChange");
|
|
2177
2177
|
let l = n.getScale(), d = n.getStyle(), f = V(() => {
|
|
2178
2178
|
try {
|
|
2179
2179
|
return o?.getStyles().getNormal().getFont().toCSS("adaptive") ?? {};
|
|
@@ -2182,7 +2182,7 @@ var zr = (e, t, n) => s(e, t)?.toCSS("adaptive") ?? n, Br = (e, t, n) => {
|
|
|
2182
2182
|
}
|
|
2183
2183
|
}, [o, s]), p = V(() => {
|
|
2184
2184
|
if (l?.type === D.ScaleType.ColorScale) return W(ue, { rows: t(l.stops ?? [], c, o) });
|
|
2185
|
-
if (l?.type === D.ScaleType.DataBar) return W(ue, { rows: y(l,
|
|
2185
|
+
if (l?.type === D.ScaleType.DataBar) return W(ue, { rows: y(l, Br(l.color, o, a), l.borderColor ? Br(l.borderColor, o, a) : void 0) });
|
|
2186
2186
|
if (l?.type === D.ScaleType.IconSet) return W(K, {
|
|
2187
2187
|
sx: {
|
|
2188
2188
|
display: "flex",
|
|
@@ -2193,7 +2193,7 @@ var zr = (e, t, n) => s(e, t)?.toCSS("adaptive") ?? n, Br = (e, t, n) => {
|
|
|
2193
2193
|
px: .5
|
|
2194
2194
|
},
|
|
2195
2195
|
children: W(ke, {
|
|
2196
|
-
icons:
|
|
2196
|
+
icons: Je(l),
|
|
2197
2197
|
order: "descending",
|
|
2198
2198
|
size: 14,
|
|
2199
2199
|
gap: 3
|
|
@@ -2208,14 +2208,14 @@ var zr = (e, t, n) => s(e, t)?.toCSS("adaptive") ?? n, Br = (e, t, n) => {
|
|
|
2208
2208
|
alignItems: "center",
|
|
2209
2209
|
justifyContent: "center",
|
|
2210
2210
|
...f,
|
|
2211
|
-
backgroundColor:
|
|
2212
|
-
...e?.color && e.color !== "auto" ? { color:
|
|
2211
|
+
backgroundColor: Vr(d?.fill, o, "transparent"),
|
|
2212
|
+
...e?.color && e.color !== "auto" ? { color: Br(e.color, o, g) } : null,
|
|
2213
2213
|
...e?.weight ? { fontWeight: e.weight } : null,
|
|
2214
2214
|
...e?.style ? { fontStyle: e.style } : null,
|
|
2215
2215
|
textDecoration: [n ? "underline" : "", e?.strike ? "line-through" : ""].join(" ").trim() || "none",
|
|
2216
2216
|
fontSize: `${Math.round(.5 * r)}px`,
|
|
2217
2217
|
lineHeight: 1,
|
|
2218
|
-
outline: d?.borders ? `1px solid ${
|
|
2218
|
+
outline: d?.borders ? `1px solid ${Br(Object.values(d.borders)[0]?.color, o, u)}` : void 0,
|
|
2219
2219
|
outlineOffset: "-3px"
|
|
2220
2220
|
},
|
|
2221
2221
|
children: "Aa"
|
|
@@ -2240,23 +2240,23 @@ var zr = (e, t, n) => s(e, t)?.toCSS("adaptive") ?? n, Br = (e, t, n) => {
|
|
|
2240
2240
|
children: p
|
|
2241
2241
|
});
|
|
2242
2242
|
});
|
|
2243
|
-
|
|
2244
|
-
var
|
|
2243
|
+
Hr.displayName = "RulePreview";
|
|
2244
|
+
var Ur = (e, t) => {
|
|
2245
2245
|
let n = e.getCondition()?.toString();
|
|
2246
2246
|
if (n) return n;
|
|
2247
2247
|
let r = e.getScale();
|
|
2248
2248
|
return r ? he.camelToPrettyCase(r.type) : t("conditionalFormat.noCondition");
|
|
2249
|
-
},
|
|
2249
|
+
}, Wr = {
|
|
2250
2250
|
classic: Z("conditionalFormat.tab.classic"),
|
|
2251
2251
|
[D.ScaleType.ColorScale]: Z("conditionalFormat.tab.colorScale"),
|
|
2252
2252
|
[D.ScaleType.DataBar]: Z("conditionalFormat.tab.dataBars"),
|
|
2253
2253
|
[D.ScaleType.IconSet]: Z("conditionalFormat.tab.iconSets")
|
|
2254
|
-
},
|
|
2254
|
+
}, Gr = R((e) => {
|
|
2255
2255
|
let { conditionalFormat: t } = e, n = F();
|
|
2256
|
-
|
|
2256
|
+
Xe(t, "onAnyChange");
|
|
2257
2257
|
let r = t.getScale(), i = t.getCondition(), a = t.getStyle(), o = t.isProtected(), s = r?.type ?? "classic", c = H({ scales: {} }), u = (e) => {
|
|
2258
2258
|
t.update({ scale: e });
|
|
2259
|
-
}, d = G(
|
|
2259
|
+
}, d = G(mn, {
|
|
2260
2260
|
tabIndex: 0,
|
|
2261
2261
|
className: l["editor-panel"],
|
|
2262
2262
|
sx: {
|
|
@@ -2284,7 +2284,7 @@ var Hr = (e, t) => {
|
|
|
2284
2284
|
alignItems: "center",
|
|
2285
2285
|
gap: (e) => e.spacing(1.5)
|
|
2286
2286
|
},
|
|
2287
|
-
children: [W(
|
|
2287
|
+
children: [W(Hr, {
|
|
2288
2288
|
conditionalFormat: t,
|
|
2289
2289
|
size: 48
|
|
2290
2290
|
}), W(Y, {
|
|
@@ -2293,14 +2293,14 @@ var Hr = (e, t) => {
|
|
|
2293
2293
|
minWidth: 0,
|
|
2294
2294
|
wordBreak: "break-word"
|
|
2295
2295
|
},
|
|
2296
|
-
children:
|
|
2296
|
+
children: Ur(t, n)
|
|
2297
2297
|
})]
|
|
2298
2298
|
}), W(b, {
|
|
2299
2299
|
item: t,
|
|
2300
2300
|
label: n("conditionalFormat.applyTo")
|
|
2301
2301
|
})]
|
|
2302
2302
|
}),
|
|
2303
|
-
W(
|
|
2303
|
+
W(vn, {
|
|
2304
2304
|
value: s,
|
|
2305
2305
|
onChange: (e, n) => {
|
|
2306
2306
|
o || ((e) => {
|
|
@@ -2313,7 +2313,7 @@ var Hr = (e, t) => {
|
|
|
2313
2313
|
scale: null
|
|
2314
2314
|
});
|
|
2315
2315
|
else {
|
|
2316
|
-
let n = c.current.scales[e] ?? (e === D.ScaleType.ColorScale ?
|
|
2316
|
+
let n = c.current.scales[e] ?? (e === D.ScaleType.ColorScale ? He() : e === D.ScaleType.DataBar ? Ue() : We());
|
|
2317
2317
|
t.update({
|
|
2318
2318
|
scale: n,
|
|
2319
2319
|
condition: null,
|
|
@@ -2336,33 +2336,33 @@ var Hr = (e, t) => {
|
|
|
2336
2336
|
minWidth: 0
|
|
2337
2337
|
}
|
|
2338
2338
|
},
|
|
2339
|
-
children: Object.keys(
|
|
2339
|
+
children: Object.keys(Wr).map((e) => W(_n, {
|
|
2340
2340
|
value: e,
|
|
2341
|
-
label: n(
|
|
2341
|
+
label: n(Wr[e])
|
|
2342
2342
|
}, e))
|
|
2343
2343
|
}),
|
|
2344
|
-
s === "classic" && G(
|
|
2344
|
+
s === "classic" && G(Jt, { children: [W(Sr, {
|
|
2345
2345
|
format: a,
|
|
2346
2346
|
readOnly: o,
|
|
2347
2347
|
onFormatChange: (e) => t.update({ style: e })
|
|
2348
|
-
}), W(
|
|
2348
|
+
}), W(gr, {
|
|
2349
2349
|
selectorTitle: n("conditionalFormat.highlight"),
|
|
2350
2350
|
condition: i,
|
|
2351
2351
|
ranges: t.getRanges(),
|
|
2352
2352
|
readOnly: o,
|
|
2353
2353
|
onConditionChange: (e) => t.setCondition(e)
|
|
2354
2354
|
})] }),
|
|
2355
|
-
r?.type === D.ScaleType.ColorScale && W(
|
|
2355
|
+
r?.type === D.ScaleType.ColorScale && W(Dr, {
|
|
2356
2356
|
scale: r,
|
|
2357
2357
|
onScaleChange: u,
|
|
2358
2358
|
readOnly: o
|
|
2359
2359
|
}),
|
|
2360
|
-
r?.type === D.ScaleType.DataBar && W(
|
|
2360
|
+
r?.type === D.ScaleType.DataBar && W(jr, {
|
|
2361
2361
|
scale: r,
|
|
2362
2362
|
onScaleChange: u,
|
|
2363
2363
|
readOnly: o
|
|
2364
2364
|
}),
|
|
2365
|
-
r?.type === D.ScaleType.IconSet && W(
|
|
2365
|
+
r?.type === D.ScaleType.IconSet && W(zr, {
|
|
2366
2366
|
scale: r,
|
|
2367
2367
|
onScaleChange: u,
|
|
2368
2368
|
readOnly: o
|
|
@@ -2375,8 +2375,8 @@ var Hr = (e, t) => {
|
|
|
2375
2375
|
borderColor: "divider",
|
|
2376
2376
|
borderRadius: 1
|
|
2377
2377
|
},
|
|
2378
|
-
children: W(
|
|
2379
|
-
control: W(
|
|
2378
|
+
children: W(cn, {
|
|
2379
|
+
control: W(tn, {
|
|
2380
2380
|
checked: t.isStopIfTrue(),
|
|
2381
2381
|
disabled: o,
|
|
2382
2382
|
onChange: (e) => t.setStopIfTrue(e.target.checked)
|
|
@@ -2386,15 +2386,15 @@ var Hr = (e, t) => {
|
|
|
2386
2386
|
})
|
|
2387
2387
|
]
|
|
2388
2388
|
});
|
|
2389
|
-
return W(
|
|
2389
|
+
return W(In.Provider, {
|
|
2390
2390
|
value: t,
|
|
2391
2391
|
children: d
|
|
2392
2392
|
});
|
|
2393
2393
|
});
|
|
2394
|
-
|
|
2395
|
-
var
|
|
2394
|
+
Gr.displayName = "ConditionalFormatEditorPanel";
|
|
2395
|
+
var Kr = R(({ item: e }) => {
|
|
2396
2396
|
let t = F();
|
|
2397
|
-
return
|
|
2397
|
+
return Xe(e, "onAnyChange"), !e.isStopIfTrue() || e.getScale() ? null : W(K, {
|
|
2398
2398
|
sx: {
|
|
2399
2399
|
display: "inline-flex",
|
|
2400
2400
|
alignItems: "center",
|
|
@@ -2412,14 +2412,14 @@ var Gr = R(({ item: e }) => {
|
|
|
2412
2412
|
})
|
|
2413
2413
|
});
|
|
2414
2414
|
});
|
|
2415
|
-
|
|
2416
|
-
var
|
|
2415
|
+
Kr.displayName = "StopIfTrueBadge";
|
|
2416
|
+
var qr = R(({ item: e }) => W(b, {
|
|
2417
2417
|
item: e,
|
|
2418
2418
|
label: F()("conditionalFormat.applyTo"),
|
|
2419
2419
|
helperText: null
|
|
2420
2420
|
}));
|
|
2421
|
-
|
|
2422
|
-
var
|
|
2421
|
+
qr.displayName = "ConditionalFormatCardRanges";
|
|
2422
|
+
var Jr = {
|
|
2423
2423
|
key: "conditional-format",
|
|
2424
2424
|
messageKeys: {
|
|
2425
2425
|
none: Z("conditionalFormat.none"),
|
|
@@ -2449,47 +2449,47 @@ var qr = {
|
|
|
2449
2449
|
stopIfTrue: t.stopIfTrue ?? !1
|
|
2450
2450
|
});
|
|
2451
2451
|
},
|
|
2452
|
-
getCardTitle:
|
|
2453
|
-
CardMedia: ({ item: e }) => W(
|
|
2452
|
+
getCardTitle: Ur,
|
|
2453
|
+
CardMedia: ({ item: e }) => W(Hr, {
|
|
2454
2454
|
conditionalFormat: e,
|
|
2455
2455
|
size: 32
|
|
2456
2456
|
}),
|
|
2457
|
-
CardSubtitle:
|
|
2458
|
-
CardBody:
|
|
2459
|
-
EditorBody: ({ item: e }) => W(
|
|
2460
|
-
},
|
|
2457
|
+
CardSubtitle: qr,
|
|
2458
|
+
CardBody: Kr,
|
|
2459
|
+
EditorBody: ({ item: e }) => W(Gr, { conditionalFormat: e })
|
|
2460
|
+
}, Yr = R(L((e, t) => {
|
|
2461
2461
|
let { workbook: n, args: r, ...i } = e;
|
|
2462
2462
|
return W(o, {
|
|
2463
2463
|
ref: t,
|
|
2464
2464
|
workbook: n,
|
|
2465
|
-
descriptor:
|
|
2465
|
+
descriptor: Jr,
|
|
2466
2466
|
args: r,
|
|
2467
2467
|
dragReorder: !0,
|
|
2468
2468
|
...i
|
|
2469
2469
|
});
|
|
2470
2470
|
}));
|
|
2471
|
-
|
|
2472
|
-
var
|
|
2471
|
+
Yr.displayName = "ConditionalFormatDetailsPanel";
|
|
2472
|
+
var Xr = (e) => {
|
|
2473
2473
|
let { model: t, entryKey: n, frame: r, args: i, ref: a, ...o } = e;
|
|
2474
|
-
return W(
|
|
2474
|
+
return W(Yr, {
|
|
2475
2475
|
ref: a,
|
|
2476
2476
|
workbook: t,
|
|
2477
2477
|
args: i,
|
|
2478
2478
|
...o
|
|
2479
2479
|
});
|
|
2480
2480
|
};
|
|
2481
|
-
function
|
|
2481
|
+
function Zr(e) {
|
|
2482
2482
|
var t, n, r = "";
|
|
2483
2483
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
2484
|
-
else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n =
|
|
2484
|
+
else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = Zr(e[t])) && (r && (r += " "), r += n);
|
|
2485
2485
|
else for (t in e) e[t] && (r && (r += " "), r += t);
|
|
2486
2486
|
return r;
|
|
2487
2487
|
}
|
|
2488
|
-
function
|
|
2489
|
-
for (var e, t, n = 0, r = ""; n < arguments.length;) (e = arguments[n++]) && (t =
|
|
2488
|
+
function Qr() {
|
|
2489
|
+
for (var e, t, n = 0, r = ""; n < arguments.length;) (e = arguments[n++]) && (t = Zr(e)) && (r && (r += " "), r += t);
|
|
2490
2490
|
return r;
|
|
2491
2491
|
}
|
|
2492
|
-
var
|
|
2492
|
+
var $r = { data: "" }, ei = (e) => {
|
|
2493
2493
|
if (typeof window == "object") {
|
|
2494
2494
|
let t = (e ? e.querySelector("#_goober") : window._goober) || Object.assign(document.createElement("style"), {
|
|
2495
2495
|
innerHTML: " ",
|
|
@@ -2497,60 +2497,60 @@ var Qr = { data: "" }, $r = (e) => {
|
|
|
2497
2497
|
});
|
|
2498
2498
|
return t.nonce = window.__nonce__, t.parentNode || (e || document.head).appendChild(t), t.firstChild;
|
|
2499
2499
|
}
|
|
2500
|
-
return e ||
|
|
2501
|
-
},
|
|
2500
|
+
return e || $r;
|
|
2501
|
+
}, ti = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, ni = /\/\*[^]*?\*\/| +/g, ri = /\n+/g, ii = (e, t) => {
|
|
2502
2502
|
let n = "", r = "", i = "";
|
|
2503
2503
|
for (let a in e) {
|
|
2504
2504
|
let o = e[a];
|
|
2505
|
-
a[0] == "@" ? a[1] == "i" ? n = a + " " + o + ";" : r += a[1] == "f" ?
|
|
2505
|
+
a[0] == "@" ? a[1] == "i" ? n = a + " " + o + ";" : r += a[1] == "f" ? ii(o, a) : a + "{" + ii(o, a[1] == "k" ? "" : t) + "}" : typeof o == "object" ? r += ii(o, t ? t.replace(/([^,])+/g, (e) => a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (t) => /&/.test(t) ? t.replace(/&/g, e) : e ? e + " " + t : t)) : a) : o != null && (a = a[1] == "-" ? a : a.replace(/[A-Z]/g, "-$&").toLowerCase(), i += ii.p ? ii.p(a, o) : a + ":" + o + ";");
|
|
2506
2506
|
}
|
|
2507
2507
|
return n + (t && i ? t + "{" + i + "}" : i) + r;
|
|
2508
|
-
},
|
|
2508
|
+
}, ai = {}, oi = (e) => {
|
|
2509
2509
|
if (typeof e == "object") {
|
|
2510
2510
|
let t = "";
|
|
2511
|
-
for (let n in e) t += n +
|
|
2511
|
+
for (let n in e) t += n + oi(e[n]);
|
|
2512
2512
|
return t;
|
|
2513
2513
|
}
|
|
2514
2514
|
return e;
|
|
2515
|
-
},
|
|
2516
|
-
let a =
|
|
2515
|
+
}, si = (e, t, n, r, i) => {
|
|
2516
|
+
let a = oi(e), o = ai[a] || (ai[a] = ((e) => {
|
|
2517
2517
|
let t = 0, n = 11;
|
|
2518
2518
|
for (; t < e.length;) n = 101 * n + e.charCodeAt(t++) >>> 0;
|
|
2519
2519
|
return "go" + n;
|
|
2520
2520
|
})(a));
|
|
2521
|
-
if (!
|
|
2521
|
+
if (!ai[o]) {
|
|
2522
2522
|
let t = a === e ? ((e) => {
|
|
2523
2523
|
let t, n, r = [{}];
|
|
2524
|
-
for (; t =
|
|
2524
|
+
for (; t = ti.exec(e.replace(ni, ""));) t[4] ? r.shift() : t[3] ? (n = t[3].replace(ri, " ").trim(), r.unshift(r[0][n] = r[0][n] || {})) : r[0][t[1]] = t[2].replace(ri, " ").trim();
|
|
2525
2525
|
return r[0];
|
|
2526
2526
|
})(e) : e;
|
|
2527
|
-
|
|
2527
|
+
ai[o] = ii(i ? { ["@keyframes " + o]: t } : t, n ? "" : "." + o);
|
|
2528
2528
|
}
|
|
2529
|
-
let s = n &&
|
|
2530
|
-
return n && (
|
|
2529
|
+
let s = n && ai.g;
|
|
2530
|
+
return n && (ai.g = ai[o]), ((e, t, n, r) => {
|
|
2531
2531
|
r ? t.data = t.data.replace(r, e) : t.data.indexOf(e) === -1 && (t.data = n ? e + t.data : t.data + e);
|
|
2532
|
-
})(
|
|
2532
|
+
})(ai[o], t, r, s), o;
|
|
2533
2533
|
};
|
|
2534
|
-
function
|
|
2534
|
+
function ci(e) {
|
|
2535
2535
|
let t = this || {}, n = e.call ? e(t.p) : e;
|
|
2536
|
-
return
|
|
2536
|
+
return si(n.unshift ? n.raw ? ((e, t, n) => e.reduce((e, r, i) => {
|
|
2537
2537
|
let a = t[i];
|
|
2538
2538
|
if (a && a.call) {
|
|
2539
2539
|
let e = a(n), t = e && e.props && e.props.className || /^go/.test(e) && e;
|
|
2540
|
-
a = t ? "." + t : e && typeof e == "object" ? e.props ? "" :
|
|
2540
|
+
a = t ? "." + t : e && typeof e == "object" ? e.props ? "" : ii(e, "") : !1 === e ? "" : e;
|
|
2541
2541
|
}
|
|
2542
2542
|
return e + r + (a ?? "");
|
|
2543
|
-
}, ""))(n, [].slice.call(arguments, 1), t.p) : n.reduce((e, n) => Object.assign(e, n && n.call ? n(t.p) : n), {}) : n,
|
|
2543
|
+
}, ""))(n, [].slice.call(arguments, 1), t.p) : n.reduce((e, n) => Object.assign(e, n && n.call ? n(t.p) : n), {}) : n, ei(t.target), t.g, t.o, t.k);
|
|
2544
2544
|
}
|
|
2545
|
-
|
|
2546
|
-
function
|
|
2545
|
+
ci.bind({ g: 1 }), ci.bind({ k: 1 });
|
|
2546
|
+
function li(e, t) {
|
|
2547
2547
|
for (var n = 0; n < t.length; n++) {
|
|
2548
2548
|
var r = t[n];
|
|
2549
2549
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
2552
|
-
function
|
|
2553
|
-
return t &&
|
|
2552
|
+
function ui(e, t, n) {
|
|
2553
|
+
return t && li(e.prototype, t), n && li(e, n), e;
|
|
2554
2554
|
}
|
|
2555
2555
|
function $() {
|
|
2556
2556
|
return $ = Object.assign || function(e) {
|
|
@@ -2561,37 +2561,37 @@ function $() {
|
|
|
2561
2561
|
return e;
|
|
2562
2562
|
}, $.apply(this, arguments);
|
|
2563
2563
|
}
|
|
2564
|
-
function
|
|
2564
|
+
function di(e, t) {
|
|
2565
2565
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
|
|
2566
2566
|
}
|
|
2567
|
-
function
|
|
2567
|
+
function fi(e, t) {
|
|
2568
2568
|
if (e == null) return {};
|
|
2569
2569
|
var n, r, i = {}, a = Object.keys(e);
|
|
2570
2570
|
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]);
|
|
2571
2571
|
return i;
|
|
2572
2572
|
}
|
|
2573
|
-
function
|
|
2573
|
+
function pi(e) {
|
|
2574
2574
|
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2575
2575
|
return e;
|
|
2576
2576
|
}
|
|
2577
|
-
var
|
|
2577
|
+
var mi = function() {
|
|
2578
2578
|
return "";
|
|
2579
|
-
},
|
|
2580
|
-
enqueueSnackbar:
|
|
2581
|
-
closeSnackbar:
|
|
2582
|
-
}),
|
|
2579
|
+
}, hi = I.createContext({
|
|
2580
|
+
enqueueSnackbar: mi,
|
|
2581
|
+
closeSnackbar: mi
|
|
2582
|
+
}), gi = "@media (max-width:599.95px)", _i = "@media (min-width:600px)", vi = function(e) {
|
|
2583
2583
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2584
|
-
}, vi = function(e) {
|
|
2585
|
-
return "" + _i(e.vertical) + _i(e.horizontal);
|
|
2586
2584
|
}, yi = function(e) {
|
|
2585
|
+
return "" + vi(e.vertical) + vi(e.horizontal);
|
|
2586
|
+
}, bi = function(e) {
|
|
2587
2587
|
return !!e || e === 0;
|
|
2588
|
-
},
|
|
2588
|
+
}, xi = "unmounted", Si = "exited", Ci = "entering", wi = "entered", Ti = "exiting", Ei = function(e) {
|
|
2589
2589
|
function t(t) {
|
|
2590
2590
|
var n, r = e.call(this, t) || this, i = t.appear;
|
|
2591
|
-
return r.appearStatus = null, t.in ? i ? (n =
|
|
2591
|
+
return r.appearStatus = null, t.in ? i ? (n = Si, r.appearStatus = Ci) : n = wi : n = t.unmountOnExit || t.mountOnEnter ? xi : Si, r.state = { status: n }, r.nextCallback = null, r;
|
|
2592
2592
|
}
|
|
2593
|
-
|
|
2594
|
-
return e.in && t.status ===
|
|
2593
|
+
di(t, e), t.getDerivedStateFromProps = function(e, t) {
|
|
2594
|
+
return e.in && t.status === xi ? { status: Si } : null;
|
|
2595
2595
|
};
|
|
2596
2596
|
var n = t.prototype;
|
|
2597
2597
|
return n.componentDidMount = function() {
|
|
@@ -2600,7 +2600,7 @@ var pi = function() {
|
|
|
2600
2600
|
var t = null;
|
|
2601
2601
|
if (e !== this.props) {
|
|
2602
2602
|
var n = this.state.status;
|
|
2603
|
-
this.props.in ? n !==
|
|
2603
|
+
this.props.in ? n !== Ci && n !== wi && (t = Ci) : n !== Ci && n !== wi || (t = Ti);
|
|
2604
2604
|
}
|
|
2605
2605
|
this.updateStatus(!1, t);
|
|
2606
2606
|
}, n.componentWillUnmount = function() {
|
|
@@ -2612,27 +2612,27 @@ var pi = function() {
|
|
|
2612
2612
|
enter: t
|
|
2613
2613
|
};
|
|
2614
2614
|
}, n.updateStatus = function(e, t) {
|
|
2615
|
-
e === void 0 && (e = !1), t === null ? this.props.unmountOnExit && this.state.status ===
|
|
2615
|
+
e === void 0 && (e = !1), t === null ? this.props.unmountOnExit && this.state.status === Si && this.setState({ status: xi }) : (this.cancelNextCallback(), t === Ci ? this.performEnter(e) : this.performExit());
|
|
2616
2616
|
}, n.performEnter = function(e) {
|
|
2617
2617
|
var t = this, n = this.props.enter, r = e, i = this.getTimeouts();
|
|
2618
|
-
e || n ? (this.props.onEnter && this.props.onEnter(this.node, r), this.safeSetState({ status:
|
|
2618
|
+
e || n ? (this.props.onEnter && this.props.onEnter(this.node, r), this.safeSetState({ status: Ci }, function() {
|
|
2619
2619
|
t.props.onEntering && t.props.onEntering(t.node, r), t.onTransitionEnd(i.enter, function() {
|
|
2620
|
-
t.safeSetState({ status:
|
|
2620
|
+
t.safeSetState({ status: wi }, function() {
|
|
2621
2621
|
t.props.onEntered && t.props.onEntered(t.node, r);
|
|
2622
2622
|
});
|
|
2623
2623
|
});
|
|
2624
|
-
})) : this.safeSetState({ status:
|
|
2624
|
+
})) : this.safeSetState({ status: wi }, function() {
|
|
2625
2625
|
t.props.onEntered && t.props.onEntered(t.node, r);
|
|
2626
2626
|
});
|
|
2627
2627
|
}, n.performExit = function() {
|
|
2628
2628
|
var e = this, t = this.props.exit, n = this.getTimeouts();
|
|
2629
|
-
t ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status:
|
|
2629
|
+
t ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status: Ti }, function() {
|
|
2630
2630
|
e.props.onExiting && e.props.onExiting(e.node), e.onTransitionEnd(n.exit, function() {
|
|
2631
|
-
e.safeSetState({ status:
|
|
2631
|
+
e.safeSetState({ status: Si }, function() {
|
|
2632
2632
|
e.props.onExited && e.props.onExited(e.node);
|
|
2633
2633
|
});
|
|
2634
2634
|
});
|
|
2635
|
-
})) : this.safeSetState({ status:
|
|
2635
|
+
})) : this.safeSetState({ status: Si }, function() {
|
|
2636
2636
|
e.props.onExited && e.props.onExited(e.node);
|
|
2637
2637
|
});
|
|
2638
2638
|
}, n.cancelNextCallback = function() {
|
|
@@ -2652,9 +2652,9 @@ var pi = function() {
|
|
|
2652
2652
|
this.node && !n ? (this.props.addEndListener && this.props.addEndListener(this.node, this.nextCallback), e != null && setTimeout(this.nextCallback, e)) : setTimeout(this.nextCallback, 0);
|
|
2653
2653
|
}, n.render = function() {
|
|
2654
2654
|
var e = this.state.status;
|
|
2655
|
-
if (e ===
|
|
2655
|
+
if (e === xi) return null;
|
|
2656
2656
|
var t = this.props;
|
|
2657
|
-
return (0, t.children)(e,
|
|
2657
|
+
return (0, t.children)(e, fi(t, [
|
|
2658
2658
|
"children",
|
|
2659
2659
|
"in",
|
|
2660
2660
|
"mountOnEnter",
|
|
@@ -2672,7 +2672,7 @@ var pi = function() {
|
|
|
2672
2672
|
"onExited",
|
|
2673
2673
|
"nodeRef"
|
|
2674
2674
|
]));
|
|
2675
|
-
},
|
|
2675
|
+
}, ui(t, [{
|
|
2676
2676
|
key: "node",
|
|
2677
2677
|
get: function() {
|
|
2678
2678
|
var e = this.props.nodeRef?.current;
|
|
@@ -2681,18 +2681,18 @@ var pi = function() {
|
|
|
2681
2681
|
}
|
|
2682
2682
|
}]), t;
|
|
2683
2683
|
}(I.Component);
|
|
2684
|
-
function
|
|
2685
|
-
function
|
|
2684
|
+
function Di() {}
|
|
2685
|
+
function Oi(e, t) {
|
|
2686
2686
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
2687
2687
|
}
|
|
2688
|
-
function
|
|
2688
|
+
function ki(e, t) {
|
|
2689
2689
|
return V(function() {
|
|
2690
2690
|
return e == null && t == null ? null : function(n) {
|
|
2691
|
-
|
|
2691
|
+
Oi(e, n), Oi(t, n);
|
|
2692
2692
|
};
|
|
2693
2693
|
}, [e, t]);
|
|
2694
2694
|
}
|
|
2695
|
-
function
|
|
2695
|
+
function Ai(e) {
|
|
2696
2696
|
var t = e.timeout, n = e.style, r = n === void 0 ? {} : n, i = e.mode;
|
|
2697
2697
|
return {
|
|
2698
2698
|
duration: typeof t == "object" ? t[i] || 0 : t,
|
|
@@ -2700,42 +2700,42 @@ function ki(e) {
|
|
|
2700
2700
|
delay: r.transitionDelay
|
|
2701
2701
|
};
|
|
2702
2702
|
}
|
|
2703
|
-
|
|
2703
|
+
Ei.defaultProps = {
|
|
2704
2704
|
in: !1,
|
|
2705
2705
|
mountOnEnter: !1,
|
|
2706
2706
|
unmountOnExit: !1,
|
|
2707
2707
|
appear: !1,
|
|
2708
2708
|
enter: !0,
|
|
2709
2709
|
exit: !0,
|
|
2710
|
-
onEnter:
|
|
2711
|
-
onEntering:
|
|
2712
|
-
onEntered:
|
|
2713
|
-
onExit:
|
|
2714
|
-
onExiting:
|
|
2715
|
-
onExited:
|
|
2710
|
+
onEnter: Di,
|
|
2711
|
+
onEntering: Di,
|
|
2712
|
+
onEntered: Di,
|
|
2713
|
+
onExit: Di,
|
|
2714
|
+
onExiting: Di,
|
|
2715
|
+
onExited: Di
|
|
2716
2716
|
};
|
|
2717
|
-
var
|
|
2717
|
+
var ji = "cubic-bezier(0.4, 0, 0.2, 1)", Mi = "cubic-bezier(0.0, 0, 0.2, 1)", Ni = "cubic-bezier(0.4, 0, 0.6, 1)", Pi = function(e) {
|
|
2718
2718
|
e.scrollTop = e.scrollTop;
|
|
2719
|
-
},
|
|
2719
|
+
}, Fi = function(e) {
|
|
2720
2720
|
return Math.round(e) + "ms";
|
|
2721
2721
|
};
|
|
2722
|
-
function
|
|
2722
|
+
function Ii(e, t) {
|
|
2723
2723
|
e === void 0 && (e = ["all"]);
|
|
2724
|
-
var n = t || {}, r = n.duration, i = r === void 0 ? 300 : r, a = n.easing, o = a === void 0 ?
|
|
2724
|
+
var n = t || {}, r = n.duration, i = r === void 0 ? 300 : r, a = n.easing, o = a === void 0 ? ji : a, s = n.delay, c = s === void 0 ? 0 : s;
|
|
2725
2725
|
return (Array.isArray(e) ? e : [e]).map(function(e) {
|
|
2726
|
-
var t = typeof i == "string" ? i :
|
|
2726
|
+
var t = typeof i == "string" ? i : Fi(i), n = typeof c == "string" ? c : Fi(c);
|
|
2727
2727
|
return e + " " + t + " " + o + " " + n;
|
|
2728
2728
|
}).join(",");
|
|
2729
2729
|
}
|
|
2730
|
-
function
|
|
2730
|
+
function Li(e) {
|
|
2731
2731
|
return function(e) {
|
|
2732
2732
|
return e && e.ownerDocument || document;
|
|
2733
2733
|
}(e).defaultView || window;
|
|
2734
2734
|
}
|
|
2735
|
-
function
|
|
2735
|
+
function Ri(e, t) {
|
|
2736
2736
|
if (t) {
|
|
2737
2737
|
var n = function(e, t) {
|
|
2738
|
-
var n, r = t.getBoundingClientRect(), i =
|
|
2738
|
+
var n, r = t.getBoundingClientRect(), i = Li(t);
|
|
2739
2739
|
if (t.fakeTransform) n = t.fakeTransform;
|
|
2740
2740
|
else {
|
|
2741
2741
|
var a = i.getComputedStyle(t);
|
|
@@ -2756,8 +2756,8 @@ function Li(e, t) {
|
|
|
2756
2756
|
n && (t.style.webkitTransform = n, t.style.transform = n);
|
|
2757
2757
|
}
|
|
2758
2758
|
}
|
|
2759
|
-
var
|
|
2760
|
-
var n = e.children, r = e.direction, i = r === void 0 ? "down" : r, a = e.in, o = e.style, s = e.timeout, c = s === void 0 ? 0 : s, l = e.onEnter, u = e.onEntered, d = e.onExit, f = e.onExited, p =
|
|
2759
|
+
var zi = L(function(e, t) {
|
|
2760
|
+
var n = e.children, r = e.direction, i = r === void 0 ? "down" : r, a = e.in, o = e.style, s = e.timeout, c = s === void 0 ? 0 : s, l = e.onEnter, u = e.onEntered, d = e.onExit, f = e.onExited, p = fi(e, [
|
|
2761
2761
|
"children",
|
|
2762
2762
|
"direction",
|
|
2763
2763
|
"in",
|
|
@@ -2767,8 +2767,8 @@ var Ri = L(function(e, t) {
|
|
|
2767
2767
|
"onEntered",
|
|
2768
2768
|
"onExit",
|
|
2769
2769
|
"onExited"
|
|
2770
|
-
]), m = H(null), h =
|
|
2771
|
-
m.current &&
|
|
2770
|
+
]), m = H(null), h = ki(ki(n.ref, m), t), g = z(function() {
|
|
2771
|
+
m.current && Ri(i, m.current);
|
|
2772
2772
|
}, [i]);
|
|
2773
2773
|
return B(function() {
|
|
2774
2774
|
if (!a && i !== "down" && i !== "right") {
|
|
@@ -2784,36 +2784,36 @@ var Ri = L(function(e, t) {
|
|
|
2784
2784
|
clearTimeout(n);
|
|
2785
2785
|
}, r;
|
|
2786
2786
|
}(function() {
|
|
2787
|
-
m.current &&
|
|
2788
|
-
}), t =
|
|
2787
|
+
m.current && Ri(i, m.current);
|
|
2788
|
+
}), t = Li(m.current);
|
|
2789
2789
|
return t.addEventListener("resize", e), function() {
|
|
2790
2790
|
e.clear(), t.removeEventListener("resize", e);
|
|
2791
2791
|
};
|
|
2792
2792
|
}
|
|
2793
2793
|
}, [i, a]), B(function() {
|
|
2794
2794
|
a || g();
|
|
2795
|
-
}, [a, g]),
|
|
2795
|
+
}, [a, g]), Tt(Ei, Object.assign({
|
|
2796
2796
|
appear: !0,
|
|
2797
2797
|
nodeRef: m,
|
|
2798
2798
|
onEnter: function(e, t) {
|
|
2799
|
-
|
|
2799
|
+
Ri(i, e), Pi(e), l && l(e, t);
|
|
2800
2800
|
},
|
|
2801
2801
|
onEntered: u,
|
|
2802
2802
|
onEntering: function(e) {
|
|
2803
|
-
var t = o?.transitionTimingFunction ||
|
|
2803
|
+
var t = o?.transitionTimingFunction || Mi, n = Ai({
|
|
2804
2804
|
timeout: c,
|
|
2805
2805
|
mode: "enter",
|
|
2806
2806
|
style: $({}, o, { transitionTimingFunction: t })
|
|
2807
2807
|
});
|
|
2808
|
-
e.style.webkitTransition =
|
|
2808
|
+
e.style.webkitTransition = Ii("-webkit-transform", n), e.style.transition = Ii("transform", n), e.style.webkitTransform = "none", e.style.transform = "none";
|
|
2809
2809
|
},
|
|
2810
2810
|
onExit: function(e) {
|
|
2811
|
-
var t = o?.transitionTimingFunction ||
|
|
2811
|
+
var t = o?.transitionTimingFunction || Ni, n = Ai({
|
|
2812
2812
|
timeout: c,
|
|
2813
2813
|
mode: "exit",
|
|
2814
2814
|
style: $({}, o, { transitionTimingFunction: t })
|
|
2815
2815
|
});
|
|
2816
|
-
e.style.webkitTransition =
|
|
2816
|
+
e.style.webkitTransition = Ii("-webkit-transform", n), e.style.transition = Ii("transform", n), Ri(i, e), d && d(e);
|
|
2817
2817
|
},
|
|
2818
2818
|
onExited: function(e) {
|
|
2819
2819
|
e.style.webkitTransition = "", e.style.transition = "", f && f(e);
|
|
@@ -2821,14 +2821,14 @@ var Ri = L(function(e, t) {
|
|
|
2821
2821
|
in: a,
|
|
2822
2822
|
timeout: c
|
|
2823
2823
|
}, p), function(e, t) {
|
|
2824
|
-
return
|
|
2824
|
+
return Ct(n, $({
|
|
2825
2825
|
ref: h,
|
|
2826
2826
|
style: $({ visibility: e !== "exited" || a ? void 0 : "hidden" }, o, {}, n.props.style)
|
|
2827
2827
|
}, t));
|
|
2828
2828
|
});
|
|
2829
2829
|
});
|
|
2830
|
-
|
|
2831
|
-
var
|
|
2830
|
+
zi.displayName = "Slide";
|
|
2831
|
+
var Bi = function(e) {
|
|
2832
2832
|
return I.createElement("svg", Object.assign({
|
|
2833
2833
|
viewBox: "0 0 24 24",
|
|
2834
2834
|
focusable: "false",
|
|
@@ -2843,7 +2843,7 @@ var zi = function(e) {
|
|
|
2843
2843
|
flexShrink: 0
|
|
2844
2844
|
}
|
|
2845
2845
|
}, e));
|
|
2846
|
-
},
|
|
2846
|
+
}, Vi = {
|
|
2847
2847
|
maxSnack: 3,
|
|
2848
2848
|
persist: !1,
|
|
2849
2849
|
hideIconVariant: !1,
|
|
@@ -2853,68 +2853,68 @@ var zi = function(e) {
|
|
|
2853
2853
|
iconVariant: {
|
|
2854
2854
|
default: void 0,
|
|
2855
2855
|
success: I.createElement(function() {
|
|
2856
|
-
return I.createElement(
|
|
2856
|
+
return I.createElement(Bi, null, I.createElement("path", { d: "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z" }));
|
|
2857
2857
|
}, null),
|
|
2858
2858
|
warning: I.createElement(function() {
|
|
2859
|
-
return I.createElement(
|
|
2859
|
+
return I.createElement(Bi, null, I.createElement("path", { d: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z" }));
|
|
2860
2860
|
}, null),
|
|
2861
2861
|
error: I.createElement(function() {
|
|
2862
|
-
return I.createElement(
|
|
2862
|
+
return I.createElement(Bi, null, I.createElement("path", { d: "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z" }));
|
|
2863
2863
|
}, null),
|
|
2864
2864
|
info: I.createElement(function() {
|
|
2865
|
-
return I.createElement(
|
|
2865
|
+
return I.createElement(Bi, null, I.createElement("path", { d: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z" }));
|
|
2866
2866
|
}, null)
|
|
2867
2867
|
},
|
|
2868
2868
|
anchorOrigin: {
|
|
2869
2869
|
vertical: "bottom",
|
|
2870
2870
|
horizontal: "left"
|
|
2871
2871
|
},
|
|
2872
|
-
TransitionComponent:
|
|
2872
|
+
TransitionComponent: zi,
|
|
2873
2873
|
transitionDuration: {
|
|
2874
2874
|
enter: 225,
|
|
2875
2875
|
exit: 195
|
|
2876
2876
|
}
|
|
2877
|
-
},
|
|
2877
|
+
}, Hi = function(e, t) {
|
|
2878
2878
|
return function(n, r) {
|
|
2879
|
-
return r === void 0 && (r = !1), r ? $({},
|
|
2879
|
+
return r === void 0 && (r = !1), r ? $({}, Vi[n], {}, t[n], {}, e[n]) : n === "autoHideDuration" ? (i = e.autoHideDuration, a = t.autoHideDuration, (o = function(e) {
|
|
2880
2880
|
return typeof e == "number" || e === null;
|
|
2881
|
-
})(i) ? i : o(a) ? a :
|
|
2881
|
+
})(i) ? i : o(a) ? a : Vi.autoHideDuration) : n === "transitionDuration" ? function(e, t) {
|
|
2882
2882
|
var n = function(e, t) {
|
|
2883
2883
|
return t.some(function(t) {
|
|
2884
2884
|
return typeof e === t;
|
|
2885
2885
|
});
|
|
2886
2886
|
};
|
|
2887
|
-
return n(e, ["string", "number"]) ? e : n(e, ["object"]) ? $({},
|
|
2888
|
-
}(e.transitionDuration, t.transitionDuration) : e[n] || t[n] ||
|
|
2887
|
+
return n(e, ["string", "number"]) ? e : n(e, ["object"]) ? $({}, Vi.transitionDuration, {}, n(t, ["object"]) && t, {}, e) : n(t, ["string", "number"]) ? t : n(t, ["object"]) ? $({}, Vi.transitionDuration, {}, t) : Vi.transitionDuration;
|
|
2888
|
+
}(e.transitionDuration, t.transitionDuration) : e[n] || t[n] || Vi[n];
|
|
2889
2889
|
var i, a, o;
|
|
2890
2890
|
};
|
|
2891
2891
|
};
|
|
2892
|
-
function
|
|
2892
|
+
function Ui(e) {
|
|
2893
2893
|
return Object.entries(e).reduce(function(e, t) {
|
|
2894
2894
|
var n, r = t[0], i = t[1];
|
|
2895
|
-
return $({}, e, ((n = {})[r] =
|
|
2895
|
+
return $({}, e, ((n = {})[r] = ci(i), n));
|
|
2896
2896
|
}, {});
|
|
2897
2897
|
}
|
|
2898
|
-
var
|
|
2898
|
+
var Wi = "notistack-SnackbarContainer", Gi = "notistack-Snackbar", Ki = "notistack-CollapseWrapper", qi = "notistack-MuiContent", Ji = function(e) {
|
|
2899
2899
|
return "notistack-MuiContent-" + e;
|
|
2900
|
-
},
|
|
2900
|
+
}, Yi = Ui({
|
|
2901
2901
|
root: { height: 0 },
|
|
2902
2902
|
entered: { height: "auto" }
|
|
2903
|
-
}),
|
|
2904
|
-
var n = e.children, r = e.in, i = e.onExited, a = H(null), o = H(null), s =
|
|
2903
|
+
}), Xi = "0px", Zi = L(function(e, t) {
|
|
2904
|
+
var n = e.children, r = e.in, i = e.onExited, a = H(null), o = H(null), s = ki(t, o), c = function() {
|
|
2905
2905
|
return a.current ? a.current.clientHeight : 0;
|
|
2906
2906
|
};
|
|
2907
|
-
return
|
|
2907
|
+
return Tt(Ei, {
|
|
2908
2908
|
in: r,
|
|
2909
2909
|
unmountOnExit: !0,
|
|
2910
2910
|
onEnter: function(e) {
|
|
2911
|
-
e.style.height =
|
|
2911
|
+
e.style.height = Xi;
|
|
2912
2912
|
},
|
|
2913
2913
|
onEntered: function(e) {
|
|
2914
2914
|
e.style.height = "auto";
|
|
2915
2915
|
},
|
|
2916
2916
|
onEntering: function(e) {
|
|
2917
|
-
var t = c(), n =
|
|
2917
|
+
var t = c(), n = Ai({
|
|
2918
2918
|
timeout: 175,
|
|
2919
2919
|
mode: "enter"
|
|
2920
2920
|
}), r = n.duration, i = n.easing;
|
|
@@ -2925,28 +2925,28 @@ var Ui = "notistack-SnackbarContainer", Wi = "notistack-Snackbar", Gi = "notista
|
|
|
2925
2925
|
},
|
|
2926
2926
|
onExited: i,
|
|
2927
2927
|
onExiting: function(e) {
|
|
2928
|
-
|
|
2929
|
-
var t =
|
|
2928
|
+
Pi(e);
|
|
2929
|
+
var t = Ai({
|
|
2930
2930
|
timeout: 175,
|
|
2931
2931
|
mode: "exit"
|
|
2932
2932
|
}), n = t.duration, r = t.easing;
|
|
2933
|
-
e.style.transitionDuration = typeof n == "string" ? n : n + "ms", e.style.height =
|
|
2933
|
+
e.style.transitionDuration = typeof n == "string" ? n : n + "ms", e.style.height = Xi, e.style.transitionTimingFunction = r || "";
|
|
2934
2934
|
},
|
|
2935
2935
|
nodeRef: o,
|
|
2936
2936
|
timeout: 175
|
|
2937
2937
|
}, function(e, t) {
|
|
2938
|
-
return
|
|
2938
|
+
return Tt("div", Object.assign({
|
|
2939
2939
|
ref: s,
|
|
2940
|
-
className:
|
|
2940
|
+
className: Qr(Yi.root, e === "entered" && Yi.entered),
|
|
2941
2941
|
style: $({
|
|
2942
2942
|
pointerEvents: "all",
|
|
2943
2943
|
overflow: "hidden",
|
|
2944
|
-
minHeight:
|
|
2945
|
-
transition:
|
|
2944
|
+
minHeight: Xi,
|
|
2945
|
+
transition: Ii("height")
|
|
2946
2946
|
}, e === "entered" && { overflow: "visible" }, {}, e === "exited" && !r && { visibility: "hidden" })
|
|
2947
|
-
}, t),
|
|
2947
|
+
}, t), Tt("div", {
|
|
2948
2948
|
ref: a,
|
|
2949
|
-
className:
|
|
2949
|
+
className: Ki,
|
|
2950
2950
|
style: {
|
|
2951
2951
|
display: "flex",
|
|
2952
2952
|
width: "100%"
|
|
@@ -2954,36 +2954,36 @@ var Ui = "notistack-SnackbarContainer", Wi = "notistack-Snackbar", Gi = "notista
|
|
|
2954
2954
|
}, n));
|
|
2955
2955
|
});
|
|
2956
2956
|
});
|
|
2957
|
-
|
|
2958
|
-
var
|
|
2957
|
+
Zi.displayName = "Collapse";
|
|
2958
|
+
var Qi = {
|
|
2959
2959
|
right: "left",
|
|
2960
2960
|
left: "right",
|
|
2961
2961
|
bottom: "up",
|
|
2962
2962
|
top: "down"
|
|
2963
|
-
},
|
|
2964
|
-
return "anchorOrigin" +
|
|
2965
|
-
},
|
|
2966
|
-
function
|
|
2963
|
+
}, $i = function(e) {
|
|
2964
|
+
return "anchorOrigin" + yi(e);
|
|
2965
|
+
}, ea = function() {};
|
|
2966
|
+
function ta(e, t) {
|
|
2967
2967
|
return e.reduce(function(e, n) {
|
|
2968
2968
|
return n == null ? e : function() {
|
|
2969
2969
|
var r = [...arguments], i = [].concat(r);
|
|
2970
2970
|
t && i.indexOf(t) === -1 && i.push(t), e.apply(this, i), n.apply(this, i);
|
|
2971
2971
|
};
|
|
2972
|
-
},
|
|
2972
|
+
}, ea);
|
|
2973
2973
|
}
|
|
2974
|
-
var
|
|
2975
|
-
function
|
|
2974
|
+
var na = typeof window < "u" ? Ot : B;
|
|
2975
|
+
function ra(e) {
|
|
2976
2976
|
var t = H(e);
|
|
2977
|
-
return
|
|
2977
|
+
return na(function() {
|
|
2978
2978
|
t.current = e;
|
|
2979
2979
|
}), z(function() {
|
|
2980
2980
|
return t.current.apply(void 0, arguments);
|
|
2981
2981
|
}, []);
|
|
2982
2982
|
}
|
|
2983
|
-
var
|
|
2984
|
-
var n = e.children, r = e.className, i = e.autoHideDuration, a = e.disableWindowBlurListener, o = a !== void 0 && a, s = e.onClose, c = e.id, l = e.open, u = e.SnackbarProps, d = u === void 0 ? {} : u, f = H(), p =
|
|
2983
|
+
var ia, aa = L(function(e, t) {
|
|
2984
|
+
var n = e.children, r = e.className, i = e.autoHideDuration, a = e.disableWindowBlurListener, o = a !== void 0 && a, s = e.onClose, c = e.id, l = e.open, u = e.SnackbarProps, d = u === void 0 ? {} : u, f = H(), p = ra(function() {
|
|
2985
2985
|
s && s.apply(void 0, arguments);
|
|
2986
|
-
}), m =
|
|
2986
|
+
}), m = ra(function(e) {
|
|
2987
2987
|
s && e != null && (f.current && clearTimeout(f.current), f.current = setTimeout(function() {
|
|
2988
2988
|
p(null, "timeout", c);
|
|
2989
2989
|
}, e));
|
|
@@ -3010,8 +3010,8 @@ var ra, ia = L(function(e, t) {
|
|
|
3010
3010
|
o,
|
|
3011
3011
|
g,
|
|
3012
3012
|
l
|
|
3013
|
-
]),
|
|
3014
|
-
className:
|
|
3013
|
+
]), Tt("div", Object.assign({ ref: t }, d, {
|
|
3014
|
+
className: Qr(Gi, r),
|
|
3015
3015
|
onMouseEnter: function(e) {
|
|
3016
3016
|
d.onMouseEnter && d.onMouseEnter(e), h();
|
|
3017
3017
|
},
|
|
@@ -3020,23 +3020,23 @@ var ra, ia = L(function(e, t) {
|
|
|
3020
3020
|
}
|
|
3021
3021
|
}), n);
|
|
3022
3022
|
});
|
|
3023
|
-
|
|
3024
|
-
var
|
|
3023
|
+
aa.displayName = "Snackbar";
|
|
3024
|
+
var oa = Ui({ root: (ia = {
|
|
3025
3025
|
display: "flex",
|
|
3026
3026
|
flexWrap: "wrap",
|
|
3027
3027
|
flexGrow: 1
|
|
3028
|
-
},
|
|
3028
|
+
}, ia[_i] = {
|
|
3029
3029
|
flexGrow: "initial",
|
|
3030
3030
|
minWidth: "288px"
|
|
3031
|
-
},
|
|
3032
|
-
var n = e.className, r =
|
|
3031
|
+
}, ia) }), sa = L(function(e, t) {
|
|
3032
|
+
var n = e.className, r = fi(e, ["className"]);
|
|
3033
3033
|
return I.createElement("div", Object.assign({
|
|
3034
3034
|
ref: t,
|
|
3035
|
-
className:
|
|
3035
|
+
className: Qr(oa.root, n)
|
|
3036
3036
|
}, r));
|
|
3037
3037
|
});
|
|
3038
|
-
|
|
3039
|
-
var
|
|
3038
|
+
sa.displayName = "SnackbarContent";
|
|
3039
|
+
var ca = Ui({
|
|
3040
3040
|
root: {
|
|
3041
3041
|
backgroundColor: "#313131",
|
|
3042
3042
|
fontSize: "0.875rem",
|
|
@@ -3066,21 +3066,21 @@ var sa = Hi({
|
|
|
3066
3066
|
paddingLeft: "16px",
|
|
3067
3067
|
marginRight: "-8px"
|
|
3068
3068
|
}
|
|
3069
|
-
}),
|
|
3069
|
+
}), la = "notistack-snackbar", ua = L(function(e, t) {
|
|
3070
3070
|
var n = e.id, r = e.message, i = e.action, a = e.iconVariant, o = e.variant, s = e.hideIconVariant, c = e.style, l = e.className, u = a[o], d = i;
|
|
3071
|
-
return typeof d == "function" && (d = d(n)), I.createElement(
|
|
3071
|
+
return typeof d == "function" && (d = d(n)), I.createElement(sa, {
|
|
3072
3072
|
ref: t,
|
|
3073
3073
|
role: "alert",
|
|
3074
|
-
"aria-describedby":
|
|
3074
|
+
"aria-describedby": la,
|
|
3075
3075
|
style: c,
|
|
3076
|
-
className:
|
|
3076
|
+
className: Qr(qi, Ji(o), ca.root, ca[o], l, !s && u && ca.lessPadding)
|
|
3077
3077
|
}, I.createElement("div", {
|
|
3078
|
-
id:
|
|
3079
|
-
className:
|
|
3080
|
-
}, s ? null : u, r), d && I.createElement("div", { className:
|
|
3078
|
+
id: la,
|
|
3079
|
+
className: ca.message
|
|
3080
|
+
}, s ? null : u, r), d && I.createElement("div", { className: ca.action }, d));
|
|
3081
3081
|
});
|
|
3082
|
-
|
|
3083
|
-
var
|
|
3082
|
+
ua.displayName = "MaterialDesignContent";
|
|
3083
|
+
var da, fa, pa, ma, ha, ga = R(ua), _a = Ui({ wrappedRoot: {
|
|
3084
3084
|
width: "100%",
|
|
3085
3085
|
position: "relative",
|
|
3086
3086
|
transform: "translateX(0)",
|
|
@@ -3089,8 +3089,8 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3089
3089
|
bottom: 0,
|
|
3090
3090
|
left: 0,
|
|
3091
3091
|
minWidth: "288px"
|
|
3092
|
-
} }),
|
|
3093
|
-
var t = H(), n = U(!0), r = n[0], i = n[1], a =
|
|
3092
|
+
} }), va = function(e) {
|
|
3093
|
+
var t = H(), n = U(!0), r = n[0], i = n[1], a = ta([e.snack.onClose, e.onClose]), o = z(function() {
|
|
3094
3094
|
t.current = setTimeout(function() {
|
|
3095
3095
|
i(function(e) {
|
|
3096
3096
|
return !e;
|
|
@@ -3102,7 +3102,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3102
3102
|
t.current && clearTimeout(t.current);
|
|
3103
3103
|
};
|
|
3104
3104
|
}, []);
|
|
3105
|
-
var s, c = e.snack, l = e.classes, u = e.Component, d = u === void 0 ?
|
|
3105
|
+
var s, c = e.snack, l = e.classes, u = e.Component, d = u === void 0 ? ga : u, f = V(function() {
|
|
3106
3106
|
return function(e) {
|
|
3107
3107
|
e === void 0 && (e = {});
|
|
3108
3108
|
var t = {
|
|
@@ -3121,7 +3121,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3121
3121
|
return $({}, t, ((r = {})[n] = e[n], r));
|
|
3122
3122
|
}, {});
|
|
3123
3123
|
}(l);
|
|
3124
|
-
}, [l]), p = c.open, m = c.SnackbarProps, h = c.TransitionComponent, g = c.TransitionProps, _ = c.transitionDuration, v = c.disableWindowBlurListener, y = c.content, b =
|
|
3124
|
+
}, [l]), p = c.open, m = c.SnackbarProps, h = c.TransitionComponent, g = c.TransitionProps, _ = c.transitionDuration, v = c.disableWindowBlurListener, y = c.content, b = fi(c, [
|
|
3125
3125
|
"open",
|
|
3126
3126
|
"SnackbarProps",
|
|
3127
3127
|
"TransitionComponent",
|
|
@@ -3136,7 +3136,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3136
3136
|
"onExit",
|
|
3137
3137
|
"onExited"
|
|
3138
3138
|
]), x = $({
|
|
3139
|
-
direction: (s = b.anchorOrigin, s.horizontal === "center" ?
|
|
3139
|
+
direction: (s = b.anchorOrigin, s.horizontal === "center" ? Qi[s.vertical] : Qi[s.horizontal]),
|
|
3140
3140
|
timeout: _
|
|
3141
3141
|
}, g), S = y;
|
|
3142
3142
|
typeof S == "function" && (S = S(b.id, b.message));
|
|
@@ -3147,17 +3147,17 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3147
3147
|
"onExited"
|
|
3148
3148
|
].reduce(function(t, n) {
|
|
3149
3149
|
var r;
|
|
3150
|
-
return $({}, t, ((r = {})[n] =
|
|
3150
|
+
return $({}, t, ((r = {})[n] = ta([e.snack[n], e[n]], b.id), r));
|
|
3151
3151
|
}, {});
|
|
3152
|
-
return I.createElement(
|
|
3152
|
+
return I.createElement(Zi, {
|
|
3153
3153
|
in: r,
|
|
3154
3154
|
onExited: C.onExited
|
|
3155
|
-
}, I.createElement(
|
|
3155
|
+
}, I.createElement(aa, {
|
|
3156
3156
|
open: p,
|
|
3157
3157
|
id: b.id,
|
|
3158
3158
|
disableWindowBlurListener: v,
|
|
3159
3159
|
autoHideDuration: b.autoHideDuration,
|
|
3160
|
-
className:
|
|
3160
|
+
className: Qr(_a.wrappedRoot, f.root, f[$i(b.anchorOrigin)]),
|
|
3161
3161
|
SnackbarProps: m,
|
|
3162
3162
|
onClose: a
|
|
3163
3163
|
}, I.createElement(h, Object.assign({}, x, {
|
|
@@ -3166,18 +3166,18 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3166
3166
|
onExit: C.onExit,
|
|
3167
3167
|
onExited: o,
|
|
3168
3168
|
onEnter: C.onEnter,
|
|
3169
|
-
onEntered:
|
|
3169
|
+
onEntered: ta([C.onEntered, function() {
|
|
3170
3170
|
e.snack.requestClose && a(null, "instructed", e.snack.id);
|
|
3171
3171
|
}], b.id)
|
|
3172
3172
|
}), S || I.createElement(d, Object.assign({}, b)))));
|
|
3173
|
-
},
|
|
3173
|
+
}, ya = {
|
|
3174
3174
|
default: 20,
|
|
3175
3175
|
dense: 4
|
|
3176
|
-
},
|
|
3176
|
+
}, ba = {
|
|
3177
3177
|
default: 6,
|
|
3178
3178
|
dense: 2
|
|
3179
|
-
},
|
|
3180
|
-
root: (
|
|
3179
|
+
}, xa = "." + Ki, Sa = Ui({
|
|
3180
|
+
root: (da = {
|
|
3181
3181
|
boxSizing: "border-box",
|
|
3182
3182
|
display: "flex",
|
|
3183
3183
|
maxHeight: "100%",
|
|
@@ -3185,7 +3185,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3185
3185
|
zIndex: 1400,
|
|
3186
3186
|
height: "auto",
|
|
3187
3187
|
width: "auto",
|
|
3188
|
-
transition:
|
|
3188
|
+
transition: Ii([
|
|
3189
3189
|
"top",
|
|
3190
3190
|
"right",
|
|
3191
3191
|
"bottom",
|
|
@@ -3196,39 +3196,39 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3196
3196
|
easing: "ease"
|
|
3197
3197
|
}),
|
|
3198
3198
|
pointerEvents: "none"
|
|
3199
|
-
},
|
|
3200
|
-
padding:
|
|
3199
|
+
}, da[xa] = {
|
|
3200
|
+
padding: ba.default + "px 0px",
|
|
3201
3201
|
transition: "padding 300ms ease 0ms"
|
|
3202
|
-
},
|
|
3202
|
+
}, da.maxWidth = "calc(100% - " + 2 * ya.default + "px)", da[gi] = {
|
|
3203
3203
|
width: "100%",
|
|
3204
3204
|
maxWidth: "calc(100% - 32px)"
|
|
3205
|
-
},
|
|
3206
|
-
rootDense: (
|
|
3205
|
+
}, da),
|
|
3206
|
+
rootDense: (fa = {}, fa[xa] = { padding: ba.dense + "px 0px" }, fa),
|
|
3207
3207
|
top: {
|
|
3208
|
-
top:
|
|
3208
|
+
top: ya.default - ba.default + "px",
|
|
3209
3209
|
flexDirection: "column"
|
|
3210
3210
|
},
|
|
3211
3211
|
bottom: {
|
|
3212
|
-
bottom:
|
|
3212
|
+
bottom: ya.default - ba.default + "px",
|
|
3213
3213
|
flexDirection: "column-reverse"
|
|
3214
3214
|
},
|
|
3215
|
-
left: (
|
|
3216
|
-
right: (
|
|
3217
|
-
center: (
|
|
3215
|
+
left: (pa = { left: ya.default + "px" }, pa[_i] = { alignItems: "flex-start" }, pa[gi] = { left: "16px" }, pa),
|
|
3216
|
+
right: (ma = { right: ya.default + "px" }, ma[_i] = { alignItems: "flex-end" }, ma[gi] = { right: "16px" }, ma),
|
|
3217
|
+
center: (ha = {
|
|
3218
3218
|
left: "50%",
|
|
3219
3219
|
transform: "translateX(-50%)"
|
|
3220
|
-
},
|
|
3221
|
-
}),
|
|
3222
|
-
var t = e.classes, n = t === void 0 ? {} : t, r = e.anchorOrigin, i = e.dense, a = e.children, o =
|
|
3220
|
+
}, ha[_i] = { alignItems: "center" }, ha)
|
|
3221
|
+
}), Ca = R(function(e) {
|
|
3222
|
+
var t = e.classes, n = t === void 0 ? {} : t, r = e.anchorOrigin, i = e.dense, a = e.children, o = Qr(Wi, Sa[r.vertical], Sa[r.horizontal], Sa.root, n.containerRoot, n["containerAnchorOrigin" + yi(r)], i && Sa.rootDense);
|
|
3223
3223
|
return I.createElement("div", { className: o }, a);
|
|
3224
|
-
}),
|
|
3225
|
-
return !(typeof e == "string" ||
|
|
3226
|
-
},
|
|
3224
|
+
}), wa = function(e) {
|
|
3225
|
+
return !(typeof e == "string" || Et(e));
|
|
3226
|
+
}, Ta = function(e) {
|
|
3227
3227
|
function t(t) {
|
|
3228
3228
|
var n = e.call(this, t) || this;
|
|
3229
3229
|
return n.enqueueSnackbar = function(e, t) {
|
|
3230
3230
|
if (t === void 0 && (t = {}), e == null) throw Error("enqueueSnackbar called with invalid argument");
|
|
3231
|
-
var r =
|
|
3231
|
+
var r = wa(e) ? e : t, i = wa(e) ? e.message : e, a = r.key, o = r.preventDuplicate, s = fi(r, ["key", "preventDuplicate"]), c = bi(a), l = c ? a : (/* @__PURE__ */ new Date()).getTime() + Math.random(), u = Hi(s, n.props), d = $({ id: l }, s, {
|
|
3232
3232
|
message: i,
|
|
3233
3233
|
open: !0,
|
|
3234
3234
|
entered: !1,
|
|
@@ -3247,7 +3247,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3247
3247
|
iconVariant: u("iconVariant", !0),
|
|
3248
3248
|
style: u("style", !0),
|
|
3249
3249
|
SnackbarProps: u("SnackbarProps", !0),
|
|
3250
|
-
className:
|
|
3250
|
+
className: Qr(n.props.className, s.className)
|
|
3251
3251
|
});
|
|
3252
3252
|
return d.persist && (d.autoHideDuration = void 0), n.setState(function(e) {
|
|
3253
3253
|
if (o === void 0 && n.props.preventDuplicate || o) {
|
|
@@ -3279,7 +3279,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3279
3279
|
});
|
|
3280
3280
|
return $({}, e, { snacks: i });
|
|
3281
3281
|
}, n.handleEnteredSnack = function(e, t, r) {
|
|
3282
|
-
if (!
|
|
3282
|
+
if (!bi(r)) throw Error("handleEnteredSnack Cannot be called with undefined key");
|
|
3283
3283
|
n.setState(function(e) {
|
|
3284
3284
|
return { snacks: e.snacks.map(function(e) {
|
|
3285
3285
|
return e.id === r ? $({}, e, { entered: !0 }) : $({}, e);
|
|
@@ -3303,9 +3303,9 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3303
3303
|
var t = n.state.snacks.find(function(t) {
|
|
3304
3304
|
return t.id === e;
|
|
3305
3305
|
});
|
|
3306
|
-
|
|
3306
|
+
bi(e) && t && t.onClose && t.onClose(null, "instructed", e), n.handleCloseSnack(null, "instructed", e);
|
|
3307
3307
|
}, n.handleExitedSnack = function(e, t) {
|
|
3308
|
-
if (!
|
|
3308
|
+
if (!bi(t)) throw Error("handleExitedSnack Cannot be called with undefined key");
|
|
3309
3309
|
n.setState(function(e) {
|
|
3310
3310
|
var r = n.processQueue($({}, e, { snacks: e.snacks.filter(function(e) {
|
|
3311
3311
|
return e.id !== t;
|
|
@@ -3316,24 +3316,24 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3316
3316
|
snacks: [],
|
|
3317
3317
|
queue: [],
|
|
3318
3318
|
contextValue: {
|
|
3319
|
-
enqueueSnackbar: n.enqueueSnackbar.bind(
|
|
3320
|
-
closeSnackbar: n.closeSnackbar.bind(
|
|
3319
|
+
enqueueSnackbar: n.enqueueSnackbar.bind(pi(n)),
|
|
3320
|
+
closeSnackbar: n.closeSnackbar.bind(pi(n))
|
|
3321
3321
|
}
|
|
3322
3322
|
}, n;
|
|
3323
3323
|
}
|
|
3324
|
-
return
|
|
3324
|
+
return di(t, e), t.prototype.render = function() {
|
|
3325
3325
|
var e = this, t = this.state.contextValue, n = this.props, r = n.domRoot, i = n.children, a = n.dense, o = a !== void 0 && a, s = n.Components, c = s === void 0 ? {} : s, l = n.classes, u = this.state.snacks.reduce(function(e, t) {
|
|
3326
|
-
var n, r =
|
|
3326
|
+
var n, r = yi(t.anchorOrigin), i = e[r] || [];
|
|
3327
3327
|
return $({}, e, ((n = {})[r] = [].concat(i, [t]), n));
|
|
3328
3328
|
}, {}), d = Object.keys(u).map(function(t) {
|
|
3329
3329
|
var n = u[t], r = n[0];
|
|
3330
|
-
return I.createElement(
|
|
3330
|
+
return I.createElement(Ca, {
|
|
3331
3331
|
key: t,
|
|
3332
3332
|
dense: o,
|
|
3333
3333
|
anchorOrigin: r.anchorOrigin,
|
|
3334
3334
|
classes: l
|
|
3335
3335
|
}, n.map(function(t) {
|
|
3336
|
-
return I.createElement(
|
|
3336
|
+
return I.createElement(va, {
|
|
3337
3337
|
key: t.id,
|
|
3338
3338
|
snack: t,
|
|
3339
3339
|
classes: l,
|
|
@@ -3341,21 +3341,21 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3341
3341
|
onClose: e.handleCloseSnack,
|
|
3342
3342
|
onEnter: e.props.onEnter,
|
|
3343
3343
|
onExit: e.props.onExit,
|
|
3344
|
-
onExited:
|
|
3345
|
-
onEntered:
|
|
3344
|
+
onExited: ta([e.handleExitedSnack, e.props.onExited], t.id),
|
|
3345
|
+
onEntered: ta([e.handleEnteredSnack, e.props.onEntered], t.id)
|
|
3346
3346
|
});
|
|
3347
3347
|
}));
|
|
3348
3348
|
});
|
|
3349
|
-
return I.createElement(
|
|
3350
|
-
},
|
|
3349
|
+
return I.createElement(hi.Provider, { value: t }, i, r ? Nn(d, r) : d);
|
|
3350
|
+
}, ui(t, [{
|
|
3351
3351
|
key: "maxSnack",
|
|
3352
3352
|
get: function() {
|
|
3353
|
-
return this.props.maxSnack ||
|
|
3353
|
+
return this.props.maxSnack || Vi.maxSnack;
|
|
3354
3354
|
}
|
|
3355
3355
|
}]), t;
|
|
3356
|
-
}(
|
|
3357
|
-
return
|
|
3358
|
-
},
|
|
3356
|
+
}(St), Ea = function() {
|
|
3357
|
+
return Dt(hi);
|
|
3358
|
+
}, Da = {
|
|
3359
3359
|
card: "_card_h0jnt_7",
|
|
3360
3360
|
actionRoot: "_actionRoot_h0jnt_11",
|
|
3361
3361
|
icons: "_icons_h0jnt_16",
|
|
@@ -3365,44 +3365,44 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3365
3365
|
paper: "_paper_h0jnt_37",
|
|
3366
3366
|
checkIcon: "_checkIcon_h0jnt_42",
|
|
3367
3367
|
button: "_button_h0jnt_47"
|
|
3368
|
-
},
|
|
3369
|
-
let { id: n, message: r, iconVariant: i, error: a, hideIconVariant: o, ...s } = e, c = F(), { closeSnackbar: l } =
|
|
3368
|
+
}, Oa = R(L((e, t) => {
|
|
3369
|
+
let { id: n, message: r, iconVariant: i, error: a, hideIconVariant: o, ...s } = e, c = F(), { closeSnackbar: l } = Ea(), [u, d] = U(!1), f = a ? kn.collectErrorChain(a, !0)?.[0]?.error : void 0, p = f && !(f instanceof An), m = z(() => {
|
|
3370
3370
|
d((e) => !e);
|
|
3371
3371
|
}, []), h = z(() => {
|
|
3372
3372
|
l(n);
|
|
3373
3373
|
}, [n, l]), g = f?.message;
|
|
3374
|
-
return !g &&
|
|
3374
|
+
return !g && Et(r) && (g = r), g || typeof r != "string" || (g = r), g ||= `Unknown Error: ${r}`, W(sa, {
|
|
3375
3375
|
ref: t,
|
|
3376
|
-
className: de(
|
|
3377
|
-
children: G(
|
|
3378
|
-
className:
|
|
3376
|
+
className: de(Da.root, "error-snackbar"),
|
|
3377
|
+
children: G($t, {
|
|
3378
|
+
className: Da.card,
|
|
3379
3379
|
style: {
|
|
3380
3380
|
backgroundColor: "var(--sxl-color-error)",
|
|
3381
3381
|
color: "var(--sxl-color-error-content)",
|
|
3382
3382
|
border: "1px solid var(--sxl-color-error)"
|
|
3383
3383
|
},
|
|
3384
|
-
children: [G(
|
|
3385
|
-
className:
|
|
3384
|
+
children: [G(en, {
|
|
3385
|
+
className: Da.actionRoot,
|
|
3386
3386
|
children: [
|
|
3387
3387
|
o ? null : i?.error,
|
|
3388
3388
|
W(Y, {
|
|
3389
3389
|
variant: "body2",
|
|
3390
3390
|
component: "div",
|
|
3391
|
-
className:
|
|
3391
|
+
className: Da.typography,
|
|
3392
3392
|
children: g
|
|
3393
3393
|
}),
|
|
3394
3394
|
W("div", { style: { flex: "1 1 auto" } }),
|
|
3395
3395
|
G("div", {
|
|
3396
|
-
className:
|
|
3397
|
-
children: [p ? W(
|
|
3396
|
+
className: Da.icons,
|
|
3397
|
+
children: [p ? W(un, {
|
|
3398
3398
|
"aria-label": c("toast.showMore"),
|
|
3399
3399
|
size: "small",
|
|
3400
|
-
className: de(
|
|
3400
|
+
className: de(Da.expand, { [Da.expandOpen]: u }),
|
|
3401
3401
|
onClick: m,
|
|
3402
3402
|
children: W(N, { iconKey: "ExpandMore" })
|
|
3403
|
-
}) : null, W(
|
|
3403
|
+
}) : null, W(un, {
|
|
3404
3404
|
size: "small",
|
|
3405
|
-
className:
|
|
3405
|
+
className: Da.expand,
|
|
3406
3406
|
onClick: h,
|
|
3407
3407
|
children: W(N, {
|
|
3408
3408
|
iconKey: "Close",
|
|
@@ -3411,16 +3411,16 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3411
3411
|
})]
|
|
3412
3412
|
})
|
|
3413
3413
|
]
|
|
3414
|
-
}), p ? W(
|
|
3414
|
+
}), p ? W(nn, {
|
|
3415
3415
|
in: u,
|
|
3416
3416
|
timeout: "auto",
|
|
3417
3417
|
children: W("div", {
|
|
3418
|
-
className:
|
|
3418
|
+
className: Da.stackTraceContainer,
|
|
3419
3419
|
style: {
|
|
3420
3420
|
backgroundColor: "color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))",
|
|
3421
3421
|
borderTop: "1px solid var(--sxl-color-error)"
|
|
3422
3422
|
},
|
|
3423
|
-
children: W(
|
|
3423
|
+
children: W(Rt, {
|
|
3424
3424
|
error: a,
|
|
3425
3425
|
hideLineNumbers: !0
|
|
3426
3426
|
})
|
|
@@ -3429,8 +3429,8 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3429
3429
|
})
|
|
3430
3430
|
});
|
|
3431
3431
|
}));
|
|
3432
|
-
|
|
3433
|
-
var
|
|
3432
|
+
Oa.displayName = "ToastError";
|
|
3433
|
+
var ka = W(() => W(Ft, {
|
|
3434
3434
|
label: "SheetXL",
|
|
3435
3435
|
description: F()("logo.description"),
|
|
3436
3436
|
children: W(K, {
|
|
@@ -3451,8 +3451,8 @@ var Oa = W(() => W(Pt, {
|
|
|
3451
3451
|
height: "24px"
|
|
3452
3452
|
} })
|
|
3453
3453
|
})
|
|
3454
|
-
}), {}),
|
|
3455
|
-
let { workbook: n, className: r, logo: a =
|
|
3454
|
+
}), {}), Aa = R(L((e, t) => {
|
|
3455
|
+
let { workbook: n, className: r, logo: a = ka, mainElement: o, startElement: s, endElement: c, ...l } = e, [u, { width: d }] = fe(), f = d < 530, p = H(null);
|
|
3456
3456
|
return W(K, {
|
|
3457
3457
|
...l,
|
|
3458
3458
|
ref: re([
|
|
@@ -3516,12 +3516,12 @@ var Oa = W(() => W(Pt, {
|
|
|
3516
3516
|
})
|
|
3517
3517
|
});
|
|
3518
3518
|
}));
|
|
3519
|
-
|
|
3520
|
-
var
|
|
3519
|
+
Aa.displayName = "StudioToolbar";
|
|
3520
|
+
var ja = (e, t) => {
|
|
3521
3521
|
let n = new URL(window.location.pathname, window.location.origin);
|
|
3522
|
-
e && n.searchParams.set("source", e), e && t && n.searchParams.set("title", t), window.open(n.toString(), "sheetxl-" +
|
|
3522
|
+
e && n.searchParams.set("source", e), e && t && n.searchParams.set("title", t), window.open(n.toString(), "sheetxl-" + En.uuidV4(), "popup=true");
|
|
3523
3523
|
};
|
|
3524
|
-
function
|
|
3524
|
+
function Ma(e, t) {
|
|
3525
3525
|
let { workbook: n, setWorkbook: r, workbookTitle: i = "export", isDirty: a, notifier: o, refSave: s } = t, c = !1, l = async (e = null, t = null, n = null) => {
|
|
3526
3526
|
let r = [], i = {
|
|
3527
3527
|
source: e && typeof e != "string" ? e : null,
|
|
@@ -3592,7 +3592,7 @@ function ja(e, t) {
|
|
|
3592
3592
|
let r = Q("dialog.writeWarnings.title"), i = t.getFormat(), s = (i ? (await k.getWriteFormats({ search: i }))[0] : void 0)?.description ?? i ?? "", c = Q("dialog.writeWarnings.keep");
|
|
3593
3593
|
return n ? await o.showOptions({
|
|
3594
3594
|
title: r,
|
|
3595
|
-
type:
|
|
3595
|
+
type: st.Warning,
|
|
3596
3596
|
description: `${Q("dialog.writeWarnings.confirm", { format: s })}\n\n${c}`,
|
|
3597
3597
|
options: [{
|
|
3598
3598
|
id: "Save",
|
|
@@ -3601,7 +3601,7 @@ function ja(e, t) {
|
|
|
3601
3601
|
defaultOption: "Cancel"
|
|
3602
3602
|
}) === "Save" && (a = await o?.showBusy?.(Q("workbook.saving", { name: t?.getName() ?? "" })), !0) : (o.showOptions({
|
|
3603
3603
|
title: r,
|
|
3604
|
-
type:
|
|
3604
|
+
type: st.Warning,
|
|
3605
3605
|
description: `${Q("dialog.writeWarnings.saved", { format: s })}\n\n${c}`,
|
|
3606
3606
|
options: ["Ok"]
|
|
3607
3607
|
}), !0);
|
|
@@ -3621,7 +3621,7 @@ function ja(e, t) {
|
|
|
3621
3621
|
e?.source ? t && d ? await d({
|
|
3622
3622
|
url: e.source,
|
|
3623
3623
|
title: e.title
|
|
3624
|
-
}) :
|
|
3624
|
+
}) : ja(e.source, e.title) : t ? r({}) : ja();
|
|
3625
3625
|
} }), e.updateCommand("closeWorkbook", { callback: async () => {
|
|
3626
3626
|
a() && await o.showOptions({
|
|
3627
3627
|
title: Q("dialog.confirm.title"),
|
|
@@ -3693,7 +3693,7 @@ function ja(e, t) {
|
|
|
3693
3693
|
let t = e;
|
|
3694
3694
|
if (t || k.canRead() || (t = await (async () => {
|
|
3695
3695
|
let e = await k.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
|
|
3696
|
-
return
|
|
3696
|
+
return Dn.openFileDialog(t.length ? t.join(",") : "*.*");
|
|
3697
3697
|
})(), t)) return p(t);
|
|
3698
3698
|
}
|
|
3699
3699
|
}), e.updateCommand("insertDataFromURL", {
|
|
@@ -3778,9 +3778,9 @@ function ja(e, t) {
|
|
|
3778
3778
|
c = !0, s && (s.current = null);
|
|
3779
3779
|
};
|
|
3780
3780
|
}
|
|
3781
|
-
var
|
|
3781
|
+
var Na = Ht(X("studio:shortcutKeysDialog", () => import("./bC4EbB4OILhPseb3.mjs")).load);
|
|
3782
3782
|
p(), se();
|
|
3783
|
-
var
|
|
3783
|
+
var Pa = /* @__PURE__ */ new Set(["ui"]), Fa = (e) => {
|
|
3784
3784
|
let t = (e) => {
|
|
3785
3785
|
if (typeof e != "function") return e;
|
|
3786
3786
|
try {
|
|
@@ -3790,9 +3790,9 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
|
|
|
3790
3790
|
}
|
|
3791
3791
|
}, n = (e, n) => {
|
|
3792
3792
|
let r = t(e);
|
|
3793
|
-
return typeof r == "string" ?
|
|
3793
|
+
return typeof r == "string" ? Mn(r, n, On.getActive()) : void 0;
|
|
3794
3794
|
}, r = [];
|
|
3795
|
-
for (let i of e.names()) if (!
|
|
3795
|
+
for (let i of e.names()) if (!Pa.has(i)) for (let a of e.keys(i)) {
|
|
3796
3796
|
let o = e.resolveDefinition(i, a);
|
|
3797
3797
|
r.push({
|
|
3798
3798
|
groupKey: i,
|
|
@@ -3802,29 +3802,29 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
|
|
|
3802
3802
|
getDescription: () => n(o?.description, o?.params) ?? "",
|
|
3803
3803
|
getShortcut: () => t(o?.shortcut) ?? null,
|
|
3804
3804
|
getScope: () => i,
|
|
3805
|
-
getScopeLabel: () =>
|
|
3805
|
+
getScopeLabel: () => nt.DefaultCommandCatalogService.getScopeLabel(i)
|
|
3806
3806
|
}
|
|
3807
3807
|
});
|
|
3808
3808
|
}
|
|
3809
3809
|
return { getAllCommands: () => r };
|
|
3810
|
-
},
|
|
3811
|
-
let { children: t, workbook: n, setWorkbook: r, workbookTitle: i, isDirty: a, refSave: o } = e,
|
|
3812
|
-
|
|
3813
|
-
let
|
|
3814
|
-
let e =
|
|
3810
|
+
}, Ia = (e) => {
|
|
3811
|
+
let { children: t, workbook: n, setWorkbook: r, workbookTitle: i, isDirty: a, refSave: o, fullscreenTarget: s } = e, c = nt.useCommandScope(), l = vt(), { showModal: u } = Kt(), d = F(), f = H(a);
|
|
3812
|
+
f.current = a;
|
|
3813
|
+
let p = mt(() => {
|
|
3814
|
+
let e = c?.getRoot().getRegistry();
|
|
3815
3815
|
if (!e) return;
|
|
3816
|
-
let t =
|
|
3817
|
-
title:
|
|
3818
|
-
commands:
|
|
3816
|
+
let t = u(Na, {
|
|
3817
|
+
title: d("dialog.shortcutKeys.title"),
|
|
3818
|
+
commands: Fa(e),
|
|
3819
3819
|
onDone: () => t.hide(),
|
|
3820
3820
|
onLoadError: (e) => {
|
|
3821
|
-
t.destroy(),
|
|
3821
|
+
t.destroy(), l.showError(e);
|
|
3822
3822
|
}
|
|
3823
3823
|
});
|
|
3824
|
-
}, [
|
|
3824
|
+
}, [c, u]);
|
|
3825
3825
|
B(() => {
|
|
3826
|
-
if (!
|
|
3827
|
-
let e =
|
|
3826
|
+
if (!c) return;
|
|
3827
|
+
let e = c.getRoot().contribution();
|
|
3828
3828
|
return function(e, t) {
|
|
3829
3829
|
let n = () => t.showShortcuts();
|
|
3830
3830
|
e.updateCommand("showKeyboardShortcuts", { callback: n }), e.updateCommand("help", { callback: n });
|
|
@@ -3836,12 +3836,12 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
|
|
|
3836
3836
|
})) e.updateCommand(t, { callback: () => {
|
|
3837
3837
|
window?.open(n);
|
|
3838
3838
|
} });
|
|
3839
|
-
}(e, { showShortcuts:
|
|
3840
|
-
}, [
|
|
3841
|
-
let
|
|
3839
|
+
}(e, { showShortcuts: p }), () => e.remove();
|
|
3840
|
+
}, [c, p]);
|
|
3841
|
+
let m = wn("(prefers-color-scheme: dark)"), { themeMode: h } = bt(), [g, _] = yt(Le.Mode, Ie[Le.Mode]), [v, y] = yt(Le.DarkGrid, Ie[Le.DarkGrid]), [b, x] = yt(Le.DarkImages, Ie[Le.DarkImages]);
|
|
3842
3842
|
B(() => {
|
|
3843
|
-
if (!
|
|
3844
|
-
let e =
|
|
3843
|
+
if (!c) return;
|
|
3844
|
+
let e = c.getRoot().contribution();
|
|
3845
3845
|
return function(e, t) {
|
|
3846
3846
|
e.updateCommand("themeMode", {
|
|
3847
3847
|
state: t.mode ?? null,
|
|
@@ -3860,32 +3860,32 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
|
|
|
3860
3860
|
callback: () => t.setEnableDarkImages((e) => !e)
|
|
3861
3861
|
});
|
|
3862
3862
|
}(e, {
|
|
3863
|
-
mode:
|
|
3864
|
-
setMode:
|
|
3865
|
-
isDark:
|
|
3866
|
-
systemDefaultDark:
|
|
3867
|
-
enableDarkGrid:
|
|
3868
|
-
setEnableDarkGrid:
|
|
3869
|
-
enableDarkImages:
|
|
3870
|
-
setEnableDarkImages:
|
|
3863
|
+
mode: g,
|
|
3864
|
+
setMode: _,
|
|
3865
|
+
isDark: g === "dark" || !g && h === "dark",
|
|
3866
|
+
systemDefaultDark: m,
|
|
3867
|
+
enableDarkGrid: v,
|
|
3868
|
+
setEnableDarkGrid: y,
|
|
3869
|
+
enableDarkImages: b,
|
|
3870
|
+
setEnableDarkImages: x
|
|
3871
3871
|
}), () => e.remove();
|
|
3872
3872
|
}, [
|
|
3873
|
-
|
|
3873
|
+
c,
|
|
3874
|
+
g,
|
|
3874
3875
|
h,
|
|
3875
3876
|
m,
|
|
3876
|
-
|
|
3877
|
+
v,
|
|
3878
|
+
b,
|
|
3877
3879
|
_,
|
|
3878
3880
|
y,
|
|
3879
|
-
|
|
3880
|
-
v,
|
|
3881
|
-
b
|
|
3881
|
+
x
|
|
3882
3882
|
]);
|
|
3883
|
-
let [
|
|
3884
|
-
B(() =>
|
|
3885
|
-
|
|
3886
|
-
}, [
|
|
3887
|
-
if (!
|
|
3888
|
-
let e =
|
|
3883
|
+
let [S, C] = yt(ot.Active, null), [w, T] = U(() => On.getActive());
|
|
3884
|
+
B(() => On.addChangeListener(T), []), B(() => {
|
|
3885
|
+
S && S !== On.getActive() && On.setActive(S);
|
|
3886
|
+
}, [S]), B(() => {
|
|
3887
|
+
if (!c) return;
|
|
3888
|
+
let e = c.getRoot().contribution();
|
|
3889
3889
|
return function(e, t) {
|
|
3890
3890
|
e.updateCommand("language", {
|
|
3891
3891
|
state: t.active,
|
|
@@ -3894,20 +3894,20 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
|
|
|
3894
3894
|
}
|
|
3895
3895
|
});
|
|
3896
3896
|
}(e, {
|
|
3897
|
-
active:
|
|
3897
|
+
active: w,
|
|
3898
3898
|
setActive: (e) => {
|
|
3899
|
-
|
|
3899
|
+
C(e);
|
|
3900
3900
|
}
|
|
3901
3901
|
}), () => e.remove();
|
|
3902
3902
|
}, [
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3903
|
+
c,
|
|
3904
|
+
w,
|
|
3905
|
+
C
|
|
3906
3906
|
]);
|
|
3907
|
-
let { isFullscreenAvailable:
|
|
3907
|
+
let { isFullscreenAvailable: ee, isFullscreenEnabled: te, toggleFullscreen: ne } = gt({ target: V(() => ({ current: s ?? null }), [s]) });
|
|
3908
3908
|
B(() => {
|
|
3909
|
-
if (!
|
|
3910
|
-
let e =
|
|
3909
|
+
if (!c) return;
|
|
3910
|
+
let e = c.getRoot().contribution();
|
|
3911
3911
|
return function(e, t) {
|
|
3912
3912
|
e.updateCommand("fullScreenToggle", {
|
|
3913
3913
|
state: t.isFullscreenEnabled,
|
|
@@ -3918,20 +3918,20 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
|
|
|
3918
3918
|
}
|
|
3919
3919
|
});
|
|
3920
3920
|
}(e, {
|
|
3921
|
-
isFullscreenAvailable:
|
|
3922
|
-
isFullscreenEnabled:
|
|
3923
|
-
toggleFullscreen:
|
|
3921
|
+
isFullscreenAvailable: ee,
|
|
3922
|
+
isFullscreenEnabled: te,
|
|
3923
|
+
toggleFullscreen: ne
|
|
3924
3924
|
}), () => e.remove();
|
|
3925
3925
|
}, [
|
|
3926
|
-
|
|
3927
|
-
T,
|
|
3926
|
+
c,
|
|
3928
3927
|
ee,
|
|
3929
|
-
te
|
|
3928
|
+
te,
|
|
3929
|
+
ne
|
|
3930
3930
|
]);
|
|
3931
|
-
let
|
|
3931
|
+
let re = j(!0);
|
|
3932
3932
|
return B(() => {
|
|
3933
|
-
if (!
|
|
3934
|
-
let e =
|
|
3933
|
+
if (!c) return;
|
|
3934
|
+
let e = c.getRoot().contribution();
|
|
3935
3935
|
return function(e, t) {
|
|
3936
3936
|
e.updateCommand("protectWorkbook", {
|
|
3937
3937
|
tags: ["noTransaction", "noRepeat"],
|
|
@@ -3939,32 +3939,32 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
|
|
|
3939
3939
|
t("manageProtection", { args: { tab: "workbook" } });
|
|
3940
3940
|
}
|
|
3941
3941
|
});
|
|
3942
|
-
}(e, (e, t) =>
|
|
3943
|
-
}, [
|
|
3944
|
-
if (!
|
|
3945
|
-
let e =
|
|
3942
|
+
}(e, (e, t) => re.activate(e, t)), () => e.remove();
|
|
3943
|
+
}, [c, re]), B(() => {
|
|
3944
|
+
if (!c || !n) return;
|
|
3945
|
+
let e = c.getRoot().contribution(), t = Ma(e, {
|
|
3946
3946
|
workbook: n,
|
|
3947
3947
|
setWorkbook: r,
|
|
3948
3948
|
workbookTitle: i ?? void 0,
|
|
3949
|
-
isDirty: () =>
|
|
3950
|
-
notifier:
|
|
3949
|
+
isDirty: () => f.current?.() ?? !1,
|
|
3950
|
+
notifier: l,
|
|
3951
3951
|
refSave: o
|
|
3952
3952
|
});
|
|
3953
3953
|
return () => {
|
|
3954
3954
|
t(), e.remove();
|
|
3955
3955
|
};
|
|
3956
3956
|
}, [
|
|
3957
|
-
|
|
3957
|
+
c,
|
|
3958
3958
|
n,
|
|
3959
3959
|
r,
|
|
3960
3960
|
i,
|
|
3961
|
-
|
|
3961
|
+
l,
|
|
3962
3962
|
o
|
|
3963
3963
|
]), t;
|
|
3964
3964
|
};
|
|
3965
|
-
|
|
3966
|
-
var
|
|
3967
|
-
let t =
|
|
3965
|
+
Ia.displayName = "StudioCommandProvider";
|
|
3966
|
+
var La = ({ renderWorkbook: e }) => {
|
|
3967
|
+
let t = nt.useCommandResolver(), n = H(null), r = F(), [i, a] = U(null), o = z((e) => {
|
|
3968
3968
|
let n = e.dataTransfer;
|
|
3969
3969
|
if (t && n) {
|
|
3970
3970
|
if (e.type === "dragenter" || e.type === "dragover") {
|
|
@@ -3980,7 +3980,7 @@ var Ia = ({ renderWorkbook: e }) => {
|
|
|
3980
3980
|
}
|
|
3981
3981
|
e.preventDefault();
|
|
3982
3982
|
}
|
|
3983
|
-
}, [t]), s =
|
|
3983
|
+
}, [t]), s = mt((e) => {
|
|
3984
3984
|
e.preventDefault();
|
|
3985
3985
|
let r = i;
|
|
3986
3986
|
if (a(null), r && t && (e.stopPropagation(), e.dataTransfer.files && e.dataTransfer.files.length > 0)) {
|
|
@@ -4024,12 +4024,12 @@ var Ia = ({ renderWorkbook: e }) => {
|
|
|
4024
4024
|
display: "flex",
|
|
4025
4025
|
justifyContent: "center",
|
|
4026
4026
|
alignItems: "center",
|
|
4027
|
-
backgroundColor: (e) =>
|
|
4027
|
+
backgroundColor: (e) => Cn(e.palette.primary.main, .46),
|
|
4028
4028
|
outline: (e) => `2px dashed ${e.palette.primary.main}`,
|
|
4029
4029
|
outlineOffset: "-6px",
|
|
4030
4030
|
borderRadius: 2
|
|
4031
4031
|
},
|
|
4032
|
-
children: G(
|
|
4032
|
+
children: G(mn, {
|
|
4033
4033
|
elevation: 6,
|
|
4034
4034
|
sx: {
|
|
4035
4035
|
display: "flex",
|
|
@@ -4053,7 +4053,7 @@ var Ia = ({ renderWorkbook: e }) => {
|
|
|
4053
4053
|
})
|
|
4054
4054
|
});
|
|
4055
4055
|
}, [i, r]);
|
|
4056
|
-
return G(
|
|
4056
|
+
return G(Jt, { children: [e({
|
|
4057
4057
|
ref: n,
|
|
4058
4058
|
onDragStart: (e) => {
|
|
4059
4059
|
if (e.target.src) {
|
|
@@ -4066,48 +4066,49 @@ var Ia = ({ renderWorkbook: e }) => {
|
|
|
4066
4066
|
onDragOver: o,
|
|
4067
4067
|
onDrop: s
|
|
4068
4068
|
}), c] });
|
|
4069
|
-
},
|
|
4070
|
-
let { workbook: t, setWorkbook: n, refDocumentTitle: r, titleWorkbook: i, setWorkbookTitle: a, isDirty: o, initialCommandAnchor: s, renderWorkbook: c, refSave: l } = e;
|
|
4069
|
+
}, Ra = R((e) => {
|
|
4070
|
+
let { workbook: t, setWorkbook: n, refDocumentTitle: r, titleWorkbook: i, setWorkbookTitle: a, isDirty: o, initialCommandAnchor: s, renderWorkbook: c, refSave: l, host: u } = e;
|
|
4071
4071
|
return W(Te, {
|
|
4072
4072
|
initialAnchor: s,
|
|
4073
|
-
children: W(
|
|
4073
|
+
children: W(Ia, {
|
|
4074
4074
|
workbook: t,
|
|
4075
4075
|
setWorkbook: n,
|
|
4076
4076
|
workbookTitle: i,
|
|
4077
4077
|
isDirty: o,
|
|
4078
4078
|
refSave: l,
|
|
4079
|
-
|
|
4079
|
+
fullscreenTarget: u,
|
|
4080
|
+
children: W(La, { renderWorkbook: c })
|
|
4080
4081
|
})
|
|
4081
4082
|
});
|
|
4082
4083
|
});
|
|
4083
|
-
|
|
4084
|
-
var
|
|
4085
|
-
sort: X("studio:sortDialog", () => import("./
|
|
4086
|
-
hyperlink: X("studio:hyperlinkDialog", () => import("./
|
|
4087
|
-
comments: X("studio:commentsDialog", () => import("./
|
|
4088
|
-
find: X("studio:findReplaceWindow", () => import("./
|
|
4089
|
-
tableNew: X("studio:tableNewDialog", () => import("./
|
|
4090
|
-
namedDetails: X("studio:namedReferenceDialog", () => import("./
|
|
4091
|
-
insertFunction: X("studio:insertFunctionDialog", () => import("./
|
|
4092
|
-
resizeHeader: X("studio:resizeHeaderDialog", () => import("./
|
|
4093
|
-
fillSeries: X("studio:fillSeriesDialog", () => import("./
|
|
4094
|
-
workbookStatistics: X("studio:workbookStatisticsDialog", () => import("./
|
|
4084
|
+
Ra.displayName = "CommandsWrapper";
|
|
4085
|
+
var za = {
|
|
4086
|
+
sort: X("studio:sortDialog", () => import("./DDYeKYs_XIOjhieg.mjs"), { tier: "common" }).load,
|
|
4087
|
+
hyperlink: X("studio:hyperlinkDialog", () => import("./BhUPwPyeqs6QNdfZ.mjs"), { tier: "common" }).load,
|
|
4088
|
+
comments: X("studio:commentsDialog", () => import("./BkCuNLKQc4KN4Ss4.mjs"), { tier: "common" }).load,
|
|
4089
|
+
find: X("studio:findReplaceWindow", () => import("./DkuGZXKiwLKsUN_D.mjs"), { tier: "common" }).load,
|
|
4090
|
+
tableNew: X("studio:tableNewDialog", () => import("./P8cqCkmugGNd2vkm.mjs"), { tier: "common" }).load,
|
|
4091
|
+
namedDetails: X("studio:namedReferenceDialog", () => import("./DkWV5seJEk7n5n4f.mjs")).load,
|
|
4092
|
+
insertFunction: X("studio:insertFunctionDialog", () => import("./26__l2vZsdgD-nJx.mjs"), { tier: "common" }).load,
|
|
4093
|
+
resizeHeader: X("studio:resizeHeaderDialog", () => import("./ONmBo80X5eV6cBBI.mjs")).load,
|
|
4094
|
+
fillSeries: X("studio:fillSeriesDialog", () => import("./CfwoCDjpHNheDLn1.mjs")).load,
|
|
4095
|
+
workbookStatistics: X("studio:workbookStatisticsDialog", () => import("./0RwF0cH7JQ-VqL4E.mjs")).load,
|
|
4095
4096
|
password: X("studio:passwordDialog", () => import("./index.mjs").then((e) => e.t)).load
|
|
4096
|
-
},
|
|
4097
|
-
let { children: t } = e, n =
|
|
4097
|
+
}, Ba = ["find"], Va = R((e) => {
|
|
4098
|
+
let { children: t } = e, n = Ea(), r = n ? n.enqueueSnackbar : () => {}, i = n ? n.closeSnackbar : () => {}, a = H(/* @__PURE__ */ new Set()), o = H(null), s = H(null), [c, l] = U({
|
|
4098
4099
|
label: null,
|
|
4099
4100
|
progress: null
|
|
4100
|
-
}), u = F(), d =
|
|
4101
|
+
}), u = F(), d = En.EmptyObject, f = Gt(d), p = qt(d), m = Wt(d), h = H(!1);
|
|
4101
4102
|
B(() => {
|
|
4102
4103
|
if (h.current) return;
|
|
4103
4104
|
h.current = !0;
|
|
4104
4105
|
let e = window, t = e.requestIdleCallback ?? ((e) => setTimeout(e, 500)), n = e.cancelIdleCallback ?? clearTimeout, r = t(() => {
|
|
4105
|
-
for (let e of
|
|
4106
|
+
for (let e of Ba) f(e, za[e], { prewarm: !0 }).catch(() => {});
|
|
4106
4107
|
});
|
|
4107
4108
|
return () => n(r);
|
|
4108
4109
|
}, []);
|
|
4109
4110
|
let g = H(/* @__PURE__ */ new Set());
|
|
4110
|
-
return G(
|
|
4111
|
+
return G(lt, {
|
|
4111
4112
|
notifier: V(() => {
|
|
4112
4113
|
let e = (e, t) => {
|
|
4113
4114
|
if (t?.onceKey) {
|
|
@@ -4116,14 +4117,14 @@ var Ra = {
|
|
|
4116
4117
|
e.add(t.onceKey), g.current = e;
|
|
4117
4118
|
}
|
|
4118
4119
|
let n = {
|
|
4119
|
-
variant: t?.type ??
|
|
4120
|
+
variant: t?.type ?? st.Info,
|
|
4120
4121
|
anchorOrigin: {
|
|
4121
4122
|
vertical: "top",
|
|
4122
4123
|
horizontal: "center"
|
|
4123
4124
|
},
|
|
4124
4125
|
preventDuplicate: t?.preventDuplicate,
|
|
4125
|
-
persist: t?.persist ?? t?.type ===
|
|
4126
|
-
action: (e) => W(
|
|
4126
|
+
persist: t?.persist ?? t?.type === st.Error,
|
|
4127
|
+
action: (e) => W(un, {
|
|
4127
4128
|
onClick: () => i(e),
|
|
4128
4129
|
children: W(N, { iconKey: "Cancel" })
|
|
4129
4130
|
})
|
|
@@ -4137,8 +4138,8 @@ var Ra = {
|
|
|
4137
4138
|
...t,
|
|
4138
4139
|
label: e
|
|
4139
4140
|
});
|
|
4140
|
-
let r =
|
|
4141
|
-
a.current.delete(n) && (a.current.size > 0 || (
|
|
4141
|
+
let r = ft(() => {
|
|
4142
|
+
a.current.delete(n) && (a.current.size > 0 || (Vt(o.current), s.current = null, l((e) => e.label === null && e.progress === null ? e : {
|
|
4142
4143
|
label: null,
|
|
4143
4144
|
progress: null
|
|
4144
4145
|
})));
|
|
@@ -4149,11 +4150,11 @@ var Ra = {
|
|
|
4149
4150
|
progress: n
|
|
4150
4151
|
});
|
|
4151
4152
|
}, (e) => {
|
|
4152
|
-
s.current = e, typeof e == "string" ?
|
|
4153
|
+
s.current = e, typeof e == "string" ? Ut(o.current, e) : l((t) => ({
|
|
4153
4154
|
...t,
|
|
4154
4155
|
label: e
|
|
4155
4156
|
}));
|
|
4156
|
-
}), i =
|
|
4157
|
+
}), i = Ut(o.current, typeof e == "string" ? e : void 0);
|
|
4157
4158
|
return i ? i.then(() => r) : r;
|
|
4158
4159
|
},
|
|
4159
4160
|
showWindow: (e, t) => {
|
|
@@ -4163,24 +4164,24 @@ var Ra = {
|
|
|
4163
4164
|
onKeyDown: (e) => {
|
|
4164
4165
|
e.isDefaultPrevented() || e.isPropagationStopped() || n?.onKeyDown?.(e);
|
|
4165
4166
|
}
|
|
4166
|
-
}, f(e,
|
|
4167
|
+
}, f(e, za[e], t);
|
|
4167
4168
|
},
|
|
4168
4169
|
showOptions: p,
|
|
4169
4170
|
showInput: m,
|
|
4170
4171
|
showError: (t) => {
|
|
4171
|
-
let n, r =
|
|
4172
|
-
typeof t == "string" ? i = t : t instanceof Error && (n = t, t.message && (i = u(t.message))), t instanceof
|
|
4172
|
+
let n, r = st.Error, i = u("error.unknown");
|
|
4173
|
+
typeof t == "string" ? i = t : t instanceof Error && (n = t, t.message && (i = u(t.message))), t instanceof jn && (r = st.Info), e(i, {
|
|
4173
4174
|
type: r,
|
|
4174
4175
|
enqueueProps: { error: n }
|
|
4175
4176
|
});
|
|
4176
4177
|
}
|
|
4177
|
-
}, n = new
|
|
4178
|
+
}, n = new it();
|
|
4178
4179
|
return n.setOverrides(t), n;
|
|
4179
4180
|
}, [u]),
|
|
4180
|
-
children: [V(() => W(
|
|
4181
|
+
children: [V(() => W(kt, {
|
|
4181
4182
|
ref: o,
|
|
4182
4183
|
autoStart: !1,
|
|
4183
|
-
icon: W(
|
|
4184
|
+
icon: W(At, { sx: {
|
|
4184
4185
|
transform: "scale(0.7)",
|
|
4185
4186
|
marginLeft: "-6px"
|
|
4186
4187
|
} }),
|
|
@@ -4199,8 +4200,8 @@ var Ra = {
|
|
|
4199
4200
|
}), [c.label, c.progress]), t]
|
|
4200
4201
|
});
|
|
4201
4202
|
});
|
|
4202
|
-
|
|
4203
|
-
var
|
|
4203
|
+
Va.displayName = "StudioNotifierProvider";
|
|
4204
|
+
var Ha = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", Ua = R(L((e, t) => {
|
|
4204
4205
|
let { children: n, title: r, taskPanes: i, onSelect: a, selected: o, registry: s = De, style: c, iconsOnly: l, side: u = "right", className: d, ...f } = e, p = u !== "right", m = V(() => i.map((t) => {
|
|
4205
4206
|
let n = s.getRegisteredTaskPane(t);
|
|
4206
4207
|
if (!n) return null;
|
|
@@ -4240,9 +4241,9 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4240
4241
|
})
|
|
4241
4242
|
})
|
|
4242
4243
|
});
|
|
4243
|
-
return W(
|
|
4244
|
+
return W(_n, {
|
|
4244
4245
|
value: t,
|
|
4245
|
-
label: W(
|
|
4246
|
+
label: W(Lt, {
|
|
4246
4247
|
disableInteractive: !0,
|
|
4247
4248
|
title: n.getTitle() ?? "",
|
|
4248
4249
|
placement: "left-start",
|
|
@@ -4279,7 +4280,7 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4279
4280
|
P()
|
|
4280
4281
|
]);
|
|
4281
4282
|
return W(K, {
|
|
4282
|
-
ref:
|
|
4283
|
+
ref: _t(t, () => ({ isTaskPaneStrip: () => !0 }), []),
|
|
4283
4284
|
className: V(() => de("taskpane-strip", d), [d]),
|
|
4284
4285
|
sx: {
|
|
4285
4286
|
paddingLeft: p ? void 0 : "2px",
|
|
@@ -4288,7 +4289,7 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4288
4289
|
...c
|
|
4289
4290
|
},
|
|
4290
4291
|
...f,
|
|
4291
|
-
children: W(
|
|
4292
|
+
children: W(vn, {
|
|
4292
4293
|
orientation: "vertical",
|
|
4293
4294
|
variant: "scrollable",
|
|
4294
4295
|
value: o,
|
|
@@ -4306,9 +4307,9 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4306
4307
|
children: m
|
|
4307
4308
|
})
|
|
4308
4309
|
});
|
|
4309
|
-
})),
|
|
4310
|
+
})), Wa = (e) => {
|
|
4310
4311
|
let { title: t, icon: n, onClose: r, readOnly: i, focused: a, ...o } = e, s = H(null), c = F();
|
|
4311
|
-
return W(
|
|
4312
|
+
return W(an, {
|
|
4312
4313
|
className: de({ "Mui-selected": a }),
|
|
4313
4314
|
sx: {
|
|
4314
4315
|
display: "flex",
|
|
@@ -4323,8 +4324,8 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4323
4324
|
opacity: 1,
|
|
4324
4325
|
transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
|
|
4325
4326
|
},
|
|
4326
|
-
backgroundColor: (e) =>
|
|
4327
|
-
borderBottom: `solid ${
|
|
4327
|
+
backgroundColor: (e) => Cn(e.palette.action.hover, .03),
|
|
4328
|
+
borderBottom: `solid ${Ha} 1px`
|
|
4328
4329
|
},
|
|
4329
4330
|
...o,
|
|
4330
4331
|
children: G(K, {
|
|
@@ -4344,9 +4345,9 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4344
4345
|
paddingLeft: (e) => e.spacing(1)
|
|
4345
4346
|
},
|
|
4346
4347
|
children: t
|
|
4347
|
-
}), W(
|
|
4348
|
+
}), W(Ft, {
|
|
4348
4349
|
label: c("taskPane.close"),
|
|
4349
|
-
children: W(
|
|
4350
|
+
children: W(un, {
|
|
4350
4351
|
"aria-label": "close",
|
|
4351
4352
|
sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
|
|
4352
4353
|
touchRippleRef: s,
|
|
@@ -4361,19 +4362,19 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4361
4362
|
})]
|
|
4362
4363
|
})
|
|
4363
4364
|
});
|
|
4364
|
-
},
|
|
4365
|
-
let { model: n, side: r, ...i } = e, a =
|
|
4365
|
+
}, Ga = L((e, t) => {
|
|
4366
|
+
let { model: n, side: r, ...i } = e, a = Tn();
|
|
4366
4367
|
return W(Pe, {
|
|
4367
4368
|
model: n,
|
|
4368
4369
|
ref: t,
|
|
4369
4370
|
propsFrame: { style: {
|
|
4370
|
-
border: `solid ${
|
|
4371
|
+
border: `solid ${Ha} 1px`,
|
|
4371
4372
|
borderRadius: `${a.shape.borderRadius ?? 4}px`,
|
|
4372
4373
|
marginBottom: `${a.spacing?.(.5) ?? 4}px`
|
|
4373
4374
|
} },
|
|
4374
4375
|
alwaysShowStrip: !0,
|
|
4375
|
-
componentTitle:
|
|
4376
|
-
componentStrip:
|
|
4376
|
+
componentTitle: Wa,
|
|
4377
|
+
componentStrip: Ua,
|
|
4377
4378
|
side: r,
|
|
4378
4379
|
...e,
|
|
4379
4380
|
onOpen: () => {
|
|
@@ -4384,12 +4385,12 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4384
4385
|
},
|
|
4385
4386
|
...i
|
|
4386
4387
|
});
|
|
4387
|
-
}),
|
|
4388
|
+
}), Ka = "_styled-resizer_fdl5y_3", qa = {}, Ja = {
|
|
4388
4389
|
flex: "1 1 100%",
|
|
4389
4390
|
display: "flex",
|
|
4390
4391
|
boxSizing: "border-box"
|
|
4391
|
-
},
|
|
4392
|
-
let { mainElement: n, sidebarElement: r, position: i, persistKey: a, onPositionChange: o, className: s, style: c, taskSide: l = "right", ...u } = e, [d, f] =
|
|
4392
|
+
}, Ya = R(L((e, t) => {
|
|
4393
|
+
let { mainElement: n, sidebarElement: r, position: i, persistKey: a, onPositionChange: o, className: s, style: c, taskSide: l = "right", ...u } = e, [d, f] = yt(a ?? null, qa), p = Tn(), [m, { width: h }] = fe(), g = h > 530 || h === 0, _ = H(null), v, y, b = null, x = 4, S = 13;
|
|
4393
4394
|
g ? b = "m 3.6261898,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.8836498,0 -1.60004965,-0.71626 -1.60004965,-1.59991 0,-0.88365 0.71639985,-1.6000508 1.60004965,-1.6000508 0.88364,0 1.59991,0.7164008 1.59991,1.6000508 m 0,-4.881294 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 -0.8836498,0 -1.60004965,-0.7164 -1.60004965,-1.60004 0,-0.88365 0.71639985,-1.60005 1.60004965,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-4.881226 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 1.14263,3.19996 0.42623015,2.48356 0.42623015,1.59991 0.42623015,0.71626 1.14263,0 2.0262798,0 c 0.88364,0 1.59991,0.71626 1.59991,1.59991" : (b = "M 1.59991,3.62619 C 0.71626,3.62619 0,2.90992 0,2.02628 0,1.1426301 0.71626,0.42623015 1.59991,0.42623015 c 0.88365,0 1.6000508,0.71639995 1.6000508,1.60004985 0,0.88364 -0.7164008,1.59991 -1.6000508,1.59991 m 4.881294,0 c -0.88364,0 -1.60004,-0.71627 -1.60004,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60004,-1.60004985 0.88365,0 1.60005,0.71639995 1.60005,1.60004985 0,0.88364 -0.7164,1.59991 -1.60005,1.59991 m 4.881226,0 c -0.88365,0 -1.60005,-0.71627 -1.60005,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60005,-1.60004985 0.88365,0 1.59991,0.71639995 1.59991,1.60004985 0,0.88364 -0.71626,1.59991 -1.59991,1.59991", x = 13, S = 4);
|
|
4394
4395
|
let C, w = n, T = r, ee = l !== "right", te = g ? "row" : "column", ne = ee && T ? "before" : "after", ie = `${te}:${ne}`, ae = a ? d[ie] : void 0, oe = ae == null ? ((e, t) => {
|
|
4395
4396
|
if (e == null) return "40%";
|
|
@@ -4426,7 +4427,7 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4426
4427
|
position: oe,
|
|
4427
4428
|
minAfter: g ? "280px" : "120px",
|
|
4428
4429
|
splitDirection: g ? "row" : "column"
|
|
4429
|
-
}), W(
|
|
4430
|
+
}), W(ut, {
|
|
4430
4431
|
ref: re([
|
|
4431
4432
|
_,
|
|
4432
4433
|
m,
|
|
@@ -4434,14 +4435,14 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4434
4435
|
]),
|
|
4435
4436
|
className: s,
|
|
4436
4437
|
style: c ? {
|
|
4437
|
-
...
|
|
4438
|
+
...Ja,
|
|
4438
4439
|
...c
|
|
4439
|
-
} :
|
|
4440
|
+
} : Ja,
|
|
4440
4441
|
...u,
|
|
4441
4442
|
...C,
|
|
4442
4443
|
onPositionChange: se,
|
|
4443
4444
|
propsResizer: {
|
|
4444
|
-
className: de("styled-resizer",
|
|
4445
|
+
className: de("styled-resizer", Ka),
|
|
4445
4446
|
style: {
|
|
4446
4447
|
minWidth: g ? "7px" : void 0,
|
|
4447
4448
|
minHeight: g ? void 0 : "6px",
|
|
@@ -4456,21 +4457,21 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4456
4457
|
propsPaneAfter: y
|
|
4457
4458
|
});
|
|
4458
4459
|
}));
|
|
4459
|
-
|
|
4460
|
-
var
|
|
4461
|
-
[
|
|
4462
|
-
[
|
|
4463
|
-
[
|
|
4464
|
-
[
|
|
4465
|
-
[
|
|
4466
|
-
[
|
|
4467
|
-
[
|
|
4468
|
-
},
|
|
4460
|
+
Ya.displayName = "StudioSplitPane";
|
|
4461
|
+
var Xa = E.BuiltInSelectorNames, Za = {
|
|
4462
|
+
[Xa.Whole]: "FormulaMathTrig",
|
|
4463
|
+
[Xa.Number]: "IncreaseDecimal",
|
|
4464
|
+
[Xa.List]: "Menu",
|
|
4465
|
+
[Xa.Date]: "FormulaDateTime",
|
|
4466
|
+
[Xa.DateTime]: "FormulaDateTime",
|
|
4467
|
+
[Xa.Time]: "FormulaDateTime",
|
|
4468
|
+
[Xa.TextLength]: "FormulaText"
|
|
4469
|
+
}, Qa = (e) => {
|
|
4469
4470
|
let t = e.getCondition();
|
|
4470
4471
|
if (!t) return "DataValidation";
|
|
4471
4472
|
let n = t.toJSON();
|
|
4472
|
-
return n.operator === E.BuiltInOperatorNames.Expression ? "FormulaCustom" : typeof n.selector == "string" &&
|
|
4473
|
-
},
|
|
4473
|
+
return n.operator === E.BuiltInOperatorNames.Expression ? "FormulaCustom" : typeof n.selector == "string" && Za[n.selector] || "DataValidation";
|
|
4474
|
+
}, $a = R(({ dataValidation: e, size: t = 28 }) => (Xe(e, "onAnyChange"), W(m, {
|
|
4474
4475
|
className: "sxl-dv-icon",
|
|
4475
4476
|
sx: {
|
|
4476
4477
|
width: "auto",
|
|
@@ -4478,13 +4479,13 @@ var Ya = E.BuiltInSelectorNames, Xa = {
|
|
|
4478
4479
|
height: `${t}px`
|
|
4479
4480
|
},
|
|
4480
4481
|
children: W(N, {
|
|
4481
|
-
iconKey:
|
|
4482
|
+
iconKey: Qa(e),
|
|
4482
4483
|
size: Math.round(.6 * t),
|
|
4483
4484
|
ariaHidden: !0
|
|
4484
4485
|
})
|
|
4485
4486
|
})));
|
|
4486
|
-
|
|
4487
|
-
var
|
|
4487
|
+
$a.displayName = "DataValidationIcon";
|
|
4488
|
+
var eo = (e, t) => {
|
|
4488
4489
|
let n = e.getCondition();
|
|
4489
4490
|
if (!n) return t("dataValidation.anyValue");
|
|
4490
4491
|
let r = n.toJSON();
|
|
@@ -4498,15 +4499,15 @@ var $a = (e, t) => {
|
|
|
4498
4499
|
if (typeof e == "string") return t("dataValidation.titleListFrom", { source: e });
|
|
4499
4500
|
}
|
|
4500
4501
|
return n.toString();
|
|
4501
|
-
},
|
|
4502
|
+
}, to = {
|
|
4502
4503
|
[ye.AlertStyle.Stop]: "ValidationStop",
|
|
4503
4504
|
[ye.AlertStyle.Warning]: "ValidationWarning",
|
|
4504
4505
|
[ye.AlertStyle.Information]: "ValidationInformation"
|
|
4505
|
-
},
|
|
4506
|
+
}, no = {
|
|
4506
4507
|
[ye.AlertStyle.Stop]: Z("dataValidation.alertStop"),
|
|
4507
4508
|
[ye.AlertStyle.Warning]: Z("dataValidation.alertWarning"),
|
|
4508
4509
|
[ye.AlertStyle.Information]: Z("dataValidation.alertInformation")
|
|
4509
|
-
},
|
|
4510
|
+
}, ro = ({ checked: e, onCheckedChange: t, label: n, readOnly: r, children: i }) => G(Yt, {
|
|
4510
4511
|
expanded: e,
|
|
4511
4512
|
onChange: (e, n) => {
|
|
4512
4513
|
r || t(n);
|
|
@@ -4525,15 +4526,15 @@ var $a = (e, t) => {
|
|
|
4525
4526
|
mb: 1
|
|
4526
4527
|
}
|
|
4527
4528
|
},
|
|
4528
|
-
children: [W(
|
|
4529
|
+
children: [W(Zt, {
|
|
4529
4530
|
expandIcon: W(N, { iconKey: "ExpandMore" }),
|
|
4530
4531
|
sx: {
|
|
4531
4532
|
px: 2,
|
|
4532
4533
|
"& .MuiAccordionSummary-content": { my: 0 },
|
|
4533
4534
|
"&.Mui-expanded .MuiAccordionSummary-content": { my: 0 }
|
|
4534
4535
|
},
|
|
4535
|
-
children: W(
|
|
4536
|
-
control: W(
|
|
4536
|
+
children: W(cn, {
|
|
4537
|
+
control: W(tn, {
|
|
4537
4538
|
checked: e,
|
|
4538
4539
|
disabled: r,
|
|
4539
4540
|
onChange: (e) => {
|
|
@@ -4544,7 +4545,7 @@ var $a = (e, t) => {
|
|
|
4544
4545
|
label: n,
|
|
4545
4546
|
onClick: (e) => e.stopPropagation()
|
|
4546
4547
|
})
|
|
4547
|
-
}), W(
|
|
4548
|
+
}), W(Xt, {
|
|
4548
4549
|
sx: {
|
|
4549
4550
|
pl: 2,
|
|
4550
4551
|
pr: 2,
|
|
@@ -4556,10 +4557,10 @@ var $a = (e, t) => {
|
|
|
4556
4557
|
},
|
|
4557
4558
|
children: i
|
|
4558
4559
|
})]
|
|
4559
|
-
}),
|
|
4560
|
+
}), io = R((e) => {
|
|
4560
4561
|
let { dataValidation: t } = e, n = F();
|
|
4561
|
-
|
|
4562
|
-
let r = t.isProtected(), i = t.getRenderHints().includes("list"), a = G(
|
|
4562
|
+
Xe(t, "onAnyChange");
|
|
4563
|
+
let r = t.isProtected(), i = t.getRenderHints().includes("list"), a = G(mn, {
|
|
4563
4564
|
tabIndex: 0,
|
|
4564
4565
|
className: l["editor-panel"],
|
|
4565
4566
|
sx: {
|
|
@@ -4587,7 +4588,7 @@ var $a = (e, t) => {
|
|
|
4587
4588
|
alignItems: "center",
|
|
4588
4589
|
gap: (e) => e.spacing(1.5)
|
|
4589
4590
|
},
|
|
4590
|
-
children: [W(
|
|
4591
|
+
children: [W($a, {
|
|
4591
4592
|
dataValidation: t,
|
|
4592
4593
|
size: 48
|
|
4593
4594
|
}), W(Y, {
|
|
@@ -4596,14 +4597,14 @@ var $a = (e, t) => {
|
|
|
4596
4597
|
minWidth: 0,
|
|
4597
4598
|
wordBreak: "break-word"
|
|
4598
4599
|
},
|
|
4599
|
-
children:
|
|
4600
|
+
children: eo(t, n)
|
|
4600
4601
|
})]
|
|
4601
4602
|
}), W(b, {
|
|
4602
4603
|
item: t,
|
|
4603
4604
|
label: n("dataValidation.applyTo")
|
|
4604
4605
|
})]
|
|
4605
4606
|
}),
|
|
4606
|
-
W(
|
|
4607
|
+
W(gr, {
|
|
4607
4608
|
selectorTitle: n("dataValidation.allow"),
|
|
4608
4609
|
showIncludeBlanks: !0,
|
|
4609
4610
|
condition: t.getCondition(),
|
|
@@ -4625,8 +4626,8 @@ var $a = (e, t) => {
|
|
|
4625
4626
|
borderColor: "divider",
|
|
4626
4627
|
borderRadius: 1
|
|
4627
4628
|
},
|
|
4628
|
-
children: W(
|
|
4629
|
-
control: W(
|
|
4629
|
+
children: W(cn, {
|
|
4630
|
+
control: W(tn, {
|
|
4630
4631
|
checked: !t.isHideDropdown(),
|
|
4631
4632
|
disabled: r,
|
|
4632
4633
|
onChange: (e) => t.setHideDropdown(!e.target.checked)
|
|
@@ -4634,12 +4635,12 @@ var $a = (e, t) => {
|
|
|
4634
4635
|
label: n("dataValidation.inCellDropdown")
|
|
4635
4636
|
})
|
|
4636
4637
|
}),
|
|
4637
|
-
G(
|
|
4638
|
+
G(ro, {
|
|
4638
4639
|
checked: t.isShowPromptMessage(),
|
|
4639
4640
|
onCheckedChange: (e) => t.setShowPromptMessage(e),
|
|
4640
4641
|
label: n("dataValidation.prompt"),
|
|
4641
4642
|
readOnly: r,
|
|
4642
|
-
children: [W(
|
|
4643
|
+
children: [W(yn, {
|
|
4643
4644
|
size: "small",
|
|
4644
4645
|
label: n("dataValidation.title"),
|
|
4645
4646
|
value: t.getPromptTitle(),
|
|
@@ -4648,7 +4649,7 @@ var $a = (e, t) => {
|
|
|
4648
4649
|
fullWidth: !0,
|
|
4649
4650
|
slotProps: { htmlInput: { maxLength: 32 } },
|
|
4650
4651
|
sx: { backgroundColor: "background.paper" }
|
|
4651
|
-
}), W(
|
|
4652
|
+
}), W(yn, {
|
|
4652
4653
|
size: "small",
|
|
4653
4654
|
label: n("dataValidation.message"),
|
|
4654
4655
|
value: t.getPromptMessage(),
|
|
@@ -4661,18 +4662,18 @@ var $a = (e, t) => {
|
|
|
4661
4662
|
sx: { backgroundColor: "background.paper" }
|
|
4662
4663
|
})]
|
|
4663
4664
|
}),
|
|
4664
|
-
G(
|
|
4665
|
+
G(ro, {
|
|
4665
4666
|
checked: t.isShowAlertMessage(),
|
|
4666
4667
|
onCheckedChange: (e) => t.setShowAlertMessage(e),
|
|
4667
4668
|
label: n("dataValidation.alert"),
|
|
4668
4669
|
readOnly: r,
|
|
4669
4670
|
children: [
|
|
4670
|
-
G(
|
|
4671
|
+
G(sn, {
|
|
4671
4672
|
fullWidth: !0,
|
|
4672
4673
|
size: "small",
|
|
4673
4674
|
disabled: r,
|
|
4674
4675
|
sx: { backgroundColor: "background.paper" },
|
|
4675
|
-
children: [W(
|
|
4676
|
+
children: [W(dn, { children: n("dataValidation.alertStyle") }), W(J, {
|
|
4676
4677
|
value: t.getAlertStyle(),
|
|
4677
4678
|
label: n("dataValidation.alertStyle"),
|
|
4678
4679
|
onChange: (e) => t.setAlertStyle(e.target.value),
|
|
@@ -4683,23 +4684,23 @@ var $a = (e, t) => {
|
|
|
4683
4684
|
gap: 1
|
|
4684
4685
|
},
|
|
4685
4686
|
children: [W(N, {
|
|
4686
|
-
iconKey:
|
|
4687
|
+
iconKey: to[e],
|
|
4687
4688
|
size: 18,
|
|
4688
4689
|
ariaHidden: !0
|
|
4689
|
-
}), n(
|
|
4690
|
+
}), n(no[e])]
|
|
4690
4691
|
}),
|
|
4691
|
-
children: Object.keys(
|
|
4692
|
+
children: Object.keys(to).map((e) => G(q, {
|
|
4692
4693
|
value: e,
|
|
4693
4694
|
sx: { gap: 1 },
|
|
4694
4695
|
children: [W(N, {
|
|
4695
|
-
iconKey:
|
|
4696
|
+
iconKey: to[e],
|
|
4696
4697
|
size: 18,
|
|
4697
4698
|
ariaHidden: !0
|
|
4698
|
-
}), n(
|
|
4699
|
+
}), n(no[e])]
|
|
4699
4700
|
}, e))
|
|
4700
4701
|
})]
|
|
4701
4702
|
}),
|
|
4702
|
-
W(
|
|
4703
|
+
W(yn, {
|
|
4703
4704
|
size: "small",
|
|
4704
4705
|
label: n("dataValidation.title"),
|
|
4705
4706
|
value: t.getAlertTitle(),
|
|
@@ -4709,7 +4710,7 @@ var $a = (e, t) => {
|
|
|
4709
4710
|
slotProps: { htmlInput: { maxLength: 32 } },
|
|
4710
4711
|
sx: { backgroundColor: "background.paper" }
|
|
4711
4712
|
}),
|
|
4712
|
-
W(
|
|
4713
|
+
W(yn, {
|
|
4713
4714
|
size: "small",
|
|
4714
4715
|
label: n("dataValidation.message"),
|
|
4715
4716
|
value: t.getAlertMessage(),
|
|
@@ -4725,13 +4726,13 @@ var $a = (e, t) => {
|
|
|
4725
4726
|
})
|
|
4726
4727
|
]
|
|
4727
4728
|
});
|
|
4728
|
-
return W(
|
|
4729
|
+
return W(In.Provider, {
|
|
4729
4730
|
value: t,
|
|
4730
4731
|
children: a
|
|
4731
4732
|
});
|
|
4732
4733
|
});
|
|
4733
|
-
|
|
4734
|
-
var
|
|
4734
|
+
io.displayName = "DataValidationEditorPanel";
|
|
4735
|
+
var ao = ({ children: e }) => W(K, {
|
|
4735
4736
|
sx: {
|
|
4736
4737
|
display: "inline-flex",
|
|
4737
4738
|
alignItems: "center",
|
|
@@ -4746,9 +4747,9 @@ var io = ({ children: e }) => W(K, {
|
|
|
4746
4747
|
variant: "caption",
|
|
4747
4748
|
children: e
|
|
4748
4749
|
})
|
|
4749
|
-
}),
|
|
4750
|
+
}), oo = R(({ item: e }) => {
|
|
4750
4751
|
let t = F();
|
|
4751
|
-
|
|
4752
|
+
Xe(e, "onAnyChange");
|
|
4752
4753
|
let n = [];
|
|
4753
4754
|
return e.isShowPromptMessage() && e.getPromptTitle() && n.push(t("dataValidation.promptPrefix", { title: e.getPromptTitle() })), e.getCondition() && (e.isShowAlertMessage() ? e.getAlertStyle() === ye.AlertStyle.Warning ? n.push(t("dataValidation.alertWarning")) : e.getAlertStyle() === ye.AlertStyle.Information && n.push(t("dataValidation.alertInformation")) : n.push(t("dataValidation.badgeNoAlert"))), e.isHideDropdown() && e.getRenderHints().includes("list") && n.push(t("dataValidation.badgeDropdownHidden")), n.length === 0 ? null : W(K, {
|
|
4754
4755
|
sx: {
|
|
@@ -4756,17 +4757,17 @@ var io = ({ children: e }) => W(K, {
|
|
|
4756
4757
|
flexWrap: "wrap",
|
|
4757
4758
|
gap: .5
|
|
4758
4759
|
},
|
|
4759
|
-
children: n.map((e, t) => W(
|
|
4760
|
+
children: n.map((e, t) => W(ao, { children: e }, t))
|
|
4760
4761
|
});
|
|
4761
4762
|
});
|
|
4762
|
-
|
|
4763
|
-
var
|
|
4763
|
+
oo.displayName = "DataValidationCardBody";
|
|
4764
|
+
var so = R(({ item: e }) => W(b, {
|
|
4764
4765
|
item: e,
|
|
4765
4766
|
label: F()("dataValidation.applyTo"),
|
|
4766
4767
|
helperText: null
|
|
4767
4768
|
}));
|
|
4768
|
-
|
|
4769
|
-
var
|
|
4769
|
+
so.displayName = "DataValidationCardRanges";
|
|
4770
|
+
var co = {
|
|
4770
4771
|
key: "data-validation",
|
|
4771
4772
|
messageKeys: {
|
|
4772
4773
|
none: Z("dataValidation.none"),
|
|
@@ -4797,32 +4798,32 @@ var so = {
|
|
|
4797
4798
|
applySeed: (e, t) => {
|
|
4798
4799
|
e.update(t);
|
|
4799
4800
|
},
|
|
4800
|
-
getCardTitle:
|
|
4801
|
-
CardMedia: ({ item: e }) => W(
|
|
4801
|
+
getCardTitle: eo,
|
|
4802
|
+
CardMedia: ({ item: e }) => W($a, {
|
|
4802
4803
|
dataValidation: e,
|
|
4803
4804
|
size: 32
|
|
4804
4805
|
}),
|
|
4805
|
-
CardSubtitle:
|
|
4806
|
-
CardBody:
|
|
4807
|
-
EditorBody: ({ item: e }) => W(
|
|
4808
|
-
},
|
|
4806
|
+
CardSubtitle: so,
|
|
4807
|
+
CardBody: oo,
|
|
4808
|
+
EditorBody: ({ item: e }) => W(io, { dataValidation: e })
|
|
4809
|
+
}, lo = R(L((e, t) => {
|
|
4809
4810
|
let { workbook: n, args: r, ...i } = e;
|
|
4810
4811
|
return W(o, {
|
|
4811
4812
|
ref: t,
|
|
4812
4813
|
workbook: n,
|
|
4813
|
-
descriptor:
|
|
4814
|
+
descriptor: co,
|
|
4814
4815
|
args: r,
|
|
4815
4816
|
dragReorder: !0,
|
|
4816
4817
|
...i
|
|
4817
4818
|
});
|
|
4818
4819
|
}));
|
|
4819
|
-
|
|
4820
|
+
lo.displayName = "DataValidationDetailsPanel", ae(), rt.register("plugin-table", { icons: {} }), De.registerTaskPane({
|
|
4820
4821
|
key: "dataValidationDetails",
|
|
4821
4822
|
getTitle: () => "Data Validation",
|
|
4822
4823
|
getIcon: () => "DataValidation",
|
|
4823
4824
|
component: (e) => {
|
|
4824
4825
|
let { model: t, entryKey: n, frame: r, args: i, ref: a, ...o } = e;
|
|
4825
|
-
return W(
|
|
4826
|
+
return W(lo, {
|
|
4826
4827
|
ref: a,
|
|
4827
4828
|
workbook: t,
|
|
4828
4829
|
args: i,
|
|
@@ -4833,9 +4834,9 @@ co.displayName = "DataValidationDetailsPanel", ae(), nt.register("plugin-table",
|
|
|
4833
4834
|
key: "conditionalFormatDetails",
|
|
4834
4835
|
getTitle: () => "Conditional Formatting",
|
|
4835
4836
|
getIcon: () => "FormatPaint",
|
|
4836
|
-
component:
|
|
4837
|
+
component: Xr
|
|
4837
4838
|
}, !0), C(), te(), ce(), le(), n();
|
|
4838
|
-
var
|
|
4839
|
+
var uo = () => {
|
|
4839
4840
|
let e, t, n = new Promise((n, r) => {
|
|
4840
4841
|
e = n, t = r;
|
|
4841
4842
|
}), r = {
|
|
@@ -4849,18 +4850,18 @@ var lo = () => {
|
|
|
4849
4850
|
}
|
|
4850
4851
|
};
|
|
4851
4852
|
return n.catch(() => {}), r;
|
|
4852
|
-
},
|
|
4853
|
+
}, fo = (e, t) => {
|
|
4853
4854
|
if (!e) return {};
|
|
4854
4855
|
let { colorSchemes: n, ...r } = e, i = n?.[t ? "dark" : "light"];
|
|
4855
|
-
return i && typeof i == "object" ?
|
|
4856
|
-
},
|
|
4857
|
-
let { host: n, scopeClass: r, square: i, elevation: a, variant: o, onWorkbookLoad: s, onDocumentError: c, renderDocumentError: l = S, propsDocumentError: u, propsTaskPaneArea: d, renderTaskPaneArea: f =
|
|
4856
|
+
return i && typeof i == "object" ? En.deepMerge(r, i) : r;
|
|
4857
|
+
}, po = "taskPanePosition", mo = R(L((e, t) => {
|
|
4858
|
+
let { host: n, scopeClass: r, square: i, elevation: a, variant: o, onWorkbookLoad: s, onDocumentError: c, renderDocumentError: l = S, propsDocumentError: u, propsTaskPaneArea: d, renderTaskPaneArea: f = ho, taskPaneSide: p = "right", onKeyDown: m, workbook: g, onWorkbookChange: _, logo: v, topLeft: y, topRight: b, muiTheme: C, tokens: T, cssBaseline: te, autoFocus: ae = !1, title: se, onDirtyChange: ce, propsDocumentTitle: le, renderDocumentLoading: ue = oe, propsDocumentLoading: de, propsWorkbook: fe, showFormulaBar: pe, propsFormulaBar: me, renderFormulaBar: he, editable: ge, showStatusBar: _e, propsStatusBar: ve, renderStatusBar: E, propsToolbar: D, renderToolbar: ye } = e, O = H(null), be = H(null), xe = H(null), Se = mt(() => {
|
|
4858
4859
|
xe.current?.getNamedCollectionEditorElement?.()?.focus?.();
|
|
4859
|
-
}, []), Ce =
|
|
4860
|
+
}, []), Ce = mt(c ?? (() => {}), [c]), we = mt(ce ?? (() => {}), [ce]), Te = le?.placeHolder, [Ee] = yt(Le.Mode, Ie[Le.Mode]), { themeMode: De } = bt({ mode: Ee ?? void 0 }), [Oe] = yt(ot.Active, null), ke = H(Oe);
|
|
4860
4861
|
ke.current = Oe;
|
|
4861
|
-
let Ae =
|
|
4862
|
-
light:
|
|
4863
|
-
dark:
|
|
4862
|
+
let Ae = xt(), je = V(() => ({
|
|
4863
|
+
light: zt(!1, En.deepMerge(fo(C, !1), h(Ae?.light))),
|
|
4864
|
+
dark: zt(!0, En.deepMerge(fo(C, !0), h(Ae?.dark)))
|
|
4864
4865
|
}), [
|
|
4865
4866
|
C,
|
|
4866
4867
|
Ae?.light,
|
|
@@ -4869,42 +4870,42 @@ var lo = () => {
|
|
|
4869
4870
|
je,
|
|
4870
4871
|
r,
|
|
4871
4872
|
T
|
|
4872
|
-
]), Pe = V(() =>
|
|
4873
|
+
]), Pe = V(() => ze("sxl-defaults", `.${r}`), [r]), He = Ye(), [Ue, We] = U(() => g ?? null);
|
|
4873
4874
|
B(() => {
|
|
4874
|
-
|
|
4875
|
+
We(g ?? null);
|
|
4875
4876
|
}, [g]);
|
|
4876
|
-
let [
|
|
4877
|
-
|
|
4878
|
-
let
|
|
4877
|
+
let [Ge, Ke] = U(0), qe = H(null);
|
|
4878
|
+
qe.current ||= uo();
|
|
4879
|
+
let Je = Qe(Ue, {
|
|
4879
4880
|
io: k,
|
|
4880
|
-
defaultTheme:
|
|
4881
|
-
reloadKey:
|
|
4882
|
-
}), A =
|
|
4881
|
+
defaultTheme: He.getDefaultTheme(),
|
|
4882
|
+
reloadKey: Ge
|
|
4883
|
+
}), A = Je.status === "loaded" ? Je.workbook : null, j = V(() => Je.status === "error" ? {
|
|
4883
4884
|
status: "error",
|
|
4884
|
-
error:
|
|
4885
|
-
} :
|
|
4885
|
+
error: Je.error
|
|
4886
|
+
} : Je.status === "loaded" ? {
|
|
4886
4887
|
status: "loaded",
|
|
4887
|
-
workbook:
|
|
4888
|
-
} : { status: "loading" }, [
|
|
4888
|
+
workbook: Je.workbook
|
|
4889
|
+
} : { status: "loading" }, [Je]);
|
|
4889
4890
|
B(() => {
|
|
4890
|
-
|
|
4891
|
-
}, [
|
|
4892
|
-
j.status === "loaded" ?
|
|
4891
|
+
qe.current.settled && (qe.current = uo());
|
|
4892
|
+
}, [Ue, Ge]), B(() => {
|
|
4893
|
+
j.status === "loaded" ? qe.current.resolve(j.workbook) : j.status === "error" && (Ce?.(j.error), qe.current.reject(j.error));
|
|
4893
4894
|
}, [j]);
|
|
4894
|
-
let [M,
|
|
4895
|
-
A && !M &&
|
|
4896
|
-
let
|
|
4897
|
-
|
|
4898
|
-
let
|
|
4899
|
-
|
|
4900
|
-
let
|
|
4901
|
-
let t =
|
|
4902
|
-
t &&
|
|
4895
|
+
let [M, it] = U(null);
|
|
4896
|
+
A && !M && it(A);
|
|
4897
|
+
let at = A && M && A !== M ? A : null, st = H(at);
|
|
4898
|
+
st.current = at;
|
|
4899
|
+
let lt = H(M);
|
|
4900
|
+
lt.current = M;
|
|
4901
|
+
let ut = H([]), ft = z((e) => {
|
|
4902
|
+
let t = lt.current;
|
|
4903
|
+
t && ut.current.push(t), We(e);
|
|
4903
4904
|
}, []);
|
|
4904
4905
|
B(() => {
|
|
4905
|
-
let e =
|
|
4906
|
+
let e = ut.current;
|
|
4906
4907
|
if (e.length !== 0) {
|
|
4907
|
-
|
|
4908
|
+
ut.current = e.filter((e) => e === M);
|
|
4908
4909
|
for (let t = 0; t < e.length; t++) {
|
|
4909
4910
|
let n = e[t];
|
|
4910
4911
|
if (n !== M) try {
|
|
@@ -4915,8 +4916,8 @@ var lo = () => {
|
|
|
4915
4916
|
}
|
|
4916
4917
|
}
|
|
4917
4918
|
}, [M]);
|
|
4918
|
-
let
|
|
4919
|
-
|
|
4919
|
+
let pt = ge ? null : M, ht = Ze(), gt = V(() => pt ? Be(pt.getSelectedSheet(), { referenceMode: ht }) : null, [pt, ht]), P = ge ?? gt, vt = H(P);
|
|
4920
|
+
vt.current = P, B(() => {
|
|
4920
4921
|
if (!P) return;
|
|
4921
4922
|
let e = P.getSession();
|
|
4922
4923
|
return P.subscribe(() => {
|
|
@@ -4924,43 +4925,43 @@ var lo = () => {
|
|
|
4924
4925
|
e = P.getSession(), t && !e && t.getActiveEditorId() === "formula-bar" && xe.current?.contains?.(document.activeElement) && O.current?.focus();
|
|
4925
4926
|
});
|
|
4926
4927
|
}, [P]);
|
|
4927
|
-
let F =
|
|
4928
|
-
|
|
4929
|
-
let L = z(() =>
|
|
4930
|
-
|
|
4931
|
-
let [R,
|
|
4928
|
+
let F = et(M), { isDirty: I, saveState: St } = tt(M, k), Ct = $e(M), wt = H(St), Tt = H(null);
|
|
4929
|
+
wt.current = St;
|
|
4930
|
+
let L = z(() => wt.current?.isDirty() ?? !1, []), Et = H(j);
|
|
4931
|
+
Et.current = j;
|
|
4932
|
+
let [R, Dt] = U(null), Ot = se ?? le?.title, [kt, At] = U(null);
|
|
4932
4933
|
B(() => {
|
|
4933
|
-
|
|
4934
|
+
At(null);
|
|
4934
4935
|
}, [M]);
|
|
4935
|
-
let
|
|
4936
|
+
let Nt = Ot ?? kt ?? F ?? "";
|
|
4936
4937
|
B(() => {
|
|
4937
4938
|
we?.(I);
|
|
4938
4939
|
}, [I]);
|
|
4939
|
-
let
|
|
4940
|
+
let Pt = mt(_ ?? (() => {}), [_]);
|
|
4940
4941
|
B(() => {
|
|
4941
|
-
|
|
4942
|
+
Pt?.(A);
|
|
4942
4943
|
}, [A]);
|
|
4943
|
-
let
|
|
4944
|
-
|
|
4945
|
-
let
|
|
4944
|
+
let Ft = H(A);
|
|
4945
|
+
Ft.current = A, Xe(M, "onViewChange");
|
|
4946
|
+
let Lt = V(() => W(jt, {
|
|
4946
4947
|
groupKey: "helpOptions",
|
|
4947
4948
|
disableHover: !0,
|
|
4948
4949
|
sx: { padding: "0" },
|
|
4949
4950
|
propsButton: { sx: { maxHeight: "22px" } }
|
|
4950
|
-
}), []), [
|
|
4951
|
-
|
|
4951
|
+
}), []), [Rt, Bt] = U(null), Vt = z((e) => {
|
|
4952
|
+
Bt(e);
|
|
4952
4953
|
}, []);
|
|
4953
4954
|
B(() => {
|
|
4954
|
-
|
|
4955
|
+
rt.prefetch().catch((e) => {
|
|
4955
4956
|
console.warn("Icons could not be loaded:", e);
|
|
4956
4957
|
});
|
|
4957
4958
|
}, []);
|
|
4958
|
-
let
|
|
4959
|
-
|
|
4960
|
-
let
|
|
4959
|
+
let Ht = H(null);
|
|
4960
|
+
Ht.current ||= uo();
|
|
4961
|
+
let Ut = H(null), Wt = z(() => Ut.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? Ht.current.promise, []), Gt = mt(async (e) => {
|
|
4961
4962
|
let t = ke.current;
|
|
4962
|
-
t && t !==
|
|
4963
|
-
}, []),
|
|
4963
|
+
t && t !== On.getActive() && await On.setActive(t), await nt.DefaultCommandCatalogService.prefetch(t ?? void 0), Dt(e), Ut.current = e.source, Ht.current.settled || Ht.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), s?.(e);
|
|
4964
|
+
}, []), Kt = H(null), qt = z((e) => {
|
|
4964
4965
|
let t = null, n = {
|
|
4965
4966
|
readOnly: !0,
|
|
4966
4967
|
...le
|
|
@@ -4972,15 +4973,15 @@ var lo = () => {
|
|
|
4972
4973
|
...le?.style
|
|
4973
4974
|
},
|
|
4974
4975
|
workbook: e.workbook ?? O.current,
|
|
4975
|
-
ref:
|
|
4976
|
-
title:
|
|
4976
|
+
ref: Kt,
|
|
4977
|
+
title: Nt,
|
|
4977
4978
|
modified: I,
|
|
4978
|
-
encrypted:
|
|
4979
|
+
encrypted: Ct,
|
|
4979
4980
|
placeHolder: Te,
|
|
4980
4981
|
onTitleChange: (e) => {
|
|
4981
|
-
|
|
4982
|
+
At(e), le?.onTitleChange?.(e);
|
|
4982
4983
|
}
|
|
4983
|
-
})), W(
|
|
4984
|
+
})), W(Aa, {
|
|
4984
4985
|
...e,
|
|
4985
4986
|
logo: v,
|
|
4986
4987
|
mainElement: t,
|
|
@@ -4989,9 +4990,9 @@ var lo = () => {
|
|
|
4989
4990
|
});
|
|
4990
4991
|
}, [
|
|
4991
4992
|
v,
|
|
4992
|
-
|
|
4993
|
+
Nt,
|
|
4993
4994
|
I,
|
|
4994
|
-
|
|
4995
|
+
Ct,
|
|
4995
4996
|
le,
|
|
4996
4997
|
y,
|
|
4997
4998
|
b
|
|
@@ -5004,11 +5005,11 @@ var lo = () => {
|
|
|
5004
5005
|
e.removeEventListener("wheel", t);
|
|
5005
5006
|
};
|
|
5006
5007
|
}, [R]);
|
|
5007
|
-
let [
|
|
5008
|
+
let [Yt, Xt] = U(null);
|
|
5008
5009
|
B(() => {
|
|
5009
|
-
|
|
5010
|
+
Xt(R?.source?.getCommandScope?.() ?? null);
|
|
5010
5011
|
}, [R]);
|
|
5011
|
-
let
|
|
5012
|
+
let Zt = V(() => ({
|
|
5012
5013
|
"& .SnackbarContainer-root": { position: "absolute !important" },
|
|
5013
5014
|
"& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
|
|
5014
5015
|
"& .notistack-Snackbar": { minWidth: "unset" },
|
|
@@ -5021,11 +5022,11 @@ var lo = () => {
|
|
|
5021
5022
|
whiteSpace: "pre-wrap"
|
|
5022
5023
|
},
|
|
5023
5024
|
"*": { userSelect: "none" }
|
|
5024
|
-
}), []), [
|
|
5025
|
+
}), []), [Qt, $t] = U(null), [, en] = yt(null, !1);
|
|
5025
5026
|
B(() => {
|
|
5026
|
-
|
|
5027
|
-
}, [
|
|
5028
|
-
let
|
|
5027
|
+
en(Qt != null);
|
|
5028
|
+
}, [Qt, en]);
|
|
5029
|
+
let tn = z((e) => f({
|
|
5029
5030
|
model: M,
|
|
5030
5031
|
side: p,
|
|
5031
5032
|
...e,
|
|
@@ -5034,32 +5035,32 @@ var lo = () => {
|
|
|
5034
5035
|
M,
|
|
5035
5036
|
p,
|
|
5036
5037
|
d
|
|
5037
|
-
]),
|
|
5038
|
-
|
|
5038
|
+
]), nn = H(n);
|
|
5039
|
+
nn.current = n, _t(t, () => ({
|
|
5039
5040
|
isStudioElement: () => !0,
|
|
5040
5041
|
save: (e) => {
|
|
5041
|
-
let t =
|
|
5042
|
+
let t = Tt.current;
|
|
5042
5043
|
return t ? t(e) : Promise.reject(/* @__PURE__ */ Error("The studio cannot save: no workbook, or the backing store cannot write."));
|
|
5043
5044
|
},
|
|
5044
5045
|
getWorkbookElement: () => O.current,
|
|
5045
|
-
getWorkbook: () =>
|
|
5046
|
-
isDirty: () =>
|
|
5047
|
-
getEditable: () =>
|
|
5046
|
+
getWorkbook: () => Ft.current ?? null,
|
|
5047
|
+
isDirty: () => wt.current?.isDirty() ?? !1,
|
|
5048
|
+
getEditable: () => vt.current,
|
|
5048
5049
|
getFormulaBarElement: () => xe.current ?? null,
|
|
5049
5050
|
focus: () => O.current?.focus(),
|
|
5050
|
-
whenReady: () => (
|
|
5051
|
-
getWorkbookState: () =>
|
|
5052
|
-
retry: () =>
|
|
5051
|
+
whenReady: () => (qe.current ||= uo(), qe.current.promise),
|
|
5052
|
+
getWorkbookState: () => Et.current,
|
|
5053
|
+
retry: () => Ke((e) => e + 1)
|
|
5053
5054
|
}), [], n);
|
|
5054
|
-
let
|
|
5055
|
-
t ===
|
|
5056
|
-
t ===
|
|
5055
|
+
let an = H(!1), on = mt((e, t) => {
|
|
5056
|
+
t === st.current && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
5057
|
+
t === st.current && (an.current = nn.current?.contains(document.activeElement) ?? !0, it(t), Gt(e));
|
|
5057
5058
|
}));
|
|
5058
5059
|
}, []);
|
|
5059
5060
|
B(() => {
|
|
5060
|
-
|
|
5061
|
+
an.current && (an.current = !1, O.current?.focus());
|
|
5061
5062
|
}, [M]);
|
|
5062
|
-
let
|
|
5063
|
+
let sn = z(() => W(Jt, {}), []), cn = z((e) => {
|
|
5063
5064
|
let { ref: t, ...n } = e, r = Me ? je.dark : je.light, s = j.status === "error" ? l({
|
|
5064
5065
|
...u,
|
|
5065
5066
|
style: {
|
|
@@ -5069,7 +5070,7 @@ var lo = () => {
|
|
|
5069
5070
|
},
|
|
5070
5071
|
error: j.error
|
|
5071
5072
|
}) : null;
|
|
5072
|
-
if (s && !M) return W(
|
|
5073
|
+
if (s && !M) return W(mn, {
|
|
5073
5074
|
style: {
|
|
5074
5075
|
width: "100%",
|
|
5075
5076
|
height: "100%",
|
|
@@ -5082,7 +5083,7 @@ var lo = () => {
|
|
|
5082
5083
|
});
|
|
5083
5084
|
let c = null;
|
|
5084
5085
|
if (M) {
|
|
5085
|
-
let e = M, i = e.getView(), a = pe ?? i?.isShowFormulaBar(), o = _e ?? i?.isShowStatusBar(), s = R?.source ?? O.current, l = (ye ??
|
|
5086
|
+
let e = M, i = e.getView(), a = pe ?? i?.isShowFormulaBar(), o = _e ?? i?.isShowStatusBar(), s = R?.source ?? O.current, l = (ye ?? qt)({
|
|
5086
5087
|
workbook: s,
|
|
5087
5088
|
...D
|
|
5088
5089
|
}), u = a ? (he ?? ne)({
|
|
@@ -5101,7 +5102,7 @@ var lo = () => {
|
|
|
5101
5102
|
...me?.propsNamedCollectionEditor
|
|
5102
5103
|
}
|
|
5103
5104
|
}) : null, d = o ? (E ?? ee)({
|
|
5104
|
-
childrenEnd:
|
|
5105
|
+
childrenEnd: Lt,
|
|
5105
5106
|
...ve
|
|
5106
5107
|
}) : null, f = (e, r) => W(w, {
|
|
5107
5108
|
...fe,
|
|
@@ -5111,12 +5112,12 @@ var lo = () => {
|
|
|
5111
5112
|
editable: r ? void 0 : P ?? void 0,
|
|
5112
5113
|
focusNameBox: r ? void 0 : Se,
|
|
5113
5114
|
ref: r ? be : re([t, O]),
|
|
5114
|
-
onWorkbookLoad: r ? (t) =>
|
|
5115
|
+
onWorkbookLoad: r ? (t) => on(t, e) : Gt,
|
|
5115
5116
|
onKeyDown: (e) => {
|
|
5116
5117
|
m?.(e);
|
|
5117
5118
|
},
|
|
5118
5119
|
propsWorkbookLoading: de,
|
|
5119
|
-
renderWorkbookLoading:
|
|
5120
|
+
renderWorkbookLoading: sn,
|
|
5120
5121
|
style: r ? {
|
|
5121
5122
|
...fe?.style,
|
|
5122
5123
|
position: "absolute",
|
|
@@ -5137,7 +5138,7 @@ var lo = () => {
|
|
|
5137
5138
|
flex: "1 1 100%",
|
|
5138
5139
|
minWidth: 0,
|
|
5139
5140
|
minHeight: 0,
|
|
5140
|
-
...
|
|
5141
|
+
...Ve({
|
|
5141
5142
|
window: r.palette.background.default,
|
|
5142
5143
|
windowText: r.palette.text.primary
|
|
5143
5144
|
})
|
|
@@ -5145,12 +5146,12 @@ var lo = () => {
|
|
|
5145
5146
|
children: [
|
|
5146
5147
|
l,
|
|
5147
5148
|
u,
|
|
5148
|
-
W(
|
|
5149
|
+
W(Ya, {
|
|
5149
5150
|
taskSide: p,
|
|
5150
|
-
persistKey:
|
|
5151
|
-
sidebarElement:
|
|
5152
|
-
scope:
|
|
5153
|
-
children:
|
|
5151
|
+
persistKey: po,
|
|
5152
|
+
sidebarElement: Qt ? W(nt.CommandScopeProvider, {
|
|
5153
|
+
scope: Yt,
|
|
5154
|
+
children: Qt
|
|
5154
5155
|
}) : void 0,
|
|
5155
5156
|
mainElement: G("div", {
|
|
5156
5157
|
style: {
|
|
@@ -5161,8 +5162,8 @@ var lo = () => {
|
|
|
5161
5162
|
minWidth: 0,
|
|
5162
5163
|
minHeight: 0
|
|
5163
5164
|
},
|
|
5164
|
-
children: [[f(M, !1),
|
|
5165
|
-
ref:
|
|
5165
|
+
children: [[f(M, !1), at ? f(at, !0) : null], W(K, {
|
|
5166
|
+
ref: Vt,
|
|
5166
5167
|
sx: {
|
|
5167
5168
|
position: "absolute",
|
|
5168
5169
|
top: "10%",
|
|
@@ -5180,8 +5181,8 @@ var lo = () => {
|
|
|
5180
5181
|
});
|
|
5181
5182
|
}
|
|
5182
5183
|
let d = R ? null : ue({ ...de });
|
|
5183
|
-
return G(
|
|
5184
|
-
sx:
|
|
5184
|
+
return G(mn, {
|
|
5185
|
+
sx: Zt,
|
|
5185
5186
|
style: {
|
|
5186
5187
|
width: "100%",
|
|
5187
5188
|
height: "100%",
|
|
@@ -5197,7 +5198,7 @@ var lo = () => {
|
|
|
5197
5198
|
variant: o,
|
|
5198
5199
|
children: [
|
|
5199
5200
|
c,
|
|
5200
|
-
s ? W(
|
|
5201
|
+
s ? W(mn, {
|
|
5201
5202
|
style: {
|
|
5202
5203
|
position: "absolute",
|
|
5203
5204
|
inset: 0,
|
|
@@ -5223,24 +5224,24 @@ var lo = () => {
|
|
|
5223
5224
|
}, [
|
|
5224
5225
|
j,
|
|
5225
5226
|
M,
|
|
5226
|
-
|
|
5227
|
+
at,
|
|
5227
5228
|
R,
|
|
5228
|
-
|
|
5229
|
+
Nt,
|
|
5229
5230
|
ue,
|
|
5230
5231
|
de,
|
|
5231
|
-
|
|
5232
|
+
sn,
|
|
5232
5233
|
fe,
|
|
5233
5234
|
i,
|
|
5234
5235
|
a,
|
|
5235
5236
|
o,
|
|
5236
|
-
|
|
5237
|
+
Lt,
|
|
5237
5238
|
l,
|
|
5238
5239
|
u,
|
|
5239
|
-
|
|
5240
|
-
Xt,
|
|
5240
|
+
qt,
|
|
5241
5241
|
Zt,
|
|
5242
|
+
Qt,
|
|
5242
5243
|
p,
|
|
5243
|
-
|
|
5244
|
+
Yt,
|
|
5244
5245
|
pe,
|
|
5245
5246
|
me,
|
|
5246
5247
|
he,
|
|
@@ -5252,9 +5253,9 @@ var lo = () => {
|
|
|
5252
5253
|
ye,
|
|
5253
5254
|
je,
|
|
5254
5255
|
Me
|
|
5255
|
-
]),
|
|
5256
|
+
]), ln = W(Ta, {
|
|
5256
5257
|
maxSnack: 3,
|
|
5257
|
-
domRoot:
|
|
5258
|
+
domRoot: Rt ?? void 0,
|
|
5258
5259
|
anchorOrigin: {
|
|
5259
5260
|
vertical: "bottom",
|
|
5260
5261
|
horizontal: "right"
|
|
@@ -5263,9 +5264,9 @@ var lo = () => {
|
|
|
5263
5264
|
onClose: (e, t, n) => {
|
|
5264
5265
|
O.current?.focus();
|
|
5265
5266
|
},
|
|
5266
|
-
Components: { error:
|
|
5267
|
+
Components: { error: Oa },
|
|
5267
5268
|
iconVariant: {
|
|
5268
|
-
success: W(
|
|
5269
|
+
success: W(gn, {
|
|
5269
5270
|
style: { marginRight: "8px" },
|
|
5270
5271
|
children: W("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" })
|
|
5271
5272
|
}),
|
|
@@ -5274,42 +5275,43 @@ var lo = () => {
|
|
|
5274
5275
|
style: { marginRight: "8px" }
|
|
5275
5276
|
})
|
|
5276
5277
|
},
|
|
5277
|
-
children: W(
|
|
5278
|
+
children: W(Re, {
|
|
5278
5279
|
workbook: M,
|
|
5279
5280
|
children: W(Fe, {
|
|
5280
|
-
renderArea:
|
|
5281
|
+
renderArea: tn,
|
|
5281
5282
|
onUpdateArea: (e) => {
|
|
5282
|
-
|
|
5283
|
+
$t(e);
|
|
5283
5284
|
},
|
|
5284
|
-
children: W(
|
|
5285
|
+
children: W(It, { children: W(Va, { children: W(dt, { children: W(ct, { children: W(Ra, {
|
|
5285
5286
|
workbook: M,
|
|
5286
|
-
initialCommandAnchor:
|
|
5287
|
-
renderWorkbook:
|
|
5288
|
-
setWorkbook:
|
|
5289
|
-
titleWorkbook:
|
|
5290
|
-
setWorkbookTitle:
|
|
5291
|
-
refDocumentTitle:
|
|
5287
|
+
initialCommandAnchor: Wt,
|
|
5288
|
+
renderWorkbook: cn,
|
|
5289
|
+
setWorkbook: ft,
|
|
5290
|
+
titleWorkbook: Nt,
|
|
5291
|
+
setWorkbookTitle: At,
|
|
5292
|
+
refDocumentTitle: Kt,
|
|
5292
5293
|
isDirty: L,
|
|
5293
|
-
refSave:
|
|
5294
|
+
refSave: Tt,
|
|
5295
|
+
host: n
|
|
5294
5296
|
}) }) }) }) })
|
|
5295
5297
|
})
|
|
5296
5298
|
})
|
|
5297
5299
|
});
|
|
5298
|
-
return
|
|
5300
|
+
return ln = G(bn, {
|
|
5299
5301
|
theme: Me ? je.dark : je.light,
|
|
5300
5302
|
children: [
|
|
5301
|
-
te ? W(
|
|
5303
|
+
te ? W(rn, {}) : null,
|
|
5302
5304
|
W("style", { children: Ne }),
|
|
5303
5305
|
W("style", { children: Pe }),
|
|
5304
|
-
W(
|
|
5306
|
+
W(Mt, {
|
|
5305
5307
|
themeScopeClass: r,
|
|
5306
5308
|
themeSurface: "app",
|
|
5307
5309
|
themeMode: De,
|
|
5308
|
-
children:
|
|
5310
|
+
children: ln
|
|
5309
5311
|
})
|
|
5310
5312
|
]
|
|
5311
|
-
}),
|
|
5313
|
+
}), ln;
|
|
5312
5314
|
}));
|
|
5313
|
-
|
|
5314
|
-
var
|
|
5315
|
-
export {
|
|
5315
|
+
mo.displayName = "EagerStudio";
|
|
5316
|
+
var ho = (e) => W(Ga, { ...e });
|
|
5317
|
+
export { mo as EagerStudio, mo as default };
|