@graphysdk/react-renderer 2.0.0-beta.1787255264612 → 2.0.0-beta.1787305269287
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/dist/dev.utils-CRuabbIv.cjs +2 -0
- package/dist/{dev.utils-Bvss_b2-.js → dev.utils-mjCzrz3g.js} +1 -1
- package/dist/editable.cjs +1 -1
- package/dist/editable.mjs +800 -800
- package/dist/graph-config.cjs +1 -1
- package/dist/graph-config.mjs +1 -1
- package/dist/{history-chords-tkqLt7Jt.cjs → history-chords-DJ3EF6Ke.cjs} +1 -1
- package/dist/{history-chords-DGf_i7B7.js → history-chords-fIM-zVJc.js} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
- package/dist/dev.css +0 -1
- package/dist/dev.utils-DiNE92pC.cjs +0 -2
package/dist/editable.mjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { A as Xa, B as Fn, C as A, Ct as ja, E as Za, Et as G, F as wt, G as Ya, H as Hn, I as Bn, J as Ja, K as Qa, L as Tt, M as U, N as H, Ot as B, P as At, R as Ze, S as eo, St as to, U as no, V as ro, Y as Q, Z as ve, _ as ao, at as oo, b as io, c as lo, d as so, dt as Y, et as co, f as Vn, g as be, h as Gn, i as uo, it as ho, j as X, k as po, l as mo, m as $n, n as ie, nt as go, o as fo, ot as vo, p as bo, q as Kt, r as $, st as le, t as Co, tt as k, u as yo, ut as kt, v as So, wt as xo, x as wo, xt as To, y as Un, z as Ao } from "./history-chords-
|
|
2
|
-
import { m as se, n as Wn, p as Kn } from "./dev.utils-
|
|
3
|
-
import { ARROW_DEFAULTS as ko, AddAnnotationCommand as he, AddHighlightCommand as Lo, BORDER_RADIUS_TOKENS as qt, COMBO_TYPES as Xt, CONSTANT_VARIABLES as Po, DEFAULT_BAR_BORDER_RADIUS as Io, DEFAULT_POINT_SIZE as Eo, DEFAULT_STROKE_WIDTH as Mo, DIFFERENCE_ARROW_DEFAULTS as qn, MAX_BAR_WIDTH as No, MIN_BAR_WIDTH as Oo, MoveAnnotationCommand as Do, RESTING_HOVER_STATE as Xn, RemoveAnnotationCommand as Ae, RemoveHighlightCommand as Ro, SHAPE_DEFAULTS as zo, SetAppearanceTextScaleCommand as _o, SetAxisLabelCommand as Fo, SetAxisPositionCommand as Ho, SetAxisTickModeCommand as Bo, SetAxisTicksVisibilityCommand as Vo, SetAxisVisibilityCommand as Go, SetBarBorderRadiusCommand as $o, SetBarWidthCommand as Uo, SetChartTypeCommand as jn, SetContentCaptionCommand as Zn, SetContentSourceCommand as Wo, SetContentSubtitleCommand as Yn, SetContentTitleCommand as Jn, SetDataLabelsFormatCommand as Ko, SetGridLineStyleCommand as qo, SetGridLineWidthCommand as Xo, SetGridVisibilityCommand as jo, SetHeadlineCompareWithCommand as Zo, SetHeadlinePositionCommand as Yo, SetHeadlineShowCommand as jt, SetHeadlineSizeCommand as Jo, SetHighlightDimStyleCommand as Qo, SetLayerYScaleTypeCommand as ei, SetLegendAlignCommand as ti, SetLegendDisplayCommand as ni, SetLegendPositionCommand as ri, SetLineInterpolationCommand as ai, SetLineMissingValuesCommand as oi, SetLineWidthCommand as Zt, SetMappingCommand as ii, SetNumberFormatAbbreviationCommand as li, SetNumberFormatDecimalsCommand as Yt, SetPointSizeCommand as si, SetPolarInnerRadiusCommand as ci, SetPolarStartAngleCommand as di, SetRuleLabelCommand as ui, SetRuleValueCommand as hi, SetScaleDomainCommand as ze, SetScaleReverseCommand as pi, SetScaleTransformCommand as mi, SetScaleZeroCommand as Jt, SetStatLineCommand as gi, SetStyleRuleCommand as fi, TEXT_ANNOTATION_DEFAULTS as vi, ToggleCategoryLabelsCommand as bi, ToggleContentVisibilityCommand as Ye, ToggleDataLabelsCommand as Ci, ToggleGoalLineCommand as yi, ToggleLineFillCommand as Si, ToggleLinePointsVisibilityCommand as xi, ToggleStackTotalsCommand as wi, UpdateAnnotationCommand as ee, alignUnitFractions as Ti, areAnchorsEqual as Qn, areEndpointsComparable as Ai, buildEditMenuTriggerRegion as ki, buildLayerStyleAddress as Li, buildObservationAnchor as Pi, buildObservationPredicate as Ii, canAnchorDirectLabels as Ei, canBecomeCombo as Mi, canBecomeHeatmap as Ni, canPlaceDataLabels as Oi, clampAnnotationTranslation as Di, computeArrow as er, createObservationAnchorParser as Ri, createStyleResolver as Lt, createValueFormatter as zi, extractConstantValue as _i, extractVariableName as Fi, filterLayersByGeoms as ut, findAnnotation as Hi, findAverageLineLayer as Bi, findGoalLineLayer as Vi, findHighlightsAtObservation as Gi, findKindStyleDeclarations as $i, findLayerByGeom as tr, findObservationAttachment as Ui, findStyleRule as Wi, findTrendLineLayer as Ki, formatDifferenceLabel as qi, getColor as Xi, hasMultipleGroups as ji, inferDefaultDifferenceArrowEndpoints as Zi, inferDifferenceArrowEndpoints as Yi, isComboChartType as fe, isCompanionLayer as nr, isObservationAttachmentKind as Ji, isPointWithinEditMenuTrigger as rr, isSafeUrl as Qi, projectAnchorToPanel as el, readChartType as ar, readComboLineLayerId as tl, readHighlightDimStyle as nl, readMappableAesthetics as rl, readMappedVariable as al,
|
|
1
|
+
import { A as Xa, B as Fn, C as A, Ct as ja, E as Za, Et as G, F as wt, G as Ya, H as Hn, I as Bn, J as Ja, K as Qa, L as Tt, M as U, N as H, Ot as B, P as At, R as Ze, S as eo, St as to, U as no, V as ro, Y as Q, Z as ve, _ as ao, at as oo, b as io, c as lo, d as so, dt as Y, et as co, f as Vn, g as be, h as Gn, i as uo, it as ho, j as X, k as po, l as mo, m as $n, n as ie, nt as go, o as fo, ot as vo, p as bo, q as Kt, r as $, st as le, t as Co, tt as k, u as yo, ut as kt, v as So, wt as xo, x as wo, xt as To, y as Un, z as Ao } from "./history-chords-fIM-zVJc.js";
|
|
2
|
+
import { m as se, n as Wn, p as Kn } from "./dev.utils-mjCzrz3g.js";
|
|
3
|
+
import { ARROW_DEFAULTS as ko, AddAnnotationCommand as he, AddHighlightCommand as Lo, BORDER_RADIUS_TOKENS as qt, COMBO_TYPES as Xt, CONSTANT_VARIABLES as Po, DEFAULT_BAR_BORDER_RADIUS as Io, DEFAULT_POINT_SIZE as Eo, DEFAULT_STROKE_WIDTH as Mo, DIFFERENCE_ARROW_DEFAULTS as qn, MAX_BAR_WIDTH as No, MIN_BAR_WIDTH as Oo, MoveAnnotationCommand as Do, RESTING_HOVER_STATE as Xn, RemoveAnnotationCommand as Ae, RemoveHighlightCommand as Ro, SHAPE_DEFAULTS as zo, SetAppearanceTextScaleCommand as _o, SetAxisLabelCommand as Fo, SetAxisPositionCommand as Ho, SetAxisTickModeCommand as Bo, SetAxisTicksVisibilityCommand as Vo, SetAxisVisibilityCommand as Go, SetBarBorderRadiusCommand as $o, SetBarWidthCommand as Uo, SetChartTypeCommand as jn, SetContentCaptionCommand as Zn, SetContentSourceCommand as Wo, SetContentSubtitleCommand as Yn, SetContentTitleCommand as Jn, SetDataLabelsFormatCommand as Ko, SetGridLineStyleCommand as qo, SetGridLineWidthCommand as Xo, SetGridVisibilityCommand as jo, SetHeadlineCompareWithCommand as Zo, SetHeadlinePositionCommand as Yo, SetHeadlineShowCommand as jt, SetHeadlineSizeCommand as Jo, SetHighlightDimStyleCommand as Qo, SetLayerYScaleTypeCommand as ei, SetLegendAlignCommand as ti, SetLegendDisplayCommand as ni, SetLegendPositionCommand as ri, SetLineInterpolationCommand as ai, SetLineMissingValuesCommand as oi, SetLineWidthCommand as Zt, SetMappingCommand as ii, SetNumberFormatAbbreviationCommand as li, SetNumberFormatDecimalsCommand as Yt, SetPointSizeCommand as si, SetPolarInnerRadiusCommand as ci, SetPolarStartAngleCommand as di, SetRuleLabelCommand as ui, SetRuleValueCommand as hi, SetScaleDomainCommand as ze, SetScaleReverseCommand as pi, SetScaleTransformCommand as mi, SetScaleZeroCommand as Jt, SetStatLineCommand as gi, SetStyleRuleCommand as fi, TEXT_ANNOTATION_DEFAULTS as vi, ToggleCategoryLabelsCommand as bi, ToggleContentVisibilityCommand as Ye, ToggleDataLabelsCommand as Ci, ToggleGoalLineCommand as yi, ToggleLineFillCommand as Si, ToggleLinePointsVisibilityCommand as xi, ToggleStackTotalsCommand as wi, UpdateAnnotationCommand as ee, alignUnitFractions as Ti, areAnchorsEqual as Qn, areEndpointsComparable as Ai, buildEditMenuTriggerRegion as ki, buildLayerStyleAddress as Li, buildObservationAnchor as Pi, buildObservationPredicate as Ii, canAnchorDirectLabels as Ei, canBecomeCombo as Mi, canBecomeHeatmap as Ni, canPlaceDataLabels as Oi, clampAnnotationTranslation as Di, computeArrow as er, createObservationAnchorParser as Ri, createStyleResolver as Lt, createValueFormatter as zi, extractConstantValue as _i, extractVariableName as Fi, filterLayersByGeoms as ut, findAnnotation as Hi, findAverageLineLayer as Bi, findGoalLineLayer as Vi, findHighlightsAtObservation as Gi, findKindStyleDeclarations as $i, findLayerByGeom as tr, findObservationAttachment as Ui, findStyleRule as Wi, findTrendLineLayer as Ki, formatDifferenceLabel as qi, getColor as Xi, hasMultipleGroups as ji, inferDefaultDifferenceArrowEndpoints as Zi, inferDifferenceArrowEndpoints as Yi, isComboChartType as fe, isCompanionLayer as nr, isObservationAttachmentKind as Ji, isPointWithinEditMenuTrigger as rr, isSafeUrl as Qi, projectAnchorToPanel as el, readChartType as ar, readComboLineLayerId as tl, readHighlightDimStyle as nl, readMappableAesthetics as rl, readMappedVariable as al, resolveBarBandFraction as ol, resolveComparisonBasis as il, resolveGridLineStyle as ll, resolveObservationPoint as or, stepDifferenceArrowEndpoint as sl, toPanelCursor as Pt } from "@graphysdk/viz-engine";
|
|
4
4
|
import { createContext as Me, useCallback as oe, useContext as ke, useEffect as M, useId as Te, useMemo as O, useRef as te, useState as J } from "react";
|
|
5
5
|
import { Fragment as j, jsx as n, jsxs as m } from "react/jsx-runtime";
|
|
6
6
|
import { useShallow as Le } from "zustand/react/shallow";
|
|
7
7
|
import { createPortal as ir } from "react-dom";
|
|
8
8
|
import ce from "clsx";
|
|
9
|
-
import { autoUpdate as
|
|
9
|
+
import { autoUpdate as cl, flip as dl, offset as ul, shift as hl, useFloating as pl } from "@floating-ui/react-dom";
|
|
10
10
|
import { assignInlineVars as lr } from "@vanilla-extract/dynamic";
|
|
11
11
|
import { Extension as sr } from "@tiptap/core";
|
|
12
|
-
import { Bold as
|
|
12
|
+
import { Bold as ml } from "@tiptap/extension-bold";
|
|
13
13
|
import { Document as Ve } from "@tiptap/extension-document";
|
|
14
|
-
import { HardBreak as
|
|
15
|
-
import { Heading as
|
|
16
|
-
import { Italic as
|
|
17
|
-
import { Link as
|
|
18
|
-
import { Text as
|
|
19
|
-
import { TextAlign as
|
|
20
|
-
import { Color as
|
|
21
|
-
import { Underline as
|
|
22
|
-
import { Placeholder as It, UndoRedo as
|
|
14
|
+
import { HardBreak as gl } from "@tiptap/extension-hard-break";
|
|
15
|
+
import { Heading as fl } from "@tiptap/extension-heading";
|
|
16
|
+
import { Italic as vl } from "@tiptap/extension-italic";
|
|
17
|
+
import { Link as bl } from "@tiptap/extension-link";
|
|
18
|
+
import { Text as Cl } from "@tiptap/extension-text";
|
|
19
|
+
import { TextAlign as yl } from "@tiptap/extension-text-align";
|
|
20
|
+
import { Color as Sl, FontFamily as cr, TextStyle as xl } from "@tiptap/extension-text-style";
|
|
21
|
+
import { Underline as wl } from "@tiptap/extension-underline";
|
|
22
|
+
import { Placeholder as It, UndoRedo as Tl } from "@tiptap/extensions";
|
|
23
23
|
import { Paragraph as dr } from "@tiptap/extension-paragraph";
|
|
24
|
-
import { EditorContent as ur, useEditor as
|
|
24
|
+
import { EditorContent as ur, useEditor as Al, useEditorState as kl } from "@tiptap/react";
|
|
25
25
|
import { Toolbar as de } from "@base-ui/react/toolbar";
|
|
26
26
|
import { Tooltip as xe } from "@base-ui/react/tooltip";
|
|
27
27
|
import { Popover as Z } from "@base-ui/react/popover";
|
|
28
|
-
import { HexColorInput as
|
|
28
|
+
import { HexColorInput as Ll, HexColorPicker as Pl } from "react-colorful";
|
|
29
29
|
import { Slider as ae } from "@base-ui/react/slider";
|
|
30
30
|
import { Menu as D } from "@base-ui/react/menu";
|
|
31
|
-
import { Toggle as
|
|
31
|
+
import { Toggle as Il } from "@base-ui/react/toggle";
|
|
32
32
|
import { Menu as pe } from "@base-ui/react";
|
|
33
33
|
import Ge from "lodash-es/clamp";
|
|
34
34
|
import { Accordion as Ie } from "@base-ui/react/accordion";
|
|
@@ -37,8 +37,8 @@ import { Radio as hr } from "@base-ui/react/radio";
|
|
|
37
37
|
import { RadioGroup as pr } from "@base-ui/react/radio-group";
|
|
38
38
|
import { Select as re } from "@base-ui/react/select";
|
|
39
39
|
import { Switch as en } from "@base-ui/react/switch";
|
|
40
|
-
import { Input as
|
|
41
|
-
import './editable.css';var
|
|
40
|
+
import { Input as El } from "@base-ui/react/input";
|
|
41
|
+
import './editable.css';var Ml = {
|
|
42
42
|
save: "حفظ",
|
|
43
43
|
cancel: "إلغاء",
|
|
44
44
|
confirm: "تأكيد",
|
|
@@ -49,7 +49,7 @@ import './editable.css';var El = {
|
|
|
49
49
|
millions: "مليون",
|
|
50
50
|
billions: "مليار"
|
|
51
51
|
}
|
|
52
|
-
},
|
|
52
|
+
}, Nl = {
|
|
53
53
|
title: "محرر Graphy",
|
|
54
54
|
description: "قم بتحرير المحتوى الخاص بك هنا",
|
|
55
55
|
graphTypes: {
|
|
@@ -561,7 +561,7 @@ import './editable.css';var El = {
|
|
|
561
561
|
light: "فاتح",
|
|
562
562
|
dark: "داكن"
|
|
563
563
|
} }
|
|
564
|
-
},
|
|
564
|
+
}, Ol = {
|
|
565
565
|
titleEditor: {
|
|
566
566
|
titlePlaceholder: "بدون عنوان",
|
|
567
567
|
subtitlePlaceholder: "إضافة عنوان فرعي"
|
|
@@ -800,11 +800,11 @@ import './editable.css';var El = {
|
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
|
-
}, Ol = {
|
|
804
|
-
common: El,
|
|
805
|
-
editor: Ml,
|
|
806
|
-
graph: Nl
|
|
807
803
|
}, Dl = {
|
|
804
|
+
common: Ml,
|
|
805
|
+
editor: Nl,
|
|
806
|
+
graph: Ol
|
|
807
|
+
}, Rl = {
|
|
808
808
|
save: "Save",
|
|
809
809
|
cancel: "Cancel",
|
|
810
810
|
confirm: "Confirm",
|
|
@@ -815,7 +815,7 @@ import './editable.css';var El = {
|
|
|
815
815
|
millions: "m",
|
|
816
816
|
billions: "b"
|
|
817
817
|
}
|
|
818
|
-
},
|
|
818
|
+
}, zl = {
|
|
819
819
|
title: "Graphy Editor",
|
|
820
820
|
description: "Edit your content here",
|
|
821
821
|
graphTypes: {
|
|
@@ -1326,7 +1326,7 @@ import './editable.css';var El = {
|
|
|
1326
1326
|
light: "Light",
|
|
1327
1327
|
dark: "Dark"
|
|
1328
1328
|
} }
|
|
1329
|
-
},
|
|
1329
|
+
}, _l = {
|
|
1330
1330
|
titleEditor: {
|
|
1331
1331
|
titlePlaceholder: "Untitled",
|
|
1332
1332
|
subtitlePlaceholder: "Add a subtitle"
|
|
@@ -1565,17 +1565,17 @@ import './editable.css';var El = {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
|
-
}, _l = {
|
|
1569
|
-
common: Dl,
|
|
1570
|
-
editor: Rl,
|
|
1571
|
-
graph: zl
|
|
1572
1568
|
}, Fl = {
|
|
1569
|
+
common: Rl,
|
|
1570
|
+
editor: zl,
|
|
1571
|
+
graph: _l
|
|
1572
|
+
}, Hl = {
|
|
1573
1573
|
colorPanel: {
|
|
1574
1574
|
backgroundSection: { grey: "Gray" },
|
|
1575
1575
|
borderType: { grey: "Gray" }
|
|
1576
1576
|
},
|
|
1577
1577
|
highlighting: { highlightStyle: { grey: "Gray" } }
|
|
1578
|
-
},
|
|
1578
|
+
}, Bl = { editor: Hl }, Vl = {
|
|
1579
1579
|
save: "Guardar",
|
|
1580
1580
|
cancel: "Cancelar",
|
|
1581
1581
|
confirm: "Confirmar",
|
|
@@ -1586,7 +1586,7 @@ import './editable.css';var El = {
|
|
|
1586
1586
|
millions: "M",
|
|
1587
1587
|
billions: "MM"
|
|
1588
1588
|
}
|
|
1589
|
-
},
|
|
1589
|
+
}, Gl = {
|
|
1590
1590
|
title: "Editor Graphy",
|
|
1591
1591
|
description: "Edite o seu conteúdo aqui",
|
|
1592
1592
|
graphTypes: {
|
|
@@ -2098,7 +2098,7 @@ import './editable.css';var El = {
|
|
|
2098
2098
|
light: "Claro",
|
|
2099
2099
|
dark: "Escuro"
|
|
2100
2100
|
} }
|
|
2101
|
-
},
|
|
2101
|
+
}, $l = {
|
|
2102
2102
|
titleEditor: {
|
|
2103
2103
|
titlePlaceholder: "Sem título",
|
|
2104
2104
|
subtitlePlaceholder: "Adicionar subtítulo"
|
|
@@ -2337,26 +2337,26 @@ import './editable.css';var El = {
|
|
|
2337
2337
|
}
|
|
2338
2338
|
}
|
|
2339
2339
|
}
|
|
2340
|
-
}, $l = {
|
|
2341
|
-
common: Bl,
|
|
2342
|
-
editor: Vl,
|
|
2343
|
-
graph: Gl
|
|
2344
2340
|
}, Ul = {
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2341
|
+
common: Vl,
|
|
2342
|
+
editor: Gl,
|
|
2343
|
+
graph: $l
|
|
2344
|
+
}, Wl = {
|
|
2345
|
+
"en-GB": Fl,
|
|
2346
|
+
"en-US": Bl,
|
|
2347
|
+
ar: Dl,
|
|
2348
|
+
"pt-PT": Ul
|
|
2349
|
+
}, Kl = [Wl, go], ql = ({ children: e, ...t }) => /* @__PURE__ */ n(co, {
|
|
2350
|
+
dictionaries: Kl,
|
|
2351
2351
|
...t,
|
|
2352
2352
|
children: e
|
|
2353
|
-
}),
|
|
2353
|
+
}), Xl = "data-variant", mr = dr.extend({ addAttributes() {
|
|
2354
2354
|
return { variant: {
|
|
2355
2355
|
default: null,
|
|
2356
2356
|
parseHTML: (e) => e.getAttribute("data-variant") ?? null,
|
|
2357
|
-
renderHTML: (e) => e.variant ? { [
|
|
2357
|
+
renderHTML: (e) => e.variant ? { [Xl]: e.variant } : {}
|
|
2358
2358
|
} };
|
|
2359
|
-
} }),
|
|
2359
|
+
} }), jl = sr.create({
|
|
2360
2360
|
name: "preventBackspaceAcrossTitleBoundary",
|
|
2361
2361
|
addOptions() {
|
|
2362
2362
|
return { isTitleVisible: !0 };
|
|
@@ -2371,33 +2371,33 @@ import './editable.css';var El = {
|
|
|
2371
2371
|
} };
|
|
2372
2372
|
}
|
|
2373
2373
|
}), Et = () => [
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2374
|
+
Cl,
|
|
2375
|
+
Tl,
|
|
2376
|
+
fl.configure({ levels: [
|
|
2377
2377
|
1,
|
|
2378
2378
|
2,
|
|
2379
2379
|
3
|
|
2380
2380
|
] }),
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2381
|
+
ml,
|
|
2382
|
+
vl,
|
|
2383
|
+
wl,
|
|
2384
|
+
yl.configure({ types: ["heading", "paragraph"] }),
|
|
2385
|
+
bl.configure({
|
|
2386
2386
|
openOnClick: !1,
|
|
2387
2387
|
autolink: !0
|
|
2388
2388
|
}),
|
|
2389
|
+
xl,
|
|
2389
2390
|
Sl,
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
Yl({
|
|
2391
|
+
gl
|
|
2392
|
+
], Zl = ({ titlePlaceholder: e, subtitlePlaceholder: t, isTitleVisible: r, isSubtitleVisible: o }) => [
|
|
2393
|
+
Jl({
|
|
2394
2394
|
isTitleVisible: r,
|
|
2395
2395
|
isSubtitleVisible: o
|
|
2396
2396
|
}),
|
|
2397
2397
|
mr,
|
|
2398
2398
|
...Et(),
|
|
2399
2399
|
cr,
|
|
2400
|
-
|
|
2400
|
+
jl.configure({ isTitleVisible: r }),
|
|
2401
2401
|
It.configure({
|
|
2402
2402
|
showOnlyCurrent: !1,
|
|
2403
2403
|
placeholder: ({ pos: a, editor: i }) => {
|
|
@@ -2406,7 +2406,7 @@ import './editable.css';var El = {
|
|
|
2406
2406
|
return o && a === l ? t : "";
|
|
2407
2407
|
}
|
|
2408
2408
|
})
|
|
2409
|
-
],
|
|
2409
|
+
], Yl = ({ placeholder: e }) => [
|
|
2410
2410
|
Ve,
|
|
2411
2411
|
mr,
|
|
2412
2412
|
...Et(),
|
|
@@ -2415,26 +2415,26 @@ import './editable.css';var El = {
|
|
|
2415
2415
|
showOnlyCurrent: !1,
|
|
2416
2416
|
placeholder: ({ pos: t }) => t === 0 ? e : ""
|
|
2417
2417
|
})
|
|
2418
|
-
],
|
|
2419
|
-
var gr = "d0bl03",
|
|
2420
|
-
className:
|
|
2418
|
+
], Jl = ({ isTitleVisible: e, isSubtitleVisible: t }) => e && t ? Ve.extend({ content: "block{2,}" }) : Ve, Ql = "linear-gradient(to top right, transparent calc(50% - 1px), var(--graphy-alert) calc(50% - 1px), var(--graphy-alert) calc(50% + 1px), transparent calc(50% + 1px))", es = "d0bl00";
|
|
2419
|
+
var gr = "d0bl03", ts = "d0bl04", fr = "d0bl05", ht = "d0bl06", ns = "d0bl07", rs = "d0bl08", vr = "d0bl09", as = "d0bl0a", os = "d0bl0b", is = "d0bl0c", ls = "d0bl0d", ss = "d0bl0e", cs = "owf1yg0", ds = "owf1yg1", us = "owf1yg2", hs = "owf1yg3", ps = "owf1yg4", ms = 0.01, gs = ({ value: e, onChange: t, label: r }) => /* @__PURE__ */ n(ae.Root, {
|
|
2420
|
+
className: cs,
|
|
2421
2421
|
value: e,
|
|
2422
2422
|
onValueChange: (o) => t(o),
|
|
2423
2423
|
min: 0,
|
|
2424
2424
|
max: 1,
|
|
2425
|
-
step:
|
|
2425
|
+
step: ms,
|
|
2426
2426
|
children: /* @__PURE__ */ n(ae.Control, {
|
|
2427
|
-
className:
|
|
2427
|
+
className: ds,
|
|
2428
2428
|
children: /* @__PURE__ */ m(ae.Track, {
|
|
2429
|
-
className:
|
|
2430
|
-
children: [/* @__PURE__ */ n(ae.Indicator, { className:
|
|
2431
|
-
className:
|
|
2429
|
+
className: us,
|
|
2430
|
+
children: [/* @__PURE__ */ n(ae.Indicator, { className: hs }), /* @__PURE__ */ n(ae.Thumb, {
|
|
2431
|
+
className: ps,
|
|
2432
2432
|
"aria-label": r
|
|
2433
2433
|
})]
|
|
2434
2434
|
})
|
|
2435
2435
|
})
|
|
2436
|
-
}),
|
|
2437
|
-
const d = k(), h =
|
|
2436
|
+
}), fs = "transparent", pt = Kn.map((e) => se[e]), vs = Object.fromEntries(Kn.map((e) => [se[e], e])), bs = (e) => pt.some((t) => Cr(t, e)), Cs = ({ color: e, onChange: t, isOpen: r, onOpenChange: o, children: a, label: i, popupAttributes: l, opacity: c, onOpacityChange: s, hasTransparentOption: u = !1 }) => {
|
|
2437
|
+
const d = k(), h = Ss(), f = u ? [fs, ...pt] : pt, p = (g) => {
|
|
2438
2438
|
t(g), o(!1);
|
|
2439
2439
|
};
|
|
2440
2440
|
return /* @__PURE__ */ m(Z.Root, {
|
|
@@ -2443,7 +2443,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2443
2443
|
children: [/* @__PURE__ */ n(Z.Trigger, {
|
|
2444
2444
|
render: /* @__PURE__ */ n(de.Button, {}),
|
|
2445
2445
|
"aria-label": i ?? d("graph.toolbar.color.label"),
|
|
2446
|
-
className:
|
|
2446
|
+
className: es,
|
|
2447
2447
|
onMouseDown: (g) => g.preventDefault(),
|
|
2448
2448
|
children: a ?? /* @__PURE__ */ n("span", {
|
|
2449
2449
|
className: "d0bl01",
|
|
@@ -2456,7 +2456,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2456
2456
|
align: "start",
|
|
2457
2457
|
className: gr,
|
|
2458
2458
|
children: /* @__PURE__ */ m(Z.Popup, {
|
|
2459
|
-
className:
|
|
2459
|
+
className: ts,
|
|
2460
2460
|
onMouseDown: (g) => g.preventDefault(),
|
|
2461
2461
|
...l,
|
|
2462
2462
|
children: [
|
|
@@ -2472,7 +2472,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2472
2472
|
currentColor: e,
|
|
2473
2473
|
onPick: p
|
|
2474
2474
|
}),
|
|
2475
|
-
/* @__PURE__ */ n(
|
|
2475
|
+
/* @__PURE__ */ n(ys, {
|
|
2476
2476
|
value: e ?? "#000000",
|
|
2477
2477
|
onChange: t,
|
|
2478
2478
|
popupAttributes: l
|
|
@@ -2482,7 +2482,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2482
2482
|
children: [/* @__PURE__ */ n("div", {
|
|
2483
2483
|
className: "d0bl06",
|
|
2484
2484
|
children: d("graph.colorDropdown.opacity")
|
|
2485
|
-
}), /* @__PURE__ */ n(
|
|
2485
|
+
}), /* @__PURE__ */ n(gs, {
|
|
2486
2486
|
value: c,
|
|
2487
2487
|
onChange: s,
|
|
2488
2488
|
label: d("graph.colorDropdown.opacity")
|
|
@@ -2501,11 +2501,11 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2501
2501
|
className: ht,
|
|
2502
2502
|
children: e
|
|
2503
2503
|
}), /* @__PURE__ */ n("div", {
|
|
2504
|
-
className:
|
|
2504
|
+
className: ns,
|
|
2505
2505
|
children: t.map((i) => /* @__PURE__ */ n("button", {
|
|
2506
2506
|
type: "button",
|
|
2507
2507
|
"aria-label": i === "transparent" ? a("graph.colorDropdown.transparent") : i,
|
|
2508
|
-
className:
|
|
2508
|
+
className: rs,
|
|
2509
2509
|
"data-active": Cr(i, r),
|
|
2510
2510
|
onMouseDown: (l) => l.preventDefault(),
|
|
2511
2511
|
onClick: () => o(i),
|
|
@@ -2516,8 +2516,8 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2516
2516
|
}, i))
|
|
2517
2517
|
})]
|
|
2518
2518
|
});
|
|
2519
|
-
},
|
|
2520
|
-
const o = k(), [a, i] = J(!1), l = xo(e) ? e : "#000000", c =
|
|
2519
|
+
}, ys = ({ value: e, onChange: t, popupAttributes: r }) => {
|
|
2520
|
+
const o = k(), [a, i] = J(!1), l = xo(e) ? e : "#000000", c = xs(l);
|
|
2521
2521
|
return /* @__PURE__ */ m(Z.Root, {
|
|
2522
2522
|
open: a,
|
|
2523
2523
|
onOpenChange: i,
|
|
@@ -2527,14 +2527,14 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2527
2527
|
className: ht,
|
|
2528
2528
|
children: o("graph.colorDropdown.custom")
|
|
2529
2529
|
}), /* @__PURE__ */ m(Z.Trigger, {
|
|
2530
|
-
className:
|
|
2530
|
+
className: as,
|
|
2531
2531
|
onMouseDown: (s) => s.preventDefault(),
|
|
2532
2532
|
"aria-label": o("graph.colorDropdown.pickCustom"),
|
|
2533
2533
|
children: [/* @__PURE__ */ n("span", {
|
|
2534
2534
|
className: vr,
|
|
2535
2535
|
style: br(l)
|
|
2536
2536
|
}), /* @__PURE__ */ n("span", {
|
|
2537
|
-
className:
|
|
2537
|
+
className: os,
|
|
2538
2538
|
children: c
|
|
2539
2539
|
})]
|
|
2540
2540
|
})]
|
|
@@ -2546,7 +2546,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2546
2546
|
sideOffset: 18,
|
|
2547
2547
|
className: gr,
|
|
2548
2548
|
children: /* @__PURE__ */ m(Z.Popup, {
|
|
2549
|
-
className:
|
|
2549
|
+
className: is,
|
|
2550
2550
|
onMouseDown: (s) => s.preventDefault(),
|
|
2551
2551
|
...r,
|
|
2552
2552
|
children: [
|
|
@@ -2554,16 +2554,16 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2554
2554
|
className: ht,
|
|
2555
2555
|
children: o("graph.colorDropdown.pickColor")
|
|
2556
2556
|
}),
|
|
2557
|
-
/* @__PURE__ */ n(
|
|
2557
|
+
/* @__PURE__ */ n(Pl, {
|
|
2558
2558
|
color: c,
|
|
2559
2559
|
onChange: t,
|
|
2560
|
-
className:
|
|
2560
|
+
className: ls
|
|
2561
2561
|
}),
|
|
2562
|
-
/* @__PURE__ */ n(
|
|
2562
|
+
/* @__PURE__ */ n(Ll, {
|
|
2563
2563
|
color: c,
|
|
2564
2564
|
onChange: t,
|
|
2565
2565
|
prefixed: !0,
|
|
2566
|
-
className:
|
|
2566
|
+
className: ss,
|
|
2567
2567
|
onMouseDown: (s) => s.stopPropagation()
|
|
2568
2568
|
})
|
|
2569
2569
|
]
|
|
@@ -2571,7 +2571,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2571
2571
|
}) })
|
|
2572
2572
|
})]
|
|
2573
2573
|
});
|
|
2574
|
-
},
|
|
2574
|
+
}, Ss = () => {
|
|
2575
2575
|
const e = G((t) => t.scales.color);
|
|
2576
2576
|
return O(() => {
|
|
2577
2577
|
if (!e || e.kind !== "visual") return [];
|
|
@@ -2583,57 +2583,57 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2583
2583
|
return [...t];
|
|
2584
2584
|
}, [e]);
|
|
2585
2585
|
}, br = (e) => e === "transparent" ? {
|
|
2586
|
-
background:
|
|
2586
|
+
background: Ql,
|
|
2587
2587
|
border: `1px solid ${se.border100}`
|
|
2588
2588
|
} : {
|
|
2589
2589
|
background: e,
|
|
2590
2590
|
border: `1px solid ${to(e, 0.1)}`
|
|
2591
|
-
},
|
|
2591
|
+
}, xs = (e) => {
|
|
2592
2592
|
const { themeValues: t } = ve();
|
|
2593
2593
|
if (ja(e)) return e.toUpperCase();
|
|
2594
|
-
const r =
|
|
2594
|
+
const r = vs[e];
|
|
2595
2595
|
return r ? t[r].toUpperCase() : "#000000";
|
|
2596
|
-
}, Cr = (e, t) => t === null ? !1 : e.toLowerCase() === t.toLowerCase(),
|
|
2596
|
+
}, Cr = (e, t) => t === null ? !1 : e.toLowerCase() === t.toLowerCase(), ws = "l9kff0", Ts = "l9kff1", As = "l9kff2", ks = "xn24px0", Ls = "xn24px1", Ps = "xn24px2", Is = ({ children: e, popupAttributes: t }) => /* @__PURE__ */ n(D.Portal, {
|
|
2597
2597
|
container: le(),
|
|
2598
2598
|
children: /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ n(D.Positioner, {
|
|
2599
2599
|
side: "bottom",
|
|
2600
2600
|
align: "start",
|
|
2601
2601
|
sideOffset: 6,
|
|
2602
|
-
className:
|
|
2602
|
+
className: ks,
|
|
2603
2603
|
children: /* @__PURE__ */ n(D.Popup, {
|
|
2604
|
-
className:
|
|
2604
|
+
className: Ls,
|
|
2605
2605
|
onMouseDown: (r) => r.preventDefault(),
|
|
2606
2606
|
...t,
|
|
2607
2607
|
children: e
|
|
2608
2608
|
})
|
|
2609
2609
|
}) })
|
|
2610
|
-
}),
|
|
2611
|
-
className:
|
|
2610
|
+
}), Es = ({ children: e, isSelected: t = !1, isDisabled: r = !1, onClick: o }) => /* @__PURE__ */ n(D.Item, {
|
|
2611
|
+
className: Ps,
|
|
2612
2612
|
"data-selected": t,
|
|
2613
2613
|
disabled: r,
|
|
2614
2614
|
onClick: o,
|
|
2615
2615
|
children: e
|
|
2616
|
-
}),
|
|
2617
|
-
...t,
|
|
2618
|
-
className: ce(xs, e)
|
|
2619
|
-
}) }), Ms = ({ className: e, ...t }) => /* @__PURE__ */ n(de.Group, {
|
|
2616
|
+
}), Ms = ({ className: e, ...t }) => /* @__PURE__ */ n(xe.Provider, { children: /* @__PURE__ */ n(de.Root, {
|
|
2620
2617
|
...t,
|
|
2621
2618
|
className: ce(ws, e)
|
|
2622
|
-
}), Ns = ({ className: e, ...t }) => /* @__PURE__ */ n(de.
|
|
2619
|
+
}) }), Ns = ({ className: e, ...t }) => /* @__PURE__ */ n(de.Group, {
|
|
2623
2620
|
...t,
|
|
2624
2621
|
className: ce(Ts, e)
|
|
2625
|
-
}), Os = ({
|
|
2622
|
+
}), Os = ({ className: e, ...t }) => /* @__PURE__ */ n(de.Separator, {
|
|
2623
|
+
...t,
|
|
2624
|
+
className: ce(As, e)
|
|
2625
|
+
}), Ds = ({ children: e }) => {
|
|
2626
2626
|
const t = le();
|
|
2627
2627
|
return t === null ? null : ir(/* @__PURE__ */ n(Q, { children: e }), t);
|
|
2628
2628
|
}, K = {
|
|
2629
|
-
Portal:
|
|
2630
|
-
Root:
|
|
2631
|
-
Group:
|
|
2632
|
-
Separator:
|
|
2629
|
+
Portal: Ds,
|
|
2630
|
+
Root: Ms,
|
|
2631
|
+
Group: Ns,
|
|
2632
|
+
Separator: Os,
|
|
2633
2633
|
Button: de.Button,
|
|
2634
|
-
ColorPicker:
|
|
2635
|
-
MenuPopup:
|
|
2636
|
-
MenuItem:
|
|
2634
|
+
ColorPicker: Cs,
|
|
2635
|
+
MenuPopup: Is,
|
|
2636
|
+
MenuItem: Es
|
|
2637
2637
|
}, Ne = (e) => /* @__PURE__ */ n(A, {
|
|
2638
2638
|
...e,
|
|
2639
2639
|
children: /* @__PURE__ */ n("g", {
|
|
@@ -2643,7 +2643,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2643
2643
|
strokeLinejoin: "round",
|
|
2644
2644
|
children: /* @__PURE__ */ n("path", { d: "m6 9 6 6 6-6" })
|
|
2645
2645
|
})
|
|
2646
|
-
}),
|
|
2646
|
+
}), Rs = "'Noto Serif', Georgia, 'Times New Roman', serif, 'Apple Color Emoji', 'NotoColorEmoji'", zs = `'Aeonik', 'Aeonik Fallback', ${Wn}`, _s = "'PT Mono', 'Courier New', monospace, 'Apple Color Emoji', 'NotoColorEmoji'", Fs = "'Intruding Cat', cursive, 'Apple Color Emoji', 'NotoColorEmoji'", mt = [
|
|
2647
2647
|
{
|
|
2648
2648
|
id: "modern",
|
|
2649
2649
|
label: "Modern",
|
|
@@ -2654,28 +2654,28 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2654
2654
|
id: "fresh",
|
|
2655
2655
|
label: "Fresh",
|
|
2656
2656
|
preview: "Aa",
|
|
2657
|
-
fontFamily:
|
|
2657
|
+
fontFamily: zs
|
|
2658
2658
|
},
|
|
2659
2659
|
{
|
|
2660
2660
|
id: "timeless",
|
|
2661
2661
|
label: "Timeless",
|
|
2662
2662
|
preview: "Aa",
|
|
2663
|
-
fontFamily:
|
|
2663
|
+
fontFamily: Rs
|
|
2664
2664
|
},
|
|
2665
2665
|
{
|
|
2666
2666
|
id: "technical",
|
|
2667
2667
|
label: "Technical",
|
|
2668
2668
|
preview: "00",
|
|
2669
|
-
fontFamily:
|
|
2669
|
+
fontFamily: _s
|
|
2670
2670
|
},
|
|
2671
2671
|
{
|
|
2672
2672
|
id: "fineliner",
|
|
2673
2673
|
label: "Fineliner",
|
|
2674
2674
|
preview: "Aa",
|
|
2675
|
-
fontFamily:
|
|
2675
|
+
fontFamily: Fs
|
|
2676
2676
|
}
|
|
2677
|
-
],
|
|
2678
|
-
const a = k(), i =
|
|
2677
|
+
], Hs = (e) => e ? mt.find((t) => t.fontFamily === e) ?? null : null, yr = "_70l3rt0", Sr = "_70l3rt1", xr = "_70l3rt3", wr = "_70l3rt4", Tr = "_70l3rt5", Bs = ({ editor: e, currentFontFamily: t, isOpen: r, onOpenChange: o }) => {
|
|
2678
|
+
const a = k(), i = Hs(t) ?? mt[0], l = (c) => {
|
|
2679
2679
|
e.chain().focus().setFontFamily(c.fontFamily).run();
|
|
2680
2680
|
};
|
|
2681
2681
|
return /* @__PURE__ */ m(D.Root, {
|
|
@@ -2740,7 +2740,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2740
2740
|
translationKey: "graph.toolbar.heading.heading1",
|
|
2741
2741
|
previewFont: se.fontTextEditorH1
|
|
2742
2742
|
}
|
|
2743
|
-
],
|
|
2743
|
+
], Vs = ({ editor: e, activeStyle: t, isOpen: r, onOpenChange: o }) => {
|
|
2744
2744
|
const a = k(), i = nn.find((l) => l.id === t) ?? Ar;
|
|
2745
2745
|
return /* @__PURE__ */ m(D.Root, {
|
|
2746
2746
|
open: r,
|
|
@@ -2767,8 +2767,8 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2767
2767
|
children: nn.map((l) => /* @__PURE__ */ n(D.Item, {
|
|
2768
2768
|
className: Tr,
|
|
2769
2769
|
"data-selected": l.id === i.id,
|
|
2770
|
-
onClick: () =>
|
|
2771
|
-
children: /* @__PURE__ */ n(
|
|
2770
|
+
onClick: () => Gs(e, l.id),
|
|
2771
|
+
children: /* @__PURE__ */ n($s, {
|
|
2772
2772
|
font: l.previewFont,
|
|
2773
2773
|
children: a(l.translationKey)
|
|
2774
2774
|
})
|
|
@@ -2777,7 +2777,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2777
2777
|
}) })
|
|
2778
2778
|
})]
|
|
2779
2779
|
});
|
|
2780
|
-
},
|
|
2780
|
+
}, Gs = (e, t) => {
|
|
2781
2781
|
switch (t) {
|
|
2782
2782
|
case "caption":
|
|
2783
2783
|
e.chain().focus().setNode("paragraph", { variant: "caption" }).run();
|
|
@@ -2794,7 +2794,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2794
2794
|
case "h3":
|
|
2795
2795
|
e.chain().focus().setHeading({ level: 3 }).run();
|
|
2796
2796
|
}
|
|
2797
|
-
},
|
|
2797
|
+
}, $s = ({ font: e, children: t }) => /* @__PURE__ */ n("span", {
|
|
2798
2798
|
style: {
|
|
2799
2799
|
font: e,
|
|
2800
2800
|
margin: 0
|
|
@@ -2809,7 +2809,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2809
2809
|
strokeLinejoin: "round",
|
|
2810
2810
|
children: /* @__PURE__ */ n("path", { d: "M20 6 9 17l-5-5" })
|
|
2811
2811
|
})
|
|
2812
|
-
}),
|
|
2812
|
+
}), Us = (e) => /* @__PURE__ */ n(A, {
|
|
2813
2813
|
...e,
|
|
2814
2814
|
children: /* @__PURE__ */ m("g", {
|
|
2815
2815
|
stroke: "currentColor",
|
|
@@ -2818,7 +2818,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2818
2818
|
strokeLinejoin: "round",
|
|
2819
2819
|
children: [/* @__PURE__ */ n("path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }), /* @__PURE__ */ n("path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" })]
|
|
2820
2820
|
})
|
|
2821
|
-
}),
|
|
2821
|
+
}), Ws = (e) => /* @__PURE__ */ n(A, {
|
|
2822
2822
|
...e,
|
|
2823
2823
|
children: /* @__PURE__ */ m("g", {
|
|
2824
2824
|
stroke: "currentColor",
|
|
@@ -2827,7 +2827,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2827
2827
|
strokeLinejoin: "round",
|
|
2828
2828
|
children: [/* @__PURE__ */ n("path", { d: "M18 6 6 18" }), /* @__PURE__ */ n("path", { d: "m6 6 12 12" })]
|
|
2829
2829
|
})
|
|
2830
|
-
}),
|
|
2830
|
+
}), Ks = (e) => !e.content || e.content.length === 0 ? !0 : e.content.every((t) => !t.content || t.content.length === 0), qs = (e) => {
|
|
2831
2831
|
const { $from: t } = e.state.selection, r = t.parent.textContent, o = t.parentOffset, a = t.start();
|
|
2832
2832
|
let i = o;
|
|
2833
2833
|
for (; i > 0 && rn(r[i - 1]); ) i -= 1;
|
|
@@ -2837,13 +2837,13 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2837
2837
|
from: a + i,
|
|
2838
2838
|
to: a + l
|
|
2839
2839
|
};
|
|
2840
|
-
}, rn = (e) => e !== void 0 && /\S/.test(e),
|
|
2840
|
+
}, rn = (e) => e !== void 0 && /\S/.test(e), Xs = "fop13s0", js = "fop13s1", Zs = "fop13s2", Ys = "fop13s3", an = "fop13s4", Js = ({ editor: e, currentUrl: t, isActive: r, isOpen: o, onOpenChange: a }) => {
|
|
2841
2841
|
const i = k(), [l, c] = J(""), s = te(null);
|
|
2842
2842
|
M(() => {
|
|
2843
2843
|
o && c(t ?? "");
|
|
2844
2844
|
}, [o, t]);
|
|
2845
2845
|
const u = () => {
|
|
2846
|
-
|
|
2846
|
+
Qs(e, l), a(!1);
|
|
2847
2847
|
}, d = () => {
|
|
2848
2848
|
c(""), a(!1);
|
|
2849
2849
|
}, h = (p) => {
|
|
@@ -2858,17 +2858,17 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2858
2858
|
render: /* @__PURE__ */ n(de.Button, {}),
|
|
2859
2859
|
"aria-label": i("graph.toolbar.formatting.link"),
|
|
2860
2860
|
"data-active": r,
|
|
2861
|
-
className:
|
|
2861
|
+
className: Xs,
|
|
2862
2862
|
onMouseDown: (p) => p.preventDefault(),
|
|
2863
|
-
children: /* @__PURE__ */ n(
|
|
2863
|
+
children: /* @__PURE__ */ n(Us, {})
|
|
2864
2864
|
}), /* @__PURE__ */ n(Z.Portal, {
|
|
2865
2865
|
container: le(),
|
|
2866
2866
|
children: /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ n(Z.Positioner, {
|
|
2867
2867
|
sideOffset: 6,
|
|
2868
2868
|
align: "end",
|
|
2869
|
-
className:
|
|
2869
|
+
className: js,
|
|
2870
2870
|
children: /* @__PURE__ */ m(Z.Popup, {
|
|
2871
|
-
className:
|
|
2871
|
+
className: Zs,
|
|
2872
2872
|
initialFocus: s,
|
|
2873
2873
|
onMouseDown: (p) => p.preventDefault(),
|
|
2874
2874
|
children: [
|
|
@@ -2878,7 +2878,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2878
2878
|
value: l,
|
|
2879
2879
|
placeholder: i("graph.toolbar.link.placeholder"),
|
|
2880
2880
|
"aria-label": i("graph.toolbar.link.urlLabel"),
|
|
2881
|
-
className:
|
|
2881
|
+
className: Ys,
|
|
2882
2882
|
onMouseDown: (p) => p.stopPropagation(),
|
|
2883
2883
|
onChange: h,
|
|
2884
2884
|
onKeyDown: f
|
|
@@ -2888,7 +2888,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2888
2888
|
"aria-label": i("common.cancel"),
|
|
2889
2889
|
className: an,
|
|
2890
2890
|
onClick: d,
|
|
2891
|
-
children: /* @__PURE__ */ n(
|
|
2891
|
+
children: /* @__PURE__ */ n(Ws, {})
|
|
2892
2892
|
}),
|
|
2893
2893
|
/* @__PURE__ */ n("button", {
|
|
2894
2894
|
type: "button",
|
|
@@ -2902,7 +2902,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2902
2902
|
}) })
|
|
2903
2903
|
})]
|
|
2904
2904
|
});
|
|
2905
|
-
},
|
|
2905
|
+
}, Qs = (e, t) => {
|
|
2906
2906
|
const r = t.trim(), { selection: o } = e.state;
|
|
2907
2907
|
if (!r) {
|
|
2908
2908
|
e.chain().focus().extendMarkRange("link").unsetLink().run();
|
|
@@ -2916,7 +2916,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2916
2916
|
e.chain().focus().extendMarkRange("link").setLink({ href: r }).run();
|
|
2917
2917
|
return;
|
|
2918
2918
|
}
|
|
2919
|
-
const a =
|
|
2919
|
+
const a = qs(e);
|
|
2920
2920
|
e.chain().focus().setTextSelection(a).setLink({ href: r }).run();
|
|
2921
2921
|
}, Lr = (e) => /* @__PURE__ */ n(A, {
|
|
2922
2922
|
...e,
|
|
@@ -2957,29 +2957,29 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
2957
2957
|
/* @__PURE__ */ n("path", { d: "M17 19H3" })
|
|
2958
2958
|
]
|
|
2959
2959
|
})
|
|
2960
|
-
}),
|
|
2960
|
+
}), ec = "_1d66w570", tc = "_1d66w571", nc = 6, we = ({ label: e, isActive: t, onToggle: r, children: o }) => {
|
|
2961
2961
|
const a = (i) => i.preventDefault();
|
|
2962
2962
|
return /* @__PURE__ */ m(xe.Root, { children: [/* @__PURE__ */ n(xe.Trigger, {
|
|
2963
|
-
render: /* @__PURE__ */ n(
|
|
2963
|
+
render: /* @__PURE__ */ n(Il, {
|
|
2964
2964
|
render: /* @__PURE__ */ n(de.Button, {}),
|
|
2965
2965
|
pressed: t,
|
|
2966
2966
|
onPressedChange: () => r()
|
|
2967
2967
|
}),
|
|
2968
2968
|
"aria-label": e,
|
|
2969
|
-
className:
|
|
2969
|
+
className: ec,
|
|
2970
2970
|
onMouseDown: a,
|
|
2971
2971
|
children: o
|
|
2972
2972
|
}), /* @__PURE__ */ n(xe.Portal, {
|
|
2973
2973
|
container: le(),
|
|
2974
2974
|
children: /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ n(xe.Positioner, {
|
|
2975
|
-
sideOffset:
|
|
2975
|
+
sideOffset: nc,
|
|
2976
2976
|
children: /* @__PURE__ */ n(xe.Popup, {
|
|
2977
|
-
className:
|
|
2977
|
+
className: tc,
|
|
2978
2978
|
children: e
|
|
2979
2979
|
})
|
|
2980
2980
|
}) })
|
|
2981
2981
|
})] });
|
|
2982
|
-
},
|
|
2982
|
+
}, rc = ({ editor: e, activeAlignment: t = "left" }) => {
|
|
2983
2983
|
const r = k();
|
|
2984
2984
|
return /* @__PURE__ */ m(j, { children: [
|
|
2985
2985
|
/* @__PURE__ */ n(we, {
|
|
@@ -3001,7 +3001,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3001
3001
|
children: /* @__PURE__ */ n(Pr, {})
|
|
3002
3002
|
})
|
|
3003
3003
|
] });
|
|
3004
|
-
},
|
|
3004
|
+
}, ac = "_1u34vl40", oc = ({ editor: e }) => ({
|
|
3005
3005
|
isBold: e?.isActive("bold") ?? !1,
|
|
3006
3006
|
isItalic: e?.isActive("italic") ?? !1,
|
|
3007
3007
|
isUnderline: e?.isActive("underline") ?? !1,
|
|
@@ -3009,23 +3009,23 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3009
3009
|
linkUrl: e?.getAttributes("link").href ?? null,
|
|
3010
3010
|
color: e?.getAttributes("textStyle").color ?? null,
|
|
3011
3011
|
fontFamily: e?.getAttributes("textStyle").fontFamily ?? null,
|
|
3012
|
-
fontSize:
|
|
3013
|
-
textAlign:
|
|
3014
|
-
}),
|
|
3012
|
+
fontSize: ic(e),
|
|
3013
|
+
textAlign: lc(e)
|
|
3014
|
+
}), ic = (e) => e ? e.isActive("heading", { level: 1 }) ? "h1" : e.isActive("heading", { level: 2 }) ? "h2" : e.isActive("heading", { level: 3 }) ? "h3" : e.isActive("paragraph", { variant: "caption" }) ? "caption" : "text" : "text", lc = (e) => e ? e.isActive({ textAlign: "center" }) ? "center" : e.isActive({ textAlign: "right" }) ? "right" : "left" : "left", sc = 8, cc = 8, dc = ({ editor: e }) => {
|
|
3015
3015
|
const t = k(), [r, o] = J(!1), [a, i] = J(null), l = a !== null, c = (p) => (g) => {
|
|
3016
3016
|
i(g ? p : null);
|
|
3017
|
-
}, { refs: s, floatingStyles: u } =
|
|
3017
|
+
}, { refs: s, floatingStyles: u } = pl({
|
|
3018
3018
|
placement: "top-start",
|
|
3019
3019
|
strategy: "fixed",
|
|
3020
3020
|
middleware: [
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3021
|
+
ul(sc),
|
|
3022
|
+
dl(),
|
|
3023
|
+
hl({ padding: cc })
|
|
3024
3024
|
],
|
|
3025
|
-
whileElementsMounted:
|
|
3026
|
-
}), d = te(null), h =
|
|
3025
|
+
whileElementsMounted: cl
|
|
3026
|
+
}), d = te(null), h = kl({
|
|
3027
3027
|
editor: e,
|
|
3028
|
-
selector:
|
|
3028
|
+
selector: oc
|
|
3029
3029
|
}), f = oe((p) => {
|
|
3030
3030
|
d.current = p, s.setFloating(p);
|
|
3031
3031
|
}, [s]);
|
|
@@ -3042,7 +3042,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3042
3042
|
};
|
|
3043
3043
|
}, [e]), !e || !r && !l ? null : /* @__PURE__ */ n(K.Portal, { children: /* @__PURE__ */ m(K.Root, {
|
|
3044
3044
|
ref: f,
|
|
3045
|
-
className:
|
|
3045
|
+
className: ac,
|
|
3046
3046
|
style: u,
|
|
3047
3047
|
children: [
|
|
3048
3048
|
/* @__PURE__ */ m(K.Group, { children: [/* @__PURE__ */ n(K.ColorPicker, {
|
|
@@ -3050,14 +3050,14 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3050
3050
|
onChange: (p) => e.chain().setColor(p).run(),
|
|
3051
3051
|
isOpen: a === "color",
|
|
3052
3052
|
onOpenChange: c("color")
|
|
3053
|
-
}), /* @__PURE__ */ n(
|
|
3053
|
+
}), /* @__PURE__ */ n(Bs, {
|
|
3054
3054
|
editor: e,
|
|
3055
3055
|
currentFontFamily: h?.fontFamily ?? null,
|
|
3056
3056
|
isOpen: a === "fontFamily",
|
|
3057
3057
|
onOpenChange: c("fontFamily")
|
|
3058
3058
|
})] }),
|
|
3059
3059
|
/* @__PURE__ */ n(K.Separator, {}),
|
|
3060
|
-
/* @__PURE__ */ n(K.Group, { children: /* @__PURE__ */ n(
|
|
3060
|
+
/* @__PURE__ */ n(K.Group, { children: /* @__PURE__ */ n(Vs, {
|
|
3061
3061
|
editor: e,
|
|
3062
3062
|
activeStyle: h?.fontSize ?? "text",
|
|
3063
3063
|
isOpen: a === "fontSize",
|
|
@@ -3085,12 +3085,12 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3085
3085
|
})
|
|
3086
3086
|
] }),
|
|
3087
3087
|
/* @__PURE__ */ n(K.Separator, {}),
|
|
3088
|
-
/* @__PURE__ */ n(K.Group, { children: /* @__PURE__ */ n(
|
|
3088
|
+
/* @__PURE__ */ n(K.Group, { children: /* @__PURE__ */ n(rc, {
|
|
3089
3089
|
editor: e,
|
|
3090
3090
|
activeAlignment: h?.textAlign
|
|
3091
3091
|
}) }),
|
|
3092
3092
|
/* @__PURE__ */ n(K.Separator, {}),
|
|
3093
|
-
/* @__PURE__ */ n(K.Group, { children: /* @__PURE__ */ n(
|
|
3093
|
+
/* @__PURE__ */ n(K.Group, { children: /* @__PURE__ */ n(Js, {
|
|
3094
3094
|
editor: e,
|
|
3095
3095
|
currentUrl: h?.linkUrl ?? null,
|
|
3096
3096
|
isActive: h?.isLink ?? !1,
|
|
@@ -3099,16 +3099,16 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3099
3099
|
}) })
|
|
3100
3100
|
]
|
|
3101
3101
|
}) });
|
|
3102
|
-
},
|
|
3103
|
-
className:
|
|
3104
|
-
children: [/* @__PURE__ */ n(
|
|
3102
|
+
}, uc = "_1uy50v30", Er = ({ editor: e, ariaLabel: t }) => /* @__PURE__ */ m("div", {
|
|
3103
|
+
className: uc,
|
|
3104
|
+
children: [/* @__PURE__ */ n(dc, { editor: e }), /* @__PURE__ */ n(ur, {
|
|
3105
3105
|
editor: e,
|
|
3106
3106
|
"aria-label": t
|
|
3107
3107
|
})]
|
|
3108
|
-
}),
|
|
3108
|
+
}), hc = 200, Mt = ({ content: e, extensions: t, isEditable: r, onUpdate: o, updateDebounceMs: a = hc }) => {
|
|
3109
3109
|
const i = te(on(e)), l = te(i.current), c = oo((u) => {
|
|
3110
3110
|
l.current = u, o?.(u);
|
|
3111
|
-
}, a), s =
|
|
3111
|
+
}, a), s = Al({
|
|
3112
3112
|
extensions: t,
|
|
3113
3113
|
content: i.current,
|
|
3114
3114
|
editable: r,
|
|
@@ -3124,7 +3124,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3124
3124
|
}, [s, r]), M(() => {
|
|
3125
3125
|
if (!s) return;
|
|
3126
3126
|
const u = on(e);
|
|
3127
|
-
it(l.current, u) || (l.current = u, !it(s.getJSON(), u) && (c.cancel(),
|
|
3127
|
+
it(l.current, u) || (l.current = u, !it(s.getJSON(), u) && (c.cancel(), pc(s, u)));
|
|
3128
3128
|
}, [
|
|
3129
3129
|
s,
|
|
3130
3130
|
e,
|
|
@@ -3142,7 +3142,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3142
3142
|
text: e
|
|
3143
3143
|
}] : []
|
|
3144
3144
|
}]
|
|
3145
|
-
} : e,
|
|
3145
|
+
} : e, pc = (e, t) => {
|
|
3146
3146
|
const { from: r, to: o } = e.state.selection;
|
|
3147
3147
|
e.commands.setContent(t, { emitUpdate: !1 });
|
|
3148
3148
|
const a = e.state.doc.content.size;
|
|
@@ -3150,31 +3150,31 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3150
3150
|
from: Math.min(r, a),
|
|
3151
3151
|
to: Math.min(o, a)
|
|
3152
3152
|
});
|
|
3153
|
-
}, it = (e, t) => JSON.stringify($e(e)) === JSON.stringify($e(t)), $e = (e) => Array.isArray(e) ? e.map($e) : e === null || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).map(([t, r]) => [t, $e(r)]).filter(([, t]) => !
|
|
3153
|
+
}, it = (e, t) => JSON.stringify($e(e)) === JSON.stringify($e(t)), $e = (e) => Array.isArray(e) ? e.map($e) : e === null || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).map(([t, r]) => [t, $e(r)]).filter(([, t]) => !mc(t)).sort(([t], [r]) => String(t).localeCompare(String(r)))), mc = (e) => e == null || typeof e == "object" && Object.keys(e).length === 0, gc = ({ caption: e }) => {
|
|
3154
3154
|
const { dispatch: t } = ie();
|
|
3155
3155
|
return /* @__PURE__ */ n(Er, {
|
|
3156
3156
|
editor: Mt({
|
|
3157
3157
|
content: e,
|
|
3158
|
-
extensions: O(() =>
|
|
3158
|
+
extensions: O(() => Yl({ placeholder: "Add caption" }), []),
|
|
3159
3159
|
isEditable: !0,
|
|
3160
3160
|
onUpdate: (r) => {
|
|
3161
|
-
const o =
|
|
3161
|
+
const o = Ks(r) ? null : r;
|
|
3162
3162
|
t(new Zn({ caption: o }));
|
|
3163
3163
|
}
|
|
3164
3164
|
}),
|
|
3165
3165
|
ariaLabel: "Chart caption"
|
|
3166
3166
|
});
|
|
3167
|
-
},
|
|
3167
|
+
}, fc = (e) => [
|
|
3168
3168
|
Ve,
|
|
3169
3169
|
dr,
|
|
3170
3170
|
...Et(),
|
|
3171
|
-
|
|
3171
|
+
bc,
|
|
3172
3172
|
It.configure({
|
|
3173
3173
|
showOnlyCurrent: !1,
|
|
3174
3174
|
placeholder: ({ pos: t }) => t === 0 ? e : ""
|
|
3175
3175
|
})
|
|
3176
|
-
],
|
|
3177
|
-
const t = k(), { dispatch: r } = ie(), o = U(), a = O(() =>
|
|
3176
|
+
], vc = ({ annotation: e }) => {
|
|
3177
|
+
const t = k(), { dispatch: r } = ie(), o = U(), a = O(() => fc(t("graph.annotations.text.placeholder")), [t]), i = Mt({
|
|
3178
3178
|
content: e.content,
|
|
3179
3179
|
extensions: a,
|
|
3180
3180
|
isEditable: !0,
|
|
@@ -3200,7 +3200,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3200
3200
|
}, ln = (e) => {
|
|
3201
3201
|
const t = Ja(e);
|
|
3202
3202
|
return t === void 0 ? {} : { style: `font-family: ${t}` };
|
|
3203
|
-
},
|
|
3203
|
+
}, bc = sr.create({
|
|
3204
3204
|
name: "annotationTextStyleAttributes",
|
|
3205
3205
|
addGlobalAttributes() {
|
|
3206
3206
|
return [{
|
|
@@ -3221,21 +3221,21 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3221
3221
|
}
|
|
3222
3222
|
}];
|
|
3223
3223
|
}
|
|
3224
|
-
}),
|
|
3224
|
+
}), Cc = 3, yc = ({ title: e, isTitleVisible: t, subtitle: r, isSubtitleVisible: o }) => {
|
|
3225
3225
|
const a = [];
|
|
3226
3226
|
return t && a.push({
|
|
3227
3227
|
type: "heading",
|
|
3228
|
-
attrs: { level:
|
|
3229
|
-
content:
|
|
3230
|
-
}), o && a.push(...
|
|
3228
|
+
attrs: { level: Cc },
|
|
3229
|
+
content: xc(e)
|
|
3230
|
+
}), o && a.push(...wc(r)), {
|
|
3231
3231
|
type: "doc",
|
|
3232
3232
|
content: a
|
|
3233
3233
|
};
|
|
3234
|
-
},
|
|
3234
|
+
}, Sc = (e) => {
|
|
3235
3235
|
const [t, ...r] = e.content ?? [];
|
|
3236
3236
|
return {
|
|
3237
|
-
title:
|
|
3238
|
-
subtitle:
|
|
3237
|
+
title: Tc(t?.content ?? []),
|
|
3238
|
+
subtitle: Ac(r)
|
|
3239
3239
|
};
|
|
3240
3240
|
}, Nt = (e) => ({
|
|
3241
3241
|
type: e.type ?? "text",
|
|
@@ -3243,10 +3243,10 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3243
3243
|
...e.text !== void 0 ? { text: e.text } : {},
|
|
3244
3244
|
...e.marks !== void 0 ? { marks: e.marks } : {},
|
|
3245
3245
|
...e.attrs !== void 0 ? { attrs: e.attrs } : {}
|
|
3246
|
-
}),
|
|
3246
|
+
}), xc = (e) => e === null ? [] : typeof e == "string" ? e === "" ? [] : [{
|
|
3247
3247
|
type: "text",
|
|
3248
3248
|
text: e
|
|
3249
|
-
}] : e.type === "doc" && e.content ? e.content.flatMap((t) => t.content ?? []) : e.type === "text" || e.type === "hardBreak" ? [e] : e.content ?? [],
|
|
3249
|
+
}] : e.type === "doc" && e.content ? e.content.flatMap((t) => t.content ?? []) : e.type === "text" || e.type === "hardBreak" ? [e] : e.content ?? [], wc = (e) => e === null ? [{ type: "paragraph" }] : typeof e == "string" ? e === "" ? [{ type: "paragraph" }] : [{
|
|
3250
3250
|
type: "paragraph",
|
|
3251
3251
|
content: [{
|
|
3252
3252
|
type: "text",
|
|
@@ -3255,14 +3255,14 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3255
3255
|
}] : e.type === "doc" && e.content ? e.content.length === 0 ? [{ type: "paragraph" }] : e.content.map(sn) : [sn(e)], sn = (e) => e.type === "paragraph" ? e : {
|
|
3256
3256
|
type: "paragraph",
|
|
3257
3257
|
content: e.content ?? [e]
|
|
3258
|
-
},
|
|
3258
|
+
}, Tc = (e) => {
|
|
3259
3259
|
if (e.length === 0) return null;
|
|
3260
3260
|
const [t] = e;
|
|
3261
3261
|
return t && e.length === 1 && t.type === "text" && (!t.marks || t.marks.length === 0) ? t.text ?? null : {
|
|
3262
3262
|
type: "paragraph",
|
|
3263
3263
|
content: e.map(Nt)
|
|
3264
3264
|
};
|
|
3265
|
-
},
|
|
3265
|
+
}, Ac = (e) => {
|
|
3266
3266
|
const t = e.filter((o) => (o.content ?? []).length > 0);
|
|
3267
3267
|
if (t.length === 0) return null;
|
|
3268
3268
|
const [r] = t;
|
|
@@ -3274,8 +3274,8 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3274
3274
|
type: "doc",
|
|
3275
3275
|
content: t.map(Nt)
|
|
3276
3276
|
};
|
|
3277
|
-
},
|
|
3278
|
-
const { dispatch: a } = ie(), i = O(() =>
|
|
3277
|
+
}, kc = ({ title: e, isTitleVisible: t, isSubtitleVisible: r, subtitle: o }) => {
|
|
3278
|
+
const { dispatch: a } = ie(), i = O(() => Zl({
|
|
3279
3279
|
titlePlaceholder: "Untitled",
|
|
3280
3280
|
subtitlePlaceholder: "Untitled",
|
|
3281
3281
|
isTitleVisible: t,
|
|
@@ -3283,7 +3283,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3283
3283
|
}), [t, r]);
|
|
3284
3284
|
return /* @__PURE__ */ n(Er, {
|
|
3285
3285
|
editor: Mt({
|
|
3286
|
-
content: O(() =>
|
|
3286
|
+
content: O(() => yc({
|
|
3287
3287
|
title: e,
|
|
3288
3288
|
isTitleVisible: t,
|
|
3289
3289
|
subtitle: o,
|
|
@@ -3297,24 +3297,24 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3297
3297
|
extensions: i,
|
|
3298
3298
|
isEditable: !0,
|
|
3299
3299
|
onUpdate: (l) => {
|
|
3300
|
-
const c =
|
|
3300
|
+
const c = Sc(l);
|
|
3301
3301
|
t && a(new Jn({ title: c.title })), r && a(new Yn({ subtitle: c.subtitle }));
|
|
3302
3302
|
}
|
|
3303
3303
|
}),
|
|
3304
3304
|
ariaLabel: "Chart title and subtitle"
|
|
3305
3305
|
});
|
|
3306
|
-
},
|
|
3307
|
-
Title:
|
|
3308
|
-
Caption:
|
|
3309
|
-
TextAnnotation:
|
|
3310
|
-
},
|
|
3306
|
+
}, Lc = {
|
|
3307
|
+
Title: kc,
|
|
3308
|
+
Caption: gc,
|
|
3309
|
+
TextAnnotation: vc
|
|
3310
|
+
}, Pc = "data-graphy-chart-chrome", Ic = "data-graphy-chart-menu", Mr = { [Ic]: "" }, Je = (e) => ({ [Pc]: e }), Be = (e, t) => e instanceof Element && e.closest(`[data-graphy-chart-chrome="${CSS.escape(t)}"]`) !== null, Ec = (e) => e instanceof Element && e.closest("[data-graphy-chart-menu]") !== null, gt = (e) => e instanceof Element && e.closest("[data-graphy-chart-chrome]") !== null, Nr = (e, t, r) => r !== null && rr({
|
|
3311
3311
|
x: e.clientX - t.x,
|
|
3312
3312
|
y: e.clientY - t.y
|
|
3313
|
-
}, r), Ee = (e, t, r) => e instanceof Node && (t.contains(e) || Be(e, r)),
|
|
3313
|
+
}, r), Ee = (e, t, r) => e instanceof Node && (t.contains(e) || Be(e, r)), Mc = "cml7ha0", Or = Me(null), Nc = ({ children: e }) => {
|
|
3314
3314
|
const { chartId: t } = B(), [r] = J(le), [o, a] = J(null);
|
|
3315
3315
|
return r === null ? null : /* @__PURE__ */ m(j, { children: [ir(/* @__PURE__ */ n("div", {
|
|
3316
3316
|
ref: a,
|
|
3317
|
-
className:
|
|
3317
|
+
className: Mc,
|
|
3318
3318
|
...Je(t)
|
|
3319
3319
|
}), r), /* @__PURE__ */ n(Or.Provider, {
|
|
3320
3320
|
value: o,
|
|
@@ -3346,7 +3346,7 @@ var gr = "d0bl03", es = "d0bl04", fr = "d0bl05", ht = "d0bl06", ts = "d0bl07", n
|
|
|
3346
3346
|
})
|
|
3347
3347
|
]
|
|
3348
3348
|
});
|
|
3349
|
-
var Rr = "efjmb40", zr = "efjmb41", Ce = "efjmb42", ye = "efjmb43",
|
|
3349
|
+
var Rr = "efjmb40", zr = "efjmb41", Ce = "efjmb42", ye = "efjmb43", Oc = "efjmb44", Dc = "efjmb45", Rc = /* @__PURE__ */ new Set([
|
|
3350
3350
|
"item-press",
|
|
3351
3351
|
"escape-key",
|
|
3352
3352
|
"outside-press",
|
|
@@ -3355,12 +3355,12 @@ var Rr = "efjmb40", zr = "efjmb41", Ce = "efjmb42", ye = "efjmb43", Nc = "efjmb4
|
|
|
3355
3355
|
"trigger-press"
|
|
3356
3356
|
]), Dt = ({ label: e, icon: t, onOpened: r, children: o }) => {
|
|
3357
3357
|
const a = Ot(), [i, l] = J(!1), c = (s, u) => {
|
|
3358
|
-
s ? (l(!0), r?.()) :
|
|
3358
|
+
s ? (l(!0), r?.()) : Rc.has(u.reason) && l(!1);
|
|
3359
3359
|
};
|
|
3360
3360
|
return /* @__PURE__ */ m(pe.SubmenuRoot, {
|
|
3361
3361
|
open: i,
|
|
3362
3362
|
onOpenChange: c,
|
|
3363
|
-
children: [/* @__PURE__ */ n(
|
|
3363
|
+
children: [/* @__PURE__ */ n(zc, {
|
|
3364
3364
|
label: e,
|
|
3365
3365
|
icon: t
|
|
3366
3366
|
}), /* @__PURE__ */ n(pe.Portal, {
|
|
@@ -3378,7 +3378,7 @@ var Rr = "efjmb40", zr = "efjmb41", Ce = "efjmb42", ye = "efjmb43", Nc = "efjmb4
|
|
|
3378
3378
|
}) })
|
|
3379
3379
|
})]
|
|
3380
3380
|
});
|
|
3381
|
-
},
|
|
3381
|
+
}, zc = ({ label: e, icon: t }) => /* @__PURE__ */ m(pe.SubmenuTrigger, {
|
|
3382
3382
|
className: Ce,
|
|
3383
3383
|
openOnHover: !1,
|
|
3384
3384
|
children: [
|
|
@@ -3388,17 +3388,17 @@ var Rr = "efjmb40", zr = "efjmb41", Ce = "efjmb42", ye = "efjmb43", Nc = "efjmb4
|
|
|
3388
3388
|
children: e
|
|
3389
3389
|
}),
|
|
3390
3390
|
/* @__PURE__ */ n("span", {
|
|
3391
|
-
className:
|
|
3391
|
+
className: Dc,
|
|
3392
3392
|
children: /* @__PURE__ */ n(Ne, { size: "sm" })
|
|
3393
3393
|
})
|
|
3394
3394
|
]
|
|
3395
|
-
}),
|
|
3395
|
+
}), _c = "_1qe7q450", Fc = "_1qe7q451", Hc = "_1qe7q452", Bc = ({ label: e, placeholder: t, addLabel: r, at: o, onRequestClose: a }) => {
|
|
3396
3396
|
const i = te(null), [l, c] = J(""), { dispatch: s } = ie(), u = l.trim(), d = () => {
|
|
3397
3397
|
u.length !== 0 && (s(new he({
|
|
3398
3398
|
kind: "comment",
|
|
3399
3399
|
annotation: {
|
|
3400
3400
|
at: o,
|
|
3401
|
-
content:
|
|
3401
|
+
content: Vc(u)
|
|
3402
3402
|
}
|
|
3403
3403
|
})), a());
|
|
3404
3404
|
};
|
|
@@ -3409,10 +3409,10 @@ var Rr = "efjmb40", zr = "efjmb41", Ce = "efjmb42", ye = "efjmb43", Nc = "efjmb4
|
|
|
3409
3409
|
requestAnimationFrame(() => i.current?.focus());
|
|
3410
3410
|
},
|
|
3411
3411
|
children: /* @__PURE__ */ m("div", {
|
|
3412
|
-
className:
|
|
3412
|
+
className: _c,
|
|
3413
3413
|
children: [/* @__PURE__ */ n("input", {
|
|
3414
3414
|
ref: i,
|
|
3415
|
-
className:
|
|
3415
|
+
className: Fc,
|
|
3416
3416
|
value: l,
|
|
3417
3417
|
placeholder: t,
|
|
3418
3418
|
onChange: (g) => {
|
|
@@ -3423,14 +3423,14 @@ var Rr = "efjmb40", zr = "efjmb41", Ce = "efjmb42", ye = "efjmb43", Nc = "efjmb4
|
|
|
3423
3423
|
}
|
|
3424
3424
|
}), /* @__PURE__ */ n("button", {
|
|
3425
3425
|
type: "button",
|
|
3426
|
-
className:
|
|
3426
|
+
className: Hc,
|
|
3427
3427
|
disabled: u.length === 0,
|
|
3428
3428
|
onClick: d,
|
|
3429
3429
|
children: r
|
|
3430
3430
|
})]
|
|
3431
3431
|
})
|
|
3432
3432
|
});
|
|
3433
|
-
},
|
|
3433
|
+
}, Vc = (e) => ({
|
|
3434
3434
|
type: "doc",
|
|
3435
3435
|
content: [{
|
|
3436
3436
|
type: "paragraph",
|
|
@@ -3439,7 +3439,7 @@ var Rr = "efjmb40", zr = "efjmb41", Ce = "efjmb42", ye = "efjmb43", Nc = "efjmb4
|
|
|
3439
3439
|
text: e
|
|
3440
3440
|
}]
|
|
3441
3441
|
}]
|
|
3442
|
-
}),
|
|
3442
|
+
}), Gc = (e) => /* @__PURE__ */ n(A, {
|
|
3443
3443
|
viewBox: "0 0 15 14",
|
|
3444
3444
|
...e,
|
|
3445
3445
|
children: /* @__PURE__ */ n("path", {
|
|
@@ -3447,7 +3447,7 @@ var Rr = "efjmb40", zr = "efjmb41", Ce = "efjmb42", ye = "efjmb43", Nc = "efjmb4
|
|
|
3447
3447
|
fill: "currentColor",
|
|
3448
3448
|
fillOpacity: "0.8"
|
|
3449
3449
|
})
|
|
3450
|
-
}),
|
|
3450
|
+
}), $c = "relative-difference", Uc = ({ label: e, layer: t, at: r, onRequestClose: o }) => {
|
|
3451
3451
|
const { dispatch: a } = ie(), i = G((s) => s.coordSystem), l = O(() => Yi({
|
|
3452
3452
|
layer: t,
|
|
3453
3453
|
at: r,
|
|
@@ -3464,21 +3464,21 @@ var Rr = "efjmb40", zr = "efjmb41", Ce = "efjmb42", ye = "efjmb43", Nc = "efjmb4
|
|
|
3464
3464
|
annotation: {
|
|
3465
3465
|
...qn,
|
|
3466
3466
|
...l,
|
|
3467
|
-
label:
|
|
3467
|
+
label: $c
|
|
3468
3468
|
}
|
|
3469
3469
|
})), o();
|
|
3470
3470
|
};
|
|
3471
3471
|
return /* @__PURE__ */ m(D.Item, {
|
|
3472
3472
|
className: Ce,
|
|
3473
3473
|
onClick: c,
|
|
3474
|
-
children: [/* @__PURE__ */ n(
|
|
3474
|
+
children: [/* @__PURE__ */ n(Gc, {}), /* @__PURE__ */ n("span", {
|
|
3475
3475
|
className: ye,
|
|
3476
3476
|
children: e
|
|
3477
3477
|
})]
|
|
3478
3478
|
});
|
|
3479
3479
|
};
|
|
3480
|
-
function
|
|
3481
|
-
if (e.type === "polar" && !
|
|
3480
|
+
function Wc(e, t) {
|
|
3481
|
+
if (e.type === "polar" && !Kc(t)) return [{
|
|
3482
3482
|
scope: "series",
|
|
3483
3483
|
labelKey: "pieSlice"
|
|
3484
3484
|
}];
|
|
@@ -3526,10 +3526,10 @@ function Uc(e, t) {
|
|
|
3526
3526
|
return [];
|
|
3527
3527
|
}
|
|
3528
3528
|
}
|
|
3529
|
-
var
|
|
3529
|
+
var Kc = (e) => {
|
|
3530
3530
|
const t = Fi(e.mapping.x);
|
|
3531
3531
|
return t !== null && t !== Po.x;
|
|
3532
|
-
},
|
|
3532
|
+
}, qc = (e) => /* @__PURE__ */ m(A, {
|
|
3533
3533
|
viewBox: "0 0 16 16",
|
|
3534
3534
|
...e,
|
|
3535
3535
|
children: [
|
|
@@ -3568,7 +3568,7 @@ var Wc = (e) => {
|
|
|
3568
3568
|
rx: ".533"
|
|
3569
3569
|
})
|
|
3570
3570
|
]
|
|
3571
|
-
}),
|
|
3571
|
+
}), Xc = (e) => /* @__PURE__ */ m(A, {
|
|
3572
3572
|
viewBox: "0 0 16 16",
|
|
3573
3573
|
...e,
|
|
3574
3574
|
children: [
|
|
@@ -3607,7 +3607,7 @@ var Wc = (e) => {
|
|
|
3607
3607
|
rx: ".533"
|
|
3608
3608
|
})
|
|
3609
3609
|
]
|
|
3610
|
-
}),
|
|
3610
|
+
}), jc = (e) => /* @__PURE__ */ m(A, {
|
|
3611
3611
|
viewBox: "0 0 16 16",
|
|
3612
3612
|
...e,
|
|
3613
3613
|
children: [
|
|
@@ -3646,7 +3646,7 @@ var Wc = (e) => {
|
|
|
3646
3646
|
rx: ".533"
|
|
3647
3647
|
})
|
|
3648
3648
|
]
|
|
3649
|
-
}),
|
|
3649
|
+
}), Zc = (e) => /* @__PURE__ */ m(A, {
|
|
3650
3650
|
viewBox: "0 0 16 16",
|
|
3651
3651
|
...e,
|
|
3652
3652
|
children: [
|
|
@@ -3666,7 +3666,7 @@ var Wc = (e) => {
|
|
|
3666
3666
|
d: "M11.733 10.074H16v5.408a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.519-.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
|
|
3667
3667
|
})
|
|
3668
3668
|
]
|
|
3669
|
-
}),
|
|
3669
|
+
}), Yc = (e) => /* @__PURE__ */ m(A, {
|
|
3670
3670
|
viewBox: "0 0 16 16",
|
|
3671
3671
|
...e,
|
|
3672
3672
|
children: [
|
|
@@ -3700,7 +3700,7 @@ var Wc = (e) => {
|
|
|
3700
3700
|
d: "M5.29 6.62a1.3 1.3 0 0 1-.424-.075 1 1 0 0 1-.373-.244 1.2 1.2 0 0 1-.262-.45 2.1 2.1 0 0 1-.096-.699q0-.389.082-.693.083-.304.238-.514a1.05 1.05 0 0 1 .374-.322q.22-.11.492-.11.285 0 .505.112a.973.973 0 0 1 .526.744h-.54a.5.5 0 0 0-.17-.277.5.5 0 0 0-.321-.105.54.54 0 0 0-.485.273q-.168.273-.17.75h.021a.8.8 0 0 1 .188-.223.92.92 0 0 1 .569-.195.91.91 0 0 1 .813.477q.125.222.123.509 0 .297-.136.536a1 1 0 0 1-.383.372 1.15 1.15 0 0 1-.571.134m-.003-.443a.54.54 0 0 0 .288-.078.57.57 0 0 0 .2-.211.6.6 0 0 0 .073-.299.6.6 0 0 0-.07-.294.54.54 0 0 0-.484-.285.55.55 0 0 0-.403.173.596.596 0 0 0 .108.914.53.53 0 0 0 .288.08M6.88 6.579v-.396l1.05-1.03q.15-.15.25-.27a1 1 0 0 0 .151-.229.6.6 0 0 0 .05-.236.432.432 0 0 0-.244-.405.6.6 0 0 0-.258-.056q-.15 0-.261.062a.43.43 0 0 0-.175.173.56.56 0 0 0-.06.267H6.86q0-.288.132-.5a.9.9 0 0 1 .362-.33q.231-.117.532-.117.303 0 .534.114.23.114.358.312a.8.8 0 0 1 .128.452.9.9 0 0 1-.065.334q-.065.164-.229.363-.162.2-.456.483l-.522.53v.021h1.318v.458zM10.57 6.62a1.3 1.3 0 0 1-.423-.075 1 1 0 0 1-.373-.244 1.2 1.2 0 0 1-.263-.45 2.1 2.1 0 0 1-.096-.699q0-.389.083-.693t.238-.514a1.05 1.05 0 0 1 .374-.322q.219-.11.492-.11.285 0 .505.112a.973.973 0 0 1 .526.744h-.54a.5.5 0 0 0-.17-.277.5.5 0 0 0-.322-.105.54.54 0 0 0-.484.273q-.168.273-.17.75h.02a.8.8 0 0 1 .188-.223.92.92 0 0 1 .569-.195.91.91 0 0 1 .814.477q.125.222.123.509 0 .297-.136.536a1 1 0 0 1-.383.372 1.15 1.15 0 0 1-.572.134m-.002-.443a.54.54 0 0 0 .288-.078.57.57 0 0 0 .2-.211.6.6 0 0 0 .073-.299.6.6 0 0 0-.071-.294.54.54 0 0 0-.483-.285.54.54 0 0 0-.403.173.597.597 0 0 0 .107.914.53.53 0 0 0 .289.08"
|
|
3701
3701
|
})
|
|
3702
3702
|
]
|
|
3703
|
-
}),
|
|
3703
|
+
}), Jc = (e) => /* @__PURE__ */ m(A, {
|
|
3704
3704
|
viewBox: "0 0 16 16",
|
|
3705
3705
|
...e,
|
|
3706
3706
|
children: [
|
|
@@ -3741,7 +3741,7 @@ var Wc = (e) => {
|
|
|
3741
3741
|
fillOpacity: "0.8"
|
|
3742
3742
|
})
|
|
3743
3743
|
]
|
|
3744
|
-
}),
|
|
3744
|
+
}), Qc = (e) => /* @__PURE__ */ m(A, {
|
|
3745
3745
|
viewBox: "0 0 16 16",
|
|
3746
3746
|
...e,
|
|
3747
3747
|
children: [
|
|
@@ -3763,7 +3763,7 @@ var Wc = (e) => {
|
|
|
3763
3763
|
d: "M15.999 8a8 8 0 0 1-7.588 7.989l-.412.01V8z"
|
|
3764
3764
|
})
|
|
3765
3765
|
]
|
|
3766
|
-
}),
|
|
3766
|
+
}), ed = (e) => /* @__PURE__ */ m(A, {
|
|
3767
3767
|
viewBox: "0 0 16 16",
|
|
3768
3768
|
...e,
|
|
3769
3769
|
children: [
|
|
@@ -3824,7 +3824,7 @@ var Wc = (e) => {
|
|
|
3824
3824
|
transform: "matrix(-1 0 0 1 15.933 .533)"
|
|
3825
3825
|
})
|
|
3826
3826
|
]
|
|
3827
|
-
}),
|
|
3827
|
+
}), td = (e) => /* @__PURE__ */ m(A, {
|
|
3828
3828
|
viewBox: "0 0 16 16",
|
|
3829
3829
|
...e,
|
|
3830
3830
|
children: [
|
|
@@ -3885,18 +3885,18 @@ var Wc = (e) => {
|
|
|
3885
3885
|
transform: "matrix(-1 0 0 1 15.933 .533)"
|
|
3886
3886
|
})
|
|
3887
3887
|
]
|
|
3888
|
-
}),
|
|
3889
|
-
bar:
|
|
3890
|
-
barGroup:
|
|
3891
|
-
barStack:
|
|
3892
|
-
barSeries:
|
|
3893
|
-
linePoint:
|
|
3894
|
-
lineSeries:
|
|
3895
|
-
scatterPoint:
|
|
3896
|
-
scatterSeries:
|
|
3897
|
-
pieSlice:
|
|
3888
|
+
}), nd = {
|
|
3889
|
+
bar: qc,
|
|
3890
|
+
barGroup: Xc,
|
|
3891
|
+
barStack: Zc,
|
|
3892
|
+
barSeries: jc,
|
|
3893
|
+
linePoint: Yc,
|
|
3894
|
+
lineSeries: Jc,
|
|
3895
|
+
scatterPoint: ed,
|
|
3896
|
+
scatterSeries: td,
|
|
3897
|
+
pieSlice: Qc
|
|
3898
3898
|
}, _r = ({ labelKey: e }) => {
|
|
3899
|
-
const t =
|
|
3899
|
+
const t = nd[e];
|
|
3900
3900
|
return /* @__PURE__ */ n(t, {});
|
|
3901
3901
|
}, Fr = (e) => /* @__PURE__ */ m(A, {
|
|
3902
3902
|
viewBox: "0 0 16 16",
|
|
@@ -3911,7 +3911,7 @@ var Wc = (e) => {
|
|
|
3911
3911
|
fill: "currentColor",
|
|
3912
3912
|
fillOpacity: "0.8"
|
|
3913
3913
|
})]
|
|
3914
|
-
}),
|
|
3914
|
+
}), rd = ({ label: e, options: t, onSelect: r }) => {
|
|
3915
3915
|
const o = k();
|
|
3916
3916
|
return /* @__PURE__ */ n(Dt, {
|
|
3917
3917
|
label: e,
|
|
@@ -3925,8 +3925,8 @@ var Wc = (e) => {
|
|
|
3925
3925
|
})]
|
|
3926
3926
|
}, a.scope))
|
|
3927
3927
|
});
|
|
3928
|
-
},
|
|
3929
|
-
const i = k(), { dispatch: l } = ie(), c = G((p) => p.coordSystem), s = O(() => Ii(t, r), [t, r]), u = O(() =>
|
|
3928
|
+
}, ad = ({ label: e, layer: t, observation: r, highlights: o, onRequestClose: a }) => {
|
|
3929
|
+
const i = k(), { dispatch: l } = ie(), c = G((p) => p.coordSystem), s = O(() => Ii(t, r), [t, r]), u = O(() => Wc(c, t), [c, t]), d = O(() => {
|
|
3930
3930
|
const p = new Set(o.map((g) => g.scope));
|
|
3931
3931
|
return u.filter((g) => !p.has(g.scope));
|
|
3932
3932
|
}, [u, o]), [h] = d;
|
|
@@ -3949,16 +3949,16 @@ var Wc = (e) => {
|
|
|
3949
3949
|
})]
|
|
3950
3950
|
});
|
|
3951
3951
|
}
|
|
3952
|
-
return /* @__PURE__ */ n(
|
|
3952
|
+
return /* @__PURE__ */ n(rd, {
|
|
3953
3953
|
label: e,
|
|
3954
3954
|
options: d,
|
|
3955
3955
|
onSelect: f
|
|
3956
3956
|
});
|
|
3957
|
-
},
|
|
3958
|
-
className:
|
|
3957
|
+
}, od = "_1aafi1g0", id = "_1aafi1g1", Hr = ({ children: e }) => /* @__PURE__ */ m("span", {
|
|
3958
|
+
className: od,
|
|
3959
3959
|
"aria-hidden": "true",
|
|
3960
|
-
children: [e, /* @__PURE__ */ n("span", { className:
|
|
3961
|
-
}),
|
|
3960
|
+
children: [e, /* @__PURE__ */ n("span", { className: id })]
|
|
3961
|
+
}), ld = ({ label: e, highlights: t, onRequestClose: r }) => {
|
|
3962
3962
|
const { dispatch: o } = ie(), a = t.at(-1);
|
|
3963
3963
|
if (a === void 0) return null;
|
|
3964
3964
|
const i = () => {
|
|
@@ -3972,7 +3972,7 @@ var Wc = (e) => {
|
|
|
3972
3972
|
children: e
|
|
3973
3973
|
})]
|
|
3974
3974
|
});
|
|
3975
|
-
},
|
|
3975
|
+
}, sd = (e, t) => {
|
|
3976
3976
|
const r = G((a) => a.spec.highlights), o = G((a) => a.config.parsingLocale);
|
|
3977
3977
|
return O(() => Gi({
|
|
3978
3978
|
layer: e,
|
|
@@ -4008,7 +4008,7 @@ var Wc = (e) => {
|
|
|
4008
4008
|
fillOpacity: "0.8"
|
|
4009
4009
|
})
|
|
4010
4010
|
]
|
|
4011
|
-
}),
|
|
4011
|
+
}), cd = ({ label: e, at: t, onRequestClose: r }) => {
|
|
4012
4012
|
const { dispatch: o } = ie(), a = () => {
|
|
4013
4013
|
o(new he({
|
|
4014
4014
|
kind: "pinnedNumber",
|
|
@@ -4070,7 +4070,7 @@ var Wc = (e) => {
|
|
|
4070
4070
|
labelKey: "graph.annotations.baseMenu.removeSticker"
|
|
4071
4071
|
},
|
|
4072
4072
|
image: null
|
|
4073
|
-
},
|
|
4073
|
+
}, dd = (e) => Ji(e.kind) && Gr[e.kind] !== null, ud = ({ attachment: e, onRequestClose: t }) => {
|
|
4074
4074
|
const r = k(), { dispatch: o } = ie(), { icon: a, labelKey: i } = Gr[e.kind], l = () => {
|
|
4075
4075
|
o(new Ae({ id: e.annotation.id })), t();
|
|
4076
4076
|
};
|
|
@@ -4082,7 +4082,7 @@ var Wc = (e) => {
|
|
|
4082
4082
|
children: r(i)
|
|
4083
4083
|
})]
|
|
4084
4084
|
});
|
|
4085
|
-
},
|
|
4085
|
+
}, hd = "ceeojg0", pd = "ceeojg1", md = "ceeojg2", gd = ({ label: e, at: t, onRequestClose: r }) => {
|
|
4086
4086
|
const { dispatch: o } = ie(), a = (i) => {
|
|
4087
4087
|
o(new he({
|
|
4088
4088
|
kind: "sticker",
|
|
@@ -4099,26 +4099,26 @@ var Wc = (e) => {
|
|
|
4099
4099
|
label: e,
|
|
4100
4100
|
icon: /* @__PURE__ */ n(Vr, {}),
|
|
4101
4101
|
children: /* @__PURE__ */ n("div", {
|
|
4102
|
-
className:
|
|
4102
|
+
className: hd,
|
|
4103
4103
|
children: Object.entries(lo).map(([i, l]) => /* @__PURE__ */ n(pe.Item, {
|
|
4104
|
-
className:
|
|
4104
|
+
className: pd,
|
|
4105
4105
|
"aria-label": i,
|
|
4106
4106
|
onClick: () => a(i),
|
|
4107
4107
|
children: /* @__PURE__ */ n("img", {
|
|
4108
|
-
className:
|
|
4108
|
+
className: md,
|
|
4109
4109
|
src: l.src,
|
|
4110
4110
|
alt: i
|
|
4111
4111
|
})
|
|
4112
4112
|
}, i))
|
|
4113
4113
|
})
|
|
4114
4114
|
});
|
|
4115
|
-
},
|
|
4115
|
+
}, fd = ({ interaction: e, panelOrigin: t }) => {
|
|
4116
4116
|
const r = U(), o = X((i) => i.menuTrigger);
|
|
4117
4117
|
if (e.kind !== "menu" || o === null) return null;
|
|
4118
4118
|
const a = () => {
|
|
4119
4119
|
r.getState().releaseInteraction("menu");
|
|
4120
4120
|
};
|
|
4121
|
-
return /* @__PURE__ */ n(
|
|
4121
|
+
return /* @__PURE__ */ n(vd, {
|
|
4122
4122
|
trigger: {
|
|
4123
4123
|
x: t.x + o.center.x,
|
|
4124
4124
|
y: t.y + o.center.y,
|
|
@@ -4129,13 +4129,13 @@ var Wc = (e) => {
|
|
|
4129
4129
|
observation: e.anchor.observation,
|
|
4130
4130
|
onClose: a
|
|
4131
4131
|
});
|
|
4132
|
-
},
|
|
4133
|
-
const i = k(), l = Ot(), c = G((y) => y.spec.annotations), s = G((y) => y.config.parsingLocale), u =
|
|
4132
|
+
}, vd = ({ trigger: e, layer: t, at: r, observation: o, onClose: a }) => {
|
|
4133
|
+
const i = k(), l = Ot(), c = G((y) => y.spec.annotations), s = G((y) => y.config.parsingLocale), u = Cd(), { x: d, y: h, radius: f } = e, p = O(() => bd(d, h, f), [
|
|
4134
4134
|
d,
|
|
4135
4135
|
h,
|
|
4136
4136
|
f
|
|
4137
|
-
]), g = Ui(c, r, O(() => Ri(t, s), [t, s])), v = g !== null &&
|
|
4138
|
-
!y &&
|
|
4137
|
+
]), g = Ui(c, r, O(() => Ri(t, s), [t, s])), v = g !== null && dd(g) ? g : null, x = sd(t, o), w = (y, L) => {
|
|
4138
|
+
!y && yd(L.reason) && a();
|
|
4139
4139
|
};
|
|
4140
4140
|
return /* @__PURE__ */ n(D.Root, {
|
|
4141
4141
|
open: u,
|
|
@@ -4154,43 +4154,43 @@ var Wc = (e) => {
|
|
|
4154
4154
|
className: zr,
|
|
4155
4155
|
"data-testid": "observation-menu",
|
|
4156
4156
|
children: [
|
|
4157
|
-
v !== null && /* @__PURE__ */ n(
|
|
4157
|
+
v !== null && /* @__PURE__ */ n(ud, {
|
|
4158
4158
|
attachment: v,
|
|
4159
4159
|
onRequestClose: a
|
|
4160
4160
|
}),
|
|
4161
|
-
/* @__PURE__ */ n(
|
|
4161
|
+
/* @__PURE__ */ n(ld, {
|
|
4162
4162
|
label: i("graph.annotations.baseMenu.removeHighlight"),
|
|
4163
4163
|
highlights: x,
|
|
4164
4164
|
onRequestClose: a
|
|
4165
4165
|
}),
|
|
4166
|
-
/* @__PURE__ */ n(D.Separator, { className:
|
|
4166
|
+
/* @__PURE__ */ n(D.Separator, { className: Oc }),
|
|
4167
4167
|
v === null && /* @__PURE__ */ m(j, { children: [
|
|
4168
|
-
/* @__PURE__ */ n(
|
|
4168
|
+
/* @__PURE__ */ n(cd, {
|
|
4169
4169
|
label: i("graph.annotations.baseMenu.pinNumber"),
|
|
4170
4170
|
at: r,
|
|
4171
4171
|
onRequestClose: a
|
|
4172
4172
|
}),
|
|
4173
|
-
/* @__PURE__ */ n(
|
|
4173
|
+
/* @__PURE__ */ n(Bc, {
|
|
4174
4174
|
label: i("graph.annotations.baseMenu.annotate"),
|
|
4175
4175
|
placeholder: i("graph.annotations.textMenu.placeholder"),
|
|
4176
4176
|
addLabel: i("graph.annotations.textMenu.addButton"),
|
|
4177
4177
|
at: r,
|
|
4178
4178
|
onRequestClose: a
|
|
4179
4179
|
}),
|
|
4180
|
-
/* @__PURE__ */ n(
|
|
4180
|
+
/* @__PURE__ */ n(gd, {
|
|
4181
4181
|
label: i("graph.annotations.baseMenu.addSticker"),
|
|
4182
4182
|
at: r,
|
|
4183
4183
|
onRequestClose: a
|
|
4184
4184
|
})
|
|
4185
4185
|
] }),
|
|
4186
|
-
t.highlight !== null && /* @__PURE__ */ n(
|
|
4186
|
+
t.highlight !== null && /* @__PURE__ */ n(ad, {
|
|
4187
4187
|
label: i("graph.annotations.baseMenu.highlight"),
|
|
4188
4188
|
layer: t,
|
|
4189
4189
|
observation: o,
|
|
4190
4190
|
highlights: x,
|
|
4191
4191
|
onRequestClose: a
|
|
4192
4192
|
}),
|
|
4193
|
-
/* @__PURE__ */ n(
|
|
4193
|
+
/* @__PURE__ */ n(Uc, {
|
|
4194
4194
|
label: i("graph.annotations.baseMenu.differenceArrow"),
|
|
4195
4195
|
layer: t,
|
|
4196
4196
|
at: r,
|
|
@@ -4201,12 +4201,12 @@ var Wc = (e) => {
|
|
|
4201
4201
|
}) })
|
|
4202
4202
|
})
|
|
4203
4203
|
});
|
|
4204
|
-
},
|
|
4204
|
+
}, bd = (e, t, r) => ({ getBoundingClientRect: () => new DOMRect(e - r, t - r, r * 2, r * 2) }), Cd = () => {
|
|
4205
4205
|
const [e, t] = J(!1);
|
|
4206
4206
|
return M(() => {
|
|
4207
4207
|
t(!0);
|
|
4208
4208
|
}, []), e;
|
|
4209
|
-
},
|
|
4209
|
+
}, yd = (e) => e === "outside-press" || e === "escape-key" || e === "item-press", Rt = "l8tsqe0", $r = ["start", "end"], Ur = ({ anchor: e, point: t, delta: r }) => {
|
|
4210
4210
|
const o = {
|
|
4211
4211
|
x: cn(t.x, r.x),
|
|
4212
4212
|
y: cn(1 - t.y, r.y)
|
|
@@ -4228,10 +4228,10 @@ var Wc = (e) => {
|
|
|
4228
4228
|
...e[t.endpoint],
|
|
4229
4229
|
...t.point
|
|
4230
4230
|
}
|
|
4231
|
-
}), Wr = (e, t) => e.x === t.x && e.y === t.y,
|
|
4231
|
+
}), Wr = (e, t) => e.x === t.x && e.y === t.y, Sd = (e, t) => ({
|
|
4232
4232
|
x: t.x + e.x * t.width,
|
|
4233
4233
|
y: t.y + (1 - e.y) * t.height
|
|
4234
|
-
}),
|
|
4234
|
+
}), xd = (e, t, r) => {
|
|
4235
4235
|
const o = e.x * r.width, a = t.x * r.width, i = (1 - e.y) * r.height, l = (1 - t.y) * r.height;
|
|
4236
4236
|
return {
|
|
4237
4237
|
x: Math.min(o, a),
|
|
@@ -4239,7 +4239,7 @@ var Wc = (e) => {
|
|
|
4239
4239
|
width: Math.abs(a - o),
|
|
4240
4240
|
height: Math.abs(l - i)
|
|
4241
4241
|
};
|
|
4242
|
-
}, cn = (e, t) => !Number.isFinite(t) || !Number.isFinite(e) ? 0 : Ge(t, Math.min(-e, 0), Math.max(1 - e, 0)),
|
|
4242
|
+
}, cn = (e, t) => !Number.isFinite(t) || !Number.isFinite(e) ? 0 : Ge(t, Math.min(-e, 0), Math.max(1 - e, 0)), wd = ({ panelRect: e }) => {
|
|
4243
4243
|
const t = X((i) => H(i, "arrow-endpoint-drag")), r = be(e).arrows;
|
|
4244
4244
|
if (t === null) return null;
|
|
4245
4245
|
const o = r.find((i) => i.id === t.annotationId);
|
|
@@ -4272,7 +4272,7 @@ var Wc = (e) => {
|
|
|
4272
4272
|
if (e.length !== 1) return null;
|
|
4273
4273
|
const [t] = e;
|
|
4274
4274
|
return t?.kind === "annotation" ? t.id : null;
|
|
4275
|
-
},
|
|
4275
|
+
}, Td = (e) => /* @__PURE__ */ n(A, {
|
|
4276
4276
|
...e,
|
|
4277
4277
|
children: /* @__PURE__ */ m("g", {
|
|
4278
4278
|
stroke: "currentColor",
|
|
@@ -4290,7 +4290,7 @@ var Wc = (e) => {
|
|
|
4290
4290
|
strokeLinejoin: "round",
|
|
4291
4291
|
children: [/* @__PURE__ */ n("path", { d: "M5 12h14" }), /* @__PURE__ */ n("path", { d: "m12 5 7 7-7 7" })]
|
|
4292
4292
|
})
|
|
4293
|
-
}),
|
|
4293
|
+
}), Ad = (e) => /* @__PURE__ */ n(A, {
|
|
4294
4294
|
...e,
|
|
4295
4295
|
children: /* @__PURE__ */ m("g", {
|
|
4296
4296
|
stroke: "currentColor",
|
|
@@ -4341,7 +4341,7 @@ var Wc = (e) => {
|
|
|
4341
4341
|
/* @__PURE__ */ n("path", { d: "M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2" })
|
|
4342
4342
|
]
|
|
4343
4343
|
})
|
|
4344
|
-
}),
|
|
4344
|
+
}), kd = "var(--pvjfpx0)", Ld = "var(--pvjfpx1)", Pd = "pvjfpx2", Id = "pvjfpx3", Ed = "pvjfpx4", Md = "pvjfpx6 pvjfpx5", Nd = "pvjfpx7 pvjfpx6 pvjfpx5", Od = "pvjfpx8 pvjfpx5", Pe = 8, Dd = ({ anchorBox: e, panelRect: t, frameWidth: r, frameHeight: o }) => {
|
|
4345
4345
|
const a = t.y + e.y, i = a + e.height, l = a - 8 - 36, c = i + 8, s = Ge(l >= Pe ? l : c, Pe, o - Pe - 36), u = Pe;
|
|
4346
4346
|
return {
|
|
4347
4347
|
top: s,
|
|
@@ -4349,15 +4349,15 @@ var Wc = (e) => {
|
|
|
4349
4349
|
available: Math.max(0, r - Pe * 2),
|
|
4350
4350
|
centre: t.x + e.x + e.width / 2 - u
|
|
4351
4351
|
};
|
|
4352
|
-
},
|
|
4353
|
-
const { chartId: c } = B(), s =
|
|
4352
|
+
}, Rd = ({ anchorBox: e, panelRect: t, frameWidth: r, frameHeight: o, label: a, testId: i, children: l }) => {
|
|
4353
|
+
const { chartId: c } = B(), s = Dd({
|
|
4354
4354
|
anchorBox: e,
|
|
4355
4355
|
panelRect: t,
|
|
4356
4356
|
frameWidth: r,
|
|
4357
4357
|
frameHeight: o
|
|
4358
4358
|
});
|
|
4359
4359
|
return /* @__PURE__ */ n("div", {
|
|
4360
|
-
className:
|
|
4360
|
+
className: Pd,
|
|
4361
4361
|
style: {
|
|
4362
4362
|
top: s.top,
|
|
4363
4363
|
left: s.left,
|
|
@@ -4365,17 +4365,17 @@ var Wc = (e) => {
|
|
|
4365
4365
|
},
|
|
4366
4366
|
children: /* @__PURE__ */ n(K.Root, {
|
|
4367
4367
|
"aria-label": a,
|
|
4368
|
-
className:
|
|
4368
|
+
className: Id,
|
|
4369
4369
|
"data-testid": i,
|
|
4370
4370
|
...Je(c),
|
|
4371
4371
|
style: lr({
|
|
4372
|
-
[
|
|
4373
|
-
[
|
|
4372
|
+
[kd]: `${s.centre}px`,
|
|
4373
|
+
[Ld]: `${s.available}px`
|
|
4374
4374
|
}),
|
|
4375
4375
|
children: l
|
|
4376
4376
|
})
|
|
4377
4377
|
});
|
|
4378
|
-
},
|
|
4378
|
+
}, zd = ({ label: e, trigger: t, isOpen: r, onOpenChange: o, isDisabled: a = !1, children: i }) => {
|
|
4379
4379
|
const { chartId: l } = B();
|
|
4380
4380
|
return /* @__PURE__ */ m(D.Root, {
|
|
4381
4381
|
open: r,
|
|
@@ -4384,7 +4384,7 @@ var Wc = (e) => {
|
|
|
4384
4384
|
children: [/* @__PURE__ */ m(D.Trigger, {
|
|
4385
4385
|
render: /* @__PURE__ */ n(K.Button, {}),
|
|
4386
4386
|
"aria-label": e,
|
|
4387
|
-
className:
|
|
4387
|
+
className: Od,
|
|
4388
4388
|
disabled: a,
|
|
4389
4389
|
onMouseDown: (c) => c.preventDefault(),
|
|
4390
4390
|
children: [t, /* @__PURE__ */ n(Ne, { size: "sm" })]
|
|
@@ -4393,44 +4393,44 @@ var Wc = (e) => {
|
|
|
4393
4393
|
children: i
|
|
4394
4394
|
})]
|
|
4395
4395
|
});
|
|
4396
|
-
},
|
|
4396
|
+
}, _d = (e) => {
|
|
4397
4397
|
const { chartId: t } = B();
|
|
4398
4398
|
return /* @__PURE__ */ n(K.ColorPicker, {
|
|
4399
4399
|
...e,
|
|
4400
4400
|
popupAttributes: Je(t)
|
|
4401
4401
|
});
|
|
4402
|
-
},
|
|
4403
|
-
className:
|
|
4402
|
+
}, Fd = ({ color: e, opacity: t }) => /* @__PURE__ */ n("span", {
|
|
4403
|
+
className: Ed,
|
|
4404
4404
|
style: {
|
|
4405
4405
|
background: e,
|
|
4406
4406
|
opacity: t
|
|
4407
4407
|
}
|
|
4408
|
-
}),
|
|
4408
|
+
}), Hd = ({ label: e, onClick: t, children: r }) => /* @__PURE__ */ n(K.Button, {
|
|
4409
4409
|
"aria-label": e,
|
|
4410
|
-
className:
|
|
4410
|
+
className: Md,
|
|
4411
4411
|
onClick: t,
|
|
4412
4412
|
children: r
|
|
4413
|
-
}),
|
|
4413
|
+
}), Bd = ({ label: e, isPressed: t, onClick: r, children: o }) => /* @__PURE__ */ n(K.Button, {
|
|
4414
4414
|
"aria-label": e,
|
|
4415
4415
|
"aria-pressed": t,
|
|
4416
|
-
className:
|
|
4416
|
+
className: Nd,
|
|
4417
4417
|
onClick: r,
|
|
4418
4418
|
children: o
|
|
4419
4419
|
}), I = {
|
|
4420
|
-
Root:
|
|
4421
|
-
Dropdown:
|
|
4420
|
+
Root: Rd,
|
|
4421
|
+
Dropdown: zd,
|
|
4422
4422
|
MenuItem: K.MenuItem,
|
|
4423
|
-
ColorPicker:
|
|
4424
|
-
Swatch:
|
|
4425
|
-
IconButton:
|
|
4426
|
-
ToggleButton:
|
|
4423
|
+
ColorPicker: _d,
|
|
4424
|
+
Swatch: Fd,
|
|
4425
|
+
IconButton: Hd,
|
|
4426
|
+
ToggleButton: Bd,
|
|
4427
4427
|
Button: K.Button,
|
|
4428
4428
|
Separator: K.Separator
|
|
4429
|
-
},
|
|
4429
|
+
}, Vd = { kind: "chrome-popup" }, et = () => {
|
|
4430
4430
|
const { commands: e } = B(), t = U(), [r, o] = J(null);
|
|
4431
4431
|
M(() => () => e.seal(), [e]), M(() => {
|
|
4432
4432
|
const { claimInteraction: i, releaseInteraction: l } = t.getState();
|
|
4433
|
-
return r === null ? l("chrome-popup") : i(
|
|
4433
|
+
return r === null ? l("chrome-popup") : i(Vd), () => l("chrome-popup");
|
|
4434
4434
|
}, [t, r]);
|
|
4435
4435
|
const a = () => {
|
|
4436
4436
|
o(null), e.seal();
|
|
@@ -4442,7 +4442,7 @@ var Wc = (e) => {
|
|
|
4442
4442
|
}),
|
|
4443
4443
|
close: a
|
|
4444
4444
|
};
|
|
4445
|
-
},
|
|
4445
|
+
}, Gd = (e) => /* @__PURE__ */ n(A, {
|
|
4446
4446
|
...e,
|
|
4447
4447
|
children: /* @__PURE__ */ m("g", {
|
|
4448
4448
|
stroke: "currentColor",
|
|
@@ -4454,7 +4454,7 @@ var Wc = (e) => {
|
|
|
4454
4454
|
/* @__PURE__ */ n("path", { d: "M16 8 19 5" })
|
|
4455
4455
|
]
|
|
4456
4456
|
})
|
|
4457
|
-
}),
|
|
4457
|
+
}), $d = (e) => /* @__PURE__ */ n(A, {
|
|
4458
4458
|
...e,
|
|
4459
4459
|
children: /* @__PURE__ */ n("path", {
|
|
4460
4460
|
d: "M5 19 19 5",
|
|
@@ -4462,7 +4462,7 @@ var Wc = (e) => {
|
|
|
4462
4462
|
strokeWidth: 2,
|
|
4463
4463
|
strokeLinecap: "round"
|
|
4464
4464
|
})
|
|
4465
|
-
}),
|
|
4465
|
+
}), Ud = [
|
|
4466
4466
|
{
|
|
4467
4467
|
value: "thin",
|
|
4468
4468
|
key: "graph.annotations.arrowToolbar.thickness.thin"
|
|
@@ -4486,14 +4486,14 @@ var Wc = (e) => {
|
|
|
4486
4486
|
}], un = [{
|
|
4487
4487
|
value: "solid",
|
|
4488
4488
|
key: "graph.annotations.arrowToolbar.lineStyle.solid",
|
|
4489
|
-
Icon:
|
|
4489
|
+
Icon: $d
|
|
4490
4490
|
}, {
|
|
4491
4491
|
value: "dashed",
|
|
4492
4492
|
key: "graph.annotations.arrowToolbar.lineStyle.dashed",
|
|
4493
|
-
Icon:
|
|
4494
|
-
}],
|
|
4495
|
-
var
|
|
4496
|
-
const l = k(), { commands: c } = B(), { themeValues: s } = ve(), u = et(), d = e.color ?? s.defaultAnnotationArrowStroke, h =
|
|
4493
|
+
Icon: Gd
|
|
4494
|
+
}], Wd = (e, t) => e.find((r) => r.value === t) ?? e[0];
|
|
4495
|
+
var Kd = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: o, frameHeight: a, frameElement: i }) => {
|
|
4496
|
+
const l = k(), { commands: c } = B(), { themeValues: s } = ve(), u = et(), d = e.color ?? s.defaultAnnotationArrowStroke, h = Wd(un, e.lineStyle), f = (E, V) => {
|
|
4497
4497
|
c.dispatch(new ee({
|
|
4498
4498
|
kind: "arrow",
|
|
4499
4499
|
id: e.id,
|
|
@@ -4527,14 +4527,14 @@ var Wd = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: o, frameHeight: a,
|
|
|
4527
4527
|
}),
|
|
4528
4528
|
...u.bind("thickness"),
|
|
4529
4529
|
children: /* @__PURE__ */ n(_e, {
|
|
4530
|
-
options:
|
|
4530
|
+
options: Ud,
|
|
4531
4531
|
current: e.thickness,
|
|
4532
4532
|
onPick: x
|
|
4533
4533
|
})
|
|
4534
4534
|
}),
|
|
4535
4535
|
/* @__PURE__ */ n(I.Dropdown, {
|
|
4536
4536
|
label: l("graph.annotations.arrowToolbar.startArrowhead"),
|
|
4537
|
-
trigger: /* @__PURE__ */ n(
|
|
4537
|
+
trigger: /* @__PURE__ */ n(Td, {
|
|
4538
4538
|
size: "sm",
|
|
4539
4539
|
title: ""
|
|
4540
4540
|
}),
|
|
@@ -4575,7 +4575,7 @@ var Wd = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: o, frameHeight: a,
|
|
|
4575
4575
|
label: l("graph.annotations.arrowToolbar.sticker"),
|
|
4576
4576
|
isPressed: e.hasStickerStyle,
|
|
4577
4577
|
onClick: b,
|
|
4578
|
-
children: /* @__PURE__ */ n(
|
|
4578
|
+
children: /* @__PURE__ */ n(Ad, {
|
|
4579
4579
|
size: "sm",
|
|
4580
4580
|
title: ""
|
|
4581
4581
|
})
|
|
@@ -4604,14 +4604,14 @@ var Wd = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: o, frameHeight: a,
|
|
|
4604
4604
|
})
|
|
4605
4605
|
})]
|
|
4606
4606
|
}, String(i.value))) });
|
|
4607
|
-
},
|
|
4607
|
+
}, qd = "_1me29t10", ne = (e, t) => t > 0 ? e / t : 0, tt = (e, t, r) => ({
|
|
4608
4608
|
x: ne(t.x - e.x, r.width),
|
|
4609
4609
|
y: ne(t.y - e.y, r.height)
|
|
4610
|
-
}),
|
|
4610
|
+
}), Xd = (e) => e.x !== 0 || e.y !== 0, Xr = (e, t) => ({
|
|
4611
4611
|
x: e.x * t.width,
|
|
4612
4612
|
y: e.y * t.height
|
|
4613
4613
|
});
|
|
4614
|
-
var
|
|
4614
|
+
var jd = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
|
|
4615
4615
|
constructor(e) {
|
|
4616
4616
|
this.params = e, this.listeners = new AbortController(), this.pendingEvent = null, this.scheduledFrame = null, this.hasMoved = !1, this.hasPublished = !1, this.handleMove = (t) => {
|
|
4617
4617
|
t.pointerId === this.params.pointerId && (this.pendingEvent = t, this.hasMoved = !0, this.scheduledFrame === null && (this.scheduledFrame = requestAnimationFrame(this.runFrame)));
|
|
@@ -4647,7 +4647,7 @@ var Xd = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
|
|
|
4647
4647
|
}
|
|
4648
4648
|
}
|
|
4649
4649
|
isDragConfirmed(e, t) {
|
|
4650
|
-
return
|
|
4650
|
+
return jd(e, t);
|
|
4651
4651
|
}
|
|
4652
4652
|
settle(e) {
|
|
4653
4653
|
this.pendingEvent = null;
|
|
@@ -4662,7 +4662,7 @@ var Xd = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
|
|
|
4662
4662
|
if (o === void 0) return null;
|
|
4663
4663
|
const a = o[r];
|
|
4664
4664
|
return a.anchorType === "panel" ? a : null;
|
|
4665
|
-
}, jr = (e, t) => e === "start" ? { start: t } : { end: t },
|
|
4665
|
+
}, jr = (e, t) => e === "start" ? { start: t } : { end: t }, Zd = class extends De {
|
|
4666
4666
|
constructor(...e) {
|
|
4667
4667
|
super(...e), this.kind = "arrow-endpoint-drag";
|
|
4668
4668
|
}
|
|
@@ -4691,7 +4691,7 @@ var Xd = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
|
|
|
4691
4691
|
patch: jr(r, e)
|
|
4692
4692
|
}));
|
|
4693
4693
|
}
|
|
4694
|
-
},
|
|
4694
|
+
}, Yd = ({ annotationId: e, arrow: t, panelRect: r }) => {
|
|
4695
4695
|
const { commands: o } = B(), a = U(), i = Y({
|
|
4696
4696
|
annotations: G((c) => c.spec.annotations),
|
|
4697
4697
|
arrow: t,
|
|
@@ -4704,7 +4704,7 @@ var Xd = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
|
|
|
4704
4704
|
} catch {
|
|
4705
4705
|
return;
|
|
4706
4706
|
}
|
|
4707
|
-
s.currentTarget.focus({ preventScroll: !0 }), s.preventDefault(), l.current = new
|
|
4707
|
+
s.currentTarget.focus({ preventScroll: !0 }), s.preventDefault(), l.current = new Zd({
|
|
4708
4708
|
handle: s.currentTarget,
|
|
4709
4709
|
pointerId: s.pointerId,
|
|
4710
4710
|
annotationId: e,
|
|
@@ -4727,7 +4727,7 @@ var Xd = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
|
|
|
4727
4727
|
a,
|
|
4728
4728
|
o
|
|
4729
4729
|
]);
|
|
4730
|
-
},
|
|
4730
|
+
}, Jd = [" ", "Enter"], hn = 4, Qd = ({ annotationId: e, arrow: t, panelRect: r }) => {
|
|
4731
4731
|
const { commands: o } = B(), a = U(), i = G((s) => s.spec.annotations), l = Y(i), c = Y(o.dispatch);
|
|
4732
4732
|
return M(() => () => {
|
|
4733
4733
|
for (const s of $r) pn({
|
|
@@ -4745,7 +4745,7 @@ var Xd = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
|
|
|
4745
4745
|
]), oe((s) => ({ onKeyDown: (u) => {
|
|
4746
4746
|
if (u.altKey || u.ctrlKey || u.metaKey || u.shiftKey) return;
|
|
4747
4747
|
const d = a.getState(), h = Tt(H(d, "arrow-endpoint-drag"), e, s);
|
|
4748
|
-
if (
|
|
4748
|
+
if (Jd.includes(u.key)) {
|
|
4749
4749
|
if (u.preventDefault(), u.repeat) return;
|
|
4750
4750
|
if (h !== null) {
|
|
4751
4751
|
pn({
|
|
@@ -4769,7 +4769,7 @@ var Xd = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
|
|
|
4769
4769
|
return;
|
|
4770
4770
|
}
|
|
4771
4771
|
if (h === null) return;
|
|
4772
|
-
const f =
|
|
4772
|
+
const f = eu(u.key, r);
|
|
4773
4773
|
f !== null && (u.preventDefault(), d.claimInteraction({
|
|
4774
4774
|
kind: "arrow-endpoint-drag",
|
|
4775
4775
|
annotationId: e,
|
|
@@ -4798,7 +4798,7 @@ var Xd = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
|
|
|
4798
4798
|
id: t,
|
|
4799
4799
|
patch: jr(r, l.anchor)
|
|
4800
4800
|
}));
|
|
4801
|
-
},
|
|
4801
|
+
}, eu = (e, t) => {
|
|
4802
4802
|
const r = ne(hn, t.width), o = ne(hn, t.height);
|
|
4803
4803
|
switch (e) {
|
|
4804
4804
|
case "ArrowLeft":
|
|
@@ -4824,11 +4824,11 @@ var Xd = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
|
|
|
4824
4824
|
default:
|
|
4825
4825
|
return null;
|
|
4826
4826
|
}
|
|
4827
|
-
},
|
|
4828
|
-
const t = Oe(), r =
|
|
4827
|
+
}, tu = (e) => {
|
|
4828
|
+
const t = Oe(), r = au(t), o = ou(e.panelRect, t), a = iu(t);
|
|
4829
4829
|
if (r === null || o === null) return null;
|
|
4830
4830
|
const i = a.dragged === null ? o : zt(o, a.dragged);
|
|
4831
|
-
return /* @__PURE__ */ n(
|
|
4831
|
+
return /* @__PURE__ */ n(nu, {
|
|
4832
4832
|
arrow: r,
|
|
4833
4833
|
committed: o,
|
|
4834
4834
|
painted: i,
|
|
@@ -4836,12 +4836,12 @@ var Xd = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
|
|
|
4836
4836
|
isMoved: a.isMoved,
|
|
4837
4837
|
...e
|
|
4838
4838
|
});
|
|
4839
|
-
},
|
|
4840
|
-
const s = k(), u =
|
|
4839
|
+
}, nu = ({ arrow: e, committed: t, painted: r, isSettled: o, isMoved: a, panelRect: i, frameRect: l, frameElement: c }) => {
|
|
4840
|
+
const s = k(), u = Yd({
|
|
4841
4841
|
annotationId: e.id,
|
|
4842
4842
|
arrow: t,
|
|
4843
4843
|
panelRect: i
|
|
4844
|
-
}), d =
|
|
4844
|
+
}), d = Qd({
|
|
4845
4845
|
annotationId: e.id,
|
|
4846
4846
|
arrow: t,
|
|
4847
4847
|
panelRect: i
|
|
@@ -4849,24 +4849,24 @@ var Xd = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
|
|
|
4849
4849
|
return /* @__PURE__ */ m("div", {
|
|
4850
4850
|
"data-testid": "arrow-selection",
|
|
4851
4851
|
"data-annotation-id": e.id,
|
|
4852
|
-
children: [o && /* @__PURE__ */ n(
|
|
4852
|
+
children: [o && /* @__PURE__ */ n(Kd, {
|
|
4853
4853
|
arrow: e,
|
|
4854
|
-
arrowBox:
|
|
4854
|
+
arrowBox: xd(t.start, t.end, i),
|
|
4855
4855
|
panelRect: i,
|
|
4856
4856
|
frameWidth: l.width,
|
|
4857
4857
|
frameHeight: l.height,
|
|
4858
4858
|
frameElement: c
|
|
4859
|
-
}), !a && $r.filter((h) => e[h].anchorType === "panel").map((h) => /* @__PURE__ */ n(
|
|
4859
|
+
}), !a && $r.filter((h) => e[h].anchorType === "panel").map((h) => /* @__PURE__ */ n(ru, {
|
|
4860
4860
|
endpoint: h,
|
|
4861
|
-
point:
|
|
4861
|
+
point: Sd(r[h], i),
|
|
4862
4862
|
label: s(`graph.annotations.arrowToolbar.moveEndpoint.${h}`),
|
|
4863
4863
|
dragHandlers: u(h),
|
|
4864
4864
|
keyboardHandlers: d(h)
|
|
4865
4865
|
}, h))]
|
|
4866
4866
|
});
|
|
4867
|
-
},
|
|
4867
|
+
}, ru = ({ endpoint: e, point: t, label: r, dragHandlers: o, keyboardHandlers: a }) => /* @__PURE__ */ n("div", {
|
|
4868
4868
|
"aria-label": r,
|
|
4869
|
-
className:
|
|
4869
|
+
className: qd,
|
|
4870
4870
|
"data-testid": "arrow-endpoint-handle",
|
|
4871
4871
|
"data-endpoint": e,
|
|
4872
4872
|
role: "button",
|
|
@@ -4877,13 +4877,13 @@ var Xd = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
|
|
|
4877
4877
|
tabIndex: 0,
|
|
4878
4878
|
...o,
|
|
4879
4879
|
...a
|
|
4880
|
-
}),
|
|
4880
|
+
}), au = (e) => {
|
|
4881
4881
|
const t = G((r) => r.spec.annotations.arrows);
|
|
4882
4882
|
return e === null ? null : t.find((r) => r.id === e) ?? null;
|
|
4883
|
-
},
|
|
4883
|
+
}, ou = (e, t) => {
|
|
4884
4884
|
const r = be(e).arrows;
|
|
4885
4885
|
return t === null ? null : r.find((o) => o.id === t) ?? null;
|
|
4886
|
-
},
|
|
4886
|
+
}, iu = (e) => X(Le((t) => {
|
|
4887
4887
|
if (e === null) return {
|
|
4888
4888
|
dragged: null,
|
|
4889
4889
|
isMoved: !1
|
|
@@ -4893,7 +4893,7 @@ var Xd = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
|
|
|
4893
4893
|
dragged: r?.annotationId === e ? r : null,
|
|
4894
4894
|
isMoved: Ze(H(t, "move-drag"), e) !== null
|
|
4895
4895
|
};
|
|
4896
|
-
})),
|
|
4896
|
+
})), lu = (e) => /* @__PURE__ */ n(A, {
|
|
4897
4897
|
...e,
|
|
4898
4898
|
children: /* @__PURE__ */ m("g", {
|
|
4899
4899
|
stroke: "currentColor",
|
|
@@ -4902,22 +4902,22 @@ var Xd = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
|
|
|
4902
4902
|
strokeLinejoin: "round",
|
|
4903
4903
|
children: [/* @__PURE__ */ n("path", { d: "M4 9h16m-4-4 4 4" }), /* @__PURE__ */ n("path", { d: "M20 15H4m4 4-4-4" })]
|
|
4904
4904
|
})
|
|
4905
|
-
}),
|
|
4906
|
-
var
|
|
4905
|
+
}), su = "q7gcrz0", cu = "q7gcrz1", du = "q7gcrz2";
|
|
4906
|
+
var uu = [
|
|
4907
4907
|
"absolute-difference",
|
|
4908
4908
|
"relative-difference",
|
|
4909
4909
|
"proportion"
|
|
4910
|
-
], mn = ["absolute-difference", "relative-difference"],
|
|
4910
|
+
], mn = ["absolute-difference", "relative-difference"], hu = ["relative-difference", "proportion"], pu = {
|
|
4911
4911
|
"absolute-difference": "graph.annotations.differenceArrowToolbar.labelKind.absoluteDifference",
|
|
4912
4912
|
"relative-difference": "graph.annotations.differenceArrowToolbar.labelKind.relativeDifference",
|
|
4913
4913
|
proportion: "graph.annotations.differenceArrowToolbar.labelKind.proportion"
|
|
4914
|
-
},
|
|
4914
|
+
}, mu = (e) => {
|
|
4915
4915
|
const { formattingLocale: t } = B(), r = G((a) => a.config.parsingLocale), o = t ?? r;
|
|
4916
4916
|
return O(() => {
|
|
4917
4917
|
const a = Ai(e.start, e.end);
|
|
4918
|
-
return
|
|
4918
|
+
return uu.filter((i) => a || !mn.includes(i) || i === e.label).map((i) => ({
|
|
4919
4919
|
kind: i,
|
|
4920
|
-
key:
|
|
4920
|
+
key: pu[i],
|
|
4921
4921
|
preview: qi({
|
|
4922
4922
|
locale: o,
|
|
4923
4923
|
kind: i,
|
|
@@ -4926,7 +4926,7 @@ var du = [
|
|
|
4926
4926
|
valueFormat: e.start.valueFormat
|
|
4927
4927
|
}),
|
|
4928
4928
|
isPickable: a || !mn.includes(i),
|
|
4929
|
-
isSuspect:
|
|
4929
|
+
isSuspect: hu.includes(i) && e.start.measurementValue === 0
|
|
4930
4930
|
}));
|
|
4931
4931
|
}, [e, o]);
|
|
4932
4932
|
}, lt = [
|
|
@@ -4942,8 +4942,8 @@ var du = [
|
|
|
4942
4942
|
id: "large",
|
|
4943
4943
|
key: "graph.annotations.differenceArrowToolbar.size.large"
|
|
4944
4944
|
}
|
|
4945
|
-
],
|
|
4946
|
-
const l = k(), { commands: c } = B(), s = et(), u =
|
|
4945
|
+
], gu = ({ arrow: e, labelBox: t, panelRect: r, frameWidth: o, frameHeight: a, frameElement: i }) => {
|
|
4946
|
+
const l = k(), { commands: c } = B(), s = et(), u = mu(e), d = u.find((b) => b.kind === e.label), h = u.some((b) => b.isPickable && b.kind !== e.label), f = lt.find((b) => b.id === e.size) ?? lt[0], p = (b, E) => {
|
|
4947
4947
|
c.dispatch(new ee({
|
|
4948
4948
|
kind: "differenceArrow",
|
|
4949
4949
|
id: e.id,
|
|
@@ -4967,7 +4967,7 @@ var du = [
|
|
|
4967
4967
|
children: [
|
|
4968
4968
|
/* @__PURE__ */ n(I.Dropdown, {
|
|
4969
4969
|
label: l("graph.annotations.differenceArrowToolbar.labelKind.ariaLabel"),
|
|
4970
|
-
trigger: /* @__PURE__ */ n(
|
|
4970
|
+
trigger: /* @__PURE__ */ n(fu, { option: d }),
|
|
4971
4971
|
isDisabled: !h,
|
|
4972
4972
|
...s.bind("labelKind"),
|
|
4973
4973
|
children: u.map((b) => /* @__PURE__ */ m(I.MenuItem, {
|
|
@@ -4983,7 +4983,7 @@ var du = [
|
|
|
4983
4983
|
children: "⚠"
|
|
4984
4984
|
}),
|
|
4985
4985
|
/* @__PURE__ */ n("span", {
|
|
4986
|
-
className:
|
|
4986
|
+
className: du,
|
|
4987
4987
|
children: b.preview
|
|
4988
4988
|
})
|
|
4989
4989
|
]
|
|
@@ -5011,7 +5011,7 @@ var du = [
|
|
|
5011
5011
|
/* @__PURE__ */ n(I.IconButton, {
|
|
5012
5012
|
label: l("graph.annotations.differenceArrowToolbar.swap"),
|
|
5013
5013
|
onClick: w,
|
|
5014
|
-
children: /* @__PURE__ */ n(
|
|
5014
|
+
children: /* @__PURE__ */ n(lu, {
|
|
5015
5015
|
size: "sm",
|
|
5016
5016
|
title: ""
|
|
5017
5017
|
})
|
|
@@ -5026,13 +5026,13 @@ var du = [
|
|
|
5026
5026
|
})
|
|
5027
5027
|
]
|
|
5028
5028
|
});
|
|
5029
|
-
},
|
|
5029
|
+
}, fu = ({ option: e }) => {
|
|
5030
5030
|
const t = k();
|
|
5031
5031
|
return e === void 0 ? null : /* @__PURE__ */ m(j, { children: [/* @__PURE__ */ n("span", {
|
|
5032
|
-
className:
|
|
5032
|
+
className: cu,
|
|
5033
5033
|
children: t(e.key)
|
|
5034
5034
|
}), /* @__PURE__ */ m("span", {
|
|
5035
|
-
className:
|
|
5035
|
+
className: su,
|
|
5036
5036
|
children: [
|
|
5037
5037
|
"(",
|
|
5038
5038
|
e.preview,
|
|
@@ -5040,8 +5040,8 @@ var du = [
|
|
|
5040
5040
|
]
|
|
5041
5041
|
})] });
|
|
5042
5042
|
};
|
|
5043
|
-
var
|
|
5044
|
-
const u =
|
|
5043
|
+
var vu = "ydgo3h0", bu = "ydgo3h1", Cu = "ydgo3h2", yu = ({ clientPoint: e, panelOrigin: t, panelRect: r, engine: o, layers: a, coordSystem: i, resolver: l, fixedAnchor: c, align: s }) => {
|
|
5044
|
+
const u = Su({
|
|
5045
5045
|
x: e.x - t.x,
|
|
5046
5046
|
y: e.y - t.y
|
|
5047
5047
|
}, r), { primary: d } = o.query(Pt(u, r));
|
|
@@ -5056,7 +5056,7 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5056
5056
|
align: s
|
|
5057
5057
|
});
|
|
5058
5058
|
return f === null || Qn(f.anchor, c) ? null : f;
|
|
5059
|
-
},
|
|
5059
|
+
}, Su = (e, t) => ({
|
|
5060
5060
|
x: Math.max(0, Math.min(e.x, t.width)),
|
|
5061
5061
|
y: Math.max(0, Math.min(e.y, t.height))
|
|
5062
5062
|
}), Zr = (e) => e === "start" ? "end" : "start", Yr = ({ dispatch: e, arrow: t, endpoint: r, anchor: o }) => {
|
|
@@ -5065,7 +5065,7 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5065
5065
|
id: t.id,
|
|
5066
5066
|
patch: { [r]: o }
|
|
5067
5067
|
}));
|
|
5068
|
-
},
|
|
5068
|
+
}, xu = class extends De {
|
|
5069
5069
|
constructor(...e) {
|
|
5070
5070
|
super(...e), this.kind = "difference-arrow-endpoint-drag";
|
|
5071
5071
|
}
|
|
@@ -5077,7 +5077,7 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5077
5077
|
return Bn(H(e, "difference-arrow-endpoint-drag"), r().arrow.id, t);
|
|
5078
5078
|
}
|
|
5079
5079
|
resolvePreview(e) {
|
|
5080
|
-
const { endpoint: t, readInputs: r, engine: o, anchorResolver: a } = this.params, { arrow: i, panelOrigin: l, panelRect: c, layers: s, coordSystem: u } = r(), d =
|
|
5080
|
+
const { endpoint: t, readInputs: r, engine: o, anchorResolver: a } = this.params, { arrow: i, panelOrigin: l, panelRect: c, layers: s, coordSystem: u } = r(), d = yu({
|
|
5081
5081
|
clientPoint: e,
|
|
5082
5082
|
panelOrigin: l,
|
|
5083
5083
|
panelRect: c,
|
|
@@ -5104,7 +5104,7 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5104
5104
|
anchor: e.anchor
|
|
5105
5105
|
});
|
|
5106
5106
|
}
|
|
5107
|
-
},
|
|
5107
|
+
}, wu = ({ arrow: e, panelOrigin: t, panelRect: r }) => {
|
|
5108
5108
|
const { commands: o, anchorResolver: a } = B(), { engine: i } = kt(), l = U(), c = Y({
|
|
5109
5109
|
arrow: e,
|
|
5110
5110
|
panelOrigin: t,
|
|
@@ -5121,7 +5121,7 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5121
5121
|
} catch {
|
|
5122
5122
|
return;
|
|
5123
5123
|
}
|
|
5124
|
-
d.currentTarget.focus({ preventScroll: !0 }), d.preventDefault(), s.current = new
|
|
5124
|
+
d.currentTarget.focus({ preventScroll: !0 }), d.preventDefault(), s.current = new xu({
|
|
5125
5125
|
handle: d.currentTarget,
|
|
5126
5126
|
pointerId: d.pointerId,
|
|
5127
5127
|
press: {
|
|
@@ -5146,7 +5146,7 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5146
5146
|
a,
|
|
5147
5147
|
o
|
|
5148
5148
|
]);
|
|
5149
|
-
},
|
|
5149
|
+
}, Tu = [" ", "Enter"], Au = ({ arrow: e }) => {
|
|
5150
5150
|
const { commands: t, anchorResolver: r } = B(), o = U(), { layers: a, coordSystem: i, mainAxis: l } = G(Le((s) => ({
|
|
5151
5151
|
layers: s.layers,
|
|
5152
5152
|
coordSystem: s.coordSystem,
|
|
@@ -5158,7 +5158,7 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5158
5158
|
}, [o, c]), oe((s) => ({ onKeyDown: (u) => {
|
|
5159
5159
|
if (u.altKey || u.ctrlKey || u.metaKey || u.shiftKey) return;
|
|
5160
5160
|
const d = o.getState(), h = Bn(H(d, "difference-arrow-endpoint-drag"), e.id, s);
|
|
5161
|
-
if (
|
|
5161
|
+
if (Tu.includes(u.key)) {
|
|
5162
5162
|
if (u.preventDefault(), u.repeat) return;
|
|
5163
5163
|
if (h === null) return d.claimInteraction({
|
|
5164
5164
|
kind: "difference-arrow-endpoint-drag",
|
|
@@ -5175,10 +5175,10 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5175
5175
|
return;
|
|
5176
5176
|
}
|
|
5177
5177
|
if (h === null) return;
|
|
5178
|
-
const f =
|
|
5178
|
+
const f = ku(u.key, l);
|
|
5179
5179
|
if (f === null) return;
|
|
5180
5180
|
u.preventDefault();
|
|
5181
|
-
const p =
|
|
5181
|
+
const p = Lu({
|
|
5182
5182
|
arrow: e,
|
|
5183
5183
|
endpoint: s,
|
|
5184
5184
|
from: h.point.anchor,
|
|
@@ -5202,19 +5202,19 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5202
5202
|
i,
|
|
5203
5203
|
l
|
|
5204
5204
|
]);
|
|
5205
|
-
},
|
|
5205
|
+
}, ku = (e, t) => {
|
|
5206
5206
|
const r = e === "ArrowUp" || e === "ArrowDown";
|
|
5207
5207
|
return !r && !(e === "ArrowLeft" || e === "ArrowRight") ? null : {
|
|
5208
5208
|
axis: t === "x" === r ? "cross" : "main",
|
|
5209
5209
|
step: e === "ArrowDown" || e === "ArrowRight" ? 1 : -1
|
|
5210
5210
|
};
|
|
5211
|
-
},
|
|
5211
|
+
}, Lu = ({ arrow: e, endpoint: t, from: r, move: o, layers: a, coordSystem: i, resolver: l }) => {
|
|
5212
5212
|
const c = a.find((d) => d.id === r.layerId);
|
|
5213
5213
|
if (c === void 0) return null;
|
|
5214
5214
|
const s = l.createLayerMeasurement(c);
|
|
5215
5215
|
if (s === null) return null;
|
|
5216
5216
|
const { align: u } = e[t].anchor;
|
|
5217
|
-
return
|
|
5217
|
+
return sl({
|
|
5218
5218
|
layer: c,
|
|
5219
5219
|
from: r,
|
|
5220
5220
|
partner: e[Zr(t)].anchor,
|
|
@@ -5229,15 +5229,15 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5229
5229
|
measurement: s
|
|
5230
5230
|
})
|
|
5231
5231
|
})?.point ?? null;
|
|
5232
|
-
},
|
|
5232
|
+
}, Pu = (e) => {
|
|
5233
5233
|
const t = Oe();
|
|
5234
|
-
return t === null ? null : /* @__PURE__ */ n(
|
|
5234
|
+
return t === null ? null : /* @__PURE__ */ n(Iu, {
|
|
5235
5235
|
annotationId: t,
|
|
5236
5236
|
...e
|
|
5237
5237
|
});
|
|
5238
|
-
},
|
|
5238
|
+
}, Iu = ({ annotationId: e, ...t }) => {
|
|
5239
5239
|
const r = po(), o = O(() => r.find((a) => a.id === e), [r, e]);
|
|
5240
|
-
return o === void 0 ? null : /* @__PURE__ */ n(
|
|
5240
|
+
return o === void 0 ? null : /* @__PURE__ */ n(Eu, {
|
|
5241
5241
|
committedArrow: o.committedArrow,
|
|
5242
5242
|
committedLabelBox: o.committedLabelBox,
|
|
5243
5243
|
labelBox: o.labelBox,
|
|
@@ -5246,16 +5246,16 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5246
5246
|
isDragged: o.isDragged,
|
|
5247
5247
|
...t
|
|
5248
5248
|
});
|
|
5249
|
-
},
|
|
5250
|
-
const d =
|
|
5249
|
+
}, Eu = ({ committedArrow: e, committedLabelBox: t, labelBox: r, start: o, end: a, panelRect: i, panelOrigin: l, frameRect: c, frameElement: s, isDragged: u }) => {
|
|
5250
|
+
const d = wu({
|
|
5251
5251
|
arrow: e,
|
|
5252
5252
|
panelOrigin: l,
|
|
5253
5253
|
panelRect: i
|
|
5254
|
-
}), h =
|
|
5254
|
+
}), h = Au({ arrow: e });
|
|
5255
5255
|
return /* @__PURE__ */ m("div", {
|
|
5256
5256
|
"data-testid": "difference-arrow-selection",
|
|
5257
5257
|
children: [
|
|
5258
|
-
!u && /* @__PURE__ */ n(
|
|
5258
|
+
!u && /* @__PURE__ */ n(gu, {
|
|
5259
5259
|
arrow: e,
|
|
5260
5260
|
labelBox: t,
|
|
5261
5261
|
panelRect: i,
|
|
@@ -5265,7 +5265,7 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5265
5265
|
}),
|
|
5266
5266
|
/* @__PURE__ */ n("div", {
|
|
5267
5267
|
"aria-hidden": "true",
|
|
5268
|
-
className:
|
|
5268
|
+
className: Cu,
|
|
5269
5269
|
"data-testid": "difference-arrow-selection-label",
|
|
5270
5270
|
style: {
|
|
5271
5271
|
left: i.x + r.x - 2,
|
|
@@ -5291,7 +5291,7 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5291
5291
|
]
|
|
5292
5292
|
});
|
|
5293
5293
|
}, gn = ({ endpoint: e, point: t, panelRect: r, dragHandlers: o, keyboardHandlers: a }) => /* @__PURE__ */ n("div", {
|
|
5294
|
-
className:
|
|
5294
|
+
className: vu,
|
|
5295
5295
|
"data-testid": "difference-arrow-selection-handle",
|
|
5296
5296
|
"data-endpoint": e,
|
|
5297
5297
|
role: "button",
|
|
@@ -5304,7 +5304,7 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5304
5304
|
...a,
|
|
5305
5305
|
children: /* @__PURE__ */ n("span", {
|
|
5306
5306
|
"aria-hidden": "true",
|
|
5307
|
-
className:
|
|
5307
|
+
className: bu
|
|
5308
5308
|
})
|
|
5309
5309
|
}), vt = ({ start: e, extent: t, isStartMoving: r, delta: o, minExtent: a }) => {
|
|
5310
5310
|
if (!Number.isFinite(o)) return {
|
|
@@ -5324,7 +5324,7 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5324
5324
|
start: e,
|
|
5325
5325
|
extent: Ge(i + o, c, s) - e
|
|
5326
5326
|
};
|
|
5327
|
-
},
|
|
5327
|
+
}, Mu = [
|
|
5328
5328
|
"top-left",
|
|
5329
5329
|
"top-right",
|
|
5330
5330
|
"bottom-right",
|
|
@@ -5333,7 +5333,7 @@ var fu = "ydgo3h0", vu = "ydgo3h1", bu = "ydgo3h2", Cu = ({ clientPoint: e, pane
|
|
|
5333
5333
|
var Jr = ({ width: e, height: t }) => ({
|
|
5334
5334
|
x: ne(16, e),
|
|
5335
5335
|
y: ne(16, t)
|
|
5336
|
-
}),
|
|
5336
|
+
}), Nu = (e, t) => ({
|
|
5337
5337
|
x: ta(t) ? e.x : e.x + e.width,
|
|
5338
5338
|
y: na(t) ? e.y : e.y + e.height
|
|
5339
5339
|
}), _t = (e) => ({
|
|
@@ -5366,13 +5366,13 @@ var Jr = ({ width: e, height: t }) => ({
|
|
|
5366
5366
|
const a = e.textAnnotations.find((i) => i.id === t);
|
|
5367
5367
|
return a === void 0 ? null : io(mo(a, r), o);
|
|
5368
5368
|
};
|
|
5369
|
-
var
|
|
5369
|
+
var Ou = {
|
|
5370
5370
|
hovered: "_1ee8fau1 _1ee8fau0",
|
|
5371
5371
|
selected: "_1ee8fau2 _1ee8fau0"
|
|
5372
|
-
},
|
|
5372
|
+
}, Du = {
|
|
5373
5373
|
hovered: "_1ee8fau4 _1ee8fau3",
|
|
5374
5374
|
selected: "_1ee8fau5 _1ee8fau3"
|
|
5375
|
-
},
|
|
5375
|
+
}, Ru = ({ panelRect: e }) => {
|
|
5376
5376
|
const t = be(e), r = Hn(), o = Oe(), a = X((g) => H(g, "move-drag")), i = X((g) => H(g, "shape-resize-drag")), l = X((g) => H(g, "arrow-endpoint-drag")), c = X((g) => H(g, "text-resize-drag")), s = X((g) => {
|
|
5377
5377
|
const v = g.editTargetUnderPointer;
|
|
5378
5378
|
return v?.kind === "annotation" ? v.id : null;
|
|
@@ -5438,7 +5438,7 @@ var Nu = {
|
|
|
5438
5438
|
})]
|
|
5439
5439
|
}) : /* @__PURE__ */ n("div", {
|
|
5440
5440
|
"aria-hidden": "true",
|
|
5441
|
-
className:
|
|
5441
|
+
className: Ou[r],
|
|
5442
5442
|
"data-testid": "annotation-chrome",
|
|
5443
5443
|
"data-annotation-id": e,
|
|
5444
5444
|
"data-state": r,
|
|
@@ -5449,12 +5449,12 @@ var Nu = {
|
|
|
5449
5449
|
height: t.rect.height + 4
|
|
5450
5450
|
}
|
|
5451
5451
|
}), bn = ({ point: e, state: t, origin: r }) => /* @__PURE__ */ n("span", {
|
|
5452
|
-
className:
|
|
5452
|
+
className: Du[t],
|
|
5453
5453
|
style: {
|
|
5454
5454
|
left: r.x + e.x,
|
|
5455
5455
|
top: r.y + e.y
|
|
5456
5456
|
}
|
|
5457
|
-
}),
|
|
5457
|
+
}), zu = ({ panelRect: e }) => {
|
|
5458
5458
|
const t = X((a) => H(a, "move-drag")), r = be(e);
|
|
5459
5459
|
if (t === null) return null;
|
|
5460
5460
|
const o = Xr(t.translation, e);
|
|
@@ -5469,16 +5469,16 @@ var Nu = {
|
|
|
5469
5469
|
},
|
|
5470
5470
|
"data-testid": "annotation-preview",
|
|
5471
5471
|
"data-annotation-id": t.annotationId,
|
|
5472
|
-
children:
|
|
5472
|
+
children: Hu(r, t.annotationId, e)
|
|
5473
5473
|
});
|
|
5474
|
-
},
|
|
5474
|
+
}, _u = ({ annotation: e }) => /* @__PURE__ */ n(yo, {
|
|
5475
5475
|
annotation: e,
|
|
5476
5476
|
blockRef: ro(e.id)
|
|
5477
5477
|
}), Fe = (e, t, r) => {
|
|
5478
5478
|
const o = e.find((a) => a.id === t);
|
|
5479
5479
|
return o === void 0 ? null : r(o);
|
|
5480
|
-
},
|
|
5481
|
-
text: (e, t) => Fe(e.textAnnotations, t, (r) => /* @__PURE__ */ n(
|
|
5480
|
+
}, Fu = {
|
|
5481
|
+
text: (e, t) => Fe(e.textAnnotations, t, (r) => /* @__PURE__ */ n(_u, { annotation: r })),
|
|
5482
5482
|
shape: (e, t) => Fe(e.shapes, t, (r) => /* @__PURE__ */ n(Vn, { shape: r })),
|
|
5483
5483
|
image: (e, t) => Fe(e.images, t, (r) => /* @__PURE__ */ n(bo, { image: r })),
|
|
5484
5484
|
arrow: (e, t, r) => Fe(e.arrows, t, (o) => {
|
|
@@ -5492,13 +5492,13 @@ var Nu = {
|
|
|
5492
5492
|
isAddressable: !1
|
|
5493
5493
|
});
|
|
5494
5494
|
})
|
|
5495
|
-
},
|
|
5496
|
-
for (const o of Object.values(
|
|
5495
|
+
}, Hu = (e, t, r) => {
|
|
5496
|
+
for (const o of Object.values(Fu)) {
|
|
5497
5497
|
const a = o(e, t, r);
|
|
5498
5498
|
if (a !== null) return a;
|
|
5499
5499
|
}
|
|
5500
5500
|
return null;
|
|
5501
|
-
},
|
|
5501
|
+
}, Bu = ({ panelRect: e }) => {
|
|
5502
5502
|
const t = X((a) => H(a, "shape-resize-drag")), r = be(e).shapes;
|
|
5503
5503
|
if (t === null) return null;
|
|
5504
5504
|
const o = r.find((a) => a.id === t.annotationId);
|
|
@@ -5518,16 +5518,16 @@ var Nu = {
|
|
|
5518
5518
|
region: _t(t.region)
|
|
5519
5519
|
} })
|
|
5520
5520
|
});
|
|
5521
|
-
},
|
|
5521
|
+
}, Vu = {
|
|
5522
5522
|
sm: "o49ib40",
|
|
5523
5523
|
md: "o49ib41"
|
|
5524
|
-
},
|
|
5524
|
+
}, Gu = {
|
|
5525
5525
|
horizontal: "o49ib42",
|
|
5526
5526
|
diagonalDown: "o49ib43",
|
|
5527
5527
|
diagonalUp: "o49ib44"
|
|
5528
5528
|
}, aa = ({ point: e, label: t, pull: r, size: o, attributes: a, dragHandlers: i, keyboardHandlers: l }) => /* @__PURE__ */ n("div", {
|
|
5529
5529
|
"aria-label": t,
|
|
5530
|
-
className:
|
|
5530
|
+
className: Gu[r],
|
|
5531
5531
|
role: "button",
|
|
5532
5532
|
style: {
|
|
5533
5533
|
left: e.x,
|
|
@@ -5539,7 +5539,7 @@ var Nu = {
|
|
|
5539
5539
|
...l,
|
|
5540
5540
|
children: /* @__PURE__ */ n("span", {
|
|
5541
5541
|
"aria-hidden": "true",
|
|
5542
|
-
className:
|
|
5542
|
+
className: Vu[o]
|
|
5543
5543
|
})
|
|
5544
5544
|
}), bt = [
|
|
5545
5545
|
{
|
|
@@ -5558,8 +5558,8 @@ var Nu = {
|
|
|
5558
5558
|
width: 16,
|
|
5559
5559
|
key: "graph.annotations.shapeToolbar.border.thick"
|
|
5560
5560
|
}
|
|
5561
|
-
],
|
|
5562
|
-
const l = k(), { commands: c } = B(), { themeValues: s } = ve(), u = et(), d = e.fillColor ?? s.defaultAnnotationShapeFill, h =
|
|
5561
|
+
], $u = (e) => [...bt].reverse().find((t) => t.width <= e) ?? bt[0], Uu = ({ shape: e, shapeBox: t, panelRect: r, frameWidth: o, frameHeight: a, frameElement: i }) => {
|
|
5562
|
+
const l = k(), { commands: c } = B(), { themeValues: s } = ve(), u = et(), d = e.fillColor ?? s.defaultAnnotationShapeFill, h = $u(e.strokeWidth), f = (w, y) => {
|
|
5563
5563
|
c.dispatch(new ee({
|
|
5564
5564
|
kind: "shape",
|
|
5565
5565
|
id: e.id,
|
|
@@ -5643,7 +5643,7 @@ var Nu = {
|
|
|
5643
5643
|
}, We = (e, t) => {
|
|
5644
5644
|
const r = e.shapes.find((o) => o.id === t);
|
|
5645
5645
|
return r === void 0 || r.region.anchorType !== "panel" ? null : r.region;
|
|
5646
|
-
},
|
|
5646
|
+
}, Wu = class extends De {
|
|
5647
5647
|
constructor(...e) {
|
|
5648
5648
|
super(...e), this.kind = "shape-resize-drag";
|
|
5649
5649
|
}
|
|
@@ -5671,12 +5671,12 @@ var Nu = {
|
|
|
5671
5671
|
patch: { region: e }
|
|
5672
5672
|
}));
|
|
5673
5673
|
}
|
|
5674
|
-
},
|
|
5674
|
+
}, Ku = ({ annotationId: e, panelRect: t }) => {
|
|
5675
5675
|
const { commands: r } = B(), o = U(), a = Y({
|
|
5676
5676
|
annotations: G((i) => i.spec.annotations),
|
|
5677
5677
|
panelRect: t
|
|
5678
5678
|
});
|
|
5679
|
-
return oa((i, l) => new
|
|
5679
|
+
return oa((i, l) => new Wu({
|
|
5680
5680
|
...l,
|
|
5681
5681
|
annotationId: e,
|
|
5682
5682
|
corner: i,
|
|
@@ -5684,12 +5684,12 @@ var Nu = {
|
|
|
5684
5684
|
editorStore: o,
|
|
5685
5685
|
dispatch: r.dispatch
|
|
5686
5686
|
}));
|
|
5687
|
-
},
|
|
5687
|
+
}, qu = [" ", "Enter"], ia = (e) => {
|
|
5688
5688
|
const t = U(), r = Y(e);
|
|
5689
5689
|
return M(() => () => Cn(t, r.current), [t, r]), oe((o) => ({ onKeyDown: (a) => {
|
|
5690
5690
|
if (a.altKey || a.ctrlKey || a.metaKey || a.shiftKey) return;
|
|
5691
5691
|
const i = t.getState(), l = r.current.readHeld();
|
|
5692
|
-
if (
|
|
5692
|
+
if (qu.includes(a.key)) {
|
|
5693
5693
|
if (a.preventDefault(), a.repeat) return;
|
|
5694
5694
|
if (l !== null) {
|
|
5695
5695
|
Cn(t, r.current);
|
|
@@ -5707,7 +5707,7 @@ var Nu = {
|
|
|
5707
5707
|
}, Cn = (e, t) => {
|
|
5708
5708
|
const r = t.readHeld();
|
|
5709
5709
|
r !== null && (e.getState().releaseInteraction(r.kind), t.commit(r));
|
|
5710
|
-
}, yn = 4,
|
|
5710
|
+
}, yn = 4, Xu = ({ annotationId: e, panelRect: t }) => {
|
|
5711
5711
|
const { commands: r } = B(), o = U(), a = G((i) => i.spec.annotations);
|
|
5712
5712
|
return ia({
|
|
5713
5713
|
readHeld: () => wt(H(o.getState(), "shape-resize-drag"), e),
|
|
@@ -5720,7 +5720,7 @@ var Nu = {
|
|
|
5720
5720
|
};
|
|
5721
5721
|
},
|
|
5722
5722
|
step: (i, l, c) => {
|
|
5723
|
-
const s =
|
|
5723
|
+
const s = ju(c, t);
|
|
5724
5724
|
return s === null ? null : {
|
|
5725
5725
|
kind: "shape-resize-drag",
|
|
5726
5726
|
annotationId: e,
|
|
@@ -5741,7 +5741,7 @@ var Nu = {
|
|
|
5741
5741
|
}));
|
|
5742
5742
|
}
|
|
5743
5743
|
});
|
|
5744
|
-
},
|
|
5744
|
+
}, ju = (e, t) => {
|
|
5745
5745
|
const r = ne(yn, t.width), o = ne(yn, t.height);
|
|
5746
5746
|
switch (e) {
|
|
5747
5747
|
case "ArrowLeft":
|
|
@@ -5767,49 +5767,49 @@ var Nu = {
|
|
|
5767
5767
|
default:
|
|
5768
5768
|
return null;
|
|
5769
5769
|
}
|
|
5770
|
-
},
|
|
5770
|
+
}, Zu = {
|
|
5771
5771
|
"top-left": "diagonalDown",
|
|
5772
5772
|
"bottom-right": "diagonalDown",
|
|
5773
5773
|
"top-right": "diagonalUp",
|
|
5774
5774
|
"bottom-left": "diagonalUp"
|
|
5775
|
-
},
|
|
5776
|
-
const t = Oe(), r =
|
|
5775
|
+
}, Yu = (e) => {
|
|
5776
|
+
const t = Oe(), r = Qu(t), o = eh(t);
|
|
5777
5777
|
if (r === null) return null;
|
|
5778
5778
|
const a = o.resizedRegion ?? (r.region.anchorType === "panel" ? r.region : null);
|
|
5779
|
-
return a === null ? null : /* @__PURE__ */ n(
|
|
5779
|
+
return a === null ? null : /* @__PURE__ */ n(Ju, {
|
|
5780
5780
|
shape: r,
|
|
5781
5781
|
region: a,
|
|
5782
5782
|
isSettled: o.resizedRegion === null && !o.isMoved,
|
|
5783
5783
|
isMoved: o.isMoved,
|
|
5784
5784
|
...e
|
|
5785
5785
|
});
|
|
5786
|
-
},
|
|
5787
|
-
const c = k(), s =
|
|
5786
|
+
}, Ju = ({ shape: e, region: t, isSettled: r, isMoved: o, panelRect: a, frameRect: i, frameElement: l }) => {
|
|
5787
|
+
const c = k(), s = Ku({
|
|
5788
5788
|
annotationId: e.id,
|
|
5789
5789
|
panelRect: a
|
|
5790
|
-
}), u =
|
|
5790
|
+
}), u = Xu({
|
|
5791
5791
|
annotationId: e.id,
|
|
5792
5792
|
panelRect: a
|
|
5793
5793
|
}), { rect: d } = Un(_t(t), e.strokeWidth, a);
|
|
5794
5794
|
return /* @__PURE__ */ m("div", {
|
|
5795
5795
|
"data-testid": "shape-selection",
|
|
5796
5796
|
"data-annotation-id": e.id,
|
|
5797
|
-
children: [r && /* @__PURE__ */ n(
|
|
5797
|
+
children: [r && /* @__PURE__ */ n(Uu, {
|
|
5798
5798
|
shape: e,
|
|
5799
5799
|
shapeBox: d,
|
|
5800
5800
|
panelRect: a,
|
|
5801
5801
|
frameWidth: i.width,
|
|
5802
5802
|
frameHeight: i.height,
|
|
5803
5803
|
frameElement: l
|
|
5804
|
-
}), !o &&
|
|
5805
|
-
const f =
|
|
5804
|
+
}), !o && Mu.map((h) => {
|
|
5805
|
+
const f = Nu(d, h);
|
|
5806
5806
|
return /* @__PURE__ */ n(aa, {
|
|
5807
5807
|
point: {
|
|
5808
5808
|
x: a.x + f.x,
|
|
5809
5809
|
y: a.y + f.y
|
|
5810
5810
|
},
|
|
5811
5811
|
label: c(`graph.annotations.shapeToolbar.resize.${h}`),
|
|
5812
|
-
pull:
|
|
5812
|
+
pull: Zu[h],
|
|
5813
5813
|
size: "md",
|
|
5814
5814
|
attributes: {
|
|
5815
5815
|
"data-testid": "shape-resize-handle",
|
|
@@ -5820,16 +5820,16 @@ var Nu = {
|
|
|
5820
5820
|
}, h);
|
|
5821
5821
|
})]
|
|
5822
5822
|
});
|
|
5823
|
-
},
|
|
5823
|
+
}, Qu = (e) => {
|
|
5824
5824
|
const t = G((r) => r.spec.annotations.shapes);
|
|
5825
5825
|
return e === null ? null : t.find((r) => r.id === e) ?? null;
|
|
5826
|
-
},
|
|
5826
|
+
}, eh = (e) => X(Le((t) => e === null ? {
|
|
5827
5827
|
resizedRegion: null,
|
|
5828
5828
|
isMoved: !1
|
|
5829
5829
|
} : {
|
|
5830
5830
|
resizedRegion: wt(H(t, "shape-resize-drag"), e)?.region ?? null,
|
|
5831
5831
|
isMoved: Ze(H(t, "move-drag"), e) !== null
|
|
5832
|
-
})),
|
|
5832
|
+
})), th = ({ textColor: e, ...t }) => /* @__PURE__ */ m(A, {
|
|
5833
5833
|
...t,
|
|
5834
5834
|
children: [/* @__PURE__ */ m("g", {
|
|
5835
5835
|
stroke: "currentColor",
|
|
@@ -5843,15 +5843,15 @@ var Nu = {
|
|
|
5843
5843
|
strokeLinecap: "round"
|
|
5844
5844
|
})]
|
|
5845
5845
|
});
|
|
5846
|
-
var Ke = "textStyle", la = /* @__PURE__ */ new Set(["paragraph", "heading"]),
|
|
5847
|
-
const t = sa(e), r =
|
|
5846
|
+
var Ke = "textStyle", la = /* @__PURE__ */ new Set(["paragraph", "heading"]), nh = (e) => {
|
|
5847
|
+
const t = sa(e), r = sh(e);
|
|
5848
5848
|
return {
|
|
5849
|
-
color: He(t.map((o) =>
|
|
5850
|
-
font: He(t.map((o) =>
|
|
5851
|
-
fontSize: He(t.map((o) =>
|
|
5852
|
-
alignment: He(r.map((o) =>
|
|
5849
|
+
color: He(t.map((o) => ch(st(o)?.color))),
|
|
5850
|
+
font: He(t.map((o) => lh(st(o)))),
|
|
5851
|
+
fontSize: He(t.map((o) => dh(st(o)?.fontSize))),
|
|
5852
|
+
alignment: He(r.map((o) => uh(o.attrs?.textAlign)))
|
|
5853
5853
|
};
|
|
5854
|
-
},
|
|
5854
|
+
}, rh = (e, t) => Ft(e, (r) => r.type === "text" ? ih(r, t) : r), ah = (e) => sa(e).length > 0, oh = (e, t) => Ft(e, (r) => la.has(r.type ?? "") ? {
|
|
5855
5855
|
...r,
|
|
5856
5856
|
attrs: {
|
|
5857
5857
|
...r.attrs,
|
|
@@ -5860,7 +5860,7 @@ var Ke = "textStyle", la = /* @__PURE__ */ new Set(["paragraph", "heading"]), th
|
|
|
5860
5860
|
} : r), Ft = (e, t) => t(e.content === void 0 ? e : {
|
|
5861
5861
|
...e,
|
|
5862
5862
|
content: e.content.map((r) => Ft(r, t))
|
|
5863
|
-
}),
|
|
5863
|
+
}), ih = (e, t) => {
|
|
5864
5864
|
const r = e.marks ?? [], o = r.find((i) => i.type === Ke), a = {
|
|
5865
5865
|
type: Ke,
|
|
5866
5866
|
attrs: {
|
|
@@ -5872,10 +5872,10 @@ var Ke = "textStyle", la = /* @__PURE__ */ new Set(["paragraph", "heading"]), th
|
|
|
5872
5872
|
...e,
|
|
5873
5873
|
marks: o === void 0 ? [...r, a] : r.map((i) => i === o ? a : i)
|
|
5874
5874
|
};
|
|
5875
|
-
}, st = (e) => e.marks?.find((t) => t.type === Ke)?.attrs,
|
|
5875
|
+
}, st = (e) => e.marks?.find((t) => t.type === Ke)?.attrs, lh = (e) => Kt(e?.font) ?? Kt(e?.fontFamily), sa = (e) => Ht(e, (t) => t.type === "text"), sh = (e) => Ht(e, (t) => la.has(t.type ?? "")), Ht = (e, t) => [...t(e) ? [e] : [], ...(e.content ?? []).flatMap((r) => Ht(r, t))], He = (e) => {
|
|
5876
5876
|
const [t, ...r] = e;
|
|
5877
5877
|
return t === void 0 ? null : r.every((o) => o === t) ? t : null;
|
|
5878
|
-
},
|
|
5878
|
+
}, ch = (e) => typeof e == "string" && e.length > 0 ? e : void 0, dh = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, uh = (e) => e === "left" || e === "center" || e === "right" ? e : void 0;
|
|
5879
5879
|
var ca = [
|
|
5880
5880
|
{
|
|
5881
5881
|
id: "modern",
|
|
@@ -5901,7 +5901,7 @@ var ca = [
|
|
|
5901
5901
|
id: e,
|
|
5902
5902
|
key: t,
|
|
5903
5903
|
fontFamily: Qa[e] ?? e
|
|
5904
|
-
})),
|
|
5904
|
+
})), hh = (e) => ca.find((t) => t.id === (e ?? "modern")) ?? null;
|
|
5905
5905
|
var da = [
|
|
5906
5906
|
{
|
|
5907
5907
|
size: 12,
|
|
@@ -5923,7 +5923,7 @@ var da = [
|
|
|
5923
5923
|
size: 32,
|
|
5924
5924
|
key: "graph.annotations.textToolbar.fontSize.huge"
|
|
5925
5925
|
}
|
|
5926
|
-
],
|
|
5926
|
+
], ph = (e) => da.find((t) => t.size === (e ?? 16)) ?? null, mh = (e) => `${e / 10}em`, gh = [
|
|
5927
5927
|
{
|
|
5928
5928
|
alignment: "left",
|
|
5929
5929
|
Icon: Ir
|
|
@@ -5936,8 +5936,8 @@ var da = [
|
|
|
5936
5936
|
alignment: "right",
|
|
5937
5937
|
Icon: Pr
|
|
5938
5938
|
}
|
|
5939
|
-
],
|
|
5940
|
-
const l = k(), { commands: c } = B(), { themeValues: s } = ve(), u = U(), d = et(), h =
|
|
5939
|
+
], fh = ({ annotation: e, textBox: t, panelRect: r, frameWidth: o, frameHeight: a, frameElement: i }) => {
|
|
5940
|
+
const l = k(), { commands: c } = B(), { themeValues: s } = ve(), u = U(), d = et(), h = nh(e.content), f = hh(h.font), p = ph(h.fontSize), g = h.color ?? s.textPrimary, v = (P, N) => {
|
|
5941
5941
|
c.dispatch(new ee({
|
|
5942
5942
|
kind: "text",
|
|
5943
5943
|
id: e.id,
|
|
@@ -5945,18 +5945,18 @@ var da = [
|
|
|
5945
5945
|
}), N);
|
|
5946
5946
|
}, x = () => u.getState().caret?.editor?.getJSON() ?? e.content, w = (P, N) => {
|
|
5947
5947
|
const T = x(), F = u.getState().caret?.editor ?? null;
|
|
5948
|
-
if (F !== null && !
|
|
5948
|
+
if (F !== null && !ah(T)) {
|
|
5949
5949
|
F.chain().focus().setMark(Ke, P).run();
|
|
5950
5950
|
return;
|
|
5951
5951
|
}
|
|
5952
|
-
v({ content:
|
|
5952
|
+
v({ content: rh(T, P) }, N);
|
|
5953
5953
|
}, y = () => {
|
|
5954
5954
|
c.dispatch(new Ae({ id: e.id })), i.focus({ preventScroll: !0 });
|
|
5955
|
-
}, L = (P) => v(
|
|
5955
|
+
}, L = (P) => v(vh(P), { transient: !0 }), b = (P) => w({ color: P }, { transient: !0 }), E = (P) => () => {
|
|
5956
5956
|
w({ font: P }), d.close();
|
|
5957
5957
|
}, V = (P) => () => {
|
|
5958
5958
|
w({ fontSize: P }), d.close();
|
|
5959
|
-
}, _ = (P) => v({ content:
|
|
5959
|
+
}, _ = (P) => v({ content: oh(x(), P) });
|
|
5960
5960
|
return /* @__PURE__ */ m(I.Root, {
|
|
5961
5961
|
anchorBox: t,
|
|
5962
5962
|
panelRect: r,
|
|
@@ -5978,7 +5978,7 @@ var da = [
|
|
|
5978
5978
|
label: l("graph.annotations.textToolbar.color"),
|
|
5979
5979
|
onChange: b,
|
|
5980
5980
|
...d.bind("color"),
|
|
5981
|
-
children: /* @__PURE__ */ n(
|
|
5981
|
+
children: /* @__PURE__ */ n(th, {
|
|
5982
5982
|
size: "sm",
|
|
5983
5983
|
textColor: g,
|
|
5984
5984
|
title: ""
|
|
@@ -6008,13 +6008,13 @@ var da = [
|
|
|
6008
6008
|
isSelected: P.size === p?.size,
|
|
6009
6009
|
onClick: V(P.size),
|
|
6010
6010
|
children: /* @__PURE__ */ n("span", {
|
|
6011
|
-
style: { fontSize:
|
|
6011
|
+
style: { fontSize: mh(P.size) },
|
|
6012
6012
|
children: l(P.key)
|
|
6013
6013
|
})
|
|
6014
6014
|
}, P.size))
|
|
6015
6015
|
}),
|
|
6016
6016
|
/* @__PURE__ */ n(I.Separator, {}),
|
|
6017
|
-
/* @__PURE__ */ n(
|
|
6017
|
+
/* @__PURE__ */ n(bh, {
|
|
6018
6018
|
current: h.alignment ?? "center",
|
|
6019
6019
|
onPick: _
|
|
6020
6020
|
}),
|
|
@@ -6029,12 +6029,12 @@ var da = [
|
|
|
6029
6029
|
})
|
|
6030
6030
|
]
|
|
6031
6031
|
});
|
|
6032
|
-
},
|
|
6032
|
+
}, vh = (e) => e === "transparent" ? { backgroundColor: null } : {
|
|
6033
6033
|
backgroundColor: e,
|
|
6034
|
-
backgroundColorStyle:
|
|
6035
|
-
},
|
|
6034
|
+
backgroundColorStyle: bs(e) ? "fade" : "opaque"
|
|
6035
|
+
}, bh = ({ current: e, onPick: t }) => {
|
|
6036
6036
|
const r = k(), o = (a) => () => t(a);
|
|
6037
|
-
return /* @__PURE__ */ n(j, { children:
|
|
6037
|
+
return /* @__PURE__ */ n(j, { children: gh.map((a) => /* @__PURE__ */ n(I.ToggleButton, {
|
|
6038
6038
|
label: r(`graph.annotations.textToolbar.align.${a.alignment}`),
|
|
6039
6039
|
isPressed: a.alignment === e,
|
|
6040
6040
|
onClick: o(a.alignment),
|
|
@@ -6043,8 +6043,8 @@ var da = [
|
|
|
6043
6043
|
title: ""
|
|
6044
6044
|
})
|
|
6045
6045
|
}, a.alignment)) });
|
|
6046
|
-
},
|
|
6047
|
-
var ua = ({ width: e }) => ne(60, e),
|
|
6046
|
+
}, Ch = ["left", "right"];
|
|
6047
|
+
var ua = ({ width: e }) => ne(60, e), yh = (e, t) => ({
|
|
6048
6048
|
x: t === "left" ? e.x : e.x + e.width,
|
|
6049
6049
|
y: e.y + e.height / 2
|
|
6050
6050
|
}), ha = ({ at: e, width: t, align: r, edge: o, delta: a, minWidth: i, panelWidth: l }) => {
|
|
@@ -6053,7 +6053,7 @@ var ua = ({ width: e }) => ne(60, e), Ch = (e, t) => ({
|
|
|
6053
6053
|
width: t,
|
|
6054
6054
|
shift: 0
|
|
6055
6055
|
};
|
|
6056
|
-
const c = Ti(r).x, s =
|
|
6056
|
+
const c = Ti(r).x, s = Sh(e.offset, l), u = vt({
|
|
6057
6057
|
start: e.x + s - c * t,
|
|
6058
6058
|
extent: t,
|
|
6059
6059
|
isStartMoving: o === "left",
|
|
@@ -6068,14 +6068,14 @@ var ua = ({ width: e }) => ne(60, e), Ch = (e, t) => ({
|
|
|
6068
6068
|
width: u.extent,
|
|
6069
6069
|
shift: d - e.x
|
|
6070
6070
|
};
|
|
6071
|
-
}, pa = (e, t) => e.at.x === t.at.x && e.width === t.width,
|
|
6071
|
+
}, pa = (e, t) => e.at.x === t.at.x && e.width === t.width, Sh = (e, t) => e?.x === void 0 ? 0 : e.unit === "px" ? ne(e.x, t) : e.x, qe = (e, t) => {
|
|
6072
6072
|
const r = e.textAnnotations.find((o) => o.id === t);
|
|
6073
6073
|
return r === void 0 || r.at.anchorType !== "panel" ? null : {
|
|
6074
6074
|
at: r.at,
|
|
6075
6075
|
width: r.width,
|
|
6076
6076
|
align: r.align
|
|
6077
6077
|
};
|
|
6078
|
-
},
|
|
6078
|
+
}, xh = class extends De {
|
|
6079
6079
|
constructor(...e) {
|
|
6080
6080
|
super(...e), this.kind = "text-resize-drag";
|
|
6081
6081
|
}
|
|
@@ -6110,12 +6110,12 @@ var ua = ({ width: e }) => ne(60, e), Ch = (e, t) => ({
|
|
|
6110
6110
|
}
|
|
6111
6111
|
}));
|
|
6112
6112
|
}
|
|
6113
|
-
},
|
|
6113
|
+
}, wh = ({ annotationId: e, panelRect: t }) => {
|
|
6114
6114
|
const { commands: r } = B(), o = U(), a = Y({
|
|
6115
6115
|
annotations: G((i) => i.spec.annotations),
|
|
6116
6116
|
panelRect: t
|
|
6117
6117
|
});
|
|
6118
|
-
return oa((i, l) => new
|
|
6118
|
+
return oa((i, l) => new xh({
|
|
6119
6119
|
...l,
|
|
6120
6120
|
annotationId: e,
|
|
6121
6121
|
edge: i,
|
|
@@ -6123,7 +6123,7 @@ var ua = ({ width: e }) => ne(60, e), Ch = (e, t) => ({
|
|
|
6123
6123
|
editorStore: o,
|
|
6124
6124
|
dispatch: r.dispatch
|
|
6125
6125
|
}));
|
|
6126
|
-
},
|
|
6126
|
+
}, Th = 4, Ah = ({ annotationId: e, panelRect: t }) => {
|
|
6127
6127
|
const { commands: r } = B(), o = U(), a = G((l) => l.spec.annotations), i = (l, c) => {
|
|
6128
6128
|
const s = qe(a, e);
|
|
6129
6129
|
return s === null ? null : {
|
|
@@ -6143,7 +6143,7 @@ var ua = ({ width: e }) => ne(60, e), Ch = (e, t) => ({
|
|
|
6143
6143
|
readHeld: () => At(H(o.getState(), "text-resize-drag"), e),
|
|
6144
6144
|
claim: (l) => i(l, 0),
|
|
6145
6145
|
step: (l, c, s) => {
|
|
6146
|
-
const u =
|
|
6146
|
+
const u = kh(s, t);
|
|
6147
6147
|
return u === null ? null : i(c, l.delta + u);
|
|
6148
6148
|
},
|
|
6149
6149
|
commit: (l) => {
|
|
@@ -6158,8 +6158,8 @@ var ua = ({ width: e }) => ne(60, e), Ch = (e, t) => ({
|
|
|
6158
6158
|
}));
|
|
6159
6159
|
}
|
|
6160
6160
|
});
|
|
6161
|
-
},
|
|
6162
|
-
const r = ne(
|
|
6161
|
+
}, kh = (e, t) => {
|
|
6162
|
+
const r = ne(Th, t.width);
|
|
6163
6163
|
switch (e) {
|
|
6164
6164
|
case "ArrowLeft":
|
|
6165
6165
|
return -r;
|
|
@@ -6168,9 +6168,9 @@ var ua = ({ width: e }) => ne(60, e), Ch = (e, t) => ({
|
|
|
6168
6168
|
default:
|
|
6169
6169
|
return null;
|
|
6170
6170
|
}
|
|
6171
|
-
},
|
|
6172
|
-
const t = Oe(), r =
|
|
6173
|
-
return r === null || i === null ? null : /* @__PURE__ */ n(
|
|
6171
|
+
}, Lh = (e) => {
|
|
6172
|
+
const t = Oe(), r = Ih(t), o = Eh(t), a = X((l) => l.caret?.annotationId === t), i = Mh(e.panelRect, t, o.resized);
|
|
6173
|
+
return r === null || i === null ? null : /* @__PURE__ */ n(Ph, {
|
|
6174
6174
|
annotation: r,
|
|
6175
6175
|
textBox: i,
|
|
6176
6176
|
isSettled: o.resized === null && !o.isMoved,
|
|
@@ -6179,26 +6179,26 @@ var ua = ({ width: e }) => ne(60, e), Ch = (e, t) => ({
|
|
|
6179
6179
|
hasCaret: a,
|
|
6180
6180
|
...e
|
|
6181
6181
|
});
|
|
6182
|
-
},
|
|
6183
|
-
const u = k(), d =
|
|
6182
|
+
}, Ph = ({ annotation: e, textBox: t, isSettled: r, isMoved: o, isResizable: a, hasCaret: i, panelRect: l, frameRect: c, frameElement: s }) => {
|
|
6183
|
+
const u = k(), d = wh({
|
|
6184
6184
|
annotationId: e.id,
|
|
6185
6185
|
panelRect: l
|
|
6186
|
-
}), h =
|
|
6186
|
+
}), h = Ah({
|
|
6187
6187
|
annotationId: e.id,
|
|
6188
6188
|
panelRect: l
|
|
6189
6189
|
});
|
|
6190
6190
|
return /* @__PURE__ */ m("div", {
|
|
6191
6191
|
"data-testid": "text-selection",
|
|
6192
6192
|
"data-annotation-id": e.id,
|
|
6193
|
-
children: [r && /* @__PURE__ */ n(
|
|
6193
|
+
children: [r && /* @__PURE__ */ n(fh, {
|
|
6194
6194
|
annotation: e,
|
|
6195
6195
|
textBox: t,
|
|
6196
6196
|
panelRect: l,
|
|
6197
6197
|
frameWidth: c.width,
|
|
6198
6198
|
frameHeight: c.height,
|
|
6199
6199
|
frameElement: s
|
|
6200
|
-
}), a && !o && !i &&
|
|
6201
|
-
const p =
|
|
6200
|
+
}), a && !o && !i && Ch.map((f) => {
|
|
6201
|
+
const p = yh(t, f);
|
|
6202
6202
|
return /* @__PURE__ */ n(aa, {
|
|
6203
6203
|
point: {
|
|
6204
6204
|
x: l.x + p.x,
|
|
@@ -6216,16 +6216,16 @@ var ua = ({ width: e }) => ne(60, e), Ch = (e, t) => ({
|
|
|
6216
6216
|
}, f);
|
|
6217
6217
|
})]
|
|
6218
6218
|
});
|
|
6219
|
-
},
|
|
6219
|
+
}, Ih = (e) => {
|
|
6220
6220
|
const t = G((r) => r.spec.annotations.textAnnotations);
|
|
6221
6221
|
return e === null ? null : t.find((r) => r.id === e) ?? null;
|
|
6222
|
-
},
|
|
6222
|
+
}, Eh = (e) => X(Le((t) => e === null ? {
|
|
6223
6223
|
resized: null,
|
|
6224
6224
|
isMoved: !1
|
|
6225
6225
|
} : {
|
|
6226
6226
|
resized: At(H(t, "text-resize-drag"), e),
|
|
6227
6227
|
isMoved: Ze(H(t, "move-drag"), e) !== null
|
|
6228
|
-
})),
|
|
6228
|
+
})), Mh = (e, t, r) => {
|
|
6229
6229
|
const o = be(e), a = Hn(), i = O(() => ({
|
|
6230
6230
|
panel: {
|
|
6231
6231
|
width: e.width,
|
|
@@ -6238,7 +6238,7 @@ var ua = ({ width: e }) => ne(60, e), Ch = (e, t) => ({
|
|
|
6238
6238
|
a
|
|
6239
6239
|
]);
|
|
6240
6240
|
return t === null ? null : ra(o, t, r, i)?.rect ?? null;
|
|
6241
|
-
},
|
|
6241
|
+
}, Nh = (e) => /* @__PURE__ */ n(A, {
|
|
6242
6242
|
...e,
|
|
6243
6243
|
children: /* @__PURE__ */ m("g", {
|
|
6244
6244
|
stroke: "currentColor",
|
|
@@ -6247,25 +6247,25 @@ var ua = ({ width: e }) => ne(60, e), Ch = (e, t) => ({
|
|
|
6247
6247
|
strokeLinejoin: "round",
|
|
6248
6248
|
children: [/* @__PURE__ */ n("path", { d: "M12 5v14" }), /* @__PURE__ */ n("path", { d: "M5 12h14" })]
|
|
6249
6249
|
})
|
|
6250
|
-
}),
|
|
6250
|
+
}), Oh = "var(--_1tyillx0)", Dh = {
|
|
6251
6251
|
rest: 0.5,
|
|
6252
6252
|
hovered: 0.75,
|
|
6253
6253
|
open: 1
|
|
6254
6254
|
};
|
|
6255
|
-
var
|
|
6255
|
+
var Rh = "_1tyillx1", zh = {
|
|
6256
6256
|
rest: "_1tyillx2",
|
|
6257
6257
|
hovered: "_1tyillx3",
|
|
6258
6258
|
open: "_1tyillx4"
|
|
6259
|
-
},
|
|
6259
|
+
}, _h = "_1tyillx5", Fh = {
|
|
6260
6260
|
closed: "_1tyillx6",
|
|
6261
6261
|
open: "_1tyillx7"
|
|
6262
|
-
},
|
|
6263
|
-
const r = U(), o = G((c) => c.coordSystem), a = e.kind === "trigger" || e.kind === "menu" ? e.anchor : null, i =
|
|
6262
|
+
}, Hh = ({ interaction: e, panelRect: t }) => {
|
|
6263
|
+
const r = U(), o = G((c) => c.coordSystem), a = e.kind === "trigger" || e.kind === "menu" ? e.anchor : null, i = Bh(e), l = O(() => {
|
|
6264
6264
|
if (a === null) return null;
|
|
6265
6265
|
const c = el(a.position, t, o);
|
|
6266
6266
|
return {
|
|
6267
6267
|
center: c,
|
|
6268
|
-
radius: 19 *
|
|
6268
|
+
radius: 19 * Dh[i],
|
|
6269
6269
|
target: {
|
|
6270
6270
|
kind: "observation",
|
|
6271
6271
|
cursor: Pt(c, t)
|
|
@@ -6283,24 +6283,24 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6283
6283
|
"aria-hidden": "true",
|
|
6284
6284
|
"data-testid": "observation-menu-trigger",
|
|
6285
6285
|
"data-state": i,
|
|
6286
|
-
className: ce(
|
|
6286
|
+
className: ce(Rh, zh[i]),
|
|
6287
6287
|
style: {
|
|
6288
6288
|
left: t.x + l.center.x,
|
|
6289
6289
|
top: t.y + l.center.y,
|
|
6290
|
-
...lr({ [
|
|
6290
|
+
...lr({ [Oh]: a.color ?? se.border50 })
|
|
6291
6291
|
},
|
|
6292
6292
|
children: /* @__PURE__ */ n("span", {
|
|
6293
|
-
className: ce(
|
|
6294
|
-
children: /* @__PURE__ */ n(
|
|
6293
|
+
className: ce(_h, Fh[i === "open" ? "open" : "closed"]),
|
|
6294
|
+
children: /* @__PURE__ */ n(Nh, { size: "lg" })
|
|
6295
6295
|
})
|
|
6296
6296
|
});
|
|
6297
|
-
},
|
|
6297
|
+
}, Bh = (e) => e.kind === "menu" ? "open" : e.kind === "trigger" && e.isEngaged ? "hovered" : "rest", Vh = 'button:not([disabled]):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])', Gh = (e, t) => {
|
|
6298
6298
|
const { chartId: r } = B(), o = U();
|
|
6299
6299
|
M(() => {
|
|
6300
6300
|
if (t === null) return;
|
|
6301
6301
|
const a = (i) => {
|
|
6302
6302
|
if (i.key !== "Tab" || i.defaultPrevented || !Ee(i.target, e, r) || o.getState().standingInteraction?.kind === "chrome-popup") return;
|
|
6303
|
-
const l = [...t.querySelectorAll(
|
|
6303
|
+
const l = [...t.querySelectorAll(Vh)];
|
|
6304
6304
|
if (l.length === 0) return;
|
|
6305
6305
|
i.preventDefault();
|
|
6306
6306
|
const c = l.findIndex((s) => s === document.activeElement);
|
|
@@ -6313,20 +6313,20 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6313
6313
|
r,
|
|
6314
6314
|
o
|
|
6315
6315
|
]);
|
|
6316
|
-
},
|
|
6316
|
+
}, $h = `[${Fn}]`, Xe = (e, t, r) => {
|
|
6317
6317
|
if (typeof document.elementsFromPoint != "function") return null;
|
|
6318
6318
|
const o = document.elementsFromPoint(e, t);
|
|
6319
|
-
return
|
|
6320
|
-
},
|
|
6319
|
+
return Uh(o, r);
|
|
6320
|
+
}, Uh = (e, t) => {
|
|
6321
6321
|
for (const r of e) {
|
|
6322
|
-
const o = r.closest(
|
|
6322
|
+
const o = r.closest($h);
|
|
6323
6323
|
if (o === null || !t.contains(o)) continue;
|
|
6324
|
-
const a =
|
|
6324
|
+
const a = Wh(o);
|
|
6325
6325
|
if (a !== null) return a;
|
|
6326
6326
|
if (o !== r) return null;
|
|
6327
6327
|
}
|
|
6328
6328
|
return null;
|
|
6329
|
-
},
|
|
6329
|
+
}, Wh = (e) => {
|
|
6330
6330
|
const t = e.getAttribute(Fn);
|
|
6331
6331
|
if (t !== "annotation") return null;
|
|
6332
6332
|
const r = e.getAttribute(Ao);
|
|
@@ -6334,7 +6334,7 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6334
6334
|
kind: t,
|
|
6335
6335
|
id: r
|
|
6336
6336
|
};
|
|
6337
|
-
},
|
|
6337
|
+
}, Kh = (e) => {
|
|
6338
6338
|
const { selectionStore: t, chartId: r } = B(), o = U();
|
|
6339
6339
|
M(() => {
|
|
6340
6340
|
let a = null;
|
|
@@ -6358,7 +6358,7 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6358
6358
|
e,
|
|
6359
6359
|
r
|
|
6360
6360
|
]);
|
|
6361
|
-
},
|
|
6361
|
+
}, qh = class extends De {
|
|
6362
6362
|
constructor(...e) {
|
|
6363
6363
|
super(...e), this.kind = "move-drag";
|
|
6364
6364
|
}
|
|
@@ -6377,12 +6377,12 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6377
6377
|
}
|
|
6378
6378
|
commit({ translation: e }) {
|
|
6379
6379
|
const { annotationId: t, dispatch: r } = this.params;
|
|
6380
|
-
|
|
6380
|
+
Xd(e) && r(new Do({
|
|
6381
6381
|
id: t,
|
|
6382
6382
|
translation: e
|
|
6383
6383
|
}));
|
|
6384
6384
|
}
|
|
6385
|
-
},
|
|
6385
|
+
}, Xh = (e, t, r) => {
|
|
6386
6386
|
const { commands: o, selectionStore: a } = B(), i = U(), l = Y({
|
|
6387
6387
|
annotations: G((u) => u.spec.annotations),
|
|
6388
6388
|
panelRect: r
|
|
@@ -6390,7 +6390,7 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6390
6390
|
M(() => () => s.current?.finish(!1), []), M(() => {
|
|
6391
6391
|
const u = (p) => {
|
|
6392
6392
|
const { editTargetUnderPointer: g, standingInteraction: v } = i.getState();
|
|
6393
|
-
return g !== null && v === null && p.pointerType === "mouse" &&
|
|
6393
|
+
return g !== null && v === null && p.pointerType === "mouse" && jh(p.target, e) ? g : Xe(p.clientX, p.clientY, e);
|
|
6394
6394
|
}, d = (p, g) => {
|
|
6395
6395
|
if (s.current !== null || !ao(l.current.annotations, g.id)) return;
|
|
6396
6396
|
try {
|
|
@@ -6399,7 +6399,7 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6399
6399
|
return;
|
|
6400
6400
|
}
|
|
6401
6401
|
p.preventDefault();
|
|
6402
|
-
const v = new
|
|
6402
|
+
const v = new qh({
|
|
6403
6403
|
handle: e,
|
|
6404
6404
|
pointerId: p.pointerId,
|
|
6405
6405
|
annotationId: g.id,
|
|
@@ -6441,7 +6441,7 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6441
6441
|
l,
|
|
6442
6442
|
c
|
|
6443
6443
|
]);
|
|
6444
|
-
},
|
|
6444
|
+
}, jh = (e, t) => e instanceof Node && t.contains(e), Zh = (e) => {
|
|
6445
6445
|
const { selectionStore: t, commands: r, chartId: o } = B(), a = U(), i = Y(G((u) => u.spec.annotations.textAnnotations)), l = oe((u) => {
|
|
6446
6446
|
const { selection: d } = t.getState(), h = ft(d);
|
|
6447
6447
|
h !== null && (u.preventDefault(), r.dispatch(new Ae({ id: h })), e.focus({ preventScroll: !0 }));
|
|
@@ -6477,8 +6477,8 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6477
6477
|
]);
|
|
6478
6478
|
M(() => {
|
|
6479
6479
|
const u = (d) => {
|
|
6480
|
-
if (!Ee(d.target, e, o) ||
|
|
6481
|
-
const h =
|
|
6480
|
+
if (!Ee(d.target, e, o) || Ec(d.target)) return;
|
|
6481
|
+
const h = Yh(d.target), f = a.getState().caret !== null && !Be(d.target, o);
|
|
6482
6482
|
if (!(h && !f))
|
|
6483
6483
|
switch (d.key) {
|
|
6484
6484
|
case "Escape":
|
|
@@ -6501,7 +6501,7 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6501
6501
|
o,
|
|
6502
6502
|
a
|
|
6503
6503
|
]);
|
|
6504
|
-
},
|
|
6504
|
+
}, Yh = (e) => e instanceof HTMLElement && (e.isContentEditable || e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement), Jh = () => {
|
|
6505
6505
|
const e = Ya((a) => a.hover.primary), { layers: t, coordSystem: r } = G(Le((a) => ({
|
|
6506
6506
|
layers: a.layers,
|
|
6507
6507
|
coordSystem: a.coordSystem
|
|
@@ -6530,9 +6530,9 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6530
6530
|
r,
|
|
6531
6531
|
o
|
|
6532
6532
|
]);
|
|
6533
|
-
},
|
|
6534
|
-
const e = X((o) => o.standingInteraction), t = X((o) => o.chromeUnderPointer), r =
|
|
6535
|
-
return O(() => e !== null ? e : r === null ?
|
|
6533
|
+
}, Qh = { kind: "idle" }, ma = () => {
|
|
6534
|
+
const e = X((o) => o.standingInteraction), t = X((o) => o.chromeUnderPointer), r = Jh();
|
|
6535
|
+
return O(() => e !== null ? e : r === null ? Qh : {
|
|
6536
6536
|
kind: "trigger",
|
|
6537
6537
|
anchor: r,
|
|
6538
6538
|
isEngaged: t === "menu-trigger"
|
|
@@ -6541,7 +6541,7 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6541
6541
|
r,
|
|
6542
6542
|
t
|
|
6543
6543
|
]);
|
|
6544
|
-
},
|
|
6544
|
+
}, e1 = (e, t, r) => {
|
|
6545
6545
|
const o = U(), { selectionStore: a } = B(), { store: i, engine: l } = kt(), c = Y(e), s = Y(t), u = Y(r);
|
|
6546
6546
|
M(() => {
|
|
6547
6547
|
const d = (v) => Nr(v, s.current, o.getState().menuTrigger), h = (v) => {
|
|
@@ -6549,7 +6549,7 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6549
6549
|
const x = u.current, w = s.current, y = {
|
|
6550
6550
|
x: v.clientX - w.x,
|
|
6551
6551
|
y: v.clientY - w.y
|
|
6552
|
-
}, L =
|
|
6552
|
+
}, L = t1(y, x) ? l.query(Pt(y, x)) : Xn;
|
|
6553
6553
|
i.getState().setHoverState(L);
|
|
6554
6554
|
};
|
|
6555
6555
|
let f = !1;
|
|
@@ -6580,7 +6580,7 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6580
6580
|
s,
|
|
6581
6581
|
u
|
|
6582
6582
|
]);
|
|
6583
|
-
},
|
|
6583
|
+
}, t1 = (e, t) => e.x >= 0 && e.x <= t.width && e.y >= 0 && e.y <= t.height, n1 = (e, t) => {
|
|
6584
6584
|
const r = U(), o = Y(t);
|
|
6585
6585
|
M(() => {
|
|
6586
6586
|
let a = null, i = null;
|
|
@@ -6634,9 +6634,9 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6634
6634
|
case "chrome-popup":
|
|
6635
6635
|
return !1;
|
|
6636
6636
|
}
|
|
6637
|
-
}, Sn = "editor", xn = [],
|
|
6637
|
+
}, Sn = "editor", xn = [], r1 = (e, t, r, o) => {
|
|
6638
6638
|
const a = ma(), { store: i } = kt(), l = $n().length > 0, c = X((d) => d.menuTrigger), s = a.kind === "menu", u = O(() => c === null ? xn : [ki(c)], [c]);
|
|
6639
|
-
|
|
6639
|
+
n1(e, t), Xh(e, t, r), e1(a, t, r), Kh(e), Zh(e), Gh(e, o), M(() => (i.getState().publishPointerRegions(Sn, u), () => i.getState().publishPointerRegions(Sn, xn)), [i, u]), M(() => (i.getState().setPointerSuspended(s || l), () => i.getState().setPointerSuspended(!1)), [
|
|
6640
6640
|
i,
|
|
6641
6641
|
s,
|
|
6642
6642
|
l
|
|
@@ -6645,20 +6645,20 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6645
6645
|
const d = i.getState();
|
|
6646
6646
|
d.setHoverState(Xn), d.setTooltipAnchor(null);
|
|
6647
6647
|
}, [i, l]);
|
|
6648
|
-
},
|
|
6648
|
+
}, a1 = ({ frameElement: e, panelRect: t }) => {
|
|
6649
6649
|
const { measureRef: r, screenRect: o } = ho(), a = U(), i = X((l) => l.caret?.annotationId ?? null);
|
|
6650
6650
|
return M(() => (r(e), () => r(null)), [r, e]), M(() => () => {
|
|
6651
6651
|
const l = a.getState();
|
|
6652
6652
|
l.releaseInteraction("menu"), l.setCaret(null);
|
|
6653
|
-
}, [a]), o === null ? null : /* @__PURE__ */ m(
|
|
6653
|
+
}, [a]), o === null ? null : /* @__PURE__ */ m(Nc, { children: [i !== null && /* @__PURE__ */ n(o1, {
|
|
6654
6654
|
annotationId: i,
|
|
6655
6655
|
panelRect: t
|
|
6656
|
-
}), /* @__PURE__ */ n(
|
|
6656
|
+
}), /* @__PURE__ */ n(i1, {
|
|
6657
6657
|
frameElement: e,
|
|
6658
6658
|
frameRect: o,
|
|
6659
6659
|
panelRect: t
|
|
6660
6660
|
})] });
|
|
6661
|
-
},
|
|
6661
|
+
}, o1 = ({ annotationId: e, panelRect: t }) => {
|
|
6662
6662
|
const r = U(), { textAnnotations: o } = be(t);
|
|
6663
6663
|
return M(() => {
|
|
6664
6664
|
o.some(({ id: a }) => a === e) || r.getState().setCaret(null);
|
|
@@ -6667,7 +6667,7 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6667
6667
|
o,
|
|
6668
6668
|
r
|
|
6669
6669
|
]), null;
|
|
6670
|
-
},
|
|
6670
|
+
}, i1 = ({ frameElement: e, frameRect: t, panelRect: r }) => {
|
|
6671
6671
|
const o = O(() => ({
|
|
6672
6672
|
x: t.left + r.x,
|
|
6673
6673
|
y: t.top + r.y
|
|
@@ -6677,14 +6677,14 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6677
6677
|
r.x,
|
|
6678
6678
|
r.y
|
|
6679
6679
|
]), [a, i] = J(null);
|
|
6680
|
-
return
|
|
6680
|
+
return r1(e, o, r, a), /* @__PURE__ */ n(l1, {
|
|
6681
6681
|
frameElement: e,
|
|
6682
6682
|
frameRect: t,
|
|
6683
6683
|
panelOrigin: o,
|
|
6684
6684
|
panelRect: r,
|
|
6685
6685
|
boxRef: i
|
|
6686
6686
|
});
|
|
6687
|
-
},
|
|
6687
|
+
}, l1 = ({ frameElement: e, frameRect: t, panelOrigin: r, panelRect: o, boxRef: a }) => {
|
|
6688
6688
|
const i = Ot(), l = ma();
|
|
6689
6689
|
return /* @__PURE__ */ n(vo, {
|
|
6690
6690
|
rect: t,
|
|
@@ -6693,48 +6693,48 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6693
6693
|
"data-testid": "editor-overlay",
|
|
6694
6694
|
boxRef: a,
|
|
6695
6695
|
children: /* @__PURE__ */ m(Q, { children: [
|
|
6696
|
-
/* @__PURE__ */ n(
|
|
6696
|
+
/* @__PURE__ */ n(Pu, {
|
|
6697
6697
|
panelRect: o,
|
|
6698
6698
|
panelOrigin: r,
|
|
6699
6699
|
frameRect: t,
|
|
6700
6700
|
frameElement: e
|
|
6701
6701
|
}),
|
|
6702
|
-
/* @__PURE__ */ n(
|
|
6702
|
+
/* @__PURE__ */ n(Yu, {
|
|
6703
6703
|
panelRect: o,
|
|
6704
6704
|
frameRect: t,
|
|
6705
6705
|
frameElement: e
|
|
6706
6706
|
}),
|
|
6707
|
-
/* @__PURE__ */ n(
|
|
6707
|
+
/* @__PURE__ */ n(tu, {
|
|
6708
6708
|
panelRect: o,
|
|
6709
6709
|
frameRect: t,
|
|
6710
6710
|
frameElement: e
|
|
6711
6711
|
}),
|
|
6712
|
-
/* @__PURE__ */ n(
|
|
6712
|
+
/* @__PURE__ */ n(Lh, {
|
|
6713
6713
|
panelRect: o,
|
|
6714
6714
|
frameRect: t,
|
|
6715
6715
|
frameElement: e
|
|
6716
6716
|
}),
|
|
6717
|
+
/* @__PURE__ */ n(zu, { panelRect: o }),
|
|
6718
|
+
/* @__PURE__ */ n(Bu, { panelRect: o }),
|
|
6719
|
+
/* @__PURE__ */ n(wd, { panelRect: o }),
|
|
6717
6720
|
/* @__PURE__ */ n(Ru, { panelRect: o }),
|
|
6718
|
-
/* @__PURE__ */ n(
|
|
6719
|
-
/* @__PURE__ */ n(xd, { panelRect: o }),
|
|
6720
|
-
/* @__PURE__ */ n(Du, { panelRect: o }),
|
|
6721
|
-
/* @__PURE__ */ n(Fh, {
|
|
6721
|
+
/* @__PURE__ */ n(Hh, {
|
|
6722
6722
|
interaction: l,
|
|
6723
6723
|
panelRect: o
|
|
6724
6724
|
}),
|
|
6725
|
-
/* @__PURE__ */ n(
|
|
6725
|
+
/* @__PURE__ */ n(fd, {
|
|
6726
6726
|
interaction: l,
|
|
6727
6727
|
panelOrigin: r
|
|
6728
6728
|
})
|
|
6729
6729
|
] })
|
|
6730
6730
|
});
|
|
6731
|
-
},
|
|
6731
|
+
}, Mm = ({ slots: e, ...t }) => /* @__PURE__ */ n(ql, {
|
|
6732
6732
|
locale: no(),
|
|
6733
6733
|
children: /* @__PURE__ */ n(Xa, { children: /* @__PURE__ */ n(Za, {
|
|
6734
|
-
editors:
|
|
6734
|
+
editors: Lc,
|
|
6735
6735
|
children: /* @__PURE__ */ n(fo, {
|
|
6736
6736
|
slots: O(() => ({
|
|
6737
|
-
EditorSurface:
|
|
6737
|
+
EditorSurface: a1,
|
|
6738
6738
|
...e
|
|
6739
6739
|
}), [e]),
|
|
6740
6740
|
...t
|
|
@@ -6761,10 +6761,10 @@ var Dh = "_1tyillx1", Rh = {
|
|
|
6761
6761
|
...s !== void 0 && { "aria-labelledby": s }
|
|
6762
6762
|
};
|
|
6763
6763
|
};
|
|
6764
|
-
var
|
|
6764
|
+
var s1 = {
|
|
6765
6765
|
default: "woi4bh4 woi4bh3",
|
|
6766
6766
|
tile: "woi4bh5 woi4bh3"
|
|
6767
|
-
},
|
|
6767
|
+
}, c1 = ({ label: e, icon: t, onClick: r, variant: o = "default", isDisabled: a, ariaLabel: i, ariaLabelledBy: l, id: c }) => {
|
|
6768
6768
|
const s = me({
|
|
6769
6769
|
id: c,
|
|
6770
6770
|
ariaLabel: i,
|
|
@@ -6772,7 +6772,7 @@ var l1 = {
|
|
|
6772
6772
|
}), u = o === "tile";
|
|
6773
6773
|
return /* @__PURE__ */ m("button", {
|
|
6774
6774
|
type: "button",
|
|
6775
|
-
className:
|
|
6775
|
+
className: s1[o],
|
|
6776
6776
|
disabled: a,
|
|
6777
6777
|
onClick: r,
|
|
6778
6778
|
...s,
|
|
@@ -6828,15 +6828,15 @@ var l1 = {
|
|
|
6828
6828
|
}
|
|
6829
6829
|
}
|
|
6830
6830
|
};
|
|
6831
|
-
},
|
|
6832
|
-
var
|
|
6831
|
+
}, d1 = "eh8dvc0", u1 = "eh8dvc1 uz3g760", h1 = "eh8dvc2 uz3g761";
|
|
6832
|
+
var p1 = ({ value: e, onChange: t, onCommit: r, min: o, max: a, step: i, placeholder: l, prefix: c, suffix: s, isDisabled: u, hasError: d, ariaLabel: h, ariaLabelledBy: f, id: p }) => {
|
|
6833
6833
|
const g = me({
|
|
6834
6834
|
id: p,
|
|
6835
6835
|
ariaLabel: h,
|
|
6836
6836
|
ariaLabelledBy: f
|
|
6837
6837
|
}), { commitUnlessHeldKey: v, gestureHandlers: x } = nt(r);
|
|
6838
6838
|
return /* @__PURE__ */ n(Qt.Root, {
|
|
6839
|
-
className:
|
|
6839
|
+
className: d1,
|
|
6840
6840
|
value: e,
|
|
6841
6841
|
onValueChange: (w) => t(w),
|
|
6842
6842
|
onValueCommitted: (w, y) => {
|
|
@@ -6847,7 +6847,7 @@ var h1 = ({ value: e, onChange: t, onCommit: r, min: o, max: a, step: i, placeho
|
|
|
6847
6847
|
step: i,
|
|
6848
6848
|
disabled: u,
|
|
6849
6849
|
children: /* @__PURE__ */ m(va, {
|
|
6850
|
-
className:
|
|
6850
|
+
className: u1,
|
|
6851
6851
|
"data-error": d === !0,
|
|
6852
6852
|
"data-disabled": u === !0 ? "" : void 0,
|
|
6853
6853
|
children: [
|
|
@@ -6856,7 +6856,7 @@ var h1 = ({ value: e, onChange: t, onCommit: r, min: o, max: a, step: i, placeho
|
|
|
6856
6856
|
children: c
|
|
6857
6857
|
}),
|
|
6858
6858
|
/* @__PURE__ */ n(Qt.Input, {
|
|
6859
|
-
className:
|
|
6859
|
+
className: h1,
|
|
6860
6860
|
placeholder: l,
|
|
6861
6861
|
...x,
|
|
6862
6862
|
"aria-invalid": d === !0 ? !0 : void 0,
|
|
@@ -6869,22 +6869,22 @@ var h1 = ({ value: e, onChange: t, onCommit: r, min: o, max: a, step: i, placeho
|
|
|
6869
6869
|
]
|
|
6870
6870
|
})
|
|
6871
6871
|
});
|
|
6872
|
-
},
|
|
6872
|
+
}, m1 = "_1b7s5f0", Se = {
|
|
6873
6873
|
1: "_1b7s5f1",
|
|
6874
6874
|
2: "_1b7s5f2",
|
|
6875
6875
|
3: "_1b7s5f3",
|
|
6876
6876
|
4: "_1b7s5f4",
|
|
6877
6877
|
5: "_1b7s5f5",
|
|
6878
6878
|
6: "_1b7s5f6"
|
|
6879
|
-
},
|
|
6880
|
-
var
|
|
6879
|
+
}, g1 = "_1b7s5f7";
|
|
6880
|
+
var f1 = 6, v1 = ({ options: e, value: t, onChange: r, onCommit: o, columns: a, itemLayout: i = "tile", isDisabled: l, ariaLabel: c, ariaLabelledBy: s, id: u }) => {
|
|
6881
6881
|
const d = me({
|
|
6882
6882
|
id: u,
|
|
6883
6883
|
ariaLabel: c,
|
|
6884
6884
|
ariaLabelledBy: s
|
|
6885
6885
|
}), h = i === "swatch", { commitAfterChange: f, gestureHandlers: p } = nt(o);
|
|
6886
6886
|
return /* @__PURE__ */ n(pr, {
|
|
6887
|
-
className: ce(
|
|
6887
|
+
className: ce(m1, b1(a ?? e.length)),
|
|
6888
6888
|
value: t,
|
|
6889
6889
|
onValueChange: (g) => {
|
|
6890
6890
|
r(g), f();
|
|
@@ -6895,7 +6895,7 @@ var g1 = 6, f1 = ({ options: e, value: t, onChange: r, onCommit: o, columns: a,
|
|
|
6895
6895
|
children: e.map((g) => /* @__PURE__ */ m(hr.Root, {
|
|
6896
6896
|
value: g.value,
|
|
6897
6897
|
disabled: g.isDisabled,
|
|
6898
|
-
className: ce(
|
|
6898
|
+
className: ce(g1, h && "_1b7s5f8"),
|
|
6899
6899
|
"aria-label": h ? g.label : void 0,
|
|
6900
6900
|
children: [g.icon, !h && /* @__PURE__ */ n("span", {
|
|
6901
6901
|
className: "_1b7s5f9",
|
|
@@ -6903,8 +6903,8 @@ var g1 = 6, f1 = ({ options: e, value: t, onChange: r, onCommit: o, columns: a,
|
|
|
6903
6903
|
})]
|
|
6904
6904
|
}, g.value))
|
|
6905
6905
|
});
|
|
6906
|
-
},
|
|
6907
|
-
switch (Math.min(Math.max(Math.round(e), 1),
|
|
6906
|
+
}, b1 = (e) => {
|
|
6907
|
+
switch (Math.min(Math.max(Math.round(e), 1), f1)) {
|
|
6908
6908
|
case 1:
|
|
6909
6909
|
return Se[1];
|
|
6910
6910
|
case 2:
|
|
@@ -6918,8 +6918,8 @@ var g1 = 6, f1 = ({ options: e, value: t, onChange: r, onCommit: o, columns: a,
|
|
|
6918
6918
|
default:
|
|
6919
6919
|
return Se[6];
|
|
6920
6920
|
}
|
|
6921
|
-
},
|
|
6922
|
-
var
|
|
6921
|
+
}, C1 = "_1g5x15w0 uz3g760", y1 = "_1g5x15w1", S1 = "_1g5x15w2", wn = "_1g5x15w3", x1 = "_1g5x15w4", w1 = "_1g5x15w5", T1 = "_1g5x15w6", A1 = "_1g5x15w7";
|
|
6922
|
+
var k1 = ({ options: e, value: t, onChange: r, placeholder: o, isDisabled: a, hasError: i, ariaLabel: l, ariaLabelledBy: c, id: s }) => {
|
|
6923
6923
|
const u = me({
|
|
6924
6924
|
id: s,
|
|
6925
6925
|
ariaLabel: l,
|
|
@@ -6934,12 +6934,12 @@ var A1 = ({ options: e, value: t, onChange: r, placeholder: o, isDisabled: a, ha
|
|
|
6934
6934
|
label: d.label
|
|
6935
6935
|
})),
|
|
6936
6936
|
children: [/* @__PURE__ */ m(re.Trigger, {
|
|
6937
|
-
className:
|
|
6937
|
+
className: C1,
|
|
6938
6938
|
"data-error": i === !0,
|
|
6939
6939
|
...u,
|
|
6940
6940
|
children: [/* @__PURE__ */ n(re.Value, {
|
|
6941
|
-
className:
|
|
6942
|
-
children: (d) =>
|
|
6941
|
+
className: y1,
|
|
6942
|
+
children: (d) => L1(e, d, o)
|
|
6943
6943
|
}), /* @__PURE__ */ n(re.Icon, {
|
|
6944
6944
|
className: wn,
|
|
6945
6945
|
children: /* @__PURE__ */ n(Ne, { size: "sm" })
|
|
@@ -6947,19 +6947,19 @@ var A1 = ({ options: e, value: t, onChange: r, placeholder: o, isDisabled: a, ha
|
|
|
6947
6947
|
}), /* @__PURE__ */ n(re.Portal, {
|
|
6948
6948
|
container: le(),
|
|
6949
6949
|
children: /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ n(re.Positioner, {
|
|
6950
|
-
className:
|
|
6950
|
+
className: x1,
|
|
6951
6951
|
sideOffset: 4,
|
|
6952
6952
|
alignItemWithTrigger: !1,
|
|
6953
6953
|
children: /* @__PURE__ */ n(re.Popup, {
|
|
6954
|
-
className:
|
|
6954
|
+
className: w1,
|
|
6955
6955
|
children: e.map((d) => /* @__PURE__ */ m(re.Item, {
|
|
6956
6956
|
value: d.value,
|
|
6957
6957
|
disabled: d.isDisabled,
|
|
6958
|
-
className:
|
|
6958
|
+
className: T1,
|
|
6959
6959
|
children: [
|
|
6960
6960
|
d.icon,
|
|
6961
6961
|
/* @__PURE__ */ m("span", {
|
|
6962
|
-
className:
|
|
6962
|
+
className: A1,
|
|
6963
6963
|
children: [/* @__PURE__ */ n(re.ItemText, { children: d.label }), d.description !== void 0 && /* @__PURE__ */ n("span", {
|
|
6964
6964
|
className: "_1g5x15w8",
|
|
6965
6965
|
children: d.description
|
|
@@ -6975,19 +6975,19 @@ var A1 = ({ options: e, value: t, onChange: r, placeholder: o, isDisabled: a, ha
|
|
|
6975
6975
|
}) })
|
|
6976
6976
|
})]
|
|
6977
6977
|
});
|
|
6978
|
-
},
|
|
6979
|
-
className:
|
|
6978
|
+
}, L1 = (e, t, r) => t === null ? /* @__PURE__ */ n("span", {
|
|
6979
|
+
className: S1,
|
|
6980
6980
|
children: r
|
|
6981
|
-
}) :
|
|
6982
|
-
var
|
|
6981
|
+
}) : P1(e, t), P1 = (e, t) => e.find((r) => r.value === t)?.label ?? t, I1 = "vod76w0", E1 = "vod76w1", M1 = "vod76w2", N1 = "vod76w3", O1 = "vod76w4", D1 = "vod76w5";
|
|
6982
|
+
var R1 = ({ value: e, onChange: t, onCommit: r, min: o, max: a, step: i, suffix: l, formatValue: c, isDisabled: s, ariaLabel: u, ariaLabelledBy: d }) => {
|
|
6983
6983
|
const h = me({
|
|
6984
6984
|
ariaLabel: u,
|
|
6985
6985
|
ariaLabelledBy: d
|
|
6986
|
-
}, !1), f =
|
|
6986
|
+
}, !1), f = z1(e, l, c), { commitUnlessHeldKey: p, gestureHandlers: g } = nt(r);
|
|
6987
6987
|
return /* @__PURE__ */ m("div", {
|
|
6988
|
-
className:
|
|
6988
|
+
className: I1,
|
|
6989
6989
|
children: [/* @__PURE__ */ n(ae.Root, {
|
|
6990
|
-
className:
|
|
6990
|
+
className: E1,
|
|
6991
6991
|
value: e,
|
|
6992
6992
|
onValueChange: (v) => t(v),
|
|
6993
6993
|
onValueCommitted: (v, x) => {
|
|
@@ -6998,11 +6998,11 @@ var D1 = ({ value: e, onChange: t, onCommit: r, min: o, max: a, step: i, suffix:
|
|
|
6998
6998
|
step: i,
|
|
6999
6999
|
disabled: s,
|
|
7000
7000
|
children: /* @__PURE__ */ n(ae.Control, {
|
|
7001
|
-
className:
|
|
7001
|
+
className: M1,
|
|
7002
7002
|
children: /* @__PURE__ */ m(ae.Track, {
|
|
7003
|
-
className:
|
|
7004
|
-
children: [/* @__PURE__ */ n(ae.Indicator, { className:
|
|
7005
|
-
className:
|
|
7003
|
+
className: N1,
|
|
7004
|
+
children: [/* @__PURE__ */ n(ae.Indicator, { className: O1 }), /* @__PURE__ */ n(ae.Thumb, {
|
|
7005
|
+
className: D1,
|
|
7006
7006
|
...g,
|
|
7007
7007
|
...h
|
|
7008
7008
|
})]
|
|
@@ -7013,7 +7013,7 @@ var D1 = ({ value: e, onChange: t, onCommit: r, min: o, max: a, step: i, suffix:
|
|
|
7013
7013
|
children: f
|
|
7014
7014
|
})]
|
|
7015
7015
|
});
|
|
7016
|
-
},
|
|
7016
|
+
}, z1 = (e, t, r) => r !== void 0 ? r(e) : t !== void 0 ? `${e}${t}` : null, _1 = "_1hyrlw60", F1 = "_1hyrlw61", H1 = ({ isChecked: e, onChange: t, isDisabled: r, ariaLabel: o, ariaLabelledBy: a, id: i }) => {
|
|
7017
7017
|
const l = me({
|
|
7018
7018
|
id: i,
|
|
7019
7019
|
ariaLabel: o,
|
|
@@ -7023,21 +7023,21 @@ var D1 = ({ value: e, onChange: t, onCommit: r, min: o, max: a, step: i, suffix:
|
|
|
7023
7023
|
checked: e,
|
|
7024
7024
|
onCheckedChange: (c) => t(c),
|
|
7025
7025
|
disabled: r,
|
|
7026
|
-
className:
|
|
7026
|
+
className: _1,
|
|
7027
7027
|
...l,
|
|
7028
|
-
children: /* @__PURE__ */ n(en.Thumb, { className:
|
|
7028
|
+
children: /* @__PURE__ */ n(en.Thumb, { className: F1 })
|
|
7029
7029
|
});
|
|
7030
|
-
},
|
|
7030
|
+
}, B1 = "uz3g761", V1 = "tpcnun0 uz3g760", G1 = ({ value: e, onChange: t, onCommit: r, placeholder: o, isDisabled: a, hasError: i, ariaLabel: l, ariaLabelledBy: c, id: s }) => {
|
|
7031
7031
|
const u = me({
|
|
7032
7032
|
id: s,
|
|
7033
7033
|
ariaLabel: l,
|
|
7034
7034
|
ariaLabelledBy: c
|
|
7035
7035
|
});
|
|
7036
7036
|
return /* @__PURE__ */ n(va, {
|
|
7037
|
-
className:
|
|
7037
|
+
className: V1,
|
|
7038
7038
|
"data-error": i === !0,
|
|
7039
|
-
children: /* @__PURE__ */ n(
|
|
7040
|
-
className:
|
|
7039
|
+
children: /* @__PURE__ */ n(El, {
|
|
7040
|
+
className: B1,
|
|
7041
7041
|
value: e,
|
|
7042
7042
|
onValueChange: (d) => t(d),
|
|
7043
7043
|
onBlur: r,
|
|
@@ -7047,15 +7047,15 @@ var D1 = ({ value: e, onChange: t, onCommit: r, min: o, max: a, step: i, suffix:
|
|
|
7047
7047
|
...u
|
|
7048
7048
|
})
|
|
7049
7049
|
});
|
|
7050
|
-
},
|
|
7051
|
-
var
|
|
7050
|
+
}, $1 = "cnu9yl0", U1 = "cnu9yl1";
|
|
7051
|
+
var W1 = ({ options: e, value: t, onChange: r, onCommit: o, itemLayout: a = "inline", isDisabled: i, ariaLabel: l, ariaLabelledBy: c, id: s }) => {
|
|
7052
7052
|
const u = me({
|
|
7053
7053
|
id: s,
|
|
7054
7054
|
ariaLabel: l,
|
|
7055
7055
|
ariaLabelledBy: c
|
|
7056
7056
|
}), d = a === "stacked", { commitAfterChange: h, gestureHandlers: f } = nt(o);
|
|
7057
7057
|
return /* @__PURE__ */ n(pr, {
|
|
7058
|
-
className:
|
|
7058
|
+
className: $1,
|
|
7059
7059
|
value: t,
|
|
7060
7060
|
onValueChange: (p) => {
|
|
7061
7061
|
r(p), h();
|
|
@@ -7066,27 +7066,27 @@ var U1 = ({ options: e, value: t, onChange: r, onCommit: o, itemLayout: a = "inl
|
|
|
7066
7066
|
children: e.map((p) => /* @__PURE__ */ m(hr.Root, {
|
|
7067
7067
|
value: p.value,
|
|
7068
7068
|
disabled: p.isDisabled,
|
|
7069
|
-
className: ce(
|
|
7070
|
-
"aria-label":
|
|
7069
|
+
className: ce(U1, d && "cnu9yl2"),
|
|
7070
|
+
"aria-label": K1(p, d),
|
|
7071
7071
|
children: [p.icon, Ca(p, d) && /* @__PURE__ */ n("span", {
|
|
7072
7072
|
className: "cnu9yl3",
|
|
7073
7073
|
children: p.label
|
|
7074
7074
|
})]
|
|
7075
7075
|
}, p.value))
|
|
7076
7076
|
});
|
|
7077
|
-
}, Ca = (e, t) => e.icon === void 0 || t,
|
|
7077
|
+
}, Ca = (e, t) => e.icon === void 0 || t, K1 = (e, t) => {
|
|
7078
7078
|
if (!Ca(e, t))
|
|
7079
7079
|
return e.label;
|
|
7080
7080
|
}, ya = {
|
|
7081
|
-
ToggleGroup:
|
|
7082
|
-
Switch:
|
|
7083
|
-
Slider:
|
|
7084
|
-
RadioGrid:
|
|
7085
|
-
Button:
|
|
7086
|
-
TextField:
|
|
7087
|
-
NumberField:
|
|
7088
|
-
Select:
|
|
7089
|
-
}, Sa = Me(ya),
|
|
7081
|
+
ToggleGroup: W1,
|
|
7082
|
+
Switch: H1,
|
|
7083
|
+
Slider: R1,
|
|
7084
|
+
RadioGrid: v1,
|
|
7085
|
+
Button: c1,
|
|
7086
|
+
TextField: G1,
|
|
7087
|
+
NumberField: p1,
|
|
7088
|
+
Select: k1
|
|
7089
|
+
}, Sa = Me(ya), q1 = ({ controls: e, children: t }) => {
|
|
7090
7090
|
const r = O(() => ({
|
|
7091
7091
|
...ya,
|
|
7092
7092
|
...e
|
|
@@ -7095,39 +7095,39 @@ var U1 = ({ options: e, value: t, onChange: r, onCommit: o, itemLayout: a = "inl
|
|
|
7095
7095
|
value: r,
|
|
7096
7096
|
children: t
|
|
7097
7097
|
});
|
|
7098
|
-
}, z = () => ke(Sa),
|
|
7099
|
-
className: q1,
|
|
7100
|
-
children: e
|
|
7101
|
-
}), X1 = "_139ohwv0", q = ({ children: e }) => /* @__PURE__ */ n("div", {
|
|
7098
|
+
}, z = () => ke(Sa), X1 = "_12lhx9e0", xa = ({ children: e }) => /* @__PURE__ */ n("div", {
|
|
7102
7099
|
className: X1,
|
|
7103
7100
|
children: e
|
|
7104
|
-
}),
|
|
7101
|
+
}), j1 = "_139ohwv0", q = ({ children: e }) => /* @__PURE__ */ n("div", {
|
|
7102
|
+
className: j1,
|
|
7103
|
+
children: e
|
|
7104
|
+
}), wa = Me(null), Z1 = wa.Provider, Y1 = () => {
|
|
7105
7105
|
const e = ke(wa);
|
|
7106
7106
|
if (!e) throw new Error("A section must be rendered inside <EditorPanel.Root>.");
|
|
7107
7107
|
return e;
|
|
7108
|
-
},
|
|
7108
|
+
}, J1 = "_1jlczkt0", Q1 = "data-graphy-editor-panel", ep = {
|
|
7109
7109
|
List: q,
|
|
7110
7110
|
Grid: xa
|
|
7111
7111
|
};
|
|
7112
|
-
function
|
|
7112
|
+
function tp(e) {
|
|
7113
7113
|
if (e === void 0) return !1;
|
|
7114
7114
|
const t = e.split(/\s+/);
|
|
7115
7115
|
return t.includes("_1ii3bsb0") || t.includes("_1ii3bsb1");
|
|
7116
7116
|
}
|
|
7117
|
-
var
|
|
7117
|
+
var np = ({ handle: e, children: t, controls: r, defaultExpandedSection: o = void 0, className: a }) => {
|
|
7118
7118
|
const i = uo(e), { themeClass: l, inlineVarsStyle: c } = ve(), [s, u] = J(() => o ? [o] : []), d = O(() => ({
|
|
7119
7119
|
expandSection: (h) => u([h]),
|
|
7120
7120
|
collapseAllSections: () => u([])
|
|
7121
7121
|
}), []);
|
|
7122
7122
|
return /* @__PURE__ */ n(Bt.Provider, {
|
|
7123
7123
|
value: i,
|
|
7124
|
-
children: /* @__PURE__ */ n(
|
|
7124
|
+
children: /* @__PURE__ */ n(q1, {
|
|
7125
7125
|
controls: r,
|
|
7126
|
-
children: /* @__PURE__ */ n(
|
|
7126
|
+
children: /* @__PURE__ */ n(Z1, {
|
|
7127
7127
|
value: d,
|
|
7128
7128
|
children: /* @__PURE__ */ n(Ie.Root, {
|
|
7129
|
-
[
|
|
7130
|
-
className: ce(
|
|
7129
|
+
[Q1]: "",
|
|
7130
|
+
className: ce(J1, a, { [l]: !tp(a) }),
|
|
7131
7131
|
style: c,
|
|
7132
7132
|
value: s,
|
|
7133
7133
|
onValueChange: (h) => u(h),
|
|
@@ -7137,12 +7137,12 @@ var tp = ({ handle: e, children: t, controls: r, defaultExpandedSection: o = voi
|
|
|
7137
7137
|
})
|
|
7138
7138
|
});
|
|
7139
7139
|
}, Ta = {
|
|
7140
|
-
Root:
|
|
7141
|
-
Controls:
|
|
7140
|
+
Root: np,
|
|
7141
|
+
Controls: ep
|
|
7142
7142
|
}, Tn = {
|
|
7143
7143
|
stack: "pr583x0",
|
|
7144
7144
|
grid: "pr583x1"
|
|
7145
|
-
}, An = "pr583x2",
|
|
7145
|
+
}, An = "pr583x2", rp = {
|
|
7146
7146
|
plain: "pr583x4 pr583x3",
|
|
7147
7147
|
withIcon: "pr583x5 pr583x3"
|
|
7148
7148
|
}, C = ({ label: e, layout: t = "grid", icon: r, children: o }) => {
|
|
@@ -7158,7 +7158,7 @@ var tp = ({ handle: e, children: t, controls: r, defaultExpandedSection: o = voi
|
|
|
7158
7158
|
children: [/* @__PURE__ */ m("label", {
|
|
7159
7159
|
id: a,
|
|
7160
7160
|
htmlFor: i,
|
|
7161
|
-
className:
|
|
7161
|
+
className: rp[r === void 0 ? "plain" : "withIcon"],
|
|
7162
7162
|
children: [r !== void 0 && /* @__PURE__ */ n("span", {
|
|
7163
7163
|
"aria-hidden": "true",
|
|
7164
7164
|
children: r
|
|
@@ -7172,7 +7172,7 @@ var tp = ({ handle: e, children: t, controls: r, defaultExpandedSection: o = voi
|
|
|
7172
7172
|
})
|
|
7173
7173
|
})]
|
|
7174
7174
|
});
|
|
7175
|
-
},
|
|
7175
|
+
}, ap = (e) => /* @__PURE__ */ n(A, {
|
|
7176
7176
|
...e,
|
|
7177
7177
|
children: /* @__PURE__ */ n("g", {
|
|
7178
7178
|
stroke: "currentColor",
|
|
@@ -7181,15 +7181,15 @@ var tp = ({ handle: e, children: t, controls: r, defaultExpandedSection: o = voi
|
|
|
7181
7181
|
strokeLinejoin: "round",
|
|
7182
7182
|
children: /* @__PURE__ */ n("path", { d: "m9 6 6 6-6 6" })
|
|
7183
7183
|
})
|
|
7184
|
-
}), Vt = "_40zvwv0", Gt = "_40zvwv1",
|
|
7185
|
-
var
|
|
7186
|
-
var
|
|
7184
|
+
}), Vt = "_40zvwv0", Gt = "_40zvwv1", op = "_40zvwv2", Aa = "_40zvwv3", ip = "_40zvwv4 _40zvwv3";
|
|
7185
|
+
var lp = "_40zvwv6";
|
|
7186
|
+
var sp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory: o, onOpenChange: a, children: i }) => t === "collapsible" ? /* @__PURE__ */ n(dp, {
|
|
7187
7187
|
title: e,
|
|
7188
7188
|
preview: r,
|
|
7189
7189
|
accessory: o,
|
|
7190
7190
|
onOpenChange: a,
|
|
7191
7191
|
children: i
|
|
7192
|
-
}) : t === "inline" && r === void 0 ? /* @__PURE__ */ n(
|
|
7192
|
+
}) : t === "inline" && r === void 0 ? /* @__PURE__ */ n(cp, {
|
|
7193
7193
|
title: e,
|
|
7194
7194
|
accessory: o,
|
|
7195
7195
|
children: i
|
|
@@ -7212,7 +7212,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7212
7212
|
})
|
|
7213
7213
|
]
|
|
7214
7214
|
}), /* @__PURE__ */ n("div", { children: i })]
|
|
7215
|
-
}),
|
|
7215
|
+
}), cp = ({ title: e, accessory: t, children: r }) => {
|
|
7216
7216
|
const o = Te(), a = Te();
|
|
7217
7217
|
return /* @__PURE__ */ n("div", {
|
|
7218
7218
|
className: Vt,
|
|
@@ -7222,11 +7222,11 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7222
7222
|
/* @__PURE__ */ n("label", {
|
|
7223
7223
|
id: o,
|
|
7224
7224
|
htmlFor: a,
|
|
7225
|
-
className:
|
|
7225
|
+
className: ip,
|
|
7226
7226
|
children: e
|
|
7227
7227
|
}),
|
|
7228
7228
|
/* @__PURE__ */ n("span", {
|
|
7229
|
-
className:
|
|
7229
|
+
className: lp,
|
|
7230
7230
|
children: /* @__PURE__ */ n(fa, {
|
|
7231
7231
|
labelId: o,
|
|
7232
7232
|
controlId: a,
|
|
@@ -7240,7 +7240,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7240
7240
|
]
|
|
7241
7241
|
})
|
|
7242
7242
|
});
|
|
7243
|
-
},
|
|
7243
|
+
}, dp = ({ title: e, preview: t, accessory: r, onOpenChange: o, children: a }) => {
|
|
7244
7244
|
const i = k();
|
|
7245
7245
|
return /* @__PURE__ */ m(Ie.Item, {
|
|
7246
7246
|
value: e,
|
|
@@ -7251,7 +7251,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7251
7251
|
render: /* @__PURE__ */ n("div", {}),
|
|
7252
7252
|
children: [
|
|
7253
7253
|
/* @__PURE__ */ n(Ie.Trigger, {
|
|
7254
|
-
className:
|
|
7254
|
+
className: op,
|
|
7255
7255
|
"aria-label": i("editor.accessibility.toggleSection", { title: e })
|
|
7256
7256
|
}),
|
|
7257
7257
|
/* @__PURE__ */ n("span", {
|
|
@@ -7267,14 +7267,14 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7267
7267
|
children: r
|
|
7268
7268
|
}),
|
|
7269
7269
|
/* @__PURE__ */ n("span", {
|
|
7270
|
-
className:
|
|
7271
|
-
children: /* @__PURE__ */ n(
|
|
7270
|
+
className: sp,
|
|
7271
|
+
children: /* @__PURE__ */ n(ap, { size: "sm" })
|
|
7272
7272
|
})
|
|
7273
7273
|
]
|
|
7274
7274
|
}), /* @__PURE__ */ n(Ie.Panel, { children: /* @__PURE__ */ n("div", { children: a }) })]
|
|
7275
7275
|
});
|
|
7276
|
-
},
|
|
7277
|
-
const { expandSection: l, collapseAllSections: c } =
|
|
7276
|
+
}, up = ({ title: e, isChecked: t, onToggle: r, isDisabled: o, preview: a, children: i }) => {
|
|
7277
|
+
const { expandSection: l, collapseAllSections: c } = Y1(), { Switch: s } = z();
|
|
7278
7278
|
return /* @__PURE__ */ n(W, {
|
|
7279
7279
|
title: e,
|
|
7280
7280
|
layout: "collapsible",
|
|
@@ -7292,15 +7292,15 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7292
7292
|
}),
|
|
7293
7293
|
children: i
|
|
7294
7294
|
});
|
|
7295
|
-
},
|
|
7295
|
+
}, hp = {
|
|
7296
7296
|
horizontal: ["bottom", "top"],
|
|
7297
7297
|
vertical: ["left", "right"]
|
|
7298
|
-
},
|
|
7298
|
+
}, pp = {
|
|
7299
7299
|
left: "editor.axesPanel.position.left",
|
|
7300
7300
|
right: "editor.axesPanel.position.right",
|
|
7301
7301
|
top: "editor.axesPanel.position.top",
|
|
7302
7302
|
bottom: "editor.axesPanel.position.bottom"
|
|
7303
|
-
},
|
|
7303
|
+
}, mp = {
|
|
7304
7304
|
x: "editor.axesPanel.mainAxisSection.xAxis",
|
|
7305
7305
|
y: "editor.axesPanel.mainAxisSection.yAxis"
|
|
7306
7306
|
}, kn = ({ axis: e, title: t, layout: r = "collapsible", preview: o }) => {
|
|
@@ -7308,12 +7308,12 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7308
7308
|
if (!i) return null;
|
|
7309
7309
|
const h = i.coordSystem.type === "polar" ? i.coordSystem.axisMapping[e].geometry : "linear", f = i.config.axes[e], p = i.scales[e], g = p?.spec, v = g?.scaleType === "continuous" ? g : void 0;
|
|
7310
7310
|
if (h === "circular" || h === "radial" && v === void 0) return null;
|
|
7311
|
-
const x = g !== void 0 && "reverse" in g ? g : void 0, w = g?.scaleType === "continuous" || g?.scaleType === "datetime", y = e === "y" && v !== void 0 && i.layers.some((S) => S.yScaleType === "primary" && S.geom === "bar"), L = v?.transform === "log", b = v?.domainMax ?? null, E =
|
|
7311
|
+
const x = g !== void 0 && "reverse" in g ? g : void 0, w = g?.scaleType === "continuous" || g?.scaleType === "datetime", y = e === "y" && v !== void 0 && i.layers.some((S) => S.yScaleType === "primary" && S.geom === "bar"), L = v?.transform === "log", b = v?.domainMax ?? null, E = gp(v), V = (S, ue) => S.map((Re) => ({
|
|
7312
7312
|
value: Re,
|
|
7313
7313
|
label: ue(Re)
|
|
7314
|
-
})), _ = i.guides.axes.find((S) => S.scaleAestheticKey === e)?.position, P =
|
|
7314
|
+
})), _ = i.guides.axes.find((S) => S.scaleAestheticKey === e)?.position, P = hp[_ === "bottom" || _ === "top" || _ === void 0 && e === "x" ? "horizontal" : "vertical"], N = e === "y" ? tl(i.spec) : null, T = N === null ? void 0 : i.spec.layers.find((S) => S.id === N), F = i.guides.legends.drawn.some((S) => P.some((ue) => ue === S.position)), ge = P.map((S) => ({
|
|
7315
7315
|
value: S,
|
|
7316
|
-
label: l(
|
|
7316
|
+
label: l(pp[S])
|
|
7317
7317
|
})), Ea = V(["auto", "edges"], (S) => l(S === "edges" ? "editor.axesPanel.labelMode.edges" : "editor.axesPanel.labelMode.auto")), Ma = V(["linear", "log"], (S) => l(S === "log" ? "editor.axesPanel.scale.log" : "editor.axesPanel.scale.auto")), Na = V([
|
|
7318
7318
|
"auto",
|
|
7319
7319
|
"zero",
|
|
@@ -7396,7 +7396,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7396
7396
|
}));
|
|
7397
7397
|
};
|
|
7398
7398
|
return /* @__PURE__ */ n(W, {
|
|
7399
|
-
title: t ?? l(
|
|
7399
|
+
title: t ?? l(mp[e]),
|
|
7400
7400
|
layout: r,
|
|
7401
7401
|
preview: o,
|
|
7402
7402
|
children: /* @__PURE__ */ m(q, { children: [
|
|
@@ -7496,7 +7496,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7496
7496
|
] })
|
|
7497
7497
|
] })
|
|
7498
7498
|
});
|
|
7499
|
-
},
|
|
7499
|
+
}, gp = (e) => e === void 0 ? "auto" : e.domainMin !== null && e.domainMin !== void 0 ? "custom" : e.zero === !0 ? "zero" : "auto", Ln = (e, t) => {
|
|
7500
7500
|
const r = t === "start" ? e?.[0] : e?.[e.length - 1];
|
|
7501
7501
|
return typeof r == "number" ? r : 0;
|
|
7502
7502
|
}, $t = ({ value: e, onChange: t }) => {
|
|
@@ -7510,7 +7510,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7510
7510
|
isDisabled: i
|
|
7511
7511
|
})
|
|
7512
7512
|
});
|
|
7513
|
-
},
|
|
7513
|
+
}, fp = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
7514
7514
|
const o = R(), a = $(o), i = k(), { Switch: l } = z();
|
|
7515
7515
|
if (!a) return null;
|
|
7516
7516
|
const c = a.config.content, s = (d) => {
|
|
@@ -7536,7 +7536,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7536
7536
|
onChange: u
|
|
7537
7537
|
})] })
|
|
7538
7538
|
});
|
|
7539
|
-
}, Pn = /^[a-z][a-z\d+.-]*:/i,
|
|
7539
|
+
}, Pn = /^[a-z][a-z\d+.-]*:/i, vp = {}, bp = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
7540
7540
|
const o = R(), a = $(o), i = k(), { Switch: l } = z();
|
|
7541
7541
|
if (!a) return null;
|
|
7542
7542
|
const c = a.config.content, s = (u) => {
|
|
@@ -7555,9 +7555,9 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7555
7555
|
isChecked: c.isSourceVisible,
|
|
7556
7556
|
onChange: s
|
|
7557
7557
|
})
|
|
7558
|
-
}), /* @__PURE__ */ n(
|
|
7558
|
+
}), /* @__PURE__ */ n(Cp, { source: c.source ?? vp })] })
|
|
7559
7559
|
});
|
|
7560
|
-
},
|
|
7560
|
+
}, Cp = ({ source: e }) => {
|
|
7561
7561
|
const t = R(), r = k(), { TextField: o } = z(), a = (s) => {
|
|
7562
7562
|
const u = (s.label ?? "") !== "" || (s.url ?? "") !== "";
|
|
7563
7563
|
t.commands.dispatch(new Wo({ source: u ? s : null }), { transient: !0 });
|
|
@@ -7590,7 +7590,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7590
7590
|
onCommit: t.commands.seal
|
|
7591
7591
|
})
|
|
7592
7592
|
})] });
|
|
7593
|
-
},
|
|
7593
|
+
}, yp = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
7594
7594
|
const o = R(), a = $(o), i = k(), { Switch: l } = z();
|
|
7595
7595
|
if (!a) return null;
|
|
7596
7596
|
const c = a.config.content, s = (d) => {
|
|
@@ -7627,7 +7627,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7627
7627
|
2.5,
|
|
7628
7628
|
3,
|
|
7629
7629
|
4
|
|
7630
|
-
],
|
|
7630
|
+
], Sp = Ct.length / 2, xp = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
7631
7631
|
const o = R(), a = $(o), i = k(), { RadioGrid: l } = z();
|
|
7632
7632
|
if (!a) return null;
|
|
7633
7633
|
const { textScale: c } = a.config.appearance, s = (h) => i("editor.elementsPanel.textSizeSection.scaleFormat", { value: `${h}` }), u = Ct.map((h) => ({
|
|
@@ -7644,12 +7644,12 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7644
7644
|
children: /* @__PURE__ */ n(l, {
|
|
7645
7645
|
value: `${c}`,
|
|
7646
7646
|
options: u,
|
|
7647
|
-
columns:
|
|
7647
|
+
columns: Sp,
|
|
7648
7648
|
onChange: d,
|
|
7649
7649
|
ariaLabel: i("editor.elementsPanel.textSizeSection.title")
|
|
7650
7650
|
})
|
|
7651
7651
|
});
|
|
7652
|
-
},
|
|
7652
|
+
}, wp = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
7653
7653
|
const o = R(), a = $(o), i = k(), { Switch: l } = z();
|
|
7654
7654
|
if (!a) return null;
|
|
7655
7655
|
const c = a.config.content, s = (d) => {
|
|
@@ -7675,26 +7675,26 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7675
7675
|
onChange: u
|
|
7676
7676
|
})] })
|
|
7677
7677
|
});
|
|
7678
|
-
},
|
|
7678
|
+
}, Nm = ({ children: e, ...t }) => /* @__PURE__ */ n(Ta.Root, {
|
|
7679
7679
|
...t,
|
|
7680
7680
|
children: e ?? /* @__PURE__ */ m(j, { children: [
|
|
7681
|
-
/* @__PURE__ */ n(
|
|
7682
|
-
/* @__PURE__ */ n(
|
|
7683
|
-
/* @__PURE__ */ n(
|
|
7684
|
-
/* @__PURE__ */ n(
|
|
7685
|
-
/* @__PURE__ */ n(
|
|
7681
|
+
/* @__PURE__ */ n(wp, {}),
|
|
7682
|
+
/* @__PURE__ */ n(yp, {}),
|
|
7683
|
+
/* @__PURE__ */ n(fp, {}),
|
|
7684
|
+
/* @__PURE__ */ n(bp, {}),
|
|
7685
|
+
/* @__PURE__ */ n(xp, {})
|
|
7686
7686
|
] })
|
|
7687
|
-
}),
|
|
7687
|
+
}), Om = ({ children: e, ...t }) => /* @__PURE__ */ n(Ta.Root, {
|
|
7688
7688
|
...t,
|
|
7689
7689
|
children: e ?? /* @__PURE__ */ m(j, { children: [/* @__PURE__ */ n(kn, { axis: "x" }), /* @__PURE__ */ n(kn, { axis: "y" })] })
|
|
7690
|
-
}), rt = (e) => `${e}px`, ka = (e) => `${Math.round(e * 100)}%`,
|
|
7690
|
+
}), rt = (e) => `${e}px`, ka = (e) => `${Math.round(e * 100)}%`, Tp = (e) => `${e}°`, Ap = 24, kp = { select: { target: "graph" } }, In = ["dim", "desaturate"], Dm = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
7691
7691
|
const o = R(), a = $(o), i = k(), { Slider: l, ToggleGroup: c } = z();
|
|
7692
7692
|
if (!a) return null;
|
|
7693
7693
|
const s = Lt().chromeReaders(a.chrome).graph.get("borderRadius"), u = nl(a.spec), d = In.map((p) => ({
|
|
7694
7694
|
value: p,
|
|
7695
7695
|
label: i(p === "dim" ? "editor.highlighting.highlightStyle.tint" : "editor.highlighting.highlightStyle.grey")
|
|
7696
7696
|
})), h = (p) => {
|
|
7697
|
-
const g = Wi(a.spec.styles.overrides,
|
|
7697
|
+
const g = Wi(a.spec.styles.overrides, kp)?.declarations ?? {};
|
|
7698
7698
|
o.commands.dispatch(new fi({
|
|
7699
7699
|
list: "overrides",
|
|
7700
7700
|
rule: {
|
|
@@ -7718,7 +7718,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7718
7718
|
children: /* @__PURE__ */ n(l, {
|
|
7719
7719
|
value: s,
|
|
7720
7720
|
min: 0,
|
|
7721
|
-
max:
|
|
7721
|
+
max: Ap,
|
|
7722
7722
|
step: 1,
|
|
7723
7723
|
formatValue: rt,
|
|
7724
7724
|
onChange: h,
|
|
@@ -7743,24 +7743,24 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7743
7743
|
t,
|
|
7744
7744
|
r
|
|
7745
7745
|
]);
|
|
7746
|
-
},
|
|
7746
|
+
}, Lp = 0.05, Rm = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
7747
7747
|
const o = R(), a = $(o), i = k(), { Slider: l, ToggleGroup: c } = z(), s = a ? tr(a.spec.layers, "bar") : void 0, u = Ut(a, s?.id ?? null);
|
|
7748
7748
|
if (!a || !s || a.coordSystem.type === "polar" && a.coordSystem.bandAxis === null) return null;
|
|
7749
|
-
const d = (
|
|
7749
|
+
const d = (g) => {
|
|
7750
7750
|
o.commands.dispatch(new Uo({
|
|
7751
7751
|
layerId: s.id,
|
|
7752
|
-
width:
|
|
7752
|
+
width: g
|
|
7753
7753
|
}), { transient: !0 });
|
|
7754
|
-
}, h = (
|
|
7755
|
-
const
|
|
7756
|
-
|
|
7754
|
+
}, h = (g) => {
|
|
7755
|
+
const v = qt.find((x) => x === g);
|
|
7756
|
+
v && o.commands.dispatch(new $o({
|
|
7757
7757
|
layerId: s.id,
|
|
7758
|
-
borderRadius:
|
|
7758
|
+
borderRadius: v
|
|
7759
7759
|
}));
|
|
7760
|
-
}, f = qt.map((
|
|
7761
|
-
value:
|
|
7762
|
-
label: i(`editor.graphPanel.barSection.roundingOptions.${
|
|
7763
|
-
}));
|
|
7760
|
+
}, f = qt.map((g) => ({
|
|
7761
|
+
value: g,
|
|
7762
|
+
label: i(`editor.graphPanel.barSection.roundingOptions.${g}`)
|
|
7763
|
+
})), p = ol(s.params, a.coordSystem.type);
|
|
7764
7764
|
return /* @__PURE__ */ n(W, {
|
|
7765
7765
|
title: e ?? i("editor.graphPanel.barSection.title"),
|
|
7766
7766
|
layout: t,
|
|
@@ -7768,10 +7768,10 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7768
7768
|
children: /* @__PURE__ */ m(q, { children: [/* @__PURE__ */ n(C, {
|
|
7769
7769
|
label: i("editor.graphPanel.barSection.thickness"),
|
|
7770
7770
|
children: /* @__PURE__ */ n(l, {
|
|
7771
|
-
value:
|
|
7771
|
+
value: p,
|
|
7772
7772
|
min: Oo,
|
|
7773
7773
|
max: No,
|
|
7774
|
-
step:
|
|
7774
|
+
step: Lp,
|
|
7775
7775
|
formatValue: ka,
|
|
7776
7776
|
onChange: d,
|
|
7777
7777
|
onCommit: o.commands.seal
|
|
@@ -7811,7 +7811,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7811
7811
|
floodOpacity: "0.16"
|
|
7812
7812
|
})]
|
|
7813
7813
|
}) })] });
|
|
7814
|
-
}, ot = "qdaoth0",
|
|
7814
|
+
}, ot = "qdaoth0", Pp = (e) => /* @__PURE__ */ m(A, {
|
|
7815
7815
|
viewBox: "0 0 31 33",
|
|
7816
7816
|
...e,
|
|
7817
7817
|
children: [/* @__PURE__ */ n(at, { children: /* @__PURE__ */ n("path", {
|
|
@@ -7823,7 +7823,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7823
7823
|
fill: "currentColor",
|
|
7824
7824
|
d: "M12.0591 7.11C11.5767 7.11 11.1857 6.71899 11.1857 6.23664C11.1857 5.7543 11.5767 5.36328 12.0591 5.36328H24.8684C25.3507 5.36328 25.7417 5.7543 25.7417 6.23664V19.0459C25.7417 19.5283 25.3507 19.9193 24.8684 19.9193C24.386 19.9193 23.995 19.5283 23.995 19.0459V8.34512L6.8542 25.4859C6.51313 25.827 5.96015 25.827 5.61908 25.4859C5.27801 25.1448 5.27801 24.5919 5.61908 24.2508L22.7599 7.11H12.0591Z"
|
|
7825
7825
|
})]
|
|
7826
|
-
}),
|
|
7826
|
+
}), Ip = (e) => /* @__PURE__ */ n(A, {
|
|
7827
7827
|
viewBox: "0 0 32 32",
|
|
7828
7828
|
...e,
|
|
7829
7829
|
children: /* @__PURE__ */ m(at, { children: [/* @__PURE__ */ n("path", {
|
|
@@ -7833,7 +7833,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7833
7833
|
fill: "currentColor",
|
|
7834
7834
|
d: "M24.25 9C24.25 8.30964 23.6904 7.75 23 7.75H9C8.30964 7.75 7.75 8.30964 7.75 9V23C7.75 23.6904 8.30964 24.25 9 24.25H23C23.6904 24.25 24.25 23.6904 24.25 23V9ZM25.75 23C25.75 24.5188 24.5188 25.75 23 25.75H9C7.48122 25.75 6.25 24.5188 6.25 23V9C6.25 7.48122 7.48122 6.25 9 6.25H23C24.5188 6.25 25.75 7.48122 25.75 9V23Z"
|
|
7835
7835
|
})] })
|
|
7836
|
-
}),
|
|
7836
|
+
}), Ep = (e) => /* @__PURE__ */ m(A, {
|
|
7837
7837
|
viewBox: "0 0 32 33",
|
|
7838
7838
|
...e,
|
|
7839
7839
|
children: [/* @__PURE__ */ n(at, { children: /* @__PURE__ */ n("path", {
|
|
@@ -7847,7 +7847,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7847
7847
|
clipRule: "evenodd",
|
|
7848
7848
|
d: "M25.25 22C25.25 20.7574 24.2426 19.75 23 19.75C21.7574 19.75 20.75 20.7574 20.75 22C20.75 23.2426 21.7574 24.25 23 24.25C24.2426 24.25 25.25 23.2426 25.25 22ZM23 18.25C25.0711 18.25 26.75 19.9289 26.75 22C26.75 24.0711 25.0711 25.75 23 25.75C20.9289 25.75 19.25 24.0711 19.25 22C19.25 19.9289 20.9289 18.25 23 18.25ZM11.25 9C11.25 7.75736 10.2426 6.75 9 6.75C7.75736 6.75 6.75 7.75736 6.75 9C6.75 10.2426 7.75736 11.25 9 11.25C10.2426 11.25 11.25 10.2426 11.25 9ZM9.75 12.675C11.4617 12.3275 12.75 10.8142 12.75 9C12.75 6.92893 11.0711 5.25 9 5.25C6.92893 5.25 5.25 6.92893 5.25 9C5.25 10.8142 6.53832 12.3275 8.25 12.675L8.25 24C8.25 24.4142 8.58579 24.75 9 24.75L16 24.75C16.4142 24.75 16.75 24.4142 16.75 24L16.75 7.75L22.25 7.75L22.25 14.1893L21.0303 12.9697C20.7374 12.6768 20.2626 12.6768 19.9697 12.9697C19.6768 13.2626 19.6768 13.7374 19.9697 14.0303L22.4697 16.5303C22.7626 16.8232 23.2374 16.8232 23.5303 16.5303L26.0303 14.0303C26.3232 13.7374 26.3232 13.2626 26.0303 12.9697C25.7374 12.6768 25.2626 12.6768 24.9697 12.9697L23.75 14.1893L23.75 7C23.75 6.58579 23.4142 6.25 23 6.25L16 6.25C15.5858 6.25 15.25 6.58579 15.25 7L15.25 23.25L9.75 23.25L9.75 12.675Z"
|
|
7849
7849
|
})]
|
|
7850
|
-
}),
|
|
7850
|
+
}), Mp = (e) => /* @__PURE__ */ m(A, {
|
|
7851
7851
|
viewBox: "0 0 32 33",
|
|
7852
7852
|
...e,
|
|
7853
7853
|
children: [/* @__PURE__ */ n(at, { children: /* @__PURE__ */ n("path", {
|
|
@@ -7857,26 +7857,26 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7857
7857
|
fill: "currentColor",
|
|
7858
7858
|
d: "M8.41371 5H20.7271C21.1595 5 21.5325 5 21.8398 5.02507C22.1641 5.05157 22.4867 5.11007 22.7971 5.26822C23.2601 5.50416 23.6366 5.88064 23.8726 6.3437C24.0307 6.65409 24.0892 6.97666 24.1157 7.30097C24.1408 7.60823 24.1408 7.98127 24.1408 8.41369V9.10155C24.1408 9.55465 23.7735 9.92195 23.3205 9.92195C22.8674 9.92195 22.5001 9.55465 22.5001 9.10155V8.44533C22.5001 7.97237 22.4995 7.66699 22.4805 7.43457C22.4623 7.21172 22.4314 7.12909 22.4107 7.08853C22.3321 6.93418 22.2066 6.80869 22.0522 6.73004C22.0117 6.70938 21.9291 6.67847 21.7062 6.66026C21.4738 6.64127 21.1684 6.64063 20.6954 6.64063H15.3907V24.6877H20.0392C20.4922 24.6877 20.8595 25.0549 20.8595 25.508C20.8595 25.961 20.4922 26.3283 20.0392 26.3283H9.10159C8.64854 26.3283 8.28127 25.961 8.28127 25.508C8.28127 25.0549 8.64854 24.6877 9.10159 24.6877H13.7501V6.64063H8.44533C7.97238 6.64063 7.66699 6.64127 7.43457 6.66026C7.21172 6.67847 7.1291 6.70938 7.08854 6.73004C6.93418 6.80869 6.80869 6.93418 6.73004 7.08853C6.70938 7.12909 6.67847 7.21172 6.66026 7.43457C6.64127 7.66699 6.64063 7.97237 6.64063 8.44533V9.10155C6.64063 9.55465 6.27337 9.92195 5.82032 9.92195C5.36727 9.92195 5 9.55465 5 9.10155V8.41371C5 7.98128 5 7.60823 5.02508 7.30097C5.05157 6.97666 5.11007 6.65409 5.26823 6.3437C5.50417 5.88064 5.88064 5.50416 6.3437 5.26822C6.65409 5.11007 6.97666 5.05157 7.30097 5.02507C7.60824 5 7.98129 5 8.41371 5Z"
|
|
7859
7859
|
})]
|
|
7860
|
-
}),
|
|
7860
|
+
}), Np = {
|
|
7861
7861
|
x: 0.5,
|
|
7862
7862
|
y: 0.5
|
|
7863
|
-
},
|
|
7863
|
+
}, Op = 0.2, Dp = {
|
|
7864
7864
|
x: 0.375,
|
|
7865
7865
|
y: 0.25,
|
|
7866
7866
|
width: 0.25,
|
|
7867
7867
|
height: 0.5
|
|
7868
|
-
},
|
|
7868
|
+
}, Rp = {
|
|
7869
7869
|
fillColor: null,
|
|
7870
7870
|
fillOpacity: 0.25,
|
|
7871
7871
|
strokeWidth: 0,
|
|
7872
7872
|
zOrder: "background"
|
|
7873
|
-
},
|
|
7873
|
+
}, zp = {
|
|
7874
7874
|
x: 0.4,
|
|
7875
7875
|
y: 0.6
|
|
7876
|
-
},
|
|
7876
|
+
}, _p = {
|
|
7877
7877
|
x: 0.6,
|
|
7878
7878
|
y: 0.4
|
|
7879
|
-
},
|
|
7879
|
+
}, Fp = "relative-difference", zm = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
7880
7880
|
const o = R(), a = $(o), i = k(), { Button: l } = z();
|
|
7881
7881
|
if (!a) return null;
|
|
7882
7882
|
const c = () => {
|
|
@@ -7884,12 +7884,12 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7884
7884
|
kind: "text",
|
|
7885
7885
|
annotation: {
|
|
7886
7886
|
...vi,
|
|
7887
|
-
content:
|
|
7887
|
+
content: Hp(i("editor.annotatePanel.callOutSection.text")),
|
|
7888
7888
|
at: {
|
|
7889
7889
|
anchorType: "panel",
|
|
7890
|
-
...
|
|
7890
|
+
...Np
|
|
7891
7891
|
},
|
|
7892
|
-
width:
|
|
7892
|
+
width: Op
|
|
7893
7893
|
}
|
|
7894
7894
|
}));
|
|
7895
7895
|
}, s = () => {
|
|
@@ -7899,11 +7899,11 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7899
7899
|
...ko,
|
|
7900
7900
|
start: {
|
|
7901
7901
|
anchorType: "panel",
|
|
7902
|
-
...
|
|
7902
|
+
...zp
|
|
7903
7903
|
},
|
|
7904
7904
|
end: {
|
|
7905
7905
|
anchorType: "panel",
|
|
7906
|
-
...
|
|
7906
|
+
..._p
|
|
7907
7907
|
}
|
|
7908
7908
|
}
|
|
7909
7909
|
}));
|
|
@@ -7912,10 +7912,10 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7912
7912
|
kind: "shape",
|
|
7913
7913
|
annotation: {
|
|
7914
7914
|
...zo,
|
|
7915
|
-
...
|
|
7915
|
+
...Rp,
|
|
7916
7916
|
region: {
|
|
7917
7917
|
anchorType: "panel",
|
|
7918
|
-
...
|
|
7918
|
+
...Dp
|
|
7919
7919
|
}
|
|
7920
7920
|
}
|
|
7921
7921
|
}));
|
|
@@ -7926,7 +7926,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7926
7926
|
annotation: {
|
|
7927
7927
|
...qn,
|
|
7928
7928
|
...f,
|
|
7929
|
-
label:
|
|
7929
|
+
label: Fp
|
|
7930
7930
|
}
|
|
7931
7931
|
}));
|
|
7932
7932
|
}, h = a.coordSystem.type === "cartesian";
|
|
@@ -7937,31 +7937,31 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7937
7937
|
children: /* @__PURE__ */ m(xa, { children: [
|
|
7938
7938
|
/* @__PURE__ */ n(l, {
|
|
7939
7939
|
variant: "tile",
|
|
7940
|
-
icon: /* @__PURE__ */ n(
|
|
7940
|
+
icon: /* @__PURE__ */ n(Mp, { size: "xl" }),
|
|
7941
7941
|
label: i("editor.annotatePanel.callOutSection.text"),
|
|
7942
7942
|
onClick: c
|
|
7943
7943
|
}),
|
|
7944
7944
|
/* @__PURE__ */ n(l, {
|
|
7945
7945
|
variant: "tile",
|
|
7946
|
-
icon: /* @__PURE__ */ n(
|
|
7946
|
+
icon: /* @__PURE__ */ n(Pp, { size: "xl" }),
|
|
7947
7947
|
label: i("editor.annotatePanel.callOutSection.arrow"),
|
|
7948
7948
|
onClick: s
|
|
7949
7949
|
}),
|
|
7950
7950
|
/* @__PURE__ */ n(l, {
|
|
7951
7951
|
variant: "tile",
|
|
7952
|
-
icon: /* @__PURE__ */ n(
|
|
7952
|
+
icon: /* @__PURE__ */ n(Ip, { size: "xl" }),
|
|
7953
7953
|
label: i("editor.annotatePanel.callOutSection.box"),
|
|
7954
7954
|
onClick: u
|
|
7955
7955
|
}),
|
|
7956
7956
|
h && /* @__PURE__ */ n(l, {
|
|
7957
7957
|
variant: "tile",
|
|
7958
|
-
icon: /* @__PURE__ */ n(
|
|
7958
|
+
icon: /* @__PURE__ */ n(Ep, { size: "xl" }),
|
|
7959
7959
|
label: i("editor.annotatePanel.callOutSection.difference"),
|
|
7960
7960
|
onClick: d
|
|
7961
7961
|
})
|
|
7962
7962
|
] })
|
|
7963
7963
|
});
|
|
7964
|
-
},
|
|
7964
|
+
}, Hp = (e) => ({
|
|
7965
7965
|
type: "doc",
|
|
7966
7966
|
content: [{
|
|
7967
7967
|
type: "paragraph",
|
|
@@ -7970,7 +7970,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7970
7970
|
text: e
|
|
7971
7971
|
}]
|
|
7972
7972
|
}]
|
|
7973
|
-
}),
|
|
7973
|
+
}), _m = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
7974
7974
|
const o = R(), a = $(o), i = k(), { ToggleGroup: l } = z();
|
|
7975
7975
|
if (!a) return null;
|
|
7976
7976
|
const c = ar(a.spec);
|
|
@@ -7996,13 +7996,13 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
7996
7996
|
ariaLabel: i("editor.graphPanel.comboSection.title")
|
|
7997
7997
|
})
|
|
7998
7998
|
});
|
|
7999
|
-
},
|
|
7999
|
+
}, Bp = 0.1, Vp = 20, Fm = ({ title: e, preview: t }) => {
|
|
8000
8000
|
const r = R(), o = $(r), a = k(), { NumberField: i, TextField: l } = z();
|
|
8001
8001
|
if (!o || o.coordSystem.type === "polar") return null;
|
|
8002
8002
|
const c = Vi(o.spec.layers), s = e ?? a("editor.annotationsPanel.goalSection.title"), u = _i(c?.mapping.y), d = typeof u == "number" ? u : null, h = (g) => {
|
|
8003
8003
|
const v = new yi({
|
|
8004
8004
|
showGoalLine: g,
|
|
8005
|
-
value:
|
|
8005
|
+
value: Gp(o),
|
|
8006
8006
|
...c !== void 0 && { layerId: c.id }
|
|
8007
8007
|
});
|
|
8008
8008
|
r.commands.dispatch(v);
|
|
@@ -8021,7 +8021,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8021
8021
|
});
|
|
8022
8022
|
r.commands.dispatch(v, { transient: !0 });
|
|
8023
8023
|
};
|
|
8024
|
-
return /* @__PURE__ */ n(
|
|
8024
|
+
return /* @__PURE__ */ n(up, {
|
|
8025
8025
|
title: s,
|
|
8026
8026
|
preview: t,
|
|
8027
8027
|
isChecked: c !== void 0,
|
|
@@ -8046,14 +8046,14 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8046
8046
|
})
|
|
8047
8047
|
})] })
|
|
8048
8048
|
});
|
|
8049
|
-
},
|
|
8049
|
+
}, Gp = (e) => {
|
|
8050
8050
|
const t = (e.scales.y?.domain ?? []).filter((l) => typeof l == "number");
|
|
8051
8051
|
if (t.length === 0) return 0;
|
|
8052
8052
|
const r = Math.max(...t), o = r - Math.min(...t), a = o > 0 ? o : Math.abs(r);
|
|
8053
8053
|
if (a === 0) return 0;
|
|
8054
|
-
const i = Math.min(
|
|
8055
|
-
return Number((r + a *
|
|
8056
|
-
},
|
|
8054
|
+
const i = Math.min(Vp, Math.max(0, 1 - Math.floor(Math.log10(a))));
|
|
8055
|
+
return Number((r + a * Bp).toFixed(i));
|
|
8056
|
+
}, Hm = ({ layerId: e, title: t, layout: r = "collapsible", preview: o }) => {
|
|
8057
8057
|
const a = R(), i = $(a), l = k(), { Switch: c } = z();
|
|
8058
8058
|
if (!i) return null;
|
|
8059
8059
|
const s = e === void 0 ? i.spec.layers[0] : i.spec.layers.find((_) => _.id === e);
|
|
@@ -8120,7 +8120,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8120
8120
|
})
|
|
8121
8121
|
] })
|
|
8122
8122
|
});
|
|
8123
|
-
},
|
|
8123
|
+
}, $p = (e) => /* @__PURE__ */ m(A, {
|
|
8124
8124
|
viewBox: "0 0 16 16",
|
|
8125
8125
|
...e,
|
|
8126
8126
|
children: [/* @__PURE__ */ n("path", {
|
|
@@ -8132,7 +8132,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8132
8132
|
fillOpacity: "0.3",
|
|
8133
8133
|
d: "M5.744 5.565 0 11.826V8l5.744-6.957 4.718 2.087L16 0v6.957l-5.538 4z"
|
|
8134
8134
|
})]
|
|
8135
|
-
}),
|
|
8135
|
+
}), Up = (e) => /* @__PURE__ */ n(A, {
|
|
8136
8136
|
viewBox: "0 0 16 16",
|
|
8137
8137
|
...e,
|
|
8138
8138
|
children: /* @__PURE__ */ m("g", {
|
|
@@ -8174,7 +8174,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8174
8174
|
})
|
|
8175
8175
|
]
|
|
8176
8176
|
})
|
|
8177
|
-
}),
|
|
8177
|
+
}), Wp = (e) => /* @__PURE__ */ n(A, {
|
|
8178
8178
|
viewBox: "0 0 16 16",
|
|
8179
8179
|
...e,
|
|
8180
8180
|
children: /* @__PURE__ */ m("g", {
|
|
@@ -8189,7 +8189,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8189
8189
|
d: "M0 12.445h4.267V.52A.52.52 0 0 0 3.748 0H.518A.52.52 0 0 0 0 .519zM5.867 7.111h4.266V.52A.52.52 0 0 0 9.615 0h-3.23a.52.52 0 0 0-.518.519zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
|
|
8190
8190
|
})]
|
|
8191
8191
|
})
|
|
8192
|
-
}),
|
|
8192
|
+
}), Kp = (e) => /* @__PURE__ */ n(A, {
|
|
8193
8193
|
viewBox: "0 0 16 16",
|
|
8194
8194
|
...e,
|
|
8195
8195
|
children: /* @__PURE__ */ m("g", {
|
|
@@ -8204,7 +8204,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8204
8204
|
d: "M0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.408H0zM5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
|
|
8205
8205
|
})]
|
|
8206
8206
|
})
|
|
8207
|
-
}),
|
|
8207
|
+
}), qp = (e) => /* @__PURE__ */ m(A, {
|
|
8208
8208
|
viewBox: "0 0 16 16",
|
|
8209
8209
|
...e,
|
|
8210
8210
|
children: [
|
|
@@ -8243,7 +8243,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8243
8243
|
rx: ".533"
|
|
8244
8244
|
})
|
|
8245
8245
|
]
|
|
8246
|
-
}),
|
|
8246
|
+
}), Xp = (e) => /* @__PURE__ */ m(A, {
|
|
8247
8247
|
viewBox: "0 0 16 16",
|
|
8248
8248
|
...e,
|
|
8249
8249
|
children: [/* @__PURE__ */ n("path", {
|
|
@@ -8255,7 +8255,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8255
8255
|
fillOpacity: "0.3",
|
|
8256
8256
|
d: "M0 12.445h4.267V.52A.52.52 0 0 0 3.748 0H.518A.52.52 0 0 0 0 .519zM5.867 7.111h4.266V.52A.52.52 0 0 0 9.615 0h-3.23a.52.52 0 0 0-.518.519zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
|
|
8257
8257
|
})]
|
|
8258
|
-
}),
|
|
8258
|
+
}), jp = (e) => /* @__PURE__ */ m(A, {
|
|
8259
8259
|
viewBox: "0 0 16 16",
|
|
8260
8260
|
...e,
|
|
8261
8261
|
children: [/* @__PURE__ */ n("path", {
|
|
@@ -8267,7 +8267,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8267
8267
|
fillOpacity: "0.3",
|
|
8268
8268
|
d: "M0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.408H0zM5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
|
|
8269
8269
|
})]
|
|
8270
|
-
}),
|
|
8270
|
+
}), Zp = (e) => /* @__PURE__ */ m(A, {
|
|
8271
8271
|
viewBox: "0 0 16 16",
|
|
8272
8272
|
...e,
|
|
8273
8273
|
children: [/* @__PURE__ */ m("g", {
|
|
@@ -8341,7 +8341,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8341
8341
|
})
|
|
8342
8342
|
]
|
|
8343
8343
|
})]
|
|
8344
|
-
}),
|
|
8344
|
+
}), Yp = (e) => /* @__PURE__ */ n(A, {
|
|
8345
8345
|
viewBox: "0 0 16 16",
|
|
8346
8346
|
...e,
|
|
8347
8347
|
children: /* @__PURE__ */ m("g", {
|
|
@@ -8376,7 +8376,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8376
8376
|
})
|
|
8377
8377
|
]
|
|
8378
8378
|
})
|
|
8379
|
-
}),
|
|
8379
|
+
}), Jp = (e) => /* @__PURE__ */ n(A, {
|
|
8380
8380
|
viewBox: "0 0 16 16",
|
|
8381
8381
|
...e,
|
|
8382
8382
|
children: /* @__PURE__ */ m("g", {
|
|
@@ -8453,7 +8453,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8453
8453
|
})
|
|
8454
8454
|
]
|
|
8455
8455
|
})
|
|
8456
|
-
}),
|
|
8456
|
+
}), Qp = (e) => /* @__PURE__ */ n(A, {
|
|
8457
8457
|
viewBox: "0 0 16 16",
|
|
8458
8458
|
...e,
|
|
8459
8459
|
children: /* @__PURE__ */ m("g", {
|
|
@@ -8530,7 +8530,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8530
8530
|
]
|
|
8531
8531
|
})]
|
|
8532
8532
|
})
|
|
8533
|
-
}),
|
|
8533
|
+
}), e2 = (e) => /* @__PURE__ */ m(A, {
|
|
8534
8534
|
viewBox: "0 0 16 16",
|
|
8535
8535
|
...e,
|
|
8536
8536
|
children: [
|
|
@@ -8552,7 +8552,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8552
8552
|
d: "M15.999 8a8 8 0 0 1-7.588 7.989l-.412.01V8z"
|
|
8553
8553
|
})
|
|
8554
8554
|
]
|
|
8555
|
-
}),
|
|
8555
|
+
}), t2 = (e) => /* @__PURE__ */ n(A, {
|
|
8556
8556
|
viewBox: "0 0 16 16",
|
|
8557
8557
|
...e,
|
|
8558
8558
|
children: /* @__PURE__ */ m("g", {
|
|
@@ -8596,10 +8596,10 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8596
8596
|
})
|
|
8597
8597
|
]
|
|
8598
8598
|
})
|
|
8599
|
-
}),
|
|
8599
|
+
}), n2 = 0.55, yt = [
|
|
8600
8600
|
{
|
|
8601
8601
|
name: "column",
|
|
8602
|
-
icon:
|
|
8602
|
+
icon: qp,
|
|
8603
8603
|
summary: {
|
|
8604
8604
|
coordType: "cartesian",
|
|
8605
8605
|
geom: "bar",
|
|
@@ -8608,7 +8608,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8608
8608
|
},
|
|
8609
8609
|
{
|
|
8610
8610
|
name: "columnStacked",
|
|
8611
|
-
icon:
|
|
8611
|
+
icon: jp,
|
|
8612
8612
|
summary: {
|
|
8613
8613
|
coordType: "cartesian",
|
|
8614
8614
|
geom: "bar",
|
|
@@ -8617,7 +8617,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8617
8617
|
},
|
|
8618
8618
|
{
|
|
8619
8619
|
name: "columnStackedFill",
|
|
8620
|
-
icon:
|
|
8620
|
+
icon: Xp,
|
|
8621
8621
|
summary: {
|
|
8622
8622
|
coordType: "cartesian",
|
|
8623
8623
|
geom: "bar",
|
|
@@ -8626,7 +8626,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8626
8626
|
},
|
|
8627
8627
|
{
|
|
8628
8628
|
name: "bar",
|
|
8629
|
-
icon:
|
|
8629
|
+
icon: Up,
|
|
8630
8630
|
summary: {
|
|
8631
8631
|
coordType: "flip",
|
|
8632
8632
|
geom: "bar",
|
|
@@ -8635,7 +8635,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8635
8635
|
},
|
|
8636
8636
|
{
|
|
8637
8637
|
name: "barStacked",
|
|
8638
|
-
icon:
|
|
8638
|
+
icon: Kp,
|
|
8639
8639
|
summary: {
|
|
8640
8640
|
coordType: "flip",
|
|
8641
8641
|
geom: "bar",
|
|
@@ -8644,7 +8644,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8644
8644
|
},
|
|
8645
8645
|
{
|
|
8646
8646
|
name: "barStackedFill",
|
|
8647
|
-
icon:
|
|
8647
|
+
icon: Wp,
|
|
8648
8648
|
summary: {
|
|
8649
8649
|
coordType: "flip",
|
|
8650
8650
|
geom: "bar",
|
|
@@ -8653,7 +8653,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8653
8653
|
},
|
|
8654
8654
|
{
|
|
8655
8655
|
name: "line",
|
|
8656
|
-
icon:
|
|
8656
|
+
icon: Qp,
|
|
8657
8657
|
summary: {
|
|
8658
8658
|
coordType: "cartesian",
|
|
8659
8659
|
geom: "line",
|
|
@@ -8662,7 +8662,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8662
8662
|
},
|
|
8663
8663
|
{
|
|
8664
8664
|
name: "areaStacked",
|
|
8665
|
-
icon:
|
|
8665
|
+
icon: $p,
|
|
8666
8666
|
summary: {
|
|
8667
8667
|
coordType: "cartesian",
|
|
8668
8668
|
geom: "area",
|
|
@@ -8671,7 +8671,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8671
8671
|
},
|
|
8672
8672
|
{
|
|
8673
8673
|
name: "combo",
|
|
8674
|
-
icon:
|
|
8674
|
+
icon: Zp,
|
|
8675
8675
|
summary: {
|
|
8676
8676
|
coordType: "cartesian",
|
|
8677
8677
|
comboType: "grouped-bars"
|
|
@@ -8679,7 +8679,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8679
8679
|
},
|
|
8680
8680
|
{
|
|
8681
8681
|
name: "scatter",
|
|
8682
|
-
icon:
|
|
8682
|
+
icon: t2,
|
|
8683
8683
|
summary: {
|
|
8684
8684
|
coordType: "cartesian",
|
|
8685
8685
|
geom: "point",
|
|
@@ -8688,7 +8688,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8688
8688
|
},
|
|
8689
8689
|
{
|
|
8690
8690
|
name: "pie",
|
|
8691
|
-
icon:
|
|
8691
|
+
icon: e2,
|
|
8692
8692
|
summary: {
|
|
8693
8693
|
coordType: "polar",
|
|
8694
8694
|
geom: "bar",
|
|
@@ -8699,25 +8699,25 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8699
8699
|
},
|
|
8700
8700
|
{
|
|
8701
8701
|
name: "donut",
|
|
8702
|
-
icon:
|
|
8702
|
+
icon: Yp,
|
|
8703
8703
|
summary: {
|
|
8704
8704
|
coordType: "polar",
|
|
8705
8705
|
geom: "bar",
|
|
8706
8706
|
position: "fill",
|
|
8707
8707
|
theta: "y",
|
|
8708
|
-
innerRadius:
|
|
8708
|
+
innerRadius: n2
|
|
8709
8709
|
}
|
|
8710
8710
|
},
|
|
8711
8711
|
{
|
|
8712
8712
|
name: "heatmap",
|
|
8713
|
-
icon:
|
|
8713
|
+
icon: Jp,
|
|
8714
8714
|
summary: {
|
|
8715
8715
|
coordType: "cartesian",
|
|
8716
8716
|
geom: "tile",
|
|
8717
8717
|
position: "identity"
|
|
8718
8718
|
}
|
|
8719
8719
|
}
|
|
8720
|
-
],
|
|
8720
|
+
], r2 = 0.05, a2 = (e) => e === null ? null : yt.find((t) => i2(t.summary, e)) ?? null, o2 = (e, t) => {
|
|
8721
8721
|
const { summary: r } = e;
|
|
8722
8722
|
return t === null || fe(r) ? r : r.position === "dodge" && La(t) ? {
|
|
8723
8723
|
...r,
|
|
@@ -8726,11 +8726,11 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8726
8726
|
...r,
|
|
8727
8727
|
innerRadius: t.innerRadius
|
|
8728
8728
|
};
|
|
8729
|
-
}, La = (e) => !fe(e) && e.geom === "bar" && e.position === "identity",
|
|
8729
|
+
}, La = (e) => !fe(e) && e.geom === "bar" && e.position === "identity", i2 = (e, t) => {
|
|
8730
8730
|
if (fe(e) || fe(t)) return fe(e) && fe(t);
|
|
8731
8731
|
const r = e.position === t.position || e.position === "dodge" && La(t);
|
|
8732
8732
|
return e.coordType !== t.coordType || e.geom !== t.geom || !r ? !1 : e.coordType !== "polar" || t.coordType !== "polar" ? !0 : e.theta === t.theta && je(e.innerRadius) === je(t.innerRadius);
|
|
8733
|
-
}, je = (e) => e >=
|
|
8733
|
+
}, je = (e) => e >= r2, l2 = 3, Bm = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
8734
8734
|
const o = R(), a = $(o), i = k(), { RadioGrid: l } = z(), c = O(() => yt.map(({ name: h, icon: f }) => ({
|
|
8735
8735
|
value: h,
|
|
8736
8736
|
label: i(`editor.graphTypes.${h}`),
|
|
@@ -8738,9 +8738,9 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8738
8738
|
isDisabled: h === "combo" && !Mi(a?.spec) || h === "heatmap" && !Ni(a?.spec)
|
|
8739
8739
|
})), [i, a]);
|
|
8740
8740
|
if (!a) return null;
|
|
8741
|
-
const s = ar(a.spec), u =
|
|
8741
|
+
const s = ar(a.spec), u = a2(s), d = (h) => {
|
|
8742
8742
|
const f = yt.find((p) => p.name === h);
|
|
8743
|
-
f && o.commands.dispatch(new jn(
|
|
8743
|
+
f && o.commands.dispatch(new jn(o2(f, s)));
|
|
8744
8744
|
};
|
|
8745
8745
|
return /* @__PURE__ */ n(W, {
|
|
8746
8746
|
title: e ?? i("editor.graphPanel.graphTypeSection.title"),
|
|
@@ -8749,7 +8749,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8749
8749
|
children: /* @__PURE__ */ n(l, {
|
|
8750
8750
|
value: u?.name ?? "",
|
|
8751
8751
|
options: c,
|
|
8752
|
-
columns:
|
|
8752
|
+
columns: l2,
|
|
8753
8753
|
onChange: d,
|
|
8754
8754
|
ariaLabel: i("editor.graphPanel.graphTypeSection.title")
|
|
8755
8755
|
})
|
|
@@ -8758,12 +8758,12 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8758
8758
|
"solid",
|
|
8759
8759
|
"dashed",
|
|
8760
8760
|
"dotted"
|
|
8761
|
-
],
|
|
8761
|
+
], s2 = 8, c2 = 0, Vm = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
8762
8762
|
const o = R(), a = $(o), i = k(), { Slider: l, Switch: c, ToggleGroup: s } = z(), { colorScheme: u } = ve();
|
|
8763
8763
|
if (!a) return null;
|
|
8764
|
-
const d = a.guides.axes.filter(
|
|
8764
|
+
const d = a.guides.axes.filter(d2);
|
|
8765
8765
|
if (d.length === 0) return null;
|
|
8766
|
-
const h = a.coordSystem.type !== "polar", f = d.some((y) => y.gridVisible), p =
|
|
8766
|
+
const h = a.coordSystem.type !== "polar", f = d.some((y) => y.gridVisible), p = ll(Lt({ colorScheme: u }).chromeReaders(a.chrome), "y"), g = En.map((y) => ({
|
|
8767
8767
|
value: y,
|
|
8768
8768
|
label: i(`editor.graphPanel.gridSection.lineStyles.${y}`)
|
|
8769
8769
|
})), v = (y) => (L) => {
|
|
@@ -8788,7 +8788,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8788
8788
|
layout: t,
|
|
8789
8789
|
preview: r,
|
|
8790
8790
|
children: /* @__PURE__ */ m(q, { children: [d.map((y) => /* @__PURE__ */ n(C, {
|
|
8791
|
-
label: i(
|
|
8791
|
+
label: i(u2(y)),
|
|
8792
8792
|
children: /* @__PURE__ */ n(c, {
|
|
8793
8793
|
isChecked: y.gridVisible,
|
|
8794
8794
|
onChange: v(y.scaleAestheticKey)
|
|
@@ -8804,8 +8804,8 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8804
8804
|
label: i("editor.graphPanel.gridSection.gridThickness"),
|
|
8805
8805
|
children: /* @__PURE__ */ n(l, {
|
|
8806
8806
|
value: p.strokeWidth,
|
|
8807
|
-
min:
|
|
8808
|
-
max:
|
|
8807
|
+
min: c2,
|
|
8808
|
+
max: s2,
|
|
8809
8809
|
step: 0.5,
|
|
8810
8810
|
formatValue: rt,
|
|
8811
8811
|
onChange: w,
|
|
@@ -8813,21 +8813,21 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8813
8813
|
})
|
|
8814
8814
|
})] })] })
|
|
8815
8815
|
});
|
|
8816
|
-
},
|
|
8816
|
+
}, d2 = (e) => e.scaleAestheticKey === "x" || e.scaleAestheticKey === "y", u2 = (e) => e.geometry === "radial" ? "editor.graphPanel.gridSection.rings" : e.geometry === "circular" ? "editor.graphPanel.gridSection.spokes" : e.scaleAestheticKey === "x" ? "editor.graphPanel.gridSection.verticalGridLines" : "editor.graphPanel.gridSection.horizontalGridLines", h2 = "total", Pa = [
|
|
8817
8817
|
"total",
|
|
8818
8818
|
"average",
|
|
8819
8819
|
"current"
|
|
8820
|
-
],
|
|
8820
|
+
], p2 = ["total"], Mn = ["previous", "first"], Nn = [
|
|
8821
8821
|
"auto",
|
|
8822
8822
|
"small",
|
|
8823
8823
|
"medium",
|
|
8824
8824
|
"large"
|
|
8825
|
-
],
|
|
8825
|
+
], Gm = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
8826
8826
|
const o = R(), a = $(o), i = k(), { Switch: l, ToggleGroup: c } = z();
|
|
8827
8827
|
if (!a) return null;
|
|
8828
8828
|
const s = a.config.headline, u = s.show !== "none", d = a.coordSystem, h = d.type === "polar", f = d.type === "polar" && d.innerRadius > 0, p = a.layers.some((T) => T.summary.grandTotal !== void 0);
|
|
8829
8829
|
if (h && !p) return null;
|
|
8830
|
-
const g = h ?
|
|
8830
|
+
const g = h ? p2 : Pa, v = a.guides.headline, x = v?.kind === "perGroup" && v.items.some((T) => T.comparison !== null), w = g.map((T) => ({
|
|
8831
8831
|
value: T,
|
|
8832
8832
|
label: i(`editor.graphPanel.headlineNumberSection.metrics.${T}`)
|
|
8833
8833
|
})), y = Mn.map((T) => ({
|
|
@@ -8843,7 +8843,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8843
8843
|
value: "center",
|
|
8844
8844
|
label: i("editor.graphPanel.headlineNumberSection.position.center")
|
|
8845
8845
|
}], E = (T) => {
|
|
8846
|
-
o.commands.dispatch(new jt({ show: T ?
|
|
8846
|
+
o.commands.dispatch(new jt({ show: T ? h2 : "none" }));
|
|
8847
8847
|
}, V = (T) => {
|
|
8848
8848
|
const F = g.find((ge) => ge === T);
|
|
8849
8849
|
F && o.commands.dispatch(new jt({ show: F }));
|
|
@@ -8859,7 +8859,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8859
8859
|
return /* @__PURE__ */ n(W, {
|
|
8860
8860
|
title: e ?? i("editor.graphPanel.headlineNumberSection.title"),
|
|
8861
8861
|
layout: t,
|
|
8862
|
-
preview: r ??
|
|
8862
|
+
preview: r ?? m2(i, s.show),
|
|
8863
8863
|
children: /* @__PURE__ */ m(q, { children: [/* @__PURE__ */ n(C, {
|
|
8864
8864
|
label: i("editor.graphPanel.headlineNumberSection.toggle"),
|
|
8865
8865
|
children: /* @__PURE__ */ n(l, {
|
|
@@ -8880,7 +8880,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8880
8880
|
label: i("editor.graphPanel.headlineNumberSection.compareWithLabel"),
|
|
8881
8881
|
layout: "stack",
|
|
8882
8882
|
children: /* @__PURE__ */ n(c, {
|
|
8883
|
-
value:
|
|
8883
|
+
value: il(s.compareWith),
|
|
8884
8884
|
options: y,
|
|
8885
8885
|
onChange: _
|
|
8886
8886
|
})
|
|
@@ -8903,7 +8903,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8903
8903
|
})
|
|
8904
8904
|
] })] })
|
|
8905
8905
|
});
|
|
8906
|
-
},
|
|
8906
|
+
}, m2 = (e, t) => {
|
|
8907
8907
|
const r = Pa.find((o) => o === t);
|
|
8908
8908
|
return r && e(`editor.graphPanel.headlineNumberSection.metrics.${r}`);
|
|
8909
8909
|
}, dt = [
|
|
@@ -8921,7 +8921,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8921
8921
|
"auto",
|
|
8922
8922
|
"pill",
|
|
8923
8923
|
"direct"
|
|
8924
|
-
],
|
|
8924
|
+
], $m = ({ positions: e, title: t, layout: r = "collapsible", preview: o }) => {
|
|
8925
8925
|
const a = R(), i = $(a), l = k(), { ToggleGroup: c } = z();
|
|
8926
8926
|
if (!i) return null;
|
|
8927
8927
|
const s = i.config.legend.position, u = e ?? dt, d = i.guides.legends.drawn[0], h = Ei({
|
|
@@ -8983,7 +8983,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8983
8983
|
})
|
|
8984
8984
|
] })
|
|
8985
8985
|
});
|
|
8986
|
-
},
|
|
8986
|
+
}, g2 = 1, f2 = 20, v2 = 0.5, Ia = ({ layerId: e }) => {
|
|
8987
8987
|
const t = R(), r = $(t), { Slider: o } = z(), a = Ut(r, e);
|
|
8988
8988
|
if (!r) return null;
|
|
8989
8989
|
const i = (l) => {
|
|
@@ -8995,21 +8995,21 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8995
8995
|
};
|
|
8996
8996
|
return /* @__PURE__ */ n(o, {
|
|
8997
8997
|
value: a?.get("size") ?? Eo,
|
|
8998
|
-
min:
|
|
8999
|
-
max:
|
|
9000
|
-
step:
|
|
8998
|
+
min: g2,
|
|
8999
|
+
max: f2,
|
|
9000
|
+
step: v2,
|
|
9001
9001
|
formatValue: rt,
|
|
9002
9002
|
onChange: i,
|
|
9003
9003
|
onCommit: t.commands.seal
|
|
9004
9004
|
});
|
|
9005
|
-
},
|
|
9005
|
+
}, b2 = 1, C2 = 10, y2 = 0.1, S2 = [
|
|
9006
9006
|
"gap",
|
|
9007
9007
|
"zero",
|
|
9008
9008
|
"connect"
|
|
9009
|
-
],
|
|
9009
|
+
], Um = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
9010
9010
|
const o = R(), a = $(o), i = k(), { Select: l, Slider: c, Switch: s, ToggleGroup: u } = z(), d = a?.spec.layers ?? [], h = tr(d, "line", "area"), f = Ut(a, h?.id ?? null);
|
|
9011
9011
|
if (!a || !h) return null;
|
|
9012
|
-
const p = a.coordSystem.type === "polar", g =
|
|
9012
|
+
const p = a.coordSystem.type === "polar", g = T2(i, h), v = w2(h, d), x = Rn(a.spec, h.geom, "strokeWidth", h.id), w = typeof x == "number", y = h.geom === "line" ? h : void 0, L = [{
|
|
9013
9013
|
value: "auto",
|
|
9014
9014
|
label: i("editor.graphPanel.numberFormat.options.auto")
|
|
9015
9015
|
}, {
|
|
@@ -9042,7 +9042,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9042
9042
|
lineWidth: T
|
|
9043
9043
|
}), { transient: !0 });
|
|
9044
9044
|
}, N = (T) => {
|
|
9045
|
-
const F =
|
|
9045
|
+
const F = x2(T);
|
|
9046
9046
|
F && o.commands.dispatch(new oi({
|
|
9047
9047
|
layerId: h.id,
|
|
9048
9048
|
missingValues: F
|
|
@@ -9090,9 +9090,9 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9090
9090
|
label: i("editor.graphPanel.numberFormat.valueLabel"),
|
|
9091
9091
|
children: /* @__PURE__ */ n(c, {
|
|
9092
9092
|
value: x,
|
|
9093
|
-
min:
|
|
9094
|
-
max:
|
|
9095
|
-
step:
|
|
9093
|
+
min: b2,
|
|
9094
|
+
max: C2,
|
|
9095
|
+
step: y2,
|
|
9096
9096
|
formatValue: rt,
|
|
9097
9097
|
onChange: P,
|
|
9098
9098
|
onCommit: o.commands.seal
|
|
@@ -9108,7 +9108,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9108
9108
|
})
|
|
9109
9109
|
] })
|
|
9110
9110
|
});
|
|
9111
|
-
},
|
|
9111
|
+
}, x2 = (e) => S2.find((t) => t === e), Rn = (e, t, r, o) => $i(e.styles.overrides, Li(t, o))?.[r], w2 = (e, t) => ut(t, "point").find((r) => nr(r, [e])), T2 = (e, t) => {
|
|
9112
9112
|
const r = [{
|
|
9113
9113
|
value: "gap",
|
|
9114
9114
|
label: e("editor.graphPanel.treatEmptyValues.leaveGap.label")
|
|
@@ -9120,26 +9120,26 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9120
9120
|
value: "connect",
|
|
9121
9121
|
label: e("editor.graphPanel.treatEmptyValues.connectGaps.label")
|
|
9122
9122
|
}), t.geom === "area" ? r.filter((o) => o.value !== "gap") : r;
|
|
9123
|
-
}, St = "\0none",
|
|
9123
|
+
}, St = "\0none", A2 = [
|
|
9124
9124
|
"x",
|
|
9125
9125
|
"y",
|
|
9126
9126
|
"color",
|
|
9127
9127
|
"size",
|
|
9128
9128
|
"label"
|
|
9129
|
-
],
|
|
9129
|
+
], k2 = {
|
|
9130
9130
|
x: "editor.graphPanel.mappingSection.x",
|
|
9131
9131
|
y: "editor.graphPanel.mappingSection.y",
|
|
9132
9132
|
color: "editor.graphPanel.mappingSection.color",
|
|
9133
9133
|
size: "editor.graphPanel.mappingSection.size",
|
|
9134
9134
|
label: "editor.graphPanel.mappingSection.label"
|
|
9135
|
-
},
|
|
9136
|
-
const r = R(), o = $(r), a = k(), { Select: i } = z(), l = a("editor.graphPanel.mappingSection.none"), c = o?.spec, s = O(() => c === void 0 ? [] : rl(c,
|
|
9135
|
+
}, Wm = ({ title: e, layout: t = "collapsible" }) => {
|
|
9136
|
+
const r = R(), o = $(r), a = k(), { Select: i } = z(), l = a("editor.graphPanel.mappingSection.none"), c = o?.spec, s = O(() => c === void 0 ? [] : rl(c, A2).map(({ aesthetic: u, variables: d, isRequired: h }) => {
|
|
9137
9137
|
const f = al(c.mapping, u);
|
|
9138
9138
|
return {
|
|
9139
9139
|
aesthetic: u,
|
|
9140
|
-
label: a(
|
|
9140
|
+
label: a(k2[u]),
|
|
9141
9141
|
value: f ?? (h ? null : St),
|
|
9142
|
-
options:
|
|
9142
|
+
options: L2(d, f, h ? null : l),
|
|
9143
9143
|
chooseColumn: (p) => {
|
|
9144
9144
|
r.commands.dispatch(new ii({
|
|
9145
9145
|
aesthetic: u,
|
|
@@ -9166,7 +9166,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9166
9166
|
})
|
|
9167
9167
|
}, u)) })
|
|
9168
9168
|
}) : null;
|
|
9169
|
-
},
|
|
9169
|
+
}, L2 = (e, t, r) => {
|
|
9170
9170
|
const o = t !== null && !e.includes(t) ? [t, ...e] : e;
|
|
9171
9171
|
return [...r === null ? [] : [{
|
|
9172
9172
|
value: St,
|
|
@@ -9175,7 +9175,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9175
9175
|
value: a,
|
|
9176
9176
|
label: a
|
|
9177
9177
|
}))];
|
|
9178
|
-
},
|
|
9178
|
+
}, P2 = "k", I2 = 2, E2 = 0, M2 = 5, xt = [
|
|
9179
9179
|
{
|
|
9180
9180
|
value: "k",
|
|
9181
9181
|
labelKey: "thousands"
|
|
@@ -9188,10 +9188,10 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9188
9188
|
value: "b",
|
|
9189
9189
|
labelKey: "billions"
|
|
9190
9190
|
}
|
|
9191
|
-
],
|
|
9191
|
+
], N2 = ["auto", "none"], Km = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
9192
9192
|
const o = R(), a = $(o), i = k(), { NumberField: l, ToggleGroup: c } = z();
|
|
9193
9193
|
if (!a) return null;
|
|
9194
|
-
const { abbreviation: s, decimals: u } = a.config.numberFormat, d =
|
|
9194
|
+
const { abbreviation: s, decimals: u } = a.config.numberFormat, d = O2(s) !== void 0, h = u !== "auto", f = (L) => L.map((b) => ({
|
|
9195
9195
|
value: b,
|
|
9196
9196
|
label: i(`editor.graphPanel.numberFormat.options.${b}`)
|
|
9197
9197
|
})), p = xt.map(({ value: L, labelKey: b }) => ({
|
|
@@ -9200,13 +9200,13 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9200
9200
|
})), g = (L) => {
|
|
9201
9201
|
o.commands.dispatch(new li({ abbreviation: L }));
|
|
9202
9202
|
}, v = (L) => {
|
|
9203
|
-
const b =
|
|
9204
|
-
g(b ??
|
|
9203
|
+
const b = N2.find((E) => E === L);
|
|
9204
|
+
g(b ?? P2);
|
|
9205
9205
|
}, x = (L) => {
|
|
9206
9206
|
const b = xt.find((E) => E.value === L);
|
|
9207
9207
|
b && g(b.value);
|
|
9208
9208
|
}, w = (L) => {
|
|
9209
|
-
o.commands.dispatch(new Yt({ decimals: L === "custom" ?
|
|
9209
|
+
o.commands.dispatch(new Yt({ decimals: L === "custom" ? I2 : "auto" }));
|
|
9210
9210
|
}, y = (L) => {
|
|
9211
9211
|
L !== null && o.commands.dispatch(new Yt({ decimals: L }), { transient: !0 });
|
|
9212
9212
|
};
|
|
@@ -9247,18 +9247,18 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9247
9247
|
label: i("editor.graphPanel.numberFormat.valueLabel"),
|
|
9248
9248
|
children: /* @__PURE__ */ n(l, {
|
|
9249
9249
|
value: u,
|
|
9250
|
-
min:
|
|
9251
|
-
max:
|
|
9250
|
+
min: E2,
|
|
9251
|
+
max: M2,
|
|
9252
9252
|
onChange: y,
|
|
9253
9253
|
onCommit: o.commands.seal
|
|
9254
9254
|
})
|
|
9255
9255
|
})
|
|
9256
9256
|
] })
|
|
9257
9257
|
});
|
|
9258
|
-
},
|
|
9258
|
+
}, O2 = (e) => xt.find((t) => t.value === e), qm = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
9259
9259
|
const o = $(R()), a = k();
|
|
9260
9260
|
if (!o) return null;
|
|
9261
|
-
const i =
|
|
9261
|
+
const i = D2(o.spec.layers);
|
|
9262
9262
|
return i ? /* @__PURE__ */ n(W, {
|
|
9263
9263
|
title: e ?? a("editor.graphPanel.pointSize.label"),
|
|
9264
9264
|
layout: t,
|
|
@@ -9268,10 +9268,10 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9268
9268
|
children: /* @__PURE__ */ n(Ia, { layerId: i.id })
|
|
9269
9269
|
}) })
|
|
9270
9270
|
}) : null;
|
|
9271
|
-
},
|
|
9271
|
+
}, D2 = (e) => {
|
|
9272
9272
|
const t = ut(e, "line", "area");
|
|
9273
9273
|
return ut(e, "point").find((r) => !nr(r, t));
|
|
9274
|
-
},
|
|
9274
|
+
}, R2 = 0.9, z2 = 360, _2 = 0.05, F2 = 15, Xm = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
9275
9275
|
const o = R(), a = $(o), i = k(), { Slider: l } = z();
|
|
9276
9276
|
if (!a || a.spec.coords.coordType !== "polar") return null;
|
|
9277
9277
|
const { innerRadius: c, startAngle: s } = a.spec.coords.params, u = (h) => {
|
|
@@ -9288,8 +9288,8 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9288
9288
|
children: /* @__PURE__ */ n(l, {
|
|
9289
9289
|
value: c,
|
|
9290
9290
|
min: 0,
|
|
9291
|
-
max:
|
|
9292
|
-
step:
|
|
9291
|
+
max: R2,
|
|
9292
|
+
step: _2,
|
|
9293
9293
|
formatValue: ka,
|
|
9294
9294
|
onChange: u,
|
|
9295
9295
|
onCommit: o.commands.seal
|
|
@@ -9299,15 +9299,15 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9299
9299
|
children: /* @__PURE__ */ n(l, {
|
|
9300
9300
|
value: s,
|
|
9301
9301
|
min: 0,
|
|
9302
|
-
max:
|
|
9303
|
-
step:
|
|
9304
|
-
formatValue:
|
|
9302
|
+
max: z2 - 1,
|
|
9303
|
+
step: F2,
|
|
9304
|
+
formatValue: Tp,
|
|
9305
9305
|
onChange: d,
|
|
9306
9306
|
onCommit: o.commands.seal
|
|
9307
9307
|
})
|
|
9308
9308
|
})] })
|
|
9309
9309
|
});
|
|
9310
|
-
},
|
|
9310
|
+
}, H2 = (e) => /* @__PURE__ */ m(A, {
|
|
9311
9311
|
...e,
|
|
9312
9312
|
children: [
|
|
9313
9313
|
/* @__PURE__ */ n("path", {
|
|
@@ -9353,7 +9353,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9353
9353
|
fill: "currentColor"
|
|
9354
9354
|
})
|
|
9355
9355
|
]
|
|
9356
|
-
}),
|
|
9356
|
+
}), B2 = (e) => O(() => {
|
|
9357
9357
|
if (e === null) return {
|
|
9358
9358
|
options: [],
|
|
9359
9359
|
findValue: () => {
|
|
@@ -9385,10 +9385,10 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9385
9385
|
"logarithmic",
|
|
9386
9386
|
"power",
|
|
9387
9387
|
"loess"
|
|
9388
|
-
],
|
|
9389
|
-
const o = R(), a = $(o), i = k(), { Select: l, Switch: c } = z(), { options: s, findValue: u } =
|
|
9388
|
+
], V2 = "linear", jm = ({ title: e, layout: t = "collapsible", preview: r }) => {
|
|
9389
|
+
const o = R(), a = $(o), i = k(), { Select: l, Switch: c } = z(), { options: s, findValue: u } = B2(a);
|
|
9390
9390
|
if (!a || a.coordSystem.type === "polar") return null;
|
|
9391
|
-
const d = Ki(a.spec.layers), h = Bi(a.spec.layers), f = d?.stat.type === "smooth" ? d.stat.method :
|
|
9391
|
+
const d = Ki(a.spec.layers), h = Bi(a.spec.layers), f = d?.stat.type === "smooth" ? d.stat.method : V2, p = G2(h), g = _n.map((b) => ({
|
|
9392
9392
|
value: b,
|
|
9393
9393
|
label: i(`editor.annotationsPanel.trendType.options.${b}`)
|
|
9394
9394
|
})), v = (b, E = {}) => {
|
|
@@ -9430,7 +9430,7 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9430
9430
|
}),
|
|
9431
9431
|
/* @__PURE__ */ n(C, {
|
|
9432
9432
|
label: i("editor.annotationsPanel.trendsAndAveragesSection.average"),
|
|
9433
|
-
icon: /* @__PURE__ */ n(
|
|
9433
|
+
icon: /* @__PURE__ */ n(H2, { size: "lg" }),
|
|
9434
9434
|
children: /* @__PURE__ */ n(c, {
|
|
9435
9435
|
isChecked: h !== void 0,
|
|
9436
9436
|
onChange: w
|
|
@@ -9448,51 +9448,51 @@ var lp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
9448
9448
|
})
|
|
9449
9449
|
] })
|
|
9450
9450
|
});
|
|
9451
|
-
},
|
|
9451
|
+
}, G2 = (e) => {
|
|
9452
9452
|
const t = e?.transforms.find((r) => r.transformType === "filter")?.options.value;
|
|
9453
9453
|
return t instanceof Date ? t.getTime() : t;
|
|
9454
9454
|
};
|
|
9455
9455
|
export {
|
|
9456
|
-
|
|
9457
|
-
|
|
9456
|
+
Dm as AppearanceSection,
|
|
9457
|
+
Om as AxesPanel,
|
|
9458
9458
|
kn as AxisSection,
|
|
9459
|
-
|
|
9460
|
-
|
|
9461
|
-
|
|
9462
|
-
|
|
9463
|
-
|
|
9464
|
-
|
|
9459
|
+
Rm as BarSection,
|
|
9460
|
+
c1 as Button,
|
|
9461
|
+
zm as CalloutsSection,
|
|
9462
|
+
fp as CaptionSection,
|
|
9463
|
+
_m as ComboSection,
|
|
9464
|
+
Mm as EditableGraphRenderer,
|
|
9465
9465
|
Ta as EditorPanel,
|
|
9466
|
-
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
|
|
9481
|
-
|
|
9466
|
+
Nm as ElementsPanel,
|
|
9467
|
+
Fm as GoalSection,
|
|
9468
|
+
Hm as GraphOptionsSection,
|
|
9469
|
+
Bm as GraphTypeSection,
|
|
9470
|
+
Vm as GridSection,
|
|
9471
|
+
Gm as HeadlineSection,
|
|
9472
|
+
ql as IntlProvider,
|
|
9473
|
+
$m as LegendSection,
|
|
9474
|
+
Um as LineSection,
|
|
9475
|
+
Wm as MappingSection,
|
|
9476
|
+
p1 as NumberField,
|
|
9477
|
+
Km as NumberFormatSection,
|
|
9478
|
+
Q1 as PANEL_ROOT_ATTRIBUTE,
|
|
9479
|
+
qm as PointSection,
|
|
9480
|
+
Xm as PolarSection,
|
|
9481
|
+
v1 as RadioGrid,
|
|
9482
9482
|
C as Row,
|
|
9483
9483
|
W as Section,
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9484
|
+
k1 as Select,
|
|
9485
|
+
R1 as Slider,
|
|
9486
|
+
bp as SourceSection,
|
|
9487
|
+
yp as SubtitleSection,
|
|
9488
|
+
H1 as Switch,
|
|
9489
|
+
G1 as TextField,
|
|
9490
|
+
xp as TextSizeSection,
|
|
9491
|
+
wp as TitleSection,
|
|
9492
|
+
W1 as ToggleGroup,
|
|
9493
|
+
up as ToggledSection,
|
|
9494
|
+
jm as TrendsAndAveragesSection,
|
|
9495
9495
|
z as useControls,
|
|
9496
|
-
|
|
9496
|
+
Y1 as usePanelExpansion,
|
|
9497
9497
|
R as usePanelGraph
|
|
9498
9498
|
};
|