@carto/ps-react-ui 4.1.1 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/components.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { jsx as
|
1
|
+
import { jsx as l, jsxs as O, Fragment as j } from "react/jsx-runtime";
|
2
2
|
import { c as R } from "react/compiler-runtime";
|
3
|
-
import {
|
4
|
-
import { ArrowDropDown as
|
5
|
-
import { useMemo as Le, useState as
|
3
|
+
import { Tooltip as Ye, Chip as Qe, Paper as xe, Divider as ce, Box as W, IconButton as se, Menu as Ue, MenuItem as ye, ListItemIcon as Ve, SvgIcon as Oe, ListItemText as be, ToggleButton as we, Typography as N, ToggleButtonGroup as Ge, Button as Te, alpha as Je, Dialog as et, DialogTitle as tt, DialogContent as ot, FormControl as nt, RadioGroup as it, FormControlLabel as lt, Radio as rt, DialogActions as ct, CircularProgress as st, Grid as ve, Skeleton as _e, Alert as at, ListItem as dt, List as ut, Drawer as ft, Popover as ht, useTheme as mt, useMediaQuery as pt } from "@mui/material";
|
4
|
+
import { ArrowDropDown as We, MoreVertOutlined as gt, Close as ze, MyLocationOutlined as vt, LocationDisabledOutlined as yt, CropFreeOutlined as bt, AddOutlined as wt, RemoveOutlined as xt } from "@mui/icons-material";
|
5
|
+
import { useMemo as Le, useState as oe, useRef as Ie, useEffect as Re, useLayoutEffect as Mt } from "react";
|
6
6
|
const J = {
|
7
7
|
container: {
|
8
8
|
display: "flex",
|
@@ -167,40 +167,40 @@ const J = {
|
|
167
167
|
}
|
168
168
|
}
|
169
169
|
};
|
170
|
-
function
|
170
|
+
function Ct(t) {
|
171
171
|
const e = R(3);
|
172
172
|
let r;
|
173
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
173
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__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] = r) : r = e[0];
|
174
174
|
let o;
|
175
|
-
return e[1] !== t ? (o = /* @__PURE__ */
|
175
|
+
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: r }), e[1] = t, e[2] = o) : o = e[2], o;
|
176
176
|
}
|
177
|
-
function
|
177
|
+
function Tt(t) {
|
178
178
|
const e = R(3);
|
179
179
|
let r;
|
180
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
180
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__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] = r) : r = e[0];
|
181
181
|
let o;
|
182
|
-
return e[1] !== t ? (o = /* @__PURE__ */
|
182
|
+
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: r }), e[1] = t, e[2] = o) : o = e[2], o;
|
183
183
|
}
|
184
|
-
function
|
184
|
+
function St(t) {
|
185
185
|
const e = R(3);
|
186
186
|
let r;
|
187
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
187
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__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] = r) : r = e[0];
|
188
188
|
let o;
|
189
|
-
return e[1] !== t ? (o = /* @__PURE__ */
|
189
|
+
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: r }), e[1] = t, e[2] = o) : o = e[2], o;
|
190
190
|
}
|
191
|
-
function
|
191
|
+
function _t(t) {
|
192
192
|
const e = R(3);
|
193
193
|
let r;
|
194
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
194
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__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] = r) : r = e[0];
|
195
195
|
let o;
|
196
|
-
return e[1] !== t ? (o = /* @__PURE__ */
|
196
|
+
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: r }), e[1] = t, e[2] = o) : o = e[2], o;
|
197
197
|
}
|
198
|
-
function
|
198
|
+
function At(t) {
|
199
199
|
const e = R(3);
|
200
200
|
let r;
|
201
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
201
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__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] = r) : r = e[0];
|
202
202
|
let o;
|
203
|
-
return e[1] !== t ? (o = /* @__PURE__ */
|
203
|
+
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: r }), e[1] = t, e[2] = o) : o = e[2], o;
|
204
204
|
}
|
205
205
|
const z = {
|
206
206
|
action: {
|
@@ -238,30 +238,30 @@ const z = {
|
|
238
238
|
},
|
239
239
|
deleteAll: "Remove all"
|
240
240
|
}
|
241
|
-
},
|
241
|
+
}, yo = {
|
242
242
|
polygon: {
|
243
|
-
icon:
|
243
|
+
icon: Ct
|
244
244
|
},
|
245
245
|
rectangle: {
|
246
|
-
icon:
|
246
|
+
icon: Tt
|
247
247
|
},
|
248
248
|
circle: {
|
249
|
-
icon:
|
249
|
+
icon: St
|
250
250
|
},
|
251
251
|
lasso: {
|
252
|
-
icon:
|
252
|
+
icon: _t
|
253
253
|
},
|
254
254
|
edit: {
|
255
|
-
icon:
|
255
|
+
icon: At
|
256
256
|
}
|
257
257
|
};
|
258
|
-
function
|
258
|
+
function Dt(t) {
|
259
259
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
260
260
|
}
|
261
|
-
var Ae,
|
262
|
-
function
|
263
|
-
if (
|
264
|
-
|
261
|
+
var Ae, Ee;
|
262
|
+
function Ot() {
|
263
|
+
if (Ee) return Ae;
|
264
|
+
Ee = 1;
|
265
265
|
var t = function(m) {
|
266
266
|
return e(m) && !r(m);
|
267
267
|
};
|
@@ -270,21 +270,21 @@ function _t() {
|
|
270
270
|
}
|
271
271
|
function r(d) {
|
272
272
|
var m = Object.prototype.toString.call(d);
|
273
|
-
return m === "[object RegExp]" || m === "[object Date]" ||
|
273
|
+
return m === "[object RegExp]" || m === "[object Date]" || c(d);
|
274
274
|
}
|
275
|
-
var o = typeof Symbol == "function" && Symbol.for,
|
276
|
-
function
|
277
|
-
return d.$$typeof ===
|
275
|
+
var o = typeof Symbol == "function" && Symbol.for, n = o ? Symbol.for("react.element") : 60103;
|
276
|
+
function c(d) {
|
277
|
+
return d.$$typeof === n;
|
278
278
|
}
|
279
279
|
function i(d) {
|
280
280
|
return Array.isArray(d) ? [] : {};
|
281
281
|
}
|
282
|
-
function
|
282
|
+
function s(d, m) {
|
283
283
|
return m.clone !== !1 && m.isMergeableObject(d) ? g(i(d), d, m) : d;
|
284
284
|
}
|
285
285
|
function a(d, m, v) {
|
286
286
|
return d.concat(m).map(function(x) {
|
287
|
-
return
|
287
|
+
return s(x, v);
|
288
288
|
});
|
289
289
|
}
|
290
290
|
function u(d, m) {
|
@@ -293,13 +293,13 @@ function _t() {
|
|
293
293
|
var v = m.customMerge(d);
|
294
294
|
return typeof v == "function" ? v : g;
|
295
295
|
}
|
296
|
-
function
|
296
|
+
function f(d) {
|
297
297
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(d).filter(function(m) {
|
298
298
|
return Object.propertyIsEnumerable.call(d, m);
|
299
299
|
}) : [];
|
300
300
|
}
|
301
|
-
function
|
302
|
-
return Object.keys(d).concat(
|
301
|
+
function h(d) {
|
302
|
+
return Object.keys(d).concat(f(d));
|
303
303
|
}
|
304
304
|
function p(d, m) {
|
305
305
|
try {
|
@@ -313,16 +313,16 @@ function _t() {
|
|
313
313
|
}
|
314
314
|
function b(d, m, v) {
|
315
315
|
var x = {};
|
316
|
-
return v.isMergeableObject(d) &&
|
317
|
-
x[w] =
|
318
|
-
}),
|
319
|
-
y(d, w) || (p(d, w) && v.isMergeableObject(m[w]) ? x[w] = u(w, v)(d[w], m[w], v) : x[w] =
|
316
|
+
return v.isMergeableObject(d) && h(d).forEach(function(w) {
|
317
|
+
x[w] = s(d[w], v);
|
318
|
+
}), h(m).forEach(function(w) {
|
319
|
+
y(d, w) || (p(d, w) && v.isMergeableObject(m[w]) ? x[w] = u(w, v)(d[w], m[w], v) : x[w] = s(m[w], v));
|
320
320
|
}), x;
|
321
321
|
}
|
322
322
|
function g(d, m, v) {
|
323
|
-
v = v || {}, v.arrayMerge = v.arrayMerge || a, v.isMergeableObject = v.isMergeableObject || t, v.cloneUnlessOtherwiseSpecified =
|
323
|
+
v = v || {}, v.arrayMerge = v.arrayMerge || a, v.isMergeableObject = v.isMergeableObject || t, v.cloneUnlessOtherwiseSpecified = s;
|
324
324
|
var x = Array.isArray(m), w = Array.isArray(d), A = x === w;
|
325
|
-
return A ? x ? v.arrayMerge(d, m, v) : b(d, m, v) :
|
325
|
+
return A ? x ? v.arrayMerge(d, m, v) : b(d, m, v) : s(m, v);
|
326
326
|
}
|
327
327
|
g.all = function(m, v) {
|
328
328
|
if (!Array.isArray(m))
|
@@ -334,172 +334,189 @@ function _t() {
|
|
334
334
|
var C = g;
|
335
335
|
return Ae = C, Ae;
|
336
336
|
}
|
337
|
-
var
|
338
|
-
const Se = /* @__PURE__ */
|
337
|
+
var Lt = Ot();
|
338
|
+
const Se = /* @__PURE__ */ Dt(Lt);
|
339
|
+
let Ne = 500;
|
340
|
+
function ae(t) {
|
341
|
+
const e = R(10);
|
342
|
+
let r, o, n, c;
|
343
|
+
e[0] !== t ? ({
|
344
|
+
children: r,
|
345
|
+
title: c,
|
346
|
+
enterNextDelay: n,
|
347
|
+
...o
|
348
|
+
} = t, e[0] = t, e[1] = r, e[2] = o, e[3] = n, e[4] = c) : (r = e[1], o = e[2], n = e[3], c = e[4]);
|
349
|
+
const i = n === void 0 ? Ne : n;
|
350
|
+
let s;
|
351
|
+
return e[5] !== r || e[6] !== i || e[7] !== o || e[8] !== c ? (s = /* @__PURE__ */ l(Ye, { title: c, enterNextDelay: i, ...o, children: r }), e[5] = r, e[6] = i, e[7] = o, e[8] = c, e[9] = s) : s = e[9], s;
|
352
|
+
}
|
353
|
+
function bo(t) {
|
354
|
+
Ne = t;
|
355
|
+
}
|
339
356
|
function Fe(t) {
|
340
357
|
var d;
|
341
358
|
const e = R(18), {
|
342
359
|
chipProps: r,
|
343
360
|
value: o,
|
344
|
-
labels:
|
345
|
-
onChipToggle:
|
361
|
+
labels: n,
|
362
|
+
onChipToggle: c,
|
346
363
|
onDelete: i
|
347
|
-
} = t,
|
348
|
-
let
|
349
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
364
|
+
} = t, s = o.visible ? "active" : "inactive", a = ((d = n == null ? void 0 : n.tooltip) == null ? void 0 : d[s]) ?? z.chip.tooltip[s], u = r == null ? void 0 : r.TooltipProps;
|
365
|
+
let f;
|
366
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (f = {
|
350
367
|
...J.chip.chip
|
351
|
-
}, e[0] =
|
352
|
-
const
|
368
|
+
}, e[0] = f) : f = e[0];
|
369
|
+
const h = o.visible ? "secondary" : "default";
|
353
370
|
let p;
|
354
371
|
e[1] !== i || e[2] !== o.id ? (p = () => i(o.id), e[1] = i, e[2] = o.id, e[3] = p) : p = e[3];
|
355
372
|
let y;
|
356
|
-
e[4] !==
|
373
|
+
e[4] !== c || e[5] !== o.id || e[6] !== o.visible ? (y = () => c(o.id, !o.visible), e[4] = c, e[5] = o.id, e[6] = o.visible, e[7] = y) : y = e[7];
|
357
374
|
const b = r == null ? void 0 : r.ChipsProps;
|
358
375
|
let g;
|
359
|
-
e[8] !==
|
376
|
+
e[8] !== h || e[9] !== p || e[10] !== y || e[11] !== b || e[12] !== o.label ? (g = /* @__PURE__ */ l(Qe, { sx: f, color: h, size: "small", onDelete: p, label: o.label, onClick: y, ...b }), e[8] = h, e[9] = p, e[10] = y, e[11] = b, e[12] = o.label, e[13] = g) : g = e[13];
|
360
377
|
let C;
|
361
|
-
return e[14] !== a || e[15] !== u || e[16] !== g ? (C = /* @__PURE__ */
|
378
|
+
return e[14] !== a || e[15] !== u || e[16] !== g ? (C = /* @__PURE__ */ l(ae, { title: a, placement: "bottom", ...u, children: g }), e[14] = a, e[15] = u, e[16] = g, e[17] = C) : C = e[17], C;
|
362
379
|
}
|
363
|
-
function
|
380
|
+
function wo({
|
364
381
|
enabled: t,
|
365
382
|
values: e = [],
|
366
383
|
actionProps: r,
|
367
384
|
chipProps: o,
|
368
|
-
labels:
|
369
|
-
modes:
|
385
|
+
labels: n,
|
386
|
+
modes: c,
|
370
387
|
modesMapping: i,
|
371
|
-
modeSelected:
|
388
|
+
modeSelected: s,
|
372
389
|
PaperProps: {
|
373
390
|
sx: a,
|
374
391
|
...u
|
375
392
|
} = {},
|
376
|
-
onActionToggle:
|
377
|
-
onChipToggle:
|
393
|
+
onActionToggle: f,
|
394
|
+
onChipToggle: h,
|
378
395
|
onDelete: p,
|
379
396
|
onChangeMode: y,
|
380
397
|
onAllChipToggle: b,
|
381
398
|
onAllDelete: g
|
382
399
|
}) {
|
383
|
-
const C = Le(() => Se(
|
400
|
+
const C = Le(() => Se(c, i), [c, i]), {
|
384
401
|
edit: d,
|
385
402
|
...m
|
386
|
-
} = C, v = (S) => (
|
403
|
+
} = C, v = (S) => (f(!1), p(S)), x = (S) => f(S), w = (S) => y == null ? void 0 : y(S), D = (s ?? "") in c ? s : Object.keys(C)[0], M = C[D], T = Object.values(m);
|
387
404
|
return /* @__PURE__ */ O(xe, { sx: {
|
388
405
|
...J.container,
|
389
406
|
...a
|
390
407
|
}, ...u, children: [
|
391
|
-
/* @__PURE__ */
|
392
|
-
/* @__PURE__ */
|
393
|
-
/* @__PURE__ */
|
408
|
+
/* @__PURE__ */ l(It, { actionProps: r, labels: n == null ? void 0 : n.action, enabled: t, onActionToggle: x, children: (M == null ? void 0 : M.icon) && /* @__PURE__ */ l(M.icon, {}) }),
|
409
|
+
/* @__PURE__ */ l(He, { children: (S) => /* @__PURE__ */ O(j, { children: [
|
410
|
+
/* @__PURE__ */ l(Rt, { data: T, labels: n == null ? void 0 : n.options, children: /* @__PURE__ */ l($e, { ...S, labels: n == null ? void 0 : n.options, data: T, modeSelected: D, onChangeMode: w }) }),
|
394
411
|
!!d && /* @__PURE__ */ O(j, { children: [
|
395
|
-
/* @__PURE__ */
|
396
|
-
/* @__PURE__ */
|
412
|
+
/* @__PURE__ */ l(ce, {}),
|
413
|
+
/* @__PURE__ */ l($e, { ...S, labels: n == null ? void 0 : n.options, data: [{
|
397
414
|
...d,
|
398
415
|
disabled: !e.length
|
399
416
|
}], modeSelected: D, onChangeMode: w })
|
400
417
|
] })
|
401
418
|
] }) }),
|
402
|
-
!!e.length && /* @__PURE__ */
|
403
|
-
/* @__PURE__ */
|
419
|
+
!!e.length && /* @__PURE__ */ l(W, { sx: J.chip.container, children: e.map((S) => /* @__PURE__ */ l(Fe, { value: S, labels: n == null ? void 0 : n.chip, chipProps: o, onDelete: v, onChipToggle: h }, S.id)) }),
|
420
|
+
/* @__PURE__ */ l(kt, { values: e, labels: n == null ? void 0 : n.actions, onAllChipToggle: b, onAllDelete: g })
|
404
421
|
] });
|
405
422
|
}
|
406
|
-
function
|
423
|
+
function It(t) {
|
407
424
|
var y;
|
408
425
|
const e = R(12), {
|
409
426
|
actionProps: r,
|
410
427
|
labels: o,
|
411
|
-
enabled:
|
412
|
-
children:
|
428
|
+
enabled: n,
|
429
|
+
children: c,
|
413
430
|
onActionToggle: i
|
414
|
-
} = t,
|
415
|
-
let h;
|
416
|
-
e[0] !== l || e[1] !== i ? (h = () => i(!l), e[0] = l, e[1] = i, e[2] = h) : h = e[2];
|
431
|
+
} = t, s = n ? "active" : "inactive", a = ((y = o == null ? void 0 : o.tooltip) == null ? void 0 : y[s]) ?? z.action.tooltip[s], u = r == null ? void 0 : r.TooltipProps;
|
417
432
|
let f;
|
418
|
-
e[
|
433
|
+
e[0] !== n || e[1] !== i ? (f = () => i(!n), e[0] = n, e[1] = i, e[2] = f) : f = e[2];
|
434
|
+
let h;
|
435
|
+
e[3] !== a || e[4] !== c || e[5] !== n || e[6] !== f ? (h = /* @__PURE__ */ l(we, { value: "toggle", sx: J.actions.icon, onClick: f, "aria-label": a, selected: n, children: c }), e[3] = a, e[4] = c, e[5] = n, e[6] = f, e[7] = h) : h = e[7];
|
419
436
|
let p;
|
420
|
-
return e[8] !== a || e[9] !== u || e[10] !==
|
437
|
+
return e[8] !== a || e[9] !== u || e[10] !== h ? (p = /* @__PURE__ */ l(ae, { title: a, placement: "right", ...u, children: h }), e[8] = a, e[9] = u, e[10] = h, e[11] = p) : p = e[11], p;
|
421
438
|
}
|
422
|
-
function
|
439
|
+
function He({
|
423
440
|
TriggerProps: {
|
424
|
-
Icon: t = /* @__PURE__ */
|
441
|
+
Icon: t = /* @__PURE__ */ l(We, {}),
|
425
442
|
sx: e
|
426
443
|
} = {},
|
427
444
|
MenuProps: r,
|
428
445
|
children: o
|
429
446
|
}) {
|
430
|
-
const [
|
431
|
-
|
447
|
+
const [n, c] = oe(null), i = !!n, s = (u) => {
|
448
|
+
c(u.currentTarget);
|
432
449
|
}, a = () => {
|
433
|
-
|
450
|
+
c(null);
|
434
451
|
};
|
435
452
|
return /* @__PURE__ */ O(j, { children: [
|
436
|
-
/* @__PURE__ */
|
453
|
+
/* @__PURE__ */ l(se, { sx: {
|
437
454
|
...J.options.icon,
|
438
455
|
...e
|
439
|
-
}, onClick:
|
440
|
-
/* @__PURE__ */
|
456
|
+
}, onClick: s, children: t }),
|
457
|
+
/* @__PURE__ */ l(Ue, { id: "lasso-menu", anchorEl: n, open: i, onClose: a, MenuListProps: {
|
441
458
|
"aria-labelledby": "lasso-button",
|
442
459
|
sx: J.options.menu
|
443
|
-
}, ...r, children: /* @__PURE__ */
|
460
|
+
}, ...r, children: /* @__PURE__ */ l("div", { children: o({
|
444
461
|
onClose: a
|
445
462
|
}) }) })
|
446
463
|
] });
|
447
464
|
}
|
448
|
-
function
|
465
|
+
function Rt(t) {
|
449
466
|
var a;
|
450
467
|
const e = R(5), {
|
451
468
|
data: r,
|
452
469
|
labels: o,
|
453
|
-
children:
|
470
|
+
children: n
|
454
471
|
} = t;
|
455
472
|
if (r.length <= 1)
|
456
473
|
return null;
|
457
|
-
const
|
474
|
+
const c = ((a = o == null ? void 0 : o.mode) == null ? void 0 : a.title) ?? z.options.mode.title;
|
458
475
|
let i;
|
459
|
-
e[0] !==
|
460
|
-
let
|
461
|
-
return e[2] !==
|
476
|
+
e[0] !== c ? (i = /* @__PURE__ */ l(N, { variant: "subtitle2", color: "text.secondary", sx: J.options.title, children: c }), e[0] = c, e[1] = i) : i = e[1];
|
477
|
+
let s;
|
478
|
+
return e[2] !== n || e[3] !== i ? (s = /* @__PURE__ */ O(j, { children: [
|
462
479
|
i,
|
463
|
-
|
464
|
-
] }), e[2] =
|
480
|
+
n
|
481
|
+
] }), e[2] = n, e[3] = i, e[4] = s) : s = e[4], s;
|
465
482
|
}
|
466
|
-
function
|
483
|
+
function $e({
|
467
484
|
data: t,
|
468
485
|
modeSelected: e,
|
469
486
|
labels: r,
|
470
487
|
onChangeMode: o,
|
471
|
-
onClose:
|
488
|
+
onClose: n
|
472
489
|
}) {
|
473
|
-
const
|
474
|
-
i.preventDefault(), o == null || o(
|
490
|
+
const c = (i, s) => {
|
491
|
+
i.preventDefault(), o == null || o(s), n();
|
475
492
|
};
|
476
493
|
return t.map((i) => {
|
477
494
|
var u;
|
478
495
|
const a = (((u = r == null ? void 0 : r.mode) == null ? void 0 : u.options) ?? z.options.mode.options)[i.value];
|
479
|
-
return /* @__PURE__ */ O(ye, { disabled: !!i.disabled, onClick: (
|
480
|
-
/* @__PURE__ */
|
481
|
-
/* @__PURE__ */
|
496
|
+
return /* @__PURE__ */ O(ye, { disabled: !!i.disabled, onClick: (f) => c(f, i.value), selected: i.value === e, children: [
|
497
|
+
/* @__PURE__ */ l(Ve, { sx: J.options.icons, children: /* @__PURE__ */ l(Oe, { children: /* @__PURE__ */ l(i.icon, {}) }) }),
|
498
|
+
/* @__PURE__ */ l(be, { children: a })
|
482
499
|
] }, i.value);
|
483
500
|
});
|
484
501
|
}
|
485
|
-
function
|
502
|
+
function kt(t) {
|
486
503
|
var y, b;
|
487
504
|
const e = R(8), {
|
488
505
|
values: r,
|
489
506
|
labels: o,
|
490
|
-
onAllChipToggle:
|
491
|
-
onAllDelete:
|
507
|
+
onAllChipToggle: n,
|
508
|
+
onAllDelete: c
|
492
509
|
} = t;
|
493
510
|
if (r.length <= 1)
|
494
511
|
return null;
|
495
|
-
const
|
512
|
+
const s = r.some(Bt) ? ((y = o == null ? void 0 : o.toggleAll) == null ? void 0 : y.active) ?? z.actions.toggleAll.active : ((b = o == null ? void 0 : o.toggleAll) == null ? void 0 : b.inactive) ?? z.actions.toggleAll.inactive, a = (o == null ? void 0 : o.deleteAll) ?? z.actions.deleteAll;
|
496
513
|
let u;
|
497
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */
|
498
|
-
let
|
499
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
500
|
-
Icon: /* @__PURE__ */
|
514
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ l(ce, { orientation: "vertical", flexItem: !0 }), e[0] = u) : u = e[0];
|
515
|
+
let f, h;
|
516
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (f = {
|
517
|
+
Icon: /* @__PURE__ */ l(gt, {}),
|
501
518
|
sx: J.options.more
|
502
|
-
},
|
519
|
+
}, h = {
|
503
520
|
anchorOrigin: {
|
504
521
|
vertical: "bottom",
|
505
522
|
horizontal: "right"
|
@@ -508,165 +525,165 @@ function Lt(t) {
|
|
508
525
|
vertical: "top",
|
509
526
|
horizontal: "right"
|
510
527
|
}
|
511
|
-
}, e[1] =
|
528
|
+
}, e[1] = f, e[2] = h) : (f = e[1], h = e[2]);
|
512
529
|
let p;
|
513
|
-
return e[3] !== a || e[4] !==
|
530
|
+
return e[3] !== a || e[4] !== n || e[5] !== c || e[6] !== s ? (p = /* @__PURE__ */ O(j, { children: [
|
514
531
|
u,
|
515
|
-
/* @__PURE__ */
|
516
|
-
/* @__PURE__ */
|
517
|
-
|
518
|
-
}, children:
|
519
|
-
/* @__PURE__ */
|
520
|
-
/* @__PURE__ */
|
521
|
-
|
522
|
-
}, children: /* @__PURE__ */
|
532
|
+
/* @__PURE__ */ l(He, { TriggerProps: f, MenuProps: h, children: (g) => /* @__PURE__ */ O(j, { children: [
|
533
|
+
/* @__PURE__ */ l(ye, { color: "inherit", onClick: () => {
|
534
|
+
n(), g.onClose();
|
535
|
+
}, children: s }),
|
536
|
+
/* @__PURE__ */ l(ce, {}),
|
537
|
+
/* @__PURE__ */ l(ye, { color: "error", onClick: () => {
|
538
|
+
c(), g.onClose();
|
539
|
+
}, children: /* @__PURE__ */ l(N, { variant: "body2", color: "error", children: a }) })
|
523
540
|
] }) })
|
524
|
-
] }), e[3] = a, e[4] =
|
541
|
+
] }), e[3] = a, e[4] = n, e[5] = c, e[6] = s, e[7] = p) : p = e[7], p;
|
525
542
|
}
|
526
|
-
function
|
543
|
+
function Bt(t) {
|
527
544
|
return t.visible;
|
528
545
|
}
|
529
|
-
function
|
546
|
+
function xo({
|
530
547
|
enabled: t,
|
531
548
|
values: e = [],
|
532
549
|
chipProps: r,
|
533
550
|
labels: o,
|
534
|
-
modes:
|
535
|
-
modesMapping:
|
551
|
+
modes: n,
|
552
|
+
modesMapping: c,
|
536
553
|
modeSelected: i,
|
537
554
|
BoxProps: {
|
538
|
-
sx:
|
555
|
+
sx: s,
|
539
556
|
...a
|
540
557
|
} = {},
|
541
558
|
onChipToggle: u,
|
542
|
-
onDelete:
|
543
|
-
onChangeMode:
|
559
|
+
onDelete: f,
|
560
|
+
onChangeMode: h,
|
544
561
|
onAllChipToggle: p,
|
545
562
|
onAllDelete: y
|
546
563
|
}) {
|
547
|
-
const b = Le(() => Se(
|
564
|
+
const b = Le(() => Se(n, c), [n, c]), {
|
548
565
|
edit: g,
|
549
566
|
...C
|
550
|
-
} = b, d = (D) =>
|
551
|
-
D.preventDefault(),
|
552
|
-
}, x = (i ?? "") in
|
553
|
-
return /* @__PURE__ */ O(
|
567
|
+
} = b, d = (D) => f(D), m = (D, M) => {
|
568
|
+
D.preventDefault(), h == null || h(M);
|
569
|
+
}, x = (i ?? "") in n ? i : Object.keys(b)[0], w = t ? b[x] : null, A = Object.values(C);
|
570
|
+
return /* @__PURE__ */ O(W, { sx: {
|
554
571
|
...J.container,
|
555
|
-
...
|
572
|
+
...s
|
556
573
|
}, ...a, className: "inline", children: [
|
557
|
-
/* @__PURE__ */
|
558
|
-
/* @__PURE__ */
|
574
|
+
/* @__PURE__ */ l(Et, { data: A, labels: o == null ? void 0 : o.options, children: /* @__PURE__ */ O(Ge, { value: w == null ? void 0 : w.value, exclusive: !0, className: "inline", sx: J.options.menu, onChange: m, children: [
|
575
|
+
/* @__PURE__ */ l(Pe, { labels: o == null ? void 0 : o.options, data: A }),
|
559
576
|
!!g && /* @__PURE__ */ O(j, { children: [
|
560
|
-
/* @__PURE__ */
|
561
|
-
/* @__PURE__ */
|
577
|
+
/* @__PURE__ */ l(ce, { orientation: "vertical" }),
|
578
|
+
/* @__PURE__ */ l(Pe, { labels: o == null ? void 0 : o.options, data: [{
|
562
579
|
...g,
|
563
580
|
disabled: !e.length
|
564
581
|
}] })
|
565
582
|
] })
|
566
583
|
] }) }),
|
567
|
-
/* @__PURE__ */
|
568
|
-
/* @__PURE__ */
|
569
|
-
!!e.length && /* @__PURE__ */
|
570
|
-
/* @__PURE__ */
|
584
|
+
/* @__PURE__ */ l(ce, { flexItem: !0 }),
|
585
|
+
/* @__PURE__ */ l($t, { hasValues: !!e.length, labels: o == null ? void 0 : o.noData }),
|
586
|
+
!!e.length && /* @__PURE__ */ l(W, { sx: J.chip.container, className: "inline", children: e.map((D) => /* @__PURE__ */ l(Fe, { value: D, labels: o == null ? void 0 : o.chip, chipProps: r, onDelete: d, onChipToggle: u }, D.id)) }),
|
587
|
+
/* @__PURE__ */ l(Pt, { values: e, labels: o == null ? void 0 : o.actions, onAllChipToggle: p, onAllDelete: y })
|
571
588
|
] });
|
572
589
|
}
|
573
|
-
function
|
590
|
+
function Et(t) {
|
574
591
|
var a;
|
575
592
|
const e = R(5), {
|
576
593
|
data: r,
|
577
594
|
labels: o,
|
578
|
-
children:
|
595
|
+
children: n
|
579
596
|
} = t;
|
580
597
|
if (r.length <= 1)
|
581
598
|
return null;
|
582
|
-
const
|
599
|
+
const c = ((a = o == null ? void 0 : o.mode) == null ? void 0 : a.title) ?? z.options.mode.title;
|
583
600
|
let i;
|
584
|
-
e[0] !==
|
585
|
-
let
|
586
|
-
return e[2] !==
|
601
|
+
e[0] !== c ? (i = /* @__PURE__ */ l(N, { variant: "subtitle2", color: "text.secondary", sx: J.options.title, className: "inline", children: c }), e[0] = c, e[1] = i) : i = e[1];
|
602
|
+
let s;
|
603
|
+
return e[2] !== n || e[3] !== i ? (s = /* @__PURE__ */ O(j, { children: [
|
587
604
|
i,
|
588
|
-
|
589
|
-
] }), e[2] =
|
605
|
+
n
|
606
|
+
] }), e[2] = n, e[3] = i, e[4] = s) : s = e[4], s;
|
590
607
|
}
|
591
608
|
function Pe({
|
592
609
|
data: t,
|
593
610
|
labels: e
|
594
611
|
}) {
|
595
612
|
return t.map((r) => {
|
596
|
-
var
|
597
|
-
const
|
598
|
-
return /* @__PURE__ */
|
613
|
+
var c;
|
614
|
+
const n = (((c = e == null ? void 0 : e.mode) == null ? void 0 : c.options) ?? z.options.mode.options)[r.value];
|
615
|
+
return /* @__PURE__ */ l(ae, { title: n, placement: "bottom", children: /* @__PURE__ */ l(we, { disabled: !!r.disabled, value: r.value, "aria-label": r.value, children: /* @__PURE__ */ l(Oe, { children: /* @__PURE__ */ l(r.icon, {}) }) }) }, r.value);
|
599
616
|
});
|
600
617
|
}
|
601
|
-
function
|
618
|
+
function $t(t) {
|
602
619
|
const e = R(7), {
|
603
620
|
hasValues: r,
|
604
621
|
labels: o
|
605
622
|
} = t;
|
606
623
|
if (r)
|
607
624
|
return null;
|
608
|
-
const
|
625
|
+
const n = (o == null ? void 0 : o.title) ?? z.noData.title, c = (o == null ? void 0 : o.description) ?? z.noData.description;
|
609
626
|
let i;
|
610
|
-
e[0] !==
|
611
|
-
let
|
612
|
-
e[2] !==
|
627
|
+
e[0] !== n ? (i = /* @__PURE__ */ l(N, { variant: "body1", color: "textSecondary", children: n }), e[0] = n, e[1] = i) : i = e[1];
|
628
|
+
let s;
|
629
|
+
e[2] !== c ? (s = /* @__PURE__ */ l(N, { variant: "body2", color: "textSecondary", children: c }), e[2] = c, e[3] = s) : s = e[3];
|
613
630
|
let a;
|
614
|
-
return e[4] !== i || e[5] !==
|
631
|
+
return e[4] !== i || e[5] !== s ? (a = /* @__PURE__ */ O(j, { children: [
|
615
632
|
i,
|
616
|
-
|
617
|
-
] }), e[4] = i, e[5] =
|
633
|
+
s
|
634
|
+
] }), e[4] = i, e[5] = s, e[6] = a) : a = e[6], a;
|
618
635
|
}
|
619
|
-
function
|
636
|
+
function Pt(t) {
|
620
637
|
var b, g;
|
621
638
|
const e = R(13), {
|
622
639
|
values: r,
|
623
640
|
labels: o,
|
624
|
-
onAllChipToggle:
|
625
|
-
onAllDelete:
|
641
|
+
onAllChipToggle: n,
|
642
|
+
onAllDelete: c
|
626
643
|
} = t;
|
627
644
|
if (r.length <= 1)
|
628
645
|
return null;
|
629
|
-
const
|
646
|
+
const s = r.some(jt) ? ((b = o == null ? void 0 : o.toggleAll) == null ? void 0 : b.active) ?? z.actions.toggleAll.active : ((g = o == null ? void 0 : o.toggleAll) == null ? void 0 : g.inactive) ?? z.actions.toggleAll.inactive, a = (o == null ? void 0 : o.deleteAll) ?? z.actions.deleteAll;
|
630
647
|
let u;
|
631
|
-
e[0] !==
|
632
|
-
let h;
|
633
|
-
e[2] !== u || e[3] !== c ? (h = /* @__PURE__ */ n(Te, { color: "inherit", onClick: u, children: c }), e[2] = u, e[3] = c, e[4] = h) : h = e[4];
|
648
|
+
e[0] !== n ? (u = () => n(), e[0] = n, e[1] = u) : u = e[1];
|
634
649
|
let f;
|
635
|
-
e[
|
650
|
+
e[2] !== u || e[3] !== s ? (f = /* @__PURE__ */ l(Te, { color: "inherit", onClick: u, children: s }), e[2] = u, e[3] = s, e[4] = f) : f = e[4];
|
651
|
+
let h;
|
652
|
+
e[5] !== c ? (h = () => c(), e[5] = c, e[6] = h) : h = e[6];
|
636
653
|
let p;
|
637
|
-
e[7] !== a || e[8] !==
|
654
|
+
e[7] !== a || e[8] !== h ? (p = /* @__PURE__ */ l(Te, { color: "error", onClick: h, children: a }), e[7] = a, e[8] = h, e[9] = p) : p = e[9];
|
638
655
|
let y;
|
639
|
-
return e[10] !==
|
640
|
-
|
656
|
+
return e[10] !== f || e[11] !== p ? (y = /* @__PURE__ */ O(W, { children: [
|
657
|
+
f,
|
641
658
|
p
|
642
|
-
] }), e[10] =
|
659
|
+
] }), e[10] = f, e[11] = p, e[12] = y) : y = e[12], y;
|
643
660
|
}
|
644
|
-
function
|
661
|
+
function jt(t) {
|
645
662
|
return t.visible;
|
646
663
|
}
|
647
|
-
function
|
664
|
+
function Zt(t) {
|
648
665
|
const e = R(3);
|
649
666
|
let r;
|
650
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
667
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__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] = r) : r = e[0];
|
651
668
|
let o;
|
652
|
-
return e[1] !== t ? (o = /* @__PURE__ */
|
669
|
+
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: r }), e[1] = t, e[2] = o) : o = e[2], o;
|
653
670
|
}
|
654
|
-
function
|
671
|
+
function Ut(t) {
|
655
672
|
const e = R(3);
|
656
673
|
let r;
|
657
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
674
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__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] = r) : r = e[0];
|
658
675
|
let o;
|
659
|
-
return e[1] !== t ? (o = /* @__PURE__ */
|
676
|
+
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: r }), e[1] = t, e[2] = o) : o = e[2], o;
|
660
677
|
}
|
661
|
-
function
|
678
|
+
function Vt(t) {
|
662
679
|
const e = R(4);
|
663
680
|
let r, o;
|
664
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
665
|
-
let
|
666
|
-
return e[2] !== t ? (
|
681
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__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] = r, e[1] = o) : (r = e[0], o = e[1]);
|
682
|
+
let n;
|
683
|
+
return e[2] !== t ? (n = /* @__PURE__ */ O("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
|
667
684
|
r,
|
668
685
|
o
|
669
|
-
] }), e[2] = t, e[3] =
|
686
|
+
] }), e[2] = t, e[3] = n) : n = e[3], n;
|
670
687
|
}
|
671
688
|
const re = {
|
672
689
|
action: {
|
@@ -720,7 +737,7 @@ const re = {
|
|
720
737
|
}
|
721
738
|
}
|
722
739
|
}
|
723
|
-
},
|
740
|
+
}, Gt = {
|
724
741
|
"m-km": {
|
725
742
|
short: "m-km"
|
726
743
|
},
|
@@ -748,15 +765,15 @@ const re = {
|
|
748
765
|
feet: {
|
749
766
|
short: "ft"
|
750
767
|
}
|
751
|
-
},
|
768
|
+
}, Wt = {
|
752
769
|
distance: {
|
753
|
-
icon: /* @__PURE__ */
|
770
|
+
icon: /* @__PURE__ */ l(Zt, {})
|
754
771
|
},
|
755
772
|
buffer: {
|
756
|
-
icon: /* @__PURE__ */
|
773
|
+
icon: /* @__PURE__ */ l(Ut, {})
|
757
774
|
},
|
758
775
|
area: {
|
759
|
-
icon: /* @__PURE__ */
|
776
|
+
icon: /* @__PURE__ */ l(Vt, {})
|
760
777
|
}
|
761
778
|
}, Q = {
|
762
779
|
container: {
|
@@ -823,7 +840,7 @@ const re = {
|
|
823
840
|
}) => t.primary.main,
|
824
841
|
backgroundColor: ({
|
825
842
|
palette: t
|
826
|
-
}) =>
|
843
|
+
}) => Je(t.primary.main, 0.08)
|
827
844
|
},
|
828
845
|
modal: {
|
829
846
|
toggle: {
|
@@ -890,22 +907,22 @@ const re = {
|
|
890
907
|
}
|
891
908
|
}
|
892
909
|
};
|
893
|
-
function
|
910
|
+
function Mo(t) {
|
894
911
|
const e = R(46), {
|
895
912
|
enabled: r,
|
896
913
|
actionProps: o,
|
897
|
-
labels:
|
898
|
-
modes:
|
914
|
+
labels: n,
|
915
|
+
modes: c,
|
899
916
|
modesMapping: i,
|
900
|
-
unitsMapping:
|
917
|
+
unitsMapping: s,
|
901
918
|
modeSelected: a,
|
902
919
|
PaperProps: u,
|
903
|
-
units:
|
904
|
-
unitSelected:
|
920
|
+
units: f,
|
921
|
+
unitSelected: h,
|
905
922
|
onActionToggle: p,
|
906
923
|
onChangeMode: y,
|
907
924
|
onChangeUnit: b
|
908
|
-
} = t, g =
|
925
|
+
} = t, g = n === void 0 ? re : n, C = i === void 0 ? Wt : i, d = s === void 0 ? Gt : s;
|
909
926
|
let m;
|
910
927
|
e[0] !== u ? (m = u === void 0 ? {} : u, e[0] = u, e[1] = m) : m = e[1];
|
911
928
|
let v, x;
|
@@ -914,108 +931,108 @@ function vo(t) {
|
|
914
931
|
...v
|
915
932
|
} = m, e[2] = m, e[3] = v, e[4] = x) : (v = e[3], x = e[4]);
|
916
933
|
let w;
|
917
|
-
e[5] !== p ? (w = (
|
934
|
+
e[5] !== p ? (w = (G) => p(!!G), e[5] = p, e[6] = w) : w = e[6];
|
918
935
|
const A = w;
|
919
936
|
let D, M;
|
920
|
-
e[7] !==
|
937
|
+
e[7] !== c || e[8] !== C ? (M = Se(c, C), e[7] = c, e[8] = C, e[9] = M) : M = e[9], D = M;
|
921
938
|
const T = D, S = (a ?? "") in T;
|
922
939
|
let I;
|
923
940
|
e[10] !== T || e[11] !== S || e[12] !== a ? (I = S ? a : Object.keys(T)[0], e[10] = T, e[11] = S, e[12] = a, e[13] = I) : I = e[13];
|
924
941
|
const L = I, _ = T[L];
|
925
942
|
let k;
|
926
|
-
const
|
927
|
-
let
|
928
|
-
e[14] !== L || e[15] !==
|
929
|
-
[L]:
|
930
|
-
}, e[14] = L, e[15] =
|
931
|
-
const
|
932
|
-
let
|
933
|
-
if (e[18] !==
|
934
|
-
let
|
935
|
-
e[21] !== d ? (
|
943
|
+
const E = f[L];
|
944
|
+
let B;
|
945
|
+
e[14] !== L || e[15] !== E || e[16] !== f ? (B = Object.keys(f).length >= 1 ? f : {
|
946
|
+
[L]: E.slice(0, 1)
|
947
|
+
}, e[14] = L, e[15] = E, e[16] = f, e[17] = B) : B = e[17];
|
948
|
+
const V = B[L];
|
949
|
+
let U;
|
950
|
+
if (e[18] !== V || e[19] !== d) {
|
951
|
+
let G;
|
952
|
+
e[21] !== d ? (G = (ee) => ({
|
936
953
|
...ee,
|
937
954
|
...d[ee.value]
|
938
|
-
}), e[21] = d, e[22] =
|
955
|
+
}), e[21] = d, e[22] = G) : G = e[22], U = V.map(G), e[18] = V, e[19] = d, e[20] = U;
|
939
956
|
} else
|
940
|
-
|
941
|
-
k =
|
942
|
-
const
|
943
|
-
let
|
944
|
-
e[23] !== x ? (
|
957
|
+
U = e[20];
|
958
|
+
k = U;
|
959
|
+
const ne = k;
|
960
|
+
let F;
|
961
|
+
e[23] !== x ? (F = {
|
945
962
|
...Q.container,
|
946
963
|
...x
|
947
|
-
}, e[23] = x, e[24] =
|
964
|
+
}, e[23] = x, e[24] = F) : F = e[24];
|
948
965
|
const H = g == null ? void 0 : g.action, X = _ == null ? void 0 : _.icon;
|
949
966
|
let q;
|
950
|
-
e[25] !== o || e[26] !== r || e[27] !== A || e[28] !== H || e[29] !== X ? (q = /* @__PURE__ */
|
951
|
-
const
|
952
|
-
let P;
|
953
|
-
e[31] !== oe || e[32] !== T || e[33] !== L || e[34] !== y || e[35] !== b || e[36] !== ne || e[37] !== f ? (P = /* @__PURE__ */ n(Gt, { labels: ne, modes: T, modeSelected: L, units: oe, unitSelected: f, onChangeMode: y, onChangeUnit: b }), e[31] = oe, e[32] = T, e[33] = L, e[34] = y, e[35] = b, e[36] = ne, e[37] = f, e[38] = P) : P = e[38];
|
967
|
+
e[25] !== o || e[26] !== r || e[27] !== A || e[28] !== H || e[29] !== X ? (q = /* @__PURE__ */ l(zt, { actionProps: o, labels: H, enabled: r, onActionToggle: A, children: X }), e[25] = o, e[26] = r, e[27] = A, e[28] = H, e[29] = X, e[30] = q) : q = e[30];
|
968
|
+
const ie = g == null ? void 0 : g.options;
|
954
969
|
let $;
|
955
|
-
e[
|
970
|
+
e[31] !== ne || e[32] !== T || e[33] !== L || e[34] !== y || e[35] !== b || e[36] !== ie || e[37] !== h ? ($ = /* @__PURE__ */ l(Nt, { labels: ie, modes: T, modeSelected: L, units: ne, unitSelected: h, onChangeMode: y, onChangeUnit: b }), e[31] = ne, e[32] = T, e[33] = L, e[34] = y, e[35] = b, e[36] = ie, e[37] = h, e[38] = $) : $ = e[38];
|
971
|
+
let P;
|
972
|
+
e[39] !== q || e[40] !== $ ? (P = /* @__PURE__ */ O(W, { children: [
|
956
973
|
q,
|
957
|
-
|
958
|
-
] }), e[39] = q, e[40] =
|
959
|
-
let
|
960
|
-
return e[42] !== v || e[43] !==
|
974
|
+
$
|
975
|
+
] }), e[39] = q, e[40] = $, e[41] = P) : P = e[41];
|
976
|
+
let le;
|
977
|
+
return e[42] !== v || e[43] !== F || e[44] !== P ? (le = /* @__PURE__ */ l(xe, { sx: F, ...v, children: P }), e[42] = v, e[43] = F, e[44] = P, e[45] = le) : le = e[45], le;
|
961
978
|
}
|
962
|
-
function
|
979
|
+
function zt(t) {
|
963
980
|
var y;
|
964
981
|
const e = R(12), {
|
965
982
|
actionProps: r,
|
966
983
|
labels: o,
|
967
|
-
enabled:
|
968
|
-
children:
|
984
|
+
enabled: n,
|
985
|
+
children: c,
|
969
986
|
onActionToggle: i
|
970
|
-
} = t,
|
971
|
-
let h;
|
972
|
-
e[0] !== l || e[1] !== i ? (h = () => i(!l), e[0] = l, e[1] = i, e[2] = h) : h = e[2];
|
987
|
+
} = t, s = n ? "active" : "inactive", a = ((y = o == null ? void 0 : o.tooltip) == null ? void 0 : y[s]) ?? re.action.tooltip[s], u = r == null ? void 0 : r.TooltipProps;
|
973
988
|
let f;
|
974
|
-
e[
|
989
|
+
e[0] !== n || e[1] !== i ? (f = () => i(!n), e[0] = n, e[1] = i, e[2] = f) : f = e[2];
|
990
|
+
let h;
|
991
|
+
e[3] !== a || e[4] !== c || e[5] !== n || e[6] !== f ? (h = /* @__PURE__ */ l(we, { value: "toggle", sx: Q.actions.icon, onClick: f, "aria-label": a, selected: n, children: c }), e[3] = a, e[4] = c, e[5] = n, e[6] = f, e[7] = h) : h = e[7];
|
975
992
|
let p;
|
976
|
-
return e[8] !== a || e[9] !== u || e[10] !==
|
993
|
+
return e[8] !== a || e[9] !== u || e[10] !== h ? (p = /* @__PURE__ */ l(ae, { title: a, placement: "right", ...u, children: h }), e[8] = a, e[9] = u, e[10] = h, e[11] = p) : p = e[11], p;
|
977
994
|
}
|
978
|
-
function
|
979
|
-
var
|
995
|
+
function Nt(t) {
|
996
|
+
var V, U, ne, F, H, X, q, ie;
|
980
997
|
const e = R(68), {
|
981
998
|
modes: r,
|
982
999
|
modeSelected: o,
|
983
|
-
units:
|
984
|
-
unitSelected:
|
1000
|
+
units: n,
|
1001
|
+
unitSelected: c,
|
985
1002
|
labels: i,
|
986
|
-
onChangeMode:
|
1003
|
+
onChangeMode: s,
|
987
1004
|
onChangeUnit: a
|
988
|
-
} = t, [u,
|
1005
|
+
} = t, [u, f] = oe(null), [h, p] = oe(!1);
|
989
1006
|
let y, b, g, C, d, m, v, x, w, A, D, M, T, S, I, L;
|
990
|
-
if (e[0] !== u || e[1] !== ((
|
1007
|
+
if (e[0] !== u || e[1] !== ((V = i == null ? void 0 : i.mode) == null ? void 0 : V.options) || e[2] !== ((U = i == null ? void 0 : i.mode) == null ? void 0 : U.title) || e[3] !== ((ne = i == null ? void 0 : i.units) == null ? void 0 : ne.title) || e[4] !== o || e[5] !== r || e[6] !== s || e[7] !== a || e[8] !== c || e[9] !== n) {
|
991
1008
|
T = Symbol.for("react.early_return_sentinel");
|
992
1009
|
e: {
|
993
|
-
const
|
994
|
-
let
|
995
|
-
if (e[26] !==
|
1010
|
+
const $ = Object.values(r);
|
1011
|
+
let P;
|
1012
|
+
if (e[26] !== n ? (P = Object.values(n), e[26] = n, e[27] = P) : P = e[27], L = P, !($.length > 1 || L.length > 1)) {
|
996
1013
|
T = null;
|
997
1014
|
break e;
|
998
1015
|
}
|
999
|
-
const
|
1016
|
+
const G = !!u;
|
1000
1017
|
let ee;
|
1001
1018
|
e[28] === Symbol.for("react.memo_cache_sentinel") ? (ee = (Y) => {
|
1002
|
-
|
1019
|
+
f(Y.currentTarget);
|
1003
1020
|
}, e[28] = ee) : ee = e[28];
|
1004
1021
|
const ge = ee;
|
1005
1022
|
let te;
|
1006
1023
|
e[29] === Symbol.for("react.memo_cache_sentinel") ? (te = () => {
|
1007
|
-
|
1024
|
+
f(null);
|
1008
1025
|
}, e[29] = te) : te = e[29];
|
1009
1026
|
const de = te;
|
1010
1027
|
let K;
|
1011
|
-
e[30] !==
|
1012
|
-
Y.preventDefault(),
|
1013
|
-
}, e[30] =
|
1014
|
-
const
|
1015
|
-
let
|
1016
|
-
e[32] === Symbol.for("react.memo_cache_sentinel") ? (
|
1028
|
+
e[30] !== s ? (K = (Y, ke) => {
|
1029
|
+
Y.preventDefault(), s(ke.value), de();
|
1030
|
+
}, e[30] = s, e[31] = K) : K = e[31];
|
1031
|
+
const fe = K;
|
1032
|
+
let he;
|
1033
|
+
e[32] === Symbol.for("react.memo_cache_sentinel") ? (he = () => {
|
1017
1034
|
p(!0);
|
1018
|
-
}, e[32] =
|
1035
|
+
}, e[32] = he) : he = e[32], g = he;
|
1019
1036
|
let me;
|
1020
1037
|
e[33] === Symbol.for("react.memo_cache_sentinel") ? (me = () => {
|
1021
1038
|
p(!1);
|
@@ -1024,107 +1041,107 @@ function Gt(t) {
|
|
1024
1041
|
e[34] !== a ? (Me = (Y) => {
|
1025
1042
|
C(), a(Y);
|
1026
1043
|
}, e[34] = a, e[35] = Me) : Me = e[35], b = Me;
|
1027
|
-
const
|
1028
|
-
I = ((H = i == null ? void 0 : i.units) == null ? void 0 : H.title) ?? re.options.units.title, d =
|
1044
|
+
const Xe = ((F = i == null ? void 0 : i.mode) == null ? void 0 : F.title) ?? re.options.mode.title;
|
1045
|
+
I = ((H = i == null ? void 0 : i.units) == null ? void 0 : H.title) ?? re.options.units.title, d = $.length > 1 && L.length > 1;
|
1029
1046
|
let Ce;
|
1030
|
-
e[36] !==
|
1047
|
+
e[36] !== c || e[37] !== n ? (Ce = n.find((Y) => Y.value === c) ?? n[0], e[36] = c, e[37] = n, e[38] = Ce) : Ce = e[38], S = Ce, e[39] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ l(se, { sx: Q.options.icon, onClick: ge, children: /* @__PURE__ */ l(We, {}) }), e[39] = M) : M = e[39], y = Ue, v = "measurement-menu", x = u, w = G, A = de, e[40] === Symbol.for("react.memo_cache_sentinel") ? (D = {
|
1031
1048
|
"aria-labelledby": "basic-button",
|
1032
1049
|
sx: Q.options.menu
|
1033
|
-
}, e[40] = D) : D = e[40], m =
|
1034
|
-
/* @__PURE__ */
|
1035
|
-
|
1036
|
-
var
|
1037
|
-
const
|
1038
|
-
return /* @__PURE__ */ O(ye, { onClick: (
|
1039
|
-
/* @__PURE__ */
|
1040
|
-
/* @__PURE__ */
|
1050
|
+
}, e[40] = D) : D = e[40], m = $.length > 1 && /* @__PURE__ */ O(j, { children: [
|
1051
|
+
/* @__PURE__ */ l(N, { variant: "subtitle2", color: "text.secondary", sx: Q.options.title, children: Xe }),
|
1052
|
+
$.map((Y) => {
|
1053
|
+
var Be;
|
1054
|
+
const qe = (((Be = i == null ? void 0 : i.mode) == null ? void 0 : Be.options) ?? re.options.mode.options)[Y.value];
|
1055
|
+
return /* @__PURE__ */ O(ye, { onClick: (Ke) => fe(Ke, Y), selected: Y.value === o, children: [
|
1056
|
+
/* @__PURE__ */ l(Ve, { sx: Q.options.icons, children: /* @__PURE__ */ l(Oe, { children: Y.icon }) }),
|
1057
|
+
/* @__PURE__ */ l(be, { children: qe })
|
1041
1058
|
] }, Y.value);
|
1042
1059
|
})
|
1043
1060
|
] });
|
1044
1061
|
}
|
1045
|
-
e[0] = u, e[1] = (X = i == null ? void 0 : i.mode) == null ? void 0 : X.options, e[2] = (q = i == null ? void 0 : i.mode) == null ? void 0 : q.title, e[3] = (
|
1062
|
+
e[0] = u, e[1] = (X = i == null ? void 0 : i.mode) == null ? void 0 : X.options, e[2] = (q = i == null ? void 0 : i.mode) == null ? void 0 : q.title, e[3] = (ie = i == null ? void 0 : i.units) == null ? void 0 : ie.title, e[4] = o, e[5] = r, e[6] = s, e[7] = a, e[8] = c, e[9] = n, e[10] = y, e[11] = b, e[12] = g, e[13] = C, e[14] = d, e[15] = m, e[16] = v, e[17] = x, e[18] = w, e[19] = A, e[20] = D, e[21] = M, e[22] = T, e[23] = S, e[24] = I, e[25] = L;
|
1046
1063
|
} else
|
1047
1064
|
y = e[10], b = e[11], g = e[12], C = e[13], d = e[14], m = e[15], v = e[16], x = e[17], w = e[18], A = e[19], D = e[20], M = e[21], T = e[22], S = e[23], I = e[24], L = e[25];
|
1048
1065
|
if (T !== Symbol.for("react.early_return_sentinel"))
|
1049
1066
|
return T;
|
1050
1067
|
let _;
|
1051
|
-
e[41] !== d ? (_ = d && /* @__PURE__ */
|
1068
|
+
e[41] !== d ? (_ = d && /* @__PURE__ */ l(ce, {}), e[41] = d, e[42] = _) : _ = e[42];
|
1052
1069
|
let k;
|
1053
|
-
e[43] !== b || e[44] !== g || e[45] !== C || e[46] !== i || e[47] !==
|
1070
|
+
e[43] !== b || e[44] !== g || e[45] !== C || e[46] !== i || e[47] !== h || e[48] !== S || e[49] !== I || e[50] !== n || e[51] !== L.length ? (k = L.length > 1 && /* @__PURE__ */ O(j, { children: [
|
1054
1071
|
/* @__PURE__ */ O(ye, { onClick: g, children: [
|
1055
|
-
/* @__PURE__ */
|
1056
|
-
/* @__PURE__ */
|
1072
|
+
/* @__PURE__ */ l(be, { children: I }),
|
1073
|
+
/* @__PURE__ */ l(N, { variant: "caption", fontWeight: 500, sx: Q.options.tag, children: S.short })
|
1057
1074
|
] }),
|
1058
|
-
/* @__PURE__ */
|
1059
|
-
] }), e[43] = b, e[44] = g, e[45] = C, e[46] = i, e[47] =
|
1060
|
-
let
|
1061
|
-
e[53] !== m || e[54] !== k || e[55] !== _ ? (
|
1075
|
+
/* @__PURE__ */ l(Ft, { open: h, labels: i, units: n, unitSelectedValue: S, onClose: C, onSubmit: b })
|
1076
|
+
] }), e[43] = b, e[44] = g, e[45] = C, e[46] = i, e[47] = h, e[48] = S, e[49] = I, e[50] = n, e[51] = L.length, e[52] = k) : k = e[52];
|
1077
|
+
let E;
|
1078
|
+
e[53] !== m || e[54] !== k || e[55] !== _ ? (E = /* @__PURE__ */ O("div", { children: [
|
1062
1079
|
m,
|
1063
1080
|
_,
|
1064
1081
|
k
|
1065
|
-
] }), e[53] = m, e[54] = k, e[55] = _, e[56] =
|
1066
|
-
let
|
1067
|
-
e[57] !== y || e[58] !==
|
1068
|
-
let
|
1069
|
-
return e[65] !==
|
1082
|
+
] }), e[53] = m, e[54] = k, e[55] = _, e[56] = E) : E = e[56];
|
1083
|
+
let B;
|
1084
|
+
e[57] !== y || e[58] !== E || e[59] !== v || e[60] !== x || e[61] !== w || e[62] !== A || e[63] !== D ? (B = /* @__PURE__ */ l(y, { id: v, anchorEl: x, open: w, onClose: A, MenuListProps: D, children: E }), e[57] = y, e[58] = E, e[59] = v, e[60] = x, e[61] = w, e[62] = A, e[63] = D, e[64] = B) : B = e[64];
|
1085
|
+
let Z;
|
1086
|
+
return e[65] !== B || e[66] !== M ? (Z = /* @__PURE__ */ O(j, { children: [
|
1070
1087
|
M,
|
1071
|
-
|
1072
|
-
] }), e[65] =
|
1088
|
+
B
|
1089
|
+
] }), e[65] = B, e[66] = M, e[67] = Z) : Z = e[67], Z;
|
1073
1090
|
}
|
1074
|
-
function
|
1091
|
+
function Ft({
|
1075
1092
|
open: t,
|
1076
1093
|
labels: e,
|
1077
1094
|
units: r,
|
1078
1095
|
unitSelectedValue: o,
|
1079
|
-
onClose:
|
1080
|
-
onSubmit:
|
1096
|
+
onClose: n,
|
1097
|
+
onSubmit: c
|
1081
1098
|
}) {
|
1082
1099
|
var C, d, m, v, x, w, A, D;
|
1083
|
-
const [i,
|
1084
|
-
|
1085
|
-
},
|
1086
|
-
return /* @__PURE__ */ O(
|
1100
|
+
const [i, s] = oe("metric"), a = Le(() => r.filter((M) => M.system === i), [i, r]), u = (M, T) => {
|
1101
|
+
s(T);
|
1102
|
+
}, f = ((d = (C = e == null ? void 0 : e.units) == null ? void 0 : C.modal) == null ? void 0 : d.options) ?? re.options.units.modal.options, h = f[i].options, p = ((v = (m = e == null ? void 0 : e.units) == null ? void 0 : m.modal) == null ? void 0 : v.title) ?? re.options.units.modal.title, y = ((w = (x = e == null ? void 0 : e.units) == null ? void 0 : x.modal) == null ? void 0 : w.subtitle) ?? re.options.units.modal.subtitle, b = ((D = (A = e == null ? void 0 : e.units) == null ? void 0 : A.modal) == null ? void 0 : D.apply) ?? re.options.units.modal.apply, g = o.system === i ? o : a[0];
|
1103
|
+
return /* @__PURE__ */ O(et, { open: t, component: W, onClose: n, maxWidth: "xs", PaperProps: {
|
1087
1104
|
component: "form",
|
1088
1105
|
onSubmit: (M) => {
|
1089
1106
|
M.preventDefault();
|
1090
1107
|
const T = new FormData(M.currentTarget);
|
1091
|
-
|
1108
|
+
c(T.get("unit-value"));
|
1092
1109
|
}
|
1093
1110
|
}, children: [
|
1094
|
-
/* @__PURE__ */ O(
|
1111
|
+
/* @__PURE__ */ O(tt, { sx: Q.options.modal.title, children: [
|
1095
1112
|
p,
|
1096
|
-
/* @__PURE__ */
|
1113
|
+
/* @__PURE__ */ l(se, { onClick: n, children: /* @__PURE__ */ l(ze, {}) })
|
1097
1114
|
] }),
|
1098
|
-
/* @__PURE__ */ O(
|
1099
|
-
/* @__PURE__ */
|
1100
|
-
/* @__PURE__ */ O(
|
1101
|
-
/* @__PURE__ */
|
1102
|
-
/* @__PURE__ */
|
1115
|
+
/* @__PURE__ */ O(ot, { sx: Q.options.modal.content, children: [
|
1116
|
+
/* @__PURE__ */ l(N, { sx: Q.options.modal.subtitle, children: y }),
|
1117
|
+
/* @__PURE__ */ O(Ge, { color: "primary", value: i, exclusive: !0, fullWidth: !0, onChange: u, "aria-label": "system", sx: Q.options.modal.toggle, children: [
|
1118
|
+
/* @__PURE__ */ l(we, { value: "metric", children: f.metric.title }),
|
1119
|
+
/* @__PURE__ */ l(we, { value: "imperial", children: f.imperial.title })
|
1103
1120
|
] }),
|
1104
|
-
/* @__PURE__ */
|
1105
|
-
const T =
|
1106
|
-
return /* @__PURE__ */
|
1121
|
+
/* @__PURE__ */ l(nt, { children: /* @__PURE__ */ l(it, { "aria-labelledby": "unit-value", defaultValue: g == null ? void 0 : g.value, name: "unit-value", sx: Q.options.modal.optionsGroup, children: a.map((M) => {
|
1122
|
+
const T = h[M.value];
|
1123
|
+
return /* @__PURE__ */ l(lt, { value: M.value, control: /* @__PURE__ */ l(rt, {}), label: T }, M.value);
|
1107
1124
|
}) }) }, g == null ? void 0 : g.value)
|
1108
1125
|
] }),
|
1109
|
-
/* @__PURE__ */
|
1126
|
+
/* @__PURE__ */ l(ct, { sx: Q.options.modal.actions, children: /* @__PURE__ */ l(Te, { variant: "contained", type: "submit", children: b }) })
|
1110
1127
|
] });
|
1111
1128
|
}
|
1112
|
-
const
|
1129
|
+
const Ht = {
|
1113
1130
|
enabled: "Show your current location",
|
1114
1131
|
disabled: "Location unavailable"
|
1115
|
-
},
|
1116
|
-
function
|
1132
|
+
}, Xt = "geolocation";
|
1133
|
+
function Co(t) {
|
1117
1134
|
const e = R(25), {
|
1118
1135
|
disabled: r,
|
1119
1136
|
labels: o,
|
1120
|
-
PaperProps:
|
1121
|
-
TooltipProps:
|
1137
|
+
PaperProps: n,
|
1138
|
+
TooltipProps: c,
|
1122
1139
|
watch: i,
|
1123
|
-
onChange:
|
1140
|
+
onChange: s,
|
1124
1141
|
onError: a
|
1125
|
-
} = t, u =
|
1142
|
+
} = t, u = Ie(null), f = "geolocation" in navigator, [h, p] = oe(f);
|
1126
1143
|
let y, b;
|
1127
|
-
e[0] !== a ? (y = () => (
|
1144
|
+
e[0] !== a ? (y = () => (f && navigator.permissions.query({
|
1128
1145
|
name: "geolocation"
|
1129
1146
|
}).then((_) => {
|
1130
1147
|
p(_.state === "granted"), _.onchange = () => {
|
@@ -1134,11 +1151,11 @@ function yo(t) {
|
|
1134
1151
|
p(!1), a == null || a(_);
|
1135
1152
|
}), () => {
|
1136
1153
|
u.current && navigator.geolocation.clearWatch(u.current);
|
1137
|
-
}), b = [
|
1154
|
+
}), b = [f, a], e[0] = a, e[1] = y, e[2] = b) : (y = e[1], b = e[2]), Re(y, b);
|
1138
1155
|
let g;
|
1139
|
-
e[3] !==
|
1140
|
-
|
1141
|
-
}, e[3] =
|
1156
|
+
e[3] !== s ? (g = (_) => {
|
1157
|
+
s(_.coords);
|
1158
|
+
}, e[3] = s, e[4] = g) : g = e[4];
|
1142
1159
|
const C = g;
|
1143
1160
|
let d;
|
1144
1161
|
e[5] !== a ? (d = (_) => {
|
@@ -1153,15 +1170,15 @@ function yo(t) {
|
|
1153
1170
|
}
|
1154
1171
|
navigator.geolocation.getCurrentPosition(C, m);
|
1155
1172
|
}, e[7] = m, e[8] = C, e[9] = i, e[10] = v) : v = e[10];
|
1156
|
-
const x = v, A = ((o == null ? void 0 : o.tooltip) ??
|
1173
|
+
const x = v, A = ((o == null ? void 0 : o.tooltip) ?? Ht)[h ? "enabled" : "disabled"], D = (o == null ? void 0 : o.ariaLabel) ?? Xt, M = !f || r;
|
1157
1174
|
let T;
|
1158
|
-
e[11] !==
|
1175
|
+
e[11] !== h ? (T = h ? /* @__PURE__ */ l(vt, {}) : /* @__PURE__ */ l(yt, {}), e[11] = h, e[12] = T) : T = e[12];
|
1159
1176
|
let S;
|
1160
|
-
e[13] !== x || e[14] !== D || e[15] !== M || e[16] !== T ? (S = /* @__PURE__ */
|
1177
|
+
e[13] !== x || e[14] !== D || e[15] !== M || e[16] !== T ? (S = /* @__PURE__ */ l(se, { onClick: x, "aria-label": D, disabled: M, children: T }), e[13] = x, e[14] = D, e[15] = M, e[16] = T, e[17] = S) : S = e[17];
|
1161
1178
|
let I;
|
1162
|
-
e[18] !==
|
1179
|
+
e[18] !== c || e[19] !== S || e[20] !== A ? (I = /* @__PURE__ */ l(ae, { arrow: !0, placement: "right", title: A, ...c, children: S }), e[18] = c, e[19] = S, e[20] = A, e[21] = I) : I = e[21];
|
1163
1180
|
let L;
|
1164
|
-
return e[22] !==
|
1181
|
+
return e[22] !== n || e[23] !== I ? (L = /* @__PURE__ */ l(xe, { ...n, children: I }), e[22] = n, e[23] = I, e[24] = L) : L = e[24], L;
|
1165
1182
|
}
|
1166
1183
|
const De = {
|
1167
1184
|
zoom: {
|
@@ -1195,36 +1212,36 @@ const De = {
|
|
1195
1212
|
position: "absolute"
|
1196
1213
|
}
|
1197
1214
|
};
|
1198
|
-
function
|
1215
|
+
function To(t) {
|
1199
1216
|
const e = R(40), {
|
1200
1217
|
zoom: r,
|
1201
1218
|
disabled: o,
|
1202
|
-
direction:
|
1203
|
-
isLoading:
|
1219
|
+
direction: n,
|
1220
|
+
isLoading: c,
|
1204
1221
|
maxZoom: i,
|
1205
|
-
minZoom:
|
1222
|
+
minZoom: s,
|
1206
1223
|
PaperProps: a,
|
1207
1224
|
ResetViewProps: u,
|
1208
|
-
showZoom:
|
1209
|
-
onChange:
|
1225
|
+
showZoom: f,
|
1226
|
+
onChange: h,
|
1210
1227
|
onReset: p
|
1211
|
-
} = t, y =
|
1228
|
+
} = t, y = n === void 0 ? "vertical" : n, b = i === void 0 ? 24 : i, g = s === void 0 ? 0 : s;
|
1212
1229
|
let C;
|
1213
1230
|
e[0] !== u ? (C = u === void 0 ? {
|
1214
|
-
Icon:
|
1231
|
+
Icon: bt
|
1215
1232
|
} : u, e[0] = u, e[1] = C) : C = e[1];
|
1216
|
-
const d = C, m =
|
1233
|
+
const d = C, m = f === void 0 ? !0 : f;
|
1217
1234
|
let v;
|
1218
|
-
e[2] !== b || e[3] !==
|
1219
|
-
const
|
1220
|
-
|
1221
|
-
}, e[2] = b, e[3] =
|
1235
|
+
e[2] !== b || e[3] !== h || e[4] !== r ? (v = () => {
|
1236
|
+
const U = Math.min(b, r + 1);
|
1237
|
+
h(U);
|
1238
|
+
}, e[2] = b, e[3] = h, e[4] = r, e[5] = v) : v = e[5];
|
1222
1239
|
const x = v;
|
1223
1240
|
let w;
|
1224
|
-
e[6] !== g || e[7] !==
|
1225
|
-
const
|
1226
|
-
|
1227
|
-
}, e[6] = g, e[7] =
|
1241
|
+
e[6] !== g || e[7] !== h || e[8] !== r ? (w = () => {
|
1242
|
+
const U = Math.max(g, r - 1);
|
1243
|
+
h(U);
|
1244
|
+
}, e[6] = g, e[7] = h, e[8] = r, e[9] = w) : w = e[9];
|
1228
1245
|
const A = w, D = Math.floor(r), M = y === "vertical" ? "horizontal" : "vertical", T = y === "vertical" ? "column" : "row";
|
1229
1246
|
let S;
|
1230
1247
|
e[10] !== T ? (S = {
|
@@ -1233,139 +1250,139 @@ function bo(t) {
|
|
1233
1250
|
}, e[10] = T, e[11] = S) : S = e[11];
|
1234
1251
|
let I;
|
1235
1252
|
e[12] !== d || e[13] !== o || e[14] !== M || e[15] !== p ? (I = p && /* @__PURE__ */ O(j, { children: [
|
1236
|
-
/* @__PURE__ */
|
1237
|
-
/* @__PURE__ */
|
1253
|
+
/* @__PURE__ */ l(se, { onClick: p, "aria-label": "Reset action", disabled: o, children: /* @__PURE__ */ l(d.Icon, {}) }),
|
1254
|
+
/* @__PURE__ */ l(ce, { orientation: M, flexItem: !0 })
|
1238
1255
|
] }), e[12] = d, e[13] = o, e[14] = M, e[15] = p, e[16] = I) : I = e[16];
|
1239
1256
|
let L;
|
1240
|
-
e[17] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */
|
1257
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ l(wt, {}), e[17] = L) : L = e[17];
|
1241
1258
|
let _;
|
1242
|
-
e[18] !== o || e[19] !== x ? (_ = /* @__PURE__ */
|
1259
|
+
e[18] !== o || e[19] !== x ? (_ = /* @__PURE__ */ l(se, { onClick: x, "aria-label": "Increase zoom", disabled: o, children: L }), e[18] = o, e[19] = x, e[20] = _) : _ = e[20];
|
1243
1260
|
let k;
|
1244
|
-
e[21] !== M ? (k = /* @__PURE__ */
|
1245
|
-
let B;
|
1246
|
-
e[23] !== D || e[24] !== M || e[25] !== s || e[26] !== m ? (B = m && /* @__PURE__ */ O(j, { children: [
|
1247
|
-
/* @__PURE__ */ O(G, { sx: De.zoom, children: [
|
1248
|
-
/* @__PURE__ */ n(F, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: D }),
|
1249
|
-
s && /* @__PURE__ */ n(rt, { sx: De.circularProgress, variant: "indeterminate", size: 24 })
|
1250
|
-
] }),
|
1251
|
-
/* @__PURE__ */ n(ce, { orientation: M, flexItem: !0 })
|
1252
|
-
] }), e[23] = D, e[24] = M, e[25] = s, e[26] = m, e[27] = B) : B = e[27];
|
1261
|
+
e[21] !== M ? (k = /* @__PURE__ */ l(ce, { orientation: M, flexItem: !0 }), e[21] = M, e[22] = k) : k = e[22];
|
1253
1262
|
let E;
|
1254
|
-
e[
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1263
|
+
e[23] !== D || e[24] !== M || e[25] !== c || e[26] !== m ? (E = m && /* @__PURE__ */ O(j, { children: [
|
1264
|
+
/* @__PURE__ */ O(W, { sx: De.zoom, children: [
|
1265
|
+
/* @__PURE__ */ l(N, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: D }),
|
1266
|
+
c && /* @__PURE__ */ l(st, { sx: De.circularProgress, variant: "indeterminate", size: 24 })
|
1267
|
+
] }),
|
1268
|
+
/* @__PURE__ */ l(ce, { orientation: M, flexItem: !0 })
|
1269
|
+
] }), e[23] = D, e[24] = M, e[25] = c, e[26] = m, e[27] = E) : E = e[27];
|
1270
|
+
let B;
|
1271
|
+
e[28] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ l(xt, {}), e[28] = B) : B = e[28];
|
1272
|
+
let Z;
|
1273
|
+
e[29] !== A || e[30] !== o ? (Z = /* @__PURE__ */ l(se, { onClick: A, "aria-label": "Decrease zoom", disabled: o, children: B }), e[29] = A, e[30] = o, e[31] = Z) : Z = e[31];
|
1274
|
+
let V;
|
1275
|
+
return e[32] !== a || e[33] !== S || e[34] !== I || e[35] !== _ || e[36] !== k || e[37] !== E || e[38] !== Z ? (V = /* @__PURE__ */ O(xe, { sx: S, ...a, children: [
|
1259
1276
|
I,
|
1260
1277
|
_,
|
1261
1278
|
k,
|
1262
|
-
|
1263
|
-
|
1264
|
-
] }), e[32] = a, e[33] = S, e[34] = I, e[35] = _, e[36] = k, e[37] =
|
1279
|
+
E,
|
1280
|
+
Z
|
1281
|
+
] }), e[32] = a, e[33] = S, e[34] = I, e[35] = _, e[36] = k, e[37] = E, e[38] = Z, e[39] = V) : V = e[39], V;
|
1265
1282
|
}
|
1266
|
-
function
|
1283
|
+
function qt(t) {
|
1267
1284
|
const e = R(4), {
|
1268
1285
|
length: r
|
1269
1286
|
} = t, o = r === void 0 ? 5 : r;
|
1270
|
-
let
|
1271
|
-
e[0] !== o ? (
|
1272
|
-
let
|
1273
|
-
return e[2] !==
|
1287
|
+
let n;
|
1288
|
+
e[0] !== o ? (n = new Array(o).fill(null).map(Kt), e[0] = o, e[1] = n) : n = e[1];
|
1289
|
+
let c;
|
1290
|
+
return e[2] !== n ? (c = /* @__PURE__ */ l(W, { "aria-label": "List Data skeleton", children: n }), e[2] = n, e[3] = c) : c = e[3], c;
|
1274
1291
|
}
|
1275
|
-
function
|
1292
|
+
function Kt(t, e) {
|
1276
1293
|
return /* @__PURE__ */ O(ve, { container: !0, spacing: 1, children: [
|
1277
1294
|
/* @__PURE__ */ O(ve, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
|
1278
|
-
/* @__PURE__ */
|
1279
|
-
/* @__PURE__ */
|
1295
|
+
/* @__PURE__ */ l(_e, { width: eo(e) ? 72 : 48, height: 20 }),
|
1296
|
+
/* @__PURE__ */ l(_e, { width: 48, height: 8 })
|
1280
1297
|
] }),
|
1281
|
-
/* @__PURE__ */
|
1282
|
-
height:
|
1283
|
-
marginTop:
|
1284
|
-
marginBottom:
|
1298
|
+
/* @__PURE__ */ l(_e, { sx: {
|
1299
|
+
height: Jt,
|
1300
|
+
marginTop: Qt,
|
1301
|
+
marginBottom: Yt,
|
1285
1302
|
width: "100%"
|
1286
1303
|
} })
|
1287
1304
|
] }, e);
|
1288
1305
|
}
|
1289
|
-
function
|
1306
|
+
function Yt(t) {
|
1290
1307
|
const {
|
1291
1308
|
spacing: e
|
1292
1309
|
} = t;
|
1293
1310
|
return e(1.75);
|
1294
1311
|
}
|
1295
|
-
function
|
1312
|
+
function Qt(t) {
|
1296
1313
|
const {
|
1297
1314
|
spacing: e
|
1298
1315
|
} = t;
|
1299
1316
|
return e(1.25);
|
1300
1317
|
}
|
1301
|
-
function
|
1318
|
+
function Jt(t) {
|
1302
1319
|
const {
|
1303
1320
|
spacing: e
|
1304
1321
|
} = t;
|
1305
1322
|
return e(0.5);
|
1306
1323
|
}
|
1307
|
-
function
|
1324
|
+
function eo(t) {
|
1308
1325
|
return t % 2 === 1;
|
1309
1326
|
}
|
1310
|
-
function
|
1327
|
+
function to(t) {
|
1311
1328
|
const e = R(13), {
|
1312
1329
|
title: r,
|
1313
1330
|
body: o,
|
1314
|
-
severity:
|
1315
|
-
} = t,
|
1316
|
-
if (
|
1317
|
-
let h;
|
1318
|
-
e[0] !== i ? (h = /* @__PURE__ */ n($e, { children: i }), e[0] = i, e[1] = h) : h = e[1];
|
1331
|
+
severity: n
|
1332
|
+
} = t, c = r === void 0 ? "No data available" : r, i = o === void 0 ? "There are no results for the combination of filters applied to your data. Try tweaking your filters, or zoom and pan the map to adjust the Map View." : o;
|
1333
|
+
if (n) {
|
1319
1334
|
let f;
|
1320
|
-
|
1335
|
+
e[0] !== i ? (f = /* @__PURE__ */ l(je, { children: i }), e[0] = i, e[1] = f) : f = e[1];
|
1336
|
+
let h;
|
1337
|
+
return e[2] !== n || e[3] !== f || e[4] !== c ? (h = /* @__PURE__ */ l(at, { title: c, severity: n, children: f }), e[2] = n, e[3] = f, e[4] = c, e[5] = h) : h = e[5], h;
|
1321
1338
|
}
|
1322
|
-
let
|
1323
|
-
e[6] !==
|
1339
|
+
let s;
|
1340
|
+
e[6] !== c ? (s = c && /* @__PURE__ */ l(N, { variant: "body2", children: c }), e[6] = c, e[7] = s) : s = e[7];
|
1324
1341
|
let a;
|
1325
|
-
e[8] !== i ? (a = /* @__PURE__ */
|
1342
|
+
e[8] !== i ? (a = /* @__PURE__ */ l(je, { color: "textSecondary", children: i }), e[8] = i, e[9] = a) : a = e[9];
|
1326
1343
|
let u;
|
1327
|
-
return e[10] !==
|
1328
|
-
|
1344
|
+
return e[10] !== s || e[11] !== a ? (u = /* @__PURE__ */ O(W, { children: [
|
1345
|
+
s,
|
1329
1346
|
a
|
1330
|
-
] }), e[10] =
|
1347
|
+
] }), e[10] = s, e[11] = a, e[12] = u) : u = e[12], u;
|
1331
1348
|
}
|
1332
|
-
function
|
1349
|
+
function je(t) {
|
1333
1350
|
const e = R(5), {
|
1334
1351
|
color: r,
|
1335
1352
|
children: o
|
1336
1353
|
} = t;
|
1337
1354
|
if (o) {
|
1338
|
-
const
|
1355
|
+
const c = r ?? "inherit";
|
1339
1356
|
let i;
|
1340
1357
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = {
|
1341
1358
|
fontWeight: "normal"
|
1342
1359
|
}, e[0] = i) : i = e[0];
|
1343
|
-
let
|
1344
|
-
return e[1] !== o || e[2] !==
|
1360
|
+
let s;
|
1361
|
+
return e[1] !== o || e[2] !== c ? (s = /* @__PURE__ */ l(W, { mt: 0.5, children: /* @__PURE__ */ l(N, { component: "div", variant: "caption", color: c, style: i, children: o }) }), e[1] = o, e[2] = c, e[3] = s) : s = e[3], s;
|
1345
1362
|
}
|
1346
|
-
let
|
1347
|
-
return e[4] === Symbol.for("react.memo_cache_sentinel") ? (
|
1363
|
+
let n;
|
1364
|
+
return e[4] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l(W, { mt: -1 }), e[4] = n) : n = e[4], n;
|
1348
1365
|
}
|
1349
|
-
function
|
1350
|
-
const e = R(4), [r, o] =
|
1351
|
-
let i,
|
1352
|
-
return e[0] !==
|
1353
|
-
t && !
|
1354
|
-
},
|
1366
|
+
function oo(t) {
|
1367
|
+
const e = R(4), [r, o] = oe(!1), [n, c] = oe(!1);
|
1368
|
+
let i, s;
|
1369
|
+
return e[0] !== n || e[1] !== t ? (i = () => {
|
1370
|
+
t && !n && (o(!0), c(!0)), t || o(!1);
|
1371
|
+
}, s = [t, n], e[0] = n, e[1] = t, e[2] = i, e[3] = s) : (i = e[2], s = e[3]), Re(i, s), r;
|
1355
1372
|
}
|
1356
|
-
const
|
1373
|
+
const Ze = {
|
1357
1374
|
overflow: "hidden",
|
1358
1375
|
textOverflow: "ellipsis",
|
1359
1376
|
whiteSpace: "nowrap"
|
1360
1377
|
}, pe = {
|
1361
1378
|
label: {
|
1362
1379
|
"& .MuiListItemText-primary": {
|
1363
|
-
...
|
1380
|
+
...Ze
|
1364
1381
|
}
|
1365
1382
|
},
|
1366
1383
|
value: {
|
1367
1384
|
"& .MuiListItemText-primary": {
|
1368
|
-
...
|
1385
|
+
...Ze,
|
1369
1386
|
textAlign: "right"
|
1370
1387
|
}
|
1371
1388
|
},
|
@@ -1391,25 +1408,46 @@ const je = {
|
|
1391
1408
|
opacity: 0.5,
|
1392
1409
|
pointerEvents: "none"
|
1393
1410
|
}
|
1394
|
-
}
|
1411
|
+
};
|
1412
|
+
function no({
|
1413
|
+
title: t,
|
1414
|
+
dependencies: e = [],
|
1415
|
+
timeout: r = 500,
|
1416
|
+
TooltipProps: o,
|
1417
|
+
children: n
|
1418
|
+
}) {
|
1419
|
+
const c = Ie(null), [i, s] = oe(!1);
|
1420
|
+
return Mt(() => {
|
1421
|
+
const a = setTimeout(() => {
|
1422
|
+
if (c.current) {
|
1423
|
+
const u = c.current.scrollWidth > c.current.clientWidth || c.current.scrollHeight > c.current.clientHeight;
|
1424
|
+
s(u);
|
1425
|
+
}
|
1426
|
+
}, r);
|
1427
|
+
return () => clearTimeout(a);
|
1428
|
+
}, [e, r]), /* @__PURE__ */ l(ae, { title: i && t, ...o, children: n({
|
1429
|
+
ref: c
|
1430
|
+
}) });
|
1431
|
+
}
|
1432
|
+
const io = {
|
1395
1433
|
showMore: "Show More",
|
1396
1434
|
showLess: "Show Less"
|
1397
1435
|
};
|
1398
|
-
function
|
1436
|
+
function So(t) {
|
1399
1437
|
const e = R(34), {
|
1400
1438
|
data: r,
|
1401
1439
|
isLoading: o,
|
1402
|
-
maxItems:
|
1403
|
-
labels:
|
1440
|
+
maxItems: n,
|
1441
|
+
labels: c,
|
1404
1442
|
showDivider: i,
|
1405
|
-
selectedItemId:
|
1443
|
+
selectedItemId: s,
|
1406
1444
|
tooltipProps: a,
|
1407
1445
|
onExpand: u,
|
1408
|
-
onItemClick:
|
1446
|
+
onItemClick: f
|
1409
1447
|
} = t;
|
1410
|
-
let
|
1411
|
-
e[0] !== r ? (
|
1412
|
-
const p =
|
1448
|
+
let h;
|
1449
|
+
e[0] !== r ? (h = r === void 0 ? [] : r, e[0] = r, e[1] = h) : h = e[1];
|
1450
|
+
const p = h, y = o === void 0 ? !1 : o, b = n === void 0 ? 5 : n, g = c === void 0 ? io : c, C = i === void 0 ? !0 : i, [d, m] = oe(!1), v = oo(y);
|
1413
1451
|
let x, w;
|
1414
1452
|
e[2] !== p || e[3] !== b || e[4] !== d ? (w = d ? p : p.slice(0, b), e[2] = p, e[3] = b, e[4] = d, e[5] = w) : w = e[5], x = w;
|
1415
1453
|
const A = x;
|
@@ -1420,41 +1458,46 @@ function wo(t) {
|
|
1420
1458
|
const M = D;
|
1421
1459
|
if (v) {
|
1422
1460
|
let _;
|
1423
|
-
return e[9] !== b ? (_ = /* @__PURE__ */
|
1461
|
+
return e[9] !== b ? (_ = /* @__PURE__ */ l(qt, { length: b }), e[9] = b, e[10] = _) : _ = e[10], _;
|
1424
1462
|
}
|
1425
1463
|
if (A.length === 0) {
|
1426
1464
|
let _;
|
1427
|
-
return e[11] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */
|
1465
|
+
return e[11] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ l(to, {}), e[11] = _) : _ = e[11], _;
|
1428
1466
|
}
|
1429
1467
|
let T;
|
1430
|
-
if (e[12] !== A || e[13] !==
|
1468
|
+
if (e[12] !== A || e[13] !== f || e[14] !== s || e[15] !== C || e[16] !== a) {
|
1431
1469
|
let _;
|
1432
|
-
e[18] !==
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1470
|
+
e[18] !== f || e[19] !== s || e[20] !== C || e[21] !== a ? (_ = (k, E) => /* @__PURE__ */ l(no, { followCursor: !1, placement: "top", arrow: !0, title: k.tooltipTitle, enterDelay: 10, ...a, children: (B) => {
|
1471
|
+
const {
|
1472
|
+
ref: Z
|
1473
|
+
} = B;
|
1474
|
+
return /* @__PURE__ */ l(dt, { ref: Z, role: "listitem", sx: {
|
1475
|
+
...C && pe.showDivider,
|
1476
|
+
...f && pe.clickable,
|
1477
|
+
...s === k.id && pe.selected,
|
1478
|
+
...k.disabled && pe.disabled
|
1479
|
+
}, onClick: () => {
|
1480
|
+
k.disabled || f == null || f(k);
|
1481
|
+
}, children: /* @__PURE__ */ O(ve, { container: !0, alignItems: "center", children: [
|
1482
|
+
/* @__PURE__ */ l(ve, { item: !0, xs: 8, children: /* @__PURE__ */ l(be, { primary: k.label, sx: pe.label }) }),
|
1483
|
+
/* @__PURE__ */ l(ve, { item: !0, xs: 4, children: /* @__PURE__ */ l(be, { primary: k.value, sx: pe.value }) })
|
1484
|
+
] }) });
|
1485
|
+
} }, `list-item-${E}`), e[18] = f, e[19] = s, e[20] = C, e[21] = a, e[22] = _) : _ = e[22], T = A.map(_), e[12] = A, e[13] = f, e[14] = s, e[15] = C, e[16] = a, e[17] = T;
|
1443
1486
|
} else
|
1444
1487
|
T = e[17];
|
1445
1488
|
let S;
|
1446
|
-
e[23] !== T ? (S = /* @__PURE__ */
|
1489
|
+
e[23] !== T ? (S = /* @__PURE__ */ l(ut, { id: "expandable-list", role: "list", children: T }), e[23] = T, e[24] = S) : S = e[24];
|
1447
1490
|
let I;
|
1448
|
-
e[25] !== p.length || e[26] !== M || e[27] !== g || e[28] !== b || e[29] !== d ? (I = p.length > b && /* @__PURE__ */
|
1491
|
+
e[25] !== p.length || e[26] !== M || e[27] !== g || e[28] !== b || e[29] !== d ? (I = p.length > b && /* @__PURE__ */ l(W, { my: 2, children: /* @__PURE__ */ l(Te, { onClick: M, variant: "text", color: "primary", "aria-expanded": d, "aria-controls": "expandable-list", children: d ? g.showLess : g.showMore }) }), e[25] = p.length, e[26] = M, e[27] = g, e[28] = b, e[29] = d, e[30] = I) : I = e[30];
|
1449
1492
|
let L;
|
1450
1493
|
return e[31] !== S || e[32] !== I ? (L = /* @__PURE__ */ O(j, { children: [
|
1451
1494
|
S,
|
1452
1495
|
I
|
1453
1496
|
] }), e[31] = S, e[32] = I, e[33] = L) : L = e[33], L;
|
1454
1497
|
}
|
1455
|
-
const
|
1498
|
+
const lo = 288, ue = {
|
1456
1499
|
root: {
|
1457
|
-
width:
|
1500
|
+
width: lo,
|
1458
1501
|
overflow: "auto"
|
1459
1502
|
},
|
1460
1503
|
toggle: {
|
@@ -1554,7 +1597,7 @@ const to = 288, ue = {
|
|
1554
1597
|
}) => t.primary.main
|
1555
1598
|
}
|
1556
1599
|
}
|
1557
|
-
},
|
1600
|
+
}, ro = {
|
1558
1601
|
toggle: {
|
1559
1602
|
title: "Toggle basemaps controls"
|
1560
1603
|
},
|
@@ -1565,76 +1608,76 @@ const to = 288, ue = {
|
|
1565
1608
|
}
|
1566
1609
|
}
|
1567
1610
|
};
|
1568
|
-
function
|
1611
|
+
function co(t) {
|
1569
1612
|
const e = R(6), {
|
1570
1613
|
isMobile: r,
|
1571
1614
|
labels: o,
|
1572
|
-
onChangeCollapsed:
|
1573
|
-
} = t,
|
1615
|
+
onChangeCollapsed: n
|
1616
|
+
} = t, c = r === void 0 ? !1 : r;
|
1574
1617
|
let i;
|
1575
|
-
e[0] !==
|
1576
|
-
/* @__PURE__ */
|
1577
|
-
/* @__PURE__ */
|
1578
|
-
] }), e[0] =
|
1579
|
-
let
|
1580
|
-
return e[4] !== i ? (
|
1618
|
+
e[0] !== c || e[1] !== o || e[2] !== n ? (i = c && /* @__PURE__ */ O(j, { children: [
|
1619
|
+
/* @__PURE__ */ l(N, { variant: "caption", flexGrow: 1, children: o.title }),
|
1620
|
+
/* @__PURE__ */ l(ae, { title: o.actions.close, children: /* @__PURE__ */ l(se, { size: "small", onClick: n, "aria-label": o.actions.close, children: /* @__PURE__ */ l(ze, {}) }) })
|
1621
|
+
] }), e[0] = c, e[1] = o, e[2] = n, e[3] = i) : i = e[3];
|
1622
|
+
let s;
|
1623
|
+
return e[4] !== i ? (s = /* @__PURE__ */ l(W, { sx: ue.header, children: i }), e[4] = i, e[5] = s) : s = e[5], s;
|
1581
1624
|
}
|
1582
|
-
function
|
1625
|
+
function so(t) {
|
1583
1626
|
const e = R(5), {
|
1584
1627
|
title: r,
|
1585
1628
|
children: o,
|
1586
|
-
collapsed:
|
1629
|
+
collapsed: n
|
1587
1630
|
} = t;
|
1588
|
-
if (
|
1631
|
+
if (n === void 0 ? !1 : n)
|
1589
1632
|
return o;
|
1590
1633
|
let i;
|
1591
|
-
e[0] !== r ? (i = /* @__PURE__ */
|
1592
|
-
let
|
1593
|
-
return e[2] !== o || e[3] !== i ? (
|
1634
|
+
e[0] !== r ? (i = /* @__PURE__ */ l(N, { variant: "caption", color: "textSecondary", sx: ue.groupWrapper.content, children: r }), e[0] = r, e[1] = i) : i = e[1];
|
1635
|
+
let s;
|
1636
|
+
return e[2] !== o || e[3] !== i ? (s = /* @__PURE__ */ O(j, { children: [
|
1594
1637
|
i,
|
1595
1638
|
o
|
1596
|
-
] }), e[2] = o, e[3] = i, e[4] =
|
1639
|
+
] }), e[2] = o, e[3] = i, e[4] = s) : s = e[4], s;
|
1597
1640
|
}
|
1598
|
-
function
|
1641
|
+
function ao(t) {
|
1599
1642
|
const e = R(9), {
|
1600
1643
|
values: r,
|
1601
1644
|
selected: o,
|
1602
|
-
onChange:
|
1645
|
+
onChange: n
|
1603
1646
|
} = t;
|
1604
|
-
let
|
1605
|
-
if (e[0] !==
|
1606
|
-
let
|
1607
|
-
e[4] !==
|
1647
|
+
let c;
|
1648
|
+
if (e[0] !== n || e[1] !== o || e[2] !== r) {
|
1649
|
+
let s;
|
1650
|
+
e[4] !== n || e[5] !== o ? (s = (a) => {
|
1608
1651
|
const u = a.id === o;
|
1609
|
-
return /* @__PURE__ */ O(
|
1610
|
-
/* @__PURE__ */
|
1611
|
-
/* @__PURE__ */
|
1652
|
+
return /* @__PURE__ */ O(W, { sx: ue.item.container, component: "button", "aria-label": a.label, onClick: () => n(a.id), children: [
|
1653
|
+
/* @__PURE__ */ l("img", { src: a.icon, "aria-label": a.label + " icon", "data-active": u }),
|
1654
|
+
/* @__PURE__ */ l(N, { variant: "caption", sx: {
|
1612
1655
|
...u && ue.item.selected
|
1613
1656
|
}, children: a.label })
|
1614
1657
|
] }, a.id);
|
1615
|
-
}, e[4] =
|
1658
|
+
}, e[4] = n, e[5] = o, e[6] = s) : s = e[6], c = r.map(s), e[0] = n, e[1] = o, e[2] = r, e[3] = c;
|
1616
1659
|
} else
|
1617
|
-
|
1660
|
+
c = e[3];
|
1618
1661
|
let i;
|
1619
|
-
return e[7] !==
|
1662
|
+
return e[7] !== c ? (i = /* @__PURE__ */ l(W, { sx: ue.group, children: c }), e[7] = c, e[8] = i) : i = e[8], i;
|
1620
1663
|
}
|
1621
|
-
function
|
1664
|
+
function uo(t) {
|
1622
1665
|
const e = R(20), {
|
1623
1666
|
ref: r,
|
1624
1667
|
children: o,
|
1625
|
-
collapsed:
|
1626
|
-
isMobile:
|
1668
|
+
collapsed: n,
|
1669
|
+
isMobile: c,
|
1627
1670
|
position: i,
|
1628
|
-
sx:
|
1671
|
+
sx: s,
|
1629
1672
|
slotProps: a,
|
1630
1673
|
onChangeCollapsed: u
|
1631
1674
|
} = t;
|
1632
|
-
if (
|
1633
|
-
const x = !
|
1675
|
+
if (c === void 0 ? !1 : c) {
|
1676
|
+
const x = !n;
|
1634
1677
|
let w;
|
1635
|
-
return e[0] !== o || e[1] !== u || e[2] !== x ? (w = /* @__PURE__ */
|
1678
|
+
return e[0] !== o || e[1] !== u || e[2] !== x ? (w = /* @__PURE__ */ l(ft, { anchor: "bottom", open: x, onClose: u, children: o }), e[0] = o, e[1] = u, e[2] = x, e[3] = w) : w = e[3], w;
|
1636
1679
|
}
|
1637
|
-
const
|
1680
|
+
const h = !n;
|
1638
1681
|
let p;
|
1639
1682
|
e[4] !== u ? (p = () => u(!0), e[4] = u, e[5] = p) : p = e[5];
|
1640
1683
|
const y = i.startsWith("bottom") ? "bottom" : "top", b = i.endsWith("right") ? "left" : "right";
|
@@ -1650,35 +1693,35 @@ function ro(t) {
|
|
1650
1693
|
horizontal: d
|
1651
1694
|
}, e[9] = C, e[10] = d, e[11] = m) : m = e[11];
|
1652
1695
|
let v;
|
1653
|
-
return e[12] !== o || e[13] !== a || e[14] !==
|
1696
|
+
return e[12] !== o || e[13] !== a || e[14] !== s || e[15] !== h || e[16] !== p || e[17] !== g || e[18] !== m ? (v = /* @__PURE__ */ l(ht, { sx: s, anchorEl: r, open: h, onClose: p, anchorOrigin: g, transformOrigin: m, slotProps: a, children: o }), e[12] = o, e[13] = a, e[14] = s, e[15] = h, e[16] = p, e[17] = g, e[18] = m, e[19] = v) : v = e[19], v;
|
1654
1697
|
}
|
1655
|
-
function
|
1698
|
+
function _o(t) {
|
1656
1699
|
const e = R(52), {
|
1657
1700
|
options: r,
|
1658
1701
|
labels: o,
|
1659
|
-
position:
|
1660
|
-
selected:
|
1702
|
+
position: n,
|
1703
|
+
selected: c,
|
1661
1704
|
onChange: i,
|
1662
|
-
TooltipProps:
|
1705
|
+
TooltipProps: s
|
1663
1706
|
} = t;
|
1664
1707
|
let a;
|
1665
1708
|
e[0] !== r ? (a = r === void 0 ? [] : r, e[0] = r, e[1] = a) : a = e[1];
|
1666
|
-
const u = a,
|
1709
|
+
const u = a, f = n === void 0 ? "bottom-right" : n, h = c === void 0 ? null : c, [p, y] = oe(null), b = Ie(null), [g, C] = oe(null), d = mt();
|
1667
1710
|
let m;
|
1668
1711
|
e[2] !== d.breakpoints ? (m = d.breakpoints.down("sm"), e[2] = d.breakpoints, e[3] = m) : m = e[3];
|
1669
|
-
const v =
|
1712
|
+
const v = pt(m);
|
1670
1713
|
let x;
|
1671
1714
|
e[4] !== o ? (x = o ?? {}, e[4] = o, e[5] = x) : x = e[5];
|
1672
1715
|
let w;
|
1673
|
-
e[6] !== x ? (w = Se(
|
1716
|
+
e[6] !== x ? (w = Se(ro, x), e[6] = x, e[7] = w) : w = e[7];
|
1674
1717
|
const A = w, D = !p;
|
1675
1718
|
let M;
|
1676
|
-
if (e[8] !== u || e[9] !==
|
1719
|
+
if (e[8] !== u || e[9] !== h) {
|
1677
1720
|
let K;
|
1678
|
-
e[11] !==
|
1721
|
+
e[11] !== h ? (K = (fe) => fe.id === h, e[11] = h, e[12] = K) : K = e[12], M = u.find(K), e[8] = u, e[9] = h, e[10] = M;
|
1679
1722
|
} else
|
1680
1723
|
M = e[10];
|
1681
|
-
const T = M, S = Object.groupBy(u,
|
1724
|
+
const T = M, S = Object.groupBy(u, fo), I = Object.keys(S).length;
|
1682
1725
|
let L, _;
|
1683
1726
|
e[13] !== g ? (_ = () => {
|
1684
1727
|
if (b.current && clearTimeout(b.current), !!g)
|
@@ -1687,86 +1730,89 @@ function xo(t) {
|
|
1687
1730
|
}, g), () => {
|
1688
1731
|
b.current && clearTimeout(b.current);
|
1689
1732
|
};
|
1690
|
-
}, L = [g], e[13] = g, e[14] = L, e[15] = _) : (L = e[14], _ = e[15]),
|
1733
|
+
}, L = [g], e[13] = g, e[14] = L, e[15] = _) : (L = e[14], _ = e[15]), Re(_, L);
|
1691
1734
|
let k;
|
1692
1735
|
e[16] === Symbol.for("react.memo_cache_sentinel") ? (k = () => {
|
1693
1736
|
C(null);
|
1694
1737
|
}, e[16] = k) : k = e[16];
|
1695
|
-
const
|
1696
|
-
let
|
1697
|
-
e[17] === Symbol.for("react.memo_cache_sentinel") ? (
|
1738
|
+
const E = k;
|
1739
|
+
let B;
|
1740
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (B = () => {
|
1698
1741
|
C(400);
|
1699
|
-
}, e[17] =
|
1700
|
-
const
|
1701
|
-
let
|
1702
|
-
e[18] === Symbol.for("react.memo_cache_sentinel") ? (
|
1742
|
+
}, e[17] = B) : B = e[17];
|
1743
|
+
const Z = B, V = xe;
|
1744
|
+
let U;
|
1745
|
+
e[18] === Symbol.for("react.memo_cache_sentinel") ? (U = (K) => {
|
1703
1746
|
y(K.currentTarget);
|
1704
|
-
}, e[18] =
|
1705
|
-
const
|
1747
|
+
}, e[18] = U) : U = e[18];
|
1748
|
+
const ne = T == null ? void 0 : T.icon, F = (T == null ? void 0 : T.label) ?? "Basemap";
|
1706
1749
|
let H;
|
1707
|
-
e[19] !==
|
1750
|
+
e[19] !== ne || e[20] !== F ? (H = /* @__PURE__ */ l(se, { sx: ue.toggle, onClick: U, children: /* @__PURE__ */ l("img", { src: ne, alt: F }) }), e[19] = ne, e[20] = F, e[21] = H) : H = e[21];
|
1708
1751
|
let X;
|
1709
|
-
e[22] !==
|
1710
|
-
const q =
|
1711
|
-
let
|
1712
|
-
e[26] !==
|
1752
|
+
e[22] !== s || e[23] !== A.toggle.title || e[24] !== H ? (X = /* @__PURE__ */ l(ae, { title: A.toggle.title, placement: "right", ...s, children: H }), e[22] = s, e[23] = A.toggle.title, e[24] = H, e[25] = X) : X = e[25];
|
1753
|
+
const q = uo, ie = `translate3d(${f.endsWith("right") ? "-8px" : "8px"}, ${f.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
|
1754
|
+
let $;
|
1755
|
+
e[26] !== ie ? ($ = {
|
1713
1756
|
paper: {
|
1714
1757
|
sx: {
|
1715
1758
|
...ue.root,
|
1716
|
-
transform:
|
1759
|
+
transform: ie
|
1717
1760
|
},
|
1718
|
-
onMouseOver:
|
1719
|
-
onMouseLeave:
|
1761
|
+
onMouseOver: E,
|
1762
|
+
onMouseLeave: Z
|
1720
1763
|
}
|
1721
|
-
}, e[26] =
|
1722
|
-
let
|
1723
|
-
e[28] === Symbol.for("react.memo_cache_sentinel") ? (
|
1724
|
-
let
|
1725
|
-
e[29] === Symbol.for("react.memo_cache_sentinel") ? (
|
1726
|
-
let
|
1727
|
-
e[30] !== v || e[31] !== A.header ? (
|
1764
|
+
}, e[26] = ie, e[27] = $) : $ = e[27];
|
1765
|
+
let P;
|
1766
|
+
e[28] === Symbol.for("react.memo_cache_sentinel") ? (P = () => y(null), e[28] = P) : P = e[28];
|
1767
|
+
let le;
|
1768
|
+
e[29] === Symbol.for("react.memo_cache_sentinel") ? (le = () => y(null), e[29] = le) : le = e[29];
|
1769
|
+
let G;
|
1770
|
+
e[30] !== v || e[31] !== A.header ? (G = /* @__PURE__ */ l(co, { isMobile: v, labels: A.header, onChangeCollapsed: le }), e[30] = v, e[31] = A.header, e[32] = G) : G = e[32];
|
1728
1771
|
let ee;
|
1729
|
-
e[33] !== I || e[34] !== A.header || e[35] !== i || e[36] !==
|
1730
|
-
const [
|
1731
|
-
return /* @__PURE__ */
|
1772
|
+
e[33] !== I || e[34] !== A.header || e[35] !== i || e[36] !== h ? (ee = (K) => {
|
1773
|
+
const [fe, he] = K;
|
1774
|
+
return /* @__PURE__ */ l(so, { title: fe + " " + A.header.title, collapsed: I < 2, children: /* @__PURE__ */ l(ao, { values: he, selected: h, onChange: (me) => {
|
1732
1775
|
y(null), i(me);
|
1733
|
-
} }) },
|
1734
|
-
}, e[33] = I, e[34] = A.header, e[35] = i, e[36] =
|
1776
|
+
} }) }, fe);
|
1777
|
+
}, e[33] = I, e[34] = A.header, e[35] = i, e[36] = h, e[37] = ee) : ee = e[37];
|
1735
1778
|
const ge = Object.entries(S).map(ee);
|
1736
1779
|
let te;
|
1737
|
-
e[38] !== q || e[39] !== D || e[40] !== v || e[41] !==
|
1738
|
-
|
1780
|
+
e[38] !== q || e[39] !== D || e[40] !== v || e[41] !== f || e[42] !== $ || e[43] !== P || e[44] !== G || e[45] !== ge || e[46] !== p ? (te = /* @__PURE__ */ O(q, { ref: p, slotProps: $, collapsed: D, position: f, isMobile: v, onChangeCollapsed: P, children: [
|
1781
|
+
G,
|
1739
1782
|
ge
|
1740
|
-
] }), e[38] = q, e[39] = D, e[40] = v, e[41] =
|
1783
|
+
] }), e[38] = q, e[39] = D, e[40] = v, e[41] = f, e[42] = $, e[43] = P, e[44] = G, e[45] = ge, e[46] = p, e[47] = te) : te = e[47];
|
1741
1784
|
let de;
|
1742
|
-
return e[48] !==
|
1785
|
+
return e[48] !== V || e[49] !== X || e[50] !== te ? (de = /* @__PURE__ */ O(V, { children: [
|
1743
1786
|
X,
|
1744
1787
|
te
|
1745
|
-
] }), e[48] =
|
1788
|
+
] }), e[48] = V, e[49] = X, e[50] = te, e[51] = de) : de = e[51], de;
|
1746
1789
|
}
|
1747
|
-
function
|
1790
|
+
function fo(t) {
|
1748
1791
|
return t.group ?? "default";
|
1749
1792
|
}
|
1750
1793
|
export {
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1794
|
+
Vt as AreaIcon,
|
1795
|
+
_o as BasemapsUI,
|
1796
|
+
Ut as BufferIcon,
|
1797
|
+
yo as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
|
1755
1798
|
re as DEFAULT_MEASUREMENT_TOOLS_LABELS,
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1799
|
+
Wt as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
|
1800
|
+
Gt as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
|
1801
|
+
St as DrawCircleIcon,
|
1802
|
+
_t as DrawLassoIcon,
|
1803
|
+
Ct as DrawPolygonIcon,
|
1804
|
+
Tt as DrawSquareIcon,
|
1805
|
+
Co as GeolocationControls,
|
1763
1806
|
z as LASSO_TOOLS_LABELS,
|
1764
|
-
|
1765
|
-
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1807
|
+
xo as LassoToolsInlineUI,
|
1808
|
+
wo as LassoToolsUI,
|
1809
|
+
So as ListDataUI,
|
1810
|
+
Mo as MeasurementToolsUI,
|
1811
|
+
Zt as RulerIcon,
|
1812
|
+
At as SelectToolIcon,
|
1813
|
+
no as SmartTooltip,
|
1814
|
+
ae as Tooltip,
|
1815
|
+
To as ZoomControlsUI,
|
1816
|
+
bo as setTooltipEnterDelay
|
1771
1817
|
};
|
1772
1818
|
//# sourceMappingURL=components.js.map
|