@carto/ps-react-ui 4.0.2 → 4.0.3-canary.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 n, jsxs as D, Fragment as j } from "react/jsx-runtime";
2
- import { c as Z } from "react/compiler-runtime";
3
- import { Chip as We, Tooltip as le, Paper as ye, Divider as Y, Box as F, IconButton as ee, Menu as ke, MenuItem as ce, ListItemIcon as Be, SvgIcon as Se, ListItemText as se, ToggleButton as ae, Typography as H, ToggleButtonGroup as Ee, Button as ve, alpha as Xe, Dialog as qe, DialogTitle as Ke, DialogContent as Ye, FormControl as Je, RadioGroup as Qe, FormControlLabel as et, Radio as tt, DialogActions as ot, CircularProgress as nt, Grid as re, Skeleton as xe, Alert as it, ListItem as lt, List as rt } from "@mui/material";
4
- import { ArrowDropDown as je, MoreVertOutlined as ct, Close as st, MyLocationOutlined as at, LocationDisabledOutlined as dt, CropFreeOutlined as ut, AddOutlined as mt, RemoveOutlined as ht } from "@mui/icons-material";
5
- import { useMemo as Te, useState as Q, useRef as ft, useEffect as Pe } from "react";
6
- const G = {
1
+ import { jsx as n, jsxs as D, Fragment as B } from "react/jsx-runtime";
2
+ import { c as R } from "react/compiler-runtime";
3
+ import { Chip as We, Tooltip as ce, Paper as xe, Divider as Y, Box as G, IconButton as te, Menu as Ee, MenuItem as de, ListItemIcon as Be, SvgIcon as Te, ListItemText as ue, ToggleButton as me, Typography as W, ToggleButtonGroup as je, Button as we, alpha as Xe, Dialog as qe, DialogTitle as Ke, DialogContent as Ye, FormControl as Je, RadioGroup as Qe, FormControlLabel as et, Radio as tt, DialogActions as ot, CircularProgress as nt, Grid as ae, Skeleton as be, Alert as it, ListItem as lt, List as rt } from "@mui/material";
4
+ import { ArrowDropDown as Pe, MoreVertOutlined as ct, Close as st, MyLocationOutlined as at, LocationDisabledOutlined as dt, CropFreeOutlined as ut, AddOutlined as mt, RemoveOutlined as ht } from "@mui/icons-material";
5
+ import { useMemo as Ae, useState as Q, useRef as ft, useEffect as $e } from "react";
6
+ const U = {
7
7
  container: {
8
8
  display: "flex",
9
9
  flexDirection: "row",
@@ -168,51 +168,51 @@ const G = {
168
168
  }
169
169
  };
170
170
  function pt(t) {
171
- const e = Z(3);
171
+ const e = R(3);
172
172
  let l;
173
173
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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] = l) : l = e[0];
174
174
  let o;
175
175
  return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
176
176
  }
177
177
  function gt(t) {
178
- const e = Z(3);
178
+ const e = R(3);
179
179
  let l;
180
180
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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] = l) : l = e[0];
181
181
  let o;
182
182
  return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
183
183
  }
184
184
  function vt(t) {
185
- const e = Z(3);
185
+ const e = R(3);
186
186
  let l;
187
187
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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] = l) : l = e[0];
188
188
  let o;
189
189
  return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
190
190
  }
191
191
  function yt(t) {
192
- const e = Z(3);
192
+ const e = R(3);
193
193
  let l;
194
194
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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] = l) : l = e[0];
195
195
  let o;
196
196
  return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
197
197
  }
198
198
  function wt(t) {
199
- const e = Z(3);
199
+ const e = R(3);
200
200
  let l;
201
201
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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] = l) : l = e[0];
202
202
  let o;
203
203
  return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
204
204
  }
