@carto/ps-react-ui 4.2.0 → 4.2.3

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