@carto/ps-react-ui 4.1.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { jsx as i, jsxs as D, Fragment as j } from "react/jsx-runtime";
1
+ import { jsx as l, jsxs as O, Fragment as j } from "react/jsx-runtime";
2
2
  import { c as R } from "react/compiler-runtime";
3
- import { Chip as Ke, Tooltip as he, Paper as be, Divider as se, Box as W, IconButton as ae, Menu as Ze, MenuItem as ge, ListItemIcon as Ue, SvgIcon as Oe, ListItemText as ve, ToggleButton as ye, Typography as F, ToggleButtonGroup as Ve, Button as Ce, alpha as Ye, Dialog as Qe, DialogTitle as Je, DialogContent as et, FormControl as tt, RadioGroup as ot, FormControlLabel as nt, Radio as it, DialogActions as lt, CircularProgress as rt, Grid as pe, Skeleton as _e, Alert as ct, ListItem as st, List as at, Drawer as dt, Popover as ut, useTheme as ht, useMediaQuery as ft } from "@mui/material";
4
- import { ArrowDropDown as Ge, MoreVertOutlined as mt, Close as We, MyLocationOutlined as pt, LocationDisabledOutlined as gt, CropFreeOutlined as vt, AddOutlined as yt, RemoveOutlined as bt } from "@mui/icons-material";
5
- import { useMemo as Le, useState as ie, useRef as ze, useEffect as Ie } from "react";
6
- const Q = {
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 = {
7
7
  container: {
8
8
  display: "flex",
9
9
  flexDirection: "row",
@@ -167,40 +167,40 @@ const Q = {
167
167
  }
168
168
  }
169
169
  };
170
- function wt(t) {
170
+ function Ct(t) {
171
171
  const e = R(3);
172
172
  let r;
173
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ i("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];
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
174
  let o;
175
- return e[1] !== t ? (o = /* @__PURE__ */ i("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;
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
176
  }
177
- function xt(t) {
177
+ function Tt(t) {
178
178
  const e = R(3);
179
179
  let r;
180
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ i("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];
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
181
  let o;
182
- return e[1] !== t ? (o = /* @__PURE__ */ i("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;
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
183
  }
184
- function Mt(t) {
184
+ function St(t) {
185
185
  const e = R(3);
186
186
  let r;
187
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ i("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];
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
188
  let o;
189
- return e[1] !== t ? (o = /* @__PURE__ */ i("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;
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
190
  }
191
- function Ct(t) {
191
+ function _t(t) {
192
192
  const e = R(3);
193
193
  let r;
194
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ i("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];
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
195
  let o;
196
- return e[1] !== t ? (o = /* @__PURE__ */ i("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;
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
197
  }
198
- function St(t) {
198
+ function At(t) {
199
199
  const e = R(3);
200
200
  let r;
201
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ i("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];
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
202
  let o;
203
- return e[1] !== t ? (o = /* @__PURE__ */ i("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;
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
204
  }
205
205
  const z = {
206
206
  action: {
@@ -238,268 +238,285 @@ const z = {
238
238
  },
239
239
  deleteAll: "Remove all"
240
240
  }
241
- }, mo = {
241
+ }, yo = {
242
242
  polygon: {
243
- icon: wt
243
+ icon: Ct
244
244
  },
245
245
  rectangle: {
246
- icon: xt
246
+ icon: Tt
247
247
  },
248
248
  circle: {
249
- icon: Mt
249
+ icon: St
250
250
  },
251
251
  lasso: {
252
- icon: Ct
252
+ icon: _t
253
253
  },
254
254
  edit: {
255
- icon: St
255
+ icon: At
256
256
  }
257
257
  };
258
- function Tt(t) {
258
+ function Dt(t) {
259
259
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
260
260
  }
261
- var Ae, Be;
262
- function _t() {
263
- if (Be) return Ae;
264
- Be = 1;
265
- var t = function(f) {
266
- return e(f) && !r(f);
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
267
  };
268
268
  function e(d) {
269
269
  return !!d && typeof d == "object";
270
270
  }
271
271
  function r(d) {
272
- var f = Object.prototype.toString.call(d);
273
- return f === "[object RegExp]" || f === "[object Date]" || s(d);
272
+ var m = Object.prototype.toString.call(d);
273
+ return m === "[object RegExp]" || m === "[object Date]" || c(d);
274
274
  }
275
- var o = typeof Symbol == "function" && Symbol.for, l = o ? Symbol.for("react.element") : 60103;
276
- function s(d) {
277
- return d.$$typeof === l;
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
278
  }
279
- function n(d) {
279
+ function i(d) {
280
280
  return Array.isArray(d) ? [] : {};
281
281
  }
282
- function c(d, f) {
283
- return f.clone !== !1 && f.isMergeableObject(d) ? v(n(d), d, f) : d;
282
+ function s(d, m) {
283
+ return m.clone !== !1 && m.isMergeableObject(d) ? g(i(d), d, m) : d;
284
284
  }
285
- function a(d, f, g) {
286
- return d.concat(f).map(function(M) {
287
- return c(M, g);
285
+ function a(d, m, v) {
286
+ return d.concat(m).map(function(x) {
287
+ return s(x, v);
288
288
  });
289
289
  }
290
- function h(d, f) {
291
- if (!f.customMerge)
292
- return v;
293
- var g = f.customMerge(d);
294
- return typeof g == "function" ? g : v;
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
295
  }
296
- function u(d) {
297
- return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(d).filter(function(f) {
298
- return Object.propertyIsEnumerable.call(d, f);
296
+ function f(d) {
297
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(d).filter(function(m) {
298
+ return Object.propertyIsEnumerable.call(d, m);
299
299
  }) : [];
300
300
  }
301
- function m(d) {
302
- return Object.keys(d).concat(u(d));
301
+ function h(d) {
302
+ return Object.keys(d).concat(f(d));
303
303
  }
304
- function p(d, f) {
304
+ function p(d, m) {
305
305
  try {
306
- return f in d;
306
+ return m in d;
307
307
  } catch {
308
308
  return !1;
309
309
  }
310
310
  }
311
- function b(d, f) {
312
- return p(d, f) && !(Object.hasOwnProperty.call(d, f) && Object.propertyIsEnumerable.call(d, f));
311
+ function y(d, m) {
312
+ return p(d, m) && !(Object.hasOwnProperty.call(d, m) && Object.propertyIsEnumerable.call(d, m));
313
313
  }
314
- function w(d, f, g) {
315
- var M = {};
316
- return g.isMergeableObject(d) && m(d).forEach(function(y) {
317
- M[y] = c(d[y], g);
318
- }), m(f).forEach(function(y) {
319
- b(d, y) || (p(d, y) && g.isMergeableObject(f[y]) ? M[y] = h(y, g)(d[y], f[y], g) : M[y] = c(f[y], g));
320
- }), M;
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
321
  }
322
- function v(d, f, g) {
323
- g = g || {}, g.arrayMerge = g.arrayMerge || a, g.isMergeableObject = g.isMergeableObject || t, g.cloneUnlessOtherwiseSpecified = c;
324
- var M = Array.isArray(f), y = Array.isArray(d), I = M === y;
325
- return I ? M ? g.arrayMerge(d, f, g) : w(d, f, g) : c(f, g);
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
326
  }
327
- v.all = function(f, g) {
328
- if (!Array.isArray(f))
327
+ g.all = function(m, v) {
328
+ if (!Array.isArray(m))
329
329
  throw new Error("first argument should be an array");
330
- return f.reduce(function(M, y) {
331
- return v(M, y, g);
330
+ return m.reduce(function(x, w) {
331
+ return g(x, w, v);
332
332
  }, {});
333
333
  };
334
- var C = v;
334
+ var C = g;
335
335
  return Ae = C, Ae;
336
336
  }
337
- var At = _t();
338
- const Se = /* @__PURE__ */ Tt(At);
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
+ }
339
356
  function Fe(t) {
340
357
  var d;
341
358
  const e = R(18), {
342
359
  chipProps: r,
343
360
  value: o,
344
- labels: l,
345
- onChipToggle: s,
346
- onDelete: n
347
- } = t, c = o.visible ? "active" : "inactive", a = ((d = l == null ? void 0 : l.tooltip) == null ? void 0 : d[c]) ?? z.chip.tooltip[c], h = r == null ? void 0 : r.TooltipProps;
348
- let u;
349
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {
350
- ...Q.chip.chip
351
- }, e[0] = u) : u = e[0];
352
- const m = o.visible ? "secondary" : "default";
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 = {
367
+ ...J.chip.chip
368
+ }, e[0] = f) : f = e[0];
369
+ const h = o.visible ? "secondary" : "default";
353
370
  let p;
354
- e[1] !== n || e[2] !== o.id ? (p = () => n(o.id), e[1] = n, e[2] = o.id, e[3] = p) : p = e[3];
355
- let b;
356
- e[4] !== s || e[5] !== o.id || e[6] !== o.visible ? (b = () => s(o.id, !o.visible), e[4] = s, e[5] = o.id, e[6] = o.visible, e[7] = b) : b = e[7];
357
- const w = r == null ? void 0 : r.ChipsProps;
358
- let v;
359
- e[8] !== m || e[9] !== p || e[10] !== b || e[11] !== w || e[12] !== o.label ? (v = /* @__PURE__ */ i(Ke, { sx: u, color: m, size: "small", onDelete: p, label: o.label, onClick: b, ...w }), e[8] = m, e[9] = p, e[10] = b, e[11] = w, e[12] = o.label, e[13] = v) : v = e[13];
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];
360
377
  let C;
361
- return e[14] !== a || e[15] !== h || e[16] !== v ? (C = /* @__PURE__ */ i(he, { title: a, placement: "bottom", ...h, children: v }), e[14] = a, e[15] = h, e[16] = v, e[17] = C) : C = e[17], 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;
362
379
  }
363
- function po({
380
+ function wo({
364
381
  enabled: t,
365
382
  values: e = [],
366
383
  actionProps: r,
367
384
  chipProps: o,
368
- labels: l,
369
- modes: s,
370
- modesMapping: n,
371
- modeSelected: c,
385
+ labels: n,
386
+ modes: c,
387
+ modesMapping: i,
388
+ modeSelected: s,
372
389
  PaperProps: {
373
390
  sx: a,
374
- ...h
391
+ ...u
375
392
  } = {},
376
- onActionToggle: u,
377
- onChipToggle: m,
393
+ onActionToggle: f,
394
+ onChipToggle: h,
378
395
  onDelete: p,
379
- onChangeMode: b,
380
- onAllChipToggle: w,
381
- onAllDelete: v
396
+ onChangeMode: y,
397
+ onAllChipToggle: b,
398
+ onAllDelete: g
382
399
  }) {
383
- const C = Le(() => Se(s, n), [s, n]), {
400
+ const C = Le(() => Se(c, i), [c, i]), {
384
401
  edit: d,
385
- ...f
386
- } = C, g = (S) => (u(!1), p(S)), M = (S) => u(S), y = (S) => b == null ? void 0 : b(S), A = (c ?? "") in s ? c : Object.keys(C)[0], x = C[A], _ = Object.values(f);
387
- return /* @__PURE__ */ D(be, { sx: {
388
- ...Q.container,
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: {
405
+ ...J.container,
389
406
  ...a
390
- }, ...h, children: [
391
- /* @__PURE__ */ i(Dt, { actionProps: r, labels: l == null ? void 0 : l.action, enabled: t, onActionToggle: M, children: (x == null ? void 0 : x.icon) && /* @__PURE__ */ i(x.icon, {}) }),
392
- /* @__PURE__ */ i(Ne, { children: (S) => /* @__PURE__ */ D(j, { children: [
393
- /* @__PURE__ */ i(Ot, { data: _, labels: l == null ? void 0 : l.options, children: /* @__PURE__ */ i(Ee, { ...S, labels: l == null ? void 0 : l.options, data: _, modeSelected: A, onChangeMode: y }) }),
394
- !!d && /* @__PURE__ */ D(j, { children: [
395
- /* @__PURE__ */ i(se, {}),
396
- /* @__PURE__ */ i(Ee, { ...S, labels: l == null ? void 0 : l.options, data: [{
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: [{
397
414
  ...d,
398
415
  disabled: !e.length
399
- }], modeSelected: A, onChangeMode: y })
416
+ }], modeSelected: D, onChangeMode: w })
400
417
  ] })
401
418
  ] }) }),
402
- !!e.length && /* @__PURE__ */ i(W, { sx: Q.chip.container, children: e.map((S) => /* @__PURE__ */ i(Fe, { value: S, labels: l == null ? void 0 : l.chip, chipProps: o, onDelete: g, onChipToggle: m }, S.id)) }),
403
- /* @__PURE__ */ i(Lt, { values: e, labels: l == null ? void 0 : l.actions, onAllChipToggle: w, onAllDelete: v })
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 })
404
421
  ] });
405
422
  }
406
- function Dt(t) {
407
- var b;
423
+ function It(t) {
424
+ var y;
408
425
  const e = R(12), {
409
426
  actionProps: r,
410
427
  labels: o,
411
- enabled: l,
412
- children: s,
413
- onActionToggle: n
414
- } = t, c = l ? "active" : "inactive", a = ((b = o == null ? void 0 : o.tooltip) == null ? void 0 : b[c]) ?? z.action.tooltip[c], h = r == null ? void 0 : r.TooltipProps;
415
- let u;
416
- e[0] !== l || e[1] !== n ? (u = () => n(!l), e[0] = l, e[1] = n, e[2] = u) : u = e[2];
417
- let m;
418
- e[3] !== a || e[4] !== s || e[5] !== l || e[6] !== u ? (m = /* @__PURE__ */ i(ye, { value: "toggle", sx: Q.actions.icon, onClick: u, "aria-label": a, selected: l, children: s }), e[3] = a, e[4] = s, e[5] = l, e[6] = u, e[7] = m) : m = e[7];
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];
434
+ 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];
419
436
  let p;
420
- return e[8] !== a || e[9] !== h || e[10] !== m ? (p = /* @__PURE__ */ i(he, { title: a, placement: "right", ...h, children: m }), e[8] = a, e[9] = h, e[10] = m, e[11] = p) : p = e[11], 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;
421
438
  }
422
- function Ne({
439
+ function He({
423
440
  TriggerProps: {
424
- Icon: t = /* @__PURE__ */ i(Ge, {}),
441
+ Icon: t = /* @__PURE__ */ l(We, {}),
425
442
  sx: e
426
443
  } = {},
427
444
  MenuProps: r,
428
445
  children: o
429
446
  }) {
430
- const [l, s] = ie(null), n = !!l, c = (h) => {
431
- s(h.currentTarget);
447
+ const [n, c] = oe(null), i = !!n, s = (u) => {
448
+ c(u.currentTarget);
432
449
  }, a = () => {
433
- s(null);
450
+ c(null);
434
451
  };
435
- return /* @__PURE__ */ D(j, { children: [
436
- /* @__PURE__ */ i(ae, { sx: {
437
- ...Q.options.icon,
452
+ return /* @__PURE__ */ O(j, { children: [
453
+ /* @__PURE__ */ l(se, { sx: {
454
+ ...J.options.icon,
438
455
  ...e
439
- }, onClick: c, children: t }),
440
- /* @__PURE__ */ i(Ze, { id: "lasso-menu", anchorEl: l, open: n, onClose: a, MenuListProps: {
456
+ }, onClick: s, children: t }),
457
+ /* @__PURE__ */ l(Ue, { id: "lasso-menu", anchorEl: n, open: i, onClose: a, MenuListProps: {
441
458
  "aria-labelledby": "lasso-button",
442
- sx: Q.options.menu
443
- }, ...r, children: /* @__PURE__ */ i("div", { children: o({
459
+ sx: J.options.menu
460
+ }, ...r, children: /* @__PURE__ */ l("div", { children: o({
444
461
  onClose: a
445
462
  }) }) })
446
463
  ] });
447
464
  }
448
- function Ot(t) {
465
+ function Rt(t) {
449
466
  var a;
450
467
  const e = R(5), {
451
468
  data: r,
452
469
  labels: o,
453
- children: l
470
+ children: n
454
471
  } = t;
455
472
  if (r.length <= 1)
456
473
  return null;
457
- const s = ((a = o == null ? void 0 : o.mode) == null ? void 0 : a.title) ?? z.options.mode.title;
458
- let n;
459
- e[0] !== s ? (n = /* @__PURE__ */ i(F, { variant: "subtitle2", color: "text.secondary", sx: Q.options.title, children: s }), e[0] = s, e[1] = n) : n = e[1];
460
- let c;
461
- return e[2] !== l || e[3] !== n ? (c = /* @__PURE__ */ D(j, { children: [
462
- n,
463
- l
464
- ] }), e[2] = l, e[3] = n, e[4] = c) : c = e[4], c;
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];
477
+ 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;
465
482
  }
466
- function Ee({
483
+ function $e({
467
484
  data: t,
468
485
  modeSelected: e,
469
486
  labels: r,
470
487
  onChangeMode: o,
471
- onClose: l
488
+ onClose: n
472
489
  }) {
473
- const s = (n, c) => {
474
- n.preventDefault(), o == null || o(c), l();
490
+ const c = (i, s) => {
491
+ i.preventDefault(), o == null || o(s), n();
475
492
  };
476
- return t.map((n) => {
477
- var h;
478
- const a = (((h = r == null ? void 0 : r.mode) == null ? void 0 : h.options) ?? z.options.mode.options)[n.value];
479
- return /* @__PURE__ */ D(ge, { disabled: !!n.disabled, onClick: (u) => s(u, n.value), selected: n.value === e, children: [
480
- /* @__PURE__ */ i(Ue, { sx: Q.options.icons, children: /* @__PURE__ */ i(Oe, { children: /* @__PURE__ */ i(n.icon, {}) }) }),
481
- /* @__PURE__ */ i(ve, { children: a })
482
- ] }, n.value);
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);
483
500
  });
484
501
  }
485
- function Lt(t) {
486
- var b, w;
502
+ function kt(t) {
503
+ var y, b;
487
504
  const e = R(8), {
488
505
  values: r,
489
506
  labels: o,
490
- onAllChipToggle: l,
491
- onAllDelete: s
507
+ onAllChipToggle: n,
508
+ onAllDelete: c
492
509
  } = t;
493
510
  if (r.length <= 1)
494
511
  return null;
495
- const c = r.some(It) ? ((b = o == null ? void 0 : o.toggleAll) == null ? void 0 : b.active) ?? z.actions.toggleAll.active : ((w = o == null ? void 0 : o.toggleAll) == null ? void 0 : w.inactive) ?? z.actions.toggleAll.inactive, a = (o == null ? void 0 : o.deleteAll) ?? z.actions.deleteAll;
496
- let h;
497
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ i(se, { orientation: "vertical", flexItem: !0 }), e[0] = h) : h = e[0];
498
- let u, m;
499
- e[1] === Symbol.for("react.memo_cache_sentinel") ? (u = {
500
- Icon: /* @__PURE__ */ i(mt, {}),
501
- sx: Q.options.more
502
- }, m = {
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;
513
+ 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, {}),
518
+ sx: J.options.more
519
+ }, h = {
503
520
  anchorOrigin: {
504
521
  vertical: "bottom",
505
522
  horizontal: "right"
@@ -508,167 +525,167 @@ function Lt(t) {
508
525
  vertical: "top",
509
526
  horizontal: "right"
510
527
  }
511
- }, e[1] = u, e[2] = m) : (u = e[1], m = e[2]);
528
+ }, e[1] = f, e[2] = h) : (f = e[1], h = e[2]);
512
529
  let p;
513
- return e[3] !== a || e[4] !== l || e[5] !== s || e[6] !== c ? (p = /* @__PURE__ */ D(j, { children: [
514
- h,
515
- /* @__PURE__ */ i(Ne, { TriggerProps: u, MenuProps: m, children: (v) => /* @__PURE__ */ D(j, { children: [
516
- /* @__PURE__ */ i(ge, { color: "inherit", onClick: () => {
517
- l(), v.onClose();
518
- }, children: c }),
519
- /* @__PURE__ */ i(se, {}),
520
- /* @__PURE__ */ i(ge, { color: "error", onClick: () => {
521
- s(), v.onClose();
522
- }, children: /* @__PURE__ */ i(F, { variant: "body2", color: "error", children: a }) })
530
+ return e[3] !== a || e[4] !== n || e[5] !== c || e[6] !== s ? (p = /* @__PURE__ */ O(j, { children: [
531
+ 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();
535
+ }, 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 }) })
523
540
  ] }) })
524
- ] }), e[3] = a, e[4] = l, e[5] = s, e[6] = c, e[7] = p) : p = e[7], p;
541
+ ] }), e[3] = a, e[4] = n, e[5] = c, e[6] = s, e[7] = p) : p = e[7], p;
525
542
  }
526
- function It(t) {
543
+ function Bt(t) {
527
544
  return t.visible;
528
545
  }
529
- function go({
546
+ function xo({
530
547
  enabled: t,
531
548
  values: e = [],
532
549
  chipProps: r,
533
550
  labels: o,
534
- modes: l,
535
- modesMapping: s,
536
- modeSelected: n,
551
+ modes: n,
552
+ modesMapping: c,
553
+ modeSelected: i,
537
554
  BoxProps: {
538
- sx: c,
555
+ sx: s,
539
556
  ...a
540
557
  } = {},
541
- onChipToggle: h,
542
- onDelete: u,
543
- onChangeMode: m,
558
+ onChipToggle: u,
559
+ onDelete: f,
560
+ onChangeMode: h,
544
561
  onAllChipToggle: p,
545
- onAllDelete: b
562
+ onAllDelete: y
546
563
  }) {
547
- const w = Le(() => Se(l, s), [l, s]), {
548
- edit: v,
564
+ const b = Le(() => Se(n, c), [n, c]), {
565
+ edit: g,
549
566
  ...C
550
- } = w, d = (A) => u(A), f = (A, x) => {
551
- A.preventDefault(), m == null || m(x);
552
- }, M = (n ?? "") in l ? n : Object.keys(w)[0], y = t ? w[M] : null, I = Object.values(C);
553
- return /* @__PURE__ */ D(W, { sx: {
554
- ...Q.container,
555
- ...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: {
571
+ ...J.container,
572
+ ...s
556
573
  }, ...a, className: "inline", children: [
557
- /* @__PURE__ */ i(Rt, { data: I, labels: o == null ? void 0 : o.options, children: /* @__PURE__ */ D(Ve, { value: y == null ? void 0 : y.value, exclusive: !0, className: "inline", sx: Q.options.menu, onChange: f, children: [
558
- /* @__PURE__ */ i($e, { labels: o == null ? void 0 : o.options, data: I }),
559
- !!v && /* @__PURE__ */ D(j, { children: [
560
- /* @__PURE__ */ i(se, { orientation: "vertical" }),
561
- /* @__PURE__ */ i($e, { labels: o == null ? void 0 : o.options, data: [{
562
- ...v,
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,
563
580
  disabled: !e.length
564
581
  }] })
565
582
  ] })
566
583
  ] }) }),
567
- /* @__PURE__ */ i(se, { flexItem: !0 }),
568
- /* @__PURE__ */ i(kt, { hasValues: !!e.length, labels: o == null ? void 0 : o.noData }),
569
- !!e.length && /* @__PURE__ */ i(W, { sx: Q.chip.container, className: "inline", children: e.map((A) => /* @__PURE__ */ i(Fe, { value: A, labels: o == null ? void 0 : o.chip, chipProps: r, onDelete: d, onChipToggle: h }, A.id)) }),
570
- /* @__PURE__ */ i(Bt, { values: e, labels: o == null ? void 0 : o.actions, onAllChipToggle: p, onAllDelete: b })
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 })
571
588
  ] });
572
589
  }
573
- function Rt(t) {
590
+ function Et(t) {
574
591
  var a;
575
592
  const e = R(5), {
576
593
  data: r,
577
594
  labels: o,
578
- children: l
595
+ children: n
579
596
  } = t;
580
597
  if (r.length <= 1)
581
598
  return null;
582
- const s = ((a = o == null ? void 0 : o.mode) == null ? void 0 : a.title) ?? z.options.mode.title;
583
- let n;
584
- e[0] !== s ? (n = /* @__PURE__ */ i(F, { variant: "subtitle2", color: "text.secondary", sx: Q.options.title, className: "inline", children: s }), e[0] = s, e[1] = n) : n = e[1];
585
- let c;
586
- return e[2] !== l || e[3] !== n ? (c = /* @__PURE__ */ D(j, { children: [
587
- n,
588
- l
589
- ] }), e[2] = l, e[3] = n, e[4] = c) : c = e[4], c;
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];
602
+ 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;
590
607
  }
591
- function $e({
608
+ function Pe({
592
609
  data: t,
593
610
  labels: e
594
611
  }) {
595
612
  return t.map((r) => {
596
- var s;
597
- const l = (((s = e == null ? void 0 : e.mode) == null ? void 0 : s.options) ?? z.options.mode.options)[r.value];
598
- return /* @__PURE__ */ i(he, { title: l, placement: "bottom", children: /* @__PURE__ */ i(ye, { disabled: !!r.disabled, value: r.value, "aria-label": r.value, children: /* @__PURE__ */ i(Oe, { children: /* @__PURE__ */ i(r.icon, {}) }) }) }, r.value);
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);
599
616
  });
600
617
  }
601
- function kt(t) {
618
+ function $t(t) {
602
619
  const e = R(7), {
603
620
  hasValues: r,
604
621
  labels: o
605
622
  } = t;
606
623
  if (r)
607
624
  return null;
608
- const l = (o == null ? void 0 : o.title) ?? z.noData.title, s = (o == null ? void 0 : o.description) ?? z.noData.description;
609
- let n;
610
- e[0] !== l ? (n = /* @__PURE__ */ i(F, { variant: "body1", color: "textSecondary", children: l }), e[0] = l, e[1] = n) : n = e[1];
611
- let c;
612
- e[2] !== s ? (c = /* @__PURE__ */ i(F, { variant: "body2", color: "textSecondary", children: s }), e[2] = s, e[3] = c) : c = e[3];
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];
628
+ 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];
613
630
  let a;
614
- return e[4] !== n || e[5] !== c ? (a = /* @__PURE__ */ D(j, { children: [
615
- n,
616
- c
617
- ] }), e[4] = n, e[5] = c, e[6] = a) : a = e[6], a;
631
+ return e[4] !== i || e[5] !== s ? (a = /* @__PURE__ */ O(j, { children: [
632
+ i,
633
+ s
634
+ ] }), e[4] = i, e[5] = s, e[6] = a) : a = e[6], a;
618
635
  }
619
- function Bt(t) {
620
- var w, v;
636
+ function Pt(t) {
637
+ var b, g;
621
638
  const e = R(13), {
622
639
  values: r,
623
640
  labels: o,
624
- onAllChipToggle: l,
625
- onAllDelete: s
641
+ onAllChipToggle: n,
642
+ onAllDelete: c
626
643
  } = t;
627
644
  if (r.length <= 1)
628
645
  return null;
629
- const c = r.some(Et) ? ((w = o == null ? void 0 : o.toggleAll) == null ? void 0 : w.active) ?? z.actions.toggleAll.active : ((v = o == null ? void 0 : o.toggleAll) == null ? void 0 : v.inactive) ?? z.actions.toggleAll.inactive, a = (o == null ? void 0 : o.deleteAll) ?? z.actions.deleteAll;
630
- let h;
631
- e[0] !== l ? (h = () => l(), e[0] = l, e[1] = h) : h = e[1];
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;
632
647
  let u;
633
- e[2] !== h || e[3] !== c ? (u = /* @__PURE__ */ i(Ce, { color: "inherit", onClick: h, children: c }), e[2] = h, e[3] = c, e[4] = u) : u = e[4];
634
- let m;
635
- e[5] !== s ? (m = () => s(), e[5] = s, e[6] = m) : m = e[6];
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];
651
+ let h;
652
+ e[5] !== c ? (h = () => c(), e[5] = c, e[6] = h) : h = e[6];
636
653
  let p;
637
- e[7] !== a || e[8] !== m ? (p = /* @__PURE__ */ i(Ce, { color: "error", onClick: m, children: a }), e[7] = a, e[8] = m, e[9] = p) : p = e[9];
638
- let b;
639
- return e[10] !== u || e[11] !== p ? (b = /* @__PURE__ */ D(W, { children: [
640
- u,
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,
641
658
  p
642
- ] }), e[10] = u, e[11] = p, e[12] = b) : b = e[12], b;
659
+ ] }), e[10] = f, e[11] = p, e[12] = y) : y = e[12], y;
643
660
  }
644
- function Et(t) {
661
+ function jt(t) {
645
662
  return t.visible;
646
663
  }
647
- function $t(t) {
664
+ function Zt(t) {
648
665
  const e = R(3);
649
666
  let r;
650
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ i("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];
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];
651
668
  let o;
652
- return e[1] !== t ? (o = /* @__PURE__ */ i("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;
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;
653
670
  }
654
- function jt(t) {
671
+ function Ut(t) {
655
672
  const e = R(3);
656
673
  let r;
657
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ i("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];
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];
658
675
  let o;
659
- return e[1] !== t ? (o = /* @__PURE__ */ i("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;
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;
660
677
  }
661
- function Pt(t) {
678
+ function Vt(t) {
662
679
  const e = R(4);
663
680
  let r, o;
664
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ i("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__ */ i("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]);
665
- let l;
666
- return e[2] !== t ? (l = /* @__PURE__ */ D("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
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: [
667
684
  r,
668
685
  o
669
- ] }), e[2] = t, e[3] = l) : l = e[3], l;
686
+ ] }), e[2] = t, e[3] = n) : n = e[3], n;
670
687
  }
671
- const ce = {
688
+ const re = {
672
689
  action: {
673
690
  tooltip: {
674
691
  active: "Click on the map to start measuring",
@@ -720,7 +737,7 @@ const ce = {
720
737
  }
721
738
  }
722
739
  }
723
- }, Zt = {
740
+ }, Gt = {
724
741
  "m-km": {
725
742
  short: "m-km"
726
743
  },
@@ -748,17 +765,17 @@ const ce = {
748
765
  feet: {
749
766
  short: "ft"
750
767
  }
751
- }, Ut = {
768
+ }, Wt = {
752
769
  distance: {
753
- icon: /* @__PURE__ */ i($t, {})
770
+ icon: /* @__PURE__ */ l(Zt, {})
754
771
  },
755
772
  buffer: {
756
- icon: /* @__PURE__ */ i(jt, {})
773
+ icon: /* @__PURE__ */ l(Ut, {})
757
774
  },
758
775
  area: {
759
- icon: /* @__PURE__ */ i(Pt, {})
776
+ icon: /* @__PURE__ */ l(Vt, {})
760
777
  }
761
- }, Y = {
778
+ }, Q = {
762
779
  container: {
763
780
  display: "flex",
764
781
  flexDirection: "row",
@@ -823,7 +840,7 @@ const ce = {
823
840
  }) => t.primary.main,
824
841
  backgroundColor: ({
825
842
  palette: t
826
- }) => Ye(t.primary.main, 0.08)
843
+ }) => Je(t.primary.main, 0.08)
827
844
  },
828
845
  modal: {
829
846
  toggle: {
@@ -890,278 +907,278 @@ const ce = {
890
907
  }
891
908
  }
892
909
  };
893
- function vo(t) {
910
+ function Mo(t) {
894
911
  const e = R(46), {
895
912
  enabled: r,
896
913
  actionProps: o,
897
- labels: l,
898
- modes: s,
899
- modesMapping: n,
900
- unitsMapping: c,
914
+ labels: n,
915
+ modes: c,
916
+ modesMapping: i,
917
+ unitsMapping: s,
901
918
  modeSelected: a,
902
- PaperProps: h,
903
- units: u,
904
- unitSelected: m,
919
+ PaperProps: u,
920
+ units: f,
921
+ unitSelected: h,
905
922
  onActionToggle: p,
906
- onChangeMode: b,
907
- onChangeUnit: w
908
- } = t, v = l === void 0 ? ce : l, C = n === void 0 ? Ut : n, d = c === void 0 ? Zt : c;
909
- let f;
910
- e[0] !== h ? (f = h === void 0 ? {} : h, e[0] = h, e[1] = f) : f = e[1];
911
- let g, M;
912
- e[2] !== f ? ({
913
- sx: M,
914
- ...g
915
- } = f, e[2] = f, e[3] = g, e[4] = M) : (g = e[3], M = e[4]);
916
- let y;
917
- e[5] !== p ? (y = (q) => p(!!q), e[5] = p, e[6] = y) : y = e[6];
918
- const I = y;
919
- let A, x;
920
- e[7] !== s || e[8] !== C ? (x = Se(s, C), e[7] = s, e[8] = C, e[9] = x) : x = e[9], A = x;
921
- const _ = A, S = (a ?? "") in _;
922
- let L;
923
- e[10] !== _ || e[11] !== S || e[12] !== a ? (L = S ? a : Object.keys(_)[0], e[10] = _, e[11] = S, e[12] = a, e[13] = L) : L = e[13];
924
- const O = L, T = _[O];
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;
926
+ let m;
927
+ e[0] !== u ? (m = u === void 0 ? {} : u, e[0] = u, e[1] = m) : m = e[1];
928
+ let v, x;
929
+ 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]);
933
+ 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];
925
942
  let k;
926
- const B = u[O];
927
- let E;
928
- e[14] !== O || e[15] !== B || e[16] !== u ? (E = Object.keys(u).length >= 1 ? u : {
929
- [O]: B.slice(0, 1)
930
- }, e[14] = O, e[15] = B, e[16] = u, e[17] = E) : E = e[17];
931
- const Z = E[O];
932
- let G;
933
- if (e[18] !== Z || e[19] !== d) {
934
- let q;
935
- e[21] !== d ? (q = (ee) => ({
943
+ const E = f[L];
944
+ 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) => ({
936
953
  ...ee,
937
954
  ...d[ee.value]
938
- }), e[21] = d, e[22] = q) : q = e[22], G = Z.map(q), e[18] = Z, e[19] = d, e[20] = G;
955
+ }), e[21] = d, e[22] = G) : G = e[22], U = V.map(G), e[18] = V, e[19] = d, e[20] = U;
939
956
  } else
940
- G = e[20];
941
- k = G;
942
- const oe = k;
943
- let U;
944
- e[23] !== M ? (U = {
945
- ...Y.container,
946
- ...M
947
- }, e[23] = M, e[24] = U) : U = e[24];
948
- const N = v == null ? void 0 : v.action, ne = T == null ? void 0 : T.icon;
949
- let H;
950
- e[25] !== o || e[26] !== r || e[27] !== I || e[28] !== N || e[29] !== ne ? (H = /* @__PURE__ */ i(Vt, { actionProps: o, labels: N, enabled: r, onActionToggle: I, children: ne }), e[25] = o, e[26] = r, e[27] = I, e[28] = N, e[29] = ne, e[30] = H) : H = e[30];
951
- const X = v == null ? void 0 : v.options;
957
+ U = e[20];
958
+ k = U;
959
+ const ne = k;
960
+ let F;
961
+ e[23] !== x ? (F = {
962
+ ...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;
966
+ 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;
952
969
  let $;
953
- e[31] !== oe || e[32] !== _ || e[33] !== O || e[34] !== b || e[35] !== w || e[36] !== X || e[37] !== m ? ($ = /* @__PURE__ */ i(Gt, { labels: X, modes: _, modeSelected: O, units: oe, unitSelected: m, onChangeMode: b, onChangeUnit: w }), e[31] = oe, e[32] = _, e[33] = O, e[34] = b, e[35] = w, e[36] = X, e[37] = m, e[38] = $) : $ = e[38];
954
- let V;
955
- e[39] !== H || e[40] !== $ ? (V = /* @__PURE__ */ D(W, { children: [
956
- H,
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,
957
974
  $
958
- ] }), e[39] = H, e[40] = $, e[41] = V) : V = e[41];
959
- let J;
960
- return e[42] !== g || e[43] !== U || e[44] !== V ? (J = /* @__PURE__ */ i(be, { sx: U, ...g, children: V }), e[42] = g, e[43] = U, e[44] = V, e[45] = J) : J = e[45], J;
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;
961
978
  }
962
- function Vt(t) {
963
- var b;
979
+ function zt(t) {
980
+ var y;
964
981
  const e = R(12), {
965
982
  actionProps: r,
966
983
  labels: o,
967
- enabled: l,
968
- children: s,
969
- onActionToggle: n
970
- } = t, c = l ? "active" : "inactive", a = ((b = o == null ? void 0 : o.tooltip) == null ? void 0 : b[c]) ?? ce.action.tooltip[c], h = r == null ? void 0 : r.TooltipProps;
971
- let u;
972
- e[0] !== l || e[1] !== n ? (u = () => n(!l), e[0] = l, e[1] = n, e[2] = u) : u = e[2];
973
- let m;
974
- e[3] !== a || e[4] !== s || e[5] !== l || e[6] !== u ? (m = /* @__PURE__ */ i(ye, { value: "toggle", sx: Y.actions.icon, onClick: u, "aria-label": a, selected: l, children: s }), e[3] = a, e[4] = s, e[5] = l, e[6] = u, e[7] = m) : m = e[7];
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];
990
+ 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];
975
992
  let p;
976
- return e[8] !== a || e[9] !== h || e[10] !== m ? (p = /* @__PURE__ */ i(he, { title: a, placement: "right", ...h, children: m }), e[8] = a, e[9] = h, e[10] = m, e[11] = p) : p = e[11], 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;
977
994
  }
978
- function Gt(t) {
979
- var Z, G, oe, U, N, ne, H, X;
995
+ function Nt(t) {
996
+ var V, U, ne, F, H, X, q, ie;
980
997
  const e = R(68), {
981
998
  modes: r,
982
999
  modeSelected: o,
983
- units: l,
984
- unitSelected: s,
985
- labels: n,
986
- onChangeMode: c,
1000
+ units: n,
1001
+ unitSelected: c,
1002
+ labels: i,
1003
+ onChangeMode: s,
987
1004
  onChangeUnit: a
988
- } = t, [h, u] = ie(null), [m, p] = ie(!1);
989
- let b, w, v, C, d, f, g, M, y, I, A, x, _, S, L, O;
990
- if (e[0] !== h || e[1] !== ((Z = n == null ? void 0 : n.mode) == null ? void 0 : Z.options) || e[2] !== ((G = n == null ? void 0 : n.mode) == null ? void 0 : G.title) || e[3] !== ((oe = n == null ? void 0 : n.units) == null ? void 0 : oe.title) || e[4] !== o || e[5] !== r || e[6] !== c || e[7] !== a || e[8] !== s || e[9] !== l) {
991
- _ = Symbol.for("react.early_return_sentinel");
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) {
1008
+ T = Symbol.for("react.early_return_sentinel");
992
1009
  e: {
993
1010
  const $ = Object.values(r);
994
- let V;
995
- if (e[26] !== l ? (V = Object.values(l), e[26] = l, e[27] = V) : V = e[27], O = V, !($.length > 1 || O.length > 1)) {
996
- _ = null;
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)) {
1013
+ T = null;
997
1014
  break e;
998
1015
  }
999
- const q = !!h;
1016
+ const G = !!u;
1000
1017
  let ee;
1001
- e[28] === Symbol.for("react.memo_cache_sentinel") ? (ee = (K) => {
1002
- u(K.currentTarget);
1018
+ e[28] === Symbol.for("react.memo_cache_sentinel") ? (ee = (Y) => {
1019
+ f(Y.currentTarget);
1003
1020
  }, e[28] = ee) : ee = e[28];
1004
- const de = ee;
1005
- let le;
1006
- e[29] === Symbol.for("react.memo_cache_sentinel") ? (le = () => {
1007
- u(null);
1008
- }, e[29] = le) : le = e[29];
1009
- const te = le;
1010
- let re;
1011
- e[30] !== c ? (re = (K, Re) => {
1012
- K.preventDefault(), c(Re.value), te();
1013
- }, e[30] = c, e[31] = re) : re = e[31];
1014
- const Te = re;
1015
- let fe;
1016
- e[32] === Symbol.for("react.memo_cache_sentinel") ? (fe = () => {
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 = () => {
1017
1034
  p(!0);
1018
- }, e[32] = fe) : fe = e[32], v = fe;
1019
- let we;
1020
- e[33] === Symbol.for("react.memo_cache_sentinel") ? (we = () => {
1035
+ }, e[32] = he) : he = e[32], g = he;
1036
+ let me;
1037
+ e[33] === Symbol.for("react.memo_cache_sentinel") ? (me = () => {
1021
1038
  p(!1);
1022
- }, e[33] = we) : we = e[33], C = we;
1023
- let xe;
1024
- e[34] !== a ? (xe = (K) => {
1025
- C(), a(K);
1026
- }, e[34] = a, e[35] = xe) : xe = e[35], w = xe;
1027
- const He = ((U = n == null ? void 0 : n.mode) == null ? void 0 : U.title) ?? ce.options.mode.title;
1028
- L = ((N = n == null ? void 0 : n.units) == null ? void 0 : N.title) ?? ce.options.units.title, d = $.length > 1 && O.length > 1;
1039
+ }, e[33] = me) : me = e[33], C = me;
1029
1040
  let Me;
1030
- e[36] !== s || e[37] !== l ? (Me = l.find((K) => K.value === s) ?? l[0], e[36] = s, e[37] = l, e[38] = Me) : Me = e[38], S = Me, e[39] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ i(ae, { sx: Y.options.icon, onClick: de, children: /* @__PURE__ */ i(Ge, {}) }), e[39] = x) : x = e[39], b = Ze, g = "measurement-menu", M = h, y = q, I = te, e[40] === Symbol.for("react.memo_cache_sentinel") ? (A = {
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 = {
1031
1048
  "aria-labelledby": "basic-button",
1032
- sx: Y.options.menu
1033
- }, e[40] = A) : A = e[40], f = $.length > 1 && /* @__PURE__ */ D(j, { children: [
1034
- /* @__PURE__ */ i(F, { variant: "subtitle2", color: "text.secondary", sx: Y.options.title, children: He }),
1035
- $.map((K) => {
1036
- var ke;
1037
- const Xe = (((ke = n == null ? void 0 : n.mode) == null ? void 0 : ke.options) ?? ce.options.mode.options)[K.value];
1038
- return /* @__PURE__ */ D(ge, { onClick: (qe) => Te(qe, K), selected: K.value === o, children: [
1039
- /* @__PURE__ */ i(Ue, { sx: Y.options.icons, children: /* @__PURE__ */ i(Oe, { children: K.icon }) }),
1040
- /* @__PURE__ */ i(ve, { children: Xe })
1041
- ] }, K.value);
1049
+ 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);
1042
1059
  })
1043
1060
  ] });
1044
1061
  }
1045
- e[0] = h, e[1] = (ne = n == null ? void 0 : n.mode) == null ? void 0 : ne.options, e[2] = (H = n == null ? void 0 : n.mode) == null ? void 0 : H.title, e[3] = (X = n == null ? void 0 : n.units) == null ? void 0 : X.title, e[4] = o, e[5] = r, e[6] = c, e[7] = a, e[8] = s, e[9] = l, e[10] = b, e[11] = w, e[12] = v, e[13] = C, e[14] = d, e[15] = f, e[16] = g, e[17] = M, e[18] = y, e[19] = I, e[20] = A, e[21] = x, e[22] = _, e[23] = S, e[24] = L, e[25] = O;
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;
1046
1063
  } else
1047
- b = e[10], w = e[11], v = e[12], C = e[13], d = e[14], f = e[15], g = e[16], M = e[17], y = e[18], I = e[19], A = e[20], x = e[21], _ = e[22], S = e[23], L = e[24], O = e[25];
1048
- if (_ !== Symbol.for("react.early_return_sentinel"))
1049
- return _;
1050
- let T;
1051
- e[41] !== d ? (T = d && /* @__PURE__ */ i(se, {}), e[41] = d, e[42] = T) : T = e[42];
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];
1065
+ if (T !== Symbol.for("react.early_return_sentinel"))
1066
+ return T;
1067
+ let _;
1068
+ e[41] !== d ? (_ = d && /* @__PURE__ */ l(ce, {}), e[41] = d, e[42] = _) : _ = e[42];
1052
1069
  let k;
1053
- e[43] !== w || e[44] !== v || e[45] !== C || e[46] !== n || e[47] !== m || e[48] !== S || e[49] !== L || e[50] !== l || e[51] !== O.length ? (k = O.length > 1 && /* @__PURE__ */ D(j, { children: [
1054
- /* @__PURE__ */ D(ge, { onClick: v, children: [
1055
- /* @__PURE__ */ i(ve, { children: L }),
1056
- /* @__PURE__ */ i(F, { variant: "caption", fontWeight: 500, sx: Y.options.tag, children: S.short })
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 })
1057
1074
  ] }),
1058
- /* @__PURE__ */ i(Wt, { open: m, labels: n, units: l, unitSelectedValue: S, onClose: C, onSubmit: w })
1059
- ] }), e[43] = w, e[44] = v, e[45] = C, e[46] = n, e[47] = m, e[48] = S, e[49] = L, e[50] = l, e[51] = O.length, e[52] = k) : k = e[52];
1060
- let B;
1061
- e[53] !== f || e[54] !== k || e[55] !== T ? (B = /* @__PURE__ */ D("div", { children: [
1062
- f,
1063
- T,
1064
- k
1065
- ] }), e[53] = f, e[54] = k, e[55] = T, e[56] = B) : B = e[56];
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];
1066
1077
  let E;
1067
- e[57] !== b || e[58] !== B || e[59] !== g || e[60] !== M || e[61] !== y || e[62] !== I || e[63] !== A ? (E = /* @__PURE__ */ i(b, { id: g, anchorEl: M, open: y, onClose: I, MenuListProps: A, children: B }), e[57] = b, e[58] = B, e[59] = g, e[60] = M, e[61] = y, e[62] = I, e[63] = A, e[64] = E) : E = e[64];
1068
- let P;
1069
- return e[65] !== E || e[66] !== x ? (P = /* @__PURE__ */ D(j, { children: [
1070
- x,
1071
- E
1072
- ] }), e[65] = E, e[66] = x, e[67] = P) : P = e[67], P;
1078
+ e[53] !== m || e[54] !== k || e[55] !== _ ? (E = /* @__PURE__ */ O("div", { children: [
1079
+ 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
+ M,
1088
+ B
1089
+ ] }), e[65] = B, e[66] = M, e[67] = Z) : Z = e[67], Z;
1073
1090
  }
1074
- function Wt({
1091
+ function Ft({
1075
1092
  open: t,
1076
1093
  labels: e,
1077
1094
  units: r,
1078
1095
  unitSelectedValue: o,
1079
- onClose: l,
1080
- onSubmit: s
1096
+ onClose: n,
1097
+ onSubmit: c
1081
1098
  }) {
1082
- var C, d, f, g, M, y, I, A;
1083
- const [n, c] = ie("metric"), a = Le(() => r.filter((x) => x.system === n), [n, r]), h = (x, _) => {
1084
- c(_);
1085
- }, u = ((d = (C = e == null ? void 0 : e.units) == null ? void 0 : C.modal) == null ? void 0 : d.options) ?? ce.options.units.modal.options, m = u[n].options, p = ((g = (f = e == null ? void 0 : e.units) == null ? void 0 : f.modal) == null ? void 0 : g.title) ?? ce.options.units.modal.title, b = ((y = (M = e == null ? void 0 : e.units) == null ? void 0 : M.modal) == null ? void 0 : y.subtitle) ?? ce.options.units.modal.subtitle, w = ((A = (I = e == null ? void 0 : e.units) == null ? void 0 : I.modal) == null ? void 0 : A.apply) ?? ce.options.units.modal.apply, v = o.system === n ? o : a[0];
1086
- return /* @__PURE__ */ D(Qe, { open: t, component: W, onClose: l, maxWidth: "xs", PaperProps: {
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: {
1087
1104
  component: "form",
1088
- onSubmit: (x) => {
1089
- x.preventDefault();
1090
- const _ = new FormData(x.currentTarget);
1091
- s(_.get("unit-value"));
1105
+ onSubmit: (M) => {
1106
+ M.preventDefault();
1107
+ const T = new FormData(M.currentTarget);
1108
+ c(T.get("unit-value"));
1092
1109
  }
1093
1110
  }, children: [
1094
- /* @__PURE__ */ D(Je, { sx: Y.options.modal.title, children: [
1111
+ /* @__PURE__ */ O(tt, { sx: Q.options.modal.title, children: [
1095
1112
  p,
1096
- /* @__PURE__ */ i(ae, { onClick: l, children: /* @__PURE__ */ i(We, {}) })
1113
+ /* @__PURE__ */ l(se, { onClick: n, children: /* @__PURE__ */ l(ze, {}) })
1097
1114
  ] }),
1098
- /* @__PURE__ */ D(et, { sx: Y.options.modal.content, children: [
1099
- /* @__PURE__ */ i(F, { sx: Y.options.modal.subtitle, children: b }),
1100
- /* @__PURE__ */ D(Ve, { color: "primary", value: n, exclusive: !0, fullWidth: !0, onChange: h, "aria-label": "system", sx: Y.options.modal.toggle, children: [
1101
- /* @__PURE__ */ i(ye, { value: "metric", children: u.metric.title }),
1102
- /* @__PURE__ */ i(ye, { value: "imperial", children: u.imperial.title })
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 })
1103
1120
  ] }),
1104
- /* @__PURE__ */ i(tt, { children: /* @__PURE__ */ i(ot, { "aria-labelledby": "unit-value", defaultValue: v == null ? void 0 : v.value, name: "unit-value", sx: Y.options.modal.optionsGroup, children: a.map((x) => {
1105
- const _ = m[x.value];
1106
- return /* @__PURE__ */ i(nt, { value: x.value, control: /* @__PURE__ */ i(it, {}), label: _ }, x.value);
1107
- }) }) }, v == null ? void 0 : v.value)
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)
1108
1125
  ] }),
1109
- /* @__PURE__ */ i(lt, { sx: Y.options.modal.actions, children: /* @__PURE__ */ i(Ce, { variant: "contained", type: "submit", children: w }) })
1126
+ /* @__PURE__ */ l(ct, { sx: Q.options.modal.actions, children: /* @__PURE__ */ l(Te, { variant: "contained", type: "submit", children: b }) })
1110
1127
  ] });
1111
1128
  }
1112
- const zt = {
1129
+ const Ht = {
1113
1130
  enabled: "Show your current location",
1114
1131
  disabled: "Location unavailable"
1115
- }, Ft = "geolocation";
1116
- function yo(t) {
1132
+ }, Xt = "geolocation";
1133
+ function Co(t) {
1117
1134
  const e = R(25), {
1118
1135
  disabled: r,
1119
1136
  labels: o,
1120
- PaperProps: l,
1121
- TooltipProps: s,
1122
- watch: n,
1123
- onChange: c,
1137
+ PaperProps: n,
1138
+ TooltipProps: c,
1139
+ watch: i,
1140
+ onChange: s,
1124
1141
  onError: a
1125
- } = t, h = ze(null), u = "geolocation" in navigator, [m, p] = ie(u);
1126
- let b, w;
1127
- e[0] !== a ? (b = () => (u && navigator.permissions.query({
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({
1128
1145
  name: "geolocation"
1129
- }).then((T) => {
1130
- p(T.state === "granted"), T.onchange = () => {
1131
- p(T.state === "granted");
1146
+ }).then((_) => {
1147
+ p(_.state === "granted"), _.onchange = () => {
1148
+ p(_.state === "granted");
1132
1149
  };
1133
- }).catch((T) => {
1134
- p(!1), a == null || a(T);
1150
+ }).catch((_) => {
1151
+ p(!1), a == null || a(_);
1135
1152
  }), () => {
1136
- h.current && navigator.geolocation.clearWatch(h.current);
1137
- }), w = [u, a], e[0] = a, e[1] = b, e[2] = w) : (b = e[1], w = e[2]), Ie(b, w);
1138
- let v;
1139
- e[3] !== c ? (v = (T) => {
1140
- c(T.coords);
1141
- }, e[3] = c, e[4] = v) : v = e[4];
1142
- const C = v;
1153
+ 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;
1143
1160
  let d;
1144
- e[5] !== a ? (d = (T) => {
1145
- p(!1), a == null || a(T);
1161
+ e[5] !== a ? (d = (_) => {
1162
+ p(!1), a == null || a(_);
1146
1163
  }, e[5] = a, e[6] = d) : d = e[6];
1147
- const f = d;
1148
- let g;
1149
- e[7] !== f || e[8] !== C || e[9] !== n ? (g = () => {
1150
- if (h.current && navigator.geolocation.clearWatch(h.current), n) {
1151
- h.current = navigator.geolocation.watchPosition(C, f);
1164
+ 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);
1152
1169
  return;
1153
1170
  }
1154
- navigator.geolocation.getCurrentPosition(C, f);
1155
- }, e[7] = f, e[8] = C, e[9] = n, e[10] = g) : g = e[10];
1156
- const M = g, I = ((o == null ? void 0 : o.tooltip) ?? zt)[m ? "enabled" : "disabled"], A = (o == null ? void 0 : o.ariaLabel) ?? Ft, x = !u || r;
1157
- let _;
1158
- e[11] !== m ? (_ = m ? /* @__PURE__ */ i(pt, {}) : /* @__PURE__ */ i(gt, {}), e[11] = m, e[12] = _) : _ = e[12];
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;
1174
+ let T;
1175
+ e[11] !== h ? (T = h ? /* @__PURE__ */ l(vt, {}) : /* @__PURE__ */ l(yt, {}), e[11] = h, e[12] = T) : T = e[12];
1159
1176
  let S;
1160
- e[13] !== M || e[14] !== A || e[15] !== x || e[16] !== _ ? (S = /* @__PURE__ */ i(ae, { onClick: M, "aria-label": A, disabled: x, children: _ }), e[13] = M, e[14] = A, e[15] = x, e[16] = _, e[17] = S) : S = e[17];
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];
1178
+ 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];
1161
1180
  let L;
1162
- e[18] !== s || e[19] !== S || e[20] !== I ? (L = /* @__PURE__ */ i(he, { arrow: !0, placement: "right", title: I, ...s, children: S }), e[18] = s, e[19] = S, e[20] = I, e[21] = L) : L = e[21];
1163
- let O;
1164
- return e[22] !== l || e[23] !== L ? (O = /* @__PURE__ */ i(be, { ...l, children: L }), e[22] = l, e[23] = L, e[24] = O) : O = e[24], O;
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;
1165
1182
  }
1166
1183
  const De = {
1167
1184
  zoom: {
@@ -1195,139 +1212,139 @@ const De = {
1195
1212
  position: "absolute"
1196
1213
  }
1197
1214
  };
1198
- function bo(t) {
1215
+ function To(t) {
1199
1216
  const e = R(40), {
1200
1217
  zoom: r,
1201
1218
  disabled: o,
1202
- direction: l,
1203
- isLoading: s,
1204
- maxZoom: n,
1205
- minZoom: c,
1219
+ direction: n,
1220
+ isLoading: c,
1221
+ maxZoom: i,
1222
+ minZoom: s,
1206
1223
  PaperProps: a,
1207
- ResetViewProps: h,
1208
- showZoom: u,
1209
- onChange: m,
1224
+ ResetViewProps: u,
1225
+ showZoom: f,
1226
+ onChange: h,
1210
1227
  onReset: p
1211
- } = t, b = l === void 0 ? "vertical" : l, w = n === void 0 ? 24 : n, v = c === void 0 ? 0 : c;
1228
+ } = t, y = n === void 0 ? "vertical" : n, b = i === void 0 ? 24 : i, g = s === void 0 ? 0 : s;
1212
1229
  let C;
1213
- e[0] !== h ? (C = h === void 0 ? {
1214
- Icon: vt
1215
- } : h, e[0] = h, e[1] = C) : C = e[1];
1216
- const d = C, f = u === void 0 ? !0 : u;
1217
- let g;
1218
- e[2] !== w || e[3] !== m || e[4] !== r ? (g = () => {
1219
- const G = Math.min(w, r + 1);
1220
- m(G);
1221
- }, e[2] = w, e[3] = m, e[4] = r, e[5] = g) : g = e[5];
1222
- const M = g;
1223
- let y;
1224
- e[6] !== v || e[7] !== m || e[8] !== r ? (y = () => {
1225
- const G = Math.max(v, r - 1);
1226
- m(G);
1227
- }, e[6] = v, e[7] = m, e[8] = r, e[9] = y) : y = e[9];
1228
- const I = y, A = Math.floor(r), x = b === "vertical" ? "horizontal" : "vertical", _ = b === "vertical" ? "column" : "row";
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;
1240
+ 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";
1229
1246
  let S;
1230
- e[10] !== _ ? (S = {
1247
+ e[10] !== T ? (S = {
1231
1248
  ...De.paper,
1232
- flexDirection: _
1233
- }, e[10] = _, e[11] = S) : S = e[11];
1249
+ flexDirection: T
1250
+ }, e[10] = T, e[11] = S) : S = e[11];
1251
+ let I;
1252
+ e[12] !== d || e[13] !== o || e[14] !== M || e[15] !== p ? (I = p && /* @__PURE__ */ O(j, { children: [
1253
+ /* @__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];
1234
1256
  let L;
1235
- e[12] !== d || e[13] !== o || e[14] !== x || e[15] !== p ? (L = p && /* @__PURE__ */ D(j, { children: [
1236
- /* @__PURE__ */ i(ae, { onClick: p, "aria-label": "Reset action", disabled: o, children: /* @__PURE__ */ i(d.Icon, {}) }),
1237
- /* @__PURE__ */ i(se, { orientation: x, flexItem: !0 })
1238
- ] }), e[12] = d, e[13] = o, e[14] = x, e[15] = p, e[16] = L) : L = e[16];
1239
- let O;
1240
- e[17] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ i(yt, {}), e[17] = O) : O = e[17];
1241
- let T;
1242
- e[18] !== o || e[19] !== M ? (T = /* @__PURE__ */ i(ae, { onClick: M, "aria-label": "Increase zoom", disabled: o, children: O }), e[18] = o, e[19] = M, e[20] = T) : T = e[20];
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];
1243
1260
  let k;
1244
- e[21] !== x ? (k = /* @__PURE__ */ i(se, { orientation: x, flexItem: !0 }), e[21] = x, e[22] = k) : k = e[22];
1245
- let B;
1246
- e[23] !== A || e[24] !== x || e[25] !== s || e[26] !== f ? (B = f && /* @__PURE__ */ D(j, { children: [
1247
- /* @__PURE__ */ D(W, { sx: De.zoom, children: [
1248
- /* @__PURE__ */ i(F, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: A }),
1249
- s && /* @__PURE__ */ i(rt, { sx: De.circularProgress, variant: "indeterminate", size: 24 })
1250
- ] }),
1251
- /* @__PURE__ */ i(se, { orientation: x, flexItem: !0 })
1252
- ] }), e[23] = A, e[24] = x, e[25] = s, e[26] = f, e[27] = B) : B = e[27];
1261
+ e[21] !== M ? (k = /* @__PURE__ */ l(ce, { orientation: M, flexItem: !0 }), e[21] = M, e[22] = k) : k = e[22];
1253
1262
  let E;
1254
- e[28] === Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ i(bt, {}), e[28] = E) : E = e[28];
1255
- let P;
1256
- e[29] !== I || e[30] !== o ? (P = /* @__PURE__ */ i(ae, { onClick: I, "aria-label": "Decrease zoom", disabled: o, children: E }), e[29] = I, e[30] = o, e[31] = P) : P = e[31];
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 })
1267
+ ] }),
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];
1257
1272
  let Z;
1258
- return e[32] !== a || e[33] !== S || e[34] !== L || e[35] !== T || e[36] !== k || e[37] !== B || e[38] !== P ? (Z = /* @__PURE__ */ D(be, { sx: S, ...a, children: [
1259
- L,
1260
- T,
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
+ _,
1261
1278
  k,
1262
- B,
1263
- P
1264
- ] }), e[32] = a, e[33] = S, e[34] = L, e[35] = T, e[36] = k, e[37] = B, e[38] = P, e[39] = Z) : Z = e[39], Z;
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;
1265
1282
  }
1266
- function Nt(t) {
1283
+ function qt(t) {
1267
1284
  const e = R(4), {
1268
1285
  length: r
1269
1286
  } = t, o = r === void 0 ? 5 : r;
1270
- let l;
1271
- e[0] !== o ? (l = new Array(o).fill(null).map(Ht), e[0] = o, e[1] = l) : l = e[1];
1272
- let s;
1273
- return e[2] !== l ? (s = /* @__PURE__ */ i(W, { "aria-label": "List Data skeleton", children: l }), e[2] = l, e[3] = s) : s = e[3], s;
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;
1274
1291
  }
1275
- function Ht(t, e) {
1276
- return /* @__PURE__ */ D(pe, { container: !0, spacing: 1, children: [
1277
- /* @__PURE__ */ D(pe, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
1278
- /* @__PURE__ */ i(_e, { width: Yt(e) ? 72 : 48, height: 20 }),
1279
- /* @__PURE__ */ i(_e, { width: 48, height: 8 })
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 })
1280
1297
  ] }),
1281
- /* @__PURE__ */ i(_e, { sx: {
1282
- height: Kt,
1283
- marginTop: qt,
1284
- marginBottom: Xt,
1298
+ /* @__PURE__ */ l(_e, { sx: {
1299
+ height: Jt,
1300
+ marginTop: Qt,
1301
+ marginBottom: Yt,
1285
1302
  width: "100%"
1286
1303
  } })
1287
1304
  ] }, e);
1288
1305
  }
1289
- function Xt(t) {
1306
+ function Yt(t) {
1290
1307
  const {
1291
1308
  spacing: e
1292
1309
  } = t;
1293
1310
  return e(1.75);
1294
1311
  }
1295
- function qt(t) {
1312
+ function Qt(t) {
1296
1313
  const {
1297
1314
  spacing: e
1298
1315
  } = t;
1299
1316
  return e(1.25);
1300
1317
  }
1301
- function Kt(t) {
1318
+ function Jt(t) {
1302
1319
  const {
1303
1320
  spacing: e
1304
1321
  } = t;
1305
1322
  return e(0.5);
1306
1323
  }
1307
- function Yt(t) {
1324
+ function eo(t) {
1308
1325
  return t % 2 === 1;
1309
1326
  }
1310
- function Qt(t) {
1327
+ function to(t) {
1311
1328
  const e = R(13), {
1312
1329
  title: r,
1313
1330
  body: o,
1314
- severity: l
1315
- } = t, s = r === void 0 ? "No data available" : r, n = 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;
1316
- if (l) {
1317
- let u;
1318
- e[0] !== n ? (u = /* @__PURE__ */ i(je, { children: n }), e[0] = n, e[1] = u) : u = e[1];
1319
- let m;
1320
- return e[2] !== l || e[3] !== u || e[4] !== s ? (m = /* @__PURE__ */ i(ct, { title: s, severity: l, children: u }), e[2] = l, e[3] = u, e[4] = s, e[5] = m) : m = e[5], m;
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];
1336
+ 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;
1321
1338
  }
1322
- let c;
1323
- e[6] !== s ? (c = s && /* @__PURE__ */ i(F, { variant: "body2", children: s }), e[6] = s, e[7] = c) : c = e[7];
1339
+ let s;
1340
+ e[6] !== c ? (s = c && /* @__PURE__ */ l(N, { variant: "body2", children: c }), e[6] = c, e[7] = s) : s = e[7];
1324
1341
  let a;
1325
- e[8] !== n ? (a = /* @__PURE__ */ i(je, { color: "textSecondary", children: n }), e[8] = n, e[9] = a) : a = e[9];
1326
- let h;
1327
- return e[10] !== c || e[11] !== a ? (h = /* @__PURE__ */ D(W, { children: [
1328
- c,
1342
+ e[8] !== i ? (a = /* @__PURE__ */ l(je, { color: "textSecondary", children: i }), e[8] = i, e[9] = a) : a = e[9];
1343
+ let u;
1344
+ return e[10] !== s || e[11] !== a ? (u = /* @__PURE__ */ O(W, { children: [
1345
+ s,
1329
1346
  a
1330
- ] }), e[10] = c, e[11] = a, e[12] = h) : h = e[12], h;
1347
+ ] }), e[10] = s, e[11] = a, e[12] = u) : u = e[12], u;
1331
1348
  }
1332
1349
  function je(t) {
1333
1350
  const e = R(5), {
@@ -1335,37 +1352,37 @@ function je(t) {
1335
1352
  children: o
1336
1353
  } = t;
1337
1354
  if (o) {
1338
- const s = r ?? "inherit";
1339
- let n;
1340
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
1355
+ const c = r ?? "inherit";
1356
+ let i;
1357
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = {
1341
1358
  fontWeight: "normal"
1342
- }, e[0] = n) : n = e[0];
1343
- let c;
1344
- return e[1] !== o || e[2] !== s ? (c = /* @__PURE__ */ i(W, { mt: 0.5, children: /* @__PURE__ */ i(F, { component: "div", variant: "caption", color: s, style: n, children: o }) }), e[1] = o, e[2] = s, e[3] = c) : c = e[3], c;
1359
+ }, e[0] = i) : i = e[0];
1360
+ 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;
1345
1362
  }
1346
- let l;
1347
- return e[4] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ i(W, { mt: -1 }), e[4] = l) : l = e[4], l;
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;
1348
1365
  }
1349
- function Jt(t) {
1350
- const e = R(4), [r, o] = ie(!1), [l, s] = ie(!1);
1351
- let n, c;
1352
- return e[0] !== l || e[1] !== t ? (n = () => {
1353
- t && !l && (o(!0), s(!0)), t || o(!1);
1354
- }, c = [t, l], e[0] = l, e[1] = t, e[2] = n, e[3] = c) : (n = e[2], c = e[3]), Ie(n, c), r;
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;
1355
1372
  }
1356
- const Pe = {
1373
+ const Ze = {
1357
1374
  overflow: "hidden",
1358
1375
  textOverflow: "ellipsis",
1359
1376
  whiteSpace: "nowrap"
1360
- }, me = {
1377
+ }, pe = {
1361
1378
  label: {
1362
1379
  "& .MuiListItemText-primary": {
1363
- ...Pe
1380
+ ...Ze
1364
1381
  }
1365
1382
  },
1366
1383
  value: {
1367
1384
  "& .MuiListItemText-primary": {
1368
- ...Pe,
1385
+ ...Ze,
1369
1386
  textAlign: "right"
1370
1387
  }
1371
1388
  },
@@ -1391,70 +1408,96 @@ const Pe = {
1391
1408
  opacity: 0.5,
1392
1409
  pointerEvents: "none"
1393
1410
  }
1394
- }, eo = {
1411
+ };
1412
+ function no({
1413
+ title: t,
1414
+ dependencies: e = [],
1415
+ timeout: r = 500,
1416
+ TooltipProps: o,
1417
+ children: n
1418
+ }) {
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;
1424
+ s(u);
1425
+ }
1426
+ }, r);
1427
+ return () => clearTimeout(a);
1428
+ }, [e, r]), /* @__PURE__ */ l(ae, { title: i && t, ...o, children: n({
1429
+ ref: c
1430
+ }) });
1431
+ }
1432
+ const io = {
1395
1433
  showMore: "Show More",
1396
1434
  showLess: "Show Less"
1397
1435
  };
1398
- function wo(t) {
1436
+ function So(t) {
1399
1437
  const e = R(34), {
1400
1438
  data: r,
1401
1439
  isLoading: o,
1402
- maxItems: l,
1403
- labels: s,
1404
- showDivider: n,
1405
- selectedItemId: c,
1440
+ maxItems: n,
1441
+ labels: c,
1442
+ showDivider: i,
1443
+ selectedItemId: s,
1406
1444
  tooltipProps: a,
1407
- onExpand: h,
1408
- onItemClick: u
1445
+ onExpand: u,
1446
+ onItemClick: f
1409
1447
  } = t;
1410
- let m;
1411
- e[0] !== r ? (m = r === void 0 ? [] : r, e[0] = r, e[1] = m) : m = e[1];
1412
- const p = m, b = o === void 0 ? !1 : o, w = l === void 0 ? 5 : l, v = s === void 0 ? eo : s, C = n === void 0 ? !0 : n, [d, f] = ie(!1), g = Jt(b);
1413
- let M, y;
1414
- e[2] !== p || e[3] !== w || e[4] !== d ? (y = d ? p : p.slice(0, w), e[2] = p, e[3] = w, e[4] = d, e[5] = y) : y = e[5], M = y;
1415
- const I = M;
1416
- let A;
1417
- e[6] !== h || e[7] !== d ? (A = () => {
1418
- f(!d), h == null || h(d);
1419
- }, e[6] = h, e[7] = d, e[8] = A) : A = e[8];
1420
- const x = A;
1421
- if (g) {
1422
- let T;
1423
- return e[9] !== w ? (T = /* @__PURE__ */ i(Nt, { length: w }), e[9] = w, e[10] = T) : T = e[10], 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], _;
1424
1462
  }
1425
- if (I.length === 0) {
1426
- let T;
1427
- return e[11] === Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ i(Qt, {}), e[11] = T) : T = e[11], T;
1463
+ if (A.length === 0) {
1464
+ let _;
1465
+ return e[11] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ l(to, {}), e[11] = _) : _ = e[11], _;
1428
1466
  }
1429
- let _;
1430
- if (e[12] !== I || e[13] !== u || e[14] !== c || e[15] !== C || e[16] !== a) {
1431
- let T;
1432
- e[18] !== u || e[19] !== c || e[20] !== C || e[21] !== a ? (T = (k, B) => /* @__PURE__ */ i(he, { followCursor: !1, placement: "top", arrow: !0, title: k.tooltipTitle, enterDelay: 10, ...a, children: /* @__PURE__ */ i(st, { role: "listitem", sx: {
1433
- ...C && me.showDivider,
1434
- ...u && me.clickable,
1435
- ...c === k.id && me.selected,
1436
- ...k.disabled && me.disabled
1437
- }, onClick: () => {
1438
- k.disabled || u == null || u(k);
1439
- }, children: /* @__PURE__ */ D(pe, { container: !0, alignItems: "center", children: [
1440
- /* @__PURE__ */ i(pe, { item: !0, xs: 8, children: /* @__PURE__ */ i(ve, { primary: k.label, sx: me.label }) }),
1441
- /* @__PURE__ */ i(pe, { item: !0, xs: 4, children: /* @__PURE__ */ i(ve, { primary: k.value, sx: me.value }) })
1442
- ] }) }) }, `list-item-${B}`), e[18] = u, e[19] = c, e[20] = C, e[21] = a, e[22] = T) : T = e[22], _ = I.map(T), e[12] = I, e[13] = u, e[14] = c, e[15] = C, e[16] = a, e[17] = _;
1467
+ 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) => {
1471
+ 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
1479
+ }, 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 }) })
1484
+ ] }) });
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;
1443
1486
  } else
1444
- _ = e[17];
1487
+ T = e[17];
1445
1488
  let S;
1446
- e[23] !== _ ? (S = /* @__PURE__ */ i(at, { id: "expandable-list", role: "list", children: _ }), e[23] = _, e[24] = S) : S = e[24];
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
+ 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];
1447
1492
  let L;
1448
- e[25] !== p.length || e[26] !== x || e[27] !== v || e[28] !== w || e[29] !== d ? (L = p.length > w && /* @__PURE__ */ i(W, { my: 2, children: /* @__PURE__ */ i(Ce, { onClick: x, variant: "text", color: "primary", "aria-expanded": d, "aria-controls": "expandable-list", children: d ? v.showLess : v.showMore }) }), e[25] = p.length, e[26] = x, e[27] = v, e[28] = w, e[29] = d, e[30] = L) : L = e[30];
1449
- let O;
1450
- return e[31] !== S || e[32] !== L ? (O = /* @__PURE__ */ D(j, { children: [
1493
+ return e[31] !== S || e[32] !== I ? (L = /* @__PURE__ */ O(j, { children: [
1451
1494
  S,
1452
- L
1453
- ] }), e[31] = S, e[32] = L, e[33] = O) : O = e[33], O;
1495
+ I
1496
+ ] }), e[31] = S, e[32] = I, e[33] = L) : L = e[33], L;
1454
1497
  }
1455
- const to = 288, ue = {
1498
+ const lo = 288, ue = {
1456
1499
  root: {
1457
- width: to,
1500
+ width: lo,
1458
1501
  overflow: "auto"
1459
1502
  },
1460
1503
  toggle: {
@@ -1554,9 +1597,9 @@ const to = 288, ue = {
1554
1597
  }) => t.primary.main
1555
1598
  }
1556
1599
  }
1557
- }, oo = {
1600
+ }, ro = {
1558
1601
  toggle: {
1559
- title: "Toggle legend"
1602
+ title: "Toggle basemaps controls"
1560
1603
  },
1561
1604
  header: {
1562
1605
  title: "Basemaps",
@@ -1565,207 +1608,211 @@ const to = 288, ue = {
1565
1608
  }
1566
1609
  }
1567
1610
  };
1568
- function no(t) {
1611
+ function co(t) {
1569
1612
  const e = R(6), {
1570
1613
  isMobile: r,
1571
1614
  labels: o,
1572
- onChangeCollapsed: l
1573
- } = t, s = r === void 0 ? !1 : r;
1574
- let n;
1575
- e[0] !== s || e[1] !== o || e[2] !== l ? (n = s && /* @__PURE__ */ D(j, { children: [
1576
- /* @__PURE__ */ i(F, { variant: "caption", flexGrow: 1, children: o.title }),
1577
- /* @__PURE__ */ i(he, { title: o.actions.close, children: /* @__PURE__ */ i(ae, { size: "small", onClick: l, "aria-label": o.actions.close, children: /* @__PURE__ */ i(We, {}) }) })
1578
- ] }), e[0] = s, e[1] = o, e[2] = l, e[3] = n) : n = e[3];
1579
- let c;
1580
- return e[4] !== n ? (c = /* @__PURE__ */ i(W, { sx: ue.header, children: n }), e[4] = n, e[5] = c) : c = e[5], c;
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];
1622
+ 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;
1581
1624
  }
1582
- function io(t) {
1625
+ function so(t) {
1583
1626
  const e = R(5), {
1584
1627
  title: r,
1585
1628
  children: o,
1586
- collapsed: l
1629
+ collapsed: n
1587
1630
  } = t;
1588
- if (l === void 0 ? !1 : l)
1631
+ if (n === void 0 ? !1 : n)
1589
1632
  return o;
1590
- let n;
1591
- e[0] !== r ? (n = /* @__PURE__ */ i(F, { variant: "caption", color: "textSecondary", sx: ue.groupWrapper.content, children: r }), e[0] = r, e[1] = n) : n = e[1];
1592
- let c;
1593
- return e[2] !== o || e[3] !== n ? (c = /* @__PURE__ */ D(j, { children: [
1594
- n,
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];
1635
+ let s;
1636
+ return e[2] !== o || e[3] !== i ? (s = /* @__PURE__ */ O(j, { children: [
1637
+ i,
1595
1638
  o
1596
- ] }), e[2] = o, e[3] = n, e[4] = c) : c = e[4], c;
1639
+ ] }), e[2] = o, e[3] = i, e[4] = s) : s = e[4], s;
1597
1640
  }
1598
- function lo(t) {
1641
+ function ao(t) {
1599
1642
  const e = R(9), {
1600
1643
  values: r,
1601
1644
  selected: o,
1602
- onChange: l
1645
+ onChange: n
1603
1646
  } = t;
1604
- let s;
1605
- if (e[0] !== l || e[1] !== o || e[2] !== r) {
1606
- let c;
1607
- e[4] !== l || e[5] !== o ? (c = (a) => {
1608
- const h = a.id === o;
1609
- return /* @__PURE__ */ D(W, { sx: ue.item.container, component: "button", "aria-label": a.label, onClick: () => l(a.id), children: [
1610
- /* @__PURE__ */ i("img", { src: a.icon, "aria-label": a.label + " icon", "data-active": h }),
1611
- /* @__PURE__ */ i(F, { variant: "caption", sx: {
1612
- ...h && ue.item.selected
1647
+ let c;
1648
+ if (e[0] !== n || e[1] !== o || e[2] !== r) {
1649
+ 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: {
1655
+ ...u && ue.item.selected
1613
1656
  }, children: a.label })
1614
1657
  ] }, a.id);
1615
- }, e[4] = l, e[5] = o, e[6] = c) : c = e[6], s = r.map(c), e[0] = l, e[1] = o, e[2] = r, e[3] = s;
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;
1616
1659
  } else
1617
- s = e[3];
1618
- let n;
1619
- return e[7] !== s ? (n = /* @__PURE__ */ i(W, { sx: ue.group, children: s }), e[7] = s, e[8] = n) : n = e[8], n;
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;
1620
1663
  }
1621
- function ro(t) {
1664
+ function uo(t) {
1622
1665
  const e = R(20), {
1623
1666
  ref: r,
1624
1667
  children: o,
1625
- collapsed: l,
1626
- isMobile: s,
1627
- position: n,
1628
- sx: c,
1668
+ collapsed: n,
1669
+ isMobile: c,
1670
+ position: i,
1671
+ sx: s,
1629
1672
  slotProps: a,
1630
- onChangeCollapsed: h
1673
+ onChangeCollapsed: u
1631
1674
  } = t;
1632
- if (s === void 0 ? !1 : s) {
1633
- const M = !l;
1634
- let y;
1635
- return e[0] !== o || e[1] !== h || e[2] !== M ? (y = /* @__PURE__ */ i(dt, { anchor: "bottom", open: M, onClose: h, children: o }), e[0] = o, e[1] = h, e[2] = M, e[3] = y) : y = e[3], y;
1675
+ if (c === void 0 ? !1 : c) {
1676
+ const x = !n;
1677
+ 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;
1636
1679
  }
1637
- const m = !l;
1680
+ const h = !n;
1638
1681
  let p;
1639
- e[4] !== h ? (p = () => h(!0), e[4] = h, e[5] = p) : p = e[5];
1640
- const b = n.startsWith("bottom") ? "bottom" : "top", w = n.endsWith("right") ? "left" : "right";
1641
- let v;
1642
- e[6] !== b || e[7] !== w ? (v = {
1643
- vertical: b,
1644
- horizontal: w
1645
- }, e[6] = b, e[7] = w, e[8] = v) : v = e[8];
1646
- const C = n.startsWith("bottom") ? "bottom" : "top", d = n.endsWith("right") ? "right" : "left";
1647
- let f;
1648
- e[9] !== C || e[10] !== d ? (f = {
1682
+ 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";
1690
+ let m;
1691
+ e[9] !== C || e[10] !== d ? (m = {
1649
1692
  vertical: C,
1650
1693
  horizontal: d
1651
- }, e[9] = C, e[10] = d, e[11] = f) : f = e[11];
1652
- let g;
1653
- return e[12] !== o || e[13] !== a || e[14] !== c || e[15] !== m || e[16] !== p || e[17] !== v || e[18] !== f ? (g = /* @__PURE__ */ i(ut, { sx: c, anchorEl: r, open: m, onClose: p, anchorOrigin: v, transformOrigin: f, slotProps: a, children: o }), e[12] = o, e[13] = a, e[14] = c, e[15] = m, e[16] = p, e[17] = v, e[18] = f, e[19] = g) : g = e[19], g;
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;
1654
1697
  }
1655
- function xo(t) {
1656
- const e = R(51), {
1698
+ function _o(t) {
1699
+ const e = R(52), {
1657
1700
  options: r,
1658
1701
  labels: o,
1659
- position: l,
1660
- selected: s,
1661
- onChange: n
1702
+ position: n,
1703
+ selected: c,
1704
+ onChange: i,
1705
+ TooltipProps: s
1662
1706
  } = t;
1663
- let c;
1664
- e[0] !== r ? (c = r === void 0 ? [] : r, e[0] = r, e[1] = c) : c = e[1];
1665
- const a = c, h = l === void 0 ? "bottom-right" : l, u = s === void 0 ? null : s, [m, p] = ie(null), b = ze(null), [w, v] = ie(null), C = ht();
1666
- let d;
1667
- e[2] !== C.breakpoints ? (d = C.breakpoints.down("sm"), e[2] = C.breakpoints, e[3] = d) : d = e[3];
1668
- const f = ft(d);
1669
- let g;
1670
- e[4] !== o ? (g = o ?? {}, e[4] = o, e[5] = g) : g = e[5];
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();
1710
+ let m;
1711
+ 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];
1715
+ 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;
1671
1718
  let M;
1672
- e[6] !== g ? (M = Se(oo, g), e[6] = g, e[7] = M) : M = e[7];
1673
- const y = M, I = !m;
1674
- let A;
1675
- if (e[8] !== a || e[9] !== u) {
1676
- let te;
1677
- e[11] !== u ? (te = (re) => re.id === u, e[11] = u, e[12] = te) : te = e[12], A = a.find(te), e[8] = a, e[9] = u, e[10] = A;
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;
1678
1722
  } else
1679
- A = e[10];
1680
- const x = A, _ = Object.groupBy(a, co), S = Object.keys(_).length;
1681
- let L, O;
1682
- e[13] !== w ? (O = () => {
1683
- if (b.current && clearTimeout(b.current), !!w)
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)
1684
1728
  return b.current = setTimeout(() => {
1685
- p(null);
1686
- }, w), () => {
1729
+ y(null);
1730
+ }, g), () => {
1687
1731
  b.current && clearTimeout(b.current);
1688
1732
  };
1689
- }, L = [w], e[13] = w, e[14] = L, e[15] = O) : (L = e[14], O = e[15]), Ie(O, L);
1690
- let T;
1691
- e[16] === Symbol.for("react.memo_cache_sentinel") ? (T = () => {
1692
- v(null);
1693
- }, e[16] = T) : T = e[16];
1694
- const k = T;
1733
+ }, L = [g], e[13] = g, e[14] = L, e[15] = _) : (L = e[14], _ = e[15]), Re(_, L);
1734
+ let k;
1735
+ e[16] === Symbol.for("react.memo_cache_sentinel") ? (k = () => {
1736
+ C(null);
1737
+ }, e[16] = k) : k = e[16];
1738
+ const E = k;
1695
1739
  let B;
1696
1740
  e[17] === Symbol.for("react.memo_cache_sentinel") ? (B = () => {
1697
- v(400);
1741
+ C(400);
1698
1742
  }, e[17] = B) : B = e[17];
1699
- const E = B, P = be;
1700
- let Z;
1701
- e[18] === Symbol.for("react.memo_cache_sentinel") ? (Z = (te) => {
1702
- p(te.currentTarget);
1703
- }, e[18] = Z) : Z = e[18];
1704
- const G = x == null ? void 0 : x.icon, oe = (x == null ? void 0 : x.label) ?? "Basemap";
1743
+ const Z = B, V = xe;
1705
1744
  let U;
1706
- e[19] !== G || e[20] !== oe ? (U = /* @__PURE__ */ i("img", { src: G, alt: oe }), e[19] = G, e[20] = oe, e[21] = U) : U = e[21];
1707
- let N;
1708
- e[22] !== y.toggle.title || e[23] !== U ? (N = /* @__PURE__ */ i(ae, { sx: ue.toggle, title: y.toggle.title, onClick: Z, children: U }), e[22] = y.toggle.title, e[23] = U, e[24] = N) : N = e[24];
1709
- const ne = ro, H = `translate3d(${h.endsWith("right") ? "-8px" : "8px"}, ${h.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
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];
1710
1751
  let X;
1711
- e[25] !== H ? (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 ? ($ = {
1712
1756
  paper: {
1713
1757
  sx: {
1714
1758
  ...ue.root,
1715
- transform: H
1759
+ transform: ie
1716
1760
  },
1717
- onMouseOver: k,
1718
- onMouseLeave: E
1761
+ onMouseOver: E,
1762
+ onMouseLeave: Z
1719
1763
  }
1720
- }, e[25] = H, e[26] = X) : X = e[26];
1721
- let $;
1722
- e[27] === Symbol.for("react.memo_cache_sentinel") ? ($ = () => p(null), e[27] = $) : $ = e[27];
1723
- let V;
1724
- e[28] === Symbol.for("react.memo_cache_sentinel") ? (V = () => p(null), e[28] = V) : V = e[28];
1725
- let J;
1726
- e[29] !== f || e[30] !== y.header ? (J = /* @__PURE__ */ i(no, { isMobile: f, labels: y.header, onChangeCollapsed: V }), e[29] = f, e[30] = y.header, e[31] = J) : J = e[31];
1727
- let q;
1728
- e[32] !== S || e[33] !== y.header || e[34] !== n || e[35] !== u ? (q = (te) => {
1729
- const [re, Te] = te;
1730
- return /* @__PURE__ */ i(io, { title: re + " " + y.header.title, collapsed: S < 2, children: /* @__PURE__ */ i(lo, { values: Te, selected: u, onChange: (fe) => {
1731
- p(null), n(fe);
1732
- } }) }, re);
1733
- }, e[32] = S, e[33] = y.header, e[34] = n, e[35] = u, e[36] = q) : q = e[36];
1734
- const ee = Object.entries(_).map(q);
1735
- let de;
1736
- e[37] !== ne || e[38] !== I || e[39] !== f || e[40] !== h || e[41] !== X || e[42] !== $ || e[43] !== J || e[44] !== ee || e[45] !== m ? (de = /* @__PURE__ */ D(ne, { ref: m, slotProps: X, collapsed: I, position: h, isMobile: f, onChangeCollapsed: $, children: [
1737
- J,
1738
- ee
1739
- ] }), e[37] = ne, e[38] = I, e[39] = f, e[40] = h, e[41] = X, e[42] = $, e[43] = J, e[44] = ee, e[45] = m, e[46] = de) : de = e[46];
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];
1740
1767
  let le;
1741
- return e[47] !== P || e[48] !== N || e[49] !== de ? (le = /* @__PURE__ */ D(P, { children: [
1742
- N,
1743
- de
1744
- ] }), e[47] = P, e[48] = N, e[49] = de, e[50] = le) : le = e[50], 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);
1779
+ 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;
1745
1789
  }
1746
- function co(t) {
1790
+ function fo(t) {
1747
1791
  return t.group ?? "default";
1748
1792
  }
1749
1793
  export {
1750
- Pt as AreaIcon,
1751
- xo as BasemapsUI,
1752
- jt as BufferIcon,
1753
- mo as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1754
- ce as DEFAULT_MEASUREMENT_TOOLS_LABELS,
1755
- Ut as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
1756
- Zt as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
1757
- Mt as DrawCircleIcon,
1758
- Ct as DrawLassoIcon,
1759
- wt as DrawPolygonIcon,
1760
- xt as DrawSquareIcon,
1761
- yo as GeolocationControls,
1794
+ Vt as AreaIcon,
1795
+ _o as BasemapsUI,
1796
+ Ut as BufferIcon,
1797
+ yo as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1798
+ 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,
1762
1806
  z as LASSO_TOOLS_LABELS,
1763
- go as LassoToolsInlineUI,
1764
- po as LassoToolsUI,
1765
- wo as ListDataUI,
1766
- vo as MeasurementToolsUI,
1767
- $t as RulerIcon,
1768
- St as SelectToolIcon,
1769
- bo as ZoomControlsUI
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
1770
1817
  };
1771
1818
  //# sourceMappingURL=components.js.map