@carto/ps-react-ui 4.0.0-canary.1 → 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.
- package/dist/components.js +256 -258
- package/dist/components.js.map +1 -1
- package/package.json +1 -1
package/dist/components.js
CHANGED
@@ -1,10 +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
|
-
import { alpha as Re, Chip as
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import { useMemo as Ce, useState as ne, useRef as nt, useEffect as lt } from "react";
|
7
|
-
import { Close as rt, ArrowDropDown as ct, MyLocationOutlined as at, LocationDisabledOutlined as st, CropFreeOutlined as dt, AddOutlined as ut, RemoveOutlined as mt } from "@mui/icons-material";
|
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 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";
|
8
6
|
const G = {
|
9
7
|
container: {
|
10
8
|
display: "flex",
|
@@ -192,40 +190,40 @@ const G = {
|
|
192
190
|
}
|
193
191
|
}
|
194
192
|
};
|
193
|
+
function mt(t) {
|
194
|
+
const e = I(3);
|
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
|
+
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: n }), e[1] = t, e[2] = o) : o = e[2], o;
|
199
|
+
}
|
195
200
|
function ht(t) {
|
196
201
|
const e = I(3);
|
197
|
-
let
|
198
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
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];
|
199
204
|
let o;
|
200
|
-
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children:
|
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;
|
201
206
|
}
|
202
207
|
function ft(t) {
|
203
208
|
const e = I(3);
|
204
|
-
let
|
205
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
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];
|
206
211
|
let o;
|
207
|
-
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children:
|
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;
|
208
213
|
}
|
209
214
|
function pt(t) {
|
210
215
|
const e = I(3);
|
211
|
-
let
|
212
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
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];
|
213
218
|
let o;
|
214
|
-
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children:
|
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;
|
215
220
|
}
|
216
221
|
function gt(t) {
|
217
222
|
const e = I(3);
|
218
|
-
let
|
219
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
220
|
-
let o;
|
221
|
-
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;
|
222
|
-
}
|
223
|
-
function vt(t) {
|
224
|
-
const e = I(3);
|
225
|
-
let i;
|
226
|
-
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];
|
227
225
|
let o;
|
228
|
-
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children:
|
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;
|
229
227
|
}
|
230
228
|
const E = {
|
231
229
|
action: {
|
@@ -263,106 +261,106 @@ const E = {
|
|
263
261
|
},
|
264
262
|
deleteAll: "Remove all"
|
265
263
|
}
|
266
|
-
},
|
264
|
+
}, Jt = {
|
267
265
|
polygon: {
|
268
|
-
icon:
|
266
|
+
icon: mt
|
269
267
|
},
|
270
268
|
rectangle: {
|
271
|
-
icon:
|
269
|
+
icon: ht
|
272
270
|
},
|
273
271
|
circle: {
|
274
|
-
icon:
|
272
|
+
icon: ft
|
275
273
|
},
|
276
274
|
lasso: {
|
277
|
-
icon:
|
275
|
+
icon: pt
|
278
276
|
},
|
279
277
|
edit: {
|
280
|
-
icon:
|
278
|
+
icon: gt
|
281
279
|
}
|
282
280
|
};
|
283
|
-
function
|
284
|
-
return t
|
281
|
+
function vt(t) {
|
282
|
+
return t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
285
283
|
}
|
286
|
-
var
|
287
|
-
return
|
284
|
+
var yt = function(e) {
|
285
|
+
return wt(e) && !xt(e);
|
288
286
|
};
|
289
|
-
function
|
287
|
+
function wt(t) {
|
290
288
|
return !!t && typeof t == "object";
|
291
289
|
}
|
292
|
-
function
|
290
|
+
function xt(t) {
|
293
291
|
var e = Object.prototype.toString.call(t);
|
294
|
-
return e === "[object RegExp]" || e === "[object Date]" ||
|
292
|
+
return e === "[object RegExp]" || e === "[object Date]" || Ct(t);
|
295
293
|
}
|
296
|
-
var
|
297
|
-
function
|
298
|
-
return t.$$typeof ===
|
294
|
+
var bt = typeof Symbol == "function" && Symbol.for, Mt = bt ? Symbol.for("react.element") : 60103;
|
295
|
+
function Ct(t) {
|
296
|
+
return t.$$typeof === Mt;
|
299
297
|
}
|
300
|
-
function
|
298
|
+
function Tt(t) {
|
301
299
|
return Array.isArray(t) ? [] : {};
|
302
300
|
}
|
303
301
|
function de(t, e) {
|
304
|
-
return e.clone !== !1 && e.isMergeableObject(t) ? le(
|
302
|
+
return e.clone !== !1 && e.isMergeableObject(t) ? le(Tt(t), t, e) : t;
|
305
303
|
}
|
306
|
-
function
|
304
|
+
function St(t, e, n) {
|
307
305
|
return t.concat(e).map(function(o) {
|
308
|
-
return de(o,
|
306
|
+
return de(o, n);
|
309
307
|
});
|
310
308
|
}
|
311
|
-
function
|
309
|
+
function At(t, e) {
|
312
310
|
if (!e.customMerge)
|
313
311
|
return le;
|
314
|
-
var
|
315
|
-
return typeof
|
312
|
+
var n = e.customMerge(t);
|
313
|
+
return typeof n == "function" ? n : le;
|
316
314
|
}
|
317
|
-
function
|
315
|
+
function _t(t) {
|
318
316
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(e) {
|
319
317
|
return Object.propertyIsEnumerable.call(t, e);
|
320
318
|
}) : [];
|
321
319
|
}
|
322
320
|
function De(t) {
|
323
|
-
return Object.keys(t).concat(
|
321
|
+
return Object.keys(t).concat(_t(t));
|
324
322
|
}
|
325
|
-
function
|
323
|
+
function Pe(t, e) {
|
326
324
|
try {
|
327
325
|
return e in t;
|
328
326
|
} catch {
|
329
327
|
return !1;
|
330
328
|
}
|
331
329
|
}
|
332
|
-
function
|
333
|
-
return
|
330
|
+
function Dt(t, e) {
|
331
|
+
return Pe(t, e) && !(Object.hasOwnProperty.call(t, e) && Object.propertyIsEnumerable.call(t, e));
|
334
332
|
}
|
335
|
-
function
|
333
|
+
function Lt(t, e, n) {
|
336
334
|
var o = {};
|
337
|
-
return
|
338
|
-
o[
|
339
|
-
}), De(e).forEach(function(
|
340
|
-
|
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));
|
341
339
|
}), o;
|
342
340
|
}
|
343
|
-
function le(t, e,
|
344
|
-
|
345
|
-
var o = Array.isArray(e),
|
346
|
-
return a ? o ?
|
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);
|
347
345
|
}
|
348
|
-
le.all = function(e,
|
346
|
+
le.all = function(e, n) {
|
349
347
|
if (!Array.isArray(e))
|
350
348
|
throw new Error("first argument should be an array");
|
351
|
-
return e.reduce(function(o,
|
352
|
-
return le(o,
|
349
|
+
return e.reduce(function(o, i) {
|
350
|
+
return le(o, i, n);
|
353
351
|
}, {});
|
354
352
|
};
|
355
|
-
var
|
356
|
-
const Te = /* @__PURE__ */
|
357
|
-
function
|
353
|
+
var Ot = le, Rt = Ot;
|
354
|
+
const Te = /* @__PURE__ */ vt(Rt);
|
355
|
+
function je(t) {
|
358
356
|
var b;
|
359
357
|
const e = I(18), {
|
360
|
-
chipProps:
|
358
|
+
chipProps: n,
|
361
359
|
value: o,
|
362
|
-
labels:
|
360
|
+
labels: i,
|
363
361
|
onChipToggle: a,
|
364
362
|
onDelete: r
|
365
|
-
} = t, s = o.visible ? "active" : "inactive", c = ((b =
|
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;
|
366
364
|
let d;
|
367
365
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (d = {
|
368
366
|
...G.chip.chip
|
@@ -372,18 +370,18 @@ function Pe(t) {
|
|
372
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];
|
373
371
|
let h;
|
374
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];
|
375
|
-
const M =
|
373
|
+
const M = n == null ? void 0 : n.ChipsProps;
|
376
374
|
let g;
|
377
|
-
e[8] !== m || e[9] !== f || e[10] !== h || e[11] !== M || e[12] !== o.label ? (g = /* @__PURE__ */ l(
|
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];
|
378
376
|
let w;
|
379
377
|
return e[14] !== c || e[15] !== u || e[16] !== g ? (w = /* @__PURE__ */ l(re, { title: c, placement: "bottom", ...u, children: g }), e[14] = c, e[15] = u, e[16] = g, e[17] = w) : w = e[17], w;
|
380
378
|
}
|
381
|
-
function
|
379
|
+
function Qt({
|
382
380
|
enabled: t,
|
383
381
|
values: e = [],
|
384
|
-
actionProps:
|
382
|
+
actionProps: n,
|
385
383
|
chipProps: o,
|
386
|
-
labels:
|
384
|
+
labels: i,
|
387
385
|
modes: a,
|
388
386
|
modesMapping: r,
|
389
387
|
modeSelected: s,
|
@@ -406,46 +404,46 @@ function oo({
|
|
406
404
|
...G.container,
|
407
405
|
...c
|
408
406
|
}, ...u, children: [
|
409
|
-
/* @__PURE__ */ l(
|
410
|
-
/* @__PURE__ */ l(
|
411
|
-
/* @__PURE__ */ l(
|
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
|
+
/* @__PURE__ */ l(Ee, { children: (v) => /* @__PURE__ */ _(P, { children: [
|
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 }) }),
|
412
410
|
!!b && /* @__PURE__ */ _(P, { children: [
|
413
411
|
/* @__PURE__ */ l(Y, {}),
|
414
|
-
/* @__PURE__ */ l(Le, { ...v, labels:
|
412
|
+
/* @__PURE__ */ l(Le, { ...v, labels: i == null ? void 0 : i.options, data: [{
|
415
413
|
...b,
|
416
414
|
disabled: !e.length
|
417
415
|
}], modeSelected: y, onChangeMode: A })
|
418
416
|
] })
|
419
417
|
] }) }),
|
420
|
-
!!e.length && /* @__PURE__ */ l(ee, { sx: G.chip.container, children: e.map((v) => /* @__PURE__ */ l(
|
421
|
-
/* @__PURE__ */ l(
|
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 })
|
422
420
|
] });
|
423
421
|
}
|
424
|
-
function
|
422
|
+
function It(t) {
|
425
423
|
var h;
|
426
424
|
const e = I(12), {
|
427
|
-
actionProps:
|
425
|
+
actionProps: n,
|
428
426
|
labels: o,
|
429
|
-
enabled:
|
427
|
+
enabled: i,
|
430
428
|
children: a,
|
431
429
|
onActionToggle: r
|
432
|
-
} = t, s =
|
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;
|
433
431
|
let d;
|
434
|
-
e[0] !==
|
432
|
+
e[0] !== i || e[1] !== r ? (d = () => r(!i), e[0] = i, e[1] = r, e[2] = d) : d = e[2];
|
435
433
|
let m;
|
436
|
-
e[3] !== c || e[4] !== a || e[5] !==
|
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];
|
437
435
|
let f;
|
438
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;
|
439
437
|
}
|
440
|
-
function
|
438
|
+
function Ee({
|
441
439
|
TriggerProps: {
|
442
|
-
Icon: t = /* @__PURE__ */ l(
|
440
|
+
Icon: t = /* @__PURE__ */ l(Be, {}),
|
443
441
|
sx: e
|
444
442
|
} = {},
|
445
|
-
MenuProps:
|
443
|
+
MenuProps: n,
|
446
444
|
children: o
|
447
445
|
}) {
|
448
|
-
const [
|
446
|
+
const [i, a] = ie(null), r = !!i, s = (u) => {
|
449
447
|
a(u.currentTarget);
|
450
448
|
}, c = () => {
|
451
449
|
a(null);
|
@@ -455,67 +453,67 @@ function je({
|
|
455
453
|
...G.options.icon,
|
456
454
|
...e
|
457
455
|
}, onClick: s, children: t }),
|
458
|
-
/* @__PURE__ */ l(Ie, { id: "lasso-menu", anchorEl:
|
456
|
+
/* @__PURE__ */ l(Ie, { id: "lasso-menu", anchorEl: i, open: r, onClose: c, MenuListProps: {
|
459
457
|
"aria-labelledby": "lasso-button",
|
460
458
|
sx: G.options.menu
|
461
|
-
}, ...
|
459
|
+
}, ...n, children: /* @__PURE__ */ l("div", { children: o({
|
462
460
|
onClose: c
|
463
461
|
}) }) })
|
464
462
|
] });
|
465
463
|
}
|
466
|
-
function
|
464
|
+
function Zt(t) {
|
467
465
|
var c;
|
468
466
|
const e = I(5), {
|
469
|
-
data:
|
467
|
+
data: n,
|
470
468
|
labels: o,
|
471
|
-
children:
|
469
|
+
children: i
|
472
470
|
} = t;
|
473
|
-
if (
|
471
|
+
if (n.length <= 1)
|
474
472
|
return null;
|
475
473
|
const a = ((c = o == null ? void 0 : o.mode) == null ? void 0 : c.title) ?? E.options.mode.title;
|
476
474
|
let r;
|
477
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];
|
478
476
|
let s;
|
479
|
-
return e[2] !==
|
477
|
+
return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ _(P, { children: [
|
480
478
|
r,
|
481
|
-
|
482
|
-
] }), e[2] =
|
479
|
+
i
|
480
|
+
] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
|
483
481
|
}
|
484
482
|
function Le({
|
485
483
|
data: t,
|
486
484
|
modeSelected: e,
|
487
|
-
labels:
|
485
|
+
labels: n,
|
488
486
|
onChangeMode: o,
|
489
|
-
onClose:
|
487
|
+
onClose: i
|
490
488
|
}) {
|
491
489
|
const a = (r, s) => {
|
492
|
-
r.preventDefault(), o == null || o(s),
|
490
|
+
r.preventDefault(), o == null || o(s), i();
|
493
491
|
};
|
494
492
|
return t.map((r) => {
|
495
493
|
var u;
|
496
|
-
const c = (((u =
|
494
|
+
const c = (((u = n == null ? void 0 : n.mode) == null ? void 0 : u.options) ?? E.options.mode.options)[r.value];
|
497
495
|
return /* @__PURE__ */ _(ce, { disabled: !!r.disabled, onClick: (d) => a(d, r.value), selected: r.value === e, children: [
|
498
496
|
/* @__PURE__ */ l(Ze, { sx: G.options.icons, children: /* @__PURE__ */ l(Me, { children: /* @__PURE__ */ l(r.icon, {}) }) }),
|
499
497
|
/* @__PURE__ */ l(ae, { children: c })
|
500
498
|
] }, r.value);
|
501
499
|
});
|
502
500
|
}
|
503
|
-
function
|
501
|
+
function kt(t) {
|
504
502
|
var h, M;
|
505
503
|
const e = I(8), {
|
506
|
-
values:
|
504
|
+
values: n,
|
507
505
|
labels: o,
|
508
|
-
onAllChipToggle:
|
506
|
+
onAllChipToggle: i,
|
509
507
|
onAllDelete: a
|
510
508
|
} = t;
|
511
|
-
if (
|
509
|
+
if (n.length <= 1)
|
512
510
|
return null;
|
513
|
-
const s =
|
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;
|
514
512
|
let u;
|
515
513
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ l(Y, { orientation: "vertical", flexItem: !0 }), e[0] = u) : u = e[0];
|
516
514
|
let d, m;
|
517
515
|
e[1] === Symbol.for("react.memo_cache_sentinel") ? (d = {
|
518
|
-
Icon: /* @__PURE__ */ l(
|
516
|
+
Icon: /* @__PURE__ */ l(nt, {}),
|
519
517
|
sx: G.options.more
|
520
518
|
}, m = {
|
521
519
|
anchorOrigin: {
|
@@ -528,28 +526,28 @@ function Bt(t) {
|
|
528
526
|
}
|
529
527
|
}, e[1] = d, e[2] = m) : (d = e[1], m = e[2]);
|
530
528
|
let f;
|
531
|
-
return e[3] !== c || e[4] !==
|
529
|
+
return e[3] !== c || e[4] !== i || e[5] !== a || e[6] !== s ? (f = /* @__PURE__ */ _(P, { children: [
|
532
530
|
u,
|
533
|
-
/* @__PURE__ */ l(
|
531
|
+
/* @__PURE__ */ l(Ee, { TriggerProps: d, MenuProps: m, children: (g) => /* @__PURE__ */ _(P, { children: [
|
534
532
|
/* @__PURE__ */ l(ce, { color: "inherit", onClick: () => {
|
535
|
-
|
533
|
+
i(), g.onClose();
|
536
534
|
}, children: s }),
|
537
535
|
/* @__PURE__ */ l(Y, {}),
|
538
536
|
/* @__PURE__ */ l(ce, { color: "error", onClick: () => {
|
539
537
|
a(), g.onClose();
|
540
538
|
}, children: /* @__PURE__ */ l(H, { variant: "body2", color: "error", children: c }) })
|
541
539
|
] }) })
|
542
|
-
] }), e[3] = c, e[4] =
|
540
|
+
] }), e[3] = c, e[4] = i, e[5] = a, e[6] = s, e[7] = f) : f = e[7], f;
|
543
541
|
}
|
544
|
-
function
|
542
|
+
function Bt(t) {
|
545
543
|
return t.visible;
|
546
544
|
}
|
547
|
-
function
|
545
|
+
function eo({
|
548
546
|
enabled: t,
|
549
547
|
values: e = [],
|
550
|
-
chipProps:
|
548
|
+
chipProps: n,
|
551
549
|
labels: o,
|
552
|
-
modes:
|
550
|
+
modes: i,
|
553
551
|
modesMapping: a,
|
554
552
|
modeSelected: r,
|
555
553
|
BoxProps: {
|
@@ -562,17 +560,17 @@ function io({
|
|
562
560
|
onAllChipToggle: f,
|
563
561
|
onAllDelete: h
|
564
562
|
}) {
|
565
|
-
const M = Ce(() => Te(
|
563
|
+
const M = Ce(() => Te(i, a), [i, a]), {
|
566
564
|
edit: g,
|
567
565
|
...w
|
568
566
|
} = M, b = (y) => d(y), C = (y, p) => {
|
569
567
|
y.preventDefault(), m == null || m(p);
|
570
|
-
}, S = (r ?? "") in
|
568
|
+
}, S = (r ?? "") in i ? r : Object.keys(M)[0], A = t ? M[S] : null, T = Object.values(w);
|
571
569
|
return /* @__PURE__ */ _(ee, { sx: {
|
572
570
|
...G.container,
|
573
571
|
...s
|
574
572
|
}, ...c, className: "inline", children: [
|
575
|
-
/* @__PURE__ */ l(
|
573
|
+
/* @__PURE__ */ l(Pt, { data: T, labels: o == null ? void 0 : o.options, children: /* @__PURE__ */ _(ke, { value: A == null ? void 0 : A.value, exclusive: !0, className: "inline", sx: G.options.menu, onChange: C, children: [
|
576
574
|
/* @__PURE__ */ l(Oe, { labels: o == null ? void 0 : o.options, data: T }),
|
577
575
|
!!g && /* @__PURE__ */ _(P, { children: [
|
578
576
|
/* @__PURE__ */ l(Y, { orientation: "vertical" }),
|
@@ -583,49 +581,49 @@ function io({
|
|
583
581
|
] })
|
584
582
|
] }) }),
|
585
583
|
/* @__PURE__ */ l(Y, { flexItem: !0 }),
|
586
|
-
/* @__PURE__ */ l(
|
587
|
-
!!e.length && /* @__PURE__ */ l(ee, { sx: G.chip.container, className: "inline", children: e.map((y) => /* @__PURE__ */ l(
|
588
|
-
/* @__PURE__ */ l(
|
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: n, onDelete: b, onChipToggle: u }, y.id)) }),
|
586
|
+
/* @__PURE__ */ l(Et, { values: e, labels: o == null ? void 0 : o.actions, onAllChipToggle: f, onAllDelete: h })
|
589
587
|
] });
|
590
588
|
}
|
591
|
-
function
|
589
|
+
function Pt(t) {
|
592
590
|
var c;
|
593
591
|
const e = I(5), {
|
594
|
-
data:
|
592
|
+
data: n,
|
595
593
|
labels: o,
|
596
|
-
children:
|
594
|
+
children: i
|
597
595
|
} = t;
|
598
|
-
if (
|
596
|
+
if (n.length <= 1)
|
599
597
|
return null;
|
600
598
|
const a = ((c = o == null ? void 0 : o.mode) == null ? void 0 : c.title) ?? E.options.mode.title;
|
601
599
|
let r;
|
602
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];
|
603
601
|
let s;
|
604
|
-
return e[2] !==
|
602
|
+
return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ _(P, { children: [
|
605
603
|
r,
|
606
|
-
|
607
|
-
] }), e[2] =
|
604
|
+
i
|
605
|
+
] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
|
608
606
|
}
|
609
607
|
function Oe({
|
610
608
|
data: t,
|
611
609
|
labels: e
|
612
610
|
}) {
|
613
|
-
return t.map((
|
611
|
+
return t.map((n) => {
|
614
612
|
var a;
|
615
|
-
const
|
616
|
-
return /* @__PURE__ */ l(re, { title:
|
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);
|
617
615
|
});
|
618
616
|
}
|
619
|
-
function
|
617
|
+
function jt(t) {
|
620
618
|
const e = I(7), {
|
621
|
-
hasValues:
|
619
|
+
hasValues: n,
|
622
620
|
labels: o
|
623
621
|
} = t;
|
624
|
-
if (
|
622
|
+
if (n)
|
625
623
|
return null;
|
626
|
-
const
|
624
|
+
const i = (o == null ? void 0 : o.title) ?? E.noData.title, a = (o == null ? void 0 : o.description) ?? E.noData.description;
|
627
625
|
let r;
|
628
|
-
e[0] !==
|
626
|
+
e[0] !== i ? (r = /* @__PURE__ */ l(H, { variant: "body1", color: "textSecondary", children: i }), e[0] = i, e[1] = r) : r = e[1];
|
629
627
|
let s;
|
630
628
|
e[2] !== a ? (s = /* @__PURE__ */ l(H, { variant: "body2", color: "textSecondary", children: a }), e[2] = a, e[3] = s) : s = e[3];
|
631
629
|
let c;
|
@@ -634,19 +632,19 @@ function Et(t) {
|
|
634
632
|
s
|
635
633
|
] }), e[4] = r, e[5] = s, e[6] = c) : c = e[6], c;
|
636
634
|
}
|
637
|
-
function
|
635
|
+
function Et(t) {
|
638
636
|
var f, h;
|
639
637
|
const e = I(9), {
|
640
|
-
values:
|
638
|
+
values: n,
|
641
639
|
labels: o,
|
642
|
-
onAllChipToggle:
|
640
|
+
onAllChipToggle: i,
|
643
641
|
onAllDelete: a
|
644
642
|
} = t;
|
645
|
-
if (
|
643
|
+
if (n.length <= 1)
|
646
644
|
return null;
|
647
|
-
const s =
|
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;
|
648
646
|
let u;
|
649
|
-
e[0] !==
|
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];
|
650
648
|
let d;
|
651
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];
|
652
650
|
let m;
|
@@ -655,7 +653,7 @@ function $t(t) {
|
|
655
653
|
d
|
656
654
|
] }), e[6] = u, e[7] = d, e[8] = m) : m = e[8], m;
|
657
655
|
}
|
658
|
-
function
|
656
|
+
function $t(t) {
|
659
657
|
return t.visible;
|
660
658
|
}
|
661
659
|
const q = {
|
@@ -710,7 +708,7 @@ const q = {
|
|
710
708
|
}
|
711
709
|
}
|
712
710
|
}
|
713
|
-
},
|
711
|
+
}, Ut = {
|
714
712
|
"m-km": {
|
715
713
|
short: "m-km"
|
716
714
|
},
|
@@ -739,29 +737,29 @@ const q = {
|
|
739
737
|
short: "ft"
|
740
738
|
}
|
741
739
|
};
|
742
|
-
function
|
740
|
+
function to(t) {
|
743
741
|
const e = I(3);
|
744
|
-
let
|
745
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
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];
|
746
744
|
let o;
|
747
|
-
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children:
|
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;
|
748
746
|
}
|
749
|
-
function
|
747
|
+
function oo(t) {
|
750
748
|
const e = I(3);
|
751
|
-
let
|
752
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
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];
|
753
751
|
let o;
|
754
|
-
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children:
|
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;
|
755
753
|
}
|
756
|
-
function
|
754
|
+
function no(t) {
|
757
755
|
const e = I(4);
|
758
|
-
let
|
759
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
760
|
-
let
|
761
|
-
return e[2] !== t ? (
|
762
|
-
|
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,
|
763
761
|
o
|
764
|
-
] }), e[2] = t, e[3] =
|
762
|
+
] }), e[2] = t, e[3] = i) : i = e[3], i;
|
765
763
|
}
|
766
764
|
const V = {
|
767
765
|
container: {
|
@@ -907,11 +905,11 @@ const V = {
|
|
907
905
|
}
|
908
906
|
}
|
909
907
|
};
|
910
|
-
function
|
908
|
+
function io(t) {
|
911
909
|
const e = I(46), {
|
912
|
-
enabled:
|
910
|
+
enabled: n,
|
913
911
|
actionProps: o,
|
914
|
-
labels:
|
912
|
+
labels: i,
|
915
913
|
modes: a,
|
916
914
|
modesMapping: r,
|
917
915
|
unitsMapping: s,
|
@@ -922,7 +920,7 @@ function co(t) {
|
|
922
920
|
onActionToggle: f,
|
923
921
|
onChangeMode: h,
|
924
922
|
onChangeUnit: M
|
925
|
-
} = t, g = s === void 0 ?
|
923
|
+
} = t, g = s === void 0 ? Ut : s;
|
926
924
|
let w;
|
927
925
|
e[0] !== u ? (w = u === void 0 ? {} : u, e[0] = u, e[1] = w) : w = e[1];
|
928
926
|
let b, C;
|
@@ -962,12 +960,12 @@ function co(t) {
|
|
962
960
|
...V.container,
|
963
961
|
...C
|
964
962
|
}, e[23] = C, e[24] = $) : $ = e[24];
|
965
|
-
const te =
|
963
|
+
const te = i == null ? void 0 : i.action, oe = O == null ? void 0 : O.icon;
|
966
964
|
let N;
|
967
|
-
e[25] !== o || e[26] !==
|
968
|
-
const
|
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;
|
969
967
|
let X;
|
970
|
-
e[31] !== F || e[32] !== y || e[33] !== v || e[34] !== h || e[35] !== M || e[36] !==
|
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];
|
971
969
|
let W;
|
972
970
|
e[39] !== N || e[40] !== X ? (W = /* @__PURE__ */ _(ee, { children: [
|
973
971
|
N,
|
@@ -976,49 +974,49 @@ function co(t) {
|
|
976
974
|
let K;
|
977
975
|
return e[42] !== b || e[43] !== $ || e[44] !== W ? (K = /* @__PURE__ */ l(we, { sx: $, ...b, children: W }), e[42] = b, e[43] = $, e[44] = W, e[45] = K) : K = e[45], K;
|
978
976
|
}
|
979
|
-
function
|
977
|
+
function Vt(t) {
|
980
978
|
var h;
|
981
979
|
const e = I(12), {
|
982
|
-
actionProps:
|
980
|
+
actionProps: n,
|
983
981
|
labels: o,
|
984
|
-
enabled:
|
982
|
+
enabled: i,
|
985
983
|
children: a,
|
986
984
|
onActionToggle: r
|
987
|
-
} = t, s =
|
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;
|
988
986
|
let d;
|
989
|
-
e[0] !==
|
987
|
+
e[0] !== i || e[1] !== r ? (d = () => r(!i), e[0] = i, e[1] = r, e[2] = d) : d = e[2];
|
990
988
|
let m;
|
991
|
-
e[3] !== c || e[4] !== a || e[5] !==
|
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];
|
992
990
|
let f;
|
993
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;
|
994
992
|
}
|
995
|
-
function
|
996
|
-
var F, $, te, oe, N,
|
993
|
+
function Gt(t) {
|
994
|
+
var F, $, te, oe, N, ne, X, W;
|
997
995
|
const e = I(68), {
|
998
|
-
modes:
|
996
|
+
modes: n,
|
999
997
|
modeSelected: o,
|
1000
|
-
units:
|
998
|
+
units: i,
|
1001
999
|
unitSelected: a,
|
1002
1000
|
labels: r,
|
1003
1001
|
onChangeMode: s,
|
1004
1002
|
onChangeUnit: c
|
1005
|
-
} = t, [u, d] =
|
1003
|
+
} = t, [u, d] = ie(null), [m, f] = ie(!1);
|
1006
1004
|
let h, M, g, w, b, C, D, S, A, T, y, p, x, v, O, R;
|
1007
|
-
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] !==
|
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) {
|
1008
1006
|
x = Symbol.for("react.early_return_sentinel");
|
1009
1007
|
e: {
|
1010
|
-
const K = Object.values(
|
1008
|
+
const K = Object.values(n);
|
1011
1009
|
let z;
|
1012
|
-
if (e[26] !==
|
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)) {
|
1013
1011
|
x = null;
|
1014
1012
|
break e;
|
1015
1013
|
}
|
1016
|
-
const
|
1014
|
+
const $e = !!u;
|
1017
1015
|
let ue;
|
1018
1016
|
e[28] === Symbol.for("react.memo_cache_sentinel") ? (ue = (U) => {
|
1019
1017
|
d(U.currentTarget);
|
1020
1018
|
}, e[28] = ue) : ue = e[28];
|
1021
|
-
const
|
1019
|
+
const Ue = ue;
|
1022
1020
|
let me;
|
1023
1021
|
e[29] === Symbol.for("react.memo_cache_sentinel") ? (me = () => {
|
1024
1022
|
d(null);
|
@@ -1028,7 +1026,7 @@ function Ft(t) {
|
|
1028
1026
|
e[30] !== s ? (he = (U, Ae) => {
|
1029
1027
|
U.preventDefault(), s(Ae.value), Se();
|
1030
1028
|
}, e[30] = s, e[31] = he) : he = e[31];
|
1031
|
-
const
|
1029
|
+
const Ve = he;
|
1032
1030
|
let fe;
|
1033
1031
|
e[32] === Symbol.for("react.memo_cache_sentinel") ? (fe = () => {
|
1034
1032
|
f(!0);
|
@@ -1041,25 +1039,25 @@ function Ft(t) {
|
|
1041
1039
|
e[34] !== c ? (ge = (U) => {
|
1042
1040
|
w(), c(U);
|
1043
1041
|
}, e[34] = c, e[35] = ge) : ge = e[35], M = ge;
|
1044
|
-
const
|
1042
|
+
const Ge = ((oe = r == null ? void 0 : r.mode) == null ? void 0 : oe.title) ?? q.options.mode.title;
|
1045
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;
|
1046
1044
|
let ve;
|
1047
|
-
e[36] !== a || e[37] !==
|
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 = {
|
1048
1046
|
"aria-labelledby": "basic-button",
|
1049
1047
|
sx: V.options.menu
|
1050
1048
|
}, e[40] = y) : y = e[40], C = K.length > 1 && /* @__PURE__ */ _(P, { children: [
|
1051
|
-
/* @__PURE__ */ l(H, { variant: "subtitle2", color: "text.secondary", sx: V.options.title, children:
|
1049
|
+
/* @__PURE__ */ l(H, { variant: "subtitle2", color: "text.secondary", sx: V.options.title, children: Ge }),
|
1052
1050
|
K.map((U) => {
|
1053
1051
|
var _e;
|
1054
|
-
const
|
1055
|
-
return /* @__PURE__ */ _(ce, { onClick: (
|
1052
|
+
const Fe = (((_e = r == null ? void 0 : r.mode) == null ? void 0 : _e.options) ?? q.options.mode.options)[U.value];
|
1053
|
+
return /* @__PURE__ */ _(ce, { onClick: (ze) => Ve(ze, U), selected: U.value === o, children: [
|
1056
1054
|
/* @__PURE__ */ l(Ze, { sx: V.options.icons, children: /* @__PURE__ */ l(Me, { children: U.icon }) }),
|
1057
|
-
/* @__PURE__ */ l(ae, { children:
|
1055
|
+
/* @__PURE__ */ l(ae, { children: Fe })
|
1058
1056
|
] }, U.value);
|
1059
1057
|
})
|
1060
1058
|
] });
|
1061
1059
|
}
|
1062
|
-
e[0] = u, e[1] = (
|
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;
|
1063
1061
|
} else
|
1064
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];
|
1065
1063
|
if (x !== Symbol.for("react.early_return_sentinel"))
|
@@ -1067,13 +1065,13 @@ function Ft(t) {
|
|
1067
1065
|
let L;
|
1068
1066
|
e[41] !== b ? (L = b && /* @__PURE__ */ l(Y, {}), e[41] = b, e[42] = L) : L = e[42];
|
1069
1067
|
let Z;
|
1070
|
-
e[43] !== M || e[44] !== g || e[45] !== w || e[46] !== r || e[47] !== m || e[48] !== v || e[49] !== O || e[50] !==
|
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: [
|
1071
1069
|
/* @__PURE__ */ _(ce, { onClick: g, children: [
|
1072
1070
|
/* @__PURE__ */ l(ae, { children: O }),
|
1073
1071
|
/* @__PURE__ */ l(H, { variant: "caption", fontWeight: 500, sx: V.options.tag, children: v.short })
|
1074
1072
|
] }),
|
1075
|
-
/* @__PURE__ */ l(
|
1076
|
-
] }), e[43] = M, e[44] = g, e[45] = w, e[46] = r, e[47] = m, e[48] = v, e[49] = O, e[50] =
|
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];
|
1077
1075
|
let j;
|
1078
1076
|
e[53] !== C || e[54] !== Z || e[55] !== L ? (j = /* @__PURE__ */ _("div", { children: [
|
1079
1077
|
C,
|
@@ -1088,19 +1086,19 @@ function Ft(t) {
|
|
1088
1086
|
B
|
1089
1087
|
] }), e[65] = B, e[66] = p, e[67] = k) : k = e[67], k;
|
1090
1088
|
}
|
1091
|
-
function
|
1089
|
+
function Ft({
|
1092
1090
|
open: t,
|
1093
1091
|
labels: e,
|
1094
|
-
units:
|
1092
|
+
units: n,
|
1095
1093
|
unitSelectedValue: o,
|
1096
|
-
onClose:
|
1094
|
+
onClose: i,
|
1097
1095
|
onSubmit: a
|
1098
1096
|
}) {
|
1099
1097
|
var w, b, C, D, S, A, T, y;
|
1100
|
-
const [r, s] =
|
1098
|
+
const [r, s] = ie("metric"), c = Ce(() => n.filter((p) => p.system === r), [r, n]), u = (p, x) => {
|
1101
1099
|
s(x);
|
1102
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];
|
1103
|
-
return /* @__PURE__ */ _(
|
1101
|
+
return /* @__PURE__ */ _(Ne, { open: t, component: ee, onClose: i, maxWidth: "xs", PaperProps: {
|
1104
1102
|
component: "form",
|
1105
1103
|
onSubmit: (p) => {
|
1106
1104
|
p.preventDefault();
|
@@ -1108,38 +1106,38 @@ function zt({
|
|
1108
1106
|
a(x.get("unit-value"));
|
1109
1107
|
}
|
1110
1108
|
}, children: [
|
1111
|
-
/* @__PURE__ */ _(
|
1109
|
+
/* @__PURE__ */ _(Xe, { sx: V.options.modal.title, children: [
|
1112
1110
|
f,
|
1113
|
-
/* @__PURE__ */ l(Q, { onClick:
|
1111
|
+
/* @__PURE__ */ l(Q, { onClick: i, children: /* @__PURE__ */ l(it, {}) })
|
1114
1112
|
] }),
|
1115
|
-
/* @__PURE__ */ _(
|
1113
|
+
/* @__PURE__ */ _(We, { sx: V.options.modal.content, children: [
|
1116
1114
|
/* @__PURE__ */ l(H, { sx: V.options.modal.subtitle, children: h }),
|
1117
1115
|
/* @__PURE__ */ _(ke, { color: "primary", value: r, exclusive: !0, fullWidth: !0, onChange: u, "aria-label": "system", sx: V.options.modal.toggle, children: [
|
1118
1116
|
/* @__PURE__ */ l(se, { value: "metric", children: d.metric.title }),
|
1119
1117
|
/* @__PURE__ */ l(se, { value: "imperial", children: d.imperial.title })
|
1120
1118
|
] }),
|
1121
|
-
/* @__PURE__ */ l(
|
1119
|
+
/* @__PURE__ */ l(Ke, { children: /* @__PURE__ */ l(Ye, { "aria-labelledby": "unit-value", defaultValue: g == null ? void 0 : g.value, name: "unit-value", sx: V.options.modal.optionsGroup, children: c.map((p) => {
|
1122
1120
|
const x = m[p.value];
|
1123
|
-
return /* @__PURE__ */ l(
|
1121
|
+
return /* @__PURE__ */ l(qe, { value: p.value, control: /* @__PURE__ */ l(Je, {}), label: x }, p.value);
|
1124
1122
|
}) }) }, g == null ? void 0 : g.value)
|
1125
1123
|
] }),
|
1126
|
-
/* @__PURE__ */ l(
|
1124
|
+
/* @__PURE__ */ l(Qe, { sx: V.options.modal.actions, children: /* @__PURE__ */ l(ye, { variant: "contained", type: "submit", children: M }) })
|
1127
1125
|
] });
|
1128
1126
|
}
|
1129
|
-
const
|
1127
|
+
const zt = {
|
1130
1128
|
enabled: "Show your current location",
|
1131
1129
|
disabled: "Location unavailable"
|
1132
|
-
},
|
1133
|
-
function
|
1130
|
+
}, Ht = "geolocation";
|
1131
|
+
function lo(t) {
|
1134
1132
|
const e = I(25), {
|
1135
|
-
disabled:
|
1133
|
+
disabled: n,
|
1136
1134
|
labels: o,
|
1137
|
-
PaperProps:
|
1135
|
+
PaperProps: i,
|
1138
1136
|
TooltipProps: a,
|
1139
1137
|
watch: r,
|
1140
1138
|
onChange: s,
|
1141
1139
|
onError: c
|
1142
|
-
} = t, u =
|
1140
|
+
} = t, u = dt(null), d = "geolocation" in navigator, [m, f] = ie(d);
|
1143
1141
|
let h, M;
|
1144
1142
|
e[0] !== c ? (h = () => (d && navigator.permissions.query({
|
1145
1143
|
name: "geolocation"
|
@@ -1151,7 +1149,7 @@ function ao(t) {
|
|
1151
1149
|
f(!1), c == null || c(L);
|
1152
1150
|
}), () => {
|
1153
1151
|
u.current && navigator.geolocation.clearWatch(u.current);
|
1154
|
-
}), M = [d, c], e[0] = c, e[1] = h, e[2] = M) : (h = e[1], M = e[2]),
|
1152
|
+
}), M = [d, c], e[0] = c, e[1] = h, e[2] = M) : (h = e[1], M = e[2]), ut(h, M);
|
1155
1153
|
let g;
|
1156
1154
|
e[3] !== s ? (g = (L) => {
|
1157
1155
|
s(L.coords);
|
@@ -1170,15 +1168,15 @@ function ao(t) {
|
|
1170
1168
|
}
|
1171
1169
|
navigator.geolocation.getCurrentPosition(w, C);
|
1172
1170
|
}, e[7] = C, e[8] = w, e[9] = r, e[10] = D) : D = e[10];
|
1173
|
-
const S = D, T = ((o == null ? void 0 : o.tooltip) ??
|
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;
|
1174
1172
|
let x;
|
1175
|
-
e[11] !== m ? (x = m ? /* @__PURE__ */ l(
|
1173
|
+
e[11] !== m ? (x = m ? /* @__PURE__ */ l(lt, {}) : /* @__PURE__ */ l(rt, {}), e[11] = m, e[12] = x) : x = e[12];
|
1176
1174
|
let v;
|
1177
1175
|
e[13] !== S || e[14] !== y || e[15] !== p || e[16] !== x ? (v = /* @__PURE__ */ l(Q, { onClick: S, "aria-label": y, disabled: p, children: x }), e[13] = S, e[14] = y, e[15] = p, e[16] = x, e[17] = v) : v = e[17];
|
1178
1176
|
let O;
|
1179
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];
|
1180
1178
|
let R;
|
1181
|
-
return e[22] !==
|
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;
|
1182
1180
|
}
|
1183
1181
|
const be = {
|
1184
1182
|
zoom: {
|
@@ -1212,11 +1210,11 @@ const be = {
|
|
1212
1210
|
position: "absolute"
|
1213
1211
|
}
|
1214
1212
|
};
|
1215
|
-
function
|
1213
|
+
function ro(t) {
|
1216
1214
|
const e = I(40), {
|
1217
|
-
zoom:
|
1215
|
+
zoom: n,
|
1218
1216
|
disabled: o,
|
1219
|
-
direction:
|
1217
|
+
direction: i,
|
1220
1218
|
isLoading: a,
|
1221
1219
|
maxZoom: r,
|
1222
1220
|
minZoom: s,
|
@@ -1225,24 +1223,24 @@ function so(t) {
|
|
1225
1223
|
showZoom: d,
|
1226
1224
|
onChange: m,
|
1227
1225
|
onReset: f
|
1228
|
-
} = t, h =
|
1226
|
+
} = t, h = i === void 0 ? "vertical" : i, M = r === void 0 ? 24 : r, g = s === void 0 ? 0 : s;
|
1229
1227
|
let w;
|
1230
1228
|
e[0] !== u ? (w = u === void 0 ? {
|
1231
|
-
Icon:
|
1229
|
+
Icon: ct
|
1232
1230
|
} : u, e[0] = u, e[1] = w) : w = e[1];
|
1233
1231
|
const b = w, C = d === void 0 ? !0 : d;
|
1234
1232
|
let D;
|
1235
|
-
e[2] !== M || e[3] !== m || e[4] !==
|
1236
|
-
const $ = Math.min(M,
|
1233
|
+
e[2] !== M || e[3] !== m || e[4] !== n ? (D = () => {
|
1234
|
+
const $ = Math.min(M, n + 1);
|
1237
1235
|
m($);
|
1238
|
-
}, e[2] = M, e[3] = m, e[4] =
|
1236
|
+
}, e[2] = M, e[3] = m, e[4] = n, e[5] = D) : D = e[5];
|
1239
1237
|
const S = D;
|
1240
1238
|
let A;
|
1241
|
-
e[6] !== g || e[7] !== m || e[8] !==
|
1242
|
-
const $ = Math.max(g,
|
1239
|
+
e[6] !== g || e[7] !== m || e[8] !== n ? (A = () => {
|
1240
|
+
const $ = Math.max(g, n - 1);
|
1243
1241
|
m($);
|
1244
|
-
}, e[6] = g, e[7] = m, e[8] =
|
1245
|
-
const T = A, y = Math.floor(
|
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";
|
1246
1244
|
let v;
|
1247
1245
|
e[10] !== x ? (v = {
|
1248
1246
|
...be.paper,
|
@@ -1254,7 +1252,7 @@ function so(t) {
|
|
1254
1252
|
/* @__PURE__ */ l(Y, { orientation: p, flexItem: !0 })
|
1255
1253
|
] }), e[12] = b, e[13] = o, e[14] = p, e[15] = f, e[16] = O) : O = e[16];
|
1256
1254
|
let R;
|
1257
|
-
e[17] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ l(
|
1255
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ l(at, {}), e[17] = R) : R = e[17];
|
1258
1256
|
let L;
|
1259
1257
|
e[18] !== o || e[19] !== S ? (L = /* @__PURE__ */ l(Q, { onClick: S, "aria-label": "Increase zoom", disabled: o, children: R }), e[18] = o, e[19] = S, e[20] = L) : L = e[20];
|
1260
1258
|
let Z;
|
@@ -1263,12 +1261,12 @@ function so(t) {
|
|
1263
1261
|
e[23] !== y || e[24] !== p || e[25] !== a || e[26] !== C ? (j = C && /* @__PURE__ */ _(P, { children: [
|
1264
1262
|
/* @__PURE__ */ _(ee, { sx: be.zoom, children: [
|
1265
1263
|
/* @__PURE__ */ l(H, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: y }),
|
1266
|
-
a && /* @__PURE__ */ l(
|
1264
|
+
a && /* @__PURE__ */ l(et, { sx: be.circularProgress, variant: "indeterminate", size: 24 })
|
1267
1265
|
] }),
|
1268
1266
|
/* @__PURE__ */ l(Y, { orientation: p, flexItem: !0 })
|
1269
1267
|
] }), e[23] = y, e[24] = p, e[25] = a, e[26] = C, e[27] = j) : j = e[27];
|
1270
1268
|
let B;
|
1271
|
-
e[28] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ l(
|
1269
|
+
e[28] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ l(st, {}), e[28] = B) : B = e[28];
|
1272
1270
|
let k;
|
1273
1271
|
e[29] !== T || e[30] !== o ? (k = /* @__PURE__ */ l(Q, { onClick: T, "aria-label": "Decrease zoom", disabled: o, children: B }), e[29] = T, e[30] = o, e[31] = k) : k = e[31];
|
1274
1272
|
let F;
|
@@ -1321,23 +1319,23 @@ const J = {
|
|
1321
1319
|
opacity: 0.5,
|
1322
1320
|
cursor: "not-allowed"
|
1323
1321
|
}
|
1324
|
-
},
|
1322
|
+
}, Nt = {
|
1325
1323
|
showMore: "Show More",
|
1326
1324
|
showLess: "Show Less"
|
1327
1325
|
};
|
1328
|
-
function
|
1326
|
+
function co(t) {
|
1329
1327
|
const e = I(30), {
|
1330
|
-
data:
|
1328
|
+
data: n,
|
1331
1329
|
itemsToShow: o,
|
1332
|
-
labels:
|
1330
|
+
labels: i,
|
1333
1331
|
showDivider: a,
|
1334
1332
|
selectedItemId: r,
|
1335
1333
|
tooltipProps: s,
|
1336
1334
|
onExpand: c,
|
1337
1335
|
onItemClick: u
|
1338
|
-
} = t, d = o === void 0 ? 0 : o, m =
|
1336
|
+
} = t, d = o === void 0 ? 0 : o, m = i === void 0 ? Nt : i, f = a === void 0 ? !0 : a, [h, M] = ie(!1);
|
1339
1337
|
let g, w;
|
1340
|
-
e[0] !==
|
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;
|
1341
1339
|
const b = g;
|
1342
1340
|
let C;
|
1343
1341
|
e[4] !== c || e[5] !== h ? (C = () => {
|
@@ -1351,7 +1349,7 @@ function uo(t) {
|
|
1351
1349
|
let S;
|
1352
1350
|
if (e[8] !== b || e[9] !== u || e[10] !== r || e[11] !== f || e[12] !== s) {
|
1353
1351
|
let p;
|
1354
|
-
e[14] !== u || e[15] !== r || e[16] !== f || e[17] !== s ? (p = (x, v) => /* @__PURE__ */ l(re, { followCursor: !1, placement: "top", arrow: !0, title: x.tooltipTitle, enterDelay: 10, ...s, children: /* @__PURE__ */ _(
|
1352
|
+
e[14] !== u || e[15] !== r || e[16] !== f || e[17] !== s ? (p = (x, v) => /* @__PURE__ */ l(re, { followCursor: !1, placement: "top", arrow: !0, title: x.tooltipTitle, enterDelay: 10, ...s, children: /* @__PURE__ */ _(tt, { sx: {
|
1355
1353
|
...f && J.showDivider,
|
1356
1354
|
...u && J.clickable,
|
1357
1355
|
...r === x.id && J.selected,
|
@@ -1365,9 +1363,9 @@ function uo(t) {
|
|
1365
1363
|
} else
|
1366
1364
|
S = e[13];
|
1367
1365
|
let A;
|
1368
|
-
e[19] !== S ? (A = /* @__PURE__ */ l(
|
1366
|
+
e[19] !== S ? (A = /* @__PURE__ */ l(ot, { id: "expandable-list", children: S }), e[19] = S, e[20] = A) : A = e[20];
|
1369
1367
|
let T;
|
1370
|
-
e[21] !==
|
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];
|
1371
1369
|
let y;
|
1372
1370
|
return e[27] !== A || e[28] !== T ? (y = /* @__PURE__ */ _(P, { children: [
|
1373
1371
|
A,
|
@@ -1375,23 +1373,23 @@ function uo(t) {
|
|
1375
1373
|
] }), e[27] = A, e[28] = T, e[29] = y) : y = e[29], y;
|
1376
1374
|
}
|
1377
1375
|
export {
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1376
|
+
no as AreaIcon,
|
1377
|
+
oo as BufferIcon,
|
1378
|
+
Jt as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
|
1381
1379
|
q as DEFAULT_MEASUREMENT_TOOLS_LABELS,
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1380
|
+
Ut as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
|
1381
|
+
ft as DrawCircleIcon,
|
1382
|
+
pt as DrawLassoIcon,
|
1383
|
+
mt as DrawPolygonIcon,
|
1384
|
+
ht as DrawSquareIcon,
|
1385
|
+
lo as GeolocationControls,
|
1388
1386
|
E as LASSO_TOOLS_LABELS,
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1387
|
+
eo as LassoToolsInlineUI,
|
1388
|
+
Qt as LassoToolsUI,
|
1389
|
+
co as ListDataUI,
|
1390
|
+
io as MeasurementToolsUI,
|
1391
|
+
to as RulerIcon,
|
1392
|
+
gt as SelectToolIcon,
|
1393
|
+
ro as ZoomControlsUI
|
1396
1394
|
};
|
1397
1395
|
//# sourceMappingURL=components.js.map
|