@carto/ps-react-ui 4.0.0-canary.1 → 4.0.0-canary.2
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 +125 -127
- 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 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";
|
8
6
|
const G = {
|
9
7
|
container: {
|
10
8
|
display: "flex",
|
@@ -192,35 +190,35 @@ const G = {
|
|
192
190
|
}
|
193
191
|
}
|
194
192
|
};
|
195
|
-
function
|
193
|
+
function mt(t) {
|
196
194
|
const e = I(3);
|
197
195
|
let i;
|
198
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];
|
199
197
|
let o;
|
200
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;
|
201
199
|
}
|
202
|
-
function
|
200
|
+
function ht(t) {
|
203
201
|
const e = I(3);
|
204
202
|
let i;
|
205
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];
|
206
204
|
let o;
|
207
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;
|
208
206
|
}
|
209
|
-
function
|
207
|
+
function ft(t) {
|
210
208
|
const e = I(3);
|
211
209
|
let i;
|
212
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];
|
213
211
|
let o;
|
214
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;
|
215
213
|
}
|
216
|
-
function
|
214
|
+
function pt(t) {
|
217
215
|
const e = I(3);
|
218
216
|
let i;
|
219
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];
|
220
218
|
let o;
|
221
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;
|
222
220
|
}
|
223
|
-
function
|
221
|
+
function gt(t) {
|
224
222
|
const e = I(3);
|
225
223
|
let i;
|
226
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];
|
@@ -263,87 +261,87 @@ 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
|
281
|
+
function vt(t) {
|
284
282
|
return t && 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, i) {
|
307
305
|
return t.concat(e).map(function(o) {
|
308
306
|
return de(o, i);
|
309
307
|
});
|
310
308
|
}
|
311
|
-
function
|
309
|
+
function At(t, e) {
|
312
310
|
if (!e.customMerge)
|
313
311
|
return le;
|
314
312
|
var i = e.customMerge(t);
|
315
313
|
return typeof i == "function" ? i : 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, i) {
|
336
334
|
var o = {};
|
337
335
|
return i.isMergeableObject(t) && De(t).forEach(function(n) {
|
338
336
|
o[n] = de(t[n], i);
|
339
337
|
}), De(e).forEach(function(n) {
|
340
|
-
|
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));
|
341
339
|
}), o;
|
342
340
|
}
|
343
341
|
function le(t, e, i) {
|
344
|
-
i = i || {}, i.arrayMerge = i.arrayMerge ||
|
342
|
+
i = i || {}, i.arrayMerge = i.arrayMerge || St, i.isMergeableObject = i.isMergeableObject || yt, i.cloneUnlessOtherwiseSpecified = de;
|
345
343
|
var o = Array.isArray(e), n = Array.isArray(t), a = o === n;
|
346
|
-
return a ? o ? i.arrayMerge(t, e, i) :
|
344
|
+
return a ? o ? i.arrayMerge(t, e, i) : Lt(t, e, i) : de(e, i);
|
347
345
|
}
|
348
346
|
le.all = function(e, i) {
|
349
347
|
if (!Array.isArray(e))
|
@@ -352,9 +350,9 @@ le.all = function(e, i) {
|
|
352
350
|
return le(o, n, i);
|
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
358
|
chipProps: i,
|
@@ -374,11 +372,11 @@ function Pe(t) {
|
|
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
373
|
const M = i == null ? void 0 : i.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
382
|
actionProps: i,
|
@@ -406,9 +404,9 @@ 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: i, labels: n == null ? void 0 : n.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: n == null ? void 0 : n.options, children: /* @__PURE__ */ l(Le, { ...v, labels: n == null ? void 0 : n.options, data: x, modeSelected: y, onChangeMode: A }) }),
|
412
410
|
!!b && /* @__PURE__ */ _(P, { children: [
|
413
411
|
/* @__PURE__ */ l(Y, {}),
|
414
412
|
/* @__PURE__ */ l(Le, { ...v, labels: n == null ? void 0 : n.options, data: [{
|
@@ -417,11 +415,11 @@ function oo({
|
|
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: 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 })
|
422
420
|
] });
|
423
421
|
}
|
424
|
-
function
|
422
|
+
function It(t) {
|
425
423
|
var h;
|
426
424
|
const e = I(12), {
|
427
425
|
actionProps: i,
|
@@ -437,9 +435,9 @@ function Zt(t) {
|
|
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
443
|
MenuProps: i,
|
@@ -463,7 +461,7 @@ function je({
|
|
463
461
|
}) }) })
|
464
462
|
] });
|
465
463
|
}
|
466
|
-
function
|
464
|
+
function Zt(t) {
|
467
465
|
var c;
|
468
466
|
const e = I(5), {
|
469
467
|
data: i,
|
@@ -500,7 +498,7 @@ function Le({
|
|
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
504
|
values: i,
|
@@ -510,7 +508,7 @@ function Bt(t) {
|
|
510
508
|
} = t;
|
511
509
|
if (i.length <= 1)
|
512
510
|
return null;
|
513
|
-
const s = i.some(
|
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;
|
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;
|
@@ -530,7 +528,7 @@ function Bt(t) {
|
|
530
528
|
let f;
|
531
529
|
return e[3] !== c || e[4] !== n || 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
|
n(), g.onClose();
|
536
534
|
}, children: s }),
|
@@ -541,10 +539,10 @@ function Bt(t) {
|
|
541
539
|
] }) })
|
542
540
|
] }), e[3] = c, e[4] = n, 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
548
|
chipProps: i,
|
@@ -572,7 +570,7 @@ function io({
|
|
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,12 +581,12 @@ 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: i, 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
592
|
data: i,
|
@@ -616,7 +614,7 @@ function Oe({
|
|
616
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);
|
617
615
|
});
|
618
616
|
}
|
619
|
-
function
|
617
|
+
function jt(t) {
|
620
618
|
const e = I(7), {
|
621
619
|
hasValues: i,
|
622
620
|
labels: o
|
@@ -634,7 +632,7 @@ 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
638
|
values: i,
|
@@ -644,7 +642,7 @@ function $t(t) {
|
|
644
642
|
} = t;
|
645
643
|
if (i.length <= 1)
|
646
644
|
return null;
|
647
|
-
const s = i.some(
|
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;
|
648
646
|
let u;
|
649
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];
|
650
648
|
let d;
|
@@ -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,21 +737,21 @@ const q = {
|
|
739
737
|
short: "ft"
|
740
738
|
}
|
741
739
|
};
|
742
|
-
function
|
740
|
+
function to(t) {
|
743
741
|
const e = I(3);
|
744
742
|
let i;
|
745
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];
|
746
744
|
let o;
|
747
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;
|
748
746
|
}
|
749
|
-
function
|
747
|
+
function oo(t) {
|
750
748
|
const e = I(3);
|
751
749
|
let i;
|
752
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];
|
753
751
|
let o;
|
754
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;
|
755
753
|
}
|
756
|
-
function
|
754
|
+
function io(t) {
|
757
755
|
const e = I(4);
|
758
756
|
let i, o;
|
759
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]);
|
@@ -907,7 +905,7 @@ const V = {
|
|
907
905
|
}
|
908
906
|
}
|
909
907
|
};
|
910
|
-
function
|
908
|
+
function no(t) {
|
911
909
|
const e = I(46), {
|
912
910
|
enabled: i,
|
913
911
|
actionProps: o,
|
@@ -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;
|
@@ -964,10 +962,10 @@ function co(t) {
|
|
964
962
|
}, e[23] = C, e[24] = $) : $ = e[24];
|
965
963
|
const te = n == null ? void 0 : n.action, oe = O == null ? void 0 : O.icon;
|
966
964
|
let N;
|
967
|
-
e[25] !== o || e[26] !== i || e[27] !== S || e[28] !== te || e[29] !== oe ? (N = /* @__PURE__ */ l(
|
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];
|
968
966
|
const ie = n == null ? void 0 : n.options;
|
969
967
|
let X;
|
970
|
-
e[31] !== F || e[32] !== y || e[33] !== v || e[34] !== h || e[35] !== M || e[36] !== ie || e[37] !== m ? (X = /* @__PURE__ */ l(
|
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];
|
971
969
|
let W;
|
972
970
|
e[39] !== N || e[40] !== X ? (W = /* @__PURE__ */ _(ee, { children: [
|
973
971
|
N,
|
@@ -976,7 +974,7 @@ 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
980
|
actionProps: i,
|
@@ -992,7 +990,7 @@ function Gt(t) {
|
|
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
|
993
|
+
function Gt(t) {
|
996
994
|
var F, $, te, oe, N, ie, X, W;
|
997
995
|
const e = I(68), {
|
998
996
|
modes: i,
|
@@ -1013,12 +1011,12 @@ function Ft(t) {
|
|
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,20 +1039,20 @@ 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] !== 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:
|
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 = {
|
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
|
] });
|
@@ -1072,7 +1070,7 @@ function Ft(t) {
|
|
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(
|
1073
|
+
/* @__PURE__ */ l(Ft, { open: m, labels: r, units: n, unitSelectedValue: v, onClose: w, onSubmit: M })
|
1076
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];
|
1077
1075
|
let j;
|
1078
1076
|
e[53] !== C || e[54] !== Z || e[55] !== L ? (j = /* @__PURE__ */ _("div", { children: [
|
@@ -1088,7 +1086,7 @@ 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
1092
|
units: i,
|
@@ -1100,7 +1098,7 @@ function zt({
|
|
1100
1098
|
const [r, s] = ne("metric"), c = Ce(() => i.filter((p) => p.system === r), [r, i]), 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: n, maxWidth: "xs", PaperProps: {
|
1104
1102
|
component: "form",
|
1105
1103
|
onSubmit: (p) => {
|
1106
1104
|
p.preventDefault();
|
@@ -1108,29 +1106,29 @@ 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: n, children: /* @__PURE__ */ l(
|
1111
|
+
/* @__PURE__ */ l(Q, { onClick: n, children: /* @__PURE__ */ l(nt, {}) })
|
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
1133
|
disabled: i,
|
1136
1134
|
labels: o,
|
@@ -1139,7 +1137,7 @@ function ao(t) {
|
|
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] = ne(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,9 +1168,9 @@ 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 || i;
|
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;
|
@@ -1212,7 +1210,7 @@ const be = {
|
|
1212
1210
|
position: "absolute"
|
1213
1211
|
}
|
1214
1212
|
};
|
1215
|
-
function
|
1213
|
+
function ro(t) {
|
1216
1214
|
const e = I(40), {
|
1217
1215
|
zoom: i,
|
1218
1216
|
disabled: o,
|
@@ -1228,7 +1226,7 @@ function so(t) {
|
|
1228
1226
|
} = t, h = n === void 0 ? "vertical" : n, 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;
|
@@ -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,11 +1319,11 @@ 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
1328
|
data: i,
|
1331
1329
|
itemsToShow: o,
|
@@ -1335,7 +1333,7 @@ function uo(t) {
|
|
1335
1333
|
tooltipProps: s,
|
1336
1334
|
onExpand: c,
|
1337
1335
|
onItemClick: u
|
1338
|
-
} = t, d = o === void 0 ? 0 : o, m = n === void 0 ?
|
1336
|
+
} = t, d = o === void 0 ? 0 : o, m = n === void 0 ? Nt : n, f = a === void 0 ? !0 : a, [h, M] = ne(!1);
|
1339
1337
|
let g, w;
|
1340
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;
|
1341
1339
|
const b = g;
|
@@ -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,7 +1363,7 @@ 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
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];
|
1371
1369
|
let y;
|
@@ -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
|
+
io 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
|
+
no as MeasurementToolsUI,
|
1391
|
+
to as RulerIcon,
|
1392
|
+
gt as SelectToolIcon,
|
1393
|
+
ro as ZoomControlsUI
|
1396
1394
|
};
|
1397
1395
|
//# sourceMappingURL=components.js.map
|