@carto/ps-react-ui 4.2.2 → 4.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { jsx as l, jsxs as L, Fragment as z } from "react/jsx-runtime";
2
2
  import { c as E } from "react/compiler-runtime";
3
3
  import { ArrowDropDown as Pe, MoreVertOutlined as ze, Close as Be, MyLocationOutlined as Ne, LocationDisabledOutlined as Fe, CropFreeOutlined as He, AddOutlined as Xe, RemoveOutlined as qe } from "@mui/icons-material";
4
- import { Tooltip as Ke, Chip as Ye, Paper as ye, IconButton as se, Menu as $e, Box as X, Divider as ae, MenuItem as ge, ListItemIcon as je, SvgIcon as _e, ListItemText as be, ToggleButton as ve, Typography as Y, ToggleButtonGroup as Ze, Button as we, alpha as Qe, Dialog as Je, DialogTitle as et, DialogContent as tt, FormControl as ot, RadioGroup as lt, FormControlLabel as nt, Radio as it, DialogActions as rt, CircularProgress as st, Grid as me, Skeleton as Se, Alert as at, ListItem as ct, List as dt, Drawer as ut, Popover as ht, useTheme as pt, useMediaQuery as ft } from "@mui/material";
4
+ import { Tooltip as Ke, Chip as Ye, Paper as ye, IconButton as se, Menu as $e, Box as X, Divider as ae, MenuItem as ge, ListItemIcon as je, SvgIcon as _e, ListItemText as be, ToggleButton as ve, Typography as Y, ToggleButtonGroup as Ze, Button as we, alpha as Qe, Dialog as Je, DialogTitle as et, DialogContent as tt, FormControl as ot, RadioGroup as lt, FormControlLabel as nt, Radio as it, DialogActions as rt, CircularProgress as st, Grid as me, Skeleton as Se, Alert as at, ListItem as ct, List as dt, Drawer as ut, Popover as ht, useTheme as ft, useMediaQuery as pt } from "@mui/material";
5
5
  import { useState as ne, useMemo as Ce, useRef as Oe, useEffect as De, useLayoutEffect as mt } from "react";
