@carto/ps-react-ui 4.1.1 → 4.2.2
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/components.js +1067 -956
- package/dist/components.js.map +1 -1
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/lasso-tool/lasso-tool.d.ts +13 -2
- package/dist/types/components/lasso-tool/types.d.ts +5 -1
- package/dist/types/components/smart-tooltip/smart-tooltip.d.ts +11 -0
- package/dist/types/components/tooltip/tooltip.d.ts +13 -0
- package/package.json +4 -4
package/dist/components.js
CHANGED
|
@@ -1,9 +1,194 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsx as l, jsxs as L, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import { c as E } from "react/compiler-runtime";
|
|
3
|
+
import { ArrowDropDown as Pe, MoreVertOutlined as ze, Close as Be, MyLocationOutlined as Ne, LocationDisabledOutlined as Fe, CropFreeOutlined as He, AddOutlined as Xe, RemoveOutlined as qe } from "@mui/icons-material";
|
|
4
|
+
import { Tooltip as Ke, Chip as Ye, Paper as ye, IconButton as se, Menu as $e, Box as X, Divider as ae, MenuItem as ge, ListItemIcon as je, SvgIcon as _e, ListItemText as be, ToggleButton as ve, Typography as Y, ToggleButtonGroup as Ze, Button as we, alpha as Qe, Dialog as Je, DialogTitle as et, DialogContent as tt, FormControl as ot, RadioGroup as lt, FormControlLabel as nt, Radio as it, DialogActions as rt, CircularProgress as st, Grid as me, Skeleton as Se, Alert as at, ListItem as ct, List as dt, Drawer as ut, Popover as ht, useTheme as pt, useMediaQuery as ft } from "@mui/material";
|
|
5
|
+
import { useState as ne, useMemo as Ce, useRef as Oe, useEffect as De, useLayoutEffect as mt } from "react";
|
|
6
|
+
function gt(t) {
|
|
7
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
8
|
+
}
|
|
9
|
+
var Te, Ie;
|
|
10
|
+
function bt() {
|
|
11
|
+
if (Ie) return Te;
|
|
12
|
+
Ie = 1;
|
|
13
|
+
var t = function(m) {
|
|
14
|
+
return e(m) && !n(m);
|
|
15
|
+
};
|
|
16
|
+
function e(d) {
|
|
17
|
+
return !!d && typeof d == "object";
|
|
18
|
+
}
|
|
19
|
+
function n(d) {
|
|
20
|
+
var m = Object.prototype.toString.call(d);
|
|
21
|
+
return m === "[object RegExp]" || m === "[object Date]" || a(d);
|
|
22
|
+
}
|
|
23
|
+
var o = typeof Symbol == "function" && Symbol.for, i = o ? Symbol.for("react.element") : 60103;
|
|
24
|
+
function a(d) {
|
|
25
|
+
return d.$$typeof === i;
|
|
26
|
+
}
|
|
27
|
+
function r(d) {
|
|
28
|
+
return Array.isArray(d) ? [] : {};
|
|
29
|
+
}
|
|
30
|
+
function s(d, m) {
|
|
31
|
+
return m.clone !== !1 && m.isMergeableObject(d) ? b(r(d), d, m) : d;
|
|
32
|
+
}
|
|
33
|
+
function c(d, m, g) {
|
|
34
|
+
return d.concat(m).map(function(C) {
|
|
35
|
+
return s(C, g);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function u(d, m) {
|
|
39
|
+
if (!m.customMerge)
|
|
40
|
+
return b;
|
|
41
|
+
var g = m.customMerge(d);
|
|
42
|
+
return typeof g == "function" ? g : b;
|
|
43
|
+
}
|
|
44
|
+
function p(d) {
|
|
45
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(d).filter(function(m) {
|
|
46
|
+
return Object.propertyIsEnumerable.call(d, m);
|
|
47
|
+
}) : [];
|
|
48
|
+
}
|
|
49
|
+
function h(d) {
|
|
50
|
+
return Object.keys(d).concat(p(d));
|
|
51
|
+
}
|
|
52
|
+
function f(d, m) {
|
|
53
|
+
try {
|
|
54
|
+
return m in d;
|
|
55
|
+
} catch {
|
|
56
|
+
return !1;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function v(d, m) {
|
|
60
|
+
return f(d, m) && !(Object.hasOwnProperty.call(d, m) && Object.propertyIsEnumerable.call(d, m));
|
|
61
|
+
}
|
|
62
|
+
function y(d, m, g) {
|
|
63
|
+
var C = {};
|
|
64
|
+
return g.isMergeableObject(d) && h(d).forEach(function(w) {
|
|
65
|
+
C[w] = s(d[w], g);
|
|
66
|
+
}), h(m).forEach(function(w) {
|
|
67
|
+
v(d, w) || (f(d, w) && g.isMergeableObject(m[w]) ? C[w] = u(w, g)(d[w], m[w], g) : C[w] = s(m[w], g));
|
|
68
|
+
}), C;
|
|
69
|
+
}
|
|
70
|
+
function b(d, m, g) {
|
|
71
|
+
g = g || {}, g.arrayMerge = g.arrayMerge || c, g.isMergeableObject = g.isMergeableObject || t, g.cloneUnlessOtherwiseSpecified = s;
|
|
72
|
+
var C = Array.isArray(m), w = Array.isArray(d), _ = C === w;
|
|
73
|
+
return _ ? C ? g.arrayMerge(d, m, g) : y(d, m, g) : s(m, g);
|
|
74
|
+
}
|
|
75
|
+
b.all = function(m, g) {
|
|
76
|
+
if (!Array.isArray(m))
|
|
77
|
+
throw new Error("first argument should be an array");
|
|
78
|
+
return m.reduce(function(C, w) {
|
|
79
|
+
return b(C, w, g);
|
|
80
|
+
}, {});
|
|
81
|
+
};
|
|
82
|
+
var x = b;
|
|
83
|
+
return Te = x, Te;
|
|
84
|
+
}
|
|
85
|
+
var vt = bt();
|
|
86
|
+
const xe = /* @__PURE__ */ gt(vt);
|
|
87
|
+
let Ve = 500;
|
|
88
|
+
function de(t) {
|
|
89
|
+
const e = E(10);
|
|
90
|
+
let n, o, i, a;
|
|
91
|
+
e[0] !== t ? ({
|
|
92
|
+
children: n,
|
|
93
|
+
title: a,
|
|
94
|
+
enterNextDelay: i,
|
|
95
|
+
...o
|
|
96
|
+
} = t, e[0] = t, e[1] = n, e[2] = o, e[3] = i, e[4] = a) : (n = e[1], o = e[2], i = e[3], a = e[4]);
|
|
97
|
+
const r = i === void 0 ? Ve : i;
|
|
98
|
+
let s;
|
|
99
|
+
return e[5] !== n || e[6] !== r || e[7] !== o || e[8] !== a ? (s = /* @__PURE__ */ l(Ke, { title: a, enterNextDelay: r, ...o, children: n }), e[5] = n, e[6] = r, e[7] = o, e[8] = a, e[9] = s) : s = e[9], s;
|
|
100
|
+
}
|
|
101
|
+
function uo(t) {
|
|
102
|
+
Ve = t;
|
|
103
|
+
}
|
|
104
|
+
function yt(t) {
|
|
105
|
+
const e = E(3);
|
|
106
|
+
let n;
|
|
107
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.996 2.996 0 0 0 0 2H6.829a2.995 2.995 0 0 0 0-2h10.342Zm-2.463-5.707 3.998 4a3.013 3.013 0 0 0-1.414 1.414l-4-3.999a3.014 3.014 0 0 0 1.31-1.214l.106-.201ZM2.998 6.829a2.995 2.995 0 0 0 2.002 0v10.342a2.993 2.993 0 0 0-2.002 0V6.83ZM12 10a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm1.84-3.919c.464.483 1.09.81 1.79.896l-1.47 2.94a2.992 2.992 0 0 0-1.79-.894l1.47-2.942ZM16 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm9.171.998a2.994 2.994 0 0 0 0 2.002H6.829a2.995 2.995 0 0 0 0-2.002h6.342Z", fill: "currentColor" }), e[0] = n) : n = e[0];
|
|
108
|
+
let o;
|
|
109
|
+
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
110
|
+
}
|
|
111
|
+
function xt(t) {
|
|
112
|
+
const e = E(3);
|
|
113
|
+
let n;
|
|
114
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.993 2.993 0 0 0-.17.974l-.001.052.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2h10.342ZM2.998 6.828a2.995 2.995 0 0 0 2.002 0V17.17a2.993 2.993 0 0 0-2.002 0V6.83Zm16.001 0a2.995 2.995 0 0 0 2 0V17.17a2.993 2.993 0 0 0-2 0V6.829ZM20 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm13.171.998a2.991 2.991 0 0 0-.17.976L17 4.026l.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2H17.17Z", fill: "currentColor" }), e[0] = n) : n = e[0];
|
|
115
|
+
let o;
|
|
116
|
+
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
117
|
+
}
|
|
118
|
+
function wt(t) {
|
|
119
|
+
const e = E(3);
|
|
120
|
+
let n;
|
|
121
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z", fill: "currentColor" }), e[0] = n) : n = e[0];
|
|
122
|
+
let o;
|
|
123
|
+
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
124
|
+
}
|
|
125
|
+
function Ct(t) {
|
|
126
|
+
const e = E(3);
|
|
127
|
+
let n;
|
|
128
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 3c4.935 0 9 3.736 9 9l-.002.343-.012.668c-.012.438-.033.86-.062 1.266l-.05.597C20.498 18.767 19.267 21 17 21c-1.192 0-1.971-.341-2.988-1.122l-.472-.375c-.401-.319-.64-.473-.888-.566a4.938 4.938 0 0 0-.415-.13l-.34-.085-.398-.086-.456-.086-.66-.111-1.708-.273a9.112 9.112 0 0 1-.952-.206C5.46 17.301 3 14.954 3 12.015c0-1.508.485-2.995 1.436-4.458.355.585.906 1.04 1.562 1.272C5.328 9.916 5 10.977 5 12.015c0 1.889 1.78 3.588 3.282 4.025l.085.023.345.076.517.092 1.619.257.583.1.518.098.237.05.433.103c.272.07.512.143.73.224.434.161.783.373 1.235.718l.457.362c.806.646 1.24.857 1.959.857.893 0 1.63-1.518 1.895-4.45l.045-.585c.013-.2.024-.407.033-.62l.02-.655c.005-.224.007-.454.007-.69 0-4.12-3.133-7-7-7a1 1 0 1 1 0-2ZM7 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z", fill: "currentColor" }), e[0] = n) : n = e[0];
|
|
129
|
+
let o;
|
|
130
|
+
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
131
|
+
}
|
|
132
|
+
function Mt(t) {
|
|
133
|
+
const e = E(3);
|
|
134
|
+
let n;
|
|
135
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "m10.083 19.394.057.113a1 1 0 0 0 1.72.007l2.869-4.786 4.786-2.87a1 1 0 0 0-.121-1.777l-14-6c-.83-.356-1.669.483-1.313 1.313l6.002 14ZM6.905 6.904l9.903 4.244-3.322 1.995-.102.069a1 1 0 0 0-.242.274l-1.992 3.321-4.245-9.903Z", fill: "currentColor" }), e[0] = n) : n = e[0];
|
|
136
|
+
let o;
|
|
137
|
+
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
138
|
+
}
|
|
139
|
+
const K = {
|
|
140
|
+
action: {
|
|
141
|
+
tooltip: {
|
|
142
|
+
active: "Click on the map to draw your spatial filter",
|
|
143
|
+
inactive: "Click on the map to draw your spatial filter"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
chip: {
|
|
147
|
+
tooltip: {
|
|
148
|
+
active: "Hide drawing",
|
|
149
|
+
inactive: "Show drawing"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
options: {
|
|
153
|
+
mode: {
|
|
154
|
+
title: "Choose a drawing tool",
|
|
155
|
+
options: {
|
|
156
|
+
circle: "Circle",
|
|
157
|
+
lasso: "Lasso tool",
|
|
158
|
+
polygon: "Polygon",
|
|
159
|
+
rectangle: "Rectangle",
|
|
160
|
+
edit: "Edit feature"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
noData: {
|
|
165
|
+
title: "Spatial filter not applied",
|
|
166
|
+
description: "Select a drawing or editing tool and click on the map to define your spatial filter"
|
|
167
|
+
},
|
|
168
|
+
actions: {
|
|
169
|
+
toggleAll: {
|
|
170
|
+
active: "Hide all",
|
|
171
|
+
inactive: "Show all"
|
|
172
|
+
},
|
|
173
|
+
deleteAll: "Remove all"
|
|
174
|
+
}
|
|
175
|
+
}, ho = {
|
|
176
|
+
polygon: {
|
|
177
|
+
icon: yt
|
|
178
|
+
},
|
|
179
|
+
rectangle: {
|
|
180
|
+
icon: xt
|
|
181
|
+
},
|
|
182
|
+
circle: {
|
|
183
|
+
icon: wt
|
|
184
|
+
},
|
|
185
|
+
lasso: {
|
|
186
|
+
icon: Ct
|
|
187
|
+
},
|
|
188
|
+
edit: {
|
|
189
|
+
icon: Mt
|
|
190
|
+
}
|
|
191
|
+
}, J = {
|
|
7
192
|
container: {
|
|
8
193
|
display: "flex",
|
|
9
194
|
flexDirection: "row",
|
|
@@ -167,339 +352,195 @@ const J = {
|
|
|
167
352
|
}
|
|
168
353
|
}
|
|
169
354
|
};
|
|
170
|
-
function
|
|
171
|
-
const e =
|
|
172
|
-
|
|
173
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.996 2.996 0 0 0 0 2H6.829a2.995 2.995 0 0 0 0-2h10.342Zm-2.463-5.707 3.998 4a3.013 3.013 0 0 0-1.414 1.414l-4-3.999a3.014 3.014 0 0 0 1.31-1.214l.106-.201ZM2.998 6.829a2.995 2.995 0 0 0 2.002 0v10.342a2.993 2.993 0 0 0-2.002 0V6.83ZM12 10a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm1.84-3.919c.464.483 1.09.81 1.79.896l-1.47 2.94a2.992 2.992 0 0 0-1.79-.894l1.47-2.942ZM16 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm9.171.998a2.994 2.994 0 0 0 0 2.002H6.829a2.995 2.995 0 0 0 0-2.002h6.342Z", fill: "currentColor" }), e[0] = r) : r = e[0];
|
|
174
|
-
let o;
|
|
175
|
-
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: r }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
176
|
-
}
|
|
177
|
-
function xt(t) {
|
|
178
|
-
const e = R(3);
|
|
179
|
-
let r;
|
|
180
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.993 2.993 0 0 0-.17.974l-.001.052.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2h10.342ZM2.998 6.828a2.995 2.995 0 0 0 2.002 0V17.17a2.993 2.993 0 0 0-2.002 0V6.83Zm16.001 0a2.995 2.995 0 0 0 2 0V17.17a2.993 2.993 0 0 0-2 0V6.829ZM20 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm13.171.998a2.991 2.991 0 0 0-.17.976L17 4.026l.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2H17.17Z", fill: "currentColor" }), e[0] = r) : r = e[0];
|
|
181
|
-
let o;
|
|
182
|
-
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: r }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
183
|
-
}
|
|
184
|
-
function Mt(t) {
|
|
185
|
-
const e = R(3);
|
|
186
|
-
let r;
|
|
187
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z", fill: "currentColor" }), e[0] = r) : r = e[0];
|
|
188
|
-
let o;
|
|
189
|
-
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: r }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
190
|
-
}
|
|
191
|
-
function Ct(t) {
|
|
192
|
-
const e = R(3);
|
|
193
|
-
let r;
|
|
194
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 3c4.935 0 9 3.736 9 9l-.002.343-.012.668c-.012.438-.033.86-.062 1.266l-.05.597C20.498 18.767 19.267 21 17 21c-1.192 0-1.971-.341-2.988-1.122l-.472-.375c-.401-.319-.64-.473-.888-.566a4.938 4.938 0 0 0-.415-.13l-.34-.085-.398-.086-.456-.086-.66-.111-1.708-.273a9.112 9.112 0 0 1-.952-.206C5.46 17.301 3 14.954 3 12.015c0-1.508.485-2.995 1.436-4.458.355.585.906 1.04 1.562 1.272C5.328 9.916 5 10.977 5 12.015c0 1.889 1.78 3.588 3.282 4.025l.085.023.345.076.517.092 1.619.257.583.1.518.098.237.05.433.103c.272.07.512.143.73.224.434.161.783.373 1.235.718l.457.362c.806.646 1.24.857 1.959.857.893 0 1.63-1.518 1.895-4.45l.045-.585c.013-.2.024-.407.033-.62l.02-.655c.005-.224.007-.454.007-.69 0-4.12-3.133-7-7-7a1 1 0 1 1 0-2ZM7 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z", fill: "currentColor" }), e[0] = r) : r = e[0];
|
|
195
|
-
let o;
|
|
196
|
-
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: r }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
197
|
-
}
|
|
198
|
-
function Tt(t) {
|
|
199
|
-
const e = R(3);
|
|
200
|
-
let r;
|
|
201
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "m10.083 19.394.057.113a1 1 0 0 0 1.72.007l2.869-4.786 4.786-2.87a1 1 0 0 0-.121-1.777l-14-6c-.83-.356-1.669.483-1.313 1.313l6.002 14ZM6.905 6.904l9.903 4.244-3.322 1.995-.102.069a1 1 0 0 0-.242.274l-1.992 3.321-4.245-9.903Z", fill: "currentColor" }), e[0] = r) : r = e[0];
|
|
202
|
-
let o;
|
|
203
|
-
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: r }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
204
|
-
}
|
|
205
|
-
const z = {
|
|
206
|
-
action: {
|
|
207
|
-
tooltip: {
|
|
208
|
-
active: "Click on the map to draw your spatial filter",
|
|
209
|
-
inactive: "Click on the map to draw your spatial filter"
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
chip: {
|
|
213
|
-
tooltip: {
|
|
214
|
-
active: "Hide drawing",
|
|
215
|
-
inactive: "Show drawing"
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
options: {
|
|
219
|
-
mode: {
|
|
220
|
-
title: "Choose a drawing tool",
|
|
221
|
-
options: {
|
|
222
|
-
circle: "Circle",
|
|
223
|
-
lasso: "Lasso tool",
|
|
224
|
-
polygon: "Polygon",
|
|
225
|
-
rectangle: "Rectangle",
|
|
226
|
-
edit: "Edit feature"
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
noData: {
|
|
231
|
-
title: "Spatial filter not applied",
|
|
232
|
-
description: "Select a drawing or editing tool and click on the map to define your spatial filter"
|
|
233
|
-
},
|
|
234
|
-
actions: {
|
|
235
|
-
toggleAll: {
|
|
236
|
-
active: "Hide all",
|
|
237
|
-
inactive: "Show all"
|
|
238
|
-
},
|
|
239
|
-
deleteAll: "Remove all"
|
|
240
|
-
}
|
|
241
|
-
}, mo = {
|
|
242
|
-
polygon: {
|
|
243
|
-
icon: wt
|
|
244
|
-
},
|
|
245
|
-
rectangle: {
|
|
246
|
-
icon: xt
|
|
247
|
-
},
|
|
248
|
-
circle: {
|
|
249
|
-
icon: Mt
|
|
250
|
-
},
|
|
251
|
-
lasso: {
|
|
252
|
-
icon: Ct
|
|
253
|
-
},
|
|
254
|
-
edit: {
|
|
255
|
-
icon: Tt
|
|
256
|
-
}
|
|
257
|
-
};
|
|
258
|
-
function St(t) {
|
|
259
|
-
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
260
|
-
}
|
|
261
|
-
var Ae, Be;
|
|
262
|
-
function _t() {
|
|
263
|
-
if (Be) return Ae;
|
|
264
|
-
Be = 1;
|
|
265
|
-
var t = function(m) {
|
|
266
|
-
return e(m) && !r(m);
|
|
267
|
-
};
|
|
268
|
-
function e(d) {
|
|
269
|
-
return !!d && typeof d == "object";
|
|
270
|
-
}
|
|
271
|
-
function r(d) {
|
|
272
|
-
var m = Object.prototype.toString.call(d);
|
|
273
|
-
return m === "[object RegExp]" || m === "[object Date]" || s(d);
|
|
274
|
-
}
|
|
275
|
-
var o = typeof Symbol == "function" && Symbol.for, l = o ? Symbol.for("react.element") : 60103;
|
|
276
|
-
function s(d) {
|
|
277
|
-
return d.$$typeof === l;
|
|
278
|
-
}
|
|
279
|
-
function i(d) {
|
|
280
|
-
return Array.isArray(d) ? [] : {};
|
|
281
|
-
}
|
|
282
|
-
function c(d, m) {
|
|
283
|
-
return m.clone !== !1 && m.isMergeableObject(d) ? g(i(d), d, m) : d;
|
|
284
|
-
}
|
|
285
|
-
function a(d, m, v) {
|
|
286
|
-
return d.concat(m).map(function(x) {
|
|
287
|
-
return c(x, v);
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
function u(d, m) {
|
|
291
|
-
if (!m.customMerge)
|
|
292
|
-
return g;
|
|
293
|
-
var v = m.customMerge(d);
|
|
294
|
-
return typeof v == "function" ? v : g;
|
|
295
|
-
}
|
|
296
|
-
function h(d) {
|
|
297
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(d).filter(function(m) {
|
|
298
|
-
return Object.propertyIsEnumerable.call(d, m);
|
|
299
|
-
}) : [];
|
|
300
|
-
}
|
|
301
|
-
function f(d) {
|
|
302
|
-
return Object.keys(d).concat(h(d));
|
|
303
|
-
}
|
|
304
|
-
function p(d, m) {
|
|
305
|
-
try {
|
|
306
|
-
return m in d;
|
|
307
|
-
} catch {
|
|
308
|
-
return !1;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
function y(d, m) {
|
|
312
|
-
return p(d, m) && !(Object.hasOwnProperty.call(d, m) && Object.propertyIsEnumerable.call(d, m));
|
|
313
|
-
}
|
|
314
|
-
function b(d, m, v) {
|
|
315
|
-
var x = {};
|
|
316
|
-
return v.isMergeableObject(d) && f(d).forEach(function(w) {
|
|
317
|
-
x[w] = c(d[w], v);
|
|
318
|
-
}), f(m).forEach(function(w) {
|
|
319
|
-
y(d, w) || (p(d, w) && v.isMergeableObject(m[w]) ? x[w] = u(w, v)(d[w], m[w], v) : x[w] = c(m[w], v));
|
|
320
|
-
}), x;
|
|
321
|
-
}
|
|
322
|
-
function g(d, m, v) {
|
|
323
|
-
v = v || {}, v.arrayMerge = v.arrayMerge || a, v.isMergeableObject = v.isMergeableObject || t, v.cloneUnlessOtherwiseSpecified = c;
|
|
324
|
-
var x = Array.isArray(m), w = Array.isArray(d), A = x === w;
|
|
325
|
-
return A ? x ? v.arrayMerge(d, m, v) : b(d, m, v) : c(m, v);
|
|
326
|
-
}
|
|
327
|
-
g.all = function(m, v) {
|
|
328
|
-
if (!Array.isArray(m))
|
|
329
|
-
throw new Error("first argument should be an array");
|
|
330
|
-
return m.reduce(function(x, w) {
|
|
331
|
-
return g(x, w, v);
|
|
332
|
-
}, {});
|
|
333
|
-
};
|
|
334
|
-
var C = g;
|
|
335
|
-
return Ae = C, Ae;
|
|
336
|
-
}
|
|
337
|
-
var At = _t();
|
|
338
|
-
const Se = /* @__PURE__ */ St(At);
|
|
339
|
-
function Fe(t) {
|
|
340
|
-
var d;
|
|
341
|
-
const e = R(18), {
|
|
342
|
-
chipProps: r,
|
|
355
|
+
function Ue(t) {
|
|
356
|
+
const e = E(18), {
|
|
357
|
+
chipProps: n,
|
|
343
358
|
value: o,
|
|
344
|
-
labels:
|
|
345
|
-
onChipToggle:
|
|
346
|
-
onDelete:
|
|
347
|
-
} = t,
|
|
348
|
-
let h;
|
|
349
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
350
|
-
...J.chip.chip
|
|
351
|
-
}, e[0] = h) : h = e[0];
|
|
352
|
-
const f = o.visible ? "secondary" : "default";
|
|
359
|
+
labels: i,
|
|
360
|
+
onChipToggle: a,
|
|
361
|
+
onDelete: r
|
|
362
|
+
} = t, s = o.visible ? "active" : "inactive", c = i?.tooltip?.[s] ?? K.chip.tooltip[s], u = n?.TooltipProps;
|
|
353
363
|
let p;
|
|
354
|
-
e[
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
const
|
|
358
|
-
let
|
|
359
|
-
e[
|
|
360
|
-
let
|
|
361
|
-
|
|
364
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
365
|
+
...J.chip.chip
|
|
366
|
+
}, e[0] = p) : p = e[0];
|
|
367
|
+
const h = o.visible ? "secondary" : "default";
|
|
368
|
+
let f;
|
|
369
|
+
e[1] !== r || e[2] !== o.id ? (f = () => r(o.id), e[1] = r, e[2] = o.id, e[3] = f) : f = e[3];
|
|
370
|
+
let v;
|
|
371
|
+
e[4] !== a || e[5] !== o.id || e[6] !== o.visible ? (v = () => a(o.id, !o.visible), e[4] = a, e[5] = o.id, e[6] = o.visible, e[7] = v) : v = e[7];
|
|
372
|
+
const y = n?.ChipsProps;
|
|
373
|
+
let b;
|
|
374
|
+
e[8] !== h || e[9] !== f || e[10] !== v || e[11] !== y || e[12] !== o.label ? (b = /* @__PURE__ */ l(Ye, { sx: p, color: h, size: "small", onDelete: f, label: o.label, onClick: v, ...y }), e[8] = h, e[9] = f, e[10] = v, e[11] = y, e[12] = o.label, e[13] = b) : b = e[13];
|
|
375
|
+
let x;
|
|
376
|
+
return e[14] !== c || e[15] !== u || e[16] !== b ? (x = /* @__PURE__ */ l(de, { title: c, placement: "bottom", ...u, children: b }), e[14] = c, e[15] = u, e[16] = b, e[17] = x) : x = e[17], x;
|
|
362
377
|
}
|
|
363
|
-
function
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
378
|
+
function ce(t) {
|
|
379
|
+
const e = E(44), {
|
|
380
|
+
enabled: n,
|
|
381
|
+
values: o,
|
|
382
|
+
actionProps: i,
|
|
383
|
+
chipProps: a,
|
|
384
|
+
labels: r,
|
|
385
|
+
modes: s,
|
|
386
|
+
modesMapping: c,
|
|
387
|
+
modeSelected: u,
|
|
388
|
+
PaperProps: p,
|
|
389
|
+
onActionToggle: h,
|
|
390
|
+
onChipToggle: f,
|
|
391
|
+
onDelete: v,
|
|
392
|
+
onChangeMode: y,
|
|
393
|
+
onAllChipToggle: b,
|
|
394
|
+
onAllDelete: x,
|
|
395
|
+
ChipsSlot: d,
|
|
396
|
+
ActionSlot: m,
|
|
397
|
+
SecondaryActionsSlot: g,
|
|
398
|
+
OptionsSlot: C
|
|
399
|
+
} = t;
|
|
400
|
+
let w;
|
|
401
|
+
e[0] !== o ? (w = o === void 0 ? [] : o, e[0] = o, e[1] = w) : w = e[1];
|
|
402
|
+
const _ = w;
|
|
403
|
+
let O;
|
|
404
|
+
e[2] !== p ? (O = p === void 0 ? {} : p, e[2] = p, e[3] = O) : O = e[3];
|
|
405
|
+
let S, T;
|
|
406
|
+
e[4] !== O ? ({
|
|
407
|
+
sx: T,
|
|
408
|
+
...S
|
|
409
|
+
} = O, e[4] = O, e[5] = S, e[6] = T) : (S = e[5], T = e[6]);
|
|
410
|
+
const I = d === void 0 ? ce.Chips : d, D = m === void 0 ? ce.Action : m, A = g === void 0 ? ce.SecondaryActions : g, M = C === void 0 ? ce.Options : C;
|
|
411
|
+
let k;
|
|
412
|
+
e[7] !== S || e[8] !== i || e[9] !== a || e[10] !== n || e[11] !== r || e[12] !== u || e[13] !== s || e[14] !== c || e[15] !== h || e[16] !== b || e[17] !== x || e[18] !== y || e[19] !== f || e[20] !== v || e[21] !== _ ? (k = {
|
|
413
|
+
enabled: n,
|
|
414
|
+
values: _,
|
|
415
|
+
actionProps: i,
|
|
416
|
+
chipProps: a,
|
|
417
|
+
labels: r,
|
|
418
|
+
modes: s,
|
|
419
|
+
modesMapping: c,
|
|
420
|
+
modeSelected: u,
|
|
421
|
+
PaperProps: S,
|
|
422
|
+
onActionToggle: h,
|
|
423
|
+
onChipToggle: f,
|
|
424
|
+
onDelete: v,
|
|
425
|
+
onChangeMode: y,
|
|
426
|
+
onAllChipToggle: b,
|
|
427
|
+
onAllDelete: x
|
|
428
|
+
}, e[7] = S, e[8] = i, e[9] = a, e[10] = n, e[11] = r, e[12] = u, e[13] = s, e[14] = c, e[15] = h, e[16] = b, e[17] = x, e[18] = y, e[19] = f, e[20] = v, e[21] = _, e[22] = k) : k = e[22];
|
|
429
|
+
const R = k;
|
|
430
|
+
let P;
|
|
431
|
+
e[23] !== T ? (P = {
|
|
388
432
|
...J.container,
|
|
389
|
-
...
|
|
390
|
-
},
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
433
|
+
...T
|
|
434
|
+
}, e[23] = T, e[24] = P) : P = e[24];
|
|
435
|
+
let j;
|
|
436
|
+
e[25] !== D || e[26] !== R ? (j = !!D && /* @__PURE__ */ l(D, { ...R }), e[25] = D, e[26] = R, e[27] = j) : j = e[27];
|
|
437
|
+
let $;
|
|
438
|
+
e[28] !== M || e[29] !== R ? ($ = !!M && /* @__PURE__ */ l(We, { children: (G) => /* @__PURE__ */ l(M, { ...R, ...G }) }), e[28] = M, e[29] = R, e[30] = $) : $ = e[30];
|
|
439
|
+
let B;
|
|
440
|
+
e[31] !== I || e[32] !== R ? (B = !!I && /* @__PURE__ */ l(I, { ...R }), e[31] = I, e[32] = R, e[33] = B) : B = e[33];
|
|
441
|
+
let N;
|
|
442
|
+
e[34] !== A || e[35] !== R ? (N = !!A && /* @__PURE__ */ l(A, { ...R }), e[34] = A, e[35] = R, e[36] = N) : N = e[36];
|
|
443
|
+
let W;
|
|
444
|
+
return e[37] !== S || e[38] !== P || e[39] !== j || e[40] !== $ || e[41] !== B || e[42] !== N ? (W = /* @__PURE__ */ L(ye, { sx: P, ...S, children: [
|
|
445
|
+
j,
|
|
446
|
+
$,
|
|
447
|
+
B,
|
|
448
|
+
N
|
|
449
|
+
] }), e[37] = S, e[38] = P, e[39] = j, e[40] = $, e[41] = B, e[42] = N, e[43] = W) : W = e[43], W;
|
|
405
450
|
}
|
|
406
|
-
function
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
actionProps: r,
|
|
451
|
+
function St(t) {
|
|
452
|
+
const e = E(12), {
|
|
453
|
+
actionProps: n,
|
|
410
454
|
labels: o,
|
|
411
|
-
enabled:
|
|
412
|
-
children:
|
|
413
|
-
onActionToggle:
|
|
414
|
-
} = t,
|
|
455
|
+
enabled: i,
|
|
456
|
+
children: a,
|
|
457
|
+
onActionToggle: r
|
|
458
|
+
} = t, s = i ? "active" : "inactive", c = o?.tooltip?.[s] ?? K.action.tooltip[s], u = n?.TooltipProps;
|
|
459
|
+
let p;
|
|
460
|
+
e[0] !== i || e[1] !== r ? (p = () => r(!i), e[0] = i, e[1] = r, e[2] = p) : p = e[2];
|
|
415
461
|
let h;
|
|
416
|
-
e[
|
|
462
|
+
e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== p ? (h = /* @__PURE__ */ l(ve, { value: "toggle", sx: J.actions.icon, onClick: p, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = p, e[7] = h) : h = e[7];
|
|
417
463
|
let f;
|
|
418
|
-
|
|
419
|
-
let p;
|
|
420
|
-
return e[8] !== a || e[9] !== u || e[10] !== f ? (p = /* @__PURE__ */ n(ae, { title: a, placement: "right", ...u, children: f }), e[8] = a, e[9] = u, e[10] = f, e[11] = p) : p = e[11], p;
|
|
464
|
+
return e[8] !== c || e[9] !== u || e[10] !== h ? (f = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: h }), e[8] = c, e[9] = u, e[10] = h, e[11] = f) : f = e[11], f;
|
|
421
465
|
}
|
|
422
|
-
function
|
|
466
|
+
function We({
|
|
423
467
|
TriggerProps: {
|
|
424
|
-
Icon: t = /* @__PURE__ */
|
|
468
|
+
Icon: t = /* @__PURE__ */ l(Pe, {}),
|
|
425
469
|
sx: e
|
|
426
470
|
} = {},
|
|
427
|
-
MenuProps:
|
|
471
|
+
MenuProps: n,
|
|
428
472
|
children: o
|
|
429
473
|
}) {
|
|
430
|
-
const [
|
|
431
|
-
|
|
432
|
-
},
|
|
433
|
-
|
|
474
|
+
const [i, a] = ne(null), r = !!i, s = (u) => {
|
|
475
|
+
a(u.currentTarget);
|
|
476
|
+
}, c = () => {
|
|
477
|
+
a(null);
|
|
434
478
|
};
|
|
435
|
-
return /* @__PURE__ */
|
|
436
|
-
/* @__PURE__ */
|
|
479
|
+
return /* @__PURE__ */ L(z, { children: [
|
|
480
|
+
/* @__PURE__ */ l(se, { sx: {
|
|
437
481
|
...J.options.icon,
|
|
438
482
|
...e
|
|
439
|
-
}, onClick:
|
|
440
|
-
/* @__PURE__ */
|
|
483
|
+
}, onClick: s, children: t }),
|
|
484
|
+
/* @__PURE__ */ l($e, { id: "lasso-menu", anchorEl: i, open: r, onClose: c, MenuListProps: {
|
|
441
485
|
"aria-labelledby": "lasso-button",
|
|
442
486
|
sx: J.options.menu
|
|
443
|
-
}, ...
|
|
444
|
-
onClose:
|
|
487
|
+
}, ...n, children: /* @__PURE__ */ l("div", { children: o({
|
|
488
|
+
onClose: c
|
|
445
489
|
}) }) })
|
|
446
490
|
] });
|
|
447
491
|
}
|
|
448
|
-
function
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
data: r,
|
|
492
|
+
function Tt(t) {
|
|
493
|
+
const e = E(5), {
|
|
494
|
+
data: n,
|
|
452
495
|
labels: o,
|
|
453
|
-
children:
|
|
496
|
+
children: i
|
|
454
497
|
} = t;
|
|
455
|
-
if (
|
|
498
|
+
if (n.length <= 1)
|
|
456
499
|
return null;
|
|
457
|
-
const
|
|
458
|
-
let
|
|
459
|
-
e[0] !==
|
|
460
|
-
let
|
|
461
|
-
return e[2] !==
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
] }), e[2] =
|
|
500
|
+
const a = o?.mode?.title ?? K.options.mode.title;
|
|
501
|
+
let r;
|
|
502
|
+
e[0] !== a ? (r = /* @__PURE__ */ l(Y, { variant: "subtitle2", color: "text.secondary", sx: J.options.title, children: a }), e[0] = a, e[1] = r) : r = e[1];
|
|
503
|
+
let s;
|
|
504
|
+
return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ L(z, { children: [
|
|
505
|
+
r,
|
|
506
|
+
i
|
|
507
|
+
] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
|
|
465
508
|
}
|
|
466
|
-
function
|
|
509
|
+
function Le({
|
|
467
510
|
data: t,
|
|
468
511
|
modeSelected: e,
|
|
469
|
-
labels:
|
|
512
|
+
labels: n,
|
|
470
513
|
onChangeMode: o,
|
|
471
|
-
onClose:
|
|
514
|
+
onClose: i
|
|
472
515
|
}) {
|
|
473
|
-
const
|
|
474
|
-
|
|
516
|
+
const a = (r, s) => {
|
|
517
|
+
r.preventDefault(), o?.(s), i();
|
|
475
518
|
};
|
|
476
|
-
return t.map((
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
/* @__PURE__ */
|
|
481
|
-
|
|
482
|
-
] }, i.value);
|
|
519
|
+
return t.map((r) => {
|
|
520
|
+
const c = (n?.mode?.options ?? K.options.mode.options)[r.value];
|
|
521
|
+
return /* @__PURE__ */ L(ge, { disabled: !!r.disabled, onClick: (u) => a(u, r.value), selected: r.value === e, children: [
|
|
522
|
+
/* @__PURE__ */ l(je, { sx: J.options.icons, children: /* @__PURE__ */ l(_e, { children: /* @__PURE__ */ l(r.icon, {}) }) }),
|
|
523
|
+
/* @__PURE__ */ l(be, { children: c })
|
|
524
|
+
] }, r.value);
|
|
483
525
|
});
|
|
484
526
|
}
|
|
485
|
-
function
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
values: r,
|
|
527
|
+
function At(t) {
|
|
528
|
+
const e = E(8), {
|
|
529
|
+
values: n,
|
|
489
530
|
labels: o,
|
|
490
|
-
onAllChipToggle:
|
|
491
|
-
onAllDelete:
|
|
531
|
+
onAllChipToggle: i,
|
|
532
|
+
onAllDelete: a
|
|
492
533
|
} = t;
|
|
493
|
-
if (
|
|
534
|
+
if (n.length <= 1)
|
|
494
535
|
return null;
|
|
495
|
-
const
|
|
536
|
+
const s = n.some(_t) ? o?.actions?.toggleAll?.active ?? K.actions.toggleAll.active : o?.actions?.toggleAll?.inactive ?? K.actions.toggleAll.inactive, c = o?.actions?.deleteAll ?? K.actions.deleteAll;
|
|
496
537
|
let u;
|
|
497
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */
|
|
498
|
-
let
|
|
499
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
500
|
-
Icon: /* @__PURE__ */
|
|
538
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ l(ae, { orientation: "vertical", flexItem: !0 }), e[0] = u) : u = e[0];
|
|
539
|
+
let p, h;
|
|
540
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
541
|
+
Icon: /* @__PURE__ */ l(ze, {}),
|
|
501
542
|
sx: J.options.more
|
|
502
|
-
},
|
|
543
|
+
}, h = {
|
|
503
544
|
anchorOrigin: {
|
|
504
545
|
vertical: "bottom",
|
|
505
546
|
horizontal: "right"
|
|
@@ -508,165 +549,210 @@ function Lt(t) {
|
|
|
508
549
|
vertical: "top",
|
|
509
550
|
horizontal: "right"
|
|
510
551
|
}
|
|
511
|
-
}, e[1] =
|
|
512
|
-
let
|
|
513
|
-
return e[3] !==
|
|
552
|
+
}, e[1] = p, e[2] = h) : (p = e[1], h = e[2]);
|
|
553
|
+
let f;
|
|
554
|
+
return e[3] !== c || e[4] !== i || e[5] !== a || e[6] !== s ? (f = /* @__PURE__ */ L(z, { children: [
|
|
514
555
|
u,
|
|
515
|
-
/* @__PURE__ */
|
|
516
|
-
/* @__PURE__ */
|
|
517
|
-
|
|
518
|
-
}, children:
|
|
519
|
-
/* @__PURE__ */
|
|
520
|
-
/* @__PURE__ */
|
|
521
|
-
|
|
522
|
-
}, children: /* @__PURE__ */
|
|
556
|
+
/* @__PURE__ */ l(We, { TriggerProps: p, MenuProps: h, children: (v) => /* @__PURE__ */ L(z, { children: [
|
|
557
|
+
/* @__PURE__ */ l(ge, { color: "inherit", onClick: () => {
|
|
558
|
+
i(), v.onClose();
|
|
559
|
+
}, children: s }),
|
|
560
|
+
/* @__PURE__ */ l(ae, {}),
|
|
561
|
+
/* @__PURE__ */ l(ge, { color: "error", onClick: () => {
|
|
562
|
+
a(), v.onClose();
|
|
563
|
+
}, children: /* @__PURE__ */ l(Y, { variant: "body2", color: "error", children: c }) })
|
|
523
564
|
] }) })
|
|
524
|
-
] }), e[3] =
|
|
565
|
+
] }), e[3] = c, e[4] = i, e[5] = a, e[6] = s, e[7] = f) : f = e[7], f;
|
|
525
566
|
}
|
|
526
|
-
function
|
|
567
|
+
function _t(t) {
|
|
527
568
|
return t.visible;
|
|
528
569
|
}
|
|
529
|
-
function
|
|
570
|
+
ce.Action = function({
|
|
571
|
+
modes: e,
|
|
572
|
+
modesMapping: n,
|
|
573
|
+
modeSelected: o,
|
|
574
|
+
actionProps: i,
|
|
575
|
+
enabled: a,
|
|
576
|
+
labels: r,
|
|
577
|
+
onActionToggle: s
|
|
578
|
+
}) {
|
|
579
|
+
const c = Ce(() => xe(e, n), [e, n]), u = (v) => s(v), h = (o ?? "") in e ? o : Object.keys(c)[0], f = c[h];
|
|
580
|
+
return /* @__PURE__ */ l(St, { actionProps: i, labels: r?.action, enabled: a, onActionToggle: u, children: f?.icon && /* @__PURE__ */ l(f.icon, {}) });
|
|
581
|
+
};
|
|
582
|
+
ce.Chips = function({
|
|
583
|
+
values: e,
|
|
584
|
+
labels: n,
|
|
585
|
+
chipProps: o,
|
|
586
|
+
onDelete: i,
|
|
587
|
+
onChipToggle: a,
|
|
588
|
+
onActionToggle: r
|
|
589
|
+
}) {
|
|
590
|
+
const s = (c) => (r(!1), i(c));
|
|
591
|
+
return !!e.length && /* @__PURE__ */ l(X, { sx: J.chip.container, children: e.map((c) => /* @__PURE__ */ l(Ue, { value: c, labels: n?.chip, chipProps: o, onDelete: s, onChipToggle: a }, c.id)) });
|
|
592
|
+
};
|
|
593
|
+
ce.SecondaryActions = At;
|
|
594
|
+
ce.Options = function({
|
|
595
|
+
values: e,
|
|
596
|
+
modes: n,
|
|
597
|
+
modesMapping: o,
|
|
598
|
+
modeSelected: i,
|
|
599
|
+
labels: a,
|
|
600
|
+
onChangeMode: r,
|
|
601
|
+
...s
|
|
602
|
+
}) {
|
|
603
|
+
const c = Ce(() => xe(n, o), [n, o]), {
|
|
604
|
+
edit: u,
|
|
605
|
+
...p
|
|
606
|
+
} = c, f = (i ?? "") in n ? i : Object.keys(c)[0], v = Object.values(p), y = (b) => r?.(b);
|
|
607
|
+
return /* @__PURE__ */ L(z, { children: [
|
|
608
|
+
/* @__PURE__ */ l(Tt, { data: v, labels: a?.options, children: /* @__PURE__ */ l(Le, { ...s, labels: a?.options, data: v, modeSelected: f, onChangeMode: y }) }),
|
|
609
|
+
!!u && /* @__PURE__ */ L(z, { children: [
|
|
610
|
+
/* @__PURE__ */ l(ae, {}),
|
|
611
|
+
/* @__PURE__ */ l(Le, { ...s, labels: a?.options, data: [{
|
|
612
|
+
...u,
|
|
613
|
+
disabled: !e.length
|
|
614
|
+
}], modeSelected: f, onChangeMode: y })
|
|
615
|
+
] })
|
|
616
|
+
] });
|
|
617
|
+
};
|
|
618
|
+
function po({
|
|
530
619
|
enabled: t,
|
|
531
620
|
values: e = [],
|
|
532
|
-
chipProps:
|
|
621
|
+
chipProps: n,
|
|
533
622
|
labels: o,
|
|
534
|
-
modes:
|
|
535
|
-
modesMapping:
|
|
536
|
-
modeSelected:
|
|
623
|
+
modes: i,
|
|
624
|
+
modesMapping: a,
|
|
625
|
+
modeSelected: r,
|
|
537
626
|
BoxProps: {
|
|
538
|
-
sx:
|
|
539
|
-
...
|
|
627
|
+
sx: s,
|
|
628
|
+
...c
|
|
540
629
|
} = {},
|
|
541
630
|
onChipToggle: u,
|
|
542
|
-
onDelete:
|
|
543
|
-
onChangeMode:
|
|
544
|
-
onAllChipToggle:
|
|
545
|
-
onAllDelete:
|
|
631
|
+
onDelete: p,
|
|
632
|
+
onChangeMode: h,
|
|
633
|
+
onAllChipToggle: f,
|
|
634
|
+
onAllDelete: v
|
|
546
635
|
}) {
|
|
547
|
-
const
|
|
548
|
-
edit:
|
|
549
|
-
...
|
|
550
|
-
} =
|
|
551
|
-
|
|
552
|
-
},
|
|
553
|
-
return /* @__PURE__ */
|
|
636
|
+
const y = Ce(() => xe(i, a), [i, a]), {
|
|
637
|
+
edit: b,
|
|
638
|
+
...x
|
|
639
|
+
} = y, d = (O) => p(O), m = (O, S) => {
|
|
640
|
+
O.preventDefault(), h?.(S);
|
|
641
|
+
}, C = (r ?? "") in i ? r : Object.keys(y)[0], w = t ? y[C] : null, _ = Object.values(x);
|
|
642
|
+
return /* @__PURE__ */ L(X, { sx: {
|
|
554
643
|
...J.container,
|
|
555
|
-
...
|
|
556
|
-
}, ...
|
|
557
|
-
/* @__PURE__ */
|
|
558
|
-
/* @__PURE__ */
|
|
559
|
-
!!
|
|
560
|
-
/* @__PURE__ */
|
|
561
|
-
/* @__PURE__ */
|
|
562
|
-
...
|
|
644
|
+
...s
|
|
645
|
+
}, ...c, className: "inline", children: [
|
|
646
|
+
/* @__PURE__ */ l(Ot, { data: _, labels: o?.options, children: /* @__PURE__ */ L(Ze, { value: w?.value, exclusive: !0, className: "inline", sx: J.options.menu, onChange: m, children: [
|
|
647
|
+
/* @__PURE__ */ l(ke, { labels: o?.options, data: _ }),
|
|
648
|
+
!!b && /* @__PURE__ */ L(z, { children: [
|
|
649
|
+
/* @__PURE__ */ l(ae, { orientation: "vertical" }),
|
|
650
|
+
/* @__PURE__ */ l(ke, { labels: o?.options, data: [{
|
|
651
|
+
...b,
|
|
563
652
|
disabled: !e.length
|
|
564
653
|
}] })
|
|
565
654
|
] })
|
|
566
655
|
] }) }),
|
|
567
|
-
/* @__PURE__ */
|
|
568
|
-
/* @__PURE__ */
|
|
569
|
-
!!e.length && /* @__PURE__ */
|
|
570
|
-
/* @__PURE__ */
|
|
656
|
+
/* @__PURE__ */ l(ae, { flexItem: !0 }),
|
|
657
|
+
/* @__PURE__ */ l(Dt, { hasValues: !!e.length, labels: o?.noData }),
|
|
658
|
+
!!e.length && /* @__PURE__ */ l(X, { sx: J.chip.container, className: "inline", children: e.map((O) => /* @__PURE__ */ l(Ue, { value: O, labels: o?.chip, chipProps: n, onDelete: d, onChipToggle: u }, O.id)) }),
|
|
659
|
+
/* @__PURE__ */ l(It, { values: e, labels: o?.actions, onAllChipToggle: f, onAllDelete: v })
|
|
571
660
|
] });
|
|
572
661
|
}
|
|
573
|
-
function
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
data: r,
|
|
662
|
+
function Ot(t) {
|
|
663
|
+
const e = E(5), {
|
|
664
|
+
data: n,
|
|
577
665
|
labels: o,
|
|
578
|
-
children:
|
|
666
|
+
children: i
|
|
579
667
|
} = t;
|
|
580
|
-
if (
|
|
668
|
+
if (n.length <= 1)
|
|
581
669
|
return null;
|
|
582
|
-
const
|
|
583
|
-
let
|
|
584
|
-
e[0] !==
|
|
585
|
-
let
|
|
586
|
-
return e[2] !==
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
] }), e[2] =
|
|
670
|
+
const a = o?.mode?.title ?? K.options.mode.title;
|
|
671
|
+
let r;
|
|
672
|
+
e[0] !== a ? (r = /* @__PURE__ */ l(Y, { variant: "subtitle2", color: "text.secondary", sx: J.options.title, className: "inline", children: a }), e[0] = a, e[1] = r) : r = e[1];
|
|
673
|
+
let s;
|
|
674
|
+
return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ L(z, { children: [
|
|
675
|
+
r,
|
|
676
|
+
i
|
|
677
|
+
] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
|
|
590
678
|
}
|
|
591
|
-
function
|
|
679
|
+
function ke({
|
|
592
680
|
data: t,
|
|
593
681
|
labels: e
|
|
594
682
|
}) {
|
|
595
|
-
return t.map((
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
return /* @__PURE__ */ n(ae, { title: l, placement: "bottom", children: /* @__PURE__ */ n(we, { disabled: !!r.disabled, value: r.value, "aria-label": r.value, children: /* @__PURE__ */ n(Oe, { children: /* @__PURE__ */ n(r.icon, {}) }) }) }, r.value);
|
|
683
|
+
return t.map((n) => {
|
|
684
|
+
const i = (e?.mode?.options ?? K.options.mode.options)[n.value];
|
|
685
|
+
return /* @__PURE__ */ l(de, { title: i, placement: "bottom", children: /* @__PURE__ */ l(ve, { disabled: !!n.disabled, value: n.value, "aria-label": n.value, children: /* @__PURE__ */ l(_e, { children: /* @__PURE__ */ l(n.icon, {}) }) }) }, n.value);
|
|
599
686
|
});
|
|
600
687
|
}
|
|
601
|
-
function
|
|
602
|
-
const e =
|
|
603
|
-
hasValues:
|
|
688
|
+
function Dt(t) {
|
|
689
|
+
const e = E(7), {
|
|
690
|
+
hasValues: n,
|
|
604
691
|
labels: o
|
|
605
692
|
} = t;
|
|
606
|
-
if (
|
|
693
|
+
if (n)
|
|
607
694
|
return null;
|
|
608
|
-
const
|
|
609
|
-
let
|
|
610
|
-
e[0] !==
|
|
695
|
+
const i = o?.title ?? K.noData.title, a = o?.description ?? K.noData.description;
|
|
696
|
+
let r;
|
|
697
|
+
e[0] !== i ? (r = /* @__PURE__ */ l(Y, { variant: "body1", color: "textSecondary", children: i }), e[0] = i, e[1] = r) : r = e[1];
|
|
698
|
+
let s;
|
|
699
|
+
e[2] !== a ? (s = /* @__PURE__ */ l(Y, { variant: "body2", color: "textSecondary", children: a }), e[2] = a, e[3] = s) : s = e[3];
|
|
611
700
|
let c;
|
|
612
|
-
e[
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
c
|
|
617
|
-
] }), e[4] = i, e[5] = c, e[6] = a) : a = e[6], a;
|
|
701
|
+
return e[4] !== r || e[5] !== s ? (c = /* @__PURE__ */ L(z, { children: [
|
|
702
|
+
r,
|
|
703
|
+
s
|
|
704
|
+
] }), e[4] = r, e[5] = s, e[6] = c) : c = e[6], c;
|
|
618
705
|
}
|
|
619
|
-
function
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
values: r,
|
|
706
|
+
function It(t) {
|
|
707
|
+
const e = E(13), {
|
|
708
|
+
values: n,
|
|
623
709
|
labels: o,
|
|
624
|
-
onAllChipToggle:
|
|
625
|
-
onAllDelete:
|
|
710
|
+
onAllChipToggle: i,
|
|
711
|
+
onAllDelete: a
|
|
626
712
|
} = t;
|
|
627
|
-
if (
|
|
713
|
+
if (n.length <= 1)
|
|
628
714
|
return null;
|
|
629
|
-
const
|
|
715
|
+
const s = n.some(Lt) ? o?.toggleAll?.active ?? K.actions.toggleAll.active : o?.toggleAll?.inactive ?? K.actions.toggleAll.inactive, c = o?.deleteAll ?? K.actions.deleteAll;
|
|
630
716
|
let u;
|
|
631
|
-
e[0] !==
|
|
717
|
+
e[0] !== i ? (u = () => i(), e[0] = i, e[1] = u) : u = e[1];
|
|
718
|
+
let p;
|
|
719
|
+
e[2] !== u || e[3] !== s ? (p = /* @__PURE__ */ l(we, { color: "inherit", onClick: u, children: s }), e[2] = u, e[3] = s, e[4] = p) : p = e[4];
|
|
632
720
|
let h;
|
|
633
|
-
e[
|
|
721
|
+
e[5] !== a ? (h = () => a(), e[5] = a, e[6] = h) : h = e[6];
|
|
634
722
|
let f;
|
|
635
|
-
e[
|
|
636
|
-
let
|
|
637
|
-
e[
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
p
|
|
642
|
-
] }), e[10] = h, e[11] = p, e[12] = y) : y = e[12], y;
|
|
723
|
+
e[7] !== c || e[8] !== h ? (f = /* @__PURE__ */ l(we, { color: "error", onClick: h, children: c }), e[7] = c, e[8] = h, e[9] = f) : f = e[9];
|
|
724
|
+
let v;
|
|
725
|
+
return e[10] !== p || e[11] !== f ? (v = /* @__PURE__ */ L(X, { children: [
|
|
726
|
+
p,
|
|
727
|
+
f
|
|
728
|
+
] }), e[10] = p, e[11] = f, e[12] = v) : v = e[12], v;
|
|
643
729
|
}
|
|
644
|
-
function
|
|
730
|
+
function Lt(t) {
|
|
645
731
|
return t.visible;
|
|
646
732
|
}
|
|
647
|
-
function
|
|
648
|
-
const e =
|
|
649
|
-
let
|
|
650
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
733
|
+
function kt(t) {
|
|
734
|
+
const e = E(3);
|
|
735
|
+
let n;
|
|
736
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fill: "currentColor", d: "M3 13.5c-.413 0-.766-.147-1.06-.44A1.445 1.445 0 0 1 1.5 12V6c0-.412.147-.766.44-1.06.294-.293.647-.44 1.06-.44h12c.412 0 .766.147 1.06.44.293.294.44.647.44 1.06v6c0 .412-.147.766-.44 1.06-.294.293-.647.44-1.06.44H3ZM3 12h12V6h-2.25v3h-1.5V6h-1.5v3h-1.5V6h-1.5v3h-1.5V6H3v6Z" }), e[0] = n) : n = e[0];
|
|
651
737
|
let o;
|
|
652
|
-
return e[1] !== t ? (o = /* @__PURE__ */
|
|
738
|
+
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
653
739
|
}
|
|
654
|
-
function
|
|
655
|
-
const e =
|
|
656
|
-
let
|
|
657
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
740
|
+
function Rt(t) {
|
|
741
|
+
const e = E(3);
|
|
742
|
+
let n;
|
|
743
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fill: "currentColor", fillRule: "evenodd", d: "M9 1.5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15ZM9 3a6 6 0 1 0 0 12A6 6 0 0 0 9 3Zm0 4.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z", clipRule: "evenodd" }), e[0] = n) : n = e[0];
|
|
658
744
|
let o;
|
|
659
|
-
return e[1] !== t ? (o = /* @__PURE__ */
|
|
745
|
+
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
660
746
|
}
|
|
661
|
-
function
|
|
662
|
-
const e =
|
|
663
|
-
let
|
|
664
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
665
|
-
let
|
|
666
|
-
return e[2] !== t ? (
|
|
667
|
-
|
|
747
|
+
function Et(t) {
|
|
748
|
+
const e = E(4);
|
|
749
|
+
let n, o;
|
|
750
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 13.5v-9h9v9h-9Zm.75-8.25h7.5v7.5h-7.5v-7.5Z", clipRule: "evenodd" }), o = /* @__PURE__ */ l("path", { fill: "#2C3032", fillRule: "evenodd", d: "M1.5 3A1.5 1.5 0 0 1 3 1.5h12A1.5 1.5 0 0 1 16.5 3v12a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 15V3ZM3 3h12v12H3V3Z", clipRule: "evenodd" }), e[0] = n, e[1] = o) : (n = e[0], o = e[1]);
|
|
751
|
+
let i;
|
|
752
|
+
return e[2] !== t ? (i = /* @__PURE__ */ L("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
|
|
753
|
+
n,
|
|
668
754
|
o
|
|
669
|
-
] }), e[2] = t, e[3] =
|
|
755
|
+
] }), e[2] = t, e[3] = i) : i = e[3], i;
|
|
670
756
|
}
|
|
671
757
|
const re = {
|
|
672
758
|
action: {
|
|
@@ -720,7 +806,7 @@ const re = {
|
|
|
720
806
|
}
|
|
721
807
|
}
|
|
722
808
|
}
|
|
723
|
-
},
|
|
809
|
+
}, Pt = {
|
|
724
810
|
"m-km": {
|
|
725
811
|
short: "m-km"
|
|
726
812
|
},
|
|
@@ -748,15 +834,15 @@ const re = {
|
|
|
748
834
|
feet: {
|
|
749
835
|
short: "ft"
|
|
750
836
|
}
|
|
751
|
-
},
|
|
837
|
+
}, Bt = {
|
|
752
838
|
distance: {
|
|
753
|
-
icon: /* @__PURE__ */
|
|
839
|
+
icon: /* @__PURE__ */ l(kt, {})
|
|
754
840
|
},
|
|
755
841
|
buffer: {
|
|
756
|
-
icon: /* @__PURE__ */
|
|
842
|
+
icon: /* @__PURE__ */ l(Rt, {})
|
|
757
843
|
},
|
|
758
844
|
area: {
|
|
759
|
-
icon: /* @__PURE__ */
|
|
845
|
+
icon: /* @__PURE__ */ l(Et, {})
|
|
760
846
|
}
|
|
761
847
|
}, Q = {
|
|
762
848
|
container: {
|
|
@@ -823,7 +909,7 @@ const re = {
|
|
|
823
909
|
}) => t.primary.main,
|
|
824
910
|
backgroundColor: ({
|
|
825
911
|
palette: t
|
|
826
|
-
}) =>
|
|
912
|
+
}) => Qe(t.primary.main, 0.08)
|
|
827
913
|
},
|
|
828
914
|
modal: {
|
|
829
915
|
toggle: {
|
|
@@ -890,280 +976,276 @@ const re = {
|
|
|
890
976
|
}
|
|
891
977
|
}
|
|
892
978
|
};
|
|
893
|
-
function
|
|
894
|
-
const e =
|
|
895
|
-
enabled:
|
|
979
|
+
function fo(t) {
|
|
980
|
+
const e = E(46), {
|
|
981
|
+
enabled: n,
|
|
896
982
|
actionProps: o,
|
|
897
|
-
labels:
|
|
898
|
-
modes:
|
|
899
|
-
modesMapping:
|
|
900
|
-
unitsMapping:
|
|
901
|
-
modeSelected:
|
|
983
|
+
labels: i,
|
|
984
|
+
modes: a,
|
|
985
|
+
modesMapping: r,
|
|
986
|
+
unitsMapping: s,
|
|
987
|
+
modeSelected: c,
|
|
902
988
|
PaperProps: u,
|
|
903
|
-
units:
|
|
904
|
-
unitSelected:
|
|
905
|
-
onActionToggle:
|
|
906
|
-
onChangeMode:
|
|
907
|
-
onChangeUnit:
|
|
908
|
-
} = t,
|
|
989
|
+
units: p,
|
|
990
|
+
unitSelected: h,
|
|
991
|
+
onActionToggle: f,
|
|
992
|
+
onChangeMode: v,
|
|
993
|
+
onChangeUnit: y
|
|
994
|
+
} = t, b = i === void 0 ? re : i, x = r === void 0 ? Bt : r, d = s === void 0 ? Pt : s;
|
|
909
995
|
let m;
|
|
910
996
|
e[0] !== u ? (m = u === void 0 ? {} : u, e[0] = u, e[1] = m) : m = e[1];
|
|
911
|
-
let
|
|
997
|
+
let g, C;
|
|
912
998
|
e[2] !== m ? ({
|
|
913
|
-
sx:
|
|
914
|
-
...
|
|
915
|
-
} = m, e[2] = m, e[3] =
|
|
999
|
+
sx: C,
|
|
1000
|
+
...g
|
|
1001
|
+
} = m, e[2] = m, e[3] = g, e[4] = C) : (g = e[3], C = e[4]);
|
|
916
1002
|
let w;
|
|
917
|
-
e[5] !==
|
|
918
|
-
const
|
|
919
|
-
let
|
|
920
|
-
e[7] !==
|
|
921
|
-
const T =
|
|
922
|
-
let
|
|
923
|
-
e[10] !== T || e[11] !==
|
|
924
|
-
const
|
|
1003
|
+
e[5] !== f ? (w = (V) => f(!!V), e[5] = f, e[6] = w) : w = e[6];
|
|
1004
|
+
const _ = w;
|
|
1005
|
+
let O, S;
|
|
1006
|
+
e[7] !== a || e[8] !== x ? (S = xe(a, x), e[7] = a, e[8] = x, e[9] = S) : S = e[9], O = S;
|
|
1007
|
+
const T = O, I = (c ?? "") in T;
|
|
1008
|
+
let D;
|
|
1009
|
+
e[10] !== T || e[11] !== I || e[12] !== c ? (D = I ? c : Object.keys(T)[0], e[10] = T, e[11] = I, e[12] = c, e[13] = D) : D = e[13];
|
|
1010
|
+
const A = D, M = T[A];
|
|
925
1011
|
let k;
|
|
926
|
-
const
|
|
927
|
-
let
|
|
928
|
-
e[14] !==
|
|
929
|
-
[
|
|
930
|
-
}, e[14] =
|
|
931
|
-
const
|
|
932
|
-
let
|
|
933
|
-
if (e[18] !==
|
|
1012
|
+
const R = p[A];
|
|
1013
|
+
let P;
|
|
1014
|
+
e[14] !== A || e[15] !== R || e[16] !== p ? (P = Object.keys(p).length >= 1 ? p : {
|
|
1015
|
+
[A]: R.slice(0, 1)
|
|
1016
|
+
}, e[14] = A, e[15] = R, e[16] = p, e[17] = P) : P = e[17];
|
|
1017
|
+
const $ = P[A];
|
|
1018
|
+
let B;
|
|
1019
|
+
if (e[18] !== $ || e[19] !== d) {
|
|
934
1020
|
let V;
|
|
935
|
-
e[21] !== d ? (V = (
|
|
936
|
-
...
|
|
937
|
-
...d[
|
|
938
|
-
}), e[21] = d, e[22] = V) : V = e[22],
|
|
1021
|
+
e[21] !== d ? (V = (te) => ({
|
|
1022
|
+
...te,
|
|
1023
|
+
...d[te.value]
|
|
1024
|
+
}), e[21] = d, e[22] = V) : V = e[22], B = $.map(V), e[18] = $, e[19] = d, e[20] = B;
|
|
939
1025
|
} else
|
|
940
|
-
|
|
941
|
-
k =
|
|
942
|
-
const
|
|
943
|
-
let
|
|
944
|
-
e[23] !==
|
|
1026
|
+
B = e[20];
|
|
1027
|
+
k = B;
|
|
1028
|
+
const N = k;
|
|
1029
|
+
let W;
|
|
1030
|
+
e[23] !== C ? (W = {
|
|
945
1031
|
...Q.container,
|
|
946
|
-
...
|
|
947
|
-
}, e[23] =
|
|
948
|
-
const
|
|
1032
|
+
...C
|
|
1033
|
+
}, e[23] = C, e[24] = W) : W = e[24];
|
|
1034
|
+
const G = b?.action, ee = M?.icon;
|
|
1035
|
+
let F;
|
|
1036
|
+
e[25] !== o || e[26] !== n || e[27] !== _ || e[28] !== G || e[29] !== ee ? (F = /* @__PURE__ */ l($t, { actionProps: o, labels: G, enabled: n, onActionToggle: _, children: ee }), e[25] = o, e[26] = n, e[27] = _, e[28] = G, e[29] = ee, e[30] = F) : F = e[30];
|
|
1037
|
+
const ie = b?.options;
|
|
1038
|
+
let Z;
|
|
1039
|
+
e[31] !== N || e[32] !== T || e[33] !== A || e[34] !== v || e[35] !== y || e[36] !== ie || e[37] !== h ? (Z = /* @__PURE__ */ l(jt, { labels: ie, modes: T, modeSelected: A, units: N, unitSelected: h, onChangeMode: v, onChangeUnit: y }), e[31] = N, e[32] = T, e[33] = A, e[34] = v, e[35] = y, e[36] = ie, e[37] = h, e[38] = Z) : Z = e[38];
|
|
1040
|
+
let H;
|
|
1041
|
+
e[39] !== F || e[40] !== Z ? (H = /* @__PURE__ */ L(X, { children: [
|
|
1042
|
+
F,
|
|
1043
|
+
Z
|
|
1044
|
+
] }), e[39] = F, e[40] = Z, e[41] = H) : H = e[41];
|
|
949
1045
|
let q;
|
|
950
|
-
|
|
951
|
-
const ne = g == null ? void 0 : g.options;
|
|
952
|
-
let P;
|
|
953
|
-
e[31] !== oe || e[32] !== T || e[33] !== L || e[34] !== y || e[35] !== b || e[36] !== ne || e[37] !== f ? (P = /* @__PURE__ */ n(Gt, { labels: ne, modes: T, modeSelected: L, units: oe, unitSelected: f, onChangeMode: y, onChangeUnit: b }), e[31] = oe, e[32] = T, e[33] = L, e[34] = y, e[35] = b, e[36] = ne, e[37] = f, e[38] = P) : P = e[38];
|
|
954
|
-
let $;
|
|
955
|
-
e[39] !== q || e[40] !== P ? ($ = /* @__PURE__ */ O(G, { children: [
|
|
956
|
-
q,
|
|
957
|
-
P
|
|
958
|
-
] }), e[39] = q, e[40] = P, e[41] = $) : $ = e[41];
|
|
959
|
-
let ie;
|
|
960
|
-
return e[42] !== v || e[43] !== N || e[44] !== $ ? (ie = /* @__PURE__ */ n(xe, { sx: N, ...v, children: $ }), e[42] = v, e[43] = N, e[44] = $, e[45] = ie) : ie = e[45], ie;
|
|
1046
|
+
return e[42] !== g || e[43] !== W || e[44] !== H ? (q = /* @__PURE__ */ l(ye, { sx: W, ...g, children: H }), e[42] = g, e[43] = W, e[44] = H, e[45] = q) : q = e[45], q;
|
|
961
1047
|
}
|
|
962
|
-
function
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
actionProps: r,
|
|
1048
|
+
function $t(t) {
|
|
1049
|
+
const e = E(12), {
|
|
1050
|
+
actionProps: n,
|
|
966
1051
|
labels: o,
|
|
967
|
-
enabled:
|
|
968
|
-
children:
|
|
969
|
-
onActionToggle:
|
|
970
|
-
} = t,
|
|
1052
|
+
enabled: i,
|
|
1053
|
+
children: a,
|
|
1054
|
+
onActionToggle: r
|
|
1055
|
+
} = t, s = i ? "active" : "inactive", c = o?.tooltip?.[s] ?? re.action.tooltip[s], u = n?.TooltipProps;
|
|
1056
|
+
let p;
|
|
1057
|
+
e[0] !== i || e[1] !== r ? (p = () => r(!i), e[0] = i, e[1] = r, e[2] = p) : p = e[2];
|
|
971
1058
|
let h;
|
|
972
|
-
e[
|
|
1059
|
+
e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== p ? (h = /* @__PURE__ */ l(ve, { value: "toggle", sx: Q.actions.icon, onClick: p, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = p, e[7] = h) : h = e[7];
|
|
973
1060
|
let f;
|
|
974
|
-
|
|
975
|
-
let p;
|
|
976
|
-
return e[8] !== a || e[9] !== u || e[10] !== f ? (p = /* @__PURE__ */ n(ae, { title: a, placement: "right", ...u, children: f }), e[8] = a, e[9] = u, e[10] = f, e[11] = p) : p = e[11], p;
|
|
1061
|
+
return e[8] !== c || e[9] !== u || e[10] !== h ? (f = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: h }), e[8] = c, e[9] = u, e[10] = h, e[11] = f) : f = e[11], f;
|
|
977
1062
|
}
|
|
978
|
-
function
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
modes: r,
|
|
1063
|
+
function jt(t) {
|
|
1064
|
+
const e = E(68), {
|
|
1065
|
+
modes: n,
|
|
982
1066
|
modeSelected: o,
|
|
983
|
-
units:
|
|
984
|
-
unitSelected:
|
|
985
|
-
labels:
|
|
986
|
-
onChangeMode:
|
|
987
|
-
onChangeUnit:
|
|
988
|
-
} = t, [u,
|
|
989
|
-
let y, b,
|
|
990
|
-
if (e[0] !== u || e[1] !==
|
|
1067
|
+
units: i,
|
|
1068
|
+
unitSelected: a,
|
|
1069
|
+
labels: r,
|
|
1070
|
+
onChangeMode: s,
|
|
1071
|
+
onChangeUnit: c
|
|
1072
|
+
} = t, [u, p] = ne(null), [h, f] = ne(!1);
|
|
1073
|
+
let v, y, b, x, d, m, g, C, w, _, O, S, T, I, D, A;
|
|
1074
|
+
if (e[0] !== u || e[1] !== r?.mode?.options || e[2] !== r?.mode?.title || e[3] !== r?.units?.title || e[4] !== o || e[5] !== n || e[6] !== s || e[7] !== c || e[8] !== a || e[9] !== i) {
|
|
991
1075
|
T = Symbol.for("react.early_return_sentinel");
|
|
992
1076
|
e: {
|
|
993
|
-
const
|
|
994
|
-
let
|
|
995
|
-
if (e[26] !==
|
|
1077
|
+
const $ = Object.values(n);
|
|
1078
|
+
let B;
|
|
1079
|
+
if (e[26] !== i ? (B = Object.values(i), e[26] = i, e[27] = B) : B = e[27], A = B, !($.length > 1 || A.length > 1)) {
|
|
996
1080
|
T = null;
|
|
997
1081
|
break e;
|
|
998
1082
|
}
|
|
999
|
-
const
|
|
1000
|
-
let
|
|
1001
|
-
e[28] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1002
|
-
|
|
1003
|
-
}, e[28] =
|
|
1004
|
-
const
|
|
1083
|
+
const W = !!u;
|
|
1084
|
+
let G;
|
|
1085
|
+
e[28] === Symbol.for("react.memo_cache_sentinel") ? (G = (U) => {
|
|
1086
|
+
p(U.currentTarget);
|
|
1087
|
+
}, e[28] = G) : G = e[28];
|
|
1088
|
+
const ee = G;
|
|
1089
|
+
let F;
|
|
1090
|
+
e[29] === Symbol.for("react.memo_cache_sentinel") ? (F = () => {
|
|
1091
|
+
p(null);
|
|
1092
|
+
}, e[29] = F) : F = e[29];
|
|
1093
|
+
const ie = F;
|
|
1094
|
+
let Z;
|
|
1095
|
+
e[30] !== s ? (Z = (U, le) => {
|
|
1096
|
+
U.preventDefault(), s(le.value), ie();
|
|
1097
|
+
}, e[30] = s, e[31] = Z) : Z = e[31];
|
|
1098
|
+
const H = Z;
|
|
1099
|
+
let q;
|
|
1100
|
+
e[32] === Symbol.for("react.memo_cache_sentinel") ? (q = () => {
|
|
1101
|
+
f(!0);
|
|
1102
|
+
}, e[32] = q) : q = e[32], b = q;
|
|
1103
|
+
let V;
|
|
1104
|
+
e[33] === Symbol.for("react.memo_cache_sentinel") ? (V = () => {
|
|
1105
|
+
f(!1);
|
|
1106
|
+
}, e[33] = V) : V = e[33], x = V;
|
|
1005
1107
|
let te;
|
|
1006
|
-
e[
|
|
1007
|
-
|
|
1008
|
-
}, e[
|
|
1009
|
-
const
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
}, e[30] = c, e[31] = K) : K = e[31];
|
|
1014
|
-
const he = K;
|
|
1015
|
-
let fe;
|
|
1016
|
-
e[32] === Symbol.for("react.memo_cache_sentinel") ? (fe = () => {
|
|
1017
|
-
p(!0);
|
|
1018
|
-
}, e[32] = fe) : fe = e[32], g = fe;
|
|
1019
|
-
let me;
|
|
1020
|
-
e[33] === Symbol.for("react.memo_cache_sentinel") ? (me = () => {
|
|
1021
|
-
p(!1);
|
|
1022
|
-
}, e[33] = me) : me = e[33], C = me;
|
|
1023
|
-
let Me;
|
|
1024
|
-
e[34] !== a ? (Me = (Y) => {
|
|
1025
|
-
C(), a(Y);
|
|
1026
|
-
}, e[34] = a, e[35] = Me) : Me = e[35], b = Me;
|
|
1027
|
-
const He = ((N = i == null ? void 0 : i.mode) == null ? void 0 : N.title) ?? re.options.mode.title;
|
|
1028
|
-
I = ((H = i == null ? void 0 : i.units) == null ? void 0 : H.title) ?? re.options.units.title, d = P.length > 1 && L.length > 1;
|
|
1029
|
-
let Ce;
|
|
1030
|
-
e[36] !== s || e[37] !== l ? (Ce = l.find((Y) => Y.value === s) ?? l[0], e[36] = s, e[37] = l, e[38] = Ce) : Ce = e[38], S = Ce, e[39] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ n(se, { sx: Q.options.icon, onClick: ge, children: /* @__PURE__ */ n(Ge, {}) }), e[39] = M) : M = e[39], y = Ze, v = "measurement-menu", x = u, w = V, A = de, e[40] === Symbol.for("react.memo_cache_sentinel") ? (D = {
|
|
1108
|
+
e[34] !== c ? (te = (U) => {
|
|
1109
|
+
x(), c(U);
|
|
1110
|
+
}, e[34] = c, e[35] = te) : te = e[35], y = te;
|
|
1111
|
+
const fe = r?.mode?.title ?? re.options.mode.title;
|
|
1112
|
+
D = r?.units?.title ?? re.options.units.title, d = $.length > 1 && A.length > 1;
|
|
1113
|
+
let oe;
|
|
1114
|
+
e[36] !== a || e[37] !== i ? (oe = i.find((U) => U.value === a) ?? i[0], e[36] = a, e[37] = i, e[38] = oe) : oe = e[38], I = oe, e[39] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ l(se, { sx: Q.options.icon, onClick: ee, children: /* @__PURE__ */ l(Pe, {}) }), e[39] = S) : S = e[39], v = $e, g = "measurement-menu", C = u, w = W, _ = ie, e[40] === Symbol.for("react.memo_cache_sentinel") ? (O = {
|
|
1031
1115
|
"aria-labelledby": "basic-button",
|
|
1032
1116
|
sx: Q.options.menu
|
|
1033
|
-
}, e[40] =
|
|
1034
|
-
/* @__PURE__ */
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
/* @__PURE__ */
|
|
1040
|
-
|
|
1041
|
-
] }, Y.value);
|
|
1117
|
+
}, e[40] = O) : O = e[40], m = $.length > 1 && /* @__PURE__ */ L(z, { children: [
|
|
1118
|
+
/* @__PURE__ */ l(Y, { variant: "subtitle2", color: "text.secondary", sx: Q.options.title, children: fe }),
|
|
1119
|
+
$.map((U) => {
|
|
1120
|
+
const he = (r?.mode?.options ?? re.options.mode.options)[U.value];
|
|
1121
|
+
return /* @__PURE__ */ L(ge, { onClick: (Me) => H(Me, U), selected: U.value === o, children: [
|
|
1122
|
+
/* @__PURE__ */ l(je, { sx: Q.options.icons, children: /* @__PURE__ */ l(_e, { children: U.icon }) }),
|
|
1123
|
+
/* @__PURE__ */ l(be, { children: he })
|
|
1124
|
+
] }, U.value);
|
|
1042
1125
|
})
|
|
1043
1126
|
] });
|
|
1044
1127
|
}
|
|
1045
|
-
e[0] = u, e[1] =
|
|
1128
|
+
e[0] = u, e[1] = r?.mode?.options, e[2] = r?.mode?.title, e[3] = r?.units?.title, e[4] = o, e[5] = n, e[6] = s, e[7] = c, e[8] = a, e[9] = i, e[10] = v, e[11] = y, e[12] = b, e[13] = x, e[14] = d, e[15] = m, e[16] = g, e[17] = C, e[18] = w, e[19] = _, e[20] = O, e[21] = S, e[22] = T, e[23] = I, e[24] = D, e[25] = A;
|
|
1046
1129
|
} else
|
|
1047
|
-
|
|
1130
|
+
v = e[10], y = e[11], b = e[12], x = e[13], d = e[14], m = e[15], g = e[16], C = e[17], w = e[18], _ = e[19], O = e[20], S = e[21], T = e[22], I = e[23], D = e[24], A = e[25];
|
|
1048
1131
|
if (T !== Symbol.for("react.early_return_sentinel"))
|
|
1049
1132
|
return T;
|
|
1050
|
-
let
|
|
1051
|
-
e[41] !== d ? (
|
|
1133
|
+
let M;
|
|
1134
|
+
e[41] !== d ? (M = d && /* @__PURE__ */ l(ae, {}), e[41] = d, e[42] = M) : M = e[42];
|
|
1052
1135
|
let k;
|
|
1053
|
-
e[43] !==
|
|
1054
|
-
/* @__PURE__ */
|
|
1055
|
-
/* @__PURE__ */
|
|
1056
|
-
/* @__PURE__ */
|
|
1136
|
+
e[43] !== y || e[44] !== b || e[45] !== x || e[46] !== r || e[47] !== h || e[48] !== I || e[49] !== D || e[50] !== i || e[51] !== A.length ? (k = A.length > 1 && /* @__PURE__ */ L(z, { children: [
|
|
1137
|
+
/* @__PURE__ */ L(ge, { onClick: b, children: [
|
|
1138
|
+
/* @__PURE__ */ l(be, { children: D }),
|
|
1139
|
+
/* @__PURE__ */ l(Y, { variant: "caption", fontWeight: 500, sx: Q.options.tag, children: I.short })
|
|
1057
1140
|
] }),
|
|
1058
|
-
/* @__PURE__ */
|
|
1059
|
-
] }), e[43] =
|
|
1060
|
-
let
|
|
1061
|
-
e[53] !== m || e[54] !== k || e[55] !==
|
|
1141
|
+
/* @__PURE__ */ l(Zt, { open: h, labels: r, units: i, unitSelectedValue: I, onClose: x, onSubmit: y })
|
|
1142
|
+
] }), e[43] = y, e[44] = b, e[45] = x, e[46] = r, e[47] = h, e[48] = I, e[49] = D, e[50] = i, e[51] = A.length, e[52] = k) : k = e[52];
|
|
1143
|
+
let R;
|
|
1144
|
+
e[53] !== m || e[54] !== k || e[55] !== M ? (R = /* @__PURE__ */ L("div", { children: [
|
|
1062
1145
|
m,
|
|
1063
|
-
_,
|
|
1064
|
-
k
|
|
1065
|
-
] }), e[53] = m, e[54] = k, e[55] = _, e[56] = B) : B = e[56];
|
|
1066
|
-
let E;
|
|
1067
|
-
e[57] !== y || e[58] !== B || e[59] !== v || e[60] !== x || e[61] !== w || e[62] !== A || e[63] !== D ? (E = /* @__PURE__ */ n(y, { id: v, anchorEl: x, open: w, onClose: A, MenuListProps: D, children: B }), e[57] = y, e[58] = B, e[59] = v, e[60] = x, e[61] = w, e[62] = A, e[63] = D, e[64] = E) : E = e[64];
|
|
1068
|
-
let W;
|
|
1069
|
-
return e[65] !== E || e[66] !== M ? (W = /* @__PURE__ */ O(j, { children: [
|
|
1070
1146
|
M,
|
|
1071
|
-
|
|
1072
|
-
] }), e[
|
|
1147
|
+
k
|
|
1148
|
+
] }), e[53] = m, e[54] = k, e[55] = M, e[56] = R) : R = e[56];
|
|
1149
|
+
let P;
|
|
1150
|
+
e[57] !== v || e[58] !== R || e[59] !== g || e[60] !== C || e[61] !== w || e[62] !== _ || e[63] !== O ? (P = /* @__PURE__ */ l(v, { id: g, anchorEl: C, open: w, onClose: _, MenuListProps: O, children: R }), e[57] = v, e[58] = R, e[59] = g, e[60] = C, e[61] = w, e[62] = _, e[63] = O, e[64] = P) : P = e[64];
|
|
1151
|
+
let j;
|
|
1152
|
+
return e[65] !== P || e[66] !== S ? (j = /* @__PURE__ */ L(z, { children: [
|
|
1153
|
+
S,
|
|
1154
|
+
P
|
|
1155
|
+
] }), e[65] = P, e[66] = S, e[67] = j) : j = e[67], j;
|
|
1073
1156
|
}
|
|
1074
|
-
function
|
|
1157
|
+
function Zt({
|
|
1075
1158
|
open: t,
|
|
1076
1159
|
labels: e,
|
|
1077
|
-
units:
|
|
1160
|
+
units: n,
|
|
1078
1161
|
unitSelectedValue: o,
|
|
1079
|
-
onClose:
|
|
1080
|
-
onSubmit:
|
|
1162
|
+
onClose: i,
|
|
1163
|
+
onSubmit: a
|
|
1081
1164
|
}) {
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
return /* @__PURE__ */ O(Qe, { open: t, component: G, onClose: l, maxWidth: "xs", PaperProps: {
|
|
1165
|
+
const [r, s] = ne("metric"), c = Ce(() => n.filter((x) => x.system === r), [r, n]), u = (x, d) => {
|
|
1166
|
+
s(d);
|
|
1167
|
+
}, p = e?.units?.modal?.options ?? re.options.units.modal.options, h = p[r].options, f = e?.units?.modal?.title ?? re.options.units.modal.title, v = e?.units?.modal?.subtitle ?? re.options.units.modal.subtitle, y = e?.units?.modal?.apply ?? re.options.units.modal.apply, b = o.system === r ? o : c[0];
|
|
1168
|
+
return /* @__PURE__ */ L(Je, { open: t, component: X, onClose: i, maxWidth: "xs", PaperProps: {
|
|
1087
1169
|
component: "form",
|
|
1088
|
-
onSubmit: (
|
|
1089
|
-
|
|
1090
|
-
const
|
|
1091
|
-
|
|
1170
|
+
onSubmit: (x) => {
|
|
1171
|
+
x.preventDefault();
|
|
1172
|
+
const d = new FormData(x.currentTarget);
|
|
1173
|
+
a(d.get("unit-value"));
|
|
1092
1174
|
}
|
|
1093
1175
|
}, children: [
|
|
1094
|
-
/* @__PURE__ */
|
|
1095
|
-
|
|
1096
|
-
/* @__PURE__ */
|
|
1176
|
+
/* @__PURE__ */ L(et, { sx: Q.options.modal.title, children: [
|
|
1177
|
+
f,
|
|
1178
|
+
/* @__PURE__ */ l(se, { onClick: i, children: /* @__PURE__ */ l(Be, {}) })
|
|
1097
1179
|
] }),
|
|
1098
|
-
/* @__PURE__ */
|
|
1099
|
-
/* @__PURE__ */
|
|
1100
|
-
/* @__PURE__ */
|
|
1101
|
-
/* @__PURE__ */
|
|
1102
|
-
/* @__PURE__ */
|
|
1180
|
+
/* @__PURE__ */ L(tt, { sx: Q.options.modal.content, children: [
|
|
1181
|
+
/* @__PURE__ */ l(Y, { sx: Q.options.modal.subtitle, children: v }),
|
|
1182
|
+
/* @__PURE__ */ L(Ze, { color: "primary", value: r, exclusive: !0, fullWidth: !0, onChange: u, "aria-label": "system", sx: Q.options.modal.toggle, children: [
|
|
1183
|
+
/* @__PURE__ */ l(ve, { value: "metric", children: p.metric.title }),
|
|
1184
|
+
/* @__PURE__ */ l(ve, { value: "imperial", children: p.imperial.title })
|
|
1103
1185
|
] }),
|
|
1104
|
-
/* @__PURE__ */
|
|
1105
|
-
const
|
|
1106
|
-
return /* @__PURE__ */
|
|
1107
|
-
}) }) },
|
|
1186
|
+
/* @__PURE__ */ l(ot, { children: /* @__PURE__ */ l(lt, { "aria-labelledby": "unit-value", defaultValue: b?.value, name: "unit-value", sx: Q.options.modal.optionsGroup, children: c.map((x) => {
|
|
1187
|
+
const d = h[x.value];
|
|
1188
|
+
return /* @__PURE__ */ l(nt, { value: x.value, control: /* @__PURE__ */ l(it, {}), label: d }, x.value);
|
|
1189
|
+
}) }) }, b?.value)
|
|
1108
1190
|
] }),
|
|
1109
|
-
/* @__PURE__ */
|
|
1191
|
+
/* @__PURE__ */ l(rt, { sx: Q.options.modal.actions, children: /* @__PURE__ */ l(we, { variant: "contained", type: "submit", children: y }) })
|
|
1110
1192
|
] });
|
|
1111
1193
|
}
|
|
1112
|
-
const
|
|
1194
|
+
const Vt = {
|
|
1113
1195
|
enabled: "Show your current location",
|
|
1114
1196
|
disabled: "Location unavailable"
|
|
1115
|
-
},
|
|
1116
|
-
function
|
|
1117
|
-
const e =
|
|
1118
|
-
disabled:
|
|
1197
|
+
}, Ut = "geolocation";
|
|
1198
|
+
function mo(t) {
|
|
1199
|
+
const e = E(25), {
|
|
1200
|
+
disabled: n,
|
|
1119
1201
|
labels: o,
|
|
1120
|
-
PaperProps:
|
|
1121
|
-
TooltipProps:
|
|
1122
|
-
watch:
|
|
1123
|
-
onChange:
|
|
1124
|
-
onError:
|
|
1125
|
-
} = t, u =
|
|
1126
|
-
let
|
|
1127
|
-
e[0] !==
|
|
1202
|
+
PaperProps: i,
|
|
1203
|
+
TooltipProps: a,
|
|
1204
|
+
watch: r,
|
|
1205
|
+
onChange: s,
|
|
1206
|
+
onError: c
|
|
1207
|
+
} = t, u = Oe(null), p = "geolocation" in navigator, [h, f] = ne(p);
|
|
1208
|
+
let v, y;
|
|
1209
|
+
e[0] !== c ? (v = () => (p && navigator.permissions.query({
|
|
1128
1210
|
name: "geolocation"
|
|
1129
|
-
}).then((
|
|
1130
|
-
|
|
1131
|
-
|
|
1211
|
+
}).then((M) => {
|
|
1212
|
+
f(M.state === "granted"), M.onchange = () => {
|
|
1213
|
+
f(M.state === "granted");
|
|
1132
1214
|
};
|
|
1133
|
-
}).catch((
|
|
1134
|
-
|
|
1215
|
+
}).catch((M) => {
|
|
1216
|
+
f(!1), c?.(M);
|
|
1135
1217
|
}), () => {
|
|
1136
1218
|
u.current && navigator.geolocation.clearWatch(u.current);
|
|
1137
|
-
}),
|
|
1138
|
-
let
|
|
1139
|
-
e[3] !==
|
|
1140
|
-
|
|
1141
|
-
}, e[3] =
|
|
1142
|
-
const
|
|
1219
|
+
}), y = [p, c], e[0] = c, e[1] = v, e[2] = y) : (v = e[1], y = e[2]), De(v, y);
|
|
1220
|
+
let b;
|
|
1221
|
+
e[3] !== s ? (b = (M) => {
|
|
1222
|
+
s(M.coords);
|
|
1223
|
+
}, e[3] = s, e[4] = b) : b = e[4];
|
|
1224
|
+
const x = b;
|
|
1143
1225
|
let d;
|
|
1144
|
-
e[5] !==
|
|
1145
|
-
|
|
1146
|
-
}, e[5] =
|
|
1226
|
+
e[5] !== c ? (d = (M) => {
|
|
1227
|
+
f(!1), c?.(M);
|
|
1228
|
+
}, e[5] = c, e[6] = d) : d = e[6];
|
|
1147
1229
|
const m = d;
|
|
1148
|
-
let
|
|
1149
|
-
e[7] !== m || e[8] !==
|
|
1150
|
-
if (u.current && navigator.geolocation.clearWatch(u.current),
|
|
1151
|
-
u.current = navigator.geolocation.watchPosition(
|
|
1230
|
+
let g;
|
|
1231
|
+
e[7] !== m || e[8] !== x || e[9] !== r ? (g = () => {
|
|
1232
|
+
if (u.current && navigator.geolocation.clearWatch(u.current), r) {
|
|
1233
|
+
u.current = navigator.geolocation.watchPosition(x, m);
|
|
1152
1234
|
return;
|
|
1153
1235
|
}
|
|
1154
|
-
navigator.geolocation.getCurrentPosition(
|
|
1155
|
-
}, e[7] = m, e[8] =
|
|
1156
|
-
const
|
|
1236
|
+
navigator.geolocation.getCurrentPosition(x, m);
|
|
1237
|
+
}, e[7] = m, e[8] = x, e[9] = r, e[10] = g) : g = e[10];
|
|
1238
|
+
const C = g, _ = (o?.tooltip ?? Vt)[h ? "enabled" : "disabled"], O = o?.ariaLabel ?? Ut, S = !p || n;
|
|
1157
1239
|
let T;
|
|
1158
|
-
e[11] !==
|
|
1159
|
-
let S;
|
|
1160
|
-
e[13] !== x || e[14] !== D || e[15] !== M || e[16] !== T ? (S = /* @__PURE__ */ n(se, { onClick: x, "aria-label": D, disabled: M, children: T }), e[13] = x, e[14] = D, e[15] = M, e[16] = T, e[17] = S) : S = e[17];
|
|
1240
|
+
e[11] !== h ? (T = h ? /* @__PURE__ */ l(Ne, {}) : /* @__PURE__ */ l(Fe, {}), e[11] = h, e[12] = T) : T = e[12];
|
|
1161
1241
|
let I;
|
|
1162
|
-
e[
|
|
1163
|
-
let
|
|
1164
|
-
|
|
1242
|
+
e[13] !== C || e[14] !== O || e[15] !== S || e[16] !== T ? (I = /* @__PURE__ */ l(se, { onClick: C, "aria-label": O, disabled: S, children: T }), e[13] = C, e[14] = O, e[15] = S, e[16] = T, e[17] = I) : I = e[17];
|
|
1243
|
+
let D;
|
|
1244
|
+
e[18] !== a || e[19] !== I || e[20] !== _ ? (D = /* @__PURE__ */ l(de, { arrow: !0, placement: "right", title: _, ...a, children: I }), e[18] = a, e[19] = I, e[20] = _, e[21] = D) : D = e[21];
|
|
1245
|
+
let A;
|
|
1246
|
+
return e[22] !== i || e[23] !== D ? (A = /* @__PURE__ */ l(ye, { ...i, children: D }), e[22] = i, e[23] = D, e[24] = A) : A = e[24], A;
|
|
1165
1247
|
}
|
|
1166
|
-
const
|
|
1248
|
+
const Ae = {
|
|
1167
1249
|
zoom: {
|
|
1168
1250
|
position: "relative",
|
|
1169
1251
|
height: ({
|
|
@@ -1195,177 +1277,177 @@ const De = {
|
|
|
1195
1277
|
position: "absolute"
|
|
1196
1278
|
}
|
|
1197
1279
|
};
|
|
1198
|
-
function
|
|
1199
|
-
const e =
|
|
1200
|
-
zoom:
|
|
1280
|
+
function go(t) {
|
|
1281
|
+
const e = E(40), {
|
|
1282
|
+
zoom: n,
|
|
1201
1283
|
disabled: o,
|
|
1202
|
-
direction:
|
|
1203
|
-
isLoading:
|
|
1204
|
-
maxZoom:
|
|
1205
|
-
minZoom:
|
|
1206
|
-
PaperProps:
|
|
1284
|
+
direction: i,
|
|
1285
|
+
isLoading: a,
|
|
1286
|
+
maxZoom: r,
|
|
1287
|
+
minZoom: s,
|
|
1288
|
+
PaperProps: c,
|
|
1207
1289
|
ResetViewProps: u,
|
|
1208
|
-
showZoom:
|
|
1209
|
-
onChange:
|
|
1210
|
-
onReset:
|
|
1211
|
-
} = t,
|
|
1212
|
-
let
|
|
1213
|
-
e[0] !== u ? (
|
|
1214
|
-
Icon:
|
|
1215
|
-
} : u, e[0] = u, e[1] =
|
|
1216
|
-
const d =
|
|
1217
|
-
let
|
|
1218
|
-
e[2] !==
|
|
1219
|
-
const
|
|
1220
|
-
|
|
1221
|
-
}, e[2] =
|
|
1222
|
-
const
|
|
1290
|
+
showZoom: p,
|
|
1291
|
+
onChange: h,
|
|
1292
|
+
onReset: f
|
|
1293
|
+
} = t, v = i === void 0 ? "vertical" : i, y = r === void 0 ? 24 : r, b = s === void 0 ? 0 : s;
|
|
1294
|
+
let x;
|
|
1295
|
+
e[0] !== u ? (x = u === void 0 ? {
|
|
1296
|
+
Icon: He
|
|
1297
|
+
} : u, e[0] = u, e[1] = x) : x = e[1];
|
|
1298
|
+
const d = x, m = p === void 0 ? !0 : p;
|
|
1299
|
+
let g;
|
|
1300
|
+
e[2] !== y || e[3] !== h || e[4] !== n ? (g = () => {
|
|
1301
|
+
const B = Math.min(y, n + 1);
|
|
1302
|
+
h(B);
|
|
1303
|
+
}, e[2] = y, e[3] = h, e[4] = n, e[5] = g) : g = e[5];
|
|
1304
|
+
const C = g;
|
|
1223
1305
|
let w;
|
|
1224
|
-
e[6] !==
|
|
1225
|
-
const
|
|
1226
|
-
|
|
1227
|
-
}, e[6] =
|
|
1228
|
-
const
|
|
1229
|
-
let S;
|
|
1230
|
-
e[10] !== T ? (S = {
|
|
1231
|
-
...De.paper,
|
|
1232
|
-
flexDirection: T
|
|
1233
|
-
}, e[10] = T, e[11] = S) : S = e[11];
|
|
1306
|
+
e[6] !== b || e[7] !== h || e[8] !== n ? (w = () => {
|
|
1307
|
+
const B = Math.max(b, n - 1);
|
|
1308
|
+
h(B);
|
|
1309
|
+
}, e[6] = b, e[7] = h, e[8] = n, e[9] = w) : w = e[9];
|
|
1310
|
+
const _ = w, O = Math.floor(n), S = v === "vertical" ? "horizontal" : "vertical", T = v === "vertical" ? "column" : "row";
|
|
1234
1311
|
let I;
|
|
1235
|
-
e[
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
let
|
|
1240
|
-
e[
|
|
1241
|
-
|
|
1242
|
-
|
|
1312
|
+
e[10] !== T ? (I = {
|
|
1313
|
+
...Ae.paper,
|
|
1314
|
+
flexDirection: T
|
|
1315
|
+
}, e[10] = T, e[11] = I) : I = e[11];
|
|
1316
|
+
let D;
|
|
1317
|
+
e[12] !== d || e[13] !== o || e[14] !== S || e[15] !== f ? (D = f && /* @__PURE__ */ L(z, { children: [
|
|
1318
|
+
/* @__PURE__ */ l(se, { onClick: f, "aria-label": "Reset action", disabled: o, children: /* @__PURE__ */ l(d.Icon, {}) }),
|
|
1319
|
+
/* @__PURE__ */ l(ae, { orientation: S, flexItem: !0 })
|
|
1320
|
+
] }), e[12] = d, e[13] = o, e[14] = S, e[15] = f, e[16] = D) : D = e[16];
|
|
1321
|
+
let A;
|
|
1322
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ l(Xe, {}), e[17] = A) : A = e[17];
|
|
1323
|
+
let M;
|
|
1324
|
+
e[18] !== o || e[19] !== C ? (M = /* @__PURE__ */ l(se, { onClick: C, "aria-label": "Increase zoom", disabled: o, children: A }), e[18] = o, e[19] = C, e[20] = M) : M = e[20];
|
|
1243
1325
|
let k;
|
|
1244
|
-
e[21] !==
|
|
1245
|
-
let
|
|
1246
|
-
e[23] !==
|
|
1247
|
-
/* @__PURE__ */
|
|
1248
|
-
/* @__PURE__ */
|
|
1249
|
-
|
|
1326
|
+
e[21] !== S ? (k = /* @__PURE__ */ l(ae, { orientation: S, flexItem: !0 }), e[21] = S, e[22] = k) : k = e[22];
|
|
1327
|
+
let R;
|
|
1328
|
+
e[23] !== O || e[24] !== S || e[25] !== a || e[26] !== m ? (R = m && /* @__PURE__ */ L(z, { children: [
|
|
1329
|
+
/* @__PURE__ */ L(X, { sx: Ae.zoom, children: [
|
|
1330
|
+
/* @__PURE__ */ l(Y, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: O }),
|
|
1331
|
+
a && /* @__PURE__ */ l(st, { sx: Ae.circularProgress, variant: "indeterminate", size: 24 })
|
|
1250
1332
|
] }),
|
|
1251
|
-
/* @__PURE__ */
|
|
1252
|
-
] }), e[23] =
|
|
1253
|
-
let
|
|
1254
|
-
e[28] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1255
|
-
let
|
|
1256
|
-
e[29] !==
|
|
1257
|
-
let
|
|
1258
|
-
return e[32] !==
|
|
1259
|
-
|
|
1260
|
-
|
|
1333
|
+
/* @__PURE__ */ l(ae, { orientation: S, flexItem: !0 })
|
|
1334
|
+
] }), e[23] = O, e[24] = S, e[25] = a, e[26] = m, e[27] = R) : R = e[27];
|
|
1335
|
+
let P;
|
|
1336
|
+
e[28] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ l(qe, {}), e[28] = P) : P = e[28];
|
|
1337
|
+
let j;
|
|
1338
|
+
e[29] !== _ || e[30] !== o ? (j = /* @__PURE__ */ l(se, { onClick: _, "aria-label": "Decrease zoom", disabled: o, children: P }), e[29] = _, e[30] = o, e[31] = j) : j = e[31];
|
|
1339
|
+
let $;
|
|
1340
|
+
return e[32] !== c || e[33] !== I || e[34] !== D || e[35] !== M || e[36] !== k || e[37] !== R || e[38] !== j ? ($ = /* @__PURE__ */ L(ye, { sx: I, ...c, children: [
|
|
1341
|
+
D,
|
|
1342
|
+
M,
|
|
1261
1343
|
k,
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
] }), e[32] =
|
|
1344
|
+
R,
|
|
1345
|
+
j
|
|
1346
|
+
] }), e[32] = c, e[33] = I, e[34] = D, e[35] = M, e[36] = k, e[37] = R, e[38] = j, e[39] = $) : $ = e[39], $;
|
|
1265
1347
|
}
|
|
1266
|
-
function
|
|
1267
|
-
const e =
|
|
1268
|
-
length:
|
|
1269
|
-
} = t, o =
|
|
1270
|
-
let
|
|
1271
|
-
e[0] !== o ? (
|
|
1272
|
-
let
|
|
1273
|
-
return e[2] !==
|
|
1348
|
+
function Wt(t) {
|
|
1349
|
+
const e = E(4), {
|
|
1350
|
+
length: n
|
|
1351
|
+
} = t, o = n === void 0 ? 5 : n;
|
|
1352
|
+
let i;
|
|
1353
|
+
e[0] !== o ? (i = new Array(o).fill(null).map(Gt), e[0] = o, e[1] = i) : i = e[1];
|
|
1354
|
+
let a;
|
|
1355
|
+
return e[2] !== i ? (a = /* @__PURE__ */ l(X, { "aria-label": "List Data skeleton", children: i }), e[2] = i, e[3] = a) : a = e[3], a;
|
|
1274
1356
|
}
|
|
1275
|
-
function
|
|
1276
|
-
return /* @__PURE__ */
|
|
1277
|
-
/* @__PURE__ */
|
|
1278
|
-
/* @__PURE__ */
|
|
1279
|
-
/* @__PURE__ */
|
|
1357
|
+
function Gt(t, e) {
|
|
1358
|
+
return /* @__PURE__ */ L(me, { container: !0, spacing: 1, children: [
|
|
1359
|
+
/* @__PURE__ */ L(me, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
|
|
1360
|
+
/* @__PURE__ */ l(Se, { width: Ht(e) ? 72 : 48, height: 20 }),
|
|
1361
|
+
/* @__PURE__ */ l(Se, { width: 48, height: 8 })
|
|
1280
1362
|
] }),
|
|
1281
|
-
/* @__PURE__ */
|
|
1282
|
-
height:
|
|
1283
|
-
marginTop:
|
|
1284
|
-
marginBottom:
|
|
1363
|
+
/* @__PURE__ */ l(Se, { sx: {
|
|
1364
|
+
height: Ft,
|
|
1365
|
+
marginTop: Nt,
|
|
1366
|
+
marginBottom: zt,
|
|
1285
1367
|
width: "100%"
|
|
1286
1368
|
} })
|
|
1287
1369
|
] }, e);
|
|
1288
1370
|
}
|
|
1289
|
-
function
|
|
1371
|
+
function zt(t) {
|
|
1290
1372
|
const {
|
|
1291
1373
|
spacing: e
|
|
1292
1374
|
} = t;
|
|
1293
1375
|
return e(1.75);
|
|
1294
1376
|
}
|
|
1295
|
-
function
|
|
1377
|
+
function Nt(t) {
|
|
1296
1378
|
const {
|
|
1297
1379
|
spacing: e
|
|
1298
1380
|
} = t;
|
|
1299
1381
|
return e(1.25);
|
|
1300
1382
|
}
|
|
1301
|
-
function
|
|
1383
|
+
function Ft(t) {
|
|
1302
1384
|
const {
|
|
1303
1385
|
spacing: e
|
|
1304
1386
|
} = t;
|
|
1305
1387
|
return e(0.5);
|
|
1306
1388
|
}
|
|
1307
|
-
function
|
|
1389
|
+
function Ht(t) {
|
|
1308
1390
|
return t % 2 === 1;
|
|
1309
1391
|
}
|
|
1310
|
-
function
|
|
1311
|
-
const e =
|
|
1312
|
-
title:
|
|
1392
|
+
function Xt(t) {
|
|
1393
|
+
const e = E(13), {
|
|
1394
|
+
title: n,
|
|
1313
1395
|
body: o,
|
|
1314
|
-
severity:
|
|
1315
|
-
} = t,
|
|
1316
|
-
if (
|
|
1396
|
+
severity: i
|
|
1397
|
+
} = t, a = n === void 0 ? "No data available" : n, r = o === void 0 ? "There are no results for the combination of filters applied to your data. Try tweaking your filters, or zoom and pan the map to adjust the Map View." : o;
|
|
1398
|
+
if (i) {
|
|
1399
|
+
let p;
|
|
1400
|
+
e[0] !== r ? (p = /* @__PURE__ */ l(Re, { children: r }), e[0] = r, e[1] = p) : p = e[1];
|
|
1317
1401
|
let h;
|
|
1318
|
-
e[
|
|
1319
|
-
let f;
|
|
1320
|
-
return e[2] !== l || e[3] !== h || e[4] !== s ? (f = /* @__PURE__ */ n(ct, { title: s, severity: l, children: h }), e[2] = l, e[3] = h, e[4] = s, e[5] = f) : f = e[5], f;
|
|
1402
|
+
return e[2] !== i || e[3] !== p || e[4] !== a ? (h = /* @__PURE__ */ l(at, { title: a, severity: i, children: p }), e[2] = i, e[3] = p, e[4] = a, e[5] = h) : h = e[5], h;
|
|
1321
1403
|
}
|
|
1404
|
+
let s;
|
|
1405
|
+
e[6] !== a ? (s = a && /* @__PURE__ */ l(Y, { variant: "body2", children: a }), e[6] = a, e[7] = s) : s = e[7];
|
|
1322
1406
|
let c;
|
|
1323
|
-
e[
|
|
1324
|
-
let a;
|
|
1325
|
-
e[8] !== i ? (a = /* @__PURE__ */ n($e, { color: "textSecondary", children: i }), e[8] = i, e[9] = a) : a = e[9];
|
|
1407
|
+
e[8] !== r ? (c = /* @__PURE__ */ l(Re, { color: "textSecondary", children: r }), e[8] = r, e[9] = c) : c = e[9];
|
|
1326
1408
|
let u;
|
|
1327
|
-
return e[10] !==
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
] }), e[10] =
|
|
1409
|
+
return e[10] !== s || e[11] !== c ? (u = /* @__PURE__ */ L(X, { children: [
|
|
1410
|
+
s,
|
|
1411
|
+
c
|
|
1412
|
+
] }), e[10] = s, e[11] = c, e[12] = u) : u = e[12], u;
|
|
1331
1413
|
}
|
|
1332
|
-
function
|
|
1333
|
-
const e =
|
|
1334
|
-
color:
|
|
1414
|
+
function Re(t) {
|
|
1415
|
+
const e = E(5), {
|
|
1416
|
+
color: n,
|
|
1335
1417
|
children: o
|
|
1336
1418
|
} = t;
|
|
1337
1419
|
if (o) {
|
|
1338
|
-
const
|
|
1339
|
-
let
|
|
1340
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1420
|
+
const a = n ?? "inherit";
|
|
1421
|
+
let r;
|
|
1422
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
1341
1423
|
fontWeight: "normal"
|
|
1342
|
-
}, e[0] =
|
|
1343
|
-
let
|
|
1344
|
-
return e[1] !== o || e[2] !==
|
|
1424
|
+
}, e[0] = r) : r = e[0];
|
|
1425
|
+
let s;
|
|
1426
|
+
return e[1] !== o || e[2] !== a ? (s = /* @__PURE__ */ l(X, { mt: 0.5, children: /* @__PURE__ */ l(Y, { component: "div", variant: "caption", color: a, style: r, children: o }) }), e[1] = o, e[2] = a, e[3] = s) : s = e[3], s;
|
|
1345
1427
|
}
|
|
1346
|
-
let
|
|
1347
|
-
return e[4] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1428
|
+
let i;
|
|
1429
|
+
return e[4] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l(X, { mt: -1 }), e[4] = i) : i = e[4], i;
|
|
1348
1430
|
}
|
|
1349
|
-
function
|
|
1350
|
-
const e =
|
|
1351
|
-
let
|
|
1352
|
-
return e[0] !==
|
|
1353
|
-
t && !
|
|
1354
|
-
},
|
|
1431
|
+
function qt(t) {
|
|
1432
|
+
const e = E(4), [n, o] = ne(!1), [i, a] = ne(!1);
|
|
1433
|
+
let r, s;
|
|
1434
|
+
return e[0] !== i || e[1] !== t ? (r = () => {
|
|
1435
|
+
t && !i && (o(!0), a(!0)), t || o(!1);
|
|
1436
|
+
}, s = [t, i], e[0] = i, e[1] = t, e[2] = r, e[3] = s) : (r = e[2], s = e[3]), De(r, s), n;
|
|
1355
1437
|
}
|
|
1356
|
-
const
|
|
1438
|
+
const Ee = {
|
|
1357
1439
|
overflow: "hidden",
|
|
1358
1440
|
textOverflow: "ellipsis",
|
|
1359
1441
|
whiteSpace: "nowrap"
|
|
1360
1442
|
}, pe = {
|
|
1361
1443
|
label: {
|
|
1362
1444
|
"& .MuiListItemText-primary": {
|
|
1363
|
-
...
|
|
1445
|
+
...Ee
|
|
1364
1446
|
}
|
|
1365
1447
|
},
|
|
1366
1448
|
value: {
|
|
1367
1449
|
"& .MuiListItemText-primary": {
|
|
1368
|
-
...
|
|
1450
|
+
...Ee,
|
|
1369
1451
|
textAlign: "right"
|
|
1370
1452
|
}
|
|
1371
1453
|
},
|
|
@@ -1391,70 +1473,96 @@ const je = {
|
|
|
1391
1473
|
opacity: 0.5,
|
|
1392
1474
|
pointerEvents: "none"
|
|
1393
1475
|
}
|
|
1394
|
-
}
|
|
1476
|
+
};
|
|
1477
|
+
function Kt({
|
|
1478
|
+
title: t,
|
|
1479
|
+
dependencies: e = [],
|
|
1480
|
+
timeout: n = 500,
|
|
1481
|
+
TooltipProps: o,
|
|
1482
|
+
children: i
|
|
1483
|
+
}) {
|
|
1484
|
+
const a = Oe(null), [r, s] = ne(!1);
|
|
1485
|
+
return mt(() => {
|
|
1486
|
+
const c = setTimeout(() => {
|
|
1487
|
+
if (a.current) {
|
|
1488
|
+
const u = a.current.scrollWidth > a.current.clientWidth || a.current.scrollHeight > a.current.clientHeight;
|
|
1489
|
+
s(u);
|
|
1490
|
+
}
|
|
1491
|
+
}, n);
|
|
1492
|
+
return () => clearTimeout(c);
|
|
1493
|
+
}, [e, n]), /* @__PURE__ */ l(de, { title: r && t, ...o, children: i({
|
|
1494
|
+
ref: a
|
|
1495
|
+
}) });
|
|
1496
|
+
}
|
|
1497
|
+
const Yt = {
|
|
1395
1498
|
showMore: "Show More",
|
|
1396
1499
|
showLess: "Show Less"
|
|
1397
1500
|
};
|
|
1398
|
-
function
|
|
1399
|
-
const e =
|
|
1400
|
-
data:
|
|
1501
|
+
function bo(t) {
|
|
1502
|
+
const e = E(34), {
|
|
1503
|
+
data: n,
|
|
1401
1504
|
isLoading: o,
|
|
1402
|
-
maxItems:
|
|
1403
|
-
labels:
|
|
1404
|
-
showDivider:
|
|
1405
|
-
selectedItemId:
|
|
1406
|
-
tooltipProps:
|
|
1505
|
+
maxItems: i,
|
|
1506
|
+
labels: a,
|
|
1507
|
+
showDivider: r,
|
|
1508
|
+
selectedItemId: s,
|
|
1509
|
+
tooltipProps: c,
|
|
1407
1510
|
onExpand: u,
|
|
1408
|
-
onItemClick:
|
|
1511
|
+
onItemClick: p
|
|
1409
1512
|
} = t;
|
|
1410
|
-
let
|
|
1411
|
-
e[0] !==
|
|
1412
|
-
const
|
|
1413
|
-
let
|
|
1414
|
-
e[2] !==
|
|
1415
|
-
const
|
|
1416
|
-
let
|
|
1417
|
-
e[6] !== u || e[7] !== d ? (
|
|
1418
|
-
m(!d), u
|
|
1419
|
-
}, e[6] = u, e[7] = d, e[8] =
|
|
1420
|
-
const
|
|
1421
|
-
if (
|
|
1422
|
-
let
|
|
1423
|
-
return e[9] !==
|
|
1513
|
+
let h;
|
|
1514
|
+
e[0] !== n ? (h = n === void 0 ? [] : n, e[0] = n, e[1] = h) : h = e[1];
|
|
1515
|
+
const f = h, v = o === void 0 ? !1 : o, y = i === void 0 ? 5 : i, b = a === void 0 ? Yt : a, x = r === void 0 ? !0 : r, [d, m] = ne(!1), g = qt(v);
|
|
1516
|
+
let C, w;
|
|
1517
|
+
e[2] !== f || e[3] !== y || e[4] !== d ? (w = d ? f : f.slice(0, y), e[2] = f, e[3] = y, e[4] = d, e[5] = w) : w = e[5], C = w;
|
|
1518
|
+
const _ = C;
|
|
1519
|
+
let O;
|
|
1520
|
+
e[6] !== u || e[7] !== d ? (O = () => {
|
|
1521
|
+
m(!d), u?.(d);
|
|
1522
|
+
}, e[6] = u, e[7] = d, e[8] = O) : O = e[8];
|
|
1523
|
+
const S = O;
|
|
1524
|
+
if (g) {
|
|
1525
|
+
let M;
|
|
1526
|
+
return e[9] !== y ? (M = /* @__PURE__ */ l(Wt, { length: y }), e[9] = y, e[10] = M) : M = e[10], M;
|
|
1424
1527
|
}
|
|
1425
|
-
if (
|
|
1426
|
-
let
|
|
1427
|
-
return e[11] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1528
|
+
if (_.length === 0) {
|
|
1529
|
+
let M;
|
|
1530
|
+
return e[11] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ l(Xt, {}), e[11] = M) : M = e[11], M;
|
|
1428
1531
|
}
|
|
1429
1532
|
let T;
|
|
1430
|
-
if (e[12] !==
|
|
1431
|
-
let
|
|
1432
|
-
e[18] !==
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1533
|
+
if (e[12] !== _ || e[13] !== p || e[14] !== s || e[15] !== x || e[16] !== c) {
|
|
1534
|
+
let M;
|
|
1535
|
+
e[18] !== p || e[19] !== s || e[20] !== x || e[21] !== c ? (M = (k, R) => /* @__PURE__ */ l(Kt, { followCursor: !1, placement: "top", arrow: !0, title: k.tooltipTitle, enterDelay: 10, ...c, children: (P) => {
|
|
1536
|
+
const {
|
|
1537
|
+
ref: j
|
|
1538
|
+
} = P;
|
|
1539
|
+
return /* @__PURE__ */ l(ct, { ref: j, role: "listitem", sx: {
|
|
1540
|
+
...x && pe.showDivider,
|
|
1541
|
+
...p && pe.clickable,
|
|
1542
|
+
...s === k.id && pe.selected,
|
|
1543
|
+
...k.disabled && pe.disabled
|
|
1544
|
+
}, onClick: () => {
|
|
1545
|
+
k.disabled || p?.(k);
|
|
1546
|
+
}, children: /* @__PURE__ */ L(me, { container: !0, alignItems: "center", children: [
|
|
1547
|
+
/* @__PURE__ */ l(me, { item: !0, xs: 8, children: /* @__PURE__ */ l(be, { primary: k.label, sx: pe.label }) }),
|
|
1548
|
+
/* @__PURE__ */ l(me, { item: !0, xs: 4, children: /* @__PURE__ */ l(be, { primary: k.value, sx: pe.value }) })
|
|
1549
|
+
] }) });
|
|
1550
|
+
} }, `list-item-${R}`), e[18] = p, e[19] = s, e[20] = x, e[21] = c, e[22] = M) : M = e[22], T = _.map(M), e[12] = _, e[13] = p, e[14] = s, e[15] = x, e[16] = c, e[17] = T;
|
|
1443
1551
|
} else
|
|
1444
1552
|
T = e[17];
|
|
1445
|
-
let S;
|
|
1446
|
-
e[23] !== T ? (S = /* @__PURE__ */ n(at, { id: "expandable-list", role: "list", children: T }), e[23] = T, e[24] = S) : S = e[24];
|
|
1447
1553
|
let I;
|
|
1448
|
-
e[
|
|
1449
|
-
let
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1554
|
+
e[23] !== T ? (I = /* @__PURE__ */ l(dt, { id: "expandable-list", role: "list", children: T }), e[23] = T, e[24] = I) : I = e[24];
|
|
1555
|
+
let D;
|
|
1556
|
+
e[25] !== f.length || e[26] !== S || e[27] !== b || e[28] !== y || e[29] !== d ? (D = f.length > y && /* @__PURE__ */ l(X, { my: 2, children: /* @__PURE__ */ l(we, { onClick: S, variant: "text", color: "primary", "aria-expanded": d, "aria-controls": "expandable-list", children: d ? b.showLess : b.showMore }) }), e[25] = f.length, e[26] = S, e[27] = b, e[28] = y, e[29] = d, e[30] = D) : D = e[30];
|
|
1557
|
+
let A;
|
|
1558
|
+
return e[31] !== I || e[32] !== D ? (A = /* @__PURE__ */ L(z, { children: [
|
|
1559
|
+
I,
|
|
1560
|
+
D
|
|
1561
|
+
] }), e[31] = I, e[32] = D, e[33] = A) : A = e[33], A;
|
|
1454
1562
|
}
|
|
1455
|
-
const
|
|
1563
|
+
const Qt = 288, ue = {
|
|
1456
1564
|
root: {
|
|
1457
|
-
width:
|
|
1565
|
+
width: Qt,
|
|
1458
1566
|
overflow: "auto"
|
|
1459
1567
|
},
|
|
1460
1568
|
toggle: {
|
|
@@ -1554,7 +1662,7 @@ const to = 288, ue = {
|
|
|
1554
1662
|
}) => t.primary.main
|
|
1555
1663
|
}
|
|
1556
1664
|
}
|
|
1557
|
-
},
|
|
1665
|
+
}, Jt = {
|
|
1558
1666
|
toggle: {
|
|
1559
1667
|
title: "Toggle basemaps controls"
|
|
1560
1668
|
},
|
|
@@ -1565,208 +1673,211 @@ const to = 288, ue = {
|
|
|
1565
1673
|
}
|
|
1566
1674
|
}
|
|
1567
1675
|
};
|
|
1568
|
-
function
|
|
1569
|
-
const e =
|
|
1570
|
-
isMobile:
|
|
1676
|
+
function eo(t) {
|
|
1677
|
+
const e = E(6), {
|
|
1678
|
+
isMobile: n,
|
|
1571
1679
|
labels: o,
|
|
1572
|
-
onChangeCollapsed:
|
|
1573
|
-
} = t,
|
|
1574
|
-
let
|
|
1575
|
-
e[0] !==
|
|
1576
|
-
/* @__PURE__ */
|
|
1577
|
-
/* @__PURE__ */
|
|
1578
|
-
] }), e[0] =
|
|
1579
|
-
let
|
|
1580
|
-
return e[4] !==
|
|
1680
|
+
onChangeCollapsed: i
|
|
1681
|
+
} = t, a = n === void 0 ? !1 : n;
|
|
1682
|
+
let r;
|
|
1683
|
+
e[0] !== a || e[1] !== o || e[2] !== i ? (r = a && /* @__PURE__ */ L(z, { children: [
|
|
1684
|
+
/* @__PURE__ */ l(Y, { variant: "caption", flexGrow: 1, children: o.title }),
|
|
1685
|
+
/* @__PURE__ */ l(de, { title: o.actions.close, children: /* @__PURE__ */ l(se, { size: "small", onClick: i, "aria-label": o.actions.close, children: /* @__PURE__ */ l(Be, {}) }) })
|
|
1686
|
+
] }), e[0] = a, e[1] = o, e[2] = i, e[3] = r) : r = e[3];
|
|
1687
|
+
let s;
|
|
1688
|
+
return e[4] !== r ? (s = /* @__PURE__ */ l(X, { sx: ue.header, children: r }), e[4] = r, e[5] = s) : s = e[5], s;
|
|
1581
1689
|
}
|
|
1582
|
-
function
|
|
1583
|
-
const e =
|
|
1584
|
-
title:
|
|
1690
|
+
function to(t) {
|
|
1691
|
+
const e = E(5), {
|
|
1692
|
+
title: n,
|
|
1585
1693
|
children: o,
|
|
1586
|
-
collapsed:
|
|
1694
|
+
collapsed: i
|
|
1587
1695
|
} = t;
|
|
1588
|
-
if (
|
|
1696
|
+
if (i === void 0 ? !1 : i)
|
|
1589
1697
|
return o;
|
|
1590
|
-
let
|
|
1591
|
-
e[0] !==
|
|
1592
|
-
let
|
|
1593
|
-
return e[2] !== o || e[3] !==
|
|
1594
|
-
|
|
1698
|
+
let r;
|
|
1699
|
+
e[0] !== n ? (r = /* @__PURE__ */ l(Y, { variant: "caption", color: "textSecondary", sx: ue.groupWrapper.content, children: n }), e[0] = n, e[1] = r) : r = e[1];
|
|
1700
|
+
let s;
|
|
1701
|
+
return e[2] !== o || e[3] !== r ? (s = /* @__PURE__ */ L(z, { children: [
|
|
1702
|
+
r,
|
|
1595
1703
|
o
|
|
1596
|
-
] }), e[2] = o, e[3] =
|
|
1704
|
+
] }), e[2] = o, e[3] = r, e[4] = s) : s = e[4], s;
|
|
1597
1705
|
}
|
|
1598
|
-
function
|
|
1599
|
-
const e =
|
|
1600
|
-
values:
|
|
1706
|
+
function oo(t) {
|
|
1707
|
+
const e = E(9), {
|
|
1708
|
+
values: n,
|
|
1601
1709
|
selected: o,
|
|
1602
|
-
onChange:
|
|
1710
|
+
onChange: i
|
|
1603
1711
|
} = t;
|
|
1604
|
-
let
|
|
1605
|
-
if (e[0] !==
|
|
1606
|
-
let
|
|
1607
|
-
e[4] !==
|
|
1608
|
-
const u =
|
|
1609
|
-
return /* @__PURE__ */
|
|
1610
|
-
/* @__PURE__ */
|
|
1611
|
-
/* @__PURE__ */
|
|
1712
|
+
let a;
|
|
1713
|
+
if (e[0] !== i || e[1] !== o || e[2] !== n) {
|
|
1714
|
+
let s;
|
|
1715
|
+
e[4] !== i || e[5] !== o ? (s = (c) => {
|
|
1716
|
+
const u = c.id === o;
|
|
1717
|
+
return /* @__PURE__ */ L(X, { sx: ue.item.container, component: "button", "aria-label": c.label, onClick: () => i(c.id), children: [
|
|
1718
|
+
/* @__PURE__ */ l("img", { src: c.icon, "aria-label": c.label + " icon", "data-active": u }),
|
|
1719
|
+
/* @__PURE__ */ l(Y, { variant: "caption", sx: {
|
|
1612
1720
|
...u && ue.item.selected
|
|
1613
|
-
}, children:
|
|
1614
|
-
] },
|
|
1615
|
-
}, e[4] =
|
|
1721
|
+
}, children: c.label })
|
|
1722
|
+
] }, c.id);
|
|
1723
|
+
}, e[4] = i, e[5] = o, e[6] = s) : s = e[6], a = n.map(s), e[0] = i, e[1] = o, e[2] = n, e[3] = a;
|
|
1616
1724
|
} else
|
|
1617
|
-
|
|
1618
|
-
let
|
|
1619
|
-
return e[7] !==
|
|
1725
|
+
a = e[3];
|
|
1726
|
+
let r;
|
|
1727
|
+
return e[7] !== a ? (r = /* @__PURE__ */ l(X, { sx: ue.group, children: a }), e[7] = a, e[8] = r) : r = e[8], r;
|
|
1620
1728
|
}
|
|
1621
|
-
function
|
|
1622
|
-
const e =
|
|
1623
|
-
ref:
|
|
1729
|
+
function lo(t) {
|
|
1730
|
+
const e = E(21), {
|
|
1731
|
+
ref: n,
|
|
1624
1732
|
children: o,
|
|
1625
|
-
collapsed:
|
|
1626
|
-
isMobile:
|
|
1627
|
-
position:
|
|
1628
|
-
sx:
|
|
1629
|
-
slotProps:
|
|
1733
|
+
collapsed: i,
|
|
1734
|
+
isMobile: a,
|
|
1735
|
+
position: r,
|
|
1736
|
+
sx: s,
|
|
1737
|
+
slotProps: c,
|
|
1630
1738
|
onChangeCollapsed: u
|
|
1631
1739
|
} = t;
|
|
1632
|
-
if (
|
|
1633
|
-
const
|
|
1740
|
+
if (a === void 0 ? !1 : a) {
|
|
1741
|
+
const C = !i;
|
|
1634
1742
|
let w;
|
|
1635
|
-
return e[0] !== o || e[1] !== u || e[2] !==
|
|
1743
|
+
return e[0] !== o || e[1] !== u || e[2] !== C ? (w = /* @__PURE__ */ l(ut, { anchor: "bottom", open: C, onClose: u, children: o }), e[0] = o, e[1] = u, e[2] = C, e[3] = w) : w = e[3], w;
|
|
1636
1744
|
}
|
|
1637
|
-
const
|
|
1638
|
-
let
|
|
1639
|
-
e[4] !== u ? (
|
|
1640
|
-
const
|
|
1641
|
-
let
|
|
1642
|
-
e[6] !==
|
|
1643
|
-
vertical:
|
|
1644
|
-
horizontal:
|
|
1645
|
-
}, e[6] =
|
|
1646
|
-
const
|
|
1745
|
+
const h = !i;
|
|
1746
|
+
let f;
|
|
1747
|
+
e[4] !== u ? (f = () => u(!0), e[4] = u, e[5] = f) : f = e[5];
|
|
1748
|
+
const v = r.startsWith("bottom") ? "bottom" : "top", y = r.endsWith("right") ? "left" : "right";
|
|
1749
|
+
let b;
|
|
1750
|
+
e[6] !== v || e[7] !== y ? (b = {
|
|
1751
|
+
vertical: v,
|
|
1752
|
+
horizontal: y
|
|
1753
|
+
}, e[6] = v, e[7] = y, e[8] = b) : b = e[8];
|
|
1754
|
+
const x = r.startsWith("bottom") ? "bottom" : "top", d = r.endsWith("right") ? "right" : "left";
|
|
1647
1755
|
let m;
|
|
1648
|
-
e[9] !==
|
|
1649
|
-
vertical:
|
|
1756
|
+
e[9] !== x || e[10] !== d ? (m = {
|
|
1757
|
+
vertical: x,
|
|
1650
1758
|
horizontal: d
|
|
1651
|
-
}, e[9] =
|
|
1652
|
-
let
|
|
1653
|
-
return e[12] !== o || e[13] !==
|
|
1759
|
+
}, e[9] = x, e[10] = d, e[11] = m) : m = e[11];
|
|
1760
|
+
let g;
|
|
1761
|
+
return e[12] !== o || e[13] !== n || e[14] !== c || e[15] !== s || e[16] !== h || e[17] !== f || e[18] !== b || e[19] !== m ? (g = /* @__PURE__ */ l(ht, { sx: s, anchorEl: n, open: h, onClose: f, anchorOrigin: b, transformOrigin: m, slotProps: c, children: o }), e[12] = o, e[13] = n, e[14] = c, e[15] = s, e[16] = h, e[17] = f, e[18] = b, e[19] = m, e[20] = g) : g = e[20], g;
|
|
1654
1762
|
}
|
|
1655
|
-
function
|
|
1656
|
-
const e =
|
|
1657
|
-
options:
|
|
1763
|
+
function vo(t) {
|
|
1764
|
+
const e = E(52), {
|
|
1765
|
+
options: n,
|
|
1658
1766
|
labels: o,
|
|
1659
|
-
position:
|
|
1660
|
-
selected:
|
|
1661
|
-
onChange:
|
|
1662
|
-
TooltipProps:
|
|
1767
|
+
position: i,
|
|
1768
|
+
selected: a,
|
|
1769
|
+
onChange: r,
|
|
1770
|
+
TooltipProps: s
|
|
1663
1771
|
} = t;
|
|
1664
|
-
let
|
|
1665
|
-
e[0] !==
|
|
1666
|
-
const u =
|
|
1772
|
+
let c;
|
|
1773
|
+
e[0] !== n ? (c = n === void 0 ? [] : n, e[0] = n, e[1] = c) : c = e[1];
|
|
1774
|
+
const u = c, p = i === void 0 ? "bottom-right" : i, h = a === void 0 ? null : a, [f, v] = ne(null), y = Oe(null), [b, x] = ne(null), d = pt();
|
|
1667
1775
|
let m;
|
|
1668
1776
|
e[2] !== d.breakpoints ? (m = d.breakpoints.down("sm"), e[2] = d.breakpoints, e[3] = m) : m = e[3];
|
|
1669
|
-
const
|
|
1670
|
-
let
|
|
1671
|
-
e[4] !== o ? (
|
|
1777
|
+
const g = ft(m);
|
|
1778
|
+
let C;
|
|
1779
|
+
e[4] !== o ? (C = o ?? {}, e[4] = o, e[5] = C) : C = e[5];
|
|
1672
1780
|
let w;
|
|
1673
|
-
e[6] !==
|
|
1674
|
-
const
|
|
1675
|
-
let
|
|
1676
|
-
if (e[8] !== u || e[9] !==
|
|
1677
|
-
let
|
|
1678
|
-
e[11] !==
|
|
1781
|
+
e[6] !== C ? (w = xe(Jt, C), e[6] = C, e[7] = w) : w = e[7];
|
|
1782
|
+
const _ = w, O = !f;
|
|
1783
|
+
let S;
|
|
1784
|
+
if (e[8] !== u || e[9] !== h) {
|
|
1785
|
+
let le;
|
|
1786
|
+
e[11] !== h ? (le = (he) => he.id === h, e[11] = h, e[12] = le) : le = e[12], S = u.find(le), e[8] = u, e[9] = h, e[10] = S;
|
|
1679
1787
|
} else
|
|
1680
|
-
|
|
1681
|
-
const T =
|
|
1682
|
-
let
|
|
1683
|
-
e[13] !==
|
|
1684
|
-
if (
|
|
1685
|
-
return
|
|
1686
|
-
|
|
1687
|
-
},
|
|
1688
|
-
|
|
1788
|
+
S = e[10];
|
|
1789
|
+
const T = S, I = Object.groupBy(u, no), D = Object.keys(I).length;
|
|
1790
|
+
let A, M;
|
|
1791
|
+
e[13] !== b ? (M = () => {
|
|
1792
|
+
if (y.current && clearTimeout(y.current), !!b)
|
|
1793
|
+
return y.current = setTimeout(() => {
|
|
1794
|
+
v(null);
|
|
1795
|
+
}, b), () => {
|
|
1796
|
+
y.current && clearTimeout(y.current);
|
|
1689
1797
|
};
|
|
1690
|
-
},
|
|
1798
|
+
}, A = [b], e[13] = b, e[14] = A, e[15] = M) : (A = e[14], M = e[15]), De(M, A);
|
|
1691
1799
|
let k;
|
|
1692
1800
|
e[16] === Symbol.for("react.memo_cache_sentinel") ? (k = () => {
|
|
1693
|
-
|
|
1801
|
+
x(null);
|
|
1694
1802
|
}, e[16] = k) : k = e[16];
|
|
1695
|
-
const
|
|
1696
|
-
let E;
|
|
1697
|
-
e[17] === Symbol.for("react.memo_cache_sentinel") ? (E = () => {
|
|
1698
|
-
C(400);
|
|
1699
|
-
}, e[17] = E) : E = e[17];
|
|
1700
|
-
const W = E, U = xe;
|
|
1701
|
-
let Z;
|
|
1702
|
-
e[18] === Symbol.for("react.memo_cache_sentinel") ? (Z = (K) => {
|
|
1703
|
-
y(K.currentTarget);
|
|
1704
|
-
}, e[18] = Z) : Z = e[18];
|
|
1705
|
-
const oe = T == null ? void 0 : T.icon, N = (T == null ? void 0 : T.label) ?? "Basemap";
|
|
1706
|
-
let H;
|
|
1707
|
-
e[19] !== oe || e[20] !== N ? (H = /* @__PURE__ */ n(se, { sx: ue.toggle, onClick: Z, children: /* @__PURE__ */ n("img", { src: oe, alt: N }) }), e[19] = oe, e[20] = N, e[21] = H) : H = e[21];
|
|
1708
|
-
let X;
|
|
1709
|
-
e[22] !== c || e[23] !== A.toggle.title || e[24] !== H ? (X = /* @__PURE__ */ n(ae, { title: A.toggle.title, placement: "right", ...c, children: H }), e[22] = c, e[23] = A.toggle.title, e[24] = H, e[25] = X) : X = e[25];
|
|
1710
|
-
const q = ro, ne = `translate3d(${h.endsWith("right") ? "-8px" : "8px"}, ${h.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
|
|
1803
|
+
const R = k;
|
|
1711
1804
|
let P;
|
|
1712
|
-
e[
|
|
1805
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (P = () => {
|
|
1806
|
+
x(400);
|
|
1807
|
+
}, e[17] = P) : P = e[17];
|
|
1808
|
+
const j = P, $ = ye;
|
|
1809
|
+
let B;
|
|
1810
|
+
e[18] === Symbol.for("react.memo_cache_sentinel") ? (B = (le) => {
|
|
1811
|
+
v(le.currentTarget);
|
|
1812
|
+
}, e[18] = B) : B = e[18];
|
|
1813
|
+
const N = T?.icon, W = T?.label ?? "Basemap";
|
|
1814
|
+
let G;
|
|
1815
|
+
e[19] !== N || e[20] !== W ? (G = /* @__PURE__ */ l(se, { sx: ue.toggle, onClick: B, children: /* @__PURE__ */ l("img", { src: N, alt: W }) }), e[19] = N, e[20] = W, e[21] = G) : G = e[21];
|
|
1816
|
+
let ee;
|
|
1817
|
+
e[22] !== s || e[23] !== _.toggle.title || e[24] !== G ? (ee = /* @__PURE__ */ l(de, { title: _.toggle.title, placement: "right", ...s, children: G }), e[22] = s, e[23] = _.toggle.title, e[24] = G, e[25] = ee) : ee = e[25];
|
|
1818
|
+
const F = lo, ie = `translate3d(${p.endsWith("right") ? "-8px" : "8px"}, ${p.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
|
|
1819
|
+
let Z;
|
|
1820
|
+
e[26] !== ie ? (Z = {
|
|
1713
1821
|
paper: {
|
|
1714
1822
|
sx: {
|
|
1715
1823
|
...ue.root,
|
|
1716
|
-
transform:
|
|
1824
|
+
transform: ie
|
|
1717
1825
|
},
|
|
1718
|
-
onMouseOver:
|
|
1719
|
-
onMouseLeave:
|
|
1826
|
+
onMouseOver: R,
|
|
1827
|
+
onMouseLeave: j
|
|
1720
1828
|
}
|
|
1721
|
-
}, e[26] =
|
|
1722
|
-
let
|
|
1723
|
-
e[28] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1724
|
-
let
|
|
1725
|
-
e[29] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1829
|
+
}, e[26] = ie, e[27] = Z) : Z = e[27];
|
|
1830
|
+
let H;
|
|
1831
|
+
e[28] === Symbol.for("react.memo_cache_sentinel") ? (H = () => v(null), e[28] = H) : H = e[28];
|
|
1832
|
+
let q;
|
|
1833
|
+
e[29] === Symbol.for("react.memo_cache_sentinel") ? (q = () => v(null), e[29] = q) : q = e[29];
|
|
1726
1834
|
let V;
|
|
1727
|
-
e[30] !==
|
|
1728
|
-
let ee;
|
|
1729
|
-
e[33] !== I || e[34] !== A.header || e[35] !== i || e[36] !== f ? (ee = (K) => {
|
|
1730
|
-
const [he, fe] = K;
|
|
1731
|
-
return /* @__PURE__ */ n(io, { title: he + " " + A.header.title, collapsed: I < 2, children: /* @__PURE__ */ n(lo, { values: fe, selected: f, onChange: (me) => {
|
|
1732
|
-
y(null), i(me);
|
|
1733
|
-
} }) }, he);
|
|
1734
|
-
}, e[33] = I, e[34] = A.header, e[35] = i, e[36] = f, e[37] = ee) : ee = e[37];
|
|
1735
|
-
const ge = Object.entries(S).map(ee);
|
|
1835
|
+
e[30] !== g || e[31] !== _.header ? (V = /* @__PURE__ */ l(eo, { isMobile: g, labels: _.header, onChangeCollapsed: q }), e[30] = g, e[31] = _.header, e[32] = V) : V = e[32];
|
|
1736
1836
|
let te;
|
|
1737
|
-
e[
|
|
1837
|
+
e[33] !== D || e[34] !== _.header || e[35] !== r || e[36] !== h ? (te = (le) => {
|
|
1838
|
+
const [he, Me] = le;
|
|
1839
|
+
return /* @__PURE__ */ l(to, { title: he + " " + _.header.title, collapsed: D < 2, children: /* @__PURE__ */ l(oo, { values: Me, selected: h, onChange: (Ge) => {
|
|
1840
|
+
v(null), r(Ge);
|
|
1841
|
+
} }) }, he);
|
|
1842
|
+
}, e[33] = D, e[34] = _.header, e[35] = r, e[36] = h, e[37] = te) : te = e[37];
|
|
1843
|
+
const fe = Object.entries(I).map(te);
|
|
1844
|
+
let oe;
|
|
1845
|
+
e[38] !== F || e[39] !== O || e[40] !== g || e[41] !== p || e[42] !== Z || e[43] !== H || e[44] !== V || e[45] !== fe || e[46] !== f ? (oe = /* @__PURE__ */ L(F, { ref: f, slotProps: Z, collapsed: O, position: p, isMobile: g, onChangeCollapsed: H, children: [
|
|
1738
1846
|
V,
|
|
1739
|
-
|
|
1740
|
-
] }), e[38] =
|
|
1741
|
-
let
|
|
1742
|
-
return e[48] !==
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
] }), e[48] =
|
|
1847
|
+
fe
|
|
1848
|
+
] }), e[38] = F, e[39] = O, e[40] = g, e[41] = p, e[42] = Z, e[43] = H, e[44] = V, e[45] = fe, e[46] = f, e[47] = oe) : oe = e[47];
|
|
1849
|
+
let U;
|
|
1850
|
+
return e[48] !== $ || e[49] !== ee || e[50] !== oe ? (U = /* @__PURE__ */ L($, { children: [
|
|
1851
|
+
ee,
|
|
1852
|
+
oe
|
|
1853
|
+
] }), e[48] = $, e[49] = ee, e[50] = oe, e[51] = U) : U = e[51], U;
|
|
1746
1854
|
}
|
|
1747
|
-
function
|
|
1855
|
+
function no(t) {
|
|
1748
1856
|
return t.group ?? "default";
|
|
1749
1857
|
}
|
|
1750
1858
|
export {
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1859
|
+
Et as AreaIcon,
|
|
1860
|
+
vo as BasemapsUI,
|
|
1861
|
+
Rt as BufferIcon,
|
|
1862
|
+
ho as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
|
|
1755
1863
|
re as DEFAULT_MEASUREMENT_TOOLS_LABELS,
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1864
|
+
Bt as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
|
|
1865
|
+
Pt as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
|
|
1866
|
+
wt as DrawCircleIcon,
|
|
1759
1867
|
Ct as DrawLassoIcon,
|
|
1760
|
-
|
|
1868
|
+
yt as DrawPolygonIcon,
|
|
1761
1869
|
xt as DrawSquareIcon,
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1870
|
+
mo as GeolocationControls,
|
|
1871
|
+
K as LASSO_TOOLS_LABELS,
|
|
1872
|
+
po as LassoToolsInlineUI,
|
|
1873
|
+
ce as LassoToolsUI,
|
|
1874
|
+
bo as ListDataUI,
|
|
1875
|
+
fo as MeasurementToolsUI,
|
|
1876
|
+
kt as RulerIcon,
|
|
1877
|
+
Mt as SelectToolIcon,
|
|
1878
|
+
Kt as SmartTooltip,
|
|
1879
|
+
de as Tooltip,
|
|
1880
|
+
go as ZoomControlsUI,
|
|
1881
|
+
uo as setTooltipEnterDelay
|
|
1771
1882
|
};
|
|
1772
1883
|
//# sourceMappingURL=components.js.map
|