@sheetxl/studio-vanilla 0.4.7 → 0.4.8
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/README.md +3 -3
- package/browser/cjs/{C14PMFhYpGUhrvq1.cjs → 3nTDo2EiTknjadbt.cjs} +1 -1
- package/browser/cjs/6Wu3sLyx-7NM6CXS.cjs +301 -0
- package/browser/cjs/B11W4AIKbkJQG6ug.cjs +6 -0
- package/browser/cjs/{Bgl5W-fCpnnnO3_F.cjs → BCnlTOmUDmizyvVV.cjs} +2 -2
- package/browser/cjs/{DE5MhliNUlcqzd9C.cjs → BIPxYhhi1F-y0gSm.cjs} +3 -3
- package/browser/cjs/{D5I2M8yOTfapq6d7.cjs → BYhOQCFEzewgsKDn.cjs} +2 -2
- package/browser/cjs/{C73dxZSAw05vqEtJ.cjs → BqLDj2GlSzX8ZN3l.cjs} +1 -1
- package/browser/cjs/{00LGtBNvHHqHMD_7.cjs → C2B3wbeahcHlbOBZ.cjs} +2 -2
- package/browser/cjs/C6nZKAevPqj8zJY-.cjs +6 -0
- package/browser/cjs/{B0pcLInszgzhrjui.cjs → CD_HItzF2RneMAER.cjs} +2 -2
- package/browser/cjs/{D8WkJStmUKY23vEC.cjs → CE5NVYltiso41NzK.cjs} +1 -1
- package/browser/cjs/{DPgVQdCYWI3fGYJ2.cjs → CHSE1pa8SMApg4BM.cjs} +2 -2
- package/browser/cjs/{HCih5BN1MZGUuqGG.cjs → CTXKzcsm-W1ujL_U.cjs} +6 -6
- package/browser/cjs/{CQAkk0gbl342HFs-.cjs → CcQjGGiCx6Qz7yJ4.cjs} +1 -1
- package/browser/cjs/{BC5f5sl2pjp8FYIk.cjs → Cqymi9AOXO_JYvY4.cjs} +2 -2
- package/browser/cjs/{DGlLxziqSNTW0c6v.cjs → D6pPBbRPLTNFSXuO.cjs} +1 -1
- package/browser/cjs/{DNQqhDlfagjGC2sO.cjs → DMUSzq5n2k0WNFw6.cjs} +2 -2
- package/browser/cjs/DWTMnPR33rKK87Xt.cjs +12 -0
- package/browser/cjs/{BBuQH_geF9Xg5HPn.cjs → Dds58NEqJ0OalWH3.cjs} +4 -4
- package/browser/cjs/{BKUcozo2wEv2ay2w.cjs → Dy4SB47It0LGbh2I.cjs} +1 -1
- package/browser/cjs/{DUrNYTSMA5KQTG77.cjs → VJLb1uMfbKAUW1QF.cjs} +8 -8
- package/browser/cjs/{DyQffD3gRWH5-nOp.cjs → bHWvGntvmuk8t7sX.cjs} +2 -2
- package/browser/cjs/{Clp5qh0fApIxsE35.cjs → euAV1pPrNOIb6DV4.cjs} +2 -2
- package/browser/cjs/{BC9xtBySc8rix4-F.cjs → i0D2haODisHW8uGg.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DDFDUxH5Mew5rcdT.cjs → oNi7wirDlZ81Lm0Z.cjs} +1 -1
- package/browser/cjs/z1aNSOtWsEE21p2H.cjs +6 -0
- package/browser/esm/{f7jo5w0h4-vNZtjZ.mjs → 2RGq163l1wYJKGsa.mjs} +10886 -10877
- package/{cdn/assets/Cjl-eP68w6LXe0zR.js → browser/esm/4C7Rg83L5RYFoOvl.mjs} +5 -5
- package/{cdn/assets/CGL2dNgGZEziA1cG.js → browser/esm/6KgR81NK4yzANTBT.mjs} +8 -8
- package/{cdn/assets/D7ubLFCJK5RzTJOF.js → browser/esm/B1CYiJmSpyx4TD5r.mjs} +20 -20
- package/{cdn/assets/CzeybhBUMRs64-Mp.js → browser/esm/B7qUiL1xPnzfOHZw.mjs} +1 -1
- package/{cdn/assets/CHsVgElx78EEmCPY.js → browser/esm/BEFQcBJ71bA297Zu.mjs} +1 -1
- package/browser/esm/{C8PrD3vZULKFp7HL.mjs → BEIn7yNWsHNJisB6.mjs} +3 -3
- package/browser/esm/{DnEhhjrb_iK5ugui.mjs → BM74iVi-iQkHbrfo.mjs} +2 -2
- package/browser/esm/{DE0B_sDQJ2uyFacb.mjs → BP8kNG31HYSkk1VW.mjs} +26 -26
- package/browser/esm/{CdbRlOwSBEqFzw-Q.mjs → CA_DRvBOFOlhezCt.mjs} +8 -8
- package/browser/esm/{CrnqRK0Y_R59nkb0.mjs → CDkmbShJijwq4EBo.mjs} +6 -6
- package/browser/esm/{IhAvisOcXUTXM4fs.mjs → CPi83FXApMlTaVbs.mjs} +1 -1
- package/browser/esm/{bMPbHealpRV0cNsU.mjs → C_hRuPoaT857EnC1.mjs} +5 -5
- package/browser/esm/{fLUOP3GBZp9qFVpK.mjs → CjVsKZEPAncg5mIk.mjs} +1 -1
- package/browser/esm/{DQj7TIf3hkBsvgpu.mjs → Ckz080o58XOgRhqj.mjs} +2 -2
- package/browser/esm/{DJBqN2bozSAMAOUl.mjs → ClXspoNrNV-A8BaL.mjs} +2 -2
- package/browser/esm/{BssMWXVsjFZUIbK_.mjs → DQ0Li3WfKbZxSFuB.mjs} +2 -2
- package/browser/esm/{D03_7nbUXeSyElQe.mjs → DXyJaUwHLq39-Jfa.mjs} +5 -5
- package/browser/esm/{t16pmig4Yv-yOK3J.mjs → D_FC0zteMRPriWTD.mjs} +1 -1
- package/browser/esm/{CxesFvTfE_FHHeOa.mjs → DnWiOUNTPvi_llPT.mjs} +1 -1
- package/browser/esm/{B6OcmPVBCjTZiEO8.mjs → DyUvHYGMNA9W2zL6.mjs} +1 -1
- package/browser/esm/{DCLOetlYWQ4f6912.mjs → EUFvcP5R4HFDLn2V.mjs} +5 -5
- package/browser/esm/cSe92c0HnvbRwiVM.mjs +944 -0
- package/{cdn/assets/CSnM9G1CZ81wivjo.js → browser/esm/eXQ_1uhRMyN-hfDZ.mjs} +1 -1
- package/browser/esm/{BepIgOjpel6ND31E.mjs → h4NbNvV8KCL9Tl1v.mjs} +16 -16
- package/browser/esm/index.mjs +2 -2
- package/{cdn/assets/CNdoHnLQKWWUIXFN.js → browser/esm/xlL3Ai-ka9qMVeua.mjs} +2 -2
- package/cdn/assets/{CUqr4I0B5RzMvyfH.js → B2hDWpWSEoChxhVY.js} +11896 -11887
- package/{browser/esm/CzeybhBUMRs64-Mp.mjs → cdn/assets/B7qUiL1xPnzfOHZw.js} +1 -1
- package/{browser/esm/CHsVgElx78EEmCPY.mjs → cdn/assets/BEFQcBJ71bA297Zu.js} +1 -1
- package/cdn/assets/{DucOHAWR0Drvzaz2.js → BXBP2rNGQxrgUPvU.js} +5 -5
- package/cdn/assets/{BPKaeP61qs19hdJx.js → BgChN-ZVYUOMDX9_.js} +26 -26
- package/cdn/assets/{ChAbZK53mfolDCTD.js → Bvy1txLm7c3LbPL7.js} +6 -6
- package/cdn/assets/{BWyjsqZ8W7LRq-2H.js → C1x5-f1q8NeSwRA2.js} +16 -16
- package/{browser/esm/DfczJdsv--tsazCR.mjs → cdn/assets/C5NMOq74C3Sme49x.js} +20 -20
- package/cdn/assets/{BKMHTFN6LTvRZnlS.js → CLA1BGtRbWm0K0U0.js} +2 -2
- package/cdn/assets/{IhAvisOcXUTXM4fs.js → CPi83FXApMlTaVbs.js} +1 -1
- package/cdn/assets/{fLUOP3GBZp9qFVpK.js → CjVsKZEPAncg5mIk.js} +1 -1
- package/cdn/assets/{CRv8MUg-_zmoKFIt.js → CpVan9KpuEGXgwIK.js} +2 -2
- package/cdn/assets/{B-7gpSVkQWekyOlk.js → CtDntnnwJW1rZ3sM.js} +5 -5
- package/cdn/assets/{BFDNPYBEj2T1cP38.js → CuG5WoZ4OOj9RCsv.js} +3 -3
- package/{browser/esm/CnL3YzjxBxFK7qfL.mjs → cdn/assets/DTvvMKZZfsVRhbow.js} +5 -5
- package/cdn/assets/{t16pmig4Yv-yOK3J.js → D_FC0zteMRPriWTD.js} +1 -1
- package/cdn/assets/{CB496hBmWELULf2f.js → Dbd0AFDlzQDW0tOg.js} +5 -5
- package/cdn/assets/{CxesFvTfE_FHHeOa.js → DnWiOUNTPvi_llPT.js} +1 -1
- package/cdn/assets/{DPdbTtHJ9qzLqsDN.js → DppHXtCDGzttFdS4.js} +2 -2
- package/cdn/assets/{CvfZjHPPpLdHBSRa.js → DuU1-7vd87A1wfGJ.js} +2 -2
- package/cdn/assets/{B6OcmPVBCjTZiEO8.js → DyUvHYGMNA9W2zL6.js} +1 -1
- package/{browser/esm/C3vvXeb_u4RQddV1.mjs → cdn/assets/O1XID2whLDb1cTWS.js} +8 -8
- package/{browser/esm/CSnM9G1CZ81wivjo.mjs → cdn/assets/eXQ_1uhRMyN-hfDZ.js} +1 -1
- package/cdn/assets/{D8lNg-ZFq3SVt0qa.js → g4FhlroGKmJM7Utd.js} +8 -8
- package/cdn/assets/tJI1G_FjDgqWo3rJ.js +944 -0
- package/{browser/esm/CNdoHnLQKWWUIXFN.mjs → cdn/assets/xlL3Ai-ka9qMVeua.js} +2 -2
- package/cdn/index.js +24 -24
- package/cdn/loader.js +2 -2
- package/package.json +3 -3
- package/types/index.d.ts +8 -8
- package/browser/cjs/BO0CySmcqi-pkV4p.cjs +0 -6
- package/browser/cjs/BoG6Gi-uqIbSJdRv.cjs +0 -12
- package/browser/cjs/DD6f8EPYnuPb41GO.cjs +0 -6
- package/browser/cjs/DsuUTTVqL23hXXxq.cjs +0 -6
- package/browser/cjs/Dva96jeug6x2xYZm.cjs +0 -301
- package/browser/esm/6w21A0XUkGBQu8-3.mjs +0 -940
- package/cdn/assets/CHZP9CrMHXri-Ghe.js +0 -940
|
@@ -1,940 +0,0 @@
|
|
|
1
|
-
import { jsx as g, jsxs as se, Fragment as Kt } from "react/jsx-runtime";
|
|
2
|
-
import * as ve from "react";
|
|
3
|
-
import T, { memo as Me, forwardRef as ce, useRef as le, useMemo as te, useState as ae, useEffect as G, useLayoutEffect as dt, useCallback as ne, Component as Gt, createElement as fe, createContext as xn, useContext as yn, isValidElement as wn, cloneElement as vn } from "react";
|
|
4
|
-
import { g as xt, d as yt, u as Qe, e as En, f as Cn, h as Sn, j as Ln, l as Mn, s as je, m as wt, n as vt, o as Mt, p as Dn, q as Tn, r as Zt, t as On, x as Wn, v as ie, U as Xt, D as Dt, W as pt, X as Fn, w as ye, y as Jt, z as Nn, A as Qt, C as An, H as mt, K as Yt, L as Rn, N as In, O as Pn, Q as jn, R as Hn, V as zn, Z as _n, B as xe, _ as qn, E as Bn, $ as Vn, a0 as ht, a1 as $n, a2 as Un, a3 as Kn, a4 as Gn, a5 as Zn, a6 as Xn, J as Jn, a7 as ee, a8 as We, a9 as Tt, aa as Qn, ab as Yn, ac as eo, ad as to, ae as no, af as oo, ag as nt, ah as Fe, ai as ro, aj as ao, ak as io, al as so, am as Ot, an as Wt, ao as lo, ap as co, aq as uo, ar as po, as as _e } from "./CUqr4I0B5RzMvyfH.js";
|
|
5
|
-
import { createPortal as mo } from "react-dom";
|
|
6
|
-
import { CommonUtils as ot, UndoManager as ho, Workbook as Ft, PartialError as fo } from "@sheetxl/sdk";
|
|
7
|
-
/**
|
|
8
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.7
|
|
9
|
-
*
|
|
10
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
12
|
-
*/
|
|
13
|
-
function go(e) {
|
|
14
|
-
return xt("MuiCollapse", e);
|
|
15
|
-
}
|
|
16
|
-
yt("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
17
|
-
const ko = je("div", { name: "MuiCollapse", slot: "Root", overridesResolver: (e, o) => {
|
|
18
|
-
const { ownerState: r } = e;
|
|
19
|
-
return [o.root, o[r.orientation], r.state === "entered" && o.entered, r.state === "exited" && !r.in && r.collapsedSize === "0px" && o.hidden];
|
|
20
|
-
} })(Dn(({ theme: e }) => ({ height: 0, overflow: "hidden", transition: e.transitions.create("height"), variants: [{ props: { orientation: "horizontal" }, style: { height: "auto", width: 0, transition: e.transitions.create("width") } }, { props: { state: "entered" }, style: { height: "auto", overflow: "visible" } }, { props: { state: "entered", orientation: "horizontal" }, style: { width: "auto" } }, { props: ({ ownerState: o }) => o.state === "exited" && !o.in && o.collapsedSize === "0px", style: { visibility: "hidden" } }] }))), bo = je("div", { name: "MuiCollapse", slot: "Wrapper", overridesResolver: (e, o) => o.wrapper })({ display: "flex", width: "100%", variants: [{ props: { orientation: "horizontal" }, style: { width: "auto", height: "100%" } }] }), xo = je("div", { name: "MuiCollapse", slot: "WrapperInner", overridesResolver: (e, o) => o.wrapperInner })({ width: "100%", variants: [{ props: { orientation: "horizontal" }, style: { width: "auto", height: "100%" } }] }), ft = ve.forwardRef(function(e, o) {
|
|
21
|
-
const r = Qe({ props: e, name: "MuiCollapse" }), { addEndListener: t, children: n, className: a, collapsedSize: i = "0px", component: l, easing: s, in: c, onEnter: u, onEntered: m, onEntering: k, onExit: y, onExited: b, onExiting: f, orientation: x = "vertical", style: h, timeout: d = En.standard, TransitionComponent: L = Cn, ...w } = r, R = { ...r, orientation: x, collapsedSize: i }, M = ((C) => {
|
|
22
|
-
const { orientation: W, classes: V } = C;
|
|
23
|
-
return vt({ root: ["root", `${W}`], entered: ["entered"], hidden: ["hidden"], wrapper: ["wrapper", `${W}`], wrapperInner: ["wrapperInner", `${W}`] }, go, V);
|
|
24
|
-
})(R), j = Sn(), q = Ln(), N = ve.useRef(null), z = ve.useRef(), K = typeof i == "number" ? `${i}px` : i, J = x === "horizontal", I = J ? "width" : "height", oe = ve.useRef(null), A = Mn(o, oe), E = (C) => (W) => {
|
|
25
|
-
if (C) {
|
|
26
|
-
const V = oe.current;
|
|
27
|
-
W === void 0 ? C(V) : C(V, W);
|
|
28
|
-
}
|
|
29
|
-
}, S = () => N.current ? N.current[J ? "clientWidth" : "clientHeight"] : 0, P = E((C, W) => {
|
|
30
|
-
N.current && J && (N.current.style.position = "absolute"), C.style[I] = K, u && u(C, W);
|
|
31
|
-
}), D = E((C, W) => {
|
|
32
|
-
const V = S();
|
|
33
|
-
N.current && J && (N.current.style.position = "");
|
|
34
|
-
const { duration: re, easing: me } = Mt({ style: h, timeout: d, easing: s }, { mode: "enter" });
|
|
35
|
-
if (d === "auto") {
|
|
36
|
-
const ue = j.transitions.getAutoHeightDuration(V);
|
|
37
|
-
C.style.transitionDuration = `${ue}ms`, z.current = ue;
|
|
38
|
-
} else C.style.transitionDuration = typeof re == "string" ? re : `${re}ms`;
|
|
39
|
-
C.style[I] = `${V}px`, C.style.transitionTimingFunction = me, k && k(C, W);
|
|
40
|
-
}), B = E((C, W) => {
|
|
41
|
-
C.style[I] = "auto", m && m(C, W);
|
|
42
|
-
}), _ = E((C) => {
|
|
43
|
-
C.style[I] = `${S()}px`, y && y(C);
|
|
44
|
-
}), Q = E(b), H = E((C) => {
|
|
45
|
-
const W = S(), { duration: V, easing: re } = Mt({ style: h, timeout: d, easing: s }, { mode: "exit" });
|
|
46
|
-
if (d === "auto") {
|
|
47
|
-
const me = j.transitions.getAutoHeightDuration(W);
|
|
48
|
-
C.style.transitionDuration = `${me}ms`, z.current = me;
|
|
49
|
-
} else C.style.transitionDuration = typeof V == "string" ? V : `${V}ms`;
|
|
50
|
-
C.style[I] = K, C.style.transitionTimingFunction = re, f && f(C);
|
|
51
|
-
});
|
|
52
|
-
return g(L, { in: c, onEnter: P, onEntered: B, onEntering: D, onExit: _, onExited: Q, onExiting: H, addEndListener: (C) => {
|
|
53
|
-
d === "auto" && q.start(z.current || 0, C), t && t(oe.current, C);
|
|
54
|
-
}, nodeRef: oe, timeout: d === "auto" ? null : d, ...w, children: (C, { ownerState: W, ...V }) => g(ko, { as: l, className: wt(M.root, a, { entered: M.entered, exited: !c && K === "0px" && M.hidden }[C]), style: { [J ? "minWidth" : "minHeight"]: K, ...h }, ref: A, ownerState: { ...R, state: C }, ...V, children: g(bo, { ownerState: { ...R, state: C }, className: M.wrapper, ref: N, children: g(xo, { ownerState: { ...R, state: C }, className: M.wrapperInner, children: n }) }) }) });
|
|
55
|
-
});
|
|
56
|
-
function yo(e) {
|
|
57
|
-
return xt("MuiCard", e);
|
|
58
|
-
}
|
|
59
|
-
ft && (ft.muiSupportAuto = !0), yt("MuiCard", ["root"]);
|
|
60
|
-
const wo = je(Tn, { name: "MuiCard", slot: "Root", overridesResolver: (e, o) => o.root })({ overflow: "hidden" }), vo = ve.forwardRef(function(e, o) {
|
|
61
|
-
const r = Qe({ props: e, name: "MuiCard" }), { className: t, raised: n = !1, ...a } = r, i = { ...r, raised: n }, l = ((s) => {
|
|
62
|
-
const { classes: c } = s;
|
|
63
|
-
return vt({ root: ["root"] }, yo, c);
|
|
64
|
-
})(i);
|
|
65
|
-
return g(wo, { className: wt(l.root, t), elevation: n ? 8 : void 0, ref: o, ownerState: i, ...a });
|
|
66
|
-
});
|
|
67
|
-
function Eo(e) {
|
|
68
|
-
return xt("MuiCardActions", e);
|
|
69
|
-
}
|
|
70
|
-
yt("MuiCardActions", ["root", "spacing"]);
|
|
71
|
-
const Co = je("div", { name: "MuiCardActions", slot: "Root", overridesResolver: (e, o) => {
|
|
72
|
-
const { ownerState: r } = e;
|
|
73
|
-
return [o.root, !r.disableSpacing && o.spacing];
|
|
74
|
-
} })({ display: "flex", alignItems: "center", padding: 8, variants: [{ props: { disableSpacing: !1 }, style: { "& > :not(style) ~ :not(style)": { marginLeft: 8 } } }] }), So = ve.forwardRef(function(e, o) {
|
|
75
|
-
const r = Qe({ props: e, name: "MuiCardActions" }), { disableSpacing: t = !1, className: n, ...a } = r, i = { ...r, disableSpacing: t }, l = ((s) => {
|
|
76
|
-
const { classes: c, disableSpacing: u } = s;
|
|
77
|
-
return vt({ root: ["root", !u && "spacing"] }, Eo, c);
|
|
78
|
-
})(i);
|
|
79
|
-
return g(Co, { className: wt(l.root, n), ownerState: i, ref: o, ...a });
|
|
80
|
-
}), gt = typeof Zt({}) == "function", Lo = (e, o) => ({ WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale", boxSizing: "border-box", WebkitTextSizeAdjust: "100%", ...o && !e.vars && { colorScheme: e.palette.mode } }), Mo = (e) => ({ color: (e.vars || e).palette.text.primary, ...e.typography.body1, backgroundColor: (e.vars || e).palette.background.default, "@media print": { backgroundColor: (e.vars || e).palette.common.white } }), Nt = (e, o = !1) => {
|
|
81
|
-
const r = {};
|
|
82
|
-
o && e.colorSchemes && typeof e.getColorSchemeSelector == "function" && Object.entries(e.colorSchemes).forEach(([a, i]) => {
|
|
83
|
-
const l = e.getColorSchemeSelector(a);
|
|
84
|
-
l.startsWith("@") ? r[l] = { ":root": { colorScheme: i.palette?.mode } } : r[l.replace(/\s*&/, "")] = { colorScheme: i.palette?.mode };
|
|
85
|
-
});
|
|
86
|
-
let t = { html: Lo(e, o), "*, *::before, *::after": { boxSizing: "inherit" }, "strong, b": { fontWeight: e.typography.fontWeightBold }, body: { margin: 0, ...Mo(e), "&::backdrop": { backgroundColor: (e.vars || e).palette.background.default } }, ...r };
|
|
87
|
-
const n = e.components?.MuiCssBaseline?.styleOverrides;
|
|
88
|
-
return n && (t = [t, n]), t;
|
|
89
|
-
}, Ze = "mui-ecs", Do = Zt(gt ? ({ theme: e, enableColorScheme: o }) => Nt(e, o) : ({ theme: e }) => ((o) => {
|
|
90
|
-
const r = Nt(o, !1), t = Array.isArray(r) ? r[0] : r;
|
|
91
|
-
return !o.vars && t && (t.html[`:root:has(${Ze})`] = { colorScheme: o.palette.mode }), o.colorSchemes && Object.entries(o.colorSchemes).forEach(([n, a]) => {
|
|
92
|
-
const i = o.getColorSchemeSelector(n);
|
|
93
|
-
i.startsWith("@") ? t[i] = { [`:root:not(:has(.${Ze}))`]: { colorScheme: a.palette?.mode } } : t[i.replace(/\s*&/, "")] = { [`&:not(:has(.${Ze}))`]: { colorScheme: a.palette?.mode } };
|
|
94
|
-
}), r;
|
|
95
|
-
})(e));
|
|
96
|
-
function To(e) {
|
|
97
|
-
const o = Qe({ props: e, name: "MuiCssBaseline" }), { children: r, enableColorScheme: t = !1 } = o;
|
|
98
|
-
return se(ve.Fragment, { children: [gt && g(Do, { enableColorScheme: t }), !gt && !t && g("span", { className: Ze, style: { display: "none" } }), r] });
|
|
99
|
-
}
|
|
100
|
-
const Oo = On(g("path", { d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z" }), "CancelOutlined"), Wo = xn(null), rt = { didCatch: !1, error: null };
|
|
101
|
-
class Fo extends Gt {
|
|
102
|
-
constructor(o) {
|
|
103
|
-
super(o), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = rt;
|
|
104
|
-
}
|
|
105
|
-
static getDerivedStateFromError(o) {
|
|
106
|
-
return { didCatch: !0, error: o };
|
|
107
|
-
}
|
|
108
|
-
resetErrorBoundary() {
|
|
109
|
-
const { error: o } = this.state;
|
|
110
|
-
if (o !== null) {
|
|
111
|
-
for (var r, t, n = arguments.length, a = new Array(n), i = 0; i < n; i++) a[i] = arguments[i];
|
|
112
|
-
(r = (t = this.props).onReset) === null || r === void 0 || r.call(t, { args: a, reason: "imperative-api" }), this.setState(rt);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
componentDidCatch(o, r) {
|
|
116
|
-
var t, n;
|
|
117
|
-
(t = (n = this.props).onError) === null || t === void 0 || t.call(n, o, r);
|
|
118
|
-
}
|
|
119
|
-
componentDidUpdate(o, r) {
|
|
120
|
-
const { didCatch: t } = this.state, { resetKeys: n } = this.props;
|
|
121
|
-
var a, i;
|
|
122
|
-
t && r.error !== null && function() {
|
|
123
|
-
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
124
|
-
return l.length !== s.length || l.some((c, u) => !Object.is(c, s[u]));
|
|
125
|
-
}(o.resetKeys, n) && ((a = (i = this.props).onReset) === null || a === void 0 || a.call(i, { next: n, prev: o.resetKeys, reason: "keys" }), this.setState(rt));
|
|
126
|
-
}
|
|
127
|
-
render() {
|
|
128
|
-
const { children: o, fallbackRender: r, FallbackComponent: t, fallback: n } = this.props, { didCatch: a, error: i } = this.state;
|
|
129
|
-
let l = o;
|
|
130
|
-
if (a) {
|
|
131
|
-
const s = { error: i, resetErrorBoundary: this.resetErrorBoundary };
|
|
132
|
-
if (typeof r == "function") l = r(s);
|
|
133
|
-
else if (t) l = fe(t, s);
|
|
134
|
-
else {
|
|
135
|
-
if (n === void 0) throw i;
|
|
136
|
-
l = n;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
return fe(Wo.Provider, { value: { didCatch: a, error: i, resetErrorBoundary: this.resetErrorBoundary } }, l);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
function en(e) {
|
|
143
|
-
var o, r, t = "";
|
|
144
|
-
if (typeof e == "string" || typeof e == "number") t += e;
|
|
145
|
-
else if (typeof e == "object") if (Array.isArray(e)) for (o = 0; o < e.length; o++) e[o] && (r = en(e[o])) && (t && (t += " "), t += r);
|
|
146
|
-
else for (o in e) e[o] && (t && (t += " "), t += o);
|
|
147
|
-
return t;
|
|
148
|
-
}
|
|
149
|
-
function ge() {
|
|
150
|
-
for (var e, o, r = 0, t = ""; r < arguments.length; ) (e = arguments[r++]) && (o = en(e)) && (t && (t += " "), t += o);
|
|
151
|
-
return t;
|
|
152
|
-
}
|
|
153
|
-
let No = { data: "" }, Ao = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Ro = /\/\*[^]*?\*\/| +/g, At = /\n+/g, we = (e, o) => {
|
|
154
|
-
let r = "", t = "", n = "";
|
|
155
|
-
for (let a in e) {
|
|
156
|
-
let i = e[a];
|
|
157
|
-
a[0] == "@" ? a[1] == "i" ? r = a + " " + i + ";" : t += a[1] == "f" ? we(i, a) : a + "{" + we(i, a[1] == "k" ? "" : o) + "}" : typeof i == "object" ? t += we(i, o ? o.replace(/([^,])+/g, (l) => a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (s) => /&/.test(s) ? s.replace(/&/g, l) : l ? l + " " + s : s)) : a) : i != null && (a = /^--/.test(a) ? a : a.replace(/[A-Z]/g, "-$&").toLowerCase(), n += we.p ? we.p(a, i) : a + ":" + i + ";");
|
|
158
|
-
}
|
|
159
|
-
return r + (o && n ? o + "{" + n + "}" : n) + t;
|
|
160
|
-
}, de = {}, tn = (e) => {
|
|
161
|
-
if (typeof e == "object") {
|
|
162
|
-
let o = "";
|
|
163
|
-
for (let r in e) o += r + tn(e[r]);
|
|
164
|
-
return o;
|
|
165
|
-
}
|
|
166
|
-
return e;
|
|
167
|
-
};
|
|
168
|
-
function kt(e) {
|
|
169
|
-
let o = this || {}, r = e.call ? e(o.p) : e;
|
|
170
|
-
return ((i, l, s, c, u) => {
|
|
171
|
-
let m = tn(i), k = de[m] || (de[m] = ((d) => {
|
|
172
|
-
let L = 0, w = 11;
|
|
173
|
-
for (; L < d.length; ) w = 101 * w + d.charCodeAt(L++) >>> 0;
|
|
174
|
-
return "go" + w;
|
|
175
|
-
})(m));
|
|
176
|
-
if (!de[k]) {
|
|
177
|
-
let d = m !== i ? i : ((L) => {
|
|
178
|
-
let w, R, M = [{}];
|
|
179
|
-
for (; w = Ao.exec(L.replace(Ro, "")); ) w[4] ? M.shift() : w[3] ? (R = w[3].replace(At, " ").trim(), M.unshift(M[0][R] = M[0][R] || {})) : M[0][w[1]] = w[2].replace(At, " ").trim();
|
|
180
|
-
return M[0];
|
|
181
|
-
})(i);
|
|
182
|
-
de[k] = we(u ? { ["@keyframes " + k]: d } : d, s ? "" : "." + k);
|
|
183
|
-
}
|
|
184
|
-
let y = s && de.g ? de.g : null;
|
|
185
|
-
return s && (de.g = de[k]), b = de[k], f = l, x = c, (h = y) ? f.data = f.data.replace(h, b) : f.data.indexOf(b) === -1 && (f.data = x ? b + f.data : f.data + b), k;
|
|
186
|
-
var b, f, x, h;
|
|
187
|
-
})(r.unshift ? r.raw ? (t = r, n = [].slice.call(arguments, 1), a = o.p, t.reduce((i, l, s) => {
|
|
188
|
-
let c = n[s];
|
|
189
|
-
if (c && c.call) {
|
|
190
|
-
let u = c(a), m = u && u.props && u.props.className || /^go/.test(u) && u;
|
|
191
|
-
c = m ? "." + m : u && typeof u == "object" ? u.props ? "" : we(u, "") : u === !1 ? "" : u;
|
|
192
|
-
}
|
|
193
|
-
return i + l + (c ?? "");
|
|
194
|
-
}, "")) : r.reduce((i, l) => Object.assign(i, l && l.call ? l(o.p) : l), {}) : r, ((i) => typeof window == "object" ? ((i ? i.querySelector("#_goober") : window._goober) || Object.assign((i || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : i || No)(o.target), o.g, o.o, o.k);
|
|
195
|
-
var t, n, a;
|
|
196
|
-
}
|
|
197
|
-
function nn(e, o, r) {
|
|
198
|
-
return o && function(t, n) {
|
|
199
|
-
for (var a = 0; a < n.length; a++) {
|
|
200
|
-
var i = n[a];
|
|
201
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i);
|
|
202
|
-
}
|
|
203
|
-
}(e.prototype, o), e;
|
|
204
|
-
}
|
|
205
|
-
function O() {
|
|
206
|
-
return O = Object.assign || function(e) {
|
|
207
|
-
for (var o = 1; o < arguments.length; o++) {
|
|
208
|
-
var r = arguments[o];
|
|
209
|
-
for (var t in r) Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
210
|
-
}
|
|
211
|
-
return e;
|
|
212
|
-
}, O.apply(this, arguments);
|
|
213
|
-
}
|
|
214
|
-
function on(e, o) {
|
|
215
|
-
e.prototype = Object.create(o.prototype), e.prototype.constructor = e, e.__proto__ = o;
|
|
216
|
-
}
|
|
217
|
-
function He(e, o) {
|
|
218
|
-
if (e == null) return {};
|
|
219
|
-
var r, t, n = {}, a = Object.keys(e);
|
|
220
|
-
for (t = 0; t < a.length; t++) r = a[t], o.indexOf(r) >= 0 || (n[r] = e[r]);
|
|
221
|
-
return n;
|
|
222
|
-
}
|
|
223
|
-
function Rt(e) {
|
|
224
|
-
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
225
|
-
return e;
|
|
226
|
-
}
|
|
227
|
-
kt.bind({ g: 1 }), kt.bind({ k: 1 });
|
|
228
|
-
var It = function() {
|
|
229
|
-
return "";
|
|
230
|
-
}, rn = T.createContext({ enqueueSnackbar: It, closeSnackbar: It }), at = "@media (max-width:599.95px)", Xe = "@media (min-width:600px)", Pt = function(e) {
|
|
231
|
-
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
232
|
-
}, Et = function(e) {
|
|
233
|
-
return "" + Pt(e.vertical) + Pt(e.horizontal);
|
|
234
|
-
}, qe = function(e) {
|
|
235
|
-
return !!e || e === 0;
|
|
236
|
-
}, Be = "unmounted", Ee = "exited", Ce = "entering", Ne = "entered", jt = "exiting", Ct = function(e) {
|
|
237
|
-
function o(t) {
|
|
238
|
-
var n;
|
|
239
|
-
n = e.call(this, t) || this;
|
|
240
|
-
var a, i = t.appear;
|
|
241
|
-
return n.appearStatus = null, t.in ? i ? (a = Ee, n.appearStatus = Ce) : a = Ne : a = t.unmountOnExit || t.mountOnEnter ? Be : Ee, n.state = { status: a }, n.nextCallback = null, n;
|
|
242
|
-
}
|
|
243
|
-
on(o, e), o.getDerivedStateFromProps = function(t, n) {
|
|
244
|
-
return t.in && n.status === Be ? { status: Ee } : null;
|
|
245
|
-
};
|
|
246
|
-
var r = o.prototype;
|
|
247
|
-
return r.componentDidMount = function() {
|
|
248
|
-
this.updateStatus(!0, this.appearStatus);
|
|
249
|
-
}, r.componentDidUpdate = function(t) {
|
|
250
|
-
var n = null;
|
|
251
|
-
if (t !== this.props) {
|
|
252
|
-
var a = this.state.status;
|
|
253
|
-
this.props.in ? a !== Ce && a !== Ne && (n = Ce) : a !== Ce && a !== Ne || (n = jt);
|
|
254
|
-
}
|
|
255
|
-
this.updateStatus(!1, n);
|
|
256
|
-
}, r.componentWillUnmount = function() {
|
|
257
|
-
this.cancelNextCallback();
|
|
258
|
-
}, r.getTimeouts = function() {
|
|
259
|
-
var t = this.props.timeout, n = t, a = t;
|
|
260
|
-
return t != null && typeof t != "number" && typeof t != "string" && (a = t.exit, n = t.enter), { exit: a, enter: n };
|
|
261
|
-
}, r.updateStatus = function(t, n) {
|
|
262
|
-
t === void 0 && (t = !1), n !== null ? (this.cancelNextCallback(), n === Ce ? this.performEnter(t) : this.performExit()) : this.props.unmountOnExit && this.state.status === Ee && this.setState({ status: Be });
|
|
263
|
-
}, r.performEnter = function(t) {
|
|
264
|
-
var n = this, a = this.props.enter, i = t, l = this.getTimeouts();
|
|
265
|
-
t || a ? (this.props.onEnter && this.props.onEnter(this.node, i), this.safeSetState({ status: Ce }, function() {
|
|
266
|
-
n.props.onEntering && n.props.onEntering(n.node, i), n.onTransitionEnd(l.enter, function() {
|
|
267
|
-
n.safeSetState({ status: Ne }, function() {
|
|
268
|
-
n.props.onEntered && n.props.onEntered(n.node, i);
|
|
269
|
-
});
|
|
270
|
-
});
|
|
271
|
-
})) : this.safeSetState({ status: Ne }, function() {
|
|
272
|
-
n.props.onEntered && n.props.onEntered(n.node, i);
|
|
273
|
-
});
|
|
274
|
-
}, r.performExit = function() {
|
|
275
|
-
var t = this, n = this.props.exit, a = this.getTimeouts();
|
|
276
|
-
n ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status: jt }, function() {
|
|
277
|
-
t.props.onExiting && t.props.onExiting(t.node), t.onTransitionEnd(a.exit, function() {
|
|
278
|
-
t.safeSetState({ status: Ee }, function() {
|
|
279
|
-
t.props.onExited && t.props.onExited(t.node);
|
|
280
|
-
});
|
|
281
|
-
});
|
|
282
|
-
})) : this.safeSetState({ status: Ee }, function() {
|
|
283
|
-
t.props.onExited && t.props.onExited(t.node);
|
|
284
|
-
});
|
|
285
|
-
}, r.cancelNextCallback = function() {
|
|
286
|
-
this.nextCallback !== null && this.nextCallback.cancel && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
287
|
-
}, r.safeSetState = function(t, n) {
|
|
288
|
-
n = this.setNextCallback(n), this.setState(t, n);
|
|
289
|
-
}, r.setNextCallback = function(t) {
|
|
290
|
-
var n = this, a = !0;
|
|
291
|
-
return this.nextCallback = function() {
|
|
292
|
-
a && (a = !1, n.nextCallback = null, t());
|
|
293
|
-
}, this.nextCallback.cancel = function() {
|
|
294
|
-
a = !1;
|
|
295
|
-
}, this.nextCallback;
|
|
296
|
-
}, r.onTransitionEnd = function(t, n) {
|
|
297
|
-
this.setNextCallback(n);
|
|
298
|
-
var a = t == null && !this.props.addEndListener;
|
|
299
|
-
this.node && !a ? (this.props.addEndListener && this.props.addEndListener(this.node, this.nextCallback), t != null && setTimeout(this.nextCallback, t)) : setTimeout(this.nextCallback, 0);
|
|
300
|
-
}, r.render = function() {
|
|
301
|
-
var t = this.state.status;
|
|
302
|
-
if (t === Be) return null;
|
|
303
|
-
var n = this.props;
|
|
304
|
-
return (0, n.children)(t, He(n, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]));
|
|
305
|
-
}, nn(o, [{ key: "node", get: function() {
|
|
306
|
-
var t, n = (t = this.props.nodeRef) === null || t === void 0 ? void 0 : t.current;
|
|
307
|
-
if (!n) throw new Error("notistack - Custom snackbar is not refForwarding");
|
|
308
|
-
return n;
|
|
309
|
-
} }]), o;
|
|
310
|
-
}(T.Component);
|
|
311
|
-
function Se() {
|
|
312
|
-
}
|
|
313
|
-
function Ht(e, o) {
|
|
314
|
-
typeof e == "function" ? e(o) : e && (e.current = o);
|
|
315
|
-
}
|
|
316
|
-
function bt(e, o) {
|
|
317
|
-
return te(function() {
|
|
318
|
-
return e == null && o == null ? null : function(r) {
|
|
319
|
-
Ht(e, r), Ht(o, r);
|
|
320
|
-
};
|
|
321
|
-
}, [e, o]);
|
|
322
|
-
}
|
|
323
|
-
function Je(e) {
|
|
324
|
-
var o = e.timeout, r = e.style, t = r === void 0 ? {} : r, n = e.mode;
|
|
325
|
-
return { duration: typeof o == "object" ? o[n] || 0 : o, easing: t.transitionTimingFunction, delay: t.transitionDelay };
|
|
326
|
-
}
|
|
327
|
-
Ct.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter: Se, onEntering: Se, onEntered: Se, onExit: Se, onExiting: Se, onExited: Se };
|
|
328
|
-
var an = function(e) {
|
|
329
|
-
e.scrollTop = e.scrollTop;
|
|
330
|
-
}, zt = function(e) {
|
|
331
|
-
return Math.round(e) + "ms";
|
|
332
|
-
};
|
|
333
|
-
function Le(e, o) {
|
|
334
|
-
e === void 0 && (e = ["all"]);
|
|
335
|
-
var r = o || {}, t = r.duration, n = t === void 0 ? 300 : t, a = r.easing, i = a === void 0 ? "cubic-bezier(0.4, 0, 0.2, 1)" : a, l = r.delay, s = l === void 0 ? 0 : l;
|
|
336
|
-
return (Array.isArray(e) ? e : [e]).map(function(c) {
|
|
337
|
-
var u = typeof n == "string" ? n : zt(n), m = typeof s == "string" ? s : zt(s);
|
|
338
|
-
return c + " " + u + " " + i + " " + m;
|
|
339
|
-
}).join(",");
|
|
340
|
-
}
|
|
341
|
-
function sn(e) {
|
|
342
|
-
var o;
|
|
343
|
-
return ((o = e) && o.ownerDocument || document).defaultView || window;
|
|
344
|
-
}
|
|
345
|
-
function Ve(e, o) {
|
|
346
|
-
if (o) {
|
|
347
|
-
var r = function(t, n) {
|
|
348
|
-
var a, i = n.getBoundingClientRect(), l = sn(n);
|
|
349
|
-
if (n.fakeTransform) a = n.fakeTransform;
|
|
350
|
-
else {
|
|
351
|
-
var s = l.getComputedStyle(n);
|
|
352
|
-
a = s.getPropertyValue("-webkit-transform") || s.getPropertyValue("transform");
|
|
353
|
-
}
|
|
354
|
-
var c = 0, u = 0;
|
|
355
|
-
if (a && a !== "none" && typeof a == "string") {
|
|
356
|
-
var m = a.split("(")[1].split(")")[0].split(",");
|
|
357
|
-
c = parseInt(m[4], 10), u = parseInt(m[5], 10);
|
|
358
|
-
}
|
|
359
|
-
switch (t) {
|
|
360
|
-
case "left":
|
|
361
|
-
return "translateX(" + (l.innerWidth + c - i.left) + "px)";
|
|
362
|
-
case "right":
|
|
363
|
-
return "translateX(-" + (i.left + i.width - c) + "px)";
|
|
364
|
-
case "up":
|
|
365
|
-
return "translateY(" + (l.innerHeight + u - i.top) + "px)";
|
|
366
|
-
default:
|
|
367
|
-
return "translateY(-" + (i.top + i.height - u) + "px)";
|
|
368
|
-
}
|
|
369
|
-
}(e, o);
|
|
370
|
-
r && (o.style.webkitTransform = r, o.style.transform = r);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
var ln = ce(function(e, o) {
|
|
374
|
-
var r = e.children, t = e.direction, n = t === void 0 ? "down" : t, a = e.in, i = e.style, l = e.timeout, s = l === void 0 ? 0 : l, c = e.onEnter, u = e.onEntered, m = e.onExit, k = e.onExited, y = He(e, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), b = le(null), f = bt(r.ref, b), x = bt(f, o), h = ne(function() {
|
|
375
|
-
b.current && Ve(n, b.current);
|
|
376
|
-
}, [n]);
|
|
377
|
-
return G(function() {
|
|
378
|
-
if (!a && n !== "down" && n !== "right") {
|
|
379
|
-
var d = function(w, R) {
|
|
380
|
-
var M;
|
|
381
|
-
function j() {
|
|
382
|
-
for (var q = this, N = arguments.length, z = new Array(N), K = 0; K < N; K++) z[K] = arguments[K];
|
|
383
|
-
clearTimeout(M), M = setTimeout(function() {
|
|
384
|
-
w.apply(q, z);
|
|
385
|
-
}, R);
|
|
386
|
-
}
|
|
387
|
-
return R === void 0 && (R = 166), j.clear = function() {
|
|
388
|
-
clearTimeout(M);
|
|
389
|
-
}, j;
|
|
390
|
-
}(function() {
|
|
391
|
-
b.current && Ve(n, b.current);
|
|
392
|
-
}), L = sn(b.current);
|
|
393
|
-
return L.addEventListener("resize", d), function() {
|
|
394
|
-
d.clear(), L.removeEventListener("resize", d);
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
}, [n, a]), G(function() {
|
|
398
|
-
a || h();
|
|
399
|
-
}, [a, h]), fe(Ct, Object.assign({ appear: !0, nodeRef: b, onEnter: function(d, L) {
|
|
400
|
-
Ve(n, d), an(d), c && c(d, L);
|
|
401
|
-
}, onEntered: u, onEntering: function(d) {
|
|
402
|
-
var L = Je({ timeout: s, mode: "enter", style: O({}, i, { transitionTimingFunction: i?.transitionTimingFunction || "cubic-bezier(0.0, 0, 0.2, 1)" }) });
|
|
403
|
-
d.style.webkitTransition = Le("-webkit-transform", L), d.style.transition = Le("transform", L), d.style.webkitTransform = "none", d.style.transform = "none";
|
|
404
|
-
}, onExit: function(d) {
|
|
405
|
-
var L = Je({ timeout: s, mode: "exit", style: O({}, i, { transitionTimingFunction: i?.transitionTimingFunction || "cubic-bezier(0.4, 0, 0.6, 1)" }) });
|
|
406
|
-
d.style.webkitTransition = Le("-webkit-transform", L), d.style.transition = Le("transform", L), Ve(n, d), m && m(d);
|
|
407
|
-
}, onExited: function(d) {
|
|
408
|
-
d.style.webkitTransition = "", d.style.transition = "", k && k(d);
|
|
409
|
-
}, in: a, timeout: s }, y), function(d, L) {
|
|
410
|
-
return vn(r, O({ ref: x, style: O({ visibility: d !== "exited" || a ? void 0 : "hidden" }, i, {}, r.props.style) }, L));
|
|
411
|
-
});
|
|
412
|
-
});
|
|
413
|
-
ln.displayName = "Slide";
|
|
414
|
-
var $e = function(e) {
|
|
415
|
-
return T.createElement("svg", Object.assign({ viewBox: "0 0 24 24", focusable: "false", style: { fontSize: 20, marginInlineEnd: 8, userSelect: "none", width: "1em", height: "1em", display: "inline-block", fill: "currentColor", flexShrink: 0 } }, e));
|
|
416
|
-
}, be = { maxSnack: 3, persist: !1, hideIconVariant: !1, disableWindowBlurListener: !1, variant: "default", autoHideDuration: 5e3, iconVariant: { default: void 0, success: T.createElement(function() {
|
|
417
|
-
return T.createElement($e, null, T.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
|
|
418
|
-
10.59L10 14.17L17.59 6.58L19 8L10 17Z` }));
|
|
419
|
-
}, null), warning: T.createElement(function() {
|
|
420
|
-
return T.createElement($e, null, T.createElement("path", { d: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z" }));
|
|
421
|
-
}, null), error: T.createElement(function() {
|
|
422
|
-
return T.createElement($e, null, T.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,
|
|
423
|
-
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
424
|
-
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z` }));
|
|
425
|
-
}, null), info: T.createElement(function() {
|
|
426
|
-
return T.createElement($e, null, T.createElement("path", { d: `M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
427
|
-
0 22,12A10,10 0 0,0 12,2Z` }));
|
|
428
|
-
}, null) }, anchorOrigin: { vertical: "bottom", horizontal: "left" }, TransitionComponent: ln, transitionDuration: { enter: 225, exit: 195 } };
|
|
429
|
-
function ze(e) {
|
|
430
|
-
return Object.entries(e).reduce(function(o, r) {
|
|
431
|
-
var t, n = r[0], a = r[1];
|
|
432
|
-
return O({}, o, ((t = {})[n] = kt(a), t));
|
|
433
|
-
}, {});
|
|
434
|
-
}
|
|
435
|
-
var cn = "notistack-CollapseWrapper", Io = function(e) {
|
|
436
|
-
return "notistack-MuiContent-" + e;
|
|
437
|
-
}, _t = ze({ root: { height: 0 }, entered: { height: "auto" } }), it = "0px", un = ce(function(e, o) {
|
|
438
|
-
var r = e.children, t = e.in, n = e.onExited, a = le(null), i = le(null), l = bt(o, i), s = function() {
|
|
439
|
-
return a.current ? a.current.clientHeight : 0;
|
|
440
|
-
};
|
|
441
|
-
return fe(Ct, { in: t, unmountOnExit: !0, onEnter: function(c) {
|
|
442
|
-
c.style.height = it;
|
|
443
|
-
}, onEntered: function(c) {
|
|
444
|
-
c.style.height = "auto";
|
|
445
|
-
}, onEntering: function(c) {
|
|
446
|
-
var u = s(), m = Je({ timeout: 175, mode: "enter" }), k = m.duration, y = m.easing;
|
|
447
|
-
c.style.transitionDuration = typeof k == "string" ? k : k + "ms", c.style.height = u + "px", c.style.transitionTimingFunction = y || "";
|
|
448
|
-
}, onExit: function(c) {
|
|
449
|
-
c.style.height = s() + "px";
|
|
450
|
-
}, onExited: n, onExiting: function(c) {
|
|
451
|
-
an(c);
|
|
452
|
-
var u = Je({ timeout: 175, mode: "exit" }), m = u.duration, k = u.easing;
|
|
453
|
-
c.style.transitionDuration = typeof m == "string" ? m : m + "ms", c.style.height = it, c.style.transitionTimingFunction = k || "";
|
|
454
|
-
}, nodeRef: i, timeout: 175 }, function(c, u) {
|
|
455
|
-
return fe("div", Object.assign({ ref: l, className: ge(_t.root, c === "entered" && _t.entered), style: O({ pointerEvents: "all", overflow: "hidden", minHeight: it, transition: Le("height") }, c === "entered" && { overflow: "visible" }, {}, c === "exited" && !t && { visibility: "hidden" }) }, u), fe("div", { ref: a, className: cn, style: { display: "flex", width: "100%" } }, r));
|
|
456
|
-
});
|
|
457
|
-
});
|
|
458
|
-
un.displayName = "Collapse";
|
|
459
|
-
var qt = { right: "left", left: "right", bottom: "up", top: "down" }, Po = function(e) {
|
|
460
|
-
return "anchorOrigin" + Et(e);
|
|
461
|
-
}, jo = function() {
|
|
462
|
-
};
|
|
463
|
-
function Pe(e, o) {
|
|
464
|
-
return e.reduce(function(r, t) {
|
|
465
|
-
return t == null ? r : function() {
|
|
466
|
-
for (var n = arguments.length, a = new Array(n), i = 0; i < n; i++) a[i] = arguments[i];
|
|
467
|
-
var l = [].concat(a);
|
|
468
|
-
o && l.indexOf(o) === -1 && l.push(o), r.apply(this, l), t.apply(this, l);
|
|
469
|
-
};
|
|
470
|
-
}, jo);
|
|
471
|
-
}
|
|
472
|
-
var Ho = typeof window < "u" ? dt : G;
|
|
473
|
-
function Bt(e) {
|
|
474
|
-
var o = le(e);
|
|
475
|
-
return Ho(function() {
|
|
476
|
-
o.current = e;
|
|
477
|
-
}), ne(function() {
|
|
478
|
-
return o.current.apply(void 0, arguments);
|
|
479
|
-
}, []);
|
|
480
|
-
}
|
|
481
|
-
var st, dn = ce(function(e, o) {
|
|
482
|
-
var r = e.children, t = e.className, n = e.autoHideDuration, a = e.disableWindowBlurListener, i = a !== void 0 && a, l = e.onClose, s = e.id, c = e.open, u = e.SnackbarProps, m = u === void 0 ? {} : u, k = le(), y = Bt(function() {
|
|
483
|
-
l && l.apply(void 0, arguments);
|
|
484
|
-
}), b = Bt(function(h) {
|
|
485
|
-
l && h != null && (k.current && clearTimeout(k.current), k.current = setTimeout(function() {
|
|
486
|
-
y(null, "timeout", s);
|
|
487
|
-
}, h));
|
|
488
|
-
});
|
|
489
|
-
G(function() {
|
|
490
|
-
return c && b(n), function() {
|
|
491
|
-
k.current && clearTimeout(k.current);
|
|
492
|
-
};
|
|
493
|
-
}, [c, n, b]);
|
|
494
|
-
var f = function() {
|
|
495
|
-
k.current && clearTimeout(k.current);
|
|
496
|
-
}, x = ne(function() {
|
|
497
|
-
n != null && b(0.5 * n);
|
|
498
|
-
}, [n, b]);
|
|
499
|
-
return G(function() {
|
|
500
|
-
if (!i && c) return window.addEventListener("focus", x), window.addEventListener("blur", f), function() {
|
|
501
|
-
window.removeEventListener("focus", x), window.removeEventListener("blur", f);
|
|
502
|
-
};
|
|
503
|
-
}, [i, x, c]), fe("div", Object.assign({ ref: o }, m, { className: ge("notistack-Snackbar", t), onMouseEnter: function(h) {
|
|
504
|
-
m.onMouseEnter && m.onMouseEnter(h), f();
|
|
505
|
-
}, onMouseLeave: function(h) {
|
|
506
|
-
m.onMouseLeave && m.onMouseLeave(h), x();
|
|
507
|
-
} }), r);
|
|
508
|
-
});
|
|
509
|
-
dn.displayName = "Snackbar";
|
|
510
|
-
var zo = ze({ root: (st = { display: "flex", flexWrap: "wrap", flexGrow: 1 }, st[Xe] = { flexGrow: "initial", minWidth: "288px" }, st) }), St = ce(function(e, o) {
|
|
511
|
-
var r = e.className, t = He(e, ["className"]);
|
|
512
|
-
return T.createElement("div", Object.assign({ ref: o, className: ge(zo.root, r) }, t));
|
|
513
|
-
});
|
|
514
|
-
St.displayName = "SnackbarContent";
|
|
515
|
-
var Ae = ze({ root: { backgroundColor: "#313131", fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em", color: "#fff", alignItems: "center", padding: "6px 16px", borderRadius: "4px", boxShadow: "0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)" }, lessPadding: { paddingLeft: "20px" }, default: { backgroundColor: "#313131" }, success: { backgroundColor: "#43a047" }, error: { backgroundColor: "#d32f2f" }, warning: { backgroundColor: "#ff9800" }, info: { backgroundColor: "#2196f3" }, message: { display: "flex", alignItems: "center", padding: "8px 0" }, action: { display: "flex", alignItems: "center", marginLeft: "auto", paddingLeft: "16px", marginRight: "-8px" } }), Vt = "notistack-snackbar", pn = ce(function(e, o) {
|
|
516
|
-
var r = e.id, t = e.message, n = e.action, a = e.iconVariant, i = e.variant, l = e.hideIconVariant, s = e.style, c = e.className, u = a[i], m = n;
|
|
517
|
-
return typeof m == "function" && (m = m(r)), T.createElement(St, { ref: o, role: "alert", "aria-describedby": Vt, style: s, className: ge("notistack-MuiContent", Io(i), Ae.root, Ae[i], c, !l && u && Ae.lessPadding) }, T.createElement("div", { id: Vt, className: Ae.message }, l ? null : u, t), m && T.createElement("div", { className: Ae.action }, m));
|
|
518
|
-
});
|
|
519
|
-
pn.displayName = "MaterialDesignContent";
|
|
520
|
-
var Re, lt, Ue, Ke, ct, _o = Me(pn), qo = ze({ wrappedRoot: { width: "100%", position: "relative", transform: "translateX(0)", top: 0, right: 0, bottom: 0, left: 0, minWidth: "288px" } }), Bo = function(e) {
|
|
521
|
-
var o = le(), r = ae(!0), t = r[0], n = r[1], a = Pe([e.snack.onClose, e.onClose]), i = ne(function() {
|
|
522
|
-
o.current = setTimeout(function() {
|
|
523
|
-
n(function(q) {
|
|
524
|
-
return !q;
|
|
525
|
-
});
|
|
526
|
-
}, 125);
|
|
527
|
-
}, []);
|
|
528
|
-
G(function() {
|
|
529
|
-
return function() {
|
|
530
|
-
o.current && clearTimeout(o.current);
|
|
531
|
-
};
|
|
532
|
-
}, []);
|
|
533
|
-
var l, s = e.snack, c = e.classes, u = e.Component, m = u === void 0 ? _o : u, k = te(function() {
|
|
534
|
-
return function(q) {
|
|
535
|
-
q === void 0 && (q = {});
|
|
536
|
-
var N = { containerRoot: !0, containerAnchorOriginTopCenter: !0, containerAnchorOriginBottomCenter: !0, containerAnchorOriginTopRight: !0, containerAnchorOriginBottomRight: !0, containerAnchorOriginTopLeft: !0, containerAnchorOriginBottomLeft: !0 };
|
|
537
|
-
return Object.keys(q).filter(function(z) {
|
|
538
|
-
return !N[z];
|
|
539
|
-
}).reduce(function(z, K) {
|
|
540
|
-
var J;
|
|
541
|
-
return O({}, z, ((J = {})[K] = q[K], J));
|
|
542
|
-
}, {});
|
|
543
|
-
}(c);
|
|
544
|
-
}, [c]), y = s.open, b = s.SnackbarProps, f = s.TransitionComponent, x = s.TransitionProps, h = s.transitionDuration, d = s.disableWindowBlurListener, L = s.content, w = He(s, ["open", "SnackbarProps", "TransitionComponent", "TransitionProps", "transitionDuration", "disableWindowBlurListener", "content", "entered", "requestClose", "onEnter", "onEntered", "onExit", "onExited"]), R = O({ direction: (l = w.anchorOrigin, l.horizontal !== "center" ? qt[l.horizontal] : qt[l.vertical]), timeout: h }, x), M = L;
|
|
545
|
-
typeof M == "function" && (M = M(w.id, w.message));
|
|
546
|
-
var j = ["onEnter", "onEntered", "onExit", "onExited"].reduce(function(q, N) {
|
|
547
|
-
var z;
|
|
548
|
-
return O({}, q, ((z = {})[N] = Pe([e.snack[N], e[N]], w.id), z));
|
|
549
|
-
}, {});
|
|
550
|
-
return T.createElement(un, { in: t, onExited: j.onExited }, T.createElement(dn, { open: y, id: w.id, disableWindowBlurListener: d, autoHideDuration: w.autoHideDuration, className: ge(qo.wrappedRoot, k.root, k[Po(w.anchorOrigin)]), SnackbarProps: b, onClose: a }, T.createElement(f, Object.assign({}, R, { appear: !0, in: y, onExit: j.onExit, onExited: i, onEnter: j.onEnter, onEntered: Pe([j.onEntered, function() {
|
|
551
|
-
e.snack.requestClose && a(null, "instructed", e.snack.id);
|
|
552
|
-
}], w.id) }), M || T.createElement(m, Object.assign({}, w)))));
|
|
553
|
-
}, Ie = 20, ut = 6, Vo = 2, $t = "." + cn, Ge = ze({ root: (Re = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition: Le(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }), pointerEvents: "none" }, Re[$t] = { padding: ut + "px 0px", transition: "padding 300ms ease 0ms" }, Re.maxWidth = "calc(100% - " + 2 * Ie + "px)", Re[at] = { width: "100%", maxWidth: "calc(100% - 32px)" }, Re), rootDense: (lt = {}, lt[$t] = { padding: Vo + "px 0px" }, lt), top: { top: Ie - ut + "px", flexDirection: "column" }, bottom: { bottom: Ie - ut + "px", flexDirection: "column-reverse" }, left: (Ue = { left: Ie + "px" }, Ue[Xe] = { alignItems: "flex-start" }, Ue[at] = { left: "16px" }, Ue), right: (Ke = { right: Ie + "px" }, Ke[Xe] = { alignItems: "flex-end" }, Ke[at] = { right: "16px" }, Ke), center: (ct = { left: "50%", transform: "translateX(-50%)" }, ct[Xe] = { alignItems: "center" }, ct) }), $o = Me(function(e) {
|
|
554
|
-
var o = e.classes, r = o === void 0 ? {} : o, t = e.anchorOrigin, n = e.dense, a = e.children, i = ge("notistack-SnackbarContainer", Ge[t.vertical], Ge[t.horizontal], Ge.root, r.containerRoot, r["containerAnchorOrigin" + Et(t)], n && Ge.rootDense);
|
|
555
|
-
return T.createElement("div", { className: i }, a);
|
|
556
|
-
}), Ut = function(e) {
|
|
557
|
-
return !(typeof e == "string" || wn(e));
|
|
558
|
-
}, Uo = function(e) {
|
|
559
|
-
function o(r) {
|
|
560
|
-
var t;
|
|
561
|
-
return (t = e.call(this, r) || this).enqueueSnackbar = function(n, a) {
|
|
562
|
-
if (a === void 0 && (a = {}), n == null) throw new Error("enqueueSnackbar called with invalid argument");
|
|
563
|
-
var i = Ut(n) ? n : a, l = Ut(n) ? n.message : n, s = i.key, c = i.preventDuplicate, u = He(i, ["key", "preventDuplicate"]), m = qe(s), k = m ? s : (/* @__PURE__ */ new Date()).getTime() + Math.random(), y = /* @__PURE__ */ function(f, x) {
|
|
564
|
-
return function(h, d) {
|
|
565
|
-
return d === void 0 && (d = !1), d ? O({}, be[h], {}, x[h], {}, f[h]) : h === "autoHideDuration" ? (M = f.autoHideDuration, j = x.autoHideDuration, (q = function(N) {
|
|
566
|
-
return typeof N == "number" || N === null;
|
|
567
|
-
})(M) ? M : q(j) ? j : be.autoHideDuration) : h === "transitionDuration" ? (L = f.transitionDuration, w = x.transitionDuration, (R = function(N, z) {
|
|
568
|
-
return z.some(function(K) {
|
|
569
|
-
return typeof N === K;
|
|
570
|
-
});
|
|
571
|
-
})(L, ["string", "number"]) ? L : R(L, ["object"]) ? O({}, be.transitionDuration, {}, R(w, ["object"]) && w, {}, L) : R(w, ["string", "number"]) ? w : R(w, ["object"]) ? O({}, be.transitionDuration, {}, w) : be.transitionDuration) : f[h] || x[h] || be[h];
|
|
572
|
-
var L, w, R, M, j, q;
|
|
573
|
-
};
|
|
574
|
-
}(u, t.props), b = O({ id: k }, u, { message: l, open: !0, entered: !1, requestClose: !1, persist: y("persist"), action: y("action"), content: y("content"), variant: y("variant"), anchorOrigin: y("anchorOrigin"), disableWindowBlurListener: y("disableWindowBlurListener"), autoHideDuration: y("autoHideDuration"), hideIconVariant: y("hideIconVariant"), TransitionComponent: y("TransitionComponent"), transitionDuration: y("transitionDuration"), TransitionProps: y("TransitionProps", !0), iconVariant: y("iconVariant", !0), style: y("style", !0), SnackbarProps: y("SnackbarProps", !0), className: ge(t.props.className, u.className) });
|
|
575
|
-
return b.persist && (b.autoHideDuration = void 0), t.setState(function(f) {
|
|
576
|
-
if (c === void 0 && t.props.preventDuplicate || c) {
|
|
577
|
-
var x = function(L) {
|
|
578
|
-
return m ? L.id === k : L.message === l;
|
|
579
|
-
}, h = f.queue.findIndex(x) > -1, d = f.snacks.findIndex(x) > -1;
|
|
580
|
-
if (h || d) return f;
|
|
581
|
-
}
|
|
582
|
-
return t.handleDisplaySnack(O({}, f, { queue: [].concat(f.queue, [b]) }));
|
|
583
|
-
}), k;
|
|
584
|
-
}, t.handleDisplaySnack = function(n) {
|
|
585
|
-
return n.snacks.length >= t.maxSnack ? t.handleDismissOldest(n) : t.processQueue(n);
|
|
586
|
-
}, t.processQueue = function(n) {
|
|
587
|
-
var a = n.queue, i = n.snacks;
|
|
588
|
-
return a.length > 0 ? O({}, n, { snacks: [].concat(i, [a[0]]), queue: a.slice(1, a.length) }) : n;
|
|
589
|
-
}, t.handleDismissOldest = function(n) {
|
|
590
|
-
if (n.snacks.some(function(s) {
|
|
591
|
-
return !s.open || s.requestClose;
|
|
592
|
-
})) return n;
|
|
593
|
-
var a = !1, i = !1;
|
|
594
|
-
n.snacks.reduce(function(s, c) {
|
|
595
|
-
return s + (c.open && c.persist ? 1 : 0);
|
|
596
|
-
}, 0) === t.maxSnack && (i = !0);
|
|
597
|
-
var l = n.snacks.map(function(s) {
|
|
598
|
-
return a || s.persist && !i ? O({}, s) : (a = !0, s.entered ? (s.onClose && s.onClose(null, "maxsnack", s.id), t.props.onClose && t.props.onClose(null, "maxsnack", s.id), O({}, s, { open: !1 })) : O({}, s, { requestClose: !0 }));
|
|
599
|
-
});
|
|
600
|
-
return O({}, n, { snacks: l });
|
|
601
|
-
}, t.handleEnteredSnack = function(n, a, i) {
|
|
602
|
-
if (!qe(i)) throw new Error("handleEnteredSnack Cannot be called with undefined key");
|
|
603
|
-
t.setState(function(l) {
|
|
604
|
-
return { snacks: l.snacks.map(function(s) {
|
|
605
|
-
return s.id === i ? O({}, s, { entered: !0 }) : O({}, s);
|
|
606
|
-
}) };
|
|
607
|
-
});
|
|
608
|
-
}, t.handleCloseSnack = function(n, a, i) {
|
|
609
|
-
t.props.onClose && t.props.onClose(n, a, i);
|
|
610
|
-
var l = i === void 0;
|
|
611
|
-
t.setState(function(s) {
|
|
612
|
-
var c = s.snacks, u = s.queue;
|
|
613
|
-
return { snacks: c.map(function(m) {
|
|
614
|
-
return l || m.id === i ? m.entered ? O({}, m, { open: !1 }) : O({}, m, { requestClose: !0 }) : O({}, m);
|
|
615
|
-
}), queue: u.filter(function(m) {
|
|
616
|
-
return m.id !== i;
|
|
617
|
-
}) };
|
|
618
|
-
});
|
|
619
|
-
}, t.closeSnackbar = function(n) {
|
|
620
|
-
var a = t.state.snacks.find(function(i) {
|
|
621
|
-
return i.id === n;
|
|
622
|
-
});
|
|
623
|
-
qe(n) && a && a.onClose && a.onClose(null, "instructed", n), t.handleCloseSnack(null, "instructed", n);
|
|
624
|
-
}, t.handleExitedSnack = function(n, a) {
|
|
625
|
-
if (!qe(a)) throw new Error("handleExitedSnack Cannot be called with undefined key");
|
|
626
|
-
t.setState(function(i) {
|
|
627
|
-
var l = t.processQueue(O({}, i, { snacks: i.snacks.filter(function(s) {
|
|
628
|
-
return s.id !== a;
|
|
629
|
-
}) }));
|
|
630
|
-
return l.queue.length === 0 ? l : t.handleDismissOldest(l);
|
|
631
|
-
});
|
|
632
|
-
}, t.enqueueSnackbar, t.closeSnackbar, t.state = { snacks: [], queue: [], contextValue: { enqueueSnackbar: t.enqueueSnackbar.bind(Rt(t)), closeSnackbar: t.closeSnackbar.bind(Rt(t)) } }, t;
|
|
633
|
-
}
|
|
634
|
-
return on(o, e), o.prototype.render = function() {
|
|
635
|
-
var r = this, t = this.state.contextValue, n = this.props, a = n.domRoot, i = n.children, l = n.dense, s = l !== void 0 && l, c = n.Components, u = c === void 0 ? {} : c, m = n.classes, k = this.state.snacks.reduce(function(b, f) {
|
|
636
|
-
var x, h = Et(f.anchorOrigin), d = b[h] || [];
|
|
637
|
-
return O({}, b, ((x = {})[h] = [].concat(d, [f]), x));
|
|
638
|
-
}, {}), y = Object.keys(k).map(function(b) {
|
|
639
|
-
var f = k[b], x = f[0];
|
|
640
|
-
return T.createElement($o, { key: b, dense: s, anchorOrigin: x.anchorOrigin, classes: m }, f.map(function(h) {
|
|
641
|
-
return T.createElement(Bo, { key: h.id, snack: h, classes: m, Component: u[h.variant], onClose: r.handleCloseSnack, onEnter: r.props.onEnter, onExit: r.props.onExit, onExited: Pe([r.handleExitedSnack, r.props.onExited], h.id), onEntered: Pe([r.handleEnteredSnack, r.props.onEntered], h.id) });
|
|
642
|
-
}));
|
|
643
|
-
});
|
|
644
|
-
return T.createElement(rn.Provider, { value: t }, i, a ? mo(y, a) : y);
|
|
645
|
-
}, nn(o, [{ key: "maxSnack", get: function() {
|
|
646
|
-
return this.props.maxSnack || be.maxSnack;
|
|
647
|
-
} }]), o;
|
|
648
|
-
}(Gt), mn = function() {
|
|
649
|
-
return yn(rn);
|
|
650
|
-
};
|
|
651
|
-
const pe = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "_icons_1a398_16", expand: "_expand_1a398_22", expandOpen: "_expandOpen_1a398_29", stackTraceContainer: "_stackTraceContainer_1a398_33" }, hn = ce((e, o) => {
|
|
652
|
-
const { id: r, message: t, iconVariant: n, error: a, hideIconVariant: i, ...l } = e, { closeSnackbar: s } = mn(), c = Bn(), [u, m] = ae(!1), k = ne(() => {
|
|
653
|
-
m((f) => !f);
|
|
654
|
-
}, []), y = ne(() => {
|
|
655
|
-
s(r);
|
|
656
|
-
}, [r, s]), b = a?.message || String(t);
|
|
657
|
-
return g(St, { ref: o, className: mt(pe.root, "error-snackbar"), children: se(vo, { className: pe.card, style: { backgroundColor: c.palette.error.dark, border: `1px solid ${c.palette.error.dark}` }, children: [se(So, { className: pe.actionRoot, children: [i ? null : n?.error, g(Vn, { variant: "body2", component: "div", className: pe.typography, style: { color: c.palette.text.primary }, children: b }), g("div", { style: { flex: "1 1 auto" } }), se("div", { className: pe.icons, children: [a ? g(ht, { "aria-label": "Show more", size: "small", className: mt(pe.expand, { [pe.expandOpen]: u }), style: { color: c.palette.action.active }, onClick: k, children: g($n, {}) }) : null, g(ht, { size: "small", className: pe.expand, style: { color: c.palette.action.active }, onClick: y, children: g(Un, { fontSize: "small" }) })] })] }), a ? g(ft, { in: u, timeout: "auto", unmountOnExit: !0, children: g("div", { className: pe.stackTraceContainer, style: { backgroundColor: c.palette.error.light, borderTop: `1px solid ${c.palette.error.main}` }, children: g(Kn, { error: a, hideLineNumbers: !0 }) }) }) : null] }) });
|
|
658
|
-
});
|
|
659
|
-
hn.displayName = "ToastError";
|
|
660
|
-
const fn = Me(ce((e, o) => {
|
|
661
|
-
const { commands: r, commandHook: t, scope: n = "workbook", disabled: a = !1, ...i } = e, l = ie((c) => {
|
|
662
|
-
const u = { variant: ro.Menuitem, parentFloat: c.floatReference, commandHook: t, scope: n, disabled: a }, m = se(Kt, { children: [g(nt, { ...u, command: r.getCommand("newWorkbook"), icon: Fe(g(ao, {})) }), g(io, { orientation: "horizontal" }), g(nt, { ...u, command: r.getCommand("openWorkbook"), icon: Fe(g(so, {})) }), g(Ot, { ...u, commands: r, quickCommand: "saveWorkbook", icon: Fe(g(uo, {})), createPopupPanel: (k) => {
|
|
663
|
-
const y = { ...u, parentFloat: k.floatReference, scope: "saveWorkbook" }, b = [];
|
|
664
|
-
return ye.getWriteFormats().forEach((f) => {
|
|
665
|
-
if (f.isDefault) return;
|
|
666
|
-
let x = null;
|
|
667
|
-
f.key === "CSV" ? x = Fe(g(lo, {})) : f.key === "Excel" && (x = Fe(g(co, {})));
|
|
668
|
-
const h = r.getCommand(`saveWorkbookAs${f.key}`);
|
|
669
|
-
h ? b.push(fe(nt, { ...y, key: f.key, command: h, icon: x })) : console.warn(`Unable to resolve command: 'saveWorkbookAs${f.key}'`);
|
|
670
|
-
}), Wt({ ...k, children: b, onClick: () => {
|
|
671
|
-
k.closeFloatAll();
|
|
672
|
-
} });
|
|
673
|
-
} })] });
|
|
674
|
-
return Wt({ ...c, children: m, onClick: (k) => {
|
|
675
|
-
k.isDefaultPrevented || c.closeFloatAll();
|
|
676
|
-
} });
|
|
677
|
-
}, [a, r, t, n]), s = "File";
|
|
678
|
-
return g(Ot, { commands: r, disabled: a, commandHook: t, scope: n, label: s, tooltip: "Options for saving and loading the workbook.", sx: { paddingBottom: "0px", "& button": { paddingTop: "0px", paddingBottom: "0px", height: (c) => `calc(1.25rem + ${c.spacing(2)}px)` } }, ...i, createPopupPanel: l, icon: g(po, { className: "label", icon: null, label: s }) });
|
|
679
|
-
}));
|
|
680
|
-
fn.displayName = "StandaloneFileCommandButton";
|
|
681
|
-
const Ko = g(no, { label: "SheetXL", description: "Visit me at sheetxl.com.", children: g(xe, { sx: { width: "24px", height: "24px", marginBottom: "4px", marginLeft: "6px" }, children: g(oo, { onClick: () => {
|
|
682
|
-
window?.open("https://www.sheetxl.com", "_blank");
|
|
683
|
-
}, style: { width: "24px", height: "24px", cursor: "pointer" } }) }) }), gn = Me(ce((e, o) => {
|
|
684
|
-
const { commands: r, workbook: t, logo: n = Ko, mainElement: a, showFileMenu: i = !0, showAppearanceMenu: l = !0, ...s } = e, { reference: c } = Hn(), [u, { width: m }] = zn(), k = m < 530, y = i ? g(fn, { commands: r, commandHook: { beforeExecute() {
|
|
685
|
-
c?.closeAll();
|
|
686
|
-
}, onError(h, d, L) {
|
|
687
|
-
} } }) : null, b = l ? g(_n, { commands: r, commandHook: { beforeExecute() {
|
|
688
|
-
c?.closeAll();
|
|
689
|
-
}, onError(h, d, L) {
|
|
690
|
-
} } }) : null, f = te(() => ({ paddingLeft: (h) => h.spacing(1), paddingRight: (h) => h.spacing(1) }), []), x = le(null);
|
|
691
|
-
return g(xe, { ref: Yt([x, u, o]), ...s, children: qn({ commands: r, renderCompact: k, workbook: t, selectWrapper: (h) => se(xe, { sx: { display: "flex", flex: "1", flexDirection: "row", alignItems: "stretch", gap: (d) => d.spacing(1), paddingLeft: (d) => d.spacing(1), paddingRight: (d) => d.spacing(1) }, children: [se(xe, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (d) => d.spacing(0.5) }, children: [n, se(xe, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (d) => d.spacing(0.25) }, children: [y, h] })] }), g(xe, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: a }), g(xe, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: k && !b ? "0 0 auto" : "1 1 100%" }, children: b })] }), selectProps: f, toolbarsProps: { Home: { sx: {} } } }) });
|
|
692
|
-
}));
|
|
693
|
-
gn.displayName = "StandaloneWorkbookToolbar";
|
|
694
|
-
const kn = Me(ce((e, o) => {
|
|
695
|
-
const { workbook: r, setWorkbook: t, refWorkbookTitle: n, titleWorkbook: a, setWorkbookTitle: i, titlePlaceHolder: l, children: s, undoManager: c, commands: u, importExportDisabled: m, themeModeOptions: k } = e, y = mn(), b = y ? y.enqueueSnackbar : () => {
|
|
696
|
-
}, f = y ? y.closeSnackbar : () => {
|
|
697
|
-
}, [x, h] = ae({ isMounted: !1, label: null, starting: /* @__PURE__ */ new Map(), running: /* @__PURE__ */ new Map() }), d = ne(() => {
|
|
698
|
-
h((A) => ({ ...A, isMounted: !0 }));
|
|
699
|
-
}, []), L = ne(() => {
|
|
700
|
-
h((A) => ({ ...A, isMounted: !1 }));
|
|
701
|
-
}, []), w = Gn(), R = Zn(), M = Xn(), j = le(/* @__PURE__ */ new Set()), q = te(() => {
|
|
702
|
-
const A = (E, S) => {
|
|
703
|
-
if (S?.onceKey) {
|
|
704
|
-
if (j.current.has(S.onceKey)) return;
|
|
705
|
-
const D = new Set(j.current);
|
|
706
|
-
D.add(S.onceKey), j.current = D;
|
|
707
|
-
}
|
|
708
|
-
const P = { variant: S?.type ?? _e.Info, anchorOrigin: { vertical: "top", horizontal: "center" }, preventDuplicate: S?.preventDuplicate, persist: S?.persist ?? S?.type === _e.Error, action: (D) => g(ht, { onClick: () => f(D), children: g(Oo, {}) }) };
|
|
709
|
-
S?.enqueueProps && Object.assign(P, S.enqueueProps), E || console.log("message is 'null'", S), b(E ?? "Alert", P);
|
|
710
|
-
};
|
|
711
|
-
return { showMessage: A, showBusy: (E, S) => {
|
|
712
|
-
let P = null;
|
|
713
|
-
const D = new Promise((B) => {
|
|
714
|
-
P = B;
|
|
715
|
-
});
|
|
716
|
-
return h((B) => {
|
|
717
|
-
const _ = new Map(B.starting);
|
|
718
|
-
return _.set(D, P), { ...B, label: E, starting: _ };
|
|
719
|
-
}), D;
|
|
720
|
-
}, showWindow: (E, S, P) => {
|
|
721
|
-
const D = { ...S, onKeyDown: (B) => {
|
|
722
|
-
u?.dispatchToFocusedCommand(B), B.isDefaultPrevented() || B.isPropagationStopped() || S?.onKeyDown?.(B);
|
|
723
|
-
} };
|
|
724
|
-
return w(E, { sort: () => import("./B-7gpSVkQWekyOlk.js"), numberFormat: () => import("./DPdbTtHJ9qzLqsDN.js"), hyperlink: () => import("./CB496hBmWELULf2f.js"), comments: () => import("./D8lNg-ZFq3SVt0qa.js"), find: () => import("./D7ubLFCJK5RzTJOF.js"), tableDetails: () => import("./Cjl-eP68w6LXe0zR.js"), tableNew: () => import("./CGL2dNgGZEziA1cG.js"), namedDetails: () => import("./DucOHAWR0Drvzaz2.js") }[E], D, P);
|
|
725
|
-
}, showOptions: R, showInputOptions: M, showError: (E) => {
|
|
726
|
-
let S, P = _e.Error, D = "Unknown Error";
|
|
727
|
-
typeof E == "string" ? D = E : E instanceof Error && (S = E, E.message && (D = E.message)), E instanceof fo && (P = _e.Info), A(D, { type: P, enqueueProps: { error: S } });
|
|
728
|
-
} };
|
|
729
|
-
}, []), N = ne(() => {
|
|
730
|
-
}, []), z = ((A) => {
|
|
731
|
-
const { workbook: E, setWorkbook: S, importExportDisabled: P, workbookTitle: D = "export", setWorkbookTitle: B, notifier: _, requestWorkbookTitle: Q, themeModeOptions: H, undoManager: C, commands: W, onExecute: V } = A, re = ie(H?.onForceModeChange, [H?.onForceModeChange]), me = ie(H?.onForceLightGridChange, [H?.onForceLightGridChange]), ue = ie(H?.onForceLightImagesChange, [H?.onForceLightImagesChange]), Ye = ie(async (F = null, X = null) => {
|
|
732
|
-
const p = [];
|
|
733
|
-
let v, $ = null, Y = null;
|
|
734
|
-
if (typeof F == "string" ? Y = F : $ = F, v = $ ? F : await Jn.openFileDialog(Y ?? ye.getAllReadFormatTypeAsString().join(",")), !v) return null;
|
|
735
|
-
const he = { source: v, constructorOptions: X, onWarning: (tt) => {
|
|
736
|
-
p.push(tt);
|
|
737
|
-
} }, Oe = await ye.read(he, _);
|
|
738
|
-
return p.length > 0 && (_?.showMessage?.("Some elements were not able to be imported. See console for details."), console.warn(`Import warnings:
|
|
739
|
-
` + p.join(`
|
|
740
|
-
`))), Oe;
|
|
741
|
-
}, [V, _, E]), De = ie(async (F, X, p) => {
|
|
742
|
-
if (!X && Q) {
|
|
743
|
-
const v = await Q("Enter Workbook name to " + (p.isDefault ? "Save." : `Export as ${p.description}.`));
|
|
744
|
-
return v !== null && ye.writeFile(v, F, { formatType: p.key });
|
|
745
|
-
}
|
|
746
|
-
return ye.writeFile(X, F, { formatType: p.key });
|
|
747
|
-
}, [_, E, Q]), U = ne(() => ({ contains: (F) => !0, focus() {
|
|
748
|
-
} }), []), ke = te(() => {
|
|
749
|
-
const F = [];
|
|
750
|
-
P || (ye.getWriteFormats().forEach((p) => {
|
|
751
|
-
const v = p.isDefault, $ = { label: v ? "Save Workbook" : `Save Workbook as ${p.description}`, scopedLabels: { workbook: "Save", saveWorkbook: `as ${p.description}` }, tags: p.tags, description: `Save the workbook to the desktop${v ? "" : ` as ${p.description}`}.` };
|
|
752
|
-
v && ($.shortcut = { key: "S", modifiers: [We.Ctrl] }, F.push(new ee("saveWorkbookAs", U, { label: "Save Workbook As…", scopedLabels: { workbook: "Save as…", saveWorkbook: "as…" }, shortcut: [{ key: "S", modifiers: [We.Shift, We.Ctrl] }, { key: "F12" }], description: "Save the workbook to the desktop with the provided name." }, () => {
|
|
753
|
-
De(E, null, p).catch((he) => {
|
|
754
|
-
_?.showError?.(he);
|
|
755
|
-
});
|
|
756
|
-
})));
|
|
757
|
-
const Y = v ? "saveWorkbook" : `saveWorkbookAs${p.key}`;
|
|
758
|
-
F.push(new ee(Y, U, $, (he) => {
|
|
759
|
-
De(E, he ?? D, p).catch((Oe) => {
|
|
760
|
-
_?.showError?.(Oe);
|
|
761
|
-
});
|
|
762
|
-
}));
|
|
763
|
-
}), F.push(new ee("openWorkbook", U, { label: "Open Workbook…", scopedLabels: { workbook: "Open…" }, description: "Open a workbook from the desktop.", shortcut: { key: "O", modifiers: [We.Ctrl] } }, async (p = null) => {
|
|
764
|
-
const v = { date1904: E.isDate1904(), ...E.options };
|
|
765
|
-
try {
|
|
766
|
-
const $ = await Ye(p, v);
|
|
767
|
-
if (!$) return;
|
|
768
|
-
const Y = $.title, he = $.workbook, Oe = he.getSelectedSheet();
|
|
769
|
-
if ($.formatType.mimeType === "text/csv") {
|
|
770
|
-
const tt = E.findValidSheetName(Y);
|
|
771
|
-
await E.doBatch(async () => {
|
|
772
|
-
const Lt = Oe.getUsedRange();
|
|
773
|
-
Lt ? await E.getSheets().add({ name: tt, autoSelect: !0 }).getRange({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }).copyFrom(Lt) : _?.showMessage("The file appears to be blank.");
|
|
774
|
-
}, `Import CSV '${Y}'`);
|
|
775
|
-
} else E?.close(), B?.(Y), S(he);
|
|
776
|
-
} catch ($) {
|
|
777
|
-
_?.showError?.($);
|
|
778
|
-
}
|
|
779
|
-
})), F.push(new ee("openWorkbookFromUrl", U, { label: "Open Workbook From Web", scopedLabels: { insert: "From Web", workbook: "From Web…" }, description: "Open a workbook from the web." }, async function(p) {
|
|
780
|
-
if (!p) {
|
|
781
|
-
const v = await _?.showInputOptions?.({ title: "Open Workbook from the Web", description: "Enter the web address for the workbook to open.", inputLabel: "Address", initialValue: "https://www.sheetxl.com/examples/features-checklist.xlsx", inputProps: { style: { minWidth: "440px" } }, options: ["Open"] });
|
|
782
|
-
if (v.option !== "Open") return;
|
|
783
|
-
p = v.input;
|
|
784
|
-
}
|
|
785
|
-
p && console.log("openWorkbookFromUrl", p);
|
|
786
|
-
})));
|
|
787
|
-
let X = [];
|
|
788
|
-
return H && (X = [new ee("themeMode", U, { label: "Light/Dark Mode", scopedLabels: { appearance: "Light/Dark Mode" }, description: "Toggle the application styling between light and dark mode." }), new ee("defaultThemeMode", U, { label: "Use System Light/Dark Mode", scopedLabels: { appearance: "Use System Default" }, description: "Use the system settings to determine styling for light and dark mode." }), new ee("forceLightGrid", U, { label: "Force Light Grid", description: "Force the grid to always render in light mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)." }), new ee("forceLightImages", U, { label: "Force Light Images", description: "Force the images to always render in light mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode." })]), [...F, ...X, new Tt("help", U, { label: "Show Help", description: "Provide Help.", shortcut: { key: "F1" } }, () => {
|
|
789
|
-
}), new Tt("showKeyboardShortcuts", U, { label: "Keyboard Shortcuts", description: "Show keyboard shortcuts.", shortcut: { key: "/", modifiers: [We.Ctrl] } }, () => {
|
|
790
|
-
}), new ee("gotoUrlGithub", U, { label: "Github", description: "Download examples, explore source code, and leave a star." }, () => {
|
|
791
|
-
window?.open("https://github.com/sheetxl/sheetxl");
|
|
792
|
-
}), new ee("gotoUrlDiscord", U, { label: "Discord", description: "Join our community on discord." }, () => {
|
|
793
|
-
window?.open("https://discord.gg/NTKdwUgK9p");
|
|
794
|
-
}), new ee("gotoUrlDocumentation", U, { label: "Documentation", description: "Read the documentation." }, () => {
|
|
795
|
-
window?.open("https://www.sheetxl.com/docs");
|
|
796
|
-
}), new ee("gotoUrlIssue", U, { label: "Create Issue", description: "Create an issue to identify a bug or a feature request." }, () => {
|
|
797
|
-
window?.open("https://github.com/sheetxl/sheetxl/issues");
|
|
798
|
-
})];
|
|
799
|
-
}, [E, D, _, P, H, W, C]), Z = te(() => {
|
|
800
|
-
let F = null;
|
|
801
|
-
return F = W ? W.createChildGroup(U, "standaloneWorkbook", !1) : new Jt(U, "standaloneWorkbook"), F.addCommands(ke, !0), F;
|
|
802
|
-
}, [W, ke]);
|
|
803
|
-
Qn({ manager: C, commands: Z, notifier: _ });
|
|
804
|
-
const { themeMode: Te } = Xt();
|
|
805
|
-
G(() => {
|
|
806
|
-
if (!H || !Z) return;
|
|
807
|
-
const F = H.forceMode === "dark" || !H.forceMode && Te === "dark";
|
|
808
|
-
Z.getCommand("themeMode").update({ state: H.forceMode ?? null, label: F ? "Dark Mode" : "Light Mode", scopedLabels: { appearance: F ? "Dark Mode" : "Light Mode" } }).updateCallback(() => {
|
|
809
|
-
re(F ? pt.Light : pt.Dark);
|
|
810
|
-
}), Z.getCommand("defaultThemeMode").update({ state: !H.forceMode }).updateCallback(() => {
|
|
811
|
-
re(null);
|
|
812
|
-
}), Z.getCommand("forceLightGrid").update({ state: H.forceLightGrid }).updateCallback(() => {
|
|
813
|
-
me(!H.forceLightGrid);
|
|
814
|
-
}), Z.getCommand("forceLightImages").update({ state: H.forceLightImages }).updateCallback(() => {
|
|
815
|
-
ue(!H.forceLightImages);
|
|
816
|
-
});
|
|
817
|
-
}, [Te, H, ke]);
|
|
818
|
-
const { showModal: et } = Yn();
|
|
819
|
-
return G(() => {
|
|
820
|
-
const F = () => new Promise((X, p) => {
|
|
821
|
-
const v = T.lazy(() => import("./BPKaeP61qs19hdJx.js")), $ = et(v, { title: "Shortcut Keys Reference", commands: Z, onDone: () => {
|
|
822
|
-
$.hide();
|
|
823
|
-
}, TransitionProps: { onExited: () => {
|
|
824
|
-
X(!0);
|
|
825
|
-
} } });
|
|
826
|
-
});
|
|
827
|
-
Z.getCommand("showKeyboardShortcuts").updateCallback(() => F()), Z.getCommand("help").updateCallback(() => F());
|
|
828
|
-
}, [ke, Z]), Z;
|
|
829
|
-
})({ workbook: r, setWorkbook: t, importExportDisabled: m, workbookTitle: a, setWorkbookTitle: i, commands: u, requestWorkbookTitle: (A) => new Promise((E) => {
|
|
830
|
-
n.current ? n.current.requestWorkbookTitle((S, P) => {
|
|
831
|
-
E(S);
|
|
832
|
-
}, { selectAll: !0, requestReason: A }) : E(l);
|
|
833
|
-
}), themeModeOptions: k, undoManager: c, notifier: q, onExecute: N });
|
|
834
|
-
G(() => {
|
|
835
|
-
x.starting.size <= 0 || !x.isMounted || h((A) => {
|
|
836
|
-
const E = new Map(A.running);
|
|
837
|
-
return A.starting.forEach((S, P) => {
|
|
838
|
-
const D = () => {
|
|
839
|
-
h((B) => {
|
|
840
|
-
const _ = new Map(B.running);
|
|
841
|
-
return _.delete(P), { ...B, running: _ };
|
|
842
|
-
});
|
|
843
|
-
};
|
|
844
|
-
E.set(P, D), S(D);
|
|
845
|
-
}), { ...A, starting: /* @__PURE__ */ new Map(), running: E };
|
|
846
|
-
});
|
|
847
|
-
}, [x]);
|
|
848
|
-
const [K, J] = ae(null);
|
|
849
|
-
G(() => {
|
|
850
|
-
x.starting.size !== 0 || x.running.size !== 0 ? J(g(Qt, { icon: g(eo, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: !0, label: x.label, onMount: d, onUnmount: L, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : J(null);
|
|
851
|
-
}, [x.starting, x.running]);
|
|
852
|
-
const I = te(() => g(to, { commands: z, disableHover: !0, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [z]), oe = { notifier: q, commands: z };
|
|
853
|
-
return r && (oe.statusBarProps = { childrenEnd: I }), se(Kt, { children: [K, s ? T.cloneElement(s, oe) : null] });
|
|
854
|
-
}));
|
|
855
|
-
kn.displayName = "SnackbarAndCommandsWrapper";
|
|
856
|
-
const bn = Me(ce((e, o) => {
|
|
857
|
-
const { className: r, sx: t, style: n, onElementLoad: a, onError: i, undoManager: l, errorPanel: s = Wn, onKeyDown: c, workbook: u, createWorkbookOptions: m, onWorkbookChange: k, logo: y, importExportDisabled: b = !1, themeModeOptions: f, autoFocus: x = !1, commands: h, title: d, onTitleChange: L, titleProps: w, ...R } = e, M = le(null), j = ie(k, [k]), q = ie(L ?? w?.onTitleChange, [L ?? w?.onTitleChange]), N = w?.placeHolder ?? "Untitled", z = f?.forceMode, { themeMode: K, source: J } = Xt({ mode: z }), I = te(() => ({ ...f, light: Dt(!1, ot.deepMerge(f?.theme ?? {}, f?.light ?? {})), dark: Dt(!0, ot.deepMerge(f?.theme ?? {}, f?.dark ?? {})) }), [f]), oe = K === pt.Dark, [A, E] = ae(null);
|
|
858
|
-
G(() => {
|
|
859
|
-
E(l ?? new ho());
|
|
860
|
-
}, [l]);
|
|
861
|
-
const [S, P] = ae(null), [D, B] = ae(null), _ = Fn();
|
|
862
|
-
dt(() => {
|
|
863
|
-
if (!u || Object.keys(u).length === 0 && !ot.isPromiseLike(u)) {
|
|
864
|
-
const p = { theme: _.getDefaultTheme(), ...m };
|
|
865
|
-
B(new Ft(p));
|
|
866
|
-
} else B(u);
|
|
867
|
-
}, [u]), dt(() => {
|
|
868
|
-
if (D) {
|
|
869
|
-
if (D instanceof Ft) return P({ workbook: D }), void (u !== D && j?.(D));
|
|
870
|
-
(async () => {
|
|
871
|
-
try {
|
|
872
|
-
let p, v = await Promise.resolve(D);
|
|
873
|
-
v && v.source && (v = await ye.read(v)), v.workbook ? (V(v.title), p = v.workbook) : p = v, j?.(p), P({ workbook: p });
|
|
874
|
-
} catch (p) {
|
|
875
|
-
j?.(null), P({ error: p });
|
|
876
|
-
}
|
|
877
|
-
})();
|
|
878
|
-
}
|
|
879
|
-
}, [D]);
|
|
880
|
-
const [Q, H] = ae(null);
|
|
881
|
-
G(() => {
|
|
882
|
-
if (!A || !S) return;
|
|
883
|
-
A.clear();
|
|
884
|
-
const p = S?.workbook?.getTransactions();
|
|
885
|
-
return p ? p.addListener({ onCommitEnd: (v) => {
|
|
886
|
-
v.getDescription() ? A.addUndoOperation({ description: v.getDescription(), undo: () => (p.revert(v.getId()), Q.source?.focus(), () => {
|
|
887
|
-
p.restore(v.getId()), Q.source?.focus();
|
|
888
|
-
}) }) : console.warn("commit has no description", v);
|
|
889
|
-
} }) : void 0;
|
|
890
|
-
}, [A, S, Q]);
|
|
891
|
-
const C = ie((p) => {
|
|
892
|
-
p ? A.setRepeatableOperation({ description: p.label(), repeat: async () => p.execute() }) : A.setRepeatableOperation(null);
|
|
893
|
-
}, [A]), [W, V] = ae(d ?? w?.title ?? "");
|
|
894
|
-
G(() => {
|
|
895
|
-
V(d ?? w?.title ?? "");
|
|
896
|
-
}, [d ?? w?.title]), G(() => {
|
|
897
|
-
q?.(W);
|
|
898
|
-
}, [W]);
|
|
899
|
-
const [re, me] = ae(null), ue = te(() => {
|
|
900
|
-
const p = () => ({ contains: (v) => !0, focus() {
|
|
901
|
-
} });
|
|
902
|
-
return h ? h.createChildGroup(p, "application", !1) : new Jt(p, "application");
|
|
903
|
-
}, [h]), Ye = ie((p) => {
|
|
904
|
-
me(p.source.getViewportElement()), H(p), ue.activate("sheet"), a?.(p);
|
|
905
|
-
}, [ue]);
|
|
906
|
-
G(() => {
|
|
907
|
-
Q && x && Q.source?.focus(typeof x == "object" ? x : void 0);
|
|
908
|
-
}, [Q]);
|
|
909
|
-
const De = le(null), U = ne((p) => {
|
|
910
|
-
let v = null;
|
|
911
|
-
return w?.hidden || (v = g(Nn, { ...w, style: { maxWidth: "100%", ...w?.style }, workbook: M.current, ref: De, title: W, placeHolder: N, onTitleChange: ($) => {
|
|
912
|
-
V($);
|
|
913
|
-
} })), g(gn, { ...p, logo: y, mainElement: v, showFileMenu: !b, showAppearanceMenu: !!(I?.onForceLightGridChange || I?.onForceLightImagesChange || I?.onForceModeChange) });
|
|
914
|
-
}, [y, W, w, I, b, ue]);
|
|
915
|
-
G(() => {
|
|
916
|
-
const p = (v) => v.preventDefault();
|
|
917
|
-
return M.current?.addEventListener("wheel", p, { passive: !1 }), () => {
|
|
918
|
-
M.current?.removeEventListener("wheel", p);
|
|
919
|
-
};
|
|
920
|
-
}, []);
|
|
921
|
-
const ke = te(() => g(Qt, { transparentBackground: !0, sx: t, style: n }), [t, n]), Z = ne(({ error: p }) => (i?.(p), g(s, { sx: t, style: n, error: p ?? "Unable to display empty workbook." })), [t, n, i]), Te = te(() => ({ ...t, "& .SnackbarContainer-root": { position: "absolute !important" }, "& .notistack-Snackbar": { minWidth: "unset" }, "& .notistack-MuiContent *": { fontFamily: (p) => p.typography.fontFamily }, "& #notistack-snackbar": { maxWidth: "560px", whiteSpace: "pre-wrap" }, "*": { userSelect: "none" } }), [t]), et = Yt([M, o]), F = te(() => {
|
|
922
|
-
if (!S) return ke;
|
|
923
|
-
if (S.error || !S.workbook) return Z({ error: S.error });
|
|
924
|
-
let p = null, v = null, $ = !1;
|
|
925
|
-
return I && (p = oe ? I.dark : I.light, v = oe && !I.forceLightGrid ? I.dark : I.light, $ = I.forceLightImages), g(An, { sx: Te, style: n, tabIndex: 0, autoFocus: !0, workbook: S.workbook, ref: et, renderToolbar: U, onElementLoad: Ye, onRepeatCommandChange: C, onKeyDown: (Y) => {
|
|
926
|
-
c?.(Y);
|
|
927
|
-
}, gridTheme: v, headersTheme: p, forceLightImages: $, className: mt(r, "sheetxl-workbook"), onContextMenu: (Y) => Y.preventDefault(), ...R }, "WorkbookElement");
|
|
928
|
-
}, [S, W, A, ke, I, R, U, Te]);
|
|
929
|
-
let X = g(Fo, { fallbackRender: Z, children: g(Uo, { maxSnack: 3, domRoot: re, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (p, v, $) => {
|
|
930
|
-
M.current?.focus();
|
|
931
|
-
}, Components: { error: hn }, iconVariant: { success: g(Pn, { style: { marginRight: "8px" }, children: g("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" }) }), error: g(In, { style: { marginRight: "8px" } }) }, children: g(Rn, { children: g(kn, { workbook: S?.workbook, setWorkbook: B, importExportDisabled: b, titlePlaceHolder: N, titleWorkbook: W, setWorkbookTitle: V, refWorkbookTitle: De, commands: ue, undoManager: A, themeModeOptions: I, children: F }) }) }) });
|
|
932
|
-
return I && (X = se(jn, { theme: oe ? I.dark : I.light, children: [I.cssBaseline ? g(To, {}) : null, X] })), X;
|
|
933
|
-
}));
|
|
934
|
-
bn.displayName = "EagerStandaloneWorkbook";
|
|
935
|
-
const Go = Object.freeze(Object.defineProperty({ __proto__: null, default: bn }, Symbol.toStringTag, { value: "Module" })), er = Object.freeze(Object.defineProperty({ __proto__: null, E: Go, c: ge }, Symbol.toStringTag, { value: "Module" }));
|
|
936
|
-
export {
|
|
937
|
-
er as B,
|
|
938
|
-
ft as C,
|
|
939
|
-
ge as f
|
|
940
|
-
};
|