6
6
  function gt(t) {
7
7
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
@@ -41,15 +41,15 @@ function bt() {
41
41
  var g = m.customMerge(d);
42
42
  return typeof g == "function" ? g : b;
43
43
  }
44
- function p(d) {
44
+ function h(d) {
45
45
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(d).filter(function(m) {
46
46
  return Object.propertyIsEnumerable.call(d, m);
47
47
  }) : [];
48
48
  }
49
- function h(d) {
50
- return Object.keys(d).concat(p(d));
49
+ function f(d) {
50
+ return Object.keys(d).concat(h(d));
51
51
  }
52
- function f(d, m) {
52
+ function p(d, m) {
53
53
  try {
54
54
  return m in d;
55
55
  } catch {
@@ -57,14 +57,14 @@ function bt() {
57
57
  }
58
58
  }
59
59
  function v(d, m) {
60
- return f(d, m) && !(Object.hasOwnProperty.call(d, m) && Object.propertyIsEnumerable.call(d, m));
60
+ return p(d, m) && !(Object.hasOwnProperty.call(d, m) && Object.propertyIsEnumerable.call(d, m));
61
61
  }
62
62
  function y(d, m, g) {
63
63
  var C = {};
64
- return g.isMergeableObject(d) && h(d).forEach(function(w) {
64
+ return g.isMergeableObject(d) && f(d).forEach(function(w) {
65
65
  C[w] = s(d[w], g);
66
- }), h(m).forEach(function(w) {
67
- v(d, w) || (f(d, w) && g.isMergeableObject(m[w]) ? C[w] = u(w, g)(d[w], m[w], g) : C[w] = s(m[w], g));
66
+ }), f(m).forEach(function(w) {
67
+ v(d, w) || (p(d, w) && g.isMergeableObject(m[w]) ? C[w] = u(w, g)(d[w], m[w], g) : C[w] = s(m[w], g));
68
68
  }), C;
69
69
  }
70
70
  function b(d, m, g) {
@@ -360,18 +360,18 @@ function Ue(t) {
360
360
  onChipToggle: a,
361
361
  onDelete: r
362
362
  } = t, s = o.visible ? "active" : "inactive", c = i?.tooltip?.[s] ?? K.chip.tooltip[s], u = n?.TooltipProps;
363
- let p;
364
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (p = {
363
+ let h;
364
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = {
365
365
  ...J.chip.chip
366
- }, e[0] = p) : p = e[0];
367
- const h = o.visible ? "secondary" : "default";
368
- let f;
369
- e[1] !== r || e[2] !== o.id ? (f = () => r(o.id), e[1] = r, e[2] = o.id, e[3] = f) : f = e[3];
366
+ }, e[0] = h) : h = e[0];
367
+ const f = o.visible ? "secondary" : "default";
368
+ let p;
369
+ e[1] !== r || e[2] !== o.id ? (p = () => r(o.id), e[1] = r, e[2] = o.id, e[3] = p) : p = e[3];
370
370
  let v;
371
371
  e[4] !== a || e[5] !== o.id || e[6] !== o.visible ? (v = () => a(o.id, !o.visible), e[4] = a, e[5] = o.id, e[6] = o.visible, e[7] = v) : v = e[7];
372
372
  const y = n?.ChipsProps;
373
373
  let b;
374
- e[8] !== h || e[9] !== f || e[10] !== v || e[11] !== y || e[12] !== o.label ? (b = /* @__PURE__ */ l(Ye, { sx: p, color: h, size: "small", onDelete: f, label: o.label, onClick: v, ...y }), e[8] = h, e[9] = f, e[10] = v, e[11] = y, e[12] = o.label, e[13] = b) : b = e[13];
374
+ e[8] !== f || e[9] !== p || e[10] !== v || e[11] !== y || e[12] !== o.label ? (b = /* @__PURE__ */ l(Ye, { sx: h, color: f, size: "small", onDelete: p, label: o.label, onClick: v, ...y }), e[8] = f, e[9] = p, e[10] = v, e[11] = y, e[12] = o.label, e[13] = b) : b = e[13];
375
375
  let x;
376
376
  return e[14] !== c || e[15] !== u || e[16] !== b ? (x = /* @__PURE__ */ l(de, { title: c, placement: "bottom", ...u, children: b }), e[14] = c, e[15] = u, e[16] = b, e[17] = x) : x = e[17], x;
377
377
  }
@@ -385,9 +385,9 @@ function ce(t) {
385
385
  modes: s,
386
386
  modesMapping: c,
387
387
  modeSelected: u,
388
- PaperProps: p,
389
- onActionToggle: h,
390
- onChipToggle: f,
388
+ PaperProps: h,
389
+ onActionToggle: f,
390
+ onChipToggle: p,
391
391
  onDelete: v,
392
392
  onChangeMode: y,
393
393
  onAllChipToggle: b,
@@ -401,7 +401,7 @@ function ce(t) {
401
401
  e[0] !== o ? (w = o === void 0 ? [] : o, e[0] = o, e[1] = w) : w = e[1];
402
402
  const _ = w;
403
403
  let O;
404
- e[2] !== p ? (O = p === void 0 ? {} : p, e[2] = p, e[3] = O) : O = e[3];
404
+ e[2] !== h ? (O = h === void 0 ? {} : h, e[2] = h, e[3] = O) : O = e[3];
405
405
  let S, T;
406
406
  e[4] !== O ? ({
407
407
  sx: T,
@@ -409,7 +409,7 @@ function ce(t) {
409
409
  } = O, e[4] = O, e[5] = S, e[6] = T) : (S = e[5], T = e[6]);
410
410
  const I = d === void 0 ? ce.Chips : d, D = m === void 0 ? ce.Action : m, A = g === void 0 ? ce.SecondaryActions : g, M = C === void 0 ? ce.Options : C;
411
411
  let k;
412
- e[7] !== S || e[8] !== i || e[9] !== a || e[10] !== n || e[11] !== r || e[12] !== u || e[13] !== s || e[14] !== c || e[15] !== h || e[16] !== b || e[17] !== x || e[18] !== y || e[19] !== f || e[20] !== v || e[21] !== _ ? (k = {
412
+ e[7] !== S || e[8] !== i || e[9] !== a || e[10] !== n || e[11] !== r || e[12] !== u || e[13] !== s || e[14] !== c || e[15] !== f || e[16] !== b || e[17] !== x || e[18] !== y || e[19] !== p || e[20] !== v || e[21] !== _ ? (k = {
413
413
  enabled: n,
414
414
  values: _,
415
415
  actionProps: i,
@@ -419,13 +419,13 @@ function ce(t) {
419
419
  modesMapping: c,
420
420
  modeSelected: u,
421
421
  PaperProps: S,
422
- onActionToggle: h,
423
- onChipToggle: f,
422
+ onActionToggle: f,
423
+ onChipToggle: p,
424
424
  onDelete: v,
425
425
  onChangeMode: y,
426
426
  onAllChipToggle: b,
427
427
  onAllDelete: x
428
- }, e[7] = S, e[8] = i, e[9] = a, e[10] = n, e[11] = r, e[12] = u, e[13] = s, e[14] = c, e[15] = h, e[16] = b, e[17] = x, e[18] = y, e[19] = f, e[20] = v, e[21] = _, e[22] = k) : k = e[22];
428
+ }, e[7] = S, e[8] = i, e[9] = a, e[10] = n, e[11] = r, e[12] = u, e[13] = s, e[14] = c, e[15] = f, e[16] = b, e[17] = x, e[18] = y, e[19] = p, e[20] = v, e[21] = _, e[22] = k) : k = e[22];
429
429
  const R = k;
430
430
  let P;
431
431
  e[23] !== T ? (P = {
@@ -456,12 +456,12 @@ function St(t) {
456
456
  children: a,
457
457
  onActionToggle: r
458
458
  } = t, s = i ? "active" : "inactive", c = o?.tooltip?.[s] ?? K.action.tooltip[s], u = n?.TooltipProps;
459
- let p;
460
- e[0] !== i || e[1] !== r ? (p = () => r(!i), e[0] = i, e[1] = r, e[2] = p) : p = e[2];
461
459
  let h;
462
- e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== p ? (h = /* @__PURE__ */ l(ve, { value: "toggle", sx: J.actions.icon, onClick: p, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = p, e[7] = h) : h = e[7];
460
+ e[0] !== i || e[1] !== r ? (h = () => r(!i), e[0] = i, e[1] = r, e[2] = h) : h = e[2];
463
461
  let f;
464
- return e[8] !== c || e[9] !== u || e[10] !== h ? (f = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: h }), e[8] = c, e[9] = u, e[10] = h, e[11] = f) : f = e[11], f;
462
+ e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== h ? (f = /* @__PURE__ */ l(ve, { value: "toggle", sx: J.actions.icon, onClick: h, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = h, e[7] = f) : f = e[7];
463
+ let p;
464
+ return e[8] !== c || e[9] !== u || e[10] !== f ? (p = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: f }), e[8] = c, e[9] = u, e[10] = f, e[11] = p) : p = e[11], p;
465
465
  }
466
466
  function We({
467
467
  TriggerProps: {
@@ -531,16 +531,16 @@ function At(t) {
531
531
  onAllChipToggle: i,
532
532
  onAllDelete: a
533
533
  } = t;
534
- if (n.length <= 1)
534
+ if (!n?.length || n.length <= 1)
535
535
  return null;
536
- const s = n.some(_t) ? o?.actions?.toggleAll?.active ?? K.actions.toggleAll.active : o?.actions?.toggleAll?.inactive ?? K.actions.toggleAll.inactive, c = o?.actions?.deleteAll ?? K.actions.deleteAll;
536
+ const s = n?.some(_t) ? o?.actions?.toggleAll?.active ?? K.actions.toggleAll.active : o?.actions?.toggleAll?.inactive ?? K.actions.toggleAll.inactive, c = o?.actions?.deleteAll ?? K.actions.deleteAll;
537
537
  let u;
538
538
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ l(ae, { orientation: "vertical", flexItem: !0 }), e[0] = u) : u = e[0];
539
- let p, h;
540
- e[1] === Symbol.for("react.memo_cache_sentinel") ? (p = {
539
+ let h, f;
540
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (h = {
541
541
  Icon: /* @__PURE__ */ l(ze, {}),
542
542
  sx: J.options.more
543
- }, h = {
543
+ }, f = {
544
544
  anchorOrigin: {
545
545
  vertical: "bottom",
546
546
  horizontal: "right"
@@ -549,20 +549,20 @@ function At(t) {
549
549
  vertical: "top",
550
550
  horizontal: "right"
551
551
  }
552
- }, e[1] = p, e[2] = h) : (p = e[1], h = e[2]);
553
- let f;
554
- return e[3] !== c || e[4] !== i || e[5] !== a || e[6] !== s ? (f = /* @__PURE__ */ L(z, { children: [
552
+ }, e[1] = h, e[2] = f) : (h = e[1], f = e[2]);
553
+ let p;
554
+ return e[3] !== c || e[4] !== i || e[5] !== a || e[6] !== s ? (p = /* @__PURE__ */ L(z, { children: [
555
555
  u,
556
- /* @__PURE__ */ l(We, { TriggerProps: p, MenuProps: h, children: (v) => /* @__PURE__ */ L(z, { children: [
556
+ /* @__PURE__ */ l(We, { TriggerProps: h, MenuProps: f, children: (v) => /* @__PURE__ */ L(z, { children: [
557
557
  /* @__PURE__ */ l(ge, { color: "inherit", onClick: () => {
558
- i(), v.onClose();
558
+ i?.(), v.onClose();
559
559
  }, children: s }),
560
560
  /* @__PURE__ */ l(ae, {}),
561
561
  /* @__PURE__ */ l(ge, { color: "error", onClick: () => {
562
- a(), v.onClose();
562
+ a?.(), v.onClose();
563
563
  }, children: /* @__PURE__ */ l(Y, { variant: "body2", color: "error", children: c }) })
564
564
  ] }) })
565
- ] }), e[3] = c, e[4] = i, e[5] = a, e[6] = s, e[7] = f) : f = e[7], f;
565
+ ] }), e[3] = c, e[4] = i, e[5] = a, e[6] = s, e[7] = p) : p = e[7], p;
566
566
  }
567
567
  function _t(t) {
568
568
  return t.visible;
@@ -576,8 +576,8 @@ ce.Action = function({
576
576
  labels: r,
577
577
  onActionToggle: s
578
578
  }) {
579
- const c = Ce(() => xe(e, n), [e, n]), u = (v) => s(v), h = (o ?? "") in e ? o : Object.keys(c)[0], f = c[h];
580
- return /* @__PURE__ */ l(St, { actionProps: i, labels: r?.action, enabled: a, onActionToggle: u, children: f?.icon && /* @__PURE__ */ l(f.icon, {}) });
579
+ const c = Ce(() => xe(e ?? {}, n ?? {}), [e, n]), u = (v) => s?.(v), f = (o ? o in (e ?? {}) : !1) ? o : Object.keys(c)[0], p = c[f];
580
+ return /* @__PURE__ */ l(St, { actionProps: i, labels: r?.action, enabled: a ?? !1, onActionToggle: u, children: p?.icon && /* @__PURE__ */ l(p.icon, {}) });
581
581
  };
582
582
  ce.Chips = function({
583
583
  values: e,
@@ -587,8 +587,8 @@ ce.Chips = function({
587
587
  onChipToggle: a,
588
588
  onActionToggle: r
589
589
  }) {
590
- const s = (c) => (r(!1), i(c));
591
- return !!e.length && /* @__PURE__ */ l(X, { sx: J.chip.container, children: e.map((c) => /* @__PURE__ */ l(Ue, { value: c, labels: n?.chip, chipProps: o, onDelete: s, onChipToggle: a }, c.id)) });
590
+ const s = (c) => (r?.(!1), i?.(c));
591
+ return !!e?.length && /* @__PURE__ */ l(X, { sx: J.chip.container, children: e?.map((c) => /* @__PURE__ */ l(Ue, { value: c, labels: n?.chip, chipProps: o, onDelete: s, onChipToggle: (u, h) => a?.(u, h) }, c.id)) });
592
592
  };
593
593
  ce.SecondaryActions = At;
594
594
  ce.Options = function({
@@ -600,22 +600,22 @@ ce.Options = function({
600
600
  onChangeMode: r,
601
601
  ...s
602
602
  }) {
603
- const c = Ce(() => xe(n, o), [n, o]), {
603
+ const c = Ce(() => xe(n ?? {}, o ?? {}), [n, o]), {
604
604
  edit: u,
605
- ...p
606
- } = c, f = (i ?? "") in n ? i : Object.keys(c)[0], v = Object.values(p), y = (b) => r?.(b);
605
+ ...h
606
+ } = c, p = (i ? i in (n ?? {}) : !1) ? i : Object.keys(c)[0], v = Object.values(h), y = (b) => r?.(b);
607
607
  return /* @__PURE__ */ L(z, { children: [
608
- /* @__PURE__ */ l(Tt, { data: v, labels: a?.options, children: /* @__PURE__ */ l(Le, { ...s, labels: a?.options, data: v, modeSelected: f, onChangeMode: y }) }),
608
+ /* @__PURE__ */ l(Tt, { data: v, labels: a?.options, children: /* @__PURE__ */ l(Le, { ...s, labels: a?.options, data: v, modeSelected: p, onChangeMode: y }) }),
609
609
  !!u && /* @__PURE__ */ L(z, { children: [
610
610
  /* @__PURE__ */ l(ae, {}),
611
611
  /* @__PURE__ */ l(Le, { ...s, labels: a?.options, data: [{
612
612
  ...u,
613
- disabled: !e.length
614
- }], modeSelected: f, onChangeMode: y })
613
+ disabled: !e?.length
614
+ }], modeSelected: p, onChangeMode: y })
615
615
  ] })
616
616
  ] });
617
617
  };
618
- function po({
618
+ function fo({
619
619
  enabled: t,
620
620
  values: e = [],
621
621
  chipProps: n,
@@ -628,16 +628,16 @@ function po({
628
628
  ...c
629
629
  } = {},
630
630
  onChipToggle: u,
631
- onDelete: p,
632
- onChangeMode: h,
633
- onAllChipToggle: f,
631
+ onDelete: h,
632
+ onChangeMode: f,
633
+ onAllChipToggle: p,
634
634
  onAllDelete: v
635
635
  }) {
636
636
  const y = Ce(() => xe(i, a), [i, a]), {
637
637
  edit: b,
638
638
  ...x
639
- } = y, d = (O) => p(O), m = (O, S) => {
640
- O.preventDefault(), h?.(S);
639
+ } = y, d = (O) => h(O), m = (O, S) => {
640
+ O.preventDefault(), f?.(S);
641
641
  }, C = (r ?? "") in i ? r : Object.keys(y)[0], w = t ? y[C] : null, _ = Object.values(x);
642
642
  return /* @__PURE__ */ L(X, { sx: {
643
643
  ...J.container,
@@ -656,7 +656,7 @@ function po({
656
656
  /* @__PURE__ */ l(ae, { flexItem: !0 }),
657
657
  /* @__PURE__ */ l(Dt, { hasValues: !!e.length, labels: o?.noData }),
658
658
  !!e.length && /* @__PURE__ */ l(X, { sx: J.chip.container, className: "inline", children: e.map((O) => /* @__PURE__ */ l(Ue, { value: O, labels: o?.chip, chipProps: n, onDelete: d, onChipToggle: u }, O.id)) }),
659
- /* @__PURE__ */ l(It, { values: e, labels: o?.actions, onAllChipToggle: f, onAllDelete: v })
659
+ /* @__PURE__ */ l(It, { values: e, labels: o?.actions, onAllChipToggle: p, onAllDelete: v })
660
660
  ] });
661
661
  }
662
662
  function Ot(t) {
@@ -715,17 +715,17 @@ function It(t) {
715
715
  const s = n.some(Lt) ? o?.toggleAll?.active ?? K.actions.toggleAll.active : o?.toggleAll?.inactive ?? K.actions.toggleAll.inactive, c = o?.deleteAll ?? K.actions.deleteAll;
716
716
  let u;
717
717
  e[0] !== i ? (u = () => i(), e[0] = i, e[1] = u) : u = e[1];
718
- let p;
719
- e[2] !== u || e[3] !== s ? (p = /* @__PURE__ */ l(we, { color: "inherit", onClick: u, children: s }), e[2] = u, e[3] = s, e[4] = p) : p = e[4];
720
718
  let h;
721
- e[5] !== a ? (h = () => a(), e[5] = a, e[6] = h) : h = e[6];
719
+ e[2] !== u || e[3] !== s ? (h = /* @__PURE__ */ l(we, { color: "inherit", onClick: u, children: s }), e[2] = u, e[3] = s, e[4] = h) : h = e[4];
722
720
  let f;
723
- e[7] !== c || e[8] !== h ? (f = /* @__PURE__ */ l(we, { color: "error", onClick: h, children: c }), e[7] = c, e[8] = h, e[9] = f) : f = e[9];
721
+ e[5] !== a ? (f = () => a(), e[5] = a, e[6] = f) : f = e[6];
722
+ let p;
723
+ e[7] !== c || e[8] !== f ? (p = /* @__PURE__ */ l(we, { color: "error", onClick: f, children: c }), e[7] = c, e[8] = f, e[9] = p) : p = e[9];
724
724
  let v;
725
- return e[10] !== p || e[11] !== f ? (v = /* @__PURE__ */ L(X, { children: [
726
- p,
727
- f
728
- ] }), e[10] = p, e[11] = f, e[12] = v) : v = e[12], v;
725
+ return e[10] !== h || e[11] !== p ? (v = /* @__PURE__ */ L(X, { children: [
726
+ h,
727
+ p
728
+ ] }), e[10] = h, e[11] = p, e[12] = v) : v = e[12], v;
729
729
  }
730
730
  function Lt(t) {
731
731
  return t.visible;
@@ -976,7 +976,7 @@ const re = {
976
976
  }
977
977
  }
978
978
  };
979
- function fo(t) {
979
+ function po(t) {
980
980
  const e = E(46), {
981
981
  enabled: n,
982
982
  actionProps: o,
@@ -986,9 +986,9 @@ function fo(t) {
986
986
  unitsMapping: s,
987
987
  modeSelected: c,
988
988
  PaperProps: u,
989
- units: p,
990
- unitSelected: h,
991
- onActionToggle: f,
989
+ units: h,
990
+ unitSelected: f,
991
+ onActionToggle: p,
992
992
  onChangeMode: v,
993
993
  onChangeUnit: y
994
994
  } = t, b = i === void 0 ? re : i, x = r === void 0 ? Bt : r, d = s === void 0 ? Pt : s;
@@ -1000,7 +1000,7 @@ function fo(t) {
1000
1000
  ...g
1001
1001
  } = m, e[2] = m, e[3] = g, e[4] = C) : (g = e[3], C = e[4]);
1002
1002
  let w;
1003
- e[5] !== f ? (w = (V) => f(!!V), e[5] = f, e[6] = w) : w = e[6];
1003
+ e[5] !== p ? (w = (V) => p(!!V), e[5] = p, e[6] = w) : w = e[6];
1004
1004
  const _ = w;
1005
1005
  let O, S;
1006
1006
  e[7] !== a || e[8] !== x ? (S = xe(a, x), e[7] = a, e[8] = x, e[9] = S) : S = e[9], O = S;
@@ -1009,11 +1009,11 @@ function fo(t) {
1009
1009
  e[10] !== T || e[11] !== I || e[12] !== c ? (D = I ? c : Object.keys(T)[0], e[10] = T, e[11] = I, e[12] = c, e[13] = D) : D = e[13];
1010
1010
  const A = D, M = T[A];
1011
1011
  let k;
1012
- const R = p[A];
1012
+ const R = h[A];
1013
1013
  let P;
1014
- e[14] !== A || e[15] !== R || e[16] !== p ? (P = Object.keys(p).length >= 1 ? p : {
1014
+ e[14] !== A || e[15] !== R || e[16] !== h ? (P = Object.keys(h).length >= 1 ? h : {
1015
1015
  [A]: R.slice(0, 1)
1016
- }, e[14] = A, e[15] = R, e[16] = p, e[17] = P) : P = e[17];
1016
+ }, e[14] = A, e[15] = R, e[16] = h, e[17] = P) : P = e[17];
1017
1017
  const $ = P[A];
1018
1018
  let B;
1019
1019
  if (e[18] !== $ || e[19] !== d) {
@@ -1036,7 +1036,7 @@ function fo(t) {
1036
1036
  e[25] !== o || e[26] !== n || e[27] !== _ || e[28] !== G || e[29] !== ee ? (F = /* @__PURE__ */ l($t, { actionProps: o, labels: G, enabled: n, onActionToggle: _, children: ee }), e[25] = o, e[26] = n, e[27] = _, e[28] = G, e[29] = ee, e[30] = F) : F = e[30];
1037
1037
  const ie = b?.options;
1038
1038
  let Z;
1039
- e[31] !== N || e[32] !== T || e[33] !== A || e[34] !== v || e[35] !== y || e[36] !== ie || e[37] !== h ? (Z = /* @__PURE__ */ l(jt, { labels: ie, modes: T, modeSelected: A, units: N, unitSelected: h, onChangeMode: v, onChangeUnit: y }), e[31] = N, e[32] = T, e[33] = A, e[34] = v, e[35] = y, e[36] = ie, e[37] = h, e[38] = Z) : Z = e[38];
1039
+ e[31] !== N || e[32] !== T || e[33] !== A || e[34] !== v || e[35] !== y || e[36] !== ie || e[37] !== f ? (Z = /* @__PURE__ */ l(jt, { labels: ie, modes: T, modeSelected: A, units: N, unitSelected: f, onChangeMode: v, onChangeUnit: y }), e[31] = N, e[32] = T, e[33] = A, e[34] = v, e[35] = y, e[36] = ie, e[37] = f, e[38] = Z) : Z = e[38];
1040
1040
  let H;
1041
1041
  e[39] !== F || e[40] !== Z ? (H = /* @__PURE__ */ L(X, { children: [
1042
1042
  F,
@@ -1053,12 +1053,12 @@ function $t(t) {
1053
1053
  children: a,
1054
1054
  onActionToggle: r
1055
1055
  } = t, s = i ? "active" : "inactive", c = o?.tooltip?.[s] ?? re.action.tooltip[s], u = n?.TooltipProps;
1056
- let p;
1057
- e[0] !== i || e[1] !== r ? (p = () => r(!i), e[0] = i, e[1] = r, e[2] = p) : p = e[2];
1058
1056
  let h;
1059
- e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== p ? (h = /* @__PURE__ */ l(ve, { value: "toggle", sx: Q.actions.icon, onClick: p, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = p, e[7] = h) : h = e[7];
1057
+ e[0] !== i || e[1] !== r ? (h = () => r(!i), e[0] = i, e[1] = r, e[2] = h) : h = e[2];
1060
1058
  let f;
1061
- return e[8] !== c || e[9] !== u || e[10] !== h ? (f = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: h }), e[8] = c, e[9] = u, e[10] = h, e[11] = f) : f = e[11], f;
1059
+ e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== h ? (f = /* @__PURE__ */ l(ve, { value: "toggle", sx: Q.actions.icon, onClick: h, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = h, e[7] = f) : f = e[7];
1060
+ let p;
1061
+ return e[8] !== c || e[9] !== u || e[10] !== f ? (p = /* @__PURE__ */ l(de, { title: c, placement: "right", ...u, children: f }), e[8] = c, e[9] = u, e[10] = f, e[11] = p) : p = e[11], p;
1062
1062
  }
1063
1063
  function jt(t) {
1064
1064
  const e = E(68), {
@@ -1069,7 +1069,7 @@ function jt(t) {
1069
1069
  labels: r,
1070
1070
  onChangeMode: s,
1071
1071
  onChangeUnit: c
1072
- } = t, [u, p] = ne(null), [h, f] = ne(!1);
1072
+ } = t, [u, h] = ne(null), [f, p] = ne(!1);
1073
1073
  let v, y, b, x, d, m, g, C, w, _, O, S, T, I, D, A;
1074
1074
  if (e[0] !== u || e[1] !== r?.mode?.options || e[2] !== r?.mode?.title || e[3] !== r?.units?.title || e[4] !== o || e[5] !== n || e[6] !== s || e[7] !== c || e[8] !== a || e[9] !== i) {
1075
1075
  T = Symbol.for("react.early_return_sentinel");
@@ -1083,12 +1083,12 @@ function jt(t) {
1083
1083
  const W = !!u;
1084
1084
  let G;
1085
1085
  e[28] === Symbol.for("react.memo_cache_sentinel") ? (G = (U) => {
1086
- p(U.currentTarget);
1086
+ h(U.currentTarget);
1087
1087
  }, e[28] = G) : G = e[28];
1088
1088
  const ee = G;
1089
1089
  let F;
1090
1090
  e[29] === Symbol.for("react.memo_cache_sentinel") ? (F = () => {
1091
- p(null);
1091
+ h(null);
1092
1092
  }, e[29] = F) : F = e[29];
1093
1093
  const ie = F;
1094
1094
  let Z;
@@ -1098,24 +1098,24 @@ function jt(t) {
1098
1098
  const H = Z;
1099
1099
  let q;
1100
1100
  e[32] === Symbol.for("react.memo_cache_sentinel") ? (q = () => {
1101
- f(!0);
1101
+ p(!0);
1102
1102
  }, e[32] = q) : q = e[32], b = q;
1103
1103
  let V;
1104
1104
  e[33] === Symbol.for("react.memo_cache_sentinel") ? (V = () => {
1105
- f(!1);
1105
+ p(!1);
1106
1106
  }, e[33] = V) : V = e[33], x = V;
1107
1107
  let te;
1108
1108
  e[34] !== c ? (te = (U) => {
1109
1109
  x(), c(U);
1110
1110
  }, e[34] = c, e[35] = te) : te = e[35], y = te;
1111
- const fe = r?.mode?.title ?? re.options.mode.title;
1111
+ const pe = r?.mode?.title ?? re.options.mode.title;
1112
1112
  D = r?.units?.title ?? re.options.units.title, d = $.length > 1 && A.length > 1;
1113
1113
  let oe;
1114
1114
  e[36] !== a || e[37] !== i ? (oe = i.find((U) => U.value === a) ?? i[0], e[36] = a, e[37] = i, e[38] = oe) : oe = e[38], I = oe, e[39] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ l(se, { sx: Q.options.icon, onClick: ee, children: /* @__PURE__ */ l(Pe, {}) }), e[39] = S) : S = e[39], v = $e, g = "measurement-menu", C = u, w = W, _ = ie, e[40] === Symbol.for("react.memo_cache_sentinel") ? (O = {
1115
1115
  "aria-labelledby": "basic-button",
1116
1116
  sx: Q.options.menu
1117
1117
  }, e[40] = O) : O = e[40], m = $.length > 1 && /* @__PURE__ */ L(z, { children: [
1118
- /* @__PURE__ */ l(Y, { variant: "subtitle2", color: "text.secondary", sx: Q.options.title, children: fe }),
1118
+ /* @__PURE__ */ l(Y, { variant: "subtitle2", color: "text.secondary", sx: Q.options.title, children: pe }),
1119
1119
  $.map((U) => {
1120
1120
  const he = (r?.mode?.options ?? re.options.mode.options)[U.value];
1121
1121
  return /* @__PURE__ */ L(ge, { onClick: (Me) => H(Me, U), selected: U.value === o, children: [
@@ -1133,13 +1133,13 @@ function jt(t) {
1133
1133
  let M;
1134
1134
  e[41] !== d ? (M = d && /* @__PURE__ */ l(ae, {}), e[41] = d, e[42] = M) : M = e[42];
1135
1135
  let k;
1136
- e[43] !== y || e[44] !== b || e[45] !== x || e[46] !== r || e[47] !== h || e[48] !== I || e[49] !== D || e[50] !== i || e[51] !== A.length ? (k = A.length > 1 && /* @__PURE__ */ L(z, { children: [
1136
+ e[43] !== y || e[44] !== b || e[45] !== x || e[46] !== r || e[47] !== f || e[48] !== I || e[49] !== D || e[50] !== i || e[51] !== A.length ? (k = A.length > 1 && /* @__PURE__ */ L(z, { children: [
1137
1137
  /* @__PURE__ */ L(ge, { onClick: b, children: [
1138
1138
  /* @__PURE__ */ l(be, { children: D }),
1139
1139
  /* @__PURE__ */ l(Y, { variant: "caption", fontWeight: 500, sx: Q.options.tag, children: I.short })
1140
1140
  ] }),
1141
- /* @__PURE__ */ l(Zt, { open: h, labels: r, units: i, unitSelectedValue: I, onClose: x, onSubmit: y })
1142
- ] }), e[43] = y, e[44] = b, e[45] = x, e[46] = r, e[47] = h, e[48] = I, e[49] = D, e[50] = i, e[51] = A.length, e[52] = k) : k = e[52];
1141
+ /* @__PURE__ */ l(Zt, { open: f, labels: r, units: i, unitSelectedValue: I, onClose: x, onSubmit: y })
1142
+ ] }), e[43] = y, e[44] = b, e[45] = x, e[46] = r, e[47] = f, e[48] = I, e[49] = D, e[50] = i, e[51] = A.length, e[52] = k) : k = e[52];
1143
1143
  let R;
1144
1144
  e[53] !== m || e[54] !== k || e[55] !== M ? (R = /* @__PURE__ */ L("div", { children: [
1145
1145
  m,
@@ -1164,7 +1164,7 @@ function Zt({
1164
1164
  }) {
1165
1165
  const [r, s] = ne("metric"), c = Ce(() => n.filter((x) => x.system === r), [r, n]), u = (x, d) => {
1166
1166
  s(d);
1167
- }, p = e?.units?.modal?.options ?? re.options.units.modal.options, h = p[r].options, f = e?.units?.modal?.title ?? re.options.units.modal.title, v = e?.units?.modal?.subtitle ?? re.options.units.modal.subtitle, y = e?.units?.modal?.apply ?? re.options.units.modal.apply, b = o.system === r ? o : c[0];
1167
+ }, h = e?.units?.modal?.options ?? re.options.units.modal.options, f = h[r].options, p = e?.units?.modal?.title ?? re.options.units.modal.title, v = e?.units?.modal?.subtitle ?? re.options.units.modal.subtitle, y = e?.units?.modal?.apply ?? re.options.units.modal.apply, b = o.system === r ? o : c[0];
1168
1168
  return /* @__PURE__ */ L(Je, { open: t, component: X, onClose: i, maxWidth: "xs", PaperProps: {
1169
1169
  component: "form",
1170
1170
  onSubmit: (x) => {
@@ -1174,17 +1174,17 @@ function Zt({
1174
1174
  }
1175
1175
  }, children: [
1176
1176
  /* @__PURE__ */ L(et, { sx: Q.options.modal.title, children: [
1177
- f,
1177
+ p,
1178
1178
  /* @__PURE__ */ l(se, { onClick: i, children: /* @__PURE__ */ l(Be, {}) })
1179
1179
  ] }),
1180
1180
  /* @__PURE__ */ L(tt, { sx: Q.options.modal.content, children: [
1181
1181
  /* @__PURE__ */ l(Y, { sx: Q.options.modal.subtitle, children: v }),
1182
1182
  /* @__PURE__ */ L(Ze, { color: "primary", value: r, exclusive: !0, fullWidth: !0, onChange: u, "aria-label": "system", sx: Q.options.modal.toggle, children: [
1183
- /* @__PURE__ */ l(ve, { value: "metric", children: p.metric.title }),
1184
- /* @__PURE__ */ l(ve, { value: "imperial", children: p.imperial.title })
1183
+ /* @__PURE__ */ l(ve, { value: "metric", children: h.metric.title }),
1184
+ /* @__PURE__ */ l(ve, { value: "imperial", children: h.imperial.title })
1185
1185
  ] }),
1186
1186
  /* @__PURE__ */ l(ot, { children: /* @__PURE__ */ l(lt, { "aria-labelledby": "unit-value", defaultValue: b?.value, name: "unit-value", sx: Q.options.modal.optionsGroup, children: c.map((x) => {
1187
- const d = h[x.value];
1187
+ const d = f[x.value];
1188
1188
  return /* @__PURE__ */ l(nt, { value: x.value, control: /* @__PURE__ */ l(it, {}), label: d }, x.value);
1189
1189
  }) }) }, b?.value)
1190
1190
  ] }),
@@ -1204,19 +1204,19 @@ function mo(t) {
1204
1204
  watch: r,
1205
1205
  onChange: s,
1206
1206
  onError: c
1207
- } = t, u = Oe(null), p = "geolocation" in navigator, [h, f] = ne(p);
1207
+ } = t, u = Oe(null), h = "geolocation" in navigator, [f, p] = ne(h);
1208
1208
  let v, y;
1209
- e[0] !== c ? (v = () => (p && navigator.permissions.query({
1209
+ e[0] !== c ? (v = () => (h && navigator.permissions.query({
1210
1210
  name: "geolocation"
1211
1211
  }).then((M) => {
1212
- f(M.state === "granted"), M.onchange = () => {
1213
- f(M.state === "granted");
1212
+ p(M.state === "granted"), M.onchange = () => {
1213
+ p(M.state === "granted");
1214
1214
  };
1215
1215
  }).catch((M) => {
1216
- f(!1), c?.(M);
1216
+ p(!1), c?.(M);
1217
1217
  }), () => {
1218
1218
  u.current && navigator.geolocation.clearWatch(u.current);
1219
- }), y = [p, c], e[0] = c, e[1] = v, e[2] = y) : (v = e[1], y = e[2]), De(v, y);
1219
+ }), y = [h, c], e[0] = c, e[1] = v, e[2] = y) : (v = e[1], y = e[2]), De(v, y);
1220
1220
  let b;
1221
1221
  e[3] !== s ? (b = (M) => {
1222
1222
  s(M.coords);
@@ -1224,7 +1224,7 @@ function mo(t) {
1224
1224
  const x = b;
1225
1225
  let d;
1226
1226
  e[5] !== c ? (d = (M) => {
1227
- f(!1), c?.(M);
1227
+ p(!1), c?.(M);
1228
1228
  }, e[5] = c, e[6] = d) : d = e[6];
1229
1229
  const m = d;
1230
1230
  let g;
@@ -1235,9 +1235,9 @@ function mo(t) {
1235
1235
  }
1236
1236
  navigator.geolocation.getCurrentPosition(x, m);
1237
1237
  }, e[7] = m, e[8] = x, e[9] = r, e[10] = g) : g = e[10];
1238
- const C = g, _ = (o?.tooltip ?? Vt)[h ? "enabled" : "disabled"], O = o?.ariaLabel ?? Ut, S = !p || n;
1238
+ const C = g, _ = (o?.tooltip ?? Vt)[f ? "enabled" : "disabled"], O = o?.ariaLabel ?? Ut, S = !h || n;
1239
1239
  let T;
1240
- e[11] !== h ? (T = h ? /* @__PURE__ */ l(Ne, {}) : /* @__PURE__ */ l(Fe, {}), e[11] = h, e[12] = T) : T = e[12];
1240
+ e[11] !== f ? (T = f ? /* @__PURE__ */ l(Ne, {}) : /* @__PURE__ */ l(Fe, {}), e[11] = f, e[12] = T) : T = e[12];
1241
1241
  let I;
1242
1242
  e[13] !== C || e[14] !== O || e[15] !== S || e[16] !== T ? (I = /* @__PURE__ */ l(se, { onClick: C, "aria-label": O, disabled: S, children: T }), e[13] = C, e[14] = O, e[15] = S, e[16] = T, e[17] = I) : I = e[17];
1243
1243
  let D;
@@ -1287,26 +1287,26 @@ function go(t) {
1287
1287
  minZoom: s,
1288
1288
  PaperProps: c,
1289
1289
  ResetViewProps: u,
1290
- showZoom: p,
1291
- onChange: h,
1292
- onReset: f
1290
+ showZoom: h,
1291
+ onChange: f,
1292
+ onReset: p
1293
1293
  } = t, v = i === void 0 ? "vertical" : i, y = r === void 0 ? 24 : r, b = s === void 0 ? 0 : s;
1294
1294
  let x;
1295
1295
  e[0] !== u ? (x = u === void 0 ? {
1296
1296
  Icon: He
1297
1297
  } : u, e[0] = u, e[1] = x) : x = e[1];
1298
- const d = x, m = p === void 0 ? !0 : p;
1298
+ const d = x, m = h === void 0 ? !0 : h;
1299
1299
  let g;
1300
- e[2] !== y || e[3] !== h || e[4] !== n ? (g = () => {
1300
+ e[2] !== y || e[3] !== f || e[4] !== n ? (g = () => {
1301
1301
  const B = Math.min(y, n + 1);
1302
- h(B);
1303
- }, e[2] = y, e[3] = h, e[4] = n, e[5] = g) : g = e[5];
1302
+ f(B);
1303
+ }, e[2] = y, e[3] = f, e[4] = n, e[5] = g) : g = e[5];
1304
1304
  const C = g;
1305
1305
  let w;
1306
- e[6] !== b || e[7] !== h || e[8] !== n ? (w = () => {
1306
+ e[6] !== b || e[7] !== f || e[8] !== n ? (w = () => {
1307
1307
  const B = Math.max(b, n - 1);
1308
- h(B);
1309
- }, e[6] = b, e[7] = h, e[8] = n, e[9] = w) : w = e[9];
1308
+ f(B);
1309
+ }, e[6] = b, e[7] = f, e[8] = n, e[9] = w) : w = e[9];
1310
1310
  const _ = w, O = Math.floor(n), S = v === "vertical" ? "horizontal" : "vertical", T = v === "vertical" ? "column" : "row";
1311
1311
  let I;
1312
1312
  e[10] !== T ? (I = {
@@ -1314,10 +1314,10 @@ function go(t) {
1314
1314
  flexDirection: T
1315
1315
  }, e[10] = T, e[11] = I) : I = e[11];
1316
1316
  let D;
1317
- e[12] !== d || e[13] !== o || e[14] !== S || e[15] !== f ? (D = f && /* @__PURE__ */ L(z, { children: [
1318
- /* @__PURE__ */ l(se, { onClick: f, "aria-label": "Reset action", disabled: o, children: /* @__PURE__ */ l(d.Icon, {}) }),
1317
+ e[12] !== d || e[13] !== o || e[14] !== S || e[15] !== p ? (D = p && /* @__PURE__ */ L(z, { children: [
1318
+ /* @__PURE__ */ l(se, { onClick: p, "aria-label": "Reset action", disabled: o, children: /* @__PURE__ */ l(d.Icon, {}) }),
1319
1319
  /* @__PURE__ */ l(ae, { orientation: S, flexItem: !0 })
1320
- ] }), e[12] = d, e[13] = o, e[14] = S, e[15] = f, e[16] = D) : D = e[16];
1320
+ ] }), e[12] = d, e[13] = o, e[14] = S, e[15] = p, e[16] = D) : D = e[16];
1321
1321
  let A;
1322
1322
  e[17] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ l(Xe, {}), e[17] = A) : A = e[17];
1323
1323
  let M;
@@ -1396,10 +1396,10 @@ function Xt(t) {
1396
1396
  severity: i
1397
1397
  } = t, a = n === void 0 ? "No data available" : n, r = o === void 0 ? "There are no results for the combination of filters applied to your data. Try tweaking your filters, or zoom and pan the map to adjust the Map View." : o;
1398
1398
  if (i) {
1399
- let p;
1400
- e[0] !== r ? (p = /* @__PURE__ */ l(Re, { children: r }), e[0] = r, e[1] = p) : p = e[1];
1401
1399
  let h;
1402
- return e[2] !== i || e[3] !== p || e[4] !== a ? (h = /* @__PURE__ */ l(at, { title: a, severity: i, children: p }), e[2] = i, e[3] = p, e[4] = a, e[5] = h) : h = e[5], h;
1400
+ e[0] !== r ? (h = /* @__PURE__ */ l(Re, { children: r }), e[0] = r, e[1] = h) : h = e[1];
1401
+ let f;
1402
+ return e[2] !== i || e[3] !== h || e[4] !== a ? (f = /* @__PURE__ */ l(at, { title: a, severity: i, children: h }), e[2] = i, e[3] = h, e[4] = a, e[5] = f) : f = e[5], f;
1403
1403
  }
1404
1404
  let s;
1405
1405
  e[6] !== a ? (s = a && /* @__PURE__ */ l(Y, { variant: "body2", children: a }), e[6] = a, e[7] = s) : s = e[7];
@@ -1439,7 +1439,7 @@ const Ee = {
1439
1439
  overflow: "hidden",
1440
1440
  textOverflow: "ellipsis",
1441
1441
  whiteSpace: "nowrap"
1442
- }, pe = {
1442
+ }, fe = {
1443
1443
  label: {
1444
1444
  "& .MuiListItemText-primary": {
1445
1445
  ...Ee
@@ -1508,13 +1508,13 @@ function bo(t) {
1508
1508
  selectedItemId: s,
1509
1509
  tooltipProps: c,
1510
1510
  onExpand: u,
1511
- onItemClick: p
1511
+ onItemClick: h
1512
1512
  } = t;
1513
- let h;
1514
- e[0] !== n ? (h = n === void 0 ? [] : n, e[0] = n, e[1] = h) : h = e[1];
1515
- const f = h, v = o === void 0 ? !1 : o, y = i === void 0 ? 5 : i, b = a === void 0 ? Yt : a, x = r === void 0 ? !0 : r, [d, m] = ne(!1), g = qt(v);
1513
+ let f;
1514
+ e[0] !== n ? (f = n === void 0 ? [] : n, e[0] = n, e[1] = f) : f = e[1];
1515
+ const p = f, v = o === void 0 ? !1 : o, y = i === void 0 ? 5 : i, b = a === void 0 ? Yt : a, x = r === void 0 ? !0 : r, [d, m] = ne(!1), g = qt(v);
1516
1516
  let C, w;
1517
- e[2] !== f || e[3] !== y || e[4] !== d ? (w = d ? f : f.slice(0, y), e[2] = f, e[3] = y, e[4] = d, e[5] = w) : w = e[5], C = w;
1517
+ e[2] !== p || e[3] !== y || e[4] !== d ? (w = d ? p : p.slice(0, y), e[2] = p, e[3] = y, e[4] = d, e[5] = w) : w = e[5], C = w;
1518
1518
  const _ = C;
1519
1519
  let O;
1520
1520
  e[6] !== u || e[7] !== d ? (O = () => {
@@ -1530,30 +1530,30 @@ function bo(t) {
1530
1530
  return e[11] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ l(Xt, {}), e[11] = M) : M = e[11], M;
1531
1531
  }
1532
1532
  let T;
1533
- if (e[12] !== _ || e[13] !== p || e[14] !== s || e[15] !== x || e[16] !== c) {
1533
+ if (e[12] !== _ || e[13] !== h || e[14] !== s || e[15] !== x || e[16] !== c) {
1534
1534
  let M;
1535
- e[18] !== p || e[19] !== s || e[20] !== x || e[21] !== c ? (M = (k, R) => /* @__PURE__ */ l(Kt, { followCursor: !1, placement: "top", arrow: !0, title: k.tooltipTitle, enterDelay: 10, ...c, children: (P) => {
1535
+ e[18] !== h || e[19] !== s || e[20] !== x || e[21] !== c ? (M = (k, R) => /* @__PURE__ */ l(Kt, { followCursor: !1, placement: "top", arrow: !0, title: k.tooltipTitle, enterDelay: 10, ...c, children: (P) => {
1536
1536
  const {
1537
1537
  ref: j
1538
1538
  } = P;
1539
1539
  return /* @__PURE__ */ l(ct, { ref: j, role: "listitem", sx: {
1540
- ...x && pe.showDivider,
1541
- ...p && pe.clickable,
1542
- ...s === k.id && pe.selected,
1543
- ...k.disabled && pe.disabled
1540
+ ...x && fe.showDivider,
1541
+ ...h && fe.clickable,
1542
+ ...s === k.id && fe.selected,
1543
+ ...k.disabled && fe.disabled
1544
1544
  }, onClick: () => {
1545
- k.disabled || p?.(k);
1545
+ k.disabled || h?.(k);
1546
1546
  }, children: /* @__PURE__ */ L(me, { container: !0, alignItems: "center", children: [
1547
- /* @__PURE__ */ l(me, { item: !0, xs: 8, children: /* @__PURE__ */ l(be, { primary: k.label, sx: pe.label }) }),
1548
- /* @__PURE__ */ l(me, { item: !0, xs: 4, children: /* @__PURE__ */ l(be, { primary: k.value, sx: pe.value }) })
1547
+ /* @__PURE__ */ l(me, { item: !0, xs: 8, children: /* @__PURE__ */ l(be, { primary: k.label, sx: fe.label }) }),
1548
+ /* @__PURE__ */ l(me, { item: !0, xs: 4, children: /* @__PURE__ */ l(be, { primary: k.value, sx: fe.value }) })
1549
1549
  ] }) });
1550
- } }, `list-item-${R}`), e[18] = p, e[19] = s, e[20] = x, e[21] = c, e[22] = M) : M = e[22], T = _.map(M), e[12] = _, e[13] = p, e[14] = s, e[15] = x, e[16] = c, e[17] = T;
1550
+ } }, `list-item-${R}`), e[18] = h, e[19] = s, e[20] = x, e[21] = c, e[22] = M) : M = e[22], T = _.map(M), e[12] = _, e[13] = h, e[14] = s, e[15] = x, e[16] = c, e[17] = T;
1551
1551
  } else
1552
1552
  T = e[17];
1553
1553
  let I;
1554
1554
  e[23] !== T ? (I = /* @__PURE__ */ l(dt, { id: "expandable-list", role: "list", children: T }), e[23] = T, e[24] = I) : I = e[24];
1555
1555
  let D;
1556
- e[25] !== f.length || e[26] !== S || e[27] !== b || e[28] !== y || e[29] !== d ? (D = f.length > y && /* @__PURE__ */ l(X, { my: 2, children: /* @__PURE__ */ l(we, { onClick: S, variant: "text", color: "primary", "aria-expanded": d, "aria-controls": "expandable-list", children: d ? b.showLess : b.showMore }) }), e[25] = f.length, e[26] = S, e[27] = b, e[28] = y, e[29] = d, e[30] = D) : D = e[30];
1556
+ e[25] !== p.length || e[26] !== S || e[27] !== b || e[28] !== y || e[29] !== d ? (D = p.length > y && /* @__PURE__ */ l(X, { my: 2, children: /* @__PURE__ */ l(we, { onClick: S, variant: "text", color: "primary", "aria-expanded": d, "aria-controls": "expandable-list", children: d ? b.showLess : b.showMore }) }), e[25] = p.length, e[26] = S, e[27] = b, e[28] = y, e[29] = d, e[30] = D) : D = e[30];
1557
1557
  let A;
1558
1558
  return e[31] !== I || e[32] !== D ? (A = /* @__PURE__ */ L(z, { children: [
1559
1559
  I,
@@ -1742,9 +1742,9 @@ function lo(t) {
1742
1742
  let w;
1743
1743
  return e[0] !== o || e[1] !== u || e[2] !== C ? (w = /* @__PURE__ */ l(ut, { anchor: "bottom", open: C, onClose: u, children: o }), e[0] = o, e[1] = u, e[2] = C, e[3] = w) : w = e[3], w;
1744
1744
  }
1745
- const h = !i;
1746
- let f;
1747
- e[4] !== u ? (f = () => u(!0), e[4] = u, e[5] = f) : f = e[5];
1745
+ const f = !i;
1746
+ let p;
1747
+ e[4] !== u ? (p = () => u(!0), e[4] = u, e[5] = p) : p = e[5];
1748
1748
  const v = r.startsWith("bottom") ? "bottom" : "top", y = r.endsWith("right") ? "left" : "right";
1749
1749
  let b;
1750
1750
  e[6] !== v || e[7] !== y ? (b = {
@@ -1758,7 +1758,7 @@ function lo(t) {
1758
1758
  horizontal: d
1759
1759
  }, e[9] = x, e[10] = d, e[11] = m) : m = e[11];
1760
1760
  let g;
1761
- return e[12] !== o || e[13] !== n || e[14] !== c || e[15] !== s || e[16] !== h || e[17] !== f || e[18] !== b || e[19] !== m ? (g = /* @__PURE__ */ l(ht, { sx: s, anchorEl: n, open: h, onClose: f, anchorOrigin: b, transformOrigin: m, slotProps: c, children: o }), e[12] = o, e[13] = n, e[14] = c, e[15] = s, e[16] = h, e[17] = f, e[18] = b, e[19] = m, e[20] = g) : g = e[20], g;
1761
+ return e[12] !== o || e[13] !== n || e[14] !== c || e[15] !== s || e[16] !== f || e[17] !== p || e[18] !== b || e[19] !== m ? (g = /* @__PURE__ */ l(ht, { sx: s, anchorEl: n, open: f, onClose: p, anchorOrigin: b, transformOrigin: m, slotProps: c, children: o }), e[12] = o, e[13] = n, e[14] = c, e[15] = s, e[16] = f, e[17] = p, e[18] = b, e[19] = m, e[20] = g) : g = e[20], g;
1762
1762
  }
1763
1763
  function vo(t) {
1764
1764
  const e = E(52), {
@@ -1771,19 +1771,19 @@ function vo(t) {
1771
1771
  } = t;
1772
1772
  let c;
1773
1773
  e[0] !== n ? (c = n === void 0 ? [] : n, e[0] = n, e[1] = c) : c = e[1];
1774
- const u = c, p = i === void 0 ? "bottom-right" : i, h = a === void 0 ? null : a, [f, v] = ne(null), y = Oe(null), [b, x] = ne(null), d = pt();
1774
+ const u = c, h = i === void 0 ? "bottom-right" : i, f = a === void 0 ? null : a, [p, v] = ne(null), y = Oe(null), [b, x] = ne(null), d = ft();
1775
1775
  let m;
1776
1776
  e[2] !== d.breakpoints ? (m = d.breakpoints.down("sm"), e[2] = d.breakpoints, e[3] = m) : m = e[3];
1777
- const g = ft(m);
1777
+ const g = pt(m);
1778
1778
  let C;
1779
1779
  e[4] !== o ? (C = o ?? {}, e[4] = o, e[5] = C) : C = e[5];
1780
1780
  let w;
1781
1781
  e[6] !== C ? (w = xe(Jt, C), e[6] = C, e[7] = w) : w = e[7];
1782
- const _ = w, O = !f;
1782
+ const _ = w, O = !p;
1783
1783
  let S;
1784
- if (e[8] !== u || e[9] !== h) {
1784
+ if (e[8] !== u || e[9] !== f) {
1785
1785
  let le;
1786
- e[11] !== h ? (le = (he) => he.id === h, e[11] = h, e[12] = le) : le = e[12], S = u.find(le), e[8] = u, e[9] = h, e[10] = S;
1786
+ e[11] !== f ? (le = (he) => he.id === f, e[11] = f, e[12] = le) : le = e[12], S = u.find(le), e[8] = u, e[9] = f, e[10] = S;
1787
1787
  } else
1788
1788
  S = e[10];
1789
1789
  const T = S, I = Object.groupBy(u, no), D = Object.keys(I).length;
@@ -1815,7 +1815,7 @@ function vo(t) {
1815
1815
  e[19] !== N || e[20] !== W ? (G = /* @__PURE__ */ l(se, { sx: ue.toggle, onClick: B, children: /* @__PURE__ */ l("img", { src: N, alt: W }) }), e[19] = N, e[20] = W, e[21] = G) : G = e[21];
1816
1816
  let ee;
1817
1817
  e[22] !== s || e[23] !== _.toggle.title || e[24] !== G ? (ee = /* @__PURE__ */ l(de, { title: _.toggle.title, placement: "right", ...s, children: G }), e[22] = s, e[23] = _.toggle.title, e[24] = G, e[25] = ee) : ee = e[25];
1818
- const F = lo, ie = `translate3d(${p.endsWith("right") ? "-8px" : "8px"}, ${p.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
1818
+ const F = lo, ie = `translate3d(${h.endsWith("right") ? "-8px" : "8px"}, ${h.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
1819
1819
  let Z;
1820
1820
  e[26] !== ie ? (Z = {
1821
1821
  paper: {
@@ -1834,18 +1834,18 @@ function vo(t) {
1834
1834
  let V;
1835
1835
  e[30] !== g || e[31] !== _.header ? (V = /* @__PURE__ */ l(eo, { isMobile: g, labels: _.header, onChangeCollapsed: q }), e[30] = g, e[31] = _.header, e[32] = V) : V = e[32];
1836
1836
  let te;
1837
- e[33] !== D || e[34] !== _.header || e[35] !== r || e[36] !== h ? (te = (le) => {
1837
+ e[33] !== D || e[34] !== _.header || e[35] !== r || e[36] !== f ? (te = (le) => {
1838
1838
  const [he, Me] = le;
1839
- return /* @__PURE__ */ l(to, { title: he + " " + _.header.title, collapsed: D < 2, children: /* @__PURE__ */ l(oo, { values: Me, selected: h, onChange: (Ge) => {
1839
+ return /* @__PURE__ */ l(to, { title: he + " " + _.header.title, collapsed: D < 2, children: /* @__PURE__ */ l(oo, { values: Me, selected: f, onChange: (Ge) => {
1840
1840
  v(null), r(Ge);
1841
1841
  } }) }, he);
1842
- }, e[33] = D, e[34] = _.header, e[35] = r, e[36] = h, e[37] = te) : te = e[37];
1843
- const fe = Object.entries(I).map(te);
1842
+ }, e[33] = D, e[34] = _.header, e[35] = r, e[36] = f, e[37] = te) : te = e[37];
1843
+ const pe = Object.entries(I).map(te);
1844
1844
  let oe;
1845
- e[38] !== F || e[39] !== O || e[40] !== g || e[41] !== p || e[42] !== Z || e[43] !== H || e[44] !== V || e[45] !== fe || e[46] !== f ? (oe = /* @__PURE__ */ L(F, { ref: f, slotProps: Z, collapsed: O, position: p, isMobile: g, onChangeCollapsed: H, children: [
1845
+ e[38] !== F || e[39] !== O || e[40] !== g || e[41] !== h || e[42] !== Z || e[43] !== H || e[44] !== V || e[45] !== pe || e[46] !== p ? (oe = /* @__PURE__ */ L(F, { ref: p, slotProps: Z, collapsed: O, position: h, isMobile: g, onChangeCollapsed: H, children: [
1846
1846
  V,
1847
- fe
1848
- ] }), e[38] = F, e[39] = O, e[40] = g, e[41] = p, e[42] = Z, e[43] = H, e[44] = V, e[45] = fe, e[46] = f, e[47] = oe) : oe = e[47];
1847
+ pe
1848
+ ] }), e[38] = F, e[39] = O, e[40] = g, e[41] = h, e[42] = Z, e[43] = H, e[44] = V, e[45] = pe, e[46] = p, e[47] = oe) : oe = e[47];
1849
1849
  let U;
1850
1850
  return e[48] !== $ || e[49] !== ee || e[50] !== oe ? (U = /* @__PURE__ */ L($, { children: [
1851
1851
  ee,
@@ -1869,10 +1869,10 @@ export {
1869
1869
  xt as DrawSquareIcon,
1870
1870
  mo as GeolocationControls,
1871
1871
  K as LASSO_TOOLS_LABELS,
1872
- po as LassoToolsInlineUI,
1872
+ fo as LassoToolsInlineUI,
1873
1873
  ce as LassoToolsUI,
1874
1874
  bo as ListDataUI,
1875
- fo as MeasurementToolsUI,
1875
+ po as MeasurementToolsUI,
1876
1876
  kt as RulerIcon,
1877
1877
  Mt as SelectToolIcon,
1878
1878
  Kt as SmartTooltip,