@carto/ps-react-ui 2.2.2 → 3.0.0-alpha.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/index.cjs +20 -15
- package/dist/index.js +479 -398
- package/dist/types/common-stories/maps/deckgl-maps.component.d.ts +2 -0
- package/dist/types/common-stories/maps/google-maps.component.d.ts +3 -0
- package/dist/types/common-stories/maps/map-container.component.d.ts +4 -0
- package/dist/types/common-stories/maps/map.component.d.ts +2 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/map-measurement-tool-ui/index.d.ts +1 -0
- package/dist/types/components/map-measurement-tool-ui/map-measurement-tool-ui.component.d.ts +4 -0
- package/dist/types/components/map-measurement-tool-ui/map-measurement-tool-ui.styles.d.ts +25 -0
- package/package.json +7 -17
package/dist/index.js
CHANGED
@@ -1,6 +1,34 @@
|
|
1
|
-
import
|
2
|
-
import { Box as
|
3
|
-
var
|
1
|
+
import Ae, { useState as mr, useMemo as Rr, useRef as J, useEffect as Pe, useCallback as ke } from "react";
|
2
|
+
import { Box as I, Typography as oe, List as xr, ListItemButton as Er, ListItemText as _r, Button as Tr, styled as $e, Tabs as Cr, Paper as jr, Tooltip as wr, IconButton as Sr, Chip as Or } from "@mui/material";
|
3
|
+
var ae = { exports: {} }, Y = {};
|
4
|
+
/**
|
5
|
+
* @license React
|
6
|
+
* react-jsx-runtime.production.min.js
|
7
|
+
*
|
8
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
9
|
+
*
|
10
|
+
* This source code is licensed under the MIT license found in the
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
12
|
+
*/
|
13
|
+
var Ie;
|
14
|
+
function Pr() {
|
15
|
+
if (Ie)
|
16
|
+
return Y;
|
17
|
+
Ie = 1;
|
18
|
+
var n = Ae, o = Symbol.for("react.element"), c = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, b = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
|
19
|
+
function j(R, v, m) {
|
20
|
+
var y, w = {}, g = null, _ = null;
|
21
|
+
m !== void 0 && (g = "" + m), v.key !== void 0 && (g = "" + v.key), v.ref !== void 0 && (_ = v.ref);
|
22
|
+
for (y in v)
|
23
|
+
s.call(v, y) && !C.hasOwnProperty(y) && (w[y] = v[y]);
|
24
|
+
if (R && R.defaultProps)
|
25
|
+
for (y in v = R.defaultProps, v)
|
26
|
+
w[y] === void 0 && (w[y] = v[y]);
|
27
|
+
return { $$typeof: o, type: R, key: g, ref: _, props: w, _owner: b.current };
|
28
|
+
}
|
29
|
+
return Y.Fragment = c, Y.jsx = j, Y.jsxs = j, Y;
|
30
|
+
}
|
31
|
+
var B = {};
|
4
32
|
/**
|
5
33
|
* @license React
|
6
34
|
* react-jsx-runtime.development.js
|
@@ -10,91 +38,91 @@ var te = { exports: {} }, L = {};
|
|
10
38
|
* This source code is licensed under the MIT license found in the
|
11
39
|
* LICENSE file in the root directory of this source tree.
|
12
40
|
*/
|
13
|
-
var
|
14
|
-
function
|
15
|
-
return
|
16
|
-
var n =
|
17
|
-
function
|
41
|
+
var De;
|
42
|
+
function kr() {
|
43
|
+
return De || (De = 1, process.env.NODE_ENV !== "production" && function() {
|
44
|
+
var n = Ae, o = Symbol.for("react.element"), c = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), R = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), P = Symbol.iterator, S = "@@iterator";
|
45
|
+
function K(e) {
|
18
46
|
if (e === null || typeof e != "object")
|
19
47
|
return null;
|
20
|
-
var r =
|
48
|
+
var r = P && e[P] || e[S];
|
21
49
|
return typeof r == "function" ? r : null;
|
22
50
|
}
|
23
51
|
var A = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
24
|
-
function
|
52
|
+
function x(e) {
|
25
53
|
{
|
26
54
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
27
55
|
t[a - 1] = arguments[a];
|
28
|
-
|
56
|
+
We("error", e, t);
|
29
57
|
}
|
30
58
|
}
|
31
|
-
function
|
59
|
+
function We(e, r, t) {
|
32
60
|
{
|
33
|
-
var a = A.ReactDebugCurrentFrame,
|
34
|
-
|
35
|
-
var
|
36
|
-
return String(
|
61
|
+
var a = A.ReactDebugCurrentFrame, u = a.getStackAddendum();
|
62
|
+
u !== "" && (r += "%s", t = t.concat([u]));
|
63
|
+
var f = t.map(function(l) {
|
64
|
+
return String(l);
|
37
65
|
});
|
38
|
-
|
66
|
+
f.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, f);
|
39
67
|
}
|
40
68
|
}
|
41
|
-
var
|
42
|
-
|
43
|
-
function
|
44
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
69
|
+
var Ve = !1, Le = !1, Ye = !1, Be = !1, Ne = !1, ie;
|
70
|
+
ie = Symbol.for("react.module.reference");
|
71
|
+
function Ue(e) {
|
72
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === C || Ne || e === b || e === m || e === y || Be || e === _ || Ve || Le || Ye || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === w || e.$$typeof === j || e.$$typeof === R || e.$$typeof === v || // This needs to include all possible module reference object
|
45
73
|
// types supported by any Flight configuration anywhere since
|
46
74
|
// we don't know which Flight build this will end up being used
|
47
75
|
// with.
|
48
|
-
e.$$typeof ===
|
76
|
+
e.$$typeof === ie || e.getModuleId !== void 0));
|
49
77
|
}
|
50
|
-
function
|
78
|
+
function qe(e, r, t) {
|
51
79
|
var a = e.displayName;
|
52
80
|
if (a)
|
53
81
|
return a;
|
54
|
-
var
|
55
|
-
return
|
82
|
+
var u = r.displayName || r.name || "";
|
83
|
+
return u !== "" ? t + "(" + u + ")" : t;
|
56
84
|
}
|
57
|
-
function
|
85
|
+
function se(e) {
|
58
86
|
return e.displayName || "Context";
|
59
87
|
}
|
60
|
-
function
|
88
|
+
function k(e) {
|
61
89
|
if (e == null)
|
62
90
|
return null;
|
63
|
-
if (typeof e.tag == "number" &&
|
91
|
+
if (typeof e.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
64
92
|
return e.displayName || e.name || null;
|
65
93
|
if (typeof e == "string")
|
66
94
|
return e;
|
67
95
|
switch (e) {
|
68
|
-
case
|
96
|
+
case s:
|
69
97
|
return "Fragment";
|
70
|
-
case
|
98
|
+
case c:
|
71
99
|
return "Portal";
|
72
|
-
case
|
100
|
+
case C:
|
73
101
|
return "Profiler";
|
74
|
-
case m:
|
75
|
-
return "StrictMode";
|
76
102
|
case b:
|
103
|
+
return "StrictMode";
|
104
|
+
case m:
|
77
105
|
return "Suspense";
|
78
|
-
case
|
106
|
+
case y:
|
79
107
|
return "SuspenseList";
|
80
108
|
}
|
81
109
|
if (typeof e == "object")
|
82
110
|
switch (e.$$typeof) {
|
83
|
-
case
|
111
|
+
case R:
|
84
112
|
var r = e;
|
85
|
-
return
|
86
|
-
case
|
113
|
+
return se(r) + ".Consumer";
|
114
|
+
case j:
|
87
115
|
var t = e;
|
88
|
-
return
|
89
|
-
case
|
90
|
-
return
|
91
|
-
case
|
116
|
+
return se(t._context) + ".Provider";
|
117
|
+
case v:
|
118
|
+
return qe(e, e.render, "ForwardRef");
|
119
|
+
case w:
|
92
120
|
var a = e.displayName || null;
|
93
|
-
return a !== null ? a :
|
94
|
-
case
|
95
|
-
var
|
121
|
+
return a !== null ? a : k(e.type) || "Memo";
|
122
|
+
case g: {
|
123
|
+
var u = e, f = u._payload, l = u._init;
|
96
124
|
try {
|
97
|
-
return
|
125
|
+
return k(l(f));
|
98
126
|
} catch {
|
99
127
|
return null;
|
100
128
|
}
|
@@ -102,18 +130,18 @@ function Rr() {
|
|
102
130
|
}
|
103
131
|
return null;
|
104
132
|
}
|
105
|
-
var
|
106
|
-
function
|
133
|
+
var D = Object.assign, W = 0, le, ue, ce, fe, de, ve, pe;
|
134
|
+
function he() {
|
107
135
|
}
|
108
|
-
|
109
|
-
function
|
136
|
+
he.__reactDisabledLog = !0;
|
137
|
+
function ze() {
|
110
138
|
{
|
111
139
|
if (W === 0) {
|
112
|
-
|
140
|
+
le = console.log, ue = console.info, ce = console.warn, fe = console.error, de = console.group, ve = console.groupCollapsed, pe = console.groupEnd;
|
113
141
|
var e = {
|
114
142
|
configurable: !0,
|
115
143
|
enumerable: !0,
|
116
|
-
value:
|
144
|
+
value: he,
|
117
145
|
writable: !0
|
118
146
|
};
|
119
147
|
Object.defineProperties(console, {
|
@@ -129,7 +157,7 @@ function Rr() {
|
|
129
157
|
W++;
|
130
158
|
}
|
131
159
|
}
|
132
|
-
function
|
160
|
+
function Je() {
|
133
161
|
{
|
134
162
|
if (W--, W === 0) {
|
135
163
|
var e = {
|
@@ -138,242 +166,242 @@ function Rr() {
|
|
138
166
|
writable: !0
|
139
167
|
};
|
140
168
|
Object.defineProperties(console, {
|
141
|
-
log:
|
142
|
-
value:
|
143
|
-
}),
|
144
|
-
info: F({}, e, {
|
145
|
-
value: se
|
169
|
+
log: D({}, e, {
|
170
|
+
value: le
|
146
171
|
}),
|
147
|
-
|
172
|
+
info: D({}, e, {
|
148
173
|
value: ue
|
149
174
|
}),
|
150
|
-
|
151
|
-
value: le
|
152
|
-
}),
|
153
|
-
group: F({}, e, {
|
175
|
+
warn: D({}, e, {
|
154
176
|
value: ce
|
155
177
|
}),
|
156
|
-
|
178
|
+
error: D({}, e, {
|
157
179
|
value: fe
|
158
180
|
}),
|
159
|
-
|
181
|
+
group: D({}, e, {
|
160
182
|
value: de
|
183
|
+
}),
|
184
|
+
groupCollapsed: D({}, e, {
|
185
|
+
value: ve
|
186
|
+
}),
|
187
|
+
groupEnd: D({}, e, {
|
188
|
+
value: pe
|
161
189
|
})
|
162
190
|
});
|
163
191
|
}
|
164
|
-
W < 0 &&
|
192
|
+
W < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
165
193
|
}
|
166
194
|
}
|
167
|
-
var G = A.ReactCurrentDispatcher,
|
168
|
-
function
|
195
|
+
var G = A.ReactCurrentDispatcher, X;
|
196
|
+
function N(e, r, t) {
|
169
197
|
{
|
170
|
-
if (
|
198
|
+
if (X === void 0)
|
171
199
|
try {
|
172
200
|
throw Error();
|
173
|
-
} catch (
|
174
|
-
var a =
|
175
|
-
|
201
|
+
} catch (u) {
|
202
|
+
var a = u.stack.trim().match(/\n( *(at )?)/);
|
203
|
+
X = a && a[1] || "";
|
176
204
|
}
|
177
205
|
return `
|
178
|
-
` +
|
206
|
+
` + X + e;
|
179
207
|
}
|
180
208
|
}
|
181
|
-
var
|
209
|
+
var H = !1, U;
|
182
210
|
{
|
183
|
-
var
|
184
|
-
|
211
|
+
var Ke = typeof WeakMap == "function" ? WeakMap : Map;
|
212
|
+
U = new Ke();
|
185
213
|
}
|
186
|
-
function
|
187
|
-
if (!e ||
|
214
|
+
function ge(e, r) {
|
215
|
+
if (!e || H)
|
188
216
|
return "";
|
189
217
|
{
|
190
|
-
var t =
|
218
|
+
var t = U.get(e);
|
191
219
|
if (t !== void 0)
|
192
220
|
return t;
|
193
221
|
}
|
194
222
|
var a;
|
195
|
-
|
196
|
-
var
|
223
|
+
H = !0;
|
224
|
+
var u = Error.prepareStackTrace;
|
197
225
|
Error.prepareStackTrace = void 0;
|
198
|
-
var
|
199
|
-
|
226
|
+
var f;
|
227
|
+
f = G.current, G.current = null, ze();
|
200
228
|
try {
|
201
229
|
if (r) {
|
202
|
-
var
|
230
|
+
var l = function() {
|
203
231
|
throw Error();
|
204
232
|
};
|
205
|
-
if (Object.defineProperty(
|
233
|
+
if (Object.defineProperty(l.prototype, "props", {
|
206
234
|
set: function() {
|
207
235
|
throw Error();
|
208
236
|
}
|
209
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
210
238
|
try {
|
211
|
-
Reflect.construct(
|
212
|
-
} catch (
|
213
|
-
a =
|
239
|
+
Reflect.construct(l, []);
|
240
|
+
} catch (T) {
|
241
|
+
a = T;
|
214
242
|
}
|
215
|
-
Reflect.construct(e, [],
|
243
|
+
Reflect.construct(e, [], l);
|
216
244
|
} else {
|
217
245
|
try {
|
218
|
-
|
219
|
-
} catch (
|
220
|
-
a =
|
246
|
+
l.call();
|
247
|
+
} catch (T) {
|
248
|
+
a = T;
|
221
249
|
}
|
222
|
-
e.call(
|
250
|
+
e.call(l.prototype);
|
223
251
|
}
|
224
252
|
} else {
|
225
253
|
try {
|
226
254
|
throw Error();
|
227
|
-
} catch (
|
228
|
-
a =
|
255
|
+
} catch (T) {
|
256
|
+
a = T;
|
229
257
|
}
|
230
258
|
e();
|
231
259
|
}
|
232
|
-
} catch (
|
233
|
-
if (
|
234
|
-
for (var i =
|
235
|
-
`),
|
236
|
-
`),
|
237
|
-
|
238
|
-
for (;
|
239
|
-
if (i[
|
240
|
-
if (
|
260
|
+
} catch (T) {
|
261
|
+
if (T && a && typeof T.stack == "string") {
|
262
|
+
for (var i = T.stack.split(`
|
263
|
+
`), E = a.stack.split(`
|
264
|
+
`), p = i.length - 1, h = E.length - 1; p >= 1 && h >= 0 && i[p] !== E[h]; )
|
265
|
+
h--;
|
266
|
+
for (; p >= 1 && h >= 0; p--, h--)
|
267
|
+
if (i[p] !== E[h]) {
|
268
|
+
if (p !== 1 || h !== 1)
|
241
269
|
do
|
242
|
-
if (
|
243
|
-
var
|
244
|
-
` + i[
|
245
|
-
return e.displayName &&
|
270
|
+
if (p--, h--, h < 0 || i[p] !== E[h]) {
|
271
|
+
var O = `
|
272
|
+
` + i[p].replace(" at new ", " at ");
|
273
|
+
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, O), O;
|
246
274
|
}
|
247
|
-
while (
|
275
|
+
while (p >= 1 && h >= 0);
|
248
276
|
break;
|
249
277
|
}
|
250
278
|
}
|
251
279
|
} finally {
|
252
|
-
|
280
|
+
H = !1, G.current = f, Je(), Error.prepareStackTrace = u;
|
253
281
|
}
|
254
|
-
var
|
255
|
-
return typeof e == "function" &&
|
282
|
+
var M = e ? e.displayName || e.name : "", F = M ? N(M) : "";
|
283
|
+
return typeof e == "function" && U.set(e, F), F;
|
256
284
|
}
|
257
|
-
function
|
258
|
-
return
|
285
|
+
function Ge(e, r, t) {
|
286
|
+
return ge(e, !1);
|
259
287
|
}
|
260
|
-
function
|
288
|
+
function Xe(e) {
|
261
289
|
var r = e.prototype;
|
262
290
|
return !!(r && r.isReactComponent);
|
263
291
|
}
|
264
|
-
function
|
292
|
+
function q(e, r, t) {
|
265
293
|
if (e == null)
|
266
294
|
return "";
|
267
295
|
if (typeof e == "function")
|
268
|
-
return
|
296
|
+
return ge(e, Xe(e));
|
269
297
|
if (typeof e == "string")
|
270
|
-
return
|
298
|
+
return N(e);
|
271
299
|
switch (e) {
|
272
|
-
case
|
273
|
-
return
|
274
|
-
case
|
275
|
-
return
|
300
|
+
case m:
|
301
|
+
return N("Suspense");
|
302
|
+
case y:
|
303
|
+
return N("SuspenseList");
|
276
304
|
}
|
277
305
|
if (typeof e == "object")
|
278
306
|
switch (e.$$typeof) {
|
279
|
-
case
|
280
|
-
return
|
281
|
-
case
|
282
|
-
return
|
283
|
-
case
|
284
|
-
var a = e,
|
307
|
+
case v:
|
308
|
+
return Ge(e.render);
|
309
|
+
case w:
|
310
|
+
return q(e.type, r, t);
|
311
|
+
case g: {
|
312
|
+
var a = e, u = a._payload, f = a._init;
|
285
313
|
try {
|
286
|
-
return
|
314
|
+
return q(f(u), r, t);
|
287
315
|
} catch {
|
288
316
|
}
|
289
317
|
}
|
290
318
|
}
|
291
319
|
return "";
|
292
320
|
}
|
293
|
-
var
|
294
|
-
function
|
321
|
+
var V = Object.prototype.hasOwnProperty, ye = {}, be = A.ReactDebugCurrentFrame;
|
322
|
+
function z(e) {
|
295
323
|
if (e) {
|
296
|
-
var r = e._owner, t =
|
297
|
-
|
324
|
+
var r = e._owner, t = q(e.type, e._source, r ? r.type : null);
|
325
|
+
be.setExtraStackFrame(t);
|
298
326
|
} else
|
299
|
-
|
327
|
+
be.setExtraStackFrame(null);
|
300
328
|
}
|
301
|
-
function
|
329
|
+
function He(e, r, t, a, u) {
|
302
330
|
{
|
303
|
-
var
|
304
|
-
for (var
|
305
|
-
if (
|
331
|
+
var f = Function.call.bind(V);
|
332
|
+
for (var l in e)
|
333
|
+
if (f(e, l)) {
|
306
334
|
var i = void 0;
|
307
335
|
try {
|
308
|
-
if (typeof e[
|
309
|
-
var
|
310
|
-
throw
|
336
|
+
if (typeof e[l] != "function") {
|
337
|
+
var E = Error((a || "React class") + ": " + t + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
338
|
+
throw E.name = "Invariant Violation", E;
|
311
339
|
}
|
312
|
-
i = e[
|
313
|
-
} catch (
|
314
|
-
i =
|
340
|
+
i = e[l](r, l, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
341
|
+
} catch (p) {
|
342
|
+
i = p;
|
315
343
|
}
|
316
|
-
i && !(i instanceof Error) && (
|
344
|
+
i && !(i instanceof Error) && (z(u), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", t, l, typeof i), z(null)), i instanceof Error && !(i.message in ye) && (ye[i.message] = !0, z(u), x("Failed %s type: %s", t, i.message), z(null));
|
317
345
|
}
|
318
346
|
}
|
319
347
|
}
|
320
|
-
var
|
321
|
-
function
|
322
|
-
return
|
348
|
+
var Ze = Array.isArray;
|
349
|
+
function Z(e) {
|
350
|
+
return Ze(e);
|
323
351
|
}
|
324
|
-
function
|
352
|
+
function Qe(e) {
|
325
353
|
{
|
326
354
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
327
355
|
return t;
|
328
356
|
}
|
329
357
|
}
|
330
|
-
function
|
358
|
+
function er(e) {
|
331
359
|
try {
|
332
|
-
return
|
360
|
+
return me(e), !1;
|
333
361
|
} catch {
|
334
362
|
return !0;
|
335
363
|
}
|
336
364
|
}
|
337
|
-
function
|
365
|
+
function me(e) {
|
338
366
|
return "" + e;
|
339
367
|
}
|
340
|
-
function
|
341
|
-
if (
|
342
|
-
return
|
368
|
+
function Re(e) {
|
369
|
+
if (er(e))
|
370
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), me(e);
|
343
371
|
}
|
344
|
-
var
|
372
|
+
var L = A.ReactCurrentOwner, rr = {
|
345
373
|
key: !0,
|
346
374
|
ref: !0,
|
347
375
|
__self: !0,
|
348
376
|
__source: !0
|
349
|
-
},
|
350
|
-
|
351
|
-
function
|
352
|
-
if (
|
377
|
+
}, xe, Ee, Q;
|
378
|
+
Q = {};
|
379
|
+
function tr(e) {
|
380
|
+
if (V.call(e, "ref")) {
|
353
381
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
354
382
|
if (r && r.isReactWarning)
|
355
383
|
return !1;
|
356
384
|
}
|
357
385
|
return e.ref !== void 0;
|
358
386
|
}
|
359
|
-
function
|
360
|
-
if (
|
387
|
+
function nr(e) {
|
388
|
+
if (V.call(e, "key")) {
|
361
389
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
362
390
|
if (r && r.isReactWarning)
|
363
391
|
return !1;
|
364
392
|
}
|
365
393
|
return e.key !== void 0;
|
366
394
|
}
|
367
|
-
function
|
368
|
-
if (typeof e.ref == "string" &&
|
369
|
-
var t =
|
370
|
-
|
395
|
+
function ar(e, r) {
|
396
|
+
if (typeof e.ref == "string" && L.current && r && L.current.stateNode !== r) {
|
397
|
+
var t = k(L.current.type);
|
398
|
+
Q[t] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(L.current.type), e.ref), Q[t] = !0);
|
371
399
|
}
|
372
400
|
}
|
373
|
-
function
|
401
|
+
function or(e, r) {
|
374
402
|
{
|
375
403
|
var t = function() {
|
376
|
-
|
404
|
+
xe || (xe = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
377
405
|
};
|
378
406
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
379
407
|
get: t,
|
@@ -381,10 +409,10 @@ function Rr() {
|
|
381
409
|
});
|
382
410
|
}
|
383
411
|
}
|
384
|
-
function
|
412
|
+
function ir(e, r) {
|
385
413
|
{
|
386
414
|
var t = function() {
|
387
|
-
Ee || (Ee = !0,
|
415
|
+
Ee || (Ee = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
388
416
|
};
|
389
417
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
390
418
|
get: t,
|
@@ -392,7 +420,7 @@ function Rr() {
|
|
392
420
|
});
|
393
421
|
}
|
394
422
|
}
|
395
|
-
var
|
423
|
+
var sr = function(e, r, t, a, u, f, l) {
|
396
424
|
var i = {
|
397
425
|
// This tag allows us to uniquely identify this as a React Element
|
398
426
|
$$typeof: o,
|
@@ -400,9 +428,9 @@ function Rr() {
|
|
400
428
|
type: e,
|
401
429
|
key: r,
|
402
430
|
ref: t,
|
403
|
-
props:
|
431
|
+
props: l,
|
404
432
|
// Record the component responsible for creating this element.
|
405
|
-
_owner:
|
433
|
+
_owner: f
|
406
434
|
};
|
407
435
|
return i._store = {}, Object.defineProperty(i._store, "validated", {
|
408
436
|
configurable: !1,
|
@@ -418,44 +446,44 @@ function Rr() {
|
|
418
446
|
configurable: !1,
|
419
447
|
enumerable: !1,
|
420
448
|
writable: !1,
|
421
|
-
value:
|
449
|
+
value: u
|
422
450
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
423
451
|
};
|
424
|
-
function
|
452
|
+
function lr(e, r, t, a, u) {
|
425
453
|
{
|
426
|
-
var
|
427
|
-
t !== void 0 && (
|
428
|
-
for (
|
429
|
-
|
454
|
+
var f, l = {}, i = null, E = null;
|
455
|
+
t !== void 0 && (Re(t), i = "" + t), nr(r) && (Re(r.key), i = "" + r.key), tr(r) && (E = r.ref, ar(r, u));
|
456
|
+
for (f in r)
|
457
|
+
V.call(r, f) && !rr.hasOwnProperty(f) && (l[f] = r[f]);
|
430
458
|
if (e && e.defaultProps) {
|
431
|
-
var
|
432
|
-
for (
|
433
|
-
|
459
|
+
var p = e.defaultProps;
|
460
|
+
for (f in p)
|
461
|
+
l[f] === void 0 && (l[f] = p[f]);
|
434
462
|
}
|
435
|
-
if (i ||
|
436
|
-
var
|
437
|
-
i &&
|
463
|
+
if (i || E) {
|
464
|
+
var h = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
465
|
+
i && or(l, h), E && ir(l, h);
|
438
466
|
}
|
439
|
-
return
|
467
|
+
return sr(e, i, E, u, a, L.current, l);
|
440
468
|
}
|
441
469
|
}
|
442
|
-
var
|
443
|
-
function
|
470
|
+
var ee = A.ReactCurrentOwner, _e = A.ReactDebugCurrentFrame;
|
471
|
+
function $(e) {
|
444
472
|
if (e) {
|
445
|
-
var r = e._owner, t =
|
446
|
-
|
473
|
+
var r = e._owner, t = q(e.type, e._source, r ? r.type : null);
|
474
|
+
_e.setExtraStackFrame(t);
|
447
475
|
} else
|
448
|
-
|
476
|
+
_e.setExtraStackFrame(null);
|
449
477
|
}
|
450
|
-
var
|
451
|
-
|
452
|
-
function
|
478
|
+
var re;
|
479
|
+
re = !1;
|
480
|
+
function te(e) {
|
453
481
|
return typeof e == "object" && e !== null && e.$$typeof === o;
|
454
482
|
}
|
455
|
-
function
|
483
|
+
function Te() {
|
456
484
|
{
|
457
|
-
if (
|
458
|
-
var e =
|
485
|
+
if (ee.current) {
|
486
|
+
var e = k(ee.current.type);
|
459
487
|
if (e)
|
460
488
|
return `
|
461
489
|
|
@@ -464,7 +492,7 @@ Check the render method of \`` + e + "`.";
|
|
464
492
|
return "";
|
465
493
|
}
|
466
494
|
}
|
467
|
-
function
|
495
|
+
function ur(e) {
|
468
496
|
{
|
469
497
|
if (e !== void 0) {
|
470
498
|
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
@@ -475,10 +503,10 @@ Check your code at ` + r + ":" + t + ".";
|
|
475
503
|
return "";
|
476
504
|
}
|
477
505
|
}
|
478
|
-
var
|
479
|
-
function
|
506
|
+
var Ce = {};
|
507
|
+
function cr(e) {
|
480
508
|
{
|
481
|
-
var r =
|
509
|
+
var r = Te();
|
482
510
|
if (!r) {
|
483
511
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
484
512
|
t && (r = `
|
@@ -488,39 +516,39 @@ Check the top-level render call using <` + t + ">.");
|
|
488
516
|
return r;
|
489
517
|
}
|
490
518
|
}
|
491
|
-
function
|
519
|
+
function je(e, r) {
|
492
520
|
{
|
493
521
|
if (!e._store || e._store.validated || e.key != null)
|
494
522
|
return;
|
495
523
|
e._store.validated = !0;
|
496
|
-
var t =
|
497
|
-
if (
|
524
|
+
var t = cr(r);
|
525
|
+
if (Ce[t])
|
498
526
|
return;
|
499
|
-
|
527
|
+
Ce[t] = !0;
|
500
528
|
var a = "";
|
501
|
-
e && e._owner && e._owner !==
|
529
|
+
e && e._owner && e._owner !== ee.current && (a = " It was passed a child from " + k(e._owner.type) + "."), $(e), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), $(null);
|
502
530
|
}
|
503
531
|
}
|
504
|
-
function
|
532
|
+
function we(e, r) {
|
505
533
|
{
|
506
534
|
if (typeof e != "object")
|
507
535
|
return;
|
508
|
-
if (
|
536
|
+
if (Z(e))
|
509
537
|
for (var t = 0; t < e.length; t++) {
|
510
538
|
var a = e[t];
|
511
|
-
|
539
|
+
te(a) && je(a, r);
|
512
540
|
}
|
513
|
-
else if (
|
541
|
+
else if (te(e))
|
514
542
|
e._store && (e._store.validated = !0);
|
515
543
|
else if (e) {
|
516
|
-
var
|
517
|
-
if (typeof
|
518
|
-
for (var
|
519
|
-
|
544
|
+
var u = K(e);
|
545
|
+
if (typeof u == "function" && u !== e.entries)
|
546
|
+
for (var f = u.call(e), l; !(l = f.next()).done; )
|
547
|
+
te(l.value) && je(l.value, r);
|
520
548
|
}
|
521
549
|
}
|
522
550
|
}
|
523
|
-
function
|
551
|
+
function fr(e) {
|
524
552
|
{
|
525
553
|
var r = e.type;
|
526
554
|
if (r == null || typeof r == "string")
|
@@ -528,178 +556,165 @@ Check the top-level render call using <` + t + ">.");
|
|
528
556
|
var t;
|
529
557
|
if (typeof r == "function")
|
530
558
|
t = r.propTypes;
|
531
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
559
|
+
else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here.
|
532
560
|
// Inner props are checked in the reconciler.
|
533
|
-
r.$$typeof ===
|
561
|
+
r.$$typeof === w))
|
534
562
|
t = r.propTypes;
|
535
563
|
else
|
536
564
|
return;
|
537
565
|
if (t) {
|
538
|
-
var a =
|
539
|
-
|
540
|
-
} else if (r.PropTypes !== void 0 && !
|
541
|
-
|
542
|
-
var
|
543
|
-
|
566
|
+
var a = k(r);
|
567
|
+
He(t, e.props, "prop", a, e);
|
568
|
+
} else if (r.PropTypes !== void 0 && !re) {
|
569
|
+
re = !0;
|
570
|
+
var u = k(r);
|
571
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
|
544
572
|
}
|
545
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
573
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
546
574
|
}
|
547
575
|
}
|
548
|
-
function
|
576
|
+
function dr(e) {
|
549
577
|
{
|
550
578
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
551
579
|
var a = r[t];
|
552
580
|
if (a !== "children" && a !== "key") {
|
553
|
-
|
581
|
+
$(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), $(null);
|
554
582
|
break;
|
555
583
|
}
|
556
584
|
}
|
557
|
-
e.ref !== null && (
|
585
|
+
e.ref !== null && ($(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
|
558
586
|
}
|
559
587
|
}
|
560
|
-
|
588
|
+
var Se = {};
|
589
|
+
function Oe(e, r, t, a, u, f) {
|
561
590
|
{
|
562
|
-
var
|
563
|
-
if (!
|
591
|
+
var l = Ue(e);
|
592
|
+
if (!l) {
|
564
593
|
var i = "";
|
565
594
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
566
|
-
var
|
567
|
-
|
568
|
-
var
|
569
|
-
e === null ?
|
595
|
+
var E = ur(u);
|
596
|
+
E ? i += E : i += Te();
|
597
|
+
var p;
|
598
|
+
e === null ? p = "null" : Z(e) ? p = "array" : e !== void 0 && e.$$typeof === o ? (p = "<" + (k(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, i);
|
570
599
|
}
|
571
|
-
var
|
572
|
-
if (
|
573
|
-
return
|
574
|
-
if (
|
575
|
-
var
|
576
|
-
if (
|
600
|
+
var h = lr(e, r, t, u, f);
|
601
|
+
if (h == null)
|
602
|
+
return h;
|
603
|
+
if (l) {
|
604
|
+
var O = r.children;
|
605
|
+
if (O !== void 0)
|
577
606
|
if (a)
|
578
|
-
if (
|
579
|
-
for (var
|
580
|
-
|
581
|
-
Object.freeze && Object.freeze(
|
607
|
+
if (Z(O)) {
|
608
|
+
for (var M = 0; M < O.length; M++)
|
609
|
+
we(O[M], e);
|
610
|
+
Object.freeze && Object.freeze(O);
|
582
611
|
} else
|
583
|
-
|
612
|
+
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
584
613
|
else
|
585
|
-
|
614
|
+
we(O, e);
|
586
615
|
}
|
587
|
-
|
616
|
+
if (V.call(r, "key")) {
|
617
|
+
var F = k(e), T = Object.keys(r).filter(function(br) {
|
618
|
+
return br !== "key";
|
619
|
+
}), ne = T.length > 0 ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}";
|
620
|
+
if (!Se[F + ne]) {
|
621
|
+
var yr = T.length > 0 ? "{" + T.join(": ..., ") + ": ...}" : "{}";
|
622
|
+
x(`A props object containing a "key" prop is being spread into JSX:
|
623
|
+
let props = %s;
|
624
|
+
<%s {...props} />
|
625
|
+
React keys must be passed directly to JSX without using spread:
|
626
|
+
let props = %s;
|
627
|
+
<%s key={someKey} {...props} />`, ne, F, yr, F), Se[F + ne] = !0;
|
628
|
+
}
|
629
|
+
}
|
630
|
+
return e === s ? dr(h) : fr(h), h;
|
588
631
|
}
|
589
632
|
}
|
590
|
-
function
|
591
|
-
return
|
633
|
+
function vr(e, r, t) {
|
634
|
+
return Oe(e, r, t, !0);
|
592
635
|
}
|
593
|
-
function
|
594
|
-
return
|
636
|
+
function pr(e, r, t) {
|
637
|
+
return Oe(e, r, t, !1);
|
595
638
|
}
|
596
|
-
var
|
597
|
-
|
598
|
-
}()),
|
639
|
+
var hr = pr, gr = vr;
|
640
|
+
B.Fragment = s, B.jsx = hr, B.jsxs = gr;
|
641
|
+
}()), B;
|
599
642
|
}
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
* react-jsx-runtime.production.min.js
|
604
|
-
*
|
605
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
606
|
-
*
|
607
|
-
* This source code is licensed under the MIT license found in the
|
608
|
-
* LICENSE file in the root directory of this source tree.
|
609
|
-
*/
|
610
|
-
var ke;
|
611
|
-
function _r() {
|
612
|
-
if (ke)
|
613
|
-
return Y;
|
614
|
-
ke = 1;
|
615
|
-
var n = Fe, o = Symbol.for("react.element"), f = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, m = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, T = { key: !0, ref: !0, __self: !0, __source: !0 };
|
616
|
-
function C(E, d, b) {
|
617
|
-
var g, S = {}, h = null, x = null;
|
618
|
-
b !== void 0 && (h = "" + b), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (x = d.ref);
|
619
|
-
for (g in d)
|
620
|
-
u.call(d, g) && !T.hasOwnProperty(g) && (S[g] = d[g]);
|
621
|
-
if (E && E.defaultProps)
|
622
|
-
for (g in d = E.defaultProps, d)
|
623
|
-
S[g] === void 0 && (S[g] = d[g]);
|
624
|
-
return { $$typeof: o, type: E, key: h, ref: x, props: S, _owner: m.current };
|
625
|
-
}
|
626
|
-
return Y.Fragment = f, Y.jsx = C, Y.jsxs = C, Y;
|
627
|
-
}
|
628
|
-
process.env.NODE_ENV === "production" ? te.exports = _r() : te.exports = Rr();
|
629
|
-
var y = te.exports;
|
630
|
-
const xr = {
|
643
|
+
process.env.NODE_ENV === "production" ? ae.exports = Pr() : ae.exports = kr();
|
644
|
+
var d = ae.exports;
|
645
|
+
const Ir = {
|
631
646
|
box: {
|
632
647
|
marginLeft: ({ spacing: n }) => n(1)
|
633
648
|
}
|
634
649
|
};
|
635
|
-
function
|
650
|
+
function Nr({
|
636
651
|
items: n,
|
637
652
|
itemsToShow: o = 10,
|
638
|
-
label:
|
639
|
-
ListProps:
|
640
|
-
texts: { showMore:
|
641
|
-
unit:
|
642
|
-
formatter:
|
643
|
-
onRowClick:
|
653
|
+
label: c,
|
654
|
+
ListProps: s,
|
655
|
+
texts: { showMore: b = "View all", showLess: C = "Collapse list" } = {},
|
656
|
+
unit: j,
|
657
|
+
formatter: R,
|
658
|
+
onRowClick: v
|
644
659
|
}) {
|
645
|
-
const [
|
646
|
-
|
647
|
-
},
|
648
|
-
const
|
649
|
-
return n.slice(0,
|
650
|
-
}, [n, o,
|
651
|
-
return /* @__PURE__ */
|
652
|
-
|
653
|
-
/* @__PURE__ */
|
654
|
-
|
660
|
+
const [m, y] = mr(!0), w = () => {
|
661
|
+
y(!m);
|
662
|
+
}, g = (S) => R ? R(S) : S, _ = Rr(() => {
|
663
|
+
const S = m ? o : n.length;
|
664
|
+
return n.slice(0, S);
|
665
|
+
}, [n, o, m]), P = n.length > o;
|
666
|
+
return /* @__PURE__ */ d.jsxs(I, { width: "100%", height: "auto", children: [
|
667
|
+
c && /* @__PURE__ */ d.jsx(oe, { variant: "caption", color: "textSecondary", gutterBottom: !0, children: c }),
|
668
|
+
/* @__PURE__ */ d.jsx(xr, { ...s, component: "ul", children: _.map((S) => /* @__PURE__ */ d.jsxs(
|
669
|
+
Er,
|
655
670
|
{
|
656
671
|
divider: !0,
|
657
|
-
onClick: (
|
672
|
+
onClick: (K) => v?.(K, S),
|
658
673
|
children: [
|
659
|
-
/* @__PURE__ */
|
660
|
-
/* @__PURE__ */
|
674
|
+
/* @__PURE__ */ d.jsx(_r, { primary: S.name }),
|
675
|
+
/* @__PURE__ */ d.jsx(Dr, { value: g(S.value), unit: j })
|
661
676
|
]
|
662
677
|
},
|
663
|
-
|
678
|
+
S.id
|
664
679
|
)) }),
|
665
|
-
|
666
|
-
|
680
|
+
P && /* @__PURE__ */ d.jsx(
|
681
|
+
Tr,
|
667
682
|
{
|
668
683
|
variant: "text",
|
669
684
|
color: "primary",
|
670
685
|
size: "small",
|
671
|
-
onClick:
|
672
|
-
children:
|
686
|
+
onClick: w,
|
687
|
+
children: m ? b : C
|
673
688
|
}
|
674
689
|
)
|
675
690
|
] });
|
676
691
|
}
|
677
|
-
function
|
692
|
+
function Dr({
|
678
693
|
value: n,
|
679
694
|
unit: o
|
680
695
|
}) {
|
681
|
-
return /* @__PURE__ */
|
696
|
+
return /* @__PURE__ */ d.jsx(I, { sx: Ir.box, children: /* @__PURE__ */ d.jsxs(oe, { variant: "body2", align: "right", noWrap: !0, children: [
|
682
697
|
o,
|
683
698
|
" ",
|
684
699
|
n
|
685
700
|
] }) });
|
686
701
|
}
|
687
|
-
const
|
702
|
+
const Fr = {
|
688
703
|
contentBox: {
|
689
704
|
paddingBottom: 2,
|
690
705
|
paddingX: 2
|
691
706
|
}
|
692
|
-
},
|
707
|
+
}, Ar = $e(I, {
|
693
708
|
shouldForwardProp: (n) => n !== "scrollMarginTop"
|
694
709
|
})(({ scrollMarginTop: n }) => ({
|
695
710
|
height: "auto",
|
696
711
|
scrollMarginTop: n,
|
697
712
|
width: "100%"
|
698
|
-
})),
|
713
|
+
})), $r = $e(I, {
|
699
714
|
shouldForwardProp: (n) => n !== "scrollMarginTop"
|
700
|
-
})(({ scrollMarginTop: n, theme: { spacing: o, palette:
|
715
|
+
})(({ scrollMarginTop: n, theme: { spacing: o, palette: c } }) => ({
|
701
716
|
alignItems: "center",
|
702
|
-
backgroundColor:
|
717
|
+
backgroundColor: c.grey[100],
|
703
718
|
display: "flex",
|
704
719
|
height: o(3),
|
705
720
|
justifyContent: "center",
|
@@ -708,29 +723,29 @@ const Cr = {
|
|
708
723
|
width: "100%",
|
709
724
|
zIndex: 1
|
710
725
|
}));
|
711
|
-
function
|
726
|
+
function Ur({
|
712
727
|
title: n,
|
713
728
|
id: o,
|
714
|
-
anchor:
|
715
|
-
scrollMarginTop:
|
716
|
-
children:
|
717
|
-
BoxProps:
|
729
|
+
anchor: c = !1,
|
730
|
+
scrollMarginTop: s = 0,
|
731
|
+
children: b,
|
732
|
+
BoxProps: C
|
718
733
|
}) {
|
719
|
-
return /* @__PURE__ */
|
720
|
-
|
734
|
+
return /* @__PURE__ */ d.jsxs(
|
735
|
+
Ar,
|
721
736
|
{
|
722
|
-
scrollMarginTop:
|
737
|
+
scrollMarginTop: s,
|
723
738
|
id: o,
|
724
|
-
"data-anchor":
|
725
|
-
...
|
739
|
+
"data-anchor": c,
|
740
|
+
...C,
|
726
741
|
children: [
|
727
|
-
/* @__PURE__ */
|
728
|
-
/* @__PURE__ */
|
742
|
+
/* @__PURE__ */ d.jsx($r, { scrollMarginTop: s, children: /* @__PURE__ */ d.jsx(oe, { variant: "caption", children: n }) }),
|
743
|
+
/* @__PURE__ */ d.jsx(I, { sx: Fr.contentBox, children: /* @__PURE__ */ d.jsx(d.Fragment, { children: b }) })
|
729
744
|
]
|
730
745
|
}
|
731
746
|
);
|
732
747
|
}
|
733
|
-
const
|
748
|
+
const Mr = {
|
734
749
|
tabsWrapper: {
|
735
750
|
backgroundColor: ({ palette: n }) => n.background.paper,
|
736
751
|
left: 0,
|
@@ -752,50 +767,50 @@ const jr = {
|
|
752
767
|
}
|
753
768
|
}
|
754
769
|
};
|
755
|
-
function
|
770
|
+
function qr({
|
756
771
|
children: n,
|
757
772
|
anchor: o,
|
758
|
-
TabsProps:
|
759
|
-
variant:
|
760
|
-
onChange:
|
773
|
+
TabsProps: c,
|
774
|
+
variant: s = "standard",
|
775
|
+
onChange: b
|
761
776
|
}) {
|
762
|
-
const
|
763
|
-
|
777
|
+
const C = (j, R) => {
|
778
|
+
j.preventDefault(), b?.(R);
|
764
779
|
};
|
765
|
-
return /* @__PURE__ */
|
766
|
-
|
780
|
+
return /* @__PURE__ */ d.jsx(I, { sx: Mr.tabsWrapper, children: /* @__PURE__ */ d.jsx(
|
781
|
+
Cr,
|
767
782
|
{
|
768
783
|
indicatorColor: "primary",
|
769
784
|
textColor: "primary",
|
770
785
|
"aria-label": "Explore sections",
|
771
|
-
...
|
786
|
+
...c,
|
772
787
|
value: o,
|
773
|
-
variant:
|
774
|
-
onChange:
|
788
|
+
variant: s,
|
789
|
+
onChange: C,
|
775
790
|
children: n
|
776
791
|
}
|
777
792
|
) });
|
778
793
|
}
|
779
|
-
function
|
780
|
-
var o,
|
794
|
+
function Me(n) {
|
795
|
+
var o, c, s = "";
|
781
796
|
if (typeof n == "string" || typeof n == "number")
|
782
|
-
|
797
|
+
s += n;
|
783
798
|
else if (typeof n == "object")
|
784
799
|
if (Array.isArray(n)) {
|
785
|
-
var
|
786
|
-
for (o = 0; o <
|
787
|
-
n[o] && (
|
800
|
+
var b = n.length;
|
801
|
+
for (o = 0; o < b; o++)
|
802
|
+
n[o] && (c = Me(n[o])) && (s && (s += " "), s += c);
|
788
803
|
} else
|
789
|
-
for (
|
790
|
-
n[
|
791
|
-
return
|
804
|
+
for (c in n)
|
805
|
+
n[c] && (s && (s += " "), s += c);
|
806
|
+
return s;
|
792
807
|
}
|
793
|
-
function
|
794
|
-
for (var n, o,
|
795
|
-
(n = arguments[
|
796
|
-
return
|
808
|
+
function Wr() {
|
809
|
+
for (var n, o, c = 0, s = "", b = arguments.length; c < b; c++)
|
810
|
+
(n = arguments[c]) && (o = Me(n)) && (s && (s += " "), s += o);
|
811
|
+
return s;
|
797
812
|
}
|
798
|
-
const
|
813
|
+
const Vr = {
|
799
814
|
box: {
|
800
815
|
borderRadius: ({ spacing: n }) => `0 0 ${n(0.5)} ${n(0.5)}`,
|
801
816
|
flex: 1,
|
@@ -807,77 +822,143 @@ const Pr = {
|
|
807
822
|
width: "100%"
|
808
823
|
}
|
809
824
|
};
|
810
|
-
function
|
825
|
+
function zr({
|
811
826
|
children: n,
|
812
827
|
currentAnchor: o,
|
813
|
-
BoxProps:
|
814
|
-
className:
|
815
|
-
timeout:
|
816
|
-
onChange:
|
828
|
+
BoxProps: c,
|
829
|
+
className: s,
|
830
|
+
timeout: b = 50,
|
831
|
+
onChange: C
|
817
832
|
}) {
|
818
|
-
const
|
819
|
-
|
820
|
-
const
|
821
|
-
|
833
|
+
const j = J(null), R = J([]), v = J(0), m = J(o);
|
834
|
+
Pe(() => {
|
835
|
+
const g = Array.from(
|
836
|
+
j.current?.querySelectorAll('[data-anchor="true"]') || []
|
822
837
|
);
|
823
|
-
if (
|
838
|
+
if (R.current = [...g].reverse(), !R.current.length)
|
824
839
|
throw new Error(
|
825
840
|
'initialization of ScrollToAnchor: Missing sections with data-anchor="true" attribute.'
|
826
841
|
);
|
827
|
-
}, []),
|
828
|
-
const
|
829
|
-
const
|
830
|
-
if (!
|
842
|
+
}, []), Pe(() => {
|
843
|
+
const g = (_) => {
|
844
|
+
const P = j.current?.querySelector(`#${_}`);
|
845
|
+
if (!P) {
|
831
846
|
console.warn(
|
832
|
-
`Warning: navigation of ScrollToAnchor: the section you want to navigate to does not exist. To create it add the #${
|
847
|
+
`Warning: navigation of ScrollToAnchor: the section you want to navigate to does not exist. To create it add the #${_} id property to an element.`
|
833
848
|
);
|
834
849
|
return;
|
835
850
|
}
|
836
|
-
if (
|
837
|
-
|
851
|
+
if (P) {
|
852
|
+
P.scrollIntoView({
|
838
853
|
behavior: "smooth",
|
839
854
|
block: "nearest",
|
840
855
|
inline: "start"
|
841
856
|
});
|
842
|
-
const
|
843
|
-
|
844
|
-
},
|
857
|
+
const S = setInterval(() => {
|
858
|
+
P.offsetTop === v.current && (m.current = _, clearInterval(S));
|
859
|
+
}, b);
|
845
860
|
}
|
846
861
|
};
|
847
|
-
o !==
|
848
|
-
}, [o,
|
849
|
-
const
|
850
|
-
const
|
851
|
-
|
852
|
-
}, [
|
853
|
-
(
|
854
|
-
|
862
|
+
o !== m.current && g(o);
|
863
|
+
}, [o, b]);
|
864
|
+
const y = ke(() => {
|
865
|
+
const _ = R.current.find((P) => v.current >= P.offsetTop)?.id || "";
|
866
|
+
m.current !== _ && (m.current = _, C(_));
|
867
|
+
}, [C]), w = ke(
|
868
|
+
(g) => {
|
869
|
+
g.stopPropagation(), v.current = g.currentTarget.scrollTop, o === m.current && requestAnimationFrame(() => y());
|
855
870
|
},
|
856
|
-
[o,
|
871
|
+
[o, y]
|
857
872
|
);
|
858
|
-
return /* @__PURE__ */
|
859
|
-
|
873
|
+
return /* @__PURE__ */ d.jsx(
|
874
|
+
I,
|
860
875
|
{
|
861
|
-
ref:
|
862
|
-
sx:
|
863
|
-
...
|
864
|
-
className:
|
876
|
+
ref: j,
|
877
|
+
sx: Vr.box,
|
878
|
+
...c,
|
879
|
+
className: Wr(s),
|
865
880
|
"data-scroller": !0,
|
866
|
-
onScroll: (
|
881
|
+
onScroll: (g) => w(g),
|
867
882
|
children: n
|
868
883
|
}
|
869
884
|
);
|
870
885
|
}
|
871
|
-
|
886
|
+
const Fe = {
|
887
|
+
container: {
|
888
|
+
display: "flex",
|
889
|
+
flexDirection: "row",
|
890
|
+
alignItems: "center",
|
891
|
+
justifyContent: "flex-start",
|
892
|
+
gap: ({ spacing: n }) => n(1)
|
893
|
+
},
|
894
|
+
buttonContainer: {
|
895
|
+
display: "flex",
|
896
|
+
flexDirection: "column",
|
897
|
+
alignItems: "center",
|
898
|
+
justifyContent: "center",
|
899
|
+
height: ({ spacing: n }) => n(4),
|
900
|
+
width: ({ spacing: n }) => n(4),
|
901
|
+
backgroundColor: ({ palette: n }) => n.background.paper,
|
902
|
+
button: {
|
903
|
+
borderRadius: 0,
|
904
|
+
".MuiTouchRipple-ripple .MuiTouchRipple-child": {
|
905
|
+
borderRadius: 0
|
906
|
+
}
|
907
|
+
}
|
908
|
+
}
|
909
|
+
};
|
910
|
+
function Jr({
|
911
|
+
enable: n,
|
912
|
+
onToggleButton: o,
|
913
|
+
text: c,
|
914
|
+
tooltip: s = "Click on the map to trace the line you want to measure"
|
915
|
+
}) {
|
916
|
+
return /* @__PURE__ */ d.jsxs(I, { sx: Fe.container, children: [
|
917
|
+
/* @__PURE__ */ d.jsx(jr, { sx: Fe.buttonContainer, children: /* @__PURE__ */ d.jsx(wr, { title: s, placement: "right", children: /* @__PURE__ */ d.jsx(
|
918
|
+
Sr,
|
919
|
+
{
|
920
|
+
size: "small",
|
921
|
+
edge: !1,
|
922
|
+
onClick: o,
|
923
|
+
"aria-label": s,
|
924
|
+
children: /* @__PURE__ */ d.jsx(Lr, { fill: n ? "#036fe2" : "currentColor" })
|
925
|
+
}
|
926
|
+
) }) }),
|
927
|
+
n && /* @__PURE__ */ d.jsx(
|
928
|
+
Or,
|
929
|
+
{
|
930
|
+
color: "secondary",
|
931
|
+
size: "small",
|
932
|
+
onDelete: o,
|
933
|
+
label: c
|
934
|
+
}
|
935
|
+
)
|
936
|
+
] });
|
937
|
+
}
|
938
|
+
function Lr(n) {
|
939
|
+
return /* @__PURE__ */ d.jsx(
|
940
|
+
"svg",
|
941
|
+
{
|
942
|
+
className: "doNotFillIcon",
|
943
|
+
xmlns: "http://www.w3.org/2000/svg",
|
944
|
+
width: 18,
|
945
|
+
height: 18,
|
946
|
+
...n,
|
947
|
+
children: /* @__PURE__ */ d.jsx("path", { 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" })
|
948
|
+
}
|
949
|
+
);
|
950
|
+
}
|
951
|
+
function Kr(n) {
|
872
952
|
return n.map((o) => {
|
873
|
-
const
|
874
|
-
return { value:
|
953
|
+
const c = o, s = String(o);
|
954
|
+
return { value: c, label: s };
|
875
955
|
});
|
876
956
|
}
|
877
957
|
export {
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
958
|
+
Nr as ListData,
|
959
|
+
Jr as MapMeasureToolUI,
|
960
|
+
zr as ScrollToAnchor,
|
961
|
+
Ur as SectionContainer,
|
962
|
+
qr as TabsToAnchor,
|
963
|
+
Kr as createSelectOptionsFromArray
|
883
964
|
};
|