@sheetxl/studio-mui 0.8.0-beta.23 → 0.8.0-beta.25
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/{DEILBkTYM5GuSYLP.mjs → 5bkyBAxCvP8hvBRt.mjs} +2 -2
- package/browser/esm/{Ce5ZiG5RMMewOh20.mjs → A_TAgKe2OX4fuvMa.mjs} +4 -4
- package/browser/esm/{ClXxtB98U76iDrtj.mjs → B1cQ-aC-kTFIGCrp.mjs} +2 -2
- package/browser/esm/{DSuMuoNFUjJsd15-.mjs → B1fAvLLYv4Xa1n6v.mjs} +1 -1
- package/browser/esm/{DmfuCdn6QW__7sVr.mjs → B3R6AAPIicHsNj-c.mjs} +3 -3
- package/browser/esm/{B8DK-EICUzzkKHOT.mjs → B8zvQQdl4o8Uppic.mjs} +4 -4
- package/browser/esm/{Dv4ndHScQEENL6DA.mjs → BCCSjiGdkbFJd5LQ.mjs} +8 -8
- package/browser/esm/{JjoDQ7kBaTdBLqA4.mjs → BRMQ4xeNb77opm-1.mjs} +1 -1
- package/browser/esm/{DLuMMUERB4N5Zf-n.mjs → BUbKaovlC3EBQiS_.mjs} +4 -4
- package/browser/esm/{DFdgG6xUa0_mmiSp.mjs → Bj4S_n8JXAuBXM9T.mjs} +1 -1
- package/browser/esm/{CPGiQiXu-u6r11fr.mjs → Bo9cQ9KhePNEkhJk.mjs} +2 -2
- package/browser/esm/{CWZoE2dDxX-8yQql.mjs → BpGM26PLFrWZ_yHf.mjs} +2 -2
- package/browser/esm/{pfN8xe0LCSTqzF_2.mjs → BqMkdoI5jvnYwis3.mjs} +2 -2
- package/browser/esm/{DNVpxaUopxkKOZaG.mjs → C-KgnW4jDiThooxs.mjs} +2 -2
- package/browser/esm/{S3LY_kWRu6v1Ft40.mjs → C0LSp-aUistI_RSL.mjs} +2 -2
- package/browser/esm/{OAvkBxphUfqrOn_K.mjs → C2QqCQm3uNfAJ6i9.mjs} +1 -1
- package/browser/esm/{B5ykigtm3LE3-S9e.mjs → CH_wXXHBGVO21Rde.mjs} +2 -2
- package/browser/esm/{TFJUQcKsawCh4esx.mjs → CK77CNQNVSY-UxHc.mjs} +4 -4
- package/browser/esm/{B19n0bcO5bMPruGk.mjs → CLHw2dQd-BIxDtJE.mjs} +1 -1
- package/browser/esm/{D7ogY8ykfJGZ35jY.mjs → CN_3D_iTUy-7UcTY.mjs} +1 -1
- package/browser/esm/{D2S83AjNN8JCl2EL.mjs → COqfTuI1CD6ni3Ud.mjs} +2 -2
- package/browser/esm/{DEsDS0RX4DnyT_jk.mjs → CWIE8DEgFUVYFIpA.mjs} +4 -4
- package/browser/esm/{C5q3B-KjPRLy3Ihp.mjs → C_JfIF3rq2upsn1R.mjs} +2 -2
- package/browser/esm/{Db-NbGskcpMZZHKM.mjs → CkO9167CAPEWgeVt.mjs} +1 -1
- package/browser/esm/{C7cXbOyJfTmYUd18.mjs → Cljz7bTqnEFO74h6.mjs} +684 -683
- package/browser/esm/{Bw6mxAfCx4FULeUB.mjs → CryUpdLS2Ugsz_Ig.mjs} +1 -1
- package/browser/esm/{CI8k7kDBS1QVZn5S.mjs → CueoG2nbqNyOi-h4.mjs} +2 -2
- package/browser/esm/{xdqV7p4ssraS4FHb.mjs → CzQoGoZOnRMSR_RY.mjs} +4 -4
- package/browser/esm/{61qlLY6EQNjbQMDi.mjs → CzRhY-X1xk9pictL.mjs} +2 -2
- package/browser/esm/{BbABKdPYxk4IMSLc.mjs → D2j8f0Fu9qG7L-u6.mjs} +1 -1
- package/browser/esm/{Bcwt4-GEbF3sfJ8P.mjs → D31yxxTLAvWnl_6a.mjs} +2 -2
- package/browser/esm/{CaHNU1h47mUesQQN.mjs → D5fHPB35yb1MkBJn.mjs} +2 -2
- package/browser/esm/{ea57m6-nIYUKFyzf.mjs → D6rpTzaXcDI5dtcT.mjs} +8 -8
- package/browser/esm/{C66BP2x5G9VxianJ.mjs → DEBcIG3Kler9VUXZ.mjs} +1 -1
- package/browser/esm/{CUY_oauSAZX4Z-d-.mjs → DIbfqL2fimGtUgNG.mjs} +5 -5
- package/browser/esm/{9W8UMvVpOm879O9Q.mjs → DJMvEfiS6SDWPLtl.mjs} +1 -1
- package/browser/esm/{DZ72x5v3_f0dhXS5.mjs → DL1DUaxvbhxRDW9C.mjs} +2 -2
- package/browser/esm/{BZl2Zo1B5LmU6ND7.mjs → DOIPRwq08jIYE0wH.mjs} +3 -3
- package/browser/esm/{DuzrJpmUyTTXroFX.mjs → DR08Lb6lKvuO-kK7.mjs} +5 -5
- package/browser/esm/{DGaYmKVqluJZ8ZD8.mjs → DSI2fnBiCb8lTk6E.mjs} +2 -2
- package/browser/esm/{BpYJD74w23YliQn6.mjs → DUoSsuV4GqRXGGNo.mjs} +5 -5
- package/browser/esm/{BtR1nedinfNR24qm.mjs → DY5QdSHE8hkEt0Ou.mjs} +1 -1
- package/browser/esm/{Bwc48kjFvd98HI3-.mjs → D_Z0qdyjWXYTjeqz.mjs} +20 -20
- package/browser/esm/{3vdsx6Z062TFVqqm.mjs → Ddf1z5_p5ELccZ7i.mjs} +1 -1
- package/browser/esm/{BkGHlu2z__idmVOV.mjs → Dj90vNf4c5FUNe_v.mjs} +4 -4
- package/browser/esm/{CuCtXVvc9N3sUzWz.mjs → DoJJHMC8IkNwzK-i.mjs} +6 -6
- package/browser/esm/{B1cZfl1su2i_IUuO.mjs → DxqFUDj1yyB6FEUQ.mjs} +1 -1
- package/browser/esm/{CrKqA0lliI3x_pFG.mjs → DygvUSGGk0pHHo0b.mjs} +1 -1
- package/browser/esm/{BhkaQtl8eWTBqQSV.mjs → EBqYEw3Klx0M4x_J.mjs} +1 -1
- package/browser/esm/{B1WCXTGT4QyfuXEG.mjs → RyyEI_oZN8xFcoQ3.mjs} +3 -3
- package/browser/esm/{B0GhKutuGufS8cTX.mjs → TPpBxWP6Ap6lD2_T.mjs} +2 -2
- package/browser/esm/{CwKA4g_ulbxqKWN6.mjs → UOg0AXys8mpciaEB.mjs} +3 -3
- package/browser/esm/{Bi91aW5tILFwRzDH.mjs → YY30sw8lszbgoJGu.mjs} +1 -1
- package/browser/esm/{vcqr-88ypSy0Jx2Q.mjs → cvEDG_d_5doDWQcv.mjs} +4 -4
- package/browser/esm/{CmYZ6sd6YCXvcNFo.mjs → fbvRSygnF3mXp9VF.mjs} +3 -3
- package/browser/esm/{CT8RqHXjAPVLs2bn.mjs → hT5p2eM8bnvKL5nb.mjs} +2 -2
- package/browser/esm/index.mjs +21 -19
- package/browser/esm/{NTmBvTnoLPfgA2Cj.mjs → lxw3vGZyMOFlmm-J.mjs} +1 -1
- package/browser/esm/{DnSTmOtiviJE47Im.mjs → mN6pyuqXps_J_Iwb.mjs} +5 -5
- package/browser/esm/{BTw0PMEQ23eq2l3z.mjs → r8SlEWi0Y-H4n8PV.mjs} +2 -2
- package/licenses/dependencies.txt +33 -33
- package/node/esm/{DScYIiZenzzEpqNX.mjs → 18bo8BO9MJ-Mw_d4.mjs} +2 -2
- package/node/esm/{BS33GA7F0bkFfwXo.mjs → 6ZHpFK2-VIS4vny-.mjs} +2 -2
- package/node/esm/{C5G29l25qVLu5OZj.mjs → 8-2AaKb8ISDlohzH.mjs} +2 -2
- package/node/esm/{5Sg-hTry8N_ADjwz.mjs → B8YAUfGTtlnRHi2M.mjs} +2 -2
- package/node/esm/{BcWKuDVZKC_PVYtg.mjs → B9Ss0oErD_Jpepry.mjs} +1 -1
- package/node/esm/{BBcWEgWdtRmfiFgw.mjs → BAM8u82s5JnK7JfF.mjs} +1 -1
- package/node/esm/{COrRcQDAFnkRj95H.mjs → BGtJ5ozY8WOtf44N.mjs} +1 -1
- package/node/esm/{BcZDO-Mj9HsII_hy.mjs → BIG-ptRvPGxglh_x.mjs} +1 -1
- package/node/esm/{DdX-VVGAfrU2a52x.mjs → BL9qi-st6Jzmdr3l.mjs} +1 -1
- package/node/esm/{BT0yXqLFKoPiS71A.mjs → BSNznySJWtGvOtsu.mjs} +1 -1
- package/node/esm/{DXGG2ZQw5gsEiizJ.mjs → BTstsPHad-gz20kY.mjs} +1 -1
- package/node/esm/{Db70KVKsFGdRlKEx.mjs → B_wvium-e6TCGIDs.mjs} +1 -1
- package/node/esm/{BJYaCliDBm8LmZWp.mjs → BgQGprc6dXTM_z0v.mjs} +2 -2
- package/node/esm/{Bz_1k_dxr4BRsQv3.mjs → Bj2HxLO7JvQJrhMU.mjs} +1 -1
- package/node/esm/{eOKsk3UBMDeeE2K8.mjs → Bwh5vs3tiUEIHsgi.mjs} +2 -2
- package/node/esm/{Bq7H9YN6TQEPFxf9.mjs → C1BXcyHiQJ2h8FMQ.mjs} +2 -2
- package/node/esm/{j5sUOLJOXDDfgzyV.mjs → C9vpePuGtOy9NPEo.mjs} +1 -1
- package/node/esm/{HTk99NQ6xaWtPNfO.mjs → CHtcaCt89IhdaS8X.mjs} +1 -1
- package/node/esm/{BtYfA9MPu_ajX7Y9.mjs → CV7eSXwWO8_KJMez.mjs} +4 -4
- package/node/esm/{C2-KRircvBQzs5Ba.mjs → CVx3WGhDMXzoxwOc.mjs} +1 -1
- package/node/esm/{CspVpQ8x2lBzmEJr.mjs → Ce3DEGYJQGBtyCGf.mjs} +4 -4
- package/node/esm/{orrZaoah66_1GRIf.mjs → CjMPhdZM35dO7x25.mjs} +265 -264
- package/node/esm/{D0f2t3XyaDfFTC08.mjs → CrhQVs12xPYop-0N.mjs} +1 -1
- package/node/esm/{COXiXFKdsF49hE5l.mjs → DAo5TTNUTEsrE1DR.mjs} +2 -2
- package/node/esm/{BvdZuwQByiJVQOvh.mjs → DB0ey_u5taO1vTil.mjs} +4 -4
- package/node/esm/{BQvZ_uVsIOZSfXFf.mjs → DG-j0R1kWTl7k09_.mjs} +2 -2
- package/node/esm/{CRJi4wTYJJJq2kEV.mjs → DQ-NlfgeithMMFil.mjs} +2 -2
- package/node/esm/{d7nC9HA-O7Jg57HD.mjs → DgvrBdBQr_yfq8kU.mjs} +2 -2
- package/node/esm/{BjRqhIL_i20fCqwt.mjs → DmD4bNk-B1ukyRqm.mjs} +1 -1
- package/node/esm/{wy1h9E1aAC6zMYna.mjs → Dn0QPKUFPSxIaCbM.mjs} +2 -2
- package/node/esm/{BZjXyuhD5XzRKyKi.mjs → DsUFnSGuKYPnyZzA.mjs} +2 -2
- package/node/esm/{tUUYzU1yWSNE4COh.mjs → Dto7zWxnDTBEwOWV.mjs} +1 -1
- package/node/esm/{C5XI_nNcwDiNGqNp.mjs → DxzrjP_Nczwj2NaD.mjs} +1 -1
- package/node/esm/{DG5EIoSdFG3FutGu.mjs → EtZJoRlHr4fXhR6A.mjs} +1 -1
- package/node/esm/{DT6duO2Kls0dywMs.mjs → Xl67EnlWC7zoBIhM.mjs} +2 -2
- package/node/esm/{cFgQxgzJMvn3jgnS.mjs → ZrriOJCzPoJL2MLs.mjs} +1 -1
- package/node/esm/{CfvgBqV3sMafVSQM.mjs → iMlSA1x7BAw2mz7b.mjs} +1 -1
- package/node/esm/index.mjs +543 -540
- package/node/esm/{lHvI11zfRX3BV9uN.mjs → x76F3LK_C6OLwDc9.mjs} +2 -2
- package/node/esm/{DgHlwwldxPMVUdYv.mjs → yvFeggWgnxoK9S79.mjs} +2 -2
- package/package.json +9 -9
- package/types/src/studio/StudioProps.d.ts +10 -2
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.25
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { B as e, E as t, F as n, H as r, J as i, N as a, P as o, St as s, T as c, V as l, _t as u, at as d, d as f, g as p, ht as m, i as h, it as g, jt as _, r as
|
|
8
|
-
import { t as
|
|
9
|
-
import { n as
|
|
10
|
-
import { n as
|
|
11
|
-
import { InputField as
|
|
12
|
-
import { CommandRootProvider as
|
|
13
|
-
import { Command as
|
|
14
|
-
import
|
|
15
|
-
import { AnimatedLoadingPanel as
|
|
16
|
-
import { Fragment as
|
|
17
|
-
import { Box as
|
|
18
|
-
import { CommonUtils as
|
|
19
|
-
import { createPortal as
|
|
20
|
-
var
|
|
7
|
+
import { B as e, E as t, F as n, H as r, J as i, N as a, P as o, St as s, T as c, V as l, _t as u, at as d, d as f, g as p, ht as m, i as h, it as g, jt as _, r as ee, st as v, t as y, x as te } from "./D_Z0qdyjWXYTjeqz.mjs";
|
|
8
|
+
import { t as b } from "./C2QqCQm3uNfAJ6i9.mjs";
|
|
9
|
+
import { n as x, t as ne } from "./DEBcIG3Kler9VUXZ.mjs";
|
|
10
|
+
import { n as re } from "./UOg0AXys8mpciaEB.mjs";
|
|
11
|
+
import { InputField as ie } from "./index.mjs";
|
|
12
|
+
import { CommandRootProvider as S, DefaultTaskPaneRegistry as C, LogoNoPaddingIcon as ae, PivotTablePane as oe, SHAPE_ICON_PACK as se, TaskPaneArea as ce, TaskPaneKey as w, TaskPaneProvider as le, ThemeRootStyles as ue, ThemeStateDefaults as de, ThemeStateKey as fe, WorkbookIO as T, WorkbookProvider as pe, createEditable as me, registerMovablePane as he, useDocThemes as ge, useModelSync as _e, useReferenceModeStore as ve, useResolvedWorkbook as ye, useTaskPaneArea as be, useWorkbookEncrypted as xe, useWorkbookName as Se, useWorkbookSaveState as Ce } from "@sheetxl/react";
|
|
13
|
+
import { Command as we, DefaultCommandButtonRegistry as Te, DefaultIconService as Ee, DynamicIcon as De, LanguageStateKey as Oe, NotifierType as ke, ReactErrorBoundary as Ae, ReactNotifierProvider as E, ReactUtils as je, RenderSlot as Me, ScrollUtils as Ne, SplitPane as Pe, ThemeStyle as Fe, UncaughtErrorBoundary as Ie, createBusyHandle as Le, useCallbackRef as D, useFullscreen as Re, useImperativeElement as ze, useKeyboardResize as Be, useLanguage as Ve, useMeasure as He, useNotifier as Ue, usePersistentState as We, useResolvedThemeMode as Ge, useTranslator as Ke } from "@sheetxl/utils-react";
|
|
14
|
+
import O, { Component as qe, Fragment as Je, cloneElement as Ye, createElement as Xe, forwardRef as k, isValidElement as Ze, memo as A, useCallback as j, useContext as Qe, useEffect as M, useLayoutEffect as $e, useMemo as N, useRef as P, useState as F } from "react";
|
|
15
|
+
import { AnimatedLoadingPanel as et, AnimatedTraversingEllipsisIcon as tt, CommandGroup as nt, ExhibitDivider as rt, ExhibitFloatProvider as it, ExhibitMenuItem as at, ExhibitTooltip as ot, ModalProvider as st, SelectedIcon as ct, SimpleTooltip as lt, StackTrace as ut, createExhibitTheme as dt, hideLoadingPanel as ft, lazyModal as pt, lazyPanel as mt, showLoadingPanel as ht, useInputDialog as I, useLazyWindow as gt, useModal as _t, useOptionsDialog as vt } from "@sheetxl/utils-mui";
|
|
16
|
+
import { Fragment as yt, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
17
|
+
import { Box as z, Card as bt, CardActions as xt, Collapse as St, CssBaseline as Ct, DialogTitle as B, IconButton as V, Paper as wt, SvgIcon as Tt, Tab as H, Tabs as U, ThemeProvider as Et, Typography as W, alpha as Dt, useMediaQuery as Ot, useTheme as kt } from "@mui/material";
|
|
18
|
+
import { CommonUtils as At, DOMUtils as jt, DefaultLanguagePackService as Mt, ErrorUtils as Nt, ExpectedError as Pt, PartialError as Ft, defineLazyModule as G, formatMessage as It, messageKey as K, t as q } from "@sheetxl/utils";
|
|
19
|
+
import { createPortal as Lt } from "react-dom";
|
|
20
|
+
var Rt = Object.defineProperty, zt = (e, t) => {
|
|
21
21
|
let n = {};
|
|
22
|
-
for (var r in e)
|
|
22
|
+
for (var r in e) Rt(n, r, {
|
|
23
23
|
get: e[r],
|
|
24
24
|
enumerable: !0
|
|
25
25
|
});
|
|
26
|
-
return t ||
|
|
27
|
-
},
|
|
26
|
+
return t || Rt(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
27
|
+
}, Bt = mt(G("studio:conditionalFormatDetailsTaskPane", () => import("./D6rpTzaXcDI5dtcT.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), Vt = ["lines"], Ht = /^[A-Za-z_\\][\w.\\]*$/, Ut = /^\$?[A-Za-z]{1,3}\$?\d+$/, Wt = (e) => {
|
|
28
28
|
let t = e?.getReferences() ?? null;
|
|
29
29
|
if (!e || !t || t.getCount() !== 1) return null;
|
|
30
30
|
let n = e.getExpression().trim();
|
|
31
|
-
return
|
|
31
|
+
return Ht.test(n) && !Ut.test(n) ? n : t;
|
|
32
32
|
};
|
|
33
|
-
function
|
|
33
|
+
function Gt(e) {
|
|
34
34
|
var t, n, r = "";
|
|
35
35
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
36
36
|
else if (typeof e == "object") {
|
|
37
|
-
if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n =
|
|
37
|
+
if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = Gt(e[t])) && (r && (r += " "), r += n);
|
|
38
38
|
else for (t in e) e[t] && (r && (r += " "), r += t);
|
|
39
39
|
}
|
|
40
40
|
return r;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
for (var e, t, n = 0, r = ""; n < arguments.length;) (e = arguments[n++]) && (t =
|
|
42
|
+
function Kt() {
|
|
43
|
+
for (var e, t, n = 0, r = ""; n < arguments.length;) (e = arguments[n++]) && (t = Gt(e)) && (r && (r += " "), r += t);
|
|
44
44
|
return r;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
46
|
+
var qt = { data: "" }, Jt = (e) => {
|
|
47
47
|
if (typeof window == "object") {
|
|
48
48
|
let t = (e ? e.querySelector("#_goober") : window._goober) || Object.assign(document.createElement("style"), {
|
|
49
49
|
innerHTML: " ",
|
|
@@ -51,100 +51,100 @@ var Gt = { data: "" }, Kt = (e) => {
|
|
|
51
51
|
});
|
|
52
52
|
return t.nonce = window.__nonce__, t.parentNode || (e || document.head).appendChild(t), t.firstChild;
|
|
53
53
|
}
|
|
54
|
-
return e ||
|
|
55
|
-
},
|
|
54
|
+
return e || qt;
|
|
55
|
+
}, Yt = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Xt = /\/\*[^]*?\*\/| +/g, Zt = /\n+/g, J = (e, t) => {
|
|
56
56
|
let n = "", r = "", i = "";
|
|
57
57
|
for (let a in e) {
|
|
58
58
|
let o = e[a];
|
|
59
|
-
a[0] == "@" ? a[1] == "i" ? n = a + " " + o + ";" : r += a[1] == "f" ?
|
|
59
|
+
a[0] == "@" ? a[1] == "i" ? n = a + " " + o + ";" : r += a[1] == "f" ? J(o, a) : a + "{" + J(o, a[1] == "k" ? "" : t) + "}" : typeof o == "object" ? r += J(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 += J.p ? J.p(a, o) : a + ":" + o + ";");
|
|
60
60
|
}
|
|
61
61
|
return n + (t && i ? t + "{" + i + "}" : i) + r;
|
|
62
|
-
},
|
|
62
|
+
}, Y = {}, Qt = (e) => {
|
|
63
63
|
if (typeof e == "object") {
|
|
64
64
|
let t = "";
|
|
65
|
-
for (let n in e) t += n +
|
|
65
|
+
for (let n in e) t += n + Qt(e[n]);
|
|
66
66
|
return t;
|
|
67
67
|
}
|
|
68
68
|
return e;
|
|
69
|
-
},
|
|
70
|
-
let a =
|
|
69
|
+
}, $t = (e, t, n, r, i) => {
|
|
70
|
+
let a = Qt(e), o = Y[a] || (Y[a] = ((e) => {
|
|
71
71
|
let t = 0, n = 11;
|
|
72
72
|
for (; t < e.length;) n = 101 * n + e.charCodeAt(t++) >>> 0;
|
|
73
73
|
return "go" + n;
|
|
74
74
|
})(a));
|
|
75
|
-
if (!
|
|
75
|
+
if (!Y[o]) {
|
|
76
76
|
let t = a === e ? ((e) => {
|
|
77
77
|
let t, n, r = [{}];
|
|
78
|
-
for (; t =
|
|
78
|
+
for (; t = Yt.exec(e.replace(Xt, ""));) t[4] ? r.shift() : t[3] ? (n = t[3].replace(Zt, " ").trim(), r.unshift(r[0][n] = r[0][n] || {})) : r[0][t[1]] = t[2].replace(Zt, " ").trim();
|
|
79
79
|
return r[0];
|
|
80
80
|
})(e) : e;
|
|
81
|
-
|
|
81
|
+
Y[o] = J(i ? { ["@keyframes " + o]: t } : t, n ? "" : "." + o);
|
|
82
82
|
}
|
|
83
|
-
let s = n &&
|
|
84
|
-
return n && (
|
|
83
|
+
let s = n && Y.g;
|
|
84
|
+
return n && (Y.g = Y[o]), ((e, t, n, r) => {
|
|
85
85
|
r ? t.data = t.data.replace(r, e) : t.data.indexOf(e) === -1 && (t.data = n ? e + t.data : t.data + e);
|
|
86
|
-
})(
|
|
86
|
+
})(Y[o], t, r, s), o;
|
|
87
87
|
};
|
|
88
|
-
function
|
|
88
|
+
function en(e) {
|
|
89
89
|
let t = this || {}, n = e.call ? e(t.p) : e;
|
|
90
|
-
return
|
|
90
|
+
return $t(n.unshift ? n.raw ? ((e, t, n) => e.reduce((e, r, i) => {
|
|
91
91
|
let a = t[i];
|
|
92
92
|
if (a && a.call) {
|
|
93
93
|
let e = a(n), t = e && e.props && e.props.className || /^go/.test(e) && e;
|
|
94
|
-
a = t ? "." + t : e && typeof e == "object" ? e.props ? "" :
|
|
94
|
+
a = t ? "." + t : e && typeof e == "object" ? e.props ? "" : J(e, "") : !1 === e ? "" : e;
|
|
95
95
|
}
|
|
96
96
|
return e + r + (a ?? "");
|
|
97
|
-
}, ""))(n, [].slice.call(arguments, 1), t.p) : n.reduce((e, n) => Object.assign(e, n && n.call ? n(t.p) : n), {}) : n,
|
|
97
|
+
}, ""))(n, [].slice.call(arguments, 1), t.p) : n.reduce((e, n) => Object.assign(e, n && n.call ? n(t.p) : n), {}) : n, Jt(t.target), t.g, t.o, t.k);
|
|
98
98
|
}
|
|
99
|
-
|
|
100
|
-
function
|
|
99
|
+
en.bind({ g: 1 }), en.bind({ k: 1 });
|
|
100
|
+
function tn(e, t) {
|
|
101
101
|
for (var n = 0; n < t.length; n++) {
|
|
102
102
|
var r = t[n];
|
|
103
103
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
return t &&
|
|
106
|
+
function nn(e, t, n) {
|
|
107
|
+
return t && tn(e.prototype, t), n && tn(e, n), e;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
109
|
+
function X() {
|
|
110
|
+
return X = Object.assign || function(e) {
|
|
111
111
|
for (var t = 1; t < arguments.length; t++) {
|
|
112
112
|
var n = arguments[t];
|
|
113
113
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
114
114
|
}
|
|
115
115
|
return e;
|
|
116
|
-
},
|
|
116
|
+
}, X.apply(this, arguments);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function rn(e, t) {
|
|
119
119
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function an(e, t) {
|
|
122
122
|
if (e == null) return {};
|
|
123
123
|
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]);
|
|
124
124
|
return r;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function on(e) {
|
|
127
127
|
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
128
128
|
return e;
|
|
129
129
|
}
|
|
130
|
-
var
|
|
130
|
+
var sn = function() {
|
|
131
131
|
return "";
|
|
132
|
-
},
|
|
133
|
-
enqueueSnackbar:
|
|
134
|
-
closeSnackbar:
|
|
135
|
-
}),
|
|
132
|
+
}, cn = O.createContext({
|
|
133
|
+
enqueueSnackbar: sn,
|
|
134
|
+
closeSnackbar: sn
|
|
135
|
+
}), ln = "@media (max-width:599.95px)", Z = "@media (min-width:600px)", un = function(e) {
|
|
136
136
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
137
|
-
}, un = function(e) {
|
|
138
|
-
return "" + ln(e.vertical) + ln(e.horizontal);
|
|
139
137
|
}, dn = function(e) {
|
|
138
|
+
return "" + un(e.vertical) + un(e.horizontal);
|
|
139
|
+
}, fn = function(e) {
|
|
140
140
|
return !!e || e === 0;
|
|
141
|
-
},
|
|
141
|
+
}, pn = "unmounted", Q = "exited", mn = "entering", hn = "entered", gn = "exiting", _n = function(e) {
|
|
142
142
|
function t(t) {
|
|
143
143
|
var n, r = e.call(this, t) || this, i = t.appear;
|
|
144
|
-
return r.appearStatus = null, t.in ? i ? (n =
|
|
144
|
+
return r.appearStatus = null, t.in ? i ? (n = Q, r.appearStatus = mn) : n = hn : n = t.unmountOnExit || t.mountOnEnter ? pn : Q, r.state = { status: n }, r.nextCallback = null, r;
|
|
145
145
|
}
|
|
146
|
-
|
|
147
|
-
return e.in && t.status ===
|
|
146
|
+
rn(t, e), t.getDerivedStateFromProps = function(e, t) {
|
|
147
|
+
return e.in && t.status === pn ? { status: Q } : null;
|
|
148
148
|
};
|
|
149
149
|
var n = t.prototype;
|
|
150
150
|
return n.componentDidMount = function() {
|
|
@@ -165,7 +165,7 @@ var an = function() {
|
|
|
165
165
|
enter: t
|
|
166
166
|
};
|
|
167
167
|
}, n.updateStatus = function(e, t) {
|
|
168
|
-
e === void 0 && (e = !1), t === null ? this.props.unmountOnExit && this.state.status ===
|
|
168
|
+
e === void 0 && (e = !1), t === null ? this.props.unmountOnExit && this.state.status === Q && this.setState({ status: pn }) : (this.cancelNextCallback(), t === mn ? this.performEnter(e) : this.performExit());
|
|
169
169
|
}, n.performEnter = function(e) {
|
|
170
170
|
var t = this, n = this.props.enter, r = e, i = this.getTimeouts();
|
|
171
171
|
e || n ? (this.props.onEnter && this.props.onEnter(this.node, r), this.safeSetState({ status: mn }, function() {
|
|
@@ -181,11 +181,11 @@ var an = function() {
|
|
|
181
181
|
var e = this, t = this.props.exit, n = this.getTimeouts();
|
|
182
182
|
t ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status: gn }, function() {
|
|
183
183
|
e.props.onExiting && e.props.onExiting(e.node), e.onTransitionEnd(n.exit, function() {
|
|
184
|
-
e.safeSetState({ status:
|
|
184
|
+
e.safeSetState({ status: Q }, function() {
|
|
185
185
|
e.props.onExited && e.props.onExited(e.node);
|
|
186
186
|
});
|
|
187
187
|
});
|
|
188
|
-
})) : this.safeSetState({ status:
|
|
188
|
+
})) : this.safeSetState({ status: Q }, function() {
|
|
189
189
|
e.props.onExited && e.props.onExited(e.node);
|
|
190
190
|
});
|
|
191
191
|
}, n.cancelNextCallback = function() {
|
|
@@ -205,9 +205,9 @@ var an = function() {
|
|
|
205
205
|
this.node && !n ? (this.props.addEndListener && this.props.addEndListener(this.node, this.nextCallback), e != null && setTimeout(this.nextCallback, e)) : setTimeout(this.nextCallback, 0);
|
|
206
206
|
}, n.render = function() {
|
|
207
207
|
var e = this.state.status;
|
|
208
|
-
if (e ===
|
|
208
|
+
if (e === pn) return null;
|
|
209
209
|
var t = this.props;
|
|
210
|
-
return (0, t.children)(e,
|
|
210
|
+
return (0, t.children)(e, an(t, [
|
|
211
211
|
"children",
|
|
212
212
|
"in",
|
|
213
213
|
"mountOnEnter",
|
|
@@ -225,7 +225,7 @@ var an = function() {
|
|
|
225
225
|
"onExited",
|
|
226
226
|
"nodeRef"
|
|
227
227
|
]));
|
|
228
|
-
},
|
|
228
|
+
}, nn(t, [{
|
|
229
229
|
key: "node",
|
|
230
230
|
get: function() {
|
|
231
231
|
var e = this.props.nodeRef?.current;
|
|
@@ -233,13 +233,13 @@ var an = function() {
|
|
|
233
233
|
return e;
|
|
234
234
|
}
|
|
235
235
|
}]), t;
|
|
236
|
-
}(
|
|
236
|
+
}(O.Component);
|
|
237
237
|
function vn() {}
|
|
238
238
|
function yn(e, t) {
|
|
239
239
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
240
240
|
}
|
|
241
241
|
function bn(e, t) {
|
|
242
|
-
return
|
|
242
|
+
return N(function() {
|
|
243
243
|
return e == null && t == null ? null : function(n) {
|
|
244
244
|
yn(e, n), yn(t, n);
|
|
245
245
|
};
|
|
@@ -309,8 +309,8 @@ function kn(e, t) {
|
|
|
309
309
|
n && (t.style.webkitTransform = n, t.style.transform = n);
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
var An =
|
|
313
|
-
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 =
|
|
312
|
+
var An = k(function(e, t) {
|
|
313
|
+
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 = an(e, [
|
|
314
314
|
"children",
|
|
315
315
|
"direction",
|
|
316
316
|
"in",
|
|
@@ -320,10 +320,10 @@ var An = j(function(e, t) {
|
|
|
320
320
|
"onEntered",
|
|
321
321
|
"onExit",
|
|
322
322
|
"onExited"
|
|
323
|
-
]), m =
|
|
323
|
+
]), m = P(null), h = bn(bn(n.ref, m), t), g = j(function() {
|
|
324
324
|
m.current && kn(i, m.current);
|
|
325
325
|
}, [i]);
|
|
326
|
-
return
|
|
326
|
+
return M(function() {
|
|
327
327
|
if (!a && i !== "down" && i !== "right") {
|
|
328
328
|
var e = function(e, t) {
|
|
329
329
|
var n;
|
|
@@ -343,9 +343,9 @@ var An = j(function(e, t) {
|
|
|
343
343
|
e.clear(), t.removeEventListener("resize", e);
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
|
-
}, [i, a]),
|
|
346
|
+
}, [i, a]), M(function() {
|
|
347
347
|
a || g();
|
|
348
|
-
}, [a, g]),
|
|
348
|
+
}, [a, g]), Xe(_n, Object.assign({
|
|
349
349
|
appear: !0,
|
|
350
350
|
nodeRef: m,
|
|
351
351
|
onEnter: function(e, t) {
|
|
@@ -356,7 +356,7 @@ var An = j(function(e, t) {
|
|
|
356
356
|
var t = o?.transitionTimingFunction || Cn, n = xn({
|
|
357
357
|
timeout: c,
|
|
358
358
|
mode: "enter",
|
|
359
|
-
style:
|
|
359
|
+
style: X({}, o, { transitionTimingFunction: t })
|
|
360
360
|
});
|
|
361
361
|
e.style.webkitTransition = Dn("-webkit-transform", n), e.style.transition = Dn("transform", n), e.style.webkitTransform = "none", e.style.transform = "none";
|
|
362
362
|
},
|
|
@@ -364,7 +364,7 @@ var An = j(function(e, t) {
|
|
|
364
364
|
var t = o?.transitionTimingFunction || wn, n = xn({
|
|
365
365
|
timeout: c,
|
|
366
366
|
mode: "exit",
|
|
367
|
-
style:
|
|
367
|
+
style: X({}, o, { transitionTimingFunction: t })
|
|
368
368
|
});
|
|
369
369
|
e.style.webkitTransition = Dn("-webkit-transform", n), e.style.transition = Dn("transform", n), kn(i, e), d && d(e);
|
|
370
370
|
},
|
|
@@ -374,15 +374,15 @@ var An = j(function(e, t) {
|
|
|
374
374
|
in: a,
|
|
375
375
|
timeout: c
|
|
376
376
|
}, p), function(e, t) {
|
|
377
|
-
return
|
|
377
|
+
return Ye(n, X({
|
|
378
378
|
ref: h,
|
|
379
|
-
style:
|
|
379
|
+
style: X({ visibility: e !== "exited" || a ? void 0 : "hidden" }, o, {}, n.props.style)
|
|
380
380
|
}, t));
|
|
381
381
|
});
|
|
382
382
|
});
|
|
383
383
|
An.displayName = "Slide";
|
|
384
384
|
var jn = function(e) {
|
|
385
|
-
return
|
|
385
|
+
return O.createElement("svg", Object.assign({
|
|
386
386
|
viewBox: "0 0 24 24",
|
|
387
387
|
focusable: "false",
|
|
388
388
|
style: {
|
|
@@ -405,17 +405,17 @@ var jn = function(e) {
|
|
|
405
405
|
autoHideDuration: 5e3,
|
|
406
406
|
iconVariant: {
|
|
407
407
|
default: void 0,
|
|
408
|
-
success:
|
|
409
|
-
return
|
|
408
|
+
success: O.createElement(function() {
|
|
409
|
+
return O.createElement(jn, null, O.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" }));
|
|
410
410
|
}, null),
|
|
411
|
-
warning:
|
|
412
|
-
return
|
|
411
|
+
warning: O.createElement(function() {
|
|
412
|
+
return O.createElement(jn, null, O.createElement("path", { d: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z" }));
|
|
413
413
|
}, null),
|
|
414
|
-
error:
|
|
415
|
-
return
|
|
414
|
+
error: O.createElement(function() {
|
|
415
|
+
return O.createElement(jn, null, O.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" }));
|
|
416
416
|
}, null),
|
|
417
|
-
info:
|
|
418
|
-
return
|
|
417
|
+
info: O.createElement(function() {
|
|
418
|
+
return O.createElement(jn, null, O.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" }));
|
|
419
419
|
}, null)
|
|
420
420
|
},
|
|
421
421
|
anchorOrigin: {
|
|
@@ -429,7 +429,7 @@ var jn = function(e) {
|
|
|
429
429
|
}
|
|
430
430
|
}, Nn = function(e, t) {
|
|
431
431
|
return function(n, r) {
|
|
432
|
-
return r === void 0 && (r = !1), r ?
|
|
432
|
+
return r === void 0 && (r = !1), r ? X({}, Mn[n], {}, t[n], {}, e[n]) : n === "autoHideDuration" ? (i = e.autoHideDuration, a = t.autoHideDuration, (o = function(e) {
|
|
433
433
|
return typeof e == "number" || e === null;
|
|
434
434
|
})(i) ? i : o(a) ? a : Mn.autoHideDuration) : n === "transitionDuration" ? function(e, t) {
|
|
435
435
|
var n = function(e, t) {
|
|
@@ -437,7 +437,7 @@ var jn = function(e) {
|
|
|
437
437
|
return typeof e === t;
|
|
438
438
|
});
|
|
439
439
|
};
|
|
440
|
-
return n(e, ["string", "number"]) ? e : n(e, ["object"]) ?
|
|
440
|
+
return n(e, ["string", "number"]) ? e : n(e, ["object"]) ? X({}, Mn.transitionDuration, {}, n(t, ["object"]) && t, {}, e) : n(t, ["string", "number"]) ? t : n(t, ["object"]) ? X({}, Mn.transitionDuration, {}, t) : Mn.transitionDuration;
|
|
441
441
|
}(e.transitionDuration, t.transitionDuration) : e[n] || t[n] || Mn[n];
|
|
442
442
|
var i, a, o;
|
|
443
443
|
};
|
|
@@ -445,7 +445,7 @@ var jn = function(e) {
|
|
|
445
445
|
function Pn(e) {
|
|
446
446
|
return Object.entries(e).reduce(function(e, t) {
|
|
447
447
|
var n, r = t[0], i = t[1];
|
|
448
|
-
return
|
|
448
|
+
return X({}, e, ((n = {})[r] = en(i), n));
|
|
449
449
|
}, {});
|
|
450
450
|
}
|
|
451
451
|
var Fn = "notistack-SnackbarContainer", In = "notistack-Snackbar", Ln = "notistack-CollapseWrapper", Rn = "notistack-MuiContent", zn = function(e) {
|
|
@@ -453,11 +453,11 @@ var Fn = "notistack-SnackbarContainer", In = "notistack-Snackbar", Ln = "notista
|
|
|
453
453
|
}, Bn = Pn({
|
|
454
454
|
root: { height: 0 },
|
|
455
455
|
entered: { height: "auto" }
|
|
456
|
-
}), Vn = "0px", Hn =
|
|
457
|
-
var n = e.children, r = e.in, i = e.onExited, a =
|
|
456
|
+
}), Vn = "0px", Hn = k(function(e, t) {
|
|
457
|
+
var n = e.children, r = e.in, i = e.onExited, a = P(null), o = P(null), s = bn(t, o), c = function() {
|
|
458
458
|
return a.current ? a.current.clientHeight : 0;
|
|
459
459
|
};
|
|
460
|
-
return
|
|
460
|
+
return Xe(_n, {
|
|
461
461
|
in: r,
|
|
462
462
|
unmountOnExit: !0,
|
|
463
463
|
onEnter: function(e) {
|
|
@@ -488,16 +488,16 @@ var Fn = "notistack-SnackbarContainer", In = "notistack-Snackbar", Ln = "notista
|
|
|
488
488
|
nodeRef: o,
|
|
489
489
|
timeout: 175
|
|
490
490
|
}, function(e, t) {
|
|
491
|
-
return
|
|
491
|
+
return Xe("div", Object.assign({
|
|
492
492
|
ref: s,
|
|
493
|
-
className:
|
|
494
|
-
style:
|
|
493
|
+
className: Kt(Bn.root, e === "entered" && Bn.entered),
|
|
494
|
+
style: X({
|
|
495
495
|
pointerEvents: "all",
|
|
496
496
|
overflow: "hidden",
|
|
497
497
|
minHeight: Vn,
|
|
498
498
|
transition: Dn("height")
|
|
499
499
|
}, e === "entered" && { overflow: "visible" }, {}, e === "exited" && !r && { visibility: "hidden" })
|
|
500
|
-
}, t),
|
|
500
|
+
}, t), Xe("div", {
|
|
501
501
|
ref: a,
|
|
502
502
|
className: Ln,
|
|
503
503
|
style: {
|
|
@@ -514,7 +514,7 @@ var Un = {
|
|
|
514
514
|
bottom: "up",
|
|
515
515
|
top: "down"
|
|
516
516
|
}, Wn = function(e) {
|
|
517
|
-
return "anchorOrigin" +
|
|
517
|
+
return "anchorOrigin" + dn(e);
|
|
518
518
|
}, Gn = function() {};
|
|
519
519
|
function Kn(e, t) {
|
|
520
520
|
return e.reduce(function(e, n) {
|
|
@@ -524,24 +524,24 @@ function Kn(e, t) {
|
|
|
524
524
|
};
|
|
525
525
|
}, Gn);
|
|
526
526
|
}
|
|
527
|
-
var qn = typeof window < "u" ?
|
|
527
|
+
var qn = typeof window < "u" ? $e : M;
|
|
528
528
|
function Jn(e) {
|
|
529
|
-
var t =
|
|
529
|
+
var t = P(e);
|
|
530
530
|
return qn(function() {
|
|
531
531
|
t.current = e;
|
|
532
|
-
}),
|
|
532
|
+
}), j(function() {
|
|
533
533
|
return t.current.apply(void 0, arguments);
|
|
534
534
|
}, []);
|
|
535
535
|
}
|
|
536
|
-
var Yn, Xn =
|
|
537
|
-
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 =
|
|
536
|
+
var Yn, Xn = k(function(e, t) {
|
|
537
|
+
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 = P(), p = Jn(function() {
|
|
538
538
|
s && s.apply(void 0, arguments);
|
|
539
539
|
}), m = Jn(function(e) {
|
|
540
540
|
s && e != null && (f.current && clearTimeout(f.current), f.current = setTimeout(function() {
|
|
541
541
|
p(null, "timeout", c);
|
|
542
542
|
}, e));
|
|
543
543
|
});
|
|
544
|
-
|
|
544
|
+
M(function() {
|
|
545
545
|
return l && m(i), function() {
|
|
546
546
|
f.current && clearTimeout(f.current);
|
|
547
547
|
};
|
|
@@ -552,10 +552,10 @@ var Yn, Xn = j(function(e, t) {
|
|
|
552
552
|
]);
|
|
553
553
|
var h = function() {
|
|
554
554
|
f.current && clearTimeout(f.current);
|
|
555
|
-
}, g =
|
|
555
|
+
}, g = j(function() {
|
|
556
556
|
i != null && m(.5 * i);
|
|
557
557
|
}, [i, m]);
|
|
558
|
-
return
|
|
558
|
+
return M(function() {
|
|
559
559
|
if (!o && l) return window.addEventListener("focus", g), window.addEventListener("blur", h), function() {
|
|
560
560
|
window.removeEventListener("focus", g), window.removeEventListener("blur", h);
|
|
561
561
|
};
|
|
@@ -563,8 +563,8 @@ var Yn, Xn = j(function(e, t) {
|
|
|
563
563
|
o,
|
|
564
564
|
g,
|
|
565
565
|
l
|
|
566
|
-
]),
|
|
567
|
-
className:
|
|
566
|
+
]), Xe("div", Object.assign({ ref: t }, d, {
|
|
567
|
+
className: Kt(In, r),
|
|
568
568
|
onMouseEnter: function(e) {
|
|
569
569
|
d.onMouseEnter && d.onMouseEnter(e), h();
|
|
570
570
|
},
|
|
@@ -578,14 +578,14 @@ var Zn = Pn({ root: (Yn = {
|
|
|
578
578
|
display: "flex",
|
|
579
579
|
flexWrap: "wrap",
|
|
580
580
|
flexGrow: 1
|
|
581
|
-
}, Yn[
|
|
581
|
+
}, Yn[Z] = {
|
|
582
582
|
flexGrow: "initial",
|
|
583
583
|
minWidth: "288px"
|
|
584
|
-
}, Yn) }), Qn =
|
|
585
|
-
var n = e.className, r =
|
|
586
|
-
return
|
|
584
|
+
}, Yn) }), Qn = k(function(e, t) {
|
|
585
|
+
var n = e.className, r = an(e, ["className"]);
|
|
586
|
+
return O.createElement("div", Object.assign({
|
|
587
587
|
ref: t,
|
|
588
|
-
className:
|
|
588
|
+
className: Kt(Zn.root, n)
|
|
589
589
|
}, r));
|
|
590
590
|
});
|
|
591
591
|
Qn.displayName = "SnackbarContent";
|
|
@@ -619,21 +619,21 @@ var $n = Pn({
|
|
|
619
619
|
paddingLeft: "16px",
|
|
620
620
|
marginRight: "-8px"
|
|
621
621
|
}
|
|
622
|
-
}), er = "notistack-snackbar", tr =
|
|
622
|
+
}), er = "notistack-snackbar", tr = k(function(e, t) {
|
|
623
623
|
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;
|
|
624
|
-
return typeof d == "function" && (d = d(n)),
|
|
624
|
+
return typeof d == "function" && (d = d(n)), O.createElement(Qn, {
|
|
625
625
|
ref: t,
|
|
626
626
|
role: "alert",
|
|
627
627
|
"aria-describedby": er,
|
|
628
628
|
style: c,
|
|
629
|
-
className:
|
|
630
|
-
},
|
|
629
|
+
className: Kt(Rn, zn(o), $n.root, $n[o], l, !s && u && $n.lessPadding)
|
|
630
|
+
}, O.createElement("div", {
|
|
631
631
|
id: er,
|
|
632
632
|
className: $n.message
|
|
633
|
-
}, s ? null : u, r), d &&
|
|
633
|
+
}, s ? null : u, r), d && O.createElement("div", { className: $n.action }, d));
|
|
634
634
|
});
|
|
635
635
|
tr.displayName = "MaterialDesignContent";
|
|
636
|
-
var nr, rr, ir, ar, or, sr =
|
|
636
|
+
var nr, rr, ir, ar, or, sr = A(tr), cr = Pn({ wrappedRoot: {
|
|
637
637
|
width: "100%",
|
|
638
638
|
position: "relative",
|
|
639
639
|
transform: "translateX(0)",
|
|
@@ -643,19 +643,19 @@ var nr, rr, ir, ar, or, sr = N(tr), cr = Pn({ wrappedRoot: {
|
|
|
643
643
|
left: 0,
|
|
644
644
|
minWidth: "288px"
|
|
645
645
|
} }), lr = function(e) {
|
|
646
|
-
var t =
|
|
646
|
+
var t = P(), n = F(!0), r = n[0], i = n[1], a = Kn([e.snack.onClose, e.onClose]), o = j(function() {
|
|
647
647
|
t.current = setTimeout(function() {
|
|
648
648
|
i(function(e) {
|
|
649
649
|
return !e;
|
|
650
650
|
});
|
|
651
651
|
}, 125);
|
|
652
652
|
}, []);
|
|
653
|
-
|
|
653
|
+
M(function() {
|
|
654
654
|
return function() {
|
|
655
655
|
t.current && clearTimeout(t.current);
|
|
656
656
|
};
|
|
657
657
|
}, []);
|
|
658
|
-
var s, c = e.snack, l = e.classes, u = e.Component, d = u === void 0 ? sr : u, f =
|
|
658
|
+
var s, c = e.snack, l = e.classes, u = e.Component, d = u === void 0 ? sr : u, f = N(function() {
|
|
659
659
|
return function(e) {
|
|
660
660
|
e === void 0 && (e = {});
|
|
661
661
|
var t = {
|
|
@@ -671,10 +671,10 @@ var nr, rr, ir, ar, or, sr = N(tr), cr = Pn({ wrappedRoot: {
|
|
|
671
671
|
return !t[e];
|
|
672
672
|
}).reduce(function(t, n) {
|
|
673
673
|
var r;
|
|
674
|
-
return
|
|
674
|
+
return X({}, t, ((r = {})[n] = e[n], r));
|
|
675
675
|
}, {});
|
|
676
676
|
}(l);
|
|
677
|
-
}, [l]), p = c.open, m = c.SnackbarProps, h = c.TransitionComponent, g = c.TransitionProps, _ = c.transitionDuration,
|
|
677
|
+
}, [l]), p = c.open, m = c.SnackbarProps, h = c.TransitionComponent, g = c.TransitionProps, _ = c.transitionDuration, ee = c.disableWindowBlurListener, v = c.content, y = an(c, [
|
|
678
678
|
"open",
|
|
679
679
|
"SnackbarProps",
|
|
680
680
|
"TransitionComponent",
|
|
@@ -688,41 +688,41 @@ var nr, rr, ir, ar, or, sr = N(tr), cr = Pn({ wrappedRoot: {
|
|
|
688
688
|
"onEntered",
|
|
689
689
|
"onExit",
|
|
690
690
|
"onExited"
|
|
691
|
-
]),
|
|
692
|
-
direction: (s =
|
|
691
|
+
]), te = X({
|
|
692
|
+
direction: (s = y.anchorOrigin, s.horizontal === "center" ? Un[s.vertical] : Un[s.horizontal]),
|
|
693
693
|
timeout: _
|
|
694
|
-
}, g),
|
|
695
|
-
typeof
|
|
696
|
-
var
|
|
694
|
+
}, g), b = v;
|
|
695
|
+
typeof b == "function" && (b = b(y.id, y.message));
|
|
696
|
+
var x = [
|
|
697
697
|
"onEnter",
|
|
698
698
|
"onEntered",
|
|
699
699
|
"onExit",
|
|
700
700
|
"onExited"
|
|
701
701
|
].reduce(function(t, n) {
|
|
702
702
|
var r;
|
|
703
|
-
return
|
|
703
|
+
return X({}, t, ((r = {})[n] = Kn([e.snack[n], e[n]], y.id), r));
|
|
704
704
|
}, {});
|
|
705
|
-
return
|
|
705
|
+
return O.createElement(Hn, {
|
|
706
706
|
in: r,
|
|
707
|
-
onExited:
|
|
708
|
-
},
|
|
707
|
+
onExited: x.onExited
|
|
708
|
+
}, O.createElement(Xn, {
|
|
709
709
|
open: p,
|
|
710
|
-
id:
|
|
711
|
-
disableWindowBlurListener:
|
|
712
|
-
autoHideDuration:
|
|
713
|
-
className:
|
|
710
|
+
id: y.id,
|
|
711
|
+
disableWindowBlurListener: ee,
|
|
712
|
+
autoHideDuration: y.autoHideDuration,
|
|
713
|
+
className: Kt(cr.wrappedRoot, f.root, f[Wn(y.anchorOrigin)]),
|
|
714
714
|
SnackbarProps: m,
|
|
715
715
|
onClose: a
|
|
716
|
-
},
|
|
716
|
+
}, O.createElement(h, Object.assign({}, te, {
|
|
717
717
|
appear: !0,
|
|
718
718
|
in: p,
|
|
719
|
-
onExit:
|
|
719
|
+
onExit: x.onExit,
|
|
720
720
|
onExited: o,
|
|
721
|
-
onEnter:
|
|
722
|
-
onEntered: Kn([
|
|
721
|
+
onEnter: x.onEnter,
|
|
722
|
+
onEntered: Kn([x.onEntered, function() {
|
|
723
723
|
e.snack.requestClose && a(null, "instructed", e.snack.id);
|
|
724
|
-
}],
|
|
725
|
-
}),
|
|
724
|
+
}], y.id)
|
|
725
|
+
}), b || O.createElement(d, Object.assign({}, y)))));
|
|
726
726
|
}, ur = {
|
|
727
727
|
default: 20,
|
|
728
728
|
dense: 4
|
|
@@ -752,7 +752,7 @@ var nr, rr, ir, ar, or, sr = N(tr), cr = Pn({ wrappedRoot: {
|
|
|
752
752
|
}, nr[fr] = {
|
|
753
753
|
padding: dr.default + "px 0px",
|
|
754
754
|
transition: "padding 300ms ease 0ms"
|
|
755
|
-
}, nr.maxWidth = "calc(100% - " + 2 * ur.default + "px)", nr[
|
|
755
|
+
}, nr.maxWidth = "calc(100% - " + 2 * ur.default + "px)", nr[ln] = {
|
|
756
756
|
width: "100%",
|
|
757
757
|
maxWidth: "calc(100% - 32px)"
|
|
758
758
|
}, nr),
|
|
@@ -765,23 +765,23 @@ var nr, rr, ir, ar, or, sr = N(tr), cr = Pn({ wrappedRoot: {
|
|
|
765
765
|
bottom: ur.default - dr.default + "px",
|
|
766
766
|
flexDirection: "column-reverse"
|
|
767
767
|
},
|
|
768
|
-
left: (ir = { left: ur.default + "px" }, ir[
|
|
769
|
-
right: (ar = { right: ur.default + "px" }, ar[
|
|
768
|
+
left: (ir = { left: ur.default + "px" }, ir[Z] = { alignItems: "flex-start" }, ir[ln] = { left: "16px" }, ir),
|
|
769
|
+
right: (ar = { right: ur.default + "px" }, ar[Z] = { alignItems: "flex-end" }, ar[ln] = { right: "16px" }, ar),
|
|
770
770
|
center: (or = {
|
|
771
771
|
left: "50%",
|
|
772
772
|
transform: "translateX(-50%)"
|
|
773
|
-
}, or[
|
|
774
|
-
}), mr =
|
|
775
|
-
var t = e.classes, n = t === void 0 ? {} : t, r = e.anchorOrigin, i = e.dense, a = e.children, o =
|
|
776
|
-
return
|
|
773
|
+
}, or[Z] = { alignItems: "center" }, or)
|
|
774
|
+
}), mr = A(function(e) {
|
|
775
|
+
var t = e.classes, n = t === void 0 ? {} : t, r = e.anchorOrigin, i = e.dense, a = e.children, o = Kt(Fn, pr[r.vertical], pr[r.horizontal], pr.root, n.containerRoot, n["containerAnchorOrigin" + dn(r)], i && pr.rootDense);
|
|
776
|
+
return O.createElement("div", { className: o }, a);
|
|
777
777
|
}), hr = function(e) {
|
|
778
|
-
return !(typeof e == "string" ||
|
|
778
|
+
return !(typeof e == "string" || Ze(e));
|
|
779
779
|
}, gr = function(e) {
|
|
780
780
|
function t(t) {
|
|
781
781
|
var n = e.call(this, t) || this;
|
|
782
782
|
return n.enqueueSnackbar = function(e, t) {
|
|
783
783
|
if (t === void 0 && (t = {}), e == null) throw Error("enqueueSnackbar called with invalid argument");
|
|
784
|
-
var r = hr(e) ? e : t, i = hr(e) ? e.message : e, a = r.key, o = r.preventDuplicate, s =
|
|
784
|
+
var r = hr(e) ? e : t, i = hr(e) ? e.message : e, a = r.key, o = r.preventDuplicate, s = an(r, ["key", "preventDuplicate"]), c = fn(a), l = c ? a : (/* @__PURE__ */ new Date()).getTime() + Math.random(), u = Nn(s, n.props), d = X({ id: l }, s, {
|
|
785
785
|
message: i,
|
|
786
786
|
open: !0,
|
|
787
787
|
entered: !1,
|
|
@@ -800,7 +800,7 @@ var nr, rr, ir, ar, or, sr = N(tr), cr = Pn({ wrappedRoot: {
|
|
|
800
800
|
iconVariant: u("iconVariant", !0),
|
|
801
801
|
style: u("style", !0),
|
|
802
802
|
SnackbarProps: u("SnackbarProps", !0),
|
|
803
|
-
className:
|
|
803
|
+
className: Kt(n.props.className, s.className)
|
|
804
804
|
});
|
|
805
805
|
return d.persist && (d.autoHideDuration = void 0), n.setState(function(e) {
|
|
806
806
|
if (o === void 0 && n.props.preventDuplicate || o) {
|
|
@@ -809,13 +809,13 @@ var nr, rr, ir, ar, or, sr = N(tr), cr = Pn({ wrappedRoot: {
|
|
|
809
809
|
}, r = e.queue.findIndex(t) > -1, a = e.snacks.findIndex(t) > -1;
|
|
810
810
|
if (r || a) return e;
|
|
811
811
|
}
|
|
812
|
-
return n.handleDisplaySnack(
|
|
812
|
+
return n.handleDisplaySnack(X({}, e, { queue: [].concat(e.queue, [d]) }));
|
|
813
813
|
}), l;
|
|
814
814
|
}, n.handleDisplaySnack = function(e) {
|
|
815
815
|
return e.snacks.length >= n.maxSnack ? n.handleDismissOldest(e) : n.processQueue(e);
|
|
816
816
|
}, n.processQueue = function(e) {
|
|
817
817
|
var t = e.queue, n = e.snacks;
|
|
818
|
-
return t.length > 0 ?
|
|
818
|
+
return t.length > 0 ? X({}, e, {
|
|
819
819
|
snacks: [].concat(n, [t[0]]),
|
|
820
820
|
queue: t.slice(1, t.length)
|
|
821
821
|
}) : e;
|
|
@@ -828,14 +828,14 @@ var nr, rr, ir, ar, or, sr = N(tr), cr = Pn({ wrappedRoot: {
|
|
|
828
828
|
return e + (t.open && t.persist ? 1 : 0);
|
|
829
829
|
}, 0) === n.maxSnack && (r = !0);
|
|
830
830
|
var i = e.snacks.map(function(e) {
|
|
831
|
-
return t || e.persist && !r ?
|
|
831
|
+
return t || e.persist && !r ? X({}, e) : (t = !0, e.entered ? (e.onClose && e.onClose(null, "maxsnack", e.id), n.props.onClose && n.props.onClose(null, "maxsnack", e.id), X({}, e, { open: !1 })) : X({}, e, { requestClose: !0 }));
|
|
832
832
|
});
|
|
833
|
-
return
|
|
833
|
+
return X({}, e, { snacks: i });
|
|
834
834
|
}, n.handleEnteredSnack = function(e, t, r) {
|
|
835
|
-
if (!
|
|
835
|
+
if (!fn(r)) throw Error("handleEnteredSnack Cannot be called with undefined key");
|
|
836
836
|
n.setState(function(e) {
|
|
837
837
|
return { snacks: e.snacks.map(function(e) {
|
|
838
|
-
return e.id === r ?
|
|
838
|
+
return e.id === r ? X({}, e, { entered: !0 }) : X({}, e);
|
|
839
839
|
}) };
|
|
840
840
|
});
|
|
841
841
|
}, n.handleCloseSnack = function(e, t, r) {
|
|
@@ -845,7 +845,7 @@ var nr, rr, ir, ar, or, sr = N(tr), cr = Pn({ wrappedRoot: {
|
|
|
845
845
|
var t = e.snacks, n = e.queue;
|
|
846
846
|
return {
|
|
847
847
|
snacks: t.map(function(e) {
|
|
848
|
-
return i || e.id === r ? e.entered ?
|
|
848
|
+
return i || e.id === r ? e.entered ? X({}, e, { open: !1 }) : X({}, e, { requestClose: !0 }) : X({}, e);
|
|
849
849
|
}),
|
|
850
850
|
queue: n.filter(function(e) {
|
|
851
851
|
return e.id !== r;
|
|
@@ -856,11 +856,11 @@ var nr, rr, ir, ar, or, sr = N(tr), cr = Pn({ wrappedRoot: {
|
|
|
856
856
|
var t = n.state.snacks.find(function(t) {
|
|
857
857
|
return t.id === e;
|
|
858
858
|
});
|
|
859
|
-
|
|
859
|
+
fn(e) && t && t.onClose && t.onClose(null, "instructed", e), n.handleCloseSnack(null, "instructed", e);
|
|
860
860
|
}, n.handleExitedSnack = function(e, t) {
|
|
861
|
-
if (!
|
|
861
|
+
if (!fn(t)) throw Error("handleExitedSnack Cannot be called with undefined key");
|
|
862
862
|
n.setState(function(e) {
|
|
863
|
-
var r = n.processQueue(
|
|
863
|
+
var r = n.processQueue(X({}, e, { snacks: e.snacks.filter(function(e) {
|
|
864
864
|
return e.id !== t;
|
|
865
865
|
}) }));
|
|
866
866
|
return r.queue.length === 0 ? r : n.handleDismissOldest(r);
|
|
@@ -869,24 +869,24 @@ var nr, rr, ir, ar, or, sr = N(tr), cr = Pn({ wrappedRoot: {
|
|
|
869
869
|
snacks: [],
|
|
870
870
|
queue: [],
|
|
871
871
|
contextValue: {
|
|
872
|
-
enqueueSnackbar: n.enqueueSnackbar.bind(
|
|
873
|
-
closeSnackbar: n.closeSnackbar.bind(
|
|
872
|
+
enqueueSnackbar: n.enqueueSnackbar.bind(on(n)),
|
|
873
|
+
closeSnackbar: n.closeSnackbar.bind(on(n))
|
|
874
874
|
}
|
|
875
875
|
}, n;
|
|
876
876
|
}
|
|
877
|
-
return
|
|
877
|
+
return rn(t, e), t.prototype.render = function() {
|
|
878
878
|
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) {
|
|
879
|
-
var n, r =
|
|
880
|
-
return
|
|
879
|
+
var n, r = dn(t.anchorOrigin), i = e[r] || [];
|
|
880
|
+
return X({}, e, ((n = {})[r] = [].concat(i, [t]), n));
|
|
881
881
|
}, {}), d = Object.keys(u).map(function(t) {
|
|
882
882
|
var n = u[t], r = n[0];
|
|
883
|
-
return
|
|
883
|
+
return O.createElement(mr, {
|
|
884
884
|
key: t,
|
|
885
885
|
dense: o,
|
|
886
886
|
anchorOrigin: r.anchorOrigin,
|
|
887
887
|
classes: l
|
|
888
888
|
}, n.map(function(t) {
|
|
889
|
-
return
|
|
889
|
+
return O.createElement(lr, {
|
|
890
890
|
key: t.id,
|
|
891
891
|
snack: t,
|
|
892
892
|
classes: l,
|
|
@@ -899,15 +899,15 @@ var nr, rr, ir, ar, or, sr = N(tr), cr = Pn({ wrappedRoot: {
|
|
|
899
899
|
});
|
|
900
900
|
}));
|
|
901
901
|
});
|
|
902
|
-
return
|
|
903
|
-
},
|
|
902
|
+
return O.createElement(cn.Provider, { value: t }, i, r ? Lt(d, r) : d);
|
|
903
|
+
}, nn(t, [{
|
|
904
904
|
key: "maxSnack",
|
|
905
905
|
get: function() {
|
|
906
906
|
return this.props.maxSnack || Mn.maxSnack;
|
|
907
907
|
}
|
|
908
908
|
}]), t;
|
|
909
|
-
}(
|
|
910
|
-
return
|
|
909
|
+
}(qe), _r = function() {
|
|
910
|
+
return Qe(cn);
|
|
911
911
|
}, $ = {
|
|
912
912
|
card: "_card_h0jnt_7",
|
|
913
913
|
actionRoot: "_actionRoot_h0jnt_11",
|
|
@@ -918,62 +918,62 @@ var nr, rr, ir, ar, or, sr = N(tr), cr = Pn({ wrappedRoot: {
|
|
|
918
918
|
paper: "_paper_h0jnt_37",
|
|
919
919
|
checkIcon: "_checkIcon_h0jnt_42",
|
|
920
920
|
button: "_button_h0jnt_47"
|
|
921
|
-
}, vr =
|
|
922
|
-
let { id: n, message: r, iconVariant: i, error: a, hideIconVariant: o, ...s } = e, c =
|
|
921
|
+
}, vr = A(k((e, t) => {
|
|
922
|
+
let { id: n, message: r, iconVariant: i, error: a, hideIconVariant: o, ...s } = e, c = Ke(), { closeSnackbar: l } = _r(), [u, d] = F(!1), f = a ? Nt.collectErrorChain(a, !0)?.[0]?.error : void 0, p = f && !(f instanceof Pt), m = j(() => {
|
|
923
923
|
d((e) => !e);
|
|
924
|
-
}, []), h =
|
|
924
|
+
}, []), h = j(() => {
|
|
925
925
|
l(n);
|
|
926
926
|
}, [n, l]), g = f?.message;
|
|
927
|
-
return !g &&
|
|
927
|
+
return !g && Ze(r) && (g = r), g || typeof r != "string" || (g = r), g ||= `Unknown Error: ${r}`, L(Qn, {
|
|
928
928
|
ref: t,
|
|
929
|
-
className:
|
|
930
|
-
children:
|
|
929
|
+
className: b($.root, "error-snackbar"),
|
|
930
|
+
children: R(bt, {
|
|
931
931
|
className: $.card,
|
|
932
932
|
style: {
|
|
933
933
|
backgroundColor: "var(--sxl-color-error)",
|
|
934
934
|
color: "var(--sxl-color-error-content)",
|
|
935
935
|
border: "1px solid var(--sxl-color-error)"
|
|
936
936
|
},
|
|
937
|
-
children: [
|
|
937
|
+
children: [R(xt, {
|
|
938
938
|
className: $.actionRoot,
|
|
939
939
|
children: [
|
|
940
940
|
o ? null : i?.error,
|
|
941
|
-
|
|
941
|
+
L(W, {
|
|
942
942
|
variant: "body2",
|
|
943
943
|
component: "div",
|
|
944
944
|
className: $.typography,
|
|
945
945
|
children: g
|
|
946
946
|
}),
|
|
947
|
-
|
|
948
|
-
|
|
947
|
+
L("div", { style: { flex: "1 1 auto" } }),
|
|
948
|
+
R("div", {
|
|
949
949
|
className: $.icons,
|
|
950
|
-
children: [p ?
|
|
950
|
+
children: [p ? L(V, {
|
|
951
951
|
"aria-label": c("toast.showMore"),
|
|
952
952
|
size: "small",
|
|
953
|
-
className:
|
|
953
|
+
className: b($.expand, { [$.expandOpen]: u }),
|
|
954
954
|
onClick: m,
|
|
955
|
-
children:
|
|
956
|
-
}) : null,
|
|
955
|
+
children: L(De, { iconKey: "ExpandMore" })
|
|
956
|
+
}) : null, L(V, {
|
|
957
957
|
size: "small",
|
|
958
958
|
className: $.expand,
|
|
959
959
|
onClick: h,
|
|
960
|
-
children:
|
|
960
|
+
children: L(De, {
|
|
961
961
|
iconKey: "Close",
|
|
962
962
|
style: { transform: "scale(0.8)" }
|
|
963
963
|
})
|
|
964
964
|
})]
|
|
965
965
|
})
|
|
966
966
|
]
|
|
967
|
-
}), p ?
|
|
967
|
+
}), p ? L(St, {
|
|
968
968
|
in: u,
|
|
969
969
|
timeout: "auto",
|
|
970
|
-
children:
|
|
970
|
+
children: L("div", {
|
|
971
971
|
className: $.stackTraceContainer,
|
|
972
972
|
style: {
|
|
973
973
|
backgroundColor: "color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))",
|
|
974
974
|
borderTop: "1px solid var(--sxl-color-error)"
|
|
975
975
|
},
|
|
976
|
-
children:
|
|
976
|
+
children: L(ut, {
|
|
977
977
|
error: a,
|
|
978
978
|
hideLineNumbers: !0
|
|
979
979
|
})
|
|
@@ -983,12 +983,12 @@ var nr, rr, ir, ar, or, sr = N(tr), cr = Pn({ wrappedRoot: {
|
|
|
983
983
|
});
|
|
984
984
|
}));
|
|
985
985
|
vr.displayName = "ToastError";
|
|
986
|
-
var yr =
|
|
987
|
-
let e =
|
|
988
|
-
return
|
|
986
|
+
var yr = L(() => {
|
|
987
|
+
let e = Ke();
|
|
988
|
+
return L(ot, {
|
|
989
989
|
label: "SheetXL",
|
|
990
990
|
description: e("logo.description"),
|
|
991
|
-
children:
|
|
991
|
+
children: L(z, {
|
|
992
992
|
component: "a",
|
|
993
993
|
href: "https://www.sheetxl.com",
|
|
994
994
|
target: "_blank",
|
|
@@ -1001,25 +1001,25 @@ var yr = B(() => {
|
|
|
1001
1001
|
marginLeft: "6px",
|
|
1002
1002
|
cursor: "pointer"
|
|
1003
1003
|
},
|
|
1004
|
-
children:
|
|
1004
|
+
children: L(ae, { style: {
|
|
1005
1005
|
width: "24px",
|
|
1006
1006
|
height: "24px"
|
|
1007
1007
|
} })
|
|
1008
1008
|
})
|
|
1009
1009
|
});
|
|
1010
|
-
}, {}), br =
|
|
1011
|
-
let { workbook: n, className: r, logo: i = yr, mainElement: a, startElement: o, endElement: s, ...c } = e, [l, { width: u }] =
|
|
1010
|
+
}, {}), br = A(k((e, t) => {
|
|
1011
|
+
let { workbook: n, className: r, logo: i = yr, mainElement: a, startElement: o, endElement: s, ...c } = e, [l, { width: u }] = He(), d = u < 530, f = P(null), p = x([
|
|
1012
1012
|
f,
|
|
1013
1013
|
l,
|
|
1014
1014
|
t
|
|
1015
1015
|
]);
|
|
1016
|
-
return
|
|
1016
|
+
return L(z, {
|
|
1017
1017
|
...c,
|
|
1018
1018
|
ref: p,
|
|
1019
1019
|
className: r,
|
|
1020
1020
|
children: g({
|
|
1021
1021
|
isCompact: d,
|
|
1022
|
-
wrapperSelect: (e) =>
|
|
1022
|
+
wrapperSelect: (e) => R(z, {
|
|
1023
1023
|
sx: {
|
|
1024
1024
|
display: "grid",
|
|
1025
1025
|
gridTemplateColumns: "1fr auto 1fr",
|
|
@@ -1030,7 +1030,7 @@ var yr = B(() => {
|
|
|
1030
1030
|
paddingRight: (e) => e.spacing(1)
|
|
1031
1031
|
},
|
|
1032
1032
|
children: [
|
|
1033
|
-
|
|
1033
|
+
R(z, {
|
|
1034
1034
|
sx: {
|
|
1035
1035
|
display: "flex",
|
|
1036
1036
|
flexDirection: "row",
|
|
@@ -1038,7 +1038,7 @@ var yr = B(() => {
|
|
|
1038
1038
|
justifyContent: "start",
|
|
1039
1039
|
gap: (e) => e.spacing(.5)
|
|
1040
1040
|
},
|
|
1041
|
-
children: [i,
|
|
1041
|
+
children: [i, R(z, {
|
|
1042
1042
|
sx: {
|
|
1043
1043
|
display: "flex",
|
|
1044
1044
|
flexDirection: "row",
|
|
@@ -1048,7 +1048,7 @@ var yr = B(() => {
|
|
|
1048
1048
|
children: [o, e]
|
|
1049
1049
|
})]
|
|
1050
1050
|
}),
|
|
1051
|
-
|
|
1051
|
+
L(z, {
|
|
1052
1052
|
sx: {
|
|
1053
1053
|
display: "flex",
|
|
1054
1054
|
flexDirection: "row",
|
|
@@ -1059,7 +1059,7 @@ var yr = B(() => {
|
|
|
1059
1059
|
},
|
|
1060
1060
|
children: a
|
|
1061
1061
|
}),
|
|
1062
|
-
|
|
1062
|
+
L(z, {
|
|
1063
1063
|
sx: {
|
|
1064
1064
|
display: "flex",
|
|
1065
1065
|
alignItems: "center",
|
|
@@ -1075,7 +1075,7 @@ var yr = B(() => {
|
|
|
1075
1075
|
br.displayName = "StudioToolbar";
|
|
1076
1076
|
var xr = (e, t) => {
|
|
1077
1077
|
let n = new URL(window.location.pathname, window.location.origin);
|
|
1078
|
-
e && n.searchParams.set("source", e), e && t && n.searchParams.set("title", t), window.open(n.toString(), "sheetxl-" +
|
|
1078
|
+
e && n.searchParams.set("source", e), e && t && n.searchParams.set("title", t), window.open(n.toString(), "sheetxl-" + At.uuidV4(), "popup=true");
|
|
1079
1079
|
};
|
|
1080
1080
|
function Sr(e, t) {
|
|
1081
1081
|
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) => {
|
|
@@ -1084,20 +1084,20 @@ function Sr(e, t) {
|
|
|
1084
1084
|
typedCreateWorkbookOptions: t ?? void 0,
|
|
1085
1085
|
onPassword: async ({ origin: e, validate: t }) => {
|
|
1086
1086
|
let n = await o.showInput({
|
|
1087
|
-
title:
|
|
1088
|
-
description:
|
|
1087
|
+
title: q("dialog.password.title"),
|
|
1088
|
+
description: q("dialog.password.open.description", { name: e.getName() ?? "" }),
|
|
1089
1089
|
inputType: "password",
|
|
1090
1090
|
options: [{
|
|
1091
1091
|
id: "Open",
|
|
1092
|
-
label: () =>
|
|
1092
|
+
label: () => q("dialog.open")
|
|
1093
1093
|
}, "Cancel"],
|
|
1094
1094
|
defaultOption: "Open",
|
|
1095
1095
|
onValidateInput: async (e, n) => n === void 0 ? { valid: !0 } : e ? await t(e) ? { valid: !0 } : {
|
|
1096
1096
|
valid: !1,
|
|
1097
|
-
message:
|
|
1097
|
+
message: q("dialog.password.open.retry")
|
|
1098
1098
|
} : {
|
|
1099
1099
|
valid: !1,
|
|
1100
|
-
message:
|
|
1100
|
+
message: q("dialog.password.open.required")
|
|
1101
1101
|
}
|
|
1102
1102
|
});
|
|
1103
1103
|
return n?.option === "Open" ? n.input ?? null : null;
|
|
@@ -1108,11 +1108,11 @@ function Sr(e, t) {
|
|
|
1108
1108
|
}, a;
|
|
1109
1109
|
n && (i.progress.onStart = n);
|
|
1110
1110
|
let s = -5;
|
|
1111
|
-
return
|
|
1111
|
+
return T.read({
|
|
1112
1112
|
...i,
|
|
1113
1113
|
progress: {
|
|
1114
1114
|
async onStart(e, t) {
|
|
1115
|
-
await i?.progress?.onStart?.(e, t), a = await o?.showBusy?.(
|
|
1115
|
+
await i?.progress?.onStart?.(e, t), a = await o?.showBusy?.(q("workbook.opening", { name: e?.getName() ?? "" })), t && a?.setProgress?.(0, t);
|
|
1116
1116
|
},
|
|
1117
1117
|
onProgress(e, t) {
|
|
1118
1118
|
if (!t) return;
|
|
@@ -1123,7 +1123,7 @@ function Sr(e, t) {
|
|
|
1123
1123
|
} else n - s < 5 || (s = n, a?.setProgress?.(e, t));
|
|
1124
1124
|
},
|
|
1125
1125
|
onComplete() {
|
|
1126
|
-
a?.(), r.length > 0 && (o.showMessage(
|
|
1126
|
+
a?.(), r.length > 0 && (o.showMessage(q("workbook.importWarnings")), console.warn("Import warnings:\n" + r.join("\n")));
|
|
1127
1127
|
},
|
|
1128
1128
|
onWarning(e, t) {
|
|
1129
1129
|
i?.progress?.onWarning?.(e, t);
|
|
@@ -1135,7 +1135,7 @@ function Sr(e, t) {
|
|
|
1135
1135
|
format: t?.key,
|
|
1136
1136
|
progress: {
|
|
1137
1137
|
async onStart(e) {
|
|
1138
|
-
a = await o?.showBusy?.(
|
|
1138
|
+
a = await o?.showBusy?.(q("workbook.saving", { name: e?.getName() ?? "" }));
|
|
1139
1139
|
},
|
|
1140
1140
|
onComplete() {
|
|
1141
1141
|
a?.();
|
|
@@ -1143,53 +1143,53 @@ function Sr(e, t) {
|
|
|
1143
1143
|
},
|
|
1144
1144
|
onWarnings: r ?? (async ({ warnings: e, origin: t, canCancel: n }) => {
|
|
1145
1145
|
a?.(), console.warn(`Not written to '${t.getName()}':\n${e.map((e) => ` ${e.message}`).join("\n")}`);
|
|
1146
|
-
let r =
|
|
1146
|
+
let r = q("dialog.writeWarnings.title"), i = t.getFormat(), s = (i ? (await T.getWriteFormats({ search: i }))[0] : void 0)?.description ?? i ?? "", c = q("dialog.writeWarnings.keep");
|
|
1147
1147
|
return n ? await o.showOptions({
|
|
1148
1148
|
title: r,
|
|
1149
|
-
type:
|
|
1150
|
-
description: `${
|
|
1149
|
+
type: ke.Warning,
|
|
1150
|
+
description: `${q("dialog.writeWarnings.confirm", { format: s })}\n\n${c}`,
|
|
1151
1151
|
options: [{
|
|
1152
1152
|
id: "Save",
|
|
1153
|
-
label: () =>
|
|
1153
|
+
label: () => q("dialog.save")
|
|
1154
1154
|
}, "Cancel"],
|
|
1155
1155
|
defaultOption: "Cancel"
|
|
1156
|
-
}) === "Save" && (a = await o?.showBusy?.(
|
|
1156
|
+
}) === "Save" && (a = await o?.showBusy?.(q("workbook.saving", { name: t?.getName() ?? "" })), !0) : (o.showOptions({
|
|
1157
1157
|
title: r,
|
|
1158
|
-
type:
|
|
1159
|
-
description: `${
|
|
1158
|
+
type: ke.Warning,
|
|
1159
|
+
description: `${q("dialog.writeWarnings.saved", { format: s })}\n\n${c}`,
|
|
1160
1160
|
options: ["Ok"]
|
|
1161
1161
|
}), !0);
|
|
1162
1162
|
})
|
|
1163
1163
|
}, c;
|
|
1164
1164
|
if (n) {
|
|
1165
|
-
let n = e.getOrigin(), r = t?.exts?.[0] ?? (n.getExtension() || "sxl"), a = `${i || n.getName() ||
|
|
1166
|
-
c = await
|
|
1165
|
+
let n = e.getOrigin(), r = t?.exts?.[0] ?? (n.getExtension() || "sxl"), a = `${i || n.getName() || q("workbook.defaultName")}.${r}`;
|
|
1166
|
+
c = await T.writeAs(e, a, {
|
|
1167
1167
|
...s,
|
|
1168
1168
|
prompt: !0
|
|
1169
1169
|
});
|
|
1170
|
-
} else c = await
|
|
1170
|
+
} else c = await T.write(e, void 0, s);
|
|
1171
1171
|
return c;
|
|
1172
1172
|
}, d = null;
|
|
1173
1173
|
return e.updateCommand("newWorkbook", { callback: async (e) => {
|
|
1174
|
-
let t =
|
|
1174
|
+
let t = T.canRead() && !a();
|
|
1175
1175
|
e?.source ? t && d ? await d({
|
|
1176
1176
|
url: e.source,
|
|
1177
1177
|
title: e.title
|
|
1178
1178
|
}) : xr(e.source, e.title) : t ? r({}) : xr();
|
|
1179
1179
|
} }), e.updateCommand("closeWorkbook", { callback: async () => {
|
|
1180
1180
|
a() && await o.showOptions({
|
|
1181
|
-
title:
|
|
1182
|
-
description:
|
|
1181
|
+
title: q("dialog.confirm.title"),
|
|
1182
|
+
description: q("dialog.unsavedChanges"),
|
|
1183
1183
|
options: [{
|
|
1184
1184
|
id: "Close",
|
|
1185
|
-
label: () =>
|
|
1185
|
+
label: () => q("dialog.close")
|
|
1186
1186
|
}, "Cancel"],
|
|
1187
1187
|
defaultOption: "Cancel"
|
|
1188
1188
|
}) !== "Close" || window.close();
|
|
1189
1189
|
} }), (async () => {
|
|
1190
|
-
let t = await
|
|
1190
|
+
let t = await T.getWriteFormats();
|
|
1191
1191
|
if (c) return;
|
|
1192
|
-
let i =
|
|
1192
|
+
let i = T.canWrite(), f = T.canRead();
|
|
1193
1193
|
if (i) {
|
|
1194
1194
|
let r = (e) => {
|
|
1195
1195
|
let r = e ? t.find((t) => t.key === e) : void 0;
|
|
@@ -1203,13 +1203,13 @@ function Sr(e, t) {
|
|
|
1203
1203
|
for (let n of t) {
|
|
1204
1204
|
let t = n.key;
|
|
1205
1205
|
e.updateCommand(`saveWorkbookAs${t}`, {
|
|
1206
|
-
label: () =>
|
|
1206
|
+
label: () => q("command.saveAsFormat.label", { format: n.description }),
|
|
1207
1207
|
groupLabels: {
|
|
1208
|
-
workbook: () =>
|
|
1209
|
-
saveWorkbookOptions: () =>
|
|
1208
|
+
workbook: () => q("command.saveAsFormat.workbook", { format: n.description }),
|
|
1209
|
+
saveWorkbookOptions: () => q("command.saveAsFormat.compact", { format: n.description })
|
|
1210
1210
|
},
|
|
1211
1211
|
tags: n.tags,
|
|
1212
|
-
description: () =>
|
|
1212
|
+
description: () => q("command.saveAsFormat", { format: n.description }),
|
|
1213
1213
|
icon: t === "CSV" ? "FileDownloadAsCSV" : t === "Excel" ? "FileDownloadAsExcel" : "FileDownloadAsSheet",
|
|
1214
1214
|
callback: () => {
|
|
1215
1215
|
r(t);
|
|
@@ -1236,7 +1236,7 @@ function Sr(e, t) {
|
|
|
1236
1236
|
autoSelect: e === a.length - 1
|
|
1237
1237
|
}).getEntireRange().copyFrom(t.getEntireRange());
|
|
1238
1238
|
}
|
|
1239
|
-
},
|
|
1239
|
+
}, K("op.importData")), i.close();
|
|
1240
1240
|
} catch (e) {
|
|
1241
1241
|
o.showError(e);
|
|
1242
1242
|
}
|
|
@@ -1245,9 +1245,9 @@ function Sr(e, t) {
|
|
|
1245
1245
|
tags: ["noTransaction", "noRepeat"],
|
|
1246
1246
|
callback: async (e = null) => {
|
|
1247
1247
|
let t = e;
|
|
1248
|
-
if (t ||
|
|
1249
|
-
let e = await
|
|
1250
|
-
return
|
|
1248
|
+
if (t || T.canRead() || (t = await (async () => {
|
|
1249
|
+
let e = await T.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
|
|
1250
|
+
return jt.openFileDialog(t.length ? t.join(",") : "*.*");
|
|
1251
1251
|
})(), t)) return p(t);
|
|
1252
1252
|
}
|
|
1253
1253
|
}), e.updateCommand("insertDataFromURL", {
|
|
@@ -1255,14 +1255,14 @@ function Sr(e, t) {
|
|
|
1255
1255
|
callback: async (e) => {
|
|
1256
1256
|
if (!e) {
|
|
1257
1257
|
let t = await o.showInput({
|
|
1258
|
-
title:
|
|
1259
|
-
description:
|
|
1260
|
-
inputLabel:
|
|
1258
|
+
title: q("dialog.importFromWeb.title"),
|
|
1259
|
+
description: q("dialog.importFromWeb.description"),
|
|
1260
|
+
inputLabel: q("dialog.webAddress.inputLabel"),
|
|
1261
1261
|
initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
|
|
1262
1262
|
propsInput: { style: { minWidth: "440px" } },
|
|
1263
1263
|
options: [{
|
|
1264
1264
|
id: "Import",
|
|
1265
|
-
label: () =>
|
|
1265
|
+
label: () => q("dialog.import")
|
|
1266
1266
|
}]
|
|
1267
1267
|
});
|
|
1268
1268
|
if (t.option !== "Import") return;
|
|
@@ -1279,11 +1279,11 @@ function Sr(e, t) {
|
|
|
1279
1279
|
}
|
|
1280
1280
|
}), f) {
|
|
1281
1281
|
let t = async () => !a() || await o.showOptions({
|
|
1282
|
-
title:
|
|
1283
|
-
description:
|
|
1282
|
+
title: q("dialog.confirm.title"),
|
|
1283
|
+
description: q("dialog.unsavedChanges"),
|
|
1284
1284
|
options: [{
|
|
1285
1285
|
id: "Open",
|
|
1286
|
-
label: () =>
|
|
1286
|
+
label: () => q("dialog.open")
|
|
1287
1287
|
}, "Cancel"],
|
|
1288
1288
|
defaultOption: "Cancel"
|
|
1289
1289
|
}) === "Open", i = async (e = null) => {
|
|
@@ -1305,14 +1305,14 @@ function Sr(e, t) {
|
|
|
1305
1305
|
let n = typeof e == "string" ? e : e?.url, r = typeof e == "string" ? void 0 : e?.title;
|
|
1306
1306
|
if (!n) {
|
|
1307
1307
|
let e = await o.showInput({
|
|
1308
|
-
title:
|
|
1309
|
-
description:
|
|
1310
|
-
inputLabel:
|
|
1308
|
+
title: q("dialog.openFromWeb.title"),
|
|
1309
|
+
description: q("dialog.openFromWeb.description"),
|
|
1310
|
+
inputLabel: q("dialog.webAddress.inputLabel"),
|
|
1311
1311
|
initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
|
|
1312
1312
|
propsInput: { style: { minWidth: "440px" } },
|
|
1313
1313
|
options: [{
|
|
1314
1314
|
id: "Open",
|
|
1315
|
-
label: () =>
|
|
1315
|
+
label: () => q("dialog.open")
|
|
1316
1316
|
}]
|
|
1317
1317
|
});
|
|
1318
1318
|
if (e.option !== "Open") return;
|
|
@@ -1332,8 +1332,8 @@ function Sr(e, t) {
|
|
|
1332
1332
|
c = !0, s && (s.current = null);
|
|
1333
1333
|
};
|
|
1334
1334
|
}
|
|
1335
|
-
var Cr =
|
|
1336
|
-
_(),
|
|
1335
|
+
var Cr = pt(G("studio:shortcutKeysDialog", () => import("./EBqYEw3Klx0M4x_J.mjs")).load);
|
|
1336
|
+
_(), y();
|
|
1337
1337
|
var wr = /* @__PURE__ */ new Set(["ui"]), Tr = (e) => {
|
|
1338
1338
|
let t = (e) => {
|
|
1339
1339
|
if (typeof e != "function") return e;
|
|
@@ -1344,7 +1344,7 @@ var wr = /* @__PURE__ */ new Set(["ui"]), Tr = (e) => {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
}, n = (e, n) => {
|
|
1346
1346
|
let r = t(e);
|
|
1347
|
-
return typeof r == "string" ?
|
|
1347
|
+
return typeof r == "string" ? It(r, n, Mt.getActive()) : void 0;
|
|
1348
1348
|
}, r = [];
|
|
1349
1349
|
for (let i of e.names()) if (!wr.has(i)) for (let a of e.keys(i)) {
|
|
1350
1350
|
let o = e.resolveDefinition(i, a);
|
|
@@ -1356,15 +1356,15 @@ var wr = /* @__PURE__ */ new Set(["ui"]), Tr = (e) => {
|
|
|
1356
1356
|
getDescription: () => n(o?.description, o?.params) ?? "",
|
|
1357
1357
|
getShortcut: () => t(o?.shortcut) ?? null,
|
|
1358
1358
|
getScope: () => i,
|
|
1359
|
-
getScopeLabel: () =>
|
|
1359
|
+
getScopeLabel: () => we.DefaultCommandCatalogService.getScopeLabel(i)
|
|
1360
1360
|
}
|
|
1361
1361
|
});
|
|
1362
1362
|
}
|
|
1363
1363
|
return { getAllCommands: () => r };
|
|
1364
1364
|
}, Er = (e) => {
|
|
1365
|
-
let { children: t, workbook: n, setWorkbook: r, workbookTitle: i, isDirty: a, refSave: o, fullscreenTarget: s } = e, c =
|
|
1365
|
+
let { children: t, workbook: n, setWorkbook: r, workbookTitle: i, isDirty: a, refSave: o, fullscreenTarget: s } = e, c = we.useCommandScope(), l = Ue(), { showModal: u } = _t(), d = Ke(), f = P(a);
|
|
1366
1366
|
f.current = a;
|
|
1367
|
-
let p =
|
|
1367
|
+
let p = D(() => {
|
|
1368
1368
|
let e = c?.getRoot().getRegistry();
|
|
1369
1369
|
if (!e) return;
|
|
1370
1370
|
let t = u(Cr, {
|
|
@@ -1376,7 +1376,7 @@ var wr = /* @__PURE__ */ new Set(["ui"]), Tr = (e) => {
|
|
|
1376
1376
|
}
|
|
1377
1377
|
});
|
|
1378
1378
|
}, [c, u]);
|
|
1379
|
-
|
|
1379
|
+
M(() => {
|
|
1380
1380
|
if (!c) return;
|
|
1381
1381
|
let e = c.getRoot().contribution();
|
|
1382
1382
|
return function(e, t) {
|
|
@@ -1392,8 +1392,8 @@ var wr = /* @__PURE__ */ new Set(["ui"]), Tr = (e) => {
|
|
|
1392
1392
|
} });
|
|
1393
1393
|
}(e, { showShortcuts: p }), () => e.remove();
|
|
1394
1394
|
}, [c, p]);
|
|
1395
|
-
let m =
|
|
1396
|
-
|
|
1395
|
+
let m = Ot("(prefers-color-scheme: dark)"), { themeMode: h } = Ge(), [g, _] = We(fe.Mode, de[fe.Mode]), [ee, v] = We(fe.DarkGrid, de[fe.DarkGrid]), [y, te] = We(fe.DarkImages, de[fe.DarkImages]);
|
|
1396
|
+
M(() => {
|
|
1397
1397
|
if (!c) return;
|
|
1398
1398
|
let e = c.getRoot().contribution();
|
|
1399
1399
|
return function(e, t) {
|
|
@@ -1418,26 +1418,26 @@ var wr = /* @__PURE__ */ new Set(["ui"]), Tr = (e) => {
|
|
|
1418
1418
|
setMode: _,
|
|
1419
1419
|
isDark: g === "dark" || !g && h === "dark",
|
|
1420
1420
|
systemDefaultDark: m,
|
|
1421
|
-
enableDarkGrid:
|
|
1422
|
-
setEnableDarkGrid:
|
|
1423
|
-
enableDarkImages:
|
|
1424
|
-
setEnableDarkImages:
|
|
1421
|
+
enableDarkGrid: ee,
|
|
1422
|
+
setEnableDarkGrid: v,
|
|
1423
|
+
enableDarkImages: y,
|
|
1424
|
+
setEnableDarkImages: te
|
|
1425
1425
|
}), () => e.remove();
|
|
1426
1426
|
}, [
|
|
1427
1427
|
c,
|
|
1428
1428
|
g,
|
|
1429
1429
|
h,
|
|
1430
1430
|
m,
|
|
1431
|
-
|
|
1432
|
-
b,
|
|
1433
|
-
_,
|
|
1431
|
+
ee,
|
|
1434
1432
|
y,
|
|
1435
|
-
|
|
1433
|
+
_,
|
|
1434
|
+
v,
|
|
1435
|
+
te
|
|
1436
1436
|
]);
|
|
1437
|
-
let [
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
}, [
|
|
1437
|
+
let [b, x] = We(Oe.Active, null), [ne, re] = F(() => Mt.getActive());
|
|
1438
|
+
M(() => Mt.addChangeListener(re), []), M(() => {
|
|
1439
|
+
b && b !== Mt.getActive() && Mt.setActive(b);
|
|
1440
|
+
}, [b]), M(() => {
|
|
1441
1441
|
if (!c) return;
|
|
1442
1442
|
let e = c.getRoot().contribution();
|
|
1443
1443
|
return function(e, t) {
|
|
@@ -1448,53 +1448,53 @@ var wr = /* @__PURE__ */ new Set(["ui"]), Tr = (e) => {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
});
|
|
1450
1450
|
}(e, {
|
|
1451
|
-
active:
|
|
1451
|
+
active: ne,
|
|
1452
1452
|
setActive: (e) => {
|
|
1453
|
-
|
|
1453
|
+
x(e);
|
|
1454
1454
|
}
|
|
1455
1455
|
}), () => e.remove();
|
|
1456
1456
|
}, [
|
|
1457
1457
|
c,
|
|
1458
|
-
|
|
1459
|
-
|
|
1458
|
+
ne,
|
|
1459
|
+
x
|
|
1460
1460
|
]);
|
|
1461
|
-
let
|
|
1462
|
-
|
|
1461
|
+
let ie = N(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: S, isFullscreenEnabled: C, toggleFullscreen: ae } = Re({ target: ie });
|
|
1462
|
+
M(() => {
|
|
1463
1463
|
if (!c) return;
|
|
1464
1464
|
let e = c.getRoot().contribution();
|
|
1465
1465
|
return function(e, t) {
|
|
1466
1466
|
e.updateCommand("fullScreenToggle", {
|
|
1467
1467
|
state: t.isFullscreenEnabled,
|
|
1468
|
-
disabledReasons: t.isFullscreenAvailable ? [] : [
|
|
1468
|
+
disabledReasons: t.isFullscreenAvailable ? [] : [K("reason.fullscreenUnavailable")],
|
|
1469
1469
|
icon: t.isFullscreenEnabled ? "FullScreenOff" : "FullScreen",
|
|
1470
1470
|
callback: () => {
|
|
1471
1471
|
t.toggleFullscreen();
|
|
1472
1472
|
}
|
|
1473
1473
|
});
|
|
1474
1474
|
}(e, {
|
|
1475
|
-
isFullscreenAvailable:
|
|
1476
|
-
isFullscreenEnabled:
|
|
1477
|
-
toggleFullscreen:
|
|
1475
|
+
isFullscreenAvailable: S,
|
|
1476
|
+
isFullscreenEnabled: C,
|
|
1477
|
+
toggleFullscreen: ae
|
|
1478
1478
|
}), () => e.remove();
|
|
1479
1479
|
}, [
|
|
1480
1480
|
c,
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1481
|
+
S,
|
|
1482
|
+
C,
|
|
1483
|
+
ae
|
|
1484
1484
|
]);
|
|
1485
|
-
let
|
|
1486
|
-
return
|
|
1485
|
+
let oe = be(!0);
|
|
1486
|
+
return M(() => {
|
|
1487
1487
|
if (!c) return;
|
|
1488
1488
|
let e = c.getRoot().contribution();
|
|
1489
1489
|
return function(e, t) {
|
|
1490
1490
|
e.updateCommand("protectWorkbook", {
|
|
1491
1491
|
tags: ["noTransaction", "noRepeat"],
|
|
1492
1492
|
callback: () => {
|
|
1493
|
-
t(
|
|
1493
|
+
t(w.Protection, { args: { tab: "workbook" } });
|
|
1494
1494
|
}
|
|
1495
1495
|
});
|
|
1496
|
-
}(e, (e, t) =>
|
|
1497
|
-
}, [c,
|
|
1496
|
+
}(e, (e, t) => oe.activate(e, t)), () => e.remove();
|
|
1497
|
+
}, [c, oe]), M(() => {
|
|
1498
1498
|
if (!c || !n) return;
|
|
1499
1499
|
let e = c.getRoot().contribution(), t = Sr(e, {
|
|
1500
1500
|
workbook: n,
|
|
@@ -1518,7 +1518,7 @@ var wr = /* @__PURE__ */ new Set(["ui"]), Tr = (e) => {
|
|
|
1518
1518
|
};
|
|
1519
1519
|
Er.displayName = "StudioCommandProvider";
|
|
1520
1520
|
var Dr = ({ renderWorkbook: e }) => {
|
|
1521
|
-
let t =
|
|
1521
|
+
let t = we.useCommandResolver(), n = P(null), r = Ke(), [i, a] = F(null), o = j((e) => {
|
|
1522
1522
|
let n = e.dataTransfer;
|
|
1523
1523
|
if (t && n) {
|
|
1524
1524
|
if (e.type === "dragenter" || e.type === "dragover") {
|
|
@@ -1534,7 +1534,7 @@ var Dr = ({ renderWorkbook: e }) => {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
e.preventDefault();
|
|
1536
1536
|
}
|
|
1537
|
-
}, [t]), s =
|
|
1537
|
+
}, [t]), s = D((e) => {
|
|
1538
1538
|
e.preventDefault();
|
|
1539
1539
|
let r = i;
|
|
1540
1540
|
if (a(null), r && t && (e.stopPropagation(), e.dataTransfer.files && e.dataTransfer.files.length > 0)) {
|
|
@@ -1559,15 +1559,15 @@ var Dr = ({ renderWorkbook: e }) => {
|
|
|
1559
1559
|
} }
|
|
1560
1560
|
});
|
|
1561
1561
|
} else {
|
|
1562
|
-
if (!
|
|
1562
|
+
if (!T.canRead()) return;
|
|
1563
1563
|
let n = e.dataTransfer.items?.[0], i = typeof window < "u" && window.isSecureContext ? n?.getAsFileSystemHandle?.() : void 0;
|
|
1564
1564
|
i ? i.then((e) => t.execute("openWorkbook", e?.kind === "file" ? e : r)).catch(() => t.execute("openWorkbook", r)) : t.execute("openWorkbook", r);
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
|
-
}, [t, i]), c =
|
|
1567
|
+
}, [t, i]), c = N(() => {
|
|
1568
1568
|
if (!i) return null;
|
|
1569
1569
|
let e = i === "insertImage";
|
|
1570
|
-
return
|
|
1570
|
+
return L(z, {
|
|
1571
1571
|
className: "drop-overlay",
|
|
1572
1572
|
sx: {
|
|
1573
1573
|
position: "absolute",
|
|
@@ -1578,12 +1578,12 @@ var Dr = ({ renderWorkbook: e }) => {
|
|
|
1578
1578
|
display: "flex",
|
|
1579
1579
|
justifyContent: "center",
|
|
1580
1580
|
alignItems: "center",
|
|
1581
|
-
backgroundColor: (e) =>
|
|
1581
|
+
backgroundColor: (e) => Dt(e.palette.primary.main, .46),
|
|
1582
1582
|
outline: (e) => `2px dashed ${e.palette.primary.main}`,
|
|
1583
1583
|
outlineOffset: "-6px",
|
|
1584
1584
|
borderRadius: 2
|
|
1585
1585
|
},
|
|
1586
|
-
children:
|
|
1586
|
+
children: R(wt, {
|
|
1587
1587
|
elevation: 6,
|
|
1588
1588
|
sx: {
|
|
1589
1589
|
display: "flex",
|
|
@@ -1595,11 +1595,11 @@ var Dr = ({ renderWorkbook: e }) => {
|
|
|
1595
1595
|
color: "text.primary",
|
|
1596
1596
|
"& .drop-overlay-icon": { color: "primary.main" }
|
|
1597
1597
|
},
|
|
1598
|
-
children: [
|
|
1598
|
+
children: [L(De, {
|
|
1599
1599
|
iconKey: e ? "InsertImage" : "FileOpen",
|
|
1600
1600
|
className: "drop-overlay-icon",
|
|
1601
1601
|
size: 32
|
|
1602
|
-
}),
|
|
1602
|
+
}), L(W, {
|
|
1603
1603
|
variant: "h6",
|
|
1604
1604
|
component: "span",
|
|
1605
1605
|
children: r(e ? "drop.insertImage" : "drop.open")
|
|
@@ -1607,7 +1607,7 @@ var Dr = ({ renderWorkbook: e }) => {
|
|
|
1607
1607
|
})
|
|
1608
1608
|
});
|
|
1609
1609
|
}, [i, r]);
|
|
1610
|
-
return
|
|
1610
|
+
return R(yt, { children: [e({
|
|
1611
1611
|
ref: n,
|
|
1612
1612
|
onDragStart: (e) => {
|
|
1613
1613
|
if (e.target.src) {
|
|
@@ -1620,44 +1620,44 @@ var Dr = ({ renderWorkbook: e }) => {
|
|
|
1620
1620
|
onDragOver: o,
|
|
1621
1621
|
onDrop: s
|
|
1622
1622
|
}), c] });
|
|
1623
|
-
}, Or =
|
|
1623
|
+
}, Or = A((e) => {
|
|
1624
1624
|
let { workbook: t, setWorkbook: n, refDocumentTitle: r, titleWorkbook: i, setWorkbookTitle: a, isDirty: o, initialCommandAnchor: s, renderWorkbook: c, refSave: l, host: u } = e;
|
|
1625
|
-
return
|
|
1625
|
+
return L(S, {
|
|
1626
1626
|
initialAnchor: s,
|
|
1627
|
-
children:
|
|
1627
|
+
children: L(Er, {
|
|
1628
1628
|
workbook: t,
|
|
1629
1629
|
setWorkbook: n,
|
|
1630
1630
|
workbookTitle: i,
|
|
1631
1631
|
isDirty: o,
|
|
1632
1632
|
refSave: l,
|
|
1633
1633
|
fullscreenTarget: u,
|
|
1634
|
-
children:
|
|
1634
|
+
children: L(Dr, { renderWorkbook: c })
|
|
1635
1635
|
})
|
|
1636
1636
|
});
|
|
1637
1637
|
});
|
|
1638
1638
|
Or.displayName = "CommandsWrapper";
|
|
1639
1639
|
var kr = {
|
|
1640
|
-
sort:
|
|
1641
|
-
hyperlink:
|
|
1642
|
-
find:
|
|
1643
|
-
tableNew:
|
|
1644
|
-
pivotTableNew:
|
|
1645
|
-
sparklineNew:
|
|
1646
|
-
sparklineEdit:
|
|
1647
|
-
namedDetails:
|
|
1648
|
-
insertFunction:
|
|
1649
|
-
resizeHeader:
|
|
1650
|
-
outlineSettings:
|
|
1651
|
-
fillSeries:
|
|
1652
|
-
workbookStatistics:
|
|
1653
|
-
password:
|
|
1654
|
-
pivotValueSettings:
|
|
1655
|
-
}, Ar = ["find"], jr =
|
|
1656
|
-
let { children: t } = e, n = _r(), r = n ? n.enqueueSnackbar : () => {}, i = n ? n.closeSnackbar : () => {}, a =
|
|
1640
|
+
sort: G("studio:sortDialog", () => import("./BpGM26PLFrWZ_yHf.mjs")).load,
|
|
1641
|
+
hyperlink: G("studio:hyperlinkDialog", () => import("./COqfTuI1CD6ni3Ud.mjs")).load,
|
|
1642
|
+
find: G("studio:findReplaceWindow", () => import("./BRMQ4xeNb77opm-1.mjs")).load,
|
|
1643
|
+
tableNew: G("studio:tableNewDialog", () => import("./C-KgnW4jDiThooxs.mjs")).load,
|
|
1644
|
+
pivotTableNew: G("studio:pivotTableNewDialog", () => import("./RyyEI_oZN8xFcoQ3.mjs")).load,
|
|
1645
|
+
sparklineNew: G("studio:sparklineNewDialog", () => import("./B1cQ-aC-kTFIGCrp.mjs")).load,
|
|
1646
|
+
sparklineEdit: G("studio:sparklineEditDialog", () => import("./CzRhY-X1xk9pictL.mjs")).load,
|
|
1647
|
+
namedDetails: G("studio:namedReferenceDialog", () => import("./CH_wXXHBGVO21Rde.mjs")).load,
|
|
1648
|
+
insertFunction: G("studio:insertFunctionDialog", () => import("./Bo9cQ9KhePNEkhJk.mjs")).load,
|
|
1649
|
+
resizeHeader: G("studio:resizeHeaderDialog", () => import("./Ddf1z5_p5ELccZ7i.mjs")).load,
|
|
1650
|
+
outlineSettings: G("studio:outlineSettingsDialog", () => import("./Bj4S_n8JXAuBXM9T.mjs")).load,
|
|
1651
|
+
fillSeries: G("studio:fillSeriesDialog", () => import("./DY5QdSHE8hkEt0Ou.mjs")).load,
|
|
1652
|
+
workbookStatistics: G("studio:workbookStatisticsDialog", () => import("./YY30sw8lszbgoJGu.mjs")).load,
|
|
1653
|
+
password: G("studio:passwordDialog", () => import("./DygvUSGGk0pHHo0b.mjs")).load,
|
|
1654
|
+
pivotValueSettings: G("studio:pivotValueSettingsDialog", () => import("./5bkyBAxCvP8hvBRt.mjs")).load
|
|
1655
|
+
}, Ar = ["find"], jr = A((e) => {
|
|
1656
|
+
let { children: t } = e, n = _r(), r = n ? n.enqueueSnackbar : () => {}, i = n ? n.closeSnackbar : () => {}, a = P(/* @__PURE__ */ new Set()), o = P(null), s = P(null), [c, l] = F({
|
|
1657
1657
|
label: null,
|
|
1658
1658
|
progress: null
|
|
1659
|
-
}), u =
|
|
1660
|
-
|
|
1659
|
+
}), u = Ke(), d = At.EmptyObject, f = gt(d), p = vt(d), m = I(d), h = P(!1);
|
|
1660
|
+
M(() => {
|
|
1661
1661
|
if (h.current) return;
|
|
1662
1662
|
h.current = !0;
|
|
1663
1663
|
let e = window, t = e.requestIdleCallback ?? ((e) => setTimeout(e, 500)), n = e.cancelIdleCallback ?? clearTimeout, r = t(() => {
|
|
@@ -1665,7 +1665,7 @@ var kr = {
|
|
|
1665
1665
|
});
|
|
1666
1666
|
return () => n(r);
|
|
1667
1667
|
}, []);
|
|
1668
|
-
let g =
|
|
1668
|
+
let g = P(/* @__PURE__ */ new Set()), _ = N(() => {
|
|
1669
1669
|
let e = (e, t) => {
|
|
1670
1670
|
if (t?.onceKey) {
|
|
1671
1671
|
if (g.current.has(t.onceKey)) return;
|
|
@@ -1673,16 +1673,16 @@ var kr = {
|
|
|
1673
1673
|
e.add(t.onceKey), g.current = e;
|
|
1674
1674
|
}
|
|
1675
1675
|
let n = {
|
|
1676
|
-
variant: t?.type ??
|
|
1676
|
+
variant: t?.type ?? ke.Info,
|
|
1677
1677
|
anchorOrigin: {
|
|
1678
1678
|
vertical: "top",
|
|
1679
1679
|
horizontal: "center"
|
|
1680
1680
|
},
|
|
1681
1681
|
preventDuplicate: t?.preventDuplicate,
|
|
1682
|
-
persist: t?.persist ?? t?.type ===
|
|
1683
|
-
action: (e) =>
|
|
1682
|
+
persist: t?.persist ?? t?.type === ke.Error,
|
|
1683
|
+
action: (e) => L(V, {
|
|
1684
1684
|
onClick: () => i(e),
|
|
1685
|
-
children:
|
|
1685
|
+
children: L(De, { iconKey: "Cancel" })
|
|
1686
1686
|
})
|
|
1687
1687
|
};
|
|
1688
1688
|
t?.enqueueProps && Object.assign(n, t.enqueueProps), e || console.log("message is 'null'", t), r(e ?? "Alert", n);
|
|
@@ -1695,8 +1695,8 @@ var kr = {
|
|
|
1695
1695
|
...t,
|
|
1696
1696
|
label: e
|
|
1697
1697
|
});
|
|
1698
|
-
let r =
|
|
1699
|
-
a.current.delete(n) && (a.current.size > 0 || (
|
|
1698
|
+
let r = Le(() => {
|
|
1699
|
+
a.current.delete(n) && (a.current.size > 0 || (ft(o.current), s.current = null, l((e) => e.label === null && e.progress === null ? e : {
|
|
1700
1700
|
label: null,
|
|
1701
1701
|
progress: null
|
|
1702
1702
|
})));
|
|
@@ -1707,11 +1707,11 @@ var kr = {
|
|
|
1707
1707
|
progress: n
|
|
1708
1708
|
});
|
|
1709
1709
|
}, (e) => {
|
|
1710
|
-
s.current = e, typeof e == "string" ?
|
|
1710
|
+
s.current = e, typeof e == "string" ? ht(o.current, e) : l((t) => ({
|
|
1711
1711
|
...t,
|
|
1712
1712
|
label: e
|
|
1713
1713
|
}));
|
|
1714
|
-
}), i =
|
|
1714
|
+
}), i = ht(o.current, typeof e == "string" ? e : void 0);
|
|
1715
1715
|
return i ? i.then(() => r) : r;
|
|
1716
1716
|
},
|
|
1717
1717
|
showWindow: (e, t) => {
|
|
@@ -1726,17 +1726,17 @@ var kr = {
|
|
|
1726
1726
|
showOptions: p,
|
|
1727
1727
|
showInput: m,
|
|
1728
1728
|
showError: (t) => {
|
|
1729
|
-
let n, r =
|
|
1730
|
-
typeof t == "string" ? i = t : t instanceof Error && (n = t, t.message && (i = u(t.message))), t instanceof
|
|
1729
|
+
let n, r = ke.Error, i = u("error.unknown");
|
|
1730
|
+
typeof t == "string" ? i = t : t instanceof Error && (n = t, t.message && (i = u(t.message))), t instanceof Ft && (r = ke.Info), e(i, {
|
|
1731
1731
|
type: r,
|
|
1732
1732
|
enqueueProps: { error: n }
|
|
1733
1733
|
});
|
|
1734
1734
|
}
|
|
1735
1735
|
};
|
|
1736
|
-
}, [u]),
|
|
1736
|
+
}, [u]), ee = N(() => L(et, {
|
|
1737
1737
|
ref: o,
|
|
1738
1738
|
autoStart: !1,
|
|
1739
|
-
icon:
|
|
1739
|
+
icon: L(tt, { sx: {
|
|
1740
1740
|
transform: "scale(0.7)",
|
|
1741
1741
|
marginLeft: "-6px"
|
|
1742
1742
|
} }),
|
|
@@ -1753,19 +1753,19 @@ var kr = {
|
|
|
1753
1753
|
pointerEvents: "none"
|
|
1754
1754
|
}
|
|
1755
1755
|
}), [c.label, c.progress]);
|
|
1756
|
-
return
|
|
1756
|
+
return R(E, {
|
|
1757
1757
|
notifier: _,
|
|
1758
|
-
children: [
|
|
1758
|
+
children: [ee, t]
|
|
1759
1759
|
});
|
|
1760
1760
|
});
|
|
1761
1761
|
jr.displayName = "StudioNotifierProvider";
|
|
1762
|
-
var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", Nr =
|
|
1763
|
-
let { children: n, title: r, taskPanes: i, onSelect: a, selected: o, registry: s =
|
|
1762
|
+
var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", Nr = A(k((e, t) => {
|
|
1763
|
+
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 = Ve(), h = N(() => i.map((t) => {
|
|
1764
1764
|
let n = s.getRegisteredTaskPane(t);
|
|
1765
1765
|
if (!n) return null;
|
|
1766
1766
|
let r = n.getIcon?.();
|
|
1767
|
-
typeof r == "string" && (r =
|
|
1768
|
-
let i = t === o, a = r ?
|
|
1767
|
+
typeof r == "string" && (r = L(De, { iconKey: r }));
|
|
1768
|
+
let i = t === o, a = r ? L(z, {
|
|
1769
1769
|
sx: {
|
|
1770
1770
|
display: "inline-block",
|
|
1771
1771
|
transform: p ? "rotate(-90deg)" : "rotate(90deg)",
|
|
@@ -1773,20 +1773,20 @@ var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1773
1773
|
color: (e) => e.palette.text.secondary
|
|
1774
1774
|
},
|
|
1775
1775
|
children: r
|
|
1776
|
-
}) : null, c = !r || !l && i, u =
|
|
1776
|
+
}) : null, c = !r || !l && i, u = L(z, {
|
|
1777
1777
|
sx: {
|
|
1778
1778
|
display: "grid",
|
|
1779
1779
|
gridTemplateColumns: c ? "1fr" : "0fr",
|
|
1780
1780
|
opacity: +!!c,
|
|
1781
1781
|
transition: (e) => e.transitions.create(["grid-template-columns", "opacity"], { duration: e.transitions.duration.short })
|
|
1782
1782
|
},
|
|
1783
|
-
children:
|
|
1783
|
+
children: L(z, {
|
|
1784
1784
|
sx: {
|
|
1785
1785
|
overflow: "hidden",
|
|
1786
1786
|
minWidth: 0,
|
|
1787
1787
|
minHeight: 0
|
|
1788
1788
|
},
|
|
1789
|
-
children:
|
|
1789
|
+
children: L(W, {
|
|
1790
1790
|
component: "div",
|
|
1791
1791
|
sx: {
|
|
1792
1792
|
textTransform: "none",
|
|
@@ -1799,13 +1799,13 @@ var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1799
1799
|
})
|
|
1800
1800
|
})
|
|
1801
1801
|
});
|
|
1802
|
-
return
|
|
1802
|
+
return L(H, {
|
|
1803
1803
|
value: t,
|
|
1804
|
-
label:
|
|
1804
|
+
label: L(lt, {
|
|
1805
1805
|
disableInteractive: !0,
|
|
1806
1806
|
title: n.getTitle() ?? "",
|
|
1807
1807
|
placement: "left-start",
|
|
1808
|
-
children:
|
|
1808
|
+
children: R(z, {
|
|
1809
1809
|
sx: {
|
|
1810
1810
|
padding: "0px 0px",
|
|
1811
1811
|
writingMode: p ? "vertical-lr" : "vertical-rl",
|
|
@@ -1825,7 +1825,7 @@ var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1825
1825
|
minHeight: "0px",
|
|
1826
1826
|
borderRadius: "4px"
|
|
1827
1827
|
},
|
|
1828
|
-
className:
|
|
1828
|
+
className: b("taskpane-strip-item", { "Mui-selected": i }),
|
|
1829
1829
|
onClick: () => e.onSelect(t)
|
|
1830
1830
|
}, t);
|
|
1831
1831
|
}), [
|
|
@@ -1836,8 +1836,8 @@ var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1836
1836
|
p,
|
|
1837
1837
|
l,
|
|
1838
1838
|
m
|
|
1839
|
-
]), g =
|
|
1840
|
-
return
|
|
1839
|
+
]), g = ze(t, () => ({ isTaskPaneStrip: () => !0 }), []), _ = N(() => b("taskpane-strip", d), [d]);
|
|
1840
|
+
return L(z, {
|
|
1841
1841
|
ref: g,
|
|
1842
1842
|
className: _,
|
|
1843
1843
|
sx: {
|
|
@@ -1847,7 +1847,7 @@ var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1847
1847
|
...c
|
|
1848
1848
|
},
|
|
1849
1849
|
...f,
|
|
1850
|
-
children:
|
|
1850
|
+
children: L(U, {
|
|
1851
1851
|
orientation: "vertical",
|
|
1852
1852
|
variant: "scrollable",
|
|
1853
1853
|
value: o,
|
|
@@ -1866,9 +1866,9 @@ var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1866
1866
|
})
|
|
1867
1867
|
});
|
|
1868
1868
|
})), Pr = (e) => {
|
|
1869
|
-
let { title: t, icon: n, onClose: r, readOnly: i, focused: a, ...o } = e, s =
|
|
1870
|
-
return B
|
|
1871
|
-
className:
|
|
1869
|
+
let { title: t, icon: n, onClose: r, readOnly: i, focused: a, ...o } = e, s = P(null), c = Ke();
|
|
1870
|
+
return L(B, {
|
|
1871
|
+
className: b({ "Mui-selected": a }),
|
|
1872
1872
|
sx: {
|
|
1873
1873
|
display: "flex",
|
|
1874
1874
|
flex: "1 1 %0",
|
|
@@ -1882,11 +1882,11 @@ var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1882
1882
|
opacity: 1,
|
|
1883
1883
|
transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
|
|
1884
1884
|
},
|
|
1885
|
-
backgroundColor: (e) =>
|
|
1885
|
+
backgroundColor: (e) => Dt(e.palette.action.hover, .03),
|
|
1886
1886
|
borderBottom: `solid ${Mr} 1px`
|
|
1887
1887
|
},
|
|
1888
1888
|
...o,
|
|
1889
|
-
children:
|
|
1889
|
+
children: R(z, {
|
|
1890
1890
|
sx: {
|
|
1891
1891
|
display: "flex",
|
|
1892
1892
|
flex: "1 1 10%",
|
|
@@ -1897,15 +1897,15 @@ var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1897
1897
|
marginLeft: (e) => e.spacing(1),
|
|
1898
1898
|
marginRight: (e) => e.spacing(1)
|
|
1899
1899
|
},
|
|
1900
|
-
children: [
|
|
1900
|
+
children: [L(z, {
|
|
1901
1901
|
sx: {
|
|
1902
1902
|
flex: "1 1 100%",
|
|
1903
1903
|
paddingLeft: (e) => e.spacing(1)
|
|
1904
1904
|
},
|
|
1905
1905
|
children: t
|
|
1906
|
-
}),
|
|
1906
|
+
}), L(ot, {
|
|
1907
1907
|
label: c("taskPane.close"),
|
|
1908
|
-
children:
|
|
1908
|
+
children: L(V, {
|
|
1909
1909
|
"aria-label": "close",
|
|
1910
1910
|
sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
|
|
1911
1911
|
touchRippleRef: s,
|
|
@@ -1915,14 +1915,14 @@ var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1915
1915
|
onPointerUp: () => {
|
|
1916
1916
|
r();
|
|
1917
1917
|
},
|
|
1918
|
-
children:
|
|
1918
|
+
children: L(De, { iconKey: "Close" })
|
|
1919
1919
|
})
|
|
1920
1920
|
})]
|
|
1921
1921
|
})
|
|
1922
1922
|
});
|
|
1923
|
-
}, Fr =
|
|
1924
|
-
let { model: n, side: r, ...i } = e, a =
|
|
1925
|
-
return
|
|
1923
|
+
}, Fr = k((e, t) => {
|
|
1924
|
+
let { model: n, side: r, ...i } = e, a = kt(), o = `solid ${Mr} 1px`, s = `${a.shape.borderRadius ?? 4}px`, c = `${a.spacing?.(.5) ?? 4}px`;
|
|
1925
|
+
return L(ce, {
|
|
1926
1926
|
model: n,
|
|
1927
1927
|
ref: t,
|
|
1928
1928
|
propsFrame: { style: {
|
|
@@ -1947,85 +1947,85 @@ var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1947
1947
|
flex: "1 1 100%",
|
|
1948
1948
|
display: "flex",
|
|
1949
1949
|
boxSizing: "border-box"
|
|
1950
|
-
}, zr =
|
|
1951
|
-
let { mainElement: n, sidebarElement: r, position: i, persistKey: a, onPositionChange: o, className: s, style: c, taskSide: l = "right", ...u } = e, [d, f] =
|
|
1952
|
-
g ?
|
|
1953
|
-
let
|
|
1950
|
+
}, zr = A(k((e, t) => {
|
|
1951
|
+
let { mainElement: n, sidebarElement: r, position: i, persistKey: a, onPositionChange: o, className: s, style: c, taskSide: l = "right", ...u } = e, [d, f] = We(a ?? null, Lr), p = kt(), [m, { width: h }] = He(), g = h > 530 || h === 0, _ = P(null), ee, v, y = null, te = 4, ne = 13;
|
|
1952
|
+
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", te = 13, ne = 4);
|
|
1953
|
+
let re, ie = n, S = r, C = l !== "right", ae = g ? "row" : "column", oe = C && S ? "before" : "after", se = `${ae}:${oe}`, ce = a ? d[se] : void 0, w = ce == null ? ((e, t) => {
|
|
1954
1954
|
if (e == null) return "40%";
|
|
1955
1955
|
if (typeof e == "number" || typeof e == "string") return e;
|
|
1956
1956
|
let n = e[t];
|
|
1957
1957
|
return n == null ? "40%" : `${n}%`;
|
|
1958
|
-
})(i,
|
|
1958
|
+
})(i, se) : `${ce}%`, le = a || o ? (e) => {
|
|
1959
1959
|
a && f((t) => ({
|
|
1960
1960
|
...t,
|
|
1961
|
-
[
|
|
1961
|
+
[se]: e.percent
|
|
1962
1962
|
})), o?.(e, {
|
|
1963
|
-
orientation:
|
|
1964
|
-
side:
|
|
1965
|
-
key:
|
|
1963
|
+
orientation: ae,
|
|
1964
|
+
side: oe,
|
|
1965
|
+
key: se
|
|
1966
1966
|
});
|
|
1967
1967
|
} : void 0;
|
|
1968
|
-
|
|
1968
|
+
C && S ? (ie = r, S = n, v = { style: {
|
|
1969
1969
|
flexDirection: "column",
|
|
1970
1970
|
boxSizing: "border-box",
|
|
1971
1971
|
paddingRight: "2px"
|
|
1972
|
-
} },
|
|
1972
|
+
} }, ee = {}, re = {
|
|
1973
1973
|
fixedPane: "before",
|
|
1974
|
-
position:
|
|
1974
|
+
position: w,
|
|
1975
1975
|
minBefore: g ? "280px" : "120px",
|
|
1976
1976
|
splitDirection: g ? "row" : "column"
|
|
1977
|
-
}) : (
|
|
1977
|
+
}) : (ee = { style: {
|
|
1978
1978
|
flexDirection: "column",
|
|
1979
1979
|
marginRight: r ? void 0 : "6px"
|
|
1980
|
-
} },
|
|
1980
|
+
} }, v = { style: {
|
|
1981
1981
|
marginLeft: g ? "0px" : "4px",
|
|
1982
1982
|
marginRight: g ? "8px" : "4px"
|
|
1983
|
-
} },
|
|
1983
|
+
} }, re = {
|
|
1984
1984
|
fixedPane: "after",
|
|
1985
|
-
position:
|
|
1985
|
+
position: w,
|
|
1986
1986
|
minAfter: g ? "280px" : "120px",
|
|
1987
1987
|
splitDirection: g ? "row" : "column"
|
|
1988
1988
|
});
|
|
1989
|
-
let
|
|
1989
|
+
let ue = x([
|
|
1990
1990
|
_,
|
|
1991
1991
|
m,
|
|
1992
1992
|
t
|
|
1993
1993
|
]);
|
|
1994
|
-
return
|
|
1995
|
-
ref:
|
|
1994
|
+
return L(Pe, {
|
|
1995
|
+
ref: ue,
|
|
1996
1996
|
className: s,
|
|
1997
1997
|
style: c ? {
|
|
1998
1998
|
...Rr,
|
|
1999
1999
|
...c
|
|
2000
2000
|
} : Rr,
|
|
2001
2001
|
...u,
|
|
2002
|
-
...
|
|
2003
|
-
onPositionChange:
|
|
2002
|
+
...re,
|
|
2003
|
+
onPositionChange: le,
|
|
2004
2004
|
propsResizer: {
|
|
2005
|
-
className:
|
|
2005
|
+
className: b("styled-resizer", Ir),
|
|
2006
2006
|
style: {
|
|
2007
2007
|
minWidth: g ? "7px" : void 0,
|
|
2008
2008
|
minHeight: g ? void 0 : "6px",
|
|
2009
|
-
maskImage: `url("data:image/svg+xml,%3Csvg width='${
|
|
2009
|
+
maskImage: `url("data:image/svg+xml,%3Csvg width='${te}' height='${ne}' viewBox='0 0 ${te} ${ne}' 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")`,
|
|
2010
2010
|
maskRepeat: "no-repeat",
|
|
2011
|
-
maskPosition:
|
|
2011
|
+
maskPosition: C ? g ? "center center" : "bottom center" : g ? "left center" : "top center"
|
|
2012
2012
|
}
|
|
2013
2013
|
},
|
|
2014
|
-
elementBefore:
|
|
2015
|
-
propsPaneBefore:
|
|
2016
|
-
elementAfter:
|
|
2017
|
-
propsPaneAfter:
|
|
2014
|
+
elementBefore: ie,
|
|
2015
|
+
propsPaneBefore: ee,
|
|
2016
|
+
elementAfter: S,
|
|
2017
|
+
propsPaneAfter: v
|
|
2018
2018
|
});
|
|
2019
2019
|
}));
|
|
2020
2020
|
zr.displayName = "StudioSplitPane";
|
|
2021
|
-
var Br = () =>
|
|
2021
|
+
var Br = () => L("div", { style: {
|
|
2022
2022
|
flex: "none",
|
|
2023
2023
|
height: 0,
|
|
2024
2024
|
borderTop: "solid var(--sxl-color-base-border, light-dark(rgba(0, 0, 0, 0.26), rgba(255, 255, 255, 0.3))) 1px"
|
|
2025
2025
|
} }), Vr = (e, t) => {
|
|
2026
|
-
let n = (e) =>
|
|
2026
|
+
let n = (e) => L(O.Fragment, { children: t[e] }, e);
|
|
2027
2027
|
if (e === "bottom") {
|
|
2028
|
-
let e = t.statusBar && t.formulaBar ?
|
|
2028
|
+
let e = t.statusBar && t.formulaBar ? L(Br, {}, "divider") : null;
|
|
2029
2029
|
return [
|
|
2030
2030
|
n("toolbar"),
|
|
2031
2031
|
n("main"),
|
|
@@ -2042,39 +2042,39 @@ var Br = () => B("div", { style: {
|
|
|
2042
2042
|
];
|
|
2043
2043
|
}, Hr = (e) => {
|
|
2044
2044
|
let { groups: t } = e;
|
|
2045
|
-
return
|
|
2045
|
+
return L(z, {
|
|
2046
2046
|
role: "menu",
|
|
2047
2047
|
sx: {
|
|
2048
2048
|
paddingTop: "4px",
|
|
2049
2049
|
paddingBottom: "4px"
|
|
2050
2050
|
},
|
|
2051
|
-
children: t.map((e, t) =>
|
|
2051
|
+
children: t.map((e, t) => R(Je, { children: [t > 0 ? L(rt, { orientation: "horizontal" }) : null, e.map((e) => L(at, {
|
|
2052
2052
|
role: e.checked === void 0 ? "menuitem" : "menuitemradio",
|
|
2053
2053
|
"aria-checked": e.checked,
|
|
2054
2054
|
disabled: e.disabled,
|
|
2055
2055
|
selected: e.checked,
|
|
2056
|
-
icon: e.checked ?
|
|
2056
|
+
icon: e.checked ? L(ct, {}) : void 0,
|
|
2057
2057
|
onClick: e.run,
|
|
2058
2058
|
children: e.label
|
|
2059
2059
|
}, e.key))] }, t))
|
|
2060
2060
|
});
|
|
2061
|
-
}, Ur = (e) =>
|
|
2062
|
-
let { pivot: t, name: n, source: r, onError: i } = e, a =
|
|
2061
|
+
}, Ur = (e) => L(Hr, { ...e }), Wr = (e) => {
|
|
2062
|
+
let { pivot: t, name: n, source: r, onError: i } = e, a = Ke(), o = t.getWorksheet(), s = o.getProtection().isLocked(), c = N(() => ({ scope: o.getName() }), [o]), l = D((e, n) => {
|
|
2063
2063
|
n.reason === "accept" && e !== t.getName() && t.setName(e).catch(i);
|
|
2064
|
-
}, [t, i]), u =
|
|
2065
|
-
if (e.length === 0 || e.length > 255) throw new
|
|
2064
|
+
}, [t, i]), u = D((e) => {
|
|
2065
|
+
if (e.length === 0 || e.length > 255) throw new Pt(a("error.pivotTable.nameInvalid"));
|
|
2066
2066
|
let n = o.getPivotTables().getByName(e);
|
|
2067
|
-
if (n && n.getName() !== t.getName()) throw new
|
|
2067
|
+
if (n && n.getName() !== t.getName()) throw new Pt(a("error.pivotTable.nameExists"));
|
|
2068
2068
|
}, [
|
|
2069
2069
|
o,
|
|
2070
2070
|
t,
|
|
2071
2071
|
a
|
|
2072
|
-
]), d =
|
|
2072
|
+
]), d = D((e, n) => {
|
|
2073
2073
|
if (n.reason !== "accept") return;
|
|
2074
|
-
let r =
|
|
2074
|
+
let r = Wt(e);
|
|
2075
2075
|
r && t.setSource(typeof r == "string" ? r : r.at(0)).catch(i);
|
|
2076
2076
|
}, [t, i]);
|
|
2077
|
-
return
|
|
2077
|
+
return R(z, {
|
|
2078
2078
|
className: "sxl-pivot-table-header",
|
|
2079
2079
|
sx: {
|
|
2080
2080
|
display: "flex",
|
|
@@ -2082,14 +2082,14 @@ var Br = () => B("div", { style: {
|
|
|
2082
2082
|
rowGap: (e) => e.spacing(1),
|
|
2083
2083
|
paddingTop: (e) => e.spacing(1)
|
|
2084
2084
|
},
|
|
2085
|
-
children: [
|
|
2085
|
+
children: [L(ie, {
|
|
2086
2086
|
formName: "name",
|
|
2087
2087
|
value: n,
|
|
2088
2088
|
changeOn: "done",
|
|
2089
2089
|
onDone: l,
|
|
2090
2090
|
onValidate: u,
|
|
2091
2091
|
disabled: s
|
|
2092
|
-
}),
|
|
2092
|
+
}), L(re, {
|
|
2093
2093
|
grammar: "reference",
|
|
2094
2094
|
formName: "source",
|
|
2095
2095
|
label: a("pivotTableNew.source"),
|
|
@@ -2102,31 +2102,31 @@ var Br = () => B("div", { style: {
|
|
|
2102
2102
|
disabled: s || r === null
|
|
2103
2103
|
})]
|
|
2104
2104
|
});
|
|
2105
|
-
}, Gr = (e) =>
|
|
2105
|
+
}, Gr = (e) => L(Wr, { ...e }), Kr = (e) => L(oe, {
|
|
2106
2106
|
renderMenu: Ur,
|
|
2107
2107
|
renderFilter: p,
|
|
2108
2108
|
renderHeader: Gr,
|
|
2109
2109
|
...e
|
|
2110
|
-
}), qr =
|
|
2110
|
+
}), qr = mt(G("studio:dataValidationDetailsTaskPane", () => import("./DIbfqL2fimGtUgNG.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), Jr = zt({
|
|
2111
2111
|
EagerStudio: () => Qr,
|
|
2112
2112
|
default: () => Qr
|
|
2113
2113
|
});
|
|
2114
|
-
s(),
|
|
2115
|
-
key:
|
|
2114
|
+
s(), C.registerTaskPane({
|
|
2115
|
+
key: w.PivotTable,
|
|
2116
2116
|
component: Kr
|
|
2117
|
-
}, !0),
|
|
2117
|
+
}, !0), Te.register({
|
|
2118
2118
|
key: "changeShapeGallery",
|
|
2119
2119
|
contributions: { shapeToolbar: {
|
|
2120
2120
|
order: -1,
|
|
2121
2121
|
divider: "after"
|
|
2122
2122
|
} },
|
|
2123
|
-
render: (e) =>
|
|
2123
|
+
render: (e) => L(v, {
|
|
2124
2124
|
...e,
|
|
2125
2125
|
commandKey: "changeShape",
|
|
2126
|
-
excludeCategories:
|
|
2126
|
+
excludeCategories: Vt
|
|
2127
2127
|
})
|
|
2128
|
-
}, !0),
|
|
2129
|
-
let e =
|
|
2128
|
+
}, !0), he("shape", () => import("./cvEDG_d_5doDWQcv.mjs").then((e) => e.ShapeFormatPanel)), he("chart", () => import("./DR08Lb6lKvuO-kK7.mjs").then((e) => e.ChartFormatPanel)), (() => {
|
|
2129
|
+
let e = we.DefaultCommandButtonRegistry, t = [];
|
|
2130
2130
|
t.push(e.register({
|
|
2131
2131
|
key: "changePictureOptions",
|
|
2132
2132
|
defaultKey: "changePictureFromFile",
|
|
@@ -2163,10 +2163,10 @@ s(), T.registerTaskPane({
|
|
|
2163
2163
|
members: [
|
|
2164
2164
|
{
|
|
2165
2165
|
key: "cropToShapeGallery",
|
|
2166
|
-
render: (e) =>
|
|
2166
|
+
render: (e) => L(v, {
|
|
2167
2167
|
...e,
|
|
2168
2168
|
commandKey: "cropToShape",
|
|
2169
|
-
excludeCategories:
|
|
2169
|
+
excludeCategories: Vt
|
|
2170
2170
|
})
|
|
2171
2171
|
},
|
|
2172
2172
|
"cropAspectOptions",
|
|
@@ -2179,12 +2179,12 @@ s(), T.registerTaskPane({
|
|
|
2179
2179
|
divider: "after"
|
|
2180
2180
|
} }
|
|
2181
2181
|
}, !0));
|
|
2182
|
-
})(), n(),
|
|
2183
|
-
key:
|
|
2182
|
+
})(), n(), C.registerTaskPane({
|
|
2183
|
+
key: w.DataValidation,
|
|
2184
2184
|
component: qr
|
|
2185
|
-
}, !0),
|
|
2186
|
-
key:
|
|
2187
|
-
component:
|
|
2185
|
+
}, !0), C.registerTaskPane({
|
|
2186
|
+
key: w.ConditionalFormat,
|
|
2187
|
+
component: Bt
|
|
2188
2188
|
}, !0), a(), i(), r(), l(), e(), o(), d();
|
|
2189
2189
|
var Yr = () => {
|
|
2190
2190
|
let e, t, n = new Promise((n, r) => {
|
|
@@ -2203,169 +2203,169 @@ var Yr = () => {
|
|
|
2203
2203
|
}, Xr = (e, t) => {
|
|
2204
2204
|
if (!e) return {};
|
|
2205
2205
|
let { colorSchemes: n, ...r } = e, i = n?.[t ? "dark" : "light"];
|
|
2206
|
-
return i && typeof i == "object" ?
|
|
2207
|
-
}, Zr = "taskPanePosition", Qr =
|
|
2208
|
-
let { host: r, scopeClass: i, square: a, elevation: o, variant: s, onWorkbookLoad: l,
|
|
2209
|
-
|
|
2210
|
-
}, []),
|
|
2211
|
-
|
|
2212
|
-
let
|
|
2213
|
-
light:
|
|
2214
|
-
dark:
|
|
2215
|
-
}), [
|
|
2216
|
-
|
|
2206
|
+
return i && typeof i == "object" ? At.deepMerge(r, i) : r;
|
|
2207
|
+
}, Zr = "taskPanePosition", Qr = A(k((e, n) => {
|
|
2208
|
+
let { host: r, scopeClass: i, square: a, elevation: o, variant: s, onWorkbookLoad: l, onRenderSettled: d, prefetch: p, onDocumentError: g, renderDocumentError: _ = c, propsDocumentError: v, propsTaskPaneArea: y, renderTaskPaneArea: b = $r, taskPaneSide: x = "right", onKeyDown: re, workbook: ie, onWorkbookChange: S, logo: C, topLeft: ae, topRight: oe, muiTheme: ce, tokens: w, cssBaseline: he, autoFocus: be = !1, title: Te, onDirtyChange: ke, propsDocumentTitle: E, renderDocumentLoading: Pe = t, propsDocumentLoading: Le, propsWorkbook: Re, showFormulaBar: Ve, propsFormulaBar: He, renderFormulaBar: Ue, formulaBarPlacement: Ke, virtualKeyboard: O = "float", editable: qe, showStatusBar: Je, propsStatusBar: Ye, renderStatusBar: Xe, propsToolbar: k, renderToolbar: Ze } = e, A = P(null), Qe = P(null), $e = P(null), et = D(() => {
|
|
2209
|
+
$e.current?.getNamedCollectionEditorElement?.()?.focus?.();
|
|
2210
|
+
}, []), tt = ((e, t = typeof window > "u" ? "mouse" : je.detectIt().primaryInput) => e === "top" || e === "bottom" ? e : t === "touch" ? "bottom" : "top")(Ke), rt = tt === "bottom" ? O : "none", { inset: at, offsetTop: ot } = Be(rt === "resize"), ct = D(g ?? (() => {}), [g]), lt = D(ke ?? (() => {}), [ke]), ut = E?.placeHolder, [ft] = We(fe.Mode, de[fe.Mode]), { themeMode: pt } = Ge({ mode: ft ?? void 0 }), [mt] = We(Oe.Active, null), ht = P(mt);
|
|
2211
|
+
ht.current = mt;
|
|
2212
|
+
let I = N(() => ({
|
|
2213
|
+
light: dt(!1, At.deepMerge(Xr(ce, !1), u(w?.light?.app))),
|
|
2214
|
+
dark: dt(!0, At.deepMerge(Xr(ce, !0), u(w?.dark?.app)))
|
|
2215
|
+
}), [ce, w]), gt = pt === "dark", _t = N(() => m(I.light, I.dark, `.${i}`, w), [
|
|
2216
|
+
I,
|
|
2217
2217
|
i,
|
|
2218
|
-
|
|
2219
|
-
]),
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
}, [
|
|
2223
|
-
let [
|
|
2224
|
-
|
|
2225
|
-
let
|
|
2226
|
-
io:
|
|
2227
|
-
defaultTheme:
|
|
2228
|
-
reloadKey:
|
|
2229
|
-
}),
|
|
2218
|
+
w
|
|
2219
|
+
]), vt = ge(), [yt, bt] = F(() => ie ?? null);
|
|
2220
|
+
M(() => {
|
|
2221
|
+
bt(ie ?? null);
|
|
2222
|
+
}, [ie]);
|
|
2223
|
+
let [xt, St] = F(0), B = P(null);
|
|
2224
|
+
B.current ||= Yr();
|
|
2225
|
+
let V = ye(yt, {
|
|
2226
|
+
io: T,
|
|
2227
|
+
defaultTheme: vt.getDefaultTheme(),
|
|
2228
|
+
reloadKey: xt
|
|
2229
|
+
}), H = V.status === "loaded" ? V.workbook : null, U = N(() => V.status === "error" ? {
|
|
2230
2230
|
status: "error",
|
|
2231
|
-
error:
|
|
2232
|
-
} :
|
|
2231
|
+
error: V.error
|
|
2232
|
+
} : V.status === "loaded" ? {
|
|
2233
2233
|
status: "loaded",
|
|
2234
|
-
workbook:
|
|
2235
|
-
} : { status: "loading" }, [
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
}, [
|
|
2239
|
-
if (
|
|
2240
|
-
let e =
|
|
2234
|
+
workbook: V.workbook
|
|
2235
|
+
} : { status: "loading" }, [V]);
|
|
2236
|
+
M(() => {
|
|
2237
|
+
B.current.settled && (B.current = Yr());
|
|
2238
|
+
}, [yt, xt]), M(() => {
|
|
2239
|
+
if (U.status === "loaded") {
|
|
2240
|
+
let e = B.current, t = U.workbook;
|
|
2241
2241
|
t.whenFontsReady().then(() => e.resolve(t), () => e.resolve(t));
|
|
2242
|
-
} else
|
|
2243
|
-
}, [
|
|
2244
|
-
let [
|
|
2245
|
-
|
|
2246
|
-
let
|
|
2247
|
-
|
|
2248
|
-
let
|
|
2249
|
-
|
|
2250
|
-
let
|
|
2251
|
-
let t =
|
|
2252
|
-
t &&
|
|
2242
|
+
} else U.status === "error" && (ct?.(U.error), B.current.reject(U.error));
|
|
2243
|
+
}, [U]);
|
|
2244
|
+
let [W, Dt] = F(null);
|
|
2245
|
+
H && !W && Dt(H);
|
|
2246
|
+
let Ot = H && W && H !== W ? H : null, kt = P(Ot);
|
|
2247
|
+
kt.current = Ot;
|
|
2248
|
+
let jt = P(W);
|
|
2249
|
+
jt.current = W;
|
|
2250
|
+
let Nt = P([]), Pt = j((e) => {
|
|
2251
|
+
let t = jt.current;
|
|
2252
|
+
t && Nt.current.push(t), bt(e);
|
|
2253
2253
|
}, []);
|
|
2254
|
-
|
|
2255
|
-
let e =
|
|
2254
|
+
M(() => {
|
|
2255
|
+
let e = Nt.current;
|
|
2256
2256
|
if (e.length !== 0) {
|
|
2257
|
-
|
|
2257
|
+
Nt.current = e.filter((e) => e === W);
|
|
2258
2258
|
for (let t = 0; t < e.length; t++) {
|
|
2259
2259
|
let n = e[t];
|
|
2260
|
-
if (n !==
|
|
2260
|
+
if (n !== W) try {
|
|
2261
2261
|
n.close();
|
|
2262
2262
|
} catch (e) {
|
|
2263
2263
|
console.warn("Unable to close the replaced workbook", e);
|
|
2264
2264
|
}
|
|
2265
2265
|
}
|
|
2266
2266
|
}
|
|
2267
|
-
}, [
|
|
2268
|
-
let
|
|
2269
|
-
let e =
|
|
2270
|
-
return e ?
|
|
2271
|
-
}, [
|
|
2272
|
-
|
|
2273
|
-
if (!
|
|
2274
|
-
let e =
|
|
2275
|
-
return
|
|
2267
|
+
}, [W]);
|
|
2268
|
+
let Ft = qe ? null : W, G = ve(), It = N(() => {
|
|
2269
|
+
let e = Ft?.getSelectedWorksheet() ?? Ft?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
|
|
2270
|
+
return e ? me(e, { referenceMode: G }) : null;
|
|
2271
|
+
}, [Ft, G]), K = qe ?? It, q = P(K);
|
|
2272
|
+
q.current = K, M(() => {
|
|
2273
|
+
if (!K) return;
|
|
2274
|
+
let e = K.getSession();
|
|
2275
|
+
return K.subscribe(() => {
|
|
2276
2276
|
let t = e;
|
|
2277
|
-
if (e =
|
|
2278
|
-
let n =
|
|
2279
|
-
(n?.isFocusWithin?.() ?? n?.contains?.(document.activeElement)) &&
|
|
2277
|
+
if (e = K.getSession(), !t || e || t.getActiveEditorId() !== "formula-bar") return;
|
|
2278
|
+
let n = $e.current;
|
|
2279
|
+
(n?.isFocusWithin?.() ?? n?.contains?.(document.activeElement)) && A.current?.focus();
|
|
2280
2280
|
});
|
|
2281
|
-
}, [J]);
|
|
2282
|
-
let Y = be(K), { isDirty: Ft, saveState: It } = xe(K, D), Lt = ye(K), Rt = L(It), zt = L(null);
|
|
2283
|
-
Rt.current = It;
|
|
2284
|
-
let Bt = P(() => Rt.current?.isDirty() ?? !1, []), Vt = L(G);
|
|
2285
|
-
Vt.current = G;
|
|
2286
|
-
let [Ht, Ut] = R(null), Wt = ve ?? O?.title, [Gt, Kt] = R(null);
|
|
2287
|
-
F(() => {
|
|
2288
|
-
Kt(null);
|
|
2289
2281
|
}, [K]);
|
|
2290
|
-
let
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
let
|
|
2295
|
-
|
|
2296
|
-
|
|
2282
|
+
let Lt = Se(W), { isDirty: Rt, saveState: zt } = Ce(W, T), Bt = xe(W), Vt = P(zt), Ht = P(null);
|
|
2283
|
+
Vt.current = zt;
|
|
2284
|
+
let Ut = j(() => Vt.current?.isDirty() ?? !1, []), Wt = P(U);
|
|
2285
|
+
Wt.current = U;
|
|
2286
|
+
let [Gt, Kt] = F(null), qt = Te ?? E?.title, [Jt, Yt] = F(null);
|
|
2287
|
+
M(() => {
|
|
2288
|
+
Yt(null);
|
|
2297
2289
|
}, [W]);
|
|
2298
|
-
let
|
|
2299
|
-
|
|
2300
|
-
|
|
2290
|
+
let Xt = qt ?? Jt ?? Lt ?? "";
|
|
2291
|
+
M(() => {
|
|
2292
|
+
lt?.(Rt);
|
|
2293
|
+
}, [Rt]);
|
|
2294
|
+
let Zt = D(S ?? (() => {}), [S]);
|
|
2295
|
+
M(() => {
|
|
2296
|
+
Zt?.(H);
|
|
2297
|
+
}, [H]);
|
|
2298
|
+
let J = P(H);
|
|
2299
|
+
J.current = H, _e(W, "onViewChange");
|
|
2300
|
+
let Y = N(() => L(nt, {
|
|
2301
2301
|
groupKey: "helpOptions",
|
|
2302
2302
|
disableHover: !0,
|
|
2303
2303
|
sx: { padding: "0" },
|
|
2304
2304
|
propsButton: { sx: { maxHeight: "22px" } }
|
|
2305
|
-
}), []), [
|
|
2306
|
-
|
|
2305
|
+
}), []), [Qt, $t] = F(null), en = j((e) => {
|
|
2306
|
+
$t(e);
|
|
2307
2307
|
}, []);
|
|
2308
|
-
|
|
2309
|
-
|
|
2308
|
+
M(() => {
|
|
2309
|
+
Ee.prefetch([Ee.getActive(), se]).catch((e) => {
|
|
2310
2310
|
console.warn("Icons could not be loaded:", e);
|
|
2311
2311
|
});
|
|
2312
2312
|
}, []);
|
|
2313
|
-
let
|
|
2314
|
-
|
|
2315
|
-
let
|
|
2316
|
-
let t =
|
|
2317
|
-
t && t !==
|
|
2318
|
-
}, []),
|
|
2313
|
+
let tn = P(null);
|
|
2314
|
+
tn.current ||= Yr();
|
|
2315
|
+
let nn = P(null), X = j(() => nn.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? tn.current.promise, []), rn = D(async (e) => {
|
|
2316
|
+
let t = ht.current;
|
|
2317
|
+
t && t !== Mt.getActive() && await Mt.setActive(t), await we.DefaultCommandCatalogService.prefetch(t ?? void 0), Kt(e), nn.current = e.source, tn.current.settled || tn.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
|
|
2318
|
+
}, []), an = P(null), on = j((e) => {
|
|
2319
2319
|
let t = null, n = {
|
|
2320
2320
|
readOnly: !0,
|
|
2321
|
-
...
|
|
2321
|
+
...E
|
|
2322
2322
|
};
|
|
2323
|
-
return
|
|
2323
|
+
return E?.hidden || (t = L(ee, {
|
|
2324
2324
|
...n,
|
|
2325
2325
|
style: {
|
|
2326
2326
|
maxWidth: "100%",
|
|
2327
|
-
...
|
|
2327
|
+
...E?.style
|
|
2328
2328
|
},
|
|
2329
|
-
workbook: e.workbook ??
|
|
2330
|
-
ref:
|
|
2331
|
-
title:
|
|
2332
|
-
modified:
|
|
2333
|
-
encrypted:
|
|
2334
|
-
placeHolder:
|
|
2329
|
+
workbook: e.workbook ?? A.current,
|
|
2330
|
+
ref: an,
|
|
2331
|
+
title: Xt,
|
|
2332
|
+
modified: Rt,
|
|
2333
|
+
encrypted: Bt,
|
|
2334
|
+
placeHolder: ut,
|
|
2335
2335
|
onTitleChange: (e) => {
|
|
2336
|
-
|
|
2336
|
+
Yt(e), E?.onTitleChange?.(e);
|
|
2337
2337
|
}
|
|
2338
|
-
})),
|
|
2338
|
+
})), L(br, {
|
|
2339
2339
|
...e,
|
|
2340
|
-
logo:
|
|
2340
|
+
logo: C,
|
|
2341
2341
|
mainElement: t,
|
|
2342
|
-
startElement:
|
|
2343
|
-
endElement:
|
|
2342
|
+
startElement: ae,
|
|
2343
|
+
endElement: oe
|
|
2344
2344
|
});
|
|
2345
2345
|
}, [
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2346
|
+
C,
|
|
2347
|
+
Xt,
|
|
2348
|
+
Rt,
|
|
2349
|
+
Bt,
|
|
2350
|
+
E,
|
|
2351
|
+
ae,
|
|
2352
|
+
oe
|
|
2353
2353
|
]);
|
|
2354
|
-
|
|
2355
|
-
let e =
|
|
2354
|
+
M(() => {
|
|
2355
|
+
let e = A.current;
|
|
2356
2356
|
if (!e) return;
|
|
2357
2357
|
let t = (t) => {
|
|
2358
|
-
(t.ctrlKey || t.metaKey ||
|
|
2358
|
+
(t.ctrlKey || t.metaKey || Ne.getWheelOwner(t, e) !== "native") && t.preventDefault();
|
|
2359
2359
|
};
|
|
2360
2360
|
return e.addEventListener("wheel", t, { passive: !1 }), () => {
|
|
2361
2361
|
e.removeEventListener("wheel", t);
|
|
2362
2362
|
};
|
|
2363
|
-
}, [
|
|
2364
|
-
let [
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
}, [
|
|
2368
|
-
let
|
|
2363
|
+
}, [Gt]);
|
|
2364
|
+
let [sn, cn] = F(null);
|
|
2365
|
+
M(() => {
|
|
2366
|
+
cn(Gt?.source?.getCommandScope?.() ?? null);
|
|
2367
|
+
}, [Gt]);
|
|
2368
|
+
let ln = N(() => ({
|
|
2369
2369
|
"& .SnackbarContainer-root": { position: "absolute !important" },
|
|
2370
2370
|
"& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
|
|
2371
2371
|
"& .notistack-Snackbar": { minWidth: "unset" },
|
|
@@ -2378,58 +2378,56 @@ var Yr = () => {
|
|
|
2378
2378
|
whiteSpace: "pre-wrap"
|
|
2379
2379
|
},
|
|
2380
2380
|
"*": { userSelect: "none" }
|
|
2381
|
-
}), []), [
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
}, [
|
|
2385
|
-
let
|
|
2386
|
-
model:
|
|
2381
|
+
}), []), [Z, un] = F(null), [, dn] = We(null, !1);
|
|
2382
|
+
M(() => {
|
|
2383
|
+
dn(Z != null);
|
|
2384
|
+
}, [Z, dn]);
|
|
2385
|
+
let fn = j((e) => b({
|
|
2386
|
+
model: W,
|
|
2387
2387
|
side: x,
|
|
2388
2388
|
...e,
|
|
2389
2389
|
...y
|
|
2390
2390
|
}), [
|
|
2391
|
-
|
|
2391
|
+
W,
|
|
2392
2392
|
x,
|
|
2393
2393
|
y
|
|
2394
|
-
]),
|
|
2395
|
-
|
|
2394
|
+
]), pn = P(r);
|
|
2395
|
+
pn.current = r, ze(n, () => ({
|
|
2396
2396
|
isStudioElement: () => !0,
|
|
2397
2397
|
save: (e) => {
|
|
2398
|
-
let t =
|
|
2398
|
+
let t = Ht.current;
|
|
2399
2399
|
return t ? t(e) : Promise.reject(/* @__PURE__ */ Error("The studio cannot save: no workbook, or the backing store cannot write."));
|
|
2400
2400
|
},
|
|
2401
|
-
getWorkbookElement: () =>
|
|
2402
|
-
getWorkbook: () =>
|
|
2403
|
-
isDirty: () =>
|
|
2404
|
-
getEditable: () =>
|
|
2405
|
-
getFormulaBarElement: () =>
|
|
2406
|
-
focus: () =>
|
|
2407
|
-
whenReady: () => (
|
|
2408
|
-
getWorkbookState: () =>
|
|
2409
|
-
retry: () =>
|
|
2401
|
+
getWorkbookElement: () => A.current,
|
|
2402
|
+
getWorkbook: () => J.current ?? null,
|
|
2403
|
+
isDirty: () => Vt.current?.isDirty() ?? !1,
|
|
2404
|
+
getEditable: () => q.current,
|
|
2405
|
+
getFormulaBarElement: () => $e.current ?? null,
|
|
2406
|
+
focus: () => A.current?.focus(),
|
|
2407
|
+
whenReady: () => (B.current ||= Yr(), B.current.promise),
|
|
2408
|
+
getWorkbookState: () => Wt.current,
|
|
2409
|
+
retry: () => St((e) => e + 1)
|
|
2410
2410
|
}), [], r);
|
|
2411
|
-
let
|
|
2412
|
-
t ===
|
|
2413
|
-
t === Et.current && (fn.current = dn.current?.contains(document.activeElement) ?? !0, wt(t), Q(e));
|
|
2414
|
-
}));
|
|
2411
|
+
let Q = P(!1), mn = D(async (e, t) => {
|
|
2412
|
+
t === kt.current && (Q.current = pn.current?.contains(document.activeElement) ?? !0, Dt(t), await rn(e), d?.(e));
|
|
2415
2413
|
}, []);
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
}, [
|
|
2419
|
-
let
|
|
2420
|
-
let { ref: t, ...n } = e, r =
|
|
2421
|
-
render:
|
|
2414
|
+
M(() => {
|
|
2415
|
+
Q.current && (Q.current = !1, A.current?.focus());
|
|
2416
|
+
}, [W]);
|
|
2417
|
+
let hn = j((e) => {
|
|
2418
|
+
let { ref: t, ...n } = e, r = gt ? I.dark : I.light, i = U.status === "error" && _ ? L(Me, {
|
|
2419
|
+
render: _,
|
|
2422
2420
|
props: {
|
|
2423
|
-
...
|
|
2421
|
+
...v,
|
|
2424
2422
|
style: {
|
|
2425
2423
|
width: "100%",
|
|
2426
2424
|
height: "100%",
|
|
2427
|
-
...
|
|
2425
|
+
...v?.style
|
|
2428
2426
|
},
|
|
2429
|
-
error:
|
|
2427
|
+
error: U.error
|
|
2430
2428
|
}
|
|
2431
2429
|
}) : null;
|
|
2432
|
-
if (i && !
|
|
2430
|
+
if (i && !W) return L(wt, {
|
|
2433
2431
|
style: {
|
|
2434
2432
|
width: "100%",
|
|
2435
2433
|
height: "100%",
|
|
@@ -2441,17 +2439,17 @@ var Yr = () => {
|
|
|
2441
2439
|
children: i
|
|
2442
2440
|
});
|
|
2443
2441
|
let c = null;
|
|
2444
|
-
if (
|
|
2445
|
-
let e =
|
|
2446
|
-
render:
|
|
2442
|
+
if (W) {
|
|
2443
|
+
let e = W, i = e.getView(), a = Ve ?? i?.isShowFormulaBar(), o = Je ?? i?.isShowStatusBar(), s = Gt?.source ?? A.current, l = L(Me, {
|
|
2444
|
+
render: Ze === void 0 ? on : Ze,
|
|
2447
2445
|
props: {
|
|
2448
2446
|
workbook: s,
|
|
2449
|
-
...
|
|
2447
|
+
...k
|
|
2450
2448
|
}
|
|
2451
|
-
}), u =
|
|
2452
|
-
render:
|
|
2449
|
+
}), u = tt === "bottom", m = a ? L(Me, {
|
|
2450
|
+
render: Ue === void 0 ? f : Ue,
|
|
2453
2451
|
props: {
|
|
2454
|
-
ref:
|
|
2452
|
+
ref: $e,
|
|
2455
2453
|
style: {
|
|
2456
2454
|
marginTop: r.spacing(u ? .5 : .25),
|
|
2457
2455
|
marginLeft: r.spacing(1),
|
|
@@ -2459,50 +2457,53 @@ var Yr = () => {
|
|
|
2459
2457
|
marginBottom: r.spacing(u ? .5 : .75)
|
|
2460
2458
|
},
|
|
2461
2459
|
workbook: e,
|
|
2462
|
-
editable:
|
|
2463
|
-
placement:
|
|
2464
|
-
floatOnKeyboard:
|
|
2465
|
-
...
|
|
2460
|
+
editable: K ?? void 0,
|
|
2461
|
+
placement: tt,
|
|
2462
|
+
floatOnKeyboard: rt === "float",
|
|
2463
|
+
...He,
|
|
2466
2464
|
propsNamedCollectionEditor: {
|
|
2467
2465
|
restoreFocus: (e) => s?.focus(e),
|
|
2468
|
-
...
|
|
2466
|
+
...He?.propsNamedCollectionEditor
|
|
2469
2467
|
}
|
|
2470
2468
|
}
|
|
2471
|
-
}) : null,
|
|
2472
|
-
render:
|
|
2469
|
+
}) : null, g = o ? L(Me, {
|
|
2470
|
+
render: Xe === void 0 ? te : Xe,
|
|
2473
2471
|
props: {
|
|
2474
|
-
childrenEnd:
|
|
2475
|
-
...
|
|
2472
|
+
childrenEnd: Y,
|
|
2473
|
+
...Ye
|
|
2476
2474
|
}
|
|
2477
|
-
}) : null,
|
|
2478
|
-
...
|
|
2475
|
+
}) : null, _ = (e, r) => L(h, {
|
|
2476
|
+
...Re,
|
|
2479
2477
|
tabIndex: 0,
|
|
2480
|
-
autoFocus: !r &&
|
|
2478
|
+
autoFocus: !r && be,
|
|
2481
2479
|
workbook: e,
|
|
2482
|
-
editable: r ? void 0 :
|
|
2483
|
-
focusNameBox: r ? void 0 :
|
|
2484
|
-
prefetch: !r &&
|
|
2485
|
-
ref: r ?
|
|
2486
|
-
onWorkbookLoad: r ?
|
|
2480
|
+
editable: r ? void 0 : K ?? void 0,
|
|
2481
|
+
focusNameBox: r ? void 0 : et,
|
|
2482
|
+
prefetch: !r && p,
|
|
2483
|
+
ref: r ? Qe : ne([t, A]),
|
|
2484
|
+
onWorkbookLoad: r ? void 0 : rn,
|
|
2485
|
+
onRenderSettled: r ? (t) => {
|
|
2486
|
+
mn(t, e);
|
|
2487
|
+
} : d,
|
|
2487
2488
|
onKeyDown: (e) => {
|
|
2488
|
-
|
|
2489
|
+
re?.(e);
|
|
2489
2490
|
},
|
|
2490
|
-
propsWorkbookLoading:
|
|
2491
|
+
propsWorkbookLoading: Le,
|
|
2491
2492
|
renderWorkbookLoading: null,
|
|
2492
2493
|
style: r ? {
|
|
2493
|
-
...
|
|
2494
|
+
...Re?.style,
|
|
2494
2495
|
position: "absolute",
|
|
2495
2496
|
inset: 0,
|
|
2496
2497
|
visibility: "hidden"
|
|
2497
2498
|
} : {
|
|
2498
2499
|
flex: "1 1 100%",
|
|
2499
2500
|
minHeight: 0,
|
|
2500
|
-
...
|
|
2501
|
+
...Re?.style
|
|
2501
2502
|
},
|
|
2502
2503
|
onContextMenu: (e) => e.preventDefault(),
|
|
2503
2504
|
...r ? null : n
|
|
2504
2505
|
}, e.getId());
|
|
2505
|
-
c =
|
|
2506
|
+
c = L("div", {
|
|
2506
2507
|
style: {
|
|
2507
2508
|
display: "flex",
|
|
2508
2509
|
flexDirection: "column",
|
|
@@ -2510,18 +2511,18 @@ var Yr = () => {
|
|
|
2510
2511
|
minWidth: 0,
|
|
2511
2512
|
minHeight: 0
|
|
2512
2513
|
},
|
|
2513
|
-
children: Vr(
|
|
2514
|
+
children: Vr(tt, {
|
|
2514
2515
|
toolbar: l,
|
|
2515
|
-
formulaBar:
|
|
2516
|
-
statusBar:
|
|
2517
|
-
main:
|
|
2516
|
+
formulaBar: m,
|
|
2517
|
+
statusBar: g,
|
|
2518
|
+
main: L(zr, {
|
|
2518
2519
|
taskSide: x,
|
|
2519
2520
|
persistKey: Zr,
|
|
2520
|
-
sidebarElement:
|
|
2521
|
-
scope:
|
|
2522
|
-
children:
|
|
2521
|
+
sidebarElement: Z ? L(we.CommandScopeProvider, {
|
|
2522
|
+
scope: sn,
|
|
2523
|
+
children: Z
|
|
2523
2524
|
}) : void 0,
|
|
2524
|
-
mainElement:
|
|
2525
|
+
mainElement: R("div", {
|
|
2525
2526
|
style: {
|
|
2526
2527
|
position: "relative",
|
|
2527
2528
|
display: "flex",
|
|
@@ -2530,8 +2531,8 @@ var Yr = () => {
|
|
|
2530
2531
|
minWidth: 0,
|
|
2531
2532
|
minHeight: 0
|
|
2532
2533
|
},
|
|
2533
|
-
children: [[
|
|
2534
|
-
ref:
|
|
2534
|
+
children: [[_(W, !1), Ot ? _(Ot, !0) : null], L(z, {
|
|
2535
|
+
ref: en,
|
|
2535
2536
|
sx: {
|
|
2536
2537
|
position: "absolute",
|
|
2537
2538
|
top: "10%",
|
|
@@ -2547,16 +2548,16 @@ var Yr = () => {
|
|
|
2547
2548
|
})
|
|
2548
2549
|
});
|
|
2549
2550
|
}
|
|
2550
|
-
let l = !
|
|
2551
|
-
render:
|
|
2552
|
-
props: { ...
|
|
2551
|
+
let l = !Gt && Pe ? L(Me, {
|
|
2552
|
+
render: Pe,
|
|
2553
|
+
props: { ...Le }
|
|
2553
2554
|
}) : null;
|
|
2554
|
-
return
|
|
2555
|
-
sx:
|
|
2555
|
+
return R(wt, {
|
|
2556
|
+
sx: ln,
|
|
2556
2557
|
style: {
|
|
2557
2558
|
width: "100%",
|
|
2558
|
-
height:
|
|
2559
|
-
transform:
|
|
2559
|
+
height: at ? `calc(100% - ${at}px)` : "100%",
|
|
2560
|
+
transform: ot ? `translateY(${ot}px)` : void 0,
|
|
2560
2561
|
position: "absolute",
|
|
2561
2562
|
display: "flex",
|
|
2562
2563
|
alignItems: "stretch",
|
|
@@ -2569,7 +2570,7 @@ var Yr = () => {
|
|
|
2569
2570
|
variant: s,
|
|
2570
2571
|
children: [
|
|
2571
2572
|
c,
|
|
2572
|
-
i ?
|
|
2573
|
+
i ? L(wt, {
|
|
2573
2574
|
style: {
|
|
2574
2575
|
position: "absolute",
|
|
2575
2576
|
inset: 0,
|
|
@@ -2579,113 +2580,113 @@ var Yr = () => {
|
|
|
2579
2580
|
},
|
|
2580
2581
|
children: i
|
|
2581
2582
|
}) : null,
|
|
2582
|
-
l ?
|
|
2583
|
+
l ? L("div", {
|
|
2583
2584
|
style: {
|
|
2584
2585
|
position: "absolute",
|
|
2585
2586
|
inset: 0,
|
|
2586
2587
|
display: "flex",
|
|
2587
2588
|
alignItems: "center",
|
|
2588
2589
|
justifyContent: "center",
|
|
2589
|
-
background: `var(--sxl-color-base-100, ${
|
|
2590
|
+
background: `var(--sxl-color-base-100, ${gt ? "#121212" : "#fff"})`
|
|
2590
2591
|
},
|
|
2591
2592
|
children: l
|
|
2592
2593
|
}) : null
|
|
2593
2594
|
]
|
|
2594
2595
|
});
|
|
2595
2596
|
}, [
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2597
|
+
U,
|
|
2598
|
+
W,
|
|
2599
|
+
Ot,
|
|
2600
|
+
Gt,
|
|
2601
|
+
Xt,
|
|
2602
|
+
Pe,
|
|
2603
|
+
Le,
|
|
2604
|
+
Re,
|
|
2604
2605
|
a,
|
|
2605
2606
|
o,
|
|
2606
2607
|
s,
|
|
2607
|
-
|
|
2608
|
-
g,
|
|
2608
|
+
Y,
|
|
2609
2609
|
_,
|
|
2610
|
-
|
|
2610
|
+
v,
|
|
2611
2611
|
on,
|
|
2612
|
-
|
|
2612
|
+
ln,
|
|
2613
|
+
Z,
|
|
2613
2614
|
x,
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
Ge,
|
|
2621
|
-
Ke,
|
|
2622
|
-
qe,
|
|
2615
|
+
sn,
|
|
2616
|
+
Ve,
|
|
2617
|
+
He,
|
|
2618
|
+
Ue,
|
|
2619
|
+
tt,
|
|
2620
|
+
K,
|
|
2623
2621
|
Je,
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2622
|
+
Ye,
|
|
2623
|
+
Xe,
|
|
2624
|
+
k,
|
|
2625
|
+
Ze,
|
|
2626
|
+
rt,
|
|
2627
|
+
at,
|
|
2628
|
+
ot,
|
|
2629
|
+
I,
|
|
2630
|
+
gt
|
|
2631
|
+
]), gn = L(gr, {
|
|
2631
2632
|
maxSnack: 3,
|
|
2632
|
-
domRoot:
|
|
2633
|
+
domRoot: Qt ?? void 0,
|
|
2633
2634
|
anchorOrigin: {
|
|
2634
2635
|
vertical: "bottom",
|
|
2635
2636
|
horizontal: "right"
|
|
2636
2637
|
},
|
|
2637
2638
|
autoHideDuration: 3500,
|
|
2638
2639
|
onClose: (e, t, n) => {
|
|
2639
|
-
|
|
2640
|
+
A.current?.focus();
|
|
2640
2641
|
},
|
|
2641
2642
|
Components: { error: vr },
|
|
2642
2643
|
iconVariant: {
|
|
2643
|
-
success:
|
|
2644
|
+
success: L(Tt, {
|
|
2644
2645
|
style: { marginRight: "8px" },
|
|
2645
|
-
children:
|
|
2646
|
+
children: L("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" })
|
|
2646
2647
|
}),
|
|
2647
|
-
error:
|
|
2648
|
+
error: L(De, {
|
|
2648
2649
|
iconKey: "ErrorAlert",
|
|
2649
2650
|
style: { marginRight: "8px" }
|
|
2650
2651
|
})
|
|
2651
2652
|
},
|
|
2652
|
-
children:
|
|
2653
|
-
workbook:
|
|
2654
|
-
children:
|
|
2655
|
-
renderArea:
|
|
2653
|
+
children: L(pe, {
|
|
2654
|
+
workbook: W,
|
|
2655
|
+
children: L(le, {
|
|
2656
|
+
renderArea: fn,
|
|
2656
2657
|
onUpdateArea: (e) => {
|
|
2657
|
-
|
|
2658
|
+
un(e);
|
|
2658
2659
|
},
|
|
2659
|
-
children:
|
|
2660
|
-
workbook:
|
|
2661
|
-
initialCommandAnchor:
|
|
2662
|
-
renderWorkbook:
|
|
2663
|
-
setWorkbook:
|
|
2664
|
-
titleWorkbook:
|
|
2665
|
-
setWorkbookTitle:
|
|
2666
|
-
refDocumentTitle:
|
|
2667
|
-
isDirty:
|
|
2668
|
-
refSave:
|
|
2660
|
+
children: L(st, { children: L(jr, { children: L(Ie, { children: L(Ae, { children: L(Or, {
|
|
2661
|
+
workbook: W,
|
|
2662
|
+
initialCommandAnchor: X,
|
|
2663
|
+
renderWorkbook: hn,
|
|
2664
|
+
setWorkbook: Pt,
|
|
2665
|
+
titleWorkbook: Xt,
|
|
2666
|
+
setWorkbookTitle: Yt,
|
|
2667
|
+
refDocumentTitle: an,
|
|
2668
|
+
isDirty: Ut,
|
|
2669
|
+
refSave: Ht,
|
|
2669
2670
|
host: r
|
|
2670
2671
|
}) }) }) }) })
|
|
2671
2672
|
})
|
|
2672
2673
|
})
|
|
2673
2674
|
});
|
|
2674
|
-
return
|
|
2675
|
-
theme:
|
|
2675
|
+
return gn = R(Et, {
|
|
2676
|
+
theme: gt ? I.dark : I.light,
|
|
2676
2677
|
children: [
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2678
|
+
he ? L(Ct, {}) : null,
|
|
2679
|
+
L(Fe, { css: _t }),
|
|
2680
|
+
L(ue, { scopeClass: i }),
|
|
2681
|
+
L(it, {
|
|
2681
2682
|
themeScopeClass: i,
|
|
2682
2683
|
themeSurface: "app",
|
|
2683
|
-
themeMode:
|
|
2684
|
-
children:
|
|
2684
|
+
themeMode: pt,
|
|
2685
|
+
children: gn
|
|
2685
2686
|
})
|
|
2686
2687
|
]
|
|
2687
|
-
}),
|
|
2688
|
+
}), gn;
|
|
2688
2689
|
}));
|
|
2689
2690
|
Qr.displayName = "EagerStudio";
|
|
2690
|
-
var $r = (e) =>
|
|
2691
|
-
export { Qr as EagerStudio, Qr as default,
|
|
2691
|
+
var $r = (e) => L(Fr, { ...e });
|
|
2692
|
+
export { Qr as EagerStudio, Qr as default, Wt as n, Jr as t };
|