@carto/ps-react-ui 4.14.1 → 4.16.0
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/chat.js +494 -466
- package/dist/chat.js.map +1 -1
- package/dist/components.js +837 -774
- package/dist/components.js.map +1 -1
- package/dist/legend/stores.js +20 -16
- package/dist/legend-store-registry-CVYzhR1-.js +464 -0
- package/dist/legend-store-registry-CVYzhR1-.js.map +1 -0
- package/dist/legend.js +1478 -794
- package/dist/legend.js.map +1 -1
- package/dist/markdown-DdqANCiN.js +102 -0
- package/dist/markdown-DdqANCiN.js.map +1 -0
- package/dist/markdown-content-Dk2DSgbf.js +10287 -0
- package/dist/markdown-content-Dk2DSgbf.js.map +1 -0
- package/dist/types/chat/bubbles/chat-agent-message-markdown.d.ts +12 -0
- package/dist/types/chat/bubbles/chat-agent-message.d.ts +9 -0
- package/dist/types/chat/bubbles/index.d.ts +1 -0
- package/dist/types/chat/index.d.ts +2 -1
- package/dist/types/chat/types.d.ts +9 -0
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/lasso-tool/message.d.ts +7 -0
- package/dist/types/components/lasso-tool/types.d.ts +17 -2
- package/dist/types/components/responsive-drawer/responsive-drawer.d.ts +2 -9
- package/dist/types/legend/components/a11y.d.ts +6 -0
- package/dist/types/legend/components/contexts.d.ts +22 -4
- package/dist/types/legend/components/index.d.ts +2 -2
- package/dist/types/legend/components/legend-actions/legend-actions.d.ts +4 -3
- package/dist/types/legend/components/legend-group/legend-group.d.ts +2 -11
- package/dist/types/legend/components/legend-group/styles.d.ts +40 -2
- package/dist/types/legend/components/legend-group-menu/legend-group-menu-items.d.ts +28 -0
- package/dist/types/legend/components/legend-group-menu/legend-group-menu.d.ts +11 -0
- package/dist/types/legend/components/legend-opacity/legend-opacity.d.ts +7 -17
- package/dist/types/legend/components/legend-opacity/styles.d.ts +11 -6
- package/dist/types/legend/components/legend-overflow-menu/legend-overflow-menu.d.ts +12 -0
- package/dist/types/legend/components/legend-panel-menu/legend-panel-menu.d.ts +11 -0
- package/dist/types/legend/components/legend-row/legend-row.d.ts +4 -11
- package/dist/types/legend/components/legend-row/styles.d.ts +36 -1
- package/dist/types/legend/components/legend-row-menu/legend-row-menu-items.d.ts +12 -0
- package/dist/types/legend/components/legend-row-menu/legend-row-menu.d.ts +4 -10
- package/dist/types/legend/components/legend-row-menu/legend-zoom-to.d.ts +3 -8
- package/dist/types/legend/components/legend-sortable/contexts.d.ts +7 -0
- package/dist/types/legend/components/legend-sortable/legend-sortable.d.ts +11 -0
- package/dist/types/legend/components/legend-sortable/sortable-entity.d.ts +27 -0
- package/dist/types/legend/components/legend-sortable/sortable-ids.d.ts +6 -0
- package/dist/types/legend/components/legend-sortable/styles.d.ts +54 -0
- package/dist/types/legend/components/legend-visible-layers/legend-visible-layers.d.ts +7 -0
- package/dist/types/legend/components/legend-visible-layers/styles.d.ts +48 -0
- package/dist/types/legend/components/run-async-menu-action.d.ts +7 -0
- package/dist/types/legend/index.d.ts +53 -6
- package/dist/types/legend/provider/labels.d.ts +21 -0
- package/dist/types/legend/stores/index.d.ts +1 -1
- package/dist/types/legend/stores/selectors.d.ts +31 -0
- package/dist/types/legend/stores/types.d.ts +11 -0
- package/dist/types/widgets-v2/markdown/markdown-content.d.ts +7 -1
- package/dist/widgets-v2/markdown.js +9 -8
- package/dist/widgets-v2/markdown.js.map +1 -1
- package/dist/widgets-v2.js +23 -22
- package/dist/widgets-v2.js.map +1 -1
- package/package.json +5 -4
- package/src/chat/bubbles/chat-agent-message-markdown.test.tsx +38 -0
- package/src/chat/bubbles/chat-agent-message-markdown.tsx +34 -0
- package/src/chat/bubbles/chat-agent-message.test.tsx +12 -0
- package/src/chat/bubbles/chat-agent-message.tsx +21 -1
- package/src/chat/bubbles/index.ts +1 -0
- package/src/chat/index.ts +2 -0
- package/src/chat/types.ts +10 -0
- package/src/components/index.ts +2 -0
- package/src/components/lasso-tool/message.tsx +36 -0
- package/src/components/lasso-tool/types.ts +20 -1
- package/src/components/responsive-drawer/responsive-drawer.test.tsx +138 -0
- package/src/components/responsive-drawer/responsive-drawer.tsx +77 -51
- package/src/legend/components/a11y.ts +14 -0
- package/src/legend/components/contexts.ts +29 -4
- package/src/legend/components/index.ts +3 -4
- package/src/legend/components/legend-actions/legend-actions.tsx +4 -3
- package/src/legend/components/legend-group/legend-group.test.tsx +166 -9
- package/src/legend/components/legend-group/legend-group.tsx +88 -49
- package/src/legend/components/legend-group/styles.ts +59 -2
- package/src/legend/components/legend-group-menu/legend-group-menu-items.tsx +132 -0
- package/src/legend/components/legend-group-menu/legend-group-menu.tsx +25 -0
- package/src/legend/components/legend-opacity/legend-opacity.tsx +43 -70
- package/src/legend/components/legend-opacity/styles.ts +14 -9
- package/src/legend/components/legend-overflow-menu/legend-overflow-menu.tsx +84 -0
- package/src/legend/components/legend-panel-menu/legend-panel-menu.tsx +23 -0
- package/src/legend/components/legend-ramp/legend-ramp-ui.tsx +2 -1
- package/src/legend/components/legend-row/legend-row.test.tsx +304 -85
- package/src/legend/components/legend-row/legend-row.tsx +73 -50
- package/src/legend/components/legend-row/styles.ts +54 -1
- package/src/legend/components/legend-row-menu/legend-row-menu-items.tsx +57 -0
- package/src/legend/components/legend-row-menu/legend-row-menu.tsx +12 -50
- package/src/legend/components/legend-row-menu/legend-zoom-to.tsx +25 -17
- package/src/legend/components/legend-sortable/contexts.ts +12 -0
- package/src/legend/components/legend-sortable/legend-sortable.test.tsx +144 -0
- package/src/legend/components/legend-sortable/legend-sortable.tsx +195 -0
- package/src/legend/components/legend-sortable/sortable-entity.tsx +91 -0
- package/src/legend/components/legend-sortable/sortable-ids.ts +17 -0
- package/src/legend/components/legend-sortable/styles.ts +56 -0
- package/src/legend/components/legend-visibility-toggle/legend-visibility-toggle.tsx +14 -8
- package/src/legend/components/legend-visible-layers/legend-visible-layers.test.tsx +86 -0
- package/src/legend/components/legend-visible-layers/legend-visible-layers.tsx +135 -0
- package/src/legend/components/legend-visible-layers/styles.ts +60 -0
- package/src/legend/components/run-async-menu-action.ts +20 -0
- package/src/legend/index.ts +59 -4
- package/src/legend/provider/labels.ts +43 -1
- package/src/legend/stores/index.ts +4 -0
- package/src/legend/stores/legend-store-registry.ts +60 -0
- package/src/legend/stores/legend-store.test.ts +116 -0
- package/src/legend/stores/selectors.ts +64 -2
- package/src/legend/stores/types.ts +11 -0
- package/src/widgets/actions/download/exports.test.tsx +14 -1
- package/src/widgets-v2/markdown/markdown-content.test.tsx +10 -0
- package/src/widgets-v2/markdown/markdown-content.tsx +9 -0
- package/src/widgets-v2/wrapper/widget-wrapper.tsx +4 -1
- package/dist/markdown-BD1jcknS.js +0 -8326
- package/dist/markdown-BD1jcknS.js.map +0 -1
- package/dist/selectors-DwHj6mE2.js +0 -388
- package/dist/selectors-DwHj6mE2.js.map +0 -1
package/dist/legend.js
CHANGED
|
@@ -1,119 +1,267 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { L as
|
|
5
|
-
import { Box as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { jsx as d, jsxs as P, Fragment as he } from "react/jsx-runtime";
|
|
2
|
+
import { c as T } from "react/compiler-runtime";
|
|
3
|
+
import { createContext as me, useContext as be, useState as J, useLayoutEffect as Ge, Children as pt, isValidElement as ft, useEffect as ht, useRef as Te, useId as gt } from "react";
|
|
4
|
+
import { L as yt, h as mt, g as X, a as bt, m as xt, r as vt, u as Lt, n as N, o as Z, p as j, b as ke, i as re, f as St, e as De, s as ze, j as xe, l as Ee } from "./legend-store-registry-CVYzhR1-.js";
|
|
5
|
+
import { Box as M, IconButton as ve, Typography as E, Collapse as He, createSvgIcon as Ct, Menu as $e, CircularProgress as Re, MenuItem as q, Divider as wt, Slider as It, InputAdornment as kt, OutlinedInput as $t, ButtonBase as Ot } from "@mui/material";
|
|
6
|
+
import { DragIndicator as _t, LayersOutlined as Ve, ExpandMore as Be, VisibilityOffOutlined as Gt, VisibilityOutlined as We, MoreVert as zt, ChecklistOutlined as Mt, Close as Pt, ArrowDropDown as At, ErrorOutline as Tt } from "@mui/icons-material";
|
|
7
|
+
import { useSortable as Dt, SortableContext as Ne, verticalListSortingStrategy as Fe } from "@dnd-kit/sortable";
|
|
8
|
+
import { S as Ue } from "./smart-tooltip-D4vwQpFf.js";
|
|
9
|
+
import { CSS as Et } from "@dnd-kit/utilities";
|
|
10
|
+
import { T as ie } from "./tooltip-BDnrRKrp.js";
|
|
8
11
|
import "zustand";
|
|
9
12
|
import "zustand/vanilla";
|
|
10
13
|
import "zustand/middleware";
|
|
11
14
|
import "zustand/react/shallow";
|
|
12
|
-
import {
|
|
13
|
-
const
|
|
15
|
+
import { useSensors as Ht, useSensor as Me, PointerSensor as Rt, KeyboardSensor as Vt, DndContext as Bt, closestCenter as Wt, DragOverlay as Nt } from "@dnd-kit/core";
|
|
16
|
+
const ge = {
|
|
14
17
|
expandLayer: "Expand layer",
|
|
15
18
|
collapseLayer: "Collapse layer",
|
|
16
19
|
hideLayer: "Hide layer",
|
|
17
20
|
showLayer: "Show layer",
|
|
18
21
|
layerOptions: "Layer options",
|
|
19
|
-
zoomTo: "Zoom to",
|
|
22
|
+
zoomTo: "Zoom to layer",
|
|
23
|
+
loading: "Loading…",
|
|
24
|
+
showOnlyLayer: "Show only this layer",
|
|
25
|
+
showAllLayers: "Show all layers",
|
|
20
26
|
hideGroup: "Hide group",
|
|
21
27
|
showGroup: "Show group",
|
|
22
28
|
expandGroup: "Expand group",
|
|
23
29
|
collapseGroup: "Collapse group",
|
|
30
|
+
groupOptions: "Group options",
|
|
31
|
+
showOnlyGroup: "Show only this group",
|
|
32
|
+
showAllGroups: "Show all groups",
|
|
33
|
+
collapseAllGroups: "Collapse all groups",
|
|
34
|
+
expandAllGroups: "Expand all groups",
|
|
35
|
+
zoomToGroup: "Zoom to group",
|
|
36
|
+
panelOptions: "Legend options",
|
|
37
|
+
enabledLayers: "Enabled layers",
|
|
38
|
+
toggleEnabledLayers: "Quickly toggle enabled layers",
|
|
39
|
+
moreOptions: "More options",
|
|
40
|
+
reorder: "Reorder",
|
|
24
41
|
opacity: "Opacity",
|
|
25
42
|
attribute: "Attribute",
|
|
43
|
+
close: "Close",
|
|
26
44
|
radiusRangeBy: "Radius range by",
|
|
27
45
|
colorBasedOn: "Color based on",
|
|
28
46
|
colorGradient: "Color gradient",
|
|
29
47
|
maxPrefix: "MAX: ",
|
|
30
48
|
minPrefix: "MIN: "
|
|
31
|
-
},
|
|
32
|
-
labels:
|
|
49
|
+
}, je = me({
|
|
50
|
+
labels: ge
|
|
33
51
|
});
|
|
34
|
-
function
|
|
35
|
-
return
|
|
52
|
+
function B() {
|
|
53
|
+
return be(je);
|
|
36
54
|
}
|
|
37
|
-
function
|
|
38
|
-
const e =
|
|
55
|
+
function Ft(t) {
|
|
56
|
+
const e = T(24), {
|
|
39
57
|
id: o,
|
|
40
|
-
layers:
|
|
41
|
-
groups:
|
|
42
|
-
labels:
|
|
43
|
-
keepAlive:
|
|
44
|
-
children:
|
|
45
|
-
} = t,
|
|
46
|
-
let
|
|
47
|
-
e[0] !==
|
|
48
|
-
if (
|
|
49
|
-
return
|
|
50
|
-
const
|
|
51
|
-
layers:
|
|
52
|
-
groups:
|
|
58
|
+
layers: r,
|
|
59
|
+
groups: l,
|
|
60
|
+
labels: i,
|
|
61
|
+
keepAlive: n,
|
|
62
|
+
children: a
|
|
63
|
+
} = t, s = n === void 0 ? !0 : n;
|
|
64
|
+
let c;
|
|
65
|
+
e[0] !== l || e[1] !== o || e[2] !== r ? (c = () => {
|
|
66
|
+
if (mt(o))
|
|
67
|
+
return X(o);
|
|
68
|
+
const w = bt(o, {
|
|
69
|
+
layers: r,
|
|
70
|
+
groups: l
|
|
53
71
|
});
|
|
54
|
-
return
|
|
55
|
-
}, e[0] =
|
|
56
|
-
const [
|
|
57
|
-
let
|
|
58
|
-
e[4] !== o || e[5] !==
|
|
59
|
-
|
|
60
|
-
keepAlive:
|
|
72
|
+
return xt(o, w), w;
|
|
73
|
+
}, e[0] = l, e[1] = o, e[2] = r, e[3] = c) : c = e[3];
|
|
74
|
+
const [p] = J(c);
|
|
75
|
+
let f, u;
|
|
76
|
+
e[4] !== o || e[5] !== s || e[6] !== p ? (f = () => (vt(o, p), () => {
|
|
77
|
+
Lt(o, {
|
|
78
|
+
keepAlive: s
|
|
61
79
|
});
|
|
62
|
-
}),
|
|
63
|
-
let
|
|
64
|
-
e[9] !==
|
|
65
|
-
|
|
66
|
-
},
|
|
80
|
+
}), u = [o, p, s], e[4] = o, e[5] = s, e[6] = p, e[7] = f, e[8] = u) : (f = e[7], u = e[8]), Ge(f, u);
|
|
81
|
+
let y, g;
|
|
82
|
+
e[9] !== l || e[10] !== r || e[11] !== p ? (y = () => {
|
|
83
|
+
p.getState()._sync(r, l ?? []);
|
|
84
|
+
}, g = [p, r, l], e[9] = l, e[10] = r, e[11] = p, e[12] = y, e[13] = g) : (y = e[12], g = e[13]), Ge(y, g);
|
|
67
85
|
let h;
|
|
68
|
-
e[14] !==
|
|
69
|
-
...
|
|
70
|
-
...
|
|
71
|
-
} :
|
|
72
|
-
let y;
|
|
73
|
-
e[16] !== h ? (y = {
|
|
74
|
-
labels: h
|
|
75
|
-
}, e[16] = h, e[17] = y) : y = e[17];
|
|
76
|
-
const x = y;
|
|
77
|
-
let b;
|
|
78
|
-
e[18] !== p || e[19] !== x ? (b = /* @__PURE__ */ s(ke.Provider, { value: x, children: p }), e[18] = p, e[19] = x, e[20] = b) : b = e[20];
|
|
86
|
+
e[14] !== i ? (h = i ? {
|
|
87
|
+
...ge,
|
|
88
|
+
...i
|
|
89
|
+
} : ge, e[14] = i, e[15] = h) : h = e[15];
|
|
79
90
|
let v;
|
|
80
|
-
|
|
91
|
+
e[16] !== h ? (v = {
|
|
92
|
+
labels: h
|
|
93
|
+
}, e[16] = h, e[17] = v) : v = e[17];
|
|
94
|
+
const b = v;
|
|
95
|
+
let C;
|
|
96
|
+
e[18] !== a || e[19] !== b ? (C = /* @__PURE__ */ d(je.Provider, { value: b, children: a }), e[18] = a, e[19] = b, e[20] = C) : C = e[20];
|
|
97
|
+
let L;
|
|
98
|
+
return e[21] !== o || e[22] !== C ? (L = /* @__PURE__ */ d(yt.Provider, { value: o, children: C }), e[21] = o, e[22] = C, e[23] = L) : L = e[23], L;
|
|
81
99
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
100
|
+
function Ze(t) {
|
|
101
|
+
return (e) => {
|
|
102
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), t());
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
const Ke = me(null);
|
|
106
|
+
function Q() {
|
|
107
|
+
return be(Ke);
|
|
85
108
|
}
|
|
86
|
-
const
|
|
87
|
-
function
|
|
88
|
-
return
|
|
109
|
+
const Xe = me(null);
|
|
110
|
+
function ue() {
|
|
111
|
+
return be(Xe);
|
|
89
112
|
}
|
|
90
|
-
const
|
|
113
|
+
const qe = me(null);
|
|
114
|
+
function Qe() {
|
|
115
|
+
return be(qe);
|
|
116
|
+
}
|
|
117
|
+
const Ut = {
|
|
91
118
|
fadeGroup: {
|
|
92
119
|
display: "flex",
|
|
93
120
|
alignItems: "center",
|
|
94
121
|
gap: 0.25
|
|
95
122
|
}
|
|
96
123
|
};
|
|
97
|
-
function
|
|
98
|
-
const e =
|
|
124
|
+
function Ye(t) {
|
|
125
|
+
const e = T(3), {
|
|
99
126
|
children: o
|
|
100
|
-
} = t,
|
|
101
|
-
let
|
|
102
|
-
return e[0] !== o || e[1] !==
|
|
127
|
+
} = t, l = Q() !== null ? "PsLegend-rowFade" : "PsLegend-groupFade";
|
|
128
|
+
let i;
|
|
129
|
+
return e[0] !== o || e[1] !== l ? (i = /* @__PURE__ */ d(M, { className: l, sx: Ut.fadeGroup, children: o }), e[0] = o, e[1] = l, e[2] = i) : i = e[2], i;
|
|
103
130
|
}
|
|
104
|
-
function
|
|
131
|
+
function Je(t) {
|
|
105
132
|
const e = [], o = [];
|
|
106
|
-
for (const
|
|
107
|
-
|
|
133
|
+
for (const r of pt.toArray(t))
|
|
134
|
+
jt(r, Ye) ? e.push(r) : o.push(r);
|
|
108
135
|
return {
|
|
109
136
|
actions: e,
|
|
110
137
|
body: o
|
|
111
138
|
};
|
|
112
139
|
}
|
|
113
|
-
function
|
|
114
|
-
return
|
|
140
|
+
function jt(t, e) {
|
|
141
|
+
return ft(t) && t.type === e;
|
|
142
|
+
}
|
|
143
|
+
const et = me(!1);
|
|
144
|
+
function tt() {
|
|
145
|
+
return be(et);
|
|
146
|
+
}
|
|
147
|
+
const Se = (t, e) => `${t}:${e}`;
|
|
148
|
+
function de(t) {
|
|
149
|
+
const e = t.indexOf(":");
|
|
150
|
+
if (e === -1) return null;
|
|
151
|
+
const o = t.slice(0, e);
|
|
152
|
+
return o !== "group" && o !== "layer" ? null : {
|
|
153
|
+
kind: o,
|
|
154
|
+
id: t.slice(e + 1)
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
const le = {
|
|
158
|
+
// Absolute handle — no flex slot; sticky header is the containing block.
|
|
159
|
+
handleSlot: {
|
|
160
|
+
position: "absolute",
|
|
161
|
+
zIndex: 1,
|
|
162
|
+
display: "flex",
|
|
163
|
+
alignItems: "center",
|
|
164
|
+
justifyContent: "center",
|
|
165
|
+
height: 24
|
|
166
|
+
},
|
|
167
|
+
handleSlotLayer: {
|
|
168
|
+
right: 2
|
|
169
|
+
},
|
|
170
|
+
handleSlotGroup: {
|
|
171
|
+
right: 2
|
|
172
|
+
},
|
|
173
|
+
handle: {
|
|
174
|
+
padding: "2px",
|
|
175
|
+
cursor: "grab",
|
|
176
|
+
touchAction: "none",
|
|
177
|
+
color: "text.secondary",
|
|
178
|
+
"& .MuiSvgIcon-root": {
|
|
179
|
+
fontSize: 18
|
|
180
|
+
},
|
|
181
|
+
"&:active": {
|
|
182
|
+
cursor: "grabbing"
|
|
183
|
+
},
|
|
184
|
+
"&:hover": {
|
|
185
|
+
backgroundColor: "transparent"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
overlay: {
|
|
189
|
+
display: "flex",
|
|
190
|
+
alignItems: "center",
|
|
191
|
+
gap: 1,
|
|
192
|
+
padding: ({
|
|
193
|
+
spacing: t
|
|
194
|
+
}) => t(1, 1.5),
|
|
195
|
+
backgroundColor: "background.paper",
|
|
196
|
+
borderRadius: 1,
|
|
197
|
+
boxShadow: 4,
|
|
198
|
+
height: "auto",
|
|
199
|
+
maxWidth: "100%",
|
|
200
|
+
overflow: "hidden"
|
|
201
|
+
},
|
|
202
|
+
overlayIcon: {
|
|
203
|
+
display: "flex",
|
|
204
|
+
color: "text.secondary"
|
|
205
|
+
},
|
|
206
|
+
overlayLabel: {
|
|
207
|
+
minWidth: 0,
|
|
208
|
+
overflow: "hidden",
|
|
209
|
+
textOverflow: "ellipsis",
|
|
210
|
+
whiteSpace: "nowrap"
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
function ot(t) {
|
|
214
|
+
const e = T(31), {
|
|
215
|
+
kind: o,
|
|
216
|
+
id: r,
|
|
217
|
+
render: l
|
|
218
|
+
} = t, {
|
|
219
|
+
labels: i
|
|
220
|
+
} = B();
|
|
221
|
+
let n;
|
|
222
|
+
e[0] !== r || e[1] !== o ? (n = Se(o, r), e[0] = r, e[1] = o, e[2] = n) : n = e[2];
|
|
223
|
+
let a;
|
|
224
|
+
e[3] !== n ? (a = {
|
|
225
|
+
id: n
|
|
226
|
+
}, e[3] = n, e[4] = a) : a = e[4];
|
|
227
|
+
const {
|
|
228
|
+
attributes: s,
|
|
229
|
+
listeners: c,
|
|
230
|
+
setNodeRef: p,
|
|
231
|
+
setActivatorNodeRef: f,
|
|
232
|
+
transform: u,
|
|
233
|
+
transition: y,
|
|
234
|
+
isDragging: g
|
|
235
|
+
} = Dt(a);
|
|
236
|
+
let h;
|
|
237
|
+
if (e[5] !== s || e[6] !== g || e[7] !== o || e[8] !== i.reorder || e[9] !== c || e[10] !== l || e[11] !== f || e[12] !== p || e[13] !== u || e[14] !== y) {
|
|
238
|
+
const v = {
|
|
239
|
+
transform: Et.Transform.toString(u ? {
|
|
240
|
+
...u,
|
|
241
|
+
x: 0
|
|
242
|
+
} : null),
|
|
243
|
+
transition: y
|
|
244
|
+
}, b = `PsLegend-dragHandle-${o}`, C = o === "group" ? le.handleSlotGroup : le.handleSlotLayer;
|
|
245
|
+
let L;
|
|
246
|
+
e[16] !== C ? (L = [le.handleSlot, C], e[16] = C, e[17] = L) : L = e[17];
|
|
247
|
+
let w;
|
|
248
|
+
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ d(_t, {}), e[18] = w) : w = e[18];
|
|
249
|
+
let x;
|
|
250
|
+
e[19] !== s || e[20] !== i.reorder || e[21] !== c || e[22] !== f ? (x = /* @__PURE__ */ d(ve, { ref: f, size: "xsmall", "aria-label": i.reorder, ...s, ...c, sx: le.handle, children: w }), e[19] = s, e[20] = i.reorder, e[21] = c, e[22] = f, e[23] = x) : x = e[23];
|
|
251
|
+
let I;
|
|
252
|
+
e[24] !== i.reorder || e[25] !== x ? (I = /* @__PURE__ */ d(ie, { title: i.reorder, children: x }), e[24] = i.reorder, e[25] = x, e[26] = I) : I = e[26];
|
|
253
|
+
let S;
|
|
254
|
+
e[27] !== b || e[28] !== L || e[29] !== I ? (S = /* @__PURE__ */ d(M, { component: "span", className: b, sx: L, children: I }), e[27] = b, e[28] = L, e[29] = I, e[30] = S) : S = e[30], h = l({
|
|
255
|
+
rootRef: p,
|
|
256
|
+
rootStyle: v,
|
|
257
|
+
dragging: g,
|
|
258
|
+
handle: S
|
|
259
|
+
}), e[5] = s, e[6] = g, e[7] = o, e[8] = i.reorder, e[9] = c, e[10] = l, e[11] = f, e[12] = p, e[13] = u, e[14] = y, e[15] = h;
|
|
260
|
+
} else
|
|
261
|
+
h = e[15];
|
|
262
|
+
return h;
|
|
115
263
|
}
|
|
116
|
-
const
|
|
264
|
+
const nt = 48, Y = {
|
|
117
265
|
group: {
|
|
118
266
|
display: "flex",
|
|
119
267
|
flexDirection: "column",
|
|
@@ -144,8 +292,30 @@ const Oe = 48, ie = {
|
|
|
144
292
|
},
|
|
145
293
|
"&:hover .PsLegend-groupFade > *, &:focus-within .PsLegend-groupFade > *": {
|
|
146
294
|
opacity: 1
|
|
295
|
+
},
|
|
296
|
+
// Drag handle (Legend.Sortable): absolutely positioned (no reserved flex
|
|
297
|
+
// slot, so it never shifts the title/icon); the button inside fades in
|
|
298
|
+
// on hover/focus and is always visible on touch devices.
|
|
299
|
+
"& .PsLegend-dragHandle-group > *": {
|
|
300
|
+
opacity: 0,
|
|
301
|
+
transition: ({
|
|
302
|
+
transitions: t
|
|
303
|
+
}) => t.create("opacity", {
|
|
304
|
+
duration: t.duration.standard,
|
|
305
|
+
easing: t.easing.easeInOut
|
|
306
|
+
}),
|
|
307
|
+
"@media (hover: none)": {
|
|
308
|
+
opacity: 1
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"&:hover .PsLegend-dragHandle-group > *, &:focus-within .PsLegend-dragHandle-group > *": {
|
|
312
|
+
opacity: 1
|
|
147
313
|
}
|
|
148
314
|
},
|
|
315
|
+
// The original stays in place, dimmed, while its overlay clone is dragged.
|
|
316
|
+
groupDragging: {
|
|
317
|
+
opacity: 0.4
|
|
318
|
+
},
|
|
149
319
|
// Figma: 48px tall, icon at 12px from the left, 8px gap to the label,
|
|
150
320
|
// actions right-aligned with ~8px edge inset (the small icon-button padding
|
|
151
321
|
// brings the glyphs to the design's 16px optical inset), hairline divider
|
|
@@ -157,7 +327,7 @@ const Oe = 48, ie = {
|
|
|
157
327
|
padding: ({
|
|
158
328
|
spacing: t
|
|
159
329
|
}) => t(1.5, 2, 1.5, 1),
|
|
160
|
-
minHeight:
|
|
330
|
+
minHeight: nt,
|
|
161
331
|
borderBottom: "1px solid",
|
|
162
332
|
borderColor: "divider",
|
|
163
333
|
position: "sticky",
|
|
@@ -165,19 +335,55 @@ const Oe = 48, ie = {
|
|
|
165
335
|
// Above the sticky row headers (2), which in turn sit above MUI's
|
|
166
336
|
// z-index-1 form internals in row content.
|
|
167
337
|
zIndex: 3,
|
|
168
|
-
|
|
338
|
+
// Distinct from the row header / panel body (both `background.paper`) so
|
|
339
|
+
// the group header visually separates from the rest.
|
|
340
|
+
backgroundColor: "background.default"
|
|
341
|
+
},
|
|
342
|
+
// Accordion click target: everything in the header but the actions box.
|
|
343
|
+
// Non-native button (role='button'), so it carries its own focus ring.
|
|
344
|
+
titleArea: {
|
|
345
|
+
flex: 1,
|
|
346
|
+
minWidth: 0,
|
|
347
|
+
display: "flex",
|
|
348
|
+
alignItems: "center",
|
|
349
|
+
gap: 1,
|
|
350
|
+
cursor: "pointer",
|
|
351
|
+
userSelect: "none",
|
|
352
|
+
"&:focus-visible": {
|
|
353
|
+
outline: "2px solid",
|
|
354
|
+
outlineColor: "primary.main",
|
|
355
|
+
outlineOffset: -2
|
|
356
|
+
}
|
|
169
357
|
},
|
|
170
358
|
groupIcon: {
|
|
171
359
|
display: "flex",
|
|
172
360
|
color: "text.secondary"
|
|
173
361
|
},
|
|
174
362
|
label: {
|
|
175
|
-
flex: 1,
|
|
176
363
|
minWidth: 0,
|
|
177
364
|
overflow: "hidden",
|
|
178
365
|
textOverflow: "ellipsis",
|
|
179
366
|
whiteSpace: "nowrap"
|
|
180
367
|
},
|
|
368
|
+
// Informative collapse indicator beside the title (the whole title area is
|
|
369
|
+
// the button). Points down when expanded, right when collapsed. Touch
|
|
370
|
+
// devices don't get it — the title row is the affordance there.
|
|
371
|
+
chevron: {
|
|
372
|
+
fontSize: 16,
|
|
373
|
+
color: "text.secondary",
|
|
374
|
+
flexShrink: 0,
|
|
375
|
+
transition: ({
|
|
376
|
+
transitions: t
|
|
377
|
+
}) => t.create("transform", {
|
|
378
|
+
duration: t.duration.shorter
|
|
379
|
+
}),
|
|
380
|
+
"@media (hover: none)": {
|
|
381
|
+
display: "none"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
chevronCollapsed: {
|
|
385
|
+
transform: "rotate(-90deg)"
|
|
386
|
+
},
|
|
181
387
|
// Icon buttons match the row header's 24×24 (2px padding + 20px icon).
|
|
182
388
|
actions: {
|
|
183
389
|
display: "flex",
|
|
@@ -189,73 +395,66 @@ const Oe = 48, ie = {
|
|
|
189
395
|
}
|
|
190
396
|
}
|
|
191
397
|
};
|
|
192
|
-
function
|
|
193
|
-
const e =
|
|
398
|
+
function Zt(t) {
|
|
399
|
+
const e = T(26), {
|
|
194
400
|
groupId: o,
|
|
195
|
-
children:
|
|
196
|
-
} = t,
|
|
197
|
-
let
|
|
198
|
-
e[0] !== o ? (
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
401
|
+
children: r
|
|
402
|
+
} = t, l = N();
|
|
403
|
+
let i;
|
|
404
|
+
e[0] !== o ? (i = (x) => x.groups[o], e[0] = o, e[1] = i) : i = e[1];
|
|
405
|
+
const n = Z(l, i), a = Z(l, Xt);
|
|
406
|
+
let s;
|
|
407
|
+
e[2] !== o ? (s = (x) => ke(x, o) === "hidden", e[2] = o, e[3] = s) : s = e[3];
|
|
408
|
+
const c = j(l, s), p = tt();
|
|
409
|
+
let f;
|
|
410
|
+
e[4] !== o ? (f = (x) => re(x, o).map(Kt), e[4] = o, e[5] = f) : f = e[5];
|
|
411
|
+
const u = Z(l, f);
|
|
412
|
+
if (!n)
|
|
203
413
|
return null;
|
|
204
|
-
let d;
|
|
205
|
-
e[2] !== n ? (d = Me(n), e[2] = n, e[3] = d) : d = e[3];
|
|
206
|
-
const {
|
|
207
|
-
actions: f,
|
|
208
|
-
body: m
|
|
209
|
-
} = d;
|
|
210
|
-
let c;
|
|
211
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s(P, { sx: ie.groupIcon, children: /* @__PURE__ */ s(it, { fontSize: "small" }) }), e[4] = c) : c = e[4];
|
|
212
|
-
let g, u;
|
|
213
|
-
e[5] !== l.label ? (g = [l.label], u = ($) => {
|
|
214
|
-
const {
|
|
215
|
-
ref: M
|
|
216
|
-
} = $;
|
|
217
|
-
return /* @__PURE__ */ s(V, { ref: M, variant: "button", color: "text.primary", sx: ie.label, children: l.label });
|
|
218
|
-
}, e[5] = l.label, e[6] = g, e[7] = u) : (g = e[6], u = e[7]);
|
|
219
|
-
let h;
|
|
220
|
-
e[8] !== l.label || e[9] !== g || e[10] !== u ? (h = /* @__PURE__ */ s($e, { title: l.label, dependencies: g, children: u }), e[8] = l.label, e[9] = g, e[10] = u, e[11] = h) : h = e[11];
|
|
221
414
|
let y;
|
|
222
|
-
e[
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
|
|
415
|
+
e[6] !== r ? (y = Je(r), e[6] = r, e[7] = y) : y = e[7];
|
|
416
|
+
const {
|
|
417
|
+
actions: g,
|
|
418
|
+
body: h
|
|
419
|
+
} = y;
|
|
226
420
|
let v;
|
|
227
|
-
e[
|
|
228
|
-
|
|
229
|
-
e[22] !== f || e[23] !== v ? (L = /* @__PURE__ */ E(P, { sx: ie.actions, children: [
|
|
230
|
-
f,
|
|
231
|
-
v
|
|
232
|
-
] }), e[22] = f, e[23] = v, e[24] = L) : L = e[24];
|
|
233
|
-
let w;
|
|
234
|
-
e[25] !== L || e[26] !== h ? (w = /* @__PURE__ */ E(P, { sx: ie.header, children: [
|
|
235
|
-
c,
|
|
236
|
-
h,
|
|
237
|
-
L
|
|
238
|
-
] }), e[25] = L, e[26] = h, e[27] = w) : w = e[27];
|
|
239
|
-
const k = !l.collapsed;
|
|
421
|
+
e[8] !== n.collapsed || e[9] !== o || e[10] !== a ? (v = () => a(o, !n.collapsed), e[8] = n.collapsed, e[9] = o, e[10] = a, e[11] = v) : v = e[11];
|
|
422
|
+
const b = v;
|
|
240
423
|
let C;
|
|
241
|
-
e[
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
424
|
+
e[12] !== g || e[13] !== h || e[14] !== n.collapsed || e[15] !== n.label || e[16] !== o || e[17] !== c || e[18] !== u || e[19] !== p || e[20] !== b ? (C = (x) => /* @__PURE__ */ d(Xe.Provider, { value: o, children: /* @__PURE__ */ P(M, { ref: x?.rootRef, style: x?.rootStyle, sx: [Y.group, x?.dragging === !0 && Y.groupDragging], children: [
|
|
425
|
+
/* @__PURE__ */ P(M, { sx: Y.header, children: [
|
|
426
|
+
x?.handle,
|
|
427
|
+
/* @__PURE__ */ P(M, { sx: Y.titleArea, role: "button", tabIndex: 0, "aria-expanded": !n.collapsed, onClick: b, onKeyDown: Ze(b), children: [
|
|
428
|
+
/* @__PURE__ */ d(M, { sx: Y.groupIcon, children: /* @__PURE__ */ d(Ve, { fontSize: "small" }) }),
|
|
429
|
+
/* @__PURE__ */ d(Ue, { title: n.label, dependencies: [n.label], children: (I) => {
|
|
430
|
+
const {
|
|
431
|
+
ref: S
|
|
432
|
+
} = I;
|
|
433
|
+
return /* @__PURE__ */ d(E, { ref: S, variant: "button", fontWeight: "bold", color: c ? "text.disabled" : "text.primary", sx: Y.label, children: n.label });
|
|
434
|
+
} }),
|
|
435
|
+
/* @__PURE__ */ d(Be, { sx: [Y.chevron, n.collapsed && Y.chevronCollapsed] })
|
|
436
|
+
] }),
|
|
437
|
+
/* @__PURE__ */ d(M, { sx: Y.actions, children: g })
|
|
438
|
+
] }),
|
|
439
|
+
/* @__PURE__ */ d(He, { in: !n.collapsed, children: p ? /* @__PURE__ */ d(Ne, { items: u, strategy: Fe, children: h }) : h })
|
|
440
|
+
] }) }), e[12] = g, e[13] = h, e[14] = n.collapsed, e[15] = n.label, e[16] = o, e[17] = c, e[18] = u, e[19] = p, e[20] = b, e[21] = C) : C = e[21];
|
|
441
|
+
const L = C;
|
|
442
|
+
let w;
|
|
443
|
+
return e[22] !== o || e[23] !== L || e[24] !== p ? (w = p ? /* @__PURE__ */ d(ot, { kind: "group", id: o, render: L }) : L(), e[22] = o, e[23] = L, e[24] = p, e[25] = w) : w = e[25], w;
|
|
444
|
+
}
|
|
445
|
+
function Kt(t) {
|
|
446
|
+
return Se("layer", t.id);
|
|
249
447
|
}
|
|
250
|
-
function
|
|
448
|
+
function Xt(t) {
|
|
251
449
|
return t.setGroupCollapsed;
|
|
252
450
|
}
|
|
253
|
-
const
|
|
451
|
+
const U = {
|
|
254
452
|
// Padding lives on header/content/footer (not the root) so the sticky
|
|
255
453
|
// header is opaque and full-bleed while pinned.
|
|
256
454
|
row: {
|
|
257
455
|
display: "flex",
|
|
258
456
|
flexDirection: "column",
|
|
457
|
+
position: "relative",
|
|
259
458
|
"& + &": {
|
|
260
459
|
borderTop: "1px solid",
|
|
261
460
|
borderColor: "divider"
|
|
@@ -288,8 +487,30 @@ const Z = {
|
|
|
288
487
|
// (the renderers keep their own list-scoped rule for standalone usage).
|
|
289
488
|
"&:hover .PsLegend-value, &:focus-within .PsLegend-value": {
|
|
290
489
|
opacity: 1
|
|
490
|
+
},
|
|
491
|
+
// Drag handle (Legend.Sortable): absolutely positioned (no reserved flex
|
|
492
|
+
// slot, so it never shifts the title/icon); the button inside fades in
|
|
493
|
+
// on hover/focus and is always visible on touch devices.
|
|
494
|
+
"& .PsLegend-dragHandle-layer > *": {
|
|
495
|
+
opacity: 0,
|
|
496
|
+
transition: ({
|
|
497
|
+
transitions: t
|
|
498
|
+
}) => t.create("opacity", {
|
|
499
|
+
duration: t.duration.standard,
|
|
500
|
+
easing: t.easing.easeInOut
|
|
501
|
+
}),
|
|
502
|
+
"@media (hover: none)": {
|
|
503
|
+
opacity: 1
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"&:hover .PsLegend-dragHandle-layer > *, &:focus-within .PsLegend-dragHandle-layer > *": {
|
|
507
|
+
opacity: 1
|
|
291
508
|
}
|
|
292
509
|
},
|
|
510
|
+
// The original stays in place, dimmed, while its overlay clone is dragged.
|
|
511
|
+
rowDragging: {
|
|
512
|
+
opacity: 0.4
|
|
513
|
+
},
|
|
293
514
|
// Figma `_Legend header`: 16px top/left inset (title glyphs start at
|
|
294
515
|
// y≈17, x=16 in the 68px-tall header), actions share the title's vertical
|
|
295
516
|
// band (subtitle flows below them) — hence `flex-start` with the title
|
|
@@ -316,21 +537,51 @@ const Z = {
|
|
|
316
537
|
display: "flex",
|
|
317
538
|
flexDirection: "column"
|
|
318
539
|
},
|
|
540
|
+
// Accordion click target (whole title block + spare space). Non-native
|
|
541
|
+
// button, so it carries its own focus ring.
|
|
542
|
+
titleBoxInteractive: {
|
|
543
|
+
cursor: "pointer",
|
|
544
|
+
userSelect: "none",
|
|
545
|
+
"&:focus-visible": {
|
|
546
|
+
outline: "2px solid",
|
|
547
|
+
outlineColor: "primary.main",
|
|
548
|
+
outlineOffset: -2
|
|
549
|
+
}
|
|
550
|
+
},
|
|
319
551
|
// The title line and the actions box share the same 24px band, centered,
|
|
320
552
|
// so the title and the action icons stay aligned under the header's
|
|
321
553
|
// `flex-start` — no padding magic. The subtitle flows below.
|
|
322
554
|
titleLine: {
|
|
323
555
|
minHeight: 24,
|
|
324
556
|
display: "flex",
|
|
325
|
-
alignItems: "center"
|
|
557
|
+
alignItems: "center",
|
|
558
|
+
gap: 0.5
|
|
326
559
|
},
|
|
327
560
|
title: {
|
|
328
|
-
flex: 1,
|
|
329
561
|
minWidth: 0,
|
|
330
562
|
overflow: "hidden",
|
|
331
563
|
textOverflow: "ellipsis",
|
|
332
564
|
whiteSpace: "nowrap"
|
|
333
565
|
},
|
|
566
|
+
// Informative collapse indicator beside the title (the title area is the
|
|
567
|
+
// button). Points down when expanded, right when collapsed; not shown on
|
|
568
|
+
// touch devices — there the title row itself is the affordance.
|
|
569
|
+
chevron: {
|
|
570
|
+
fontSize: 16,
|
|
571
|
+
color: "text.secondary",
|
|
572
|
+
flexShrink: 0,
|
|
573
|
+
transition: ({
|
|
574
|
+
transitions: t
|
|
575
|
+
}) => t.create("transform", {
|
|
576
|
+
duration: t.duration.shorter
|
|
577
|
+
}),
|
|
578
|
+
"@media (hover: none)": {
|
|
579
|
+
display: "none"
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
chevronCollapsed: {
|
|
583
|
+
transform: "rotate(-90deg)"
|
|
584
|
+
},
|
|
334
585
|
// Same 24px band as the title line, so both sides of the header stay
|
|
335
586
|
// aligned even when the composed actions are shorter (or fade out).
|
|
336
587
|
// Icon buttons (actions + collapse chevron) are squeezed to 24×24:
|
|
@@ -366,353 +617,776 @@ const Z = {
|
|
|
366
617
|
opacity: 0.5
|
|
367
618
|
}
|
|
368
619
|
};
|
|
369
|
-
function
|
|
370
|
-
const e =
|
|
620
|
+
function qt(t) {
|
|
621
|
+
const e = T(30), {
|
|
371
622
|
layerId: o,
|
|
372
|
-
children:
|
|
373
|
-
} = t,
|
|
374
|
-
let
|
|
375
|
-
e[0] !== o ? (
|
|
376
|
-
const
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
623
|
+
children: r
|
|
624
|
+
} = t, l = N();
|
|
625
|
+
let i;
|
|
626
|
+
e[0] !== o ? (i = (m) => m.layers[o], e[0] = o, e[1] = i) : i = e[1];
|
|
627
|
+
const n = Z(l, i), a = Z(l, Qt);
|
|
628
|
+
let s;
|
|
629
|
+
e[2] !== o ? (s = (m) => St(m, o), e[2] = o, e[3] = s) : s = e[3];
|
|
630
|
+
const c = j(l, s), p = ue() !== null, f = tt(), [u, y] = J(!1), g = n?.visible ?? !0, h = u && g;
|
|
631
|
+
let v;
|
|
632
|
+
e[4] !== o || e[5] !== h ? (v = {
|
|
381
633
|
layerId: o,
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
if (!l)
|
|
634
|
+
opacityOpen: h,
|
|
635
|
+
setOpacityOpen: y
|
|
636
|
+
}, e[4] = o, e[5] = h, e[6] = v) : v = e[6];
|
|
637
|
+
const b = v;
|
|
638
|
+
if (!n)
|
|
388
639
|
return null;
|
|
389
|
-
let h;
|
|
390
|
-
e[6] !== n ? (h = Me(n), e[6] = n, e[7] = h) : h = e[7];
|
|
391
|
-
const {
|
|
392
|
-
actions: y,
|
|
393
|
-
body: x
|
|
394
|
-
} = h, b = !l.visible || l.collapsed, v = l.groupId ? Oe : 0;
|
|
395
|
-
let L;
|
|
396
|
-
e[8] !== v ? (L = {
|
|
397
|
-
top: v
|
|
398
|
-
}, e[8] = v, e[9] = L) : L = e[9];
|
|
399
|
-
let w, k;
|
|
400
|
-
e[10] !== l.name ? (w = [l.name], k = (j) => {
|
|
401
|
-
const {
|
|
402
|
-
ref: q
|
|
403
|
-
} = j;
|
|
404
|
-
return /* @__PURE__ */ s(V, { ref: q, variant: "button", color: "text.primary", sx: Z.title, children: l.name });
|
|
405
|
-
}, e[10] = l.name, e[11] = w, e[12] = k) : (w = e[11], k = e[12]);
|
|
406
640
|
let C;
|
|
407
|
-
e[
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
C,
|
|
413
|
-
S
|
|
414
|
-
] }), e[19] = C, e[20] = S, e[21] = z) : z = e[21];
|
|
415
|
-
let $;
|
|
416
|
-
e[22] !== l.collapsed || e[23] !== o || e[24] !== p ? ($ = () => p(o, !l.collapsed), e[22] = l.collapsed, e[23] = o, e[24] = p, e[25] = $) : $ = e[25];
|
|
417
|
-
const M = !l.visible, I = b ? a.expandLayer : a.collapseLayer;
|
|
418
|
-
let _;
|
|
419
|
-
e[26] !== b ? (_ = b ? /* @__PURE__ */ s(Se, { fontSize: "small" }) : /* @__PURE__ */ s(Ie, { fontSize: "small" }), e[26] = b, e[27] = _) : _ = e[27];
|
|
641
|
+
e[7] !== r ? (C = Je(r), e[7] = r, e[8] = C) : C = e[8];
|
|
642
|
+
const {
|
|
643
|
+
actions: L,
|
|
644
|
+
body: w
|
|
645
|
+
} = C, x = !n.visible || n.collapsed, I = p ? nt : 0, S = n.visible && c;
|
|
420
646
|
let O;
|
|
421
|
-
e[
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
647
|
+
e[9] !== n.collapsed || e[10] !== o || e[11] !== a ? (O = () => a(o, !n.collapsed), e[9] = n.collapsed, e[10] = o, e[11] = a, e[12] = O) : O = e[12];
|
|
648
|
+
const k = O;
|
|
649
|
+
let $;
|
|
650
|
+
e[13] !== L || e[14] !== w || e[15] !== S || e[16] !== x || e[17] !== n.collapsed || e[18] !== n.helperText || e[19] !== n.name || e[20] !== n.subtitle || e[21] !== n.visible || e[22] !== b || e[23] !== I || e[24] !== k ? ($ = (m) => /* @__PURE__ */ d(Ke.Provider, { value: b, children: /* @__PURE__ */ P(M, { ref: m?.rootRef, style: m?.rootStyle, sx: [U.row, m?.dragging === !0 && U.rowDragging], children: [
|
|
651
|
+
/* @__PURE__ */ P(M, { sx: U.header, style: {
|
|
652
|
+
top: I
|
|
653
|
+
}, children: [
|
|
654
|
+
m?.handle,
|
|
655
|
+
/* @__PURE__ */ P(M, { sx: [U.titleBox, S && U.titleBoxInteractive], ...S && {
|
|
656
|
+
role: "button",
|
|
657
|
+
tabIndex: 0,
|
|
658
|
+
"aria-expanded": !n.collapsed,
|
|
659
|
+
onClick: k,
|
|
660
|
+
onKeyDown: Ze(k)
|
|
661
|
+
}, children: [
|
|
662
|
+
/* @__PURE__ */ P(M, { sx: U.titleLine, children: [
|
|
663
|
+
/* @__PURE__ */ d(Ue, { title: n.name, dependencies: [n.name], children: (z) => {
|
|
664
|
+
const {
|
|
665
|
+
ref: A
|
|
666
|
+
} = z;
|
|
667
|
+
return /* @__PURE__ */ d(E, { ref: A, variant: "button", color: n.visible ? "text.primary" : "text.disabled", sx: U.title, children: n.name });
|
|
668
|
+
} }),
|
|
669
|
+
S && /* @__PURE__ */ d(Be, { sx: [U.chevron, n.collapsed && U.chevronCollapsed] })
|
|
670
|
+
] }),
|
|
671
|
+
n.subtitle && !x && /* @__PURE__ */ d(E, { variant: "caption", color: "text.secondary", children: n.subtitle })
|
|
672
|
+
] }),
|
|
673
|
+
/* @__PURE__ */ d(M, { sx: U.actions, children: L })
|
|
674
|
+
] }),
|
|
675
|
+
/* @__PURE__ */ P(He, { in: !x, children: [
|
|
676
|
+
/* @__PURE__ */ d(M, { sx: n.visible ? U.content : {
|
|
677
|
+
...U.content,
|
|
678
|
+
...U.dimmed
|
|
679
|
+
}, children: w }),
|
|
680
|
+
n.helperText && /* @__PURE__ */ d(M, { sx: U.footer, children: typeof n.helperText == "string" ? /* @__PURE__ */ d(E, { variant: "caption", color: "text.secondary", children: n.helperText }) : n.helperText })
|
|
681
|
+
] })
|
|
682
|
+
] }) }), e[13] = L, e[14] = w, e[15] = S, e[16] = x, e[17] = n.collapsed, e[18] = n.helperText, e[19] = n.name, e[20] = n.subtitle, e[21] = n.visible, e[22] = b, e[23] = I, e[24] = k, e[25] = $) : $ = e[25];
|
|
683
|
+
const _ = $;
|
|
452
684
|
let G;
|
|
453
|
-
return e[
|
|
685
|
+
return e[26] !== o || e[27] !== _ || e[28] !== f ? (G = f ? /* @__PURE__ */ d(ot, { kind: "layer", id: o, render: _ }) : _(), e[26] = o, e[27] = _, e[28] = f, e[29] = G) : G = e[29], G;
|
|
454
686
|
}
|
|
455
|
-
function
|
|
687
|
+
function Qt(t) {
|
|
456
688
|
return t.setCollapsed;
|
|
457
689
|
}
|
|
458
|
-
const
|
|
459
|
-
/* @__PURE__ */
|
|
460
|
-
/* @__PURE__ */
|
|
461
|
-
] }), "VisibilityIndeterminate"),
|
|
462
|
-
visible:
|
|
463
|
-
hidden:
|
|
464
|
-
mixed:
|
|
690
|
+
const Yt = Ct(/* @__PURE__ */ P("g", { transform: "translate(12 12) scale(1.33333) translate(-184 -24)", children: [
|
|
691
|
+
/* @__PURE__ */ d("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M184.901 29.5794L185.217 29.5415C185.803 29.4604 186.372 29.3216 186.918 29.1319L187 29.1007L187 29.1033L187.208 29.0255L187.536 28.8904C187.722 28.8088 187.906 28.721 188.086 28.6272L188.366 28.4747C188.381 28.4663 188.395 28.4578 188.41 28.4493C188.418 28.4451 188.425 28.4408 188.432 28.4365C188.455 28.4234 188.478 28.4102 188.5 28.3969C188.551 28.3668 188.601 28.3362 188.652 28.3052L188.912 28.1374C189.598 27.6788 190.217 27.1271 190.75 26.5002L190.751 26.4954C190.989 26.2164 191.21 25.9226 191.413 25.6152C191.488 25.5007 191.561 25.3843 191.631 25.2662L191.757 25.0445L191.878 24.8189L192.021 24.5306L192.15 24.2443L192.25 24C190.98 20.7776 187.885 18.4747 184.239 18.3782L184 18.375L183.716 18.3795L183.637 18.3823L183.373 18.3967L183.103 18.4198L182.838 18.4506L182.666 18.4749L182.426 18.5146C182.19 18.557 181.957 18.6087 181.728 18.6684L181.55 18.7175L181.271 18.8039L182.508 20.04L182.801 19.9854C183.194 19.9182 183.592 19.875 184 19.875C186.842 19.875 189.378 21.4725 190.615 24C190.172 24.915 189.55 25.7025 188.807 26.34L188.811 26.3446C188.71 26.4323 188.606 26.5172 188.5 26.5991C188.455 26.6337 188.41 26.6679 188.364 26.7015C188.108 26.8897 187.84 27.0611 187.562 27.2145C187.088 27.4755 186.585 27.6844 186.058 27.836L186.062 27.84L185.778 27.9125C185.707 27.9293 185.635 27.9452 185.563 27.9602C185.297 28.0173 185.025 28.06 184.75 28.0876V28.0866C184.503 28.1118 184.253 28.125 184 28.125C181.158 28.125 178.622 26.5275 177.385 24C177.91 22.9275 178.675 22.0425 179.582 21.3525L180.895 22.665L180.826 22.844C180.697 23.2065 180.625 23.595 180.625 24C180.625 25.86 182.14 27.375 184 27.375C184.258 27.375 184.509 27.3459 184.75 27.2915C185.462 27.129 186.09 26.7397 186.553 26.2048L179.79 19.4389C179.339 19.6833 178.912 19.9656 178.512 20.2817L178.517 20.2875L178.271 20.4884C177.704 20.9671 177.197 21.516 176.766 22.1227C176.404 22.6333 176.095 23.1838 175.845 23.7662L175.75 24C177.048 27.2925 180.25 29.625 184 29.625L184.285 29.6205L184.492 29.6116L184.628 29.6025L184.901 29.5794ZM182.133 23.9025L184.09 25.86L184.045 25.8703L184 25.875C182.965 25.875 182.125 25.035 182.125 24L182.133 23.9025Z" }),
|
|
692
|
+
/* @__PURE__ */ d("path", { d: "M187.368 23.9925C187.375 22.1325 185.86 20.625 184 20.625C183.722 20.625 183.46 20.6625 183.198 20.73L184.75 22.2825L184.889 22.3507C185.252 22.5477 185.543 22.8625 185.71 23.2425L187.263 24.795L187.304 24.6011C187.342 24.4045 187.368 24.2006 187.368 23.9925Z" })
|
|
693
|
+
] }), "VisibilityIndeterminate"), Jt = {
|
|
694
|
+
visible: We,
|
|
695
|
+
hidden: Gt,
|
|
696
|
+
mixed: Yt
|
|
465
697
|
};
|
|
466
|
-
function
|
|
467
|
-
const e =
|
|
698
|
+
function eo(t) {
|
|
699
|
+
const e = T(36), {
|
|
468
700
|
visibility: o,
|
|
469
|
-
onToggle:
|
|
470
|
-
labels:
|
|
471
|
-
} = t,
|
|
472
|
-
labels:
|
|
473
|
-
} =
|
|
474
|
-
let
|
|
475
|
-
e[0] !==
|
|
476
|
-
const
|
|
477
|
-
let
|
|
478
|
-
e[3] !==
|
|
479
|
-
const
|
|
480
|
-
let
|
|
481
|
-
e[7] !==
|
|
482
|
-
!
|
|
483
|
-
},
|
|
484
|
-
let
|
|
485
|
-
if (
|
|
486
|
-
|
|
487
|
-
let
|
|
488
|
-
e[12] !==
|
|
489
|
-
} else if (
|
|
490
|
-
|
|
491
|
-
let
|
|
492
|
-
e[15] !==
|
|
493
|
-
} else if (
|
|
494
|
-
|
|
495
|
-
let
|
|
496
|
-
e[19] !==
|
|
497
|
-
let
|
|
498
|
-
e[23] !==
|
|
499
|
-
hideLayer:
|
|
500
|
-
showLayer:
|
|
501
|
-
}, e[23] =
|
|
701
|
+
onToggle: r,
|
|
702
|
+
labels: l
|
|
703
|
+
} = t, i = N(), n = Q(), a = ue(), {
|
|
704
|
+
labels: s
|
|
705
|
+
} = B(), c = o !== void 0 && r !== void 0;
|
|
706
|
+
let p;
|
|
707
|
+
e[0] !== c || e[1] !== n ? (p = (m) => !c && n ? m.layers[n.layerId]?.visible ?? !0 : !0, e[0] = c, e[1] = n, e[2] = p) : p = e[2];
|
|
708
|
+
const f = j(i, p);
|
|
709
|
+
let u;
|
|
710
|
+
e[3] !== c || e[4] !== a || e[5] !== n ? (u = (m) => !c && !n && a ? ke(m, a) : "visible", e[3] = c, e[4] = a, e[5] = n, e[6] = u) : u = e[6];
|
|
711
|
+
const y = Z(i, u), g = j(i, oo), h = j(i, to);
|
|
712
|
+
let v, b;
|
|
713
|
+
e[7] !== c || e[8] !== a || e[9] !== n ? (v = () => {
|
|
714
|
+
!c && !n && !a && console.warn("Legend.VisibilityToggle needs `visibility`/`onToggle` props or a Legend.Row / Legend.Group context.");
|
|
715
|
+
}, b = [c, n, a], e[7] = c, e[8] = a, e[9] = n, e[10] = v, e[11] = b) : (v = e[10], b = e[11]), ht(v, b);
|
|
716
|
+
let C, L, w = l;
|
|
717
|
+
if (c) {
|
|
718
|
+
C = o;
|
|
719
|
+
let m;
|
|
720
|
+
e[12] !== r || e[13] !== o ? (m = () => r(o === "hidden"), e[12] = r, e[13] = o, e[14] = m) : m = e[14], L = m;
|
|
721
|
+
} else if (n) {
|
|
722
|
+
C = f ? "visible" : "hidden";
|
|
723
|
+
let m;
|
|
724
|
+
e[15] !== f || e[16] !== n || e[17] !== g ? (m = () => g(n.layerId, !f), e[15] = f, e[16] = n, e[17] = g, e[18] = m) : m = e[18], L = m;
|
|
725
|
+
} else if (a) {
|
|
726
|
+
C = y;
|
|
727
|
+
let m;
|
|
728
|
+
e[19] !== a || e[20] !== y || e[21] !== h ? (m = () => h(a, y === "hidden"), e[19] = a, e[20] = y, e[21] = h, e[22] = m) : m = e[22], L = m;
|
|
729
|
+
let z;
|
|
730
|
+
e[23] !== s || e[24] !== l ? (z = l ?? {
|
|
731
|
+
hideLayer: s.hideGroup,
|
|
732
|
+
showLayer: s.showGroup
|
|
733
|
+
}, e[23] = s, e[24] = l, e[25] = z) : z = e[25], w = z;
|
|
502
734
|
} else
|
|
503
735
|
return null;
|
|
504
736
|
const {
|
|
505
|
-
hideLayer:
|
|
506
|
-
showLayer:
|
|
507
|
-
} =
|
|
737
|
+
hideLayer: x,
|
|
738
|
+
showLayer: I
|
|
739
|
+
} = w ?? s, S = Jt[C], O = C === "hidden" ? I : x, k = C === "visible" ? void 0 : "active";
|
|
508
740
|
let $;
|
|
509
|
-
e[26] !==
|
|
510
|
-
let
|
|
511
|
-
|
|
741
|
+
e[26] !== S ? ($ = /* @__PURE__ */ d(S, { fontSize: "small" }), e[26] = S, e[27] = $) : $ = e[27];
|
|
742
|
+
let _;
|
|
743
|
+
e[28] !== L || e[29] !== O || e[30] !== k || e[31] !== $ ? (_ = /* @__PURE__ */ d(ve, { size: "small", className: k, onClick: L, "aria-label": O, children: $ }), e[28] = L, e[29] = O, e[30] = k, e[31] = $, e[32] = _) : _ = e[32];
|
|
744
|
+
let G;
|
|
745
|
+
return e[33] !== O || e[34] !== _ ? (G = /* @__PURE__ */ d(ie, { title: O, children: _ }), e[33] = O, e[34] = _, e[35] = G) : G = e[35], G;
|
|
512
746
|
}
|
|
513
|
-
function
|
|
747
|
+
function to(t) {
|
|
514
748
|
return t.setGroupVisibility;
|
|
515
749
|
}
|
|
516
|
-
function
|
|
750
|
+
function oo(t) {
|
|
517
751
|
return t.setVisibility;
|
|
518
752
|
}
|
|
519
|
-
function
|
|
520
|
-
const e =
|
|
753
|
+
function Oe(t) {
|
|
754
|
+
const e = T(23), {
|
|
755
|
+
children: o,
|
|
756
|
+
gate: r,
|
|
757
|
+
ariaLabel: l,
|
|
758
|
+
active: i
|
|
759
|
+
} = t, n = r === void 0 ? !0 : r, a = i === void 0 ? !1 : i, [s, c] = J(null), [p, f] = J(!1), u = Te(!1), y = !!s, {
|
|
760
|
+
labels: g
|
|
761
|
+
} = B();
|
|
762
|
+
let h;
|
|
763
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => c(null), e[0] = h) : h = e[0];
|
|
764
|
+
const v = h;
|
|
765
|
+
let b;
|
|
766
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = (V) => {
|
|
767
|
+
u.current = V, f(V);
|
|
768
|
+
}, e[1] = b) : b = e[1];
|
|
769
|
+
const C = b;
|
|
770
|
+
let L;
|
|
771
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = () => u.current, e[2] = L) : L = e[2];
|
|
772
|
+
const w = L;
|
|
773
|
+
let x;
|
|
774
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = () => {
|
|
775
|
+
u.current || v();
|
|
776
|
+
}, e[3] = x) : x = e[3];
|
|
777
|
+
const I = x;
|
|
778
|
+
let S;
|
|
779
|
+
e[4] !== p ? (S = {
|
|
780
|
+
busy: p,
|
|
781
|
+
isBusy: w,
|
|
782
|
+
setBusy: C,
|
|
783
|
+
close: v
|
|
784
|
+
}, e[4] = p, e[5] = S) : S = e[5];
|
|
785
|
+
const O = S;
|
|
786
|
+
if (!n || !o)
|
|
787
|
+
return null;
|
|
788
|
+
let k;
|
|
789
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (V) => {
|
|
790
|
+
V.stopPropagation(), c(V.currentTarget);
|
|
791
|
+
}, e[6] = k) : k = e[6];
|
|
792
|
+
const $ = k, _ = y || p || a ? "active" : void 0;
|
|
793
|
+
let G;
|
|
794
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ d(zt, { fontSize: "small" }), e[7] = G) : G = e[7];
|
|
795
|
+
let m;
|
|
796
|
+
e[8] !== l || e[9] !== y || e[10] !== _ ? (m = /* @__PURE__ */ d(ve, { size: "small", className: _, onClick: $, "aria-label": l, "aria-haspopup": "menu", "aria-expanded": y, children: G }), e[8] = l, e[9] = y, e[10] = _, e[11] = m) : m = e[11];
|
|
797
|
+
let z;
|
|
798
|
+
e[12] !== g.moreOptions || e[13] !== m ? (z = /* @__PURE__ */ d(ie, { title: g.moreOptions, children: m }), e[12] = g.moreOptions, e[13] = m, e[14] = z) : z = e[14];
|
|
799
|
+
let A;
|
|
800
|
+
e[15] !== s || e[16] !== o || e[17] !== y ? (A = /* @__PURE__ */ d($e, { anchorEl: s, open: y, onClose: I, onClick: I, children: o }), e[15] = s, e[16] = o, e[17] = y, e[18] = A) : A = e[18];
|
|
801
|
+
let D;
|
|
802
|
+
return e[19] !== O || e[20] !== z || e[21] !== A ? (D = /* @__PURE__ */ P(qe.Provider, { value: O, children: [
|
|
803
|
+
z,
|
|
804
|
+
A
|
|
805
|
+
] }), e[19] = O, e[20] = z, e[21] = A, e[22] = D) : D = e[22], D;
|
|
806
|
+
}
|
|
807
|
+
function no(t) {
|
|
808
|
+
const e = T(5), {
|
|
521
809
|
children: o
|
|
522
|
-
} = t,
|
|
810
|
+
} = t, r = Q(), {
|
|
811
|
+
labels: l
|
|
812
|
+
} = B(), i = !!r, n = r?.opacityOpen ?? !1;
|
|
523
813
|
let a;
|
|
524
|
-
e[0] !==
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
814
|
+
return e[0] !== o || e[1] !== l.layerOptions || e[2] !== i || e[3] !== n ? (a = /* @__PURE__ */ d(Oe, { gate: i, ariaLabel: l.layerOptions, active: n, children: o }), e[0] = o, e[1] = l.layerOptions, e[2] = i, e[3] = n, e[4] = a) : a = e[4], a;
|
|
815
|
+
}
|
|
816
|
+
async function lt(t, e) {
|
|
817
|
+
if (!t.isBusy()) {
|
|
818
|
+
t.setBusy(!0);
|
|
819
|
+
try {
|
|
820
|
+
await e();
|
|
821
|
+
} finally {
|
|
822
|
+
t.setBusy(!1), t.close();
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
function lo(t) {
|
|
827
|
+
const e = T(13), {
|
|
828
|
+
onZoomTo: o
|
|
829
|
+
} = t, r = N(), l = Q(), i = Qe();
|
|
830
|
+
let n;
|
|
831
|
+
e[0] !== l ? (n = (h) => l ? h.layers[l.layerId]?.visible ?? !1 : !1, e[0] = l, e[1] = n) : n = e[1];
|
|
832
|
+
const a = j(r, n), {
|
|
833
|
+
labels: s
|
|
834
|
+
} = B();
|
|
835
|
+
if (!l || !a)
|
|
529
836
|
return null;
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
837
|
+
const c = i?.busy ?? !1;
|
|
838
|
+
let p;
|
|
839
|
+
e[2] !== i || e[3] !== o || e[4] !== l ? (p = (h) => {
|
|
840
|
+
h.stopPropagation(), i && lt(i, () => o(l.layerId));
|
|
841
|
+
}, e[2] = i, e[3] = o, e[4] = l, e[5] = p) : p = e[5];
|
|
842
|
+
const f = p;
|
|
843
|
+
let u;
|
|
844
|
+
e[6] !== c ? (u = c && /* @__PURE__ */ d(Re, { size: 16, sx: {
|
|
845
|
+
mr: 1
|
|
846
|
+
} }), e[6] = c, e[7] = u) : u = e[7];
|
|
847
|
+
const y = c ? s.loading : s.zoomTo;
|
|
535
848
|
let g;
|
|
536
|
-
e[
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
e[
|
|
540
|
-
let b;
|
|
541
|
-
e[5] !== f.layerOptions || e[6] !== l || e[7] !== h || e[8] !== y ? (b = /* @__PURE__ */ s(de, { size: "small", className: h, disabled: y, onClick: c, "aria-label": f.layerOptions, "aria-haspopup": "menu", "aria-expanded": l, children: x }), e[5] = f.layerOptions, e[6] = l, e[7] = h, e[8] = y, e[9] = b) : b = e[9];
|
|
542
|
-
let v;
|
|
543
|
-
e[10] !== i || e[11] !== o || e[12] !== l ? (v = /* @__PURE__ */ s(Le, { anchorEl: i, open: l, onClose: u, onClick: u, children: o }), e[10] = i, e[11] = o, e[12] = l, e[13] = v) : v = e[13];
|
|
544
|
-
let L;
|
|
545
|
-
return e[14] !== b || e[15] !== v ? (L = /* @__PURE__ */ E(se, { children: [
|
|
546
|
-
b,
|
|
547
|
-
v
|
|
548
|
-
] }), e[14] = b, e[15] = v, e[16] = L) : L = e[16], L;
|
|
849
|
+
return e[8] !== c || e[9] !== f || e[10] !== u || e[11] !== y ? (g = /* @__PURE__ */ P(q, { disabled: c, onClick: f, children: [
|
|
850
|
+
u,
|
|
851
|
+
y
|
|
852
|
+
] }), e[8] = c, e[9] = f, e[10] = u, e[11] = y, e[12] = g) : g = e[12], g;
|
|
549
853
|
}
|
|
550
|
-
function
|
|
551
|
-
const e =
|
|
552
|
-
|
|
553
|
-
} =
|
|
554
|
-
|
|
555
|
-
} = K();
|
|
556
|
-
if (!n)
|
|
854
|
+
function io() {
|
|
855
|
+
const t = T(6), e = N(), o = Q(), {
|
|
856
|
+
labels: r
|
|
857
|
+
} = B();
|
|
858
|
+
if (!o)
|
|
557
859
|
return null;
|
|
558
|
-
let r;
|
|
559
|
-
e[0] !== o || e[1] !== n.layerId ? (r = () => o(n.layerId), e[0] = o, e[1] = n.layerId, e[2] = r) : r = e[2];
|
|
560
860
|
let l;
|
|
561
|
-
|
|
861
|
+
t[0] !== e || t[1] !== o.layerId ? (l = () => {
|
|
862
|
+
const a = X(e).getState(), s = a.layers[o.layerId];
|
|
863
|
+
if (s)
|
|
864
|
+
for (const c of re(a, s.groupId))
|
|
865
|
+
a.setVisibility(c.id, c.id === o.layerId);
|
|
866
|
+
}, t[0] = e, t[1] = o.layerId, t[2] = l) : l = t[2];
|
|
867
|
+
const i = l;
|
|
868
|
+
let n;
|
|
869
|
+
return t[3] !== r.showOnlyLayer || t[4] !== i ? (n = /* @__PURE__ */ d(q, { onClick: i, children: r.showOnlyLayer }), t[3] = r.showOnlyLayer, t[4] = i, t[5] = n) : n = t[5], n;
|
|
870
|
+
}
|
|
871
|
+
function ro() {
|
|
872
|
+
const t = T(6), e = N(), o = ue(), r = Q(), {
|
|
873
|
+
labels: l
|
|
874
|
+
} = B();
|
|
875
|
+
if (o === null && !r)
|
|
876
|
+
return null;
|
|
877
|
+
let i;
|
|
878
|
+
t[0] !== o || t[1] !== e ? (i = () => {
|
|
879
|
+
const s = X(e).getState();
|
|
880
|
+
if (o !== null)
|
|
881
|
+
s.setGroupVisibility(o, !0);
|
|
882
|
+
else
|
|
883
|
+
for (const c of re(s, void 0))
|
|
884
|
+
s.setVisibility(c.id, !0);
|
|
885
|
+
}, t[0] = o, t[1] = e, t[2] = i) : i = t[2];
|
|
886
|
+
const n = i;
|
|
887
|
+
let a;
|
|
888
|
+
return t[3] !== l.showAllLayers || t[4] !== n ? (a = /* @__PURE__ */ d(q, { onClick: n, children: l.showAllLayers }), t[3] = l.showAllLayers, t[4] = n, t[5] = a) : a = t[5], a;
|
|
889
|
+
}
|
|
890
|
+
function so(t) {
|
|
891
|
+
const e = T(4), {
|
|
892
|
+
children: o
|
|
893
|
+
} = t, r = ue(), {
|
|
894
|
+
labels: l
|
|
895
|
+
} = B(), i = r !== null;
|
|
896
|
+
let n;
|
|
897
|
+
return e[0] !== o || e[1] !== l.groupOptions || e[2] !== i ? (n = /* @__PURE__ */ d(Oe, { gate: i, ariaLabel: l.groupOptions, children: o }), e[0] = o, e[1] = l.groupOptions, e[2] = i, e[3] = n) : n = e[3], n;
|
|
898
|
+
}
|
|
899
|
+
function ao() {
|
|
900
|
+
const t = T(6), e = N(), o = ue(), {
|
|
901
|
+
labels: r
|
|
902
|
+
} = B();
|
|
903
|
+
if (o === null)
|
|
904
|
+
return null;
|
|
905
|
+
let l;
|
|
906
|
+
t[0] !== o || t[1] !== e ? (l = () => {
|
|
907
|
+
const a = X(e).getState();
|
|
908
|
+
for (const s of xe(a))
|
|
909
|
+
a.setGroupVisibility(s.id, s.id === o);
|
|
910
|
+
for (const s of re(a, void 0))
|
|
911
|
+
a.setVisibility(s.id, !1);
|
|
912
|
+
}, t[0] = o, t[1] = e, t[2] = l) : l = t[2];
|
|
913
|
+
const i = l;
|
|
914
|
+
let n;
|
|
915
|
+
return t[3] !== r.showOnlyGroup || t[4] !== i ? (n = /* @__PURE__ */ d(q, { onClick: i, children: r.showOnlyGroup }), t[3] = r.showOnlyGroup, t[4] = i, t[5] = n) : n = t[5], n;
|
|
916
|
+
}
|
|
917
|
+
function co() {
|
|
918
|
+
const t = T(5), e = N(), o = j(e, De), {
|
|
919
|
+
labels: r
|
|
920
|
+
} = B();
|
|
921
|
+
if (!o)
|
|
922
|
+
return null;
|
|
923
|
+
let l;
|
|
924
|
+
t[0] !== e ? (l = () => {
|
|
925
|
+
const a = X(e).getState();
|
|
926
|
+
for (const s of xe(a))
|
|
927
|
+
a.setGroupVisibility(s.id, !0);
|
|
928
|
+
for (const s of re(a, void 0))
|
|
929
|
+
a.setVisibility(s.id, !0);
|
|
930
|
+
}, t[0] = e, t[1] = l) : l = t[1];
|
|
931
|
+
const i = l;
|
|
932
|
+
let n;
|
|
933
|
+
return t[2] !== r.showAllGroups || t[3] !== i ? (n = /* @__PURE__ */ d(q, { onClick: i, children: r.showAllGroups }), t[2] = r.showAllGroups, t[3] = i, t[4] = n) : n = t[4], n;
|
|
934
|
+
}
|
|
935
|
+
function uo() {
|
|
936
|
+
const t = T(5), e = N(), o = j(e, De), r = j(e, ze), {
|
|
937
|
+
labels: l
|
|
938
|
+
} = B();
|
|
939
|
+
if (!o)
|
|
940
|
+
return null;
|
|
941
|
+
let i;
|
|
942
|
+
t[0] !== e ? (i = () => {
|
|
943
|
+
const c = X(e).getState(), p = ze(c);
|
|
944
|
+
for (const f of xe(c))
|
|
945
|
+
c.setGroupCollapsed(f.id, !p);
|
|
946
|
+
}, t[0] = e, t[1] = i) : i = t[1];
|
|
947
|
+
const n = i, a = r ? l.expandAllGroups : l.collapseAllGroups;
|
|
948
|
+
let s;
|
|
949
|
+
return t[2] !== a || t[3] !== n ? (s = /* @__PURE__ */ d(q, { onClick: n, children: a }), t[2] = a, t[3] = n, t[4] = s) : s = t[4], s;
|
|
950
|
+
}
|
|
951
|
+
function po(t) {
|
|
952
|
+
const e = T(13), {
|
|
953
|
+
onZoomTo: o
|
|
954
|
+
} = t, r = N(), l = ue(), i = Qe();
|
|
955
|
+
let n;
|
|
956
|
+
e[0] !== l ? (n = (h) => l !== null && ke(h, l) === "hidden", e[0] = l, e[1] = n) : n = e[1];
|
|
957
|
+
const a = j(r, n), {
|
|
958
|
+
labels: s
|
|
959
|
+
} = B();
|
|
960
|
+
if (l === null || a)
|
|
961
|
+
return null;
|
|
962
|
+
const c = i?.busy ?? !1;
|
|
562
963
|
let p;
|
|
563
|
-
|
|
564
|
-
l
|
|
565
|
-
|
|
566
|
-
|
|
964
|
+
e[2] !== l || e[3] !== i || e[4] !== o ? (p = (h) => {
|
|
965
|
+
h.stopPropagation(), i && lt(i, () => o(l));
|
|
966
|
+
}, e[2] = l, e[3] = i, e[4] = o, e[5] = p) : p = e[5];
|
|
967
|
+
const f = p;
|
|
968
|
+
let u;
|
|
969
|
+
e[6] !== c ? (u = c && /* @__PURE__ */ d(Re, { size: 16, sx: {
|
|
970
|
+
mr: 1
|
|
971
|
+
} }), e[6] = c, e[7] = u) : u = e[7];
|
|
972
|
+
const y = c ? s.loading : s.zoomToGroup;
|
|
973
|
+
let g;
|
|
974
|
+
return e[8] !== c || e[9] !== f || e[10] !== u || e[11] !== y ? (g = /* @__PURE__ */ P(q, { disabled: c, onClick: f, children: [
|
|
975
|
+
u,
|
|
976
|
+
y
|
|
977
|
+
] }), e[8] = c, e[9] = f, e[10] = u, e[11] = y, e[12] = g) : g = e[12], g;
|
|
567
978
|
}
|
|
568
|
-
|
|
979
|
+
function fo(t) {
|
|
980
|
+
const e = T(3), {
|
|
981
|
+
children: o
|
|
982
|
+
} = t, {
|
|
983
|
+
labels: r
|
|
984
|
+
} = B();
|
|
985
|
+
let l;
|
|
986
|
+
return e[0] !== o || e[1] !== r.panelOptions ? (l = /* @__PURE__ */ d(Oe, { ariaLabel: r.panelOptions, children: o }), e[0] = o, e[1] = r.panelOptions, e[2] = l) : l = e[2], l;
|
|
987
|
+
}
|
|
988
|
+
const ee = {
|
|
569
989
|
// Tooltip wrapper around the (possibly disabled) trigger button. A plain
|
|
570
|
-
// inline span would be sized by the line box
|
|
571
|
-
//
|
|
990
|
+
// inline span would be sized by the line box and end up taller than the
|
|
991
|
+
// button inside.
|
|
572
992
|
triggerWrap: {
|
|
573
993
|
display: "inline-flex"
|
|
574
994
|
},
|
|
575
|
-
|
|
995
|
+
paper: {
|
|
996
|
+
width: 240,
|
|
997
|
+
maxHeight: 320,
|
|
998
|
+
// List padding is disabled (flush sticky header); keep a small bottom
|
|
999
|
+
// inset so the last 32px item doesn't touch the paper edge.
|
|
1000
|
+
paddingBottom: 0.5
|
|
1001
|
+
},
|
|
1002
|
+
stickyHeader: {
|
|
1003
|
+
position: "sticky",
|
|
1004
|
+
top: 0,
|
|
1005
|
+
zIndex: 1,
|
|
1006
|
+
backgroundColor: "background.paper",
|
|
1007
|
+
padding: 1,
|
|
1008
|
+
marginBlockEnd: 1,
|
|
1009
|
+
lineHeight: "16px",
|
|
1010
|
+
borderBottom: "1px solid",
|
|
1011
|
+
borderColor: "divider"
|
|
1012
|
+
},
|
|
1013
|
+
groupCaption: {
|
|
1014
|
+
display: "block",
|
|
1015
|
+
padding: ({
|
|
1016
|
+
spacing: t
|
|
1017
|
+
}) => t(0.5, 1.5)
|
|
1018
|
+
},
|
|
1019
|
+
// The whole item is the hide action (keyboard-friendly); the eye is its
|
|
1020
|
+
// visual affordance.
|
|
1021
|
+
item: {
|
|
1022
|
+
minHeight: 32,
|
|
576
1023
|
display: "flex",
|
|
577
1024
|
alignItems: "center",
|
|
578
|
-
|
|
1025
|
+
justifyContent: "space-between",
|
|
1026
|
+
gap: 1,
|
|
579
1027
|
padding: ({
|
|
580
1028
|
spacing: t
|
|
581
|
-
}) => t(1, 1.5)
|
|
582
|
-
|
|
1029
|
+
}) => t(0, 1, 0, 1.5)
|
|
1030
|
+
},
|
|
1031
|
+
itemName: {
|
|
1032
|
+
minWidth: 0,
|
|
1033
|
+
overflow: "hidden",
|
|
1034
|
+
textOverflow: "ellipsis",
|
|
1035
|
+
whiteSpace: "nowrap"
|
|
1036
|
+
},
|
|
1037
|
+
// Design's 18px glyph — decorative (the item itself is the action).
|
|
1038
|
+
eye: {
|
|
1039
|
+
fontSize: 18,
|
|
1040
|
+
color: "action.active",
|
|
1041
|
+
flexShrink: 0
|
|
1042
|
+
},
|
|
1043
|
+
divider: {
|
|
1044
|
+
marginY: 1
|
|
1045
|
+
}
|
|
1046
|
+
};
|
|
1047
|
+
function ho(t, e) {
|
|
1048
|
+
return Ee(X(t).getState());
|
|
1049
|
+
}
|
|
1050
|
+
function go() {
|
|
1051
|
+
const t = T(33), e = N(), [o, r] = J(null);
|
|
1052
|
+
j(e, bo);
|
|
1053
|
+
const l = ho(e), i = Z(e, mo), {
|
|
1054
|
+
labels: n
|
|
1055
|
+
} = B(), a = l.reduce(yo, 0), s = !!o && a > 0;
|
|
1056
|
+
let c;
|
|
1057
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (G) => r(G.currentTarget), t[0] = c) : c = t[0];
|
|
1058
|
+
const p = c;
|
|
1059
|
+
let f;
|
|
1060
|
+
t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = () => r(null), t[1] = f) : f = t[1];
|
|
1061
|
+
const u = f, y = s ? "active" : void 0, g = a === 0;
|
|
1062
|
+
let h;
|
|
1063
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ d(Mt, { fontSize: "small" }), t[2] = h) : h = t[2];
|
|
1064
|
+
let v;
|
|
1065
|
+
t[3] !== n.enabledLayers || t[4] !== s || t[5] !== y || t[6] !== g ? (v = /* @__PURE__ */ d(M, { component: "span", sx: ee.triggerWrap, children: /* @__PURE__ */ d(ve, { size: "small", className: y, disabled: g, onClick: p, "aria-label": n.enabledLayers, "aria-haspopup": "menu", "aria-expanded": s, children: h }) }), t[3] = n.enabledLayers, t[4] = s, t[5] = y, t[6] = g, t[7] = v) : v = t[7];
|
|
1066
|
+
let b;
|
|
1067
|
+
t[8] !== n.toggleEnabledLayers || t[9] !== v ? (b = /* @__PURE__ */ d(ie, { title: n.toggleEnabledLayers, children: v }), t[8] = n.toggleEnabledLayers, t[9] = v, t[10] = b) : b = t[10];
|
|
1068
|
+
const C = $e;
|
|
1069
|
+
let L;
|
|
1070
|
+
t[11] !== u ? (L = {
|
|
1071
|
+
onExited: u
|
|
1072
|
+
}, t[11] = u, t[12] = L) : L = t[12];
|
|
1073
|
+
let w, x;
|
|
1074
|
+
t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
|
|
1075
|
+
disablePadding: !0
|
|
1076
|
+
}, x = {
|
|
1077
|
+
paper: {
|
|
1078
|
+
sx: ee.paper
|
|
1079
|
+
}
|
|
1080
|
+
}, t[13] = w, t[14] = x) : (w = t[13], x = t[14]);
|
|
1081
|
+
const I = `${n.enabledLayers} (${a})`;
|
|
1082
|
+
let S;
|
|
1083
|
+
t[15] !== I ? (S = /* @__PURE__ */ d(E, { component: "div", variant: "caption", color: "text.primary", sx: ee.stickyHeader, children: I }), t[15] = I, t[16] = S) : S = t[16];
|
|
1084
|
+
let O;
|
|
1085
|
+
t[17] !== n.hideLayer || t[18] !== i ? (O = (G, m) => [m > 0 ? /* @__PURE__ */ d(wt, { sx: ee.divider }, `divider-${G.group?.id ?? "ungrouped"}`) : null, G.group ? /* @__PURE__ */ d(E, { variant: "caption", fontWeight: "medium", color: "text.secondary", sx: ee.groupCaption, children: G.group.label }, `caption-${G.group.id}`) : null, ...G.layers.map((z) => /* @__PURE__ */ P(q, { disableRipple: !0, sx: ee.item, onClick: () => i(z.id, !1), children: [
|
|
1086
|
+
/* @__PURE__ */ d(E, { variant: "body2", sx: ee.itemName, children: z.name }),
|
|
1087
|
+
/* @__PURE__ */ d(ie, { title: n.hideLayer, children: /* @__PURE__ */ d(We, { sx: ee.eye }) })
|
|
1088
|
+
] }, z.id))], t[17] = n.hideLayer, t[18] = i, t[19] = O) : O = t[19];
|
|
1089
|
+
const k = l.flatMap(O);
|
|
1090
|
+
let $;
|
|
1091
|
+
t[20] !== C || t[21] !== o || t[22] !== u || t[23] !== s || t[24] !== S || t[25] !== k || t[26] !== L || t[27] !== w || t[28] !== x ? ($ = /* @__PURE__ */ P(C, { anchorEl: o, open: s, onClose: u, TransitionProps: L, MenuListProps: w, slotProps: x, children: [
|
|
1092
|
+
S,
|
|
1093
|
+
k
|
|
1094
|
+
] }), t[20] = C, t[21] = o, t[22] = u, t[23] = s, t[24] = S, t[25] = k, t[26] = L, t[27] = w, t[28] = x, t[29] = $) : $ = t[29];
|
|
1095
|
+
let _;
|
|
1096
|
+
return t[30] !== $ || t[31] !== b ? (_ = /* @__PURE__ */ P(he, { children: [
|
|
1097
|
+
b,
|
|
1098
|
+
$
|
|
1099
|
+
] }), t[30] = $, t[31] = b, t[32] = _) : _ = t[32], _;
|
|
1100
|
+
}
|
|
1101
|
+
function yo(t, e) {
|
|
1102
|
+
return t + e.layers.length;
|
|
1103
|
+
}
|
|
1104
|
+
function mo(t) {
|
|
1105
|
+
return t.setVisibility;
|
|
1106
|
+
}
|
|
1107
|
+
function bo(t) {
|
|
1108
|
+
return Ee(t).map(xo).join("|");
|
|
1109
|
+
}
|
|
1110
|
+
function xo(t) {
|
|
1111
|
+
const {
|
|
1112
|
+
group: e,
|
|
1113
|
+
layers: o
|
|
1114
|
+
} = t;
|
|
1115
|
+
return `${e?.id ?? ""}${e?.label ?? ""}:${o.map(vo).join(",")}`;
|
|
1116
|
+
}
|
|
1117
|
+
function vo(t) {
|
|
1118
|
+
return `${t.id}${t.name}`;
|
|
1119
|
+
}
|
|
1120
|
+
function Lo(t) {
|
|
1121
|
+
const e = T(27), {
|
|
1122
|
+
children: o
|
|
1123
|
+
} = t, r = N(), [l, i] = J(null), n = Te(void 0), a = Z(r, So);
|
|
1124
|
+
let s;
|
|
1125
|
+
e[0] !== r ? (s = (k, $) => {
|
|
1126
|
+
const _ = de(k), G = de($);
|
|
1127
|
+
return !_ || G?.kind !== _.kind ? !1 : _.kind === "layer" ? X(r).getState().layers[G.id]?.groupId === n.current : !0;
|
|
1128
|
+
}, e[0] = r, e[1] = s) : s = e[1];
|
|
1129
|
+
const c = s;
|
|
1130
|
+
let p;
|
|
1131
|
+
e[2] !== c ? (p = (k, $) => {
|
|
1132
|
+
const {
|
|
1133
|
+
context: _
|
|
1134
|
+
} = $, {
|
|
1135
|
+
active: G,
|
|
1136
|
+
collisionRect: m,
|
|
1137
|
+
droppableRects: z,
|
|
1138
|
+
droppableContainers: A
|
|
1139
|
+
} = _;
|
|
1140
|
+
if (!G || !m || k.code !== "ArrowDown" && k.code !== "ArrowUp")
|
|
1141
|
+
return;
|
|
1142
|
+
k.preventDefault();
|
|
1143
|
+
const D = k.code === "ArrowDown", W = A.getEnabled().filter((R) => R.id !== G.id && c(String(G.id), String(R.id))).flatMap((R) => {
|
|
1144
|
+
const H = z.get(R.id);
|
|
1145
|
+
return H ? [H] : [];
|
|
1146
|
+
}).filter((R) => D ? R.top > m.top : R.top < m.top).sort((R, H) => D ? R.top - H.top : H.top - R.top)[0];
|
|
1147
|
+
return W ? {
|
|
1148
|
+
x: W.left,
|
|
1149
|
+
y: W.top
|
|
1150
|
+
} : void 0;
|
|
1151
|
+
}, e[2] = c, e[3] = p) : p = e[3];
|
|
1152
|
+
const f = p;
|
|
1153
|
+
let u;
|
|
1154
|
+
e[4] !== f ? (u = {
|
|
1155
|
+
coordinateGetter: f
|
|
1156
|
+
}, e[4] = f, e[5] = u) : u = e[5];
|
|
1157
|
+
const y = Ht(Me(Rt), Me(Vt, u));
|
|
1158
|
+
let g;
|
|
1159
|
+
e[6] !== c ? (g = (k) => {
|
|
1160
|
+
const $ = k.droppableContainers.filter((_) => c(String(k.active.id), String(_.id)));
|
|
1161
|
+
return Wt({
|
|
1162
|
+
...k,
|
|
1163
|
+
droppableContainers: $
|
|
1164
|
+
});
|
|
1165
|
+
}, e[6] = c, e[7] = g) : g = e[7];
|
|
1166
|
+
const h = g;
|
|
1167
|
+
let v;
|
|
1168
|
+
e[8] !== r ? (v = (k) => {
|
|
1169
|
+
const $ = String(k.active.id);
|
|
1170
|
+
i($);
|
|
1171
|
+
const _ = de($);
|
|
1172
|
+
n.current = _?.kind === "layer" ? X(r).getState().layers[_.id]?.groupId : void 0;
|
|
1173
|
+
}, e[8] = r, e[9] = v) : v = e[9];
|
|
1174
|
+
const b = v;
|
|
1175
|
+
let C;
|
|
1176
|
+
e[10] !== r ? (C = (k) => {
|
|
1177
|
+
i(null);
|
|
1178
|
+
const {
|
|
1179
|
+
active: $,
|
|
1180
|
+
over: _
|
|
1181
|
+
} = k;
|
|
1182
|
+
if (!_ || $.id === _.id)
|
|
1183
|
+
return;
|
|
1184
|
+
const G = de(String($.id)), m = de(String(_.id));
|
|
1185
|
+
if (!G || G.kind !== m?.kind)
|
|
1186
|
+
return;
|
|
1187
|
+
const z = X(r).getState();
|
|
1188
|
+
if (G.kind === "group") {
|
|
1189
|
+
const R = xe(z).findIndex((H) => H.id === m.id);
|
|
1190
|
+
R !== -1 && z.moveGroup(G.id, R);
|
|
1191
|
+
return;
|
|
1192
|
+
}
|
|
1193
|
+
const A = z.layers[G.id], D = z.layers[m.id];
|
|
1194
|
+
if (!A || !D || A.groupId !== D.groupId)
|
|
1195
|
+
return;
|
|
1196
|
+
const W = re(z, A.groupId).findIndex((R) => R.id === m.id);
|
|
1197
|
+
W !== -1 && z.moveLayer(G.id, W);
|
|
1198
|
+
}, e[10] = r, e[11] = C) : C = e[11];
|
|
1199
|
+
const L = C;
|
|
1200
|
+
let w;
|
|
1201
|
+
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = () => i(null), e[12] = w) : w = e[12];
|
|
1202
|
+
let x;
|
|
1203
|
+
e[13] !== o || e[14] !== a ? (x = /* @__PURE__ */ d(Ne, { items: a, strategy: Fe, children: o }), e[13] = o, e[14] = a, e[15] = x) : x = e[15];
|
|
1204
|
+
let I;
|
|
1205
|
+
e[16] !== l ? (I = l && /* @__PURE__ */ d(Io, { activeId: l }), e[16] = l, e[17] = I) : I = e[17];
|
|
1206
|
+
let S;
|
|
1207
|
+
e[18] !== I ? (S = /* @__PURE__ */ d(Nt, { children: I }), e[18] = I, e[19] = S) : S = e[19];
|
|
1208
|
+
let O;
|
|
1209
|
+
return e[20] !== h || e[21] !== L || e[22] !== b || e[23] !== y || e[24] !== S || e[25] !== x ? (O = /* @__PURE__ */ d(et.Provider, { value: !0, children: /* @__PURE__ */ P(Bt, { sensors: y, collisionDetection: h, onDragStart: b, onDragEnd: L, onDragCancel: w, children: [
|
|
1210
|
+
x,
|
|
1211
|
+
S
|
|
1212
|
+
] }) }), e[20] = h, e[21] = L, e[22] = b, e[23] = y, e[24] = S, e[25] = x, e[26] = O) : O = e[26], O;
|
|
1213
|
+
}
|
|
1214
|
+
function So(t) {
|
|
1215
|
+
return [...xe(t).map(wo), ...re(t, void 0).map(Co)];
|
|
1216
|
+
}
|
|
1217
|
+
function Co(t) {
|
|
1218
|
+
return Se("layer", t.id);
|
|
1219
|
+
}
|
|
1220
|
+
function wo(t) {
|
|
1221
|
+
return Se("group", t.id);
|
|
1222
|
+
}
|
|
1223
|
+
function Io(t) {
|
|
1224
|
+
const e = T(12), {
|
|
1225
|
+
activeId: o
|
|
1226
|
+
} = t, r = N();
|
|
1227
|
+
let l;
|
|
1228
|
+
e[0] !== o ? (l = de(o), e[0] = o, e[1] = l) : l = e[1];
|
|
1229
|
+
const i = l;
|
|
1230
|
+
let n;
|
|
1231
|
+
e[2] !== i ? (n = (u) => i ? i.kind === "group" ? u.groups[i.id]?.label : u.layers[i.id]?.name : void 0, e[2] = i, e[3] = n) : n = e[3];
|
|
1232
|
+
const a = j(r, n);
|
|
1233
|
+
if (!i || a === void 0)
|
|
1234
|
+
return null;
|
|
1235
|
+
let s;
|
|
1236
|
+
e[4] !== i.kind ? (s = i.kind === "group" && /* @__PURE__ */ d(M, { sx: le.overlayIcon, children: /* @__PURE__ */ d(Ve, { fontSize: "small" }) }), e[4] = i.kind, e[5] = s) : s = e[5];
|
|
1237
|
+
const c = i.kind === "group" ? "bold" : void 0;
|
|
1238
|
+
let p;
|
|
1239
|
+
e[6] !== a || e[7] !== c ? (p = /* @__PURE__ */ d(E, { variant: "button", fontWeight: c, color: "text.primary", sx: le.overlayLabel, children: a }), e[6] = a, e[7] = c, e[8] = p) : p = e[8];
|
|
1240
|
+
let f;
|
|
1241
|
+
return e[9] !== s || e[10] !== p ? (f = /* @__PURE__ */ P(M, { sx: le.overlay, children: [
|
|
1242
|
+
s,
|
|
1243
|
+
p
|
|
1244
|
+
] }), e[9] = s, e[10] = p, e[11] = f) : f = e[11], f;
|
|
1245
|
+
}
|
|
1246
|
+
const pe = {
|
|
1247
|
+
// Figma "Legend Opacity": a soft rounded bar between the row header and the
|
|
1248
|
+
// body — caption label + ✕ on the first line, slider + % input below.
|
|
1249
|
+
inline: {
|
|
1250
|
+
display: "flex",
|
|
1251
|
+
flexDirection: "column",
|
|
1252
|
+
gap: 0.5,
|
|
1253
|
+
borderRadius: 1
|
|
1254
|
+
},
|
|
1255
|
+
inlineHeader: {
|
|
1256
|
+
display: "flex",
|
|
1257
|
+
alignItems: "center",
|
|
1258
|
+
justifyContent: "space-between"
|
|
1259
|
+
},
|
|
1260
|
+
inlineControls: {
|
|
1261
|
+
display: "flex",
|
|
1262
|
+
alignItems: "center",
|
|
1263
|
+
gap: 1.5
|
|
583
1264
|
},
|
|
584
1265
|
slider: {
|
|
585
1266
|
flex: 1
|
|
586
1267
|
},
|
|
587
1268
|
// Wide enough for "100 %" — the value must never ellipsize.
|
|
588
1269
|
input: {
|
|
589
|
-
width:
|
|
1270
|
+
width: 68,
|
|
590
1271
|
flexShrink: 0,
|
|
591
1272
|
"& input": {
|
|
592
1273
|
textAlign: "right"
|
|
593
1274
|
}
|
|
594
1275
|
}
|
|
595
|
-
},
|
|
596
|
-
function
|
|
597
|
-
const t =
|
|
598
|
-
let
|
|
599
|
-
t[0] !==
|
|
600
|
-
const r =
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
labels: a
|
|
605
|
-
} = K();
|
|
606
|
-
if (!o || !p)
|
|
1276
|
+
}, Pe = (t) => Math.min(100, Math.max(0, Math.round(t)));
|
|
1277
|
+
function ko() {
|
|
1278
|
+
const t = T(10), e = N(), o = Q();
|
|
1279
|
+
let r;
|
|
1280
|
+
t[0] !== o ? (r = (p) => o ? p.layers[o.layerId] : void 0, t[0] = o, t[1] = r) : r = t[1];
|
|
1281
|
+
const l = Z(e, r), i = Z(e, $o), {
|
|
1282
|
+
labels: n
|
|
1283
|
+
} = B();
|
|
1284
|
+
if (!o || !l?.visible || !l.opacityControl)
|
|
607
1285
|
return null;
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
1286
|
+
let a;
|
|
1287
|
+
t[2] !== l || t[3] !== o || t[4] !== i ? (a = () => {
|
|
1288
|
+
const p = !o.opacityOpen;
|
|
1289
|
+
o.setOpacityOpen(p), p && l.collapsed && i(o.layerId, !1);
|
|
1290
|
+
}, t[2] = l, t[3] = o, t[4] = i, t[5] = a) : a = t[5];
|
|
1291
|
+
const s = a;
|
|
611
1292
|
let c;
|
|
612
|
-
t[6]
|
|
613
|
-
let g;
|
|
614
|
-
t[7] !== a.opacity || t[8] !== m ? (g = /* @__PURE__ */ s(de, { size: "small", onClick: m, "aria-label": a.opacity, children: c }), t[7] = a.opacity, t[8] = m, t[9] = g) : g = t[9];
|
|
615
|
-
let u;
|
|
616
|
-
t[10] !== f || t[11] !== g ? (u = /* @__PURE__ */ s(P, { component: "span", className: f, sx: fe.triggerWrap, children: g }), t[10] = f, t[11] = g, t[12] = u) : u = t[12];
|
|
617
|
-
let h;
|
|
618
|
-
return t[13] !== a.opacity || t[14] !== u ? (h = /* @__PURE__ */ s(we, { title: a.opacity, children: u }), t[13] = a.opacity, t[14] = u, t[15] = h) : h = t[15], h;
|
|
1293
|
+
return t[6] !== n.opacity || t[7] !== o.opacityOpen || t[8] !== s ? (c = /* @__PURE__ */ d(q, { selected: o.opacityOpen, onClick: s, children: n.opacity }), t[6] = n.opacity, t[7] = o.opacityOpen, t[8] = s, t[9] = c) : c = t[9], c;
|
|
619
1294
|
}
|
|
620
|
-
function
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
const
|
|
1295
|
+
function $o(t) {
|
|
1296
|
+
return t.setCollapsed;
|
|
1297
|
+
}
|
|
1298
|
+
function Oo() {
|
|
1299
|
+
const t = T(47), e = N(), o = Q(), r = o?.layerId;
|
|
625
1300
|
let l;
|
|
626
|
-
t[
|
|
627
|
-
const
|
|
628
|
-
labels:
|
|
629
|
-
} =
|
|
630
|
-
if (!o || !
|
|
1301
|
+
t[0] !== r ? (l = (H) => r ? H.layers[r]?.opacity ?? 1 : 1, t[0] = r, t[1] = l) : l = t[1];
|
|
1302
|
+
const i = j(e, l), n = j(e, Go), {
|
|
1303
|
+
labels: a
|
|
1304
|
+
} = B(), [s, c] = J(null), [p, f] = J(null);
|
|
1305
|
+
if (!o || !r || !o.opacityOpen)
|
|
631
1306
|
return null;
|
|
632
1307
|
let u;
|
|
633
|
-
t[
|
|
634
|
-
const
|
|
635
|
-
let
|
|
636
|
-
t[
|
|
637
|
-
const
|
|
638
|
-
return
|
|
639
|
-
}, t[
|
|
640
|
-
const
|
|
641
|
-
let
|
|
642
|
-
t[
|
|
643
|
-
if (
|
|
1308
|
+
t[2] !== s || t[3] !== i ? (u = s ?? Pe(i * 100), t[2] = s, t[3] = i, t[4] = u) : u = t[4];
|
|
1309
|
+
const y = u;
|
|
1310
|
+
let g;
|
|
1311
|
+
t[5] !== r || t[6] !== n ? (g = (H) => {
|
|
1312
|
+
const F = Pe(H);
|
|
1313
|
+
return n(r, F / 100), F;
|
|
1314
|
+
}, t[5] = r, t[6] = n, t[7] = g) : g = t[7];
|
|
1315
|
+
const h = g;
|
|
1316
|
+
let v;
|
|
1317
|
+
t[8] !== h ? (v = (H) => {
|
|
1318
|
+
if (f(H), H.trim() === "")
|
|
644
1319
|
return;
|
|
645
|
-
const
|
|
646
|
-
if (!Number.isFinite(
|
|
1320
|
+
const F = Number(H);
|
|
1321
|
+
if (!Number.isFinite(F))
|
|
647
1322
|
return;
|
|
648
|
-
const
|
|
649
|
-
|
|
650
|
-
}, t[
|
|
651
|
-
const
|
|
652
|
-
let
|
|
653
|
-
t[
|
|
654
|
-
o.setOpacityOpen(!1),
|
|
655
|
-
}, t[
|
|
656
|
-
const
|
|
657
|
-
let
|
|
658
|
-
t[
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
}, S = {
|
|
662
|
-
vertical: "top",
|
|
663
|
-
horizontal: "left"
|
|
664
|
-
}, t[14] = C, t[15] = S) : (C = t[14], S = t[15]);
|
|
665
|
-
const z = o.headerEl?.clientWidth;
|
|
666
|
-
let $;
|
|
667
|
-
t[16] !== z ? ($ = {
|
|
668
|
-
paper: {
|
|
669
|
-
sx: {
|
|
670
|
-
width: z
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
}, t[16] = z, t[17] = $) : $ = t[17];
|
|
674
|
-
let M;
|
|
675
|
-
t[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = (H, G) => {
|
|
676
|
-
m(G), g(null);
|
|
677
|
-
}, t[18] = M) : M = t[18];
|
|
1323
|
+
const se = h(F);
|
|
1324
|
+
se !== F && f(String(se));
|
|
1325
|
+
}, t[8] = h, t[9] = v) : v = t[9];
|
|
1326
|
+
const b = v;
|
|
1327
|
+
let C;
|
|
1328
|
+
t[10] !== o ? (C = () => {
|
|
1329
|
+
o.setOpacityOpen(!1), f(null), c(null);
|
|
1330
|
+
}, t[10] = o, t[11] = C) : C = t[11];
|
|
1331
|
+
const L = C;
|
|
1332
|
+
let w;
|
|
1333
|
+
t[12] !== a.opacity ? (w = /* @__PURE__ */ d(E, { variant: "caption", fontWeight: "medium", color: "text.primary", children: a.opacity }), t[12] = a.opacity, t[13] = w) : w = t[13];
|
|
1334
|
+
let x;
|
|
1335
|
+
t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ d(Pt, { fontSize: "small" }), t[14] = x) : x = t[14];
|
|
678
1336
|
let I;
|
|
679
|
-
t[
|
|
680
|
-
|
|
681
|
-
}, t[19] =
|
|
1337
|
+
t[15] !== L || t[16] !== a.close ? (I = /* @__PURE__ */ d(ve, { size: "small", onClick: L, "aria-label": a.close, children: x }), t[15] = L, t[16] = a.close, t[17] = I) : I = t[17];
|
|
1338
|
+
let S;
|
|
1339
|
+
t[18] !== a.close || t[19] !== I ? (S = /* @__PURE__ */ d(ie, { title: a.close, children: I }), t[18] = a.close, t[19] = I, t[20] = S) : S = t[20];
|
|
1340
|
+
let O;
|
|
1341
|
+
t[21] !== w || t[22] !== S ? (O = /* @__PURE__ */ P(M, { sx: pe.inlineHeader, children: [
|
|
1342
|
+
w,
|
|
1343
|
+
S
|
|
1344
|
+
] }), t[21] = w, t[22] = S, t[23] = O) : O = t[23];
|
|
1345
|
+
let k;
|
|
1346
|
+
t[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (H, F) => {
|
|
1347
|
+
c(F), f(null);
|
|
1348
|
+
}, t[24] = k) : k = t[24];
|
|
1349
|
+
let $;
|
|
1350
|
+
t[25] !== h ? ($ = (H, F) => {
|
|
1351
|
+
h(F), c(null);
|
|
1352
|
+
}, t[25] = h, t[26] = $) : $ = t[26];
|
|
682
1353
|
let _;
|
|
683
|
-
t[
|
|
684
|
-
const
|
|
685
|
-
let
|
|
686
|
-
t[
|
|
687
|
-
let
|
|
688
|
-
t[
|
|
689
|
-
let N;
|
|
690
|
-
t[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ s(lt, { position: "end", children: "%" }), t[28] = N) : N = t[28];
|
|
1354
|
+
t[27] !== a.opacity || t[28] !== y || t[29] !== $ ? (_ = /* @__PURE__ */ d(It, { size: "small", min: 0, max: 100, step: 1, value: y, onChange: k, onChangeCommitted: $, "aria-label": a.opacity, sx: pe.slider }), t[27] = a.opacity, t[28] = y, t[29] = $, t[30] = _) : _ = t[30];
|
|
1355
|
+
const G = p ?? String(y);
|
|
1356
|
+
let m;
|
|
1357
|
+
t[31] !== b ? (m = (H) => b(H.target.value), t[31] = b, t[32] = m) : m = t[32];
|
|
1358
|
+
let z;
|
|
1359
|
+
t[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = () => f(null), t[33] = z) : z = t[33];
|
|
691
1360
|
let A;
|
|
692
|
-
t[
|
|
1361
|
+
t[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ d(kt, { position: "end", children: "%" }), t[34] = A) : A = t[34];
|
|
1362
|
+
let D;
|
|
1363
|
+
t[35] !== a.opacity ? (D = {
|
|
693
1364
|
inputMode: "numeric",
|
|
694
|
-
"aria-label":
|
|
695
|
-
}, t[
|
|
696
|
-
let
|
|
697
|
-
t[
|
|
698
|
-
let B;
|
|
699
|
-
t[35] !== _ || t[36] !== F ? (B = /* @__PURE__ */ E(P, { sx: fe.popover, children: [
|
|
700
|
-
_,
|
|
701
|
-
F
|
|
702
|
-
] }), t[35] = _, t[36] = F, t[37] = B) : B = t[37];
|
|
1365
|
+
"aria-label": a.opacity
|
|
1366
|
+
}, t[35] = a.opacity, t[36] = D) : D = t[36];
|
|
1367
|
+
let V;
|
|
1368
|
+
t[37] !== G || t[38] !== m || t[39] !== D ? (V = /* @__PURE__ */ d($t, { size: "small", value: G, onChange: m, onBlur: z, onKeyDown: _o, endAdornment: A, inputProps: D, sx: pe.input }), t[37] = G, t[38] = m, t[39] = D, t[40] = V) : V = t[40];
|
|
703
1369
|
let W;
|
|
704
|
-
|
|
1370
|
+
t[41] !== _ || t[42] !== V ? (W = /* @__PURE__ */ P(M, { sx: pe.inlineControls, children: [
|
|
1371
|
+
_,
|
|
1372
|
+
V
|
|
1373
|
+
] }), t[41] = _, t[42] = V, t[43] = W) : W = t[43];
|
|
1374
|
+
let R;
|
|
1375
|
+
return t[44] !== W || t[45] !== O ? (R = /* @__PURE__ */ P(M, { sx: pe.inline, children: [
|
|
1376
|
+
O,
|
|
1377
|
+
W
|
|
1378
|
+
] }), t[44] = W, t[45] = O, t[46] = R) : R = t[46], R;
|
|
705
1379
|
}
|
|
706
|
-
function
|
|
1380
|
+
function _o(t) {
|
|
707
1381
|
t.key === "Enter" && t.target.blur();
|
|
708
1382
|
}
|
|
709
|
-
function
|
|
1383
|
+
function Go(t) {
|
|
710
1384
|
return t.setOpacity;
|
|
711
1385
|
}
|
|
712
|
-
const
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
},
|
|
1386
|
+
const zo = {
|
|
1387
|
+
Item: ko,
|
|
1388
|
+
Inline: Oo
|
|
1389
|
+
}, ne = {
|
|
716
1390
|
// Outlined-input look-alike trigger (the design's select has no floating
|
|
717
1391
|
// label — just the value + chevron in a 32px bordered field).
|
|
718
1392
|
trigger: {
|
|
@@ -764,63 +1438,63 @@ const Ot = {
|
|
|
764
1438
|
}
|
|
765
1439
|
}
|
|
766
1440
|
};
|
|
767
|
-
function
|
|
768
|
-
const t =
|
|
769
|
-
let
|
|
770
|
-
t[0] !==
|
|
771
|
-
const
|
|
772
|
-
labels:
|
|
773
|
-
} =
|
|
774
|
-
if (!
|
|
1441
|
+
function Mo() {
|
|
1442
|
+
const t = T(34), e = N(), r = Q()?.layerId;
|
|
1443
|
+
let l;
|
|
1444
|
+
t[0] !== r ? (l = (O) => r ? O.layers[r]?.sections : void 0, t[0] = r, t[1] = l) : l = t[1];
|
|
1445
|
+
const i = Z(e, l), n = Z(e, Po), {
|
|
1446
|
+
labels: a
|
|
1447
|
+
} = B(), [s, c] = J(null), p = !!s;
|
|
1448
|
+
if (!r || !i || i.length === 0)
|
|
775
1449
|
return null;
|
|
776
|
-
const
|
|
1450
|
+
const f = i[0].active, u = i.length > 1;
|
|
1451
|
+
let y;
|
|
1452
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = (O) => c(O.currentTarget), t[2] = y) : y = t[2];
|
|
777
1453
|
let g;
|
|
778
|
-
t[
|
|
779
|
-
let u;
|
|
780
|
-
t[3] !== m ? (u = /* @__PURE__ */ s(V, { variant: "body2", sx: le.value, children: m }), t[3] = m, t[4] = u) : u = t[4];
|
|
1454
|
+
t[3] !== f ? (g = /* @__PURE__ */ d(E, { variant: "body2", sx: ne.value, children: f }), t[3] = f, t[4] = g) : g = t[4];
|
|
781
1455
|
let h;
|
|
782
|
-
t[5] !==
|
|
783
|
-
...
|
|
784
|
-
...
|
|
785
|
-
} :
|
|
786
|
-
let
|
|
787
|
-
t[7] !== h ? (
|
|
788
|
-
let x;
|
|
789
|
-
t[9] !== p.attribute || t[10] !== f || t[11] !== u || t[12] !== y ? (x = /* @__PURE__ */ E(nt, { sx: le.trigger, onClick: g, "aria-label": p.attribute, "aria-haspopup": "listbox", "aria-expanded": f, children: [
|
|
790
|
-
u,
|
|
791
|
-
y
|
|
792
|
-
] }), t[9] = p.attribute, t[10] = f, t[11] = u, t[12] = y, t[13] = x) : x = t[13];
|
|
1456
|
+
t[5] !== p ? (h = p ? {
|
|
1457
|
+
...ne.chevron,
|
|
1458
|
+
...ne.chevronOpen
|
|
1459
|
+
} : ne.chevron, t[5] = p, t[6] = h) : h = t[6];
|
|
1460
|
+
let v;
|
|
1461
|
+
t[7] !== h ? (v = /* @__PURE__ */ d(At, { fontSize: "small", sx: h }), t[7] = h, t[8] = v) : v = t[8];
|
|
793
1462
|
let b;
|
|
794
|
-
t[
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
t[
|
|
1463
|
+
t[9] !== a.attribute || t[10] !== p || t[11] !== g || t[12] !== v ? (b = /* @__PURE__ */ P(Ot, { sx: ne.trigger, onClick: y, "aria-label": a.attribute, "aria-haspopup": "listbox", "aria-expanded": p, children: [
|
|
1464
|
+
g,
|
|
1465
|
+
v
|
|
1466
|
+
] }), t[9] = a.attribute, t[10] = p, t[11] = g, t[12] = v, t[13] = b) : b = t[13];
|
|
1467
|
+
let C;
|
|
1468
|
+
t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = () => c(null), t[14] = C) : C = t[14];
|
|
1469
|
+
const L = s?.clientWidth;
|
|
1470
|
+
let w;
|
|
1471
|
+
t[15] !== L ? (w = {
|
|
798
1472
|
paper: {
|
|
799
1473
|
sx: {
|
|
800
|
-
width:
|
|
1474
|
+
width: L
|
|
801
1475
|
}
|
|
802
1476
|
}
|
|
803
|
-
}, t[15] =
|
|
804
|
-
let
|
|
805
|
-
if (t[17] !==
|
|
806
|
-
let
|
|
807
|
-
t[22] !==
|
|
808
|
-
|
|
809
|
-
}, children: $ }, `${
|
|
1477
|
+
}, t[15] = L, t[16] = w) : w = t[16];
|
|
1478
|
+
let x;
|
|
1479
|
+
if (t[17] !== r || t[18] !== i || t[19] !== n || t[20] !== u) {
|
|
1480
|
+
let O;
|
|
1481
|
+
t[22] !== r || t[23] !== n || t[24] !== u ? (O = (k) => [u && k.title ? /* @__PURE__ */ d(E, { variant: "overline", color: "text.secondary", component: "li", sx: ne.sectionTitle, children: k.title }, `${k.id}-title`) : null, ...k.options.map(($) => /* @__PURE__ */ d(q, { selected: $ === k.active, sx: ne.option, onClick: () => {
|
|
1482
|
+
n(r, k.id, $), c(null);
|
|
1483
|
+
}, children: $ }, `${k.id}-${$}`))], t[22] = r, t[23] = n, t[24] = u, t[25] = O) : O = t[25], x = i.map(O), t[17] = r, t[18] = i, t[19] = n, t[20] = u, t[21] = x;
|
|
810
1484
|
} else
|
|
811
|
-
|
|
812
|
-
let
|
|
813
|
-
t[26] !==
|
|
814
|
-
let
|
|
815
|
-
return t[31] !==
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
] }), t[31] =
|
|
1485
|
+
x = t[21];
|
|
1486
|
+
let I;
|
|
1487
|
+
t[26] !== s || t[27] !== p || t[28] !== w || t[29] !== x ? (I = /* @__PURE__ */ d($e, { anchorEl: s, open: p, onClose: C, slotProps: w, children: x }), t[26] = s, t[27] = p, t[28] = w, t[29] = x, t[30] = I) : I = t[30];
|
|
1488
|
+
let S;
|
|
1489
|
+
return t[31] !== I || t[32] !== b ? (S = /* @__PURE__ */ P(he, { children: [
|
|
1490
|
+
b,
|
|
1491
|
+
I
|
|
1492
|
+
] }), t[31] = I, t[32] = b, t[33] = S) : S = t[33], S;
|
|
819
1493
|
}
|
|
820
|
-
function
|
|
1494
|
+
function Po(t) {
|
|
821
1495
|
return t.setSectionValue;
|
|
822
1496
|
}
|
|
823
|
-
const
|
|
1497
|
+
const te = {
|
|
824
1498
|
list: {
|
|
825
1499
|
display: "flex",
|
|
826
1500
|
flexDirection: "column",
|
|
@@ -880,8 +1554,8 @@ const J = {
|
|
|
880
1554
|
overflow: "visible",
|
|
881
1555
|
textOverflow: "clip"
|
|
882
1556
|
}
|
|
883
|
-
},
|
|
884
|
-
function
|
|
1557
|
+
}, _e = 12, ye = 1.5, it = 2, Ao = 1;
|
|
1558
|
+
function To(t) {
|
|
885
1559
|
switch (t) {
|
|
886
1560
|
case "dashed":
|
|
887
1561
|
return {
|
|
@@ -889,7 +1563,7 @@ function Dt(t) {
|
|
|
889
1563
|
};
|
|
890
1564
|
case "dotted":
|
|
891
1565
|
return {
|
|
892
|
-
dash: `0.1 ${
|
|
1566
|
+
dash: `0.1 ${ye * 2}`,
|
|
893
1567
|
round: !0
|
|
894
1568
|
};
|
|
895
1569
|
// `dash-dot` is line-only and `corners` is handled separately: both
|
|
@@ -898,7 +1572,7 @@ function Dt(t) {
|
|
|
898
1572
|
return {};
|
|
899
1573
|
}
|
|
900
1574
|
}
|
|
901
|
-
function
|
|
1575
|
+
function Do(t) {
|
|
902
1576
|
switch (t) {
|
|
903
1577
|
case "dashed":
|
|
904
1578
|
return {
|
|
@@ -906,7 +1580,7 @@ function Gt(t) {
|
|
|
906
1580
|
};
|
|
907
1581
|
case "dotted":
|
|
908
1582
|
return {
|
|
909
|
-
dash: `0.1 ${
|
|
1583
|
+
dash: `0.1 ${it * 2}`,
|
|
910
1584
|
round: !0
|
|
911
1585
|
};
|
|
912
1586
|
case "dash-dot":
|
|
@@ -919,8 +1593,8 @@ function Gt(t) {
|
|
|
919
1593
|
return {};
|
|
920
1594
|
}
|
|
921
1595
|
}
|
|
922
|
-
function
|
|
923
|
-
const o = (
|
|
1596
|
+
function Eo(t, e) {
|
|
1597
|
+
const o = (r) => /* @__PURE__ */ d("path", { d: r, stroke: e, strokeWidth: 1.2, fill: "none" });
|
|
924
1598
|
switch (t) {
|
|
925
1599
|
case "horizontal":
|
|
926
1600
|
return {
|
|
@@ -950,156 +1624,156 @@ function Vt(t, e) {
|
|
|
950
1624
|
case "dots":
|
|
951
1625
|
return {
|
|
952
1626
|
size: 4,
|
|
953
|
-
content: /* @__PURE__ */
|
|
1627
|
+
content: /* @__PURE__ */ d("circle", { cx: 2, cy: 2, r: 0.9, fill: e })
|
|
954
1628
|
};
|
|
955
1629
|
case "grid":
|
|
956
1630
|
return {
|
|
957
1631
|
size: 3,
|
|
958
|
-
content: /* @__PURE__ */
|
|
1632
|
+
content: /* @__PURE__ */ d("circle", { cx: 1.5, cy: 1.5, r: 0.7, fill: e })
|
|
959
1633
|
};
|
|
960
1634
|
default:
|
|
961
1635
|
return null;
|
|
962
1636
|
}
|
|
963
1637
|
}
|
|
964
|
-
function
|
|
965
|
-
const e =
|
|
1638
|
+
function rt(t) {
|
|
1639
|
+
const e = T(46), {
|
|
966
1640
|
shape: o,
|
|
967
|
-
color:
|
|
968
|
-
isStrokeColor:
|
|
969
|
-
fillPattern:
|
|
970
|
-
strokeStyle:
|
|
971
|
-
size:
|
|
972
|
-
} = t,
|
|
973
|
-
if (
|
|
974
|
-
let
|
|
975
|
-
e[0] !==
|
|
1641
|
+
color: r,
|
|
1642
|
+
isStrokeColor: l,
|
|
1643
|
+
fillPattern: i,
|
|
1644
|
+
strokeStyle: n,
|
|
1645
|
+
size: a
|
|
1646
|
+
} = t, s = o === void 0 ? "circle" : o, c = l === void 0 ? !1 : l, p = i === void 0 ? "solid" : i, f = n === void 0 ? "solid" : n, u = a === void 0 ? _e : a, y = gt();
|
|
1647
|
+
if (s === "line") {
|
|
1648
|
+
let V;
|
|
1649
|
+
e[0] !== f ? (V = Do(f), e[0] = f, e[1] = V) : V = e[1];
|
|
976
1650
|
const {
|
|
977
|
-
dash:
|
|
978
|
-
round:
|
|
979
|
-
} =
|
|
980
|
-
let
|
|
981
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1651
|
+
dash: W,
|
|
1652
|
+
round: R
|
|
1653
|
+
} = V, H = `0 0 ${u} ${u}`;
|
|
1654
|
+
let F;
|
|
1655
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = {
|
|
982
1656
|
display: "block",
|
|
983
1657
|
overflow: "visible"
|
|
984
|
-
}, e[2] =
|
|
985
|
-
const
|
|
986
|
-
let
|
|
987
|
-
e[3] !==
|
|
988
|
-
let
|
|
989
|
-
return e[10] !==
|
|
1658
|
+
}, e[2] = F) : F = e[2];
|
|
1659
|
+
const se = u / 2, Ce = u / 2, we = R ? "round" : "butt";
|
|
1660
|
+
let ae;
|
|
1661
|
+
e[3] !== r || e[4] !== W || e[5] !== u || e[6] !== Ce || e[7] !== we || e[8] !== se ? (ae = /* @__PURE__ */ d("line", { x1: 0, y1: se, x2: u, y2: Ce, stroke: r, strokeWidth: it, strokeDasharray: W, strokeLinecap: we }), e[3] = r, e[4] = W, e[5] = u, e[6] = Ce, e[7] = we, e[8] = se, e[9] = ae) : ae = e[9];
|
|
1662
|
+
let Le;
|
|
1663
|
+
return e[10] !== u || e[11] !== ae || e[12] !== H ? (Le = /* @__PURE__ */ d("svg", { width: u, height: u, viewBox: H, "aria-hidden": !0, "data-shape": "line", style: F, children: ae }), e[10] = u, e[11] = ae, e[12] = H, e[13] = Le) : Le = e[13], Le;
|
|
990
1664
|
}
|
|
991
|
-
const
|
|
992
|
-
let y;
|
|
993
|
-
e[14] !== n || e[15] !== f || e[16] !== h ? (y = h ? Vt(f, n) : null, e[14] = n, e[15] = f, e[16] = h, e[17] = y) : y = e[17];
|
|
994
|
-
const x = y, b = d && m === "corners" && a === "square";
|
|
1665
|
+
const g = c ? ye / 2 : 0, h = !c && p !== "solid";
|
|
995
1666
|
let v;
|
|
996
|
-
e[
|
|
1667
|
+
e[14] !== r || e[15] !== p || e[16] !== h ? (v = h ? Eo(p, r) : null, e[14] = r, e[15] = p, e[16] = h, e[17] = v) : v = e[17];
|
|
1668
|
+
const b = v, C = c && f === "corners" && s === "square";
|
|
1669
|
+
let L;
|
|
1670
|
+
e[18] !== c || e[19] !== f ? (L = c ? To(f) : {
|
|
997
1671
|
dash: void 0,
|
|
998
1672
|
round: !1
|
|
999
|
-
}, e[18] =
|
|
1673
|
+
}, e[18] = c, e[19] = f, e[20] = L) : L = e[20];
|
|
1000
1674
|
const {
|
|
1001
|
-
dash:
|
|
1002
|
-
round:
|
|
1003
|
-
} =
|
|
1004
|
-
let
|
|
1005
|
-
e[21] !==
|
|
1006
|
-
stroke:
|
|
1007
|
-
strokeWidth:
|
|
1008
|
-
strokeDasharray:
|
|
1009
|
-
strokeLinecap:
|
|
1010
|
-
}, e[21] =
|
|
1011
|
-
const $ =
|
|
1012
|
-
let
|
|
1013
|
-
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1675
|
+
dash: w,
|
|
1676
|
+
round: x
|
|
1677
|
+
} = L, I = c ? ye : Ao, S = c ? w : void 0, O = x ? "round" : "butt";
|
|
1678
|
+
let k;
|
|
1679
|
+
e[21] !== r || e[22] !== O || e[23] !== I || e[24] !== S ? (k = {
|
|
1680
|
+
stroke: r,
|
|
1681
|
+
strokeWidth: I,
|
|
1682
|
+
strokeDasharray: S,
|
|
1683
|
+
strokeLinecap: O
|
|
1684
|
+
}, e[21] = r, e[22] = O, e[23] = I, e[24] = S, e[25] = k) : k = e[25];
|
|
1685
|
+
const $ = k, _ = c ? "none" : h ? `url(#${y})` : r, G = `0 0 ${u} ${u}`;
|
|
1686
|
+
let m;
|
|
1687
|
+
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
|
|
1014
1688
|
display: "block"
|
|
1015
|
-
}, e[26] =
|
|
1016
|
-
let
|
|
1017
|
-
e[27] !==
|
|
1018
|
-
let
|
|
1019
|
-
e[30] !==
|
|
1689
|
+
}, e[26] = m) : m = e[26];
|
|
1690
|
+
let z;
|
|
1691
|
+
e[27] !== y || e[28] !== b ? (z = b && /* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("pattern", { id: y, patternUnits: "userSpaceOnUse", width: b.size, height: b.size, children: b.content }) }), e[27] = y, e[28] = b, e[29] = z) : z = e[29];
|
|
1692
|
+
let A;
|
|
1693
|
+
e[30] !== r || e[31] !== $ || e[32] !== _ || e[33] !== g || e[34] !== C || e[35] !== c || e[36] !== s || e[37] !== u || e[38] !== h ? (A = C ? /* @__PURE__ */ d(Ho, { size: u, color: r }) : s === "circle" ? /* @__PURE__ */ d("circle", { cx: u / 2, cy: u / 2, r: u / 2 - g, fill: _, ...$, stroke: c || h ? r : "none" }) : /* @__PURE__ */ d("rect", { x: g, y: g, width: u - g * 2, height: u - g * 2, fill: _, ...$, stroke: c || h ? r : "none" }), e[30] = r, e[31] = $, e[32] = _, e[33] = g, e[34] = C, e[35] = c, e[36] = s, e[37] = u, e[38] = h, e[39] = A) : A = e[39];
|
|
1020
1694
|
let D;
|
|
1021
|
-
return e[40] !==
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
] }), e[40] =
|
|
1695
|
+
return e[40] !== s || e[41] !== u || e[42] !== G || e[43] !== z || e[44] !== A ? (D = /* @__PURE__ */ P("svg", { width: u, height: u, viewBox: G, "aria-hidden": !0, "data-shape": s, style: m, children: [
|
|
1696
|
+
z,
|
|
1697
|
+
A
|
|
1698
|
+
] }), e[40] = s, e[41] = u, e[42] = G, e[43] = z, e[44] = A, e[45] = D) : D = e[45], D;
|
|
1025
1699
|
}
|
|
1026
|
-
function
|
|
1027
|
-
const e =
|
|
1700
|
+
function Ho(t) {
|
|
1701
|
+
const e = T(19), {
|
|
1028
1702
|
size: o,
|
|
1029
|
-
color:
|
|
1030
|
-
} = t,
|
|
1031
|
-
let
|
|
1032
|
-
e[0] !==
|
|
1033
|
-
stroke:
|
|
1034
|
-
strokeWidth:
|
|
1703
|
+
color: r
|
|
1704
|
+
} = t, l = Math.max(2, o * 0.3), i = ye / 2, n = o - i;
|
|
1705
|
+
let a;
|
|
1706
|
+
e[0] !== r ? (a = {
|
|
1707
|
+
stroke: r,
|
|
1708
|
+
strokeWidth: ye,
|
|
1035
1709
|
fill: "none"
|
|
1036
|
-
}, e[0] =
|
|
1037
|
-
const
|
|
1038
|
-
let
|
|
1039
|
-
e[2] !==
|
|
1040
|
-
const
|
|
1041
|
-
let c;
|
|
1042
|
-
e[5] !== a || e[6] !== m ? (c = /* @__PURE__ */ s("path", { d: m, ...a }), e[5] = a, e[6] = m, e[7] = c) : c = e[7];
|
|
1043
|
-
const g = `M${l} ${l - i} V${l} H${l - i}`;
|
|
1710
|
+
}, e[0] = r, e[1] = a) : a = e[1];
|
|
1711
|
+
const s = a, c = `M${i} ${i + l} V${i} H${i + l}`;
|
|
1712
|
+
let p;
|
|
1713
|
+
e[2] !== s || e[3] !== c ? (p = /* @__PURE__ */ d("path", { d: c, ...s }), e[2] = s, e[3] = c, e[4] = p) : p = e[4];
|
|
1714
|
+
const f = `M${n - l} ${i} H${n} V${i + l}`;
|
|
1044
1715
|
let u;
|
|
1045
|
-
e[
|
|
1046
|
-
const
|
|
1047
|
-
let
|
|
1048
|
-
e[
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1716
|
+
e[5] !== s || e[6] !== f ? (u = /* @__PURE__ */ d("path", { d: f, ...s }), e[5] = s, e[6] = f, e[7] = u) : u = e[7];
|
|
1717
|
+
const y = `M${n} ${n - l} V${n} H${n - l}`;
|
|
1718
|
+
let g;
|
|
1719
|
+
e[8] !== s || e[9] !== y ? (g = /* @__PURE__ */ d("path", { d: y, ...s }), e[8] = s, e[9] = y, e[10] = g) : g = e[10];
|
|
1720
|
+
const h = `M${i + l} ${n} H${i} V${n - l}`;
|
|
1721
|
+
let v;
|
|
1722
|
+
e[11] !== s || e[12] !== h ? (v = /* @__PURE__ */ d("path", { d: h, ...s }), e[11] = s, e[12] = h, e[13] = v) : v = e[13];
|
|
1723
|
+
let b;
|
|
1724
|
+
return e[14] !== p || e[15] !== u || e[16] !== g || e[17] !== v ? (b = /* @__PURE__ */ P(he, { children: [
|
|
1725
|
+
p,
|
|
1053
1726
|
u,
|
|
1054
|
-
|
|
1055
|
-
|
|
1727
|
+
g,
|
|
1728
|
+
v
|
|
1729
|
+
] }), e[14] = p, e[15] = u, e[16] = g, e[17] = v, e[18] = b) : b = e[18], b;
|
|
1056
1730
|
}
|
|
1057
|
-
const
|
|
1058
|
-
function
|
|
1059
|
-
const e =
|
|
1731
|
+
const Ro = 16;
|
|
1732
|
+
function st(t) {
|
|
1733
|
+
const e = T(23), {
|
|
1060
1734
|
data: o
|
|
1061
1735
|
} = t, {
|
|
1062
|
-
items:
|
|
1063
|
-
shape:
|
|
1064
|
-
isStrokeColor:
|
|
1065
|
-
fillPattern:
|
|
1066
|
-
strokeStyle:
|
|
1067
|
-
orientation:
|
|
1068
|
-
} = o,
|
|
1736
|
+
items: r,
|
|
1737
|
+
shape: l,
|
|
1738
|
+
isStrokeColor: i,
|
|
1739
|
+
fillPattern: n,
|
|
1740
|
+
strokeStyle: a,
|
|
1741
|
+
orientation: s
|
|
1742
|
+
} = o, c = l === void 0 ? "circle" : l, p = i === void 0 ? !1 : i, f = n === void 0 ? "solid" : n, u = a === void 0 ? "solid" : a, y = s === void 0 ? "vertical" : s, g = y === "horizontal";
|
|
1069
1743
|
let h;
|
|
1070
|
-
e[0] !==
|
|
1071
|
-
const
|
|
1072
|
-
let v;
|
|
1073
|
-
e[2] !== b ? (v = {
|
|
1074
|
-
...J.list,
|
|
1075
|
-
...b
|
|
1076
|
-
}, e[2] = b, e[3] = v) : v = e[3];
|
|
1744
|
+
e[0] !== r ? (h = r.reduce(Vo, 0), e[0] = r, e[1] = h) : h = e[1];
|
|
1745
|
+
const b = Math.max(Ro, h), C = g ? te.listHorizontal : null;
|
|
1077
1746
|
let L;
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1747
|
+
e[2] !== C ? (L = {
|
|
1748
|
+
...te.list,
|
|
1749
|
+
...C
|
|
1750
|
+
}, e[2] = C, e[3] = L) : L = e[3];
|
|
1751
|
+
let w;
|
|
1752
|
+
if (e[4] !== f || e[5] !== b || e[6] !== g || e[7] !== p || e[8] !== r || e[9] !== c || e[10] !== u) {
|
|
1753
|
+
let I;
|
|
1754
|
+
e[12] !== f || e[13] !== b || e[14] !== g || e[15] !== p || e[16] !== c || e[17] !== u ? (I = (S, O) => /* @__PURE__ */ P(M, { sx: {
|
|
1755
|
+
...te.item,
|
|
1756
|
+
...g ? te.itemHorizontal : null
|
|
1083
1757
|
}, children: [
|
|
1084
|
-
/* @__PURE__ */
|
|
1085
|
-
...
|
|
1086
|
-
width:
|
|
1087
|
-
}, children: /* @__PURE__ */
|
|
1088
|
-
/* @__PURE__ */
|
|
1089
|
-
...
|
|
1090
|
-
...
|
|
1091
|
-
}, children:
|
|
1092
|
-
|
|
1093
|
-
] }, `${
|
|
1758
|
+
/* @__PURE__ */ d(M, { sx: {
|
|
1759
|
+
...te.gutter,
|
|
1760
|
+
width: g ? void 0 : b
|
|
1761
|
+
}, children: /* @__PURE__ */ d(rt, { shape: S.shape ?? c, color: S.color, isStrokeColor: S.isStrokeColor ?? p, fillPattern: S.fillPattern ?? f, strokeStyle: S.strokeStyle ?? u, size: S.size ?? _e }) }),
|
|
1762
|
+
/* @__PURE__ */ d(E, { variant: "caption", color: "text.primary", sx: {
|
|
1763
|
+
...te.label,
|
|
1764
|
+
...g ? te.labelHorizontal : null
|
|
1765
|
+
}, children: S.label }),
|
|
1766
|
+
S.value != null && /* @__PURE__ */ d(E, { className: "PsLegend-value", variant: "caption", color: "text.secondary", sx: te.value, children: S.value })
|
|
1767
|
+
] }, `${S.label}-${O}`), e[12] = f, e[13] = b, e[14] = g, e[15] = p, e[16] = c, e[17] = u, e[18] = I) : I = e[18], w = r.map(I), e[4] = f, e[5] = b, e[6] = g, e[7] = p, e[8] = r, e[9] = c, e[10] = u, e[11] = w;
|
|
1094
1768
|
} else
|
|
1095
|
-
|
|
1096
|
-
let
|
|
1097
|
-
return e[19] !==
|
|
1769
|
+
w = e[11];
|
|
1770
|
+
let x;
|
|
1771
|
+
return e[19] !== y || e[20] !== L || e[21] !== w ? (x = /* @__PURE__ */ d(M, { "data-orientation": y, sx: L, children: w }), e[19] = y, e[20] = L, e[21] = w, e[22] = x) : x = e[22], x;
|
|
1098
1772
|
}
|
|
1099
|
-
function
|
|
1100
|
-
return Math.max(t, e.size ??
|
|
1773
|
+
function Vo(t, e) {
|
|
1774
|
+
return Math.max(t, e.size ?? _e);
|
|
1101
1775
|
}
|
|
1102
|
-
const
|
|
1776
|
+
const K = {
|
|
1103
1777
|
container: {
|
|
1104
1778
|
display: "flex",
|
|
1105
1779
|
flexDirection: "column",
|
|
@@ -1159,97 +1833,97 @@ const U = {
|
|
|
1159
1833
|
whiteSpace: "nowrap"
|
|
1160
1834
|
}
|
|
1161
1835
|
};
|
|
1162
|
-
function
|
|
1836
|
+
function Bo(t) {
|
|
1163
1837
|
const {
|
|
1164
1838
|
avg: e,
|
|
1165
1839
|
stops: o
|
|
1166
1840
|
} = t;
|
|
1167
1841
|
if (e == null || o.length < 2) return null;
|
|
1168
|
-
const
|
|
1169
|
-
if (
|
|
1170
|
-
const
|
|
1171
|
-
return Math.min(100, Math.max(0,
|
|
1842
|
+
const r = o[0].value, l = o[o.length - 1].value;
|
|
1843
|
+
if (r === l) return null;
|
|
1844
|
+
const i = (e - r) / (l - r) * 100;
|
|
1845
|
+
return Math.min(100, Math.max(0, i));
|
|
1172
1846
|
}
|
|
1173
|
-
function
|
|
1174
|
-
const e =
|
|
1847
|
+
function at(t) {
|
|
1848
|
+
const e = T(40), {
|
|
1175
1849
|
data: o,
|
|
1176
|
-
labels:
|
|
1177
|
-
} = t,
|
|
1178
|
-
colors:
|
|
1179
|
-
stops:
|
|
1180
|
-
isContinuous:
|
|
1181
|
-
attribute:
|
|
1182
|
-
formatValue:
|
|
1183
|
-
} = o,
|
|
1184
|
-
let
|
|
1185
|
-
e[0] !== o ? (
|
|
1186
|
-
const
|
|
1850
|
+
labels: r
|
|
1851
|
+
} = t, l = r === void 0 ? ge : r, {
|
|
1852
|
+
colors: i,
|
|
1853
|
+
stops: n,
|
|
1854
|
+
isContinuous: a,
|
|
1855
|
+
attribute: s,
|
|
1856
|
+
formatValue: c
|
|
1857
|
+
} = o, p = c === void 0 ? String : c;
|
|
1858
|
+
let f;
|
|
1859
|
+
e[0] !== o ? (f = Bo(o), e[0] = o, e[1] = f) : f = e[1];
|
|
1860
|
+
const u = f, y = n[0], g = n[n.length - 1];
|
|
1187
1861
|
let h;
|
|
1188
|
-
e[2] !==
|
|
1189
|
-
const
|
|
1190
|
-
let
|
|
1191
|
-
e[4] !==
|
|
1192
|
-
const
|
|
1193
|
-
let
|
|
1194
|
-
e[6] !==
|
|
1195
|
-
/* @__PURE__ */
|
|
1196
|
-
/* @__PURE__ */
|
|
1197
|
-
] }), e[6] =
|
|
1198
|
-
const
|
|
1199
|
-
if (
|
|
1200
|
-
let
|
|
1201
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1202
|
-
const
|
|
1203
|
-
let
|
|
1204
|
-
e[10] !==
|
|
1205
|
-
|
|
1206
|
-
/* @__PURE__ */
|
|
1207
|
-
] }), e[10] =
|
|
1862
|
+
e[2] !== i ? (h = i.join(", "), e[2] = i, e[3] = h) : h = e[3];
|
|
1863
|
+
const v = `linear-gradient(90deg, ${h})`, b = !a && n.length === i.length + 1, C = !a && !b;
|
|
1864
|
+
let L;
|
|
1865
|
+
e[4] !== n ? (L = (m) => `${n[m]?.label ?? ""} – ${n[m + 1]?.label ?? ""}`, e[4] = n, e[5] = L) : L = e[5];
|
|
1866
|
+
const w = L;
|
|
1867
|
+
let x;
|
|
1868
|
+
e[6] !== s || e[7] !== l ? (x = s && /* @__PURE__ */ P(M, { sx: K.attribute, children: [
|
|
1869
|
+
/* @__PURE__ */ d(E, { variant: "overline", color: "text.secondary", children: l.colorBasedOn }),
|
|
1870
|
+
/* @__PURE__ */ d(E, { variant: "caption", color: "text.primary", children: s })
|
|
1871
|
+
] }), e[6] = s, e[7] = l, e[8] = x) : x = e[8];
|
|
1872
|
+
const I = x;
|
|
1873
|
+
if (C) {
|
|
1874
|
+
let m;
|
|
1875
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ d(Tt, { fontSize: "small" }), e[9] = m) : m = e[9];
|
|
1876
|
+
const z = `Discrete ramp needs ${i.length + 1} stops (one per color boundary) but got ${n.length}.`;
|
|
1877
|
+
let A;
|
|
1878
|
+
e[10] !== z ? (A = /* @__PURE__ */ P(M, { sx: K.error, children: [
|
|
1879
|
+
m,
|
|
1880
|
+
/* @__PURE__ */ d(E, { variant: "caption", color: "error", children: z })
|
|
1881
|
+
] }), e[10] = z, e[11] = A) : A = e[11];
|
|
1208
1882
|
let D;
|
|
1209
|
-
return e[12] !==
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
] }), e[12] =
|
|
1883
|
+
return e[12] !== I || e[13] !== A ? (D = /* @__PURE__ */ P(M, { sx: K.container, children: [
|
|
1884
|
+
I,
|
|
1885
|
+
A
|
|
1886
|
+
] }), e[12] = I, e[13] = A, e[14] = D) : D = e[14], D;
|
|
1213
1887
|
}
|
|
1214
|
-
let
|
|
1215
|
-
e[15] !==
|
|
1888
|
+
let S;
|
|
1889
|
+
e[15] !== i || e[16] !== v || e[17] !== a || e[18] !== l || e[19] !== w ? (S = a ? /* @__PURE__ */ d(M, { role: "img", "aria-label": l.colorGradient, sx: {
|
|
1216
1890
|
width: "100%",
|
|
1217
1891
|
height: "100%",
|
|
1218
|
-
background:
|
|
1219
|
-
} }) :
|
|
1220
|
-
...
|
|
1221
|
-
backgroundColor:
|
|
1222
|
-
} },
|
|
1223
|
-
let
|
|
1224
|
-
e[21] !==
|
|
1225
|
-
let
|
|
1226
|
-
e[23] !==
|
|
1227
|
-
left: `${
|
|
1228
|
-
} }) }), e[23] =
|
|
1892
|
+
background: v
|
|
1893
|
+
} }) : i.map((m, z) => /* @__PURE__ */ d(M, { role: "img", "aria-label": w(z), sx: {
|
|
1894
|
+
...K.step,
|
|
1895
|
+
backgroundColor: m
|
|
1896
|
+
} }, z)), e[15] = i, e[16] = v, e[17] = a, e[18] = l, e[19] = w, e[20] = S) : S = e[20];
|
|
1897
|
+
let O;
|
|
1898
|
+
e[21] !== S ? (O = /* @__PURE__ */ d(M, { sx: K.bar, children: S }), e[21] = S, e[22] = O) : O = e[22];
|
|
1899
|
+
let k;
|
|
1900
|
+
e[23] !== u || e[24] !== o.avg || e[25] !== p ? (k = u != null && o.avg != null && /* @__PURE__ */ d(ie, { title: p(o.avg), placement: "top", arrow: !0, children: /* @__PURE__ */ d(M, { sx: K.avgLine, style: {
|
|
1901
|
+
left: `${u}%`
|
|
1902
|
+
} }) }), e[23] = u, e[24] = o.avg, e[25] = p, e[26] = k) : k = e[26];
|
|
1229
1903
|
let $;
|
|
1230
|
-
e[27] !==
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
] }), e[27] =
|
|
1234
|
-
let
|
|
1235
|
-
e[30] !==
|
|
1236
|
-
const
|
|
1237
|
-
return /* @__PURE__ */
|
|
1238
|
-
left: `${
|
|
1904
|
+
e[27] !== O || e[28] !== k ? ($ = /* @__PURE__ */ P(M, { sx: K.barWrap, children: [
|
|
1905
|
+
O,
|
|
1906
|
+
k
|
|
1907
|
+
] }), e[27] = O, e[28] = k, e[29] = $) : $ = e[29];
|
|
1908
|
+
let _;
|
|
1909
|
+
e[30] !== i.length || e[31] !== y?.label || e[32] !== b || e[33] !== g?.label || e[34] !== n ? (_ = b ? /* @__PURE__ */ d(M, { sx: K.boundaryLabels, children: n.map((m, z) => {
|
|
1910
|
+
const A = z === n.length - 1, D = z === 0 ? void 0 : A ? "translateX(-100%)" : "translateX(-50%)";
|
|
1911
|
+
return /* @__PURE__ */ d(E, { variant: "overline", color: "text.secondary", sx: K.boundaryLabel, style: {
|
|
1912
|
+
left: `${z / i.length * 100}%`,
|
|
1239
1913
|
transform: D
|
|
1240
|
-
}, children:
|
|
1241
|
-
}) }) : /* @__PURE__ */
|
|
1242
|
-
/* @__PURE__ */
|
|
1243
|
-
/* @__PURE__ */
|
|
1244
|
-
] }), e[30] =
|
|
1245
|
-
let
|
|
1246
|
-
return e[36] !==
|
|
1247
|
-
|
|
1914
|
+
}, children: m.label }, `${m.label}-${z}`);
|
|
1915
|
+
}) }) : /* @__PURE__ */ P(M, { sx: K.labels, children: [
|
|
1916
|
+
/* @__PURE__ */ d(E, { variant: "overline", color: "text.secondary", children: y?.label }),
|
|
1917
|
+
/* @__PURE__ */ d(E, { variant: "overline", color: "text.secondary", children: g?.label })
|
|
1918
|
+
] }), e[30] = i.length, e[31] = y?.label, e[32] = b, e[33] = g?.label, e[34] = n, e[35] = _) : _ = e[35];
|
|
1919
|
+
let G;
|
|
1920
|
+
return e[36] !== I || e[37] !== $ || e[38] !== _ ? (G = /* @__PURE__ */ P(M, { sx: K.container, children: [
|
|
1921
|
+
I,
|
|
1248
1922
|
$,
|
|
1249
|
-
|
|
1250
|
-
] }), e[36] =
|
|
1923
|
+
_
|
|
1924
|
+
] }), e[36] = I, e[37] = $, e[38] = _, e[39] = G) : G = e[39], G;
|
|
1251
1925
|
}
|
|
1252
|
-
const
|
|
1926
|
+
const ce = {
|
|
1253
1927
|
root: {
|
|
1254
1928
|
display: "flex",
|
|
1255
1929
|
flexDirection: "column",
|
|
@@ -1289,89 +1963,89 @@ const ne = {
|
|
|
1289
1963
|
flexDirection: "column",
|
|
1290
1964
|
justifyContent: "space-between"
|
|
1291
1965
|
}
|
|
1292
|
-
},
|
|
1293
|
-
function
|
|
1294
|
-
const e = (t.stops ?? []).filter((
|
|
1295
|
-
if (e.length >=
|
|
1296
|
-
return e.sort((
|
|
1966
|
+
}, fe = 72, Wo = 0.3, Ae = 2, Ie = 4;
|
|
1967
|
+
function No(t) {
|
|
1968
|
+
const e = (t.stops ?? []).filter((i) => Number.isFinite(i));
|
|
1969
|
+
if (e.length >= Ae)
|
|
1970
|
+
return e.sort((i, n) => n - i).slice(0, Ie);
|
|
1297
1971
|
const {
|
|
1298
1972
|
min: o,
|
|
1299
|
-
max:
|
|
1973
|
+
max: r
|
|
1300
1974
|
} = t;
|
|
1301
|
-
if (o ===
|
|
1302
|
-
const
|
|
1975
|
+
if (o === r) return [r];
|
|
1976
|
+
const l = Math.min(Ie, Math.max(Ae, t.steps ?? Ie));
|
|
1303
1977
|
return Array.from({
|
|
1304
|
-
length:
|
|
1305
|
-
}, (
|
|
1978
|
+
length: l
|
|
1979
|
+
}, (i, n) => r - (r - o) * n / (l - 1));
|
|
1306
1980
|
}
|
|
1307
|
-
function
|
|
1308
|
-
if (e <= 1) return
|
|
1309
|
-
const o = 1 - (1 -
|
|
1310
|
-
return
|
|
1981
|
+
function Fo(t, e) {
|
|
1982
|
+
if (e <= 1) return fe;
|
|
1983
|
+
const o = 1 - (1 - Wo) * (t / (e - 1));
|
|
1984
|
+
return fe * o;
|
|
1311
1985
|
}
|
|
1312
|
-
function
|
|
1313
|
-
const e =
|
|
1986
|
+
function ct(t) {
|
|
1987
|
+
const e = T(40), {
|
|
1314
1988
|
data: o,
|
|
1315
|
-
labels:
|
|
1316
|
-
} = t,
|
|
1317
|
-
attribute:
|
|
1318
|
-
formatValue:
|
|
1319
|
-
} = o,
|
|
1320
|
-
let
|
|
1321
|
-
if (e[0] !==
|
|
1322
|
-
const
|
|
1989
|
+
labels: r
|
|
1990
|
+
} = t, l = r === void 0 ? ge : r, {
|
|
1991
|
+
attribute: i,
|
|
1992
|
+
formatValue: n
|
|
1993
|
+
} = o, a = n === void 0 ? String : n;
|
|
1994
|
+
let s, c, p, f, u, y, g, h, v;
|
|
1995
|
+
if (e[0] !== i || e[1] !== o || e[2] !== a || e[3] !== l) {
|
|
1996
|
+
const w = No(o), x = w.length;
|
|
1997
|
+
let I;
|
|
1998
|
+
e[13] !== a || e[14] !== l || e[15] !== x ? (I = (_, G) => {
|
|
1999
|
+
const m = a(_);
|
|
2000
|
+
return x <= 1 ? m : G === 0 ? /* @__PURE__ */ P(he, { children: [
|
|
2001
|
+
l.maxPrefix,
|
|
2002
|
+
m
|
|
2003
|
+
] }) : G === x - 1 ? /* @__PURE__ */ P(he, { children: [
|
|
2004
|
+
l.minPrefix,
|
|
2005
|
+
m
|
|
2006
|
+
] }) : m;
|
|
2007
|
+
}, e[13] = a, e[14] = l, e[15] = x, e[16] = I) : I = e[16];
|
|
2008
|
+
const S = I;
|
|
2009
|
+
p = M, h = ce.root, e[17] !== i || e[18] !== l ? (v = i && /* @__PURE__ */ P(M, { sx: ce.attribute, children: [
|
|
2010
|
+
/* @__PURE__ */ d(E, { variant: "overline", color: "text.secondary", children: l.radiusRangeBy }),
|
|
2011
|
+
/* @__PURE__ */ d(E, { variant: "caption", color: "text.primary", children: i })
|
|
2012
|
+
] }), e[17] = i, e[18] = l, e[19] = v) : v = e[19], c = M, y = ce.body;
|
|
2013
|
+
let O;
|
|
2014
|
+
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = {
|
|
2015
|
+
...ce.circles,
|
|
2016
|
+
width: fe,
|
|
2017
|
+
height: fe
|
|
2018
|
+
}, e[20] = O) : O = e[20];
|
|
1323
2019
|
let k;
|
|
1324
|
-
e[
|
|
1325
|
-
const
|
|
1326
|
-
return
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
f = P, h = ne.root, e[17] !== r || e[18] !== i ? (y = r && /* @__PURE__ */ E(P, { sx: ne.attribute, children: [
|
|
1336
|
-
/* @__PURE__ */ s(V, { variant: "overline", color: "text.secondary", children: i.radiusRangeBy }),
|
|
1337
|
-
/* @__PURE__ */ s(V, { variant: "caption", color: "text.primary", children: r })
|
|
1338
|
-
] }), e[17] = r, e[18] = i, e[19] = y) : y = e[19], d = P, g = ne.body;
|
|
1339
|
-
let S;
|
|
1340
|
-
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
|
|
1341
|
-
...ne.circles,
|
|
1342
|
-
width: re,
|
|
1343
|
-
height: re
|
|
1344
|
-
}, e[20] = S) : S = e[20];
|
|
1345
|
-
let z;
|
|
1346
|
-
e[21] !== w ? (z = (M, I) => {
|
|
1347
|
-
const _ = Ut(I, w);
|
|
1348
|
-
return /* @__PURE__ */ s(P, { "aria-hidden": !0, sx: {
|
|
1349
|
-
...ne.circle,
|
|
1350
|
-
width: _,
|
|
1351
|
-
height: _
|
|
1352
|
-
} }, I);
|
|
1353
|
-
}, e[21] = w, e[22] = z) : z = e[22], u = /* @__PURE__ */ s(P, { sx: S, children: L.map(z) }), a = P, e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
|
|
1354
|
-
...ne.labels,
|
|
1355
|
-
height: re
|
|
1356
|
-
}, e[23] = m) : m = e[23];
|
|
2020
|
+
e[21] !== x ? (k = (_, G) => {
|
|
2021
|
+
const m = Fo(G, x);
|
|
2022
|
+
return /* @__PURE__ */ d(M, { "aria-hidden": !0, sx: {
|
|
2023
|
+
...ce.circle,
|
|
2024
|
+
width: m,
|
|
2025
|
+
height: m
|
|
2026
|
+
} }, G);
|
|
2027
|
+
}, e[21] = x, e[22] = k) : k = e[22], g = /* @__PURE__ */ d(M, { sx: O, children: w.map(k) }), s = M, e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
|
|
2028
|
+
...ce.labels,
|
|
2029
|
+
height: fe
|
|
2030
|
+
}, e[23] = f) : f = e[23];
|
|
1357
2031
|
let $;
|
|
1358
|
-
e[24] !==
|
|
2032
|
+
e[24] !== S ? ($ = (_, G) => /* @__PURE__ */ d(E, { variant: "caption", color: "text.secondary", children: S(_, G) }, G), e[24] = S, e[25] = $) : $ = e[25], u = w.map($), e[0] = i, e[1] = o, e[2] = a, e[3] = l, e[4] = s, e[5] = c, e[6] = p, e[7] = f, e[8] = u, e[9] = y, e[10] = g, e[11] = h, e[12] = v;
|
|
1359
2033
|
} else
|
|
1360
|
-
|
|
1361
|
-
let x;
|
|
1362
|
-
e[26] !== a || e[27] !== m || e[28] !== c ? (x = /* @__PURE__ */ s(a, { sx: m, children: c }), e[26] = a, e[27] = m, e[28] = c, e[29] = x) : x = e[29];
|
|
2034
|
+
s = e[4], c = e[5], p = e[6], f = e[7], u = e[8], y = e[9], g = e[10], h = e[11], v = e[12];
|
|
1363
2035
|
let b;
|
|
1364
|
-
e[
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
let v;
|
|
1369
|
-
return e[35] !== f || e[36] !== b || e[37] !== h || e[38] !== y ? (v = /* @__PURE__ */ E(f, { sx: h, children: [
|
|
1370
|
-
y,
|
|
2036
|
+
e[26] !== s || e[27] !== f || e[28] !== u ? (b = /* @__PURE__ */ d(s, { sx: f, children: u }), e[26] = s, e[27] = f, e[28] = u, e[29] = b) : b = e[29];
|
|
2037
|
+
let C;
|
|
2038
|
+
e[30] !== c || e[31] !== y || e[32] !== g || e[33] !== b ? (C = /* @__PURE__ */ P(c, { sx: y, children: [
|
|
2039
|
+
g,
|
|
1371
2040
|
b
|
|
1372
|
-
] }), e[
|
|
2041
|
+
] }), e[30] = c, e[31] = y, e[32] = g, e[33] = b, e[34] = C) : C = e[34];
|
|
2042
|
+
let L;
|
|
2043
|
+
return e[35] !== p || e[36] !== C || e[37] !== h || e[38] !== v ? (L = /* @__PURE__ */ P(p, { sx: h, children: [
|
|
2044
|
+
v,
|
|
2045
|
+
C
|
|
2046
|
+
] }), e[35] = p, e[36] = C, e[37] = h, e[38] = v, e[39] = L) : L = e[39], L;
|
|
1373
2047
|
}
|
|
1374
|
-
const
|
|
2048
|
+
const oe = {
|
|
1375
2049
|
list: {
|
|
1376
2050
|
display: "flex",
|
|
1377
2051
|
flexDirection: "column",
|
|
@@ -1427,61 +2101,61 @@ const Q = {
|
|
|
1427
2101
|
textOverflow: "clip"
|
|
1428
2102
|
}
|
|
1429
2103
|
};
|
|
1430
|
-
function
|
|
1431
|
-
const e =
|
|
2104
|
+
function dt(t) {
|
|
2105
|
+
const e = T(11), {
|
|
1432
2106
|
data: o
|
|
1433
|
-
} = t,
|
|
1434
|
-
let
|
|
1435
|
-
e[0] !==
|
|
1436
|
-
...
|
|
1437
|
-
...
|
|
1438
|
-
}, e[0] =
|
|
1439
|
-
let
|
|
1440
|
-
if (e[2] !== o.items || e[3] !==
|
|
1441
|
-
let
|
|
1442
|
-
e[5] !==
|
|
1443
|
-
...
|
|
1444
|
-
...
|
|
2107
|
+
} = t, r = o.orientation ?? "vertical", l = r === "horizontal", i = l ? oe.listHorizontal : null;
|
|
2108
|
+
let n;
|
|
2109
|
+
e[0] !== i ? (n = {
|
|
2110
|
+
...oe.list,
|
|
2111
|
+
...i
|
|
2112
|
+
}, e[0] = i, e[1] = n) : n = e[1];
|
|
2113
|
+
let a;
|
|
2114
|
+
if (e[2] !== o.items || e[3] !== l) {
|
|
2115
|
+
let c;
|
|
2116
|
+
e[5] !== l ? (c = (p, f) => /* @__PURE__ */ P(M, { sx: {
|
|
2117
|
+
...oe.item,
|
|
2118
|
+
...l ? oe.itemHorizontal : null
|
|
1445
2119
|
}, children: [
|
|
1446
|
-
/* @__PURE__ */
|
|
1447
|
-
/* @__PURE__ */
|
|
1448
|
-
...
|
|
1449
|
-
...
|
|
1450
|
-
}, children:
|
|
1451
|
-
|
|
1452
|
-
] }, `${
|
|
2120
|
+
/* @__PURE__ */ d(M, { component: "img", src: p.icon, alt: "", sx: oe.icon }),
|
|
2121
|
+
/* @__PURE__ */ d(E, { variant: "caption", color: "text.primary", sx: {
|
|
2122
|
+
...oe.label,
|
|
2123
|
+
...l ? oe.labelHorizontal : null
|
|
2124
|
+
}, children: p.label }),
|
|
2125
|
+
p.value != null && /* @__PURE__ */ d(E, { className: "PsLegend-value", variant: "caption", color: "text.secondary", sx: oe.value, children: p.value })
|
|
2126
|
+
] }, `${p.label}-${f}`), e[5] = l, e[6] = c) : c = e[6], a = o.items.map(c), e[2] = o.items, e[3] = l, e[4] = a;
|
|
1453
2127
|
} else
|
|
1454
|
-
|
|
1455
|
-
let
|
|
1456
|
-
return e[7] !==
|
|
2128
|
+
a = e[4];
|
|
2129
|
+
let s;
|
|
2130
|
+
return e[7] !== r || e[8] !== n || e[9] !== a ? (s = /* @__PURE__ */ d(M, { "data-orientation": r, sx: n, children: a }), e[7] = r, e[8] = n, e[9] = a, e[10] = s) : s = e[10], s;
|
|
1457
2131
|
}
|
|
1458
|
-
function
|
|
1459
|
-
const e =
|
|
2132
|
+
function ut(t) {
|
|
2133
|
+
const e = T(10), {
|
|
1460
2134
|
data: o,
|
|
1461
|
-
labels:
|
|
2135
|
+
labels: r
|
|
1462
2136
|
} = t;
|
|
1463
2137
|
switch (o.type) {
|
|
1464
2138
|
case "category": {
|
|
1465
|
-
let
|
|
1466
|
-
return e[0] !== o ? (
|
|
2139
|
+
let l;
|
|
2140
|
+
return e[0] !== o ? (l = /* @__PURE__ */ d(st, { data: o }), e[0] = o, e[1] = l) : l = e[1], l;
|
|
1467
2141
|
}
|
|
1468
2142
|
case "ramp": {
|
|
1469
|
-
let
|
|
1470
|
-
return e[2] !== o || e[3] !==
|
|
2143
|
+
let l;
|
|
2144
|
+
return e[2] !== o || e[3] !== r ? (l = /* @__PURE__ */ d(at, { data: o, labels: r }), e[2] = o, e[3] = r, e[4] = l) : l = e[4], l;
|
|
1471
2145
|
}
|
|
1472
2146
|
case "proportion": {
|
|
1473
|
-
let
|
|
1474
|
-
return e[5] !== o || e[6] !==
|
|
2147
|
+
let l;
|
|
2148
|
+
return e[5] !== o || e[6] !== r ? (l = /* @__PURE__ */ d(ct, { data: o, labels: r }), e[5] = o, e[6] = r, e[7] = l) : l = e[7], l;
|
|
1475
2149
|
}
|
|
1476
2150
|
case "icon": {
|
|
1477
|
-
let
|
|
1478
|
-
return e[8] !== o ? (
|
|
2151
|
+
let l;
|
|
2152
|
+
return e[8] !== o ? (l = /* @__PURE__ */ d(dt, { data: o }), e[8] = o, e[9] = l) : l = e[9], l;
|
|
1479
2153
|
}
|
|
1480
2154
|
default:
|
|
1481
2155
|
return o;
|
|
1482
2156
|
}
|
|
1483
2157
|
}
|
|
1484
|
-
const
|
|
2158
|
+
const Uo = {
|
|
1485
2159
|
// Figma: stacked variable sections sit ~16px apart (wider than the row
|
|
1486
2160
|
// content's 8px block gap).
|
|
1487
2161
|
stack: {
|
|
@@ -1490,47 +2164,57 @@ const jt = {
|
|
|
1490
2164
|
gap: 2
|
|
1491
2165
|
}
|
|
1492
2166
|
};
|
|
1493
|
-
function
|
|
1494
|
-
const t =
|
|
1495
|
-
let
|
|
1496
|
-
t[0] !== o ? (
|
|
1497
|
-
const
|
|
1498
|
-
labels:
|
|
1499
|
-
} =
|
|
1500
|
-
if (!
|
|
2167
|
+
function jo() {
|
|
2168
|
+
const t = T(9), e = N(), o = Q();
|
|
2169
|
+
let r;
|
|
2170
|
+
t[0] !== o ? (r = (s) => o ? s.layers[o.layerId]?.variables : void 0, t[0] = o, t[1] = r) : r = t[1];
|
|
2171
|
+
const l = Z(e, r), {
|
|
2172
|
+
labels: i
|
|
2173
|
+
} = B();
|
|
2174
|
+
if (!l || l.length === 0)
|
|
1501
2175
|
return null;
|
|
1502
|
-
let
|
|
1503
|
-
if (t[2] !==
|
|
1504
|
-
let
|
|
1505
|
-
t[5] !==
|
|
2176
|
+
let n;
|
|
2177
|
+
if (t[2] !== i || t[3] !== l) {
|
|
2178
|
+
let s;
|
|
2179
|
+
t[5] !== i ? (s = (c, p) => /* @__PURE__ */ d(ut, { data: c, labels: i }, p), t[5] = i, t[6] = s) : s = t[6], n = l.map(s), t[2] = i, t[3] = l, t[4] = n;
|
|
1506
2180
|
} else
|
|
1507
|
-
|
|
1508
|
-
let
|
|
1509
|
-
return t[7] !==
|
|
2181
|
+
n = t[4];
|
|
2182
|
+
let a;
|
|
2183
|
+
return t[7] !== n ? (a = /* @__PURE__ */ d(M, { sx: Uo.stack, children: n }), t[7] = n, t[8] = a) : a = t[8], a;
|
|
1510
2184
|
}
|
|
1511
|
-
const
|
|
2185
|
+
const cn = {
|
|
1512
2186
|
// Composition shell
|
|
1513
|
-
Provider:
|
|
1514
|
-
Group:
|
|
1515
|
-
Row:
|
|
1516
|
-
Actions:
|
|
2187
|
+
Provider: Ft,
|
|
2188
|
+
Group: Zt,
|
|
2189
|
+
Row: qt,
|
|
2190
|
+
Actions: Ye,
|
|
2191
|
+
Sortable: Lo,
|
|
1517
2192
|
// Store-connected actions & controls (context-driven)
|
|
1518
|
-
VisibilityToggle:
|
|
1519
|
-
RowMenu:
|
|
1520
|
-
ZoomTo:
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
2193
|
+
VisibilityToggle: eo,
|
|
2194
|
+
RowMenu: no,
|
|
2195
|
+
ZoomTo: lo,
|
|
2196
|
+
ShowOnlyLayer: io,
|
|
2197
|
+
ShowAllLayers: ro,
|
|
2198
|
+
GroupMenu: so,
|
|
2199
|
+
ShowOnlyGroup: ao,
|
|
2200
|
+
ShowAllGroups: co,
|
|
2201
|
+
CollapseAllGroups: uo,
|
|
2202
|
+
ZoomToGroup: po,
|
|
2203
|
+
PanelMenu: fo,
|
|
2204
|
+
VisibleLayers: go,
|
|
2205
|
+
Opacity: zo,
|
|
2206
|
+
ConfigSelect: Mo,
|
|
2207
|
+
Item: jo,
|
|
1524
2208
|
// Pure UI
|
|
1525
|
-
ItemUI:
|
|
1526
|
-
Swatch:
|
|
1527
|
-
CategoryUI:
|
|
1528
|
-
RampUI:
|
|
1529
|
-
ProportionUI:
|
|
1530
|
-
IconUI:
|
|
2209
|
+
ItemUI: ut,
|
|
2210
|
+
Swatch: rt,
|
|
2211
|
+
CategoryUI: st,
|
|
2212
|
+
RampUI: at,
|
|
2213
|
+
ProportionUI: ct,
|
|
2214
|
+
IconUI: dt
|
|
1531
2215
|
};
|
|
1532
2216
|
export {
|
|
1533
|
-
|
|
1534
|
-
|
|
2217
|
+
ge as DEFAULT_LEGEND_LABELS,
|
|
2218
|
+
cn as Legend
|
|
1535
2219
|
};
|
|
1536
2220
|
//# sourceMappingURL=legend.js.map
|