@carto/ps-react-ui 4.2.4 → 4.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/components.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as l, jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { ArrowDropDown as
|
|
4
|
-
import { Tooltip as Ke, Chip as Ye, Paper as ye, IconButton as se, Menu as
|
|
5
|
-
import { useState as
|
|
1
|
+
import { jsx as l, jsxs as L, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import { c as P } 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 ft, useMediaQuery as pt } from "@mui/material";
|
|
5
|
+
import { useState as ne, useMemo as Ce, useRef as Oe, useEffect as De, useLayoutEffect as mt } from "react";
|
|
6
6
|
function gt(t) {
|
|
7
7
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
8
8
|
}
|
|
9
|
-
var Te,
|
|
9
|
+
var Te, Ie;
|
|
10
10
|
function bt() {
|
|
11
|
-
if (
|
|
12
|
-
|
|
11
|
+
if (Ie) return Te;
|
|
12
|
+
Ie = 1;
|
|
13
13
|
var t = function(m) {
|
|
14
14
|
return e(m) && !n(m);
|
|
15
15
|
};
|
|
@@ -30,53 +30,53 @@ function bt() {
|
|
|
30
30
|
function s(d, m) {
|
|
31
31
|
return m.clone !== !1 && m.isMergeableObject(d) ? v(r(d), d, m) : d;
|
|
32
32
|
}
|
|
33
|
-
function c(d, m,
|
|
33
|
+
function c(d, m, g) {
|
|
34
34
|
return d.concat(m).map(function(C) {
|
|
35
|
-
return s(C,
|
|
35
|
+
return s(C, g);
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
function u(d, m) {
|
|
39
39
|
if (!m.customMerge)
|
|
40
40
|
return v;
|
|
41
|
-
var
|
|
42
|
-
return typeof
|
|
41
|
+
var g = m.customMerge(d);
|
|
42
|
+
return typeof g == "function" ? g : v;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function h(d) {
|
|
45
45
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(d).filter(function(m) {
|
|
46
46
|
return Object.propertyIsEnumerable.call(d, m);
|
|
47
47
|
}) : [];
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return Object.keys(d).concat(
|
|
49
|
+
function p(d) {
|
|
50
|
+
return Object.keys(d).concat(h(d));
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function f(d, m) {
|
|
53
53
|
try {
|
|
54
54
|
return m in d;
|
|
55
55
|
} catch {
|
|
56
56
|
return !1;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
return
|
|
59
|
+
function b(d, m) {
|
|
60
|
+
return f(d, m) && !(Object.hasOwnProperty.call(d, m) && Object.propertyIsEnumerable.call(d, m));
|
|
61
61
|
}
|
|
62
|
-
function y(d, m,
|
|
62
|
+
function y(d, m, g) {
|
|
63
63
|
var C = {};
|
|
64
|
-
return
|
|
65
|
-
C[w] = s(d[w],
|
|
66
|
-
}),
|
|
67
|
-
|
|
64
|
+
return g.isMergeableObject(d) && p(d).forEach(function(w) {
|
|
65
|
+
C[w] = s(d[w], g);
|
|
66
|
+
}), p(m).forEach(function(w) {
|
|
67
|
+
b(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
68
|
}), C;
|
|
69
69
|
}
|
|
70
|
-
function v(d, m,
|
|
71
|
-
|
|
72
|
-
var C = Array.isArray(m), w = Array.isArray(d),
|
|
73
|
-
return
|
|
70
|
+
function v(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), O = C === w;
|
|
73
|
+
return O ? C ? g.arrayMerge(d, m, g) : y(d, m, g) : s(m, g);
|
|
74
74
|
}
|
|
75
|
-
v.all = function(m,
|
|
75
|
+
v.all = function(m, g) {
|
|
76
76
|
if (!Array.isArray(m))
|
|
77
77
|
throw new Error("first argument should be an array");
|
|
78
78
|
return m.reduce(function(C, w) {
|
|
79
|
-
return v(C, w,
|
|
79
|
+
return v(C, w, g);
|
|
80
80
|
}, {});
|
|
81
81
|
};
|
|
82
82
|
var x = v;
|
|
@@ -84,9 +84,9 @@ function bt() {
|
|
|
84
84
|
}
|
|
85
85
|
var vt = bt();
|
|
86
86
|
const xe = /* @__PURE__ */ gt(vt);
|
|
87
|
-
let
|
|
87
|
+
let Ve = 500;
|
|
88
88
|
function de(t) {
|
|
89
|
-
const e =
|
|
89
|
+
const e = P(10);
|
|
90
90
|
let n, o, i, a;
|
|
91
91
|
e[0] !== t ? ({
|
|
92
92
|
children: n,
|
|
@@ -94,49 +94,49 @@ function de(t) {
|
|
|
94
94
|
enterNextDelay: i,
|
|
95
95
|
...o
|
|
96
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 ?
|
|
97
|
+
const r = i === void 0 ? Ve : i;
|
|
98
98
|
let s;
|
|
99
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
100
|
}
|
|
101
101
|
function uo(t) {
|
|
102
|
-
|
|
102
|
+
Ve = t;
|
|
103
103
|
}
|
|
104
104
|
function yt(t) {
|
|
105
|
-
const e =
|
|
105
|
+
const e = P(3);
|
|
106
106
|
let n;
|
|
107
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
108
|
let o;
|
|
109
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
110
|
}
|
|
111
111
|
function xt(t) {
|
|
112
|
-
const e =
|
|
112
|
+
const e = P(3);
|
|
113
113
|
let n;
|
|
114
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
115
|
let o;
|
|
116
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
117
|
}
|
|
118
118
|
function wt(t) {
|
|
119
|
-
const e =
|
|
119
|
+
const e = P(3);
|
|
120
120
|
let n;
|
|
121
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
122
|
let o;
|
|
123
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
124
|
}
|
|
125
125
|
function Ct(t) {
|
|
126
|
-
const e =
|
|
126
|
+
const e = P(3);
|
|
127
127
|
let n;
|
|
128
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
129
|
let o;
|
|
130
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
131
|
}
|
|
132
132
|
function Mt(t) {
|
|
133
|
-
const e =
|
|
133
|
+
const e = P(3);
|
|
134
134
|
let n;
|
|
135
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
136
|
let o;
|
|
137
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
138
|
}
|
|
139
|
-
const
|
|
139
|
+
const K = {
|
|
140
140
|
action: {
|
|
141
141
|
tooltip: {
|
|
142
142
|
active: "Click on the map to draw your spatial filter",
|
|
@@ -172,7 +172,7 @@ const Q = {
|
|
|
172
172
|
},
|
|
173
173
|
deleteAll: "Remove all"
|
|
174
174
|
}
|
|
175
|
-
},
|
|
175
|
+
}, ho = {
|
|
176
176
|
polygon: {
|
|
177
177
|
icon: yt
|
|
178
178
|
},
|
|
@@ -188,7 +188,7 @@ const Q = {
|
|
|
188
188
|
edit: {
|
|
189
189
|
icon: Mt
|
|
190
190
|
}
|
|
191
|
-
},
|
|
191
|
+
}, J = {
|
|
192
192
|
container: {
|
|
193
193
|
display: "flex",
|
|
194
194
|
flexDirection: "row",
|
|
@@ -352,31 +352,31 @@ const Q = {
|
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
};
|
|
355
|
-
function
|
|
356
|
-
const e =
|
|
355
|
+
function Ue(t) {
|
|
356
|
+
const e = P(18), {
|
|
357
357
|
chipProps: n,
|
|
358
358
|
value: o,
|
|
359
359
|
labels: i,
|
|
360
360
|
onChipToggle: a,
|
|
361
361
|
onDelete: r
|
|
362
|
-
} = t, s = o.visible ? "active" : "inactive", c = i?.tooltip?.[s] ??
|
|
363
|
-
let p;
|
|
364
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
365
|
-
...te.chip.chip
|
|
366
|
-
}, e[0] = p) : p = e[0];
|
|
367
|
-
const f = o.visible ? "secondary" : "default";
|
|
362
|
+
} = t, s = o.visible ? "active" : "inactive", c = i?.tooltip?.[s] ?? K.chip.tooltip[s], u = n?.TooltipProps;
|
|
368
363
|
let h;
|
|
369
|
-
e[
|
|
370
|
-
|
|
371
|
-
|
|
364
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
365
|
+
...J.chip.chip
|
|
366
|
+
}, e[0] = h) : h = e[0];
|
|
367
|
+
const p = 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 b;
|
|
371
|
+
e[4] !== a || e[5] !== o.id || e[6] !== o.visible ? (b = () => a(o.id, !o.visible), e[4] = a, e[5] = o.id, e[6] = o.visible, e[7] = b) : b = e[7];
|
|
372
372
|
const y = n?.ChipsProps;
|
|
373
373
|
let v;
|
|
374
|
-
e[8] !==
|
|
374
|
+
e[8] !== p || e[9] !== f || e[10] !== b || e[11] !== y || e[12] !== o.label ? (v = /* @__PURE__ */ l(Ye, { sx: h, color: p, size: "small", onDelete: f, label: o.label, onClick: b, ...y }), e[8] = p, e[9] = f, e[10] = b, e[11] = y, e[12] = o.label, e[13] = v) : v = e[13];
|
|
375
375
|
let x;
|
|
376
376
|
return e[14] !== c || e[15] !== u || e[16] !== v ? (x = /* @__PURE__ */ l(de, { title: c, placement: "bottom", ...u, children: v }), e[14] = c, e[15] = u, e[16] = v, e[17] = x) : x = e[17], x;
|
|
377
377
|
}
|
|
378
378
|
function ce(t) {
|
|
379
|
-
const e =
|
|
379
|
+
const e = P(44), {
|
|
380
380
|
enabled: n,
|
|
381
381
|
values: o,
|
|
382
382
|
actionProps: i,
|
|
@@ -385,128 +385,128 @@ function ce(t) {
|
|
|
385
385
|
modes: s,
|
|
386
386
|
modesMapping: c,
|
|
387
387
|
modeSelected: u,
|
|
388
|
-
PaperProps:
|
|
389
|
-
onActionToggle:
|
|
390
|
-
onChipToggle:
|
|
391
|
-
onDelete:
|
|
388
|
+
PaperProps: h,
|
|
389
|
+
onActionToggle: p,
|
|
390
|
+
onChipToggle: f,
|
|
391
|
+
onDelete: b,
|
|
392
392
|
onChangeMode: y,
|
|
393
393
|
onAllChipToggle: v,
|
|
394
394
|
onAllDelete: x,
|
|
395
395
|
ChipsSlot: d,
|
|
396
396
|
ActionSlot: m,
|
|
397
|
-
SecondaryActionsSlot:
|
|
397
|
+
SecondaryActionsSlot: g,
|
|
398
398
|
OptionsSlot: C
|
|
399
399
|
} = t;
|
|
400
400
|
let w;
|
|
401
401
|
e[0] !== o ? (w = o === void 0 ? [] : o, e[0] = o, e[1] = w) : w = e[1];
|
|
402
|
-
const
|
|
403
|
-
let
|
|
404
|
-
e[2] !==
|
|
405
|
-
let
|
|
406
|
-
e[4] !==
|
|
407
|
-
sx:
|
|
408
|
-
...
|
|
409
|
-
} =
|
|
410
|
-
const
|
|
411
|
-
let
|
|
412
|
-
e[7] !==
|
|
402
|
+
const O = w;
|
|
403
|
+
let T;
|
|
404
|
+
e[2] !== h ? (T = h === void 0 ? {} : h, e[2] = h, e[3] = T) : T = e[3];
|
|
405
|
+
let D, A;
|
|
406
|
+
e[4] !== T ? ({
|
|
407
|
+
sx: A,
|
|
408
|
+
...D
|
|
409
|
+
} = T, e[4] = T, e[5] = D, e[6] = A) : (D = e[5], A = e[6]);
|
|
410
|
+
const _ = d === void 0 ? ce.Chips : d, I = m === void 0 ? ce.Action : m, S = g === void 0 ? ce.SecondaryActions : g, M = C === void 0 ? ce.Options : C;
|
|
411
|
+
let R;
|
|
412
|
+
e[7] !== D || e[8] !== i || e[9] !== a || e[10] !== n || e[11] !== r || e[12] !== u || e[13] !== s || e[14] !== c || e[15] !== p || e[16] !== v || e[17] !== x || e[18] !== y || e[19] !== f || e[20] !== b || e[21] !== O ? (R = {
|
|
413
413
|
enabled: n,
|
|
414
|
-
values:
|
|
414
|
+
values: O,
|
|
415
415
|
actionProps: i,
|
|
416
416
|
chipProps: a,
|
|
417
417
|
labels: r,
|
|
418
418
|
modes: s,
|
|
419
419
|
modesMapping: c,
|
|
420
420
|
modeSelected: u,
|
|
421
|
-
PaperProps:
|
|
422
|
-
onActionToggle:
|
|
423
|
-
onChipToggle:
|
|
424
|
-
onDelete:
|
|
421
|
+
PaperProps: D,
|
|
422
|
+
onActionToggle: p,
|
|
423
|
+
onChipToggle: f,
|
|
424
|
+
onDelete: b,
|
|
425
425
|
onChangeMode: y,
|
|
426
426
|
onAllChipToggle: v,
|
|
427
427
|
onAllDelete: x
|
|
428
|
-
}, e[7] =
|
|
429
|
-
const k =
|
|
430
|
-
let
|
|
431
|
-
e[23] !==
|
|
432
|
-
...
|
|
433
|
-
...
|
|
434
|
-
}, e[23] =
|
|
435
|
-
let
|
|
436
|
-
e[25] !==
|
|
437
|
-
let
|
|
438
|
-
e[28] !== M || e[29] !== k ? (
|
|
428
|
+
}, e[7] = D, e[8] = i, e[9] = a, e[10] = n, e[11] = r, e[12] = u, e[13] = s, e[14] = c, e[15] = p, e[16] = v, e[17] = x, e[18] = y, e[19] = f, e[20] = b, e[21] = O, e[22] = R) : R = e[22];
|
|
429
|
+
const k = R;
|
|
430
|
+
let E;
|
|
431
|
+
e[23] !== A ? (E = {
|
|
432
|
+
...J.container,
|
|
433
|
+
...A
|
|
434
|
+
}, e[23] = A, e[24] = E) : E = e[24];
|
|
435
|
+
let j;
|
|
436
|
+
e[25] !== I || e[26] !== k ? (j = !!I && /* @__PURE__ */ l(I, { ...k }), e[25] = I, e[26] = k, e[27] = j) : j = e[27];
|
|
437
|
+
let $;
|
|
438
|
+
e[28] !== M || e[29] !== k ? ($ = !!M && /* @__PURE__ */ l(We, { children: (z) => /* @__PURE__ */ l(M, { ...k, ...z }) }), e[28] = M, e[29] = k, e[30] = $) : $ = e[30];
|
|
439
439
|
let B;
|
|
440
|
-
e[31] !==
|
|
441
|
-
let
|
|
442
|
-
e[34] !==
|
|
443
|
-
let
|
|
444
|
-
return e[37] !==
|
|
445
|
-
|
|
446
|
-
|
|
440
|
+
e[31] !== _ || e[32] !== k ? (B = !!_ && /* @__PURE__ */ l(_, { ...k }), e[31] = _, e[32] = k, e[33] = B) : B = e[33];
|
|
441
|
+
let V;
|
|
442
|
+
e[34] !== S || e[35] !== k ? (V = !!S && /* @__PURE__ */ l(S, { ...k }), e[34] = S, e[35] = k, e[36] = V) : V = e[36];
|
|
443
|
+
let Z;
|
|
444
|
+
return e[37] !== D || e[38] !== E || e[39] !== j || e[40] !== $ || e[41] !== B || e[42] !== V ? (Z = /* @__PURE__ */ L(ye, { sx: E, ...D, children: [
|
|
445
|
+
j,
|
|
446
|
+
$,
|
|
447
447
|
B,
|
|
448
|
-
|
|
449
|
-
] }), e[37] =
|
|
448
|
+
V
|
|
449
|
+
] }), e[37] = D, e[38] = E, e[39] = j, e[40] = $, e[41] = B, e[42] = V, e[43] = Z) : Z = e[43], Z;
|
|
450
450
|
}
|
|
451
451
|
function St(t) {
|
|
452
|
-
const e =
|
|
452
|
+
const e = P(12), {
|
|
453
453
|
actionProps: n,
|
|
454
454
|
labels: o,
|
|
455
455
|
enabled: i,
|
|
456
456
|
children: a,
|
|
457
457
|
onActionToggle: r
|
|
458
|
-
} = t, s = i ? "active" : "inactive", c = o?.tooltip?.[s] ??
|
|
458
|
+
} = t, s = i ? "active" : "inactive", c = o?.tooltip?.[s] ?? K.action.tooltip[s], u = n?.TooltipProps;
|
|
459
|
+
let h;
|
|
460
|
+
e[0] !== i || e[1] !== r ? (h = () => r(!i), e[0] = i, e[1] = r, e[2] = h) : h = e[2];
|
|
459
461
|
let p;
|
|
460
|
-
e[
|
|
462
|
+
e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== h ? (p = /* @__PURE__ */ l(ve, { value: "toggle", sx: J.actions.icon, onClick: h, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = h, e[7] = p) : p = e[7];
|
|
461
463
|
let f;
|
|
462
|
-
e[
|
|
463
|
-
let h;
|
|
464
|
-
return e[8] !== c || e[9] !== u || e[10] !== f ? (h = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: f }), e[8] = c, e[9] = u, e[10] = f, e[11] = h) : h = e[11], h;
|
|
464
|
+
return e[8] !== c || e[9] !== u || e[10] !== p ? (f = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: p }), e[8] = c, e[9] = u, e[10] = p, e[11] = f) : f = e[11], f;
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function We({
|
|
467
467
|
TriggerProps: {
|
|
468
|
-
Icon: t = /* @__PURE__ */ l(
|
|
468
|
+
Icon: t = /* @__PURE__ */ l(Pe, {}),
|
|
469
469
|
sx: e
|
|
470
470
|
} = {},
|
|
471
471
|
MenuProps: n,
|
|
472
472
|
children: o
|
|
473
473
|
}) {
|
|
474
|
-
const [i, a] =
|
|
474
|
+
const [i, a] = ne(null), r = !!i, s = (u) => {
|
|
475
475
|
a(u.currentTarget);
|
|
476
476
|
}, c = () => {
|
|
477
477
|
a(null);
|
|
478
478
|
};
|
|
479
|
-
return /* @__PURE__ */
|
|
479
|
+
return /* @__PURE__ */ L(N, { children: [
|
|
480
480
|
/* @__PURE__ */ l(se, { sx: {
|
|
481
|
-
...
|
|
481
|
+
...J.options.icon,
|
|
482
482
|
...e
|
|
483
483
|
}, onClick: s, children: t }),
|
|
484
|
-
/* @__PURE__ */ l(
|
|
484
|
+
/* @__PURE__ */ l($e, { id: "lasso-menu", anchorEl: i, open: r, onClose: c, MenuListProps: {
|
|
485
485
|
"aria-labelledby": "lasso-button",
|
|
486
|
-
sx:
|
|
486
|
+
sx: J.options.menu
|
|
487
487
|
}, ...n, children: /* @__PURE__ */ l("div", { children: o({
|
|
488
488
|
onClose: c
|
|
489
489
|
}) }) })
|
|
490
490
|
] });
|
|
491
491
|
}
|
|
492
492
|
function Tt(t) {
|
|
493
|
-
const e =
|
|
493
|
+
const e = P(5), {
|
|
494
494
|
data: n,
|
|
495
495
|
labels: o,
|
|
496
496
|
children: i
|
|
497
497
|
} = t;
|
|
498
498
|
if (n.length <= 1)
|
|
499
499
|
return null;
|
|
500
|
-
const a = o?.mode?.title ??
|
|
500
|
+
const a = o?.mode?.title ?? K.options.mode.title;
|
|
501
501
|
let r;
|
|
502
|
-
e[0] !== a ? (r = /* @__PURE__ */ l(
|
|
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
503
|
let s;
|
|
504
|
-
return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */
|
|
504
|
+
return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ L(N, { children: [
|
|
505
505
|
r,
|
|
506
506
|
i
|
|
507
507
|
] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function Le({
|
|
510
510
|
data: t,
|
|
511
511
|
modeSelected: e,
|
|
512
512
|
labels: n,
|
|
@@ -517,15 +517,15 @@ function Re({
|
|
|
517
517
|
r.preventDefault(), o?.(s), i();
|
|
518
518
|
};
|
|
519
519
|
return t.map((r) => {
|
|
520
|
-
const c = (n?.mode?.options ??
|
|
521
|
-
return /* @__PURE__ */
|
|
522
|
-
/* @__PURE__ */ l(
|
|
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
523
|
/* @__PURE__ */ l(be, { children: c })
|
|
524
524
|
] }, r.value);
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
527
|
function At(t) {
|
|
528
|
-
const e =
|
|
528
|
+
const e = P(8), {
|
|
529
529
|
values: n,
|
|
530
530
|
labels: o,
|
|
531
531
|
onAllChipToggle: i,
|
|
@@ -533,14 +533,14 @@ function At(t) {
|
|
|
533
533
|
} = t;
|
|
534
534
|
if (!n?.length || n.length <= 1)
|
|
535
535
|
return null;
|
|
536
|
-
const s = n?.some(_t) ? o?.actions?.toggleAll?.active ??
|
|
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;
|
|
537
537
|
let u;
|
|
538
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
|
|
540
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
541
|
-
Icon: /* @__PURE__ */ l(
|
|
542
|
-
sx:
|
|
543
|
-
},
|
|
539
|
+
let h, p;
|
|
540
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
541
|
+
Icon: /* @__PURE__ */ l(ze, {}),
|
|
542
|
+
sx: J.options.more
|
|
543
|
+
}, p = {
|
|
544
544
|
anchorOrigin: {
|
|
545
545
|
vertical: "bottom",
|
|
546
546
|
horizontal: "right"
|
|
@@ -549,20 +549,20 @@ function At(t) {
|
|
|
549
549
|
vertical: "top",
|
|
550
550
|
horizontal: "right"
|
|
551
551
|
}
|
|
552
|
-
}, e[1] =
|
|
553
|
-
let
|
|
554
|
-
return e[3] !== c || e[4] !== i || e[5] !== a || e[6] !== s ? (
|
|
552
|
+
}, e[1] = h, e[2] = p) : (h = e[1], p = e[2]);
|
|
553
|
+
let f;
|
|
554
|
+
return e[3] !== c || e[4] !== i || e[5] !== a || e[6] !== s ? (f = /* @__PURE__ */ L(N, { children: [
|
|
555
555
|
u,
|
|
556
|
-
/* @__PURE__ */ l(
|
|
556
|
+
/* @__PURE__ */ l(We, { TriggerProps: h, MenuProps: p, children: (b) => /* @__PURE__ */ L(N, { children: [
|
|
557
557
|
/* @__PURE__ */ l(ge, { color: "inherit", onClick: () => {
|
|
558
|
-
i?.(),
|
|
558
|
+
i?.(), b.onClose();
|
|
559
559
|
}, children: s }),
|
|
560
560
|
/* @__PURE__ */ l(ae, {}),
|
|
561
561
|
/* @__PURE__ */ l(ge, { color: "error", onClick: () => {
|
|
562
|
-
a?.(),
|
|
563
|
-
}, children: /* @__PURE__ */ l(
|
|
562
|
+
a?.(), b.onClose();
|
|
563
|
+
}, children: /* @__PURE__ */ l(Y, { variant: "body2", color: "error", children: c }) })
|
|
564
564
|
] }) })
|
|
565
|
-
] }), e[3] = c, e[4] = i, e[5] = a, e[6] = s, e[7] =
|
|
565
|
+
] }), e[3] = c, e[4] = i, e[5] = a, e[6] = s, e[7] = f) : f = e[7], f;
|
|
566
566
|
}
|
|
567
567
|
function _t(t) {
|
|
568
568
|
return t.visible;
|
|
@@ -576,8 +576,8 @@ ce.Action = function({
|
|
|
576
576
|
labels: r,
|
|
577
577
|
onActionToggle: s
|
|
578
578
|
}) {
|
|
579
|
-
const c = Ce(() => xe(e ?? {}, n ?? {}), [e, n]), u = (
|
|
580
|
-
return /* @__PURE__ */ l(St, { actionProps: i, labels: r?.action, enabled: a ?? !1, onActionToggle: u, children:
|
|
579
|
+
const c = Ce(() => xe(e ?? {}, n ?? {}), [e, n]), u = (b) => s?.(b), p = (o ? o in (e ?? {}) : !1) ? o : Object.keys(c)[0], f = c[p];
|
|
580
|
+
return /* @__PURE__ */ l(St, { actionProps: i, labels: r?.action, enabled: a ?? !1, onActionToggle: u, children: f?.icon && /* @__PURE__ */ l(f.icon, {}) });
|
|
581
581
|
};
|
|
582
582
|
ce.Chips = function({
|
|
583
583
|
values: e,
|
|
@@ -588,7 +588,7 @@ ce.Chips = function({
|
|
|
588
588
|
onActionToggle: r
|
|
589
589
|
}) {
|
|
590
590
|
const s = (c) => (r?.(!1), i?.(c));
|
|
591
|
-
return !!e?.length && /* @__PURE__ */ l(
|
|
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: (u, h) => a?.(u, h) }, c.id)) });
|
|
592
592
|
};
|
|
593
593
|
ce.SecondaryActions = At;
|
|
594
594
|
ce.Options = function({
|
|
@@ -602,16 +602,16 @@ ce.Options = function({
|
|
|
602
602
|
}) {
|
|
603
603
|
const c = Ce(() => xe(n ?? {}, o ?? {}), [n, o]), {
|
|
604
604
|
edit: u,
|
|
605
|
-
...
|
|
606
|
-
} = c,
|
|
607
|
-
return /* @__PURE__ */
|
|
608
|
-
/* @__PURE__ */ l(Tt, { data:
|
|
609
|
-
!!u && /* @__PURE__ */
|
|
605
|
+
...h
|
|
606
|
+
} = c, f = (i ? i in (n ?? {}) : !1) ? i : Object.keys(c)[0], b = Object.values(h), y = (v) => r?.(v);
|
|
607
|
+
return /* @__PURE__ */ L(N, { children: [
|
|
608
|
+
/* @__PURE__ */ l(Tt, { data: b, labels: a?.options, children: /* @__PURE__ */ l(Le, { ...s, labels: a?.options, data: b, modeSelected: f, onChangeMode: y }) }),
|
|
609
|
+
!!u && /* @__PURE__ */ L(N, { children: [
|
|
610
610
|
/* @__PURE__ */ l(ae, {}),
|
|
611
|
-
/* @__PURE__ */ l(
|
|
611
|
+
/* @__PURE__ */ l(Le, { ...s, labels: a?.options, data: [{
|
|
612
612
|
...u,
|
|
613
613
|
disabled: !e?.length
|
|
614
|
-
}], modeSelected:
|
|
614
|
+
}], modeSelected: f, onChangeMode: y })
|
|
615
615
|
] })
|
|
616
616
|
] });
|
|
617
617
|
};
|
|
@@ -628,26 +628,26 @@ function fo({
|
|
|
628
628
|
...c
|
|
629
629
|
} = {},
|
|
630
630
|
onChipToggle: u,
|
|
631
|
-
onDelete:
|
|
632
|
-
onChangeMode:
|
|
633
|
-
onAllChipToggle:
|
|
634
|
-
onAllDelete:
|
|
631
|
+
onDelete: h,
|
|
632
|
+
onChangeMode: p,
|
|
633
|
+
onAllChipToggle: f,
|
|
634
|
+
onAllDelete: b
|
|
635
635
|
}) {
|
|
636
636
|
const y = Ce(() => xe(i, a), [i, a]), {
|
|
637
637
|
edit: v,
|
|
638
638
|
...x
|
|
639
|
-
} = y, d = (
|
|
640
|
-
|
|
641
|
-
}, C = (r ?? "") in i ? r : Object.keys(y)[0], w = t ? y[C] : null,
|
|
642
|
-
return /* @__PURE__ */
|
|
643
|
-
...
|
|
639
|
+
} = y, d = (T) => h(T), m = (T, D) => {
|
|
640
|
+
T.preventDefault(), p?.(D);
|
|
641
|
+
}, C = (r ?? "") in i ? r : Object.keys(y)[0], w = t ? y[C] : null, O = Object.values(x);
|
|
642
|
+
return /* @__PURE__ */ L(X, { sx: {
|
|
643
|
+
...J.container,
|
|
644
644
|
...s
|
|
645
645
|
}, ...c, className: "inline", children: [
|
|
646
|
-
/* @__PURE__ */ l(Ot, { data:
|
|
647
|
-
/* @__PURE__ */ l(
|
|
648
|
-
!!v && /* @__PURE__ */
|
|
646
|
+
/* @__PURE__ */ l(Ot, { data: O, 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: O }),
|
|
648
|
+
!!v && /* @__PURE__ */ L(N, { children: [
|
|
649
649
|
/* @__PURE__ */ l(ae, { orientation: "vertical" }),
|
|
650
|
-
/* @__PURE__ */ l(
|
|
650
|
+
/* @__PURE__ */ l(ke, { labels: o?.options, data: [{
|
|
651
651
|
...v,
|
|
652
652
|
disabled: !e.length
|
|
653
653
|
}] })
|
|
@@ -655,56 +655,56 @@ function fo({
|
|
|
655
655
|
] }) }),
|
|
656
656
|
/* @__PURE__ */ l(ae, { flexItem: !0 }),
|
|
657
657
|
/* @__PURE__ */ l(Dt, { hasValues: !!e.length, labels: o?.noData }),
|
|
658
|
-
!!e.length && /* @__PURE__ */ l(
|
|
659
|
-
/* @__PURE__ */ l(It, { values: e, labels: o?.actions, onAllChipToggle:
|
|
658
|
+
!!e.length && /* @__PURE__ */ l(X, { sx: J.chip.container, className: "inline", children: e.map((T) => /* @__PURE__ */ l(Ue, { value: T, labels: o?.chip, chipProps: n, onDelete: d, onChipToggle: u }, T.id)) }),
|
|
659
|
+
/* @__PURE__ */ l(It, { values: e, labels: o?.actions, onAllChipToggle: f, onAllDelete: b })
|
|
660
660
|
] });
|
|
661
661
|
}
|
|
662
662
|
function Ot(t) {
|
|
663
|
-
const e =
|
|
663
|
+
const e = P(5), {
|
|
664
664
|
data: n,
|
|
665
665
|
labels: o,
|
|
666
666
|
children: i
|
|
667
667
|
} = t;
|
|
668
668
|
if (n.length <= 1)
|
|
669
669
|
return null;
|
|
670
|
-
const a = o?.mode?.title ??
|
|
670
|
+
const a = o?.mode?.title ?? K.options.mode.title;
|
|
671
671
|
let r;
|
|
672
|
-
e[0] !== a ? (r = /* @__PURE__ */ l(
|
|
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
673
|
let s;
|
|
674
|
-
return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */
|
|
674
|
+
return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ L(N, { children: [
|
|
675
675
|
r,
|
|
676
676
|
i
|
|
677
677
|
] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function ke({
|
|
680
680
|
data: t,
|
|
681
681
|
labels: e
|
|
682
682
|
}) {
|
|
683
683
|
return t.map((n) => {
|
|
684
|
-
const i = (e?.mode?.options ??
|
|
684
|
+
const i = (e?.mode?.options ?? K.options.mode.options)[n.value];
|
|
685
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);
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
688
|
function Dt(t) {
|
|
689
|
-
const e =
|
|
689
|
+
const e = P(7), {
|
|
690
690
|
hasValues: n,
|
|
691
691
|
labels: o
|
|
692
692
|
} = t;
|
|
693
693
|
if (n)
|
|
694
694
|
return null;
|
|
695
|
-
const i = o?.title ??
|
|
695
|
+
const i = o?.title ?? K.noData.title, a = o?.description ?? K.noData.description;
|
|
696
696
|
let r;
|
|
697
|
-
e[0] !== i ? (r = /* @__PURE__ */ l(
|
|
697
|
+
e[0] !== i ? (r = /* @__PURE__ */ l(Y, { variant: "body1", color: "textSecondary", children: i }), e[0] = i, e[1] = r) : r = e[1];
|
|
698
698
|
let s;
|
|
699
|
-
e[2] !== a ? (s = /* @__PURE__ */ l(
|
|
699
|
+
e[2] !== a ? (s = /* @__PURE__ */ l(Y, { variant: "body2", color: "textSecondary", children: a }), e[2] = a, e[3] = s) : s = e[3];
|
|
700
700
|
let c;
|
|
701
|
-
return e[4] !== r || e[5] !== s ? (c = /* @__PURE__ */
|
|
701
|
+
return e[4] !== r || e[5] !== s ? (c = /* @__PURE__ */ L(N, { children: [
|
|
702
702
|
r,
|
|
703
703
|
s
|
|
704
704
|
] }), e[4] = r, e[5] = s, e[6] = c) : c = e[6], c;
|
|
705
705
|
}
|
|
706
706
|
function It(t) {
|
|
707
|
-
const e =
|
|
707
|
+
const e = P(13), {
|
|
708
708
|
values: n,
|
|
709
709
|
labels: o,
|
|
710
710
|
onAllChipToggle: i,
|
|
@@ -712,44 +712,44 @@ function It(t) {
|
|
|
712
712
|
} = t;
|
|
713
713
|
if (n.length <= 1)
|
|
714
714
|
return null;
|
|
715
|
-
const s = n.some(Lt) ? o?.toggleAll?.active ??
|
|
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;
|
|
716
716
|
let u;
|
|
717
717
|
e[0] !== i ? (u = () => i(), e[0] = i, e[1] = u) : u = e[1];
|
|
718
|
+
let h;
|
|
719
|
+
e[2] !== u || e[3] !== s ? (h = /* @__PURE__ */ l(we, { color: "inherit", onClick: u, children: s }), e[2] = u, e[3] = s, e[4] = h) : h = e[4];
|
|
718
720
|
let p;
|
|
719
|
-
e[
|
|
721
|
+
e[5] !== a ? (p = () => a(), e[5] = a, e[6] = p) : p = e[6];
|
|
720
722
|
let f;
|
|
721
|
-
e[
|
|
722
|
-
let
|
|
723
|
-
e[
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
h
|
|
728
|
-
] }), e[10] = p, e[11] = h, e[12] = g) : g = e[12], g;
|
|
723
|
+
e[7] !== c || e[8] !== p ? (f = /* @__PURE__ */ l(we, { color: "error", onClick: p, children: c }), e[7] = c, e[8] = p, e[9] = f) : f = e[9];
|
|
724
|
+
let b;
|
|
725
|
+
return e[10] !== h || e[11] !== f ? (b = /* @__PURE__ */ L(X, { children: [
|
|
726
|
+
h,
|
|
727
|
+
f
|
|
728
|
+
] }), e[10] = h, e[11] = f, e[12] = b) : b = e[12], b;
|
|
729
729
|
}
|
|
730
730
|
function Lt(t) {
|
|
731
731
|
return t.visible;
|
|
732
732
|
}
|
|
733
733
|
function kt(t) {
|
|
734
|
-
const e =
|
|
734
|
+
const e = P(3);
|
|
735
735
|
let n;
|
|
736
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];
|
|
737
737
|
let o;
|
|
738
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;
|
|
739
739
|
}
|
|
740
740
|
function Rt(t) {
|
|
741
|
-
const e =
|
|
741
|
+
const e = P(3);
|
|
742
742
|
let n;
|
|
743
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];
|
|
744
744
|
let o;
|
|
745
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;
|
|
746
746
|
}
|
|
747
747
|
function Et(t) {
|
|
748
|
-
const e =
|
|
748
|
+
const e = P(4);
|
|
749
749
|
let n, o;
|
|
750
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
751
|
let i;
|
|
752
|
-
return e[2] !== t ? (i = /* @__PURE__ */
|
|
752
|
+
return e[2] !== t ? (i = /* @__PURE__ */ L("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
|
|
753
753
|
n,
|
|
754
754
|
o
|
|
755
755
|
] }), e[2] = t, e[3] = i) : i = e[3], i;
|
|
@@ -844,7 +844,7 @@ const re = {
|
|
|
844
844
|
area: {
|
|
845
845
|
icon: /* @__PURE__ */ l(Et, {})
|
|
846
846
|
}
|
|
847
|
-
},
|
|
847
|
+
}, Q = {
|
|
848
848
|
container: {
|
|
849
849
|
display: "flex",
|
|
850
850
|
flexDirection: "row",
|
|
@@ -976,8 +976,8 @@ const re = {
|
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
};
|
|
979
|
-
function
|
|
980
|
-
const e =
|
|
979
|
+
function po(t) {
|
|
980
|
+
const e = P(46), {
|
|
981
981
|
enabled: n,
|
|
982
982
|
actionProps: o,
|
|
983
983
|
labels: i,
|
|
@@ -986,82 +986,82 @@ function ho(t) {
|
|
|
986
986
|
unitsMapping: s,
|
|
987
987
|
modeSelected: c,
|
|
988
988
|
PaperProps: u,
|
|
989
|
-
units:
|
|
990
|
-
unitSelected:
|
|
991
|
-
onActionToggle:
|
|
992
|
-
onChangeMode:
|
|
989
|
+
units: h,
|
|
990
|
+
unitSelected: p,
|
|
991
|
+
onActionToggle: f,
|
|
992
|
+
onChangeMode: b,
|
|
993
993
|
onChangeUnit: y
|
|
994
994
|
} = t, v = i === void 0 ? re : i, x = r === void 0 ? Bt : r, d = s === void 0 ? Pt : s;
|
|
995
995
|
let m;
|
|
996
996
|
e[0] !== u ? (m = u === void 0 ? {} : u, e[0] = u, e[1] = m) : m = e[1];
|
|
997
|
-
let
|
|
997
|
+
let g, C;
|
|
998
998
|
e[2] !== m ? ({
|
|
999
999
|
sx: C,
|
|
1000
|
-
...
|
|
1001
|
-
} = m, e[2] = m, e[3] =
|
|
1000
|
+
...g
|
|
1001
|
+
} = m, e[2] = m, e[3] = g, e[4] = C) : (g = e[3], C = e[4]);
|
|
1002
1002
|
let w;
|
|
1003
|
-
e[5] !==
|
|
1004
|
-
const
|
|
1005
|
-
let
|
|
1006
|
-
e[7] !== a || e[8] !== x ? (
|
|
1007
|
-
const
|
|
1008
|
-
let
|
|
1009
|
-
e[10] !==
|
|
1010
|
-
const
|
|
1011
|
-
let P;
|
|
1012
|
-
const k = p[A];
|
|
1003
|
+
e[5] !== f ? (w = (W) => f(!!W), e[5] = f, e[6] = w) : w = e[6];
|
|
1004
|
+
const O = w;
|
|
1005
|
+
let T, D;
|
|
1006
|
+
e[7] !== a || e[8] !== x ? (D = xe(a, x), e[7] = a, e[8] = x, e[9] = D) : D = e[9], T = D;
|
|
1007
|
+
const A = T, _ = (c ?? "") in A;
|
|
1008
|
+
let I;
|
|
1009
|
+
e[10] !== A || e[11] !== _ || e[12] !== c ? (I = _ ? c : Object.keys(A)[0], e[10] = A, e[11] = _, e[12] = c, e[13] = I) : I = e[13];
|
|
1010
|
+
const S = I, M = A[S];
|
|
1013
1011
|
let R;
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1012
|
+
const k = h[S];
|
|
1013
|
+
let E;
|
|
1014
|
+
e[14] !== S || e[15] !== k || e[16] !== h ? (E = Object.keys(h).length >= 1 ? h : {
|
|
1015
|
+
[S]: k.slice(0, 1)
|
|
1016
|
+
}, e[14] = S, e[15] = k, e[16] = h, e[17] = E) : E = e[17];
|
|
1017
|
+
const $ = E[S];
|
|
1018
1018
|
let B;
|
|
1019
|
-
if (e[18] !==
|
|
1020
|
-
let
|
|
1021
|
-
e[21] !== d ? (
|
|
1022
|
-
...
|
|
1023
|
-
...d[
|
|
1024
|
-
}), e[21] = d, e[22] =
|
|
1019
|
+
if (e[18] !== $ || e[19] !== d) {
|
|
1020
|
+
let W;
|
|
1021
|
+
e[21] !== d ? (W = (te) => ({
|
|
1022
|
+
...te,
|
|
1023
|
+
...d[te.value]
|
|
1024
|
+
}), e[21] = d, e[22] = W) : W = e[22], B = $.map(W), e[18] = $, e[19] = d, e[20] = B;
|
|
1025
1025
|
} else
|
|
1026
1026
|
B = e[20];
|
|
1027
|
-
|
|
1028
|
-
const
|
|
1029
|
-
let
|
|
1030
|
-
e[23] !== C ? (
|
|
1031
|
-
...
|
|
1027
|
+
R = B;
|
|
1028
|
+
const V = R;
|
|
1029
|
+
let Z;
|
|
1030
|
+
e[23] !== C ? (Z = {
|
|
1031
|
+
...Q.container,
|
|
1032
1032
|
...C
|
|
1033
|
-
}, e[23] = C, e[24] =
|
|
1034
|
-
const
|
|
1035
|
-
let
|
|
1036
|
-
e[25] !== o || e[26] !== n || e[27] !==
|
|
1037
|
-
const
|
|
1038
|
-
let
|
|
1039
|
-
e[31] !==
|
|
1040
|
-
let z;
|
|
1041
|
-
e[39] !== W || e[40] !== $ ? (z = /* @__PURE__ */ I(Y, { children: [
|
|
1042
|
-
W,
|
|
1043
|
-
$
|
|
1044
|
-
] }), e[39] = W, e[40] = $, e[41] = z) : z = e[41];
|
|
1033
|
+
}, e[23] = C, e[24] = Z) : Z = e[24];
|
|
1034
|
+
const z = v?.action, ee = M?.icon;
|
|
1035
|
+
let F;
|
|
1036
|
+
e[25] !== o || e[26] !== n || e[27] !== O || e[28] !== z || e[29] !== ee ? (F = /* @__PURE__ */ l($t, { actionProps: o, labels: z, enabled: n, onActionToggle: O, children: ee }), e[25] = o, e[26] = n, e[27] = O, e[28] = z, e[29] = ee, e[30] = F) : F = e[30];
|
|
1037
|
+
const ie = v?.options;
|
|
1038
|
+
let U;
|
|
1039
|
+
e[31] !== V || e[32] !== A || e[33] !== S || e[34] !== b || e[35] !== y || e[36] !== ie || e[37] !== p ? (U = /* @__PURE__ */ l(jt, { labels: ie, modes: A, modeSelected: S, units: V, unitSelected: p, onChangeMode: b, onChangeUnit: y }), e[31] = V, e[32] = A, e[33] = S, e[34] = b, e[35] = y, e[36] = ie, e[37] = p, e[38] = U) : U = e[38];
|
|
1045
1040
|
let H;
|
|
1046
|
-
|
|
1041
|
+
e[39] !== F || e[40] !== U ? (H = /* @__PURE__ */ L(X, { children: [
|
|
1042
|
+
F,
|
|
1043
|
+
U
|
|
1044
|
+
] }), e[39] = F, e[40] = U, e[41] = H) : H = e[41];
|
|
1045
|
+
let q;
|
|
1046
|
+
return e[42] !== g || e[43] !== Z || e[44] !== H ? (q = /* @__PURE__ */ l(ye, { sx: Z, ...g, children: H }), e[42] = g, e[43] = Z, e[44] = H, e[45] = q) : q = e[45], q;
|
|
1047
1047
|
}
|
|
1048
1048
|
function $t(t) {
|
|
1049
|
-
const e =
|
|
1049
|
+
const e = P(12), {
|
|
1050
1050
|
actionProps: n,
|
|
1051
1051
|
labels: o,
|
|
1052
1052
|
enabled: i,
|
|
1053
1053
|
children: a,
|
|
1054
1054
|
onActionToggle: r
|
|
1055
1055
|
} = t, s = i ? "active" : "inactive", c = o?.tooltip?.[s] ?? re.action.tooltip[s], u = n?.TooltipProps;
|
|
1056
|
+
let h;
|
|
1057
|
+
e[0] !== i || e[1] !== r ? (h = () => r(!i), e[0] = i, e[1] = r, e[2] = h) : h = e[2];
|
|
1056
1058
|
let p;
|
|
1057
|
-
e[
|
|
1059
|
+
e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== h ? (p = /* @__PURE__ */ l(ve, { value: "toggle", sx: Q.actions.icon, onClick: h, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = h, e[7] = p) : p = e[7];
|
|
1058
1060
|
let f;
|
|
1059
|
-
e[
|
|
1060
|
-
let h;
|
|
1061
|
-
return e[8] !== c || e[9] !== u || e[10] !== f ? (h = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: f }), e[8] = c, e[9] = u, e[10] = f, e[11] = h) : h = e[11], h;
|
|
1061
|
+
return e[8] !== c || e[9] !== u || e[10] !== p ? (f = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: p }), e[8] = c, e[9] = u, e[10] = p, e[11] = f) : f = e[11], f;
|
|
1062
1062
|
}
|
|
1063
1063
|
function jt(t) {
|
|
1064
|
-
const e =
|
|
1064
|
+
const e = P(68), {
|
|
1065
1065
|
modes: n,
|
|
1066
1066
|
modeSelected: o,
|
|
1067
1067
|
units: i,
|
|
@@ -1069,90 +1069,90 @@ function jt(t) {
|
|
|
1069
1069
|
labels: r,
|
|
1070
1070
|
onChangeMode: s,
|
|
1071
1071
|
onChangeUnit: c
|
|
1072
|
-
} = t, [u,
|
|
1073
|
-
let
|
|
1072
|
+
} = t, [u, h] = ne(null), [p, f] = ne(!1);
|
|
1073
|
+
let b, y, v, x, d, m, g, C, w, O, T, D, A, _, I, S;
|
|
1074
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) {
|
|
1075
|
-
|
|
1075
|
+
A = Symbol.for("react.early_return_sentinel");
|
|
1076
1076
|
e: {
|
|
1077
|
-
const
|
|
1077
|
+
const $ = Object.values(n);
|
|
1078
1078
|
let B;
|
|
1079
|
-
if (e[26] !== i ? (B = Object.values(i), e[26] = i, e[27] = B) : B = e[27],
|
|
1080
|
-
|
|
1079
|
+
if (e[26] !== i ? (B = Object.values(i), e[26] = i, e[27] = B) : B = e[27], S = B, !($.length > 1 || S.length > 1)) {
|
|
1080
|
+
A = null;
|
|
1081
1081
|
break e;
|
|
1082
1082
|
}
|
|
1083
|
-
const
|
|
1084
|
-
let
|
|
1085
|
-
e[28] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1086
|
-
|
|
1087
|
-
}, e[28] =
|
|
1088
|
-
const
|
|
1083
|
+
const Z = !!u;
|
|
1084
|
+
let z;
|
|
1085
|
+
e[28] === Symbol.for("react.memo_cache_sentinel") ? (z = (G) => {
|
|
1086
|
+
h(G.currentTarget);
|
|
1087
|
+
}, e[28] = z) : z = e[28];
|
|
1088
|
+
const ee = z;
|
|
1089
|
+
let F;
|
|
1090
|
+
e[29] === Symbol.for("react.memo_cache_sentinel") ? (F = () => {
|
|
1091
|
+
h(null);
|
|
1092
|
+
}, e[29] = F) : F = e[29];
|
|
1093
|
+
const ie = F;
|
|
1094
|
+
let U;
|
|
1095
|
+
e[30] !== s ? (U = (G, le) => {
|
|
1096
|
+
G.preventDefault(), s(le.value), ie();
|
|
1097
|
+
}, e[30] = s, e[31] = U) : U = e[31];
|
|
1098
|
+
const H = U;
|
|
1099
|
+
let q;
|
|
1100
|
+
e[32] === Symbol.for("react.memo_cache_sentinel") ? (q = () => {
|
|
1101
|
+
f(!0);
|
|
1102
|
+
}, e[32] = q) : q = e[32], v = q;
|
|
1089
1103
|
let W;
|
|
1090
|
-
e[
|
|
1091
|
-
|
|
1092
|
-
}, e[
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
let H;
|
|
1100
|
-
e[32] === Symbol.for("react.memo_cache_sentinel") ? (H = () => {
|
|
1101
|
-
h(!0);
|
|
1102
|
-
}, e[32] = H) : H = e[32], v = H;
|
|
1103
|
-
let G;
|
|
1104
|
-
e[33] === Symbol.for("react.memo_cache_sentinel") ? (G = () => {
|
|
1105
|
-
h(!1);
|
|
1106
|
-
}, e[33] = G) : G = e[33], x = G;
|
|
1104
|
+
e[33] === Symbol.for("react.memo_cache_sentinel") ? (W = () => {
|
|
1105
|
+
f(!1);
|
|
1106
|
+
}, e[33] = W) : W = e[33], x = W;
|
|
1107
|
+
let te;
|
|
1108
|
+
e[34] !== c ? (te = (G) => {
|
|
1109
|
+
x(), c(G);
|
|
1110
|
+
}, e[34] = c, e[35] = te) : te = e[35], y = te;
|
|
1111
|
+
const pe = r?.mode?.title ?? re.options.mode.title;
|
|
1112
|
+
I = r?.units?.title ?? re.options.units.title, d = $.length > 1 && S.length > 1;
|
|
1107
1113
|
let oe;
|
|
1108
|
-
e[
|
|
1109
|
-
x(), c(X);
|
|
1110
|
-
}, e[34] = c, e[35] = oe) : oe = e[35], y = oe;
|
|
1111
|
-
const he = r?.mode?.title ?? re.options.mode.title;
|
|
1112
|
-
L = r?.units?.title ?? re.options.units.title, d = V.length > 1 && A.length > 1;
|
|
1113
|
-
let le;
|
|
1114
|
-
e[36] !== a || e[37] !== i ? (le = i.find((X) => X.value === a) ?? i[0], e[36] = a, e[37] = i, e[38] = le) : le = e[38], D = le, e[39] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ l(se, { sx: ee.options.icon, onClick: F, children: /* @__PURE__ */ l($e, {}) }), e[39] = S) : S = e[39], g = Ze, b = "measurement-menu", C = u, w = N, _ = q, e[40] === Symbol.for("react.memo_cache_sentinel") ? (O = {
|
|
1114
|
+
e[36] !== a || e[37] !== i ? (oe = i.find((G) => G.value === a) ?? i[0], e[36] = a, e[37] = i, e[38] = oe) : oe = e[38], _ = oe, e[39] === Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ l(se, { sx: Q.options.icon, onClick: ee, children: /* @__PURE__ */ l(Pe, {}) }), e[39] = D) : D = e[39], b = $e, g = "measurement-menu", C = u, w = Z, O = ie, e[40] === Symbol.for("react.memo_cache_sentinel") ? (T = {
|
|
1115
1115
|
"aria-labelledby": "basic-button",
|
|
1116
|
-
sx:
|
|
1117
|
-
}, e[40] =
|
|
1118
|
-
/* @__PURE__ */ l(
|
|
1119
|
-
|
|
1120
|
-
const
|
|
1121
|
-
return /* @__PURE__ */
|
|
1122
|
-
/* @__PURE__ */ l(
|
|
1123
|
-
/* @__PURE__ */ l(be, { children:
|
|
1124
|
-
] },
|
|
1116
|
+
sx: Q.options.menu
|
|
1117
|
+
}, e[40] = T) : T = e[40], m = $.length > 1 && /* @__PURE__ */ L(N, { children: [
|
|
1118
|
+
/* @__PURE__ */ l(Y, { variant: "subtitle2", color: "text.secondary", sx: Q.options.title, children: pe }),
|
|
1119
|
+
$.map((G) => {
|
|
1120
|
+
const he = (r?.mode?.options ?? re.options.mode.options)[G.value];
|
|
1121
|
+
return /* @__PURE__ */ L(ge, { onClick: (Me) => H(Me, G), selected: G.value === o, children: [
|
|
1122
|
+
/* @__PURE__ */ l(je, { sx: Q.options.icons, children: /* @__PURE__ */ l(_e, { children: G.icon }) }),
|
|
1123
|
+
/* @__PURE__ */ l(be, { children: he })
|
|
1124
|
+
] }, G.value);
|
|
1125
1125
|
})
|
|
1126
1126
|
] });
|
|
1127
1127
|
}
|
|
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] =
|
|
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] = b, e[11] = y, e[12] = v, e[13] = x, e[14] = d, e[15] = m, e[16] = g, e[17] = C, e[18] = w, e[19] = O, e[20] = T, e[21] = D, e[22] = A, e[23] = _, e[24] = I, e[25] = S;
|
|
1129
1129
|
} else
|
|
1130
|
-
|
|
1131
|
-
if (
|
|
1132
|
-
return
|
|
1130
|
+
b = e[10], y = e[11], v = e[12], x = e[13], d = e[14], m = e[15], g = e[16], C = e[17], w = e[18], O = e[19], T = e[20], D = e[21], A = e[22], _ = e[23], I = e[24], S = e[25];
|
|
1131
|
+
if (A !== Symbol.for("react.early_return_sentinel"))
|
|
1132
|
+
return A;
|
|
1133
1133
|
let M;
|
|
1134
1134
|
e[41] !== d ? (M = d && /* @__PURE__ */ l(ae, {}), e[41] = d, e[42] = M) : M = e[42];
|
|
1135
|
-
let
|
|
1136
|
-
e[43] !== y || e[44] !== v || e[45] !== x || e[46] !== r || e[47] !==
|
|
1137
|
-
/* @__PURE__ */
|
|
1138
|
-
/* @__PURE__ */ l(be, { children:
|
|
1139
|
-
/* @__PURE__ */ l(
|
|
1135
|
+
let R;
|
|
1136
|
+
e[43] !== y || e[44] !== v || e[45] !== x || e[46] !== r || e[47] !== p || e[48] !== _ || e[49] !== I || e[50] !== i || e[51] !== S.length ? (R = S.length > 1 && /* @__PURE__ */ L(N, { children: [
|
|
1137
|
+
/* @__PURE__ */ L(ge, { onClick: v, children: [
|
|
1138
|
+
/* @__PURE__ */ l(be, { children: I }),
|
|
1139
|
+
/* @__PURE__ */ l(Y, { variant: "caption", fontWeight: 500, sx: Q.options.tag, children: _.short })
|
|
1140
1140
|
] }),
|
|
1141
|
-
/* @__PURE__ */ l(Zt, { open:
|
|
1142
|
-
] }), e[43] = y, e[44] = v, e[45] = x, e[46] = r, e[47] =
|
|
1141
|
+
/* @__PURE__ */ l(Zt, { open: p, labels: r, units: i, unitSelectedValue: _, onClose: x, onSubmit: y })
|
|
1142
|
+
] }), e[43] = y, e[44] = v, e[45] = x, e[46] = r, e[47] = p, e[48] = _, e[49] = I, e[50] = i, e[51] = S.length, e[52] = R) : R = e[52];
|
|
1143
1143
|
let k;
|
|
1144
|
-
e[53] !== m || e[54] !==
|
|
1144
|
+
e[53] !== m || e[54] !== R || e[55] !== M ? (k = /* @__PURE__ */ L("div", { children: [
|
|
1145
1145
|
m,
|
|
1146
1146
|
M,
|
|
1147
|
-
P
|
|
1148
|
-
] }), e[53] = m, e[54] = P, e[55] = M, e[56] = k) : k = e[56];
|
|
1149
|
-
let R;
|
|
1150
|
-
e[57] !== g || e[58] !== k || e[59] !== b || e[60] !== C || e[61] !== w || e[62] !== _ || e[63] !== O ? (R = /* @__PURE__ */ l(g, { id: b, anchorEl: C, open: w, onClose: _, MenuListProps: O, children: k }), e[57] = g, e[58] = k, e[59] = b, e[60] = C, e[61] = w, e[62] = _, e[63] = O, e[64] = R) : R = e[64];
|
|
1151
|
-
let Z;
|
|
1152
|
-
return e[65] !== R || e[66] !== S ? (Z = /* @__PURE__ */ I(K, { children: [
|
|
1153
|
-
S,
|
|
1154
1147
|
R
|
|
1155
|
-
] }), e[
|
|
1148
|
+
] }), e[53] = m, e[54] = R, e[55] = M, e[56] = k) : k = e[56];
|
|
1149
|
+
let E;
|
|
1150
|
+
e[57] !== b || e[58] !== k || e[59] !== g || e[60] !== C || e[61] !== w || e[62] !== O || e[63] !== T ? (E = /* @__PURE__ */ l(b, { id: g, anchorEl: C, open: w, onClose: O, MenuListProps: T, children: k }), e[57] = b, e[58] = k, e[59] = g, e[60] = C, e[61] = w, e[62] = O, e[63] = T, e[64] = E) : E = e[64];
|
|
1151
|
+
let j;
|
|
1152
|
+
return e[65] !== E || e[66] !== D ? (j = /* @__PURE__ */ L(N, { children: [
|
|
1153
|
+
D,
|
|
1154
|
+
E
|
|
1155
|
+
] }), e[65] = E, e[66] = D, e[67] = j) : j = e[67], j;
|
|
1156
1156
|
}
|
|
1157
1157
|
function Zt({
|
|
1158
1158
|
open: t,
|
|
@@ -1162,10 +1162,10 @@ function Zt({
|
|
|
1162
1162
|
onClose: i,
|
|
1163
1163
|
onSubmit: a
|
|
1164
1164
|
}) {
|
|
1165
|
-
const [r, s] =
|
|
1165
|
+
const [r, s] = ne("metric"), c = Ce(() => n.filter((x) => x.system === r), [r, n]), u = (x, d) => {
|
|
1166
1166
|
s(d);
|
|
1167
|
-
},
|
|
1168
|
-
return /* @__PURE__ */
|
|
1167
|
+
}, h = e?.units?.modal?.options ?? re.options.units.modal.options, p = h[r].options, f = e?.units?.modal?.title ?? re.options.units.modal.title, b = e?.units?.modal?.subtitle ?? re.options.units.modal.subtitle, y = e?.units?.modal?.apply ?? re.options.units.modal.apply, v = o.system === r ? o : c[0];
|
|
1168
|
+
return /* @__PURE__ */ L(Je, { open: t, component: X, onClose: i, maxWidth: "xs", PaperProps: {
|
|
1169
1169
|
component: "form",
|
|
1170
1170
|
onSubmit: (x) => {
|
|
1171
1171
|
x.preventDefault();
|
|
@@ -1173,22 +1173,22 @@ function Zt({
|
|
|
1173
1173
|
a(d.get("unit-value"));
|
|
1174
1174
|
}
|
|
1175
1175
|
}, children: [
|
|
1176
|
-
/* @__PURE__ */
|
|
1177
|
-
|
|
1178
|
-
/* @__PURE__ */ l(se, { onClick: i, children: /* @__PURE__ */ l(
|
|
1176
|
+
/* @__PURE__ */ L(et, { sx: Q.options.modal.title, children: [
|
|
1177
|
+
f,
|
|
1178
|
+
/* @__PURE__ */ l(se, { onClick: i, children: /* @__PURE__ */ l(Be, {}) })
|
|
1179
1179
|
] }),
|
|
1180
|
-
/* @__PURE__ */
|
|
1181
|
-
/* @__PURE__ */ l(
|
|
1182
|
-
/* @__PURE__ */
|
|
1183
|
-
/* @__PURE__ */ l(ve, { value: "metric", children:
|
|
1184
|
-
/* @__PURE__ */ l(ve, { value: "imperial", children:
|
|
1180
|
+
/* @__PURE__ */ L(tt, { sx: Q.options.modal.content, children: [
|
|
1181
|
+
/* @__PURE__ */ l(Y, { sx: Q.options.modal.subtitle, children: b }),
|
|
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: h.metric.title }),
|
|
1184
|
+
/* @__PURE__ */ l(ve, { value: "imperial", children: h.imperial.title })
|
|
1185
1185
|
] }),
|
|
1186
|
-
/* @__PURE__ */ l(ot, { children: /* @__PURE__ */ l(lt, { "aria-labelledby": "unit-value", defaultValue: v?.value, name: "unit-value", sx:
|
|
1187
|
-
const d =
|
|
1186
|
+
/* @__PURE__ */ l(ot, { children: /* @__PURE__ */ l(lt, { "aria-labelledby": "unit-value", defaultValue: v?.value, name: "unit-value", sx: Q.options.modal.optionsGroup, children: c.map((x) => {
|
|
1187
|
+
const d = p[x.value];
|
|
1188
1188
|
return /* @__PURE__ */ l(nt, { value: x.value, control: /* @__PURE__ */ l(it, {}), label: d }, x.value);
|
|
1189
1189
|
}) }) }, v?.value)
|
|
1190
1190
|
] }),
|
|
1191
|
-
/* @__PURE__ */ l(rt, { sx:
|
|
1191
|
+
/* @__PURE__ */ l(rt, { sx: Q.options.modal.actions, children: /* @__PURE__ */ l(we, { variant: "contained", type: "submit", children: y }) })
|
|
1192
1192
|
] });
|
|
1193
1193
|
}
|
|
1194
1194
|
const Vt = {
|
|
@@ -1196,7 +1196,7 @@ const Vt = {
|
|
|
1196
1196
|
disabled: "Location unavailable"
|
|
1197
1197
|
}, Ut = "geolocation";
|
|
1198
1198
|
function mo(t) {
|
|
1199
|
-
const e =
|
|
1199
|
+
const e = P(25), {
|
|
1200
1200
|
disabled: n,
|
|
1201
1201
|
labels: o,
|
|
1202
1202
|
PaperProps: i,
|
|
@@ -1204,19 +1204,19 @@ function mo(t) {
|
|
|
1204
1204
|
watch: r,
|
|
1205
1205
|
onChange: s,
|
|
1206
1206
|
onError: c
|
|
1207
|
-
} = t, u = Oe(null),
|
|
1208
|
-
let
|
|
1209
|
-
e[0] !== c ? (
|
|
1207
|
+
} = t, u = Oe(null), h = "geolocation" in navigator, [p, f] = ne(h);
|
|
1208
|
+
let b, y;
|
|
1209
|
+
e[0] !== c ? (b = () => (h && navigator.permissions.query({
|
|
1210
1210
|
name: "geolocation"
|
|
1211
1211
|
}).then((M) => {
|
|
1212
|
-
|
|
1213
|
-
|
|
1212
|
+
f(M.state === "granted"), M.onchange = () => {
|
|
1213
|
+
f(M.state === "granted");
|
|
1214
1214
|
};
|
|
1215
1215
|
}).catch((M) => {
|
|
1216
|
-
|
|
1216
|
+
f(!1), c?.(M);
|
|
1217
1217
|
}), () => {
|
|
1218
1218
|
u.current && navigator.geolocation.clearWatch(u.current);
|
|
1219
|
-
}), y = [
|
|
1219
|
+
}), y = [h, c], e[0] = c, e[1] = b, e[2] = y) : (b = e[1], y = e[2]), De(b, y);
|
|
1220
1220
|
let v;
|
|
1221
1221
|
e[3] !== s ? (v = (M) => {
|
|
1222
1222
|
s(M.coords);
|
|
@@ -1224,26 +1224,26 @@ function mo(t) {
|
|
|
1224
1224
|
const x = v;
|
|
1225
1225
|
let d;
|
|
1226
1226
|
e[5] !== c ? (d = (M) => {
|
|
1227
|
-
|
|
1227
|
+
f(!1), c?.(M);
|
|
1228
1228
|
}, e[5] = c, e[6] = d) : d = e[6];
|
|
1229
1229
|
const m = d;
|
|
1230
|
-
let
|
|
1231
|
-
e[7] !== m || e[8] !== x || e[9] !== r ? (
|
|
1230
|
+
let g;
|
|
1231
|
+
e[7] !== m || e[8] !== x || e[9] !== r ? (g = () => {
|
|
1232
1232
|
if (u.current && navigator.geolocation.clearWatch(u.current), r) {
|
|
1233
1233
|
u.current = navigator.geolocation.watchPosition(x, m);
|
|
1234
1234
|
return;
|
|
1235
1235
|
}
|
|
1236
1236
|
navigator.geolocation.getCurrentPosition(x, m);
|
|
1237
|
-
}, e[7] = m, e[8] = x, e[9] = r, e[10] =
|
|
1238
|
-
const C =
|
|
1239
|
-
let T;
|
|
1240
|
-
e[11] !== f ? (T = f ? /* @__PURE__ */ l(He, {}) : /* @__PURE__ */ l(Xe, {}), e[11] = f, e[12] = T) : T = e[12];
|
|
1241
|
-
let D;
|
|
1242
|
-
e[13] !== C || e[14] !== O || e[15] !== S || e[16] !== T ? (D = /* @__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] = D) : D = e[17];
|
|
1243
|
-
let L;
|
|
1244
|
-
e[18] !== a || e[19] !== D || e[20] !== _ ? (L = /* @__PURE__ */ l(de, { arrow: !0, placement: "right", title: _, ...a, children: D }), e[18] = a, e[19] = D, e[20] = _, e[21] = L) : L = e[21];
|
|
1237
|
+
}, e[7] = m, e[8] = x, e[9] = r, e[10] = g) : g = e[10];
|
|
1238
|
+
const C = g, O = (o?.tooltip ?? Vt)[p ? "enabled" : "disabled"], T = o?.ariaLabel ?? Ut, D = !h || n;
|
|
1245
1239
|
let A;
|
|
1246
|
-
|
|
1240
|
+
e[11] !== p ? (A = p ? /* @__PURE__ */ l(Ne, {}) : /* @__PURE__ */ l(Fe, {}), e[11] = p, e[12] = A) : A = e[12];
|
|
1241
|
+
let _;
|
|
1242
|
+
e[13] !== C || e[14] !== T || e[15] !== D || e[16] !== A ? (_ = /* @__PURE__ */ l(se, { onClick: C, "aria-label": T, disabled: D, children: A }), e[13] = C, e[14] = T, e[15] = D, e[16] = A, e[17] = _) : _ = e[17];
|
|
1243
|
+
let I;
|
|
1244
|
+
e[18] !== a || e[19] !== _ || e[20] !== O ? (I = /* @__PURE__ */ l(de, { arrow: !0, placement: "right", title: O, ...a, children: _ }), e[18] = a, e[19] = _, e[20] = O, e[21] = I) : I = e[21];
|
|
1245
|
+
let S;
|
|
1246
|
+
return e[22] !== i || e[23] !== I ? (S = /* @__PURE__ */ l(ye, { ...i, children: I }), e[22] = i, e[23] = I, e[24] = S) : S = e[24], S;
|
|
1247
1247
|
}
|
|
1248
1248
|
const Ae = {
|
|
1249
1249
|
zoom: {
|
|
@@ -1278,129 +1278,100 @@ const Ae = {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
};
|
|
1280
1280
|
function go(t) {
|
|
1281
|
-
const e =
|
|
1281
|
+
const e = P(40), {
|
|
1282
1282
|
zoom: n,
|
|
1283
1283
|
disabled: o,
|
|
1284
1284
|
direction: i,
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1285
|
+
reverse: a,
|
|
1286
|
+
isLoading: r,
|
|
1287
|
+
maxZoom: s,
|
|
1288
|
+
minZoom: c,
|
|
1289
|
+
PaperProps: u,
|
|
1290
|
+
ResetViewProps: h,
|
|
1290
1291
|
showZoom: p,
|
|
1291
1292
|
onChange: f,
|
|
1292
|
-
onReset:
|
|
1293
|
-
} = t,
|
|
1294
|
-
let
|
|
1295
|
-
e[0] !==
|
|
1296
|
-
Icon:
|
|
1297
|
-
} :
|
|
1298
|
-
const
|
|
1299
|
-
let b;
|
|
1300
|
-
e[2] !== y || e[3] !== f || e[4] !== n ? (b = () => {
|
|
1301
|
-
const G = Math.min(y, n + 1);
|
|
1302
|
-
f(G);
|
|
1303
|
-
}, e[2] = y, e[3] = f, e[4] = n, e[5] = b) : b = e[5];
|
|
1304
|
-
const C = b;
|
|
1293
|
+
onReset: b
|
|
1294
|
+
} = t, y = i === void 0 ? "vertical" : i, v = a === void 0 ? !1 : a, x = s === void 0 ? 24 : s, d = c === void 0 ? 0 : c;
|
|
1295
|
+
let m;
|
|
1296
|
+
e[0] !== h ? (m = h === void 0 ? {
|
|
1297
|
+
Icon: He
|
|
1298
|
+
} : h, e[0] = h, e[1] = m) : m = e[1];
|
|
1299
|
+
const g = m, C = p === void 0 ? !0 : p;
|
|
1305
1300
|
let w;
|
|
1306
|
-
e[
|
|
1307
|
-
const
|
|
1308
|
-
f(
|
|
1309
|
-
}, e[
|
|
1310
|
-
const
|
|
1301
|
+
e[2] !== x || e[3] !== f || e[4] !== n ? (w = () => {
|
|
1302
|
+
const Z = Math.min(x, n + 1);
|
|
1303
|
+
f(Z);
|
|
1304
|
+
}, e[2] = x, e[3] = f, e[4] = n, e[5] = w) : w = e[5];
|
|
1305
|
+
const O = w;
|
|
1311
1306
|
let T;
|
|
1312
|
-
e[
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
let
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
e[16] !== D || e[17] !== T ? (L = {
|
|
1325
|
-
zoomIn: T,
|
|
1326
|
-
zoomOut: D
|
|
1327
|
-
}, e[16] = D, e[17] = T, e[18] = L) : L = e[18];
|
|
1328
|
-
const A = L;
|
|
1307
|
+
e[6] !== d || e[7] !== f || e[8] !== n ? (T = () => {
|
|
1308
|
+
const Z = Math.max(d, n - 1);
|
|
1309
|
+
f(Z);
|
|
1310
|
+
}, e[6] = d, e[7] = f, e[8] = n, e[9] = T) : T = e[9];
|
|
1311
|
+
const D = T, A = Math.floor(n), _ = y === "vertical" ? "horizontal" : "vertical";
|
|
1312
|
+
let I = y === "vertical" ? "column" : "row";
|
|
1313
|
+
v && (I = I + "-reverse");
|
|
1314
|
+
let S;
|
|
1315
|
+
e[10] !== I ? (S = {
|
|
1316
|
+
...Ae.paper,
|
|
1317
|
+
flexDirection: I
|
|
1318
|
+
}, e[10] = I, e[11] = S) : S = e[11];
|
|
1329
1319
|
let M;
|
|
1330
|
-
e[
|
|
1331
|
-
|
|
1320
|
+
e[12] !== g || e[13] !== o || e[14] !== _ || e[15] !== b ? (M = b && /* @__PURE__ */ L(N, { children: [
|
|
1321
|
+
/* @__PURE__ */ l(se, { onClick: b, "aria-label": "Reset action", disabled: o, children: /* @__PURE__ */ l(g.Icon, {}) }),
|
|
1322
|
+
/* @__PURE__ */ l(ae, { orientation: _, flexItem: !0 })
|
|
1323
|
+
] }), e[12] = g, e[13] = o, e[14] = _, e[15] = b, e[16] = M) : M = e[16];
|
|
1324
|
+
let R;
|
|
1325
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ l(Xe, {}), e[17] = R) : R = e[17];
|
|
1332
1326
|
let k;
|
|
1333
|
-
e[
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
}, e[21] = M, e[22] = P, e[23] = k) : k = e[23];
|
|
1337
|
-
const R = k;
|
|
1338
|
-
let Z;
|
|
1339
|
-
e[24] !== g ? (Z = g === "vertical" ? /* @__PURE__ */ l(Le, {}) : /* @__PURE__ */ l(Ie, {}), e[24] = g, e[25] = Z) : Z = e[25];
|
|
1340
|
-
const V = g === "vertical" ? A.zoomOut : A.zoomIn;
|
|
1341
|
-
let B;
|
|
1342
|
-
e[26] !== Z || e[27] !== V ? (B = {
|
|
1343
|
-
icon: Z,
|
|
1344
|
-
props: V
|
|
1345
|
-
}, e[26] = Z, e[27] = V, e[28] = B) : B = e[28];
|
|
1346
|
-
const U = B, N = g === "vertical" ? "column" : "row";
|
|
1327
|
+
e[18] !== o || e[19] !== O ? (k = /* @__PURE__ */ l(se, { onClick: O, "aria-label": "Increase zoom", disabled: o, children: R }), e[18] = o, e[19] = O, e[20] = k) : k = e[20];
|
|
1328
|
+
let E;
|
|
1329
|
+
e[21] !== _ ? (E = /* @__PURE__ */ l(ae, { orientation: _, flexItem: !0 }), e[21] = _, e[22] = E) : E = e[22];
|
|
1347
1330
|
let j;
|
|
1348
|
-
e[
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
let F;
|
|
1353
|
-
e[31] !== d || e[32] !== o || e[33] !== S || e[34] !== h ? (F = h && /* @__PURE__ */ I(K, { children: [
|
|
1354
|
-
/* @__PURE__ */ l(se, { onClick: h, "aria-label": "Reset action", disabled: o, children: /* @__PURE__ */ l(d.Icon, {}) }),
|
|
1355
|
-
/* @__PURE__ */ l(ae, { orientation: S, flexItem: !0 })
|
|
1356
|
-
] }), e[31] = d, e[32] = o, e[33] = S, e[34] = h, e[35] = F) : F = e[35];
|
|
1357
|
-
let W;
|
|
1358
|
-
e[36] !== R.icon || e[37] !== R.props ? (W = /* @__PURE__ */ l(se, { ...R.props, children: R.icon }), e[36] = R.icon, e[37] = R.props, e[38] = W) : W = e[38];
|
|
1359
|
-
let q;
|
|
1360
|
-
e[39] !== S ? (q = /* @__PURE__ */ l(ae, { orientation: S, flexItem: !0 }), e[39] = S, e[40] = q) : q = e[40];
|
|
1361
|
-
let $;
|
|
1362
|
-
e[41] !== O || e[42] !== S || e[43] !== a || e[44] !== m ? ($ = m && /* @__PURE__ */ I(K, { children: [
|
|
1363
|
-
/* @__PURE__ */ I(Y, { sx: Ae.zoom, children: [
|
|
1364
|
-
/* @__PURE__ */ l(J, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: O }),
|
|
1365
|
-
a && /* @__PURE__ */ l(st, { sx: Ae.circularProgress, variant: "indeterminate", size: 24 })
|
|
1331
|
+
e[23] !== A || e[24] !== _ || e[25] !== r || e[26] !== C ? (j = C && /* @__PURE__ */ L(N, { children: [
|
|
1332
|
+
/* @__PURE__ */ L(X, { sx: Ae.zoom, children: [
|
|
1333
|
+
/* @__PURE__ */ l(Y, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: A }),
|
|
1334
|
+
r && /* @__PURE__ */ l(st, { sx: Ae.circularProgress, variant: "indeterminate", size: 24 })
|
|
1366
1335
|
] }),
|
|
1367
|
-
/* @__PURE__ */ l(ae, { orientation:
|
|
1368
|
-
] }), e[
|
|
1369
|
-
let
|
|
1370
|
-
e[
|
|
1371
|
-
let
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1336
|
+
/* @__PURE__ */ l(ae, { orientation: _, flexItem: !0 })
|
|
1337
|
+
] }), e[23] = A, e[24] = _, e[25] = r, e[26] = C, e[27] = j) : j = e[27];
|
|
1338
|
+
let $;
|
|
1339
|
+
e[28] === Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ l(qe, {}), e[28] = $) : $ = e[28];
|
|
1340
|
+
let B;
|
|
1341
|
+
e[29] !== D || e[30] !== o ? (B = /* @__PURE__ */ l(se, { onClick: D, "aria-label": "Decrease zoom", disabled: o, children: $ }), e[29] = D, e[30] = o, e[31] = B) : B = e[31];
|
|
1342
|
+
let V;
|
|
1343
|
+
return e[32] !== u || e[33] !== S || e[34] !== M || e[35] !== k || e[36] !== E || e[37] !== j || e[38] !== B ? (V = /* @__PURE__ */ L(ye, { sx: S, ...u, children: [
|
|
1344
|
+
M,
|
|
1345
|
+
k,
|
|
1346
|
+
E,
|
|
1347
|
+
j,
|
|
1348
|
+
B
|
|
1349
|
+
] }), e[32] = u, e[33] = S, e[34] = M, e[35] = k, e[36] = E, e[37] = j, e[38] = B, e[39] = V) : V = e[39], V;
|
|
1379
1350
|
}
|
|
1380
1351
|
function Wt(t) {
|
|
1381
|
-
const e =
|
|
1352
|
+
const e = P(4), {
|
|
1382
1353
|
length: n
|
|
1383
1354
|
} = t, o = n === void 0 ? 5 : n;
|
|
1384
1355
|
let i;
|
|
1385
|
-
e[0] !== o ? (i = new Array(o).fill(null).map(
|
|
1356
|
+
e[0] !== o ? (i = new Array(o).fill(null).map(Gt), e[0] = o, e[1] = i) : i = e[1];
|
|
1386
1357
|
let a;
|
|
1387
|
-
return e[2] !== i ? (a = /* @__PURE__ */ l(
|
|
1358
|
+
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;
|
|
1388
1359
|
}
|
|
1389
|
-
function
|
|
1390
|
-
return /* @__PURE__ */
|
|
1391
|
-
/* @__PURE__ */
|
|
1360
|
+
function Gt(t, e) {
|
|
1361
|
+
return /* @__PURE__ */ L(me, { container: !0, spacing: 1, children: [
|
|
1362
|
+
/* @__PURE__ */ L(me, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
|
|
1392
1363
|
/* @__PURE__ */ l(Se, { width: Ht(e) ? 72 : 48, height: 20 }),
|
|
1393
1364
|
/* @__PURE__ */ l(Se, { width: 48, height: 8 })
|
|
1394
1365
|
] }),
|
|
1395
1366
|
/* @__PURE__ */ l(Se, { sx: {
|
|
1396
1367
|
height: Ft,
|
|
1397
1368
|
marginTop: Nt,
|
|
1398
|
-
marginBottom:
|
|
1369
|
+
marginBottom: zt,
|
|
1399
1370
|
width: "100%"
|
|
1400
1371
|
} })
|
|
1401
1372
|
] }, e);
|
|
1402
1373
|
}
|
|
1403
|
-
function
|
|
1374
|
+
function zt(t) {
|
|
1404
1375
|
const {
|
|
1405
1376
|
spacing: e
|
|
1406
1377
|
} = t;
|
|
@@ -1422,29 +1393,29 @@ function Ht(t) {
|
|
|
1422
1393
|
return t % 2 === 1;
|
|
1423
1394
|
}
|
|
1424
1395
|
function Xt(t) {
|
|
1425
|
-
const e =
|
|
1396
|
+
const e = P(13), {
|
|
1426
1397
|
title: n,
|
|
1427
1398
|
body: o,
|
|
1428
1399
|
severity: i
|
|
1429
1400
|
} = 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;
|
|
1430
1401
|
if (i) {
|
|
1402
|
+
let h;
|
|
1403
|
+
e[0] !== r ? (h = /* @__PURE__ */ l(Re, { children: r }), e[0] = r, e[1] = h) : h = e[1];
|
|
1431
1404
|
let p;
|
|
1432
|
-
e[
|
|
1433
|
-
let f;
|
|
1434
|
-
return e[2] !== i || e[3] !== p || e[4] !== a ? (f = /* @__PURE__ */ l(at, { title: a, severity: i, children: p }), e[2] = i, e[3] = p, e[4] = a, e[5] = f) : f = e[5], f;
|
|
1405
|
+
return e[2] !== i || e[3] !== h || e[4] !== a ? (p = /* @__PURE__ */ l(at, { title: a, severity: i, children: h }), e[2] = i, e[3] = h, e[4] = a, e[5] = p) : p = e[5], p;
|
|
1435
1406
|
}
|
|
1436
1407
|
let s;
|
|
1437
|
-
e[6] !== a ? (s = a && /* @__PURE__ */ l(
|
|
1408
|
+
e[6] !== a ? (s = a && /* @__PURE__ */ l(Y, { variant: "body2", children: a }), e[6] = a, e[7] = s) : s = e[7];
|
|
1438
1409
|
let c;
|
|
1439
|
-
e[8] !== r ? (c = /* @__PURE__ */ l(
|
|
1410
|
+
e[8] !== r ? (c = /* @__PURE__ */ l(Re, { color: "textSecondary", children: r }), e[8] = r, e[9] = c) : c = e[9];
|
|
1440
1411
|
let u;
|
|
1441
|
-
return e[10] !== s || e[11] !== c ? (u = /* @__PURE__ */
|
|
1412
|
+
return e[10] !== s || e[11] !== c ? (u = /* @__PURE__ */ L(X, { children: [
|
|
1442
1413
|
s,
|
|
1443
1414
|
c
|
|
1444
1415
|
] }), e[10] = s, e[11] = c, e[12] = u) : u = e[12], u;
|
|
1445
1416
|
}
|
|
1446
|
-
function
|
|
1447
|
-
const e =
|
|
1417
|
+
function Re(t) {
|
|
1418
|
+
const e = P(5), {
|
|
1448
1419
|
color: n,
|
|
1449
1420
|
children: o
|
|
1450
1421
|
} = t;
|
|
@@ -1455,31 +1426,31 @@ function Pe(t) {
|
|
|
1455
1426
|
fontWeight: "normal"
|
|
1456
1427
|
}, e[0] = r) : r = e[0];
|
|
1457
1428
|
let s;
|
|
1458
|
-
return e[1] !== o || e[2] !== a ? (s = /* @__PURE__ */ l(
|
|
1429
|
+
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;
|
|
1459
1430
|
}
|
|
1460
1431
|
let i;
|
|
1461
|
-
return e[4] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l(
|
|
1432
|
+
return e[4] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l(X, { mt: -1 }), e[4] = i) : i = e[4], i;
|
|
1462
1433
|
}
|
|
1463
1434
|
function qt(t) {
|
|
1464
|
-
const e =
|
|
1435
|
+
const e = P(4), [n, o] = ne(!1), [i, a] = ne(!1);
|
|
1465
1436
|
let r, s;
|
|
1466
1437
|
return e[0] !== i || e[1] !== t ? (r = () => {
|
|
1467
1438
|
t && !i && (o(!0), a(!0)), t || o(!1);
|
|
1468
1439
|
}, 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;
|
|
1469
1440
|
}
|
|
1470
|
-
const
|
|
1441
|
+
const Ee = {
|
|
1471
1442
|
overflow: "hidden",
|
|
1472
1443
|
textOverflow: "ellipsis",
|
|
1473
1444
|
whiteSpace: "nowrap"
|
|
1474
1445
|
}, fe = {
|
|
1475
1446
|
label: {
|
|
1476
1447
|
"& .MuiListItemText-primary": {
|
|
1477
|
-
...
|
|
1448
|
+
...Ee
|
|
1478
1449
|
}
|
|
1479
1450
|
},
|
|
1480
1451
|
value: {
|
|
1481
1452
|
"& .MuiListItemText-primary": {
|
|
1482
|
-
...
|
|
1453
|
+
...Ee,
|
|
1483
1454
|
textAlign: "right"
|
|
1484
1455
|
}
|
|
1485
1456
|
},
|
|
@@ -1513,7 +1484,7 @@ function Kt({
|
|
|
1513
1484
|
TooltipProps: o,
|
|
1514
1485
|
children: i
|
|
1515
1486
|
}) {
|
|
1516
|
-
const a = Oe(null), [r, s] =
|
|
1487
|
+
const a = Oe(null), [r, s] = ne(!1);
|
|
1517
1488
|
return mt(() => {
|
|
1518
1489
|
const c = setTimeout(() => {
|
|
1519
1490
|
if (a.current) {
|
|
@@ -1531,7 +1502,7 @@ const Yt = {
|
|
|
1531
1502
|
showLess: "Show Less"
|
|
1532
1503
|
};
|
|
1533
1504
|
function bo(t) {
|
|
1534
|
-
const e =
|
|
1505
|
+
const e = P(34), {
|
|
1535
1506
|
data: n,
|
|
1536
1507
|
isLoading: o,
|
|
1537
1508
|
maxItems: i,
|
|
@@ -1540,57 +1511,57 @@ function bo(t) {
|
|
|
1540
1511
|
selectedItemId: s,
|
|
1541
1512
|
tooltipProps: c,
|
|
1542
1513
|
onExpand: u,
|
|
1543
|
-
onItemClick:
|
|
1514
|
+
onItemClick: h
|
|
1544
1515
|
} = t;
|
|
1545
|
-
let
|
|
1546
|
-
e[0] !== n ? (
|
|
1547
|
-
const
|
|
1516
|
+
let p;
|
|
1517
|
+
e[0] !== n ? (p = n === void 0 ? [] : n, e[0] = n, e[1] = p) : p = e[1];
|
|
1518
|
+
const f = p, b = o === void 0 ? !1 : o, y = i === void 0 ? 5 : i, v = a === void 0 ? Yt : a, x = r === void 0 ? !0 : r, [d, m] = ne(!1), g = qt(b);
|
|
1548
1519
|
let C, w;
|
|
1549
|
-
e[2] !==
|
|
1550
|
-
const
|
|
1551
|
-
let
|
|
1552
|
-
e[6] !== u || e[7] !== d ? (
|
|
1520
|
+
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;
|
|
1521
|
+
const O = C;
|
|
1522
|
+
let T;
|
|
1523
|
+
e[6] !== u || e[7] !== d ? (T = () => {
|
|
1553
1524
|
m(!d), u?.(d);
|
|
1554
|
-
}, e[6] = u, e[7] = d, e[8] =
|
|
1555
|
-
const
|
|
1556
|
-
if (
|
|
1525
|
+
}, e[6] = u, e[7] = d, e[8] = T) : T = e[8];
|
|
1526
|
+
const D = T;
|
|
1527
|
+
if (g) {
|
|
1557
1528
|
let M;
|
|
1558
1529
|
return e[9] !== y ? (M = /* @__PURE__ */ l(Wt, { length: y }), e[9] = y, e[10] = M) : M = e[10], M;
|
|
1559
1530
|
}
|
|
1560
|
-
if (
|
|
1531
|
+
if (O.length === 0) {
|
|
1561
1532
|
let M;
|
|
1562
1533
|
return e[11] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ l(Xt, {}), e[11] = M) : M = e[11], M;
|
|
1563
1534
|
}
|
|
1564
|
-
let
|
|
1565
|
-
if (e[12] !==
|
|
1535
|
+
let A;
|
|
1536
|
+
if (e[12] !== O || e[13] !== h || e[14] !== s || e[15] !== x || e[16] !== c) {
|
|
1566
1537
|
let M;
|
|
1567
|
-
e[18] !==
|
|
1538
|
+
e[18] !== h || e[19] !== s || e[20] !== x || e[21] !== c ? (M = (R, k) => /* @__PURE__ */ l(Kt, { followCursor: !1, placement: "top", arrow: !0, title: R.tooltipTitle, enterDelay: 10, ...c, children: (E) => {
|
|
1568
1539
|
const {
|
|
1569
|
-
ref:
|
|
1570
|
-
} =
|
|
1571
|
-
return /* @__PURE__ */ l(ct, { ref:
|
|
1540
|
+
ref: j
|
|
1541
|
+
} = E;
|
|
1542
|
+
return /* @__PURE__ */ l(ct, { ref: j, role: "listitem", sx: {
|
|
1572
1543
|
...x && fe.showDivider,
|
|
1573
|
-
...
|
|
1574
|
-
...s ===
|
|
1575
|
-
...
|
|
1544
|
+
...h && fe.clickable,
|
|
1545
|
+
...s === R.id && fe.selected,
|
|
1546
|
+
...R.disabled && fe.disabled
|
|
1576
1547
|
}, onClick: () => {
|
|
1577
|
-
|
|
1578
|
-
}, children: /* @__PURE__ */
|
|
1579
|
-
/* @__PURE__ */ l(me, { item: !0, xs: 8, children: /* @__PURE__ */ l(be, { primary:
|
|
1580
|
-
/* @__PURE__ */ l(me, { item: !0, xs: 4, children: /* @__PURE__ */ l(be, { primary:
|
|
1548
|
+
R.disabled || h?.(R);
|
|
1549
|
+
}, children: /* @__PURE__ */ L(me, { container: !0, alignItems: "center", children: [
|
|
1550
|
+
/* @__PURE__ */ l(me, { item: !0, xs: 8, children: /* @__PURE__ */ l(be, { primary: R.label, sx: fe.label }) }),
|
|
1551
|
+
/* @__PURE__ */ l(me, { item: !0, xs: 4, children: /* @__PURE__ */ l(be, { primary: R.value, sx: fe.value }) })
|
|
1581
1552
|
] }) });
|
|
1582
|
-
} }, `list-item-${k}`), e[18] =
|
|
1553
|
+
} }, `list-item-${k}`), e[18] = h, e[19] = s, e[20] = x, e[21] = c, e[22] = M) : M = e[22], A = O.map(M), e[12] = O, e[13] = h, e[14] = s, e[15] = x, e[16] = c, e[17] = A;
|
|
1583
1554
|
} else
|
|
1584
|
-
|
|
1585
|
-
let
|
|
1586
|
-
e[23] !==
|
|
1587
|
-
let
|
|
1588
|
-
e[25] !==
|
|
1589
|
-
let
|
|
1590
|
-
return e[31] !==
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
] }), e[31] =
|
|
1555
|
+
A = e[17];
|
|
1556
|
+
let _;
|
|
1557
|
+
e[23] !== A ? (_ = /* @__PURE__ */ l(dt, { id: "expandable-list", role: "list", children: A }), e[23] = A, e[24] = _) : _ = e[24];
|
|
1558
|
+
let I;
|
|
1559
|
+
e[25] !== f.length || e[26] !== D || e[27] !== v || e[28] !== y || e[29] !== d ? (I = f.length > y && /* @__PURE__ */ l(X, { my: 2, children: /* @__PURE__ */ l(we, { onClick: D, variant: "text", color: "primary", "aria-expanded": d, "aria-controls": "expandable-list", children: d ? v.showLess : v.showMore }) }), e[25] = f.length, e[26] = D, e[27] = v, e[28] = y, e[29] = d, e[30] = I) : I = e[30];
|
|
1560
|
+
let S;
|
|
1561
|
+
return e[31] !== _ || e[32] !== I ? (S = /* @__PURE__ */ L(N, { children: [
|
|
1562
|
+
_,
|
|
1563
|
+
I
|
|
1564
|
+
] }), e[31] = _, e[32] = I, e[33] = S) : S = e[33], S;
|
|
1594
1565
|
}
|
|
1595
1566
|
const Qt = 288, ue = {
|
|
1596
1567
|
root: {
|
|
@@ -1706,21 +1677,21 @@ const Qt = 288, ue = {
|
|
|
1706
1677
|
}
|
|
1707
1678
|
};
|
|
1708
1679
|
function eo(t) {
|
|
1709
|
-
const e =
|
|
1680
|
+
const e = P(6), {
|
|
1710
1681
|
isMobile: n,
|
|
1711
1682
|
labels: o,
|
|
1712
1683
|
onChangeCollapsed: i
|
|
1713
1684
|
} = t, a = n === void 0 ? !1 : n;
|
|
1714
1685
|
let r;
|
|
1715
|
-
e[0] !== a || e[1] !== o || e[2] !== i ? (r = a && /* @__PURE__ */
|
|
1716
|
-
/* @__PURE__ */ l(
|
|
1717
|
-
/* @__PURE__ */ l(de, { title: o.actions.close, children: /* @__PURE__ */ l(se, { size: "small", onClick: i, "aria-label": o.actions.close, children: /* @__PURE__ */ l(
|
|
1686
|
+
e[0] !== a || e[1] !== o || e[2] !== i ? (r = a && /* @__PURE__ */ L(N, { children: [
|
|
1687
|
+
/* @__PURE__ */ l(Y, { variant: "caption", flexGrow: 1, children: o.title }),
|
|
1688
|
+
/* @__PURE__ */ l(de, { title: o.actions.close, children: /* @__PURE__ */ l(se, { size: "small", onClick: i, "aria-label": o.actions.close, children: /* @__PURE__ */ l(Be, {}) }) })
|
|
1718
1689
|
] }), e[0] = a, e[1] = o, e[2] = i, e[3] = r) : r = e[3];
|
|
1719
1690
|
let s;
|
|
1720
|
-
return e[4] !== r ? (s = /* @__PURE__ */ l(
|
|
1691
|
+
return e[4] !== r ? (s = /* @__PURE__ */ l(X, { sx: ue.header, children: r }), e[4] = r, e[5] = s) : s = e[5], s;
|
|
1721
1692
|
}
|
|
1722
1693
|
function to(t) {
|
|
1723
|
-
const e =
|
|
1694
|
+
const e = P(5), {
|
|
1724
1695
|
title: n,
|
|
1725
1696
|
children: o,
|
|
1726
1697
|
collapsed: i
|
|
@@ -1728,15 +1699,15 @@ function to(t) {
|
|
|
1728
1699
|
if (i === void 0 ? !1 : i)
|
|
1729
1700
|
return o;
|
|
1730
1701
|
let r;
|
|
1731
|
-
e[0] !== n ? (r = /* @__PURE__ */ l(
|
|
1702
|
+
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];
|
|
1732
1703
|
let s;
|
|
1733
|
-
return e[2] !== o || e[3] !== r ? (s = /* @__PURE__ */
|
|
1704
|
+
return e[2] !== o || e[3] !== r ? (s = /* @__PURE__ */ L(N, { children: [
|
|
1734
1705
|
r,
|
|
1735
1706
|
o
|
|
1736
1707
|
] }), e[2] = o, e[3] = r, e[4] = s) : s = e[4], s;
|
|
1737
1708
|
}
|
|
1738
1709
|
function oo(t) {
|
|
1739
|
-
const e =
|
|
1710
|
+
const e = P(9), {
|
|
1740
1711
|
values: n,
|
|
1741
1712
|
selected: o,
|
|
1742
1713
|
onChange: i
|
|
@@ -1746,9 +1717,9 @@ function oo(t) {
|
|
|
1746
1717
|
let s;
|
|
1747
1718
|
e[4] !== i || e[5] !== o ? (s = (c) => {
|
|
1748
1719
|
const u = c.id === o;
|
|
1749
|
-
return /* @__PURE__ */
|
|
1720
|
+
return /* @__PURE__ */ L(X, { sx: ue.item.container, component: "button", "aria-label": c.label, onClick: () => i(c.id), children: [
|
|
1750
1721
|
/* @__PURE__ */ l("img", { src: c.icon, "aria-label": c.label + " icon", "data-active": u }),
|
|
1751
|
-
/* @__PURE__ */ l(
|
|
1722
|
+
/* @__PURE__ */ l(Y, { variant: "caption", sx: {
|
|
1752
1723
|
...u && ue.item.selected
|
|
1753
1724
|
}, children: c.label })
|
|
1754
1725
|
] }, c.id);
|
|
@@ -1756,10 +1727,10 @@ function oo(t) {
|
|
|
1756
1727
|
} else
|
|
1757
1728
|
a = e[3];
|
|
1758
1729
|
let r;
|
|
1759
|
-
return e[7] !== a ? (r = /* @__PURE__ */ l(
|
|
1730
|
+
return e[7] !== a ? (r = /* @__PURE__ */ l(X, { sx: ue.group, children: a }), e[7] = a, e[8] = r) : r = e[8], r;
|
|
1760
1731
|
}
|
|
1761
1732
|
function lo(t) {
|
|
1762
|
-
const e =
|
|
1733
|
+
const e = P(21), {
|
|
1763
1734
|
ref: n,
|
|
1764
1735
|
children: o,
|
|
1765
1736
|
collapsed: i,
|
|
@@ -1774,26 +1745,26 @@ function lo(t) {
|
|
|
1774
1745
|
let w;
|
|
1775
1746
|
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;
|
|
1776
1747
|
}
|
|
1777
|
-
const
|
|
1778
|
-
let
|
|
1779
|
-
e[4] !== u ? (
|
|
1780
|
-
const
|
|
1748
|
+
const p = !i;
|
|
1749
|
+
let f;
|
|
1750
|
+
e[4] !== u ? (f = () => u(!0), e[4] = u, e[5] = f) : f = e[5];
|
|
1751
|
+
const b = r.startsWith("bottom") ? "bottom" : "top", y = r.endsWith("right") ? "left" : "right";
|
|
1781
1752
|
let v;
|
|
1782
|
-
e[6] !==
|
|
1783
|
-
vertical:
|
|
1753
|
+
e[6] !== b || e[7] !== y ? (v = {
|
|
1754
|
+
vertical: b,
|
|
1784
1755
|
horizontal: y
|
|
1785
|
-
}, e[6] =
|
|
1756
|
+
}, e[6] = b, e[7] = y, e[8] = v) : v = e[8];
|
|
1786
1757
|
const x = r.startsWith("bottom") ? "bottom" : "top", d = r.endsWith("right") ? "right" : "left";
|
|
1787
1758
|
let m;
|
|
1788
1759
|
e[9] !== x || e[10] !== d ? (m = {
|
|
1789
1760
|
vertical: x,
|
|
1790
1761
|
horizontal: d
|
|
1791
1762
|
}, e[9] = x, e[10] = d, e[11] = m) : m = e[11];
|
|
1792
|
-
let
|
|
1793
|
-
return e[12] !== o || e[13] !== n || e[14] !== c || e[15] !== s || e[16] !==
|
|
1763
|
+
let g;
|
|
1764
|
+
return e[12] !== o || e[13] !== n || e[14] !== c || e[15] !== s || e[16] !== p || e[17] !== f || e[18] !== v || e[19] !== m ? (g = /* @__PURE__ */ l(ht, { sx: s, anchorEl: n, open: p, onClose: f, anchorOrigin: v, transformOrigin: m, slotProps: c, children: o }), e[12] = o, e[13] = n, e[14] = c, e[15] = s, e[16] = p, e[17] = f, e[18] = v, e[19] = m, e[20] = g) : g = e[20], g;
|
|
1794
1765
|
}
|
|
1795
1766
|
function vo(t) {
|
|
1796
|
-
const e =
|
|
1767
|
+
const e = P(52), {
|
|
1797
1768
|
options: n,
|
|
1798
1769
|
labels: o,
|
|
1799
1770
|
position: i,
|
|
@@ -1803,86 +1774,86 @@ function vo(t) {
|
|
|
1803
1774
|
} = t;
|
|
1804
1775
|
let c;
|
|
1805
1776
|
e[0] !== n ? (c = n === void 0 ? [] : n, e[0] = n, e[1] = c) : c = e[1];
|
|
1806
|
-
const u = c,
|
|
1777
|
+
const u = c, h = i === void 0 ? "bottom-right" : i, p = a === void 0 ? null : a, [f, b] = ne(null), y = Oe(null), [v, x] = ne(null), d = ft();
|
|
1807
1778
|
let m;
|
|
1808
1779
|
e[2] !== d.breakpoints ? (m = d.breakpoints.down("sm"), e[2] = d.breakpoints, e[3] = m) : m = e[3];
|
|
1809
|
-
const
|
|
1780
|
+
const g = pt(m);
|
|
1810
1781
|
let C;
|
|
1811
1782
|
e[4] !== o ? (C = o ?? {}, e[4] = o, e[5] = C) : C = e[5];
|
|
1812
1783
|
let w;
|
|
1813
1784
|
e[6] !== C ? (w = xe(Jt, C), e[6] = C, e[7] = w) : w = e[7];
|
|
1814
|
-
const
|
|
1815
|
-
let
|
|
1816
|
-
if (e[8] !== u || e[9] !==
|
|
1817
|
-
let
|
|
1818
|
-
e[11] !==
|
|
1785
|
+
const O = w, T = !f;
|
|
1786
|
+
let D;
|
|
1787
|
+
if (e[8] !== u || e[9] !== p) {
|
|
1788
|
+
let le;
|
|
1789
|
+
e[11] !== p ? (le = (he) => he.id === p, e[11] = p, e[12] = le) : le = e[12], D = u.find(le), e[8] = u, e[9] = p, e[10] = D;
|
|
1819
1790
|
} else
|
|
1820
|
-
|
|
1821
|
-
const
|
|
1822
|
-
let
|
|
1791
|
+
D = e[10];
|
|
1792
|
+
const A = D, _ = Object.groupBy(u, no), I = Object.keys(_).length;
|
|
1793
|
+
let S, M;
|
|
1823
1794
|
e[13] !== v ? (M = () => {
|
|
1824
1795
|
if (y.current && clearTimeout(y.current), !!v)
|
|
1825
1796
|
return y.current = setTimeout(() => {
|
|
1826
|
-
|
|
1797
|
+
b(null);
|
|
1827
1798
|
}, v), () => {
|
|
1828
1799
|
y.current && clearTimeout(y.current);
|
|
1829
1800
|
};
|
|
1830
|
-
},
|
|
1831
|
-
let P;
|
|
1832
|
-
e[16] === Symbol.for("react.memo_cache_sentinel") ? (P = () => {
|
|
1833
|
-
x(null);
|
|
1834
|
-
}, e[16] = P) : P = e[16];
|
|
1835
|
-
const k = P;
|
|
1801
|
+
}, S = [v], e[13] = v, e[14] = S, e[15] = M) : (S = e[14], M = e[15]), De(M, S);
|
|
1836
1802
|
let R;
|
|
1837
|
-
e[
|
|
1803
|
+
e[16] === Symbol.for("react.memo_cache_sentinel") ? (R = () => {
|
|
1804
|
+
x(null);
|
|
1805
|
+
}, e[16] = R) : R = e[16];
|
|
1806
|
+
const k = R;
|
|
1807
|
+
let E;
|
|
1808
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (E = () => {
|
|
1838
1809
|
x(400);
|
|
1839
|
-
}, e[17] =
|
|
1840
|
-
const
|
|
1810
|
+
}, e[17] = E) : E = e[17];
|
|
1811
|
+
const j = E, $ = ye;
|
|
1841
1812
|
let B;
|
|
1842
|
-
e[18] === Symbol.for("react.memo_cache_sentinel") ? (B = (
|
|
1843
|
-
|
|
1813
|
+
e[18] === Symbol.for("react.memo_cache_sentinel") ? (B = (le) => {
|
|
1814
|
+
b(le.currentTarget);
|
|
1844
1815
|
}, e[18] = B) : B = e[18];
|
|
1845
|
-
const
|
|
1846
|
-
let
|
|
1847
|
-
e[19] !==
|
|
1848
|
-
let
|
|
1849
|
-
e[22] !== s || e[23] !==
|
|
1850
|
-
const
|
|
1851
|
-
let
|
|
1852
|
-
e[26] !==
|
|
1816
|
+
const V = A?.icon, Z = A?.label ?? "Basemap";
|
|
1817
|
+
let z;
|
|
1818
|
+
e[19] !== V || e[20] !== Z ? (z = /* @__PURE__ */ l(se, { sx: ue.toggle, onClick: B, children: /* @__PURE__ */ l("img", { src: V, alt: Z }) }), e[19] = V, e[20] = Z, e[21] = z) : z = e[21];
|
|
1819
|
+
let ee;
|
|
1820
|
+
e[22] !== s || e[23] !== O.toggle.title || e[24] !== z ? (ee = /* @__PURE__ */ l(de, { title: O.toggle.title, placement: "right", ...s, children: z }), e[22] = s, e[23] = O.toggle.title, e[24] = z, e[25] = ee) : ee = e[25];
|
|
1821
|
+
const F = lo, ie = `translate3d(${h.endsWith("right") ? "-8px" : "8px"}, ${h.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
|
|
1822
|
+
let U;
|
|
1823
|
+
e[26] !== ie ? (U = {
|
|
1853
1824
|
paper: {
|
|
1854
1825
|
sx: {
|
|
1855
1826
|
...ue.root,
|
|
1856
|
-
transform:
|
|
1827
|
+
transform: ie
|
|
1857
1828
|
},
|
|
1858
1829
|
onMouseOver: k,
|
|
1859
|
-
onMouseLeave:
|
|
1830
|
+
onMouseLeave: j
|
|
1860
1831
|
}
|
|
1861
|
-
}, e[26] =
|
|
1862
|
-
let z;
|
|
1863
|
-
e[28] === Symbol.for("react.memo_cache_sentinel") ? (z = () => g(null), e[28] = z) : z = e[28];
|
|
1832
|
+
}, e[26] = ie, e[27] = U) : U = e[27];
|
|
1864
1833
|
let H;
|
|
1865
|
-
e[
|
|
1866
|
-
let
|
|
1867
|
-
e[
|
|
1834
|
+
e[28] === Symbol.for("react.memo_cache_sentinel") ? (H = () => b(null), e[28] = H) : H = e[28];
|
|
1835
|
+
let q;
|
|
1836
|
+
e[29] === Symbol.for("react.memo_cache_sentinel") ? (q = () => b(null), e[29] = q) : q = e[29];
|
|
1837
|
+
let W;
|
|
1838
|
+
e[30] !== g || e[31] !== O.header ? (W = /* @__PURE__ */ l(eo, { isMobile: g, labels: O.header, onChangeCollapsed: q }), e[30] = g, e[31] = O.header, e[32] = W) : W = e[32];
|
|
1839
|
+
let te;
|
|
1840
|
+
e[33] !== I || e[34] !== O.header || e[35] !== r || e[36] !== p ? (te = (le) => {
|
|
1841
|
+
const [he, Me] = le;
|
|
1842
|
+
return /* @__PURE__ */ l(to, { title: he + " " + O.header.title, collapsed: I < 2, children: /* @__PURE__ */ l(oo, { values: Me, selected: p, onChange: (Ge) => {
|
|
1843
|
+
b(null), r(Ge);
|
|
1844
|
+
} }) }, he);
|
|
1845
|
+
}, e[33] = I, e[34] = O.header, e[35] = r, e[36] = p, e[37] = te) : te = e[37];
|
|
1846
|
+
const pe = Object.entries(_).map(te);
|
|
1868
1847
|
let oe;
|
|
1869
|
-
e[
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
G,
|
|
1879
|
-
he
|
|
1880
|
-
] }), e[38] = W, e[39] = O, e[40] = b, e[41] = p, e[42] = $, e[43] = z, e[44] = G, e[45] = he, e[46] = h, e[47] = le) : le = e[47];
|
|
1881
|
-
let X;
|
|
1882
|
-
return e[48] !== V || e[49] !== F || e[50] !== le ? (X = /* @__PURE__ */ I(V, { children: [
|
|
1883
|
-
F,
|
|
1884
|
-
le
|
|
1885
|
-
] }), e[48] = V, e[49] = F, e[50] = le, e[51] = X) : X = e[51], X;
|
|
1848
|
+
e[38] !== F || e[39] !== T || e[40] !== g || e[41] !== h || e[42] !== U || e[43] !== H || e[44] !== W || e[45] !== pe || e[46] !== f ? (oe = /* @__PURE__ */ L(F, { ref: f, slotProps: U, collapsed: T, position: h, isMobile: g, onChangeCollapsed: H, children: [
|
|
1849
|
+
W,
|
|
1850
|
+
pe
|
|
1851
|
+
] }), e[38] = F, e[39] = T, e[40] = g, e[41] = h, e[42] = U, e[43] = H, e[44] = W, e[45] = pe, e[46] = f, e[47] = oe) : oe = e[47];
|
|
1852
|
+
let G;
|
|
1853
|
+
return e[48] !== $ || e[49] !== ee || e[50] !== oe ? (G = /* @__PURE__ */ L($, { children: [
|
|
1854
|
+
ee,
|
|
1855
|
+
oe
|
|
1856
|
+
] }), e[48] = $, e[49] = ee, e[50] = oe, e[51] = G) : G = e[51], G;
|
|
1886
1857
|
}
|
|
1887
1858
|
function no(t) {
|
|
1888
1859
|
return t.group ?? "default";
|
|
@@ -1891,7 +1862,7 @@ export {
|
|
|
1891
1862
|
Et as AreaIcon,
|
|
1892
1863
|
vo as BasemapsUI,
|
|
1893
1864
|
Rt as BufferIcon,
|
|
1894
|
-
|
|
1865
|
+
ho as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
|
|
1895
1866
|
re as DEFAULT_MEASUREMENT_TOOLS_LABELS,
|
|
1896
1867
|
Bt as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
|
|
1897
1868
|
Pt as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
|
|
@@ -1900,11 +1871,11 @@ export {
|
|
|
1900
1871
|
yt as DrawPolygonIcon,
|
|
1901
1872
|
xt as DrawSquareIcon,
|
|
1902
1873
|
mo as GeolocationControls,
|
|
1903
|
-
|
|
1874
|
+
K as LASSO_TOOLS_LABELS,
|
|
1904
1875
|
fo as LassoToolsInlineUI,
|
|
1905
1876
|
ce as LassoToolsUI,
|
|
1906
1877
|
bo as ListDataUI,
|
|
1907
|
-
|
|
1878
|
+
po as MeasurementToolsUI,
|
|
1908
1879
|
kt as RulerIcon,
|
|
1909
1880
|
Mt as SelectToolIcon,
|
|
1910
1881
|
Kt as SmartTooltip,
|