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