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