@carto/ps-react-ui 4.0.0-canary.2 → 4.0.0-canary.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import { jsx as l, jsxs as _, Fragment as P } from "react/jsx-runtime";
2
2
  import { c as I } from "react/compiler-runtime";
3
3
  import { alpha as Re, Chip as He, Tooltip as re, Paper as we, Divider as Y, Box as ee, IconButton as Q, Menu as Ie, MenuItem as ce, ListItemIcon as Ze, SvgIcon as Me, ListItemText as ae, ToggleButton as se, Typography as H, ToggleButtonGroup as ke, Button as ye, Dialog as Ne, DialogTitle as Xe, DialogContent as We, FormControl as Ke, RadioGroup as Ye, FormControlLabel as qe, Radio as Je, DialogActions as Qe, CircularProgress as et, ListItem as tt, List as ot } from "@mui/material";
4
- import { ArrowDropDown as Be, MoreVertOutlined as it, Close as nt, MyLocationOutlined as lt, LocationDisabledOutlined as rt, CropFreeOutlined as ct, AddOutlined as at, RemoveOutlined as st } from "@mui/icons-material";
5
- import { useMemo as Ce, useState as ne, useRef as dt, useEffect as ut } from "react";
4
+ import { ArrowDropDown as Be, MoreVertOutlined as nt, Close as it, MyLocationOutlined as lt, LocationDisabledOutlined as rt, CropFreeOutlined as ct, AddOutlined as at, RemoveOutlined as st } from "@mui/icons-material";
5
+ import { useMemo as Ce, useState as ie, useRef as dt, useEffect as ut } from "react";
6
6
  const G = {
7
7
  container: {
8
8
  display: "flex",
@@ -192,38 +192,38 @@ const G = {
192
192
  };
193
193
  function mt(t) {
194
194
  const e = I(3);
195
- let i;
196
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.996 2.996 0 0 0 0 2H6.829a2.995 2.995 0 0 0 0-2h10.342Zm-2.463-5.707 3.998 4a3.013 3.013 0 0 0-1.414 1.414l-4-3.999a3.014 3.014 0 0 0 1.31-1.214l.106-.201ZM2.998 6.829a2.995 2.995 0 0 0 2.002 0v10.342a2.993 2.993 0 0 0-2.002 0V6.83ZM12 10a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm1.84-3.919c.464.483 1.09.81 1.79.896l-1.47 2.94a2.992 2.992 0 0 0-1.79-.894l1.47-2.942ZM16 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm9.171.998a2.994 2.994 0 0 0 0 2.002H6.829a2.995 2.995 0 0 0 0-2.002h6.342Z", fill: "currentColor" }), e[0] = i) : i = e[0];
195
+ let n;
196
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.996 2.996 0 0 0 0 2H6.829a2.995 2.995 0 0 0 0-2h10.342Zm-2.463-5.707 3.998 4a3.013 3.013 0 0 0-1.414 1.414l-4-3.999a3.014 3.014 0 0 0 1.31-1.214l.106-.201ZM2.998 6.829a2.995 2.995 0 0 0 2.002 0v10.342a2.993 2.993 0 0 0-2.002 0V6.83ZM12 10a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm1.84-3.919c.464.483 1.09.81 1.79.896l-1.47 2.94a2.992 2.992 0 0 0-1.79-.894l1.47-2.942ZM16 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm9.171.998a2.994 2.994 0 0 0 0 2.002H6.829a2.995 2.995 0 0 0 0-2.002h6.342Z", fill: "currentColor" }), e[0] = n) : n = e[0];
197
197
  let o;
198
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: i }), e[1] = t, e[2] = o) : o = e[2], o;
198
+ return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
199
199
  }
200
200
  function ht(t) {
201
201
  const e = I(3);
202
- let i;
203
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.993 2.993 0 0 0-.17.974l-.001.052.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2h10.342ZM2.998 6.828a2.995 2.995 0 0 0 2.002 0V17.17a2.993 2.993 0 0 0-2.002 0V6.83Zm16.001 0a2.995 2.995 0 0 0 2 0V17.17a2.993 2.993 0 0 0-2 0V6.829ZM20 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm13.171.998a2.991 2.991 0 0 0-.17.976L17 4.026l.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2H17.17Z", fill: "currentColor" }), e[0] = i) : i = e[0];
202
+ let n;
203
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.993 2.993 0 0 0-.17.974l-.001.052.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2h10.342ZM2.998 6.828a2.995 2.995 0 0 0 2.002 0V17.17a2.993 2.993 0 0 0-2.002 0V6.83Zm16.001 0a2.995 2.995 0 0 0 2 0V17.17a2.993 2.993 0 0 0-2 0V6.829ZM20 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm13.171.998a2.991 2.991 0 0 0-.17.976L17 4.026l.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2H17.17Z", fill: "currentColor" }), e[0] = n) : n = e[0];
204
204
  let o;
205
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: i }), e[1] = t, e[2] = o) : o = e[2], o;
205
+ return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
206
206
  }
207
207
  function ft(t) {
208
208
  const e = I(3);
209
- let i;
210
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z", fill: "currentColor" }), e[0] = i) : i = e[0];
209
+ let n;
210
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z", fill: "currentColor" }), e[0] = n) : n = e[0];
211
211
  let o;
212
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: i }), e[1] = t, e[2] = o) : o = e[2], o;
212
+ return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
213
213
  }
214
214
  function pt(t) {
215
215
  const e = I(3);
216
- let i;
217
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 3c4.935 0 9 3.736 9 9l-.002.343-.012.668c-.012.438-.033.86-.062 1.266l-.05.597C20.498 18.767 19.267 21 17 21c-1.192 0-1.971-.341-2.988-1.122l-.472-.375c-.401-.319-.64-.473-.888-.566a4.938 4.938 0 0 0-.415-.13l-.34-.085-.398-.086-.456-.086-.66-.111-1.708-.273a9.112 9.112 0 0 1-.952-.206C5.46 17.301 3 14.954 3 12.015c0-1.508.485-2.995 1.436-4.458.355.585.906 1.04 1.562 1.272C5.328 9.916 5 10.977 5 12.015c0 1.889 1.78 3.588 3.282 4.025l.085.023.345.076.517.092 1.619.257.583.1.518.098.237.05.433.103c.272.07.512.143.73.224.434.161.783.373 1.235.718l.457.362c.806.646 1.24.857 1.959.857.893 0 1.63-1.518 1.895-4.45l.045-.585c.013-.2.024-.407.033-.62l.02-.655c.005-.224.007-.454.007-.69 0-4.12-3.133-7-7-7a1 1 0 1 1 0-2ZM7 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z", fill: "currentColor" }), e[0] = i) : i = e[0];
216
+ let n;
217
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 3c4.935 0 9 3.736 9 9l-.002.343-.012.668c-.012.438-.033.86-.062 1.266l-.05.597C20.498 18.767 19.267 21 17 21c-1.192 0-1.971-.341-2.988-1.122l-.472-.375c-.401-.319-.64-.473-.888-.566a4.938 4.938 0 0 0-.415-.13l-.34-.085-.398-.086-.456-.086-.66-.111-1.708-.273a9.112 9.112 0 0 1-.952-.206C5.46 17.301 3 14.954 3 12.015c0-1.508.485-2.995 1.436-4.458.355.585.906 1.04 1.562 1.272C5.328 9.916 5 10.977 5 12.015c0 1.889 1.78 3.588 3.282 4.025l.085.023.345.076.517.092 1.619.257.583.1.518.098.237.05.433.103c.272.07.512.143.73.224.434.161.783.373 1.235.718l.457.362c.806.646 1.24.857 1.959.857.893 0 1.63-1.518 1.895-4.45l.045-.585c.013-.2.024-.407.033-.62l.02-.655c.005-.224.007-.454.007-.69 0-4.12-3.133-7-7-7a1 1 0 1 1 0-2ZM7 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z", fill: "currentColor" }), e[0] = n) : n = e[0];
218
218
  let o;
219
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: i }), e[1] = t, e[2] = o) : o = e[2], o;
219
+ return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
220
220
  }
