@sheetxl/studio-mui 0.8.0-beta.10 → 0.8.0-beta.12
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/esm/{ByeL_BZuJ2kl8gtf.mjs → 0IBZhOJaVmzJxuTv.mjs} +1 -1
- package/browser/esm/2nRxqrNYbmEn8fS8.mjs +386 -0
- package/browser/esm/{fb126BNj3F8URR19.mjs → 7fVZXXuonYb6Z7FU.mjs} +3 -3
- package/browser/esm/BAzhmMX4Fk_qnUTp.mjs +414 -0
- package/browser/esm/BGL3x0W74D7qZXlf.mjs +318 -0
- package/browser/esm/BHGr2gsFofTdAFxq.mjs +515 -0
- package/browser/esm/{DU3J8Gcf-WpBxNYg.mjs → BKhcJI-G15D3kGap.mjs} +4 -4
- package/browser/esm/BNbub9weuqm3mcoF.mjs +335 -0
- package/browser/esm/BSv9MVJaz1DVEffm.mjs +975 -0
- package/browser/esm/BWfLpYmd3cSgJ0C6.mjs +141 -0
- package/browser/esm/BZqwbIE8qzjSOYcJ.mjs +582 -0
- package/browser/esm/BZy9xUrYpAtnKeji.mjs +1288 -0
- package/browser/esm/{CIu1bjPJe_x31Oww.mjs → BnkwC5rsg9LZyhoP.mjs} +3 -3
- package/browser/esm/BpJsBv413cNQpyg0.mjs +319 -0
- package/browser/esm/BpVrgbVISiTDyFR3.mjs +197 -0
- package/browser/esm/BsngRDhvVYGVBJeK.mjs +1546 -0
- package/browser/esm/{C1Rp2hZrApo5MUc8.mjs → C29TKq47CbXs652l.mjs} +2 -2
- package/browser/esm/{CEvZe2cZK-voZTif.mjs → C8p2iMad_NNCwGI_.mjs} +5 -5
- package/browser/esm/CBzXksWnb-1gGEWZ.mjs +212 -0
- package/browser/esm/{IQLeaAbtGTipUsOD.mjs → CFIAWgpU3UyepLBn.mjs} +25 -24
- package/browser/esm/CJD4jF4m9cBGHzr_.mjs +31 -0
- package/browser/esm/{CjznclrKqJRi7u9O.mjs → CMc7G7cevxzPGxr9.mjs} +2 -2
- package/browser/esm/{B1Yp_uy1vFHcJB3U.mjs → CYtULLhY9M2m3DeH.mjs} +1 -1
- package/browser/esm/CeF35ZeFP28Do5Zx.mjs +1379 -0
- package/browser/esm/{xKiLJKiLxto8SayF.mjs → CjYKDxU4EP2Kf_vo.mjs} +2 -2
- package/browser/esm/{D8al_cJ4U-NgzwoK.mjs → Cq82lvdjyBvlJ8xJ.mjs} +19 -17
- package/browser/esm/{X1Db3b_7b_7OuCk6.mjs → CuRxFAO42JkQvMEx.mjs} +1 -1
- package/browser/esm/Cvk2yY90hpgXWMAt.mjs +103 -0
- package/browser/esm/D0slJycx3nq53qmf.mjs +14 -0
- package/browser/esm/{9eKCkvqpMQwqcXiw.mjs → D2jzliMwAo2ENpfi.mjs} +1 -1
- package/browser/esm/D5Fn0Hqllwv5HY6i.mjs +7581 -0
- package/browser/esm/D5N4nGaZsXtrHAOh.mjs +831 -0
- package/browser/esm/D7AqPfyhMiuda5l5.mjs +412 -0
- package/browser/esm/DHZA48ZMCETvHmeP.mjs +161 -0
- package/browser/esm/DX2_vf7WX6uRLaOZ.mjs +94 -0
- package/browser/esm/DaxpbAF1ShkT7hNU.mjs +490 -0
- package/browser/esm/{D6S8kVTzOjCn0-SK.mjs → Db3oHfXiRtcH015t.mjs} +162 -156
- package/browser/esm/Dt47Huh1l3C4_5_w.mjs +87 -0
- package/browser/esm/{DmCQbW4zwkT_Rq88.mjs → DtPt0phL7m56YfHZ.mjs} +1 -1
- package/browser/esm/{CoSiOS-og0zFw4Ws.mjs → DtTDaXmnWUoG4VBO.mjs} +2 -2
- package/browser/esm/{DHY19rkSiiRZxShC.mjs → DuuyN4-7K6_io2Py.mjs} +3 -3
- package/browser/esm/{yZxC4qUENOlMhVUH.mjs → NeGeLF3gbGMZyV6E.mjs} +1 -1
- package/browser/esm/PY3Br5Bo_TxcCnCU.mjs +252 -0
- package/browser/esm/WIhvQtBkGiw-oFUs.mjs +2566 -0
- package/browser/esm/WgIvwAENeO8LANax.mjs +437 -0
- package/browser/esm/{DBtc4lku0uHVcqWn.mjs → Yjq3p_7eVGFw2Jod.mjs} +3 -3
- package/browser/esm/index.mjs +1053 -192
- package/browser/esm/jFRFCWlkD7Dsrhkh.mjs +236 -0
- package/browser/esm/lKXEDVt2ow1NlWJj.mjs +392 -0
- package/browser/esm/{Blaj2R5hYxtLAW__.mjs → oC0OwOddhOD0OoCJ.mjs} +6 -6
- package/browser/esm/{sFOAxZpxXo-qvDSp.mjs → tIKqpsA0vNXH9EgU.mjs} +1 -1
- package/browser/esm/{5cbK03T_Oh3tNdR7.mjs → u84rSnESjxqB6gay.mjs} +1 -1
- package/licenses/dependencies.txt +94 -94
- package/node/esm/{BcwMb6CyVfvEwbHn.mjs → B8Ls4Eh1k8-Yiry_.mjs} +1 -1
- package/node/esm/{CKu1AtRgyltyEdEN.mjs → B9X3n8MglL4OitAV.mjs} +1 -1
- package/node/esm/{ETK6T6G0SIcFXDe5.mjs → BBGoyqs2L_ccSH1e.mjs} +40 -40
- package/node/esm/BLv99aovW4R3C5PE.mjs +515 -0
- package/node/esm/BUGU_5lUtnCRlp3n.mjs +519 -0
- package/node/esm/BalROFG_oa9PFs9Q.mjs +141 -0
- package/node/esm/{ah3CUg4-VmNstGk_.mjs → BqVxnA1mo52ubjdf.mjs} +2 -2
- package/node/esm/C3FCh9xju2SccUIE.mjs +1283 -0
- package/node/esm/{Bb1sLMqXWKjdve23.mjs → C4F6WY8M4nkLyxdb.mjs} +2 -2
- package/node/esm/CKWeipCqqpLnLE5e.mjs +391 -0
- package/node/esm/CTnVNfz4eqFnM92M.mjs +212 -0
- package/node/esm/Cfi_ly8fBDZZdiZT.mjs +72 -0
- package/node/esm/CgKa6JuyJ1tTodev.mjs +1703 -0
- package/node/esm/{cqzp431iNSLWictb.mjs → Cq53M7bAUSXMNq1f.mjs} +22 -22
- package/node/esm/{BYsG3KYVmxSe_CIQ.mjs → Cr8AYWUoU-XVt0hu.mjs} +1 -1
- package/node/esm/CyuOE595I2e-U4cG.mjs +236 -0
- package/node/esm/D72CupF9mfy2D1Xa.mjs +94 -0
- package/node/esm/{DNSjK5DAH3M14Qbc.mjs → DGDHFK8okuVbRCe5.mjs} +1 -1
- package/node/esm/{B8SQfjKjzYHLxzZR.mjs → DJFkALt4XrwkMbnU.mjs} +163 -157
- package/node/esm/DJpwI8PlKBI2rk0r.mjs +319 -0
- package/node/esm/{DZzvTQxIKr9LbEsA.mjs → DQaGPUYbgL4Y5YZW.mjs} +32 -30
- package/node/esm/{D9rzScOA9pEYFrtz.mjs → DsNYnq4NtYBxPmeA.mjs} +20 -20
- package/node/esm/DygDgOpa9sJ6YFVS.mjs +385 -0
- package/node/esm/Dz0Hg87UcJ-awwiI.mjs +489 -0
- package/node/esm/M7YxvRPGCuxuk9aK.mjs +142 -0
- package/node/esm/QNjtpX8rIpqGGLEJ.mjs +1379 -0
- package/node/esm/{B_jRGdwGFkudwmL-.mjs → ZzvsynJTCSuChYS-.mjs} +1 -1
- package/node/esm/{ci8d-mF1H9wnYzix.mjs → di_8-pXh90j4BO4j.mjs} +1 -1
- package/node/esm/dm8dmEaTIqfmgyeL.mjs +412 -0
- package/node/esm/{D6oQL8knsPpgdXuk.mjs → fmya3XQnTGyQisvT.mjs} +2 -2
- package/node/esm/gPYAb_A0T5ZwcQ1E.mjs +318 -0
- package/node/esm/index.mjs +8915 -13417
- package/node/esm/wB8xMpyJ_NvE16yG.mjs +975 -0
- package/node/esm/zGAcd4Jr7wkvXDBS.mjs +197 -0
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +4 -0
- package/resources/locales/de/ui.msg.json +100 -1
- package/resources/locales/en/groups.cmd.json +4 -0
- package/resources/locales/en/ui.msg.json +100 -1
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +4 -4
- package/types/src/anomalies/AnomaliesPlugin.d.ts +5 -0
- package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
- package/types/src/anomalies/index.d.ts +3 -0
- package/types/src/border/BorderPopupButton.d.ts +1 -1
- package/types/src/border/BorderTemplateIcon.d.ts +6 -1
- package/types/src/chart/ChartFormatPanel.d.ts +20 -0
- package/types/src/chart/ChartPlugin.d.ts +6 -0
- package/types/src/chart/index.d.ts +3 -0
- package/types/src/color/ColorPopupButton.d.ts +1 -1
- package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
- package/types/src/command/DocThemeCommandButton.d.ts +1 -1
- package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
- package/types/src/command/FontSizeCommandButton.d.ts +1 -1
- package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
- package/types/src/command/LanguageCommandButton.d.ts +1 -1
- package/types/src/command/LocaleCommandButton.d.ts +1 -1
- package/types/src/command/index.d.ts +1 -0
- package/types/src/comments/CommentCard.d.ts +2 -2
- package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +1 -1
- package/types/src/conditions/ConditionEditor.d.ts +1 -1
- package/types/src/conditions/OperatorAndParamEditor.d.ts +1 -1
- package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
- package/types/src/conditions/useFormulaOption.d.ts +2 -2
- package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
- package/types/src/fill/PatternPopupButton.d.ts +1 -1
- package/types/src/format/BorderPreview.d.ts +11 -4
- package/types/src/format/useFormatSelection.d.ts +4 -4
- package/types/src/formulaBar/IFormulaBar.d.ts +4 -2
- package/types/src/formulaBar/MobileFormulaBar.d.ts +18 -6
- package/types/src/formulaBar/MobileInputToolbar.d.ts +9 -3
- package/types/src/formulaBar/useFormulaBarSession.d.ts +6 -3
- package/types/src/index.d.ts +15 -6
- package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
- package/types/src/named/NamedDetailsPanel.d.ts +2 -2
- package/types/src/protection/ProtectedCellsPanel.d.ts +2 -2
- package/types/src/protection/{SheetProtectionPanel.d.ts → WorksheetProtectionPanel.d.ts} +6 -6
- package/types/src/protection/index.d.ts +1 -1
- package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +2 -2
- package/types/src/statusBar/PendingStatus.d.ts +19 -0
- package/types/src/statusBar/index.d.ts +1 -0
- package/types/src/studio/StudioProps.d.ts +10 -10
- package/types/src/template/TemplatePanel.d.ts +5 -1
- package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
- package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
- package/types/src/workbook/DefaultRenderers.d.ts +31 -19
- package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
- package/types/src/workbook/WorkbookElement.d.ts +5 -4
- package/types/src/workbook/WorkbookStrip.d.ts +8 -7
- package/types/src/workbook/index.d.ts +1 -1
- package/browser/esm/Biy7bhzzzPb5sfRN.mjs +0 -152
- package/browser/esm/COv-m-c2byCgvU3M.mjs +0 -14861
- package/browser/esm/CtEFHbzYNvYjDYvi.mjs +0 -236
- package/browser/esm/Die9NXVFveHvcCT-.mjs +0 -4205
- package/browser/esm/sam1KGQZ59B_fADz.mjs +0 -1941
- package/node/esm/BYVLi0md4AYuDsB_.mjs +0 -236
- package/node/esm/BYwXhrEwkRAt9nJS.mjs +0 -71
- package/node/esm/Cmt8Wv806N7NmE4Y.mjs +0 -3344
|
@@ -0,0 +1,2566 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.12
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { A as e, C as t, Et as n, I as r, L as i, M as a, N as o, R as s, S as c, W as l, _t as u, dt as d, et as f, i as p, pt as m, r as h, rt as g, t as _, tt as v, u as ee, v as y } from "./D5Fn0Hqllwv5HY6i.mjs";
|
|
8
|
+
import { t as b } from "./u84rSnESjxqB6gay.mjs";
|
|
9
|
+
import { n as x, t as S } from "./CJD4jF4m9cBGHzr_.mjs";
|
|
10
|
+
import { CommandRootProvider as te, DefaultTaskPaneRegistry as C, LogoNoPaddingIcon as ne, SHAPE_ICON_PACK as re, TaskPaneArea as w, TaskPaneProvider as ie, ThemeStateDefaults as ae, ThemeStateKey as T, WorkbookIO as E, WorkbookProvider as oe, buildOOXMLThemeCSS as se, createEditable as ce, createSystemColorVars as le, registerMovablePane as ue, registerMovableToolbarEntry as de, useDocThemes as fe, useModelSync as pe, useReferenceModeStore as me, useResolvedWorkbook as he, useTaskPaneArea as ge, useWorkbookEncrypted as _e, useWorkbookName as ve, useWorkbookSaveState as ye } from "@sheetxl/react";
|
|
11
|
+
import { Command as be, DefaultIconService as xe, DynamicIcon as Se, LanguageStateKey as Ce, NotifierType as D, ReactErrorBoundary as we, ReactNotifierProvider as Te, ReactUtils as Ee, RenderSlot as De, ScrollUtils as Oe, SplitPane as ke, UncaughtErrorBoundary as Ae, createBusyHandle as je, useCallbackRef as O, useFullscreen as Me, useImperativeElement as Ne, useLanguage as k, useMeasure as Pe, useNotifier as Fe, usePersistentState as Ie, useResolvedThemeMode as Le, useTokenThemeContext as Re, useTranslator as A, useVisualViewportRect as ze } from "@sheetxl/utils-react";
|
|
12
|
+
import j, { Component as Be, cloneElement as Ve, createElement as He, forwardRef as M, isValidElement as Ue, memo as N, useCallback as P, useContext as We, useEffect as F, useLayoutEffect as Ge, useMemo as I, useRef as L, useState as R } from "react";
|
|
13
|
+
import { AnimatedLoadingPanel as Ke, AnimatedTraversingEllipsisIcon as qe, CommandGroup as Je, ExhibitFloatProvider as Ye, ExhibitTooltip as z, ModalProvider as Xe, SimpleTooltip as Ze, StackTrace as Qe, createExhibitTheme as $e, hideLoadingPanel as et, lazyModal as tt, lazyPanel as nt, showLoadingPanel as rt, useInputDialog as it, useLazyWindow as at, useModal as ot, useOptionsDialog as st } from "@sheetxl/utils-mui";
|
|
14
|
+
import { Fragment as ct, jsx as B, jsxs as V } from "react/jsx-runtime";
|
|
15
|
+
import { Box as H, Card as lt, CardActions as ut, Collapse as dt, CssBaseline as ft, DialogTitle as pt, IconButton as mt, Paper as ht, SvgIcon as gt, Tab as _t, Tabs as U, ThemeProvider as vt, Typography as yt, alpha as bt, useMediaQuery as xt, useTheme as St } from "@mui/material";
|
|
16
|
+
import { CommonUtils as Ct, DOMUtils as wt, DefaultLanguagePackService as Tt, ErrorUtils as Et, ExpectedError as Dt, PartialError as Ot, defineLazyModule as W, formatMessage as G, messageKey as K, t as q } from "@sheetxl/utils";
|
|
17
|
+
import { createPortal as J } from "react-dom";
|
|
18
|
+
var kt = nt(W("studio:conditionalFormatDetailsTaskPane", () => import("./BZy9xUrYpAtnKeji.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), At = ["lines"];
|
|
19
|
+
function jt(e) {
|
|
20
|
+
var t, n, r = "";
|
|
21
|
+
if (typeof e == "string" || typeof e == "number") r += e;
|
|
22
|
+
else if (typeof e == "object") {
|
|
23
|
+
if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = jt(e[t])) && (r && (r += " "), r += n);
|
|
24
|
+
else for (t in e) e[t] && (r && (r += " "), r += t);
|
|
25
|
+
}
|
|
26
|
+
return r;
|
|
27
|
+
}
|
|
28
|
+
function Y() {
|
|
29
|
+
for (var e, t, n = 0, r = ""; n < arguments.length;) (e = arguments[n++]) && (t = jt(e)) && (r && (r += " "), r += t);
|
|
30
|
+
return r;
|
|
31
|
+
}
|
|
32
|
+
var Mt = { data: "" }, Nt = (e) => {
|
|
33
|
+
if (typeof window == "object") {
|
|
34
|
+
let t = (e ? e.querySelector("#_goober") : window._goober) || Object.assign(document.createElement("style"), {
|
|
35
|
+
innerHTML: " ",
|
|
36
|
+
id: "_goober"
|
|
37
|
+
});
|
|
38
|
+
return t.nonce = window.__nonce__, t.parentNode || (e || document.head).appendChild(t), t.firstChild;
|
|
39
|
+
}
|
|
40
|
+
return e || Mt;
|
|
41
|
+
}, Pt = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Ft = /\/\*[^]*?\*\/| +/g, It = /\n+/g, X = (e, t) => {
|
|
42
|
+
let n = "", r = "", i = "";
|
|
43
|
+
for (let a in e) {
|
|
44
|
+
let o = e[a];
|
|
45
|
+
a[0] == "@" ? a[1] == "i" ? n = a + " " + o + ";" : r += a[1] == "f" ? X(o, a) : a + "{" + X(o, a[1] == "k" ? "" : t) + "}" : typeof o == "object" ? r += X(o, t ? t.replace(/([^,])+/g, (e) => a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (t) => /&/.test(t) ? t.replace(/&/g, e) : e ? e + " " + t : t)) : a) : o != null && (a = a[1] == "-" ? a : a.replace(/[A-Z]/g, "-$&").toLowerCase(), i += X.p ? X.p(a, o) : a + ":" + o + ";");
|
|
46
|
+
}
|
|
47
|
+
return n + (t && i ? t + "{" + i + "}" : i) + r;
|
|
48
|
+
}, Z = {}, Lt = (e) => {
|
|
49
|
+
if (typeof e == "object") {
|
|
50
|
+
let t = "";
|
|
51
|
+
for (let n in e) t += n + Lt(e[n]);
|
|
52
|
+
return t;
|
|
53
|
+
}
|
|
54
|
+
return e;
|
|
55
|
+
}, Rt = (e, t, n, r, i) => {
|
|
56
|
+
let a = Lt(e), o = Z[a] || (Z[a] = ((e) => {
|
|
57
|
+
let t = 0, n = 11;
|
|
58
|
+
for (; t < e.length;) n = 101 * n + e.charCodeAt(t++) >>> 0;
|
|
59
|
+
return "go" + n;
|
|
60
|
+
})(a));
|
|
61
|
+
if (!Z[o]) {
|
|
62
|
+
let t = a === e ? ((e) => {
|
|
63
|
+
let t, n, r = [{}];
|
|
64
|
+
for (; t = Pt.exec(e.replace(Ft, ""));) t[4] ? r.shift() : t[3] ? (n = t[3].replace(It, " ").trim(), r.unshift(r[0][n] = r[0][n] || {})) : r[0][t[1]] = t[2].replace(It, " ").trim();
|
|
65
|
+
return r[0];
|
|
66
|
+
})(e) : e;
|
|
67
|
+
Z[o] = X(i ? { ["@keyframes " + o]: t } : t, n ? "" : "." + o);
|
|
68
|
+
}
|
|
69
|
+
let s = n && Z.g;
|
|
70
|
+
return n && (Z.g = Z[o]), ((e, t, n, r) => {
|
|
71
|
+
r ? t.data = t.data.replace(r, e) : t.data.indexOf(e) === -1 && (t.data = n ? e + t.data : t.data + e);
|
|
72
|
+
})(Z[o], t, r, s), o;
|
|
73
|
+
};
|
|
74
|
+
function zt(e) {
|
|
75
|
+
let t = this || {}, n = e.call ? e(t.p) : e;
|
|
76
|
+
return Rt(n.unshift ? n.raw ? ((e, t, n) => e.reduce((e, r, i) => {
|
|
77
|
+
let a = t[i];
|
|
78
|
+
if (a && a.call) {
|
|
79
|
+
let e = a(n), t = e && e.props && e.props.className || /^go/.test(e) && e;
|
|
80
|
+
a = t ? "." + t : e && typeof e == "object" ? e.props ? "" : X(e, "") : !1 === e ? "" : e;
|
|
81
|
+
}
|
|
82
|
+
return e + r + (a ?? "");
|
|
83
|
+
}, ""))(n, [].slice.call(arguments, 1), t.p) : n.reduce((e, n) => Object.assign(e, n && n.call ? n(t.p) : n), {}) : n, Nt(t.target), t.g, t.o, t.k);
|
|
84
|
+
}
|
|
85
|
+
zt.bind({ g: 1 }), zt.bind({ k: 1 });
|
|
86
|
+
function Bt(e, t) {
|
|
87
|
+
for (var n = 0; n < t.length; n++) {
|
|
88
|
+
var r = t[n];
|
|
89
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function Vt(e, t, n) {
|
|
93
|
+
return t && Bt(e.prototype, t), n && Bt(e, n), e;
|
|
94
|
+
}
|
|
95
|
+
function Q() {
|
|
96
|
+
return Q = Object.assign || function(e) {
|
|
97
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
98
|
+
var n = arguments[t];
|
|
99
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
100
|
+
}
|
|
101
|
+
return e;
|
|
102
|
+
}, Q.apply(this, arguments);
|
|
103
|
+
}
|
|
104
|
+
function Ht(e, t) {
|
|
105
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
|
|
106
|
+
}
|
|
107
|
+
function Ut(e, t) {
|
|
108
|
+
if (e == null) return {};
|
|
109
|
+
for (var n, r = {}, i = Object.keys(e), a = 0; a < i.length; a++) n = i[a], t.indexOf(n) >= 0 || (r[n] = e[n]);
|
|
110
|
+
return r;
|
|
111
|
+
}
|
|
112
|
+
function Wt(e) {
|
|
113
|
+
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
114
|
+
return e;
|
|
115
|
+
}
|
|
116
|
+
var Gt = function() {
|
|
117
|
+
return "";
|
|
118
|
+
}, Kt = j.createContext({
|
|
119
|
+
enqueueSnackbar: Gt,
|
|
120
|
+
closeSnackbar: Gt
|
|
121
|
+
}), qt = "@media (max-width:599.95px)", Jt = "@media (min-width:600px)", Yt = function(e) {
|
|
122
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
123
|
+
}, Xt = function(e) {
|
|
124
|
+
return "" + Yt(e.vertical) + Yt(e.horizontal);
|
|
125
|
+
}, Zt = function(e) {
|
|
126
|
+
return !!e || e === 0;
|
|
127
|
+
}, Qt = "unmounted", $t = "exited", en = "entering", tn = "entered", nn = "exiting", rn = function(e) {
|
|
128
|
+
function t(t) {
|
|
129
|
+
var n, r = e.call(this, t) || this, i = t.appear;
|
|
130
|
+
return r.appearStatus = null, t.in ? i ? (n = $t, r.appearStatus = en) : n = tn : n = t.unmountOnExit || t.mountOnEnter ? Qt : $t, r.state = { status: n }, r.nextCallback = null, r;
|
|
131
|
+
}
|
|
132
|
+
Ht(t, e), t.getDerivedStateFromProps = function(e, t) {
|
|
133
|
+
return e.in && t.status === Qt ? { status: $t } : null;
|
|
134
|
+
};
|
|
135
|
+
var n = t.prototype;
|
|
136
|
+
return n.componentDidMount = function() {
|
|
137
|
+
this.updateStatus(!0, this.appearStatus);
|
|
138
|
+
}, n.componentDidUpdate = function(e) {
|
|
139
|
+
var t = null;
|
|
140
|
+
if (e !== this.props) {
|
|
141
|
+
var n = this.state.status;
|
|
142
|
+
this.props.in ? n !== en && n !== tn && (t = en) : n !== en && n !== tn || (t = nn);
|
|
143
|
+
}
|
|
144
|
+
this.updateStatus(!1, t);
|
|
145
|
+
}, n.componentWillUnmount = function() {
|
|
146
|
+
this.cancelNextCallback();
|
|
147
|
+
}, n.getTimeouts = function() {
|
|
148
|
+
var e = this.props.timeout, t = e, n = e;
|
|
149
|
+
return e != null && typeof e != "number" && typeof e != "string" && (n = e.exit, t = e.enter), {
|
|
150
|
+
exit: n,
|
|
151
|
+
enter: t
|
|
152
|
+
};
|
|
153
|
+
}, n.updateStatus = function(e, t) {
|
|
154
|
+
e === void 0 && (e = !1), t === null ? this.props.unmountOnExit && this.state.status === $t && this.setState({ status: Qt }) : (this.cancelNextCallback(), t === en ? this.performEnter(e) : this.performExit());
|
|
155
|
+
}, n.performEnter = function(e) {
|
|
156
|
+
var t = this, n = this.props.enter, r = e, i = this.getTimeouts();
|
|
157
|
+
e || n ? (this.props.onEnter && this.props.onEnter(this.node, r), this.safeSetState({ status: en }, function() {
|
|
158
|
+
t.props.onEntering && t.props.onEntering(t.node, r), t.onTransitionEnd(i.enter, function() {
|
|
159
|
+
t.safeSetState({ status: tn }, function() {
|
|
160
|
+
t.props.onEntered && t.props.onEntered(t.node, r);
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
})) : this.safeSetState({ status: tn }, function() {
|
|
164
|
+
t.props.onEntered && t.props.onEntered(t.node, r);
|
|
165
|
+
});
|
|
166
|
+
}, n.performExit = function() {
|
|
167
|
+
var e = this, t = this.props.exit, n = this.getTimeouts();
|
|
168
|
+
t ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status: nn }, function() {
|
|
169
|
+
e.props.onExiting && e.props.onExiting(e.node), e.onTransitionEnd(n.exit, function() {
|
|
170
|
+
e.safeSetState({ status: $t }, function() {
|
|
171
|
+
e.props.onExited && e.props.onExited(e.node);
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
})) : this.safeSetState({ status: $t }, function() {
|
|
175
|
+
e.props.onExited && e.props.onExited(e.node);
|
|
176
|
+
});
|
|
177
|
+
}, n.cancelNextCallback = function() {
|
|
178
|
+
this.nextCallback !== null && this.nextCallback.cancel && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
179
|
+
}, n.safeSetState = function(e, t) {
|
|
180
|
+
t = this.setNextCallback(t), this.setState(e, t);
|
|
181
|
+
}, n.setNextCallback = function(e) {
|
|
182
|
+
var t = this, n = !0;
|
|
183
|
+
return this.nextCallback = function() {
|
|
184
|
+
n && (n = !1, t.nextCallback = null, e());
|
|
185
|
+
}, this.nextCallback.cancel = function() {
|
|
186
|
+
n = !1;
|
|
187
|
+
}, this.nextCallback;
|
|
188
|
+
}, n.onTransitionEnd = function(e, t) {
|
|
189
|
+
this.setNextCallback(t);
|
|
190
|
+
var n = e == null && !this.props.addEndListener;
|
|
191
|
+
this.node && !n ? (this.props.addEndListener && this.props.addEndListener(this.node, this.nextCallback), e != null && setTimeout(this.nextCallback, e)) : setTimeout(this.nextCallback, 0);
|
|
192
|
+
}, n.render = function() {
|
|
193
|
+
var e = this.state.status;
|
|
194
|
+
if (e === Qt) return null;
|
|
195
|
+
var t = this.props;
|
|
196
|
+
return (0, t.children)(e, Ut(t, [
|
|
197
|
+
"children",
|
|
198
|
+
"in",
|
|
199
|
+
"mountOnEnter",
|
|
200
|
+
"unmountOnExit",
|
|
201
|
+
"appear",
|
|
202
|
+
"enter",
|
|
203
|
+
"exit",
|
|
204
|
+
"timeout",
|
|
205
|
+
"addEndListener",
|
|
206
|
+
"onEnter",
|
|
207
|
+
"onEntering",
|
|
208
|
+
"onEntered",
|
|
209
|
+
"onExit",
|
|
210
|
+
"onExiting",
|
|
211
|
+
"onExited",
|
|
212
|
+
"nodeRef"
|
|
213
|
+
]));
|
|
214
|
+
}, Vt(t, [{
|
|
215
|
+
key: "node",
|
|
216
|
+
get: function() {
|
|
217
|
+
var e = this.props.nodeRef?.current;
|
|
218
|
+
if (!e) throw Error("notistack - Custom snackbar is not refForwarding");
|
|
219
|
+
return e;
|
|
220
|
+
}
|
|
221
|
+
}]), t;
|
|
222
|
+
}(j.Component);
|
|
223
|
+
function an() {}
|
|
224
|
+
function on(e, t) {
|
|
225
|
+
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
226
|
+
}
|
|
227
|
+
function sn(e, t) {
|
|
228
|
+
return I(function() {
|
|
229
|
+
return e == null && t == null ? null : function(n) {
|
|
230
|
+
on(e, n), on(t, n);
|
|
231
|
+
};
|
|
232
|
+
}, [e, t]);
|
|
233
|
+
}
|
|
234
|
+
function cn(e) {
|
|
235
|
+
var t = e.timeout, n = e.style, r = n === void 0 ? {} : n, i = e.mode;
|
|
236
|
+
return {
|
|
237
|
+
duration: typeof t == "object" ? t[i] || 0 : t,
|
|
238
|
+
easing: r.transitionTimingFunction,
|
|
239
|
+
delay: r.transitionDelay
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
rn.defaultProps = {
|
|
243
|
+
in: !1,
|
|
244
|
+
mountOnEnter: !1,
|
|
245
|
+
unmountOnExit: !1,
|
|
246
|
+
appear: !1,
|
|
247
|
+
enter: !0,
|
|
248
|
+
exit: !0,
|
|
249
|
+
onEnter: an,
|
|
250
|
+
onEntering: an,
|
|
251
|
+
onEntered: an,
|
|
252
|
+
onExit: an,
|
|
253
|
+
onExiting: an,
|
|
254
|
+
onExited: an
|
|
255
|
+
};
|
|
256
|
+
var ln = "cubic-bezier(0.4, 0, 0.2, 1)", un = "cubic-bezier(0.0, 0, 0.2, 1)", dn = "cubic-bezier(0.4, 0, 0.6, 1)", fn = function(e) {
|
|
257
|
+
e.scrollTop = e.scrollTop;
|
|
258
|
+
}, pn = function(e) {
|
|
259
|
+
return Math.round(e) + "ms";
|
|
260
|
+
};
|
|
261
|
+
function mn(e, t) {
|
|
262
|
+
e === void 0 && (e = ["all"]);
|
|
263
|
+
var n = t || {}, r = n.duration, i = r === void 0 ? 300 : r, a = n.easing, o = a === void 0 ? ln : a, s = n.delay, c = s === void 0 ? 0 : s;
|
|
264
|
+
return (Array.isArray(e) ? e : [e]).map(function(e) {
|
|
265
|
+
var t = typeof i == "string" ? i : pn(i), n = typeof c == "string" ? c : pn(c);
|
|
266
|
+
return e + " " + t + " " + o + " " + n;
|
|
267
|
+
}).join(",");
|
|
268
|
+
}
|
|
269
|
+
function hn(e) {
|
|
270
|
+
return function(e) {
|
|
271
|
+
return e && e.ownerDocument || document;
|
|
272
|
+
}(e).defaultView || window;
|
|
273
|
+
}
|
|
274
|
+
function gn(e, t) {
|
|
275
|
+
if (t) {
|
|
276
|
+
var n = function(e, t) {
|
|
277
|
+
var n, r = t.getBoundingClientRect(), i = hn(t);
|
|
278
|
+
if (t.fakeTransform) n = t.fakeTransform;
|
|
279
|
+
else {
|
|
280
|
+
var a = i.getComputedStyle(t);
|
|
281
|
+
n = a.getPropertyValue("-webkit-transform") || a.getPropertyValue("transform");
|
|
282
|
+
}
|
|
283
|
+
var o = 0, s = 0;
|
|
284
|
+
if (n && n !== "none" && typeof n == "string") {
|
|
285
|
+
var c = n.split("(")[1].split(")")[0].split(",");
|
|
286
|
+
o = parseInt(c[4], 10), s = parseInt(c[5], 10);
|
|
287
|
+
}
|
|
288
|
+
switch (e) {
|
|
289
|
+
case "left": return "translateX(" + (i.innerWidth + o - r.left) + "px)";
|
|
290
|
+
case "right": return "translateX(-" + (r.left + r.width - o) + "px)";
|
|
291
|
+
case "up": return "translateY(" + (i.innerHeight + s - r.top) + "px)";
|
|
292
|
+
default: return "translateY(-" + (r.top + r.height - s) + "px)";
|
|
293
|
+
}
|
|
294
|
+
}(e, t);
|
|
295
|
+
n && (t.style.webkitTransform = n, t.style.transform = n);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
var _n = M(function(e, t) {
|
|
299
|
+
var n = e.children, r = e.direction, i = r === void 0 ? "down" : r, a = e.in, o = e.style, s = e.timeout, c = s === void 0 ? 0 : s, l = e.onEnter, u = e.onEntered, d = e.onExit, f = e.onExited, p = Ut(e, [
|
|
300
|
+
"children",
|
|
301
|
+
"direction",
|
|
302
|
+
"in",
|
|
303
|
+
"style",
|
|
304
|
+
"timeout",
|
|
305
|
+
"onEnter",
|
|
306
|
+
"onEntered",
|
|
307
|
+
"onExit",
|
|
308
|
+
"onExited"
|
|
309
|
+
]), m = L(null), h = sn(sn(n.ref, m), t), g = P(function() {
|
|
310
|
+
m.current && gn(i, m.current);
|
|
311
|
+
}, [i]);
|
|
312
|
+
return F(function() {
|
|
313
|
+
if (!a && i !== "down" && i !== "right") {
|
|
314
|
+
var e = function(e, t) {
|
|
315
|
+
var n;
|
|
316
|
+
function r() {
|
|
317
|
+
for (var r = this, i = arguments.length, a = Array(i), o = 0; o < i; o++) a[o] = arguments[o];
|
|
318
|
+
clearTimeout(n), n = setTimeout(function() {
|
|
319
|
+
e.apply(r, a);
|
|
320
|
+
}, t);
|
|
321
|
+
}
|
|
322
|
+
return t === void 0 && (t = 166), r.clear = function() {
|
|
323
|
+
clearTimeout(n);
|
|
324
|
+
}, r;
|
|
325
|
+
}(function() {
|
|
326
|
+
m.current && gn(i, m.current);
|
|
327
|
+
}), t = hn(m.current);
|
|
328
|
+
return t.addEventListener("resize", e), function() {
|
|
329
|
+
e.clear(), t.removeEventListener("resize", e);
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
}, [i, a]), F(function() {
|
|
333
|
+
a || g();
|
|
334
|
+
}, [a, g]), He(rn, Object.assign({
|
|
335
|
+
appear: !0,
|
|
336
|
+
nodeRef: m,
|
|
337
|
+
onEnter: function(e, t) {
|
|
338
|
+
gn(i, e), fn(e), l && l(e, t);
|
|
339
|
+
},
|
|
340
|
+
onEntered: u,
|
|
341
|
+
onEntering: function(e) {
|
|
342
|
+
var t = o?.transitionTimingFunction || un, n = cn({
|
|
343
|
+
timeout: c,
|
|
344
|
+
mode: "enter",
|
|
345
|
+
style: Q({}, o, { transitionTimingFunction: t })
|
|
346
|
+
});
|
|
347
|
+
e.style.webkitTransition = mn("-webkit-transform", n), e.style.transition = mn("transform", n), e.style.webkitTransform = "none", e.style.transform = "none";
|
|
348
|
+
},
|
|
349
|
+
onExit: function(e) {
|
|
350
|
+
var t = o?.transitionTimingFunction || dn, n = cn({
|
|
351
|
+
timeout: c,
|
|
352
|
+
mode: "exit",
|
|
353
|
+
style: Q({}, o, { transitionTimingFunction: t })
|
|
354
|
+
});
|
|
355
|
+
e.style.webkitTransition = mn("-webkit-transform", n), e.style.transition = mn("transform", n), gn(i, e), d && d(e);
|
|
356
|
+
},
|
|
357
|
+
onExited: function(e) {
|
|
358
|
+
e.style.webkitTransition = "", e.style.transition = "", f && f(e);
|
|
359
|
+
},
|
|
360
|
+
in: a,
|
|
361
|
+
timeout: c
|
|
362
|
+
}, p), function(e, t) {
|
|
363
|
+
return Ve(n, Q({
|
|
364
|
+
ref: h,
|
|
365
|
+
style: Q({ visibility: e !== "exited" || a ? void 0 : "hidden" }, o, {}, n.props.style)
|
|
366
|
+
}, t));
|
|
367
|
+
});
|
|
368
|
+
});
|
|
369
|
+
_n.displayName = "Slide";
|
|
370
|
+
var vn = function(e) {
|
|
371
|
+
return j.createElement("svg", Object.assign({
|
|
372
|
+
viewBox: "0 0 24 24",
|
|
373
|
+
focusable: "false",
|
|
374
|
+
style: {
|
|
375
|
+
fontSize: 20,
|
|
376
|
+
marginInlineEnd: 8,
|
|
377
|
+
userSelect: "none",
|
|
378
|
+
width: "1em",
|
|
379
|
+
height: "1em",
|
|
380
|
+
display: "inline-block",
|
|
381
|
+
fill: "currentColor",
|
|
382
|
+
flexShrink: 0
|
|
383
|
+
}
|
|
384
|
+
}, e));
|
|
385
|
+
}, yn = {
|
|
386
|
+
maxSnack: 3,
|
|
387
|
+
persist: !1,
|
|
388
|
+
hideIconVariant: !1,
|
|
389
|
+
disableWindowBlurListener: !1,
|
|
390
|
+
variant: "default",
|
|
391
|
+
autoHideDuration: 5e3,
|
|
392
|
+
iconVariant: {
|
|
393
|
+
default: void 0,
|
|
394
|
+
success: j.createElement(function() {
|
|
395
|
+
return j.createElement(vn, null, j.createElement("path", { d: "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z" }));
|
|
396
|
+
}, null),
|
|
397
|
+
warning: j.createElement(function() {
|
|
398
|
+
return j.createElement(vn, null, j.createElement("path", { d: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z" }));
|
|
399
|
+
}, null),
|
|
400
|
+
error: j.createElement(function() {
|
|
401
|
+
return j.createElement(vn, null, j.createElement("path", { d: "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z" }));
|
|
402
|
+
}, null),
|
|
403
|
+
info: j.createElement(function() {
|
|
404
|
+
return j.createElement(vn, null, j.createElement("path", { d: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z" }));
|
|
405
|
+
}, null)
|
|
406
|
+
},
|
|
407
|
+
anchorOrigin: {
|
|
408
|
+
vertical: "bottom",
|
|
409
|
+
horizontal: "left"
|
|
410
|
+
},
|
|
411
|
+
TransitionComponent: _n,
|
|
412
|
+
transitionDuration: {
|
|
413
|
+
enter: 225,
|
|
414
|
+
exit: 195
|
|
415
|
+
}
|
|
416
|
+
}, bn = function(e, t) {
|
|
417
|
+
return function(n, r) {
|
|
418
|
+
return r === void 0 && (r = !1), r ? Q({}, yn[n], {}, t[n], {}, e[n]) : n === "autoHideDuration" ? (i = e.autoHideDuration, a = t.autoHideDuration, (o = function(e) {
|
|
419
|
+
return typeof e == "number" || e === null;
|
|
420
|
+
})(i) ? i : o(a) ? a : yn.autoHideDuration) : n === "transitionDuration" ? function(e, t) {
|
|
421
|
+
var n = function(e, t) {
|
|
422
|
+
return t.some(function(t) {
|
|
423
|
+
return typeof e === t;
|
|
424
|
+
});
|
|
425
|
+
};
|
|
426
|
+
return n(e, ["string", "number"]) ? e : n(e, ["object"]) ? Q({}, yn.transitionDuration, {}, n(t, ["object"]) && t, {}, e) : n(t, ["string", "number"]) ? t : n(t, ["object"]) ? Q({}, yn.transitionDuration, {}, t) : yn.transitionDuration;
|
|
427
|
+
}(e.transitionDuration, t.transitionDuration) : e[n] || t[n] || yn[n];
|
|
428
|
+
var i, a, o;
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
function xn(e) {
|
|
432
|
+
return Object.entries(e).reduce(function(e, t) {
|
|
433
|
+
var n, r = t[0], i = t[1];
|
|
434
|
+
return Q({}, e, ((n = {})[r] = zt(i), n));
|
|
435
|
+
}, {});
|
|
436
|
+
}
|
|
437
|
+
var Sn = "notistack-SnackbarContainer", Cn = "notistack-Snackbar", wn = "notistack-CollapseWrapper", Tn = "notistack-MuiContent", En = function(e) {
|
|
438
|
+
return "notistack-MuiContent-" + e;
|
|
439
|
+
}, Dn = xn({
|
|
440
|
+
root: { height: 0 },
|
|
441
|
+
entered: { height: "auto" }
|
|
442
|
+
}), On = "0px", kn = M(function(e, t) {
|
|
443
|
+
var n = e.children, r = e.in, i = e.onExited, a = L(null), o = L(null), s = sn(t, o), c = function() {
|
|
444
|
+
return a.current ? a.current.clientHeight : 0;
|
|
445
|
+
};
|
|
446
|
+
return He(rn, {
|
|
447
|
+
in: r,
|
|
448
|
+
unmountOnExit: !0,
|
|
449
|
+
onEnter: function(e) {
|
|
450
|
+
e.style.height = On;
|
|
451
|
+
},
|
|
452
|
+
onEntered: function(e) {
|
|
453
|
+
e.style.height = "auto";
|
|
454
|
+
},
|
|
455
|
+
onEntering: function(e) {
|
|
456
|
+
var t = c(), n = cn({
|
|
457
|
+
timeout: 175,
|
|
458
|
+
mode: "enter"
|
|
459
|
+
}), r = n.duration, i = n.easing;
|
|
460
|
+
e.style.transitionDuration = typeof r == "string" ? r : r + "ms", e.style.height = t + "px", e.style.transitionTimingFunction = i || "";
|
|
461
|
+
},
|
|
462
|
+
onExit: function(e) {
|
|
463
|
+
e.style.height = c() + "px";
|
|
464
|
+
},
|
|
465
|
+
onExited: i,
|
|
466
|
+
onExiting: function(e) {
|
|
467
|
+
fn(e);
|
|
468
|
+
var t = cn({
|
|
469
|
+
timeout: 175,
|
|
470
|
+
mode: "exit"
|
|
471
|
+
}), n = t.duration, r = t.easing;
|
|
472
|
+
e.style.transitionDuration = typeof n == "string" ? n : n + "ms", e.style.height = On, e.style.transitionTimingFunction = r || "";
|
|
473
|
+
},
|
|
474
|
+
nodeRef: o,
|
|
475
|
+
timeout: 175
|
|
476
|
+
}, function(e, t) {
|
|
477
|
+
return He("div", Object.assign({
|
|
478
|
+
ref: s,
|
|
479
|
+
className: Y(Dn.root, e === "entered" && Dn.entered),
|
|
480
|
+
style: Q({
|
|
481
|
+
pointerEvents: "all",
|
|
482
|
+
overflow: "hidden",
|
|
483
|
+
minHeight: On,
|
|
484
|
+
transition: mn("height")
|
|
485
|
+
}, e === "entered" && { overflow: "visible" }, {}, e === "exited" && !r && { visibility: "hidden" })
|
|
486
|
+
}, t), He("div", {
|
|
487
|
+
ref: a,
|
|
488
|
+
className: wn,
|
|
489
|
+
style: {
|
|
490
|
+
display: "flex",
|
|
491
|
+
width: "100%"
|
|
492
|
+
}
|
|
493
|
+
}, n));
|
|
494
|
+
});
|
|
495
|
+
});
|
|
496
|
+
kn.displayName = "Collapse";
|
|
497
|
+
var An = {
|
|
498
|
+
right: "left",
|
|
499
|
+
left: "right",
|
|
500
|
+
bottom: "up",
|
|
501
|
+
top: "down"
|
|
502
|
+
}, jn = function(e) {
|
|
503
|
+
return "anchorOrigin" + Xt(e);
|
|
504
|
+
}, Mn = function() {};
|
|
505
|
+
function Nn(e, t) {
|
|
506
|
+
return e.reduce(function(e, n) {
|
|
507
|
+
return n == null ? e : function() {
|
|
508
|
+
var r = [...arguments], i = [].concat(r);
|
|
509
|
+
t && i.indexOf(t) === -1 && i.push(t), e.apply(this, i), n.apply(this, i);
|
|
510
|
+
};
|
|
511
|
+
}, Mn);
|
|
512
|
+
}
|
|
513
|
+
var Pn = typeof window < "u" ? Ge : F;
|
|
514
|
+
function Fn(e) {
|
|
515
|
+
var t = L(e);
|
|
516
|
+
return Pn(function() {
|
|
517
|
+
t.current = e;
|
|
518
|
+
}), P(function() {
|
|
519
|
+
return t.current.apply(void 0, arguments);
|
|
520
|
+
}, []);
|
|
521
|
+
}
|
|
522
|
+
var In, Ln = M(function(e, t) {
|
|
523
|
+
var n = e.children, r = e.className, i = e.autoHideDuration, a = e.disableWindowBlurListener, o = a !== void 0 && a, s = e.onClose, c = e.id, l = e.open, u = e.SnackbarProps, d = u === void 0 ? {} : u, f = L(), p = Fn(function() {
|
|
524
|
+
s && s.apply(void 0, arguments);
|
|
525
|
+
}), m = Fn(function(e) {
|
|
526
|
+
s && e != null && (f.current && clearTimeout(f.current), f.current = setTimeout(function() {
|
|
527
|
+
p(null, "timeout", c);
|
|
528
|
+
}, e));
|
|
529
|
+
});
|
|
530
|
+
F(function() {
|
|
531
|
+
return l && m(i), function() {
|
|
532
|
+
f.current && clearTimeout(f.current);
|
|
533
|
+
};
|
|
534
|
+
}, [
|
|
535
|
+
l,
|
|
536
|
+
i,
|
|
537
|
+
m
|
|
538
|
+
]);
|
|
539
|
+
var h = function() {
|
|
540
|
+
f.current && clearTimeout(f.current);
|
|
541
|
+
}, g = P(function() {
|
|
542
|
+
i != null && m(.5 * i);
|
|
543
|
+
}, [i, m]);
|
|
544
|
+
return F(function() {
|
|
545
|
+
if (!o && l) return window.addEventListener("focus", g), window.addEventListener("blur", h), function() {
|
|
546
|
+
window.removeEventListener("focus", g), window.removeEventListener("blur", h);
|
|
547
|
+
};
|
|
548
|
+
}, [
|
|
549
|
+
o,
|
|
550
|
+
g,
|
|
551
|
+
l
|
|
552
|
+
]), He("div", Object.assign({ ref: t }, d, {
|
|
553
|
+
className: Y(Cn, r),
|
|
554
|
+
onMouseEnter: function(e) {
|
|
555
|
+
d.onMouseEnter && d.onMouseEnter(e), h();
|
|
556
|
+
},
|
|
557
|
+
onMouseLeave: function(e) {
|
|
558
|
+
d.onMouseLeave && d.onMouseLeave(e), g();
|
|
559
|
+
}
|
|
560
|
+
}), n);
|
|
561
|
+
});
|
|
562
|
+
Ln.displayName = "Snackbar";
|
|
563
|
+
var Rn = xn({ root: (In = {
|
|
564
|
+
display: "flex",
|
|
565
|
+
flexWrap: "wrap",
|
|
566
|
+
flexGrow: 1
|
|
567
|
+
}, In[Jt] = {
|
|
568
|
+
flexGrow: "initial",
|
|
569
|
+
minWidth: "288px"
|
|
570
|
+
}, In) }), zn = M(function(e, t) {
|
|
571
|
+
var n = e.className, r = Ut(e, ["className"]);
|
|
572
|
+
return j.createElement("div", Object.assign({
|
|
573
|
+
ref: t,
|
|
574
|
+
className: Y(Rn.root, n)
|
|
575
|
+
}, r));
|
|
576
|
+
});
|
|
577
|
+
zn.displayName = "SnackbarContent";
|
|
578
|
+
var Bn = xn({
|
|
579
|
+
root: {
|
|
580
|
+
backgroundColor: "#313131",
|
|
581
|
+
fontSize: "0.875rem",
|
|
582
|
+
lineHeight: 1.43,
|
|
583
|
+
letterSpacing: "0.01071em",
|
|
584
|
+
color: "#fff",
|
|
585
|
+
alignItems: "center",
|
|
586
|
+
padding: "6px 16px",
|
|
587
|
+
borderRadius: "4px",
|
|
588
|
+
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)"
|
|
589
|
+
},
|
|
590
|
+
lessPadding: { paddingLeft: "20px" },
|
|
591
|
+
default: { backgroundColor: "#313131" },
|
|
592
|
+
success: { backgroundColor: "#43a047" },
|
|
593
|
+
error: { backgroundColor: "#d32f2f" },
|
|
594
|
+
warning: { backgroundColor: "#ff9800" },
|
|
595
|
+
info: { backgroundColor: "#2196f3" },
|
|
596
|
+
message: {
|
|
597
|
+
display: "flex",
|
|
598
|
+
alignItems: "center",
|
|
599
|
+
padding: "8px 0"
|
|
600
|
+
},
|
|
601
|
+
action: {
|
|
602
|
+
display: "flex",
|
|
603
|
+
alignItems: "center",
|
|
604
|
+
marginLeft: "auto",
|
|
605
|
+
paddingLeft: "16px",
|
|
606
|
+
marginRight: "-8px"
|
|
607
|
+
}
|
|
608
|
+
}), Vn = "notistack-snackbar", Hn = M(function(e, t) {
|
|
609
|
+
var n = e.id, r = e.message, i = e.action, a = e.iconVariant, o = e.variant, s = e.hideIconVariant, c = e.style, l = e.className, u = a[o], d = i;
|
|
610
|
+
return typeof d == "function" && (d = d(n)), j.createElement(zn, {
|
|
611
|
+
ref: t,
|
|
612
|
+
role: "alert",
|
|
613
|
+
"aria-describedby": Vn,
|
|
614
|
+
style: c,
|
|
615
|
+
className: Y(Tn, En(o), Bn.root, Bn[o], l, !s && u && Bn.lessPadding)
|
|
616
|
+
}, j.createElement("div", {
|
|
617
|
+
id: Vn,
|
|
618
|
+
className: Bn.message
|
|
619
|
+
}, s ? null : u, r), d && j.createElement("div", { className: Bn.action }, d));
|
|
620
|
+
});
|
|
621
|
+
Hn.displayName = "MaterialDesignContent";
|
|
622
|
+
var Un, Wn, Gn, Kn, qn, Jn = N(Hn), Yn = xn({ wrappedRoot: {
|
|
623
|
+
width: "100%",
|
|
624
|
+
position: "relative",
|
|
625
|
+
transform: "translateX(0)",
|
|
626
|
+
top: 0,
|
|
627
|
+
right: 0,
|
|
628
|
+
bottom: 0,
|
|
629
|
+
left: 0,
|
|
630
|
+
minWidth: "288px"
|
|
631
|
+
} }), Xn = function(e) {
|
|
632
|
+
var t = L(), n = R(!0), r = n[0], i = n[1], a = Nn([e.snack.onClose, e.onClose]), o = P(function() {
|
|
633
|
+
t.current = setTimeout(function() {
|
|
634
|
+
i(function(e) {
|
|
635
|
+
return !e;
|
|
636
|
+
});
|
|
637
|
+
}, 125);
|
|
638
|
+
}, []);
|
|
639
|
+
F(function() {
|
|
640
|
+
return function() {
|
|
641
|
+
t.current && clearTimeout(t.current);
|
|
642
|
+
};
|
|
643
|
+
}, []);
|
|
644
|
+
var s, c = e.snack, l = e.classes, u = e.Component, d = u === void 0 ? Jn : u, f = I(function() {
|
|
645
|
+
return function(e) {
|
|
646
|
+
e === void 0 && (e = {});
|
|
647
|
+
var t = {
|
|
648
|
+
containerRoot: !0,
|
|
649
|
+
containerAnchorOriginTopCenter: !0,
|
|
650
|
+
containerAnchorOriginBottomCenter: !0,
|
|
651
|
+
containerAnchorOriginTopRight: !0,
|
|
652
|
+
containerAnchorOriginBottomRight: !0,
|
|
653
|
+
containerAnchorOriginTopLeft: !0,
|
|
654
|
+
containerAnchorOriginBottomLeft: !0
|
|
655
|
+
};
|
|
656
|
+
return Object.keys(e).filter(function(e) {
|
|
657
|
+
return !t[e];
|
|
658
|
+
}).reduce(function(t, n) {
|
|
659
|
+
var r;
|
|
660
|
+
return Q({}, t, ((r = {})[n] = e[n], r));
|
|
661
|
+
}, {});
|
|
662
|
+
}(l);
|
|
663
|
+
}, [l]), p = c.open, m = c.SnackbarProps, h = c.TransitionComponent, g = c.TransitionProps, _ = c.transitionDuration, v = c.disableWindowBlurListener, ee = c.content, y = Ut(c, [
|
|
664
|
+
"open",
|
|
665
|
+
"SnackbarProps",
|
|
666
|
+
"TransitionComponent",
|
|
667
|
+
"TransitionProps",
|
|
668
|
+
"transitionDuration",
|
|
669
|
+
"disableWindowBlurListener",
|
|
670
|
+
"content",
|
|
671
|
+
"entered",
|
|
672
|
+
"requestClose",
|
|
673
|
+
"onEnter",
|
|
674
|
+
"onEntered",
|
|
675
|
+
"onExit",
|
|
676
|
+
"onExited"
|
|
677
|
+
]), b = Q({
|
|
678
|
+
direction: (s = y.anchorOrigin, s.horizontal === "center" ? An[s.vertical] : An[s.horizontal]),
|
|
679
|
+
timeout: _
|
|
680
|
+
}, g), x = ee;
|
|
681
|
+
typeof x == "function" && (x = x(y.id, y.message));
|
|
682
|
+
var S = [
|
|
683
|
+
"onEnter",
|
|
684
|
+
"onEntered",
|
|
685
|
+
"onExit",
|
|
686
|
+
"onExited"
|
|
687
|
+
].reduce(function(t, n) {
|
|
688
|
+
var r;
|
|
689
|
+
return Q({}, t, ((r = {})[n] = Nn([e.snack[n], e[n]], y.id), r));
|
|
690
|
+
}, {});
|
|
691
|
+
return j.createElement(kn, {
|
|
692
|
+
in: r,
|
|
693
|
+
onExited: S.onExited
|
|
694
|
+
}, j.createElement(Ln, {
|
|
695
|
+
open: p,
|
|
696
|
+
id: y.id,
|
|
697
|
+
disableWindowBlurListener: v,
|
|
698
|
+
autoHideDuration: y.autoHideDuration,
|
|
699
|
+
className: Y(Yn.wrappedRoot, f.root, f[jn(y.anchorOrigin)]),
|
|
700
|
+
SnackbarProps: m,
|
|
701
|
+
onClose: a
|
|
702
|
+
}, j.createElement(h, Object.assign({}, b, {
|
|
703
|
+
appear: !0,
|
|
704
|
+
in: p,
|
|
705
|
+
onExit: S.onExit,
|
|
706
|
+
onExited: o,
|
|
707
|
+
onEnter: S.onEnter,
|
|
708
|
+
onEntered: Nn([S.onEntered, function() {
|
|
709
|
+
e.snack.requestClose && a(null, "instructed", e.snack.id);
|
|
710
|
+
}], y.id)
|
|
711
|
+
}), x || j.createElement(d, Object.assign({}, y)))));
|
|
712
|
+
}, Zn = {
|
|
713
|
+
default: 20,
|
|
714
|
+
dense: 4
|
|
715
|
+
}, Qn = {
|
|
716
|
+
default: 6,
|
|
717
|
+
dense: 2
|
|
718
|
+
}, $n = "." + wn, er = xn({
|
|
719
|
+
root: (Un = {
|
|
720
|
+
boxSizing: "border-box",
|
|
721
|
+
display: "flex",
|
|
722
|
+
maxHeight: "100%",
|
|
723
|
+
position: "fixed",
|
|
724
|
+
zIndex: 1400,
|
|
725
|
+
height: "auto",
|
|
726
|
+
width: "auto",
|
|
727
|
+
transition: mn([
|
|
728
|
+
"top",
|
|
729
|
+
"right",
|
|
730
|
+
"bottom",
|
|
731
|
+
"left",
|
|
732
|
+
"max-width"
|
|
733
|
+
], {
|
|
734
|
+
duration: 300,
|
|
735
|
+
easing: "ease"
|
|
736
|
+
}),
|
|
737
|
+
pointerEvents: "none"
|
|
738
|
+
}, Un[$n] = {
|
|
739
|
+
padding: Qn.default + "px 0px",
|
|
740
|
+
transition: "padding 300ms ease 0ms"
|
|
741
|
+
}, Un.maxWidth = "calc(100% - " + 2 * Zn.default + "px)", Un[qt] = {
|
|
742
|
+
width: "100%",
|
|
743
|
+
maxWidth: "calc(100% - 32px)"
|
|
744
|
+
}, Un),
|
|
745
|
+
rootDense: (Wn = {}, Wn[$n] = { padding: Qn.dense + "px 0px" }, Wn),
|
|
746
|
+
top: {
|
|
747
|
+
top: Zn.default - Qn.default + "px",
|
|
748
|
+
flexDirection: "column"
|
|
749
|
+
},
|
|
750
|
+
bottom: {
|
|
751
|
+
bottom: Zn.default - Qn.default + "px",
|
|
752
|
+
flexDirection: "column-reverse"
|
|
753
|
+
},
|
|
754
|
+
left: (Gn = { left: Zn.default + "px" }, Gn[Jt] = { alignItems: "flex-start" }, Gn[qt] = { left: "16px" }, Gn),
|
|
755
|
+
right: (Kn = { right: Zn.default + "px" }, Kn[Jt] = { alignItems: "flex-end" }, Kn[qt] = { right: "16px" }, Kn),
|
|
756
|
+
center: (qn = {
|
|
757
|
+
left: "50%",
|
|
758
|
+
transform: "translateX(-50%)"
|
|
759
|
+
}, qn[Jt] = { alignItems: "center" }, qn)
|
|
760
|
+
}), tr = N(function(e) {
|
|
761
|
+
var t = e.classes, n = t === void 0 ? {} : t, r = e.anchorOrigin, i = e.dense, a = e.children, o = Y(Sn, er[r.vertical], er[r.horizontal], er.root, n.containerRoot, n["containerAnchorOrigin" + Xt(r)], i && er.rootDense);
|
|
762
|
+
return j.createElement("div", { className: o }, a);
|
|
763
|
+
}), nr = function(e) {
|
|
764
|
+
return !(typeof e == "string" || Ue(e));
|
|
765
|
+
}, rr = function(e) {
|
|
766
|
+
function t(t) {
|
|
767
|
+
var n = e.call(this, t) || this;
|
|
768
|
+
return n.enqueueSnackbar = function(e, t) {
|
|
769
|
+
if (t === void 0 && (t = {}), e == null) throw Error("enqueueSnackbar called with invalid argument");
|
|
770
|
+
var r = nr(e) ? e : t, i = nr(e) ? e.message : e, a = r.key, o = r.preventDuplicate, s = Ut(r, ["key", "preventDuplicate"]), c = Zt(a), l = c ? a : (/* @__PURE__ */ new Date()).getTime() + Math.random(), u = bn(s, n.props), d = Q({ id: l }, s, {
|
|
771
|
+
message: i,
|
|
772
|
+
open: !0,
|
|
773
|
+
entered: !1,
|
|
774
|
+
requestClose: !1,
|
|
775
|
+
persist: u("persist"),
|
|
776
|
+
action: u("action"),
|
|
777
|
+
content: u("content"),
|
|
778
|
+
variant: u("variant"),
|
|
779
|
+
anchorOrigin: u("anchorOrigin"),
|
|
780
|
+
disableWindowBlurListener: u("disableWindowBlurListener"),
|
|
781
|
+
autoHideDuration: u("autoHideDuration"),
|
|
782
|
+
hideIconVariant: u("hideIconVariant"),
|
|
783
|
+
TransitionComponent: u("TransitionComponent"),
|
|
784
|
+
transitionDuration: u("transitionDuration"),
|
|
785
|
+
TransitionProps: u("TransitionProps", !0),
|
|
786
|
+
iconVariant: u("iconVariant", !0),
|
|
787
|
+
style: u("style", !0),
|
|
788
|
+
SnackbarProps: u("SnackbarProps", !0),
|
|
789
|
+
className: Y(n.props.className, s.className)
|
|
790
|
+
});
|
|
791
|
+
return d.persist && (d.autoHideDuration = void 0), n.setState(function(e) {
|
|
792
|
+
if (o === void 0 && n.props.preventDuplicate || o) {
|
|
793
|
+
var t = function(e) {
|
|
794
|
+
return c ? e.id === l : e.message === i;
|
|
795
|
+
}, r = e.queue.findIndex(t) > -1, a = e.snacks.findIndex(t) > -1;
|
|
796
|
+
if (r || a) return e;
|
|
797
|
+
}
|
|
798
|
+
return n.handleDisplaySnack(Q({}, e, { queue: [].concat(e.queue, [d]) }));
|
|
799
|
+
}), l;
|
|
800
|
+
}, n.handleDisplaySnack = function(e) {
|
|
801
|
+
return e.snacks.length >= n.maxSnack ? n.handleDismissOldest(e) : n.processQueue(e);
|
|
802
|
+
}, n.processQueue = function(e) {
|
|
803
|
+
var t = e.queue, n = e.snacks;
|
|
804
|
+
return t.length > 0 ? Q({}, e, {
|
|
805
|
+
snacks: [].concat(n, [t[0]]),
|
|
806
|
+
queue: t.slice(1, t.length)
|
|
807
|
+
}) : e;
|
|
808
|
+
}, n.handleDismissOldest = function(e) {
|
|
809
|
+
if (e.snacks.some(function(e) {
|
|
810
|
+
return !e.open || e.requestClose;
|
|
811
|
+
})) return e;
|
|
812
|
+
var t = !1, r = !1;
|
|
813
|
+
e.snacks.reduce(function(e, t) {
|
|
814
|
+
return e + (t.open && t.persist ? 1 : 0);
|
|
815
|
+
}, 0) === n.maxSnack && (r = !0);
|
|
816
|
+
var i = e.snacks.map(function(e) {
|
|
817
|
+
return t || e.persist && !r ? Q({}, e) : (t = !0, e.entered ? (e.onClose && e.onClose(null, "maxsnack", e.id), n.props.onClose && n.props.onClose(null, "maxsnack", e.id), Q({}, e, { open: !1 })) : Q({}, e, { requestClose: !0 }));
|
|
818
|
+
});
|
|
819
|
+
return Q({}, e, { snacks: i });
|
|
820
|
+
}, n.handleEnteredSnack = function(e, t, r) {
|
|
821
|
+
if (!Zt(r)) throw Error("handleEnteredSnack Cannot be called with undefined key");
|
|
822
|
+
n.setState(function(e) {
|
|
823
|
+
return { snacks: e.snacks.map(function(e) {
|
|
824
|
+
return e.id === r ? Q({}, e, { entered: !0 }) : Q({}, e);
|
|
825
|
+
}) };
|
|
826
|
+
});
|
|
827
|
+
}, n.handleCloseSnack = function(e, t, r) {
|
|
828
|
+
n.props.onClose && n.props.onClose(e, t, r);
|
|
829
|
+
var i = r === void 0;
|
|
830
|
+
n.setState(function(e) {
|
|
831
|
+
var t = e.snacks, n = e.queue;
|
|
832
|
+
return {
|
|
833
|
+
snacks: t.map(function(e) {
|
|
834
|
+
return i || e.id === r ? e.entered ? Q({}, e, { open: !1 }) : Q({}, e, { requestClose: !0 }) : Q({}, e);
|
|
835
|
+
}),
|
|
836
|
+
queue: n.filter(function(e) {
|
|
837
|
+
return e.id !== r;
|
|
838
|
+
})
|
|
839
|
+
};
|
|
840
|
+
});
|
|
841
|
+
}, n.closeSnackbar = function(e) {
|
|
842
|
+
var t = n.state.snacks.find(function(t) {
|
|
843
|
+
return t.id === e;
|
|
844
|
+
});
|
|
845
|
+
Zt(e) && t && t.onClose && t.onClose(null, "instructed", e), n.handleCloseSnack(null, "instructed", e);
|
|
846
|
+
}, n.handleExitedSnack = function(e, t) {
|
|
847
|
+
if (!Zt(t)) throw Error("handleExitedSnack Cannot be called with undefined key");
|
|
848
|
+
n.setState(function(e) {
|
|
849
|
+
var r = n.processQueue(Q({}, e, { snacks: e.snacks.filter(function(e) {
|
|
850
|
+
return e.id !== t;
|
|
851
|
+
}) }));
|
|
852
|
+
return r.queue.length === 0 ? r : n.handleDismissOldest(r);
|
|
853
|
+
});
|
|
854
|
+
}, n.enqueueSnackbar, n.closeSnackbar, n.state = {
|
|
855
|
+
snacks: [],
|
|
856
|
+
queue: [],
|
|
857
|
+
contextValue: {
|
|
858
|
+
enqueueSnackbar: n.enqueueSnackbar.bind(Wt(n)),
|
|
859
|
+
closeSnackbar: n.closeSnackbar.bind(Wt(n))
|
|
860
|
+
}
|
|
861
|
+
}, n;
|
|
862
|
+
}
|
|
863
|
+
return Ht(t, e), t.prototype.render = function() {
|
|
864
|
+
var e = this, t = this.state.contextValue, n = this.props, r = n.domRoot, i = n.children, a = n.dense, o = a !== void 0 && a, s = n.Components, c = s === void 0 ? {} : s, l = n.classes, u = this.state.snacks.reduce(function(e, t) {
|
|
865
|
+
var n, r = Xt(t.anchorOrigin), i = e[r] || [];
|
|
866
|
+
return Q({}, e, ((n = {})[r] = [].concat(i, [t]), n));
|
|
867
|
+
}, {}), d = Object.keys(u).map(function(t) {
|
|
868
|
+
var n = u[t], r = n[0];
|
|
869
|
+
return j.createElement(tr, {
|
|
870
|
+
key: t,
|
|
871
|
+
dense: o,
|
|
872
|
+
anchorOrigin: r.anchorOrigin,
|
|
873
|
+
classes: l
|
|
874
|
+
}, n.map(function(t) {
|
|
875
|
+
return j.createElement(Xn, {
|
|
876
|
+
key: t.id,
|
|
877
|
+
snack: t,
|
|
878
|
+
classes: l,
|
|
879
|
+
Component: c[t.variant],
|
|
880
|
+
onClose: e.handleCloseSnack,
|
|
881
|
+
onEnter: e.props.onEnter,
|
|
882
|
+
onExit: e.props.onExit,
|
|
883
|
+
onExited: Nn([e.handleExitedSnack, e.props.onExited], t.id),
|
|
884
|
+
onEntered: Nn([e.handleEnteredSnack, e.props.onEntered], t.id)
|
|
885
|
+
});
|
|
886
|
+
}));
|
|
887
|
+
});
|
|
888
|
+
return j.createElement(Kt.Provider, { value: t }, i, r ? J(d, r) : d);
|
|
889
|
+
}, Vt(t, [{
|
|
890
|
+
key: "maxSnack",
|
|
891
|
+
get: function() {
|
|
892
|
+
return this.props.maxSnack || yn.maxSnack;
|
|
893
|
+
}
|
|
894
|
+
}]), t;
|
|
895
|
+
}(Be), ir = function() {
|
|
896
|
+
return We(Kt);
|
|
897
|
+
}, $ = {
|
|
898
|
+
card: "_card_h0jnt_7",
|
|
899
|
+
actionRoot: "_actionRoot_h0jnt_11",
|
|
900
|
+
icons: "_icons_h0jnt_16",
|
|
901
|
+
expand: "_expand_h0jnt_22",
|
|
902
|
+
expandOpen: "_expandOpen_h0jnt_29",
|
|
903
|
+
stackTraceContainer: "_stackTraceContainer_h0jnt_33",
|
|
904
|
+
paper: "_paper_h0jnt_37",
|
|
905
|
+
checkIcon: "_checkIcon_h0jnt_42",
|
|
906
|
+
button: "_button_h0jnt_47"
|
|
907
|
+
}, ar = N(M((e, t) => {
|
|
908
|
+
let { id: n, message: r, iconVariant: i, error: a, hideIconVariant: o, ...s } = e, c = A(), { closeSnackbar: l } = ir(), [u, d] = R(!1), f = a ? Et.collectErrorChain(a, !0)?.[0]?.error : void 0, p = f && !(f instanceof Dt), m = P(() => {
|
|
909
|
+
d((e) => !e);
|
|
910
|
+
}, []), h = P(() => {
|
|
911
|
+
l(n);
|
|
912
|
+
}, [n, l]), g = f?.message;
|
|
913
|
+
return !g && Ue(r) && (g = r), g || typeof r != "string" || (g = r), g ||= `Unknown Error: ${r}`, B(zn, {
|
|
914
|
+
ref: t,
|
|
915
|
+
className: b($.root, "error-snackbar"),
|
|
916
|
+
children: V(lt, {
|
|
917
|
+
className: $.card,
|
|
918
|
+
style: {
|
|
919
|
+
backgroundColor: "var(--sxl-color-error)",
|
|
920
|
+
color: "var(--sxl-color-error-content)",
|
|
921
|
+
border: "1px solid var(--sxl-color-error)"
|
|
922
|
+
},
|
|
923
|
+
children: [V(ut, {
|
|
924
|
+
className: $.actionRoot,
|
|
925
|
+
children: [
|
|
926
|
+
o ? null : i?.error,
|
|
927
|
+
B(yt, {
|
|
928
|
+
variant: "body2",
|
|
929
|
+
component: "div",
|
|
930
|
+
className: $.typography,
|
|
931
|
+
children: g
|
|
932
|
+
}),
|
|
933
|
+
B("div", { style: { flex: "1 1 auto" } }),
|
|
934
|
+
V("div", {
|
|
935
|
+
className: $.icons,
|
|
936
|
+
children: [p ? B(mt, {
|
|
937
|
+
"aria-label": c("toast.showMore"),
|
|
938
|
+
size: "small",
|
|
939
|
+
className: b($.expand, { [$.expandOpen]: u }),
|
|
940
|
+
onClick: m,
|
|
941
|
+
children: B(Se, { iconKey: "ExpandMore" })
|
|
942
|
+
}) : null, B(mt, {
|
|
943
|
+
size: "small",
|
|
944
|
+
className: $.expand,
|
|
945
|
+
onClick: h,
|
|
946
|
+
children: B(Se, {
|
|
947
|
+
iconKey: "Close",
|
|
948
|
+
style: { transform: "scale(0.8)" }
|
|
949
|
+
})
|
|
950
|
+
})]
|
|
951
|
+
})
|
|
952
|
+
]
|
|
953
|
+
}), p ? B(dt, {
|
|
954
|
+
in: u,
|
|
955
|
+
timeout: "auto",
|
|
956
|
+
children: B("div", {
|
|
957
|
+
className: $.stackTraceContainer,
|
|
958
|
+
style: {
|
|
959
|
+
backgroundColor: "color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))",
|
|
960
|
+
borderTop: "1px solid var(--sxl-color-error)"
|
|
961
|
+
},
|
|
962
|
+
children: B(Qe, {
|
|
963
|
+
error: a,
|
|
964
|
+
hideLineNumbers: !0
|
|
965
|
+
})
|
|
966
|
+
})
|
|
967
|
+
}) : null]
|
|
968
|
+
})
|
|
969
|
+
});
|
|
970
|
+
}));
|
|
971
|
+
ar.displayName = "ToastError";
|
|
972
|
+
var or = B(() => {
|
|
973
|
+
let e = A();
|
|
974
|
+
return B(z, {
|
|
975
|
+
label: "SheetXL",
|
|
976
|
+
description: e("logo.description"),
|
|
977
|
+
children: B(H, {
|
|
978
|
+
component: "a",
|
|
979
|
+
href: "https://www.sheetxl.com",
|
|
980
|
+
target: "_blank",
|
|
981
|
+
rel: "noopener noreferrer",
|
|
982
|
+
sx: {
|
|
983
|
+
display: "inline-flex",
|
|
984
|
+
width: "24px",
|
|
985
|
+
height: "24px",
|
|
986
|
+
marginBottom: "4px",
|
|
987
|
+
marginLeft: "6px",
|
|
988
|
+
cursor: "pointer"
|
|
989
|
+
},
|
|
990
|
+
children: B(ne, { style: {
|
|
991
|
+
width: "24px",
|
|
992
|
+
height: "24px"
|
|
993
|
+
} })
|
|
994
|
+
})
|
|
995
|
+
});
|
|
996
|
+
}, {}), sr = N(M((e, t) => {
|
|
997
|
+
let { workbook: n, className: r, logo: i = or, mainElement: a, startElement: o, endElement: s, ...c } = e, [l, { width: u }] = Pe(), d = u < 530, p = L(null), m = x([
|
|
998
|
+
p,
|
|
999
|
+
l,
|
|
1000
|
+
t
|
|
1001
|
+
]);
|
|
1002
|
+
return B(H, {
|
|
1003
|
+
...c,
|
|
1004
|
+
ref: m,
|
|
1005
|
+
className: r,
|
|
1006
|
+
children: f({
|
|
1007
|
+
isCompact: d,
|
|
1008
|
+
wrapperSelect: (e) => V(H, {
|
|
1009
|
+
sx: {
|
|
1010
|
+
display: "grid",
|
|
1011
|
+
gridTemplateColumns: "1fr auto 1fr",
|
|
1012
|
+
flex: "1",
|
|
1013
|
+
alignItems: "stretch",
|
|
1014
|
+
gap: (e) => e.spacing(1),
|
|
1015
|
+
paddingLeft: (e) => e.spacing(1),
|
|
1016
|
+
paddingRight: (e) => e.spacing(1)
|
|
1017
|
+
},
|
|
1018
|
+
children: [
|
|
1019
|
+
V(H, {
|
|
1020
|
+
sx: {
|
|
1021
|
+
display: "flex",
|
|
1022
|
+
flexDirection: "row",
|
|
1023
|
+
alignItems: "center",
|
|
1024
|
+
justifyContent: "start",
|
|
1025
|
+
gap: (e) => e.spacing(.5)
|
|
1026
|
+
},
|
|
1027
|
+
children: [i, V(H, {
|
|
1028
|
+
sx: {
|
|
1029
|
+
display: "flex",
|
|
1030
|
+
flexDirection: "row",
|
|
1031
|
+
alignItems: "center",
|
|
1032
|
+
gap: (e) => e.spacing(.25)
|
|
1033
|
+
},
|
|
1034
|
+
children: [o, e]
|
|
1035
|
+
})]
|
|
1036
|
+
}),
|
|
1037
|
+
B(H, {
|
|
1038
|
+
sx: {
|
|
1039
|
+
display: "flex",
|
|
1040
|
+
flexDirection: "row",
|
|
1041
|
+
minWidth: 0,
|
|
1042
|
+
overflow: "hidden",
|
|
1043
|
+
alignItems: "center",
|
|
1044
|
+
justifyContent: "center"
|
|
1045
|
+
},
|
|
1046
|
+
children: a
|
|
1047
|
+
}),
|
|
1048
|
+
B(H, {
|
|
1049
|
+
sx: {
|
|
1050
|
+
display: "flex",
|
|
1051
|
+
alignItems: "center",
|
|
1052
|
+
justifyContent: "end"
|
|
1053
|
+
},
|
|
1054
|
+
children: s
|
|
1055
|
+
})
|
|
1056
|
+
]
|
|
1057
|
+
})
|
|
1058
|
+
})
|
|
1059
|
+
});
|
|
1060
|
+
}));
|
|
1061
|
+
sr.displayName = "StudioToolbar";
|
|
1062
|
+
var cr = (e, t) => {
|
|
1063
|
+
let n = new URL(window.location.pathname, window.location.origin);
|
|
1064
|
+
e && n.searchParams.set("source", e), e && t && n.searchParams.set("title", t), window.open(n.toString(), "sheetxl-" + Ct.uuidV4(), "popup=true");
|
|
1065
|
+
};
|
|
1066
|
+
function lr(e, t) {
|
|
1067
|
+
let { workbook: n, setWorkbook: r, workbookTitle: i = "export", isDirty: a, notifier: o, refSave: s } = t, c = !1, l = async (e = null, t = null, n = null) => {
|
|
1068
|
+
let r = [], i = {
|
|
1069
|
+
source: e && typeof e != "string" ? e : null,
|
|
1070
|
+
typedCreateWorkbookOptions: t ?? void 0,
|
|
1071
|
+
onPassword: async ({ origin: e, validate: t }) => {
|
|
1072
|
+
let n = await o.showInput({
|
|
1073
|
+
title: q("dialog.password.title"),
|
|
1074
|
+
description: q("dialog.password.open.description", { name: e.getName() ?? "" }),
|
|
1075
|
+
inputType: "password",
|
|
1076
|
+
options: [{
|
|
1077
|
+
id: "Open",
|
|
1078
|
+
label: () => q("dialog.open")
|
|
1079
|
+
}, "Cancel"],
|
|
1080
|
+
defaultOption: "Open",
|
|
1081
|
+
onValidateInput: async (e, n) => n === void 0 ? { valid: !0 } : e ? await t(e) ? { valid: !0 } : {
|
|
1082
|
+
valid: !1,
|
|
1083
|
+
message: q("dialog.password.open.retry")
|
|
1084
|
+
} : {
|
|
1085
|
+
valid: !1,
|
|
1086
|
+
message: q("dialog.password.open.required")
|
|
1087
|
+
}
|
|
1088
|
+
});
|
|
1089
|
+
return n?.option === "Open" ? n.input ?? null : null;
|
|
1090
|
+
},
|
|
1091
|
+
progress: { onWarning: (e) => {
|
|
1092
|
+
r.push(e);
|
|
1093
|
+
} }
|
|
1094
|
+
}, a;
|
|
1095
|
+
n && (i.progress.onStart = n);
|
|
1096
|
+
let s = -5;
|
|
1097
|
+
return E.read({
|
|
1098
|
+
...i,
|
|
1099
|
+
progress: {
|
|
1100
|
+
async onStart(e, t) {
|
|
1101
|
+
await i?.progress?.onStart?.(e, t), a = await o?.showBusy?.(q("workbook.opening", { name: e?.getName() ?? "" })), t && a?.setProgress?.(0, t);
|
|
1102
|
+
},
|
|
1103
|
+
onProgress(e, t) {
|
|
1104
|
+
if (!t) return;
|
|
1105
|
+
let n = Math.min(100, Math.round(e / t * 100));
|
|
1106
|
+
if (n >= 100) {
|
|
1107
|
+
if (s === 100) return;
|
|
1108
|
+
s = 100, a?.setProgress?.(e, t);
|
|
1109
|
+
} else n - s < 5 || (s = n, a?.setProgress?.(e, t));
|
|
1110
|
+
},
|
|
1111
|
+
onComplete() {
|
|
1112
|
+
a?.(), r.length > 0 && (o.showMessage(q("workbook.importWarnings")), console.warn("Import warnings:\n" + r.join("\n")));
|
|
1113
|
+
},
|
|
1114
|
+
onWarning(e, t) {
|
|
1115
|
+
i?.progress?.onWarning?.(e, t);
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
});
|
|
1119
|
+
}, u = async (e, t, n = !1, r) => {
|
|
1120
|
+
let a, s = {
|
|
1121
|
+
format: t?.key,
|
|
1122
|
+
progress: {
|
|
1123
|
+
async onStart(e) {
|
|
1124
|
+
a = await o?.showBusy?.(q("workbook.saving", { name: e?.getName() ?? "" }));
|
|
1125
|
+
},
|
|
1126
|
+
onComplete() {
|
|
1127
|
+
a?.();
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
onWarnings: r ?? (async ({ warnings: e, origin: t, canCancel: n }) => {
|
|
1131
|
+
a?.(), console.warn(`Not written to '${t.getName()}':\n${e.map((e) => ` ${e.message}`).join("\n")}`);
|
|
1132
|
+
let r = q("dialog.writeWarnings.title"), i = t.getFormat(), s = (i ? (await E.getWriteFormats({ search: i }))[0] : void 0)?.description ?? i ?? "", c = q("dialog.writeWarnings.keep");
|
|
1133
|
+
return n ? await o.showOptions({
|
|
1134
|
+
title: r,
|
|
1135
|
+
type: D.Warning,
|
|
1136
|
+
description: `${q("dialog.writeWarnings.confirm", { format: s })}\n\n${c}`,
|
|
1137
|
+
options: [{
|
|
1138
|
+
id: "Save",
|
|
1139
|
+
label: () => q("dialog.save")
|
|
1140
|
+
}, "Cancel"],
|
|
1141
|
+
defaultOption: "Cancel"
|
|
1142
|
+
}) === "Save" && (a = await o?.showBusy?.(q("workbook.saving", { name: t?.getName() ?? "" })), !0) : (o.showOptions({
|
|
1143
|
+
title: r,
|
|
1144
|
+
type: D.Warning,
|
|
1145
|
+
description: `${q("dialog.writeWarnings.saved", { format: s })}\n\n${c}`,
|
|
1146
|
+
options: ["Ok"]
|
|
1147
|
+
}), !0);
|
|
1148
|
+
})
|
|
1149
|
+
}, c;
|
|
1150
|
+
if (n) {
|
|
1151
|
+
let n = e.getOrigin(), r = t?.exts?.[0] ?? (n.getExtension() || "sxl"), a = `${i || n.getName() || q("workbook.defaultName")}.${r}`;
|
|
1152
|
+
c = await E.writeAs(e, a, {
|
|
1153
|
+
...s,
|
|
1154
|
+
prompt: !0
|
|
1155
|
+
});
|
|
1156
|
+
} else c = await E.write(e, void 0, s);
|
|
1157
|
+
return c;
|
|
1158
|
+
}, d = null;
|
|
1159
|
+
return e.updateCommand("newWorkbook", { callback: async (e) => {
|
|
1160
|
+
let t = E.canRead() && !a();
|
|
1161
|
+
e?.source ? t && d ? await d({
|
|
1162
|
+
url: e.source,
|
|
1163
|
+
title: e.title
|
|
1164
|
+
}) : cr(e.source, e.title) : t ? r({}) : cr();
|
|
1165
|
+
} }), e.updateCommand("closeWorkbook", { callback: async () => {
|
|
1166
|
+
a() && await o.showOptions({
|
|
1167
|
+
title: q("dialog.confirm.title"),
|
|
1168
|
+
description: q("dialog.unsavedChanges"),
|
|
1169
|
+
options: [{
|
|
1170
|
+
id: "Close",
|
|
1171
|
+
label: () => q("dialog.close")
|
|
1172
|
+
}, "Cancel"],
|
|
1173
|
+
defaultOption: "Cancel"
|
|
1174
|
+
}) !== "Close" || window.close();
|
|
1175
|
+
} }), (async () => {
|
|
1176
|
+
let t = await E.getWriteFormats();
|
|
1177
|
+
if (c) return;
|
|
1178
|
+
let i = E.canWrite(), f = E.canRead();
|
|
1179
|
+
if (i) {
|
|
1180
|
+
let r = (e) => {
|
|
1181
|
+
let r = e ? t.find((t) => t.key === e) : void 0;
|
|
1182
|
+
u(n, r, !0).catch((e) => o.showError(e));
|
|
1183
|
+
};
|
|
1184
|
+
e.updateCommand("saveWorkbook", { callback: () => {
|
|
1185
|
+
u(n, void 0, !1).catch((e) => o.showError(e));
|
|
1186
|
+
} }), s && (s.current = (e) => u(n, void 0, !1, e?.onWarnings)), e.updateCommand("saveWorkbookAs", { callback: (e) => {
|
|
1187
|
+
r(e);
|
|
1188
|
+
} });
|
|
1189
|
+
for (let n of t) {
|
|
1190
|
+
let t = n.key;
|
|
1191
|
+
e.updateCommand(`saveWorkbookAs${t}`, {
|
|
1192
|
+
label: () => q("command.saveAsFormat.label", { format: n.description }),
|
|
1193
|
+
groupLabels: {
|
|
1194
|
+
workbook: () => q("command.saveAsFormat.workbook", { format: n.description }),
|
|
1195
|
+
saveWorkbookOptions: () => q("command.saveAsFormat.compact", { format: n.description })
|
|
1196
|
+
},
|
|
1197
|
+
tags: n.tags,
|
|
1198
|
+
description: () => q("command.saveAsFormat", { format: n.description }),
|
|
1199
|
+
icon: t === "CSV" ? "FileDownloadAsCSV" : t === "Excel" ? "FileDownloadAsExcel" : "FileDownloadAsSheet",
|
|
1200
|
+
callback: () => {
|
|
1201
|
+
r(t);
|
|
1202
|
+
}
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
let p = async (e = null) => {
|
|
1207
|
+
let t = { csv: {
|
|
1208
|
+
date1904: n.getRuntime().isDate1904(),
|
|
1209
|
+
...n.options
|
|
1210
|
+
} };
|
|
1211
|
+
try {
|
|
1212
|
+
let r = "", i = await l(e, t, async (e) => {
|
|
1213
|
+
r = e?.getName() ?? "";
|
|
1214
|
+
});
|
|
1215
|
+
if (!i) return;
|
|
1216
|
+
let a = i.getWorksheets().getItems();
|
|
1217
|
+
await n.doBatch(async () => {
|
|
1218
|
+
for (let e = 0; e < a.length; e++) {
|
|
1219
|
+
let t = a[e], i = a.length === 1 ? r : t.getName(), o = n.findValidSheetName(i);
|
|
1220
|
+
await n.getWorksheets().add({
|
|
1221
|
+
name: o,
|
|
1222
|
+
autoSelect: e === a.length - 1
|
|
1223
|
+
}).getEntireRange().copyFrom(t.getEntireRange());
|
|
1224
|
+
}
|
|
1225
|
+
}, K("op.importData")), i.close();
|
|
1226
|
+
} catch (e) {
|
|
1227
|
+
o.showError(e);
|
|
1228
|
+
}
|
|
1229
|
+
};
|
|
1230
|
+
if (e.updateCommand("insertDataFromFile", {
|
|
1231
|
+
tags: ["noTransaction", "noRepeat"],
|
|
1232
|
+
callback: async (e = null) => {
|
|
1233
|
+
let t = e;
|
|
1234
|
+
if (t || E.canRead() || (t = await (async () => {
|
|
1235
|
+
let e = await E.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
|
|
1236
|
+
return wt.openFileDialog(t.length ? t.join(",") : "*.*");
|
|
1237
|
+
})(), t)) return p(t);
|
|
1238
|
+
}
|
|
1239
|
+
}), e.updateCommand("insertDataFromURL", {
|
|
1240
|
+
tags: ["noTransaction", "noRepeat"],
|
|
1241
|
+
callback: async (e) => {
|
|
1242
|
+
if (!e) {
|
|
1243
|
+
let t = await o.showInput({
|
|
1244
|
+
title: q("dialog.importFromWeb.title"),
|
|
1245
|
+
description: q("dialog.importFromWeb.description"),
|
|
1246
|
+
inputLabel: q("dialog.webAddress.inputLabel"),
|
|
1247
|
+
initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
|
|
1248
|
+
propsInput: { style: { minWidth: "440px" } },
|
|
1249
|
+
options: [{
|
|
1250
|
+
id: "Import",
|
|
1251
|
+
label: () => q("dialog.import")
|
|
1252
|
+
}]
|
|
1253
|
+
});
|
|
1254
|
+
if (t.option !== "Import") return;
|
|
1255
|
+
e = t.input;
|
|
1256
|
+
}
|
|
1257
|
+
if (e) try {
|
|
1258
|
+
let t = await fetch(e);
|
|
1259
|
+
if (!t.ok) throw Error(`Could not fetch '${e}' (${t.status} ${t.statusText}).`);
|
|
1260
|
+
let n = await t.blob(), r = decodeURIComponent(e.split("/").pop()?.split("?")[0] || "") || "import.xlsx";
|
|
1261
|
+
await p(new File([n], r, { type: n.type }));
|
|
1262
|
+
} catch (e) {
|
|
1263
|
+
o.showError(e);
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
}), f) {
|
|
1267
|
+
let t = async () => !a() || await o.showOptions({
|
|
1268
|
+
title: q("dialog.confirm.title"),
|
|
1269
|
+
description: q("dialog.unsavedChanges"),
|
|
1270
|
+
options: [{
|
|
1271
|
+
id: "Open",
|
|
1272
|
+
label: () => q("dialog.open")
|
|
1273
|
+
}, "Cancel"],
|
|
1274
|
+
defaultOption: "Cancel"
|
|
1275
|
+
}) === "Open", i = async (e = null) => {
|
|
1276
|
+
let t = { csv: {
|
|
1277
|
+
date1904: n.getRuntime().isDate1904(),
|
|
1278
|
+
...n.options
|
|
1279
|
+
} };
|
|
1280
|
+
try {
|
|
1281
|
+
let n = await l(e, t);
|
|
1282
|
+
if (!n) return;
|
|
1283
|
+
r(n);
|
|
1284
|
+
} catch (e) {
|
|
1285
|
+
o.showError(e);
|
|
1286
|
+
}
|
|
1287
|
+
};
|
|
1288
|
+
e.updateCommand("openWorkbook", { callback: async (e = null) => {
|
|
1289
|
+
await t() && await i(e);
|
|
1290
|
+
} }), d = async (e) => {
|
|
1291
|
+
let n = typeof e == "string" ? e : e?.url, r = typeof e == "string" ? void 0 : e?.title;
|
|
1292
|
+
if (!n) {
|
|
1293
|
+
let e = await o.showInput({
|
|
1294
|
+
title: q("dialog.openFromWeb.title"),
|
|
1295
|
+
description: q("dialog.openFromWeb.description"),
|
|
1296
|
+
inputLabel: q("dialog.webAddress.inputLabel"),
|
|
1297
|
+
initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
|
|
1298
|
+
propsInput: { style: { minWidth: "440px" } },
|
|
1299
|
+
options: [{
|
|
1300
|
+
id: "Open",
|
|
1301
|
+
label: () => q("dialog.open")
|
|
1302
|
+
}]
|
|
1303
|
+
});
|
|
1304
|
+
if (e.option !== "Open") return;
|
|
1305
|
+
n = e.input;
|
|
1306
|
+
}
|
|
1307
|
+
if (n && await t()) try {
|
|
1308
|
+
let e = await fetch(n);
|
|
1309
|
+
if (!e.ok) throw Error(`Could not fetch '${n}' (${e.status} ${e.statusText}).`);
|
|
1310
|
+
let t = await e.blob(), a = decodeURIComponent(n.split("/").pop()?.split("?")[0] || "") || "workbook.xlsx", o = a.match(/\.[^/.]+$/)?.[0] ?? "", s = r ? `${r}${o}` : a;
|
|
1311
|
+
await i(new File([t], s, { type: t.type }));
|
|
1312
|
+
} catch (e) {
|
|
1313
|
+
o.showError(e);
|
|
1314
|
+
}
|
|
1315
|
+
}, e.updateCommand("openWorkbookFromUrl", { callback: d });
|
|
1316
|
+
}
|
|
1317
|
+
})(), () => {
|
|
1318
|
+
c = !0, s && (s.current = null);
|
|
1319
|
+
};
|
|
1320
|
+
}
|
|
1321
|
+
var ur = tt(W("studio:shortcutKeysDialog", () => import("./CuRxFAO42JkQvMEx.mjs")).load);
|
|
1322
|
+
n(), _();
|
|
1323
|
+
var dr = /* @__PURE__ */ new Set(["ui"]), fr = (e) => {
|
|
1324
|
+
let t = (e) => {
|
|
1325
|
+
if (typeof e != "function") return e;
|
|
1326
|
+
try {
|
|
1327
|
+
return e();
|
|
1328
|
+
} catch {
|
|
1329
|
+
return;
|
|
1330
|
+
}
|
|
1331
|
+
}, n = (e, n) => {
|
|
1332
|
+
let r = t(e);
|
|
1333
|
+
return typeof r == "string" ? G(r, n, Tt.getActive()) : void 0;
|
|
1334
|
+
}, r = [];
|
|
1335
|
+
for (let i of e.names()) if (!dr.has(i)) for (let a of e.keys(i)) {
|
|
1336
|
+
let o = e.resolveDefinition(i, a);
|
|
1337
|
+
r.push({
|
|
1338
|
+
groupKey: i,
|
|
1339
|
+
command: {
|
|
1340
|
+
getLabel: () => n(o?.label, o?.params) ?? a,
|
|
1341
|
+
getIcon: () => t(o?.icon),
|
|
1342
|
+
getDescription: () => n(o?.description, o?.params) ?? "",
|
|
1343
|
+
getShortcut: () => t(o?.shortcut) ?? null,
|
|
1344
|
+
getScope: () => i,
|
|
1345
|
+
getScopeLabel: () => be.DefaultCommandCatalogService.getScopeLabel(i)
|
|
1346
|
+
}
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1349
|
+
return { getAllCommands: () => r };
|
|
1350
|
+
}, pr = (e) => {
|
|
1351
|
+
let { children: t, workbook: n, setWorkbook: r, workbookTitle: i, isDirty: a, refSave: o, fullscreenTarget: s } = e, c = be.useCommandScope(), l = Fe(), { showModal: u } = ot(), d = A(), f = L(a);
|
|
1352
|
+
f.current = a;
|
|
1353
|
+
let p = O(() => {
|
|
1354
|
+
let e = c?.getRoot().getRegistry();
|
|
1355
|
+
if (!e) return;
|
|
1356
|
+
let t = u(ur, {
|
|
1357
|
+
title: d("dialog.shortcutKeys.title"),
|
|
1358
|
+
commands: fr(e),
|
|
1359
|
+
onDone: () => t.hide(),
|
|
1360
|
+
onLoadError: (e) => {
|
|
1361
|
+
t.destroy(), l.showError(e);
|
|
1362
|
+
}
|
|
1363
|
+
});
|
|
1364
|
+
}, [c, u]);
|
|
1365
|
+
F(() => {
|
|
1366
|
+
if (!c) return;
|
|
1367
|
+
let e = c.getRoot().contribution();
|
|
1368
|
+
return function(e, t) {
|
|
1369
|
+
let n = () => t.showShortcuts();
|
|
1370
|
+
e.updateCommand("showKeyboardShortcuts", { callback: n }), e.updateCommand("help", { callback: n });
|
|
1371
|
+
for (let [t, n] of Object.entries({
|
|
1372
|
+
gotoUrlGithub: "https://github.com/sheetxl/sheetxl",
|
|
1373
|
+
gotoUrlDiscord: "https://discord.gg/NTKdwUgK9p",
|
|
1374
|
+
gotoUrlDocumentation: "https://www.sheetxl.com/docs",
|
|
1375
|
+
gotoUrlIssue: "https://github.com/sheetxl/sheetxl/issues"
|
|
1376
|
+
})) e.updateCommand(t, { callback: () => {
|
|
1377
|
+
window?.open(n);
|
|
1378
|
+
} });
|
|
1379
|
+
}(e, { showShortcuts: p }), () => e.remove();
|
|
1380
|
+
}, [c, p]);
|
|
1381
|
+
let m = xt("(prefers-color-scheme: dark)"), { themeMode: h } = Le(), [g, _] = Ie(T.Mode, ae[T.Mode]), [v, ee] = Ie(T.DarkGrid, ae[T.DarkGrid]), [y, b] = Ie(T.DarkImages, ae[T.DarkImages]);
|
|
1382
|
+
F(() => {
|
|
1383
|
+
if (!c) return;
|
|
1384
|
+
let e = c.getRoot().contribution();
|
|
1385
|
+
return function(e, t) {
|
|
1386
|
+
e.updateCommand("themeMode", {
|
|
1387
|
+
state: t.mode ?? null,
|
|
1388
|
+
params: { dark: t.isDark },
|
|
1389
|
+
icon: t.isDark ? "DarkMode" : "LightMode",
|
|
1390
|
+
callback: () => t.setMode(t.isDark ? "light" : "dark")
|
|
1391
|
+
}), e.updateCommand("defaultThemeMode", {
|
|
1392
|
+
state: !t.mode,
|
|
1393
|
+
icon: t.systemDefaultDark ? "SystemDefaultDarkMode" : "SystemDefaultLightMode",
|
|
1394
|
+
callback: () => t.setMode(null)
|
|
1395
|
+
}), e.updateCommand("enableDarkGrid", {
|
|
1396
|
+
state: t.enableDarkGrid,
|
|
1397
|
+
callback: () => t.setEnableDarkGrid((e) => !e)
|
|
1398
|
+
}), e.updateCommand("enableDarkImages", {
|
|
1399
|
+
state: t.enableDarkImages,
|
|
1400
|
+
callback: () => t.setEnableDarkImages((e) => !e)
|
|
1401
|
+
});
|
|
1402
|
+
}(e, {
|
|
1403
|
+
mode: g,
|
|
1404
|
+
setMode: _,
|
|
1405
|
+
isDark: g === "dark" || !g && h === "dark",
|
|
1406
|
+
systemDefaultDark: m,
|
|
1407
|
+
enableDarkGrid: v,
|
|
1408
|
+
setEnableDarkGrid: ee,
|
|
1409
|
+
enableDarkImages: y,
|
|
1410
|
+
setEnableDarkImages: b
|
|
1411
|
+
}), () => e.remove();
|
|
1412
|
+
}, [
|
|
1413
|
+
c,
|
|
1414
|
+
g,
|
|
1415
|
+
h,
|
|
1416
|
+
m,
|
|
1417
|
+
v,
|
|
1418
|
+
y,
|
|
1419
|
+
_,
|
|
1420
|
+
ee,
|
|
1421
|
+
b
|
|
1422
|
+
]);
|
|
1423
|
+
let [x, S] = Ie(Ce.Active, null), [te, C] = R(() => Tt.getActive());
|
|
1424
|
+
F(() => Tt.addChangeListener(C), []), F(() => {
|
|
1425
|
+
x && x !== Tt.getActive() && Tt.setActive(x);
|
|
1426
|
+
}, [x]), F(() => {
|
|
1427
|
+
if (!c) return;
|
|
1428
|
+
let e = c.getRoot().contribution();
|
|
1429
|
+
return function(e, t) {
|
|
1430
|
+
e.updateCommand("language", {
|
|
1431
|
+
state: t.active,
|
|
1432
|
+
callback: (e) => {
|
|
1433
|
+
e && t.setActive(e);
|
|
1434
|
+
}
|
|
1435
|
+
});
|
|
1436
|
+
}(e, {
|
|
1437
|
+
active: te,
|
|
1438
|
+
setActive: (e) => {
|
|
1439
|
+
S(e);
|
|
1440
|
+
}
|
|
1441
|
+
}), () => e.remove();
|
|
1442
|
+
}, [
|
|
1443
|
+
c,
|
|
1444
|
+
te,
|
|
1445
|
+
S
|
|
1446
|
+
]);
|
|
1447
|
+
let ne = I(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: re, isFullscreenEnabled: w, toggleFullscreen: ie } = Me({ target: ne });
|
|
1448
|
+
F(() => {
|
|
1449
|
+
if (!c) return;
|
|
1450
|
+
let e = c.getRoot().contribution();
|
|
1451
|
+
return function(e, t) {
|
|
1452
|
+
e.updateCommand("fullScreenToggle", {
|
|
1453
|
+
state: t.isFullscreenEnabled,
|
|
1454
|
+
disabledReasons: t.isFullscreenAvailable ? [] : [K("reason.fullscreenUnavailable")],
|
|
1455
|
+
icon: t.isFullscreenEnabled ? "FullScreenOff" : "FullScreen",
|
|
1456
|
+
callback: () => {
|
|
1457
|
+
t.toggleFullscreen();
|
|
1458
|
+
}
|
|
1459
|
+
});
|
|
1460
|
+
}(e, {
|
|
1461
|
+
isFullscreenAvailable: re,
|
|
1462
|
+
isFullscreenEnabled: w,
|
|
1463
|
+
toggleFullscreen: ie
|
|
1464
|
+
}), () => e.remove();
|
|
1465
|
+
}, [
|
|
1466
|
+
c,
|
|
1467
|
+
re,
|
|
1468
|
+
w,
|
|
1469
|
+
ie
|
|
1470
|
+
]);
|
|
1471
|
+
let E = ge(!0);
|
|
1472
|
+
return F(() => {
|
|
1473
|
+
if (!c) return;
|
|
1474
|
+
let e = c.getRoot().contribution();
|
|
1475
|
+
return function(e, t) {
|
|
1476
|
+
e.updateCommand("protectWorkbook", {
|
|
1477
|
+
tags: ["noTransaction", "noRepeat"],
|
|
1478
|
+
callback: () => {
|
|
1479
|
+
t("manageProtection", { args: { tab: "workbook" } });
|
|
1480
|
+
}
|
|
1481
|
+
});
|
|
1482
|
+
}(e, (e, t) => E.activate(e, t)), () => e.remove();
|
|
1483
|
+
}, [c, E]), F(() => {
|
|
1484
|
+
if (!c || !n) return;
|
|
1485
|
+
let e = c.getRoot().contribution(), t = lr(e, {
|
|
1486
|
+
workbook: n,
|
|
1487
|
+
setWorkbook: r,
|
|
1488
|
+
workbookTitle: i ?? void 0,
|
|
1489
|
+
isDirty: () => f.current?.() ?? !1,
|
|
1490
|
+
notifier: l,
|
|
1491
|
+
refSave: o
|
|
1492
|
+
});
|
|
1493
|
+
return () => {
|
|
1494
|
+
t(), e.remove();
|
|
1495
|
+
};
|
|
1496
|
+
}, [
|
|
1497
|
+
c,
|
|
1498
|
+
n,
|
|
1499
|
+
r,
|
|
1500
|
+
i,
|
|
1501
|
+
l,
|
|
1502
|
+
o
|
|
1503
|
+
]), t;
|
|
1504
|
+
};
|
|
1505
|
+
pr.displayName = "StudioCommandProvider";
|
|
1506
|
+
var mr = ({ renderWorkbook: e }) => {
|
|
1507
|
+
let t = be.useCommandResolver(), n = L(null), r = A(), [i, a] = R(null), o = P((e) => {
|
|
1508
|
+
let n = e.dataTransfer;
|
|
1509
|
+
if (t && n) {
|
|
1510
|
+
if (e.type === "dragenter" || e.type === "dragover") {
|
|
1511
|
+
let e = n.types, t = n.items, r = !1;
|
|
1512
|
+
for (let e = 0; e < t.length; e++) if (t[e].type.startsWith("image/")) {
|
|
1513
|
+
r = !0;
|
|
1514
|
+
break;
|
|
1515
|
+
}
|
|
1516
|
+
r ? a("insertImage") : e.includes("Files") && t.length > 0 ? a("open") : (n.effectAllowed = "none", n.dropEffect = "none");
|
|
1517
|
+
} else if (e.type === "dragleave") {
|
|
1518
|
+
let t = e.relatedTarget;
|
|
1519
|
+
t && e.currentTarget.contains(t) || a(null);
|
|
1520
|
+
}
|
|
1521
|
+
e.preventDefault();
|
|
1522
|
+
}
|
|
1523
|
+
}, [t]), s = O((e) => {
|
|
1524
|
+
e.preventDefault();
|
|
1525
|
+
let r = i;
|
|
1526
|
+
if (a(null), r && t && (e.stopPropagation(), e.dataTransfer.files && e.dataTransfer.files.length > 0)) {
|
|
1527
|
+
let r = e.dataTransfer.files[0];
|
|
1528
|
+
if (!r) return;
|
|
1529
|
+
if (r?.type?.startsWith("image/")) {
|
|
1530
|
+
let i = n.current?.getSheetElement()?.getGridSurface().getPaneFromClient(e.clientX, e.clientY);
|
|
1531
|
+
if (!i) return;
|
|
1532
|
+
let a = i.getPanePointFromPointer(e.clientX, e.clientY);
|
|
1533
|
+
if (!a) return;
|
|
1534
|
+
let o = i.toAbsoluteBounds({
|
|
1535
|
+
x: a.x ?? 0,
|
|
1536
|
+
y: a.y ?? 0,
|
|
1537
|
+
width: 0,
|
|
1538
|
+
height: 0
|
|
1539
|
+
});
|
|
1540
|
+
t.execute("insertImageFromFile", {
|
|
1541
|
+
file: r,
|
|
1542
|
+
options: { bounds: {
|
|
1543
|
+
x: o.x,
|
|
1544
|
+
y: o.y
|
|
1545
|
+
} }
|
|
1546
|
+
});
|
|
1547
|
+
} else {
|
|
1548
|
+
if (!E.canRead()) return;
|
|
1549
|
+
let n = e.dataTransfer.items?.[0], i = typeof window < "u" && window.isSecureContext ? n?.getAsFileSystemHandle?.() : void 0;
|
|
1550
|
+
i ? i.then((e) => t.execute("openWorkbook", e?.kind === "file" ? e : r)).catch(() => t.execute("openWorkbook", r)) : t.execute("openWorkbook", r);
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
}, [t, i]), c = I(() => {
|
|
1554
|
+
if (!i) return null;
|
|
1555
|
+
let e = i === "insertImage";
|
|
1556
|
+
return B(H, {
|
|
1557
|
+
className: "drop-overlay",
|
|
1558
|
+
sx: {
|
|
1559
|
+
position: "absolute",
|
|
1560
|
+
inset: 0,
|
|
1561
|
+
zIndex: 1,
|
|
1562
|
+
boxSizing: "border-box",
|
|
1563
|
+
pointerEvents: "none",
|
|
1564
|
+
display: "flex",
|
|
1565
|
+
justifyContent: "center",
|
|
1566
|
+
alignItems: "center",
|
|
1567
|
+
backgroundColor: (e) => bt(e.palette.primary.main, .46),
|
|
1568
|
+
outline: (e) => `2px dashed ${e.palette.primary.main}`,
|
|
1569
|
+
outlineOffset: "-6px",
|
|
1570
|
+
borderRadius: 2
|
|
1571
|
+
},
|
|
1572
|
+
children: V(ht, {
|
|
1573
|
+
elevation: 6,
|
|
1574
|
+
sx: {
|
|
1575
|
+
display: "flex",
|
|
1576
|
+
alignItems: "center",
|
|
1577
|
+
gap: 1.5,
|
|
1578
|
+
px: 3,
|
|
1579
|
+
py: 2,
|
|
1580
|
+
borderRadius: 2,
|
|
1581
|
+
color: "text.primary",
|
|
1582
|
+
"& .drop-overlay-icon": { color: "primary.main" }
|
|
1583
|
+
},
|
|
1584
|
+
children: [B(Se, {
|
|
1585
|
+
iconKey: e ? "InsertImage" : "FileOpen",
|
|
1586
|
+
className: "drop-overlay-icon",
|
|
1587
|
+
size: 32
|
|
1588
|
+
}), B(yt, {
|
|
1589
|
+
variant: "h6",
|
|
1590
|
+
component: "span",
|
|
1591
|
+
children: r(e ? "drop.insertImage" : "drop.open")
|
|
1592
|
+
})]
|
|
1593
|
+
})
|
|
1594
|
+
});
|
|
1595
|
+
}, [i, r]);
|
|
1596
|
+
return V(ct, { children: [e({
|
|
1597
|
+
ref: n,
|
|
1598
|
+
onDragStart: (e) => {
|
|
1599
|
+
if (e.target.src) {
|
|
1600
|
+
let t = new Image();
|
|
1601
|
+
t.src = e.target.src, e.dataTransfer.setDragImage(t, 1, 1);
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1604
|
+
onDragEnter: o,
|
|
1605
|
+
onDragLeave: o,
|
|
1606
|
+
onDragOver: o,
|
|
1607
|
+
onDrop: s
|
|
1608
|
+
}), c] });
|
|
1609
|
+
}, hr = N((e) => {
|
|
1610
|
+
let { workbook: t, setWorkbook: n, refDocumentTitle: r, titleWorkbook: i, setWorkbookTitle: a, isDirty: o, initialCommandAnchor: s, renderWorkbook: c, refSave: l, host: u } = e;
|
|
1611
|
+
return B(te, {
|
|
1612
|
+
initialAnchor: s,
|
|
1613
|
+
children: B(pr, {
|
|
1614
|
+
workbook: t,
|
|
1615
|
+
setWorkbook: n,
|
|
1616
|
+
workbookTitle: i,
|
|
1617
|
+
isDirty: o,
|
|
1618
|
+
refSave: l,
|
|
1619
|
+
fullscreenTarget: u,
|
|
1620
|
+
children: B(mr, { renderWorkbook: c })
|
|
1621
|
+
})
|
|
1622
|
+
});
|
|
1623
|
+
});
|
|
1624
|
+
hr.displayName = "CommandsWrapper";
|
|
1625
|
+
var gr = {
|
|
1626
|
+
sort: W("studio:sortDialog", () => import("./DuuyN4-7K6_io2Py.mjs")).load,
|
|
1627
|
+
hyperlink: W("studio:hyperlinkDialog", () => import("./jFRFCWlkD7Dsrhkh.mjs")).load,
|
|
1628
|
+
find: W("studio:findReplaceWindow", () => import("./0IBZhOJaVmzJxuTv.mjs")).load,
|
|
1629
|
+
tableNew: W("studio:tableNewDialog", () => import("./oC0OwOddhOD0OoCJ.mjs")).load,
|
|
1630
|
+
namedDetails: W("studio:namedReferenceDialog", () => import("./C8p2iMad_NNCwGI_.mjs")).load,
|
|
1631
|
+
insertFunction: W("studio:insertFunctionDialog", () => import("./BKhcJI-G15D3kGap.mjs")).load,
|
|
1632
|
+
resizeHeader: W("studio:resizeHeaderDialog", () => import("./D2jzliMwAo2ENpfi.mjs")).load,
|
|
1633
|
+
outlineSettings: W("studio:outlineSettingsDialog", () => import("./NeGeLF3gbGMZyV6E.mjs")).load,
|
|
1634
|
+
fillSeries: W("studio:fillSeriesDialog", () => import("./tIKqpsA0vNXH9EgU.mjs")).load,
|
|
1635
|
+
workbookStatistics: W("studio:workbookStatisticsDialog", () => import("./Cq82lvdjyBvlJ8xJ.mjs")).load,
|
|
1636
|
+
password: W("studio:passwordDialog", () => import("./DX2_vf7WX6uRLaOZ.mjs")).load
|
|
1637
|
+
}, _r = ["find"], vr = N((e) => {
|
|
1638
|
+
let { children: t } = e, n = ir(), r = n ? n.enqueueSnackbar : () => {}, i = n ? n.closeSnackbar : () => {}, a = L(/* @__PURE__ */ new Set()), o = L(null), s = L(null), [c, l] = R({
|
|
1639
|
+
label: null,
|
|
1640
|
+
progress: null
|
|
1641
|
+
}), u = A(), d = Ct.EmptyObject, f = at(d), p = st(d), m = it(d), h = L(!1);
|
|
1642
|
+
F(() => {
|
|
1643
|
+
if (h.current) return;
|
|
1644
|
+
h.current = !0;
|
|
1645
|
+
let e = window, t = e.requestIdleCallback ?? ((e) => setTimeout(e, 500)), n = e.cancelIdleCallback ?? clearTimeout, r = t(() => {
|
|
1646
|
+
for (let e of _r) f(e, gr[e], { prewarm: !0 }).catch(() => {});
|
|
1647
|
+
});
|
|
1648
|
+
return () => n(r);
|
|
1649
|
+
}, []);
|
|
1650
|
+
let g = L(/* @__PURE__ */ new Set()), _ = I(() => {
|
|
1651
|
+
let e = (e, t) => {
|
|
1652
|
+
if (t?.onceKey) {
|
|
1653
|
+
if (g.current.has(t.onceKey)) return;
|
|
1654
|
+
let e = new Set(g.current);
|
|
1655
|
+
e.add(t.onceKey), g.current = e;
|
|
1656
|
+
}
|
|
1657
|
+
let n = {
|
|
1658
|
+
variant: t?.type ?? D.Info,
|
|
1659
|
+
anchorOrigin: {
|
|
1660
|
+
vertical: "top",
|
|
1661
|
+
horizontal: "center"
|
|
1662
|
+
},
|
|
1663
|
+
preventDuplicate: t?.preventDuplicate,
|
|
1664
|
+
persist: t?.persist ?? t?.type === D.Error,
|
|
1665
|
+
action: (e) => B(mt, {
|
|
1666
|
+
onClick: () => i(e),
|
|
1667
|
+
children: B(Se, { iconKey: "Cancel" })
|
|
1668
|
+
})
|
|
1669
|
+
};
|
|
1670
|
+
t?.enqueueProps && Object.assign(n, t.enqueueProps), e || console.log("message is 'null'", t), r(e ?? "Alert", n);
|
|
1671
|
+
};
|
|
1672
|
+
return {
|
|
1673
|
+
showMessage: e,
|
|
1674
|
+
showBusy: (e, t) => {
|
|
1675
|
+
let n = Symbol("busy");
|
|
1676
|
+
a.current.add(n), s.current = e, e != null && typeof e != "string" && l((t) => t.label === e ? t : {
|
|
1677
|
+
...t,
|
|
1678
|
+
label: e
|
|
1679
|
+
});
|
|
1680
|
+
let r = je(() => {
|
|
1681
|
+
a.current.delete(n) && (a.current.size > 0 || (et(o.current), s.current = null, l((e) => e.label === null && e.progress === null ? e : {
|
|
1682
|
+
label: null,
|
|
1683
|
+
progress: null
|
|
1684
|
+
})));
|
|
1685
|
+
}, (e, t) => {
|
|
1686
|
+
let n = t && t > 0 && e != null ? Math.max(0, Math.min(1, e / t)) : null;
|
|
1687
|
+
l((e) => e.progress === n ? e : {
|
|
1688
|
+
...e,
|
|
1689
|
+
progress: n
|
|
1690
|
+
});
|
|
1691
|
+
}, (e) => {
|
|
1692
|
+
s.current = e, typeof e == "string" ? rt(o.current, e) : l((t) => ({
|
|
1693
|
+
...t,
|
|
1694
|
+
label: e
|
|
1695
|
+
}));
|
|
1696
|
+
}), i = rt(o.current, typeof e == "string" ? e : void 0);
|
|
1697
|
+
return i ? i.then(() => r) : r;
|
|
1698
|
+
},
|
|
1699
|
+
showWindow: (e, t) => {
|
|
1700
|
+
let n = t;
|
|
1701
|
+
return t = {
|
|
1702
|
+
...t,
|
|
1703
|
+
onKeyDown: (e) => {
|
|
1704
|
+
e.isDefaultPrevented() || e.isPropagationStopped() || n?.onKeyDown?.(e);
|
|
1705
|
+
}
|
|
1706
|
+
}, f(e, gr[e], t);
|
|
1707
|
+
},
|
|
1708
|
+
showOptions: p,
|
|
1709
|
+
showInput: m,
|
|
1710
|
+
showError: (t) => {
|
|
1711
|
+
let n, r = D.Error, i = u("error.unknown");
|
|
1712
|
+
typeof t == "string" ? i = t : t instanceof Error && (n = t, t.message && (i = u(t.message))), t instanceof Ot && (r = D.Info), e(i, {
|
|
1713
|
+
type: r,
|
|
1714
|
+
enqueueProps: { error: n }
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
};
|
|
1718
|
+
}, [u]), v = I(() => B(Ke, {
|
|
1719
|
+
ref: o,
|
|
1720
|
+
autoStart: !1,
|
|
1721
|
+
icon: B(qe, { sx: {
|
|
1722
|
+
transform: "scale(0.7)",
|
|
1723
|
+
marginLeft: "-6px"
|
|
1724
|
+
} }),
|
|
1725
|
+
panel: !0,
|
|
1726
|
+
label: c.label ?? (typeof s.current == "string" ? s.current : void 0),
|
|
1727
|
+
progress: c.progress,
|
|
1728
|
+
sx: {
|
|
1729
|
+
position: "absolute",
|
|
1730
|
+
left: "0",
|
|
1731
|
+
top: "0",
|
|
1732
|
+
width: "100%",
|
|
1733
|
+
height: "100%",
|
|
1734
|
+
zIndex: "9999",
|
|
1735
|
+
pointerEvents: "none"
|
|
1736
|
+
}
|
|
1737
|
+
}), [c.label, c.progress]);
|
|
1738
|
+
return V(Te, {
|
|
1739
|
+
notifier: _,
|
|
1740
|
+
children: [v, t]
|
|
1741
|
+
});
|
|
1742
|
+
});
|
|
1743
|
+
vr.displayName = "StudioNotifierProvider";
|
|
1744
|
+
var yr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", br = N(M((e, t) => {
|
|
1745
|
+
let { children: n, title: r, taskPanes: i, onSelect: a, selected: o, registry: s = C, style: c, iconsOnly: l, side: u = "right", className: d, ...f } = e, p = u !== "right", m = k(), h = I(() => i.map((t) => {
|
|
1746
|
+
let n = s.getRegisteredTaskPane(t);
|
|
1747
|
+
if (!n) return null;
|
|
1748
|
+
let r = n.getIcon?.();
|
|
1749
|
+
typeof r == "string" && (r = B(Se, { iconKey: r }));
|
|
1750
|
+
let i = t === o, a = r ? B(H, {
|
|
1751
|
+
sx: {
|
|
1752
|
+
display: "inline-block",
|
|
1753
|
+
transform: p ? "rotate(-90deg)" : "rotate(90deg)",
|
|
1754
|
+
transformOrigin: "center",
|
|
1755
|
+
color: (e) => e.palette.text.secondary
|
|
1756
|
+
},
|
|
1757
|
+
children: r
|
|
1758
|
+
}) : null, c = !r || !l && i, u = B(H, {
|
|
1759
|
+
sx: {
|
|
1760
|
+
display: "grid",
|
|
1761
|
+
gridTemplateColumns: c ? "1fr" : "0fr",
|
|
1762
|
+
opacity: +!!c,
|
|
1763
|
+
transition: (e) => e.transitions.create(["grid-template-columns", "opacity"], { duration: e.transitions.duration.short })
|
|
1764
|
+
},
|
|
1765
|
+
children: B(H, {
|
|
1766
|
+
sx: {
|
|
1767
|
+
overflow: "hidden",
|
|
1768
|
+
minWidth: 0,
|
|
1769
|
+
minHeight: 0
|
|
1770
|
+
},
|
|
1771
|
+
children: B(yt, {
|
|
1772
|
+
component: "div",
|
|
1773
|
+
sx: {
|
|
1774
|
+
textTransform: "none",
|
|
1775
|
+
whiteSpace: "nowrap",
|
|
1776
|
+
transform: p ? "rotate(180deg)" : void 0,
|
|
1777
|
+
padding: "4px 0px",
|
|
1778
|
+
color: (e) => i ? e.palette.primary.main : e.palette.text.secondary
|
|
1779
|
+
},
|
|
1780
|
+
children: n.getTitle()
|
|
1781
|
+
})
|
|
1782
|
+
})
|
|
1783
|
+
});
|
|
1784
|
+
return B(_t, {
|
|
1785
|
+
value: t,
|
|
1786
|
+
label: B(Ze, {
|
|
1787
|
+
disableInteractive: !0,
|
|
1788
|
+
title: n.getTitle() ?? "",
|
|
1789
|
+
placement: "left-start",
|
|
1790
|
+
children: V(H, {
|
|
1791
|
+
sx: {
|
|
1792
|
+
padding: "0px 0px",
|
|
1793
|
+
writingMode: p ? "vertical-lr" : "vertical-rl",
|
|
1794
|
+
textOrientation: "mixed",
|
|
1795
|
+
display: "flex",
|
|
1796
|
+
alignItems: "center",
|
|
1797
|
+
justifyContent: "space-between",
|
|
1798
|
+
minWidth: "0px",
|
|
1799
|
+
color: (e) => e.palette.text.secondary
|
|
1800
|
+
},
|
|
1801
|
+
children: [p ? u : a, p ? a : u]
|
|
1802
|
+
})
|
|
1803
|
+
}),
|
|
1804
|
+
sx: {
|
|
1805
|
+
padding: "4px 4px",
|
|
1806
|
+
minWidth: "0px",
|
|
1807
|
+
minHeight: "0px",
|
|
1808
|
+
borderRadius: "4px"
|
|
1809
|
+
},
|
|
1810
|
+
className: b("taskpane-strip-item", { "Mui-selected": i }),
|
|
1811
|
+
onClick: () => e.onSelect(t)
|
|
1812
|
+
}, t);
|
|
1813
|
+
}), [
|
|
1814
|
+
i,
|
|
1815
|
+
o,
|
|
1816
|
+
a,
|
|
1817
|
+
s,
|
|
1818
|
+
p,
|
|
1819
|
+
l,
|
|
1820
|
+
m
|
|
1821
|
+
]), g = Ne(t, () => ({ isTaskPaneStrip: () => !0 }), []), _ = I(() => b("taskpane-strip", d), [d]);
|
|
1822
|
+
return B(H, {
|
|
1823
|
+
ref: g,
|
|
1824
|
+
className: _,
|
|
1825
|
+
sx: {
|
|
1826
|
+
paddingLeft: p ? void 0 : "2px",
|
|
1827
|
+
paddingRight: p ? "2px" : void 0,
|
|
1828
|
+
paddingTop: "4px",
|
|
1829
|
+
...c
|
|
1830
|
+
},
|
|
1831
|
+
...f,
|
|
1832
|
+
children: B(U, {
|
|
1833
|
+
orientation: "vertical",
|
|
1834
|
+
variant: "scrollable",
|
|
1835
|
+
value: o,
|
|
1836
|
+
onChange: (e, t) => {
|
|
1837
|
+
a(t);
|
|
1838
|
+
},
|
|
1839
|
+
slotProps: {
|
|
1840
|
+
list: { sx: { gap: "2px" } },
|
|
1841
|
+
indicator: { sx: {
|
|
1842
|
+
left: p ? void 0 : "0px",
|
|
1843
|
+
right: p ? void 0 : "unset",
|
|
1844
|
+
bottom: p ? "0px" : void 0
|
|
1845
|
+
} }
|
|
1846
|
+
},
|
|
1847
|
+
children: h
|
|
1848
|
+
})
|
|
1849
|
+
});
|
|
1850
|
+
})), xr = (e) => {
|
|
1851
|
+
let { title: t, icon: n, onClose: r, readOnly: i, focused: a, ...o } = e, s = L(null), c = A();
|
|
1852
|
+
return B(pt, {
|
|
1853
|
+
className: b({ "Mui-selected": a }),
|
|
1854
|
+
sx: {
|
|
1855
|
+
display: "flex",
|
|
1856
|
+
flex: "1 1 %0",
|
|
1857
|
+
color: (e) => e.palette.text.secondary,
|
|
1858
|
+
boxSizing: "border-box",
|
|
1859
|
+
padding: "0 0",
|
|
1860
|
+
transitionProperty: "opacity",
|
|
1861
|
+
transitionDuration: (e) => `${e.transitions.duration.shortest}ms`,
|
|
1862
|
+
opacity: .7,
|
|
1863
|
+
"&.Mui-selected": {
|
|
1864
|
+
opacity: 1,
|
|
1865
|
+
transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
|
|
1866
|
+
},
|
|
1867
|
+
backgroundColor: (e) => bt(e.palette.action.hover, .03),
|
|
1868
|
+
borderBottom: `solid ${yr} 1px`
|
|
1869
|
+
},
|
|
1870
|
+
...o,
|
|
1871
|
+
children: V(H, {
|
|
1872
|
+
sx: {
|
|
1873
|
+
display: "flex",
|
|
1874
|
+
flex: "1 1 10%",
|
|
1875
|
+
flexDirection: "row",
|
|
1876
|
+
alignItems: "center",
|
|
1877
|
+
marginTop: (e) => e.spacing(.25),
|
|
1878
|
+
marginBottom: (e) => e.spacing(.25),
|
|
1879
|
+
marginLeft: (e) => e.spacing(1),
|
|
1880
|
+
marginRight: (e) => e.spacing(1)
|
|
1881
|
+
},
|
|
1882
|
+
children: [B(H, {
|
|
1883
|
+
sx: {
|
|
1884
|
+
flex: "1 1 100%",
|
|
1885
|
+
paddingLeft: (e) => e.spacing(1)
|
|
1886
|
+
},
|
|
1887
|
+
children: t
|
|
1888
|
+
}), B(z, {
|
|
1889
|
+
label: c("taskPane.close"),
|
|
1890
|
+
children: B(mt, {
|
|
1891
|
+
"aria-label": "close",
|
|
1892
|
+
sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
|
|
1893
|
+
touchRippleRef: s,
|
|
1894
|
+
onPointerDown: (e) => {
|
|
1895
|
+
s.current?.start(e, { center: !1 }), e.stopPropagation(), e.preventDefault();
|
|
1896
|
+
},
|
|
1897
|
+
onPointerUp: () => {
|
|
1898
|
+
r();
|
|
1899
|
+
},
|
|
1900
|
+
children: B(Se, { iconKey: "Close" })
|
|
1901
|
+
})
|
|
1902
|
+
})]
|
|
1903
|
+
})
|
|
1904
|
+
});
|
|
1905
|
+
}, Sr = M((e, t) => {
|
|
1906
|
+
let { model: n, side: r, ...i } = e, a = St(), o = `solid ${yr} 1px`, s = `${a.shape.borderRadius ?? 4}px`, c = `${a.spacing?.(.5) ?? 4}px`;
|
|
1907
|
+
return B(w, {
|
|
1908
|
+
model: n,
|
|
1909
|
+
ref: t,
|
|
1910
|
+
propsFrame: { style: {
|
|
1911
|
+
border: o,
|
|
1912
|
+
borderRadius: s,
|
|
1913
|
+
marginBottom: c
|
|
1914
|
+
} },
|
|
1915
|
+
alwaysShowStrip: !0,
|
|
1916
|
+
componentTitle: xr,
|
|
1917
|
+
componentStrip: br,
|
|
1918
|
+
side: r,
|
|
1919
|
+
...e,
|
|
1920
|
+
onOpen: () => {
|
|
1921
|
+
e?.onOpen?.();
|
|
1922
|
+
},
|
|
1923
|
+
onClose: () => {
|
|
1924
|
+
e?.onClose?.();
|
|
1925
|
+
},
|
|
1926
|
+
...i
|
|
1927
|
+
});
|
|
1928
|
+
}), Cr = "_styled-resizer_fdl5y_3", wr = {}, Tr = {
|
|
1929
|
+
flex: "1 1 100%",
|
|
1930
|
+
display: "flex",
|
|
1931
|
+
boxSizing: "border-box"
|
|
1932
|
+
}, Er = N(M((e, t) => {
|
|
1933
|
+
let { mainElement: n, sidebarElement: r, position: i, persistKey: a, onPositionChange: o, className: s, style: c, taskSide: l = "right", ...u } = e, [d, f] = Ie(a ?? null, wr), p = St(), [m, { width: h }] = Pe(), g = h > 530 || h === 0, _ = L(null), v, ee, y = null, S = 4, te = 13;
|
|
1934
|
+
g ? y = "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" : (y = "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", S = 13, te = 4);
|
|
1935
|
+
let C, ne = n, re = r, w = l !== "right", ie = g ? "row" : "column", ae = w && re ? "before" : "after", T = `${ie}:${ae}`, E = a ? d[T] : void 0, oe = E == null ? ((e, t) => {
|
|
1936
|
+
if (e == null) return "40%";
|
|
1937
|
+
if (typeof e == "number" || typeof e == "string") return e;
|
|
1938
|
+
let n = e[t];
|
|
1939
|
+
return n == null ? "40%" : `${n}%`;
|
|
1940
|
+
})(i, T) : `${E}%`, se = a || o ? (e) => {
|
|
1941
|
+
a && f((t) => ({
|
|
1942
|
+
...t,
|
|
1943
|
+
[T]: e.percent
|
|
1944
|
+
})), o?.(e, {
|
|
1945
|
+
orientation: ie,
|
|
1946
|
+
side: ae,
|
|
1947
|
+
key: T
|
|
1948
|
+
});
|
|
1949
|
+
} : void 0;
|
|
1950
|
+
w && re ? (ne = r, re = n, ee = { style: {
|
|
1951
|
+
flexDirection: "column",
|
|
1952
|
+
boxSizing: "border-box",
|
|
1953
|
+
paddingRight: "2px"
|
|
1954
|
+
} }, v = {}, C = {
|
|
1955
|
+
fixedPane: "before",
|
|
1956
|
+
position: oe,
|
|
1957
|
+
minBefore: g ? "280px" : "120px",
|
|
1958
|
+
splitDirection: g ? "row" : "column"
|
|
1959
|
+
}) : (v = { style: {
|
|
1960
|
+
flexDirection: "column",
|
|
1961
|
+
marginRight: r ? void 0 : "6px"
|
|
1962
|
+
} }, ee = { style: {
|
|
1963
|
+
marginLeft: g ? "0px" : "4px",
|
|
1964
|
+
marginRight: g ? "8px" : "4px"
|
|
1965
|
+
} }, C = {
|
|
1966
|
+
fixedPane: "after",
|
|
1967
|
+
position: oe,
|
|
1968
|
+
minAfter: g ? "280px" : "120px",
|
|
1969
|
+
splitDirection: g ? "row" : "column"
|
|
1970
|
+
});
|
|
1971
|
+
let ce = x([
|
|
1972
|
+
_,
|
|
1973
|
+
m,
|
|
1974
|
+
t
|
|
1975
|
+
]);
|
|
1976
|
+
return B(ke, {
|
|
1977
|
+
ref: ce,
|
|
1978
|
+
className: s,
|
|
1979
|
+
style: c ? {
|
|
1980
|
+
...Tr,
|
|
1981
|
+
...c
|
|
1982
|
+
} : Tr,
|
|
1983
|
+
...u,
|
|
1984
|
+
...C,
|
|
1985
|
+
onPositionChange: se,
|
|
1986
|
+
propsResizer: {
|
|
1987
|
+
className: b("styled-resizer", Cr),
|
|
1988
|
+
style: {
|
|
1989
|
+
minWidth: g ? "7px" : void 0,
|
|
1990
|
+
minHeight: g ? void 0 : "6px",
|
|
1991
|
+
maskImage: `url("data:image/svg+xml,%3Csvg width='${S}' height='${te}' viewBox='0 0 ${S} ${te}' 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='${y}' /%3E%3C/svg%3E%0A")`,
|
|
1992
|
+
maskRepeat: "no-repeat",
|
|
1993
|
+
maskPosition: w ? g ? "center center" : "bottom center" : g ? "left center" : "top center"
|
|
1994
|
+
}
|
|
1995
|
+
},
|
|
1996
|
+
elementBefore: ne,
|
|
1997
|
+
propsPaneBefore: v,
|
|
1998
|
+
elementAfter: re,
|
|
1999
|
+
propsPaneAfter: ee
|
|
2000
|
+
});
|
|
2001
|
+
}));
|
|
2002
|
+
Er.displayName = "StudioSplitPane";
|
|
2003
|
+
var Dr = () => B("div", { style: {
|
|
2004
|
+
flex: "none",
|
|
2005
|
+
height: 0,
|
|
2006
|
+
borderTop: "solid var(--sxl-color-base-border, light-dark(rgba(0, 0, 0, 0.26), rgba(255, 255, 255, 0.3))) 1px"
|
|
2007
|
+
} }), Or = (e, t) => {
|
|
2008
|
+
let n = (e) => B(j.Fragment, { children: t[e] }, e);
|
|
2009
|
+
if (e === "bottom") {
|
|
2010
|
+
let e = t.statusBar && t.formulaBar ? B(Dr, {}, "divider") : null;
|
|
2011
|
+
return [
|
|
2012
|
+
n("toolbar"),
|
|
2013
|
+
n("main"),
|
|
2014
|
+
n("statusBar"),
|
|
2015
|
+
e,
|
|
2016
|
+
n("formulaBar")
|
|
2017
|
+
];
|
|
2018
|
+
}
|
|
2019
|
+
return [
|
|
2020
|
+
n("toolbar"),
|
|
2021
|
+
n("formulaBar"),
|
|
2022
|
+
n("main"),
|
|
2023
|
+
n("statusBar")
|
|
2024
|
+
];
|
|
2025
|
+
}, kr = nt(W("studio:dataValidationDetailsTaskPane", () => import("./BAzhmMX4Fk_qnUTp.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load);
|
|
2026
|
+
u(), de("shape", {
|
|
2027
|
+
key: "changeShapeGallery",
|
|
2028
|
+
render: (e) => B(g, {
|
|
2029
|
+
...e,
|
|
2030
|
+
commandKey: "changeShape",
|
|
2031
|
+
excludeCategories: At
|
|
2032
|
+
})
|
|
2033
|
+
}, {
|
|
2034
|
+
order: -1,
|
|
2035
|
+
divider: "after"
|
|
2036
|
+
}), ue("shape", () => import("./Yjq3p_7eVGFw2Jod.mjs").then((e) => e.ShapeFormatPanel)), ue("chart", () => import("./BHGr2gsFofTdAFxq.mjs").then((e) => e.ChartFormatPanel)), de("picture", {
|
|
2037
|
+
key: "changePictureOptions",
|
|
2038
|
+
defaultKey: "changePictureFromFile",
|
|
2039
|
+
members: ["changePictureFromFile", "changePictureFromURL"]
|
|
2040
|
+
}, {
|
|
2041
|
+
order: -1,
|
|
2042
|
+
divider: "after"
|
|
2043
|
+
}), o(), xe.register("plugin-table", { icons: {} }), C.registerTaskPane({
|
|
2044
|
+
key: "dataValidationDetails",
|
|
2045
|
+
getTitle: () => "Data Validation",
|
|
2046
|
+
getIcon: () => "DataValidation",
|
|
2047
|
+
component: kr
|
|
2048
|
+
}, !0), C.registerTaskPane({
|
|
2049
|
+
key: "conditionalFormatDetails",
|
|
2050
|
+
getTitle: () => "Conditional Formatting",
|
|
2051
|
+
getIcon: () => "FormatPaint",
|
|
2052
|
+
component: kt
|
|
2053
|
+
}, !0), e(), l(), s(), i(), r(), a(), v();
|
|
2054
|
+
var Ar = () => {
|
|
2055
|
+
let e, t, n = new Promise((n, r) => {
|
|
2056
|
+
e = n, t = r;
|
|
2057
|
+
}), r = {
|
|
2058
|
+
promise: n,
|
|
2059
|
+
settled: !1,
|
|
2060
|
+
resolve: (t) => {
|
|
2061
|
+
r.settled = !0, e(t);
|
|
2062
|
+
},
|
|
2063
|
+
reject: (e) => {
|
|
2064
|
+
r.settled = !0, t(e);
|
|
2065
|
+
}
|
|
2066
|
+
};
|
|
2067
|
+
return n.catch(() => {}), r;
|
|
2068
|
+
}, jr = (e, t) => {
|
|
2069
|
+
if (!e) return {};
|
|
2070
|
+
let { colorSchemes: n, ...r } = e, i = n?.[t ? "dark" : "light"];
|
|
2071
|
+
return i && typeof i == "object" ? Ct.deepMerge(r, i) : r;
|
|
2072
|
+
}, Mr = "taskPanePosition", Nr = N(M((e, n) => {
|
|
2073
|
+
let { host: r, scopeClass: i, square: a, elevation: o, variant: s, onWorkbookLoad: l, prefetch: u, onDocumentError: f, renderDocumentError: g = c, propsDocumentError: _, propsTaskPaneArea: v, renderTaskPaneArea: b = Pr, taskPaneSide: x = "right", onKeyDown: te, workbook: C, onWorkbookChange: ne, logo: w, topLeft: ue, topRight: de, muiTheme: ge, tokens: D, cssBaseline: Te, autoFocus: ke = !1, title: je, onDirtyChange: Me, propsDocumentTitle: k, renderDocumentLoading: Pe = t, propsDocumentLoading: Fe, propsWorkbook: A, showFormulaBar: j, propsFormulaBar: Be, renderFormulaBar: Ve, formulaBarPlacement: He, manageVisualViewport: M = !0, editable: Ue, showStatusBar: N, propsStatusBar: We, renderStatusBar: Ge, propsToolbar: Ke, renderToolbar: qe } = e, z = L(null), Ze = L(null), Qe = L(null), et = O(() => {
|
|
2074
|
+
Qe.current?.getNamedCollectionEditorElement?.()?.focus?.();
|
|
2075
|
+
}, []), tt = ((e, t = typeof window > "u" ? "mouse" : Ee.detectIt().primaryInput) => e === "top" || e === "bottom" ? e : t === "touch" ? "bottom" : "top")(He), nt = tt === "bottom" && M, rt = ze(nt), it = rt ? Math.max(0, Math.round(window.innerHeight - rt.height)) : 0, at = rt ? Math.round(rt.offsetTop) : 0, ot = rt?.height;
|
|
2076
|
+
F(() => {
|
|
2077
|
+
nt && ot !== void 0 && (window.scrollX === 0 && window.scrollY === 0 || window.scrollTo(0, 0));
|
|
2078
|
+
}, [nt, ot]);
|
|
2079
|
+
let st = O(f ?? (() => {}), [f]), ct = O(Me ?? (() => {}), [Me]), lt = k?.placeHolder, [ut] = Ie(T.Mode, ae[T.Mode]), { themeMode: dt } = Le({ mode: ut ?? void 0 }), [pt] = Ie(Ce.Active, null), mt = L(pt);
|
|
2080
|
+
mt.current = pt;
|
|
2081
|
+
let _t = Re(), U = I(() => ({
|
|
2082
|
+
light: $e(!1, Ct.deepMerge(jr(ge, !1), m(_t?.light))),
|
|
2083
|
+
dark: $e(!0, Ct.deepMerge(jr(ge, !0), m(_t?.dark)))
|
|
2084
|
+
}), [
|
|
2085
|
+
ge,
|
|
2086
|
+
_t?.light,
|
|
2087
|
+
_t?.dark
|
|
2088
|
+
]), yt = dt === "dark", bt = I(() => d(U.light, U.dark, `.${i}`, D), [
|
|
2089
|
+
U,
|
|
2090
|
+
i,
|
|
2091
|
+
D
|
|
2092
|
+
]), xt = I(() => se("sxl-defaults", `.${i}`), [i]), St = fe(), [wt, Et] = R(() => C ?? null);
|
|
2093
|
+
F(() => {
|
|
2094
|
+
Et(C ?? null);
|
|
2095
|
+
}, [C]);
|
|
2096
|
+
let [Dt, Ot] = R(0), W = L(null);
|
|
2097
|
+
W.current ||= Ar();
|
|
2098
|
+
let G = he(wt, {
|
|
2099
|
+
io: E,
|
|
2100
|
+
defaultTheme: St.getDefaultTheme(),
|
|
2101
|
+
reloadKey: Dt
|
|
2102
|
+
}), K = G.status === "loaded" ? G.workbook : null, q = I(() => G.status === "error" ? {
|
|
2103
|
+
status: "error",
|
|
2104
|
+
error: G.error
|
|
2105
|
+
} : G.status === "loaded" ? {
|
|
2106
|
+
status: "loaded",
|
|
2107
|
+
workbook: G.workbook
|
|
2108
|
+
} : { status: "loading" }, [G]);
|
|
2109
|
+
F(() => {
|
|
2110
|
+
W.current.settled && (W.current = Ar());
|
|
2111
|
+
}, [wt, Dt]), F(() => {
|
|
2112
|
+
if (q.status === "loaded") {
|
|
2113
|
+
let e = W.current, t = q.workbook;
|
|
2114
|
+
t.whenFontsReady().then(() => e.resolve(t), () => e.resolve(t));
|
|
2115
|
+
} else q.status === "error" && (st?.(q.error), W.current.reject(q.error));
|
|
2116
|
+
}, [q]);
|
|
2117
|
+
let [J, kt] = R(null);
|
|
2118
|
+
K && !J && kt(K);
|
|
2119
|
+
let At = K && J && K !== J ? K : null, jt = L(At);
|
|
2120
|
+
jt.current = At;
|
|
2121
|
+
let Y = L(J);
|
|
2122
|
+
Y.current = J;
|
|
2123
|
+
let Mt = L([]), Nt = P((e) => {
|
|
2124
|
+
let t = Y.current;
|
|
2125
|
+
t && Mt.current.push(t), Et(e);
|
|
2126
|
+
}, []);
|
|
2127
|
+
F(() => {
|
|
2128
|
+
let e = Mt.current;
|
|
2129
|
+
if (e.length !== 0) {
|
|
2130
|
+
Mt.current = e.filter((e) => e === J);
|
|
2131
|
+
for (let t = 0; t < e.length; t++) {
|
|
2132
|
+
let n = e[t];
|
|
2133
|
+
if (n !== J) try {
|
|
2134
|
+
n.close();
|
|
2135
|
+
} catch (e) {
|
|
2136
|
+
console.warn("Unable to close the replaced workbook", e);
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
}, [J]);
|
|
2141
|
+
let Pt = Ue ? null : J, Ft = me(), It = I(() => {
|
|
2142
|
+
let e = Pt?.getSelectedWorksheet() ?? Pt?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
|
|
2143
|
+
return e ? ce(e, { referenceMode: Ft }) : null;
|
|
2144
|
+
}, [Pt, Ft]), X = Ue ?? It, Z = L(X);
|
|
2145
|
+
Z.current = X, F(() => {
|
|
2146
|
+
if (!X) return;
|
|
2147
|
+
let e = X.getSession();
|
|
2148
|
+
return X.subscribe(() => {
|
|
2149
|
+
let t = e;
|
|
2150
|
+
e = X.getSession(), t && !e && t.getActiveEditorId() === "formula-bar" && Qe.current?.contains?.(document.activeElement) && z.current?.focus();
|
|
2151
|
+
});
|
|
2152
|
+
}, [X]);
|
|
2153
|
+
let Lt = ve(J), { isDirty: Rt, saveState: zt } = ye(J, E), Bt = _e(J), Vt = L(zt), Q = L(null);
|
|
2154
|
+
Vt.current = zt;
|
|
2155
|
+
let Ht = P(() => Vt.current?.isDirty() ?? !1, []), Ut = L(q);
|
|
2156
|
+
Ut.current = q;
|
|
2157
|
+
let [Wt, Gt] = R(null), Kt = je ?? k?.title, [qt, Jt] = R(null);
|
|
2158
|
+
F(() => {
|
|
2159
|
+
Jt(null);
|
|
2160
|
+
}, [J]);
|
|
2161
|
+
let Yt = Kt ?? qt ?? Lt ?? "";
|
|
2162
|
+
F(() => {
|
|
2163
|
+
ct?.(Rt);
|
|
2164
|
+
}, [Rt]);
|
|
2165
|
+
let Xt = O(ne ?? (() => {}), [ne]);
|
|
2166
|
+
F(() => {
|
|
2167
|
+
Xt?.(K);
|
|
2168
|
+
}, [K]);
|
|
2169
|
+
let Zt = L(K);
|
|
2170
|
+
Zt.current = K, pe(J, "onViewChange");
|
|
2171
|
+
let Qt = I(() => B(Je, {
|
|
2172
|
+
groupKey: "helpOptions",
|
|
2173
|
+
disableHover: !0,
|
|
2174
|
+
sx: { padding: "0" },
|
|
2175
|
+
propsButton: { sx: { maxHeight: "22px" } }
|
|
2176
|
+
}), []), [$t, en] = R(null), tn = P((e) => {
|
|
2177
|
+
en(e);
|
|
2178
|
+
}, []);
|
|
2179
|
+
F(() => {
|
|
2180
|
+
xe.prefetch([xe.getActive(), re]).catch((e) => {
|
|
2181
|
+
console.warn("Icons could not be loaded:", e);
|
|
2182
|
+
});
|
|
2183
|
+
}, []);
|
|
2184
|
+
let nn = L(null);
|
|
2185
|
+
nn.current ||= Ar();
|
|
2186
|
+
let rn = L(null), an = P(() => rn.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? nn.current.promise, []), on = O(async (e) => {
|
|
2187
|
+
let t = mt.current;
|
|
2188
|
+
t && t !== Tt.getActive() && await Tt.setActive(t), await be.DefaultCommandCatalogService.prefetch(t ?? void 0), Gt(e), rn.current = e.source, nn.current.settled || nn.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
|
|
2189
|
+
}, []), sn = L(null), cn = P((e) => {
|
|
2190
|
+
let t = null, n = {
|
|
2191
|
+
readOnly: !0,
|
|
2192
|
+
...k
|
|
2193
|
+
};
|
|
2194
|
+
return k?.hidden || (t = B(h, {
|
|
2195
|
+
...n,
|
|
2196
|
+
style: {
|
|
2197
|
+
maxWidth: "100%",
|
|
2198
|
+
...k?.style
|
|
2199
|
+
},
|
|
2200
|
+
workbook: e.workbook ?? z.current,
|
|
2201
|
+
ref: sn,
|
|
2202
|
+
title: Yt,
|
|
2203
|
+
modified: Rt,
|
|
2204
|
+
encrypted: Bt,
|
|
2205
|
+
placeHolder: lt,
|
|
2206
|
+
onTitleChange: (e) => {
|
|
2207
|
+
Jt(e), k?.onTitleChange?.(e);
|
|
2208
|
+
}
|
|
2209
|
+
})), B(sr, {
|
|
2210
|
+
...e,
|
|
2211
|
+
logo: w,
|
|
2212
|
+
mainElement: t,
|
|
2213
|
+
startElement: ue,
|
|
2214
|
+
endElement: de
|
|
2215
|
+
});
|
|
2216
|
+
}, [
|
|
2217
|
+
w,
|
|
2218
|
+
Yt,
|
|
2219
|
+
Rt,
|
|
2220
|
+
Bt,
|
|
2221
|
+
k,
|
|
2222
|
+
ue,
|
|
2223
|
+
de
|
|
2224
|
+
]);
|
|
2225
|
+
F(() => {
|
|
2226
|
+
let e = z.current;
|
|
2227
|
+
if (!e) return;
|
|
2228
|
+
let t = (t) => {
|
|
2229
|
+
(t.ctrlKey || t.metaKey || Oe.getWheelOwner(t, e) !== "native") && t.preventDefault();
|
|
2230
|
+
};
|
|
2231
|
+
return e.addEventListener("wheel", t, { passive: !1 }), () => {
|
|
2232
|
+
e.removeEventListener("wheel", t);
|
|
2233
|
+
};
|
|
2234
|
+
}, [Wt]);
|
|
2235
|
+
let [ln, un] = R(null);
|
|
2236
|
+
F(() => {
|
|
2237
|
+
un(Wt?.source?.getCommandScope?.() ?? null);
|
|
2238
|
+
}, [Wt]);
|
|
2239
|
+
let dn = I(() => ({
|
|
2240
|
+
"& .SnackbarContainer-root": { position: "absolute !important" },
|
|
2241
|
+
"& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
|
|
2242
|
+
"& .notistack-Snackbar": { minWidth: "unset" },
|
|
2243
|
+
"& .notistack-Snackbar > .error-snackbar .MuiTypography-root": { color: (e) => e.palette.getContrastText(e.palette.error.main) },
|
|
2244
|
+
"& .notistack-Snackbar > .error-snackbar .MuiCardActions-root": { color: (e) => e.palette.getContrastText(e.palette.error.main) },
|
|
2245
|
+
"& .notistack-Snackbar > .error-snackbar .MuiButtonBase-root": { color: (e) => e.palette.getContrastText(e.palette.error.main) },
|
|
2246
|
+
"& .notistack-MuiContent *": { fontFamily: (e) => e.typography.fontFamily },
|
|
2247
|
+
"& #notistack-snackbar": {
|
|
2248
|
+
maxWidth: "560px",
|
|
2249
|
+
whiteSpace: "pre-wrap"
|
|
2250
|
+
},
|
|
2251
|
+
"*": { userSelect: "none" }
|
|
2252
|
+
}), []), [fn, pn] = R(null), [, mn] = Ie(null, !1);
|
|
2253
|
+
F(() => {
|
|
2254
|
+
mn(fn != null);
|
|
2255
|
+
}, [fn, mn]);
|
|
2256
|
+
let hn = P((e) => b({
|
|
2257
|
+
model: J,
|
|
2258
|
+
side: x,
|
|
2259
|
+
...e,
|
|
2260
|
+
...v
|
|
2261
|
+
}), [
|
|
2262
|
+
J,
|
|
2263
|
+
x,
|
|
2264
|
+
v
|
|
2265
|
+
]), gn = L(r);
|
|
2266
|
+
gn.current = r, Ne(n, () => ({
|
|
2267
|
+
isStudioElement: () => !0,
|
|
2268
|
+
save: (e) => {
|
|
2269
|
+
let t = Q.current;
|
|
2270
|
+
return t ? t(e) : Promise.reject(/* @__PURE__ */ Error("The studio cannot save: no workbook, or the backing store cannot write."));
|
|
2271
|
+
},
|
|
2272
|
+
getWorkbookElement: () => z.current,
|
|
2273
|
+
getWorkbook: () => Zt.current ?? null,
|
|
2274
|
+
isDirty: () => Vt.current?.isDirty() ?? !1,
|
|
2275
|
+
getEditable: () => Z.current,
|
|
2276
|
+
getFormulaBarElement: () => Qe.current ?? null,
|
|
2277
|
+
focus: () => z.current?.focus(),
|
|
2278
|
+
whenReady: () => (W.current ||= Ar(), W.current.promise),
|
|
2279
|
+
getWorkbookState: () => Ut.current,
|
|
2280
|
+
retry: () => Ot((e) => e + 1)
|
|
2281
|
+
}), [], r);
|
|
2282
|
+
let _n = L(!1), vn = O((e, t) => {
|
|
2283
|
+
t === jt.current && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
2284
|
+
t === jt.current && (_n.current = gn.current?.contains(document.activeElement) ?? !0, kt(t), on(e));
|
|
2285
|
+
}));
|
|
2286
|
+
}, []);
|
|
2287
|
+
F(() => {
|
|
2288
|
+
_n.current && (_n.current = !1, z.current?.focus());
|
|
2289
|
+
}, [J]);
|
|
2290
|
+
let yn = P((e) => {
|
|
2291
|
+
let { ref: t, ...n } = e, r = yt ? U.dark : U.light, i = q.status === "error" && g ? B(De, {
|
|
2292
|
+
render: g,
|
|
2293
|
+
props: {
|
|
2294
|
+
..._,
|
|
2295
|
+
style: {
|
|
2296
|
+
width: "100%",
|
|
2297
|
+
height: "100%",
|
|
2298
|
+
..._?.style
|
|
2299
|
+
},
|
|
2300
|
+
error: q.error
|
|
2301
|
+
}
|
|
2302
|
+
}) : null;
|
|
2303
|
+
if (i && !J) return B(ht, {
|
|
2304
|
+
style: {
|
|
2305
|
+
width: "100%",
|
|
2306
|
+
height: "100%",
|
|
2307
|
+
position: "absolute",
|
|
2308
|
+
display: "flex",
|
|
2309
|
+
alignItems: "stretch",
|
|
2310
|
+
justifyContent: "stretch"
|
|
2311
|
+
},
|
|
2312
|
+
children: i
|
|
2313
|
+
});
|
|
2314
|
+
let c = null;
|
|
2315
|
+
if (J) {
|
|
2316
|
+
let e = J, i = e.getView(), a = j ?? i?.isShowFormulaBar(), o = N ?? i?.isShowStatusBar(), s = Wt?.source ?? z.current, l = B(De, {
|
|
2317
|
+
render: qe === void 0 ? cn : qe,
|
|
2318
|
+
props: {
|
|
2319
|
+
workbook: s,
|
|
2320
|
+
...Ke
|
|
2321
|
+
}
|
|
2322
|
+
}), d = tt === "bottom", f = a ? B(De, {
|
|
2323
|
+
render: Ve === void 0 ? ee : Ve,
|
|
2324
|
+
props: {
|
|
2325
|
+
ref: Qe,
|
|
2326
|
+
style: {
|
|
2327
|
+
marginTop: r.spacing(d ? .5 : .25),
|
|
2328
|
+
marginLeft: r.spacing(1),
|
|
2329
|
+
marginRight: r.spacing(1),
|
|
2330
|
+
marginBottom: r.spacing(d ? .5 : .75)
|
|
2331
|
+
},
|
|
2332
|
+
workbook: e,
|
|
2333
|
+
editable: X ?? void 0,
|
|
2334
|
+
placement: tt,
|
|
2335
|
+
...Be,
|
|
2336
|
+
propsNamedCollectionEditor: {
|
|
2337
|
+
restoreFocus: (e) => s?.focus(e),
|
|
2338
|
+
...Be?.propsNamedCollectionEditor
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
}) : null, m = o ? B(De, {
|
|
2342
|
+
render: Ge === void 0 ? y : Ge,
|
|
2343
|
+
props: {
|
|
2344
|
+
childrenEnd: Qt,
|
|
2345
|
+
...We
|
|
2346
|
+
}
|
|
2347
|
+
}) : null, h = (e, r) => B(p, {
|
|
2348
|
+
...A,
|
|
2349
|
+
tabIndex: 0,
|
|
2350
|
+
autoFocus: !r && ke,
|
|
2351
|
+
workbook: e,
|
|
2352
|
+
editable: r ? void 0 : X ?? void 0,
|
|
2353
|
+
focusNameBox: r ? void 0 : et,
|
|
2354
|
+
prefetch: !r && u,
|
|
2355
|
+
ref: r ? Ze : S([t, z]),
|
|
2356
|
+
onWorkbookLoad: r ? (t) => vn(t, e) : on,
|
|
2357
|
+
onKeyDown: (e) => {
|
|
2358
|
+
te?.(e);
|
|
2359
|
+
},
|
|
2360
|
+
propsWorkbookLoading: Fe,
|
|
2361
|
+
renderWorkbookLoading: null,
|
|
2362
|
+
style: r ? {
|
|
2363
|
+
...A?.style,
|
|
2364
|
+
position: "absolute",
|
|
2365
|
+
inset: 0,
|
|
2366
|
+
visibility: "hidden"
|
|
2367
|
+
} : {
|
|
2368
|
+
flex: "1 1 100%",
|
|
2369
|
+
minHeight: 0,
|
|
2370
|
+
...A?.style
|
|
2371
|
+
},
|
|
2372
|
+
onContextMenu: (e) => e.preventDefault(),
|
|
2373
|
+
...r ? null : n
|
|
2374
|
+
}, e.getId());
|
|
2375
|
+
c = B("div", {
|
|
2376
|
+
style: {
|
|
2377
|
+
display: "flex",
|
|
2378
|
+
flexDirection: "column",
|
|
2379
|
+
flex: "1 1 100%",
|
|
2380
|
+
minWidth: 0,
|
|
2381
|
+
minHeight: 0,
|
|
2382
|
+
...le({
|
|
2383
|
+
window: r.palette.background.default,
|
|
2384
|
+
windowText: r.palette.text.primary
|
|
2385
|
+
})
|
|
2386
|
+
},
|
|
2387
|
+
children: Or(tt, {
|
|
2388
|
+
toolbar: l,
|
|
2389
|
+
formulaBar: f,
|
|
2390
|
+
statusBar: m,
|
|
2391
|
+
main: B(Er, {
|
|
2392
|
+
taskSide: x,
|
|
2393
|
+
persistKey: Mr,
|
|
2394
|
+
sidebarElement: fn ? B(be.CommandScopeProvider, {
|
|
2395
|
+
scope: ln,
|
|
2396
|
+
children: fn
|
|
2397
|
+
}) : void 0,
|
|
2398
|
+
mainElement: V("div", {
|
|
2399
|
+
style: {
|
|
2400
|
+
position: "relative",
|
|
2401
|
+
display: "flex",
|
|
2402
|
+
flexDirection: "column",
|
|
2403
|
+
flex: "1 1 100%",
|
|
2404
|
+
minWidth: 0,
|
|
2405
|
+
minHeight: 0
|
|
2406
|
+
},
|
|
2407
|
+
children: [[h(J, !1), At ? h(At, !0) : null], B(H, {
|
|
2408
|
+
ref: tn,
|
|
2409
|
+
sx: {
|
|
2410
|
+
position: "absolute",
|
|
2411
|
+
top: "10%",
|
|
2412
|
+
left: 0,
|
|
2413
|
+
right: 0,
|
|
2414
|
+
bottom: 0,
|
|
2415
|
+
pointerEvents: "none",
|
|
2416
|
+
"& > :first-of-type": { position: "relative" }
|
|
2417
|
+
}
|
|
2418
|
+
})]
|
|
2419
|
+
})
|
|
2420
|
+
})
|
|
2421
|
+
})
|
|
2422
|
+
});
|
|
2423
|
+
}
|
|
2424
|
+
let l = !Wt && Pe ? B(De, {
|
|
2425
|
+
render: Pe,
|
|
2426
|
+
props: { ...Fe }
|
|
2427
|
+
}) : null;
|
|
2428
|
+
return V(ht, {
|
|
2429
|
+
sx: dn,
|
|
2430
|
+
style: {
|
|
2431
|
+
width: "100%",
|
|
2432
|
+
height: it ? `calc(100% - ${it}px)` : "100%",
|
|
2433
|
+
transform: at ? `translateY(${at}px)` : void 0,
|
|
2434
|
+
overscrollBehavior: nt ? "none" : void 0,
|
|
2435
|
+
position: "absolute",
|
|
2436
|
+
display: "flex",
|
|
2437
|
+
alignItems: "stretch",
|
|
2438
|
+
justifyContent: "stretch",
|
|
2439
|
+
backgroundColor: "var(--sxl-color-base-200)"
|
|
2440
|
+
},
|
|
2441
|
+
className: "eager-studio",
|
|
2442
|
+
square: a,
|
|
2443
|
+
elevation: o,
|
|
2444
|
+
variant: s,
|
|
2445
|
+
children: [
|
|
2446
|
+
c,
|
|
2447
|
+
i ? B(ht, {
|
|
2448
|
+
style: {
|
|
2449
|
+
position: "absolute",
|
|
2450
|
+
inset: 0,
|
|
2451
|
+
display: "flex",
|
|
2452
|
+
alignItems: "stretch",
|
|
2453
|
+
justifyContent: "stretch"
|
|
2454
|
+
},
|
|
2455
|
+
children: i
|
|
2456
|
+
}) : null,
|
|
2457
|
+
l ? B("div", {
|
|
2458
|
+
style: {
|
|
2459
|
+
position: "absolute",
|
|
2460
|
+
inset: 0,
|
|
2461
|
+
display: "flex",
|
|
2462
|
+
alignItems: "center",
|
|
2463
|
+
justifyContent: "center",
|
|
2464
|
+
background: `var(--sxl-color-base-100, ${yt ? "#121212" : "#fff"})`
|
|
2465
|
+
},
|
|
2466
|
+
children: l
|
|
2467
|
+
}) : null
|
|
2468
|
+
]
|
|
2469
|
+
});
|
|
2470
|
+
}, [
|
|
2471
|
+
q,
|
|
2472
|
+
J,
|
|
2473
|
+
At,
|
|
2474
|
+
Wt,
|
|
2475
|
+
Yt,
|
|
2476
|
+
Pe,
|
|
2477
|
+
Fe,
|
|
2478
|
+
A,
|
|
2479
|
+
a,
|
|
2480
|
+
o,
|
|
2481
|
+
s,
|
|
2482
|
+
Qt,
|
|
2483
|
+
g,
|
|
2484
|
+
_,
|
|
2485
|
+
cn,
|
|
2486
|
+
dn,
|
|
2487
|
+
fn,
|
|
2488
|
+
x,
|
|
2489
|
+
ln,
|
|
2490
|
+
j,
|
|
2491
|
+
Be,
|
|
2492
|
+
Ve,
|
|
2493
|
+
tt,
|
|
2494
|
+
X,
|
|
2495
|
+
N,
|
|
2496
|
+
We,
|
|
2497
|
+
Ge,
|
|
2498
|
+
Ke,
|
|
2499
|
+
qe,
|
|
2500
|
+
nt,
|
|
2501
|
+
it,
|
|
2502
|
+
at,
|
|
2503
|
+
U,
|
|
2504
|
+
yt
|
|
2505
|
+
]), bn = B(rr, {
|
|
2506
|
+
maxSnack: 3,
|
|
2507
|
+
domRoot: $t ?? void 0,
|
|
2508
|
+
anchorOrigin: {
|
|
2509
|
+
vertical: "bottom",
|
|
2510
|
+
horizontal: "right"
|
|
2511
|
+
},
|
|
2512
|
+
autoHideDuration: 3500,
|
|
2513
|
+
onClose: (e, t, n) => {
|
|
2514
|
+
z.current?.focus();
|
|
2515
|
+
},
|
|
2516
|
+
Components: { error: ar },
|
|
2517
|
+
iconVariant: {
|
|
2518
|
+
success: B(gt, {
|
|
2519
|
+
style: { marginRight: "8px" },
|
|
2520
|
+
children: B("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" })
|
|
2521
|
+
}),
|
|
2522
|
+
error: B(Se, {
|
|
2523
|
+
iconKey: "ErrorAlert",
|
|
2524
|
+
style: { marginRight: "8px" }
|
|
2525
|
+
})
|
|
2526
|
+
},
|
|
2527
|
+
children: B(oe, {
|
|
2528
|
+
workbook: J,
|
|
2529
|
+
children: B(ie, {
|
|
2530
|
+
renderArea: hn,
|
|
2531
|
+
onUpdateArea: (e) => {
|
|
2532
|
+
pn(e);
|
|
2533
|
+
},
|
|
2534
|
+
children: B(Xe, { children: B(vr, { children: B(Ae, { children: B(we, { children: B(hr, {
|
|
2535
|
+
workbook: J,
|
|
2536
|
+
initialCommandAnchor: an,
|
|
2537
|
+
renderWorkbook: yn,
|
|
2538
|
+
setWorkbook: Nt,
|
|
2539
|
+
titleWorkbook: Yt,
|
|
2540
|
+
setWorkbookTitle: Jt,
|
|
2541
|
+
refDocumentTitle: sn,
|
|
2542
|
+
isDirty: Ht,
|
|
2543
|
+
refSave: Q,
|
|
2544
|
+
host: r
|
|
2545
|
+
}) }) }) }) })
|
|
2546
|
+
})
|
|
2547
|
+
})
|
|
2548
|
+
});
|
|
2549
|
+
return bn = V(vt, {
|
|
2550
|
+
theme: yt ? U.dark : U.light,
|
|
2551
|
+
children: [
|
|
2552
|
+
Te ? B(ft, {}) : null,
|
|
2553
|
+
B("style", { children: bt }),
|
|
2554
|
+
B("style", { children: xt }),
|
|
2555
|
+
B(Ye, {
|
|
2556
|
+
themeScopeClass: i,
|
|
2557
|
+
themeSurface: "app",
|
|
2558
|
+
themeMode: dt,
|
|
2559
|
+
children: bn
|
|
2560
|
+
})
|
|
2561
|
+
]
|
|
2562
|
+
}), bn;
|
|
2563
|
+
}));
|
|
2564
|
+
Nr.displayName = "EagerStudio";
|
|
2565
|
+
var Pr = (e) => B(Sr, { ...e });
|
|
2566
|
+
export { Nr as EagerStudio, Nr as default };
|