@carto/ps-react-ui 4.0.1 → 4.0.2-canary.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 +745 -650
- package/dist/components.js.map +1 -1
- package/dist/types/components/list-data/list-data-skeleton.d.ts +5 -0
- package/dist/types/components/list-data/list-data.d.ts +2 -2
- package/dist/types/components/list-data/styles.d.ts +9 -12
- package/dist/types/components/list-data/types.d.ts +2 -1
- package/dist/types/components/no-data-alert/no-data-alert.d.ts +8 -0
- package/dist/types/hooks/use-skeleton.d.ts +1 -0
- package/package.json +1 -1
package/dist/components.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { jsx as n, jsxs as D, Fragment as
|
2
|
-
import { c as
|
3
|
-
import { Chip as
|
4
|
-
import { ArrowDropDown as
|
5
|
-
import { useMemo as
|
1
|
+
import { jsx as n, jsxs as D, Fragment as j } from "react/jsx-runtime";
|
2
|
+
import { c as Z } from "react/compiler-runtime";
|
3
|
+
import { Chip as We, Tooltip as le, Paper as ye, Divider as Y, Box as F, IconButton as ee, Menu as ke, MenuItem as ce, ListItemIcon as Be, SvgIcon as Se, ListItemText as se, ToggleButton as ae, Typography as H, ToggleButtonGroup as Ee, Button as ve, alpha as Xe, Dialog as qe, DialogTitle as Ke, DialogContent as Ye, FormControl as Je, RadioGroup as Qe, FormControlLabel as et, Radio as tt, DialogActions as ot, CircularProgress as nt, Grid as re, Skeleton as xe, Alert as it, ListItem as lt, List as rt } from "@mui/material";
|
4
|
+
import { ArrowDropDown as je, MoreVertOutlined as ct, Close as st, MyLocationOutlined as at, LocationDisabledOutlined as dt, CropFreeOutlined as ut, AddOutlined as mt, RemoveOutlined as ht } from "@mui/icons-material";
|
5
|
+
import { useMemo as Te, useState as Q, useRef as ft, useEffect as Pe } from "react";
|
6
6
|
const G = {
|
7
7
|
container: {
|
8
8
|
display: "flex",
|
@@ -167,42 +167,42 @@ const G = {
|
|
167
167
|
}
|
168
168
|
}
|
169
169
|
};
|
170
|
-
function
|
171
|
-
const e =
|
172
|
-
let
|
173
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
170
|
+
function pt(t) {
|
171
|
+
const e = Z(3);
|
172
|
+
let l;
|
173
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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] = l) : l = e[0];
|
174
174
|
let o;
|
175
|
-
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children:
|
175
|
+
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
|
176
176
|
}
|
177
|
-
function
|
178
|
-
const e =
|
179
|
-
let
|
180
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
177
|
+
function gt(t) {
|
178
|
+
const e = Z(3);
|
179
|
+
let l;
|
180
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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] = l) : l = e[0];
|
181
181
|
let o;
|
182
|
-
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children:
|
182
|
+
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
|
183
183
|
}
|
184
|
-
function
|
185
|
-
const e =
|
186
|
-
let
|
187
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
184
|
+
function vt(t) {
|
185
|
+
const e = Z(3);
|
186
|
+
let l;
|
187
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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] = l) : l = e[0];
|
188
188
|
let o;
|
189
|
-
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children:
|
189
|
+
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
|
190
190
|
}
|
191
|
-
function
|
192
|
-
const e =
|
193
|
-
let
|
194
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
191
|
+
function yt(t) {
|
192
|
+
const e = Z(3);
|
193
|
+
let l;
|
194
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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] = l) : l = e[0];
|
195
195
|
let o;
|
196
|
-
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children:
|
196
|
+
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
|
197
197
|
}
|
198
|
-
function
|
199
|
-
const e =
|
200
|
-
let
|
201
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
198
|
+
function wt(t) {
|
199
|
+
const e = Z(3);
|
200
|
+
let l;
|
201
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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] = l) : l = e[0];
|
202
202
|
let o;
|
203
|
-
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children:
|
203
|
+
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
|
204
204
|
}
|
205
|
-
const
|
205
|
+
const P = {
|
206
206
|
action: {
|
207
207
|
tooltip: {
|
208
208
|
active: "Click on the map to trace the line you want to measure",
|
@@ -238,268 +238,268 @@ const j = {
|
|
238
238
|
},
|
239
239
|
deleteAll: "Remove all"
|
240
240
|
}
|
241
|
-
},
|
241
|
+
}, eo = {
|
242
242
|
polygon: {
|
243
|
-
icon:
|
243
|
+
icon: pt
|
244
244
|
},
|
245
245
|
rectangle: {
|
246
|
-
icon:
|
246
|
+
icon: gt
|
247
247
|
},
|
248
248
|
circle: {
|
249
|
-
icon:
|
249
|
+
icon: vt
|
250
250
|
},
|
251
251
|
lasso: {
|
252
|
-
icon:
|
252
|
+
icon: yt
|
253
253
|
},
|
254
254
|
edit: {
|
255
|
-
icon:
|
255
|
+
icon: wt
|
256
256
|
}
|
257
257
|
};
|
258
|
-
function
|
258
|
+
function xt(t) {
|
259
259
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
260
260
|
}
|
261
|
-
var
|
262
|
-
function
|
263
|
-
if (
|
264
|
-
|
265
|
-
var t = function(
|
266
|
-
return e(
|
261
|
+
var be, Oe;
|
262
|
+
function bt() {
|
263
|
+
if (Oe) return be;
|
264
|
+
Oe = 1;
|
265
|
+
var t = function(f) {
|
266
|
+
return e(f) && !l(f);
|
267
267
|
};
|
268
|
-
function e(
|
269
|
-
return !!
|
268
|
+
function e(d) {
|
269
|
+
return !!d && typeof d == "object";
|
270
270
|
}
|
271
|
-
function
|
272
|
-
var
|
273
|
-
return
|
271
|
+
function l(d) {
|
272
|
+
var f = Object.prototype.toString.call(d);
|
273
|
+
return f === "[object RegExp]" || f === "[object Date]" || c(d);
|
274
274
|
}
|
275
|
-
var o = typeof Symbol == "function" && Symbol.for,
|
276
|
-
function d
|
277
|
-
return
|
275
|
+
var o = typeof Symbol == "function" && Symbol.for, i = o ? Symbol.for("react.element") : 60103;
|
276
|
+
function c(d) {
|
277
|
+
return d.$$typeof === i;
|
278
278
|
}
|
279
|
-
function r(
|
280
|
-
return Array.isArray(
|
279
|
+
function r(d) {
|
280
|
+
return Array.isArray(d) ? [] : {};
|
281
281
|
}
|
282
|
-
function s(
|
283
|
-
return
|
282
|
+
function s(d, f) {
|
283
|
+
return f.clone !== !1 && f.isMergeableObject(d) ? v(r(d), d, f) : d;
|
284
284
|
}
|
285
|
-
function
|
286
|
-
return
|
285
|
+
function a(d, f, g) {
|
286
|
+
return d.concat(f).map(function(C) {
|
287
287
|
return s(C, g);
|
288
288
|
});
|
289
289
|
}
|
290
|
-
function
|
291
|
-
if (!
|
292
|
-
return
|
293
|
-
var g =
|
294
|
-
return typeof g == "function" ? g :
|
290
|
+
function m(d, f) {
|
291
|
+
if (!f.customMerge)
|
292
|
+
return v;
|
293
|
+
var g = f.customMerge(d);
|
294
|
+
return typeof g == "function" ? g : v;
|
295
295
|
}
|
296
|
-
function
|
297
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(
|
298
|
-
return Object.propertyIsEnumerable.call(
|
296
|
+
function u(d) {
|
297
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(d).filter(function(f) {
|
298
|
+
return Object.propertyIsEnumerable.call(d, f);
|
299
299
|
}) : [];
|
300
300
|
}
|
301
|
-
function
|
302
|
-
return Object.keys(
|
301
|
+
function h(d) {
|
302
|
+
return Object.keys(d).concat(u(d));
|
303
303
|
}
|
304
|
-
function
|
304
|
+
function p(d, f) {
|
305
305
|
try {
|
306
|
-
return
|
306
|
+
return f in d;
|
307
307
|
} catch {
|
308
308
|
return !1;
|
309
309
|
}
|
310
310
|
}
|
311
|
-
function
|
312
|
-
return
|
311
|
+
function w(d, f) {
|
312
|
+
return p(d, f) && !(Object.hasOwnProperty.call(d, f) && Object.propertyIsEnumerable.call(d, f));
|
313
313
|
}
|
314
|
-
function
|
314
|
+
function M(d, f, g) {
|
315
315
|
var C = {};
|
316
|
-
return g.isMergeableObject(
|
317
|
-
C[x] = s(
|
318
|
-
}), f
|
319
|
-
|
316
|
+
return g.isMergeableObject(d) && h(d).forEach(function(x) {
|
317
|
+
C[x] = s(d[x], g);
|
318
|
+
}), h(f).forEach(function(x) {
|
319
|
+
w(d, x) || (p(d, x) && g.isMergeableObject(f[x]) ? C[x] = m(x, g)(d[x], f[x], g) : C[x] = s(f[x], g));
|
320
320
|
}), C;
|
321
321
|
}
|
322
|
-
function
|
323
|
-
g = g || {}, g.arrayMerge = g.arrayMerge ||
|
324
|
-
var C = Array.isArray(
|
325
|
-
return
|
322
|
+
function v(d, f, g) {
|
323
|
+
g = g || {}, g.arrayMerge = g.arrayMerge || a, g.isMergeableObject = g.isMergeableObject || t, g.cloneUnlessOtherwiseSpecified = s;
|
324
|
+
var C = Array.isArray(f), x = Array.isArray(d), O = C === x;
|
325
|
+
return O ? C ? g.arrayMerge(d, f, g) : M(d, f, g) : s(f, g);
|
326
326
|
}
|
327
|
-
|
328
|
-
if (!Array.isArray(
|
327
|
+
v.all = function(f, g) {
|
328
|
+
if (!Array.isArray(f))
|
329
329
|
throw new Error("first argument should be an array");
|
330
|
-
return
|
331
|
-
return
|
330
|
+
return f.reduce(function(C, x) {
|
331
|
+
return v(C, x, g);
|
332
332
|
}, {});
|
333
333
|
};
|
334
|
-
var
|
335
|
-
return
|
334
|
+
var S = v;
|
335
|
+
return be = S, be;
|
336
336
|
}
|
337
|
-
var
|
338
|
-
const
|
339
|
-
function
|
340
|
-
var
|
341
|
-
const e =
|
342
|
-
chipProps:
|
337
|
+
var Mt = bt();
|
338
|
+
const Ae = /* @__PURE__ */ xt(Mt);
|
339
|
+
function $e(t) {
|
340
|
+
var d;
|
341
|
+
const e = Z(18), {
|
342
|
+
chipProps: l,
|
343
343
|
value: o,
|
344
|
-
labels:
|
345
|
-
onChipToggle:
|
344
|
+
labels: i,
|
345
|
+
onChipToggle: c,
|
346
346
|
onDelete: r
|
347
|
-
} = t, s = o.visible ? "active" : "inactive",
|
348
|
-
let
|
349
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
347
|
+
} = t, s = o.visible ? "active" : "inactive", a = ((d = i == null ? void 0 : i.tooltip) == null ? void 0 : d[s]) ?? P.chip.tooltip[s], m = l == null ? void 0 : l.TooltipProps;
|
348
|
+
let u;
|
349
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
350
350
|
...G.chip.chip
|
351
|
-
}, e[0] =
|
352
|
-
const
|
353
|
-
let v;
|
354
|
-
e[1] !== r || e[2] !== o.id ? (v = () => r(o.id), e[1] = r, e[2] = o.id, e[3] = v) : v = e[3];
|
351
|
+
}, e[0] = u) : u = e[0];
|
352
|
+
const h = o.visible ? "secondary" : "default";
|
355
353
|
let p;
|
356
|
-
e[
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
let
|
361
|
-
|
354
|
+
e[1] !== r || e[2] !== o.id ? (p = () => r(o.id), e[1] = r, e[2] = o.id, e[3] = p) : p = e[3];
|
355
|
+
let w;
|
356
|
+
e[4] !== c || e[5] !== o.id || e[6] !== o.visible ? (w = () => c(o.id, !o.visible), e[4] = c, e[5] = o.id, e[6] = o.visible, e[7] = w) : w = e[7];
|
357
|
+
const M = l == null ? void 0 : l.ChipsProps;
|
358
|
+
let v;
|
359
|
+
e[8] !== h || e[9] !== p || e[10] !== w || e[11] !== M || e[12] !== o.label ? (v = /* @__PURE__ */ n(We, { sx: u, color: h, size: "small", onDelete: p, label: o.label, onClick: w, ...M }), e[8] = h, e[9] = p, e[10] = w, e[11] = M, e[12] = o.label, e[13] = v) : v = e[13];
|
360
|
+
let S;
|
361
|
+
return e[14] !== a || e[15] !== m || e[16] !== v ? (S = /* @__PURE__ */ n(le, { title: a, placement: "bottom", ...m, children: v }), e[14] = a, e[15] = m, e[16] = v, e[17] = S) : S = e[17], S;
|
362
362
|
}
|
363
|
-
function
|
363
|
+
function to({
|
364
364
|
enabled: t,
|
365
365
|
values: e = [],
|
366
|
-
actionProps:
|
366
|
+
actionProps: l,
|
367
367
|
chipProps: o,
|
368
|
-
labels:
|
369
|
-
modes:
|
368
|
+
labels: i,
|
369
|
+
modes: c,
|
370
370
|
modesMapping: r,
|
371
371
|
modeSelected: s,
|
372
372
|
PaperProps: {
|
373
|
-
sx:
|
374
|
-
...
|
373
|
+
sx: a,
|
374
|
+
...m
|
375
375
|
} = {},
|
376
|
-
onActionToggle:
|
377
|
-
onChipToggle:
|
378
|
-
onDelete:
|
379
|
-
onChangeMode:
|
380
|
-
onAllChipToggle:
|
381
|
-
onAllDelete:
|
376
|
+
onActionToggle: u,
|
377
|
+
onChipToggle: h,
|
378
|
+
onDelete: p,
|
379
|
+
onChangeMode: w,
|
380
|
+
onAllChipToggle: M,
|
381
|
+
onAllDelete: v
|
382
382
|
}) {
|
383
|
-
const
|
384
|
-
edit:
|
385
|
-
...
|
386
|
-
} =
|
387
|
-
return /* @__PURE__ */ D(
|
383
|
+
const S = Te(() => Ae(c, r), [c, r]), {
|
384
|
+
edit: d,
|
385
|
+
...f
|
386
|
+
} = S, g = (y) => (u(!1), p(y)), C = (y) => u(y), x = (y) => w == null ? void 0 : w(y), T = (s ?? "") in c ? s : Object.keys(S)[0], b = S[T], _ = Object.values(f);
|
387
|
+
return /* @__PURE__ */ D(ye, { sx: {
|
388
388
|
...G.container,
|
389
|
-
...
|
390
|
-
}, ...
|
391
|
-
/* @__PURE__ */ n(
|
392
|
-
/* @__PURE__ */ n(
|
393
|
-
/* @__PURE__ */ n(
|
394
|
-
!!
|
395
|
-
/* @__PURE__ */ n(
|
396
|
-
/* @__PURE__ */ n(
|
397
|
-
...
|
389
|
+
...a
|
390
|
+
}, ...m, children: [
|
391
|
+
/* @__PURE__ */ n(St, { actionProps: l, labels: i == null ? void 0 : i.action, enabled: t, onActionToggle: C, children: (b == null ? void 0 : b.icon) && /* @__PURE__ */ n(b.icon, {}) }),
|
392
|
+
/* @__PURE__ */ n(Ue, { children: (y) => /* @__PURE__ */ D(j, { children: [
|
393
|
+
/* @__PURE__ */ n(Tt, { data: _, labels: i == null ? void 0 : i.options, children: /* @__PURE__ */ n(Le, { ...y, labels: i == null ? void 0 : i.options, data: _, modeSelected: T, onChangeMode: x }) }),
|
394
|
+
!!d && /* @__PURE__ */ D(j, { children: [
|
395
|
+
/* @__PURE__ */ n(Y, {}),
|
396
|
+
/* @__PURE__ */ n(Le, { ...y, labels: i == null ? void 0 : i.options, data: [{
|
397
|
+
...d,
|
398
398
|
disabled: !e.length
|
399
399
|
}], modeSelected: T, onChangeMode: x })
|
400
400
|
] })
|
401
401
|
] }) }),
|
402
|
-
!!e.length && /* @__PURE__ */ n(
|
403
|
-
/* @__PURE__ */ n(
|
402
|
+
!!e.length && /* @__PURE__ */ n(F, { sx: G.chip.container, children: e.map((y) => /* @__PURE__ */ n($e, { value: y, labels: i == null ? void 0 : i.chip, chipProps: o, onDelete: g, onChipToggle: h }, y.id)) }),
|
403
|
+
/* @__PURE__ */ n(At, { values: e, labels: i == null ? void 0 : i.actions, onAllChipToggle: M, onAllDelete: v })
|
404
404
|
] });
|
405
405
|
}
|
406
|
-
function
|
407
|
-
var
|
408
|
-
const e =
|
409
|
-
actionProps:
|
406
|
+
function St(t) {
|
407
|
+
var w;
|
408
|
+
const e = Z(12), {
|
409
|
+
actionProps: l,
|
410
410
|
labels: o,
|
411
|
-
enabled:
|
412
|
-
children:
|
411
|
+
enabled: i,
|
412
|
+
children: c,
|
413
413
|
onActionToggle: r
|
414
|
-
} = t, s =
|
415
|
-
let
|
416
|
-
e[0] !==
|
417
|
-
let
|
418
|
-
e[3] !==
|
419
|
-
let
|
420
|
-
return e[8] !==
|
414
|
+
} = t, s = i ? "active" : "inactive", a = ((w = o == null ? void 0 : o.tooltip) == null ? void 0 : w[s]) ?? P.action.tooltip[s], m = l == null ? void 0 : l.TooltipProps;
|
415
|
+
let u;
|
416
|
+
e[0] !== i || e[1] !== r ? (u = () => r(!i), e[0] = i, e[1] = r, e[2] = u) : u = e[2];
|
417
|
+
let h;
|
418
|
+
e[3] !== a || e[4] !== c || e[5] !== i || e[6] !== u ? (h = /* @__PURE__ */ n(ae, { value: "toggle", sx: G.actions.icon, onClick: u, "aria-label": a, selected: i, children: c }), e[3] = a, e[4] = c, e[5] = i, e[6] = u, e[7] = h) : h = e[7];
|
419
|
+
let p;
|
420
|
+
return e[8] !== a || e[9] !== m || e[10] !== h ? (p = /* @__PURE__ */ n(le, { title: a, placement: "right", ...m, children: h }), e[8] = a, e[9] = m, e[10] = h, e[11] = p) : p = e[11], p;
|
421
421
|
}
|
422
|
-
function
|
422
|
+
function Ue({
|
423
423
|
TriggerProps: {
|
424
|
-
Icon: t = /* @__PURE__ */ n(
|
424
|
+
Icon: t = /* @__PURE__ */ n(je, {}),
|
425
425
|
sx: e
|
426
426
|
} = {},
|
427
|
-
MenuProps:
|
427
|
+
MenuProps: l,
|
428
428
|
children: o
|
429
429
|
}) {
|
430
|
-
const [
|
431
|
-
|
432
|
-
},
|
433
|
-
|
430
|
+
const [i, c] = Q(null), r = !!i, s = (m) => {
|
431
|
+
c(m.currentTarget);
|
432
|
+
}, a = () => {
|
433
|
+
c(null);
|
434
434
|
};
|
435
|
-
return /* @__PURE__ */ D(
|
436
|
-
/* @__PURE__ */ n(
|
435
|
+
return /* @__PURE__ */ D(j, { children: [
|
436
|
+
/* @__PURE__ */ n(ee, { sx: {
|
437
437
|
...G.options.icon,
|
438
438
|
...e
|
439
439
|
}, onClick: s, children: t }),
|
440
|
-
/* @__PURE__ */ n(
|
440
|
+
/* @__PURE__ */ n(ke, { id: "lasso-menu", anchorEl: i, open: r, onClose: a, MenuListProps: {
|
441
441
|
"aria-labelledby": "lasso-button",
|
442
442
|
sx: G.options.menu
|
443
|
-
}, ...
|
444
|
-
onClose:
|
443
|
+
}, ...l, children: /* @__PURE__ */ n("div", { children: o({
|
444
|
+
onClose: a
|
445
445
|
}) }) })
|
446
446
|
] });
|
447
447
|
}
|
448
|
-
function
|
449
|
-
var
|
450
|
-
const e =
|
451
|
-
data:
|
448
|
+
function Tt(t) {
|
449
|
+
var a;
|
450
|
+
const e = Z(5), {
|
451
|
+
data: l,
|
452
452
|
labels: o,
|
453
|
-
children:
|
453
|
+
children: i
|
454
454
|
} = t;
|
455
|
-
if (
|
455
|
+
if (l.length <= 1)
|
456
456
|
return null;
|
457
|
-
const
|
457
|
+
const c = ((a = o == null ? void 0 : o.mode) == null ? void 0 : a.title) ?? P.options.mode.title;
|
458
458
|
let r;
|
459
|
-
e[0] !==
|
459
|
+
e[0] !== c ? (r = /* @__PURE__ */ n(H, { variant: "subtitle2", color: "text.secondary", sx: G.options.title, children: c }), e[0] = c, e[1] = r) : r = e[1];
|
460
460
|
let s;
|
461
|
-
return e[2] !==
|
461
|
+
return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ D(j, { children: [
|
462
462
|
r,
|
463
|
-
|
464
|
-
] }), e[2] =
|
463
|
+
i
|
464
|
+
] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
|
465
465
|
}
|
466
|
-
function
|
466
|
+
function Le({
|
467
467
|
data: t,
|
468
468
|
modeSelected: e,
|
469
|
-
labels:
|
469
|
+
labels: l,
|
470
470
|
onChangeMode: o,
|
471
|
-
onClose:
|
471
|
+
onClose: i
|
472
472
|
}) {
|
473
|
-
const
|
474
|
-
r.preventDefault(), o == null || o(s),
|
473
|
+
const c = (r, s) => {
|
474
|
+
r.preventDefault(), o == null || o(s), i();
|
475
475
|
};
|
476
476
|
return t.map((r) => {
|
477
|
-
var
|
478
|
-
const
|
479
|
-
return /* @__PURE__ */ D(
|
480
|
-
/* @__PURE__ */ n(
|
481
|
-
/* @__PURE__ */ n(
|
477
|
+
var m;
|
478
|
+
const a = (((m = l == null ? void 0 : l.mode) == null ? void 0 : m.options) ?? P.options.mode.options)[r.value];
|
479
|
+
return /* @__PURE__ */ D(ce, { disabled: !!r.disabled, onClick: (u) => c(u, r.value), selected: r.value === e, children: [
|
480
|
+
/* @__PURE__ */ n(Be, { sx: G.options.icons, children: /* @__PURE__ */ n(Se, { children: /* @__PURE__ */ n(r.icon, {}) }) }),
|
481
|
+
/* @__PURE__ */ n(se, { children: a })
|
482
482
|
] }, r.value);
|
483
483
|
});
|
484
484
|
}
|
485
|
-
function
|
486
|
-
var
|
487
|
-
const e =
|
488
|
-
values:
|
485
|
+
function At(t) {
|
486
|
+
var w, M;
|
487
|
+
const e = Z(8), {
|
488
|
+
values: l,
|
489
489
|
labels: o,
|
490
|
-
onAllChipToggle:
|
491
|
-
onAllDelete:
|
490
|
+
onAllChipToggle: i,
|
491
|
+
onAllDelete: c
|
492
492
|
} = t;
|
493
|
-
if (
|
493
|
+
if (l.length <= 1)
|
494
494
|
return null;
|
495
|
-
const s =
|
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__ */ n(
|
495
|
+
const s = l.some(Ct) ? ((w = o == null ? void 0 : o.toggleAll) == null ? void 0 : w.active) ?? P.actions.toggleAll.active : ((M = o == null ? void 0 : o.toggleAll) == null ? void 0 : M.inactive) ?? P.actions.toggleAll.inactive, a = (o == null ? void 0 : o.deleteAll) ?? P.actions.deleteAll;
|
496
|
+
let m;
|
497
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ n(Y, { orientation: "vertical", flexItem: !0 }), e[0] = m) : m = e[0];
|
498
|
+
let u, h;
|
499
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
500
|
+
Icon: /* @__PURE__ */ n(ct, {}),
|
501
501
|
sx: G.options.more
|
502
|
-
},
|
502
|
+
}, h = {
|
503
503
|
anchorOrigin: {
|
504
504
|
vertical: "bottom",
|
505
505
|
horizontal: "right"
|
@@ -508,163 +508,163 @@ function xt(t) {
|
|
508
508
|
vertical: "top",
|
509
509
|
horizontal: "right"
|
510
510
|
}
|
511
|
-
}, e[1] =
|
512
|
-
let
|
513
|
-
return e[3] !==
|
514
|
-
|
515
|
-
/* @__PURE__ */ n(
|
516
|
-
/* @__PURE__ */ n(
|
517
|
-
|
511
|
+
}, e[1] = u, e[2] = h) : (u = e[1], h = e[2]);
|
512
|
+
let p;
|
513
|
+
return e[3] !== a || e[4] !== i || e[5] !== c || e[6] !== s ? (p = /* @__PURE__ */ D(j, { children: [
|
514
|
+
m,
|
515
|
+
/* @__PURE__ */ n(Ue, { TriggerProps: u, MenuProps: h, children: (v) => /* @__PURE__ */ D(j, { children: [
|
516
|
+
/* @__PURE__ */ n(ce, { color: "inherit", onClick: () => {
|
517
|
+
i(), v.onClose();
|
518
518
|
}, children: s }),
|
519
|
-
/* @__PURE__ */ n(
|
520
|
-
/* @__PURE__ */ n(
|
521
|
-
|
522
|
-
}, children: /* @__PURE__ */ n(
|
519
|
+
/* @__PURE__ */ n(Y, {}),
|
520
|
+
/* @__PURE__ */ n(ce, { color: "error", onClick: () => {
|
521
|
+
c(), v.onClose();
|
522
|
+
}, children: /* @__PURE__ */ n(H, { variant: "body2", color: "error", children: a }) })
|
523
523
|
] }) })
|
524
|
-
] }), e[3] =
|
524
|
+
] }), e[3] = a, e[4] = i, e[5] = c, e[6] = s, e[7] = p) : p = e[7], p;
|
525
525
|
}
|
526
|
-
function
|
526
|
+
function Ct(t) {
|
527
527
|
return t.visible;
|
528
528
|
}
|
529
|
-
function
|
529
|
+
function oo({
|
530
530
|
enabled: t,
|
531
531
|
values: e = [],
|
532
|
-
chipProps:
|
532
|
+
chipProps: l,
|
533
533
|
labels: o,
|
534
|
-
modes:
|
535
|
-
modesMapping:
|
534
|
+
modes: i,
|
535
|
+
modesMapping: c,
|
536
536
|
modeSelected: r,
|
537
537
|
BoxProps: {
|
538
538
|
sx: s,
|
539
|
-
...
|
539
|
+
...a
|
540
540
|
} = {},
|
541
|
-
onChipToggle:
|
542
|
-
onDelete:
|
543
|
-
onChangeMode:
|
544
|
-
onAllChipToggle:
|
545
|
-
onAllDelete:
|
541
|
+
onChipToggle: m,
|
542
|
+
onDelete: u,
|
543
|
+
onChangeMode: h,
|
544
|
+
onAllChipToggle: p,
|
545
|
+
onAllDelete: w
|
546
546
|
}) {
|
547
|
-
const
|
548
|
-
edit:
|
549
|
-
...
|
550
|
-
} =
|
551
|
-
T.preventDefault(),
|
552
|
-
}, C = (r ?? "") in
|
553
|
-
return /* @__PURE__ */ D(
|
547
|
+
const M = Te(() => Ae(i, c), [i, c]), {
|
548
|
+
edit: v,
|
549
|
+
...S
|
550
|
+
} = M, d = (T) => u(T), f = (T, b) => {
|
551
|
+
T.preventDefault(), h == null || h(b);
|
552
|
+
}, C = (r ?? "") in i ? r : Object.keys(M)[0], x = t ? M[C] : null, O = Object.values(S);
|
553
|
+
return /* @__PURE__ */ D(F, { sx: {
|
554
554
|
...G.container,
|
555
555
|
...s
|
556
|
-
}, ...
|
557
|
-
/* @__PURE__ */ n(
|
558
|
-
/* @__PURE__ */ n(
|
559
|
-
!!
|
560
|
-
/* @__PURE__ */ n(
|
561
|
-
/* @__PURE__ */ n(
|
562
|
-
...
|
556
|
+
}, ...a, className: "inline", children: [
|
557
|
+
/* @__PURE__ */ n(_t, { data: O, labels: o == null ? void 0 : o.options, children: /* @__PURE__ */ D(Ee, { value: x == null ? void 0 : x.value, exclusive: !0, className: "inline", sx: G.options.menu, onChange: f, children: [
|
558
|
+
/* @__PURE__ */ n(Ie, { labels: o == null ? void 0 : o.options, data: O }),
|
559
|
+
!!v && /* @__PURE__ */ D(j, { children: [
|
560
|
+
/* @__PURE__ */ n(Y, { orientation: "vertical" }),
|
561
|
+
/* @__PURE__ */ n(Ie, { labels: o == null ? void 0 : o.options, data: [{
|
562
|
+
...v,
|
563
563
|
disabled: !e.length
|
564
564
|
}] })
|
565
565
|
] })
|
566
566
|
] }) }),
|
567
|
-
/* @__PURE__ */ n(
|
568
|
-
/* @__PURE__ */ n(
|
569
|
-
!!e.length && /* @__PURE__ */ n(
|
570
|
-
/* @__PURE__ */ n(
|
567
|
+
/* @__PURE__ */ n(Y, { flexItem: !0 }),
|
568
|
+
/* @__PURE__ */ n(Dt, { hasValues: !!e.length, labels: o == null ? void 0 : o.noData }),
|
569
|
+
!!e.length && /* @__PURE__ */ n(F, { sx: G.chip.container, className: "inline", children: e.map((T) => /* @__PURE__ */ n($e, { value: T, labels: o == null ? void 0 : o.chip, chipProps: l, onDelete: d, onChipToggle: m }, T.id)) }),
|
570
|
+
/* @__PURE__ */ n(Ot, { values: e, labels: o == null ? void 0 : o.actions, onAllChipToggle: p, onAllDelete: w })
|
571
571
|
] });
|
572
572
|
}
|
573
|
-
function
|
574
|
-
var
|
575
|
-
const e =
|
576
|
-
data:
|
573
|
+
function _t(t) {
|
574
|
+
var a;
|
575
|
+
const e = Z(5), {
|
576
|
+
data: l,
|
577
577
|
labels: o,
|
578
|
-
children:
|
578
|
+
children: i
|
579
579
|
} = t;
|
580
|
-
if (
|
580
|
+
if (l.length <= 1)
|
581
581
|
return null;
|
582
|
-
const
|
582
|
+
const c = ((a = o == null ? void 0 : o.mode) == null ? void 0 : a.title) ?? P.options.mode.title;
|
583
583
|
let r;
|
584
|
-
e[0] !==
|
584
|
+
e[0] !== c ? (r = /* @__PURE__ */ n(H, { variant: "subtitle2", color: "text.secondary", sx: G.options.title, className: "inline", children: c }), e[0] = c, e[1] = r) : r = e[1];
|
585
585
|
let s;
|
586
|
-
return e[2] !==
|
586
|
+
return e[2] !== i || e[3] !== r ? (s = /* @__PURE__ */ D(j, { children: [
|
587
587
|
r,
|
588
|
-
|
589
|
-
] }), e[2] =
|
588
|
+
i
|
589
|
+
] }), e[2] = i, e[3] = r, e[4] = s) : s = e[4], s;
|
590
590
|
}
|
591
|
-
function
|
591
|
+
function Ie({
|
592
592
|
data: t,
|
593
593
|
labels: e
|
594
594
|
}) {
|
595
|
-
return t.map((
|
596
|
-
var
|
597
|
-
const
|
598
|
-
return /* @__PURE__ */ n(le, { title:
|
595
|
+
return t.map((l) => {
|
596
|
+
var c;
|
597
|
+
const i = (((c = e == null ? void 0 : e.mode) == null ? void 0 : c.options) ?? P.options.mode.options)[l.value];
|
598
|
+
return /* @__PURE__ */ n(le, { title: i, placement: "bottom", children: /* @__PURE__ */ n(ae, { disabled: !!l.disabled, value: l.value, "aria-label": l.value, children: /* @__PURE__ */ n(Se, { children: /* @__PURE__ */ n(l.icon, {}) }) }) }, l.value);
|
599
599
|
});
|
600
600
|
}
|
601
|
-
function
|
602
|
-
const e =
|
603
|
-
hasValues:
|
601
|
+
function Dt(t) {
|
602
|
+
const e = Z(7), {
|
603
|
+
hasValues: l,
|
604
604
|
labels: o
|
605
605
|
} = t;
|
606
|
-
if (
|
606
|
+
if (l)
|
607
607
|
return null;
|
608
|
-
const
|
608
|
+
const i = (o == null ? void 0 : o.title) ?? P.noData.title, c = (o == null ? void 0 : o.description) ?? P.noData.description;
|
609
609
|
let r;
|
610
|
-
e[0] !==
|
610
|
+
e[0] !== i ? (r = /* @__PURE__ */ n(H, { variant: "body1", color: "textSecondary", children: i }), e[0] = i, e[1] = r) : r = e[1];
|
611
611
|
let s;
|
612
|
-
e[2] !==
|
613
|
-
let
|
614
|
-
return e[4] !== r || e[5] !== s ? (
|
612
|
+
e[2] !== c ? (s = /* @__PURE__ */ n(H, { variant: "body2", color: "textSecondary", children: c }), e[2] = c, e[3] = s) : s = e[3];
|
613
|
+
let a;
|
614
|
+
return e[4] !== r || e[5] !== s ? (a = /* @__PURE__ */ D(j, { children: [
|
615
615
|
r,
|
616
616
|
s
|
617
|
-
] }), e[4] = r, e[5] = s, e[6] =
|
617
|
+
] }), e[4] = r, e[5] = s, e[6] = a) : a = e[6], a;
|
618
618
|
}
|
619
|
-
function
|
620
|
-
var
|
621
|
-
const e =
|
622
|
-
values:
|
619
|
+
function Ot(t) {
|
620
|
+
var p, w;
|
621
|
+
const e = Z(9), {
|
622
|
+
values: l,
|
623
623
|
labels: o,
|
624
|
-
onAllChipToggle:
|
625
|
-
onAllDelete:
|
624
|
+
onAllChipToggle: i,
|
625
|
+
onAllDelete: c
|
626
626
|
} = t;
|
627
|
-
if (
|
627
|
+
if (l.length <= 1)
|
628
628
|
return null;
|
629
|
-
const s =
|
630
|
-
let h;
|
631
|
-
e[0] !== l || e[1] !== s ? (h = /* @__PURE__ */ n(ge, { color: "inherit", onClick: l, children: s }), e[0] = l, e[1] = s, e[2] = h) : h = e[2];
|
629
|
+
const s = l.some(Lt) ? ((p = o == null ? void 0 : o.toggleAll) == null ? void 0 : p.active) ?? P.actions.toggleAll.active : ((w = o == null ? void 0 : o.toggleAll) == null ? void 0 : w.inactive) ?? P.actions.toggleAll.inactive, a = (o == null ? void 0 : o.deleteAll) ?? P.actions.deleteAll;
|
632
630
|
let m;
|
633
|
-
e[
|
634
|
-
let
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
631
|
+
e[0] !== i || e[1] !== s ? (m = /* @__PURE__ */ n(ve, { color: "inherit", onClick: i, children: s }), e[0] = i, e[1] = s, e[2] = m) : m = e[2];
|
632
|
+
let u;
|
633
|
+
e[3] !== a || e[4] !== c ? (u = /* @__PURE__ */ n(ve, { color: "error", onClick: c, children: a }), e[3] = a, e[4] = c, e[5] = u) : u = e[5];
|
634
|
+
let h;
|
635
|
+
return e[6] !== m || e[7] !== u ? (h = /* @__PURE__ */ D(F, { children: [
|
636
|
+
m,
|
637
|
+
u
|
638
|
+
] }), e[6] = m, e[7] = u, e[8] = h) : h = e[8], h;
|
639
639
|
}
|
640
|
-
function
|
640
|
+
function Lt(t) {
|
641
641
|
return t.visible;
|
642
642
|
}
|
643
|
-
function
|
644
|
-
const e =
|
645
|
-
let
|
646
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
643
|
+
function It(t) {
|
644
|
+
const e = Z(3);
|
645
|
+
let l;
|
646
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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] = l) : l = e[0];
|
647
647
|
let o;
|
648
|
-
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children:
|
648
|
+
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
|
649
649
|
}
|
650
|
-
function
|
651
|
-
const e =
|
652
|
-
let
|
653
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
650
|
+
function Rt(t) {
|
651
|
+
const e = Z(3);
|
652
|
+
let l;
|
653
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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] = l) : l = e[0];
|
654
654
|
let o;
|
655
|
-
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children:
|
655
|
+
return e[1] !== t ? (o = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
|
656
656
|
}
|
657
|
-
function
|
658
|
-
const e =
|
659
|
-
let
|
660
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
661
|
-
let
|
662
|
-
return e[2] !== t ? (
|
663
|
-
|
657
|
+
function Zt(t) {
|
658
|
+
const e = Z(4);
|
659
|
+
let l, o;
|
660
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ n("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__ */ n("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] = l, e[1] = o) : (l = e[0], o = e[1]);
|
661
|
+
let i;
|
662
|
+
return e[2] !== t ? (i = /* @__PURE__ */ D("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
|
663
|
+
l,
|
664
664
|
o
|
665
|
-
] }), e[2] = t, e[3] =
|
665
|
+
] }), e[2] = t, e[3] = i) : i = e[3], i;
|
666
666
|
}
|
667
|
-
const
|
667
|
+
const J = {
|
668
668
|
action: {
|
669
669
|
tooltip: {
|
670
670
|
active: "Click on the map to trace the line you want to measure",
|
@@ -716,7 +716,7 @@ const Y = {
|
|
716
716
|
}
|
717
717
|
}
|
718
718
|
}
|
719
|
-
},
|
719
|
+
}, kt = {
|
720
720
|
"m-km": {
|
721
721
|
short: "m-km"
|
722
722
|
},
|
@@ -744,15 +744,15 @@ const Y = {
|
|
744
744
|
feet: {
|
745
745
|
short: "ft"
|
746
746
|
}
|
747
|
-
},
|
747
|
+
}, no = {
|
748
748
|
distance: {
|
749
|
-
icon: /* @__PURE__ */ n(
|
749
|
+
icon: /* @__PURE__ */ n(It, {})
|
750
750
|
},
|
751
751
|
buffer: {
|
752
|
-
icon: /* @__PURE__ */ n(
|
752
|
+
icon: /* @__PURE__ */ n(Rt, {})
|
753
753
|
},
|
754
754
|
area: {
|
755
|
-
icon: /* @__PURE__ */ n(
|
755
|
+
icon: /* @__PURE__ */ n(Zt, {})
|
756
756
|
}
|
757
757
|
}, V = {
|
758
758
|
container: {
|
@@ -819,7 +819,7 @@ const Y = {
|
|
819
819
|
}) => t.primary.main,
|
820
820
|
backgroundColor: ({
|
821
821
|
palette: t
|
822
|
-
}) =>
|
822
|
+
}) => Xe(t.primary.main, 0.08)
|
823
823
|
},
|
824
824
|
modal: {
|
825
825
|
toggle: {
|
@@ -886,280 +886,280 @@ const Y = {
|
|
886
886
|
}
|
887
887
|
}
|
888
888
|
};
|
889
|
-
function
|
890
|
-
const e =
|
891
|
-
enabled:
|
889
|
+
function io(t) {
|
890
|
+
const e = Z(46), {
|
891
|
+
enabled: l,
|
892
892
|
actionProps: o,
|
893
|
-
labels:
|
894
|
-
modes:
|
893
|
+
labels: i,
|
894
|
+
modes: c,
|
895
895
|
modesMapping: r,
|
896
896
|
unitsMapping: s,
|
897
|
-
modeSelected:
|
898
|
-
PaperProps:
|
899
|
-
units:
|
900
|
-
unitSelected:
|
901
|
-
onActionToggle:
|
902
|
-
onChangeMode:
|
903
|
-
onChangeUnit:
|
904
|
-
} = t,
|
905
|
-
let
|
906
|
-
e[0] !==
|
907
|
-
let
|
908
|
-
e[2] !==
|
909
|
-
sx:
|
910
|
-
...
|
911
|
-
} =
|
897
|
+
modeSelected: a,
|
898
|
+
PaperProps: m,
|
899
|
+
units: u,
|
900
|
+
unitSelected: h,
|
901
|
+
onActionToggle: p,
|
902
|
+
onChangeMode: w,
|
903
|
+
onChangeUnit: M
|
904
|
+
} = t, v = s === void 0 ? kt : s;
|
905
|
+
let S;
|
906
|
+
e[0] !== m ? (S = m === void 0 ? {} : m, e[0] = m, e[1] = S) : S = e[1];
|
907
|
+
let d, f;
|
908
|
+
e[2] !== S ? ({
|
909
|
+
sx: f,
|
910
|
+
...d
|
911
|
+
} = S, e[2] = S, e[3] = d, e[4] = f) : (d = e[3], f = e[4]);
|
912
912
|
let g;
|
913
|
-
e[5] !==
|
913
|
+
e[5] !== p ? (g = (z) => p(!!z), e[5] = p, e[6] = g) : g = e[6];
|
914
914
|
const C = g;
|
915
|
-
let x,
|
916
|
-
e[7] !==
|
917
|
-
const T = x,
|
918
|
-
let
|
919
|
-
e[10] !== T || e[11] !==
|
920
|
-
const
|
915
|
+
let x, O;
|
916
|
+
e[7] !== c || e[8] !== r ? (O = Ae(c, r), e[7] = c, e[8] = r, e[9] = O) : O = e[9], x = O;
|
917
|
+
const T = x, b = (a ?? "") in T;
|
918
|
+
let _;
|
919
|
+
e[10] !== T || e[11] !== b || e[12] !== a ? (_ = b ? a : Object.keys(T)[0], e[10] = T, e[11] = b, e[12] = a, e[13] = _) : _ = e[13];
|
920
|
+
const y = _, L = T[y];
|
921
921
|
let I;
|
922
|
-
const
|
923
|
-
let
|
924
|
-
e[14] !==
|
925
|
-
[
|
926
|
-
}, e[14] =
|
927
|
-
const E =
|
928
|
-
let
|
929
|
-
if (e[18] !== E || e[19] !==
|
930
|
-
let
|
931
|
-
e[21] !==
|
932
|
-
...
|
933
|
-
...
|
934
|
-
}), e[21] =
|
922
|
+
const A = u[y];
|
923
|
+
let R;
|
924
|
+
e[14] !== y || e[15] !== A || e[16] !== u ? (R = Object.keys(u).length >= 1 ? u : {
|
925
|
+
[y]: A.slice(0, 1)
|
926
|
+
}, e[14] = y, e[15] = A, e[16] = u, e[17] = R) : R = e[17];
|
927
|
+
const E = R[y];
|
928
|
+
let B;
|
929
|
+
if (e[18] !== E || e[19] !== v) {
|
930
|
+
let z;
|
931
|
+
e[21] !== v ? (z = (we) => ({
|
932
|
+
...we,
|
933
|
+
...v[we.value]
|
934
|
+
}), e[21] = v, e[22] = z) : z = e[22], B = E.map(z), e[18] = E, e[19] = v, e[20] = B;
|
935
935
|
} else
|
936
|
-
|
937
|
-
I =
|
938
|
-
const
|
936
|
+
B = e[20];
|
937
|
+
I = B;
|
938
|
+
const N = I;
|
939
939
|
let $;
|
940
|
-
e[23] !==
|
940
|
+
e[23] !== f ? ($ = {
|
941
941
|
...V.container,
|
942
|
-
...
|
943
|
-
}, e[23] =
|
944
|
-
const te =
|
945
|
-
let H;
|
946
|
-
e[25] !== o || e[26] !== i || e[27] !== C || e[28] !== te || e[29] !== oe ? (H = /* @__PURE__ */ n(Ot, { actionProps: o, labels: te, enabled: i, onActionToggle: C, children: oe }), e[25] = o, e[26] = i, e[27] = C, e[28] = te, e[29] = oe, e[30] = H) : H = e[30];
|
947
|
-
const ne = l == null ? void 0 : l.options;
|
942
|
+
...f
|
943
|
+
}, e[23] = f, e[24] = $) : $ = e[24];
|
944
|
+
const te = i == null ? void 0 : i.action, oe = L == null ? void 0 : L.icon;
|
948
945
|
let W;
|
949
|
-
e[
|
946
|
+
e[25] !== o || e[26] !== l || e[27] !== C || e[28] !== te || e[29] !== oe ? (W = /* @__PURE__ */ n(Bt, { actionProps: o, labels: te, enabled: l, onActionToggle: C, children: oe }), e[25] = o, e[26] = l, e[27] = C, e[28] = te, e[29] = oe, e[30] = W) : W = e[30];
|
947
|
+
const ne = i == null ? void 0 : i.options;
|
950
948
|
let X;
|
951
|
-
e[
|
952
|
-
H,
|
953
|
-
W
|
954
|
-
] }), e[39] = H, e[40] = W, e[41] = X) : X = e[41];
|
949
|
+
e[31] !== N || e[32] !== T || e[33] !== y || e[34] !== w || e[35] !== M || e[36] !== ne || e[37] !== h ? (X = /* @__PURE__ */ n(Et, { labels: ne, modes: T, modeSelected: y, units: N, unitSelected: h, onChangeMode: w, onChangeUnit: M }), e[31] = N, e[32] = T, e[33] = y, e[34] = w, e[35] = M, e[36] = ne, e[37] = h, e[38] = X) : X = e[38];
|
955
950
|
let q;
|
956
|
-
|
951
|
+
e[39] !== W || e[40] !== X ? (q = /* @__PURE__ */ D(F, { children: [
|
952
|
+
W,
|
953
|
+
X
|
954
|
+
] }), e[39] = W, e[40] = X, e[41] = q) : q = e[41];
|
955
|
+
let K;
|
956
|
+
return e[42] !== d || e[43] !== $ || e[44] !== q ? (K = /* @__PURE__ */ n(ye, { sx: $, ...d, children: q }), e[42] = d, e[43] = $, e[44] = q, e[45] = K) : K = e[45], K;
|
957
957
|
}
|
958
|
-
function
|
959
|
-
var
|
960
|
-
const e =
|
961
|
-
actionProps:
|
958
|
+
function Bt(t) {
|
959
|
+
var w;
|
960
|
+
const e = Z(12), {
|
961
|
+
actionProps: l,
|
962
962
|
labels: o,
|
963
|
-
enabled:
|
964
|
-
children:
|
963
|
+
enabled: i,
|
964
|
+
children: c,
|
965
965
|
onActionToggle: r
|
966
|
-
} = t, s =
|
967
|
-
let
|
968
|
-
e[0] !==
|
969
|
-
let
|
970
|
-
e[3] !==
|
971
|
-
let
|
972
|
-
return e[8] !==
|
966
|
+
} = t, s = i ? "active" : "inactive", a = ((w = o == null ? void 0 : o.tooltip) == null ? void 0 : w[s]) ?? J.action.tooltip[s], m = l == null ? void 0 : l.TooltipProps;
|
967
|
+
let u;
|
968
|
+
e[0] !== i || e[1] !== r ? (u = () => r(!i), e[0] = i, e[1] = r, e[2] = u) : u = e[2];
|
969
|
+
let h;
|
970
|
+
e[3] !== a || e[4] !== c || e[5] !== i || e[6] !== u ? (h = /* @__PURE__ */ n(ae, { value: "toggle", sx: V.actions.icon, onClick: u, "aria-label": a, selected: i, children: c }), e[3] = a, e[4] = c, e[5] = i, e[6] = u, e[7] = h) : h = e[7];
|
971
|
+
let p;
|
972
|
+
return e[8] !== a || e[9] !== m || e[10] !== h ? (p = /* @__PURE__ */ n(le, { title: a, placement: "right", ...m, children: h }), e[8] = a, e[9] = m, e[10] = h, e[11] = p) : p = e[11], p;
|
973
973
|
}
|
974
|
-
function
|
975
|
-
var
|
976
|
-
const e =
|
977
|
-
modes:
|
974
|
+
function Et(t) {
|
975
|
+
var N, $, te, oe, W, ne, X, q;
|
976
|
+
const e = Z(68), {
|
977
|
+
modes: l,
|
978
978
|
modeSelected: o,
|
979
|
-
units:
|
980
|
-
unitSelected:
|
979
|
+
units: i,
|
980
|
+
unitSelected: c,
|
981
981
|
labels: r,
|
982
982
|
onChangeMode: s,
|
983
|
-
onChangeUnit:
|
984
|
-
} = t, [
|
985
|
-
let
|
986
|
-
if (e[0] !==
|
987
|
-
|
983
|
+
onChangeUnit: a
|
984
|
+
} = t, [m, u] = Q(null), [h, p] = Q(!1);
|
985
|
+
let w, M, v, S, d, f, g, C, x, O, T, b, _, y, L, I;
|
986
|
+
if (e[0] !== m || e[1] !== ((N = r == null ? void 0 : r.mode) == null ? void 0 : N.options) || e[2] !== (($ = r == null ? void 0 : r.mode) == null ? void 0 : $.title) || e[3] !== ((te = r == null ? void 0 : r.units) == null ? void 0 : te.title) || e[4] !== o || e[5] !== l || e[6] !== s || e[7] !== a || e[8] !== c || e[9] !== i) {
|
987
|
+
_ = Symbol.for("react.early_return_sentinel");
|
988
988
|
e: {
|
989
|
-
const
|
990
|
-
let
|
991
|
-
if (e[26] !==
|
992
|
-
|
989
|
+
const K = Object.values(l);
|
990
|
+
let z;
|
991
|
+
if (e[26] !== i ? (z = Object.values(i), e[26] = i, e[27] = z) : z = e[27], I = z, !(K.length > 1 || I.length > 1)) {
|
992
|
+
_ = null;
|
993
993
|
break e;
|
994
994
|
}
|
995
|
-
const
|
996
|
-
let se;
|
997
|
-
e[28] === Symbol.for("react.memo_cache_sentinel") ? (se = (U) => {
|
998
|
-
m(U.currentTarget);
|
999
|
-
}, e[28] = se) : se = e[28];
|
1000
|
-
const Be = se;
|
995
|
+
const Ve = !!m;
|
1001
996
|
let de;
|
1002
|
-
e[
|
1003
|
-
|
1004
|
-
}, e[
|
1005
|
-
const
|
997
|
+
e[28] === Symbol.for("react.memo_cache_sentinel") ? (de = (U) => {
|
998
|
+
u(U.currentTarget);
|
999
|
+
}, e[28] = de) : de = e[28];
|
1000
|
+
const Ge = de;
|
1006
1001
|
let ue;
|
1007
|
-
e[
|
1008
|
-
|
1009
|
-
}, e[
|
1010
|
-
const
|
1002
|
+
e[29] === Symbol.for("react.memo_cache_sentinel") ? (ue = () => {
|
1003
|
+
u(null);
|
1004
|
+
}, e[29] = ue) : ue = e[29];
|
1005
|
+
const Ce = ue;
|
1011
1006
|
let me;
|
1012
|
-
e[
|
1013
|
-
|
1014
|
-
}, e[
|
1007
|
+
e[30] !== s ? (me = (U, _e) => {
|
1008
|
+
U.preventDefault(), s(_e.value), Ce();
|
1009
|
+
}, e[30] = s, e[31] = me) : me = e[31];
|
1010
|
+
const Fe = me;
|
1015
1011
|
let he;
|
1016
|
-
e[
|
1017
|
-
|
1018
|
-
}, e[
|
1012
|
+
e[32] === Symbol.for("react.memo_cache_sentinel") ? (he = () => {
|
1013
|
+
p(!0);
|
1014
|
+
}, e[32] = he) : he = e[32], v = he;
|
1019
1015
|
let fe;
|
1020
|
-
e[
|
1021
|
-
|
1022
|
-
}, e[
|
1023
|
-
const $e = ((oe = r == null ? void 0 : r.mode) == null ? void 0 : oe.title) ?? Y.options.mode.title;
|
1024
|
-
O = ((H = r == null ? void 0 : r.units) == null ? void 0 : H.title) ?? Y.options.units.title, a = q.length > 1 && I.length > 1;
|
1016
|
+
e[33] === Symbol.for("react.memo_cache_sentinel") ? (fe = () => {
|
1017
|
+
p(!1);
|
1018
|
+
}, e[33] = fe) : fe = e[33], S = fe;
|
1025
1019
|
let pe;
|
1026
|
-
e[
|
1020
|
+
e[34] !== a ? (pe = (U) => {
|
1021
|
+
S(), a(U);
|
1022
|
+
}, e[34] = a, e[35] = pe) : pe = e[35], M = pe;
|
1023
|
+
const Ne = ((oe = r == null ? void 0 : r.mode) == null ? void 0 : oe.title) ?? J.options.mode.title;
|
1024
|
+
L = ((W = r == null ? void 0 : r.units) == null ? void 0 : W.title) ?? J.options.units.title, d = K.length > 1 && I.length > 1;
|
1025
|
+
let ge;
|
1026
|
+
e[36] !== c || e[37] !== i ? (ge = i.find((U) => U.value === c) ?? i[0], e[36] = c, e[37] = i, e[38] = ge) : ge = e[38], y = ge, e[39] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ n(ee, { sx: V.options.icon, onClick: Ge, children: /* @__PURE__ */ n(je, {}) }), e[39] = b) : b = e[39], w = ke, g = "measurement-menu", C = m, x = Ve, O = Ce, e[40] === Symbol.for("react.memo_cache_sentinel") ? (T = {
|
1027
1027
|
"aria-labelledby": "basic-button",
|
1028
1028
|
sx: V.options.menu
|
1029
|
-
}, e[40] = T) : T = e[40],
|
1030
|
-
/* @__PURE__ */ n(
|
1031
|
-
|
1032
|
-
var
|
1033
|
-
const
|
1034
|
-
return /* @__PURE__ */ D(
|
1035
|
-
/* @__PURE__ */ n(
|
1036
|
-
/* @__PURE__ */ n(
|
1029
|
+
}, e[40] = T) : T = e[40], f = K.length > 1 && /* @__PURE__ */ D(j, { children: [
|
1030
|
+
/* @__PURE__ */ n(H, { variant: "subtitle2", color: "text.secondary", sx: V.options.title, children: Ne }),
|
1031
|
+
K.map((U) => {
|
1032
|
+
var De;
|
1033
|
+
const ze = (((De = r == null ? void 0 : r.mode) == null ? void 0 : De.options) ?? J.options.mode.options)[U.value];
|
1034
|
+
return /* @__PURE__ */ D(ce, { onClick: (He) => Fe(He, U), selected: U.value === o, children: [
|
1035
|
+
/* @__PURE__ */ n(Be, { sx: V.options.icons, children: /* @__PURE__ */ n(Se, { children: U.icon }) }),
|
1036
|
+
/* @__PURE__ */ n(se, { children: ze })
|
1037
1037
|
] }, U.value);
|
1038
1038
|
})
|
1039
1039
|
] });
|
1040
1040
|
}
|
1041
|
-
e[0] =
|
1041
|
+
e[0] = m, e[1] = (ne = r == null ? void 0 : r.mode) == null ? void 0 : ne.options, e[2] = (X = r == null ? void 0 : r.mode) == null ? void 0 : X.title, e[3] = (q = r == null ? void 0 : r.units) == null ? void 0 : q.title, e[4] = o, e[5] = l, e[6] = s, e[7] = a, e[8] = c, e[9] = i, e[10] = w, e[11] = M, e[12] = v, e[13] = S, e[14] = d, e[15] = f, e[16] = g, e[17] = C, e[18] = x, e[19] = O, e[20] = T, e[21] = b, e[22] = _, e[23] = y, e[24] = L, e[25] = I;
|
1042
1042
|
} else
|
1043
|
-
|
1044
|
-
if (
|
1045
|
-
return
|
1046
|
-
let
|
1047
|
-
e[41] !==
|
1048
|
-
let
|
1049
|
-
e[43] !==
|
1050
|
-
/* @__PURE__ */ D(
|
1051
|
-
/* @__PURE__ */ n(
|
1052
|
-
/* @__PURE__ */ n(
|
1043
|
+
w = e[10], M = e[11], v = e[12], S = e[13], d = e[14], f = e[15], g = e[16], C = e[17], x = e[18], O = e[19], T = e[20], b = e[21], _ = e[22], y = e[23], L = e[24], I = e[25];
|
1044
|
+
if (_ !== Symbol.for("react.early_return_sentinel"))
|
1045
|
+
return _;
|
1046
|
+
let A;
|
1047
|
+
e[41] !== d ? (A = d && /* @__PURE__ */ n(Y, {}), e[41] = d, e[42] = A) : A = e[42];
|
1048
|
+
let R;
|
1049
|
+
e[43] !== M || e[44] !== v || e[45] !== S || e[46] !== r || e[47] !== h || e[48] !== y || e[49] !== L || e[50] !== i || e[51] !== I.length ? (R = I.length > 1 && /* @__PURE__ */ D(j, { children: [
|
1050
|
+
/* @__PURE__ */ D(ce, { onClick: v, children: [
|
1051
|
+
/* @__PURE__ */ n(se, { children: L }),
|
1052
|
+
/* @__PURE__ */ n(H, { variant: "caption", fontWeight: 500, sx: V.options.tag, children: y.short })
|
1053
1053
|
] }),
|
1054
|
-
/* @__PURE__ */ n(
|
1055
|
-
] }), e[43] =
|
1056
|
-
let B;
|
1057
|
-
e[53] !== u || e[54] !== Z || e[55] !== L ? (B = /* @__PURE__ */ D("div", { children: [
|
1058
|
-
u,
|
1059
|
-
L,
|
1060
|
-
Z
|
1061
|
-
] }), e[53] = u, e[54] = Z, e[55] = L, e[56] = B) : B = e[56];
|
1062
|
-
let E;
|
1063
|
-
e[57] !== p || e[58] !== B || e[59] !== g || e[60] !== C || e[61] !== x || e[62] !== _ || e[63] !== T ? (E = /* @__PURE__ */ n(p, { id: g, anchorEl: C, open: x, onClose: _, MenuListProps: T, children: B }), e[57] = p, e[58] = B, e[59] = g, e[60] = C, e[61] = x, e[62] = _, e[63] = T, e[64] = E) : E = e[64];
|
1054
|
+
/* @__PURE__ */ n(jt, { open: h, labels: r, units: i, unitSelectedValue: y, onClose: S, onSubmit: M })
|
1055
|
+
] }), e[43] = M, e[44] = v, e[45] = S, e[46] = r, e[47] = h, e[48] = y, e[49] = L, e[50] = i, e[51] = I.length, e[52] = R) : R = e[52];
|
1064
1056
|
let k;
|
1065
|
-
|
1066
|
-
|
1057
|
+
e[53] !== f || e[54] !== R || e[55] !== A ? (k = /* @__PURE__ */ D("div", { children: [
|
1058
|
+
f,
|
1059
|
+
A,
|
1060
|
+
R
|
1061
|
+
] }), e[53] = f, e[54] = R, e[55] = A, e[56] = k) : k = e[56];
|
1062
|
+
let E;
|
1063
|
+
e[57] !== w || e[58] !== k || e[59] !== g || e[60] !== C || e[61] !== x || e[62] !== O || e[63] !== T ? (E = /* @__PURE__ */ n(w, { id: g, anchorEl: C, open: x, onClose: O, MenuListProps: T, children: k }), e[57] = w, e[58] = k, e[59] = g, e[60] = C, e[61] = x, e[62] = O, e[63] = T, e[64] = E) : E = e[64];
|
1064
|
+
let B;
|
1065
|
+
return e[65] !== E || e[66] !== b ? (B = /* @__PURE__ */ D(j, { children: [
|
1066
|
+
b,
|
1067
1067
|
E
|
1068
|
-
] }), e[65] = E, e[66] =
|
1068
|
+
] }), e[65] = E, e[66] = b, e[67] = B) : B = e[67], B;
|
1069
1069
|
}
|
1070
|
-
function
|
1070
|
+
function jt({
|
1071
1071
|
open: t,
|
1072
1072
|
labels: e,
|
1073
|
-
units:
|
1073
|
+
units: l,
|
1074
1074
|
unitSelectedValue: o,
|
1075
|
-
onClose:
|
1076
|
-
onSubmit:
|
1075
|
+
onClose: i,
|
1076
|
+
onSubmit: c
|
1077
1077
|
}) {
|
1078
|
-
var
|
1079
|
-
const [r, s] =
|
1080
|
-
s(
|
1081
|
-
},
|
1082
|
-
return /* @__PURE__ */ D(
|
1078
|
+
var S, d, f, g, C, x, O, T;
|
1079
|
+
const [r, s] = Q("metric"), a = Te(() => l.filter((b) => b.system === r), [r, l]), m = (b, _) => {
|
1080
|
+
s(_);
|
1081
|
+
}, u = ((d = (S = e == null ? void 0 : e.units) == null ? void 0 : S.modal) == null ? void 0 : d.options) ?? J.options.units.modal.options, h = u[r].options, p = ((g = (f = e == null ? void 0 : e.units) == null ? void 0 : f.modal) == null ? void 0 : g.title) ?? J.options.units.modal.title, w = ((x = (C = e == null ? void 0 : e.units) == null ? void 0 : C.modal) == null ? void 0 : x.subtitle) ?? J.options.units.modal.subtitle, M = ((T = (O = e == null ? void 0 : e.units) == null ? void 0 : O.modal) == null ? void 0 : T.apply) ?? J.options.units.modal.apply, v = o.system === r ? o : a[0];
|
1082
|
+
return /* @__PURE__ */ D(qe, { open: t, component: F, onClose: i, maxWidth: "xs", PaperProps: {
|
1083
1083
|
component: "form",
|
1084
|
-
onSubmit: (
|
1085
|
-
|
1086
|
-
const
|
1087
|
-
|
1084
|
+
onSubmit: (b) => {
|
1085
|
+
b.preventDefault();
|
1086
|
+
const _ = new FormData(b.currentTarget);
|
1087
|
+
c(_.get("unit-value"));
|
1088
1088
|
}
|
1089
1089
|
}, children: [
|
1090
|
-
/* @__PURE__ */ D(
|
1091
|
-
|
1092
|
-
/* @__PURE__ */ n(
|
1090
|
+
/* @__PURE__ */ D(Ke, { sx: V.options.modal.title, children: [
|
1091
|
+
p,
|
1092
|
+
/* @__PURE__ */ n(ee, { onClick: i, children: /* @__PURE__ */ n(st, {}) })
|
1093
1093
|
] }),
|
1094
|
-
/* @__PURE__ */ D(
|
1095
|
-
/* @__PURE__ */ n(
|
1096
|
-
/* @__PURE__ */ D(
|
1097
|
-
/* @__PURE__ */ n(ae, { value: "metric", children:
|
1098
|
-
/* @__PURE__ */ n(ae, { value: "imperial", children:
|
1094
|
+
/* @__PURE__ */ D(Ye, { sx: V.options.modal.content, children: [
|
1095
|
+
/* @__PURE__ */ n(H, { sx: V.options.modal.subtitle, children: w }),
|
1096
|
+
/* @__PURE__ */ D(Ee, { color: "primary", value: r, exclusive: !0, fullWidth: !0, onChange: m, "aria-label": "system", sx: V.options.modal.toggle, children: [
|
1097
|
+
/* @__PURE__ */ n(ae, { value: "metric", children: u.metric.title }),
|
1098
|
+
/* @__PURE__ */ n(ae, { value: "imperial", children: u.imperial.title })
|
1099
1099
|
] }),
|
1100
|
-
/* @__PURE__ */ n(
|
1101
|
-
const
|
1102
|
-
return /* @__PURE__ */ n(
|
1103
|
-
}) }) },
|
1100
|
+
/* @__PURE__ */ n(Je, { children: /* @__PURE__ */ n(Qe, { "aria-labelledby": "unit-value", defaultValue: v == null ? void 0 : v.value, name: "unit-value", sx: V.options.modal.optionsGroup, children: a.map((b) => {
|
1101
|
+
const _ = h[b.value];
|
1102
|
+
return /* @__PURE__ */ n(et, { value: b.value, control: /* @__PURE__ */ n(tt, {}), label: _ }, b.value);
|
1103
|
+
}) }) }, v == null ? void 0 : v.value)
|
1104
1104
|
] }),
|
1105
|
-
/* @__PURE__ */ n(
|
1105
|
+
/* @__PURE__ */ n(ot, { sx: V.options.modal.actions, children: /* @__PURE__ */ n(ve, { variant: "contained", type: "submit", children: M }) })
|
1106
1106
|
] });
|
1107
1107
|
}
|
1108
|
-
const
|
1108
|
+
const Pt = {
|
1109
1109
|
enabled: "Show your current location",
|
1110
1110
|
disabled: "Location unavailable"
|
1111
|
-
},
|
1112
|
-
function
|
1113
|
-
const e =
|
1114
|
-
disabled:
|
1111
|
+
}, $t = "geolocation";
|
1112
|
+
function lo(t) {
|
1113
|
+
const e = Z(25), {
|
1114
|
+
disabled: l,
|
1115
1115
|
labels: o,
|
1116
|
-
PaperProps:
|
1117
|
-
TooltipProps:
|
1116
|
+
PaperProps: i,
|
1117
|
+
TooltipProps: c,
|
1118
1118
|
watch: r,
|
1119
1119
|
onChange: s,
|
1120
|
-
onError:
|
1121
|
-
} = t,
|
1122
|
-
let
|
1123
|
-
e[0] !==
|
1120
|
+
onError: a
|
1121
|
+
} = t, m = ft(null), u = "geolocation" in navigator, [h, p] = Q(u);
|
1122
|
+
let w, M;
|
1123
|
+
e[0] !== a ? (w = () => (u && navigator.permissions.query({
|
1124
1124
|
name: "geolocation"
|
1125
|
-
}).then((
|
1126
|
-
|
1127
|
-
|
1125
|
+
}).then((A) => {
|
1126
|
+
p(A.state === "granted"), A.onchange = () => {
|
1127
|
+
p(A.state === "granted");
|
1128
1128
|
};
|
1129
|
-
}).catch((
|
1130
|
-
|
1129
|
+
}).catch((A) => {
|
1130
|
+
p(!1), a == null || a(A);
|
1131
1131
|
}), () => {
|
1132
|
-
|
1133
|
-
}),
|
1134
|
-
let
|
1135
|
-
e[3] !== s ? (
|
1136
|
-
s(
|
1137
|
-
}, e[3] = s, e[4] =
|
1138
|
-
const
|
1139
|
-
let
|
1140
|
-
e[5] !==
|
1141
|
-
|
1142
|
-
}, e[5] =
|
1143
|
-
const
|
1132
|
+
m.current && navigator.geolocation.clearWatch(m.current);
|
1133
|
+
}), M = [u, a], e[0] = a, e[1] = w, e[2] = M) : (w = e[1], M = e[2]), Pe(w, M);
|
1134
|
+
let v;
|
1135
|
+
e[3] !== s ? (v = (A) => {
|
1136
|
+
s(A.coords);
|
1137
|
+
}, e[3] = s, e[4] = v) : v = e[4];
|
1138
|
+
const S = v;
|
1139
|
+
let d;
|
1140
|
+
e[5] !== a ? (d = (A) => {
|
1141
|
+
p(!1), a == null || a(A);
|
1142
|
+
}, e[5] = a, e[6] = d) : d = e[6];
|
1143
|
+
const f = d;
|
1144
1144
|
let g;
|
1145
|
-
e[7] !==
|
1146
|
-
if (
|
1147
|
-
|
1145
|
+
e[7] !== f || e[8] !== S || e[9] !== r ? (g = () => {
|
1146
|
+
if (m.current && navigator.geolocation.clearWatch(m.current), r) {
|
1147
|
+
m.current = navigator.geolocation.watchPosition(S, f);
|
1148
1148
|
return;
|
1149
1149
|
}
|
1150
|
-
navigator.geolocation.getCurrentPosition(
|
1151
|
-
}, e[7] =
|
1152
|
-
const C = g,
|
1153
|
-
let
|
1154
|
-
e[11] !==
|
1155
|
-
let
|
1156
|
-
e[13] !== C || e[14] !== T || e[15] !==
|
1157
|
-
let
|
1158
|
-
e[18] !==
|
1150
|
+
navigator.geolocation.getCurrentPosition(S, f);
|
1151
|
+
}, e[7] = f, e[8] = S, e[9] = r, e[10] = g) : g = e[10];
|
1152
|
+
const C = g, O = ((o == null ? void 0 : o.tooltip) ?? Pt)[h ? "enabled" : "disabled"], T = (o == null ? void 0 : o.ariaLabel) ?? $t, b = !u || l;
|
1153
|
+
let _;
|
1154
|
+
e[11] !== h ? (_ = h ? /* @__PURE__ */ n(at, {}) : /* @__PURE__ */ n(dt, {}), e[11] = h, e[12] = _) : _ = e[12];
|
1155
|
+
let y;
|
1156
|
+
e[13] !== C || e[14] !== T || e[15] !== b || e[16] !== _ ? (y = /* @__PURE__ */ n(ee, { onClick: C, "aria-label": T, disabled: b, children: _ }), e[13] = C, e[14] = T, e[15] = b, e[16] = _, e[17] = y) : y = e[17];
|
1157
|
+
let L;
|
1158
|
+
e[18] !== c || e[19] !== y || e[20] !== O ? (L = /* @__PURE__ */ n(le, { arrow: !0, placement: "right", title: O, ...c, children: y }), e[18] = c, e[19] = y, e[20] = O, e[21] = L) : L = e[21];
|
1159
1159
|
let I;
|
1160
|
-
return e[22] !==
|
1160
|
+
return e[22] !== i || e[23] !== L ? (I = /* @__PURE__ */ n(ye, { ...i, children: L }), e[22] = i, e[23] = L, e[24] = I) : I = e[24], I;
|
1161
1161
|
}
|
1162
|
-
const
|
1162
|
+
const Me = {
|
1163
1163
|
zoom: {
|
1164
1164
|
position: "relative",
|
1165
1165
|
height: ({
|
@@ -1191,88 +1191,178 @@ const xe = {
|
|
1191
1191
|
position: "absolute"
|
1192
1192
|
}
|
1193
1193
|
};
|
1194
|
-
function
|
1195
|
-
const e =
|
1196
|
-
zoom:
|
1194
|
+
function ro(t) {
|
1195
|
+
const e = Z(40), {
|
1196
|
+
zoom: l,
|
1197
1197
|
disabled: o,
|
1198
|
-
direction:
|
1199
|
-
isLoading:
|
1198
|
+
direction: i,
|
1199
|
+
isLoading: c,
|
1200
1200
|
maxZoom: r,
|
1201
1201
|
minZoom: s,
|
1202
|
-
PaperProps:
|
1203
|
-
ResetViewProps:
|
1204
|
-
showZoom:
|
1205
|
-
onChange:
|
1206
|
-
onReset:
|
1207
|
-
} = t,
|
1208
|
-
let
|
1209
|
-
e[0] !==
|
1210
|
-
Icon:
|
1211
|
-
} :
|
1212
|
-
const
|
1202
|
+
PaperProps: a,
|
1203
|
+
ResetViewProps: m,
|
1204
|
+
showZoom: u,
|
1205
|
+
onChange: h,
|
1206
|
+
onReset: p
|
1207
|
+
} = t, w = i === void 0 ? "vertical" : i, M = r === void 0 ? 24 : r, v = s === void 0 ? 0 : s;
|
1208
|
+
let S;
|
1209
|
+
e[0] !== m ? (S = m === void 0 ? {
|
1210
|
+
Icon: ut
|
1211
|
+
} : m, e[0] = m, e[1] = S) : S = e[1];
|
1212
|
+
const d = S, f = u === void 0 ? !0 : u;
|
1213
1213
|
let g;
|
1214
|
-
e[2] !==
|
1215
|
-
const $ = Math.min(
|
1216
|
-
|
1217
|
-
}, e[2] =
|
1214
|
+
e[2] !== M || e[3] !== h || e[4] !== l ? (g = () => {
|
1215
|
+
const $ = Math.min(M, l + 1);
|
1216
|
+
h($);
|
1217
|
+
}, e[2] = M, e[3] = h, e[4] = l, e[5] = g) : g = e[5];
|
1218
1218
|
const C = g;
|
1219
1219
|
let x;
|
1220
|
-
e[6] !==
|
1221
|
-
const $ = Math.max(
|
1222
|
-
|
1223
|
-
}, e[6] =
|
1224
|
-
const
|
1225
|
-
let
|
1226
|
-
e[10] !==
|
1227
|
-
...
|
1228
|
-
flexDirection:
|
1229
|
-
}, e[10] =
|
1230
|
-
let O;
|
1231
|
-
e[12] !== a || e[13] !== o || e[14] !== w || e[15] !== v ? (O = v && /* @__PURE__ */ D(P, { children: [
|
1232
|
-
/* @__PURE__ */ n(Q, { onClick: v, "aria-label": "Decrease zoom", disabled: o, children: /* @__PURE__ */ n(a.Icon, {}) }),
|
1233
|
-
/* @__PURE__ */ n(K, { orientation: w, flexItem: !0 })
|
1234
|
-
] }), e[12] = a, e[13] = o, e[14] = w, e[15] = v, e[16] = O) : O = e[16];
|
1235
|
-
let I;
|
1236
|
-
e[17] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ n(rt, {}), e[17] = I) : I = e[17];
|
1220
|
+
e[6] !== v || e[7] !== h || e[8] !== l ? (x = () => {
|
1221
|
+
const $ = Math.max(v, l - 1);
|
1222
|
+
h($);
|
1223
|
+
}, e[6] = v, e[7] = h, e[8] = l, e[9] = x) : x = e[9];
|
1224
|
+
const O = x, T = Math.floor(l), b = w === "vertical" ? "horizontal" : "vertical", _ = w === "vertical" ? "column" : "row";
|
1225
|
+
let y;
|
1226
|
+
e[10] !== _ ? (y = {
|
1227
|
+
...Me.paper,
|
1228
|
+
flexDirection: _
|
1229
|
+
}, e[10] = _, e[11] = y) : y = e[11];
|
1237
1230
|
let L;
|
1238
|
-
e[
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1231
|
+
e[12] !== d || e[13] !== o || e[14] !== b || e[15] !== p ? (L = p && /* @__PURE__ */ D(j, { children: [
|
1232
|
+
/* @__PURE__ */ n(ee, { onClick: p, "aria-label": "Decrease zoom", disabled: o, children: /* @__PURE__ */ n(d.Icon, {}) }),
|
1233
|
+
/* @__PURE__ */ n(Y, { orientation: b, flexItem: !0 })
|
1234
|
+
] }), e[12] = d, e[13] = o, e[14] = b, e[15] = p, e[16] = L) : L = e[16];
|
1235
|
+
let I;
|
1236
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ n(mt, {}), e[17] = I) : I = e[17];
|
1237
|
+
let A;
|
1238
|
+
e[18] !== o || e[19] !== C ? (A = /* @__PURE__ */ n(ee, { onClick: C, "aria-label": "Increase zoom", disabled: o, children: I }), e[18] = o, e[19] = C, e[20] = A) : A = e[20];
|
1239
|
+
let R;
|
1240
|
+
e[21] !== b ? (R = /* @__PURE__ */ n(Y, { orientation: b, flexItem: !0 }), e[21] = b, e[22] = R) : R = e[22];
|
1241
|
+
let k;
|
1242
|
+
e[23] !== T || e[24] !== b || e[25] !== c || e[26] !== f ? (k = f && /* @__PURE__ */ D(j, { children: [
|
1243
|
+
/* @__PURE__ */ D(F, { sx: Me.zoom, children: [
|
1244
|
+
/* @__PURE__ */ n(H, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: T }),
|
1245
|
+
c && /* @__PURE__ */ n(nt, { sx: Me.circularProgress, variant: "indeterminate", size: 24 })
|
1246
1246
|
] }),
|
1247
|
-
/* @__PURE__ */ n(
|
1248
|
-
] }), e[23] = T, e[24] =
|
1247
|
+
/* @__PURE__ */ n(Y, { orientation: b, flexItem: !0 })
|
1248
|
+
] }), e[23] = T, e[24] = b, e[25] = c, e[26] = f, e[27] = k) : k = e[27];
|
1249
1249
|
let E;
|
1250
|
-
e[28] === Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ n(
|
1251
|
-
let
|
1252
|
-
e[29] !==
|
1253
|
-
let
|
1254
|
-
return e[32] !==
|
1255
|
-
O,
|
1250
|
+
e[28] === Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ n(ht, {}), e[28] = E) : E = e[28];
|
1251
|
+
let B;
|
1252
|
+
e[29] !== O || e[30] !== o ? (B = /* @__PURE__ */ n(ee, { onClick: O, "aria-label": "Decrease zoom", disabled: o, children: E }), e[29] = O, e[30] = o, e[31] = B) : B = e[31];
|
1253
|
+
let N;
|
1254
|
+
return e[32] !== a || e[33] !== y || e[34] !== L || e[35] !== A || e[36] !== R || e[37] !== k || e[38] !== B ? (N = /* @__PURE__ */ D(ye, { sx: y, ...a, children: [
|
1256
1255
|
L,
|
1257
|
-
|
1258
|
-
|
1259
|
-
k
|
1260
|
-
|
1256
|
+
A,
|
1257
|
+
R,
|
1258
|
+
k,
|
1259
|
+
B
|
1260
|
+
] }), e[32] = a, e[33] = y, e[34] = L, e[35] = A, e[36] = R, e[37] = k, e[38] = B, e[39] = N) : N = e[39], N;
|
1261
1261
|
}
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1262
|
+
function Ut(t) {
|
1263
|
+
const e = Z(4), {
|
1264
|
+
length: l
|
1265
|
+
} = t, o = l === void 0 ? 5 : l;
|
1266
|
+
let i;
|
1267
|
+
e[0] !== o ? (i = new Array(o).fill(null).map(Vt), e[0] = o, e[1] = i) : i = e[1];
|
1268
|
+
let c;
|
1269
|
+
return e[2] !== i ? (c = /* @__PURE__ */ n(F, { children: i }), e[2] = i, e[3] = c) : c = e[3], c;
|
1270
|
+
}
|
1271
|
+
function Vt(t, e) {
|
1272
|
+
return /* @__PURE__ */ D(re, { container: !0, spacing: 1, children: [
|
1273
|
+
/* @__PURE__ */ D(re, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
|
1274
|
+
/* @__PURE__ */ n(xe, { width: zt(e) ? 72 : 48, height: 20 }),
|
1275
|
+
/* @__PURE__ */ n(xe, { width: 48, height: 8 })
|
1276
|
+
] }),
|
1277
|
+
/* @__PURE__ */ n(xe, { sx: {
|
1278
|
+
height: Nt,
|
1279
|
+
marginTop: Ft,
|
1280
|
+
marginBottom: Gt,
|
1281
|
+
width: "100%"
|
1282
|
+
} })
|
1283
|
+
] }, e);
|
1284
|
+
}
|
1285
|
+
function Gt(t) {
|
1286
|
+
const {
|
1287
|
+
spacing: e
|
1288
|
+
} = t;
|
1289
|
+
return e(1.75);
|
1290
|
+
}
|
1291
|
+
function Ft(t) {
|
1292
|
+
const {
|
1293
|
+
spacing: e
|
1294
|
+
} = t;
|
1295
|
+
return e(1.25);
|
1296
|
+
}
|
1297
|
+
function Nt(t) {
|
1298
|
+
const {
|
1299
|
+
spacing: e
|
1300
|
+
} = t;
|
1301
|
+
return e(0.5);
|
1302
|
+
}
|
1303
|
+
function zt(t) {
|
1304
|
+
return t % 2 === 1;
|
1305
|
+
}
|
1306
|
+
function Ht(t) {
|
1307
|
+
const e = Z(13), {
|
1308
|
+
title: l,
|
1309
|
+
body: o,
|
1310
|
+
severity: i
|
1311
|
+
} = t, c = l === void 0 ? "No data available" : l, r = 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;
|
1312
|
+
if (i) {
|
1313
|
+
let u;
|
1314
|
+
e[0] !== r ? (u = /* @__PURE__ */ n(Re, { children: r }), e[0] = r, e[1] = u) : u = e[1];
|
1315
|
+
let h;
|
1316
|
+
return e[2] !== i || e[3] !== u || e[4] !== c ? (h = /* @__PURE__ */ n(it, { title: c, severity: i, children: u }), e[2] = i, e[3] = u, e[4] = c, e[5] = h) : h = e[5], h;
|
1317
|
+
}
|
1318
|
+
let s;
|
1319
|
+
e[6] !== c ? (s = c && /* @__PURE__ */ n(H, { variant: "body2", children: c }), e[6] = c, e[7] = s) : s = e[7];
|
1320
|
+
let a;
|
1321
|
+
e[8] !== r ? (a = /* @__PURE__ */ n(Re, { color: "textSecondary", children: r }), e[8] = r, e[9] = a) : a = e[9];
|
1322
|
+
let m;
|
1323
|
+
return e[10] !== s || e[11] !== a ? (m = /* @__PURE__ */ D(F, { children: [
|
1324
|
+
s,
|
1325
|
+
a
|
1326
|
+
] }), e[10] = s, e[11] = a, e[12] = m) : m = e[12], m;
|
1327
|
+
}
|
1328
|
+
function Re(t) {
|
1329
|
+
const e = Z(5), {
|
1330
|
+
color: l,
|
1331
|
+
children: o
|
1332
|
+
} = t;
|
1333
|
+
if (o) {
|
1334
|
+
const c = l ?? "inherit";
|
1335
|
+
let r;
|
1336
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = {
|
1337
|
+
fontWeight: "normal"
|
1338
|
+
}, e[0] = r) : r = e[0];
|
1339
|
+
let s;
|
1340
|
+
return e[1] !== o || e[2] !== c ? (s = /* @__PURE__ */ n(F, { mt: 0.5, children: /* @__PURE__ */ n(H, { component: "div", variant: "caption", color: c, style: r, children: o }) }), e[1] = o, e[2] = c, e[3] = s) : s = e[3], s;
|
1341
|
+
}
|
1342
|
+
let i;
|
1343
|
+
return e[4] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ n(F, { mt: -1 }), e[4] = i) : i = e[4], i;
|
1344
|
+
}
|
1345
|
+
function Wt(t) {
|
1346
|
+
const e = Z(4), [l, o] = Q(!1), [i, c] = Q(!1);
|
1347
|
+
let r, s;
|
1348
|
+
return e[0] !== i || e[1] !== t ? (r = () => {
|
1349
|
+
t && !i && (o(!0), c(!0)), t || o(!1);
|
1350
|
+
}, s = [t, i], e[0] = i, e[1] = t, e[2] = r, e[3] = s) : (r = e[2], s = e[3]), Pe(r, s), l;
|
1351
|
+
}
|
1352
|
+
const Ze = {
|
1353
|
+
overflow: "hidden",
|
1354
|
+
textOverflow: "ellipsis",
|
1355
|
+
whiteSpace: "nowrap"
|
1356
|
+
}, ie = {
|
1357
|
+
label: {
|
1265
1358
|
"& .MuiListItemText-primary": {
|
1266
|
-
|
1267
|
-
whiteSpace: "normal"
|
1359
|
+
...Ze
|
1268
1360
|
}
|
1269
1361
|
},
|
1270
|
-
|
1271
|
-
flex: 0.5,
|
1272
|
-
textAlign: "right",
|
1362
|
+
value: {
|
1273
1363
|
"& .MuiListItemText-primary": {
|
1274
|
-
|
1275
|
-
|
1364
|
+
...Ze,
|
1365
|
+
textAlign: "right"
|
1276
1366
|
}
|
1277
1367
|
},
|
1278
1368
|
clickable: {
|
@@ -1283,9 +1373,6 @@ const J = {
|
|
1283
1373
|
}) => t.action.hover
|
1284
1374
|
}
|
1285
1375
|
},
|
1286
|
-
button: {
|
1287
|
-
mt: 2
|
1288
|
-
},
|
1289
1376
|
showDivider: {
|
1290
1377
|
borderBottom: ({
|
1291
1378
|
palette: t
|
@@ -1300,78 +1387,86 @@ const J = {
|
|
1300
1387
|
opacity: 0.5,
|
1301
1388
|
cursor: "not-allowed"
|
1302
1389
|
}
|
1303
|
-
},
|
1390
|
+
}, Xt = {
|
1304
1391
|
showMore: "Show More",
|
1305
1392
|
showLess: "Show Less"
|
1306
1393
|
};
|
1307
|
-
function
|
1308
|
-
const e =
|
1309
|
-
data:
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1394
|
+
function co(t) {
|
1395
|
+
const e = Z(34), {
|
1396
|
+
data: l,
|
1397
|
+
isLoading: o,
|
1398
|
+
maxItems: i,
|
1399
|
+
labels: c,
|
1400
|
+
showDivider: r,
|
1401
|
+
selectedItemId: s,
|
1402
|
+
tooltipProps: a,
|
1403
|
+
onExpand: m,
|
1404
|
+
onItemClick: u
|
1405
|
+
} = t;
|
1406
|
+
let h;
|
1407
|
+
e[0] !== l ? (h = l === void 0 ? [] : l, e[0] = l, e[1] = h) : h = e[1];
|
1408
|
+
const p = h, w = o === void 0 ? !1 : o, M = i === void 0 ? 5 : i, v = c === void 0 ? Xt : c, S = r === void 0 ? !0 : r, [d, f] = Q(!1), g = Wt(w);
|
1409
|
+
let C, x;
|
1410
|
+
e[2] !== p || e[3] !== M || e[4] !== d ? (x = d ? p : p.slice(0, M), e[2] = p, e[3] = M, e[4] = d, e[5] = x) : x = e[5], C = x;
|
1411
|
+
const O = C;
|
1412
|
+
let T;
|
1413
|
+
e[6] !== m || e[7] !== d ? (T = () => {
|
1414
|
+
f(!d), m == null || m(d);
|
1415
|
+
}, e[6] = m, e[7] = d, e[8] = T) : T = e[8];
|
1416
|
+
const b = T;
|
1417
|
+
if (g) {
|
1418
|
+
let A;
|
1419
|
+
return e[9] !== M ? (A = /* @__PURE__ */ n(Ut, { length: M }), e[9] = M, e[10] = A) : A = e[10], A;
|
1420
|
+
}
|
1421
|
+
if (O.length === 0) {
|
1422
|
+
let A;
|
1423
|
+
return e[11] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ n(Ht, {}), e[11] = A) : A = e[11], A;
|
1329
1424
|
}
|
1330
|
-
let
|
1331
|
-
if (e[
|
1332
|
-
let
|
1333
|
-
e[
|
1334
|
-
...
|
1335
|
-
...
|
1336
|
-
...
|
1337
|
-
...
|
1425
|
+
let _;
|
1426
|
+
if (e[12] !== O || e[13] !== u || e[14] !== s || e[15] !== S || e[16] !== a) {
|
1427
|
+
let A;
|
1428
|
+
e[18] !== u || e[19] !== s || e[20] !== S || e[21] !== a ? (A = (R, k) => /* @__PURE__ */ n(le, { followCursor: !1, placement: "top", arrow: !0, title: R.tooltipTitle, enterDelay: 10, ...a, children: /* @__PURE__ */ n(lt, { sx: {
|
1429
|
+
...S && ie.showDivider,
|
1430
|
+
...u && ie.clickable,
|
1431
|
+
...s === R.id && ie.selected,
|
1432
|
+
...R.disabled && ie.disabled
|
1338
1433
|
}, onClick: () => {
|
1339
|
-
|
1340
|
-
}, children: [
|
1341
|
-
/* @__PURE__ */ n(
|
1342
|
-
/* @__PURE__ */ n(
|
1343
|
-
] }) }, `list-item-${
|
1434
|
+
R.disabled || u == null || u(R);
|
1435
|
+
}, children: /* @__PURE__ */ D(re, { container: !0, alignItems: "center", children: [
|
1436
|
+
/* @__PURE__ */ n(re, { item: !0, xs: 8, children: /* @__PURE__ */ n(se, { primary: R.label, sx: ie.label }) }),
|
1437
|
+
/* @__PURE__ */ n(re, { item: !0, xs: 4, children: /* @__PURE__ */ n(se, { primary: R.value, sx: ie.value }) })
|
1438
|
+
] }) }) }, `list-item-${k}`), e[18] = u, e[19] = s, e[20] = S, e[21] = a, e[22] = A) : A = e[22], _ = O.map(A), e[12] = O, e[13] = u, e[14] = s, e[15] = S, e[16] = a, e[17] = _;
|
1344
1439
|
} else
|
1345
|
-
|
1346
|
-
let
|
1347
|
-
e[
|
1348
|
-
let
|
1349
|
-
e[
|
1350
|
-
let
|
1351
|
-
return e[
|
1352
|
-
|
1353
|
-
|
1354
|
-
] }), e[
|
1440
|
+
_ = e[17];
|
1441
|
+
let y;
|
1442
|
+
e[23] !== _ ? (y = /* @__PURE__ */ n(rt, { id: "expandable-list", children: _ }), e[23] = _, e[24] = y) : y = e[24];
|
1443
|
+
let L;
|
1444
|
+
e[25] !== p.length || e[26] !== b || e[27] !== v || e[28] !== M || e[29] !== d ? (L = p.length > M && /* @__PURE__ */ n(F, { my: 2, children: /* @__PURE__ */ n(ve, { onClick: b, variant: "text", color: "primary", "aria-expanded": d, "aria-controls": "expandable-list", children: d ? v.showLess : v.showMore }) }), e[25] = p.length, e[26] = b, e[27] = v, e[28] = M, e[29] = d, e[30] = L) : L = e[30];
|
1445
|
+
let I;
|
1446
|
+
return e[31] !== y || e[32] !== L ? (I = /* @__PURE__ */ D(j, { children: [
|
1447
|
+
y,
|
1448
|
+
L
|
1449
|
+
] }), e[31] = y, e[32] = L, e[33] = I) : I = e[33], I;
|
1355
1450
|
}
|
1356
1451
|
export {
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
1452
|
+
Zt as AreaIcon,
|
1453
|
+
Rt as BufferIcon,
|
1454
|
+
eo as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
|
1455
|
+
J as DEFAULT_MEASUREMENT_TOOLS_LABELS,
|
1456
|
+
no as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
|
1457
|
+
kt as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
|
1458
|
+
vt as DrawCircleIcon,
|
1459
|
+
yt as DrawLassoIcon,
|
1460
|
+
pt as DrawPolygonIcon,
|
1461
|
+
gt as DrawSquareIcon,
|
1462
|
+
lo as GeolocationControls,
|
1463
|
+
P as LASSO_TOOLS_LABELS,
|
1464
|
+
oo as LassoToolsInlineUI,
|
1465
|
+
to as LassoToolsUI,
|
1466
|
+
co as ListDataUI,
|
1467
|
+
io as MeasurementToolsUI,
|
1468
|
+
It as RulerIcon,
|
1469
|
+
wt as SelectToolIcon,
|
1470
|
+
ro as ZoomControlsUI
|
1376
1471
|
};
|
1377
1472
|
//# sourceMappingURL=components.js.map
|