@sheetxl/studio-mui 0.7.9 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{T7VT7LHcSGCG0nHe.cjs → 6CSKwJbNaX76JrHk.cjs} +2 -2
- package/browser/cjs/{DA9XIw3uWopubSOm.cjs → BVcL3i-jUQBoMe45.cjs} +2 -2
- package/browser/cjs/{DQupeVKF6A0l_r2_.cjs → BZgunhyCzDtzqWWh.cjs} +1 -1
- package/browser/cjs/{Bm-7dNP3FmSD8RKB.cjs → C8FVzCzhAJQdB_Oy.cjs} +1 -1
- package/browser/cjs/{C_USiuvDG2dfWtXj.cjs → Chm8zWC8ekU1Qug_.cjs} +11 -11
- package/browser/cjs/{Cf-kkPm1FigHKB2n.cjs → DNznc2i6xg2iIKE9.cjs} +2 -2
- package/browser/cjs/{1SqZN5MQ5PzAcIvC.cjs → Dk9NCZiAOD9zzs39.cjs} +7 -7
- package/browser/cjs/{pLwzHJC2rMpMNlmN.cjs → DrcPMnvJ8yZx-YWK.cjs} +1 -1
- package/browser/cjs/{DWCZwMHAmHr_6pOv.cjs → MKXDODFXAmzmh_2S.cjs} +2 -2
- package/browser/cjs/{BBYVAwo4ouiMmtKC.cjs → WrGDj1nLC4-sMZKq.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{D1OaqRgNJbMQkAd5.cjs → rxLo_Ld1Xi-KKL6y.cjs} +1 -1
- package/browser/esm/{YpJtXAhMACxtW1Rk.mjs → A_B51mAtU7xxxYD-.mjs} +2 -2
- package/browser/esm/{DLRGvvkeHamosHqQ.mjs → BUE0z3b78bw14bK3.mjs} +380 -374
- package/browser/esm/{vrN0FWxqEeg1-vWU.mjs → B_3dBo5bkIr0eZVH.mjs} +1 -1
- package/browser/esm/{Bx_qMvcXcJ9rsRW0.mjs → BcIL0e_fUxF3JbFD.mjs} +2 -2
- package/browser/esm/{DTxgrQXbG3N9lW1K.mjs → CFX1xSvjQ7k3GYNy.mjs} +2 -2
- package/browser/esm/{CusJChXpaPfoicnm.mjs → D_6ik-OgPF7G8sN7.mjs} +2 -2
- package/browser/esm/{DV6MYPn_wgUytG9p.mjs → Dfg1sHqBfYLAePQR.mjs} +1 -1
- package/browser/esm/{BkLdZhD76b4clcIe.mjs → DmBripa50tKiqREL.mjs} +212 -208
- package/browser/esm/{8ySqzQ-18kdZCc_T.mjs → DneV3-mqSBq1-Ies.mjs} +1 -1
- package/browser/esm/{CrxCbPC8OsPYiu18.mjs → IM-boc1h29ZmHdvy.mjs} +1 -1
- package/browser/esm/index.mjs +43 -41
- package/browser/esm/{DeBXIHYAvBBDeuyl.mjs → rTUe_Q7TeplDbtPZ.mjs} +1 -1
- package/licenses/dependencies.txt +139 -139
- package/node/esm/{CN31EL9Soh-9w3jF.mjs → B220q5iXepGyNhkv.mjs} +1 -1
- package/node/esm/{DAMa-CbdXO0XKKam.mjs → BTPfATo02Qq6ojW1.mjs} +1 -1
- package/node/esm/{4Woq8PA_nHBBWJE_.mjs → Bgm2i4z2IS2cPd09.mjs} +1 -1
- package/node/esm/{Cglez5pr5a5RTdHS.mjs → Bqq76CFUL47Gxzv9.mjs} +1 -1
- package/node/esm/{CrfdSYnd6drqE5fB.mjs → C2ndkS7Xv8G7tqsJ.mjs} +1 -1
- package/node/esm/{DIXy8ZVj_kaaOwIJ.mjs → CDgzja3zCRKU-fkg.mjs} +1 -1
- package/node/esm/{jsycByMMbwMZibUQ.mjs → DLB7yLWLF3CYoYgq.mjs} +42 -38
- package/node/esm/{BxpSw5aPIr7UXKbB.mjs → JtXI2INXnATXNbIy.mjs} +1 -1
- package/node/esm/index.mjs +125 -119
- package/node/esm/{BVjsplqVie80wjNf.mjs → ysEyad2ZFSLz_tlq.mjs} +1 -1
- package/package.json +8 -8
- package/types/index.d.ts +6 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Color as ft, IColor as
|
|
2
|
-
import { StyledStrokePath as Ol, StaticBorderRenderer as
|
|
1
|
+
import { Color as ft, IColor as wr, ITheme as Pl, CommonUtils as gt, IBorder as we, IFont as Ht, NumberFormat as mt, IFontCollection as Rl, IStyle as ce, ITextFrame as Ml, Table as _n, IFill as yn, CoordUtils as Nl, ISheet as Ft, LicenseManager as Eo, Workbook as Bn, TypesUtils as Fl } from "@sheetxl/sdk";
|
|
2
|
+
import { StyledStrokePath as Ol, StaticBorderRenderer as Un, FontUtils as Bl, useModelListener as We, createCellEditStateFromCell as Al, SheetCellEditor as Il, ScriptEditor as Ll, DefaultTaskPaneRegistry as tn, useTaskPaneArea as Sa, useDocThemes as Gn, TabStrip as zl, SheetElement as Hl, SheetScrollbar as Sr, PictureEditor as Wl, ChartEditor as jl, EmptyFrame as $l, LogoNoPaddingIcon as Vl, TaskPaneArea as _l, TaskPaneProvider as Ul } from "@sheetxl/react";
|
|
3
3
|
import { jsxs as H, Fragment as le, jsx as o } from "react/jsx-runtime";
|
|
4
|
-
import ae, { memo as q, forwardRef as X, useMemo as W, useCallback as U, isValidElement as qn, useState as _, useEffect as de, Suspense as
|
|
5
|
-
import { Box as B, Typography as Pe, IconButton as st, MenuItem as
|
|
6
|
-
import { CommandButton as N, ExhibitDivider as Q, defaultCreatePopupPanel as ge, CommandPopupButton as Se, InputCommandButton as is, SimpleTooltip as vt, LoadingPanel as Wt, PopupButtonType as ot, ExhibitPopupIconButton as kt, ExhibitPopupMenuItem as Yn, ExhibitMenuItem as ct, createStrokeShadowFilter as
|
|
7
|
-
import { useCommands as Ie, CommandButtonType as re, useCallbackRef as Y, ReactUtils as
|
|
4
|
+
import ae, { memo as q, forwardRef as X, useMemo as W, useCallback as U, isValidElement as qn, useState as _, useEffect as de, Suspense as va, useRef as xe, createElement as ke, useReducer as on, version as Gl, useLayoutEffect as St, useImperativeHandle as ql, useContext as Kl, cloneElement as Xl, Component as Yl } from "react";
|
|
5
|
+
import { Box as B, Typography as Pe, IconButton as st, MenuItem as ka, Divider as mo, Button as Jo, SvgIcon as Ca, Input as Kn, FormControlLabel as Rt, Checkbox as Mt, FormControl as Xn, TextField as Ta, InputAdornment as Zl, Slider as Ql, Paper as no, CircularProgress as Jl, Select as es, Tabs as Ea, Tab as Da, useMediaQuery as Pa, Card as ts, CardActions as os, Collapse as ns, DialogTitle as rs, CssBaseline as as } from "@mui/material";
|
|
6
|
+
import { CommandButton as N, ExhibitDivider as Q, defaultCreatePopupPanel as ge, CommandPopupButton as Se, InputCommandButton as is, SimpleTooltip as vt, LoadingPanel as Wt, PopupButtonType as ot, ExhibitPopupIconButton as kt, ExhibitPopupMenuItem as Yn, ExhibitMenuItem as ct, createStrokeShadowFilter as vr, strokeShadowFilter as ls, ExhibitTooltip as nt, ExhibitIconButton as bt, CommandTooltip as Zn, SelectedIcon as nn, SimpleCommandPopupButton as tt, LabelIcon as rn, ExhibitMenuHeader as ro, ContextMenu as Ra, ExhibitOptionButton as ss, hexToRGB as kr, useFloatStack as ao, elevateColor as at, CommandToolbar as an, createScrollEdgeButton as cs, createScrollEndButton as ds, createScrollStartButton as ps, scrollbarTheming as us, StackTrace as ms, useResolvedThemeMode as Ma, ThemeMode as An, useModal as hs, useLazyWindow as gs, useOptionsDialog as fs, useInputDialog as bs, AnimatedTraversingEllipsisIcon as xs, ErrorPanel as ys, createExhibitTheme as Cr, ModalProvider as ws } from "@sheetxl/utils-mui";
|
|
7
|
+
import { useCommands as Ie, CommandButtonType as re, useCallbackRef as Y, ReactUtils as ln, KeyCodes as me, DynamicIcon as he, useCommand as jt, useMouseDownAndHoldListener as Tr, useEditMode as sn, useNotifier as cn, NotifierType as wt, useImperativeElement as Ct, SplitPane as Qn, RoundedTab as Ss, DefaultDynamicIconService as Jn, SimpleCommand as He, Command as be, KeyModifiers as fe, CommandGroup as er, ToolTipPlacement as ho, ScrollPane as vs, useUndoManager as ks, DefaultReactNotifier as Cs, NotifierProvider as Ts, UncaughtErrorBoundary as Es, ReactErrorBoundary as Ds } from "@sheetxl/utils-react";
|
|
8
8
|
import { useTheme as Ke, alpha as ye, getOverlayAlpha as Oe, ThemeProvider as Na } from "@mui/material/styles";
|
|
9
9
|
import { alpha as Qe } from "@mui/system";
|
|
10
10
|
import Qt, { createPortal as Ps } from "react-dom";
|
|
11
|
-
import { CommonUtils as to, ChainedError as
|
|
11
|
+
import { CommonUtils as to, ChainedError as In, ErrorUtils as Rs, ExpectedError as Ms, PartialError as Ns, UndoManager as Fs } from "@sheetxl/utils";
|
|
12
12
|
import { IOUtils as Jt } from "@sheetxl/io";
|
|
13
13
|
/**
|
|
14
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
14
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.11
|
|
15
15
|
*
|
|
16
16
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
17
17
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -73,9 +73,9 @@ const Os = q(X((n, a) => {
|
|
|
73
73
|
return ge({ ...x, children: u });
|
|
74
74
|
}, [l, e, r, t]), d = W(() => (t.getCommand("formatTextRotateCustom")?.state() ?? 0) !== 0, [p]);
|
|
75
75
|
return o(Se, { ref: a, commands: t, commandHook: e, scope: r, selected: d, label: "Text Orientation", tooltip: "Rotate your text diagonally or vertically. This is a great way to label narrow columns.", createPopupPanel: s, quickCommand: d ? "formatTextRotate0" : "formatTextRotate315", icon: i?.icon() ?? "TextRotation315", ...c });
|
|
76
|
-
})), Ls = { Preset: "preset", Custom: "custom" }, Ro = { Start: "start", End: "end" },
|
|
76
|
+
})), Ls = { Preset: "preset", Custom: "custom" }, Ro = { Start: "start", End: "end" }, wn = {}, zs = (n, a, t, e) => {
|
|
77
77
|
const r = n + "-" + a + "-" + t + (e ? "-server" : "");
|
|
78
|
-
if (
|
|
78
|
+
if (wn[r]) return wn[r];
|
|
79
79
|
const l = ((c, p, i, s) => {
|
|
80
80
|
if (typeof document > "u" && !s) return null;
|
|
81
81
|
const d = s ? new s() : document.createElement("canvas");
|
|
@@ -83,12 +83,12 @@ const Os = q(X((n, a) => {
|
|
|
83
83
|
const x = d.getContext("2d");
|
|
84
84
|
return x ? (x.fillStyle = c, x.fillRect(0, 0, d.width, d.height), x.fillStyle = p, x.fillRect(0, 0, i, i), x.translate(i, i), x.fillRect(0, 0, i, i), d.toDataURL()) : null;
|
|
85
85
|
})(n, a, t, e);
|
|
86
|
-
return
|
|
86
|
+
return wn[r] = l, l;
|
|
87
87
|
}, Hs = {}, Ws = q((n) => {
|
|
88
|
-
const { className: a, style: t =
|
|
88
|
+
const { className: a, style: t = ln.EmptyCssProperties, white: e = "transparent", grey: r = "grey", size: l = 8, borderRadius: c, boxShadow: p, renderers: i = Hs, children: s, ...d } = n, x = s, g = W(() => Object.assign({ borderRadius: c, boxShadow: p, position: "absolute", top: "0px", left: "0px", width: "100%", height: "100%", background: `url(${zs(e, r, l, i?.canvas)}) center left` }, t), [e, r, l, i]);
|
|
89
89
|
return qn(s) ? ae.cloneElement(s, { ...x.props }) : o("div", { style: g, ...d });
|
|
90
90
|
}), js = q((n) => {
|
|
91
|
-
const { selectedColor: a, onSelectColor: t, onPreviewColor: e, onClick: r, onKeyDown: l, onMouseOver: c, onMouseLeave: p, onFocus: i, style: s =
|
|
91
|
+
const { selectedColor: a, onSelectColor: t, onPreviewColor: e, onClick: r, onKeyDown: l, onMouseOver: c, onMouseLeave: p, onFocus: i, style: s = ln.EmptyCssProperties, children: d, alphaWhite: x, alphaGrey: g, darkMode: m, alphaCheckSize: u = 7, ...b } = n;
|
|
92
92
|
if (!a) throw new Error("a selectedColor is required");
|
|
93
93
|
const y = U((C) => {
|
|
94
94
|
r?.(C), C.isDefaultPrevented() || (C.ctrlKey ? e?.(a.toRGBA()) : t?.(a.toRGBA()));
|
|
@@ -102,9 +102,9 @@ const Os = q(X((n, a) => {
|
|
|
102
102
|
l?.(C), C.isDefaultPrevented() || C.keyCode === me.Enter && t?.(a.toRGBA());
|
|
103
103
|
}, [t, l, a]), S = W(() => a.toRGBA().alpha === 1 ? null : o(Ws, { size: u, white: x, grey: g, style: { position: "absolute", width: "calc(100% - 1.5px)", height: "calc(100% - 1.5px)", top: "0.75px", left: "0.75px" } }), [x, g, a]);
|
|
104
104
|
return H("div", { style: { position: "absolute", height: "100%", width: "100%", top: "0px", left: "0px", cursor: "pointer", outline: "none", ...s }, tabIndex: 0, ...b, onClick: y, onKeyDown: v, onMouseOver: f, onMouseLeave: h, onFocus: w, children: [S, o("div", { style: { position: "absolute", top: "0px", left: "0px", height: "100%", width: "100%", background: a.toCSS(m) }, children: d })] });
|
|
105
|
-
}),
|
|
105
|
+
}), tr = q((n) => {
|
|
106
106
|
const { schemeColorLookup: a, selectedColor: t, previewColor: e, colorDef: r, onSelectColorDef: l, onPreviewColorDef: c, swatchProps: p, defaultButtonSize: i = 24, isLarge: s = !1, compareRGB: d = !1, darkMode: x = !1, ...g } = n, m = new ft({ val: r.definition.val, adjs: r.definition.adjs }, (S) => a(S)), u = d ? m.toRGBA().toString() : m.toString(), b = t && (d ? t.toRGBA().toString() : t.toString()) === u, y = e && (d ? e.toRGBA().toString() : e.toString()) === u, f = [];
|
|
107
|
-
f.push({ [
|
|
107
|
+
f.push({ [wr.AdjustmentType.Inv]: !0 }), f.push({ [wr.AdjustmentType.Alpha]: 100 });
|
|
108
108
|
const h = m.adjust(f), w = U(() => {
|
|
109
109
|
l?.(r);
|
|
110
110
|
}, [l, r]), v = U((S) => {
|
|
@@ -112,7 +112,7 @@ const Os = q(X((n, a) => {
|
|
|
112
112
|
}, [c, r]);
|
|
113
113
|
return o(vt, { disableInteractive: !0, PopperProps: { style: { pointerEvents: "none" }, disablePortal: !0, popperOptions: { strategy: "fixed", modifiers: [{ name: "preventOverflow", enabled: !0, options: { boundariesElement: "viewport" } }] } }, title: r.description, placement: "bottom-start", children: o("div", { style: { width: i * (s ? 1.2 : 1) + "px", height: i * (s ? 1.2 : 1) + "px", position: "relative", boxSizing: "border-box", cursor: "pointer", outline: "none" }, ...g, children: H(js, { selectedColor: m, title: null, onSelectColor: w, onPreviewColor: v, alphaCheckSize: s ? 9 : void 0, darkMode: x, ...p, children: [o("div", { style: { position: "absolute", width: "100%", height: "100%", top: "0px", left: "0px", pointerEvents: "none", borderColor: h.toRGBA(x).toString(), borderWidth: "2px", borderStyle: "solid", boxSizing: "border-box", opacity: b ? "1" : "0" } }), o("div", { style: { position: "absolute", width: 0.33 * i * (s ? 1.2 : 1) + "px", height: 0.33 * i * (s ? 1.2 : 1) + "px", left: "calc(50% - 0.5px)", top: "calc(50% - 0.5px)", transform: "translate(-50%,-50%)", pointerEvents: "none", background: h.toRGBA(x).toString(), borderRadius: "50%", opacity: y ? "1" : "0" } })] }) }) });
|
|
114
114
|
}), Lo = q((n) => {
|
|
115
|
-
const { title: a, schemeColorLookup: t, colorDefs: e, selectedColor: r, previewColor: l, onSelectColorDef: c, onPreviewColorDef: p, style: i =
|
|
115
|
+
const { title: a, schemeColorLookup: t, colorDefs: e, selectedColor: r, previewColor: l, onSelectColorDef: c, onPreviewColorDef: p, style: i = ln.EmptyCssProperties, compareRGB: s = !1, darkMode: d, swatchProps: x, ...g } = n;
|
|
116
116
|
let m;
|
|
117
117
|
if (Array.isArray(e[0])) m = e;
|
|
118
118
|
else {
|
|
@@ -129,7 +129,7 @@ const Os = q(X((n, a) => {
|
|
|
129
129
|
let v = [], S = m[w];
|
|
130
130
|
for (let D = 0; D < S.length; D++) {
|
|
131
131
|
let T = S[D];
|
|
132
|
-
v.push(o(
|
|
132
|
+
v.push(o(tr, { schemeColorLookup: t, colorDef: T, selectedColor: r, previewColor: l, onSelectColorDef: u, onPreviewColorDef: b, swatchProps: x, compareRGB: s, darkMode: d }, w + " " + D));
|
|
133
133
|
}
|
|
134
134
|
let C = o(B, { className: "button-col", sx: { display: "flex", flexDirection: "column", justifyContent: "space-between", boxShadow: (D) => D.shadows[2], borderRadius: "2px", overflow: "hidden" }, children: v }, "" + w);
|
|
135
135
|
h.push(C);
|
|
@@ -144,7 +144,7 @@ const Os = q(X((n, a) => {
|
|
|
144
144
|
r?.set(i, p);
|
|
145
145
|
const s = p.toRGBA().toString();
|
|
146
146
|
l?.set(s, p);
|
|
147
|
-
}, $s = ae.lazy(() => import("./
|
|
147
|
+
}, $s = ae.lazy(() => import("./CFX1xSvjQ7k3GYNy.mjs")), Vs = q(X((n, a) => {
|
|
148
148
|
const { selectedColor: t = null, previewColor: e = n.selectedColor ?? null, recentColors: r, schemeLookup: l, disableAlpha: c = !1, previewDebounceTime: p = 100, initialPanelType: i, defaultButtonSize: s = 24, width: d, onElementLoad: x, onDone: g, onEyeDropStart: m, onEyeDropStop: u, onPreviewColor: b, onPreviewColorImmediate: y, onSelectColor: f, autoColor: h, autoColorLabel: w = "Automatic", autoColorPosition: v = Ro.Start, compareRGB: S = !1, darkMode: C = !1, ...D } = n, T = e || t, P = Y(b, [b]), R = Y(y, [y]), k = Y(f, [f]), E = Y(m, [m]), M = Y(u, [u]), [I, F] = _(!1), L = Ke(), O = W(() => l || ft.getDefaultSchemeLookup(), [l]), z = W(() => {
|
|
149
149
|
const G = /* @__PURE__ */ new Map(), se = /* @__PURE__ */ new Map(), Re = [];
|
|
150
150
|
Le("Primary Background", "bg1", O, Re, G, se), Le("Primary Text", "tx1", O, Re, G, se), Le("Secondary Background", "bg2", O, Re, G, se), Le("Secondary Text", "tx2", O, Re, G, se), Le("Accent 1", "accent1", O, Re, G, se), Le("Accent 2", "accent2", O, Re, G, se), Le("Accent 3", "accent3", O, Re, G, se), Le("Accent 4", "accent4", O, Re, G, se), Le("Accent 5", "accent5", O, Re, G, se), Le("Accent 6", "accent6", O, Re, G, se);
|
|
@@ -220,15 +220,15 @@ const Os = q(X((n, a) => {
|
|
|
220
220
|
}, children: o(he, { iconKey: "Colorize" }) }), [z, C]), _e = W(() => {
|
|
221
221
|
if (!ie) return;
|
|
222
222
|
const G = { opacity: ie ? 1 : "0", position: "absolute", top: "0px", left: "0px", width: "100%", height: "100%", boxSizing: "border-box" };
|
|
223
|
-
return o(
|
|
223
|
+
return o(va, { fallback: o("div", { style: G, children: o(Wt, {}) }), children: o($s, { style: G, selectedColor: T ? T.toRGBA().toString() : "transparent", onColorChange: ve, disableAlpha: c }) });
|
|
224
224
|
}, [ie, T]), Ve = W(() => ({ onClick: Z, alphaGrey: L.palette.text.icon ?? L.palette.action.active }), [Z, L]), ne = W(() => {
|
|
225
225
|
if (!h) return null;
|
|
226
226
|
const G = { description: w, definition: { val: h.getVal(), adjs: h.getAdjustments() } };
|
|
227
|
-
return o(le, { children: H(
|
|
227
|
+
return o(le, { children: H(ka, { sx: { display: "flex", color: (se) => se.palette.text.secondary }, onMouseOver: () => {
|
|
228
228
|
A(null);
|
|
229
229
|
}, onClick: () => {
|
|
230
230
|
Be(null);
|
|
231
|
-
}, children: [o(B, { sx: { flex: "none", boxShadow: (se) => se.shadows[2], borderRadius: (se) => se.spacing(0.5), overflow: "hidden" }, children: o(
|
|
231
|
+
}, children: [o(B, { sx: { flex: "none", boxShadow: (se) => se.shadows[2], borderRadius: (se) => se.spacing(0.5), overflow: "hidden" }, children: o(tr, { schemeColorLookup: O, colorDef: G, selectedColor: t === null ? h : t, previewColor: e === null ? h : e, defaultButtonSize: s, isLarge: !0, darkMode: C, compareRGB: S, swatchProps: Ve }) }), o(Pe, { noWrap: !0, component: "div", style: { display: "flex", flex: "1 1 100%", marginLeft: "8px", userSelect: "none" }, children: w })] }) });
|
|
232
232
|
}, [h, w, O, t, e]);
|
|
233
233
|
return H(B, { ref: a, sx: { width: d, outline: "none", padding: "10px 10px", overflow: "hidden", boxSizing: "content-box" }, ...D, children: [H("div", { style: { position: "relative", display: "flex" }, children: [H("div", { style: { opacity: ie ? "0" : 1 }, children: [ne && v === Ro.Start ? H(le, { children: [ne, o(mo, { light: !0, style: { marginTop: "2px", marginBottom: "10px" } })] }) : null, o(Lo, { title: "Theme Colors", schemeColorLookup: O, colorDefs: z.primaryColors, selectedColor: t, previewColor: e === void 0 ? t : e, swatchProps: Ve, onPreviewColorDef: A, onSelectColorDef: Be, compareRGB: S, darkMode: C }), o(Lo, { schemeColorLookup: O, colorDefs: z.modifiedPresets, selectedColor: t, previewColor: e === void 0 ? t : e, swatchProps: Ve, onPreviewColorDef: A, onSelectColorDef: Be, compareRGB: S, darkMode: C }), o(mo, { light: !0, style: { marginBottom: "10px" } }), o(Lo, { title: "Standard Colors", schemeColorLookup: O, colorDefs: z.standardColors, selectedColor: t, previewColor: e === void 0 ? t : e, swatchProps: Ve, onPreviewColorDef: A, onSelectColorDef: Be, compareRGB: S, darkMode: C }), H("div", { style: { opacity: z.recentColorsLimited.length === 0 ? "0" : void 0, display: z.recentColorsLimited.length === 0 ? "none" : void 0 }, children: [o(mo, { light: !0, style: { marginBottom: "10px" } }), o(Lo, { title: "Recent Colors", schemeColorLookup: O, colorDefs: z.recentColorsLimited, selectedColor: t, previewColor: e === void 0 ? t : e, swatchProps: Ve, onPreviewColorDef: A, onSelectColorDef: Be, compareRGB: S, darkMode: C })] }), ne && v === Ro.End ? H(le, { children: [o(mo, { light: !0, sx: { marginTop: "2px", marginBottom: "2px" } }), ne, o("div", { style: { marginBottom: "2px" } })] }) : null] }), _e] }), o(mo, { light: !0, style: { marginBottom: "10px" } }), H("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", justifyContent: "space-around", gap: "8px", paddingLeft: "2px", paddingRight: "2px" }, children: [Ne, o("div", { style: { flex: "1 1 100%", background: "pink" } }), o(Jo, { style: { minWidth: "75px", maxWidth: "75px" }, value: "check", variant: "outlined", size: "small", onClick: () => {
|
|
234
234
|
pe();
|
|
@@ -257,18 +257,18 @@ const Os = q(X((n, a) => {
|
|
|
257
257
|
}, onPreviewColorImmediate: R, onPreviewColor: P, onSelectColor: k, onEyeDropStart: () => F(!0), onEyeDropStop: () => F(!1), compareRGB: m, darkMode: u });
|
|
258
258
|
}, [t, w, g, S, x?.autoColor, u]), O = { onQuickClick: e ? M : void 0, createPopupPanel: L, popupProps: { popperProps: { resizeOnOverflow: !1 } }, onPopupOpen: T, onPopupClose: D, tooltip: l || c || "Color", label: c, icon: E, ...b };
|
|
259
259
|
return d === ot.Toolbar ? o(kt, { ref: a, ...O }) : o(Yn, { ref: a, ...O });
|
|
260
|
-
})), Zo = 82,
|
|
260
|
+
})), Zo = 82, Er = (n) => {
|
|
261
261
|
const { styleColor: a, length: t = Zo, width: e = 1, dashArray: r = null, sx: l, isDouble: c = !1, isAngled: p = !1, darkMode: i = !1, ...s } = n;
|
|
262
|
-
return o(
|
|
262
|
+
return o(Ca, { sx: { width: `${t}px`, height: `${e}px`, color: "inherit", overflow: "visible", "& .activeColor": { stroke: (d) => `${a ? a.toRGBA(i).toString() : d.palette.text.icon ?? d.palette.action.active}` }, "& .style_grey": { stroke: (d) => d.palette.text.icon ?? d.palette.action.active }, ...l }, height: e, width: t, viewBox: `0 0 ${t} ${e}`, ...s, children: o(Ol, { length: t, width: e, dashArray: r, isDouble: c, isAngled: p, className: "activeColor" }) });
|
|
263
263
|
}, Us = q(X((n, a) => {
|
|
264
264
|
const { variant: t, showLabels: e = !1, disabled: r = !1, createPopupPanel: l, styleColor: c, selectedStyle: p, onSelectStyle: i, showNone: s = !0, darkMode: d, sx: x, ...g } = n, m = Y(i, []), u = U((h) => {
|
|
265
265
|
const { popupContainer: w, floatReference: v, closeFloat: S, ...C } = h, D = [], T = we.BuiltInDefinitionsArray;
|
|
266
266
|
for (let P = 0; P < T.length; P++) {
|
|
267
267
|
const R = T[P];
|
|
268
268
|
if (R.description === "None" && !s) continue;
|
|
269
|
-
const k = o(
|
|
269
|
+
const k = o(Er, { styleColor: c, length: Zo, width: R.width, darkMode: d, dashArray: R.pattern, isDouble: R.description.toLowerCase().includes("double"), isAngled: R.description.toLowerCase().includes("slant") });
|
|
270
270
|
let E = null;
|
|
271
|
-
E = e ? H(le, { children: [o(B, { sx: { marginRight: "6px" }, children: R.description }), H(B, { sx: { marginLeft: "6px", marginRight: "6px", display: "flex", alignItems: "center", flex: "1 1 100%" }, children: [o("div", { style: { flex: "1 1 100%" } }), k] })] }) : R.description === "None" ? "None" : k, D.push(o(ct, { className: "border-stroke", tabIndex: 0, sx: { height: "28px", "& svg path.activeColor": { filter:
|
|
271
|
+
E = e ? H(le, { children: [o(B, { sx: { marginRight: "6px" }, children: R.description }), H(B, { sx: { marginLeft: "6px", marginRight: "6px", display: "flex", alignItems: "center", flex: "1 1 100%" }, children: [o("div", { style: { flex: "1 1 100%" } }), k] })] }) : R.description === "None" ? "None" : k, D.push(o(ct, { className: "border-stroke", tabIndex: 0, sx: { height: "28px", "& svg path.activeColor": { filter: vr(4) }, paddingLeft: "16px", background: `linear-gradient(${ye("#fff", Oe(5))}, ${ye("#fff", Oe(5))})` }, tooltipProps: { description: e ? "" : R.description }, icon: null, disabled: r, onMouseDown: (M) => M.preventDefault(), onMouseUp: () => {
|
|
272
272
|
S(), m(R.style);
|
|
273
273
|
}, onKeyDown: (M) => {
|
|
274
274
|
M.which === me.Enter && S();
|
|
@@ -278,7 +278,7 @@ const Os = q(X((n, a) => {
|
|
|
278
278
|
}, [r, s, c, p, d]), b = W(() => {
|
|
279
279
|
const h = we.BuiltInDefinitions.get(p);
|
|
280
280
|
let w;
|
|
281
|
-
return w = h.description === "None" ? o(B, { sx: { minWidth: `${Zo}px` }, children: "None" }) : o(
|
|
281
|
+
return w = h.description === "None" ? o(B, { sx: { minWidth: `${Zo}px` }, children: "None" }) : o(Er, { styleColor: c, length: Zo, width: h.width, dashArray: h.pattern, darkMode: d, isDouble: h.description.toLowerCase().includes("double"), isAngled: h.description.toLowerCase().includes("slant") }), o(B, { className: "border-stroke", sx: { paddingLeft: "12px", marginLeft: "4px", marginRight: "4px", height: "24px", display: "flex", alignItems: "center", "& svg path.activeColor": { filter: vr() } }, children: w });
|
|
282
282
|
}, [p, c]), y = W(() => we.BuiltInDefinitions.get(p), [p]), f = { disabled: r, icon: b, tooltip: "Border Style: " + y.description, sx: { background: `linear-gradient(${ye("#fff", Oe(5))}, ${ye("#fff", Oe(5))})`, ...x }, createPopupPanel: u, ...g };
|
|
283
283
|
return t === ot.Toolbar ? o(kt, { ...f }) : o(Yn, { ...f });
|
|
284
284
|
})), Gs = q(X((n, a) => {
|
|
@@ -293,7 +293,7 @@ const Os = q(X((n, a) => {
|
|
|
293
293
|
I.length < 6 && (F = !0);
|
|
294
294
|
const O = F ? M.left : null, z = F ? M.top : null, ie = F ? M.right : null, J = F ? M.bottom : null, pe = F ? M.vertical : null, j = F ? M.horizontal : null;
|
|
295
295
|
let K = "";
|
|
296
|
-
return z || O || (K += "M 3,5 H 5 V 3 H 3 "), z || (K += "M 7,5 H 9 V 3 H 7 "), z || pe || (K += "M 11,5 h 2 V 3 h -2 "), z || (K += "M 15,5 h 2 V 3 h -2 "), z || ie || (K += "M 19,5 h 2 V 3 h -2 "), O || (K += "M 3,9 H 5 V 7 H 3 "), pe || (K += "M 11,9 h 2 V 7 h -2 "), ie || (K += "M 19,9 h 2 V 7 h -2 "), j || O || (K += "M 3,13 H 5 V 11 H 3 "), j || (K += "M 7,13 H 9 V 11 H 7 "), j || pe || (K += "M 11,13 h 2 v -2 h -2 "), j || ie || (K += "M 19,13 h 2 v -2 h -2 "), j || (K += "M 15,13 h 2 v -2 h -2 "), O || (K += "M 3,17 H 5 V 15 H 3 "), pe || (K += "M 11,17 h 2 v -2 h -2 "), ie || (K += "M 19,17 h 2 v -2 h -2 "), J || O || (K += "M 3,21 H 5 V 19 H 3 "), J || (K += "M 7,21 H 9 V 19 H 7 "), J || pe || (K += "M 11,21 h 2 v -2 h -2 "), J || (K += "M 15,21 h 2 v -2 h -2 "), J || ie || (K += "M 19,21 h 2 v -2 h -2 "), H(he, { children: [" ", H(B, { className: "border-icon", sx: { width: "var(--icon-size, var(--icon-size-md))", height: "var(--icon-size, var(--icon-size-md))", position: "relative", "& .grid > path": { opacity: "0.8" } }, children: [o("svg", { viewBox: "0 0 24 24", className: "grid", style: { top: "0px", left: "0px", width: "calc(var(--icon-size, var(--icon-size-md)) + 1px)", height: "calc(var(--icon-size, var(--icon-size-md)) + 1px)", position: "absolute" }, children: o("path", { className: "fill", d: K }) }), o(B, { className: "border-container", sx: { position: "absolute", display: "flex", justifyContent: "stretch", alignItems: "stretch", top: "0px", left: "0px", width: "var(--icon-size, var(--icon-size-md))", height: "var(--icon-size, var(--icon-size-md))", padding: "1px 1px", "& svg path": { filter: ls } }, children: o(
|
|
296
|
+
return z || O || (K += "M 3,5 H 5 V 3 H 3 "), z || (K += "M 7,5 H 9 V 3 H 7 "), z || pe || (K += "M 11,5 h 2 V 3 h -2 "), z || (K += "M 15,5 h 2 V 3 h -2 "), z || ie || (K += "M 19,5 h 2 V 3 h -2 "), O || (K += "M 3,9 H 5 V 7 H 3 "), pe || (K += "M 11,9 h 2 V 7 h -2 "), ie || (K += "M 19,9 h 2 V 7 h -2 "), j || O || (K += "M 3,13 H 5 V 11 H 3 "), j || (K += "M 7,13 H 9 V 11 H 7 "), j || pe || (K += "M 11,13 h 2 v -2 h -2 "), j || ie || (K += "M 19,13 h 2 v -2 h -2 "), j || (K += "M 15,13 h 2 v -2 h -2 "), O || (K += "M 3,17 H 5 V 15 H 3 "), pe || (K += "M 11,17 h 2 v -2 h -2 "), ie || (K += "M 19,17 h 2 v -2 h -2 "), J || O || (K += "M 3,21 H 5 V 19 H 3 "), J || (K += "M 7,21 H 9 V 19 H 7 "), J || pe || (K += "M 11,21 h 2 v -2 h -2 "), J || (K += "M 15,21 h 2 v -2 h -2 "), J || ie || (K += "M 19,21 h 2 v -2 h -2 "), H(he, { children: [" ", H(B, { className: "border-icon", sx: { width: "var(--icon-size, var(--icon-size-md))", height: "var(--icon-size, var(--icon-size-md))", position: "relative", "& .grid > path": { opacity: "0.8" } }, children: [o("svg", { viewBox: "0 0 24 24", className: "grid", style: { top: "0px", left: "0px", width: "calc(var(--icon-size, var(--icon-size-md)) + 1px)", height: "calc(var(--icon-size, var(--icon-size-md)) + 1px)", position: "absolute" }, children: o("path", { className: "fill", d: K }) }), o(B, { className: "border-container", sx: { position: "absolute", display: "flex", justifyContent: "stretch", alignItems: "stretch", top: "0px", left: "0px", width: "var(--icon-size, var(--icon-size-md))", height: "var(--icon-size, var(--icon-size-md))", padding: "1px 1px", "& svg path": { filter: ls } }, children: o(Un, { getBorderAt: (ee, V) => {
|
|
297
297
|
if (!x || I.length === 0) return null;
|
|
298
298
|
const A = ee.rowIndex, Z = ee.colIndex, oe = {};
|
|
299
299
|
return A === 0 ? (oe.top = M.top, oe.bottom = M.horizontal) : (oe.top = M.horizontal, oe.bottom = M.bottom), Z === 0 ? (oe.left = M.left, oe.right = M.vertical) : (oe.left = M.vertical, oe.right = M.right), x?.(oe);
|
|
@@ -393,7 +393,7 @@ const Os = q(X((n, a) => {
|
|
|
393
393
|
}, R = t?.state(), k = [];
|
|
394
394
|
for (let M = 0; M < c.length; M++) {
|
|
395
395
|
const I = c[M] === R;
|
|
396
|
-
k.push(o(ct, { selected: I, icon: I ? o(
|
|
396
|
+
k.push(o(ct, { selected: I, icon: I ? o(nn, {}) : void 0, disabled: p || !t || t.disabled(), onMouseDown: (F) => {
|
|
397
397
|
F.button === 0 && F.preventDefault();
|
|
398
398
|
}, onMouseUp: (F) => {
|
|
399
399
|
F.button === 0 && P(c[M]);
|
|
@@ -405,9 +405,9 @@ const Os = q(X((n, a) => {
|
|
|
405
405
|
return ge({ ...T, children: E });
|
|
406
406
|
}, [p, t?.state(), e]);
|
|
407
407
|
return o(kt, { ref: a, sx: { ...x }, tabIndex: -1, outlined: !0, disabled: p, parentFloat: i, createPopupPanel: D, createTooltip: ({ children: T }, P) => o(nt, { label: t?.label(), description: t?.description(), disabled: P || t?.disabled(), children: T }), createQuickButton: C, ...g });
|
|
408
|
-
})),
|
|
408
|
+
})), Dr = q((n) => {
|
|
409
409
|
const { selected: a, disabled: t, formattedValue: e, handleSetFormat: r, format: l, sx: c, ...p } = n;
|
|
410
|
-
return o(ct, { sx: { maxWidth: "360px", display: "flex", "*": { lineHeight: "1.2" }, ...c }, disabled: t, selected: a, icon: a ? o(
|
|
410
|
+
return o(ct, { sx: { maxWidth: "360px", display: "flex", "*": { lineHeight: "1.2" }, ...c }, disabled: t, selected: a, icon: a ? o(nn, {}) : void 0, onMouseDown: (i) => {
|
|
411
411
|
i.button === 0 && i.preventDefault();
|
|
412
412
|
}, onMouseUp: (i) => {
|
|
413
413
|
i.button === 0 && r(l.numberFormat);
|
|
@@ -432,9 +432,9 @@ const Os = q(X((n, a) => {
|
|
|
432
432
|
}
|
|
433
433
|
k === "" && w[R].formatType === mt.Type.General && (k = "No specific format");
|
|
434
434
|
const E = w[R].formatType === d;
|
|
435
|
-
v.push(o(
|
|
435
|
+
v.push(o(Dr, { selected: E, disabled: c || !s || s.disabled(), formattedValue: k, handleSetFormat: f, format: w[R] }, w[R].formatType));
|
|
436
436
|
}
|
|
437
|
-
const S = { numberFormat: "", formatType: mt.Type.Custom }, C = d === mt.Type.Custom, D = o(
|
|
437
|
+
const S = { numberFormat: "", formatType: mt.Type.Custom }, C = d === mt.Type.Custom, D = o(Dr, { selected: C, disabled: c || !s || s.disabled(), formattedValue: C ? h.getNumberFormat().displayText : "", handleSetFormat: () => {
|
|
438
438
|
e?.beforeExecute?.(s, s?.state()), y.getCommand("formatNumberDialog")?.execute(s?.state()), e?.onExecute?.(s, s?.state());
|
|
439
439
|
}, format: S, sx: { flex: "0", width: "100%" } }, mt.Type.Custom), T = H(B, { className: "quick-buttons", sx: { display: "flex", alignItems: "center", justifyContent: "center" }, onClick: (R) => R.stopPropagation(), children: [o(N, { command: y.getCommand("formatNumberFormatAccountingStyle"), commandHook: x, scope: r }), o(N, { command: y.getCommand("formatNumberFormatPercentStyle"), commandHook: x, scope: r }), o(N, { command: y.getCommand("formatNumberFormatCommaStyle"), commandHook: x, scope: r }), o(N, { command: y.getCommand("formatNumberFormatIncreaseDecimal"), commandHook: x, scope: r }), o(N, { command: y.getCommand("formatNumberFormatDecreaseDecimal"), commandHook: x, scope: r })] }), P = H(B, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...i, children: [T, o(Q, { orientation: "horizontal" }), o(B, { sx: { overflow: "auto", flex: "1 1 100%" }, children: v }), o(Q, { orientation: "horizontal" }), D] });
|
|
440
440
|
return ge({ ...b, children: P });
|
|
@@ -511,14 +511,14 @@ const ec = q(X((n, a) => {
|
|
|
511
511
|
const g = { variant: re.Menuitem, parentFloat: d.floatReference, commandHook: e, scope: r, disabled: l }, m = H(le, { children: [o(N, { ...g, command: x.getCommand("gridlinesToggle") }), o(No, { ...g, command: x.getCommand("sheetViewFormatGridlinesColor"), icon: o(he, { iconKey: "stroke.colored" }), panelProps: { disableAlpha: !0 } }), o(Q, { orientation: "horizontal" }), o(N, { ...g, command: x.getCommand("sheetViewToggleGridlinesColumns") }), o(N, { ...g, command: x.getCommand("sheetViewToggleGridlinesRows") })] });
|
|
512
512
|
return ge({ ...d, children: m });
|
|
513
513
|
}, [l, e]);
|
|
514
|
-
return o(Se, { ref: a, parentFloat: c, quickCommand: i[0]?.key(), commands: t, commandHook: e, createPopupPanel: s, label: "Gridlines", tooltip: "Configure how the lines between rows and columns in the sheet are displayed.", icon: o(
|
|
514
|
+
return o(Se, { ref: a, parentFloat: c, quickCommand: i[0]?.key(), commands: t, commandHook: e, createPopupPanel: s, label: "Gridlines", tooltip: "Configure how the lines between rows and columns in the sheet are displayed.", icon: o(rn, { command: i[0], scope: "view" }), ...p });
|
|
515
515
|
})), za = q(X((n, a) => {
|
|
516
516
|
const { commands: t, commandHook: e, scope: r, disabled: l = !1, ...c } = n, p = U((i, s) => {
|
|
517
517
|
const d = { variant: re.Menuitem, commandHook: e, scope: "sort", disabled: l }, x = s.getCommand("sortCustom"), g = H(le, { children: [o(N, { ...d, command: s.getCommand("sortAscending") }), o(N, { ...d, command: s.getCommand("sortDescending") }), x ? o(N, { ...d, command: x }) : null, o(Q, { orientation: "horizontal" }), o(N, { ...d, scope: "filter", command: s.getCommand("autoFilterToggle") }), o(N, { ...d, scope: "filter", command: s.getCommand("autoFilterClear") }), o(N, { ...d, scope: "filter", command: s.getCommand("autoFilterReapply") })] });
|
|
518
518
|
return ge({ ...i, children: g });
|
|
519
519
|
}, [l, e, r]);
|
|
520
|
-
return o(Se, { ref: a, commands: t, commandHook: e, scope: r, disabled: l, label: "Sort", tooltip: H(le, { children: [o("span", { children: "Organize your data so it's easier to analyze." }), o("br", {}), o("span", { children: "You can sort the selected data from smallest to largest or largest to smallest." })] }), createPopupPanel: p, icon: "
|
|
521
|
-
})),
|
|
520
|
+
return o(Se, { ref: a, commands: t, commandHook: e, scope: r, disabled: l, label: "Sort", tooltip: H(le, { children: [o("span", { children: "Organize your data so it's easier to analyze." }), o("br", {}), o("span", { children: "You can sort the selected data from smallest to largest or largest to smallest." })] }), createPopupPanel: p, icon: "SortFilter", ...c });
|
|
521
|
+
})), ap = q(X((n, a) => {
|
|
522
522
|
const { commands: t, commandHook: e, scope: r, disabled: l = !1, ...c } = n, p = U((i, s) => {
|
|
523
523
|
const d = { variant: re.Menuitem, commandHook: e, scope: "sort", disabled: l }, x = H(le, { children: [o(N, { ...d, scope: "filter", command: s.getCommand("autoFilterToggle") }), o(N, { ...d, scope: "filter", command: s.getCommand("autoFilterClear") }), o(N, { ...d, scope: "filter", command: s.getCommand("autoFilterReapply") })] });
|
|
524
524
|
return ge({ ...i, children: x });
|
|
@@ -585,7 +585,7 @@ const tc = q(X((n, a) => {
|
|
|
585
585
|
const f = [];
|
|
586
586
|
for (let w = 0; w < y.length; w++) {
|
|
587
587
|
const v = y[w].key === d;
|
|
588
|
-
f.push(o(ct, { sx: { display: "flex", paddingTop: "4px", paddingBottom: "4px" }, selected: v, disabled: l || !t || t.disabled(), icon: v ? o(
|
|
588
|
+
f.push(o(ct, { sx: { display: "flex", paddingTop: "4px", paddingBottom: "4px" }, selected: v, disabled: l || !t || t.disabled(), icon: v ? o(nn, {}) : void 0, onMouseUp: (S) => {
|
|
589
589
|
S.button === 0 && b(y[w].key);
|
|
590
590
|
}, onMouseDown: (S) => {
|
|
591
591
|
S.button === 0 && S.preventDefault();
|
|
@@ -620,22 +620,22 @@ const tc = q(X((n, a) => {
|
|
|
620
620
|
const g = { variant: re.Menuitem, commandHook: r, scope: "paste", disabled: p }, m = [];
|
|
621
621
|
return c && (m.push(ke(N, { ...g, command: x.getCommand("paste"), key: "paste" })), m.push(o(Q, { orientation: "horizontal" }, "paste-div"))), m.push(ke(N, { ...g, command: x.getCommand("pasteValues"), key: "pasteValues" })), m.push(ke(N, { ...g, command: x.getCommand("pasteFormats"), key: "pasteFormats" })), m.push(ke(N, { ...g, command: x.getCommand("pasteFormulas"), key: "pasteFormulas" })), m.push(ke(N, { ...g, command: x.getCommand("pasteTranspose"), key: "pasteTranspose" })), m.push(ke(N, { ...g, command: x.getCommand("pasteLinks"), key: "pasteLinks" })), ge({ ...d, children: m });
|
|
622
622
|
}, [p, r, l, c]);
|
|
623
|
-
return o(Se, { ref: a, commands: e, commandHook: r, scope: l, createPopupPanel: s, label: "Paste", tooltip: "Add content to the clipboard to your document.", quickCommand: "paste",
|
|
623
|
+
return o(Se, { ref: a, commands: e, commandHook: r, scope: l, createPopupPanel: s, label: "Paste", tooltip: "Add content to the clipboard to your document.", quickCommand: "paste", ...i });
|
|
624
624
|
})), rc = q(X((n, a) => {
|
|
625
625
|
const { commands: t, commandHook: e, scope: r, disabled: l = !1, parentFloat: c, ...p } = n, i = Ie(t, ["sheetViewToggleShowHeadings", "sheetViewToggleShowHeadingColumns", "sheetViewToggleShowHeadingRows"]), s = U((d, x) => {
|
|
626
626
|
const g = { variant: re.Menuitem, parentFloat: d.floatReference, commandHook: e, scope: r, disabled: l }, m = H(le, { children: [o(N, { ...g, command: x.getCommand("sheetViewToggleShowHeadings") }), o(N, { ...g, command: x.getCommand("sheetViewToggleShowHeadingsNumeric") }), o(Q, { orientation: "horizontal" }), o(N, { ...g, command: x.getCommand("sheetViewToggleShowHeadingColumns") }), o(N, { ...g, command: x.getCommand("sheetViewToggleShowHeadingRows") })] });
|
|
627
627
|
return ge({ ...d, children: m });
|
|
628
628
|
}, [l, e, r]);
|
|
629
|
-
return o(Se, { ref: a, parentFloat: c, quickCommand: i[0]?.key(), commands: t, commandHook: e, createPopupPanel: s, label: "Headings", tooltip: "Configure how the column and rows headings in the sheet are displayed.", icon: o(
|
|
629
|
+
return o(Se, { ref: a, parentFloat: c, quickCommand: i[0]?.key(), commands: t, commandHook: e, createPopupPanel: s, label: "Headings", tooltip: "Configure how the column and rows headings in the sheet are displayed.", icon: o(rn, { command: i[0], scope: "view" }), ...p });
|
|
630
630
|
})), ac = q(X((n, a) => {
|
|
631
631
|
const { commands: t, commandHook: e, scope: r = "view", disabled: l = !1, ...c } = n, p = U((i) => {
|
|
632
632
|
const s = { variant: re.Menuitem, parentFloat: i.floatReference, commandHook: e, scope: r, disabled: l }, d = H(le, { children: [o(N, { ...s, command: t.getCommand("workbookViewToggleShowFormulaBar") }), o(N, { ...s, command: t.getCommand("workbookViewToggleShowTabs") }), o(N, { ...s, command: t.getCommand("workbookViewToggleShowStatusBar") }), o(Q, { orientation: "horizontal" }), o(N, { ...s, command: t.getCommand("workbookViewToggleShowHorizontalScrollBar") }), o(N, { ...s, command: t.getCommand("workbookViewToggleShowVerticalScrollBar") })] });
|
|
633
633
|
return ge({ ...i, children: d });
|
|
634
634
|
}, [l, t, e, r]);
|
|
635
|
-
return o(Se, { ref: a, commands: t, disabled: l, commandHook: e, scope: r, label: "Workbook View", tooltip: "Options to configure how the workbook is displayed.", createPopupPanel: p, icon: o(
|
|
635
|
+
return o(Se, { ref: a, commands: t, disabled: l, commandHook: e, scope: r, label: "Workbook View", tooltip: "Options to configure how the workbook is displayed.", createPopupPanel: p, icon: o(rn, { icon: null, label: "Workbook View" }), ...c });
|
|
636
636
|
})), $a = q(X((n, a) => {
|
|
637
637
|
const { value: t, cellStyle: e, styles: r, createTemporaryCell: l, bodyStyle: c, sx: p, borderProps: i, disabled: s, ...d } = n, x = W(() => l({ value: t, style: e }), [t, e, l]), g = W(() => x.getStyle(), [x, c]), m = W(() => g.getFill().toCSS(c?.darkMode ?? !1), [g]), u = g.getInsets(), b = g.getFont(), y = U(() => g.getBorder(), [g]);
|
|
638
|
-
return o(B, { ref: a, sx: { width: "100px", height: "100%", textOverflow: "ellipsis", display: "flex", alignItems: "stretch", background: c?.fill, filter: s ? "grayscale(0.4) opacity(0.8);" : "none", "& .fill": { flex: "1 1 100%", overflow: "hidden", ...m }, "& .text": { flex: "1 1 100%", ...b.toCSS(c?.darkMode ?? !1, 1), boxSizing: "border-box", padding: `${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`, margin: "0px", outline: "none", resize: "none", overflow: "hidden", textOverflow: "ellipsis", verticalAlign: "baseline", textDecoration: b.toCSS().textDecoration, textAlign: Ml.toCSSHorizontalTextAlign(x.getRenderHorizontalAlignment()), background: "transparent", maxHeight: "100%", whiteSpace: "pre", wordWrap: "break-word" }, ...p }, ...d, children: o(
|
|
638
|
+
return o(B, { ref: a, sx: { width: "100px", height: "100%", textOverflow: "ellipsis", display: "flex", alignItems: "stretch", background: c?.fill, filter: s ? "grayscale(0.4) opacity(0.8);" : "none", "& .fill": { flex: "1 1 100%", overflow: "hidden", ...m }, "& .text": { flex: "1 1 100%", ...b.toCSS(c?.darkMode ?? !1, 1), boxSizing: "border-box", padding: `${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`, margin: "0px", outline: "none", resize: "none", overflow: "hidden", textOverflow: "ellipsis", verticalAlign: "baseline", textDecoration: b.toCSS().textDecoration, textAlign: Ml.toCSSHorizontalTextAlign(x.getRenderHorizontalAlignment()), background: "transparent", maxHeight: "100%", whiteSpace: "pre", wordWrap: "break-word" }, ...p }, ...d, children: o(Un, { getBorderAt: y, darkMode: c?.darkMode ?? !1, rowCount: 1, columnCount: 1, style: { height: "100%", width: "100%", ...i?.style }, ...i, children: o(B, { className: "fill", sx: { paddingLeft: "4px", paddingRight: "4px", marginLeft: "-1px", marginTop: "-1px", marginRight: "-2px", marginBottom: "-2px", display: "flex", alignItems: "center" }, children: o(B, { className: "text", children: t }) }) }) });
|
|
639
639
|
})), ic = q((n) => {
|
|
640
640
|
const { styles: a, namedStyle: t, selectedNamed: e, hasContextMenu: r = !0, bodyStyle: l, onSelectNamed: c, createTemporaryCell: p, parentFloat: i, commands: s, disabled: d, commandHook: x, ...g } = n, m = U((y) => {
|
|
641
641
|
const f = { variant: re.Menuitem, commandHook: x, context: "cellStyle" }, h = H(le, { children: [o(N, { ...f, style: { fontWeight: 550 }, command: s.getCommand("formatCellStyle"), commandState: t, disabled: d }), o(Q, { orientation: "horizontal" }), o(N, { ...f, command: s.getCommand("modifyCellStyle"), commandState: { named: t } }), o(N, { ...f, command: s.getCommand("deleteCellStyle"), commandState: t, disabled: d || t?.getName() === ce.BuiltInName.Normal })] });
|
|
@@ -644,7 +644,7 @@ const tc = q(X((n, a) => {
|
|
|
644
644
|
let b = o(bt, { sx: { borderRadius: "2px", padding: "2px", margin: "0px 0px", display: "flex", border: (y) => `solid ${u ? y.palette.primary.dark : "transparent"} 1px` }, tooltipProps: { label: t.getName(), placement: "bottom-start" }, disabled: d, icon: null, onClick: () => {
|
|
645
645
|
c?.(t);
|
|
646
646
|
}, ...g, children: o($a, { value: t.getName(), cellStyle: { named: t.getName() }, styles: a, createTemporaryCell: p, bodyStyle: l }) }, t.getName());
|
|
647
|
-
return r && (b = o(
|
|
647
|
+
return r && (b = o(Ra, { label: t.getName(), parentFloat: i, createPopupPanel: m, children: b })), b;
|
|
648
648
|
}), lc = q(X((n, a) => {
|
|
649
649
|
const { commands: t, command: e, commandHook: r, selectedNamed: l, onSelectNamed: c, disabled: p = !1, bodyStyle: i, usePreviewIcon: s = !0, ...d } = n;
|
|
650
650
|
jt(e);
|
|
@@ -682,7 +682,7 @@ const tc = q(X((n, a) => {
|
|
|
682
682
|
}, [x?.createTemporaryCell]), h = p || !e || e.disabled(), w = W(() => x && s ? o($a, { value: m?.getName() ?? "Custom", cellStyle: m ? { named: m.getName() } : void 0, styles: x.styles(), createTemporaryCell: f, bodyStyle: x.bodyStyle(), className: "outline-hover", disabled: h, sx: { marginRight: "4px", borderRadius: "2px", minHeight: "calc(100% - 2px)", overflow: "hidden", outline: (v) => `1px solid ${v.palette.action.hover}` }, borderProps: { style: { height: "calc(100% - 2px)", width: "calc(100% - 1px)" } } }) : e?.icon(), [m, u, h, e]);
|
|
683
683
|
return o(Se, { ref: a, createPopupPanel: y, outlined: s, commands: t, createTooltip: ({ children: v }, S) => o(nt, { label: e?.label(), description: e?.description(), disabled: S, children: v }), selected: !1, disabled: h, label: e?.label(), icon: w, ...d });
|
|
684
684
|
})), Va = "_sheetxl-reset_11z3j_1", sc = 10, _a = q(X((n, a) => {
|
|
685
|
-
const { styles: t, table: e, tableStyle: r = e?.getStyle() ?? t.getDefaultTableStyle(), bodyStyle: l, sx: c, disabled: p, className: i, forceThinBorder: s, cellHeight: d = sc, isLive: x = !1, ...g } = n, m = Math.ceil(1.3 * d), [u, b] =
|
|
685
|
+
const { styles: t, table: e, tableStyle: r = e?.getStyle() ?? t.getDefaultTableStyle(), bodyStyle: l, sx: c, disabled: p, className: i, forceThinBorder: s, cellHeight: d = sc, isLive: x = !1, ...g } = n, m = Math.ceil(1.3 * d), [u, b] = on((v) => v + 1, 0);
|
|
686
686
|
de(() => {
|
|
687
687
|
if (x && e) return e.addListeners({ onAnyChange: () => {
|
|
688
688
|
b();
|
|
@@ -691,7 +691,7 @@ const tc = q(X((n, a) => {
|
|
|
691
691
|
const y = W(() => {
|
|
692
692
|
let v = e?.toJSON() ?? {};
|
|
693
693
|
const S = { rowStart: 0, colStart: 0, rowEnd: 4, colEnd: 4 };
|
|
694
|
-
return v && (v.styleOptions = { ...v.styleOptions, name: r.getName() }), v.ref = S, new
|
|
694
|
+
return v && (v.styleOptions = { ...v.styleOptions, name: r.getName() }), v.ref = S, new _n({ initialAnchor: S, json: v, styles: t });
|
|
695
695
|
}, [u, e, r, t]), f = W(() => {
|
|
696
696
|
const v = [];
|
|
697
697
|
for (let S = 0; S < 5; S++) for (let C = 0; C < 5; C++) {
|
|
@@ -715,13 +715,13 @@ const tc = q(X((n, a) => {
|
|
|
715
715
|
}
|
|
716
716
|
return S;
|
|
717
717
|
}, [y, r, l]), w = U((v, S) => f[S].getBorder() ?? null, [f]);
|
|
718
|
-
return o(B, { ref: a, className: "table-format-preview", sx: { background: l?.fill, filter: p ? "grayscale(0.4) opacity(0.8);" : "none", "& .styled-element": { position: "absolute" }, ...c }, ...g, children: o(
|
|
718
|
+
return o(B, { ref: a, className: "table-format-preview", sx: { background: l?.fill, filter: p ? "grayscale(0.4) opacity(0.8);" : "none", "& .styled-element": { position: "absolute" }, ...c }, ...g, children: o(Un, { getBorderAt: w, rowCount: 5, columnCount: 5, forceThinBorder: s, width: 5 * (m - 1) + 1, height: 5 * (d - 1) + 1, darkMode: l?.darkMode ?? !1, style: { pointerEvents: "none" }, children: o("table", { className: Te(i, "sheetxl-table-preview", Va), style: { borderCollapse: "collapse", width: 5 * (m - 1) + 1, height: 5 * (d - 1) + 1 }, children: o("tbody", { children: h }) }) }) });
|
|
719
719
|
})), go = (n, a, t, e, r) => {
|
|
720
720
|
n.beginPath(), n.moveTo(a + 0.5, t + 0.5), n.lineTo(e + 0.5, r + 0.5), n.stroke();
|
|
721
721
|
}, cc = q(X((n, a) => {
|
|
722
722
|
const { table: t, tableStyle: e, styles: r, bodyStyle: l, disabled: c, style: p, className: i, canvas: s, ...d } = n, x = W(() => {
|
|
723
723
|
const u = t.toJSON(), b = { rowStart: 0, colStart: 0, rowEnd: 4, colEnd: 4 };
|
|
724
|
-
return u.styleOptions = { ...u.styleOptions, name: e.getName() }, u.ref = b, new
|
|
724
|
+
return u.styleOptions = { ...u.styleOptions, name: e.getName() }, u.ref = b, new _n({ initialAnchor: b, json: u, styles: r });
|
|
725
725
|
}, [t, e, r]), g = W(() => {
|
|
726
726
|
const u = [];
|
|
727
727
|
for (let b = 0; b < 5; b++) for (let y = 0; y < 5; y++) {
|
|
@@ -739,7 +739,7 @@ const tc = q(X((n, a) => {
|
|
|
739
739
|
for (let h = 0; h < 5; h++) for (let w = 0; w < 5; w++) {
|
|
740
740
|
const v = g[5 * h + w].getFill();
|
|
741
741
|
let S = l?.fill;
|
|
742
|
-
v.getType() ===
|
|
742
|
+
v.getType() === yn.Type.Solid ? S = v.getColor().toCSS(f, !1) : v.getType() === yn.Type.Gradient ? S = v.getStops[0]?.color.toCSS(f, !1) : v.getType() === yn.Type.Pattern && (S = v.getForeground().toCSS(f, !1)), b.fillStyle = S;
|
|
743
743
|
const C = w * y, D = 9 * h;
|
|
744
744
|
b.fillRect(C, D, 13, 10);
|
|
745
745
|
}
|
|
@@ -775,7 +775,7 @@ const tc = q(X((n, a) => {
|
|
|
775
775
|
e?.({ ...t, showColumnStripes: !t?.showColumnStripes });
|
|
776
776
|
} }), label: "Banded Columns", labelPlacement: "end" }), s && o(Rt, { control: o(Mt, { checked: i ?? !1, indeterminate: i == null, disabled: g || !t || i == null, onChange: () => s(!i) }), label: "Filter Button", labelPlacement: "end" })] }) });
|
|
777
777
|
}));
|
|
778
|
-
function
|
|
778
|
+
function Sn(n, a) {
|
|
779
779
|
if (typeof n == "function") return n(a);
|
|
780
780
|
n && (n.current = a);
|
|
781
781
|
}
|
|
@@ -783,8 +783,8 @@ var $t = parseInt(Gl.split(".")[0], 10) >= 19 ? function(n) {
|
|
|
783
783
|
return (a) => {
|
|
784
784
|
const t = [];
|
|
785
785
|
for (const e of n) {
|
|
786
|
-
const r =
|
|
787
|
-
t.push(l ? r : () =>
|
|
786
|
+
const r = Sn(e, a), l = typeof r == "function";
|
|
787
|
+
t.push(l ? r : () => Sn(e, null));
|
|
788
788
|
}
|
|
789
789
|
return () => {
|
|
790
790
|
for (const e of t) e();
|
|
@@ -792,16 +792,16 @@ var $t = parseInt(Gl.split(".")[0], 10) >= 19 ? function(n) {
|
|
|
792
792
|
};
|
|
793
793
|
} : function(n) {
|
|
794
794
|
return (a) => {
|
|
795
|
-
for (const t of n)
|
|
795
|
+
for (const t of n) Sn(t, a);
|
|
796
796
|
};
|
|
797
797
|
}, mc = function() {
|
|
798
798
|
}, Ua = typeof window < "u", Do = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
799
|
-
function
|
|
799
|
+
function ip(n) {
|
|
800
800
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
801
801
|
}
|
|
802
|
-
var hc = Ua ? St : de,
|
|
802
|
+
var hc = Ua ? St : de, Pr = { x: 0, y: 0, width: 0, height: 0, top: 0, left: 0, bottom: 0, right: 0 };
|
|
803
803
|
const zt = Ua && window.ResizeObserver !== void 0 ? function() {
|
|
804
|
-
var n = _(null), a = n[0], t = n[1], e = _(
|
|
804
|
+
var n = _(null), a = n[0], t = n[1], e = _(Pr), r = e[0], l = e[1], c = W(function() {
|
|
805
805
|
return new window.ResizeObserver(function(p) {
|
|
806
806
|
if (p[0]) {
|
|
807
807
|
var i = p[0].contentRect, s = i.x, d = i.y, x = i.width, g = i.height, m = i.top, u = i.left, b = i.bottom, y = i.right;
|
|
@@ -815,7 +815,7 @@ const zt = Ua && window.ResizeObserver !== void 0 ? function() {
|
|
|
815
815
|
};
|
|
816
816
|
}, [a]), [t, r];
|
|
817
817
|
} : function() {
|
|
818
|
-
return [mc,
|
|
818
|
+
return [mc, Pr];
|
|
819
819
|
}, gc = "_range-row_akhf4_1", fc = "_action-row_akhf4_15", Ga = ae.createContext(null);
|
|
820
820
|
Ga.displayName = "HookFormContext";
|
|
821
821
|
const qa = () => ae.useContext(Ga);
|
|
@@ -842,7 +842,7 @@ const Ka = q(X((n, a) => {
|
|
|
842
842
|
}, []), R = U((k) => {
|
|
843
843
|
C(k.target.value), b?.onChange(k);
|
|
844
844
|
}, [b]);
|
|
845
|
-
return o(Xn, { sx: { paddingTop: (k) => k.spacing(1.5), minWidth: 135, width: "100%", ...l }, size: "small", ref: a, className: Te("named-input", r), ...m, children: o(
|
|
845
|
+
return o(Xn, { sx: { paddingTop: (k) => k.spacing(1.5), minWidth: 135, width: "100%", ...l }, size: "small", ref: a, className: Te("named-input", r), ...m, children: o(Ta, { label: "Name", placeholder: c, onFocus: T, onBlur: P, inputRef: b?.ref, disabled: t, error: !!h, helperText: h || " ", sx: { "& .MuiFormHelperText-root": { marginTop: (k) => k.spacing(0.5) } }, slotProps: { inputLabel: { shrink: !0 }, htmlInput: { className: "autoFocus", name: i, spellCheck: !1, autoComplete: "off", readOnly: t, sx: { paddingTop: (k) => k.spacing(1.25), paddingBottom: (k) => k.spacing(0.75), backgroundImage: `linear-gradient(${ye("#fff", Oe(5))}, ${ye("#fff", Oe(5))})` } } }, value: v ?? "", onChange: R, onKeyDownCapture: D, onContextMenu: (k) => {
|
|
846
846
|
k.stopPropagation();
|
|
847
847
|
} }) });
|
|
848
848
|
}));
|
|
@@ -875,7 +875,7 @@ const zo = (n) => n === null ? "" : n.toString(), Xa = q(X((n, a) => {
|
|
|
875
875
|
}, [u]), [P, R] = _(!1), k = W(() => o(Zl, { tabIndex: -1, sx: { display: "flex", position: "relative", flex: "0" }, position: "end", children: o(ss, { disabled: !0, selected: P, onSelectToggle: (E) => {
|
|
876
876
|
R(E);
|
|
877
877
|
}, label: "Select Range", icon: o(he, { iconKey: "SelectRangeMode" }) }) }), [P]);
|
|
878
|
-
return o(Xn, { sx: { paddingTop: (E) => E.spacing(1.5), minWidth: 135, width: "100%", ...p }, size: "small", ref: a, className: Te("range-input", c), ...g, children: o(
|
|
878
|
+
return o(Xn, { sx: { paddingTop: (E) => E.spacing(1.5), minWidth: 135, width: "100%", ...p }, size: "small", ref: a, className: Te("range-input", c), ...g, children: o(Ta, { label: "Range", placeholder: "Enter Range", onBlur: D, disabled: r, error: !!b, inputRef: u?.ref, helperText: b || " ", sx: { "& .MuiFormHelperText-root": { marginTop: (E) => E.spacing(0.5) } }, slotProps: { input: { endAdornment: k }, inputLabel: { shrink: !0 }, htmlInput: { spellCheck: !1, autoComplete: "off", readOnly: r, name: t, sx: { paddingTop: (E) => E.spacing(1.25), paddingBottom: (E) => E.spacing(0.75) } } }, value: w ?? "", onChange: T, onKeyDownCapture: C, onContextMenu: (E) => {
|
|
879
879
|
E.stopPropagation();
|
|
880
880
|
} }) });
|
|
881
881
|
}));
|
|
@@ -887,7 +887,7 @@ const bc = (n) => {
|
|
|
887
887
|
let d = [];
|
|
888
888
|
for (let x = 0; x < Ze.length; x++) {
|
|
889
889
|
const g = Ze[x];
|
|
890
|
-
d.push(o(
|
|
890
|
+
d.push(o(tr, { schemeColorLookup: a.schemeLookup(), colorDef: g, darkMode: e, selectedColor: null }, x + "-colorDef"));
|
|
891
891
|
}
|
|
892
892
|
return o(B, { sx: { display: "flex", flexDirection: "row", flex: "none" }, children: o(B, { sx: { display: "flex", boxShadow: (x) => x.shadows[2] }, children: d }) });
|
|
893
893
|
}, [a, i]);
|
|
@@ -941,9 +941,9 @@ The heading font is '${a.getFontScheme().getMajorFont()}'.` }), placement: "bott
|
|
|
941
941
|
D && requestAnimationFrame(() => {
|
|
942
942
|
f.current?.contains(document.activeElement) && D.focus();
|
|
943
943
|
});
|
|
944
|
-
}, []), w =
|
|
944
|
+
}, []), w = Tr(() => {
|
|
945
945
|
g(m(gt.findNextStep(t.getView().getZoomScale(), !1, 10)));
|
|
946
|
-
}), v =
|
|
946
|
+
}), v = Tr(() => g(m(gt.findNextStep(t.getView().getZoomScale(), !0, 10)))), S = Ke(), C = W(() => `${Ht.getSharedMeasurer()("100%", Math.round(S.typography.fontSize), S.typography.fontFamily).width}px`, [S]);
|
|
947
947
|
return H(B, { ref: a, className: Te(e), sx: { padding: "0px 0px", display: "flex", alignItems: "center", color: (D) => D.palette.text.secondary, ...l }, onFocus: (D) => {
|
|
948
948
|
D.relatedTarget && !b && y(D.relatedTarget);
|
|
949
949
|
}, onBlur: (D) => {
|
|
@@ -954,7 +954,7 @@ The heading font is '${a.getFontScheme().getMajorFont()}'.` }), placement: "bott
|
|
|
954
954
|
D.button === 0 && h();
|
|
955
955
|
}, ...c, children: [o(vt, { disableInteractive: !0, title: "Zoom Out", children: o(st, { sx: { padding: "0", "&:hover:not([disabled])": { color: (D) => D.palette.primary.main }, "& svg": { width: "12px", height: "12px" } }, size: "small", onPointerDown: (D) => {
|
|
956
956
|
D.button !== 0 ? D.preventDefault() : w(D);
|
|
957
|
-
}, children: o(he, { iconKey: "Remove" }) }) }), o(Ql, { ref: f, sx: { flex: "1 1 100%", padding: "6px 0px !important", marginRight: "2px", marginLeft: "2px", "& .MuiSlider-thumb": { height: 14, width: 6, borderRadius: 0.75, "&.Mui-focusVisible": { boxShadow: (D) => `0px 0px 0px 3px ${
|
|
957
|
+
}, children: o(he, { iconKey: "Remove" }) }) }), o(Ql, { ref: f, sx: { flex: "1 1 100%", padding: "6px 0px !important", marginRight: "2px", marginLeft: "2px", "& .MuiSlider-thumb": { height: 14, width: 6, borderRadius: 0.75, "&.Mui-focusVisible": { boxShadow: (D) => `0px 0px 0px 3px ${kr(D.palette.primary.main, 0.16)}` }, "&:focus, &:hover, &.Mui-active": { boxShadow: (D) => `0px 0px 0px 2px ${kr(D.palette.primary.main, 0.16)}` } }, "& .MuiSlider-mark": { width: "1px", height: "8px" }, "& .MuiSlider-markActive": { backgroundColor: "currentColor" }, "& .MuiSlider-thumb:not(.MuiSlider-active)": { transition: s ? "left 260ms ease-in" : "none" } }, valueLabelDisplay: "auto", size: "small", track: !1, min: 0, step: 1, value: u, max: 200, marks: [{ value: 100 }], onAnimationEnd: () => d(!1), onWheel: (D) => {
|
|
958
958
|
g(m(gt.findNextStep(t.getView().getZoomScale(), D.deltaY < 0, 10)));
|
|
959
959
|
}, onKeyDown: (D) => {
|
|
960
960
|
D.which === me.Down || D.which === me.Right ? (g(m(gt.findNextStep(t.getView().getZoomScale(), !0, 10))), D.preventDefault()) : D.which === me.Up || D.which === me.Left ? (g(m(gt.findNextStep(t.getView().getZoomScale(), !1, 10))), D.preventDefault()) : D.which !== me.Enter && D.which !== me.Escape || h();
|
|
@@ -977,26 +977,26 @@ const Za = q(X((n, a) => {
|
|
|
977
977
|
i.current?.removeEventListener("wheel", m);
|
|
978
978
|
};
|
|
979
979
|
}, []);
|
|
980
|
-
const s =
|
|
980
|
+
const s = sn(), d = W(() => {
|
|
981
981
|
const m = s.getMode();
|
|
982
982
|
return m?.description ? m.description : "Ready";
|
|
983
983
|
}, [s]), [x, g] = _(!1);
|
|
984
984
|
return H(B, { ref: i, sx: { display: "flex", alignItems: "stretch", flexDirection: "row", flex: "0", paddingLeft: "12px", paddingRight: "12px", gap: "8px", paddingTop: "1px", minHeight: "calc(1em + 8px)", overflow: x ? "visible" : "hidden", boxShadow: `0px -1px 0px ${r.header.edgeStrokeFill}`, ...t }, onMouseOver: () => g(!0), onMouseLeave: () => g(!1), ...p, children: [l, o("div", { style: { flex: "1 1 100%", display: "flex", alignItems: "end", overflow: "hidden" }, children: o(Pe, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", color: (m) => m.palette.text.secondary }, variant: "caption", children: d }) }), c ? o(B, { sx: { display: "flex", alignItems: "center" }, children: c }) : null, o(Q, { style: { marginTop: "6px", marginBottom: "6px" } }), o(Ya, { sx: { paddingLeft: "4px", minWidth: "175px" }, sheet: e })] });
|
|
985
985
|
}));
|
|
986
986
|
Za.displayName = "StatusBar";
|
|
987
|
-
var
|
|
987
|
+
var Rr, Mr, vn, Nr, Fr, Ho = { exports: {} }, fo = {}, bo = { exports: {} }, Or = {}, Br = { exports: {} };
|
|
988
988
|
function wc() {
|
|
989
|
-
return
|
|
989
|
+
return Mr ? Rr : (Mr = 1, Rr = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
990
990
|
}
|
|
991
991
|
function Sc() {
|
|
992
|
-
if (
|
|
993
|
-
|
|
992
|
+
if (Nr) return vn;
|
|
993
|
+
Nr = 1;
|
|
994
994
|
var n = wc();
|
|
995
995
|
function a() {
|
|
996
996
|
}
|
|
997
997
|
function t() {
|
|
998
998
|
}
|
|
999
|
-
return t.resetWarningCache = a,
|
|
999
|
+
return t.resetWarningCache = a, vn = function() {
|
|
1000
1000
|
function e(c, p, i, s, d, x) {
|
|
1001
1001
|
if (x !== n) {
|
|
1002
1002
|
var g = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
|
|
@@ -1009,14 +1009,14 @@ function Sc() {
|
|
|
1009
1009
|
e.isRequired = e;
|
|
1010
1010
|
var l = { array: e, bigint: e, bool: e, func: e, number: e, object: e, string: e, symbol: e, any: e, arrayOf: r, element: e, elementType: e, instanceOf: r, node: e, objectOf: r, oneOf: r, oneOfType: r, shape: r, exact: r, checkPropTypes: t, resetWarningCache: a };
|
|
1011
1011
|
return l.PropTypes = l, l;
|
|
1012
|
-
},
|
|
1012
|
+
}, vn;
|
|
1013
1013
|
}
|
|
1014
|
-
function cn() {
|
|
1015
|
-
return Nr || (Nr = 1, Or.exports = Sc()()), Or.exports;
|
|
1016
|
-
}
|
|
1017
|
-
var Br, Wo = { exports: {} }, Ar, ze = {}, xt = {};
|
|
1018
1014
|
function dn() {
|
|
1019
|
-
return
|
|
1015
|
+
return Fr || (Fr = 1, Br.exports = Sc()()), Br.exports;
|
|
1016
|
+
}
|
|
1017
|
+
var Ar, Wo = { exports: {} }, Ir, ze = {}, xt = {};
|
|
1018
|
+
function pn() {
|
|
1019
|
+
return Ir || (Ir = 1, Object.defineProperty(xt, "__esModule", { value: !0 }), xt.dontSetMe = function(n, a, t) {
|
|
1020
1020
|
if (n[a]) return new Error(`Invalid prop ${a} passed to ${t} - do not set this, set it on the child.`);
|
|
1021
1021
|
}, xt.findInArray = function(n, a) {
|
|
1022
1022
|
for (let t = 0, e = n.length; t < e; t++) if (a.apply(a, [n[t], t, n])) return n[t];
|
|
@@ -1028,10 +1028,10 @@ function dn() {
|
|
|
1028
1028
|
return typeof n == "number" && !isNaN(n);
|
|
1029
1029
|
}), xt;
|
|
1030
1030
|
}
|
|
1031
|
-
var
|
|
1032
|
-
function
|
|
1033
|
-
if (
|
|
1034
|
-
|
|
1031
|
+
var Lr, zr, yt = {};
|
|
1032
|
+
function or() {
|
|
1033
|
+
if (zr) return ze;
|
|
1034
|
+
zr = 1, Object.defineProperty(ze, "__esModule", { value: !0 }), ze.addClassName = c, ze.addEvent = function(i, s, d, x) {
|
|
1035
1035
|
if (!i) return;
|
|
1036
1036
|
const g = { capture: !0, ...x };
|
|
1037
1037
|
i.addEventListener ? i.addEventListener(s, d, g) : i.attachEvent ? i.attachEvent("on" + s, d) : i["on" + s] = d;
|
|
@@ -1087,7 +1087,7 @@ function tr() {
|
|
|
1087
1087
|
l(i);
|
|
1088
1088
|
}) : l(i);
|
|
1089
1089
|
};
|
|
1090
|
-
var n =
|
|
1090
|
+
var n = pn(), a = (function(i, s) {
|
|
1091
1091
|
if (typeof WeakMap == "function") var d = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap();
|
|
1092
1092
|
return (function(g, m) {
|
|
1093
1093
|
if (!m && g && g.__esModule) return g;
|
|
@@ -1101,8 +1101,8 @@ function tr() {
|
|
|
1101
1101
|
return y;
|
|
1102
1102
|
})(i, s);
|
|
1103
1103
|
})((function() {
|
|
1104
|
-
if (
|
|
1105
|
-
|
|
1104
|
+
if (Lr) return yt;
|
|
1105
|
+
Lr = 1, Object.defineProperty(yt, "__esModule", { value: !0 }), yt.browserPrefixToKey = d, yt.browserPrefixToStyle = function(x, g) {
|
|
1106
1106
|
return g ? `-${g.toLowerCase()}-${x}` : x;
|
|
1107
1107
|
}, yt.default = void 0, yt.getPrefix = s;
|
|
1108
1108
|
const i = ["Moz", "Webkit", "O", "ms"];
|
|
@@ -1151,10 +1151,10 @@ function tr() {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
return ze;
|
|
1153
1153
|
}
|
|
1154
|
-
var
|
|
1154
|
+
var Hr, it = {};
|
|
1155
1155
|
function Qa() {
|
|
1156
|
-
if (
|
|
1157
|
-
|
|
1156
|
+
if (Hr) return it;
|
|
1157
|
+
Hr = 1, Object.defineProperty(it, "__esModule", { value: !0 }), it.canDragX = function(e) {
|
|
1158
1158
|
return e.props.axis === "both" || e.props.axis === "x";
|
|
1159
1159
|
}, it.canDragY = function(e) {
|
|
1160
1160
|
return e.props.axis === "both" || e.props.axis === "y";
|
|
@@ -1188,7 +1188,7 @@ function Qa() {
|
|
|
1188
1188
|
const c = Math.round(r / e[0]) * e[0], p = Math.round(l / e[1]) * e[1];
|
|
1189
1189
|
return [c, p];
|
|
1190
1190
|
};
|
|
1191
|
-
var n =
|
|
1191
|
+
var n = pn(), a = or();
|
|
1192
1192
|
function t(e) {
|
|
1193
1193
|
const r = e.findDOMNode();
|
|
1194
1194
|
if (!r) throw new Error("<DraggableCore>: Unmounted during event!");
|
|
@@ -1196,14 +1196,14 @@ function Qa() {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
return it;
|
|
1198
1198
|
}
|
|
1199
|
-
var
|
|
1199
|
+
var Wr, jr, $r, Vr, xo = {}, jo = {};
|
|
1200
1200
|
function Ja() {
|
|
1201
|
-
return
|
|
1201
|
+
return Wr || (Wr = 1, Object.defineProperty(jo, "__esModule", { value: !0 }), jo.default = function() {
|
|
1202
1202
|
}), jo;
|
|
1203
1203
|
}
|
|
1204
1204
|
function vc() {
|
|
1205
|
-
if (
|
|
1206
|
-
|
|
1205
|
+
if (jr) return xo;
|
|
1206
|
+
jr = 1, Object.defineProperty(xo, "__esModule", { value: !0 }), xo.default = void 0;
|
|
1207
1207
|
var n = (function(m, u) {
|
|
1208
1208
|
if (typeof WeakMap == "function") var b = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap();
|
|
1209
1209
|
return (function(f, h) {
|
|
@@ -1217,7 +1217,7 @@ function vc() {
|
|
|
1217
1217
|
for (const C in f) C !== "default" && {}.hasOwnProperty.call(f, C) && ((v = (w = Object.defineProperty) && Object.getOwnPropertyDescriptor(f, C)) && (v.get || v.set) ? w(S, C, v) : S[C] = f[C]);
|
|
1218
1218
|
return S;
|
|
1219
1219
|
})(m, u);
|
|
1220
|
-
})(ae), a = p(
|
|
1220
|
+
})(ae), a = p(dn()), t = p(Qt), e = or(), r = Qa(), l = pn(), c = p(Ja());
|
|
1221
1221
|
function p(m) {
|
|
1222
1222
|
return m && m.__esModule ? m : { default: m };
|
|
1223
1223
|
}
|
|
@@ -1313,7 +1313,7 @@ function vc() {
|
|
|
1313
1313
|
}, scale: 1 }), xo;
|
|
1314
1314
|
}
|
|
1315
1315
|
function kc() {
|
|
1316
|
-
return
|
|
1316
|
+
return $r || ($r = 1, (function(n) {
|
|
1317
1317
|
Object.defineProperty(n, "__esModule", { value: !0 }), Object.defineProperty(n, "DraggableCore", { enumerable: !0, get: function() {
|
|
1318
1318
|
return i.default;
|
|
1319
1319
|
} }), n.default = void 0;
|
|
@@ -1330,8 +1330,8 @@ function kc() {
|
|
|
1330
1330
|
for (const D in h) D !== "default" && {}.hasOwnProperty.call(h, D) && ((S = (v = Object.defineProperty) && Object.getOwnPropertyDescriptor(h, D)) && (S.get || S.set) ? v(C, D, S) : C[D] = h[D]);
|
|
1331
1331
|
return C;
|
|
1332
1332
|
})(u, b);
|
|
1333
|
-
})(ae), t = d(
|
|
1334
|
-
if (
|
|
1333
|
+
})(ae), t = d(dn()), e = d(Qt), r = (function() {
|
|
1334
|
+
if (Ar) return Wo.exports;
|
|
1335
1335
|
function u(y) {
|
|
1336
1336
|
var f, h, w = "";
|
|
1337
1337
|
if (typeof y == "string" || typeof y == "number") w += y;
|
|
@@ -1345,8 +1345,8 @@ function kc() {
|
|
|
1345
1345
|
for (var y, f, h = 0, w = "", v = arguments.length; h < v; h++) (y = arguments[h]) && (f = u(y)) && (w && (w += " "), w += f);
|
|
1346
1346
|
return w;
|
|
1347
1347
|
}
|
|
1348
|
-
return
|
|
1349
|
-
})(), l =
|
|
1348
|
+
return Ar = 1, Wo.exports = b, Wo.exports.clsx = b, Wo.exports;
|
|
1349
|
+
})(), l = or(), c = Qa(), p = pn(), i = d(vc()), s = d(Ja());
|
|
1350
1350
|
function d(u) {
|
|
1351
1351
|
return u && u.__esModule ? u : { default: u };
|
|
1352
1352
|
}
|
|
@@ -1425,18 +1425,18 @@ function kc() {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
1427
|
n.default = m, g(m, "displayName", "Draggable"), g(m, "propTypes", { ...i.default.propTypes, axis: t.default.oneOf(["both", "x", "y", "none"]), bounds: t.default.oneOfType([t.default.shape({ left: t.default.number, right: t.default.number, top: t.default.number, bottom: t.default.number }), t.default.string, t.default.oneOf([!1])]), defaultClassName: t.default.string, defaultClassNameDragging: t.default.string, defaultClassNameDragged: t.default.string, defaultPosition: t.default.shape({ x: t.default.number, y: t.default.number }), positionOffset: t.default.shape({ x: t.default.oneOfType([t.default.number, t.default.string]), y: t.default.oneOfType([t.default.number, t.default.string]) }), position: t.default.shape({ x: t.default.number, y: t.default.number }), className: p.dontSetMe, style: p.dontSetMe, transform: p.dontSetMe }), g(m, "defaultProps", { ...i.default.defaultProps, axis: "both", bounds: !1, defaultClassName: "react-draggable", defaultClassNameDragging: "react-draggable-dragging", defaultClassNameDragged: "react-draggable-dragged", defaultPosition: { x: 0, y: 0 }, scale: 1 });
|
|
1428
|
-
})(
|
|
1428
|
+
})(Or)), Or;
|
|
1429
1429
|
}
|
|
1430
1430
|
function ei() {
|
|
1431
|
-
if (
|
|
1432
|
-
|
|
1431
|
+
if (Vr) return bo.exports;
|
|
1432
|
+
Vr = 1;
|
|
1433
1433
|
const { default: n, DraggableCore: a } = kc();
|
|
1434
1434
|
return bo.exports = n, bo.exports.default = n, bo.exports.DraggableCore = a, bo.exports;
|
|
1435
1435
|
}
|
|
1436
|
-
var
|
|
1436
|
+
var _r, $o = {};
|
|
1437
1437
|
function Cc() {
|
|
1438
|
-
if (
|
|
1439
|
-
|
|
1438
|
+
if (_r) return $o;
|
|
1439
|
+
_r = 1, $o.__esModule = !0, $o.cloneElement = function(l, c) {
|
|
1440
1440
|
return c.style && l.props.style && (c.style = e(e({}, l.props.style), c.style)), c.className && l.props.className && (c.className = l.props.className + " " + c.className), a.default.cloneElement(l, c);
|
|
1441
1441
|
};
|
|
1442
1442
|
var n, a = (n = ae) && n.__esModule ? n : { default: n };
|
|
@@ -1478,11 +1478,11 @@ function Cc() {
|
|
|
1478
1478
|
}
|
|
1479
1479
|
return $o;
|
|
1480
1480
|
}
|
|
1481
|
-
var
|
|
1481
|
+
var Ur, Gr, yo = {};
|
|
1482
1482
|
function ti() {
|
|
1483
|
-
if (
|
|
1484
|
-
|
|
1485
|
-
var n, a = (n =
|
|
1483
|
+
if (Ur) return yo;
|
|
1484
|
+
Ur = 1, yo.__esModule = !0, yo.resizableProps = void 0;
|
|
1485
|
+
var n, a = (n = dn()) && n.__esModule ? n : { default: n };
|
|
1486
1486
|
ei();
|
|
1487
1487
|
var t = { axis: a.default.oneOf(["both", "x", "y", "none"]), className: a.default.string, children: a.default.element.isRequired, draggableOpts: a.default.shape({ allowAnyClick: a.default.bool, cancel: a.default.string, children: a.default.node, disabled: a.default.bool, enableUserSelectHack: a.default.bool, offsetParent: a.default.node, grid: a.default.arrayOf(a.default.number), handle: a.default.string, nodeRef: a.default.object, onStart: a.default.func, onDrag: a.default.func, onStop: a.default.func, onMouseDown: a.default.func, scale: a.default.number }), height: function() {
|
|
1488
1488
|
for (var e = arguments.length, r = new Array(e), l = 0; l < e; l++) r[l] = arguments[l];
|
|
@@ -1496,8 +1496,8 @@ function ti() {
|
|
|
1496
1496
|
return yo.resizableProps = t, yo;
|
|
1497
1497
|
}
|
|
1498
1498
|
function oi() {
|
|
1499
|
-
if (
|
|
1500
|
-
|
|
1499
|
+
if (Gr) return fo;
|
|
1500
|
+
Gr = 1, fo.__esModule = !0, fo.default = void 0;
|
|
1501
1501
|
var n = (function(g, m) {
|
|
1502
1502
|
if (g && g.__esModule) return g;
|
|
1503
1503
|
if (g === null || typeof g != "object" && typeof g != "function") return { default: g };
|
|
@@ -1628,10 +1628,10 @@ function oi() {
|
|
|
1628
1628
|
})(n.Component);
|
|
1629
1629
|
return fo.default = x, x.propTypes = e.resizableProps, x.defaultProps = { axis: "both", handleSize: [20, 20], lockAspectRatio: !1, minConstraints: [20, 20], maxConstraints: [1 / 0, 1 / 0], resizeHandles: ["se"], transformScale: 1 }, fo;
|
|
1630
1630
|
}
|
|
1631
|
-
var
|
|
1631
|
+
var qr, Kr, wo = {};
|
|
1632
1632
|
function Tc() {
|
|
1633
|
-
if (
|
|
1634
|
-
|
|
1633
|
+
if (qr) return wo;
|
|
1634
|
+
qr = 1, wo.__esModule = !0, wo.default = void 0;
|
|
1635
1635
|
var n = (function(m, u) {
|
|
1636
1636
|
if (m && m.__esModule) return m;
|
|
1637
1637
|
if (m === null || typeof m != "object" && typeof m != "function") return { default: m };
|
|
@@ -1643,7 +1643,7 @@ function Tc() {
|
|
|
1643
1643
|
w && (w.get || w.set) ? Object.defineProperty(y, h, w) : y[h] = m[h];
|
|
1644
1644
|
}
|
|
1645
1645
|
return y.default = m, b && b.set(m, y), y;
|
|
1646
|
-
})(ae), a = l(
|
|
1646
|
+
})(ae), a = l(dn()), t = l(oi()), e = ti(), r = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
|
|
1647
1647
|
function l(m) {
|
|
1648
1648
|
return m && m.__esModule ? m : { default: m };
|
|
1649
1649
|
}
|
|
@@ -1733,11 +1733,11 @@ function Tc() {
|
|
|
1733
1733
|
})(n.Component);
|
|
1734
1734
|
return wo.default = g, g.propTypes = s(s({}, e.resizableProps), {}, { children: a.default.element }), wo;
|
|
1735
1735
|
}
|
|
1736
|
-
var Ec = (
|
|
1736
|
+
var Ec = (Kr || (Kr = 1, Ho.exports = function() {
|
|
1737
1737
|
throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
|
|
1738
1738
|
}, Ho.exports.Resizable = oi().default, Ho.exports.ResizableBox = Tc().default), Ho.exports);
|
|
1739
1739
|
const ni = q(X((n, a) => {
|
|
1740
|
-
const { disabled: t, names: e, workbook: r, restoreFocus: l, readonly: c = !1, disabled: p = !1, commandPopupButtonProps: i, sx: s, ...d } = n, x =
|
|
1740
|
+
const { disabled: t, names: e, workbook: r, restoreFocus: l, readonly: c = !1, disabled: p = !1, commandPopupButtonProps: i, sx: s, ...d } = n, x = cn(), [g, m] = _(null), [u, b] = _(() => r.getSelectedRanges().getCoords()), [y, f] = _(!1), { reference: h } = ao({ parentFloat: i?.parentFloat }), [w, v] = _(() => c || !r.getProtection().isStructureAllowed()), S = () => g?.text ?? "", [C, D] = _(S), T = Y(() => {
|
|
1741
1741
|
if (h?.closeAll(), !C) {
|
|
1742
1742
|
const V = S();
|
|
1743
1743
|
return D(S()), V;
|
|
@@ -1882,7 +1882,7 @@ const Dc = (n, a) => o(ni, { ref: a, ...n }), ri = q(X((n, a) => {
|
|
|
1882
1882
|
}, [v]), E = Y((A, { size: Z }) => {
|
|
1883
1883
|
const oe = Math.floor(Z.height / v);
|
|
1884
1884
|
R(oe);
|
|
1885
|
-
}, [v]), M =
|
|
1885
|
+
}, [v]), M = sn(), I = M.getMode();
|
|
1886
1886
|
let F = null;
|
|
1887
1887
|
I?.key === "edit" && (F = I.args?.stateAndCoords);
|
|
1888
1888
|
const L = W(() => {
|
|
@@ -1911,7 +1911,7 @@ const Dc = (n, a) => o(ni, { ref: a, ...n }), ri = q(X((n, a) => {
|
|
|
1911
1911
|
A.button === 0 && A.preventDefault();
|
|
1912
1912
|
} })] }), [f, F]), J = Ke(), [pe, j] = _(!1), K = W(() => H(B, { className: "formula-bar", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", gap: (A) => A.spacing(0.5), alignItems: "start" }, children: [ie, H(no, { elevation: 0, sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", fontFamily: (A) => A.typography.fontFamily, fontSize: 11 * Ht.getDeviceScale(), alignItems: "stretch", paddingTop: "2px", paddingBottom: "2px", boxShadow: "none", borderRadius: (A) => `${A.shape.borderRadius}px`, backgroundImage: `linear-gradient(${ye("#fff", Oe(5))}, ${ye("#fff", Oe(5))})`, border: (A) => `solid ${f ? A.palette.action.disabled : ye(A.palette.divider, 0.2)} 1px`, "& textarea": { color: (A) => f ? `${A.palette.text.disabled} !important` : A.palette.text.primary }, "& .react-resizable-handle": { width: "100%", height: "8px", backgroundColor: "transparent", boxSizing: "content-box", zIndex: 1e3 }, "& .react-resizable-handle-s": { position: "absolute", bottom: "-10px", cursor: "s-resize" } }, onFocus: () => j(!0), onBlur: () => j(!1), onMouseDown: (A) => {
|
|
1913
1913
|
A.target?.classList.contains("react-resizable-handle") && A.preventDefault();
|
|
1914
|
-
}, children: [o(B, { className: "formula-editor", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", alignItems: "center", marginTop: "
|
|
1914
|
+
}, children: [o(B, { className: "formula-editor", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", alignItems: "center", marginTop: "0px", paddingLeft: (A) => A.spacing(1), paddingRight: (A) => A.spacing(1) }, children: o(Ec.ResizableBox, { height: S, draggableOpts: { grid: [v, v] }, minConstraints: [v, v], maxConstraints: [15 * v, 15 * v], onResize: E, onResizeStop: k, resizeHandles: ["s"], axis: "y", style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: L }) }), o(bt, { sx: { padding: "0px", margin: "0px 0px", border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: !0, outlined: !1, "aria-label": "toggle-expand-formula-edit", icon: o(he, { iconKey: P > 1 ? "ExpandLess" : "ExpandMore" }), tooltipProps: { label: (P > 1 ? "Collapse" : "Expand") + " Formula Bar", simple: !0 }, onMouseDown: (A) => {
|
|
1915
1915
|
A.button === 0 && A.preventDefault();
|
|
1916
1916
|
}, onClick: () => {
|
|
1917
1917
|
const A = P > 1 ? 1 : D;
|
|
@@ -1991,7 +1991,7 @@ const si = q(X((n, a) => {
|
|
|
1991
1991
|
v && (R = o(he, { iconKey: "Lock" })), h !== Ft.Visibility.Visible && (R = o(he, { iconKey: "VisibilityOff", style: { opacity: d.isStructureAllowed() ? 1 : 0.7 }, color: "secondary" })), R && (R = o(B, { sx: { display: "flex", flex: "1 1 100%", alignItems: "center", ml: "16px", "& *": { lineHeight: "1em", fontSize: "1.3em" } }, children: R })), m.push(o(ct, { disabled: !d.isStructureAllowed() && h === Ft.Visibility.Hidden, sx: { color: (k) => {
|
|
1992
1992
|
let E = w ? k.palette.primary.main : k.palette.text.secondary;
|
|
1993
1993
|
return T && (E = T), h === Ft.Visibility.Hidden && (E = Qe(E, k.palette.action.disabledOpacity)), E;
|
|
1994
|
-
}, borderLeft: (k) => `${w ? k.palette.primary.main : "transparent"} solid 2px`, paddingLeft: "4px", fontWeight: w ? "700" : "400", "&:hover": { fontWeight: "700" } }, icon: w ? o(
|
|
1994
|
+
}, borderLeft: (k) => `${w ? k.palette.primary.main : "transparent"} solid 2px`, paddingLeft: "4px", fontWeight: w ? "700" : "400", "&:hover": { fontWeight: "700" } }, icon: w ? o(nn, {}) : void 0, onMouseDown: (k) => k.preventDefault(), onMouseUp: () => {
|
|
1995
1995
|
Promise.resolve(r.closeAll()).then(() => {
|
|
1996
1996
|
try {
|
|
1997
1997
|
f.select();
|
|
@@ -2007,7 +2007,7 @@ const si = q(X((n, a) => {
|
|
|
2007
2007
|
}));
|
|
2008
2008
|
si.displayName = "SheetsAllMenu";
|
|
2009
2009
|
let Vo = !1, ci = !1, Nt = null;
|
|
2010
|
-
const
|
|
2010
|
+
const Xr = async (n) => {
|
|
2011
2011
|
const a = await Eo.getDetails();
|
|
2012
2012
|
if (ci || a.isEval()) {
|
|
2013
2013
|
try {
|
|
@@ -2033,17 +2033,17 @@ Try
|
|
|
2033
2033
|
t instanceof DOMException || console.error(t);
|
|
2034
2034
|
}
|
|
2035
2035
|
}
|
|
2036
|
-
},
|
|
2036
|
+
}, lp = (n) => {
|
|
2037
2037
|
ci = n;
|
|
2038
2038
|
};
|
|
2039
|
-
function
|
|
2040
|
-
return
|
|
2039
|
+
function Ln() {
|
|
2040
|
+
return Ln = Object.assign ? Object.assign.bind() : function(n) {
|
|
2041
2041
|
for (var a = 1; a < arguments.length; a++) {
|
|
2042
2042
|
var t = arguments[a];
|
|
2043
2043
|
for (var e in t) ({}).hasOwnProperty.call(t, e) && (n[e] = t[e]);
|
|
2044
2044
|
}
|
|
2045
2045
|
return n;
|
|
2046
|
-
},
|
|
2046
|
+
}, Ln.apply(null, arguments);
|
|
2047
2047
|
}
|
|
2048
2048
|
function di(n, a) {
|
|
2049
2049
|
if (n == null) return {};
|
|
@@ -2054,21 +2054,21 @@ function di(n, a) {
|
|
|
2054
2054
|
}
|
|
2055
2055
|
return t;
|
|
2056
2056
|
}
|
|
2057
|
-
function
|
|
2058
|
-
return
|
|
2057
|
+
function zn(n, a) {
|
|
2058
|
+
return zn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
2059
2059
|
return t.__proto__ = e, t;
|
|
2060
|
-
},
|
|
2060
|
+
}, zn(n, a);
|
|
2061
2061
|
}
|
|
2062
2062
|
function pi(n, a) {
|
|
2063
|
-
n.prototype = Object.create(a.prototype), n.prototype.constructor = n,
|
|
2063
|
+
n.prototype = Object.create(a.prototype), n.prototype.constructor = n, zn(n, a);
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2065
|
+
function Yr(n, a) {
|
|
2066
2066
|
return n.replace(new RegExp("(^|\\s)" + a + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
2067
2067
|
}
|
|
2068
|
-
const
|
|
2068
|
+
const Zr = !1, ui = ae.createContext(null);
|
|
2069
2069
|
var mi = function(n) {
|
|
2070
2070
|
return n.scrollTop;
|
|
2071
|
-
}, Po = "unmounted", Ot = "exited", Bt = "entering", Yt = "entered",
|
|
2071
|
+
}, Po = "unmounted", Ot = "exited", Bt = "entering", Yt = "entered", Hn = "exiting", ht = (function(n) {
|
|
2072
2072
|
function a(e, r) {
|
|
2073
2073
|
var l;
|
|
2074
2074
|
l = n.call(this, e, r) || this;
|
|
@@ -2085,7 +2085,7 @@ var mi = function(n) {
|
|
|
2085
2085
|
var r = null;
|
|
2086
2086
|
if (e !== this.props) {
|
|
2087
2087
|
var l = this.state.status;
|
|
2088
|
-
this.props.in ? l !== Bt && l !== Yt && (r = Bt) : l !== Bt && l !== Yt || (r =
|
|
2088
|
+
this.props.in ? l !== Bt && l !== Yt && (r = Bt) : l !== Bt && l !== Yt || (r = Hn);
|
|
2089
2089
|
}
|
|
2090
2090
|
this.updateStatus(!1, r);
|
|
2091
2091
|
}, t.componentWillUnmount = function() {
|
|
@@ -2104,7 +2104,7 @@ var mi = function(n) {
|
|
|
2104
2104
|
else this.props.unmountOnExit && this.state.status === Ot && this.setState({ status: Po });
|
|
2105
2105
|
}, t.performEnter = function(e) {
|
|
2106
2106
|
var r = this, l = this.props.enter, c = this.context ? this.context.isMounting : e, p = this.props.nodeRef ? [c] : [Qt.findDOMNode(this), c], i = p[0], s = p[1], d = this.getTimeouts(), x = c ? d.appear : d.enter;
|
|
2107
|
-
!e && !l ||
|
|
2107
|
+
!e && !l || Zr ? this.safeSetState({ status: Yt }, function() {
|
|
2108
2108
|
r.props.onEntered(i);
|
|
2109
2109
|
}) : (this.props.onEnter(i, s), this.safeSetState({ status: Bt }, function() {
|
|
2110
2110
|
r.props.onEntering(i, s), r.onTransitionEnd(x, function() {
|
|
@@ -2115,7 +2115,7 @@ var mi = function(n) {
|
|
|
2115
2115
|
}));
|
|
2116
2116
|
}, t.performExit = function() {
|
|
2117
2117
|
var e = this, r = this.props.exit, l = this.getTimeouts(), c = this.props.nodeRef ? void 0 : Qt.findDOMNode(this);
|
|
2118
|
-
r && !
|
|
2118
|
+
r && !Zr ? (this.props.onExit(c), this.safeSetState({ status: Hn }, function() {
|
|
2119
2119
|
e.props.onExiting(c), e.onTransitionEnd(l.exit, function() {
|
|
2120
2120
|
e.safeSetState({ status: Ot }, function() {
|
|
2121
2121
|
e.props.onExited(c);
|
|
@@ -2156,13 +2156,13 @@ var mi = function(n) {
|
|
|
2156
2156
|
})(ae.Component);
|
|
2157
2157
|
function Gt() {
|
|
2158
2158
|
}
|
|
2159
|
-
ht.contextType = ui, ht.propTypes = {}, ht.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter: Gt, onEntering: Gt, onEntered: Gt, onExit: Gt, onExiting: Gt, onExited: Gt }, ht.UNMOUNTED = Po, ht.EXITED = Ot, ht.ENTERING = Bt, ht.ENTERED = Yt, ht.EXITING =
|
|
2160
|
-
var
|
|
2159
|
+
ht.contextType = ui, ht.propTypes = {}, ht.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter: Gt, onEntering: Gt, onEntered: Gt, onExit: Gt, onExiting: Gt, onExited: Gt }, ht.UNMOUNTED = Po, ht.EXITED = Ot, ht.ENTERING = Bt, ht.ENTERED = Yt, ht.EXITING = Hn;
|
|
2160
|
+
var kn = function(n, a) {
|
|
2161
2161
|
return n && a && a.split(" ").forEach(function(t) {
|
|
2162
|
-
return r = t, void ((e = n).classList ? e.classList.remove(r) : typeof e.className == "string" ? e.className =
|
|
2162
|
+
return r = t, void ((e = n).classList ? e.classList.remove(r) : typeof e.className == "string" ? e.className = Yr(e.className, r) : e.setAttribute("class", Yr(e.className && e.className.baseVal || "", r)));
|
|
2163
2163
|
var e, r;
|
|
2164
2164
|
});
|
|
2165
|
-
},
|
|
2165
|
+
}, Wn = (function(n) {
|
|
2166
2166
|
function a() {
|
|
2167
2167
|
for (var e, r = arguments.length, l = new Array(r), c = 0; c < r; c++) l[c] = arguments[c];
|
|
2168
2168
|
return (e = n.call.apply(n, [this].concat(l)) || this).appliedClasses = { appear: {}, enter: {}, exit: {} }, e.onEnter = function(p, i) {
|
|
@@ -2204,23 +2204,23 @@ var vn = function(n, a) {
|
|
|
2204
2204
|
})(e, c));
|
|
2205
2205
|
}, t.removeClasses = function(e, r) {
|
|
2206
2206
|
var l = this.appliedClasses[r], c = l.base, p = l.active, i = l.done;
|
|
2207
|
-
this.appliedClasses[r] = {}, c &&
|
|
2207
|
+
this.appliedClasses[r] = {}, c && kn(e, c), p && kn(e, p), i && kn(e, i);
|
|
2208
2208
|
}, t.render = function() {
|
|
2209
2209
|
var e = this.props;
|
|
2210
2210
|
e.classNames;
|
|
2211
2211
|
var r = di(e, ["classNames"]);
|
|
2212
|
-
return ae.createElement(ht,
|
|
2212
|
+
return ae.createElement(ht, Ln({}, r, { onEnter: this.onEnter, onEntered: this.onEntered, onEntering: this.onEntering, onExit: this.onExit, onExiting: this.onExiting, onExited: this.onExited }));
|
|
2213
2213
|
}, a;
|
|
2214
2214
|
})(ae.Component);
|
|
2215
|
-
|
|
2216
|
-
const
|
|
2215
|
+
Wn.defaultProps = { classNames: "" }, Wn.propTypes = {};
|
|
2216
|
+
const Cn = 0.12, Qr = (n, a) => {
|
|
2217
2217
|
const t = {}, e = (i) => {
|
|
2218
2218
|
const s = i.palette?.background.default ?? "rgba(255,255,255,1)";
|
|
2219
|
-
return { text: { fontFamily: i.typography?.fontFamily ?? "Calibri", fontSize: i.typography?.fontSize ?? 8.25, fontWeight: i.typography?.fontWeightRegular ?? "400", fill: i.palette.mode === "dark" ? i.palette?.text?.secondary : i.palette?.text?.primary }, fill: s, strokeFill: at(s,
|
|
2219
|
+
return { text: { fontFamily: i.typography?.fontFamily ?? "Calibri", fontSize: i.typography?.fontSize ?? 8.25, fontWeight: i.typography?.fontWeightRegular ?? "400", fill: i.palette.mode === "dark" ? i.palette?.text?.secondary : i.palette?.text?.primary }, fill: s, strokeFill: at(s, Cn, i.palette?.mode), darkMode: i.palette.mode === "dark" };
|
|
2220
2220
|
}, r = e(a);
|
|
2221
|
-
t.body = e(n), t.header = { ...t.body, strokeFill: at(t.body.fill,
|
|
2221
|
+
t.body = e(n), t.header = { ...t.body, strokeFill: at(t.body.fill, Cn, n.palette?.mode), fill: a && n.palette.mode === "dark" && a.palette.mode !== n.palette.mode ? t.body.fill : at(t.body.fill, 0.055, n.palette?.mode), edgeStrokeFill: n.palette.mode === "dark" ? t.body.strokeFill : at(t.body.fill, 0.328, n.palette?.mode) }, t.headerHover = (i) => ({ ...t.header, strokeFill: at(i?.fill ?? t.body.fill, 0.22, n.palette?.mode), fill: at(i?.fill ?? t.header.fill, 0.065, n.palette?.mode), text: { ...i?.text, fontWeight: n.typography?.fontWeightBold } });
|
|
2222
2222
|
const l = at(n.palette.mode !== "dark" ? n.palette.primary.light : n.palette.primary.main, 0.055, n.palette?.mode);
|
|
2223
|
-
t.headerSelect = { ...t.header, strokeFill: n.palette.primary.main, fill: Qe(l, 0.2), text: { ...t.header.text, fill: n.palette.primary.main }, dividerStrokeFill: Qe(l, 0.7) }, t.headerSelectAll = { ...t.headerSelect, fill: Qe(l, 0.9), text: { ...t.headerSelect.text, fill: n.palette.primary.contrastText }, edgeStrokeFill: t.headerSelect.strokeFill }, t.buttonSurface = { ...r, strokeFill: at(r.fill,
|
|
2223
|
+
t.headerSelect = { ...t.header, strokeFill: n.palette.primary.main, fill: Qe(l, 0.2), text: { ...t.header.text, fill: n.palette.primary.main }, dividerStrokeFill: Qe(l, 0.7) }, t.headerSelectAll = { ...t.headerSelect, fill: Qe(l, 0.9), text: { ...t.headerSelect.text, fill: n.palette.primary.contrastText }, edgeStrokeFill: t.headerSelect.strokeFill }, t.buttonSurface = { ...r, strokeFill: at(r.fill, Cn, a.palette?.mode), fill: a && a.palette.mode === "dark" && a.palette.mode !== n.palette.mode ? r.fill : at(r.fill, 0.055, a.palette?.mode), edgeStrokeFill: a.palette.mode === "dark" ? r.strokeFill : at(r.fill, 0.328, a.palette?.mode) }, t.headerSelection = { fill: n.palette?.primary?.main ? Qe(n.palette?.primary?.main, 0.1) : void 0, strokeFill: n.palette?.primary?.main }, t.headerSelectionInactive = { ...t.headerSelection, fill: n.palette?.divider ? Qe(n.palette?.divider, 0.05) : void 0, strokeFill: "transparent" };
|
|
2224
2224
|
const c = a ?? n, p = c.palette.mode === "dark";
|
|
2225
2225
|
return t.selection = { fill: c.palette?.primary?.main ? Qe(c.palette?.primary?.main, 0.1) : void 0, strokeFill: c.palette?.primary?.main }, t.selectionInactive = { ...t.selection, fill: c.palette?.divider ? Qe(c.palette?.divider, 0.05) : void 0, strokeFill: "transparent" }, t.selectionRemove = { ...t.selection, fill: Qe(c.palette.warning.light, 0.05), strokeFill: c.palette.warning.dark }, a && (t.body = e(a)), t.colorShadow = Qe(c.palette.action.active, 0.5), t.colorGrey = c.palette.action.active, t.filterDarkInvert = p ? "hue-rotate(180deg) invert(1) brightness(95%)" : "none", t;
|
|
2226
2226
|
}, Fo = q(X((n, a) => {
|
|
@@ -2287,9 +2287,9 @@ const kn = 0.12, Zr = (n, a) => {
|
|
|
2287
2287
|
return n.metadata?.icon === "formula" ? a.toUpperCase() : (a = a.replace(/([a-z])([A-Z])/g, "$1 $2"), a.replace(/[-_]/g, " ").trim().split(/\s+/).map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" "));
|
|
2288
2288
|
}, gi = async (n) => {
|
|
2289
2289
|
const a = Jt.relativePath(n, "./manifest.json"), t = await fetch(a);
|
|
2290
|
-
if (!t.ok) throw new
|
|
2290
|
+
if (!t.ok) throw new In(`Failed to retrieve directory at '${n}': ${t.statusText}`);
|
|
2291
2291
|
const e = await t.text();
|
|
2292
|
-
if (e.trim().toLowerCase().startsWith("<!doctype html") || e.trim().toLowerCase().startsWith("<html")) throw new
|
|
2292
|
+
if (e.trim().toLowerCase().startsWith("<!doctype html") || e.trim().toLowerCase().startsWith("<html")) throw new In(`Failed to retrieve directory at '${n}'`);
|
|
2293
2293
|
let r;
|
|
2294
2294
|
try {
|
|
2295
2295
|
r = JSON.parse(e);
|
|
@@ -2309,11 +2309,11 @@ const kn = 0.12, Zr = (n, a) => {
|
|
|
2309
2309
|
return null;
|
|
2310
2310
|
});
|
|
2311
2311
|
return (await Promise.all(l)).filter((c) => c !== null);
|
|
2312
|
-
},
|
|
2312
|
+
}, Tn = { marginRight: "4px" }, En = "1em", Mc = q((n) => {
|
|
2313
2313
|
const { disabled: a, snippet: t, description: e, handleInsert: r, sx: l, ...c } = n;
|
|
2314
2314
|
let p;
|
|
2315
2315
|
const i = t.metadata?.icon;
|
|
2316
|
-
return p = o(he, i === "formula" ? { iconKey: "ScriptFormula", size:
|
|
2316
|
+
return p = o(he, i === "formula" ? { iconKey: "ScriptFormula", size: En, style: Tn } : i === "macro" ? { iconKey: "ScriptMacro", size: En, style: Tn } : { iconKey: "ScriptAutoStart", size: En, style: Tn }), o(ct, { sx: { maxWidth: "460px", display: "flex", "*": { lineHeight: "1.2" }, ...l }, disabled: a, icon: p, onMouseDown: (s) => {
|
|
2317
2317
|
s.button === 0 && s.preventDefault();
|
|
2318
2318
|
}, onMouseUp: (s) => {
|
|
2319
2319
|
s.button === 0 && r(t);
|
|
@@ -2351,11 +2351,11 @@ const kn = 0.12, Zr = (n, a) => {
|
|
|
2351
2351
|
const { commandButtonProps: i, commandPopupProps: s } = p;
|
|
2352
2352
|
return o(le, { children: H("div", { style: { display: "flex", flex: "1 1 100%" }, children: [o("div", { children: o(Fo, { parentFloat: e, style: {}, children: o(N, { ...i, command: t?.getCommand("saveScripts") }) }) }), o("div", { style: { flex: "1 1 100%" } }), o("div", { children: o(Fo, { parentFloat: e, style: {}, children: o(Nc, { ...i, commands: t }) }) })] }) });
|
|
2353
2353
|
}, [t]);
|
|
2354
|
-
return o(
|
|
2354
|
+
return o(an, { ref: a, commands: t, parentFloat: e, commandButtonProps: r, createToolbarPalette: c, ...l });
|
|
2355
2355
|
}));
|
|
2356
2356
|
fi.displayName = "ScriptEditorToolbar";
|
|
2357
2357
|
const bi = q(X((n, a) => {
|
|
2358
|
-
const { scriptPath: t = hi, onScriptSelect: e, sx: r =
|
|
2358
|
+
const { scriptPath: t = hi, onScriptSelect: e, sx: r = ln.EmptyCssProperties, className: l, buttonMinWidth: c = 210, buttonMinHeight: p = 80, gap: i = 12, ...s } = n, [d, x] = _([]), [g, m] = _(!0), [u, b] = _(null);
|
|
2359
2359
|
if (de(() => {
|
|
2360
2360
|
(async () => {
|
|
2361
2361
|
const h = [{ path: null, metadata: { title: "Blank Template...", summary: "Start with an empty script." }, content: "" }];
|
|
@@ -2367,7 +2367,7 @@ const bi = q(X((n, a) => {
|
|
|
2367
2367
|
S && h.push(S);
|
|
2368
2368
|
}
|
|
2369
2369
|
} catch (w) {
|
|
2370
|
-
b(w instanceof Error ? w.message : "Failed to load scripts"), w instanceof
|
|
2370
|
+
b(w instanceof Error ? w.message : "Failed to load scripts"), w instanceof In || console.error("Error loading scripts:", w);
|
|
2371
2371
|
} finally {
|
|
2372
2372
|
x(h), m(!1);
|
|
2373
2373
|
}
|
|
@@ -2473,8 +2473,8 @@ const wi = q(X((n, a) => {
|
|
|
2473
2473
|
y(), b();
|
|
2474
2474
|
};
|
|
2475
2475
|
}, [s]);
|
|
2476
|
-
const d =
|
|
2477
|
-
const { commandButtonProps: m, commandPopupProps: u } = g, b =
|
|
2476
|
+
const d = Sa(), x = U((g) => {
|
|
2477
|
+
const { commandButtonProps: m, commandPopupProps: u } = g, b = tn.findContributions("ribbon/home");
|
|
2478
2478
|
let y;
|
|
2479
2479
|
const f = b.length;
|
|
2480
2480
|
if (f > 0) {
|
|
@@ -2488,9 +2488,9 @@ const wi = q(X((n, a) => {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
const h = o(No, { ...u, command: t.getCommand("formatFontColor"), icon: o(he, { iconKey: "text.colored" }), isSplit: !0, panelProps: { disableAlpha: !0 } }), w = o(No, { ...u, command: t.getCommand("formatFillColor"), icon: o(he, { iconKey: "fill.colored" }), isSplit: !0, panelProps: { disableAlpha: !0, autoColorLabel: "No Fill", autoColorPosition: Ro.End } }), v = t.getCommand("undo") ? o(le, { children: o(Ha, { ...u, quickCommand: "undo" }) }) : null, S = t.getCommand("find") ? o(le, { children: o(Ys, { ...u }) }) : null;
|
|
2490
2490
|
let C = null;
|
|
2491
|
-
return c && (C = H(le, { children: [o(Q, {}), o(wi, { ...u })] })), H(Fo, { parentFloat: e, children: [v, null, v ? o(Q, {}) : null, o(ja, { ...u, command: t.getCommand("paste") }), o(N, { ...m, command: t.getCommand("formatPainterToggle") }), o(
|
|
2491
|
+
return c && (C = H(le, { children: [o(Q, {}), o(wi, { ...u })] })), H(Fo, { parentFloat: e, children: [v, null, v ? o(Q, {}) : null, o(ja, { ...u, command: t.getCommand("paste") }), o(N, { ...m, command: t.getCommand("formatPainterToggle") }), o(nr, { ...m, command: t.getCommand("copy") }), o(Q, {}), o(tc, { ...u, command: t.getCommand("formatFontFamily") }), o(Zs, { ...u, command: t.getCommand("formatFontSize") }), o(N, { ...m, command: t.getCommand("formatBoldToggle") }), o(N, { ...m, command: t.getCommand("formatItalicToggle") }), o(nc, { ...u }), o(oc, { ...u }), o(qs, { ...u }), w, h, o(Q, {}), o(Os, { ...u }), o(Bs, { ...u }), o(Is, { ...u }), o(As, { ...u }), o(Ks, { ...u }), o(Q, {}), o(Qs, { ...u }), o(lc, { command: t.getCommand("formatCellStyle"), ...u }), o(Fi, { command: t.getCommand("formatTableStyle"), ...u }), o(Q, {}), o(Aa, { ...u }), o(Ia, { ...u }), o(La, { ...u }), o(Q, {}), o(Oi, { ...u }), o(Js, { ...u }), o(Ba, { ...u }), o(za, { ...u }), S, C, y] });
|
|
2492
2492
|
}, [t, i, c, d]);
|
|
2493
|
-
return o(
|
|
2493
|
+
return o(an, { ref: a, commands: t, parentFloat: e, commandButtonProps: r, createToolbarPalette: x, ...l });
|
|
2494
2494
|
}));
|
|
2495
2495
|
Si.displayName = "HomeToolbar";
|
|
2496
2496
|
const vi = q(X((n, a) => {
|
|
@@ -2508,20 +2508,20 @@ const vi = q(X((n, a) => {
|
|
|
2508
2508
|
const { commandButtonProps: i, commandPopupProps: s } = p;
|
|
2509
2509
|
return H(Fo, { parentFloat: e, children: [o(N, { ...i, command: t.getCommand("insertTable") }), o(vi, { ...s }), null, o(N, { ...i, command: t.getCommand("updateHyperlink") }), o(N, { ...i, command: t.getCommand("updateComments") })] });
|
|
2510
2510
|
}, [t]);
|
|
2511
|
-
return o(
|
|
2511
|
+
return o(an, { ref: a, commands: t, parentFloat: e, commandButtonProps: r, createToolbarPalette: c, ...l });
|
|
2512
2512
|
}));
|
|
2513
2513
|
ki.displayName = "InsertToolbar";
|
|
2514
2514
|
const Ci = q(X((n, a) => {
|
|
2515
2515
|
const { commands: t, parentFloat: e, commandButtonProps: r, ...l } = n, c = Y((p) => {
|
|
2516
2516
|
const { commandButtonProps: i, commandPopupProps: s } = p;
|
|
2517
|
-
return H(Fo, { parentFloat: e, children: [o(Xs, { ...s }), o(N, { ...i, command: t.getCommand("protectionSheetToggle") }), o(Q, {}), o(ec, { ...s }), o(rc, { ...s }), o(Q, {}), o(N, { ...i, command: t.getCommand("sheetViewToggleFormulaView"), scope: "view" }), o(N, { ...i, command: t.getCommand("sheetViewToggleShowZeros"), scope: "view" }), o(Q, {}), o(ac, { ...s }), o(
|
|
2517
|
+
return H(Fo, { parentFloat: e, children: [o(Xs, { ...s }), o(N, { ...i, command: t.getCommand("protectionSheetToggle") }), o(Q, {}), o(ec, { ...s }), o(rc, { ...s }), o(Q, {}), o(N, { ...i, command: t.getCommand("sheetViewToggleFormulaView"), scope: "view" }), o(N, { ...i, command: t.getCommand("sheetViewToggleShowZeros"), scope: "view" }), o(Q, {}), o(ac, { ...s }), o(ad, { command: t.getCommand("selectTheme"), ...s }), o(Q, {}), o(wi, { ...s, scope: "view" }), o(Q, {}), o(N, { ...i, command: t.getCommand("fullScreenToggle"), scope: "view" })] });
|
|
2518
2518
|
}, [t]);
|
|
2519
|
-
return o(
|
|
2519
|
+
return o(an, { ref: a, commands: t, parentFloat: e, commandButtonProps: r, createToolbarPalette: c, ...l });
|
|
2520
2520
|
}));
|
|
2521
2521
|
Ci.displayName = "ViewToolbar";
|
|
2522
2522
|
const Ti = (n) => o(Ei, { ...n }), Bc = q((n) => {
|
|
2523
2523
|
const { sx: a, ...t } = n;
|
|
2524
|
-
return H(B, { sx: { display: "flex", flexDirection: "column", position: "relative", "&:hover:not([disabled]) .indicator": { borderBottom: (e) => `${ye(e.palette.primary.main, 0.35)} solid 2px` } }, children: [o(
|
|
2524
|
+
return H(B, { sx: { display: "flex", flexDirection: "column", position: "relative", "&:hover:not([disabled]) .indicator": { borderBottom: (e) => `${ye(e.palette.primary.main, 0.35)} solid 2px` } }, children: [o(Da, { disableRipple: !0, onMouseDown: (e) => {
|
|
2525
2525
|
e.button === 0 && e.preventDefault();
|
|
2526
2526
|
}, sx: { textTransform: "none", flex: "1 1 100%", fontWeight: (e) => e.typography.fontWeightRegular, padding: "2px 6px", minHeight: "0px", minWidth: "0px", marginRight: (e) => e.spacing(0.5), "&.Mui-selected": {}, "&.Mui-focusVisible": {}, ...a }, ...t }), o(B, { className: "indicator", sx: { width: "90%", borderRadius: "4px", minWidth: "4px", position: "absolute", bottom: "0", alignSelf: "center", display: "flex" } })] });
|
|
2527
2527
|
}), Ac = q((n) => {
|
|
@@ -2530,7 +2530,7 @@ const Ti = (n) => o(Ei, { ...n }), Bc = q((n) => {
|
|
|
2530
2530
|
for (let i = 0; i < a.length; i++) p.push(o(Bc, { label: a[i].label }, a[i].label));
|
|
2531
2531
|
return p;
|
|
2532
2532
|
}, [a]);
|
|
2533
|
-
return o(
|
|
2533
|
+
return o(Ea, { value: t, onChange: (p, i) => {
|
|
2534
2534
|
e?.(i);
|
|
2535
2535
|
}, variant: "scrollable", scrollButtons: !1, sx: { paddingLeft: (p) => p.spacing(1.5), paddingRight: (p) => p.spacing(1.5), paddingTop: (p) => p.spacing(0), paddingBottom: (p) => p.spacing(0), minHeight: "26px", alignItems: "center", "& .MuiTabs-indicator": { display: "flex", justifyContent: "center", backgroundColor: "transparent" }, "& .MuiTabs-indicatorSpan": { width: "90%", borderRadius: "4px", minWidth: "4px", backgroundColor: (p) => p.palette.primary.main }, "& .MuiTab-root": { marginRight: "0px" }, ...r }, slotProps: { indicator: { children: o("span", { className: "MuiTabs-indicatorSpan" }) } }, ...l, children: c });
|
|
2536
2536
|
}), Ic = q((n) => {
|
|
@@ -2540,7 +2540,7 @@ const Ti = (n) => o(Ei, { ...n }), Bc = q((n) => {
|
|
|
2540
2540
|
const i = [];
|
|
2541
2541
|
for (let s = 0; s < a.length; s++) {
|
|
2542
2542
|
const d = a[s].label;
|
|
2543
|
-
i.push(o(
|
|
2543
|
+
i.push(o(ka, { value: s, sx: { color: (x) => {
|
|
2544
2544
|
if (t === s) return x.palette.primary.main;
|
|
2545
2545
|
} }, children: d }, d));
|
|
2546
2546
|
}
|
|
@@ -2564,10 +2564,10 @@ const Ti = (n) => o(Ei, { ...n }), Bc = q((n) => {
|
|
|
2564
2564
|
}, f = W(() => o(l ? Ic : Ac, { toolbars: g, value: u, onToolbarChange: y, sx: r }), [g, u, r, l]), { sx: h, ...w } = i, v = o(no, { elevation: 2, tabIndex: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 1, borderRadius: "8px", backgroundImage: `linear-gradient(${ye("#fff", Oe(5))}, ${ye("#fff", Oe(5))})`, marginLeft: (S) => S.spacing(1), marginRight: (S) => S.spacing(1), marginTop: (S) => S.spacing(0.5), marginBottom: (S) => S.spacing(0.5), ...h }, ...w, children: m[u] });
|
|
2565
2565
|
return H(B, { ref: a, className: "toolbarWrappers", sx: { display: "flex", flexDirection: "column", paddingTop: (S) => S.spacing(0.5), "*": { userSelect: "none" }, ...d }, ...x, children: [e ? e(f) : f, c ? c(v) : v] });
|
|
2566
2566
|
}));
|
|
2567
|
-
var
|
|
2567
|
+
var Jr, ea;
|
|
2568
2568
|
Ei.displayName = "WorkbookToolbars", (function() {
|
|
2569
|
-
if (
|
|
2570
|
-
|
|
2569
|
+
if (ea) return Jr;
|
|
2570
|
+
ea = 1;
|
|
2571
2571
|
var n = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, t = /^0b[01]+$/i, e = /^0o[0-7]+$/i, r = parseInt, l = typeof Do == "object" && Do && Do.Object === Object && Do, c = typeof self == "object" && self && self.Object === Object && self, p = l || c || Function("return this")(), i = Object.prototype.toString, s = Math.max, d = Math.min, x = function() {
|
|
2572
2572
|
return p.Date.now();
|
|
2573
2573
|
};
|
|
@@ -2591,7 +2591,7 @@ Ei.displayName = "WorkbookToolbars", (function() {
|
|
|
2591
2591
|
var y = t.test(u);
|
|
2592
2592
|
return y || e.test(u) ? r(u.slice(2), y ? 2 : 8) : a.test(u) ? NaN : +u;
|
|
2593
2593
|
}
|
|
2594
|
-
|
|
2594
|
+
Jr = function(u, b, y) {
|
|
2595
2595
|
var f, h, w, v, S, C, D = 0, T = !1, P = !1, R = !0;
|
|
2596
2596
|
if (typeof u != "function") throw new TypeError("Expected a function");
|
|
2597
2597
|
function k(L) {
|
|
@@ -2630,10 +2630,10 @@ Ei.displayName = "WorkbookToolbars", (function() {
|
|
|
2630
2630
|
}, F;
|
|
2631
2631
|
};
|
|
2632
2632
|
})();
|
|
2633
|
-
var
|
|
2634
|
-
|
|
2635
|
-
if (
|
|
2636
|
-
|
|
2633
|
+
var ta, oa, na = { exports: {} }, Dn = {};
|
|
2634
|
+
oa || (oa = 1, na.exports = (function() {
|
|
2635
|
+
if (ta) return Dn;
|
|
2636
|
+
ta = 1;
|
|
2637
2637
|
var n = ae, a = typeof Object.is == "function" ? Object.is : function(i, s) {
|
|
2638
2638
|
return i === s && (i !== 0 || 1 / i == 1 / s) || i != i && s != s;
|
|
2639
2639
|
}, t = n.useState, e = n.useEffect, r = n.useLayoutEffect, l = n.useDebugValue;
|
|
@@ -2659,13 +2659,13 @@ ta || (ta = 1, oa.exports = (function() {
|
|
|
2659
2659
|
});
|
|
2660
2660
|
}, [i]), l(d), d;
|
|
2661
2661
|
};
|
|
2662
|
-
return
|
|
2663
|
-
})()),
|
|
2664
|
-
var
|
|
2662
|
+
return Dn.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : p, Dn;
|
|
2663
|
+
})()), na.exports;
|
|
2664
|
+
var ra, aa, So = { exports: {} }, Zt = { exports: {} }, Lc = Zt.exports;
|
|
2665
2665
|
(function() {
|
|
2666
|
-
if (
|
|
2667
|
-
|
|
2668
|
-
for (var n = (
|
|
2666
|
+
if (aa) return So.exports;
|
|
2667
|
+
aa = 1;
|
|
2668
|
+
for (var n = (ra || (ra = 1, function() {
|
|
2669
2669
|
var x, g, m, u, b, y;
|
|
2670
2670
|
typeof performance < "u" && performance !== null && performance.now ? Zt.exports = function() {
|
|
2671
2671
|
return performance.now();
|
|
@@ -2743,12 +2743,12 @@ var lt = { DOM_UNAVAILABLE_ERROR: "DOM is unavailable server-side. Please use th
|
|
|
2743
2743
|
t && document.removeEventListener(t, a);
|
|
2744
2744
|
} };
|
|
2745
2745
|
const zc = (n) => {
|
|
2746
|
-
const { workbook: a, workbookElement: t, target: e, commands: r, darkMode: l, onNewWorkbook: c = Hc } = n, p =
|
|
2746
|
+
const { workbook: a, workbookElement: t, target: e, commands: r, darkMode: l, onNewWorkbook: c = Hc } = n, p = cn(), [i, s] = _(a?.getSelectedSheet()), [d, x] = _(a?.getSheets().getItems()), g = Y(c, [c]), m = Sa(), u = W(() => [new He("activateTask", e, { label: "Activate Task", description: "Activate Task Pane.", shortcut: { key: "F6" } }), new He("workbookStatistics", e, { label: "Workbook Statistics", description: "Show the workbook statistics.", shortcut: { key: "G", modifiers: [fe.Ctrl, fe.Shift] } }), new He("workbookStatistics", e, { label: "Workbook Statistics", description: "Show the workbook statistics.", shortcut: { key: "G", modifiers: [fe.Ctrl, fe.Shift] } }), new He("showFormat", e, { label: "Show Format", description: "Open the format pane.", shortcut: { key: "F", modifiers: [fe.Ctrl, fe.Shift] } }), new be("newCellStyle", e, { label: "New Cell Style…", scopedLabels: { cellStyle: "New Cell Style" }, description: "Create a new named style can can be quickly used later.", icon: "NewPresetStyles" }), new be("deleteCellStyle", e, { label: "Delete Cell Style", scopedLabels: { cellStyle: "Delete" }, description: "Remove a named style that is no longer needed." }), new be("modifyCellStyle", e, { label: "Modify Cell Style", scopedLabels: { cellStyle: "Modify" }, description: "Update a style with the currently style." }), new He("find", e, { label: "Find", description: "Open the Find window.", icon: "Find", shortcut: [{ key: "F", modifiers: [fe.Ctrl] }, { key: "F5", modifiers: [fe.Shift] }] }), new He("findReplace", e, { label: "Find & Replace", description: "Open the Find & Replace window.", icon: "FindReplace", shortcut: [{ key: "H", modifiers: [fe.Ctrl] }, { key: "H", modifiers: [fe.Ctrl, fe.Alt] }] }), new He("goto", e, { label: "Go To", description: "Open the 'Go To' window.", icon: "GoTo", shortcut: [{ key: "G", modifiers: [fe.Ctrl] }] }), new He("workbookViewToggleExpandFormulaBar", e, { label: "Toggle Expand Formula bar", description: "Expand or collapse the formula bar.", shortcut: { key: "U", modifiers: [fe.Ctrl, fe.Shift] } }), new He("workbookViewToggleShowFormulaBar", e, { label: "View Formula bar", scopedLabels: { view: "Formula Bar" }, description: "Show or hide the formula bar." }), new He("workbookViewToggleShowTabs", e, { label: "View Sheet Tabs", description: "Show or hide the sheet tabs.", scopedLabels: { view: "Sheet Tabs" } }), new He("workbookViewToggleShowStatusBar", e, { label: "View Status Bar", description: "Show or hide the status bar.", scopedLabels: { view: "Status Bar" } }), new He("workbookViewToggleShowHorizontalScrollBar", e, { label: "View Horizontal Scrollbar", description: "Show or hide the horizontal scrollbar.", scopedLabels: { view: "Horizontal Scrollbar" } }), new He("workbookViewToggleShowVerticalScrollBar", e, { label: "View Vertical Scrollbar", description: "Show or hide the vertical scrollbar.", scopedLabels: { view: "Vertical Scrollbar" } }), new be("hideSheet", e, { label: "Hide Sheet", scopedLabels: { sheet: "Hide" }, description: "Hide the sheet from appearing in the tabs. This keeps the data but de-clutters the tabs.", icon: "VisibilityOff" }), new be("deleteSheet", e, { label: "Delete Sheet", scopedLabels: { sheet: "Delete" }, description: "Delete the sheet and all the data." }), new be("addSheet", e, { label: "Insert Sheet", scopedLabels: { sheet: "Insert" }, description: "Insert sheet before the current sheet.", shortcut: [{ key: "F11", modifiers: [fe.Shift] }, { key: "F1", modifiers: [fe.Alt, fe.Shift] }] }), new be("duplicateSheet", e, { label: "Duplicate Sheet", description: "Duplicate the current sheet.", scopedLabels: { sheet: "Duplicate" } }), new be("nextSheet", e, { label: "Next Sheet", scopedLabels: { sheet: "Next" }, description: "Activate the next sheet.", shortcut: [{ key: "PageDown", modifiers: [fe.Ctrl] }] }), new be("previousSheet", e, { label: "Previous Sheet", scopedLabels: { sheet: "Previous" }, description: "Activate the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [fe.Ctrl] }] }), new be("selectNextSheet", e, { label: "Select Next Sheet", scopedLabels: { sheet: "Select Next" }, description: "Select the next sheet.", shortcut: [{ key: "PageDown", modifiers: [fe.Ctrl, fe.Shift] }] }), new be("selectPreviousSheet", e, { label: "Select Previous Sheet", scopedLabels: { sheet: "Select Previous" }, description: "Select the previous sheet.", shortcut: [{ key: "PageUp", modifiers: [fe.Ctrl, fe.Shift] }] }), new be("selectTheme", e, { label: "Theme", description: "Select a theme that coveys a style suitable for your data." }), new be("selectNamed", e, { label: (k) => k?.getName() ?? "Select Named Item", scopedLabels: { namedItem: (k) => k?.getName() ?? "Select" }, description: "Select the item." }), new be("addNamedReference", e, { label: "Define Named Reference", scopedLabels: { namedItem: "Define Name…" }, description: "Add a new named reference. Names can be used as a substitute for cell references.", icon: "InsertNamedRange" }), new be("editNamedReference", e, { label: "Edit Named Reference…", scopedLabels: { namedItem: "Edit…" }, description: "Add a new named reference. Names can be used as a substitute for cell references.", icon: "NamedRangeEdit" }), new be("deleteNamedReference", e, { label: "Delete Named Reference", scopedLabels: { namedItem: "Delete" }, description: "Remove the named reference.", icon: "DeleteNamedRange" }), new He("activeNameBox", e, { label: "Activate Name Box", description: "Move the focus to the name box.", shortcut: { key: "F3", modifiers: [fe.Alt] } }), new He("createNamedReferenceFromSelection", e, { label: "Create from Selection", description: "Automatically generate names from the selected cells.", shortcut: { key: "F3", modifiers: [fe.Ctrl, fe.Shift] } }), new He("activeNameManager", e, { label: "Activate Name Manager", description: `Create, edit, delete, and find all the names used in the workbook.
|
|
2747
2747
|
|
|
2748
2748
|
Names can be used as a substitute for cell references.`, shortcut: { key: "F3", modifiers: [fe.Ctrl] } }), new be("fullScreenToggle", e, { label: "FullScreen", description: "Toggle showing the workbook using the full screen.", shortcut: { key: "F11" }, icon: "FullScreen" }), new be("showScriptEditor", e, { label: "Scripts", scopedLabels: { scripts: "Script Editor…" }, description: "Show the script editor.", icon: "ScriptRun", shortcut: [{ key: "F11", modifiers: [fe.Alt] }] }), new be("executeScript", e, { label: "Run Script", description: "Run the selected or last executed script.", icon: "ScriptRun", shortcut: { key: "F8" } }), new be("executeSelectedScript", e, { label: "Run Script", description: "Run the selected script.", icon: "ScriptRun", shortcut: { key: "F8" } }), new be("saveScripts", e, { label: "Save Script", description: "Save the current scripts.", icon: "ScriptSave" }), new be("maximumWorkbookToggle", e, { label: "Maximize", description: "Toggle showing the workbook maximized.", shortcut: { key: "F10", modifiers: [fe.Ctrl] } }), new be("spellCheck", e, { label: "Spell Check", description: "Check the workbook for spelling mistakes.", shortcut: { key: "F7" } }), new be("calculateAll", e, { label: "Calculate Now", description: "Recalculate all formulas.", icon: "Calculate", shortcut: { key: "F9" } }), new He("closeWorkbook", e, { label: "Close Workbook", description: "Close the workbook.", shortcut: { key: "W", modifiers: [fe.Ctrl] } }), new He("newWorkbook", e, { label: "New Workbook", description: "Create a new workbook in another tab.", icon: "FileNew" })], []), b = W(() => {
|
|
2749
2749
|
let k = null;
|
|
2750
|
-
return k = r ? r.createChildGroup(e, "workbook", !1) : new
|
|
2751
|
-
}, [r, u]), y =
|
|
2750
|
+
return k = r ? r.createChildGroup(e, "workbook", !1) : new er(e, "workbook"), k.addCommands(u, !0), k;
|
|
2751
|
+
}, [r, u]), y = sn(), f = ae.useRef(null), h = Y(() => {
|
|
2752
2752
|
let k, E = null;
|
|
2753
2753
|
const M = b.getCommand("executeScript");
|
|
2754
2754
|
if (M.update({ disabled: !1, context: { getScripts: () => a.getScripts() } }), !M) return;
|
|
@@ -3058,7 +3058,7 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
|
|
|
3058
3058
|
}));
|
|
3059
3059
|
Di.displayName = "WorkbookStrip";
|
|
3060
3060
|
const Pi = q(X((n, a) => {
|
|
3061
|
-
const { workbook: t, commands: e, disabled: r, sx: l, floatReference: c, className: p, ...i } = n, [s, d] =
|
|
3061
|
+
const { workbook: t, commands: e, disabled: r, sx: l, floatReference: c, className: p, ...i } = n, [s, d] = on((E) => E + 1, 0), [x, g] = _(t.getSelectedSheet()), [m, u] = _(x.getSelectedRanges()), [b, y] = _(x.getSelectedCell());
|
|
3062
3062
|
We(t, { onSheetsChange() {
|
|
3063
3063
|
g(t.getSelectedSheet());
|
|
3064
3064
|
} }), We(x.getSelection(), { onChange() {
|
|
@@ -3086,12 +3086,12 @@ const Pi = q(X((n, a) => {
|
|
|
3086
3086
|
}
|
|
3087
3087
|
R ? T.push(ke(tt, { ...v, variant: re.Menuitem, key: "contextBefore:" + T.length, popupCommandKeys: ["convertTableToRange", "deleteTable"], popupScope: "table", scope: "context", commandState: R, quickCommand: "editTable" })) : T.push(ke(N, { command: e.getCommand("insertTable"), ...w, key: "context:" + S.length })), T.push(ke(vi, { ...v, key: "contextBefore:" + T.length }));
|
|
3088
3088
|
}
|
|
3089
|
-
const k = H(le, { children: [o(N, { command: e.getCommand("cut"), ...w }), o(
|
|
3089
|
+
const k = H(le, { children: [o(N, { command: e.getCommand("cut"), ...w }), o(nr, { command: e.getCommand("copy"), ...w }), o(ja, { command: e.getCommand("paste"), ...v, includePasteAllInPopup: !1 }), o(Q, { orientation: "horizontal" }), o(za, { ...v }), o(Q, { orientation: "horizontal" }), o(Aa, { commands: e, ...v, disableSheet: !0 }), o(Ia, { commands: e, ...v, disableSheet: !0 }), o(Ba, { ...v }), T, S] });
|
|
3090
3090
|
return o(B, { ref: a, className: Te("menu", p), sx: { ...l }, ...i, children: k });
|
|
3091
3091
|
}));
|
|
3092
3092
|
Pi.displayName = "WorkbookContextMenu";
|
|
3093
|
-
const
|
|
3094
|
-
const { command: t, ...e } = n, r =
|
|
3093
|
+
const nr = q(X((n, a) => {
|
|
3094
|
+
const { command: t, ...e } = n, r = sn(), [l, c] = _(!1), [p, i] = _("info");
|
|
3095
3095
|
return de(() => {
|
|
3096
3096
|
const s = r.getMode();
|
|
3097
3097
|
c(s?.key === "copy" || s?.key === "cut"), i(s?.key === "cut" ? "warn" : "accent");
|
|
@@ -3103,14 +3103,14 @@ const or = q(X((n, a) => {
|
|
|
3103
3103
|
const i = W(() => ({}), []), s = W(() => ({ commandHook: { beforeExecute: (m, u) => c.closeAll(), onExecute() {
|
|
3104
3104
|
}, onError() {
|
|
3105
3105
|
console.log("onError");
|
|
3106
|
-
} }, disabled: r, parentFloat: c }), [r, c]), d = W(() => ({ variant: re.Menuitem, ...i, ...s }), [i, s]), x = W(() => ({ commands: e, variant: re.Menuitem, parentFloat: c, ...s }), [e, s, c]), g = H(le, { children: [o(
|
|
3106
|
+
} }, disabled: r, parentFloat: c }), [r, c]), d = W(() => ({ variant: re.Menuitem, ...i, ...s }), [i, s]), x = W(() => ({ commands: e, variant: re.Menuitem, parentFloat: c, ...s }), [e, s, c]), g = H(le, { children: [o(nr, { command: e.getCommand("copy"), ...d, variant: re.Menuitem }), [], o(Q, { orientation: "horizontal" }), o(tt, { ...x, popupCommandKeys: ["moveToFront", "moveForward"], quickCommand: "moveToFront" }), o(tt, { ...x, popupCommandKeys: ["moveToBack", "moveBackward"], quickCommand: "moveToBack" }), o(Q, { orientation: "horizontal" }), o(N, { ...d, command: e.getCommand("toggleLockAspectRatio") }), o(Q, { orientation: "horizontal" }), o(tt, { ...x, popupCommandKeys: ["formatDrawAlignLeft", "formatDrawAlignCenter", "formatDrawAlignRight", null, "formatDrawAlignTop", "formatDrawAlignMiddle", "formatDrawAlignBottom", null, "formatDrawDistributeHorz", "formatDrawDistributeVert"], label: "Align", icon: "DrawAlignLeft", tooltip: "Quickly change the placement of your drawings." }), o(Q, { orientation: "horizontal" }), o(tt, { ...x, popupCommandKeys: ["formatAnchorTypeTwoCell", "formatAnchorTypeOneCell", "formatAnchorTypeAbsolute"], label: "Sizing", icon: "DrawResize", tooltip: "Determine how the drawing size will adjust as the cell sizes adjust." }), []] });
|
|
3107
3107
|
return o(B, { ref: a, sx: { paddingTop: "4px", paddingBottom: "4px", ...l }, ...p, children: g });
|
|
3108
3108
|
}));
|
|
3109
3109
|
Ri.displayName = "MovableContextMenu";
|
|
3110
|
-
const Uc = (n) => o(Ri, { ...n }), Gc = (n) => o(Pi, { ...n }), qc = (n) => o(ai, { ...n }), Kc = (n, a) => o(ri, { ref: a, ...n }), Xc = (n) => o(Wt, { ...n }), Yc = (n, a) => o(Hl, { ref: a, ...n }), Zc = (n) => o(Za, { ...n }), Qc = (n) => o(Di, { ...n }), Jc = { fireOnModelChange: !1 },
|
|
3110
|
+
const Uc = (n) => o(Ri, { ...n }), Gc = (n) => o(Pi, { ...n }), qc = (n) => o(ai, { ...n }), Kc = (n, a) => o(ri, { ref: a, ...n }), Xc = (n) => o(Wt, { ...n }), Yc = (n, a) => o(Hl, { ref: a, ...n }), Zc = (n) => o(Za, { ...n }), Qc = (n) => o(Di, { ...n }), Jc = { fireOnModelChange: !1 }, ia = { flex: "1 1 100%", display: "flex", boxSizing: "border-box" }, Mi = q(X((n, a) => {
|
|
3111
3111
|
const { workbook: t, createWorkbookOptions: e, onNewWorkbook: r, onElementLoad: l, autoFocus: c = !1, sx: p, style: i, className: s, onFocus: d, onBlur: x, onKeyDown: g, onRepeatCommandChange: m, commands: u, showFormulaBar: b, formulaBarProps: y, renderFormulaBar: f = Kc, showTabs: h, tabsProps: w, renderTabs: v = Qc, showStatusBar: S, statusBarProps: C, renderStatusBar: D = Zc, toolbarProps: T, renderToolbar: P = Ti, contextMenuSx: R, renderContextMenu: k = Gc, renderFilterMenu: E = qc, renderMovableMenu: M = Uc, renderLoadingPanel: I = Xc, loadingPanelProps: F, sheetProps: L, renderSheet: O = Yc, mainWrapper: z, showHorizontalScrollbar: ie, showVerticalScrollbar: J, gridTheme: pe, headersTheme: j, enableDarkImages: K, ...ee } = n, V = Ke(), A = Gn(), Z = W(() => {
|
|
3112
3112
|
const $ = { theme: A.getDefaultTheme(), ...e };
|
|
3113
|
-
return t ?? new
|
|
3113
|
+
return t ?? new Bn($);
|
|
3114
3114
|
}, [t]), oe = xe(null), [Be, ve] = _(!1), Ne = xe(null), _e = W(() => o(B, { className: "sheetxl-viewport", sx: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute", pointerEvents: "none !important", "& > :first-of-type": { position: "relative" } }, ref: Ne }), []), [Ve, ne] = _(!1), [G, se] = _(!1), Re = U(() => {
|
|
3115
3115
|
ne(!0);
|
|
3116
3116
|
}, []), qe = xe(null), Ee = Ct(a, () => ({ isWorkbookElement: () => !0, getWorkbook: () => Z, getSheetElement: () => oe.current, getViewportElement: () => Ne.current, getFormulaBarElement: () => qe.current, focus() {
|
|
@@ -3118,7 +3118,7 @@ const Uc = (n) => o(Ri, { ...n }), Gc = (n) => o(Pi, { ...n }), qc = (n) => o(ai
|
|
|
3118
3118
|
} }), [Z]), rt = xe(null);
|
|
3119
3119
|
St(() => {
|
|
3120
3120
|
!Ve || !Ee.current || (async () => (rt.current !== l && (await l?.({ source: Ee.current }), rt.current = l), se(!0)))();
|
|
3121
|
-
}, [Ve, Ee.current]),
|
|
3121
|
+
}, [Ve, Ee.current]), Xr(Ee.current);
|
|
3122
3122
|
const Xe = U(($) => (oe.current?.submitEdit(), !0), []), dt = U(() => {
|
|
3123
3123
|
requestAnimationFrame(() => {
|
|
3124
3124
|
oe?.current?.focus();
|
|
@@ -3135,30 +3135,30 @@ const Uc = (n) => o(Ri, { ...n }), Gc = (n) => o(Pi, { ...n }), qc = (n) => o(ai
|
|
|
3135
3135
|
oe.current.getSheet() !== ue && Ae(!1), Ae(!0);
|
|
3136
3136
|
}) : Ae(!0);
|
|
3137
3137
|
}) }, Jc);
|
|
3138
|
-
const [Ji, io] =
|
|
3138
|
+
const [Ji, io] = on(($) => $ + 1, 0), _t = Z?.getView();
|
|
3139
3139
|
We(_t, { onViewChange: ($) => {
|
|
3140
3140
|
io();
|
|
3141
3141
|
} });
|
|
3142
|
-
const lo = pe ?? V, Ue = W(() =>
|
|
3142
|
+
const lo = pe ?? V, Ue = W(() => Qr(V, lo), [V, lo]), lr = j ?? V, el = W(() => Qr(V, lr), [V, lr]), [sr, tl] = _(null);
|
|
3143
3143
|
U(() => {
|
|
3144
3144
|
oe.current.focus();
|
|
3145
3145
|
}, []);
|
|
3146
|
-
const Fe = zc({ workbook: Z, workbookElement: Ee.current, target: () => oe.current, commands: u, darkMode: Ue.body.darkMode, onNewWorkbook: r }), so = xe(null), [
|
|
3147
|
-
|
|
3146
|
+
const Fe = zc({ workbook: Z, workbookElement: Ee.current, target: () => oe.current, commands: u, darkMode: Ue.body.darkMode, onNewWorkbook: r }), so = xe(null), [mn, cr] = _(!1), [dr, pr] = _(null), [ur, ol] = _(ho.Top), [co, nl] = _(Fl.EmptyBounds), hn = U(() => {
|
|
3147
|
+
cr(!1), pr(null);
|
|
3148
3148
|
}, []), po = U(($, ue, Ae = ho.Top) => {
|
|
3149
|
-
nl($), ol(Ae),
|
|
3149
|
+
nl($), ol(Ae), pr(ue), so.current !== null && setTimeout(() => {
|
|
3150
3150
|
so.current !== null && so.current.update();
|
|
3151
|
-
}, 160),
|
|
3152
|
-
}, []), [
|
|
3151
|
+
}, 160), cr(!0);
|
|
3152
|
+
}, []), [Gd, mr] = _("sheet"), Et = h ?? _t?.isShowTabs(), Dt = ie ?? _t?.isShowHorizontalScrollbar(), rl = b ?? _t?.isShowFormulaBar(), Ao = S ?? _t?.isShowStatusBar(), hr = J ?? _t?.isShowVerticalScrollbar(), Ut = Ue?.header?.edgeStrokeFill || "rgb(171,171,171)", al = W(() => Ao ? D({ sheet: Me, gridStyle: Ue, ...C }) : null, [D, C, Ao, Ue, Me]), il = W(() => P({ commands: Fe, workbook: Ee.current, ...T }), [Fe, P, T, V]), [ll, { width: gn }] = zt(), Pt = gn === 0 || gn > 560, fn = W(() => {
|
|
3153
3153
|
if (!Et) return null;
|
|
3154
3154
|
let $ = v({ background: Ue.body.fill, borderWidth: 1, borderColor: Ut, gridTheme: lo, gridStyle: Ue, onBeforeUserChange: Xe, onUserChange: dt, workbook: Z, commands: Fe, sheetTabProps: {}, ...w });
|
|
3155
3155
|
return Pt || ($ = o("div", { style: { flex: "none", display: "flex" }, children: $ })), $;
|
|
3156
|
-
}, [v, w, V, Z, lo, Pt, Fe, Et]),
|
|
3156
|
+
}, [v, w, V, Z, lo, Pt, Fe, Et]), gr = U(($) => {
|
|
3157
3157
|
const { style: ue, ...Ae } = $;
|
|
3158
3158
|
let je = null, Ye = null, $e = null;
|
|
3159
|
-
if (Dt && (Ye = o("div", { style: { display: "flex", flex: "1 1 100%", borderTop: `solid ${Ut} 1px`, flexDirection: "column", justifyContent: "center" }, children: o(
|
|
3159
|
+
if (Dt && (Ye = o("div", { style: { display: "flex", flex: "1 1 100%", borderTop: `solid ${Ut} 1px`, flexDirection: "column", justifyContent: "center" }, children: o(Sr, { ...Ae, style: { paddingLeft: "4px", paddingRight: "4px", ...ue }, endGap: 700, sheet: Me, onShowTooltip: (Ge) => {
|
|
3160
3160
|
po({ x: Ge.anchor.x, y: Ge.anchor.y, width: 0, height: 0 }, Ge.display, Ge.placement);
|
|
3161
|
-
}, onCloseTooltip: () =>
|
|
3161
|
+
}, onCloseTooltip: () => hn() }) })), Et && Pt && ($e = fn), Et && Pt && !Dt && ($e = H(B, { sx: { display: "flex", flex: "1", position: "relative", alignContent: "center" }, children: [$e, o(B, { sx: { borderTop: `solid ${Ut} 1px`, flex: "1" } })] })), $e && Dt) je = o(Qn, { position: Z.getView().getTabRatio() / 10 + "%", onPositionChange: ({ percent: Ge }) => {
|
|
3162
3162
|
Z.getView().setTabRatio(Math.round(10 * Ge));
|
|
3163
3163
|
}, minBefore: "200px", minAfter: "180px", resizerProps: { style: { minWidth: "11px", backgroundImage: `url("data:image/svg+xml,%3Csvg width='6.4' height='12' viewBox='0 0 9.6 16' version='1.1' fill='${V.palette.text.icon ?? V.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='M 9.60008,14.40009 C 9.60008,15.28374 8.88368,16 8.00003,16 7.11639,16 6.40012,15.28374 6.40012,14.40009 c 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40012 c 0,0.88364 -0.7164,1.60004 -1.60005,1.60004 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60004 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40006 c 0,0.88365 -0.7164,1.60005 -1.60005,1.60005 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60005 C 6.40012,0.71626 7.11639,0 8.00003,0 8.88368,0 9.60008,0.71626 9.60008,1.59991 M 3.19996,14.40009 C 3.19996,15.28374 2.48369,16 1.60005,16 0.7164,16 0,15.28374 0,14.40009 c 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40012 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 C 0.7164,9.60001 0,8.88361 0,7.99997 0,7.11632 0.7164,6.39992 1.60005,6.39992 c 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40006 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 0.7164,3.19996 0,2.48356 0,1.59991 0,0.71626 0.7164,0 1.60005,0 2.48369,0 3.19996,0.71626 3.19996,1.59991' /%3E%3C/svg%3E%0A")`, backgroundRepeat: "no-repeat", backgroundPosition: "center", borderTop: `solid ${Ut} 1px`, borderBottom: "solid 3px transparent" } }, elementBefore: $e, elementAfter: Ye });
|
|
3164
3164
|
else if (Dt) je = Ye;
|
|
@@ -3167,9 +3167,9 @@ const Uc = (n) => o(Ri, { ...n }), Gc = (n) => o(Pi, { ...n }), qc = (n) => o(ai
|
|
|
3167
3167
|
je = $e;
|
|
3168
3168
|
}
|
|
3169
3169
|
return o(B, { sx: { display: "flex", flex: "1", position: "relative", alignContent: "center" }, children: je });
|
|
3170
|
-
}, [Me, Xe, Z, Ue, lo, Fe, Et, Dt, Ao, Pt]), [Je, uo] = ae.useState(null), sl = W(() => ({ placement: "right-start", ...Je?.popperProps }), [Je?.popperProps]), { reference:
|
|
3170
|
+
}, [Me, Xe, Z, Ue, lo, Fe, Et, Dt, Ao, Pt]), [Je, uo] = ae.useState(null), sl = W(() => ({ placement: "right-start", ...Je?.popperProps }), [Je?.popperProps]), { reference: fr, component: cl } = ao({ label: "contextMenu", popperProps: sl, anchor: Je?.anchor ?? { getBoundingClientRect: () => new DOMRect(Je?.clientX || 0, Je?.clientY || 0) }, onClose: () => uo(null), createPopupPanel: Je?.createPopupPanel });
|
|
3171
3171
|
de(() => {
|
|
3172
|
-
Je ?
|
|
3172
|
+
Je ? fr.open(0) : fr.close(0);
|
|
3173
3173
|
}, [Je]);
|
|
3174
3174
|
const dl = Y(($, ue) => {
|
|
3175
3175
|
if ($?.isDefaultPrevented()) return !0;
|
|
@@ -3177,7 +3177,7 @@ const Uc = (n) => o(Ri, { ...n }), Gc = (n) => o(Pi, { ...n }), qc = (n) => o(ai
|
|
|
3177
3177
|
const { floatReference: je } = Ae;
|
|
3178
3178
|
return E({ filter: ue, commands: Fe, floatReference: je, sx: { ...R } });
|
|
3179
3179
|
} });
|
|
3180
|
-
}, [E, R, Fe, Z, Je]),
|
|
3180
|
+
}, [E, R, Fe, Z, Je]), br = Y(($) => {
|
|
3181
3181
|
if ($.originalEvent?.isDefaultPrevented()) return !0;
|
|
3182
3182
|
$.originalEvent?.preventDefault(), uo({ clientX: $.clientX, clientY: $.clientY, createPopupPanel: (ue) => {
|
|
3183
3183
|
const { floatReference: Ae } = ue;
|
|
@@ -3199,7 +3199,7 @@ const Uc = (n) => o(Ri, { ...n }), Gc = (n) => o(Pi, { ...n }), qc = (n) => o(ai
|
|
|
3199
3199
|
oe.current?.getGridElement()?.scrollCellCoordsIntoView($).then((ue) => {
|
|
3200
3200
|
requestAnimationFrame(() => {
|
|
3201
3201
|
const Ae = Me.getView().getZoomScale() / 100, je = Me.getColumnHeaders().findOffset($.colIndex + 1) * Ae, Ye = Me.getRowHeaders().findOffset($.rowIndex + 1) * Ae, $e = oe.current?.getGridElement()?.getRelativePointFromClient(0, 0) || { x: 0, y: 0 };
|
|
3202
|
-
|
|
3202
|
+
br({ clientX: je - $e.x - ue.left + 6, clientY: Ye - $e.y - ue.top + 6 });
|
|
3203
3203
|
});
|
|
3204
3204
|
});
|
|
3205
3205
|
});
|
|
@@ -3207,24 +3207,24 @@ const Uc = (n) => o(Ri, { ...n }), Gc = (n) => o(Pi, { ...n }), qc = (n) => o(ai
|
|
|
3207
3207
|
const ul = Y(($) => {
|
|
3208
3208
|
Fe?.dispatchToFocusedCommand($);
|
|
3209
3209
|
}, [Fe]), ml = Y(() => {
|
|
3210
|
-
|
|
3210
|
+
Xr(Ee.current);
|
|
3211
3211
|
}, [Z, Ee.current]), hl = U(() => {
|
|
3212
|
-
|
|
3212
|
+
mr("sheet");
|
|
3213
3213
|
}, []), gl = U(() => {
|
|
3214
|
-
|
|
3214
|
+
mr("formulaBar");
|
|
3215
3215
|
}, []), fl = Y(($) => {
|
|
3216
3216
|
const { style: ue, ...Ae } = $;
|
|
3217
|
-
return o(
|
|
3217
|
+
return o(Sr, { style: { ...ue, paddingTop: "4px", paddingBottom: "4px" }, ...Ae, sheet: Me, endGap: 700, onShowTooltip: (je) => {
|
|
3218
3218
|
po(je.anchor, je.display, ho.Left);
|
|
3219
|
-
}, onCloseTooltip: () =>
|
|
3219
|
+
}, onCloseTooltip: () => hn() });
|
|
3220
3220
|
}, [Me]);
|
|
3221
3221
|
de(() => {
|
|
3222
3222
|
c && oe && oe.current && oe.current.focus();
|
|
3223
3223
|
}, []);
|
|
3224
|
-
const [Io,
|
|
3225
|
-
Fe?.getCommand("openWorkbook") && ($.type === "dragenter" || $.type === "dragover" ? $.dataTransfer?.types.includes("Files") ? $.dataTransfer.files[0]?.type?.startsWith("image/") || $.dataTransfer.items[0]?.type?.startsWith("image/") || $.dataTransfer.types.length === 1 &&
|
|
3224
|
+
const [Io, bn] = ae.useState(null), xn = U(($) => {
|
|
3225
|
+
Fe?.getCommand("openWorkbook") && ($.type === "dragenter" || $.type === "dragover" ? $.dataTransfer?.types.includes("Files") ? $.dataTransfer.files[0]?.type?.startsWith("image/") || $.dataTransfer.items[0]?.type?.startsWith("image/") || $.dataTransfer.types.length === 1 && bn("Drop to open") : ($.dataTransfer?.types.includes("text/html") || $.dataTransfer?.types.includes("text/plain"), $.dataTransfer.effectAllowed = "none", $.dataTransfer.dropEffect = "none") : $.type === "dragleave" && bn(null), $.preventDefault());
|
|
3226
3226
|
}, [Fe]), bl = Y(($) => {
|
|
3227
|
-
if (Fe?.getCommand("openWorkbook") && ($.preventDefault(), $.stopPropagation(),
|
|
3227
|
+
if (Fe?.getCommand("openWorkbook") && ($.preventDefault(), $.stopPropagation(), bn(null), $.dataTransfer.files && $.dataTransfer.files.length > 0)) {
|
|
3228
3228
|
const ue = $.dataTransfer.files[0];
|
|
3229
3229
|
if (!ue) return;
|
|
3230
3230
|
if (ue?.type?.startsWith("image/")) {
|
|
@@ -3235,7 +3235,7 @@ const Uc = (n) => o(Ri, { ...n }), Gc = (n) => o(Pi, { ...n }), qc = (n) => o(ai
|
|
|
3235
3235
|
Fe?.getCommand("insertImageFromFile")?.execute({ file: ue, options: { bounds: { x: Ye.x, y: Ye.y } }, goto: { range: { ...$e } } });
|
|
3236
3236
|
} else Fe?.getCommand("openWorkbook")?.execute(ue);
|
|
3237
3237
|
}
|
|
3238
|
-
}, [Fe, Io]), xl = W(() => Io ? o(B, { sx: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", pointerEvents: "none", display: "flex", justifyContent: "center", alignItems: "center", background: ($) => $.palette.divider, color: ($) => $.palette.primary.dark }, children: o(Pe, { variant: "h4", children: Io }) }) : null, [Io]),
|
|
3238
|
+
}, [Fe, Io]), xl = W(() => Io ? o(B, { sx: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", pointerEvents: "none", display: "flex", justifyContent: "center", alignItems: "center", background: ($) => $.palette.divider, color: ($) => $.palette.primary.dark }, children: o(Pe, { variant: "h4", children: Io }) }) : null, [Io]), xr = xe(null), yl = W(() => o(Wn, { in: !G, nodeRef: xr, timeout: 500, classNames: "animating", unmountOnExit: !0, children: o(B, { style: { display: "flex", alignItems: "center", justifyContent: "center", left: "0px", top: "0px", width: "100%", height: "100%", pointerEvents: G ? "none" : p?.pointerEvents, position: "absolute", boxSizing: "border-box" }, children: I({ ref: xr, transitionDelay: "0", transparentBackground: !1, sx: { opacity: G ? 0 : p?.opacity, pointerEvents: G ? "none" : p?.pointerEvents, position: "absolute", left: "0px", top: "0px", width: "100%", height: "100%", ...F } }) }) }), [G, I, F]), wl = W(() => f({ sx: { marginTop: ($) => $.spacing(0.25), marginLeft: ($) => $.spacing(1), marginRight: ($) => $.spacing(1) }, workbook: Z, sheetElement: oe.current, gridStyle: Ue, onFocus: gl, ...y, NamedCollectionEditorProps: { restoreFocus: ($) => oe.current.focus($), ...y?.NamedCollectionEditorProps, commandPopupButtonProps: { commands: Fe, ...y?.NamedCollectionEditorProps?.commandPopupButtonProps } } }, qe), [f, y, Z, Ue, Fe, G]), Sl = U(($) => {
|
|
3239
3239
|
const { movable: ue, ...Ae } = $, je = { movable: ue, onContextMenuCapture: (Ge) => {
|
|
3240
3240
|
pl(Ge, ue);
|
|
3241
3241
|
}, ...Ae }, Ye = ue.getContent().getType();
|
|
@@ -3250,7 +3250,7 @@ const Uc = (n) => o(Ri, { ...n }), Gc = (n) => o(Pi, { ...n }), qc = (n) => o(ai
|
|
|
3250
3250
|
$e = o($l, { ...Ge });
|
|
3251
3251
|
}
|
|
3252
3252
|
return o("div", { style: { position: "absolute", clipPath: "inset(0px)", display: "flex", alignItems: "stretch", justifyContent: "stretch", pointerEvents: "all" }, children: $e }, ue.getUUID());
|
|
3253
|
-
}, []),
|
|
3253
|
+
}, []), yr = W(() => O({ style: ia, onFocus: hl, gridStyle: Ue, headersStyle: el, sheet: Me, commands: Fe, onSheetContextMenu: br, onViewportChange: ($) => {
|
|
3254
3254
|
tl($);
|
|
3255
3255
|
}, showScrollbars: !1, viewportComponent: _e, onRepeatCommandChange: m, onElementLoad: Re, onShowColumnTooltip: ($) => {
|
|
3256
3256
|
po($.anchor, $.display, ho.Top);
|
|
@@ -3258,14 +3258,14 @@ const Uc = (n) => o(Ri, { ...n }), Gc = (n) => o(Pi, { ...n }), qc = (n) => o(ai
|
|
|
3258
3258
|
po($.anchor, $.display, ho.Right);
|
|
3259
3259
|
}, onShowTooltip: ($) => {
|
|
3260
3260
|
po({ x: $.anchor.x, y: $.anchor.y, width: 0, height: 0 }, $.display, $.placement);
|
|
3261
|
-
}, onCloseTooltip: () =>
|
|
3261
|
+
}, onCloseTooltip: () => hn(), renderMovable: Sl, ...L, cellRenderProps: { onFilterButtonMouseDown: ($, ue) => {
|
|
3262
3262
|
L?.cellRenderProps?.onFilterButtonMouseDown($, ue), dl($, ue);
|
|
3263
3263
|
}, ...L?.cellRenderProps } }, oe), [Fe, L, Me, Ue, m]), vl = W(() => {
|
|
3264
|
-
let $ = o(vs, { ref: ll, style:
|
|
3264
|
+
let $ = o(vs, { ref: ll, style: ia, viewport: sr, touchElement: oe.current?.getGridElement()?.stage, onScrollViewport: (ue) => {
|
|
3265
3265
|
oe.current?.getGridElement()?.scrollTo(ue);
|
|
3266
|
-
}, showHorizontalScrollbar: Dt || Et, showVerticalScrollbar:
|
|
3267
|
-
return Pt ||
|
|
3268
|
-
}, [Dt, Et,
|
|
3266
|
+
}, showHorizontalScrollbar: Dt || Et, showVerticalScrollbar: hr, createHorizontalScrollbar: gr, createVerticalScrollbar: fl, children: yr });
|
|
3267
|
+
return Pt || gn === 0 || ($ = H(le, { children: [$, fn] })), z ? z($) : $;
|
|
3268
|
+
}, [Dt, Et, gr, hr, sr, Pt, yr, fn, V, z]), kl = W(() => o(vt, { arrow: !0, disableInteractive: !0, open: mn, title: o(Pe, { variant: "subtitle2", component: "div", children: dr }), placement: ur, slotProps: { transition: { timeout: { exit: 0 } }, popper: { popperRef: so, sx: { "& .MuiTooltip-tooltip": { padding: "2px 6px", "& .MuiTooltip-arrow": { display: mn ? "visible" : "none" } } }, anchorEl: { getBoundingClientRect: () => new DOMRect(co.x, co.y, co.width, co.height) }, modifiers: [{ name: "offset", options: { offset: [0, 0] } }] } }, children: o(B, {}) }), [mn, dr, ur, co, so]), Cl = W(() => ({ boxSizing: "border-box", background: ($) => $.palette.mode !== "dark" ? Ue.header.fill : $.palette.background.paper, "& *": { ...us(V), fontWeight: 400 }, "&.Mui-focusVisible": {}, "& .viewport-overlay": { borderRight: `solid ${Ut} 1px` }, ...p }), [p, Ue]), Tl = W(() => o(B, { sx: { marginBottom: ($) => $.spacing(0.75) } }), []), El = W(() => ({ flex: "1 1 100%", width: "100%", display: "flex", flexDirection: "column", opacity: G ? void 0 : 0, "--sxl-app-color-high-contrast": V.palette.primary.main, "--sxl-app-color-primary": V.palette.primary.main, "--sxl-app-color-primary-dark": V.palette.primary.dark, "--sxl-app-color-primary-light": V.palette.primary.light, "--sxl-app-color-info": V.palette.info.main, "--sxl-app-color-info-dark": V.palette.info.dark, "--sxl-app-color-info-light": V.palette.info.light, "--sxl-app-color-secondary": V.palette.secondary.main, "--sxl-app-color-secondary-dark": V.palette.secondary.dark, "--sxl-app-color-secondary-light": V.palette.secondary.light, "--sxl-app-color-success": V.palette.success.main, "--sxl-app-color-success-dark": V.palette.success.dark, "--sxl-app-color-success-light": V.palette.success.light, "--sxl-app-color-warning": V.palette.warning.main, "--sxl-app-color-warning-dark": V.palette.warning.dark, "--sxl-app-color-warning-light": V.palette.warning.light, "--sxl-app-color-error": V.palette.error.main, "--sxl-app-color-error-dark": V.palette.error.dark, "--sxl-app-color-error-light": V.palette.error.light, "--sxl-app-color-text": V.palette.text.primary, "--sxl-app-color-text-secondary": V.palette.text.secondary, "--sxl-app-color-text-disabled": V.palette.text.disabled, "--sxl-app-color-background": V.palette.background.paper, "--sxl-app-color-button-surface": V.palette.grey[600], "--sxl-app-color-shadow": V.palette.action.focus, "--sxl-app-color-grey": V.palette.grey[500], "--sxl-app-filter-dark-invert": Ue.body.darkMode && K ? "hue-rotate(180deg) invert(1) brightness(95%)" : "none", "--sxl-app-image-background": Ue.body.darkMode ? `linear-gradient(${ye("#fff", Oe(5))}, ${ye("#fff", Oe(5))})` : void 0 }), [Ue, V, G]), Dl = W(() => Te(Va), []);
|
|
3269
3269
|
return H(no, { className: Te("sheetxl-workbook", jc, { "Mui-focusVisible": Be }, Wc, s), sx: Cl, style: i, square: !1, ...ee, ref: Ee, onFocus: ($) => {
|
|
3270
3270
|
ve(!0), ml(), d?.($);
|
|
3271
3271
|
}, onBlur: ($) => {
|
|
@@ -3277,7 +3277,7 @@ const Uc = (n) => o(Ri, { ...n }), Gc = (n) => o(Pi, { ...n }), qc = (n) => o(ai
|
|
|
3277
3277
|
const ue = new Image();
|
|
3278
3278
|
ue.src = $.target.src, $.dataTransfer.setDragImage(ue, 1, 1);
|
|
3279
3279
|
}
|
|
3280
|
-
}, onDragEnter:
|
|
3280
|
+
}, onDragEnter: xn, onDragLeave: xn, onDragOver: xn, onDrop: bl, children: [H("div", { className: Dl, style: El, children: [il, rl ? wl : null, Tl, vl, al, kl, cl, xl] }), yl] });
|
|
3281
3281
|
}));
|
|
3282
3282
|
Mi.displayName = "WorkbookElement";
|
|
3283
3283
|
const ed = (n = !1, a = !1) => a ? null : { "& input:not(:focus):not(:hover)": { color: (t) => t.palette.text.secondary }, backgroundColor: (t) => ye(t.palette.background.paper, 0.6), borderRadius: (t) => `${t.shape.borderRadius}px`, border: (t) => `solid ${n ? t.palette.divider : "transparent"} 1px`, "&.Mui-disabled": { border: (t) => `solid ${n ? t.palette.divider : "transparent"} 1px` }, "&:focus-within:not([disabled])": { backgroundColor: (t) => t.palette.background.paper }, "&:hover:not([disabled])": { border: (t) => `solid ${n ? t.palette.text?.primary : t.palette.divider} 1px`, backgroundColor: null }, "&.Mui-focusVisible": { outline: (t) => `solid ${t.palette.primary.main} 1px !important`, border: (t) => `1px solid ${t.palette?.primary?.main} !important` } }, Ni = q(X((n, a) => {
|
|
@@ -3308,8 +3308,8 @@ const ed = (n = !1, a = !1) => a ? null : { "& input:not(:focus):not(:hover)": {
|
|
|
3308
3308
|
}, value: u }), o(B, { ref: h, sx: { position: "absolute", visibility: "hidden", top: "-9999px", fontWeight: "600 !important", whiteSpace: "pre", fontStyle: u !== y ? "italic" : void 0, fontFamily: (k) => k.typography.fontFamily, letterSpacing: "0.00938em" }, children: u || l })] }) }) });
|
|
3309
3309
|
}));
|
|
3310
3310
|
Ni.displayName = "WorkbookTitle";
|
|
3311
|
-
const
|
|
3312
|
-
const { title: t, commands: e, className: r, ...l } = n, c =
|
|
3311
|
+
const td = q(X((n, a) => {
|
|
3312
|
+
const { title: t, commands: e, className: r, ...l } = n, c = cn(), [p, i] = _(!1), [s, d] = _(!1), x = xe(null), [g, m] = on((T) => T + 1, 0), [u, { width: b }] = zt(), y = Ie(e, ["editTable"])[0].context(), f = y.table(), [h, w] = _(() => f ? y.getNames().getRanges(f.getRange()) : null), v = W(() => f?.getName() ?? "", [f]);
|
|
3313
3313
|
We(y.table(), { onAnchorCoordsChange(T) {
|
|
3314
3314
|
w(y.getNames().getRanges(T.getRange()));
|
|
3315
3315
|
}, onProtectedChange(T) {
|
|
@@ -3350,7 +3350,12 @@ const ap = q(X((n, a) => {
|
|
|
3350
3350
|
c.showError(P);
|
|
3351
3351
|
}
|
|
3352
3352
|
} }), o(Q, { orientation: "horizontal", sx: { marginTop: (T) => T.spacing(1.5), marginBottom: (T) => T.spacing(0.75) } }), o(B, { sx: { display: "flex", flex: "1 1 100%", alignItems: "center", justifyContent: "start", flexDirection: "column", marginTop: (T) => T.spacing(2), marginBottom: (T) => T.spacing(1) }, children: H("div", { style: { display: "flex", alignItems: "start", gap: "2px" }, children: [o(_a, { table: f, styles: y.styles(), bodyStyle: y.bodyStyle(), cellHeight: 30, isLive: !0 }), o(Fi, { command: e.getCommand("formatTableStyle"), commands: e, disabledQuickKey: !0 })] }) }), o(Q, { orientation: "horizontal" }), H(B, { className: fc, children: [o(N, { variant: re.Menuitem, command: e.getCommand("convertTableToRange"), commandState: f }), o(N, { variant: re.Menuitem, commandState: f, command: e.getCommand("deleteTable") })] })] })] }) });
|
|
3353
|
-
})),
|
|
3353
|
+
})), od = (n, a) => {
|
|
3354
|
+
const { model: t, commands: e, entryKey: r, frame: l, ...c } = n;
|
|
3355
|
+
return o(td, { ref: a, commands: e, ...c });
|
|
3356
|
+
}, nd = () => {
|
|
3357
|
+
Jn.register("plugin-table", { icons: {} }), tn.registerTaskPane({ key: "tableDetails", getTitle: () => "Table Details", getIcon: () => "Table", renderTaskPane: od }, !0);
|
|
3358
|
+
}, rd = q((n) => {
|
|
3354
3359
|
const { table: a, tableStyle: t, selectedTableStyleName: e, onSelectTableStyleName: r, styles: l, hasContextMenu: c = !0, bodyStyle: p, parentFloat: i, commands: s, disabled: d, commandHook: x, useCanvasPreview: g = !0, canvas: m, ...u } = n, b = U((w) => {
|
|
3355
3360
|
const v = { variant: re.Menuitem, commandHook: x, context: "table" }, S = H(le, { children: [o(N, { ...v, command: s.getCommand("formatTableStyleClearCellStyles"), commandState: t, disabled: d }), o(N, { ...v, style: { fontWeight: 550 }, command: s.getCommand("formatTableStyle"), commandState: { name: t.getName() }, disabled: d }), o(Q, { orientation: "horizontal" }), o(N, { ...v, command: s.getCommand("setDefaultTableStyle"), commandState: t.getName(), disabled: d }), o(Q, { orientation: "horizontal" }), o(N, { ...v, command: s.getCommand("deleteTableStyle"), commandState: t?.getName(), disabled: d || !t || t.isBuiltIn() })] });
|
|
3356
3361
|
return ge({ ...w, children: o(B, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: o(B, { sx: { overflow: "auto", flex: "1 1 100%" }, children: S }) }) });
|
|
@@ -3361,7 +3366,7 @@ const ap = q(X((n, a) => {
|
|
|
3361
3366
|
let h = o(bt, { sx: { borderRadius: "2px", padding: "2px", margin: "0px 0px", display: "flex", border: (w) => `solid ${y ? w.palette.primary.dark : "transparent"} 1px` }, tooltipProps: { label: t.getName() ?? "None", placement: "bottom-start" }, disabled: d, icon: null, onClick: () => {
|
|
3362
3367
|
r?.(t?.getName());
|
|
3363
3368
|
}, ...u, children: f }, t.getName());
|
|
3364
|
-
return c && (h = o(
|
|
3369
|
+
return c && (h = o(Ra, { label: a.getStyleOptions().name, parentFloat: i, createPopupPanel: b, children: h })), h;
|
|
3365
3370
|
}), Fi = q(X((n, a) => {
|
|
3366
3371
|
const { commands: t, command: e, commandHook: r, selectedTable: l, onSelectTableStyleName: c, disabled: p = !1, bodyStyle: i, disabledQuickKey: s = !1, usePreviewIcon: d = !1, ...x } = n;
|
|
3367
3372
|
jt(e);
|
|
@@ -3370,7 +3375,7 @@ const ap = q(X((n, a) => {
|
|
|
3370
3375
|
u && (b = "editTable");
|
|
3371
3376
|
const y = W(() => ((R, k) => {
|
|
3372
3377
|
const E = { rowStart: 0, colStart: 0, rowEnd: 4, colEnd: 4 };
|
|
3373
|
-
return new
|
|
3378
|
+
return new _n({ initialAnchor: E, styles: k, json: { name: "PreviewTable", ref: E, description: "PreviewTable", headerRowCount: 1, totalsRowCount: 0, styleOptions: R } });
|
|
3374
3379
|
})(u?.getStyleOptions(), m?.()), [m?.().getDefaultTableStyle(), u?.getStyleOptions()]), f = u ?? y, [h, w] = _(f);
|
|
3375
3380
|
de(() => {
|
|
3376
3381
|
w(f);
|
|
@@ -3382,7 +3387,7 @@ const ap = q(X((n, a) => {
|
|
|
3382
3387
|
C.current || (C.current = document.createElement("canvas"));
|
|
3383
3388
|
const M = (j) => {
|
|
3384
3389
|
const K = m().getTableStyle(j);
|
|
3385
|
-
return K ? o(
|
|
3390
|
+
return K ? o(rd, { table: h, tableStyle: K, selectedTableStyleName: h.getStyleOptions().name, bodyStyle: g.bodyStyle(), commands: k, commandHook: r, canvas: C.current, ...E }, j) : null;
|
|
3386
3391
|
}, I = (j, K, ee = !0) => {
|
|
3387
3392
|
const V = [];
|
|
3388
3393
|
for (let A = 0; A < K.length; A++) {
|
|
@@ -3412,7 +3417,7 @@ const ap = q(X((n, a) => {
|
|
|
3412
3417
|
if (!g || !d) return e?.icon();
|
|
3413
3418
|
}, [h, v, T, e]);
|
|
3414
3419
|
return o(Se, { ref: a, quickCommand: s ? void 0 : b, createPopupPanel: D, commands: t, label: e?.label(), commandState: u, commandHook: r, selected: u !== null, createTooltip: ({ children: R }, k) => o(nt, { label: e?.label(), description: e?.description(), disabled: k, children: R }), disabled: T, icon: P, ...x });
|
|
3415
|
-
})),
|
|
3420
|
+
})), ad = q(X((n, a) => {
|
|
3416
3421
|
const { command: t, commandHook: e, selectedTheme: r, onSelectTheme: l, disabled: c = !1, darkMode: p, label: i, icon: s, variant: d, ...x } = n;
|
|
3417
3422
|
jt(t);
|
|
3418
3423
|
const g = t?.context()?.themes, m = r || t?.context()?.theme, u = p ?? t?.context()?.darkMode, b = c || t?.disabled(), y = Y((h) => {
|
|
@@ -3423,15 +3428,15 @@ const ap = q(X((n, a) => {
|
|
|
3423
3428
|
return (b || w) && (D = o("div", { children: D })), o(Zn, { command: t, placement: d === re.Toolbar ? "bottom-start" : "right-start", disabled: b || w, ...C, children: D });
|
|
3424
3429
|
}, [t, b]);
|
|
3425
3430
|
return o(yc, { ref: a, themes: g, selectedTheme: m, onSelectTheme: y, variant: d === re.Menuitem ? ot.Menuitem : ot.Toolbar, createTooltip: f, disabled: b, darkMode: u, ...x });
|
|
3426
|
-
})),
|
|
3431
|
+
})), id = q(X((n, a) => {
|
|
3427
3432
|
const { commands: t, commandHook: e, scope: r, disabled: l = !1, ...c } = n, p = Ie(t, ["themeMode"])[0], i = Y((m, u) => {
|
|
3428
3433
|
const b = { variant: re.Menuitem, commandHook: e, scope: "appearance", disabled: l }, y = H(le, { children: [o(N, { ...b, command: p }), o(N, { ...b, command: u.getCommand("defaultThemeMode") }), o(Q, { orientation: "horizontal" }), o(N, { ...b, command: u.getCommand("enableDarkGrid") }), o(N, { ...b, command: u.getCommand("enableDarkImages") })] });
|
|
3429
3434
|
return ge({ ...m, children: y });
|
|
3430
|
-
}, [l, p, e, r]), s = p?.state(), d =
|
|
3435
|
+
}, [l, p, e, r]), s = p?.state(), d = Pa("(prefers-color-scheme: dark)"), x = s === "dark" || s === null && d, g = p?.state() !== null;
|
|
3431
3436
|
return o(Se, { ref: a, quickCommand: "themeMode", commands: t, commandHook: e, createPopupPanel: i, label: "Appearance", tooltip: "Change the light/dark mode to match your viewing preference. This does not affect the view for others.", onQuickClick: () => {
|
|
3432
3437
|
p?.execute(x ? "light" : "dark", e);
|
|
3433
3438
|
}, selected: g, ...c });
|
|
3434
|
-
})),
|
|
3439
|
+
})), ld = q(X((n, a) => {
|
|
3435
3440
|
const { commands: t, commandHook: e, scope: r, disabled: l = !1, sx: c, ...p } = n, i = U((s, d) => {
|
|
3436
3441
|
const x = { variant: re.Menuitem, scope: "help", commandHook: { ...e, beforeExecute: (m, u) => e?.beforeExecute?.(m, u) !== !1 && s.floatReference.closeAll() }, disabled: l }, g = H(le, { children: [o(N, { ...x, command: d.getCommand("showKeyboardShortcuts") }), o(Q, { orientation: "horizontal" }), o(N, { ...x, command: d.getCommand("gotoUrlGithub") }), o(N, { ...x, command: d.getCommand("gotoUrlDiscord") }), o(N, { ...x, command: d.getCommand("gotoUrlDocumentation") }), o(N, { ...x, command: d.getCommand("gotoUrlIssue") })] });
|
|
3437
3442
|
return ge({ ...s, children: g });
|
|
@@ -3442,7 +3447,7 @@ const ap = q(X((n, a) => {
|
|
|
3442
3447
|
return o(tt, { ref: a, ...t, popupCommandKeys: ["insertFunctionSum", "insertFunctionAverage", "insertFunctionCount", "insertFunctionMax", "insertFunctionMin", null, "insertFunction"], quickCommand: "insertFunctionSum", popupScope: "insertFunction", label: "Quick Function", tooltip: "More functions." });
|
|
3443
3448
|
}));
|
|
3444
3449
|
Oi.displayName = "InsertFunctionSumCommandPopupButton";
|
|
3445
|
-
const
|
|
3450
|
+
const Pn = new Map([{ key: "financial", label: "Financial", icon: "FormulaFinancial" }, { key: "logical", label: "Logical", icon: "FormulaLogical" }, { key: "text", label: "Text", icon: "FormulaText" }, { key: "dateTime", label: "Date & Time", icon: "FormulaDateTime" }, { key: "lookupReference", label: "Lookup & Reference", icon: "FormulaLookupReference" }, { key: "mathTrig", label: "Math & Trig", icon: "FormulaMathTrig" }, { key: "statDist", label: "Statistical", icon: "FormulaStatistical" }, { key: "engineering", label: "Engineering", icon: "FormulaEngineering" }, { key: "information", label: "Information", icon: "FormulaInformation" }, { key: "cube", label: "Cube", icon: "FormulaCube" }, { key: "database", label: "Database", icon: "FormulaDatabase" }, { key: "web", label: "Web", icon: "FormulaWeb" }, { key: "custom", label: "Custom", icon: "FormulaCustom" }].map((n) => [n.key, n])), sd = q((n) => {
|
|
3446
3451
|
const { command: a, formulaFunction: t, commandHook: e, disabled: r = !1, parentFloat: l, handleInsert: c, icon: p, label: i, sx: s, ...d } = n, x = new Promise((g) => {
|
|
3447
3452
|
t.getDescriptor().then((m) => {
|
|
3448
3453
|
g(m.getSummary());
|
|
@@ -3455,17 +3460,17 @@ const Dn = new Map([{ key: "financial", label: "Financial", icon: "FormulaFinanc
|
|
|
3455
3460
|
}, onKeyDown: (g) => {
|
|
3456
3461
|
g.keyCode === me.Enter || (g.keyCode, me.Space);
|
|
3457
3462
|
}, ...d, children: o(B, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, children: o(Pe, { component: "div", children: t.getName() }) }) });
|
|
3458
|
-
}),
|
|
3463
|
+
}), cd = q(X((n, a) => {
|
|
3459
3464
|
const { category: t, commands: e, commandHook: r, scope: l, sx: c, disabled: p = !1, parentFloat: i, ...s } = n, d = Ie(e, ["insertFunction"])[0], x = U((m, u) => {
|
|
3460
|
-
const b =
|
|
3465
|
+
const b = Pn.get(t);
|
|
3461
3466
|
if (!b) return console.warn("invalidate category", t), null;
|
|
3462
|
-
const y = { commandHook: r, ...m }, f = o(
|
|
3467
|
+
const y = { commandHook: r, ...m }, f = o(dd, { category: b.label, ...y, commands: u });
|
|
3463
3468
|
return ge({ ...m, children: f });
|
|
3464
|
-
}, [t, d, r, l]), g =
|
|
3465
|
-
return o(Se, { ref: a, commands: e, commandHook: r, createPopupPanel: x, label: g.label, tooltip: "Insert Function", icon:
|
|
3469
|
+
}, [t, d, r, l]), g = Pn.get(t);
|
|
3470
|
+
return o(Se, { ref: a, commands: e, commandHook: r, createPopupPanel: x, label: g.label, tooltip: "Insert Function", icon: Pn.get(t)?.icon ?? "FormulaGroup", ...s });
|
|
3466
3471
|
}));
|
|
3467
|
-
|
|
3468
|
-
const
|
|
3472
|
+
cd.displayName = "InsertFunctionCommandPopupButton";
|
|
3473
|
+
const dd = q(X((n, a) => {
|
|
3469
3474
|
const { commands: t, category: e, commandHook: r, ...l } = n, c = Ie(t, ["insertFunction"]), [p, i] = _([]), [s, d] = _(!1);
|
|
3470
3475
|
de(() => {
|
|
3471
3476
|
(async () => {
|
|
@@ -3479,17 +3484,17 @@ const ld = q(X((n, a) => {
|
|
|
3479
3484
|
};
|
|
3480
3485
|
for (let b = 0; b < x; b++) {
|
|
3481
3486
|
const y = p[b];
|
|
3482
|
-
g[b] = o(
|
|
3487
|
+
g[b] = o(sd, { command: m, formulaFunction: y, handleInsert: u }, `formula-${y.getName()}-${b}`);
|
|
3483
3488
|
}
|
|
3484
3489
|
return ge({ ...l, children: o(B, { ref: a, sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: x > 0 ? o(le, { children: o(B, { sx: { overflow: "auto", flex: "1 1 100%" }, children: g }) }) : null }) });
|
|
3485
|
-
})),
|
|
3490
|
+
})), pd = q(X((n, a) => {
|
|
3486
3491
|
const { sx: t, style: e, className: r, licenseKey: l, renderLoadingPanel: c, ...p } = n;
|
|
3487
3492
|
l && Eo.setLicenseKey(l);
|
|
3488
3493
|
const i = W(() => {
|
|
3489
3494
|
const d = { transitionDelay: "160ms", transparentBackground: !0 };
|
|
3490
3495
|
return o(B, { sx: t, style: { width: "100%", height: "100%", position: "absolute", display: "flex", alignItems: "center", justifyContent: "center", ...e }, children: c?.(d) ?? o(Wt, { ...d }) });
|
|
3491
|
-
}, [t, e, c]), s = W(() => ae.lazy(async () => await Promise.resolve().then(() =>
|
|
3492
|
-
return o(le, { children: o(
|
|
3496
|
+
}, [t, e, c]), s = W(() => ae.lazy(async () => await Promise.resolve().then(() => Ud)), []);
|
|
3497
|
+
return o(le, { children: o(va, { fallback: i, children: o(s, { ...p, className: r, renderLoadingPanel: c, sx: t, style: e, ref: a }) }) });
|
|
3493
3498
|
}));
|
|
3494
3499
|
function Bi(n) {
|
|
3495
3500
|
var a, t, e = "";
|
|
@@ -3502,8 +3507,8 @@ function Vt() {
|
|
|
3502
3507
|
for (var n, a, t = 0, e = ""; t < arguments.length; ) (n = arguments[t++]) && (a = Bi(n)) && (e && (e += " "), e += a);
|
|
3503
3508
|
return e;
|
|
3504
3509
|
}
|
|
3505
|
-
|
|
3506
|
-
let
|
|
3510
|
+
pd.displayName = "Studio";
|
|
3511
|
+
let ud = { data: "" }, md = (n) => typeof window == "object" ? ((n ? n.querySelector("#_goober") : window._goober) || Object.assign((n || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : n || ud, hd = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, gd = /\/\*[^]*?\*\/| +/g, la = /\n+/g, It = (n, a) => {
|
|
3507
3512
|
let t = "", e = "", r = "";
|
|
3508
3513
|
for (let l in n) {
|
|
3509
3514
|
let c = n[l];
|
|
@@ -3517,7 +3522,7 @@ let cd = { data: "" }, dd = (n) => typeof window == "object" ? ((n ? n.querySele
|
|
|
3517
3522
|
return a;
|
|
3518
3523
|
}
|
|
3519
3524
|
return n;
|
|
3520
|
-
},
|
|
3525
|
+
}, fd = (n, a, t, e, r) => {
|
|
3521
3526
|
let l = Ai(n), c = pt[l] || (pt[l] = ((i) => {
|
|
3522
3527
|
let s = 0, d = 11;
|
|
3523
3528
|
for (; s < i.length; ) d = 101 * d + i.charCodeAt(s++) >>> 0;
|
|
@@ -3526,7 +3531,7 @@ let cd = { data: "" }, dd = (n) => typeof window == "object" ? ((n ? n.querySele
|
|
|
3526
3531
|
if (!pt[c]) {
|
|
3527
3532
|
let i = l !== n ? n : ((s) => {
|
|
3528
3533
|
let d, x, g = [{}];
|
|
3529
|
-
for (; d =
|
|
3534
|
+
for (; d = hd.exec(s.replace(gd, "")); ) d[4] ? g.shift() : d[3] ? (x = d[3].replace(la, " ").trim(), g.unshift(g[0][x] = g[0][x] || {})) : g[0][d[1]] = d[2].replace(la, " ").trim();
|
|
3530
3535
|
return g[0];
|
|
3531
3536
|
})(n);
|
|
3532
3537
|
pt[c] = It(r ? { ["@keyframes " + c]: i } : i, t ? "" : "." + c);
|
|
@@ -3536,16 +3541,16 @@ let cd = { data: "" }, dd = (n) => typeof window == "object" ? ((n ? n.querySele
|
|
|
3536
3541
|
x ? s.data = s.data.replace(x, i) : s.data.indexOf(i) === -1 && (s.data = d ? i + s.data : s.data + i);
|
|
3537
3542
|
})(pt[c], a, e, p), c;
|
|
3538
3543
|
};
|
|
3539
|
-
function
|
|
3544
|
+
function jn(n) {
|
|
3540
3545
|
let a = this || {}, t = n.call ? n(a.p) : n;
|
|
3541
|
-
return
|
|
3546
|
+
return fd(t.unshift ? t.raw ? ((e, r, l) => e.reduce((c, p, i) => {
|
|
3542
3547
|
let s = r[i];
|
|
3543
3548
|
if (s && s.call) {
|
|
3544
3549
|
let d = s(l), x = d && d.props && d.props.className || /^go/.test(d) && d;
|
|
3545
3550
|
s = x ? "." + x : d && typeof d == "object" ? d.props ? "" : It(d, "") : d === !1 ? "" : d;
|
|
3546
3551
|
}
|
|
3547
3552
|
return c + p + (s ?? "");
|
|
3548
|
-
}, ""))(t, [].slice.call(arguments, 1), a.p) : t.reduce((e, r) => Object.assign(e, r && r.call ? r(a.p) : r), {}) : t,
|
|
3553
|
+
}, ""))(t, [].slice.call(arguments, 1), a.p) : t.reduce((e, r) => Object.assign(e, r && r.call ? r(a.p) : r), {}) : t, md(a.target), a.g, a.o, a.k);
|
|
3549
3554
|
}
|
|
3550
3555
|
function Ii(n, a, t) {
|
|
3551
3556
|
return a && (function(e, r) {
|
|
@@ -3573,20 +3578,20 @@ function Oo(n, a) {
|
|
|
3573
3578
|
for (e = 0; e < l.length; e++) t = l[e], a.indexOf(t) >= 0 || (r[t] = n[t]);
|
|
3574
3579
|
return r;
|
|
3575
3580
|
}
|
|
3576
|
-
function
|
|
3581
|
+
function sa(n) {
|
|
3577
3582
|
if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3578
3583
|
return n;
|
|
3579
3584
|
}
|
|
3580
|
-
|
|
3581
|
-
var
|
|
3585
|
+
jn.bind({ g: 1 }), jn.bind({ k: 1 });
|
|
3586
|
+
var ca = function() {
|
|
3582
3587
|
return "";
|
|
3583
|
-
}, zi = ae.createContext({ enqueueSnackbar:
|
|
3588
|
+
}, zi = ae.createContext({ enqueueSnackbar: ca, closeSnackbar: ca }), Rn = "@media (max-width:599.95px)", Qo = "@media (min-width:600px)", da = function(n) {
|
|
3584
3589
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
3585
|
-
},
|
|
3586
|
-
return "" +
|
|
3590
|
+
}, rr = function(n) {
|
|
3591
|
+
return "" + da(n.vertical) + da(n.horizontal);
|
|
3587
3592
|
}, _o = function(n) {
|
|
3588
3593
|
return !!n || n === 0;
|
|
3589
|
-
}, Uo = "unmounted", qt = "exited", Kt = "entering", vo = "entered",
|
|
3594
|
+
}, Uo = "unmounted", qt = "exited", Kt = "entering", vo = "entered", pa = "exiting", ar = (function(n) {
|
|
3590
3595
|
function a(e) {
|
|
3591
3596
|
var r;
|
|
3592
3597
|
r = n.call(this, e) || this;
|
|
@@ -3603,7 +3608,7 @@ var sa = function() {
|
|
|
3603
3608
|
var r = null;
|
|
3604
3609
|
if (e !== this.props) {
|
|
3605
3610
|
var l = this.state.status;
|
|
3606
|
-
this.props.in ? l !== Kt && l !== vo && (r = Kt) : l !== Kt && l !== vo || (r =
|
|
3611
|
+
this.props.in ? l !== Kt && l !== vo && (r = Kt) : l !== Kt && l !== vo || (r = pa);
|
|
3607
3612
|
}
|
|
3608
3613
|
this.updateStatus(!1, r);
|
|
3609
3614
|
}, t.componentWillUnmount = function() {
|
|
@@ -3626,7 +3631,7 @@ var sa = function() {
|
|
|
3626
3631
|
});
|
|
3627
3632
|
}, t.performExit = function() {
|
|
3628
3633
|
var e = this, r = this.props.exit, l = this.getTimeouts();
|
|
3629
|
-
r ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status:
|
|
3634
|
+
r ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status: pa }, function() {
|
|
3630
3635
|
e.props.onExiting && e.props.onExiting(e.node), e.onTransitionEnd(l.exit, function() {
|
|
3631
3636
|
e.safeSetState({ status: qt }, function() {
|
|
3632
3637
|
e.props.onExited && e.props.onExited(e.node);
|
|
@@ -3663,13 +3668,13 @@ var sa = function() {
|
|
|
3663
3668
|
})(ae.Component);
|
|
3664
3669
|
function Xt() {
|
|
3665
3670
|
}
|
|
3666
|
-
function
|
|
3671
|
+
function ua(n, a) {
|
|
3667
3672
|
typeof n == "function" ? n(a) : n && (n.current = a);
|
|
3668
3673
|
}
|
|
3669
|
-
function
|
|
3674
|
+
function $n(n, a) {
|
|
3670
3675
|
return W(function() {
|
|
3671
3676
|
return n == null && a == null ? null : function(t) {
|
|
3672
|
-
|
|
3677
|
+
ua(n, t), ua(a, t);
|
|
3673
3678
|
};
|
|
3674
3679
|
}, [n, a]);
|
|
3675
3680
|
}
|
|
@@ -3677,17 +3682,17 @@ function en(n) {
|
|
|
3677
3682
|
var a = n.timeout, t = n.style, e = t === void 0 ? {} : t, r = n.mode;
|
|
3678
3683
|
return { duration: typeof a == "object" ? a[r] || 0 : a, easing: e.transitionTimingFunction, delay: e.transitionDelay };
|
|
3679
3684
|
}
|
|
3680
|
-
|
|
3681
|
-
var
|
|
3685
|
+
ar.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter: Xt, onEntering: Xt, onEntered: Xt, onExit: Xt, onExiting: Xt, onExited: Xt };
|
|
3686
|
+
var bd = "cubic-bezier(0.4, 0, 0.2, 1)", xd = "cubic-bezier(0.0, 0, 0.2, 1)", yd = "cubic-bezier(0.4, 0, 0.6, 1)", Hi = function(n) {
|
|
3682
3687
|
n.scrollTop = n.scrollTop;
|
|
3683
|
-
},
|
|
3688
|
+
}, ma = function(n) {
|
|
3684
3689
|
return Math.round(n) + "ms";
|
|
3685
3690
|
};
|
|
3686
3691
|
function eo(n, a) {
|
|
3687
3692
|
n === void 0 && (n = ["all"]);
|
|
3688
|
-
var t = a || {}, e = t.duration, r = e === void 0 ? 300 : e, l = t.easing, c = l === void 0 ?
|
|
3693
|
+
var t = a || {}, e = t.duration, r = e === void 0 ? 300 : e, l = t.easing, c = l === void 0 ? bd : l, p = t.delay, i = p === void 0 ? 0 : p;
|
|
3689
3694
|
return (Array.isArray(n) ? n : [n]).map(function(s) {
|
|
3690
|
-
var d = typeof r == "string" ? r :
|
|
3695
|
+
var d = typeof r == "string" ? r : ma(r), x = typeof i == "string" ? i : ma(i);
|
|
3691
3696
|
return s + " " + d + " " + c + " " + x;
|
|
3692
3697
|
}).join(",");
|
|
3693
3698
|
}
|
|
@@ -3726,7 +3731,7 @@ function Go(n, a) {
|
|
|
3726
3731
|
}
|
|
3727
3732
|
}
|
|
3728
3733
|
var ji = X(function(n, a) {
|
|
3729
|
-
var t = n.children, e = n.direction, r = e === void 0 ? "down" : e, l = n.in, c = n.style, p = n.timeout, i = p === void 0 ? 0 : p, s = n.onEnter, d = n.onEntered, x = n.onExit, g = n.onExited, m = Oo(n, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), u = xe(null), b =
|
|
3734
|
+
var t = n.children, e = n.direction, r = e === void 0 ? "down" : e, l = n.in, c = n.style, p = n.timeout, i = p === void 0 ? 0 : p, s = n.onEnter, d = n.onEntered, x = n.onExit, g = n.onExited, m = Oo(n, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), u = xe(null), b = $n(t.ref, u), y = $n(b, a), f = U(function() {
|
|
3730
3735
|
u.current && Go(r, u.current);
|
|
3731
3736
|
}, [r]);
|
|
3732
3737
|
return de(function() {
|
|
@@ -3751,13 +3756,13 @@ var ji = X(function(n, a) {
|
|
|
3751
3756
|
}
|
|
3752
3757
|
}, [r, l]), de(function() {
|
|
3753
3758
|
l || f();
|
|
3754
|
-
}, [l, f]), ke(
|
|
3759
|
+
}, [l, f]), ke(ar, Object.assign({ appear: !0, nodeRef: u, onEnter: function(h, w) {
|
|
3755
3760
|
Go(r, h), Hi(h), s && s(h, w);
|
|
3756
3761
|
}, onEntered: d, onEntering: function(h) {
|
|
3757
|
-
var w = c?.transitionTimingFunction ||
|
|
3762
|
+
var w = c?.transitionTimingFunction || xd, v = en({ timeout: i, mode: "enter", style: De({}, c, { transitionTimingFunction: w }) });
|
|
3758
3763
|
h.style.webkitTransition = eo("-webkit-transform", v), h.style.transition = eo("transform", v), h.style.webkitTransform = "none", h.style.transform = "none";
|
|
3759
3764
|
}, onExit: function(h) {
|
|
3760
|
-
var w = c?.transitionTimingFunction ||
|
|
3765
|
+
var w = c?.transitionTimingFunction || yd, v = en({ timeout: i, mode: "exit", style: De({}, c, { transitionTimingFunction: w }) });
|
|
3761
3766
|
h.style.webkitTransition = eo("-webkit-transform", v), h.style.transition = eo("transform", v), Go(r, h), x && x(h);
|
|
3762
3767
|
}, onExited: function(h) {
|
|
3763
3768
|
h.style.webkitTransition = "", h.style.transition = "", g && g(h);
|
|
@@ -3766,21 +3771,21 @@ var ji = X(function(n, a) {
|
|
|
3766
3771
|
});
|
|
3767
3772
|
});
|
|
3768
3773
|
ji.displayName = "Slide";
|
|
3769
|
-
var
|
|
3774
|
+
var un = function(n) {
|
|
3770
3775
|
return ae.createElement("svg", Object.assign({ viewBox: "0 0 24 24", focusable: "false", style: { fontSize: 20, marginInlineEnd: 8, userSelect: "none", width: "1em", height: "1em", display: "inline-block", fill: "currentColor", flexShrink: 0 } }, n));
|
|
3771
|
-
},
|
|
3772
|
-
return ae.createElement(
|
|
3776
|
+
}, wd = function() {
|
|
3777
|
+
return ae.createElement(un, null, ae.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
|
|
3773
3778
|
10.59L10 14.17L17.59 6.58L19 8L10 17Z` }));
|
|
3774
|
-
},
|
|
3775
|
-
return ae.createElement(
|
|
3776
|
-
},
|
|
3777
|
-
return ae.createElement(
|
|
3779
|
+
}, Sd = function() {
|
|
3780
|
+
return ae.createElement(un, null, ae.createElement("path", { d: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z" }));
|
|
3781
|
+
}, vd = function() {
|
|
3782
|
+
return ae.createElement(un, null, ae.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,
|
|
3778
3783
|
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
3779
3784
|
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z` }));
|
|
3780
|
-
},
|
|
3781
|
-
return ae.createElement(
|
|
3785
|
+
}, kd = function() {
|
|
3786
|
+
return ae.createElement(un, null, ae.createElement("path", { d: `M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
3782
3787
|
0 22,12A10,10 0 0,0 12,2Z` }));
|
|
3783
|
-
}, At = { maxSnack: 3, persist: !1, hideIconVariant: !1, disableWindowBlurListener: !1, variant: "default", autoHideDuration: 5e3, iconVariant: { default: void 0, success: ae.createElement(
|
|
3788
|
+
}, At = { maxSnack: 3, persist: !1, hideIconVariant: !1, disableWindowBlurListener: !1, variant: "default", autoHideDuration: 5e3, iconVariant: { default: void 0, success: ae.createElement(wd, null), warning: ae.createElement(Sd, null), error: ae.createElement(vd, null), info: ae.createElement(kd, null) }, anchorOrigin: { vertical: "bottom", horizontal: "left" }, TransitionComponent: ji, transitionDuration: { enter: 225, exit: 195 } }, Cd = function(n, a) {
|
|
3784
3789
|
return function(t, e) {
|
|
3785
3790
|
return e === void 0 && (e = !1), e ? De({}, At[t], {}, a[t], {}, n[t]) : t === "autoHideDuration" ? (r = n.autoHideDuration, l = a.autoHideDuration, (c = function(p) {
|
|
3786
3791
|
return typeof p == "number" || p === null;
|
|
@@ -3798,17 +3803,17 @@ var pn = function(n) {
|
|
|
3798
3803
|
function Bo(n) {
|
|
3799
3804
|
return Object.entries(n).reduce(function(a, t) {
|
|
3800
3805
|
var e, r = t[0], l = t[1];
|
|
3801
|
-
return De({}, a, ((e = {})[r] =
|
|
3806
|
+
return De({}, a, ((e = {})[r] = jn(l), e));
|
|
3802
3807
|
}, {});
|
|
3803
3808
|
}
|
|
3804
|
-
var
|
|
3809
|
+
var Td = "notistack-SnackbarContainer", Ed = "notistack-Snackbar", $i = "notistack-CollapseWrapper", Dd = "notistack-MuiContent", Pd = function(n) {
|
|
3805
3810
|
return "notistack-MuiContent-" + n;
|
|
3806
|
-
},
|
|
3807
|
-
var t = n.children, e = n.in, r = n.onExited, l = xe(null), c = xe(null), p =
|
|
3811
|
+
}, ha = Bo({ root: { height: 0 }, entered: { height: "auto" } }), Mn = "0px", Vi = X(function(n, a) {
|
|
3812
|
+
var t = n.children, e = n.in, r = n.onExited, l = xe(null), c = xe(null), p = $n(a, c), i = function() {
|
|
3808
3813
|
return l.current ? l.current.clientHeight : 0;
|
|
3809
3814
|
};
|
|
3810
|
-
return ke(
|
|
3811
|
-
s.style.height =
|
|
3815
|
+
return ke(ar, { in: e, unmountOnExit: !0, onEnter: function(s) {
|
|
3816
|
+
s.style.height = Mn;
|
|
3812
3817
|
}, onEntered: function(s) {
|
|
3813
3818
|
s.style.height = "auto";
|
|
3814
3819
|
}, onEntering: function(s) {
|
|
@@ -3819,15 +3824,15 @@ var vd = "notistack-SnackbarContainer", kd = "notistack-Snackbar", $i = "notista
|
|
|
3819
3824
|
}, onExited: r, onExiting: function(s) {
|
|
3820
3825
|
Hi(s);
|
|
3821
3826
|
var d = en({ timeout: 175, mode: "exit" }), x = d.duration, g = d.easing;
|
|
3822
|
-
s.style.transitionDuration = typeof x == "string" ? x : x + "ms", s.style.height =
|
|
3827
|
+
s.style.transitionDuration = typeof x == "string" ? x : x + "ms", s.style.height = Mn, s.style.transitionTimingFunction = g || "";
|
|
3823
3828
|
}, nodeRef: c, timeout: 175 }, function(s, d) {
|
|
3824
|
-
return ke("div", Object.assign({ ref: p, className: Vt(
|
|
3829
|
+
return ke("div", Object.assign({ ref: p, className: Vt(ha.root, s === "entered" && ha.entered), style: De({ pointerEvents: "all", overflow: "hidden", minHeight: Mn, transition: eo("height") }, s === "entered" && { overflow: "visible" }, {}, s === "exited" && !e && { visibility: "hidden" }) }, d), ke("div", { ref: l, className: $i, style: { display: "flex", width: "100%" } }, t));
|
|
3825
3830
|
});
|
|
3826
3831
|
});
|
|
3827
3832
|
Vi.displayName = "Collapse";
|
|
3828
|
-
var
|
|
3829
|
-
return "anchorOrigin" +
|
|
3830
|
-
},
|
|
3833
|
+
var ga = { right: "left", left: "right", bottom: "up", top: "down" }, Rd = function(n) {
|
|
3834
|
+
return "anchorOrigin" + rr(n);
|
|
3835
|
+
}, Md = function() {
|
|
3831
3836
|
};
|
|
3832
3837
|
function Mo(n, a) {
|
|
3833
3838
|
return n.reduce(function(t, e) {
|
|
@@ -3836,21 +3841,21 @@ function Mo(n, a) {
|
|
|
3836
3841
|
var p = [].concat(l);
|
|
3837
3842
|
a && p.indexOf(a) === -1 && p.push(a), t.apply(this, p), e.apply(this, p);
|
|
3838
3843
|
};
|
|
3839
|
-
},
|
|
3844
|
+
}, Md);
|
|
3840
3845
|
}
|
|
3841
|
-
var
|
|
3842
|
-
function
|
|
3846
|
+
var Nd = typeof window < "u" ? St : de;
|
|
3847
|
+
function fa(n) {
|
|
3843
3848
|
var a = xe(n);
|
|
3844
|
-
return
|
|
3849
|
+
return Nd(function() {
|
|
3845
3850
|
a.current = n;
|
|
3846
3851
|
}), U(function() {
|
|
3847
3852
|
return a.current.apply(void 0, arguments);
|
|
3848
3853
|
}, []);
|
|
3849
3854
|
}
|
|
3850
|
-
var
|
|
3851
|
-
var t = n.children, e = n.className, r = n.autoHideDuration, l = n.disableWindowBlurListener, c = l !== void 0 && l, p = n.onClose, i = n.id, s = n.open, d = n.SnackbarProps, x = d === void 0 ? {} : d, g = xe(), m =
|
|
3855
|
+
var Nn, _i = X(function(n, a) {
|
|
3856
|
+
var t = n.children, e = n.className, r = n.autoHideDuration, l = n.disableWindowBlurListener, c = l !== void 0 && l, p = n.onClose, i = n.id, s = n.open, d = n.SnackbarProps, x = d === void 0 ? {} : d, g = xe(), m = fa(function() {
|
|
3852
3857
|
p && p.apply(void 0, arguments);
|
|
3853
|
-
}), u =
|
|
3858
|
+
}), u = fa(function(f) {
|
|
3854
3859
|
p && f != null && (g.current && clearTimeout(g.current), g.current = setTimeout(function() {
|
|
3855
3860
|
m(null, "timeout", i);
|
|
3856
3861
|
}, f));
|
|
@@ -3869,24 +3874,24 @@ var Mn, _i = X(function(n, a) {
|
|
|
3869
3874
|
if (!c && s) return window.addEventListener("focus", y), window.addEventListener("blur", b), function() {
|
|
3870
3875
|
window.removeEventListener("focus", y), window.removeEventListener("blur", b);
|
|
3871
3876
|
};
|
|
3872
|
-
}, [c, y, s]), ke("div", Object.assign({ ref: a }, x, { className: Vt(
|
|
3877
|
+
}, [c, y, s]), ke("div", Object.assign({ ref: a }, x, { className: Vt(Ed, e), onMouseEnter: function(f) {
|
|
3873
3878
|
x.onMouseEnter && x.onMouseEnter(f), b();
|
|
3874
3879
|
}, onMouseLeave: function(f) {
|
|
3875
3880
|
x.onMouseLeave && x.onMouseLeave(f), y();
|
|
3876
3881
|
} }), t);
|
|
3877
3882
|
});
|
|
3878
3883
|
_i.displayName = "Snackbar";
|
|
3879
|
-
var
|
|
3884
|
+
var Fd = Bo({ root: (Nn = { display: "flex", flexWrap: "wrap", flexGrow: 1 }, Nn[Qo] = { flexGrow: "initial", minWidth: "288px" }, Nn) }), ir = X(function(n, a) {
|
|
3880
3885
|
var t = n.className, e = Oo(n, ["className"]);
|
|
3881
|
-
return ae.createElement("div", Object.assign({ ref: a, className: Vt(
|
|
3886
|
+
return ae.createElement("div", Object.assign({ ref: a, className: Vt(Fd.root, t) }, e));
|
|
3882
3887
|
});
|
|
3883
|
-
|
|
3884
|
-
var ko = Bo({ root: { backgroundColor: "#313131", fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em", color: "#fff", alignItems: "center", padding: "6px 16px", borderRadius: "4px", boxShadow: "0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)" }, lessPadding: { paddingLeft: "20px" }, default: { backgroundColor: "#313131" }, success: { backgroundColor: "#43a047" }, error: { backgroundColor: "#d32f2f" }, warning: { backgroundColor: "#ff9800" }, info: { backgroundColor: "#2196f3" }, message: { display: "flex", alignItems: "center", padding: "8px 0" }, action: { display: "flex", alignItems: "center", marginLeft: "auto", paddingLeft: "16px", marginRight: "-8px" } }),
|
|
3888
|
+
ir.displayName = "SnackbarContent";
|
|
3889
|
+
var ko = Bo({ root: { backgroundColor: "#313131", fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em", color: "#fff", alignItems: "center", padding: "6px 16px", borderRadius: "4px", boxShadow: "0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)" }, lessPadding: { paddingLeft: "20px" }, default: { backgroundColor: "#313131" }, success: { backgroundColor: "#43a047" }, error: { backgroundColor: "#d32f2f" }, warning: { backgroundColor: "#ff9800" }, info: { backgroundColor: "#2196f3" }, message: { display: "flex", alignItems: "center", padding: "8px 0" }, action: { display: "flex", alignItems: "center", marginLeft: "auto", paddingLeft: "16px", marginRight: "-8px" } }), ba = "notistack-snackbar", Ui = X(function(n, a) {
|
|
3885
3890
|
var t = n.id, e = n.message, r = n.action, l = n.iconVariant, c = n.variant, p = n.hideIconVariant, i = n.style, s = n.className, d = l[c], x = r;
|
|
3886
|
-
return typeof x == "function" && (x = x(t)), ae.createElement(
|
|
3891
|
+
return typeof x == "function" && (x = x(t)), ae.createElement(ir, { ref: a, role: "alert", "aria-describedby": ba, style: i, className: Vt(Dd, Pd(c), ko.root, ko[c], s, !p && d && ko.lessPadding) }, ae.createElement("div", { id: ba, className: ko.message }, p ? null : d, e), x && ae.createElement("div", { className: ko.action }, x));
|
|
3887
3892
|
});
|
|
3888
3893
|
Ui.displayName = "MaterialDesignContent";
|
|
3889
|
-
var Co,
|
|
3894
|
+
var Co, Fn, qo, Ko, On, Od = q(Ui), Bd = Bo({ wrappedRoot: { width: "100%", position: "relative", transform: "translateX(0)", top: 0, right: 0, bottom: 0, left: 0, minWidth: "288px" } }), Ad = function(n) {
|
|
3890
3895
|
var a = xe(), t = _(!0), e = t[0], r = t[1], l = Mo([n.snack.onClose, n.onClose]), c = U(function() {
|
|
3891
3896
|
a.current = setTimeout(function() {
|
|
3892
3897
|
r(function(T) {
|
|
@@ -3899,7 +3904,7 @@ var Co, Nn, qo, Ko, Fn, Md = q(Ui), Nd = Bo({ wrappedRoot: { width: "100%", posi
|
|
|
3899
3904
|
a.current && clearTimeout(a.current);
|
|
3900
3905
|
};
|
|
3901
3906
|
}, []);
|
|
3902
|
-
var p, i = n.snack, s = n.classes, d = n.Component, x = d === void 0 ?
|
|
3907
|
+
var p, i = n.snack, s = n.classes, d = n.Component, x = d === void 0 ? Od : d, g = W(function() {
|
|
3903
3908
|
return (function(T) {
|
|
3904
3909
|
T === void 0 && (T = {});
|
|
3905
3910
|
var P = { containerRoot: !0, containerAnchorOriginTopCenter: !0, containerAnchorOriginBottomCenter: !0, containerAnchorOriginTopRight: !0, containerAnchorOriginBottomRight: !0, containerAnchorOriginTopLeft: !0, containerAnchorOriginBottomLeft: !0 };
|
|
@@ -3910,26 +3915,26 @@ var Co, Nn, qo, Ko, Fn, Md = q(Ui), Nd = Bo({ wrappedRoot: { width: "100%", posi
|
|
|
3910
3915
|
return De({}, R, ((E = {})[k] = T[k], E));
|
|
3911
3916
|
}, {});
|
|
3912
3917
|
})(s);
|
|
3913
|
-
}, [s]), m = i.open, u = i.SnackbarProps, b = i.TransitionComponent, y = i.TransitionProps, f = i.transitionDuration, h = i.disableWindowBlurListener, w = i.content, v = Oo(i, ["open", "SnackbarProps", "TransitionComponent", "TransitionProps", "transitionDuration", "disableWindowBlurListener", "content", "entered", "requestClose", "onEnter", "onEntered", "onExit", "onExited"]), S = De({ direction: (p = v.anchorOrigin, p.horizontal !== "center" ?
|
|
3918
|
+
}, [s]), m = i.open, u = i.SnackbarProps, b = i.TransitionComponent, y = i.TransitionProps, f = i.transitionDuration, h = i.disableWindowBlurListener, w = i.content, v = Oo(i, ["open", "SnackbarProps", "TransitionComponent", "TransitionProps", "transitionDuration", "disableWindowBlurListener", "content", "entered", "requestClose", "onEnter", "onEntered", "onExit", "onExited"]), S = De({ direction: (p = v.anchorOrigin, p.horizontal !== "center" ? ga[p.horizontal] : ga[p.vertical]), timeout: f }, y), C = w;
|
|
3914
3919
|
typeof C == "function" && (C = C(v.id, v.message));
|
|
3915
3920
|
var D = ["onEnter", "onEntered", "onExit", "onExited"].reduce(function(T, P) {
|
|
3916
3921
|
var R;
|
|
3917
3922
|
return De({}, T, ((R = {})[P] = Mo([n.snack[P], n[P]], v.id), R));
|
|
3918
3923
|
}, {});
|
|
3919
|
-
return ae.createElement(Vi, { in: e, onExited: D.onExited }, ae.createElement(_i, { open: m, id: v.id, disableWindowBlurListener: h, autoHideDuration: v.autoHideDuration, className: Vt(
|
|
3924
|
+
return ae.createElement(Vi, { in: e, onExited: D.onExited }, ae.createElement(_i, { open: m, id: v.id, disableWindowBlurListener: h, autoHideDuration: v.autoHideDuration, className: Vt(Bd.wrappedRoot, g.root, g[Rd(v.anchorOrigin)]), SnackbarProps: u, onClose: l }, ae.createElement(b, Object.assign({}, S, { appear: !0, in: m, onExit: D.onExit, onExited: c, onEnter: D.onEnter, onEntered: Mo([D.onEntered, function() {
|
|
3920
3925
|
n.snack.requestClose && l(null, "instructed", n.snack.id);
|
|
3921
3926
|
}], v.id) }), C || ae.createElement(x, Object.assign({}, v)))));
|
|
3922
|
-
}, To = { default: 20 }, Xo = { default: 6, dense: 2 },
|
|
3923
|
-
var a = n.classes, t = a === void 0 ? {} : a, e = n.anchorOrigin, r = n.dense, l = n.children, c = Vt(
|
|
3927
|
+
}, To = { default: 20 }, Xo = { default: 6, dense: 2 }, xa = "." + $i, Yo = Bo({ root: (Co = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition: eo(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }), pointerEvents: "none" }, Co[xa] = { padding: Xo.default + "px 0px", transition: "padding 300ms ease 0ms" }, Co.maxWidth = "calc(100% - " + 2 * To.default + "px)", Co[Rn] = { width: "100%", maxWidth: "calc(100% - 32px)" }, Co), rootDense: (Fn = {}, Fn[xa] = { padding: Xo.dense + "px 0px" }, Fn), top: { top: To.default - Xo.default + "px", flexDirection: "column" }, bottom: { bottom: To.default - Xo.default + "px", flexDirection: "column-reverse" }, left: (qo = { left: To.default + "px" }, qo[Qo] = { alignItems: "flex-start" }, qo[Rn] = { left: "16px" }, qo), right: (Ko = { right: To.default + "px" }, Ko[Qo] = { alignItems: "flex-end" }, Ko[Rn] = { right: "16px" }, Ko), center: (On = { left: "50%", transform: "translateX(-50%)" }, On[Qo] = { alignItems: "center" }, On) }), Id = q(function(n) {
|
|
3928
|
+
var a = n.classes, t = a === void 0 ? {} : a, e = n.anchorOrigin, r = n.dense, l = n.children, c = Vt(Td, Yo[e.vertical], Yo[e.horizontal], Yo.root, t.containerRoot, t["containerAnchorOrigin" + rr(e)], r && Yo.rootDense);
|
|
3924
3929
|
return ae.createElement("div", { className: c }, l);
|
|
3925
|
-
}),
|
|
3930
|
+
}), ya = function(n) {
|
|
3926
3931
|
return !(typeof n == "string" || qn(n));
|
|
3927
|
-
},
|
|
3932
|
+
}, Ld = (function(n) {
|
|
3928
3933
|
function a(t) {
|
|
3929
3934
|
var e;
|
|
3930
3935
|
return (e = n.call(this, t) || this).enqueueSnackbar = function(r, l) {
|
|
3931
3936
|
if (l === void 0 && (l = {}), r == null) throw new Error("enqueueSnackbar called with invalid argument");
|
|
3932
|
-
var c =
|
|
3937
|
+
var c = ya(r) ? r : l, p = ya(r) ? r.message : r, i = c.key, s = c.preventDuplicate, d = Oo(c, ["key", "preventDuplicate"]), x = _o(i), g = x ? i : (/* @__PURE__ */ new Date()).getTime() + Math.random(), m = Cd(d, e.props), u = De({ id: g }, d, { message: p, open: !0, entered: !1, requestClose: !1, persist: m("persist"), action: m("action"), content: m("content"), variant: m("variant"), anchorOrigin: m("anchorOrigin"), disableWindowBlurListener: m("disableWindowBlurListener"), autoHideDuration: m("autoHideDuration"), hideIconVariant: m("hideIconVariant"), TransitionComponent: m("TransitionComponent"), transitionDuration: m("transitionDuration"), TransitionProps: m("TransitionProps", !0), iconVariant: m("iconVariant", !0), style: m("style", !0), SnackbarProps: m("SnackbarProps", !0), className: Vt(e.props.className, d.className) });
|
|
3933
3938
|
return u.persist && (u.autoHideDuration = void 0), e.setState(function(b) {
|
|
3934
3939
|
if (s === void 0 && e.props.preventDuplicate || s) {
|
|
3935
3940
|
var y = function(w) {
|
|
@@ -3987,16 +3992,16 @@ var Co, Nn, qo, Ko, Fn, Md = q(Ui), Nd = Bo({ wrappedRoot: { width: "100%", posi
|
|
|
3987
3992
|
}) }));
|
|
3988
3993
|
return p.queue.length === 0 ? p : e.handleDismissOldest(p);
|
|
3989
3994
|
});
|
|
3990
|
-
}, e.enqueueSnackbar, e.closeSnackbar, e.state = { snacks: [], queue: [], contextValue: { enqueueSnackbar: e.enqueueSnackbar.bind(
|
|
3995
|
+
}, e.enqueueSnackbar, e.closeSnackbar, e.state = { snacks: [], queue: [], contextValue: { enqueueSnackbar: e.enqueueSnackbar.bind(sa(e)), closeSnackbar: e.closeSnackbar.bind(sa(e)) } }, e;
|
|
3991
3996
|
}
|
|
3992
3997
|
return Li(a, n), a.prototype.render = function() {
|
|
3993
3998
|
var t = this, e = this.state.contextValue, r = this.props, l = r.domRoot, c = r.children, p = r.dense, i = p !== void 0 && p, s = r.Components, d = s === void 0 ? {} : s, x = r.classes, g = this.state.snacks.reduce(function(u, b) {
|
|
3994
|
-
var y, f =
|
|
3999
|
+
var y, f = rr(b.anchorOrigin), h = u[f] || [];
|
|
3995
4000
|
return De({}, u, ((y = {})[f] = [].concat(h, [b]), y));
|
|
3996
4001
|
}, {}), m = Object.keys(g).map(function(u) {
|
|
3997
4002
|
var b = g[u], y = b[0];
|
|
3998
|
-
return ae.createElement(
|
|
3999
|
-
return ae.createElement(
|
|
4003
|
+
return ae.createElement(Id, { key: u, dense: i, anchorOrigin: y.anchorOrigin, classes: x }, b.map(function(f) {
|
|
4004
|
+
return ae.createElement(Ad, { key: f.id, snack: f, classes: x, Component: d[f.variant], onClose: t.handleCloseSnack, onEnter: t.props.onEnter, onExit: t.props.onExit, onExited: Mo([t.handleExitedSnack, t.props.onExited], f.id), onEntered: Mo([t.handleEnteredSnack, t.props.onEntered], f.id) });
|
|
4000
4005
|
}));
|
|
4001
4006
|
});
|
|
4002
4007
|
return ae.createElement(zi.Provider, { value: e }, c, l ? Ps(m, l) : m);
|
|
@@ -4006,9 +4011,9 @@ var Co, Nn, qo, Ko, Fn, Md = q(Ui), Nd = Bo({ wrappedRoot: { width: "100%", posi
|
|
|
4006
4011
|
})(Yl), Gi = function() {
|
|
4007
4012
|
return Kl(zi);
|
|
4008
4013
|
};
|
|
4009
|
-
const
|
|
4010
|
-
class
|
|
4011
|
-
constructor(a =
|
|
4014
|
+
const zd = [{ key: "SheetXL", description: "SheetXL", mimeType: ".sxl", exts: ["sxl"], handler: null, isDefault: !0 }, { key: "CSV", description: "Comma Delimited", mimeType: "text/csv", exts: ["csv"], handler: null }, { key: "Excel", description: "Excel Workbook", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", exts: ["xlsx", "xls", "xlsm"], handler: null }], Hd = [{ key: "SheetXL", mimeType: "application/vnd.sheetxl.sheet", description: "SheetXL", ext: "sxl", handler: null, isDefault: !0 }, { key: "CSV", mimeType: "text/csv", description: "Comma Delimited", ext: "csv", handler: null }, { key: "Excel", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", description: "Excel Workbook", ext: "xlsx", tags: ["SheetJS Pro"], handler: null }];
|
|
4015
|
+
class Wd {
|
|
4016
|
+
constructor(a = zd, t = Hd) {
|
|
4012
4017
|
this._readFormatType = [], this._writeFormatType = [], this._readFormatType = Object.freeze([...a]), this._writeFormatType = Object.freeze([...t]);
|
|
4013
4018
|
}
|
|
4014
4019
|
getReadFormats() {
|
|
@@ -4049,14 +4054,14 @@ class Ld {
|
|
|
4049
4054
|
}
|
|
4050
4055
|
}
|
|
4051
4056
|
}
|
|
4052
|
-
const Lt = new
|
|
4057
|
+
const Lt = new Wd(), ut = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "_icons_1a398_16", expand: "_expand_1a398_22", expandOpen: "_expandOpen_1a398_29", stackTraceContainer: "_stackTraceContainer_1a398_33" }, qi = q(X((n, a) => {
|
|
4053
4058
|
const { id: t, message: e, iconVariant: r, error: l, hideIconVariant: c, ...p } = n, { closeSnackbar: i } = Gi(), s = Ke(), [d, x] = _(!1), g = Rs.collectErrorChain(l, !0)?.[0]?.error, m = g && !(g instanceof Ms), u = U(() => {
|
|
4054
4059
|
x((f) => !f);
|
|
4055
4060
|
}, []), b = U(() => {
|
|
4056
4061
|
i(t);
|
|
4057
4062
|
}, [t, i]);
|
|
4058
4063
|
let y = g?.message;
|
|
4059
|
-
return !y && qn(e) && (y = e), y || typeof e != "string" || (y = e), y || (y = `Unknown Error: ${e}`), o(
|
|
4064
|
+
return !y && qn(e) && (y = e), y || typeof e != "string" || (y = e), y || (y = `Unknown Error: ${e}`), o(ir, { ref: a, className: Te(ut.root, "error-snackbar"), children: H(ts, { className: ut.card, style: { backgroundColor: s.palette.error.dark, border: `1px solid ${s.palette.error.dark}` }, children: [H(os, { className: ut.actionRoot, children: [c ? null : r?.error, o(Pe, { variant: "body2", component: "div", className: ut.typography, children: y }), o("div", { style: { flex: "1 1 auto" } }), H("div", { className: ut.icons, children: [m ? o(st, { "aria-label": "Show more", size: "small", className: Te(ut.expand, { [ut.expandOpen]: d }), onClick: u, children: o(he, { iconKey: "ExpandMore" }) }) : null, o(st, { size: "small", className: ut.expand, onClick: b, children: o(he, { iconKey: "Close", style: { transform: "scale(0.8)" } }) })] })] }), m ? o(ns, { in: d, timeout: "auto", children: o("div", { className: ut.stackTraceContainer, style: { backgroundColor: s.palette.error.light, borderTop: `1px solid ${s.palette.error.main}` }, children: o(ms, { error: l, hideLineNumbers: !0 }) }) }) : null] }) });
|
|
4060
4065
|
}));
|
|
4061
4066
|
qi.displayName = "ToastError";
|
|
4062
4067
|
const Ki = q(X((n, a) => {
|
|
@@ -4075,16 +4080,16 @@ const Ki = q(X((n, a) => {
|
|
|
4075
4080
|
g.isDefaultPrevented || s.closeFloatAll();
|
|
4076
4081
|
} });
|
|
4077
4082
|
}, [l, t, e, r]), i = "File";
|
|
4078
|
-
return o(Se, { commands: t, disabled: l, commandHook: e, scope: r, label: i, tooltip: "Options for saving and loading the workbook.", sx: { paddingBottom: "0px", "& button": { paddingTop: "0px", paddingBottom: "0px", height: (s) => `calc(1.25rem + ${s.spacing(2)}px)` } }, ...c, createPopupPanel: p, icon: o(
|
|
4083
|
+
return o(Se, { commands: t, disabled: l, commandHook: e, scope: r, label: i, tooltip: "Options for saving and loading the workbook.", sx: { paddingBottom: "0px", "& button": { paddingTop: "0px", paddingBottom: "0px", height: (s) => `calc(1.25rem + ${s.spacing(2)}px)` } }, ...c, createPopupPanel: p, icon: o(rn, { className: "label", icon: null, label: i }) });
|
|
4079
4084
|
}));
|
|
4080
4085
|
Ki.displayName = "StandaloneFileCommandButton";
|
|
4081
|
-
const
|
|
4086
|
+
const jd = o(nt, { label: "SheetXL", description: "Visit me at sheetxl.com.", children: o(B, { sx: { width: "24px", height: "24px", marginBottom: "4px", marginLeft: "6px" }, children: o(Vl, { onClick: () => {
|
|
4082
4087
|
window?.open("https://www.sheetxl.com", "_blank");
|
|
4083
4088
|
}, style: { width: "24px", height: "24px", cursor: "pointer" } }) }) }), Xi = q(X((n, a) => {
|
|
4084
|
-
const { commands: t, workbook: e, logo: r =
|
|
4089
|
+
const { commands: t, workbook: e, logo: r = jd, mainElement: l, showFileMenu: c = !0, showAppearanceMenu: p = !0, ...i } = n, { reference: s } = ao(), [d, { width: x }] = zt(), g = x < 530, m = c ? o(Ki, { commands: t, commandHook: { beforeExecute() {
|
|
4085
4090
|
s?.closeAll();
|
|
4086
4091
|
}, onError(f, h, w) {
|
|
4087
|
-
} } }) : null, u = p ? o(
|
|
4092
|
+
} } }) : null, u = p ? o(id, { commands: t, commandHook: { beforeExecute() {
|
|
4088
4093
|
s?.closeAll();
|
|
4089
4094
|
}, onError(f, h, w) {
|
|
4090
4095
|
} } }) : null, b = W(() => ({ paddingLeft: (f) => f.spacing(1), paddingRight: (f) => f.spacing(1) }), []), y = xe(null);
|
|
@@ -4093,7 +4098,7 @@ const zd = o(nt, { label: "SheetXL", description: "Visit me at sheetxl.com.", ch
|
|
|
4093
4098
|
Xi.displayName = "StudioToolbar";
|
|
4094
4099
|
const Yi = q((n) => {
|
|
4095
4100
|
const { workbook: a, setWorkbook: t, refWorkbookTitle: e, titleWorkbook: r, setWorkbookTitle: l, titlePlaceHolder: c, children: p, undoManager: i, commands: s, importExportDisabled: d, themeOptions: x } = n, g = ((b) => {
|
|
4096
|
-
const { workbook: y, setWorkbook: f, importExportDisabled: h, workbookTitle: w = "export", setWorkbookTitle: v, requestWorkbookTitle: S, themeOptions: C, undoManager: D, commands: T, onExecute: P } = b, R =
|
|
4101
|
+
const { workbook: y, setWorkbook: f, importExportDisabled: h, workbookTitle: w = "export", setWorkbookTitle: v, requestWorkbookTitle: S, themeOptions: C, undoManager: D, commands: T, onExecute: P } = b, R = cn(), k = Y(C?.onModeChange, [C?.onModeChange]), E = Y(C?.onEnabledDarkGridChange, [C?.onEnabledDarkGridChange]), M = Y(C?.onEnabledDarkImagesChange, [C?.onEnabledDarkImagesChange]), I = Y(async (j = null, K = null) => {
|
|
4097
4102
|
const ee = [];
|
|
4098
4103
|
let V, A = null, Z = null;
|
|
4099
4104
|
if (typeof j == "string" ? Z = j : A = j, V = A ? j : await to.openFileDialog(Z ?? Lt.getAllReadFormatTypeAsString().join(",")), !V) return null;
|
|
@@ -4165,15 +4170,15 @@ const Yi = q((n) => {
|
|
|
4165
4170
|
})];
|
|
4166
4171
|
}, [y, w, R, h, C, T, D]), z = W(() => {
|
|
4167
4172
|
let j = null;
|
|
4168
|
-
return j = T ? T.createChildGroup(L, "standaloneWorkbook", !1) : new
|
|
4173
|
+
return j = T ? T.createChildGroup(L, "standaloneWorkbook", !1) : new er(L, "standaloneWorkbook"), j.addCommands(O, !0), j;
|
|
4169
4174
|
}, [T, O]);
|
|
4170
4175
|
ks({ manager: D, commands: z });
|
|
4171
|
-
const ie =
|
|
4176
|
+
const ie = Pa("(prefers-color-scheme: dark)"), { themeMode: J } = Ma();
|
|
4172
4177
|
de(() => {
|
|
4173
4178
|
if (!C || !z) return;
|
|
4174
4179
|
const j = C.mode === "dark" || !C.mode && J === "dark";
|
|
4175
4180
|
z.getCommand("themeMode").update({ state: C.mode ?? null, label: j ? "Dark Mode" : "Light Mode", scopedLabels: { appearance: j ? "Dark Mode" : "Light Mode" }, icon: j ? "DarkMode" : "LightMode" }).updateCallback(() => {
|
|
4176
|
-
k(j ?
|
|
4181
|
+
k(j ? An.Light : An.Dark);
|
|
4177
4182
|
}), z.getCommand("defaultThemeMode").update({ state: !C.mode, icon: ie ? "SystemDefaultDarkMode" : "SystemDefaultLightMode" }).updateCallback(() => {
|
|
4178
4183
|
k(null);
|
|
4179
4184
|
}), z.getCommand("enableDarkGrid").update({ state: C.enableDarkGrid }).updateCallback(() => {
|
|
@@ -4185,7 +4190,7 @@ const Yi = q((n) => {
|
|
|
4185
4190
|
const { showModal: pe } = hs();
|
|
4186
4191
|
return de(() => {
|
|
4187
4192
|
const j = () => new Promise((K, ee) => {
|
|
4188
|
-
const V = ae.lazy(() => import("./
|
|
4193
|
+
const V = ae.lazy(() => import("./DmBripa50tKiqREL.mjs")), A = pe(V, { title: "Shortcut Keys Reference", commands: z, onDone: () => {
|
|
4189
4194
|
A.hide();
|
|
4190
4195
|
}, slotProps: { transition: { onExited: () => {
|
|
4191
4196
|
K(!0);
|
|
@@ -4198,7 +4203,7 @@ const Yi = q((n) => {
|
|
|
4198
4203
|
y(f);
|
|
4199
4204
|
}, { selectAll: !0, requestReason: b }) : y(c);
|
|
4200
4205
|
}), themeOptions: x, undoManager: i, onExecute: U(() => {
|
|
4201
|
-
}, []) }), m = W(() => o(
|
|
4206
|
+
}, []) }), m = W(() => o(ld, { commands: g, disableHover: !0, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [g]), u = { commands: g };
|
|
4202
4207
|
return a && (u.statusBarProps = { childrenEnd: m }), p ? ae.cloneElement(p, u) : null;
|
|
4203
4208
|
});
|
|
4204
4209
|
Yi.displayName = "CommandsWrapper";
|
|
@@ -4231,7 +4236,7 @@ const Zi = q((n) => {
|
|
|
4231
4236
|
const D = { ...S, onKeyDown: (T) => {
|
|
4232
4237
|
T.isDefaultPrevented() || T.isPropagationStopped() || S?.onKeyDown?.(T);
|
|
4233
4238
|
} };
|
|
4234
|
-
return d(v, { sort: () => import("./
|
|
4239
|
+
return d(v, { sort: () => import("./DneV3-mqSBq1-Ies.mjs"), numberFormat: () => import("./rTUe_Q7TeplDbtPZ.mjs"), hyperlink: () => import("./IM-boc1h29ZmHdvy.mjs"), comments: () => import("./B_3dBo5bkIr0eZVH.mjs"), find: () => import("./D_6ik-OgPF7G8sN7.mjs"), tableNew: () => import("./A_B51mAtU7xxxYD-.mjs"), namedDetails: () => import("./BcIL0e_fUxF3JbFD.mjs") }[v], D, C);
|
|
4235
4240
|
}, showOptions: x, showInputOptions: g, showError: (v) => {
|
|
4236
4241
|
let S, C = wt.Error, D = "Unknown Error";
|
|
4237
4242
|
typeof v == "string" ? D = v : v instanceof Error && (S = v, v.message && (D = v.message)), v instanceof Ns && (C = wt.Info), f(D, { type: C, enqueueProps: { error: S } });
|
|
@@ -4258,19 +4263,19 @@ const Zi = q((n) => {
|
|
|
4258
4263
|
}, [l.starting, l.running]), H(Ts, { notifier: u, children: [b, a] });
|
|
4259
4264
|
});
|
|
4260
4265
|
Zi.displayName = "SnackbarWrapper";
|
|
4261
|
-
const
|
|
4262
|
-
const { children: t, title: e, taskPanes: r, onSelect: l, selected: c, registry: p =
|
|
4266
|
+
const $d = q(X((n, a) => {
|
|
4267
|
+
const { children: t, title: e, taskPanes: r, onSelect: l, selected: c, registry: p = tn, style: i, iconsOnly: s, className: d, ...x } = n, g = W(() => r.map((b) => {
|
|
4263
4268
|
const y = p.getRegisteredTaskPane(b);
|
|
4264
4269
|
if (!y) return null;
|
|
4265
4270
|
let f = y.getIcon?.();
|
|
4266
4271
|
f && (typeof f == "string" && (f = o(he, { iconKey: f })), f = o("span", { style: { display: "inline-block", transform: "rotate(90deg)", transformOrigin: "center" }, children: f }));
|
|
4267
4272
|
const h = b === c;
|
|
4268
|
-
return o(
|
|
4273
|
+
return o(Da, { value: b, label: o(vt, { disableInteractive: !0, title: y.getTitle() ?? "", placement: "left-start", children: H(B, { sx: { padding: "0px 0px", writingMode: "vertical-rl", textOrientation: "mixed", display: "flex", alignItems: "center", justifyContent: "space-between", minWidth: "0px", color: (w) => w.palette.text.secondary }, children: [f && o(B, { sx: { display: "inline-block", transformOrigin: "center", color: (w) => w.palette.text.secondary }, children: f }), s && f ? null : o(Pe, { component: "div", textTransform: "none", sx: { padding: "4px 0px", color: (w) => h ? w.palette.primary.main : w.palette.text.secondary }, children: y.getTitle() })] }) }), sx: { padding: "4px 4px", minWidth: "0px", minHeight: "0px", borderRadius: "4px" }, className: Te("taskpane-strip-item", { "Mui-selected": h }), onClick: () => n.onSelect(b) }, b);
|
|
4269
4274
|
}), [r, c, l, p]), m = Ct(a, () => ({ isTaskPaneStrip: () => !0 }), []), u = W(() => Te("taskpane-strip", d), [d]);
|
|
4270
|
-
return o(B, { ref: m, className: u, sx: { paddingLeft: "2px", paddingTop: "4px", ...i }, ...x, children: o(
|
|
4275
|
+
return o(B, { ref: m, className: u, sx: { paddingLeft: "2px", paddingTop: "4px", ...i }, ...x, children: o(Ea, { orientation: "vertical", variant: "scrollable", value: c, onChange: (b, y) => {
|
|
4271
4276
|
l(y);
|
|
4272
4277
|
}, slotProps: { list: { sx: { gap: "2px" } }, indicator: { sx: { left: "0px", right: "unset" } } }, children: g }) });
|
|
4273
|
-
})),
|
|
4278
|
+
})), Vd = (n, a) => o($d, { ref: a, ...n }), _d = ae.forwardRef((n, a) => {
|
|
4274
4279
|
const { commands: t, model: e, ...r } = n, l = Ke(), c = `solid ${ye(l.palette.divider, 0.2)} 1px`, p = `${l.shape.borderRadius ?? 4}px`, i = `${l.spacing?.(0.5) ?? 4}px`, s = xe(null);
|
|
4275
4280
|
return o(_l, { model: e, ref: a, frameProps: { style: { border: c, borderRadius: p, marginBottom: i } }, alwaysShowStrip: !0, renderTaskPanelTitle: (d, x) => {
|
|
4276
4281
|
const { title: g, icon: m, onClose: u, readOnly: b, focused: y, ...f } = d;
|
|
@@ -4279,20 +4284,19 @@ const Hd = q(X((n, a) => {
|
|
|
4279
4284
|
}, onPointerUp: () => {
|
|
4280
4285
|
u();
|
|
4281
4286
|
}, children: o(he, { iconKey: "Close" }) }) })] }) });
|
|
4282
|
-
}, renderTaskPaneStrip:
|
|
4287
|
+
}, renderTaskPaneStrip: Vd, ...n, onOpen: () => {
|
|
4283
4288
|
n?.onOpen?.();
|
|
4284
4289
|
}, onClose: () => {
|
|
4285
4290
|
n?.onClose?.();
|
|
4286
4291
|
}, commands: t, ...r });
|
|
4287
|
-
}),
|
|
4292
|
+
}), wa = { flex: "1 1 100%", display: "flex", boxSizing: "border-box" }, Qi = q(X((n, a) => {
|
|
4288
4293
|
const { mainElement: t, sidebarElement: e, className: r, style: l, ...c } = n, p = Ke(), [i, { width: s }] = zt(), d = s > 530 || s === 0, x = xe(null);
|
|
4289
4294
|
let g = null, m = 4, u = 13;
|
|
4290
|
-
return d ? g = "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" : (g = "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", m = 13, u = 4), o(Qn, { ref: $t([x, i, a]), className: r, style: l ? { ...
|
|
4295
|
+
return d ? g = "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" : (g = "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", m = 13, u = 4), o(Qn, { ref: $t([x, i, a]), className: r, style: l ? { ...wa, ...l } : wa, ...c, fixedPane: "after", position: "40%", minAfter: d ? "280px" : "120px", splitDirection: d ? "row" : "column", resizerProps: { className: "styled-resizer", style: { minWidth: d ? "6px" : void 0, minHeight: d ? void 0 : "6px", maskImage: `url("data:image/svg+xml,%3Csvg width='${m}' height='${u}' viewBox='0 0 ${m} ${u}' version='1.1' fill='${p.palette.text.icon ?? p.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${g}' /%3E%3C/svg%3E%0A")`, maskRepeat: "no-repeat", maskPosition: d ? "left center" : "top center" } }, elementBefore: t, paneBeforeProps: { style: { flexDirection: "column", marginRight: e ? void 0 : "6px" } }, elementAfter: e, paneAfterProps: { style: { marginLeft: d ? "0px" : "4px", marginRight: d ? "8px" : "4px" } } });
|
|
4291
4296
|
}));
|
|
4292
|
-
Qi.displayName = "StudioSplitPane";
|
|
4293
|
-
|
|
4294
|
-
const
|
|
4295
|
-
const { className: t, sx: e, style: r, onElementLoad: l, onError: c, undoManager: p, errorPanel: i = ys, onKeyDown: s, workbook: d, createWorkbookOptions: x, onWorkbookChange: g, logo: m, importExportDisabled: u = !1, themeOptions: b, autoFocus: y = !1, commands: f, title: h, onTitleChange: w, titleProps: v, renderLoadingPanel: S, ...C } = n, D = xe(null), T = Y(g, [g]), P = Y(w ?? v?.onTitleChange, [w ?? v?.onTitleChange]), R = v?.placeHolder ?? "Untitled", k = b?.mode, { themeMode: E, source: M } = Ra({ mode: k }), I = W(() => ({ ...b, light: kr(!1, to.deepMerge(b?.theme ?? {}, b?.light ?? {})), dark: kr(!0, to.deepMerge(b?.theme ?? {}, b?.dark ?? {})) }), [b]), F = E === Bn.Dark, [L, O] = _(null);
|
|
4297
|
+
Qi.displayName = "StudioSplitPane", nd(), Jn.register("plugin-scripts", { icons: {} }), tn.registerTaskPane({ key: "scriptEditor", getTitle: () => "Script (Typescript)", getIcon: () => "ScriptRun", renderTaskPane: Fc }, !0);
|
|
4298
|
+
const Vn = q(X((n, a) => {
|
|
4299
|
+
const { className: t, sx: e, style: r, onElementLoad: l, onError: c, undoManager: p, errorPanel: i = ys, onKeyDown: s, workbook: d, createWorkbookOptions: x, onWorkbookChange: g, logo: m, importExportDisabled: u = !1, themeOptions: b, autoFocus: y = !1, commands: f, title: h, onTitleChange: w, titleProps: v, renderLoadingPanel: S, ...C } = n, D = xe(null), T = Y(g, [g]), P = Y(w ?? v?.onTitleChange, [w ?? v?.onTitleChange]), R = v?.placeHolder ?? "Untitled", k = b?.mode, { themeMode: E, source: M } = Ma({ mode: k }), I = W(() => ({ ...b, light: Cr(!1, to.deepMerge(b?.theme ?? {}, b?.light ?? {})), dark: Cr(!0, to.deepMerge(b?.theme ?? {}, b?.dark ?? {})) }), [b]), F = E === An.Dark, [L, O] = _(null);
|
|
4296
4300
|
de(() => {
|
|
4297
4301
|
O(p ?? new Fs());
|
|
4298
4302
|
}, [p]);
|
|
@@ -4300,11 +4304,11 @@ const $n = q(X((n, a) => {
|
|
|
4300
4304
|
St(() => {
|
|
4301
4305
|
if (!d || Object.keys(d).length === 0 && !to.isPromiseLike(d)) {
|
|
4302
4306
|
const te = { theme: j.getDefaultTheme(), ...x };
|
|
4303
|
-
pe(new
|
|
4307
|
+
pe(new Bn(te));
|
|
4304
4308
|
} else pe(d);
|
|
4305
4309
|
}, [d]), St(() => {
|
|
4306
4310
|
if (J) {
|
|
4307
|
-
if (J instanceof
|
|
4311
|
+
if (J instanceof Bn) return ie({ workbook: J }), void (d !== J && T?.(J));
|
|
4308
4312
|
(async () => {
|
|
4309
4313
|
try {
|
|
4310
4314
|
let te, Ce = await Promise.resolve(J);
|
|
@@ -4338,9 +4342,9 @@ const $n = q(X((n, a) => {
|
|
|
4338
4342
|
const [oe, Be] = _(null), ve = W(() => {
|
|
4339
4343
|
const te = () => ({ contains: (Ce) => !0, focus() {
|
|
4340
4344
|
} });
|
|
4341
|
-
return f ? f.createChildGroup(te, "application", !1) : new
|
|
4345
|
+
return f ? f.createChildGroup(te, "application", !1) : new er(te, "application");
|
|
4342
4346
|
}, [f]), Ne = Y(async (te) => {
|
|
4343
|
-
Be(te.source.getViewportElement()), ee(te), ve.activate("sheet"), await
|
|
4347
|
+
Be(te.source.getViewportElement()), ee(te), ve.activate("sheet"), await Jn.prefetch(), l?.(te);
|
|
4344
4348
|
}, [ve]);
|
|
4345
4349
|
de(() => {
|
|
4346
4350
|
K && y && K.source?.focus(typeof y == "object" ? y : void 0);
|
|
@@ -4360,7 +4364,7 @@ const $n = q(X((n, a) => {
|
|
|
4360
4364
|
const ne = W(() => {
|
|
4361
4365
|
const te = { transparentBackground: !0 };
|
|
4362
4366
|
return o(B, { sx: e, style: { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, display: "flex", alignItems: "center", justifyContent: "center", ...r }, children: S?.(te) ?? o(Wt, { ...te }) });
|
|
4363
|
-
}, [e, r, S]), G = U(({ error: te }) => (c?.(te), o(i, { sx: e, style: r, error: te ?? "Unable to display empty workbook." })), [e, r, c]), se = W(() => ({ ...e, "& .SnackbarContainer-root": { position: "absolute !important" }, "& .notistack-SnackbarContainer > div": { maxWidth: "100%" }, "& .notistack-Snackbar": { minWidth: "unset" }, "& .notistack-Snackbar > .error-snackbar .MuiTypography-root": { color: (te) => te.palette.getContrastText(te.palette.error.main) }, "& .notistack-Snackbar > .error-snackbar .MuiCardActions-root": { color: (te) => te.palette.getContrastText(te.palette.error.main) }, "& .notistack-Snackbar > .error-snackbar .MuiButtonBase-root": { color: (te) => te.palette.getContrastText(te.palette.error.main) }, "& .notistack-MuiContent *": { fontFamily: (te) => te.typography.fontFamily }, "& #notistack-snackbar": { maxWidth: "560px", whiteSpace: "pre-wrap" }, "*": { userSelect: "none" } }), [e]), [Re, qe] = _(null), Ee = U((te, Ce) => o(
|
|
4367
|
+
}, [e, r, S]), G = U(({ error: te }) => (c?.(te), o(i, { sx: e, style: r, error: te ?? "Unable to display empty workbook." })), [e, r, c]), se = W(() => ({ ...e, "& .SnackbarContainer-root": { position: "absolute !important" }, "& .notistack-SnackbarContainer > div": { maxWidth: "100%" }, "& .notistack-Snackbar": { minWidth: "unset" }, "& .notistack-Snackbar > .error-snackbar .MuiTypography-root": { color: (te) => te.palette.getContrastText(te.palette.error.main) }, "& .notistack-Snackbar > .error-snackbar .MuiCardActions-root": { color: (te) => te.palette.getContrastText(te.palette.error.main) }, "& .notistack-Snackbar > .error-snackbar .MuiButtonBase-root": { color: (te) => te.palette.getContrastText(te.palette.error.main) }, "& .notistack-MuiContent *": { fontFamily: (te) => te.typography.fontFamily }, "& #notistack-snackbar": { maxWidth: "560px", whiteSpace: "pre-wrap" }, "*": { userSelect: "none" } }), [e]), [Re, qe] = _(null), Ee = U((te, Ce) => o(_d, { ref: Ce, model: J, commands: ve, ...te }), [ve, J]), rt = U((te) => o(Qi, { mainElement: te, sidebarElement: Re }), [Re]), Xe = $t([D, a]), dt = W(() => {
|
|
4364
4368
|
if (!z) return ne;
|
|
4365
4369
|
if (z.error || !z.workbook) return G({ error: z.error });
|
|
4366
4370
|
let te = null, Ce = null, Tt = !1;
|
|
@@ -4368,36 +4372,36 @@ const $n = q(X((n, a) => {
|
|
|
4368
4372
|
s?.(io);
|
|
4369
4373
|
}, renderLoadingPanel: S, gridTheme: Ce, headersTheme: te, enableDarkImages: Tt, mainWrapper: rt, className: Te(t), onContextMenu: (io) => io.preventDefault(), ...C }, "WorkbookElement");
|
|
4370
4374
|
}, [z, A, L, ne, S, I, C, Ve, se, rt]);
|
|
4371
|
-
let Me = o(
|
|
4375
|
+
let Me = o(Ld, { maxSnack: 3, domRoot: oe, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (te, Ce, Tt) => {
|
|
4372
4376
|
D.current?.focus();
|
|
4373
|
-
}, Components: { error: qi }, iconVariant: { success: o(
|
|
4377
|
+
}, Components: { error: qi }, iconVariant: { success: o(Ca, { style: { marginRight: "8px" }, children: o("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" }) }), error: o(he, { iconKey: "ErrorAlert", style: { marginRight: "8px" } }) }, children: o(Ul, { createArea: Ee, onUpdateArea: (te) => {
|
|
4374
4378
|
qe(te);
|
|
4375
4379
|
}, children: o(ws, { children: o(Zi, { children: o(Es, { children: o(Ds, { children: o(Yi, { workbook: z?.workbook, setWorkbook: pe, importExportDisabled: u, titlePlaceHolder: R, titleWorkbook: A, setWorkbookTitle: Z, refWorkbookTitle: _e, commands: ve, undoManager: L, themeOptions: I, children: dt }) }) }) }) }) }) });
|
|
4376
4380
|
return I && (Me = H(Na, { theme: F ? I.dark : I.light, children: [I.cssBaseline ? o(as, {}) : null, Me] })), Me;
|
|
4377
4381
|
}));
|
|
4378
|
-
|
|
4379
|
-
const
|
|
4382
|
+
Vn.displayName = "EagerStudio";
|
|
4383
|
+
const Ud = Object.freeze(Object.defineProperty({ __proto__: null, EagerStudio: Vn, default: Vn }, Symbol.toStringTag, { value: "Module" }));
|
|
4380
4384
|
export {
|
|
4381
4385
|
Vs as $,
|
|
4382
4386
|
Fi as A,
|
|
4383
4387
|
qs as B,
|
|
4384
4388
|
Ws as C,
|
|
4385
|
-
|
|
4386
|
-
|
|
4389
|
+
ad as D,
|
|
4390
|
+
id as E,
|
|
4387
4391
|
Xs as F,
|
|
4388
|
-
|
|
4392
|
+
ld as G,
|
|
4389
4393
|
Os as H,
|
|
4390
4394
|
vi as I,
|
|
4391
|
-
|
|
4395
|
+
nr as J,
|
|
4392
4396
|
Oi as K,
|
|
4393
|
-
|
|
4397
|
+
cd as L,
|
|
4394
4398
|
Ks as M,
|
|
4395
4399
|
Ka as N,
|
|
4396
4400
|
Gs as O,
|
|
4397
4401
|
ja as P,
|
|
4398
|
-
|
|
4402
|
+
Er as Q,
|
|
4399
4403
|
Xa as R,
|
|
4400
|
-
|
|
4404
|
+
pd as S,
|
|
4401
4405
|
As as T,
|
|
4402
4406
|
Ha as U,
|
|
4403
4407
|
Bs as V,
|
|
@@ -4405,9 +4409,9 @@ export {
|
|
|
4405
4409
|
Us as X,
|
|
4406
4410
|
Ls as Y,
|
|
4407
4411
|
Ro as Z,
|
|
4408
|
-
|
|
4412
|
+
zn as _,
|
|
4409
4413
|
Vt as a,
|
|
4410
|
-
|
|
4414
|
+
tr as a0,
|
|
4411
4415
|
Oa as a1,
|
|
4412
4416
|
bc as a2,
|
|
4413
4417
|
xc as a3,
|
|
@@ -4421,27 +4425,29 @@ export {
|
|
|
4421
4425
|
_a as ab,
|
|
4422
4426
|
cc as ac,
|
|
4423
4427
|
uc as ad,
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4428
|
+
td as ae,
|
|
4429
|
+
od as af,
|
|
4430
|
+
nd as ag,
|
|
4431
|
+
ii as ah,
|
|
4432
|
+
li as ai,
|
|
4433
|
+
si as aj,
|
|
4434
|
+
lp as ak,
|
|
4435
|
+
Mi as al,
|
|
4436
|
+
Ni as am,
|
|
4437
|
+
Pi as an,
|
|
4438
|
+
Di as ao,
|
|
4439
|
+
zc as ap,
|
|
4440
|
+
Hc as aq,
|
|
4441
|
+
Qr as ar,
|
|
4442
|
+
Vn as as,
|
|
4443
|
+
Wd as at,
|
|
4444
|
+
Lt as au,
|
|
4445
|
+
Ln as b,
|
|
4440
4446
|
Do as c,
|
|
4441
4447
|
di as d,
|
|
4442
4448
|
Te as e,
|
|
4443
4449
|
Is as f,
|
|
4444
|
-
|
|
4450
|
+
ip as g,
|
|
4445
4451
|
Ys as h,
|
|
4446
4452
|
Zs as i,
|
|
4447
4453
|
Qs as j,
|
|
@@ -4452,8 +4458,8 @@ export {
|
|
|
4452
4458
|
La as o,
|
|
4453
4459
|
ec as p,
|
|
4454
4460
|
za as q,
|
|
4455
|
-
|
|
4456
|
-
|
|
4461
|
+
dn as r,
|
|
4462
|
+
ap as s,
|
|
4457
4463
|
No as t,
|
|
4458
4464
|
zt as u,
|
|
4459
4465
|
tc as v,
|