@carto/ps-react-ui 4.3.9 → 4.3.10
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 +692 -700
- package/dist/components.js.map +1 -1
- package/dist/{lasso-tool-jl4YK02H.js → lasso-tool-BYbxrJ-7.js} +184 -190
- package/dist/lasso-tool-BYbxrJ-7.js.map +1 -0
- package/dist/{row-BKmVAUN5.js → row-DTCV0Ocm.js} +2 -2
- package/dist/row-DTCV0Ocm.js.map +1 -0
- package/dist/{series-D1pynfeh.js → series-CYNOu2Ju.js} +2 -2
- package/dist/{series-D1pynfeh.js.map → series-CYNOu2Ju.js.map} +1 -1
- package/dist/smart-tooltip-D4vwQpFf.js +37 -0
- package/dist/smart-tooltip-D4vwQpFf.js.map +1 -0
- package/dist/{styles-DrPyd0y5.js → styles-CAroD5Rc.js} +12 -12
- package/dist/styles-CAroD5Rc.js.map +1 -0
- package/dist/types/widgets/_shared/chart-config/option-builders.d.ts +1 -1
- package/dist/types/widgets/category/config.d.ts +3 -10
- package/dist/types/widgets/range/config.d.ts +0 -4
- package/dist/types/widgets/spread/config.d.ts +0 -5
- package/dist/types/widgets/table/config.d.ts +1 -2
- package/dist/types/widgets/table/table-ui.d.ts +1 -1
- package/dist/types/widgets/wrapper/components/options.d.ts +1 -1
- package/dist/widgets/actions.js +607 -621
- package/dist/widgets/actions.js.map +1 -1
- package/dist/widgets/bar.js +48 -49
- package/dist/widgets/bar.js.map +1 -1
- package/dist/widgets/category.js +28 -28
- package/dist/widgets/category.js.map +1 -1
- package/dist/widgets/formula.js +3 -3
- package/dist/widgets/histogram.js +50 -50
- package/dist/widgets/histogram.js.map +1 -1
- package/dist/widgets/markdown.js +1 -1
- package/dist/widgets/pie.js +9 -9
- package/dist/widgets/pie.js.map +1 -1
- package/dist/widgets/range.js +1 -1
- package/dist/widgets/range.js.map +1 -1
- package/dist/widgets/scatterplot.js +13 -13
- package/dist/widgets/scatterplot.js.map +1 -1
- package/dist/widgets/spread.js +3 -3
- package/dist/widgets/spread.js.map +1 -1
- package/dist/widgets/table.js +1 -1
- package/dist/widgets/table.js.map +1 -1
- package/dist/widgets/timeseries.js +3 -3
- package/dist/widgets/timeseries.js.map +1 -1
- package/dist/widgets/wrapper.js +152 -162
- package/dist/widgets/wrapper.js.map +1 -1
- package/package.json +1 -1
- package/src/components/basemaps/basemaps.tsx +3 -1
- package/src/components/geolocation-controls/geolocation-controls.tsx +10 -6
- package/src/components/lasso-tool/lasso-tool-inline.tsx +6 -2
- package/src/components/lasso-tool/lasso-tool.tsx +9 -3
- package/src/components/list-data/list-data-skeleton.tsx +1 -1
- package/src/components/list-data/list-data.tsx +5 -3
- package/src/components/measurement-tools/measurement-tools.tsx +5 -1
- package/src/components/smart-tooltip/smart-tooltip.tsx +3 -1
- package/src/widgets/_shared/chart-config/option-builders.test.ts +2 -2
- package/src/widgets/_shared/chart-config/option-builders.ts +6 -4
- package/src/widgets/actions/download/download.test.tsx +6 -2
- package/src/widgets/actions/download/download.tsx +3 -1
- package/src/widgets/actions/fullscreen/fullscreen.tsx +8 -1
- package/src/widgets/actions/relative-data/relative-data.tsx +2 -6
- package/src/widgets/actions/searcher/searcher.tsx +0 -6
- package/src/widgets/bar/config.ts +8 -4
- package/src/widgets/bar/skeleton.tsx +1 -1
- package/src/widgets/category/components/category-row-multi.tsx +1 -1
- package/src/widgets/category/config.ts +1 -11
- package/src/widgets/formula/components/row.tsx +1 -1
- package/src/widgets/histogram/config.ts +7 -2
- package/src/widgets/histogram/skeleton.tsx +2 -2
- package/src/widgets/pie/skeleton.tsx +1 -1
- package/src/widgets/range/config.ts +0 -5
- package/src/widgets/scatterplot/skeleton.tsx +2 -2
- package/src/widgets/spread/config.ts +0 -6
- package/src/widgets/table/config.ts +1 -1
- package/src/widgets/table/table-ui.tsx +1 -1
- package/src/widgets/timeseries/skeleton.tsx +1 -1
- package/src/widgets/wrapper/components/actions.test.tsx +6 -2
- package/src/widgets/wrapper/components/actions.tsx +3 -1
- package/src/widgets/wrapper/components/options.test.tsx +12 -4
- package/src/widgets/wrapper/components/options.tsx +8 -3
- package/src/widgets/wrapper/wrapper-ui.tsx +5 -2
- package/src/widgets/wrapper/wrapper.tsx +2 -4
- package/dist/lasso-tool-jl4YK02H.js.map +0 -1
- package/dist/row-BKmVAUN5.js.map +0 -1
- package/dist/smart-tooltip-BEtBaIdz.js +0 -39
- package/dist/smart-tooltip-BEtBaIdz.js.map +0 -1
- package/dist/styles-DrPyd0y5.js.map +0 -1
- package/dist/types/widgets/actions/relative-data/style.d.ts +0 -8
- package/dist/types/widgets/actions/zoom-toggle/index.d.ts +0 -2
- package/dist/types/widgets/table/components/index.d.ts +0 -4
- package/src/widgets/actions/relative-data/style.ts +0 -9
- package/src/widgets/actions/zoom-toggle/index.ts +0 -2
- package/src/widgets/table/components/index.ts +0 -4
package/dist/components.js
CHANGED
|
@@ -1,194 +1,190 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import { D as
|
|
3
|
-
import { jsxs as
|
|
1
|
+
import { s as be, L as $e, a as re } from "./lasso-tool-BYbxrJ-7.js";
|
|
2
|
+
import { D as co, b as mo, c as uo, d as po, e as fo, f as ho, S as go } from "./lasso-tool-BYbxrJ-7.js";
|
|
3
|
+
import { jsxs as E, Fragment as J, jsx as o } from "react/jsx-runtime";
|
|
4
4
|
import { c as F } from "react/compiler-runtime";
|
|
5
|
-
import { Divider as
|
|
6
|
-
import { useState as
|
|
7
|
-
import { d as
|
|
8
|
-
import { T as
|
|
9
|
-
import { s as
|
|
10
|
-
import { ArrowDropDown as
|
|
11
|
-
import { S as ct } from "./smart-tooltip-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
import { Divider as ue, Box as Y, ToggleButton as ve, SvgIcon as De, ToggleButtonGroup as Ie, Typography as Q, Button as ye, alpha as Be, Paper as Se, MenuItem as Me, ListItemIcon as Ue, ListItemText as xe, IconButton as ie, Menu as Ve, DialogTitle as Ze, FormControlLabel as We, Radio as je, RadioGroup as Fe, FormControl as Ne, DialogContent as Ge, DialogActions as ze, Dialog as He, CircularProgress as Ye, Grid as pe, Skeleton as _e, Alert as Xe, ListItem as qe, List as Ke, Drawer as Qe, Popover as Je, useTheme as et, useMediaQuery as tt } from "@mui/material";
|
|
6
|
+
import { useState as se, useRef as Le, useReducer as ot, useEffect as Pe } from "react";
|
|
7
|
+
import { d as we } from "./cjs-D4KH3azB.js";
|
|
8
|
+
import { T as fe } from "./tooltip-BDnrRKrp.js";
|
|
9
|
+
import { s as vo } from "./tooltip-BDnrRKrp.js";
|
|
10
|
+
import { ArrowDropDown as lt, Close as Oe, MyLocationOutlined as nt, LocationDisabledOutlined as it, CropFreeOutlined as st, AddOutlined as rt, RemoveOutlined as at } from "@mui/icons-material";
|
|
11
|
+
import { S as ct } from "./smart-tooltip-D4vwQpFf.js";
|
|
12
|
+
const dt = [], mt = {};
|
|
13
|
+
function to(t) {
|
|
14
|
+
const e = F(55), {
|
|
15
|
+
enabled: s,
|
|
16
|
+
values: l,
|
|
16
17
|
chipProps: n,
|
|
17
18
|
labels: r,
|
|
18
|
-
modes:
|
|
19
|
+
modes: i,
|
|
19
20
|
modesMapping: a,
|
|
20
21
|
modeSelected: c,
|
|
21
|
-
BoxProps:
|
|
22
|
-
onChipToggle:
|
|
22
|
+
BoxProps: m,
|
|
23
|
+
onChipToggle: d,
|
|
23
24
|
onDelete: u,
|
|
24
25
|
onChangeMode: f,
|
|
25
|
-
onAllChipToggle:
|
|
26
|
-
onAllDelete:
|
|
27
|
-
} = t;
|
|
28
|
-
let
|
|
29
|
-
e[0] !==
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
let S, A;
|
|
34
|
-
e[4] !== g ? ({
|
|
35
|
-
sx: A,
|
|
36
|
-
...S
|
|
37
|
-
} = g, e[4] = g, e[5] = S, e[6] = A) : (S = e[5], A = e[6]);
|
|
26
|
+
onAllChipToggle: v,
|
|
27
|
+
onAllDelete: w
|
|
28
|
+
} = t, h = l === void 0 ? dt : l, g = m === void 0 ? mt : m;
|
|
29
|
+
let L, M;
|
|
30
|
+
e[0] !== g ? ({
|
|
31
|
+
sx: M,
|
|
32
|
+
...L
|
|
33
|
+
} = g, e[0] = g, e[1] = L, e[2] = M) : (L = e[1], M = e[2]);
|
|
38
34
|
let _;
|
|
39
|
-
e[
|
|
40
|
-
const
|
|
41
|
-
let
|
|
42
|
-
e[
|
|
43
|
-
edit:
|
|
44
|
-
...
|
|
45
|
-
} =
|
|
46
|
-
let
|
|
47
|
-
e[
|
|
48
|
-
const
|
|
49
|
-
let
|
|
50
|
-
e[
|
|
51
|
-
|
|
52
|
-
}, e[
|
|
53
|
-
const
|
|
54
|
-
let U;
|
|
55
|
-
e[17] !== D ? (U = Object.values(D), e[17] = D, e[18] = U) : U = e[18];
|
|
56
|
-
const L = U;
|
|
57
|
-
let P;
|
|
58
|
-
e[19] !== A ? (P = {
|
|
59
|
-
...ve.container,
|
|
60
|
-
...A
|
|
61
|
-
}, e[19] = A, e[20] = P) : P = e[20];
|
|
62
|
-
const V = r?.options, E = Z?.value, R = r?.options;
|
|
35
|
+
e[3] !== i || e[4] !== a ? (_ = we(i, a), e[3] = i, e[4] = a, e[5] = _) : _ = e[5];
|
|
36
|
+
const y = _;
|
|
37
|
+
let x, k;
|
|
38
|
+
e[6] !== y ? ({
|
|
39
|
+
edit: k,
|
|
40
|
+
...x
|
|
41
|
+
} = y, e[6] = y, e[7] = x, e[8] = k) : (x = e[7], k = e[8]);
|
|
42
|
+
let b;
|
|
43
|
+
e[9] !== u ? (b = (q) => u(q), e[9] = u, e[10] = b) : b = e[10];
|
|
44
|
+
const C = b;
|
|
45
|
+
let T;
|
|
46
|
+
e[11] !== f ? (T = (q, le) => {
|
|
47
|
+
q.preventDefault(), f?.(le);
|
|
48
|
+
}, e[11] = f, e[12] = T) : T = e[12];
|
|
49
|
+
const S = T, I = (c ?? "") in i ? c : Object.keys(y)[0], D = s ? y[I] : null;
|
|
63
50
|
let O;
|
|
64
|
-
e[
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
51
|
+
e[13] !== x ? (O = Object.values(x), e[13] = x, e[14] = O) : O = e[14];
|
|
52
|
+
const U = O;
|
|
53
|
+
let P;
|
|
54
|
+
e[15] !== M ? (P = {
|
|
55
|
+
...be.container,
|
|
56
|
+
...M
|
|
57
|
+
}, e[15] = M, e[16] = P) : P = e[16];
|
|
58
|
+
const R = r?.options, V = D?.value, Z = r?.options;
|
|
59
|
+
let A;
|
|
60
|
+
e[17] !== U || e[18] !== Z ? (A = /* @__PURE__ */ o(Te, { labels: Z, data: U }), e[17] = U, e[18] = Z, e[19] = A) : A = e[19];
|
|
61
|
+
let $;
|
|
62
|
+
e[20] !== k || e[21] !== r?.options || e[22] !== h.length ? ($ = !!k && /* @__PURE__ */ E(J, { children: [
|
|
63
|
+
/* @__PURE__ */ o(ue, { orientation: "vertical" }),
|
|
64
|
+
/* @__PURE__ */ o(Te, { labels: r?.options, data: [{
|
|
65
|
+
...k,
|
|
66
|
+
disabled: !h.length
|
|
71
67
|
}] })
|
|
72
|
-
] }), e[
|
|
68
|
+
] }), e[20] = k, e[21] = r?.options, e[22] = h.length, e[23] = $) : $ = e[23];
|
|
69
|
+
let W;
|
|
70
|
+
e[24] !== S || e[25] !== V || e[26] !== A || e[27] !== $ ? (W = /* @__PURE__ */ E(Ie, { value: V, exclusive: !0, className: "inline", sx: be.options.menu, onChange: S, children: [
|
|
71
|
+
A,
|
|
72
|
+
$
|
|
73
|
+
] }), e[24] = S, e[25] = V, e[26] = A, e[27] = $, e[28] = W) : W = e[28];
|
|
73
74
|
let G;
|
|
74
|
-
e[
|
|
75
|
-
O,
|
|
76
|
-
W
|
|
77
|
-
] }), e[28] = b, e[29] = E, e[30] = O, e[31] = W, e[32] = G) : G = e[32];
|
|
78
|
-
let j;
|
|
79
|
-
e[33] !== L || e[34] !== V || e[35] !== G ? (j = /* @__PURE__ */ l(dt, { data: L, labels: V, children: G }), e[33] = L, e[34] = V, e[35] = G, e[36] = j) : j = e[36];
|
|
75
|
+
e[29] !== U || e[30] !== W || e[31] !== R ? (G = /* @__PURE__ */ o(ut, { data: U, labels: R, children: W }), e[29] = U, e[30] = W, e[31] = R, e[32] = G) : G = e[32];
|
|
80
76
|
let N;
|
|
81
|
-
e[
|
|
82
|
-
const
|
|
77
|
+
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ o(ue, { flexItem: !0 }), e[33] = N) : N = e[33];
|
|
78
|
+
const j = !!h.length, z = r?.noData;
|
|
79
|
+
let B;
|
|
80
|
+
e[34] !== j || e[35] !== z ? (B = /* @__PURE__ */ o(pt, { hasValues: j, labels: z }), e[34] = j, e[35] = z, e[36] = B) : B = e[36];
|
|
83
81
|
let H;
|
|
84
|
-
e[38] !==
|
|
82
|
+
e[37] !== n || e[38] !== C || e[39] !== r?.chip || e[40] !== d || e[41] !== h ? (H = !!h.length && /* @__PURE__ */ o(Y, { sx: be.chip.container, className: "inline", children: h.map((q) => /* @__PURE__ */ o($e, { value: q, labels: r?.chip, chipProps: n, onDelete: C, onChipToggle: d }, q.id)) }), e[37] = n, e[38] = C, e[39] = r?.chip, e[40] = d, e[41] = h, e[42] = H) : H = e[42];
|
|
83
|
+
const ee = r?.actions;
|
|
85
84
|
let X;
|
|
86
|
-
e[
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
let le;
|
|
91
|
-
return e[52] !== S || e[53] !== j || e[54] !== H || e[55] !== X || e[56] !== J || e[57] !== P ? (le = /* @__PURE__ */ $(q, { sx: P, ...S, className: "inline", children: [
|
|
92
|
-
j,
|
|
85
|
+
e[43] !== v || e[44] !== w || e[45] !== ee || e[46] !== h ? (X = /* @__PURE__ */ o(ft, { values: h, labels: ee, onAllChipToggle: v, onAllDelete: w }), e[43] = v, e[44] = w, e[45] = ee, e[46] = h, e[47] = X) : X = e[47];
|
|
86
|
+
let te;
|
|
87
|
+
return e[48] !== L || e[49] !== G || e[50] !== B || e[51] !== H || e[52] !== X || e[53] !== P ? (te = /* @__PURE__ */ E(Y, { sx: P, ...L, className: "inline", children: [
|
|
88
|
+
G,
|
|
93
89
|
N,
|
|
90
|
+
B,
|
|
94
91
|
H,
|
|
95
|
-
X
|
|
96
|
-
|
|
97
|
-
] }), e[52] = S, e[53] = j, e[54] = H, e[55] = X, e[56] = J, e[57] = P, e[58] = le) : le = e[58], le;
|
|
92
|
+
X
|
|
93
|
+
] }), e[48] = L, e[49] = G, e[50] = B, e[51] = H, e[52] = X, e[53] = P, e[54] = te) : te = e[54], te;
|
|
98
94
|
}
|
|
99
|
-
function
|
|
95
|
+
function ut(t) {
|
|
100
96
|
const e = F(5), {
|
|
101
|
-
data:
|
|
102
|
-
labels:
|
|
97
|
+
data: s,
|
|
98
|
+
labels: l,
|
|
103
99
|
children: n
|
|
104
100
|
} = t;
|
|
105
|
-
if (
|
|
101
|
+
if (s.length <= 1)
|
|
106
102
|
return null;
|
|
107
|
-
const r =
|
|
108
|
-
let
|
|
109
|
-
e[0] !== r ? (
|
|
103
|
+
const r = l?.mode?.title ?? re.options.mode.title;
|
|
104
|
+
let i;
|
|
105
|
+
e[0] !== r ? (i = /* @__PURE__ */ o(Q, { variant: "subtitle2", color: "text.secondary", sx: be.options.title, className: "inline", children: r }), e[0] = r, e[1] = i) : i = e[1];
|
|
110
106
|
let a;
|
|
111
|
-
return e[2] !== n || e[3] !==
|
|
112
|
-
|
|
107
|
+
return e[2] !== n || e[3] !== i ? (a = /* @__PURE__ */ E(J, { children: [
|
|
108
|
+
i,
|
|
113
109
|
n
|
|
114
|
-
] }), e[2] = n, e[3] =
|
|
110
|
+
] }), e[2] = n, e[3] = i, e[4] = a) : a = e[4], a;
|
|
115
111
|
}
|
|
116
|
-
function
|
|
112
|
+
function Te({
|
|
117
113
|
data: t,
|
|
118
114
|
labels: e
|
|
119
115
|
}) {
|
|
120
|
-
return t.filter((
|
|
121
|
-
const n = (e?.mode?.options ??
|
|
122
|
-
return /* @__PURE__ */
|
|
116
|
+
return t.filter((s) => !!s).map((s) => {
|
|
117
|
+
const n = (e?.mode?.options ?? re.options.mode.options)[s.value];
|
|
118
|
+
return /* @__PURE__ */ o(fe, { title: n, placement: "bottom", children: /* @__PURE__ */ o(ve, { disabled: !!s.disabled, value: s.value, "aria-label": s.value, children: /* @__PURE__ */ o(De, { children: s.icon }) }) }, s.value);
|
|
123
119
|
});
|
|
124
120
|
}
|
|
125
|
-
function
|
|
121
|
+
function pt(t) {
|
|
126
122
|
const e = F(7), {
|
|
127
|
-
hasValues:
|
|
128
|
-
labels:
|
|
123
|
+
hasValues: s,
|
|
124
|
+
labels: l
|
|
129
125
|
} = t;
|
|
130
|
-
if (
|
|
126
|
+
if (s)
|
|
131
127
|
return null;
|
|
132
|
-
const n =
|
|
133
|
-
let
|
|
134
|
-
e[0] !== n ? (
|
|
128
|
+
const n = l?.title ?? re.noData.title, r = l?.description ?? re.noData.description;
|
|
129
|
+
let i;
|
|
130
|
+
e[0] !== n ? (i = /* @__PURE__ */ o(Q, { variant: "body1", color: "textSecondary", children: n }), e[0] = n, e[1] = i) : i = e[1];
|
|
135
131
|
let a;
|
|
136
|
-
e[2] !== r ? (a = /* @__PURE__ */
|
|
132
|
+
e[2] !== r ? (a = /* @__PURE__ */ o(Q, { variant: "body2", color: "textSecondary", children: r }), e[2] = r, e[3] = a) : a = e[3];
|
|
137
133
|
let c;
|
|
138
|
-
return e[4] !==
|
|
139
|
-
|
|
134
|
+
return e[4] !== i || e[5] !== a ? (c = /* @__PURE__ */ E(J, { children: [
|
|
135
|
+
i,
|
|
140
136
|
a
|
|
141
|
-
] }), e[4] =
|
|
137
|
+
] }), e[4] = i, e[5] = a, e[6] = c) : c = e[6], c;
|
|
142
138
|
}
|
|
143
|
-
function
|
|
139
|
+
function ft(t) {
|
|
144
140
|
const e = F(13), {
|
|
145
|
-
values:
|
|
146
|
-
labels:
|
|
141
|
+
values: s,
|
|
142
|
+
labels: l,
|
|
147
143
|
onAllChipToggle: n,
|
|
148
144
|
onAllDelete: r
|
|
149
145
|
} = t;
|
|
150
|
-
if (
|
|
146
|
+
if (s.length <= 1)
|
|
151
147
|
return null;
|
|
152
|
-
const a =
|
|
153
|
-
let d;
|
|
154
|
-
e[0] !== n ? (d = () => n(), e[0] = n, e[1] = d) : d = e[1];
|
|
148
|
+
const a = s.some(ht) ? l?.toggleAll?.active ?? re.actions.toggleAll.active : l?.toggleAll?.inactive ?? re.actions.toggleAll.inactive, c = l?.deleteAll ?? re.actions.deleteAll;
|
|
155
149
|
let m;
|
|
156
|
-
e[
|
|
150
|
+
e[0] !== n ? (m = () => n(), e[0] = n, e[1] = m) : m = e[1];
|
|
151
|
+
let d;
|
|
152
|
+
e[2] !== m || e[3] !== a ? (d = /* @__PURE__ */ o(ye, { color: "inherit", onClick: m, children: a }), e[2] = m, e[3] = a, e[4] = d) : d = e[4];
|
|
157
153
|
let u;
|
|
158
154
|
e[5] !== r ? (u = () => r(), e[5] = r, e[6] = u) : u = e[6];
|
|
159
155
|
let f;
|
|
160
|
-
e[7] !== c || e[8] !== u ? (f = /* @__PURE__ */
|
|
161
|
-
let
|
|
162
|
-
return e[10] !==
|
|
163
|
-
|
|
156
|
+
e[7] !== c || e[8] !== u ? (f = /* @__PURE__ */ o(ye, { color: "error", onClick: u, children: c }), e[7] = c, e[8] = u, e[9] = f) : f = e[9];
|
|
157
|
+
let v;
|
|
158
|
+
return e[10] !== d || e[11] !== f ? (v = /* @__PURE__ */ E(Y, { children: [
|
|
159
|
+
d,
|
|
164
160
|
f
|
|
165
|
-
] }), e[10] =
|
|
161
|
+
] }), e[10] = d, e[11] = f, e[12] = v) : v = e[12], v;
|
|
166
162
|
}
|
|
167
|
-
function
|
|
163
|
+
function ht(t) {
|
|
168
164
|
return t.visible;
|
|
169
165
|
}
|
|
170
|
-
function
|
|
166
|
+
function gt(t) {
|
|
171
167
|
const e = F(3);
|
|
172
|
-
let
|
|
173
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
174
|
-
let
|
|
175
|
-
return e[1] !== t ? (
|
|
168
|
+
let s;
|
|
169
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o("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] = s) : s = e[0];
|
|
170
|
+
let l;
|
|
171
|
+
return e[1] !== t ? (l = /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: s }), e[1] = t, e[2] = l) : l = e[2], l;
|
|
176
172
|
}
|
|
177
|
-
function
|
|
173
|
+
function bt(t) {
|
|
178
174
|
const e = F(3);
|
|
179
|
-
let
|
|
180
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
181
|
-
let
|
|
182
|
-
return e[1] !== t ? (
|
|
175
|
+
let s;
|
|
176
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o("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] = s) : s = e[0];
|
|
177
|
+
let l;
|
|
178
|
+
return e[1] !== t ? (l = /* @__PURE__ */ o("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: s }), e[1] = t, e[2] = l) : l = e[2], l;
|
|
183
179
|
}
|
|
184
|
-
function
|
|
180
|
+
function vt(t) {
|
|
185
181
|
const e = F(4);
|
|
186
|
-
let
|
|
187
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
182
|
+
let s, l;
|
|
183
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 13.5v-9h9v9h-9Zm.75-8.25h7.5v7.5h-7.5v-7.5Z", clipRule: "evenodd" }), l = /* @__PURE__ */ o("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] = s, e[1] = l) : (s = e[0], l = e[1]);
|
|
188
184
|
let n;
|
|
189
|
-
return e[2] !== t ? (n = /* @__PURE__ */
|
|
190
|
-
|
|
191
|
-
|
|
185
|
+
return e[2] !== t ? (n = /* @__PURE__ */ E("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
|
|
186
|
+
s,
|
|
187
|
+
l
|
|
192
188
|
] }), e[2] = t, e[3] = n) : n = e[3], n;
|
|
193
189
|
}
|
|
194
190
|
const oe = {
|
|
@@ -243,7 +239,7 @@ const oe = {
|
|
|
243
239
|
}
|
|
244
240
|
}
|
|
245
241
|
}
|
|
246
|
-
},
|
|
242
|
+
}, yt = {
|
|
247
243
|
"m-km": {
|
|
248
244
|
short: "m-km"
|
|
249
245
|
},
|
|
@@ -271,17 +267,17 @@ const oe = {
|
|
|
271
267
|
feet: {
|
|
272
268
|
short: "ft"
|
|
273
269
|
}
|
|
274
|
-
},
|
|
270
|
+
}, xt = {
|
|
275
271
|
distance: {
|
|
276
|
-
icon: /* @__PURE__ */
|
|
272
|
+
icon: /* @__PURE__ */ o(gt, {})
|
|
277
273
|
},
|
|
278
274
|
buffer: {
|
|
279
|
-
icon: /* @__PURE__ */
|
|
275
|
+
icon: /* @__PURE__ */ o(bt, {})
|
|
280
276
|
},
|
|
281
277
|
area: {
|
|
282
|
-
icon: /* @__PURE__ */
|
|
278
|
+
icon: /* @__PURE__ */ o(vt, {})
|
|
283
279
|
}
|
|
284
|
-
},
|
|
280
|
+
}, K = {
|
|
285
281
|
container: {
|
|
286
282
|
display: "flex",
|
|
287
283
|
flexDirection: "row",
|
|
@@ -346,7 +342,7 @@ const oe = {
|
|
|
346
342
|
}) => t.primary.main,
|
|
347
343
|
backgroundColor: ({
|
|
348
344
|
palette: t
|
|
349
|
-
}) =>
|
|
345
|
+
}) => Be(t.primary.main, 0.08)
|
|
350
346
|
},
|
|
351
347
|
modal: {
|
|
352
348
|
toggle: {
|
|
@@ -405,314 +401,315 @@ const oe = {
|
|
|
405
401
|
}
|
|
406
402
|
}
|
|
407
403
|
}
|
|
408
|
-
};
|
|
409
|
-
function
|
|
410
|
-
const e = F(
|
|
411
|
-
enabled:
|
|
412
|
-
actionProps:
|
|
404
|
+
}, St = {};
|
|
405
|
+
function oo(t) {
|
|
406
|
+
const e = F(44), {
|
|
407
|
+
enabled: s,
|
|
408
|
+
actionProps: l,
|
|
413
409
|
labels: n,
|
|
414
410
|
modes: r,
|
|
415
|
-
modesMapping:
|
|
411
|
+
modesMapping: i,
|
|
416
412
|
unitsMapping: a,
|
|
417
413
|
modeSelected: c,
|
|
418
|
-
PaperProps:
|
|
419
|
-
units:
|
|
414
|
+
PaperProps: m,
|
|
415
|
+
units: d,
|
|
420
416
|
unitSelected: u,
|
|
421
417
|
onActionToggle: f,
|
|
422
|
-
onChangeMode:
|
|
423
|
-
onChangeUnit:
|
|
424
|
-
} = t,
|
|
418
|
+
onChangeMode: v,
|
|
419
|
+
onChangeUnit: w
|
|
420
|
+
} = t, h = n === void 0 ? oe : n, g = i === void 0 ? xt : i, L = a === void 0 ? yt : a, M = m === void 0 ? St : m;
|
|
421
|
+
let _, y;
|
|
422
|
+
e[0] !== M ? ({
|
|
423
|
+
sx: y,
|
|
424
|
+
..._
|
|
425
|
+
} = M, e[0] = M, e[1] = _, e[2] = y) : (_ = e[1], y = e[2]);
|
|
426
|
+
let x;
|
|
427
|
+
e[3] !== f ? (x = (B) => f(!!B), e[3] = f, e[4] = x) : x = e[4];
|
|
428
|
+
const k = x;
|
|
429
|
+
let b;
|
|
430
|
+
e[5] !== r || e[6] !== g ? (b = we(r, g), e[5] = r, e[6] = g, e[7] = b) : b = e[7];
|
|
431
|
+
const C = b, T = (c ?? "") in C;
|
|
425
432
|
let S;
|
|
426
|
-
e[
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
} =
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
let M;
|
|
436
|
-
e[7] !== r || e[8] !== p ? (M = Me(r, p), e[7] = r, e[8] = p, e[9] = M) : M = e[9];
|
|
437
|
-
const h = M, T = (c ?? "") in h;
|
|
438
|
-
let y;
|
|
439
|
-
e[10] !== h || e[11] !== T || e[12] !== c ? (y = T ? c : Object.keys(h)[0], e[10] = h, e[11] = T, e[12] = c, e[13] = y) : y = e[13];
|
|
440
|
-
const b = y, w = h[b], x = m[b];
|
|
441
|
-
let Z;
|
|
442
|
-
e[14] !== b || e[15] !== x || e[16] !== m ? (Z = Object.keys(m).length >= 1 ? m : {
|
|
443
|
-
[b]: x.slice(0, 1)
|
|
444
|
-
}, e[14] = b, e[15] = x, e[16] = m, e[17] = Z) : Z = e[17];
|
|
445
|
-
const L = Z[b];
|
|
446
|
-
let P;
|
|
447
|
-
if (e[18] !== L || e[19] !== g) {
|
|
433
|
+
e[8] !== C || e[9] !== T || e[10] !== c ? (S = T ? c : Object.keys(C)[0], e[8] = C, e[9] = T, e[10] = c, e[11] = S) : S = e[11];
|
|
434
|
+
const p = S, I = C[p], D = d[p];
|
|
435
|
+
let O;
|
|
436
|
+
e[12] !== p || e[13] !== D || e[14] !== d ? (O = Object.keys(d).length >= 1 ? d : {
|
|
437
|
+
[p]: D.slice(0, 1)
|
|
438
|
+
}, e[12] = p, e[13] = D, e[14] = d, e[15] = O) : O = e[15];
|
|
439
|
+
const P = O[p];
|
|
440
|
+
let R;
|
|
441
|
+
if (e[16] !== P || e[17] !== L) {
|
|
448
442
|
let B;
|
|
449
|
-
e[
|
|
443
|
+
e[19] !== L ? (B = (H) => ({
|
|
450
444
|
...H,
|
|
451
|
-
...
|
|
452
|
-
}), e[
|
|
445
|
+
...L[H.value]
|
|
446
|
+
}), e[19] = L, e[20] = B) : B = e[20], R = P.map(B), e[16] = P, e[17] = L, e[18] = R;
|
|
453
447
|
} else
|
|
454
|
-
|
|
455
|
-
const V =
|
|
456
|
-
let
|
|
457
|
-
e[
|
|
458
|
-
...
|
|
459
|
-
...
|
|
460
|
-
}, e[
|
|
461
|
-
const
|
|
448
|
+
R = e[18];
|
|
449
|
+
const V = R;
|
|
450
|
+
let Z;
|
|
451
|
+
e[21] !== y ? (Z = {
|
|
452
|
+
...K.container,
|
|
453
|
+
...y
|
|
454
|
+
}, e[21] = y, e[22] = Z) : Z = e[22];
|
|
455
|
+
const A = h?.action, $ = I?.icon;
|
|
462
456
|
let W;
|
|
463
|
-
e[
|
|
464
|
-
const G =
|
|
465
|
-
let j;
|
|
466
|
-
e[31] !== V || e[32] !== h || e[33] !== b || e[34] !== I || e[35] !== v || e[36] !== G || e[37] !== u ? (j = /* @__PURE__ */ l(xt, { labels: G, modes: h, modeSelected: b, units: V, unitSelected: u, onChangeMode: I, onChangeUnit: v }), e[31] = V, e[32] = h, e[33] = b, e[34] = I, e[35] = v, e[36] = G, e[37] = u, e[38] = j) : j = e[38];
|
|
457
|
+
e[23] !== l || e[24] !== s || e[25] !== k || e[26] !== A || e[27] !== $ ? (W = /* @__PURE__ */ o(_t, { actionProps: l, labels: A, enabled: s, onActionToggle: k, children: $ }), e[23] = l, e[24] = s, e[25] = k, e[26] = A, e[27] = $, e[28] = W) : W = e[28];
|
|
458
|
+
const G = h?.options;
|
|
467
459
|
let N;
|
|
468
|
-
e[
|
|
460
|
+
e[29] !== V || e[30] !== C || e[31] !== p || e[32] !== v || e[33] !== w || e[34] !== G || e[35] !== u ? (N = /* @__PURE__ */ o(Ct, { labels: G, modes: C, modeSelected: p, units: V, unitSelected: u, onChangeMode: v, onChangeUnit: w }), e[29] = V, e[30] = C, e[31] = p, e[32] = v, e[33] = w, e[34] = G, e[35] = u, e[36] = N) : N = e[36];
|
|
461
|
+
let j;
|
|
462
|
+
e[37] !== W || e[38] !== N ? (j = /* @__PURE__ */ E(Y, { children: [
|
|
469
463
|
W,
|
|
470
|
-
|
|
471
|
-
] }), e[
|
|
464
|
+
N
|
|
465
|
+
] }), e[37] = W, e[38] = N, e[39] = j) : j = e[39];
|
|
472
466
|
let z;
|
|
473
|
-
return e[
|
|
467
|
+
return e[40] !== _ || e[41] !== Z || e[42] !== j ? (z = /* @__PURE__ */ o(Se, { sx: Z, ..._, children: j }), e[40] = _, e[41] = Z, e[42] = j, e[43] = z) : z = e[43], z;
|
|
474
468
|
}
|
|
475
|
-
function
|
|
469
|
+
function _t(t) {
|
|
476
470
|
const e = F(12), {
|
|
477
|
-
actionProps:
|
|
478
|
-
labels:
|
|
471
|
+
actionProps: s,
|
|
472
|
+
labels: l,
|
|
479
473
|
enabled: n,
|
|
480
474
|
children: r,
|
|
481
|
-
onActionToggle:
|
|
482
|
-
} = t, a = n ? "active" : "inactive", c =
|
|
483
|
-
let
|
|
484
|
-
e[0] !== n || e[1] !==
|
|
475
|
+
onActionToggle: i
|
|
476
|
+
} = t, a = n ? "active" : "inactive", c = l?.tooltip?.[a] ?? oe.action.tooltip[a], m = s?.TooltipProps;
|
|
477
|
+
let d;
|
|
478
|
+
e[0] !== n || e[1] !== i ? (d = () => i(!n), e[0] = n, e[1] = i, e[2] = d) : d = e[2];
|
|
485
479
|
let u;
|
|
486
|
-
e[3] !== c || e[4] !== r || e[5] !== n || e[6] !==
|
|
480
|
+
e[3] !== c || e[4] !== r || e[5] !== n || e[6] !== d ? (u = /* @__PURE__ */ o(ve, { value: "toggle", sx: K.actions.icon, onClick: d, "aria-label": c, selected: n, children: r }), e[3] = c, e[4] = r, e[5] = n, e[6] = d, e[7] = u) : u = e[7];
|
|
487
481
|
let f;
|
|
488
|
-
return e[8] !== c || e[9] !==
|
|
482
|
+
return e[8] !== c || e[9] !== m || e[10] !== u ? (f = /* @__PURE__ */ o(fe, { title: c, placement: "right", ...m, children: u }), e[8] = c, e[9] = m, e[10] = u, e[11] = f) : f = e[11], f;
|
|
489
483
|
}
|
|
490
|
-
function
|
|
484
|
+
function Ct(t) {
|
|
491
485
|
const e = F(41), {
|
|
492
|
-
modes:
|
|
493
|
-
modeSelected:
|
|
486
|
+
modes: s,
|
|
487
|
+
modeSelected: l,
|
|
494
488
|
units: n,
|
|
495
489
|
unitSelected: r,
|
|
496
|
-
labels:
|
|
490
|
+
labels: i,
|
|
497
491
|
onChangeMode: a,
|
|
498
492
|
onChangeUnit: c
|
|
499
|
-
} = t, [
|
|
500
|
-
let
|
|
501
|
-
e[0] !==
|
|
502
|
-
const
|
|
503
|
-
let
|
|
504
|
-
e[2] !== n ? (
|
|
505
|
-
const
|
|
506
|
-
if (!(
|
|
493
|
+
} = t, [m, d] = se(null), [u, f] = se(!1);
|
|
494
|
+
let v;
|
|
495
|
+
e[0] !== s ? (v = Object.values(s), e[0] = s, e[1] = v) : v = e[1];
|
|
496
|
+
const w = v;
|
|
497
|
+
let h;
|
|
498
|
+
e[2] !== n ? (h = Object.values(n), e[2] = n, e[3] = h) : h = e[3];
|
|
499
|
+
const g = h;
|
|
500
|
+
if (!(w.length > 1 || g.length > 1))
|
|
507
501
|
return null;
|
|
508
|
-
const
|
|
509
|
-
let
|
|
510
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
511
|
-
|
|
512
|
-
}, e[4] =
|
|
513
|
-
const
|
|
514
|
-
let
|
|
515
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
516
|
-
|
|
517
|
-
}, e[5] =
|
|
518
|
-
const
|
|
519
|
-
let
|
|
520
|
-
e[6] !== a ? (
|
|
521
|
-
B.preventDefault(), a(H.value),
|
|
522
|
-
}, e[6] = a, e[7] =
|
|
523
|
-
const
|
|
502
|
+
const M = !!m;
|
|
503
|
+
let _;
|
|
504
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (B) => {
|
|
505
|
+
d(B.currentTarget);
|
|
506
|
+
}, e[4] = _) : _ = e[4];
|
|
507
|
+
const y = _;
|
|
508
|
+
let x;
|
|
509
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = () => {
|
|
510
|
+
d(null);
|
|
511
|
+
}, e[5] = x) : x = e[5];
|
|
512
|
+
const k = x;
|
|
513
|
+
let b;
|
|
514
|
+
e[6] !== a ? (b = (B, H) => {
|
|
515
|
+
B.preventDefault(), a(H.value), k();
|
|
516
|
+
}, e[6] = a, e[7] = b) : b = e[7];
|
|
517
|
+
const C = b;
|
|
524
518
|
let T;
|
|
525
519
|
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = () => {
|
|
526
520
|
f(!0);
|
|
527
521
|
}, e[8] = T) : T = e[8];
|
|
528
|
-
const
|
|
529
|
-
let
|
|
530
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
522
|
+
const S = T;
|
|
523
|
+
let p;
|
|
524
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = () => {
|
|
531
525
|
f(!1);
|
|
532
|
-
}, e[9] =
|
|
533
|
-
const
|
|
534
|
-
let
|
|
535
|
-
e[10] !== c ? (
|
|
536
|
-
|
|
537
|
-
}, e[10] = c, e[11] =
|
|
538
|
-
const
|
|
526
|
+
}, e[9] = p) : p = e[9];
|
|
527
|
+
const I = p;
|
|
528
|
+
let D;
|
|
529
|
+
e[10] !== c ? (D = (B) => {
|
|
530
|
+
I(), c(B);
|
|
531
|
+
}, e[10] = c, e[11] = D) : D = e[11];
|
|
532
|
+
const O = D, U = i?.mode?.title ?? oe.options.mode.title, P = i?.units?.title ?? oe.options.units.title, R = w.length > 1 && g.length > 1;
|
|
539
533
|
let V;
|
|
540
534
|
e[12] !== r || e[13] !== n ? (V = n.find((B) => B.value === r) ?? n[0], e[12] = r, e[13] = n, e[14] = V) : V = e[14];
|
|
541
|
-
const
|
|
542
|
-
let
|
|
543
|
-
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
544
|
-
let
|
|
545
|
-
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
535
|
+
const Z = V;
|
|
536
|
+
let A;
|
|
537
|
+
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ o(ie, { sx: K.options.icon, onClick: y, children: /* @__PURE__ */ o(lt, {}) }), e[15] = A) : A = e[15];
|
|
538
|
+
let $;
|
|
539
|
+
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = {
|
|
546
540
|
"aria-labelledby": "basic-button",
|
|
547
|
-
sx:
|
|
548
|
-
}, e[16] =
|
|
541
|
+
sx: K.options.menu
|
|
542
|
+
}, e[16] = $) : $ = e[16];
|
|
549
543
|
let W;
|
|
550
|
-
e[17] !==
|
|
551
|
-
/* @__PURE__ */
|
|
552
|
-
|
|
553
|
-
const
|
|
554
|
-
return /* @__PURE__ */
|
|
555
|
-
/* @__PURE__ */
|
|
556
|
-
/* @__PURE__ */
|
|
544
|
+
e[17] !== C || e[18] !== i?.mode?.options || e[19] !== l || e[20] !== U || e[21] !== w ? (W = w.length > 1 && /* @__PURE__ */ E(J, { children: [
|
|
545
|
+
/* @__PURE__ */ o(Q, { variant: "subtitle2", color: "text.secondary", sx: K.options.title, children: U }),
|
|
546
|
+
w.map((B) => {
|
|
547
|
+
const ee = (i?.mode?.options ?? oe.options.mode.options)[B.value];
|
|
548
|
+
return /* @__PURE__ */ E(Me, { onClick: (X) => C(X, B), selected: B.value === l, children: [
|
|
549
|
+
/* @__PURE__ */ o(Ue, { sx: K.options.icons, children: /* @__PURE__ */ o(De, { children: B.icon }) }),
|
|
550
|
+
/* @__PURE__ */ o(xe, { children: ee })
|
|
557
551
|
] }, B.value);
|
|
558
552
|
})
|
|
559
|
-
] }), e[17] =
|
|
553
|
+
] }), e[17] = C, e[18] = i?.mode?.options, e[19] = l, e[20] = U, e[21] = w, e[22] = W) : W = e[22];
|
|
560
554
|
let G;
|
|
561
|
-
e[23] !==
|
|
562
|
-
let j;
|
|
563
|
-
e[25] !== Z || e[26] !== s || e[27] !== u || e[28] !== E || e[29] !== L || e[30] !== n || e[31] !== p.length ? (j = p.length > 1 && /* @__PURE__ */ $(ee, { children: [
|
|
564
|
-
/* @__PURE__ */ $(Te, { onClick: y, children: [
|
|
565
|
-
/* @__PURE__ */ l(Se, { children: L }),
|
|
566
|
-
/* @__PURE__ */ l(Q, { variant: "caption", fontWeight: 500, sx: Y.options.tag, children: E.short })
|
|
567
|
-
] }),
|
|
568
|
-
/* @__PURE__ */ l(St, { open: u, labels: s, units: n, unitSelectedValue: E, onClose: w, onSubmit: Z })
|
|
569
|
-
] }), e[25] = Z, e[26] = s, e[27] = u, e[28] = E, e[29] = L, e[30] = n, e[31] = p.length, e[32] = j) : j = e[32];
|
|
555
|
+
e[23] !== R ? (G = R && /* @__PURE__ */ o(ue, {}), e[23] = R, e[24] = G) : G = e[24];
|
|
570
556
|
let N;
|
|
571
|
-
e[
|
|
557
|
+
e[25] !== O || e[26] !== i || e[27] !== u || e[28] !== Z || e[29] !== P || e[30] !== n || e[31] !== g.length ? (N = g.length > 1 && /* @__PURE__ */ E(J, { children: [
|
|
558
|
+
/* @__PURE__ */ E(Me, { onClick: S, children: [
|
|
559
|
+
/* @__PURE__ */ o(xe, { children: P }),
|
|
560
|
+
/* @__PURE__ */ o(Q, { variant: "caption", fontWeight: 500, sx: K.options.tag, children: Z.short })
|
|
561
|
+
] }),
|
|
562
|
+
/* @__PURE__ */ o(wt, { open: u, labels: i, units: n, unitSelectedValue: Z, onClose: I, onSubmit: O })
|
|
563
|
+
] }), e[25] = O, e[26] = i, e[27] = u, e[28] = Z, e[29] = P, e[30] = n, e[31] = g.length, e[32] = N) : N = e[32];
|
|
564
|
+
let j;
|
|
565
|
+
e[33] !== W || e[34] !== G || e[35] !== N ? (j = /* @__PURE__ */ E("div", { children: [
|
|
572
566
|
W,
|
|
573
567
|
G,
|
|
574
|
-
|
|
575
|
-
] }), e[33] = W, e[34] = G, e[35] =
|
|
568
|
+
N
|
|
569
|
+
] }), e[33] = W, e[34] = G, e[35] = N, e[36] = j) : j = e[36];
|
|
576
570
|
let z;
|
|
577
|
-
return e[37] !==
|
|
578
|
-
|
|
579
|
-
/* @__PURE__ */
|
|
580
|
-
] }), e[37] =
|
|
571
|
+
return e[37] !== m || e[38] !== M || e[39] !== j ? (z = /* @__PURE__ */ E(J, { children: [
|
|
572
|
+
A,
|
|
573
|
+
/* @__PURE__ */ o(Ve, { id: "measurement-menu", anchorEl: m, open: M, onClose: k, MenuListProps: $, children: j })
|
|
574
|
+
] }), e[37] = m, e[38] = M, e[39] = j, e[40] = z) : z = e[40], z;
|
|
581
575
|
}
|
|
582
|
-
function
|
|
576
|
+
function wt(t) {
|
|
583
577
|
const e = F(48), {
|
|
584
|
-
open:
|
|
585
|
-
labels:
|
|
578
|
+
open: s,
|
|
579
|
+
labels: l,
|
|
586
580
|
units: n,
|
|
587
581
|
unitSelectedValue: r,
|
|
588
|
-
onClose:
|
|
582
|
+
onClose: i,
|
|
589
583
|
onSubmit: a
|
|
590
|
-
} = t, [c,
|
|
591
|
-
let
|
|
584
|
+
} = t, [c, m] = se("metric");
|
|
585
|
+
let d;
|
|
592
586
|
if (e[0] !== c || e[1] !== n) {
|
|
593
|
-
let
|
|
594
|
-
e[3] !== c ? (
|
|
587
|
+
let A;
|
|
588
|
+
e[3] !== c ? (A = ($) => $.system === c, e[3] = c, e[4] = A) : A = e[4], d = n.filter(A), e[0] = c, e[1] = n, e[2] = d;
|
|
595
589
|
} else
|
|
596
|
-
|
|
597
|
-
const u =
|
|
590
|
+
d = e[2];
|
|
591
|
+
const u = d;
|
|
598
592
|
let f;
|
|
599
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (
|
|
600
|
-
|
|
593
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (A, $) => {
|
|
594
|
+
m($);
|
|
601
595
|
}, e[5] = f) : f = e[5];
|
|
602
|
-
const
|
|
603
|
-
let
|
|
604
|
-
e[6] !== a ? (
|
|
596
|
+
const v = f, w = l?.units?.modal?.options ?? oe.options.units.modal.options, h = w[c].options, g = l?.units?.modal?.title ?? oe.options.units.modal.title, L = l?.units?.modal?.subtitle ?? oe.options.units.modal.subtitle, M = l?.units?.modal?.apply ?? oe.options.units.modal.apply, _ = r.system === c ? r : u[0];
|
|
597
|
+
let y;
|
|
598
|
+
e[6] !== a ? (y = {
|
|
605
599
|
component: "form",
|
|
606
|
-
onSubmit: (
|
|
607
|
-
|
|
608
|
-
const
|
|
609
|
-
a(
|
|
600
|
+
onSubmit: (A) => {
|
|
601
|
+
A.preventDefault();
|
|
602
|
+
const $ = new FormData(A.currentTarget);
|
|
603
|
+
a($.get("unit-value"));
|
|
610
604
|
}
|
|
611
|
-
}, e[6] = a, e[7] =
|
|
605
|
+
}, e[6] = a, e[7] = y) : y = e[7];
|
|
606
|
+
let x;
|
|
607
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ o(Oe, {}), e[8] = x) : x = e[8];
|
|
608
|
+
let k;
|
|
609
|
+
e[9] !== i ? (k = /* @__PURE__ */ o(ie, { onClick: i, children: x }), e[9] = i, e[10] = k) : k = e[10];
|
|
610
|
+
let b;
|
|
611
|
+
e[11] !== g || e[12] !== k ? (b = /* @__PURE__ */ E(Ze, { sx: K.options.modal.title, children: [
|
|
612
|
+
g,
|
|
613
|
+
k
|
|
614
|
+
] }), e[11] = g, e[12] = k, e[13] = b) : b = e[13];
|
|
612
615
|
let C;
|
|
613
|
-
e[
|
|
614
|
-
let D;
|
|
615
|
-
e[9] !== s ? (D = /* @__PURE__ */ l(re, { onClick: s, children: C }), e[9] = s, e[10] = D) : D = e[10];
|
|
616
|
-
let M;
|
|
617
|
-
e[11] !== p || e[12] !== D ? (M = /* @__PURE__ */ $(We, { sx: Y.options.modal.title, children: [
|
|
618
|
-
p,
|
|
619
|
-
D
|
|
620
|
-
] }), e[11] = p, e[12] = D, e[13] = M) : M = e[13];
|
|
621
|
-
let h;
|
|
622
|
-
e[14] !== g ? (h = /* @__PURE__ */ l(Q, { sx: Y.options.modal.subtitle, children: g }), e[14] = g, e[15] = h) : h = e[15];
|
|
616
|
+
e[14] !== L ? (C = /* @__PURE__ */ o(Q, { sx: K.options.modal.subtitle, children: L }), e[14] = L, e[15] = C) : C = e[15];
|
|
623
617
|
let T;
|
|
624
|
-
e[16] !==
|
|
625
|
-
let
|
|
626
|
-
e[18] !==
|
|
627
|
-
let
|
|
628
|
-
e[20] !== c || e[21] !== T || e[22] !==
|
|
618
|
+
e[16] !== w.metric.title ? (T = /* @__PURE__ */ o(ve, { value: "metric", children: w.metric.title }), e[16] = w.metric.title, e[17] = T) : T = e[17];
|
|
619
|
+
let S;
|
|
620
|
+
e[18] !== w.imperial.title ? (S = /* @__PURE__ */ o(ve, { value: "imperial", children: w.imperial.title }), e[18] = w.imperial.title, e[19] = S) : S = e[19];
|
|
621
|
+
let p;
|
|
622
|
+
e[20] !== c || e[21] !== T || e[22] !== S ? (p = /* @__PURE__ */ E(Ie, { color: "primary", value: c, exclusive: !0, fullWidth: !0, onChange: v, "aria-label": "system", sx: K.options.modal.toggle, children: [
|
|
629
623
|
T,
|
|
630
|
-
|
|
631
|
-
] }), e[20] = c, e[21] = T, e[22] =
|
|
632
|
-
const
|
|
633
|
-
let
|
|
634
|
-
if (e[24] !== u || e[25] !==
|
|
635
|
-
let
|
|
636
|
-
e[27] !==
|
|
637
|
-
const W =
|
|
638
|
-
return /* @__PURE__ */
|
|
639
|
-
}, e[27] =
|
|
624
|
+
S
|
|
625
|
+
] }), e[20] = c, e[21] = T, e[22] = S, e[23] = p) : p = e[23];
|
|
626
|
+
const I = _?.value, D = _?.value;
|
|
627
|
+
let O;
|
|
628
|
+
if (e[24] !== u || e[25] !== h) {
|
|
629
|
+
let A;
|
|
630
|
+
e[27] !== h ? (A = ($) => {
|
|
631
|
+
const W = h[$.value];
|
|
632
|
+
return /* @__PURE__ */ o(We, { value: $.value, control: /* @__PURE__ */ o(je, {}), label: W }, $.value);
|
|
633
|
+
}, e[27] = h, e[28] = A) : A = e[28], O = u.map(A), e[24] = u, e[25] = h, e[26] = O;
|
|
640
634
|
} else
|
|
641
|
-
|
|
635
|
+
O = e[26];
|
|
642
636
|
let U;
|
|
643
|
-
e[29] !==
|
|
644
|
-
let L;
|
|
645
|
-
e[32] !== w || e[33] !== U ? (L = /* @__PURE__ */ l(Ne, { children: U }, w), e[32] = w, e[33] = U, e[34] = L) : L = e[34];
|
|
637
|
+
e[29] !== D || e[30] !== O ? (U = /* @__PURE__ */ o(Fe, { "aria-labelledby": "unit-value", defaultValue: D, name: "unit-value", sx: K.options.modal.optionsGroup, children: O }), e[29] = D, e[30] = O, e[31] = U) : U = e[31];
|
|
646
638
|
let P;
|
|
647
|
-
e[
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
639
|
+
e[32] !== I || e[33] !== U ? (P = /* @__PURE__ */ o(Ne, { children: U }, I), e[32] = I, e[33] = U, e[34] = P) : P = e[34];
|
|
640
|
+
let R;
|
|
641
|
+
e[35] !== p || e[36] !== P || e[37] !== C ? (R = /* @__PURE__ */ E(Ge, { sx: K.options.modal.content, children: [
|
|
642
|
+
C,
|
|
643
|
+
p,
|
|
644
|
+
P
|
|
645
|
+
] }), e[35] = p, e[36] = P, e[37] = C, e[38] = R) : R = e[38];
|
|
652
646
|
let V;
|
|
653
|
-
e[39] !==
|
|
654
|
-
let
|
|
655
|
-
return e[41] !==
|
|
656
|
-
|
|
657
|
-
|
|
647
|
+
e[39] !== M ? (V = /* @__PURE__ */ o(ze, { sx: K.options.modal.actions, children: /* @__PURE__ */ o(ye, { variant: "contained", type: "submit", children: M }) }), e[39] = M, e[40] = V) : V = e[40];
|
|
648
|
+
let Z;
|
|
649
|
+
return e[41] !== i || e[42] !== s || e[43] !== R || e[44] !== V || e[45] !== y || e[46] !== b ? (Z = /* @__PURE__ */ E(He, { open: s, component: Y, onClose: i, maxWidth: "xs", PaperProps: y, children: [
|
|
650
|
+
b,
|
|
651
|
+
R,
|
|
658
652
|
V
|
|
659
|
-
] }), e[41] =
|
|
653
|
+
] }), e[41] = i, e[42] = s, e[43] = R, e[44] = V, e[45] = y, e[46] = b, e[47] = Z) : Z = e[47], Z;
|
|
660
654
|
}
|
|
661
|
-
const
|
|
655
|
+
const Mt = {
|
|
662
656
|
enabled: "Show your current location",
|
|
663
657
|
disabled: "Location unavailable"
|
|
664
|
-
},
|
|
665
|
-
function
|
|
658
|
+
}, Tt = "geolocation";
|
|
659
|
+
function lo(t) {
|
|
666
660
|
const e = F(25), {
|
|
667
|
-
disabled:
|
|
668
|
-
labels:
|
|
661
|
+
disabled: s,
|
|
662
|
+
labels: l,
|
|
669
663
|
PaperProps: n,
|
|
670
664
|
TooltipProps: r,
|
|
671
|
-
watch:
|
|
665
|
+
watch: i,
|
|
672
666
|
onChange: a,
|
|
673
667
|
onError: c
|
|
674
|
-
} = t,
|
|
675
|
-
let
|
|
676
|
-
e[0] !== c ? (
|
|
668
|
+
} = t, m = Le(null), d = "geolocation" in navigator, [u, f] = ot(At, d);
|
|
669
|
+
let v, w;
|
|
670
|
+
e[0] !== c ? (v = () => (d && navigator.permissions.query({
|
|
677
671
|
name: "geolocation"
|
|
678
|
-
}).then((
|
|
679
|
-
f(
|
|
680
|
-
f(
|
|
672
|
+
}).then((D) => {
|
|
673
|
+
f(D.state === "granted" ? "granted" : "denied"), D.onchange = () => {
|
|
674
|
+
f(D.state === "granted" ? "granted" : "denied");
|
|
681
675
|
};
|
|
682
|
-
}).catch((
|
|
683
|
-
f(
|
|
676
|
+
}).catch((D) => {
|
|
677
|
+
f("denied"), c?.(D);
|
|
684
678
|
}), () => {
|
|
685
|
-
|
|
686
|
-
}),
|
|
687
|
-
let
|
|
688
|
-
e[3] !== a ? (
|
|
689
|
-
a(
|
|
690
|
-
}, e[3] = a, e[4] =
|
|
691
|
-
const
|
|
692
|
-
let
|
|
693
|
-
e[5] !== c ? (
|
|
694
|
-
f(
|
|
695
|
-
}, e[5] = c, e[6] =
|
|
696
|
-
const
|
|
697
|
-
let
|
|
698
|
-
e[7] !==
|
|
699
|
-
if (
|
|
700
|
-
|
|
679
|
+
m.current && navigator.geolocation.clearWatch(m.current);
|
|
680
|
+
}), w = [d, c], e[0] = c, e[1] = v, e[2] = w) : (v = e[1], w = e[2]), Pe(v, w);
|
|
681
|
+
let h;
|
|
682
|
+
e[3] !== a ? (h = (D) => {
|
|
683
|
+
a(D.coords);
|
|
684
|
+
}, e[3] = a, e[4] = h) : h = e[4];
|
|
685
|
+
const g = h;
|
|
686
|
+
let L;
|
|
687
|
+
e[5] !== c ? (L = (D) => {
|
|
688
|
+
f("denied"), c?.(D);
|
|
689
|
+
}, e[5] = c, e[6] = L) : L = e[6];
|
|
690
|
+
const M = L;
|
|
691
|
+
let _;
|
|
692
|
+
e[7] !== M || e[8] !== g || e[9] !== i ? (_ = () => {
|
|
693
|
+
if (m.current && navigator.geolocation.clearWatch(m.current), i) {
|
|
694
|
+
m.current = navigator.geolocation.watchPosition(g, M);
|
|
701
695
|
return;
|
|
702
696
|
}
|
|
703
|
-
navigator.geolocation.getCurrentPosition(
|
|
704
|
-
}, e[7] =
|
|
705
|
-
const
|
|
697
|
+
navigator.geolocation.getCurrentPosition(g, M);
|
|
698
|
+
}, e[7] = M, e[8] = g, e[9] = i, e[10] = _) : _ = e[10];
|
|
699
|
+
const y = _, k = (l?.tooltip ?? Mt)[u ? "enabled" : "disabled"], b = l?.ariaLabel ?? Tt, C = !d || s;
|
|
706
700
|
let T;
|
|
707
|
-
e[11] !== u ? (T = u ? /* @__PURE__ */
|
|
708
|
-
let
|
|
709
|
-
e[13] !==
|
|
710
|
-
let
|
|
711
|
-
e[18] !== r || e[19] !==
|
|
712
|
-
let
|
|
713
|
-
return e[22] !== n || e[23] !==
|
|
701
|
+
e[11] !== u ? (T = u ? /* @__PURE__ */ o(nt, {}) : /* @__PURE__ */ o(it, {}), e[11] = u, e[12] = T) : T = e[12];
|
|
702
|
+
let S;
|
|
703
|
+
e[13] !== y || e[14] !== b || e[15] !== C || e[16] !== T ? (S = /* @__PURE__ */ o(ie, { onClick: y, "aria-label": b, disabled: C, children: T }), e[13] = y, e[14] = b, e[15] = C, e[16] = T, e[17] = S) : S = e[17];
|
|
704
|
+
let p;
|
|
705
|
+
e[18] !== r || e[19] !== S || e[20] !== k ? (p = /* @__PURE__ */ o(fe, { arrow: !0, placement: "right", title: k, ...r, children: S }), e[18] = r, e[19] = S, e[20] = k, e[21] = p) : p = e[21];
|
|
706
|
+
let I;
|
|
707
|
+
return e[22] !== n || e[23] !== p ? (I = /* @__PURE__ */ o(Se, { ...n, children: p }), e[22] = n, e[23] = p, e[24] = I) : I = e[24], I;
|
|
714
708
|
}
|
|
715
|
-
|
|
709
|
+
function At(t, e) {
|
|
710
|
+
return e === "granted";
|
|
711
|
+
}
|
|
712
|
+
const Ce = {
|
|
716
713
|
zoom: {
|
|
717
714
|
position: "relative",
|
|
718
715
|
height: ({
|
|
@@ -744,180 +741,180 @@ const _e = {
|
|
|
744
741
|
position: "absolute"
|
|
745
742
|
}
|
|
746
743
|
};
|
|
747
|
-
function
|
|
744
|
+
function no(t) {
|
|
748
745
|
const e = F(40), {
|
|
749
|
-
zoom:
|
|
750
|
-
disabled:
|
|
746
|
+
zoom: s,
|
|
747
|
+
disabled: l,
|
|
751
748
|
direction: n,
|
|
752
749
|
reverse: r,
|
|
753
|
-
isLoading:
|
|
750
|
+
isLoading: i,
|
|
754
751
|
maxZoom: a,
|
|
755
752
|
minZoom: c,
|
|
756
|
-
PaperProps:
|
|
757
|
-
ResetViewProps:
|
|
753
|
+
PaperProps: m,
|
|
754
|
+
ResetViewProps: d,
|
|
758
755
|
showZoom: u,
|
|
759
756
|
onChange: f,
|
|
760
|
-
onReset:
|
|
761
|
-
} = t,
|
|
762
|
-
let S;
|
|
763
|
-
e[0] !== m ? (S = m === void 0 ? {
|
|
764
|
-
Icon: st
|
|
765
|
-
} : m, e[0] = m, e[1] = S) : S = e[1];
|
|
766
|
-
const A = S, _ = u === void 0 ? !0 : u;
|
|
767
|
-
let C;
|
|
768
|
-
e[2] !== p || e[3] !== f || e[4] !== i ? (C = () => {
|
|
769
|
-
const O = Math.min(p, i + 1);
|
|
770
|
-
f(O);
|
|
771
|
-
}, e[2] = p, e[3] = f, e[4] = i, e[5] = C) : C = e[5];
|
|
772
|
-
const D = C;
|
|
757
|
+
onReset: v
|
|
758
|
+
} = t, w = n === void 0 ? "vertical" : n, h = r === void 0 ? !1 : r, g = a === void 0 ? 24 : a, L = c === void 0 ? 0 : c;
|
|
773
759
|
let M;
|
|
774
|
-
e[
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
const h = M, T = Math.floor(i), y = v === "vertical" ? "horizontal" : "vertical";
|
|
779
|
-
let b = v === "vertical" ? "column" : "row";
|
|
780
|
-
k && (b = b + "-reverse");
|
|
781
|
-
let w;
|
|
782
|
-
e[10] !== b ? (w = {
|
|
783
|
-
..._e.paper,
|
|
784
|
-
flexDirection: b
|
|
785
|
-
}, e[10] = b, e[11] = w) : w = e[11];
|
|
760
|
+
e[0] !== d ? (M = d === void 0 ? {
|
|
761
|
+
Icon: st
|
|
762
|
+
} : d, e[0] = d, e[1] = M) : M = e[1];
|
|
763
|
+
const _ = M, y = u === void 0 ? !0 : u;
|
|
786
764
|
let x;
|
|
787
|
-
e[
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
765
|
+
e[2] !== g || e[3] !== f || e[4] !== s ? (x = () => {
|
|
766
|
+
const $ = Math.min(g, s + 1);
|
|
767
|
+
f($);
|
|
768
|
+
}, e[2] = g, e[3] = f, e[4] = s, e[5] = x) : x = e[5];
|
|
769
|
+
const k = x;
|
|
770
|
+
let b;
|
|
771
|
+
e[6] !== L || e[7] !== f || e[8] !== s ? (b = () => {
|
|
772
|
+
const $ = Math.max(L, s - 1);
|
|
773
|
+
f($);
|
|
774
|
+
}, e[6] = L, e[7] = f, e[8] = s, e[9] = b) : b = e[9];
|
|
775
|
+
const C = b, T = Math.floor(s), S = w === "vertical" ? "horizontal" : "vertical";
|
|
776
|
+
let p = w === "vertical" ? "column" : "row";
|
|
777
|
+
h && (p = p + "-reverse");
|
|
778
|
+
let I;
|
|
779
|
+
e[10] !== p ? (I = {
|
|
780
|
+
...Ce.paper,
|
|
781
|
+
flexDirection: p
|
|
782
|
+
}, e[10] = p, e[11] = I) : I = e[11];
|
|
783
|
+
let D;
|
|
784
|
+
e[12] !== _ || e[13] !== l || e[14] !== S || e[15] !== v ? (D = v && /* @__PURE__ */ E(J, { children: [
|
|
785
|
+
/* @__PURE__ */ o(ie, { onClick: v, "aria-label": "Reset action", disabled: l, children: /* @__PURE__ */ o(_.Icon, {}) }),
|
|
786
|
+
/* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 })
|
|
787
|
+
] }), e[12] = _, e[13] = l, e[14] = S, e[15] = v, e[16] = D) : D = e[16];
|
|
788
|
+
let O;
|
|
789
|
+
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ o(rt, {}), e[17] = O) : O = e[17];
|
|
793
790
|
let U;
|
|
794
|
-
e[18] !==
|
|
795
|
-
let L;
|
|
796
|
-
e[21] !== y ? (L = /* @__PURE__ */ l(fe, { orientation: y, flexItem: !0 }), e[21] = y, e[22] = L) : L = e[22];
|
|
791
|
+
e[18] !== l || e[19] !== k ? (U = /* @__PURE__ */ o(ie, { onClick: k, "aria-label": "Increase zoom", disabled: l, children: O }), e[18] = l, e[19] = k, e[20] = U) : U = e[20];
|
|
797
792
|
let P;
|
|
798
|
-
e[
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
793
|
+
e[21] !== S ? (P = /* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 }), e[21] = S, e[22] = P) : P = e[22];
|
|
794
|
+
let R;
|
|
795
|
+
e[23] !== T || e[24] !== S || e[25] !== i || e[26] !== y ? (R = y && /* @__PURE__ */ E(J, { children: [
|
|
796
|
+
/* @__PURE__ */ E(Y, { sx: Ce.zoom, children: [
|
|
797
|
+
/* @__PURE__ */ o(Q, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: T }),
|
|
798
|
+
i && /* @__PURE__ */ o(Ye, { sx: Ce.circularProgress, variant: "indeterminate", size: 24 })
|
|
802
799
|
] }),
|
|
803
|
-
/* @__PURE__ */
|
|
804
|
-
] }), e[23] = T, e[24] =
|
|
800
|
+
/* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 })
|
|
801
|
+
] }), e[23] = T, e[24] = S, e[25] = i, e[26] = y, e[27] = R) : R = e[27];
|
|
805
802
|
let V;
|
|
806
|
-
e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */
|
|
807
|
-
let
|
|
808
|
-
e[29] !==
|
|
809
|
-
let
|
|
810
|
-
return e[32] !==
|
|
811
|
-
|
|
803
|
+
e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ o(at, {}), e[28] = V) : V = e[28];
|
|
804
|
+
let Z;
|
|
805
|
+
e[29] !== C || e[30] !== l ? (Z = /* @__PURE__ */ o(ie, { onClick: C, "aria-label": "Decrease zoom", disabled: l, children: V }), e[29] = C, e[30] = l, e[31] = Z) : Z = e[31];
|
|
806
|
+
let A;
|
|
807
|
+
return e[32] !== m || e[33] !== I || e[34] !== D || e[35] !== U || e[36] !== P || e[37] !== R || e[38] !== Z ? (A = /* @__PURE__ */ E(Se, { sx: I, ...m, children: [
|
|
808
|
+
D,
|
|
812
809
|
U,
|
|
813
|
-
L,
|
|
814
810
|
P,
|
|
815
|
-
|
|
816
|
-
|
|
811
|
+
R,
|
|
812
|
+
Z
|
|
813
|
+
] }), e[32] = m, e[33] = I, e[34] = D, e[35] = U, e[36] = P, e[37] = R, e[38] = Z, e[39] = A) : A = e[39], A;
|
|
817
814
|
}
|
|
818
|
-
function
|
|
815
|
+
function kt(t) {
|
|
819
816
|
const e = F(4), {
|
|
820
|
-
length:
|
|
821
|
-
} = t,
|
|
817
|
+
length: s
|
|
818
|
+
} = t, l = s === void 0 ? 5 : s;
|
|
822
819
|
let n;
|
|
823
|
-
e[0] !==
|
|
820
|
+
e[0] !== l ? (n = new Array(l).fill(null).map(Dt), e[0] = l, e[1] = n) : n = e[1];
|
|
824
821
|
let r;
|
|
825
|
-
return e[2] !== n ? (r = /* @__PURE__ */
|
|
822
|
+
return e[2] !== n ? (r = /* @__PURE__ */ o(Y, { "aria-label": "List Data skeleton", children: n }), e[2] = n, e[3] = r) : r = e[3], r;
|
|
826
823
|
}
|
|
827
|
-
function
|
|
828
|
-
return /* @__PURE__ */
|
|
829
|
-
/* @__PURE__ */
|
|
830
|
-
/* @__PURE__ */
|
|
831
|
-
/* @__PURE__ */
|
|
824
|
+
function Dt(t, e) {
|
|
825
|
+
return /* @__PURE__ */ E(pe, { container: !0, spacing: 1, children: [
|
|
826
|
+
/* @__PURE__ */ E(pe, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
|
|
827
|
+
/* @__PURE__ */ o(_e, { width: Ot(e) ? 72 : 48, height: 20 }),
|
|
828
|
+
/* @__PURE__ */ o(_e, { width: 48, height: 8 })
|
|
832
829
|
] }),
|
|
833
|
-
/* @__PURE__ */
|
|
834
|
-
height:
|
|
835
|
-
marginTop:
|
|
836
|
-
marginBottom:
|
|
830
|
+
/* @__PURE__ */ o(_e, { sx: {
|
|
831
|
+
height: Pt,
|
|
832
|
+
marginTop: Lt,
|
|
833
|
+
marginBottom: It,
|
|
837
834
|
width: "100%"
|
|
838
835
|
} })
|
|
839
|
-
] }, e);
|
|
836
|
+
] }, `skeleton-${e}`);
|
|
840
837
|
}
|
|
841
|
-
function
|
|
838
|
+
function It(t) {
|
|
842
839
|
const {
|
|
843
840
|
spacing: e
|
|
844
841
|
} = t;
|
|
845
842
|
return e(1.75);
|
|
846
843
|
}
|
|
847
|
-
function
|
|
844
|
+
function Lt(t) {
|
|
848
845
|
const {
|
|
849
846
|
spacing: e
|
|
850
847
|
} = t;
|
|
851
848
|
return e(1.25);
|
|
852
849
|
}
|
|
853
|
-
function
|
|
850
|
+
function Pt(t) {
|
|
854
851
|
const {
|
|
855
852
|
spacing: e
|
|
856
853
|
} = t;
|
|
857
854
|
return e(0.5);
|
|
858
855
|
}
|
|
859
|
-
function
|
|
856
|
+
function Ot(t) {
|
|
860
857
|
return t % 2 === 1;
|
|
861
858
|
}
|
|
862
|
-
function
|
|
859
|
+
function Et(t) {
|
|
863
860
|
const e = F(13), {
|
|
864
|
-
title:
|
|
865
|
-
body:
|
|
861
|
+
title: s,
|
|
862
|
+
body: l,
|
|
866
863
|
severity: n
|
|
867
|
-
} = t, r =
|
|
864
|
+
} = t, r = s === void 0 ? "No data available" : s, i = l === 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." : l;
|
|
868
865
|
if (n) {
|
|
869
|
-
let
|
|
870
|
-
e[0] !==
|
|
866
|
+
let d;
|
|
867
|
+
e[0] !== i ? (d = /* @__PURE__ */ o(Ae, { children: i }), e[0] = i, e[1] = d) : d = e[1];
|
|
871
868
|
let u;
|
|
872
|
-
return e[2] !== n || e[3] !==
|
|
869
|
+
return e[2] !== n || e[3] !== d || e[4] !== r ? (u = /* @__PURE__ */ o(Xe, { title: r, severity: n, children: d }), e[2] = n, e[3] = d, e[4] = r, e[5] = u) : u = e[5], u;
|
|
873
870
|
}
|
|
874
871
|
let a;
|
|
875
|
-
e[6] !== r ? (a = r && /* @__PURE__ */
|
|
872
|
+
e[6] !== r ? (a = r && /* @__PURE__ */ o(Q, { variant: "body2", children: r }), e[6] = r, e[7] = a) : a = e[7];
|
|
876
873
|
let c;
|
|
877
|
-
e[8] !==
|
|
878
|
-
let
|
|
879
|
-
return e[10] !== a || e[11] !== c ? (
|
|
874
|
+
e[8] !== i ? (c = /* @__PURE__ */ o(Ae, { color: "textSecondary", children: i }), e[8] = i, e[9] = c) : c = e[9];
|
|
875
|
+
let m;
|
|
876
|
+
return e[10] !== a || e[11] !== c ? (m = /* @__PURE__ */ E(Y, { children: [
|
|
880
877
|
a,
|
|
881
878
|
c
|
|
882
|
-
] }), e[10] = a, e[11] = c, e[12] =
|
|
879
|
+
] }), e[10] = a, e[11] = c, e[12] = m) : m = e[12], m;
|
|
883
880
|
}
|
|
884
|
-
function
|
|
881
|
+
function Ae(t) {
|
|
885
882
|
const e = F(5), {
|
|
886
|
-
color:
|
|
887
|
-
children:
|
|
883
|
+
color: s,
|
|
884
|
+
children: l
|
|
888
885
|
} = t;
|
|
889
|
-
if (
|
|
890
|
-
const r =
|
|
891
|
-
let
|
|
892
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
886
|
+
if (l) {
|
|
887
|
+
const r = s ?? "inherit";
|
|
888
|
+
let i;
|
|
889
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
893
890
|
fontWeight: "normal"
|
|
894
|
-
}, e[0] =
|
|
891
|
+
}, e[0] = i) : i = e[0];
|
|
895
892
|
let a;
|
|
896
|
-
return e[1] !==
|
|
893
|
+
return e[1] !== l || e[2] !== r ? (a = /* @__PURE__ */ o(Y, { mt: 0.5, children: /* @__PURE__ */ o(Q, { component: "div", variant: "caption", color: r, style: i, children: l }) }), e[1] = l, e[2] = r, e[3] = a) : a = e[3], a;
|
|
897
894
|
}
|
|
898
895
|
let n;
|
|
899
|
-
return e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */
|
|
896
|
+
return e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ o(Y, { mt: -1 }), e[4] = n) : n = e[4], n;
|
|
900
897
|
}
|
|
901
|
-
function
|
|
898
|
+
function Rt(t) {
|
|
902
899
|
const e = F(2);
|
|
903
|
-
let
|
|
904
|
-
e[0] !== t ? (
|
|
905
|
-
const [
|
|
906
|
-
return t &&
|
|
900
|
+
let s;
|
|
901
|
+
e[0] !== t ? (s = () => t ? 1 : 0, e[0] = t, e[1] = s) : s = e[1];
|
|
902
|
+
const [l, n] = se(s);
|
|
903
|
+
return t && l === 0 && n(1), !t && l === 1 && n(2), l === 1;
|
|
907
904
|
}
|
|
908
|
-
const
|
|
905
|
+
const ke = {
|
|
909
906
|
overflow: "hidden",
|
|
910
907
|
textOverflow: "ellipsis",
|
|
911
908
|
whiteSpace: "nowrap"
|
|
912
|
-
},
|
|
909
|
+
}, me = {
|
|
913
910
|
label: {
|
|
914
911
|
"& .MuiListItemText-primary": {
|
|
915
|
-
...
|
|
912
|
+
...ke
|
|
916
913
|
}
|
|
917
914
|
},
|
|
918
915
|
value: {
|
|
919
916
|
"& .MuiListItemText-primary": {
|
|
920
|
-
...
|
|
917
|
+
...ke,
|
|
921
918
|
textAlign: "right"
|
|
922
919
|
}
|
|
923
920
|
},
|
|
@@ -943,75 +940,72 @@ const De = {
|
|
|
943
940
|
opacity: 0.5,
|
|
944
941
|
pointerEvents: "none"
|
|
945
942
|
}
|
|
946
|
-
},
|
|
943
|
+
}, $t = {
|
|
947
944
|
showMore: "Show More",
|
|
948
945
|
showLess: "Show Less"
|
|
949
|
-
};
|
|
950
|
-
function
|
|
951
|
-
const e = F(
|
|
952
|
-
data:
|
|
953
|
-
isLoading:
|
|
946
|
+
}, Bt = [];
|
|
947
|
+
function io(t) {
|
|
948
|
+
const e = F(32), {
|
|
949
|
+
data: s,
|
|
950
|
+
isLoading: l,
|
|
954
951
|
maxItems: n,
|
|
955
952
|
labels: r,
|
|
956
|
-
showDivider:
|
|
953
|
+
showDivider: i,
|
|
957
954
|
selectedItemId: a,
|
|
958
955
|
tooltipProps: c,
|
|
959
|
-
onExpand:
|
|
960
|
-
onItemClick:
|
|
961
|
-
} = t;
|
|
962
|
-
let u;
|
|
963
|
-
e[0] !== i ? (u = i === void 0 ? [] : i, e[0] = i, e[1] = u) : u = e[1];
|
|
964
|
-
const f = u, I = o === void 0 ? !1 : o, v = n === void 0 ? 5 : n, k = r === void 0 ? Pt : r, p = s === void 0 ? !0 : s, [g, S] = ne(!1), A = Lt(I);
|
|
956
|
+
onExpand: m,
|
|
957
|
+
onItemClick: d
|
|
958
|
+
} = t, u = s === void 0 ? Bt : s, f = l === void 0 ? !1 : l, v = n === void 0 ? 5 : n, w = r === void 0 ? $t : r, h = i === void 0 ? !0 : i, [g, L] = se(!1), M = Rt(f);
|
|
965
959
|
let _;
|
|
966
|
-
e[
|
|
967
|
-
const
|
|
968
|
-
let
|
|
969
|
-
e[
|
|
970
|
-
|
|
971
|
-
}, e[
|
|
972
|
-
const
|
|
973
|
-
if (
|
|
974
|
-
let
|
|
975
|
-
return e[
|
|
960
|
+
e[0] !== u || e[1] !== v || e[2] !== g ? (_ = g ? u : u.slice(0, v), e[0] = u, e[1] = v, e[2] = g, e[3] = _) : _ = e[3];
|
|
961
|
+
const y = _;
|
|
962
|
+
let x;
|
|
963
|
+
e[4] !== m || e[5] !== g ? (x = () => {
|
|
964
|
+
L(!g), m?.(g);
|
|
965
|
+
}, e[4] = m, e[5] = g, e[6] = x) : x = e[6];
|
|
966
|
+
const k = x;
|
|
967
|
+
if (M) {
|
|
968
|
+
let p;
|
|
969
|
+
return e[7] !== v ? (p = /* @__PURE__ */ o(kt, { length: v }), e[7] = v, e[8] = p) : p = e[8], p;
|
|
976
970
|
}
|
|
977
|
-
if (
|
|
978
|
-
let
|
|
979
|
-
return e[
|
|
971
|
+
if (y.length === 0) {
|
|
972
|
+
let p;
|
|
973
|
+
return e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ o(Et, {}), e[9] = p) : p = e[9], p;
|
|
980
974
|
}
|
|
981
|
-
let
|
|
982
|
-
if (e[
|
|
983
|
-
let
|
|
984
|
-
e[
|
|
975
|
+
let b;
|
|
976
|
+
if (e[10] !== y || e[11] !== d || e[12] !== a || e[13] !== h || e[14] !== c) {
|
|
977
|
+
let p;
|
|
978
|
+
e[16] !== d || e[17] !== a || e[18] !== h || e[19] !== c ? (p = (I) => /* @__PURE__ */ o(ct, { followCursor: !1, placement: "top", arrow: !0, title: I.tooltipTitle, enterDelay: 10, ...c, children: (D) => {
|
|
985
979
|
const {
|
|
986
|
-
ref:
|
|
987
|
-
} =
|
|
988
|
-
return /* @__PURE__ */
|
|
989
|
-
...
|
|
990
|
-
...
|
|
991
|
-
...a ===
|
|
992
|
-
...
|
|
980
|
+
ref: O
|
|
981
|
+
} = D;
|
|
982
|
+
return /* @__PURE__ */ o(qe, { ref: O, role: "listitem", sx: {
|
|
983
|
+
...h && me.showDivider,
|
|
984
|
+
...d && me.clickable,
|
|
985
|
+
...a === I.id && me.selected,
|
|
986
|
+
...I.disabled && me.disabled
|
|
993
987
|
}, onClick: () => {
|
|
994
|
-
|
|
995
|
-
}, children: /* @__PURE__ */
|
|
996
|
-
/* @__PURE__ */
|
|
997
|
-
/* @__PURE__ */
|
|
988
|
+
I.disabled || d?.(I);
|
|
989
|
+
}, children: /* @__PURE__ */ E(pe, { container: !0, alignItems: "center", children: [
|
|
990
|
+
/* @__PURE__ */ o(pe, { item: !0, xs: 8, children: /* @__PURE__ */ o(xe, { primary: I.label, sx: me.label }) }),
|
|
991
|
+
/* @__PURE__ */ o(pe, { item: !0, xs: 4, children: /* @__PURE__ */ o(xe, { primary: I.value, sx: me.value }) })
|
|
998
992
|
] }) });
|
|
999
|
-
} },
|
|
993
|
+
} }, I.id), e[16] = d, e[17] = a, e[18] = h, e[19] = c, e[20] = p) : p = e[20], b = y.map(p), e[10] = y, e[11] = d, e[12] = a, e[13] = h, e[14] = c, e[15] = b;
|
|
1000
994
|
} else
|
|
1001
|
-
|
|
995
|
+
b = e[15];
|
|
996
|
+
let C;
|
|
997
|
+
e[21] !== b ? (C = /* @__PURE__ */ o(Ke, { id: "expandable-list", role: "list", children: b }), e[21] = b, e[22] = C) : C = e[22];
|
|
1002
998
|
let T;
|
|
1003
|
-
e[23] !==
|
|
1004
|
-
let
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
y
|
|
1010
|
-
] }), e[31] = T, e[32] = y, e[33] = b) : b = e[33], b;
|
|
999
|
+
e[23] !== u.length || e[24] !== k || e[25] !== w || e[26] !== v || e[27] !== g ? (T = u.length > v && /* @__PURE__ */ o(Y, { my: 2, children: /* @__PURE__ */ o(ye, { onClick: k, variant: "text", color: "primary", "aria-expanded": g, "aria-controls": "expandable-list", children: g ? w.showLess : w.showMore }) }), e[23] = u.length, e[24] = k, e[25] = w, e[26] = v, e[27] = g, e[28] = T) : T = e[28];
|
|
1000
|
+
let S;
|
|
1001
|
+
return e[29] !== T || e[30] !== C ? (S = /* @__PURE__ */ E(J, { children: [
|
|
1002
|
+
C,
|
|
1003
|
+
T
|
|
1004
|
+
] }), e[29] = T, e[30] = C, e[31] = S) : S = e[31], S;
|
|
1011
1005
|
}
|
|
1012
|
-
const
|
|
1006
|
+
const Ut = 288, ae = {
|
|
1013
1007
|
root: {
|
|
1014
|
-
width:
|
|
1008
|
+
width: Ut,
|
|
1015
1009
|
overflow: "auto"
|
|
1016
1010
|
},
|
|
1017
1011
|
toggle: {
|
|
@@ -1110,7 +1104,7 @@ const Ot = 288, ce = {
|
|
|
1110
1104
|
}) => t.primary.main
|
|
1111
1105
|
}
|
|
1112
1106
|
}
|
|
1113
|
-
},
|
|
1107
|
+
}, Vt = {
|
|
1114
1108
|
toggle: {
|
|
1115
1109
|
title: "Toggle basemaps controls"
|
|
1116
1110
|
},
|
|
@@ -1121,224 +1115,222 @@ const Ot = 288, ce = {
|
|
|
1121
1115
|
}
|
|
1122
1116
|
}
|
|
1123
1117
|
};
|
|
1124
|
-
function
|
|
1118
|
+
function Zt(t) {
|
|
1125
1119
|
const e = F(6), {
|
|
1126
|
-
isMobile:
|
|
1127
|
-
labels:
|
|
1120
|
+
isMobile: s,
|
|
1121
|
+
labels: l,
|
|
1128
1122
|
onChangeCollapsed: n
|
|
1129
|
-
} = t, r =
|
|
1130
|
-
let
|
|
1131
|
-
e[0] !== r || e[1] !==
|
|
1132
|
-
/* @__PURE__ */
|
|
1133
|
-
/* @__PURE__ */
|
|
1134
|
-
] }), e[0] = r, e[1] =
|
|
1123
|
+
} = t, r = s === void 0 ? !1 : s;
|
|
1124
|
+
let i;
|
|
1125
|
+
e[0] !== r || e[1] !== l || e[2] !== n ? (i = r && /* @__PURE__ */ E(J, { children: [
|
|
1126
|
+
/* @__PURE__ */ o(Q, { variant: "caption", flexGrow: 1, children: l.title }),
|
|
1127
|
+
/* @__PURE__ */ o(fe, { title: l.actions.close, children: /* @__PURE__ */ o(ie, { size: "small", onClick: n, "aria-label": l.actions.close, children: /* @__PURE__ */ o(Oe, {}) }) })
|
|
1128
|
+
] }), e[0] = r, e[1] = l, e[2] = n, e[3] = i) : i = e[3];
|
|
1135
1129
|
let a;
|
|
1136
|
-
return e[4] !==
|
|
1130
|
+
return e[4] !== i ? (a = /* @__PURE__ */ o(Y, { sx: ae.header, children: i }), e[4] = i, e[5] = a) : a = e[5], a;
|
|
1137
1131
|
}
|
|
1138
|
-
function
|
|
1132
|
+
function Wt(t) {
|
|
1139
1133
|
const e = F(5), {
|
|
1140
|
-
title:
|
|
1141
|
-
children:
|
|
1134
|
+
title: s,
|
|
1135
|
+
children: l,
|
|
1142
1136
|
collapsed: n
|
|
1143
1137
|
} = t;
|
|
1144
1138
|
if (n === void 0 ? !1 : n)
|
|
1145
|
-
return
|
|
1146
|
-
let
|
|
1147
|
-
e[0] !==
|
|
1139
|
+
return l;
|
|
1140
|
+
let i;
|
|
1141
|
+
e[0] !== s ? (i = /* @__PURE__ */ o(Q, { variant: "caption", color: "textSecondary", sx: ae.groupWrapper.content, children: s }), e[0] = s, e[1] = i) : i = e[1];
|
|
1148
1142
|
let a;
|
|
1149
|
-
return e[2] !==
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
] }), e[2] =
|
|
1143
|
+
return e[2] !== l || e[3] !== i ? (a = /* @__PURE__ */ E(J, { children: [
|
|
1144
|
+
i,
|
|
1145
|
+
l
|
|
1146
|
+
] }), e[2] = l, e[3] = i, e[4] = a) : a = e[4], a;
|
|
1153
1147
|
}
|
|
1154
|
-
function
|
|
1148
|
+
function jt(t) {
|
|
1155
1149
|
const e = F(9), {
|
|
1156
|
-
values:
|
|
1157
|
-
selected:
|
|
1150
|
+
values: s,
|
|
1151
|
+
selected: l,
|
|
1158
1152
|
onChange: n
|
|
1159
1153
|
} = t;
|
|
1160
1154
|
let r;
|
|
1161
|
-
if (e[0] !== n || e[1] !==
|
|
1155
|
+
if (e[0] !== n || e[1] !== l || e[2] !== s) {
|
|
1162
1156
|
let a;
|
|
1163
|
-
e[4] !== n || e[5] !==
|
|
1164
|
-
const
|
|
1165
|
-
return /* @__PURE__ */
|
|
1166
|
-
/* @__PURE__ */
|
|
1167
|
-
/* @__PURE__ */
|
|
1168
|
-
...
|
|
1157
|
+
e[4] !== n || e[5] !== l ? (a = (c) => {
|
|
1158
|
+
const m = c.id === l;
|
|
1159
|
+
return /* @__PURE__ */ E(Y, { sx: ae.item.container, component: "button", "aria-label": c.label, onClick: () => n(c.id), children: [
|
|
1160
|
+
/* @__PURE__ */ o("img", { src: c.icon, "aria-label": c.label + " icon", "data-active": m }),
|
|
1161
|
+
/* @__PURE__ */ o(Q, { variant: "caption", sx: {
|
|
1162
|
+
...m && ae.item.selected
|
|
1169
1163
|
}, children: c.label })
|
|
1170
1164
|
] }, c.id);
|
|
1171
|
-
}, e[4] = n, e[5] =
|
|
1165
|
+
}, e[4] = n, e[5] = l, e[6] = a) : a = e[6], r = s.map(a), e[0] = n, e[1] = l, e[2] = s, e[3] = r;
|
|
1172
1166
|
} else
|
|
1173
1167
|
r = e[3];
|
|
1174
|
-
let
|
|
1175
|
-
return e[7] !== r ? (
|
|
1168
|
+
let i;
|
|
1169
|
+
return e[7] !== r ? (i = /* @__PURE__ */ o(Y, { sx: ae.group, children: r }), e[7] = r, e[8] = i) : i = e[8], i;
|
|
1176
1170
|
}
|
|
1177
|
-
function
|
|
1171
|
+
function Ft(t) {
|
|
1178
1172
|
const e = F(21), {
|
|
1179
|
-
ref:
|
|
1180
|
-
children:
|
|
1173
|
+
ref: s,
|
|
1174
|
+
children: l,
|
|
1181
1175
|
collapsed: n,
|
|
1182
1176
|
isMobile: r,
|
|
1183
|
-
position:
|
|
1177
|
+
position: i,
|
|
1184
1178
|
sx: a,
|
|
1185
1179
|
slotProps: c,
|
|
1186
|
-
onChangeCollapsed:
|
|
1180
|
+
onChangeCollapsed: m
|
|
1187
1181
|
} = t;
|
|
1188
1182
|
if (r === void 0 ? !1 : r) {
|
|
1189
|
-
const
|
|
1190
|
-
let
|
|
1191
|
-
return e[0] !==
|
|
1183
|
+
const y = !n;
|
|
1184
|
+
let x;
|
|
1185
|
+
return e[0] !== l || e[1] !== m || e[2] !== y ? (x = /* @__PURE__ */ o(Qe, { anchor: "bottom", open: y, onClose: m, children: l }), e[0] = l, e[1] = m, e[2] = y, e[3] = x) : x = e[3], x;
|
|
1192
1186
|
}
|
|
1193
1187
|
const u = !n;
|
|
1194
1188
|
let f;
|
|
1195
|
-
e[4] !==
|
|
1196
|
-
const
|
|
1197
|
-
let
|
|
1198
|
-
e[6] !==
|
|
1199
|
-
vertical:
|
|
1200
|
-
horizontal:
|
|
1201
|
-
}, e[6] =
|
|
1202
|
-
const
|
|
1203
|
-
let
|
|
1204
|
-
e[9] !==
|
|
1205
|
-
vertical:
|
|
1206
|
-
horizontal:
|
|
1207
|
-
}, e[9] =
|
|
1208
|
-
let
|
|
1209
|
-
return e[12] !==
|
|
1189
|
+
e[4] !== m ? (f = () => m(!0), e[4] = m, e[5] = f) : f = e[5];
|
|
1190
|
+
const v = i.startsWith("bottom") ? "bottom" : "top", w = i.endsWith("right") ? "left" : "right";
|
|
1191
|
+
let h;
|
|
1192
|
+
e[6] !== v || e[7] !== w ? (h = {
|
|
1193
|
+
vertical: v,
|
|
1194
|
+
horizontal: w
|
|
1195
|
+
}, e[6] = v, e[7] = w, e[8] = h) : h = e[8];
|
|
1196
|
+
const g = i.startsWith("bottom") ? "bottom" : "top", L = i.endsWith("right") ? "right" : "left";
|
|
1197
|
+
let M;
|
|
1198
|
+
e[9] !== g || e[10] !== L ? (M = {
|
|
1199
|
+
vertical: g,
|
|
1200
|
+
horizontal: L
|
|
1201
|
+
}, e[9] = g, e[10] = L, e[11] = M) : M = e[11];
|
|
1202
|
+
let _;
|
|
1203
|
+
return e[12] !== l || e[13] !== s || e[14] !== c || e[15] !== a || e[16] !== u || e[17] !== f || e[18] !== h || e[19] !== M ? (_ = /* @__PURE__ */ o(Je, { sx: a, anchorEl: s, open: u, onClose: f, anchorOrigin: h, transformOrigin: M, slotProps: c, children: l }), e[12] = l, e[13] = s, e[14] = c, e[15] = a, e[16] = u, e[17] = f, e[18] = h, e[19] = M, e[20] = _) : _ = e[20], _;
|
|
1210
1204
|
}
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1205
|
+
const Nt = [];
|
|
1206
|
+
function so(t) {
|
|
1207
|
+
const e = F(54), {
|
|
1208
|
+
options: s,
|
|
1209
|
+
labels: l,
|
|
1215
1210
|
position: n,
|
|
1216
1211
|
selected: r,
|
|
1217
|
-
onChange:
|
|
1212
|
+
onChange: i,
|
|
1218
1213
|
TooltipProps: a
|
|
1219
|
-
} = t;
|
|
1220
|
-
let c;
|
|
1221
|
-
e[0] !== i ? (c = i === void 0 ? [] : i, e[0] = i, e[1] = c) : c = e[1];
|
|
1222
|
-
const d = c, m = n === void 0 ? "bottom-right" : n, u = r === void 0 ? null : r, [f, I] = ne(null), [v, k] = ne(!1), p = Pe(null), [g, S] = ne(null), A = tt();
|
|
1214
|
+
} = t, c = s === void 0 ? Nt : s, m = n === void 0 ? "bottom-right" : n, d = r === void 0 ? null : r, [u, f] = se(null), [v, w] = se(!1), h = Le(null), [g, L] = se(null), M = et();
|
|
1223
1215
|
let _;
|
|
1224
|
-
e[
|
|
1225
|
-
const
|
|
1226
|
-
let D;
|
|
1227
|
-
e[4] !== o ? (D = o ?? {}, e[4] = o, e[5] = D) : D = e[5];
|
|
1228
|
-
let M;
|
|
1229
|
-
e[6] !== D ? (M = Me(Rt, D), e[6] = D, e[7] = M) : M = e[7];
|
|
1230
|
-
const h = M;
|
|
1231
|
-
let T;
|
|
1232
|
-
if (e[8] !== d || e[9] !== u) {
|
|
1233
|
-
let se;
|
|
1234
|
-
e[11] !== u ? (se = (be) => be.id === u, e[11] = u, e[12] = se) : se = e[12], T = d.find(se), e[8] = d, e[9] = u, e[10] = T;
|
|
1235
|
-
} else
|
|
1236
|
-
T = e[10];
|
|
1237
|
-
const y = T;
|
|
1238
|
-
let b;
|
|
1239
|
-
e[13] !== d ? (b = Object.groupBy(d, Vt), e[13] = d, e[14] = b) : b = e[14];
|
|
1240
|
-
const w = b;
|
|
1216
|
+
e[0] !== M.breakpoints ? (_ = M.breakpoints.down("sm"), e[0] = M.breakpoints, e[1] = _) : _ = e[1];
|
|
1217
|
+
const y = tt(_);
|
|
1241
1218
|
let x;
|
|
1242
|
-
e[
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1219
|
+
e[2] !== l ? (x = l ?? {}, e[2] = l, e[3] = x) : x = e[3];
|
|
1220
|
+
let k;
|
|
1221
|
+
e[4] !== x ? (k = we(Vt, x), e[4] = x, e[5] = k) : k = e[5];
|
|
1222
|
+
const b = k;
|
|
1223
|
+
let C;
|
|
1224
|
+
if (e[6] !== c || e[7] !== d) {
|
|
1225
|
+
let ne;
|
|
1226
|
+
e[9] !== d ? (ne = (ge) => ge.id === d, e[9] = d, e[10] = ne) : ne = e[10], C = c.find(ne), e[6] = c, e[7] = d, e[8] = C;
|
|
1227
|
+
} else
|
|
1228
|
+
C = e[8];
|
|
1229
|
+
const T = C;
|
|
1230
|
+
let S;
|
|
1231
|
+
e[11] !== c ? (S = Object.groupBy(c, Gt), e[11] = c, e[12] = S) : S = e[12];
|
|
1232
|
+
const p = S;
|
|
1233
|
+
let I;
|
|
1234
|
+
e[13] !== p ? (I = Object.keys(p), e[13] = p, e[14] = I) : I = e[14];
|
|
1235
|
+
const D = I.length;
|
|
1236
|
+
let O;
|
|
1237
|
+
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = () => {
|
|
1238
|
+
f(null), w(!1);
|
|
1239
|
+
}, e[15] = O) : O = e[15];
|
|
1240
|
+
const U = O;
|
|
1241
|
+
let P, R;
|
|
1242
|
+
e[16] !== g ? (P = () => {
|
|
1243
|
+
if (h.current && clearTimeout(h.current), !!g)
|
|
1244
|
+
return h.current = setTimeout(() => {
|
|
1245
|
+
U();
|
|
1254
1246
|
}, g), () => {
|
|
1255
|
-
|
|
1247
|
+
h.current && clearTimeout(h.current);
|
|
1256
1248
|
};
|
|
1257
|
-
},
|
|
1258
|
-
let
|
|
1259
|
-
e[
|
|
1260
|
-
|
|
1261
|
-
}, e[
|
|
1262
|
-
const
|
|
1263
|
-
let
|
|
1264
|
-
e[
|
|
1265
|
-
|
|
1266
|
-
}, e[
|
|
1267
|
-
const
|
|
1268
|
-
let
|
|
1269
|
-
e[
|
|
1270
|
-
|
|
1271
|
-
}, e[
|
|
1272
|
-
const
|
|
1249
|
+
}, R = [g], e[16] = g, e[17] = P, e[18] = R) : (P = e[17], R = e[18]), Pe(P, R);
|
|
1250
|
+
let V;
|
|
1251
|
+
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = () => {
|
|
1252
|
+
L(null);
|
|
1253
|
+
}, e[19] = V) : V = e[19];
|
|
1254
|
+
const Z = V;
|
|
1255
|
+
let A;
|
|
1256
|
+
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = () => {
|
|
1257
|
+
L(400);
|
|
1258
|
+
}, e[20] = A) : A = e[20];
|
|
1259
|
+
const $ = A;
|
|
1260
|
+
let W;
|
|
1261
|
+
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = (ne) => {
|
|
1262
|
+
f(ne.currentTarget), w(!0);
|
|
1263
|
+
}, e[21] = W) : W = e[21];
|
|
1264
|
+
const G = T?.icon, N = T?.label ?? "Basemap";
|
|
1265
|
+
let j;
|
|
1266
|
+
e[22] !== G || e[23] !== N ? (j = /* @__PURE__ */ o(ie, { sx: ae.toggle, onClick: W, children: /* @__PURE__ */ o("img", { src: G, alt: N }) }), e[22] = G, e[23] = N, e[24] = j) : j = e[24];
|
|
1273
1267
|
let z;
|
|
1274
|
-
e[
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
let X;
|
|
1279
|
-
e[31] !== H ? (X = {
|
|
1268
|
+
e[25] !== a || e[26] !== b.toggle.title || e[27] !== j ? (z = /* @__PURE__ */ o(fe, { title: b.toggle.title, placement: "right", ...a, children: j }), e[25] = a, e[26] = b.toggle.title, e[27] = j, e[28] = z) : z = e[28];
|
|
1269
|
+
const B = `translate3d(${m.endsWith("right") ? "-8px" : "8px"}, ${m.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
|
|
1270
|
+
let H;
|
|
1271
|
+
e[29] !== B ? (H = {
|
|
1280
1272
|
paper: {
|
|
1281
1273
|
sx: {
|
|
1282
|
-
...
|
|
1283
|
-
transform:
|
|
1274
|
+
...ae.root,
|
|
1275
|
+
transform: B
|
|
1284
1276
|
},
|
|
1285
|
-
onMouseOver:
|
|
1286
|
-
onMouseLeave:
|
|
1277
|
+
onMouseOver: Z,
|
|
1278
|
+
onMouseLeave: $
|
|
1287
1279
|
}
|
|
1288
|
-
}, e[
|
|
1289
|
-
const
|
|
1290
|
-
let
|
|
1291
|
-
e[
|
|
1280
|
+
}, e[29] = B, e[30] = H) : H = e[30];
|
|
1281
|
+
const ee = !v;
|
|
1282
|
+
let X;
|
|
1283
|
+
e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = () => U(), e[31] = X) : X = e[31];
|
|
1284
|
+
let te;
|
|
1285
|
+
e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = () => U(), e[32] = te) : te = e[32];
|
|
1286
|
+
let q;
|
|
1287
|
+
e[33] !== y || e[34] !== b.header ? (q = /* @__PURE__ */ o(Zt, { isMobile: y, labels: b.header, onChangeCollapsed: te }), e[33] = y, e[34] = b.header, e[35] = q) : q = e[35];
|
|
1292
1288
|
let le;
|
|
1293
|
-
e[
|
|
1294
|
-
let
|
|
1295
|
-
e[
|
|
1296
|
-
|
|
1297
|
-
|
|
1289
|
+
e[36] !== p ? (le = Object.entries(p), e[36] = p, e[37] = le) : le = e[37];
|
|
1290
|
+
let ce;
|
|
1291
|
+
e[38] !== D || e[39] !== b.header || e[40] !== i || e[41] !== d || e[42] !== le ? (ce = le.map((ne) => {
|
|
1292
|
+
const [ge, Ee] = ne;
|
|
1293
|
+
return /* @__PURE__ */ o(Wt, { title: ge + " " + b.header.title, collapsed: D < 2, children: /* @__PURE__ */ o(jt, { values: Ee, selected: d, onChange: (Re) => {
|
|
1294
|
+
U(), i(Re);
|
|
1295
|
+
} }) }, ge);
|
|
1296
|
+
}), e[38] = D, e[39] = b.header, e[40] = i, e[41] = d, e[42] = le, e[43] = ce) : ce = e[43];
|
|
1298
1297
|
let de;
|
|
1299
|
-
e[
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
e[46] !== C || e[47] !== m || e[48] !== X || e[49] !== te || e[50] !== K || e[51] !== de ? (me = /* @__PURE__ */ $(Ut, { ref: f, slotProps: X, collapsed: te, position: m, isMobile: C, onChangeCollapsed: J, children: [
|
|
1307
|
-
K,
|
|
1298
|
+
e[44] !== y || e[45] !== m || e[46] !== H || e[47] !== ee || e[48] !== q || e[49] !== ce ? (de = /* @__PURE__ */ E(Ft, { ref: u, slotProps: H, collapsed: ee, position: m, isMobile: y, onChangeCollapsed: X, children: [
|
|
1299
|
+
q,
|
|
1300
|
+
ce
|
|
1301
|
+
] }), e[44] = y, e[45] = m, e[46] = H, e[47] = ee, e[48] = q, e[49] = ce, e[50] = de) : de = e[50];
|
|
1302
|
+
let he;
|
|
1303
|
+
return e[51] !== z || e[52] !== de ? (he = /* @__PURE__ */ E(Se, { children: [
|
|
1304
|
+
z,
|
|
1308
1305
|
de
|
|
1309
|
-
] }), e[
|
|
1310
|
-
let ge;
|
|
1311
|
-
return e[53] !== B || e[54] !== me ? (ge = /* @__PURE__ */ $(Ce, { children: [
|
|
1312
|
-
B,
|
|
1313
|
-
me
|
|
1314
|
-
] }), e[53] = B, e[54] = me, e[55] = ge) : ge = e[55], ge;
|
|
1306
|
+
] }), e[51] = z, e[52] = de, e[53] = he) : he = e[53], he;
|
|
1315
1307
|
}
|
|
1316
|
-
function
|
|
1308
|
+
function Gt(t) {
|
|
1317
1309
|
return t.group ?? "default";
|
|
1318
1310
|
}
|
|
1319
1311
|
export {
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1312
|
+
vt as AreaIcon,
|
|
1313
|
+
so as BasemapsUI,
|
|
1314
|
+
bt as BufferIcon,
|
|
1315
|
+
co as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
|
|
1324
1316
|
oe as DEFAULT_MEASUREMENT_TOOLS_LABELS,
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1317
|
+
xt as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
|
|
1318
|
+
yt as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
|
|
1319
|
+
mo as DrawCircleIcon,
|
|
1320
|
+
uo as DrawLassoIcon,
|
|
1321
|
+
po as DrawPolygonIcon,
|
|
1322
|
+
fo as DrawSquareIcon,
|
|
1323
|
+
lo as GeolocationControls,
|
|
1324
|
+
re as LASSO_TOOLS_LABELS,
|
|
1325
|
+
to as LassoToolsInlineUI,
|
|
1326
|
+
ho as LassoToolsUI,
|
|
1327
|
+
io as ListDataUI,
|
|
1328
|
+
oo as MeasurementToolsUI,
|
|
1329
|
+
gt as RulerIcon,
|
|
1330
|
+
go as SelectToolIcon,
|
|
1339
1331
|
ct as SmartTooltip,
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1332
|
+
fe as Tooltip,
|
|
1333
|
+
no as ZoomControlsUI,
|
|
1334
|
+
vo as setTooltipEnterDelay
|
|
1343
1335
|
};
|
|
1344
1336
|
//# sourceMappingURL=components.js.map
|