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