205
- const P = {
205
+ const j = {
206
206
  action: {
207
207
  tooltip: {
208
- active: "Click on the map to trace the line you want to measure",
209
- inactive: "Click on the map to trace the line you want to measure"
208
+ active: "Click on the map to draw your spatial filter",
209
+ inactive: "Click on the map to draw your spatial filter"
210
210
  }
211
211
  },
212
212
  chip: {
213
213
  tooltip: {
214
- active: "Hide measure",
215
- inactive: "Show measure"
214
+ active: "Hide drawing",
215
+ inactive: "Show drawing"
216
216
  }
217
217
  },
218
218
  options: {
@@ -238,7 +238,7 @@ const P = {
238
238
  },
239
239
  deleteAll: "Remove all"
240
240
  }
241
- }, eo = {
241
+ }, to = {
242
242
  polygon: {
243
243
  icon: pt
244
244
  },
@@ -258,10 +258,10 @@ const P = {
258
258
  function xt(t) {
259
259
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
260
260
  }
261
- var be, Oe;
261
+ var Me, Le;
262
262
  function bt() {
263
- if (Oe) return be;
264
- Oe = 1;
263
+ if (Le) return Me;
264
+ Le = 1;
265
265
  var t = function(f) {
266
266
  return e(f) && !l(f);
267
267
  };
@@ -280,25 +280,25 @@ function bt() {
280
280
  return Array.isArray(d) ? [] : {};
281
281
  }
282
282
  function s(d, f) {
283
- return f.clone !== !1 && f.isMergeableObject(d) ? v(r(d), d, f) : d;
283
+ return f.clone !== !1 && f.isMergeableObject(d) ? g(r(d), d, f) : d;
284
284
  }
285
- function a(d, f, g) {
286
- return d.concat(f).map(function(C) {
287
- return s(C, g);
285
+ function a(d, f, v) {
286
+ return d.concat(f).map(function(T) {
287
+ return s(T, v);
288
288
  });
289
289
  }
290
- function m(d, f) {
290
+ function h(d, f) {
291
291
  if (!f.customMerge)
292
- return v;
293
- var g = f.customMerge(d);
294
- return typeof g == "function" ? g : v;
292
+ return g;
293
+ var v = f.customMerge(d);
294
+ return typeof v == "function" ? v : g;
295
295
  }
296
296
  function u(d) {
297
297
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(d).filter(function(f) {
298
298
  return Object.propertyIsEnumerable.call(d, f);
299
299
  }) : [];
300
300
  }
301
- function h(d) {
301
+ function m(d) {
302
302
  return Object.keys(d).concat(u(d));
303
303
  }
304
304
  function p(d, f) {
@@ -308,59 +308,59 @@ function bt() {
308
308
  return !1;
309
309
  }
310
310
  }
311
- function w(d, f) {
311
+ function y(d, f) {
312
312
  return p(d, f) && !(Object.hasOwnProperty.call(d, f) && Object.propertyIsEnumerable.call(d, f));
313
313
  }
314
- function M(d, f, g) {
315
- var C = {};
316
- return g.isMergeableObject(d) && h(d).forEach(function(x) {
317
- C[x] = s(d[x], g);
318
- }), h(f).forEach(function(x) {
319
- w(d, x) || (p(d, x) && g.isMergeableObject(f[x]) ? C[x] = m(x, g)(d[x], f[x], g) : C[x] = s(f[x], g));
320
- }), C;
314
+ function w(d, f, v) {
315
+ var T = {};
316
+ return v.isMergeableObject(d) && m(d).forEach(function(x) {
317
+ T[x] = s(d[x], v);
318
+ }), m(f).forEach(function(x) {
319
+ y(d, x) || (p(d, x) && v.isMergeableObject(f[x]) ? T[x] = h(x, v)(d[x], f[x], v) : T[x] = s(f[x], v));
320
+ }), T;
321
321
  }
322
- function v(d, f, g) {
323
- g = g || {}, g.arrayMerge = g.arrayMerge || a, g.isMergeableObject = g.isMergeableObject || t, g.cloneUnlessOtherwiseSpecified = s;
324
- var C = Array.isArray(f), x = Array.isArray(d), O = C === x;
325
- return O ? C ? g.arrayMerge(d, f, g) : M(d, f, g) : s(f, g);
322
+ function g(d, f, v) {
323
+ v = v || {}, v.arrayMerge = v.arrayMerge || a, v.isMergeableObject = v.isMergeableObject || t, v.cloneUnlessOtherwiseSpecified = s;
324
+ var T = Array.isArray(f), x = Array.isArray(d), L = T === x;
325
+ return L ? T ? v.arrayMerge(d, f, v) : w(d, f, v) : s(f, v);
326
326
  }
327
- v.all = function(f, g) {
327
+ g.all = function(f, v) {
328
328
  if (!Array.isArray(f))
329
329
  throw new Error("first argument should be an array");
330
- return f.reduce(function(C, x) {
331
- return v(C, x, g);
330
+ return f.reduce(function(T, x) {
331
+ return g(T, x, v);
332
332
  }, {});
333
333
  };
334
- var S = v;
335
- return be = S, be;
334
+ var S = g;
335
+ return Me = S, Me;
336
336
  }
337
337
  var Mt = bt();
338
- const Ae = /* @__PURE__ */ xt(Mt);
339
- function $e(t) {
338
+ const Ce = /* @__PURE__ */ xt(Mt);
339
+ function Ue(t) {
340
340
  var d;
341
- const e = Z(18), {
341
+ const e = R(18), {
342
342
  chipProps: l,
343
343
  value: o,
344
344
  labels: i,
345
345
  onChipToggle: c,
346
346
  onDelete: r
347
- } = t, s = o.visible ? "active" : "inactive", a = ((d = i == null ? void 0 : i.tooltip) == null ? void 0 : d[s]) ?? P.chip.tooltip[s], m = l == null ? void 0 : l.TooltipProps;
347
+ } = t, s = o.visible ? "active" : "inactive", a = ((d = i == null ? void 0 : i.tooltip) == null ? void 0 : d[s]) ?? j.chip.tooltip[s], h = l == null ? void 0 : l.TooltipProps;
348
348
  let u;
349
349
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {
350
- ...G.chip.chip
350
+ ...U.chip.chip
351
351
  }, e[0] = u) : u = e[0];
352
- const h = o.visible ? "secondary" : "default";
352
+ const m = o.visible ? "secondary" : "default";
353
353
  let p;
354
354
  e[1] !== r || e[2] !== o.id ? (p = () => r(o.id), e[1] = r, e[2] = o.id, e[3] = p) : p = e[3];
355
- let w;
356
- e[4] !== c || e[5] !== o.id || e[6] !== o.visible ? (w = () => c(o.id, !o.visible), e[4] = c, e[5] = o.id, e[6] = o.visible, e[7] = w) : w = e[7];
357
- const M = l == null ? void 0 : l.ChipsProps;
358
- let v;
359
- e[8] !== h || e[9] !== p || e[10] !== w || e[11] !== M || e[12] !== o.label ? (v = /* @__PURE__ */ n(We, { sx: u, color: h, size: "small", onDelete: p, label: o.label, onClick: w, ...M }), e[8] = h, e[9] = p, e[10] = w, e[11] = M, e[12] = o.label, e[13] = v) : v = e[13];
355
+ let y;
356
+ 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];
357
+ const w = l == null ? void 0 : l.ChipsProps;
358
+ let g;
359
+ e[8] !== m || e[9] !== p || e[10] !== y || e[11] !== w || e[12] !== o.label ? (g = /* @__PURE__ */ n(We, { sx: u, color: m, size: "small", onDelete: p, label: o.label, onClick: y, ...w }), e[8] = m, e[9] = p, e[10] = y, e[11] = w, e[12] = o.label, e[13] = g) : g = e[13];
360
360
  let S;
361
- return e[14] !== a || e[15] !== m || e[16] !== v ? (S = /* @__PURE__ */ n(le, { title: a, placement: "bottom", ...m, children: v }), e[14] = a, e[15] = m, e[16] = v, e[17] = S) : S = e[17], S;
361
+ return e[14] !== a || e[15] !== h || e[16] !== g ? (S = /* @__PURE__ */ n(ce, { title: a, placement: "bottom", ...h, children: g }), e[14] = a, e[15] = h, e[16] = g, e[17] = S) : S = e[17], S;
362
362
  }
363
- function to({
363
+ function oo({
364
364
  enabled: t,
365
365
  values: e = [],
366
366
  actionProps: l,
@@ -371,75 +371,75 @@ function to({
371
371
  modeSelected: s,
372
372
  PaperProps: {
373
373
  sx: a,
374
- ...m
374
+ ...h
375
375
  } = {},
376
376
  onActionToggle: u,
377
- onChipToggle: h,
377
+ onChipToggle: m,
378
378
  onDelete: p,
379
- onChangeMode: w,
380
- onAllChipToggle: M,
381
- onAllDelete: v
379
+ onChangeMode: y,
380
+ onAllChipToggle: w,
381
+ onAllDelete: g
382
382
  }) {
383
- const S = Te(() => Ae(c, r), [c, r]), {
383
+ const S = Ae(() => Ce(c, r), [c, r]), {
384
384
  edit: d,
385
385
  ...f
386
- } = S, g = (y) => (u(!1), p(y)), C = (y) => u(y), x = (y) => w == null ? void 0 : w(y), T = (s ?? "") in c ? s : Object.keys(S)[0], b = S[T], _ = Object.values(f);
387
- return /* @__PURE__ */ D(ye, { sx: {
388
- ...G.container,
386
+ } = S, v = (M) => (u(!1), p(M)), T = (M) => u(M), x = (M) => y == null ? void 0 : y(M), _ = (s ?? "") in c ? s : Object.keys(S)[0], b = S[_], A = Object.values(f);
387
+ return /* @__PURE__ */ D(xe, { sx: {
388
+ ...U.container,
389
389
  ...a
390
- }, ...m, children: [
391
- /* @__PURE__ */ n(St, { actionProps: l, labels: i == null ? void 0 : i.action, enabled: t, onActionToggle: C, children: (b == null ? void 0 : b.icon) && /* @__PURE__ */ n(b.icon, {}) }),
392
- /* @__PURE__ */ n(Ue, { children: (y) => /* @__PURE__ */ D(j, { children: [
393
- /* @__PURE__ */ n(Tt, { data: _, labels: i == null ? void 0 : i.options, children: /* @__PURE__ */ n(Le, { ...y, labels: i == null ? void 0 : i.options, data: _, modeSelected: T, onChangeMode: x }) }),
394
- !!d && /* @__PURE__ */ D(j, { children: [
390
+ }, ...h, children: [
391
+ /* @__PURE__ */ n(St, { actionProps: l, labels: i == null ? void 0 : i.action, enabled: t, onActionToggle: T, children: (b == null ? void 0 : b.icon) && /* @__PURE__ */ n(b.icon, {}) }),
392
+ /* @__PURE__ */ n(Ve, { children: (M) => /* @__PURE__ */ D(B, { children: [
393
+ /* @__PURE__ */ n(Tt, { data: A, labels: i == null ? void 0 : i.options, children: /* @__PURE__ */ n(Ie, { ...M, labels: i == null ? void 0 : i.options, data: A, modeSelected: _, onChangeMode: x }) }),
394
+ !!d && /* @__PURE__ */ D(B, { children: [
395
395
  /* @__PURE__ */ n(Y, {}),
396
- /* @__PURE__ */ n(Le, { ...y, labels: i == null ? void 0 : i.options, data: [{
396
+ /* @__PURE__ */ n(Ie, { ...M, labels: i == null ? void 0 : i.options, data: [{
397
397
  ...d,
398
398
  disabled: !e.length
399
- }], modeSelected: T, onChangeMode: x })
399
+ }], modeSelected: _, onChangeMode: x })
400
400
  ] })
401
401
  ] }) }),
402
- !!e.length && /* @__PURE__ */ n(F, { sx: G.chip.container, children: e.map((y) => /* @__PURE__ */ n($e, { value: y, labels: i == null ? void 0 : i.chip, chipProps: o, onDelete: g, onChipToggle: h }, y.id)) }),
403
- /* @__PURE__ */ n(At, { values: e, labels: i == null ? void 0 : i.actions, onAllChipToggle: M, onAllDelete: v })
402
+ !!e.length && /* @__PURE__ */ n(G, { sx: U.chip.container, children: e.map((M) => /* @__PURE__ */ n(Ue, { value: M, labels: i == null ? void 0 : i.chip, chipProps: o, onDelete: v, onChipToggle: m }, M.id)) }),
403
+ /* @__PURE__ */ n(At, { values: e, labels: i == null ? void 0 : i.actions, onAllChipToggle: w, onAllDelete: g })
404
404
  ] });
405
405
  }
406
406
  function St(t) {
407
- var w;
408
- const e = Z(12), {
407
+ var y;
408
+ const e = R(12), {
409
409
  actionProps: l,
410
410
  labels: o,
411
411
  enabled: i,
412
412
  children: c,
413
413
  onActionToggle: r
414
- } = t, s = i ? "active" : "inactive", a = ((w = o == null ? void 0 : o.tooltip) == null ? void 0 : w[s]) ?? P.action.tooltip[s], m = l == null ? void 0 : l.TooltipProps;
414
+ } = t, s = i ? "active" : "inactive", a = ((y = o == null ? void 0 : o.tooltip) == null ? void 0 : y[s]) ?? j.action.tooltip[s], h = l == null ? void 0 : l.TooltipProps;
415
415
  let u;
416
416
  e[0] !== i || e[1] !== r ? (u = () => r(!i), e[0] = i, e[1] = r, e[2] = u) : u = e[2];
417
- let h;
418
- e[3] !== a || e[4] !== c || e[5] !== i || e[6] !== u ? (h = /* @__PURE__ */ n(ae, { value: "toggle", sx: G.actions.icon, onClick: u, "aria-label": a, selected: i, children: c }), e[3] = a, e[4] = c, e[5] = i, e[6] = u, e[7] = h) : h = e[7];
417
+ let m;
418
+ e[3] !== a || e[4] !== c || e[5] !== i || e[6] !== u ? (m = /* @__PURE__ */ n(me, { value: "toggle", sx: U.actions.icon, onClick: u, "aria-label": a, selected: i, children: c }), e[3] = a, e[4] = c, e[5] = i, e[6] = u, e[7] = m) : m = e[7];
419
419
  let p;
420
- return e[8] !== a || e[9] !== m || e[10] !== h ? (p = /* @__PURE__ */ n(le, { title: a, placement: "right", ...m, children: h }), e[8] = a, e[9] = m, e[10] = h, e[11] = p) : p = e[11], p;
420
+ return e[8] !== a || e[9] !== h || e[10] !== m ? (p = /* @__PURE__ */ n(ce, { title: a, placement: "right", ...h, children: m }), e[8] = a, e[9] = h, e[10] = m, e[11] = p) : p = e[11], p;
421
421
  }
422
- function Ue({
422
+ function Ve({
423
423
  TriggerProps: {
424
- Icon: t = /* @__PURE__ */ n(je, {}),
424
+ Icon: t = /* @__PURE__ */ n(Pe, {}),
425
425
  sx: e
426
426
  } = {},
427
427
  MenuProps: l,
428
428
  children: o
429
429
  }) {
430
- const [i, c] = Q(null), r = !!i, s = (m) => {
431
- c(m.currentTarget);
430
+ const [i, c] = Q(null), r = !!i, s = (h) => {
431
+ c(h.currentTarget);
432
432
  }, a = () => {
433
433
  c(null);
434
434
  };
435
- return /* @__PURE__ */ D(j, { children: [
436
- /* @__PURE__ */ n(ee, { sx: {
437
- ...G.options.icon,
435
+ return /* @__PURE__ */ D(B, { children: [
436
+ /* @__PURE__ */ n(te, { sx: {
437
+ ...U.options.icon,
438
438
  ...e
439
439
  }, onClick: s, children: t }),
440
- /* @__PURE__ */ n(ke, { id: "lasso-menu", anchorEl: i, open: r, onClose: a, MenuListProps: {
440
+ /* @__PURE__ */ n(Ee, { id: "lasso-menu", anchorEl: i, open: r, onClose: a, MenuListProps: {
441
441
  "aria-labelledby": "lasso-button",
442
- sx: G.options.menu
442
+ sx: U.options.menu
443
443
  }, ...l, children: /* @__PURE__ */ n("div", { children: o({
444
444
  onClose: a
445
445
  }) }) })
@@ -447,23 +447,23 @@ function Ue({
447
447
  }
448
448
  function Tt(t) {
449
449
  var a;
450
- const e = Z(5), {
450
+ const e = R(5), {
451
451
  data: l,
452
452
  labels: o,
453
453
  children: i
454
454
  } = t;
455
455
  if (l.length <= 1)
456
456
  return null;
457
- const c = ((a = o == null ? void 0 : o.mode) == null ? void 0 : a.title) ?? P.options.mode.title;
457
+ const c = ((a = o == null ? void 0 : o.mode) == null ? void 0 : a.title) ?? j.options.mode.title;
458
458
  let r;
459
- e[0] !== c ? (r = /* @__PURE__ */ n(H, { variant: "subtitle2", color: "text.secondary", sx: G.options.title, children: c }), e[0] = c, e[1] = r) : r = e[1];
459
+ e[0] !== c ? (r = /* @__PURE__ */ n(W, { variant: "subtitle2", color: "text.secondary", sx: U.options.title, children: c }), e[0] = c, e[1] = r) : r = e[1];
460
460
  let s;
461
- return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ D(j, { children: [
461
+ return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ D(B, { children: [
462
462
  r,
463
463
  i
464
464
  ] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
465
465
  }
466
- function Le({
466
+ function Ie({
467
467
  data: t,
468
468
  modeSelected: e,
469
469
  labels: l,
@@ -474,17 +474,17 @@ function Le({
474
474
  r.preventDefault(), o == null || o(s), i();
475
475
  };
476
476
  return t.map((r) => {
477
- var m;
478
- const a = (((m = l == null ? void 0 : l.mode) == null ? void 0 : m.options) ?? P.options.mode.options)[r.value];
479
- return /* @__PURE__ */ D(ce, { disabled: !!r.disabled, onClick: (u) => c(u, r.value), selected: r.value === e, children: [
480
- /* @__PURE__ */ n(Be, { sx: G.options.icons, children: /* @__PURE__ */ n(Se, { children: /* @__PURE__ */ n(r.icon, {}) }) }),
481
- /* @__PURE__ */ n(se, { children: a })
477
+ var h;
478
+ const a = (((h = l == null ? void 0 : l.mode) == null ? void 0 : h.options) ?? j.options.mode.options)[r.value];
479
+ return /* @__PURE__ */ D(de, { disabled: !!r.disabled, onClick: (u) => c(u, r.value), selected: r.value === e, children: [
480
+ /* @__PURE__ */ n(Be, { sx: U.options.icons, children: /* @__PURE__ */ n(Te, { children: /* @__PURE__ */ n(r.icon, {}) }) }),
481
+ /* @__PURE__ */ n(ue, { children: a })
482
482
  ] }, r.value);
483
483
  });
484
484
  }
485
485
  function At(t) {
486
- var w, M;
487
- const e = Z(8), {
486
+ var y, w;
487
+ const e = R(8), {
488
488
  values: l,
489
489
  labels: o,
490
490
  onAllChipToggle: i,
@@ -492,14 +492,14 @@ function At(t) {
492
492
  } = t;
493
493
  if (l.length <= 1)
494
494
  return null;
495
- const s = l.some(Ct) ? ((w = o == null ? void 0 : o.toggleAll) == null ? void 0 : w.active) ?? P.actions.toggleAll.active : ((M = o == null ? void 0 : o.toggleAll) == null ? void 0 : M.inactive) ?? P.actions.toggleAll.inactive, a = (o == null ? void 0 : o.deleteAll) ?? P.actions.deleteAll;
496
- let m;
497
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ n(Y, { orientation: "vertical", flexItem: !0 }), e[0] = m) : m = e[0];
498
- let u, h;
495
+ const s = l.some(Ct) ? ((y = o == null ? void 0 : o.toggleAll) == null ? void 0 : y.active) ?? j.actions.toggleAll.active : ((w = o == null ? void 0 : o.toggleAll) == null ? void 0 : w.inactive) ?? j.actions.toggleAll.inactive, a = (o == null ? void 0 : o.deleteAll) ?? j.actions.deleteAll;
496
+ let h;
497
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ n(Y, { orientation: "vertical", flexItem: !0 }), e[0] = h) : h = e[0];
498
+ let u, m;
499
499
  e[1] === Symbol.for("react.memo_cache_sentinel") ? (u = {
500
500
  Icon: /* @__PURE__ */ n(ct, {}),
501
- sx: G.options.more
502
- }, h = {
501
+ sx: U.options.more
502
+ }, m = {
503
503
  anchorOrigin: {
504
504
  vertical: "bottom",
505
505
  horizontal: "right"
@@ -508,25 +508,25 @@ function At(t) {
508
508
  vertical: "top",
509
509
  horizontal: "right"
510
510
  }
511
- }, e[1] = u, e[2] = h) : (u = e[1], h = e[2]);
511
+ }, e[1] = u, e[2] = m) : (u = e[1], m = e[2]);
512
512
  let p;
513
- return e[3] !== a || e[4] !== i || e[5] !== c || e[6] !== s ? (p = /* @__PURE__ */ D(j, { children: [
514
- m,
515
- /* @__PURE__ */ n(Ue, { TriggerProps: u, MenuProps: h, children: (v) => /* @__PURE__ */ D(j, { children: [
516
- /* @__PURE__ */ n(ce, { color: "inherit", onClick: () => {
517
- i(), v.onClose();
513
+ return e[3] !== a || e[4] !== i || e[5] !== c || e[6] !== s ? (p = /* @__PURE__ */ D(B, { children: [
514
+ h,
515
+ /* @__PURE__ */ n(Ve, { TriggerProps: u, MenuProps: m, children: (g) => /* @__PURE__ */ D(B, { children: [
516
+ /* @__PURE__ */ n(de, { color: "inherit", onClick: () => {
517
+ i(), g.onClose();
518
518
  }, children: s }),
519
519
  /* @__PURE__ */ n(Y, {}),
520
- /* @__PURE__ */ n(ce, { color: "error", onClick: () => {
521
- c(), v.onClose();
522
- }, children: /* @__PURE__ */ n(H, { variant: "body2", color: "error", children: a }) })
520
+ /* @__PURE__ */ n(de, { color: "error", onClick: () => {
521
+ c(), g.onClose();
522
+ }, children: /* @__PURE__ */ n(W, { variant: "body2", color: "error", children: a }) })
523
523
  ] }) })
524
524
  ] }), e[3] = a, e[4] = i, e[5] = c, e[6] = s, e[7] = p) : p = e[7], p;
525
525
  }
526
526
  function Ct(t) {
527
527
  return t.visible;
528
528
  }
529
- function oo({
529
+ function no({
530
530
  enabled: t,
531
531
  values: e = [],
532
532
  chipProps: l,
@@ -538,87 +538,87 @@ function oo({
538
538
  sx: s,
539
539
  ...a
540
540
  } = {},
541
- onChipToggle: m,
541
+ onChipToggle: h,
542
542
  onDelete: u,
543
- onChangeMode: h,
543
+ onChangeMode: m,
544
544
  onAllChipToggle: p,
545
- onAllDelete: w
545
+ onAllDelete: y
546
546
  }) {
547
- const M = Te(() => Ae(i, c), [i, c]), {
548
- edit: v,
547
+ const w = Ae(() => Ce(i, c), [i, c]), {
548
+ edit: g,
549
549
  ...S
550
- } = M, d = (T) => u(T), f = (T, b) => {
551
- T.preventDefault(), h == null || h(b);
552
- }, C = (r ?? "") in i ? r : Object.keys(M)[0], x = t ? M[C] : null, O = Object.values(S);
553
- return /* @__PURE__ */ D(F, { sx: {
554
- ...G.container,
550
+ } = w, d = (_) => u(_), f = (_, b) => {
551
+ _.preventDefault(), m == null || m(b);
552
+ }, T = (r ?? "") in i ? r : Object.keys(w)[0], x = t ? w[T] : null, L = Object.values(S);
553
+ return /* @__PURE__ */ D(G, { sx: {
554
+ ...U.container,
555
555
  ...s
556
556
  }, ...a, className: "inline", children: [
557
- /* @__PURE__ */ n(_t, { data: O, labels: o == null ? void 0 : o.options, children: /* @__PURE__ */ D(Ee, { value: x == null ? void 0 : x.value, exclusive: !0, className: "inline", sx: G.options.menu, onChange: f, children: [
558
- /* @__PURE__ */ n(Ie, { labels: o == null ? void 0 : o.options, data: O }),
559
- !!v && /* @__PURE__ */ D(j, { children: [
557
+ /* @__PURE__ */ n(_t, { data: L, labels: o == null ? void 0 : o.options, children: /* @__PURE__ */ D(je, { value: x == null ? void 0 : x.value, exclusive: !0, className: "inline", sx: U.options.menu, onChange: f, children: [
558
+ /* @__PURE__ */ n(Re, { labels: o == null ? void 0 : o.options, data: L }),
559
+ !!g && /* @__PURE__ */ D(B, { children: [
560
560
  /* @__PURE__ */ n(Y, { orientation: "vertical" }),
561
- /* @__PURE__ */ n(Ie, { labels: o == null ? void 0 : o.options, data: [{
562
- ...v,
561
+ /* @__PURE__ */ n(Re, { labels: o == null ? void 0 : o.options, data: [{
562
+ ...g,
563
563
  disabled: !e.length
564
564
  }] })
565
565
  ] })
566
566
  ] }) }),
567
567
  /* @__PURE__ */ n(Y, { flexItem: !0 }),
568
568
  /* @__PURE__ */ n(Dt, { hasValues: !!e.length, labels: o == null ? void 0 : o.noData }),
569
- !!e.length && /* @__PURE__ */ n(F, { sx: G.chip.container, className: "inline", children: e.map((T) => /* @__PURE__ */ n($e, { value: T, labels: o == null ? void 0 : o.chip, chipProps: l, onDelete: d, onChipToggle: m }, T.id)) }),
570
- /* @__PURE__ */ n(Ot, { values: e, labels: o == null ? void 0 : o.actions, onAllChipToggle: p, onAllDelete: w })
569
+ !!e.length && /* @__PURE__ */ n(G, { sx: U.chip.container, className: "inline", children: e.map((_) => /* @__PURE__ */ n(Ue, { value: _, labels: o == null ? void 0 : o.chip, chipProps: l, onDelete: d, onChipToggle: h }, _.id)) }),
570
+ /* @__PURE__ */ n(Ot, { values: e, labels: o == null ? void 0 : o.actions, onAllChipToggle: p, onAllDelete: y })
571
571
  ] });
572
572
  }
573
573
  function _t(t) {
574
574
  var a;
575
- const e = Z(5), {
575
+ const e = R(5), {
576
576
  data: l,
577
577
  labels: o,
578
578
  children: i
579
579
  } = t;
580
580
  if (l.length <= 1)
581
581
  return null;
582
- const c = ((a = o == null ? void 0 : o.mode) == null ? void 0 : a.title) ?? P.options.mode.title;
582
+ const c = ((a = o == null ? void 0 : o.mode) == null ? void 0 : a.title) ?? j.options.mode.title;
583
583
  let r;
584
- e[0] !== c ? (r = /* @__PURE__ */ n(H, { variant: "subtitle2", color: "text.secondary", sx: G.options.title, className: "inline", children: c }), e[0] = c, e[1] = r) : r = e[1];
584
+ e[0] !== c ? (r = /* @__PURE__ */ n(W, { variant: "subtitle2", color: "text.secondary", sx: U.options.title, className: "inline", children: c }), e[0] = c, e[1] = r) : r = e[1];
585
585
  let s;
586
- return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ D(j, { children: [
586
+ return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ D(B, { children: [
587
587
  r,
588
588
  i
589
589
  ] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
590
590
  }
591
- function Ie({
591
+ function Re({
592
592
  data: t,
593
593
  labels: e
594
594
  }) {
595
595
  return t.map((l) => {
596
596
  var c;
597
- const i = (((c = e == null ? void 0 : e.mode) == null ? void 0 : c.options) ?? P.options.mode.options)[l.value];
598
- return /* @__PURE__ */ n(le, { title: i, placement: "bottom", children: /* @__PURE__ */ n(ae, { disabled: !!l.disabled, value: l.value, "aria-label": l.value, children: /* @__PURE__ */ n(Se, { children: /* @__PURE__ */ n(l.icon, {}) }) }) }, l.value);
597
+ const i = (((c = e == null ? void 0 : e.mode) == null ? void 0 : c.options) ?? j.options.mode.options)[l.value];
598
+ return /* @__PURE__ */ n(ce, { title: i, placement: "bottom", children: /* @__PURE__ */ n(me, { disabled: !!l.disabled, value: l.value, "aria-label": l.value, children: /* @__PURE__ */ n(Te, { children: /* @__PURE__ */ n(l.icon, {}) }) }) }, l.value);
599
599
  });
600
600
  }
601
601
  function Dt(t) {
602
- const e = Z(7), {
602
+ const e = R(7), {
603
603
  hasValues: l,
604
604
  labels: o
605
605
  } = t;
606
606
  if (l)
607
607
  return null;
608
- const i = (o == null ? void 0 : o.title) ?? P.noData.title, c = (o == null ? void 0 : o.description) ?? P.noData.description;
608
+ const i = (o == null ? void 0 : o.title) ?? j.noData.title, c = (o == null ? void 0 : o.description) ?? j.noData.description;
609
609
  let r;
610
- e[0] !== i ? (r = /* @__PURE__ */ n(H, { variant: "body1", color: "textSecondary", children: i }), e[0] = i, e[1] = r) : r = e[1];
610
+ e[0] !== i ? (r = /* @__PURE__ */ n(W, { variant: "body1", color: "textSecondary", children: i }), e[0] = i, e[1] = r) : r = e[1];
611
611
  let s;
612
- e[2] !== c ? (s = /* @__PURE__ */ n(H, { variant: "body2", color: "textSecondary", children: c }), e[2] = c, e[3] = s) : s = e[3];
612
+ e[2] !== c ? (s = /* @__PURE__ */ n(W, { variant: "body2", color: "textSecondary", children: c }), e[2] = c, e[3] = s) : s = e[3];
613
613
  let a;
614
- return e[4] !== r || e[5] !== s ? (a = /* @__PURE__ */ D(j, { children: [
614
+ return e[4] !== r || e[5] !== s ? (a = /* @__PURE__ */ D(B, { children: [
615
615
  r,
616
616
  s
617
617
  ] }), e[4] = r, e[5] = s, e[6] = a) : a = e[6], a;
618
618
  }
619
619
  function Ot(t) {
620
- var p, w;
621
- const e = Z(9), {
620
+ var w, g;
621
+ const e = R(13), {
622
622
  values: l,
623
623
  labels: o,
624
624
  onAllChipToggle: i,
@@ -626,36 +626,40 @@ function Ot(t) {
626
626
  } = t;
627
627
  if (l.length <= 1)
628
628
  return null;
629
- const s = l.some(Lt) ? ((p = o == null ? void 0 : o.toggleAll) == null ? void 0 : p.active) ?? P.actions.toggleAll.active : ((w = o == null ? void 0 : o.toggleAll) == null ? void 0 : w.inactive) ?? P.actions.toggleAll.inactive, a = (o == null ? void 0 : o.deleteAll) ?? P.actions.deleteAll;
630
- let m;
631
- e[0] !== i || e[1] !== s ? (m = /* @__PURE__ */ n(ve, { color: "inherit", onClick: i, children: s }), e[0] = i, e[1] = s, e[2] = m) : m = e[2];
632
- let u;
633
- e[3] !== a || e[4] !== c ? (u = /* @__PURE__ */ n(ve, { color: "error", onClick: c, children: a }), e[3] = a, e[4] = c, e[5] = u) : u = e[5];
629
+ const s = l.some(Lt) ? ((w = o == null ? void 0 : o.toggleAll) == null ? void 0 : w.active) ?? j.actions.toggleAll.active : ((g = o == null ? void 0 : o.toggleAll) == null ? void 0 : g.inactive) ?? j.actions.toggleAll.inactive, a = (o == null ? void 0 : o.deleteAll) ?? j.actions.deleteAll;
634
630
  let h;
635
- return e[6] !== m || e[7] !== u ? (h = /* @__PURE__ */ D(F, { children: [
636
- m,
637
- u
638
- ] }), e[6] = m, e[7] = u, e[8] = h) : h = e[8], h;
631
+ e[0] !== i ? (h = () => i(), e[0] = i, e[1] = h) : h = e[1];
632
+ let u;
633
+ e[2] !== h || e[3] !== s ? (u = /* @__PURE__ */ n(we, { color: "inherit", onClick: h, children: s }), e[2] = h, e[3] = s, e[4] = u) : u = e[4];
634
+ let m;
635
+ e[5] !== c ? (m = () => c(), e[5] = c, e[6] = m) : m = e[6];
636
+ let p;
637
+ e[7] !== a || e[8] !== m ? (p = /* @__PURE__ */ n(we, { color: "error", onClick: m, children: a }), e[7] = a, e[8] = m, e[9] = p) : p = e[9];
638
+ let y;
639
+ return e[10] !== u || e[11] !== p ? (y = /* @__PURE__ */ D(G, { children: [
640
+ u,
641
+ p
642
+ ] }), e[10] = u, e[11] = p, e[12] = y) : y = e[12], y;
639
643
  }
640
644
  function Lt(t) {
641
645
  return t.visible;
642
646
  }
643
647
  function It(t) {
644
- const e = Z(3);
648
+ const e = R(3);
645
649
  let l;
646
650
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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] = l) : l = e[0];
647
651
  let o;
648
652
  return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
649
653
  }
650
654
  function Rt(t) {
651
- const e = Z(3);
655
+ const e = R(3);
652
656
  let l;
653
657
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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] = l) : l = e[0];
654
658
  let o;
655
659
  return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
656
660
  }
657
661
  function Zt(t) {
658
- const e = Z(4);
662
+ const e = R(4);
659
663
  let l, o;
660
664
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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__ */ n("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] = l, e[1] = o) : (l = e[0], o = e[1]);
661
665
  let i;
@@ -664,11 +668,11 @@ function Zt(t) {
664
668
  o
665
669
  ] }), e[2] = t, e[3] = i) : i = e[3], i;
666
670
  }
667
- const J = {
671
+ const K = {
668
672
  action: {
669
673
  tooltip: {
670
- active: "Click on the map to trace the line you want to measure",
671
- inactive: "Click on the map to trace the line you want to measure"
674
+ active: "Click on the map to start measuring",
675
+ inactive: "Click on the map to start measuring"
672
676
  }
673
677
  },
674
678
  chip: {
@@ -744,7 +748,7 @@ const J = {
744
748
  feet: {
745
749
  short: "ft"
746
750
  }
747
- }, no = {
751
+ }, Et = {
748
752
  distance: {
749
753
  icon: /* @__PURE__ */ n(It, {})
750
754
  },
@@ -754,7 +758,7 @@ const J = {
754
758
  area: {
755
759
  icon: /* @__PURE__ */ n(Zt, {})
756
760
  }
757
- }, V = {
761
+ }, $ = {
758
762
  container: {
759
763
  display: "flex",
760
764
  flexDirection: "row",
@@ -887,7 +891,7 @@ const J = {
887
891
  }
888
892
  };
889
893
  function io(t) {
890
- const e = Z(46), {
894
+ const e = R(46), {
891
895
  enabled: l,
892
896
  actionProps: o,
893
897
  labels: i,
@@ -895,85 +899,85 @@ function io(t) {
895
899
  modesMapping: r,
896
900
  unitsMapping: s,
897
901
  modeSelected: a,
898
- PaperProps: m,
902
+ PaperProps: h,
899
903
  units: u,
900
- unitSelected: h,
904
+ unitSelected: m,
901
905
  onActionToggle: p,
902
- onChangeMode: w,
903
- onChangeUnit: M
904
- } = t, v = s === void 0 ? kt : s;
905
- let S;
906
- e[0] !== m ? (S = m === void 0 ? {} : m, e[0] = m, e[1] = S) : S = e[1];
907
- let d, f;
908
- e[2] !== S ? ({
909
- sx: f,
910
- ...d
911
- } = S, e[2] = S, e[3] = d, e[4] = f) : (d = e[3], f = e[4]);
912
- let g;
913
- e[5] !== p ? (g = (z) => p(!!z), e[5] = p, e[6] = g) : g = e[6];
914
- const C = g;
915
- let x, O;
916
- e[7] !== c || e[8] !== r ? (O = Ae(c, r), e[7] = c, e[8] = r, e[9] = O) : O = e[9], x = O;
917
- const T = x, b = (a ?? "") in T;
918
- let _;
919
- e[10] !== T || e[11] !== b || e[12] !== a ? (_ = b ? a : Object.keys(T)[0], e[10] = T, e[11] = b, e[12] = a, e[13] = _) : _ = e[13];
920
- const y = _, L = T[y];
906
+ onChangeMode: y,
907
+ onChangeUnit: w
908
+ } = t, g = i === void 0 ? K : i, S = r === void 0 ? Et : r, d = s === void 0 ? kt : s;
909
+ let f;
910
+ e[0] !== h ? (f = h === void 0 ? {} : h, e[0] = h, e[1] = f) : f = e[1];
911
+ let v, T;
912
+ e[2] !== f ? ({
913
+ sx: T,
914
+ ...v
915
+ } = f, e[2] = f, e[3] = v, e[4] = T) : (v = e[3], T = e[4]);
916
+ let x;
917
+ e[5] !== p ? (x = (J) => p(!!J), e[5] = p, e[6] = x) : x = e[6];
918
+ const L = x;
919
+ let _, b;
920
+ e[7] !== c || e[8] !== S ? (b = Ce(c, S), e[7] = c, e[8] = S, e[9] = b) : b = e[9], _ = b;
921
+ const A = _, M = (a ?? "") in A;
921
922
  let I;
922
- const A = u[y];
923
- let R;
924
- e[14] !== y || e[15] !== A || e[16] !== u ? (R = Object.keys(u).length >= 1 ? u : {
925
- [y]: A.slice(0, 1)
926
- }, e[14] = y, e[15] = A, e[16] = u, e[17] = R) : R = e[17];
927
- const E = R[y];
928
- let B;
929
- if (e[18] !== E || e[19] !== v) {
930
- let z;
931
- e[21] !== v ? (z = (we) => ({
932
- ...we,
933
- ...v[we.value]
934
- }), e[21] = v, e[22] = z) : z = e[22], B = E.map(z), e[18] = E, e[19] = v, e[20] = B;
923
+ e[10] !== A || e[11] !== M || e[12] !== a ? (I = M ? a : Object.keys(A)[0], e[10] = A, e[11] = M, e[12] = a, e[13] = I) : I = e[13];
924
+ const O = I, C = A[O];
925
+ let Z;
926
+ const k = u[O];
927
+ let E;
928
+ e[14] !== O || e[15] !== k || e[16] !== u ? (E = Object.keys(u).length >= 1 ? u : {
929
+ [O]: k.slice(0, 1)
930
+ }, e[14] = O, e[15] = k, e[16] = u, e[17] = E) : E = e[17];
931
+ const F = E[O];
932
+ let N;
933
+ if (e[18] !== F || e[19] !== d) {
934
+ let J;
935
+ e[21] !== d ? (J = (ee) => ({
936
+ ...ee,
937
+ ...d[ee.value]
938
+ }), e[21] = d, e[22] = J) : J = e[22], N = F.map(J), e[18] = F, e[19] = d, e[20] = N;
935
939
  } else
936
- B = e[20];
937
- I = B;
938
- const N = I;
939
- let $;
940
- e[23] !== f ? ($ = {
941
- ...V.container,
942
- ...f
943
- }, e[23] = f, e[24] = $) : $ = e[24];
944
- const te = i == null ? void 0 : i.action, oe = L == null ? void 0 : L.icon;
945
- let W;
946
- e[25] !== o || e[26] !== l || e[27] !== C || e[28] !== te || e[29] !== oe ? (W = /* @__PURE__ */ n(Bt, { actionProps: o, labels: te, enabled: l, onActionToggle: C, children: oe }), e[25] = o, e[26] = l, e[27] = C, e[28] = te, e[29] = oe, e[30] = W) : W = e[30];
947
- const ne = i == null ? void 0 : i.options;
940
+ N = e[20];
941
+ Z = N;
942
+ const oe = Z;
948
943
  let X;
949
- e[31] !== N || e[32] !== T || e[33] !== y || e[34] !== w || e[35] !== M || e[36] !== ne || e[37] !== h ? (X = /* @__PURE__ */ n(Et, { labels: ne, modes: T, modeSelected: y, units: N, unitSelected: h, onChangeMode: w, onChangeUnit: M }), e[31] = N, e[32] = T, e[33] = y, e[34] = w, e[35] = M, e[36] = ne, e[37] = h, e[38] = X) : X = e[38];
944
+ e[23] !== T ? (X = {
945
+ ...$.container,
946
+ ...T
947
+ }, e[23] = T, e[24] = X) : X = e[24];
948
+ const ne = g == null ? void 0 : g.action, ie = C == null ? void 0 : C.icon;
950
949
  let q;
951
- e[39] !== W || e[40] !== X ? (q = /* @__PURE__ */ D(F, { children: [
952
- W,
953
- X
954
- ] }), e[39] = W, e[40] = X, e[41] = q) : q = e[41];
955
- let K;
956
- return e[42] !== d || e[43] !== $ || e[44] !== q ? (K = /* @__PURE__ */ n(ye, { sx: $, ...d, children: q }), e[42] = d, e[43] = $, e[44] = q, e[45] = K) : K = e[45], K;
950
+ e[25] !== o || e[26] !== l || e[27] !== L || e[28] !== ne || e[29] !== ie ? (q = /* @__PURE__ */ n(Bt, { actionProps: o, labels: ne, enabled: l, onActionToggle: L, children: ie }), e[25] = o, e[26] = l, e[27] = L, e[28] = ne, e[29] = ie, e[30] = q) : q = e[30];
951
+ const le = g == null ? void 0 : g.options;
952
+ let z;
953
+ e[31] !== oe || e[32] !== A || e[33] !== O || e[34] !== y || e[35] !== w || e[36] !== le || e[37] !== m ? (z = /* @__PURE__ */ n(jt, { labels: le, modes: A, modeSelected: O, units: oe, unitSelected: m, onChangeMode: y, onChangeUnit: w }), e[31] = oe, e[32] = A, e[33] = O, e[34] = y, e[35] = w, e[36] = le, e[37] = m, e[38] = z) : z = e[38];
954
+ let H;
955
+ e[39] !== q || e[40] !== z ? (H = /* @__PURE__ */ D(G, { children: [
956
+ q,
957
+ z
958
+ ] }), e[39] = q, e[40] = z, e[41] = H) : H = e[41];
959
+ let se;
960
+ return e[42] !== v || e[43] !== X || e[44] !== H ? (se = /* @__PURE__ */ n(xe, { sx: X, ...v, children: H }), e[42] = v, e[43] = X, e[44] = H, e[45] = se) : se = e[45], se;
957
961
  }
958
962
  function Bt(t) {
959
- var w;
960
- const e = Z(12), {
963
+ var y;
964
+ const e = R(12), {
961
965
  actionProps: l,
962
966
  labels: o,
963
967
  enabled: i,
964
968
  children: c,
965
969
  onActionToggle: r
966
- } = t, s = i ? "active" : "inactive", a = ((w = o == null ? void 0 : o.tooltip) == null ? void 0 : w[s]) ?? J.action.tooltip[s], m = l == null ? void 0 : l.TooltipProps;
970
+ } = t, s = i ? "active" : "inactive", a = ((y = o == null ? void 0 : o.tooltip) == null ? void 0 : y[s]) ?? K.action.tooltip[s], h = l == null ? void 0 : l.TooltipProps;
967
971
  let u;
968
972
  e[0] !== i || e[1] !== r ? (u = () => r(!i), e[0] = i, e[1] = r, e[2] = u) : u = e[2];
969
- let h;
970
- e[3] !== a || e[4] !== c || e[5] !== i || e[6] !== u ? (h = /* @__PURE__ */ n(ae, { value: "toggle", sx: V.actions.icon, onClick: u, "aria-label": a, selected: i, children: c }), e[3] = a, e[4] = c, e[5] = i, e[6] = u, e[7] = h) : h = e[7];
973
+ let m;
974
+ e[3] !== a || e[4] !== c || e[5] !== i || e[6] !== u ? (m = /* @__PURE__ */ n(me, { value: "toggle", sx: $.actions.icon, onClick: u, "aria-label": a, selected: i, children: c }), e[3] = a, e[4] = c, e[5] = i, e[6] = u, e[7] = m) : m = e[7];
971
975
  let p;
972
- return e[8] !== a || e[9] !== m || e[10] !== h ? (p = /* @__PURE__ */ n(le, { title: a, placement: "right", ...m, children: h }), e[8] = a, e[9] = m, e[10] = h, e[11] = p) : p = e[11], p;
976
+ return e[8] !== a || e[9] !== h || e[10] !== m ? (p = /* @__PURE__ */ n(ce, { title: a, placement: "right", ...h, children: m }), e[8] = a, e[9] = h, e[10] = m, e[11] = p) : p = e[11], p;
973
977
  }
974
- function Et(t) {
975
- var N, $, te, oe, W, ne, X, q;
976
- const e = Z(68), {
978
+ function jt(t) {
979
+ var F, N, oe, X, ne, ie, q, le;
980
+ const e = R(68), {
977
981
  modes: l,
978
982
  modeSelected: o,
979
983
  units: i,
@@ -981,93 +985,93 @@ function Et(t) {
981
985
  labels: r,
982
986
  onChangeMode: s,
983
987
  onChangeUnit: a
984
- } = t, [m, u] = Q(null), [h, p] = Q(!1);
985
- let w, M, v, S, d, f, g, C, x, O, T, b, _, y, L, I;
986
- if (e[0] !== m || e[1] !== ((N = r == null ? void 0 : r.mode) == null ? void 0 : N.options) || e[2] !== (($ = r == null ? void 0 : r.mode) == null ? void 0 : $.title) || e[3] !== ((te = r == null ? void 0 : r.units) == null ? void 0 : te.title) || e[4] !== o || e[5] !== l || e[6] !== s || e[7] !== a || e[8] !== c || e[9] !== i) {
987
- _ = Symbol.for("react.early_return_sentinel");
988
+ } = t, [h, u] = Q(null), [m, p] = Q(!1);
989
+ let y, w, g, S, d, f, v, T, x, L, _, b, A, M, I, O;
990
+ if (e[0] !== h || e[1] !== ((F = r == null ? void 0 : r.mode) == null ? void 0 : F.options) || e[2] !== ((N = r == null ? void 0 : r.mode) == null ? void 0 : N.title) || e[3] !== ((oe = r == null ? void 0 : r.units) == null ? void 0 : oe.title) || e[4] !== o || e[5] !== l || e[6] !== s || e[7] !== a || e[8] !== c || e[9] !== i) {
991
+ A = Symbol.for("react.early_return_sentinel");
988
992
  e: {
989
- const K = Object.values(l);
990
- let z;
991
- if (e[26] !== i ? (z = Object.values(i), e[26] = i, e[27] = z) : z = e[27], I = z, !(K.length > 1 || I.length > 1)) {
992
- _ = null;
993
+ const z = Object.values(l);
994
+ let H;
995
+ if (e[26] !== i ? (H = Object.values(i), e[26] = i, e[27] = H) : H = e[27], O = H, !(z.length > 1 || O.length > 1)) {
996
+ A = null;
993
997
  break e;
994
998
  }
995
- const Ve = !!m;
996
- let de;
997
- e[28] === Symbol.for("react.memo_cache_sentinel") ? (de = (U) => {
998
- u(U.currentTarget);
999
- }, e[28] = de) : de = e[28];
1000
- const Ge = de;
1001
- let ue;
1002
- e[29] === Symbol.for("react.memo_cache_sentinel") ? (ue = () => {
1003
- u(null);
1004
- }, e[29] = ue) : ue = e[29];
1005
- const Ce = ue;
1006
- let me;
1007
- e[30] !== s ? (me = (U, _e) => {
1008
- U.preventDefault(), s(_e.value), Ce();
1009
- }, e[30] = s, e[31] = me) : me = e[31];
1010
- const Fe = me;
999
+ const J = !!h;
1000
+ let ee;
1001
+ e[28] === Symbol.for("react.memo_cache_sentinel") ? (ee = (P) => {
1002
+ u(P.currentTarget);
1003
+ }, e[28] = ee) : ee = e[28];
1004
+ const Ge = ee;
1011
1005
  let he;
1012
- e[32] === Symbol.for("react.memo_cache_sentinel") ? (he = () => {
1013
- p(!0);
1014
- }, e[32] = he) : he = e[32], v = he;
1006
+ e[29] === Symbol.for("react.memo_cache_sentinel") ? (he = () => {
1007
+ u(null);
1008
+ }, e[29] = he) : he = e[29];
1009
+ const _e = he;
1015
1010
  let fe;
1016
- e[33] === Symbol.for("react.memo_cache_sentinel") ? (fe = () => {
1017
- p(!1);
1018
- }, e[33] = fe) : fe = e[33], S = fe;
1011
+ e[30] !== s ? (fe = (P, De) => {
1012
+ P.preventDefault(), s(De.value), _e();
1013
+ }, e[30] = s, e[31] = fe) : fe = e[31];
1014
+ const Fe = fe;
1019
1015
  let pe;
1020
- e[34] !== a ? (pe = (U) => {
1021
- S(), a(U);
1022
- }, e[34] = a, e[35] = pe) : pe = e[35], M = pe;
1023
- const Ne = ((oe = r == null ? void 0 : r.mode) == null ? void 0 : oe.title) ?? J.options.mode.title;
1024
- L = ((W = r == null ? void 0 : r.units) == null ? void 0 : W.title) ?? J.options.units.title, d = K.length > 1 && I.length > 1;
1016
+ e[32] === Symbol.for("react.memo_cache_sentinel") ? (pe = () => {
1017
+ p(!0);
1018
+ }, e[32] = pe) : pe = e[32], g = pe;
1025
1019
  let ge;
1026
- e[36] !== c || e[37] !== i ? (ge = i.find((U) => U.value === c) ?? i[0], e[36] = c, e[37] = i, e[38] = ge) : ge = e[38], y = ge, e[39] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ n(ee, { sx: V.options.icon, onClick: Ge, children: /* @__PURE__ */ n(je, {}) }), e[39] = b) : b = e[39], w = ke, g = "measurement-menu", C = m, x = Ve, O = Ce, e[40] === Symbol.for("react.memo_cache_sentinel") ? (T = {
1020
+ e[33] === Symbol.for("react.memo_cache_sentinel") ? (ge = () => {
1021
+ p(!1);
1022
+ }, e[33] = ge) : ge = e[33], S = ge;
1023
+ let ve;
1024
+ e[34] !== a ? (ve = (P) => {
1025
+ S(), a(P);
1026
+ }, e[34] = a, e[35] = ve) : ve = e[35], w = ve;
1027
+ const Ne = ((X = r == null ? void 0 : r.mode) == null ? void 0 : X.title) ?? K.options.mode.title;
1028
+ I = ((ne = r == null ? void 0 : r.units) == null ? void 0 : ne.title) ?? K.options.units.title, d = z.length > 1 && O.length > 1;
1029
+ let ye;
1030
+ e[36] !== c || e[37] !== i ? (ye = i.find((P) => P.value === c) ?? i[0], e[36] = c, e[37] = i, e[38] = ye) : ye = e[38], M = ye, e[39] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ n(te, { sx: $.options.icon, onClick: Ge, children: /* @__PURE__ */ n(Pe, {}) }), e[39] = b) : b = e[39], y = Ee, v = "measurement-menu", T = h, x = J, L = _e, e[40] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
1027
1031
  "aria-labelledby": "basic-button",
1028
- sx: V.options.menu
1029
- }, e[40] = T) : T = e[40], f = K.length > 1 && /* @__PURE__ */ D(j, { children: [
1030
- /* @__PURE__ */ n(H, { variant: "subtitle2", color: "text.secondary", sx: V.options.title, children: Ne }),
1031
- K.map((U) => {
1032
- var De;
1033
- const ze = (((De = r == null ? void 0 : r.mode) == null ? void 0 : De.options) ?? J.options.mode.options)[U.value];
1034
- return /* @__PURE__ */ D(ce, { onClick: (He) => Fe(He, U), selected: U.value === o, children: [
1035
- /* @__PURE__ */ n(Be, { sx: V.options.icons, children: /* @__PURE__ */ n(Se, { children: U.icon }) }),
1036
- /* @__PURE__ */ n(se, { children: ze })
1037
- ] }, U.value);
1032
+ sx: $.options.menu
1033
+ }, e[40] = _) : _ = e[40], f = z.length > 1 && /* @__PURE__ */ D(B, { children: [
1034
+ /* @__PURE__ */ n(W, { variant: "subtitle2", color: "text.secondary", sx: $.options.title, children: Ne }),
1035
+ z.map((P) => {
1036
+ var Oe;
1037
+ const ze = (((Oe = r == null ? void 0 : r.mode) == null ? void 0 : Oe.options) ?? K.options.mode.options)[P.value];
1038
+ return /* @__PURE__ */ D(de, { onClick: (He) => Fe(He, P), selected: P.value === o, children: [
1039
+ /* @__PURE__ */ n(Be, { sx: $.options.icons, children: /* @__PURE__ */ n(Te, { children: P.icon }) }),
1040
+ /* @__PURE__ */ n(ue, { children: ze })
1041
+ ] }, P.value);
1038
1042
  })
1039
1043
  ] });
1040
1044
  }
1041
- e[0] = m, e[1] = (ne = r == null ? void 0 : r.mode) == null ? void 0 : ne.options, e[2] = (X = r == null ? void 0 : r.mode) == null ? void 0 : X.title, e[3] = (q = r == null ? void 0 : r.units) == null ? void 0 : q.title, e[4] = o, e[5] = l, e[6] = s, e[7] = a, e[8] = c, e[9] = i, e[10] = w, e[11] = M, e[12] = v, e[13] = S, e[14] = d, e[15] = f, e[16] = g, e[17] = C, e[18] = x, e[19] = O, e[20] = T, e[21] = b, e[22] = _, e[23] = y, e[24] = L, e[25] = I;
1045
+ e[0] = h, e[1] = (ie = r == null ? void 0 : r.mode) == null ? void 0 : ie.options, e[2] = (q = r == null ? void 0 : r.mode) == null ? void 0 : q.title, e[3] = (le = r == null ? void 0 : r.units) == null ? void 0 : le.title, e[4] = o, e[5] = l, e[6] = s, e[7] = a, e[8] = c, e[9] = i, e[10] = y, e[11] = w, e[12] = g, e[13] = S, e[14] = d, e[15] = f, e[16] = v, e[17] = T, e[18] = x, e[19] = L, e[20] = _, e[21] = b, e[22] = A, e[23] = M, e[24] = I, e[25] = O;
1042
1046
  } else
1043
- w = e[10], M = e[11], v = e[12], S = e[13], d = e[14], f = e[15], g = e[16], C = e[17], x = e[18], O = e[19], T = e[20], b = e[21], _ = e[22], y = e[23], L = e[24], I = e[25];
1044
- if (_ !== Symbol.for("react.early_return_sentinel"))
1045
- return _;
1046
- let A;
1047
- e[41] !== d ? (A = d && /* @__PURE__ */ n(Y, {}), e[41] = d, e[42] = A) : A = e[42];
1048
- let R;
1049
- e[43] !== M || e[44] !== v || e[45] !== S || e[46] !== r || e[47] !== h || e[48] !== y || e[49] !== L || e[50] !== i || e[51] !== I.length ? (R = I.length > 1 && /* @__PURE__ */ D(j, { children: [
1050
- /* @__PURE__ */ D(ce, { onClick: v, children: [
1051
- /* @__PURE__ */ n(se, { children: L }),
1052
- /* @__PURE__ */ n(H, { variant: "caption", fontWeight: 500, sx: V.options.tag, children: y.short })
1047
+ y = e[10], w = e[11], g = e[12], S = e[13], d = e[14], f = e[15], v = e[16], T = e[17], x = e[18], L = e[19], _ = e[20], b = e[21], A = e[22], M = e[23], I = e[24], O = e[25];
1048
+ if (A !== Symbol.for("react.early_return_sentinel"))
1049
+ return A;
1050
+ let C;
1051
+ e[41] !== d ? (C = d && /* @__PURE__ */ n(Y, {}), e[41] = d, e[42] = C) : C = e[42];
1052
+ let Z;
1053
+ e[43] !== w || e[44] !== g || e[45] !== S || e[46] !== r || e[47] !== m || e[48] !== M || e[49] !== I || e[50] !== i || e[51] !== O.length ? (Z = O.length > 1 && /* @__PURE__ */ D(B, { children: [
1054
+ /* @__PURE__ */ D(de, { onClick: g, children: [
1055
+ /* @__PURE__ */ n(ue, { children: I }),
1056
+ /* @__PURE__ */ n(W, { variant: "caption", fontWeight: 500, sx: $.options.tag, children: M.short })
1053
1057
  ] }),
1054
- /* @__PURE__ */ n(jt, { open: h, labels: r, units: i, unitSelectedValue: y, onClose: S, onSubmit: M })
1055
- ] }), e[43] = M, e[44] = v, e[45] = S, e[46] = r, e[47] = h, e[48] = y, e[49] = L, e[50] = i, e[51] = I.length, e[52] = R) : R = e[52];
1058
+ /* @__PURE__ */ n(Pt, { open: m, labels: r, units: i, unitSelectedValue: M, onClose: S, onSubmit: w })
1059
+ ] }), e[43] = w, e[44] = g, e[45] = S, e[46] = r, e[47] = m, e[48] = M, e[49] = I, e[50] = i, e[51] = O.length, e[52] = Z) : Z = e[52];
1056
1060
  let k;
1057
- e[53] !== f || e[54] !== R || e[55] !== A ? (k = /* @__PURE__ */ D("div", { children: [
1061
+ e[53] !== f || e[54] !== Z || e[55] !== C ? (k = /* @__PURE__ */ D("div", { children: [
1058
1062
  f,
1059
- A,
1060
- R
1061
- ] }), e[53] = f, e[54] = R, e[55] = A, e[56] = k) : k = e[56];
1063
+ C,
1064
+ Z
1065
+ ] }), e[53] = f, e[54] = Z, e[55] = C, e[56] = k) : k = e[56];
1062
1066
  let E;
1063
- e[57] !== w || e[58] !== k || e[59] !== g || e[60] !== C || e[61] !== x || e[62] !== O || e[63] !== T ? (E = /* @__PURE__ */ n(w, { id: g, anchorEl: C, open: x, onClose: O, MenuListProps: T, children: k }), e[57] = w, e[58] = k, e[59] = g, e[60] = C, e[61] = x, e[62] = O, e[63] = T, e[64] = E) : E = e[64];
1064
- let B;
1065
- return e[65] !== E || e[66] !== b ? (B = /* @__PURE__ */ D(j, { children: [
1067
+ e[57] !== y || e[58] !== k || e[59] !== v || e[60] !== T || e[61] !== x || e[62] !== L || e[63] !== _ ? (E = /* @__PURE__ */ n(y, { id: v, anchorEl: T, open: x, onClose: L, MenuListProps: _, children: k }), e[57] = y, e[58] = k, e[59] = v, e[60] = T, e[61] = x, e[62] = L, e[63] = _, e[64] = E) : E = e[64];
1068
+ let V;
1069
+ return e[65] !== E || e[66] !== b ? (V = /* @__PURE__ */ D(B, { children: [
1066
1070
  b,
1067
1071
  E
1068
- ] }), e[65] = E, e[66] = b, e[67] = B) : B = e[67], B;
1072
+ ] }), e[65] = E, e[66] = b, e[67] = V) : V = e[67], V;
1069
1073
  }
1070
- function jt({
1074
+ function Pt({
1071
1075
  open: t,
1072
1076
  labels: e,
1073
1077
  units: l,
@@ -1075,42 +1079,42 @@ function jt({
1075
1079
  onClose: i,
1076
1080
  onSubmit: c
1077
1081
  }) {
1078
- var S, d, f, g, C, x, O, T;
1079
- const [r, s] = Q("metric"), a = Te(() => l.filter((b) => b.system === r), [r, l]), m = (b, _) => {
1080
- s(_);
1081
- }, u = ((d = (S = e == null ? void 0 : e.units) == null ? void 0 : S.modal) == null ? void 0 : d.options) ?? J.options.units.modal.options, h = u[r].options, p = ((g = (f = e == null ? void 0 : e.units) == null ? void 0 : f.modal) == null ? void 0 : g.title) ?? J.options.units.modal.title, w = ((x = (C = e == null ? void 0 : e.units) == null ? void 0 : C.modal) == null ? void 0 : x.subtitle) ?? J.options.units.modal.subtitle, M = ((T = (O = e == null ? void 0 : e.units) == null ? void 0 : O.modal) == null ? void 0 : T.apply) ?? J.options.units.modal.apply, v = o.system === r ? o : a[0];
1082
- return /* @__PURE__ */ D(qe, { open: t, component: F, onClose: i, maxWidth: "xs", PaperProps: {
1082
+ var S, d, f, v, T, x, L, _;
1083
+ const [r, s] = Q("metric"), a = Ae(() => l.filter((b) => b.system === r), [r, l]), h = (b, A) => {
1084
+ s(A);
1085
+ }, u = ((d = (S = e == null ? void 0 : e.units) == null ? void 0 : S.modal) == null ? void 0 : d.options) ?? K.options.units.modal.options, m = u[r].options, p = ((v = (f = e == null ? void 0 : e.units) == null ? void 0 : f.modal) == null ? void 0 : v.title) ?? K.options.units.modal.title, y = ((x = (T = e == null ? void 0 : e.units) == null ? void 0 : T.modal) == null ? void 0 : x.subtitle) ?? K.options.units.modal.subtitle, w = ((_ = (L = e == null ? void 0 : e.units) == null ? void 0 : L.modal) == null ? void 0 : _.apply) ?? K.options.units.modal.apply, g = o.system === r ? o : a[0];
1086
+ return /* @__PURE__ */ D(qe, { open: t, component: G, onClose: i, maxWidth: "xs", PaperProps: {
1083
1087
  component: "form",
1084
1088
  onSubmit: (b) => {
1085
1089
  b.preventDefault();
1086
- const _ = new FormData(b.currentTarget);
1087
- c(_.get("unit-value"));
1090
+ const A = new FormData(b.currentTarget);
1091
+ c(A.get("unit-value"));
1088
1092
  }
1089
1093
  }, children: [
1090
- /* @__PURE__ */ D(Ke, { sx: V.options.modal.title, children: [
1094
+ /* @__PURE__ */ D(Ke, { sx: $.options.modal.title, children: [
1091
1095
  p,
1092
- /* @__PURE__ */ n(ee, { onClick: i, children: /* @__PURE__ */ n(st, {}) })
1096
+ /* @__PURE__ */ n(te, { onClick: i, children: /* @__PURE__ */ n(st, {}) })
1093
1097
  ] }),
1094
- /* @__PURE__ */ D(Ye, { sx: V.options.modal.content, children: [
1095
- /* @__PURE__ */ n(H, { sx: V.options.modal.subtitle, children: w }),
1096
- /* @__PURE__ */ D(Ee, { color: "primary", value: r, exclusive: !0, fullWidth: !0, onChange: m, "aria-label": "system", sx: V.options.modal.toggle, children: [
1097
- /* @__PURE__ */ n(ae, { value: "metric", children: u.metric.title }),
1098
- /* @__PURE__ */ n(ae, { value: "imperial", children: u.imperial.title })
1098
+ /* @__PURE__ */ D(Ye, { sx: $.options.modal.content, children: [
1099
+ /* @__PURE__ */ n(W, { sx: $.options.modal.subtitle, children: y }),
1100
+ /* @__PURE__ */ D(je, { color: "primary", value: r, exclusive: !0, fullWidth: !0, onChange: h, "aria-label": "system", sx: $.options.modal.toggle, children: [
1101
+ /* @__PURE__ */ n(me, { value: "metric", children: u.metric.title }),
1102
+ /* @__PURE__ */ n(me, { value: "imperial", children: u.imperial.title })
1099
1103
  ] }),
1100
- /* @__PURE__ */ n(Je, { children: /* @__PURE__ */ n(Qe, { "aria-labelledby": "unit-value", defaultValue: v == null ? void 0 : v.value, name: "unit-value", sx: V.options.modal.optionsGroup, children: a.map((b) => {
1101
- const _ = h[b.value];
1102
- return /* @__PURE__ */ n(et, { value: b.value, control: /* @__PURE__ */ n(tt, {}), label: _ }, b.value);
1103
- }) }) }, v == null ? void 0 : v.value)
1104
+ /* @__PURE__ */ n(Je, { children: /* @__PURE__ */ n(Qe, { "aria-labelledby": "unit-value", defaultValue: g == null ? void 0 : g.value, name: "unit-value", sx: $.options.modal.optionsGroup, children: a.map((b) => {
1105
+ const A = m[b.value];
1106
+ return /* @__PURE__ */ n(et, { value: b.value, control: /* @__PURE__ */ n(tt, {}), label: A }, b.value);
1107
+ }) }) }, g == null ? void 0 : g.value)
1104
1108
  ] }),
1105
- /* @__PURE__ */ n(ot, { sx: V.options.modal.actions, children: /* @__PURE__ */ n(ve, { variant: "contained", type: "submit", children: M }) })
1109
+ /* @__PURE__ */ n(ot, { sx: $.options.modal.actions, children: /* @__PURE__ */ n(we, { variant: "contained", type: "submit", children: w }) })
1106
1110
  ] });
1107
1111
  }
1108
- const Pt = {
1112
+ const $t = {
1109
1113
  enabled: "Show your current location",
1110
1114
  disabled: "Location unavailable"
1111
- }, $t = "geolocation";
1115
+ }, Ut = "geolocation";
1112
1116
  function lo(t) {
1113
- const e = Z(25), {
1117
+ const e = R(25), {
1114
1118
  disabled: l,
1115
1119
  labels: o,
1116
1120
  PaperProps: i,
@@ -1118,48 +1122,48 @@ function lo(t) {
1118
1122
  watch: r,
1119
1123
  onChange: s,
1120
1124
  onError: a
1121
- } = t, m = ft(null), u = "geolocation" in navigator, [h, p] = Q(u);
1122
- let w, M;
1123
- e[0] !== a ? (w = () => (u && navigator.permissions.query({
1125
+ } = t, h = ft(null), u = "geolocation" in navigator, [m, p] = Q(u);
1126
+ let y, w;
1127
+ e[0] !== a ? (y = () => (u && navigator.permissions.query({
1124
1128
  name: "geolocation"
1125
- }).then((A) => {
1126
- p(A.state === "granted"), A.onchange = () => {
1127
- p(A.state === "granted");
1129
+ }).then((C) => {
1130
+ p(C.state === "granted"), C.onchange = () => {
1131
+ p(C.state === "granted");
1128
1132
  };
1129
- }).catch((A) => {
1130
- p(!1), a == null || a(A);
1133
+ }).catch((C) => {
1134
+ p(!1), a == null || a(C);
1131
1135
  }), () => {
1132
- m.current && navigator.geolocation.clearWatch(m.current);
1133
- }), M = [u, a], e[0] = a, e[1] = w, e[2] = M) : (w = e[1], M = e[2]), Pe(w, M);
1134
- let v;
1135
- e[3] !== s ? (v = (A) => {
1136
- s(A.coords);
1137
- }, e[3] = s, e[4] = v) : v = e[4];
1138
- const S = v;
1136
+ h.current && navigator.geolocation.clearWatch(h.current);
1137
+ }), w = [u, a], e[0] = a, e[1] = y, e[2] = w) : (y = e[1], w = e[2]), $e(y, w);
1138
+ let g;
1139
+ e[3] !== s ? (g = (C) => {
1140
+ s(C.coords);
1141
+ }, e[3] = s, e[4] = g) : g = e[4];
1142
+ const S = g;
1139
1143
  let d;
1140
- e[5] !== a ? (d = (A) => {
1141
- p(!1), a == null || a(A);
1144
+ e[5] !== a ? (d = (C) => {
1145
+ p(!1), a == null || a(C);
1142
1146
  }, e[5] = a, e[6] = d) : d = e[6];
1143
1147
  const f = d;
1144
- let g;
1145
- e[7] !== f || e[8] !== S || e[9] !== r ? (g = () => {
1146
- if (m.current && navigator.geolocation.clearWatch(m.current), r) {
1147
- m.current = navigator.geolocation.watchPosition(S, f);
1148
+ let v;
1149
+ e[7] !== f || e[8] !== S || e[9] !== r ? (v = () => {
1150
+ if (h.current && navigator.geolocation.clearWatch(h.current), r) {
1151
+ h.current = navigator.geolocation.watchPosition(S, f);
1148
1152
  return;
1149
1153
  }
1150
1154
  navigator.geolocation.getCurrentPosition(S, f);
1151
- }, e[7] = f, e[8] = S, e[9] = r, e[10] = g) : g = e[10];
1152
- const C = g, O = ((o == null ? void 0 : o.tooltip) ?? Pt)[h ? "enabled" : "disabled"], T = (o == null ? void 0 : o.ariaLabel) ?? $t, b = !u || l;
1153
- let _;
1154
- e[11] !== h ? (_ = h ? /* @__PURE__ */ n(at, {}) : /* @__PURE__ */ n(dt, {}), e[11] = h, e[12] = _) : _ = e[12];
1155
- let y;
1156
- e[13] !== C || e[14] !== T || e[15] !== b || e[16] !== _ ? (y = /* @__PURE__ */ n(ee, { onClick: C, "aria-label": T, disabled: b, children: _ }), e[13] = C, e[14] = T, e[15] = b, e[16] = _, e[17] = y) : y = e[17];
1157
- let L;
1158
- e[18] !== c || e[19] !== y || e[20] !== O ? (L = /* @__PURE__ */ n(le, { arrow: !0, placement: "right", title: O, ...c, children: y }), e[18] = c, e[19] = y, e[20] = O, e[21] = L) : L = e[21];
1155
+ }, e[7] = f, e[8] = S, e[9] = r, e[10] = v) : v = e[10];
1156
+ const T = v, L = ((o == null ? void 0 : o.tooltip) ?? $t)[m ? "enabled" : "disabled"], _ = (o == null ? void 0 : o.ariaLabel) ?? Ut, b = !u || l;
1157
+ let A;
1158
+ e[11] !== m ? (A = m ? /* @__PURE__ */ n(at, {}) : /* @__PURE__ */ n(dt, {}), e[11] = m, e[12] = A) : A = e[12];
1159
+ let M;
1160
+ e[13] !== T || e[14] !== _ || e[15] !== b || e[16] !== A ? (M = /* @__PURE__ */ n(te, { onClick: T, "aria-label": _, disabled: b, children: A }), e[13] = T, e[14] = _, e[15] = b, e[16] = A, e[17] = M) : M = e[17];
1159
1161
  let I;
1160
- return e[22] !== i || e[23] !== L ? (I = /* @__PURE__ */ n(ye, { ...i, children: L }), e[22] = i, e[23] = L, e[24] = I) : I = e[24], I;
1162
+ e[18] !== c || e[19] !== M || e[20] !== L ? (I = /* @__PURE__ */ n(ce, { arrow: !0, placement: "right", title: L, ...c, children: M }), e[18] = c, e[19] = M, e[20] = L, e[21] = I) : I = e[21];
1163
+ let O;
1164
+ return e[22] !== i || e[23] !== I ? (O = /* @__PURE__ */ n(xe, { ...i, children: I }), e[22] = i, e[23] = I, e[24] = O) : O = e[24], O;
1161
1165
  }
1162
- const Me = {
1166
+ const Se = {
1163
1167
  zoom: {
1164
1168
  position: "relative",
1165
1169
  height: ({
@@ -1192,7 +1196,7 @@ const Me = {
1192
1196
  }
1193
1197
  };
1194
1198
  function ro(t) {
1195
- const e = Z(40), {
1199
+ const e = R(40), {
1196
1200
  zoom: l,
1197
1201
  disabled: o,
1198
1202
  direction: i,
@@ -1200,133 +1204,133 @@ function ro(t) {
1200
1204
  maxZoom: r,
1201
1205
  minZoom: s,
1202
1206
  PaperProps: a,
1203
- ResetViewProps: m,
1207
+ ResetViewProps: h,
1204
1208
  showZoom: u,
1205
- onChange: h,
1209
+ onChange: m,
1206
1210
  onReset: p
1207
- } = t, w = i === void 0 ? "vertical" : i, M = r === void 0 ? 24 : r, v = s === void 0 ? 0 : s;
1211
+ } = t, y = i === void 0 ? "vertical" : i, w = r === void 0 ? 24 : r, g = s === void 0 ? 0 : s;
1208
1212
  let S;
1209
- e[0] !== m ? (S = m === void 0 ? {
1213
+ e[0] !== h ? (S = h === void 0 ? {
1210
1214
  Icon: ut
1211
- } : m, e[0] = m, e[1] = S) : S = e[1];
1215
+ } : h, e[0] = h, e[1] = S) : S = e[1];
1212
1216
  const d = S, f = u === void 0 ? !0 : u;
1213
- let g;
1214
- e[2] !== M || e[3] !== h || e[4] !== l ? (g = () => {
1215
- const $ = Math.min(M, l + 1);
1216
- h($);
1217
- }, e[2] = M, e[3] = h, e[4] = l, e[5] = g) : g = e[5];
1218
- const C = g;
1217
+ let v;
1218
+ e[2] !== w || e[3] !== m || e[4] !== l ? (v = () => {
1219
+ const N = Math.min(w, l + 1);
1220
+ m(N);
1221
+ }, e[2] = w, e[3] = m, e[4] = l, e[5] = v) : v = e[5];
1222
+ const T = v;
1219
1223
  let x;
1220
- e[6] !== v || e[7] !== h || e[8] !== l ? (x = () => {
1221
- const $ = Math.max(v, l - 1);
1222
- h($);
1223
- }, e[6] = v, e[7] = h, e[8] = l, e[9] = x) : x = e[9];
1224
- const O = x, T = Math.floor(l), b = w === "vertical" ? "horizontal" : "vertical", _ = w === "vertical" ? "column" : "row";
1225
- let y;
1226
- e[10] !== _ ? (y = {
1227
- ...Me.paper,
1228
- flexDirection: _
1229
- }, e[10] = _, e[11] = y) : y = e[11];
1230
- let L;
1231
- e[12] !== d || e[13] !== o || e[14] !== b || e[15] !== p ? (L = p && /* @__PURE__ */ D(j, { children: [
1232
- /* @__PURE__ */ n(ee, { onClick: p, "aria-label": "Decrease zoom", disabled: o, children: /* @__PURE__ */ n(d.Icon, {}) }),
1233
- /* @__PURE__ */ n(Y, { orientation: b, flexItem: !0 })
1234
- ] }), e[12] = d, e[13] = o, e[14] = b, e[15] = p, e[16] = L) : L = e[16];
1224
+ e[6] !== g || e[7] !== m || e[8] !== l ? (x = () => {
1225
+ const N = Math.max(g, l - 1);
1226
+ m(N);
1227
+ }, e[6] = g, e[7] = m, e[8] = l, e[9] = x) : x = e[9];
1228
+ const L = x, _ = Math.floor(l), b = y === "vertical" ? "horizontal" : "vertical", A = y === "vertical" ? "column" : "row";
1229
+ let M;
1230
+ e[10] !== A ? (M = {
1231
+ ...Se.paper,
1232
+ flexDirection: A
1233
+ }, e[10] = A, e[11] = M) : M = e[11];
1235
1234
  let I;
1236
- e[17] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ n(mt, {}), e[17] = I) : I = e[17];
1237
- let A;
1238
- e[18] !== o || e[19] !== C ? (A = /* @__PURE__ */ n(ee, { onClick: C, "aria-label": "Increase zoom", disabled: o, children: I }), e[18] = o, e[19] = C, e[20] = A) : A = e[20];
1239
- let R;
1240
- e[21] !== b ? (R = /* @__PURE__ */ n(Y, { orientation: b, flexItem: !0 }), e[21] = b, e[22] = R) : R = e[22];
1235
+ e[12] !== d || e[13] !== o || e[14] !== b || e[15] !== p ? (I = p && /* @__PURE__ */ D(B, { children: [
1236
+ /* @__PURE__ */ n(te, { onClick: p, "aria-label": "Reset action", disabled: o, children: /* @__PURE__ */ n(d.Icon, {}) }),
1237
+ /* @__PURE__ */ n(Y, { orientation: b, flexItem: !0 })
1238
+ ] }), e[12] = d, e[13] = o, e[14] = b, e[15] = p, e[16] = I) : I = e[16];
1239
+ let O;
1240
+ e[17] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ n(mt, {}), e[17] = O) : O = e[17];
1241
+ let C;
1242
+ e[18] !== o || e[19] !== T ? (C = /* @__PURE__ */ n(te, { onClick: T, "aria-label": "Increase zoom", disabled: o, children: O }), e[18] = o, e[19] = T, e[20] = C) : C = e[20];
1243
+ let Z;
1244
+ e[21] !== b ? (Z = /* @__PURE__ */ n(Y, { orientation: b, flexItem: !0 }), e[21] = b, e[22] = Z) : Z = e[22];
1241
1245
  let k;
1242
- e[23] !== T || e[24] !== b || e[25] !== c || e[26] !== f ? (k = f && /* @__PURE__ */ D(j, { children: [
1243
- /* @__PURE__ */ D(F, { sx: Me.zoom, children: [
1244
- /* @__PURE__ */ n(H, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: T }),
1245
- c && /* @__PURE__ */ n(nt, { sx: Me.circularProgress, variant: "indeterminate", size: 24 })
1246
+ e[23] !== _ || e[24] !== b || e[25] !== c || e[26] !== f ? (k = f && /* @__PURE__ */ D(B, { children: [
1247
+ /* @__PURE__ */ D(G, { sx: Se.zoom, children: [
1248
+ /* @__PURE__ */ n(W, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: _ }),
1249
+ c && /* @__PURE__ */ n(nt, { sx: Se.circularProgress, variant: "indeterminate", size: 24 })
1246
1250
  ] }),
1247
1251
  /* @__PURE__ */ n(Y, { orientation: b, flexItem: !0 })
1248
- ] }), e[23] = T, e[24] = b, e[25] = c, e[26] = f, e[27] = k) : k = e[27];
1252
+ ] }), e[23] = _, e[24] = b, e[25] = c, e[26] = f, e[27] = k) : k = e[27];
1249
1253
  let E;
1250
1254
  e[28] === Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ n(ht, {}), e[28] = E) : E = e[28];
1251
- let B;
1252
- e[29] !== O || e[30] !== o ? (B = /* @__PURE__ */ n(ee, { onClick: O, "aria-label": "Decrease zoom", disabled: o, children: E }), e[29] = O, e[30] = o, e[31] = B) : B = e[31];
1253
- let N;
1254
- return e[32] !== a || e[33] !== y || e[34] !== L || e[35] !== A || e[36] !== R || e[37] !== k || e[38] !== B ? (N = /* @__PURE__ */ D(ye, { sx: y, ...a, children: [
1255
- L,
1256
- A,
1257
- R,
1255
+ let V;
1256
+ e[29] !== L || e[30] !== o ? (V = /* @__PURE__ */ n(te, { onClick: L, "aria-label": "Decrease zoom", disabled: o, children: E }), e[29] = L, e[30] = o, e[31] = V) : V = e[31];
1257
+ let F;
1258
+ return e[32] !== a || e[33] !== M || e[34] !== I || e[35] !== C || e[36] !== Z || e[37] !== k || e[38] !== V ? (F = /* @__PURE__ */ D(xe, { sx: M, ...a, children: [
1259
+ I,
1260
+ C,
1261
+ Z,
1258
1262
  k,
1259
- B
1260
- ] }), e[32] = a, e[33] = y, e[34] = L, e[35] = A, e[36] = R, e[37] = k, e[38] = B, e[39] = N) : N = e[39], N;
1263
+ V
1264
+ ] }), e[32] = a, e[33] = M, e[34] = I, e[35] = C, e[36] = Z, e[37] = k, e[38] = V, e[39] = F) : F = e[39], F;
1261
1265
  }
1262
- function Ut(t) {
1263
- const e = Z(4), {
1266
+ function Vt(t) {
1267
+ const e = R(4), {
1264
1268
  length: l
1265
1269
  } = t, o = l === void 0 ? 5 : l;
1266
1270
  let i;
1267
- e[0] !== o ? (i = new Array(o).fill(null).map(Vt), e[0] = o, e[1] = i) : i = e[1];
1271
+ e[0] !== o ? (i = new Array(o).fill(null).map(Gt), e[0] = o, e[1] = i) : i = e[1];
1268
1272
  let c;
1269
- return e[2] !== i ? (c = /* @__PURE__ */ n(F, { children: i }), e[2] = i, e[3] = c) : c = e[3], c;
1273
+ return e[2] !== i ? (c = /* @__PURE__ */ n(G, { "aria-label": "List Data skeleton", children: i }), e[2] = i, e[3] = c) : c = e[3], c;
1270
1274
  }
1271
- function Vt(t, e) {
1272
- return /* @__PURE__ */ D(re, { container: !0, spacing: 1, children: [
1273
- /* @__PURE__ */ D(re, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
1274
- /* @__PURE__ */ n(xe, { width: zt(e) ? 72 : 48, height: 20 }),
1275
- /* @__PURE__ */ n(xe, { width: 48, height: 8 })
1275
+ function Gt(t, e) {
1276
+ return /* @__PURE__ */ D(ae, { container: !0, spacing: 1, children: [
1277
+ /* @__PURE__ */ D(ae, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
1278
+ /* @__PURE__ */ n(be, { width: Ht(e) ? 72 : 48, height: 20 }),
1279
+ /* @__PURE__ */ n(be, { width: 48, height: 8 })
1276
1280
  ] }),
1277
- /* @__PURE__ */ n(xe, { sx: {
1278
- height: Nt,
1279
- marginTop: Ft,
1280
- marginBottom: Gt,
1281
+ /* @__PURE__ */ n(be, { sx: {
1282
+ height: zt,
1283
+ marginTop: Nt,
1284
+ marginBottom: Ft,
1281
1285
  width: "100%"
1282
1286
  } })
1283
1287
  ] }, e);
1284
1288
  }
1285
- function Gt(t) {
1289
+ function Ft(t) {
1286
1290
  const {
1287
1291
  spacing: e
1288
1292
  } = t;
1289
1293
  return e(1.75);
1290
1294
  }
1291
- function Ft(t) {
1295
+ function Nt(t) {
1292
1296
  const {
1293
1297
  spacing: e
1294
1298
  } = t;
1295
1299
  return e(1.25);
1296
1300
  }
1297
- function Nt(t) {
1301
+ function zt(t) {
1298
1302
  const {
1299
1303
  spacing: e
1300
1304
  } = t;
1301
1305
  return e(0.5);
1302
1306
  }
1303
- function zt(t) {
1307
+ function Ht(t) {
1304
1308
  return t % 2 === 1;
1305
1309
  }
1306
- function Ht(t) {
1307
- const e = Z(13), {
1310
+ function Wt(t) {
1311
+ const e = R(13), {
1308
1312
  title: l,
1309
1313
  body: o,
1310
1314
  severity: i
1311
1315
  } = t, c = l === void 0 ? "No data available" : l, 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;
1312
1316
  if (i) {
1313
1317
  let u;
1314
- e[0] !== r ? (u = /* @__PURE__ */ n(Re, { children: r }), e[0] = r, e[1] = u) : u = e[1];
1315
- let h;
1316
- return e[2] !== i || e[3] !== u || e[4] !== c ? (h = /* @__PURE__ */ n(it, { title: c, severity: i, children: u }), e[2] = i, e[3] = u, e[4] = c, e[5] = h) : h = e[5], h;
1318
+ e[0] !== r ? (u = /* @__PURE__ */ n(Ze, { children: r }), e[0] = r, e[1] = u) : u = e[1];
1319
+ let m;
1320
+ return e[2] !== i || e[3] !== u || e[4] !== c ? (m = /* @__PURE__ */ n(it, { title: c, severity: i, children: u }), e[2] = i, e[3] = u, e[4] = c, e[5] = m) : m = e[5], m;
1317
1321
  }
1318
1322
  let s;
1319
- e[6] !== c ? (s = c && /* @__PURE__ */ n(H, { variant: "body2", children: c }), e[6] = c, e[7] = s) : s = e[7];
1323
+ e[6] !== c ? (s = c && /* @__PURE__ */ n(W, { variant: "body2", children: c }), e[6] = c, e[7] = s) : s = e[7];
1320
1324
  let a;
1321
- e[8] !== r ? (a = /* @__PURE__ */ n(Re, { color: "textSecondary", children: r }), e[8] = r, e[9] = a) : a = e[9];
1322
- let m;
1323
- return e[10] !== s || e[11] !== a ? (m = /* @__PURE__ */ D(F, { children: [
1325
+ e[8] !== r ? (a = /* @__PURE__ */ n(Ze, { color: "textSecondary", children: r }), e[8] = r, e[9] = a) : a = e[9];
1326
+ let h;
1327
+ return e[10] !== s || e[11] !== a ? (h = /* @__PURE__ */ D(G, { children: [
1324
1328
  s,
1325
1329
  a
1326
- ] }), e[10] = s, e[11] = a, e[12] = m) : m = e[12], m;
1330
+ ] }), e[10] = s, e[11] = a, e[12] = h) : h = e[12], h;
1327
1331
  }
1328
- function Re(t) {
1329
- const e = Z(5), {
1332
+ function Ze(t) {
1333
+ const e = R(5), {
1330
1334
  color: l,
1331
1335
  children: o
1332
1336
  } = t;
@@ -1337,31 +1341,31 @@ function Re(t) {
1337
1341
  fontWeight: "normal"
1338
1342
  }, e[0] = r) : r = e[0];
1339
1343
  let s;
1340
- return e[1] !== o || e[2] !== c ? (s = /* @__PURE__ */ n(F, { mt: 0.5, children: /* @__PURE__ */ n(H, { component: "div", variant: "caption", color: c, style: r, children: o }) }), e[1] = o, e[2] = c, e[3] = s) : s = e[3], s;
1344
+ return e[1] !== o || e[2] !== c ? (s = /* @__PURE__ */ n(G, { mt: 0.5, children: /* @__PURE__ */ n(W, { component: "div", variant: "caption", color: c, style: r, children: o }) }), e[1] = o, e[2] = c, e[3] = s) : s = e[3], s;
1341
1345
  }
1342
1346
  let i;
1343
- return e[4] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ n(F, { mt: -1 }), e[4] = i) : i = e[4], i;
1347
+ return e[4] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ n(G, { mt: -1 }), e[4] = i) : i = e[4], i;
1344
1348
  }
1345
- function Wt(t) {
1346
- const e = Z(4), [l, o] = Q(!1), [i, c] = Q(!1);
1349
+ function Xt(t) {
1350
+ const e = R(4), [l, o] = Q(!1), [i, c] = Q(!1);
1347
1351
  let r, s;
1348
1352
  return e[0] !== i || e[1] !== t ? (r = () => {
1349
1353
  t && !i && (o(!0), c(!0)), t || o(!1);
1350
- }, s = [t, i], e[0] = i, e[1] = t, e[2] = r, e[3] = s) : (r = e[2], s = e[3]), Pe(r, s), l;
1354
+ }, s = [t, i], e[0] = i, e[1] = t, e[2] = r, e[3] = s) : (r = e[2], s = e[3]), $e(r, s), l;
1351
1355
  }
1352
- const Ze = {
1356
+ const ke = {
1353
1357
  overflow: "hidden",
1354
1358
  textOverflow: "ellipsis",
1355
1359
  whiteSpace: "nowrap"
1356
- }, ie = {
1360
+ }, re = {
1357
1361
  label: {
1358
1362
  "& .MuiListItemText-primary": {
1359
- ...Ze
1363
+ ...ke
1360
1364
  }
1361
1365
  },
1362
1366
  value: {
1363
1367
  "& .MuiListItemText-primary": {
1364
- ...Ze,
1368
+ ...ke,
1365
1369
  textAlign: "right"
1366
1370
  }
1367
1371
  },
@@ -1385,14 +1389,14 @@ const Ze = {
1385
1389
  },
1386
1390
  disabled: {
1387
1391
  opacity: 0.5,
1388
- cursor: "not-allowed"
1392
+ pointerEvents: "none"
1389
1393
  }
1390
- }, Xt = {
1394
+ }, qt = {
1391
1395
  showMore: "Show More",
1392
1396
  showLess: "Show Less"
1393
1397
  };
1394
1398
  function co(t) {
1395
- const e = Z(34), {
1399
+ const e = R(34), {
1396
1400
  data: l,
1397
1401
  isLoading: o,
1398
1402
  maxItems: i,
@@ -1400,69 +1404,69 @@ function co(t) {
1400
1404
  showDivider: r,
1401
1405
  selectedItemId: s,
1402
1406
  tooltipProps: a,
1403
- onExpand: m,
1407
+ onExpand: h,
1404
1408
  onItemClick: u
1405
1409
  } = t;
1406
- let h;
1407
- e[0] !== l ? (h = l === void 0 ? [] : l, e[0] = l, e[1] = h) : h = e[1];
1408
- const p = h, w = o === void 0 ? !1 : o, M = i === void 0 ? 5 : i, v = c === void 0 ? Xt : c, S = r === void 0 ? !0 : r, [d, f] = Q(!1), g = Wt(w);
1409
- let C, x;
1410
- e[2] !== p || e[3] !== M || e[4] !== d ? (x = d ? p : p.slice(0, M), e[2] = p, e[3] = M, e[4] = d, e[5] = x) : x = e[5], C = x;
1411
- const O = C;
1412
- let T;
1413
- e[6] !== m || e[7] !== d ? (T = () => {
1414
- f(!d), m == null || m(d);
1415
- }, e[6] = m, e[7] = d, e[8] = T) : T = e[8];
1416
- const b = T;
1417
- if (g) {
1418
- let A;
1419
- return e[9] !== M ? (A = /* @__PURE__ */ n(Ut, { length: M }), e[9] = M, e[10] = A) : A = e[10], A;
1410
+ let m;
1411
+ e[0] !== l ? (m = l === void 0 ? [] : l, e[0] = l, e[1] = m) : m = e[1];
1412
+ const p = m, y = o === void 0 ? !1 : o, w = i === void 0 ? 5 : i, g = c === void 0 ? qt : c, S = r === void 0 ? !0 : r, [d, f] = Q(!1), v = Xt(y);
1413
+ let T, x;
1414
+ e[2] !== p || e[3] !== w || e[4] !== d ? (x = d ? p : p.slice(0, w), e[2] = p, e[3] = w, e[4] = d, e[5] = x) : x = e[5], T = x;
1415
+ const L = T;
1416
+ let _;
1417
+ e[6] !== h || e[7] !== d ? (_ = () => {
1418
+ f(!d), h == null || h(d);
1419
+ }, e[6] = h, e[7] = d, e[8] = _) : _ = e[8];
1420
+ const b = _;
1421
+ if (v) {
1422
+ let C;
1423
+ return e[9] !== w ? (C = /* @__PURE__ */ n(Vt, { length: w }), e[9] = w, e[10] = C) : C = e[10], C;
1420
1424
  }
1421
- if (O.length === 0) {
1422
- let A;
1423
- return e[11] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ n(Ht, {}), e[11] = A) : A = e[11], A;
1425
+ if (L.length === 0) {
1426
+ let C;
1427
+ return e[11] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ n(Wt, {}), e[11] = C) : C = e[11], C;
1424
1428
  }
1425
- let _;
1426
- if (e[12] !== O || e[13] !== u || e[14] !== s || e[15] !== S || e[16] !== a) {
1427
- let A;
1428
- e[18] !== u || e[19] !== s || e[20] !== S || e[21] !== a ? (A = (R, k) => /* @__PURE__ */ n(le, { followCursor: !1, placement: "top", arrow: !0, title: R.tooltipTitle, enterDelay: 10, ...a, children: /* @__PURE__ */ n(lt, { sx: {
1429
- ...S && ie.showDivider,
1430
- ...u && ie.clickable,
1431
- ...s === R.id && ie.selected,
1432
- ...R.disabled && ie.disabled
1429
+ let A;
1430
+ if (e[12] !== L || e[13] !== u || e[14] !== s || e[15] !== S || e[16] !== a) {
1431
+ let C;
1432
+ e[18] !== u || e[19] !== s || e[20] !== S || e[21] !== a ? (C = (Z, k) => /* @__PURE__ */ n(ce, { followCursor: !1, placement: "top", arrow: !0, title: Z.tooltipTitle, enterDelay: 10, ...a, children: /* @__PURE__ */ n(lt, { role: "listitem", sx: {
1433
+ ...S && re.showDivider,
1434
+ ...u && re.clickable,
1435
+ ...s === Z.id && re.selected,
1436
+ ...Z.disabled && re.disabled
1433
1437
  }, onClick: () => {
1434
- R.disabled || u == null || u(R);
1435
- }, children: /* @__PURE__ */ D(re, { container: !0, alignItems: "center", children: [
1436
- /* @__PURE__ */ n(re, { item: !0, xs: 8, children: /* @__PURE__ */ n(se, { primary: R.label, sx: ie.label }) }),
1437
- /* @__PURE__ */ n(re, { item: !0, xs: 4, children: /* @__PURE__ */ n(se, { primary: R.value, sx: ie.value }) })
1438
- ] }) }) }, `list-item-${k}`), e[18] = u, e[19] = s, e[20] = S, e[21] = a, e[22] = A) : A = e[22], _ = O.map(A), e[12] = O, e[13] = u, e[14] = s, e[15] = S, e[16] = a, e[17] = _;
1438
+ Z.disabled || u == null || u(Z);
1439
+ }, children: /* @__PURE__ */ D(ae, { container: !0, alignItems: "center", children: [
1440
+ /* @__PURE__ */ n(ae, { item: !0, xs: 8, children: /* @__PURE__ */ n(ue, { primary: Z.label, sx: re.label }) }),
1441
+ /* @__PURE__ */ n(ae, { item: !0, xs: 4, children: /* @__PURE__ */ n(ue, { primary: Z.value, sx: re.value }) })
1442
+ ] }) }) }, `list-item-${k}`), e[18] = u, e[19] = s, e[20] = S, e[21] = a, e[22] = C) : C = e[22], A = L.map(C), e[12] = L, e[13] = u, e[14] = s, e[15] = S, e[16] = a, e[17] = A;
1439
1443
  } else
1440
- _ = e[17];
1441
- let y;
1442
- e[23] !== _ ? (y = /* @__PURE__ */ n(rt, { id: "expandable-list", children: _ }), e[23] = _, e[24] = y) : y = e[24];
1443
- let L;
1444
- e[25] !== p.length || e[26] !== b || e[27] !== v || e[28] !== M || e[29] !== d ? (L = p.length > M && /* @__PURE__ */ n(F, { my: 2, children: /* @__PURE__ */ n(ve, { onClick: b, variant: "text", color: "primary", "aria-expanded": d, "aria-controls": "expandable-list", children: d ? v.showLess : v.showMore }) }), e[25] = p.length, e[26] = b, e[27] = v, e[28] = M, e[29] = d, e[30] = L) : L = e[30];
1444
+ A = e[17];
1445
+ let M;
1446
+ e[23] !== A ? (M = /* @__PURE__ */ n(rt, { id: "expandable-list", role: "list", children: A }), e[23] = A, e[24] = M) : M = e[24];
1445
1447
  let I;
1446
- return e[31] !== y || e[32] !== L ? (I = /* @__PURE__ */ D(j, { children: [
1447
- y,
1448
- L
1449
- ] }), e[31] = y, e[32] = L, e[33] = I) : I = e[33], I;
1448
+ e[25] !== p.length || e[26] !== b || e[27] !== g || e[28] !== w || e[29] !== d ? (I = p.length > w && /* @__PURE__ */ n(G, { my: 2, children: /* @__PURE__ */ n(we, { onClick: b, variant: "text", color: "primary", "aria-expanded": d, "aria-controls": "expandable-list", children: d ? g.showLess : g.showMore }) }), e[25] = p.length, e[26] = b, e[27] = g, e[28] = w, e[29] = d, e[30] = I) : I = e[30];
1449
+ let O;
1450
+ return e[31] !== M || e[32] !== I ? (O = /* @__PURE__ */ D(B, { children: [
1451
+ M,
1452
+ I
1453
+ ] }), e[31] = M, e[32] = I, e[33] = O) : O = e[33], O;
1450
1454
  }
1451
1455
  export {
1452
1456
  Zt as AreaIcon,
1453
1457
  Rt as BufferIcon,
1454
- eo as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1455
- J as DEFAULT_MEASUREMENT_TOOLS_LABELS,
1456
- no as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
1458
+ to as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1459
+ K as DEFAULT_MEASUREMENT_TOOLS_LABELS,
1460
+ Et as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
1457
1461
  kt as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
1458
1462
  vt as DrawCircleIcon,
1459
1463
  yt as DrawLassoIcon,
1460
1464
  pt as DrawPolygonIcon,
1461
1465
  gt as DrawSquareIcon,
1462
1466
  lo as GeolocationControls,
1463
- P as LASSO_TOOLS_LABELS,
1464
- oo as LassoToolsInlineUI,
1465
- to as LassoToolsUI,
1467
+ j as LASSO_TOOLS_LABELS,
1468
+ no as LassoToolsInlineUI,
1469
+ oo as LassoToolsUI,
1466
1470
  co as ListDataUI,
1467
1471
  io as MeasurementToolsUI,
1468
1472
  It as RulerIcon,