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