221
221
  function gt(t) {
222
222
  const e = I(3);
223
- let i;
224
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "m10.083 19.394.057.113a1 1 0 0 0 1.72.007l2.869-4.786 4.786-2.87a1 1 0 0 0-.121-1.777l-14-6c-.83-.356-1.669.483-1.313 1.313l6.002 14ZM6.905 6.904l9.903 4.244-3.322 1.995-.102.069a1 1 0 0 0-.242.274l-1.992 3.321-4.245-9.903Z", fill: "currentColor" }), e[0] = i) : i = e[0];
223
+ let n;
224
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "m10.083 19.394.057.113a1 1 0 0 0 1.72.007l2.869-4.786 4.786-2.87a1 1 0 0 0-.121-1.777l-14-6c-.83-.356-1.669.483-1.313 1.313l6.002 14ZM6.905 6.904l9.903 4.244-3.322 1.995-.102.069a1 1 0 0 0-.242.274l-1.992 3.321-4.245-9.903Z", fill: "currentColor" }), e[0] = n) : n = e[0];
225
225
  let o;
226
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: i }), e[1] = t, e[2] = o) : o = e[2], o;
226
+ return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
227
227
  }
228
228
  const E = {
229
229
  action: {
@@ -279,7 +279,7 @@ const E = {
279
279
  }
280
280
  };
281
281
  function vt(t) {
282
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
282
+ return t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
283
283
  }
284
284
  var yt = function(e) {
285
285
  return wt(e) && !xt(e);
@@ -301,16 +301,16 @@ function Tt(t) {
301
301
  function de(t, e) {
302
302
  return e.clone !== !1 && e.isMergeableObject(t) ? le(Tt(t), t, e) : t;
303
303
  }
304
- function St(t, e, i) {
304
+ function St(t, e, n) {
305
305
  return t.concat(e).map(function(o) {
306
- return de(o, i);
306
+ return de(o, n);
307
307
  });
308
308
  }
309
309
  function At(t, e) {
310
310
  if (!e.customMerge)
311
311
  return le;
312
- var i = e.customMerge(t);
313
- return typeof i == "function" ? i : le;
312
+ var n = e.customMerge(t);
313
+ return typeof n == "function" ? n : le;
314
314
  }
315
315
  function _t(t) {
316
316
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(e) {
@@ -330,24 +330,24 @@ function Pe(t, e) {
330
330
  function Dt(t, e) {
331
331
  return Pe(t, e) && !(Object.hasOwnProperty.call(t, e) && Object.propertyIsEnumerable.call(t, e));
332
332
  }
333
- function Lt(t, e, i) {
333
+ function Lt(t, e, n) {
334
334
  var o = {};
335
- return i.isMergeableObject(t) && De(t).forEach(function(n) {
336
- o[n] = de(t[n], i);
337
- }), De(e).forEach(function(n) {
338
- Dt(t, n) || (Pe(t, n) && i.isMergeableObject(e[n]) ? o[n] = At(n, i)(t[n], e[n], i) : o[n] = de(e[n], i));
335
+ return n.isMergeableObject(t) && De(t).forEach(function(i) {
336
+ o[i] = de(t[i], n);
337
+ }), De(e).forEach(function(i) {
338
+ Dt(t, i) || (Pe(t, i) && n.isMergeableObject(e[i]) ? o[i] = At(i, n)(t[i], e[i], n) : o[i] = de(e[i], n));
339
339
  }), o;
340
340
  }
341
- function le(t, e, i) {
342
- i = i || {}, i.arrayMerge = i.arrayMerge || St, i.isMergeableObject = i.isMergeableObject || yt, i.cloneUnlessOtherwiseSpecified = de;
343
- var o = Array.isArray(e), n = Array.isArray(t), a = o === n;
344
- return a ? o ? i.arrayMerge(t, e, i) : Lt(t, e, i) : de(e, i);
341
+ function le(t, e, n) {
342
+ n = n || {}, n.arrayMerge = n.arrayMerge || St, n.isMergeableObject = n.isMergeableObject || yt, n.cloneUnlessOtherwiseSpecified = de;
343
+ var o = Array.isArray(e), i = Array.isArray(t), a = o === i;
344
+ return a ? o ? n.arrayMerge(t, e, n) : Lt(t, e, n) : de(e, n);
345
345
  }
346
- le.all = function(e, i) {
346
+ le.all = function(e, n) {
347
347
  if (!Array.isArray(e))
348
348
  throw new Error("first argument should be an array");
349
- return e.reduce(function(o, n) {
350
- return le(o, n, i);
349
+ return e.reduce(function(o, i) {
350
+ return le(o, i, n);
351
351
  }, {});
352
352
  };
353
353
  var Ot = le, Rt = Ot;
@@ -355,12 +355,12 @@ const Te = /* @__PURE__ */ vt(Rt);
355
355
  function je(t) {
356
356
  var b;
357
357
  const e = I(18), {
358
- chipProps: i,
358
+ chipProps: n,
359
359
  value: o,
360
- labels: n,
360
+ labels: i,
361
361
  onChipToggle: a,
362
362
  onDelete: r
363
- } = t, s = o.visible ? "active" : "inactive", c = ((b = n == null ? void 0 : n.tooltip) == null ? void 0 : b[s]) ?? E.chip.tooltip[s], u = i == null ? void 0 : i.TooltipProps;
363
+ } = t, s = o.visible ? "active" : "inactive", c = ((b = i == null ? void 0 : i.tooltip) == null ? void 0 : b[s]) ?? E.chip.tooltip[s], u = n == null ? void 0 : n.TooltipProps;
364
364
  let d;
365
365
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (d = {
366
366
  ...G.chip.chip
@@ -370,7 +370,7 @@ function je(t) {
370
370
  e[1] !== r || e[2] !== o.id ? (f = () => r(o.id), e[1] = r, e[2] = o.id, e[3] = f) : f = e[3];
371
371
  let h;
372
372
  e[4] !== a || e[5] !== o.id || e[6] !== o.visible ? (h = () => a(o.id, !o.visible), e[4] = a, e[5] = o.id, e[6] = o.visible, e[7] = h) : h = e[7];
373
- const M = i == null ? void 0 : i.ChipsProps;
373
+ const M = n == null ? void 0 : n.ChipsProps;
374
374
  let g;
375
375
  e[8] !== m || e[9] !== f || e[10] !== h || e[11] !== M || e[12] !== o.label ? (g = /* @__PURE__ */ l(He, { sx: d, color: m, size: "small", onDelete: f, label: o.label, onClick: h, ...M }), e[8] = m, e[9] = f, e[10] = h, e[11] = M, e[12] = o.label, e[13] = g) : g = e[13];
376
376
  let w;
@@ -379,9 +379,9 @@ function je(t) {
379
379
  function Qt({
380
380
  enabled: t,
381
381
  values: e = [],
382
- actionProps: i,
382
+ actionProps: n,
383
383
  chipProps: o,
384
- labels: n,
384
+ labels: i,
385
385
  modes: a,
386
386
  modesMapping: r,
387
387
  modeSelected: s,
@@ -404,34 +404,34 @@ function Qt({
404
404
  ...G.container,
405
405
  ...c
406
406
  }, ...u, children: [
407
- /* @__PURE__ */ l(It, { actionProps: i, labels: n == null ? void 0 : n.action, enabled: t, onActionToggle: S, children: (p == null ? void 0 : p.icon) && /* @__PURE__ */ l(p.icon, {}) }),
407
+ /* @__PURE__ */ l(It, { actionProps: n, labels: i == null ? void 0 : i.action, enabled: t, onActionToggle: S, children: (p == null ? void 0 : p.icon) && /* @__PURE__ */ l(p.icon, {}) }),
408
408
  /* @__PURE__ */ l(Ee, { children: (v) => /* @__PURE__ */ _(P, { children: [
409
- /* @__PURE__ */ l(Zt, { data: x, labels: n == null ? void 0 : n.options, children: /* @__PURE__ */ l(Le, { ...v, labels: n == null ? void 0 : n.options, data: x, modeSelected: y, onChangeMode: A }) }),
409
+ /* @__PURE__ */ l(Zt, { data: x, labels: i == null ? void 0 : i.options, children: /* @__PURE__ */ l(Le, { ...v, labels: i == null ? void 0 : i.options, data: x, modeSelected: y, onChangeMode: A }) }),
410
410
  !!b && /* @__PURE__ */ _(P, { children: [
411
411
  /* @__PURE__ */ l(Y, {}),
412
- /* @__PURE__ */ l(Le, { ...v, labels: n == null ? void 0 : n.options, data: [{
412
+ /* @__PURE__ */ l(Le, { ...v, labels: i == null ? void 0 : i.options, data: [{
413
413
  ...b,
414
414
  disabled: !e.length
415
415
  }], modeSelected: y, onChangeMode: A })
416
416
  ] })
417
417
  ] }) }),
418
- !!e.length && /* @__PURE__ */ l(ee, { sx: G.chip.container, children: e.map((v) => /* @__PURE__ */ l(je, { value: v, labels: n == null ? void 0 : n.chip, chipProps: o, onDelete: D, onChipToggle: m }, v.id)) }),
419
- /* @__PURE__ */ l(kt, { values: e, labels: n == null ? void 0 : n.actions, onAllChipToggle: M, onAllDelete: g })
418
+ !!e.length && /* @__PURE__ */ l(ee, { sx: G.chip.container, children: e.map((v) => /* @__PURE__ */ l(je, { value: v, labels: i == null ? void 0 : i.chip, chipProps: o, onDelete: D, onChipToggle: m }, v.id)) }),
419
+ /* @__PURE__ */ l(kt, { values: e, labels: i == null ? void 0 : i.actions, onAllChipToggle: M, onAllDelete: g })
420
420
  ] });
421
421
  }
422
422
  function It(t) {
423
423
  var h;
424
424
  const e = I(12), {
425
- actionProps: i,
425
+ actionProps: n,
426
426
  labels: o,
427
- enabled: n,
427
+ enabled: i,
428
428
  children: a,
429
429
  onActionToggle: r
430
- } = t, s = n ? "active" : "inactive", c = ((h = o == null ? void 0 : o.tooltip) == null ? void 0 : h[s]) ?? E.action.tooltip[s], u = i == null ? void 0 : i.TooltipProps;
430
+ } = t, s = i ? "active" : "inactive", c = ((h = o == null ? void 0 : o.tooltip) == null ? void 0 : h[s]) ?? E.action.tooltip[s], u = n == null ? void 0 : n.TooltipProps;
431
431
  let d;
432
- e[0] !== n || e[1] !== r ? (d = () => r(!n), e[0] = n, e[1] = r, e[2] = d) : d = e[2];
432
+ e[0] !== i || e[1] !== r ? (d = () => r(!i), e[0] = i, e[1] = r, e[2] = d) : d = e[2];
433
433
  let m;
434
- e[3] !== c || e[4] !== a || e[5] !== n || e[6] !== d ? (m = /* @__PURE__ */ l(se, { value: "toggle", sx: G.actions.icon, onClick: d, "aria-label": c, selected: n, children: a }), e[3] = c, e[4] = a, e[5] = n, e[6] = d, e[7] = m) : m = e[7];
434
+ e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== d ? (m = /* @__PURE__ */ l(se, { value: "toggle", sx: G.actions.icon, onClick: d, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = d, e[7] = m) : m = e[7];
435
435
  let f;
436
436
  return e[8] !== c || e[9] !== u || e[10] !== m ? (f = /* @__PURE__ */ l(re, { title: c, placement: "right", ...u, children: m }), e[8] = c, e[9] = u, e[10] = m, e[11] = f) : f = e[11], f;
437
437
  }
@@ -440,10 +440,10 @@ function Ee({
440
440
  Icon: t = /* @__PURE__ */ l(Be, {}),
441
441
  sx: e
442
442
  } = {},
443
- MenuProps: i,
443
+ MenuProps: n,
444
444
  children: o
445
445
  }) {
446
- const [n, a] = ne(null), r = !!n, s = (u) => {
446
+ const [i, a] = ie(null), r = !!i, s = (u) => {
447
447
  a(u.currentTarget);
448
448
  }, c = () => {
449
449
  a(null);
@@ -453,10 +453,10 @@ function Ee({
453
453
  ...G.options.icon,
454
454
  ...e
455
455
  }, onClick: s, children: t }),
456
- /* @__PURE__ */ l(Ie, { id: "lasso-menu", anchorEl: n, open: r, onClose: c, MenuListProps: {
456
+ /* @__PURE__ */ l(Ie, { id: "lasso-menu", anchorEl: i, open: r, onClose: c, MenuListProps: {
457
457
  "aria-labelledby": "lasso-button",
458
458
  sx: G.options.menu
459
- }, ...i, children: /* @__PURE__ */ l("div", { children: o({
459
+ }, ...n, children: /* @__PURE__ */ l("div", { children: o({
460
460
  onClose: c
461
461
  }) }) })
462
462
  ] });
@@ -464,34 +464,34 @@ function Ee({
464
464
  function Zt(t) {
465
465
  var c;
466
466
  const e = I(5), {
467
- data: i,
467
+ data: n,
468
468
  labels: o,
469
- children: n
469
+ children: i
470
470
  } = t;
471
- if (i.length <= 1)
471
+ if (n.length <= 1)
472
472
  return null;
473
473
  const a = ((c = o == null ? void 0 : o.mode) == null ? void 0 : c.title) ?? E.options.mode.title;
474
474
  let r;
475
475
  e[0] !== a ? (r = /* @__PURE__ */ l(H, { variant: "subtitle2", color: "text.secondary", sx: G.options.title, children: a }), e[0] = a, e[1] = r) : r = e[1];
476
476
  let s;
477
- return e[2] !== n || e[3] !== r ? (s = /* @__PURE__ */ _(P, { children: [
477
+ return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ _(P, { children: [
478
478
  r,
479
- n
480
- ] }), e[2] = n, e[3] = r, e[4] = s) : s = e[4], s;
479
+ i
480
+ ] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
481
481
  }
482
482
  function Le({
483
483
  data: t,
484
484
  modeSelected: e,
485
- labels: i,
485
+ labels: n,
486
486
  onChangeMode: o,
487
- onClose: n
487
+ onClose: i
488
488
  }) {
489
489
  const a = (r, s) => {
490
- r.preventDefault(), o == null || o(s), n();
490
+ r.preventDefault(), o == null || o(s), i();
491
491
  };
492
492
  return t.map((r) => {
493
493
  var u;
494
- const c = (((u = i == null ? void 0 : i.mode) == null ? void 0 : u.options) ?? E.options.mode.options)[r.value];
494
+ const c = (((u = n == null ? void 0 : n.mode) == null ? void 0 : u.options) ?? E.options.mode.options)[r.value];
495
495
  return /* @__PURE__ */ _(ce, { disabled: !!r.disabled, onClick: (d) => a(d, r.value), selected: r.value === e, children: [
496
496
  /* @__PURE__ */ l(Ze, { sx: G.options.icons, children: /* @__PURE__ */ l(Me, { children: /* @__PURE__ */ l(r.icon, {}) }) }),
497
497
  /* @__PURE__ */ l(ae, { children: c })
@@ -501,19 +501,19 @@ function Le({
501
501
  function kt(t) {
502
502
  var h, M;
503
503
  const e = I(8), {
504
- values: i,
504
+ values: n,
505
505
  labels: o,
506
- onAllChipToggle: n,
506
+ onAllChipToggle: i,
507
507
  onAllDelete: a
508
508
  } = t;
509
- if (i.length <= 1)
509
+ if (n.length <= 1)
510
510
  return null;
511
- const s = i.some(Bt) ? ((h = o == null ? void 0 : o.toggleAll) == null ? void 0 : h.active) ?? E.actions.toggleAll.active : ((M = o == null ? void 0 : o.toggleAll) == null ? void 0 : M.inactive) ?? E.actions.toggleAll.inactive, c = (o == null ? void 0 : o.deleteAll) ?? E.actions.deleteAll;
511
+ const s = n.some(Bt) ? ((h = o == null ? void 0 : o.toggleAll) == null ? void 0 : h.active) ?? E.actions.toggleAll.active : ((M = o == null ? void 0 : o.toggleAll) == null ? void 0 : M.inactive) ?? E.actions.toggleAll.inactive, c = (o == null ? void 0 : o.deleteAll) ?? E.actions.deleteAll;
512
512
  let u;
513
513
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ l(Y, { orientation: "vertical", flexItem: !0 }), e[0] = u) : u = e[0];
514
514
  let d, m;
515
515
  e[1] === Symbol.for("react.memo_cache_sentinel") ? (d = {
516
- Icon: /* @__PURE__ */ l(it, {}),
516
+ Icon: /* @__PURE__ */ l(nt, {}),
517
517
  sx: G.options.more
518
518
  }, m = {
519
519
  anchorOrigin: {
@@ -526,18 +526,18 @@ function kt(t) {
526
526
  }
527
527
  }, e[1] = d, e[2] = m) : (d = e[1], m = e[2]);
528
528
  let f;
529
- return e[3] !== c || e[4] !== n || e[5] !== a || e[6] !== s ? (f = /* @__PURE__ */ _(P, { children: [
529
+ return e[3] !== c || e[4] !== i || e[5] !== a || e[6] !== s ? (f = /* @__PURE__ */ _(P, { children: [
530
530
  u,
531
531
  /* @__PURE__ */ l(Ee, { TriggerProps: d, MenuProps: m, children: (g) => /* @__PURE__ */ _(P, { children: [
532
532
  /* @__PURE__ */ l(ce, { color: "inherit", onClick: () => {
533
- n(), g.onClose();
533
+ i(), g.onClose();
534
534
  }, children: s }),
535
535
  /* @__PURE__ */ l(Y, {}),
536
536
  /* @__PURE__ */ l(ce, { color: "error", onClick: () => {
537
537
  a(), g.onClose();
538
538
  }, children: /* @__PURE__ */ l(H, { variant: "body2", color: "error", children: c }) })
539
539
  ] }) })
540
- ] }), e[3] = c, e[4] = n, e[5] = a, e[6] = s, e[7] = f) : f = e[7], f;
540
+ ] }), e[3] = c, e[4] = i, e[5] = a, e[6] = s, e[7] = f) : f = e[7], f;
541
541
  }
542
542
  function Bt(t) {
543
543
  return t.visible;
@@ -545,9 +545,9 @@ function Bt(t) {
545
545
  function eo({
546
546
  enabled: t,
547
547
  values: e = [],
548
- chipProps: i,
548
+ chipProps: n,
549
549
  labels: o,
550
- modes: n,
550
+ modes: i,
551
551
  modesMapping: a,
552
552
  modeSelected: r,
553
553
  BoxProps: {
@@ -560,12 +560,12 @@ function eo({
560
560
  onAllChipToggle: f,
561
561
  onAllDelete: h
562
562
  }) {
563
- const M = Ce(() => Te(n, a), [n, a]), {
563
+ const M = Ce(() => Te(i, a), [i, a]), {
564
564
  edit: g,
565
565
  ...w
566
566
  } = M, b = (y) => d(y), C = (y, p) => {
567
567
  y.preventDefault(), m == null || m(p);
568
- }, S = (r ?? "") in n ? r : Object.keys(M)[0], A = t ? M[S] : null, T = Object.values(w);
568
+ }, S = (r ?? "") in i ? r : Object.keys(M)[0], A = t ? M[S] : null, T = Object.values(w);
569
569
  return /* @__PURE__ */ _(ee, { sx: {
570
570
  ...G.container,
571
571
  ...s
@@ -582,48 +582,48 @@ function eo({
582
582
  ] }) }),
583
583
  /* @__PURE__ */ l(Y, { flexItem: !0 }),
584
584
  /* @__PURE__ */ l(jt, { hasValues: !!e.length, labels: o == null ? void 0 : o.noData }),
585
- !!e.length && /* @__PURE__ */ l(ee, { sx: G.chip.container, className: "inline", children: e.map((y) => /* @__PURE__ */ l(je, { value: y, labels: o == null ? void 0 : o.chip, chipProps: i, onDelete: b, onChipToggle: u }, y.id)) }),
585
+ !!e.length && /* @__PURE__ */ l(ee, { sx: G.chip.container, className: "inline", children: e.map((y) => /* @__PURE__ */ l(je, { value: y, labels: o == null ? void 0 : o.chip, chipProps: n, onDelete: b, onChipToggle: u }, y.id)) }),
586
586
  /* @__PURE__ */ l(Et, { values: e, labels: o == null ? void 0 : o.actions, onAllChipToggle: f, onAllDelete: h })
587
587
  ] });
588
588
  }
589
589
  function Pt(t) {
590
590
  var c;
591
591
  const e = I(5), {
592
- data: i,
592
+ data: n,
593
593
  labels: o,
594
- children: n
594
+ children: i
595
595
  } = t;
596
- if (i.length <= 1)
596
+ if (n.length <= 1)
597
597
  return null;
598
598
  const a = ((c = o == null ? void 0 : o.mode) == null ? void 0 : c.title) ?? E.options.mode.title;
599
599
  let r;
600
600
  e[0] !== a ? (r = /* @__PURE__ */ l(H, { variant: "subtitle2", color: "text.secondary", sx: G.options.title, className: "inline", children: a }), e[0] = a, e[1] = r) : r = e[1];
601
601
  let s;
602
- return e[2] !== n || e[3] !== r ? (s = /* @__PURE__ */ _(P, { children: [
602
+ return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ _(P, { children: [
603
603
  r,
604
- n
605
- ] }), e[2] = n, e[3] = r, e[4] = s) : s = e[4], s;
604
+ i
605
+ ] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
606
606
  }
607
607
  function Oe({
608
608
  data: t,
609
609
  labels: e
610
610
  }) {
611
- return t.map((i) => {
611
+ return t.map((n) => {
612
612
  var a;
613
- const n = (((a = e == null ? void 0 : e.mode) == null ? void 0 : a.options) ?? E.options.mode.options)[i.value];
614
- return /* @__PURE__ */ l(re, { title: n, placement: "bottom", children: /* @__PURE__ */ l(se, { disabled: !!i.disabled, value: i.value, "aria-label": i.value, children: /* @__PURE__ */ l(Me, { children: /* @__PURE__ */ l(i.icon, {}) }) }) }, i.value);
613
+ const i = (((a = e == null ? void 0 : e.mode) == null ? void 0 : a.options) ?? E.options.mode.options)[n.value];
614
+ return /* @__PURE__ */ l(re, { title: i, placement: "bottom", children: /* @__PURE__ */ l(se, { disabled: !!n.disabled, value: n.value, "aria-label": n.value, children: /* @__PURE__ */ l(Me, { children: /* @__PURE__ */ l(n.icon, {}) }) }) }, n.value);
615
615
  });
616
616
  }
617
617
  function jt(t) {
618
618
  const e = I(7), {
619
- hasValues: i,
619
+ hasValues: n,
620
620
  labels: o
621
621
  } = t;
622
- if (i)
622
+ if (n)
623
623
  return null;
624
- const n = (o == null ? void 0 : o.title) ?? E.noData.title, a = (o == null ? void 0 : o.description) ?? E.noData.description;
624
+ const i = (o == null ? void 0 : o.title) ?? E.noData.title, a = (o == null ? void 0 : o.description) ?? E.noData.description;
625
625
  let r;
626
- e[0] !== n ? (r = /* @__PURE__ */ l(H, { variant: "body1", color: "textSecondary", children: n }), e[0] = n, e[1] = r) : r = e[1];
626
+ e[0] !== i ? (r = /* @__PURE__ */ l(H, { variant: "body1", color: "textSecondary", children: i }), e[0] = i, e[1] = r) : r = e[1];
627
627
  let s;
628
628
  e[2] !== a ? (s = /* @__PURE__ */ l(H, { variant: "body2", color: "textSecondary", children: a }), e[2] = a, e[3] = s) : s = e[3];
629
629
  let c;
@@ -635,16 +635,16 @@ function jt(t) {
635
635
  function Et(t) {
636
636
  var f, h;
637
637
  const e = I(9), {
638
- values: i,
638
+ values: n,
639
639
  labels: o,
640
- onAllChipToggle: n,
640
+ onAllChipToggle: i,
641
641
  onAllDelete: a
642
642
  } = t;
643
- if (i.length <= 1)
643
+ if (n.length <= 1)
644
644
  return null;
645
- const s = i.some($t) ? ((f = o == null ? void 0 : o.toggleAll) == null ? void 0 : f.active) ?? E.actions.toggleAll.active : ((h = o == null ? void 0 : o.toggleAll) == null ? void 0 : h.inactive) ?? E.actions.toggleAll.inactive, c = (o == null ? void 0 : o.deleteAll) ?? E.actions.deleteAll;
645
+ const s = n.some($t) ? ((f = o == null ? void 0 : o.toggleAll) == null ? void 0 : f.active) ?? E.actions.toggleAll.active : ((h = o == null ? void 0 : o.toggleAll) == null ? void 0 : h.inactive) ?? E.actions.toggleAll.inactive, c = (o == null ? void 0 : o.deleteAll) ?? E.actions.deleteAll;
646
646
  let u;
647
- e[0] !== n || e[1] !== s ? (u = /* @__PURE__ */ l(ye, { color: "inherit", onClick: n, children: s }), e[0] = n, e[1] = s, e[2] = u) : u = e[2];
647
+ e[0] !== i || e[1] !== s ? (u = /* @__PURE__ */ l(ye, { color: "inherit", onClick: i, children: s }), e[0] = i, e[1] = s, e[2] = u) : u = e[2];
648
648
  let d;
649
649
  e[3] !== c || e[4] !== a ? (d = /* @__PURE__ */ l(ye, { color: "error", onClick: a, children: c }), e[3] = c, e[4] = a, e[5] = d) : d = e[5];
650
650
  let m;
@@ -739,27 +739,27 @@ const q = {
739
739
  };
740
740
  function to(t) {
741
741
  const e = I(3);
742
- let i;
743
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fill: "currentColor", d: "M3 13.5c-.413 0-.766-.147-1.06-.44A1.445 1.445 0 0 1 1.5 12V6c0-.412.147-.766.44-1.06.294-.293.647-.44 1.06-.44h12c.412 0 .766.147 1.06.44.293.294.44.647.44 1.06v6c0 .412-.147.766-.44 1.06-.294.293-.647.44-1.06.44H3ZM3 12h12V6h-2.25v3h-1.5V6h-1.5v3h-1.5V6h-1.5v3h-1.5V6H3v6Z" }), e[0] = i) : i = e[0];
742
+ let n;
743
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fill: "currentColor", d: "M3 13.5c-.413 0-.766-.147-1.06-.44A1.445 1.445 0 0 1 1.5 12V6c0-.412.147-.766.44-1.06.294-.293.647-.44 1.06-.44h12c.412 0 .766.147 1.06.44.293.294.44.647.44 1.06v6c0 .412-.147.766-.44 1.06-.294.293-.647.44-1.06.44H3ZM3 12h12V6h-2.25v3h-1.5V6h-1.5v3h-1.5V6h-1.5v3h-1.5V6H3v6Z" }), e[0] = n) : n = e[0];
744
744
  let o;
745
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: i }), e[1] = t, e[2] = o) : o = e[2], o;
745
+ return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
746
746
  }
747
747
  function oo(t) {
748
748
  const e = I(3);
749
- let i;
750
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fill: "currentColor", fillRule: "evenodd", d: "M9 1.5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15ZM9 3a6 6 0 1 0 0 12A6 6 0 0 0 9 3Zm0 4.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z", clipRule: "evenodd" }), e[0] = i) : i = e[0];
749
+ let n;
750
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fill: "currentColor", fillRule: "evenodd", d: "M9 1.5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15ZM9 3a6 6 0 1 0 0 12A6 6 0 0 0 9 3Zm0 4.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z", clipRule: "evenodd" }), e[0] = n) : n = e[0];
751
751
  let o;
752
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: i }), e[1] = t, e[2] = o) : o = e[2], o;
752
+ return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: n }), e[1] = t, e[2] = o) : o = e[2], o;
753
753
  }
754
- function io(t) {
754
+ function no(t) {
755
755
  const e = I(4);
756
- let i, o;
757
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 13.5v-9h9v9h-9Zm.75-8.25h7.5v7.5h-7.5v-7.5Z", clipRule: "evenodd" }), o = /* @__PURE__ */ l("path", { fill: "#2C3032", fillRule: "evenodd", d: "M1.5 3A1.5 1.5 0 0 1 3 1.5h12A1.5 1.5 0 0 1 16.5 3v12a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 15V3ZM3 3h12v12H3V3Z", clipRule: "evenodd" }), e[0] = i, e[1] = o) : (i = e[0], o = e[1]);
758
- let n;
759
- return e[2] !== t ? (n = /* @__PURE__ */ _("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
760
- i,
756
+ let n, o;
757
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 13.5v-9h9v9h-9Zm.75-8.25h7.5v7.5h-7.5v-7.5Z", clipRule: "evenodd" }), o = /* @__PURE__ */ l("path", { fill: "#2C3032", fillRule: "evenodd", d: "M1.5 3A1.5 1.5 0 0 1 3 1.5h12A1.5 1.5 0 0 1 16.5 3v12a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 15V3ZM3 3h12v12H3V3Z", clipRule: "evenodd" }), e[0] = n, e[1] = o) : (n = e[0], o = e[1]);
758
+ let i;
759
+ return e[2] !== t ? (i = /* @__PURE__ */ _("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
760
+ n,
761
761
  o
762
- ] }), e[2] = t, e[3] = n) : n = e[3], n;
762
+ ] }), e[2] = t, e[3] = i) : i = e[3], i;
763
763
  }
764
764
  const V = {
765
765
  container: {
@@ -905,11 +905,11 @@ const V = {
905
905
  }
906
906
  }
907
907
  };
908
- function no(t) {
908
+ function io(t) {
909
909
  const e = I(46), {
910
- enabled: i,
910
+ enabled: n,
911
911
  actionProps: o,
912
- labels: n,
912
+ labels: i,
913
913
  modes: a,
914
914
  modesMapping: r,
915
915
  unitsMapping: s,
@@ -960,12 +960,12 @@ function no(t) {
960
960
  ...V.container,
961
961
  ...C
962
962
  }, e[23] = C, e[24] = $) : $ = e[24];
963
- const te = n == null ? void 0 : n.action, oe = O == null ? void 0 : O.icon;
963
+ const te = i == null ? void 0 : i.action, oe = O == null ? void 0 : O.icon;
964
964
  let N;
965
- e[25] !== o || e[26] !== i || e[27] !== S || e[28] !== te || e[29] !== oe ? (N = /* @__PURE__ */ l(Vt, { actionProps: o, labels: te, enabled: i, onActionToggle: S, children: oe }), e[25] = o, e[26] = i, e[27] = S, e[28] = te, e[29] = oe, e[30] = N) : N = e[30];
966
- const ie = n == null ? void 0 : n.options;
965
+ e[25] !== o || e[26] !== n || e[27] !== S || e[28] !== te || e[29] !== oe ? (N = /* @__PURE__ */ l(Vt, { actionProps: o, labels: te, enabled: n, onActionToggle: S, children: oe }), e[25] = o, e[26] = n, e[27] = S, e[28] = te, e[29] = oe, e[30] = N) : N = e[30];
966
+ const ne = i == null ? void 0 : i.options;
967
967
  let X;
968
- e[31] !== F || e[32] !== y || e[33] !== v || e[34] !== h || e[35] !== M || e[36] !== ie || e[37] !== m ? (X = /* @__PURE__ */ l(Gt, { labels: ie, modes: y, modeSelected: v, units: F, unitSelected: m, onChangeMode: h, onChangeUnit: M }), e[31] = F, e[32] = y, e[33] = v, e[34] = h, e[35] = M, e[36] = ie, e[37] = m, e[38] = X) : X = e[38];
968
+ e[31] !== F || e[32] !== y || e[33] !== v || e[34] !== h || e[35] !== M || e[36] !== ne || e[37] !== m ? (X = /* @__PURE__ */ l(Gt, { labels: ne, modes: y, modeSelected: v, units: F, unitSelected: m, onChangeMode: h, onChangeUnit: M }), e[31] = F, e[32] = y, e[33] = v, e[34] = h, e[35] = M, e[36] = ne, e[37] = m, e[38] = X) : X = e[38];
969
969
  let W;
970
970
  e[39] !== N || e[40] !== X ? (W = /* @__PURE__ */ _(ee, { children: [
971
971
  N,
@@ -977,37 +977,37 @@ function no(t) {
977
977
  function Vt(t) {
978
978
  var h;
979
979
  const e = I(12), {
980
- actionProps: i,
980
+ actionProps: n,
981
981
  labels: o,
982
- enabled: n,
982
+ enabled: i,
983
983
  children: a,
984
984
  onActionToggle: r
985
- } = t, s = n ? "active" : "inactive", c = ((h = o == null ? void 0 : o.tooltip) == null ? void 0 : h[s]) ?? q.action.tooltip[s], u = i == null ? void 0 : i.TooltipProps;
985
+ } = t, s = i ? "active" : "inactive", c = ((h = o == null ? void 0 : o.tooltip) == null ? void 0 : h[s]) ?? q.action.tooltip[s], u = n == null ? void 0 : n.TooltipProps;
986
986
  let d;
987
- e[0] !== n || e[1] !== r ? (d = () => r(!n), e[0] = n, e[1] = r, e[2] = d) : d = e[2];
987
+ e[0] !== i || e[1] !== r ? (d = () => r(!i), e[0] = i, e[1] = r, e[2] = d) : d = e[2];
988
988
  let m;
989
- e[3] !== c || e[4] !== a || e[5] !== n || e[6] !== d ? (m = /* @__PURE__ */ l(se, { value: "toggle", sx: V.actions.icon, onClick: d, "aria-label": c, selected: n, children: a }), e[3] = c, e[4] = a, e[5] = n, e[6] = d, e[7] = m) : m = e[7];
989
+ e[3] !== c || e[4] !== a || e[5] !== i || e[6] !== d ? (m = /* @__PURE__ */ l(se, { value: "toggle", sx: V.actions.icon, onClick: d, "aria-label": c, selected: i, children: a }), e[3] = c, e[4] = a, e[5] = i, e[6] = d, e[7] = m) : m = e[7];
990
990
  let f;
991
991
  return e[8] !== c || e[9] !== u || e[10] !== m ? (f = /* @__PURE__ */ l(re, { title: c, placement: "right", ...u, children: m }), e[8] = c, e[9] = u, e[10] = m, e[11] = f) : f = e[11], f;
992
992
  }
993
993
  function Gt(t) {
994
- var F, $, te, oe, N, ie, X, W;
994
+ var F, $, te, oe, N, ne, X, W;
995
995
  const e = I(68), {
996
- modes: i,
996
+ modes: n,
997
997
  modeSelected: o,
998
- units: n,
998
+ units: i,
999
999
  unitSelected: a,
1000
1000
  labels: r,
1001
1001
  onChangeMode: s,
1002
1002
  onChangeUnit: c
1003
- } = t, [u, d] = ne(null), [m, f] = ne(!1);
1003
+ } = t, [u, d] = ie(null), [m, f] = ie(!1);
1004
1004
  let h, M, g, w, b, C, D, S, A, T, y, p, x, v, O, R;
1005
- if (e[0] !== u || e[1] !== ((F = r == null ? void 0 : r.mode) == null ? void 0 : F.options) || e[2] !== (($ = r == null ? void 0 : r.mode) == null ? void 0 : $.title) || e[3] !== ((te = r == null ? void 0 : r.units) == null ? void 0 : te.title) || e[4] !== o || e[5] !== i || e[6] !== s || e[7] !== c || e[8] !== a || e[9] !== n) {
1005
+ if (e[0] !== u || e[1] !== ((F = r == null ? void 0 : r.mode) == null ? void 0 : F.options) || e[2] !== (($ = r == null ? void 0 : r.mode) == null ? void 0 : $.title) || e[3] !== ((te = r == null ? void 0 : r.units) == null ? void 0 : te.title) || e[4] !== o || e[5] !== n || e[6] !== s || e[7] !== c || e[8] !== a || e[9] !== i) {
1006
1006
  x = Symbol.for("react.early_return_sentinel");
1007
1007
  e: {
1008
- const K = Object.values(i);
1008
+ const K = Object.values(n);
1009
1009
  let z;
1010
- if (e[26] !== n ? (z = Object.values(n), e[26] = n, e[27] = z) : z = e[27], R = z, !(K.length > 1 || R.length > 1)) {
1010
+ if (e[26] !== i ? (z = Object.values(i), e[26] = i, e[27] = z) : z = e[27], R = z, !(K.length > 1 || R.length > 1)) {
1011
1011
  x = null;
1012
1012
  break e;
1013
1013
  }
@@ -1042,7 +1042,7 @@ function Gt(t) {
1042
1042
  const Ge = ((oe = r == null ? void 0 : r.mode) == null ? void 0 : oe.title) ?? q.options.mode.title;
1043
1043
  O = ((N = r == null ? void 0 : r.units) == null ? void 0 : N.title) ?? q.options.units.title, b = K.length > 1 && R.length > 1;
1044
1044
  let ve;
1045
- e[36] !== a || e[37] !== n ? (ve = n.find((U) => U.value === a) ?? n[0], e[36] = a, e[37] = n, e[38] = ve) : ve = e[38], v = ve, e[39] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ l(Q, { sx: V.options.icon, onClick: Ue, children: /* @__PURE__ */ l(Be, {}) }), e[39] = p) : p = e[39], h = Ie, D = "measurement-menu", S = u, A = $e, T = Se, e[40] === Symbol.for("react.memo_cache_sentinel") ? (y = {
1045
+ e[36] !== a || e[37] !== i ? (ve = i.find((U) => U.value === a) ?? i[0], e[36] = a, e[37] = i, e[38] = ve) : ve = e[38], v = ve, e[39] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ l(Q, { sx: V.options.icon, onClick: Ue, children: /* @__PURE__ */ l(Be, {}) }), e[39] = p) : p = e[39], h = Ie, D = "measurement-menu", S = u, A = $e, T = Se, e[40] === Symbol.for("react.memo_cache_sentinel") ? (y = {
1046
1046
  "aria-labelledby": "basic-button",
1047
1047
  sx: V.options.menu
1048
1048
  }, e[40] = y) : y = e[40], C = K.length > 1 && /* @__PURE__ */ _(P, { children: [
@@ -1057,7 +1057,7 @@ function Gt(t) {
1057
1057
  })
1058
1058
  ] });
1059
1059
  }
1060
- e[0] = u, e[1] = (ie = r == null ? void 0 : r.mode) == null ? void 0 : ie.options, e[2] = (X = r == null ? void 0 : r.mode) == null ? void 0 : X.title, e[3] = (W = r == null ? void 0 : r.units) == null ? void 0 : W.title, e[4] = o, e[5] = i, e[6] = s, e[7] = c, e[8] = a, e[9] = n, e[10] = h, e[11] = M, e[12] = g, e[13] = w, e[14] = b, e[15] = C, e[16] = D, e[17] = S, e[18] = A, e[19] = T, e[20] = y, e[21] = p, e[22] = x, e[23] = v, e[24] = O, e[25] = R;
1060
+ e[0] = u, e[1] = (ne = r == null ? void 0 : r.mode) == null ? void 0 : ne.options, e[2] = (X = r == null ? void 0 : r.mode) == null ? void 0 : X.title, e[3] = (W = r == null ? void 0 : r.units) == null ? void 0 : W.title, e[4] = o, e[5] = n, e[6] = s, e[7] = c, e[8] = a, e[9] = i, e[10] = h, e[11] = M, e[12] = g, e[13] = w, e[14] = b, e[15] = C, e[16] = D, e[17] = S, e[18] = A, e[19] = T, e[20] = y, e[21] = p, e[22] = x, e[23] = v, e[24] = O, e[25] = R;
1061
1061
  } else
1062
1062
  h = e[10], M = e[11], g = e[12], w = e[13], b = e[14], C = e[15], D = e[16], S = e[17], A = e[18], T = e[19], y = e[20], p = e[21], x = e[22], v = e[23], O = e[24], R = e[25];
1063
1063
  if (x !== Symbol.for("react.early_return_sentinel"))
@@ -1065,13 +1065,13 @@ function Gt(t) {
1065
1065
  let L;
1066
1066
  e[41] !== b ? (L = b && /* @__PURE__ */ l(Y, {}), e[41] = b, e[42] = L) : L = e[42];
1067
1067
  let Z;
1068
- e[43] !== M || e[44] !== g || e[45] !== w || e[46] !== r || e[47] !== m || e[48] !== v || e[49] !== O || e[50] !== n || e[51] !== R.length ? (Z = R.length > 1 && /* @__PURE__ */ _(P, { children: [
1068
+ e[43] !== M || e[44] !== g || e[45] !== w || e[46] !== r || e[47] !== m || e[48] !== v || e[49] !== O || e[50] !== i || e[51] !== R.length ? (Z = R.length > 1 && /* @__PURE__ */ _(P, { children: [
1069
1069
  /* @__PURE__ */ _(ce, { onClick: g, children: [
1070
1070
  /* @__PURE__ */ l(ae, { children: O }),
1071
1071
  /* @__PURE__ */ l(H, { variant: "caption", fontWeight: 500, sx: V.options.tag, children: v.short })
1072
1072
  ] }),
1073
- /* @__PURE__ */ l(Ft, { open: m, labels: r, units: n, unitSelectedValue: v, onClose: w, onSubmit: M })
1074
- ] }), e[43] = M, e[44] = g, e[45] = w, e[46] = r, e[47] = m, e[48] = v, e[49] = O, e[50] = n, e[51] = R.length, e[52] = Z) : Z = e[52];
1073
+ /* @__PURE__ */ l(Ft, { open: m, labels: r, units: i, unitSelectedValue: v, onClose: w, onSubmit: M })
1074
+ ] }), e[43] = M, e[44] = g, e[45] = w, e[46] = r, e[47] = m, e[48] = v, e[49] = O, e[50] = i, e[51] = R.length, e[52] = Z) : Z = e[52];
1075
1075
  let j;
1076
1076
  e[53] !== C || e[54] !== Z || e[55] !== L ? (j = /* @__PURE__ */ _("div", { children: [
1077
1077
  C,
@@ -1089,16 +1089,16 @@ function Gt(t) {
1089
1089
  function Ft({
1090
1090
  open: t,
1091
1091
  labels: e,
1092
- units: i,
1092
+ units: n,
1093
1093
  unitSelectedValue: o,
1094
- onClose: n,
1094
+ onClose: i,
1095
1095
  onSubmit: a
1096
1096
  }) {
1097
1097
  var w, b, C, D, S, A, T, y;
1098
- const [r, s] = ne("metric"), c = Ce(() => i.filter((p) => p.system === r), [r, i]), u = (p, x) => {
1098
+ const [r, s] = ie("metric"), c = Ce(() => n.filter((p) => p.system === r), [r, n]), u = (p, x) => {
1099
1099
  s(x);
1100
1100
  }, d = ((b = (w = e == null ? void 0 : e.units) == null ? void 0 : w.modal) == null ? void 0 : b.options) ?? q.options.units.modal.options, m = d[r].options, f = ((D = (C = e == null ? void 0 : e.units) == null ? void 0 : C.modal) == null ? void 0 : D.title) ?? q.options.units.modal.title, h = ((A = (S = e == null ? void 0 : e.units) == null ? void 0 : S.modal) == null ? void 0 : A.subtitle) ?? q.options.units.modal.subtitle, M = ((y = (T = e == null ? void 0 : e.units) == null ? void 0 : T.modal) == null ? void 0 : y.apply) ?? q.options.units.modal.apply, g = o.system === r ? o : c[0];
1101
- return /* @__PURE__ */ _(Ne, { open: t, component: ee, onClose: n, maxWidth: "xs", PaperProps: {
1101
+ return /* @__PURE__ */ _(Ne, { open: t, component: ee, onClose: i, maxWidth: "xs", PaperProps: {
1102
1102
  component: "form",
1103
1103
  onSubmit: (p) => {
1104
1104
  p.preventDefault();
@@ -1108,7 +1108,7 @@ function Ft({
1108
1108
  }, children: [
1109
1109
  /* @__PURE__ */ _(Xe, { sx: V.options.modal.title, children: [
1110
1110
  f,
1111
- /* @__PURE__ */ l(Q, { onClick: n, children: /* @__PURE__ */ l(nt, {}) })
1111
+ /* @__PURE__ */ l(Q, { onClick: i, children: /* @__PURE__ */ l(it, {}) })
1112
1112
  ] }),
1113
1113
  /* @__PURE__ */ _(We, { sx: V.options.modal.content, children: [
1114
1114
  /* @__PURE__ */ l(H, { sx: V.options.modal.subtitle, children: h }),
@@ -1130,14 +1130,14 @@ const zt = {
1130
1130
  }, Ht = "geolocation";
1131
1131
  function lo(t) {
1132
1132
  const e = I(25), {
1133
- disabled: i,
1133
+ disabled: n,
1134
1134
  labels: o,
1135
- PaperProps: n,
1135
+ PaperProps: i,
1136
1136
  TooltipProps: a,
1137
1137
  watch: r,
1138
1138
  onChange: s,
1139
1139
  onError: c
1140
- } = t, u = dt(null), d = "geolocation" in navigator, [m, f] = ne(d);
1140
+ } = t, u = dt(null), d = "geolocation" in navigator, [m, f] = ie(d);
1141
1141
  let h, M;
1142
1142
  e[0] !== c ? (h = () => (d && navigator.permissions.query({
1143
1143
  name: "geolocation"
@@ -1168,7 +1168,7 @@ function lo(t) {
1168
1168
  }
1169
1169
  navigator.geolocation.getCurrentPosition(w, C);
1170
1170
  }, e[7] = C, e[8] = w, e[9] = r, e[10] = D) : D = e[10];
1171
- const S = D, T = ((o == null ? void 0 : o.tooltip) ?? zt)[m ? "enabled" : "disabled"], y = (o == null ? void 0 : o.ariaLabel) ?? Ht, p = !d || i;
1171
+ const S = D, T = ((o == null ? void 0 : o.tooltip) ?? zt)[m ? "enabled" : "disabled"], y = (o == null ? void 0 : o.ariaLabel) ?? Ht, p = !d || n;
1172
1172
  let x;
1173
1173
  e[11] !== m ? (x = m ? /* @__PURE__ */ l(lt, {}) : /* @__PURE__ */ l(rt, {}), e[11] = m, e[12] = x) : x = e[12];
1174
1174
  let v;
@@ -1176,7 +1176,7 @@ function lo(t) {
1176
1176
  let O;
1177
1177
  e[18] !== a || e[19] !== v || e[20] !== T ? (O = /* @__PURE__ */ l(re, { arrow: !0, placement: "right", title: T, ...a, children: v }), e[18] = a, e[19] = v, e[20] = T, e[21] = O) : O = e[21];
1178
1178
  let R;
1179
- return e[22] !== n || e[23] !== O ? (R = /* @__PURE__ */ l(we, { ...n, children: O }), e[22] = n, e[23] = O, e[24] = R) : R = e[24], R;
1179
+ return e[22] !== i || e[23] !== O ? (R = /* @__PURE__ */ l(we, { ...i, children: O }), e[22] = i, e[23] = O, e[24] = R) : R = e[24], R;
1180
1180
  }
1181
1181
  const be = {
1182
1182
  zoom: {
@@ -1212,9 +1212,9 @@ const be = {
1212
1212
  };
1213
1213
  function ro(t) {
1214
1214
  const e = I(40), {
1215
- zoom: i,
1215
+ zoom: n,
1216
1216
  disabled: o,
1217
- direction: n,
1217
+ direction: i,
1218
1218
  isLoading: a,
1219
1219
  maxZoom: r,
1220
1220
  minZoom: s,
@@ -1223,24 +1223,24 @@ function ro(t) {
1223
1223
  showZoom: d,
1224
1224
  onChange: m,
1225
1225
  onReset: f
1226
- } = t, h = n === void 0 ? "vertical" : n, M = r === void 0 ? 24 : r, g = s === void 0 ? 0 : s;
1226
+ } = t, h = i === void 0 ? "vertical" : i, M = r === void 0 ? 24 : r, g = s === void 0 ? 0 : s;
1227
1227
  let w;
1228
1228
  e[0] !== u ? (w = u === void 0 ? {
1229
1229
  Icon: ct
1230
1230
  } : u, e[0] = u, e[1] = w) : w = e[1];
1231
1231
  const b = w, C = d === void 0 ? !0 : d;
1232
1232
  let D;
1233
- e[2] !== M || e[3] !== m || e[4] !== i ? (D = () => {
1234
- const $ = Math.min(M, i + 1);
1233
+ e[2] !== M || e[3] !== m || e[4] !== n ? (D = () => {
1234
+ const $ = Math.min(M, n + 1);
1235
1235
  m($);
1236
- }, e[2] = M, e[3] = m, e[4] = i, e[5] = D) : D = e[5];
1236
+ }, e[2] = M, e[3] = m, e[4] = n, e[5] = D) : D = e[5];
1237
1237
  const S = D;
1238
1238
  let A;
1239
- e[6] !== g || e[7] !== m || e[8] !== i ? (A = () => {
1240
- const $ = Math.max(g, i - 1);
1239
+ e[6] !== g || e[7] !== m || e[8] !== n ? (A = () => {
1240
+ const $ = Math.max(g, n - 1);
1241
1241
  m($);
1242
- }, e[6] = g, e[7] = m, e[8] = i, e[9] = A) : A = e[9];
1243
- const T = A, y = Math.floor(i), p = h === "vertical" ? "horizontal" : "vertical", x = h === "vertical" ? "column" : "row";
1242
+ }, e[6] = g, e[7] = m, e[8] = n, e[9] = A) : A = e[9];
1243
+ const T = A, y = Math.floor(n), p = h === "vertical" ? "horizontal" : "vertical", x = h === "vertical" ? "column" : "row";
1244
1244
  let v;
1245
1245
  e[10] !== x ? (v = {
1246
1246
  ...be.paper,
@@ -1325,17 +1325,17 @@ const J = {
1325
1325
  };
1326
1326
  function co(t) {
1327
1327
  const e = I(30), {
1328
- data: i,
1328
+ data: n,
1329
1329
  itemsToShow: o,
1330
- labels: n,
1330
+ labels: i,
1331
1331
  showDivider: a,
1332
1332
  selectedItemId: r,
1333
1333
  tooltipProps: s,
1334
1334
  onExpand: c,
1335
1335
  onItemClick: u
1336
- } = t, d = o === void 0 ? 0 : o, m = n === void 0 ? Nt : n, f = a === void 0 ? !0 : a, [h, M] = ne(!1);
1336
+ } = t, d = o === void 0 ? 0 : o, m = i === void 0 ? Nt : i, f = a === void 0 ? !0 : a, [h, M] = ie(!1);
1337
1337
  let g, w;
1338
- e[0] !== i || e[1] !== d || e[2] !== h ? (w = h || d === 0 ? i : i.slice(0, d), e[0] = i, e[1] = d, e[2] = h, e[3] = w) : w = e[3], g = w;
1338
+ e[0] !== n || e[1] !== d || e[2] !== h ? (w = h || d === 0 ? n : n.slice(0, d), e[0] = n, e[1] = d, e[2] = h, e[3] = w) : w = e[3], g = w;
1339
1339
  const b = g;
1340
1340
  let C;
1341
1341
  e[4] !== c || e[5] !== h ? (C = () => {
@@ -1365,7 +1365,7 @@ function co(t) {
1365
1365
  let A;
1366
1366
  e[19] !== S ? (A = /* @__PURE__ */ l(ot, { id: "expandable-list", children: S }), e[19] = S, e[20] = A) : A = e[20];
1367
1367
  let T;
1368
- e[21] !== i.length || e[22] !== D || e[23] !== d || e[24] !== m || e[25] !== h ? (T = i.length > d && /* @__PURE__ */ l(ye, { onClick: D, sx: J.button, variant: "text", color: "primary", "aria-expanded": h, "aria-controls": "expandable-list", children: h ? m.showLess : m.showMore }), e[21] = i.length, e[22] = D, e[23] = d, e[24] = m, e[25] = h, e[26] = T) : T = e[26];
1368
+ e[21] !== n.length || e[22] !== D || e[23] !== d || e[24] !== m || e[25] !== h ? (T = n.length > d && /* @__PURE__ */ l(ye, { onClick: D, sx: J.button, variant: "text", color: "primary", "aria-expanded": h, "aria-controls": "expandable-list", children: h ? m.showLess : m.showMore }), e[21] = n.length, e[22] = D, e[23] = d, e[24] = m, e[25] = h, e[26] = T) : T = e[26];
1369
1369
  let y;
1370
1370
  return e[27] !== A || e[28] !== T ? (y = /* @__PURE__ */ _(P, { children: [
1371
1371
  A,
@@ -1373,7 +1373,7 @@ function co(t) {
1373
1373
  ] }), e[27] = A, e[28] = T, e[29] = y) : y = e[29], y;
1374
1374
  }
1375
1375
  export {
1376
- io as AreaIcon,
1376
+ no as AreaIcon,
1377
1377
  oo as BufferIcon,
1378
1378
  Jt as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1379
1379
  q as DEFAULT_MEASUREMENT_TOOLS_LABELS,
@@ -1387,7 +1387,7 @@ export {
1387
1387
  eo as LassoToolsInlineUI,
1388
1388
  Qt as LassoToolsUI,
1389
1389
  co as ListDataUI,
1390
- no as MeasurementToolsUI,
1390
+ io as MeasurementToolsUI,
1391
1391
  to as RulerIcon,
1392
1392
  gt as SelectToolIcon,
1393
1393
  ro as ZoomControlsUI