@carto/ps-react-ui 4.3.10 → 4.4.0-chat-ui.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/chat.js +798 -0
- package/dist/chat.js.map +1 -0
- package/dist/components.js +260 -240
- package/dist/components.js.map +1 -1
- package/dist/types/chat/bubbles/chat-error-message.d.ts +2 -0
- package/dist/types/chat/bubbles/chat-suggestion-button.d.ts +2 -0
- package/dist/types/chat/bubbles/chat-user-message.d.ts +2 -0
- package/dist/types/chat/bubbles/index.d.ts +4 -0
- package/dist/types/chat/const.d.ts +3 -0
- package/dist/types/chat/containers/chat-content.d.ts +2 -0
- package/dist/types/chat/containers/chat-footer.d.ts +2 -0
- package/dist/types/chat/containers/chat-header.d.ts +2 -0
- package/dist/types/chat/containers/chat-starter.d.ts +2 -0
- package/dist/types/chat/containers/index.d.ts +4 -0
- package/dist/types/chat/containers/styles.d.ts +101 -0
- package/dist/types/chat/feedback/chat-loader.d.ts +2 -0
- package/dist/types/chat/feedback/chat-rating-action.d.ts +2 -0
- package/dist/types/chat/feedback/chat-thinking.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tools.d.ts +2 -0
- package/dist/types/chat/feedback/index.d.ts +5 -0
- package/dist/types/chat/feedback/styles.d.ts +65 -0
- package/dist/types/chat/index.d.ts +16 -0
- package/dist/types/chat/types.d.ts +99 -0
- package/dist/types/components/copy-button/copy-button.d.ts +2 -0
- package/dist/types/components/copy-button/types.d.ts +6 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/widgets/actions.js +22 -21
- package/dist/widgets/actions.js.map +1 -1
- package/dist/widgets/bar.js +7 -6
- package/dist/widgets/bar.js.map +1 -1
- package/dist/widgets/category.js +9 -8
- package/dist/widgets/category.js.map +1 -1
- package/dist/widgets/formula.js +11 -10
- package/dist/widgets/formula.js.map +1 -1
- package/dist/widgets/histogram.js +7 -6
- package/dist/widgets/histogram.js.map +1 -1
- package/dist/widgets/markdown.js +9 -8
- package/dist/widgets/markdown.js.map +1 -1
- package/dist/widgets/pie.js +7 -6
- package/dist/widgets/pie.js.map +1 -1
- package/dist/widgets/scatterplot.js +7 -6
- package/dist/widgets/scatterplot.js.map +1 -1
- package/dist/widgets/spread.js +57 -56
- package/dist/widgets/spread.js.map +1 -1
- package/dist/widgets/table.js +67 -66
- package/dist/widgets/table.js.map +1 -1
- package/dist/widgets/timeseries.js +23 -22
- package/dist/widgets/timeseries.js.map +1 -1
- package/dist/widgets/wrapper.js +21 -20
- package/dist/widgets/wrapper.js.map +1 -1
- package/package.json +7 -3
- package/src/chat/bubbles/chat-agent-message.test.tsx +30 -0
- package/src/chat/bubbles/chat-agent-message.tsx +11 -0
- package/src/chat/bubbles/chat-error-message.test.tsx +40 -0
- package/src/chat/bubbles/chat-error-message.tsx +47 -0
- package/src/chat/bubbles/chat-suggestion-button.test.tsx +24 -0
- package/src/chat/bubbles/chat-suggestion-button.tsx +27 -0
- package/src/chat/bubbles/chat-user-message.test.tsx +27 -0
- package/src/chat/bubbles/chat-user-message.tsx +27 -0
- package/src/chat/bubbles/index.ts +4 -0
- package/src/chat/bubbles/styles.ts +106 -0
- package/src/chat/const.ts +3 -0
- package/src/chat/containers/chat-content.test.tsx +15 -0
- package/src/chat/containers/chat-content.tsx +32 -0
- package/src/chat/containers/chat-footer.test.tsx +34 -0
- package/src/chat/containers/chat-footer.tsx +78 -0
- package/src/chat/containers/chat-header.test.tsx +28 -0
- package/src/chat/containers/chat-header.tsx +29 -0
- package/src/chat/containers/chat-starter.test.tsx +32 -0
- package/src/chat/containers/chat-starter.tsx +75 -0
- package/src/chat/containers/index.ts +4 -0
- package/src/chat/containers/styles.ts +107 -0
- package/src/chat/feedback/chat-actions-container.test.tsx +64 -0
- package/src/chat/feedback/chat-actions-container.tsx +7 -0
- package/src/chat/feedback/chat-loader.test.tsx +10 -0
- package/src/chat/feedback/chat-loader.tsx +31 -0
- package/src/chat/feedback/chat-rating-action.tsx +43 -0
- package/src/chat/feedback/chat-thinking.test.tsx +15 -0
- package/src/chat/feedback/chat-thinking.tsx +23 -0
- package/src/chat/feedback/chat-tools.test.tsx +23 -0
- package/src/chat/feedback/chat-tools.tsx +54 -0
- package/src/chat/feedback/index.ts +5 -0
- package/src/chat/feedback/styles.ts +80 -0
- package/src/chat/index.ts +45 -0
- package/src/chat/types.ts +124 -0
- package/src/components/copy-button/copy-button.test.tsx +41 -0
- package/src/components/copy-button/copy-button.tsx +31 -0
- package/src/components/copy-button/types.ts +10 -0
- package/src/components/index.ts +3 -0
package/dist/components.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { s as be, L as
|
|
2
|
-
import { D as
|
|
1
|
+
import { s as be, L as Be, a as re } from "./lasso-tool-BYbxrJ-7.js";
|
|
2
|
+
import { D as fo, b as ho, c as go, d as bo, e as vo, f as yo, S as xo } from "./lasso-tool-BYbxrJ-7.js";
|
|
3
3
|
import { jsxs as E, Fragment as J, jsx as o } from "react/jsx-runtime";
|
|
4
4
|
import { c as F } from "react/compiler-runtime";
|
|
5
|
-
import { Divider as ue, Box as Y, ToggleButton as ve, SvgIcon as De, ToggleButtonGroup as Ie, Typography as Q, Button as ye, alpha as
|
|
5
|
+
import { Divider as ue, Box as Y, ToggleButton as ve, SvgIcon as De, ToggleButtonGroup as Ie, Typography as Q, Button as ye, alpha as $e, Paper as Se, MenuItem as Me, ListItemIcon as Ue, ListItemText as xe, IconButton as le, Menu as Ve, DialogTitle as Ze, FormControlLabel as We, Radio as je, RadioGroup as Fe, FormControl as Ne, DialogContent as ze, DialogActions as Ge, Dialog as He, CircularProgress as Ye, Grid as pe, Skeleton as Ce, Alert as Xe, ListItem as qe, List as Ke, Drawer as Qe, Popover as Je, useTheme as et, useMediaQuery as tt } from "@mui/material";
|
|
6
6
|
import { useState as se, useRef as Le, useReducer as ot, useEffect as Pe } from "react";
|
|
7
7
|
import { d as we } from "./cjs-D4KH3azB.js";
|
|
8
8
|
import { T as fe } from "./tooltip-BDnrRKrp.js";
|
|
9
|
-
import { s as
|
|
10
|
-
import { ArrowDropDown as lt, Close as Oe, MyLocationOutlined as nt, LocationDisabledOutlined as it, CropFreeOutlined as st, AddOutlined as rt, RemoveOutlined as at } from "@mui/icons-material";
|
|
11
|
-
import { S as
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
import { s as Co } from "./tooltip-BDnrRKrp.js";
|
|
10
|
+
import { ArrowDropDown as lt, Close as Oe, MyLocationOutlined as nt, LocationDisabledOutlined as it, CropFreeOutlined as st, AddOutlined as rt, RemoveOutlined as at, ContentCopyOutlined as ct } from "@mui/icons-material";
|
|
11
|
+
import { S as dt } from "./smart-tooltip-D4vwQpFf.js";
|
|
12
|
+
import { copy as mt } from "@carto/ps-utils";
|
|
13
|
+
const ut = [], pt = {};
|
|
14
|
+
function no(t) {
|
|
14
15
|
const e = F(55), {
|
|
15
16
|
enabled: s,
|
|
16
17
|
values: l,
|
|
@@ -25,15 +26,15 @@ function to(t) {
|
|
|
25
26
|
onChangeMode: f,
|
|
26
27
|
onAllChipToggle: v,
|
|
27
28
|
onAllDelete: w
|
|
28
|
-
} = t, h = l === void 0 ?
|
|
29
|
+
} = t, h = l === void 0 ? ut : l, g = m === void 0 ? pt : m;
|
|
29
30
|
let L, M;
|
|
30
31
|
e[0] !== g ? ({
|
|
31
32
|
sx: M,
|
|
32
33
|
...L
|
|
33
34
|
} = g, e[0] = g, e[1] = L, e[2] = M) : (L = e[1], M = e[2]);
|
|
34
|
-
let
|
|
35
|
-
e[3] !== i || e[4] !== a ? (
|
|
36
|
-
const y =
|
|
35
|
+
let C;
|
|
36
|
+
e[3] !== i || e[4] !== a ? (C = we(i, a), e[3] = i, e[4] = a, e[5] = C) : C = e[5];
|
|
37
|
+
const y = C;
|
|
37
38
|
let x, k;
|
|
38
39
|
e[6] !== y ? ({
|
|
39
40
|
edit: k,
|
|
@@ -41,10 +42,10 @@ function to(t) {
|
|
|
41
42
|
} = y, e[6] = y, e[7] = x, e[8] = k) : (x = e[7], k = e[8]);
|
|
42
43
|
let b;
|
|
43
44
|
e[9] !== u ? (b = (q) => u(q), e[9] = u, e[10] = b) : b = e[10];
|
|
44
|
-
const
|
|
45
|
+
const _ = b;
|
|
45
46
|
let T;
|
|
46
|
-
e[11] !== f ? (T = (q,
|
|
47
|
-
q.preventDefault(), f?.(
|
|
47
|
+
e[11] !== f ? (T = (q, ne) => {
|
|
48
|
+
q.preventDefault(), f?.(ne);
|
|
48
49
|
}, e[11] = f, e[12] = T) : T = e[12];
|
|
49
50
|
const S = T, I = (c ?? "") in i ? c : Object.keys(y)[0], D = s ? y[I] : null;
|
|
50
51
|
let O;
|
|
@@ -58,41 +59,41 @@ function to(t) {
|
|
|
58
59
|
const R = r?.options, V = D?.value, Z = r?.options;
|
|
59
60
|
let A;
|
|
60
61
|
e[17] !== U || e[18] !== Z ? (A = /* @__PURE__ */ o(Te, { labels: Z, data: U }), e[17] = U, e[18] = Z, e[19] = A) : A = e[19];
|
|
61
|
-
let
|
|
62
|
-
e[20] !== k || e[21] !== r?.options || e[22] !== h.length ? (
|
|
62
|
+
let B;
|
|
63
|
+
e[20] !== k || e[21] !== r?.options || e[22] !== h.length ? (B = !!k && /* @__PURE__ */ E(J, { children: [
|
|
63
64
|
/* @__PURE__ */ o(ue, { orientation: "vertical" }),
|
|
64
65
|
/* @__PURE__ */ o(Te, { labels: r?.options, data: [{
|
|
65
66
|
...k,
|
|
66
67
|
disabled: !h.length
|
|
67
68
|
}] })
|
|
68
|
-
] }), e[20] = k, e[21] = r?.options, e[22] = h.length, e[23] =
|
|
69
|
+
] }), e[20] = k, e[21] = r?.options, e[22] = h.length, e[23] = B) : B = e[23];
|
|
69
70
|
let W;
|
|
70
|
-
e[24] !== S || e[25] !== V || e[26] !== A || e[27] !==
|
|
71
|
+
e[24] !== S || e[25] !== V || e[26] !== A || e[27] !== B ? (W = /* @__PURE__ */ E(Ie, { value: V, exclusive: !0, className: "inline", sx: be.options.menu, onChange: S, children: [
|
|
71
72
|
A,
|
|
72
|
-
|
|
73
|
-
] }), e[24] = S, e[25] = V, e[26] = A, e[27] =
|
|
74
|
-
let
|
|
75
|
-
e[29] !== U || e[30] !== W || e[31] !== R ? (
|
|
73
|
+
B
|
|
74
|
+
] }), e[24] = S, e[25] = V, e[26] = A, e[27] = B, e[28] = W) : W = e[28];
|
|
75
|
+
let z;
|
|
76
|
+
e[29] !== U || e[30] !== W || e[31] !== R ? (z = /* @__PURE__ */ o(ft, { data: U, labels: R, children: W }), e[29] = U, e[30] = W, e[31] = R, e[32] = z) : z = e[32];
|
|
76
77
|
let N;
|
|
77
78
|
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ o(ue, { flexItem: !0 }), e[33] = N) : N = e[33];
|
|
78
|
-
const j = !!h.length,
|
|
79
|
-
let
|
|
80
|
-
e[34] !== j || e[35] !==
|
|
79
|
+
const j = !!h.length, G = r?.noData;
|
|
80
|
+
let $;
|
|
81
|
+
e[34] !== j || e[35] !== G ? ($ = /* @__PURE__ */ o(ht, { hasValues: j, labels: G }), e[34] = j, e[35] = G, e[36] = $) : $ = e[36];
|
|
81
82
|
let H;
|
|
82
|
-
e[37] !== n || e[38] !==
|
|
83
|
+
e[37] !== n || e[38] !== _ || e[39] !== r?.chip || e[40] !== d || e[41] !== h ? (H = !!h.length && /* @__PURE__ */ o(Y, { sx: be.chip.container, className: "inline", children: h.map((q) => /* @__PURE__ */ o(Be, { value: q, labels: r?.chip, chipProps: n, onDelete: _, onChipToggle: d }, q.id)) }), e[37] = n, e[38] = _, e[39] = r?.chip, e[40] = d, e[41] = h, e[42] = H) : H = e[42];
|
|
83
84
|
const ee = r?.actions;
|
|
84
85
|
let X;
|
|
85
|
-
e[43] !== v || e[44] !== w || e[45] !== ee || e[46] !== h ? (X = /* @__PURE__ */ o(
|
|
86
|
+
e[43] !== v || e[44] !== w || e[45] !== ee || e[46] !== h ? (X = /* @__PURE__ */ o(gt, { values: h, labels: ee, onAllChipToggle: v, onAllDelete: w }), e[43] = v, e[44] = w, e[45] = ee, e[46] = h, e[47] = X) : X = e[47];
|
|
86
87
|
let te;
|
|
87
|
-
return e[48] !== L || e[49] !==
|
|
88
|
-
|
|
88
|
+
return e[48] !== L || e[49] !== z || e[50] !== $ || e[51] !== H || e[52] !== X || e[53] !== P ? (te = /* @__PURE__ */ E(Y, { sx: P, ...L, className: "inline", children: [
|
|
89
|
+
z,
|
|
89
90
|
N,
|
|
90
|
-
|
|
91
|
+
$,
|
|
91
92
|
H,
|
|
92
93
|
X
|
|
93
|
-
] }), e[48] = L, e[49] =
|
|
94
|
+
] }), e[48] = L, e[49] = z, e[50] = $, e[51] = H, e[52] = X, e[53] = P, e[54] = te) : te = e[54], te;
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
+
function ft(t) {
|
|
96
97
|
const e = F(5), {
|
|
97
98
|
data: s,
|
|
98
99
|
labels: l,
|
|
@@ -118,7 +119,7 @@ function Te({
|
|
|
118
119
|
return /* @__PURE__ */ o(fe, { title: n, placement: "bottom", children: /* @__PURE__ */ o(ve, { disabled: !!s.disabled, value: s.value, "aria-label": s.value, children: /* @__PURE__ */ o(De, { children: s.icon }) }) }, s.value);
|
|
119
120
|
});
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
+
function ht(t) {
|
|
122
123
|
const e = F(7), {
|
|
123
124
|
hasValues: s,
|
|
124
125
|
labels: l
|
|
@@ -136,7 +137,7 @@ function pt(t) {
|
|
|
136
137
|
a
|
|
137
138
|
] }), e[4] = i, e[5] = a, e[6] = c) : c = e[6], c;
|
|
138
139
|
}
|
|
139
|
-
function
|
|
140
|
+
function gt(t) {
|
|
140
141
|
const e = F(13), {
|
|
141
142
|
values: s,
|
|
142
143
|
labels: l,
|
|
@@ -145,7 +146,7 @@ function ft(t) {
|
|
|
145
146
|
} = t;
|
|
146
147
|
if (s.length <= 1)
|
|
147
148
|
return null;
|
|
148
|
-
const a = s.some(
|
|
149
|
+
const a = s.some(bt) ? l?.toggleAll?.active ?? re.actions.toggleAll.active : l?.toggleAll?.inactive ?? re.actions.toggleAll.inactive, c = l?.deleteAll ?? re.actions.deleteAll;
|
|
149
150
|
let m;
|
|
150
151
|
e[0] !== n ? (m = () => n(), e[0] = n, e[1] = m) : m = e[1];
|
|
151
152
|
let d;
|
|
@@ -160,24 +161,24 @@ function ft(t) {
|
|
|
160
161
|
f
|
|
161
162
|
] }), e[10] = d, e[11] = f, e[12] = v) : v = e[12], v;
|
|
162
163
|
}
|
|
163
|
-
function
|
|
164
|
+
function bt(t) {
|
|
164
165
|
return t.visible;
|
|
165
166
|
}
|
|
166
|
-
function
|
|
167
|
+
function vt(t) {
|
|
167
168
|
const e = F(3);
|
|
168
169
|
let s;
|
|
169
170
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o("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] = s) : s = e[0];
|
|
170
171
|
let l;
|
|
171
172
|
return e[1] !== t ? (l = /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: s }), e[1] = t, e[2] = l) : l = e[2], l;
|
|
172
173
|
}
|
|
173
|
-
function
|
|
174
|
+
function yt(t) {
|
|
174
175
|
const e = F(3);
|
|
175
176
|
let s;
|
|
176
177
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o("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] = s) : s = e[0];
|
|
177
178
|
let l;
|
|
178
179
|
return e[1] !== t ? (l = /* @__PURE__ */ o("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: s }), e[1] = t, e[2] = l) : l = e[2], l;
|
|
179
180
|
}
|
|
180
|
-
function
|
|
181
|
+
function xt(t) {
|
|
181
182
|
const e = F(4);
|
|
182
183
|
let s, l;
|
|
183
184
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 13.5v-9h9v9h-9Zm.75-8.25h7.5v7.5h-7.5v-7.5Z", clipRule: "evenodd" }), l = /* @__PURE__ */ o("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] = s, e[1] = l) : (s = e[0], l = e[1]);
|
|
@@ -239,7 +240,7 @@ const oe = {
|
|
|
239
240
|
}
|
|
240
241
|
}
|
|
241
242
|
}
|
|
242
|
-
},
|
|
243
|
+
}, St = {
|
|
243
244
|
"m-km": {
|
|
244
245
|
short: "m-km"
|
|
245
246
|
},
|
|
@@ -267,15 +268,15 @@ const oe = {
|
|
|
267
268
|
feet: {
|
|
268
269
|
short: "ft"
|
|
269
270
|
}
|
|
270
|
-
},
|
|
271
|
+
}, Ct = {
|
|
271
272
|
distance: {
|
|
272
|
-
icon: /* @__PURE__ */ o(
|
|
273
|
+
icon: /* @__PURE__ */ o(vt, {})
|
|
273
274
|
},
|
|
274
275
|
buffer: {
|
|
275
|
-
icon: /* @__PURE__ */ o(
|
|
276
|
+
icon: /* @__PURE__ */ o(yt, {})
|
|
276
277
|
},
|
|
277
278
|
area: {
|
|
278
|
-
icon: /* @__PURE__ */ o(
|
|
279
|
+
icon: /* @__PURE__ */ o(xt, {})
|
|
279
280
|
}
|
|
280
281
|
}, K = {
|
|
281
282
|
container: {
|
|
@@ -342,7 +343,7 @@ const oe = {
|
|
|
342
343
|
}) => t.primary.main,
|
|
343
344
|
backgroundColor: ({
|
|
344
345
|
palette: t
|
|
345
|
-
}) =>
|
|
346
|
+
}) => $e(t.primary.main, 0.08)
|
|
346
347
|
},
|
|
347
348
|
modal: {
|
|
348
349
|
toggle: {
|
|
@@ -401,8 +402,8 @@ const oe = {
|
|
|
401
402
|
}
|
|
402
403
|
}
|
|
403
404
|
}
|
|
404
|
-
},
|
|
405
|
-
function
|
|
405
|
+
}, _t = {};
|
|
406
|
+
function io(t) {
|
|
406
407
|
const e = F(44), {
|
|
407
408
|
enabled: s,
|
|
408
409
|
actionProps: l,
|
|
@@ -417,21 +418,21 @@ function oo(t) {
|
|
|
417
418
|
onActionToggle: f,
|
|
418
419
|
onChangeMode: v,
|
|
419
420
|
onChangeUnit: w
|
|
420
|
-
} = t, h = n === void 0 ? oe : n, g = i === void 0 ?
|
|
421
|
-
let
|
|
421
|
+
} = t, h = n === void 0 ? oe : n, g = i === void 0 ? Ct : i, L = a === void 0 ? St : a, M = m === void 0 ? _t : m;
|
|
422
|
+
let C, y;
|
|
422
423
|
e[0] !== M ? ({
|
|
423
424
|
sx: y,
|
|
424
|
-
...
|
|
425
|
-
} = M, e[0] = M, e[1] =
|
|
425
|
+
...C
|
|
426
|
+
} = M, e[0] = M, e[1] = C, e[2] = y) : (C = e[1], y = e[2]);
|
|
426
427
|
let x;
|
|
427
|
-
e[3] !== f ? (x = (
|
|
428
|
+
e[3] !== f ? (x = ($) => f(!!$), e[3] = f, e[4] = x) : x = e[4];
|
|
428
429
|
const k = x;
|
|
429
430
|
let b;
|
|
430
431
|
e[5] !== r || e[6] !== g ? (b = we(r, g), e[5] = r, e[6] = g, e[7] = b) : b = e[7];
|
|
431
|
-
const
|
|
432
|
+
const _ = b, T = (c ?? "") in _;
|
|
432
433
|
let S;
|
|
433
|
-
e[8] !==
|
|
434
|
-
const p = S, I =
|
|
434
|
+
e[8] !== _ || e[9] !== T || e[10] !== c ? (S = T ? c : Object.keys(_)[0], e[8] = _, e[9] = T, e[10] = c, e[11] = S) : S = e[11];
|
|
435
|
+
const p = S, I = _[p], D = d[p];
|
|
435
436
|
let O;
|
|
436
437
|
e[12] !== p || e[13] !== D || e[14] !== d ? (O = Object.keys(d).length >= 1 ? d : {
|
|
437
438
|
[p]: D.slice(0, 1)
|
|
@@ -439,11 +440,11 @@ function oo(t) {
|
|
|
439
440
|
const P = O[p];
|
|
440
441
|
let R;
|
|
441
442
|
if (e[16] !== P || e[17] !== L) {
|
|
442
|
-
let
|
|
443
|
-
e[19] !== L ? (
|
|
443
|
+
let $;
|
|
444
|
+
e[19] !== L ? ($ = (H) => ({
|
|
444
445
|
...H,
|
|
445
446
|
...L[H.value]
|
|
446
|
-
}), e[19] = L, e[20] =
|
|
447
|
+
}), e[19] = L, e[20] = $) : $ = e[20], R = P.map($), e[16] = P, e[17] = L, e[18] = R;
|
|
447
448
|
} else
|
|
448
449
|
R = e[18];
|
|
449
450
|
const V = R;
|
|
@@ -452,21 +453,21 @@ function oo(t) {
|
|
|
452
453
|
...K.container,
|
|
453
454
|
...y
|
|
454
455
|
}, e[21] = y, e[22] = Z) : Z = e[22];
|
|
455
|
-
const A = h?.action,
|
|
456
|
+
const A = h?.action, B = I?.icon;
|
|
456
457
|
let W;
|
|
457
|
-
e[23] !== l || e[24] !== s || e[25] !== k || e[26] !== A || e[27] !==
|
|
458
|
-
const
|
|
458
|
+
e[23] !== l || e[24] !== s || e[25] !== k || e[26] !== A || e[27] !== B ? (W = /* @__PURE__ */ o(wt, { actionProps: l, labels: A, enabled: s, onActionToggle: k, children: B }), e[23] = l, e[24] = s, e[25] = k, e[26] = A, e[27] = B, e[28] = W) : W = e[28];
|
|
459
|
+
const z = h?.options;
|
|
459
460
|
let N;
|
|
460
|
-
e[29] !== V || e[30] !==
|
|
461
|
+
e[29] !== V || e[30] !== _ || e[31] !== p || e[32] !== v || e[33] !== w || e[34] !== z || e[35] !== u ? (N = /* @__PURE__ */ o(Mt, { labels: z, modes: _, modeSelected: p, units: V, unitSelected: u, onChangeMode: v, onChangeUnit: w }), e[29] = V, e[30] = _, e[31] = p, e[32] = v, e[33] = w, e[34] = z, e[35] = u, e[36] = N) : N = e[36];
|
|
461
462
|
let j;
|
|
462
463
|
e[37] !== W || e[38] !== N ? (j = /* @__PURE__ */ E(Y, { children: [
|
|
463
464
|
W,
|
|
464
465
|
N
|
|
465
466
|
] }), e[37] = W, e[38] = N, e[39] = j) : j = e[39];
|
|
466
|
-
let
|
|
467
|
-
return e[40] !==
|
|
467
|
+
let G;
|
|
468
|
+
return e[40] !== C || e[41] !== Z || e[42] !== j ? (G = /* @__PURE__ */ o(Se, { sx: Z, ...C, children: j }), e[40] = C, e[41] = Z, e[42] = j, e[43] = G) : G = e[43], G;
|
|
468
469
|
}
|
|
469
|
-
function
|
|
470
|
+
function wt(t) {
|
|
470
471
|
const e = F(12), {
|
|
471
472
|
actionProps: s,
|
|
472
473
|
labels: l,
|
|
@@ -481,7 +482,7 @@ function _t(t) {
|
|
|
481
482
|
let f;
|
|
482
483
|
return e[8] !== c || e[9] !== m || e[10] !== u ? (f = /* @__PURE__ */ o(fe, { title: c, placement: "right", ...m, children: u }), e[8] = c, e[9] = m, e[10] = u, e[11] = f) : f = e[11], f;
|
|
483
484
|
}
|
|
484
|
-
function
|
|
485
|
+
function Mt(t) {
|
|
485
486
|
const e = F(41), {
|
|
486
487
|
modes: s,
|
|
487
488
|
modeSelected: l,
|
|
@@ -500,21 +501,21 @@ function Ct(t) {
|
|
|
500
501
|
if (!(w.length > 1 || g.length > 1))
|
|
501
502
|
return null;
|
|
502
503
|
const M = !!m;
|
|
503
|
-
let
|
|
504
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
505
|
-
d(
|
|
506
|
-
}, e[4] =
|
|
507
|
-
const y =
|
|
504
|
+
let C;
|
|
505
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = ($) => {
|
|
506
|
+
d($.currentTarget);
|
|
507
|
+
}, e[4] = C) : C = e[4];
|
|
508
|
+
const y = C;
|
|
508
509
|
let x;
|
|
509
510
|
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = () => {
|
|
510
511
|
d(null);
|
|
511
512
|
}, e[5] = x) : x = e[5];
|
|
512
513
|
const k = x;
|
|
513
514
|
let b;
|
|
514
|
-
e[6] !== a ? (b = (
|
|
515
|
-
|
|
515
|
+
e[6] !== a ? (b = ($, H) => {
|
|
516
|
+
$.preventDefault(), a(H.value), k();
|
|
516
517
|
}, e[6] = a, e[7] = b) : b = e[7];
|
|
517
|
-
const
|
|
518
|
+
const _ = b;
|
|
518
519
|
let T;
|
|
519
520
|
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = () => {
|
|
520
521
|
f(!0);
|
|
@@ -526,54 +527,54 @@ function Ct(t) {
|
|
|
526
527
|
}, e[9] = p) : p = e[9];
|
|
527
528
|
const I = p;
|
|
528
529
|
let D;
|
|
529
|
-
e[10] !== c ? (D = (
|
|
530
|
-
I(), c(
|
|
530
|
+
e[10] !== c ? (D = ($) => {
|
|
531
|
+
I(), c($);
|
|
531
532
|
}, e[10] = c, e[11] = D) : D = e[11];
|
|
532
533
|
const O = D, U = i?.mode?.title ?? oe.options.mode.title, P = i?.units?.title ?? oe.options.units.title, R = w.length > 1 && g.length > 1;
|
|
533
534
|
let V;
|
|
534
|
-
e[12] !== r || e[13] !== n ? (V = n.find((
|
|
535
|
+
e[12] !== r || e[13] !== n ? (V = n.find(($) => $.value === r) ?? n[0], e[12] = r, e[13] = n, e[14] = V) : V = e[14];
|
|
535
536
|
const Z = V;
|
|
536
537
|
let A;
|
|
537
|
-
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ o(
|
|
538
|
-
let
|
|
539
|
-
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
538
|
+
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ o(le, { sx: K.options.icon, onClick: y, children: /* @__PURE__ */ o(lt, {}) }), e[15] = A) : A = e[15];
|
|
539
|
+
let B;
|
|
540
|
+
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
|
|
540
541
|
"aria-labelledby": "basic-button",
|
|
541
542
|
sx: K.options.menu
|
|
542
|
-
}, e[16] =
|
|
543
|
+
}, e[16] = B) : B = e[16];
|
|
543
544
|
let W;
|
|
544
|
-
e[17] !==
|
|
545
|
+
e[17] !== _ || e[18] !== i?.mode?.options || e[19] !== l || e[20] !== U || e[21] !== w ? (W = w.length > 1 && /* @__PURE__ */ E(J, { children: [
|
|
545
546
|
/* @__PURE__ */ o(Q, { variant: "subtitle2", color: "text.secondary", sx: K.options.title, children: U }),
|
|
546
|
-
w.map((
|
|
547
|
-
const ee = (i?.mode?.options ?? oe.options.mode.options)[
|
|
548
|
-
return /* @__PURE__ */ E(Me, { onClick: (X) =>
|
|
549
|
-
/* @__PURE__ */ o(Ue, { sx: K.options.icons, children: /* @__PURE__ */ o(De, { children:
|
|
547
|
+
w.map(($) => {
|
|
548
|
+
const ee = (i?.mode?.options ?? oe.options.mode.options)[$.value];
|
|
549
|
+
return /* @__PURE__ */ E(Me, { onClick: (X) => _(X, $), selected: $.value === l, children: [
|
|
550
|
+
/* @__PURE__ */ o(Ue, { sx: K.options.icons, children: /* @__PURE__ */ o(De, { children: $.icon }) }),
|
|
550
551
|
/* @__PURE__ */ o(xe, { children: ee })
|
|
551
|
-
] },
|
|
552
|
+
] }, $.value);
|
|
552
553
|
})
|
|
553
|
-
] }), e[17] =
|
|
554
|
-
let
|
|
555
|
-
e[23] !== R ? (
|
|
554
|
+
] }), e[17] = _, e[18] = i?.mode?.options, e[19] = l, e[20] = U, e[21] = w, e[22] = W) : W = e[22];
|
|
555
|
+
let z;
|
|
556
|
+
e[23] !== R ? (z = R && /* @__PURE__ */ o(ue, {}), e[23] = R, e[24] = z) : z = e[24];
|
|
556
557
|
let N;
|
|
557
558
|
e[25] !== O || e[26] !== i || e[27] !== u || e[28] !== Z || e[29] !== P || e[30] !== n || e[31] !== g.length ? (N = g.length > 1 && /* @__PURE__ */ E(J, { children: [
|
|
558
559
|
/* @__PURE__ */ E(Me, { onClick: S, children: [
|
|
559
560
|
/* @__PURE__ */ o(xe, { children: P }),
|
|
560
561
|
/* @__PURE__ */ o(Q, { variant: "caption", fontWeight: 500, sx: K.options.tag, children: Z.short })
|
|
561
562
|
] }),
|
|
562
|
-
/* @__PURE__ */ o(
|
|
563
|
+
/* @__PURE__ */ o(Tt, { open: u, labels: i, units: n, unitSelectedValue: Z, onClose: I, onSubmit: O })
|
|
563
564
|
] }), e[25] = O, e[26] = i, e[27] = u, e[28] = Z, e[29] = P, e[30] = n, e[31] = g.length, e[32] = N) : N = e[32];
|
|
564
565
|
let j;
|
|
565
|
-
e[33] !== W || e[34] !==
|
|
566
|
+
e[33] !== W || e[34] !== z || e[35] !== N ? (j = /* @__PURE__ */ E("div", { children: [
|
|
566
567
|
W,
|
|
567
|
-
|
|
568
|
+
z,
|
|
568
569
|
N
|
|
569
|
-
] }), e[33] = W, e[34] =
|
|
570
|
-
let
|
|
571
|
-
return e[37] !== m || e[38] !== M || e[39] !== j ? (
|
|
570
|
+
] }), e[33] = W, e[34] = z, e[35] = N, e[36] = j) : j = e[36];
|
|
571
|
+
let G;
|
|
572
|
+
return e[37] !== m || e[38] !== M || e[39] !== j ? (G = /* @__PURE__ */ E(J, { children: [
|
|
572
573
|
A,
|
|
573
|
-
/* @__PURE__ */ o(Ve, { id: "measurement-menu", anchorEl: m, open: M, onClose: k, MenuListProps:
|
|
574
|
-
] }), e[37] = m, e[38] = M, e[39] = j, e[40] =
|
|
574
|
+
/* @__PURE__ */ o(Ve, { id: "measurement-menu", anchorEl: m, open: M, onClose: k, MenuListProps: B, children: j })
|
|
575
|
+
] }), e[37] = m, e[38] = M, e[39] = j, e[40] = G) : G = e[40], G;
|
|
575
576
|
}
|
|
576
|
-
function
|
|
577
|
+
function Tt(t) {
|
|
577
578
|
const e = F(48), {
|
|
578
579
|
open: s,
|
|
579
580
|
labels: l,
|
|
@@ -585,35 +586,35 @@ function wt(t) {
|
|
|
585
586
|
let d;
|
|
586
587
|
if (e[0] !== c || e[1] !== n) {
|
|
587
588
|
let A;
|
|
588
|
-
e[3] !== c ? (A = (
|
|
589
|
+
e[3] !== c ? (A = (B) => B.system === c, e[3] = c, e[4] = A) : A = e[4], d = n.filter(A), e[0] = c, e[1] = n, e[2] = d;
|
|
589
590
|
} else
|
|
590
591
|
d = e[2];
|
|
591
592
|
const u = d;
|
|
592
593
|
let f;
|
|
593
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (A,
|
|
594
|
-
m(
|
|
594
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (A, B) => {
|
|
595
|
+
m(B);
|
|
595
596
|
}, e[5] = f) : f = e[5];
|
|
596
|
-
const v = f, w = l?.units?.modal?.options ?? oe.options.units.modal.options, h = w[c].options, g = l?.units?.modal?.title ?? oe.options.units.modal.title, L = l?.units?.modal?.subtitle ?? oe.options.units.modal.subtitle, M = l?.units?.modal?.apply ?? oe.options.units.modal.apply,
|
|
597
|
+
const v = f, w = l?.units?.modal?.options ?? oe.options.units.modal.options, h = w[c].options, g = l?.units?.modal?.title ?? oe.options.units.modal.title, L = l?.units?.modal?.subtitle ?? oe.options.units.modal.subtitle, M = l?.units?.modal?.apply ?? oe.options.units.modal.apply, C = r.system === c ? r : u[0];
|
|
597
598
|
let y;
|
|
598
599
|
e[6] !== a ? (y = {
|
|
599
600
|
component: "form",
|
|
600
601
|
onSubmit: (A) => {
|
|
601
602
|
A.preventDefault();
|
|
602
|
-
const
|
|
603
|
-
a(
|
|
603
|
+
const B = new FormData(A.currentTarget);
|
|
604
|
+
a(B.get("unit-value"));
|
|
604
605
|
}
|
|
605
606
|
}, e[6] = a, e[7] = y) : y = e[7];
|
|
606
607
|
let x;
|
|
607
608
|
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ o(Oe, {}), e[8] = x) : x = e[8];
|
|
608
609
|
let k;
|
|
609
|
-
e[9] !== i ? (k = /* @__PURE__ */ o(
|
|
610
|
+
e[9] !== i ? (k = /* @__PURE__ */ o(le, { onClick: i, children: x }), e[9] = i, e[10] = k) : k = e[10];
|
|
610
611
|
let b;
|
|
611
612
|
e[11] !== g || e[12] !== k ? (b = /* @__PURE__ */ E(Ze, { sx: K.options.modal.title, children: [
|
|
612
613
|
g,
|
|
613
614
|
k
|
|
614
615
|
] }), e[11] = g, e[12] = k, e[13] = b) : b = e[13];
|
|
615
|
-
let
|
|
616
|
-
e[14] !== L ? (
|
|
616
|
+
let _;
|
|
617
|
+
e[14] !== L ? (_ = /* @__PURE__ */ o(Q, { sx: K.options.modal.subtitle, children: L }), e[14] = L, e[15] = _) : _ = e[15];
|
|
617
618
|
let T;
|
|
618
619
|
e[16] !== w.metric.title ? (T = /* @__PURE__ */ o(ve, { value: "metric", children: w.metric.title }), e[16] = w.metric.title, e[17] = T) : T = e[17];
|
|
619
620
|
let S;
|
|
@@ -623,13 +624,13 @@ function wt(t) {
|
|
|
623
624
|
T,
|
|
624
625
|
S
|
|
625
626
|
] }), e[20] = c, e[21] = T, e[22] = S, e[23] = p) : p = e[23];
|
|
626
|
-
const I =
|
|
627
|
+
const I = C?.value, D = C?.value;
|
|
627
628
|
let O;
|
|
628
629
|
if (e[24] !== u || e[25] !== h) {
|
|
629
630
|
let A;
|
|
630
|
-
e[27] !== h ? (A = (
|
|
631
|
-
const W = h[
|
|
632
|
-
return /* @__PURE__ */ o(We, { value:
|
|
631
|
+
e[27] !== h ? (A = (B) => {
|
|
632
|
+
const W = h[B.value];
|
|
633
|
+
return /* @__PURE__ */ o(We, { value: B.value, control: /* @__PURE__ */ o(je, {}), label: W }, B.value);
|
|
633
634
|
}, e[27] = h, e[28] = A) : A = e[28], O = u.map(A), e[24] = u, e[25] = h, e[26] = O;
|
|
634
635
|
} else
|
|
635
636
|
O = e[26];
|
|
@@ -638,13 +639,13 @@ function wt(t) {
|
|
|
638
639
|
let P;
|
|
639
640
|
e[32] !== I || e[33] !== U ? (P = /* @__PURE__ */ o(Ne, { children: U }, I), e[32] = I, e[33] = U, e[34] = P) : P = e[34];
|
|
640
641
|
let R;
|
|
641
|
-
e[35] !== p || e[36] !== P || e[37] !==
|
|
642
|
-
|
|
642
|
+
e[35] !== p || e[36] !== P || e[37] !== _ ? (R = /* @__PURE__ */ E(ze, { sx: K.options.modal.content, children: [
|
|
643
|
+
_,
|
|
643
644
|
p,
|
|
644
645
|
P
|
|
645
|
-
] }), e[35] = p, e[36] = P, e[37] =
|
|
646
|
+
] }), e[35] = p, e[36] = P, e[37] = _, e[38] = R) : R = e[38];
|
|
646
647
|
let V;
|
|
647
|
-
e[39] !== M ? (V = /* @__PURE__ */ o(
|
|
648
|
+
e[39] !== M ? (V = /* @__PURE__ */ o(Ge, { sx: K.options.modal.actions, children: /* @__PURE__ */ o(ye, { variant: "contained", type: "submit", children: M }) }), e[39] = M, e[40] = V) : V = e[40];
|
|
648
649
|
let Z;
|
|
649
650
|
return e[41] !== i || e[42] !== s || e[43] !== R || e[44] !== V || e[45] !== y || e[46] !== b ? (Z = /* @__PURE__ */ E(He, { open: s, component: Y, onClose: i, maxWidth: "xs", PaperProps: y, children: [
|
|
650
651
|
b,
|
|
@@ -652,11 +653,11 @@ function wt(t) {
|
|
|
652
653
|
V
|
|
653
654
|
] }), e[41] = i, e[42] = s, e[43] = R, e[44] = V, e[45] = y, e[46] = b, e[47] = Z) : Z = e[47], Z;
|
|
654
655
|
}
|
|
655
|
-
const
|
|
656
|
+
const At = {
|
|
656
657
|
enabled: "Show your current location",
|
|
657
658
|
disabled: "Location unavailable"
|
|
658
|
-
},
|
|
659
|
-
function
|
|
659
|
+
}, kt = "geolocation";
|
|
660
|
+
function so(t) {
|
|
660
661
|
const e = F(25), {
|
|
661
662
|
disabled: s,
|
|
662
663
|
labels: l,
|
|
@@ -665,7 +666,7 @@ function lo(t) {
|
|
|
665
666
|
watch: i,
|
|
666
667
|
onChange: a,
|
|
667
668
|
onError: c
|
|
668
|
-
} = t, m = Le(null), d = "geolocation" in navigator, [u, f] = ot(
|
|
669
|
+
} = t, m = Le(null), d = "geolocation" in navigator, [u, f] = ot(Dt, d);
|
|
669
670
|
let v, w;
|
|
670
671
|
e[0] !== c ? (v = () => (d && navigator.permissions.query({
|
|
671
672
|
name: "geolocation"
|
|
@@ -688,28 +689,28 @@ function lo(t) {
|
|
|
688
689
|
f("denied"), c?.(D);
|
|
689
690
|
}, e[5] = c, e[6] = L) : L = e[6];
|
|
690
691
|
const M = L;
|
|
691
|
-
let
|
|
692
|
-
e[7] !== M || e[8] !== g || e[9] !== i ? (
|
|
692
|
+
let C;
|
|
693
|
+
e[7] !== M || e[8] !== g || e[9] !== i ? (C = () => {
|
|
693
694
|
if (m.current && navigator.geolocation.clearWatch(m.current), i) {
|
|
694
695
|
m.current = navigator.geolocation.watchPosition(g, M);
|
|
695
696
|
return;
|
|
696
697
|
}
|
|
697
698
|
navigator.geolocation.getCurrentPosition(g, M);
|
|
698
|
-
}, e[7] = M, e[8] = g, e[9] = i, e[10] =
|
|
699
|
-
const y =
|
|
699
|
+
}, e[7] = M, e[8] = g, e[9] = i, e[10] = C) : C = e[10];
|
|
700
|
+
const y = C, k = (l?.tooltip ?? At)[u ? "enabled" : "disabled"], b = l?.ariaLabel ?? kt, _ = !d || s;
|
|
700
701
|
let T;
|
|
701
702
|
e[11] !== u ? (T = u ? /* @__PURE__ */ o(nt, {}) : /* @__PURE__ */ o(it, {}), e[11] = u, e[12] = T) : T = e[12];
|
|
702
703
|
let S;
|
|
703
|
-
e[13] !== y || e[14] !== b || e[15] !==
|
|
704
|
+
e[13] !== y || e[14] !== b || e[15] !== _ || e[16] !== T ? (S = /* @__PURE__ */ o(le, { onClick: y, "aria-label": b, disabled: _, children: T }), e[13] = y, e[14] = b, e[15] = _, e[16] = T, e[17] = S) : S = e[17];
|
|
704
705
|
let p;
|
|
705
706
|
e[18] !== r || e[19] !== S || e[20] !== k ? (p = /* @__PURE__ */ o(fe, { arrow: !0, placement: "right", title: k, ...r, children: S }), e[18] = r, e[19] = S, e[20] = k, e[21] = p) : p = e[21];
|
|
706
707
|
let I;
|
|
707
708
|
return e[22] !== n || e[23] !== p ? (I = /* @__PURE__ */ o(Se, { ...n, children: p }), e[22] = n, e[23] = p, e[24] = I) : I = e[24], I;
|
|
708
709
|
}
|
|
709
|
-
function
|
|
710
|
+
function Dt(t, e) {
|
|
710
711
|
return e === "granted";
|
|
711
712
|
}
|
|
712
|
-
const
|
|
713
|
+
const _e = {
|
|
713
714
|
zoom: {
|
|
714
715
|
position: "relative",
|
|
715
716
|
height: ({
|
|
@@ -741,7 +742,7 @@ const Ce = {
|
|
|
741
742
|
position: "absolute"
|
|
742
743
|
}
|
|
743
744
|
};
|
|
744
|
-
function
|
|
745
|
+
function ro(t) {
|
|
745
746
|
const e = F(40), {
|
|
746
747
|
zoom: s,
|
|
747
748
|
disabled: l,
|
|
@@ -760,49 +761,49 @@ function no(t) {
|
|
|
760
761
|
e[0] !== d ? (M = d === void 0 ? {
|
|
761
762
|
Icon: st
|
|
762
763
|
} : d, e[0] = d, e[1] = M) : M = e[1];
|
|
763
|
-
const
|
|
764
|
+
const C = M, y = u === void 0 ? !0 : u;
|
|
764
765
|
let x;
|
|
765
766
|
e[2] !== g || e[3] !== f || e[4] !== s ? (x = () => {
|
|
766
|
-
const
|
|
767
|
-
f(
|
|
767
|
+
const B = Math.min(g, s + 1);
|
|
768
|
+
f(B);
|
|
768
769
|
}, e[2] = g, e[3] = f, e[4] = s, e[5] = x) : x = e[5];
|
|
769
770
|
const k = x;
|
|
770
771
|
let b;
|
|
771
772
|
e[6] !== L || e[7] !== f || e[8] !== s ? (b = () => {
|
|
772
|
-
const
|
|
773
|
-
f(
|
|
773
|
+
const B = Math.max(L, s - 1);
|
|
774
|
+
f(B);
|
|
774
775
|
}, e[6] = L, e[7] = f, e[8] = s, e[9] = b) : b = e[9];
|
|
775
|
-
const
|
|
776
|
+
const _ = b, T = Math.floor(s), S = w === "vertical" ? "horizontal" : "vertical";
|
|
776
777
|
let p = w === "vertical" ? "column" : "row";
|
|
777
778
|
h && (p = p + "-reverse");
|
|
778
779
|
let I;
|
|
779
780
|
e[10] !== p ? (I = {
|
|
780
|
-
...
|
|
781
|
+
..._e.paper,
|
|
781
782
|
flexDirection: p
|
|
782
783
|
}, e[10] = p, e[11] = I) : I = e[11];
|
|
783
784
|
let D;
|
|
784
|
-
e[12] !==
|
|
785
|
-
/* @__PURE__ */ o(
|
|
785
|
+
e[12] !== C || e[13] !== l || e[14] !== S || e[15] !== v ? (D = v && /* @__PURE__ */ E(J, { children: [
|
|
786
|
+
/* @__PURE__ */ o(le, { onClick: v, "aria-label": "Reset action", disabled: l, children: /* @__PURE__ */ o(C.Icon, {}) }),
|
|
786
787
|
/* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 })
|
|
787
|
-
] }), e[12] =
|
|
788
|
+
] }), e[12] = C, e[13] = l, e[14] = S, e[15] = v, e[16] = D) : D = e[16];
|
|
788
789
|
let O;
|
|
789
790
|
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ o(rt, {}), e[17] = O) : O = e[17];
|
|
790
791
|
let U;
|
|
791
|
-
e[18] !== l || e[19] !== k ? (U = /* @__PURE__ */ o(
|
|
792
|
+
e[18] !== l || e[19] !== k ? (U = /* @__PURE__ */ o(le, { onClick: k, "aria-label": "Increase zoom", disabled: l, children: O }), e[18] = l, e[19] = k, e[20] = U) : U = e[20];
|
|
792
793
|
let P;
|
|
793
794
|
e[21] !== S ? (P = /* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 }), e[21] = S, e[22] = P) : P = e[22];
|
|
794
795
|
let R;
|
|
795
796
|
e[23] !== T || e[24] !== S || e[25] !== i || e[26] !== y ? (R = y && /* @__PURE__ */ E(J, { children: [
|
|
796
|
-
/* @__PURE__ */ E(Y, { sx:
|
|
797
|
+
/* @__PURE__ */ E(Y, { sx: _e.zoom, children: [
|
|
797
798
|
/* @__PURE__ */ o(Q, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: T }),
|
|
798
|
-
i && /* @__PURE__ */ o(Ye, { sx:
|
|
799
|
+
i && /* @__PURE__ */ o(Ye, { sx: _e.circularProgress, variant: "indeterminate", size: 24 })
|
|
799
800
|
] }),
|
|
800
801
|
/* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 })
|
|
801
802
|
] }), e[23] = T, e[24] = S, e[25] = i, e[26] = y, e[27] = R) : R = e[27];
|
|
802
803
|
let V;
|
|
803
804
|
e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ o(at, {}), e[28] = V) : V = e[28];
|
|
804
805
|
let Z;
|
|
805
|
-
e[29] !==
|
|
806
|
+
e[29] !== _ || e[30] !== l ? (Z = /* @__PURE__ */ o(le, { onClick: _, "aria-label": "Decrease zoom", disabled: l, children: V }), e[29] = _, e[30] = l, e[31] = Z) : Z = e[31];
|
|
806
807
|
let A;
|
|
807
808
|
return e[32] !== m || e[33] !== I || e[34] !== D || e[35] !== U || e[36] !== P || e[37] !== R || e[38] !== Z ? (A = /* @__PURE__ */ E(Se, { sx: I, ...m, children: [
|
|
808
809
|
D,
|
|
@@ -812,51 +813,51 @@ function no(t) {
|
|
|
812
813
|
Z
|
|
813
814
|
] }), e[32] = m, e[33] = I, e[34] = D, e[35] = U, e[36] = P, e[37] = R, e[38] = Z, e[39] = A) : A = e[39], A;
|
|
814
815
|
}
|
|
815
|
-
function
|
|
816
|
+
function It(t) {
|
|
816
817
|
const e = F(4), {
|
|
817
818
|
length: s
|
|
818
819
|
} = t, l = s === void 0 ? 5 : s;
|
|
819
820
|
let n;
|
|
820
|
-
e[0] !== l ? (n = new Array(l).fill(null).map(
|
|
821
|
+
e[0] !== l ? (n = new Array(l).fill(null).map(Lt), e[0] = l, e[1] = n) : n = e[1];
|
|
821
822
|
let r;
|
|
822
823
|
return e[2] !== n ? (r = /* @__PURE__ */ o(Y, { "aria-label": "List Data skeleton", children: n }), e[2] = n, e[3] = r) : r = e[3], r;
|
|
823
824
|
}
|
|
824
|
-
function
|
|
825
|
+
function Lt(t, e) {
|
|
825
826
|
return /* @__PURE__ */ E(pe, { container: !0, spacing: 1, children: [
|
|
826
827
|
/* @__PURE__ */ E(pe, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
|
|
827
|
-
/* @__PURE__ */ o(
|
|
828
|
-
/* @__PURE__ */ o(
|
|
828
|
+
/* @__PURE__ */ o(Ce, { width: Rt(e) ? 72 : 48, height: 20 }),
|
|
829
|
+
/* @__PURE__ */ o(Ce, { width: 48, height: 8 })
|
|
829
830
|
] }),
|
|
830
|
-
/* @__PURE__ */ o(
|
|
831
|
-
height:
|
|
832
|
-
marginTop:
|
|
833
|
-
marginBottom:
|
|
831
|
+
/* @__PURE__ */ o(Ce, { sx: {
|
|
832
|
+
height: Et,
|
|
833
|
+
marginTop: Ot,
|
|
834
|
+
marginBottom: Pt,
|
|
834
835
|
width: "100%"
|
|
835
836
|
} })
|
|
836
837
|
] }, `skeleton-${e}`);
|
|
837
838
|
}
|
|
838
|
-
function
|
|
839
|
+
function Pt(t) {
|
|
839
840
|
const {
|
|
840
841
|
spacing: e
|
|
841
842
|
} = t;
|
|
842
843
|
return e(1.75);
|
|
843
844
|
}
|
|
844
|
-
function
|
|
845
|
+
function Ot(t) {
|
|
845
846
|
const {
|
|
846
847
|
spacing: e
|
|
847
848
|
} = t;
|
|
848
849
|
return e(1.25);
|
|
849
850
|
}
|
|
850
|
-
function
|
|
851
|
+
function Et(t) {
|
|
851
852
|
const {
|
|
852
853
|
spacing: e
|
|
853
854
|
} = t;
|
|
854
855
|
return e(0.5);
|
|
855
856
|
}
|
|
856
|
-
function
|
|
857
|
+
function Rt(t) {
|
|
857
858
|
return t % 2 === 1;
|
|
858
859
|
}
|
|
859
|
-
function
|
|
860
|
+
function Bt(t) {
|
|
860
861
|
const e = F(13), {
|
|
861
862
|
title: s,
|
|
862
863
|
body: l,
|
|
@@ -895,7 +896,7 @@ function Ae(t) {
|
|
|
895
896
|
let n;
|
|
896
897
|
return e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ o(Y, { mt: -1 }), e[4] = n) : n = e[4], n;
|
|
897
898
|
}
|
|
898
|
-
function
|
|
899
|
+
function $t(t) {
|
|
899
900
|
const e = F(2);
|
|
900
901
|
let s;
|
|
901
902
|
e[0] !== t ? (s = () => t ? 1 : 0, e[0] = t, e[1] = s) : s = e[1];
|
|
@@ -940,11 +941,11 @@ const ke = {
|
|
|
940
941
|
opacity: 0.5,
|
|
941
942
|
pointerEvents: "none"
|
|
942
943
|
}
|
|
943
|
-
},
|
|
944
|
+
}, Ut = {
|
|
944
945
|
showMore: "Show More",
|
|
945
946
|
showLess: "Show Less"
|
|
946
|
-
},
|
|
947
|
-
function
|
|
947
|
+
}, Vt = [];
|
|
948
|
+
function ao(t) {
|
|
948
949
|
const e = F(32), {
|
|
949
950
|
data: s,
|
|
950
951
|
isLoading: l,
|
|
@@ -955,10 +956,10 @@ function io(t) {
|
|
|
955
956
|
tooltipProps: c,
|
|
956
957
|
onExpand: m,
|
|
957
958
|
onItemClick: d
|
|
958
|
-
} = t, u = s === void 0 ?
|
|
959
|
-
let
|
|
960
|
-
e[0] !== u || e[1] !== v || e[2] !== g ? (
|
|
961
|
-
const y =
|
|
959
|
+
} = t, u = s === void 0 ? Vt : s, f = l === void 0 ? !1 : l, v = n === void 0 ? 5 : n, w = r === void 0 ? Ut : r, h = i === void 0 ? !0 : i, [g, L] = se(!1), M = $t(f);
|
|
960
|
+
let C;
|
|
961
|
+
e[0] !== u || e[1] !== v || e[2] !== g ? (C = g ? u : u.slice(0, v), e[0] = u, e[1] = v, e[2] = g, e[3] = C) : C = e[3];
|
|
962
|
+
const y = C;
|
|
962
963
|
let x;
|
|
963
964
|
e[4] !== m || e[5] !== g ? (x = () => {
|
|
964
965
|
L(!g), m?.(g);
|
|
@@ -966,16 +967,16 @@ function io(t) {
|
|
|
966
967
|
const k = x;
|
|
967
968
|
if (M) {
|
|
968
969
|
let p;
|
|
969
|
-
return e[7] !== v ? (p = /* @__PURE__ */ o(
|
|
970
|
+
return e[7] !== v ? (p = /* @__PURE__ */ o(It, { length: v }), e[7] = v, e[8] = p) : p = e[8], p;
|
|
970
971
|
}
|
|
971
972
|
if (y.length === 0) {
|
|
972
973
|
let p;
|
|
973
|
-
return e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ o(
|
|
974
|
+
return e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ o(Bt, {}), e[9] = p) : p = e[9], p;
|
|
974
975
|
}
|
|
975
976
|
let b;
|
|
976
977
|
if (e[10] !== y || e[11] !== d || e[12] !== a || e[13] !== h || e[14] !== c) {
|
|
977
978
|
let p;
|
|
978
|
-
e[16] !== d || e[17] !== a || e[18] !== h || e[19] !== c ? (p = (I) => /* @__PURE__ */ o(
|
|
979
|
+
e[16] !== d || e[17] !== a || e[18] !== h || e[19] !== c ? (p = (I) => /* @__PURE__ */ o(dt, { followCursor: !1, placement: "top", arrow: !0, title: I.tooltipTitle, enterDelay: 10, ...c, children: (D) => {
|
|
979
980
|
const {
|
|
980
981
|
ref: O
|
|
981
982
|
} = D;
|
|
@@ -993,19 +994,19 @@ function io(t) {
|
|
|
993
994
|
} }, I.id), e[16] = d, e[17] = a, e[18] = h, e[19] = c, e[20] = p) : p = e[20], b = y.map(p), e[10] = y, e[11] = d, e[12] = a, e[13] = h, e[14] = c, e[15] = b;
|
|
994
995
|
} else
|
|
995
996
|
b = e[15];
|
|
996
|
-
let
|
|
997
|
-
e[21] !== b ? (
|
|
997
|
+
let _;
|
|
998
|
+
e[21] !== b ? (_ = /* @__PURE__ */ o(Ke, { id: "expandable-list", role: "list", children: b }), e[21] = b, e[22] = _) : _ = e[22];
|
|
998
999
|
let T;
|
|
999
1000
|
e[23] !== u.length || e[24] !== k || e[25] !== w || e[26] !== v || e[27] !== g ? (T = u.length > v && /* @__PURE__ */ o(Y, { my: 2, children: /* @__PURE__ */ o(ye, { onClick: k, variant: "text", color: "primary", "aria-expanded": g, "aria-controls": "expandable-list", children: g ? w.showLess : w.showMore }) }), e[23] = u.length, e[24] = k, e[25] = w, e[26] = v, e[27] = g, e[28] = T) : T = e[28];
|
|
1000
1001
|
let S;
|
|
1001
|
-
return e[29] !== T || e[30] !==
|
|
1002
|
-
|
|
1002
|
+
return e[29] !== T || e[30] !== _ ? (S = /* @__PURE__ */ E(J, { children: [
|
|
1003
|
+
_,
|
|
1003
1004
|
T
|
|
1004
|
-
] }), e[29] = T, e[30] =
|
|
1005
|
+
] }), e[29] = T, e[30] = _, e[31] = S) : S = e[31], S;
|
|
1005
1006
|
}
|
|
1006
|
-
const
|
|
1007
|
+
const Zt = 288, ae = {
|
|
1007
1008
|
root: {
|
|
1008
|
-
width:
|
|
1009
|
+
width: Zt,
|
|
1009
1010
|
overflow: "auto"
|
|
1010
1011
|
},
|
|
1011
1012
|
toggle: {
|
|
@@ -1104,7 +1105,7 @@ const Ut = 288, ae = {
|
|
|
1104
1105
|
}) => t.primary.main
|
|
1105
1106
|
}
|
|
1106
1107
|
}
|
|
1107
|
-
},
|
|
1108
|
+
}, Wt = {
|
|
1108
1109
|
toggle: {
|
|
1109
1110
|
title: "Toggle basemaps controls"
|
|
1110
1111
|
},
|
|
@@ -1115,7 +1116,7 @@ const Ut = 288, ae = {
|
|
|
1115
1116
|
}
|
|
1116
1117
|
}
|
|
1117
1118
|
};
|
|
1118
|
-
function
|
|
1119
|
+
function jt(t) {
|
|
1119
1120
|
const e = F(6), {
|
|
1120
1121
|
isMobile: s,
|
|
1121
1122
|
labels: l,
|
|
@@ -1124,12 +1125,12 @@ function Zt(t) {
|
|
|
1124
1125
|
let i;
|
|
1125
1126
|
e[0] !== r || e[1] !== l || e[2] !== n ? (i = r && /* @__PURE__ */ E(J, { children: [
|
|
1126
1127
|
/* @__PURE__ */ o(Q, { variant: "caption", flexGrow: 1, children: l.title }),
|
|
1127
|
-
/* @__PURE__ */ o(fe, { title: l.actions.close, children: /* @__PURE__ */ o(
|
|
1128
|
+
/* @__PURE__ */ o(fe, { title: l.actions.close, children: /* @__PURE__ */ o(le, { size: "small", onClick: n, "aria-label": l.actions.close, children: /* @__PURE__ */ o(Oe, {}) }) })
|
|
1128
1129
|
] }), e[0] = r, e[1] = l, e[2] = n, e[3] = i) : i = e[3];
|
|
1129
1130
|
let a;
|
|
1130
1131
|
return e[4] !== i ? (a = /* @__PURE__ */ o(Y, { sx: ae.header, children: i }), e[4] = i, e[5] = a) : a = e[5], a;
|
|
1131
1132
|
}
|
|
1132
|
-
function
|
|
1133
|
+
function Ft(t) {
|
|
1133
1134
|
const e = F(5), {
|
|
1134
1135
|
title: s,
|
|
1135
1136
|
children: l,
|
|
@@ -1145,7 +1146,7 @@ function Wt(t) {
|
|
|
1145
1146
|
l
|
|
1146
1147
|
] }), e[2] = l, e[3] = i, e[4] = a) : a = e[4], a;
|
|
1147
1148
|
}
|
|
1148
|
-
function
|
|
1149
|
+
function Nt(t) {
|
|
1149
1150
|
const e = F(9), {
|
|
1150
1151
|
values: s,
|
|
1151
1152
|
selected: l,
|
|
@@ -1168,7 +1169,7 @@ function jt(t) {
|
|
|
1168
1169
|
let i;
|
|
1169
1170
|
return e[7] !== r ? (i = /* @__PURE__ */ o(Y, { sx: ae.group, children: r }), e[7] = r, e[8] = i) : i = e[8], i;
|
|
1170
1171
|
}
|
|
1171
|
-
function
|
|
1172
|
+
function zt(t) {
|
|
1172
1173
|
const e = F(21), {
|
|
1173
1174
|
ref: s,
|
|
1174
1175
|
children: l,
|
|
@@ -1199,11 +1200,11 @@ function Ft(t) {
|
|
|
1199
1200
|
vertical: g,
|
|
1200
1201
|
horizontal: L
|
|
1201
1202
|
}, e[9] = g, e[10] = L, e[11] = M) : M = e[11];
|
|
1202
|
-
let
|
|
1203
|
-
return e[12] !== l || e[13] !== s || e[14] !== c || e[15] !== a || e[16] !== u || e[17] !== f || e[18] !== h || e[19] !== M ? (
|
|
1203
|
+
let C;
|
|
1204
|
+
return e[12] !== l || e[13] !== s || e[14] !== c || e[15] !== a || e[16] !== u || e[17] !== f || e[18] !== h || e[19] !== M ? (C = /* @__PURE__ */ o(Je, { sx: a, anchorEl: s, open: u, onClose: f, anchorOrigin: h, transformOrigin: M, slotProps: c, children: l }), e[12] = l, e[13] = s, e[14] = c, e[15] = a, e[16] = u, e[17] = f, e[18] = h, e[19] = M, e[20] = C) : C = e[20], C;
|
|
1204
1205
|
}
|
|
1205
|
-
const
|
|
1206
|
-
function
|
|
1206
|
+
const Gt = [];
|
|
1207
|
+
function co(t) {
|
|
1207
1208
|
const e = F(54), {
|
|
1208
1209
|
options: s,
|
|
1209
1210
|
labels: l,
|
|
@@ -1211,24 +1212,24 @@ function so(t) {
|
|
|
1211
1212
|
selected: r,
|
|
1212
1213
|
onChange: i,
|
|
1213
1214
|
TooltipProps: a
|
|
1214
|
-
} = t, c = s === void 0 ?
|
|
1215
|
-
let
|
|
1216
|
-
e[0] !== M.breakpoints ? (
|
|
1217
|
-
const y = tt(
|
|
1215
|
+
} = t, c = s === void 0 ? Gt : s, m = n === void 0 ? "bottom-right" : n, d = r === void 0 ? null : r, [u, f] = se(null), [v, w] = se(!1), h = Le(null), [g, L] = se(null), M = et();
|
|
1216
|
+
let C;
|
|
1217
|
+
e[0] !== M.breakpoints ? (C = M.breakpoints.down("sm"), e[0] = M.breakpoints, e[1] = C) : C = e[1];
|
|
1218
|
+
const y = tt(C);
|
|
1218
1219
|
let x;
|
|
1219
1220
|
e[2] !== l ? (x = l ?? {}, e[2] = l, e[3] = x) : x = e[3];
|
|
1220
1221
|
let k;
|
|
1221
|
-
e[4] !== x ? (k = we(
|
|
1222
|
+
e[4] !== x ? (k = we(Wt, x), e[4] = x, e[5] = k) : k = e[5];
|
|
1222
1223
|
const b = k;
|
|
1223
|
-
let
|
|
1224
|
+
let _;
|
|
1224
1225
|
if (e[6] !== c || e[7] !== d) {
|
|
1225
|
-
let
|
|
1226
|
-
e[9] !== d ? (
|
|
1226
|
+
let ie;
|
|
1227
|
+
e[9] !== d ? (ie = (ge) => ge.id === d, e[9] = d, e[10] = ie) : ie = e[10], _ = c.find(ie), e[6] = c, e[7] = d, e[8] = _;
|
|
1227
1228
|
} else
|
|
1228
|
-
|
|
1229
|
-
const T =
|
|
1229
|
+
_ = e[8];
|
|
1230
|
+
const T = _;
|
|
1230
1231
|
let S;
|
|
1231
|
-
e[11] !== c ? (S = Object.groupBy(c,
|
|
1232
|
+
e[11] !== c ? (S = Object.groupBy(c, Ht), e[11] = c, e[12] = S) : S = e[12];
|
|
1232
1233
|
const p = S;
|
|
1233
1234
|
let I;
|
|
1234
1235
|
e[13] !== p ? (I = Object.keys(p), e[13] = p, e[14] = I) : I = e[14];
|
|
@@ -1256,81 +1257,100 @@ function so(t) {
|
|
|
1256
1257
|
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = () => {
|
|
1257
1258
|
L(400);
|
|
1258
1259
|
}, e[20] = A) : A = e[20];
|
|
1259
|
-
const
|
|
1260
|
+
const B = A;
|
|
1260
1261
|
let W;
|
|
1261
|
-
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = (
|
|
1262
|
-
f(
|
|
1262
|
+
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = (ie) => {
|
|
1263
|
+
f(ie.currentTarget), w(!0);
|
|
1263
1264
|
}, e[21] = W) : W = e[21];
|
|
1264
|
-
const
|
|
1265
|
+
const z = T?.icon, N = T?.label ?? "Basemap";
|
|
1265
1266
|
let j;
|
|
1266
|
-
e[22] !==
|
|
1267
|
-
let
|
|
1268
|
-
e[25] !== a || e[26] !== b.toggle.title || e[27] !== j ? (
|
|
1269
|
-
const
|
|
1267
|
+
e[22] !== z || e[23] !== N ? (j = /* @__PURE__ */ o(le, { sx: ae.toggle, onClick: W, children: /* @__PURE__ */ o("img", { src: z, alt: N }) }), e[22] = z, e[23] = N, e[24] = j) : j = e[24];
|
|
1268
|
+
let G;
|
|
1269
|
+
e[25] !== a || e[26] !== b.toggle.title || e[27] !== j ? (G = /* @__PURE__ */ o(fe, { title: b.toggle.title, placement: "right", ...a, children: j }), e[25] = a, e[26] = b.toggle.title, e[27] = j, e[28] = G) : G = e[28];
|
|
1270
|
+
const $ = `translate3d(${m.endsWith("right") ? "-8px" : "8px"}, ${m.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
|
|
1270
1271
|
let H;
|
|
1271
|
-
e[29] !==
|
|
1272
|
+
e[29] !== $ ? (H = {
|
|
1272
1273
|
paper: {
|
|
1273
1274
|
sx: {
|
|
1274
1275
|
...ae.root,
|
|
1275
|
-
transform:
|
|
1276
|
+
transform: $
|
|
1276
1277
|
},
|
|
1277
1278
|
onMouseOver: Z,
|
|
1278
|
-
onMouseLeave:
|
|
1279
|
+
onMouseLeave: B
|
|
1279
1280
|
}
|
|
1280
|
-
}, e[29] =
|
|
1281
|
+
}, e[29] = $, e[30] = H) : H = e[30];
|
|
1281
1282
|
const ee = !v;
|
|
1282
1283
|
let X;
|
|
1283
1284
|
e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = () => U(), e[31] = X) : X = e[31];
|
|
1284
1285
|
let te;
|
|
1285
1286
|
e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = () => U(), e[32] = te) : te = e[32];
|
|
1286
1287
|
let q;
|
|
1287
|
-
e[33] !== y || e[34] !== b.header ? (q = /* @__PURE__ */ o(
|
|
1288
|
-
let
|
|
1289
|
-
e[36] !== p ? (
|
|
1288
|
+
e[33] !== y || e[34] !== b.header ? (q = /* @__PURE__ */ o(jt, { isMobile: y, labels: b.header, onChangeCollapsed: te }), e[33] = y, e[34] = b.header, e[35] = q) : q = e[35];
|
|
1289
|
+
let ne;
|
|
1290
|
+
e[36] !== p ? (ne = Object.entries(p), e[36] = p, e[37] = ne) : ne = e[37];
|
|
1290
1291
|
let ce;
|
|
1291
|
-
e[38] !== D || e[39] !== b.header || e[40] !== i || e[41] !== d || e[42] !==
|
|
1292
|
-
const [ge, Ee] =
|
|
1293
|
-
return /* @__PURE__ */ o(
|
|
1292
|
+
e[38] !== D || e[39] !== b.header || e[40] !== i || e[41] !== d || e[42] !== ne ? (ce = ne.map((ie) => {
|
|
1293
|
+
const [ge, Ee] = ie;
|
|
1294
|
+
return /* @__PURE__ */ o(Ft, { title: ge + " " + b.header.title, collapsed: D < 2, children: /* @__PURE__ */ o(Nt, { values: Ee, selected: d, onChange: (Re) => {
|
|
1294
1295
|
U(), i(Re);
|
|
1295
1296
|
} }) }, ge);
|
|
1296
|
-
}), e[38] = D, e[39] = b.header, e[40] = i, e[41] = d, e[42] =
|
|
1297
|
+
}), e[38] = D, e[39] = b.header, e[40] = i, e[41] = d, e[42] = ne, e[43] = ce) : ce = e[43];
|
|
1297
1298
|
let de;
|
|
1298
|
-
e[44] !== y || e[45] !== m || e[46] !== H || e[47] !== ee || e[48] !== q || e[49] !== ce ? (de = /* @__PURE__ */ E(
|
|
1299
|
+
e[44] !== y || e[45] !== m || e[46] !== H || e[47] !== ee || e[48] !== q || e[49] !== ce ? (de = /* @__PURE__ */ E(zt, { ref: u, slotProps: H, collapsed: ee, position: m, isMobile: y, onChangeCollapsed: X, children: [
|
|
1299
1300
|
q,
|
|
1300
1301
|
ce
|
|
1301
1302
|
] }), e[44] = y, e[45] = m, e[46] = H, e[47] = ee, e[48] = q, e[49] = ce, e[50] = de) : de = e[50];
|
|
1302
1303
|
let he;
|
|
1303
|
-
return e[51] !==
|
|
1304
|
-
|
|
1304
|
+
return e[51] !== G || e[52] !== de ? (he = /* @__PURE__ */ E(Se, { children: [
|
|
1305
|
+
G,
|
|
1305
1306
|
de
|
|
1306
|
-
] }), e[51] =
|
|
1307
|
+
] }), e[51] = G, e[52] = de, e[53] = he) : he = e[53], he;
|
|
1307
1308
|
}
|
|
1308
|
-
function
|
|
1309
|
+
function Ht(t) {
|
|
1309
1310
|
return t.group ?? "default";
|
|
1310
1311
|
}
|
|
1312
|
+
function mo({
|
|
1313
|
+
copyText: t,
|
|
1314
|
+
onSuccess: e,
|
|
1315
|
+
onError: s,
|
|
1316
|
+
"aria-label": l,
|
|
1317
|
+
...n
|
|
1318
|
+
}) {
|
|
1319
|
+
async function r() {
|
|
1320
|
+
try {
|
|
1321
|
+
await mt(t), e?.();
|
|
1322
|
+
} catch (i) {
|
|
1323
|
+
s?.(i);
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
return /* @__PURE__ */ o(le, { size: "small", onClick: () => {
|
|
1327
|
+
r();
|
|
1328
|
+
}, "aria-label": l ?? "Copy", ...n, children: /* @__PURE__ */ o(ct, { fontSize: "small" }) });
|
|
1329
|
+
}
|
|
1311
1330
|
export {
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1331
|
+
xt as AreaIcon,
|
|
1332
|
+
co as BasemapsUI,
|
|
1333
|
+
yt as BufferIcon,
|
|
1334
|
+
mo as CopyButton,
|
|
1335
|
+
fo as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
|
|
1316
1336
|
oe as DEFAULT_MEASUREMENT_TOOLS_LABELS,
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1337
|
+
Ct as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
|
|
1338
|
+
St as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
|
|
1339
|
+
ho as DrawCircleIcon,
|
|
1340
|
+
go as DrawLassoIcon,
|
|
1341
|
+
bo as DrawPolygonIcon,
|
|
1342
|
+
vo as DrawSquareIcon,
|
|
1343
|
+
so as GeolocationControls,
|
|
1324
1344
|
re as LASSO_TOOLS_LABELS,
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1345
|
+
no as LassoToolsInlineUI,
|
|
1346
|
+
yo as LassoToolsUI,
|
|
1347
|
+
ao as ListDataUI,
|
|
1348
|
+
io as MeasurementToolsUI,
|
|
1349
|
+
vt as RulerIcon,
|
|
1350
|
+
xo as SelectToolIcon,
|
|
1351
|
+
dt as SmartTooltip,
|
|
1332
1352
|
fe as Tooltip,
|
|
1333
|
-
|
|
1334
|
-
|
|
1353
|
+
ro as ZoomControlsUI,
|
|
1354
|
+
Co as setTooltipEnterDelay
|
|
1335
1355
|
};
|
|
1336
1356
|
//# sourceMappingURL=components.js.map
|