@sheetxl/studio-mui 1.0.5 → 1.0.6
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/{ePpKy03kKJVlSVTe.mjs → 6wAcMpoIZS1ffzqR.mjs} +3 -3
- package/browser/esm/{BPvVycga6_ukFjmo.mjs → AVMBYVWPe170RO8d.mjs} +20 -20
- package/browser/esm/{DThDfv3f2iMSjT53.mjs → B2k09pbNHOie-ZPU.mjs} +5 -5
- package/browser/esm/B5hj7BR72rs3Xx2-.mjs +40 -0
- package/browser/esm/{CPaacOpodhMft_HZ.mjs → BK0H9A2QjD4YqPxq.mjs} +2 -2
- package/browser/esm/{zvoxJTExywdfgNRc.mjs → BMtR4PaoNnEhVh2U.mjs} +243 -245
- package/browser/esm/{DOKtLrUbVlvQxv4H.mjs → BVQX7HEZNPIvf0Bg.mjs} +1 -1
- package/browser/esm/BZWyHJnsP5yHfByl.mjs +461 -0
- package/browser/esm/{B6-hMCdKZvyVLr0H.mjs → BaYDGaXi_5fNEPo1.mjs} +1 -1
- package/browser/esm/{7yj4dvdTrP3TJcG2.mjs → BgOevzKxdIm3FqSz.mjs} +4 -4
- package/browser/esm/{B-BP7YC6OqOv5MV4.mjs → BgvcXlX-fe99mlfa.mjs} +1 -1
- package/browser/esm/{DKVZo-UN8IISuX4Y.mjs → BmJRmCarQ2Y_DhcS.mjs} +6 -6
- package/browser/esm/{bBvScRhjFIhLO-BQ.mjs → BnIfAdE8Qnu8RF3t.mjs} +1 -1
- package/browser/esm/{BRtyp4rO-zBQUZou.mjs → Bu4IunF89gqzLc6A.mjs} +2 -2
- package/browser/esm/{BTvmDvFq0AmcpyAD.mjs → BvvD5BVF5uSL-2Ow.mjs} +2 -2
- package/browser/esm/{VtQjtk60kuTE6s0Z.mjs → Bzr0CzpORAOD9X-l.mjs} +1 -1
- package/browser/esm/{Bqz9mx_1Lg0aSHGm.mjs → C-lKdgOAbn4Ycu7e.mjs} +2 -2
- package/browser/esm/{DryZ4M6NKZEfr7g_.mjs → C211u9yUXa4149g9.mjs} +1 -1
- package/browser/esm/{C8Lqnn-28XkX0Nka.mjs → C7RPgX_8hKN1Umxm.mjs} +2 -2
- package/browser/esm/{BncHnyZbePCwr9Eo.mjs → C9cBnewCaYFf2JV6.mjs} +21 -22
- package/browser/esm/{R0acIC-n-z00Zc8M.mjs → CA42_0vpQwF292tA.mjs} +1 -1
- package/browser/esm/{hSCeagPj7N_7GznP.mjs → CAbY1N8X3Iryy2XC.mjs} +4 -4
- package/browser/esm/{C7HaLVp6sci5ODXI.mjs → CD6iCHysAki3ui3u.mjs} +4 -4
- package/browser/esm/{CvbBPZFXJWgWy-WO.mjs → CFUur1yDoVOJMuo5.mjs} +1 -1
- package/browser/esm/{BK1rW101-KwC1O3y.mjs → CHb2gapathcPfhdM.mjs} +5 -5
- package/browser/esm/{C_-UmBzcMFoDo0fX.mjs → CIZh3NmE8QG5ZkiA.mjs} +2 -2
- package/browser/esm/{iK7GQTGlybnAwDFn.mjs → CImvd-NxbJGZOozE.mjs} +1 -1
- package/browser/esm/{Dbg4a76nvHk2YiQX.mjs → CO-AxUDR6qjjgpyK.mjs} +2 -2
- package/browser/esm/CQ1ArTuEvBmc7W5I.mjs +695 -0
- package/browser/esm/{BztoCStIl9cOlMP2.mjs → CVNzlTdizLlhU05M.mjs} +2 -2
- package/browser/esm/{DBsWN0XGhfhzjKYP.mjs → CXwkm9x8MkCxPz74.mjs} +1 -1
- package/browser/esm/{CfVmUxioa6e4pJgE.mjs → CZIV7UuyM5VGNrJT.mjs} +4 -4
- package/browser/esm/{C0EVQMZCECx8ZtfT.mjs → CdK1lF_PdSw6YfAo.mjs} +1 -1
- package/browser/esm/{Cg0gGXUOW_fkgnny.mjs → CpgoYQ3P-S7njA7p.mjs} +2 -2
- package/browser/esm/{CUVpARqLbIk1YJpR.mjs → CqEyDFDlQ75w1c41.mjs} +2 -2
- package/browser/esm/{D6uC2TMlHyJaRxfz.mjs → CqIX3rp_vI2S2KbN.mjs} +2 -2
- package/browser/esm/{CeVY5B3Jxs6uNbw_.mjs → Csmz2j1S5pk-J0B3.mjs} +2 -2
- package/browser/esm/{BPyB91W7jUDKOF7m.mjs → CsuFocZfRucugR3q.mjs} +1153 -922
- package/browser/esm/{C-J4c4cA_UafY5j-.mjs → Cw6wZyiZkwn9DPZn.mjs} +193 -105
- package/browser/esm/{CD1F2JZ9VNb4fMFB.mjs → D91G6sYfKgwC24dQ.mjs} +1 -1
- package/browser/esm/{D834tBZr2uiui3Yl.mjs → DF_ssRdRHuBueJgX.mjs} +89 -102
- package/browser/esm/{BwcKRrn0FbEQXA_w.mjs → DJaMl_5NGyq62zwW.mjs} +1 -1
- package/browser/esm/DLixDE7fzzurotzQ.mjs +826 -0
- package/browser/esm/{GfW7QFtTUyK1yS0P.mjs → DM86XhEF4qmUnjuK.mjs} +4 -4
- package/browser/esm/{RRwtR6zhJEHrCP8n.mjs → DNXDqUO4_S_N8sSC.mjs} +2 -2
- package/browser/esm/{CIdbrUCRQ3XRp27_.mjs → DfrMUwmPoZFEFJFk.mjs} +1 -1
- package/browser/esm/{Rx8jKs1hNt5rF1o6.mjs → Dn3ur1I_S9SlR8vu.mjs} +1 -1
- package/browser/esm/{BZJa6r9ArcmluwF7.mjs → IUt6EgxYCpZe9iCH.mjs} +2 -2
- package/browser/esm/{BxdEhMqG0AJfgYo_.mjs → JNoXh3IYri5h1W3Y.mjs} +1 -1
- package/browser/esm/{CdWTSkoOn2S7LbgA.mjs → LZ2X5C1kjiwUCDGz.mjs} +2 -2
- package/browser/esm/{CzKOC7ykGeweE8YO.mjs → MSkt-6o2ZLEiAbDl.mjs} +1 -1
- package/browser/esm/{BJdjpkMLIVz2dfey.mjs → bQOt-2VGBciMnvp_.mjs} +3 -3
- package/browser/esm/{Dl3HN6jGh1DIosIz.mjs → drMcpHj_xCQ0KxuA.mjs} +4 -4
- package/browser/esm/{CKN_49irWz3yBOic.mjs → g-ScvvLFu66BzoGI.mjs} +2 -2
- package/browser/esm/index.mjs +299 -299
- package/browser/esm/{BablQ60b_Sr7yt0c.mjs → j6NYTR7qK3Ra-ctk.mjs} +2 -2
- package/browser/esm/qSdXw8S3Pv-_PPNl.mjs +210 -0
- package/browser/esm/{-JkustapYpJLIlTC.mjs → r8gxfS-mY5qhTMtJ.mjs} +2 -2
- package/browser/esm/{L2h5hAhioUPka05m.mjs → ro5VSIHWH1Nehr75.mjs} +1 -1
- package/browser/esm/tfUleloRF2hBRjjZ.mjs +996 -0
- package/browser/esm/vTlYAw0bvWP8B4jg.mjs +103 -0
- package/browser/esm/{AXga1X4C6fqsi-pa.mjs → vzJavAz2onbnB0zm.mjs} +1183 -1204
- package/browser/esm/{vTrvnXbLCCRg1M_Z.mjs → xaG6CESboBdgd5SL.mjs} +3 -3
- package/browser/esm/{CVI6kZdcPa6NJ2QN.mjs → ze358yTiZmVH9_vX.mjs} +6 -4
- package/node/esm/5WNL9ztJdLI0VLJ7.mjs +997 -0
- package/node/esm/{BE8tFJNzJd21ET8u.mjs → 8aFKkKyEL5n7sJAn.mjs} +12 -12
- package/node/esm/{D9h-5-KAL05_Ky2c.mjs → 9Yzu2QTWzvPBNvc4.mjs} +1 -1
- package/node/esm/{BKNq-LKfmWLM8xN8.mjs → BDGax8JuzpXDLe1U.mjs} +1 -1
- package/node/esm/{Dfq_WQN4R9_EI6mT.mjs → BMuPM5U4Q2kQVYTt.mjs} +251 -253
- package/node/esm/B_XE-SYyFRwWgVyQ.mjs +2070 -0
- package/node/esm/{Dn886fw8cN-Js_4o.mjs → Bap-XMVZ0X80-MNV.mjs} +2 -2
- package/node/esm/{BxiLu3gZqvEwm0MC.mjs → BghhH54dXAqciBpw.mjs} +2 -2
- package/node/esm/{5w-_-2HcuZN2IilY.mjs → Bgsi1G5RDBa4Rnmh.mjs} +1 -1
- package/node/esm/{CZZkkEXKtF-XmMg_.mjs → Bj6wKB1N--BJ0A7u.mjs} +1 -1
- package/node/esm/{4333CfN0xFlZJlzT.mjs → Bp6DyaGr7Ah4mCbj.mjs} +2 -2
- package/node/esm/BxIw0JqQD7Ibk44S.mjs +103 -0
- package/node/esm/{DiZJjw3IrOJhpe5p.mjs → C6J3DXYnvgXi5m4u.mjs} +1 -1
- package/node/esm/{D8Nhs3gz4-jRbvJR.mjs → CAXzH3lCFKI5mhsY.mjs} +2 -2
- package/node/esm/CBpG1x4pS6pNfRR1.mjs +461 -0
- package/node/esm/{C7-xjC8Lj2O146i0.mjs → CDx7cgKCqLflEubV.mjs} +1 -1
- package/node/esm/{wMu6qavkExEvCP9w.mjs → CFL1BiUsTE9X1-c8.mjs} +24 -24
- package/node/esm/{BFSKvA0b7rgbSW6P.mjs → CHBfOuyPAMiTojvS.mjs} +97 -110
- package/node/esm/{DzDcGqDCrlXyZGFT.mjs → CJIgRvLMiUJG79DB.mjs} +1 -1
- package/node/esm/{OIr4GV8spsS0lHX8.mjs → CcbjmWOlODDY8gGF.mjs} +1 -1
- package/node/esm/CdrSmZ9WDzkEGAXL.mjs +695 -0
- package/node/esm/{DxONr2LD1x7bwMGg.mjs → Ck0jN6hnefC5Hbsk.mjs} +22 -22
- package/node/esm/{B8w-DV7qSRfQye14.mjs → CkGQNbOwGQPWEcUf.mjs} +2 -2
- package/node/esm/{CUDMxAfvU8oooK2c.mjs → D283LXrMqi3exI_l.mjs} +1 -1
- package/node/esm/DH0tw27cVxmy7-AI.mjs +40 -0
- package/node/esm/{Calh2yf8E7k7eyxM.mjs → DJ4lhPXDGigmgQ-y.mjs} +2 -2
- package/node/esm/{Rl3tQd58HLEsY11C.mjs → DUZYSELfaHMSnDU2.mjs} +1 -1
- package/node/esm/{CsCU9lo125xnF_Ca.mjs → DZYzjxDF58TKD0xV.mjs} +2 -2
- package/node/esm/{Bz5j26qH_sdjuoGi.mjs → Debl1EJrMSlRwGcN.mjs} +2 -2
- package/node/esm/{DlFptlPZHQuBgG50.mjs → Dga-nEOi0B5TjgH6.mjs} +148 -148
- package/node/esm/{DLvtpSUsavFrtiw5.mjs → Diszdr1X5yDuuIzT.mjs} +1 -1
- package/node/esm/{D6KPG_DnQJRP4iGb.mjs → Dms4poPA6WOC4jyK.mjs} +1 -1
- package/node/esm/{B-CirwhCWSk3r-uN.mjs → DnjxhVMqfBhfsNHj.mjs} +14 -14
- package/node/esm/{Bj1JsBoPHXCz4fFP.mjs → DsoWGkhZNfvhmpK-.mjs} +2 -2
- package/node/esm/DyKgKDqbquskgXEA.mjs +828 -0
- package/node/esm/{XEQfvW0ujUY6vUoF.mjs → DzZb-LzjScchWCpk.mjs} +66 -67
- package/node/esm/{CEblCNurnWlc2SK0.mjs → MvXs13X1leYt7rBb.mjs} +2 -2
- package/node/esm/{D0ouF5sfJzhQUuQg.mjs → SBp59gHxCkFpvNwi.mjs} +1 -1
- package/node/esm/{B2ba9oxCLDj7q9Fz.mjs → iJrkLXWLGxVhCmtE.mjs} +1 -1
- package/node/esm/index.mjs +3294 -3031
- package/node/esm/{5cll_oe5x8KteiZX.mjs → l0liY9jxGCFXsxNX.mjs} +1 -1
- package/node/esm/{BzEIi_Iy_4PrcaE_.mjs → mhPcr4NaFejGRG5p.mjs} +1 -1
- package/node/esm/{CwfKrba55FGBz2Jb.mjs → vfgV7wwOvzh9iYjc.mjs} +1 -1
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +4 -6
- package/resources/locales/de/ui.msg.json +164 -3
- package/resources/locales/en/groups.cmd.json +4 -6
- package/resources/locales/en/ui.msg.json +164 -3
- package/types/src/anomalies/AnomaliesCommands.d.ts +1 -1
- package/types/src/chart/ChartDetailsPanel.d.ts +34 -0
- package/types/src/chart/ChartDetailsTaskPane.d.ts +9 -0
- package/types/src/chart/ChartFormatPanel.d.ts +12 -14
- package/types/src/chart/command/ChartColorsCommandButton.d.ts +54 -0
- package/types/src/chart/command/ChartStyleCommandButton.d.ts +64 -0
- package/types/src/chart/command/InsertChartCommandButton.d.ts +15 -0
- package/types/src/chart/command/index.d.ts +2 -0
- package/types/src/chart/format/ChartElementFormat.d.ts +54 -0
- package/types/src/chart/pane/ChartPaneModel.d.ts +134 -0
- package/types/src/chart/pane/ChartPaneRow.d.ts +77 -0
- package/types/src/color/ColorSetSwatch.d.ts +34 -0
- package/types/src/color/index.d.ts +1 -0
- package/types/src/command/NumberFormatQuickButtons.d.ts +1 -1
- package/types/src/format/FillPanel.d.ts +1 -3
- package/types/src/format/FormatPanelParts.d.ts +2 -2
- package/types/src/format/FormatPlugin.d.ts +2 -2
- package/types/src/format/FormatTaskPane.d.ts +4 -10
- package/types/src/format/LinePanel.d.ts +0 -2
- package/types/src/format/editor/FormatEditor.d.ts +36 -0
- package/types/src/format/editor/FormatField.d.ts +97 -0
- package/types/src/format/editor/FormatFields.d.ts +20 -0
- package/types/src/format/editor/index.d.ts +4 -0
- package/types/src/format/index.d.ts +1 -0
- package/types/src/format/useFormatSelection.d.ts +0 -2
- package/types/src/index.d.ts +1 -1
- package/types/src/shape/ShapeFormatPanel.d.ts +3 -7
- package/types/src/workbook/DefaultRenderers.d.ts +7 -1
- package/browser/esm/7afcXNPsXUui-iRB.mjs +0 -517
- package/browser/esm/CeElTSJMZukT5ODA.mjs +0 -516
- package/browser/esm/DJ0FThW4hRGIvy2O.mjs +0 -72
- package/node/esm/BGlQ9Ae_1Kf9chO-.mjs +0 -1831
- package/node/esm/CTibYRwgtHRsGojh.mjs +0 -519
- package/node/esm/D2GNY72eMSKe5Gt7.mjs +0 -516
- package/node/esm/DrpnqRfDHbua0oN6.mjs +0 -73
- package/types/src/studio/StudioSplitPane.d.ts +0 -60
|
@@ -1,49 +1,343 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { n as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import { Fragment as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
7
|
+
import { C as e, D as t, F as n, H as r, I as i, L as a, Nt as o, O as s, U as c, W as l, X as u, _t as d, f, i as p, lt as m, ot as h, r as g, st as _, t as v, v as y, wt as b, yt as ee } from "./vzJavAz2onbnB0zm.mjs";
|
|
8
|
+
import { c as x } from "./Cw6wZyiZkwn9DPZn.mjs";
|
|
9
|
+
import { t as S } from "./CFUur1yDoVOJMuo5.mjs";
|
|
10
|
+
import { n as te, t as ne } from "./BnIfAdE8Qnu8RF3t.mjs";
|
|
11
|
+
import { n as re } from "./xaG6CESboBdgd5SL.mjs";
|
|
12
|
+
import { t as ie } from "./qSdXw8S3Pv-_PPNl.mjs";
|
|
13
|
+
import { InputField as ae } from "./index.mjs";
|
|
14
|
+
import { CommandRootProvider as oe, DefaultTaskPaneRegistry as C, LogoNoPaddingIcon as se, PivotTablePane as ce, SHAPE_ICON_PACK as le, TaskPaneArea as ue, TaskPaneKey as de, TaskPaneProvider as fe, ThemeRootStyles as pe, ThemeStateDefaults as me, ThemeStateKey as w, WorkbookIO as T, WorkbookProvider as he, chartIconKey as ge, createEditable as _e, registerMovablePane as ve, useDocThemes as ye, useModelSync as be, useReferenceModeStore as xe, useResolvedWorkbook as Se, useTaskPaneArea as Ce, useWorkbookEncrypted as we, useWorkbookName as Te, useWorkbookSaveState as Ee } from "@sheetxl/react";
|
|
15
|
+
import { Command as De, DefaultCommandButtonRegistry as Oe, DefaultIconService as ke, DynamicIcon as Ae, LanguageStateKey as je, NotifierType as E, ReactErrorBoundary as Me, ReactNotifierProvider as Ne, ReactUtils as Pe, RenderSlot as Fe, ScrollUtils as Ie, ThemeStyle as Le, UncaughtErrorBoundary as Re, createBusyHandle as ze, useCallbackRef as D, useCommands as Be, useFullscreen as Ve, useImperativeElement as He, useKeyboardResize as Ue, useLanguage as We, useMeasure as Ge, useNotifier as Ke, usePersistentState as qe, useResolvedThemeMode as Je, useTranslator as O } from "@sheetxl/utils-react";
|
|
16
|
+
import k, { Component as Ye, Fragment as Xe, cloneElement as Ze, createContext as A, createElement as Qe, forwardRef as j, isValidElement as $e, memo as M, useCallback as N, useContext as et, useEffect as P, useLayoutEffect as tt, useMemo as F, useRef as I, useState as L } from "react";
|
|
17
|
+
import { AnimatedLoadingPanel as nt, AnimatedTraversingEllipsisIcon as rt, CommandGroup as it, CommandPopupButton as at, ExhibitDivider as ot, ExhibitFloatProvider as st, ExhibitIconButton as ct, ExhibitMenuHeader as lt, ExhibitMenuItem as ut, ExhibitTooltip as dt, ModalProvider as ft, SelectedIcon as R, SimpleTooltip as pt, StackTrace as mt, createExhibitTheme as ht, hideLoadingPanel as gt, lazyModal as _t, lazyPanel as vt, showLoadingPanel as yt, useInputDialog as bt, useLazyWindow as z, useModal as B, useOptionsDialog as V } from "@sheetxl/utils-mui";
|
|
18
|
+
import { Fragment as H, jsx as U, jsxs as W } from "react/jsx-runtime";
|
|
19
|
+
import { Box as G, Card as K, CardActions as xt, Collapse as St, CssBaseline as Ct, DialogTitle as wt, IconButton as Tt, Paper as Et, SvgIcon as Dt, Tab as Ot, Tabs as kt, ThemeProvider as At, Typography as jt, alpha as Mt, useMediaQuery as Nt, useTheme as q } from "@mui/material";
|
|
20
|
+
import { CommonUtils as Pt, DOMUtils as Ft, DefaultLanguagePackService as It, ErrorUtils as Lt, ExpectedError as Rt, PartialError as zt, defineLazyModule as J, formatMessage as Bt, messageKey as Vt, t as Y } from "@sheetxl/utils";
|
|
21
|
+
import { createPortal as Ht } from "react-dom";
|
|
22
|
+
var X = Object.defineProperty, Ut = (e, t) => {
|
|
21
23
|
let n = {};
|
|
22
|
-
for (var r in e)
|
|
24
|
+
for (var r in e) X(n, r, {
|
|
23
25
|
get: e[r],
|
|
24
26
|
enumerable: !0
|
|
25
27
|
});
|
|
26
|
-
return t ||
|
|
27
|
-
},
|
|
28
|
+
return t || X(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
29
|
+
}, Wt = vt(J("studio:conditionalFormatDetailsTaskPane", () => import("./AVMBYVWPe170RO8d.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), Gt = [
|
|
30
|
+
7,
|
|
31
|
+
12,
|
|
32
|
+
9
|
|
33
|
+
], Kt = M((e) => {
|
|
34
|
+
let { preview: t, size: n = "medium" } = e, r = t.seriesColors;
|
|
35
|
+
return W("svg", {
|
|
36
|
+
viewBox: "0 0 34 24",
|
|
37
|
+
"aria-hidden": !0,
|
|
38
|
+
focusable: !1,
|
|
39
|
+
style: n === "icon" ? {
|
|
40
|
+
display: "block",
|
|
41
|
+
height: "var(--icon-size, 16px)",
|
|
42
|
+
width: "auto",
|
|
43
|
+
aspectRatio: "34 / 24",
|
|
44
|
+
marginRight: "4px"
|
|
45
|
+
} : {
|
|
46
|
+
display: "block",
|
|
47
|
+
width: 34,
|
|
48
|
+
height: 24
|
|
49
|
+
},
|
|
50
|
+
children: [
|
|
51
|
+
U("rect", {
|
|
52
|
+
x: .5,
|
|
53
|
+
y: .5,
|
|
54
|
+
width: 33,
|
|
55
|
+
height: 23,
|
|
56
|
+
rx: 2,
|
|
57
|
+
fill: "#FFFFFF",
|
|
58
|
+
stroke: "#D9D9D9"
|
|
59
|
+
}),
|
|
60
|
+
t.plotAreaColor ? U("rect", {
|
|
61
|
+
x: 4,
|
|
62
|
+
y: 4,
|
|
63
|
+
width: 26,
|
|
64
|
+
height: 15,
|
|
65
|
+
fill: t.plotAreaColor.toCSS()
|
|
66
|
+
}) : null,
|
|
67
|
+
Gt.map((e, t) => U("rect", {
|
|
68
|
+
x: 6 + 8 * t,
|
|
69
|
+
y: 19 - e,
|
|
70
|
+
width: 6,
|
|
71
|
+
height: e,
|
|
72
|
+
fill: r[t % r.length]?.toCSS() ?? "#808080"
|
|
73
|
+
}, t)),
|
|
74
|
+
U("rect", {
|
|
75
|
+
x: 4,
|
|
76
|
+
y: 19,
|
|
77
|
+
width: 26,
|
|
78
|
+
height: Math.max(1, t.lineWidth / 3),
|
|
79
|
+
fill: "#7F7F7F"
|
|
80
|
+
})
|
|
81
|
+
]
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
Kt.displayName = "ChartStyleSwatch";
|
|
85
|
+
var qt = M((e) => {
|
|
86
|
+
let { chart: t, selectedStyle: n = t.getChartStyle(), disabled: r, onSelectStyle: i } = e, a = O(), o = [];
|
|
87
|
+
for (let e = 1; e <= 48; e++) o.push(U(ct, {
|
|
88
|
+
"data-chart-style": e,
|
|
89
|
+
"aria-label": a("chart.style.name", { index: e }),
|
|
90
|
+
propsTooltip: { description: a("chart.style.name", { index: e }) },
|
|
91
|
+
selected: e === n,
|
|
92
|
+
disabled: r,
|
|
93
|
+
icon: U(Kt, { preview: t.getChartStylePreview(e) }),
|
|
94
|
+
onClick: () => {
|
|
95
|
+
i(e);
|
|
96
|
+
}
|
|
97
|
+
}, e));
|
|
98
|
+
return W(G, {
|
|
99
|
+
sx: {
|
|
100
|
+
display: "flex",
|
|
101
|
+
flexDirection: "column",
|
|
102
|
+
padding: "10px 16px"
|
|
103
|
+
},
|
|
104
|
+
children: [U(lt, { children: a("chart.style.title") }), U(G, {
|
|
105
|
+
role: "listbox",
|
|
106
|
+
"aria-label": a("chart.style.title"),
|
|
107
|
+
sx: {
|
|
108
|
+
display: "grid",
|
|
109
|
+
gridTemplateColumns: "repeat(8, auto)",
|
|
110
|
+
gap: "4px"
|
|
111
|
+
},
|
|
112
|
+
children: o
|
|
113
|
+
})]
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
qt.displayName = "ChartStyleGallery";
|
|
117
|
+
var Jt = M(j((e, t) => {
|
|
118
|
+
let { chart: n, onSelectStyle: r, tip: i, disabled: a, label: o, icon: s, ...c } = e, l = a || !n, u = n?.getChartStyle(), d = D((e) => {
|
|
119
|
+
r(e);
|
|
120
|
+
}, [r]), f = N(({ closeFloatAll: e }) => n ? U(qt, {
|
|
121
|
+
chart: n,
|
|
122
|
+
selectedStyle: u,
|
|
123
|
+
disabled: l,
|
|
124
|
+
onSelectStyle: (t) => {
|
|
125
|
+
e?.(), d(t);
|
|
126
|
+
}
|
|
127
|
+
}) : U(H, {}), [
|
|
128
|
+
n,
|
|
129
|
+
u,
|
|
130
|
+
l
|
|
131
|
+
]);
|
|
132
|
+
return U(at, {
|
|
133
|
+
ref: t,
|
|
134
|
+
renderPopupPanel: f,
|
|
135
|
+
renderTooltip: ({ children: e, disabled: t }) => U(dt, {
|
|
136
|
+
label: i?.label,
|
|
137
|
+
description: i?.description,
|
|
138
|
+
disabled: t,
|
|
139
|
+
children: e
|
|
140
|
+
}),
|
|
141
|
+
label: o,
|
|
142
|
+
disabled: l,
|
|
143
|
+
selected: !1,
|
|
144
|
+
outlined: !s && !!n,
|
|
145
|
+
icon: s ?? (n && u !== void 0 ? U(Kt, {
|
|
146
|
+
size: "icon",
|
|
147
|
+
preview: n.getChartStylePreview(u)
|
|
148
|
+
}) : "PresetStyles"),
|
|
149
|
+
...c
|
|
150
|
+
});
|
|
151
|
+
}));
|
|
152
|
+
Jt.displayName = "ChartStyleGalleryButton";
|
|
153
|
+
var Yt = M(j((e, t) => {
|
|
154
|
+
let { groupKey: n, disabled: r, label: i, icon: a, ...o } = e, s = Be(["chartStyle"])[0], c = s?.getContext()?.chart() ?? null, l = D((e) => {
|
|
155
|
+
s?.execute(e);
|
|
156
|
+
}, [s]);
|
|
157
|
+
return U(Jt, {
|
|
158
|
+
ref: t,
|
|
159
|
+
chart: c,
|
|
160
|
+
onSelectStyle: l,
|
|
161
|
+
tip: {
|
|
162
|
+
label: s?.getLabel(n),
|
|
163
|
+
description: s?.getDescription(n)
|
|
164
|
+
},
|
|
165
|
+
disabled: r ?? (!s || s.disabled()),
|
|
166
|
+
...o
|
|
167
|
+
});
|
|
168
|
+
}));
|
|
169
|
+
Yt.displayName = "ChartStyleCommandButton";
|
|
170
|
+
var Xt = M(j((e, t) => {
|
|
171
|
+
let { groupKey: n, disabled: r, label: i, icon: a, ...o } = e, s = Be(["chartChangeType"])[0], c = s?.getState(), l = D((e) => {
|
|
172
|
+
s?.execute(e);
|
|
173
|
+
}, [s]);
|
|
174
|
+
return U(ie, {
|
|
175
|
+
ref: t,
|
|
176
|
+
onSelectType: l,
|
|
177
|
+
tip: {
|
|
178
|
+
label: s?.getLabel(n),
|
|
179
|
+
description: s?.getDescription(n)
|
|
180
|
+
},
|
|
181
|
+
icon: c ? ge(c) : void 0,
|
|
182
|
+
disabled: r ?? (!s || s.disabled()),
|
|
183
|
+
...o
|
|
184
|
+
});
|
|
185
|
+
}));
|
|
186
|
+
Xt.displayName = "ChangeChartTypeCommandButton";
|
|
187
|
+
var Zt = [
|
|
188
|
+
10,
|
|
189
|
+
11,
|
|
190
|
+
12,
|
|
191
|
+
13
|
|
192
|
+
], Qt = [
|
|
193
|
+
14,
|
|
194
|
+
15,
|
|
195
|
+
16,
|
|
196
|
+
17,
|
|
197
|
+
18,
|
|
198
|
+
19,
|
|
199
|
+
20,
|
|
200
|
+
21,
|
|
201
|
+
22,
|
|
202
|
+
23,
|
|
203
|
+
24,
|
|
204
|
+
25,
|
|
205
|
+
26
|
|
206
|
+
], $t = (e) => Qt.includes(e), en = M((e) => {
|
|
207
|
+
let { colors: t, variant: n, size: r } = e;
|
|
208
|
+
return U(x, {
|
|
209
|
+
colors: t.map((e) => e.toCSS()),
|
|
210
|
+
variant: n,
|
|
211
|
+
size: r
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
en.displayName = "ChartColorsSwatch";
|
|
215
|
+
var tn = M((e) => {
|
|
216
|
+
let { chart: t, selectedScheme: n = t.getColorScheme(), disabled: r, onSelectScheme: i } = e, a = O(), o = (e, a) => e.map((e, o) => U(ct, {
|
|
217
|
+
"data-chart-colors": e,
|
|
218
|
+
"aria-label": a(o + 1),
|
|
219
|
+
propsTooltip: { description: a(o + 1) },
|
|
220
|
+
selected: e === n,
|
|
221
|
+
disabled: r,
|
|
222
|
+
icon: U(en, {
|
|
223
|
+
variant: $t(e) ? "ramp" : "chips",
|
|
224
|
+
colors: t.getColorSchemePreview(e, 6)
|
|
225
|
+
}),
|
|
226
|
+
onClick: () => {
|
|
227
|
+
i(e);
|
|
228
|
+
}
|
|
229
|
+
}, e));
|
|
230
|
+
return W(G, {
|
|
231
|
+
sx: {
|
|
232
|
+
display: "flex",
|
|
233
|
+
flexDirection: "column",
|
|
234
|
+
padding: "10px 16px"
|
|
235
|
+
},
|
|
236
|
+
children: [
|
|
237
|
+
U(lt, { children: a("chart.colors.colorful") }),
|
|
238
|
+
U(G, {
|
|
239
|
+
role: "listbox",
|
|
240
|
+
"aria-label": a("chart.colors.colorful"),
|
|
241
|
+
sx: {
|
|
242
|
+
display: "flex",
|
|
243
|
+
flexDirection: "column",
|
|
244
|
+
alignItems: "flex-start",
|
|
245
|
+
gap: "2px",
|
|
246
|
+
marginBottom: "6px"
|
|
247
|
+
},
|
|
248
|
+
children: o(Zt, (e) => a("chart.colors.colorfulName", { index: e }))
|
|
249
|
+
}),
|
|
250
|
+
U(ot, { orientation: "horizontal" }),
|
|
251
|
+
U(lt, { children: a("chart.colors.monochromatic") }),
|
|
252
|
+
U(G, {
|
|
253
|
+
role: "listbox",
|
|
254
|
+
"aria-label": a("chart.colors.monochromatic"),
|
|
255
|
+
sx: {
|
|
256
|
+
display: "flex",
|
|
257
|
+
flexDirection: "column",
|
|
258
|
+
alignItems: "flex-start",
|
|
259
|
+
gap: "2px"
|
|
260
|
+
},
|
|
261
|
+
children: o(Qt, (e) => a("chart.colors.monochromaticName", { index: e }))
|
|
262
|
+
})
|
|
263
|
+
]
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
tn.displayName = "ChartColorsGallery";
|
|
267
|
+
var nn = M(j((e, t) => {
|
|
268
|
+
let { chart: n, onSelectScheme: r, tip: i, disabled: a, label: o, icon: s, ...c } = e, l = a || !n, u = n?.getColorScheme() ?? null, d = D((e) => {
|
|
269
|
+
r(e);
|
|
270
|
+
}, [r]), f = N(({ closeFloatAll: e }) => n ? U(tn, {
|
|
271
|
+
chart: n,
|
|
272
|
+
selectedScheme: u,
|
|
273
|
+
disabled: l,
|
|
274
|
+
onSelectScheme: (t) => {
|
|
275
|
+
e?.(), d(t);
|
|
276
|
+
}
|
|
277
|
+
}) : U(H, {}), [
|
|
278
|
+
n,
|
|
279
|
+
u,
|
|
280
|
+
l
|
|
281
|
+
]);
|
|
282
|
+
return U(at, {
|
|
283
|
+
ref: t,
|
|
284
|
+
renderPopupPanel: f,
|
|
285
|
+
renderTooltip: ({ children: e, disabled: t }) => U(dt, {
|
|
286
|
+
label: i?.label,
|
|
287
|
+
description: i?.description,
|
|
288
|
+
disabled: t,
|
|
289
|
+
children: e
|
|
290
|
+
}),
|
|
291
|
+
label: o,
|
|
292
|
+
disabled: l,
|
|
293
|
+
selected: !1,
|
|
294
|
+
outlined: !s && !!n,
|
|
295
|
+
icon: s ?? (n ? U(en, {
|
|
296
|
+
size: "icon",
|
|
297
|
+
variant: $t(u ?? 10) ? "ramp" : "chips",
|
|
298
|
+
colors: n.getColorSchemePreview(u ?? 10, 6)
|
|
299
|
+
}) : void 0),
|
|
300
|
+
...c
|
|
301
|
+
});
|
|
302
|
+
}));
|
|
303
|
+
nn.displayName = "ChartColorsGalleryButton";
|
|
304
|
+
var rn = M(j((e, t) => {
|
|
305
|
+
let { groupKey: n, disabled: r, label: i, icon: a, ...o } = e, s = Be(["chartColors"])[0], c = s?.getContext()?.chart() ?? null, l = D((e) => {
|
|
306
|
+
s?.execute(e);
|
|
307
|
+
}, [s]);
|
|
308
|
+
return U(nn, {
|
|
309
|
+
ref: t,
|
|
310
|
+
chart: c,
|
|
311
|
+
onSelectScheme: l,
|
|
312
|
+
tip: {
|
|
313
|
+
label: s?.getLabel(n),
|
|
314
|
+
description: s?.getDescription(n)
|
|
315
|
+
},
|
|
316
|
+
disabled: r ?? (!s || s.disabled()),
|
|
317
|
+
...o
|
|
318
|
+
});
|
|
319
|
+
}));
|
|
320
|
+
rn.displayName = "ChartColorsCommandButton";
|
|
321
|
+
var an = ["lines"], on = /^[A-Za-z_\\][\w.\\]*$/, sn = /^\$?[A-Za-z]{1,3}\$?\d+$/, cn = (e) => {
|
|
28
322
|
let t = e?.getReferences() ?? null;
|
|
29
323
|
if (!e || !t || t.getCount() !== 1) return null;
|
|
30
324
|
let n = e.getExpression().trim();
|
|
31
|
-
return
|
|
325
|
+
return on.test(n) && !sn.test(n) ? n : t;
|
|
32
326
|
};
|
|
33
|
-
function
|
|
327
|
+
function ln(e) {
|
|
34
328
|
var t, n, r = "";
|
|
35
329
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
36
330
|
else if (typeof e == "object") {
|
|
37
|
-
if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n =
|
|
331
|
+
if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = ln(e[t])) && (r && (r += " "), r += n);
|
|
38
332
|
else for (t in e) e[t] && (r && (r += " "), r += t);
|
|
39
333
|
}
|
|
40
334
|
return r;
|
|
41
335
|
}
|
|
42
|
-
function
|
|
43
|
-
for (var e, t, n = 0, r = ""; n < arguments.length;) (e = arguments[n++]) && (t =
|
|
336
|
+
function Z() {
|
|
337
|
+
for (var e, t, n = 0, r = ""; n < arguments.length;) (e = arguments[n++]) && (t = ln(e)) && (r && (r += " "), r += t);
|
|
44
338
|
return r;
|
|
45
339
|
}
|
|
46
|
-
var
|
|
340
|
+
var un = { data: "" }, dn = (e) => {
|
|
47
341
|
if (typeof window == "object") {
|
|
48
342
|
let t = (e ? e.querySelector("#_goober") : window._goober) || Object.assign(document.createElement("style"), {
|
|
49
343
|
innerHTML: " ",
|
|
@@ -51,100 +345,100 @@ var qt = { data: "" }, Jt = (e) => {
|
|
|
51
345
|
});
|
|
52
346
|
return t.nonce = window.__nonce__, t.parentNode || (e || document.head).appendChild(t), t.firstChild;
|
|
53
347
|
}
|
|
54
|
-
return e ||
|
|
55
|
-
},
|
|
348
|
+
return e || un;
|
|
349
|
+
}, fn = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, pn = /\/\*[^]*?\*\/| +/g, mn = /\n+/g, hn = (e, t) => {
|
|
56
350
|
let n = "", r = "", i = "";
|
|
57
351
|
for (let a in e) {
|
|
58
352
|
let o = e[a];
|
|
59
|
-
a[0] == "@" ? a[1] == "i" ? n = a + " " + o + ";" : r += a[1] == "f" ?
|
|
353
|
+
a[0] == "@" ? a[1] == "i" ? n = a + " " + o + ";" : r += a[1] == "f" ? hn(o, a) : a + "{" + hn(o, a[1] == "k" ? "" : t) + "}" : typeof o == "object" ? r += hn(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 += hn.p ? hn.p(a, o) : a + ":" + o + ";");
|
|
60
354
|
}
|
|
61
355
|
return n + (t && i ? t + "{" + i + "}" : i) + r;
|
|
62
|
-
},
|
|
356
|
+
}, gn = {}, _n = (e) => {
|
|
63
357
|
if (typeof e == "object") {
|
|
64
358
|
let t = "";
|
|
65
|
-
for (let n in e) t += n +
|
|
359
|
+
for (let n in e) t += n + _n(e[n]);
|
|
66
360
|
return t;
|
|
67
361
|
}
|
|
68
362
|
return e;
|
|
69
|
-
},
|
|
70
|
-
let a =
|
|
363
|
+
}, vn = (e, t, n, r, i) => {
|
|
364
|
+
let a = _n(e), o = gn[a] || (gn[a] = ((e) => {
|
|
71
365
|
let t = 0, n = 11;
|
|
72
366
|
for (; t < e.length;) n = 101 * n + e.charCodeAt(t++) >>> 0;
|
|
73
367
|
return "go" + n;
|
|
74
368
|
})(a));
|
|
75
|
-
if (!
|
|
369
|
+
if (!gn[o]) {
|
|
76
370
|
let t = a === e ? ((e) => {
|
|
77
371
|
let t, n, r = [{}];
|
|
78
|
-
for (; t =
|
|
372
|
+
for (; t = fn.exec(e.replace(pn, ""));) t[4] ? r.shift() : t[3] ? (n = t[3].replace(mn, " ").trim(), r.unshift(r[0][n] = r[0][n] || {})) : r[0][t[1]] = t[2].replace(mn, " ").trim();
|
|
79
373
|
return r[0];
|
|
80
374
|
})(e) : e;
|
|
81
|
-
|
|
375
|
+
gn[o] = hn(i ? { ["@keyframes " + o]: t } : t, n ? "" : "." + o);
|
|
82
376
|
}
|
|
83
|
-
let s = n &&
|
|
84
|
-
return n && (
|
|
377
|
+
let s = n && gn.g;
|
|
378
|
+
return n && (gn.g = gn[o]), ((e, t, n, r) => {
|
|
85
379
|
r ? t.data = t.data.replace(r, e) : t.data.indexOf(e) === -1 && (t.data = n ? e + t.data : t.data + e);
|
|
86
|
-
})(
|
|
380
|
+
})(gn[o], t, r, s), o;
|
|
87
381
|
};
|
|
88
|
-
function
|
|
382
|
+
function yn(e) {
|
|
89
383
|
let t = this || {}, n = e.call ? e(t.p) : e;
|
|
90
|
-
return
|
|
384
|
+
return vn(n.unshift ? n.raw ? ((e, t, n) => e.reduce((e, r, i) => {
|
|
91
385
|
let a = t[i];
|
|
92
386
|
if (a && a.call) {
|
|
93
387
|
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 ? "" :
|
|
388
|
+
a = t ? "." + t : e && typeof e == "object" ? e.props ? "" : hn(e, "") : !1 === e ? "" : e;
|
|
95
389
|
}
|
|
96
390
|
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,
|
|
391
|
+
}, ""))(n, [].slice.call(arguments, 1), t.p) : n.reduce((e, n) => Object.assign(e, n && n.call ? n(t.p) : n), {}) : n, dn(t.target), t.g, t.o, t.k);
|
|
98
392
|
}
|
|
99
|
-
|
|
100
|
-
function
|
|
393
|
+
yn.bind({ g: 1 }), yn.bind({ k: 1 });
|
|
394
|
+
function bn(e, t) {
|
|
101
395
|
for (var n = 0; n < t.length; n++) {
|
|
102
396
|
var r = t[n];
|
|
103
397
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
104
398
|
}
|
|
105
399
|
}
|
|
106
|
-
function
|
|
107
|
-
return t &&
|
|
400
|
+
function xn(e, t, n) {
|
|
401
|
+
return t && bn(e.prototype, t), n && bn(e, n), e;
|
|
108
402
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
403
|
+
function Q() {
|
|
404
|
+
return Q = Object.assign || function(e) {
|
|
111
405
|
for (var t = 1; t < arguments.length; t++) {
|
|
112
406
|
var n = arguments[t];
|
|
113
407
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
114
408
|
}
|
|
115
409
|
return e;
|
|
116
|
-
},
|
|
410
|
+
}, Q.apply(this, arguments);
|
|
117
411
|
}
|
|
118
|
-
function
|
|
412
|
+
function Sn(e, t) {
|
|
119
413
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
|
|
120
414
|
}
|
|
121
|
-
function
|
|
415
|
+
function Cn(e, t) {
|
|
122
416
|
if (e == null) return {};
|
|
123
417
|
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
418
|
return r;
|
|
125
419
|
}
|
|
126
|
-
function
|
|
420
|
+
function wn(e) {
|
|
127
421
|
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
128
422
|
return e;
|
|
129
423
|
}
|
|
130
|
-
var
|
|
424
|
+
var Tn = function() {
|
|
131
425
|
return "";
|
|
132
|
-
},
|
|
133
|
-
enqueueSnackbar:
|
|
134
|
-
closeSnackbar:
|
|
135
|
-
}),
|
|
426
|
+
}, En = k.createContext({
|
|
427
|
+
enqueueSnackbar: Tn,
|
|
428
|
+
closeSnackbar: Tn
|
|
429
|
+
}), Dn = "@media (max-width:599.95px)", On = "@media (min-width:600px)", kn = function(e) {
|
|
136
430
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
137
|
-
},
|
|
138
|
-
return "" +
|
|
139
|
-
},
|
|
431
|
+
}, An = function(e) {
|
|
432
|
+
return "" + kn(e.vertical) + kn(e.horizontal);
|
|
433
|
+
}, jn = function(e) {
|
|
140
434
|
return !!e || e === 0;
|
|
141
|
-
},
|
|
435
|
+
}, Mn = "unmounted", Nn = "exited", Pn = "entering", Fn = "entered", In = "exiting", Ln = function(e) {
|
|
142
436
|
function t(t) {
|
|
143
437
|
var n, r = e.call(this, t) || this, i = t.appear;
|
|
144
|
-
return r.appearStatus = null, t.in ? i ? (n =
|
|
438
|
+
return r.appearStatus = null, t.in ? i ? (n = Nn, r.appearStatus = Pn) : n = Fn : n = t.unmountOnExit || t.mountOnEnter ? Mn : Nn, r.state = { status: n }, r.nextCallback = null, r;
|
|
145
439
|
}
|
|
146
|
-
|
|
147
|
-
return e.in && t.status ===
|
|
440
|
+
Sn(t, e), t.getDerivedStateFromProps = function(e, t) {
|
|
441
|
+
return e.in && t.status === Mn ? { status: Nn } : null;
|
|
148
442
|
};
|
|
149
443
|
var n = t.prototype;
|
|
150
444
|
return n.componentDidMount = function() {
|
|
@@ -153,7 +447,7 @@ var sn = function() {
|
|
|
153
447
|
var t = null;
|
|
154
448
|
if (e !== this.props) {
|
|
155
449
|
var n = this.state.status;
|
|
156
|
-
this.props.in ? n !==
|
|
450
|
+
this.props.in ? n !== Pn && n !== Fn && (t = Pn) : n !== Pn && n !== Fn || (t = In);
|
|
157
451
|
}
|
|
158
452
|
this.updateStatus(!1, t);
|
|
159
453
|
}, n.componentWillUnmount = function() {
|
|
@@ -165,27 +459,27 @@ var sn = function() {
|
|
|
165
459
|
enter: t
|
|
166
460
|
};
|
|
167
461
|
}, n.updateStatus = function(e, t) {
|
|
168
|
-
e === void 0 && (e = !1), t === null ? this.props.unmountOnExit && this.state.status ===
|
|
462
|
+
e === void 0 && (e = !1), t === null ? this.props.unmountOnExit && this.state.status === Nn && this.setState({ status: Mn }) : (this.cancelNextCallback(), t === Pn ? this.performEnter(e) : this.performExit());
|
|
169
463
|
}, n.performEnter = function(e) {
|
|
170
464
|
var t = this, n = this.props.enter, r = e, i = this.getTimeouts();
|
|
171
|
-
e || n ? (this.props.onEnter && this.props.onEnter(this.node, r), this.safeSetState({ status:
|
|
465
|
+
e || n ? (this.props.onEnter && this.props.onEnter(this.node, r), this.safeSetState({ status: Pn }, function() {
|
|
172
466
|
t.props.onEntering && t.props.onEntering(t.node, r), t.onTransitionEnd(i.enter, function() {
|
|
173
|
-
t.safeSetState({ status:
|
|
467
|
+
t.safeSetState({ status: Fn }, function() {
|
|
174
468
|
t.props.onEntered && t.props.onEntered(t.node, r);
|
|
175
469
|
});
|
|
176
470
|
});
|
|
177
|
-
})) : this.safeSetState({ status:
|
|
471
|
+
})) : this.safeSetState({ status: Fn }, function() {
|
|
178
472
|
t.props.onEntered && t.props.onEntered(t.node, r);
|
|
179
473
|
});
|
|
180
474
|
}, n.performExit = function() {
|
|
181
475
|
var e = this, t = this.props.exit, n = this.getTimeouts();
|
|
182
|
-
t ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status:
|
|
476
|
+
t ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status: In }, function() {
|
|
183
477
|
e.props.onExiting && e.props.onExiting(e.node), e.onTransitionEnd(n.exit, function() {
|
|
184
|
-
e.safeSetState({ status:
|
|
478
|
+
e.safeSetState({ status: Nn }, function() {
|
|
185
479
|
e.props.onExited && e.props.onExited(e.node);
|
|
186
480
|
});
|
|
187
481
|
});
|
|
188
|
-
})) : this.safeSetState({ status:
|
|
482
|
+
})) : this.safeSetState({ status: Nn }, function() {
|
|
189
483
|
e.props.onExited && e.props.onExited(e.node);
|
|
190
484
|
});
|
|
191
485
|
}, n.cancelNextCallback = function() {
|
|
@@ -205,9 +499,9 @@ var sn = function() {
|
|
|
205
499
|
this.node && !n ? (this.props.addEndListener && this.props.addEndListener(this.node, this.nextCallback), e != null && setTimeout(this.nextCallback, e)) : setTimeout(this.nextCallback, 0);
|
|
206
500
|
}, n.render = function() {
|
|
207
501
|
var e = this.state.status;
|
|
208
|
-
if (e ===
|
|
502
|
+
if (e === Mn) return null;
|
|
209
503
|
var t = this.props;
|
|
210
|
-
return (0, t.children)(e,
|
|
504
|
+
return (0, t.children)(e, Cn(t, [
|
|
211
505
|
"children",
|
|
212
506
|
"in",
|
|
213
507
|
"mountOnEnter",
|
|
@@ -225,7 +519,7 @@ var sn = function() {
|
|
|
225
519
|
"onExited",
|
|
226
520
|
"nodeRef"
|
|
227
521
|
]));
|
|
228
|
-
},
|
|
522
|
+
}, xn(t, [{
|
|
229
523
|
key: "node",
|
|
230
524
|
get: function() {
|
|
231
525
|
var e = this.props.nodeRef?.current;
|
|
@@ -233,19 +527,19 @@ var sn = function() {
|
|
|
233
527
|
return e;
|
|
234
528
|
}
|
|
235
529
|
}]), t;
|
|
236
|
-
}(
|
|
237
|
-
function
|
|
238
|
-
function
|
|
530
|
+
}(k.Component);
|
|
531
|
+
function Rn() {}
|
|
532
|
+
function zn(e, t) {
|
|
239
533
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
240
534
|
}
|
|
241
|
-
function
|
|
242
|
-
return
|
|
535
|
+
function Bn(e, t) {
|
|
536
|
+
return F(function() {
|
|
243
537
|
return e == null && t == null ? null : function(n) {
|
|
244
|
-
|
|
538
|
+
zn(e, n), zn(t, n);
|
|
245
539
|
};
|
|
246
540
|
}, [e, t]);
|
|
247
541
|
}
|
|
248
|
-
function
|
|
542
|
+
function Vn(e) {
|
|
249
543
|
var t = e.timeout, n = e.style, r = n === void 0 ? {} : n, i = e.mode;
|
|
250
544
|
return {
|
|
251
545
|
duration: typeof t == "object" ? t[i] || 0 : t,
|
|
@@ -253,42 +547,42 @@ function xn(e) {
|
|
|
253
547
|
delay: r.transitionDelay
|
|
254
548
|
};
|
|
255
549
|
}
|
|
256
|
-
|
|
550
|
+
Ln.defaultProps = {
|
|
257
551
|
in: !1,
|
|
258
552
|
mountOnEnter: !1,
|
|
259
553
|
unmountOnExit: !1,
|
|
260
554
|
appear: !1,
|
|
261
555
|
enter: !0,
|
|
262
556
|
exit: !0,
|
|
263
|
-
onEnter:
|
|
264
|
-
onEntering:
|
|
265
|
-
onEntered:
|
|
266
|
-
onExit:
|
|
267
|
-
onExiting:
|
|
268
|
-
onExited:
|
|
557
|
+
onEnter: Rn,
|
|
558
|
+
onEntering: Rn,
|
|
559
|
+
onEntered: Rn,
|
|
560
|
+
onExit: Rn,
|
|
561
|
+
onExiting: Rn,
|
|
562
|
+
onExited: Rn
|
|
269
563
|
};
|
|
270
|
-
var
|
|
564
|
+
var Hn = "cubic-bezier(0.4, 0, 0.2, 1)", Un = "cubic-bezier(0.0, 0, 0.2, 1)", Wn = "cubic-bezier(0.4, 0, 0.6, 1)", Gn = function(e) {
|
|
271
565
|
e.scrollTop = e.scrollTop;
|
|
272
|
-
},
|
|
566
|
+
}, Kn = function(e) {
|
|
273
567
|
return Math.round(e) + "ms";
|
|
274
568
|
};
|
|
275
|
-
function
|
|
569
|
+
function qn(e, t) {
|
|
276
570
|
e === void 0 && (e = ["all"]);
|
|
277
|
-
var n = t || {}, r = n.duration, i = r === void 0 ? 300 : r, a = n.easing, o = a === void 0 ?
|
|
571
|
+
var n = t || {}, r = n.duration, i = r === void 0 ? 300 : r, a = n.easing, o = a === void 0 ? Hn : a, s = n.delay, c = s === void 0 ? 0 : s;
|
|
278
572
|
return (Array.isArray(e) ? e : [e]).map(function(e) {
|
|
279
|
-
var t = typeof i == "string" ? i :
|
|
573
|
+
var t = typeof i == "string" ? i : Kn(i), n = typeof c == "string" ? c : Kn(c);
|
|
280
574
|
return e + " " + t + " " + o + " " + n;
|
|
281
575
|
}).join(",");
|
|
282
576
|
}
|
|
283
|
-
function
|
|
577
|
+
function Jn(e) {
|
|
284
578
|
return function(e) {
|
|
285
579
|
return e && e.ownerDocument || document;
|
|
286
580
|
}(e).defaultView || window;
|
|
287
581
|
}
|
|
288
|
-
function
|
|
582
|
+
function Yn(e, t) {
|
|
289
583
|
if (t) {
|
|
290
584
|
var n = function(e, t) {
|
|
291
|
-
var n, r = t.getBoundingClientRect(), i =
|
|
585
|
+
var n, r = t.getBoundingClientRect(), i = Jn(t);
|
|
292
586
|
if (t.fakeTransform) n = t.fakeTransform;
|
|
293
587
|
else {
|
|
294
588
|
var a = i.getComputedStyle(t);
|
|
@@ -309,8 +603,8 @@ function kn(e, t) {
|
|
|
309
603
|
n && (t.style.webkitTransform = n, t.style.transform = n);
|
|
310
604
|
}
|
|
311
605
|
}
|
|
312
|
-
var
|
|
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 =
|
|
606
|
+
var Xn = j(function(e, t) {
|
|
607
|
+
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 = Cn(e, [
|
|
314
608
|
"children",
|
|
315
609
|
"direction",
|
|
316
610
|
"in",
|
|
@@ -320,10 +614,10 @@ var An = k(function(e, t) {
|
|
|
320
614
|
"onEntered",
|
|
321
615
|
"onExit",
|
|
322
616
|
"onExited"
|
|
323
|
-
]), m =
|
|
324
|
-
m.current &&
|
|
617
|
+
]), m = I(null), h = Bn(Bn(n.ref, m), t), g = N(function() {
|
|
618
|
+
m.current && Yn(i, m.current);
|
|
325
619
|
}, [i]);
|
|
326
|
-
return
|
|
620
|
+
return P(function() {
|
|
327
621
|
if (!a && i !== "down" && i !== "right") {
|
|
328
622
|
var e = function(e, t) {
|
|
329
623
|
var n;
|
|
@@ -337,36 +631,36 @@ var An = k(function(e, t) {
|
|
|
337
631
|
clearTimeout(n);
|
|
338
632
|
}, r;
|
|
339
633
|
}(function() {
|
|
340
|
-
m.current &&
|
|
341
|
-
}), t =
|
|
634
|
+
m.current && Yn(i, m.current);
|
|
635
|
+
}), t = Jn(m.current);
|
|
342
636
|
return t.addEventListener("resize", e), function() {
|
|
343
637
|
e.clear(), t.removeEventListener("resize", e);
|
|
344
638
|
};
|
|
345
639
|
}
|
|
346
|
-
}, [i, a]),
|
|
640
|
+
}, [i, a]), P(function() {
|
|
347
641
|
a || g();
|
|
348
|
-
}, [a, g]),
|
|
642
|
+
}, [a, g]), Qe(Ln, Object.assign({
|
|
349
643
|
appear: !0,
|
|
350
644
|
nodeRef: m,
|
|
351
645
|
onEnter: function(e, t) {
|
|
352
|
-
|
|
646
|
+
Yn(i, e), Gn(e), l && l(e, t);
|
|
353
647
|
},
|
|
354
648
|
onEntered: u,
|
|
355
649
|
onEntering: function(e) {
|
|
356
|
-
var t = o?.transitionTimingFunction ||
|
|
650
|
+
var t = o?.transitionTimingFunction || Un, n = Vn({
|
|
357
651
|
timeout: c,
|
|
358
652
|
mode: "enter",
|
|
359
|
-
style:
|
|
653
|
+
style: Q({}, o, { transitionTimingFunction: t })
|
|
360
654
|
});
|
|
361
|
-
e.style.webkitTransition =
|
|
655
|
+
e.style.webkitTransition = qn("-webkit-transform", n), e.style.transition = qn("transform", n), e.style.webkitTransform = "none", e.style.transform = "none";
|
|
362
656
|
},
|
|
363
657
|
onExit: function(e) {
|
|
364
|
-
var t = o?.transitionTimingFunction ||
|
|
658
|
+
var t = o?.transitionTimingFunction || Wn, n = Vn({
|
|
365
659
|
timeout: c,
|
|
366
660
|
mode: "exit",
|
|
367
|
-
style:
|
|
661
|
+
style: Q({}, o, { transitionTimingFunction: t })
|
|
368
662
|
});
|
|
369
|
-
e.style.webkitTransition =
|
|
663
|
+
e.style.webkitTransition = qn("-webkit-transform", n), e.style.transition = qn("transform", n), Yn(i, e), d && d(e);
|
|
370
664
|
},
|
|
371
665
|
onExited: function(e) {
|
|
372
666
|
e.style.webkitTransition = "", e.style.transition = "", f && f(e);
|
|
@@ -374,15 +668,15 @@ var An = k(function(e, t) {
|
|
|
374
668
|
in: a,
|
|
375
669
|
timeout: c
|
|
376
670
|
}, p), function(e, t) {
|
|
377
|
-
return
|
|
671
|
+
return Ze(n, Q({
|
|
378
672
|
ref: h,
|
|
379
|
-
style:
|
|
673
|
+
style: Q({ visibility: e !== "exited" || a ? void 0 : "hidden" }, o, {}, n.props.style)
|
|
380
674
|
}, t));
|
|
381
675
|
});
|
|
382
676
|
});
|
|
383
|
-
|
|
384
|
-
var
|
|
385
|
-
return
|
|
677
|
+
Xn.displayName = "Slide";
|
|
678
|
+
var Zn = function(e) {
|
|
679
|
+
return k.createElement("svg", Object.assign({
|
|
386
680
|
viewBox: "0 0 24 24",
|
|
387
681
|
focusable: "false",
|
|
388
682
|
style: {
|
|
@@ -396,7 +690,7 @@ var jn = function(e) {
|
|
|
396
690
|
flexShrink: 0
|
|
397
691
|
}
|
|
398
692
|
}, e));
|
|
399
|
-
},
|
|
693
|
+
}, Qn = {
|
|
400
694
|
maxSnack: 3,
|
|
401
695
|
persist: !1,
|
|
402
696
|
hideIconVariant: !1,
|
|
@@ -405,69 +699,69 @@ var jn = function(e) {
|
|
|
405
699
|
autoHideDuration: 5e3,
|
|
406
700
|
iconVariant: {
|
|
407
701
|
default: void 0,
|
|
408
|
-
success:
|
|
409
|
-
return
|
|
702
|
+
success: k.createElement(function() {
|
|
703
|
+
return k.createElement(Zn, null, k.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
704
|
}, null),
|
|
411
|
-
warning:
|
|
412
|
-
return
|
|
705
|
+
warning: k.createElement(function() {
|
|
706
|
+
return k.createElement(Zn, null, k.createElement("path", { d: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z" }));
|
|
413
707
|
}, null),
|
|
414
|
-
error:
|
|
415
|
-
return
|
|
708
|
+
error: k.createElement(function() {
|
|
709
|
+
return k.createElement(Zn, null, k.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
710
|
}, null),
|
|
417
|
-
info:
|
|
418
|
-
return
|
|
711
|
+
info: k.createElement(function() {
|
|
712
|
+
return k.createElement(Zn, null, k.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
713
|
}, null)
|
|
420
714
|
},
|
|
421
715
|
anchorOrigin: {
|
|
422
716
|
vertical: "bottom",
|
|
423
717
|
horizontal: "left"
|
|
424
718
|
},
|
|
425
|
-
TransitionComponent:
|
|
719
|
+
TransitionComponent: Xn,
|
|
426
720
|
transitionDuration: {
|
|
427
721
|
enter: 225,
|
|
428
722
|
exit: 195
|
|
429
723
|
}
|
|
430
|
-
},
|
|
724
|
+
}, $n = function(e, t) {
|
|
431
725
|
return function(n, r) {
|
|
432
|
-
return r === void 0 && (r = !1), r ?
|
|
726
|
+
return r === void 0 && (r = !1), r ? Q({}, Qn[n], {}, t[n], {}, e[n]) : n === "autoHideDuration" ? (i = e.autoHideDuration, a = t.autoHideDuration, (o = function(e) {
|
|
433
727
|
return typeof e == "number" || e === null;
|
|
434
|
-
})(i) ? i : o(a) ? a :
|
|
728
|
+
})(i) ? i : o(a) ? a : Qn.autoHideDuration) : n === "transitionDuration" ? function(e, t) {
|
|
435
729
|
var n = function(e, t) {
|
|
436
730
|
return t.some(function(t) {
|
|
437
731
|
return typeof e === t;
|
|
438
732
|
});
|
|
439
733
|
};
|
|
440
|
-
return n(e, ["string", "number"]) ? e : n(e, ["object"]) ?
|
|
441
|
-
}(e.transitionDuration, t.transitionDuration) : e[n] || t[n] ||
|
|
734
|
+
return n(e, ["string", "number"]) ? e : n(e, ["object"]) ? Q({}, Qn.transitionDuration, {}, n(t, ["object"]) && t, {}, e) : n(t, ["string", "number"]) ? t : n(t, ["object"]) ? Q({}, Qn.transitionDuration, {}, t) : Qn.transitionDuration;
|
|
735
|
+
}(e.transitionDuration, t.transitionDuration) : e[n] || t[n] || Qn[n];
|
|
442
736
|
var i, a, o;
|
|
443
737
|
};
|
|
444
738
|
};
|
|
445
|
-
function
|
|
739
|
+
function er(e) {
|
|
446
740
|
return Object.entries(e).reduce(function(e, t) {
|
|
447
741
|
var n, r = t[0], i = t[1];
|
|
448
|
-
return
|
|
742
|
+
return Q({}, e, ((n = {})[r] = yn(i), n));
|
|
449
743
|
}, {});
|
|
450
744
|
}
|
|
451
|
-
var
|
|
745
|
+
var tr = "notistack-SnackbarContainer", nr = "notistack-Snackbar", rr = "notistack-CollapseWrapper", ir = "notistack-MuiContent", ar = function(e) {
|
|
452
746
|
return "notistack-MuiContent-" + e;
|
|
453
|
-
},
|
|
747
|
+
}, or = er({
|
|
454
748
|
root: { height: 0 },
|
|
455
749
|
entered: { height: "auto" }
|
|
456
|
-
}),
|
|
457
|
-
var n = e.children, r = e.in, i = e.onExited, a =
|
|
750
|
+
}), sr = "0px", cr = j(function(e, t) {
|
|
751
|
+
var n = e.children, r = e.in, i = e.onExited, a = I(null), o = I(null), s = Bn(t, o), c = function() {
|
|
458
752
|
return a.current ? a.current.clientHeight : 0;
|
|
459
753
|
};
|
|
460
|
-
return
|
|
754
|
+
return Qe(Ln, {
|
|
461
755
|
in: r,
|
|
462
756
|
unmountOnExit: !0,
|
|
463
757
|
onEnter: function(e) {
|
|
464
|
-
e.style.height =
|
|
758
|
+
e.style.height = sr;
|
|
465
759
|
},
|
|
466
760
|
onEntered: function(e) {
|
|
467
761
|
e.style.height = "auto";
|
|
468
762
|
},
|
|
469
763
|
onEntering: function(e) {
|
|
470
|
-
var t = c(), n =
|
|
764
|
+
var t = c(), n = Vn({
|
|
471
765
|
timeout: 175,
|
|
472
766
|
mode: "enter"
|
|
473
767
|
}), r = n.duration, i = n.easing;
|
|
@@ -478,28 +772,28 @@ var Fn = "notistack-SnackbarContainer", In = "notistack-Snackbar", Ln = "notista
|
|
|
478
772
|
},
|
|
479
773
|
onExited: i,
|
|
480
774
|
onExiting: function(e) {
|
|
481
|
-
|
|
482
|
-
var t =
|
|
775
|
+
Gn(e);
|
|
776
|
+
var t = Vn({
|
|
483
777
|
timeout: 175,
|
|
484
778
|
mode: "exit"
|
|
485
779
|
}), n = t.duration, r = t.easing;
|
|
486
|
-
e.style.transitionDuration = typeof n == "string" ? n : n + "ms", e.style.height =
|
|
780
|
+
e.style.transitionDuration = typeof n == "string" ? n : n + "ms", e.style.height = sr, e.style.transitionTimingFunction = r || "";
|
|
487
781
|
},
|
|
488
782
|
nodeRef: o,
|
|
489
783
|
timeout: 175
|
|
490
784
|
}, function(e, t) {
|
|
491
|
-
return
|
|
785
|
+
return Qe("div", Object.assign({
|
|
492
786
|
ref: s,
|
|
493
|
-
className:
|
|
494
|
-
style:
|
|
787
|
+
className: Z(or.root, e === "entered" && or.entered),
|
|
788
|
+
style: Q({
|
|
495
789
|
pointerEvents: "all",
|
|
496
790
|
overflow: "hidden",
|
|
497
|
-
minHeight:
|
|
498
|
-
transition:
|
|
791
|
+
minHeight: sr,
|
|
792
|
+
transition: qn("height")
|
|
499
793
|
}, e === "entered" && { overflow: "visible" }, {}, e === "exited" && !r && { visibility: "hidden" })
|
|
500
|
-
}, t),
|
|
794
|
+
}, t), Qe("div", {
|
|
501
795
|
ref: a,
|
|
502
|
-
className:
|
|
796
|
+
className: rr,
|
|
503
797
|
style: {
|
|
504
798
|
display: "flex",
|
|
505
799
|
width: "100%"
|
|
@@ -507,41 +801,41 @@ var Fn = "notistack-SnackbarContainer", In = "notistack-Snackbar", Ln = "notista
|
|
|
507
801
|
}, n));
|
|
508
802
|
});
|
|
509
803
|
});
|
|
510
|
-
|
|
511
|
-
var
|
|
804
|
+
cr.displayName = "Collapse";
|
|
805
|
+
var lr = {
|
|
512
806
|
right: "left",
|
|
513
807
|
left: "right",
|
|
514
808
|
bottom: "up",
|
|
515
809
|
top: "down"
|
|
516
|
-
},
|
|
517
|
-
return "anchorOrigin" +
|
|
518
|
-
},
|
|
519
|
-
function
|
|
810
|
+
}, ur = function(e) {
|
|
811
|
+
return "anchorOrigin" + An(e);
|
|
812
|
+
}, dr = function() {};
|
|
813
|
+
function fr(e, t) {
|
|
520
814
|
return e.reduce(function(e, n) {
|
|
521
815
|
return n == null ? e : function() {
|
|
522
816
|
var r = [...arguments], i = [].concat(r);
|
|
523
817
|
t && i.indexOf(t) === -1 && i.push(t), e.apply(this, i), n.apply(this, i);
|
|
524
818
|
};
|
|
525
|
-
},
|
|
819
|
+
}, dr);
|
|
526
820
|
}
|
|
527
|
-
var
|
|
528
|
-
function
|
|
529
|
-
var t =
|
|
530
|
-
return
|
|
821
|
+
var pr = typeof window < "u" ? tt : P;
|
|
822
|
+
function mr(e) {
|
|
823
|
+
var t = I(e);
|
|
824
|
+
return pr(function() {
|
|
531
825
|
t.current = e;
|
|
532
|
-
}),
|
|
826
|
+
}), N(function() {
|
|
533
827
|
return t.current.apply(void 0, arguments);
|
|
534
828
|
}, []);
|
|
535
829
|
}
|
|
536
|
-
var
|
|
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 =
|
|
830
|
+
var hr, gr = j(function(e, t) {
|
|
831
|
+
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 = I(), p = mr(function() {
|
|
538
832
|
s && s.apply(void 0, arguments);
|
|
539
|
-
}), m =
|
|
833
|
+
}), m = mr(function(e) {
|
|
540
834
|
s && e != null && (f.current && clearTimeout(f.current), f.current = setTimeout(function() {
|
|
541
835
|
p(null, "timeout", c);
|
|
542
836
|
}, e));
|
|
543
837
|
});
|
|
544
|
-
|
|
838
|
+
P(function() {
|
|
545
839
|
return l && m(i), function() {
|
|
546
840
|
f.current && clearTimeout(f.current);
|
|
547
841
|
};
|
|
@@ -552,10 +846,10 @@ var Yn, Xn = k(function(e, t) {
|
|
|
552
846
|
]);
|
|
553
847
|
var h = function() {
|
|
554
848
|
f.current && clearTimeout(f.current);
|
|
555
|
-
}, g =
|
|
849
|
+
}, g = N(function() {
|
|
556
850
|
i != null && m(.5 * i);
|
|
557
851
|
}, [i, m]);
|
|
558
|
-
return
|
|
852
|
+
return P(function() {
|
|
559
853
|
if (!o && l) return window.addEventListener("focus", g), window.addEventListener("blur", h), function() {
|
|
560
854
|
window.removeEventListener("focus", g), window.removeEventListener("blur", h);
|
|
561
855
|
};
|
|
@@ -563,8 +857,8 @@ var Yn, Xn = k(function(e, t) {
|
|
|
563
857
|
o,
|
|
564
858
|
g,
|
|
565
859
|
l
|
|
566
|
-
]),
|
|
567
|
-
className:
|
|
860
|
+
]), Qe("div", Object.assign({ ref: t }, d, {
|
|
861
|
+
className: Z(nr, r),
|
|
568
862
|
onMouseEnter: function(e) {
|
|
569
863
|
d.onMouseEnter && d.onMouseEnter(e), h();
|
|
570
864
|
},
|
|
@@ -573,23 +867,23 @@ var Yn, Xn = k(function(e, t) {
|
|
|
573
867
|
}
|
|
574
868
|
}), n);
|
|
575
869
|
});
|
|
576
|
-
|
|
577
|
-
var
|
|
870
|
+
gr.displayName = "Snackbar";
|
|
871
|
+
var _r = er({ root: (hr = {
|
|
578
872
|
display: "flex",
|
|
579
873
|
flexWrap: "wrap",
|
|
580
874
|
flexGrow: 1
|
|
581
|
-
},
|
|
875
|
+
}, hr[On] = {
|
|
582
876
|
flexGrow: "initial",
|
|
583
877
|
minWidth: "288px"
|
|
584
|
-
},
|
|
585
|
-
var n = e.className, r =
|
|
586
|
-
return
|
|
878
|
+
}, hr) }), vr = j(function(e, t) {
|
|
879
|
+
var n = e.className, r = Cn(e, ["className"]);
|
|
880
|
+
return k.createElement("div", Object.assign({
|
|
587
881
|
ref: t,
|
|
588
|
-
className:
|
|
882
|
+
className: Z(_r.root, n)
|
|
589
883
|
}, r));
|
|
590
884
|
});
|
|
591
|
-
|
|
592
|
-
var
|
|
885
|
+
vr.displayName = "SnackbarContent";
|
|
886
|
+
var yr = er({
|
|
593
887
|
root: {
|
|
594
888
|
backgroundColor: "#313131",
|
|
595
889
|
fontSize: "0.875rem",
|
|
@@ -619,21 +913,21 @@ var $n = Pn({
|
|
|
619
913
|
paddingLeft: "16px",
|
|
620
914
|
marginRight: "-8px"
|
|
621
915
|
}
|
|
622
|
-
}),
|
|
916
|
+
}), br = "notistack-snackbar", xr = j(function(e, t) {
|
|
623
917
|
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)),
|
|
918
|
+
return typeof d == "function" && (d = d(n)), k.createElement(vr, {
|
|
625
919
|
ref: t,
|
|
626
920
|
role: "alert",
|
|
627
|
-
"aria-describedby":
|
|
921
|
+
"aria-describedby": br,
|
|
628
922
|
style: c,
|
|
629
|
-
className:
|
|
630
|
-
},
|
|
631
|
-
id:
|
|
632
|
-
className:
|
|
633
|
-
}, s ? null : u, r), d &&
|
|
923
|
+
className: Z(ir, ar(o), yr.root, yr[o], l, !s && u && yr.lessPadding)
|
|
924
|
+
}, k.createElement("div", {
|
|
925
|
+
id: br,
|
|
926
|
+
className: yr.message
|
|
927
|
+
}, s ? null : u, r), d && k.createElement("div", { className: yr.action }, d));
|
|
634
928
|
});
|
|
635
|
-
|
|
636
|
-
var
|
|
929
|
+
xr.displayName = "MaterialDesignContent";
|
|
930
|
+
var Sr, Cr, wr, Tr, Er, Dr = M(xr), Or = er({ wrappedRoot: {
|
|
637
931
|
width: "100%",
|
|
638
932
|
position: "relative",
|
|
639
933
|
transform: "translateX(0)",
|
|
@@ -642,20 +936,20 @@ var nr, rr, ir, ar, or, sr = A(tr), cr = Pn({ wrappedRoot: {
|
|
|
642
936
|
bottom: 0,
|
|
643
937
|
left: 0,
|
|
644
938
|
minWidth: "288px"
|
|
645
|
-
} }),
|
|
646
|
-
var t =
|
|
939
|
+
} }), kr = function(e) {
|
|
940
|
+
var t = I(), n = L(!0), r = n[0], i = n[1], a = fr([e.snack.onClose, e.onClose]), o = N(function() {
|
|
647
941
|
t.current = setTimeout(function() {
|
|
648
942
|
i(function(e) {
|
|
649
943
|
return !e;
|
|
650
944
|
});
|
|
651
945
|
}, 125);
|
|
652
946
|
}, []);
|
|
653
|
-
|
|
947
|
+
P(function() {
|
|
654
948
|
return function() {
|
|
655
949
|
t.current && clearTimeout(t.current);
|
|
656
950
|
};
|
|
657
951
|
}, []);
|
|
658
|
-
var s, c = e.snack, l = e.classes, u = e.Component, d = u === void 0 ?
|
|
952
|
+
var s, c = e.snack, l = e.classes, u = e.Component, d = u === void 0 ? Dr : u, f = F(function() {
|
|
659
953
|
return function(e) {
|
|
660
954
|
e === void 0 && (e = {});
|
|
661
955
|
var t = {
|
|
@@ -671,10 +965,10 @@ var nr, rr, ir, ar, or, sr = A(tr), cr = Pn({ wrappedRoot: {
|
|
|
671
965
|
return !t[e];
|
|
672
966
|
}).reduce(function(t, n) {
|
|
673
967
|
var r;
|
|
674
|
-
return
|
|
968
|
+
return Q({}, t, ((r = {})[n] = e[n], r));
|
|
675
969
|
}, {});
|
|
676
970
|
}(l);
|
|
677
|
-
}, [l]), p = c.open, m = c.SnackbarProps, h = c.TransitionComponent, g = c.TransitionProps, _ = c.transitionDuration,
|
|
971
|
+
}, [l]), p = c.open, m = c.SnackbarProps, h = c.TransitionComponent, g = c.TransitionProps, _ = c.transitionDuration, v = c.disableWindowBlurListener, y = c.content, b = Cn(c, [
|
|
678
972
|
"open",
|
|
679
973
|
"SnackbarProps",
|
|
680
974
|
"TransitionComponent",
|
|
@@ -688,49 +982,49 @@ var nr, rr, ir, ar, or, sr = A(tr), cr = Pn({ wrappedRoot: {
|
|
|
688
982
|
"onEntered",
|
|
689
983
|
"onExit",
|
|
690
984
|
"onExited"
|
|
691
|
-
]),
|
|
692
|
-
direction: (s =
|
|
985
|
+
]), ee = Q({
|
|
986
|
+
direction: (s = b.anchorOrigin, s.horizontal === "center" ? lr[s.vertical] : lr[s.horizontal]),
|
|
693
987
|
timeout: _
|
|
694
|
-
}, g),
|
|
695
|
-
typeof
|
|
696
|
-
var
|
|
988
|
+
}, g), x = y;
|
|
989
|
+
typeof x == "function" && (x = x(b.id, b.message));
|
|
990
|
+
var S = [
|
|
697
991
|
"onEnter",
|
|
698
992
|
"onEntered",
|
|
699
993
|
"onExit",
|
|
700
994
|
"onExited"
|
|
701
995
|
].reduce(function(t, n) {
|
|
702
996
|
var r;
|
|
703
|
-
return
|
|
997
|
+
return Q({}, t, ((r = {})[n] = fr([e.snack[n], e[n]], b.id), r));
|
|
704
998
|
}, {});
|
|
705
|
-
return
|
|
999
|
+
return k.createElement(cr, {
|
|
706
1000
|
in: r,
|
|
707
|
-
onExited:
|
|
708
|
-
},
|
|
1001
|
+
onExited: S.onExited
|
|
1002
|
+
}, k.createElement(gr, {
|
|
709
1003
|
open: p,
|
|
710
|
-
id:
|
|
711
|
-
disableWindowBlurListener:
|
|
712
|
-
autoHideDuration:
|
|
713
|
-
className:
|
|
1004
|
+
id: b.id,
|
|
1005
|
+
disableWindowBlurListener: v,
|
|
1006
|
+
autoHideDuration: b.autoHideDuration,
|
|
1007
|
+
className: Z(Or.wrappedRoot, f.root, f[ur(b.anchorOrigin)]),
|
|
714
1008
|
SnackbarProps: m,
|
|
715
1009
|
onClose: a
|
|
716
|
-
},
|
|
1010
|
+
}, k.createElement(h, Object.assign({}, ee, {
|
|
717
1011
|
appear: !0,
|
|
718
1012
|
in: p,
|
|
719
|
-
onExit:
|
|
1013
|
+
onExit: S.onExit,
|
|
720
1014
|
onExited: o,
|
|
721
|
-
onEnter:
|
|
722
|
-
onEntered:
|
|
1015
|
+
onEnter: S.onEnter,
|
|
1016
|
+
onEntered: fr([S.onEntered, function() {
|
|
723
1017
|
e.snack.requestClose && a(null, "instructed", e.snack.id);
|
|
724
|
-
}],
|
|
725
|
-
}),
|
|
726
|
-
},
|
|
1018
|
+
}], b.id)
|
|
1019
|
+
}), x || k.createElement(d, Object.assign({}, b)))));
|
|
1020
|
+
}, Ar = {
|
|
727
1021
|
default: 20,
|
|
728
1022
|
dense: 4
|
|
729
|
-
},
|
|
1023
|
+
}, jr = {
|
|
730
1024
|
default: 6,
|
|
731
1025
|
dense: 2
|
|
732
|
-
},
|
|
733
|
-
root: (
|
|
1026
|
+
}, Mr = "." + rr, Nr = er({
|
|
1027
|
+
root: (Sr = {
|
|
734
1028
|
boxSizing: "border-box",
|
|
735
1029
|
display: "flex",
|
|
736
1030
|
maxHeight: "100%",
|
|
@@ -738,7 +1032,7 @@ var nr, rr, ir, ar, or, sr = A(tr), cr = Pn({ wrappedRoot: {
|
|
|
738
1032
|
zIndex: 1400,
|
|
739
1033
|
height: "auto",
|
|
740
1034
|
width: "auto",
|
|
741
|
-
transition:
|
|
1035
|
+
transition: qn([
|
|
742
1036
|
"top",
|
|
743
1037
|
"right",
|
|
744
1038
|
"bottom",
|
|
@@ -749,39 +1043,39 @@ var nr, rr, ir, ar, or, sr = A(tr), cr = Pn({ wrappedRoot: {
|
|
|
749
1043
|
easing: "ease"
|
|
750
1044
|
}),
|
|
751
1045
|
pointerEvents: "none"
|
|
752
|
-
},
|
|
753
|
-
padding:
|
|
1046
|
+
}, Sr[Mr] = {
|
|
1047
|
+
padding: jr.default + "px 0px",
|
|
754
1048
|
transition: "padding 300ms ease 0ms"
|
|
755
|
-
},
|
|
1049
|
+
}, Sr.maxWidth = "calc(100% - " + 2 * Ar.default + "px)", Sr[Dn] = {
|
|
756
1050
|
width: "100%",
|
|
757
1051
|
maxWidth: "calc(100% - 32px)"
|
|
758
|
-
},
|
|
759
|
-
rootDense: (
|
|
1052
|
+
}, Sr),
|
|
1053
|
+
rootDense: (Cr = {}, Cr[Mr] = { padding: jr.dense + "px 0px" }, Cr),
|
|
760
1054
|
top: {
|
|
761
|
-
top:
|
|
1055
|
+
top: Ar.default - jr.default + "px",
|
|
762
1056
|
flexDirection: "column"
|
|
763
1057
|
},
|
|
764
1058
|
bottom: {
|
|
765
|
-
bottom:
|
|
1059
|
+
bottom: Ar.default - jr.default + "px",
|
|
766
1060
|
flexDirection: "column-reverse"
|
|
767
1061
|
},
|
|
768
|
-
left: (
|
|
769
|
-
right: (
|
|
770
|
-
center: (
|
|
1062
|
+
left: (wr = { left: Ar.default + "px" }, wr[On] = { alignItems: "flex-start" }, wr[Dn] = { left: "16px" }, wr),
|
|
1063
|
+
right: (Tr = { right: Ar.default + "px" }, Tr[On] = { alignItems: "flex-end" }, Tr[Dn] = { right: "16px" }, Tr),
|
|
1064
|
+
center: (Er = {
|
|
771
1065
|
left: "50%",
|
|
772
1066
|
transform: "translateX(-50%)"
|
|
773
|
-
},
|
|
774
|
-
}),
|
|
775
|
-
var t = e.classes, n = t === void 0 ? {} : t, r = e.anchorOrigin, i = e.dense, a = e.children, o =
|
|
776
|
-
return
|
|
777
|
-
}),
|
|
778
|
-
return !(typeof e == "string" ||
|
|
779
|
-
},
|
|
1067
|
+
}, Er[On] = { alignItems: "center" }, Er)
|
|
1068
|
+
}), Pr = M(function(e) {
|
|
1069
|
+
var t = e.classes, n = t === void 0 ? {} : t, r = e.anchorOrigin, i = e.dense, a = e.children, o = Z(tr, Nr[r.vertical], Nr[r.horizontal], Nr.root, n.containerRoot, n["containerAnchorOrigin" + An(r)], i && Nr.rootDense);
|
|
1070
|
+
return k.createElement("div", { className: o }, a);
|
|
1071
|
+
}), Fr = function(e) {
|
|
1072
|
+
return !(typeof e == "string" || $e(e));
|
|
1073
|
+
}, Ir = function(e) {
|
|
780
1074
|
function t(t) {
|
|
781
1075
|
var n = e.call(this, t) || this;
|
|
782
1076
|
return n.enqueueSnackbar = function(e, t) {
|
|
783
1077
|
if (t === void 0 && (t = {}), e == null) throw Error("enqueueSnackbar called with invalid argument");
|
|
784
|
-
var r =
|
|
1078
|
+
var r = Fr(e) ? e : t, i = Fr(e) ? e.message : e, a = r.key, o = r.preventDuplicate, s = Cn(r, ["key", "preventDuplicate"]), c = jn(a), l = c ? a : (/* @__PURE__ */ new Date()).getTime() + Math.random(), u = $n(s, n.props), d = Q({ id: l }, s, {
|
|
785
1079
|
message: i,
|
|
786
1080
|
open: !0,
|
|
787
1081
|
entered: !1,
|
|
@@ -800,7 +1094,7 @@ var nr, rr, ir, ar, or, sr = A(tr), cr = Pn({ wrappedRoot: {
|
|
|
800
1094
|
iconVariant: u("iconVariant", !0),
|
|
801
1095
|
style: u("style", !0),
|
|
802
1096
|
SnackbarProps: u("SnackbarProps", !0),
|
|
803
|
-
className:
|
|
1097
|
+
className: Z(n.props.className, s.className)
|
|
804
1098
|
});
|
|
805
1099
|
return d.persist && (d.autoHideDuration = void 0), n.setState(function(e) {
|
|
806
1100
|
if (o === void 0 && n.props.preventDuplicate || o) {
|
|
@@ -809,13 +1103,13 @@ var nr, rr, ir, ar, or, sr = A(tr), cr = Pn({ wrappedRoot: {
|
|
|
809
1103
|
}, r = e.queue.findIndex(t) > -1, a = e.snacks.findIndex(t) > -1;
|
|
810
1104
|
if (r || a) return e;
|
|
811
1105
|
}
|
|
812
|
-
return n.handleDisplaySnack(
|
|
1106
|
+
return n.handleDisplaySnack(Q({}, e, { queue: [].concat(e.queue, [d]) }));
|
|
813
1107
|
}), l;
|
|
814
1108
|
}, n.handleDisplaySnack = function(e) {
|
|
815
1109
|
return e.snacks.length >= n.maxSnack ? n.handleDismissOldest(e) : n.processQueue(e);
|
|
816
1110
|
}, n.processQueue = function(e) {
|
|
817
1111
|
var t = e.queue, n = e.snacks;
|
|
818
|
-
return t.length > 0 ?
|
|
1112
|
+
return t.length > 0 ? Q({}, e, {
|
|
819
1113
|
snacks: [].concat(n, [t[0]]),
|
|
820
1114
|
queue: t.slice(1, t.length)
|
|
821
1115
|
}) : e;
|
|
@@ -828,14 +1122,14 @@ var nr, rr, ir, ar, or, sr = A(tr), cr = Pn({ wrappedRoot: {
|
|
|
828
1122
|
return e + (t.open && t.persist ? 1 : 0);
|
|
829
1123
|
}, 0) === n.maxSnack && (r = !0);
|
|
830
1124
|
var i = e.snacks.map(function(e) {
|
|
831
|
-
return t || e.persist && !r ?
|
|
1125
|
+
return t || e.persist && !r ? Q({}, e) : (t = !0, e.entered ? (e.onClose && e.onClose(null, "maxsnack", e.id), n.props.onClose && n.props.onClose(null, "maxsnack", e.id), Q({}, e, { open: !1 })) : Q({}, e, { requestClose: !0 }));
|
|
832
1126
|
});
|
|
833
|
-
return
|
|
1127
|
+
return Q({}, e, { snacks: i });
|
|
834
1128
|
}, n.handleEnteredSnack = function(e, t, r) {
|
|
835
|
-
if (!
|
|
1129
|
+
if (!jn(r)) throw Error("handleEnteredSnack Cannot be called with undefined key");
|
|
836
1130
|
n.setState(function(e) {
|
|
837
1131
|
return { snacks: e.snacks.map(function(e) {
|
|
838
|
-
return e.id === r ?
|
|
1132
|
+
return e.id === r ? Q({}, e, { entered: !0 }) : Q({}, e);
|
|
839
1133
|
}) };
|
|
840
1134
|
});
|
|
841
1135
|
}, n.handleCloseSnack = function(e, t, r) {
|
|
@@ -845,7 +1139,7 @@ var nr, rr, ir, ar, or, sr = A(tr), cr = Pn({ wrappedRoot: {
|
|
|
845
1139
|
var t = e.snacks, n = e.queue;
|
|
846
1140
|
return {
|
|
847
1141
|
snacks: t.map(function(e) {
|
|
848
|
-
return i || e.id === r ? e.entered ?
|
|
1142
|
+
return i || e.id === r ? e.entered ? Q({}, e, { open: !1 }) : Q({}, e, { requestClose: !0 }) : Q({}, e);
|
|
849
1143
|
}),
|
|
850
1144
|
queue: n.filter(function(e) {
|
|
851
1145
|
return e.id !== r;
|
|
@@ -856,11 +1150,11 @@ var nr, rr, ir, ar, or, sr = A(tr), cr = Pn({ wrappedRoot: {
|
|
|
856
1150
|
var t = n.state.snacks.find(function(t) {
|
|
857
1151
|
return t.id === e;
|
|
858
1152
|
});
|
|
859
|
-
|
|
1153
|
+
jn(e) && t && t.onClose && t.onClose(null, "instructed", e), n.handleCloseSnack(null, "instructed", e);
|
|
860
1154
|
}, n.handleExitedSnack = function(e, t) {
|
|
861
|
-
if (!
|
|
1155
|
+
if (!jn(t)) throw Error("handleExitedSnack Cannot be called with undefined key");
|
|
862
1156
|
n.setState(function(e) {
|
|
863
|
-
var r = n.processQueue(
|
|
1157
|
+
var r = n.processQueue(Q({}, e, { snacks: e.snacks.filter(function(e) {
|
|
864
1158
|
return e.id !== t;
|
|
865
1159
|
}) }));
|
|
866
1160
|
return r.queue.length === 0 ? r : n.handleDismissOldest(r);
|
|
@@ -869,24 +1163,24 @@ var nr, rr, ir, ar, or, sr = A(tr), cr = Pn({ wrappedRoot: {
|
|
|
869
1163
|
snacks: [],
|
|
870
1164
|
queue: [],
|
|
871
1165
|
contextValue: {
|
|
872
|
-
enqueueSnackbar: n.enqueueSnackbar.bind(
|
|
873
|
-
closeSnackbar: n.closeSnackbar.bind(
|
|
1166
|
+
enqueueSnackbar: n.enqueueSnackbar.bind(wn(n)),
|
|
1167
|
+
closeSnackbar: n.closeSnackbar.bind(wn(n))
|
|
874
1168
|
}
|
|
875
1169
|
}, n;
|
|
876
1170
|
}
|
|
877
|
-
return
|
|
1171
|
+
return Sn(t, e), t.prototype.render = function() {
|
|
878
1172
|
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
|
|
1173
|
+
var n, r = An(t.anchorOrigin), i = e[r] || [];
|
|
1174
|
+
return Q({}, e, ((n = {})[r] = [].concat(i, [t]), n));
|
|
881
1175
|
}, {}), d = Object.keys(u).map(function(t) {
|
|
882
1176
|
var n = u[t], r = n[0];
|
|
883
|
-
return
|
|
1177
|
+
return k.createElement(Pr, {
|
|
884
1178
|
key: t,
|
|
885
1179
|
dense: o,
|
|
886
1180
|
anchorOrigin: r.anchorOrigin,
|
|
887
1181
|
classes: l
|
|
888
1182
|
}, n.map(function(t) {
|
|
889
|
-
return
|
|
1183
|
+
return k.createElement(kr, {
|
|
890
1184
|
key: t.id,
|
|
891
1185
|
snack: t,
|
|
892
1186
|
classes: l,
|
|
@@ -894,20 +1188,20 @@ var nr, rr, ir, ar, or, sr = A(tr), cr = Pn({ wrappedRoot: {
|
|
|
894
1188
|
onClose: e.handleCloseSnack,
|
|
895
1189
|
onEnter: e.props.onEnter,
|
|
896
1190
|
onExit: e.props.onExit,
|
|
897
|
-
onExited:
|
|
898
|
-
onEntered:
|
|
1191
|
+
onExited: fr([e.handleExitedSnack, e.props.onExited], t.id),
|
|
1192
|
+
onEntered: fr([e.handleEnteredSnack, e.props.onEntered], t.id)
|
|
899
1193
|
});
|
|
900
1194
|
}));
|
|
901
1195
|
});
|
|
902
|
-
return
|
|
903
|
-
},
|
|
1196
|
+
return k.createElement(En.Provider, { value: t }, i, r ? Ht(d, r) : d);
|
|
1197
|
+
}, xn(t, [{
|
|
904
1198
|
key: "maxSnack",
|
|
905
1199
|
get: function() {
|
|
906
|
-
return this.props.maxSnack ||
|
|
1200
|
+
return this.props.maxSnack || Qn.maxSnack;
|
|
907
1201
|
}
|
|
908
1202
|
}]), t;
|
|
909
|
-
}(
|
|
910
|
-
return
|
|
1203
|
+
}(Ye), Lr = function() {
|
|
1204
|
+
return et(En);
|
|
911
1205
|
}, $ = {
|
|
912
1206
|
card: "_card_h0jnt_7",
|
|
913
1207
|
actionRoot: "_actionRoot_h0jnt_11",
|
|
@@ -918,62 +1212,62 @@ var nr, rr, ir, ar, or, sr = A(tr), cr = Pn({ wrappedRoot: {
|
|
|
918
1212
|
paper: "_paper_h0jnt_37",
|
|
919
1213
|
checkIcon: "_checkIcon_h0jnt_42",
|
|
920
1214
|
button: "_button_h0jnt_47"
|
|
921
|
-
},
|
|
922
|
-
let { id: n, message: r, iconVariant: i, error: a, hideIconVariant: o, ...s } = e, c =
|
|
1215
|
+
}, Rr = M(j((e, t) => {
|
|
1216
|
+
let { id: n, message: r, iconVariant: i, error: a, hideIconVariant: o, ...s } = e, c = O(), { closeSnackbar: l } = Lr(), [u, d] = L(!1), f = a ? Lt.collectErrorChain(a, !0)?.[0]?.error : void 0, p = f && !(f instanceof Rt), m = N(() => {
|
|
923
1217
|
d((e) => !e);
|
|
924
|
-
}, []), h =
|
|
1218
|
+
}, []), h = N(() => {
|
|
925
1219
|
l(n);
|
|
926
1220
|
}, [n, l]), g = f?.message;
|
|
927
|
-
return !g &&
|
|
1221
|
+
return !g && $e(r) && (g = r), g || typeof r != "string" || (g = r), g ||= `Unknown Error: ${r}`, U(vr, {
|
|
928
1222
|
ref: t,
|
|
929
|
-
className:
|
|
930
|
-
children:
|
|
1223
|
+
className: S($.root, "error-snackbar"),
|
|
1224
|
+
children: W(K, {
|
|
931
1225
|
className: $.card,
|
|
932
1226
|
style: {
|
|
933
1227
|
backgroundColor: "var(--sxl-color-error)",
|
|
934
1228
|
color: "var(--sxl-color-error-content)",
|
|
935
1229
|
border: "1px solid var(--sxl-color-error)"
|
|
936
1230
|
},
|
|
937
|
-
children: [
|
|
1231
|
+
children: [W(xt, {
|
|
938
1232
|
className: $.actionRoot,
|
|
939
1233
|
children: [
|
|
940
1234
|
o ? null : i?.error,
|
|
941
|
-
|
|
1235
|
+
U(jt, {
|
|
942
1236
|
variant: "body2",
|
|
943
1237
|
component: "div",
|
|
944
1238
|
className: $.typography,
|
|
945
1239
|
children: g
|
|
946
1240
|
}),
|
|
947
|
-
|
|
948
|
-
|
|
1241
|
+
U("div", { style: { flex: "1 1 auto" } }),
|
|
1242
|
+
W("div", {
|
|
949
1243
|
className: $.icons,
|
|
950
|
-
children: [p ?
|
|
1244
|
+
children: [p ? U(Tt, {
|
|
951
1245
|
"aria-label": c("toast.showMore"),
|
|
952
1246
|
size: "small",
|
|
953
|
-
className:
|
|
1247
|
+
className: S($.expand, { [$.expandOpen]: u }),
|
|
954
1248
|
onClick: m,
|
|
955
|
-
children:
|
|
956
|
-
}) : null,
|
|
1249
|
+
children: U(Ae, { iconKey: "ExpandMore" })
|
|
1250
|
+
}) : null, U(Tt, {
|
|
957
1251
|
size: "small",
|
|
958
1252
|
className: $.expand,
|
|
959
1253
|
onClick: h,
|
|
960
|
-
children:
|
|
1254
|
+
children: U(Ae, {
|
|
961
1255
|
iconKey: "Close",
|
|
962
1256
|
style: { transform: "scale(0.8)" }
|
|
963
1257
|
})
|
|
964
1258
|
})]
|
|
965
1259
|
})
|
|
966
1260
|
]
|
|
967
|
-
}), p ?
|
|
1261
|
+
}), p ? U(St, {
|
|
968
1262
|
in: u,
|
|
969
1263
|
timeout: "auto",
|
|
970
|
-
children:
|
|
1264
|
+
children: U("div", {
|
|
971
1265
|
className: $.stackTraceContainer,
|
|
972
1266
|
style: {
|
|
973
1267
|
backgroundColor: "color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))",
|
|
974
1268
|
borderTop: "1px solid var(--sxl-color-error)"
|
|
975
1269
|
},
|
|
976
|
-
children:
|
|
1270
|
+
children: U(mt, {
|
|
977
1271
|
error: a,
|
|
978
1272
|
hideLineNumbers: !0
|
|
979
1273
|
})
|
|
@@ -982,13 +1276,13 @@ var nr, rr, ir, ar, or, sr = A(tr), cr = Pn({ wrappedRoot: {
|
|
|
982
1276
|
})
|
|
983
1277
|
});
|
|
984
1278
|
}));
|
|
985
|
-
|
|
986
|
-
var
|
|
987
|
-
let e =
|
|
988
|
-
return
|
|
1279
|
+
Rr.displayName = "ToastError";
|
|
1280
|
+
var zr = U(() => {
|
|
1281
|
+
let e = O();
|
|
1282
|
+
return U(dt, {
|
|
989
1283
|
label: "SheetXL",
|
|
990
1284
|
description: e("logo.description"),
|
|
991
|
-
children:
|
|
1285
|
+
children: U(G, {
|
|
992
1286
|
component: "a",
|
|
993
1287
|
href: "https://www.sheetxl.com",
|
|
994
1288
|
target: "_blank",
|
|
@@ -1001,25 +1295,25 @@ var yr = L(() => {
|
|
|
1001
1295
|
marginLeft: "6px",
|
|
1002
1296
|
cursor: "pointer"
|
|
1003
1297
|
},
|
|
1004
|
-
children:
|
|
1298
|
+
children: U(se, { style: {
|
|
1005
1299
|
width: "24px",
|
|
1006
1300
|
height: "24px"
|
|
1007
1301
|
} })
|
|
1008
1302
|
})
|
|
1009
1303
|
});
|
|
1010
|
-
}, {}),
|
|
1011
|
-
let { workbook: n, className: r, logo: i =
|
|
1304
|
+
}, {}), Br = M(j((e, t) => {
|
|
1305
|
+
let { workbook: n, className: r, logo: i = zr, mainElement: a, startElement: o, endElement: s, ...c } = e, [l, { width: u }] = Ge(), d = u < 530, f = I(null), p = te([
|
|
1012
1306
|
f,
|
|
1013
1307
|
l,
|
|
1014
1308
|
t
|
|
1015
1309
|
]);
|
|
1016
|
-
return
|
|
1310
|
+
return U(G, {
|
|
1017
1311
|
...c,
|
|
1018
1312
|
ref: p,
|
|
1019
1313
|
className: r,
|
|
1020
|
-
children:
|
|
1314
|
+
children: h({
|
|
1021
1315
|
isCompact: d,
|
|
1022
|
-
wrapperSelect: (e) =>
|
|
1316
|
+
wrapperSelect: (e) => W(G, {
|
|
1023
1317
|
sx: {
|
|
1024
1318
|
display: "grid",
|
|
1025
1319
|
gridTemplateColumns: "1fr auto 1fr",
|
|
@@ -1030,7 +1324,7 @@ var yr = L(() => {
|
|
|
1030
1324
|
paddingRight: (e) => e.spacing(1)
|
|
1031
1325
|
},
|
|
1032
1326
|
children: [
|
|
1033
|
-
|
|
1327
|
+
W(G, {
|
|
1034
1328
|
sx: {
|
|
1035
1329
|
display: "flex",
|
|
1036
1330
|
flexDirection: "row",
|
|
@@ -1038,7 +1332,7 @@ var yr = L(() => {
|
|
|
1038
1332
|
justifyContent: "start",
|
|
1039
1333
|
gap: (e) => e.spacing(.5)
|
|
1040
1334
|
},
|
|
1041
|
-
children: [i,
|
|
1335
|
+
children: [i, W(G, {
|
|
1042
1336
|
sx: {
|
|
1043
1337
|
display: "flex",
|
|
1044
1338
|
flexDirection: "row",
|
|
@@ -1048,7 +1342,7 @@ var yr = L(() => {
|
|
|
1048
1342
|
children: [o, e]
|
|
1049
1343
|
})]
|
|
1050
1344
|
}),
|
|
1051
|
-
|
|
1345
|
+
U(G, {
|
|
1052
1346
|
sx: {
|
|
1053
1347
|
display: "flex",
|
|
1054
1348
|
flexDirection: "row",
|
|
@@ -1059,7 +1353,7 @@ var yr = L(() => {
|
|
|
1059
1353
|
},
|
|
1060
1354
|
children: a
|
|
1061
1355
|
}),
|
|
1062
|
-
|
|
1356
|
+
U(G, {
|
|
1063
1357
|
sx: {
|
|
1064
1358
|
display: "flex",
|
|
1065
1359
|
alignItems: "center",
|
|
@@ -1072,32 +1366,32 @@ var yr = L(() => {
|
|
|
1072
1366
|
})
|
|
1073
1367
|
});
|
|
1074
1368
|
}));
|
|
1075
|
-
|
|
1076
|
-
var
|
|
1369
|
+
Br.displayName = "StudioToolbar";
|
|
1370
|
+
var Vr = (e, t) => {
|
|
1077
1371
|
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-" +
|
|
1372
|
+
e && n.searchParams.set("source", e), e && t && n.searchParams.set("title", t), window.open(n.toString(), "sheetxl-" + Pt.uuidV4(), "popup=true");
|
|
1079
1373
|
};
|
|
1080
|
-
function
|
|
1374
|
+
function Hr(e, t) {
|
|
1081
1375
|
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) => {
|
|
1082
1376
|
let r = [], i = {
|
|
1083
1377
|
source: e && typeof e != "string" ? e : null,
|
|
1084
1378
|
typedCreateWorkbookOptions: t ?? void 0,
|
|
1085
1379
|
onPassword: async ({ origin: e, validate: t }) => {
|
|
1086
1380
|
let n = await o.showInput({
|
|
1087
|
-
title:
|
|
1088
|
-
description:
|
|
1381
|
+
title: Y("dialog.password.title"),
|
|
1382
|
+
description: Y("dialog.password.open.description", { name: e.getName() ?? "" }),
|
|
1089
1383
|
inputType: "password",
|
|
1090
1384
|
options: [{
|
|
1091
1385
|
id: "Open",
|
|
1092
|
-
label: () =>
|
|
1386
|
+
label: () => Y("dialog.open")
|
|
1093
1387
|
}, "Cancel"],
|
|
1094
1388
|
defaultOption: "Open",
|
|
1095
1389
|
onValidateInput: async (e, n) => n === void 0 ? { valid: !0 } : e ? await t(e) ? { valid: !0 } : {
|
|
1096
1390
|
valid: !1,
|
|
1097
|
-
message:
|
|
1391
|
+
message: Y("dialog.password.open.retry")
|
|
1098
1392
|
} : {
|
|
1099
1393
|
valid: !1,
|
|
1100
|
-
message:
|
|
1394
|
+
message: Y("dialog.password.open.required")
|
|
1101
1395
|
}
|
|
1102
1396
|
});
|
|
1103
1397
|
return n?.option === "Open" ? n.input ?? null : null;
|
|
@@ -1112,7 +1406,7 @@ function Sr(e, t) {
|
|
|
1112
1406
|
...i,
|
|
1113
1407
|
progress: {
|
|
1114
1408
|
async onStart(e, t) {
|
|
1115
|
-
await i?.progress?.onStart?.(e, t), a = await o?.showBusy?.(
|
|
1409
|
+
await i?.progress?.onStart?.(e, t), a = await o?.showBusy?.(Y("workbook.opening", { name: e?.getName() ?? "" })), t && a?.setProgress?.(0, t);
|
|
1116
1410
|
},
|
|
1117
1411
|
onProgress(e, t) {
|
|
1118
1412
|
if (!t) return;
|
|
@@ -1123,7 +1417,7 @@ function Sr(e, t) {
|
|
|
1123
1417
|
} else n - s < 5 || (s = n, a?.setProgress?.(e, t));
|
|
1124
1418
|
},
|
|
1125
1419
|
onComplete() {
|
|
1126
|
-
a?.(), r.length > 0 && (o.showMessage(
|
|
1420
|
+
a?.(), r.length > 0 && (o.showMessage(Y("workbook.importWarnings")), console.warn("Import warnings:\n" + r.join("\n")));
|
|
1127
1421
|
},
|
|
1128
1422
|
onWarning(e, t) {
|
|
1129
1423
|
i?.progress?.onWarning?.(e, t);
|
|
@@ -1135,7 +1429,7 @@ function Sr(e, t) {
|
|
|
1135
1429
|
format: t?.key,
|
|
1136
1430
|
progress: {
|
|
1137
1431
|
async onStart(e) {
|
|
1138
|
-
a = await o?.showBusy?.(
|
|
1432
|
+
a = await o?.showBusy?.(Y("workbook.saving", { name: e?.getName() ?? "" }));
|
|
1139
1433
|
},
|
|
1140
1434
|
onComplete() {
|
|
1141
1435
|
a?.();
|
|
@@ -1143,26 +1437,26 @@ function Sr(e, t) {
|
|
|
1143
1437
|
},
|
|
1144
1438
|
onWarnings: r ?? (async ({ warnings: e, origin: t, canCancel: n }) => {
|
|
1145
1439
|
a?.(), console.warn(`Not written to '${t.getName()}':\n${e.map((e) => ` ${e.message}`).join("\n")}`);
|
|
1146
|
-
let r =
|
|
1440
|
+
let r = Y("dialog.writeWarnings.title"), i = t.getFormat(), s = (i ? (await T.getWriteFormats({ search: i }))[0] : void 0)?.description ?? i ?? "", c = Y("dialog.writeWarnings.keep");
|
|
1147
1441
|
return n ? await o.showOptions({
|
|
1148
1442
|
title: r,
|
|
1149
|
-
type:
|
|
1150
|
-
description: `${
|
|
1443
|
+
type: E.Warning,
|
|
1444
|
+
description: `${Y("dialog.writeWarnings.confirm", { format: s })}\n\n${c}`,
|
|
1151
1445
|
options: [{
|
|
1152
1446
|
id: "Save",
|
|
1153
|
-
label: () =>
|
|
1447
|
+
label: () => Y("dialog.save")
|
|
1154
1448
|
}, "Cancel"],
|
|
1155
1449
|
defaultOption: "Cancel"
|
|
1156
|
-
}) === "Save" && (a = await o?.showBusy?.(
|
|
1450
|
+
}) === "Save" && (a = await o?.showBusy?.(Y("workbook.saving", { name: t?.getName() ?? "" })), !0) : (o.showOptions({
|
|
1157
1451
|
title: r,
|
|
1158
|
-
type:
|
|
1159
|
-
description: `${
|
|
1452
|
+
type: E.Warning,
|
|
1453
|
+
description: `${Y("dialog.writeWarnings.saved", { format: s })}\n\n${c}`,
|
|
1160
1454
|
options: ["Ok"]
|
|
1161
1455
|
}), !0);
|
|
1162
1456
|
})
|
|
1163
1457
|
}, c;
|
|
1164
1458
|
if (n) {
|
|
1165
|
-
let n = e.getOrigin(), r = t?.exts?.[0] ?? (n.getExtension() || "sxl"), a = `${i || n.getName() ||
|
|
1459
|
+
let n = e.getOrigin(), r = t?.exts?.[0] ?? (n.getExtension() || "sxl"), a = `${i || n.getName() || Y("workbook.defaultName")}.${r}`;
|
|
1166
1460
|
c = await T.writeAs(e, a, {
|
|
1167
1461
|
...s,
|
|
1168
1462
|
prompt: !0
|
|
@@ -1175,14 +1469,14 @@ function Sr(e, t) {
|
|
|
1175
1469
|
e?.source ? t && d ? await d({
|
|
1176
1470
|
url: e.source,
|
|
1177
1471
|
title: e.title
|
|
1178
|
-
}) :
|
|
1472
|
+
}) : Vr(e.source, e.title) : t ? r({}) : Vr();
|
|
1179
1473
|
} }), e.updateCommand("closeWorkbook", { callback: async () => {
|
|
1180
1474
|
a() && await o.showOptions({
|
|
1181
|
-
title:
|
|
1182
|
-
description:
|
|
1475
|
+
title: Y("dialog.confirm.title"),
|
|
1476
|
+
description: Y("dialog.unsavedChanges"),
|
|
1183
1477
|
options: [{
|
|
1184
1478
|
id: "Close",
|
|
1185
|
-
label: () =>
|
|
1479
|
+
label: () => Y("dialog.close")
|
|
1186
1480
|
}, "Cancel"],
|
|
1187
1481
|
defaultOption: "Cancel"
|
|
1188
1482
|
}) !== "Close" || window.close();
|
|
@@ -1203,13 +1497,13 @@ function Sr(e, t) {
|
|
|
1203
1497
|
for (let n of t) {
|
|
1204
1498
|
let t = n.key;
|
|
1205
1499
|
e.updateCommand(`saveWorkbookAs${t}`, {
|
|
1206
|
-
label: () =>
|
|
1500
|
+
label: () => Y("command.saveAsFormat.label", { format: n.description }),
|
|
1207
1501
|
groupLabels: {
|
|
1208
|
-
workbook: () =>
|
|
1209
|
-
saveWorkbookOptions: () =>
|
|
1502
|
+
workbook: () => Y("command.saveAsFormat.workbook", { format: n.description }),
|
|
1503
|
+
saveWorkbookOptions: () => Y("command.saveAsFormat.compact", { format: n.description })
|
|
1210
1504
|
},
|
|
1211
1505
|
tags: n.tags,
|
|
1212
|
-
description: () =>
|
|
1506
|
+
description: () => Y("command.saveAsFormat", { format: n.description }),
|
|
1213
1507
|
icon: t === "CSV" ? "FileDownloadAsCSV" : t === "Excel" ? "FileDownloadAsExcel" : "FileDownloadAsSheet",
|
|
1214
1508
|
callback: () => {
|
|
1215
1509
|
r(t);
|
|
@@ -1236,7 +1530,7 @@ function Sr(e, t) {
|
|
|
1236
1530
|
autoSelect: e === a.length - 1
|
|
1237
1531
|
}).getEntireRange().copyFrom(t.getEntireRange());
|
|
1238
1532
|
}
|
|
1239
|
-
},
|
|
1533
|
+
}, Vt("op.importData")), i.close();
|
|
1240
1534
|
} catch (e) {
|
|
1241
1535
|
o.showError(e);
|
|
1242
1536
|
}
|
|
@@ -1247,7 +1541,7 @@ function Sr(e, t) {
|
|
|
1247
1541
|
let t = e;
|
|
1248
1542
|
if (t || T.canRead() || (t = await (async () => {
|
|
1249
1543
|
let e = await T.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
|
|
1250
|
-
return
|
|
1544
|
+
return Ft.openFileDialog(t.length ? t.join(",") : "*.*");
|
|
1251
1545
|
})(), t)) return p(t);
|
|
1252
1546
|
}
|
|
1253
1547
|
}), e.updateCommand("insertDataFromURL", {
|
|
@@ -1255,14 +1549,14 @@ function Sr(e, t) {
|
|
|
1255
1549
|
callback: async (e) => {
|
|
1256
1550
|
if (!e) {
|
|
1257
1551
|
let t = await o.showInput({
|
|
1258
|
-
title:
|
|
1259
|
-
description:
|
|
1260
|
-
inputLabel:
|
|
1552
|
+
title: Y("dialog.importFromWeb.title"),
|
|
1553
|
+
description: Y("dialog.importFromWeb.description"),
|
|
1554
|
+
inputLabel: Y("dialog.webAddress.inputLabel"),
|
|
1261
1555
|
initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
|
|
1262
1556
|
propsInput: { style: { minWidth: "440px" } },
|
|
1263
1557
|
options: [{
|
|
1264
1558
|
id: "Import",
|
|
1265
|
-
label: () =>
|
|
1559
|
+
label: () => Y("dialog.import")
|
|
1266
1560
|
}]
|
|
1267
1561
|
});
|
|
1268
1562
|
if (t.option !== "Import") return;
|
|
@@ -1279,11 +1573,11 @@ function Sr(e, t) {
|
|
|
1279
1573
|
}
|
|
1280
1574
|
}), f) {
|
|
1281
1575
|
let t = async () => !a() || await o.showOptions({
|
|
1282
|
-
title:
|
|
1283
|
-
description:
|
|
1576
|
+
title: Y("dialog.confirm.title"),
|
|
1577
|
+
description: Y("dialog.unsavedChanges"),
|
|
1284
1578
|
options: [{
|
|
1285
1579
|
id: "Open",
|
|
1286
|
-
label: () =>
|
|
1580
|
+
label: () => Y("dialog.open")
|
|
1287
1581
|
}, "Cancel"],
|
|
1288
1582
|
defaultOption: "Cancel"
|
|
1289
1583
|
}) === "Open", i = async (e = null) => {
|
|
@@ -1305,14 +1599,14 @@ function Sr(e, t) {
|
|
|
1305
1599
|
let n = typeof e == "string" ? e : e?.url, r = typeof e == "string" ? void 0 : e?.title;
|
|
1306
1600
|
if (!n) {
|
|
1307
1601
|
let e = await o.showInput({
|
|
1308
|
-
title:
|
|
1309
|
-
description:
|
|
1310
|
-
inputLabel:
|
|
1602
|
+
title: Y("dialog.openFromWeb.title"),
|
|
1603
|
+
description: Y("dialog.openFromWeb.description"),
|
|
1604
|
+
inputLabel: Y("dialog.webAddress.inputLabel"),
|
|
1311
1605
|
initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
|
|
1312
1606
|
propsInput: { style: { minWidth: "440px" } },
|
|
1313
1607
|
options: [{
|
|
1314
1608
|
id: "Open",
|
|
1315
|
-
label: () =>
|
|
1609
|
+
label: () => Y("dialog.open")
|
|
1316
1610
|
}]
|
|
1317
1611
|
});
|
|
1318
1612
|
if (e.option !== "Open") return;
|
|
@@ -1332,9 +1626,9 @@ function Sr(e, t) {
|
|
|
1332
1626
|
c = !0, s && (s.current = null);
|
|
1333
1627
|
};
|
|
1334
1628
|
}
|
|
1335
|
-
var
|
|
1336
|
-
|
|
1337
|
-
var
|
|
1629
|
+
var Ur = _t(J("studio:shortcutKeysDialog", () => import("./BgvcXlX-fe99mlfa.mjs")).load);
|
|
1630
|
+
o(), v();
|
|
1631
|
+
var Wr = /* @__PURE__ */ new Set(["ui"]), Gr = (e) => {
|
|
1338
1632
|
let t = (e) => {
|
|
1339
1633
|
if (typeof e != "function") return e;
|
|
1340
1634
|
try {
|
|
@@ -1344,9 +1638,9 @@ var wr = /* @__PURE__ */ new Set(["ui"]), Tr = (e) => {
|
|
|
1344
1638
|
}
|
|
1345
1639
|
}, n = (e, n) => {
|
|
1346
1640
|
let r = t(e);
|
|
1347
|
-
return typeof r == "string" ?
|
|
1641
|
+
return typeof r == "string" ? Bt(r, n, It.getActive()) : void 0;
|
|
1348
1642
|
}, r = [];
|
|
1349
|
-
for (let i of e.names()) if (!
|
|
1643
|
+
for (let i of e.names()) if (!Wr.has(i)) for (let a of e.keys(i)) {
|
|
1350
1644
|
let o = e.resolveDefinition(i, a);
|
|
1351
1645
|
r.push({
|
|
1352
1646
|
groupKey: i,
|
|
@@ -1356,27 +1650,27 @@ var wr = /* @__PURE__ */ new Set(["ui"]), Tr = (e) => {
|
|
|
1356
1650
|
getDescription: () => n(o?.description, o?.params) ?? "",
|
|
1357
1651
|
getShortcut: () => t(o?.shortcut) ?? null,
|
|
1358
1652
|
getScope: () => i,
|
|
1359
|
-
getScopeLabel: () =>
|
|
1653
|
+
getScopeLabel: () => De.DefaultCommandCatalogService.getScopeLabel(i)
|
|
1360
1654
|
}
|
|
1361
1655
|
});
|
|
1362
1656
|
}
|
|
1363
1657
|
return { getAllCommands: () => r };
|
|
1364
|
-
},
|
|
1365
|
-
let { children: t, workbook: n, setWorkbook: r, workbookTitle: i, isDirty: a, refSave: o, fullscreenTarget: s } = e, c =
|
|
1658
|
+
}, Kr = (e) => {
|
|
1659
|
+
let { children: t, workbook: n, setWorkbook: r, workbookTitle: i, isDirty: a, refSave: o, fullscreenTarget: s } = e, c = De.useCommandScope(), l = Ke(), { showModal: u } = B(), d = O(), f = I(a);
|
|
1366
1660
|
f.current = a;
|
|
1367
1661
|
let p = D(() => {
|
|
1368
1662
|
let e = c?.getRoot().getRegistry();
|
|
1369
1663
|
if (!e) return;
|
|
1370
|
-
let t = u(
|
|
1664
|
+
let t = u(Ur, {
|
|
1371
1665
|
title: d("dialog.shortcutKeys.title"),
|
|
1372
|
-
commands:
|
|
1666
|
+
commands: Gr(e),
|
|
1373
1667
|
onDone: () => t.hide(),
|
|
1374
1668
|
onLoadError: (e) => {
|
|
1375
1669
|
t.destroy(), l.showError(e);
|
|
1376
1670
|
}
|
|
1377
1671
|
});
|
|
1378
1672
|
}, [c, u]);
|
|
1379
|
-
|
|
1673
|
+
P(() => {
|
|
1380
1674
|
if (!c) return;
|
|
1381
1675
|
let e = c.getRoot().contribution();
|
|
1382
1676
|
return function(e, t) {
|
|
@@ -1392,8 +1686,8 @@ var wr = /* @__PURE__ */ new Set(["ui"]), Tr = (e) => {
|
|
|
1392
1686
|
} });
|
|
1393
1687
|
}(e, { showShortcuts: p }), () => e.remove();
|
|
1394
1688
|
}, [c, p]);
|
|
1395
|
-
let m =
|
|
1396
|
-
|
|
1689
|
+
let m = Nt("(prefers-color-scheme: dark)"), { themeMode: h } = Je(), [g, _] = qe(w.Mode, me[w.Mode]), [v, y] = qe(w.DarkGrid, me[w.DarkGrid]), [b, ee] = qe(w.DarkImages, me[w.DarkImages]);
|
|
1690
|
+
P(() => {
|
|
1397
1691
|
if (!c) return;
|
|
1398
1692
|
let e = c.getRoot().contribution();
|
|
1399
1693
|
return function(e, t) {
|
|
@@ -1418,26 +1712,26 @@ var wr = /* @__PURE__ */ new Set(["ui"]), Tr = (e) => {
|
|
|
1418
1712
|
setMode: _,
|
|
1419
1713
|
isDark: g === "dark" || !g && h === "dark",
|
|
1420
1714
|
systemDefaultDark: m,
|
|
1421
|
-
enableDarkGrid:
|
|
1422
|
-
setEnableDarkGrid:
|
|
1423
|
-
enableDarkImages:
|
|
1424
|
-
setEnableDarkImages:
|
|
1715
|
+
enableDarkGrid: v,
|
|
1716
|
+
setEnableDarkGrid: y,
|
|
1717
|
+
enableDarkImages: b,
|
|
1718
|
+
setEnableDarkImages: ee
|
|
1425
1719
|
}), () => e.remove();
|
|
1426
1720
|
}, [
|
|
1427
1721
|
c,
|
|
1428
1722
|
g,
|
|
1429
1723
|
h,
|
|
1430
1724
|
m,
|
|
1431
|
-
ee,
|
|
1432
|
-
y,
|
|
1433
|
-
_,
|
|
1434
1725
|
v,
|
|
1435
|
-
|
|
1726
|
+
b,
|
|
1727
|
+
_,
|
|
1728
|
+
y,
|
|
1729
|
+
ee
|
|
1436
1730
|
]);
|
|
1437
|
-
let [
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
}, [
|
|
1731
|
+
let [x, S] = qe(je.Active, null), [te, ne] = L(() => It.getActive());
|
|
1732
|
+
P(() => It.addChangeListener(ne), []), P(() => {
|
|
1733
|
+
x && x !== It.getActive() && It.setActive(x);
|
|
1734
|
+
}, [x]), P(() => {
|
|
1441
1735
|
if (!c) return;
|
|
1442
1736
|
let e = c.getRoot().contribution();
|
|
1443
1737
|
return function(e, t) {
|
|
@@ -1448,55 +1742,55 @@ var wr = /* @__PURE__ */ new Set(["ui"]), Tr = (e) => {
|
|
|
1448
1742
|
}
|
|
1449
1743
|
});
|
|
1450
1744
|
}(e, {
|
|
1451
|
-
active:
|
|
1745
|
+
active: te,
|
|
1452
1746
|
setActive: (e) => {
|
|
1453
|
-
|
|
1747
|
+
S(e);
|
|
1454
1748
|
}
|
|
1455
1749
|
}), () => e.remove();
|
|
1456
1750
|
}, [
|
|
1457
1751
|
c,
|
|
1458
|
-
|
|
1459
|
-
|
|
1752
|
+
te,
|
|
1753
|
+
S
|
|
1460
1754
|
]);
|
|
1461
|
-
let
|
|
1462
|
-
|
|
1755
|
+
let re = F(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: ie, isFullscreenEnabled: ae, toggleFullscreen: oe } = Ve({ target: re });
|
|
1756
|
+
P(() => {
|
|
1463
1757
|
if (!c) return;
|
|
1464
1758
|
let e = c.getRoot().contribution();
|
|
1465
1759
|
return function(e, t) {
|
|
1466
1760
|
e.updateCommand("fullScreenToggle", {
|
|
1467
1761
|
state: t.isFullscreenEnabled,
|
|
1468
|
-
disabledReasons: t.isFullscreenAvailable ? [] : [
|
|
1762
|
+
disabledReasons: t.isFullscreenAvailable ? [] : [Vt("reason.fullscreenUnavailable")],
|
|
1469
1763
|
icon: t.isFullscreenEnabled ? "FullScreenOff" : "FullScreen",
|
|
1470
1764
|
callback: () => {
|
|
1471
1765
|
t.toggleFullscreen();
|
|
1472
1766
|
}
|
|
1473
1767
|
});
|
|
1474
1768
|
}(e, {
|
|
1475
|
-
isFullscreenAvailable:
|
|
1476
|
-
isFullscreenEnabled:
|
|
1477
|
-
toggleFullscreen:
|
|
1769
|
+
isFullscreenAvailable: ie,
|
|
1770
|
+
isFullscreenEnabled: ae,
|
|
1771
|
+
toggleFullscreen: oe
|
|
1478
1772
|
}), () => e.remove();
|
|
1479
1773
|
}, [
|
|
1480
1774
|
c,
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1775
|
+
ie,
|
|
1776
|
+
ae,
|
|
1777
|
+
oe
|
|
1484
1778
|
]);
|
|
1485
|
-
let
|
|
1486
|
-
return
|
|
1779
|
+
let C = Ce(!0);
|
|
1780
|
+
return P(() => {
|
|
1487
1781
|
if (!c) return;
|
|
1488
1782
|
let e = c.getRoot().contribution();
|
|
1489
1783
|
return function(e, t) {
|
|
1490
1784
|
e.updateCommand("protectWorkbook", {
|
|
1491
1785
|
tags: ["noTransaction", "noRepeat"],
|
|
1492
1786
|
callback: () => {
|
|
1493
|
-
t(
|
|
1787
|
+
t(de.Protection, { args: { tab: "workbook" } });
|
|
1494
1788
|
}
|
|
1495
1789
|
});
|
|
1496
|
-
}(e, (e, t) =>
|
|
1497
|
-
}, [c,
|
|
1790
|
+
}(e, (e, t) => C.activate(e, t)), () => e.remove();
|
|
1791
|
+
}, [c, C]), P(() => {
|
|
1498
1792
|
if (!c || !n) return;
|
|
1499
|
-
let e = c.getRoot().contribution(), t =
|
|
1793
|
+
let e = c.getRoot().contribution(), t = Hr(e, {
|
|
1500
1794
|
workbook: n,
|
|
1501
1795
|
setWorkbook: r,
|
|
1502
1796
|
workbookTitle: i ?? void 0,
|
|
@@ -1516,9 +1810,9 @@ var wr = /* @__PURE__ */ new Set(["ui"]), Tr = (e) => {
|
|
|
1516
1810
|
o
|
|
1517
1811
|
]), t;
|
|
1518
1812
|
};
|
|
1519
|
-
|
|
1520
|
-
var
|
|
1521
|
-
let t =
|
|
1813
|
+
Kr.displayName = "StudioCommandProvider";
|
|
1814
|
+
var qr = ({ renderWorkbook: e }) => {
|
|
1815
|
+
let t = De.useCommandResolver(), n = I(null), r = O(), [i, a] = L(null), o = N((e) => {
|
|
1522
1816
|
let n = e.dataTransfer;
|
|
1523
1817
|
if (t && n) {
|
|
1524
1818
|
if (e.type === "dragenter" || e.type === "dragover") {
|
|
@@ -1564,10 +1858,10 @@ var Dr = ({ renderWorkbook: e }) => {
|
|
|
1564
1858
|
i ? i.then((e) => t.execute("openWorkbook", e?.kind === "file" ? e : r)).catch(() => t.execute("openWorkbook", r)) : t.execute("openWorkbook", r);
|
|
1565
1859
|
}
|
|
1566
1860
|
}
|
|
1567
|
-
}, [t, i]), c =
|
|
1861
|
+
}, [t, i]), c = F(() => {
|
|
1568
1862
|
if (!i) return null;
|
|
1569
1863
|
let e = i === "insertImage";
|
|
1570
|
-
return
|
|
1864
|
+
return U(G, {
|
|
1571
1865
|
className: "drop-overlay",
|
|
1572
1866
|
sx: {
|
|
1573
1867
|
position: "absolute",
|
|
@@ -1578,12 +1872,12 @@ var Dr = ({ renderWorkbook: e }) => {
|
|
|
1578
1872
|
display: "flex",
|
|
1579
1873
|
justifyContent: "center",
|
|
1580
1874
|
alignItems: "center",
|
|
1581
|
-
backgroundColor: (e) =>
|
|
1875
|
+
backgroundColor: (e) => Mt(e.palette.primary.main, .46),
|
|
1582
1876
|
outline: (e) => `2px dashed ${e.palette.primary.main}`,
|
|
1583
1877
|
outlineOffset: "-6px",
|
|
1584
1878
|
borderRadius: 2
|
|
1585
1879
|
},
|
|
1586
|
-
children:
|
|
1880
|
+
children: W(Et, {
|
|
1587
1881
|
elevation: 6,
|
|
1588
1882
|
sx: {
|
|
1589
1883
|
display: "flex",
|
|
@@ -1595,11 +1889,11 @@ var Dr = ({ renderWorkbook: e }) => {
|
|
|
1595
1889
|
color: "text.primary",
|
|
1596
1890
|
"& .drop-overlay-icon": { color: "primary.main" }
|
|
1597
1891
|
},
|
|
1598
|
-
children: [
|
|
1892
|
+
children: [U(Ae, {
|
|
1599
1893
|
iconKey: e ? "InsertImage" : "FileOpen",
|
|
1600
1894
|
className: "drop-overlay-icon",
|
|
1601
1895
|
size: 32
|
|
1602
|
-
}),
|
|
1896
|
+
}), U(jt, {
|
|
1603
1897
|
variant: "h6",
|
|
1604
1898
|
component: "span",
|
|
1605
1899
|
children: r(e ? "drop.insertImage" : "drop.open")
|
|
@@ -1607,7 +1901,7 @@ var Dr = ({ renderWorkbook: e }) => {
|
|
|
1607
1901
|
})
|
|
1608
1902
|
});
|
|
1609
1903
|
}, [i, r]);
|
|
1610
|
-
return
|
|
1904
|
+
return W(H, { children: [e({
|
|
1611
1905
|
ref: n,
|
|
1612
1906
|
onDragStart: (e) => {
|
|
1613
1907
|
if (e.target.src) {
|
|
@@ -1620,52 +1914,52 @@ var Dr = ({ renderWorkbook: e }) => {
|
|
|
1620
1914
|
onDragOver: o,
|
|
1621
1915
|
onDrop: s
|
|
1622
1916
|
}), c] });
|
|
1623
|
-
},
|
|
1917
|
+
}, Jr = M((e) => {
|
|
1624
1918
|
let { workbook: t, setWorkbook: n, refDocumentTitle: r, titleWorkbook: i, setWorkbookTitle: a, isDirty: o, initialCommandAnchor: s, renderWorkbook: c, refSave: l, host: u } = e;
|
|
1625
|
-
return
|
|
1919
|
+
return U(oe, {
|
|
1626
1920
|
initialAnchor: s,
|
|
1627
|
-
children:
|
|
1921
|
+
children: U(Kr, {
|
|
1628
1922
|
workbook: t,
|
|
1629
1923
|
setWorkbook: n,
|
|
1630
1924
|
workbookTitle: i,
|
|
1631
1925
|
isDirty: o,
|
|
1632
1926
|
refSave: l,
|
|
1633
1927
|
fullscreenTarget: u,
|
|
1634
|
-
children:
|
|
1928
|
+
children: U(qr, { renderWorkbook: c })
|
|
1635
1929
|
})
|
|
1636
1930
|
});
|
|
1637
1931
|
});
|
|
1638
|
-
|
|
1639
|
-
var
|
|
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
|
-
},
|
|
1656
|
-
let { children: t } = e, n =
|
|
1932
|
+
Jr.displayName = "CommandsWrapper";
|
|
1933
|
+
var Yr = {
|
|
1934
|
+
sort: J("studio:sortDialog", () => import("./C-lKdgOAbn4Ycu7e.mjs")).load,
|
|
1935
|
+
hyperlink: J("studio:hyperlinkDialog", () => import("./Csmz2j1S5pk-J0B3.mjs")).load,
|
|
1936
|
+
find: J("studio:findReplaceWindow", () => import("./DfrMUwmPoZFEFJFk.mjs")).load,
|
|
1937
|
+
tableNew: J("studio:tableNewDialog", () => import("./DNXDqUO4_S_N8sSC.mjs")).load,
|
|
1938
|
+
pivotTableNew: J("studio:pivotTableNewDialog", () => import("./bQOt-2VGBciMnvp_.mjs")).load,
|
|
1939
|
+
sparklineNew: J("studio:sparklineNewDialog", () => import("./g-ScvvLFu66BzoGI.mjs")).load,
|
|
1940
|
+
sparklineEdit: J("studio:sparklineEditDialog", () => import("./BvvD5BVF5uSL-2Ow.mjs")).load,
|
|
1941
|
+
namedDetails: J("studio:namedReferenceDialog", () => import("./BK0H9A2QjD4YqPxq.mjs")).load,
|
|
1942
|
+
insertFunction: J("studio:insertFunctionDialog", () => import("./CVNzlTdizLlhU05M.mjs")).load,
|
|
1943
|
+
resizeHeader: J("studio:resizeHeaderDialog", () => import("./BaYDGaXi_5fNEPo1.mjs")).load,
|
|
1944
|
+
outlineSettings: J("studio:outlineSettingsDialog", () => import("./CA42_0vpQwF292tA.mjs")).load,
|
|
1945
|
+
fillSeries: J("studio:fillSeriesDialog", () => import("./ro5VSIHWH1Nehr75.mjs")).load,
|
|
1946
|
+
workbookStatistics: J("studio:workbookStatisticsDialog", () => import("./CdK1lF_PdSw6YfAo.mjs")).load,
|
|
1947
|
+
password: J("studio:passwordDialog", () => import("./C211u9yUXa4149g9.mjs")).load,
|
|
1948
|
+
pivotValueSettings: J("studio:pivotValueSettingsDialog", () => import("./LZ2X5C1kjiwUCDGz.mjs")).load
|
|
1949
|
+
}, Xr = ["find"], Zr = M((e) => {
|
|
1950
|
+
let { children: t } = e, n = Lr(), r = n ? n.enqueueSnackbar : () => {}, i = n ? n.closeSnackbar : () => {}, a = I(/* @__PURE__ */ new Set()), o = I(null), s = I(null), [c, l] = L({
|
|
1657
1951
|
label: null,
|
|
1658
1952
|
progress: null
|
|
1659
|
-
}), u =
|
|
1660
|
-
|
|
1953
|
+
}), u = O(), d = Pt.EmptyObject, f = z(d), p = V(d), m = bt(d), h = I(!1);
|
|
1954
|
+
P(() => {
|
|
1661
1955
|
if (h.current) return;
|
|
1662
1956
|
h.current = !0;
|
|
1663
1957
|
let e = window, t = e.requestIdleCallback ?? ((e) => setTimeout(e, 500)), n = e.cancelIdleCallback ?? clearTimeout, r = t(() => {
|
|
1664
|
-
for (let e of
|
|
1958
|
+
for (let e of Xr) f(e, Yr[e], { prewarm: !0 }).catch(() => {});
|
|
1665
1959
|
});
|
|
1666
1960
|
return () => n(r);
|
|
1667
1961
|
}, []);
|
|
1668
|
-
let g =
|
|
1962
|
+
let g = I(/* @__PURE__ */ new Set()), _ = F(() => {
|
|
1669
1963
|
let e = (e, t) => {
|
|
1670
1964
|
if (t?.onceKey) {
|
|
1671
1965
|
if (g.current.has(t.onceKey)) return;
|
|
@@ -1673,16 +1967,16 @@ var kr = {
|
|
|
1673
1967
|
e.add(t.onceKey), g.current = e;
|
|
1674
1968
|
}
|
|
1675
1969
|
let n = {
|
|
1676
|
-
variant: t?.type ??
|
|
1970
|
+
variant: t?.type ?? E.Info,
|
|
1677
1971
|
anchorOrigin: {
|
|
1678
1972
|
vertical: "top",
|
|
1679
1973
|
horizontal: "center"
|
|
1680
1974
|
},
|
|
1681
1975
|
preventDuplicate: t?.preventDuplicate,
|
|
1682
|
-
persist: t?.persist ?? t?.type ===
|
|
1683
|
-
action: (e) =>
|
|
1976
|
+
persist: t?.persist ?? t?.type === E.Error,
|
|
1977
|
+
action: (e) => U(Tt, {
|
|
1684
1978
|
onClick: () => i(e),
|
|
1685
|
-
children:
|
|
1979
|
+
children: U(Ae, { iconKey: "Cancel" })
|
|
1686
1980
|
})
|
|
1687
1981
|
};
|
|
1688
1982
|
t?.enqueueProps && Object.assign(n, t.enqueueProps), e || console.log("message is 'null'", t), r(e ?? "Alert", n);
|
|
@@ -1695,8 +1989,8 @@ var kr = {
|
|
|
1695
1989
|
...t,
|
|
1696
1990
|
label: e
|
|
1697
1991
|
});
|
|
1698
|
-
let r =
|
|
1699
|
-
a.current.delete(n) && (a.current.size > 0 || (
|
|
1992
|
+
let r = ze(() => {
|
|
1993
|
+
a.current.delete(n) && (a.current.size > 0 || (gt(o.current), s.current = null, l((e) => e.label === null && e.progress === null ? e : {
|
|
1700
1994
|
label: null,
|
|
1701
1995
|
progress: null
|
|
1702
1996
|
})));
|
|
@@ -1707,11 +2001,11 @@ var kr = {
|
|
|
1707
2001
|
progress: n
|
|
1708
2002
|
});
|
|
1709
2003
|
}, (e) => {
|
|
1710
|
-
s.current = e, typeof e == "string" ?
|
|
2004
|
+
s.current = e, typeof e == "string" ? yt(o.current, e) : l((t) => ({
|
|
1711
2005
|
...t,
|
|
1712
2006
|
label: e
|
|
1713
2007
|
}));
|
|
1714
|
-
}), i =
|
|
2008
|
+
}), i = yt(o.current, typeof e == "string" ? e : void 0);
|
|
1715
2009
|
return i ? i.then(() => r) : r;
|
|
1716
2010
|
},
|
|
1717
2011
|
showWindow: (e, t) => {
|
|
@@ -1721,22 +2015,22 @@ var kr = {
|
|
|
1721
2015
|
onKeyDown: (e) => {
|
|
1722
2016
|
e.isDefaultPrevented() || e.isPropagationStopped() || n?.onKeyDown?.(e);
|
|
1723
2017
|
}
|
|
1724
|
-
}, f(e,
|
|
2018
|
+
}, f(e, Yr[e], t);
|
|
1725
2019
|
},
|
|
1726
2020
|
showOptions: p,
|
|
1727
2021
|
showInput: m,
|
|
1728
2022
|
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
|
|
2023
|
+
let n, r = E.Error, i = u("error.unknown");
|
|
2024
|
+
typeof t == "string" ? i = t : t instanceof Error && (n = t, t.message && (i = u(t.message))), t instanceof zt && (r = E.Info), e(i, {
|
|
1731
2025
|
type: r,
|
|
1732
2026
|
enqueueProps: { error: n }
|
|
1733
2027
|
});
|
|
1734
2028
|
}
|
|
1735
2029
|
};
|
|
1736
|
-
}, [u]),
|
|
2030
|
+
}, [u]), v = F(() => U(nt, {
|
|
1737
2031
|
ref: o,
|
|
1738
2032
|
autoStart: !1,
|
|
1739
|
-
icon:
|
|
2033
|
+
icon: U(rt, { sx: {
|
|
1740
2034
|
transform: "scale(0.7)",
|
|
1741
2035
|
marginLeft: "-6px"
|
|
1742
2036
|
} }),
|
|
@@ -1753,62 +2047,62 @@ var kr = {
|
|
|
1753
2047
|
pointerEvents: "none"
|
|
1754
2048
|
}
|
|
1755
2049
|
}), [c.label, c.progress]);
|
|
1756
|
-
return
|
|
2050
|
+
return W(Ne, {
|
|
1757
2051
|
notifier: _,
|
|
1758
|
-
children: [
|
|
2052
|
+
children: [v, t]
|
|
1759
2053
|
});
|
|
1760
2054
|
});
|
|
1761
|
-
|
|
1762
|
-
var
|
|
1763
|
-
let { children: n, title: r, taskPanes: i, onSelect: a, selected: o, registry: s = C, style: c, iconsOnly: l,
|
|
1764
|
-
let
|
|
1765
|
-
if (!
|
|
1766
|
-
let
|
|
1767
|
-
typeof
|
|
1768
|
-
let
|
|
2055
|
+
Zr.displayName = "StudioNotifierProvider";
|
|
2056
|
+
var Qr = "_StudioTaskPaneArea_x7txi_4", $r = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", ei = M(j((e, t) => {
|
|
2057
|
+
let { children: n, title: r, taskPanes: i, onSelect: a, selected: o, registry: s = C, style: c, iconsOnly: l, rotateIcons: u, orientation: d = "vertical", side: f = "right", className: p, ...m } = e, h = f !== "right", g = d === "horizontal", _ = h && !g, v = We(), y = F(() => i.map((e) => {
|
|
2058
|
+
let t = s.getRegisteredTaskPane(e);
|
|
2059
|
+
if (!t) return null;
|
|
2060
|
+
let n = t.getIcon?.();
|
|
2061
|
+
typeof n == "string" && (n = U(Ae, { iconKey: n }));
|
|
2062
|
+
let r = e === o, i = n ? U(G, {
|
|
1769
2063
|
sx: {
|
|
1770
2064
|
display: "inline-block",
|
|
1771
|
-
transform:
|
|
2065
|
+
transform: u && !g ? h ? "rotate(-90deg)" : "rotate(90deg)" : void 0,
|
|
1772
2066
|
transformOrigin: "center",
|
|
1773
2067
|
color: (e) => e.palette.text.secondary
|
|
1774
2068
|
},
|
|
1775
|
-
children:
|
|
1776
|
-
}) : null, c = !
|
|
2069
|
+
children: n
|
|
2070
|
+
}) : null, c = !n || !l && r, d = U(G, {
|
|
1777
2071
|
sx: {
|
|
1778
2072
|
display: "grid",
|
|
1779
2073
|
gridTemplateColumns: c ? "1fr" : "0fr",
|
|
1780
2074
|
opacity: +!!c,
|
|
1781
2075
|
transition: (e) => e.transitions.create(["grid-template-columns", "opacity"], { duration: e.transitions.duration.short })
|
|
1782
2076
|
},
|
|
1783
|
-
children:
|
|
2077
|
+
children: U(G, {
|
|
1784
2078
|
sx: {
|
|
1785
2079
|
overflow: "hidden",
|
|
1786
2080
|
minWidth: 0,
|
|
1787
2081
|
minHeight: 0
|
|
1788
2082
|
},
|
|
1789
|
-
children:
|
|
2083
|
+
children: U(jt, {
|
|
1790
2084
|
component: "div",
|
|
1791
2085
|
sx: {
|
|
1792
2086
|
textTransform: "none",
|
|
1793
2087
|
whiteSpace: "nowrap",
|
|
1794
|
-
transform:
|
|
1795
|
-
padding: "4px 0px",
|
|
1796
|
-
color: (e) =>
|
|
2088
|
+
transform: _ ? "rotate(180deg)" : void 0,
|
|
2089
|
+
padding: g ? "0px 4px" : "4px 0px",
|
|
2090
|
+
color: (e) => r ? e.palette.primary.main : e.palette.text.secondary
|
|
1797
2091
|
},
|
|
1798
|
-
children:
|
|
2092
|
+
children: t.getTitle()
|
|
1799
2093
|
})
|
|
1800
2094
|
})
|
|
1801
2095
|
});
|
|
1802
|
-
return
|
|
1803
|
-
value:
|
|
1804
|
-
label:
|
|
2096
|
+
return U(Ot, {
|
|
2097
|
+
value: e,
|
|
2098
|
+
label: U(pt, {
|
|
1805
2099
|
disableInteractive: !0,
|
|
1806
|
-
title:
|
|
1807
|
-
placement: "left-start",
|
|
1808
|
-
children:
|
|
2100
|
+
title: t.getTitle() ?? "",
|
|
2101
|
+
placement: g ? "top" : "left-start",
|
|
2102
|
+
children: W(G, {
|
|
1809
2103
|
sx: {
|
|
1810
2104
|
padding: "0px 0px",
|
|
1811
|
-
writingMode:
|
|
2105
|
+
writingMode: g ? "horizontal-tb" : h ? "vertical-lr" : "vertical-rl",
|
|
1812
2106
|
textOrientation: "mixed",
|
|
1813
2107
|
display: "flex",
|
|
1814
2108
|
alignItems: "center",
|
|
@@ -1816,7 +2110,7 @@ var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1816
2110
|
minWidth: "0px",
|
|
1817
2111
|
color: (e) => e.palette.text.secondary
|
|
1818
2112
|
},
|
|
1819
|
-
children: [
|
|
2113
|
+
children: [_ ? d : i, _ ? i : d]
|
|
1820
2114
|
})
|
|
1821
2115
|
}),
|
|
1822
2116
|
sx: {
|
|
@@ -1825,50 +2119,55 @@ var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1825
2119
|
minHeight: "0px",
|
|
1826
2120
|
borderRadius: "4px"
|
|
1827
2121
|
},
|
|
1828
|
-
className:
|
|
1829
|
-
onClick: () => e
|
|
1830
|
-
},
|
|
2122
|
+
className: S("taskpane-strip-item", { "Mui-selected": r }),
|
|
2123
|
+
onClick: () => a(e)
|
|
2124
|
+
}, e);
|
|
1831
2125
|
}), [
|
|
1832
2126
|
i,
|
|
1833
2127
|
o,
|
|
1834
2128
|
a,
|
|
1835
2129
|
s,
|
|
1836
|
-
|
|
2130
|
+
h,
|
|
2131
|
+
g,
|
|
2132
|
+
_,
|
|
1837
2133
|
l,
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
2134
|
+
u,
|
|
2135
|
+
v
|
|
2136
|
+
]), b = He(t, () => ({ isTaskPaneStrip: () => !0 }), []), ee = F(() => S("taskpane-strip", `sxl-${d}`, p), [p, d]);
|
|
2137
|
+
return U(G, {
|
|
2138
|
+
ref: b,
|
|
2139
|
+
className: ee,
|
|
1843
2140
|
sx: {
|
|
1844
|
-
paddingLeft:
|
|
1845
|
-
paddingRight:
|
|
1846
|
-
paddingTop: "4px",
|
|
2141
|
+
paddingLeft: "2px",
|
|
2142
|
+
paddingRight: "2px",
|
|
2143
|
+
paddingTop: g ? "0px" : "4px",
|
|
2144
|
+
minWidth: 0,
|
|
1847
2145
|
...c
|
|
1848
2146
|
},
|
|
1849
|
-
...
|
|
1850
|
-
children:
|
|
1851
|
-
orientation:
|
|
2147
|
+
...m,
|
|
2148
|
+
children: U(kt, {
|
|
2149
|
+
orientation: d,
|
|
1852
2150
|
variant: "scrollable",
|
|
1853
|
-
value: o,
|
|
1854
|
-
|
|
1855
|
-
a(t);
|
|
1856
|
-
},
|
|
2151
|
+
value: o ?? !1,
|
|
2152
|
+
sx: { minHeight: 0 },
|
|
1857
2153
|
slotProps: {
|
|
1858
2154
|
list: { sx: { gap: "2px" } },
|
|
1859
|
-
indicator: { sx: {
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
2155
|
+
indicator: { sx: g ? {
|
|
2156
|
+
top: h ? void 0 : "0px",
|
|
2157
|
+
bottom: h ? "0px" : "unset"
|
|
2158
|
+
} : {
|
|
2159
|
+
left: h ? void 0 : "0px",
|
|
2160
|
+
right: h ? void 0 : "unset",
|
|
2161
|
+
bottom: h ? "0px" : void 0
|
|
1863
2162
|
} }
|
|
1864
2163
|
},
|
|
1865
|
-
children:
|
|
2164
|
+
children: y
|
|
1866
2165
|
})
|
|
1867
2166
|
});
|
|
1868
|
-
})),
|
|
1869
|
-
let { title: t, icon: n, onClose: r, readOnly: i, focused: a, ...o } = e, s =
|
|
1870
|
-
return
|
|
1871
|
-
className:
|
|
2167
|
+
})), ti = (e) => {
|
|
2168
|
+
let { title: t, icon: n, onClose: r, readOnly: i, focused: a, ...o } = e, s = I(null), c = O();
|
|
2169
|
+
return U(wt, {
|
|
2170
|
+
className: S({ "Mui-selected": a }),
|
|
1872
2171
|
sx: {
|
|
1873
2172
|
display: "flex",
|
|
1874
2173
|
flex: "1 1 %0",
|
|
@@ -1882,11 +2181,11 @@ var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1882
2181
|
opacity: 1,
|
|
1883
2182
|
transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
|
|
1884
2183
|
},
|
|
1885
|
-
backgroundColor: (e) =>
|
|
1886
|
-
borderBottom: `solid ${
|
|
2184
|
+
backgroundColor: (e) => Mt(e.palette.action.hover, .03),
|
|
2185
|
+
borderBottom: `solid ${$r} 1px`
|
|
1887
2186
|
},
|
|
1888
2187
|
...o,
|
|
1889
|
-
children:
|
|
2188
|
+
children: W(G, {
|
|
1890
2189
|
sx: {
|
|
1891
2190
|
display: "flex",
|
|
1892
2191
|
flex: "1 1 10%",
|
|
@@ -1897,15 +2196,15 @@ var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1897
2196
|
marginLeft: (e) => e.spacing(1),
|
|
1898
2197
|
marginRight: (e) => e.spacing(1)
|
|
1899
2198
|
},
|
|
1900
|
-
children: [
|
|
2199
|
+
children: [U(G, {
|
|
1901
2200
|
sx: {
|
|
1902
2201
|
flex: "1 1 100%",
|
|
1903
2202
|
paddingLeft: (e) => e.spacing(1)
|
|
1904
2203
|
},
|
|
1905
2204
|
children: t
|
|
1906
|
-
}),
|
|
2205
|
+
}), U(dt, {
|
|
1907
2206
|
label: c("taskPane.close"),
|
|
1908
|
-
children:
|
|
2207
|
+
children: U(Tt, {
|
|
1909
2208
|
"aria-label": "close",
|
|
1910
2209
|
sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
|
|
1911
2210
|
touchRippleRef: s,
|
|
@@ -1915,117 +2214,35 @@ var Mr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1915
2214
|
onPointerUp: () => {
|
|
1916
2215
|
r();
|
|
1917
2216
|
},
|
|
1918
|
-
children:
|
|
2217
|
+
children: U(Ae, { iconKey: "Close" })
|
|
1919
2218
|
})
|
|
1920
2219
|
})]
|
|
1921
2220
|
})
|
|
1922
2221
|
});
|
|
1923
|
-
},
|
|
1924
|
-
let { model: n,
|
|
1925
|
-
return
|
|
1926
|
-
model: n,
|
|
2222
|
+
}, ni = j((e, t) => {
|
|
2223
|
+
let { model: n, className: r, ...i } = e, a = q(), o = `solid ${$r} 1px`, s = `${a.shape.borderRadius ?? 4}px`, c = `${a.spacing?.(.5) ?? 4}px`;
|
|
2224
|
+
return U(ue, {
|
|
1927
2225
|
ref: t,
|
|
2226
|
+
model: n,
|
|
1928
2227
|
propsFrame: { style: {
|
|
1929
2228
|
border: o,
|
|
1930
2229
|
borderRadius: s,
|
|
1931
2230
|
marginBottom: c
|
|
1932
2231
|
} },
|
|
1933
2232
|
alwaysShowStrip: !0,
|
|
1934
|
-
componentTitle:
|
|
1935
|
-
componentStrip:
|
|
1936
|
-
|
|
1937
|
-
...e,
|
|
1938
|
-
onOpen: () => {
|
|
1939
|
-
e?.onOpen?.();
|
|
1940
|
-
},
|
|
1941
|
-
onClose: () => {
|
|
1942
|
-
e?.onClose?.();
|
|
1943
|
-
},
|
|
2233
|
+
componentTitle: ti,
|
|
2234
|
+
componentStrip: ei,
|
|
2235
|
+
className: S(Qr, r),
|
|
1944
2236
|
...i
|
|
1945
2237
|
});
|
|
1946
|
-
}),
|
|
1947
|
-
flex: "1 1 100%",
|
|
1948
|
-
display: "flex",
|
|
1949
|
-
boxSizing: "border-box"
|
|
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
|
-
if (e == null) return "40%";
|
|
1955
|
-
if (typeof e == "number" || typeof e == "string") return e;
|
|
1956
|
-
let n = e[t];
|
|
1957
|
-
return n == null ? "40%" : `${n}%`;
|
|
1958
|
-
})(i, se) : `${ce}%`, le = a || o ? (e) => {
|
|
1959
|
-
a && f((t) => ({
|
|
1960
|
-
...t,
|
|
1961
|
-
[se]: e.percent
|
|
1962
|
-
})), o?.(e, {
|
|
1963
|
-
orientation: ae,
|
|
1964
|
-
side: oe,
|
|
1965
|
-
key: se
|
|
1966
|
-
});
|
|
1967
|
-
} : void 0;
|
|
1968
|
-
C && S ? (ie = r, S = n, v = { style: {
|
|
1969
|
-
flexDirection: "column",
|
|
1970
|
-
boxSizing: "border-box",
|
|
1971
|
-
paddingRight: "2px"
|
|
1972
|
-
} }, ee = {}, re = {
|
|
1973
|
-
fixedPane: "before",
|
|
1974
|
-
position: w,
|
|
1975
|
-
minBefore: g ? "280px" : "120px",
|
|
1976
|
-
splitDirection: g ? "row" : "column"
|
|
1977
|
-
}) : (ee = { style: {
|
|
1978
|
-
flexDirection: "column",
|
|
1979
|
-
marginRight: r ? void 0 : "6px"
|
|
1980
|
-
} }, v = { style: {
|
|
1981
|
-
marginLeft: g ? "0px" : "4px",
|
|
1982
|
-
marginRight: g ? "8px" : "4px"
|
|
1983
|
-
} }, re = {
|
|
1984
|
-
fixedPane: "after",
|
|
1985
|
-
position: w,
|
|
1986
|
-
minAfter: g ? "280px" : "120px",
|
|
1987
|
-
splitDirection: g ? "row" : "column"
|
|
1988
|
-
});
|
|
1989
|
-
let ue = x([
|
|
1990
|
-
_,
|
|
1991
|
-
m,
|
|
1992
|
-
t
|
|
1993
|
-
]);
|
|
1994
|
-
return L(Pe, {
|
|
1995
|
-
ref: ue,
|
|
1996
|
-
className: s,
|
|
1997
|
-
style: c ? {
|
|
1998
|
-
...Rr,
|
|
1999
|
-
...c
|
|
2000
|
-
} : Rr,
|
|
2001
|
-
...u,
|
|
2002
|
-
...re,
|
|
2003
|
-
onPositionChange: le,
|
|
2004
|
-
propsResizer: {
|
|
2005
|
-
className: b("styled-resizer", Ir),
|
|
2006
|
-
style: {
|
|
2007
|
-
minWidth: g ? "7px" : void 0,
|
|
2008
|
-
minHeight: g ? void 0 : "6px",
|
|
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
|
-
maskRepeat: "no-repeat",
|
|
2011
|
-
maskPosition: C ? g ? "center center" : "bottom center" : g ? "left center" : "top center"
|
|
2012
|
-
}
|
|
2013
|
-
},
|
|
2014
|
-
elementBefore: ie,
|
|
2015
|
-
propsPaneBefore: ee,
|
|
2016
|
-
elementAfter: S,
|
|
2017
|
-
propsPaneAfter: v
|
|
2018
|
-
});
|
|
2019
|
-
}));
|
|
2020
|
-
zr.displayName = "StudioSplitPane";
|
|
2021
|
-
var Br = () => L("div", { style: {
|
|
2238
|
+
}), ri = () => U("div", { style: {
|
|
2022
2239
|
flex: "none",
|
|
2023
2240
|
height: 0,
|
|
2024
2241
|
borderTop: "solid var(--sxl-color-base-border, light-dark(rgba(0, 0, 0, 0.26), rgba(255, 255, 255, 0.3))) 1px"
|
|
2025
|
-
} }),
|
|
2026
|
-
let n = (e) =>
|
|
2242
|
+
} }), ii = (e, t) => {
|
|
2243
|
+
let n = (e) => U(k.Fragment, { children: t[e] }, e);
|
|
2027
2244
|
if (e === "bottom") {
|
|
2028
|
-
let e = t.statusBar && t.formulaBar ?
|
|
2245
|
+
let e = t.statusBar && t.formulaBar ? U(ri, {}, "divider") : null;
|
|
2029
2246
|
return [
|
|
2030
2247
|
n("toolbar"),
|
|
2031
2248
|
n("main"),
|
|
@@ -2040,41 +2257,41 @@ var Br = () => L("div", { style: {
|
|
|
2040
2257
|
n("main"),
|
|
2041
2258
|
n("statusBar")
|
|
2042
2259
|
];
|
|
2043
|
-
},
|
|
2260
|
+
}, ai = (e) => {
|
|
2044
2261
|
let { groups: t } = e;
|
|
2045
|
-
return
|
|
2262
|
+
return U(G, {
|
|
2046
2263
|
role: "menu",
|
|
2047
2264
|
sx: {
|
|
2048
2265
|
paddingTop: "4px",
|
|
2049
2266
|
paddingBottom: "4px"
|
|
2050
2267
|
},
|
|
2051
|
-
children: t.map((e, t) =>
|
|
2268
|
+
children: t.map((e, t) => W(Xe, { children: [t > 0 ? U(ot, { orientation: "horizontal" }) : null, e.map((e) => U(ut, {
|
|
2052
2269
|
role: e.checked === void 0 ? "menuitem" : "menuitemradio",
|
|
2053
2270
|
"aria-checked": e.checked,
|
|
2054
2271
|
disabled: e.disabled,
|
|
2055
2272
|
selected: e.checked,
|
|
2056
|
-
icon: e.checked ?
|
|
2273
|
+
icon: e.checked ? U(R, {}) : void 0,
|
|
2057
2274
|
onClick: e.run,
|
|
2058
2275
|
children: e.label
|
|
2059
2276
|
}, e.key))] }, t))
|
|
2060
2277
|
});
|
|
2061
|
-
},
|
|
2062
|
-
let { pivot: t, name: n, source: r, onError: i } = e, a =
|
|
2278
|
+
}, oi = (e) => U(ai, { ...e }), si = (e) => {
|
|
2279
|
+
let { pivot: t, name: n, source: r, onError: i } = e, a = O(), o = t.getWorksheet(), s = o.getProtection().isLocked(), c = F(() => ({ scope: o.getName() }), [o]), l = D((e, n) => {
|
|
2063
2280
|
n.reason === "accept" && e !== t.getName() && t.setName(e).catch(i);
|
|
2064
2281
|
}, [t, i]), u = D((e) => {
|
|
2065
|
-
if (e.length === 0 || e.length > 255) throw new
|
|
2282
|
+
if (e.length === 0 || e.length > 255) throw new Rt(a("error.pivotTable.nameInvalid"));
|
|
2066
2283
|
let n = o.getPivotTables().getByName(e);
|
|
2067
|
-
if (n && n.getName() !== t.getName()) throw new
|
|
2284
|
+
if (n && n.getName() !== t.getName()) throw new Rt(a("error.pivotTable.nameExists"));
|
|
2068
2285
|
}, [
|
|
2069
2286
|
o,
|
|
2070
2287
|
t,
|
|
2071
2288
|
a
|
|
2072
2289
|
]), d = D((e, n) => {
|
|
2073
2290
|
if (n.reason !== "accept") return;
|
|
2074
|
-
let r =
|
|
2291
|
+
let r = cn(e);
|
|
2075
2292
|
r && t.setSource(typeof r == "string" ? r : r.at(0)).catch(i);
|
|
2076
2293
|
}, [t, i]);
|
|
2077
|
-
return
|
|
2294
|
+
return W(G, {
|
|
2078
2295
|
className: "sxl-pivot-table-header",
|
|
2079
2296
|
sx: {
|
|
2080
2297
|
display: "flex",
|
|
@@ -2082,14 +2299,14 @@ var Br = () => L("div", { style: {
|
|
|
2082
2299
|
rowGap: (e) => e.spacing(1),
|
|
2083
2300
|
paddingTop: (e) => e.spacing(1)
|
|
2084
2301
|
},
|
|
2085
|
-
children: [
|
|
2302
|
+
children: [U(ae, {
|
|
2086
2303
|
formName: "name",
|
|
2087
2304
|
value: n,
|
|
2088
2305
|
changeOn: "done",
|
|
2089
2306
|
onDone: l,
|
|
2090
2307
|
onValidate: u,
|
|
2091
2308
|
disabled: s
|
|
2092
|
-
}),
|
|
2309
|
+
}), U(re, {
|
|
2093
2310
|
grammar: "reference",
|
|
2094
2311
|
formName: "source",
|
|
2095
2312
|
label: a("pivotTableNew.source"),
|
|
@@ -2102,31 +2319,49 @@ var Br = () => L("div", { style: {
|
|
|
2102
2319
|
disabled: s || r === null
|
|
2103
2320
|
})]
|
|
2104
2321
|
});
|
|
2105
|
-
},
|
|
2106
|
-
renderMenu:
|
|
2107
|
-
renderFilter:
|
|
2108
|
-
renderHeader:
|
|
2322
|
+
}, ci = (e) => U(si, { ...e }), li = (e) => U(ce, {
|
|
2323
|
+
renderMenu: oi,
|
|
2324
|
+
renderFilter: y,
|
|
2325
|
+
renderHeader: ci,
|
|
2109
2326
|
...e
|
|
2110
|
-
}),
|
|
2111
|
-
EagerStudio: () =>
|
|
2112
|
-
default: () =>
|
|
2327
|
+
}), ui = vt(J("studio:chartDetailsTaskPane", () => import("./CQ1ArTuEvBmc7W5I.mjs"), { select: (e) => ({ default: e.ChartDetailsTaskPane }) }).load), di = vt(J("studio:dataValidationDetailsTaskPane", () => import("./CHb2gapathcPfhdM.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), fi = Ut({
|
|
2328
|
+
EagerStudio: () => vi,
|
|
2329
|
+
default: () => vi
|
|
2113
2330
|
});
|
|
2114
|
-
|
|
2115
|
-
key:
|
|
2116
|
-
component:
|
|
2117
|
-
}, !0),
|
|
2331
|
+
b(), C.registerTaskPane({
|
|
2332
|
+
key: de.PivotTable,
|
|
2333
|
+
component: li
|
|
2334
|
+
}, !0), Oe.register({
|
|
2118
2335
|
key: "changeShapeGallery",
|
|
2119
2336
|
contributions: { shapeToolbar: {
|
|
2120
2337
|
order: -1,
|
|
2121
2338
|
divider: "after"
|
|
2122
2339
|
} },
|
|
2123
|
-
render: (e) =>
|
|
2340
|
+
render: (e) => U(m, {
|
|
2124
2341
|
...e,
|
|
2125
2342
|
commandKey: "changeShape",
|
|
2126
|
-
excludeCategories:
|
|
2343
|
+
excludeCategories: an
|
|
2127
2344
|
})
|
|
2128
|
-
}, !0),
|
|
2129
|
-
|
|
2345
|
+
}, !0), ve("shape", () => import("./B5hj7BR72rs3Xx2-.mjs").then((e) => e.ShapeFormatPanel)), C.registerTaskPane({
|
|
2346
|
+
key: de.ChartDetails,
|
|
2347
|
+
component: ui
|
|
2348
|
+
}, !0), ve("chart", () => import("./tfUleloRF2hBRjjZ.mjs").then((e) => e.ChartFormatPanel)), Oe.register({
|
|
2349
|
+
key: "chartChangeTypeOptions",
|
|
2350
|
+
contributions: { chartToolbar: { order: -3 } },
|
|
2351
|
+
render: (e) => U(Xt, { ...e })
|
|
2352
|
+
}, !0), Oe.register({
|
|
2353
|
+
key: "chartStyleOptions",
|
|
2354
|
+
contributions: { chartToolbar: { order: -2 } },
|
|
2355
|
+
render: (e) => U(Yt, { ...e })
|
|
2356
|
+
}, !0), Oe.register({
|
|
2357
|
+
key: "chartColorsOptions",
|
|
2358
|
+
contributions: { chartToolbar: {
|
|
2359
|
+
order: -1,
|
|
2360
|
+
divider: "after"
|
|
2361
|
+
} },
|
|
2362
|
+
render: (e) => U(rn, { ...e })
|
|
2363
|
+
}, !0), (() => {
|
|
2364
|
+
let e = De.DefaultCommandButtonRegistry, t = [];
|
|
2130
2365
|
t.push(e.register({
|
|
2131
2366
|
key: "changePictureOptions",
|
|
2132
2367
|
defaultKey: "changePictureFromFile",
|
|
@@ -2163,10 +2398,10 @@ s(), C.registerTaskPane({
|
|
|
2163
2398
|
members: [
|
|
2164
2399
|
{
|
|
2165
2400
|
key: "cropToShapeGallery",
|
|
2166
|
-
render: (e) =>
|
|
2401
|
+
render: (e) => U(m, {
|
|
2167
2402
|
...e,
|
|
2168
2403
|
commandKey: "cropToShape",
|
|
2169
|
-
excludeCategories:
|
|
2404
|
+
excludeCategories: an
|
|
2170
2405
|
})
|
|
2171
2406
|
},
|
|
2172
2407
|
"cropAspectOptions",
|
|
@@ -2179,14 +2414,14 @@ s(), C.registerTaskPane({
|
|
|
2179
2414
|
divider: "after"
|
|
2180
2415
|
} }
|
|
2181
2416
|
}, !0));
|
|
2182
|
-
})(),
|
|
2183
|
-
key:
|
|
2184
|
-
component:
|
|
2417
|
+
})(), a(), C.registerTaskPane({
|
|
2418
|
+
key: de.DataValidation,
|
|
2419
|
+
component: di
|
|
2185
2420
|
}, !0), C.registerTaskPane({
|
|
2186
|
-
key:
|
|
2187
|
-
component:
|
|
2188
|
-
}, !0),
|
|
2189
|
-
var
|
|
2421
|
+
key: de.ConditionalFormat,
|
|
2422
|
+
component: Wt
|
|
2423
|
+
}, !0), n(), u(), l(), c(), r(), i(), _();
|
|
2424
|
+
var pi = () => {
|
|
2190
2425
|
let e, t, n = new Promise((n, r) => {
|
|
2191
2426
|
e = n, t = r;
|
|
2192
2427
|
}), r = {
|
|
@@ -2200,172 +2435,178 @@ var Yr = () => {
|
|
|
2200
2435
|
}
|
|
2201
2436
|
};
|
|
2202
2437
|
return n.catch(() => {}), r;
|
|
2203
|
-
},
|
|
2438
|
+
}, mi = (e, t) => {
|
|
2204
2439
|
if (!e) return {};
|
|
2205
2440
|
let { colorSchemes: n, ...r } = e, i = n?.[t ? "dark" : "light"];
|
|
2206
|
-
return i && typeof i == "object" ?
|
|
2207
|
-
},
|
|
2208
|
-
let {
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2441
|
+
return i && typeof i == "object" ? Pt.deepMerge(r, i) : r;
|
|
2442
|
+
}, hi = "taskPanes", gi = A({ scope: null }), _i = ({ children: e }) => {
|
|
2443
|
+
let { scope: t, wrapper: n } = et(gi);
|
|
2444
|
+
return U(De.CommandScopeProvider, {
|
|
2445
|
+
scope: t,
|
|
2446
|
+
children: n ? U(n, { children: e }) : e
|
|
2447
|
+
});
|
|
2448
|
+
}, vi = M(j((n, r) => {
|
|
2449
|
+
let { host: i, scopeClass: a, square: o, elevation: c, variant: l, onWorkbookLoad: u, onRenderSettled: m, prefetch: h, onDocumentError: _, renderDocumentError: v = t, propsDocumentError: y, propsTaskPaneArea: b, renderTaskPaneArea: x = yi, taskPaneSide: S = "right", onKeyDown: te, workbook: re, onWorkbookChange: ie, logo: ae, topLeft: oe, topRight: C, muiTheme: se, tokens: ce, cssBaseline: ue, autoFocus: de = !1, title: ge, onDirtyChange: ve, propsDocumentTitle: Ce, renderDocumentLoading: Oe = s, propsDocumentLoading: E, propsWorkbook: Ne, showFormulaBar: ze, propsFormulaBar: Be, renderFormulaBar: Ve, formulaBarPlacement: We, virtualKeyboard: Ge = "float", editable: Ke, showStatusBar: O, propsStatusBar: k, renderStatusBar: Ye, propsToolbar: Xe, renderToolbar: Ze } = n, A = I(null), Qe = I(null), j = I(null), $e = D(() => {
|
|
2450
|
+
j.current?.getNamedCollectionEditorElement?.()?.focus?.();
|
|
2451
|
+
}, []), M = ((e, t = typeof window > "u" ? "mouse" : Pe.detectIt().primaryInput) => e === "top" || e === "bottom" ? e : t === "touch" ? "bottom" : "top")(We), et = M === "bottom" ? Ge : "none", { inset: tt, offsetTop: nt } = Ue(et === "resize"), rt = D(_ ?? (() => {}), [_]), at = D(ve ?? (() => {}), [ve]), ot = Ce?.placeHolder, [ct] = qe(w.Mode, me[w.Mode]), { themeMode: lt } = Je({ mode: ct ?? void 0 }), [ut] = qe(je.Active, null), dt = I(ut);
|
|
2452
|
+
dt.current = ut;
|
|
2453
|
+
let R = F(() => ({
|
|
2454
|
+
light: ht(!1, Pt.deepMerge(mi(se, !1), ee(ce?.light?.app))),
|
|
2455
|
+
dark: ht(!0, Pt.deepMerge(mi(se, !0), ee(ce?.dark?.app)))
|
|
2456
|
+
}), [se, ce]), pt = lt === "dark", mt = F(() => d(R.light, R.dark, `.${a}`, ce), [
|
|
2457
|
+
R,
|
|
2458
|
+
a,
|
|
2459
|
+
ce
|
|
2460
|
+
]), gt = ye(), [_t, vt] = L(() => re ?? null);
|
|
2461
|
+
P(() => {
|
|
2462
|
+
vt(re ?? null);
|
|
2463
|
+
}, [re]);
|
|
2464
|
+
let [yt, bt] = L(0), z = I(null);
|
|
2465
|
+
z.current ||= pi();
|
|
2466
|
+
let B = Se(_t, {
|
|
2226
2467
|
io: T,
|
|
2227
|
-
defaultTheme:
|
|
2228
|
-
reloadKey:
|
|
2229
|
-
}),
|
|
2468
|
+
defaultTheme: gt.getDefaultTheme(),
|
|
2469
|
+
reloadKey: yt
|
|
2470
|
+
}), V = B.status === "loaded" ? B.workbook : null, H = F(() => B.status === "error" ? {
|
|
2230
2471
|
status: "error",
|
|
2231
|
-
error:
|
|
2232
|
-
} :
|
|
2472
|
+
error: B.error
|
|
2473
|
+
} : B.status === "loaded" ? {
|
|
2233
2474
|
status: "loaded",
|
|
2234
|
-
workbook:
|
|
2235
|
-
} : { status: "loading" }, [
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
}, [
|
|
2239
|
-
if (
|
|
2240
|
-
let e =
|
|
2475
|
+
workbook: B.workbook
|
|
2476
|
+
} : { status: "loading" }, [B]);
|
|
2477
|
+
P(() => {
|
|
2478
|
+
z.current.settled && (z.current = pi());
|
|
2479
|
+
}, [_t, yt]), P(() => {
|
|
2480
|
+
if (H.status === "loaded") {
|
|
2481
|
+
let e = z.current, t = H.workbook;
|
|
2241
2482
|
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 &&
|
|
2483
|
+
} else H.status === "error" && (rt?.(H.error), z.current.reject(H.error));
|
|
2484
|
+
}, [H]);
|
|
2485
|
+
let [K, xt] = L(null);
|
|
2486
|
+
V && !K && xt(V);
|
|
2487
|
+
let St = V && K && V !== K ? V : null, wt = I(St);
|
|
2488
|
+
wt.current = St;
|
|
2489
|
+
let Tt = I(K);
|
|
2490
|
+
Tt.current = K;
|
|
2491
|
+
let Ot = I([]), kt = N((e) => {
|
|
2492
|
+
let t = Tt.current;
|
|
2493
|
+
t && Ot.current.push(t), vt(e);
|
|
2253
2494
|
}, []);
|
|
2254
|
-
|
|
2255
|
-
let e =
|
|
2495
|
+
P(() => {
|
|
2496
|
+
let e = Ot.current;
|
|
2256
2497
|
if (e.length !== 0) {
|
|
2257
|
-
|
|
2498
|
+
Ot.current = e.filter((e) => e === K);
|
|
2258
2499
|
for (let t = 0; t < e.length; t++) {
|
|
2259
2500
|
let n = e[t];
|
|
2260
|
-
if (n !==
|
|
2501
|
+
if (n !== K) try {
|
|
2261
2502
|
n.close();
|
|
2262
2503
|
} catch (e) {
|
|
2263
2504
|
console.warn("Unable to close the replaced workbook", e);
|
|
2264
2505
|
}
|
|
2265
2506
|
}
|
|
2266
2507
|
}
|
|
2267
|
-
}, [
|
|
2268
|
-
let
|
|
2269
|
-
let e =
|
|
2270
|
-
return e ?
|
|
2271
|
-
}, [
|
|
2272
|
-
|
|
2273
|
-
if (!
|
|
2274
|
-
let e =
|
|
2275
|
-
return
|
|
2508
|
+
}, [K]);
|
|
2509
|
+
let jt = Ke ? null : K, Mt = xe(), Nt = F(() => {
|
|
2510
|
+
let e = jt?.getSelectedWorksheet() ?? jt?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
|
|
2511
|
+
return e ? _e(e, { referenceMode: Mt }) : null;
|
|
2512
|
+
}, [jt, Mt]), q = Ke ?? Nt, Ft = I(q);
|
|
2513
|
+
Ft.current = q, P(() => {
|
|
2514
|
+
if (!q) return;
|
|
2515
|
+
let e = q.getSession();
|
|
2516
|
+
return q.subscribe(() => {
|
|
2276
2517
|
let t = e;
|
|
2277
|
-
if (e =
|
|
2278
|
-
let n =
|
|
2518
|
+
if (e = q.getSession(), !t || e || t.getActiveEditorId() !== "formula-bar") return;
|
|
2519
|
+
let n = j.current;
|
|
2279
2520
|
(n?.isFocusWithin?.() ?? n?.contains?.(document.activeElement)) && A.current?.focus();
|
|
2280
2521
|
});
|
|
2522
|
+
}, [q]);
|
|
2523
|
+
let Lt = Te(K), { isDirty: Rt, saveState: zt } = Ee(K, T), J = we(K), Bt = I(zt), Vt = I(null);
|
|
2524
|
+
Bt.current = zt;
|
|
2525
|
+
let Y = N(() => Bt.current?.isDirty() ?? !1, []), Ht = I(H);
|
|
2526
|
+
Ht.current = H;
|
|
2527
|
+
let [X, Ut] = L(null), Wt = ge ?? Ce?.title, [Gt, Kt] = L(null);
|
|
2528
|
+
P(() => {
|
|
2529
|
+
Kt(null);
|
|
2281
2530
|
}, [K]);
|
|
2282
|
-
let
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
Wt.current = U;
|
|
2286
|
-
let [Gt, Kt] = F(null), qt = Te ?? E?.title, [Jt, Yt] = F(null);
|
|
2287
|
-
M(() => {
|
|
2288
|
-
Yt(null);
|
|
2289
|
-
}, [W]);
|
|
2290
|
-
let Xt = qt ?? Jt ?? Lt ?? "";
|
|
2291
|
-
M(() => {
|
|
2292
|
-
lt?.(Rt);
|
|
2531
|
+
let qt = Wt ?? Gt ?? Lt ?? "";
|
|
2532
|
+
P(() => {
|
|
2533
|
+
at?.(Rt);
|
|
2293
2534
|
}, [Rt]);
|
|
2294
|
-
let
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
}, [
|
|
2298
|
-
let
|
|
2299
|
-
|
|
2300
|
-
let
|
|
2535
|
+
let Jt = D(ie ?? (() => {}), [ie]);
|
|
2536
|
+
P(() => {
|
|
2537
|
+
Jt?.(V);
|
|
2538
|
+
}, [V]);
|
|
2539
|
+
let Yt = I(V);
|
|
2540
|
+
Yt.current = V, be(K, "onViewChange");
|
|
2541
|
+
let Xt = F(() => U(it, {
|
|
2301
2542
|
groupKey: "helpOptions",
|
|
2302
2543
|
disableHover: !0,
|
|
2303
2544
|
sx: { padding: "0" },
|
|
2304
2545
|
propsButton: { sx: { maxHeight: "22px" } }
|
|
2305
|
-
}), []), [
|
|
2306
|
-
|
|
2546
|
+
}), []), [Zt, Qt] = L(null), $t = N((e) => {
|
|
2547
|
+
Qt(e);
|
|
2307
2548
|
}, []);
|
|
2308
|
-
|
|
2309
|
-
|
|
2549
|
+
P(() => {
|
|
2550
|
+
ke.prefetch([ke.getActive(), le]).catch((e) => {
|
|
2310
2551
|
console.warn("Icons could not be loaded:", e);
|
|
2311
2552
|
});
|
|
2312
2553
|
}, []);
|
|
2313
|
-
let
|
|
2314
|
-
|
|
2315
|
-
let
|
|
2316
|
-
let t =
|
|
2317
|
-
t && t !==
|
|
2318
|
-
}, []), an =
|
|
2554
|
+
let en = I(null);
|
|
2555
|
+
en.current ||= pi();
|
|
2556
|
+
let tn = I(null), nn = N(() => tn.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? en.current.promise, []), rn = D(async (e) => {
|
|
2557
|
+
let t = dt.current;
|
|
2558
|
+
t && t !== It.getActive() && await It.setActive(t), await De.DefaultCommandCatalogService.prefetch(t ?? void 0), Ut(e), tn.current = e.source, en.current.settled || en.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), u?.(e);
|
|
2559
|
+
}, []), an = I(null), on = N((e) => {
|
|
2319
2560
|
let t = null, n = {
|
|
2320
2561
|
readOnly: !0,
|
|
2321
|
-
...
|
|
2562
|
+
...Ce
|
|
2322
2563
|
};
|
|
2323
|
-
return
|
|
2564
|
+
return Ce?.hidden || (t = U(g, {
|
|
2324
2565
|
...n,
|
|
2325
2566
|
style: {
|
|
2326
2567
|
maxWidth: "100%",
|
|
2327
|
-
...
|
|
2568
|
+
...Ce?.style
|
|
2328
2569
|
},
|
|
2329
2570
|
workbook: e.workbook ?? A.current,
|
|
2330
2571
|
ref: an,
|
|
2331
|
-
title:
|
|
2572
|
+
title: qt,
|
|
2332
2573
|
modified: Rt,
|
|
2333
|
-
encrypted:
|
|
2334
|
-
placeHolder:
|
|
2574
|
+
encrypted: J,
|
|
2575
|
+
placeHolder: ot,
|
|
2335
2576
|
onTitleChange: (e) => {
|
|
2336
|
-
|
|
2577
|
+
Kt(e), Ce?.onTitleChange?.(e);
|
|
2337
2578
|
}
|
|
2338
|
-
})),
|
|
2579
|
+
})), U(Br, {
|
|
2339
2580
|
...e,
|
|
2340
|
-
logo:
|
|
2581
|
+
logo: ae,
|
|
2341
2582
|
mainElement: t,
|
|
2342
|
-
startElement:
|
|
2343
|
-
endElement:
|
|
2583
|
+
startElement: oe,
|
|
2584
|
+
endElement: C
|
|
2344
2585
|
});
|
|
2345
2586
|
}, [
|
|
2346
|
-
C,
|
|
2347
|
-
Xt,
|
|
2348
|
-
Rt,
|
|
2349
|
-
Bt,
|
|
2350
|
-
E,
|
|
2351
2587
|
ae,
|
|
2352
|
-
|
|
2588
|
+
qt,
|
|
2589
|
+
Rt,
|
|
2590
|
+
J,
|
|
2591
|
+
Ce,
|
|
2592
|
+
oe,
|
|
2593
|
+
C
|
|
2353
2594
|
]);
|
|
2354
|
-
|
|
2595
|
+
P(() => {
|
|
2355
2596
|
let e = A.current;
|
|
2356
2597
|
if (!e) return;
|
|
2357
2598
|
let t = (t) => {
|
|
2358
|
-
(t.ctrlKey || t.metaKey ||
|
|
2599
|
+
(t.ctrlKey || t.metaKey || Ie.getWheelOwner(t, e) !== "native") && t.preventDefault();
|
|
2359
2600
|
};
|
|
2360
2601
|
return e.addEventListener("wheel", t, { passive: !1 }), () => {
|
|
2361
2602
|
e.removeEventListener("wheel", t);
|
|
2362
2603
|
};
|
|
2363
|
-
}, [
|
|
2364
|
-
let [sn, cn] =
|
|
2365
|
-
|
|
2366
|
-
cn(
|
|
2367
|
-
}, [
|
|
2368
|
-
let ln =
|
|
2604
|
+
}, [X]);
|
|
2605
|
+
let [sn, cn] = L(null);
|
|
2606
|
+
P(() => {
|
|
2607
|
+
cn(X?.source?.getCommandScope?.() ?? null);
|
|
2608
|
+
}, [X]);
|
|
2609
|
+
let ln = F(() => ({
|
|
2369
2610
|
"& .SnackbarContainer-root": { position: "absolute !important" },
|
|
2370
2611
|
"& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
|
|
2371
2612
|
"& .notistack-Snackbar": { minWidth: "unset" },
|
|
@@ -2378,56 +2619,46 @@ var Yr = () => {
|
|
|
2378
2619
|
whiteSpace: "pre-wrap"
|
|
2379
2620
|
},
|
|
2380
2621
|
"*": { userSelect: "none" }
|
|
2381
|
-
}), []),
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
}, [
|
|
2385
|
-
|
|
2386
|
-
model: W,
|
|
2387
|
-
side: x,
|
|
2388
|
-
...e,
|
|
2389
|
-
...y
|
|
2390
|
-
}), [
|
|
2391
|
-
W,
|
|
2392
|
-
x,
|
|
2393
|
-
y
|
|
2394
|
-
]), pn = P(r);
|
|
2395
|
-
pn.current = r, ze(n, () => ({
|
|
2622
|
+
}), []), Z = F(() => ({
|
|
2623
|
+
scope: sn,
|
|
2624
|
+
wrapper: b?.wrapperFrame
|
|
2625
|
+
}), [sn, b?.wrapperFrame]), un = I(i);
|
|
2626
|
+
un.current = i, He(r, () => ({
|
|
2396
2627
|
isStudioElement: () => !0,
|
|
2397
2628
|
save: (e) => {
|
|
2398
|
-
let t =
|
|
2629
|
+
let t = Vt.current;
|
|
2399
2630
|
return t ? t(e) : Promise.reject(/* @__PURE__ */ Error("The studio cannot save: no workbook, or the backing store cannot write."));
|
|
2400
2631
|
},
|
|
2401
2632
|
getWorkbookElement: () => A.current,
|
|
2402
|
-
getWorkbook: () =>
|
|
2403
|
-
isDirty: () =>
|
|
2404
|
-
getEditable: () =>
|
|
2405
|
-
getFormulaBarElement: () =>
|
|
2633
|
+
getWorkbook: () => Yt.current ?? null,
|
|
2634
|
+
isDirty: () => Bt.current?.isDirty() ?? !1,
|
|
2635
|
+
getEditable: () => Ft.current,
|
|
2636
|
+
getFormulaBarElement: () => j.current ?? null,
|
|
2406
2637
|
focus: () => A.current?.focus(),
|
|
2407
|
-
whenReady: () => (
|
|
2408
|
-
getWorkbookState: () =>
|
|
2409
|
-
retry: () =>
|
|
2410
|
-
}), [],
|
|
2411
|
-
let
|
|
2412
|
-
t ===
|
|
2638
|
+
whenReady: () => (z.current ||= pi(), z.current.promise),
|
|
2639
|
+
getWorkbookState: () => Ht.current,
|
|
2640
|
+
retry: () => bt((e) => e + 1)
|
|
2641
|
+
}), [], i);
|
|
2642
|
+
let dn = I(!1), fn = D(async (e, t) => {
|
|
2643
|
+
t === wt.current && (dn.current = un.current?.contains(document.activeElement) ?? !0, xt(t), await rn(e), m?.(e));
|
|
2413
2644
|
}, []);
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
}, [
|
|
2417
|
-
let
|
|
2418
|
-
let { ref:
|
|
2419
|
-
render:
|
|
2645
|
+
P(() => {
|
|
2646
|
+
dn.current && (dn.current = !1, A.current?.focus());
|
|
2647
|
+
}, [K]);
|
|
2648
|
+
let pn = N((t) => {
|
|
2649
|
+
let { ref: n, ...r } = t, i = pt ? R.dark : R.light, a = H.status === "error" && v ? U(Fe, {
|
|
2650
|
+
render: v,
|
|
2420
2651
|
props: {
|
|
2421
|
-
...
|
|
2652
|
+
...y,
|
|
2422
2653
|
style: {
|
|
2423
2654
|
width: "100%",
|
|
2424
2655
|
height: "100%",
|
|
2425
|
-
...
|
|
2656
|
+
...y?.style
|
|
2426
2657
|
},
|
|
2427
|
-
error:
|
|
2658
|
+
error: H.error
|
|
2428
2659
|
}
|
|
2429
2660
|
}) : null;
|
|
2430
|
-
if (
|
|
2661
|
+
if (a && !K) return U(Et, {
|
|
2431
2662
|
style: {
|
|
2432
2663
|
width: "100%",
|
|
2433
2664
|
height: "100%",
|
|
@@ -2436,74 +2667,74 @@ var Yr = () => {
|
|
|
2436
2667
|
alignItems: "stretch",
|
|
2437
2668
|
justifyContent: "stretch"
|
|
2438
2669
|
},
|
|
2439
|
-
children:
|
|
2670
|
+
children: a
|
|
2440
2671
|
});
|
|
2441
|
-
let
|
|
2442
|
-
if (
|
|
2443
|
-
let
|
|
2672
|
+
let s = null;
|
|
2673
|
+
if (K) {
|
|
2674
|
+
let t = K, a = t.getView(), o = ze ?? a?.isShowFormulaBar(), c = O ?? a?.isShowStatusBar(), l = X?.source ?? A.current, u = U(Fe, {
|
|
2444
2675
|
render: Ze === void 0 ? on : Ze,
|
|
2445
2676
|
props: {
|
|
2446
|
-
workbook:
|
|
2447
|
-
...
|
|
2677
|
+
workbook: l,
|
|
2678
|
+
...Xe
|
|
2448
2679
|
}
|
|
2449
|
-
}),
|
|
2450
|
-
render:
|
|
2680
|
+
}), d = M === "bottom", g = o ? U(Fe, {
|
|
2681
|
+
render: Ve === void 0 ? f : Ve,
|
|
2451
2682
|
props: {
|
|
2452
|
-
ref:
|
|
2683
|
+
ref: j,
|
|
2453
2684
|
style: {
|
|
2454
|
-
marginTop:
|
|
2455
|
-
marginLeft:
|
|
2456
|
-
marginRight:
|
|
2457
|
-
marginBottom:
|
|
2685
|
+
marginTop: i.spacing(d ? .5 : .25),
|
|
2686
|
+
marginLeft: i.spacing(1),
|
|
2687
|
+
marginRight: i.spacing(1),
|
|
2688
|
+
marginBottom: i.spacing(d ? .5 : .75)
|
|
2458
2689
|
},
|
|
2459
|
-
workbook:
|
|
2460
|
-
editable:
|
|
2461
|
-
placement:
|
|
2462
|
-
floatOnKeyboard:
|
|
2463
|
-
...
|
|
2690
|
+
workbook: t,
|
|
2691
|
+
editable: q ?? void 0,
|
|
2692
|
+
placement: M,
|
|
2693
|
+
floatOnKeyboard: et === "float",
|
|
2694
|
+
...Be,
|
|
2464
2695
|
propsNamedCollectionEditor: {
|
|
2465
|
-
restoreFocus: (e) =>
|
|
2466
|
-
...
|
|
2696
|
+
restoreFocus: (e) => l?.focus(e),
|
|
2697
|
+
...Be?.propsNamedCollectionEditor
|
|
2467
2698
|
}
|
|
2468
2699
|
}
|
|
2469
|
-
}) : null,
|
|
2470
|
-
render:
|
|
2700
|
+
}) : null, _ = c ? U(Fe, {
|
|
2701
|
+
render: Ye === void 0 ? e : Ye,
|
|
2471
2702
|
props: {
|
|
2472
|
-
childrenEnd:
|
|
2473
|
-
...
|
|
2703
|
+
childrenEnd: Xt,
|
|
2704
|
+
...k
|
|
2474
2705
|
}
|
|
2475
|
-
}) : null,
|
|
2476
|
-
...
|
|
2706
|
+
}) : null, v = (e, t) => U(p, {
|
|
2707
|
+
...Ne,
|
|
2477
2708
|
tabIndex: 0,
|
|
2478
|
-
autoFocus: !
|
|
2709
|
+
autoFocus: !t && de,
|
|
2479
2710
|
workbook: e,
|
|
2480
|
-
editable:
|
|
2481
|
-
focusNameBox:
|
|
2482
|
-
prefetch: !
|
|
2483
|
-
ref:
|
|
2484
|
-
onWorkbookLoad:
|
|
2485
|
-
onRenderSettled:
|
|
2486
|
-
|
|
2487
|
-
} :
|
|
2711
|
+
editable: t ? void 0 : q ?? void 0,
|
|
2712
|
+
focusNameBox: t ? void 0 : $e,
|
|
2713
|
+
prefetch: !t && h,
|
|
2714
|
+
ref: t ? Qe : ne([n, A]),
|
|
2715
|
+
onWorkbookLoad: t ? void 0 : rn,
|
|
2716
|
+
onRenderSettled: t ? (t) => {
|
|
2717
|
+
fn(t, e);
|
|
2718
|
+
} : m,
|
|
2488
2719
|
onKeyDown: (e) => {
|
|
2489
|
-
|
|
2720
|
+
te?.(e);
|
|
2490
2721
|
},
|
|
2491
|
-
propsWorkbookLoading:
|
|
2722
|
+
propsWorkbookLoading: E,
|
|
2492
2723
|
renderWorkbookLoading: null,
|
|
2493
|
-
style:
|
|
2494
|
-
...
|
|
2724
|
+
style: t ? {
|
|
2725
|
+
...Ne?.style,
|
|
2495
2726
|
position: "absolute",
|
|
2496
2727
|
inset: 0,
|
|
2497
2728
|
visibility: "hidden"
|
|
2498
2729
|
} : {
|
|
2499
2730
|
flex: "1 1 100%",
|
|
2500
2731
|
minHeight: 0,
|
|
2501
|
-
...
|
|
2732
|
+
...Ne?.style
|
|
2502
2733
|
},
|
|
2503
2734
|
onContextMenu: (e) => e.preventDefault(),
|
|
2504
|
-
...
|
|
2735
|
+
...t ? null : r
|
|
2505
2736
|
}, e.getId());
|
|
2506
|
-
|
|
2737
|
+
s = U("div", {
|
|
2507
2738
|
style: {
|
|
2508
2739
|
display: "flex",
|
|
2509
2740
|
flexDirection: "column",
|
|
@@ -2511,53 +2742,58 @@ var Yr = () => {
|
|
|
2511
2742
|
minWidth: 0,
|
|
2512
2743
|
minHeight: 0
|
|
2513
2744
|
},
|
|
2514
|
-
children:
|
|
2515
|
-
toolbar:
|
|
2516
|
-
formulaBar:
|
|
2517
|
-
statusBar:
|
|
2518
|
-
main:
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2745
|
+
children: ii(M, {
|
|
2746
|
+
toolbar: u,
|
|
2747
|
+
formulaBar: g,
|
|
2748
|
+
statusBar: _,
|
|
2749
|
+
main: U(gi.Provider, {
|
|
2750
|
+
value: Z,
|
|
2751
|
+
children: U(Fe, {
|
|
2752
|
+
render: x,
|
|
2753
|
+
props: {
|
|
2754
|
+
model: K,
|
|
2755
|
+
side: S,
|
|
2756
|
+
persistKey: hi,
|
|
2757
|
+
...b,
|
|
2758
|
+
wrapperFrame: _i,
|
|
2759
|
+
children: W("div", {
|
|
2760
|
+
style: {
|
|
2761
|
+
position: "relative",
|
|
2762
|
+
display: "flex",
|
|
2763
|
+
flexDirection: "column",
|
|
2764
|
+
flex: "1 1 100%",
|
|
2765
|
+
minWidth: 0,
|
|
2766
|
+
minHeight: 0
|
|
2767
|
+
},
|
|
2768
|
+
children: [[v(K, !1), St ? v(St, !0) : null], U(G, {
|
|
2769
|
+
ref: $t,
|
|
2770
|
+
sx: {
|
|
2771
|
+
position: "absolute",
|
|
2772
|
+
top: "10%",
|
|
2773
|
+
left: 0,
|
|
2774
|
+
right: 0,
|
|
2775
|
+
bottom: 0,
|
|
2776
|
+
pointerEvents: "none",
|
|
2777
|
+
"& > :first-of-type": { position: "relative" }
|
|
2778
|
+
}
|
|
2779
|
+
})]
|
|
2780
|
+
})
|
|
2781
|
+
}
|
|
2546
2782
|
})
|
|
2547
2783
|
})
|
|
2548
2784
|
})
|
|
2549
2785
|
});
|
|
2550
2786
|
}
|
|
2551
|
-
let
|
|
2552
|
-
render:
|
|
2553
|
-
props: { ...
|
|
2787
|
+
let u = !X && Oe ? U(Fe, {
|
|
2788
|
+
render: Oe,
|
|
2789
|
+
props: { ...E }
|
|
2554
2790
|
}) : null;
|
|
2555
|
-
return
|
|
2791
|
+
return W(Et, {
|
|
2556
2792
|
sx: ln,
|
|
2557
2793
|
style: {
|
|
2558
2794
|
width: "100%",
|
|
2559
|
-
height:
|
|
2560
|
-
transform:
|
|
2795
|
+
height: tt ? `calc(100% - ${tt}px)` : "100%",
|
|
2796
|
+
transform: nt ? `translateY(${nt}px)` : void 0,
|
|
2561
2797
|
position: "absolute",
|
|
2562
2798
|
display: "flex",
|
|
2563
2799
|
alignItems: "stretch",
|
|
@@ -2565,12 +2801,12 @@ var Yr = () => {
|
|
|
2565
2801
|
backgroundColor: "var(--sxl-color-base-200)"
|
|
2566
2802
|
},
|
|
2567
2803
|
className: "eager-studio",
|
|
2568
|
-
square:
|
|
2569
|
-
elevation:
|
|
2570
|
-
variant:
|
|
2804
|
+
square: o,
|
|
2805
|
+
elevation: c,
|
|
2806
|
+
variant: l,
|
|
2571
2807
|
children: [
|
|
2572
|
-
|
|
2573
|
-
|
|
2808
|
+
s,
|
|
2809
|
+
a ? U(Et, {
|
|
2574
2810
|
style: {
|
|
2575
2811
|
position: "absolute",
|
|
2576
2812
|
inset: 0,
|
|
@@ -2578,59 +2814,60 @@ var Yr = () => {
|
|
|
2578
2814
|
alignItems: "stretch",
|
|
2579
2815
|
justifyContent: "stretch"
|
|
2580
2816
|
},
|
|
2581
|
-
children:
|
|
2817
|
+
children: a
|
|
2582
2818
|
}) : null,
|
|
2583
|
-
|
|
2819
|
+
u ? U("div", {
|
|
2584
2820
|
style: {
|
|
2585
2821
|
position: "absolute",
|
|
2586
2822
|
inset: 0,
|
|
2587
2823
|
display: "flex",
|
|
2588
2824
|
alignItems: "center",
|
|
2589
2825
|
justifyContent: "center",
|
|
2590
|
-
background: `var(--sxl-color-base-100, ${
|
|
2826
|
+
background: `var(--sxl-color-base-100, ${pt ? "#121212" : "#fff"})`
|
|
2591
2827
|
},
|
|
2592
|
-
children:
|
|
2828
|
+
children: u
|
|
2593
2829
|
}) : null
|
|
2594
2830
|
]
|
|
2595
2831
|
});
|
|
2596
2832
|
}, [
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
a,
|
|
2833
|
+
H,
|
|
2834
|
+
K,
|
|
2835
|
+
St,
|
|
2836
|
+
X,
|
|
2837
|
+
qt,
|
|
2838
|
+
Oe,
|
|
2839
|
+
E,
|
|
2840
|
+
Ne,
|
|
2606
2841
|
o,
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2842
|
+
c,
|
|
2843
|
+
l,
|
|
2844
|
+
Xt,
|
|
2610
2845
|
v,
|
|
2846
|
+
y,
|
|
2611
2847
|
on,
|
|
2612
2848
|
ln,
|
|
2849
|
+
S,
|
|
2613
2850
|
Z,
|
|
2614
2851
|
x,
|
|
2615
|
-
|
|
2852
|
+
b,
|
|
2853
|
+
ze,
|
|
2854
|
+
Be,
|
|
2616
2855
|
Ve,
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
Je,
|
|
2856
|
+
M,
|
|
2857
|
+
q,
|
|
2858
|
+
O,
|
|
2859
|
+
k,
|
|
2622
2860
|
Ye,
|
|
2623
2861
|
Xe,
|
|
2624
|
-
k,
|
|
2625
2862
|
Ze,
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
]),
|
|
2863
|
+
et,
|
|
2864
|
+
tt,
|
|
2865
|
+
nt,
|
|
2866
|
+
R,
|
|
2867
|
+
pt
|
|
2868
|
+
]), mn = U(Ir, {
|
|
2632
2869
|
maxSnack: 3,
|
|
2633
|
-
domRoot:
|
|
2870
|
+
domRoot: Zt ?? void 0,
|
|
2634
2871
|
anchorOrigin: {
|
|
2635
2872
|
vertical: "bottom",
|
|
2636
2873
|
horizontal: "right"
|
|
@@ -2639,54 +2876,48 @@ var Yr = () => {
|
|
|
2639
2876
|
onClose: (e, t, n) => {
|
|
2640
2877
|
A.current?.focus();
|
|
2641
2878
|
},
|
|
2642
|
-
Components: { error:
|
|
2879
|
+
Components: { error: Rr },
|
|
2643
2880
|
iconVariant: {
|
|
2644
|
-
success:
|
|
2881
|
+
success: U(Dt, {
|
|
2645
2882
|
style: { marginRight: "8px" },
|
|
2646
|
-
children:
|
|
2883
|
+
children: U("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" })
|
|
2647
2884
|
}),
|
|
2648
|
-
error:
|
|
2885
|
+
error: U(Ae, {
|
|
2649
2886
|
iconKey: "ErrorAlert",
|
|
2650
2887
|
style: { marginRight: "8px" }
|
|
2651
2888
|
})
|
|
2652
2889
|
},
|
|
2653
|
-
children:
|
|
2654
|
-
workbook:
|
|
2655
|
-
children:
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
refDocumentTitle: an,
|
|
2668
|
-
isDirty: Ut,
|
|
2669
|
-
refSave: Ht,
|
|
2670
|
-
host: r
|
|
2671
|
-
}) }) }) }) })
|
|
2672
|
-
})
|
|
2890
|
+
children: U(he, {
|
|
2891
|
+
workbook: K,
|
|
2892
|
+
children: U(fe, { children: U(ft, { children: U(Zr, { children: U(Re, { children: U(Me, { children: U(Jr, {
|
|
2893
|
+
workbook: K,
|
|
2894
|
+
initialCommandAnchor: nn,
|
|
2895
|
+
renderWorkbook: pn,
|
|
2896
|
+
setWorkbook: kt,
|
|
2897
|
+
titleWorkbook: qt,
|
|
2898
|
+
setWorkbookTitle: Kt,
|
|
2899
|
+
refDocumentTitle: an,
|
|
2900
|
+
isDirty: Y,
|
|
2901
|
+
refSave: Vt,
|
|
2902
|
+
host: i
|
|
2903
|
+
}) }) }) }) }) })
|
|
2673
2904
|
})
|
|
2674
2905
|
});
|
|
2675
|
-
return
|
|
2676
|
-
theme:
|
|
2906
|
+
return mn = W(At, {
|
|
2907
|
+
theme: pt ? R.dark : R.light,
|
|
2677
2908
|
children: [
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
themeScopeClass:
|
|
2909
|
+
ue ? U(Ct, {}) : null,
|
|
2910
|
+
U(Le, { css: mt }),
|
|
2911
|
+
U(pe, { scopeClass: a }),
|
|
2912
|
+
U(st, {
|
|
2913
|
+
themeScopeClass: a,
|
|
2683
2914
|
themeSurface: "app",
|
|
2684
|
-
themeMode:
|
|
2685
|
-
children:
|
|
2915
|
+
themeMode: lt,
|
|
2916
|
+
children: mn
|
|
2686
2917
|
})
|
|
2687
2918
|
]
|
|
2688
|
-
}),
|
|
2919
|
+
}), mn;
|
|
2689
2920
|
}));
|
|
2690
|
-
|
|
2691
|
-
var
|
|
2692
|
-
export {
|
|
2921
|
+
vi.displayName = "EagerStudio";
|
|
2922
|
+
var yi = (e) => U(ni, { ...e });
|
|
2923
|
+
export { vi as EagerStudio, vi as default, Jt as i, cn as n, nn as r, fi as t };
|