@carto/ps-react-ui 4.1.0 → 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 +828 -781
- package/dist/components.js.map +1 -1
- package/dist/types/components/basemaps/basemaps.d.ts +1 -1
- package/dist/types/components/basemaps/types.d.ts +2 -1
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/smart-tooltip/smart-tooltip.d.ts +11 -0
- package/dist/types/components/tooltip/tooltip.d.ts +13 -0
- package/package.json +1 -1
package/dist/components.js
CHANGED
@@ -1,9 +1,9 @@
|
|
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
|
6
|
-
const
|
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
|
+
const J = {
|
7
7
|
container: {
|
8
8
|
display: "flex",
|
9
9
|
flexDirection: "row",
|
@@ -167,40 +167,40 @@ const Q = {
|
|
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,268 +238,285 @@ 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
|
-
|
265
|
-
var t = function(
|
266
|
-
return e(
|
261
|
+
var Ae, Ee;
|
262
|
+
function Ot() {
|
263
|
+
if (Ee) return Ae;
|
264
|
+
Ee = 1;
|
265
|
+
var t = function(m) {
|
266
|
+
return e(m) && !r(m);
|
267
267
|
};
|
268
268
|
function e(d) {
|
269
269
|
return !!d && typeof d == "object";
|
270
270
|
}
|
271
271
|
function r(d) {
|
272
|
-
var
|
273
|
-
return
|
272
|
+
var m = Object.prototype.toString.call(d);
|
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
|
-
function
|
279
|
+
function i(d) {
|
280
280
|
return Array.isArray(d) ? [] : {};
|
281
281
|
}
|
282
|
-
function
|
283
|
-
return
|
282
|
+
function s(d, m) {
|
283
|
+
return m.clone !== !1 && m.isMergeableObject(d) ? g(i(d), d, m) : d;
|
284
284
|
}
|
285
|
-
function a(d,
|
286
|
-
return d.concat(
|
287
|
-
return
|
285
|
+
function a(d, m, v) {
|
286
|
+
return d.concat(m).map(function(x) {
|
287
|
+
return s(x, v);
|
288
288
|
});
|
289
289
|
}
|
290
|
-
function
|
291
|
-
if (!
|
292
|
-
return
|
293
|
-
var
|
294
|
-
return typeof
|
290
|
+
function u(d, m) {
|
291
|
+
if (!m.customMerge)
|
292
|
+
return g;
|
293
|
+
var v = m.customMerge(d);
|
294
|
+
return typeof v == "function" ? v : g;
|
295
295
|
}
|
296
|
-
function
|
297
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(d).filter(function(
|
298
|
-
return Object.propertyIsEnumerable.call(d,
|
296
|
+
function f(d) {
|
297
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(d).filter(function(m) {
|
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
|
-
function p(d,
|
304
|
+
function p(d, m) {
|
305
305
|
try {
|
306
|
-
return
|
306
|
+
return m in d;
|
307
307
|
} catch {
|
308
308
|
return !1;
|
309
309
|
}
|
310
310
|
}
|
311
|
-
function
|
312
|
-
return p(d,
|
311
|
+
function y(d, m) {
|
312
|
+
return p(d, m) && !(Object.hasOwnProperty.call(d, m) && Object.propertyIsEnumerable.call(d, m));
|
313
313
|
}
|
314
|
-
function
|
315
|
-
var
|
316
|
-
return
|
317
|
-
|
318
|
-
}), m
|
319
|
-
|
320
|
-
}),
|
314
|
+
function b(d, m, v) {
|
315
|
+
var x = {};
|
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
|
+
}), x;
|
321
321
|
}
|
322
|
-
function
|
323
|
-
|
324
|
-
var
|
325
|
-
return
|
322
|
+
function g(d, m, v) {
|
323
|
+
v = v || {}, v.arrayMerge = v.arrayMerge || a, v.isMergeableObject = v.isMergeableObject || t, v.cloneUnlessOtherwiseSpecified = s;
|
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) : s(m, v);
|
326
326
|
}
|
327
|
-
|
328
|
-
if (!Array.isArray(
|
327
|
+
g.all = function(m, v) {
|
328
|
+
if (!Array.isArray(m))
|
329
329
|
throw new Error("first argument should be an array");
|
330
|
-
return
|
331
|
-
return
|
330
|
+
return m.reduce(function(x, w) {
|
331
|
+
return g(x, w, v);
|
332
332
|
}, {});
|
333
333
|
};
|
334
|
-
var C =
|
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:
|
346
|
-
onDelete:
|
347
|
-
} = t,
|
348
|
-
let
|
349
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
350
|
-
...
|
351
|
-
}, e[0] =
|
352
|
-
const
|
361
|
+
labels: n,
|
362
|
+
onChipToggle: c,
|
363
|
+
onDelete: i
|
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 = {
|
367
|
+
...J.chip.chip
|
368
|
+
}, e[0] = f) : f = e[0];
|
369
|
+
const h = o.visible ? "secondary" : "default";
|
353
370
|
let p;
|
354
|
-
e[1] !==
|
355
|
-
let
|
356
|
-
e[4] !==
|
357
|
-
const
|
358
|
-
let
|
359
|
-
e[8] !==
|
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];
|
372
|
+
let y;
|
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];
|
374
|
+
const b = r == null ? void 0 : r.ChipsProps;
|
375
|
+
let g;
|
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] !==
|
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:
|
370
|
-
modesMapping:
|
371
|
-
modeSelected:
|
385
|
+
labels: n,
|
386
|
+
modes: c,
|
387
|
+
modesMapping: i,
|
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
|
-
onChangeMode:
|
380
|
-
onAllChipToggle:
|
381
|
-
onAllDelete:
|
396
|
+
onChangeMode: y,
|
397
|
+
onAllChipToggle: b,
|
398
|
+
onAllDelete: g
|
382
399
|
}) {
|
383
|
-
const C = Le(() => Se(
|
400
|
+
const C = Le(() => Se(c, i), [c, i]), {
|
384
401
|
edit: d,
|
385
|
-
...
|
386
|
-
} = C,
|
387
|
-
return /* @__PURE__ */
|
388
|
-
...
|
402
|
+
...m
|
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);
|
404
|
+
return /* @__PURE__ */ O(xe, { sx: {
|
405
|
+
...J.container,
|
389
406
|
...a
|
390
|
-
}, ...
|
391
|
-
/* @__PURE__ */
|
392
|
-
/* @__PURE__ */
|
393
|
-
/* @__PURE__ */
|
394
|
-
!!d && /* @__PURE__ */
|
395
|
-
/* @__PURE__ */
|
396
|
-
/* @__PURE__ */
|
407
|
+
}, ...u, children: [
|
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 }) }),
|
411
|
+
!!d && /* @__PURE__ */ O(j, { children: [
|
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
|
-
}], modeSelected:
|
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
|
407
|
-
var
|
423
|
+
function It(t) {
|
424
|
+
var y;
|
408
425
|
const e = R(12), {
|
409
426
|
actionProps: r,
|
410
427
|
labels: o,
|
411
|
-
enabled:
|
412
|
-
children:
|
413
|
-
onActionToggle:
|
414
|
-
} = t,
|
415
|
-
let
|
416
|
-
e[0] !==
|
417
|
-
let
|
418
|
-
e[3] !== a || e[4] !==
|
428
|
+
enabled: n,
|
429
|
+
children: c,
|
430
|
+
onActionToggle: i
|
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;
|
432
|
+
let f;
|
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] !==
|
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
|
-
return /* @__PURE__ */
|
436
|
-
/* @__PURE__ */
|
437
|
-
...
|
452
|
+
return /* @__PURE__ */ O(j, { children: [
|
453
|
+
/* @__PURE__ */ l(se, { sx: {
|
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
|
-
sx:
|
443
|
-
}, ...r, children: /* @__PURE__ */
|
459
|
+
sx: J.options.menu
|
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
|
458
|
-
let
|
459
|
-
e[0] !==
|
460
|
-
let
|
461
|
-
return e[2] !==
|
462
|
-
|
463
|
-
|
464
|
-
] }), e[2] =
|
474
|
+
const c = ((a = o == null ? void 0 : o.mode) == null ? void 0 : a.title) ?? z.options.mode.title;
|
475
|
+
let i;
|
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: [
|
479
|
+
i,
|
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
|
-
|
490
|
+
const c = (i, s) => {
|
491
|
+
i.preventDefault(), o == null || o(s), n();
|
475
492
|
};
|
476
|
-
return t.map((
|
477
|
-
var
|
478
|
-
const a = (((
|
479
|
-
return /* @__PURE__ */
|
480
|
-
/* @__PURE__ */
|
481
|
-
/* @__PURE__ */
|
482
|
-
] },
|
493
|
+
return t.map((i) => {
|
494
|
+
var u;
|
495
|
+
const a = (((u = r == null ? void 0 : r.mode) == null ? void 0 : u.options) ?? z.options.mode.options)[i.value];
|
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 })
|
499
|
+
] }, i.value);
|
483
500
|
});
|
484
501
|
}
|
485
|
-
function
|
486
|
-
var
|
502
|
+
function kt(t) {
|
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
|
496
|
-
let
|
497
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
498
|
-
let
|
499
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
500
|
-
Icon: /* @__PURE__ */
|
501
|
-
sx:
|
502
|
-
},
|
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;
|
513
|
+
let u;
|
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, {}),
|
518
|
+
sx: J.options.more
|
519
|
+
}, h = {
|
503
520
|
anchorOrigin: {
|
504
521
|
vertical: "bottom",
|
505
522
|
horizontal: "right"
|
@@ -508,167 +525,167 @@ 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] !==
|
514
|
-
|
515
|
-
/* @__PURE__ */
|
516
|
-
/* @__PURE__ */
|
517
|
-
|
518
|
-
}, children:
|
519
|
-
/* @__PURE__ */
|
520
|
-
/* @__PURE__ */
|
521
|
-
|
522
|
-
}, children: /* @__PURE__ */
|
530
|
+
return e[3] !== a || e[4] !== n || e[5] !== c || e[6] !== s ? (p = /* @__PURE__ */ O(j, { children: [
|
531
|
+
u,
|
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:
|
536
|
-
modeSelected:
|
551
|
+
modes: n,
|
552
|
+
modesMapping: c,
|
553
|
+
modeSelected: i,
|
537
554
|
BoxProps: {
|
538
|
-
sx:
|
555
|
+
sx: s,
|
539
556
|
...a
|
540
557
|
} = {},
|
541
|
-
onChipToggle:
|
542
|
-
onDelete:
|
543
|
-
onChangeMode:
|
558
|
+
onChipToggle: u,
|
559
|
+
onDelete: f,
|
560
|
+
onChangeMode: h,
|
544
561
|
onAllChipToggle: p,
|
545
|
-
onAllDelete:
|
562
|
+
onAllDelete: y
|
546
563
|
}) {
|
547
|
-
const
|
548
|
-
edit:
|
564
|
+
const b = Le(() => Se(n, c), [n, c]), {
|
565
|
+
edit: g,
|
549
566
|
...C
|
550
|
-
} =
|
551
|
-
|
552
|
-
},
|
553
|
-
return /* @__PURE__ */
|
554
|
-
...
|
555
|
-
...
|
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: {
|
571
|
+
...J.container,
|
572
|
+
...s
|
556
573
|
}, ...a, className: "inline", children: [
|
557
|
-
/* @__PURE__ */
|
558
|
-
/* @__PURE__ */
|
559
|
-
!!
|
560
|
-
/* @__PURE__ */
|
561
|
-
/* @__PURE__ */
|
562
|
-
...
|
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 }),
|
576
|
+
!!g && /* @__PURE__ */ O(j, { children: [
|
577
|
+
/* @__PURE__ */ l(ce, { orientation: "vertical" }),
|
578
|
+
/* @__PURE__ */ l(Pe, { labels: o == null ? void 0 : o.options, data: [{
|
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
|
583
|
-
let
|
584
|
-
e[0] !==
|
585
|
-
let
|
586
|
-
return e[2] !==
|
587
|
-
|
588
|
-
|
589
|
-
] }), e[2] =
|
599
|
+
const c = ((a = o == null ? void 0 : o.mode) == null ? void 0 : a.title) ?? z.options.mode.title;
|
600
|
+
let i;
|
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: [
|
604
|
+
i,
|
605
|
+
n
|
606
|
+
] }), e[2] = n, e[3] = i, e[4] = s) : s = e[4], s;
|
590
607
|
}
|
591
|
-
function
|
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
|
609
|
-
let
|
610
|
-
e[0] !==
|
611
|
-
let
|
612
|
-
e[2] !==
|
625
|
+
const n = (o == null ? void 0 : o.title) ?? z.noData.title, c = (o == null ? void 0 : o.description) ?? z.noData.description;
|
626
|
+
let i;
|
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] !==
|
615
|
-
|
616
|
-
|
617
|
-
] }), e[4] =
|
631
|
+
return e[4] !== i || e[5] !== s ? (a = /* @__PURE__ */ O(j, { children: [
|
632
|
+
i,
|
633
|
+
s
|
634
|
+
] }), e[4] = i, e[5] = s, e[6] = a) : a = e[6], a;
|
618
635
|
}
|
619
|
-
function
|
620
|
-
var
|
636
|
+
function Pt(t) {
|
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
|
630
|
-
let h;
|
631
|
-
e[0] !== l ? (h = () => l(), e[0] = l, e[1] = h) : h = e[1];
|
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;
|
632
647
|
let u;
|
633
|
-
e[
|
634
|
-
let
|
635
|
-
e[
|
648
|
+
e[0] !== n ? (u = () => n(), e[0] = n, e[1] = u) : u = e[1];
|
649
|
+
let f;
|
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] !==
|
638
|
-
let
|
639
|
-
return e[10] !==
|
640
|
-
|
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];
|
655
|
+
let y;
|
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
|
-
const
|
688
|
+
const re = {
|
672
689
|
action: {
|
673
690
|
tooltip: {
|
674
691
|
active: "Click on the map to start measuring",
|
@@ -720,7 +737,7 @@ const ce = {
|
|
720
737
|
}
|
721
738
|
}
|
722
739
|
}
|
723
|
-
},
|
740
|
+
}, Gt = {
|
724
741
|
"m-km": {
|
725
742
|
short: "m-km"
|
726
743
|
},
|
@@ -748,17 +765,17 @@ const ce = {
|
|
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: {
|
763
780
|
display: "flex",
|
764
781
|
flexDirection: "row",
|
@@ -823,7 +840,7 @@ const ce = {
|
|
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,278 +907,278 @@ const ce = {
|
|
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:
|
899
|
-
modesMapping:
|
900
|
-
unitsMapping:
|
914
|
+
labels: n,
|
915
|
+
modes: c,
|
916
|
+
modesMapping: i,
|
917
|
+
unitsMapping: s,
|
901
918
|
modeSelected: a,
|
902
|
-
PaperProps:
|
903
|
-
units:
|
904
|
-
unitSelected:
|
919
|
+
PaperProps: u,
|
920
|
+
units: f,
|
921
|
+
unitSelected: h,
|
905
922
|
onActionToggle: p,
|
906
|
-
onChangeMode:
|
907
|
-
onChangeUnit:
|
908
|
-
} = t,
|
909
|
-
let
|
910
|
-
e[0] !==
|
911
|
-
let
|
912
|
-
e[2] !==
|
913
|
-
sx:
|
914
|
-
...
|
915
|
-
} =
|
916
|
-
let
|
917
|
-
e[5] !== p ? (
|
918
|
-
const
|
919
|
-
let
|
920
|
-
e[7] !==
|
921
|
-
const
|
922
|
-
let
|
923
|
-
e[10] !==
|
924
|
-
const
|
923
|
+
onChangeMode: y,
|
924
|
+
onChangeUnit: b
|
925
|
+
} = t, g = n === void 0 ? re : n, C = i === void 0 ? Wt : i, d = s === void 0 ? Gt : s;
|
926
|
+
let m;
|
927
|
+
e[0] !== u ? (m = u === void 0 ? {} : u, e[0] = u, e[1] = m) : m = e[1];
|
928
|
+
let v, x;
|
929
|
+
e[2] !== m ? ({
|
930
|
+
sx: x,
|
931
|
+
...v
|
932
|
+
} = m, e[2] = m, e[3] = v, e[4] = x) : (v = e[3], x = e[4]);
|
933
|
+
let w;
|
934
|
+
e[5] !== p ? (w = (G) => p(!!G), e[5] = p, e[6] = w) : w = e[6];
|
935
|
+
const A = w;
|
936
|
+
let D, M;
|
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;
|
938
|
+
const T = D, S = (a ?? "") in T;
|
939
|
+
let I;
|
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];
|
941
|
+
const L = I, _ = T[L];
|
925
942
|
let k;
|
926
|
-
const
|
927
|
-
let
|
928
|
-
e[14] !==
|
929
|
-
[
|
930
|
-
}, e[14] =
|
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] !==
|
945
|
-
...
|
946
|
-
...
|
947
|
-
}, e[23] =
|
948
|
-
const
|
949
|
-
let
|
950
|
-
e[25] !== o || e[26] !== r || e[27] !==
|
951
|
-
const
|
957
|
+
U = e[20];
|
958
|
+
k = U;
|
959
|
+
const ne = k;
|
960
|
+
let F;
|
961
|
+
e[23] !== x ? (F = {
|
962
|
+
...Q.container,
|
963
|
+
...x
|
964
|
+
}, e[23] = x, e[24] = F) : F = e[24];
|
965
|
+
const H = g == null ? void 0 : g.action, X = _ == null ? void 0 : _.icon;
|
966
|
+
let q;
|
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;
|
952
969
|
let $;
|
953
|
-
e[31] !==
|
954
|
-
let
|
955
|
-
e[39] !==
|
956
|
-
|
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: [
|
973
|
+
q,
|
957
974
|
$
|
958
|
-
] }), e[39] =
|
959
|
-
let
|
960
|
-
return e[42] !==
|
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
|
963
|
-
var
|
979
|
+
function zt(t) {
|
980
|
+
var y;
|
964
981
|
const e = R(12), {
|
965
982
|
actionProps: r,
|
966
983
|
labels: o,
|
967
|
-
enabled:
|
968
|
-
children:
|
969
|
-
onActionToggle:
|
970
|
-
} = t,
|
971
|
-
let
|
972
|
-
e[0] !==
|
973
|
-
let
|
974
|
-
e[3] !== a || e[4] !==
|
984
|
+
enabled: n,
|
985
|
+
children: c,
|
986
|
+
onActionToggle: i
|
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;
|
988
|
+
let f;
|
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] !==
|
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:
|
985
|
-
labels:
|
986
|
-
onChangeMode:
|
1000
|
+
units: n,
|
1001
|
+
unitSelected: c,
|
1002
|
+
labels: i,
|
1003
|
+
onChangeMode: s,
|
987
1004
|
onChangeUnit: a
|
988
|
-
} = t, [
|
989
|
-
let
|
990
|
-
if (e[0] !==
|
991
|
-
|
1005
|
+
} = t, [u, f] = oe(null), [h, p] = oe(!1);
|
1006
|
+
let y, b, g, C, d, m, v, x, w, A, D, M, T, S, I, L;
|
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) {
|
1008
|
+
T = Symbol.for("react.early_return_sentinel");
|
992
1009
|
e: {
|
993
1010
|
const $ = Object.values(r);
|
994
|
-
let
|
995
|
-
if (e[26] !==
|
996
|
-
|
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)) {
|
1013
|
+
T = null;
|
997
1014
|
break e;
|
998
1015
|
}
|
999
|
-
const
|
1016
|
+
const G = !!u;
|
1000
1017
|
let ee;
|
1001
|
-
e[28] === Symbol.for("react.memo_cache_sentinel") ? (ee = (
|
1002
|
-
|
1018
|
+
e[28] === Symbol.for("react.memo_cache_sentinel") ? (ee = (Y) => {
|
1019
|
+
f(Y.currentTarget);
|
1003
1020
|
}, e[28] = ee) : ee = e[28];
|
1004
|
-
const
|
1005
|
-
let
|
1006
|
-
e[29] === Symbol.for("react.memo_cache_sentinel") ? (
|
1007
|
-
|
1008
|
-
}, e[29] =
|
1009
|
-
const
|
1010
|
-
let
|
1011
|
-
e[30] !==
|
1012
|
-
|
1013
|
-
}, e[30] =
|
1014
|
-
const
|
1015
|
-
let
|
1016
|
-
e[32] === Symbol.for("react.memo_cache_sentinel") ? (
|
1021
|
+
const ge = ee;
|
1022
|
+
let te;
|
1023
|
+
e[29] === Symbol.for("react.memo_cache_sentinel") ? (te = () => {
|
1024
|
+
f(null);
|
1025
|
+
}, e[29] = te) : te = e[29];
|
1026
|
+
const de = te;
|
1027
|
+
let K;
|
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] =
|
1019
|
-
let
|
1020
|
-
e[33] === Symbol.for("react.memo_cache_sentinel") ? (
|
1035
|
+
}, e[32] = he) : he = e[32], g = he;
|
1036
|
+
let me;
|
1037
|
+
e[33] === Symbol.for("react.memo_cache_sentinel") ? (me = () => {
|
1021
1038
|
p(!1);
|
1022
|
-
}, e[33] =
|
1023
|
-
let xe;
|
1024
|
-
e[34] !== a ? (xe = (K) => {
|
1025
|
-
C(), a(K);
|
1026
|
-
}, e[34] = a, e[35] = xe) : xe = e[35], w = xe;
|
1027
|
-
const He = ((U = n == null ? void 0 : n.mode) == null ? void 0 : U.title) ?? ce.options.mode.title;
|
1028
|
-
L = ((N = n == null ? void 0 : n.units) == null ? void 0 : N.title) ?? ce.options.units.title, d = $.length > 1 && O.length > 1;
|
1039
|
+
}, e[33] = me) : me = e[33], C = me;
|
1029
1040
|
let Me;
|
1030
|
-
e[
|
1041
|
+
e[34] !== a ? (Me = (Y) => {
|
1042
|
+
C(), a(Y);
|
1043
|
+
}, e[34] = a, e[35] = Me) : Me = e[35], b = Me;
|
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;
|
1046
|
+
let Ce;
|
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
|
-
sx:
|
1033
|
-
}, e[40] =
|
1034
|
-
/* @__PURE__ */
|
1035
|
-
$.map((
|
1036
|
-
var
|
1037
|
-
const
|
1038
|
-
return /* @__PURE__ */
|
1039
|
-
/* @__PURE__ */
|
1040
|
-
/* @__PURE__ */
|
1041
|
-
] },
|
1049
|
+
sx: Q.options.menu
|
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 })
|
1058
|
+
] }, Y.value);
|
1042
1059
|
})
|
1043
1060
|
] });
|
1044
1061
|
}
|
1045
|
-
e[0] =
|
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
|
-
|
1048
|
-
if (
|
1049
|
-
return
|
1050
|
-
let
|
1051
|
-
e[41] !== d ? (
|
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];
|
1065
|
+
if (T !== Symbol.for("react.early_return_sentinel"))
|
1066
|
+
return T;
|
1067
|
+
let _;
|
1068
|
+
e[41] !== d ? (_ = d && /* @__PURE__ */ l(ce, {}), e[41] = d, e[42] = _) : _ = e[42];
|
1052
1069
|
let k;
|
1053
|
-
e[43] !==
|
1054
|
-
/* @__PURE__ */
|
1055
|
-
/* @__PURE__ */
|
1056
|
-
/* @__PURE__ */
|
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: [
|
1071
|
+
/* @__PURE__ */ O(ye, { onClick: g, children: [
|
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] =
|
1060
|
-
let B;
|
1061
|
-
e[53] !== f || e[54] !== k || e[55] !== T ? (B = /* @__PURE__ */ D("div", { children: [
|
1062
|
-
f,
|
1063
|
-
T,
|
1064
|
-
k
|
1065
|
-
] }), e[53] = f, e[54] = k, e[55] = T, e[56] = B) : B = e[56];
|
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];
|
1066
1077
|
let E;
|
1067
|
-
e[
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1078
|
+
e[53] !== m || e[54] !== k || e[55] !== _ ? (E = /* @__PURE__ */ O("div", { children: [
|
1079
|
+
m,
|
1080
|
+
_,
|
1081
|
+
k
|
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: [
|
1087
|
+
M,
|
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
|
-
var C, d,
|
1083
|
-
const [
|
1084
|
-
|
1085
|
-
},
|
1086
|
-
return /* @__PURE__ */
|
1099
|
+
var C, d, m, v, x, w, A, D;
|
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
|
-
onSubmit: (
|
1089
|
-
|
1090
|
-
const
|
1091
|
-
|
1105
|
+
onSubmit: (M) => {
|
1106
|
+
M.preventDefault();
|
1107
|
+
const T = new FormData(M.currentTarget);
|
1108
|
+
c(T.get("unit-value"));
|
1092
1109
|
}
|
1093
1110
|
}, children: [
|
1094
|
-
/* @__PURE__ */
|
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__ */
|
1099
|
-
/* @__PURE__ */
|
1100
|
-
/* @__PURE__ */
|
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
|
1106
|
-
return /* @__PURE__ */
|
1107
|
-
}) }) },
|
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);
|
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:
|
1122
|
-
watch:
|
1123
|
-
onChange:
|
1137
|
+
PaperProps: n,
|
1138
|
+
TooltipProps: c,
|
1139
|
+
watch: i,
|
1140
|
+
onChange: s,
|
1124
1141
|
onError: a
|
1125
|
-
} = t,
|
1126
|
-
let
|
1127
|
-
e[0] !== a ? (
|
1142
|
+
} = t, u = Ie(null), f = "geolocation" in navigator, [h, p] = oe(f);
|
1143
|
+
let y, b;
|
1144
|
+
e[0] !== a ? (y = () => (f && navigator.permissions.query({
|
1128
1145
|
name: "geolocation"
|
1129
|
-
}).then((
|
1130
|
-
p(
|
1131
|
-
p(
|
1146
|
+
}).then((_) => {
|
1147
|
+
p(_.state === "granted"), _.onchange = () => {
|
1148
|
+
p(_.state === "granted");
|
1132
1149
|
};
|
1133
|
-
}).catch((
|
1134
|
-
p(!1), a == null || a(
|
1150
|
+
}).catch((_) => {
|
1151
|
+
p(!1), a == null || a(_);
|
1135
1152
|
}), () => {
|
1136
|
-
|
1137
|
-
}),
|
1138
|
-
let
|
1139
|
-
e[3] !==
|
1140
|
-
|
1141
|
-
}, e[3] =
|
1142
|
-
const C =
|
1153
|
+
u.current && navigator.geolocation.clearWatch(u.current);
|
1154
|
+
}), b = [f, a], e[0] = a, e[1] = y, e[2] = b) : (y = e[1], b = e[2]), Re(y, b);
|
1155
|
+
let g;
|
1156
|
+
e[3] !== s ? (g = (_) => {
|
1157
|
+
s(_.coords);
|
1158
|
+
}, e[3] = s, e[4] = g) : g = e[4];
|
1159
|
+
const C = g;
|
1143
1160
|
let d;
|
1144
|
-
e[5] !== a ? (d = (
|
1145
|
-
p(!1), a == null || a(
|
1161
|
+
e[5] !== a ? (d = (_) => {
|
1162
|
+
p(!1), a == null || a(_);
|
1146
1163
|
}, e[5] = a, e[6] = d) : d = e[6];
|
1147
|
-
const
|
1148
|
-
let
|
1149
|
-
e[7] !==
|
1150
|
-
if (
|
1151
|
-
|
1164
|
+
const m = d;
|
1165
|
+
let v;
|
1166
|
+
e[7] !== m || e[8] !== C || e[9] !== i ? (v = () => {
|
1167
|
+
if (u.current && navigator.geolocation.clearWatch(u.current), i) {
|
1168
|
+
u.current = navigator.geolocation.watchPosition(C, m);
|
1152
1169
|
return;
|
1153
1170
|
}
|
1154
|
-
navigator.geolocation.getCurrentPosition(C,
|
1155
|
-
}, e[7] =
|
1156
|
-
const
|
1157
|
-
let
|
1158
|
-
e[11] !==
|
1171
|
+
navigator.geolocation.getCurrentPosition(C, m);
|
1172
|
+
}, e[7] = m, e[8] = C, e[9] = i, e[10] = v) : v = e[10];
|
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;
|
1174
|
+
let T;
|
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] !==
|
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];
|
1178
|
+
let I;
|
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];
|
1161
1180
|
let L;
|
1162
|
-
|
1163
|
-
let O;
|
1164
|
-
return e[22] !== l || e[23] !== L ? (O = /* @__PURE__ */ i(be, { ...l, children: L }), e[22] = l, e[23] = L, e[24] = O) : O = e[24], O;
|
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,139 +1212,139 @@ 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:
|
1204
|
-
maxZoom:
|
1205
|
-
minZoom:
|
1219
|
+
direction: n,
|
1220
|
+
isLoading: c,
|
1221
|
+
maxZoom: i,
|
1222
|
+
minZoom: s,
|
1206
1223
|
PaperProps: a,
|
1207
|
-
ResetViewProps:
|
1208
|
-
showZoom:
|
1209
|
-
onChange:
|
1224
|
+
ResetViewProps: u,
|
1225
|
+
showZoom: f,
|
1226
|
+
onChange: h,
|
1210
1227
|
onReset: p
|
1211
|
-
} = t,
|
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
|
-
e[0] !==
|
1214
|
-
Icon:
|
1215
|
-
} :
|
1216
|
-
const d = C,
|
1217
|
-
let
|
1218
|
-
e[2] !==
|
1219
|
-
const
|
1220
|
-
|
1221
|
-
}, e[2] =
|
1222
|
-
const
|
1223
|
-
let
|
1224
|
-
e[6] !==
|
1225
|
-
const
|
1226
|
-
|
1227
|
-
}, e[6] =
|
1228
|
-
const
|
1230
|
+
e[0] !== u ? (C = u === void 0 ? {
|
1231
|
+
Icon: bt
|
1232
|
+
} : u, e[0] = u, e[1] = C) : C = e[1];
|
1233
|
+
const d = C, m = f === void 0 ? !0 : f;
|
1234
|
+
let v;
|
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];
|
1239
|
+
const x = v;
|
1240
|
+
let w;
|
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];
|
1245
|
+
const A = w, D = Math.floor(r), M = y === "vertical" ? "horizontal" : "vertical", T = y === "vertical" ? "column" : "row";
|
1229
1246
|
let S;
|
1230
|
-
e[10] !==
|
1247
|
+
e[10] !== T ? (S = {
|
1231
1248
|
...De.paper,
|
1232
|
-
flexDirection:
|
1233
|
-
}, e[10] =
|
1249
|
+
flexDirection: T
|
1250
|
+
}, e[10] = T, e[11] = S) : S = e[11];
|
1251
|
+
let I;
|
1252
|
+
e[12] !== d || e[13] !== o || e[14] !== M || e[15] !== p ? (I = p && /* @__PURE__ */ O(j, { children: [
|
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 })
|
1255
|
+
] }), e[12] = d, e[13] = o, e[14] = M, e[15] = p, e[16] = I) : I = e[16];
|
1234
1256
|
let L;
|
1235
|
-
e[
|
1236
|
-
|
1237
|
-
|
1238
|
-
] }), e[12] = d, e[13] = o, e[14] = x, e[15] = p, e[16] = L) : L = e[16];
|
1239
|
-
let O;
|
1240
|
-
e[17] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ i(yt, {}), e[17] = O) : O = e[17];
|
1241
|
-
let T;
|
1242
|
-
e[18] !== o || e[19] !== M ? (T = /* @__PURE__ */ i(ae, { onClick: M, "aria-label": "Increase zoom", disabled: o, children: O }), e[18] = o, e[19] = M, e[20] = T) : T = e[20];
|
1257
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ l(wt, {}), e[17] = L) : L = e[17];
|
1258
|
+
let _;
|
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] !==
|
1245
|
-
let B;
|
1246
|
-
e[23] !== A || e[24] !== x || e[25] !== s || e[26] !== f ? (B = f && /* @__PURE__ */ D(j, { children: [
|
1247
|
-
/* @__PURE__ */ D(W, { sx: De.zoom, children: [
|
1248
|
-
/* @__PURE__ */ i(F, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: A }),
|
1249
|
-
s && /* @__PURE__ */ i(rt, { sx: De.circularProgress, variant: "indeterminate", size: 24 })
|
1250
|
-
] }),
|
1251
|
-
/* @__PURE__ */ i(se, { orientation: x, flexItem: !0 })
|
1252
|
-
] }), e[23] = A, e[24] = x, e[25] = s, e[26] = f, e[27] = B) : B = e[27];
|
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
|
-
|
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];
|
1257
1272
|
let Z;
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
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: [
|
1276
|
+
I,
|
1277
|
+
_,
|
1261
1278
|
k,
|
1262
|
-
|
1263
|
-
|
1264
|
-
] }), e[32] = a, e[33] = S, e[34] =
|
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
|
1276
|
-
return /* @__PURE__ */
|
1277
|
-
/* @__PURE__ */
|
1278
|
-
/* @__PURE__ */
|
1279
|
-
/* @__PURE__ */
|
1292
|
+
function Kt(t, e) {
|
1293
|
+
return /* @__PURE__ */ O(ve, { container: !0, spacing: 1, children: [
|
1294
|
+
/* @__PURE__ */ O(ve, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
|
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
|
1318
|
-
e[0] !==
|
1319
|
-
let
|
1320
|
-
return e[2] !==
|
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) {
|
1334
|
+
let f;
|
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] !==
|
1326
|
-
let
|
1327
|
-
return e[10] !==
|
1328
|
-
|
1342
|
+
e[8] !== i ? (a = /* @__PURE__ */ l(je, { color: "textSecondary", children: i }), e[8] = i, e[9] = a) : a = e[9];
|
1343
|
+
let u;
|
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
1349
|
function je(t) {
|
1333
1350
|
const e = R(5), {
|
@@ -1335,37 +1352,37 @@ function je(t) {
|
|
1335
1352
|
children: o
|
1336
1353
|
} = t;
|
1337
1354
|
if (o) {
|
1338
|
-
const
|
1339
|
-
let
|
1340
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
1355
|
+
const c = r ?? "inherit";
|
1356
|
+
let i;
|
1357
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = {
|
1341
1358
|
fontWeight: "normal"
|
1342
|
-
}, e[0] =
|
1343
|
-
let
|
1344
|
-
return e[1] !== o || e[2] !==
|
1359
|
+
}, e[0] = i) : i = e[0];
|
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
|
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,70 +1408,96 @@ const Pe = {
|
|
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:
|
1404
|
-
showDivider:
|
1405
|
-
selectedItemId:
|
1440
|
+
maxItems: n,
|
1441
|
+
labels: c,
|
1442
|
+
showDivider: i,
|
1443
|
+
selectedItemId: s,
|
1406
1444
|
tooltipProps: a,
|
1407
|
-
onExpand:
|
1408
|
-
onItemClick:
|
1445
|
+
onExpand: u,
|
1446
|
+
onItemClick: f
|
1409
1447
|
} = t;
|
1410
|
-
let
|
1411
|
-
e[0] !== r ? (
|
1412
|
-
const p =
|
1413
|
-
let
|
1414
|
-
e[2] !== p || e[3] !==
|
1415
|
-
const
|
1416
|
-
let
|
1417
|
-
e[6] !==
|
1418
|
-
|
1419
|
-
}, e[6] =
|
1420
|
-
const
|
1421
|
-
if (
|
1422
|
-
let
|
1423
|
-
return e[9] !==
|
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);
|
1451
|
+
let x, w;
|
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;
|
1453
|
+
const A = x;
|
1454
|
+
let D;
|
1455
|
+
e[6] !== u || e[7] !== d ? (D = () => {
|
1456
|
+
m(!d), u == null || u(d);
|
1457
|
+
}, e[6] = u, e[7] = d, e[8] = D) : D = e[8];
|
1458
|
+
const M = D;
|
1459
|
+
if (v) {
|
1460
|
+
let _;
|
1461
|
+
return e[9] !== b ? (_ = /* @__PURE__ */ l(qt, { length: b }), e[9] = b, e[10] = _) : _ = e[10], _;
|
1424
1462
|
}
|
1425
|
-
if (
|
1426
|
-
let
|
1427
|
-
return e[11] === Symbol.for("react.memo_cache_sentinel") ? (
|
1463
|
+
if (A.length === 0) {
|
1464
|
+
let _;
|
1465
|
+
return e[11] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ l(to, {}), e[11] = _) : _ = e[11], _;
|
1428
1466
|
}
|
1429
|
-
let
|
1430
|
-
if (e[12] !==
|
1431
|
-
let
|
1432
|
-
e[18] !==
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1467
|
+
let T;
|
1468
|
+
if (e[12] !== A || e[13] !== f || e[14] !== s || e[15] !== C || e[16] !== a) {
|
1469
|
+
let _;
|
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] !==
|
1489
|
+
e[23] !== T ? (S = /* @__PURE__ */ l(ut, { id: "expandable-list", role: "list", children: T }), e[23] = T, e[24] = S) : S = e[24];
|
1490
|
+
let I;
|
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];
|
1447
1492
|
let L;
|
1448
|
-
|
1449
|
-
let O;
|
1450
|
-
return e[31] !== S || e[32] !== L ? (O = /* @__PURE__ */ D(j, { children: [
|
1493
|
+
return e[31] !== S || e[32] !== I ? (L = /* @__PURE__ */ O(j, { children: [
|
1451
1494
|
S,
|
1452
|
-
|
1453
|
-
] }), e[31] = S, e[32] =
|
1495
|
+
I
|
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,9 +1597,9 @@ const to = 288, ue = {
|
|
1554
1597
|
}) => t.primary.main
|
1555
1598
|
}
|
1556
1599
|
}
|
1557
|
-
},
|
1600
|
+
}, ro = {
|
1558
1601
|
toggle: {
|
1559
|
-
title: "Toggle
|
1602
|
+
title: "Toggle basemaps controls"
|
1560
1603
|
},
|
1561
1604
|
header: {
|
1562
1605
|
title: "Basemaps",
|
@@ -1565,207 +1608,211 @@ 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,
|
1574
|
-
let
|
1575
|
-
e[0] !==
|
1576
|
-
/* @__PURE__ */
|
1577
|
-
/* @__PURE__ */
|
1578
|
-
] }), e[0] =
|
1579
|
-
let
|
1580
|
-
return e[4] !==
|
1615
|
+
onChangeCollapsed: n
|
1616
|
+
} = t, c = r === void 0 ? !1 : r;
|
1617
|
+
let 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
|
-
let
|
1591
|
-
e[0] !== r ? (
|
1592
|
-
let
|
1593
|
-
return e[2] !== o || e[3] !==
|
1594
|
-
|
1633
|
+
let 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: [
|
1637
|
+
i,
|
1595
1638
|
o
|
1596
|
-
] }), e[2] = o, e[3] =
|
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] !==
|
1608
|
-
const
|
1609
|
-
return /* @__PURE__ */
|
1610
|
-
/* @__PURE__ */
|
1611
|
-
/* @__PURE__ */
|
1612
|
-
...
|
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) => {
|
1651
|
+
const u = a.id === o;
|
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: {
|
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
|
-
|
1618
|
-
let
|
1619
|
-
return e[7] !==
|
1660
|
+
c = e[3];
|
1661
|
+
let i;
|
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:
|
1627
|
-
position:
|
1628
|
-
sx:
|
1668
|
+
collapsed: n,
|
1669
|
+
isMobile: c,
|
1670
|
+
position: i,
|
1671
|
+
sx: s,
|
1629
1672
|
slotProps: a,
|
1630
|
-
onChangeCollapsed:
|
1673
|
+
onChangeCollapsed: u
|
1631
1674
|
} = t;
|
1632
|
-
if (
|
1633
|
-
const
|
1634
|
-
let
|
1635
|
-
return e[0] !== o || e[1] !==
|
1675
|
+
if (c === void 0 ? !1 : c) {
|
1676
|
+
const x = !n;
|
1677
|
+
let w;
|
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
|
-
e[4] !==
|
1640
|
-
const
|
1641
|
-
let
|
1642
|
-
e[6] !==
|
1643
|
-
vertical:
|
1644
|
-
horizontal:
|
1645
|
-
}, e[6] =
|
1646
|
-
const C =
|
1647
|
-
let
|
1648
|
-
e[9] !== C || e[10] !== d ? (
|
1682
|
+
e[4] !== u ? (p = () => u(!0), e[4] = u, e[5] = p) : p = e[5];
|
1683
|
+
const y = i.startsWith("bottom") ? "bottom" : "top", b = i.endsWith("right") ? "left" : "right";
|
1684
|
+
let g;
|
1685
|
+
e[6] !== y || e[7] !== b ? (g = {
|
1686
|
+
vertical: y,
|
1687
|
+
horizontal: b
|
1688
|
+
}, e[6] = y, e[7] = b, e[8] = g) : g = e[8];
|
1689
|
+
const C = i.startsWith("bottom") ? "bottom" : "top", d = i.endsWith("right") ? "right" : "left";
|
1690
|
+
let m;
|
1691
|
+
e[9] !== C || e[10] !== d ? (m = {
|
1649
1692
|
vertical: C,
|
1650
1693
|
horizontal: d
|
1651
|
-
}, e[9] = C, e[10] = d, e[11] =
|
1652
|
-
let
|
1653
|
-
return e[12] !== o || e[13] !== a || e[14] !==
|
1694
|
+
}, e[9] = C, e[10] = d, e[11] = m) : m = e[11];
|
1695
|
+
let v;
|
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
|
1656
|
-
const e = R(
|
1698
|
+
function _o(t) {
|
1699
|
+
const e = R(52), {
|
1657
1700
|
options: r,
|
1658
1701
|
labels: o,
|
1659
|
-
position:
|
1660
|
-
selected:
|
1661
|
-
onChange:
|
1702
|
+
position: n,
|
1703
|
+
selected: c,
|
1704
|
+
onChange: i,
|
1705
|
+
TooltipProps: s
|
1662
1706
|
} = t;
|
1663
|
-
let
|
1664
|
-
e[0] !== r ? (
|
1665
|
-
const
|
1666
|
-
let
|
1667
|
-
e[2] !==
|
1668
|
-
const
|
1669
|
-
let
|
1670
|
-
e[4] !== o ? (
|
1707
|
+
let a;
|
1708
|
+
e[0] !== r ? (a = r === void 0 ? [] : r, e[0] = r, e[1] = a) : a = e[1];
|
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();
|
1710
|
+
let m;
|
1711
|
+
e[2] !== d.breakpoints ? (m = d.breakpoints.down("sm"), e[2] = d.breakpoints, e[3] = m) : m = e[3];
|
1712
|
+
const v = pt(m);
|
1713
|
+
let x;
|
1714
|
+
e[4] !== o ? (x = o ?? {}, e[4] = o, e[5] = x) : x = e[5];
|
1715
|
+
let w;
|
1716
|
+
e[6] !== x ? (w = Se(ro, x), e[6] = x, e[7] = w) : w = e[7];
|
1717
|
+
const A = w, D = !p;
|
1671
1718
|
let M;
|
1672
|
-
e[
|
1673
|
-
|
1674
|
-
|
1675
|
-
if (e[8] !== a || e[9] !== u) {
|
1676
|
-
let te;
|
1677
|
-
e[11] !== u ? (te = (re) => re.id === u, e[11] = u, e[12] = te) : te = e[12], A = a.find(te), e[8] = a, e[9] = u, e[10] = A;
|
1719
|
+
if (e[8] !== u || e[9] !== h) {
|
1720
|
+
let K;
|
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;
|
1678
1722
|
} else
|
1679
|
-
|
1680
|
-
const
|
1681
|
-
let L,
|
1682
|
-
e[13] !==
|
1683
|
-
if (b.current && clearTimeout(b.current), !!
|
1723
|
+
M = e[10];
|
1724
|
+
const T = M, S = Object.groupBy(u, fo), I = Object.keys(S).length;
|
1725
|
+
let L, _;
|
1726
|
+
e[13] !== g ? (_ = () => {
|
1727
|
+
if (b.current && clearTimeout(b.current), !!g)
|
1684
1728
|
return b.current = setTimeout(() => {
|
1685
|
-
|
1686
|
-
},
|
1729
|
+
y(null);
|
1730
|
+
}, g), () => {
|
1687
1731
|
b.current && clearTimeout(b.current);
|
1688
1732
|
};
|
1689
|
-
}, L = [
|
1690
|
-
let
|
1691
|
-
e[16] === Symbol.for("react.memo_cache_sentinel") ? (
|
1692
|
-
|
1693
|
-
}, e[16] =
|
1694
|
-
const
|
1733
|
+
}, L = [g], e[13] = g, e[14] = L, e[15] = _) : (L = e[14], _ = e[15]), Re(_, L);
|
1734
|
+
let k;
|
1735
|
+
e[16] === Symbol.for("react.memo_cache_sentinel") ? (k = () => {
|
1736
|
+
C(null);
|
1737
|
+
}, e[16] = k) : k = e[16];
|
1738
|
+
const E = k;
|
1695
1739
|
let B;
|
1696
1740
|
e[17] === Symbol.for("react.memo_cache_sentinel") ? (B = () => {
|
1697
|
-
|
1741
|
+
C(400);
|
1698
1742
|
}, e[17] = B) : B = e[17];
|
1699
|
-
const
|
1700
|
-
let Z;
|
1701
|
-
e[18] === Symbol.for("react.memo_cache_sentinel") ? (Z = (te) => {
|
1702
|
-
p(te.currentTarget);
|
1703
|
-
}, e[18] = Z) : Z = e[18];
|
1704
|
-
const G = x == null ? void 0 : x.icon, oe = (x == null ? void 0 : x.label) ?? "Basemap";
|
1743
|
+
const Z = B, V = xe;
|
1705
1744
|
let U;
|
1706
|
-
e[
|
1707
|
-
|
1708
|
-
|
1709
|
-
const ne =
|
1745
|
+
e[18] === Symbol.for("react.memo_cache_sentinel") ? (U = (K) => {
|
1746
|
+
y(K.currentTarget);
|
1747
|
+
}, e[18] = U) : U = e[18];
|
1748
|
+
const ne = T == null ? void 0 : T.icon, F = (T == null ? void 0 : T.label) ?? "Basemap";
|
1749
|
+
let H;
|
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];
|
1710
1751
|
let X;
|
1711
|
-
e[
|
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 ? ($ = {
|
1712
1756
|
paper: {
|
1713
1757
|
sx: {
|
1714
1758
|
...ue.root,
|
1715
|
-
transform:
|
1759
|
+
transform: ie
|
1716
1760
|
},
|
1717
|
-
onMouseOver:
|
1718
|
-
onMouseLeave:
|
1761
|
+
onMouseOver: E,
|
1762
|
+
onMouseLeave: Z
|
1719
1763
|
}
|
1720
|
-
}, e[
|
1721
|
-
let
|
1722
|
-
e[
|
1723
|
-
let V;
|
1724
|
-
e[28] === Symbol.for("react.memo_cache_sentinel") ? (V = () => p(null), e[28] = V) : V = e[28];
|
1725
|
-
let J;
|
1726
|
-
e[29] !== f || e[30] !== y.header ? (J = /* @__PURE__ */ i(no, { isMobile: f, labels: y.header, onChangeCollapsed: V }), e[29] = f, e[30] = y.header, e[31] = J) : J = e[31];
|
1727
|
-
let q;
|
1728
|
-
e[32] !== S || e[33] !== y.header || e[34] !== n || e[35] !== u ? (q = (te) => {
|
1729
|
-
const [re, Te] = te;
|
1730
|
-
return /* @__PURE__ */ i(io, { title: re + " " + y.header.title, collapsed: S < 2, children: /* @__PURE__ */ i(lo, { values: Te, selected: u, onChange: (fe) => {
|
1731
|
-
p(null), n(fe);
|
1732
|
-
} }) }, re);
|
1733
|
-
}, e[32] = S, e[33] = y.header, e[34] = n, e[35] = u, e[36] = q) : q = e[36];
|
1734
|
-
const ee = Object.entries(_).map(q);
|
1735
|
-
let de;
|
1736
|
-
e[37] !== ne || e[38] !== I || e[39] !== f || e[40] !== h || e[41] !== X || e[42] !== $ || e[43] !== J || e[44] !== ee || e[45] !== m ? (de = /* @__PURE__ */ D(ne, { ref: m, slotProps: X, collapsed: I, position: h, isMobile: f, onChangeCollapsed: $, children: [
|
1737
|
-
J,
|
1738
|
-
ee
|
1739
|
-
] }), e[37] = ne, e[38] = I, e[39] = f, e[40] = h, e[41] = X, e[42] = $, e[43] = J, e[44] = ee, e[45] = m, e[46] = de) : de = e[46];
|
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];
|
1740
1767
|
let le;
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
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];
|
1771
|
+
let ee;
|
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) => {
|
1775
|
+
y(null), i(me);
|
1776
|
+
} }) }, fe);
|
1777
|
+
}, e[33] = I, e[34] = A.header, e[35] = i, e[36] = h, e[37] = ee) : ee = e[37];
|
1778
|
+
const ge = Object.entries(S).map(ee);
|
1779
|
+
let te;
|
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,
|
1782
|
+
ge
|
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];
|
1784
|
+
let de;
|
1785
|
+
return e[48] !== V || e[49] !== X || e[50] !== te ? (de = /* @__PURE__ */ O(V, { children: [
|
1786
|
+
X,
|
1787
|
+
te
|
1788
|
+
] }), e[48] = V, e[49] = X, e[50] = te, e[51] = de) : de = e[51], de;
|
1745
1789
|
}
|
1746
|
-
function
|
1790
|
+
function fo(t) {
|
1747
1791
|
return t.group ?? "default";
|
1748
1792
|
}
|
1749
1793
|
export {
|
1750
|
-
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1794
|
+
Vt as AreaIcon,
|
1795
|
+
_o as BasemapsUI,
|
1796
|
+
Ut as BufferIcon,
|
1797
|
+
yo as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
|
1798
|
+
re as DEFAULT_MEASUREMENT_TOOLS_LABELS,
|
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,
|
1762
1806
|
z as LASSO_TOOLS_LABELS,
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
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
|
1770
1817
|
};
|
1771
1818
|
//# sourceMappingURL=components.js.map
|