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