@sheetxl/react 0.7.10 → 0.7.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{VFRQg8FZV_WVL_R4.cjs → B_dNzJwmNg0l7aiE.cjs} +1 -1
- package/browser/cjs/{piG12-wpqxm1oEwu.cjs → CrDRRf0go49nXoDF.cjs} +1 -1
- package/browser/cjs/{DYlds16R5NgbFoDY.cjs → DjhtGFvIJtPcjvpm.cjs} +1 -1
- package/browser/cjs/index.cjs +12 -12
- package/browser/esm/{brepQl9chvnxkyvA.mjs → C-o0e1wIN0bZuaVF.mjs} +1 -1
- package/browser/esm/{CS57off-E_z-Vv6y.mjs → CYv_wYuSWlgR0fhz.mjs} +1 -1
- package/browser/esm/{B1tB7536-kpgAFmj.mjs → DATkvhXgjy8Utnd3.mjs} +1 -1
- package/browser/esm/index.mjs +1681 -1678
- package/node/esm/{BfC4GU1CZv1WvCN3.mjs → BaxwbShUvlIREQtz.mjs} +1 -1
- package/node/esm/index.mjs +923 -920
- package/package.json +5 -5
- package/types/index.d.ts +1 -1
package/node/esm/index.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
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.12
|
|
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
|
-
import { FormulaError as e, NumberFormat as t, ICell as o, IBorder as n, ITextFrame as
|
|
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 v, CoordUtils as q, 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 T, KeyModifiers as R, CommandGroup as M, useCopyPaste as A, DynamicIcon as z, useNotifier as F, useEditMode as D, useGlobalClipboard as
|
|
9
|
+
import { ReactUtils as C, useImperativeElement as b, useCallbackRef as S, KeyCodes as x, SimpleCommand as k, Command as T, KeyModifiers as R, CommandGroup as M, useCopyPaste as A, DynamicIcon as z, useNotifier as F, useEditMode as D, useGlobalClipboard as E, NotifierType as I, useCommands as N, ScrollbarOrientation as H, VirtualScrollbar as P, MouseButtonCodes as V, ToolTipPlacement as L, HorizontalAlignment as B, ScrollPane as O, useFullscreenPortal as $, defaultCreateScrollStartButton as W, defaultCreateScrollEndButton as U, defaultCreateScrollEdgeButton as _, ScrollUtils as G } from "@sheetxl/utils-react";
|
|
10
10
|
export * from "@sheetxl/utils-react";
|
|
11
11
|
import { jsx as Z, jsxs as j, Fragment as K } from "react/jsx-runtime";
|
|
12
12
|
import { CommonUtils as X, AnchorLocation as Y, TypesUtils as J, CoordUtils as Q, Notifier as ee } from "@sheetxl/utils";
|
|
13
|
-
import te, { memo as oe, useMemo as ne, useState as
|
|
13
|
+
import te, { memo as oe, useMemo as ne, useState as le, forwardRef as re, useRef as ie, useEffect as ae, useLayoutEffect as se, useCallback as de, createContext as ce, useContext as ge, useReducer as ue, Suspense as he, createElement as me, useImperativeHandle as pe } from "react";
|
|
14
14
|
import { STANDARD_KEY_CHARS as fe, useSelection as we, useHeaderSelection as ve, HeaderRenderer as qe, Grid as ye, HeaderDivider as Ce, SELECTION_CLIP_INSETS as be, defaultSelectionRenderer as Se, useKeyboardEditorOverlay as xe, Selection as ke, SVGLine as Te } from "@sheetxl/grid-react";
|
|
15
15
|
import { mergeRefs as Re } from "react-merge-refs";
|
|
16
16
|
import { useMeasure as Me } from "react-use";
|
|
17
17
|
import Ae from "clsx";
|
|
18
18
|
import { unstable_batchedUpdates as ze, createPortal as Fe } from "react-dom";
|
|
19
19
|
import { useForkRef as De } from "rooks";
|
|
20
|
-
import { sortableKeyboardCoordinates as
|
|
20
|
+
import { sortableKeyboardCoordinates as Ee, arrayMove as Ie, rectSortingStrategy as Ne, SortableContext as He, useSortable as Pe, horizontalListSortingStrategy as Ve } from "@dnd-kit/sortable";
|
|
21
21
|
import { restrictToHorizontalAxis as Le } from "@dnd-kit/modifiers";
|
|
22
22
|
import { closestCenter as Be, defaultDropAnimation as Oe, useSensors as $e, useSensor as We, MouseSensor as Ue, TouchSensor as _e, KeyboardSensor as Ge, DndContext as Ze, DragOverlay as je } from "@dnd-kit/core";
|
|
23
23
|
const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object.freeze(Object.defineProperty({ __proto__: null, nowWithPrecision: Ke }, Symbol.toStringTag, { value: "Module" })), Ye = Object.freeze([8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 36, 48, 72]), Je = (e2, t2 = true, o2 = Ye) => {
|
|
@@ -28,38 +28,38 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
28
28
|
let n2 = X.findEqualOrGreater(o2, e2);
|
|
29
29
|
return t2 ? (o2[n2] === e2 && (n2 += 1), o2[n2] || (n2 -= 1), o2[n2]) : (n2 -= 1, o2[n2]);
|
|
30
30
|
}, Qe = Object.freeze(Object.defineProperty({ __proto__: null, DefaultFontSizes: Ye, findNextFontSize: Je }, Symbol.toStringTag, { value: "Module" })), et = oe((e2) => {
|
|
31
|
-
const { anchorLocation: t2 = Y.TopLeft, cellWidth: o2, cellHeight: n2, size:
|
|
31
|
+
const { anchorLocation: t2 = Y.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 === Y.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 === Y.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 === Y.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 === Y.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))), Z("svg", { width: `${o2}`, height: `${n2}`, viewBox: `0 0 ${o2} ${n2}`, style: { position: "absolute", width: `${o2}px`, height: `${n2}px`, pointerEvents: "none", ...d2 }, ...c2, children: Z("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
34
|
}), tt = (e2) => {
|
|
35
|
-
const { renderBounds: t2, darkMode: o2, zoom: n2, disabled:
|
|
35
|
+
const { renderBounds: t2, darkMode: o2, zoom: n2, disabled: l2, filter: r2, onFilterButtonMouseDown: i2, style: a2, ...s2 } = e2, d2 = ne(() => {
|
|
36
36
|
let e3 = null;
|
|
37
|
-
const t3 =
|
|
37
|
+
const t3 = r2.getSortField();
|
|
38
38
|
t3 && (e3 = t3.reverse);
|
|
39
|
-
const o3 =
|
|
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.4530672,10.134098 2.6725085,5.2978998 3.370275,4.5911648 7.4530672,8.7264777 11.530095,4.5911648 l 0.697764,0.706735M 7.4529247,10.134098 2.9086709,5.2978998 3.5719465,4.5911648 7.4529247,8.7264777 11.328423,4.5911648 l 0.663274,0.70673";
|
|
41
|
-
}, [
|
|
41
|
+
}, [r2]), [c2, g2] = le(false);
|
|
42
42
|
const u2 = Math.min(Math.min(18, t2.height - 8), t2.width);
|
|
43
|
-
return Z("div", { style: { width: `${u2}px`, height: `${u2}px`, right: "0px", boxShadow: `0px 0px 0px 0.5px var(${c2 && !
|
|
44
|
-
i2?.(e3,
|
|
45
|
-
}, ...s2, children: Z("svg", { width: "" + 15 * n2, height: "" + 15 * n2, viewBox: "0 0 15 15", style: { fill: `var(${c2 && !
|
|
43
|
+
return Z("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
|
+
i2?.(e3, r2), e3.preventDefault();
|
|
45
|
+
}, ...s2, children: Z("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: Z("path", { d: d2 }) }) });
|
|
46
46
|
}, ot = (s2) => {
|
|
47
|
-
const { value: d2, coords: c2, bounds: g2, children: u2, style: h2, range: m2, zoom: p2 = 1, view: f2, bodyStyle: w2, normalStyle: v2, showFormulas: q2, showZeros: y2, docTheme: b2, onLinkMouseDown: S2, onFilterButtonMouseDown: x2, filterButtonProps: k2, createFilterButton: T2 = tt, ...R2 } = s2, M2 = g2.height / p2, A2 = g2.width / p2, z2 = d2, F2 = z2.getValue(), D2 = d2.getStyle(),
|
|
48
|
-
let
|
|
47
|
+
const { value: d2, coords: c2, bounds: g2, children: u2, style: h2, range: m2, zoom: p2 = 1, view: f2, bodyStyle: w2, normalStyle: v2, showFormulas: q2, showZeros: y2, docTheme: b2, onLinkMouseDown: S2, onFilterButtonMouseDown: x2, filterButtonProps: k2, createFilterButton: T2 = tt, ...R2 } = s2, M2 = g2.height / p2, A2 = g2.width / p2, z2 = d2, F2 = z2.getValue(), D2 = d2.getStyle(), E2 = w2?.darkMode ?? false;
|
|
48
|
+
let I2, N2;
|
|
49
49
|
const H2 = F2 && F2.isFormulaError, P2 = H2 && F2 instanceof e.Parse;
|
|
50
50
|
let V2, L2 = q2 || P2;
|
|
51
51
|
if (L2) if (z2.isSpillOverflow()) N2 = "";
|
|
52
52
|
else {
|
|
53
53
|
const e2 = z2.getFormulaText();
|
|
54
|
-
e2 ? N2 = e2 :
|
|
54
|
+
e2 ? N2 = e2 : I2 = z2.getNumberFormat(t.Type.General);
|
|
55
55
|
}
|
|
56
|
-
else
|
|
56
|
+
else I2 = z2.getNumberFormat();
|
|
57
57
|
L2 || (V2 = z2.getTextOverflow());
|
|
58
58
|
const B2 = V2 ? V2.colBounds.width + V2.leftOffset + V2.rightOffset : A2, O2 = V2 ? V2.anchorBounds.x - V2.leftOffset : 0, $2 = V2 ? V2.anchorBounds.width : A2, W2 = V2 ? V2.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 G2 = z2.getCalcStatus() === o.CalcStatus.Pending;
|
|
62
|
-
let K2 = null, J2 = D2.getFill().toCSS(
|
|
62
|
+
let K2 = null, J2 = D2.getFill().toCSS(E2, g2), Q2 = 0, ee2 = 0;
|
|
63
63
|
if (!D2.getBorder().isEmpty()) {
|
|
64
64
|
const e2 = D2.getBorder().getRight();
|
|
65
65
|
!e2.isNone() && n.BuiltInDefinitions.get(e2.getStyle()).width > 1 && (Q2 = 1);
|
|
@@ -68,18 +68,18 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
68
68
|
}
|
|
69
69
|
let te2 = null;
|
|
70
70
|
if (A2 !== $2 || Q2 || ee2 || "number" == typeof J2?.backgroundPosition) {
|
|
71
|
-
const { backgroundPosition: e2, ...t2 } = J2, o2 = e2 ?? 0, n2 = f2?.getScrollTopLeft(),
|
|
72
|
-
(void 0 !== e2 || Q2 || ee2 || A2 !== $2) && (1 === Object.keys(t2).length && "none" === t2.background || (J2 = null, te2 = Z("div", { className: "fill", style: { marginLeft: `${
|
|
71
|
+
const { backgroundPosition: e2, ...t2 } = J2, o2 = e2 ?? 0, n2 = f2?.getScrollTopLeft(), l2 = o2 ? -(g2.x + (n2.left ?? 0)) % o2 : 0, r2 = o2 ? -(g2.y + (n2.top ?? 0)) % o2 : 0;
|
|
72
|
+
(void 0 !== e2 || Q2 || ee2 || A2 !== $2) && (1 === Object.keys(t2).length && "none" === t2.background || (J2 = null, te2 = Z("div", { className: "fill", style: { marginLeft: `${l2}px`, marginTop: `${r2}px`, left: W2 * p2, width: C.boundPixel($2 * p2 - l2 + 1 + Q2), height: C.boundPixel(g2.height - r2 + 1 + ee2), ...t2 } }, "background")));
|
|
73
73
|
}
|
|
74
74
|
let oe2 = null;
|
|
75
|
-
const ne2 = z2.getComments(),
|
|
76
|
-
if (ne2 || H2 ||
|
|
77
|
-
const e2 = { size: 7 * p2, darkMode:
|
|
78
|
-
oe2 = oe2 ?? [], (
|
|
75
|
+
const ne2 = z2.getComments(), le2 = z2.getWarnings(), re2 = z2.getErrors();
|
|
76
|
+
if (ne2 || H2 || re2.length > 0 || le2.length > 0) {
|
|
77
|
+
const e2 = { size: 7 * p2, darkMode: E2, cellWidth: $2 * p2 + 2, cellHeight: M2 * p2 + 2, style: { top: -1, left: W2 * p2 - 1 } };
|
|
78
|
+
oe2 = oe2 ?? [], (le2.length > 0 || re2.length > 0 || H2) && oe2.push(Z(et, { anchorLocation: Y.TopLeft, ...e2 }, `indicator-${oe2.length}`)), ne2 && oe2.push(Z(et, { anchorLocation: Y.TopRight, ...e2 }, `indicator-${oe2.length}`));
|
|
79
79
|
}
|
|
80
80
|
const ie2 = D2.getFont();
|
|
81
|
-
let ae2 =
|
|
82
|
-
const se2 = D2.getAlignment(), de2 = se2.getHorizontal() ===
|
|
81
|
+
let ae2 = I2?.conditionalColor;
|
|
82
|
+
const se2 = D2.getAlignment(), de2 = se2.getHorizontal() === l.HorizontalAlignment.Fill, ce2 = se2.getHorizontal() === l.HorizontalAlignment.CenterContinuous || de2, ge2 = ce2 || L2 ? 0 : se2.getRotation(), ue2 = z2.getInsets(), he2 = ue2.top + ue2.bottom;
|
|
83
83
|
let me2 = ue2.left, pe2 = ue2.right;
|
|
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(), ve2 = we2 && !we2?.hasHiddenButton();
|
|
85
85
|
let qe2 = null;
|
|
@@ -92,8 +92,8 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
92
92
|
(e2.width > 1 || e2.height > 1) && (Ce2 = true);
|
|
93
93
|
}
|
|
94
94
|
const be2 = { ...J2, ...fe2, pointerEvents: S2 ? "auto" : void 0 };
|
|
95
|
-
if (!X.isEmpty(N2) || !X.isEmpty(
|
|
96
|
-
const e2 =
|
|
95
|
+
if (!X.isEmpty(N2) || !X.isEmpty(I2?.repeatPlaceholder)) {
|
|
96
|
+
const e2 = I2?.canWrap ?? false;
|
|
97
97
|
let o2 = null, n2 = null, s3 = null, d3 = [], c3 = true;
|
|
98
98
|
y2 || L2 || 0 !== F2 || (c3 = false);
|
|
99
99
|
const g3 = z2.getTextFrame(L2);
|
|
@@ -105,31 +105,31 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
105
105
|
const t2 = { x: 0, y: 0, width: B2 - 1, height: M2 };
|
|
106
106
|
if (U2) {
|
|
107
107
|
let e4 = U2.width;
|
|
108
|
-
if (
|
|
109
|
-
const o3 =
|
|
110
|
-
e4 =
|
|
108
|
+
if (I2.repeatPlaceholder || I2.repeatChars.length > 0) {
|
|
109
|
+
const o3 = r.boundsToPoints(t2), n3 = r.rotatePoints(o3, -ge2);
|
|
110
|
+
e4 = r.minBoundingRect(n3).width;
|
|
111
111
|
}
|
|
112
112
|
o2 = { ...o2, width: e4 };
|
|
113
113
|
}
|
|
114
|
-
s3 =
|
|
114
|
+
s3 = r.clipToOuterRect({ ...o2, width: o2.width + 1 + me2 + pe2 }, t2, ge2), c4 = s3.width - 1 - (me2 + pe2) + 0.01;
|
|
115
115
|
}
|
|
116
116
|
let u3 = null;
|
|
117
117
|
e2 && (u3 = { width: c4 });
|
|
118
|
-
let m3 = null, f3 =
|
|
118
|
+
let m3 = null, f3 = I2?.repeatPlaceholder;
|
|
119
119
|
const w3 = g3.layout(u3);
|
|
120
|
-
if (o2 = w3.bounds, L2 ? o2 = { ...o2, width: 0 } : U2 && (o2 = { ...o2, width:
|
|
120
|
+
if (o2 = w3.bounds, L2 ? o2 = { ...o2, width: 0 } : U2 && (o2 = { ...o2, width: I2.repeatPlaceholder || I2.repeatChars.length > 0 ? c4 : U2.width }), ge2 && e2) {
|
|
121
121
|
let e3 = null;
|
|
122
122
|
w3.visitLines({ visitTextLine: (t2, o3) => {
|
|
123
123
|
let n3 = t2.bounds;
|
|
124
|
-
const
|
|
125
|
-
n3 = { ...n3, x: (a2.width - n3.width) / 2, y: (a2.height - n3.height) / 2 }, e3 = e3 ?
|
|
124
|
+
const l2 = r.boundsToPoints(n3), i2 = r.rotatePoints(l2, ge2), a2 = r.minBoundingRect(i2);
|
|
125
|
+
n3 = { ...n3, x: (a2.width - n3.width) / 2, y: (a2.height - n3.height) / 2 }, e3 = e3 ? r.unionBounds(e3, n3) : n3;
|
|
126
126
|
} }), o2 = { ...e3, width: e3.width + me2 + pe2 };
|
|
127
127
|
}
|
|
128
128
|
if (!f3 && z2.getType() !== i.String && Math.floor(o2.width) > c4) {
|
|
129
129
|
if ("General" === D2.getNumberFormat() && z2.getType() === i.Number) {
|
|
130
|
-
const e3 = D2.measureText("0"), t2 = Math.floor(c4 / e3.width), o3 = F2, n3 = X.splitNumber(o3),
|
|
131
|
-
if (
|
|
132
|
-
const e4 = `0${
|
|
130
|
+
const e3 = D2.measureText("0"), t2 = Math.floor(c4 / e3.width), o3 = F2, n3 = X.splitNumber(o3), l2 = Math.min(10, t2 - (Math.max(1, n3.ipLength) + 1) - (o3 < 0 ? 1 : 0));
|
|
131
|
+
if (l2 >= -1) {
|
|
132
|
+
const e4 = `0${l2 > 0 ? "." : ""}${"#".repeat(Math.max(0, l2))}`;
|
|
133
133
|
m3 = z2.getNumberFormat(e4).displayText, "0" === m3 && o3 < 0 && (m3 = "-0");
|
|
134
134
|
} else if (Math.abs(o3) >= Math.pow(10, 5) || Math.abs(o3) <= Math.pow(10, -5)) {
|
|
135
135
|
const e4 = t2 - 5 - (o3 < 0 ? 1 : 0);
|
|
@@ -143,21 +143,21 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
143
143
|
}
|
|
144
144
|
if (!f3 && U2?.lastRepeatIndex >= 0 && U2?.width > c4 && (f3 = "#"), f3 && c4 > 0) {
|
|
145
145
|
const e3 = D2.measureText(f3), t2 = Math.floor((c4 || 1) / (e3?.width || 1));
|
|
146
|
-
m3 = t2 > 0 ? f3.repeat(t2) : "", _2 =
|
|
146
|
+
m3 = t2 > 0 ? f3.repeat(t2) : "", _2 = l.HorizontalAlignment.Center;
|
|
147
147
|
}
|
|
148
|
-
if (L2 && (_2 =
|
|
148
|
+
if (L2 && (_2 = l.HorizontalAlignment.Left), m3) {
|
|
149
149
|
const e3 = D2.measureText(m3).width;
|
|
150
150
|
e3 && (o2 = { ...o2, width: e3 });
|
|
151
151
|
}
|
|
152
152
|
if (n2 = { ...o2, width: o2.width + me2 + pe2, height: o2.height }, ge2 && !e2) {
|
|
153
|
-
const e3 =
|
|
153
|
+
const e3 = r.boundsToPoints(n2), t2 = r.rotatePoints(e3, ge2), o3 = r.minBoundingRect(t2);
|
|
154
154
|
n2.width = o3.width, n2.height = o3.height;
|
|
155
155
|
}
|
|
156
|
-
_2 ===
|
|
156
|
+
_2 === l.HorizontalAlignment.Center || _2 === l.HorizontalAlignment.CenterContinuous ? n2.x = (B2 - n2.width) / 2 : _2 === l.HorizontalAlignment.Right ? n2.x = B2 - n2.width - 0.5 : n2.x = 0.5, se2.getVertical() === l.VerticalAlignment.Center ? n2.y = (M2 - n2.height) / 2 : se2.getVertical() === l.VerticalAlignment.Bottom ? n2.y = M2 - n2.height - he2 : n2.y = he2;
|
|
157
157
|
const v3 = ye2 ? { ...R2 } : void 0, q3 = { 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, ...v3 };
|
|
160
|
-
P2 && (q3.style.textDecorationStyle = "wavy", q3.style.textDecorationColor =
|
|
160
|
+
P2 && (q3.style.textDecorationStyle = "wavy", q3.style.textDecorationColor = E2 ? "rgb(0, 255, 255)" : "red", q3.style.textDecorationLine = "underline");
|
|
161
161
|
const y3 = ie2.getSize(), C2 = (i2, s4, g4, u4, h3, m4, f4, w4 = null) => {
|
|
162
162
|
let v4 = y3 * p2, q4 = g4, C3 = f4?.runs ? f4.runs : [{ type: t.ParseRunType.Text, text: i2, width: D2.measureText(i2, v4).width }];
|
|
163
163
|
f4 && f4?.width !== o2.width && (o2 = { ...o2, width: f4?.width });
|
|
@@ -165,21 +165,21 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
165
165
|
if (f4?.lastRepeatIndex >= 0 && c4 > f4?.width) {
|
|
166
166
|
const e3 = f4.runs[f4.lastRepeatIndex];
|
|
167
167
|
if (e3) {
|
|
168
|
-
const n3 = [...C3],
|
|
169
|
-
let
|
|
170
|
-
if (
|
|
171
|
-
const t2 = Math.floor(
|
|
172
|
-
i3 = t2 > 0 ? e3.text.repeat(t2) : "",
|
|
168
|
+
const n3 = [...C3], l2 = Math.max(0, c4 - 1 - f4.width);
|
|
169
|
+
let r2 = 0, i3 = "";
|
|
170
|
+
if (l2 > 0) {
|
|
171
|
+
const t2 = Math.floor(l2 / e3.width);
|
|
172
|
+
i3 = t2 > 0 ? e3.text.repeat(t2) : "", r2 = l2;
|
|
173
173
|
}
|
|
174
|
-
n3[f4.lastRepeatIndex] = { type: t.ParseRunType.Repeat, text: i3, width:
|
|
174
|
+
n3[f4.lastRepeatIndex] = { type: t.ParseRunType.Repeat, text: i3, width: r2 }, C3 = n3, o2 = { ...o2, width: f4.width + r2 };
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
const S3 = (t2, o3, n3, i3, s5, c5, g5, u5, f5, w5 = null) => {
|
|
178
178
|
let y4, C4 = q4.width;
|
|
179
|
-
h3 ===
|
|
179
|
+
h3 === l.HorizontalAlignment.Justify ? (C4 = s5, m4 || (y4 = "justify")) : h3 === l.HorizontalAlignment.Distributed && (C4 = s5, y4 = m4 || t2.text.split(" ").length - 1 == 0 ? "center" : "justify");
|
|
180
180
|
const { style: S4, className: x4, ...k4 } = w5;
|
|
181
181
|
let T3 = t2.text;
|
|
182
|
-
if (h3 ===
|
|
182
|
+
if (h3 === l.HorizontalAlignment.Fill && 0 === I2?.repeatChars.length) {
|
|
183
183
|
const e3 = Math.max(1, Math.floor((q4?.width ?? 0) / (g5?.width ?? 1)));
|
|
184
184
|
T3 = T3.repeat(e3);
|
|
185
185
|
}
|
|
@@ -189,8 +189,8 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
189
189
|
const e3 = ie2.getSuperSubScale();
|
|
190
190
|
v4 *= e3, R3 *= e3;
|
|
191
191
|
}
|
|
192
|
-
const F3 = { textAlign: y4, textAlignLast: y4, ...S4, ...ie2.toCSS(
|
|
193
|
-
ye2 || (F3.background = void 0), ae2 && (F3.color = ae2.toCSS(
|
|
192
|
+
const F3 = { textAlign: y4, textAlignLast: y4, ...S4, ...ie2.toCSS(E2, p2, true), fontSize: v4 * a.getDeviceScale() };
|
|
193
|
+
ye2 || (F3.background = void 0), ae2 && (F3.color = ae2.toCSS(E2));
|
|
194
194
|
const D3 = b3 + o3;
|
|
195
195
|
let N3 = ue2.top + q4.y + 0;
|
|
196
196
|
if (A3 && (N3 += f5 - v4), c5) {
|
|
@@ -198,18 +198,18 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
198
198
|
t3 < 0 ? F3.marginTop = t3 : F3.paddingTop = t3, e3 < 0 ? (F3.width = (S4?.width ?? 0) - e3, F3.left = (S4?.left ?? 0) + e3) : F3.paddingLeft = e3, F3.paddingRight = Math.max(0, (S4?.width ?? 0) - C4 * p2 - e3), F3.paddingBottom = Math.max(0, (S4?.height ?? 0) - q4.height * p2 - t3), F3.height = (S4?.height ?? 0) + (t3 < 0 ? -t3 : 0), (t3 < 0 || e3 < 0) && (F3.clipPath = `inset(${t3 < 0 ? -t3 : 0}px 0px 0px ${e3 < 0 ? 1 - e3 : 0}px)`);
|
|
199
199
|
} else if (F3.left = (g5.x + D3) * p2 + 1, F3.top = (g5.y + N3) * p2 + 1, F3.width = g5.width * p2, F3.height = g5.height * p2, ge2 && !e2) {
|
|
200
200
|
F3.left = (g5.x + o3) * p2 + 1, F3.top = (g5.y + (q4.y + 0)) * p2 + 1;
|
|
201
|
-
const e3 =
|
|
201
|
+
const e3 = r.centerPoint({ x: b3 + o3, y: 0, width: t2.width, height: q4.height }), n4 = r.centerPoint({ x: b3, y: 0, width: s5, height: q4.height }), l2 = r.rotatePoints([e3], ge2, n4), i4 = { x: l2[0].x - e3.x, y: l2[0].y - e3.y };
|
|
202
202
|
F3.left = F3.left + i4.x * p2, F3.top = F3.top + i4.y * p2;
|
|
203
|
-
const a2 = { ...q4, x: b3, y: ue2.top, width: q4.width + (me2 + pe2) }, d4 =
|
|
203
|
+
const a2 = { ...q4, x: b3, y: ue2.top, width: q4.width + (me2 + pe2) }, d4 = r.boundsToPoints(a2), c6 = r.rotatePoints(d4, ge2), u6 = r.minBoundingRect(c6);
|
|
204
204
|
a2.width = u6.width, a2.height = u6.height;
|
|
205
|
-
const h4 =
|
|
205
|
+
const h4 = r.centerPoint(a2), m5 = { x: h4.x - n4.x, y: h4.y - n4.y };
|
|
206
206
|
F3.left = F3.left + m5.x * p2, F3.top = F3.top + m5.y * p2;
|
|
207
207
|
}
|
|
208
208
|
F3.lineHeight = R3 * p2 + "px";
|
|
209
209
|
const H3 = ye2 ? void 0 : "text-line";
|
|
210
210
|
d3.push(Z("div", { className: x4 ? `${x4} ${H3}` : H3, style: F3, ...k4, children: T3 }, `text-${q4.y}-${i3}-${n3}`));
|
|
211
211
|
};
|
|
212
|
-
if (se2.getOverflow() ===
|
|
212
|
+
if (se2.getOverflow() === l.Overflow.Shrink && c4 > 0) {
|
|
213
213
|
let e3 = o2?.width ?? 0, t2 = 0;
|
|
214
214
|
for (; e3 > 1 && e3 > c4 && v4 > 2 && t2 < 100; ) {
|
|
215
215
|
v4 *= c4 / e3;
|
|
@@ -218,24 +218,24 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
218
218
|
o2 = { ...o2, width: e3 };
|
|
219
219
|
}
|
|
220
220
|
let x3 = q4.x;
|
|
221
|
-
h3 ===
|
|
221
|
+
h3 === l.HorizontalAlignment.Right ? x3 += o2.width - q4.width : h3 !== l.HorizontalAlignment.Center && h3 !== l.HorizontalAlignment.CenterContinuous || (x3 += (o2.width - q4.width) / 2), f4?.lastRepeatIndex >= 0 && (x3 = q4.x);
|
|
222
222
|
const k3 = C3.length;
|
|
223
223
|
for (let e3 = 0; e3 < k3; e3++) {
|
|
224
|
-
const
|
|
225
|
-
if (
|
|
226
|
-
|
|
227
|
-
S3(
|
|
224
|
+
const r2 = C3[e3];
|
|
225
|
+
if (r2.type === t.ParseRunType.Text || r2.type === t.ParseRunType.Repeat) {
|
|
226
|
+
r2.type, t.ParseRunType.Repeat;
|
|
227
|
+
S3(r2, x3, e3, s4, h3 === l.HorizontalAlignment.Justify || h3 === l.HorizontalAlignment.Distributed || f4?.lastRepeatIndex >= 0 ? c4 : q4.width, ye2, { x: n2.x + O2, y: n2.y, width: r2.width, height: o2.height }, 0, u4, w4);
|
|
228
228
|
}
|
|
229
|
-
x3 +=
|
|
229
|
+
x3 += r2.width;
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
232
|
m3 ? C2(m3, 0, { x: 0, y: 0, ...o2 }, w3.lines[0].baseline, _2, true, null, q3) : w3.visitLines({ visitTextLine: (e3, t2, n3) => {
|
|
233
|
-
const
|
|
234
|
-
let a2 = _2 ===
|
|
235
|
-
t2 > 0 && (se2.getVertical() ===
|
|
236
|
-
let d4 = de2 ||
|
|
233
|
+
const r2 = e3.runs[0].text.replace(/\s+$/, ""), i2 = t2 === n3 - 1;
|
|
234
|
+
let a2 = _2 === l.HorizontalAlignment.Justify && (i2 || e3.runs[0].text.endsWith("\n")) ? l.HorizontalAlignment.Left : _2, s4 = 0;
|
|
235
|
+
t2 > 0 && (se2.getVertical() === l.VerticalAlignment.Distributed || se2.getVertical() === l.VerticalAlignment.Justify) && (s4 = Math.max(0, (M2 - (he2 + 3) - e3.bounds.height * n3) / (n3 - 1) * t2)), se2.getVertical() === l.VerticalAlignment.Distributed && ge2 && ge2 % 90 == 0 && ge2 % 180 != 0 && (a2 = l.HorizontalAlignment.Distributed), a2 !== l.HorizontalAlignment.Justify && a2 !== l.HorizontalAlignment.Distributed && a2 !== l.HorizontalAlignment.Fill || (o2 = { ...o2, width: c4 });
|
|
236
|
+
let d4 = de2 || I2 && (I2.repeatChars.length > 0 || I2.spacingChars.length > 0) ? o2.width : e3.bounds.width;
|
|
237
237
|
const u4 = { ...e3.bounds, y: e3.bounds.y + s4 + 0, width: d4 };
|
|
238
|
-
C2(
|
|
238
|
+
C2(r2, t2, u4, g3.lines[0].baseline, a2, i2, 1 === n3 ? U2 : null, ye2 && t2 > 0 ? { ...q3, style: { ...q3.style, background: void 0 } } : q3);
|
|
239
239
|
} });
|
|
240
240
|
}
|
|
241
241
|
d3.length > 0 && (K2 = d3);
|
|
@@ -244,19 +244,19 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
244
244
|
let Se2 = S2 ? "auto" : fe2.pointerEvents, xe2 = null;
|
|
245
245
|
if (ve2) {
|
|
246
246
|
const e2 = { x: W2 * p2 - 1, y: -1, width: $2 * p2 + 1, height: M2 * p2 + 1 };
|
|
247
|
-
Se2 = "auto", xe2 = T2({ renderBounds: e2, darkMode:
|
|
247
|
+
Se2 = "auto", xe2 = T2({ renderBounds: e2, darkMode: E2, className: "filter-button", disabled: !z2.isEditAllowed(), zoom: p2, filter: z2.getColumnFilter(), onFilterButtonMouseDown: x2, ...k2 }), xe2 && (xe2 = Z("div", { style: { ...e2, position: "absolute", zIndex: 2, display: "flex", alignItems: "end" }, onDoubleClick: (e3) => {
|
|
248
248
|
e3.stopPropagation(), e3.preventDefault();
|
|
249
249
|
}, children: xe2 }, "filterButton"));
|
|
250
250
|
}
|
|
251
251
|
G2 && !K2 && (K2 = Z("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, K2, u2, oe2, qe2, xe2];
|
|
253
253
|
return Z("div", { style: { ...J2, ...fe2, pointerEvents: Se2 }, ...R2, children: ke2 });
|
|
254
|
-
}, nt = { text: "", placeholder: "" },
|
|
254
|
+
}, nt = { text: "", placeholder: "" }, lt = (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:
|
|
258
|
+
}, rt = Object.freeze([x.Delete, x.Home, x.End]), it = oe(re((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: v2, setNaturalSize: q2, onFocus: y2, disabled: C2, style: z2, zoom: F2 = 1, linesVisible: D2, autoFocus: E2 = false, ...I2 } = e2, { height: N2 = 0, width: H2 = 0 } = v2 ?? {}, P2 = m2?.darkMode ?? false, V2 = ie(null), [L2, B2] = le(false), [O2, $2] = le(null), [W2, U2] = le(() => o2);
|
|
260
260
|
ae(() => {
|
|
261
261
|
te2.current = false, U2(o2);
|
|
262
262
|
}, [o2]);
|
|
@@ -264,33 +264,33 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
264
264
|
const e3 = W2.clean();
|
|
265
265
|
let t3 = e3.getStyle();
|
|
266
266
|
h2 || (t3 = t3.createTemporaryStyle({ font: { size: u2?.fontSize } }));
|
|
267
|
-
const o3 = e3.getFormula(), n3 = t3.getAlignment(),
|
|
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
268
|
if (!e4) return nt;
|
|
269
269
|
const t4 = e4.clean();
|
|
270
270
|
if (!t4) return nt;
|
|
271
271
|
let o4 = t4.getStyle()?.getQuotePrefix();
|
|
272
272
|
if (void 0 === e4.dirty || null === e4.dirty) {
|
|
273
|
-
let n4 = "",
|
|
274
|
-
|
|
275
|
-
let
|
|
273
|
+
let n4 = "", l2 = t4.getFormulaText();
|
|
274
|
+
l2 && (n4 = l2, o4 = false), n4 || (n4 = t4.toTextUnformatted(true) ?? "");
|
|
275
|
+
let r4 = "";
|
|
276
276
|
if (!e4.editMode && t4.isSpillOverflow()) {
|
|
277
277
|
const e5 = t4.getSpill();
|
|
278
278
|
if (e5) {
|
|
279
279
|
const o5 = e5.getCell(), n5 = o5.getFormulaText();
|
|
280
|
-
o5.isEqual(t4) || (
|
|
280
|
+
o5.isEqual(t4) || (r4 = n5);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
return o4 && (n4 = "'" + n4), { text: n4, placeholder:
|
|
283
|
+
return o4 && (n4 = "'" + n4), { text: n4, placeholder: r4 };
|
|
284
284
|
}
|
|
285
285
|
return { text: e4.dirty ?? "", placeholder: "" };
|
|
286
|
-
})(W2), c3 = d3.text, g3 =
|
|
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() : J.EmptyRect, textAlign: g3 };
|
|
288
288
|
}, [W2, u2, P2, F2, h2]), G2 = ie(null), j2 = b(t2, () => ({ startEdit: (e3) => {
|
|
289
289
|
V2.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), Y2?.(t3));
|
|
292
292
|
}, submitEdit: () => oe2(), cancelEdit() {
|
|
293
|
-
|
|
293
|
+
re2();
|
|
294
294
|
}, autoFocus() {
|
|
295
295
|
G2.current.focus();
|
|
296
296
|
}, dispatchEvent: (e3) => G2.current.dispatchEvent(e3), focus() {
|
|
@@ -309,10 +309,10 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
309
309
|
}, [_2, H2, W2, h2]), X2 = S(() => Math.ceil(K2?.lines[0]?.bounds.height), [K2]);
|
|
310
310
|
se(() => {
|
|
311
311
|
if (!K2) return;
|
|
312
|
-
const e3 = _2.style, t3 = e3.getInsets() ?? J.EmptyRect, o3 = h2 ? t3.left + t3.right : 0, n3 = h2 ? 0.04 * e3.getFont().getSize() : 1,
|
|
313
|
-
q2?.({ width:
|
|
312
|
+
const e3 = _2.style, t3 = e3.getInsets() ?? J.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
|
+
q2?.({ width: l2, height: r3 });
|
|
314
314
|
}, [K2, q2, _2, h2, W2]);
|
|
315
|
-
const Y2 = S(
|
|
315
|
+
const Y2 = S(r2, [r2]), Q2 = S((e3) => {
|
|
316
316
|
if (W2.dirty === e3) return;
|
|
317
317
|
const t3 = { ...W2 };
|
|
318
318
|
t3.dirty = e3, G2.current, U2(t3), Y2?.(t3);
|
|
@@ -328,24 +328,24 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
328
328
|
return false;
|
|
329
329
|
}
|
|
330
330
|
return true;
|
|
331
|
-
}, [d2, W2]),
|
|
331
|
+
}, [d2, W2]), re2 = S(() => {
|
|
332
332
|
te2.current = true, U2(o2), c2?.(), g2?.();
|
|
333
333
|
}, [c2, o2]), ce2 = S((e3) => {
|
|
334
334
|
if (!G2.current) return;
|
|
335
335
|
if (e3.key, e3.isDefaultPrevented(), !(e3.isTrusted || e3.nativeEvent.ctrlKey || e3.nativeEvent.metaKey || e3.nativeEvent.altKey || e3.nativeEvent.isComposing || -1 === fe.indexOf(e3.nativeEvent.key) && "Backspace" !== e3.nativeEvent.key)) {
|
|
336
336
|
const t4 = { ...W2 };
|
|
337
337
|
let o4 = 0;
|
|
338
|
-
return
|
|
338
|
+
return lt(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), G2.current.value = t4?.dirty, V2.current = { start: o4, end: o4, direction: "forward" }, G2.current?.setSelectionRange(o4, o4, "forward"), U2(t4), Y2?.(t4), void e3.preventDefault();
|
|
339
339
|
}
|
|
340
|
-
const t3 = e3.nativeEvent.ctrlKey, o3 = e3.nativeEvent.shiftKey, n3 = e3.nativeEvent.altKey,
|
|
341
|
-
if (t3 && "z" === e3.key && e3.stopPropagation(), e3.which === x.Escape) return e3.preventDefault(), void
|
|
340
|
+
const t3 = e3.nativeEvent.ctrlKey, o3 = e3.nativeEvent.shiftKey, n3 = e3.nativeEvent.altKey, l2 = e3.nativeEvent.metaKey;
|
|
341
|
+
if (t3 && "z" === e3.key && e3.stopPropagation(), e3.which === x.Escape) return e3.preventDefault(), void re2();
|
|
342
342
|
if (e3.which === x.F2) return ee2(true), void e3.preventDefault();
|
|
343
|
-
const
|
|
344
|
-
if ("%" === e3.key &&
|
|
343
|
+
const r3 = e3.target;
|
|
344
|
+
if ("%" === e3.key && r3.selectionStart === r3.selectionEnd && "%" === r3.value[r3.selectionStart] && W2?.clean().getStyle().numberFormat.includes("%")) return $2({ start: r3.selectionStart + 1, end: r3.selectionEnd + 1, direction: r3.selectionDirection }), void e3.preventDefault();
|
|
345
345
|
if (e3.which === x.Enter) {
|
|
346
|
-
if (e3.preventDefault(),
|
|
347
|
-
const e4 = _2.textValue.substring(0,
|
|
348
|
-
return Q2(e4), void $2({ start:
|
|
346
|
+
if (e3.preventDefault(), l2 || n3) {
|
|
347
|
+
const e4 = _2.textValue.substring(0, r3.selectionStart) + "\n" + _2.textValue.substring(r3.selectionEnd);
|
|
348
|
+
return Q2(e4), void $2({ start: r3.selectionStart + 1, end: r3.selectionStart + 1, direction: r3.selectionDirection });
|
|
349
349
|
}
|
|
350
350
|
return void (oe2() && f2.getSelection().traverse(s.Orientation.Column, o3));
|
|
351
351
|
}
|
|
@@ -365,9 +365,9 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
365
365
|
i2 = s.Direction.Down;
|
|
366
366
|
}
|
|
367
367
|
if (i2) {
|
|
368
|
-
if (!(t3 || o3 || n3 ||
|
|
368
|
+
if (!(t3 || o3 || n3 || l2) && !W2.editMode) return void oe2();
|
|
369
369
|
}
|
|
370
|
-
W2.editMode && (i2 ||
|
|
370
|
+
W2.editMode && (i2 || rt.includes(e3.which)) && e3.stopPropagation();
|
|
371
371
|
}, [W2, f2, _2]), ge2 = de(() => {
|
|
372
372
|
G2.current?.focus(), setTimeout(() => {
|
|
373
373
|
G2.current?.select();
|
|
@@ -415,7 +415,7 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
415
415
|
return e3 = w2 ? w2.createChildGroup(t3, "editor", false) : new M(t3, "editor"), e3.addCommands(ye2, true), e3;
|
|
416
416
|
}, [w2, ye2]), be2 = ne(() => ({ notifier: null, source: we2, target: ve2, commands: Ce2 }), [we2, ve2, Ce2]);
|
|
417
417
|
A(be2);
|
|
418
|
-
const [Se2, xe2] =
|
|
418
|
+
const [Se2, xe2] = le(!E2);
|
|
419
419
|
ae(() => {
|
|
420
420
|
xe2(false);
|
|
421
421
|
}, []);
|
|
@@ -425,23 +425,23 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
425
425
|
if (false !== t3) {
|
|
426
426
|
let e4, o3;
|
|
427
427
|
const n3 = G2.current.value;
|
|
428
|
-
|
|
428
|
+
lt(W2, n3) && (e4 = n3.length - 1, o3 = n3.length - 1), e4 = t3?.start ?? e4 ?? n3.length, o3 = t3?.end ?? o3 ?? n3.length, V2.current = false, $2({ start: e4, end: o3, direction: "forward" });
|
|
429
429
|
}
|
|
430
430
|
y2?.(e3);
|
|
431
431
|
}, [y2, W2]), Te2 = _2.insets;
|
|
432
432
|
let Re2 = Te2.left + 1;
|
|
433
433
|
const Me2 = Te2.left + Te2.right + 2 - 1, Ae2 = K2?.bounds.height ?? 0;
|
|
434
434
|
let ze2, Fe2 = Te2.top;
|
|
435
|
-
_2.frameVertAlign ===
|
|
435
|
+
_2.frameVertAlign === l.VerticalAlignment.Center ? Fe2 = Math.max(0, (N2 - (Te2.top + Te2.bottom) - Ae2) / 2) : _2.frameVertAlign === l.VerticalAlignment.Bottom && (Fe2 = Math.max(0, N2 - (Te2.top + Te2.bottom) - Ae2)), void 0 !== D2 && K2?.lines[0]?.bounds && (ze2 = K2?.lines[0]?.bounds.height * D2);
|
|
436
436
|
const De2 = _2.style.getFont();
|
|
437
|
-
let
|
|
438
|
-
De2.isSuperSub() && (
|
|
439
|
-
const
|
|
437
|
+
let Ee2 = De2.getSize();
|
|
438
|
+
De2.isSuperSub() && (Ee2 *= De2.getSuperSubScale()), Ee2 *= a.getDeviceScale() * F2;
|
|
439
|
+
const Ie2 = h2 ? De2.toCSS(P2, F2) : null;
|
|
440
440
|
return Z("div", { className: "sheet-cell-editor", onMouseDown: (e3) => {
|
|
441
441
|
G2.current && document.activeElement !== G2.current && requestAnimationFrame(() => {
|
|
442
442
|
G2.current.focus();
|
|
443
443
|
});
|
|
444
|
-
}, ref: j2, ...
|
|
444
|
+
}, ref: j2, ...I2, style: { display: "flex", flexGrow: 1, alignSelf: "stretch", height: "100%", width: "100%", maxWidth: "100%", maxHeight: "100%", cursor: "initial", ...z2 }, children: Z("div", { className: "editor-placement", style: { display: "flex", flexGrow: 1, position: "relative", top: Fe2 * F2, left: Re2 * F2, width: `calc(100% - ${Me2 * F2}px)`, maxWidth: `calc(100% - ${Me2 * F2}px)`, height: (ze2 ?? Ae2) * F2, maxHeight: (ze2 ?? Ae2) * F2 }, children: Z("textarea", { spellCheck: "false", placeholder: _2.placeholder, ref: G2, value: _2.textValue, disabled: Se2, readOnly: C2 || f2.getProtection().isReadOnly(), name: "sheet-cell-editor", autoComplete: "off", autoCapitalize: "off", style: { flex: "1 1 100%", font: "inherit", ...Ie2, fontSize: Ee2 ? `${Ee2}px` : "inherit", textAlign: _2.textAlign, lineHeight: (K2?.lines[0]?.bounds.height ?? 0) * F2 + "px", height: (K2?.bounds.height ?? 0) * F2, boxSizing: "border-box", padding: "0px", margin: "0px", borderWidth: 0, outline: "none", resize: "none", overflow: "hidden", background: "transparent", maxHeight: "100%", maxWidth: "100%", width: "100%", userSelect: "text", position: "absolute", whiteSpace: _2.isWrapped ? "normal" : "pre", wordWrap: "break-word" }, onFocus: ke2, onBlur: () => {
|
|
445
445
|
B2(false);
|
|
446
446
|
}, onSelect: (e3) => {
|
|
447
447
|
}, onChange: (e3) => {
|
|
@@ -450,7 +450,7 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
450
450
|
L2 && ee2(true);
|
|
451
451
|
}, onKeyDown: ce2 }) }) });
|
|
452
452
|
})), at = (e2, t2) => ({ clean: e2, dirty: t2, editMode: false }), st = (e2) => {
|
|
453
|
-
const { length: t2 = 0, width: o2 = 1, dashArray: n2 = null, dashArrayAdditional:
|
|
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) {
|
|
456
456
|
t3 = "";
|
|
@@ -459,9 +459,9 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
459
459
|
return t3;
|
|
460
460
|
}, u2 = g2(n2);
|
|
461
461
|
let h2 = u2;
|
|
462
|
-
|
|
462
|
+
l2 && (h2 = g2(l2));
|
|
463
463
|
let m2 = o2, p2 = t2, f2 = null;
|
|
464
|
-
if (
|
|
464
|
+
if (r2) {
|
|
465
465
|
m2 = Math.floor(o2 / 2);
|
|
466
466
|
const e3 = m2 + m2 / 2 + 1;
|
|
467
467
|
let t3 = null;
|
|
@@ -476,43 +476,43 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
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)}`, j(K, { children: [Z("path", { strokeWidth: m2, strokeDasharray: u2, d: w2, ...c2 }), f2] });
|
|
478
478
|
}, dt = (e2, t2) => e2.colStart === t2.colStart ? e2.rowStart - t2.rowStart : e2.colStart - t2.colStart, ct = (e2, t2) => e2.rowStart === t2.rowStart ? e2.colStart - t2.colStart : e2.rowStart - t2.rowStart, gt = (e2) => {
|
|
479
|
-
const { key: t2, points: o2, range:
|
|
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];
|
|
482
482
|
let w2 = 1 + (d2 ? f2 - m2 : p2 - h2), v2 = 0;
|
|
483
|
-
const q2 =
|
|
483
|
+
const q2 = r2.getColor().toRGBA(i2).toString(), y2 = u2.description.toLowerCase().includes("double");
|
|
484
484
|
let C2, b2;
|
|
485
485
|
const S2 = d2 ? "rowStart" : "colStart", x2 = d2 ? "rowEnd" : "colEnd", k2 = d2 ? m2 : h2;
|
|
486
486
|
if (c2?.length > 0) {
|
|
487
487
|
const e3 = c2[0];
|
|
488
|
-
if (e3?.range[S2] ===
|
|
488
|
+
if (e3?.range[S2] === l2[S2]) {
|
|
489
489
|
const t4 = n.BuiltInDefinitions.get(e3.stroke.getStyle());
|
|
490
490
|
v2 = Math.floor(t4.width / 2);
|
|
491
491
|
}
|
|
492
492
|
const t3 = c2[c2.length - 1];
|
|
493
|
-
if (t3?.range[x2] ===
|
|
493
|
+
if (t3?.range[x2] === l2[x2]) {
|
|
494
494
|
const e4 = n.BuiltInDefinitions.get(c2[c2.length - 1].stroke.getStyle());
|
|
495
495
|
w2 = Math.floor(w2 + (2 === e4.width ? 0 : e4.width / 2));
|
|
496
496
|
}
|
|
497
497
|
if (y2) {
|
|
498
498
|
const e4 = d2 ? "colStart" : "rowStart", t4 = d2 ? "colEnd" : "rowEnd", o3 = d2 ? g2?.getRowOffset : g2?.getColOffset;
|
|
499
|
-
let
|
|
499
|
+
let r3 = 0, i3 = 0;
|
|
500
500
|
C2 = [], b2 = [];
|
|
501
501
|
const a3 = c2.length;
|
|
502
502
|
for (let s3 = 0; s3 < a3; s3++) {
|
|
503
503
|
const a4 = c2[s3];
|
|
504
504
|
if (a4.stroke.getStyle() === n.StrokeStyle.Double && o3) {
|
|
505
505
|
const n2 = o3(a4.range[S2]) - (k2 - v2);
|
|
506
|
-
a4.range[e4] <
|
|
506
|
+
a4.range[e4] < l2[e4] && (C2.push(n2 - r3), r3 = n2, C2.push(1), r3++), a4.range[t4] > l2[t4] && (b2.push(n2 - i3), i3 = n2, b2.push(1), i3++);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
C2.length > 0 &&
|
|
509
|
+
C2.length > 0 && r3 < w2 && C2.push(w2 - r3), b2.length > 0 && i3 < w2 && b2.push(w2 - i3);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
let T2 = d2 ? -Math.floor(u2.width / 2) : -v2, R2 = d2 ? -v2 : -Math.floor(u2.width / 2);
|
|
513
513
|
const M2 = s2 && u2.width > 2 ? -1 : 0;
|
|
514
514
|
return Z(st, { offsetX: h2 + T2 + M2, offsetY: m2 + R2 + M2, length: w2 + v2, isVertical: d2, stroke: q2, width: u2.width, dashArray: C2 ?? u2.pattern, dashArrayAdditional: b2, isDouble: y2, isAngled: u2.description.toLowerCase().includes("slant") }, t2);
|
|
515
|
-
}, ut = ({ getBorderAt: e2, borderRenderer: t2 = gt, getVisibleCells: o2, darkMode:
|
|
515
|
+
}, ut = ({ getBorderAt: e2, borderRenderer: t2 = gt, getVisibleCells: o2, darkMode: l2, forceThinBorder: r2 = false, defaultColor: i2 = "black", shiftIfWide: a2 = false }) => {
|
|
516
516
|
const s2 = S(o2, [o2]);
|
|
517
517
|
return { overlay: ne(() => (o3) => {
|
|
518
518
|
const d2 = o3.toClipBounds(o3.getRangeCoordsBounds(), -3);
|
|
@@ -521,23 +521,23 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
521
521
|
if (0 === c2.length) return;
|
|
522
522
|
const g2 = o3.getVisibleColumnOffsets(), u2 = o3.getVisibleRowOffsets();
|
|
523
523
|
let h2 = [], m2 = [];
|
|
524
|
-
const p2 = o3.getVisibleColumns(), f2 = o3.getVisibleRows(), w2 = [], v2 = [], q2 = [], y2 = (e3, t3, o4, n2,
|
|
525
|
-
const a3 = { index: n2, stroke:
|
|
524
|
+
const p2 = o3.getVisibleColumns(), f2 = o3.getVisibleRows(), w2 = [], v2 = [], q2 = [], y2 = (e3, t3, o4, n2, l3, r3, i3) => {
|
|
525
|
+
const a3 = { index: n2, stroke: l3, visibleIndex: o4, edge: r3, length: i3 };
|
|
526
526
|
e3[t3] || (e3[t3] = []), e3[t3].length > 0 && e3[t3][e3[t3].length - 1]?.index === n2 ? e3[t3][e3[t3].length - 1] = a3 : e3[t3].push(a3);
|
|
527
527
|
}, C2 = o3.getVisibleRangeCoords(), b2 = c2.length;
|
|
528
528
|
for (let t3 = 0; t3 < b2; t3++) {
|
|
529
|
-
const o4 = c2[t3],
|
|
530
|
-
if (!
|
|
531
|
-
const
|
|
532
|
-
if (!Q.isRangesIntersect(
|
|
533
|
-
const i3 =
|
|
534
|
-
if (
|
|
535
|
-
const e3 = u2[
|
|
536
|
-
h2.push({ ...
|
|
529
|
+
const o4 = c2[t3], l3 = o4.coords;
|
|
530
|
+
if (!l3) continue;
|
|
531
|
+
const r3 = o4?.range ?? { rowStart: l3.rowIndex, colStart: l3.colIndex, rowEnd: l3.rowIndex, colEnd: l3.colIndex };
|
|
532
|
+
if (!Q.isRangesIntersect(r3, C2) && !Q.isRangeWithinRange(r3, C2)) continue;
|
|
533
|
+
const i3 = l3.colIndex, a3 = l3.rowIndex, s3 = g2[i3], d3 = u2[a3];
|
|
534
|
+
if (r3.rowEnd !== r3.rowStart) {
|
|
535
|
+
const e3 = u2[r3.rowStart]?.spanIndex ?? -1, t4 = u2[r3.rowEnd]?.spanIndex ?? u2[f2[f2.length - 1]].spanIndex + 1;
|
|
536
|
+
h2.push({ ...r3, rowStart: e3, rowEnd: t4 });
|
|
537
537
|
}
|
|
538
|
-
if (
|
|
539
|
-
const e3 = g2[
|
|
540
|
-
m2.push({ ...
|
|
538
|
+
if (r3.colEnd !== r3.colStart) {
|
|
539
|
+
const e3 = g2[r3.colStart]?.spanIndex ?? -1, t4 = g2[r3.colEnd]?.spanIndex ?? g2[p2[p2.length - 1]].spanIndex + 1;
|
|
540
|
+
m2.push({ ...r3, colStart: e3, colEnd: t4 });
|
|
541
541
|
}
|
|
542
542
|
const q3 = o4.value, b3 = e2(q3, t3);
|
|
543
543
|
if (!b3 || b3.isEmpty()) continue;
|
|
@@ -549,33 +549,33 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
549
549
|
}
|
|
550
550
|
const S2 = (e3, t3, o4) => {
|
|
551
551
|
const n2 = [];
|
|
552
|
-
return e3.forEach((e4,
|
|
553
|
-
let
|
|
552
|
+
return e3.forEach((e4, l3) => {
|
|
553
|
+
let r3 = null;
|
|
554
554
|
e4.sort((e5, t4) => e5.visibleIndex - t4.visibleIndex);
|
|
555
555
|
const a3 = e4.length;
|
|
556
556
|
for (let s3 = 0; s3 < a3; s3++) {
|
|
557
557
|
const a4 = e4[s3];
|
|
558
558
|
if (!a4?.stroke) continue;
|
|
559
|
-
if (void 0 === t3[
|
|
559
|
+
if (void 0 === t3[l3] && void 0 === t3[l3 - 1]) continue;
|
|
560
560
|
let d3 = false;
|
|
561
561
|
if (o4) {
|
|
562
562
|
const e5 = h2.length;
|
|
563
563
|
for (let t4 = 0; !d3 && t4 < e5; t4++) {
|
|
564
564
|
let e6 = h2[t4];
|
|
565
|
-
e6.colStart <= a4.index && e6.colEnd >= a4.index && e6.rowStart <
|
|
565
|
+
e6.colStart <= a4.index && e6.colEnd >= a4.index && e6.rowStart < l3 && e6.rowEnd >= l3 && (d3 = true);
|
|
566
566
|
}
|
|
567
567
|
} else {
|
|
568
568
|
const e5 = m2.length;
|
|
569
569
|
for (let t4 = 0; !d3 && t4 < e5; t4++) {
|
|
570
570
|
let e6 = m2[t4];
|
|
571
|
-
e6.rowStart <= a4.index && e6.rowEnd >= a4.index && e6.colStart <
|
|
571
|
+
e6.rowStart <= a4.index && e6.rowEnd >= a4.index && e6.colStart < l3 && e6.colEnd >= l3 && (d3 = true);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
if (d3) continue;
|
|
575
575
|
const c3 = a4.stroke?.getColor(), g3 = c3 ? c3.toRGBA().toString() : i2, u3 = a4.stroke.getStyle() + ":" + g3;
|
|
576
|
-
(u3 !==
|
|
576
|
+
(u3 !== r3?.key || r3 && r3.visibleIndex + 1 < a4.visibleIndex) && (r3 && n2.push(r3), r3 = { key: u3, index: t3[l3] ?? t3[l3 - 1] + 1, visibleIndex: a4.visibleIndex, edge: a4.edge, stroke: a4.stroke, from: a4.index, to: a4.index + a4.length - 1, intersections: [], length: 1 }), r3.to = a4.index + a4.length - 1, r3.visibleIndex = a4.visibleIndex;
|
|
577
577
|
}
|
|
578
|
-
|
|
578
|
+
r3 && n2.push(r3);
|
|
579
579
|
}), n2;
|
|
580
580
|
};
|
|
581
581
|
h2 = h2.sort(ct), m2 = m2.sort(dt);
|
|
@@ -594,52 +594,52 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
594
594
|
const n2 = k2[e3];
|
|
595
595
|
let i3 = n2.stroke;
|
|
596
596
|
const s3 = `rBorder:${n2.index}:${n2.from}:${n2.to}:${n2.edge}`, d3 = { rowStart: n2.index, rowEnd: n2.index, colStart: n2.from, colEnd: n2.to + 1 }, c3 = o3.getLayout(), g3 = false, u3 = c3.getColOffset(d3.colStart), h3 = c3.getRowOffset(d3.rowStart), m3 = [u3, h3, c3.getColOffset(d3.colEnd), h3];
|
|
597
|
-
q2.push(t2({ key: s3, points: m3, stroke: i3, darkMode:
|
|
597
|
+
q2.push(t2({ key: s3, points: m3, stroke: i3, darkMode: l2, forceThinBorder: r2, shiftIfWide: a2, range: d3, intersections: n2.intersections, layout: c3, isVertical: g3 }));
|
|
598
598
|
}
|
|
599
599
|
const R2 = x2.length;
|
|
600
600
|
for (let e3 = 0; e3 < R2; e3++) {
|
|
601
601
|
const n2 = x2[e3];
|
|
602
602
|
let i3 = n2.stroke;
|
|
603
603
|
const s3 = `cBorder:${n2.index}:${n2.from}:${n2.to}:${n2.edge}`, d3 = { rowStart: n2.from, rowEnd: n2.to + 1, colStart: n2.index, colEnd: n2.index }, c3 = o3.getLayout(), g3 = true, u3 = c3.getColOffset(d3.colStart), h3 = [u3, c3.getRowOffset(d3.rowStart), u3, c3.getRowOffset(d3.rowEnd)];
|
|
604
|
-
q2.push(t2({ key: s3, stroke: i3, points: h3, darkMode:
|
|
604
|
+
q2.push(t2({ key: s3, stroke: i3, points: h3, darkMode: l2, forceThinBorder: r2, shiftIfWide: a2, range: d3, intersections: n2.intersections, layout: c3, isVertical: g3 }));
|
|
605
605
|
}
|
|
606
606
|
return Z("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: q2 }, "borders");
|
|
607
|
-
}, [e2,
|
|
607
|
+
}, [e2, l2]) };
|
|
608
608
|
}, ht = Y.Center, mt = Object.freeze({ horizontal: false, vertical: false }), pt = J.EmptyTopLeft, ft = (e2, t2) => Q.EmptyCell, wt = (e2, t2) => new Promise((e3, t3) => {
|
|
609
609
|
t3("StaticBorderRenderer does not support scrolling");
|
|
610
610
|
}), vt = oe((e2) => {
|
|
611
|
-
const { getBorderAt: t2, width: o2, height: n2, style:
|
|
611
|
+
const { getBorderAt: t2, width: o2, height: n2, style: l2, rowCount: r2 = 2, columnCount: i2 = 2, darkMode: a2, forceThinBorder: s2, children: d2, ...c2 } = e2, g2 = ie(null), [u2, { width: h2, height: m2 }] = Me(), p2 = o2 ?? h2, f2 = n2 ?? m2, w2 = ne(() => {
|
|
612
612
|
const e3 = [];
|
|
613
|
-
for (let t3 = 0; t3 <
|
|
613
|
+
for (let t3 = 0; t3 < r2; t3++) for (let o3 = 0; o3 < i2; o3++) {
|
|
614
614
|
const n3 = { colIndex: o3, rowIndex: t3 };
|
|
615
615
|
e3.push({ coords: n3, value: n3 });
|
|
616
616
|
}
|
|
617
617
|
return e3;
|
|
618
|
-
}, []), v2 = de((e3) => w2, [w2]), { overlay: q2 } = ut({ getVisibleCells: v2, getBorderAt: t2, darkMode: a2, forceThinBorder: s2 }), y2 = Math.floor(p2 / i2), C2 = Math.floor(f2 /
|
|
618
|
+
}, []), v2 = de((e3) => w2, [w2]), { overlay: q2 } = ut({ getVisibleCells: v2, 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 = ne(() => {
|
|
619
619
|
const e3 = {}, t3 = Math.floor(p2 / i2);
|
|
620
620
|
for (let o3 = 0; o3 < i2; o3++) e3[o3] = { offset: o3 * t3, size: t3, spanIndex: o3 };
|
|
621
621
|
return e3;
|
|
622
622
|
}, [p2, f2]), T2 = ne(() => {
|
|
623
|
-
const e3 = {}, t3 = Math.floor(f2 /
|
|
624
|
-
for (let o3 = 0; o3 <
|
|
623
|
+
const e3 = {}, t3 = Math.floor(f2 / r2);
|
|
624
|
+
for (let o3 = 0; o3 < r2; o3++) e3[o3] = { offset: o3 * t3, size: t3, spanIndex: o3 };
|
|
625
625
|
return e3;
|
|
626
626
|
}, [p2, f2]);
|
|
627
627
|
if (!q2) return null;
|
|
628
628
|
const R2 = { width: p2, height: f2 }, M2 = { width: p2, height: f2 }, A2 = { getStage: () => g2.current, getTotalSize: () => R2, getViewportSize: () => M2, getLayout: () => b2, getCellCoordsAsRangeCoords: Q.cellToRange, getVisibleRangeCoords: () => S2, getVisibleRows: () => {
|
|
629
629
|
const e3 = [];
|
|
630
|
-
for (let t3 = 0; t3 <
|
|
630
|
+
for (let t3 = 0; t3 < r2; t3++) e3.push(t3);
|
|
631
631
|
return e3;
|
|
632
632
|
}, getTotalRangeCoords: () => S2, getRelativePointFromClient: (e3, t3) => ({ x: e3, y: t3 }), getVisibleColumns: () => {
|
|
633
633
|
const e3 = [];
|
|
634
634
|
for (let t3 = 0; t3 < i2; t3++) e3.push(t3);
|
|
635
635
|
return e3;
|
|
636
636
|
}, toClipBounds: (e3, t3) => x2, toViewBounds: (e3) => e3, toAbsoluteBounds: (e3) => e3, getBounds: () => x2, getInsets: () => null, getRangeCoordsBounds: (e3, t3) => null, getVisibleColumnOffsets: () => k2, getVisibleRowOffsets: () => T2, allViews: () => ({ [ht]: A2 }), getAnchor: () => ht, getZoom: () => 1, scrollCellCoordsIntoView: wt, getCellCoordsFromClient: ft, getScrollOrientation: () => mt, getScrollTopLeft: () => pt, getFreezeTopLeft: () => pt }, z2 = q2(A2);
|
|
637
|
-
return j("div", { style: { ...
|
|
637
|
+
return j("div", { style: { ...l2, position: "relative", display: "flex" }, ...c2, children: [Z("div", { ref: Re([g2, u2]), style: { flex: "1 1 100%", display: "flex", maxWidth: "100%", maxHeight: "100%" }, children: d2 }), z2] });
|
|
638
638
|
}), qt = "_sheetxl-sheet_1qeq6_5", yt = "_viewport-overlay_1qeq6_6", Ct = (e2) => {
|
|
639
639
|
const { style: t2, ...o2 } = e2 ?? {};
|
|
640
640
|
return j("svg", { style: { width: "135px", height: "37px", ...t2 }, viewBox: "0 0 135 37", ...o2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" }), Z("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" })] });
|
|
641
641
|
}, bt = oe((e2) => {
|
|
642
|
-
const { colorLicensee: t2 = "blue", colorError: o2 = "red", colorCredits: n2 = "grey", credits:
|
|
642
|
+
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] = le(null);
|
|
643
643
|
te.useEffect(() => {
|
|
644
644
|
(async () => {
|
|
645
645
|
const e3 = await d.getDetails();
|
|
@@ -650,51 +650,51 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
650
650
|
const e3 = s2?.getExceptions(), t3 = e3?.length ?? 0;
|
|
651
651
|
if (0 === t3) return null;
|
|
652
652
|
const n3 = [];
|
|
653
|
-
for (let
|
|
654
|
-
const t4 = e3[
|
|
655
|
-
n3.push(Z("div", { style: { opacity: 0.8, fontSize: "16px", textAlign: "left", color: o2 }, children: t4 },
|
|
653
|
+
for (let l3 = 0; l3 < t3; l3++) {
|
|
654
|
+
const t4 = e3[l3];
|
|
655
|
+
n3.push(Z("div", { style: { opacity: 0.8, fontSize: "16px", textAlign: "left", color: o2 }, children: t4 }, l3));
|
|
656
656
|
}
|
|
657
657
|
return n3;
|
|
658
658
|
}, [s2, o2]);
|
|
659
659
|
if (null === s2) return null;
|
|
660
|
-
if (s2.isValidFor(
|
|
660
|
+
if (s2.isValidFor(r2)) return null;
|
|
661
661
|
const p2 = s2.getType(), f2 = !m2 && p2.endsWith("ity"), w2 = s2.getLicensee(), v2 = f2 ? 1.6 : 1, q2 = 135 / v2, y2 = 37 / v2;
|
|
662
662
|
let C2 = null;
|
|
663
|
-
return !p2 && w2?.length > 0 && (C2 = Z("div", { style: { opacity: 0.7, fontWeight: "500", fontSize: "16px", textAlign: "left", color: t2 }, children: w2 })), Z("div", { style: { pointerEvents: "none", display: "flex", flexDirection: "column", overflow: "hidden", ...i2 }, ...a2, children: j("div", { style: { position: "relative", display: "flex", flexDirection: "column" }, children: [g2 ? Z(Ct, { style: h2 }) : Z("svg", { width: q2, height: y2, style: h2, children: Z("image", { style: { width: q2, height: y2 }, href: "https://www.sheetxl.com/watermark.svg", onError: () => u2(true) }) }), j("div", { children: [C2, m2, Z("div", { style: { height: "0px", fontSize: "16px", textAlign: "left", width: "0px", opacity: 0.8, color: n2 }, children:
|
|
663
|
+
return !p2 && w2?.length > 0 && (C2 = Z("div", { style: { opacity: 0.7, fontWeight: "500", fontSize: "16px", textAlign: "left", color: t2 }, children: w2 })), Z("div", { style: { pointerEvents: "none", display: "flex", flexDirection: "column", overflow: "hidden", ...i2 }, ...a2, children: j("div", { style: { position: "relative", display: "flex", flexDirection: "column" }, children: [g2 ? Z(Ct, { style: h2 }) : Z("svg", { width: q2, height: y2, style: h2, children: Z("image", { style: { width: q2, height: y2 }, href: "https://www.sheetxl.com/watermark.svg", onError: () => u2(true) }) }), j("div", { children: [C2, m2, Z("div", { style: { height: "0px", fontSize: "16px", textAlign: "left", width: "0px", opacity: 0.8, color: n2 }, children: l2 })] })] }) });
|
|
664
664
|
}), St = (e2, t2, o2) => {
|
|
665
665
|
const n2 = ie(t2);
|
|
666
666
|
n2.current = t2;
|
|
667
|
-
const
|
|
667
|
+
const l2 = o2?.fireOnModelChange ?? true;
|
|
668
668
|
ae(() => {
|
|
669
669
|
if (!e2 || !n2.current) return;
|
|
670
|
-
const t3 = Object.keys(n2.current),
|
|
670
|
+
const t3 = Object.keys(n2.current), r2 = {}, i2 = t3.length;
|
|
671
671
|
for (let e3 = 0; e3 < i2; e3++) {
|
|
672
672
|
const o3 = t3[e3];
|
|
673
|
-
|
|
673
|
+
r2[o3] = (e4, t4) => {
|
|
674
674
|
n2.current[o3]?.(e4, t4);
|
|
675
675
|
};
|
|
676
676
|
}
|
|
677
|
-
const a2 = e2.addListeners(
|
|
678
|
-
if (
|
|
679
|
-
|
|
677
|
+
const a2 = e2.addListeners(r2, o2);
|
|
678
|
+
if (l2) for (let o3 = 0; o3 < i2; o3++) {
|
|
679
|
+
r2[t3[o3]](e2);
|
|
680
680
|
}
|
|
681
681
|
return () => {
|
|
682
682
|
a2?.();
|
|
683
683
|
};
|
|
684
684
|
}, [e2]);
|
|
685
685
|
}, xt = (e2, t2, o2, n2) => {
|
|
686
|
-
const
|
|
687
|
-
|
|
688
|
-
const
|
|
686
|
+
const l2 = ie(o2);
|
|
687
|
+
l2.current = o2;
|
|
688
|
+
const r2 = n2?.fireOnAddressChange ?? true;
|
|
689
689
|
ae(() => {
|
|
690
|
-
if (!e2 || !t2 || !
|
|
690
|
+
if (!e2 || !t2 || !l2.current) {
|
|
691
691
|
const e3 = { getSource: () => null, getFrom: () => null, getTo: () => null, trigger: "delete", isDataChange: false, isTransactional: false, isUndo: false, timeStamp: Date.now() };
|
|
692
|
-
return void
|
|
692
|
+
return void l2.current?.(e3);
|
|
693
693
|
}
|
|
694
694
|
const o3 = (e3) => {
|
|
695
|
-
|
|
695
|
+
l2.current?.(e3);
|
|
696
696
|
}, i2 = e2.getRange(t2).addListener(o3, n2);
|
|
697
|
-
if (
|
|
697
|
+
if (r2) {
|
|
698
698
|
const n3 = e2.getRange(t2);
|
|
699
699
|
o3({ getSource: () => n3, getFrom: () => null, getTo: () => null, trigger: "modelChange", isDataChange: false, isTransactional: false, isUndo: false, timeStamp: Date.now() });
|
|
700
700
|
}
|
|
@@ -725,20 +725,20 @@ const kt = new class {
|
|
|
725
725
|
e2 = (e2 = e2.toLowerCase()).replace(/\/+$/g, "");
|
|
726
726
|
for (const o2 of this._taskPanes.values()) {
|
|
727
727
|
const n2 = o2.contributionPoints;
|
|
728
|
-
if (n2 && 0 !== n2.length) for (let
|
|
728
|
+
if (n2 && 0 !== n2.length) for (let l2 of n2) l2.startsWith(e2) && t2.push(o2);
|
|
729
729
|
}
|
|
730
730
|
return t2;
|
|
731
731
|
}
|
|
732
732
|
}(), Tt = ce(void 0), Rt = ({ children: e2, createArea: t2, onUpdateArea: o2, registry: n2 = kt }) => {
|
|
733
|
-
const
|
|
734
|
-
|
|
733
|
+
const l2 = te.useRef(null), r2 = te.useRef(null), [i2, a2] = te.useState(null), [s2, d2] = te.useState(null), c2 = te.useMemo(() => ({ activateTaskPane(e3, t3) {
|
|
734
|
+
r2.current !== e3 && (l2.current ? l2.current.activateTaskPane(e3, t3) : (a2(e3), g2(e3)));
|
|
735
735
|
} }), []), g2 = S((e3) => {
|
|
736
|
-
const
|
|
736
|
+
const l3 = t2({ registry: n2, onClose: () => {
|
|
737
737
|
d2(null), o2?.(null);
|
|
738
738
|
} }, (e4) => {
|
|
739
739
|
e4 && d2(e4);
|
|
740
740
|
});
|
|
741
|
-
return o2?.(
|
|
741
|
+
return o2?.(l3), l3;
|
|
742
742
|
}, [t2, n2, i2]);
|
|
743
743
|
return te.useEffect(() => {
|
|
744
744
|
s2 && i2 && (s2.activateTaskPane(i2, { focus: true }), a2(null));
|
|
@@ -748,26 +748,26 @@ const kt = new class {
|
|
|
748
748
|
} }, At = () => {
|
|
749
749
|
const e2 = ge(Tt);
|
|
750
750
|
return e2 || Mt;
|
|
751
|
-
}, zt = { TaskPaneArea: "_TaskPaneArea_6dmgk_5", TaskPaneTitle: "_TaskPaneTitle_6dmgk_13", TaskPaneFrame: "_TaskPaneFrame_6dmgk_36", TaskPaneStrip: "_TaskPaneStrip_6dmgk_52", TaskPaneStripItem: "_TaskPaneStripItem_6dmgk_60" }, Ft = oe(
|
|
752
|
-
const { children: o2, title: n2, icon:
|
|
751
|
+
}, zt = { TaskPaneArea: "_TaskPaneArea_6dmgk_5", TaskPaneTitle: "_TaskPaneTitle_6dmgk_13", TaskPaneFrame: "_TaskPaneFrame_6dmgk_36", TaskPaneStrip: "_TaskPaneStrip_6dmgk_52", TaskPaneStripItem: "_TaskPaneStripItem_6dmgk_60" }, Ft = oe(re((e2, t2) => {
|
|
752
|
+
const { children: o2, title: n2, icon: l2, onClose: r2, readOnly: i2, focused: a2, style: s2, className: d2, ...c2 } = e2, g2 = ne(() => Ae("taskpane-title", d2, zt.TaskPaneTitle, { focused: a2 }), [d2, a2]);
|
|
753
753
|
return j("div", { ref: t2, className: g2, style: s2, ...c2, children: [Z("div", { className: "title", style: { flex: "1 1 100%" }, children: n2 }), Z("div", { "aria-label": "close", role: "button", style: { width: 24, height: 24, borderRadius: "50%", display: "flex", alignItems: "center", justifyContent: "center", cursor: "pointer" }, onPointerDown: (e3) => {
|
|
754
754
|
e3.stopPropagation();
|
|
755
755
|
}, onPointerUp: () => {
|
|
756
|
-
|
|
756
|
+
r2();
|
|
757
757
|
}, children: Z("div", { style: { fontSize: "0.7em" }, children: "✕" }) })] });
|
|
758
758
|
}));
|
|
759
759
|
Ft.displayName = "TaskPaneTitle";
|
|
760
|
-
const Dt = (e2, t2) => Z(Ft, { ...e2, ref: t2 }),
|
|
761
|
-
const { children: o2, entry: n2, close:
|
|
760
|
+
const Dt = (e2, t2) => Z(Ft, { ...e2, ref: t2 }), Et = oe(re((e2, t2) => {
|
|
761
|
+
const { children: o2, entry: n2, close: l2, listenerContainer: r2, model: i2, commands: a2, onMounted: s2, onUnmounted: d2, paneWrapper: c2, paneProps: g2, renderTaskPanelTitle: u2 = Dt, style: h2, className: m2, ...p2 } = e2, [f2, w2] = le(null), [v2, q2] = le(false), y2 = S(l2, [l2]), C2 = ie(null), b2 = ie(null);
|
|
762
762
|
ae(() => (s2?.(n2), () => {
|
|
763
763
|
d2?.(n2);
|
|
764
764
|
}), [n2]);
|
|
765
765
|
const x2 = ie([]), k2 = ne(() => ({ addListener: (e3) => {
|
|
766
|
-
const t3 =
|
|
766
|
+
const t3 = r2(e3);
|
|
767
767
|
return x2.current.push(t3), t3;
|
|
768
768
|
}, close: () => {
|
|
769
769
|
y2?.();
|
|
770
|
-
} }), [
|
|
770
|
+
} }), [r2]);
|
|
771
771
|
ae(() => () => {
|
|
772
772
|
for (const e3 of x2.current) e3();
|
|
773
773
|
x2.current = [];
|
|
@@ -784,30 +784,30 @@ const Dt = (e2, t2) => Z(Ft, { ...e2, ref: t2 }), It = oe(le((e2, t2) => {
|
|
|
784
784
|
}, onBlur: (e3) => {
|
|
785
785
|
f2 && !C2?.current?.contains(e3.relatedTarget) && w2(null), e3.relatedTarget && q2(false);
|
|
786
786
|
}, ...p2, children: [Z("div", { style: { flex: "0 0 auto", display: "flex", flexDirection: "column", width: "100%", alignItems: "stretch", justifyContent: "stretch" }, children: T2 }), Z("div", { className: "taskpane-frame-content", style: { flex: "1 1 auto", minHeight: 0, width: "100%", overflow: "auto", height: "100%", display: "flex" }, children: R2 })] });
|
|
787
|
-
})),
|
|
788
|
-
const { children: o2, title: n2, taskPanes:
|
|
787
|
+
})), It = oe(re((e2, t2) => {
|
|
788
|
+
const { children: o2, title: n2, taskPanes: l2, onSelect: r2, selected: i2, registry: a2 = kt, style: s2, className: d2, ...c2 } = e2, g2 = ne(() => l2.map((t3) => {
|
|
789
789
|
const o3 = a2.getRegisteredTaskPane(t3);
|
|
790
790
|
if (!o3) return null;
|
|
791
791
|
let n3 = o3.getIcon?.();
|
|
792
792
|
n3 && ("string" == typeof n3 && (n3 = Z(z, { iconKey: n3 })), n3 = Z("span", { style: { display: "inline-block", transform: "rotate(90deg)", transformOrigin: "center" }, children: n3 }));
|
|
793
793
|
return j("div", { style: { writingMode: "vertical-rl", textOrientation: "mixed", display: "flex", alignItems: "center", justifyContent: "space-between", gap: "4px", minWidth: "0px" }, className: Ae("taskpane-strip-item", zt.TaskPaneStripItem, { selected: t3 === i2 }), onClick: () => e2.onSelect(t3), children: [n3, o3.getTitle()] }, t3);
|
|
794
|
-
}), [
|
|
794
|
+
}), [l2, i2, r2, a2]), u2 = b(t2, () => ({ isTaskPaneStrip: () => true }), []), h2 = ne(() => Ae("taskpane-strip", d2, zt.TaskPaneStrip), [d2]);
|
|
795
795
|
return Z("div", { ref: u2, className: h2, style: s2, ...c2, children: g2 });
|
|
796
796
|
}));
|
|
797
|
-
|
|
798
|
-
const Nt = (e2, t2) => Z(
|
|
799
|
-
const { className: o2 = "", registry: n2 = kt, model:
|
|
797
|
+
It.displayName = "TaskPaneStrip";
|
|
798
|
+
const Nt = (e2, t2) => Z(It, { ref: t2, ...e2 }), Ht = oe(re((e2, t2) => {
|
|
799
|
+
const { className: o2 = "", registry: n2 = kt, model: l2, commands: r2, onOpen: i2, onClose: a2, paneWrapper: s2, paneProps: d2, frameWrapper: c2, frameProps: g2, renderTaskPanelTitle: u2, renderTaskPaneStrip: h2 = Nt, alwaysShowStrip: m2, style: p2 } = e2, f2 = S(i2, [i2]), w2 = S(a2, [a2]), [v2, q2] = le(null), y2 = ie(null), [C2, x2] = le([]), k2 = ie(/* @__PURE__ */ new Set()), T2 = S(async (e3, t3 = false) => {
|
|
800
800
|
const o3 = Array.from(k2.current), n3 = o3.length;
|
|
801
|
-
let
|
|
802
|
-
for (let e4 = 0;
|
|
801
|
+
let l3 = true;
|
|
802
|
+
for (let e4 = 0; l3 && e4 < n3; e4++) {
|
|
803
803
|
const t4 = o3[e4];
|
|
804
804
|
if (t4.onBeforeHide) try {
|
|
805
|
-
false === await Promise.resolve(t4.onBeforeHide()) && (
|
|
805
|
+
false === await Promise.resolve(t4.onBeforeHide()) && (l3 = false);
|
|
806
806
|
} catch (e5) {
|
|
807
|
-
|
|
807
|
+
l3 = false;
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
|
-
return
|
|
810
|
+
return l3;
|
|
811
811
|
}, []), R2 = S((e3) => {
|
|
812
812
|
const t3 = Array.from(k2.current), o3 = t3.length;
|
|
813
813
|
x2((t4) => {
|
|
@@ -831,9 +831,9 @@ const Nt = (e2, t2) => Z(Et, { ref: t2, ...e2 }), Ht = oe(le((e2, t2) => {
|
|
|
831
831
|
if (!await T2(v2.key)) return;
|
|
832
832
|
}
|
|
833
833
|
const o3 = te.createRef();
|
|
834
|
-
let i3 = Z(
|
|
834
|
+
let i3 = Z(Et, { ref: () => {
|
|
835
835
|
y2.current = null;
|
|
836
|
-
}, entry: t3, model:
|
|
836
|
+
}, entry: t3, model: l2, commands: r2, close: async () => {
|
|
837
837
|
await T2(e3) && R2(e3);
|
|
838
838
|
}, paneWrapper: s2, paneProps: d2, renderTaskPanelTitle: u2, listenerContainer: (e4) => {
|
|
839
839
|
k2.current.add(e4);
|
|
@@ -854,8 +854,8 @@ const Nt = (e2, t2) => Z(Et, { ref: t2, ...e2 }), Ht = oe(le((e2, t2) => {
|
|
|
854
854
|
}, [v2, c2, s2, u2]);
|
|
855
855
|
ae(() => {
|
|
856
856
|
v2 && !y2.current && M2(v2.key);
|
|
857
|
-
}, [g2,
|
|
858
|
-
const A2 = b(t2, () => ({ activateTaskPane: M2 }), [n2, d2,
|
|
857
|
+
}, [g2, l2]);
|
|
858
|
+
const A2 = b(t2, () => ({ activateTaskPane: M2 }), [n2, d2, l2, r2]), z2 = ne(() => C2.map((e3) => e3.key), [C2]), F2 = ne(() => {
|
|
859
859
|
if (z2.length <= 1 && !m2) return null;
|
|
860
860
|
return h2({ className: zt.TaskPaneAreaStrip, taskPanes: z2, selected: v2?.key, onSelect: (e3) => {
|
|
861
861
|
M2(e3);
|
|
@@ -864,26 +864,26 @@ const Nt = (e2, t2) => Z(Et, { ref: t2, ...e2 }), Ht = oe(le((e2, t2) => {
|
|
|
864
864
|
return j("div", { ref: A2, className: Ae("taskpane-area", o2, zt.TaskPaneArea), style: p2, children: [D2, F2] });
|
|
865
865
|
})), Pt = new h("transparent");
|
|
866
866
|
function Vt(e2) {
|
|
867
|
-
const { sheet:
|
|
867
|
+
const { sheet: r2, onRepeatCommandChange: i2, bodyStyle: d2, commands: h2, target: p2, onStartEdit: f2, getViewport: w2 } = e2, v2 = F(), q2 = At(), [y2, C2] = le(null), [b2, x2] = le(null), A2 = ie(null), z2 = S(f2, [f2]), H2 = S(w2, [w2]), [P2, V2] = le(), [L2, B2] = le(() => r2?.getStyles().parseColor(c.Scheme.Bg2)), [O2, $2] = le(() => r2?.getStyles().getNormal().getFont().getFill()), W2 = D();
|
|
868
868
|
ie(W2.getMode()).current = W2.getMode();
|
|
869
|
-
const U2 =
|
|
870
|
-
if (A2.current !==
|
|
871
|
-
const e3 =
|
|
869
|
+
const U2 = E(), [_2, G2] = le(X.EmptyArray), K2 = de(() => {
|
|
870
|
+
if (A2.current !== r2) return;
|
|
871
|
+
const e3 = r2.getSelectedRanges();
|
|
872
872
|
let t2 = null;
|
|
873
873
|
_2.length > 0 && Q.isCellWithinRange(y2, _2[0].getRange().getCoords()) && (t2 = _2[0]);
|
|
874
|
-
const o2 =
|
|
874
|
+
const o2 = r2?.getSelectedCell(), n2 = o2?.getCoords() ?? null;
|
|
875
875
|
ze(() => {
|
|
876
876
|
he2(t2), C2(n2), x2(e3);
|
|
877
877
|
});
|
|
878
|
-
}, [
|
|
878
|
+
}, [r2, _2, b2, y2]), Y2 = de(X.debounce(K2, 210), [K2]);
|
|
879
879
|
ae(() => {
|
|
880
|
-
A2.current =
|
|
881
|
-
}, [
|
|
882
|
-
const J2 = S(() =>
|
|
880
|
+
A2.current = r2, K2();
|
|
881
|
+
}, [r2]);
|
|
882
|
+
const J2 = S(() => r2.getRange(y2).getCell(), [r2, y2]), ee2 = S(async (e3, t2, o2 = null, n2 = false, l2 = true) => {
|
|
883
883
|
const a2 = e3?.label?.(), s2 = async () => {
|
|
884
|
-
const e4 = await Promise.resolve(
|
|
884
|
+
const e4 = await Promise.resolve(l2 && v2.showBusy(a2 ?? "Busy..."));
|
|
885
885
|
try {
|
|
886
|
-
await
|
|
886
|
+
await r2.doBatch(async () => t2(r2), a2), n2 && W2.setMode(null), e4 && e4();
|
|
887
887
|
} catch (t3) {
|
|
888
888
|
if (e4 && e4(), !t3) return;
|
|
889
889
|
v2.showError(t3);
|
|
@@ -908,110 +908,110 @@ function Vt(e2) {
|
|
|
908
908
|
i2(t3);
|
|
909
909
|
}
|
|
910
910
|
return g2();
|
|
911
|
-
}, [
|
|
912
|
-
const
|
|
913
|
-
o2 &&
|
|
914
|
-
})), [
|
|
911
|
+
}, [r2, i2, v2]), te2 = S((e3, t2, o2 = false, n2) => (n2 || (n2 = { autoSelect: true, autoFit: true }), ee2(e3, (e4) => {
|
|
912
|
+
const l2 = e4.getSelectedRanges();
|
|
913
|
+
o2 && l2.getStyle().update(null, n2), l2.getStyle().update(t2, n2);
|
|
914
|
+
})), [r2]), oe2 = S((e3, t2, o2) => {
|
|
915
915
|
ee2(e3, (e4) => {
|
|
916
916
|
let n2 = t2;
|
|
917
917
|
(o2 || t2?.address) && (n2 = n2 ?? {}, !o2 && t2?.address?.startsWith("#") ? o2 = t2?.address.substring(1) : o2 && (n2.displayText = o2)), e4.getSelectedRange().setHyperlink(n2);
|
|
918
918
|
});
|
|
919
|
-
}, [
|
|
919
|
+
}, [r2]), re2 = S((e3, t2) => {
|
|
920
920
|
ee2(e3, (e4) => {
|
|
921
921
|
e4.getSelectedRange().setComments(t2);
|
|
922
922
|
});
|
|
923
|
-
}, [
|
|
923
|
+
}, [r2]), se2 = S((e3, t2) => {
|
|
924
924
|
ee2(e3, (e4) => {
|
|
925
925
|
e4.getSelectedRanges().clear(t2);
|
|
926
926
|
});
|
|
927
|
-
}, [
|
|
928
|
-
let
|
|
929
|
-
o2 && (t2 === s.Orientation.Row ?
|
|
930
|
-
let
|
|
927
|
+
}, [r2]), ce2 = S(async (e3, t2, o2 = false, n2 = false) => ee2(e3, async (e4) => {
|
|
928
|
+
let l2 = e4.getSelectedRanges();
|
|
929
|
+
o2 && (t2 === s.Orientation.Row ? l2 = l2.getEntireRows(n2) : t2 === s.Orientation.Column && (l2 = l2.getEntireColumns(n2)));
|
|
930
|
+
let r3 = null;
|
|
931
931
|
const i3 = W2.getMode()?.key;
|
|
932
932
|
if ("copy" === i3 || "cut" === i3) {
|
|
933
933
|
const e5 = await U2.getClipboard().readReference();
|
|
934
|
-
e5 && "range" === e5.getItemType() && (
|
|
934
|
+
e5 && "range" === e5.getItemType() && (r3 = e5.getItem(), r3.getCoords() || (r3 = null));
|
|
935
935
|
}
|
|
936
|
-
if (
|
|
937
|
-
const e5 = await
|
|
936
|
+
if (r3) {
|
|
937
|
+
const e5 = await l2.insertFrom(r3, { ...r3.getMarkOptions(), orientation: t2, autoSelect: true });
|
|
938
938
|
!e5 || e5.isEntireRows() || e5.isEntireColumns() || e5.autoFit({ orientations: s.Orientations.Row, minContent: true }), W2.setMode(null);
|
|
939
|
-
} else
|
|
940
|
-
}, "Insert Cells", false), [W2]), [ge2, he2] =
|
|
941
|
-
|
|
942
|
-
}, [
|
|
939
|
+
} else l2.insert({ orientation: t2, autoSelect: true });
|
|
940
|
+
}, "Insert Cells", false), [W2]), [ge2, he2] = le(null), me2 = S((e3) => r2.getStyles().setDefaultTableStyle(e3), [r2]), pe2 = S((e3) => {
|
|
941
|
+
r2.getStyles().getTableStyle(e3)?.delete();
|
|
942
|
+
}, [r2]), fe2 = S((e3, t2) => {
|
|
943
943
|
ee2(e3, async (e4) => {
|
|
944
944
|
const o2 = e4.getSelectedRange(), n2 = e4.getSelectedCell().getCoords();
|
|
945
|
-
let
|
|
945
|
+
let l2 = null, r3 = 0;
|
|
946
946
|
const i3 = n2.rowIndex > 0 ? e4.getRange({ rowIndex: n2.rowIndex, colIndex: n2.colIndex }).getExtended(s.Direction.Up) : null;
|
|
947
|
-
i3 && e4.getRange({ colStart: n2.colIndex, rowStart: i3.getCoords().rowStart, colEnd: n2.colIndex, rowEnd: i3.getCoords().rowStart }).isContentful() && (
|
|
947
|
+
i3 && e4.getRange({ colStart: n2.colIndex, rowStart: i3.getCoords().rowStart, colEnd: n2.colIndex, rowEnd: i3.getCoords().rowStart }).isContentful() && (l2 = s.Direction.Up, r3 = n2.rowIndex - i3.getCoords().rowEnd);
|
|
948
948
|
const a2 = n2.colIndex > 0 ? e4.getRange({ rowIndex: n2.rowIndex, colIndex: n2.colIndex - 1 }).getExtended(s.Direction.Left) : null;
|
|
949
949
|
if (a2 && e4.getRange({ colStart: a2.getCoords().colStart, rowStart: n2.rowIndex, colEnd: a2.getCoords().colStart, rowEnd: n2.rowIndex }).isContentful()) {
|
|
950
950
|
const e5 = n2.colIndex - a2.getCoords().colEnd;
|
|
951
|
-
(e5 <
|
|
951
|
+
(e5 < r3 || !l2) && (l2 = s.Direction.Left, r3 = e5);
|
|
952
952
|
}
|
|
953
953
|
let d3 = null;
|
|
954
|
-
if (
|
|
954
|
+
if (l2 === s.Direction.Up) {
|
|
955
955
|
if (d3 = { ...i3.getCoords() }, (d3.rowEnd === n2.rowIndex || !e4.getRange({ colIndex: n2.colIndex, rowIndex: n2.rowIndex - 1 }).isContentful()) && d3.rowStart > 0 && e4.getRange({ colIndex: n2.colIndex, rowIndex: d3.rowStart - 1 }).isContentful()) {
|
|
956
956
|
const e5 = i3.getExtended(s.Direction.Up);
|
|
957
957
|
d3 = { colStart: n2.colIndex, rowStart: e5.getCoords().rowStart, colEnd: n2.colIndex, rowEnd: i3.getCoords().rowEnd };
|
|
958
958
|
}
|
|
959
959
|
d3.rowEnd = n2.rowIndex - 1;
|
|
960
|
-
} else if (
|
|
960
|
+
} else if (l2 === s.Direction.Left) {
|
|
961
961
|
if (d3 = { ...a2.getCoords() }, (d3.colEnd === n2.colIndex || !e4.getRange({ colIndex: n2.colIndex - 1, rowIndex: n2.rowIndex }).isContentful()) && d3.colStart > 0 && e4.getRange({ colIndex: d3.colStart - 1, rowIndex: n2.rowIndex }).isContentful()) {
|
|
962
962
|
const e5 = a2.getExtended(s.Direction.Left);
|
|
963
963
|
d3 = { colStart: e5.getCoords().colStart, rowStart: n2.rowIndex, colEnd: e5.getCoords().colEnd, rowEnd: n2.rowIndex };
|
|
964
964
|
}
|
|
965
965
|
d3.colEnd = n2.colIndex - 1;
|
|
966
966
|
}
|
|
967
|
-
if (1 !== o2.size &&
|
|
968
|
-
const n3 = o2.getCoords(),
|
|
967
|
+
if (1 !== o2.size && l2) {
|
|
968
|
+
const n3 = o2.getCoords(), r4 = o2.startIncrementalUpdates({ orientation: s.Orientation.Column }), i4 = { ...d3 }, a3 = n3.rowStart, c2 = n3.rowEnd, g2 = n3.colStart, u2 = n3.colEnd, h3 = l2 === s.Direction.Up;
|
|
969
969
|
for (let o3 = g2; o3 <= u2; o3++) {
|
|
970
970
|
i4.colStart = h3 ? o3 : d3.colStart + (o3 - g2), i4.colEnd = h3 ? o3 : d3.colEnd + (o3 - g2);
|
|
971
971
|
for (let n4 = a3; n4 <= c2; n4++) {
|
|
972
972
|
i4.rowStart = h3 ? d3.rowStart + (n4 - a3) : n4, i4.rowEnd = h3 ? d3.rowEnd + (n4 - a3) : n4;
|
|
973
|
-
const
|
|
974
|
-
|
|
973
|
+
const l3 = e4.getRange(i4).toString();
|
|
974
|
+
r4.pushAt(n4, o3, `=${t2}(${l3})`);
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
|
-
|
|
977
|
+
r4.apply();
|
|
978
978
|
} else {
|
|
979
979
|
const o3 = d3 ? e4.getRange(d3).toString() : "", n3 = `=${t2}(`;
|
|
980
980
|
z2?.({ text: `${n3}${o3})`, editMode: true, initialSelection: { start: n3.length, end: n3.length + o3.length } });
|
|
981
981
|
}
|
|
982
982
|
}, false);
|
|
983
|
-
}, [
|
|
984
|
-
ee2(e3, async (
|
|
985
|
-
let
|
|
983
|
+
}, [r2]), we2 = S((e3, t2, o2 = false, n2 = true) => {
|
|
984
|
+
ee2(e3, async (l2) => {
|
|
985
|
+
let r3 = null;
|
|
986
986
|
if (ge2) return void ge2.updateStyleOptions(t2);
|
|
987
987
|
{
|
|
988
|
-
const e4 =
|
|
988
|
+
const e4 = l2.getSelectedRanges().getFixed(true), t3 = l2.getSelectedRange().getDefaultSortCriteria();
|
|
989
989
|
let o3 = { ranges: e4, hasHeader: t3?.options?.hasHeader ?? false };
|
|
990
|
-
|
|
990
|
+
r3 = n2 ? new Promise((e5, t4) => {
|
|
991
991
|
const n3 = { tableOptions: o3, onCancel: () => {
|
|
992
992
|
t4();
|
|
993
993
|
}, onDone: (t5) => {
|
|
994
994
|
e5(t5);
|
|
995
|
-
}, context: { getNames: () =>
|
|
995
|
+
}, context: { getNames: () => l2.getNames() } };
|
|
996
996
|
v2.showWindow?.("tableNew", n3);
|
|
997
997
|
}) : { option: "Ok", tableOptions: o3 };
|
|
998
998
|
}
|
|
999
|
-
const i3 = await Promise.resolve(
|
|
999
|
+
const i3 = await Promise.resolve(r3);
|
|
1000
1000
|
if ("Ok" !== i3?.option) throw null;
|
|
1001
1001
|
const a2 = await Promise.resolve(v2.showBusy(e3.label()));
|
|
1002
1002
|
try {
|
|
1003
|
-
const e4 =
|
|
1003
|
+
const e4 = l2.getTables().add(i3.tableOptions.ranges.at(0), { styleName: t2?.name, clearFormatting: o2, hasHeader: i3.tableOptions.hasHeader });
|
|
1004
1004
|
await e4.getRange().select();
|
|
1005
1005
|
} catch (e4) {
|
|
1006
1006
|
a2(), v2.showError(e4);
|
|
1007
1007
|
}
|
|
1008
1008
|
a2();
|
|
1009
1009
|
}, false, true, false);
|
|
1010
|
-
}, [ge2]), ve2 = S(() => d2, [d2]), qe2 = S((e3) => ({ styles: () =>
|
|
1010
|
+
}, [ge2]), ve2 = S(() => d2, [d2]), qe2 = S((e3) => ({ styles: () => r2.getStyles(), table: () => e3, bodyStyle: ve2, getNames: () => r2.getNames() }), [r2]), ye2 = S(async (e3, t2, o2, n2 = true) => {
|
|
1011
1011
|
if (!t2) {
|
|
1012
|
-
let e4 =
|
|
1012
|
+
let e4 = r2.getSelectedRange();
|
|
1013
1013
|
1 === e4.size && (e4 = e4.getSurrounding());
|
|
1014
|
-
let o3 =
|
|
1014
|
+
let o3 = r2.getTables().getItems({ address: r2.getSelectedRange() });
|
|
1015
1015
|
o3.length > 0 && (t2 = o3[0]), await e4.select();
|
|
1016
1016
|
}
|
|
1017
1017
|
if (!t2) return;
|
|
@@ -1020,11 +1020,11 @@ function Vt(e2) {
|
|
|
1020
1020
|
} catch (e4) {
|
|
1021
1021
|
}
|
|
1022
1022
|
if (!n2) return;
|
|
1023
|
-
const
|
|
1023
|
+
const l2 = new Promise(async (o3, n3) => {
|
|
1024
1024
|
e3.update({ context: qe2(t2) }), q2.activateTaskPane("tableDetails", {}), o3(true);
|
|
1025
1025
|
});
|
|
1026
1026
|
try {
|
|
1027
|
-
if (!await
|
|
1027
|
+
if (!await l2) return;
|
|
1028
1028
|
} catch (e4) {
|
|
1029
1029
|
v2.showError(e4);
|
|
1030
1030
|
}
|
|
@@ -1032,7 +1032,7 @@ function Vt(e2) {
|
|
|
1032
1032
|
let n2 = null;
|
|
1033
1033
|
if (t2) t2.isITable ? n2 = t2 : t2.getValue() && (n2 = t2.getValue());
|
|
1034
1034
|
else {
|
|
1035
|
-
const e4 =
|
|
1035
|
+
const e4 = r2.getTables().getItems({ address: r2.getSelectedRange() });
|
|
1036
1036
|
e4.length > 0 && (n2 = e4[0]);
|
|
1037
1037
|
}
|
|
1038
1038
|
if (n2) {
|
|
@@ -1049,19 +1049,19 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1049
1049
|
}
|
|
1050
1050
|
}, [v2]), be2 = S((e3, t2, o2) => {
|
|
1051
1051
|
ee2(e3, async (n2) => {
|
|
1052
|
-
let
|
|
1053
|
-
if (
|
|
1054
|
-
let
|
|
1055
|
-
1 ===
|
|
1052
|
+
let l2 = n2.getSelectedRanges();
|
|
1053
|
+
if (l2.getCount() > 1) throw new Error("Can not sort on multiple cell ranges. Please select a single range and try again.");
|
|
1054
|
+
let r3 = l2.at(0);
|
|
1055
|
+
1 === r3.size && (r3 = r3.getSurrounding());
|
|
1056
1056
|
const i3 = n2.getSelection().getCoords().cell;
|
|
1057
|
-
let a2 =
|
|
1057
|
+
let a2 = r3.getDefaultSortCriteria(s.Orientation.Row, i3);
|
|
1058
1058
|
if (!a2) {
|
|
1059
1059
|
if (o2) throw new Error("Invalid sort selection. Sort requires a single range with data.");
|
|
1060
1060
|
return;
|
|
1061
1061
|
}
|
|
1062
1062
|
let d3 = a2.options;
|
|
1063
1063
|
if (o2 && (d3 = new Promise((e4, t3) => {
|
|
1064
|
-
const o3 = { range:
|
|
1064
|
+
const o3 = { range: r3, options: a2.options, cell: i3, onCancel: () => {
|
|
1065
1065
|
t3();
|
|
1066
1066
|
}, onDone: (o4) => {
|
|
1067
1067
|
o4 ? e4(o4.options) : t3();
|
|
@@ -1070,9 +1070,9 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1070
1070
|
})), d3 = await Promise.resolve(d3), !d3) return;
|
|
1071
1071
|
const c2 = await Promise.resolve(v2.showBusy(e3.label()));
|
|
1072
1072
|
try {
|
|
1073
|
-
|
|
1073
|
+
r3.doBatch(() => {
|
|
1074
1074
|
const e4 = { ...d3, ...t2 };
|
|
1075
|
-
|
|
1075
|
+
r3.sort(e4), r3.autoFit({ orientations: e4?.orientation === s.Orientation.Column ? s.Orientations.Column : s.Orientations.Row, skipCustomSize: true, minContent: true });
|
|
1076
1076
|
}, e3?.label?.());
|
|
1077
1077
|
} catch (e4) {
|
|
1078
1078
|
c2(), v2.showError(e4);
|
|
@@ -1081,7 +1081,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1081
1081
|
}, false, false, false);
|
|
1082
1082
|
}, [v2]), Se2 = S(() => {
|
|
1083
1083
|
console.log("compactedSelection");
|
|
1084
|
-
const e3 =
|
|
1084
|
+
const e3 = r2.getSelection().getCoords(), t2 = r2.getSelectedRanges().getFlattened().getCoords(), o2 = ((e4) => {
|
|
1085
1085
|
const t3 = new Blob([e4], { type: "application/javascript" }), o3 = URL.createObjectURL(t3), n3 = new Worker(o3);
|
|
1086
1086
|
return URL.revokeObjectURL(o3), n3;
|
|
1087
1087
|
})("console.log('hello from worker');");
|
|
@@ -1091,75 +1091,75 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1091
1091
|
let n2 = -1;
|
|
1092
1092
|
for (let o3 = 0; -1 === n2 && o3 < t2.length; o3++) Q.isCellWithinRange(e3.cell, t2[o3]) && (n2 = o3);
|
|
1093
1093
|
if (Q.isEqualRangesArrays(e3.ranges, t2)) return;
|
|
1094
|
-
const
|
|
1095
|
-
|
|
1096
|
-
}, [
|
|
1094
|
+
const l2 = { cell: e3.cell, ranges: t2, rangeIndex: n2 };
|
|
1095
|
+
r2.getSelection().updateCoords(l2);
|
|
1096
|
+
}, [r2]), xe2 = S(() => {
|
|
1097
1097
|
console.log("selectComments");
|
|
1098
|
-
}, [
|
|
1098
|
+
}, [r2]), ke2 = S(async (e3 = false, t2 = false) => {
|
|
1099
1099
|
let o2 = null;
|
|
1100
|
-
if (t2) o2 =
|
|
1100
|
+
if (t2) o2 = r2.getEntireRange();
|
|
1101
1101
|
else {
|
|
1102
|
-
const t3 =
|
|
1102
|
+
const t3 = r2.getSelectedRange();
|
|
1103
1103
|
if (t3.isEntireRange()) {
|
|
1104
|
-
const e4 =
|
|
1104
|
+
const e4 = r2.getSelection().getCoords().cell, t4 = r2.getRange(e4);
|
|
1105
1105
|
o2 = t4.getSurrounding(), o2.isEntireRange() && (o2 = t4);
|
|
1106
1106
|
} else o2 = t3.getSurrounding({ contentOnly: e3 });
|
|
1107
1107
|
}
|
|
1108
1108
|
o2 && await o2.select();
|
|
1109
|
-
}, [
|
|
1109
|
+
}, [r2]), Te2 = S((e3, t2, o2) => {
|
|
1110
1110
|
ee2(e3, async (e4) => {
|
|
1111
1111
|
let n2 = e4.getSelectedRanges();
|
|
1112
1112
|
o2 && (t2 === s.Orientation.Row ? n2 = n2.getEntireRows() : t2 === s.Orientation.Column && (n2 = n2.getEntireColumns())), n2.delete(t2);
|
|
1113
1113
|
}, "Delete Cells");
|
|
1114
|
-
}, [
|
|
1114
|
+
}, [r2]);
|
|
1115
1115
|
S(async (e3) => {
|
|
1116
1116
|
let t2 = null;
|
|
1117
|
-
const o2 = H2(), n2 = Math.min(o2.width - 8, 480),
|
|
1117
|
+
const o2 = H2(), n2 = Math.min(o2.width - 8, 480), l2 = Math.min(o2.height - 8, 288);
|
|
1118
1118
|
try {
|
|
1119
|
-
|
|
1120
|
-
t2 = await
|
|
1119
|
+
r2.getSelectedRanges();
|
|
1120
|
+
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(), W2.setMode(null);
|
|
1121
1121
|
} catch (e4) {
|
|
1122
1122
|
v2.showError(e4);
|
|
1123
1123
|
}
|
|
1124
1124
|
return t2;
|
|
1125
|
-
}, [
|
|
1125
|
+
}, [r2, v2]);
|
|
1126
1126
|
const Re2 = S(async (e3, t2, o2) => {
|
|
1127
1127
|
const n2 = await v2.showBusy(e3.label());
|
|
1128
1128
|
try {
|
|
1129
|
-
const e4 = await
|
|
1129
|
+
const e4 = await r2.getMovables().addImage(t2, { autoSelect: true, ...o2 });
|
|
1130
1130
|
return n2(), W2.setMode(null), e4;
|
|
1131
1131
|
} catch (e4) {
|
|
1132
1132
|
n2();
|
|
1133
1133
|
let t3 = e4;
|
|
1134
|
-
"string" != typeof t3 && (console.warn(e4), t3 = "Unable to resolve image."), v2.showMessage(t3, { type:
|
|
1134
|
+
"string" != typeof t3 && (console.warn(e4), t3 = "Unable to resolve image."), v2.showMessage(t3, { type: I.Error });
|
|
1135
1135
|
}
|
|
1136
|
-
}, [
|
|
1136
|
+
}, [r2, v2]), Me2 = S((e3, t2) => {
|
|
1137
1137
|
ee2(e3, async (o2) => {
|
|
1138
1138
|
const n2 = o2.getSelectedRanges();
|
|
1139
1139
|
n2.doBatch(() => {
|
|
1140
|
-
const e4 = t2 === s.Direction.Up || t2 === s.Direction.Down,
|
|
1141
|
-
for (let e5 = 0; e5 <
|
|
1142
|
-
const n3 =
|
|
1143
|
-
let
|
|
1144
|
-
const i3 = o2.getRange(
|
|
1140
|
+
const e4 = t2 === s.Direction.Up || t2 === s.Direction.Down, l2 = n2.getCoords().slice().sort(Q.createRangeComparator(e4 ? s.Orientation.Row : s.Orientation.Column));
|
|
1141
|
+
for (let e5 = 0; e5 < l2.length; e5++) {
|
|
1142
|
+
const n3 = l2[e5];
|
|
1143
|
+
let r3 = n3;
|
|
1144
|
+
const i3 = o2.getRange(r3).getMerges();
|
|
1145
1145
|
let a2 = 0, d3 = 0;
|
|
1146
1146
|
if (i3.length > 0) {
|
|
1147
1147
|
const e6 = i3[0];
|
|
1148
1148
|
a2 = e6.rowEnd - e6.rowStart, d3 = e6.colEnd - e6.colStart;
|
|
1149
1149
|
}
|
|
1150
|
-
t2 === s.Direction.Left ?
|
|
1150
|
+
t2 === s.Direction.Left ? r3 = { ...n3, colStart: n3.colEnd + d3 } : t2 === s.Direction.Right ? r3 = { ...n3, colEnd: n3.colStart + d3 } : t2 === s.Direction.Up ? r3 = { ...n3, rowStart: n3.rowEnd + a2 } : t2 === s.Direction.Down && (r3 = { ...n3, rowEnd: n3.rowStart + a2 }), o2.getRange(r3).autoFill(n3, { filler: g.Types.Copy }), o2.getRange(n3).autoFit({ orientations: s.Orientations.Row, skipCustomSize: true, minContent: true });
|
|
1151
1151
|
}
|
|
1152
1152
|
}, { autoSelect: true, description: e3.label() });
|
|
1153
1153
|
});
|
|
1154
1154
|
}, [v2]), Ae2 = S(() => {
|
|
1155
1155
|
let e3 = null;
|
|
1156
|
-
const t2 =
|
|
1156
|
+
const t2 = r2.getSelectedCell().getCoords();
|
|
1157
1157
|
if (t2?.rowIndex > 0) {
|
|
1158
|
-
const o2 =
|
|
1158
|
+
const o2 = r2.getRange({ rowIndex: t2.rowIndex - 1, colIndex: t2.colIndex }).getCell();
|
|
1159
1159
|
o2 && (e3 = o2.toTextUnformatted(true));
|
|
1160
1160
|
}
|
|
1161
1161
|
z2?.({ text: e3 });
|
|
1162
|
-
}, [
|
|
1162
|
+
}, [r2]), [Fe2, De2] = ue((e3) => e3 + 1, 0), [Ee2, Ie2] = ue((e3) => e3 + 1, 0), Ne2 = ne(() => [new T("gridlinesToggle", p2, { label: "Gridlines", scopedLabels: { view: "Gridlines" }, description: "Toggle whether the lines between rows and columns in the sheet are displayed." }), new T("sheetViewToggleGridlinesRows", p2, { label: "Row Gridlines", scopedLabels: { view: "Row Gridlines", gridlines: "Rows" }, description: "Toggle whether the lines between rows in the sheet are displayed." }), new T("sheetViewToggleGridlinesColumns", p2, { label: "Column Gridlines", scopedLabels: { view: "Columns Gridlines", gridlines: "Columns" }, description: "Toggle whether the lines between columns in the sheet are displayed." }), new T("sheetViewFormatGridlinesColor", p2, { label: "Gridlines Color", description: "Color the rows and column gridlines." }), new T("sheetViewToggleShowHeadings", p2, { label: "Headings", scopedLabels: { view: "Headings" }, description: "Toggle whether the row and column headings are displayed." }), new T("sheetViewToggleShowHeadingRows", p2, { label: "Row Headings", scopedLabels: { view: "Row Headings", headings: "Rows" }, description: "Toggle whether the row headings are displayed." }), new T("sheetViewToggleShowHeadingColumns", p2, { label: "Column Headings", scopedLabels: { view: "Columns Headings", headings: "Columns" }, description: "Toggle whether the column headings are displayed." }), new T("sheetViewToggleShowHeadingsNumeric", p2, { label: "Numeric Headers", description: "Toggle whether cell headings show numbers or A1 conventions.", shortcut: { key: "h", modifiers: [R.Ctrl, R.Shift] } }), new T("sheetViewToggleFormulaView", p2, { label: "Show Formulas", description: "Toggle whether cells show formula or values.", icon: "FormulaView", shortcut: [{ key: "`", modifiers: [R.Ctrl] }, { key: "`", modifiers: [R.Ctrl, R.Shift] }] }), new T("sheetViewToggleShowZeros", p2, { label: "Show Zeros", description: "Toggle whether cell with zero value shows '0' or blank.", icon: "ViewZero" }), new k("selectComments", p2, { label: "Select Comments", description: "Select the cells with comments.", shortcut: { key: "O", modifiers: [R.Ctrl, R.Shift] } }, () => xe2()), new T("selectAll", p2, { label: "Select All", description: "Select the closest data or the entire sheet if no data is nearby.", shortcut: [{ key: "A", modifiers: [R.Ctrl] }, { key: "Space", modifiers: [R.Ctrl, R.Shift] }] }, (e3 = false) => ke2(false, e3)), new k("selectRegion", p2, { label: "Select Region", description: "Select the closest data.", shortcut: { key: "*", modifiers: [R.Ctrl, R.Shift] } }, () => ke2(true, false)), new k("breakSelection", p2, { label: "Select Visible", description: "Break the selection based on hidden rows and columns.", shortcut: { key: "Semicolon", modifiers: [R.Ctrl, R.Alt] } }, () => Se2()), new k("formatTextRotate0", p2, { label: "No Text Rotation", description: "Remove all text rotation.", icon: "TextRotation315" }), new k("formatTextRotate45", p2, { label: "Angle Clockwise", description: "Angle text 45 degrees downward.", icon: "TextRotation45" }), new k("formatTextRotate90", p2, { label: "Rotate Text Down", description: "Angle your text so that it aligns with the left.", icon: "TextRotation90" }), new k("formatTextRotate270", p2, { label: "Rotate Text Up", description: "Angle your text so that it aligns with the right.", icon: "TextRotation2702" }), new k("formatTextRotate315", p2, { label: "Angle Counterclockwise", description: "Angle text 45 degrees upward.", icon: "TextRotation315" }), new T("formatTextRotateCustom", p2, { label: "Custom Text Rotation", description: "Angle your text using a custom angle.", icon: "TextRotationCustom" }), new k("formatTextRotateVertical", p2, { label: "Vertical Text", description: "Stack text vertically.", icon: "TextRotationVertical" }), new k("sortAscending", p2, { label: "Sort Ascending", scopedLabels: { sort: "Ascending" }, description: "Lowest to Highest.", icon: "SortIncrease" }, function() {
|
|
1163
1163
|
be2(this, { reverse: false }, false);
|
|
1164
1164
|
}), new k("sortDescending", p2, { label: "Sort Descending", scopedLabels: { sort: "Descending" }, description: "Highest to Lowest.", icon: "SortDecrease" }, function() {
|
|
1165
1165
|
be2(this, { reverse: true }, false);
|
|
@@ -1228,15 +1228,15 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1228
1228
|
}), new T("insertFunctionMin", p2, { label: "Quick Min", scopedLabels: { insertFunction: "Min" }, description: "Quick minimum of the cells." }, function() {
|
|
1229
1229
|
fe2(this, "MIN");
|
|
1230
1230
|
}), new T("startEditCurrentTime", p2, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [R.Ctrl, R.Shift] } }, function() {
|
|
1231
|
-
z2?.({ text:
|
|
1231
|
+
z2?.({ text: r2.createTemporaryCell({ value: Ke(), style: { numberFormat: "Medium Time" } }).toText() });
|
|
1232
1232
|
}), new T("startEditCurrentDate", p2, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [R.Ctrl] } }, function() {
|
|
1233
|
-
z2?.({ text:
|
|
1234
|
-
}), new k("sheetZoomOut", p2, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [R.Ctrl, R.Alt] }, { key: "NumpadSubtract", modifiers: [R.Ctrl, R.Alt] }] }), new k("sheetZoomIn", p2, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [R.Ctrl, R.Alt] }, { key: "NumpadAdd", modifiers: [R.Ctrl, R.Alt] }] }), new k("sheetZoom100", p2, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [R.Ctrl, R.Alt] } }), new T("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.", icon: "
|
|
1233
|
+
z2?.({ text: r2.createTemporaryCell({ value: Ke(), style: { numberFormat: "Short Date" } }).toText() });
|
|
1234
|
+
}), new k("sheetZoomOut", p2, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [R.Ctrl, R.Alt] }, { key: "NumpadSubtract", modifiers: [R.Ctrl, R.Alt] }] }), new k("sheetZoomIn", p2, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [R.Ctrl, R.Alt] }, { key: "NumpadAdd", modifiers: [R.Ctrl, R.Alt] }] }), new k("sheetZoom100", p2, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [R.Ctrl, R.Alt] } }), new T("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.", icon: "HyperlinkInset", context: () => J2, shortcut: [{ key: "K", modifiers: [R.Ctrl] }, { key: "K", modifiers: [R.Ctrl, R.Alt] }] }, async function(e3, t2) {
|
|
1235
1235
|
const o2 = this, n2 = { context: t2.context(), onUpdateHyperlink: (e4, t3) => {
|
|
1236
1236
|
oe2(o2, e4, t3);
|
|
1237
1237
|
} };
|
|
1238
1238
|
v2.showWindow?.("hyperlink", n2);
|
|
1239
|
-
}), new T("openHyperlink", p2, { label: "Open Link", scopedLabels: { hyperlink: "Open" }, shortcut: { key: "Enter", modifiers: [R.Ctrl] }, description: "Open the hyperlink or goto another location within this document.", icon: "
|
|
1239
|
+
}), new T("openHyperlink", p2, { label: "Open Link", scopedLabels: { hyperlink: "Open" }, shortcut: { key: "Enter", modifiers: [R.Ctrl] }, description: "Open the hyperlink or goto another location within this document.", icon: "HyperlinkGoto", context: () => J2 }, async (e3, t2) => {
|
|
1240
1240
|
const o2 = t2.context()();
|
|
1241
1241
|
if (!o2) return;
|
|
1242
1242
|
const n2 = o2.getHyperlink();
|
|
@@ -1245,19 +1245,19 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1245
1245
|
} catch (e4) {
|
|
1246
1246
|
v2.showError(e4);
|
|
1247
1247
|
}
|
|
1248
|
-
}), new T("deleteHyperlink", p2, { label: "Delete Link", scopedLabels: { hyperlink: "Delete" }, description: "Remove the hyperlink.", context: () => J2 }, function(e3, t2) {
|
|
1248
|
+
}), new T("deleteHyperlink", p2, { label: "Delete Link", scopedLabels: { hyperlink: "Delete" }, icon: "HyperlinkDelete", description: "Remove the hyperlink.", context: () => J2 }, function(e3, t2) {
|
|
1249
1249
|
oe2(this, null, null);
|
|
1250
1250
|
}), new k("insertNote", p2, { label: "Insert Note", scopedLabels: { contextMenu: "Insert Note…", insert: "Note" }, shortcut: { key: "F2", modifiers: [R.Shift] }, description: "Add a note to the cell." }, (e3, t2) => {
|
|
1251
1251
|
((e4, t3) => {
|
|
1252
1252
|
e4?.showMessage?.(j("p", { style: { marginTop: "0px", marginBottom: "0px" }, children: [t3, " is not yet implemented.", Z("br", {}), Z("br", {}), "Please see the ", Z("a", { style: { whiteSpace: "nowrap" }, href: "https://www.sheetxl.com/docs/guides/introduction/roadmap", target: "_blank", rel: "noopener", children: "SheetXL Roadmap" }), "."] }));
|
|
1253
1253
|
})(v2, t2.label());
|
|
1254
|
-
}), new T("updateComments", p2, { label: "Comments", scopedLabels: { contextMenu: "Insert Comments…", insert: "Comments…" }, shortcut: { key: "M", modifiers: [R.Ctrl, R.Alt] }, description: "Add a comment to the current cell.", icon: "
|
|
1254
|
+
}), new T("updateComments", p2, { label: "Comments", scopedLabels: { contextMenu: "Insert Comments…", insert: "Comments…" }, shortcut: { key: "M", modifiers: [R.Ctrl, R.Alt] }, description: "Add a comment to the current cell.", icon: "CommentInsert", context: () => J2 }, async function(e3, t2) {
|
|
1255
1255
|
const o2 = this, n2 = { context: t2.context(), onUpdateComments: (e4) => {
|
|
1256
|
-
|
|
1256
|
+
re2(o2, e4);
|
|
1257
1257
|
} };
|
|
1258
1258
|
v2.showWindow?.("comments", n2);
|
|
1259
|
-
}), new T("deleteComments", p2, { label: "Delete Comments", description: "Remove any comments.", context: () => J2 }, function(e3, t2) {
|
|
1260
|
-
|
|
1259
|
+
}), new T("deleteComments", p2, { label: "Delete Comments", description: "Remove any comments.", icon: "CommentDelete", context: () => J2 }, function(e3, t2) {
|
|
1260
|
+
re2(this, null);
|
|
1261
1261
|
}), new T("insertImageFromFile", p2, { label: "Insert Image", scopedLabels: { contextMenu: "Insert Image…", insert: "Image…", insertImage: "From Device…" }, description: "Insert a picture from your device.", icon: "InsertImage" }, async function(e3 = null) {
|
|
1262
1262
|
let t2 = null, o2 = null;
|
|
1263
1263
|
"string" == typeof e3 ? o2 = e3 : t2 = e3?.file ? e3.file : e3, (t2 || (t2 = await X.openFileDialog(o2 ?? "image/*"), t2)) && await Re2(this, { file: t2 }, e3?.options);
|
|
@@ -1286,7 +1286,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1286
1286
|
}), new T("autoFilterToggle", p2, { label: "Toggle Filter", scopedLabels: { filter: "Filter" }, description: "Toggle Auto Filter on/off.", icon: "FilterToggle", shortcut: { key: "L", modifiers: [R.Ctrl, R.Shift] } }, function() {
|
|
1287
1287
|
const e3 = this.context().table();
|
|
1288
1288
|
e3 && e3.setShowFilterButton(!e3.getShowFilterButton());
|
|
1289
|
-
}), new T("autoFilterReapply", p2, { label: "Reapply Filter", scopedLabels: { filter: "Reapply" }, description: "Reapply the filter and sort with the latest changes.", icon: "FilterReapply", shortcut: { key: "L", modifiers: [R.Ctrl, R.Alt] } }), new T("autoFilterClear", p2, { label: "Clear Filter", scopedLabels: { filter: "Clear" }, description: "Clear the filters criteria from the current filter..", icon: "FilterClear" }), 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: [R.Ctrl] }, { key: '"', modifiers: [R.Ctrl, R.Shift] }] }, Ae2), new T("formatPainterToggle", p2, { label: "Format Painter", description: "Apply style to another part of your workbook.", icon: "FormatPaint" }), new k("insertCells", p2, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", icon: "InsertCells", shortcut: { key: "=", modifiers: [R.Ctrl, R.Shift] } }, function() {
|
|
1289
|
+
}), new T("autoFilterReapply", p2, { label: "Reapply Filter", scopedLabels: { filter: "Reapply" }, description: "Reapply the filter and sort with the latest changes.", icon: "FilterReapply", shortcut: { key: "L", modifiers: [R.Ctrl, R.Alt] } }), new T("autoFilterClear", p2, { label: "Clear Filter", scopedLabels: { filter: "Clear" }, description: "Clear the filters criteria from the current filter..", icon: "FilterClear" }), 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: [R.Ctrl] }, { key: '"', modifiers: [R.Ctrl, R.Shift] }] }, Ae2), new T("formatPainterToggle", p2, { label: "Format Painter", description: "Apply style to another part of your workbook.", icon: "FormatPaint.yellow" }), new k("insertCells", p2, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", icon: "InsertCells", shortcut: { key: "=", modifiers: [R.Ctrl, R.Shift] } }, function() {
|
|
1290
1290
|
ce2(this);
|
|
1291
1291
|
}), 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.", icon: "InsertCellsRight" }, function() {
|
|
1292
1292
|
ce2(this, s.Orientation.Column);
|
|
@@ -1330,7 +1330,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1330
1330
|
}), new k("formatIndentIncrease", p2, { label: "Increase Indent", description: "Move your content further from the border.", icon: "FormatIndentIncrease" }, function() {
|
|
1331
1331
|
return te2(this, (e3) => {
|
|
1332
1332
|
const t2 = { alignment: { indent: e3.getAlignment().getIndent() + 1 } };
|
|
1333
|
-
return e3.getAlignment().getHorizontal() ===
|
|
1333
|
+
return e3.getAlignment().getHorizontal() === l.HorizontalAlignment.General && (t2.alignment.horizontal = l.HorizontalAlignment.Left), t2;
|
|
1334
1334
|
});
|
|
1335
1335
|
}), new T("mergeToggle", p2, { label: "Merge", description: "Combine and center the contents into a single cell.", icon: "MergeAll", shortcut: { key: "m", modifiers: [R.Ctrl] } }), new k("mergeHorizontal", p2, { label: "Merge Horizontally", description: "Combine the contents into horizontal rows.", icon: "MergeHorizontal" }), new k("mergeVertical", p2, { label: "Merge Vertically", description: "Combine the contents into vertical columns.", icon: "MergeVertical" }), new k("unmerge", p2, { label: "Unmerge", description: "Split merged cells into multiple cells.", icon: "MergeUnMerge" }), new k("clearContents", p2, { label: "Clear Contents", scopedLabels: { clear: "Contents" }, icon: "ClearContents", description: "Clear only the contents in the cells.\n\nThe formatting is not cleared.", shortcut: { key: "Delete" } }, function() {
|
|
1336
1336
|
se2(this, o.Content.Values);
|
|
@@ -1345,134 +1345,134 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1345
1345
|
}), new T("freezeToggle", p2, { label: "Freeze Panes", description: "Keep rows and columns visible while the rest of the sheet scrolls (based on current selection).", icon: "FreezeBoth" }), new T("freezeToggleHorizontal", p2, { label: "Freeze Top Rows", description: "Keep the top rows visible while scrolling through the rest of the sheet.", icon: "FreezeRows" }), new T("freezeToggleVertical", p2, { label: "Freeze Left Columns", description: "Keep the left columns visible while scrolling through the rest of the sheet.", icon: "FreezeColumns" }), new k("unfreeze", p2, { label: "Unfreeze Panes", description: "Unfreeze both the rows and columns.", icon: "MergeUnMerge" }), new k("autoFitRows", p2, { label: "Autofit Rows", description: "Adjust the rows to the best height.", icon: "RowsResizeAuto" }), new k("resizeRows", p2, { label: "Resize Rows", description: "Resize the rows to the specified height.", icon: "RowsResize", disabled: true }), new k("autoFitColumns", p2, { label: "Autofit Columns", description: "Adjust the columns to the best width.", icon: "ColumnsResizeAuto" }), new k("resizeColumns", p2, { label: "Resize Columns", description: "Resize the columns to the specified width.", icon: "ColumnsResize", disabled: true })], []), He2 = ne(() => {
|
|
1346
1346
|
let e3 = null;
|
|
1347
1347
|
return e3 = h2 ? h2.createChildGroup(p2, "sheet", false) : new M(p2, "sheet"), e3.addCommands(Ne2, true), e3;
|
|
1348
|
-
}, [h2, Ne2]), [Pe2, Ve2] =
|
|
1348
|
+
}, [h2, Ne2]), [Pe2, Ve2] = le(false), [Le2, Be2] = le(false);
|
|
1349
1349
|
ae(() => {
|
|
1350
|
-
if (A2.current !==
|
|
1351
|
-
const e3 = b2.getCoords(), t2 =
|
|
1350
|
+
if (A2.current !== r2 || !b2) return;
|
|
1351
|
+
const e3 = b2.getCoords(), t2 = r2.getTables().getItems({ address: e3[0] });
|
|
1352
1352
|
G2((e4) => X.isEqualArrays(e4, t2) ? e4 : t2), y2 && t2[0] && Q.isCellWithinRange(y2, t2[0].getRange().getCoords()) ? he2(t2[0] ?? null) : he2(null);
|
|
1353
|
-
const o2 =
|
|
1353
|
+
const o2 = r2.getSelectedRanges(), n2 = o2.getMerges().length > 0, l2 = o2.isOverlapping();
|
|
1354
1354
|
let i3 = true;
|
|
1355
1355
|
for (let t3 = 0; i3 && t3 < e3.length; t3++) i3 = Q.isSingleCell(e3[t3]);
|
|
1356
|
-
Be2(
|
|
1357
|
-
}, [
|
|
1358
|
-
const e3 = !
|
|
1356
|
+
Be2(l2), Ve2(0 === t2.length && !l2 && (n2 || !i3));
|
|
1357
|
+
}, [Ee2, b2, r2]), N(h2, null, { onChange: () => {
|
|
1358
|
+
const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = "formatPainter" === W2.getMode()?.key;
|
|
1359
1359
|
He2.getCommand("formatPainterToggle").update({ disabled: e3 || !h2?.getCommand("copy"), state: () => t2 }).updateCallback(() => {
|
|
1360
1360
|
if (t2) return void W2.setMode(null);
|
|
1361
1361
|
return He2.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` } });
|
|
1362
1362
|
});
|
|
1363
|
-
} }, [W2, Fe2, h2]), St(
|
|
1364
|
-
|
|
1365
|
-
} }), St(
|
|
1363
|
+
} }, [W2, Fe2, h2]), St(r2.getView(), { onFreezeSplitChange: () => {
|
|
1364
|
+
Ie2();
|
|
1365
|
+
} }), St(r2.getSelection(), { onChange: () => {
|
|
1366
1366
|
Y2();
|
|
1367
1367
|
} });
|
|
1368
1368
|
const Oe2 = () => {
|
|
1369
|
-
He2.getCommand("sheetViewFormatGridlinesColor").update({ state: () =>
|
|
1370
|
-
}, darkMode: d2.darkMode, autoColor:
|
|
1371
|
-
|
|
1372
|
-
}).update({ state: () =>
|
|
1373
|
-
}, darkMode: d2.darkMode, autoColor: Pt, schemeLookup:
|
|
1369
|
+
He2.getCommand("sheetViewFormatGridlinesColor").update({ state: () => r2.getView().getGridLineColor(), context: () => ({ onColorSelect: (e3) => {
|
|
1370
|
+
}, 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() }) }), He2.getCommand("formatSheetTabColor").updateCallback((e3) => {
|
|
1371
|
+
r2.setTabColor(e3);
|
|
1372
|
+
}).update({ state: () => r2?.getTabColor() ?? Pt, context: () => ({ onColorSelect: (e3) => {
|
|
1373
|
+
}, darkMode: d2.darkMode, autoColor: Pt, schemeLookup: r2.getStyles().schemeLookup(), recentColors: () => r2.getStyles().recentColors(), addRecentColor: (e3) => r2.getStyles().addRecentColor(e3), clearRecentColors: () => r2.getStyles().clearRecentColors() }) });
|
|
1374
1374
|
}, $e2 = () => {
|
|
1375
1375
|
He2.getCommand("formatBorder").update({ context: () => ({ onBorderSelect: (e3) => {
|
|
1376
1376
|
V2(e3);
|
|
1377
|
-
}, darkMode: d2.darkMode, quickBorder: P2, autoColor:
|
|
1377
|
+
}, darkMode: d2.darkMode, quickBorder: P2, autoColor: r2.getStyles().getNormal().getFont().getFill(), autoStyle: n.StrokeStyle.Thin, createTemporaryBorder: (e3) => r2.getStyles().getNormal().createTemporaryStyle({ border: e3 }).getBorder(), schemeLookup: r2.getStyles().schemeLookup() }) });
|
|
1378
1378
|
};
|
|
1379
1379
|
ae(() => {
|
|
1380
1380
|
$e2();
|
|
1381
1381
|
}, [P2]), ae(() => {
|
|
1382
|
-
const e3 = !
|
|
1382
|
+
const e3 = !r2.getProtection().isInsertHyperlinksAllowed();
|
|
1383
1383
|
He2.getCommand("openHyperlink").update({ disabled: !J2().getHyperlink() }), He2.getCommand("deleteHyperlink").update({ disabled: e3 || !J2().getHyperlink() });
|
|
1384
1384
|
const t2 = J2().getHyperlink() ? "Edit" : "Insert", o2 = "Link";
|
|
1385
|
-
He2.getCommand("updateHyperlink").update({ label: () => (J2().getHyperlink(), `${t2} ${o2}`), scopedLabels: { contextMenu: `${t2} ${o2}…`, insert: `${o2}…`, hyperlink: `${t2}…` }, disabled: e3 });
|
|
1385
|
+
He2.getCommand("updateHyperlink").update({ label: () => (J2().getHyperlink(), `${t2} ${o2}`), icon: () => "Edit" === t2 ? "HyperlinkEdit" : "HyperlinkInsert", scopedLabels: { contextMenu: `${t2} ${o2}…`, insert: `${o2}…`, hyperlink: `${t2}…` }, disabled: e3 });
|
|
1386
1386
|
}, [J2()?.getHyperlink(), Fe2]), ae(() => {
|
|
1387
1387
|
const e3 = J2().getComments(), t2 = () => e3 ? "Edit" : "Insert", o2 = () => e3 ? "Comments" : "Comment";
|
|
1388
|
-
He2.getCommand("updateComments").update({ label: () => `${t2()} ${o2()}`, scopedLabels: { contextMenu: `${t2()} ${o2()}…`, insert: `${o2()}…` } });
|
|
1389
|
-
}, [J2()?.getComments(), Fe2]), St(
|
|
1390
|
-
const e3 =
|
|
1391
|
-
He2.getCommand("sheetViewToggleFormulaView").update({ state: e3.isShowFormulas() }), He2.getCommand("sheetViewToggleShowZeros").update({ state: e3.isShowZeros() }), He2.getCommand("gridlinesToggle").update({ state: e3.isShowColumnGridlines() || e3.isShowRowGridlines() }), He2.getCommand("sheetViewToggleGridlinesColumns").update({ state: e3.isShowColumnGridlines() }), He2.getCommand("sheetViewToggleGridlinesRows").update({ state: e3.isShowRowGridlines() }), He2.getCommand("sheetViewToggleShowHeadings").update({ state: e3.isShowColumnHeaders() || e3.isShowRowHeaders() }), He2.getCommand("sheetViewToggleShowHeadingColumns").update({ state: e3.isShowColumnHeaders() }), He2.getCommand("sheetViewToggleShowHeadingRows").update({ state: e3.isShowRowHeaders() }), He2.getCommand("sheetViewToggleShowHeadingsNumeric").update({ state: () =>
|
|
1388
|
+
He2.getCommand("updateComments").update({ label: () => `${t2()} ${o2()}`, icon: () => e3 ? "CommentEdit" : "CommentInsert", scopedLabels: { contextMenu: `${t2()} ${o2()}…`, insert: `${o2()}…` } });
|
|
1389
|
+
}, [J2()?.getComments(), Fe2]), St(r2, { onViewChange: () => {
|
|
1390
|
+
const e3 = r2.getView();
|
|
1391
|
+
He2.getCommand("sheetViewToggleFormulaView").update({ state: e3.isShowFormulas() }), He2.getCommand("sheetViewToggleShowZeros").update({ state: e3.isShowZeros() }), He2.getCommand("gridlinesToggle").update({ state: e3.isShowColumnGridlines() || e3.isShowRowGridlines() }), He2.getCommand("sheetViewToggleGridlinesColumns").update({ state: e3.isShowColumnGridlines() }), He2.getCommand("sheetViewToggleGridlinesRows").update({ state: e3.isShowRowGridlines() }), He2.getCommand("sheetViewToggleShowHeadings").update({ state: e3.isShowColumnHeaders() || e3.isShowRowHeaders() }), He2.getCommand("sheetViewToggleShowHeadingColumns").update({ state: e3.isShowColumnHeaders() }), He2.getCommand("sheetViewToggleShowHeadingRows").update({ state: e3.isShowRowHeaders() }), He2.getCommand("sheetViewToggleShowHeadingsNumeric").update({ state: () => r2.getView().getColumnHeaderStyle() === u.HeaderTextStyle.Zero && r2.getView().getRowHeaderStyle() === u.HeaderTextStyle.Zero }), Oe2();
|
|
1392
1392
|
}, onTabColorChange: () => {
|
|
1393
1393
|
Oe2();
|
|
1394
1394
|
}, onMergesChange: () => {
|
|
1395
|
-
|
|
1395
|
+
Ie2();
|
|
1396
1396
|
}, onMovablesChange: () => {
|
|
1397
|
-
|
|
1397
|
+
Ie2();
|
|
1398
1398
|
}, onTablesChange: () => {
|
|
1399
|
-
|
|
1399
|
+
Ie2();
|
|
1400
1400
|
}, onProtectionChange: () => {
|
|
1401
|
-
|
|
1401
|
+
Ie2(), De2();
|
|
1402
1402
|
}, onStyleChange: () => {
|
|
1403
|
-
Oe2(), $e2(),
|
|
1403
|
+
Oe2(), $e2(), Ie2();
|
|
1404
1404
|
} }), ae(() => {
|
|
1405
1405
|
Oe2(), $e2();
|
|
1406
1406
|
}, [d2]), ae(() => {
|
|
1407
|
-
const e3 = !
|
|
1407
|
+
const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = _2.length > 0 && !ge2 || e3, o2 = qe2(ge2), n2 = { context: o2 };
|
|
1408
1408
|
He2.getCommand("editTable").update(n2), He2.getCommand("deleteTable").update(n2), He2.getCommand("convertTableToRange").update(n2);
|
|
1409
|
-
const
|
|
1410
|
-
He2.getCommand("formatTableStyle").update({ label: ge2 ? "Apply Table Style" : "Format As Table", ...
|
|
1409
|
+
const l2 = { context: o2, disabled: t2 };
|
|
1410
|
+
He2.getCommand("formatTableStyle").update({ label: ge2 ? "Apply Table Style" : "Format As Table", ...l2 }), He2.getCommand("formatTableStyleClearCellStyles").update(l2), He2.getCommand("deleteTableStyle").update(l2), He2.getCommand("convertTableToRange").update(l2), He2.getCommand("insertTable").update({ disabled: t2 || _2.length > 0 });
|
|
1411
1411
|
const i3 = { context: o2, disabled: t2 || 0 === _2.length };
|
|
1412
1412
|
He2.getCommand("tableHeaderRowToggle").update(i3), He2.getCommand("tableTotalRowToggle").update(i3), He2.getCommand("autoFilterToggle").update(i3), He2.getCommand("formatTableStyleClearTableStyle").update({ ...i3, disabled: i3.disabled || !ge2 || null === ge2.getStyleOptions().name });
|
|
1413
1413
|
}, [ge2, _2, Fe2]), ae(() => {
|
|
1414
1414
|
He2.getCommand("sheetZoomOut").updateCallback(() => {
|
|
1415
|
-
|
|
1415
|
+
r2.getView().update({ zoomScale: X.findNextStep(r2.getView().getZoomScale(), false) });
|
|
1416
1416
|
}), He2.getCommand("sheetZoomIn").updateCallback(() => {
|
|
1417
|
-
|
|
1417
|
+
r2.getView().update({ zoomScale: X.findNextStep(r2.getView().getZoomScale()) });
|
|
1418
1418
|
}), He2.getCommand("sheetZoom100").updateCallback(() => {
|
|
1419
|
-
|
|
1419
|
+
r2.getView().update({ zoomScale: 100 });
|
|
1420
1420
|
}), He2.getCommand("gridlinesToggle").updateCallback(() => {
|
|
1421
|
-
const e3 =
|
|
1422
|
-
|
|
1421
|
+
const e3 = r2.getView().isShowColumnGridlines() && r2.getView().isShowRowGridlines();
|
|
1422
|
+
r2.getView().update({ showColumnGridlines: !e3, showRowGridlines: !e3 });
|
|
1423
1423
|
}), He2.getCommand("sheetViewToggleGridlinesRows").updateCallback(() => {
|
|
1424
|
-
|
|
1424
|
+
r2.getView().update({ showRowGridlines: !r2.getView().isShowRowGridlines() });
|
|
1425
1425
|
}), He2.getCommand("sheetViewToggleGridlinesColumns").updateCallback(() => {
|
|
1426
|
-
|
|
1426
|
+
r2.getView().update({ showColumnGridlines: !r2.getView().isShowColumnGridlines() });
|
|
1427
1427
|
}), He2.getCommand("sheetViewFormatGridlinesColor").updateCallback((e3) => {
|
|
1428
|
-
|
|
1428
|
+
r2.getView().update({ gridLineColor: e3 });
|
|
1429
1429
|
}), He2.getCommand("sheetViewToggleShowHeadings").updateCallback(() => {
|
|
1430
|
-
const e3 =
|
|
1431
|
-
|
|
1430
|
+
const e3 = r2.getView().isShowColumnHeaders() && r2.getView().isShowRowHeaders();
|
|
1431
|
+
r2.getView().update({ showColumnHeaders: !e3, showRowHeaders: !e3 });
|
|
1432
1432
|
}), He2.getCommand("sheetViewToggleShowHeadingColumns").updateCallback(() => {
|
|
1433
|
-
|
|
1433
|
+
r2.getView().update({ showColumnHeaders: !r2.getView().isShowColumnHeaders() });
|
|
1434
1434
|
}), He2.getCommand("sheetViewToggleShowHeadingRows").updateCallback(() => {
|
|
1435
|
-
|
|
1435
|
+
r2.getView().update({ showRowHeaders: !r2.getView().isShowRowHeaders() });
|
|
1436
1436
|
}), He2.getCommand("sheetViewToggleShowHeadingsNumeric").updateCallback(() => {
|
|
1437
|
-
const e3 =
|
|
1438
|
-
|
|
1437
|
+
const e3 = r2.getView().getColumnHeaderStyle() === u.HeaderTextStyle.Zero && r2.getView().getRowHeaderStyle() === u.HeaderTextStyle.Zero;
|
|
1438
|
+
r2.getView().update({ columnHeaderStyle: e3 ? u.HeaderTextStyle.A1 : u.HeaderTextStyle.Zero, rowHeaderStyle: e3 ? u.HeaderTextStyle.One : u.HeaderTextStyle.Zero });
|
|
1439
1439
|
}), He2.getCommand("sheetViewToggleFormulaView").updateCallback(() => {
|
|
1440
|
-
|
|
1440
|
+
r2.getView().update({ showFormulas: !r2.getView().isShowFormulas() });
|
|
1441
1441
|
}), He2.getCommand("sheetViewToggleShowZeros").updateCallback(() => {
|
|
1442
|
-
|
|
1442
|
+
r2.getView().update({ showZeros: !r2.getView().isShowZeros() });
|
|
1443
1443
|
}), He2.getCommand("calculate").updateCallback(() => {
|
|
1444
|
-
|
|
1444
|
+
r2.getEntireRange().calculate(true);
|
|
1445
1445
|
}), He2.getCommand("insertFunction").update({ context: () => ({ searchByCategory: async (e3) => {
|
|
1446
|
-
const t2 =
|
|
1446
|
+
const t2 = r2.getWorkbook();
|
|
1447
1447
|
if (!t2) return X.EmptyArray;
|
|
1448
1448
|
const o2 = await t2.getScripts().searchFunctions({ category: e3, includeBuiltIn: true });
|
|
1449
1449
|
return o2.sort((e4, t3) => e4.getName().localeCompare(t3.getName())), o2;
|
|
1450
1450
|
} }) });
|
|
1451
|
-
}, [
|
|
1452
|
-
const e3 =
|
|
1451
|
+
}, [r2]), ae(() => {
|
|
1452
|
+
const e3 = r2.getView().getFreezePanes(), t2 = () => 0 !== e3.coords.rowIndex, o2 = () => 0 !== e3.coords.colIndex, n2 = () => 0 !== e3.coords.rowIndex || 0 !== e3.coords.colIndex;
|
|
1453
1453
|
He2.getCommand("freezeToggle").updateCallback(() => {
|
|
1454
|
-
n2() ?
|
|
1454
|
+
n2() ? r2.getView().setFreezePanes(null) : n2() ? o2() ? r2.getView().setFreezePanes({ coords: { rowIndex: y2.rowIndex } }) : t2() && r2.getView().setFreezePanes({ coords: { colIndex: y2.colIndex } }) : r2.getView().setFreezePanes({ coords: y2 });
|
|
1455
1455
|
}).update({ state: n2, disabled: () => !y2 || !n2() && 0 === y2.rowIndex && 0 === y2.colIndex }), He2.getCommand("freezeToggleHorizontal").updateCallback(() => {
|
|
1456
|
-
|
|
1456
|
+
r2.getView().setFreezePanes({ coords: { rowIndex: t2() ? 0 : y2.rowIndex } });
|
|
1457
1457
|
}).update({ state: t2, disabled: () => !y2 || !t2() && 0 === y2.rowIndex }), He2.getCommand("freezeToggleVertical").updateCallback(() => {
|
|
1458
|
-
|
|
1458
|
+
r2.getView().setFreezePanes({ coords: { colIndex: o2() ? 0 : y2.colIndex } });
|
|
1459
1459
|
}).update({ state: o2, disabled: () => !y2 || !o2() && 0 === y2.colIndex }), He2.getCommand("unfreeze").updateCallback(() => {
|
|
1460
|
-
|
|
1460
|
+
r2.getView().setFreezePanes(null);
|
|
1461
1461
|
}).update({ disabled: () => !n2() });
|
|
1462
|
-
}, [
|
|
1462
|
+
}, [Ee2, y2, r2, d2]);
|
|
1463
1463
|
const We2 = J2().getStyle(), Ue2 = We2.getFont(), _e2 = We2.getAlignment(), Ge2 = _e2.getHorizontal(), Ze2 = _e2.getVertical(), je2 = _e2.getOverflow(), Xe2 = _e2.getRotation();
|
|
1464
1464
|
return ae(() => {
|
|
1465
|
-
He2.getCommand("formatCellStyle").update({ context: () => ({ styles: () =>
|
|
1465
|
+
He2.getCommand("formatCellStyle").update({ context: () => ({ styles: () => r2.getStyles(), named: () => J2().getStyle(true).getNamed(), bodyStyle: ve2, createTemporaryCell: (e4) => r2.createTemporaryCell(e4) }) }), He2.getCommand("formatFillColor").update({ state: () => {
|
|
1466
1466
|
let e4 = null;
|
|
1467
1467
|
const t3 = We2.getFill();
|
|
1468
1468
|
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;
|
|
1469
1469
|
}, context: () => {
|
|
1470
|
-
const e4 =
|
|
1470
|
+
const e4 = r2.getStyles();
|
|
1471
1471
|
return { onColorSelect: (e5) => {
|
|
1472
1472
|
B2(e5 ?? Pt);
|
|
1473
1473
|
}, darkMode: d2.darkMode, quickColor: L2, autoColor: Pt, schemeLookup: e4.schemeLookup(), recentColors: e4.recentColors(), addRecentColor: (t3) => e4.addRecentColor(t3), clearRecentColors: () => e4.clearRecentColors() };
|
|
1474
1474
|
} }), He2.getCommand("formatFontColor").update({ state: () => Ue2.toJSON()?.fill ? Ue2.getFill() : null, context: () => {
|
|
1475
|
-
const e4 =
|
|
1475
|
+
const e4 = r2.getStyles();
|
|
1476
1476
|
return { onColorSelect: (e5) => {
|
|
1477
1477
|
$2(e5);
|
|
1478
1478
|
}, darkMode: d2.darkMode, quickColor: O2, autoColor: e4.getNormal().getFont().getFill(), schemeLookup: e4.schemeLookup(), recentColors: e4.recentColors(), addRecentColor: (t3) => e4.addRecentColor(t3), clearRecentColors: () => e4.clearRecentColors() };
|
|
@@ -1504,107 +1504,107 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1504
1504
|
}).update({ state: Ue2.getVerticalAlignment() === a.VerticalAlignment.Super }), He2.getCommand("formatSubscriptToggle").updateCallback(function() {
|
|
1505
1505
|
te2(this, { font: { verticalAlign: Ue2.getVerticalAlignment() !== a.VerticalAlignment.Sub ? a.VerticalAlignment.Sub : a.VerticalAlignment.Baseline } });
|
|
1506
1506
|
}).update({ state: Ue2.getVerticalAlignment() === a.VerticalAlignment.Sub });
|
|
1507
|
-
const o2 = () => je2 ===
|
|
1507
|
+
const o2 = () => je2 === l.Overflow.Visible;
|
|
1508
1508
|
He2.getCommand("formatTextOverflowVisibleToggle").updateCallback(function() {
|
|
1509
|
-
te2(this, { alignment: { overflow: (o2(),
|
|
1509
|
+
te2(this, { alignment: { overflow: (o2(), l.Overflow.Visible) } });
|
|
1510
1510
|
}).update({ state: o2 });
|
|
1511
|
-
const n2 = () => je2 ===
|
|
1511
|
+
const n2 = () => je2 === l.Overflow.Wrap;
|
|
1512
1512
|
He2.getCommand("formatTextOverflowWrapToggle").updateCallback(function() {
|
|
1513
|
-
te2(this, { alignment: { overflow: n2() ?
|
|
1513
|
+
te2(this, { alignment: { overflow: n2() ? l.Overflow.Visible : l.Overflow.Wrap } });
|
|
1514
1514
|
}).update({ state: n2 });
|
|
1515
1515
|
const i3 = function() {
|
|
1516
|
-
return je2 ===
|
|
1516
|
+
return je2 === l.Overflow.Clip;
|
|
1517
1517
|
};
|
|
1518
1518
|
He2.getCommand("formatTextOverflowClipToggle").updateCallback(function() {
|
|
1519
|
-
te2(this, { alignment: { overflow: i3() ?
|
|
1519
|
+
te2(this, { alignment: { overflow: i3() ? l.Overflow.Visible : l.Overflow.Clip } });
|
|
1520
1520
|
}).update({ state: i3 });
|
|
1521
1521
|
const s2 = function() {
|
|
1522
|
-
return je2 ===
|
|
1522
|
+
return je2 === l.Overflow.Shrink;
|
|
1523
1523
|
};
|
|
1524
1524
|
He2.getCommand("formatTextOverflowShrinkToggle").updateCallback(function() {
|
|
1525
|
-
te2(this, { alignment: { overflow: s2() ?
|
|
1525
|
+
te2(this, { alignment: { overflow: s2() ? l.Overflow.Visible : l.Overflow.Shrink } });
|
|
1526
1526
|
}).update({ state: s2 });
|
|
1527
1527
|
const c2 = function() {
|
|
1528
|
-
return je2 ===
|
|
1528
|
+
return je2 === l.Overflow.Shrink;
|
|
1529
1529
|
};
|
|
1530
1530
|
He2.getCommand("formatTextOverflowEllipsisToggle").updateCallback(function() {
|
|
1531
|
-
te2(this, { alignment: { overflow: c2() ?
|
|
1531
|
+
te2(this, { alignment: { overflow: c2() ? l.Overflow.Visible : l.Overflow.Ellipsis } });
|
|
1532
1532
|
}).update({ state: c2, disabled: true });
|
|
1533
1533
|
const g2 = function() {
|
|
1534
|
-
return Ze2 ===
|
|
1534
|
+
return Ze2 === l.VerticalAlignment.Top;
|
|
1535
1535
|
};
|
|
1536
1536
|
He2.getCommand("formatAlignTopToggle").updateCallback(function() {
|
|
1537
|
-
te2(this, { alignment: { vertical: g2() ?
|
|
1537
|
+
te2(this, { alignment: { vertical: g2() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Top } });
|
|
1538
1538
|
}).update({ state: g2 });
|
|
1539
1539
|
const u2 = function() {
|
|
1540
|
-
return Ze2 ===
|
|
1540
|
+
return Ze2 === l.VerticalAlignment.Center;
|
|
1541
1541
|
};
|
|
1542
1542
|
He2.getCommand("formatAlignMiddleToggle").updateCallback(function() {
|
|
1543
|
-
te2(this, { alignment: { vertical: u2() ?
|
|
1543
|
+
te2(this, { alignment: { vertical: u2() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Center } });
|
|
1544
1544
|
}).update({ state: u2 });
|
|
1545
1545
|
const h3 = function() {
|
|
1546
|
-
return Ze2 ===
|
|
1546
|
+
return Ze2 === l.VerticalAlignment.Bottom;
|
|
1547
1547
|
};
|
|
1548
1548
|
He2.getCommand("formatAlignBottomToggle").updateCallback(function() {
|
|
1549
|
-
te2(this, { alignment: { vertical: (h3(),
|
|
1549
|
+
te2(this, { alignment: { vertical: (h3(), l.VerticalAlignment.Bottom) } });
|
|
1550
1550
|
}).update({ state: h3 });
|
|
1551
1551
|
const p3 = function() {
|
|
1552
|
-
return Ze2 ===
|
|
1552
|
+
return Ze2 === l.VerticalAlignment.Justify;
|
|
1553
1553
|
};
|
|
1554
1554
|
He2.getCommand("formatAlignJustifyVerticalToggle").updateCallback(function() {
|
|
1555
|
-
te2(this, { alignment: { vertical: p3() ?
|
|
1555
|
+
te2(this, { alignment: { vertical: p3() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Justify } });
|
|
1556
1556
|
}).update({ state: p3 });
|
|
1557
1557
|
const f3 = function() {
|
|
1558
|
-
return Ze2 ===
|
|
1558
|
+
return Ze2 === l.VerticalAlignment.Distributed;
|
|
1559
1559
|
};
|
|
1560
1560
|
He2.getCommand("formatAlignDistributedVerticalToggle").updateCallback(function() {
|
|
1561
|
-
te2(this, { alignment: { vertical: f3() ?
|
|
1561
|
+
te2(this, { alignment: { vertical: f3() ? l.VerticalAlignment.Bottom : l.VerticalAlignment.Distributed } });
|
|
1562
1562
|
}).update({ state: f3 });
|
|
1563
1563
|
const w3 = function() {
|
|
1564
|
-
return Ge2 ===
|
|
1564
|
+
return Ge2 === l.HorizontalAlignment.Left;
|
|
1565
1565
|
};
|
|
1566
1566
|
He2.getCommand("formatAlignLeftToggle").updateCallback(function() {
|
|
1567
|
-
te2(this, { alignment: { horizontal: w3() ?
|
|
1567
|
+
te2(this, { alignment: { horizontal: w3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Left } });
|
|
1568
1568
|
}).update({ state: w3 });
|
|
1569
1569
|
const v3 = function() {
|
|
1570
|
-
return Ge2 ===
|
|
1570
|
+
return Ge2 === l.HorizontalAlignment.Center;
|
|
1571
1571
|
};
|
|
1572
1572
|
He2.getCommand("formatAlignCenterToggle").updateCallback(function() {
|
|
1573
|
-
te2(this, { alignment: { horizontal: v3() ?
|
|
1573
|
+
te2(this, { alignment: { horizontal: v3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Center } });
|
|
1574
1574
|
}).update({ state: v3 });
|
|
1575
1575
|
const q3 = function() {
|
|
1576
|
-
return Ge2 ===
|
|
1576
|
+
return Ge2 === l.HorizontalAlignment.CenterContinuous;
|
|
1577
1577
|
};
|
|
1578
1578
|
He2.getCommand("formatAlignCenterContinuousToggle").updateCallback(function() {
|
|
1579
|
-
const e4 = { alignment: { horizontal: q3() ?
|
|
1579
|
+
const e4 = { alignment: { horizontal: q3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.CenterContinuous, rotation: null } };
|
|
1580
1580
|
te2(this, e4);
|
|
1581
1581
|
}).update({ state: q3 });
|
|
1582
1582
|
const y3 = function() {
|
|
1583
|
-
return Ge2 ===
|
|
1583
|
+
return Ge2 === l.HorizontalAlignment.Fill;
|
|
1584
1584
|
};
|
|
1585
1585
|
He2.getCommand("formatAlignFillToggle").updateCallback(function() {
|
|
1586
|
-
const e4 = { alignment: { horizontal: y3() ?
|
|
1586
|
+
const e4 = { alignment: { horizontal: y3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Fill, rotation: null } };
|
|
1587
1587
|
te2(this, e4);
|
|
1588
1588
|
}).update({ state: y3 });
|
|
1589
1589
|
const C3 = function() {
|
|
1590
|
-
return Ge2 ===
|
|
1590
|
+
return Ge2 === l.HorizontalAlignment.Distributed;
|
|
1591
1591
|
};
|
|
1592
1592
|
He2.getCommand("formatAlignDistributedHorizontalToggle").updateCallback(function() {
|
|
1593
|
-
te2(this, { alignment: { horizontal: C3() ?
|
|
1593
|
+
te2(this, { alignment: { horizontal: C3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Distributed } });
|
|
1594
1594
|
}).update({ state: C3 });
|
|
1595
1595
|
const b3 = function() {
|
|
1596
|
-
return Ge2 ===
|
|
1596
|
+
return Ge2 === l.HorizontalAlignment.Right;
|
|
1597
1597
|
};
|
|
1598
1598
|
He2.getCommand("formatAlignRightToggle").updateCallback(function() {
|
|
1599
|
-
te2(this, { alignment: { horizontal: b3() ?
|
|
1599
|
+
te2(this, { alignment: { horizontal: b3() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Right } });
|
|
1600
1600
|
}).update({ state: b3 });
|
|
1601
1601
|
const S2 = function() {
|
|
1602
|
-
return Ge2 ===
|
|
1602
|
+
return Ge2 === l.HorizontalAlignment.Justify;
|
|
1603
1603
|
};
|
|
1604
1604
|
He2.getCommand("formatAlignJustifyToggle").updateCallback(function() {
|
|
1605
|
-
te2(this, { alignment: { horizontal: S2() ?
|
|
1605
|
+
te2(this, { alignment: { horizontal: S2() ? l.HorizontalAlignment.General : l.HorizontalAlignment.Justify } });
|
|
1606
1606
|
}).update({ state: S2 });
|
|
1607
|
-
const x3 = !
|
|
1607
|
+
const x3 = !r2.getProtection().isFormatCellsAllowed(), k2 = Ge2 === l.HorizontalAlignment.CenterContinuous || Ge2 === l.HorizontalAlignment.Fill;
|
|
1608
1608
|
He2.getCommand("formatTextRotate0").updateCallback(function(e4) {
|
|
1609
1609
|
te2(this, { alignment: { rotation: 0 } });
|
|
1610
1610
|
}).update({ disabled: x3 || k2, state: 0 === Xe2 }), He2.getCommand("formatTextRotate45").updateCallback(function(e4) {
|
|
@@ -1618,31 +1618,31 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1618
1618
|
}).update({ disabled: x3 || k2, state: 315 === Xe2 }), He2.getCommand("formatTextRotateCustom").updateCallback(function(e4) {
|
|
1619
1619
|
te2(this, { alignment: { rotation: e4 } });
|
|
1620
1620
|
}).update({ disabled: x3 || k2, state: Xe2 ?? 0 });
|
|
1621
|
-
}, [We2,
|
|
1622
|
-
const e3 = !
|
|
1621
|
+
}, [We2, r2, d2, L2, O2]), ae(() => {
|
|
1622
|
+
const e3 = !r2.getProtection().isFormatCellsAllowed(), t2 = r2.getSelectedRanges().getMerges().length > 0, o2 = async (e4, t3) => {
|
|
1623
1623
|
ee2(t3, async (o3) => {
|
|
1624
1624
|
const n3 = async (n4 = false) => {
|
|
1625
|
-
const
|
|
1625
|
+
const r4 = await Promise.resolve(v2.showBusy(t3.label()));
|
|
1626
1626
|
try {
|
|
1627
1627
|
const t4 = o3.getSelectedRanges();
|
|
1628
1628
|
if (t4.merge({ orientations: e4, discardMultipleValues: n4 }), e4 === s.Orientations.Both) {
|
|
1629
|
-
const e5 = { alignment: { horizontal:
|
|
1629
|
+
const e5 = { alignment: { horizontal: l.HorizontalAlignment.Center } };
|
|
1630
1630
|
t4.getStyle().update(e5);
|
|
1631
1631
|
}
|
|
1632
1632
|
} catch (e5) {
|
|
1633
1633
|
throw e5;
|
|
1634
1634
|
} finally {
|
|
1635
|
-
|
|
1635
|
+
r4?.();
|
|
1636
1636
|
}
|
|
1637
1637
|
};
|
|
1638
|
-
let
|
|
1638
|
+
let r3;
|
|
1639
1639
|
try {
|
|
1640
1640
|
await n3();
|
|
1641
1641
|
} catch (e5) {
|
|
1642
1642
|
if ("discardMultipleValues" !== e5.type) throw e5;
|
|
1643
|
-
|
|
1643
|
+
r3 = true;
|
|
1644
1644
|
}
|
|
1645
|
-
if (
|
|
1645
|
+
if (r3 && v2.showOptions) {
|
|
1646
1646
|
if ("Merge" !== await v2.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;
|
|
1647
1647
|
await n3(true);
|
|
1648
1648
|
}
|
|
@@ -1660,7 +1660,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1660
1660
|
});
|
|
1661
1661
|
};
|
|
1662
1662
|
He2.getCommand("mergeToggle").updateCallback(function() {
|
|
1663
|
-
Q.isSingleCell(
|
|
1663
|
+
Q.isSingleCell(r2.getSelectedRange().getCoords()) || (t2 ? n2(this) : o2(s.Orientations.Both, this));
|
|
1664
1664
|
}).update({ state: t2, disabled: !Pe2 || e3 }), He2.getCommand("mergeHorizontal").updateCallback(function() {
|
|
1665
1665
|
o2(s.Orientations.Column, this);
|
|
1666
1666
|
}).update({ disabled: !Pe2 || e3 }), He2.getCommand("mergeVertical").updateCallback(function() {
|
|
@@ -1702,18 +1702,18 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1702
1702
|
f3 && (d3 = 1);
|
|
1703
1703
|
const w3 = g2 || e3 || Le2 || c2;
|
|
1704
1704
|
w3 && (u2 = 1);
|
|
1705
|
-
let q3 = "", y3 = "", C3 = "", S2 = "", x3 = "", k2 = "", T2 = "", R2 = "", M2 = "";
|
|
1706
|
-
d3 > 1 && (
|
|
1707
|
-
let
|
|
1705
|
+
let q3 = "", y3 = "", C3 = "", S2 = "", x3 = "", k2 = "", T2 = "", R2 = "", M2 = "", A3 = "", z3 = "";
|
|
1706
|
+
d3 > 1 && (R2 = y3 = C3 = d3 + " ", M2 = S2 = "s"), u2 > 1 && (A3 = x3 = k2 = u2 + " ", z3 = T2 = "s"), "copy" === W2.getMode()?.key ? (q3 = x3 = y3 = "Copied ", S2 = T2 = "s") : "cut" === W2.getMode()?.key && (q3 = x3 = y3 = "Cut ", S2 = T2 = "s");
|
|
1707
|
+
let F2 = "", D2 = "";
|
|
1708
1708
|
if (b2) {
|
|
1709
1709
|
const e4 = b2.getDefaultShiftOrientation() === s.Orientation.Column;
|
|
1710
|
-
|
|
1710
|
+
F2 = ` (${e4 ? "Shift Right" : "Shift Down"})`, D2 = ` (${e4 ? "Shift Left" : "Shift up"})`, He2.getCommand("deleteCells").update({ label: `Delete Cells${D2}` });
|
|
1711
1711
|
}
|
|
1712
|
-
He2.getCommand("insertCells").update({ label: `Insert ${q3}Cells${
|
|
1713
|
-
}, [
|
|
1714
|
-
const e3 =
|
|
1712
|
+
He2.getCommand("insertCells").update({ label: `Insert ${q3}Cells${F2}`, scopedLabels: { insertCells: `${q3}At Selection` } }), He2.getCommand("insertCellsShiftRight").update(p3), He2.getCommand("insertCellsShiftDown").update(p3), He2.getCommand("deleteCellsShiftUp").update(p3), He2.getCommand("deleteCellsShiftLeft").update(p3), He2.getCommand("insertRows").update({ label: `Insert ${x3}Row${T2}`, scopedLabels: { insertCells: `${x3}Row${T2}` }, disabled: w3 }), He2.getCommand("insertRowsAfter").update({ label: `Insert ${x3}Row${T2} Below`, disabled: w3 }), He2.getCommand("hideRows").update({ label: `Hide ${k2}Row${T2}` }), He2.getCommand("insertColumns").update({ label: `Insert ${y3}Column${S2}`, scopedLabels: { insertCells: `${y3}Column${S2}` }, disabled: f3 }), He2.getCommand("insertColumnsAfter").update({ label: `Insert ${y3}Column${S2} After`, disabled: f3 }), He2.getCommand("hideColumns").update({ label: `Hide ${C3}Column${S2}` }), He2.getCommand("deleteRows").update({ label: `Delete ${A3}Row${z3}`, scopedLabels: { deleteCells: `${A3}Row${z3}` }, disabled: w3 }), He2.getCommand("deleteColumns").update({ label: `Delete ${R2}Column${M2}`, scopedLabels: { deleteCells: `${R2}Column${M2}` }, disabled: f3 });
|
|
1713
|
+
}, [Ee2, Pe2, Le2, b2, W2, v2, Fe2]), ae(() => {
|
|
1714
|
+
const e3 = r2.getProtection(), t2 = r2.getProtection().isLocked(), o2 = !e3.isFormatCellsAllowed(), n2 = { disabled: o2 };
|
|
1715
1715
|
He2.getCommand("protectionSheetToggle").updateCallback(async (o3, n3) => {
|
|
1716
|
-
let
|
|
1716
|
+
let l2 = null;
|
|
1717
1717
|
try {
|
|
1718
1718
|
if (t2) {
|
|
1719
1719
|
let t3 = null;
|
|
@@ -1722,52 +1722,52 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1722
1722
|
if ("Unprotect" !== e4.option) return;
|
|
1723
1723
|
t3 = e4.input;
|
|
1724
1724
|
}
|
|
1725
|
-
|
|
1726
|
-
} else
|
|
1727
|
-
|
|
1725
|
+
l2 = await Promise.resolve(v2.showBusy(n3.label())), await e3.unlock(t3);
|
|
1726
|
+
} else l2 = await Promise.resolve(v2.showBusy(n3.label())), await e3.lock();
|
|
1727
|
+
l2?.();
|
|
1728
1728
|
} catch (e4) {
|
|
1729
|
-
|
|
1729
|
+
l2?.(), v2.showError(e4);
|
|
1730
1730
|
}
|
|
1731
1731
|
}).update({ state: t2, label: () => t2 ? "Unprotect Sheet" : "Protect Sheet", scopedLabels: { sheet: t2 ? "Unprotect" : "Protect" } }), He2.getCommand("deleteTable").update(n2), He2.getCommand("sortAscending").update(n2), He2.getCommand("sortDescending").update(n2), He2.getCommand("sortCustom")?.update(n2), He2.getCommand("updateComments").update(n2), He2.getCommand("deleteComments").update(n2), He2.getCommand("insertChart")?.update(n2), He2.getCommand("insertImageFromFile").update(n2), He2.getCommand("insertImageFromURL").update(n2), He2.getCommand("formatBorder").update(n2), He2.getCommand("formatFillColor").update(n2), He2.getCommand("formatFontColor").update(n2), He2.getCommand("formatBoldToggle").update(n2), He2.getCommand("formatItalicToggle").update(n2), He2.getCommand("formatUnderlinedToggle").update(n2), He2.getCommand("formatStrikeThroughToggle").update(n2), He2.getCommand("formatSuperscriptToggle").update(n2), He2.getCommand("formatSubscriptToggle").update(n2), He2.getCommand("formatAlignTopToggle").update(n2), He2.getCommand("formatTextOverflowVisibleToggle").update(n2), He2.getCommand("formatTextOverflowWrapToggle").update(n2), He2.getCommand("formatTextOverflowClipToggle").update(n2), He2.getCommand("formatTextOverflowShrinkToggle").update(n2), He2.getCommand("formatAlignMiddleToggle").update(n2), He2.getCommand("formatAlignBottomToggle").update(n2), He2.getCommand("formatAlignDistributedVerticalToggle").update(n2), He2.getCommand("formatAlignJustifyVerticalToggle").update(n2), He2.getCommand("formatAlignLeftToggle").update(n2), He2.getCommand("formatAlignCenterToggle").update(n2), He2.getCommand("formatAlignRightToggle").update(n2), He2.getCommand("formatAlignJustifyToggle").update(n2), He2.getCommand("formatAlignCenterContinuousToggle").update(n2), He2.getCommand("formatAlignDistributedHorizontalToggle").update(n2), He2.getCommand("formatAlignFillToggle").update(n2), He2.getCommand("formatFontSizeIncrease").update(n2), He2.getCommand("formatFontSizeDecrease").update(n2), He2.getCommand("formatFontFamily").update(n2), He2.getCommand("formatFontSize").update(n2), He2.getCommand("formatNumberFormat").update(n2), He2.getCommand("formatNumberFormatGeneralStyle").update(n2), He2.getCommand("formatNumberFormatNumberStyle").update(n2), He2.getCommand("formatNumberFormatTimeStyle").update(n2), He2.getCommand("formatNumberFormatDateStyle").update(n2), He2.getCommand("formatNumberFormatAccountingStyle").update(n2), He2.getCommand("formatNumberFormatPercentStyle").update(n2), He2.getCommand("formatNumberFormatScientificStyle").update(n2), He2.getCommand("formatNumberFormatCommaStyle").update(n2), He2.getCommand("formatNumberFormatIncreaseDecimal").update(n2), He2.getCommand("formatNumberFormatDecreaseDecimal").update(n2), He2.getCommand("hideColumns").update(n2), He2.getCommand("unhideColumns").update(n2), He2.getCommand("hideRows").update(n2), He2.getCommand("unhideRows").update(n2), He2.getCommand("insertFunctionSum").update(n2), He2.getCommand("insertFunctionAverage").update(n2), He2.getCommand("insertFunctionCount").update(n2), He2.getCommand("insertFunctionMax").update(n2), He2.getCommand("insertFunctionMin").update(n2), He2.getCommand("insertFunction").update(n2), He2.getCommand("startEditCurrentTime").update(n2), He2.getCommand("startEditCurrentDate").update(n2), He2.getCommand("startEditValueAbove").update(n2), He2.getCommand("fillDown").update(n2), He2.getCommand("fillRight").update(n2), He2.getCommand("fillUp").update(n2), He2.getCommand("fillLeft").update(n2), He2.getCommand("formatCellStyle").update(n2), He2.getCommand("formatTableStyle").update(n2), He2.getCommand("formatPainterToggle").update(n2), He2.getCommand("formatBorderAddOutline").update(n2), He2.getCommand("formatBorderClearOutline").update(n2), He2.getCommand("formatIndentDecrease").update(n2), He2.getCommand("formatIndentIncrease").update(n2), He2.getCommand("clearContents").update(n2), He2.getCommand("clearFormats").update(n2), He2.getCommand("clearAll").update(n2), He2.getCommand("clearComments").update(n2), He2.getCommand("clearHyperlinks").update(n2), He2.getCommand("autoFilterClear").update(n2), He2.getCommand("autoFilterReapply").update(n2);
|
|
1732
|
-
const i3 = Ge2 ===
|
|
1732
|
+
const i3 = Ge2 === l.HorizontalAlignment.CenterContinuous || Ge2 === l.HorizontalAlignment.Fill, a2 = { disabled: o2 || i3 };
|
|
1733
1733
|
He2.getCommand("formatTextRotate0").update(a2), He2.getCommand("formatTextRotate45").update(a2), He2.getCommand("formatTextRotate90").update(a2), He2.getCommand("formatTextRotate270").update(a2), He2.getCommand("formatTextRotate315").update(a2), He2.getCommand("formatTextRotateCustom").update(a2), He2.getCommand("formatTextRotateVertical").update(a2);
|
|
1734
|
-
}, [
|
|
1734
|
+
}, [Ee2]), He2;
|
|
1735
1735
|
}
|
|
1736
|
-
const Lt = "_sheet-scrollbar_104cg_1", Bt = oe(
|
|
1737
|
-
const { style: o2 = C.EmptyCssProperties, orientation: n2, sheet:
|
|
1738
|
-
if (!
|
|
1739
|
-
const [p2] = Me(), f2 = S(
|
|
1740
|
-
const e3 =
|
|
1736
|
+
const Lt = "_sheet-scrollbar_104cg_1", Bt = oe(re((e2, t2) => {
|
|
1737
|
+
const { style: o2 = C.EmptyCssProperties, orientation: n2, sheet: l2, onShowTooltip: r2, onCloseTooltip: i2, onScrollOffset: a2, showCustomScrollButtons: s2 = true, offset: d2 = 0, totalSize: c2 = 0, viewportSize: g2 = 0, className: u2, endGap: h2, ...m2 } = e2;
|
|
1738
|
+
if (!l2) throw new Error("SheetScrollBar needs a sheet model");
|
|
1739
|
+
const [p2] = Me(), f2 = S(r2, [r2]), w2 = S(i2, [i2]), v2 = De(p2, t2), [q2, y2] = le(() => {
|
|
1740
|
+
const e3 = l2.getView().getTopLeft();
|
|
1741
1741
|
return n2 === H.Vertical ? e3.top : e3.left;
|
|
1742
1742
|
}), b2 = () => {
|
|
1743
|
-
const e3 =
|
|
1743
|
+
const e3 = l2.getView().getFreezePanes();
|
|
1744
1744
|
if (n2 === H.Vertical) {
|
|
1745
1745
|
if (0 === e3.coords.rowIndex) return { shift: 0, scroll: 0 };
|
|
1746
|
-
return { shift:
|
|
1746
|
+
return { shift: l2.getRowHeaders().findOffset(e3.coords.rowIndex) - e3.topLeft.top, scroll: e3.topLeft.top };
|
|
1747
1747
|
}
|
|
1748
1748
|
if (0 === e3.coords.colIndex) return { shift: 0, scroll: 0 };
|
|
1749
|
-
return { shift:
|
|
1750
|
-
}, [x2, k2] =
|
|
1751
|
-
const e3 =
|
|
1749
|
+
return { shift: l2.getColumnHeaders().findOffset(e3.coords.colIndex) - e3.topLeft.left, scroll: e3.topLeft.left };
|
|
1750
|
+
}, [x2, k2] = le(b2), [T2, R2] = le(null), [M2, A2] = le(false), z2 = n2 === H.Vertical ? l2.getRowHeaders() : l2.getColumnHeaders(), F2 = () => {
|
|
1751
|
+
const e3 = l2.getUsedRange()?.getCoords() ?? Q.EmptyRange, t3 = l2.getSelection().getCoords().cell;
|
|
1752
1752
|
return { colIndex: Math.max(e3.colEnd, t3.colIndex), rowIndex: Math.max(e3.rowEnd, t3.rowIndex) };
|
|
1753
|
-
}, [D2,
|
|
1753
|
+
}, [D2, E2] = le(F2), I2 = D2 ? (n2 === H.Vertical ? D2.rowIndex : D2.colIndex) + 1 : 0, N2 = () => {
|
|
1754
1754
|
const e3 = F2();
|
|
1755
|
-
Q.isEqualCells(D2, e3) ||
|
|
1755
|
+
Q.isEqualCells(D2, e3) || E2(e3);
|
|
1756
1756
|
};
|
|
1757
|
-
St(
|
|
1757
|
+
St(l2.getView(), { onFreezeSplitChange: () => {
|
|
1758
1758
|
k2(b2);
|
|
1759
|
-
} }), St(
|
|
1760
|
-
|
|
1761
|
-
}, [
|
|
1759
|
+
} }), St(l2.getSelection(), { onChange: N2 }), St(l2, { onUsedRangeChange: N2 }), ae(() => {
|
|
1760
|
+
E2(F2());
|
|
1761
|
+
}, [l2]), ae(() => {
|
|
1762
1762
|
if (!T2) return M2 && w2?.(), void A2(false);
|
|
1763
|
-
const e3 = z2.getTextAt(z2.findIndex(q2 / (
|
|
1763
|
+
const e3 = z2.getTextAt(z2.findIndex(q2 / (l2.getView().getZoomScale() / 100) + x2.scroll + x2.shift));
|
|
1764
1764
|
A2(true), f2?.({ ...T2, display: (n2 === H.Vertical ? "Row" : "Column") + ": " + e3 });
|
|
1765
|
-
}, [d2, q2, x2, n2, T2, z2, M2,
|
|
1765
|
+
}, [d2, q2, x2, n2, T2, z2, M2, l2]);
|
|
1766
1766
|
const V2 = S((e3, t3, o3) => {
|
|
1767
1767
|
y2(e3);
|
|
1768
|
-
const n3 = e3 + x2.scroll,
|
|
1769
|
-
a2?.(n3,
|
|
1770
|
-
}, [a2, x2]), L2 = d2 - x2.scroll, B2 = g2 - x2.shift, O2 = c2 - (x2.shift + x2.scroll), $2 = z2.findOffset(
|
|
1768
|
+
const n3 = e3 + x2.scroll, l3 = t3 + x2.shift, r3 = o3 + x2.shift + x2.scroll;
|
|
1769
|
+
a2?.(n3, l3, r3);
|
|
1770
|
+
}, [a2, x2]), L2 = d2 - x2.scroll, B2 = g2 - x2.shift, O2 = c2 - (x2.shift + x2.scroll), $2 = z2.findOffset(I2) * (l2.getView().getZoomScale() / 100) - (x2.scroll + x2.shift);
|
|
1771
1771
|
return ne(() => Z(P, { ref: v2, className: Ae(u2, Lt), style: o2, offset: L2, viewportSize: B2, totalSize: O2, orientation: n2, showCustomScrollButtons: s2, onMouseDown: (e3) => {
|
|
1772
1772
|
R2({ anchor: { x: e3.clientX, y: e3.clientY } }), e3.preventDefault();
|
|
1773
1773
|
}, onScrollOffset: V2, onMouseOut: () => {
|
|
@@ -1779,30 +1779,30 @@ const Lt = "_sheet-scrollbar_104cg_1", Bt = oe(le((e2, t2) => {
|
|
|
1779
1779
|
Bt.displayName = "SheetScrollbar";
|
|
1780
1780
|
const Ot = (e2, t2, o2 = null) => {
|
|
1781
1781
|
const n2 = [];
|
|
1782
|
-
for (let
|
|
1783
|
-
if (e2[
|
|
1784
|
-
n2.push({ address: { min: e2[
|
|
1782
|
+
for (let l2 = 0; l2 < e2.length; l2++) if (e2[l2].value.isSelectedAll) {
|
|
1783
|
+
if (e2[l2].min === e2[l2].max && e2[l2].min === o2) continue;
|
|
1784
|
+
n2.push({ address: { min: e2[l2].min, max: e2[l2].max }, update: t2 });
|
|
1785
1785
|
}
|
|
1786
1786
|
return n2;
|
|
1787
|
-
}, $t = oe(
|
|
1788
|
-
const { sheetHeader: o2, gridRef: n2, sheetElement:
|
|
1787
|
+
}, $t = oe(re((e2, t2) => {
|
|
1788
|
+
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: v2, onResizeHeadersDown: q2, onResizeHeadersUp: y2, scrollPoint: x2, onSelectionStart: k2, onSelectionEnd: T2 } = e2, R2 = ne(() => o2.getOrientation(), [o2]), M2 = ie(null), [A2, z2] = ue((e3) => e3 + 1, 0), [F2, E2] = ue((e3) => e3 + 1, 0), I2 = o2?.getSheet(), N2 = ie(false);
|
|
1789
1789
|
se(() => {
|
|
1790
1790
|
N2.current = true;
|
|
1791
1791
|
}, [o2]);
|
|
1792
1792
|
const H2 = ne(() => o2.getEntireRange().getCoords().max + 1, [o2]), P2 = ne(() => {
|
|
1793
1793
|
const e3 = R2 === s.Orientation.Column;
|
|
1794
1794
|
return { left: e3 ? x2.left : 0, top: e3 ? 0 : x2.top };
|
|
1795
|
-
}, [x2]), [L2, B2] =
|
|
1795
|
+
}, [x2]), [L2, B2] = le(I2?.getView().getZoomScale() / 100), [O2, $2] = le(null);
|
|
1796
1796
|
St(o2, { onSizesChange: (e3) => {
|
|
1797
|
-
B2(
|
|
1797
|
+
B2(I2?.getView().getZoomScale() / 100), me2(ge2());
|
|
1798
1798
|
} });
|
|
1799
1799
|
const W2 = de(() => {
|
|
1800
|
-
M2.current?.invalidate(),
|
|
1800
|
+
M2.current?.invalidate(), E2();
|
|
1801
1801
|
}, []), U2 = de(X.debounce(() => {
|
|
1802
1802
|
W2();
|
|
1803
|
-
}, 10), []), [_2, G2] =
|
|
1803
|
+
}, 10), []), [_2, G2] = le(null);
|
|
1804
1804
|
St(o2.getSheet(), { onSelectionChange() {
|
|
1805
|
-
G2(
|
|
1805
|
+
G2(I2?.getSelection().getCoords()), U2();
|
|
1806
1806
|
}, onProtectionChange() {
|
|
1807
1807
|
W2();
|
|
1808
1808
|
}, onViewChange() {
|
|
@@ -1814,107 +1814,107 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
1814
1814
|
}, [o2]);
|
|
1815
1815
|
const j2 = de((e3) => o2.at(e3)?.isHidden() || 0 === o2.at(e3)?.getSize(), [o2]), K2 = de((e3, t3) => o2.hiddenHeadersAt(e3, t3), [j2]), Y2 = S((e3) => o2.isSelected(e3), [o2]), J2 = S((e3) => o2.isSelectedAll(e3), [o2]), Q2 = de(() => o2.getMinSize(), [o2]), ee2 = de(() => o2.getMaxSize(), [o2]), te2 = S((e3, t3, n3) => {
|
|
1816
1816
|
t3 /= L2;
|
|
1817
|
-
const
|
|
1818
|
-
if (t3 <= 0 && (
|
|
1819
|
-
const o3 = R2 === s.Orientation.Column, n4 = o3 ? he2.getColOffset : he2.getRowOffset,
|
|
1820
|
-
let a3 =
|
|
1817
|
+
const l3 = { size: t3 = Math.max(Q2(), Math.min(X.roundAccurately(t3, Q2()), ee2())), hidden: false }, r3 = [];
|
|
1818
|
+
if (t3 <= 0 && (l3.hidden = true, l3.size = n3), r3.push({ address: { min: e3, max: e3 }, update: l3 }), t3 < 0) {
|
|
1819
|
+
const o3 = R2 === s.Orientation.Column, n4 = o3 ? he2.getColOffset : he2.getRowOffset, l4 = o3 ? he2.getColIndex : he2.getRowIndex, i3 = n4(e3);
|
|
1820
|
+
let a3 = l4(i3 + t3);
|
|
1821
1821
|
const d3 = n4(a3);
|
|
1822
|
-
d3 === i3 + t3 ? a3-- :
|
|
1822
|
+
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 } });
|
|
1823
1823
|
}
|
|
1824
|
-
o2.updateHeaderPairs(
|
|
1824
|
+
o2.updateHeaderPairs(r3), w2?.(e3, t3, n3);
|
|
1825
1825
|
}, [A2, o2, L2, w2]), oe2 = S((e3, t3, n3) => {
|
|
1826
|
-
const
|
|
1827
|
-
let
|
|
1826
|
+
const l3 = R2 === s.Orientation.Column;
|
|
1827
|
+
let r3 = null, i3 = { min: e3, max: e3 };
|
|
1828
1828
|
if (o2.isSelectedAll(e3)) {
|
|
1829
1829
|
const a3 = o2.getSelectedRuns();
|
|
1830
|
-
a3.length > 1 ?
|
|
1830
|
+
a3.length > 1 ? r3 = "Resize " + (l3 ? "Columns" : "Rows") : i3 = a3[0];
|
|
1831
1831
|
const s2 = { hidden: t3 <= 0, size: (t3 <= 0 ? n3 : t3) / L2 };
|
|
1832
1832
|
o2.updateHeaderPairs(Ot(a3, s2, e3));
|
|
1833
1833
|
}
|
|
1834
1834
|
if (i3) {
|
|
1835
1835
|
const e4 = i3.max - i3.min + 1;
|
|
1836
1836
|
let t4;
|
|
1837
|
-
t4 = 1 === e4 ? o2.getRange(i3).at(0).getDisplayText() : o2.getRange(i3).toString(),
|
|
1837
|
+
t4 = 1 === e4 ? o2.getRange(i3).at(0).getDisplayText() : o2.getRange(i3).toString(), r3 = `Resize ${l3 ? "Column" : "Row"}${e4 > 1 ? "s" : ""} '${t4}'`;
|
|
1838
1838
|
}
|
|
1839
|
-
v2?.(e3, t3,
|
|
1840
|
-
}, [A2, o2, v2]),
|
|
1839
|
+
v2?.(e3, t3, r3);
|
|
1840
|
+
}, [A2, o2, v2]), re2 = S((e3, t3) => {
|
|
1841
1841
|
const o3 = R2 === s.Orientation.Column;
|
|
1842
1842
|
f2(e3, t3, `Resize ${o3 ? "Column" : "Row"}(s)`);
|
|
1843
1843
|
}, [f2]), ce2 = S((e3) => {
|
|
1844
1844
|
let t3 = false;
|
|
1845
|
-
const n3 = R2 === s.Orientation.Column,
|
|
1845
|
+
const n3 = R2 === s.Orientation.Column, l3 = o2.getSheet().getEntireRange().getCoords(), r3 = [], i3 = o2.getSelectedRuns(), a3 = (e4) => {
|
|
1846
1846
|
let t4;
|
|
1847
|
-
t4 = n3 ? { colStart: e4.min, rowStart:
|
|
1847
|
+
t4 = n3 ? { colStart: e4.min, rowStart: l3.rowStart, colEnd: e4.max, rowEnd: l3.rowEnd } : { colStart: l3.colStart, rowStart: e4.min, colEnd: l3.colEnd, rowEnd: e4.max }, r3.push(t4);
|
|
1848
1848
|
};
|
|
1849
1849
|
for (let o3 = 0; o3 < i3.length; o3++) {
|
|
1850
1850
|
const n4 = i3[o3];
|
|
1851
1851
|
n4.value.isSelectedAll && (n4.min <= e3 && n4.max >= e3 && (t3 = true), a3(n4));
|
|
1852
1852
|
}
|
|
1853
|
-
t3 || a3({ min: e3, max: e3 }), o2.getSheet().getRanges(
|
|
1853
|
+
t3 || a3({ min: e3, max: e3 }), o2.getSheet().getRanges(r3).autoFit({ orientations: n3 ? s.Orientations.Column : s.Orientations.Row });
|
|
1854
1854
|
if (j2(e3)) {
|
|
1855
|
-
const n4 = { hidden: null },
|
|
1856
|
-
t3 ||
|
|
1855
|
+
const n4 = { hidden: null }, l4 = Ot(i3, n4);
|
|
1856
|
+
t3 || l4.push({ address: e3, update: n4 }), o2.updateHeaderPairs(l4);
|
|
1857
1857
|
}
|
|
1858
1858
|
v2?.(e3, null, "Resize Column(s)");
|
|
1859
1859
|
}, [A2, o2, v2, j2]), ge2 = () => {
|
|
1860
1860
|
const e3 = R2 === s.Orientation.Column;
|
|
1861
1861
|
return { getColOffset: (t3) => e3 ? o2.findOffset(t3) : 0 === t3 ? 0 : i2 / L2, getColIndex: (t3) => e3 ? o2.findIndex(t3) : 0, getRowOffset: (t3) => e3 ? 0 === t3 ? 0 : i2 / L2 : o2.findOffset(t3), getRowIndex: (t3) => e3 ? 0 : o2.findIndex(t3) };
|
|
1862
|
-
}, [he2, me2] =
|
|
1863
|
-
|
|
1864
|
-
}, [
|
|
1865
|
-
|
|
1866
|
-
}, [
|
|
1867
|
-
const t3 =
|
|
1862
|
+
}, [he2, me2] = le(() => ge2()), pe2 = de((e3, t3) => !(e3.nativeEvent.which === V.Right) || !J2(R2 === s.Orientation.Column ? t3.colIndex : t3.rowIndex), [R2, J2]), fe2 = S((e3) => {
|
|
1863
|
+
l2.focusSheet();
|
|
1864
|
+
}, [l2]), Se2 = S((e3) => {
|
|
1865
|
+
I2?.getSelection().updateCoords(e3);
|
|
1866
|
+
}, [I2]), { ...xe2 } = we({ 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) => {
|
|
1867
|
+
const t3 = I2.getRange(e3);
|
|
1868
1868
|
return t3.isEntireColumns() || t3.isEntireRows();
|
|
1869
1869
|
} }), ke2 = S(() => {
|
|
1870
1870
|
k2?.();
|
|
1871
|
-
const e3 =
|
|
1871
|
+
const e3 = I2?.getSelection();
|
|
1872
1872
|
e3 && e3.setAdjusting(e3.getCoords());
|
|
1873
|
-
}, [
|
|
1874
|
-
|
|
1875
|
-
}, [
|
|
1873
|
+
}, [I2, k2]), Te2 = S(async () => {
|
|
1874
|
+
I2?.getSelection().setAdjusting(null), T2?.();
|
|
1875
|
+
}, [I2, T2]), { ...Re2 } = ve({ orientation: R2, headerCount: H2, gridRef: M2, gridMainRef: n2, newSelection: xe2?.newSelection, modifySelection: xe2?.modifySelection, appendSelection: xe2?.appendSelection, clearSelections: xe2?.clearSelections, pointerDownInterceptor: pe2, onPointerUp: fe2, onDragStart: ke2, onDragEnd: Te2 }), Me2 = u2.selection?.strokeFill;
|
|
1876
1876
|
ae(() => {
|
|
1877
1877
|
if (!M2.current) return void $2(null);
|
|
1878
|
-
const e3 = R2 === s.Orientation.Column, t3 = o2.getSelectedRuns(), n3 = o2.isProtected() ? null : te2,
|
|
1878
|
+
const e3 = R2 === s.Orientation.Column, t3 = o2.getSelectedRuns(), n3 = o2.isProtected() ? null : te2, l3 = (t4, o3, n4) => {
|
|
1879
1879
|
if (n4) return Z("div", e3 ? { style: { position: "absolute", borderBottom: `${u2.headerSelection.strokeWidth}px solid ${Me2}`, 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 ${Me2}`, 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);
|
|
1880
|
-
},
|
|
1881
|
-
const
|
|
1880
|
+
}, r3 = (t4, o3, n4) => {
|
|
1881
|
+
const l4 = { x: 0, y: 0, width: 0, height: 0 };
|
|
1882
1882
|
if (e3) {
|
|
1883
1883
|
const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: t4, colEnd: Math.min(H2, o3) }), be);
|
|
1884
1884
|
if (!e4) return;
|
|
1885
|
-
|
|
1885
|
+
l4.x = e4.x, l4.width = e4.width;
|
|
1886
1886
|
} else {
|
|
1887
1887
|
const e4 = n4.toClipBounds(n4.getRangeCoordsBounds({ rowStart: t4, rowEnd: Math.min(H2, o3), colStart: 0, colEnd: 0 }), be);
|
|
1888
1888
|
if (!e4) return;
|
|
1889
|
-
|
|
1889
|
+
l4.y = e4.y, l4.height = e4.height;
|
|
1890
1890
|
}
|
|
1891
|
-
return { x:
|
|
1891
|
+
return { x: l4.x, y: l4.y, width: l4.width, height: l4.height };
|
|
1892
1892
|
};
|
|
1893
|
-
$2([(
|
|
1894
|
-
let
|
|
1895
|
-
const a3 = e3 ?
|
|
1893
|
+
$2([(l4) => {
|
|
1894
|
+
let r4 = null, i3 = e3 ? l4.getVisibleColumns() : l4.getVisibleRows();
|
|
1895
|
+
const a3 = e3 ? l4.getTotalRangeCoords().colStart : l4.getTotalRangeCoords().rowStart;
|
|
1896
1896
|
i3.length > 0 && i3[0] > a3 && (i3 = [i3[0] - 1, ...i3]);
|
|
1897
1897
|
let s2 = [];
|
|
1898
1898
|
const d3 = [], c3 = i3.length;
|
|
1899
1899
|
for (let e4 = 0; e4 < c3; e4++) {
|
|
1900
|
-
const o3 = i3[e4],
|
|
1901
|
-
if (!
|
|
1900
|
+
const o3 = i3[e4], l5 = e4 < c3 - 1 ? i3[e4 + 1] : o3 + K2(o3 + 1, false) + 1, g4 = o3 + 1 !== l5;
|
|
1901
|
+
if (!r4 || r4.max < o3) if (t3.length > 0 && t3[t3.length - 1].max >= o3) {
|
|
1902
1902
|
const e5 = X.findEqualOrGreater(t3, o3, (e6) => e6.max);
|
|
1903
|
-
|
|
1904
|
-
} else
|
|
1903
|
+
r4 = t3[e5];
|
|
1904
|
+
} else r4 = null;
|
|
1905
1905
|
let u3 = false, h4 = false;
|
|
1906
|
-
if (
|
|
1906
|
+
if (r4?.value && (r4.min <= o3 || r4.min <= l5 && !g4) && (u3 = true, h4 = r4.value.isSelectedAll), o3 === a3) {
|
|
1907
1907
|
let e5 = false, t4 = false;
|
|
1908
|
-
|
|
1908
|
+
r4?.value && r4.min <= o3 && (e5 = true, t4 = r4.value.isSelectedAll), o3 > 0 && d3.push({ index: o3 - 1, isNextHidden: g4, isSelected: e5, isSelectedAll: t4, disabledResize: true });
|
|
1909
1909
|
}
|
|
1910
|
-
if (h4 && s2.push(d3.length), d3.push({ index: o3, isHidden: 0 === e4 && K2(o3, false) > 0, isNextHidden: g4, isSelected: u3, isSelectedAll: h4, onDividerMouseDown: q2, onDividerResizeStart:
|
|
1910
|
+
if (h4 && s2.push(d3.length), d3.push({ index: o3, isHidden: 0 === e4 && K2(o3, false) > 0, isNextHidden: g4, isSelected: u3, isSelectedAll: h4, onDividerMouseDown: q2, onDividerResizeStart: re2, onDividerResize: n3, onDividerMouseUp: y2, onDividerResizeEnd: oe2, onDividerAutoFit: ce2 }), g4) {
|
|
1911
1911
|
let e5 = false, i4 = false;
|
|
1912
|
-
if (
|
|
1913
|
-
else if (t3.length > 0 && t3[t3.length - 1].max >=
|
|
1914
|
-
const e6 = X.findEqualOrGreater(t3,
|
|
1915
|
-
|
|
1916
|
-
} else
|
|
1917
|
-
|
|
1912
|
+
if (r4 && r4.min >= o3 && r4.max <= l5 - 1 && r4.value.isSelectedAll && s2.push(d3.length), r4?.value && r4.max >= l5) ;
|
|
1913
|
+
else if (t3.length > 0 && t3[t3.length - 1].max >= l5) {
|
|
1914
|
+
const e6 = X.findEqualOrGreater(t3, l5, (e7) => e7.max);
|
|
1915
|
+
r4 = t3[e6];
|
|
1916
|
+
} else r4 = null;
|
|
1917
|
+
r4?.value && r4.min <= l5 && (e5 = r4.value.isSelected, i4 = r4.value.isSelectedAll), l5 > 0 && d3.push({ index: l5 - 1, isHidden: true, isSelected: e5, isSelectedAll: i4, onDividerMouseDown: q2, onDividerResizeStart: re2, onDividerResize: n3, onDividerMouseUp: y2, onDividerResizeEnd: oe2, onDividerAutoFit: ce2 });
|
|
1918
1918
|
}
|
|
1919
1919
|
}
|
|
1920
1920
|
if (s2.length > 0) {
|
|
@@ -1922,45 +1922,45 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
1922
1922
|
if (s2.length > 0) {
|
|
1923
1923
|
const t4 = d3[s2[o3]].index;
|
|
1924
1924
|
let n5 = null;
|
|
1925
|
-
e3 ? (n5 =
|
|
1925
|
+
e3 ? (n5 = l4.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: t4, colEnd: t4 }), n5.x + n5.width > l4.getBounds().width && (o3 -= 1, 0 === o3 && (o3 = -1))) : (n5 = l4.getRangeCoordsBounds({ rowStart: t4, rowEnd: t4, colStart: 0, colEnd: 0 }), n5.y + n5.height > l4.getBounds().height && (o3 -= 1, 0 === o3 && (o3 = -1)));
|
|
1926
1926
|
}
|
|
1927
|
-
const n4 = t3?.[t3.length - 1],
|
|
1928
|
-
if ("t" ===
|
|
1927
|
+
const n4 = t3?.[t3.length - 1], r5 = l4.getAnchor();
|
|
1928
|
+
if ("t" === r5 || "l" === r5) {
|
|
1929
1929
|
const e4 = d3[s2[Math.max(0, s2.length - 1)]];
|
|
1930
1930
|
e4.showTouchDivider = n4 && n4.max <= e4.index;
|
|
1931
1931
|
} else o3 >= 0 && (d3[s2[o3]].showTouchDivider = true);
|
|
1932
1932
|
}
|
|
1933
1933
|
const { header: g3, headerSelect: h3, headerSelectAll: m3, headerHover: p3 } = u2 ?? {}, f3 = d3.length, w3 = new Array(f3);
|
|
1934
|
-
for (let e4 = 0; e4 < f3; e4++) w3[e4] = Z(Ce, { orientation: R2, view:
|
|
1934
|
+
for (let e4 = 0; e4 < f3; e4++) w3[e4] = Z(Ce, { orientation: R2, view: l4, headerStyle: g3, headerStyleSelect: h3, headerStyleSelectAll: m3, headerStyleHover: p3, disabled: o2.isProtected(), ...d3[e4] }, `divider${e4}`);
|
|
1935
1935
|
return w3;
|
|
1936
1936
|
}, (e4) => {
|
|
1937
1937
|
const o3 = [], n4 = t3.length;
|
|
1938
|
-
for (let i3 = 0; t3 && i3 < n4; i3++) o3.push(
|
|
1938
|
+
for (let i3 = 0; t3 && i3 < n4; i3++) o3.push(l3(`selection:${e4.getAnchor()}:${i3}`, 0, r3(t3[i3].min, t3[i3].max, e4)));
|
|
1939
1939
|
return o3;
|
|
1940
1940
|
}]);
|
|
1941
1941
|
}, [F2, true, Me2, u2, he2, H2, g2, A2, L2]), ae(() => {
|
|
1942
1942
|
M2.current?.invalidate();
|
|
1943
1943
|
}, [A2]);
|
|
1944
1944
|
const Ae2 = S((e3) => c2 ? c2(e3) : o2.getTextAt(e3), [c2, o2]), ze2 = S((e3) => {
|
|
1945
|
-
const { header: t3, headerSelect: o3, headerSelectAll: n3, headerHover:
|
|
1946
|
-
return Z(qe, { orientation: R2, index: R2 === s.Orientation.Column ?
|
|
1945
|
+
const { header: t3, headerSelect: o3, headerSelectAll: n3, headerHover: l3 } = u2 ?? {}, { range: r3, key: i3, ...a3 } = e3;
|
|
1946
|
+
return Z(qe, { orientation: R2, index: R2 === s.Orientation.Column ? r3.colStart : r3.rowStart, isSelected: Y2, isSelectedAll: J2, zoomScale: 100 * L2, headerText: Ae2, headerStyle: t3, headerStyleSelect: o3, headerStyleSelectAll: n3, headerStyleHover: l3, verticalPadding: h2, horizontalPadding: m2, ...a3 }, i3);
|
|
1947
1947
|
}, [A2, H2, u2, L2, o2]), Fe2 = D(), De2 = ne(() => {
|
|
1948
1948
|
const e3 = "white", t3 = "black", o3 = {};
|
|
1949
1949
|
if ("touch" !== C.detectIt().primaryInput) {
|
|
1950
1950
|
let n3 = R2 === 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`;
|
|
1951
|
-
const
|
|
1952
|
-
if ("formatPainter" ===
|
|
1953
|
-
const o4 = 30,
|
|
1954
|
-
n3 = `url("data:image/svg+xml,%3Csvg width='${o4}' height='${
|
|
1951
|
+
const l3 = Fe2.getMode();
|
|
1952
|
+
if ("formatPainter" === l3?.key) {
|
|
1953
|
+
const o4 = 30, l4 = 22;
|
|
1954
|
+
n3 = `url("data:image/svg+xml,%3Csvg width='${o4}' height='${l4}' viewBox='0 0 ${o4} ${l4}' 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='${t3}' fill='${e3}'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer`;
|
|
1955
1955
|
}
|
|
1956
1956
|
o3.cursor = n3;
|
|
1957
1957
|
}
|
|
1958
1958
|
return o3.backgroundColor = u2?.header?.fill || "transparent", o3;
|
|
1959
|
-
}, [R2, A2, Fe2, u2]),
|
|
1959
|
+
}, [R2, A2, Fe2, u2]), Ee2 = b(t2, () => ({ scrollTo: (e3) => {
|
|
1960
1960
|
M2.current?.scrollTo(e3);
|
|
1961
1961
|
}, forceRender: () => {
|
|
1962
1962
|
z2();
|
|
1963
|
-
}, getGridElement: () => M2.current }), []),
|
|
1963
|
+
}, getGridElement: () => M2.current }), []), Ie2 = de((e3) => {
|
|
1964
1964
|
Re2.onPointerDown(e3);
|
|
1965
1965
|
}, [Re2]), Ne2 = de((e3) => {
|
|
1966
1966
|
const t3 = Re2.getCellCoordsFromClient(e3.clientX, e3.clientY);
|
|
@@ -1970,15 +1970,15 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
1970
1970
|
p2({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: o3 ? -1 : t3.rowIndex, colIndex: o3 ? t3.colIndex : -1 }), e3.stopPropagation(), e3.preventDefault();
|
|
1971
1971
|
}, [Re2, p2]), He2 = ne(() => {
|
|
1972
1972
|
const e3 = R2 === s.Orientation.Column;
|
|
1973
|
-
return Z("div", { ref:
|
|
1973
|
+
return Z("div", { ref: Ee2, children: Z(ye, { className: "sheet-header", style: De2, ref: M2, scrollPoint: P2, columnCount: e3 ? H2 : 1, rowCount: e3 ? 1 : H2, width: e3 ? a2 : i2, height: e3 ? i2 : d2, freezeLeft: e3 ? g2 : void 0, freezeTop: e3 ? void 0 : g2, hiddenColumnsAt: e3 ? K2 : void 0, hiddenRowsAt: e3 ? void 0 : K2, showGridLines: false, layout: he2, clipCells: false, allowOverlaysOverflow: true, enableMouseWheel: false, onContextMenu: Ne2, onPointerDown: Ie2, zoom: L2, cellRenderer: ze2, overlays: O2 }) });
|
|
1974
1974
|
}, [O2, he2, a2, d2, P2, De2, F2]);
|
|
1975
1975
|
return ae(() => {
|
|
1976
|
-
N2.current = false, M2.current?.invalidate(),
|
|
1976
|
+
N2.current = false, M2.current?.invalidate(), E2();
|
|
1977
1977
|
}, [o2, u2]), He2;
|
|
1978
|
-
})), Wt = oe(
|
|
1979
|
-
const { view: o2, sheet: n2, getVisibleCells:
|
|
1978
|
+
})), Wt = oe(re((e2, t2) => {
|
|
1979
|
+
const { view: o2, sheet: n2, getVisibleCells: l2, gridStyle: r2 } = e2, i2 = S((e3, t3) => e3.getStyle().getBorder(), []), { overlay: a2 } = ut({ getVisibleCells: l2, getBorderAt: i2, darkMode: r2.body.darkMode, shiftIfWide: true }), s2 = a2(o2);
|
|
1980
1980
|
return s2 && o2 ? s2 : null;
|
|
1981
|
-
})), Ut = { key: "copy", description: "'Copy' Select destination and press ENTER or choose Paste." }, _t = { key: "cut", description: "'Cut' Select destination and press ENTER or choose Paste." }, Gt = { type: o.Content.Values }, Zt = { fitDestination: true, type: o.Content.Formats }, jt = { fitDestination: true, type: o.Content.Formulas }, Kt = { transpose: true }, Xt = { fitDestination: true, adjustCells: (e2, t2, o2) => ({ value: `=${t2.getA1({ $colIndex: true, $rowIndex: true })}` }) }, Yt = ({ element: e2, sheet: t2, sheetView: n2, commands:
|
|
1981
|
+
})), Ut = { key: "copy", description: "'Copy' Select destination and press ENTER or choose Paste." }, _t = { key: "cut", description: "'Cut' Select destination and press ENTER or choose Paste." }, Gt = { type: o.Content.Values }, Zt = { fitDestination: true, type: o.Content.Formats }, jt = { fitDestination: true, type: o.Content.Formulas }, Kt = { transpose: true }, Xt = { fitDestination: true, adjustCells: (e2, t2, o2) => ({ value: `=${t2.getA1({ $colIndex: true, $rowIndex: true })}` }) }, Yt = ({ element: e2, sheet: t2, sheetView: n2, commands: l2, onClipboardUpdate: r2, onPaste: i2, selectionRenderer: a2 = Se, copyForegroundColor: d2 = "rgb(33, 115, 70)", cutForegroundColor: c2 = "rgb(33, 115, 70)", copyBackgroundColor: g2 = "white", cutBackgroundColor: u2 = "white", ...h2 }) => {
|
|
1982
1982
|
const m2 = S(a2, [a2]), w2 = ie(null), v2 = D(), q2 = v2.getMode(), y2 = ne(() => ({ element: e2, doCopy: (e3) => {
|
|
1983
1983
|
const o2 = t2.getSelectedRanges().getSnapshot(e3);
|
|
1984
1984
|
return new p(o2);
|
|
@@ -1988,12 +1988,17 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
1988
1988
|
}, doPaste: async (e3, n3) => {
|
|
1989
1989
|
if ("range" !== e3?.getItemType()) return;
|
|
1990
1990
|
n3?.contentsOnly && delete (n3 = { ...n3, type: o.Content.Values }).contentsOnly;
|
|
1991
|
-
const
|
|
1992
|
-
|
|
1993
|
-
|
|
1991
|
+
const l3 = e3.getItem(), r3 = l3.getName();
|
|
1992
|
+
let i3 = t2.getSelectedRange();
|
|
1993
|
+
if ("HTML" === r3 && i3.size > 1) {
|
|
1994
|
+
const e4 = l3?.getCoords();
|
|
1995
|
+
e4 && Q.isSingleCell(e4) && (i3 = i3.getResizeTo(1, 1));
|
|
1996
|
+
}
|
|
1997
|
+
return await i3.doBatch(async () => {
|
|
1998
|
+
const e4 = await i3.copyFrom(l3, n3);
|
|
1994
1999
|
!e4 || e4.isEntireRows() || e4.isEntireColumns() || e4.autoFit({ orientations: s.Orientations.Row, minContent: true });
|
|
1995
|
-
}, { description: "Paste" + (
|
|
1996
|
-
} }), [t2, n2, e2]), { clipboard: b2, ...x2 } = A({ ...h2, source: y2, commands:
|
|
2000
|
+
}, { description: "Paste" + (r3 ? ` ${r3}` : ""), autoSelect: true }), true;
|
|
2001
|
+
} }), [t2, n2, e2]), { clipboard: b2, ...x2 } = A({ ...h2, source: y2, commands: l2, target: C2, onClipboardUpdate: (e3) => {
|
|
1997
2002
|
const t3 = "range" === e3?.getItemType() ? e3 : null;
|
|
1998
2003
|
if (t3) {
|
|
1999
2004
|
const t4 = e3.editMode?.(), o2 = { ...e3?.isCut?.() ? _t : Ut, ...t4, args: { isClipboard: true, ...t4?.args }, onModeChange: (e4) => {
|
|
@@ -2001,60 +2006,60 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2001
2006
|
} };
|
|
2002
2007
|
v2.setMode(o2);
|
|
2003
2008
|
}
|
|
2004
|
-
w2.current = t3,
|
|
2009
|
+
w2.current = t3, r2?.(t3);
|
|
2005
2010
|
}, onPaste: (o2, n3) => {
|
|
2006
2011
|
if ("range" !== o2?.getItemType()) return;
|
|
2007
|
-
let
|
|
2008
|
-
if (!
|
|
2012
|
+
let l3 = "cut" === v2.getMode()?.key || o2.isCut?.();
|
|
2013
|
+
if (!l3 && "copy" === v2.getMode()?.key) {
|
|
2009
2014
|
const e3 = o2.getItem().getCoords(), n4 = t2.getSelectedRanges().getCoords();
|
|
2010
|
-
let
|
|
2011
|
-
if (!
|
|
2012
|
-
|
|
2015
|
+
let r3 = false;
|
|
2016
|
+
if (!r3 && e3 && n4 && o2.getItem().getSource?.() === t2) for (let t3 = 0; !r3 && t3 < n4.length; t3++) r3 = Q.isRangesIntersect(e3, n4[t3]);
|
|
2017
|
+
l3 = r3;
|
|
2013
2018
|
}
|
|
2014
|
-
|
|
2019
|
+
l3 && v2.setMode(null), e2?.()?.focus(), i2?.(o2, n3);
|
|
2015
2020
|
} });
|
|
2016
2021
|
ne(() => {
|
|
2017
2022
|
const t3 = e2;
|
|
2018
|
-
if (!
|
|
2023
|
+
if (!l2) return;
|
|
2019
2024
|
const o2 = [new T("pasteValues", t3, { label: "Paste Values", scopedLabels: { paste: "Values" }, description: "Paste only the values of the selected cells.\n\nThe formatting is not applied.", icon: "PasteValues", shortcut: { key: "V", modifiers: [R.Ctrl, R.Shift] } }), new T("pasteFormats", t3, { label: "Paste Formatting", scopedLabels: { paste: "Formatting" }, description: "Paste only the formats of the selected cells.\n\nThe content is not applied.", icon: "PasteFormats" }), new T("pasteFormulas", t3, { label: "Paste Formulas", scopedLabels: { paste: "Formulas" }, description: "Paste only the formulas of the selected cells. The values and formatting is not applied.", icon: "PasteFormulas" }), new T("pasteTranspose", t3, { label: "Paste Transpose", scopedLabels: { paste: "Transpose" }, description: "Paste with the rows and columns flipped.", icon: "PasteTranspose" }), new T("pasteLinks", t3, { label: "Paste Links", scopedLabels: { paste: "Links" }, description: "Paste as formula references to the original cells.", icon: "PasteLinks" })];
|
|
2020
|
-
|
|
2021
|
-
}, [
|
|
2022
|
-
if (!
|
|
2025
|
+
l2.addCommands(o2, true);
|
|
2026
|
+
}, [l2, e2]), ae(() => {
|
|
2027
|
+
if (!l2) return;
|
|
2023
2028
|
const e3 = { disabled: !t2.getProtection().isFormatCellsAllowed() };
|
|
2024
|
-
|
|
2025
|
-
}, [t2,
|
|
2029
|
+
l2.getCommand("pasteValues").updateCallback((e4) => x2.paste({ ...Gt, ...e4 })).update(e3), l2.getCommand("pasteFormats").updateCallback((e4, t3) => x2.paste({ ...Zt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteFormulas").updateCallback((e4, t3) => x2.paste({ ...jt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteTranspose").updateCallback((e4, t3) => x2.paste({ ...Kt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("pasteLinks").updateCallback((e4, t3) => x2.paste({ ...Xt, description: t3.label(), ...e4 })).update(e3), l2.getCommand("cut").update(e3), l2.getCommand("paste").update(e3);
|
|
2030
|
+
}, [t2, l2]);
|
|
2026
2031
|
const k2 = ne(() => {
|
|
2027
2032
|
if (!q2 || !w2.current) return;
|
|
2028
2033
|
const e3 = q2.key;
|
|
2029
2034
|
if ("copy" !== e3 && "cut" !== e3 && "formatPainter" !== e3) return;
|
|
2030
2035
|
const o2 = w2.current.getItem();
|
|
2031
2036
|
if (o2.getSource() !== t2) return;
|
|
2032
|
-
const n3 = w2.current.isCut?.(),
|
|
2037
|
+
const n3 = w2.current.isCut?.(), l3 = n3 ? u2 : g2, r3 = n3 ? c2 : d2, i3 = o2.getCoords(), a3 = i3 ? [i3] : null;
|
|
2033
2038
|
return a3 && 0 !== a3.length ? (e4) => {
|
|
2034
2039
|
const t3 = [];
|
|
2035
2040
|
for (let o3 = 0; o3 < a3.length; o3++) {
|
|
2036
2041
|
const n4 = a3[o3], i4 = e4.toClipBounds(e4.getRangeCoordsBounds(n4, { top: 0, left: 0, right: 1, bottom: 1 }), be);
|
|
2037
|
-
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:
|
|
2042
|
+
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 })));
|
|
2038
2043
|
}
|
|
2039
2044
|
return t3;
|
|
2040
2045
|
} : null;
|
|
2041
2046
|
}, [q2, t2, n2, d2, g2, c2, u2]);
|
|
2042
2047
|
return { ...x2, clipboard: b2, overlays: k2 };
|
|
2043
|
-
}, Jt = oe(
|
|
2044
|
-
const { view: o2, element: n2, sheet:
|
|
2045
|
-
return St(
|
|
2048
|
+
}, Jt = oe(re((e2, t2) => {
|
|
2049
|
+
const { view: o2, element: n2, sheet: l2, gridStyle: r2, commands: i2 } = e2, a2 = r2.body ?? {}, s2 = l2.getView(), { overlays: d2 } = Yt({ element: n2, sheet: l2, sheetView: s2, commands: i2, copyForegroundColor: r2.selection.strokeFill, copyBackgroundColor: a2.fill, cutForegroundColor: r2.selectionRemove.strokeFill, cutBackgroundColor: a2.fill });
|
|
2050
|
+
return St(l2?.getSelection(), { onChange(e3) {
|
|
2046
2051
|
} }), ae(() => {
|
|
2047
2052
|
o2?.getStage();
|
|
2048
2053
|
}, [o2?.getStage()]), d2 && o2 ? d2(o2) : null;
|
|
2049
|
-
})), Qt = "_sheet-selection_12wyx_5", eo = { key: "dragCut", description: "Drag selection to move cell contents.", cursor: "move" }, to = { key: "dragCutInsert", description: "Drag selection to insert cell contents.", cursor: "copy" }, oo = { key: "dragCopy", description: "Drag selection to copy cell contents." }, no = { key: "dragCopyInsert", description: "Drag selection to insert copied cell contents.", cursor: "move" },
|
|
2050
|
-
const { view: o2, commands: n2, className:
|
|
2054
|
+
})), Qt = "_sheet-selection_12wyx_5", eo = { key: "dragCut", description: "Drag selection to move cell contents.", cursor: "move" }, to = { key: "dragCutInsert", description: "Drag selection to insert cell contents.", cursor: "copy" }, oo = { key: "dragCopy", description: "Drag selection to copy cell contents." }, no = { key: "dragCopyInsert", description: "Drag selection to insert copied cell contents.", cursor: "move" }, lo = (e2, t2) => t2.ctrlKey && t2.shiftKey ? no : t2.ctrlKey ? oo : t2.shiftKey ? to : eo, ro = { key: "fill", description: "Drag selection to extend series or fill.", cursor: "crosshair" }, io = oe(re((e2, t2) => {
|
|
2055
|
+
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]), [v2, q2] = le(() => d2?.getSelection().getCoords()), y2 = S((e3) => {
|
|
2051
2056
|
Q.isEqualSelectionCoords(e3, v2) || d2 && d2.getSelection().updateCoords(e3);
|
|
2052
|
-
}, [d2, v2]), x2 = D(), k2 = ie(null), [T2, R2] =
|
|
2057
|
+
}, [d2, v2]), x2 = D(), k2 = ie(null), [T2, R2] = le(d2?.getProtection().isLocked()), [M2, A2] = le(d2?.getView().getMovableSelection().length > 0), z2 = "touch" === C.detectIt().primaryInput, E2 = !z2 && u2, I2 = h2 ?? x2.getMode()?.args?.stateAndCoords?.coords ?? null, N2 = null !== I2 || M2, H2 = S((e3) => {
|
|
2053
2058
|
const t3 = Q.cellToRange(e3);
|
|
2054
2059
|
if (d2.isClosed()) return t3;
|
|
2055
2060
|
const o3 = d2.getRange(t3, { ignoreHidden: true }).getMerges();
|
|
2056
2061
|
return 0 === o3.length ? t3 : o3[0];
|
|
2057
|
-
}, [d2]), P2 = S((e3, t3, o3, n3,
|
|
2062
|
+
}, [d2]), P2 = S((e3, t3, o3, n3, l3, r3) => {
|
|
2058
2063
|
const i3 = d2.getSelectedRange().getExtended(n3, e3).getCoords();
|
|
2059
2064
|
switch (n3) {
|
|
2060
2065
|
case s.Direction.Up:
|
|
@@ -2087,10 +2092,10 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2087
2092
|
} }), St(d2, { onProtectionChange: () => {
|
|
2088
2093
|
R2(d2.getProtection().isLocked());
|
|
2089
2094
|
} });
|
|
2090
|
-
const { body: G2 = {} } = g2 || {}, j2 = F(), K2 = o2.getLayout(), X2 = !(
|
|
2091
|
-
x2.setMode(
|
|
2095
|
+
const { body: G2 = {} } = g2 || {}, j2 = F(), K2 = o2.getLayout(), X2 = !(E2 && v2.ranges.length <= 1 && null === I2 && !T2 && (!x2.getMode() || _2)), { cursor: Y2, overlay: J2, onPointerDown: ee2 } = we({ gridRef: c2, commands: n2, layout: K2, getCellCoordsAsRangeCoords: H2, selection: v2, fillHandleBorderColor: G2.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: X2, disableMoveDrag: z2 || !(u2 && v2.ranges.length <= 1 && null === I2 && !T2), disableTouchSelection: N2, onSelectionChange: y2, onSelectionDragStart: W2, onSelectionDragEnd: U2, onMoveDragStart: (e3, t3, o3) => {
|
|
2096
|
+
x2.setMode(lo(0, o3));
|
|
2092
2097
|
}, onMoveDragUpdate: (e3, t3, o3) => {
|
|
2093
|
-
x2.setMode(
|
|
2098
|
+
x2.setMode(lo(0, o3));
|
|
2094
2099
|
}, onMoveDragEnd: (e3, t3) => {
|
|
2095
2100
|
x2.setMode(null);
|
|
2096
2101
|
}, onMoveDragDone: async (e3, t3, o3) => {
|
|
@@ -2099,17 +2104,17 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2099
2104
|
if (j2?.showOptions) {
|
|
2100
2105
|
const t4 = n3.getDifferences(e3);
|
|
2101
2106
|
let o4 = false;
|
|
2102
|
-
const
|
|
2103
|
-
for (let e4 = 0; !o4 && e4 <
|
|
2107
|
+
const l4 = t4.getCount();
|
|
2108
|
+
for (let e4 = 0; !o4 && e4 < l4; e4++) o4 = t4.at(e4).isContentful();
|
|
2104
2109
|
if (o4) {
|
|
2105
2110
|
if ("Replace" !== await j2?.showOptions({ title: "Confirm", description: "There is already data here. Do you want to replace it?", options: ["Replace", "Cancel"], defaultOption: "Replace" })) return;
|
|
2106
2111
|
}
|
|
2107
2112
|
}
|
|
2108
|
-
const
|
|
2113
|
+
const l3 = !o3.ctrlKey, r3 = o3.shiftKey, i3 = r3 ? l3 ? "Insert Moved Cells" : "Insert Copied Cells" : l3 ? "Move Cells" : "Copy Cells", a3 = await j2?.showBusy?.(i3);
|
|
2109
2114
|
try {
|
|
2110
2115
|
const t4 = d2.getRange(e3);
|
|
2111
2116
|
await n3.doBatch(async () => {
|
|
2112
|
-
|
|
2117
|
+
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 });
|
|
2113
2118
|
}, { description: i3, autoSelect: true });
|
|
2114
2119
|
} catch (e4) {
|
|
2115
2120
|
j2?.showError?.(e4);
|
|
@@ -2132,16 +2137,16 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2132
2137
|
}
|
|
2133
2138
|
}, onFillPreview: (e3, t3, n3) => {
|
|
2134
2139
|
if (c2.current && f2) {
|
|
2135
|
-
x2.setMode(
|
|
2140
|
+
x2.setMode(ro);
|
|
2136
2141
|
try {
|
|
2137
2142
|
k2.current?.direction !== n3 && (k2.current = null, d2.getRange(e3).autoFill(t3, { previewOnly: (e4) => {
|
|
2138
2143
|
k2.current = { callback: e4, direction: n3 };
|
|
2139
2144
|
} }));
|
|
2140
|
-
const
|
|
2141
|
-
if (!
|
|
2142
|
-
const
|
|
2143
|
-
if (!
|
|
2144
|
-
const i3 = Q.cellToRange(
|
|
2145
|
+
const l3 = k2.current?.callback?.(t3);
|
|
2146
|
+
if (!l3 || l3.isEmpty()) return;
|
|
2147
|
+
const r3 = l3.toText();
|
|
2148
|
+
if (!r3) return;
|
|
2149
|
+
const i3 = Q.cellToRange(l3.getCoords()), a3 = o2.getRelativePointFromClient(0, 0);
|
|
2145
2150
|
let c3 = 0, g3 = 0, u3 = L.Bottom;
|
|
2146
2151
|
if (n3 === s.Direction.Down) {
|
|
2147
2152
|
c3 = K2.getColOffset(i3.colEnd + 1) - a3.x;
|
|
@@ -2160,7 +2165,7 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2160
2165
|
const e4 = K2.getColOffset(i3.colStart), t4 = K2.getColOffset(i3.colStart + 1);
|
|
2161
2166
|
c3 = t4 - (t4 - e4) / 2 - a3.x, u3 = L.Bottom;
|
|
2162
2167
|
}
|
|
2163
|
-
f2({ anchor: { x: c3, y: g3 }, display:
|
|
2168
|
+
f2({ anchor: { x: c3, y: g3 }, display: r3, placement: u3 });
|
|
2164
2169
|
} catch (e4) {
|
|
2165
2170
|
j2?.showError?.(e4);
|
|
2166
2171
|
}
|
|
@@ -2169,52 +2174,52 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2169
2174
|
k2.current = null, x2.setMode(null), w2?.();
|
|
2170
2175
|
} }), te2 = S((e3) => {
|
|
2171
2176
|
ee2(C.createSyntheticEvent(e3));
|
|
2172
|
-
}, [ee2,
|
|
2177
|
+
}, [ee2, I2]);
|
|
2173
2178
|
ae(() => {
|
|
2174
2179
|
const e3 = o2?.getStage();
|
|
2175
2180
|
if (e3) return e3.addEventListener("pointerdown", te2), () => {
|
|
2176
2181
|
e3.removeEventListener("pointerdown", te2);
|
|
2177
2182
|
};
|
|
2178
2183
|
}, [o2?.getStage()]);
|
|
2179
|
-
const oe2 = b(t2, () => ({}), []),
|
|
2180
|
-
return Z("div", { className: Ae(
|
|
2181
|
-
})), ao = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), so = { fireOnModelChange: false }, co = oe(
|
|
2182
|
-
const { children: o2, view: n2, movable:
|
|
2184
|
+
const oe2 = b(t2, () => ({}), []), re2 = ie(null);
|
|
2185
|
+
return Z("div", { className: Ae(l2, "sheet-selection", Qt), style: { position: "absolute", width: p2?.width, height: p2?.height, overflow: "hidden", pointerEvents: "none", willChange: "none" }, ref: Re([oe2, re2]), ...m2, children: J2(o2) });
|
|
2186
|
+
})), ao = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), so = { fireOnModelChange: false }, co = oe(re((e2, t2) => {
|
|
2187
|
+
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, v2] = le(ao), [q2, y2] = le(null), [C2, b2] = le(false), S2 = ie(null);
|
|
2183
2188
|
se(() => {
|
|
2184
|
-
if (
|
|
2185
|
-
const e3 =
|
|
2189
|
+
if (l2.isClosed()) return;
|
|
2190
|
+
const e3 = l2.getBounds();
|
|
2186
2191
|
if (!e3) return;
|
|
2187
2192
|
const t3 = n2.toViewBounds(e3);
|
|
2188
2193
|
v2(t3 ?? ao), g2(t3 ?? ao);
|
|
2189
|
-
}, [n2?.getBounds()]), St(
|
|
2194
|
+
}, [n2?.getBounds()]), St(l2, { onBoundsChange: (e3) => {
|
|
2190
2195
|
const t3 = e3.getBounds();
|
|
2191
2196
|
if (!t3) return;
|
|
2192
2197
|
const o3 = n2.toViewBounds(t3);
|
|
2193
2198
|
v2(o3 ?? ao), g2(o3);
|
|
2194
2199
|
}, onSelectionChange: () => {
|
|
2195
2200
|
const e3 = X.hasFocus(S2.current, true);
|
|
2196
|
-
!C2 && !e3 ||
|
|
2197
|
-
} }), St(
|
|
2201
|
+
!C2 && !e3 || l2.isSelected() || d2();
|
|
2202
|
+
} }), St(l2, { onRequestFocus: () => X.whenFocus(S2.current, true) }, so), ae(() => {
|
|
2198
2203
|
const e3 = S2.current;
|
|
2199
|
-
return
|
|
2204
|
+
return r2(e3), () => {
|
|
2200
2205
|
i2(e3);
|
|
2201
2206
|
};
|
|
2202
2207
|
}, []);
|
|
2203
2208
|
const x2 = ne(() => {
|
|
2204
2209
|
if (!w2) return null;
|
|
2205
2210
|
let { width: e3, height: t3 } = w2;
|
|
2206
|
-
return p2({ view: n2, movable:
|
|
2207
|
-
}, [n2,
|
|
2211
|
+
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 });
|
|
2212
|
+
}, [n2, l2, w2.width, w2.height, m2, c2]);
|
|
2208
2213
|
return Z("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) => {
|
|
2209
|
-
const t3 = e3.shiftKey || e3.ctrlKey, o3 =
|
|
2210
|
-
t3 && o3 ?
|
|
2214
|
+
const t3 = e3.shiftKey || e3.ctrlKey, o3 = l2.isSelected(), n3 = e3.currentTarget;
|
|
2215
|
+
t3 && o3 ? l2.unselect() : (o3 && !t3 || await l2.select({ addToSelection: t3 }), u2(e3.nativeEvent, n3), n3.focus());
|
|
2211
2216
|
}, onFocus: (e3) => {
|
|
2212
2217
|
e3.relatedTarget && !q2 && y2(e3.relatedTarget), b2(true);
|
|
2213
2218
|
}, onBlur: (e3) => {
|
|
2214
2219
|
q2 && !S2?.current?.contains(e3.relatedTarget) && y2(null), e3.relatedTarget && b2(false);
|
|
2215
2220
|
}, ...f2, children: x2 });
|
|
2216
|
-
})), go = "_movable-area_314c6_5", uo = oe(
|
|
2217
|
-
const { view: o2, movables: n2, movablesView:
|
|
2221
|
+
})), go = "_movable-area_314c6_5", uo = oe(re((e2, t2) => {
|
|
2222
|
+
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, v2 = o2.getBounds(), q2 = S(p2, [p2]), y2 = S(a2, [a2]), C2 = S(s2, [s2]), [k2, T2] = le([]), [R2, M2] = le(false), [A2, z2] = le(false), F2 = ie(true), D2 = ie(/* @__PURE__ */ new Map()), E2 = ie(/* @__PURE__ */ new Map()), I2 = ie(/* @__PURE__ */ new Map()), N2 = ie(/* @__PURE__ */ new Map()), H2 = ie(/* @__PURE__ */ new Map()), P2 = ie({ onRequestFocus: (e3) => (ce2(e3), null) }), V2 = ie(null), L2 = ie(null), B2 = ie(null), [O2, $2] = ue((e3) => e3 + 1, 0);
|
|
2218
2223
|
se(() => {
|
|
2219
2224
|
$2();
|
|
2220
2225
|
}, [o2, n2]), St(n2, { onCollectionChange: () => {
|
|
@@ -2222,28 +2227,28 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2222
2227
|
t3.forEach((e4) => {
|
|
2223
2228
|
e4();
|
|
2224
2229
|
}), t3.clear();
|
|
2225
|
-
const
|
|
2230
|
+
const l3 = P2.current;
|
|
2226
2231
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
2227
2232
|
const n3 = e3[o3];
|
|
2228
2233
|
if (n3.isClosed()) continue;
|
|
2229
|
-
const
|
|
2230
|
-
t3.set(n3,
|
|
2234
|
+
const r3 = n3.addListeners(l3);
|
|
2235
|
+
t3.set(n3, r3);
|
|
2231
2236
|
}
|
|
2232
2237
|
$2();
|
|
2233
2238
|
}, onInvalidated: () => {
|
|
2234
2239
|
$2();
|
|
2235
|
-
} }), St(
|
|
2240
|
+
} }), St(l2, { onMovableSelectionChange(e3) {
|
|
2236
2241
|
U2(), $2();
|
|
2237
2242
|
} });
|
|
2238
2243
|
const W2 = de((e3, t3) => {
|
|
2239
|
-
const o3 =
|
|
2244
|
+
const o3 = I2.current.get(e3);
|
|
2240
2245
|
B2.current && (B2.current.getTargets().forEach((e4) => {
|
|
2241
2246
|
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");
|
|
2242
2247
|
}), B2.current.updateRect());
|
|
2243
2248
|
}, []), U2 = () => {
|
|
2244
|
-
const e3 = [], t3 =
|
|
2249
|
+
const e3 = [], t3 = l2.getMovableSelection();
|
|
2245
2250
|
t3.forEach((o3) => {
|
|
2246
|
-
const n3 =
|
|
2251
|
+
const n3 = I2.current.get(o3);
|
|
2247
2252
|
if (!n3) return;
|
|
2248
2253
|
-1 !== t3.indexOf(o3) && e3.push(n3);
|
|
2249
2254
|
}), T2((t4) => X.isEqualArrays(t4, e3) ? t4 : e3);
|
|
@@ -2252,27 +2257,27 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2252
2257
|
})), G2.current), []), Y2 = ie(null), J2 = S(async (e3, t3) => {
|
|
2253
2258
|
Y2.current = t3;
|
|
2254
2259
|
await (async () => !(!await K2.then() || !B2.current))() && Y2.current === t3 && B2.current.dragStart(e3, t3);
|
|
2255
|
-
}, [k2]), [Q2, ee2] =
|
|
2256
|
-
if (e3 || (e3 =
|
|
2257
|
-
const t3 =
|
|
2258
|
-
t3 ? (await X.whenFocus(t3), t3.focus(),
|
|
2259
|
-
}, [
|
|
2260
|
+
}, [k2]), [Q2, ee2] = le(false), oe2 = ie(null), re2 = ie(null), ce2 = S(async (e3 = null) => {
|
|
2261
|
+
if (e3 || (e3 = l2.getMovableSelection()[0]), !e3) return y2?.(), false;
|
|
2262
|
+
const t3 = I2.current.get(e3);
|
|
2263
|
+
t3 ? (await X.whenFocus(t3), t3.focus(), re2.current = t3, oe2.current = null) : oe2.current = e3;
|
|
2264
|
+
}, [l2]);
|
|
2260
2265
|
ae(() => {
|
|
2261
|
-
Q2 && k2.length > 0 &&
|
|
2266
|
+
Q2 && k2.length > 0 && re2.current !== k2[0] && ce2(), F2.current && (q2?.(), F2.current = false);
|
|
2262
2267
|
}, [k2]);
|
|
2263
2268
|
const ge2 = ne(() => {
|
|
2264
2269
|
const e3 = n2.getItems({ address: o2.getVisibleRangeCoords(), ignoreHidden: true });
|
|
2265
2270
|
if (0 === e3.length && 0 === D2.current.size) return null;
|
|
2266
|
-
const t3 = (t4, n3,
|
|
2267
|
-
const a4 = t4.isSelected(), s4 = { tabIndex:
|
|
2268
|
-
oe2.current === t4 && (e4.focus(),
|
|
2271
|
+
const t3 = (t4, n3, l3, i4 = true) => {
|
|
2272
|
+
const a4 = t4.isSelected(), s4 = { tabIndex: l3, view: o2, movable: t4, onRefLoad: (e4) => {
|
|
2273
|
+
oe2.current === t4 && (e4.focus(), re2.current = e4, oe2.current = null), I2.current.set(t4, e4), E2.current.set(e4, t4), n3.rendered = true, U2();
|
|
2269
2274
|
}, onRefUnload: (e4) => {
|
|
2270
|
-
|
|
2275
|
+
I2.current.delete(t4), E2.current.delete(e4), n3.rendered = false, U2();
|
|
2271
2276
|
}, onUnFocus: y2, onHide: (e4) => {
|
|
2272
2277
|
n3.onHide = e4;
|
|
2273
2278
|
}, onShow: (e4) => {
|
|
2274
2279
|
n3.onShow = e4;
|
|
2275
|
-
}, isDragging: a4 && (A2 || R2), disabled: d2, renderMovable:
|
|
2280
|
+
}, isDragging: a4 && (A2 || R2), disabled: d2, renderMovable: r2, updateFrameBounds: (e4) => {
|
|
2276
2281
|
W2(t4, e4);
|
|
2277
2282
|
}, dragStart: J2, onMouseUp: () => {
|
|
2278
2283
|
if (Y2.current = null, L2.current) {
|
|
@@ -2288,8 +2293,8 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2288
2293
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
2289
2294
|
const n3 = e3[o3];
|
|
2290
2295
|
if (n3.isClosed()) continue;
|
|
2291
|
-
let
|
|
2292
|
-
|
|
2296
|
+
let l3 = i3.get(n3);
|
|
2297
|
+
l3 || (l3 = { frame: null, shown: null, onShow: null, onHide: null, rendered: false, doShow: (e4, t4) => {
|
|
2293
2298
|
if (!t4 || true === t4.shown) return;
|
|
2294
2299
|
t4.shown = true;
|
|
2295
2300
|
const o4 = ++t4.visibilityRequestId;
|
|
@@ -2302,20 +2307,20 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2302
2307
|
t4.shown = false;
|
|
2303
2308
|
const o4 = ++t4.visibilityRequestId, n4 = await Promise.resolve(t4.onHide?.(e4));
|
|
2304
2309
|
o4 === t4.visibilityRequestId && false !== n4 && (t4.shown = false, D2.current.delete(e4), $2());
|
|
2305
|
-
}, visibilityRequestId: 0 }),
|
|
2310
|
+
}, visibilityRequestId: 0 }), l3.frame = t3(n3, l3, o3, true), s3.push(l3.frame), l3.doShow(n3, l3), i3.delete(n3), a3.set(n3, l3);
|
|
2306
2311
|
}
|
|
2307
2312
|
const g3 = [];
|
|
2308
|
-
return
|
|
2313
|
+
return l2.getMovableSelection().forEach((e4) => {
|
|
2309
2314
|
const o3 = i3.get(e4);
|
|
2310
2315
|
o3 && (o3.frame = t3(e4, o3, -1, false), g3.push(o3.frame), i3.delete(e4), a3.set(e4, o3));
|
|
2311
2316
|
}), i3.forEach((e4, o3) => {
|
|
2312
2317
|
e4.frame = t3(o3, e4, -1, false), g3.push(e4.frame), e4.doHide(o3, e4), i3.delete(o3), a3.set(o3, e4);
|
|
2313
2318
|
}), D2.current = a3, U2(), [...g3, ...s3];
|
|
2314
|
-
}, [O2, o2,
|
|
2315
|
-
const n3 = `${t3} ${1 === k2.length ? w.capitalize(
|
|
2319
|
+
}, [O2, o2, r2, d2, c2, g2, R2, A2]), me2 = S((e3, t3) => {
|
|
2320
|
+
const n3 = `${t3} ${1 === k2.length ? w.capitalize(E2.current?.get(k2[0]).getContent().getType()) : "Drawings"}`;
|
|
2316
2321
|
L2.current && (console.warn(`Transaction ${L2.current.getDescription()} is being replaced by ${n3}`), L2.current.rollback(), L2.current = null), L2.current = i2.beginCommit({ description: n3 }), N2.current.clear();
|
|
2317
2322
|
for (let e4 = 0; e4 < k2.length; e4++) {
|
|
2318
|
-
const t4 = k2[e4], n4 =
|
|
2323
|
+
const t4 = k2[e4], n4 = E2.current?.get(t4);
|
|
2319
2324
|
n4 ? N2.current.set(t4, { movable: n4, startBounds: o2.toViewBounds(n4.getBounds()) }) : console.warn("invalid element", n4);
|
|
2320
2325
|
}
|
|
2321
2326
|
}, [i2, o2, k2]), pe2 = de(() => {
|
|
@@ -2323,7 +2328,7 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2323
2328
|
const e3 = [];
|
|
2324
2329
|
N2.current?.forEach((t3) => {
|
|
2325
2330
|
e3.push(t3.movable);
|
|
2326
|
-
}), L2.current.commit({ viewAfter: { view:
|
|
2331
|
+
}), L2.current.commit({ viewAfter: { view: l2, movableSelection: e3 } }), N2.current.clear(), L2.current = null;
|
|
2327
2332
|
}, []), fe2 = de(() => {
|
|
2328
2333
|
L2.current && (L2.current.rollback(), L2.current = null);
|
|
2329
2334
|
}, []), we2 = ie(null);
|
|
@@ -2334,7 +2339,7 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2334
2339
|
}, [we2.current]);
|
|
2335
2340
|
const ve2 = b(t2, () => ({ isMovableArea: () => true, focusMovable: ce2, focus: () => {
|
|
2336
2341
|
ce2();
|
|
2337
|
-
} }), [
|
|
2342
|
+
} }), [l2]), [qe2, ye2] = le(null), Ce2 = ie(false), be2 = ie(false), Se2 = ie(false);
|
|
2338
2343
|
ae(() => {
|
|
2339
2344
|
if (d2 || 0 === k2.length) return;
|
|
2340
2345
|
if (Se2.current) return;
|
|
@@ -2345,7 +2350,7 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2345
2350
|
Ce2.current = true;
|
|
2346
2351
|
const e3 = te.lazy(async () => {
|
|
2347
2352
|
try {
|
|
2348
|
-
const e4 = await import("./
|
|
2353
|
+
const e4 = await import("./BaxwbShUvlIREQtz.mjs");
|
|
2349
2354
|
return Ce2.current = false, be2.current = true, T2([...k2]), e4;
|
|
2350
2355
|
} catch (e4) {
|
|
2351
2356
|
return console.warn(e4), _2.current?.(false), null;
|
|
@@ -2359,15 +2364,15 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2359
2364
|
if (!L2.current) return e3.stopDrag(), void $2();
|
|
2360
2365
|
M2(true);
|
|
2361
2366
|
const t3 = 0 !== e3.direction[0] && 0 !== e3.direction[1];
|
|
2362
|
-
let n3 = 0,
|
|
2363
|
-
for (let
|
|
2364
|
-
const i3 = k2[
|
|
2367
|
+
let n3 = 0, l3 = 0;
|
|
2368
|
+
for (let r3 = 0; r3 < k2.length; r3++) {
|
|
2369
|
+
const i3 = k2[r3], a3 = N2.current.get(i3), s3 = E2.current.get(i3);
|
|
2365
2370
|
if (!a3 || !s3) {
|
|
2366
2371
|
console.warn("invalid element");
|
|
2367
2372
|
continue;
|
|
2368
2373
|
}
|
|
2369
2374
|
let d3 = e3.dist[0], c3 = e3.dist[1], g3 = e3.drag.dist[0], u3 = e3.drag.dist[1], h3 = a3.startBounds.width, m3 = a3.startBounds.height;
|
|
2370
|
-
0 ===
|
|
2375
|
+
0 === r3 ? (n3 = h3, l3 = m3) : (d3 *= h3 / n3, g3 *= h3 / n3, c3 *= m3 / l3, u3 *= m3 / l3);
|
|
2371
2376
|
const p3 = { ...a3.startBounds };
|
|
2372
2377
|
if (p3.width = Math.max(0, h3 + d3), p3.height = Math.max(0, m3 + c3), -1 === e3.direction[0] && (p3.width = Math.max(0, Math.min(a3.startBounds.x + h3, h3 - g3))), -1 === e3.direction[1] && (p3.height = Math.max(0, Math.min(a3.startBounds.y + m3, m3 - u3))), t3 && (s3.isLockAspectRatio() || e3.inputEvent?.shiftKey)) {
|
|
2373
2378
|
const e4 = h3 / m3, t4 = p3.width / p3.height;
|
|
@@ -2383,8 +2388,8 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2383
2388
|
if (!L2.current) return e3.stopDrag(), void $2();
|
|
2384
2389
|
z2(true);
|
|
2385
2390
|
for (let t3 = 0; t3 < k2.length; t3++) {
|
|
2386
|
-
const n3 = k2[t3],
|
|
2387
|
-
|
|
2391
|
+
const n3 = k2[t3], l3 = N2.current.get(n3);
|
|
2392
|
+
l3 ? l3.movable.setBounds(o2.toAbsoluteBounds({ ...l3.startBounds, x: l3.startBounds.x + e3.translate[0], y: l3.startBounds.y + e3.translate[1] })) : console.warn("invalid element");
|
|
2388
2393
|
}
|
|
2389
2394
|
}, onDragEnd: (e3) => {
|
|
2390
2395
|
}, onMouseUp: (e3) => {
|
|
@@ -2395,16 +2400,16 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2395
2400
|
ee2(false);
|
|
2396
2401
|
}, onKeyDownCapture: (e3) => {
|
|
2397
2402
|
if (e3.isDefaultPrevented()) return;
|
|
2398
|
-
const t3 = e3.nativeEvent.ctrlKey, o3 = e3.nativeEvent.altKey,
|
|
2403
|
+
const t3 = e3.nativeEvent.ctrlKey, o3 = e3.nativeEvent.altKey, r3 = e3.nativeEvent.shiftKey;
|
|
2399
2404
|
if (e3.which === x.Escape) {
|
|
2400
|
-
const t4 =
|
|
2405
|
+
const t4 = l2.getMovableSelection();
|
|
2401
2406
|
let o4 = [...t4];
|
|
2402
2407
|
return k2.forEach((e4) => {
|
|
2403
2408
|
if (0 === o4.length) return;
|
|
2404
|
-
const t5 =
|
|
2409
|
+
const t5 = E2.current.get(e4);
|
|
2405
2410
|
let n3 = o4.indexOf(t5);
|
|
2406
2411
|
o4.splice(n3, 1);
|
|
2407
|
-
}), o4.length !== t4.length &&
|
|
2412
|
+
}), o4.length !== t4.length && l2.selectMovables(o4), 0 === o4.length && y2?.(), void e3.preventDefault();
|
|
2408
2413
|
}
|
|
2409
2414
|
const i3 = 0.1, a3 = (e4) => {
|
|
2410
2415
|
n2.updateSelected((t4) => {
|
|
@@ -2413,9 +2418,9 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2413
2418
|
}, s3 = (e4, t4 = true) => {
|
|
2414
2419
|
n2.updateSelected((o4) => {
|
|
2415
2420
|
const n3 = o4.getBounds();
|
|
2416
|
-
let
|
|
2417
|
-
t4 || (
|
|
2418
|
-
const
|
|
2421
|
+
let l3 = 1 + e4;
|
|
2422
|
+
t4 || (l3 = 1 / l3);
|
|
2423
|
+
const r4 = Math.sqrt(Math.pow(n3.width, 2) + Math.pow(n3.height, 2)), i4 = Math.atan2(n3.height, n3.width), a4 = l3 * r4;
|
|
2419
2424
|
if (a4 < 10) return;
|
|
2420
2425
|
const s4 = a4 * Math.cos(i4), d4 = a4 * Math.sin(i4), c3 = { x: n3.x + (n3.width - s4) / 2, y: n3.y + (n3.height - d4) / 2, width: s4, height: d4 };
|
|
2421
2426
|
o4.setBounds(c3);
|
|
@@ -2430,149 +2435,148 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2430
2435
|
e4.delete();
|
|
2431
2436
|
}, "Delete"), e3.preventDefault();
|
|
2432
2437
|
else if ("a" === e3.key && t3) {
|
|
2433
|
-
const t4 =
|
|
2434
|
-
|
|
2435
|
-
} else "ArrowLeft" === e3.key ? (
|
|
2438
|
+
const t4 = l2.getMovableSelection();
|
|
2439
|
+
l2.selectMovables(n2.getItems(), true), l2.selectMovables(t4, true), e3.preventDefault();
|
|
2440
|
+
} 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());
|
|
2436
2441
|
}, children: [ge2, xe2] }) }) });
|
|
2437
2442
|
})), ho = (e2) => {
|
|
2438
|
-
let t2 = Number.MAX_SAFE_INTEGER, o2 = Number.MAX_SAFE_INTEGER, n2 = 0,
|
|
2439
|
-
for (let
|
|
2440
|
-
const i2 = e2[
|
|
2441
|
-
t2 = Math.min(i2.x, t2), o2 = Math.min(i2.y, o2), n2 = Math.max(i2.x + i2.width, n2),
|
|
2443
|
+
let t2 = Number.MAX_SAFE_INTEGER, o2 = Number.MAX_SAFE_INTEGER, n2 = 0, l2 = 0;
|
|
2444
|
+
for (let r2 = 0; r2 < e2.length; r2++) {
|
|
2445
|
+
const i2 = e2[r2].getBounds();
|
|
2446
|
+
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);
|
|
2442
2447
|
}
|
|
2443
|
-
return { x: t2, y: o2, width: n2 - t2, height:
|
|
2448
|
+
return { x: t2, y: o2, width: n2 - t2, height: l2 - o2 };
|
|
2444
2449
|
}, mo = (e2, t2 = true) => {
|
|
2445
|
-
const o2 = [], n2 = t2 ? "x" : "y",
|
|
2450
|
+
const o2 = [], n2 = t2 ? "x" : "y", l2 = t2 ? "y" : "x", r2 = t2 ? "width" : "height";
|
|
2446
2451
|
let i2 = 0, a2 = Number.MAX_SAFE_INTEGER, s2 = 0;
|
|
2447
2452
|
for (let t3 = 0; t3 < e2.length; t3++) {
|
|
2448
|
-
const
|
|
2449
|
-
i2 += d3[
|
|
2453
|
+
const l3 = e2[t3], d3 = l3.getBounds();
|
|
2454
|
+
i2 += d3[r2], a2 = Math.min(d3[n2], a2), s2 = Math.max(d3[n2] + d3[r2], s2), o2.push({ bounds: d3, movable: l3 });
|
|
2450
2455
|
}
|
|
2451
2456
|
const d2 = (s2 - a2 - i2) / (e2.length - 1);
|
|
2452
2457
|
o2.sort((e3, t3) => {
|
|
2453
|
-
const o3 = e3.bounds[n2],
|
|
2454
|
-
return o3 !==
|
|
2458
|
+
const o3 = e3.bounds[n2], r3 = t3.bounds[n2];
|
|
2459
|
+
return o3 !== r3 ? o3 - r3 : e3.bounds[l2] - t3.bounds[l2];
|
|
2455
2460
|
});
|
|
2456
2461
|
const c2 = /* @__PURE__ */ new Map();
|
|
2457
2462
|
c2.set(o2[0].movable, o2[0].bounds);
|
|
2458
2463
|
for (let e3 = 1; e3 < o2.length - 1; e3++) {
|
|
2459
|
-
const t3 = o2[e3 - 1].bounds,
|
|
2460
|
-
|
|
2464
|
+
const t3 = o2[e3 - 1].bounds, l3 = { ...o2[e3].bounds };
|
|
2465
|
+
l3[n2] = t3[n2] + t3[r2] + d2, o2[e3].bounds = l3, c2.set(o2[e3].movable, l3);
|
|
2461
2466
|
}
|
|
2462
2467
|
return c2.set(o2[o2.length - 1].movable, o2[o2.length - 1].bounds), c2;
|
|
2463
|
-
}
|
|
2464
|
-
|
|
2465
|
-
const { movables: t2, movablesView: o2, transactional: n2, commands: r2, target: l2, onRepeatCommandChange: i2 } = e2, a2 = F(), s2 = D();
|
|
2468
|
+
}, po = (e2) => {
|
|
2469
|
+
const { movables: t2, movablesView: o2, transactional: n2, commands: l2, target: r2, onRepeatCommandChange: i2 } = e2, a2 = F(), s2 = D();
|
|
2466
2470
|
ie(s2.getMode()).current = s2.getMode();
|
|
2467
2471
|
const d2 = S(async (e3, t3, o3 = null, n3 = true) => {
|
|
2468
|
-
const
|
|
2472
|
+
const l3 = async () => {
|
|
2469
2473
|
const d3 = await Promise.resolve(a2?.showBusy?.(e3.label()));
|
|
2470
2474
|
try {
|
|
2471
2475
|
await t3();
|
|
2472
2476
|
const a3 = o3 ?? e3?.label?.();
|
|
2473
2477
|
if (i2) {
|
|
2474
2478
|
let t4 = null;
|
|
2475
|
-
e3 && false !== a3 && (t4 = new k(e3.key(),
|
|
2479
|
+
e3 && false !== a3 && (t4 = new k(e3.key(), r2, { label: a3, description: a3 }, l3)), i2(t4);
|
|
2476
2480
|
}
|
|
2477
2481
|
d3?.(), n3 && s2.setMode(null);
|
|
2478
2482
|
} catch (e4) {
|
|
2479
2483
|
d3?.(), a2?.showError?.(e4);
|
|
2480
2484
|
}
|
|
2481
2485
|
};
|
|
2482
|
-
await
|
|
2483
|
-
}, [i2, a2]), [c2, g2] = ue((e3) => e3 + 1, 0), u2 = S((e3, t3,
|
|
2486
|
+
await l3();
|
|
2487
|
+
}, [i2, a2]), [c2, g2] = ue((e3) => e3 + 1, 0), u2 = S((e3, t3, l3) => {
|
|
2484
2488
|
if (!o2) return;
|
|
2485
|
-
const
|
|
2486
|
-
if (0 ===
|
|
2489
|
+
const r3 = o2.getMovableSelection();
|
|
2490
|
+
if (0 === r3.length) return;
|
|
2487
2491
|
let i3 = "Drawings";
|
|
2488
|
-
if (1 ===
|
|
2489
|
-
const e4 =
|
|
2492
|
+
if (1 === r3.length) {
|
|
2493
|
+
const e4 = r3[0];
|
|
2490
2494
|
i3 = w.capitalize(e4.getContent().getType()) ?? "Drawing";
|
|
2491
2495
|
}
|
|
2492
2496
|
const a3 = `${e3.label()} ${i3}`;
|
|
2493
2497
|
d2(e3, () => {
|
|
2494
2498
|
let e4 = null;
|
|
2495
2499
|
n2 && (e4 = n2.beginCommit(a3));
|
|
2496
|
-
const
|
|
2497
|
-
if (0 ===
|
|
2498
|
-
const i4 =
|
|
2499
|
-
for (let e5 = 0; e5 <
|
|
2500
|
-
const o3 =
|
|
2500
|
+
const r4 = o2.getMovableSelection();
|
|
2501
|
+
if (0 === r4.length) return;
|
|
2502
|
+
const i4 = l3?.(r4);
|
|
2503
|
+
for (let e5 = 0; e5 < r4.length; e5++) {
|
|
2504
|
+
const o3 = r4[e5];
|
|
2501
2505
|
t3(o3, i4);
|
|
2502
2506
|
}
|
|
2503
2507
|
e4?.commit();
|
|
2504
2508
|
});
|
|
2505
|
-
}, [o2, n2]), [h2, m2] =
|
|
2509
|
+
}, [o2, n2]), [h2, m2] = le(o2.getMovableSelection()[0] ?? null), [p2, f2] = le(!h2 || h2?.isProtected()), q2 = ne(() => [new T("moveToFront", r2, { label: "Bring to Front", description: "Move to the front of all of the other drawings.", icon: "DrawToFront", shortcut: { key: "BracketRight", modifiers: [R.Ctrl, R.Shift] } }, function() {
|
|
2506
2510
|
u2(this, (e3) => {
|
|
2507
2511
|
e3.moveToFront();
|
|
2508
2512
|
});
|
|
2509
|
-
}), new T("moveForward",
|
|
2513
|
+
}), new T("moveForward", r2, { label: "Bring Forward", description: "Move forward one layer in the z order.", icon: "DrawMoveForward", shortcut: { key: "BracketRight", modifiers: [R.Ctrl] } }, function() {
|
|
2510
2514
|
u2(this, (e3) => {
|
|
2511
2515
|
e3.moveForward();
|
|
2512
2516
|
});
|
|
2513
|
-
}), new T("moveToBack",
|
|
2517
|
+
}), new T("moveToBack", r2, { label: "Send to Back", description: "Move to the back of all of the other drawings.", icon: "DrawToBack", shortcut: { key: "BracketLeft", modifiers: [R.Ctrl, R.Shift] } }, function() {
|
|
2514
2518
|
u2(this, (e3) => {
|
|
2515
2519
|
e3.moveToBack();
|
|
2516
2520
|
});
|
|
2517
|
-
}), new T("moveBackward",
|
|
2521
|
+
}), new T("moveBackward", r2, { label: "Send Backward", description: "Move backwards one layer in the z order.", icon: "DrawMoveBackward", shortcut: { key: "BracketLeft", modifiers: [R.Ctrl] } }, function() {
|
|
2518
2522
|
u2(this, (e3) => {
|
|
2519
2523
|
e3.moveBackward();
|
|
2520
2524
|
});
|
|
2521
|
-
}), new T("toggleLockAspectRatio",
|
|
2525
|
+
}), new T("toggleLockAspectRatio", r2, { label: "Lock Aspect Ratio", description: "Toggle whether the aspect ratio should be maintained when resizing from corners.", icon: "DrawAspect" }, function() {
|
|
2522
2526
|
u2(this, (e3) => {
|
|
2523
2527
|
e3.setLockAspectRatio(!e3.isLockAspectRatio());
|
|
2524
2528
|
});
|
|
2525
|
-
}), new T("formatAnchorTypeTwoCell",
|
|
2529
|
+
}), new T("formatAnchorTypeTwoCell", r2, { label: "Move and size with cells", description: "Set your drawing to move and resize when underling sheet resizes.", icon: "DrawResize" }, function() {
|
|
2526
2530
|
u2(this, (e3) => {
|
|
2527
2531
|
e3.setAnchorType(v.Type.TwoCell);
|
|
2528
2532
|
});
|
|
2529
|
-
}), new T("formatAnchorTypeOneCell",
|
|
2533
|
+
}), new T("formatAnchorTypeOneCell", r2, { label: "Move but don't size with cells", description: "Set your drawing to only move when underling sheet resizes.", icon: "DrawResize" }, function() {
|
|
2530
2534
|
u2(this, (e3) => {
|
|
2531
2535
|
e3.setAnchorType(v.Type.OneCell);
|
|
2532
2536
|
});
|
|
2533
|
-
}), new T("formatAnchorTypeAbsolute",
|
|
2537
|
+
}), new T("formatAnchorTypeAbsolute", r2, { label: "Don't move or size with cells", description: "Set your drawing to never move or resize when underling sheet resizes.", icon: "DrawResize" }, function() {
|
|
2534
2538
|
u2(this, (e3) => {
|
|
2535
2539
|
e3.setAnchorType(v.Type.Absolute);
|
|
2536
2540
|
});
|
|
2537
|
-
}), new T("formatDrawAlignLeft",
|
|
2541
|
+
}), new T("formatDrawAlignLeft", r2, { label: "Align Left", description: "Align the selected drawings to the left.", icon: "DrawAlignLeft" }, function() {
|
|
2538
2542
|
u2(this, (e3, t3) => {
|
|
2539
2543
|
e3.setBounds({ x: t3.x });
|
|
2540
2544
|
}, ho);
|
|
2541
|
-
}), new T("formatDrawAlignCenter",
|
|
2545
|
+
}), new T("formatDrawAlignCenter", r2, { label: "Align Center", description: "Align the selected drawings vertically relative to each other.", icon: "DrawAlignCenter" }, function() {
|
|
2542
2546
|
u2(this, (e3, t3) => {
|
|
2543
2547
|
e3.setBounds({ x: (t3.width - e3.getBounds().width) / 2 + t3.x });
|
|
2544
2548
|
}, ho);
|
|
2545
|
-
}), new T("formatDrawAlignRight",
|
|
2549
|
+
}), new T("formatDrawAlignRight", r2, { label: "Align Right", description: "Align the selected drawings to the right.", icon: "DrawAlignRight" }, function() {
|
|
2546
2550
|
u2(this, (e3, t3) => {
|
|
2547
2551
|
e3.setBounds({ x: t3.width - e3.getBounds().width + t3.x });
|
|
2548
2552
|
}, ho);
|
|
2549
|
-
}), new T("formatDrawAlignTop",
|
|
2553
|
+
}), new T("formatDrawAlignTop", r2, { label: "Align Top", description: "Align the selected drawings to the top.", icon: "DrawAlignTop" }, function() {
|
|
2550
2554
|
u2(this, (e3, t3) => {
|
|
2551
2555
|
e3.setBounds({ y: t3.y });
|
|
2552
2556
|
}, ho);
|
|
2553
|
-
}), new T("formatDrawAlignMiddle",
|
|
2557
|
+
}), new T("formatDrawAlignMiddle", r2, { label: "Align Middle", description: "Align the selected drawings horizontally relative to each other.", icon: "DrawAlignMiddle" }, function() {
|
|
2554
2558
|
u2(this, (e3, t3) => {
|
|
2555
2559
|
e3.setBounds({ y: (t3.height - e3.getBounds().height) / 2 + t3.y });
|
|
2556
2560
|
}, ho);
|
|
2557
|
-
}), new T("formatDrawAlignBottom",
|
|
2561
|
+
}), new T("formatDrawAlignBottom", r2, { label: "Align Bottom", description: "Align the selected drawings to the bottom.", icon: "DrawAlignBottom" }, function() {
|
|
2558
2562
|
u2(this, (e3, t3) => {
|
|
2559
2563
|
e3.setBounds({ y: t3.height - e3.getBounds().height + t3.y });
|
|
2560
2564
|
}, ho);
|
|
2561
|
-
}), new T("formatDrawDistributeHorz",
|
|
2565
|
+
}), new T("formatDrawDistributeHorz", r2, { label: "Distribute Horizontally", description: "Distribute the selected drawings horizontally with equal spacing between each.", icon: "DrawDistributeHorz" }, function() {
|
|
2562
2566
|
u2(this, (e3, t3) => {
|
|
2563
2567
|
e3.setBounds(t3.get(e3));
|
|
2564
2568
|
}, (e3) => mo(e3));
|
|
2565
|
-
}), new T("formatDrawDistributeVert",
|
|
2569
|
+
}), new T("formatDrawDistributeVert", r2, { label: "Distribute Vertically", description: "Distribute the selected drawings vertically with equal spacing between each.", icon: "DrawDistributeVert" }, function() {
|
|
2566
2570
|
u2(this, (e3, t3) => {
|
|
2567
2571
|
e3.setBounds(t3.get(e3));
|
|
2568
2572
|
}, (e3) => mo(e3, false));
|
|
2569
|
-
}), new T("formatDrawFlipHorz",
|
|
2573
|
+
}), new T("formatDrawFlipHorz", r2, { label: "Flip Horizontally", description: "Flip the selected drawings horizontally." }), new T("formatDrawFlipVert", r2, { label: "Flip Vertically", description: "Flip the selected drawings vertically." }), new T("formatDrawGroup", r2, { label: "Group", description: "Group the selected drawings into a single drawing.", icon: "DrawGroup" }), new T("formatDrawUngroup", r2, { label: "Ungroup", description: "Break the group of a drawing into individual drawings.", icon: "DrawUngroup" }), new T("formatDrawSwapShapes", r2, { label: "Swap Shapes", description: "Swap the positions of the swap." }), new T("formatDrawSwapShapesHorz", r2, { label: "Swap Shapes Horizontally", description: "Swap the positions of the swap horizontally." }), new T("formatDrawSwapShapesVert", r2, { label: "Swap Shapes Vertically", description: "Swap the positions of the swap vertically." })], [o2, h2]);
|
|
2570
2574
|
ae(() => {
|
|
2571
2575
|
}, [s2]);
|
|
2572
2576
|
const y2 = ne(() => {
|
|
2573
2577
|
let e3 = null;
|
|
2574
|
-
return e3 =
|
|
2575
|
-
}, [
|
|
2578
|
+
return e3 = l2 ? l2.createChildGroup(r2, "movable", false) : new M(r2, "movable"), e3.addCommands(q2, true), e3;
|
|
2579
|
+
}, [l2, q2]);
|
|
2576
2580
|
return St(h2, { onAnyChange: () => {
|
|
2577
2581
|
y2.getCommand("formatAnchorTypeTwoCell").update({ state: h2?.getAnchorType() === v.Type.TwoCell }), y2.getCommand("formatAnchorTypeOneCell").update({ state: h2?.getAnchorType() === v.Type.OneCell }), y2.getCommand("formatAnchorTypeAbsolute").update({ state: h2?.getAnchorType() === v.Type.Absolute }), y2.getCommand("formatAnchorTypeAbsolute").update({ state: h2?.getAnchorType() === v.Type.Absolute }), y2.getCommand("toggleLockAspectRatio").update({ state: h2?.isLockAspectRatio() });
|
|
2578
2582
|
}, onProtectedChange: (e3) => {
|
|
@@ -2586,47 +2590,46 @@ function po(e2) {
|
|
|
2586
2590
|
} }), ae(() => {
|
|
2587
2591
|
const e3 = { disabled: p2 };
|
|
2588
2592
|
y2.getCommand("formatAnchorTypeTwoCell").update(e3), y2.getCommand("formatAnchorTypeOneCell").update(e3), y2.getCommand("formatAnchorTypeAbsolute").update(e3), y2.getCommand("toggleLockAspectRatio").update(e3);
|
|
2589
|
-
const n3 = t2.getCount(),
|
|
2590
|
-
let i3 = { disabled:
|
|
2591
|
-
if (!
|
|
2592
|
-
const e4 =
|
|
2593
|
+
const n3 = t2.getCount(), l3 = o2.getMovableSelection(), r3 = p2 || n3 <= 1 || 0 === l3.length;
|
|
2594
|
+
let i3 = { disabled: r3 }, a3 = i3;
|
|
2595
|
+
if (!r3 && 1 === l3.length) {
|
|
2596
|
+
const e4 = l3[0];
|
|
2593
2597
|
0 === e4.getZIndex() && (i3 = { disabled: true }), e4.getZIndex() === n3 - 1 && (a3 = { disabled: true });
|
|
2594
2598
|
}
|
|
2595
2599
|
y2.getCommand("moveToFront").update(a3), y2.getCommand("moveForward").update(a3), y2.getCommand("moveToBack").update(i3), y2.getCommand("moveBackward").update(i3);
|
|
2596
|
-
const s3 = { disabled: p2 ||
|
|
2600
|
+
const s3 = { disabled: p2 || l3.length <= 1 };
|
|
2597
2601
|
y2.getCommand("formatDrawAlignLeft").update(s3), y2.getCommand("formatDrawAlignCenter").update(s3), y2.getCommand("formatDrawAlignRight").update(s3), y2.getCommand("formatDrawAlignTop").update(s3), y2.getCommand("formatDrawAlignMiddle").update(s3), y2.getCommand("formatDrawAlignBottom").update(s3), y2.getCommand("formatDrawFlipHorz").update(s3), y2.getCommand("formatDrawFlipVert").update(s3), y2.getCommand("formatDrawGroup").update(s3), y2.getCommand("formatDrawUngroup").update(s3), y2.getCommand("formatDrawSwapShapes").update(s3), y2.getCommand("formatDrawSwapShapesHorz").update(s3), y2.getCommand("formatDrawSwapShapesVert").update(s3);
|
|
2598
|
-
const d3 = { disabled: p2 ||
|
|
2602
|
+
const d3 = { disabled: p2 || l3.length <= 2 };
|
|
2599
2603
|
y2.getCommand("formatDrawDistributeHorz").update(d3), y2.getCommand("formatDrawDistributeVert").update(d3);
|
|
2600
2604
|
}, [c2, p2, c2]), y2;
|
|
2601
|
-
}
|
|
2602
|
-
const
|
|
2603
|
-
const { children: o2, disabled: n2, description: r2, view: l2, isDragging: i2, onHide: a2, onShow: s2, ...d2 } = e2;
|
|
2605
|
+
}, fo = oe(re((e2, t2) => {
|
|
2606
|
+
const { children: o2, disabled: n2, description: l2, view: r2, isDragging: i2, onHide: a2, onShow: s2, ...d2 } = e2;
|
|
2604
2607
|
ae(() => {
|
|
2605
|
-
}, [
|
|
2608
|
+
}, [l2]);
|
|
2606
2609
|
const c2 = b(t2, () => ({ isEmptyFrame: () => true }), []), [g2, { height: u2, width: h2 }] = Me();
|
|
2607
|
-
return Z("div", { ...d2, ref: Re([c2, g2]), children: Z("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:
|
|
2608
|
-
})), wo = oe(
|
|
2609
|
-
const { view: o2, sheet: n2, movableProps:
|
|
2610
|
+
return Z("div", { ...d2, ref: Re([c2, g2]), children: Z("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: Z("div", { style: { textAlign: "center" }, children: l2 }) }) });
|
|
2611
|
+
})), wo = oe(re((e2, t2) => {
|
|
2612
|
+
const { view: o2, sheet: n2, movableProps: l2, renderMovable: r2, commands: i2, target: a2, onRepeatCommandChange: s2 } = e2, d2 = po({ movables: n2.getMovables(), movablesView: n2?.getView(), transactional: n2, onRepeatCommandChange: s2, commands: i2, target: a2 });
|
|
2610
2613
|
ae(() => {
|
|
2611
2614
|
o2?.getStage();
|
|
2612
2615
|
}, [o2?.getStage()]);
|
|
2613
|
-
const c2 = ne(() => Z(uo, { ref: t2, view: o2, movables: n2.getMovables(), disableResize: !n2.getProtection().isObjectsAllowed(), disableDrag: !n2.getProtection().isObjectsAllowed(), movablesView: n2.getView(), transactional: n2, renderMovable:
|
|
2614
|
-
d2.activate(),
|
|
2615
|
-
} }, "movable-area"), [n2,
|
|
2616
|
+
const c2 = ne(() => Z(uo, { ref: t2, view: o2, movables: n2.getMovables(), disableResize: !n2.getProtection().isObjectsAllowed(), disableDrag: !n2.getProtection().isObjectsAllowed(), movablesView: n2.getView(), transactional: n2, renderMovable: r2, ...l2, onFocus: () => {
|
|
2617
|
+
d2.activate(), l2?.onFocus?.();
|
|
2618
|
+
} }, "movable-area"), [n2, l2, i2, d2]);
|
|
2616
2619
|
return c2 && o2 ? c2 : null;
|
|
2617
|
-
})), vo = oe(
|
|
2618
|
-
const { view: o2, sheet: n2, gridStyle:
|
|
2620
|
+
})), vo = oe(re((e2, t2) => {
|
|
2621
|
+
const { view: o2, sheet: n2, gridStyle: l2, getCellEditor: r2, showProtectedError: i2, setEditingCoords: a2, commands: d2 } = e2, c2 = D(), [g2, u2] = le(null), [h2, m2] = le(null), [p2, f2] = le(null), [v2, q2] = le(null), [y2, C2] = le(null);
|
|
2619
2622
|
se(() => {
|
|
2620
2623
|
if (null === p2) return q2(null), void C2(null);
|
|
2621
2624
|
const e3 = () => {
|
|
2622
2625
|
const e4 = n2.getRange(p2).getCell(), t3 = e4.getStyle();
|
|
2623
|
-
let o3,
|
|
2624
|
-
"none" !==
|
|
2626
|
+
let o3, r3 = t3.getFill()?.toCSS(l2.body.darkMode);
|
|
2627
|
+
"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 }), q2({ style: r3 }), e4 && !e4.getFormula() && (o3 = e4?.getRenderHorizontalAlignment()), C2(o3 ?? B.Left);
|
|
2625
2628
|
};
|
|
2626
2629
|
return e3(), n2.getRange(p2).addListener(() => {
|
|
2627
2630
|
e3();
|
|
2628
2631
|
});
|
|
2629
|
-
}, [n2, p2,
|
|
2632
|
+
}, [n2, p2, l2?.body]);
|
|
2630
2633
|
const b2 = S(() => {
|
|
2631
2634
|
let e3 = h2.editState.dirty ?? "";
|
|
2632
2635
|
if (void 0 !== h2.editState.dirty) {
|
|
@@ -2642,14 +2645,14 @@ const fo = oe(le((e2, t2) => {
|
|
|
2642
2645
|
let t3 = s.Orientation.Row, o3 = false;
|
|
2643
2646
|
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);
|
|
2644
2647
|
}, [n2]), T2 = de((e3, t3) => {
|
|
2645
|
-
if (
|
|
2648
|
+
if (r2) return r2(e3, t3);
|
|
2646
2649
|
if (!n2) return null;
|
|
2647
2650
|
const { ref: o3, ...i3 } = e3;
|
|
2648
|
-
return Z(it, { ref: o3, ...i3, sheet: n2, bodyStyle:
|
|
2651
|
+
return Z(it, { ref: o3, ...i3, sheet: n2, bodyStyle: l2?.body, activeCoords: t3, commands: d2, onChangeEdit: (e4) => {
|
|
2649
2652
|
const o4 = { sheet: n2, coords: t3, editState: e4 };
|
|
2650
2653
|
c2.setMode((e5) => ({ ...e5, description: o4.editState.editMode ? "Edit" : "Enter", args: { ...e5?.args, stateAndCoords: o4 } }));
|
|
2651
2654
|
}, editState: h2.editState });
|
|
2652
|
-
}, [n2, v2,
|
|
2655
|
+
}, [n2, v2, r2, h2, p2]), { overlay: R2, startEdit: M2, submitEdit: A2, cancelEdit: z2, onKeyboardEventNative: F2, onPointerEventNative: E2 } = xe({ view: o2, activeCoords: g2, getCellEditor: T2, canEdit: () => {
|
|
2653
2656
|
const e3 = n2.getProtection();
|
|
2654
2657
|
if (e3.isReadOnly()) return false;
|
|
2655
2658
|
const t3 = e3.isLocked();
|
|
@@ -2663,51 +2666,51 @@ const fo = oe(le((e2, t2) => {
|
|
|
2663
2666
|
f2(null), m2(null), c2.setMode(null), a2(null);
|
|
2664
2667
|
}, onDoneEdit: (e3) => {
|
|
2665
2668
|
c2.setMode(null);
|
|
2666
|
-
}, onNavigate: k2, containerProps: v2, borderStrokeFill:
|
|
2669
|
+
}, onNavigate: k2, containerProps: v2, borderStrokeFill: l2.selection?.strokeFill, borderStrokeWidth: n2?.getSelection().getCoords().ranges?.length > 1 ? 1 : 2, alignment: y2, getRangeCoords: x2 });
|
|
2667
2670
|
St(n2.getSelection(), { onChange(e3) {
|
|
2668
2671
|
u2(n2.getSelection().getCoords().cell);
|
|
2669
2672
|
} });
|
|
2670
|
-
const
|
|
2671
|
-
|
|
2672
|
-
}, [
|
|
2673
|
-
|
|
2674
|
-
}, [
|
|
2673
|
+
const I2 = S((e3) => {
|
|
2674
|
+
E2(e3), p2 && A2();
|
|
2675
|
+
}, [E2, z2, p2]), N2 = de((e3) => {
|
|
2676
|
+
E2(e3);
|
|
2677
|
+
}, [E2]), H2 = de((e3) => {
|
|
2675
2678
|
F2(e3);
|
|
2676
2679
|
}, [F2]);
|
|
2677
2680
|
return ae(() => {
|
|
2678
2681
|
const e3 = o2?.getStage();
|
|
2679
|
-
if (e3) return e3.addEventListener("pointerdown",
|
|
2680
|
-
e3.removeEventListener("pointerdown",
|
|
2682
|
+
if (e3) return e3.addEventListener("pointerdown", I2), e3.addEventListener("dblclick", N2), e3.addEventListener("keydown", H2), () => {
|
|
2683
|
+
e3.removeEventListener("pointerdown", I2), e3.removeEventListener("dblclick", N2), e3.removeEventListener("keydown", H2);
|
|
2681
2684
|
};
|
|
2682
2685
|
}, [o2?.getStage()]), ae(() => {
|
|
2683
2686
|
const e3 = c2.getMode(), t3 = e3?.key;
|
|
2684
2687
|
"edit" === t3 || "enter" === t3 ? h2 ? e3.args?.cancel ? z2() : e3.args?.submit ? A2() : m2(e3.args?.stateAndCoords) : M2(e3.args?.start) : p2 && z2();
|
|
2685
2688
|
}, [c2]), R2(o2, t2);
|
|
2686
|
-
})), qo = "white", yo = "black", Co = `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='${yo}' fill='${qo}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`, bo = `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='${yo}' fill='${qo}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`, So = oe(
|
|
2687
|
-
const { view: o2, sheet: n2 } = e2, [
|
|
2689
|
+
})), qo = "white", yo = "black", Co = `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='${yo}' fill='${qo}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`, bo = `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='${yo}' fill='${qo}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`, So = oe(re((e2, t2) => {
|
|
2690
|
+
const { view: o2, sheet: n2 } = e2, [l2, r2] = te.useState(n2.getTables().getCount() > 0), [i2, a2] = te.useState(null), [s2, d2] = te.useState(null), [c2, g2] = te.useState(null), [u2, h2] = te.useState(null), m2 = S(() => {
|
|
2688
2691
|
if (n2.getTables().getCount() > 0) {
|
|
2689
|
-
|
|
2692
|
+
r2(true);
|
|
2690
2693
|
const e3 = n2.getTables().getItems({ address: o2.getVisibleRangeCoords() });
|
|
2691
2694
|
a2(e3.length > 0 ? e3 : null);
|
|
2692
|
-
} else
|
|
2695
|
+
} else r2(false), a2(null);
|
|
2693
2696
|
}, [n2, o2]), p2 = S((e3) => {
|
|
2694
2697
|
e3.preventDefault(), e3.stopPropagation();
|
|
2695
|
-
const t3 = o2.getCellCoordsFromClient(e3.clientX, e3.clientY),
|
|
2696
|
-
if (1 ===
|
|
2697
|
-
|
|
2698
|
+
const t3 = o2.getCellCoordsFromClient(e3.clientX, e3.clientY), l3 = n2.getTables().getItems({ address: t3 });
|
|
2699
|
+
if (1 === l3.length) {
|
|
2700
|
+
l3[0].select();
|
|
2698
2701
|
}
|
|
2699
2702
|
}, [o2, n2]), f2 = S((e3) => {
|
|
2700
2703
|
e3.preventDefault(), e3.stopPropagation();
|
|
2701
|
-
const t3 = o2.getCellCoordsFromClient(e3.clientX, e3.clientY),
|
|
2702
|
-
if (1 ===
|
|
2703
|
-
const e4 =
|
|
2704
|
+
const t3 = o2.getCellCoordsFromClient(e3.clientX, e3.clientY), l3 = n2.getTables().getItems({ address: t3 });
|
|
2705
|
+
if (1 === l3.length) {
|
|
2706
|
+
const e4 = l3[0].getRange().getCoords(), o3 = { colStart: e4.colStart, rowStart: t3.rowIndex, colEnd: e4.colEnd, rowEnd: t3.rowIndex };
|
|
2704
2707
|
n2.getRange(o3).select();
|
|
2705
2708
|
}
|
|
2706
2709
|
}, [o2, n2]), w2 = S(() => {
|
|
2707
|
-
if (!
|
|
2710
|
+
if (!l2) return;
|
|
2708
2711
|
const e3 = n2.getTables().getItems({ address: o2.getVisibleRangeCoords() });
|
|
2709
2712
|
a2(e3.length > 0 ? e3 : null);
|
|
2710
|
-
}, [n2,
|
|
2713
|
+
}, [n2, l2, o2]);
|
|
2711
2714
|
St(n2?.getSelection(), { onChange(e3) {
|
|
2712
2715
|
d2(n2.getSelection().getCoords().cell);
|
|
2713
2716
|
} }), St(c2, { onAnyChange(e3) {
|
|
@@ -2733,12 +2736,12 @@ const fo = oe(le((e2, t2) => {
|
|
|
2733
2736
|
const y2 = S((e3) => {
|
|
2734
2737
|
let t3 = null;
|
|
2735
2738
|
if (i2) for (let n3 = 0; n3 < i2.length; n3++) {
|
|
2736
|
-
const
|
|
2737
|
-
let a3 = o2.getRangeCoordsBounds(
|
|
2739
|
+
const l3 = i2[n3], r3 = l3.getRange().getCoords();
|
|
2740
|
+
let a3 = o2.getRangeCoordsBounds(r3);
|
|
2738
2741
|
const s3 = o2.getRelativePointFromClient(e3.clientX, e3.clientY), d3 = s3.x, c3 = s3.y;
|
|
2739
2742
|
if (d3 >= a3.x && d3 <= a3.x + a3.width && c3 >= a3.y && c3 <= a3.y + a3.height) {
|
|
2740
2743
|
const e4 = o2.getViewportSize();
|
|
2741
|
-
d3 <= 0 || c3 <= 0 || d3 >= e4.width || c3 >= e4.height || (t3 =
|
|
2744
|
+
d3 <= 0 || c3 <= 0 || d3 >= e4.width || c3 >= e4.height || (t3 = l3);
|
|
2742
2745
|
}
|
|
2743
2746
|
}
|
|
2744
2747
|
h2(t3);
|
|
@@ -2754,9 +2757,9 @@ const fo = oe(le((e2, t2) => {
|
|
|
2754
2757
|
for (let e3 = 0; e3 < i2.length; e3++) {
|
|
2755
2758
|
const t3 = i2[e3];
|
|
2756
2759
|
if (t3.isClosed()) continue;
|
|
2757
|
-
const
|
|
2760
|
+
const l3 = t3 === u2, r3 = t3 === c2, a3 = t3.getRange().getCoords(), s3 = o2.getRangeCoordsBounds(a3);
|
|
2758
2761
|
let d3;
|
|
2759
|
-
if (
|
|
2762
|
+
if (l3 || r3) {
|
|
2760
2763
|
const e4 = t3.getStyle().getProperties(), o3 = e4.headerRow?.fill?.background ?? e4.wholeTable?.border?.top?.color?.toString();
|
|
2761
2764
|
if (o3 && n2) {
|
|
2762
2765
|
const e5 = n2.getStyles().parseColor(o3);
|
|
@@ -2764,69 +2767,69 @@ const fo = oe(le((e2, t2) => {
|
|
|
2764
2767
|
}
|
|
2765
2768
|
d3 || (d3 = "var(--sxl-app-color-shadow, rgba(0,0,0,.15))");
|
|
2766
2769
|
}
|
|
2767
|
-
C2.push(Z("div", { style: { position: "absolute", left: s3.x, top: s3.y, width: Math.min(16, s3.width), height: s3.height, pointerEvents: "all", cursor: Co }, onMouseDown: f2 }, `table-select-row-${t3.getName()}`)), C2.push(Z("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: bo }, onMouseDown: p2 }, `table-select-${t3.getName()}`)), C2.push(Z(ke, { x: s3.x, y: s3.y, width: s3.width, height: s3.height, range: a3, strokeWidth:
|
|
2770
|
+
C2.push(Z("div", { style: { position: "absolute", left: s3.x, top: s3.y, width: Math.min(16, s3.width), height: s3.height, pointerEvents: "all", cursor: Co }, onMouseDown: f2 }, `table-select-row-${t3.getName()}`)), C2.push(Z("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: bo }, onMouseDown: p2 }, `table-select-${t3.getName()}`)), C2.push(Z(ke, { 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()}`));
|
|
2768
2771
|
}
|
|
2769
2772
|
return C2;
|
|
2770
|
-
})), xo = oe(
|
|
2771
|
-
const { view: n2, sheet:
|
|
2772
|
-
const e2 =
|
|
2773
|
+
})), xo = oe(re((t2, o2) => {
|
|
2774
|
+
const { view: n2, sheet: l2, animationTime: r2 = 60 } = t2, [i2, a2] = te.useState(null), [s2, d2] = te.useState(null), c2 = te.useRef(null), g2 = S(() => {
|
|
2775
|
+
const e2 = l2.getSelectedCell(), t3 = e2.getSpill()?.getCoords() ?? null;
|
|
2773
2776
|
Q.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));
|
|
2774
|
-
}, [
|
|
2777
|
+
}, [l2, n2, i2]);
|
|
2775
2778
|
te.useEffect(() => (c2.current && (clearTimeout(c2.current), c2.current = null), s2 && (c2.current = setTimeout(() => {
|
|
2776
2779
|
d2(null), c2.current = null;
|
|
2777
|
-
},
|
|
2780
|
+
}, r2)), () => {
|
|
2778
2781
|
c2.current && (clearTimeout(c2.current), c2.current = null);
|
|
2779
|
-
}), [s2,
|
|
2782
|
+
}), [s2, r2]);
|
|
2780
2783
|
const u2 = te.useMemo(() => X.debounce(X.throttle(g2, 80), 80), []);
|
|
2781
|
-
if (St(
|
|
2784
|
+
if (St(l2?.getSelection(), { onChange(e2) {
|
|
2782
2785
|
u2();
|
|
2783
|
-
} }), St(
|
|
2786
|
+
} }), St(l2, { onSpillsChange(e2) {
|
|
2784
2787
|
g2();
|
|
2785
2788
|
}, onInvalidated(e2) {
|
|
2786
2789
|
g2();
|
|
2787
2790
|
} }), !n2) return null;
|
|
2788
2791
|
if (!i2 && !s2) return null;
|
|
2789
|
-
const h2 =
|
|
2792
|
+
const h2 = l2.getRange(i2).getValue() instanceof e.Spill, m2 = [];
|
|
2790
2793
|
let p2 = s2?.bounds ?? n2.getRangeCoordsBounds(i2);
|
|
2791
2794
|
if (s2 && !X.isEqualBounds(s2.bounds, n2.getRangeCoordsBounds(s2.coords)) && d2(null), p2 = n2.toClipBounds(p2, -10), !p2) return;
|
|
2792
2795
|
const f2 = "var(--sxl-app-color-primary-dark, rgba(0,0,0,.15))";
|
|
2793
|
-
return m2.push(Z(ke, { 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 *
|
|
2796
|
+
return m2.push(Z(ke, { 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;
|
|
2794
2797
|
})), ko = { position: "absolute", top: 0, left: 0, bottom: 0, right: 0 }, To = (e2, t2) => {
|
|
2795
|
-
const o2 = { ...e2 }, n2 = t2?.getNormal().getFont(),
|
|
2796
|
-
return o2.body = X.mergeContentful({ fill: "#fff", strokeFill: "#dad8d6", strokeWidth: 0.5, text: { fontWeight: "400", fontStyle: "normal", fill: "#040404" } }, i2), o2.buttonSurface = X.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 = X.mergeContentful(o2.body, { edgeStrokeFill: "rgb(171, 171, 171)", fill: "#f0f0f0", strokeShadow: void 0, edgeStrokeWidth: 1 }, e2.header), o2.header = X.mergeContentful(o2.header,
|
|
2797
|
-
}, Ro = { fireOnModelChange: false }, Mo = {}, Ao = oe(
|
|
2798
|
-
const { sheet: o2, gridStyle: n2 = Mo, headersStyle:
|
|
2798
|
+
const o2 = { ...e2 }, n2 = t2?.getNormal().getFont(), l2 = n2?.toCSS(), r2 = { text: { fontFamily: l2?.fontFamily, fontSize: n2?.getSize() } }, i2 = o2.body = X.mergeContentful(e2.body, r2);
|
|
2799
|
+
return o2.body = X.mergeContentful({ fill: "#fff", strokeFill: "#dad8d6", strokeWidth: 0.5, text: { fontWeight: "400", fontStyle: "normal", fill: "#040404" } }, i2), o2.buttonSurface = X.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 = X.mergeContentful(o2.body, { edgeStrokeFill: "rgb(171, 171, 171)", fill: "#f0f0f0", strokeShadow: void 0, edgeStrokeWidth: 1 }, e2.header), o2.header = X.mergeContentful(o2.header, r2), o2.headerSelect = X.mergeContentful(o2.header, { fill: "rgba(16, 124, 65, 0.1)", text: { fill: o2.headerSelection.strokeFill, fontWeight: "700" } }, e2.headerSelect), o2.headerSelect = X.mergeContentful(o2.headerSelect, r2), o2.headerSelectAll = X.mergeContentful(o2.headerSelect, {}, e2.headerSelectAll), o2.headerSelectAll = X.mergeContentful(o2.headerSelectAll, r2), o2;
|
|
2800
|
+
}, Ro = { fireOnModelChange: false }, Mo = {}, Ao = oe(re((e2, t2) => {
|
|
2801
|
+
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: v2, onMoveCell: q2, overlays: y2, renderMovable: k2, viewportComponent: T2, onElementLoad: R2, getCellEditor: M2, onFocus: A2, onBlur: z2, style: E2 = C.EmptyCssProperties, onShowTooltip: N2, onShowColumnTooltip: H2, onShowRowTooltip: P2, onCloseTooltip: L2, gridProps: B2, cellRenderProps: $2, ...W2 } = e2;
|
|
2799
2802
|
if (te.useEffect(() => {
|
|
2800
2803
|
d._validate(true);
|
|
2801
2804
|
}, []), !o2) throw new Error("ISheet must be provided.");
|
|
2802
|
-
const [U2, _2] = te.useReducer((e3) => e3 + 1, 0), [G2, { width: ee2, height: oe2 }] = Me(),
|
|
2805
|
+
const [U2, _2] = te.useReducer((e3) => e3 + 1, 0), [G2, { width: ee2, height: oe2 }] = Me(), re2 = S(N2, [N2]), ce2 = S(H2, [H2]), ge2 = S(P2, [P2]), ue2 = S(L2, [L2]), he2 = ie(false);
|
|
2803
2806
|
se(() => {
|
|
2804
2807
|
he2.current = true;
|
|
2805
2808
|
}, [o2]);
|
|
2806
|
-
const pe2 = o2?.getStyles(), fe2 = ne(() => To(n2, pe2), [n2, pe2]), we2 = ne(() => To(
|
|
2809
|
+
const pe2 = o2?.getStyles(), fe2 = ne(() => To(n2, pe2), [n2, pe2]), we2 = ne(() => To(l2, pe2), [l2, pe2]), { body: ve2 = {}, buttonSurface: qe2 = {} } = fe2, { header: Ce2 = {}, headerSelect: be2 = {}, headerSelectAll: Se2 = {} } = we2, xe2 = ie(null), [ke2, Re2] = le(() => o2?.getView()), ze2 = (ke2?.getZoomScale() ?? 100) / 100, Fe2 = ne(() => ({ vertical: ke2.isShowColumnGridlines() && ze2 >= 0.4, horizontal: ke2.isShowRowGridlines() && ze2 >= 0.4 }), [ke2?.isShowColumnGridlines(), ke2?.isShowRowGridlines(), ze2]), De2 = ne(() => {
|
|
2807
2810
|
if (ke2?.getGridLineColor()) return { strokeDasharray: "1,1" };
|
|
2808
|
-
}, [ke2?.getGridLineColor(), fe2]),
|
|
2811
|
+
}, [ke2?.getGridLineColor(), fe2]), Ee2 = s2 ?? ke2?.isShowColumnHeaders(), Ie2 = g2 ?? ke2?.isShowRowHeaders(), [Ne2, He2] = le({ width: 0, height: 0 }), Pe2 = ne(() => {
|
|
2809
2812
|
let e3 = 40, t3 = 20;
|
|
2810
2813
|
const n3 = o2?.getStyles().getNormal().getFont();
|
|
2811
2814
|
if (Ne2.width > 0 && Ne2.height > 0) {
|
|
2812
|
-
const o3 = n3?.toCSS()?.fontFamily ?? fe2.header.text.fontFamily,
|
|
2813
|
-
e3 =
|
|
2815
|
+
const o3 = n3?.toCSS()?.fontFamily ?? fe2.header.text.fontFamily, l3 = n3?.getSize() ?? fe2.header.text.fontSize, r3 = a.getSharedMeasurer()("" + Ne2.height, Math.ceil(l3 * a.getDeviceScale()), o3);
|
|
2816
|
+
e3 = r3.width, t3 = r3.lineHeight;
|
|
2814
2817
|
}
|
|
2815
2818
|
return { width: Math.round(e3 + 5), height: Math.round(t3 + 3) };
|
|
2816
|
-
}, [Ne2, fe2?.header.text, o2]), Ve2 =
|
|
2819
|
+
}, [Ne2, fe2?.header.text, o2]), Ve2 = Ie2 ? ze2 * Pe2.width : Ce2.edgeStrokeWidth, Le2 = Ee2 ? ze2 * Pe2.height : Ce2.edgeStrokeWidth, Be2 = Math.max(ee2, (o2?.getColumnHeaders().getDefaultSize() ?? Pe2.width) + Ve2 + 1), Oe2 = Math.max(oe2, (o2?.getRowHeaders().getDefaultSize() ?? Pe2.height) + Le2 + 1), $e2 = ie(/* @__PURE__ */ new Map()), We2 = ie(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] = le(() => Ue2()), [Ze2, je2] = le(false), [Ke2, Xe2] = le(null), Ye2 = true, Je2 = fe2.selection?.strokeFill, Qe2 = de(() => jt2.current, []), [et2, tt2] = le(), nt2 = S((e3) => {
|
|
2817
2820
|
tt2(e3);
|
|
2818
2821
|
const t3 = o2 ? o2.getView() : null;
|
|
2819
2822
|
t3 && t3.setTopLeft(e3 ? { left: e3.left, top: e3.top } : null), f2?.(e3);
|
|
2820
|
-
}, [o2, f2]),
|
|
2823
|
+
}, [o2, f2]), lt2 = ie(null);
|
|
2821
2824
|
ae(() => {
|
|
2822
2825
|
if (!et2 || !o2) return;
|
|
2823
2826
|
const e3 = o2.getRangeAtBounds({ x: et2.left, y: et2.top, width: et2.width, height: et2.height });
|
|
2824
|
-
|
|
2827
|
+
lt2.current?.(), lt2.current = e3.addListener(() => {
|
|
2825
2828
|
const t3 = e3.getCoords();
|
|
2826
2829
|
xe2?.current?.invalidate(t3);
|
|
2827
2830
|
});
|
|
2828
2831
|
}, [et2, o2]);
|
|
2829
|
-
const [
|
|
2832
|
+
const [rt2, it2] = le(() => o2?.getView().getTopLeft()), at2 = S((e3) => {
|
|
2830
2833
|
const t3 = Q.cellToRange(e3);
|
|
2831
2834
|
if (o2.isClosed()) return t3;
|
|
2832
2835
|
const n3 = o2.getRange(t3, { ignoreHidden: true }).getMerges();
|
|
@@ -2835,23 +2838,23 @@ const fo = oe(le((e2, t2) => {
|
|
|
2835
2838
|
if (!e3 || 0 === e3.coords.colIndex && 0 === e3.coords.rowIndex) return null;
|
|
2836
2839
|
const t3 = {};
|
|
2837
2840
|
return e3.coords.colIndex > 0 && (t3[Y.Left] = { index: e3.coords.colIndex, scrollOffset: e3.topLeft.left }), e3.coords.rowIndex > 0 && (t3[Y.Top] = { index: e3.coords.rowIndex, scrollOffset: e3.topLeft.top }), t3;
|
|
2838
|
-
}, [dt2, ct2] =
|
|
2841
|
+
}, [dt2, ct2] = le(() => st2(o2.getView().getFreezePanes())), gt2 = D(), ut2 = de(() => xe2.current, []), ht2 = S((e3) => {
|
|
2839
2842
|
gt2.setMode((t3) => "edit" === t3?.key ? { ...t3, args: { ...t3.args } } : { key: "edit", args: { stateAndCoords: null, start: e3 } });
|
|
2840
|
-
}, []), mt2 = S(() => et2, [et2]), pt2 = Vt({ sheet: o2, commands: w2, target: ut2, onRepeatCommandChange: v2, bodyStyle: ve2, onStartEdit: ht2, getViewport: mt2 }), [ft2, wt2] =
|
|
2843
|
+
}, []), mt2 = S(() => et2, [et2]), pt2 = Vt({ sheet: o2, commands: w2, target: ut2, onRepeatCommandChange: v2, bodyStyle: ve2, onStartEdit: ht2, getViewport: mt2 }), [ft2, wt2] = le(o2.getSelection().isEntire()), [vt2, Ct2] = le(ke2?.getMovableSelection().length > 0), xt2 = null !== Ke2 || vt2, kt2 = null, [Tt2, Rt2] = le(false);
|
|
2841
2844
|
ae(() => {
|
|
2842
2845
|
Rt2(false);
|
|
2843
2846
|
}, [o2.getProtection()]);
|
|
2844
2847
|
const Mt2 = F(), At2 = S(() => {
|
|
2845
|
-
Tt2 || (Rt2(true), Mt2.showMessage?.(j("span", { children: ["This sheet is protected.", Z("br", {}), "To make a change, unprotect the sheet. You might be requested to enter a password."] }), { type:
|
|
2848
|
+
Tt2 || (Rt2(true), Mt2.showMessage?.(j("span", { children: ["This sheet is protected.", Z("br", {}), "To make a change, unprotect the sheet. You might be requested to enter a password."] }), { type: I.Error }));
|
|
2846
2849
|
}, [Mt2, Tt2]), zt2 = ne(() => {
|
|
2847
2850
|
const e3 = gt2.getMode();
|
|
2848
2851
|
return e3?.cursor ? e3.cursor : null;
|
|
2849
|
-
}, [kt2, gt2]), [Ft2, Dt2] =
|
|
2852
|
+
}, [kt2, gt2]), [Ft2, Dt2] = le(null), Et2 = ie(false), [It2, Nt2] = le([]), Ht2 = ie(null), [Pt2, Lt2] = le(J.EmptyTopLeft), [Ot2, Ut2] = le(J.EmptyTopLeft);
|
|
2850
2853
|
ae(() => {
|
|
2851
|
-
Lt2({ left:
|
|
2852
|
-
}, [
|
|
2853
|
-
Ut2({ left: 0, top:
|
|
2854
|
-
}, [
|
|
2854
|
+
Lt2({ left: rt2?.left, top: 0 });
|
|
2855
|
+
}, [rt2?.left]), ae(() => {
|
|
2856
|
+
Ut2({ left: 0, top: rt2?.top });
|
|
2857
|
+
}, [rt2?.top]), St(o2?.getView(), { onFreezeSplitChange: () => {
|
|
2855
2858
|
ct2(st2(o2.getView().getFreezePanes()));
|
|
2856
2859
|
}, onTopLeftChange: () => {
|
|
2857
2860
|
it2(o2.getView().getTopLeft());
|
|
@@ -2877,23 +2880,23 @@ const fo = oe(le((e2, t2) => {
|
|
|
2877
2880
|
const _t2 = ie(false), Gt2 = ne(() => {
|
|
2878
2881
|
const e3 = X.debounce((e4) => {
|
|
2879
2882
|
requestAnimationFrame(() => {
|
|
2880
|
-
|
|
2883
|
+
Et2.current && ce2?.(e4);
|
|
2881
2884
|
});
|
|
2882
|
-
}, 32), t3 = (t4,
|
|
2883
|
-
|
|
2884
|
-
if (!
|
|
2885
|
-
const i2 =
|
|
2886
|
-
if (null !==
|
|
2887
|
-
const t5 = X.roundAccurately(
|
|
2888
|
-
e3({ anchor: { x: a2 - u4, y: c4, width: d2 - a2, height: g4 - c4 }, display:
|
|
2885
|
+
}, 32), t3 = (t4, l4) => {
|
|
2886
|
+
Et2.current = true, Dt2([(r3) => {
|
|
2887
|
+
if (!r3.toClipBounds(r3.getRangeCoordsBounds({ rowStart: 0, rowEnd: Ne2.height, colStart: t4, colEnd: t4 }))) return;
|
|
2888
|
+
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();
|
|
2889
|
+
if (null !== l4 && (c3 === Y.Left || c3 === Y.Center || c3 === Y.Right)) {
|
|
2890
|
+
const t5 = X.roundAccurately(l4 * X.getDPI(), 0), n3 = X.roundAccurately(o2?.getColumnWidthAsFontUnit(l4 / ze2), 2).toFixed(2), r4 = "Width: " + (l4 ? n3 + " (" + t5 + " pixels)" : "Hidden"), i3 = po2.current.getGridElement().getRelativePointFromClient(0, 0), c4 = 0 - i3.y, g4 = 0 - i3.y + Le2, u4 = i3.x - s3.x;
|
|
2891
|
+
e3({ anchor: { x: a2 - u4, y: c4, width: d2 - a2, height: g4 - c4 }, display: r4 });
|
|
2889
2892
|
}
|
|
2890
2893
|
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 };
|
|
2891
2894
|
return j(te.Fragment, { children: [Z(Te, { linePoints: g3, bounds: h3, ...u3 }), Z(Te, { linePoints: g3, bounds: p3, ...m2 })] }, "resize-dividers");
|
|
2892
2895
|
}]);
|
|
2893
2896
|
};
|
|
2894
|
-
let
|
|
2895
|
-
return { onResizeHeadersStart: (e4, n3,
|
|
2896
|
-
|
|
2897
|
+
let l3 = null;
|
|
2898
|
+
return { onResizeHeadersStart: (e4, n3, r3) => {
|
|
2899
|
+
l3 = o2.beginCommit(r3), _t2.current = false, t3(e4, n3);
|
|
2897
2900
|
}, onResizeHeaders: (e4, o3, n3) => {
|
|
2898
2901
|
_t2.current = false, t3(e4, o3);
|
|
2899
2902
|
}, onResizeHeadersDown: (e4, o3) => {
|
|
@@ -2901,30 +2904,30 @@ const fo = oe(le((e2, t2) => {
|
|
|
2901
2904
|
_t2.current && t3(e4, o3);
|
|
2902
2905
|
}, 360);
|
|
2903
2906
|
}, onResizeHeadersEnd: (e4, t4, o3) => {
|
|
2904
|
-
|
|
2907
|
+
l3?.commit({ description: o3 }), l3 = null, _t2.current = false, requestAnimationFrame(() => ue2?.()), Et2.current = false, Dt2(null);
|
|
2905
2908
|
}, onResizeHeadersUp: (e4) => {
|
|
2906
|
-
_t2.current = false, requestAnimationFrame(() => ue2?.()),
|
|
2909
|
+
_t2.current = false, requestAnimationFrame(() => ue2?.()), Et2.current = false, Dt2(null);
|
|
2907
2910
|
}, ...c2 };
|
|
2908
2911
|
}, [o2, c2, Le2, Ft2]), Zt2 = ne(() => {
|
|
2909
2912
|
const e3 = X.debounce((e4) => {
|
|
2910
2913
|
requestAnimationFrame(() => {
|
|
2911
|
-
|
|
2914
|
+
Et2.current && ge2?.(e4);
|
|
2912
2915
|
});
|
|
2913
|
-
}, 32), t3 = (t4,
|
|
2914
|
-
|
|
2915
|
-
if (!
|
|
2916
|
-
const i2 =
|
|
2917
|
-
if (null !==
|
|
2918
|
-
const t5 = Math.floor(10 * X.getDPI()) / 10, n3 = X.roundAccurately(
|
|
2916
|
+
}, 32), t3 = (t4, l4) => {
|
|
2917
|
+
Et2.current = true, Dt2([(r3) => {
|
|
2918
|
+
if (!r3.toClipBounds(r3.getRangeCoordsBounds({ rowStart: t4, rowEnd: t4, colStart: 0, colEnd: Ne2.width }))) return;
|
|
2919
|
+
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();
|
|
2920
|
+
if (null !== l4 && (c3 === Y.Top || c3 === Y.Center || c3 === Y.Bottom)) {
|
|
2921
|
+
const t5 = Math.floor(10 * X.getDPI()) / 10, n3 = X.roundAccurately(l4 * t5, 0), r4 = X.roundAccurately(n3 / ze2 / (o2?.getRowHeaders().getScaleFactor() * X.getDPI()), 2).toFixed(2), i3 = "Height: " + (l4 ? r4 + " (" + n3 + " pixels)" : "Hidden"), c4 = ho2.current.getGridElement().getRelativePointFromClient(0, 0), g4 = 0 - c4.x, u4 = 0 - c4.x + Ve2, h4 = c4.y - s3.y;
|
|
2919
2922
|
e3({ anchor: { x: g4, y: a2 - h4, width: u4 - g4, height: d2 - a2 }, display: i3 });
|
|
2920
2923
|
}
|
|
2921
2924
|
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 };
|
|
2922
2925
|
return j(te.Fragment, { children: [Z(Te, { linePoints: g3, bounds: h3, ...u3 }), Z(Te, { linePoints: g3, bounds: p3, ...m2 })] }, "resize-dividers");
|
|
2923
2926
|
}]);
|
|
2924
2927
|
};
|
|
2925
|
-
let
|
|
2926
|
-
return { onResizeHeadersStart: (e4, n3,
|
|
2927
|
-
|
|
2928
|
+
let l3 = null;
|
|
2929
|
+
return { onResizeHeadersStart: (e4, n3, r3) => {
|
|
2930
|
+
l3 = o2.beginCommit(r3), _t2.current = false, t3(e4, n3);
|
|
2928
2931
|
}, onResizeHeaders: (e4, o3, n3) => {
|
|
2929
2932
|
_t2.current = false, t3(e4, o3);
|
|
2930
2933
|
}, onResizeHeadersDown: (e4, o3) => {
|
|
@@ -2932,9 +2935,9 @@ const fo = oe(le((e2, t2) => {
|
|
|
2932
2935
|
_t2.current && t3(e4, o3);
|
|
2933
2936
|
}, 360);
|
|
2934
2937
|
}, onResizeHeadersEnd: (e4, t4, o3) => {
|
|
2935
|
-
|
|
2938
|
+
l3?.commit({ description: o3 }), l3 = null, _t2.current = false, requestAnimationFrame(() => ue2?.()), Et2.current = false, Dt2(null);
|
|
2936
2939
|
}, onResizeHeadersUp: (e4) => {
|
|
2937
|
-
_t2.current = false, requestAnimationFrame(() => ue2?.()),
|
|
2940
|
+
_t2.current = false, requestAnimationFrame(() => ue2?.()), Et2.current = false, Dt2(null);
|
|
2938
2941
|
}, ...u2 };
|
|
2939
2942
|
}, [o2, u2, Ve2]), jt2 = b(t2, () => {
|
|
2940
2943
|
const e3 = (e4) => {
|
|
@@ -2945,10 +2948,10 @@ const fo = oe(le((e2, t2) => {
|
|
|
2945
2948
|
if (!t4) return false;
|
|
2946
2949
|
const n3 = xe2.current?.getViewFromCellCoords({ colIndex: t4.colStart, rowIndex: t4.rowStart });
|
|
2947
2950
|
if (!n3) return false;
|
|
2948
|
-
const
|
|
2951
|
+
const l3 = n3.getAnchor();
|
|
2949
2952
|
-1 === o2?.getView().getMovableSelection().indexOf(e4) && o2?.getView().selectMovables([e4]);
|
|
2950
|
-
let
|
|
2951
|
-
return
|
|
2953
|
+
let r3 = $e2.current?.get(l3);
|
|
2954
|
+
return r3?.current ? (await r3.current.focusMovable(e4), true) : (We2.current = { movable: e4, anchor: l3 }, true);
|
|
2952
2955
|
};
|
|
2953
2956
|
return { getGridElement: () => xe2.current, getRowHeaderElement: () => ho2.current, getColumnHeaderElement: () => po2.current, rowHeaderHeight: () => Le2, colHeaderWidth: () => Ve2, startEdit: ht2, submitEdit: () => {
|
|
2954
2957
|
gt2.setMode((e4) => "edit" !== e4?.key ? e4 : { key: "edit", args: { stateAndCoords: null, submit: true } });
|
|
@@ -2965,31 +2968,31 @@ const fo = oe(le((e2, t2) => {
|
|
|
2965
2968
|
}, [fe2]);
|
|
2966
2969
|
const Xt2 = ft2 ? Se2.edgeStrokeFill : Ce2.fill, Yt2 = ft2 ? be2.fill : "function" == typeof fe2.headerHover ? fe2.headerHover(Ce2)?.fill : Ce2.fill, Qt2 = ne(() => T2 ? Z("div", { className: Ae("sheetxl-viewport-overlay", yt), style: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute" }, children: T2 }) : Z(K, {}), [T2]);
|
|
2967
2970
|
let eo2 = null;
|
|
2968
|
-
|
|
2971
|
+
Ee2 && Ie2 && (eo2 = j("div", { tabIndex: -1, className: "top-left-corner", style: { padding: "2 2", position: "absolute", height: `${Le2}px`, width: `${Ve2}px`, zIndex: 1, boxSizing: "border-box", cursor: "cell" }, onMouseDown: (e3) => {
|
|
2969
2972
|
let t3 = !e3.ctrlKey;
|
|
2970
|
-
pt2?.getCommand("selectAll")?.execute(!t3 || 0 !== e3.button), e3.nativeEvent.which === V.Right ?
|
|
2973
|
+
pt2?.getCommand("selectAll")?.execute(!t3 || 0 !== e3.button), e3.nativeEvent.which === V.Right ? r2?.({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: -1, colIndex: -1 }) : xe2.current?.focus();
|
|
2971
2974
|
}, children: [Z("div", { style: { height: Le2 - 5 + "px", width: Le2 - 5 + "px", clipPath: `path('M${Le2 - 5} 0 L0 ${Le2 - 5} L${Le2 - 5} ${Le2 - 5} L${Le2 - 5} 0 Z')`, borderRight: `2px solid ${Xt2}`, borderBottom: `2px solid ${Xt2}`, background: `${Yt2}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), Z("div", { style: { position: "absolute", height: `${Le2}px`, width: `${Ve2}px`, boxSizing: "border-box", borderRight: `solid 1px ${Ce2.strokeFill}`, borderBottom: `solid 1px ${Ce2.strokeFill}`, right: "-1px", bottom: "-1px" } })] }));
|
|
2972
2975
|
const to2 = S(({ _left: e3, _top: t3 }) => {
|
|
2973
2976
|
}, []), oo2 = S((e3) => {
|
|
2974
|
-
if (!
|
|
2977
|
+
if (!r2) return;
|
|
2975
2978
|
const t3 = xe2.current.getViewFromClient(e3.clientX, e3.clientY)?.getCellCoordsFromClient(e3.clientX, e3.clientY);
|
|
2976
|
-
t3 && (
|
|
2977
|
-
}, [
|
|
2979
|
+
t3 && (r2({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: t3.rowIndex, colIndex: t3.colIndex }), e3.stopPropagation(), e3.preventDefault());
|
|
2980
|
+
}, [r2]), no2 = S((e3) => {
|
|
2978
2981
|
if (!(!e3.shiftKey && (e3.ctrlKey || e3.metaKey))) return;
|
|
2979
2982
|
const { deltaY: t3 } = e3;
|
|
2980
2983
|
return t3 > 0 ? pt2.getCommand("sheetZoomOut")?.execute() : t3 < 0 && pt2.getCommand("sheetZoomIn")?.execute(), 0 === t3;
|
|
2981
2984
|
}, [pt2]);
|
|
2982
2985
|
ae(() => {
|
|
2983
|
-
Nt2(null), Ht2.current = null,
|
|
2986
|
+
Nt2(null), Ht2.current = null, Et2.current = false, Dt2(null);
|
|
2984
2987
|
const e3 = o2?.getView().getTopLeft();
|
|
2985
2988
|
to2(e3), xe2.current?.scrollTo(e3), it2(e3), Re2(o2.getView()), ct2(st2(o2.getView().getFreezePanes())), Ge2(Ue2()), _2();
|
|
2986
2989
|
}, [o2?.getView()]);
|
|
2987
|
-
const
|
|
2990
|
+
const lo2 = de((e3, t3) => o2.getRowHeaders().hiddenHeadersAt(e3, t3), [o2]), ro2 = de((e3, t3) => o2.getColumnHeaders().hiddenHeadersAt(e3, t3), [o2]), ao2 = S((e3) => {
|
|
2988
2991
|
const t3 = e3.getVisibleRangeCoords();
|
|
2989
2992
|
if (!t3) return null;
|
|
2990
2993
|
const n3 = [];
|
|
2991
2994
|
return o2.getRange(t3).forEach((e4, t4) => {
|
|
2992
|
-
const o3 = t4.getCoords(),
|
|
2995
|
+
const o3 = t4.getCoords(), l3 = t4.getCell();
|
|
2993
2996
|
((e5) => {
|
|
2994
2997
|
if (e5.isEmpty()) return false;
|
|
2995
2998
|
const t5 = e5.getSpans();
|
|
@@ -2998,7 +3001,7 @@ const fo = oe(le((e2, t2) => {
|
|
|
2998
3001
|
if (ke2.isShowFormulas() && null !== e5.getFormula()) return true;
|
|
2999
3002
|
const o4 = e5.getValue();
|
|
3000
3003
|
return null !== o4 && !(!ke2.isShowZeros() && 0 === o4 && e5.getType() === i.Number);
|
|
3001
|
-
})(
|
|
3004
|
+
})(l3) && n3.push({ coords: o3, value: l3, range: ke2.isShowFormulas() ? null : l3.getExtrusions() });
|
|
3002
3005
|
}, { ignoreHidden: true, includeMergeOverflow: true }), n3;
|
|
3003
3006
|
}, [o2, ke2.isShowZeros(), ke2.isShowFormulas(), Ke2]);
|
|
3004
3007
|
ae(() => {
|
|
@@ -3013,49 +3016,49 @@ const fo = oe(le((e2, t2) => {
|
|
|
3013
3016
|
}, [gt2]), uo2 = S(async (e3) => {
|
|
3014
3017
|
const t3 = gt2.getMode();
|
|
3015
3018
|
return e3.keyCode === x.Escape && t3 ? (e3.preventDefault(), void gt2.setMode(null)) : e3.keyCode === x.Enter && go2 ? (e3.preventDefault(), await pt2?.getCommand("paste")?.execute(), void gt2.setMode(null)) : void pt2?.dispatchToFocusedCommand(e3);
|
|
3016
|
-
}, [pt2, gt2]), ho2 = ie(null), mo2 = ne(() => Z("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Le2 + 1}px`, width: `${Ve2 + Ce2.edgeStrokeWidth}px`, minWidth: `${Ve2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Le2}px)`, boxSizing: "border-box", zIndex: "2" }, children: Z($t, { ref: ho2, sheetElement: jt2.current, gridRef: xe2, freezeStart: dt2?.[Y.Top], oppositeSize: Ve2, containerWidth: Ve2, containerHeight: Oe2, sheetHeader: o2.getRowHeaders(), gridStyle: we2, verticalPadding: Math.max(0, Math.floor(o2.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: Ot2, onSheetContextMenu:
|
|
3017
|
-
const { value: t3, key: n3, ...
|
|
3018
|
-
let
|
|
3019
|
-
if (!i2 || i2.colIndex === e3.coords.colIndex && i2.rowIndex === e3.coords.rowIndex || (i2 = null), !
|
|
3019
|
+
}, [pt2, gt2]), ho2 = ie(null), mo2 = ne(() => Z("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Le2 + 1}px`, width: `${Ve2 + Ce2.edgeStrokeWidth}px`, minWidth: `${Ve2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Le2}px)`, boxSizing: "border-box", zIndex: "2" }, children: Z($t, { ref: ho2, sheetElement: jt2.current, gridRef: xe2, freezeStart: dt2?.[Y.Top], oppositeSize: Ve2, containerWidth: Ve2, containerHeight: Oe2, sheetHeader: o2.getRowHeaders(), gridStyle: we2, verticalPadding: Math.max(0, Math.floor(o2.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: Ot2, onSheetContextMenu: r2, tabIndex: -1, style: { position: "relative", flex: "0", top: `${Le2 + 1}px`, width: `${Ve2 + Ce2.edgeStrokeWidth}px`, minWidth: `${Ve2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Le2}px)`, boxSizing: "border-box", zIndex: "2", ...Zt2?.style }, ...Zt2 }) }), [Ve2, Le2, Oe2, o2, Ot2, dt2?.[Y.Top], fe2, Ye2, r2, Ce2.fill, u2]), po2 = ie(null), fo2 = ne(() => Z("div", { tabIndex: -1, style: { position: "relative", left: "0px", width: "100%", height: `${Le2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Le2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" }, children: Z($t, { ref: po2, sheetElement: jt2.current, gridRef: xe2, freezeStart: dt2?.[Y.Left], oppositeSize: Le2, containerWidth: Be2, containerHeight: Le2, sheetHeader: o2.getColumnHeaders(), gridStyle: we2, scrollPoint: Pt2, onSheetContextMenu: r2, ...Gt2, style: { ...Gt2?.style, position: "relative", left: "0px", width: "100%", height: `${Le2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Le2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" } }) }), [Le2, Be2, o2, Pt2, dt2?.[Y.Left], fe2, Ce2.fill, Ye2, r2, c2]), qo2 = S((e3) => {
|
|
3020
|
+
const { value: t3, key: n3, ...l3 } = e3;
|
|
3021
|
+
let r3 = t3, i2 = Ke2;
|
|
3022
|
+
if (!i2 || i2.colIndex === e3.coords.colIndex && i2.rowIndex === e3.coords.rowIndex || (i2 = null), !r3) {
|
|
3020
3023
|
const t4 = e3.range;
|
|
3021
|
-
if (
|
|
3024
|
+
if (r3 = o2.getRange({ rowIndex: t4.rowStart, colIndex: t4.colStart }).getCell(), r3.isEmpty()) return null;
|
|
3022
3025
|
}
|
|
3023
3026
|
let a2 = null;
|
|
3024
|
-
|
|
3027
|
+
r3.getHyperlink() && (a2 = async (e4) => {
|
|
3025
3028
|
if ($2?.onLinkMouseDown?.(e4), 0 === e4.button && !e4.isDefaultPrevented()) {
|
|
3026
3029
|
e4.stopPropagation(), e4.preventDefault();
|
|
3027
3030
|
try {
|
|
3028
|
-
await
|
|
3031
|
+
await r3.getHyperlink()?.open();
|
|
3029
3032
|
} catch (e5) {
|
|
3030
3033
|
Mt2.showError?.(e5);
|
|
3031
3034
|
}
|
|
3032
3035
|
}
|
|
3033
|
-
}), i2 && i2.colIndex === e3.range.colStart && i2.rowIndex === e3.range.rowStart && (
|
|
3036
|
+
}), i2 && i2.colIndex === e3.range.colStart && i2.rowIndex === e3.range.rowStart && (r3 = r3.createTemporaryCell({ value: null }));
|
|
3034
3037
|
const s3 = o2.getStyles();
|
|
3035
|
-
return me(ot, { ...
|
|
3038
|
+
return me(ot, { ...l3, key: n3, bodyStyle: ve2, docTheme: s3.getTheme(), normalStyle: s3.getNormal(), showFormulas: ke2.isShowFormulas(), showZeros: ke2.isShowZeros(), onLinkMouseDown: a2, ...$2, value: r3 });
|
|
3036
3039
|
}, [o2, _e2, ve2, Ke2, ke2?.isShowFormulas(), ke2.isShowZeros()]), yo2 = de((e3, t3) => {
|
|
3037
|
-
const { key: n3, ...
|
|
3038
|
-
return [Z(Wt, { ref: t3, getVisibleCells: ao2, sheet: o2, gridStyle: fe2, ...
|
|
3040
|
+
const { key: n3, ...l3 } = e3;
|
|
3041
|
+
return [Z(Wt, { ref: t3, getVisibleCells: ao2, sheet: o2, gridStyle: fe2, ...l3 }, `border-${n3}`), Z(So, { ref: t3, sheet: o2, commands: pt2, ...l3 }, `table-${n3}`), Z(xo, { ref: t3, sheet: o2, ...l3 }, `spill-${n3}`), Z(io, { ref: t3, sheet: o2, commands: pt2, onShowTooltip: re2, onCloseTooltip: ue2, gridStyle: fe2, gridRef: xe2, editingCoords: Ke2, isActive: Ye2, ...l3 }, `selection-${n3}`), Z(Jt, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, element: Qe2, ...l3 }, `copy-paste-${n3}`), Z(wo, { ref: t3, sheet: o2, commands: pt2, target: ut2, renderMovable: k2, movableProps: { onUnFocus: () => {
|
|
3039
3042
|
jt2.current.focus();
|
|
3040
|
-
} }, ...
|
|
3041
|
-
}, [o2, xe2.current, fe2, M2, pt2, Mt2]), [Co2, bo2] =
|
|
3043
|
+
} }, ...l3 }, `movable-${n3}`), Z(vo, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, getCellEditor: M2, showProtectedError: At2, setEditingCoords: Xe2, ...l3 }, `editor-${n3}`)];
|
|
3044
|
+
}, [o2, xe2.current, fe2, M2, pt2, Mt2]), [Co2, bo2] = le(false), Ao2 = ne(() => {
|
|
3042
3045
|
if (0 === Be2 || 0 === Oe2) return null;
|
|
3043
|
-
const e3 = o2.getStyles().getNormal(), t3 = e3.getFont(), n3 = e3.getFill(),
|
|
3046
|
+
const e3 = o2.getStyles().getNormal(), t3 = e3.getFont(), n3 = e3.getFill(), l3 = e3.getBorder(), r3 = e3.getFill().getType() === m.Type.None;
|
|
3044
3047
|
let i2 = De2, a2 = De2;
|
|
3045
|
-
const s3 = (e4, t4, o3) => o3 ? { stroke:
|
|
3046
|
-
a2 = s3(
|
|
3048
|
+
const s3 = (e4, t4, o3) => o3 ? { stroke: l3.getBottom().isNone() ? "none" : e4.getColor().toRGBA(ve2.darkMode).toString(), ...t4 } : t4;
|
|
3049
|
+
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());
|
|
3047
3050
|
let d2 = ke2?.getGridLineColor()?.toRGBA(ve2.darkMode).toString() ?? ve2.strokeFill;
|
|
3048
|
-
return
|
|
3051
|
+
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)), Z(ye, { className: "sheetxl-sheet-primary", style: { ...ko, ...n3.toCSS(ve2.darkMode), ...t3.toCSS(ve2.darkMode, ze2), "--sxl-app-color-background": ve2.fill, "--sxl-app-color-shadow": fe2.colorShadow, "--sxl-app-color-grey": fe2.colorGrey, "--sxl-app-color-button-fill": qe2.fill, "--sxl-app-color-button-text": qe2.text?.fill, "--sxl-app-color-button-border": qe2.edgeStrokeFill, "--sxl-app-color-primary-dark": fe2.selection.strokeFill }, ref: xe2, zoom: ze2, ...B2, onFirstRender: (e4) => {
|
|
3049
3052
|
bo2(true), B2?.onFirstRender?.(e4), pt2?.activate();
|
|
3050
|
-
}, showGridLines: Fe2, gridLineColor: d2, gridLineColumnsProps: i2, gridLineRowsProps: a2, freezeLeft: dt2?.[Y.Left], freezeLeftProps: so2, freezeTop: dt2?.[Y.Top], freezeTopProps: so2, width: Be2, height: Oe2, columnCount: Ne2.width, rowCount: Ne2.height, cursor: zt2 ?? kt2 ?? "cell", clipCells: true, layout: _e2, cellRenderer: qo2, overlayRenderer: yo2, getCellCoordsAsRangeCoords: at2, hiddenRowsAt:
|
|
3053
|
+
}, showGridLines: Fe2, gridLineColor: d2, gridLineColumnsProps: i2, gridLineRowsProps: a2, freezeLeft: dt2?.[Y.Left], freezeLeftProps: so2, freezeTop: dt2?.[Y.Top], freezeTopProps: so2, width: Be2, height: Oe2, columnCount: Ne2.width, rowCount: Ne2.height, cursor: zt2 ?? kt2 ?? "cell", clipCells: true, layout: _e2, cellRenderer: qo2, overlayRenderer: yo2, getCellCoordsAsRangeCoords: at2, hiddenRowsAt: lo2, hiddenColumnsAt: ro2, getVisibleCells: ao2, onWheelScroll: no2, onPointerDown: co2, onKeyDown: uo2, onViewportChange: nt2, onImmediateScroll: to2, scrollPoint: rt2, stageProps: { onFocus: () => {
|
|
3051
3054
|
pt2?.activate();
|
|
3052
|
-
} }, overlays:
|
|
3055
|
+
} }, overlays: It2 });
|
|
3053
3056
|
}, [U2]);
|
|
3054
3057
|
ae(() => {
|
|
3055
3058
|
he2.current || _2();
|
|
3056
|
-
}, [_e2, dt2, ze2, pt2,
|
|
3059
|
+
}, [_e2, dt2, ze2, pt2, rt2?.left, rt2?.top, ve2, B2, Be2, Oe2, zt2, It2, Ye2, kt2]);
|
|
3057
3060
|
let zo2 = { flex: "1 1 100%", display: "flex", alignContent: "stretch", position: "relative" };
|
|
3058
|
-
h2 || (zo2 = { ...zo2, ...
|
|
3061
|
+
h2 || (zo2 = { ...zo2, ...E2 });
|
|
3059
3062
|
const Fo2 = ne(() => {
|
|
3060
3063
|
const e3 = o2.getStyles().getTheme(), t3 = e3.getColorScheme(), n3 = e3.getFontScheme();
|
|
3061
3064
|
return { "--sxl-doc-color-dk1": t3.getDk1().toCSS(ve2.darkMode), "--sxl-doc-color-dk2": t3.getDk2().toCSS(ve2.darkMode), "--sxl-doc-color-lt1": t3.getLt1().toCSS(ve2.darkMode), "--sxl-doc-color-lt2": t3.getLt2().toCSS(ve2.darkMode), "--sxl-doc-color-accent1": t3.getAccent1().toCSS(ve2.darkMode), "--sxl-doc-color-accent2": t3.getAccent2().toCSS(ve2.darkMode), "--sxl-doc-color-accent3": t3.getAccent3().toCSS(ve2.darkMode), "--sxl-doc-color-accent4": t3.getAccent4().toCSS(ve2.darkMode), "--sxl-doc-color-accent5": t3.getAccent5().toCSS(ve2.darkMode), "--sxl-doc-color-accent6": t3.getAccent6().toCSS(ve2.darkMode), "--sxl-doc-color-hlink": t3.getHlink().toCSS(ve2.darkMode), "--sxl-doc-color-fol-hlink": t3.getFolHlink().toCSS(ve2.darkMode), "--sxl-doc-font-major": n3.getMajorFont(), "--sxl-doc-font-minor": n3.getMinorFont() };
|
|
@@ -3063,77 +3066,77 @@ const fo = oe(le((e2, t2) => {
|
|
|
3063
3066
|
const { style: t3, ...n3 } = e3;
|
|
3064
3067
|
return Z(Bt, { ...n3, style: { paddingLeft: "4px", paddingRight: "4px", ...t3 }, sheet: o2 });
|
|
3065
3068
|
}, [o2]);
|
|
3066
|
-
let
|
|
3069
|
+
let Eo2 = Z("div", { style: zo2, onTouchStart: () => {
|
|
3067
3070
|
Ho2();
|
|
3068
3071
|
}, onFocus: (e3) => {
|
|
3069
3072
|
je2(true), A2?.(e3);
|
|
3070
3073
|
}, onBlur: (e3) => {
|
|
3071
3074
|
je2(false), z2?.(e3);
|
|
3072
3075
|
}, ref: jt2, ...W2, children: Z("div", { className: Ae("sheetxl-sheet", qt), style: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", flex: "1 1 100%", zIndex: "0", ...Fo2 }, children: j("div", { style: { display: "flex", flexDirection: "row", flex: "1 1 100%" }, children: [eo2, mo2, j("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden", position: "relative" }, children: [fo2, j("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", position: "relative", borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, backgroundColor: ve2.fill }, ref: G2, onContextMenu: oo2, children: [Ao2, Qt2, Z(bt, { style: { position: "absolute", right: 24, bottom: 4 }, colorLicensee: fe2?.selection?.strokeFill, colorCredits: fe2?.body?.text?.fill })] })] })] }) }) });
|
|
3073
|
-
h2 && (
|
|
3076
|
+
h2 && (Eo2 = Z(O, { style: { flex: "1 1 100%", overflow: "hidden", background: `${Ce2.fill}`, minHeight: 2 * Pe2.height, minWidth: 2 * Pe2.width, ...E2 }, viewport: et2, touchElement: xe2.current?.stage, disableTouch: xt2, onScrollViewport: (e3) => {
|
|
3074
3077
|
xe2.current?.scrollTo(e3);
|
|
3075
|
-
}, createHorizontalScrollbar: Do2, createVerticalScrollbar: Do2, ...p2, children:
|
|
3078
|
+
}, createHorizontalScrollbar: Do2, createVerticalScrollbar: Do2, ...p2, children: Eo2 })), ae(() => {
|
|
3076
3079
|
he2.current = false, _2?.(), Ze2 && jt2.current?.focus();
|
|
3077
3080
|
}, [o2]);
|
|
3078
|
-
const [
|
|
3079
|
-
|
|
3080
|
-
}, [
|
|
3081
|
+
const [Io2, No2] = le(false), Ho2 = S(() => {
|
|
3082
|
+
Io2 || No2(true);
|
|
3083
|
+
}, [Io2]);
|
|
3081
3084
|
return ae(() => {
|
|
3082
3085
|
if (Co2) return "function" == typeof R2 && R2(), "touch" === C.detectIt().primaryInput && Ho2(), () => {
|
|
3083
3086
|
};
|
|
3084
|
-
}, [R2, Co2,
|
|
3087
|
+
}, [R2, Co2, Io2]), Eo2;
|
|
3085
3088
|
}));
|
|
3086
3089
|
Ao.displayName = "SheetElement";
|
|
3087
|
-
const zo = Object.freeze(Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), Fo = "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=", Do = oe(
|
|
3088
|
-
const { children: o2, disabled: n2, style:
|
|
3090
|
+
const zo = Object.freeze(Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), Fo = "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=", Do = oe(re((e2, t2) => {
|
|
3091
|
+
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] = le(false), [v2, q2] = le(null), [y2, C2] = le(null), [S2, x2] = le(null);
|
|
3089
3092
|
ae(() => {
|
|
3090
|
-
C2(null),
|
|
3093
|
+
C2(null), r2.getDetails().then((e3) => {
|
|
3091
3094
|
w2(false), C2(e3.asUrl()), e3.asSVGText?.() && x2(e3.asSVGText());
|
|
3092
3095
|
}).catch((e3) => {
|
|
3093
3096
|
console.warn(e3), w2(true), C2(Fo), x2(null);
|
|
3094
3097
|
});
|
|
3095
|
-
}, [
|
|
3098
|
+
}, [r2]);
|
|
3096
3099
|
const k2 = b(t2, () => ({ isPictureEditor: () => true }), []), T2 = ne(() => {
|
|
3097
3100
|
if (y2 || S2) return Z("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: v2 ? 1 : 0, filter: "var(--sxl-app-filter-dark-invert)" }, draggable: false, src: y2, onLoad: () => {
|
|
3098
3101
|
q2(true);
|
|
3099
3102
|
}, onError: ({ currentTarget: e3 }) => {
|
|
3100
3103
|
console.log("error"), e3.onerror = null, C2(Fo), w2(true);
|
|
3101
|
-
}, alt: i2 ?? `${
|
|
3102
|
-
}, [v2,
|
|
3103
|
-
if (!
|
|
3104
|
+
}, alt: i2 ?? `${r2.getType()}` });
|
|
3105
|
+
}, [v2, r2, y2, S2, a2]);
|
|
3106
|
+
if (!r2.isClosed()) return j("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) => {
|
|
3104
3107
|
g2?.(e3);
|
|
3105
3108
|
}, ref: k2, children: [v2 || f2 ? void 0 : m2, T2] });
|
|
3106
3109
|
}));
|
|
3107
3110
|
Do.displayName = "PictureEditor";
|
|
3108
|
-
const
|
|
3109
|
-
const { children: o2, disabled: n2, chart:
|
|
3111
|
+
const Eo = oe(re((e2, t2) => {
|
|
3112
|
+
const { children: o2, disabled: n2, chart: l2, view: r2, isDragging: i2, onHide: a2, onShow: s2, ...d2 } = e2;
|
|
3110
3113
|
ae(() => {
|
|
3111
|
-
}, [
|
|
3114
|
+
}, [l2]);
|
|
3112
3115
|
const c2 = b(t2, () => ({ isChartEditor: () => true }), []), [g2, { height: u2, width: h2 }] = Me();
|
|
3113
|
-
if (!
|
|
3114
|
-
})),
|
|
3115
|
-
const { style: o2 = {}, className: n2, value:
|
|
3116
|
+
if (!l2.isClosed()) return Z("div", { ...d2, ref: Re([c2, g2]), children: Z("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: Z("div", { style: { textAlign: "center" }, children: l2.getDescription() }) }) });
|
|
3117
|
+
})), Io = "_editable-input_1bqx6_6", No = (e2) => Z("input", { ...e2 }), Ho = oe(re((e2, t2) => {
|
|
3118
|
+
const { style: o2 = {}, className: n2, value: l2 = "", onSubmit: r2, onChange: i2, onCancel: a2, createInput: s2 = No, styleHover: d2 = {}, dragging: c2, maxLength: g2, disabled: u2 = false, readOnly: h2 = false, ...m2 } = e2, [p2, f2] = le(false), [w2, v2] = le(false), [q2, y2] = le(l2);
|
|
3116
3119
|
ae(() => {
|
|
3117
|
-
y2(
|
|
3118
|
-
}, [
|
|
3119
|
-
const C2 = ie(null), [x2, k2] =
|
|
3120
|
+
y2(l2);
|
|
3121
|
+
}, [l2]);
|
|
3122
|
+
const C2 = ie(null), [x2, k2] = le(null), T2 = F(), R2 = de(function(e3) {
|
|
3120
3123
|
const t3 = e3.message;
|
|
3121
|
-
x2 !== t3 && (T2?.showMessage?.(t3, { type:
|
|
3124
|
+
x2 !== t3 && (T2?.showMessage?.(t3, { type: I.Error }), k2(t3));
|
|
3122
3125
|
}, [T2, x2]), M2 = de((e3) => {
|
|
3123
3126
|
let t3 = false;
|
|
3124
3127
|
try {
|
|
3125
|
-
t3 =
|
|
3128
|
+
t3 = r2?.(e3) ?? true;
|
|
3126
3129
|
} catch (e4) {
|
|
3127
3130
|
R2(e4);
|
|
3128
3131
|
}
|
|
3129
3132
|
return t3 ? (C2.current = null, v2(false), y2(e3), t3) : (setTimeout(() => {
|
|
3130
3133
|
C2.current?.focus();
|
|
3131
3134
|
}, 0), t3);
|
|
3132
|
-
}, [
|
|
3133
|
-
y2(
|
|
3134
|
-
}, [a2,
|
|
3135
|
+
}, [r2]), A2 = S(() => {
|
|
3136
|
+
y2(l2), C2.current = null, v2(false), a2?.();
|
|
3137
|
+
}, [a2, l2]), z2 = ne(() => {
|
|
3135
3138
|
if (!w2) return null;
|
|
3136
|
-
const e3 = { className: Ae(
|
|
3139
|
+
const e3 = { className: Ae(Io), autoFocus: true, spellCheck: false, name: "editable-label", autoComplete: "off", maxLength: g2, type: "text", value: q2, onFocus: (e4) => {
|
|
3137
3140
|
C2.current || (C2.current = e4.target, setTimeout(() => {
|
|
3138
3141
|
e4.target?.select();
|
|
3139
3142
|
}, 0));
|
|
@@ -3143,10 +3146,10 @@ const Io = oe(le((e2, t2) => {
|
|
|
3143
3146
|
w2 && y2(e4.target.value);
|
|
3144
3147
|
}, onMouseDown: (e4) => e4.stopPropagation(), onKeyDown: (e4) => "Escape" === e4.code ? (e4.preventDefault(), void A2()) : "Enter" === e4.code ? (e4.preventDefault(), void M2(e4.target.value)) : void ("Tab" !== e4.code ? e4.stopPropagation() : M2(e4.target.value)) };
|
|
3145
3148
|
return Z(K, { children: s2(e3) });
|
|
3146
|
-
}, [w2, q2, M2, A2, s2, u2]), [D2,
|
|
3149
|
+
}, [w2, q2, M2, A2, s2, u2]), [D2, E2] = le();
|
|
3147
3150
|
se(() => {
|
|
3148
3151
|
let e3 = Object.assign({}, o2);
|
|
3149
|
-
(c2 || p2) && (e3 = Object.assign(e3, d2)),
|
|
3152
|
+
(c2 || p2) && (e3 = Object.assign(e3, d2)), E2(e3);
|
|
3150
3153
|
}, [c2, p2, d2, o2]), ae(() => {
|
|
3151
3154
|
z2 && i2?.(q2);
|
|
3152
3155
|
}, [z2, i2, q2]);
|
|
@@ -3158,29 +3161,29 @@ const Io = oe(le((e2, t2) => {
|
|
|
3158
3161
|
return j("div", { ...m2, ref: N2, style: { flexDirection: "column", display: "flex", ...D2 }, className: Ae(n2), children: [j("div", { style: { position: "relative", boxSizing: "content-box", whiteSpace: "pre", userSelect: "none", display: "flex", justifyContent: "center" }, onDoubleClick: () => {
|
|
3159
3162
|
u2 || h2 || v2(true);
|
|
3160
3163
|
}, onMouseEnter: () => f2(true), onMouseLeave: () => f2(false), children: [Z("div", { className: "editable-label-container", style: { textAlign: "center", display: "flex", minHeight: "1em", marginTop: "2px", opacity: w2 ? 0 : 1 }, children: q2 }), z2] }), Z("div", { style: { whiteSpace: "pre", position: "relative", maxHeight: "0px", height: "0px", visibility: "hidden", marginLeft: "1px", marginRight: "1px", overflow: "hidden", ...d2 }, children: q2 })] });
|
|
3161
|
-
})), Po = oe(
|
|
3162
|
-
const { children: o2, style: n2, className:
|
|
3163
|
-
return j("div", { ref: t2, className: Ae(
|
|
3164
|
-
})), Vo = { 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" }, Lo = te.memo(te.forwardRef(({ color: e2, dragOverlay: t2, dragging: o2, disabled: n2, fadeIn:
|
|
3164
|
+
})), Po = oe(re((e2, t2) => {
|
|
3165
|
+
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;
|
|
3166
|
+
return j("div", { ref: t2, className: Ae(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: [j("div", { style: { flex: "1 1 100%", display: "flex", flexDirection: "row" }, children: [Z("div", { style: { marginLeft: s2 === r2 ? "0px" : "-1px", marginTop: s2 === r2 ? "0px" : "4px", marginBottom: "0px", background: "grey", minWidth: "1px" } }), o2, s2 === r2 ? Z("div", { style: { marginLeft: "0px", marginTop: "0px", marginBottom: "0px", background: "grey", minWidth: "1px" } }) : Z(K, {})] }), Z("div", { style: { flex: "1 1 100%", background: s2 === r2 && c2 ? c2?.toCSS() : "none", minHeight: "2px" } })] });
|
|
3167
|
+
})), Vo = { 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" }, Lo = te.memo(te.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 }, v2) => {
|
|
3165
3168
|
ae(() => {
|
|
3166
3169
|
if (t2) return document.body.style.cursor = "grabbing", () => {
|
|
3167
3170
|
document.body.style.cursor = "";
|
|
3168
3171
|
};
|
|
3169
3172
|
}, [t2]);
|
|
3170
|
-
const q2 = c2 ? c2({ dragOverlay: Boolean(t2), dragging: Boolean(o2), sorting: Boolean(g2), index: a2, fadeIn: Boolean(
|
|
3171
|
-
return Z("div", { className: Ae("tab-item", Vo.Wrapper,
|
|
3172
|
-
})), Bo = { Row: "_Row_1kr10_1" }, Oo = oe(
|
|
3173
|
-
const { className: o2, activationConstraint: n2, animateLayoutChanges:
|
|
3173
|
+
const q2 = c2 ? c2({ dragOverlay: Boolean(t2), dragging: Boolean(o2), sorting: Boolean(g2), index: a2, fadeIn: Boolean(l2), listeners: s2, ref: v2, style: u2, transform: m2, transition: h2, value: p2 }) : Z(K, { children: p2 });
|
|
3174
|
+
return Z("div", { className: Ae("tab-item", Vo.Wrapper, l2 && Vo.fadeIn, g2 && Vo.sorting, t2 && Vo.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: v2, children: Z("div", { className: Ae(Vo.Item, o2 && Vo.dragging, r2 && Vo.withHandle, t2 && Vo.dragOverlay, n2 && Vo.disabled, e2 && Vo.color, "dragging"), style: u2, "data-cypress": "draggable-item", ...r2 ? void 0 : s2, ...w2, tabIndex: r2 ? void 0 : -1, children: q2 }) });
|
|
3175
|
+
})), Bo = { Row: "_Row_1kr10_1" }, Oo = oe(re(({ children: e2, horizontal: t2, style: o2 }, n2) => Z("div", { ref: n2, style: { ...o2 }, className: Ae(Bo.Row, t2 && Bo.horizontal), children: e2 }))), $o = { ...Oe }, Wo = oe(re((e2, t2) => {
|
|
3176
|
+
const { className: o2, activationConstraint: n2, animateLayoutChanges: l2, adjustScale: r2 = false, collisionDetection: i2 = Be, coordinateGetter: a2 = Ee, dropAnimation: s2 = $o, getItemStyles: d2 = () => ({}), getNewIndex: c2, handle: g2 = false, items: u2, onMove: h2, isDisabled: m2 = () => false, measuring: p2, modifiers: f2, renderItem: w2, renderDivider: v2, reorderItems: q2 = Ie, strategy: y2 = Ne, style: C2, useDragOverlay: b2 = true, onDragStart: S2, wrapperStyle: x2 = () => ({}) } = e2, [k2, T2] = le(() => u2);
|
|
3174
3177
|
ae(() => {
|
|
3175
3178
|
T2(u2);
|
|
3176
3179
|
}, [u2]);
|
|
3177
|
-
const [R2, M2] =
|
|
3180
|
+
const [R2, M2] = le(null), A2 = $e(We(Ue, { activationConstraint: n2 }), We(_e, { activationConstraint: n2 }), We(Ge, { scrollBehavior: "Cypress" in window ? "auto" : void 0, coordinateGetter: a2 })), z2 = k2.indexOf.bind(k2), F2 = R2 ? z2(R2) : -1, D2 = [];
|
|
3178
3181
|
k2.map((e3, t3) => {
|
|
3179
|
-
D2.push(Z(Uo, { id: e3, handle: g2, index: t3, style: d2, wrapperStyle: x2, disabled: m2(e3), renderItem: w2, animateLayoutChanges:
|
|
3182
|
+
D2.push(Z(Uo, { id: e3, handle: g2, index: t3, style: d2, wrapperStyle: x2, disabled: m2(e3), renderItem: w2, animateLayoutChanges: l2, useDragOverlay: b2, getNewIndex: c2 }, e3 + "-" + t3));
|
|
3180
3183
|
const o3 = v2?.({ key: "divider-" + t3 });
|
|
3181
3184
|
o3 && D2.push(o3);
|
|
3182
3185
|
});
|
|
3183
|
-
const { getPortalContainer:
|
|
3186
|
+
const { getPortalContainer: E2 } = $();
|
|
3184
3187
|
return j(Ze, { sensors: A2, collisionDetection: i2, onDragStart: (e3) => {
|
|
3185
3188
|
const { active: t3 } = e3;
|
|
3186
3189
|
t3 && (S2?.(e3), M2(t3.id));
|
|
@@ -3191,91 +3194,91 @@ const Io = oe(le((e2, t2) => {
|
|
|
3191
3194
|
}
|
|
3192
3195
|
}, onDragCancel: () => {
|
|
3193
3196
|
M2(null);
|
|
3194
|
-
}, measuring: p2, modifiers: f2, children: [Z("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...C2 }, className: Ae(o2, Vo.Wrapper), children: Z(He, { items: k2, strategy: y2, children: Z(Oo, { ref: t2, children: D2 }) }) }), b2 ? Fe(Z(je, { adjustScale:
|
|
3197
|
+
}, measuring: p2, modifiers: f2, children: [Z("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...C2 }, className: Ae(o2, Vo.Wrapper), children: Z(He, { items: k2, strategy: y2, children: Z(Oo, { ref: t2, children: D2 }) }) }), b2 ? Fe(Z(je, { adjustScale: r2, dropAnimation: s2, children: R2 ? Z(Lo, { 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 !== R2, isDragging: true, overIndex: -1, isDragOverlay: true }), dragOverlay: true }) : null }), E2()) : null] });
|
|
3195
3198
|
}));
|
|
3196
|
-
function Uo({ disabled: e2, animateLayoutChanges: t2, getNewIndex: o2, handle: n2, id:
|
|
3197
|
-
const { attributes: g2, isDragging: u2, isSorting: h2, listeners: m2, overIndex: p2, setNodeRef: f2, transform: w2, transition: v2 } = Pe({ id:
|
|
3198
|
-
return Z(Lo, { ref: f2, value:
|
|
3199
|
+
function Uo({ disabled: e2, animateLayoutChanges: t2, getNewIndex: o2, handle: n2, id: l2, index: r2, onRemove: i2, style: a2, renderItem: s2, useDragOverlay: d2, wrapperStyle: c2 }) {
|
|
3200
|
+
const { attributes: g2, isDragging: u2, isSorting: h2, listeners: m2, overIndex: p2, setNodeRef: f2, transform: w2, transition: v2 } = Pe({ id: l2, animateLayoutChanges: t2, disabled: e2, getNewIndex: o2 });
|
|
3201
|
+
return Z(Lo, { 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: v2, wrapperStyle: c2({ index: r2, isDragging: u2, id: l2 }), listeners: m2, "data-index": r2, "data-id": l2, dragOverlay: !d2 && u2, ...g2 });
|
|
3199
3202
|
}
|
|
3200
|
-
const _o = "_TabStrip_3x0dp_1", Go = new h("rgb(33, 115, 70)"), Zo = "#eee", jo = (e2) => Z(Po, { ...e2 }), Ko = oe(
|
|
3201
|
-
const { children: o2, style: n2, className:
|
|
3202
|
-
const t3 =
|
|
3203
|
+
const _o = "_TabStrip_3x0dp_1", Go = new h("rgb(33, 115, 70)"), Zo = "#eee", jo = (e2) => Z(Po, { ...e2 }), Ko = oe(re((e2, t2) => {
|
|
3204
|
+
const { children: o2, style: n2, className: l2, selectedTabIndex: r2 = 0, tabNames: i2 = [], onSelectedTabIndexChange: a2, onTabNameChange: s2, onTabMove: d2, createScrollStartButton: c2 = W, createScrollEndButton: g2 = U, createScrollEdgeButton: u2 = _, createTabButton: h2 = jo, createTabDivider: m2, editLabelProps: p2, disabled: f2 = false, disableDrag: w2 = false, background: v2 = "white", activeColor: q2 = Go, borderColor: y2 = Zo, borderWidth: C2 = 1 } = e2, [b2, S2] = le(r2), [x2, k2] = le(i2), T2 = de((e3) => {
|
|
3205
|
+
const t3 = E2.current?.[e3]?.closest(".tab-item") ?? E2.current?.[e3];
|
|
3203
3206
|
t3 && O2.current?.scrollTo({ top: t3.offsetTop, left: t3.offsetLeft, behavior: "smooth" });
|
|
3204
3207
|
}, []);
|
|
3205
3208
|
ae(() => {
|
|
3206
|
-
T2(
|
|
3207
|
-
}, [
|
|
3209
|
+
T2(r2);
|
|
3210
|
+
}, [r2]);
|
|
3208
3211
|
const R2 = de((e3, t3) => {
|
|
3209
3212
|
t3 !== b2 && (S2(t3), a2?.(t3)), T2(t3);
|
|
3210
3213
|
}, [a2, b2]), M2 = de((e3, t3) => {
|
|
3211
3214
|
d2?.(e3, t3);
|
|
3212
|
-
}, [d2]), A2 = ie(null), [z2, F2] =
|
|
3215
|
+
}, [d2]), A2 = ie(null), [z2, F2] = le(-1), D2 = de((e3, t3) => {
|
|
3213
3216
|
s2?.(e3, t3);
|
|
3214
3217
|
}, [s2]);
|
|
3215
3218
|
se(() => {
|
|
3216
|
-
S2(
|
|
3217
|
-
}, [
|
|
3219
|
+
S2(r2);
|
|
3220
|
+
}, [r2]), se(() => {
|
|
3218
3221
|
k2(i2);
|
|
3219
3222
|
}, [i2]);
|
|
3220
|
-
const
|
|
3223
|
+
const E2 = ie([]), I2 = ie(null);
|
|
3221
3224
|
pe(t2, () => Object.assign({ startEdit(e3) {
|
|
3222
|
-
|
|
3225
|
+
E2.current?.[e3]?.startEdit();
|
|
3223
3226
|
}, cancel(e3) {
|
|
3224
|
-
|
|
3225
|
-
} },
|
|
3227
|
+
E2.current?.[e3]?.cancel();
|
|
3228
|
+
} }, I2.current), [b2, z2]);
|
|
3226
3229
|
const N2 = de(({ value: e3, index: t3, dragging: o3 }) => {
|
|
3227
|
-
const { style: n3, maxLength:
|
|
3228
|
-
|
|
3229
|
-
}, value: e3, disabled: f2, maxLength:
|
|
3230
|
+
const { style: n3, maxLength: l3, ...r3 } = p2 || {}, i3 = Z(Ho, { ref: (e4) => {
|
|
3231
|
+
E2.current[t3] = e4;
|
|
3232
|
+
}, value: e3, disabled: f2, maxLength: l3, style: { color: b2 === t3 && q2 ? q2?.toRGBA().toString() : "inherit", flex: "1 1 100%", paddingTop: "1px", paddingBottom: "1px", ...n3 }, styleHover: {}, onSubmit: (e4) => (A2.current = false, F2(-1), D2(t3, e4)), onCancel: () => {
|
|
3230
3233
|
A2.current = false, F2(-1);
|
|
3231
3234
|
}, onChange: (e4) => {
|
|
3232
3235
|
A2.current = true, F2(t3);
|
|
3233
|
-
}, ...
|
|
3236
|
+
}, ...r3 });
|
|
3234
3237
|
return h2({ onClick: (e4) => R2(e4, t3), value: e3, index: t3, editing: z2 === t3 && A2.current, editable: true, disabled: f2, selectedIndex: b2, background: v2, activeColor: q2, borderColor: y2, borderWidth: C2, dragging: o3, children: i3 });
|
|
3235
|
-
}, [b2, D2, R2, p2, f2, z2, h2]), [P2, { width: V2 }] = Me(), [L2, { width: B2 }] = Me(), O2 = ie(null), [$2, X2] =
|
|
3238
|
+
}, [b2, D2, R2, p2, f2, z2, h2]), [P2, { width: V2 }] = Me(), [L2, { width: B2 }] = Me(), O2 = ie(null), [$2, X2] = le({ left: 0, top: 0, width: 0, height: 0 }), [Y2, J2] = le(null);
|
|
3236
3239
|
ae(() => {
|
|
3237
3240
|
null !== Y2 && O2.current && O2.current.scrollTo({ left: Y2, behavior: "smooth" });
|
|
3238
3241
|
}, [Y2]);
|
|
3239
3242
|
const Q2 = de((e3, t3 = false) => {
|
|
3240
3243
|
if (!O2.current) return 0;
|
|
3241
|
-
let o3 = O2.current.firstChild.getBoundingClientRect(), n3 = O2.current.firstChild.firstChild.children,
|
|
3242
|
-
return
|
|
3244
|
+
let o3 = O2.current.firstChild.getBoundingClientRect(), n3 = O2.current.firstChild.firstChild.children, l3 = 0;
|
|
3245
|
+
return l3 = t3 ? 0 : G.getScrollTo(e3, o3.left, n3, true, Math.max(0, e3 - 200)), J2(l3), Math.max(0, l3);
|
|
3243
3246
|
}, []), ee2 = de((e3, t3 = false) => {
|
|
3244
3247
|
if (!O2.current) return 0;
|
|
3245
|
-
let o3 = O2.current.firstChild.getBoundingClientRect(), n3 = O2.current.firstChild.firstChild.children,
|
|
3246
|
-
const
|
|
3247
|
-
return
|
|
3248
|
-
}, [B2, V2]), te2 = ie(null), oe2 = ie(null),
|
|
3248
|
+
let o3 = O2.current.firstChild.getBoundingClientRect(), n3 = O2.current.firstChild.firstChild.children, l3 = 0;
|
|
3249
|
+
const r3 = Math.ceil(B2 - V2);
|
|
3250
|
+
return l3 = t3 ? r3 : G.getScrollTo(e3, o3.left, n3, false, Math.max(0, e3 + 200)), J2(l3), Math.min(r3, l3);
|
|
3251
|
+
}, [B2, V2]), te2 = ie(null), oe2 = ie(null), re2 = de(() => {
|
|
3249
3252
|
oe2.current && (clearTimeout(oe2.current), oe2.current = null, te2.current = null);
|
|
3250
3253
|
}, []), ce2 = de((e3, t3, o3 = 260) => {
|
|
3251
3254
|
te2.current = e3, oe2.current = setTimeout(() => {
|
|
3252
3255
|
const o4 = t3 ? Q2(te2.current || e3) : ee2(te2.current || e3);
|
|
3253
|
-
o4 !== te2.current ? ce2(o4, t3, 120) :
|
|
3256
|
+
o4 !== te2.current ? ce2(o4, t3, 120) : re2();
|
|
3254
3257
|
}, o3);
|
|
3255
|
-
}, [Q2, ee2,
|
|
3256
|
-
ae(() => () =>
|
|
3257
|
-
const ge2 = ne(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor($2.left) <= 0 || 0 === Math.floor(B2 - V2), orientation: H.Horizontal, onMouseUp:
|
|
3258
|
-
return j("div", { style: { ...n2, display: "flex", alignItems: "stretch" }, className: Ae(_o,
|
|
3258
|
+
}, [Q2, ee2, re2]);
|
|
3259
|
+
ae(() => () => re2(), [re2]);
|
|
3260
|
+
const ge2 = ne(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor($2.left) <= 0 || 0 === Math.floor(B2 - V2), orientation: H.Horizontal, onMouseUp: re2, onMouseLeave: re2, onMouseDown: () => ce2(O2.current.scrollLeft, true), onClick: (e3) => Q2(Math.min(O2.current.scrollLeft, Y2 ?? Number.MAX_SAFE_INTEGER), e3.ctrlKey) }), [$2, Y2, B2, V2]), ue2 = ne(() => ({ style: { marginLeft: "6px", marginRight: "4px" }, disabled: Math.floor(B2 - V2) <= Math.ceil($2.left), orientation: H.Horizontal, onMouseUp: re2, onMouseLeave: re2, onMouseDown: () => ce2(O2.current.scrollLeft, false), onClick: (e3) => ee2(Math.max(O2.current.scrollLeft, Y2 ?? 0), e3.ctrlKey) }), [$2, Y2, B2, V2]), he2 = ne(() => j(K, { children: [Z("div", { style: { minWidth: "16px" } }), o2, u2?.(ge2)] }), [ge2, ue2, c2, g2, o2, u2]);
|
|
3261
|
+
return j("div", { style: { ...n2, display: "flex", alignItems: "stretch" }, className: Ae(_o, l2), ref: I2, children: [Z("div", { style: { borderTop: `solid ${y2} ${C2}px`, position: "absolute", width: "100%" } }), Z("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: he2 }), Z("div", { className: "Tabs", ref: P2, style: { flex: "1 1 100%", display: "flex", position: "relative", overflow: "hidden" }, children: Z("div", { style: { position: "relative", overflowY: "hidden", overflowX: "hidden", marginBottom: "3px" }, ref: O2, onScroll: (e3) => {
|
|
3259
3262
|
X2({ left: e3.target.scrollLeft, top: e3.target.scrollTop, width: e3.target.scrollWidth, height: e3.target.scrollHeight });
|
|
3260
3263
|
}, children: Z(Wo, { isDisabled: (e3) => f2 || w2, items: x2, strategy: Ve, modifiers: [Le], ref: L2, renderItem: N2, renderDivider: m2, onMove: M2, activationConstraint: { distance: 15 } }) }) }), Z("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: u2(ue2) })] });
|
|
3261
3264
|
}));
|
|
3262
3265
|
Ko.displayName = "TabStrip";
|
|
3263
|
-
const Xo = (e2) => j("svg", { ...e2, viewBox: "0 0 48 48", children: [Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), Yo = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), Z("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), Z("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), Z("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), Z("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), Z("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" })] }), Jo = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 832 1387 h -469 v -640 h 469 z" }), Z("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" }), Z("path", { className: "styled secondary_light", d: "M 1600 1131 h -469 v -811 h 469 z" }), Z("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" })] }), Qo = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 832 1515 h -469 v -1195 h 469 z" }), Z("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" }), Z("path", { className: "styled secondary_light", d: "M 1600 875 h -469 v -555 h 469 z" }), Z("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" })] }), en = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled info", d: "M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z" }), Z("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" })] }), tn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), on = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled info", d: "M 1877 299 h -1770 v -43 h 1770 z" }), Z("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" })] }), nn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), rn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), ln = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), an = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), sn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), dn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z" }), Z("path", { className: "styled info_light", d: "M 1813 277 v 299 h -1706 v -299 z" }), Z("path", { className: "styled info_dark", d: "M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z" }), Z("path", { className: "styled secondary_light", d: "M 917 1088 v 299 h -810 v -299 z" }), Z("path", { className: "styled secondary_dark", d: "M 896 1109 h -795 v -42 h 838 v 322 h -43 z" }), Z("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" })] }), cn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 704 832 v -469 h 640 v 469 z" }), Z("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" }), Z("path", { className: "styled secondary_light", d: "M 917 1600 v -469 h 811 v 469 z" }), Z("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" })] }), gn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 533 832 v -469 h 1195 v 469 z" }), Z("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" }), Z("path", { className: "styled secondary_light", d: "M 1173 1600 v -469 h 555 v 469 z" }), Z("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" })] }), un = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z" }), Z("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" }), Z("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" })] }), hn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z" }), Z("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" }), Z("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" }), Z("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), mn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1941 1941 h -1834 v -1834 h 1834 z" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z" }), Z("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" })] }), pn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), fn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), wn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), vn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), qn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), yn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), Z("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), Z("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), Z("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), Z("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), Z("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" })] }), Cn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), Z("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), Z("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), Z("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), Z("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), Z("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" })] }), bn = ce(null);
|
|
3266
|
+
const Xo = (e2) => j("svg", { ...e2, viewBox: "0 0 48 48", children: [Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), Yo = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), Z("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), Z("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), Z("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), Z("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), Z("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" })] }), Jo = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 832 1387 h -469 v -640 h 469 z" }), Z("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" }), Z("path", { className: "styled secondary_light", d: "M 1600 1131 h -469 v -811 h 469 z" }), Z("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" })] }), Qo = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 832 1515 h -469 v -1195 h 469 z" }), Z("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" }), Z("path", { className: "styled secondary_light", d: "M 1600 875 h -469 v -555 h 469 z" }), Z("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" })] }), en = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled info", d: "M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z" }), Z("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" })] }), tn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), on = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled info", d: "M 1877 299 h -1770 v -43 h 1770 z" }), Z("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" })] }), nn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), ln = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), rn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), an = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), sn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), dn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z" }), Z("path", { className: "styled info_light", d: "M 1813 277 v 299 h -1706 v -299 z" }), Z("path", { className: "styled info_dark", d: "M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z" }), Z("path", { className: "styled secondary_light", d: "M 917 1088 v 299 h -810 v -299 z" }), Z("path", { className: "styled secondary_dark", d: "M 896 1109 h -795 v -42 h 838 v 322 h -43 z" }), Z("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" })] }), cn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 704 832 v -469 h 640 v 469 z" }), Z("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" }), Z("path", { className: "styled secondary_light", d: "M 917 1600 v -469 h 811 v 469 z" }), Z("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" })] }), gn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 533 832 v -469 h 1195 v 469 z" }), Z("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" }), Z("path", { className: "styled secondary_light", d: "M 1173 1600 v -469 h 555 v 469 z" }), Z("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" })] }), un = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z" }), Z("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" }), Z("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" })] }), hn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z" }), Z("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" }), Z("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" }), Z("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), mn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1941 1941 h -1834 v -1834 h 1834 z" }), Z("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" }), Z("path", { className: "styled info_light", d: "M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z" }), Z("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" })] }), pn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), fn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), wn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), vn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" }), Z("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" })] }), qn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("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" }), Z("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" })] }), yn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), Z("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), Z("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), Z("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), Z("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), Z("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" })] }), Cn = (e2) => j("svg", { viewBox: "0,0,2048,2048", ...e2, children: [Z("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" }), Z("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), Z("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), Z("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), Z("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), Z("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), Z("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" })] }), bn = ce(null);
|
|
3264
3267
|
bn.displayName = "DocThemesContext";
|
|
3265
3268
|
const Sn = (e2) => {
|
|
3266
3269
|
const { themes: t2, children: o2 } = e2;
|
|
3267
3270
|
return Z(bn.Provider, { value: t2, children: o2 });
|
|
3268
3271
|
}, xn = () => {
|
|
3269
|
-
const e2 = ge(bn), [t2] =
|
|
3272
|
+
const e2 = ge(bn), [t2] = le(() => new y());
|
|
3270
3273
|
return ne(() => e2 || t2, [e2]);
|
|
3271
3274
|
}, kn = "_script-editor_iy654_5", Tn = { 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" }, Rn = te.lazy(() => import("@monaco-editor/react"));
|
|
3272
3275
|
let Mn, An, zn = ["define", "require"], Fn = false;
|
|
3273
|
-
let Dn = "@0.7.
|
|
3276
|
+
let Dn = "@0.7.12";
|
|
3274
3277
|
"@local" !== Dn && "@0.0.0" !== Dn || (Dn = "");
|
|
3275
|
-
const
|
|
3278
|
+
const En = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${Dn}/types/scripting.d.ts`, In = async (e2, t2, o2) => {
|
|
3276
3279
|
const n2 = e2.getModel();
|
|
3277
3280
|
if (!n2) return;
|
|
3278
|
-
const
|
|
3281
|
+
const l2 = await t2.languages.typescript.getTypeScriptWorker(), r2 = await l2(n2.uri), i2 = await r2.getNavigationTree(n2.uri.toString()), a2 = e2.getPosition();
|
|
3279
3282
|
let s2 = { ...a2 };
|
|
3280
3283
|
s2.lineNumber = 1, s2.column = 1;
|
|
3281
3284
|
let d2 = false;
|
|
@@ -3303,28 +3306,28 @@ const In = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${Dn}/types/scripting.d.ts`
|
|
|
3303
3306
|
function Nn(e2, t2) {
|
|
3304
3307
|
let o2 = null;
|
|
3305
3308
|
const n2 = e2.length;
|
|
3306
|
-
for (let
|
|
3307
|
-
const n3 = e2[
|
|
3309
|
+
for (let l2 = 0; !o2 && l2 < n2; l2++) {
|
|
3310
|
+
const n3 = e2[l2];
|
|
3308
3311
|
n3.getName() === t2.text && (o2 = n3);
|
|
3309
3312
|
}
|
|
3310
3313
|
return o2 ? o2.getContext() : "formula";
|
|
3311
3314
|
}
|
|
3312
|
-
function Hn(e2, t2, o2, n2,
|
|
3315
|
+
function Hn(e2, t2, o2, n2, l2 = []) {
|
|
3313
3316
|
if ("function" === n2.kind && "export" === n2.kindModifiers) {
|
|
3314
|
-
const t3 = n2.spans[0].start,
|
|
3315
|
-
|
|
3317
|
+
const t3 = n2.spans[0].start, r2 = e2.getPositionAt(t3);
|
|
3318
|
+
l2.push({ name: n2.text, type: Nn(o2, n2), lineNumber: r2.lineNumber });
|
|
3316
3319
|
}
|
|
3317
|
-
if (n2.childItems) for (const
|
|
3318
|
-
return
|
|
3320
|
+
if (n2.childItems) for (const r2 of n2.childItems) Hn(e2, t2, o2, r2, l2);
|
|
3321
|
+
return l2;
|
|
3319
3322
|
}
|
|
3320
3323
|
function Pn(e2, t2, o2 = "function", n2) {
|
|
3321
|
-
const
|
|
3322
|
-
for (let i2 = 0; i2 <
|
|
3323
|
-
const
|
|
3324
|
-
if (
|
|
3324
|
+
const l2 = e2.spans, r2 = l2.length;
|
|
3325
|
+
for (let i2 = 0; i2 < r2; i2++) {
|
|
3326
|
+
const r3 = l2[i2];
|
|
3327
|
+
if (r3.start <= t2 && t2 < r3.start + r3.length) {
|
|
3325
3328
|
if (e2.kind === o2 && (!n2 || e2.kindModifiers === n2)) return e2;
|
|
3326
|
-
for (const
|
|
3327
|
-
const e3 = Pn(
|
|
3329
|
+
for (const l3 of e2.childItems || []) {
|
|
3330
|
+
const e3 = Pn(l3, t2, o2, n2);
|
|
3328
3331
|
if (e3) return e3;
|
|
3329
3332
|
}
|
|
3330
3333
|
}
|
|
@@ -3334,8 +3337,8 @@ function Pn(e2, t2, o2 = "function", n2) {
|
|
|
3334
3337
|
function Vn(e2) {
|
|
3335
3338
|
return "comment" === e2.kind;
|
|
3336
3339
|
}
|
|
3337
|
-
const Ln = oe(
|
|
3338
|
-
const { className: o2, style: n2, commands:
|
|
3340
|
+
const Ln = oe(re((e2, t2) => {
|
|
3341
|
+
const { className: o2, style: n2, commands: l2, readOnly: r2 = false, darkMode: i2, loadingPanel: a2, autoFocus: s2 = true, frame: d2, onStatusChange: c2, ...g2 } = e2, u2 = ie(null), h2 = ie(false), m2 = ne(() => ({ contains(e3) {
|
|
3339
3342
|
if (!u2.current) return;
|
|
3340
3343
|
const t3 = u2.current.editor;
|
|
3341
3344
|
return t3 && t3.getDomNode()?.contains(e3);
|
|
@@ -3347,8 +3350,8 @@ const Ln = oe(le((e2, t2) => {
|
|
|
3347
3350
|
})], []), f2 = ne(() => {
|
|
3348
3351
|
let e3 = null;
|
|
3349
3352
|
const t3 = () => m2;
|
|
3350
|
-
return e3 =
|
|
3351
|
-
}, [
|
|
3353
|
+
return e3 = l2 ? l2.createChildGroup(t3, "scriptEditor", false) : new M(t3, "scriptEditor"), e3.addCommands(p2, true), e3;
|
|
3354
|
+
}, [l2, p2]), w2 = l2.getGroup("workbook"), v2 = N(w2, ["executeSelectedScript", "saveScripts"]), q2 = v2[0], y2 = v2[1], C2 = q2?.context(), [x2, k2] = le({ message: "Loading", cursor: "", dirty: false }), [R2, A2] = le({ loading: false, compiling: false, errors: [], warnings: [] }), z2 = S((e3) => {
|
|
3352
3355
|
k2((t3) => {
|
|
3353
3356
|
const o3 = { ...t3, ...e3 };
|
|
3354
3357
|
return X.deepEqual(o3, t3) ? t3 : (y2.update({ disabled: !o3.dirty }).updateCallback(async () => {
|
|
@@ -3366,8 +3369,8 @@ const Ln = oe(le((e2, t2) => {
|
|
|
3366
3369
|
if (x2.dirty) {
|
|
3367
3370
|
const o3 = e3.getValue();
|
|
3368
3371
|
await C2?.saveSource(o3), t3 = C2?.getScripts().getModules().getByName("scripts");
|
|
3369
|
-
const n3 = t3?.getSource(),
|
|
3370
|
-
z2({ dirty:
|
|
3372
|
+
const n3 = t3?.getSource(), l3 = e3.getValue(), r3 = (n3?.length ?? 0) !== o3.length || n3 !== l3;
|
|
3373
|
+
z2({ dirty: r3 });
|
|
3371
3374
|
} else t3 = C2?.getScripts().getModules().getByName("scripts");
|
|
3372
3375
|
return t3;
|
|
3373
3376
|
}, [x2]);
|
|
@@ -3382,14 +3385,14 @@ const Ln = oe(le((e2, t2) => {
|
|
|
3382
3385
|
}, [C2]);
|
|
3383
3386
|
const D2 = S((e3) => {
|
|
3384
3387
|
q2?.execute(e3);
|
|
3385
|
-
}, [q2]),
|
|
3388
|
+
}, [q2]), E2 = ie(""), [I2, H2] = le(false), P2 = S(async () => {
|
|
3386
3389
|
if (!u2.current) return null;
|
|
3387
3390
|
const e3 = u2.current, t3 = e3.editor;
|
|
3388
3391
|
if (!t3) return null;
|
|
3389
3392
|
const o3 = e3.monaco, n3 = await (async (e4, t4, o4 = "export") => {
|
|
3390
3393
|
const n4 = e4.getModel();
|
|
3391
3394
|
if (!n4) return null;
|
|
3392
|
-
const
|
|
3395
|
+
const l3 = await t4.languages.typescript.getTypeScriptWorker(), r3 = await l3(n4.uri), i3 = await r3.getNavigationTree(n4.uri.toString());
|
|
3393
3396
|
let a3 = null, s3 = e4.getSelection();
|
|
3394
3397
|
if (!s3) return null;
|
|
3395
3398
|
const d3 = s3.startLineNumber === s3.endLineNumber && s3.startColumn === s3.endColumn ? n4.getLineCount() : Math.min(s3.endLineNumber, n4.getLineCount());
|
|
@@ -3409,13 +3412,13 @@ const Ln = oe(le((e2, t2) => {
|
|
|
3409
3412
|
!(async function(e4, t4) {
|
|
3410
3413
|
const o4 = [];
|
|
3411
3414
|
for (let n4 = 1; n4 < e4.getLineCount() + 1; n4++) {
|
|
3412
|
-
const
|
|
3413
|
-
-1 !==
|
|
3415
|
+
const l3 = { startLineNumber: n4, startColumn: 1, endLineNumber: n4, endColumn: e4.getLineLength(n4) + 1 }, r3 = e4.getValueInRange(l3).indexOf("modelt");
|
|
3416
|
+
-1 !== r3 && o4.push({ message: "found 'modelt'", resource: "https://www.sheetxl.com", severity: t4.MarkerSeverity.Hint, startLineNumber: l3.startLineNumber, startColumn: r3 + 1, endLineNumber: l3.startLineNumber, endColumn: r3 + 5 });
|
|
3414
3417
|
}
|
|
3415
3418
|
t4.editor.setModelMarkers(e4, "owner", o4);
|
|
3416
3419
|
})(e3, t3);
|
|
3417
3420
|
!(async function(e4, t4, o4, n4) {
|
|
3418
|
-
const
|
|
3421
|
+
const l3 = await t4.languages.typescript.getTypeScriptWorker(), r3 = await l3(e4.uri), i3 = await r3.getNavigationTree(e4.uri.toString()), a3 = Hn(e4, t4, n4, i3).map((e5) => {
|
|
3419
3422
|
let o5 = null, n5 = null;
|
|
3420
3423
|
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 } };
|
|
3421
3424
|
});
|
|
@@ -3436,7 +3439,7 @@ const Ln = oe(le((e2, t2) => {
|
|
|
3436
3439
|
ae(() => {
|
|
3437
3440
|
if (!C2) return;
|
|
3438
3441
|
const e3 = { insertSnippet: (e4) => {
|
|
3439
|
-
u2.current?.editor &&
|
|
3442
|
+
u2.current?.editor && In(u2.current.editor, u2.current.monaco, e4);
|
|
3440
3443
|
}, close: () => $2() };
|
|
3441
3444
|
C2.setEditor(e3), C2.setSelectedFunction(P2());
|
|
3442
3445
|
const t3 = C2.addContainerListener({ onBeforeSave: async () => {
|
|
@@ -3457,7 +3460,7 @@ const Ln = oe(le((e2, t2) => {
|
|
|
3457
3460
|
const t3 = e3.debounceTimer;
|
|
3458
3461
|
void 0 !== t3 && clearTimeout(t3), O2.current = null;
|
|
3459
3462
|
}
|
|
3460
|
-
}, [
|
|
3463
|
+
}, [I2]);
|
|
3461
3464
|
const W2 = S((e3) => {
|
|
3462
3465
|
const t3 = u2.current?.editor;
|
|
3463
3466
|
return !!t3 && (t3.focus(e3), true);
|
|
@@ -3510,7 +3513,7 @@ const Ln = oe(le((e2, t2) => {
|
|
|
3510
3513
|
F2();
|
|
3511
3514
|
} }), e3.onMouseDown(async (e4) => {
|
|
3512
3515
|
if (e4.target.type === t3.editor.MouseTargetType.GUTTER_GLYPH_MARGIN) {
|
|
3513
|
-
const o4 = e4.target.position.lineNumber,
|
|
3516
|
+
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 = Hn(n3, t3, a3, i3).find((e5) => e5.lineNumber === o4);
|
|
3514
3517
|
if (s3) {
|
|
3515
3518
|
const t4 = e4.event.browserEvent.button;
|
|
3516
3519
|
0 === t4 ? "macro" === s3.type || "autoRun" === s3.type ? D2({ functionName: s3.name }) : "formula" === s3.type && C2?.quickInsertFunction?.(s3.name) : 2 === t4 && (console.log("Context menu for function:", s3.name), e4.event.browserEvent.preventDefault());
|
|
@@ -3524,22 +3527,22 @@ const Ln = oe(le((e2, t2) => {
|
|
|
3524
3527
|
const n3 = e3.getModel();
|
|
3525
3528
|
!(function(e4, t4) {
|
|
3526
3529
|
t4.languages.registerInlayHintsProvider("typescript", { provideInlayHints(e5, o4, n4) {
|
|
3527
|
-
const
|
|
3530
|
+
const l3 = [];
|
|
3528
3531
|
for (let o5 = 1; o5 < e5.getLineCount() + 1; o5++) {
|
|
3529
|
-
const n5 = { startLineNumber: o5, startColumn: 1, endLineNumber: o5, endColumn: e5.getLineLength(o5) + 1 },
|
|
3530
|
-
-1 !== i3 &&
|
|
3532
|
+
const n5 = { startLineNumber: o5, startColumn: 1, endLineNumber: o5, endColumn: e5.getLineLength(o5) + 1 }, r3 = "hint", i3 = e5.getValueInRange(n5).indexOf("hint");
|
|
3533
|
+
-1 !== i3 && l3.push({ kind: t4.languages.InlayHintKind.Type, position: { lineNumber: n5.startLineNumber, column: i3 + r3.length + 1 }, label: "[hint]" });
|
|
3531
3534
|
}
|
|
3532
|
-
return { hints:
|
|
3535
|
+
return { hints: l3, dispose: () => {
|
|
3533
3536
|
} };
|
|
3534
3537
|
} });
|
|
3535
3538
|
})(0, t3), n3.onDidChangeContent((t4) => {
|
|
3536
|
-
const o4 = C2?.getScripts().getModules().getByName("scripts"), n4 = o4?.getSource(),
|
|
3537
|
-
z2({ dirty:
|
|
3539
|
+
const o4 = C2?.getScripts().getModules().getByName("scripts"), n4 = o4?.getSource(), l3 = e3.getValue(), r3 = (n4?.length ?? 0) !== l3.length || n4 !== l3;
|
|
3540
|
+
z2({ dirty: r3 });
|
|
3538
3541
|
}), e3.onDidChangeCursorPosition((e4) => {
|
|
3539
3542
|
B2();
|
|
3540
3543
|
});
|
|
3541
|
-
}, [C2]), G2 = ne(() =>
|
|
3542
|
-
if (!
|
|
3544
|
+
}, [C2]), G2 = ne(() => I2 ? null : a2 || Z("div", { style: { position: "absolute", width: "100%", height: "100%" }, children: "Loading..." }), [I2, a2]), K2 = ne(() => {
|
|
3545
|
+
if (!I2) {
|
|
3543
3546
|
if (!Mn) {
|
|
3544
3547
|
Mn = {};
|
|
3545
3548
|
const e4 = zn.length;
|
|
@@ -3557,7 +3560,7 @@ const Ln = oe(le((e2, t2) => {
|
|
|
3557
3560
|
}
|
|
3558
3561
|
}
|
|
3559
3562
|
const e3 = C2?.getScripts().getModules().getByName("scripts")?.getSource() ?? "";
|
|
3560
|
-
return j("div", { style: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: [Z(he, { children: Z(Rn, { theme: i2 ? "extended-dark" : "extended", options: { ...Tn, fixedOverflowWidgets: true, readOnly:
|
|
3563
|
+
return j("div", { style: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: [Z(he, { children: Z(Rn, { theme: i2 ? "extended-dark" : "extended", options: { ...Tn, fixedOverflowWidgets: true, readOnly: r2 }, language: "typescript", value: e3, onValidate: (e4) => {
|
|
3561
3564
|
let t3 = false;
|
|
3562
3565
|
const o3 = e4 ? e4.length : 0;
|
|
3563
3566
|
for (let n3 = 0; !t3 && n3 < o3; n3++) 8 === e4[n3].severity && (t3 = true);
|
|
@@ -3567,22 +3570,22 @@ const Ln = oe(le((e2, t2) => {
|
|
|
3567
3570
|
let t3 = false, o3 = false;
|
|
3568
3571
|
try {
|
|
3569
3572
|
const n3 = await (async () => {
|
|
3570
|
-
const e5 = await fetch(
|
|
3573
|
+
const e5 = await fetch(En);
|
|
3571
3574
|
return await e5.text();
|
|
3572
|
-
})(),
|
|
3573
|
-
let
|
|
3574
|
-
|
|
3575
|
+
})(), l3 = e4.Uri.parse('inmemory://model/"sheetxl-models".d.ts');
|
|
3576
|
+
let r3 = e4.editor.getModel(l3);
|
|
3577
|
+
r3 ? o3 = true : r3 = e4.editor.createModel(n3, "typescript", l3), e4.editor.setModelMarkers(r3, "default", []), t3 = true;
|
|
3575
3578
|
} catch (e5) {
|
|
3576
3579
|
console.warn("cant load types", e5);
|
|
3577
3580
|
}
|
|
3578
3581
|
if (e4.languages.registerLinkProvider("*", { provideLinks: (t4, o4) => {
|
|
3579
|
-
const n3 = [],
|
|
3582
|
+
const n3 = [], l3 = { links: n3 }, r3 = t4.getLinesContent(), i3 = r3.length;
|
|
3580
3583
|
for (let o5 = 1; o5 <= i3; o5++) {
|
|
3581
|
-
const
|
|
3582
|
-
for (let
|
|
3583
|
-
const a4 = i4[0]?.[
|
|
3584
|
+
const l4 = r3[o5 - 1], i4 = e4.editor.tokenize(l4, "typescript"), a3 = i4[0].length;
|
|
3585
|
+
for (let r4 = 0; r4 < a3; r4++) {
|
|
3586
|
+
const a4 = i4[0]?.[r4];
|
|
3584
3587
|
if (a4 && a4.type.startsWith("string")) {
|
|
3585
|
-
let s3 = a4.offset, d3 = i4[0]?.[
|
|
3588
|
+
let s3 = a4.offset, d3 = i4[0]?.[r4 + 1]?.offset ?? l4.length, c3 = new e4.Range(o5, s3 + 1, o5, d3 + 1), g3 = t4.getValueInRange(c3);
|
|
3586
3589
|
const u3 = g3[0];
|
|
3587
3590
|
"`" !== u3 && "'" !== u3 && '"' !== u3 || (s3++, g3 = g3.substring(1));
|
|
3588
3591
|
const h3 = g3[g3.length - 1];
|
|
@@ -3595,7 +3598,7 @@ const Ln = oe(le((e2, t2) => {
|
|
|
3595
3598
|
}
|
|
3596
3599
|
}
|
|
3597
3600
|
}
|
|
3598
|
-
return
|
|
3601
|
+
return l3;
|
|
3599
3602
|
} }), e4.editor.registerLinkOpener({ open(e5) {
|
|
3600
3603
|
if (e5?.path?.startsWith("/range/")) {
|
|
3601
3604
|
try {
|
|
@@ -3610,7 +3613,7 @@ const Ln = oe(le((e2, t2) => {
|
|
|
3610
3613
|
const t4 = e4.languages.typescript.typescriptDefaults.getCompilerOptions();
|
|
3611
3614
|
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 });
|
|
3612
3615
|
}
|
|
3613
|
-
if (
|
|
3616
|
+
if (E2.current && (await In(u2.current.editor, u2.current.monaco, E2.current), E2.current = null), h2.current && requestAnimationFrame(async () => {
|
|
3614
3617
|
h2.current && e4.editor.focus();
|
|
3615
3618
|
}), !An) {
|
|
3616
3619
|
An = {};
|
|
@@ -3622,7 +3625,7 @@ const Ln = oe(le((e2, t2) => {
|
|
|
3622
3625
|
}
|
|
3623
3626
|
})();
|
|
3624
3627
|
}, onMount: _2 }) }), G2] });
|
|
3625
|
-
}, [C2, f2,
|
|
3628
|
+
}, [C2, f2, r2, G2, i2]), Y2 = b(t2, () => ({ isScriptEditorElement: () => true, focus: (e3) => {
|
|
3626
3629
|
W2(e3);
|
|
3627
3630
|
}, close: () => $2(), getEditor: () => C2?.getEditor() }), [C2]);
|
|
3628
3631
|
return ae(() => (s2 && requestAnimationFrame(() => {
|
|
@@ -3645,13 +3648,13 @@ export {
|
|
|
3645
3648
|
Yo as ChartColumnIcon,
|
|
3646
3649
|
Jo as ChartColumnStackedIcon,
|
|
3647
3650
|
Qo as ChartColumnStackedPercentIcon,
|
|
3648
|
-
|
|
3651
|
+
Eo as ChartEditor,
|
|
3649
3652
|
en as ChartLineIcon,
|
|
3650
3653
|
nn as ChartLineMarkersIcon,
|
|
3651
3654
|
tn as ChartLineStackedIcon,
|
|
3652
|
-
|
|
3655
|
+
ln as ChartLineStackedMarkersIcon,
|
|
3653
3656
|
on as ChartLineStackedPercentIcon,
|
|
3654
|
-
|
|
3657
|
+
rn as ChartLineStackedPercentMarkersIcon,
|
|
3655
3658
|
sn as ChartPieDoughnutIcon,
|
|
3656
3659
|
an as ChartPieIcon,
|
|
3657
3660
|
qn as ChartScatterLinesIcon,
|
|
@@ -3687,7 +3690,7 @@ export {
|
|
|
3687
3690
|
Ko as TabStrip,
|
|
3688
3691
|
Ht as TaskPaneArea,
|
|
3689
3692
|
Rt as TaskPaneProvider,
|
|
3690
|
-
|
|
3693
|
+
It as TaskPaneStrip,
|
|
3691
3694
|
Ft as TaskPaneTitle,
|
|
3692
3695
|
at as createCellEditStateFromCell,
|
|
3693
3696
|
ut as useBordersOverlay,
|