@sheetxl/react 0.7.3 → 0.7.5
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 +9 -5
- package/browser/cjs/{CJVdXXKt-uarm1id.cjs → BsJnIwNed3pBcnMi.cjs} +1 -1
- package/browser/cjs/{CeXtOKcvqgH36WWM.cjs → CE955M-HEnxcgkwj.cjs} +1 -1
- package/browser/cjs/index.cjs +17 -17
- package/browser/cjs/{4xiDBEuWbGa-zsFY.cjs → qFryYDUi48aWqUKG.cjs} +1 -1
- package/browser/esm/{DwpsWuGKHOzs7ozE.mjs → B2CNLYOjgaXVEinf.mjs} +1 -1
- package/browser/esm/{Iqd5DBSVTJek6bMF.mjs → DXwau-epcLLreIMI.mjs} +1 -1
- package/browser/esm/index.mjs +3750 -3750
- package/browser/esm/{5FRnGJslwlHadomh.mjs → pTOYBvu1_hOPN1vg.mjs} +1 -1
- package/node/esm/{BOQt9_LZGHWr4Wd3.mjs → CrjRKu-E7AruHAfn.mjs} +1 -1
- package/node/esm/index.mjs +1067 -1067
- package/package.json +18 -6
- package/types/index.d.ts +1 -7
package/node/esm/index.mjs
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.5
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
7
|
import { FormulaError as e, NumberFormat as t, ICell as o, IBorder as n, ITextFrame as l, GeomUtils as r, ScalarType as i, IFont as a, IRange as s, LicenseManager as d, IColor as c, AutoFill as g, ISheetView as u, Color as h, IFill as m, RangeClipboardItem as p, ExternalRangeClipboardItem as f, TextUtils as w, IAnchored as q, CoordUtils as v, ThemeCollection as y } from "@sheetxl/sdk";
|
|
8
8
|
import { LicenseManager } from "@sheetxl/sdk";
|
|
9
|
-
import { ReactUtils as C, useImperativeElement as b, useCallbackRef as S, KeyCodes as x, SimpleCommand as k, Command as R, KeyModifiers as M, CommandGroup as T, useCopyPaste as A,
|
|
9
|
+
import { ReactUtils as C, useImperativeElement as b, useCallbackRef as S, KeyCodes as x, SimpleCommand as k, Command as R, KeyModifiers as M, CommandGroup as T, useCopyPaste as A, useNotifier as z, useEditMode as F, useGlobalClipboard as E, NotifierType as D, useCommands as I, ScrollbarOrientation as N, VirtualScrollbar as V, MouseButtonCodes as L, ToolTipPlacement as H, HorizontalAlignment as B, ScrollPane as O, useFullscreenPortal as P, defaultCreateScrollStartButton as $, defaultCreateScrollEndButton as W, defaultCreateScrollEdgeButton as U, ScrollUtils as _ } from "@sheetxl/utils-react";
|
|
10
10
|
export * from "@sheetxl/utils-react";
|
|
11
11
|
import { jsx as G, jsxs as Z, Fragment as j } from "react/jsx-runtime";
|
|
12
|
-
import { CommonUtils as K, AnchorLocation as X, TypesUtils as Y, CoordUtils as J } from "@sheetxl/utils";
|
|
13
|
-
import
|
|
14
|
-
import { STANDARD_KEY_CHARS as
|
|
15
|
-
import { mergeRefs as
|
|
16
|
-
import { useMeasure as
|
|
17
|
-
import
|
|
18
|
-
import { unstable_batchedUpdates as
|
|
19
|
-
import { useForkRef as
|
|
20
|
-
import { sortableKeyboardCoordinates as
|
|
12
|
+
import { CommonUtils as K, AnchorLocation as X, TypesUtils as Y, CoordUtils as J, Notifier as Q } from "@sheetxl/utils";
|
|
13
|
+
import ee, { memo as te, useMemo as oe, useState as ne, forwardRef as le, useRef as re, useEffect as ie, useLayoutEffect as ae, useCallback as se, useReducer as de, Suspense as ce, createElement as ge, useImperativeHandle as ue, createContext as he, useContext as me } from "react";
|
|
14
|
+
import { STANDARD_KEY_CHARS as pe, useSelection as fe, useHeaderSelection as we, HeaderRenderer as qe, Grid as ve, HeaderDivider as ye, SELECTION_CLIP_INSETS as Ce, defaultSelectionRenderer as be, useKeyboardEditorOverlay as Se, Selection as xe, SVGLine as ke } from "@sheetxl/grid-react";
|
|
15
|
+
import { mergeRefs as Re } from "react-merge-refs";
|
|
16
|
+
import { useMeasure as Me } from "react-use";
|
|
17
|
+
import Te from "clsx";
|
|
18
|
+
import { unstable_batchedUpdates as Ae, createPortal as ze } from "react-dom";
|
|
19
|
+
import { useForkRef as Fe } from "rooks";
|
|
20
|
+
import { sortableKeyboardCoordinates as Ee, arrayMove as De, rectSortingStrategy as Ie, SortableContext as Ne, useSortable as Ve, horizontalListSortingStrategy as Le } from "@dnd-kit/sortable";
|
|
21
21
|
import { restrictToHorizontalAxis as He } from "@dnd-kit/modifiers";
|
|
22
|
-
import { closestCenter as
|
|
23
|
-
const
|
|
22
|
+
import { closestCenter as Be, defaultDropAnimation as Oe, useSensors as Pe, useSensor as $e, MouseSensor as We, TouchSensor as Ue, KeyboardSensor as _e, DndContext as Ge, DragOverlay as Ze } from "@dnd-kit/core";
|
|
23
|
+
const je = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Ke = Object.freeze(Object.defineProperty({ __proto__: null, nowWithPrecision: je }, Symbol.toStringTag, { value: "Module" })), Xe = Object.freeze([8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 36, 48, 72]), Ye = (e2, t2 = true, o2 = Xe) => {
|
|
24
24
|
if (!o2 || 0 === o2.length) return e2;
|
|
25
25
|
if (void 0 === e2) return o2[0];
|
|
26
26
|
if (t2 && e2 >= o2[o2.length - 1]) return e2;
|
|
27
27
|
if (!t2 && e2 <= o2[0]) return e2;
|
|
28
28
|
let n2 = K.findEqualOrGreater(o2, e2);
|
|
29
29
|
return t2 ? (o2[n2] === e2 && (n2 += 1), o2[n2] || (n2 -= 1), o2[n2]) : (n2 -= 1, o2[n2]);
|
|
30
|
-
},
|
|
30
|
+
}, Je = Object.freeze(Object.defineProperty({ __proto__: null, DefaultFontSizes: Xe, findNextFontSize: Ye }, Symbol.toStringTag, { value: "Module" })), Qe = te((e2) => {
|
|
31
31
|
const { anchorLocation: t2 = X.TopLeft, cellWidth: o2, cellHeight: n2, size: l2 = 7, inset: r2 = 1, darkMode: i2, fill: a2, pathProps: s2, style: d2, ...c2 } = e2, g2 = l2, u2 = r2;
|
|
32
32
|
let h2 = "red", m2 = [], p2 = [];
|
|
33
33
|
return t2 === X.TopLeft ? (h2 = i2 ? "rgb(255, 198, 246)" : "green", m2.push(u2), p2.push(u2), m2.push(u2 + g2), p2.push(u2), m2.push(u2), p2.push(u2 + g2)) : t2 === X.TopRight ? (h2 = i2 ? "rgb(0, 255, 255)" : "red", m2.push(o2 - u2), p2.push(u2), m2.push(o2 - (u2 + g2)), p2.push(u2), m2.push(o2 - u2), p2.push(u2 + g2)) : t2 === X.BottomRight ? (h2 = i2 ? "rgb(236, 252, 211)" : "purple", m2.push(o2 - u2), p2.push(n2 - u2), m2.push(o2 - (u2 + g2)), p2.push(n2 - u2), m2.push(o2 - u2), p2.push(n2 - (u2 + g2))) : t2 === X.BottomLeft && (h2 = i2 ? "rgb(255, 236, 183)" : "blue", m2.push(u2), p2.push(n2 - u2), m2.push(u2 + g2), p2.push(n2 - u2), m2.push(u2), p2.push(n2 - (u2 + g2))), G("svg", { width: `${o2}`, height: `${n2}`, viewBox: `0 0 ${o2} ${n2}`, style: { position: "absolute", width: `${o2}px`, height: `${n2}px`, pointerEvents: "none", ...d2 }, ...c2, children: G("path", { d: `M ${m2[0]} ${p2[0]} L ${m2[1]} ${p2[1]} L ${m2[2]} ${p2[2]} L ${m2[0]} ${p2[0]} Z`, fill: a2 ?? h2, ...s2 }) });
|
|
34
|
-
}),
|
|
35
|
-
const { renderBounds: t2, darkMode: o2, zoom: n2, disabled: l2, filter: r2, onFilterButtonMouseDown: i2, style: a2, ...s2 } = e2, d2 =
|
|
34
|
+
}), et = (e2) => {
|
|
35
|
+
const { renderBounds: t2, darkMode: o2, zoom: n2, disabled: l2, filter: r2, onFilterButtonMouseDown: i2, style: a2, ...s2 } = e2, d2 = oe(() => {
|
|
36
36
|
let e3 = null;
|
|
37
37
|
const t3 = r2.getSortField();
|
|
38
38
|
t3 && (e3 = t3.reverse);
|
|
39
39
|
const o3 = r2.getField(), n3 = o3 && o3.criteria && o3.criteria.length > 0;
|
|
40
40
|
return true === e3 ? n3 ? "m 9.429858,10.25386 2,-1 v -3 l 3,-4 h -8 l 3,4 z M 5.849492,9.452298 H 4.24187 V 2.0761788 H 3.170122 V 9.452298 H 1.5625 l 2.143496,2.950446 z" : "m 13.109228,9.865914 h -1.607622 v -7.37612 h -1.071748 v 7.37612 H 8.822236 l 2.143496,2.950446 z M 0.75000004,9.15 4.3000002,13.094444 7.8500003,9.15 Z" : false === e3 ? n3 ? "m 9.429858,10.25386 2,-1 v -3 l 3,-4 h -8 l 3,4 z M 5.849492,5.0266248 H 4.24187 V 12.402744 H 3.170122 V 5.0266248 H 1.5625 l 2.143496,-2.950446 z" : "m 13.109228,5.44024 h -1.607622 v 7.37612 H 10.429858 V 5.44024 H 8.822236 L 10.965732,2.489794 Z M 0.75000004,9.15 4.3000002,13.094444 7.8500003,9.15 Z" : n3 ? "m 9.429858,10.25386 2,-1 v -3 l 3,-4 h -8 l 3,4 z M 0.75000004,9.15 4.3000002,13.094444 7.8500003,9.15 Z" : "M 7.4533523,10.606423 2.2001838,4.9460198 2.966932,4.1188401 7.4533523,8.9589099 11.933438,4.1188401 12.700184,4.9460198";
|
|
41
|
-
}, [r2]), [c2, g2] =
|
|
41
|
+
}, [r2]), [c2, g2] = ne(false);
|
|
42
42
|
const u2 = Math.min(Math.min(18, t2.height - 8), t2.width);
|
|
43
43
|
return G("div", { style: { width: `${u2}px`, height: `${u2}px`, right: "0px", boxShadow: `0px 0px 0px 0.5px var(${c2 && !l2 ? "--sxl-app-color-primary-light, rgba(0,0,0,.55)" : "--sxl-app-color-border-button, grey"})`, backgroundColor: "var(--sxl-app-color-button-fill, white)", backgroundImage: "var(--sxl-app-image-background)", borderRadius: (u2 > 12 ? 1 : 0) + "px", marginRight: "2px", display: "flex", alignItems: "center", justifyContent: "center", cursor: l2 ? void 0 : "pointer", ...a2 }, onMouseEnter: () => g2(true), onMouseLeave: () => g2(false), onMouseDown: (e3) => {
|
|
44
44
|
i2?.(e3, r2), e3.preventDefault();
|
|
45
45
|
}, ...s2, children: G("svg", { width: "" + 15 * n2, height: "" + 15 * n2, viewBox: "0 0 15 15", style: { fill: `var(${c2 && !l2 ? "--sxl-app-color-primary-dark" : "--sxl-app-color-button-text"}, grey)`, opacity: l2 ? 0.6 : 1 }, children: G("path", { d: d2 }) }) });
|
|
46
|
-
},
|
|
47
|
-
const { value: d2, coords: c2, bounds: g2, children: u2, style: h2, range: m2, zoom: p2 = 1, view: f2, bodyStyle: w2, normalStyle: q2, showFormulas: v2, showZeros: y2, docTheme: b2, onLinkMouseDown: S2, onFilterButtonMouseDown: x2, filterButtonProps: k2, createFilterButton: R2 =
|
|
46
|
+
}, tt = (s2) => {
|
|
47
|
+
const { value: d2, coords: c2, bounds: g2, children: u2, style: h2, range: m2, zoom: p2 = 1, view: f2, bodyStyle: w2, normalStyle: q2, showFormulas: v2, showZeros: y2, docTheme: b2, onLinkMouseDown: S2, onFilterButtonMouseDown: x2, filterButtonProps: k2, createFilterButton: R2 = et, ...M2 } = s2, T2 = g2.height / p2, A2 = g2.width / p2, z2 = d2, F2 = z2.getValue(), E2 = d2.getStyle(), D2 = w2?.darkMode ?? false;
|
|
48
48
|
let I2, N2;
|
|
49
|
-
const V2 = F2 && F2.isFormulaError,
|
|
50
|
-
let
|
|
49
|
+
const V2 = F2 && F2.isFormulaError, L2 = V2 && F2 instanceof e.Parse;
|
|
50
|
+
let H2, B2 = v2 || L2;
|
|
51
51
|
if (B2) if (z2.isSpillOverflow()) N2 = "";
|
|
52
52
|
else {
|
|
53
53
|
const e2 = z2.getFormulaText();
|
|
54
54
|
e2 ? N2 = e2 : I2 = z2.getNumberFormat(t.Type.General);
|
|
55
55
|
}
|
|
56
56
|
else I2 = z2.getNumberFormat();
|
|
57
|
-
B2 || (
|
|
58
|
-
const O2 =
|
|
57
|
+
B2 || (H2 = z2.getTextOverflow());
|
|
58
|
+
const O2 = H2 ? H2.colBounds.width + H2.leftOffset + H2.rightOffset : A2, P2 = H2 ? H2.anchorBounds.x - H2.leftOffset : 0, $2 = H2 ? H2.anchorBounds.width : A2, W2 = H2 ? H2.anchorBounds.x : 0;
|
|
59
59
|
let U2, _2 = z2.getRenderHorizontalAlignment();
|
|
60
60
|
I2 && (U2 = I2?.formattedRuns, N2 = U2?.runs[0]?.text ?? I2.displayText);
|
|
61
61
|
const j2 = z2.getCalcStatus() === o.CalcStatus.Pending;
|
|
@@ -75,7 +75,7 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
75
75
|
const ne2 = z2.getComments(), le2 = z2.getWarnings(), re2 = z2.getErrors();
|
|
76
76
|
if (ne2 || V2 || re2.length > 0 || le2.length > 0) {
|
|
77
77
|
const e2 = { size: 7 * p2, darkMode: D2, cellWidth: $2 * p2 + 2, cellHeight: T2 * p2 + 2, style: { top: -1, left: W2 * p2 - 1 } };
|
|
78
|
-
oe2 = oe2 ?? [], (le2.length > 0 || re2.length > 0 || V2) && oe2.push(G(
|
|
78
|
+
oe2 = oe2 ?? [], (le2.length > 0 || re2.length > 0 || V2) && oe2.push(G(Qe, { anchorLocation: X.TopLeft, ...e2 }, `indicator-${oe2.length}`)), ne2 && oe2.push(G(Qe, { anchorLocation: X.TopRight, ...e2 }, `indicator-${oe2.length}`));
|
|
79
79
|
}
|
|
80
80
|
const ie2 = E2.getFont();
|
|
81
81
|
let ae2 = I2?.conditionalColor;
|
|
@@ -84,9 +84,9 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
84
84
|
const fe2 = { ...h2, left: h2.left - 1, top: h2.top - 1, width: h2.width + 1 + Q2, height: h2.height + 1 + ee2 }, we2 = z2.getColumnFilter(), qe2 = we2 && !we2?.hasHiddenButton();
|
|
85
85
|
let ve2 = null;
|
|
86
86
|
j2 && (ve2 = Z("div", { className: "slider", children: [G("div", { className: "line" }), G("div", { className: "subline inc" })] }, "pending"));
|
|
87
|
-
const ye2 = !(j2 || qe2 || te2 || u2 || oe2 || U2?.runs.length > 1 ||
|
|
87
|
+
const ye2 = !(j2 || qe2 || te2 || u2 || oe2 || U2?.runs.length > 1 || H2 || ge2 % 360 != 0);
|
|
88
88
|
"none" === J2?.background && (J2 = null);
|
|
89
|
-
let Ce2 = ce2 || !(!
|
|
89
|
+
let Ce2 = ce2 || !(!H2 || !(H2.rightIndex > 0 || H2.leftIndex > 0 || H2.colSpan > 1));
|
|
90
90
|
if (!Ce2) {
|
|
91
91
|
const e2 = z2.getSpans();
|
|
92
92
|
(e2.width > 1 || e2.height > 1) && (Ce2 = true);
|
|
@@ -157,7 +157,7 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
157
157
|
const q3 = ye2 ? { ...M2 } : void 0, v3 = { style: { left: h2.left - 1, top: h2.top - 1, width: h2.width + 1, height: h2.height + 1, transform: ge2 ? `rotate(${ge2}deg)` : void 0, cursor: S2 ? "pointer" : void 0, pointerEvents: S2 ? "auto" : void 0, zIndex: Ce2 ? 1 : void 0, ...J2 }, onMouseDown: S2, onDoubleClick: S2 ? (e3) => {
|
|
158
158
|
e3.stopPropagation(), e3.preventDefault();
|
|
159
159
|
} : null, ...q3 };
|
|
160
|
-
|
|
160
|
+
L2 && (v3.style.textDecorationStyle = "wavy", v3.style.textDecorationColor = D2 ? "rgb(0, 255, 255)" : "red", v3.style.textDecorationLine = "underline");
|
|
161
161
|
const y3 = ie2.getSize(), C2 = (i2, s4, g4, u4, h3, m4, f4, w4 = null) => {
|
|
162
162
|
let q4 = y3 * p2, v4 = g4, C3 = f4?.runs ? f4.runs : [{ type: t.ParseRunType.Text, text: i2, width: E2.measureText(i2, q4).width }];
|
|
163
163
|
f4 && f4?.width !== o2.width && (o2 = { ...o2, width: f4?.width });
|
|
@@ -251,23 +251,23 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
251
251
|
j2 && !Y2 && (Y2 = G("div", { style: { position: "absolute", left: 0, right: 0, top: 0, bottom: 0, display: "flex", alignItems: "center", justifyContent: "center", pointerEvents: "none" }, children: "..." }, "pending-ellipsis"));
|
|
252
252
|
const ke2 = [te2, Y2, u2, oe2, ve2, xe2];
|
|
253
253
|
return G("div", { style: { ...J2, ...fe2, pointerEvents: Se2 }, ...M2, children: ke2 });
|
|
254
|
-
},
|
|
254
|
+
}, ot = { text: "", placeholder: "" }, nt = (e2, t2) => {
|
|
255
255
|
if (-1 === e2.clean().getStyle().getNumberFormat().indexOf("%")) return false;
|
|
256
256
|
const o2 = t2 ?? e2.dirty ?? "";
|
|
257
257
|
return 0 === o2.length || o2.endsWith("%") && !isNaN(parseFloat(o2.substring(0, o2.length - 1)));
|
|
258
|
-
},
|
|
259
|
-
const { editState: o2, onStartEdit: n2, onChangeEdit: r2, onSubmitEdit: d2, onCancelEdit: c2, onDoneEdit: g2, defaultTextStyle: u2, useRichStyling: h2 = true, bodyStyle: m2, activeCoords: p2, sheet: f2, commands: w2, containerBounds: q2, setNaturalDimensions: v2, onFocus: y2, disabled: C2, style: z2, zoom: F2 = 1, linesVisible: E2, autoFocus: D2 = false, ...I2 } = e2, { height: N2 = 0, width: V2 = 0 } = q2 ?? {},
|
|
260
|
-
|
|
261
|
-
|
|
258
|
+
}, lt = Object.freeze([x.Delete, x.Home, x.End]), rt = te(le((e2, t2) => {
|
|
259
|
+
const { editState: o2, onStartEdit: n2, onChangeEdit: r2, onSubmitEdit: d2, onCancelEdit: c2, onDoneEdit: g2, defaultTextStyle: u2, useRichStyling: h2 = true, bodyStyle: m2, activeCoords: p2, sheet: f2, commands: w2, containerBounds: q2, setNaturalDimensions: v2, onFocus: y2, disabled: C2, style: z2, zoom: F2 = 1, linesVisible: E2, autoFocus: D2 = false, ...I2 } = e2, { height: N2 = 0, width: V2 = 0 } = q2 ?? {}, L2 = m2?.darkMode ?? false, H2 = re(null), [B2, O2] = ne(false), [P2, $2] = ne(null), [W2, U2] = ne(() => o2);
|
|
260
|
+
ie(() => {
|
|
261
|
+
te2.current = false, U2(o2);
|
|
262
262
|
}, [o2]);
|
|
263
|
-
const _2 =
|
|
263
|
+
const _2 = oe(() => {
|
|
264
264
|
const e3 = W2.clean();
|
|
265
265
|
let t3 = e3.getStyle();
|
|
266
266
|
h2 || (t3 = t3.createTemporaryStyle({ font: { size: u2?.fontSize } }));
|
|
267
267
|
const o3 = e3.getFormula(), n3 = t3.getAlignment(), r3 = o3 ? l.HorizontalAlignment.Left : n3.getHorizontal(), a2 = n3.getVertical(), s2 = n3.getOverflow() === l.Overflow.Wrap || e3.getType() === i.String && (r3 === l.HorizontalAlignment.Justify || r3 === l.HorizontalAlignment.Distributed || a2 === l.VerticalAlignment.Justify || a2 === l.VerticalAlignment.Distributed), d3 = ((e4) => {
|
|
268
|
-
if (!e4) return
|
|
268
|
+
if (!e4) return ot;
|
|
269
269
|
const t4 = e4.clean();
|
|
270
|
-
if (!t4) return
|
|
270
|
+
if (!t4) return ot;
|
|
271
271
|
let o4 = t4.getStyle()?.getQuotePrefix();
|
|
272
272
|
if (void 0 === e4.dirty || null === e4.dirty) {
|
|
273
273
|
let n4 = "", l2 = t4.getFormulaText();
|
|
@@ -285,29 +285,29 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
285
285
|
return { text: e4.dirty ?? "", placeholder: "" };
|
|
286
286
|
})(W2), c3 = d3.text, g3 = l.toCSSHorizontalTextAlign(h2 && !o3 ? W2.clean()?.getRenderHorizontalAlignment() : l.HorizontalAlignment.Left);
|
|
287
287
|
return { style: t3, isWrapped: s2, textValue: c3, formula: o3, frameVertAlign: a2, placeholder: d3.placeholder, insets: h2 ? e3.getInsets() : Y.EmptyRect, textAlign: g3 };
|
|
288
|
-
}, [W2, u2,
|
|
289
|
-
|
|
288
|
+
}, [W2, u2, L2, F2, h2]), Z2 = re(null), j2 = b(t2, () => ({ startEdit: (e3) => {
|
|
289
|
+
H2.current = e3?.initialSelection;
|
|
290
290
|
const t3 = { ...o2, editMode: e3?.editMode ?? false };
|
|
291
291
|
void 0 !== e3?.text && (t3.dirty = e3.text), t3.editMode === o2.editMode && t3.dirty === o2.dirty || (U2(t3), J2?.(t3));
|
|
292
|
-
}, submitEdit: () =>
|
|
292
|
+
}, submitEdit: () => le2(), cancelEdit() {
|
|
293
293
|
de2();
|
|
294
294
|
}, autoFocus() {
|
|
295
295
|
Z2.current.focus();
|
|
296
296
|
}, dispatchEvent: (e3) => Z2.current.dispatchEvent(e3), focus() {
|
|
297
297
|
Z2.current.focus();
|
|
298
298
|
}, getLineHeight: X2 }), [n2, o2]);
|
|
299
|
-
|
|
299
|
+
ae(() => {
|
|
300
300
|
if (!P2 || !B2) return;
|
|
301
301
|
const e3 = Z2.current;
|
|
302
302
|
_2.textValue, e3 && e3.setSelectionRange(P2.start, P2.end, P2.direction);
|
|
303
303
|
}, [Z2.current, P2, _2.textValue]);
|
|
304
|
-
const K2 =
|
|
304
|
+
const K2 = oe(() => {
|
|
305
305
|
const e3 = W2?.clean(), t3 = _2.style.createTemporaryTextFrame(_2.textValue, e3?.getType() === i.String), o3 = h2 ? e3.getInsets().right + e3.getInsets().left : 0;
|
|
306
306
|
let n3 = null;
|
|
307
307
|
_2.isWrapped && (n3 = { width: V2 - o3 });
|
|
308
308
|
return t3.layout(n3);
|
|
309
309
|
}, [_2, V2, W2, h2]), X2 = S(() => Math.ceil(K2?.lines[0]?.bounds.height), [K2]);
|
|
310
|
-
|
|
310
|
+
ae(() => {
|
|
311
311
|
if (!K2) return;
|
|
312
312
|
const e3 = _2.style, t3 = e3.getInsets() ?? Y.EmptyRect, o3 = h2 ? t3.left + t3.right : 0, n3 = h2 ? 0.04 * e3.getFont().getSize() : 1, l2 = Math.round(_2.isWrapped ? void 0 : K2.bounds.width + o3 + n3), r3 = Math.round(K2.bounds.height);
|
|
313
313
|
v2?.({ width: l2, height: r3 });
|
|
@@ -320,22 +320,22 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
320
320
|
if (W2.editMode === e3) return;
|
|
321
321
|
const t3 = { ...W2 };
|
|
322
322
|
t3.editMode = e3, U2(t3), J2?.(t3);
|
|
323
|
-
}, [W2]),
|
|
324
|
-
if (
|
|
323
|
+
}, [W2]), te2 = re(false), le2 = S(() => {
|
|
324
|
+
if (te2.current) return false;
|
|
325
325
|
try {
|
|
326
|
-
d2?.(W2), g2?.(),
|
|
326
|
+
d2?.(W2), g2?.(), te2.current = true;
|
|
327
327
|
} catch (e3) {
|
|
328
328
|
return false;
|
|
329
329
|
}
|
|
330
330
|
return true;
|
|
331
331
|
}, [d2, W2]), de2 = S(() => {
|
|
332
|
-
|
|
332
|
+
te2.current = true, U2(o2), c2?.(), g2?.();
|
|
333
333
|
}, [c2, o2]), ce2 = S((e3) => {
|
|
334
334
|
if (!Z2.current) return;
|
|
335
|
-
if (e3.key, e3.isDefaultPrevented(), !(e3.isTrusted || e3.nativeEvent.ctrlKey || e3.nativeEvent.metaKey || e3.nativeEvent.altKey || e3.nativeEvent.isComposing || -1 ===
|
|
335
|
+
if (e3.key, e3.isDefaultPrevented(), !(e3.isTrusted || e3.nativeEvent.ctrlKey || e3.nativeEvent.metaKey || e3.nativeEvent.altKey || e3.nativeEvent.isComposing || -1 === pe.indexOf(e3.nativeEvent.key) && "Backspace" !== e3.nativeEvent.key)) {
|
|
336
336
|
const t4 = { ...W2 };
|
|
337
337
|
let o4 = 0;
|
|
338
|
-
return
|
|
338
|
+
return nt(t4, t4.dirty) && !isNaN(parseFloat(e3.key)) ? (t4.dirty?.endsWith("%") ? t4.dirty = (t4.dirty.substring(0, t4.dirty.length - 1) ?? "") + e3.key + "%" : t4.dirty = (t4.dirty ?? "") + e3.key + "%", o4 = t4.dirty.length - 1) : "Backspace" === e3.nativeEvent.key ? (t4.dirty = "", o4 = t4.dirty.length) : (t4.dirty = (t4.dirty ?? "") + e3.key, o4 = t4.dirty.length), Z2.current.value = t4?.dirty, H2.current = { start: o4, end: o4, direction: "forward" }, Z2.current?.setSelectionRange(o4, o4, "forward"), U2(t4), J2?.(t4), void e3.preventDefault();
|
|
339
339
|
}
|
|
340
340
|
const t3 = e3.nativeEvent.ctrlKey, o3 = e3.nativeEvent.shiftKey, n3 = e3.nativeEvent.altKey, l2 = e3.nativeEvent.metaKey;
|
|
341
341
|
if (t3 && "z" === e3.key && e3.stopPropagation(), e3.which === x.Escape) return e3.preventDefault(), void de2();
|
|
@@ -347,9 +347,9 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
347
347
|
const e4 = _2.textValue.substring(0, r3.selectionStart) + "\n" + _2.textValue.substring(r3.selectionEnd);
|
|
348
348
|
return Q2(e4), void $2({ start: r3.selectionStart + 1, end: r3.selectionStart + 1, direction: r3.selectionDirection });
|
|
349
349
|
}
|
|
350
|
-
return void (
|
|
350
|
+
return void (le2() && f2.getSelection().traverse(s.Orientation.Column, o3));
|
|
351
351
|
}
|
|
352
|
-
if (e3.which === x.Tab) return e3.preventDefault(), void (
|
|
352
|
+
if (e3.which === x.Tab) return e3.preventDefault(), void (le2() && f2.getSelection().traverse(s.Orientation.Row, o3));
|
|
353
353
|
let i2 = null;
|
|
354
354
|
switch (e3.which) {
|
|
355
355
|
case x.Left:
|
|
@@ -365,14 +365,14 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
365
365
|
i2 = s.Direction.Down;
|
|
366
366
|
}
|
|
367
367
|
if (i2) {
|
|
368
|
-
if (!(t3 || o3 || n3 || l2) && !W2.editMode) return void
|
|
368
|
+
if (!(t3 || o3 || n3 || l2) && !W2.editMode) return void le2();
|
|
369
369
|
}
|
|
370
|
-
W2.editMode && (i2 ||
|
|
371
|
-
}, [W2, f2, _2]), ge2 =
|
|
370
|
+
W2.editMode && (i2 || lt.includes(e3.which)) && e3.stopPropagation();
|
|
371
|
+
}, [W2, f2, _2]), ge2 = se(() => {
|
|
372
372
|
Z2.current?.focus(), setTimeout(() => {
|
|
373
373
|
Z2.current?.select();
|
|
374
374
|
}, 0);
|
|
375
|
-
}, []), ue2 =
|
|
375
|
+
}, []), ue2 = se(() => {
|
|
376
376
|
Z2.current?.focus(), console.log("implement toggleRelativeReferences");
|
|
377
377
|
}, []), he2 = S(() => {
|
|
378
378
|
const e3 = Z2.current?.value;
|
|
@@ -383,49 +383,49 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
383
383
|
}
|
|
384
384
|
Q2(e3 + t3);
|
|
385
385
|
}, [p2, f2]);
|
|
386
|
-
|
|
386
|
+
ie(() => f2.getRange(p2).addListener(() => {
|
|
387
387
|
const e3 = { ...W2, clean: () => f2.getRange(p2).getCell() };
|
|
388
388
|
U2(e3), J2?.(e3);
|
|
389
389
|
}), [p2, f2, W2]);
|
|
390
|
-
const
|
|
391
|
-
const e3 = W2.clean().createTemporaryCell({ value:
|
|
390
|
+
const me2 = se(() => {
|
|
391
|
+
const e3 = W2.clean().createTemporaryCell({ value: je(), style: { numberFormat: "Medium Time" } }).toText();
|
|
392
392
|
Q2((Z2.current?.value ?? "") + e3);
|
|
393
|
-
}, [f2]), fe2 =
|
|
394
|
-
const e3 = W2.clean().createTemporaryCell({ value:
|
|
393
|
+
}, [f2]), fe2 = se(() => {
|
|
394
|
+
const e3 = W2.clean().createTemporaryCell({ value: je(), style: { numberFormat: "Short Date" } }).toText();
|
|
395
395
|
Q2((Z2.current?.value ?? "") + e3);
|
|
396
|
-
}, [f2]), we2 =
|
|
396
|
+
}, [f2]), we2 = oe(() => ({ element: () => Z2.current, doCopy: (e3) => {
|
|
397
397
|
const t3 = Z2.current.value.substring(Z2.current.selectionStart, Z2.current.selectionEnd);
|
|
398
398
|
if (e3?.isCut) {
|
|
399
399
|
const e4 = Z2.current.value.substring(0, Z2.current.selectionStart) + Z2.current.value.substring(Z2.current.selectionEnd, Z2.current.value.length);
|
|
400
400
|
Q2(e4);
|
|
401
401
|
}
|
|
402
402
|
return t3;
|
|
403
|
-
} }), [Z2.current]), qe2 =
|
|
403
|
+
} }), [Z2.current]), qe2 = oe(() => ({ element: () => Z2.current, doPaste: async (e3, t3) => {
|
|
404
404
|
const o3 = await e3.toText?.();
|
|
405
405
|
if (!o3) return true;
|
|
406
406
|
const n3 = Z2.current.value.substring(0, Z2.current.selectionStart) + o3 + Z2.current.value.substring(Z2.current.selectionEnd, Z2.current.value.length);
|
|
407
407
|
return Q2(n3), $2({ start: Z2.current.selectionStart + o3.length, end: Z2.current.selectionStart + o3.length, direction: "forward" }), true;
|
|
408
|
-
} }), [Z2.current]), ve2 =
|
|
408
|
+
} }), [Z2.current]), ve2 = oe(() => ({ contains: (e3) => Z2.current?.contains(e3) || false, focus() {
|
|
409
409
|
Z2.current.focus();
|
|
410
|
-
} }), []), ye2 =
|
|
410
|
+
} }), []), ye2 = oe(() => [new k("selectAll", ve2, { label: "Select All", description: "Select all of the text in cell.", shortcut: { key: "a", modifiers: [M.Ctrl] } }, ge2), new k("startEditValueAbove", ve2, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: '"', modifiers: [M.Ctrl] }, { key: '"', modifiers: [M.Ctrl, M.Shift] }] }, he2), new k("startEditCurrentTime", ve2, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [M.Ctrl, M.Shift] } }, me2), new k("startEditCurrentDate", ve2, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [M.Ctrl] } }, fe2), new R("relativeReferencesToggle", ve2, { label: "Toggle References", description: "Toggles cell references from relative to absolute, to partially absolute, back to relative again.", shortcut: { key: "F4" } }, ue2), new R("toggleEditorFocus", ve2, { label: "Toggle Editor Focus", description: "Moves focus between editors such as formula editor and inline editor.", shortcut: { key: "F2", modifiers: [M.Ctrl] } })], []), Ce2 = oe(() => {
|
|
411
411
|
let e3 = null;
|
|
412
412
|
const t3 = () => ({ contains: (e4) => Z2.current?.contains(e4) || false, focus() {
|
|
413
413
|
Z2.current.focus();
|
|
414
414
|
} });
|
|
415
415
|
return e3 = w2 ? w2.createChildGroup(t3, "editor", false) : new T(t3, "editor"), e3.addCommands(ye2, true), e3;
|
|
416
|
-
}, [w2, ye2]), be2 =
|
|
416
|
+
}, [w2, ye2]), be2 = oe(() => ({ notifier: null, source: we2, target: qe2, commands: Ce2 }), [we2, qe2, Ce2]);
|
|
417
417
|
A(be2);
|
|
418
|
-
const [Se2, xe2] =
|
|
419
|
-
|
|
418
|
+
const [Se2, xe2] = ne(!D2);
|
|
419
|
+
ie(() => {
|
|
420
420
|
xe2(false);
|
|
421
421
|
}, []);
|
|
422
422
|
const ke2 = S((e3) => {
|
|
423
423
|
O2(true), Ce2?.activate();
|
|
424
|
-
const t3 =
|
|
424
|
+
const t3 = H2.current;
|
|
425
425
|
if (false !== t3) {
|
|
426
426
|
let e4, o3;
|
|
427
427
|
const n3 = Z2.current.value;
|
|
428
|
-
|
|
428
|
+
nt(W2, n3) && (e4 = n3.length - 1, o3 = n3.length - 1), e4 = t3?.start ?? e4 ?? n3.length, o3 = t3?.end ?? o3 ?? n3.length, H2.current = false, $2({ start: e4, end: o3, direction: "forward" });
|
|
429
429
|
}
|
|
430
430
|
y2?.(e3);
|
|
431
431
|
}, [y2, W2]), Re2 = _2.insets;
|
|
@@ -436,7 +436,7 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
436
436
|
const Ee2 = _2.style.getFont();
|
|
437
437
|
let De2 = Ee2.getSize();
|
|
438
438
|
Ee2.isSuperSub() && (De2 *= Ee2.getSuperSubScale()), De2 *= a.getDeviceScale() * F2;
|
|
439
|
-
const Ie2 = h2 ? Ee2.toCSS(
|
|
439
|
+
const Ie2 = h2 ? Ee2.toCSS(L2, F2) : null;
|
|
440
440
|
return G("div", { className: "sheet-cell-editor", onMouseDown: (e3) => {
|
|
441
441
|
Z2.current && document.activeElement !== Z2.current && requestAnimationFrame(() => {
|
|
442
442
|
Z2.current.focus();
|
|
@@ -445,11 +445,11 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
445
445
|
O2(false);
|
|
446
446
|
}, onSelect: (e3) => {
|
|
447
447
|
}, onChange: (e3) => {
|
|
448
|
-
Z2.current && !
|
|
448
|
+
Z2.current && !te2.current && (H2.current = false, Q2(e3.target.value), _2.textValue, e3.target.value, e3.target.selectionStart, e3.target.selectionEnd, e3.target.selectionDirection, $2({ start: e3.target.selectionStart, end: e3.target.selectionEnd, direction: e3.target.selectionDirection }));
|
|
449
449
|
}, onMouseDown: (e3) => {
|
|
450
450
|
B2 && ee2(true);
|
|
451
451
|
}, onKeyDown: ce2 }) }) });
|
|
452
|
-
})),
|
|
452
|
+
})), it = (e2, t2) => ({ clean: e2, dirty: t2, editMode: false }), at = (e2) => {
|
|
453
453
|
const { length: t2 = 0, width: o2 = 1, dashArray: n2 = null, dashArrayAdditional: l2 = null, isDouble: r2 = false, isAngled: i2 = false, offsetX: a2 = 0, offsetY: s2 = 0, isVertical: d2 = false, ...c2 } = e2, g2 = (e3) => {
|
|
454
454
|
let t3 = null;
|
|
455
455
|
if (e3 && o2 > 0) {
|
|
@@ -475,7 +475,7 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
475
475
|
}
|
|
476
476
|
let w2 = null;
|
|
477
477
|
return w2 = d2 ? `M ${C.boundPixel(a2 + m2 / 2)} ${C.boundPixel(s2)} L ${C.boundPixel(a2 + m2 / 2)} ${C.boundPixel(s2 + p2)}` : `M ${C.boundPixel(a2)} ${C.boundPixel(s2 + m2 / 2)} L ${C.boundPixel(a2 + p2)} ${C.boundPixel(s2 + m2 / 2)}`, Z(j, { children: [G("path", { strokeWidth: m2, strokeDasharray: u2, d: w2, ...c2 }), f2] });
|
|
478
|
-
},
|
|
478
|
+
}, st = (e2, t2) => e2.colStart === t2.colStart ? e2.rowStart - t2.rowStart : e2.colStart - t2.colStart, dt = (e2, t2) => e2.rowStart === t2.rowStart ? e2.colStart - t2.colStart : e2.rowStart - t2.rowStart, ct = (e2) => {
|
|
479
479
|
const { key: t2, points: o2, range: l2, stroke: r2, darkMode: i2, forceThinBorder: a2 = false, shiftIfWide: s2 = false, isVertical: d2 = false, intersections: c2, layout: g2 } = e2, u2 = n.BuiltInDefinitions.get(a2 ? n.StrokeStyle.Thin : r2.getStyle());
|
|
480
480
|
if (!u2) return null;
|
|
481
481
|
const h2 = o2[0], m2 = o2[1], p2 = o2[2], f2 = o2[3];
|
|
@@ -510,10 +510,10 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
510
510
|
}
|
|
511
511
|
let R2 = d2 ? -Math.floor(u2.width / 2) : -q2, M2 = d2 ? -q2 : -Math.floor(u2.width / 2);
|
|
512
512
|
const T2 = s2 && u2.width > 2 ? -1 : 0;
|
|
513
|
-
return G(
|
|
514
|
-
},
|
|
513
|
+
return G(at, { offsetX: h2 + R2 + T2, offsetY: m2 + M2 + T2, length: w2 + q2, isVertical: d2, stroke: v2, width: u2.width, dashArray: C2 ?? u2.pattern, dashArrayAdditional: b2, isDouble: y2, isAngled: u2.description.toLowerCase().includes("slant") }, t2);
|
|
514
|
+
}, gt = ({ getBorderAt: e2, borderRenderer: t2 = ct, getVisibleCells: o2, darkMode: l2, forceThinBorder: r2 = false, defaultColor: i2 = "black", shiftIfWide: a2 = false }) => {
|
|
515
515
|
const s2 = S(o2, [o2]);
|
|
516
|
-
return { overlay:
|
|
516
|
+
return { overlay: oe(() => (o3) => {
|
|
517
517
|
const d2 = o3.toClipBounds(o3.getRangeCoordsBounds(), -3);
|
|
518
518
|
if (!d2) return;
|
|
519
519
|
const c2 = s2(o3);
|
|
@@ -571,7 +571,7 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
571
571
|
r3 && n2.push(r3);
|
|
572
572
|
}), n2;
|
|
573
573
|
};
|
|
574
|
-
h2 = h2.sort(
|
|
574
|
+
h2 = h2.sort(dt), m2 = m2.sort(st);
|
|
575
575
|
const b2 = C2(w2, p2, false), S2 = C2(q2, f2, true);
|
|
576
576
|
if (0 === b2.length && 0 === S2.length) return null;
|
|
577
577
|
for (let e3 = 0; e3 < S2.length; e3++) {
|
|
@@ -596,21 +596,21 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
596
596
|
}
|
|
597
597
|
return G("svg", { width: `${d2.width}`, height: `${d2.height}`, viewBox: `0 0 ${d2.width} ${d2.height}`, preserveAspectRatio: "none", shapeRendering: "crispEdges", style: { position: "absolute", left: "0px", top: "0px", width: `${d2.width}px`, height: `${d2.height}px`, pointerEvents: "none", transitionTimingFunction: "linear", transitionDelay: "0", transitionProperty: "left, top, width, height", willChange: "left, top, width, height, stroke-dashoffset", overflow: "visible" }, children: v2 }, "borders");
|
|
598
598
|
}, [e2, l2]) };
|
|
599
|
-
},
|
|
599
|
+
}, ut = X.Center, ht = Object.freeze({ horizontal: false, vertical: false }), mt = Y.EmptyTopLeft, pt = (e2, t2) => J.EmptyCell, ft = (e2, t2) => new Promise((e3, t3) => {
|
|
600
600
|
t3("StaticBorderRenderer does not support scrolling");
|
|
601
|
-
}),
|
|
602
|
-
const { getBorderAt: t2, width: o2, height: n2, style: l2, rowCount: r2 = 2, columnCount: i2 = 2, darkMode: a2, forceThinBorder: s2, children: d2, ...c2 } = e2, g2 =
|
|
601
|
+
}), wt = te((e2) => {
|
|
602
|
+
const { getBorderAt: t2, width: o2, height: n2, style: l2, rowCount: r2 = 2, columnCount: i2 = 2, darkMode: a2, forceThinBorder: s2, children: d2, ...c2 } = e2, g2 = re(null), [u2, { width: h2, height: m2 }] = Me(), p2 = o2 ?? h2, f2 = n2 ?? m2, w2 = oe(() => {
|
|
603
603
|
const e3 = [];
|
|
604
604
|
for (let t3 = 0; t3 < r2; t3++) for (let o3 = 0; o3 < i2; o3++) {
|
|
605
605
|
const n3 = { colIndex: o3, rowIndex: t3 };
|
|
606
606
|
e3.push({ coords: n3, value: n3 });
|
|
607
607
|
}
|
|
608
608
|
return e3;
|
|
609
|
-
}, []), q2 =
|
|
609
|
+
}, []), q2 = se((e3) => w2, [w2]), { overlay: v2 } = gt({ getVisibleCells: q2, getBorderAt: t2, darkMode: a2, forceThinBorder: s2 }), y2 = Math.floor(p2 / i2), C2 = Math.floor(f2 / r2), b2 = { getColOffset: (e3) => Math.ceil(e3 * y2) + 0, getRowOffset: (e3) => Math.ceil(e3 * C2) + 0, getColIndex: (e3) => Math.floor((e3 - 0) / y2) - 1, getRowIndex: (e3) => Math.floor((e3 - 0) / C2) - 1 }, S2 = { rowStart: 0, colStart: 0, rowEnd: r2, colEnd: i2 }, x2 = { x: 0, y: 0, width: Math.max(0, p2) + 0, height: Math.max(0, f2) + 0 }, k2 = oe(() => {
|
|
610
610
|
const e3 = {}, t3 = Math.floor(p2 / i2);
|
|
611
611
|
for (let o3 = 0; o3 < i2; o3++) e3[o3] = { offset: o3 * t3, size: t3, spanIndex: o3 };
|
|
612
612
|
return e3;
|
|
613
|
-
}, [p2, f2]), R2 =
|
|
613
|
+
}, [p2, f2]), R2 = oe(() => {
|
|
614
614
|
const e3 = {}, t3 = Math.floor(f2 / r2);
|
|
615
615
|
for (let o3 = 0; o3 < r2; o3++) e3[o3] = { offset: o3 * t3, size: t3, spanIndex: o3 };
|
|
616
616
|
return e3;
|
|
@@ -624,21 +624,21 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
624
624
|
const e3 = [];
|
|
625
625
|
for (let t3 = 0; t3 < i2; t3++) e3.push(t3);
|
|
626
626
|
return e3;
|
|
627
|
-
}, toClipBounds: (e3, t3) => x2, toViewBounds: (e3) => e3, toAbsoluteBounds: (e3) => e3, getBounds: () => x2, getInsets: () => null, getRangeCoordsBounds: (e3, t3) => null, getVisibleColumnOffsets: () => k2, getVisibleRowOffsets: () => R2, allViews: () => ({ [
|
|
628
|
-
return Z("div", { style: { ...l2, position: "relative", display: "flex" }, ...c2, children: [G("div", { ref:
|
|
629
|
-
}),
|
|
627
|
+
}, toClipBounds: (e3, t3) => x2, toViewBounds: (e3) => e3, toAbsoluteBounds: (e3) => e3, getBounds: () => x2, getInsets: () => null, getRangeCoordsBounds: (e3, t3) => null, getVisibleColumnOffsets: () => k2, getVisibleRowOffsets: () => R2, allViews: () => ({ [ut]: A2 }), getAnchor: () => ut, getZoom: () => 1, scrollCellCoordsIntoView: ft, getCellCoordsFromClient: pt, getScrollOrientation: () => ht, getScrollTopLeft: () => mt, getFreezeTopLeft: () => mt }, z2 = v2(A2);
|
|
628
|
+
return Z("div", { style: { ...l2, position: "relative", display: "flex" }, ...c2, children: [G("div", { ref: Re([g2, u2]), style: { flex: "1 1 100%", display: "flex", maxWidth: "100%", maxHeight: "100%" }, children: d2 }), z2] });
|
|
629
|
+
}), qt = "_sheetxl-sheet_1qeq6_5", vt = "_viewport-overlay_1qeq6_6", yt = (e2) => {
|
|
630
630
|
const { style: t2, ...o2 } = e2 ?? {};
|
|
631
631
|
return Z("svg", { style: { width: "135px", height: "37px", ...t2 }, viewBox: "0 0 135 37", ...o2, children: [G("path", { d: "M 1.0984,0 C 0.4978,0 0.01,0.40548 0.01,0.90302 v 19.5766 H 0 v 15.61762 c 0,0.30574 0.185,0.57535 0.466,0.73886 v 0.1426 H 0.8565 C 0.9315,36.992 1.0086,37 1.0883,37 H 13.063 25.9706 v 0 h 8.7553 c 0.08,0 0.1563,-0.008 0.2308,-0.0213 h 0.054 v -0.0141 c 0.4621,-0.10457 0.8035,-0.45175 0.8035,-0.86739 v -15.312 c 0,-0.0328 0.01,-0.0658 0.01,-0.0995 V 0.90304 C 35.8242,0.4052 35.3363,6e-5 34.7358,6e-5 H 22.5969 V 1.7e-4 H 21.0014 V 6e-5 Z", fill: "#547dbe", fillRule: "evenodd" }), G("path", { d: "M 1.4849,2.09543 V 9.06408 H 8.1947 V 2.09543 Z m 8.6592,0 V 9.06408 H 16.854 V 2.09543 Z m 8.685,0 v 6.96865 h 6.7098 V 2.09543 Z m 8.7355,0 v 6.96865 h 6.7099 V 2.09543 Z M 1.4849,11.04391 v 6.81444 h 6.7098 v -6.81444 z m 8.6592,0 v 6.81444 h 6.7099 v -6.81444 z m 8.685,0 v 6.81444 h 6.7098 v -6.81444 z m 8.7355,0 v 6.81444 h 6.7099 V 11.04391 Z M 1.4849,19.83872 v 6.68584 h 6.7098 v -6.68584 z m 8.6592,0 v 6.68584 h 6.7351 v -6.68584 z m 8.685,0 v 6.68584 h 6.7098 v -6.68584 z m 8.7355,0 v 6.68584 h 6.7099 v -6.68584 z m -26.052,8.38811 v 6.68588 h 6.7098 v -6.68588 z m 8.6592,0 v 6.68588 h 6.7355 v -6.68588 z m 8.685,0 v 6.68588 h 6.7099 v -6.68588 z m 8.7356,0 v 6.68588 h 6.7098 v -6.68588 z", fill: "#ffffff", fillRule: "evenodd" }), G("path", { d: "m 1.4785,2.09737 v 6.96865 h 6.741 V 2.09737 Z m 0,8.94851 v 6.81449 h 6.741 v -6.81449 z m 0,8.79485 v 6.6858 h 6.741 v -6.6858 z m 0.028,8.388 v 6.68588 h 6.741 v -6.68588 z", fill: "#547dbe", fillRule: "evenodd", strokeWidth: "0.4" }), G("path", { d: "M 120.9895,32.82218 V 10.13469 h 4.7986 v 18.71559 h 9.2153 v 3.9719 z m 0.4853,0 h -5.4976 l -5.275,-8.57923 -5.2751,8.57923 h -5.1481 l 7.5314,-11.69325 -7.0545,-10.99424 h 5.3067 l 4.8936,8.16618 4.7986,-8.16618 h 5.1796 l -7.118,11.24826 z M 95.9361,29.04099 c 0.5297,0 1.0381,-0.053 1.5254,-0.15888 0.4872,-0.10591 0.9745,-0.23299 1.4617,-0.3813 v 3.52703 c -0.5084,0.21183 -1.144,0.39189 -1.9066,0.54018 -0.7415,0.16946 -1.5571,0.2542 -2.4469,0.2542 -1.038,0 -1.9701,-0.16947 -2.7964,-0.5084 -0.805,-0.33894 -1.4511,-0.92148 -1.9384,-1.74763 -0.466,-0.84734 -0.6991,-2.01241 -0.6991,-3.49526 v -8.35686 h -2.2562 v -2.00181 l 2.6058,-1.58876 1.3664,-3.65411 h 3.0189 v 3.6859 h 4.8619 v 3.55878 h -4.8619 v 8.35686 c 0,0.65668 0.1906,1.15449 0.5719,1.49342 0.3814,0.31776 0.8792,0.47664 1.4935,0.47664 z M 79.1445,14.83743 c 2.3939,0 4.29,0.68847 5.6882,2.06535 1.3983,1.35581 2.0972,3.29411 2.0972,5.81491 v 2.28769 H 75.7444 c 0.042,1.33475 0.4342,2.38315 1.1758,3.14596 0.7626,0.76244 1.8113,1.14385 3.1459,1.14385 1.1227,0 2.1396,-0.10609 3.0506,-0.3179 0.9109,-0.23311 1.8536,-0.58257 2.8283,-1.0484 v 3.654 c -0.8476,0.42362 -1.7479,0.73087 -2.7012,0.92139 -0.9322,0.21181 -2.0655,0.3179 -3.4001,0.3179 -1.7373,0 -3.2731,-0.3179 -4.6078,-0.95333 -1.3346,-0.65673 -2.3833,-1.64162 -3.1459,-2.95507 -0.7627,-1.31344 -1.144,-2.96571 -1.144,-4.9568 0,-2.03367 0.3389,-3.71788 1.0169,-5.05235 0.6991,-1.35578 1.6629,-2.37258 2.8917,-3.0504 1.2286,-0.67783 2.6586,-1.0168 4.2899,-1.0168 z m 0.032,3.36815 c -0.911,0 -1.6736,0.29653 -2.2879,0.88967 -0.5933,0.59322 -0.9428,1.51461 -1.0487,2.76455 h 6.6415 c -0.021,-1.05904 -0.2967,-1.92796 -0.8262,-2.60567 -0.5297,-0.69905 -1.3559,-1.04855 -2.4787,-1.04855 z m -17.011,-3.36815 c 2.3939,0 4.29,0.68847 5.6882,2.06535 1.3982,1.35581 2.0973,3.29411 2.0973,5.81491 v 2.28769 H 58.7653 c 0.042,1.33475 0.4343,2.38315 1.1758,3.14596 0.7627,0.76244 1.8113,1.14385 3.1459,1.14385 1.1228,0 2.1397,-0.10609 3.0507,-0.3179 0.911,-0.23311 1.8536,-0.58257 2.8282,-1.0484 v 3.654 c -0.8475,0.42362 -1.7478,0.73087 -2.7011,0.92139 -0.9321,0.21181 -2.0655,0.3179 -3.4002,0.3179 -1.7372,0 -3.273,-0.3179 -4.6077,-0.95333 -1.3347,-0.65673 -2.3833,-1.64162 -3.1459,-2.95507 -0.7627,-1.31344 -1.144,-2.96571 -1.144,-4.9568 0,-2.03367 0.3389,-3.71788 1.0168,-5.05235 0.6991,-1.35578 1.6631,-2.37258 2.8918,-3.0504 1.2287,-0.67783 2.6587,-1.0168 4.2899,-1.0168 z m 0.032,3.36815 c -0.911,0 -1.6736,0.29653 -2.288,0.88967 -0.5931,0.59322 -0.9427,1.51461 -1.0486,2.76455 h 6.6414 c -0.021,-1.05904 -0.2965,-1.92796 -0.8262,-2.60567 -0.5297,-0.69905 -1.3558,-1.04855 -2.4786,-1.04855 z M 41.7033,13.59817 c 0,0.84739 -0.032,1.66288 -0.095,2.44668 -0.042,0.78385 -0.085,1.33456 -0.1271,1.65231 h 0.2542 c 0.5508,-0.88968 1.2605,-1.53575 2.1291,-1.93827 0.8686,-0.40251 1.8325,-0.60371 2.8917,-0.60371 1.8855,0 3.3896,0.50838 4.5124,1.52518 1.144,0.99558 1.716,2.60556 1.716,4.82998 V 32.82218 H 48.2498 V 22.68575 c 0,-2.49951 -0.9322,-3.74937 -2.7964,-3.74937 -1.4194,0 -2.4045,0.49788 -2.9553,1.49362 -0.5297,0.97424 -0.7945,2.38314 -0.7945,4.22592 v 8.16626 H 36.9688 V 8.67305 h 4.7348 z", fill: "#eb594d" }), G("path", { d: "m 23.345,4.88926 c 1.4307,0 2.8282,0.229 4.1916,0.68692 1.3636,0.45803 2.6999,1.15712 4.0084,2.09748 l -1.8344,2.50966 C 28.6222,9.40175 27.5522,8.82162 26.5004,8.44306 25.4486,8.0645 24.3968,7.87524 23.345,7.87524 c -1.9935,0 -3.5435,0.40902 -4.6503,1.22728 -1.1068,0.81819 -1.6601,1.97842 -1.6601,3.48048 v 0.0183 c 0,1.05019 0.3179,1.8502 0.9538,2.39973 0.636,0.54952 1.4615,0.95869 2.4765,1.22731 1.015,0.26862 2.0975,0.51907 3.2468,0.75111 1.003,0.20755 1.9996,0.44872 2.9905,0.7235 0.9905,0.27478 1.8922,0.66562 2.7057,1.1724 0.813,0.50679 1.4615,1.1937 1.9444,2.06075 0.4832,0.86705 0.7247,1.99672 0.7247,3.38884 v 0.0367 c 0,2.45464 -0.8561,4.35355 -2.5682,5.69703 -1.7122,1.34311 -4.1216,2.01505 -7.2278,2.01505 -1.2963,0 -2.5162,-0.12207 -3.6598,-0.36658 -1.1434,-0.24413 -2.2134,-0.61071 -3.2102,-1.09898 -0.9968,-0.48864 -1.9292,-1.09897 -2.7975,-1.83175 l 1.9628,-2.47308 c 1.0763,0.92809 2.2534,1.62428 3.5314,2.08825 1.2779,0.46431 2.669,0.69627 4.1733,0.69627 2.1158,0 3.7513,-0.40613 4.9071,-1.21827 1.1558,-0.81214 1.7335,-1.95096 1.7335,-3.4164 v -0.0183 c 0,-1.06247 -0.2872,-1.87762 -0.8622,-2.44543 -0.5746,-0.56786 -1.3267,-0.99528 -2.2563,-1.28234 -0.9292,-0.28695 -1.9383,-0.52812 -3.0267,-0.72354 -1.0397,-0.18314 -2.0822,-0.39685 -3.1278,-0.64117 -1.0457,-0.24417 -2.0026,-0.60444 -2.8709,-1.08076 -0.8683,-0.47621 -1.5685,-1.15396 -2.1005,-2.0333 -0.532,-0.87933 -0.798,-2.05162 -0.798,-3.5171 v -0.0183 c 0,-2.4792 0.8255,-4.39955 2.4766,-5.7611 1.651,-1.36167 3.9807,-2.04258 6.9892,-2.04258 z", stroke: "#eb594d", strokeWidth: "2", fill: "#f9cecb" })] });
|
|
632
|
-
},
|
|
633
|
-
const { colorLicensee: t2 = "blue", colorError: o2 = "red", colorCredits: n2 = "grey", credits: l2 = "All rights reserved - Michael Ford", feature: r2, style: i2, ...a2 } = e2 ?? {}, [s2, c2] =
|
|
634
|
-
|
|
632
|
+
}, Ct = te((e2) => {
|
|
633
|
+
const { colorLicensee: t2 = "blue", colorError: o2 = "red", colorCredits: n2 = "grey", credits: l2 = "All rights reserved - Michael Ford", feature: r2, style: i2, ...a2 } = e2 ?? {}, [s2, c2] = ne(null);
|
|
634
|
+
ee.useEffect(() => {
|
|
635
635
|
(async () => {
|
|
636
636
|
const e3 = await d.getDetails();
|
|
637
637
|
c2(e3);
|
|
638
638
|
})();
|
|
639
639
|
}, []);
|
|
640
|
-
const [g2, u2] =
|
|
641
|
-
const e3 = s2?.
|
|
640
|
+
const [g2, u2] = ee.useState(false), h2 = { opacity: 0.65 }, m2 = ee.useMemo(() => {
|
|
641
|
+
const e3 = s2?.getExceptions(), t3 = e3?.length ?? 0;
|
|
642
642
|
if (0 === t3) return null;
|
|
643
643
|
const n3 = [];
|
|
644
644
|
for (let l3 = 0; l3 < t3; l3++) {
|
|
@@ -649,14 +649,14 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
649
649
|
}, [s2, o2]);
|
|
650
650
|
if (null === s2) return null;
|
|
651
651
|
if (s2.isValidFor(r2)) return null;
|
|
652
|
-
const p2 = s2.
|
|
652
|
+
const p2 = s2.getType(), f2 = !m2 && p2.endsWith("ity"), w2 = s2.getLicensee(), q2 = f2 ? 1.6 : 1, v2 = 135 / q2, y2 = 37 / q2;
|
|
653
653
|
let C2 = null;
|
|
654
|
-
return !p2 && w2?.length > 0 && (C2 = G("div", { style: { opacity: 0.7, fontWeight: "500", fontSize: "16px", textAlign: "left", color: t2 }, children: w2 })), G("div", { style: { pointerEvents: "none", display: "flex", flexDirection: "column", overflow: "hidden", ...i2 }, ...a2, children: Z("div", { style: { position: "relative", display: "flex", flexDirection: "column" }, children: [g2 ? G(
|
|
655
|
-
}),
|
|
656
|
-
const n2 =
|
|
654
|
+
return !p2 && w2?.length > 0 && (C2 = G("div", { style: { opacity: 0.7, fontWeight: "500", fontSize: "16px", textAlign: "left", color: t2 }, children: w2 })), G("div", { style: { pointerEvents: "none", display: "flex", flexDirection: "column", overflow: "hidden", ...i2 }, ...a2, children: Z("div", { style: { position: "relative", display: "flex", flexDirection: "column" }, children: [g2 ? G(yt, { style: h2 }) : G("svg", { width: v2, height: y2, style: h2, children: G("image", { style: { width: v2, height: y2 }, href: "https://www.sheetxl.com/watermark.svg", onError: () => u2(true) }) }), Z("div", { children: [C2, m2, G("div", { style: { height: "0px", fontSize: "16px", textAlign: "left", width: "0px", opacity: 0.8, color: n2 }, children: l2 })] })] }) });
|
|
655
|
+
}), bt = (e2, t2, o2) => {
|
|
656
|
+
const n2 = re(t2);
|
|
657
657
|
n2.current = t2;
|
|
658
658
|
const l2 = o2?.fireOnModelChange ?? true;
|
|
659
|
-
|
|
659
|
+
ie(() => {
|
|
660
660
|
if (!e2 || !n2.current) return;
|
|
661
661
|
const t3 = Object.keys(n2.current), r2 = {}, i2 = t3.length;
|
|
662
662
|
for (let e3 = 0; e3 < i2; e3++) {
|
|
@@ -673,11 +673,11 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
673
673
|
a2?.();
|
|
674
674
|
};
|
|
675
675
|
}, [e2]);
|
|
676
|
-
},
|
|
677
|
-
const l2 =
|
|
676
|
+
}, St = (e2, t2, o2, n2) => {
|
|
677
|
+
const l2 = re(o2);
|
|
678
678
|
l2.current = o2;
|
|
679
679
|
const r2 = n2?.fireOnAddressChange ?? true;
|
|
680
|
-
|
|
680
|
+
ie(() => {
|
|
681
681
|
if (!e2 || !t2 || !l2.current) {
|
|
682
682
|
const e3 = { getSource: () => null, trigger: "delete", isDataChange: false, isTransactional: false, isUndo: false, timeStamp: Date.now() };
|
|
683
683
|
return void l2.current?.(e3);
|
|
@@ -693,31 +693,31 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
693
693
|
i2?.();
|
|
694
694
|
};
|
|
695
695
|
}, [e2, t2]);
|
|
696
|
-
},
|
|
697
|
-
function
|
|
698
|
-
const { sheet: r2, onRepeatCommandChange: i2, bodyStyle: d2, commands: h2, target: p2,
|
|
699
|
-
|
|
700
|
-
const
|
|
696
|
+
}, xt = new h("transparent");
|
|
697
|
+
function kt(e2) {
|
|
698
|
+
const { sheet: r2, onRepeatCommandChange: i2, bodyStyle: d2, commands: h2, target: p2, onStartEdit: f2, getViewport: w2 } = e2, q2 = z(), [v2, y2] = ne(null), [C2, b2] = ne(null), x2 = re(null), A2 = S(f2, [f2]), N2 = S(w2, [w2]), [V2, L2] = ne(), [H2, B2] = ne(() => r2?.getStyles().parseColor(c.Scheme.Bg2)), [O2, P2] = ne(() => r2?.getStyles().getNormal().getFont().getFill()), $2 = F();
|
|
699
|
+
re($2.getMode()).current = $2.getMode();
|
|
700
|
+
const W2 = E(), [U2, _2] = ne(K.EmptyArray), j2 = se(() => {
|
|
701
701
|
if (x2.current !== r2) return;
|
|
702
702
|
const e3 = r2.getSelectedRanges();
|
|
703
703
|
let t2 = null;
|
|
704
|
-
|
|
704
|
+
U2.length > 0 && J.isCellWithinRange(v2, U2[0].getRange().getCoords()) && (t2 = U2[0]);
|
|
705
705
|
const o2 = r2?.getSelectedCell(), n2 = o2?.getCoords() ?? null;
|
|
706
|
-
|
|
707
|
-
|
|
706
|
+
Ae(() => {
|
|
707
|
+
ue2(t2), y2(n2), b2(e3);
|
|
708
708
|
});
|
|
709
|
-
}, [r2,
|
|
710
|
-
|
|
711
|
-
x2.current = r2,
|
|
709
|
+
}, [r2, U2, C2, v2]), X2 = se(K.debounce(j2, 210), [j2]);
|
|
710
|
+
ie(() => {
|
|
711
|
+
x2.current = r2, j2();
|
|
712
712
|
}, [r2]);
|
|
713
|
-
const
|
|
713
|
+
const Y2 = S(() => r2.getRange(v2).getCell(), [r2, v2]), Q2 = S(async (e3, t2, o2 = null, n2 = false, l2 = true) => {
|
|
714
714
|
const a2 = e3?.label?.(), s2 = async () => {
|
|
715
|
-
const e4 = await Promise.resolve(l2 &&
|
|
715
|
+
const e4 = await Promise.resolve(l2 && q2.showBusy(a2 ?? "Busy..."));
|
|
716
716
|
try {
|
|
717
|
-
await r2.doBatch(async () => t2(r2), a2), n2 &&
|
|
717
|
+
await r2.doBatch(async () => t2(r2), a2), n2 && $2.setMode(null), e4 && e4();
|
|
718
718
|
} catch (t3) {
|
|
719
719
|
if (e4 && e4(), !t3) return;
|
|
720
|
-
|
|
720
|
+
q2.showError(t3);
|
|
721
721
|
}
|
|
722
722
|
}, d3 = [];
|
|
723
723
|
let c2 = false;
|
|
@@ -739,39 +739,39 @@ function xt(e2) {
|
|
|
739
739
|
i2(t3);
|
|
740
740
|
}
|
|
741
741
|
return g2();
|
|
742
|
-
}, [r2, i2,
|
|
742
|
+
}, [r2, i2, q2]), ee2 = S((e3, t2, o2 = false, n2) => Q2(e3, (e4) => {
|
|
743
743
|
const l2 = e4.getSelectedRanges();
|
|
744
744
|
o2 && l2.getStyle().update(null, n2), l2.getStyle().update(t2, n2), l2.autoFit({ expandOnly: s.Orientation.Column, minContent: true, skipCustomSize: true });
|
|
745
|
-
}), [r2]),
|
|
746
|
-
|
|
745
|
+
}), [r2]), te2 = S((e3, t2, o2) => {
|
|
746
|
+
Q2(e3, (e4) => {
|
|
747
747
|
let n2 = t2;
|
|
748
748
|
(o2 || t2?.address) && (n2 = n2 ?? {}, !o2 && t2?.address?.startsWith("#") ? o2 = t2?.address.substring(1) : o2 && (n2.displayText = o2)), e4.getSelectedRange().setHyperlink(n2);
|
|
749
749
|
});
|
|
750
|
-
}, [r2]),
|
|
751
|
-
|
|
750
|
+
}, [r2]), le2 = S((e3, t2) => {
|
|
751
|
+
Q2(e3, (e4) => {
|
|
752
752
|
e4.getSelectedRange().setComments(t2);
|
|
753
753
|
});
|
|
754
|
-
}, [r2]),
|
|
755
|
-
|
|
754
|
+
}, [r2]), ae2 = S((e3, t2) => {
|
|
755
|
+
Q2(e3, (e4) => {
|
|
756
756
|
e4.getSelectedRanges().clear(t2);
|
|
757
757
|
});
|
|
758
|
-
}, [r2]),
|
|
758
|
+
}, [r2]), ce2 = S(async (e3, t2, o2 = false, n2 = false) => Q2(e3, async (e4) => {
|
|
759
759
|
let l2 = e4.getSelectedRanges();
|
|
760
760
|
o2 && (t2 === s.Orientation.Row ? l2 = l2.getEntireRows(n2) : t2 === s.Orientation.Column && (l2 = l2.getEntireColumns(n2)));
|
|
761
761
|
let r3 = null;
|
|
762
|
-
const i3 =
|
|
762
|
+
const i3 = $2.getMode()?.key;
|
|
763
763
|
if ("copy" === i3 || "cut" === i3) {
|
|
764
|
-
const e5 = await
|
|
764
|
+
const e5 = await W2.getClipboard().readReference();
|
|
765
765
|
e5 && "range" === e5.getItemType() && (r3 = e5.getItem(), r3.getCoords() || (r3 = null));
|
|
766
766
|
}
|
|
767
767
|
if (r3) {
|
|
768
768
|
const e5 = await l2.insertFrom(r3, { ...r3.getMarkOptions(), orientation: t2, autoSelect: true });
|
|
769
|
-
!e5 || e5.isEntireRows() || e5.isEntireColumns() || e5.autoFit({ orientations: s.Orientations.Row, minContent: true }),
|
|
769
|
+
!e5 || e5.isEntireRows() || e5.isEntireColumns() || e5.autoFit({ orientations: s.Orientations.Row, minContent: true }), $2.setMode(null);
|
|
770
770
|
} else l2.insert(t2, { autoSelect: true });
|
|
771
|
-
}, "Insert Cells", false), [
|
|
771
|
+
}, "Insert Cells", false), [$2]), [ge2, ue2] = ne(null), he2 = S((e3) => r2.getStyles().setDefaultTableStyle(e3), [r2]), me2 = S((e3) => {
|
|
772
772
|
r2.getStyles().getTableStyle(e3)?.delete();
|
|
773
|
-
}, [r2]),
|
|
774
|
-
|
|
773
|
+
}, [r2]), pe2 = S((e3, t2) => {
|
|
774
|
+
Q2(e3, async (e4) => {
|
|
775
775
|
const o2 = e4.getSelectedRange(), n2 = e4.getSelectedCell().getCoords();
|
|
776
776
|
let l2 = null, r3 = 0;
|
|
777
777
|
const i3 = n2.rowIndex > 0 ? e4.getRange({ rowIndex: n2.rowIndex, colIndex: n2.colIndex }).getExtended(s.Direction.Up) : null;
|
|
@@ -811,10 +811,10 @@ function xt(e2) {
|
|
|
811
811
|
A2?.({ text: `${n3}${o3})`, editMode: true, initialSelection: { start: n3.length, end: n3.length + o3.length } });
|
|
812
812
|
}
|
|
813
813
|
}, false);
|
|
814
|
-
}, [r2]),
|
|
815
|
-
|
|
814
|
+
}, [r2]), fe2 = S((e3, t2, o2 = false, n2 = true) => {
|
|
815
|
+
Q2(e3, async (l2) => {
|
|
816
816
|
let r3 = null;
|
|
817
|
-
if (
|
|
817
|
+
if (ge2) return void ge2.updateStyleOptions(t2);
|
|
818
818
|
{
|
|
819
819
|
const e4 = l2.getSelectedRanges().getFixed(true), t3 = l2.getSelectedRange().getDefaultSortCriteria();
|
|
820
820
|
let o3 = { ranges: e4, hasHeader: t3?.options?.hasHeader ?? false };
|
|
@@ -824,21 +824,21 @@ function xt(e2) {
|
|
|
824
824
|
}, onDone: (t5) => {
|
|
825
825
|
e5(t5);
|
|
826
826
|
}, context: { getNames: () => l2.getNames() } };
|
|
827
|
-
|
|
827
|
+
q2.showWindow?.("tableNew", n3);
|
|
828
828
|
}) : { option: "Ok", tableOptions: o3 };
|
|
829
829
|
}
|
|
830
830
|
const i3 = await Promise.resolve(r3);
|
|
831
831
|
if ("Ok" !== i3?.option) throw null;
|
|
832
|
-
const a2 = await Promise.resolve(
|
|
832
|
+
const a2 = await Promise.resolve(q2.showBusy(e3.label()));
|
|
833
833
|
try {
|
|
834
834
|
const e4 = l2.getTables().add(i3.tableOptions.ranges.at(0), { styleName: t2?.name, clearFormatting: o2, hasHeader: i3.tableOptions.hasHeader });
|
|
835
835
|
await e4.getRange().select();
|
|
836
836
|
} catch (e4) {
|
|
837
|
-
a2(),
|
|
837
|
+
a2(), q2.showError(e4);
|
|
838
838
|
}
|
|
839
839
|
a2();
|
|
840
840
|
}, false, true, false);
|
|
841
|
-
}, [
|
|
841
|
+
}, [ge2]), we2 = S(() => d2, [d2]), qe2 = S((e3) => ({ styles: () => r2.getStyles(), table: () => e3, bodyStyle: we2, getNames: () => r2.getNames() }), [r2]), ve2 = S(async (e3, t2, o2, n2 = true) => {
|
|
842
842
|
let l2 = null;
|
|
843
843
|
if (!t2) {
|
|
844
844
|
let e4 = r2.getSelectedRange();
|
|
@@ -853,10 +853,10 @@ function xt(e2) {
|
|
|
853
853
|
} catch (e4) {
|
|
854
854
|
}
|
|
855
855
|
l2 = new Promise(async (o3, n3) => {
|
|
856
|
-
e3.update({ context:
|
|
857
|
-
const l3 = { command: e3, commands:
|
|
856
|
+
e3.update({ context: qe2(t2) });
|
|
857
|
+
const l3 = { command: e3, commands: Ne2, notifier: q2, onDone: (e4) => {
|
|
858
858
|
o3(e4);
|
|
859
|
-
} }, r3 = await
|
|
859
|
+
} }, r3 = await q2.showWindow?.("tableDetails", l3, { disableAutoDestroy: true });
|
|
860
860
|
setTimeout(() => {
|
|
861
861
|
r3.focus();
|
|
862
862
|
}, 180);
|
|
@@ -864,10 +864,10 @@ function xt(e2) {
|
|
|
864
864
|
}
|
|
865
865
|
Promise.resolve(l2).then((e4) => {
|
|
866
866
|
}, (e4) => {
|
|
867
|
-
|
|
867
|
+
q2.showError(e4);
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
|
-
}, [
|
|
870
|
+
}, [q2]), ye2 = S(async (e3, t2, o2 = false) => {
|
|
871
871
|
let n2 = null;
|
|
872
872
|
if (t2) t2.isITable ? n2 = t2 : t2.getValue() && (n2 = t2.getValue());
|
|
873
873
|
else {
|
|
@@ -878,16 +878,16 @@ function xt(e2) {
|
|
|
878
878
|
if (!o2) {
|
|
879
879
|
const e4 = n2.getRange().getCoords(), t3 = (e4.colEnd - e4.colStart + 1) * (e4.rowEnd - e4.rowStart + 1);
|
|
880
880
|
if (t3 > 1e4) {
|
|
881
|
-
if ("Convert" !== await
|
|
881
|
+
if ("Convert" !== await q2.showOptions({ title: "Confirm", description: `Converting a table to range with '${t3}' cells will set a large number of cell styles and may affect performance.
|
|
882
882
|
Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
|
-
|
|
885
|
+
Q2(e3, async () => {
|
|
886
886
|
o2 ? n2.delete() : n2.convertToRange();
|
|
887
887
|
}, false, true);
|
|
888
888
|
}
|
|
889
|
-
}, [
|
|
890
|
-
|
|
889
|
+
}, [q2]), Ce2 = S((e3, t2, o2) => {
|
|
890
|
+
Q2(e3, async (n2) => {
|
|
891
891
|
let l2 = n2.getSelectedRanges();
|
|
892
892
|
if (l2.getCount() > 1) throw new Error("Can not sort on multiple cell ranges. Please select a single range and try again.");
|
|
893
893
|
let r3 = l2.at(0);
|
|
@@ -905,20 +905,20 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
905
905
|
}, onDone: (o4) => {
|
|
906
906
|
o4 ? e4(o4.options) : t3();
|
|
907
907
|
} };
|
|
908
|
-
|
|
908
|
+
q2.showWindow?.("sort", o3);
|
|
909
909
|
})), d3 = await Promise.resolve(d3), !d3) return;
|
|
910
|
-
const c2 = await Promise.resolve(
|
|
910
|
+
const c2 = await Promise.resolve(q2.showBusy(e3.label()));
|
|
911
911
|
try {
|
|
912
912
|
r3.doBatch(() => {
|
|
913
913
|
const e4 = { ...d3, ...t2 };
|
|
914
914
|
r3.sort(e4), r3.autoFit({ orientations: e4?.orientation === s.Orientation.Column ? s.Orientations.Column : s.Orientations.Row, skipCustomSize: true, minContent: true });
|
|
915
915
|
}, e3?.label?.());
|
|
916
916
|
} catch (e4) {
|
|
917
|
-
c2(),
|
|
917
|
+
c2(), q2.showError(e4);
|
|
918
918
|
}
|
|
919
919
|
c2();
|
|
920
920
|
}, false, false, false);
|
|
921
|
-
}, [
|
|
921
|
+
}, [q2]), be2 = S(() => {
|
|
922
922
|
console.log("compactedSelection");
|
|
923
923
|
const e3 = r2.getSelection().getCoords(), t2 = r2.getSelectedRanges().getFlattened().getCoords(), o2 = ((e4) => {
|
|
924
924
|
const t3 = new Blob([e4], { type: "application/javascript" }), o3 = URL.createObjectURL(t3), n3 = new Worker(o3);
|
|
@@ -932,9 +932,9 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
932
932
|
if (J.isEqualRangesArrays(e3.ranges, t2)) return;
|
|
933
933
|
const l2 = { cell: e3.cell, ranges: t2, rangeIndex: n2 };
|
|
934
934
|
r2.getSelection().updateCoords(l2);
|
|
935
|
-
}, [r2]),
|
|
935
|
+
}, [r2]), Se2 = S(() => {
|
|
936
936
|
console.log("selectComments");
|
|
937
|
-
}, [r2]),
|
|
937
|
+
}, [r2]), xe2 = S(async (e3 = false, t2 = false) => {
|
|
938
938
|
let o2 = null;
|
|
939
939
|
if (t2) o2 = r2.getEntireRange();
|
|
940
940
|
else {
|
|
@@ -945,35 +945,35 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
945
945
|
} else o2 = t3.getSurrounding({ contentOnly: e3 });
|
|
946
946
|
}
|
|
947
947
|
o2 && await o2.select();
|
|
948
|
-
}, [r2]),
|
|
949
|
-
|
|
948
|
+
}, [r2]), ke2 = S((e3, t2, o2) => {
|
|
949
|
+
Q2(e3, async (e4) => {
|
|
950
950
|
let n2 = e4.getSelectedRanges();
|
|
951
951
|
o2 && (t2 === s.Orientation.Row ? n2 = n2.getEntireRows() : t2 === s.Orientation.Column && (n2 = n2.getEntireColumns())), n2.delete(t2);
|
|
952
952
|
}, "Delete Cells");
|
|
953
953
|
}, [r2]);
|
|
954
954
|
S(async (e3) => {
|
|
955
955
|
let t2 = null;
|
|
956
|
-
const o2 =
|
|
956
|
+
const o2 = N2(), n2 = Math.min(o2.width - 8, 480), l2 = Math.min(o2.height - 8, 288);
|
|
957
957
|
try {
|
|
958
958
|
r2.getSelectedRanges();
|
|
959
|
-
t2 = await r2.getMovables().add({ bounds: { x: o2.left + (o2.width - n2) / 2, y: o2.top + (o2.height - l2) / 2, width: n2, height: l2 }, type: "chart", json: e3.template }), t2.select(),
|
|
959
|
+
t2 = await r2.getMovables().add({ bounds: { x: o2.left + (o2.width - n2) / 2, y: o2.top + (o2.height - l2) / 2, width: n2, height: l2 }, type: "chart", json: e3.template }), t2.select(), $2.setMode(null);
|
|
960
960
|
} catch (e4) {
|
|
961
|
-
|
|
961
|
+
q2.showError(e4);
|
|
962
962
|
}
|
|
963
963
|
return t2;
|
|
964
|
-
}, [r2,
|
|
965
|
-
const
|
|
966
|
-
const n2 = await
|
|
964
|
+
}, [r2, q2]);
|
|
965
|
+
const Re2 = S(async (e3, t2, o2) => {
|
|
966
|
+
const n2 = await q2.showBusy(e3.label());
|
|
967
967
|
try {
|
|
968
968
|
const e4 = await r2.getMovables().addImage(t2, { autoSelect: true, ...o2 });
|
|
969
|
-
return n2(),
|
|
969
|
+
return n2(), $2.setMode(null), e4;
|
|
970
970
|
} catch (e4) {
|
|
971
971
|
n2();
|
|
972
972
|
let t3 = e4;
|
|
973
|
-
"string" != typeof t3 && (console.warn(e4), t3 = "Unable to resolve image."),
|
|
973
|
+
"string" != typeof t3 && (console.warn(e4), t3 = "Unable to resolve image."), q2.showMessage(t3, { type: D.Error });
|
|
974
974
|
}
|
|
975
|
-
}, [r2,
|
|
976
|
-
|
|
975
|
+
}, [r2, q2]), Me2 = S((e3, t2) => {
|
|
976
|
+
Q2(e3, async (o2) => {
|
|
977
977
|
const n2 = o2.getSelectedRanges();
|
|
978
978
|
n2.doBatch(() => {
|
|
979
979
|
const e4 = t2 === s.Direction.Up || t2 === s.Direction.Down, l2 = n2.getCoords().slice().sort(J.createRangeComparator(e4 ? s.Orientation.Row : s.Orientation.Column));
|
|
@@ -990,7 +990,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
990
990
|
}
|
|
991
991
|
}, { autoSelect: true, description: e3.label() });
|
|
992
992
|
});
|
|
993
|
-
}, [
|
|
993
|
+
}, [q2]), Te2 = S(() => {
|
|
994
994
|
let e3 = null;
|
|
995
995
|
const t2 = r2.getSelectedCell().getCoords();
|
|
996
996
|
if (t2?.rowIndex > 0) {
|
|
@@ -998,124 +998,124 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
998
998
|
o2 && (e3 = o2.toTextUnformatted(true));
|
|
999
999
|
}
|
|
1000
1000
|
A2?.({ text: e3 });
|
|
1001
|
-
}, [r2]), [
|
|
1002
|
-
|
|
1001
|
+
}, [r2]), [ze2, Fe2] = de((e3) => e3 + 1, 0), [Ee2, De2] = de((e3) => e3 + 1, 0), Ie2 = oe(() => [new R("gridlinesToggle", p2, { label: "Gridlines", scopedLabels: { view: "Gridlines" }, description: "Toggle whether the lines between rows and columns in the sheet are displayed." }), new R("sheetViewToggleGridlinesRows", p2, { label: "Row Gridlines", scopedLabels: { view: "Row Gridlines", gridlines: "Rows" }, description: "Toggle whether the lines between rows in the sheet are displayed." }), new R("sheetViewToggleGridlinesColumns", p2, { label: "Column Gridlines", scopedLabels: { view: "Columns Gridlines", gridlines: "Columns" }, description: "Toggle whether the lines between columns in the sheet are displayed." }), new R("sheetViewFormatGridlinesColor", p2, { label: "Gridlines Color", description: "Color the rows and column gridlines." }), new R("sheetViewToggleShowHeadings", p2, { label: "Headings", scopedLabels: { view: "Headings" }, description: "Toggle whether the row and column headings are displayed." }), new R("sheetViewToggleShowHeadingRows", p2, { label: "Row Headings", scopedLabels: { view: "Row Headings", headings: "Rows" }, description: "Toggle whether the row headings are displayed." }), new R("sheetViewToggleShowHeadingColumns", p2, { label: "Column Headings", scopedLabels: { view: "Columns Headings", headings: "Columns" }, description: "Toggle whether the column headings are displayed." }), new R("sheetViewToggleShowHeadingsNumeric", p2, { label: "Numeric Headers", description: "Toggle whether cell headings show numbers or A1 conventions.", shortcut: { key: "h", modifiers: [M.Ctrl, M.Shift] } }), new R("sheetViewToggleFormulaView", p2, { label: "Show Formulas", description: "Toggle whether cells show formula or values.", shortcut: [{ key: "`", modifiers: [M.Ctrl] }, { key: "`", modifiers: [M.Ctrl, M.Shift] }] }), new R("sheetViewToggleShowZeros", p2, { label: "Show Zeros", description: "Toggle whether cell with zero value shows '0' or blank." }), new k("selectComments", p2, { label: "Select Comments", description: "Select the cells with comments.", shortcut: { key: "O", modifiers: [M.Ctrl, M.Shift] } }, () => Se2()), new R("selectAll", p2, { label: "Select All", description: "Select the closest data or the entire sheet if no data is nearby.", shortcut: [{ key: "A", modifiers: [M.Ctrl] }, { key: "Space", modifiers: [M.Ctrl, M.Shift] }] }, (e3 = false) => xe2(false, e3)), new k("selectRegion", p2, { label: "Select Region", description: "Select the closest data.", shortcut: { key: "*", modifiers: [M.Ctrl, M.Shift] } }, () => xe2(true, false)), new k("breakSelection", p2, { label: "Select Visible", description: "Break the selection based on hidden rows and columns.", shortcut: { key: "Semicolon", modifiers: [M.Ctrl, M.Alt] } }, () => be2()), new k("formatTextRotate0", p2, { label: "No Text Rotation", description: "Remove all text rotation." }), new k("formatTextRotate45", p2, { label: "Angle Clockwise", description: "Angle text 45 degrees downward." }), new k("formatTextRotate90", p2, { label: "Rotate Text Down", description: "Angle your text so that it aligns with the left." }), new k("formatTextRotate270", p2, { label: "Rotate Text Up", description: "Angle your text so that it aligns with the right." }), new k("formatTextRotate315", p2, { label: "Angle Counterclockwise", description: "Angle text 45 degrees upward." }), new R("formatTextRotateCustom", p2, { label: "Custom Text Rotation", description: "Angle your text using a custom angle." }), new k("formatTextRotateVertical", p2, { label: "Vertical Text", description: "Stack text vertically." }), new k("sortAscending", p2, { label: "Sort Ascending", scopedLabels: { sort: "Ascending" }, description: "Lowest to Highest." }, function() {
|
|
1002
|
+
Ce2(this, { reverse: false }, false);
|
|
1003
1003
|
}), new k("sortDescending", p2, { label: "Sort Descending", scopedLabels: { sort: "Descending" }, description: "Highest to Lowest." }, function() {
|
|
1004
|
-
|
|
1004
|
+
Ce2(this, { reverse: true }, false);
|
|
1005
1005
|
}), new k("sortCustom", p2, { label: "Custom Sort…", scopedLabels: { sort: "Custom…" }, description: "Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts." }, function() {
|
|
1006
|
-
|
|
1006
|
+
Ce2(this, {}, true);
|
|
1007
1007
|
}), new R("protectionSheetToggle", p2, { label: "Protect Sheet", scopedLabels: { sheet: "Protected" }, description: "Prevent unwanted changes from others by limiting their ability to edit.\nFor example, you can prevent people from editing locked cells or making formatting changes." }), new R("formatSheetTabColor", p2, { label: "Tab Color", description: "Color the tab to help differentiate for other sheets." }), new R("formatCellStyle", p2, { label: "Cell Styles", scopedLabels: { cellStyle: "Apply" }, description: "A colorful style is a great way to make important data stand out on the sheet." }, function(e3) {
|
|
1008
|
-
|
|
1008
|
+
ee2(this, { named: e3.getName() }, true);
|
|
1009
1009
|
}), new R("formatTableStyle", p2, { label: "Format as Table", scopedLabels: { table: "Apply (Keep Styles)" }, description: "Create a table or apply style to the current table." }, function(e3) {
|
|
1010
|
-
|
|
1010
|
+
fe2(this, e3);
|
|
1011
1011
|
}), new R("formatTableStyleClearCellStyles", p2, { label: "Format as Table (Clear Styles)", scopedLabels: { table: "Apply (Clear Styles)" }, description: "Create a table or apply style to the current table and clears all cell styles." }, function(e3) {
|
|
1012
|
-
|
|
1012
|
+
fe2(this, e3, true);
|
|
1013
1013
|
}), new R("formatTableStyleClearTableStyle", p2, { label: "Clear Table Style", scopedLabels: { table: "Clear Style" }, description: "Remove all the styling that is specific for the table." }, function() {
|
|
1014
|
-
|
|
1015
|
-
}), new R("setDefaultTableStyle", p2, { label: "Set Default Table Style", scopedLabels: { table: "Set As Default" }, description: "Sets the default table style used when a table is inserted." },
|
|
1016
|
-
|
|
1014
|
+
fe2(this, { name: null }, true);
|
|
1015
|
+
}), new R("setDefaultTableStyle", p2, { label: "Set Default Table Style", scopedLabels: { table: "Set As Default" }, description: "Sets the default table style used when a table is inserted." }, he2), new R("deleteTableStyle", p2, { label: "Delete Table Style", scopedLabels: { table: "Delete" }, description: "Remove the current table style." }, me2), new R("formatBorder", p2, { label: "Border", description: "Create an outline border." }, function(e3) {
|
|
1016
|
+
ee2(this, { border: e3 });
|
|
1017
1017
|
}), new R("formatFillColor", p2, { label: "Fill Color", description: "Color the background of the cells to make them stand out." }, function(e3) {
|
|
1018
|
-
|
|
1018
|
+
ee2(this, { fill: e3 });
|
|
1019
1019
|
}), new R("formatFontColor", p2, { label: "Font Color", description: "Change the color of your text." }, function(e3) {
|
|
1020
|
-
|
|
1020
|
+
ee2(this, { font: { fill: e3 } });
|
|
1021
1021
|
}), new R("formatBoldToggle", p2, { label: "Bold", description: "Toggle bold formatting of text.", shortcut: [{ key: "B", modifiers: [M.Ctrl] }, { key: "2", modifiers: [M.Ctrl] }] }), new R("formatItalicToggle", p2, { label: "Italic", description: "Toggle italic formatting of text.", shortcut: [{ key: "I", modifiers: [M.Ctrl] }, { key: "3", modifiers: [M.Ctrl] }] }), new R("formatUnderlinedToggle", p2, { label: "Underline", scopedLabels: { underline: "Single" }, description: "Underline the text.", shortcut: [{ key: "u", modifiers: [M.Ctrl] }, { key: "4", modifiers: [M.Ctrl] }] }), new R("formatUnderlinedDoubleToggle", p2, { label: "Double Underline", scopedLabels: { underline: "Double" }, description: "Double underline the text." }), new R("formatUnderlinedAccountingToggle", p2, { label: "Accounting Underline", scopedLabels: { underline: "Accounting" }, description: "Use accounting underline for the text." }), new R("formatUnderlinedAccountingDoubleToggle", p2, { label: "Double Accounting Underline", scopedLabels: { underline: "Double Accounting" }, description: "Use accounting double underline the text." }), new R("formatStrikeThroughToggle", p2, { label: "Strikethrough", description: "Toggle strike-through formatting of text.", shortcut: { key: "5", modifiers: [M.Ctrl] } }), new R("formatSuperscriptToggle", p2, { label: "Superscript", description: "Format your text to be smaller and sit at the top of the line." }), new R("formatSubscriptToggle", p2, { label: "Subscript", description: "Format your text to be smaller and sit at the bottom of the line." }), new R("formatAlignTopToggle", p2, { label: "Align Top", description: "Align text to the top." }), new R("formatTextOverflowVisibleToggle", p2, { label: "Overflow Text", description: "Overflow text to the next cells." }), new R("formatTextOverflowWrapToggle", p2, { label: "Wrap Text", description: "Wrap text with the existing cell and increase the height as required." }), new R("formatTextOverflowClipToggle", p2, { label: "Clip Text", description: "Clip text that falls outside of the existing cell." }), new R("formatTextOverflowShrinkToggle", p2, { label: "Shrink Text", description: "Shrink the text font to fit within existing cell." }), new R("formatTextOverflowEllipsisToggle", p2, { label: "Ellipsis Text", description: "Add a trailing '…' to the text to indicate text is partially hidden." }), new R("formatAlignMiddleToggle", p2, { label: "Align Middle", description: "Align text so that it is centered between the top and bottom of the cell." }), new R("formatAlignBottomToggle", p2, { label: "Align Bottom", description: "Align text to the bottom." }), new R("formatAlignJustifyVerticalToggle", p2, { label: "Justify Vertically", description: "Each 'word' in each line of text inside the cell is evenly distributed across the height of the cell." }), new R("formatAlignDistributedVerticalToggle", p2, { label: "Distribute Vertically", description: "Justify your content vertically." }), new R("formatAlignLeftToggle", p2, { label: "Align Left", description: "Align your content to the left." }), new R("formatAlignCenterToggle", p2, { label: "Align Center", description: "Center your content." }), new R("formatAlignRightToggle", p2, { label: "Align Right", description: "Align your content to the right." }), new R("formatAlignJustifyToggle", p2, { label: "Align Justify", description: "Justify your content." }), new R("formatAlignCenterContinuousToggle", p2, { label: "Center Across", description: "Center your content across multiple cells." }), new R("formatAlignFillToggle", p2, { label: "Fill Across", description: "Repeat the value to fill the entire cell." }), new R("formatAlignDistributedHorizontalToggle", p2, { label: "Distribute Horizontally", description: "Each 'word' in each line of text inside the cell is evenly distributed across the width of the cell." }), new k("formatFontSizeIncrease", p2, { label: "Increase Font Size", description: "Make your text a bit bigger.", shortcut: { key: ">", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
1022
|
-
|
|
1022
|
+
ee2(this, (e3) => ({ font: { size: Ye(e3.getFont().getSize(), true) } }));
|
|
1023
1023
|
}), new k("formatFontSizeDecrease", p2, { label: "Decrease Font Size", description: "Make your text a bit smaller.", shortcut: { key: "<", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
1024
|
-
|
|
1024
|
+
ee2(this, (e3) => ({ font: { size: Ye(e3.getFont().getSize(), false) } }));
|
|
1025
1025
|
}), new R("formatFontFamily", p2, { label: "Font", description: "Select the font your text." }, function(e3) {
|
|
1026
|
-
|
|
1026
|
+
ee2(this, { font: { family: e3 } });
|
|
1027
1027
|
}), new R("formatFontSize", p2, { label: "Font Size", description: "Change the size of your text." }, function(e3) {
|
|
1028
|
-
|
|
1028
|
+
ee2(this, { font: { size: e3 } });
|
|
1029
1029
|
}), new R("formatNumberDialog", p2, { label: "Custom Number Format", scopedLabels: { numberFormat: "Custom" }, description: "Create a custom number format.", shortcut: [{ key: "1", modifiers: [M.Ctrl] }, { key: "1", modifiers: [M.Ctrl, M.Alt] }] }, function(e3, t2) {
|
|
1030
1030
|
const o2 = this, n2 = { initialValue: e3 ?? t2.state(), context: t2.context(), onInputOption: (e4, t3) => {
|
|
1031
|
-
|
|
1031
|
+
ee2(o2, { numberFormat: e4 });
|
|
1032
1032
|
} };
|
|
1033
|
-
|
|
1033
|
+
q2.showWindow?.("numberFormat", n2);
|
|
1034
1034
|
}), new R("formatNumberFormat", p2, { label: "Number Format", description: "Choose the format for your cells, such as percentage, currency, date or time." }, function(e3) {
|
|
1035
|
-
|
|
1035
|
+
ee2(this, { numberFormat: e3 });
|
|
1036
1036
|
}), new R("formatNumberFormatGeneralStyle", p2, { label: "General Style", description: "Remove all specific formatting.", shortcut: { key: "Backquote", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
1037
|
-
|
|
1037
|
+
ee2(this, { numberFormat: t.Type.General });
|
|
1038
1038
|
}), new R("formatNumberFormatNumberStyle", p2, { label: "Number Style", description: "Format as number with two decimals and comma.", shortcut: { key: "1", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
1039
|
-
|
|
1039
|
+
ee2(this, { numberFormat: "#,##0.00" });
|
|
1040
1040
|
}), new R("formatNumberFormatTimeStyle", p2, { label: "Time Style", description: "Format as time with hour and minute, and AM or PM.", shortcut: { key: "2", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
1041
|
-
|
|
1041
|
+
ee2(this, { numberFormat: "h:mm AM/PM" });
|
|
1042
1042
|
}), new R("formatNumberFormatDateStyle", p2, { label: "Date Style", description: "Format as date with day, month, and year.", shortcut: { key: "3", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
1043
|
-
|
|
1043
|
+
ee2(this, { numberFormat: "d-mmm-yy" });
|
|
1044
1044
|
}), new R("formatNumberFormatAccountingStyle", p2, { label: "Accounting Style", description: "Format as Dollars, Euros, or other currency.", shortcut: { key: "4", modifiers: [M.Ctrl, M.Shift] } }, function(e3) {
|
|
1045
|
-
|
|
1045
|
+
ee2(this, { numberFormat: e3 ?? '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' });
|
|
1046
1046
|
}), new R("formatNumberFormatPercentStyle", p2, { label: "Percent Style", description: "Format as a percent with no decimal places.", shortcut: { key: "5", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
1047
|
-
|
|
1047
|
+
ee2(this, { numberFormat: "0%" });
|
|
1048
1048
|
}), new R("formatNumberFormatScientificStyle", p2, { label: "Scientific Style", description: "Format as a scientific number with two decimal places .", shortcut: { key: "6", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
1049
|
-
|
|
1049
|
+
ee2(this, { numberFormat: "0.00E+00" });
|
|
1050
1050
|
}), new R("formatNumberFormatCommaStyle", p2, { label: "Comma Style", description: "Format with a thousands separator.", shortcut: { key: ",", modifiers: [M.Ctrl] } }, function() {
|
|
1051
|
-
|
|
1051
|
+
ee2(this, { numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' });
|
|
1052
1052
|
}), new R("formatNumberFormatIncreaseDecimal", p2, { label: "Increase Decimal", description: "Show more decimal places for a more precise value." }, function() {
|
|
1053
|
-
|
|
1053
|
+
ee2(this, (e3) => ({ numberFormat: t.Parser.adjustDecimalPlaces(e3.getNumberFormat(), 1) }));
|
|
1054
1054
|
}), new R("formatNumberFormatDecreaseDecimal", p2, { label: "Decrease Decimal", description: "Show few decimal places." }, function() {
|
|
1055
|
-
|
|
1055
|
+
ee2(this, (e3) => ({ numberFormat: t.Parser.adjustDecimalPlaces(e3.getNumberFormat(), -1) }));
|
|
1056
1056
|
}), new R("displayPlaceholdersToggle", p2, { label: "Display Placeholders", description: "Switch between hiding objects, displaying objects, and displaying placeholders for objects.", shortcut: { key: "6", modifiers: [M.Ctrl] } }), new k("noOp", p2, { label: "Do nothing", description: "Do Nothing.", shortcut: { key: "7", modifiers: [M.Ctrl] } }, function() {
|
|
1057
1057
|
}), new R("displayOutlineSymbolsToggle", p2, { label: "Display Outline Symbols", description: "Display or hide the outline symbols.", shortcut: { key: "8", modifiers: [M.Ctrl] } }), new R("hideRows", p2, { label: "Hide Rows", description: "Hide the rows.", shortcut: { key: "9", modifiers: [M.Ctrl] } }), new R("unhideRows", p2, { label: "Unhide Rows", description: "Unhide the rows.", shortcut: { key: "(", modifiers: [M.Ctrl, M.Shift] } }), new R("hideColumns", p2, { label: "Hide Columns", description: "Hide the columns.", shortcut: [{ key: "0", modifiers: [M.Ctrl] }, { key: "0", modifiers: [M.Ctrl, M.Alt] }] }), new R("unhideColumns", p2, { label: "Unhide Columns", description: "Unhide the columns.", shortcut: { key: ")", modifiers: [M.Ctrl, M.Shift] } }), new k("calculate", p2, { label: "Calculate Sheet", description: "Recalculate the formulas on the current sheet.", shortcut: { key: "=", modifiers: [M.Ctrl] } }), new R("insertFunction", p2, { label: "Insert Function", disabled: true, scopedLabels: { insert: "Function", insertFunction: "More Functions..." }, description: "Work with the function in the current cell.", shortcut: { key: "F3", modifiers: [M.Shift] } }, function(e3) {
|
|
1058
|
-
e3 &&
|
|
1058
|
+
e3 && pe2(this, e3.getName());
|
|
1059
1059
|
}), new R("insertFunctionSum", p2, { label: "Quick Sum", scopedLabels: { insertFunction: "Sum" }, description: "Quick sum of the cells.", shortcut: { key: "=", modifiers: [M.Alt] } }, function() {
|
|
1060
|
-
|
|
1060
|
+
pe2(this, "SUM");
|
|
1061
1061
|
}), new R("insertFunctionAverage", p2, { label: "Quick Average", scopedLabels: { insertFunction: "Average" }, description: "Quick average of the cells." }, function() {
|
|
1062
|
-
|
|
1062
|
+
pe2(this, "AVERAGE");
|
|
1063
1063
|
}), new R("insertFunctionCount", p2, { label: "Quick Count", scopedLabels: { insertFunction: "Count Numbers" }, description: "Quick count of the cells." }, function() {
|
|
1064
|
-
|
|
1064
|
+
pe2(this, "COUNT");
|
|
1065
1065
|
}), new R("insertFunctionMax", p2, { label: "Quick Max", scopedLabels: { insertFunction: "Max" }, description: "Quick maximum of the cells." }, function() {
|
|
1066
|
-
|
|
1066
|
+
pe2(this, "MAX");
|
|
1067
1067
|
}), new R("insertFunctionMin", p2, { label: "Quick Min", scopedLabels: { insertFunction: "Min" }, description: "Quick minimum of the cells." }, function() {
|
|
1068
|
-
|
|
1068
|
+
pe2(this, "MIN");
|
|
1069
1069
|
}), new R("startEditCurrentTime", p2, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
1070
|
-
A2?.({ text: r2.createTemporaryCell({ value:
|
|
1070
|
+
A2?.({ text: r2.createTemporaryCell({ value: je(), style: { numberFormat: "Medium Time" } }).toText() });
|
|
1071
1071
|
}), new R("startEditCurrentDate", p2, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [M.Ctrl] } }, function() {
|
|
1072
|
-
A2?.({ text: r2.createTemporaryCell({ value:
|
|
1073
|
-
}), new k("sheetZoomOut", p2, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadSubtract", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoomIn", p2, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadAdd", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoom100", p2, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [M.Ctrl, M.Alt] } }), new R("updateHyperlink", p2, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", context: () =>
|
|
1072
|
+
A2?.({ text: r2.createTemporaryCell({ value: je(), style: { numberFormat: "Short Date" } }).toText() });
|
|
1073
|
+
}), new k("sheetZoomOut", p2, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadSubtract", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoomIn", p2, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadAdd", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoom100", p2, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [M.Ctrl, M.Alt] } }), new R("updateHyperlink", p2, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", context: () => Y2, shortcut: [{ key: "K", modifiers: [M.Ctrl] }, { key: "K", modifiers: [M.Ctrl, M.Alt] }] }, async function(e3, t2) {
|
|
1074
1074
|
const o2 = this, n2 = { context: t2.context(), onUpdateHyperlink: (e4, t3) => {
|
|
1075
|
-
|
|
1075
|
+
te2(o2, e4, t3);
|
|
1076
1076
|
} };
|
|
1077
|
-
|
|
1078
|
-
}), new R("openHyperlink", p2, { label: "Open Link", scopedLabels: { hyperlink: "Open" }, shortcut: { key: "Enter", modifiers: [M.Ctrl] }, description: "Open the hyperlink or goto another location within this document.", context: () =>
|
|
1077
|
+
q2.showWindow?.("hyperlink", n2);
|
|
1078
|
+
}), new R("openHyperlink", p2, { label: "Open Link", scopedLabels: { hyperlink: "Open" }, shortcut: { key: "Enter", modifiers: [M.Ctrl] }, description: "Open the hyperlink or goto another location within this document.", context: () => Y2 }, async (e3, t2) => {
|
|
1079
1079
|
const o2 = t2.context()();
|
|
1080
1080
|
if (!o2) return;
|
|
1081
1081
|
const n2 = o2.getHyperlink();
|
|
1082
1082
|
if (n2) try {
|
|
1083
1083
|
await n2.open();
|
|
1084
1084
|
} catch (e4) {
|
|
1085
|
-
|
|
1085
|
+
q2.showError(e4);
|
|
1086
1086
|
}
|
|
1087
|
-
}), new R("deleteHyperlink", p2, { label: "Delete Link", scopedLabels: { hyperlink: "Delete" }, description: "Remove the hyperlink.", context: () =>
|
|
1088
|
-
|
|
1087
|
+
}), new R("deleteHyperlink", p2, { label: "Delete Link", scopedLabels: { hyperlink: "Delete" }, description: "Remove the hyperlink.", context: () => Y2 }, function(e3, t2) {
|
|
1088
|
+
te2(this, null, null);
|
|
1089
1089
|
}), new k("insertNote", p2, { label: "Insert Note", scopedLabels: { contextMenu: "Insert Note…", insert: "Note" }, shortcut: { key: "F2", modifiers: [M.Shift] }, description: "Add a note to the cell." }, (e3, t2) => {
|
|
1090
1090
|
((e4, t3) => {
|
|
1091
1091
|
e4?.showMessage?.(Z("p", { style: { marginTop: "0px", marginBottom: "0px" }, children: [t3, " is not yet implemented.", G("br", {}), G("br", {}), "Please see the ", G("a", { style: { whiteSpace: "nowrap" }, href: "https://www.sheetxl.com/docs/guides/introduction/roadmap", target: "_blank", rel: "noopener", children: "SheetXL Roadmap" }), "."] }));
|
|
1092
|
-
})(
|
|
1093
|
-
}), new R("updateComments", p2, { label: "Comments", scopedLabels: { contextMenu: "Insert Comments…", insert: "Comments…" }, shortcut: { key: "M", modifiers: [M.Ctrl, M.Alt] }, description: "Add a comment to the current cell.", context: () =>
|
|
1092
|
+
})(q2, t2.label());
|
|
1093
|
+
}), new R("updateComments", p2, { label: "Comments", scopedLabels: { contextMenu: "Insert Comments…", insert: "Comments…" }, shortcut: { key: "M", modifiers: [M.Ctrl, M.Alt] }, description: "Add a comment to the current cell.", context: () => Y2 }, async function(e3, t2) {
|
|
1094
1094
|
const o2 = this, n2 = { context: t2.context(), onUpdateComments: (e4) => {
|
|
1095
|
-
|
|
1095
|
+
le2(o2, e4);
|
|
1096
1096
|
} };
|
|
1097
|
-
|
|
1098
|
-
}), new R("deleteComments", p2, { label: "Delete Comments", description: "Remove any comments.", context: () =>
|
|
1099
|
-
|
|
1097
|
+
q2.showWindow?.("comments", n2);
|
|
1098
|
+
}), new R("deleteComments", p2, { label: "Delete Comments", description: "Remove any comments.", context: () => Y2 }, function(e3, t2) {
|
|
1099
|
+
le2(this, null);
|
|
1100
1100
|
}), new R("insertImageFromFile", p2, { label: "Insert Image", scopedLabels: { contextMenu: "Insert Image…", insert: "Image…", insertImage: "From Device…" }, description: "Insert a picture from your device." }, async function(e3 = null) {
|
|
1101
1101
|
let t2 = null, o2 = null;
|
|
1102
|
-
"string" == typeof e3 ? o2 = e3 : t2 = e3?.file ? e3.file : e3, (t2 || (t2 = await K.openFileDialog(o2 ?? "image/*"), t2)) && await
|
|
1102
|
+
"string" == typeof e3 ? o2 = e3 : t2 = e3?.file ? e3.file : e3, (t2 || (t2 = await K.openFileDialog(o2 ?? "image/*"), t2)) && await Re2(this, { file: t2 }, e3?.options);
|
|
1103
1103
|
}), new R("insertImageFromURL", p2, { label: "Insert Image From Web", scopedLabels: { insert: "Image From Web", insertImage: "From the Web…" }, description: "Insert a picture from the web." }, async function(e3) {
|
|
1104
1104
|
if (!e3) {
|
|
1105
|
-
const t2 = await
|
|
1105
|
+
const t2 = await q2.showInputOptions({ title: "Insert Image from Web", description: "Enter the web address for the image to insert.", inputLabel: "Address", initialValue: "https://picsum.photos/360", inputProps: { style: { minWidth: "440px" } }, options: ["Insert"] });
|
|
1106
1106
|
if ("Insert" !== t2.option) return;
|
|
1107
1107
|
e3 = t2.input;
|
|
1108
1108
|
}
|
|
1109
|
-
e3 &&
|
|
1109
|
+
e3 && Re2(this, { fetch: e3 });
|
|
1110
1110
|
}), new k("insertTable", p2, { label: "Insert Table", scopedLabels: { contextMenu: "Insert Table…", insert: "Table" }, description: "Create a table. Tables enable auto formatting, sorting, filtering, and other advanced features.", shortcut: [{ key: "L", modifiers: [M.Ctrl] }, { key: "T", modifiers: [M.Alt, M.Ctrl] }] }, function() {
|
|
1111
|
-
|
|
1111
|
+
fe2(this);
|
|
1112
1112
|
}), new R("editTable", p2, { label: "Edit Table…", scopedLabels: { table: "Edit…", namedItem: "Edit…" }, description: "Edit the table to adjust formatting, sorting, filtering, or other advanced features." }, function(e3) {
|
|
1113
1113
|
let t2 = null, o2 = false;
|
|
1114
|
-
e3.isITable ? t2 = e3 : e3.getValue() && (t2 = e3.getValue(), o2 = true),
|
|
1114
|
+
e3.isITable ? t2 = e3 : e3.getValue() && (t2 = e3.getValue(), o2 = true), ve2(this, t2, o2);
|
|
1115
1115
|
}), new R("deleteTable", p2, { label: "Delete Table", scopedLabels: { delete: "Table", table: "Delete", namedItem: "Delete" }, description: "Remove the table.\n\nThe table and table specific styling will be removed but the values will be preserved." }, function(e3) {
|
|
1116
|
-
|
|
1116
|
+
ye2(this, e3, true);
|
|
1117
1117
|
}), new R("convertTableToRange", p2, { label: "Convert To Range", description: "Convert the table into a normal range of cells.\n\nThe values and the formatting are preserved." }, function(e3) {
|
|
1118
|
-
|
|
1118
|
+
ye2(this, e3, false);
|
|
1119
1119
|
}), new R("tableTotalRowToggle", p2, { label: "Toggle Table Total Row", description: "Toggle Total Row on/off.", scopedLabels: { table: "Total Row" }, shortcut: { key: "T", modifiers: [M.Ctrl, M.Alt] } }, function() {
|
|
1120
1120
|
const e3 = this.context().table();
|
|
1121
1121
|
e3 && e3.setShowTotals(!e3.getShowTotals());
|
|
@@ -1125,343 +1125,343 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1125
1125
|
}), new R("autoFilterToggle", p2, { label: "Toggle Filter", scopedLabels: { filter: "Filter" }, description: "Toggle Auto Filter on/off.", shortcut: { key: "L", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
1126
1126
|
const e3 = this.context().table();
|
|
1127
1127
|
e3 && e3.setShowFilterButton(!e3.getShowFilterButton());
|
|
1128
|
-
}), new R("autoFilterReapply", p2, { label: "Reapply Filter", scopedLabels: { filter: "Reapply" }, description: "Reapply the filter and sort with the latest changes.", shortcut: { key: "L", modifiers: [M.Ctrl, M.Alt] } }), new R("autoFilterClear", p2, { label: "Clear Filter", scopedLabels: { filter: "Clear" }, description: "Clear the filters criteria from the current filter.." }), new k("startEditValueAbove", p2, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: "Quote", modifiers: [M.Ctrl] }, { key: '"', modifiers: [M.Ctrl, M.Shift] }] },
|
|
1129
|
-
|
|
1128
|
+
}), new R("autoFilterReapply", p2, { label: "Reapply Filter", scopedLabels: { filter: "Reapply" }, description: "Reapply the filter and sort with the latest changes.", shortcut: { key: "L", modifiers: [M.Ctrl, M.Alt] } }), new R("autoFilterClear", p2, { label: "Clear Filter", scopedLabels: { filter: "Clear" }, description: "Clear the filters criteria from the current filter.." }), new k("startEditValueAbove", p2, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: "Quote", modifiers: [M.Ctrl] }, { key: '"', modifiers: [M.Ctrl, M.Shift] }] }, Te2), new R("formatPainterToggle", p2, { label: "Format Painter", description: "Apply style to another part of your workbook." }), new k("insertCells", p2, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", shortcut: { key: "=", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
1129
|
+
ce2(this);
|
|
1130
1130
|
}), new k("insertCellsShiftRight", p2, { label: "Insert Cells (Shift Right)", scopedLabels: { insertCells: "Shift Right" }, description: "Insert cells to the left and shift the current cells to the right." }, function() {
|
|
1131
|
-
|
|
1131
|
+
ce2(this, s.Orientation.Column);
|
|
1132
1132
|
}), new k("insertCellsShiftDown", p2, { label: "Insert Cells (Shift Down)", scopedLabels: { insertCells: "Shift Down" }, description: "Insert cells above and shift the current cells downward." }, function() {
|
|
1133
|
-
return
|
|
1133
|
+
return ce2(this, s.Orientation.Row);
|
|
1134
1134
|
}), new k("insertRows", p2, { label: "Insert Row(s)", scopedLabels: { insertCells: "Row(s)" }, description: "Insert a row above the current position." }, function() {
|
|
1135
|
-
return
|
|
1135
|
+
return ce2(this, s.Orientation.Row, true);
|
|
1136
1136
|
}), new k("insertColumns", p2, { label: "Insert Column(s)", scopedLabels: { insertCells: "Column(s)" }, description: "Insert a column before the current position." }, function() {
|
|
1137
|
-
return
|
|
1137
|
+
return ce2(this, s.Orientation.Column, true);
|
|
1138
1138
|
}), new k("insertRowsAfter", p2, { label: "Insert Row Below", scopedLabels: { insertCells: "Row Below" }, description: "Insert a row below the current position." }, function() {
|
|
1139
|
-
return
|
|
1139
|
+
return ce2(this, s.Orientation.Row, true, true);
|
|
1140
1140
|
}), new k("insertColumnsAfter", p2, { label: "Insert Column After", scopedLabels: { insertCells: "Column After" }, description: "Insert a column after the current position." }, function() {
|
|
1141
|
-
return
|
|
1141
|
+
return ce2(this, s.Orientation.Column, true, true);
|
|
1142
1142
|
}), new k("deleteCells", p2, { label: "Delete Cells", scopedLabels: { deleteCells: "At Selection" }, description: "Delete the cells.", shortcut: { key: "-", modifiers: [M.Ctrl] } }, function() {
|
|
1143
|
-
return
|
|
1143
|
+
return ke2(this);
|
|
1144
1144
|
}), new k("deleteCellsShiftUp", p2, { label: "Delete Cells (Shift Up)", scopedLabels: { deleteCells: "Shift up" }, description: "Delete cells the current current downward." }, function() {
|
|
1145
|
-
return
|
|
1145
|
+
return ke2(this, s.Orientation.Row);
|
|
1146
1146
|
}), new k("deleteCellsShiftLeft", p2, { label: "Delete Cells (Shift Left)", scopedLabels: { deleteCells: "Shift Left" }, description: "Delete cells the current cells to the right." }, function() {
|
|
1147
|
-
return
|
|
1147
|
+
return ke2(this, s.Orientation.Column);
|
|
1148
1148
|
}), new k("deleteRows", p2, { label: "Delete Rows", scopedLabels: { deleteCells: "Rows" }, description: "Delete the rows at the current selection." }, function() {
|
|
1149
|
-
return
|
|
1149
|
+
return ke2(this, s.Orientation.Row, true);
|
|
1150
1150
|
}), new k("deleteColumns", p2, { label: "Delete Columns", scopedLabels: { deleteCells: "Columns" }, description: "Delete the columns at the current selection." }, function() {
|
|
1151
|
-
return
|
|
1151
|
+
return ke2(this, s.Orientation.Column, true);
|
|
1152
1152
|
}), new k("flashFill", p2, { label: "Flash Fill", description: "Do a flash fill.", shortcut: [{ key: "e", modifiers: [M.Ctrl] }, { key: "e", modifiers: [M.Ctrl, M.Alt] }] }), new k("fillDown", p2, { label: "Fill Down", description: "Copy the top-most value from the selection to the bottom of the selection.", shortcut: { key: "d", modifiers: [M.Ctrl] } }, function() {
|
|
1153
|
-
return
|
|
1153
|
+
return Me2(this, s.Direction.Down);
|
|
1154
1154
|
}), new k("fillRight", p2, { label: "Fill Right", description: "Copy the left-most value from the selection to the right of the selection.", shortcut: [{ key: "r", modifiers: [M.Ctrl] }] }, function() {
|
|
1155
|
-
return
|
|
1155
|
+
return Me2(this, s.Direction.Right);
|
|
1156
1156
|
}), new k("fillUp", p2, { label: "Fill Up", description: "Copy the bottom-most value from the selection to the top of the selection." }, function() {
|
|
1157
|
-
return
|
|
1157
|
+
return Me2(this, s.Direction.Up);
|
|
1158
1158
|
}), new k("fillLeft", p2, { label: "Fill Left", description: "Copy the right-most value from the selection to the left of the selection." }, function() {
|
|
1159
|
-
return
|
|
1159
|
+
return Me2(this, s.Direction.Left);
|
|
1160
1160
|
}), new k("formatBorderAddOutline", p2, { label: "Add Outline Border", description: "Apply an outline border.", shortcut: { key: "7", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
1161
|
-
return
|
|
1161
|
+
return ee2(this, { border: { left: { style: n.StrokeStyle.Thin, color: null }, top: { style: n.StrokeStyle.Thin, color: null }, right: { style: n.StrokeStyle.Thin, color: null }, bottom: { style: n.StrokeStyle.Thin, color: null } } });
|
|
1162
1162
|
}), new k("formatBorderClearOutline", p2, { label: "Remove Outline Border", description: "Remove the outline border.", shortcut: { key: "_", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
1163
|
-
return
|
|
1163
|
+
return ee2(this, { border: null });
|
|
1164
1164
|
}), new k("formatIndentDecrease", p2, { label: "Decrease Indent", description: "Move your content closer to the border." }, function() {
|
|
1165
|
-
return
|
|
1165
|
+
return ee2(this, (e3) => {
|
|
1166
1166
|
const t2 = e3.getAlignment().getIndent() - 1;
|
|
1167
1167
|
return { alignment: { indent: t2 > 0 ? t2 : 0 } };
|
|
1168
1168
|
});
|
|
1169
1169
|
}), new k("formatIndentIncrease", p2, { label: "Increase Indent", description: "Move your content further from the border." }, function() {
|
|
1170
|
-
return
|
|
1170
|
+
return ee2(this, (e3) => {
|
|
1171
1171
|
const t2 = { alignment: { indent: e3.getAlignment().getIndent() + 1 } };
|
|
1172
1172
|
return e3.getAlignment().getHorizontal() === l.HorizontalAlignment.General && (t2.alignment.horizontal = l.HorizontalAlignment.Left), t2;
|
|
1173
1173
|
});
|
|
1174
1174
|
}), new R("mergeToggle", p2, { label: "Merge", description: "Combine and center the contents into a single cell.", shortcut: { key: "m", modifiers: [M.Ctrl] } }), new k("mergeHorizontal", p2, { label: "Merge Horizontally", description: "Combine the contents into horizontal rows." }), new k("mergeVertical", p2, { label: "Merge Vertically", description: "Combine the contents into vertical columns." }), new k("unmerge", p2, { label: "Unmerge", description: "Split merged cells into multiple cells." }), new k("clearContents", p2, { label: "Clear Contents", scopedLabels: { clear: "Contents" }, description: "Clear only the contents in the cells.\n\nThe formatting is not cleared.", shortcut: { key: "Delete" } }, function() {
|
|
1175
|
-
|
|
1175
|
+
ae2(this, o.Content.Values);
|
|
1176
1176
|
}), new k("clearFormats", p2, { label: "Clear Formats", scopedLabels: { clear: "Formats" }, description: "Clear only the formatting that is applied to the cells." }, function() {
|
|
1177
|
-
|
|
1177
|
+
ae2(this, o.Content.Formats);
|
|
1178
1178
|
}), new k("clearHyperlinks", p2, { label: "Clear Hyperlinks", scopedLabels: { clear: "Hyperlinks" }, description: "Clear only the hyperlinks in the cells." }, function() {
|
|
1179
|
-
|
|
1179
|
+
ae2(this, o.Content.Hyperlinks);
|
|
1180
1180
|
}), new k("clearComments", p2, { label: "Clear Comments", scopedLabels: { clear: "Comments" }, description: "Clear the comments from the cells." }, function() {
|
|
1181
|
-
|
|
1181
|
+
ae2(this, o.Content.Comments);
|
|
1182
1182
|
}), new k("clearAll", p2, { label: "Clear All", scopedLabels: { clear: "All" }, description: "Clears everything from the cells.\n\nAll contents and formatting are removed.", shortcut: { key: "Delete", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
1183
|
-
|
|
1184
|
-
}), new R("freezeToggle", p2, { label: "Freeze Panes", description: "Keep rows and columns visible while the rest of the sheet scrolls (based on current selection)." }), new R("freezeToggleHorizontal", p2, { label: "Freeze Top Rows", description: "Keep the top rows visible while scrolling through the rest of the sheet." }), new R("freezeToggleVertical", p2, { label: "Freeze Left Columns", description: "Keep the left columns visible while scrolling through the rest of the sheet." }), new k("unfreeze", p2, { label: "Unfreeze Panes", description: "Unfreeze both the rows and columns." }), new k("autoFitRows", p2, { label: "Autofit Rows", description: "Adjust the rows to the best height." }), new k("autoFitColumns", p2, { label: "Autofit Columns", description: "Adjust the columns to the best width." })], []),
|
|
1183
|
+
ae2(this);
|
|
1184
|
+
}), new R("freezeToggle", p2, { label: "Freeze Panes", description: "Keep rows and columns visible while the rest of the sheet scrolls (based on current selection)." }), new R("freezeToggleHorizontal", p2, { label: "Freeze Top Rows", description: "Keep the top rows visible while scrolling through the rest of the sheet." }), new R("freezeToggleVertical", p2, { label: "Freeze Left Columns", description: "Keep the left columns visible while scrolling through the rest of the sheet." }), new k("unfreeze", p2, { label: "Unfreeze Panes", description: "Unfreeze both the rows and columns." }), new k("autoFitRows", p2, { label: "Autofit Rows", description: "Adjust the rows to the best height." }), new k("autoFitColumns", p2, { label: "Autofit Columns", description: "Adjust the columns to the best width." })], []), Ne2 = oe(() => {
|
|
1185
1185
|
let e3 = null;
|
|
1186
|
-
return e3 = h2 ? h2.createChildGroup(p2, "sheet", false) : new T(p2, "sheet"), e3.addCommands(
|
|
1187
|
-
}, [h2,
|
|
1188
|
-
|
|
1186
|
+
return e3 = h2 ? h2.createChildGroup(p2, "sheet", false) : new T(p2, "sheet"), e3.addCommands(Ie2, true), e3;
|
|
1187
|
+
}, [h2, Ie2]), [Ve2, Le2] = ne(false), [He2, Be2] = ne(false);
|
|
1188
|
+
ie(() => {
|
|
1189
1189
|
if (x2.current !== r2 || !C2) return;
|
|
1190
1190
|
const e3 = C2.getCoords(), t2 = r2.getTables().getItems({ address: e3[0] });
|
|
1191
|
-
|
|
1191
|
+
_2((e4) => K.isEqualArrays(e4, t2) ? e4 : t2), v2 && t2[0] && J.isCellWithinRange(v2, t2[0].getRange().getCoords()) ? ue2(t2[0] ?? null) : ue2(null);
|
|
1192
1192
|
const o2 = r2.getSelectedRanges(), n2 = o2.getMerges().length > 0, l2 = o2.isOverlapping();
|
|
1193
1193
|
let i3 = true;
|
|
1194
1194
|
for (let t3 = 0; i3 && t3 < e3.length; t3++) i3 = J.isSingleCell(e3[t3]);
|
|
1195
|
-
|
|
1196
|
-
}, [
|
|
1197
|
-
const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = "formatPainter" ===
|
|
1198
|
-
|
|
1199
|
-
if (t2) return void
|
|
1200
|
-
return
|
|
1195
|
+
Be2(l2), Le2(0 === t2.length && !l2 && (n2 || !i3));
|
|
1196
|
+
}, [Ee2, C2, r2]), I(h2, null, { onChange: () => {
|
|
1197
|
+
const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = "formatPainter" === $2.getMode()?.key;
|
|
1198
|
+
Ne2.getCommand("formatPainterToggle").update({ disabled: e3 || !h2?.getCommand("copy"), state: () => t2 }).updateCallback(() => {
|
|
1199
|
+
if (t2) return void $2.setMode(null);
|
|
1200
|
+
return Ne2.getCommand("copy").execute({ editMode: { key: "formatPainter", description: "Use the mouse to apply the copied format to another selection.", cursor: `url("data:image/svg+xml,%3Csvg width='30' height='22' viewBox='0 0 30 22' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 26.737611,2.811068 V 2.0241451 c 0,-0.4328075 -0.354115,-0.7869227 -0.786923,-0.7869227 h -9.443074 c -0.432808,0 -0.786923,0.3541152 -0.786923,0.7869227 v 3.1476914 c 0,0.4328076 0.354115,0.7869235 0.786923,0.7869235 h 9.443074 c 0.432808,0 0.786923,-0.3541159 0.786923,-0.7869235 V 4.3849137 h 0.786923 v 3.1476915 h -7.869229 v 8.6561518 c 0,0.432808 0.354116,0.786923 0.786923,0.786923 h 1.573846 c 0.432807,0 0.786923,-0.354115 0.786923,-0.786923 V 9.1064513 H 29.09838 V 2.811068 Z M 10.714339,6.2116849 c -1.60877,0.0017 -3.2175361,0.00425 -4.8263048,0.00609 0.0012,1.5756989 0.00158,3.1513905 0.00244,4.7270891 -1.5978311,0.0017 -3.1956617,0.0034 -4.7934919,0.0043 0.00335,1.740011 0.00655,3.480012 0.00988,5.220023 1.5954589,0 3.1909181,0 4.7863775,0 -0.0017,1.606793 -0.00353,3.213585 -0.0051,4.820375 1.7440936,0.0016 3.4881881,0.0033 5.2322842,0.005 -0.0014,-1.608503 -0.0018,-3.217015 -0.0028,-4.825519 1.58518,0 3.17036,0 4.755543,0 0.0033,-1.741851 0.0073,-3.483705 0.01072,-5.225556 -1.58808,0 -3.176158,0 -4.764238,0 0,-1.5775391 0,-3.1550792 0,-4.7326117 -0.135065,1.3e-4 -0.270128,1.982e-4 -0.40519,4.047e-4 z' stroke='black' fill='white'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer` } });
|
|
1201
1201
|
});
|
|
1202
|
-
} }, [
|
|
1203
|
-
|
|
1204
|
-
} }),
|
|
1205
|
-
|
|
1202
|
+
} }, [$2, ze2, h2]), bt(r2.getView(), { onFreezeSplitChange: () => {
|
|
1203
|
+
De2();
|
|
1204
|
+
} }), bt(r2.getSelection(), { onChange: () => {
|
|
1205
|
+
X2();
|
|
1206
1206
|
} });
|
|
1207
|
-
const
|
|
1208
|
-
|
|
1209
|
-
}, darkMode: d2.darkMode, autoColor: r2.getStyles().parseColor(d2.strokeFill), schemeLookup: r2.getStyles().schemeLookup(), recentColors: () => r2.getStyles().recentColors(), addRecentColor: (e3) => r2.getStyles().addRecentColor(e3), clearRecentColors: () => r2.getStyles().clearRecentColors() }) }),
|
|
1207
|
+
const Oe2 = () => {
|
|
1208
|
+
Ne2.getCommand("sheetViewFormatGridlinesColor").update({ state: () => r2.getView().getGridLineColor(), context: () => ({ onColorSelect: (e3) => {
|
|
1209
|
+
}, darkMode: d2.darkMode, autoColor: r2.getStyles().parseColor(d2.strokeFill), schemeLookup: r2.getStyles().schemeLookup(), recentColors: () => r2.getStyles().recentColors(), addRecentColor: (e3) => r2.getStyles().addRecentColor(e3), clearRecentColors: () => r2.getStyles().clearRecentColors() }) }), Ne2.getCommand("formatSheetTabColor").updateCallback((e3) => {
|
|
1210
1210
|
r2.setTabColor(e3);
|
|
1211
|
-
}).update({ state: () => r2?.getTabColor() ??
|
|
1212
|
-
}, darkMode: d2.darkMode, autoColor:
|
|
1213
|
-
},
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
}, darkMode: d2.darkMode, quickBorder:
|
|
1211
|
+
}).update({ state: () => r2?.getTabColor() ?? xt, context: () => ({ onColorSelect: (e3) => {
|
|
1212
|
+
}, darkMode: d2.darkMode, autoColor: xt, schemeLookup: r2.getStyles().schemeLookup(), recentColors: () => r2.getStyles().recentColors(), addRecentColor: (e3) => r2.getStyles().addRecentColor(e3), clearRecentColors: () => r2.getStyles().clearRecentColors() }) });
|
|
1213
|
+
}, Pe2 = () => {
|
|
1214
|
+
Ne2.getCommand("formatBorder").update({ context: () => ({ onBorderSelect: (e3) => {
|
|
1215
|
+
L2(e3);
|
|
1216
|
+
}, darkMode: d2.darkMode, quickBorder: V2, autoColor: r2.getStyles().getNormal().getFont().getFill(), autoStyle: n.StrokeStyle.Thin, createTemporaryBorder: (e3) => r2.getStyles().getNormal().createTemporaryStyle({ border: e3 }).getBorder(), schemeLookup: r2.getStyles().schemeLookup() }) });
|
|
1217
1217
|
};
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
}, [
|
|
1218
|
+
ie(() => {
|
|
1219
|
+
Pe2();
|
|
1220
|
+
}, [V2]), ie(() => {
|
|
1221
1221
|
const e3 = !r2.getProtection().isInsertHyperlinksAllowed();
|
|
1222
|
-
|
|
1223
|
-
const t2 =
|
|
1224
|
-
|
|
1225
|
-
}, [
|
|
1226
|
-
const e3 =
|
|
1227
|
-
|
|
1228
|
-
}, [
|
|
1222
|
+
Ne2.getCommand("openHyperlink").update({ disabled: !Y2().getHyperlink() }), Ne2.getCommand("deleteHyperlink").update({ disabled: e3 || !Y2().getHyperlink() });
|
|
1223
|
+
const t2 = Y2().getHyperlink() ? "Edit" : "Insert", o2 = "Link";
|
|
1224
|
+
Ne2.getCommand("updateHyperlink").update({ label: () => (Y2().getHyperlink(), `${t2} ${o2}`), scopedLabels: { contextMenu: `${t2} ${o2}…`, insert: `${o2}…`, hyperlink: `${t2}…` }, disabled: e3 });
|
|
1225
|
+
}, [Y2()?.getHyperlink(), ze2]), ie(() => {
|
|
1226
|
+
const e3 = Y2().getComments(), t2 = () => e3 ? "Edit" : "Insert", o2 = () => e3 ? "Comments" : "Comment";
|
|
1227
|
+
Ne2.getCommand("updateComments").update({ label: () => `${t2()} ${o2()}`, scopedLabels: { contextMenu: `${t2()} ${o2()}…`, insert: `${o2()}…` } });
|
|
1228
|
+
}, [Y2()?.getComments(), ze2]), bt(r2, { onViewChange: () => {
|
|
1229
1229
|
const e3 = r2.getView();
|
|
1230
|
-
|
|
1230
|
+
Ne2.getCommand("sheetViewToggleFormulaView").update({ state: e3.isShowFormulas() }), Ne2.getCommand("sheetViewToggleShowZeros").update({ state: e3.isShowZeros() }), Ne2.getCommand("gridlinesToggle").update({ state: e3.isShowColumnGridlines() || e3.isShowRowGridlines() }), Ne2.getCommand("sheetViewToggleGridlinesColumns").update({ state: e3.isShowColumnGridlines() }), Ne2.getCommand("sheetViewToggleGridlinesRows").update({ state: e3.isShowRowGridlines() }), Ne2.getCommand("sheetViewToggleShowHeadings").update({ state: e3.isShowColumnHeaders() || e3.isShowRowHeaders() }), Ne2.getCommand("sheetViewToggleShowHeadingColumns").update({ state: e3.isShowColumnHeaders() }), Ne2.getCommand("sheetViewToggleShowHeadingRows").update({ state: e3.isShowRowHeaders() }), Ne2.getCommand("sheetViewToggleShowHeadingsNumeric").update({ state: () => r2.getView().getColumnHeaderStyle() === u.HeaderTextStyle.Zero && r2.getView().getRowHeaderStyle() === u.HeaderTextStyle.Zero }), Oe2();
|
|
1231
1231
|
}, onTabColorChange: () => {
|
|
1232
|
-
|
|
1232
|
+
Oe2();
|
|
1233
1233
|
}, onMergesChange: () => {
|
|
1234
|
-
|
|
1234
|
+
De2();
|
|
1235
1235
|
}, onMovablesChange: () => {
|
|
1236
|
-
|
|
1236
|
+
De2();
|
|
1237
1237
|
}, onTablesChange: () => {
|
|
1238
|
-
|
|
1238
|
+
De2();
|
|
1239
1239
|
}, onProtectionChange: () => {
|
|
1240
|
-
|
|
1240
|
+
De2(), Fe2();
|
|
1241
1241
|
}, onStyleChange: () => {
|
|
1242
|
-
|
|
1243
|
-
} }),
|
|
1244
|
-
|
|
1245
|
-
}, [d2]),
|
|
1246
|
-
const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 =
|
|
1247
|
-
|
|
1242
|
+
Oe2(), Pe2(), De2();
|
|
1243
|
+
} }), ie(() => {
|
|
1244
|
+
Oe2(), Pe2();
|
|
1245
|
+
}, [d2]), ie(() => {
|
|
1246
|
+
const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = U2.length > 0 && !ge2 || e3, o2 = qe2(ge2), n2 = { context: o2 };
|
|
1247
|
+
Ne2.getCommand("editTable").update(n2), Ne2.getCommand("deleteTable").update(n2), Ne2.getCommand("convertTableToRange").update(n2);
|
|
1248
1248
|
const l2 = { context: o2, disabled: t2 };
|
|
1249
|
-
|
|
1250
|
-
const i3 = { context: o2, disabled: t2 || 0 ===
|
|
1251
|
-
|
|
1252
|
-
}, [
|
|
1253
|
-
|
|
1249
|
+
Ne2.getCommand("formatTableStyle").update({ label: ge2 ? "Apply Table Style" : "Format As Table", ...l2 }), Ne2.getCommand("formatTableStyleClearCellStyles").update(l2), Ne2.getCommand("deleteTableStyle").update(l2), Ne2.getCommand("convertTableToRange").update(l2), Ne2.getCommand("insertTable").update({ disabled: t2 || U2.length > 0 });
|
|
1250
|
+
const i3 = { context: o2, disabled: t2 || 0 === U2.length };
|
|
1251
|
+
Ne2.getCommand("tableHeaderRowToggle").update(i3), Ne2.getCommand("tableTotalRowToggle").update(i3), Ne2.getCommand("autoFilterToggle").update(i3), Ne2.getCommand("formatTableStyleClearTableStyle").update({ ...i3, disabled: i3.disabled || !ge2 || null === ge2.getStyleOptions().name });
|
|
1252
|
+
}, [ge2, U2, ze2]), ie(() => {
|
|
1253
|
+
Ne2.getCommand("sheetZoomOut").updateCallback(() => {
|
|
1254
1254
|
r2.getView().update({ zoomScale: K.findNextStep(r2.getView().getZoomScale(), false) });
|
|
1255
|
-
}),
|
|
1255
|
+
}), Ne2.getCommand("sheetZoomIn").updateCallback(() => {
|
|
1256
1256
|
r2.getView().update({ zoomScale: K.findNextStep(r2.getView().getZoomScale()) });
|
|
1257
|
-
}),
|
|
1257
|
+
}), Ne2.getCommand("sheetZoom100").updateCallback(() => {
|
|
1258
1258
|
r2.getView().update({ zoomScale: 100 });
|
|
1259
|
-
}),
|
|
1259
|
+
}), Ne2.getCommand("gridlinesToggle").updateCallback(() => {
|
|
1260
1260
|
const e3 = r2.getView().isShowColumnGridlines() && r2.getView().isShowRowGridlines();
|
|
1261
1261
|
r2.getView().update({ showColumnGridlines: !e3, showRowGridlines: !e3 });
|
|
1262
|
-
}),
|
|
1262
|
+
}), Ne2.getCommand("sheetViewToggleGridlinesRows").updateCallback(() => {
|
|
1263
1263
|
r2.getView().update({ showRowGridlines: !r2.getView().isShowRowGridlines() });
|
|
1264
|
-
}),
|
|
1264
|
+
}), Ne2.getCommand("sheetViewToggleGridlinesColumns").updateCallback(() => {
|
|
1265
1265
|
r2.getView().update({ showColumnGridlines: !r2.getView().isShowColumnGridlines() });
|
|
1266
|
-
}),
|
|
1266
|
+
}), Ne2.getCommand("sheetViewFormatGridlinesColor").updateCallback((e3) => {
|
|
1267
1267
|
r2.getView().update({ gridLineColor: e3 });
|
|
1268
|
-
}),
|
|
1268
|
+
}), Ne2.getCommand("sheetViewToggleShowHeadings").updateCallback(() => {
|
|
1269
1269
|
const e3 = r2.getView().isShowColumnHeaders() && r2.getView().isShowRowHeaders();
|
|
1270
1270
|
r2.getView().update({ showColumnHeaders: !e3, showRowHeaders: !e3 });
|
|
1271
|
-
}),
|
|
1271
|
+
}), Ne2.getCommand("sheetViewToggleShowHeadingColumns").updateCallback(() => {
|
|
1272
1272
|
r2.getView().update({ showColumnHeaders: !r2.getView().isShowColumnHeaders() });
|
|
1273
|
-
}),
|
|
1273
|
+
}), Ne2.getCommand("sheetViewToggleShowHeadingRows").updateCallback(() => {
|
|
1274
1274
|
r2.getView().update({ showRowHeaders: !r2.getView().isShowRowHeaders() });
|
|
1275
|
-
}),
|
|
1275
|
+
}), Ne2.getCommand("sheetViewToggleShowHeadingsNumeric").updateCallback(() => {
|
|
1276
1276
|
const e3 = r2.getView().getColumnHeaderStyle() === u.HeaderTextStyle.Zero && r2.getView().getRowHeaderStyle() === u.HeaderTextStyle.Zero;
|
|
1277
1277
|
r2.getView().update({ columnHeaderStyle: e3 ? u.HeaderTextStyle.A1 : u.HeaderTextStyle.Zero, rowHeaderStyle: e3 ? u.HeaderTextStyle.One : u.HeaderTextStyle.Zero });
|
|
1278
|
-
}),
|
|
1278
|
+
}), Ne2.getCommand("sheetViewToggleFormulaView").updateCallback(() => {
|
|
1279
1279
|
r2.getView().update({ showFormulas: !r2.getView().isShowFormulas() });
|
|
1280
|
-
}),
|
|
1280
|
+
}), Ne2.getCommand("sheetViewToggleShowZeros").updateCallback(() => {
|
|
1281
1281
|
r2.getView().update({ showZeros: !r2.getView().isShowZeros() });
|
|
1282
|
-
}),
|
|
1282
|
+
}), Ne2.getCommand("calculate").updateCallback(() => {
|
|
1283
1283
|
r2.getEntireRange().calculate(true);
|
|
1284
|
-
}),
|
|
1284
|
+
}), Ne2.getCommand("insertFunction").update({ context: () => ({ searchByCategory: async (e3) => {
|
|
1285
1285
|
const t2 = r2.getWorkbook();
|
|
1286
1286
|
if (!t2) return K.EmptyArray;
|
|
1287
1287
|
const o2 = await t2.getScripts().searchFunctions({ category: e3, includeBuiltIn: true });
|
|
1288
1288
|
return o2.sort((e4, t3) => e4.getName().localeCompare(t3.getName())), o2;
|
|
1289
1289
|
} }) });
|
|
1290
|
-
}, [r2]),
|
|
1290
|
+
}, [r2]), ie(() => {
|
|
1291
1291
|
const e3 = r2.getView().getFreezePanes(), t2 = () => 0 !== e3.coords.rowIndex, o2 = () => 0 !== e3.coords.colIndex, n2 = () => 0 !== e3.coords.rowIndex || 0 !== e3.coords.colIndex;
|
|
1292
|
-
|
|
1292
|
+
Ne2.getCommand("freezeToggle").updateCallback(() => {
|
|
1293
1293
|
n2() ? r2.getView().setFreezePanes(null) : n2() ? o2() ? r2.getView().setFreezePanes({ coords: { rowIndex: v2.rowIndex } }) : t2() && r2.getView().setFreezePanes({ coords: { colIndex: v2.colIndex } }) : r2.getView().setFreezePanes({ coords: v2 });
|
|
1294
|
-
}).update({ state: n2, disabled: () => !v2 || !n2() && 0 === v2.rowIndex && 0 === v2.colIndex }),
|
|
1294
|
+
}).update({ state: n2, disabled: () => !v2 || !n2() && 0 === v2.rowIndex && 0 === v2.colIndex }), Ne2.getCommand("freezeToggleHorizontal").updateCallback(() => {
|
|
1295
1295
|
r2.getView().setFreezePanes({ coords: { rowIndex: t2() ? 0 : v2.rowIndex } });
|
|
1296
|
-
}).update({ state: t2, disabled: () => !v2 || !t2() && 0 === v2.rowIndex }),
|
|
1296
|
+
}).update({ state: t2, disabled: () => !v2 || !t2() && 0 === v2.rowIndex }), Ne2.getCommand("freezeToggleVertical").updateCallback(() => {
|
|
1297
1297
|
r2.getView().setFreezePanes({ coords: { colIndex: o2() ? 0 : v2.colIndex } });
|
|
1298
|
-
}).update({ state: o2, disabled: () => !v2 || !o2() && 0 === v2.colIndex }),
|
|
1298
|
+
}).update({ state: o2, disabled: () => !v2 || !o2() && 0 === v2.colIndex }), Ne2.getCommand("unfreeze").updateCallback(() => {
|
|
1299
1299
|
r2.getView().setFreezePanes(null);
|
|
1300
1300
|
}).update({ disabled: () => !n2() });
|
|
1301
|
-
}, [
|
|
1302
|
-
const
|
|
1303
|
-
return
|
|
1304
|
-
|
|
1301
|
+
}, [Ee2, v2, r2, d2]);
|
|
1302
|
+
const $e2 = Y2().getStyle(), We2 = $e2.getFont(), Ue2 = $e2.getAlignment(), _e2 = Ue2.getHorizontal(), Ge2 = Ue2.getVertical(), Ze2 = Ue2.getOverflow(), Ke2 = Ue2.getRotation();
|
|
1303
|
+
return ie(() => {
|
|
1304
|
+
Ne2.getCommand("formatCellStyle").update({ context: () => ({ styles: () => r2.getStyles(), named: () => Y2().getStyle(true).getNamed(), bodyStyle: we2, createTemporaryCell: (e4) => r2.createTemporaryCell(e4) }) }), Ne2.getCommand("formatFillColor").update({ state: () => {
|
|
1305
1305
|
let e4 = null;
|
|
1306
|
-
const t3 =
|
|
1306
|
+
const t3 = $e2.getFill();
|
|
1307
1307
|
return t3?.getType() === m.Type.Solid ? e4 = t3.getColor() : t3?.getType() === m.Type.Gradient ? e4 = t3.getStops()?.[0]?.getColor() : t3?.getType() === m.Type.Pattern && (e4 = t3.getBackground()), e4;
|
|
1308
1308
|
}, context: () => {
|
|
1309
1309
|
const e4 = r2.getStyles();
|
|
1310
1310
|
return { onColorSelect: (e5) => {
|
|
1311
|
-
|
|
1312
|
-
}, darkMode: d2.darkMode, quickColor: H2, autoColor:
|
|
1313
|
-
} }),
|
|
1311
|
+
B2(e5 ?? xt);
|
|
1312
|
+
}, darkMode: d2.darkMode, quickColor: H2, autoColor: xt, schemeLookup: e4.schemeLookup(), recentColors: e4.recentColors(), addRecentColor: (t3) => e4.addRecentColor(t3), clearRecentColors: () => e4.clearRecentColors() };
|
|
1313
|
+
} }), Ne2.getCommand("formatFontColor").update({ state: () => We2.toJSON()?.fill ? We2.getFill() : null, context: () => {
|
|
1314
1314
|
const e4 = r2.getStyles();
|
|
1315
1315
|
return { onColorSelect: (e5) => {
|
|
1316
|
-
|
|
1317
|
-
}, darkMode: d2.darkMode, quickColor:
|
|
1318
|
-
} }),
|
|
1316
|
+
P2(e5);
|
|
1317
|
+
}, darkMode: d2.darkMode, quickColor: O2, autoColor: e4.getNormal().getFont().getFill(), schemeLookup: e4.schemeLookup(), recentColors: e4.recentColors(), addRecentColor: (t3) => e4.addRecentColor(t3), clearRecentColors: () => e4.clearRecentColors() };
|
|
1318
|
+
} }), Ne2.getCommand("formatNumberFormat").update({ state: () => $e2.getNumberFormat(), context: () => Y2 }), Ne2.getCommand("formatNumberDialog").update({ state: () => $e2.getNumberFormat(), context: () => Y2 }), Ne2.getCommand("formatFontFamily").update({ state: () => We2.getFamily() }), Ne2.getCommand("formatFontSize").update({ state: () => We2.getSize() });
|
|
1319
1319
|
const e3 = function() {
|
|
1320
|
-
const e4 =
|
|
1320
|
+
const e4 = We2.getWeight() || 0;
|
|
1321
1321
|
return !isNaN(e4) && e4 > 500;
|
|
1322
1322
|
};
|
|
1323
|
-
|
|
1324
|
-
|
|
1323
|
+
Ne2.getCommand("formatBoldToggle").updateCallback(function() {
|
|
1324
|
+
ee2(this, { font: { weight: e3() ? 400 : 700 } });
|
|
1325
1325
|
}).update({ state: e3 });
|
|
1326
1326
|
const t2 = function() {
|
|
1327
|
-
return
|
|
1327
|
+
return We2.getStyle() === a.Style.Italic;
|
|
1328
1328
|
};
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
}).update({ state: t2 }),
|
|
1332
|
-
|
|
1333
|
-
}).update({ state:
|
|
1334
|
-
|
|
1335
|
-
}).update({ state:
|
|
1336
|
-
|
|
1337
|
-
}).update({ state:
|
|
1338
|
-
|
|
1339
|
-
}).update({ state:
|
|
1340
|
-
|
|
1341
|
-
}).update({ state:
|
|
1342
|
-
|
|
1343
|
-
}).update({ state:
|
|
1344
|
-
|
|
1345
|
-
}).update({ state:
|
|
1346
|
-
const o2 = () =>
|
|
1347
|
-
|
|
1348
|
-
|
|
1329
|
+
Ne2.getCommand("formatItalicToggle").updateCallback(function() {
|
|
1330
|
+
ee2(this, { font: { style: t2() ? a.Style.Normal : a.Style.Italic } });
|
|
1331
|
+
}).update({ state: t2 }), Ne2.getCommand("formatStrikeThroughToggle").updateCallback(function() {
|
|
1332
|
+
ee2(this, { font: { strike: !We2.getStrike() } });
|
|
1333
|
+
}).update({ state: We2.getStrike() }), Ne2.getCommand("formatUnderlinedToggle").updateCallback(function() {
|
|
1334
|
+
ee2(this, { font: { underline: We2.getUnderline() !== a.UnderlineStyle.Single ? a.UnderlineStyle.Single : a.UnderlineStyle.None } });
|
|
1335
|
+
}).update({ state: We2.getUnderline() === a.UnderlineStyle.Single }), Ne2.getCommand("formatUnderlinedDoubleToggle").updateCallback(function() {
|
|
1336
|
+
ee2(this, { font: { underline: We2.getUnderline() !== a.UnderlineStyle.Double ? a.UnderlineStyle.Double : a.UnderlineStyle.None } });
|
|
1337
|
+
}).update({ state: We2.getUnderline() === a.UnderlineStyle.Double }), Ne2.getCommand("formatUnderlinedAccountingToggle").updateCallback(function() {
|
|
1338
|
+
ee2(this, { font: { underline: We2.getUnderline() !== a.UnderlineStyle.SingleAccounting ? a.UnderlineStyle.SingleAccounting : a.UnderlineStyle.None } });
|
|
1339
|
+
}).update({ state: We2.getUnderline() === a.UnderlineStyle.SingleAccounting }), Ne2.getCommand("formatUnderlinedAccountingDoubleToggle").updateCallback(function() {
|
|
1340
|
+
ee2(this, { font: { underline: We2.getUnderline() !== a.UnderlineStyle.DoubleAccounting ? a.UnderlineStyle.DoubleAccounting : a.UnderlineStyle.None } });
|
|
1341
|
+
}).update({ state: We2.getUnderline() === a.UnderlineStyle.DoubleAccounting }), Ne2.getCommand("formatSuperscriptToggle").updateCallback(function() {
|
|
1342
|
+
ee2(this, { font: { verticalAlign: We2.getVerticalAlignment() !== a.VerticalAlignment.Super ? a.VerticalAlignment.Super : a.VerticalAlignment.Baseline } });
|
|
1343
|
+
}).update({ state: We2.getVerticalAlignment() === a.VerticalAlignment.Super }), Ne2.getCommand("formatSubscriptToggle").updateCallback(function() {
|
|
1344
|
+
ee2(this, { font: { verticalAlign: We2.getVerticalAlignment() !== a.VerticalAlignment.Sub ? a.VerticalAlignment.Sub : a.VerticalAlignment.Baseline } });
|
|
1345
|
+
}).update({ state: We2.getVerticalAlignment() === a.VerticalAlignment.Sub });
|
|
1346
|
+
const o2 = () => Ze2 === l.Overflow.Visible;
|
|
1347
|
+
Ne2.getCommand("formatTextOverflowVisibleToggle").updateCallback(function() {
|
|
1348
|
+
ee2(this, { alignment: { overflow: (o2(), l.Overflow.Visible) } });
|
|
1349
1349
|
}).update({ state: o2 });
|
|
1350
|
-
const n2 = () =>
|
|
1351
|
-
|
|
1352
|
-
|
|
1350
|
+
const n2 = () => Ze2 === l.Overflow.Wrap;
|
|
1351
|
+
Ne2.getCommand("formatTextOverflowWrapToggle").updateCallback(function() {
|
|
1352
|
+
ee2(this, { alignment: { overflow: n2() ? l.Overflow.Visible : l.Overflow.Wrap } });
|
|
1353
1353
|
}).update({ state: n2 });
|
|
1354
1354
|
const i3 = function() {
|
|
1355
|
-
return
|
|
1355
|
+
return Ze2 === l.Overflow.Clip;
|
|
1356
1356
|
};
|
|
1357
|
-
|
|
1358
|
-
|
|
1357
|
+
Ne2.getCommand("formatTextOverflowClipToggle").updateCallback(function() {
|
|
1358
|
+
ee2(this, { alignment: { overflow: i3() ? l.Overflow.Visible : l.Overflow.Clip } });
|
|
1359
1359
|
}).update({ state: i3 });
|
|
1360
1360
|
const s2 = function() {
|
|
1361
|
-
return
|
|
1361
|
+
return Ze2 === l.Overflow.Shrink;
|
|
1362
1362
|
};
|
|
1363
|
-
|
|
1364
|
-
|
|
1363
|
+
Ne2.getCommand("formatTextOverflowShrinkToggle").updateCallback(function() {
|
|
1364
|
+
ee2(this, { alignment: { overflow: s2() ? l.Overflow.Visible : l.Overflow.Shrink } });
|
|
1365
1365
|
}).update({ state: s2 });
|
|
1366
1366
|
const c2 = function() {
|
|
1367
|
-
return
|
|
1367
|
+
return Ze2 === l.Overflow.Shrink;
|
|
1368
1368
|
};
|
|
1369
|
-
|
|
1370
|
-
|
|
1369
|
+
Ne2.getCommand("formatTextOverflowEllipsisToggle").updateCallback(function() {
|
|
1370
|
+
ee2(this, { alignment: { overflow: c2() ? l.Overflow.Visible : l.Overflow.Ellipsis } });
|
|
1371
1371
|
}).update({ state: c2, disabled: true });
|
|
1372
1372
|
const g2 = function() {
|
|
1373
|
-
return
|
|
1373
|
+
return Ge2 === l.VerticalAlignment.Top;
|
|
1374
1374
|
};
|
|
1375
|
-
|
|
1376
|
-
|
|
1375
|
+
Ne2.getCommand("formatAlignTopToggle").updateCallback(function() {
|
|
1376
|
+
ee2(this, { alignment: { vertical: g2() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Top } });
|
|
1377
1377
|
}).update({ state: g2 });
|
|
1378
1378
|
const u2 = function() {
|
|
1379
|
-
return
|
|
1379
|
+
return Ge2 === l.VerticalAlignment.Center;
|
|
1380
1380
|
};
|
|
1381
|
-
|
|
1382
|
-
|
|
1381
|
+
Ne2.getCommand("formatAlignMiddleToggle").updateCallback(function() {
|
|
1382
|
+
ee2(this, { alignment: { vertical: u2() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Center } });
|
|
1383
1383
|
}).update({ state: u2 });
|
|
1384
1384
|
const h3 = function() {
|
|
1385
|
-
return
|
|
1385
|
+
return Ge2 === l.VerticalAlignment.Bottom;
|
|
1386
1386
|
};
|
|
1387
|
-
|
|
1388
|
-
|
|
1387
|
+
Ne2.getCommand("formatAlignBottomToggle").updateCallback(function() {
|
|
1388
|
+
ee2(this, { alignment: { vertical: (h3(), l.VerticalAlignment.Bottom) } });
|
|
1389
1389
|
}).update({ state: h3 });
|
|
1390
1390
|
const p3 = function() {
|
|
1391
|
-
return
|
|
1391
|
+
return Ge2 === l.VerticalAlignment.Justify;
|
|
1392
1392
|
};
|
|
1393
|
-
|
|
1394
|
-
|
|
1393
|
+
Ne2.getCommand("formatAlignJustifyVerticalToggle").updateCallback(function() {
|
|
1394
|
+
ee2(this, { alignment: { vertical: p3() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Justify } });
|
|
1395
1395
|
}).update({ state: p3 });
|
|
1396
1396
|
const f3 = function() {
|
|
1397
|
-
return
|
|
1397
|
+
return Ge2 === l.VerticalAlignment.Distributed;
|
|
1398
1398
|
};
|
|
1399
|
-
|
|
1400
|
-
|
|
1399
|
+
Ne2.getCommand("formatAlignDistributedVerticalToggle").updateCallback(function() {
|
|
1400
|
+
ee2(this, { alignment: { vertical: f3() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Distributed } });
|
|
1401
1401
|
}).update({ state: f3 });
|
|
1402
1402
|
const w3 = function() {
|
|
1403
|
-
return
|
|
1403
|
+
return _e2 === l.HorizontalAlignment.Left;
|
|
1404
1404
|
};
|
|
1405
|
-
|
|
1406
|
-
|
|
1405
|
+
Ne2.getCommand("formatAlignLeftToggle").updateCallback(function() {
|
|
1406
|
+
ee2(this, { alignment: { horizontal: w3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Left } });
|
|
1407
1407
|
}).update({ state: w3 });
|
|
1408
1408
|
const q3 = function() {
|
|
1409
|
-
return
|
|
1409
|
+
return _e2 === l.HorizontalAlignment.Center;
|
|
1410
1410
|
};
|
|
1411
|
-
|
|
1412
|
-
|
|
1411
|
+
Ne2.getCommand("formatAlignCenterToggle").updateCallback(function() {
|
|
1412
|
+
ee2(this, { alignment: { horizontal: q3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Center } });
|
|
1413
1413
|
}).update({ state: q3 });
|
|
1414
1414
|
const v3 = function() {
|
|
1415
|
-
return
|
|
1415
|
+
return _e2 === l.HorizontalAlignment.CenterContinuous;
|
|
1416
1416
|
};
|
|
1417
|
-
|
|
1417
|
+
Ne2.getCommand("formatAlignCenterContinuousToggle").updateCallback(function() {
|
|
1418
1418
|
const e4 = { alignment: { horizontal: v3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.CenterContinuous, rotation: null } };
|
|
1419
|
-
|
|
1419
|
+
ee2(this, e4);
|
|
1420
1420
|
}).update({ state: v3 });
|
|
1421
1421
|
const y3 = function() {
|
|
1422
|
-
return
|
|
1422
|
+
return _e2 === l.HorizontalAlignment.Fill;
|
|
1423
1423
|
};
|
|
1424
|
-
|
|
1424
|
+
Ne2.getCommand("formatAlignFillToggle").updateCallback(function() {
|
|
1425
1425
|
const e4 = { alignment: { horizontal: y3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Fill, rotation: null } };
|
|
1426
|
-
|
|
1426
|
+
ee2(this, e4);
|
|
1427
1427
|
}).update({ state: y3 });
|
|
1428
1428
|
const C3 = function() {
|
|
1429
|
-
return
|
|
1429
|
+
return _e2 === l.HorizontalAlignment.Distributed;
|
|
1430
1430
|
};
|
|
1431
|
-
|
|
1432
|
-
|
|
1431
|
+
Ne2.getCommand("formatAlignDistributedHorizontalToggle").updateCallback(function() {
|
|
1432
|
+
ee2(this, { alignment: { horizontal: C3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Distributed } });
|
|
1433
1433
|
}).update({ state: C3 });
|
|
1434
1434
|
const b3 = function() {
|
|
1435
|
-
return
|
|
1435
|
+
return _e2 === l.HorizontalAlignment.Right;
|
|
1436
1436
|
};
|
|
1437
|
-
|
|
1438
|
-
|
|
1437
|
+
Ne2.getCommand("formatAlignRightToggle").updateCallback(function() {
|
|
1438
|
+
ee2(this, { alignment: { horizontal: b3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Right } });
|
|
1439
1439
|
}).update({ state: b3 });
|
|
1440
1440
|
const S2 = function() {
|
|
1441
|
-
return
|
|
1441
|
+
return _e2 === l.HorizontalAlignment.Justify;
|
|
1442
1442
|
};
|
|
1443
|
-
|
|
1444
|
-
|
|
1443
|
+
Ne2.getCommand("formatAlignJustifyToggle").updateCallback(function() {
|
|
1444
|
+
ee2(this, { alignment: { horizontal: S2() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Justify } });
|
|
1445
1445
|
}).update({ state: S2 });
|
|
1446
|
-
const x3 = !r2.getProtection().isFormatCellsAllowed(), k2 =
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
}).update({ disabled: x3 || k2, state: 0 ===
|
|
1450
|
-
|
|
1451
|
-
}).update({ disabled: x3 || k2, state: 45 ===
|
|
1452
|
-
|
|
1453
|
-
}).update({ disabled: x3 || k2, state: 90 ===
|
|
1454
|
-
|
|
1455
|
-
}).update({ disabled: x3 || k2, state: 270 ===
|
|
1456
|
-
|
|
1457
|
-
}).update({ disabled: x3 || k2, state: 315 ===
|
|
1458
|
-
|
|
1459
|
-
}).update({ disabled: x3 || k2, state:
|
|
1460
|
-
}, [
|
|
1446
|
+
const x3 = !r2.getProtection().isFormatCellsAllowed(), k2 = _e2 === l.HorizontalAlignment.CenterContinuous || _e2 === l.HorizontalAlignment.Fill;
|
|
1447
|
+
Ne2.getCommand("formatTextRotate0").updateCallback(function(e4) {
|
|
1448
|
+
ee2(this, { alignment: { rotation: 0 } });
|
|
1449
|
+
}).update({ disabled: x3 || k2, state: 0 === Ke2 }), Ne2.getCommand("formatTextRotate45").updateCallback(function(e4) {
|
|
1450
|
+
ee2(this, { alignment: { rotation: e4 ?? 1 ? 45 : 0 } });
|
|
1451
|
+
}).update({ disabled: x3 || k2, state: 45 === Ke2 }), Ne2.getCommand("formatTextRotate90").updateCallback(function(e4) {
|
|
1452
|
+
ee2(this, { alignment: { rotation: e4 ?? 1 ? 90 : 0 } });
|
|
1453
|
+
}).update({ disabled: x3 || k2, state: 90 === Ke2 }), Ne2.getCommand("formatTextRotate270").updateCallback(function(e4) {
|
|
1454
|
+
ee2(this, { alignment: { rotation: e4 ?? 1 ? 270 : 0 } });
|
|
1455
|
+
}).update({ disabled: x3 || k2, state: 270 === Ke2 }), Ne2.getCommand("formatTextRotate315").updateCallback(function(e4) {
|
|
1456
|
+
ee2(this, { alignment: { rotation: e4 ?? 1 ? 315 : 0 } });
|
|
1457
|
+
}).update({ disabled: x3 || k2, state: 315 === Ke2 }), Ne2.getCommand("formatTextRotateCustom").updateCallback(function(e4) {
|
|
1458
|
+
ee2(this, { alignment: { rotation: e4 } });
|
|
1459
|
+
}).update({ disabled: x3 || k2, state: Ke2 ?? 0 });
|
|
1460
|
+
}, [$e2, r2, d2, H2, O2]), ie(() => {
|
|
1461
1461
|
const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = r2.getSelectedRanges().getMerges().length > 0, o2 = async (e4, t3) => {
|
|
1462
|
-
|
|
1462
|
+
Q2(t3, async (o3) => {
|
|
1463
1463
|
const n3 = async (n4 = false) => {
|
|
1464
|
-
const r4 = await Promise.resolve(
|
|
1464
|
+
const r4 = await Promise.resolve(q2.showBusy(t3.label()));
|
|
1465
1465
|
try {
|
|
1466
1466
|
const t4 = o3.getSelectedRanges();
|
|
1467
1467
|
if (t4.merge({ orientations: e4, discardMultipleValues: n4 }), e4 === s.Orientations.Both) {
|
|
@@ -1481,13 +1481,13 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1481
1481
|
if ("discardMultipleValues" !== e5.type) throw e5;
|
|
1482
1482
|
r3 = true;
|
|
1483
1483
|
}
|
|
1484
|
-
if (r3 &&
|
|
1485
|
-
if ("Merge" !== await
|
|
1484
|
+
if (r3 && q2.showOptions) {
|
|
1485
|
+
if ("Merge" !== await q2.showOptions({ title: "Confirm", description: "Merging cells will only keep the upper-left value. Some data will be discarded. Continue?", options: ["Merge", "Cancel"], defaultOption: "Merge" })) return;
|
|
1486
1486
|
await n3(true);
|
|
1487
1487
|
}
|
|
1488
1488
|
}, void 0, void 0, false);
|
|
1489
1489
|
}, n2 = (e4) => {
|
|
1490
|
-
|
|
1490
|
+
Q2(e4, async (e5) => {
|
|
1491
1491
|
try {
|
|
1492
1492
|
const t3 = e5.getSelectedRanges();
|
|
1493
1493
|
t3.unmerge();
|
|
@@ -1498,160 +1498,160 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1498
1498
|
}
|
|
1499
1499
|
});
|
|
1500
1500
|
};
|
|
1501
|
-
|
|
1501
|
+
Ne2.getCommand("mergeToggle").updateCallback(function() {
|
|
1502
1502
|
J.isSingleCell(r2.getSelectedRange().getCoords()) || (t2 ? n2(this) : o2(s.Orientations.Both, this));
|
|
1503
|
-
}).update({ state: t2, disabled: !
|
|
1503
|
+
}).update({ state: t2, disabled: !Ve2 || e3 }), Ne2.getCommand("mergeHorizontal").updateCallback(function() {
|
|
1504
1504
|
o2(s.Orientations.Column, this);
|
|
1505
|
-
}).update({ disabled: !
|
|
1505
|
+
}).update({ disabled: !Ve2 || e3 }), Ne2.getCommand("mergeVertical").updateCallback(function() {
|
|
1506
1506
|
o2(s.Orientations.Row, this);
|
|
1507
|
-
}).update({ disabled: !
|
|
1507
|
+
}).update({ disabled: !Ve2 }), Ne2.getCommand("unmerge").updateCallback(function() {
|
|
1508
1508
|
n2(this);
|
|
1509
|
-
}).update({ disabled: !t2 || !
|
|
1509
|
+
}).update({ disabled: !t2 || !Ve2 || e3 });
|
|
1510
1510
|
const i3 = { disabled: e3 };
|
|
1511
|
-
|
|
1512
|
-
|
|
1511
|
+
Ne2.getCommand("hideRows").updateCallback(function() {
|
|
1512
|
+
Q2(this, (e4) => {
|
|
1513
1513
|
e4.getRowHeaders().setHidden(e4.getSelectedRanges().getCoords(), true);
|
|
1514
1514
|
});
|
|
1515
|
-
}).update(i3),
|
|
1516
|
-
|
|
1515
|
+
}).update(i3), Ne2.getCommand("hideColumns").updateCallback(function() {
|
|
1516
|
+
Q2(this, (e4) => {
|
|
1517
1517
|
e4.getColumnHeaders().setHidden(e4.getSelectedRanges().getCoords(), true);
|
|
1518
1518
|
});
|
|
1519
|
-
}).update(i3),
|
|
1520
|
-
|
|
1519
|
+
}).update(i3), Ne2.getCommand("unhideRows").updateCallback(function() {
|
|
1520
|
+
Q2(this, (e4) => {
|
|
1521
1521
|
e4.getRowHeaders().setHidden(e4.getSelectedRanges().getCoords(), false);
|
|
1522
1522
|
});
|
|
1523
|
-
}).update(i3),
|
|
1524
|
-
|
|
1523
|
+
}).update(i3), Ne2.getCommand("unhideColumns").updateCallback(function() {
|
|
1524
|
+
Q2(this, (e4) => {
|
|
1525
1525
|
e4.getColumnHeaders().setHidden(e4.getSelectedRanges().getCoords(), false);
|
|
1526
1526
|
});
|
|
1527
|
-
}).update(i3),
|
|
1528
|
-
|
|
1527
|
+
}).update(i3), Ne2.getCommand("autoFitRows").updateCallback(function() {
|
|
1528
|
+
Q2(this, (e4) => {
|
|
1529
1529
|
e4.getSelectedRanges().autoFit({ orientations: s.Orientations.Row });
|
|
1530
1530
|
});
|
|
1531
|
-
}).update(i3),
|
|
1532
|
-
|
|
1531
|
+
}).update(i3), Ne2.getCommand("autoFitColumns").updateCallback(function() {
|
|
1532
|
+
Q2(this, (e4) => {
|
|
1533
1533
|
e4.getSelectedRanges().autoFit({ orientations: s.Orientations.Column });
|
|
1534
1534
|
});
|
|
1535
1535
|
}).update(i3);
|
|
1536
1536
|
let a2 = false, d3 = 0, c2 = false, g2 = false, u2 = 0, h3 = false;
|
|
1537
1537
|
!C2 || e3 || He2 || (a2 = C2.isEntireColumnsAny(), a2 && !C2.isEntireColumns() ? c2 = true : d3 = C2.getColumnCount(), g2 = C2.isEntireRowsAny(), g2 && !C2.isEntireRows() ? h3 = true : u2 = C2.getRowCount());
|
|
1538
1538
|
const m2 = { disabled: e3 || C2 && 1 !== C2.getCount() };
|
|
1539
|
-
|
|
1540
|
-
const p3 = { disabled: a2 || g2 || e3 || He2 },
|
|
1541
|
-
|
|
1542
|
-
const
|
|
1543
|
-
|
|
1539
|
+
Ne2.getCommand("sortAscending").update(m2), Ne2.getCommand("sortDescending").update(m2);
|
|
1540
|
+
const p3 = { disabled: a2 || g2 || e3 || He2 }, f3 = a2 || e3 || He2 || h3;
|
|
1541
|
+
f3 && (d3 = 1);
|
|
1542
|
+
const w3 = g2 || e3 || He2 || c2;
|
|
1543
|
+
w3 && (u2 = 1);
|
|
1544
1544
|
let v3 = "", y3 = "", b3 = "", S2 = "", x3 = "", k2 = "", R2 = "", M2 = "", T2 = "";
|
|
1545
|
-
d3 > 1 && (k2 = y3 = d3 + " ", R2 = b3 = "s"), u2 > 1 && (M2 = S2 = u2 + " ", T2 = x3 = "s"), "copy" ===
|
|
1545
|
+
d3 > 1 && (k2 = y3 = d3 + " ", R2 = b3 = "s"), u2 > 1 && (M2 = S2 = u2 + " ", T2 = x3 = "s"), "copy" === $2.getMode()?.key ? (v3 = S2 = y3 = "Copied ", b3 = x3 = "s") : "cut" === $2.getMode()?.key && (v3 = S2 = y3 = "Cut ", b3 = x3 = "s");
|
|
1546
1546
|
let A3 = "", z2 = "";
|
|
1547
1547
|
if (C2) {
|
|
1548
1548
|
const e4 = C2.getDefaultShiftOrientation() === s.Orientation.Column;
|
|
1549
|
-
A3 = ` (${e4 ? "Shift Right" : "Shift Down"})`, z2 = ` (${e4 ? "Shift Left" : "Shift up"})`,
|
|
1549
|
+
A3 = ` (${e4 ? "Shift Right" : "Shift Down"})`, z2 = ` (${e4 ? "Shift Left" : "Shift up"})`, Ne2.getCommand("deleteCells").update({ label: `Delete Cells${z2}` });
|
|
1550
1550
|
}
|
|
1551
|
-
|
|
1552
|
-
}, [
|
|
1551
|
+
Ne2.getCommand("insertCells").update({ label: `Insert ${v3}Cells${A3}`, scopedLabels: { insertCells: `${v3}At Selection` } }), Ne2.getCommand("insertCellsShiftRight").update(p3), Ne2.getCommand("insertCellsShiftDown").update(p3), Ne2.getCommand("deleteCellsShiftUp").update(p3), Ne2.getCommand("deleteCellsShiftLeft").update(p3), Ne2.getCommand("insertRows").update({ label: `Insert ${S2}Row${x3}`, scopedLabels: { insertCells: `${S2}Row${x3}` }, disabled: w3 }), Ne2.getCommand("insertRowsAfter").update({ label: `Insert ${S2}Row${x3} Below`, disabled: w3 }), Ne2.getCommand("insertColumns").update({ label: `Insert ${y3}Column${b3}`, scopedLabels: { insertCells: `${y3}Column${b3}` }, disabled: f3 }), Ne2.getCommand("insertColumnsAfter").update({ label: `Insert ${y3}Column${b3} After`, disabled: f3 }), Ne2.getCommand("deleteRows").update({ label: `Delete ${M2}Row${T2}`, scopedLabels: { deleteCells: `${M2}Row${T2}` }, disabled: w3 }), Ne2.getCommand("deleteColumns").update({ label: `Delete ${k2}Column${R2}`, scopedLabels: { deleteCells: `${k2}Column${R2}` }, disabled: f3 });
|
|
1552
|
+
}, [Ee2, Ve2, He2, C2, $2, q2, ze2]), ie(() => {
|
|
1553
1553
|
const e3 = r2.getProtection(), t2 = r2.getProtection().isLocked(), o2 = !e3.isFormatCellsAllowed(), n2 = { disabled: o2 };
|
|
1554
|
-
|
|
1554
|
+
Ne2.getCommand("protectionSheetToggle").updateCallback(async (o3, n3) => {
|
|
1555
1555
|
let l2 = null;
|
|
1556
1556
|
try {
|
|
1557
1557
|
if (t2) {
|
|
1558
1558
|
let t3 = null;
|
|
1559
1559
|
if (e3.hasPassword()) {
|
|
1560
|
-
const e4 = await
|
|
1560
|
+
const e4 = await q2.showInputOptions({ title: "Password Required", description: "Enter a password to unprotected", options: ["Unprotect", "Cancel"], defaultOption: "Unprotect", inputType: "password" });
|
|
1561
1561
|
if ("Unprotect" !== e4.option) return;
|
|
1562
1562
|
t3 = e4.input;
|
|
1563
1563
|
}
|
|
1564
|
-
l2 = await Promise.resolve(
|
|
1565
|
-
} else l2 = await Promise.resolve(
|
|
1564
|
+
l2 = await Promise.resolve(q2.showBusy(n3.label())), await e3.unlock(t3);
|
|
1565
|
+
} else l2 = await Promise.resolve(q2.showBusy(n3.label())), await e3.lock();
|
|
1566
1566
|
l2?.();
|
|
1567
1567
|
} catch (e4) {
|
|
1568
|
-
l2?.(),
|
|
1568
|
+
l2?.(), q2.showError(e4);
|
|
1569
1569
|
}
|
|
1570
|
-
}).update({ state: t2, label: () => t2 ? "Unprotect Sheet" : "Protect Sheet", scopedLabels: { sheet: t2 ? "Unprotect" : "Protect" } }),
|
|
1571
|
-
const i3 =
|
|
1572
|
-
|
|
1573
|
-
}, [
|
|
1570
|
+
}).update({ state: t2, label: () => t2 ? "Unprotect Sheet" : "Protect Sheet", scopedLabels: { sheet: t2 ? "Unprotect" : "Protect" } }), Ne2.getCommand("deleteTable").update(n2), Ne2.getCommand("sortAscending").update(n2), Ne2.getCommand("sortDescending").update(n2), Ne2.getCommand("sortCustom")?.update(n2), Ne2.getCommand("updateComments").update(n2), Ne2.getCommand("deleteComments").update(n2), Ne2.getCommand("insertChart")?.update(n2), Ne2.getCommand("insertImageFromFile").update(n2), Ne2.getCommand("insertImageFromURL").update(n2), Ne2.getCommand("formatBorder").update(n2), Ne2.getCommand("formatFillColor").update(n2), Ne2.getCommand("formatFontColor").update(n2), Ne2.getCommand("formatBoldToggle").update(n2), Ne2.getCommand("formatItalicToggle").update(n2), Ne2.getCommand("formatUnderlinedToggle").update(n2), Ne2.getCommand("formatStrikeThroughToggle").update(n2), Ne2.getCommand("formatSuperscriptToggle").update(n2), Ne2.getCommand("formatSubscriptToggle").update(n2), Ne2.getCommand("formatAlignTopToggle").update(n2), Ne2.getCommand("formatTextOverflowVisibleToggle").update(n2), Ne2.getCommand("formatTextOverflowWrapToggle").update(n2), Ne2.getCommand("formatTextOverflowClipToggle").update(n2), Ne2.getCommand("formatTextOverflowShrinkToggle").update(n2), Ne2.getCommand("formatAlignMiddleToggle").update(n2), Ne2.getCommand("formatAlignBottomToggle").update(n2), Ne2.getCommand("formatAlignDistributedVerticalToggle").update(n2), Ne2.getCommand("formatAlignJustifyVerticalToggle").update(n2), Ne2.getCommand("formatAlignLeftToggle").update(n2), Ne2.getCommand("formatAlignCenterToggle").update(n2), Ne2.getCommand("formatAlignRightToggle").update(n2), Ne2.getCommand("formatAlignJustifyToggle").update(n2), Ne2.getCommand("formatAlignCenterContinuousToggle").update(n2), Ne2.getCommand("formatAlignDistributedHorizontalToggle").update(n2), Ne2.getCommand("formatAlignFillToggle").update(n2), Ne2.getCommand("formatFontSizeIncrease").update(n2), Ne2.getCommand("formatFontSizeDecrease").update(n2), Ne2.getCommand("formatFontFamily").update(n2), Ne2.getCommand("formatFontSize").update(n2), Ne2.getCommand("formatNumberFormat").update(n2), Ne2.getCommand("formatNumberFormatGeneralStyle").update(n2), Ne2.getCommand("formatNumberFormatNumberStyle").update(n2), Ne2.getCommand("formatNumberFormatTimeStyle").update(n2), Ne2.getCommand("formatNumberFormatDateStyle").update(n2), Ne2.getCommand("formatNumberFormatAccountingStyle").update(n2), Ne2.getCommand("formatNumberFormatPercentStyle").update(n2), Ne2.getCommand("formatNumberFormatScientificStyle").update(n2), Ne2.getCommand("formatNumberFormatCommaStyle").update(n2), Ne2.getCommand("formatNumberFormatIncreaseDecimal").update(n2), Ne2.getCommand("formatNumberFormatDecreaseDecimal").update(n2), Ne2.getCommand("hideColumns").update(n2), Ne2.getCommand("unhideColumns").update(n2), Ne2.getCommand("hideRows").update(n2), Ne2.getCommand("unhideRows").update(n2), Ne2.getCommand("insertFunctionSum").update(n2), Ne2.getCommand("insertFunctionAverage").update(n2), Ne2.getCommand("insertFunctionCount").update(n2), Ne2.getCommand("insertFunctionMax").update(n2), Ne2.getCommand("insertFunctionMin").update(n2), Ne2.getCommand("insertFunction").update(n2), Ne2.getCommand("startEditCurrentTime").update(n2), Ne2.getCommand("startEditCurrentDate").update(n2), Ne2.getCommand("startEditValueAbove").update(n2), Ne2.getCommand("fillDown").update(n2), Ne2.getCommand("fillRight").update(n2), Ne2.getCommand("fillUp").update(n2), Ne2.getCommand("fillLeft").update(n2), Ne2.getCommand("formatCellStyle").update(n2), Ne2.getCommand("formatTableStyle").update(n2), Ne2.getCommand("formatPainterToggle").update(n2), Ne2.getCommand("formatBorderAddOutline").update(n2), Ne2.getCommand("formatBorderClearOutline").update(n2), Ne2.getCommand("formatIndentDecrease").update(n2), Ne2.getCommand("formatIndentIncrease").update(n2), Ne2.getCommand("clearContents").update(n2), Ne2.getCommand("clearFormats").update(n2), Ne2.getCommand("clearAll").update(n2), Ne2.getCommand("clearComments").update(n2), Ne2.getCommand("clearHyperlinks").update(n2), Ne2.getCommand("autoFilterClear").update(n2), Ne2.getCommand("autoFilterReapply").update(n2);
|
|
1571
|
+
const i3 = _e2 === l.HorizontalAlignment.CenterContinuous || _e2 === l.HorizontalAlignment.Fill, a2 = { disabled: o2 || i3 };
|
|
1572
|
+
Ne2.getCommand("formatTextRotate0").update(a2), Ne2.getCommand("formatTextRotate45").update(a2), Ne2.getCommand("formatTextRotate90").update(a2), Ne2.getCommand("formatTextRotate270").update(a2), Ne2.getCommand("formatTextRotate315").update(a2), Ne2.getCommand("formatTextRotateCustom").update(a2), Ne2.getCommand("formatTextRotateVertical").update(a2);
|
|
1573
|
+
}, [Ee2]), Ne2;
|
|
1574
1574
|
}
|
|
1575
|
-
const
|
|
1575
|
+
const Rt = te(le((e2, t2) => {
|
|
1576
1576
|
const { style: o2 = C.EmptyCssProperties, orientation: n2, sheet: l2, onShowTooltip: r2, onCloseTooltip: i2, onScrollOffset: a2, showCustomScrollButtons: s2 = false, offset: d2 = 0, totalSize: c2 = 0, viewportSize: g2 = 0, ...u2 } = e2;
|
|
1577
1577
|
if (!l2) throw new Error("SheetScrollBar needs a sheet model");
|
|
1578
|
-
const [h2] =
|
|
1578
|
+
const [h2] = Me(), m2 = S(r2, [r2]), p2 = S(i2, [i2]), f2 = Fe(h2, t2), [w2, q2] = ne(() => {
|
|
1579
1579
|
const e3 = l2.getView().getTopLeft();
|
|
1580
|
-
return n2 ===
|
|
1580
|
+
return n2 === N.Vertical ? e3.top : e3.left;
|
|
1581
1581
|
}), v2 = () => {
|
|
1582
1582
|
const e3 = l2.getView().getFreezePanes();
|
|
1583
|
-
if (n2 ===
|
|
1583
|
+
if (n2 === N.Vertical) {
|
|
1584
1584
|
if (0 === e3.coords.rowIndex) return { shift: 0, scroll: 0 };
|
|
1585
1585
|
return { shift: l2.getRowHeaders().findOffset(e3.coords.rowIndex) - e3.topLeft.top, scroll: e3.topLeft.top };
|
|
1586
1586
|
}
|
|
1587
1587
|
if (0 === e3.coords.colIndex) return { shift: 0, scroll: 0 };
|
|
1588
1588
|
return { shift: l2.getColumnHeaders().findOffset(e3.coords.colIndex) - e3.topLeft.left, scroll: e3.topLeft.left };
|
|
1589
|
-
}, [y2, b2] =
|
|
1589
|
+
}, [y2, b2] = ne(v2), [x2, k2] = ne(null), [R2, M2] = ne(false), T2 = n2 === N.Vertical ? l2.getRowHeaders() : l2.getColumnHeaders(), A2 = () => {
|
|
1590
1590
|
const e3 = l2.getUsedRange()?.getCoords() ?? J.EmptyRange, t3 = l2.getSelection().getCoords().cell;
|
|
1591
1591
|
return { colIndex: Math.max(e3.colEnd, t3.colIndex), rowIndex: Math.max(e3.rowEnd, t3.rowIndex) };
|
|
1592
|
-
}, [z2, F2] =
|
|
1592
|
+
}, [z2, F2] = ne(A2), E2 = z2 ? (n2 === N.Vertical ? z2.rowIndex : z2.colIndex) + 1 : 0, D2 = () => {
|
|
1593
1593
|
const e3 = A2();
|
|
1594
1594
|
J.isEqualCells(z2, e3) || F2(e3);
|
|
1595
1595
|
};
|
|
1596
|
-
|
|
1596
|
+
bt(l2.getView(), { onFreezeSplitChange: () => {
|
|
1597
1597
|
b2(v2);
|
|
1598
|
-
} }),
|
|
1598
|
+
} }), bt(l2.getSelection(), { onChange: D2 }), bt(l2, { onUsedRangeChange: D2 }), ie(() => {
|
|
1599
1599
|
F2(A2());
|
|
1600
|
-
}, [l2]),
|
|
1600
|
+
}, [l2]), ie(() => {
|
|
1601
1601
|
if (!x2) return R2 && p2?.(), void M2(false);
|
|
1602
1602
|
const e3 = T2.getTextAt(T2.findIndex(w2 / (l2.getView().getZoomScale() / 100) + y2.scroll + y2.shift));
|
|
1603
|
-
M2(true), m2?.({ ...x2, display: (n2 ===
|
|
1603
|
+
M2(true), m2?.({ ...x2, display: (n2 === N.Vertical ? "Row" : "Column") + ": " + e3 });
|
|
1604
1604
|
}, [d2, w2, y2, n2, x2, T2, R2, l2]);
|
|
1605
|
-
const
|
|
1605
|
+
const I2 = S((e3, t3, o3) => {
|
|
1606
1606
|
q2(e3);
|
|
1607
1607
|
const n3 = e3 + y2.scroll, l3 = t3 + y2.shift, r3 = o3 + y2.shift + y2.scroll;
|
|
1608
1608
|
a2?.(n3, l3, r3);
|
|
1609
|
-
}, [a2, y2]),
|
|
1610
|
-
return G(
|
|
1609
|
+
}, [a2, y2]), L2 = d2 - y2.scroll, H2 = g2 - y2.shift, B2 = c2 - (y2.shift + y2.scroll), O2 = T2.findOffset(E2) * (l2.getView().getZoomScale() / 100) - (y2.scroll + y2.shift);
|
|
1610
|
+
return G(V, { ref: f2, style: o2, offset: L2, viewportSize: H2, totalSize: B2, orientation: n2, showCustomScrollButtons: s2, onMouseDown: (e3) => {
|
|
1611
1611
|
k2({ anchor: { x: e3.clientX, y: e3.clientY } }), e3.preventDefault();
|
|
1612
|
-
}, onScrollOffset:
|
|
1612
|
+
}, onScrollOffset: I2, onMouseOut: () => {
|
|
1613
1613
|
k2(null);
|
|
1614
1614
|
}, onMouseUp: () => {
|
|
1615
1615
|
k2(null);
|
|
1616
1616
|
}, minSize: O2, ...u2 });
|
|
1617
1617
|
}));
|
|
1618
|
-
|
|
1619
|
-
const
|
|
1618
|
+
Rt.displayName = "SheetScrollbar";
|
|
1619
|
+
const Mt = (e2, t2, o2 = null) => {
|
|
1620
1620
|
const n2 = [];
|
|
1621
1621
|
for (let l2 = 0; l2 < e2.length; l2++) if (e2[l2].value.isSelectedAll) {
|
|
1622
1622
|
if (e2[l2].min === e2[l2].max && e2[l2].min === o2) continue;
|
|
1623
1623
|
n2.push({ address: { min: e2[l2].min, max: e2[l2].max }, update: t2 });
|
|
1624
1624
|
}
|
|
1625
1625
|
return n2;
|
|
1626
|
-
},
|
|
1627
|
-
const { sheetHeader: o2, gridRef: n2, sheetElement: l2, commands: r2, oppositeSize: i2 = 30, containerWidth: a2, containerHeight: d2, headerText: c2, freezeStart: g2, gridStyle: u2, verticalPadding: h2, horizontalPadding: m2, onSheetContextMenu: p2, onResizeHeadersStart: f2, onResizeHeaders: w2, onResizeHeadersEnd: q2, onResizeHeadersDown: v2, onResizeHeadersUp: y2, scrollPoint: x2, onSelectionStart: k2, onSelectionEnd: R2 } = e2, M2 =
|
|
1628
|
-
|
|
1626
|
+
}, Tt = te(le((e2, t2) => {
|
|
1627
|
+
const { sheetHeader: o2, gridRef: n2, sheetElement: l2, commands: r2, oppositeSize: i2 = 30, containerWidth: a2, containerHeight: d2, headerText: c2, freezeStart: g2, gridStyle: u2, verticalPadding: h2, horizontalPadding: m2, onSheetContextMenu: p2, onResizeHeadersStart: f2, onResizeHeaders: w2, onResizeHeadersEnd: q2, onResizeHeadersDown: v2, onResizeHeadersUp: y2, scrollPoint: x2, onSelectionStart: k2, onSelectionEnd: R2 } = e2, M2 = oe(() => o2.getOrientation(), [o2]), T2 = re(null), [A2, z2] = de((e3) => e3 + 1, 0), [E2, D2] = de((e3) => e3 + 1, 0), I2 = o2?.getSheet(), N2 = re(false);
|
|
1628
|
+
ae(() => {
|
|
1629
1629
|
N2.current = true;
|
|
1630
1630
|
}, [o2]);
|
|
1631
|
-
const
|
|
1631
|
+
const V2 = oe(() => o2.getEntireRange().getCoords().max + 1, [o2]), H2 = oe(() => {
|
|
1632
1632
|
const e3 = M2 === s.Orientation.Column;
|
|
1633
1633
|
return { left: e3 ? x2.left : 0, top: e3 ? 0 : x2.top };
|
|
1634
|
-
}, [x2]), [B2, O2] =
|
|
1635
|
-
|
|
1634
|
+
}, [x2]), [B2, O2] = ne(I2?.getView().getZoomScale() / 100), [P2, $2] = ne(null);
|
|
1635
|
+
bt(o2, { onSizesChange: (e3) => {
|
|
1636
1636
|
O2(I2?.getView().getZoomScale() / 100), me2(ue2());
|
|
1637
1637
|
} });
|
|
1638
|
-
const W2 =
|
|
1638
|
+
const W2 = se(() => {
|
|
1639
1639
|
T2.current?.invalidate(), D2();
|
|
1640
|
-
}, []), U2 =
|
|
1640
|
+
}, []), U2 = se(K.debounce(() => {
|
|
1641
1641
|
W2();
|
|
1642
|
-
}, 10), []), [_2, Z2] =
|
|
1643
|
-
|
|
1642
|
+
}, 10), []), [_2, Z2] = ne(null);
|
|
1643
|
+
bt(o2.getSheet(), { onSelectionChange() {
|
|
1644
1644
|
Z2(I2?.getSelection().getCoords()), U2();
|
|
1645
1645
|
}, onProtectionChange() {
|
|
1646
1646
|
W2();
|
|
1647
1647
|
}, onViewChange() {
|
|
1648
1648
|
U2();
|
|
1649
|
-
} }),
|
|
1649
|
+
} }), ae(() => {
|
|
1650
1650
|
me2(ue2());
|
|
1651
|
-
}, [M2, B2, i2]),
|
|
1651
|
+
}, [M2, B2, i2]), ae(() => {
|
|
1652
1652
|
$2(null), O2(o2?.getSheet().getView().getZoomScale() / 100), me2(ue2());
|
|
1653
1653
|
}, [o2]);
|
|
1654
|
-
const j2 =
|
|
1654
|
+
const j2 = se((e3) => o2.at(e3)?.isHidden() || 0 === o2.at(e3)?.getSize(), [o2]), X2 = se((e3, t3) => o2.hiddenHeadersAt(e3, t3), [j2]), Y2 = S((e3) => o2.isSelected(e3), [o2]), J2 = S((e3) => o2.isSelectedAll(e3), [o2]), Q2 = se(() => o2.getMinSize(), [o2]), ee2 = se(() => o2.getMaxSize(), [o2]), te2 = S((e3, t3, n3) => {
|
|
1655
1655
|
t3 /= B2;
|
|
1656
1656
|
const l3 = { size: t3 = Math.max(Q2(), Math.min(K.roundAccurately(t3, Q2()), ee2())), hidden: false }, r3 = [];
|
|
1657
1657
|
if (t3 <= 0 && (l3.hidden = true, l3.size = n3), r3.push({ address: { min: e3, max: e3 }, update: l3 }), t3 < 0) {
|
|
@@ -1661,14 +1661,14 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1661
1661
|
d3 === i3 + t3 ? a3-- : r3.push({ address: { min: a3, max: a3 }, update: { size: i3 - d3 + t3 } }), e3 - a3 > 1 && r3.push({ address: { min: a3 + 1, max: e3 - 1 }, update: { hidden: true } });
|
|
1662
1662
|
}
|
|
1663
1663
|
o2.updateHeaderPairs(r3), w2?.(e3, t3, n3);
|
|
1664
|
-
}, [A2, o2, B2, w2]),
|
|
1664
|
+
}, [A2, o2, B2, w2]), le2 = S((e3, t3, n3) => {
|
|
1665
1665
|
const l3 = M2 === s.Orientation.Column;
|
|
1666
1666
|
let r3 = null, i3 = { min: e3, max: e3 };
|
|
1667
1667
|
if (o2.isSelectedAll(e3)) {
|
|
1668
1668
|
const a3 = o2.getSelectedRuns();
|
|
1669
1669
|
a3.length > 1 ? r3 = "Resize " + (l3 ? "Columns" : "Rows") : i3 = a3[0];
|
|
1670
1670
|
const s2 = { hidden: t3 <= 0, size: (t3 <= 0 ? n3 : t3) / B2 };
|
|
1671
|
-
o2.updateHeaderPairs(
|
|
1671
|
+
o2.updateHeaderPairs(Mt(a3, s2, e3));
|
|
1672
1672
|
}
|
|
1673
1673
|
if (i3) {
|
|
1674
1674
|
const e4 = i3.max - i3.min + 1;
|
|
@@ -1691,18 +1691,18 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1691
1691
|
}
|
|
1692
1692
|
t3 || a3({ min: e3, max: e3 }), o2.getSheet().getRanges(r3).autoFit({ orientations: n3 ? s.Orientations.Column : s.Orientations.Row });
|
|
1693
1693
|
if (j2(e3)) {
|
|
1694
|
-
const n4 = { hidden: null }, l4 =
|
|
1694
|
+
const n4 = { hidden: null }, l4 = Mt(i3, n4);
|
|
1695
1695
|
t3 || l4.push({ address: e3, update: n4 }), o2.updateHeaderPairs(l4);
|
|
1696
1696
|
}
|
|
1697
1697
|
q2?.(e3, null, "Resize Column(s)");
|
|
1698
1698
|
}, [A2, o2, q2, j2]), ue2 = () => {
|
|
1699
1699
|
const e3 = M2 === s.Orientation.Column;
|
|
1700
1700
|
return { getColOffset: (t3) => e3 ? o2.findOffset(t3) : 0 === t3 ? 0 : i2 / B2, getColIndex: (t3) => e3 ? o2.findIndex(t3) : 0, getRowOffset: (t3) => e3 ? 0 === t3 ? 0 : i2 / B2 : o2.findOffset(t3), getRowIndex: (t3) => e3 ? 0 : o2.findIndex(t3) };
|
|
1701
|
-
}, [he2, me2] =
|
|
1701
|
+
}, [he2, me2] = ne(() => ue2()), pe2 = se((e3, t3) => !(e3.nativeEvent.which === L.Right) || !J2(M2 === s.Orientation.Column ? t3.colIndex : t3.rowIndex), [M2, J2]), be2 = S((e3) => {
|
|
1702
1702
|
l2.focusSheet();
|
|
1703
1703
|
}, [l2]), Se2 = S((e3) => {
|
|
1704
1704
|
I2?.getSelection().updateCoords(e3);
|
|
1705
|
-
}, [I2]), { ...xe2 } =
|
|
1705
|
+
}, [I2]), { ...xe2 } = fe({ gridRef: n2, commands: null, layout: he2, selection: _2, fillHandleBorderColor: u2.body.fill, selectionBackgroundColor: u2.selection.fill, selectionBorderColor: u2.selection.strokeFill, selectionRemoveBackgroundColor: u2.selectionRemove.fill, selectionRemoveBorderColor: u2.selectionRemove.strokeFill, disableTouchSelection: true, onSelectionChange: Se2, canSelectionSpanMergedCells: (e3) => {
|
|
1706
1706
|
const t3 = I2.getRange(e3);
|
|
1707
1707
|
return t3.isEntireColumns() || t3.isEntireRows();
|
|
1708
1708
|
} }), ke2 = S(() => {
|
|
@@ -1711,19 +1711,19 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1711
1711
|
e3 && e3.setAdjusting(e3.getCoords());
|
|
1712
1712
|
}, [I2, k2]), Re2 = S(async () => {
|
|
1713
1713
|
I2?.getSelection().setAdjusting(null), R2?.();
|
|
1714
|
-
}, [I2, R2]), { ...Me2 } =
|
|
1715
|
-
|
|
1714
|
+
}, [I2, R2]), { ...Me2 } = we({ orientation: M2, headerCount: V2, gridRef: T2, gridMainRef: n2, newSelection: xe2?.newSelection, modifySelection: xe2?.modifySelection, appendSelection: xe2?.appendSelection, clearSelections: xe2?.clearSelections, pointerDownInterceptor: pe2, onPointerUp: be2, onDragStart: ke2, onDragEnd: Re2 }), Te2 = u2.selection?.strokeFill;
|
|
1715
|
+
ie(() => {
|
|
1716
1716
|
if (!T2.current) return void $2(null);
|
|
1717
|
-
const e3 = M2 === s.Orientation.Column, t3 = o2.getSelectedRuns(), n3 = o2.isProtected() ? null :
|
|
1717
|
+
const e3 = M2 === s.Orientation.Column, t3 = o2.getSelectedRuns(), n3 = o2.isProtected() ? null : te2, l3 = (t4, o3, n4) => {
|
|
1718
1718
|
if (n4) return G("div", e3 ? { style: { position: "absolute", borderBottom: `${u2.headerSelection.strokeWidth}px solid ${Te2}`, pointerEvents: "none", top: `${C.boundPixel(-u2.headerSelection.strokeWidth / 2)}px`, left: `${C.boundPixel(n4.x - u2.headerSelection.strokeWidth)}px`, width: `${C.boundPixel(n4.width + u2.headerSelection.strokeWidth + 1, true)}px`, height: i2 + u2.headerSelection.strokeWidth - 0.5 + "px" } } : { style: { position: "absolute", borderRight: `${u2.headerSelection.strokeWidth}px solid ${Te2}`, pointerEvents: "none", top: `${C.boundPixel(n4.y - u2.headerSelection.strokeWidth)}px`, left: `${C.boundPixel(-u2.headerSelection.strokeWidth / 2)}px`, width: i2 + u2.headerSelection.strokeWidth - 0.5 + "px", height: `${C.boundPixel(n4.height + u2.headerSelection.strokeWidth + 1, true)}px` } }, t4);
|
|
1719
1719
|
}, r3 = (t4, o3, n4) => {
|
|
1720
1720
|
const l4 = { x: 0, y: 0, width: 0, height: 0 };
|
|
1721
1721
|
if (e3) {
|
|
1722
|
-
const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: t4, colEnd: Math.min(
|
|
1722
|
+
const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: t4, colEnd: Math.min(V2, o3) }), Ce);
|
|
1723
1723
|
if (!e4) return;
|
|
1724
1724
|
l4.x = e4.x, l4.width = e4.width;
|
|
1725
1725
|
} else {
|
|
1726
|
-
const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: t4, rowEnd: Math.min(
|
|
1726
|
+
const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: t4, rowEnd: Math.min(V2, o3), colStart: 0, colEnd: 0 }), Ce);
|
|
1727
1727
|
if (!e4) return;
|
|
1728
1728
|
l4.y = e4.y, l4.height = e4.height;
|
|
1729
1729
|
}
|
|
@@ -1747,14 +1747,14 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1747
1747
|
let e5 = false, t4 = false;
|
|
1748
1748
|
i3?.value && i3.min <= o3 && (e5 = true, t4 = i3.value.isSelectedAll), o3 > 0 && c3.push({ index: o3 - 1, isNextHidden: r5, isSelected: e5, isSelectedAll: t4, disabledResize: true });
|
|
1749
1749
|
}
|
|
1750
|
-
if (u3 && d3.push(c3.length), c3.push({ index: o3, isHidden: 0 === e4 && X2(o3, false) > 0, isNextHidden: r5, isSelected: g4, isSelectedAll: u3, onDividerMouseDown: v2, onDividerResizeStart: ce2, onDividerResize: n3, onDividerMouseUp: y2, onDividerResizeEnd:
|
|
1750
|
+
if (u3 && d3.push(c3.length), c3.push({ index: o3, isHidden: 0 === e4 && X2(o3, false) > 0, isNextHidden: r5, isSelected: g4, isSelectedAll: u3, onDividerMouseDown: v2, onDividerResizeStart: ce2, onDividerResize: n3, onDividerMouseUp: y2, onDividerResizeEnd: le2, onDividerAutoFit: ge2 }), r5) {
|
|
1751
1751
|
let e5 = false, r6 = false;
|
|
1752
1752
|
if (i3 && i3.min >= o3 && i3.max <= l5 - 1 && i3.value.isSelectedAll && d3.push(c3.length), i3?.value && i3.max >= l5) ;
|
|
1753
1753
|
else if (t3.length > 0 && t3[t3.length - 1].max >= l5) {
|
|
1754
1754
|
const e6 = K.findEqualOrGreater(t3, l5, (e7) => e7.max);
|
|
1755
1755
|
i3 = t3[e6];
|
|
1756
1756
|
} else i3 = null;
|
|
1757
|
-
i3?.value && i3.min <= l5 && (e5 = i3.value.isSelected, r6 = i3.value.isSelectedAll), l5 > 0 && c3.push({ index: l5 - 1, isHidden: true, isSelected: e5, isSelectedAll: r6, onDividerMouseDown: v2, onDividerResizeStart: ce2, onDividerResize: n3, onDividerMouseUp: y2, onDividerResizeEnd:
|
|
1757
|
+
i3?.value && i3.min <= l5 && (e5 = i3.value.isSelected, r6 = i3.value.isSelectedAll), l5 > 0 && c3.push({ index: l5 - 1, isHidden: true, isSelected: e5, isSelectedAll: r6, onDividerMouseDown: v2, onDividerResizeStart: ce2, onDividerResize: n3, onDividerMouseUp: y2, onDividerResizeEnd: le2, onDividerAutoFit: ge2 });
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
1760
|
if (d3.length > 0) {
|
|
@@ -1771,20 +1771,20 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1771
1771
|
} else o3 >= 0 && (c3[d3[o3]].showTouchDivider = true);
|
|
1772
1772
|
}
|
|
1773
1773
|
const { header: g3, headerSelect: h3, headerSelectAll: m3, headerHover: p3 } = u2 ?? {};
|
|
1774
|
-
for (let e4 = 0; e4 < c3.length; e4++) r4.push(G(
|
|
1774
|
+
for (let e4 = 0; e4 < c3.length; e4++) r4.push(G(ye, { orientation: M2, view: l4, headerStyle: g3, headerStyleSelect: h3, headerStyleSelectAll: m3, headerStyleHover: p3, disabled: o2.isProtected(), ...c3[e4] }, `divider${e4}`));
|
|
1775
1775
|
return r4;
|
|
1776
1776
|
}, (e4) => {
|
|
1777
1777
|
const o3 = [];
|
|
1778
1778
|
for (let n4 = 0; t3 && n4 < t3.length; n4++) o3.push(l3(`selection:${e4.getAnchor()}:${n4}`, 0, r3(t3[n4].min, t3[n4].max, e4)));
|
|
1779
1779
|
return o3;
|
|
1780
1780
|
}]);
|
|
1781
|
-
}, [E2, true, Te2, u2, he2,
|
|
1781
|
+
}, [E2, true, Te2, u2, he2, V2, g2, A2, B2]), ie(() => {
|
|
1782
1782
|
T2.current?.invalidate();
|
|
1783
1783
|
}, [A2]);
|
|
1784
1784
|
const Ae2 = S((e3) => c2 ? c2(e3) : o2.getTextAt(e3), [c2, o2]), ze2 = S((e3) => {
|
|
1785
1785
|
const { header: t3, headerSelect: o3, headerSelectAll: n3, headerHover: l3 } = u2 ?? {}, { range: r3, key: i3, ...a3 } = e3;
|
|
1786
|
-
return G(
|
|
1787
|
-
}, [A2,
|
|
1786
|
+
return G(qe, { orientation: M2, index: M2 === s.Orientation.Column ? r3.colStart : r3.rowStart, isSelected: Y2, isSelectedAll: J2, zoomScale: 100 * B2, headerText: Ae2, headerStyle: t3, headerStyleSelect: o3, headerStyleSelectAll: n3, headerStyleHover: l3, verticalPadding: h2, horizontalPadding: m2, ...a3 }, i3);
|
|
1787
|
+
}, [A2, V2, u2, B2, o2]), Fe2 = F(), Ee2 = oe(() => {
|
|
1788
1788
|
const e3 = "white", t3 = "black", o3 = {};
|
|
1789
1789
|
if ("touch" !== C.detectIt().primaryInput) {
|
|
1790
1790
|
let n3 = M2 === s.Orientation.Column ? `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 8,14.5 2.3125,8.8125 h 3.25 V 1.5 h 4.875 v 7.3125 h 3.25 z' stroke='${t3}' fill='${e3}'/%3E%3C/g%3E%3C/svg%3E%0A") 8 15, pointer` : `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='m 14.5,8 -5.6875,5.6875 v -3.25 H 1.5 v -4.875 h 7.3125 v -3.25 z' stroke='${t3}' fill='${e3}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`;
|
|
@@ -1799,30 +1799,30 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1799
1799
|
}, [M2, A2, Fe2, u2]), De2 = b(t2, () => ({ scrollTo: (e3) => {
|
|
1800
1800
|
T2.current?.scrollTo(e3);
|
|
1801
1801
|
}, forceRender: () => {
|
|
1802
|
-
|
|
1803
|
-
}, getGridElement: () => T2.current }), []), Ie2 =
|
|
1802
|
+
z2();
|
|
1803
|
+
}, getGridElement: () => T2.current }), []), Ie2 = se((e3) => {
|
|
1804
1804
|
Me2.onPointerDown(e3);
|
|
1805
|
-
}, [Me2]), Ne2 =
|
|
1805
|
+
}, [Me2]), Ne2 = se((e3) => {
|
|
1806
1806
|
const t3 = Me2.getCellCoordsFromClient(e3.clientX, e3.clientY);
|
|
1807
1807
|
if (!t3) return;
|
|
1808
1808
|
if (!p2) return;
|
|
1809
1809
|
const o3 = M2 === s.Orientation.Column;
|
|
1810
1810
|
p2({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: o3 ? -1 : t3.rowIndex, colIndex: o3 ? t3.colIndex : -1 }), e3.stopPropagation(), e3.preventDefault();
|
|
1811
|
-
}, [Me2, p2]), Ve2 =
|
|
1811
|
+
}, [Me2, p2]), Ve2 = oe(() => {
|
|
1812
1812
|
const e3 = M2 === s.Orientation.Column;
|
|
1813
|
-
return G("div", { ref: De2, children: G(
|
|
1814
|
-
}, [P2, he2, a2, d2,
|
|
1815
|
-
return
|
|
1813
|
+
return G("div", { ref: De2, children: G(ve, { className: "sheet-header", style: Ee2, ref: T2, scrollPoint: H2, columnCount: e3 ? V2 : 1, rowCount: e3 ? 1 : V2, width: e3 ? a2 : i2, height: e3 ? i2 : d2, freezeLeft: e3 ? g2 : void 0, freezeTop: e3 ? void 0 : g2, hiddenColumnsAt: e3 ? X2 : void 0, hiddenRowsAt: e3 ? void 0 : X2, showGridLines: false, layout: he2, clipCells: false, allowOverlaysOverflow: true, enableMouseWheel: false, onContextMenu: Ne2, onPointerDown: Ie2, zoom: B2, cellRenderer: ze2, overlays: P2 }) });
|
|
1814
|
+
}, [P2, he2, a2, d2, H2, Ee2, E2]);
|
|
1815
|
+
return ie(() => {
|
|
1816
1816
|
N2.current = false, T2.current?.invalidate(), D2();
|
|
1817
1817
|
}, [o2, u2]), Ve2;
|
|
1818
|
-
})),
|
|
1819
|
-
const { view: o2, sheet: n2, getVisibleCells: l2, gridStyle: r2 } = e2, i2 = S((e3, t3) => e3.getStyle().getBorder(), []), { overlay: a2 } =
|
|
1818
|
+
})), At = te(le((e2, t2) => {
|
|
1819
|
+
const { view: o2, sheet: n2, getVisibleCells: l2, gridStyle: r2 } = e2, i2 = S((e3, t3) => e3.getStyle().getBorder(), []), { overlay: a2 } = gt({ getVisibleCells: l2, getBorderAt: i2, darkMode: r2.body.darkMode, shiftIfWide: true }), s2 = a2(o2);
|
|
1820
1820
|
return s2 && o2 ? s2 : null;
|
|
1821
|
-
})),
|
|
1822
|
-
const
|
|
1821
|
+
})), zt = { key: "copy", description: "'Copy' Select destination and press ENTER or choose Paste." }, Ft = { key: "cut", description: "'Cut' Select destination and press ENTER or choose Paste." }, Et = { type: o.Content.Values }, Dt = { fitDestination: true, type: o.Content.Formats }, It = { fitDestination: true, type: o.Content.Formulas }, Nt = { transpose: true }, Vt = { fitDestination: true, adjustCells: (e2, t2, o2) => ({ value: `=${t2.getA1({ $colIndex: true, $rowIndex: true })}` }) }, Lt = ({ element: e2, sheet: t2, sheetView: n2, commands: l2, onClipboardUpdate: r2, onPaste: i2, selectionRenderer: a2 = be, copyForegroundColor: d2 = "rgb(33, 115, 70)", cutForegroundColor: c2 = "rgb(33, 115, 70)", copyBackgroundColor: g2 = "white", cutBackgroundColor: u2 = "white", ...h2 }) => {
|
|
1822
|
+
const m2 = S(a2, [a2]), w2 = re(null), q2 = F(), v2 = q2.getMode(), y2 = oe(() => ({ element: e2, doCopy: (e3) => {
|
|
1823
1823
|
const o2 = t2.getSelectedRanges().getSnapshot(e3);
|
|
1824
1824
|
return new p(o2);
|
|
1825
|
-
} }), [t2, n2, e2]),
|
|
1825
|
+
} }), [t2, n2, e2]), C2 = oe(() => ({ element: e2, importFromExternal: async (e3, o2) => {
|
|
1826
1826
|
const n3 = new f(e3, o2, t2.getStyles(), t2.isDate1904());
|
|
1827
1827
|
return await n3.parse() ? n3 : null;
|
|
1828
1828
|
}, doPaste: async (e3, n3) => {
|
|
@@ -1833,69 +1833,69 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1833
1833
|
const e4 = await l3.copyFrom(r3, n3);
|
|
1834
1834
|
!e4 || e4.isEntireRows() || e4.isEntireColumns() || e4.autoFit({ orientations: s.Orientations.Row, minContent: true });
|
|
1835
1835
|
}, { description: "Paste" + (i3 ? ` ${i3}` : ""), autoSelect: true }), true;
|
|
1836
|
-
} }), [t2, n2,
|
|
1836
|
+
} }), [t2, n2, e2]), { clipboard: b2, ...x2 } = A({ ...h2, source: y2, commands: l2, target: C2, onClipboardUpdate: (e3) => {
|
|
1837
1837
|
const t3 = "range" === e3?.getItemType() ? e3 : null;
|
|
1838
1838
|
if (t3) {
|
|
1839
|
-
const t4 = e3.editMode?.(), o2 = { ...e3?.isCut?.() ?
|
|
1840
|
-
e4?.args?.isClipboard ||
|
|
1839
|
+
const t4 = e3.editMode?.(), o2 = { ...e3?.isCut?.() ? Ft : zt, ...t4, args: { isClipboard: true, ...t4?.args }, onModeChange: (e4) => {
|
|
1840
|
+
e4?.args?.isClipboard || b2.clear(true), t4?.onModeChange?.(e4);
|
|
1841
1841
|
} };
|
|
1842
|
-
|
|
1842
|
+
q2.setMode(o2);
|
|
1843
1843
|
}
|
|
1844
|
-
|
|
1844
|
+
w2.current = t3, r2?.(t3);
|
|
1845
1845
|
}, onPaste: (o2, n3) => {
|
|
1846
1846
|
if ("range" !== o2?.getItemType()) return;
|
|
1847
|
-
let l3 = "cut" ===
|
|
1848
|
-
if (!l3 && "copy" ===
|
|
1847
|
+
let l3 = "cut" === q2.getMode()?.key || o2.isCut?.();
|
|
1848
|
+
if (!l3 && "copy" === q2.getMode()?.key) {
|
|
1849
1849
|
const e3 = o2.getItem().getCoords(), n4 = t2.getSelectedRanges().getCoords();
|
|
1850
1850
|
let r3 = false;
|
|
1851
1851
|
if (!r3 && e3 && n4 && o2.getItem().getSource?.() === t2) for (let t3 = 0; !r3 && t3 < n4.length; t3++) r3 = J.isRangesIntersect(e3, n4[t3]);
|
|
1852
1852
|
l3 = r3;
|
|
1853
1853
|
}
|
|
1854
|
-
l3 &&
|
|
1854
|
+
l3 && q2.setMode(null), e2?.()?.focus(), i2?.(o2, n3);
|
|
1855
1855
|
} });
|
|
1856
|
-
|
|
1856
|
+
oe(() => {
|
|
1857
1857
|
const t3 = e2;
|
|
1858
1858
|
if (!l2) return;
|
|
1859
1859
|
const o2 = [new R("pasteValues", t3, { label: "Paste Values", scopedLabels: { paste: "Values" }, description: "Paste only the values of the selected cells.\n\nThe formatting is not applied.", shortcut: { key: "V", modifiers: [M.Ctrl, M.Shift] } }), new R("pasteFormats", t3, { label: "Paste Formatting", scopedLabels: { paste: "Formatting" }, description: "Paste only the formats of the selected cells.\n\nThe content is not applied." }), new R("pasteFormulas", t3, { label: "Paste Formulas", scopedLabels: { paste: "Formulas" }, description: "Paste only the formulas of the selected cells. The values and formatting is not applied." }), new R("pasteTranspose", t3, { label: "Paste Transpose", scopedLabels: { paste: "Transpose" }, description: "Paste with the rows and columns flipped." }), new R("pasteLinks", t3, { label: "Paste Links", scopedLabels: { paste: "Links" }, description: "Paste as formula references to the original cells." })];
|
|
1860
1860
|
l2.addCommands(o2, true);
|
|
1861
|
-
}, [l2, e2]),
|
|
1861
|
+
}, [l2, e2]), ie(() => {
|
|
1862
1862
|
if (!l2) return;
|
|
1863
1863
|
const e3 = { disabled: !t2.getProtection().isFormatCellsAllowed() };
|
|
1864
|
-
l2.getCommand("pasteValues").updateCallback((e4) =>
|
|
1864
|
+
l2.getCommand("pasteValues").updateCallback((e4) => x2.paste({ ...Et, ...e4 })).update(e3), l2.getCommand("pasteFormats").updateCallback((e4, t3) => x2.paste({ ...Dt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteFormulas").updateCallback((e4, t3) => x2.paste({ ...It, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteTranspose").updateCallback((e4, t3) => x2.paste({ ...Nt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteLinks").updateCallback((e4, t3) => x2.paste({ ...Vt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("cut").update(e3), l2.getCommand("paste").update(e3);
|
|
1865
1865
|
}, [t2, l2]);
|
|
1866
|
-
const
|
|
1867
|
-
if (!
|
|
1868
|
-
const e3 =
|
|
1866
|
+
const k2 = oe(() => {
|
|
1867
|
+
if (!v2 || !w2.current) return;
|
|
1868
|
+
const e3 = v2.key;
|
|
1869
1869
|
if ("copy" !== e3 && "cut" !== e3 && "formatPainter" !== e3) return;
|
|
1870
|
-
const o2 =
|
|
1870
|
+
const o2 = w2.current.getItem();
|
|
1871
1871
|
if (o2.getSource() !== t2) return;
|
|
1872
|
-
const n3 =
|
|
1872
|
+
const n3 = w2.current.isCut?.(), l3 = n3 ? u2 : g2, r3 = n3 ? c2 : d2, i3 = o2.getCoords(), a3 = i3 ? [i3] : null;
|
|
1873
1873
|
return a3 && 0 !== a3.length ? (e4) => {
|
|
1874
1874
|
const t3 = [];
|
|
1875
1875
|
for (let o3 = 0; o3 < a3.length; o3++) {
|
|
1876
|
-
const n4 = a3[o3], i4 = e4.toClipBounds(e4.getRangeCoordsBounds(n4, { top: 0, left: 0, right: 1, bottom: 1 }),
|
|
1877
|
-
i4 && (t3.push(
|
|
1876
|
+
const n4 = a3[o3], i4 = e4.toClipBounds(e4.getRangeCoordsBounds(n4, { top: 0, left: 0, right: 1, bottom: 1 }), Ce);
|
|
1877
|
+
i4 && (t3.push(m2({ range: n4, key: `copy-selection-background-${o3}`, x: i4.x, y: i4.y, width: Math.max(i4.width, 0), height: Math.max(i4.height, 0), stroke: l3, strokeWidth: 2 })), t3.push(m2({ range: n4, key: `copy-selection-foreground-${o3}`, x: i4.x + (i4.width <= 2 ? -1 : 0), y: i4.y, width: Math.max(i4.width, 3), height: Math.max(i4.height, 3), stroke: r3, strokeWidth: 2, isAnimatedStroke: true })));
|
|
1878
1878
|
}
|
|
1879
1879
|
return t3;
|
|
1880
1880
|
} : null;
|
|
1881
|
-
}, [
|
|
1882
|
-
return { ...
|
|
1883
|
-
}, Ht =
|
|
1884
|
-
const { view: o2, element: n2, sheet: l2, gridStyle: r2, commands: i2
|
|
1885
|
-
return
|
|
1886
|
-
} }),
|
|
1881
|
+
}, [v2, t2, n2, d2, g2, c2, u2]);
|
|
1882
|
+
return { ...x2, clipboard: b2, overlays: k2 };
|
|
1883
|
+
}, Ht = te(le((e2, t2) => {
|
|
1884
|
+
const { view: o2, element: n2, sheet: l2, gridStyle: r2, commands: i2 } = e2, a2 = r2.body ?? {}, s2 = l2.getView(), { overlays: d2 } = Lt({ element: n2, sheet: l2, sheetView: s2, commands: i2, copyForegroundColor: r2.selection.strokeFill, copyBackgroundColor: a2.fill, cutForegroundColor: r2.selectionRemove.strokeFill, cutBackgroundColor: a2.fill });
|
|
1885
|
+
return bt(l2?.getSelection(), { onChange(e3) {
|
|
1886
|
+
} }), ie(() => {
|
|
1887
1887
|
o2?.getStage();
|
|
1888
|
-
}, [o2?.getStage()]),
|
|
1889
|
-
})),
|
|
1890
|
-
const { view: o2, commands: n2, className: l2, onFirstRender: r2,
|
|
1891
|
-
J.isEqualSelectionCoords(e3,
|
|
1892
|
-
}, [
|
|
1888
|
+
}, [o2?.getStage()]), d2 && o2 ? d2(o2) : null;
|
|
1889
|
+
})), Bt = "_sheet-selection_12wyx_5", Ot = { key: "dragCut", description: "Drag selection to move cell contents.", cursor: "move" }, Pt = { key: "dragCutInsert", description: "Drag selection to insert cell contents.", cursor: "copy" }, $t = { key: "dragCopy", description: "Drag selection to copy cell contents." }, Wt = { key: "dragCopyInsert", description: "Drag selection to insert copied cell contents.", cursor: "move" }, Ut = (e2, t2) => t2.ctrlKey && t2.shiftKey ? Wt : t2.ctrlKey ? $t : t2.shiftKey ? Pt : Ot, _t = { key: "fill", description: "Drag selection to extend series or fill.", cursor: "crosshair" }, Gt = te(le((e2, t2) => {
|
|
1890
|
+
const { view: o2, commands: n2, className: l2, onFirstRender: r2, onShowTooltip: i2, onCloseTooltip: a2, sheet: d2, gridRef: c2, gridStyle: g2, isActive: u2, editingCoords: h2, ...m2 } = e2, p2 = o2?.getBounds(), f2 = S(i2, [i2]), w2 = S(a2, [a2]), [q2, v2] = ne(() => d2?.getSelection().getCoords()), y2 = S((e3) => {
|
|
1891
|
+
J.isEqualSelectionCoords(e3, q2) || d2 && d2.getSelection().updateCoords(e3);
|
|
1892
|
+
}, [d2, q2]), x2 = F(), k2 = re(null), [R2, M2] = ne(d2?.getProtection().isLocked()), [T2, A2] = ne(d2?.getView().getMovableSelection().length > 0), E2 = "touch" === C.detectIt().primaryInput, D2 = !E2 && u2, I2 = null !== h2 || T2, N2 = S((e3) => {
|
|
1893
1893
|
const t3 = J.cellToRange(e3);
|
|
1894
|
-
if (
|
|
1895
|
-
const o3 =
|
|
1894
|
+
if (d2.isClosed()) return t3;
|
|
1895
|
+
const o3 = d2.getRange(t3, { excludeHidden: true }).getMerges();
|
|
1896
1896
|
return 0 === o3.length ? t3 : o3[0];
|
|
1897
|
-
}, [
|
|
1898
|
-
const i3 =
|
|
1897
|
+
}, [d2]), V2 = S((e3, t3, o3, n3, l3, r3) => {
|
|
1898
|
+
const i3 = d2.getSelectedRange().getExtended(n3, e3).getCoords();
|
|
1899
1899
|
switch (n3) {
|
|
1900
1900
|
case s.Direction.Up:
|
|
1901
1901
|
return i3.rowStart;
|
|
@@ -1906,146 +1906,146 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
1906
1906
|
case s.Direction.Right:
|
|
1907
1907
|
return i3.colEnd;
|
|
1908
1908
|
}
|
|
1909
|
-
}, [
|
|
1910
|
-
const e3 =
|
|
1909
|
+
}, [d2]), L2 = S(() => {
|
|
1910
|
+
const e3 = d2.getUsedRange()?.getCoords(), t3 = d2.getRowHeaders().getUsedRange()?.getCoords(), o3 = d2.getColumnHeaders().getUsedRange()?.getCoords();
|
|
1911
1911
|
return { ...e3, colEnd: Math.max(e3?.colEnd ?? 0, o3?.max ?? 0), rowEnd: Math.max(e3?.rowEnd ?? 0, t3?.max ?? 0) };
|
|
1912
|
-
}, [
|
|
1913
|
-
|
|
1914
|
-
}, [
|
|
1915
|
-
|
|
1916
|
-
const e3 =
|
|
1917
|
-
"formatPainter" === e3?.key && (await n2?.getCommand("pasteFormats")?.execute({}),
|
|
1918
|
-
}, [
|
|
1919
|
-
const e3 =
|
|
1912
|
+
}, [d2]), B2 = S((e3, t3) => d2.getRowHeaders().hiddenHeadersAt(e3, t3), [d2]), O2 = S((e3, t3) => d2.getColumnHeaders().hiddenHeadersAt(e3, t3), [d2]), P2 = S((e3) => d2.getRange(e3, { excludeHidden: true }).getMerges(), [d2]), $2 = S((e3) => {
|
|
1913
|
+
d2?.getSelection().setAdjusting(e3);
|
|
1914
|
+
}, [d2]), W2 = S(async () => {
|
|
1915
|
+
d2?.getSelection().setAdjusting(null);
|
|
1916
|
+
const e3 = x2.getMode();
|
|
1917
|
+
"formatPainter" === e3?.key && (await n2?.getCommand("pasteFormats")?.execute({}), x2.setMode(null));
|
|
1918
|
+
}, [x2, q2, d2, n2]), U2 = oe(() => {
|
|
1919
|
+
const e3 = x2.getMode();
|
|
1920
1920
|
return "cut" === e3?.key || "copy" === e3?.key;
|
|
1921
|
-
}, [
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
} }),
|
|
1925
|
-
const t3 =
|
|
1926
|
-
|
|
1927
|
-
} }),
|
|
1928
|
-
|
|
1921
|
+
}, [x2]);
|
|
1922
|
+
bt(d2?.getView(), { onMovableSelectionChange: () => {
|
|
1923
|
+
A2(d2.getView().getMovableSelection().length > 0);
|
|
1924
|
+
} }), bt(d2?.getSelection(), { onChange(e3) {
|
|
1925
|
+
const t3 = d2.getSelection().getCoords();
|
|
1926
|
+
v2(t3);
|
|
1927
|
+
} }), bt(d2, { onProtectionChange: () => {
|
|
1928
|
+
M2(d2.getProtection().isLocked());
|
|
1929
1929
|
} });
|
|
1930
|
-
const { body: _2 = {} } =
|
|
1931
|
-
|
|
1930
|
+
const { body: _2 = {} } = g2 || {}, Z2 = z(), j2 = o2.getLayout(), K2 = !(D2 && q2.ranges.length <= 1 && null === h2 && !R2 && (!x2.getMode() || U2)), { cursor: X2, overlay: Y2, onPointerDown: Q2 } = fe({ gridRef: c2, commands: n2, layout: j2, getCellCoordsAsRangeCoords: N2, selection: q2, fillHandleBorderColor: _2.fill, selectionBackgroundColor: u2 ? g2.selection.fill : g2.selectionInactive.fill, selectionBorderColor: u2 ? g2.selection.strokeFill : g2.selectionInactive.strokeFill, selectionRemoveBackgroundColor: u2 ? g2.selectionRemove.fill : g2.selectionInactive.fill, selectionRemoveBorderColor: u2 ? g2.selectionRemove.strokeFill : g2.selectionInactive.strokeFill, disableFillDrag: K2, disableMoveDrag: E2 || !(u2 && q2.ranges.length <= 1 && null === h2 && !R2), disableTouchSelection: I2, onSelectionChange: y2, onSelectionDragStart: $2, onSelectionDragEnd: W2, onMoveDragStart: (e3, t3, o3) => {
|
|
1931
|
+
x2.setMode(Ut(0, o3));
|
|
1932
1932
|
}, onMoveDragUpdate: (e3, t3, o3) => {
|
|
1933
|
-
|
|
1933
|
+
x2.setMode(Ut(0, o3));
|
|
1934
1934
|
}, onMoveDragEnd: (e3, t3) => {
|
|
1935
|
-
|
|
1935
|
+
x2.setMode(null);
|
|
1936
1936
|
}, onMoveDragDone: async (e3, t3, o3) => {
|
|
1937
1937
|
if (J.isEqualRanges(e3, t3)) return;
|
|
1938
|
-
const n3 =
|
|
1939
|
-
if (
|
|
1938
|
+
const n3 = d2.getRange(t3);
|
|
1939
|
+
if (Z2?.showOptions) {
|
|
1940
1940
|
const t4 = n3.getDifferences(e3);
|
|
1941
1941
|
let o4 = false;
|
|
1942
1942
|
const l4 = t4.getCount();
|
|
1943
1943
|
for (let e4 = 0; !o4 && e4 < l4; e4++) o4 = t4.at(e4).isContentful();
|
|
1944
1944
|
if (o4) {
|
|
1945
|
-
if ("Replace" !== await
|
|
1945
|
+
if ("Replace" !== await Z2?.showOptions({ title: "Confirm", description: "There is already data here. Do you want to replace it?", options: ["Replace", "Cancel"], defaultOption: "Replace" })) return;
|
|
1946
1946
|
}
|
|
1947
1947
|
}
|
|
1948
|
-
const l3 = !o3.ctrlKey, r3 = o3.shiftKey,
|
|
1948
|
+
const l3 = !o3.ctrlKey, r3 = o3.shiftKey, i3 = r3 ? l3 ? "Insert Moved Cells" : "Insert Copied Cells" : l3 ? "Move Cells" : "Copy Cells", a3 = await Z2?.showBusy?.(i3);
|
|
1949
1949
|
try {
|
|
1950
|
-
const t4 =
|
|
1950
|
+
const t4 = d2.getRange(e3);
|
|
1951
1951
|
await n3.doBatch(async () => {
|
|
1952
1952
|
r3 ? await n3.insertFrom(e3, { isCut: l3, undoRange: t4 }) : await n3.copyFrom(e3, { isCut: l3, undoRange: t4 }), t4.autoFit({ skipCustomSize: true, orientations: s.Orientations.Row, minContent: true }), n3.autoFit({ skipCustomSize: true, orientations: s.Orientations.Row, minContent: true });
|
|
1953
|
-
}, { description:
|
|
1953
|
+
}, { description: i3, autoSelect: true });
|
|
1954
1954
|
} catch (e4) {
|
|
1955
|
-
|
|
1955
|
+
Z2?.showError?.(e4);
|
|
1956
1956
|
} finally {
|
|
1957
|
-
|
|
1957
|
+
a3?.();
|
|
1958
1958
|
}
|
|
1959
1959
|
}, contentfulCellFinder: V2, hiddenRowsAt: B2, hiddenColumnsAt: O2, mergedRanges: P2, getDataCoords: L2, canSelectionSpanMergedCells: (e3) => {
|
|
1960
|
-
const t3 =
|
|
1960
|
+
const t3 = d2.getRange(e3);
|
|
1961
1961
|
return t3.isEntireColumns() || t3.isEntireRows();
|
|
1962
1962
|
}, onFill: async (e3, t3) => {
|
|
1963
|
-
const o3 = "Auto Fill", n3 = await
|
|
1963
|
+
const o3 = "Auto Fill", n3 = await Z2?.showBusy?.(o3);
|
|
1964
1964
|
try {
|
|
1965
|
-
await
|
|
1966
|
-
|
|
1965
|
+
await d2.doBatch(() => {
|
|
1966
|
+
d2.getRange(e3).autoFill(t3), d2.getRange(t3).autoFit({ orientations: s.Orientations.Row, skipCustomSize: true, minContent: true });
|
|
1967
1967
|
}, { description: o3, autoSelect: true });
|
|
1968
1968
|
} catch (e4) {
|
|
1969
|
-
|
|
1969
|
+
Z2?.showError?.(e4);
|
|
1970
1970
|
} finally {
|
|
1971
|
-
|
|
1971
|
+
k2.current = null, n3?.();
|
|
1972
1972
|
}
|
|
1973
1973
|
}, onFillPreview: (e3, t3, n3) => {
|
|
1974
|
-
if (
|
|
1975
|
-
|
|
1974
|
+
if (c2.current && f2) {
|
|
1975
|
+
x2.setMode(_t);
|
|
1976
1976
|
try {
|
|
1977
|
-
|
|
1978
|
-
|
|
1977
|
+
k2.current?.direction !== n3 && (k2.current = null, d2.getRange(e3).autoFill(t3, { previewOnly: (e4) => {
|
|
1978
|
+
k2.current = { callback: e4, direction: n3 };
|
|
1979
1979
|
} }));
|
|
1980
|
-
const l3 =
|
|
1980
|
+
const l3 = k2.current?.callback?.(t3);
|
|
1981
1981
|
if (!l3 || l3.isEmpty()) return;
|
|
1982
1982
|
const r3 = l3.toText();
|
|
1983
1983
|
if (!r3) return;
|
|
1984
1984
|
const i3 = J.cellToRange(l3.getCoords()), a3 = o2.getRelativePointFromClient(0, 0);
|
|
1985
|
-
let
|
|
1985
|
+
let c3 = 0, g3 = 0, u3 = H.Bottom;
|
|
1986
1986
|
if (n3 === s.Direction.Down) {
|
|
1987
|
-
|
|
1988
|
-
const e4 =
|
|
1987
|
+
c3 = j2.getColOffset(i3.colEnd + 1) - a3.x;
|
|
1988
|
+
const e4 = j2.getRowOffset(i3.rowEnd), t4 = j2.getRowOffset(i3.rowEnd + 1);
|
|
1989
1989
|
g3 = t4 - (t4 - e4) / 2 - a3.y, u3 = H.Right;
|
|
1990
1990
|
} else if (n3 === s.Direction.Right) {
|
|
1991
|
-
g3 =
|
|
1992
|
-
const e4 =
|
|
1993
|
-
|
|
1991
|
+
g3 = j2.getRowOffset(i3.rowEnd + 1) - a3.y;
|
|
1992
|
+
const e4 = j2.getColOffset(i3.colEnd), t4 = j2.getColOffset(i3.colEnd + 1);
|
|
1993
|
+
c3 = t4 - (t4 - e4) / 2 - a3.x, u3 = H.Bottom;
|
|
1994
1994
|
} else if (n3 === s.Direction.Up) {
|
|
1995
|
-
|
|
1996
|
-
const e4 =
|
|
1995
|
+
c3 = j2.getColOffset(i3.colEnd + 1) - a3.x;
|
|
1996
|
+
const e4 = j2.getRowOffset(i3.rowStart), t4 = j2.getRowOffset(i3.rowStart + 1);
|
|
1997
1997
|
g3 = t4 - (t4 - e4) / 2 - a3.y, u3 = H.Right;
|
|
1998
1998
|
} else if (n3 === s.Direction.Left) {
|
|
1999
|
-
g3 =
|
|
2000
|
-
const e4 =
|
|
2001
|
-
|
|
1999
|
+
g3 = j2.getRowOffset(i3.rowEnd + 1) - a3.y;
|
|
2000
|
+
const e4 = j2.getColOffset(i3.colStart), t4 = j2.getColOffset(i3.colStart + 1);
|
|
2001
|
+
c3 = t4 - (t4 - e4) / 2 - a3.x, u3 = H.Bottom;
|
|
2002
2002
|
}
|
|
2003
|
-
|
|
2003
|
+
f2({ anchor: { x: c3, y: g3 }, display: r3, placement: u3 });
|
|
2004
2004
|
} catch (e4) {
|
|
2005
|
-
|
|
2005
|
+
Z2?.showError?.(e4);
|
|
2006
2006
|
}
|
|
2007
2007
|
}
|
|
2008
2008
|
}, onFillDone: () => {
|
|
2009
|
-
|
|
2010
|
-
} }),
|
|
2011
|
-
|
|
2012
|
-
}, [
|
|
2013
|
-
|
|
2009
|
+
k2.current = null, x2.setMode(null), w2?.();
|
|
2010
|
+
} }), ee2 = S((e3) => {
|
|
2011
|
+
Q2(C.createSyntheticEvent(e3));
|
|
2012
|
+
}, [Q2, h2]);
|
|
2013
|
+
ie(() => {
|
|
2014
2014
|
const e3 = o2?.getStage();
|
|
2015
|
-
if (e3) return e3.addEventListener("pointerdown",
|
|
2016
|
-
e3.removeEventListener("pointerdown",
|
|
2015
|
+
if (e3) return e3.addEventListener("pointerdown", ee2), () => {
|
|
2016
|
+
e3.removeEventListener("pointerdown", ee2);
|
|
2017
2017
|
};
|
|
2018
2018
|
}, [o2?.getStage()]);
|
|
2019
|
-
const
|
|
2020
|
-
return G("div", { className:
|
|
2021
|
-
})),
|
|
2022
|
-
const { children: o2, view: n2, movable: l2, onRefLoad: r2, onRefUnload: i2, onHide: a2, onShow: s2, onUnFocus: d2, isDragging: c2, updateFrameBounds: g2, dragStart: u2, style: h2, disabled: m2, renderMovable: p2, ...f2 } = e2, [w2, q2] =
|
|
2023
|
-
|
|
2019
|
+
const te2 = b(t2, () => ({}), []), le2 = re(null);
|
|
2020
|
+
return G("div", { className: Te(l2, "sheet-selection", Bt), style: { position: "absolute", width: p2?.width, height: p2?.height, overflow: "hidden", pointerEvents: "none", willChange: "none" }, ref: Re([te2, le2]), ...m2, children: Y2(o2) });
|
|
2021
|
+
})), Zt = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), jt = { fireOnModelChange: false }, Kt = te(le((e2, t2) => {
|
|
2022
|
+
const { children: o2, view: n2, movable: l2, onRefLoad: r2, onRefUnload: i2, onHide: a2, onShow: s2, onUnFocus: d2, isDragging: c2, updateFrameBounds: g2, dragStart: u2, style: h2, disabled: m2, renderMovable: p2, ...f2 } = e2, [w2, q2] = ne(Zt), [v2, y2] = ne(null), [C2, b2] = ne(false), S2 = re(null);
|
|
2023
|
+
ae(() => {
|
|
2024
2024
|
if (l2.isClosed()) return;
|
|
2025
2025
|
const e3 = l2.getBounds();
|
|
2026
2026
|
if (!e3) return;
|
|
2027
2027
|
const t3 = n2.toViewBounds(e3);
|
|
2028
|
-
q2(t3 ??
|
|
2029
|
-
}, [n2?.getBounds()]),
|
|
2028
|
+
q2(t3 ?? Zt), g2(t3 ?? Zt);
|
|
2029
|
+
}, [n2?.getBounds()]), bt(l2, { onBoundsChange: (e3) => {
|
|
2030
2030
|
const t3 = e3.getBounds();
|
|
2031
2031
|
if (!t3) return;
|
|
2032
2032
|
const o3 = n2.toViewBounds(t3);
|
|
2033
|
-
q2(o3 ??
|
|
2033
|
+
q2(o3 ?? Zt), g2(o3);
|
|
2034
2034
|
}, onSelectionChange: () => {
|
|
2035
2035
|
const e3 = K.hasFocus(S2.current, true);
|
|
2036
2036
|
!C2 && !e3 || l2.isSelected() || d2();
|
|
2037
|
-
} }),
|
|
2037
|
+
} }), bt(l2, { onRequestFocus: () => K.whenFocus(S2.current, true) }, jt), ie(() => {
|
|
2038
2038
|
const e3 = S2.current;
|
|
2039
2039
|
return r2(e3), () => {
|
|
2040
2040
|
i2(e3);
|
|
2041
2041
|
};
|
|
2042
2042
|
}, []);
|
|
2043
|
-
const x2 =
|
|
2043
|
+
const x2 = oe(() => {
|
|
2044
2044
|
if (!w2) return null;
|
|
2045
2045
|
let { width: e3, height: t3 } = w2;
|
|
2046
2046
|
return p2({ view: n2, movable: l2, disabled: m2, isDragging: c2, style: { position: "relative", left: 0, top: 0, width: e3, height: t3 }, onHide: a2, onShow: s2 });
|
|
2047
2047
|
}, [n2, l2, w2.width, w2.height, m2, c2]);
|
|
2048
|
-
return G("div", { className: "movable", tabIndex: 0, ref:
|
|
2048
|
+
return G("div", { className: "movable", tabIndex: 0, ref: Re([S2, t2]), style: { display: "flex", alignItems: "stretch", justifyContent: "stretch", position: "absolute", maxWidth: "auto", maxHeight: "auto", minWidth: "auto", minHeight: "auto", left: w2.x, top: w2.y, width: w2.width, height: w2.height, ...h2 }, onMouseDown: async (e3) => {
|
|
2049
2049
|
const t3 = e3.shiftKey || e3.ctrlKey, o3 = l2.isSelected(), n3 = e3.currentTarget;
|
|
2050
2050
|
t3 && o3 ? l2.unselect() : (o3 && !t3 || await l2.select({ addToSelection: t3 }), u2(e3.nativeEvent, n3), n3.focus());
|
|
2051
2051
|
}, onFocus: (e3) => {
|
|
@@ -2053,16 +2053,16 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2053
2053
|
}, onBlur: (e3) => {
|
|
2054
2054
|
v2 && !S2?.current?.contains(e3.relatedTarget) && y2(null), e3.relatedTarget && b2(false);
|
|
2055
2055
|
}, ...f2, children: x2 });
|
|
2056
|
-
})),
|
|
2057
|
-
const { view: o2, movables: n2, movablesView: l2, renderMovable: r2, transactional: i2, onUnFocus: a2, onFocus: s2, disabled: d2 = false, disableDrag: c2 = false, disableResize: g2 = false, className: u2, style: h2, renderDirections: m2 = ["nw", "n", "ne", "w", "e", "sw", "s", "se"], onFirstRender: p2, ...f2 } = e2, q2 = o2.getBounds(), v2 = S(p2, [p2]), y2 = S(a2, [a2]), C2 = S(s2, [s2]), [k2, R2] =
|
|
2058
|
-
|
|
2056
|
+
})), Xt = "_movable-area_314c6_5", Yt = te(le((e2, t2) => {
|
|
2057
|
+
const { view: o2, movables: n2, movablesView: l2, renderMovable: r2, transactional: i2, onUnFocus: a2, onFocus: s2, disabled: d2 = false, disableDrag: c2 = false, disableResize: g2 = false, className: u2, style: h2, renderDirections: m2 = ["nw", "n", "ne", "w", "e", "sw", "s", "se"], onFirstRender: p2, ...f2 } = e2, q2 = o2.getBounds(), v2 = S(p2, [p2]), y2 = S(a2, [a2]), C2 = S(s2, [s2]), [k2, R2] = ne([]), [M2, T2] = ne(false), [A2, z2] = ne(false), F2 = re(true), E2 = re(/* @__PURE__ */ new Map()), D2 = re(/* @__PURE__ */ new Map()), I2 = re(/* @__PURE__ */ new Map()), N2 = re(/* @__PURE__ */ new Map()), V2 = re(/* @__PURE__ */ new Map()), L2 = re({ onRequestFocus: (e3) => (ue2(e3), null) }), H2 = re(null), B2 = re(null), O2 = re(null), [P2, $2] = de((e3) => e3 + 1, 0);
|
|
2058
|
+
ae(() => {
|
|
2059
2059
|
$2();
|
|
2060
|
-
}, [o2, n2]),
|
|
2060
|
+
}, [o2, n2]), bt(n2, { onCollectionChange: () => {
|
|
2061
2061
|
const e3 = n2.getItems({ address: o2.getVisibleRangeCoords(), excludeHidden: true }), t3 = V2.current;
|
|
2062
2062
|
t3.forEach((e4) => {
|
|
2063
2063
|
e4();
|
|
2064
2064
|
}), t3.clear();
|
|
2065
|
-
const l3 =
|
|
2065
|
+
const l3 = L2.current;
|
|
2066
2066
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
2067
2067
|
const n3 = e3[o3];
|
|
2068
2068
|
if (n3.isClosed()) continue;
|
|
@@ -2072,10 +2072,10 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2072
2072
|
$2();
|
|
2073
2073
|
}, onInvalidated: () => {
|
|
2074
2074
|
$2();
|
|
2075
|
-
} }),
|
|
2075
|
+
} }), bt(l2, { onMovableSelectionChange(e3) {
|
|
2076
2076
|
U2(), $2();
|
|
2077
2077
|
} });
|
|
2078
|
-
const W2 =
|
|
2078
|
+
const W2 = se((e3, t3) => {
|
|
2079
2079
|
const o3 = I2.current.get(e3);
|
|
2080
2080
|
O2.current && (O2.current.getTargets().forEach((e4) => {
|
|
2081
2081
|
if (e4 === o3) return e4.style.left = t3.x + "px", e4.style.top = t3.y + "px", e4.style.width = t3.width + "px", void (e4.style.height = t3.height + "px");
|
|
@@ -2087,25 +2087,25 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2087
2087
|
if (!n3) return;
|
|
2088
2088
|
-1 !== t3.indexOf(o3) && e3.push(n3);
|
|
2089
2089
|
}), R2((t4) => K.isEqualArrays(t4, e3) ? t4 : e3);
|
|
2090
|
-
}, _2 =
|
|
2090
|
+
}, _2 = re(null), j2 = re(null), X2 = oe(() => (j2.current || (j2.current = new Promise((e3) => {
|
|
2091
2091
|
_2.current = e3;
|
|
2092
|
-
})), j2.current), []), Y2 =
|
|
2092
|
+
})), j2.current), []), Y2 = re(null), J2 = S(async (e3, t3) => {
|
|
2093
2093
|
Y2.current = t3;
|
|
2094
2094
|
await (async () => !(!await X2.then() || !O2.current))() && Y2.current === t3 && O2.current.dragStart(e3, t3);
|
|
2095
|
-
}, [k2]), [
|
|
2095
|
+
}, [k2]), [Q2, te2] = ne(false), le2 = re(null), ge2 = re(null), ue2 = S(async (e3 = null) => {
|
|
2096
2096
|
if (e3 || (e3 = l2.getMovableSelection()[0]), !e3) return y2?.(), false;
|
|
2097
2097
|
const t3 = I2.current.get(e3);
|
|
2098
|
-
t3 ? (await K.whenFocus(t3), t3.focus(), ge2.current = t3,
|
|
2098
|
+
t3 ? (await K.whenFocus(t3), t3.focus(), ge2.current = t3, le2.current = null) : le2.current = e3;
|
|
2099
2099
|
}, [l2]);
|
|
2100
|
-
|
|
2101
|
-
|
|
2100
|
+
ie(() => {
|
|
2101
|
+
Q2 && k2.length > 0 && ge2.current !== k2[0] && ue2(), F2.current && (v2?.(), F2.current = false);
|
|
2102
2102
|
}, [k2]);
|
|
2103
|
-
const he2 =
|
|
2103
|
+
const he2 = oe(() => {
|
|
2104
2104
|
const e3 = n2.getItems({ address: o2.getVisibleRangeCoords(), excludeHidden: true });
|
|
2105
2105
|
if (0 === e3.length && 0 === E2.current.size) return null;
|
|
2106
2106
|
const t3 = (t4, n3, l3, i4 = true) => {
|
|
2107
2107
|
const a4 = t4.isSelected(), s4 = { tabIndex: l3, view: o2, movable: t4, onRefLoad: (e4) => {
|
|
2108
|
-
|
|
2108
|
+
le2.current === t4 && (e4.focus(), ge2.current = e4, le2.current = null), I2.current.set(t4, e4), D2.current.set(e4, t4), n3.rendered = true, U2();
|
|
2109
2109
|
}, onRefUnload: (e4) => {
|
|
2110
2110
|
I2.current.delete(t4), D2.current.delete(e4), n3.rendered = false, U2();
|
|
2111
2111
|
}, onUnFocus: y2, onHide: (e4) => {
|
|
@@ -2123,7 +2123,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2123
2123
|
}), e4 ? pe2() : fe2();
|
|
2124
2124
|
}
|
|
2125
2125
|
}, style: { opacity: i4 ? M2 && a4 ? 0.7 : void 0 : 0, zIndex: M2 && a4 ? t4.getZIndex() + e3.length : void 0, pointerEvents: i4 ? void 0 : "none", cursor: A2 && a4 ? "grabbing" : d2 || c2 ? "initial" : "move", boxShadow: !a4 || A2 && !M2 ? void 0 : "1px 1px 2px 2px rgba(0,0,0,.15)" } };
|
|
2126
|
-
return G(
|
|
2126
|
+
return G(Kt, { ...s4 }, `movable-${t4.getUUID()}`);
|
|
2127
2127
|
}, i3 = E2.current, a3 = /* @__PURE__ */ new Map(), s3 = [];
|
|
2128
2128
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
2129
2129
|
const n3 = e3[o3];
|
|
@@ -2158,34 +2158,34 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2158
2158
|
const t4 = k2[e4], n4 = D2.current?.get(t4);
|
|
2159
2159
|
n4 ? N2.current.set(t4, { movable: n4, startBounds: o2.toViewBounds(n4.getBounds()) }) : console.warn("invalid element", n4);
|
|
2160
2160
|
}
|
|
2161
|
-
}, [i2, o2, k2]), pe2 =
|
|
2161
|
+
}, [i2, o2, k2]), pe2 = se(() => {
|
|
2162
2162
|
if (!B2.current) return;
|
|
2163
2163
|
const e3 = [];
|
|
2164
2164
|
N2.current?.forEach((t3) => {
|
|
2165
2165
|
e3.push(t3.movable);
|
|
2166
2166
|
}), B2.current.commit({ viewAfter: { view: l2, movableSelection: e3 } }), N2.current.clear(), B2.current = null;
|
|
2167
|
-
}, []), fe2 =
|
|
2167
|
+
}, []), fe2 = se(() => {
|
|
2168
2168
|
B2.current && (B2.current.rollback(), B2.current = null);
|
|
2169
|
-
}, []), we2 =
|
|
2170
|
-
|
|
2169
|
+
}, []), we2 = re(null);
|
|
2170
|
+
ie(() => {
|
|
2171
2171
|
we2.current && (we2.current.onscroll = (e3) => {
|
|
2172
2172
|
e3.preventDefault(), e3.srcElement.scrollTop = 0, e3.srcElement.scrollLeft = 0;
|
|
2173
2173
|
});
|
|
2174
2174
|
}, [we2.current]);
|
|
2175
2175
|
const qe2 = b(t2, () => ({ isMovableArea: () => true, focusMovable: ue2, focus: () => {
|
|
2176
2176
|
ue2();
|
|
2177
|
-
} }), [l2]), [ve2, ye2] =
|
|
2178
|
-
|
|
2177
|
+
} }), [l2]), [ve2, ye2] = ne(null), Ce2 = re(false), be2 = re(false), Se2 = re(false);
|
|
2178
|
+
ie(() => {
|
|
2179
2179
|
if (d2 || 0 === k2.length) return;
|
|
2180
2180
|
if (Se2.current) return;
|
|
2181
2181
|
if (Ce2.current) return;
|
|
2182
2182
|
if (be2.current) return void requestAnimationFrame(() => {
|
|
2183
|
-
O2.current &&
|
|
2183
|
+
O2.current && H2.current && O2.current.refTargets.length > 0 && (Se2.current = true, _2.current?.(true)), R2([...k2]);
|
|
2184
2184
|
});
|
|
2185
2185
|
Ce2.current = true;
|
|
2186
|
-
const e3 =
|
|
2186
|
+
const e3 = ee.lazy(async () => {
|
|
2187
2187
|
try {
|
|
2188
|
-
const e4 = await import("./
|
|
2188
|
+
const e4 = await import("./CrjRKu-E7AruHAfn.mjs");
|
|
2189
2189
|
return Ce2.current = false, be2.current = true, R2([...k2]), e4;
|
|
2190
2190
|
} catch (e4) {
|
|
2191
2191
|
return console.warn(e4), _2.current?.(false), null;
|
|
@@ -2193,7 +2193,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2193
2193
|
});
|
|
2194
2194
|
ye2(e3);
|
|
2195
2195
|
}, [k2, d2, c2, g2]);
|
|
2196
|
-
const xe2 =
|
|
2196
|
+
const xe2 = oe(() => !ve2 || d2 ? null : G(ce, { children: G(ve2, { className: Te({ dragging: M2 || A2, resizing: M2, moving: A2 }), container: null, ref: O2, target: O2.current ? k2 : [], draggable: !d2 && !c2, resizable: !d2 && !g2, individualGroupable: true, edgeDraggable: false, throttleDrag: 2, throttleResize: 2, origin: false, keepRatio: false, renderDirections: m2, onResizeStart: (e3) => {
|
|
2197
2197
|
me2(e3.target, "Resize");
|
|
2198
2198
|
}, onResize: (e3) => {
|
|
2199
2199
|
if (!B2.current) return e3.stopDrag(), void $2();
|
|
@@ -2229,10 +2229,10 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2229
2229
|
}, onDragEnd: (e3) => {
|
|
2230
2230
|
}, onMouseUp: (e3) => {
|
|
2231
2231
|
} }) }), [P2, ve2, k2, o2, d2, c2, g2, M2, A2]);
|
|
2232
|
-
return G("div", { className:
|
|
2233
|
-
C2?.(),
|
|
2232
|
+
return G("div", { className: Te(u2, "movable-area", Xt), style: { width: q2.width, height: q2.height, ...h2, position: "absolute", overflow: "hidden", willChange: "transform" }, ref: Re([qe2, we2]), ...f2, children: G("div", { className: "movable-scroll", style: { position: "absolute", cursor: "initial", left: 0, top: 0, width: q2.width, height: q2.height }, ...f2, children: Z("div", { ref: H2, style: { position: "absolute", pointerEvents: "auto" }, onFocus: (e3) => {
|
|
2233
|
+
C2?.(), te2(true);
|
|
2234
2234
|
}, onBlur: (e3) => {
|
|
2235
|
-
|
|
2235
|
+
te2(false);
|
|
2236
2236
|
}, onKeyDownCapture: (e3) => {
|
|
2237
2237
|
if (e3.isDefaultPrevented()) return;
|
|
2238
2238
|
const t3 = e3.nativeEvent.ctrlKey, o3 = e3.nativeEvent.altKey, r3 = e3.nativeEvent.shiftKey;
|
|
@@ -2274,14 +2274,14 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2274
2274
|
l2.selectMovables(n2.getItems(), true), l2.selectMovables(t4, true), e3.preventDefault();
|
|
2275
2275
|
} else "ArrowLeft" === e3.key ? (r3 ? s3(i3, false) : o3 ? a3(-10) : d3({ x: t3 ? -10 : -1 }), e3.preventDefault()) : "ArrowRight" === e3.key ? (r3 ? s3(i3, true) : o3 ? a3(10) : d3({ x: t3 ? 10 : 1 }), e3.preventDefault()) : "ArrowUp" === e3.key ? (r3 ? s3(i3, true) : d3({ y: t3 ? -10 : -1 }), e3.preventDefault()) : "ArrowDown" === e3.key && (r3 ? s3(i3, false) : d3({ y: t3 ? 10 : 1 }), e3.preventDefault());
|
|
2276
2276
|
}, children: [he2, xe2] }) }) });
|
|
2277
|
-
})),
|
|
2277
|
+
})), Jt = (e2) => {
|
|
2278
2278
|
let t2 = Number.MAX_SAFE_INTEGER, o2 = Number.MAX_SAFE_INTEGER, n2 = 0, l2 = 0;
|
|
2279
2279
|
for (let r2 = 0; r2 < e2.length; r2++) {
|
|
2280
2280
|
const i2 = e2[r2].getBounds();
|
|
2281
2281
|
t2 = Math.min(i2.x, t2), o2 = Math.min(i2.y, o2), n2 = Math.max(i2.x + i2.width, n2), l2 = Math.max(i2.y + i2.height, l2);
|
|
2282
2282
|
}
|
|
2283
2283
|
return { x: t2, y: o2, width: n2 - t2, height: l2 - o2 };
|
|
2284
|
-
},
|
|
2284
|
+
}, Qt = (e2, t2 = true) => {
|
|
2285
2285
|
const o2 = [], n2 = t2 ? "x" : "y", l2 = t2 ? "y" : "x", r2 = t2 ? "width" : "height";
|
|
2286
2286
|
let i2 = 0, a2 = Number.MAX_SAFE_INTEGER, s2 = 0;
|
|
2287
2287
|
for (let t3 = 0; t3 < e2.length; t3++) {
|
|
@@ -2301,9 +2301,9 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2301
2301
|
}
|
|
2302
2302
|
return c2.set(o2[o2.length - 1].movable, o2[o2.length - 1].bounds), c2;
|
|
2303
2303
|
};
|
|
2304
|
-
function
|
|
2305
|
-
const { movables: t2, movablesView: o2, transactional: n2, commands: l2, target: r2, onRepeatCommandChange: i2
|
|
2306
|
-
|
|
2304
|
+
function eo(e2) {
|
|
2305
|
+
const { movables: t2, movablesView: o2, transactional: n2, commands: l2, target: r2, onRepeatCommandChange: i2 } = e2, a2 = z(), s2 = F();
|
|
2306
|
+
re(s2.getMode()).current = s2.getMode();
|
|
2307
2307
|
const d2 = S(async (e3, t3, o3 = null, n3 = true) => {
|
|
2308
2308
|
const l3 = async () => {
|
|
2309
2309
|
const d3 = await Promise.resolve(a2?.showBusy?.(e3.label()));
|
|
@@ -2320,7 +2320,7 @@ function Qt(e2) {
|
|
|
2320
2320
|
}
|
|
2321
2321
|
};
|
|
2322
2322
|
await l3();
|
|
2323
|
-
}, [i2, a2]), [c2, g2] =
|
|
2323
|
+
}, [i2, a2]), [c2, g2] = de((e3) => e3 + 1, 0), u2 = S((e3, t3, l3) => {
|
|
2324
2324
|
if (!o2) return;
|
|
2325
2325
|
const r3 = o2.getMovableSelection();
|
|
2326
2326
|
if (0 === r3.length) return;
|
|
@@ -2342,7 +2342,7 @@ function Qt(e2) {
|
|
|
2342
2342
|
}
|
|
2343
2343
|
e4?.commit();
|
|
2344
2344
|
});
|
|
2345
|
-
}, [o2, n2]), [h2, m2] =
|
|
2345
|
+
}, [o2, n2]), [h2, m2] = ne(o2.getMovableSelection()[0] ?? null), [p2, f2] = ne(!h2 || h2?.isProtected()), v2 = oe(() => [new R("moveToFront", r2, { label: "Bring to Front", description: "Move to the front of all of the other drawings.", shortcut: { key: "BracketRight", modifiers: [M.Ctrl, M.Shift] } }, function() {
|
|
2346
2346
|
u2(this, (e3) => {
|
|
2347
2347
|
e3.moveToFront();
|
|
2348
2348
|
});
|
|
@@ -2377,53 +2377,53 @@ function Qt(e2) {
|
|
|
2377
2377
|
}), new R("formatDrawAlignLeft", r2, { label: "Align Left", description: "Align the selected drawings to the left." }, function() {
|
|
2378
2378
|
u2(this, (e3, t3) => {
|
|
2379
2379
|
e3.setBounds({ x: t3.x });
|
|
2380
|
-
},
|
|
2380
|
+
}, Jt);
|
|
2381
2381
|
}), new R("formatDrawAlignCenter", r2, { label: "Align Center", description: "Align the selected drawings vertically relative to each other." }, function() {
|
|
2382
2382
|
u2(this, (e3, t3) => {
|
|
2383
2383
|
e3.setBounds({ x: (t3.width - e3.getBounds().width) / 2 + t3.x });
|
|
2384
|
-
},
|
|
2384
|
+
}, Jt);
|
|
2385
2385
|
}), new R("formatDrawAlignRight", r2, { label: "Align Right", description: "Align the selected drawings to the right." }, function() {
|
|
2386
2386
|
u2(this, (e3, t3) => {
|
|
2387
2387
|
e3.setBounds({ x: t3.width - e3.getBounds().width + t3.x });
|
|
2388
|
-
},
|
|
2388
|
+
}, Jt);
|
|
2389
2389
|
}), new R("formatDrawAlignTop", r2, { label: "Align Top", description: "Align the selected drawings to the top." }, function() {
|
|
2390
2390
|
u2(this, (e3, t3) => {
|
|
2391
2391
|
e3.setBounds({ y: t3.y });
|
|
2392
|
-
},
|
|
2392
|
+
}, Jt);
|
|
2393
2393
|
}), new R("formatDrawAlignMiddle", r2, { label: "Align Middle", description: "Align the selected drawings horizontally relative to each other." }, function() {
|
|
2394
2394
|
u2(this, (e3, t3) => {
|
|
2395
2395
|
e3.setBounds({ y: (t3.height - e3.getBounds().height) / 2 + t3.y });
|
|
2396
|
-
},
|
|
2396
|
+
}, Jt);
|
|
2397
2397
|
}), new R("formatDrawAlignBottom", r2, { label: "Align Bottom", description: "Align the selected drawings to the bottom." }, function() {
|
|
2398
2398
|
u2(this, (e3, t3) => {
|
|
2399
2399
|
e3.setBounds({ y: t3.height - e3.getBounds().height + t3.y });
|
|
2400
|
-
},
|
|
2400
|
+
}, Jt);
|
|
2401
2401
|
}), new R("formatDrawDistributeHorz", r2, { label: "Distribute Horizontally", description: "Distribute the selected drawings horizontally with equal spacing between each." }, function() {
|
|
2402
2402
|
u2(this, (e3, t3) => {
|
|
2403
2403
|
e3.setBounds(t3.get(e3));
|
|
2404
|
-
}, (e3) =>
|
|
2404
|
+
}, (e3) => Qt(e3));
|
|
2405
2405
|
}), new R("formatDrawDistributeVert", r2, { label: "Distribute Vertically", description: "Distribute the selected drawings vertically with equal spacing between each." }, function() {
|
|
2406
2406
|
u2(this, (e3, t3) => {
|
|
2407
2407
|
e3.setBounds(t3.get(e3));
|
|
2408
|
-
}, (e3) =>
|
|
2408
|
+
}, (e3) => Qt(e3, false));
|
|
2409
2409
|
}), new R("formatDrawFlipHorz", r2, { label: "Flip Horizontally", description: "Flip the selected drawings horizontally." }), new R("formatDrawFlipVert", r2, { label: "Flip Vertically", description: "Flip the selected drawings vertically." }), new R("formatDrawGroup", r2, { label: "Group", description: "Group the selected drawings into a single drawing." }), new R("formatDrawUngroup", r2, { label: "Ungroup", description: "Break the group of a drawing into individual drawings." }), new R("formatDrawSwapShapes", r2, { label: "Swap Shapes", description: "Swap the positions of the swap." }), new R("formatDrawSwapShapesHorz", r2, { label: "Swap Shapes Horizontally", description: "Swap the positions of the swap horizontally." }), new R("formatDrawSwapShapesVert", r2, { label: "Swap Shapes Vertically", description: "Swap the positions of the swap vertically." })], [o2, h2]);
|
|
2410
|
-
|
|
2410
|
+
ie(() => {
|
|
2411
2411
|
}, [s2]);
|
|
2412
|
-
const y2 =
|
|
2412
|
+
const y2 = oe(() => {
|
|
2413
2413
|
let e3 = null;
|
|
2414
2414
|
return e3 = l2 ? l2.createChildGroup(r2, "movable", false) : new T(r2, "movable"), e3.addCommands(v2, true), e3;
|
|
2415
2415
|
}, [l2, v2]);
|
|
2416
|
-
return
|
|
2416
|
+
return bt(h2, { onAnyChange: () => {
|
|
2417
2417
|
y2.getCommand("formatAnchorTypeTwoCell").update({ state: h2?.getAnchorType() === q.Type.TwoCell }), y2.getCommand("formatAnchorTypeOneCell").update({ state: h2?.getAnchorType() === q.Type.OneCell }), y2.getCommand("formatAnchorTypeAbsolute").update({ state: h2?.getAnchorType() === q.Type.Absolute }), y2.getCommand("formatAnchorTypeAbsolute").update({ state: h2?.getAnchorType() === q.Type.Absolute }), y2.getCommand("toggleLockAspectRatio").update({ state: h2?.isLockAspectRatio() });
|
|
2418
2418
|
}, onProtectedChange: (e3) => {
|
|
2419
2419
|
f2(e3.isProtected());
|
|
2420
2420
|
}, onDelete: () => {
|
|
2421
|
-
} }),
|
|
2421
|
+
} }), bt(o2, { onMovableSelectionChange: () => {
|
|
2422
2422
|
const e3 = o2.getMovableSelection()[0] ?? null;
|
|
2423
2423
|
m2(e3), f2(!e3 || e3.isProtected()), g2();
|
|
2424
|
-
} }),
|
|
2424
|
+
} }), bt(t2, { onCollectionChange: () => {
|
|
2425
2425
|
g2();
|
|
2426
|
-
} }),
|
|
2426
|
+
} }), ie(() => {
|
|
2427
2427
|
const e3 = { disabled: p2 };
|
|
2428
2428
|
y2.getCommand("formatAnchorTypeTwoCell").update(e3), y2.getCommand("formatAnchorTypeOneCell").update(e3), y2.getCommand("formatAnchorTypeAbsolute").update(e3), y2.getCommand("toggleLockAspectRatio").update(e3);
|
|
2429
2429
|
const n3 = t2.getCount(), l3 = o2.getMovableSelection(), r3 = p2 || n3 <= 1 || 0 === l3.length;
|
|
@@ -2439,92 +2439,92 @@ function Qt(e2) {
|
|
|
2439
2439
|
y2.getCommand("formatDrawDistributeHorz").update(d3), y2.getCommand("formatDrawDistributeVert").update(d3);
|
|
2440
2440
|
}, [c2, p2, c2]), y2;
|
|
2441
2441
|
}
|
|
2442
|
-
const
|
|
2442
|
+
const to = te(le((e2, t2) => {
|
|
2443
2443
|
const { children: o2, disabled: n2, description: l2, view: r2, isDragging: i2, onHide: a2, onShow: s2, ...d2 } = e2;
|
|
2444
|
-
|
|
2444
|
+
ie(() => {
|
|
2445
2445
|
}, [l2]);
|
|
2446
|
-
const c2 = b(t2, () => ({ isEmptyFrame: () => true }), []), [g2, { height: u2, width: h2 }] =
|
|
2447
|
-
return G("div", { ...d2, ref:
|
|
2448
|
-
})),
|
|
2449
|
-
const { view: o2, sheet: n2, movableProps: l2, renderMovable: r2, commands: i2, target: a2,
|
|
2450
|
-
|
|
2446
|
+
const c2 = b(t2, () => ({ isEmptyFrame: () => true }), []), [g2, { height: u2, width: h2 }] = Me();
|
|
2447
|
+
return G("div", { ...d2, ref: Re([c2, g2]), children: G("div", { className: "chart-editor", style: { width: "100%", height: "100%", border: "var(--sxl-app-color-grey, grey) solid 1px", backgroundColor: "var(--sxl-app-color-background, white)", backgroundImage: "var(--sxl-app-image-background)", alignItems: "center", justifyContent: "center", zoom: r2.getZoom(), display: "flex", position: "relative", filter: n2 ? "blur(1px)" : void 0, boxShadow: i2 ? "1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))" : void 0 }, children: G("div", { style: { textAlign: "center" }, children: l2 }) }) });
|
|
2448
|
+
})), oo = te(le((e2, t2) => {
|
|
2449
|
+
const { view: o2, sheet: n2, movableProps: l2, renderMovable: r2, commands: i2, target: a2, onRepeatCommandChange: s2 } = e2, d2 = eo({ movables: n2.getMovables(), movablesView: n2?.getView(), transactional: n2, onRepeatCommandChange: s2, commands: i2, target: a2 });
|
|
2450
|
+
ie(() => {
|
|
2451
2451
|
o2?.getStage();
|
|
2452
2452
|
}, [o2?.getStage()]);
|
|
2453
|
-
const
|
|
2454
|
-
|
|
2455
|
-
} }, "movable-area"), [n2, l2, i2,
|
|
2456
|
-
return
|
|
2457
|
-
})),
|
|
2458
|
-
const { view: o2, sheet: n2, gridStyle: l2, getCellEditor: r2, showProtectedError: i2, setEditingCoords: a2, commands: d2
|
|
2459
|
-
|
|
2460
|
-
if (null ===
|
|
2453
|
+
const c2 = oe(() => G(Yt, { ref: t2, view: o2, movables: n2.getMovables(), disableResize: !n2.getProtection().isObjectsAllowed(), disableDrag: !n2.getProtection().isObjectsAllowed(), movablesView: n2.getView(), transactional: n2, renderMovable: r2, ...l2, onFocus: () => {
|
|
2454
|
+
d2.activate(), l2?.onFocus?.();
|
|
2455
|
+
} }, "movable-area"), [n2, l2, i2, d2]);
|
|
2456
|
+
return c2 && o2 ? c2 : null;
|
|
2457
|
+
})), no = te(le((e2, t2) => {
|
|
2458
|
+
const { view: o2, sheet: n2, gridStyle: l2, getCellEditor: r2, showProtectedError: i2, setEditingCoords: a2, commands: d2 } = e2, c2 = F(), [g2, u2] = ne(null), [h2, m2] = ne(null), [p2, f2] = ne(null), [q2, v2] = ne(null), [y2, C2] = ne(null);
|
|
2459
|
+
ae(() => {
|
|
2460
|
+
if (null === p2) return v2(null), void C2(null);
|
|
2461
2461
|
const e3 = () => {
|
|
2462
|
-
const e4 = n2.getRange(
|
|
2462
|
+
const e4 = n2.getRange(p2).getCell(), t3 = e4.getStyle();
|
|
2463
2463
|
let o3, r3 = t3.getFill()?.toCSS(l2.body.darkMode);
|
|
2464
|
-
"none" !== r3.background && "transparent" !== r3.background || (r3 = n2.getStyles().getNormal().getFill().toCSS(l2.body.darkMode)), "none" !== r3.background && "transparent" !== r3.background || (r3 = { background: l2.body.fill }),
|
|
2464
|
+
"none" !== r3.background && "transparent" !== r3.background || (r3 = n2.getStyles().getNormal().getFill().toCSS(l2.body.darkMode)), "none" !== r3.background && "transparent" !== r3.background || (r3 = { background: l2.body.fill }), v2({ style: r3 }), e4 && !e4.getFormula() && (o3 = e4?.getRenderHorizontalAlignment()), C2(o3 ?? B.Left);
|
|
2465
2465
|
};
|
|
2466
|
-
return e3(), n2.getRange(
|
|
2466
|
+
return e3(), n2.getRange(p2).addListener(() => {
|
|
2467
2467
|
e3();
|
|
2468
2468
|
});
|
|
2469
|
-
}, [n2,
|
|
2470
|
-
const
|
|
2471
|
-
let e3 =
|
|
2472
|
-
if (void 0 !==
|
|
2469
|
+
}, [n2, p2, l2?.body]);
|
|
2470
|
+
const b2 = S(() => {
|
|
2471
|
+
let e3 = h2.editState.dirty ?? "";
|
|
2472
|
+
if (void 0 !== h2.editState.dirty) {
|
|
2473
2473
|
const t3 = w.clampString(e3);
|
|
2474
2474
|
try {
|
|
2475
|
-
const o3 =
|
|
2476
|
-
return o3.setValue(e3, { description: n3, autoFit: true }),
|
|
2475
|
+
const o3 = h2.sheet.getRange(h2.coords), n3 = `Typing '${t3}' into ${o3.toString()}`;
|
|
2476
|
+
return o3.setValue(e3, { description: n3, autoFit: true }), f2(null), m2(null), c2.setMode(null), a2(null), true;
|
|
2477
2477
|
} catch (e4) {
|
|
2478
|
-
throw
|
|
2478
|
+
throw Q.error(new Error(`Unable to enter '${t3}'.`, { cause: e4 })), e4;
|
|
2479
2479
|
}
|
|
2480
2480
|
}
|
|
2481
|
-
}, [n2,
|
|
2481
|
+
}, [n2, h2]), x2 = S((e3) => n2.getRange(e3).getCell().getExtrusions() ?? J.cellToRange(e3), [n2]), k2 = S((e3) => {
|
|
2482
2482
|
let t3 = s.Orientation.Row, o3 = false;
|
|
2483
2483
|
e3 !== s.Direction.Up && e3 !== s.Direction.Down || (t3 = s.Orientation.Column), e3 !== s.Direction.Left && e3 !== s.Direction.Up || (o3 = true), n2.getSelection().traverse(t3, o3);
|
|
2484
|
-
}, [n2]),
|
|
2484
|
+
}, [n2]), R2 = se((e3, t3) => {
|
|
2485
2485
|
if (r2) return r2(e3, t3);
|
|
2486
2486
|
if (!n2) return null;
|
|
2487
2487
|
const { ref: o3, ...i3 } = e3;
|
|
2488
|
-
return G(
|
|
2488
|
+
return G(rt, { ref: o3, ...i3, sheet: n2, bodyStyle: l2?.body, activeCoords: t3, commands: d2, onChangeEdit: (e4) => {
|
|
2489
2489
|
const o4 = { sheet: n2, coords: t3, editState: e4 };
|
|
2490
|
-
|
|
2491
|
-
}, editState:
|
|
2492
|
-
}, [n2,
|
|
2490
|
+
c2.setMode((e5) => ({ ...e5, description: o4.editState.editMode ? "Edit" : "Enter", args: { ...e5?.args, stateAndCoords: o4 } }));
|
|
2491
|
+
}, editState: h2.editState });
|
|
2492
|
+
}, [n2, q2, r2, h2, p2]), { overlay: M2, startEdit: T2, submitEdit: A2, cancelEdit: z2, onKeyboardEventNative: E2, onPointerEventNative: D2 } = Se({ view: o2, activeCoords: g2, getCellEditor: R2, canEdit: () => {
|
|
2493
2493
|
const e3 = n2.getProtection();
|
|
2494
2494
|
if (e3.isReadOnly()) return false;
|
|
2495
2495
|
const t3 = e3.isLocked();
|
|
2496
2496
|
return t3 && i2(), !t3;
|
|
2497
2497
|
}, onBeforeStartEdit: (e3) => {
|
|
2498
|
-
const t3 =
|
|
2499
|
-
|
|
2498
|
+
const t3 = it(() => n2.getRange(e3).getCell()), o3 = { sheet: n2, coords: e3, editState: Object.freeze(t3) };
|
|
2499
|
+
c2.setMode({ key: "edit", args: { stateAndCoords: o3 } }), m2(o3);
|
|
2500
2500
|
}, onStartEdit: (e3) => {
|
|
2501
|
-
|
|
2502
|
-
}, onSubmitEdit:
|
|
2503
|
-
|
|
2501
|
+
f2(e3), a2(e3);
|
|
2502
|
+
}, onSubmitEdit: b2, onCancelEdit: (e3) => {
|
|
2503
|
+
f2(null), m2(null), c2.setMode(null), a2(null);
|
|
2504
2504
|
}, onDoneEdit: (e3) => {
|
|
2505
|
-
|
|
2506
|
-
}, onNavigate:
|
|
2507
|
-
|
|
2508
|
-
|
|
2505
|
+
c2.setMode(null);
|
|
2506
|
+
}, onNavigate: k2, containerProps: q2, borderStrokeFill: l2.selection?.strokeFill, borderStrokeWidth: n2?.getSelection().getCoords().ranges?.length > 1 ? 1 : 2, alignment: y2, getRangeCoords: x2 });
|
|
2507
|
+
bt(n2.getSelection(), { onChange(e3) {
|
|
2508
|
+
u2(n2.getSelection().getCoords().cell);
|
|
2509
2509
|
} });
|
|
2510
|
-
const
|
|
2511
|
-
|
|
2512
|
-
}, [
|
|
2513
|
-
I2(e3);
|
|
2514
|
-
}, [I2]), H2 = ae((e3) => {
|
|
2510
|
+
const I2 = S((e3) => {
|
|
2511
|
+
D2(e3), p2 && A2();
|
|
2512
|
+
}, [D2, z2, p2]), N2 = se((e3) => {
|
|
2515
2513
|
D2(e3);
|
|
2516
|
-
}, [D2])
|
|
2517
|
-
|
|
2514
|
+
}, [D2]), V2 = se((e3) => {
|
|
2515
|
+
E2(e3);
|
|
2516
|
+
}, [E2]);
|
|
2517
|
+
return ie(() => {
|
|
2518
2518
|
const e3 = o2?.getStage();
|
|
2519
|
-
if (e3) return e3.addEventListener("pointerdown",
|
|
2520
|
-
e3.removeEventListener("pointerdown",
|
|
2519
|
+
if (e3) return e3.addEventListener("pointerdown", I2), e3.addEventListener("dblclick", N2), e3.addEventListener("keydown", V2), () => {
|
|
2520
|
+
e3.removeEventListener("pointerdown", I2), e3.removeEventListener("dblclick", N2), e3.removeEventListener("keydown", V2);
|
|
2521
2521
|
};
|
|
2522
|
-
}, [o2?.getStage()]),
|
|
2523
|
-
const e3 =
|
|
2524
|
-
"edit" === t3 || "enter" === t3 ?
|
|
2525
|
-
}, [
|
|
2526
|
-
})),
|
|
2527
|
-
const { view: o2, sheet: n2 } = e2, [l2, r2] =
|
|
2522
|
+
}, [o2?.getStage()]), ie(() => {
|
|
2523
|
+
const e3 = c2.getMode(), t3 = e3?.key;
|
|
2524
|
+
"edit" === t3 || "enter" === t3 ? h2 ? e3.args?.cancel ? z2() : e3.args?.submit ? A2() : m2(e3.args?.stateAndCoords) : T2(e3.args?.start) : p2 && z2();
|
|
2525
|
+
}, [c2]), M2(o2, t2);
|
|
2526
|
+
})), lo = "white", ro = "black", io = `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='m 14.5,8 -5.6875,5.6875 v -3.25 H 1.5 v -4.875 h 7.3125 v -3.25 z' stroke='${ro}' fill='${lo}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`, ao = `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 13.24564,12.979958 H 5.2023009 L 7.500398,10.681861 2.3296796,5.5111425 5.7768252,2.0639969 10.947543,7.2347153 13.24564,4.9366182 Z' stroke='${ro}' fill='${lo}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`, so = te(le((e2, t2) => {
|
|
2527
|
+
const { view: o2, sheet: n2 } = e2, [l2, r2] = ee.useState(n2.getTables().getCount() > 0), [i2, a2] = ee.useState(null), [s2, d2] = ee.useState(null), [c2, g2] = ee.useState(null), [u2, h2] = ee.useState(null), m2 = S(() => {
|
|
2528
2528
|
if (n2.getTables().getCount() > 0) {
|
|
2529
2529
|
r2(true);
|
|
2530
2530
|
const e3 = n2.getTables().getItems({ address: o2.getVisibleRangeCoords() });
|
|
@@ -2548,21 +2548,21 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2548
2548
|
const e3 = n2.getTables().getItems({ address: o2.getVisibleRangeCoords() });
|
|
2549
2549
|
a2(e3.length > 0 ? e3 : null);
|
|
2550
2550
|
}, [n2, l2, o2]);
|
|
2551
|
-
|
|
2551
|
+
bt(n2?.getSelection(), { onChange(e3) {
|
|
2552
2552
|
d2(n2.getSelection().getCoords().cell);
|
|
2553
|
-
} }),
|
|
2553
|
+
} }), bt(c2, { onAnyChange(e3) {
|
|
2554
2554
|
m2(), w2();
|
|
2555
|
-
} }),
|
|
2555
|
+
} }), bt(u2, { onAnyChange(e3) {
|
|
2556
2556
|
w2();
|
|
2557
|
-
} }),
|
|
2557
|
+
} }), bt(n2, { onTablesChange(e3) {
|
|
2558
2558
|
m2(), w2();
|
|
2559
2559
|
}, onInvalidated(e3) {
|
|
2560
2560
|
m2(), w2();
|
|
2561
2561
|
} });
|
|
2562
|
-
const q2 =
|
|
2563
|
-
|
|
2562
|
+
const q2 = ee.useMemo(() => K.debounce(K.throttle(w2, 300), 300), []);
|
|
2563
|
+
ie(() => {
|
|
2564
2564
|
q2();
|
|
2565
|
-
}, [o2]),
|
|
2565
|
+
}, [o2]), ie(() => {
|
|
2566
2566
|
let e3 = null;
|
|
2567
2567
|
if (i2) for (let t3 = 0; t3 < i2.length && !e3; t3++) {
|
|
2568
2568
|
const o3 = i2[t3], n3 = o3.getRange().getCoords();
|
|
@@ -2583,7 +2583,7 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2583
2583
|
}
|
|
2584
2584
|
h2(t3);
|
|
2585
2585
|
}, [o2, i2]);
|
|
2586
|
-
if (
|
|
2586
|
+
if (ie(() => {
|
|
2587
2587
|
const e3 = o2?.getStage();
|
|
2588
2588
|
if (e3 && i2) return e3.addEventListener("mousemove", y2), e3.addEventListener("mouseleave", y2), () => {
|
|
2589
2589
|
e3.removeEventListener("mousemove", y2), e3.removeEventListener("mouseleave", y2);
|
|
@@ -2604,23 +2604,23 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2604
2604
|
}
|
|
2605
2605
|
d3 || (d3 = "var(--sxl-app-color-shadow, rgba(0,0,0,.15))");
|
|
2606
2606
|
}
|
|
2607
|
-
C2.push(G("div", { style: { position: "absolute", left: s3.x, top: s3.y, width: Math.min(16, s3.width), height: s3.height, pointerEvents: "all", cursor:
|
|
2607
|
+
C2.push(G("div", { style: { position: "absolute", left: s3.x, top: s3.y, width: Math.min(16, s3.width), height: s3.height, pointerEvents: "all", cursor: io }, onMouseDown: f2 }, `table-select-row-${t3.getName()}`)), C2.push(G("div", { style: { position: "absolute", left: s3.x, top: s3.y, width: Math.min(16, s3.width), height: Math.min(16, s3.height), pointerEvents: "all", cursor: ao }, onMouseDown: p2 }, `table-select-${t3.getName()}`)), C2.push(G(xe, { x: s3.x, y: s3.y, width: s3.width, height: s3.height, range: a3, strokeWidth: r3 ? 0.5 : 0, stroke: d3 ?? "var(--sxl-app-color-grey, grey)", style: { willChange: "box-shadow", transition: "box-shadow 80ms ease-in-out", boxShadow: l3 ? `${d3} 0px 0px 1px 1px` : void 0 } }, `table-outline-${t3.getName()}`));
|
|
2608
2608
|
}
|
|
2609
2609
|
return C2;
|
|
2610
|
-
})),
|
|
2611
|
-
const { view: n2, sheet: l2, animationTime: r2 = 60 } = t2, [i2, a2] =
|
|
2610
|
+
})), co = te(le((t2, o2) => {
|
|
2611
|
+
const { view: n2, sheet: l2, animationTime: r2 = 60 } = t2, [i2, a2] = ee.useState(null), [s2, d2] = ee.useState(null), c2 = ee.useRef(null), g2 = S(() => {
|
|
2612
2612
|
const e2 = l2.getSelectedCell(), t3 = e2.getSpill()?.getCoords() ?? null;
|
|
2613
2613
|
J.isEqualRanges(t3, i2) || (d2(t3 ? { transition: i2 ? "move" : "in", bounds: n2.getRangeCoordsBounds(t3), coords: t3 } : { transition: "out", bounds: n2.getRangeCoordsBounds(i2), coords: i2 }), a2(t3));
|
|
2614
2614
|
}, [l2, n2, i2]);
|
|
2615
|
-
|
|
2615
|
+
ee.useEffect(() => (c2.current && (clearTimeout(c2.current), c2.current = null), s2 && (c2.current = setTimeout(() => {
|
|
2616
2616
|
d2(null), c2.current = null;
|
|
2617
2617
|
}, r2)), () => {
|
|
2618
2618
|
c2.current && (clearTimeout(c2.current), c2.current = null);
|
|
2619
2619
|
}), [s2, r2]);
|
|
2620
|
-
const u2 =
|
|
2621
|
-
if (
|
|
2620
|
+
const u2 = ee.useMemo(() => K.debounce(K.throttle(g2, 80), 80), []);
|
|
2621
|
+
if (bt(l2?.getSelection(), { onChange(e2) {
|
|
2622
2622
|
u2();
|
|
2623
|
-
} }),
|
|
2623
|
+
} }), bt(l2, { onSpillsChange(e2) {
|
|
2624
2624
|
g2();
|
|
2625
2625
|
}, onInvalidated(e2) {
|
|
2626
2626
|
g2();
|
|
@@ -2630,22 +2630,22 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2630
2630
|
let p2 = s2?.bounds ?? n2.getRangeCoordsBounds(i2);
|
|
2631
2631
|
if (s2 && !K.isEqualBounds(s2.bounds, n2.getRangeCoordsBounds(s2.coords)) && d2(null), p2 = n2.toClipBounds(p2, -10), !p2) return;
|
|
2632
2632
|
const f2 = "var(--sxl-app-color-primary-dark, rgba(0,0,0,.15))";
|
|
2633
|
-
return m2.push(G(
|
|
2634
|
-
})),
|
|
2633
|
+
return m2.push(G(xe, { x: p2.x, y: p2.y, width: p2.width, height: p2.height, range: i2, strokeWidth: 1, stroke: f2, style: { willChange: "transform, opacity, width, height, opacity, left, top", strokeDasharray: h2 ? "6 3" : void 0, opacity: "out" === s2?.transition ? 0 : 1, transition: s2?.transition ? "in" === s2.transition || "out" === s2.transition ? `opacity ${1.5 * r2}ms ease-in-out` : `left ${r2}ms ease-out, top ${r2}ms ease-out, width ${r2}ms ease-out, height ${r2}ms ease-out` : "none", boxShadow: `${f2} 0px 0px 4px 0px` } }, "spill-outline}")), m2;
|
|
2634
|
+
})), go = { position: "absolute", top: 0, left: 0, bottom: 0, right: 0 }, uo = (e2, t2) => {
|
|
2635
2635
|
const o2 = { ...e2 }, n2 = t2?.getNormal().getFont(), l2 = n2?.toCSS(), r2 = { text: { fontFamily: l2?.fontFamily, fontSize: n2?.getSize() } }, i2 = o2.body = K.mergeContentful(e2.body, r2);
|
|
2636
2636
|
return o2.body = K.mergeContentful({ fill: "#fff", strokeFill: "#dad8d6", strokeWidth: 0.5, text: { fontWeight: "400", fontStyle: "normal", fill: "#040404" } }, i2), o2.buttonSurface = K.mergeContentful({ fill: "#fff", text: { fill: "black" }, edgeStrokeFill: "black" }, o2.buttonSurface), o2.selection = { fill: "rgba(16, 124, 65, 0.1)", strokeFill: "#217346", strokeWidth: 2, ...e2.selection }, o2.selectionInactive = { ...o2.selection, fill: "rgba(16, 124, 65, 0.1)", strokeFill: "#dad8d6", ...e2.selectionInactive }, o2.selectionRemove = { ...o2.selection, fill: "rgba(200, 0, 0, 0.1)", strokeFill: "rgba(200, 0, 0, 1)", ...e2.selectionRemove }, o2.headerSelection = { ...o2.selection, ...e2.headerSelection }, o2.headerSelectionInactive = { ...o2.selectionInactive, ...e2.headerSelectionInactive }, o2.header = K.mergeContentful(o2.body, { edgeStrokeFill: "rgb(171, 171, 171)", fill: "#f0f0f0", strokeShadow: void 0, edgeStrokeWidth: 1 }, e2.header), o2.header = K.mergeContentful(o2.header, r2), o2.headerSelect = K.mergeContentful(o2.header, { fill: "rgba(16, 124, 65, 0.1)", text: { fill: o2.headerSelection.strokeFill, fontWeight: "700" } }, e2.headerSelect), o2.headerSelect = K.mergeContentful(o2.headerSelect, r2), o2.headerSelectAll = K.mergeContentful(o2.headerSelect, {}, e2.headerSelectAll), o2.headerSelectAll = K.mergeContentful(o2.headerSelectAll, r2), o2;
|
|
2637
|
-
},
|
|
2638
|
-
const { sheet: o2, gridStyle: n2 =
|
|
2639
|
-
if (
|
|
2637
|
+
}, ho = { fireOnModelChange: false }, mo = {}, po = te(le((e2, t2) => {
|
|
2638
|
+
const { sheet: o2, gridStyle: n2 = mo, headersStyle: l2 = mo, onSheetContextMenu: r2, showColumnHeaders: s2, columnHeaderProps: c2, showRowHeaders: g2, rowHeaderProps: u2, showScrollbars: h2 = true, scrollPaneProps: p2, onViewportChange: f2, commands: w2, onRepeatCommandChange: q2, onMoveCell: v2, overlays: y2, renderMovable: k2, viewportComponent: R2, onElementLoad: M2, getCellEditor: T2, onFocus: A2, onBlur: E2, style: I2 = C.EmptyCssProperties, onShowTooltip: N2, onShowColumnTooltip: V2, onShowRowTooltip: H2, onCloseTooltip: B2, gridProps: P2, cellRenderProps: $2, ...W2 } = e2;
|
|
2639
|
+
if (ee.useEffect(() => {
|
|
2640
2640
|
d._validate(true);
|
|
2641
2641
|
}, []), !o2) throw new Error("ISheet must be provided.");
|
|
2642
|
-
const [U2, _2] =
|
|
2643
|
-
|
|
2642
|
+
const [U2, _2] = ee.useReducer((e3) => e3 + 1, 0), [Q2, { width: te2, height: le2 }] = Me(), de2 = S(N2, [N2]), ce2 = S(V2, [V2]), ue2 = S(H2, [H2]), he2 = S(B2, [B2]), me2 = re(false);
|
|
2643
|
+
ae(() => {
|
|
2644
2644
|
me2.current = true;
|
|
2645
2645
|
}, [o2]);
|
|
2646
|
-
const pe2 = o2?.getStyles(), fe2 =
|
|
2647
|
-
if (
|
|
2648
|
-
}, [
|
|
2646
|
+
const pe2 = o2?.getStyles(), fe2 = oe(() => uo(n2, pe2), [n2, pe2]), we2 = oe(() => uo(l2, pe2), [l2, pe2]), { body: qe2 = {}, buttonSurface: ye2 = {} } = fe2, { header: Ce2 = {}, headerSelect: be2 = {}, headerSelectAll: Se2 = {} } = we2, xe2 = re(null), [Re2, Ae2] = ne(() => o2?.getView()), ze2 = (Re2?.getZoomScale() ?? 100) / 100, Fe2 = oe(() => ({ vertical: Re2.isShowColumnGridlines() && ze2 >= 0.4, horizontal: Re2.isShowRowGridlines() && ze2 >= 0.4 }), [Re2?.isShowColumnGridlines(), Re2?.isShowRowGridlines(), ze2]), Ee2 = oe(() => {
|
|
2647
|
+
if (Re2?.getGridLineColor()) return { strokeDasharray: "1,1" };
|
|
2648
|
+
}, [Re2?.getGridLineColor(), fe2]), De2 = s2 ?? Re2?.isShowColumnHeaders(), Ie2 = g2 ?? Re2?.isShowRowHeaders(), [Ne2, Ve2] = ne({ width: 0, height: 0 }), Le2 = oe(() => {
|
|
2649
2649
|
let e3 = 40, t3 = 20;
|
|
2650
2650
|
const n3 = o2?.getStyles().getNormal().getFont();
|
|
2651
2651
|
if (Ne2.width > 0 && Ne2.height > 0) {
|
|
@@ -2653,18 +2653,18 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2653
2653
|
e3 = r3.width, t3 = r3.lineHeight;
|
|
2654
2654
|
}
|
|
2655
2655
|
return { width: Math.round(e3 + 5), height: Math.round(t3 + 3) };
|
|
2656
|
-
}, [Ne2, fe2?.header.text, o2]),
|
|
2656
|
+
}, [Ne2, fe2?.header.text, o2]), He2 = Ie2 ? ze2 * Le2.width : Ce2.edgeStrokeWidth, Be2 = De2 ? ze2 * Le2.height : Ce2.edgeStrokeWidth, Oe2 = Math.max(te2, (o2?.getColumnHeaders().getDefaultSize() ?? Le2.width) + He2 + 1), Pe2 = Math.max(le2, (o2?.getRowHeaders().getDefaultSize() ?? Le2.height) + Be2 + 1), $e2 = re(/* @__PURE__ */ new Map()), We2 = re(null), Ue2 = () => ({ getColOffset: (e3) => o2.getColumnHeaders().findOffset(e3), getColIndex: (e3) => o2.getColumnHeaders().findIndex(e3), getRowOffset: (e3) => o2.getRowHeaders().findOffset(e3), getRowIndex: (e3) => o2.getRowHeaders().findIndex(e3) }), [_e2, Ge2] = ne(() => Ue2()), [Ze2, je2] = ne(false), [Ke2, Xe2] = ne(null), Ye2 = true, Je2 = fe2.selection?.strokeFill, Qe2 = se(() => Xt2.current, []), [et2, ot2] = ne(), nt2 = S((e3) => {
|
|
2657
2657
|
ot2(e3), o2 && o2.getView() && o2.getView().setTopLeft(e3 ? { left: e3.left, top: e3.top } : null), f2?.(e3);
|
|
2658
|
-
}, [o2, f2]), lt2 =
|
|
2659
|
-
|
|
2660
|
-
if (!
|
|
2661
|
-
const e3 = o2.getRangeAtBounds({ x:
|
|
2658
|
+
}, [o2, f2]), lt2 = re(null);
|
|
2659
|
+
ie(() => {
|
|
2660
|
+
if (!et2 || !o2) return;
|
|
2661
|
+
const e3 = o2.getRangeAtBounds({ x: et2.left, y: et2.top, width: et2.width, height: et2.height });
|
|
2662
2662
|
lt2.current?.(), lt2.current = e3.addListener(() => {
|
|
2663
2663
|
const t3 = e3.getCoords();
|
|
2664
|
-
|
|
2664
|
+
xe2?.current?.invalidate(t3);
|
|
2665
2665
|
});
|
|
2666
|
-
}, [
|
|
2667
|
-
const [rt2, it2] =
|
|
2666
|
+
}, [et2, o2]);
|
|
2667
|
+
const [rt2, it2] = ne(() => o2?.getView().getTopLeft()), at2 = S((e3) => {
|
|
2668
2668
|
const t3 = J.cellToRange(e3);
|
|
2669
2669
|
if (o2.isClosed()) return t3;
|
|
2670
2670
|
const n3 = o2.getRange(t3, { excludeHidden: true }).getMerges();
|
|
@@ -2673,156 +2673,156 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2673
2673
|
if (!e3 || 0 === e3.coords.colIndex && 0 === e3.coords.rowIndex) return null;
|
|
2674
2674
|
const t3 = {};
|
|
2675
2675
|
return e3.coords.colIndex > 0 && (t3[X.Left] = { index: e3.coords.colIndex, scrollOffset: e3.topLeft.left }), e3.coords.rowIndex > 0 && (t3[X.Top] = { index: e3.coords.rowIndex, scrollOffset: e3.topLeft.top }), t3;
|
|
2676
|
-
}, [dt2, ct2] =
|
|
2676
|
+
}, [dt2, ct2] = ne(() => st2(o2.getView().getFreezePanes())), gt2 = F(), ut2 = se(() => xe2.current, []), ht2 = S((e3) => {
|
|
2677
2677
|
gt2.setMode((t3) => "edit" === t3?.key ? { ...t3, args: { ...t3.args } } : { key: "edit", args: { stateAndCoords: null, start: e3 } });
|
|
2678
|
-
}, []), mt2 = S(() =>
|
|
2679
|
-
|
|
2678
|
+
}, []), mt2 = S(() => et2, [et2]), pt2 = kt({ sheet: o2, commands: w2, target: ut2, onRepeatCommandChange: q2, bodyStyle: qe2, onStartEdit: ht2, getViewport: mt2 }), [ft2, wt2] = ne(o2.getSelection().isEntire()), [yt2, St2] = ne(Re2?.getMovableSelection().length > 0), xt2 = null !== Ke2 || yt2, Mt2 = null, [zt2, Ft2] = ne(false);
|
|
2679
|
+
ie(() => {
|
|
2680
2680
|
Ft2(false);
|
|
2681
2681
|
}, [o2.getProtection()]);
|
|
2682
|
-
const Et2 = S(() => {
|
|
2683
|
-
zt2 || (Ft2(true),
|
|
2684
|
-
}, [
|
|
2682
|
+
const Et2 = z(), Dt2 = S(() => {
|
|
2683
|
+
zt2 || (Ft2(true), Et2.showMessage?.(Z("span", { children: ["This sheet is protected.", G("br", {}), "To make a change, unprotect the sheet. You might be requested to enter a password."] }), { type: D.Error }));
|
|
2684
|
+
}, [Et2, zt2]), It2 = oe(() => {
|
|
2685
2685
|
const e3 = gt2.getMode();
|
|
2686
2686
|
return e3?.cursor ? e3.cursor : null;
|
|
2687
|
-
}, [
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
}, [rt2?.left]),
|
|
2691
|
-
|
|
2692
|
-
}, [rt2?.top]),
|
|
2687
|
+
}, [Mt2, gt2]), [Nt2, Vt2] = ne(null), Lt2 = re(false), [Bt2, Ot2] = ne([]), Pt2 = re(null), [$t2, Wt2] = ne(Y.EmptyTopLeft), [Ut2, _t2] = ne(Y.EmptyTopLeft);
|
|
2688
|
+
ie(() => {
|
|
2689
|
+
Wt2({ left: rt2?.left, top: 0 });
|
|
2690
|
+
}, [rt2?.left]), ie(() => {
|
|
2691
|
+
_t2({ left: 0, top: rt2?.top });
|
|
2692
|
+
}, [rt2?.top]), bt(o2?.getView(), { onFreezeSplitChange: () => {
|
|
2693
2693
|
ct2(st2(o2.getView().getFreezePanes()));
|
|
2694
2694
|
}, onTopLeftChange: () => {
|
|
2695
2695
|
it2(o2.getView().getTopLeft());
|
|
2696
2696
|
}, onMovableSelectionChange: () => {
|
|
2697
2697
|
St2(o2.getView().getMovableSelection().length > 0);
|
|
2698
|
-
} }),
|
|
2699
|
-
|
|
2700
|
-
} }),
|
|
2698
|
+
} }), bt(o2?.getSelection(), { onChange: () => {
|
|
2699
|
+
wt2(o2.getSelection().isEntire());
|
|
2700
|
+
} }), bt(o2, { onViewChange() {
|
|
2701
2701
|
Ae2(o2.getView()), Ge2(Ue2());
|
|
2702
2702
|
}, onLayoutChange: () => {
|
|
2703
2703
|
const e3 = o2.getEntireRange();
|
|
2704
2704
|
Ve2({ height: e3.getRowCount(), width: e3.getColumnCount() }), Ge2(Ue2());
|
|
2705
2705
|
}, onStyleChange: () => {
|
|
2706
|
-
|
|
2706
|
+
Yt2();
|
|
2707
2707
|
}, onMovablesChange: () => {
|
|
2708
2708
|
}, onInvalidated: () => {
|
|
2709
|
-
|
|
2710
|
-
} }),
|
|
2709
|
+
Yt2();
|
|
2710
|
+
} }), bt(o2, { onRequestScrollIntoView: async (e3, t3) => {
|
|
2711
2711
|
if (!t3) return;
|
|
2712
2712
|
const o3 = { colIndex: t3?.coords.colStart, rowIndex: t3?.coords.rowStart };
|
|
2713
|
-
return await
|
|
2714
|
-
}, onRequestFocus: () => K.whenFocus(
|
|
2715
|
-
const
|
|
2713
|
+
return await xe2.current?.scrollCellCoordsIntoView(o3, t3?.scroll), true;
|
|
2714
|
+
}, onRequestFocus: () => K.whenFocus(Xt2.current) }, ho);
|
|
2715
|
+
const Zt2 = re(false), jt2 = oe(() => {
|
|
2716
2716
|
const e3 = K.debounce((e4) => {
|
|
2717
2717
|
requestAnimationFrame(() => {
|
|
2718
|
-
|
|
2718
|
+
Lt2.current && ce2?.(e4);
|
|
2719
2719
|
});
|
|
2720
2720
|
}, 32), t3 = (t4, l4) => {
|
|
2721
|
-
|
|
2721
|
+
Lt2.current = true, Vt2([(r3) => {
|
|
2722
2722
|
if (!r3.toClipBounds(r3.getRangeCoordsBounds({ rowStart: 0, rowEnd: Ne2.height, colStart: t4, colEnd: t4 }))) return;
|
|
2723
2723
|
const i2 = r3.getLayout(), a2 = Math.max(0, i2.getColOffset(t4)), s3 = r3.getBounds(), d2 = Math.min(s3.x + s3.width, i2.getColOffset(t4 + 1)), c3 = r3.getAnchor();
|
|
2724
2724
|
if (null !== l4 && (c3 === X.Left || c3 === X.Center || c3 === X.Right)) {
|
|
2725
|
-
const t5 = K.roundAccurately(l4 * K.getDPI(), 0), n3 = K.roundAccurately(o2?.getColumnWidthAsFontUnit(l4 / ze2), 2).toFixed(2), r4 = "Width: " + (l4 ? n3 + " (" + t5 + " pixels)" : "Hidden"), i3 =
|
|
2725
|
+
const t5 = K.roundAccurately(l4 * K.getDPI(), 0), n3 = K.roundAccurately(o2?.getColumnWidthAsFontUnit(l4 / ze2), 2).toFixed(2), r4 = "Width: " + (l4 ? n3 + " (" + t5 + " pixels)" : "Hidden"), i3 = Co2.current.getGridElement().getRelativePointFromClient(0, 0), c4 = 0 - i3.y, g4 = 0 - i3.y + Be2, u4 = i3.x - s3.x;
|
|
2726
2726
|
e3({ anchor: { x: a2 - u4, y: c4, width: d2 - a2, height: g4 - c4 }, display: r4 });
|
|
2727
2727
|
}
|
|
2728
2728
|
const g3 = [0, 0, 0, s3.height], u3 = { style: { boxShadow: `0.5px 0px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: Je2 } }, h3 = { x: a2 - 1, y: 0, width: 1, height: s3.height }, m2 = { style: { boxShadow: `-0.5px 0px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: Je2 } }, p3 = { x: d2 - 1, y: 0, width: 1, height: s3.height };
|
|
2729
|
-
return Z(
|
|
2729
|
+
return Z(ee.Fragment, { children: [G(ke, { linePoints: g3, bounds: h3, ...u3 }), G(ke, { linePoints: g3, bounds: p3, ...m2 })] }, "resize-dividers");
|
|
2730
2730
|
}]);
|
|
2731
2731
|
};
|
|
2732
2732
|
let l3 = null;
|
|
2733
2733
|
return { onResizeHeadersStart: (e4, n3, r3) => {
|
|
2734
|
-
l3 = o2.beginCommit(r3),
|
|
2734
|
+
l3 = o2.beginCommit(r3), Zt2.current = false, t3(e4, n3);
|
|
2735
2735
|
}, onResizeHeaders: (e4, o3, n3) => {
|
|
2736
|
-
|
|
2736
|
+
Zt2.current = false, t3(e4, o3);
|
|
2737
2737
|
}, onResizeHeadersDown: (e4, o3) => {
|
|
2738
|
-
|
|
2739
|
-
|
|
2738
|
+
Zt2.current = true, setTimeout(() => {
|
|
2739
|
+
Zt2.current && t3(e4, o3);
|
|
2740
2740
|
}, 360);
|
|
2741
2741
|
}, onResizeHeadersEnd: (e4, t4, o3) => {
|
|
2742
|
-
l3?.commit({ description: o3 }), l3 = null,
|
|
2742
|
+
l3?.commit({ description: o3 }), l3 = null, Zt2.current = false, requestAnimationFrame(() => he2?.()), Lt2.current = false, Vt2(null);
|
|
2743
2743
|
}, onResizeHeadersUp: (e4) => {
|
|
2744
|
-
|
|
2744
|
+
Zt2.current = false, requestAnimationFrame(() => he2?.()), Lt2.current = false, Vt2(null);
|
|
2745
2745
|
}, ...c2 };
|
|
2746
|
-
}, [o2, c2, Be2,
|
|
2746
|
+
}, [o2, c2, Be2, Nt2]), Kt2 = oe(() => {
|
|
2747
2747
|
const e3 = K.debounce((e4) => {
|
|
2748
2748
|
requestAnimationFrame(() => {
|
|
2749
|
-
|
|
2749
|
+
Lt2.current && ue2?.(e4);
|
|
2750
2750
|
});
|
|
2751
2751
|
}, 32), t3 = (t4, l4) => {
|
|
2752
|
-
|
|
2752
|
+
Lt2.current = true, Vt2([(r3) => {
|
|
2753
2753
|
if (!r3.toClipBounds(r3.getRangeCoordsBounds({ rowStart: t4, rowEnd: t4, colStart: 0, colEnd: Ne2.width }))) return;
|
|
2754
2754
|
const i2 = r3.getLayout(), a2 = Math.max(0, i2.getRowOffset(t4)), s3 = r3.getBounds(), d2 = Math.min(s3.y + s3.height, i2.getRowOffset(t4 + 1)), c3 = r3.getAnchor();
|
|
2755
2755
|
if (null !== l4 && (c3 === X.Top || c3 === X.Center || c3 === X.Bottom)) {
|
|
2756
|
-
const t5 = Math.floor(10 * K.getDPI()) / 10, n3 = K.roundAccurately(l4 * t5, 0), r4 = K.roundAccurately(n3 / ze2 / (o2?.getRowHeaders().getScaleFactor() * K.getDPI()), 2).toFixed(2), i3 = "Height: " + (l4 ? r4 + " (" + n3 + " pixels)" : "Hidden"), c4 =
|
|
2756
|
+
const t5 = Math.floor(10 * K.getDPI()) / 10, n3 = K.roundAccurately(l4 * t5, 0), r4 = K.roundAccurately(n3 / ze2 / (o2?.getRowHeaders().getScaleFactor() * K.getDPI()), 2).toFixed(2), i3 = "Height: " + (l4 ? r4 + " (" + n3 + " pixels)" : "Hidden"), c4 = vo2.current.getGridElement().getRelativePointFromClient(0, 0), g4 = 0 - c4.x, u4 = 0 - c4.x + He2, h4 = c4.y - s3.y;
|
|
2757
2757
|
e3({ anchor: { x: g4, y: a2 - h4, width: u4 - g4, height: d2 - a2 }, display: i3 });
|
|
2758
2758
|
}
|
|
2759
2759
|
const g3 = [0, 0, s3.width, 0], u3 = { style: { boxShadow: `0px 0.5px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: Je2 } }, h3 = { x: 0, y: a2 - 1, width: s3.width, height: 1 }, m2 = { style: { boxShadow: `0px -0.5px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: Je2 } }, p3 = { x: 0, y: d2 - 1, width: s3.width, height: 1 };
|
|
2760
|
-
return Z(
|
|
2760
|
+
return Z(ee.Fragment, { children: [G(ke, { linePoints: g3, bounds: h3, ...u3 }), G(ke, { linePoints: g3, bounds: p3, ...m2 })] }, "resize-dividers");
|
|
2761
2761
|
}]);
|
|
2762
2762
|
};
|
|
2763
2763
|
let l3 = null;
|
|
2764
2764
|
return { onResizeHeadersStart: (e4, n3, r3) => {
|
|
2765
|
-
l3 = o2.beginCommit(r3),
|
|
2765
|
+
l3 = o2.beginCommit(r3), Zt2.current = false, t3(e4, n3);
|
|
2766
2766
|
}, onResizeHeaders: (e4, o3, n3) => {
|
|
2767
|
-
|
|
2767
|
+
Zt2.current = false, t3(e4, o3);
|
|
2768
2768
|
}, onResizeHeadersDown: (e4, o3) => {
|
|
2769
|
-
|
|
2770
|
-
|
|
2769
|
+
Zt2.current = true, setTimeout(() => {
|
|
2770
|
+
Zt2.current && t3(e4, o3);
|
|
2771
2771
|
}, 360);
|
|
2772
2772
|
}, onResizeHeadersEnd: (e4, t4, o3) => {
|
|
2773
|
-
l3?.commit({ description: o3 }), l3 = null,
|
|
2773
|
+
l3?.commit({ description: o3 }), l3 = null, Zt2.current = false, requestAnimationFrame(() => he2?.()), Lt2.current = false, Vt2(null);
|
|
2774
2774
|
}, onResizeHeadersUp: (e4) => {
|
|
2775
|
-
|
|
2775
|
+
Zt2.current = false, requestAnimationFrame(() => he2?.()), Lt2.current = false, Vt2(null);
|
|
2776
2776
|
}, ...u2 };
|
|
2777
|
-
}, [o2, u2,
|
|
2777
|
+
}, [o2, u2, He2]), Xt2 = b(t2, () => {
|
|
2778
2778
|
const e3 = (e4) => {
|
|
2779
|
-
o2?.getView() && o2.getView().selectMovables([]), We2.current = null,
|
|
2779
|
+
o2?.getView() && o2.getView().selectMovables([]), We2.current = null, xe2?.current?.focus(e4);
|
|
2780
2780
|
}, t3 = async (e4 = null) => {
|
|
2781
2781
|
if (e4 || (e4 = o2?.getView().getMovableSelection()[0]), !e4) return false;
|
|
2782
2782
|
const t4 = e4.getAnchorCoords();
|
|
2783
2783
|
if (!t4) return false;
|
|
2784
|
-
const n3 =
|
|
2784
|
+
const n3 = xe2.current?.getViewFromCellCoords({ colIndex: t4.colStart, rowIndex: t4.rowStart });
|
|
2785
2785
|
if (!n3) return false;
|
|
2786
2786
|
const l3 = n3.getAnchor();
|
|
2787
2787
|
-1 === o2?.getView().getMovableSelection().indexOf(e4) && o2?.getView().selectMovables([e4]);
|
|
2788
2788
|
let r3 = $e2.current?.get(l3);
|
|
2789
2789
|
return r3?.current ? (await r3.current.focusMovable(e4), true) : (We2.current = { movable: e4, anchor: l3 }, true);
|
|
2790
2790
|
};
|
|
2791
|
-
return { getGridElement: () =>
|
|
2791
|
+
return { getGridElement: () => xe2.current, getRowHeaderElement: () => vo2.current, getColumnHeaderElement: () => Co2.current, rowHeaderHeight: () => Be2, colHeaderWidth: () => He2, startEdit: ht2, submitEdit: () => {
|
|
2792
2792
|
gt2.setMode((e4) => "edit" !== e4?.key ? e4 : { key: "edit", args: { stateAndCoords: null, submit: true } });
|
|
2793
2793
|
}, cancelEdit: () => {
|
|
2794
2794
|
gt2.setMode((e4) => "edit" !== e4?.key ? e4 : { key: "edit", args: { stateAndCoords: null, cancel: true } });
|
|
2795
2795
|
}, isEditing: null !== Ke2, focus: (n3) => {
|
|
2796
2796
|
o2?.getView().getMovableSelection().length > 0 && t3() || e3(n3);
|
|
2797
|
-
}, focusSheet: e3, focusMovable: t3, contains: (e4) =>
|
|
2798
|
-
}, [o2]),
|
|
2799
|
-
me2.current || (
|
|
2797
|
+
}, focusSheet: e3, focusMovable: t3, contains: (e4) => xe2?.current?.contains?.(e4), invalidate: Yt2, isSheetElement: () => true, getSheet: () => o2 };
|
|
2798
|
+
}, [o2]), Yt2 = se((e3) => {
|
|
2799
|
+
me2.current || (xe2?.current?.invalidate(e3), _2?.());
|
|
2800
2800
|
}, []);
|
|
2801
|
-
|
|
2802
|
-
|
|
2801
|
+
ie(() => {
|
|
2802
|
+
Yt2();
|
|
2803
2803
|
}, [fe2]);
|
|
2804
|
-
const
|
|
2805
|
-
let
|
|
2806
|
-
De2 && Ie2 && (
|
|
2804
|
+
const Jt2 = ft2 ? Se2.edgeStrokeFill : Ce2.fill, Qt2 = ft2 ? be2.fill : "function" == typeof fe2.headerHover ? fe2.headerHover(Ce2)?.fill : Ce2.fill, eo2 = oe(() => R2 ? G("div", { className: Te("sheetxl-viewport-overlay", vt), style: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute" }, children: R2 }) : G(j, {}), [R2]);
|
|
2805
|
+
let to2 = null;
|
|
2806
|
+
De2 && Ie2 && (to2 = Z("div", { tabIndex: -1, className: "top-left-corner", style: { padding: "2 2", position: "absolute", height: `${Be2}px`, width: `${He2}px`, zIndex: 1, boxSizing: "border-box", cursor: "cell" }, onMouseDown: (e3) => {
|
|
2807
2807
|
let t3 = !e3.ctrlKey;
|
|
2808
|
-
pt2?.getCommand("selectAll")?.execute(!t3 || 0 !== e3.button), e3.nativeEvent.which ===
|
|
2809
|
-
}, children: [G("div", { style: { height: Be2 - 5 + "px", width: Be2 - 5 + "px", clipPath: `path('M${Be2 - 5} 0 L0 ${Be2 - 5} L${Be2 - 5} ${Be2 - 5} L${Be2 - 5} 0 Z')`, borderRight: `2px solid ${
|
|
2810
|
-
const
|
|
2811
|
-
}, []),
|
|
2808
|
+
pt2?.getCommand("selectAll")?.execute(!t3 || 0 !== e3.button), e3.nativeEvent.which === L.Right ? r2?.({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: -1, colIndex: -1 }) : xe2.current?.focus();
|
|
2809
|
+
}, children: [G("div", { style: { height: Be2 - 5 + "px", width: Be2 - 5 + "px", clipPath: `path('M${Be2 - 5} 0 L0 ${Be2 - 5} L${Be2 - 5} ${Be2 - 5} L${Be2 - 5} 0 Z')`, borderRight: `2px solid ${Jt2}`, borderBottom: `2px solid ${Jt2}`, background: `${Qt2}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), G("div", { style: { position: "absolute", height: `${Be2}px`, width: `${He2}px`, boxSizing: "border-box", borderRight: `solid 1px ${Ce2.strokeFill}`, borderBottom: `solid 1px ${Ce2.strokeFill}`, right: "-1px", bottom: "-1px" } })] }));
|
|
2810
|
+
const lo2 = S(({ _left: e3, _top: t3 }) => {
|
|
2811
|
+
}, []), ro2 = S((e3) => {
|
|
2812
2812
|
if (!r2) return;
|
|
2813
|
-
const t3 =
|
|
2813
|
+
const t3 = xe2.current.getViewFromClient(e3.clientX, e3.clientY)?.getCellCoordsFromClient(e3.clientX, e3.clientY);
|
|
2814
2814
|
t3 && (r2({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: t3.rowIndex, colIndex: t3.colIndex }), e3.stopPropagation(), e3.preventDefault());
|
|
2815
|
-
}, [r2]),
|
|
2815
|
+
}, [r2]), io2 = S((e3) => {
|
|
2816
2816
|
if (!(!e3.shiftKey && (e3.ctrlKey || e3.metaKey))) return;
|
|
2817
2817
|
const { deltaY: t3 } = e3;
|
|
2818
2818
|
return t3 > 0 ? pt2.getCommand("sheetZoomOut")?.execute() : t3 < 0 && pt2.getCommand("sheetZoomIn")?.execute(), 0 === t3;
|
|
2819
2819
|
}, [pt2]);
|
|
2820
|
-
|
|
2821
|
-
|
|
2820
|
+
ie(() => {
|
|
2821
|
+
Ot2(null), Pt2.current = null, Lt2.current = false, Vt2(null);
|
|
2822
2822
|
const e3 = o2?.getView().getTopLeft();
|
|
2823
|
-
|
|
2823
|
+
lo2(e3), xe2.current?.scrollTo(e3), it2(e3), Ae2(o2.getView()), ct2(st2(o2.getView().getFreezePanes())), Ge2(Ue2()), _2();
|
|
2824
2824
|
}, [o2?.getView()]);
|
|
2825
|
-
const
|
|
2825
|
+
const ao2 = S((e3) => {
|
|
2826
2826
|
const t3 = e3.getVisibleRangeCoords();
|
|
2827
2827
|
if (!t3) return null;
|
|
2828
2828
|
const n3 = [];
|
|
@@ -2833,25 +2833,25 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2833
2833
|
const t5 = e5.getSpans();
|
|
2834
2834
|
if (t5.width > 1 || t5.height > 1) return true;
|
|
2835
2835
|
if (e5.getStyle().hasVisibleStyling()) return true;
|
|
2836
|
-
if (
|
|
2836
|
+
if (Re2.isShowFormulas() && null !== e5.getFormula()) return true;
|
|
2837
2837
|
const o4 = e5.getValue();
|
|
2838
|
-
return null !== o4 && !(!
|
|
2839
|
-
})(l3) && n3.push({ coords: o3, value: l3, range:
|
|
2838
|
+
return null !== o4 && !(!Re2.isShowZeros() && 0 === o4 && e5.getType() === i.Number);
|
|
2839
|
+
})(l3) && n3.push({ coords: o3, value: l3, range: Re2.isShowFormulas() ? null : l3.getExtrusions() });
|
|
2840
2840
|
}, { excludeHidden: true, includeMergeOverflow: true }), n3;
|
|
2841
|
-
}, [o2,
|
|
2842
|
-
|
|
2841
|
+
}, [o2, Re2.isShowZeros(), Re2.isShowFormulas(), Ke2]);
|
|
2842
|
+
ie(() => {
|
|
2843
2843
|
const e3 = [];
|
|
2844
|
-
y2 && e3.push(...y2),
|
|
2845
|
-
}, [y2,
|
|
2846
|
-
const
|
|
2844
|
+
y2 && e3.push(...y2), Nt2 && e3.push(...Nt2), K.isEqualArrays(e3, Pt2.current) || (Pt2.current = e3, Ot2(e3));
|
|
2845
|
+
}, [y2, Nt2, fe2]);
|
|
2846
|
+
const po2 = oe(() => ({ style: { boxShadow: `0.5px 0.5px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: n2?.body?.text?.fill ?? "black" } }), [fe2?.header?.edgeStrokeFill]), fo2 = S((e3) => {
|
|
2847
2847
|
e3.isDefaultPrevented() || e3.isPropagationStopped() || (We2.current = null, o2?.getView().getMovableSelection().length > 0 && o2.getView().selectMovables([]));
|
|
2848
|
-
}, [o2]),
|
|
2848
|
+
}, [o2]), wo2 = oe(() => {
|
|
2849
2849
|
const e3 = gt2.getMode();
|
|
2850
2850
|
return "cut" === e3?.key || "copy" === e3?.key;
|
|
2851
|
-
}, [gt2]),
|
|
2851
|
+
}, [gt2]), qo2 = S(async (e3) => {
|
|
2852
2852
|
const t3 = gt2.getMode();
|
|
2853
|
-
return e3.keyCode === x.Escape && t3 ? (e3.preventDefault(), void gt2.setMode(null)) : e3.keyCode === x.Enter &&
|
|
2854
|
-
}, [pt2, gt2]),
|
|
2853
|
+
return e3.keyCode === x.Escape && t3 ? (e3.preventDefault(), void gt2.setMode(null)) : e3.keyCode === x.Enter && wo2 ? (e3.preventDefault(), await pt2?.getCommand("paste")?.execute(), void gt2.setMode(null)) : void pt2?.dispatchToFocusedCommand(e3);
|
|
2854
|
+
}, [pt2, gt2]), vo2 = re(null), yo2 = oe(() => G("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Be2 + 1}px`, width: `${He2 + Ce2.edgeStrokeWidth}px`, minWidth: `${He2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Be2}px)`, boxSizing: "border-box", zIndex: "2" }, children: G(Tt, { ref: vo2, sheetElement: Xt2.current, gridRef: xe2, freezeStart: dt2?.[X.Top], oppositeSize: He2, containerWidth: He2, containerHeight: Pe2, sheetHeader: o2.getRowHeaders(), gridStyle: we2, verticalPadding: Math.max(0, Math.floor(o2.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: Ut2, onSheetContextMenu: r2, tabIndex: -1, style: { position: "relative", flex: "0", top: `${Be2 + 1}px`, width: `${He2 + Ce2.edgeStrokeWidth}px`, minWidth: `${He2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Be2}px)`, boxSizing: "border-box", zIndex: "2", ...Kt2?.style }, ...Kt2 }) }), [He2, Be2, Pe2, o2, Ut2, dt2?.[X.Top], fe2, Ye2, r2, Ce2.fill, u2]), Co2 = re(null), bo2 = oe(() => G("div", { tabIndex: -1, style: { position: "relative", left: "0px", width: "100%", height: `${Be2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Be2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" }, children: G(Tt, { ref: Co2, sheetElement: Xt2.current, gridRef: xe2, freezeStart: dt2?.[X.Left], oppositeSize: Be2, containerWidth: Oe2, containerHeight: Be2, sheetHeader: o2.getColumnHeaders(), gridStyle: we2, scrollPoint: $t2, onSheetContextMenu: r2, ...jt2, style: { ...jt2?.style, position: "relative", left: "0px", width: "100%", height: `${Be2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Be2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" } }) }), [Be2, Oe2, o2, $t2, dt2?.[X.Left], fe2, Ce2.fill, Ye2, r2, c2]), So2 = S((e3) => {
|
|
2855
2855
|
const { value: t3, key: n3, ...l3 } = e3;
|
|
2856
2856
|
let r3 = t3, i2 = Ke2;
|
|
2857
2857
|
if (!i2 || i2.colIndex === e3.coords.colIndex && i2.rowIndex === e3.coords.rowIndex || (i2 = null), !r3) {
|
|
@@ -2865,162 +2865,162 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2865
2865
|
try {
|
|
2866
2866
|
await r3.getHyperlink()?.open();
|
|
2867
2867
|
} catch (e5) {
|
|
2868
|
-
|
|
2868
|
+
Et2.showError?.(e5);
|
|
2869
2869
|
}
|
|
2870
2870
|
}
|
|
2871
2871
|
}), i2 && i2.colIndex === e3.range.colStart && i2.rowIndex === e3.range.rowStart && (r3 = r3.createTemporaryCell({ value: null }));
|
|
2872
2872
|
const s3 = o2.getStyles();
|
|
2873
|
-
return
|
|
2874
|
-
}, [o2, _e2,
|
|
2873
|
+
return ge(tt, { ...l3, key: n3, bodyStyle: qe2, docTheme: s3.getTheme(), normalStyle: s3.getNormal(), showFormulas: Re2.isShowFormulas(), showZeros: Re2.isShowZeros(), onLinkMouseDown: a2, ...$2, value: r3 });
|
|
2874
|
+
}, [o2, _e2, qe2, Ke2, Re2?.isShowFormulas(), Re2.isShowZeros()]), xo2 = se((e3, t3) => {
|
|
2875
2875
|
const { key: n3, ...l3 } = e3;
|
|
2876
|
-
return [G(
|
|
2877
|
-
|
|
2878
|
-
} }, ...l3 }, `movable-${n3}`), G(
|
|
2879
|
-
}, [o2,
|
|
2876
|
+
return [G(At, { ref: t3, getVisibleCells: ao2, sheet: o2, gridStyle: fe2, ...l3 }, `border-${n3}`), G(so, { ref: t3, sheet: o2, commands: pt2, ...l3 }, `table-${n3}`), G(co, { ref: t3, sheet: o2, ...l3 }, `spill-${n3}`), G(Gt, { ref: t3, sheet: o2, commands: pt2, onShowTooltip: de2, onCloseTooltip: he2, gridStyle: fe2, gridRef: xe2, editingCoords: Ke2, isActive: Ye2, ...l3 }, `selection-${n3}`), G(Ht, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, element: Qe2, ...l3 }, `copy-paste-${n3}`), G(oo, { ref: t3, sheet: o2, commands: pt2, target: ut2, renderMovable: k2, movableProps: { onUnFocus: () => {
|
|
2877
|
+
Xt2.current.focus();
|
|
2878
|
+
} }, ...l3 }, `movable-${n3}`), G(no, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, getCellEditor: T2, showProtectedError: Dt2, setEditingCoords: Xe2, ...l3 }, `editor-${n3}`)];
|
|
2879
|
+
}, [o2, xe2.current, fe2, T2, pt2, Et2]), [ko2, Ro2] = ne(false), Mo2 = oe(() => {
|
|
2880
2880
|
if (0 === Oe2 || 0 === Pe2) return null;
|
|
2881
2881
|
const e3 = o2.getStyles().getNormal(), t3 = e3.getFont(), n3 = e3.getFill(), l3 = e3.getBorder(), r3 = e3.getFill().getType() === m.Type.None;
|
|
2882
2882
|
let i2 = Ee2, a2 = Ee2;
|
|
2883
|
-
const s3 = (e4, t4, o3) => o3 ? { stroke: l3.getBottom().isNone() ? "none" : e4.getColor().toRGBA(
|
|
2883
|
+
const s3 = (e4, t4, o3) => o3 ? { stroke: l3.getBottom().isNone() ? "none" : e4.getColor().toRGBA(qe2.darkMode).toString(), ...t4 } : t4;
|
|
2884
2884
|
a2 = s3(l3.getBottom(), a2, !l3.getBottom().isNone()), a2 = s3(l3.getTop(), a2, !l3.getTop().isNone()), i2 = s3(l3.getRight(), i2, !l3.getRight().isNone()), i2 = s3(l3.getLeft(), i2, !l3.getLeft().isNone());
|
|
2885
|
-
let d2 =
|
|
2886
|
-
return r3 || (a2 = s3(l3.getBottom(), a2, true), a2 = s3(l3.getTop(), a2, true), i2 = s3(l3.getRight(), i2, true), i2 = s3(l3.getLeft(), i2, true)), G(
|
|
2887
|
-
|
|
2888
|
-
}, showGridLines: Fe2, gridLineColor: d2, gridLineColumnsProps: i2, gridLineRowsProps: a2, freezeLeft: dt2?.[X.Left], freezeLeftProps:
|
|
2885
|
+
let d2 = Re2?.getGridLineColor()?.toRGBA(qe2.darkMode).toString() ?? qe2.strokeFill;
|
|
2886
|
+
return r3 || (a2 = s3(l3.getBottom(), a2, true), a2 = s3(l3.getTop(), a2, true), i2 = s3(l3.getRight(), i2, true), i2 = s3(l3.getLeft(), i2, true)), G(ve, { className: "sheetxl-sheet-primary", style: { ...go, ...n3.toCSS(qe2.darkMode), ...t3.toCSS(qe2.darkMode, ze2), "--sxl-app-color-background": qe2.fill, "--sxl-app-color-shadow": fe2.colorShadow, "--sxl-app-color-grey": fe2.colorGrey, "--sxl-app-color-button-fill": ye2.fill, "--sxl-app-color-button-text": ye2.text?.fill, "--sxl-app-color-button-border": ye2.edgeStrokeFill, "--sxl-app-color-primary-dark": fe2.selection.strokeFill }, ref: xe2, zoom: ze2, ...P2, onFirstRender: (e4) => {
|
|
2887
|
+
Ro2(true), P2?.onFirstRender?.(e4), pt2?.activate();
|
|
2888
|
+
}, showGridLines: Fe2, gridLineColor: d2, gridLineColumnsProps: i2, gridLineRowsProps: a2, freezeLeft: dt2?.[X.Left], freezeLeftProps: po2, freezeTop: dt2?.[X.Top], freezeTopProps: po2, width: Oe2, height: Pe2, columnCount: Ne2.width, rowCount: Ne2.height, cursor: It2 ?? Mt2 ?? "cell", clipCells: true, layout: _e2, cellRenderer: So2, overlayRenderer: xo2, getCellCoordsAsRangeCoords: at2, getVisibleCells: ao2, onWheelScroll: io2, onPointerDown: fo2, onKeyDown: qo2, onViewportChange: nt2, onImmediateScroll: lo2, scrollPoint: rt2, stageProps: { onFocus: () => {
|
|
2889
2889
|
pt2?.activate();
|
|
2890
|
-
} }, overlays:
|
|
2890
|
+
} }, overlays: Bt2 });
|
|
2891
2891
|
}, [U2]);
|
|
2892
|
-
|
|
2892
|
+
ie(() => {
|
|
2893
2893
|
me2.current || _2();
|
|
2894
|
-
}, [_e2, dt2, ze2, pt2, rt2?.left, rt2?.top,
|
|
2895
|
-
let
|
|
2896
|
-
h2 || (
|
|
2897
|
-
const
|
|
2894
|
+
}, [_e2, dt2, ze2, pt2, rt2?.left, rt2?.top, qe2, P2, Oe2, Pe2, It2, Bt2, Ye2, Mt2]);
|
|
2895
|
+
let To2 = { flex: "1 1 100%", display: "flex", alignContent: "stretch", position: "relative" };
|
|
2896
|
+
h2 || (To2 = { ...To2, ...I2 });
|
|
2897
|
+
const Ao2 = oe(() => {
|
|
2898
2898
|
const e3 = o2.getStyles().getTheme(), t3 = e3.getColorScheme(), n3 = e3.getFontScheme();
|
|
2899
|
-
return { "--sxl-doc-color-dk1": t3.getDk1().toCSS(
|
|
2899
|
+
return { "--sxl-doc-color-dk1": t3.getDk1().toCSS(qe2.darkMode), "--sxl-doc-color-dk2": t3.getDk2().toCSS(qe2.darkMode), "--sxl-doc-color-lt1": t3.getLt1().toCSS(qe2.darkMode), "--sxl-doc-color-lt2": t3.getLt2().toCSS(qe2.darkMode), "--sxl-doc-color-accent1": t3.getAccent1().toCSS(qe2.darkMode), "--sxl-doc-color-accent2": t3.getAccent2().toCSS(qe2.darkMode), "--sxl-doc-color-accent3": t3.getAccent3().toCSS(qe2.darkMode), "--sxl-doc-color-accent4": t3.getAccent4().toCSS(qe2.darkMode), "--sxl-doc-color-accent5": t3.getAccent5().toCSS(qe2.darkMode), "--sxl-doc-color-accent6": t3.getAccent6().toCSS(qe2.darkMode), "--sxl-doc-color-hlink": t3.getHlink().toCSS(qe2.darkMode), "--sxl-doc-color-fol-hlink": t3.getFolHlink().toCSS(qe2.darkMode), "--sxl-doc-font-major": n3.getMajorFont(), "--sxl-doc-font-minor": n3.getMinorFont() };
|
|
2900
2900
|
}, [o2.getStyles().getTheme()]);
|
|
2901
|
-
let
|
|
2902
|
-
|
|
2901
|
+
let zo2 = G("div", { style: To2, onTouchStart: () => {
|
|
2902
|
+
Do2();
|
|
2903
2903
|
}, onFocus: (e3) => {
|
|
2904
2904
|
je2(true), A2?.(e3);
|
|
2905
2905
|
}, onBlur: (e3) => {
|
|
2906
|
-
je2(false),
|
|
2907
|
-
}, ref:
|
|
2906
|
+
je2(false), E2?.(e3);
|
|
2907
|
+
}, ref: Xt2, ...W2, children: G("div", { className: Te("sheetxl-sheet", qt), style: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", flex: "1 1 100%", zIndex: "0", ...Ao2 }, children: Z("div", { style: { display: "flex", flexDirection: "row", flex: "1 1 100%" }, children: [to2, yo2, Z("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden", position: "relative" }, children: [bo2, Z("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", position: "relative", borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, backgroundColor: qe2.fill }, ref: Q2, onContextMenu: ro2, children: [Mo2, eo2, G(Ct, { style: { position: "absolute", right: 24, bottom: 4 }, colorLicensee: fe2?.selection?.strokeFill, colorCredits: fe2?.body?.text?.fill })] })] })] }) }) });
|
|
2908
2908
|
if (h2) {
|
|
2909
|
-
const e3 = (e4) => G(
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
}, createHorizontalScrollbar: e3, createVerticalScrollbar: e3, ...p2, children:
|
|
2909
|
+
const e3 = (e4) => G(Rt, { ...e4, sheet: o2 });
|
|
2910
|
+
zo2 = G(O, { style: { flex: "1 1 100%", overflow: "hidden", background: `${Ce2.fill}`, minHeight: 2 * Le2.height, minWidth: 2 * Le2.width, ...I2 }, viewport: et2, touchElement: xe2.current?.stage, disableTouch: xt2, onScrollViewport: (e4) => {
|
|
2911
|
+
xe2.current?.scrollTo(e4);
|
|
2912
|
+
}, createHorizontalScrollbar: e3, createVerticalScrollbar: e3, ...p2, children: zo2 });
|
|
2913
2913
|
}
|
|
2914
|
-
|
|
2915
|
-
me2.current = false, _2?.(), Ze2 &&
|
|
2914
|
+
ie(() => {
|
|
2915
|
+
me2.current = false, _2?.(), Ze2 && Xt2.current?.focus();
|
|
2916
2916
|
}, [o2]);
|
|
2917
|
-
const [
|
|
2918
|
-
|
|
2919
|
-
}, [
|
|
2920
|
-
return
|
|
2921
|
-
if (
|
|
2917
|
+
const [Fo2, Eo2] = ne(false), Do2 = S(() => {
|
|
2918
|
+
Fo2 || Eo2(true);
|
|
2919
|
+
}, [Fo2]);
|
|
2920
|
+
return ie(() => {
|
|
2921
|
+
if (ko2) return "function" == typeof M2 && M2(), "touch" === C.detectIt().primaryInput && Do2(), () => {
|
|
2922
2922
|
};
|
|
2923
|
-
}, [M2,
|
|
2923
|
+
}, [M2, ko2, Fo2]), zo2;
|
|
2924
2924
|
}));
|
|
2925
|
-
|
|
2926
|
-
const
|
|
2927
|
-
const { children: o2, disabled: n2, style: l2, picture: r2, description: i2, isDragging: a2, view: s2, onHide: d2, onShow: c2, onKeyDownCapture: g2, onFocus: u2, onBlur: h2, loadingPanel: m2, ...p2 } = e2, [f2, w2] =
|
|
2928
|
-
|
|
2925
|
+
po.displayName = "SheetElement";
|
|
2926
|
+
const fo = Object.freeze(Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), wo = "data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlTh3wRCIMlkE+EqkiTFyt57/KQ8/zKeEf5iaseNJClS1DGDxWcwvhfuCo5tW88SHw8Xh5ypbC3tnf8QHEfOB/D97w4PuFHBIx6MHJ74zvj/0aLdlH9AYWEjHiwOJR5M7Q+FAigmTRQOJRqczrVUKABQSMYgoAFFAhIwBkgaYEkBSABowDGgcYakUZirArQhRMUIIHGLBIAEEoDRfyokIAEAMhrSRmEOSPyS/jvR+BYFIWkUhLQhCpLGGQ2rhPiCOKPxDIVQmAZQDMYIjCTfNQXVJv8pnQqhuAonnczGDPv0VwFw/w+uGiAwQYjJXxffaJzROKPHoArGAPA+6o9AtiIj4XgAWGKCwAQBVNMSHQNEjTMqOSWPQEFRHOVl4vp/nnhI/DBNK8CGXCpeFvONip/jvPn67qb957v+Nssyv96/Jwg/xzT9yORhfR4fb6vF9ef39Nt62g55v37/7dRzfx9xFLRtIyX8ae+/AxARE8APxbCQtkidoqVGDBDxR3r8/59vo88vnW07v9nrY+l0tn0zemuSnn03W83Otn2zcarbfIrZqnG7Ykr77/nS5PP+/E6/iP7DgiRJiZX13F2QhYM/OrBtm7at/ZB927Zt27ZtPr/oK7Jt27b9x7dtGxcv1sFcc/R1woj+S2IkSZGkaXMpD2sZhqf3R5Y/23+2/2z/2f6z/Wf7z/af7T/bf7b/bP/97S8/r8tpn2+Rafa98ufeMc3nfK8v3V9QZHWVtFs5f/i2z8bd7+E/nX/Vuk9+uO6dF3IuWEy12r0S9eGUdA5q0RtuvnxxXpUFVPf5eQlfe7jG8j58Q6+uZZZNRGmv+GgOidbMMHMMy/WbJu7az/wcUqUk9C01LJNj5tZsDsnuizfPWh/F3WdN4FDO/eiYow4LozJuhpfDoPtcywyr8pAYDpv2RlmOB1TF7fBymPXAqA4Wwskrp3JY9oVZZA2efmm8m8O2Xa796tcoMprDvA2DAprXfkYWC9C0eflat2xrBgtRrKuDwgXemsKS5I6vr2zVzq9ZnLbUUzSHL5lFast+JTPi1rJUZWzN1bBuSSxZ7pvqaFfeVpYub2QtzaqI3McCtsppqPXPTWc0C9kjB3TqyFcsZ54b8/XpXJSHRW23qU1LJrC4PdFRlWsMzWCJ815ZpUYDU1no7mqiQ7VvYbnz9zIUaOkqFr3tZ7XnfKSHhe/+ON3pNJblL8N1QXEG+xlCXzXXmvKZjKJYn9IWKV7POMqIqlaYVtEMpU0l6lq46Eo3g2lvO2WtRPoB48m/SFXjwt3JiMqYp6eJkHWTGVQ3BZSky30Mq0/KVMTnZ2BN6aggV2UwtPa0UI+rGV1pylkm1RjB+IpZqpoxRG5ghGW/oZjr9xlj+xarZSiBBEaZe5BSxhK4jXHmeVElj/2Bkeb2KeQVzWKs7eumDnMZbemtlGEU4236UVUYyojb3UATK5Yx5lY30sOqRVlBn3YPdqKCgrexZ7SwcknQP13bfjWC6nD1XEcreHs8QgXOTg369bDmlxFQNU28mRpwYUMNXDcTQVXC2woYTOo2DrJxk1+ZQ9/9PIeNprjRs72ij4H2wbdZjdzdTDYizUXG9P3gnfZGDVy3gFMxD5ZBN9U7BWoJpoK2OpBvHvbYArWBUlFDgXu8QG2BVJanG2xLxC/UckNZZ6Om5VZmnd1NQfvtrRJzByPGXHr8ohqyn/eOr0MIZXAJZFvF1zGAUvC0AuzT+LpgXxJ7K/BuK/jA8LpiXhpPwZ3dcFN4XbIukUVgnVR01Y4WhVi19KLTC6Ca/vD4uevReM40PgHVY9GFMC2bHkAtG10Qy9K5rzHOLQkcGVwYwxJ6H+fspuAC2ZVSG5Rbjg0ulFk5Ta2FcUHTvcqtGrCo7aqZFo2EaK3oOXi0mpOO+xoinOB8cGgF2JTYrQC9EFoRJqV2Gp6Z3oisEItymxKBbniR+yIrxqDsBoCzUGQFpS+93fnYNiO4Z6FVwxc1WjXpotdCc0HoXHRMPucfY0qQTXJ6L+jqGCY0EzekcaOm+LY/g4PSCGCuirwgDtJ4dePy/uCvg2tJ8wNkhDzmObBsJDkhj7OagtL3rrwAhX84mnWiv8Yz+M/IXgyZHTFNc3jZ7dLYfSNo5uA2EpLzJT/c8b1liOY47CtHKOEfj+xcyRJ2vCqAx0MyRR2zE88uwr4hV9RxkoHGeIDv93Cf8aVotiT/uiTb0X+uKfFgnCw5Y473FWJxu7whx/wull0JkMwhx5MMJJ6UPeKYjyCZ43iw/BHHTwOxtAQAOPafwGEExem+vKd794bhxzckhNFvDgGbYbhCgoAbe46jcKsw0MbcH4Qv3hAH2vgOHIsbg4CNPScxuFcoWGPuhWFX8WnO/gt7hufPIVhSEstIOjN7ChF4WDhIY34RwcqGb4uHWfjnPZwmAQGN73PI7xkh4Yy5nvzuFhPOeKj4OkhQsqeJF9qz0DXAWB45sBFU7K6QXoKENTLOzPyC9PYIDGR8sfBOscikTwfzHp3MJlOPcujyB2TnYjiEMbeUfn0jOoRxP9GVeRgPYPyk6FqH3AaAUh5ZkOL4hpC/XLOim8/yXQ3yxXxWck9o4gb3h85/inFrhLfLQf3iIZIPNfmWLFQvniG4DyUPtYvHij7V0UXl4uxqua0vG3WLOUduNxjdELBn98vm8Jroy5z5jCSzJpY9m/CWnF43NYtvlHu8CclKxeJPxDabzNQrfkBsZ8pNteLMCKmdIDu1irmj1LaRn1rFraT2oAxVKh4oNcuHj7aRx9FNhof3pPaq5Djyzsi2RD3sDXmCSAejD/wqmeIM3y7JzS1b9YkfkfpAIchXdeI1Yu9ZqrHaxNOFdqGcVSbmgMyW974v2DmPb3A+lMhsbcl6rMrMXCCz9WSuKnFDmW0gdzWJc2S2suxVJO4s9YiT/uoRt5TZ1gJQjbitzMaJQC3iFVJfqhAElYiX6M3VCQ7FijMOokpYIfSTMFQLbYV+QQhlobUXtDJB9dBZ6OnOAFVEjtDznfyribpCz3e2ryoKLP9yJ4Uyu9x+rsmYUS2zS7yrjDSpjwuidbXxtdCmda46NghtGuPq4yOphx071LYKeZ+E7hXXamTk37XjTjzo+gqq0ThI7L2Nq9X7Z7Gexp1aq1ofnovVNO7cmfX67FyspXEnP/P74qxa1uho3Omrm6ZePpF73PkPzL41q5gbSOzu8PrOvGbek9uoXvF2Z1bKbQOvd8yajU3kdpHRx+W6yY4QfGfjfT4tV87dJLfBD1y+Kqudm0jwjjX5orx6+ol+ISM9viernxV/5+53wqw94f3OSCHJ/XII3Z/23S+tgPeHH5DovQgYoAWye5ovQkdldwpehNIDspuOLkSPkfDdCXaXo+7Pdj8G87pGemPRgnRI/Eua2/Pd78zMMvH3OhxtZhw/I/G7AytM78lvS6o4lQI4YuRQcbofwH5n//w6UqDeJwDtSBSpNyEcXSigSHkgHIqUqXq6x53xGUFoV56ZdHwZg41hYuU5jsF0b6AE6zEC0fEk0RqAwpIg0XKXwDiC6G9ghGsLwWgXolUZFzVxWAxjph3TgRyLsuFHIATsfQLS1gQRWw7laOMARGyyQUi61z5k/QiKRd1Dtq8Qi79e847ZDst/3Al+ROO7N6xn5HGtQWh62DdqiwiOWWyjtipAeLrXNGzvQjq40J5hu/ccIoPvOcbtUlBnFMF8VdZFswowGX6U4Yl+2KOLQHWiW+D2NUPl5/29Ijcb2NEGtYqc/ySw0wlzV2+038muI2AtFXWS2zCsewq3gsl+ZytEZnC/Xmi/011M0FpQYSPW/QRcwWC/80WfA3fcCXdOr2+ElFz+/U74CoFrnkPjFCy97I2tInRdo9T6RkgGku93yrYEz68HZdY3QrKQungC2DoKVCQTifM3g3g6yfboZfY76zCC2CeKHAvMNmPW/U47vogw9kKo4KzkLGMFzONOfFSo0Myk3O3A3xLMLlKowOxk3O/MtQlnj8QKy1C+/U69koCa6/BYQVnK1kcEtUV6kP1OvqsRVkOuV+wYMpuOqfY7ew8C26/7B+s6Y4maQXC7VMG6zFqaHigmvK0aravMZfm5E7SFfMJhdo/WRfZy/NwZ5hHk5vkgWscByNAj1YS5CxStwxCUb3dTQt2T4ToKQvGfO0kbgu3f28J1EIbCP3eWKwl40x8Yrm0ginaLQcg79ZCgX7UJRcEmnSPsncBBv2oZjGLF5sA/70y3oj/vTIcVcIpRHw3+nS1mnLHIzH1JAdV+MPhXk4WkRC5SQU1Sg3711QgJSnwfRWjhFPPuQ33e2b4oIi30WgZDblUd0kPzIbsvhzTRMMCm1yNddClc3iPqOO+ULrD2HSJ15EiEyr2YFFJVPFCeHqSSAh/gvPsZtZx32ptQPkd3xZx24NkYX1EbIsVczQUotivppivhSW1J2undDHDzGhqQfno+HZmHCkhDtYzG5fZzpKOOTUblxmrSUic2gjrv9KSoym8GJH0l6SozC40J9UlbHUnB4vETpK9OPorkZURWkcY6H4VjEbPupLWe9WKwriHpreZfIniyqPOkuSLmuaU3rRtpr4N7hf9/4yfSX+d2Sj6tqZdBKsx5j9Tu6EBa7IRLZLt6OUiRHZoqr62NSJddiHTLKsVJ+uzAWElXLBheRhrN4ZwmpcdakFarNS9bxDnMToMUW9148cTMKyfldvpu0WTecJz0mxEn1x2e+DzScQ6fTAsmZ2xtTz+n5juS5bGlM+m66meSZPl7Y2dnUnjLtmaIsSpxVEdSerkuvwiTmOedIMV38uKUcHfXqwFSflVL4zPDeJxhV3uyBB2/cnx4+sK8QJahqm47Y8PNg9c0JItRedyM2PAxMWqZQVakyrgZMeFg7y8PsS7VeuO70P4bxP3ZRaUGWZ6OmVv9oSk63llBVqkLh4Zt9IaW1Tt6tjfIYhWRY86YGCKH/WWGmUOWraaHxzw1yV2DMxQ2zHq51Tmyfl2o99bI25Jig2vP54ljDp9ykLWsdj3fkO9vvWPKtL8wndo7YeztOy8bcKh5OVncyhq2XNrd96ZpLrjy5/qYb/l8S7q2r1NJlj/bf7b/bP/Z/rP9Z/vP9p/tP9t/tv9s//3djwA=", qo = te(le((e2, t2) => {
|
|
2927
|
+
const { children: o2, disabled: n2, style: l2, picture: r2, description: i2, isDragging: a2, view: s2, onHide: d2, onShow: c2, onKeyDownCapture: g2, onFocus: u2, onBlur: h2, loadingPanel: m2, ...p2 } = e2, [f2, w2] = ne(false), [q2, v2] = ne(null), [y2, C2] = ne(null), [S2, x2] = ne(null);
|
|
2928
|
+
ie(() => {
|
|
2929
2929
|
C2(null), r2.getDetails().then((e3) => {
|
|
2930
2930
|
w2(false), C2(e3.asUrl()), e3.asSVGText?.() && x2(e3.asSVGText());
|
|
2931
2931
|
}).catch((e3) => {
|
|
2932
|
-
console.warn(e3), w2(true), C2(
|
|
2932
|
+
console.warn(e3), w2(true), C2(wo), x2(null);
|
|
2933
2933
|
});
|
|
2934
2934
|
}, [r2]);
|
|
2935
|
-
const k2 = b(t2, () => ({ isPictureEditor: () => true }), []), R2 =
|
|
2935
|
+
const k2 = b(t2, () => ({ isPictureEditor: () => true }), []), R2 = oe(() => {
|
|
2936
2936
|
if (y2 || S2) return G("img", { style: { flex: "1", width: "100%", height: "100%", border: f2 ? "var(--sxl-app-color-grey, grey) solid 1px" : void 0, backgroundColor: f2 ? "var(--sxl-app-color-background, white)" : void 0, boxShadow: f2 ? "0px 0px 3px var(--sxl-app-color-error, red)" : void 0, objectFit: f2 ? "contain" : void 0, opacity: q2 ? 1 : 0, filter: "var(--sxl-app-filter-dark-invert)" }, draggable: false, src: y2, onLoad: () => {
|
|
2937
2937
|
v2(true);
|
|
2938
2938
|
}, onError: ({ currentTarget: e3 }) => {
|
|
2939
|
-
console.log("error"), e3.onerror = null, C2(
|
|
2939
|
+
console.log("error"), e3.onerror = null, C2(wo), w2(true);
|
|
2940
2940
|
}, alt: i2 ?? `${r2.getType()}` });
|
|
2941
2941
|
}, [q2, r2, y2, S2, a2]);
|
|
2942
2942
|
if (!r2.isClosed()) return Z("div", { className: "picture-editor", style: { position: "relative", display: "flex", flex: "1 1 100%", filter: a2 ? "drop-shadow(1px 1px 1.5px var(--sxl-app-color-shadow, rgba(0, 0, 0, .25)))" : void 0, ...l2, width: "100%", height: "100%" }, tabIndex: 0, ...p2, onKeyDownCapture: (e3) => {
|
|
2943
2943
|
g2?.(e3);
|
|
2944
2944
|
}, ref: k2, children: [q2 || f2 ? void 0 : m2, R2] });
|
|
2945
2945
|
}));
|
|
2946
|
-
|
|
2947
|
-
const
|
|
2946
|
+
qo.displayName = "PictureEditor";
|
|
2947
|
+
const vo = te(le((e2, t2) => {
|
|
2948
2948
|
const { children: o2, disabled: n2, chart: l2, view: r2, isDragging: i2, onHide: a2, onShow: s2, ...d2 } = e2;
|
|
2949
|
-
|
|
2949
|
+
ie(() => {
|
|
2950
2950
|
}, [l2]);
|
|
2951
|
-
const c2 = b(t2, () => ({ isChartEditor: () => true }), []), [g2, { height: u2, width: h2 }] =
|
|
2952
|
-
if (!l2.isClosed()) return G("div", { ...d2, ref:
|
|
2953
|
-
})),
|
|
2954
|
-
const { style: o2 = {}, className: n2, value: l2 = "", onSubmit: r2, onChange: i2, onCancel: a2, createInput: s2 =
|
|
2955
|
-
|
|
2956
|
-
|
|
2951
|
+
const c2 = b(t2, () => ({ isChartEditor: () => true }), []), [g2, { height: u2, width: h2 }] = Me();
|
|
2952
|
+
if (!l2.isClosed()) return G("div", { ...d2, ref: Re([c2, g2]), children: G("div", { className: "chart-editor", style: { width: "100%", height: "100%", backgroundColor: "var(--sxl-app-color-background, white)", backgroundImage: "var(--sxl-app-image-background)", alignItems: "center", justifyContent: "center", zoom: r2.getZoom(), display: "flex", position: "relative", border: "var(--sxl-app-color-grey, grey) solid 1px", filter: n2 ? "blur(1px)" : void 0, boxShadow: i2 ? "1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))" : void 0 }, children: G("div", { style: { textAlign: "center" }, children: l2.getDescription() }) }) });
|
|
2953
|
+
})), yo = "_editable-input_1bqx6_6", Co = (e2) => G("input", { ...e2 }), bo = te(le((e2, t2) => {
|
|
2954
|
+
const { style: o2 = {}, className: n2, value: l2 = "", onSubmit: r2, onChange: i2, onCancel: a2, createInput: s2 = Co, styleHover: d2 = {}, dragging: c2, maxLength: g2, disabled: u2 = false, readOnly: h2 = false, ...m2 } = e2, [p2, f2] = ne(false), [w2, q2] = ne(false), [v2, y2] = ne(l2);
|
|
2955
|
+
ie(() => {
|
|
2956
|
+
y2(l2);
|
|
2957
2957
|
}, [l2]);
|
|
2958
|
-
const
|
|
2958
|
+
const C2 = re(null), [x2, k2] = ne(null), R2 = z(), M2 = se(function(e3) {
|
|
2959
2959
|
const t3 = e3.message;
|
|
2960
|
-
|
|
2961
|
-
}, [
|
|
2960
|
+
x2 !== t3 && (R2?.showMessage?.(t3, { type: D.Error }), k2(t3));
|
|
2961
|
+
}, [R2, x2]), T2 = se((e3) => {
|
|
2962
2962
|
let t3 = false;
|
|
2963
2963
|
try {
|
|
2964
2964
|
t3 = r2?.(e3) ?? true;
|
|
2965
2965
|
} catch (e4) {
|
|
2966
2966
|
M2(e4);
|
|
2967
2967
|
}
|
|
2968
|
-
return t3 ? (
|
|
2969
|
-
|
|
2968
|
+
return t3 ? (C2.current = null, q2(false), y2(e3), t3) : (setTimeout(() => {
|
|
2969
|
+
C2.current?.focus();
|
|
2970
2970
|
}, 0), t3);
|
|
2971
2971
|
}, [r2]), A2 = S(() => {
|
|
2972
|
-
|
|
2973
|
-
}, [a2, l2]),
|
|
2974
|
-
if (!
|
|
2975
|
-
const e3 = { className:
|
|
2976
|
-
|
|
2972
|
+
y2(l2), C2.current = null, q2(false), a2?.();
|
|
2973
|
+
}, [a2, l2]), F2 = oe(() => {
|
|
2974
|
+
if (!w2) return null;
|
|
2975
|
+
const e3 = { className: Te(yo), autoFocus: true, spellCheck: false, name: "editable-label", autoComplete: "off", maxLength: g2, type: "text", value: v2, onFocus: (e4) => {
|
|
2976
|
+
C2.current || (C2.current = e4.target, setTimeout(() => {
|
|
2977
2977
|
e4.target?.select();
|
|
2978
2978
|
}, 0));
|
|
2979
2979
|
}, onBlur: (e4) => {
|
|
2980
|
-
|
|
2980
|
+
C2.current && T2(v2);
|
|
2981
2981
|
}, onChange: (e4) => {
|
|
2982
|
-
|
|
2982
|
+
w2 && y2(e4.target.value);
|
|
2983
2983
|
}, onMouseDown: (e4) => e4.stopPropagation(), onKeyDown: (e4) => "Escape" === e4.code ? (e4.preventDefault(), void A2()) : "Enter" === e4.code ? (e4.preventDefault(), void T2(e4.target.value)) : void ("Tab" !== e4.code ? e4.stopPropagation() : T2(e4.target.value)) };
|
|
2984
2984
|
return G(j, { children: s2(e3) });
|
|
2985
|
-
}, [
|
|
2986
|
-
|
|
2985
|
+
}, [w2, v2, T2, A2, s2, u2]), [E2, I2] = ne();
|
|
2986
|
+
ae(() => {
|
|
2987
2987
|
let e3 = Object.assign({}, o2);
|
|
2988
|
-
(
|
|
2989
|
-
}, [
|
|
2990
|
-
|
|
2991
|
-
}, [
|
|
2992
|
-
const
|
|
2993
|
-
|
|
2988
|
+
(c2 || p2) && (e3 = Object.assign(e3, d2)), I2(e3);
|
|
2989
|
+
}, [c2, p2, d2, o2]), ie(() => {
|
|
2990
|
+
F2 && i2?.(v2);
|
|
2991
|
+
}, [F2, i2, v2]);
|
|
2992
|
+
const N2 = b(t2, () => ({ startEdit() {
|
|
2993
|
+
u2 || h2 || q2(true);
|
|
2994
2994
|
}, cancel() {
|
|
2995
2995
|
A2();
|
|
2996
2996
|
} }), []);
|
|
2997
|
-
return Z("div", { ...
|
|
2998
|
-
|
|
2999
|
-
}, onMouseEnter: () =>
|
|
3000
|
-
})),
|
|
2997
|
+
return Z("div", { ...m2, ref: N2, style: { flexDirection: "column", display: "flex", ...E2 }, className: Te(n2), children: [Z("div", { style: { position: "relative", boxSizing: "content-box", whiteSpace: "pre", userSelect: "none", display: "flex", justifyContent: "center" }, onDoubleClick: () => {
|
|
2998
|
+
u2 || h2 || q2(true);
|
|
2999
|
+
}, onMouseEnter: () => f2(true), onMouseLeave: () => f2(false), children: [G("div", { className: "editable-label-container", style: { textAlign: "center", display: "flex", minHeight: "1em", marginTop: "2px", opacity: w2 ? 0 : 1 }, children: v2 }), F2] }), G("div", { style: { whiteSpace: "pre", position: "relative", maxHeight: "0px", height: "0px", visibility: "hidden", marginLeft: "1px", marginRight: "1px", overflow: "hidden", ...d2 }, children: v2 })] });
|
|
3000
|
+
})), So = te(le((e2, t2) => {
|
|
3001
3001
|
const { children: o2, style: n2, className: l2, index: r2, editing: i2, editable: a2, selectedIndex: s2, background: d2, activeColor: c2, borderColor: g2, borderWidth: u2, dragging: h2, ...m2 } = e2;
|
|
3002
|
-
return Z("div", { ref: t2, className:
|
|
3003
|
-
})),
|
|
3004
|
-
|
|
3002
|
+
return Z("div", { ref: t2, className: Te(l2), style: { ...n2, display: "flex", flexDirection: "column", background: s2 === r2 ? "white" : d2, minHeight: "0px", fontFamily: "inherit", fontSize: "16px", fontWeight: s2 === r2 ? "700" : "400", lineHeight: "1", letterSpacing: "0px", textTransform: "none", minWidth: "unset" }, ...m2, children: [Z("div", { style: { flex: "1 1 100%", display: "flex", flexDirection: "row" }, children: [G("div", { style: { marginLeft: s2 === r2 ? "0px" : "-1px", marginTop: s2 === r2 ? "0px" : "4px", marginBottom: "0px", background: "grey", minWidth: "1px" } }), o2, s2 === r2 ? G("div", { style: { marginLeft: "0px", marginTop: "0px", marginBottom: "0px", background: "grey", minWidth: "1px" } }) : G(j, {})] }), G("div", { style: { flex: "1 1 100%", background: s2 === r2 && c2 ? c2?.toCSS() : "none", minHeight: "2px" } })] });
|
|
3003
|
+
})), xo = { Wrapper: "_Wrapper_1wyun_25", fadeIn: "_fadeIn_1wyun_33", dragOverlay: "_dragOverlay_1wyun_37", Item: "_Item_1wyun_47", withHandle: "_withHandle_1wyun_61", dragging: "_dragging_1wyun_66", disabled: "_disabled_1wyun_74" }, ko = ee.memo(ee.forwardRef(({ color: e2, dragOverlay: t2, dragging: o2, disabled: n2, fadeIn: l2, handle: r2, height: i2, index: a2, listeners: s2, onRemove: d2, renderItem: c2, sorting: g2, style: u2, transition: h2, transform: m2, value: p2, wrapperStyle: f2, ...w2 }, q2) => {
|
|
3004
|
+
ie(() => {
|
|
3005
3005
|
if (t2) return document.body.style.cursor = "grabbing", () => {
|
|
3006
3006
|
document.body.style.cursor = "";
|
|
3007
3007
|
};
|
|
3008
3008
|
}, [t2]);
|
|
3009
3009
|
const v2 = c2 ? c2({ dragOverlay: Boolean(t2), dragging: Boolean(o2), sorting: Boolean(g2), index: a2, fadeIn: Boolean(l2), listeners: s2, ref: q2, style: u2, transform: m2, transition: h2, value: p2 }) : G(j, { children: p2 });
|
|
3010
|
-
return G("div", { className:
|
|
3011
|
-
})),
|
|
3012
|
-
const { className: o2, activationConstraint: n2, animateLayoutChanges: l2, adjustScale: r2 = false, collisionDetection: i2 =
|
|
3013
|
-
|
|
3010
|
+
return G("div", { className: Te("tab-item", xo.Wrapper, l2 && xo.fadeIn, g2 && xo.sorting, t2 && xo.dragOverlay), style: { ...f2, transition: [h2, f2?.transition].filter(Boolean).join(", "), "--translate-x": m2 ? `${Math.round(m2.x)}px` : void 0, "--translate-y": m2 ? `${Math.round(m2.y)}px` : void 0, "--scale-x": m2?.scaleX ? `${m2.scaleX}` : void 0, "--scale-y": m2?.scaleY ? `${m2.scaleY}` : void 0, "--index": a2 }, ref: q2, children: G("div", { className: Te(xo.Item, o2 && xo.dragging, r2 && xo.withHandle, t2 && xo.dragOverlay, n2 && xo.disabled, e2 && xo.color, "dragging"), style: u2, "data-cypress": "draggable-item", ...r2 ? void 0 : s2, ...w2, tabIndex: r2 ? void 0 : -1, children: v2 }) });
|
|
3011
|
+
})), Ro = { Row: "_Row_1kr10_1" }, Mo = te(le(({ children: e2, horizontal: t2, style: o2 }, n2) => G("div", { ref: n2, style: { ...o2 }, className: Te(Ro.Row, t2 && Ro.horizontal), children: e2 }))), To = { ...Oe }, Ao = te(le((e2, t2) => {
|
|
3012
|
+
const { className: o2, activationConstraint: n2, animateLayoutChanges: l2, adjustScale: r2 = false, collisionDetection: i2 = Be, coordinateGetter: a2 = Ee, dropAnimation: s2 = To, getItemStyles: d2 = () => ({}), getNewIndex: c2, handle: g2 = false, items: u2, onMove: h2, isDisabled: m2 = () => false, measuring: p2, modifiers: f2, renderItem: w2, renderDivider: q2, reorderItems: v2 = De, strategy: y2 = Ie, style: C2, useDragOverlay: b2 = true, onDragStart: S2, wrapperStyle: x2 = () => ({}) } = e2, [k2, R2] = ne(() => u2);
|
|
3013
|
+
ie(() => {
|
|
3014
3014
|
R2(u2);
|
|
3015
3015
|
}, [u2]);
|
|
3016
|
-
const [M2, T2] =
|
|
3016
|
+
const [M2, T2] = ne(null), A2 = Pe($e(We, { activationConstraint: n2 }), $e(Ue, { activationConstraint: n2 }), $e(_e, { scrollBehavior: "Cypress" in window ? "auto" : void 0, coordinateGetter: a2 })), z2 = k2.indexOf.bind(k2), F2 = M2 ? z2(M2) : -1, E2 = [];
|
|
3017
3017
|
k2.map((e3, t3) => {
|
|
3018
|
-
E2.push(G(
|
|
3018
|
+
E2.push(G(zo, { id: e3, handle: g2, index: t3, style: d2, wrapperStyle: x2, disabled: m2(e3), renderItem: w2, animateLayoutChanges: l2, useDragOverlay: b2, getNewIndex: c2 }, e3 + "-" + t3));
|
|
3019
3019
|
const o3 = q2?.({ key: "divider-" + t3 });
|
|
3020
3020
|
o3 && E2.push(o3);
|
|
3021
3021
|
});
|
|
3022
3022
|
const { getPortalContainer: D2 } = P();
|
|
3023
|
-
return Z(
|
|
3023
|
+
return Z(Ge, { sensors: A2, collisionDetection: i2, onDragStart: (e3) => {
|
|
3024
3024
|
const { active: t3 } = e3;
|
|
3025
3025
|
t3 && (S2?.(e3), T2(t3.id));
|
|
3026
3026
|
}, autoScroll: { canScroll: (e3) => true }, onDragEnd: (e3) => {
|
|
@@ -3030,40 +3030,40 @@ const qo = ee(ne((e2, t2) => {
|
|
|
3030
3030
|
}
|
|
3031
3031
|
}, onDragCancel: () => {
|
|
3032
3032
|
T2(null);
|
|
3033
|
-
}, measuring: p2, modifiers: f2, children: [G("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...C2 }, className:
|
|
3033
|
+
}, measuring: p2, modifiers: f2, children: [G("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...C2 }, className: Te(o2, xo.Wrapper), children: G(Ne, { items: k2, strategy: y2, children: G(Mo, { ref: t2, children: E2 }) }) }), b2 ? ze(G(Ze, { adjustScale: r2, dropAnimation: s2, children: M2 ? G(ko, { value: k2[F2], handle: g2, renderItem: w2, wrapperStyle: x2({ index: F2, isDragging: true, id: k2[F2] }), index: F2, dragging: true, style: d2({ id: k2[F2], index: F2, isSorting: null !== M2, isDragging: true, overIndex: -1, isDragOverlay: true }), dragOverlay: true }) : null }), D2()) : null] });
|
|
3034
3034
|
}));
|
|
3035
|
-
function
|
|
3036
|
-
const { attributes: g2, isDragging: u2, isSorting: h2, listeners: m2, overIndex: p2, setNodeRef: f2, transform: w2, transition: q2 } =
|
|
3037
|
-
return G(
|
|
3035
|
+
function zo({ disabled: e2, animateLayoutChanges: t2, getNewIndex: o2, handle: n2, id: l2, index: r2, onRemove: i2, style: a2, renderItem: s2, useDragOverlay: d2, wrapperStyle: c2 }) {
|
|
3036
|
+
const { attributes: g2, isDragging: u2, isSorting: h2, listeners: m2, overIndex: p2, setNodeRef: f2, transform: w2, transition: q2 } = Ve({ id: l2, animateLayoutChanges: t2, disabled: e2, getNewIndex: o2 });
|
|
3037
|
+
return G(ko, { ref: f2, value: l2, disabled: e2, dragging: u2, sorting: h2, handle: n2, renderItem: s2, index: r2, style: a2({ index: r2, id: l2, isDragging: u2, isSorting: h2, overIndex: p2 }), onRemove: i2 ? () => i2(l2) : void 0, transform: w2, transition: q2, wrapperStyle: c2({ index: r2, isDragging: u2, id: l2 }), listeners: m2, "data-index": r2, "data-id": l2, dragOverlay: !d2 && u2, ...g2 });
|
|
3038
3038
|
}
|
|
3039
|
-
const
|
|
3040
|
-
const { children: o2, style: n2, className: l2, selectedTabIndex: r2 = 0, tabNames: i2 = [], onSelectedTabIndexChange: a2, onTabNameChange: s2, onTabMove: d2, createScrollStartButton: c2 = $, createScrollEndButton: g2 = W, createScrollEdgeButton: u2 = U, createTabButton: h2 =
|
|
3039
|
+
const Fo = "_TabStrip_3x0dp_1", Eo = new h("rgb(33, 115, 70)"), Do = "#eee", Io = (e2) => G(So, { ...e2 }), No = te(le((e2, t2) => {
|
|
3040
|
+
const { children: o2, style: n2, className: l2, selectedTabIndex: r2 = 0, tabNames: i2 = [], onSelectedTabIndexChange: a2, onTabNameChange: s2, onTabMove: d2, createScrollStartButton: c2 = $, createScrollEndButton: g2 = W, createScrollEdgeButton: u2 = U, createTabButton: h2 = Io, createTabDivider: m2, editLabelProps: p2, disabled: f2 = false, disableDrag: w2 = false, background: q2 = "white", activeColor: v2 = Eo, borderColor: y2 = Do, borderWidth: C2 = 1 } = e2, [b2, S2] = ne(r2), [x2, k2] = ne(i2), R2 = se((e3) => {
|
|
3041
3041
|
const t3 = D2.current?.[e3]?.closest(".tab-item") ?? D2.current?.[e3];
|
|
3042
3042
|
t3 && P2.current?.scrollTo({ top: t3.offsetTop, left: t3.offsetLeft, behavior: "smooth" });
|
|
3043
3043
|
}, []);
|
|
3044
|
-
|
|
3044
|
+
ie(() => {
|
|
3045
3045
|
R2(r2);
|
|
3046
3046
|
}, [r2]);
|
|
3047
|
-
const M2 =
|
|
3047
|
+
const M2 = se((e3, t3) => {
|
|
3048
3048
|
t3 !== b2 && (S2(t3), a2?.(t3)), R2(t3);
|
|
3049
|
-
}, [a2, b2]), T2 =
|
|
3049
|
+
}, [a2, b2]), T2 = se((e3, t3) => {
|
|
3050
3050
|
d2?.(e3, t3);
|
|
3051
|
-
}, [d2]), A2 =
|
|
3051
|
+
}, [d2]), A2 = re(null), [z2, F2] = ne(-1), E2 = se((e3, t3) => {
|
|
3052
3052
|
s2?.(e3, t3);
|
|
3053
3053
|
}, [s2]);
|
|
3054
|
-
|
|
3054
|
+
ae(() => {
|
|
3055
3055
|
S2(r2);
|
|
3056
|
-
}, [r2]),
|
|
3056
|
+
}, [r2]), ae(() => {
|
|
3057
3057
|
k2(i2);
|
|
3058
3058
|
}, [i2]);
|
|
3059
|
-
const D2 =
|
|
3060
|
-
|
|
3059
|
+
const D2 = re([]), I2 = re(null);
|
|
3060
|
+
ue(t2, () => Object.assign({ startEdit(e3) {
|
|
3061
3061
|
D2.current?.[e3]?.startEdit();
|
|
3062
3062
|
}, cancel(e3) {
|
|
3063
3063
|
D2.current?.[e3]?.cancel();
|
|
3064
|
-
} },
|
|
3065
|
-
const V2 =
|
|
3066
|
-
const { style: n3, maxLength: l3, ...r3 } = p2 || {}, i3 = G(
|
|
3064
|
+
} }, I2.current), [b2, z2]);
|
|
3065
|
+
const V2 = se(({ value: e3, index: t3, dragging: o3 }) => {
|
|
3066
|
+
const { style: n3, maxLength: l3, ...r3 } = p2 || {}, i3 = G(bo, { ref: (e4) => {
|
|
3067
3067
|
D2.current[t3] = e4;
|
|
3068
3068
|
}, value: e3, disabled: f2, maxLength: l3, style: { color: b2 === t3 && v2 ? v2?.toRGBA().toString() : "inherit", flex: "1 1 100%", paddingTop: "1px", paddingBottom: "1px", ...n3 }, styleHover: {}, onSubmit: (e4) => (A2.current = false, F2(-1), E2(t3, e4)), onCancel: () => {
|
|
3069
3069
|
A2.current = false, F2(-1);
|
|
@@ -3071,45 +3071,45 @@ const zo = "_TabStrip_3x0dp_1", Fo = new h("rgb(33, 115, 70)"), Eo = "#eee", Do
|
|
|
3071
3071
|
A2.current = true, F2(t3);
|
|
3072
3072
|
}, ...r3 });
|
|
3073
3073
|
return h2({ onClick: (e4) => M2(e4, t3), value: e3, index: t3, editing: z2 === t3 && A2.current, editable: true, disabled: f2, selectedIndex: b2, background: q2, activeColor: v2, borderColor: y2, borderWidth: C2, dragging: o3, children: i3 });
|
|
3074
|
-
}, [b2, E2, M2, p2, f2, z2, h2]), [
|
|
3075
|
-
|
|
3074
|
+
}, [b2, E2, M2, p2, f2, z2, h2]), [L2, { width: H2 }] = Me(), [B2, { width: O2 }] = Me(), P2 = re(null), [K2, X2] = ne({ left: 0, top: 0, width: 0, height: 0 }), [Y2, J2] = ne(null);
|
|
3075
|
+
ie(() => {
|
|
3076
3076
|
null !== Y2 && P2.current && P2.current.scrollTo({ left: Y2, behavior: "smooth" });
|
|
3077
3077
|
}, [Y2]);
|
|
3078
|
-
const Q2 =
|
|
3078
|
+
const Q2 = se((e3, t3 = false) => {
|
|
3079
3079
|
if (!P2.current) return 0;
|
|
3080
3080
|
let o3 = P2.current.firstChild.getBoundingClientRect(), n3 = P2.current.firstChild.firstChild.children, l3 = 0;
|
|
3081
3081
|
return l3 = t3 ? 0 : _.getScrollTo(e3, o3.left, n3, true, Math.max(0, e3 - 200)), J2(l3), Math.max(0, l3);
|
|
3082
|
-
}, []), ee2 =
|
|
3082
|
+
}, []), ee2 = se((e3, t3 = false) => {
|
|
3083
3083
|
if (!P2.current) return 0;
|
|
3084
3084
|
let o3 = P2.current.firstChild.getBoundingClientRect(), n3 = P2.current.firstChild.firstChild.children, l3 = 0;
|
|
3085
|
-
const r3 = Math.ceil(O2 -
|
|
3085
|
+
const r3 = Math.ceil(O2 - H2);
|
|
3086
3086
|
return l3 = t3 ? r3 : _.getScrollTo(e3, o3.left, n3, false, Math.max(0, e3 + 200)), J2(l3), Math.min(r3, l3);
|
|
3087
|
-
}, [O2,
|
|
3088
|
-
|
|
3089
|
-
}, []), ce2 =
|
|
3090
|
-
|
|
3091
|
-
const o4 = t3 ? Q2(
|
|
3092
|
-
o4 !==
|
|
3087
|
+
}, [O2, H2]), te2 = re(null), le2 = re(null), de2 = se(() => {
|
|
3088
|
+
le2.current && (clearTimeout(le2.current), le2.current = null, te2.current = null);
|
|
3089
|
+
}, []), ce2 = se((e3, t3, o3 = 260) => {
|
|
3090
|
+
te2.current = e3, le2.current = setTimeout(() => {
|
|
3091
|
+
const o4 = t3 ? Q2(te2.current || e3) : ee2(te2.current || e3);
|
|
3092
|
+
o4 !== te2.current ? ce2(o4, t3, 120) : de2();
|
|
3093
3093
|
}, o3);
|
|
3094
3094
|
}, [Q2, ee2, de2]);
|
|
3095
|
-
|
|
3096
|
-
const
|
|
3097
|
-
return Z("div", { style: { ...n2, display: "flex", alignItems: "stretch" }, className:
|
|
3095
|
+
ie(() => () => de2(), [de2]);
|
|
3096
|
+
const ge2 = oe(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor(K2.left) <= 0 || 0 === Math.floor(O2 - H2), orientation: N.Horizontal, onMouseUp: de2, onMouseLeave: de2, onMouseDown: () => ce2(P2.current.scrollLeft, true), onClick: (e3) => Q2(Math.min(P2.current.scrollLeft, Y2 ?? Number.MAX_SAFE_INTEGER), e3.ctrlKey) }), [K2, Y2, O2, H2]), he2 = oe(() => ({ style: { marginLeft: "6px", marginRight: "4px" }, disabled: Math.floor(O2 - H2) <= Math.ceil(K2.left), orientation: N.Horizontal, onMouseUp: de2, onMouseLeave: de2, onMouseDown: () => ce2(P2.current.scrollLeft, false), onClick: (e3) => ee2(Math.max(P2.current.scrollLeft, Y2 ?? 0), e3.ctrlKey) }), [K2, Y2, O2, H2]), me2 = oe(() => Z(j, { children: [G("div", { style: { minWidth: "16px" } }), o2, u2?.(ge2)] }), [ge2, he2, c2, g2, o2, u2]);
|
|
3097
|
+
return Z("div", { style: { ...n2, display: "flex", alignItems: "stretch" }, className: Te(Fo, l2), ref: I2, children: [G("div", { style: { borderTop: `solid ${y2} ${C2}px`, position: "absolute", width: "100%" } }), G("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: me2 }), G("div", { className: "Tabs", ref: L2, style: { flex: "1 1 100%", display: "flex", position: "relative", overflow: "hidden" }, children: G("div", { style: { position: "relative", overflowY: "hidden", overflowX: "hidden", marginBottom: "3px" }, ref: P2, onScroll: (e3) => {
|
|
3098
3098
|
X2({ left: e3.target.scrollLeft, top: e3.target.scrollTop, width: e3.target.scrollWidth, height: e3.target.scrollHeight });
|
|
3099
|
-
}, children: G(
|
|
3099
|
+
}, children: G(Ao, { isDisabled: (e3) => f2 || w2, items: x2, strategy: Le, modifiers: [He], ref: B2, renderItem: V2, renderDivider: m2, onMove: T2, activationConstraint: { distance: 15 } }) }) }), G("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: u2(he2) })] });
|
|
3100
3100
|
}));
|
|
3101
|
-
|
|
3102
|
-
const No = (e2) => Z("svg", { ...e2, viewBox: "0 0 48 48", children: [G("path", { d: "M 2.2827924,0 C 1.5038324,0 0.87090248,0.52603 0.87090248,1.17149 v 25.39667 h -0.01 v 20.2607 c 0,0.39663 0.24025002,0.74639 0.60481992,0.95852 v 0.18499 h 0.50664 c 0.0972,0.0173 0.19732,0.0276 0.30092,0.0276 h 15.5346916 16.7448 v 0 h 11.35822 c 0.10311,0 0.20276,-0.0104 0.29945,-0.0276 h 0.0696 v -0.0182 c 0.59938,-0.13566 1.04238,-0.58606 1.04238,-1.12526 V 26.96484 c 0.006,-0.0429 0.009,-0.0853 0.009,-0.12925 V 1.17154 c 0,-0.64586 -0.63293,-1.17149 -1.41189,-1.17149 h -15.7478 v 2e-4 h -2.06997 V 5e-5 Z", fill: "#547DBE" }), G("path", { d: "m 2.8338324,2.7184 v 9.0404 H 11.538484 V 2.7184 Z m 11.2334116,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.26696,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.33258,0 v 9.0404 h 8.70465 V 2.7184 Z M 2.8338324,14.32723 v 8.84046 h 8.7046516 v -8.84046 z m 11.2334116,0 v 8.84046 h 8.70465 v -8.84046 z m 11.26696,0 v 8.84046 h 8.70465 v -8.84046 z m 11.33258,0 v 8.84046 h 8.70465 V 14.32723 Z M 2.8338324,25.73691 v 8.67308 h 8.7046516 v -8.67308 z m 11.2334116,0 v 8.67308 h 8.73721 v -8.67308 z m 11.26696,0 v 8.67308 h 8.70465 v -8.67308 z m 11.33258,0 v 8.67308 h 8.70465 V 25.73691 Z M 2.8693424,36.61859 v 8.67357 h 8.7046616 v -8.67357 z m 11.2339116,0 v 8.67357 h 8.73771 v -8.67357 z m 11.26697,0 v 8.67357 h 8.70465 v -8.67357 z m 11.33257,0 v 8.67357 h 8.70465 v -8.67357 z", fill: "#FFFFFF" }), G("path", { d: "m 2.8254424,2.72091 v 9.04041 H 11.570544 V 2.72091 Z m 0,11.60889 v 8.84036 H 11.570544 V 14.3298 Z m 0,11.40958 v 8.67357 h 8.7451016 v -8.67357 z m 0.036,10.88167 v 8.67358 h 8.7451116 v -8.67358 z", fill: "#547DBE", fillOpacity: "0.4" }), G("path", { d: "m 30.820434,6.19497 c 1.85291,0 3.66241,0.29708 5.4285,0.89113 1.7656,0.5942 3.49568,1.50108 5.19073,2.72107 l -2.37584,3.25571 c -1.40941,-1.01391 -2.79515,-1.76647 -4.15721,-2.25759 -1.36206,-0.49111 -2.72412,-0.73667 -4.08618,-0.73667 -2.5817,0 -4.58902,0.53064 -6.02232,1.59218 -1.43334,1.06143 -2.14989,2.56661 -2.14989,4.51523 v 0.0237 c 0,1.36241 0.41177,2.40021 1.23532,3.11315 0.82355,0.71288 1.89253,1.24367 3.20703,1.59217 1.31446,0.3485 2.71608,0.67341 4.20493,0.97439 1.29842,0.26929 2.58944,0.58216 3.87257,0.9386 1.28263,0.3565 2.45032,0.8635 3.50356,1.52097 1.05324,0.65747 1.89288,1.5486 2.51841,2.6734 0.62553,1.12485 0.93829,2.59035 0.93829,4.39635 v 0.0477 c 0,3.18435 -1.10849,5.64817 -3.32597,7.39066 -2.21698,1.7425 -5.33724,2.61399 -9.35978,2.61399 -1.67882,0 -3.25863,-0.15841 -4.73958,-0.47523 -1.4808,-0.31681 -2.86644,-0.79204 -4.15737,-1.42617 -1.29077,-0.63363 -2.49827,-1.42567 -3.6227,-2.37612 l 2.54179,-3.20819 c 1.39383,1.204 2.91819,2.10717 4.57323,2.70928 1.6549,0.60205 3.45641,0.90307 5.40463,0.90307 2.73991,0 4.85823,-0.52704 6.35447,-1.58048 1.49674,-1.05359 2.24511,-2.53098 2.24511,-4.43213 v -0.0237 c 0,-1.37834 -0.37197,-2.43583 -1.11639,-3.17245 -0.74442,-0.73668 -1.71824,-1.2912 -2.92194,-1.66359 -1.2037,-0.37223 -2.51051,-0.6851 -3.91993,-0.9386 -1.34627,-0.23762 -2.69635,-0.51485 -4.05046,-0.83182 -1.35417,-0.31677 -2.59339,-0.7841 -3.71782,-1.40204 -1.12448,-0.61779 -2.03125,-1.49708 -2.72017,-2.63782 -0.68898,-1.14078 -1.03341,-2.66156 -1.03341,-4.5627 v -0.0237 c 0,-3.21623 1.06898,-5.70753 3.20718,-7.47386 2.13805,-1.76648 5.15506,-2.64981 9.05121,-2.64981 z", strokeWidth: "2.5", stroke: "#EB594D", fill: "#f9CECB" })] }), Vo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), Ho = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1195 h 512 v 1195 h 256 v -1621 h 512 v 1621 m -810 -512 h -427 v 512 h 427 m 768 -768 h -427 v 768 h 427 z" }), G("path", { className: "styled background", d: "M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -555 h 512 v 555 h 256 v -811 h 512 v 811 m -469 0 h 427 v -768 h -427 m -768 768 h 427 v -512 h -427 z" }), G("path", { className: "styled info_light", d: "M 832 1387 h -469 v -640 h 469 z" }), G("path", { className: "styled info_dark", d: "M 341 725 h 512 v 683 h -512 m 43 -640 v 597 h 427 v -597 z" }), G("path", { className: "styled secondary_light", d: "M 1600 1131 h -469 v -811 h 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1109 299 h 512 v 853 h -512 m 43 -811 v 768 h 427 v -768 z" })] }), Lo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1621 h 512 v 1621 h 256 v -1621 h 512 v 1621 m -810 -384 h -427 v 384 h 427 m 768 -1024 h -427 v 1024 h 427 z" }), G("path", { className: "styled background", d: "M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -427 h 512 v 427 h 256 v -1067 h 512 v 1067 m -469 0 h 427 v -1024 h -427 m -768 1024 h 427 v -384 h -427 z" }), G("path", { className: "styled info_light", d: "M 832 1515 h -469 v -1195 h 469 z" }), G("path", { className: "styled info_dark", d: "M 341 299 h 512 v 1237 h -512 m 43 -1195 v 1152 h 427 v -1152 z" }), G("path", { className: "styled secondary_light", d: "M 1600 875 h -469 v -555 h 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1109 299 h 512 v 597 h -512 m 43 -555 v 512 h 427 v -512 z" })] }), Bo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 197 144 l 402 -402 l 361 360 l 263 -301 l 32 28 l -265 303 l 264 265 l -30 30 l -262 -263 l -317 362 l -444 -326 l -775 776 v 268 m 806 -1074 l 407 299 l 292 -335 l -332 -332 m -1173 832 v 281 l 740 -740 l -162 -119 z" }), G("path", { className: "styled info", d: "M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 639 469 l 584 -668 l 32 28 l -610 697 l -641 -470 l -578 578 v 610 z" })] }), Oo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1037 l 571 -570 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 l -581 582 v 452 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" }), G("path", { className: "styled info", d: "M 121 1189 l -29 -31 l 607 -606 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" })] }), Po = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1749 v 43 h -1749 v 1335 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" }), G("path", { className: "styled info", d: "M 1877 299 h -1770 v -43 h 1770 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" })] }), $o = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 99 73 l 175 -190 h -18 v -170 h 170 v 140 l 233 233 l 280 -373 v -171 h 170 v 171 h -118 l -302 402 l 194 195 h 98 v 171 h -171 v -171 h 13 l -160 -160 l -109 144 v 144 h -170 v -104 l -279 -205 l -703 759 v 147 h -85 m 1015 -1152 l -199 215 l 251 184 v -15 h 139 l 110 -147 l -237 -237 m -1079 726 v 256 h 48 l 705 -761 l -70 -52 v 2 h -171 v -12 l -427 426 v 141 z" }), G("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -640 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 416 -554 v -171 h 170 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 z" }), G("path", { className: "styled info", d: "M 1694 1024 h 98 v 171 h -171 v -171 h 13 l -427 -427 h -64 l -930 1005 v 147 h -170 v -170 h 133 l 909 -982 h -18 v -170 h 170 v 140 z" })] }), Wo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 v 256 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled info", d: "M 1802 427 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -170 v -171 h 140 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 z" })] }), Uo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1195 h -42 v -171 h 42 v -128 h 43 v 128 h 85 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 h 171 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -85 v 1195 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled info", d: "M 1920 213 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -170 v -171 h 170 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 z" })] }), _o = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 130 -33 250 q -34 119 -95 224 q -62 104 -147 190 q -86 86 -190 147 q -105 61 -225 95 q -120 33 -249 33 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 32 -243 q 31 -117 89 -219 q 58 -102 140 -187 q 82 -86 182 -148 q 100 -62 217 -99 q 116 -37 243 -43 m -862 939 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 173 0 325 -61 q 151 -61 272 -167 l -638 -638 v -924 q -121 6 -230 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -55 97 -85 209 q -31 111 -31 231 z" }), G("path", { className: "styled background", d: "M 1941 1024 q 0 127 -32 244 q -33 117 -93 219 q -60 102 -143 186 q -84 83 -186 143 q -102 60 -219 93 q -117 32 -244 32 q -127 0 -244 -32 q -117 -33 -219 -93 q -102 -60 -185 -143 q -84 -84 -144 -186 q -60 -102 -92 -219 q -33 -117 -33 -244 q 0 -127 33 -244 q 32 -117 92 -219 q 60 -102 144 -185 q 83 -84 185 -144 q 102 -60 219 -92 q 117 -33 244 -33 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 z" }), G("path", { className: "styled current_color", d: "M 1666 1709 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -97 59 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 178 0 334 -65 q 156 -65 277 -177 z" }), G("path", { className: "styled info_light", d: "M 1024 107 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -647 -648 v -937 q 5 0 11 0 q 5 -1 10 -1 z" }), G("path", { className: "styled info_dark", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -62 187 q -41 89 -99 168 q -58 78 -130 142 q -9 -8 -15 -15 q -6 -6 -10 -10 q -5 -5 -5 -6 l -639 -638 v -969 m 670 1578 q 62 -61 112 -133 q 50 -72 85 -153 q 35 -82 54 -170 q 18 -89 18 -183 q 0 -123 -32 -237 q -32 -115 -90 -214 q -59 -100 -141 -182 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -238 -32 v 908 z" })] }), Go = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 187 q -41 89 -98 168 q -58 78 -130 142 q -125 112 -284 176 q -160 64 -342 64 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 33 -244 q 33 -118 93 -221 q 59 -104 144 -190 q 84 -86 187 -148 q 102 -62 221 -97 q 118 -36 247 -39 m 307 1305 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 q -90 8 -167 48 q -78 39 -135 102 q -58 62 -91 144 q -33 81 -33 173 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 84 0 159 -27 q 74 -28 134 -76 m -293 530 q 173 0 325 -60 q 151 -61 270 -168 l -272 -272 q -66 54 -148 85 q -82 31 -175 31 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -100 37 -189 q 36 -90 100 -158 q 63 -69 149 -112 q 85 -43 183 -51 v -384 q -119 6 -228 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -56 97 -86 209 q -30 111 -30 231 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 z" }), G("path", { className: "styled background", d: "M 1658 1692 q -125 119 -286 187 q -162 68 -348 68 q -127 0 -244 -33 q -118 -33 -220 -93 q -103 -60 -186 -143 q -84 -84 -144 -186 q -60 -103 -93 -220 q -33 -118 -33 -245 q 0 -125 32 -241 q 32 -116 90 -217 q 58 -101 140 -184 q 81 -84 181 -144 q 99 -61 214 -95 q 115 -35 239 -38 v 429 q -97 5 -181 45 q -85 40 -148 106 q -63 65 -99 152 q -36 86 -36 184 q 0 101 39 190 q 38 89 104 155 q 66 66 155 105 q 89 38 190 38 q 91 0 171 -30 q 80 -31 144 -85 z" }), G("path", { className: "styled current_color", d: "M 1364 1406 q -69 61 -155 96 q -86 34 -185 34 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -103 39 -194 q 38 -92 105 -161 q 66 -69 156 -110 q 89 -42 191 -46 v 42 q -94 4 -175 43 q -82 38 -142 101 q -61 63 -96 147 q -35 84 -35 178 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 90 0 169 -31 q 79 -31 141 -86 m 332 333 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -98 58 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 q 179 0 335 -64 q 155 -65 276 -178 z" }), G("path", { className: "styled info_light", d: "M 1515 1024 q 0 -102 -38 -191 q -39 -89 -106 -156 q -67 -67 -156 -105 q -89 -39 -191 -39 q -5 0 -10 1 q -6 0 -11 0 v -426 q 5 0 11 0 q 5 -1 10 -1 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -302 -301 q 77 -68 122 -162 q 45 -95 45 -206 z" }), G("path", { className: "styled info_dark", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 188 q -41 89 -98 168 q -58 78 -130 142 l -333 -334 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 v -471 q 11 0 22 0 q 10 -1 21 -1 m 627 1579 q 62 -61 112 -133 q 50 -73 85 -154 q 35 -81 54 -170 q 18 -89 18 -183 q 0 -124 -32 -238 q -32 -115 -90 -214 q -59 -100 -140 -181 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -239 -32 v 384 q 106 0 200 40 q 93 40 163 110 q 69 69 109 163 q 40 93 40 199 q 0 109 -42 204 q -42 94 -114 164 z" })] }), Zo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1707 v 341 h -640 v 299 h -1067 v 171 h 811 v 298 h 512 v 342 h -1323 v 213 m 0 -1067 h 1024 v -256 h -1024 m 0 1067 h 1280 v -256 h -1280 z" }), G("path", { className: "styled background", d: "M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z" }), G("path", { className: "styled info_light", d: "M 1813 277 v 299 h -1706 v -299 z" }), G("path", { className: "styled info_dark", d: "M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z" }), G("path", { className: "styled secondary_light", d: "M 917 1088 v 299 h -810 v -299 z" }), G("path", { className: "styled secondary_dark", d: "M 896 1109 h -795 v -42 h 838 v 322 h -43 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 768 h 1024 v -256 h 43 v 299 h -1067 v 469 h 1323 v 342 h -1323 v 213 m 0 -512 v 256 h 1280 v -256 z" })] }), jo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1237 v 512 h -1237 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 555 v -427 h -555 m 0 1195 h 768 v -427 h -768 z" }), G("path", { className: "styled background", d: "M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 597 v 512 h -597 v 256 h 811 v 512 h -811 v 299 m 0 -768 v 427 h 768 v -427 m -768 -768 v 427 h 555 v -427 z" }), G("path", { className: "styled info_light", d: "M 704 832 v -469 h 640 v 469 z" }), G("path", { className: "styled info_dark", d: "M 1365 341 v 512 h -682 v -512 m 640 43 h -598 v 427 h 598 z" }), G("path", { className: "styled secondary_light", d: "M 917 1600 v -469 h 811 v 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1749 1109 v 512 h -853 v -512 m 811 43 h -768 v 427 h 768 z" })] }), Ko = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1621 v 512 h -1621 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 384 v -427 h -384 m 0 1195 h 1024 v -427 h -1024 z" }), G("path", { className: "styled background", d: "M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 427 v 512 h -427 v 256 h 1067 v 512 h -1067 v 299 m 0 -768 v 427 h 1024 v -427 m -1024 -768 v 427 h 384 v -427 z" }), G("path", { className: "styled info_light", d: "M 533 832 v -469 h 1195 v 469 z" }), G("path", { className: "styled info_dark", d: "M 1749 341 v 512 h -1237 v -512 m 1195 43 h -1152 v 427 h 1152 z" }), G("path", { className: "styled secondary_light", d: "M 1173 1600 v -469 h 555 v 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1749 1109 v 512 h -597 v -512 m 555 43 h -512 v 427 h 512 z" })] }), Xo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 253 256 l 544 -345 l 74 -91 l 644 466 l 277 -464 m 0 718 l -913 -662 l -476 591 l -403 -408 v 785 h 1792 z" }), G("path", { className: "styled background", d: "M 530 1511 l 473 -588 l 914 656 l 24 53 v 304 h -1834 l 2 -864 z" }), G("path", { className: "styled info_light", d: "M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z" }), G("path", { className: "styled info_dark", d: "M 361 1342 l 572 -362 l 22 36 l -571 362 m 1248 1 l 287 -483 l 37 22 l -287 482 z" }), G("path", { className: "styled current_color", d: "M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 400 405 l 471 -585 l 921 667 v -665 m 0 1024 v -306 l -913 -662 l -476 591 l -403 -408 v 785 z" })] }), Yo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 640 v 926 l -641 -554 l -618 703 l -576 -575 v 780 h 1835 v 43 h -1878 v -1878 h 43 v 353 l 576 577 l 661 -704 l 276 329 z" }), G("path", { className: "styled background", d: "M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z" }), G("path", { className: "styled info_light", d: "M 1963 1536 l -641 -555 l -618 704 l -597 -597 v -640 l 597 597 l 661 -704 l 269 319 h 329 z" }), G("path", { className: "styled info_dark", d: "M 1963 640 v 43 h -342 l -258 -310 l -659 702 l -597 -598 v -60 l 597 598 l 661 -704 l 276 329 m 322 866 v 60 l -641 -554 l -618 703 l -597 -597 v -62 l 597 599 l 618 -704 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), Jo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 85 v 1878 h -1878 v -1878 m 1835 1524 l -788 -746 l -576 662 l -428 -428 v 823 h 1792 z" }), G("path", { className: "styled background", d: "M 1941 1941 h -1834 v -1834 h 1834 z" }), G("path", { className: "styled current_color", d: "M 1963 85 v 1878 h -1878 v -1878 m 1835 43 h -1792 v 1792 h 1792 z" }), G("path", { className: "styled info_light", d: "M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z" }), G("path", { className: "styled info_dark", d: "M 1963 1649 l -831 -786 l -576 662 l -471 -467 v -973 h 1878 m -43 1465 v -1422 h -1792 v 908 l 426 426 l 575 -661 z" })] }), Qo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 m 768 384 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z" }), G("path", { className: "styled background", d: "M 1195 1344 q 22 0 42 9 q 19 8 33 23 q 14 14 23 34 q 8 19 8 41 q 0 45 -30 76 q -31 30 -76 30 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -14 -23 -33 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 m -427 -341 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m 939 -512 q 45 0 76 31 q 30 30 30 75 q 0 22 -8 42 q -9 19 -23 34 q -14 14 -33 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m -1323 -256 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 z" }), G("path", { className: "styled info", d: "M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z" })] }), en = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 l -7 2 q -26 93 -66 161 q -40 68 -88 116 q -48 47 -101 76 q -54 29 -108 44 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -115 -15 -221 -84 q -107 -69 -207 -190 q -36 91 -59 176 q -24 85 -38 152 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 15 -73 42 -167 q 26 -95 69 -195 q -48 -62 -94 -141 q -47 -80 -89 -168 q -43 -88 -80 -178 q -37 -91 -64 -176 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 19 59 48 135 q 29 75 67 158 q 37 82 84 167 q 47 85 103 163 q 33 -72 76 -141 q 42 -70 96 -131 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 5 0 9 1 q 3 0 7 0 q 1 -20 2 -40 q 0 -21 0 -43 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 q 18 113 27 215 q 8 102 8 193 q 0 25 0 48 q 0 23 -2 46 q 32 16 51 46 q 19 30 19 68 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 m -171 -1206 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 m -1408 86 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 354 -278 q 59 -80 92 -194 q -23 -4 -42 -15 q -19 -12 -33 -28 q -14 -17 -22 -38 q -8 -21 -8 -45 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -57 63 -101 136 q -44 73 -77 150 q 41 53 87 99 q 45 46 96 82 q 50 36 106 60 q 55 23 115 32 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 z" }), G("path", { className: "styled background", d: "M 1305 1497 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 m -890 -1072 q 0 23 -9 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -42 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 22 0 42 9 q 20 8 35 23 q 15 15 24 35 q 9 20 9 43 m 1317 -167 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 z" }), G("path", { className: "styled info", d: "M 1689 365 q 18 112 27 213 q 8 101 8 193 q 0 183 -35 322 q -35 138 -106 234 q -29 38 -60 67 q -32 29 -65 51 q -34 21 -68 36 q -35 14 -68 24 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -114 -15 -224 -87 q -110 -72 -211 -196 q -101 -125 -189 -299 q -89 -174 -160 -393 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 23 69 59 161 q 35 92 83 191 q 48 99 109 197 q 61 98 136 179 q 74 81 161 137 q 87 55 187 70 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 q 133 -178 133 -530 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 m -1476 62 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 341 -1323 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 z" }), G("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 q -14 3 -28 3 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -66 73 -115 161 q -49 87 -84 176 q -35 88 -58 172 q -24 83 -37 148 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 14 -67 38 -152 q 23 -86 59 -177 q 36 -92 87 -182 q 50 -90 118 -167 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 z" })] }), tn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1577 -902 q 93 215 93 547 q 0 88 -6 184 l -43 -3 q 3 -47 5 -92 q 2 -45 2 -88 q 0 -277 -68 -470 q -25 97 -65 167 q -40 70 -89 119 q -49 48 -104 78 q -55 29 -108 46 q -54 16 -103 22 q -49 5 -87 5 q -74 0 -141 -21 q -68 -21 -129 -58 q -62 -37 -116 -88 q -55 -51 -104 -111 q -39 93 -64 181 q -25 88 -40 157 q -15 69 -21 112 q -6 42 -6 44 l -42 -4 q 0 -2 7 -48 q 6 -46 23 -120 q 16 -74 44 -168 q 27 -94 70 -192 q -60 -79 -109 -167 q -50 -88 -90 -174 q -40 -86 -70 -164 q -30 -79 -50 -141 q -21 -62 -32 -102 q -11 -40 -13 -47 l 42 -11 q 0 2 10 37 q 10 35 29 93 q 19 58 48 135 q 28 76 66 160 q 38 83 86 170 q 47 86 104 165 q 45 -96 106 -184 q 61 -89 142 -156 q 80 -68 181 -108 q 101 -40 227 -40 q 3 0 22 2 q 19 1 49 9 q 30 8 68 25 q 38 16 80 46 q 41 29 83 75 q 42 46 80 112 q 5 -42 8 -87 q 2 -45 2 -93 q 0 -243 -64 -562 l 42 -8 q 65 325 65 569 q 0 68 -5 130 q -5 61 -15 117 m -156 283 q 79 -106 111 -275 q -33 -74 -72 -125 q -40 -51 -81 -84 q -41 -34 -80 -52 q -39 -19 -69 -27 q -31 -9 -49 -11 q -19 -2 -20 -2 q -121 0 -218 41 q -97 40 -173 107 q -77 67 -135 155 q -58 87 -101 181 q 47 60 100 112 q 53 51 112 89 q 58 37 123 59 q 65 21 136 21 q 45 0 99 -7 q 54 -7 110 -27 q 55 -21 109 -58 q 54 -37 98 -97 z" }), G("path", { className: "styled info", d: "M 1792 1749 l -43 -3 q 6 -93 6 -178 q 0 -244 -51 -422 q -51 -179 -152 -287 q -47 -49 -93 -76 q -46 -28 -83 -40 q -38 -13 -62 -15 q -24 -3 -25 -3 q -124 0 -223 44 q -99 43 -177 114 q -78 71 -136 162 q -58 90 -100 186 q -42 95 -69 187 q -28 91 -44 164 q -16 72 -22 118 q -7 46 -7 49 l -42 -4 q 0 -3 5 -34 q 4 -32 14 -84 q 10 -52 27 -120 q 17 -68 43 -144 q 25 -76 60 -156 q 35 -80 82 -155 q 46 -76 105 -143 q 58 -67 131 -117 q 73 -51 161 -80 q 88 -29 193 -29 q 3 0 30 3 q 27 2 69 16 q 41 14 92 44 q 51 30 102 84 q 216 231 216 735 q 0 45 -2 91 q -2 45 -5 93 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1004 -387 q -111 0 -207 -46 q -97 -46 -179 -121 q -83 -75 -151 -172 q -68 -97 -122 -199 q -55 -102 -96 -201 q -41 -99 -68 -178 q -28 -80 -43 -132 q -15 -53 -17 -62 l 42 -11 q 1 2 14 50 q 13 47 40 124 q 26 76 66 173 q 39 96 91 197 q 52 101 118 197 q 65 96 144 171 q 79 75 171 121 q 92 46 197 46 q 45 0 99 -7 q 54 -7 110 -27 q 56 -21 110 -58 q 54 -37 98 -97 q 133 -180 133 -528 q 0 -121 -16 -261 q -16 -141 -48 -302 l 42 -8 q 65 325 65 569 q 0 364 -142 556 q -50 67 -111 108 q -62 40 -123 62 q -62 22 -119 29 q -57 7 -98 7 z" })] }), on = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 213 342 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 361 762 l 165 -282 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 78 89 l 449 -570 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -258 814 l 410 467 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 l 70 565 l -482 -549 l -46 145 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 53 -166 l -189 -214 l -295 375 l -69 -146 l -147 251 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 166 -283 l -375 -789 q -14 3 -28 3 m 982 1109 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1323 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 m -105 275 l -401 509 l 176 200 m -355 -301 l -187 301 l 52 129 l 258 -327 l -93 -106 q -15 3 -30 3 m -638 -683 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 z" }), G("path", { className: "styled background", d: "M 1771 296 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -35 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 m -1320 7 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -34 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -35 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 15 -15 35 -23 q 19 -9 41 -9 q 22 0 42 9 q 19 8 34 23 q 14 14 23 34 q 8 19 8 41 m 902 1232 q 0 23 -8 43 q -9 19 -23 34 q -15 14 -35 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -43 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 z" }), G("path", { className: "styled info", d: "M 1664 171 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -319 1008 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 293 -923 l -724 918 l -466 -982 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 435 919 l 734 -932 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m -1323 213 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 m 982 1152 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1152 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 z" }), G("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1636 1182 l 70 565 l -825 -939 q -15 3 -30 3 l -360 615 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 357 -609 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 726 826 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 z" })] }), nn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1503 1457 l -10 61 l -42 -6 l 16 -96 l -334 -380 l -309 389 l -72 -147 l -248 421 l -37 -21 l 262 -446 l -463 -951 l 39 -18 l 451 925 l 227 -387 l 149 168 l 564 -710 l -184 1143 l 263 299 l -68 -525 l 42 -5 l 83 661 m -728 -828 l -114 -130 l -212 360 l 54 112 m 644 14 l 155 -951 l -471 593 m 803 918 v 43 h -1878 v -1878 h 43 v 1835 z" }), G("path", { className: "styled info", d: "M 1493 1518 l -42 -6 l 180 -1103 l -807 1016 l -558 -1144 l 39 -18 l 527 1083 l 864 -1087 z" }), G("path", { className: "styled current_color", d: "M 1832 1832 l -842 -958 l -486 825 l -37 -21 l 516 -877 l 792 900 l -68 -525 l 42 -5 m 214 749 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), ln = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), rn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), an = ue(null);
|
|
3103
|
-
|
|
3104
|
-
const
|
|
3101
|
+
No.displayName = "TabStrip";
|
|
3102
|
+
const Vo = (e2) => Z("svg", { ...e2, viewBox: "0 0 48 48", children: [G("path", { d: "M 2.2827924,0 C 1.5038324,0 0.87090248,0.52603 0.87090248,1.17149 v 25.39667 h -0.01 v 20.2607 c 0,0.39663 0.24025002,0.74639 0.60481992,0.95852 v 0.18499 h 0.50664 c 0.0972,0.0173 0.19732,0.0276 0.30092,0.0276 h 15.5346916 16.7448 v 0 h 11.35822 c 0.10311,0 0.20276,-0.0104 0.29945,-0.0276 h 0.0696 v -0.0182 c 0.59938,-0.13566 1.04238,-0.58606 1.04238,-1.12526 V 26.96484 c 0.006,-0.0429 0.009,-0.0853 0.009,-0.12925 V 1.17154 c 0,-0.64586 -0.63293,-1.17149 -1.41189,-1.17149 h -15.7478 v 2e-4 h -2.06997 V 5e-5 Z", fill: "#547DBE" }), G("path", { d: "m 2.8338324,2.7184 v 9.0404 H 11.538484 V 2.7184 Z m 11.2334116,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.26696,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.33258,0 v 9.0404 h 8.70465 V 2.7184 Z M 2.8338324,14.32723 v 8.84046 h 8.7046516 v -8.84046 z m 11.2334116,0 v 8.84046 h 8.70465 v -8.84046 z m 11.26696,0 v 8.84046 h 8.70465 v -8.84046 z m 11.33258,0 v 8.84046 h 8.70465 V 14.32723 Z M 2.8338324,25.73691 v 8.67308 h 8.7046516 v -8.67308 z m 11.2334116,0 v 8.67308 h 8.73721 v -8.67308 z m 11.26696,0 v 8.67308 h 8.70465 v -8.67308 z m 11.33258,0 v 8.67308 h 8.70465 V 25.73691 Z M 2.8693424,36.61859 v 8.67357 h 8.7046616 v -8.67357 z m 11.2339116,0 v 8.67357 h 8.73771 v -8.67357 z m 11.26697,0 v 8.67357 h 8.70465 v -8.67357 z m 11.33257,0 v 8.67357 h 8.70465 v -8.67357 z", fill: "#FFFFFF" }), G("path", { d: "m 2.8254424,2.72091 v 9.04041 H 11.570544 V 2.72091 Z m 0,11.60889 v 8.84036 H 11.570544 V 14.3298 Z m 0,11.40958 v 8.67357 h 8.7451016 v -8.67357 z m 0.036,10.88167 v 8.67358 h 8.7451116 v -8.67358 z", fill: "#547DBE", fillOpacity: "0.4" }), G("path", { d: "m 30.820434,6.19497 c 1.85291,0 3.66241,0.29708 5.4285,0.89113 1.7656,0.5942 3.49568,1.50108 5.19073,2.72107 l -2.37584,3.25571 c -1.40941,-1.01391 -2.79515,-1.76647 -4.15721,-2.25759 -1.36206,-0.49111 -2.72412,-0.73667 -4.08618,-0.73667 -2.5817,0 -4.58902,0.53064 -6.02232,1.59218 -1.43334,1.06143 -2.14989,2.56661 -2.14989,4.51523 v 0.0237 c 0,1.36241 0.41177,2.40021 1.23532,3.11315 0.82355,0.71288 1.89253,1.24367 3.20703,1.59217 1.31446,0.3485 2.71608,0.67341 4.20493,0.97439 1.29842,0.26929 2.58944,0.58216 3.87257,0.9386 1.28263,0.3565 2.45032,0.8635 3.50356,1.52097 1.05324,0.65747 1.89288,1.5486 2.51841,2.6734 0.62553,1.12485 0.93829,2.59035 0.93829,4.39635 v 0.0477 c 0,3.18435 -1.10849,5.64817 -3.32597,7.39066 -2.21698,1.7425 -5.33724,2.61399 -9.35978,2.61399 -1.67882,0 -3.25863,-0.15841 -4.73958,-0.47523 -1.4808,-0.31681 -2.86644,-0.79204 -4.15737,-1.42617 -1.29077,-0.63363 -2.49827,-1.42567 -3.6227,-2.37612 l 2.54179,-3.20819 c 1.39383,1.204 2.91819,2.10717 4.57323,2.70928 1.6549,0.60205 3.45641,0.90307 5.40463,0.90307 2.73991,0 4.85823,-0.52704 6.35447,-1.58048 1.49674,-1.05359 2.24511,-2.53098 2.24511,-4.43213 v -0.0237 c 0,-1.37834 -0.37197,-2.43583 -1.11639,-3.17245 -0.74442,-0.73668 -1.71824,-1.2912 -2.92194,-1.66359 -1.2037,-0.37223 -2.51051,-0.6851 -3.91993,-0.9386 -1.34627,-0.23762 -2.69635,-0.51485 -4.05046,-0.83182 -1.35417,-0.31677 -2.59339,-0.7841 -3.71782,-1.40204 -1.12448,-0.61779 -2.03125,-1.49708 -2.72017,-2.63782 -0.68898,-1.14078 -1.03341,-2.66156 -1.03341,-4.5627 v -0.0237 c 0,-3.21623 1.06898,-5.70753 3.20718,-7.47386 2.13805,-1.76648 5.15506,-2.64981 9.05121,-2.64981 z", strokeWidth: "2.5", stroke: "#EB594D", fill: "#f9CECB" })] }), Lo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), Ho = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1195 h 512 v 1195 h 256 v -1621 h 512 v 1621 m -810 -512 h -427 v 512 h 427 m 768 -768 h -427 v 768 h 427 z" }), G("path", { className: "styled background", d: "M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -555 h 512 v 555 h 256 v -811 h 512 v 811 m -469 0 h 427 v -768 h -427 m -768 768 h 427 v -512 h -427 z" }), G("path", { className: "styled info_light", d: "M 832 1387 h -469 v -640 h 469 z" }), G("path", { className: "styled info_dark", d: "M 341 725 h 512 v 683 h -512 m 43 -640 v 597 h 427 v -597 z" }), G("path", { className: "styled secondary_light", d: "M 1600 1131 h -469 v -811 h 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1109 299 h 512 v 853 h -512 m 43 -811 v 768 h 427 v -768 z" })] }), Bo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1621 h 512 v 1621 h 256 v -1621 h 512 v 1621 m -810 -384 h -427 v 384 h 427 m 768 -1024 h -427 v 1024 h 427 z" }), G("path", { className: "styled background", d: "M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -427 h 512 v 427 h 256 v -1067 h 512 v 1067 m -469 0 h 427 v -1024 h -427 m -768 1024 h 427 v -384 h -427 z" }), G("path", { className: "styled info_light", d: "M 832 1515 h -469 v -1195 h 469 z" }), G("path", { className: "styled info_dark", d: "M 341 299 h 512 v 1237 h -512 m 43 -1195 v 1152 h 427 v -1152 z" }), G("path", { className: "styled secondary_light", d: "M 1600 875 h -469 v -555 h 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1109 299 h 512 v 597 h -512 m 43 -555 v 512 h 427 v -512 z" })] }), Oo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 197 144 l 402 -402 l 361 360 l 263 -301 l 32 28 l -265 303 l 264 265 l -30 30 l -262 -263 l -317 362 l -444 -326 l -775 776 v 268 m 806 -1074 l 407 299 l 292 -335 l -332 -332 m -1173 832 v 281 l 740 -740 l -162 -119 z" }), G("path", { className: "styled info", d: "M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 639 469 l 584 -668 l 32 28 l -610 697 l -641 -470 l -578 578 v 610 z" })] }), Po = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1037 l 571 -570 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 l -581 582 v 452 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" }), G("path", { className: "styled info", d: "M 121 1189 l -29 -31 l 607 -606 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" })] }), $o = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1749 v 43 h -1749 v 1335 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" }), G("path", { className: "styled info", d: "M 1877 299 h -1770 v -43 h 1770 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" })] }), Wo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 99 73 l 175 -190 h -18 v -170 h 170 v 140 l 233 233 l 280 -373 v -171 h 170 v 171 h -118 l -302 402 l 194 195 h 98 v 171 h -171 v -171 h 13 l -160 -160 l -109 144 v 144 h -170 v -104 l -279 -205 l -703 759 v 147 h -85 m 1015 -1152 l -199 215 l 251 184 v -15 h 139 l 110 -147 l -237 -237 m -1079 726 v 256 h 48 l 705 -761 l -70 -52 v 2 h -171 v -12 l -427 426 v 141 z" }), G("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -640 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 416 -554 v -171 h 170 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 z" }), G("path", { className: "styled info", d: "M 1694 1024 h 98 v 171 h -171 v -171 h 13 l -427 -427 h -64 l -930 1005 v 147 h -170 v -170 h 133 l 909 -982 h -18 v -170 h 170 v 140 z" })] }), Uo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 v 256 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled info", d: "M 1802 427 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -170 v -171 h 140 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 z" })] }), _o = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1195 h -42 v -171 h 42 v -128 h 43 v 128 h 85 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 h 171 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -85 v 1195 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), G("path", { className: "styled info", d: "M 1920 213 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -170 v -171 h 170 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 z" })] }), Go = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 130 -33 250 q -34 119 -95 224 q -62 104 -147 190 q -86 86 -190 147 q -105 61 -225 95 q -120 33 -249 33 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 32 -243 q 31 -117 89 -219 q 58 -102 140 -187 q 82 -86 182 -148 q 100 -62 217 -99 q 116 -37 243 -43 m -862 939 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 173 0 325 -61 q 151 -61 272 -167 l -638 -638 v -924 q -121 6 -230 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -55 97 -85 209 q -31 111 -31 231 z" }), G("path", { className: "styled background", d: "M 1941 1024 q 0 127 -32 244 q -33 117 -93 219 q -60 102 -143 186 q -84 83 -186 143 q -102 60 -219 93 q -117 32 -244 32 q -127 0 -244 -32 q -117 -33 -219 -93 q -102 -60 -185 -143 q -84 -84 -144 -186 q -60 -102 -92 -219 q -33 -117 -33 -244 q 0 -127 33 -244 q 32 -117 92 -219 q 60 -102 144 -185 q 83 -84 185 -144 q 102 -60 219 -92 q 117 -33 244 -33 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 z" }), G("path", { className: "styled current_color", d: "M 1666 1709 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -97 59 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 178 0 334 -65 q 156 -65 277 -177 z" }), G("path", { className: "styled info_light", d: "M 1024 107 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -647 -648 v -937 q 5 0 11 0 q 5 -1 10 -1 z" }), G("path", { className: "styled info_dark", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -62 187 q -41 89 -99 168 q -58 78 -130 142 q -9 -8 -15 -15 q -6 -6 -10 -10 q -5 -5 -5 -6 l -639 -638 v -969 m 670 1578 q 62 -61 112 -133 q 50 -72 85 -153 q 35 -82 54 -170 q 18 -89 18 -183 q 0 -123 -32 -237 q -32 -115 -90 -214 q -59 -100 -141 -182 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -238 -32 v 908 z" })] }), Zo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 187 q -41 89 -98 168 q -58 78 -130 142 q -125 112 -284 176 q -160 64 -342 64 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 33 -244 q 33 -118 93 -221 q 59 -104 144 -190 q 84 -86 187 -148 q 102 -62 221 -97 q 118 -36 247 -39 m 307 1305 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 q -90 8 -167 48 q -78 39 -135 102 q -58 62 -91 144 q -33 81 -33 173 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 84 0 159 -27 q 74 -28 134 -76 m -293 530 q 173 0 325 -60 q 151 -61 270 -168 l -272 -272 q -66 54 -148 85 q -82 31 -175 31 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -100 37 -189 q 36 -90 100 -158 q 63 -69 149 -112 q 85 -43 183 -51 v -384 q -119 6 -228 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -56 97 -86 209 q -30 111 -30 231 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 z" }), G("path", { className: "styled background", d: "M 1658 1692 q -125 119 -286 187 q -162 68 -348 68 q -127 0 -244 -33 q -118 -33 -220 -93 q -103 -60 -186 -143 q -84 -84 -144 -186 q -60 -103 -93 -220 q -33 -118 -33 -245 q 0 -125 32 -241 q 32 -116 90 -217 q 58 -101 140 -184 q 81 -84 181 -144 q 99 -61 214 -95 q 115 -35 239 -38 v 429 q -97 5 -181 45 q -85 40 -148 106 q -63 65 -99 152 q -36 86 -36 184 q 0 101 39 190 q 38 89 104 155 q 66 66 155 105 q 89 38 190 38 q 91 0 171 -30 q 80 -31 144 -85 z" }), G("path", { className: "styled current_color", d: "M 1364 1406 q -69 61 -155 96 q -86 34 -185 34 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -103 39 -194 q 38 -92 105 -161 q 66 -69 156 -110 q 89 -42 191 -46 v 42 q -94 4 -175 43 q -82 38 -142 101 q -61 63 -96 147 q -35 84 -35 178 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 90 0 169 -31 q 79 -31 141 -86 m 332 333 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -98 58 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 q 179 0 335 -64 q 155 -65 276 -178 z" }), G("path", { className: "styled info_light", d: "M 1515 1024 q 0 -102 -38 -191 q -39 -89 -106 -156 q -67 -67 -156 -105 q -89 -39 -191 -39 q -5 0 -10 1 q -6 0 -11 0 v -426 q 5 0 11 0 q 5 -1 10 -1 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -302 -301 q 77 -68 122 -162 q 45 -95 45 -206 z" }), G("path", { className: "styled info_dark", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 188 q -41 89 -98 168 q -58 78 -130 142 l -333 -334 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 v -471 q 11 0 22 0 q 10 -1 21 -1 m 627 1579 q 62 -61 112 -133 q 50 -73 85 -154 q 35 -81 54 -170 q 18 -89 18 -183 q 0 -124 -32 -238 q -32 -115 -90 -214 q -59 -100 -140 -181 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -239 -32 v 384 q 106 0 200 40 q 93 40 163 110 q 69 69 109 163 q 40 93 40 199 q 0 109 -42 204 q -42 94 -114 164 z" })] }), jo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1707 v 341 h -640 v 299 h -1067 v 171 h 811 v 298 h 512 v 342 h -1323 v 213 m 0 -1067 h 1024 v -256 h -1024 m 0 1067 h 1280 v -256 h -1280 z" }), G("path", { className: "styled background", d: "M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z" }), G("path", { className: "styled info_light", d: "M 1813 277 v 299 h -1706 v -299 z" }), G("path", { className: "styled info_dark", d: "M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z" }), G("path", { className: "styled secondary_light", d: "M 917 1088 v 299 h -810 v -299 z" }), G("path", { className: "styled secondary_dark", d: "M 896 1109 h -795 v -42 h 838 v 322 h -43 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 768 h 1024 v -256 h 43 v 299 h -1067 v 469 h 1323 v 342 h -1323 v 213 m 0 -512 v 256 h 1280 v -256 z" })] }), Ko = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1237 v 512 h -1237 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 555 v -427 h -555 m 0 1195 h 768 v -427 h -768 z" }), G("path", { className: "styled background", d: "M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 597 v 512 h -597 v 256 h 811 v 512 h -811 v 299 m 0 -768 v 427 h 768 v -427 m -768 -768 v 427 h 555 v -427 z" }), G("path", { className: "styled info_light", d: "M 704 832 v -469 h 640 v 469 z" }), G("path", { className: "styled info_dark", d: "M 1365 341 v 512 h -682 v -512 m 640 43 h -598 v 427 h 598 z" }), G("path", { className: "styled secondary_light", d: "M 917 1600 v -469 h 811 v 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1749 1109 v 512 h -853 v -512 m 811 43 h -768 v 427 h 768 z" })] }), Xo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1621 v 512 h -1621 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 384 v -427 h -384 m 0 1195 h 1024 v -427 h -1024 z" }), G("path", { className: "styled background", d: "M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 427 v 512 h -427 v 256 h 1067 v 512 h -1067 v 299 m 0 -768 v 427 h 1024 v -427 m -1024 -768 v 427 h 384 v -427 z" }), G("path", { className: "styled info_light", d: "M 533 832 v -469 h 1195 v 469 z" }), G("path", { className: "styled info_dark", d: "M 1749 341 v 512 h -1237 v -512 m 1195 43 h -1152 v 427 h 1152 z" }), G("path", { className: "styled secondary_light", d: "M 1173 1600 v -469 h 555 v 469 z" }), G("path", { className: "styled secondary_dark", d: "M 1749 1109 v 512 h -597 v -512 m 555 43 h -512 v 427 h 512 z" })] }), Yo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 253 256 l 544 -345 l 74 -91 l 644 466 l 277 -464 m 0 718 l -913 -662 l -476 591 l -403 -408 v 785 h 1792 z" }), G("path", { className: "styled background", d: "M 530 1511 l 473 -588 l 914 656 l 24 53 v 304 h -1834 l 2 -864 z" }), G("path", { className: "styled info_light", d: "M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z" }), G("path", { className: "styled info_dark", d: "M 361 1342 l 572 -362 l 22 36 l -571 362 m 1248 1 l 287 -483 l 37 22 l -287 482 z" }), G("path", { className: "styled current_color", d: "M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 400 405 l 471 -585 l 921 667 v -665 m 0 1024 v -306 l -913 -662 l -476 591 l -403 -408 v 785 z" })] }), Jo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 640 v 926 l -641 -554 l -618 703 l -576 -575 v 780 h 1835 v 43 h -1878 v -1878 h 43 v 353 l 576 577 l 661 -704 l 276 329 z" }), G("path", { className: "styled background", d: "M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z" }), G("path", { className: "styled info_light", d: "M 1963 1536 l -641 -555 l -618 704 l -597 -597 v -640 l 597 597 l 661 -704 l 269 319 h 329 z" }), G("path", { className: "styled info_dark", d: "M 1963 640 v 43 h -342 l -258 -310 l -659 702 l -597 -598 v -60 l 597 598 l 661 -704 l 276 329 m 322 866 v 60 l -641 -554 l -618 703 l -597 -597 v -62 l 597 599 l 618 -704 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), Qo = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 85 v 1878 h -1878 v -1878 m 1835 1524 l -788 -746 l -576 662 l -428 -428 v 823 h 1792 z" }), G("path", { className: "styled background", d: "M 1941 1941 h -1834 v -1834 h 1834 z" }), G("path", { className: "styled current_color", d: "M 1963 85 v 1878 h -1878 v -1878 m 1835 43 h -1792 v 1792 h 1792 z" }), G("path", { className: "styled info_light", d: "M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z" }), G("path", { className: "styled info_dark", d: "M 1963 1649 l -831 -786 l -576 662 l -471 -467 v -973 h 1878 m -43 1465 v -1422 h -1792 v 908 l 426 426 l 575 -661 z" })] }), en = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 m 768 384 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z" }), G("path", { className: "styled background", d: "M 1195 1344 q 22 0 42 9 q 19 8 33 23 q 14 14 23 34 q 8 19 8 41 q 0 45 -30 76 q -31 30 -76 30 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -14 -23 -33 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 m -427 -341 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m 939 -512 q 45 0 76 31 q 30 30 30 75 q 0 22 -8 42 q -9 19 -23 34 q -14 14 -33 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m -1323 -256 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 z" }), G("path", { className: "styled info", d: "M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z" })] }), tn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 l -7 2 q -26 93 -66 161 q -40 68 -88 116 q -48 47 -101 76 q -54 29 -108 44 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -115 -15 -221 -84 q -107 -69 -207 -190 q -36 91 -59 176 q -24 85 -38 152 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 15 -73 42 -167 q 26 -95 69 -195 q -48 -62 -94 -141 q -47 -80 -89 -168 q -43 -88 -80 -178 q -37 -91 -64 -176 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 19 59 48 135 q 29 75 67 158 q 37 82 84 167 q 47 85 103 163 q 33 -72 76 -141 q 42 -70 96 -131 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 5 0 9 1 q 3 0 7 0 q 1 -20 2 -40 q 0 -21 0 -43 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 q 18 113 27 215 q 8 102 8 193 q 0 25 0 48 q 0 23 -2 46 q 32 16 51 46 q 19 30 19 68 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 m -171 -1206 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 m -1408 86 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 354 -278 q 59 -80 92 -194 q -23 -4 -42 -15 q -19 -12 -33 -28 q -14 -17 -22 -38 q -8 -21 -8 -45 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -57 63 -101 136 q -44 73 -77 150 q 41 53 87 99 q 45 46 96 82 q 50 36 106 60 q 55 23 115 32 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 z" }), G("path", { className: "styled background", d: "M 1305 1497 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 m -890 -1072 q 0 23 -9 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -42 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 22 0 42 9 q 20 8 35 23 q 15 15 24 35 q 9 20 9 43 m 1317 -167 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 z" }), G("path", { className: "styled info", d: "M 1689 365 q 18 112 27 213 q 8 101 8 193 q 0 183 -35 322 q -35 138 -106 234 q -29 38 -60 67 q -32 29 -65 51 q -34 21 -68 36 q -35 14 -68 24 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -114 -15 -224 -87 q -110 -72 -211 -196 q -101 -125 -189 -299 q -89 -174 -160 -393 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 23 69 59 161 q 35 92 83 191 q 48 99 109 197 q 61 98 136 179 q 74 81 161 137 q 87 55 187 70 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 q 133 -178 133 -530 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 m -1476 62 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 341 -1323 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 z" }), G("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 q -14 3 -28 3 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -66 73 -115 161 q -49 87 -84 176 q -35 88 -58 172 q -24 83 -37 148 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 14 -67 38 -152 q 23 -86 59 -177 q 36 -92 87 -182 q 50 -90 118 -167 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 z" })] }), on = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1577 -902 q 93 215 93 547 q 0 88 -6 184 l -43 -3 q 3 -47 5 -92 q 2 -45 2 -88 q 0 -277 -68 -470 q -25 97 -65 167 q -40 70 -89 119 q -49 48 -104 78 q -55 29 -108 46 q -54 16 -103 22 q -49 5 -87 5 q -74 0 -141 -21 q -68 -21 -129 -58 q -62 -37 -116 -88 q -55 -51 -104 -111 q -39 93 -64 181 q -25 88 -40 157 q -15 69 -21 112 q -6 42 -6 44 l -42 -4 q 0 -2 7 -48 q 6 -46 23 -120 q 16 -74 44 -168 q 27 -94 70 -192 q -60 -79 -109 -167 q -50 -88 -90 -174 q -40 -86 -70 -164 q -30 -79 -50 -141 q -21 -62 -32 -102 q -11 -40 -13 -47 l 42 -11 q 0 2 10 37 q 10 35 29 93 q 19 58 48 135 q 28 76 66 160 q 38 83 86 170 q 47 86 104 165 q 45 -96 106 -184 q 61 -89 142 -156 q 80 -68 181 -108 q 101 -40 227 -40 q 3 0 22 2 q 19 1 49 9 q 30 8 68 25 q 38 16 80 46 q 41 29 83 75 q 42 46 80 112 q 5 -42 8 -87 q 2 -45 2 -93 q 0 -243 -64 -562 l 42 -8 q 65 325 65 569 q 0 68 -5 130 q -5 61 -15 117 m -156 283 q 79 -106 111 -275 q -33 -74 -72 -125 q -40 -51 -81 -84 q -41 -34 -80 -52 q -39 -19 -69 -27 q -31 -9 -49 -11 q -19 -2 -20 -2 q -121 0 -218 41 q -97 40 -173 107 q -77 67 -135 155 q -58 87 -101 181 q 47 60 100 112 q 53 51 112 89 q 58 37 123 59 q 65 21 136 21 q 45 0 99 -7 q 54 -7 110 -27 q 55 -21 109 -58 q 54 -37 98 -97 z" }), G("path", { className: "styled info", d: "M 1792 1749 l -43 -3 q 6 -93 6 -178 q 0 -244 -51 -422 q -51 -179 -152 -287 q -47 -49 -93 -76 q -46 -28 -83 -40 q -38 -13 -62 -15 q -24 -3 -25 -3 q -124 0 -223 44 q -99 43 -177 114 q -78 71 -136 162 q -58 90 -100 186 q -42 95 -69 187 q -28 91 -44 164 q -16 72 -22 118 q -7 46 -7 49 l -42 -4 q 0 -3 5 -34 q 4 -32 14 -84 q 10 -52 27 -120 q 17 -68 43 -144 q 25 -76 60 -156 q 35 -80 82 -155 q 46 -76 105 -143 q 58 -67 131 -117 q 73 -51 161 -80 q 88 -29 193 -29 q 3 0 30 3 q 27 2 69 16 q 41 14 92 44 q 51 30 102 84 q 216 231 216 735 q 0 45 -2 91 q -2 45 -5 93 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1004 -387 q -111 0 -207 -46 q -97 -46 -179 -121 q -83 -75 -151 -172 q -68 -97 -122 -199 q -55 -102 -96 -201 q -41 -99 -68 -178 q -28 -80 -43 -132 q -15 -53 -17 -62 l 42 -11 q 1 2 14 50 q 13 47 40 124 q 26 76 66 173 q 39 96 91 197 q 52 101 118 197 q 65 96 144 171 q 79 75 171 121 q 92 46 197 46 q 45 0 99 -7 q 54 -7 110 -27 q 56 -21 110 -58 q 54 -37 98 -97 q 133 -180 133 -528 q 0 -121 -16 -261 q -16 -141 -48 -302 l 42 -8 q 65 325 65 569 q 0 364 -142 556 q -50 67 -111 108 q -62 40 -123 62 q -62 22 -119 29 q -57 7 -98 7 z" })] }), nn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 213 342 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 361 762 l 165 -282 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 78 89 l 449 -570 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -258 814 l 410 467 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 l 70 565 l -482 -549 l -46 145 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 53 -166 l -189 -214 l -295 375 l -69 -146 l -147 251 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 166 -283 l -375 -789 q -14 3 -28 3 m 982 1109 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1323 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 m -105 275 l -401 509 l 176 200 m -355 -301 l -187 301 l 52 129 l 258 -327 l -93 -106 q -15 3 -30 3 m -638 -683 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 z" }), G("path", { className: "styled background", d: "M 1771 296 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -35 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 m -1320 7 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -34 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -35 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 15 -15 35 -23 q 19 -9 41 -9 q 22 0 42 9 q 19 8 34 23 q 14 14 23 34 q 8 19 8 41 m 902 1232 q 0 23 -8 43 q -9 19 -23 34 q -15 14 -35 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -43 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 z" }), G("path", { className: "styled info", d: "M 1664 171 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -319 1008 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 293 -923 l -724 918 l -466 -982 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 435 919 l 734 -932 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m -1323 213 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 m 982 1152 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1152 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 z" }), G("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1636 1182 l 70 565 l -825 -939 q -15 3 -30 3 l -360 615 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 357 -609 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 726 826 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 z" })] }), ln = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1503 1457 l -10 61 l -42 -6 l 16 -96 l -334 -380 l -309 389 l -72 -147 l -248 421 l -37 -21 l 262 -446 l -463 -951 l 39 -18 l 451 925 l 227 -387 l 149 168 l 564 -710 l -184 1143 l 263 299 l -68 -525 l 42 -5 l 83 661 m -728 -828 l -114 -130 l -212 360 l 54 112 m 644 14 l 155 -951 l -471 593 m 803 918 v 43 h -1878 v -1878 h 43 v 1835 z" }), G("path", { className: "styled info", d: "M 1493 1518 l -42 -6 l 180 -1103 l -807 1016 l -558 -1144 l 39 -18 l 527 1083 l 864 -1087 z" }), G("path", { className: "styled current_color", d: "M 1832 1832 l -842 -958 l -486 825 l -37 -21 l 516 -877 l 792 900 l -68 -525 l 42 -5 m 214 749 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), rn = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), an = (e2) => Z("svg", { viewBox: "0,0,2048,2048", ...e2, children: [G("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), G("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), G("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), G("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), G("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), G("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), G("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), sn = he(null);
|
|
3103
|
+
sn.displayName = "DocThemesContext";
|
|
3104
|
+
const dn = (e2) => {
|
|
3105
3105
|
const { themes: t2, children: o2 } = e2;
|
|
3106
|
-
return G(
|
|
3107
|
-
},
|
|
3108
|
-
const e2 =
|
|
3109
|
-
return
|
|
3110
|
-
},
|
|
3111
|
-
let
|
|
3112
|
-
const
|
|
3106
|
+
return G(sn.Provider, { value: t2, children: o2 });
|
|
3107
|
+
}, cn = () => {
|
|
3108
|
+
const e2 = me(sn), [t2] = ne(() => new y());
|
|
3109
|
+
return oe(() => e2 || t2, [e2]);
|
|
3110
|
+
}, gn = "_script-editor_iy654_5", un = { lightbulb: { enabled: false }, tabSize: 2, acceptSuggestionOnCommitCharacter: true, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: true, autoIndent: false, codeLens: true, colorDecorators: true, contextmenu: true, cursorBlinking: "blink", cursorSmoothCaretAnimation: false, cursorStyle: "line", disableLayerHinting: false, disableMonospaceOptimizations: false, dragAndDrop: true, glyphMargin: true, fixedOverflowWidgets: false, folding: true, foldingStrategy: "auto", fontLigatures: false, formatOnPaste: true, formatOnType: false, hideCursorInOverviewRuler: false, highlightActiveIndentGuide: true, links: true, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: false, multiCursorMergeOverlapping: true, multiCursorModifier: "alt", overviewRulerBorder: true, overviewRulerLanes: 2, quickSuggestions: true, quickSuggestionsDelay: 100, readOnly: false, renderControlCharacters: false, renderFinalNewline: true, renderIndentGuides: true, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: true, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: true, selectOnLineNumbers: true, selectionClipboard: true, selectionHighlight: true, showLightbulbIconMode: false, showFoldingControls: "mouseover", smoothScrolling: true, suggestOnTriggerCharacters: true, wordBasedSuggestions: true, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: true, wrappingIndent: "none" }, hn = ee.lazy(() => import("@monaco-editor/react"));
|
|
3111
|
+
let mn, pn, fn = ["define", "require"], wn = false;
|
|
3112
|
+
const qn = async (e2, t2, o2) => {
|
|
3113
3113
|
const n2 = e2.getModel();
|
|
3114
3114
|
if (!n2) return;
|
|
3115
3115
|
const l2 = await t2.languages.typescript.getTypeScriptWorker(), r2 = await l2(n2.uri), i2 = await r2.getNavigationTree(n2.uri.toString()), a2 = e2.getPosition();
|
|
@@ -3118,8 +3118,8 @@ const wn = async (e2, t2, o2) => {
|
|
|
3118
3118
|
let d2 = false;
|
|
3119
3119
|
for (let e3 = a2.lineNumber; e3 >= 1; e3--) {
|
|
3120
3120
|
if ("" === n2.getLineContent(e3).trim()) {
|
|
3121
|
-
const t3 =
|
|
3122
|
-
if (!t3 ||
|
|
3121
|
+
const t3 = Cn(i2, n2.getOffsetAt({ lineNumber: e3, column: 1 }), "function");
|
|
3122
|
+
if (!t3 || bn(t3)) {
|
|
3123
3123
|
d2 = true, s2.lineNumber = e3 + 1;
|
|
3124
3124
|
break;
|
|
3125
3125
|
}
|
|
@@ -3137,7 +3137,7 @@ const wn = async (e2, t2, o2) => {
|
|
|
3137
3137
|
let m2 = null;
|
|
3138
3138
|
n2.pushEditOperations([], h2, (e3) => (m2 = e3[0].range, g2 && m2.startLineNumber++, u2 && m2.endLineNumber--, [new t2.Selection(m2.startLineNumber, m2.startColumn, m2.endLineNumber, m2.endColumn)])), e2.setSelection({ startLineNumber: m2.endLineNumber, startColumn: m2.endColumn, endLineNumber: m2.startLineNumber, endColumn: m2.startColumn });
|
|
3139
3139
|
};
|
|
3140
|
-
function
|
|
3140
|
+
function vn(e2, t2) {
|
|
3141
3141
|
let o2 = null;
|
|
3142
3142
|
const n2 = e2.length;
|
|
3143
3143
|
for (let l2 = 0; !o2 && l2 < n2; l2++) {
|
|
@@ -3146,33 +3146,33 @@ function qn(e2, t2) {
|
|
|
3146
3146
|
}
|
|
3147
3147
|
return o2 ? o2.getContext() : "formula";
|
|
3148
3148
|
}
|
|
3149
|
-
function
|
|
3149
|
+
function yn(e2, t2, o2, n2, l2 = []) {
|
|
3150
3150
|
if ("function" === n2.kind && "export" === n2.kindModifiers) {
|
|
3151
3151
|
const t3 = n2.spans[0].start, r2 = e2.getPositionAt(t3);
|
|
3152
|
-
l2.push({ name: n2.text, type:
|
|
3152
|
+
l2.push({ name: n2.text, type: vn(o2, n2), lineNumber: r2.lineNumber });
|
|
3153
3153
|
}
|
|
3154
|
-
if (n2.childItems) for (const r2 of n2.childItems)
|
|
3154
|
+
if (n2.childItems) for (const r2 of n2.childItems) yn(e2, t2, o2, r2, l2);
|
|
3155
3155
|
return l2;
|
|
3156
3156
|
}
|
|
3157
|
-
function
|
|
3157
|
+
function Cn(e2, t2, o2 = "function", n2) {
|
|
3158
3158
|
const l2 = e2.spans, r2 = l2.length;
|
|
3159
3159
|
for (let i2 = 0; i2 < r2; i2++) {
|
|
3160
3160
|
const r3 = l2[i2];
|
|
3161
3161
|
if (r3.start <= t2 && t2 < r3.start + r3.length) {
|
|
3162
3162
|
if (e2.kind === o2 && (!n2 || e2.kindModifiers === n2)) return e2;
|
|
3163
3163
|
for (const l3 of e2.childItems || []) {
|
|
3164
|
-
const e3 =
|
|
3164
|
+
const e3 = Cn(l3, t2, o2, n2);
|
|
3165
3165
|
if (e3) return e3;
|
|
3166
3166
|
}
|
|
3167
3167
|
}
|
|
3168
3168
|
return null;
|
|
3169
3169
|
}
|
|
3170
3170
|
}
|
|
3171
|
-
function
|
|
3171
|
+
function bn(e2) {
|
|
3172
3172
|
return "comment" === e2.kind;
|
|
3173
3173
|
}
|
|
3174
|
-
const
|
|
3175
|
-
const { className: o2, style: n2, commands: l2, readOnly: r2 = false, onClose: i2, darkMode: a2, loadingPanel: s2, autoFocus: d2 = true, onStatusChange: c2, ...g2 } = e2, u2 =
|
|
3174
|
+
const Sn = te(le((e2, t2) => {
|
|
3175
|
+
const { className: o2, style: n2, commands: l2, readOnly: r2 = false, onClose: i2, darkMode: a2, loadingPanel: s2, autoFocus: d2 = true, onStatusChange: c2, ...g2 } = e2, u2 = re(null), h2 = S(i2, [i2]), m2 = re(false), p2 = oe(() => ({ contains(e3) {
|
|
3176
3176
|
if (!u2.current) return;
|
|
3177
3177
|
const t3 = u2.current.editor;
|
|
3178
3178
|
return t3 && t3.getDomNode()?.contains(e3);
|
|
@@ -3180,12 +3180,12 @@ const bn = ee(ne((e2, t2) => {
|
|
|
3180
3180
|
if (!u2.current) return;
|
|
3181
3181
|
const e3 = u2.current.editor;
|
|
3182
3182
|
return e3 && e3.getDomNode()?.focus();
|
|
3183
|
-
} }), []), f2 =
|
|
3184
|
-
})], []), w2 =
|
|
3183
|
+
} }), []), f2 = oe(() => [new R("help", p2, { label: "Script Commands", description: "Open Editor Commands", shortcut: { key: "F1" } }, () => {
|
|
3184
|
+
})], []), w2 = oe(() => {
|
|
3185
3185
|
let e3 = null;
|
|
3186
3186
|
const t3 = () => p2;
|
|
3187
3187
|
return e3 = l2 ? l2.createChildGroup(t3, "scriptEditor", false) : new T(t3, "scriptEditor"), e3.addCommands(f2, true), e3;
|
|
3188
|
-
}, [l2, f2]), q2 =
|
|
3188
|
+
}, [l2, f2]), q2 = I(w2, ["executeSelectedScript", "saveScripts"]), v2 = q2[0], y2 = q2[1], C2 = v2?.context(), [x2, k2] = ne({ message: "Loading", cursor: "", dirty: false }), [M2, A2] = ne({ loading: false, compiling: false, errors: [], warnings: [] }), z2 = S((e3) => {
|
|
3189
3189
|
k2((t3) => {
|
|
3190
3190
|
const o3 = { ...t3, ...e3 };
|
|
3191
3191
|
return K.deepEqual(o3, t3) ? t3 : (y2.update({ disabled: !o3.dirty }).updateCallback(async () => {
|
|
@@ -3193,7 +3193,7 @@ const bn = ee(ne((e2, t2) => {
|
|
|
3193
3193
|
}), o3);
|
|
3194
3194
|
});
|
|
3195
3195
|
}, [c2, y2]);
|
|
3196
|
-
|
|
3196
|
+
ie(() => {
|
|
3197
3197
|
c2?.(x2);
|
|
3198
3198
|
}, [c2, x2]);
|
|
3199
3199
|
const F2 = S(async () => {
|
|
@@ -3208,13 +3208,13 @@ const bn = ee(ne((e2, t2) => {
|
|
|
3208
3208
|
} else t3 = C2?.getScripts().getModules().getByName("scripts");
|
|
3209
3209
|
return t3;
|
|
3210
3210
|
}, [x2]);
|
|
3211
|
-
|
|
3211
|
+
ie(() => {
|
|
3212
3212
|
const e3 = C2?.getScripts();
|
|
3213
3213
|
if (e3) return e3.addListeners({ onBeforeSearch: () => F2() });
|
|
3214
3214
|
}, [C2]);
|
|
3215
3215
|
const E2 = S((e3) => {
|
|
3216
3216
|
v2?.execute(e3);
|
|
3217
|
-
}, [v2]),
|
|
3217
|
+
}, [v2]), D2 = re(""), [N2, V2] = ne(false), L2 = S(async () => {
|
|
3218
3218
|
if (!u2.current) return null;
|
|
3219
3219
|
const e3 = u2.current, t3 = e3.editor;
|
|
3220
3220
|
if (!t3) return null;
|
|
@@ -3225,7 +3225,7 @@ const bn = ee(ne((e2, t2) => {
|
|
|
3225
3225
|
let a3 = null, s3 = e4.getSelection();
|
|
3226
3226
|
const d3 = s3.startLineNumber === s3.endLineNumber && s3.startColumn === s3.endColumn ? n4.getLineCount() : Math.min(s3.endLineNumber, n4.getLineCount());
|
|
3227
3227
|
for (let e5 = s3.startLineNumber; !a3 && e5 <= d3; e5++) {
|
|
3228
|
-
const t5 =
|
|
3228
|
+
const t5 = Cn(i3, n4.getOffsetAt({ lineNumber: e5, column: 1 }), "function", o4);
|
|
3229
3229
|
t5 && (a3 = t5.text);
|
|
3230
3230
|
}
|
|
3231
3231
|
return a3;
|
|
@@ -3233,7 +3233,7 @@ const bn = ee(ne((e2, t2) => {
|
|
|
3233
3233
|
return z2({ message: (n3 ?? "").toUpperCase() }), n3 ? { source: t3.getValue(), name: n3 } : null;
|
|
3234
3234
|
}, []);
|
|
3235
3235
|
S(K.debounce(F2, 200), []);
|
|
3236
|
-
const
|
|
3236
|
+
const H2 = S(async (e3, t3, o3) => {
|
|
3237
3237
|
A2((e4) => ({ ...e4, compiling: true }));
|
|
3238
3238
|
const n3 = await C2?.getScripts().createModule({ source: o3?.getValue(), declarationsOnly: true });
|
|
3239
3239
|
if (!n3) return;
|
|
@@ -3246,30 +3246,30 @@ const bn = ee(ne((e2, t2) => {
|
|
|
3246
3246
|
t4.editor.setModelMarkers(e4, "owner", o4);
|
|
3247
3247
|
})(e3, t3);
|
|
3248
3248
|
!(async function(e4, t4, o4, n4) {
|
|
3249
|
-
const l3 = await t4.languages.typescript.getTypeScriptWorker(), r3 = await l3(e4.uri), i3 = await r3.getNavigationTree(e4.uri.toString()), a3 =
|
|
3249
|
+
const l3 = await t4.languages.typescript.getTypeScriptWorker(), r3 = await l3(e4.uri), i3 = await r3.getNavigationTree(e4.uri.toString()), a3 = yn(e4, t4, n4, i3).map((e5) => {
|
|
3250
3250
|
let o5 = null, n5 = null;
|
|
3251
3251
|
return "formula" === e5.type ? (o5 = "formula.margin-icon", n5 = "Formula") : "macro" === e5.type ? (o5 = "macro.margin-icon", n5 = "Macro") : "autoRun" === e5.type && (o5 = "autorun.margin-icon", n5 = "Auto Run"), { range: new t4.Range(e5.lineNumber, 1, e5.lineNumber, 1), options: { isWholeLine: false, glyphMarginClassName: o5, glyphMarginHoverMessage: { value: n5 }, stickiness: t4.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges } };
|
|
3252
3252
|
});
|
|
3253
3253
|
U2.current && U2.current.clear(), U2.current = o4.createDecorationsCollection(a3);
|
|
3254
3254
|
})(e3, t3, o3, n3 ? n3.getFunctions().getItems() : K.EmptyArray), A2((e4) => ({ ...e4, compiling: false }));
|
|
3255
|
-
}, [C2]), B2 = S(K.debounce(
|
|
3255
|
+
}, [C2]), B2 = S(K.debounce(H2, 580), []), O2 = S(async (e3 = void 0) => {
|
|
3256
3256
|
if (!u2.current || !C2) return;
|
|
3257
3257
|
const t3 = u2.current.editor.getPosition(), o3 = { cursor: t3 ? t3.toString() : "" };
|
|
3258
3258
|
void 0 !== e3 && (o3.message = e3), z2(o3);
|
|
3259
|
-
const n3 =
|
|
3259
|
+
const n3 = L2();
|
|
3260
3260
|
C2.setSelectedFunction(n3);
|
|
3261
3261
|
}, [C2]);
|
|
3262
|
-
|
|
3262
|
+
ie(() => {
|
|
3263
3263
|
}, [M2]);
|
|
3264
|
-
const P2 =
|
|
3264
|
+
const P2 = re(null), $2 = S(async () => {
|
|
3265
3265
|
await F2(), h2?.();
|
|
3266
3266
|
}, [h2]);
|
|
3267
|
-
|
|
3267
|
+
ie(() => {
|
|
3268
3268
|
if (!C2) return;
|
|
3269
3269
|
const e3 = { insertSnippet: (e4) => {
|
|
3270
|
-
u2.current?.editor &&
|
|
3270
|
+
u2.current?.editor && qn(u2.current.editor, u2.current.monaco, e4);
|
|
3271
3271
|
}, close: () => $2() };
|
|
3272
|
-
C2.setEditor(e3), C2.setSelectedFunction(
|
|
3272
|
+
C2.setEditor(e3), C2.setSelectedFunction(L2());
|
|
3273
3273
|
const t3 = C2.addContainerListener({ onBeforeSave: async () => {
|
|
3274
3274
|
F2();
|
|
3275
3275
|
}, onReadonlyChange() {
|
|
@@ -3281,7 +3281,7 @@ const bn = ee(ne((e2, t2) => {
|
|
|
3281
3281
|
return () => {
|
|
3282
3282
|
C2.setEditor(null), t3();
|
|
3283
3283
|
};
|
|
3284
|
-
}, [C2]),
|
|
3284
|
+
}, [C2]), ie(() => () => {
|
|
3285
3285
|
const e3 = P2.current;
|
|
3286
3286
|
if (e3) {
|
|
3287
3287
|
e3.dispose();
|
|
@@ -3292,7 +3292,7 @@ const bn = ee(ne((e2, t2) => {
|
|
|
3292
3292
|
const W2 = S((e3) => {
|
|
3293
3293
|
const t3 = u2.current?.editor;
|
|
3294
3294
|
return !!t3 && (t3.focus(e3), true);
|
|
3295
|
-
}, [x2]), U2 =
|
|
3295
|
+
}, [x2]), U2 = re(null), _2 = S((e3, t3) => {
|
|
3296
3296
|
u2.current = { monaco: t3, editor: e3 }, V2(true), O2("Loading Types");
|
|
3297
3297
|
const o3 = C2.getScripts().getModules().getItems()[0]?.getSource() ?? "";
|
|
3298
3298
|
e3.setValue(o3), import("monaco-editor-auto-typings/custom-editor.js").then(async (o4) => {
|
|
@@ -3308,7 +3308,7 @@ const bn = ee(ne((e2, t2) => {
|
|
|
3308
3308
|
P2.current = o5;
|
|
3309
3309
|
const n4 = e3.getModel();
|
|
3310
3310
|
B2(n4, t3, e3), (() => {
|
|
3311
|
-
if (
|
|
3311
|
+
if (wn) return;
|
|
3312
3312
|
const e4 = (e5, t5) => {
|
|
3313
3313
|
try {
|
|
3314
3314
|
if (void 0 === t5) try {
|
|
@@ -3322,18 +3322,18 @@ const bn = ee(ne((e2, t2) => {
|
|
|
3322
3322
|
else globalThis[e5] = t5;
|
|
3323
3323
|
} catch (e6) {
|
|
3324
3324
|
}
|
|
3325
|
-
}, t4 =
|
|
3325
|
+
}, t4 = fn.length;
|
|
3326
3326
|
for (let o6 = 0; o6 < t4; o6++) {
|
|
3327
|
-
const t5 =
|
|
3328
|
-
e4(t5,
|
|
3327
|
+
const t5 = fn[o6];
|
|
3328
|
+
e4(t5, mn[t5]);
|
|
3329
3329
|
}
|
|
3330
|
-
|
|
3330
|
+
mn = void 0, wn = true;
|
|
3331
3331
|
})();
|
|
3332
3332
|
});
|
|
3333
3333
|
}), e3.addCommand("executeScript", function(e4, ...t4) {
|
|
3334
3334
|
t4?.[0] && E2({ functionName: t4?.[0] });
|
|
3335
3335
|
}, ""), e3.addAction({ id: "executeScript", label: "Execute", keybindings: [t3.KeyCode.F8], run: async (e4) => {
|
|
3336
|
-
const t4 =
|
|
3336
|
+
const t4 = L2();
|
|
3337
3337
|
C2.setSelectedFunction(t4);
|
|
3338
3338
|
const o4 = await t4;
|
|
3339
3339
|
E2(o4);
|
|
@@ -3341,7 +3341,7 @@ const bn = ee(ne((e2, t2) => {
|
|
|
3341
3341
|
F2();
|
|
3342
3342
|
} }), e3.onMouseDown(async (e4) => {
|
|
3343
3343
|
if (e4.target.type === t3.editor.MouseTargetType.GUTTER_GLYPH_MARGIN) {
|
|
3344
|
-
const o4 = e4.target.position.lineNumber, l3 = await t3.languages.typescript.getTypeScriptWorker(), r3 = await l3(n3.uri), i3 = await r3.getNavigationTree(n3.uri.toString()), a3 = (await F2()).getFunctions().getItems(), s3 =
|
|
3344
|
+
const o4 = e4.target.position.lineNumber, l3 = await t3.languages.typescript.getTypeScriptWorker(), r3 = await l3(n3.uri), i3 = await r3.getNavigationTree(n3.uri.toString()), a3 = (await F2()).getFunctions().getItems(), s3 = yn(n3, t3, a3, i3).find((e5) => e5.lineNumber === o4);
|
|
3345
3345
|
if (s3) {
|
|
3346
3346
|
const t4 = e4.event.browserEvent.button;
|
|
3347
3347
|
0 === t4 ? "macro" === s3.type || "autoRun" === s3.type ? E2({ functionName: s3.name }) : "formula" === s3.type && C2.quickInsertFunction?.(s3.name) : 2 === t4 && (console.log("Context menu for function:", s3.name), e4.event.browserEvent.preventDefault());
|
|
@@ -3369,26 +3369,26 @@ const bn = ee(ne((e2, t2) => {
|
|
|
3369
3369
|
}), e3.onDidChangeCursorPosition((e4) => {
|
|
3370
3370
|
O2();
|
|
3371
3371
|
});
|
|
3372
|
-
}, [C2]), j2 =
|
|
3372
|
+
}, [C2]), j2 = oe(() => N2 ? null : s2 || G("div", { style: { position: "absolute", width: "100%", height: "100%" }, children: "Loading..." }), [N2, s2]), X2 = oe(() => {
|
|
3373
3373
|
if (!N2) {
|
|
3374
|
-
if (!
|
|
3375
|
-
|
|
3376
|
-
const e4 =
|
|
3374
|
+
if (!mn) {
|
|
3375
|
+
mn = {};
|
|
3376
|
+
const e4 = fn.length;
|
|
3377
3377
|
for (let t3 = 0; t3 < e4; t3++) {
|
|
3378
|
-
const e5 =
|
|
3379
|
-
|
|
3378
|
+
const e5 = fn[t3];
|
|
3379
|
+
mn[e5] = globalThis[e5];
|
|
3380
3380
|
}
|
|
3381
3381
|
}
|
|
3382
|
-
if (
|
|
3383
|
-
const e4 =
|
|
3382
|
+
if (pn) {
|
|
3383
|
+
const e4 = fn.length;
|
|
3384
3384
|
for (let t3 = 0; t3 < e4; t3++) {
|
|
3385
|
-
const e5 =
|
|
3386
|
-
globalThis[e5] =
|
|
3385
|
+
const e5 = fn[t3];
|
|
3386
|
+
globalThis[e5] = pn[e5];
|
|
3387
3387
|
}
|
|
3388
3388
|
}
|
|
3389
3389
|
}
|
|
3390
3390
|
const e3 = C2?.getScripts().getModules().getByName("scripts")?.getSource() ?? "";
|
|
3391
|
-
return Z("div", { style: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: [G(
|
|
3391
|
+
return Z("div", { style: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: [G(ce, { children: G(hn, { theme: a2 ? "extended-dark" : "extended", options: { ...un, fixedOverflowWidgets: true, readOnly: r2 }, language: "typescript", value: e3, onValidate: (e4) => {
|
|
3392
3392
|
let t3 = false;
|
|
3393
3393
|
const o3 = e4 ? e4.length : 0;
|
|
3394
3394
|
for (let n3 = 0; !t3 && n3 < o3; n3++) 8 === e4[n3].severity && (t3 = true);
|
|
@@ -3398,7 +3398,7 @@ const bn = ee(ne((e2, t2) => {
|
|
|
3398
3398
|
let t3 = false, o3 = false;
|
|
3399
3399
|
try {
|
|
3400
3400
|
const n3 = await (async () => {
|
|
3401
|
-
const e5 = await fetch("https://cdn.jsdelivr.net/npm/@sheetxl/sdk@0.7.
|
|
3401
|
+
const e5 = await fetch("https://cdn.jsdelivr.net/npm/@sheetxl/sdk@0.7.5/types/scripting.d.ts");
|
|
3402
3402
|
return await e5.text();
|
|
3403
3403
|
})(), l3 = e4.Uri.parse('inmemory://model/"sheetxl-models".d.ts');
|
|
3404
3404
|
let r3 = e4.editor.getModel(l3);
|
|
@@ -3441,14 +3441,14 @@ const bn = ee(ne((e2, t2) => {
|
|
|
3441
3441
|
const t4 = e4.languages.typescript.typescriptDefaults.getCompilerOptions();
|
|
3442
3442
|
e4.languages.typescript.typescriptDefaults.setCompilerOptions({ ...t4, target: e4.languages.typescript.ScriptTarget.ES2020, lib: ["webworker", "es2020", "esnext.asynciterable"], downlevelIteration: true, moduleResolution: e4.languages.typescript.ModuleResolutionKind.NodeJs, allowSyntheticDefaultImports: true, baseUrl: "inmemory://model/", allowNonTsExtensions: true });
|
|
3443
3443
|
}
|
|
3444
|
-
if (
|
|
3444
|
+
if (D2.current && (await qn(u2.current.editor, u2.current.monaco, D2.current), D2.current = null), m2.current && requestAnimationFrame(async () => {
|
|
3445
3445
|
m2.current && e4.editor.focus();
|
|
3446
|
-
}), !
|
|
3447
|
-
|
|
3448
|
-
const e5 =
|
|
3446
|
+
}), !pn) {
|
|
3447
|
+
pn = {};
|
|
3448
|
+
const e5 = fn.length;
|
|
3449
3449
|
for (let t4 = 0; t4 < e5; t4++) {
|
|
3450
|
-
const e6 =
|
|
3451
|
-
|
|
3450
|
+
const e6 = fn[t4];
|
|
3451
|
+
pn[e6] = globalThis[e6];
|
|
3452
3452
|
}
|
|
3453
3453
|
}
|
|
3454
3454
|
})();
|
|
@@ -3456,71 +3456,71 @@ const bn = ee(ne((e2, t2) => {
|
|
|
3456
3456
|
}, [C2, w2, r2, j2, a2]), Y2 = b(t2, () => ({ isScriptEditorElement: () => true, focus: (e3) => {
|
|
3457
3457
|
W2(e3);
|
|
3458
3458
|
}, close: () => $2(), getEditor: () => C2?.getEditor() }), [C2]);
|
|
3459
|
-
return
|
|
3459
|
+
return ie(() => (d2 && requestAnimationFrame(() => {
|
|
3460
3460
|
Y2.current?.focus();
|
|
3461
3461
|
}), () => {
|
|
3462
3462
|
u2.current?.editor && requestAnimationFrame(() => {
|
|
3463
3463
|
Y2.current?.contains(document.activeElement) && Y2.current?.focus();
|
|
3464
3464
|
});
|
|
3465
|
-
}), []), G("div", { className:
|
|
3465
|
+
}), []), G("div", { className: Te("script-editor", gn, o2), style: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", ...n2 }, ref: Y2, ...g2, children: X2 });
|
|
3466
3466
|
}));
|
|
3467
3467
|
export {
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3468
|
+
Yo as ChartAreaIcon,
|
|
3469
|
+
Jo as ChartAreaStackedIcon,
|
|
3470
|
+
Qo as ChartAreaStackedPercentIcon,
|
|
3471
|
+
jo as ChartBarIcon,
|
|
3472
|
+
Ko as ChartBarStackedIcon,
|
|
3473
|
+
Xo as ChartBarStackedPercentIcon,
|
|
3474
|
+
an as ChartBubble3DIcon,
|
|
3475
|
+
rn as ChartBubbleIcon,
|
|
3476
|
+
Lo as ChartColumnIcon,
|
|
3477
3477
|
Ho as ChartColumnStackedIcon,
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3478
|
+
Bo as ChartColumnStackedPercentIcon,
|
|
3479
|
+
vo as ChartEditor,
|
|
3480
|
+
Oo as ChartLineIcon,
|
|
3481
|
+
Wo as ChartLineMarkersIcon,
|
|
3482
|
+
Po as ChartLineStackedIcon,
|
|
3483
|
+
Uo as ChartLineStackedMarkersIcon,
|
|
3484
|
+
$o as ChartLineStackedPercentIcon,
|
|
3485
|
+
_o as ChartLineStackedPercentMarkersIcon,
|
|
3486
|
+
Zo as ChartPieDoughnutIcon,
|
|
3487
|
+
Go as ChartPieIcon,
|
|
3488
|
+
ln as ChartScatterLinesIcon,
|
|
3489
|
+
nn as ChartScatterLinesMarkersIcon,
|
|
3490
|
+
tn as ChartScatterLinesMarkersSmoothIcon,
|
|
3491
|
+
on as ChartScatterLinesSmoothIcon,
|
|
3492
|
+
en as ChartScatterMarkersIcon,
|
|
3493
|
+
fo as CommandContext,
|
|
3494
|
+
Qe as CornerTriangle,
|
|
3495
|
+
Ke as DateUtils,
|
|
3496
|
+
sn as DocThemesContext,
|
|
3497
|
+
dn as DocThemesProvider,
|
|
3498
|
+
bo as EditableLabel,
|
|
3499
|
+
to as EmptyFrame,
|
|
3500
|
+
et as FilterButton,
|
|
3501
|
+
Je as FontUtils,
|
|
3502
|
+
ko as Item,
|
|
3503
3503
|
LicenseManager,
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3504
|
+
Vo as LogoNoPaddingIcon,
|
|
3505
|
+
yt as LogoTextNoPaddingIcon,
|
|
3506
|
+
Yt as MovableArea,
|
|
3507
|
+
qo as PictureEditor,
|
|
3508
|
+
Mo as Row,
|
|
3509
|
+
Sn as ScriptEditor,
|
|
3510
|
+
rt as SheetCellEditor,
|
|
3511
|
+
tt as SheetCellRenderer,
|
|
3512
|
+
po as SheetElement,
|
|
3513
|
+
Rt as SheetScrollbar,
|
|
3514
|
+
wt as StaticBorderRenderer,
|
|
3515
|
+
at as StyledStrokePath,
|
|
3516
|
+
So as Tab,
|
|
3517
|
+
No as TabStrip,
|
|
3518
|
+
it as createCellEditStateFromCell,
|
|
3519
|
+
gt as useBordersOverlay,
|
|
3520
|
+
cn as useDocThemes,
|
|
3521
|
+
bt as useModelListener,
|
|
3522
|
+
eo as useMovableCommands,
|
|
3523
|
+
St as useRangeListener,
|
|
3524
|
+
kt as useSheetCommands,
|
|
3525
|
+
Lt as useSheetCopyPaste
|
|
3526
3526
|
};
|