@carto/ps-react-ui 1.3.1 → 2.1.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 +27 -0
- package/dist/index.js +1073 -0
- package/dist/types/components/index.d.ts +5 -23
- package/dist/types/components/list-data/index.d.ts +2 -0
- package/dist/types/components/{list/list.component.d.ts → list-data/list-data.component.d.ts} +7 -6
- package/dist/types/components/list-data/list-data.stories.d.ts +53 -0
- package/dist/types/components/list-data/list-data.styles.d.ts +6 -0
- package/dist/types/components/{list → list-data}/types.d.ts +7 -7
- package/dist/types/components/map/components/deckgl-map/deckgl-maps.component.d.ts +2 -0
- package/dist/types/components/map/components/deckgl-map/deckgl-maps.stories.d.ts +83 -0
- package/dist/types/components/map/components/google-maps/google-maps.component.d.ts +2 -0
- package/dist/types/components/map/components/google-maps/google-maps.stories.d.ts +85 -0
- package/dist/types/components/map/index.d.ts +4 -0
- package/dist/types/components/map/map.component.d.ts +2 -0
- package/dist/types/components/map/map.stories.d.ts +92 -0
- package/dist/types/components/map/types.d.ts +67 -0
- package/dist/types/components/scroll-to-anchor/index.d.ts +2 -0
- package/dist/types/components/scroll-to-anchor/scroll-to-anchor.component.d.ts +34 -0
- package/dist/types/components/scroll-to-anchor/scroll-to-anchor.stories.d.ts +42 -0
- package/dist/types/components/scroll-to-anchor/scroll-to-anchor.styles.d.ts +13 -0
- package/dist/types/components/scroll-to-anchor/types.d.ts +10 -0
- package/dist/types/components/section-container/index.d.ts +2 -0
- package/dist/types/components/section-container/section-container.component.d.ts +1 -0
- package/dist/types/components/section-container/section-container.stories.d.ts +5 -0
- package/dist/types/components/section-container/section-container.styles.d.ts +32 -0
- package/dist/types/components/section-container/types.d.ts +2 -1
- package/dist/types/components/tabs-to-anchor/index.d.ts +2 -0
- package/dist/types/components/tabs-to-anchor/tabs-to-anchor.component.d.ts +1 -1
- package/dist/types/components/tabs-to-anchor/tabs-to-anchor.stories.d.ts +30 -0
- package/dist/types/components/tabs-to-anchor/tabs-to-anchor.styles.d.ts +23 -0
- package/dist/types/components/tabs-to-anchor/types.d.ts +2 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/create-select-options-from-array.utils.d.ts +5 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +49 -36
- package/dist/ps-react-ui.js +0 -21290
- package/dist/types/components/button-warning/button-warning.component.d.ts +0 -31
- package/dist/types/components/button-warning/icon-button-warning.d.ts +0 -31
- package/dist/types/components/button-warning/styles.d.ts +0 -29
- package/dist/types/components/button-warning/types.d.ts +0 -16
- package/dist/types/components/grouped-chips/grouped-chips.component.d.ts +0 -30
- package/dist/types/components/grouped-chips/types.d.ts +0 -15
- package/dist/types/components/input-file/input-file.component.d.ts +0 -45
- package/dist/types/components/input-file/types.d.ts +0 -17
- package/dist/types/components/selects/autocomplete/autocomplete-select/autocomplete-select.component.d.ts +0 -39
- package/dist/types/components/selects/autocomplete/autocomplete-select-simple/autocomplete-select-simple.component.d.ts +0 -35
- package/dist/types/components/selects/autocomplete/commons/autocomplete-select-option.component.d.ts +0 -2
- package/dist/types/components/selects/autocomplete/commons/listbox-select.component.d.ts +0 -19
- package/dist/types/components/selects/simple-select/create-options-from-array.utils.d.ts +0 -2
- package/dist/types/components/selects/simple-select/simple-select.component.d.ts +0 -25
- package/dist/types/components/selects/types.d.ts +0 -36
- package/dist/types/components/table/components/table-body.component.d.ts +0 -32
- package/dist/types/components/table/components/table-cell.component.d.ts +0 -31
- package/dist/types/components/table/components/table-header.component.d.ts +0 -27
- package/dist/types/components/table/table.component.d.ts +0 -39
- package/dist/types/components/table/types.d.ts +0 -90
- package/dist/types/components/table/utils.d.ts +0 -4
- package/dist/types/styling/index.d.ts +0 -1
- package/dist/types/styling/types.d.ts +0 -4
package/dist/index.js
ADDED
@@ -0,0 +1,1073 @@
|
|
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 = {};
|
9
|
+
/**
|
10
|
+
* @license React
|
11
|
+
* react-jsx-runtime.production.min.js
|
12
|
+
*
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
14
|
+
*
|
15
|
+
* This source code is licensed under the MIT license found in the
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
17
|
+
*/
|
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 };
|
33
|
+
}
|
34
|
+
return q.Fragment = l, q.jsx = S, q.jsxs = S, q;
|
35
|
+
}
|
36
|
+
var G = {};
|
37
|
+
/**
|
38
|
+
* @license React
|
39
|
+
* react-jsx-runtime.development.js
|
40
|
+
*
|
41
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
42
|
+
*
|
43
|
+
* This source code is licensed under the MIT license found in the
|
44
|
+
* LICENSE file in the root directory of this source tree.
|
45
|
+
*/
|
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) {
|
51
|
+
if (e === null || typeof e != "object")
|
52
|
+
return null;
|
53
|
+
var r = O && e[O] || e[j];
|
54
|
+
return typeof r == "function" ? r : null;
|
55
|
+
}
|
56
|
+
var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
57
|
+
function T(e) {
|
58
|
+
{
|
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);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
function L(e, r, n) {
|
65
|
+
{
|
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);
|
70
|
+
});
|
71
|
+
f.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, f);
|
72
|
+
}
|
73
|
+
}
|
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
|
78
|
+
// types supported by any Flight configuration anywhere since
|
79
|
+
// we don't know which Flight build this will end up being used
|
80
|
+
// with.
|
81
|
+
e.$$typeof === z || e.getModuleId !== void 0));
|
82
|
+
}
|
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;
|
89
|
+
}
|
90
|
+
function I(e) {
|
91
|
+
return e.displayName || "Context";
|
92
|
+
}
|
93
|
+
function C(e) {
|
94
|
+
if (e == null)
|
95
|
+
return null;
|
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")
|
97
|
+
return e.displayName || e.name || null;
|
98
|
+
if (typeof e == "string")
|
99
|
+
return e;
|
100
|
+
switch (e) {
|
101
|
+
case i:
|
102
|
+
return "Fragment";
|
103
|
+
case l:
|
104
|
+
return "Portal";
|
105
|
+
case v:
|
106
|
+
return "Profiler";
|
107
|
+
case y:
|
108
|
+
return "StrictMode";
|
109
|
+
case g:
|
110
|
+
return "Suspense";
|
111
|
+
case h:
|
112
|
+
return "SuspenseList";
|
113
|
+
}
|
114
|
+
if (typeof e == "object")
|
115
|
+
switch (e.$$typeof) {
|
116
|
+
case x:
|
117
|
+
var r = e;
|
118
|
+
return I(r) + ".Consumer";
|
119
|
+
case S:
|
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;
|
129
|
+
try {
|
130
|
+
return C(u(f));
|
131
|
+
} catch {
|
132
|
+
return null;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
return null;
|
137
|
+
}
|
138
|
+
var F = Object.assign, k = 0, be, Ee, xe, _e, Re, Te, Ce;
|
139
|
+
function je() {
|
140
|
+
}
|
141
|
+
je.__reactDisabledLog = !0;
|
142
|
+
function Ke() {
|
143
|
+
{
|
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;
|
146
|
+
var e = {
|
147
|
+
configurable: !0,
|
148
|
+
enumerable: !0,
|
149
|
+
value: je,
|
150
|
+
writable: !0
|
151
|
+
};
|
152
|
+
Object.defineProperties(console, {
|
153
|
+
info: e,
|
154
|
+
log: e,
|
155
|
+
warn: e,
|
156
|
+
error: e,
|
157
|
+
group: e,
|
158
|
+
groupCollapsed: e,
|
159
|
+
groupEnd: e
|
160
|
+
});
|
161
|
+
}
|
162
|
+
k++;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
function He() {
|
166
|
+
{
|
167
|
+
if (k--, k === 0) {
|
168
|
+
var e = {
|
169
|
+
configurable: !0,
|
170
|
+
enumerable: !0,
|
171
|
+
writable: !0
|
172
|
+
};
|
173
|
+
Object.defineProperties(console, {
|
174
|
+
log: F({}, e, {
|
175
|
+
value: be
|
176
|
+
}),
|
177
|
+
info: F({}, e, {
|
178
|
+
value: Ee
|
179
|
+
}),
|
180
|
+
warn: F({}, e, {
|
181
|
+
value: xe
|
182
|
+
}),
|
183
|
+
error: F({}, e, {
|
184
|
+
value: _e
|
185
|
+
}),
|
186
|
+
group: F({}, e, {
|
187
|
+
value: Re
|
188
|
+
}),
|
189
|
+
groupCollapsed: F({}, e, {
|
190
|
+
value: Te
|
191
|
+
}),
|
192
|
+
groupEnd: F({}, e, {
|
193
|
+
value: Ce
|
194
|
+
})
|
195
|
+
});
|
196
|
+
}
|
197
|
+
k < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
198
|
+
}
|
199
|
+
}
|
200
|
+
var oe = D.ReactCurrentDispatcher, ie;
|
201
|
+
function H(e, r, n) {
|
202
|
+
{
|
203
|
+
if (ie === void 0)
|
204
|
+
try {
|
205
|
+
throw Error();
|
206
|
+
} catch (c) {
|
207
|
+
var o = c.stack.trim().match(/\n( *(at )?)/);
|
208
|
+
ie = o && o[1] || "";
|
209
|
+
}
|
210
|
+
return `
|
211
|
+
` + ie + e;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
var se = !1, X;
|
215
|
+
{
|
216
|
+
var Xe = typeof WeakMap == "function" ? WeakMap : Map;
|
217
|
+
X = new Xe();
|
218
|
+
}
|
219
|
+
function Se(e, r) {
|
220
|
+
if (!e || se)
|
221
|
+
return "";
|
222
|
+
{
|
223
|
+
var n = X.get(e);
|
224
|
+
if (n !== void 0)
|
225
|
+
return n;
|
226
|
+
}
|
227
|
+
var o;
|
228
|
+
se = !0;
|
229
|
+
var c = Error.prepareStackTrace;
|
230
|
+
Error.prepareStackTrace = void 0;
|
231
|
+
var f;
|
232
|
+
f = oe.current, oe.current = null, Ke();
|
233
|
+
try {
|
234
|
+
if (r) {
|
235
|
+
var u = function() {
|
236
|
+
throw Error();
|
237
|
+
};
|
238
|
+
if (Object.defineProperty(u.prototype, "props", {
|
239
|
+
set: function() {
|
240
|
+
throw Error();
|
241
|
+
}
|
242
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
243
|
+
try {
|
244
|
+
Reflect.construct(u, []);
|
245
|
+
} catch (M) {
|
246
|
+
o = M;
|
247
|
+
}
|
248
|
+
Reflect.construct(e, [], u);
|
249
|
+
} else {
|
250
|
+
try {
|
251
|
+
u.call();
|
252
|
+
} catch (M) {
|
253
|
+
o = M;
|
254
|
+
}
|
255
|
+
e.call(u.prototype);
|
256
|
+
}
|
257
|
+
} else {
|
258
|
+
try {
|
259
|
+
throw Error();
|
260
|
+
} catch (M) {
|
261
|
+
o = M;
|
262
|
+
}
|
263
|
+
e();
|
264
|
+
}
|
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)
|
274
|
+
do
|
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;
|
279
|
+
}
|
280
|
+
while (E >= 1 && _ >= 0);
|
281
|
+
break;
|
282
|
+
}
|
283
|
+
}
|
284
|
+
} finally {
|
285
|
+
se = !1, oe.current = f, He(), Error.prepareStackTrace = c;
|
286
|
+
}
|
287
|
+
var W = e ? e.displayName || e.name : "", We = W ? H(W) : "";
|
288
|
+
return typeof e == "function" && X.set(e, We), We;
|
289
|
+
}
|
290
|
+
function Qe(e, r, n) {
|
291
|
+
return Se(e, !1);
|
292
|
+
}
|
293
|
+
function er(e) {
|
294
|
+
var r = e.prototype;
|
295
|
+
return !!(r && r.isReactComponent);
|
296
|
+
}
|
297
|
+
function Q(e, r, n) {
|
298
|
+
if (e == null)
|
299
|
+
return "";
|
300
|
+
if (typeof e == "function")
|
301
|
+
return Se(e, er(e));
|
302
|
+
if (typeof e == "string")
|
303
|
+
return H(e);
|
304
|
+
switch (e) {
|
305
|
+
case g:
|
306
|
+
return H("Suspense");
|
307
|
+
case h:
|
308
|
+
return H("SuspenseList");
|
309
|
+
}
|
310
|
+
if (typeof e == "object")
|
311
|
+
switch (e.$$typeof) {
|
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;
|
318
|
+
try {
|
319
|
+
return Q(f(c), r, n);
|
320
|
+
} catch {
|
321
|
+
}
|
322
|
+
}
|
323
|
+
}
|
324
|
+
return "";
|
325
|
+
}
|
326
|
+
var ee = Object.prototype.hasOwnProperty, we = {}, Oe = D.ReactDebugCurrentFrame;
|
327
|
+
function re(e) {
|
328
|
+
if (e) {
|
329
|
+
var r = e._owner, n = Q(e.type, e._source, r ? r.type : null);
|
330
|
+
Oe.setExtraStackFrame(n);
|
331
|
+
} else
|
332
|
+
Oe.setExtraStackFrame(null);
|
333
|
+
}
|
334
|
+
function rr(e, r, n, o, c) {
|
335
|
+
{
|
336
|
+
var f = Function.call.bind(ee);
|
337
|
+
for (var u in e)
|
338
|
+
if (f(e, u)) {
|
339
|
+
var s = void 0;
|
340
|
+
try {
|
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;
|
344
|
+
}
|
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;
|
348
|
+
}
|
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));
|
350
|
+
}
|
351
|
+
}
|
352
|
+
}
|
353
|
+
var tr = Array.isArray;
|
354
|
+
function ue(e) {
|
355
|
+
return tr(e);
|
356
|
+
}
|
357
|
+
function nr(e) {
|
358
|
+
{
|
359
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
360
|
+
return n;
|
361
|
+
}
|
362
|
+
}
|
363
|
+
function ar(e) {
|
364
|
+
try {
|
365
|
+
return Pe(e), !1;
|
366
|
+
} catch {
|
367
|
+
return !0;
|
368
|
+
}
|
369
|
+
}
|
370
|
+
function Pe(e) {
|
371
|
+
return "" + e;
|
372
|
+
}
|
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);
|
376
|
+
}
|
377
|
+
var U = D.ReactCurrentOwner, or = {
|
378
|
+
key: !0,
|
379
|
+
ref: !0,
|
380
|
+
__self: !0,
|
381
|
+
__source: !0
|
382
|
+
}, De, Ie, le;
|
383
|
+
le = {};
|
384
|
+
function ir(e) {
|
385
|
+
if (ee.call(e, "ref")) {
|
386
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
387
|
+
if (r && r.isReactWarning)
|
388
|
+
return !1;
|
389
|
+
}
|
390
|
+
return e.ref !== void 0;
|
391
|
+
}
|
392
|
+
function sr(e) {
|
393
|
+
if (ee.call(e, "key")) {
|
394
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
395
|
+
if (r && r.isReactWarning)
|
396
|
+
return !1;
|
397
|
+
}
|
398
|
+
return e.key !== void 0;
|
399
|
+
}
|
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);
|
404
|
+
}
|
405
|
+
}
|
406
|
+
function lr(e, r) {
|
407
|
+
{
|
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));
|
410
|
+
};
|
411
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
412
|
+
get: n,
|
413
|
+
configurable: !0
|
414
|
+
});
|
415
|
+
}
|
416
|
+
}
|
417
|
+
function cr(e, r) {
|
418
|
+
{
|
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));
|
421
|
+
};
|
422
|
+
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
423
|
+
get: n,
|
424
|
+
configurable: !0
|
425
|
+
});
|
426
|
+
}
|
427
|
+
}
|
428
|
+
var fr = function(e, r, n, o, c, f, u) {
|
429
|
+
var s = {
|
430
|
+
// This tag allows us to uniquely identify this as a React Element
|
431
|
+
$$typeof: a,
|
432
|
+
// Built-in properties that belong on the element
|
433
|
+
type: e,
|
434
|
+
key: r,
|
435
|
+
ref: n,
|
436
|
+
props: u,
|
437
|
+
// Record the component responsible for creating this element.
|
438
|
+
_owner: f
|
439
|
+
};
|
440
|
+
return s._store = {}, Object.defineProperty(s._store, "validated", {
|
441
|
+
configurable: !1,
|
442
|
+
enumerable: !1,
|
443
|
+
writable: !0,
|
444
|
+
value: !1
|
445
|
+
}), Object.defineProperty(s, "_self", {
|
446
|
+
configurable: !1,
|
447
|
+
enumerable: !1,
|
448
|
+
writable: !1,
|
449
|
+
value: o
|
450
|
+
}), Object.defineProperty(s, "_source", {
|
451
|
+
configurable: !1,
|
452
|
+
enumerable: !1,
|
453
|
+
writable: !1,
|
454
|
+
value: c
|
455
|
+
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
|
456
|
+
};
|
457
|
+
function dr(e, r, n, o, c) {
|
458
|
+
{
|
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]);
|
463
|
+
if (e && e.defaultProps) {
|
464
|
+
var E = e.defaultProps;
|
465
|
+
for (f in E)
|
466
|
+
u[f] === void 0 && (u[f] = E[f]);
|
467
|
+
}
|
468
|
+
if (s || P) {
|
469
|
+
var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
470
|
+
s && lr(u, _), P && cr(u, _);
|
471
|
+
}
|
472
|
+
return fr(e, s, P, c, o, U.current, u);
|
473
|
+
}
|
474
|
+
}
|
475
|
+
var ce = D.ReactCurrentOwner, Ae = D.ReactDebugCurrentFrame;
|
476
|
+
function V(e) {
|
477
|
+
if (e) {
|
478
|
+
var r = e._owner, n = Q(e.type, e._source, r ? r.type : null);
|
479
|
+
Ae.setExtraStackFrame(n);
|
480
|
+
} else
|
481
|
+
Ae.setExtraStackFrame(null);
|
482
|
+
}
|
483
|
+
var fe;
|
484
|
+
fe = !1;
|
485
|
+
function de(e) {
|
486
|
+
return typeof e == "object" && e !== null && e.$$typeof === a;
|
487
|
+
}
|
488
|
+
function Fe() {
|
489
|
+
{
|
490
|
+
if (ce.current) {
|
491
|
+
var e = C(ce.current.type);
|
492
|
+
if (e)
|
493
|
+
return `
|
494
|
+
|
495
|
+
Check the render method of \`` + e + "`.";
|
496
|
+
}
|
497
|
+
return "";
|
498
|
+
}
|
499
|
+
}
|
500
|
+
function pr(e) {
|
501
|
+
{
|
502
|
+
if (e !== void 0) {
|
503
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
504
|
+
return `
|
505
|
+
|
506
|
+
Check your code at ` + r + ":" + n + ".";
|
507
|
+
}
|
508
|
+
return "";
|
509
|
+
}
|
510
|
+
}
|
511
|
+
var Me = {};
|
512
|
+
function vr(e) {
|
513
|
+
{
|
514
|
+
var r = Fe();
|
515
|
+
if (!r) {
|
516
|
+
var n = typeof e == "string" ? e : e.displayName || e.name;
|
517
|
+
n && (r = `
|
518
|
+
|
519
|
+
Check the top-level render call using <` + n + ">.");
|
520
|
+
}
|
521
|
+
return r;
|
522
|
+
}
|
523
|
+
}
|
524
|
+
function Le(e, r) {
|
525
|
+
{
|
526
|
+
if (!e._store || e._store.validated || e.key != null)
|
527
|
+
return;
|
528
|
+
e._store.validated = !0;
|
529
|
+
var n = vr(r);
|
530
|
+
if (Me[n])
|
531
|
+
return;
|
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);
|
535
|
+
}
|
536
|
+
}
|
537
|
+
function $e(e, r) {
|
538
|
+
{
|
539
|
+
if (typeof e != "object")
|
540
|
+
return;
|
541
|
+
if (ue(e))
|
542
|
+
for (var n = 0; n < e.length; n++) {
|
543
|
+
var o = e[n];
|
544
|
+
de(o) && Le(o, r);
|
545
|
+
}
|
546
|
+
else if (de(e))
|
547
|
+
e._store && (e._store.validated = !0);
|
548
|
+
else if (e) {
|
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);
|
553
|
+
}
|
554
|
+
}
|
555
|
+
}
|
556
|
+
function mr(e) {
|
557
|
+
{
|
558
|
+
var r = e.type;
|
559
|
+
if (r == null || typeof r == "string")
|
560
|
+
return;
|
561
|
+
var n;
|
562
|
+
if (typeof r == "function")
|
563
|
+
n = r.propTypes;
|
564
|
+
else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
|
565
|
+
// Inner props are checked in the reconciler.
|
566
|
+
r.$$typeof === w))
|
567
|
+
n = r.propTypes;
|
568
|
+
else
|
569
|
+
return;
|
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");
|
577
|
+
}
|
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.");
|
579
|
+
}
|
580
|
+
}
|
581
|
+
function gr(e) {
|
582
|
+
{
|
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);
|
587
|
+
break;
|
588
|
+
}
|
589
|
+
}
|
590
|
+
e.ref !== null && (V(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
|
591
|
+
}
|
592
|
+
}
|
593
|
+
function Ve(e, r, n, o, c, f) {
|
594
|
+
{
|
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);
|
603
|
+
}
|
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);
|
615
|
+
} else
|
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.");
|
617
|
+
else
|
618
|
+
$e(A, e);
|
619
|
+
}
|
620
|
+
return e === i ? gr(_) : mr(_), _;
|
621
|
+
}
|
622
|
+
}
|
623
|
+
function hr(e, r, n) {
|
624
|
+
return Ve(e, r, n, !0);
|
625
|
+
}
|
626
|
+
function yr(e, r, n) {
|
627
|
+
return Ve(e, r, n, !1);
|
628
|
+
}
|
629
|
+
var br = yr, Er = hr;
|
630
|
+
G.Fragment = i, G.jsx = br, G.jsxs = Er;
|
631
|
+
}()), G;
|
632
|
+
}
|
633
|
+
process.env.NODE_ENV === "production" ? ve.exports = kr() : ve.exports = Dr();
|
634
|
+
var d = ve.exports;
|
635
|
+
const Ir = {
|
636
|
+
box: {
|
637
|
+
marginLeft: ({ spacing: t }) => t(1)
|
638
|
+
}
|
639
|
+
};
|
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
|
649
|
+
}) {
|
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,
|
660
|
+
{
|
661
|
+
divider: !0,
|
662
|
+
onClick: (b) => p?.(b, j),
|
663
|
+
children: [
|
664
|
+
/* @__PURE__ */ d.jsx(Rr, { primary: j.name }),
|
665
|
+
/* @__PURE__ */ d.jsx(Ar, { value: m(j.value), unit: S })
|
666
|
+
]
|
667
|
+
},
|
668
|
+
j.id
|
669
|
+
)) }),
|
670
|
+
O && /* @__PURE__ */ d.jsx(
|
671
|
+
Tr,
|
672
|
+
{
|
673
|
+
variant: "text",
|
674
|
+
color: "primary",
|
675
|
+
size: "small",
|
676
|
+
onClick: w,
|
677
|
+
children: g ? y : v
|
678
|
+
}
|
679
|
+
)
|
680
|
+
] });
|
681
|
+
}
|
682
|
+
function Ar({
|
683
|
+
value: t,
|
684
|
+
unit: a
|
685
|
+
}) {
|
686
|
+
return /* @__PURE__ */ d.jsx($, { sx: Ir.box, children: /* @__PURE__ */ d.jsxs(ge, { variant: "body2", align: "right", noWrap: !0, children: [
|
687
|
+
a,
|
688
|
+
" ",
|
689
|
+
t
|
690
|
+
] }) });
|
691
|
+
}
|
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 = {
|
877
|
+
contentBox: {
|
878
|
+
paddingBottom: 2,
|
879
|
+
paddingX: 2
|
880
|
+
}
|
881
|
+
}, Br = Ze($, {
|
882
|
+
shouldForwardProp: (t) => t !== "scrollMarginTop"
|
883
|
+
})(({ scrollMarginTop: t }) => ({
|
884
|
+
height: "auto",
|
885
|
+
scrollMarginTop: t,
|
886
|
+
width: "100%"
|
887
|
+
})), Nr = Ze($, {
|
888
|
+
shouldForwardProp: (t) => t !== "scrollMarginTop"
|
889
|
+
})(({ scrollMarginTop: t, theme: { spacing: a, palette: l } }) => ({
|
890
|
+
alignItems: "center",
|
891
|
+
backgroundColor: l.grey[100],
|
892
|
+
display: "flex",
|
893
|
+
height: a(3),
|
894
|
+
justifyContent: "center",
|
895
|
+
position: "sticky",
|
896
|
+
top: t,
|
897
|
+
width: "100%",
|
898
|
+
zIndex: 1
|
899
|
+
}));
|
900
|
+
function tt({
|
901
|
+
title: t,
|
902
|
+
id: a,
|
903
|
+
anchor: l = !1,
|
904
|
+
scrollMarginTop: i = 0,
|
905
|
+
children: y,
|
906
|
+
BoxProps: v
|
907
|
+
}) {
|
908
|
+
return /* @__PURE__ */ d.jsxs(
|
909
|
+
Br,
|
910
|
+
{
|
911
|
+
scrollMarginTop: i,
|
912
|
+
id: a,
|
913
|
+
"data-anchor": l,
|
914
|
+
...v,
|
915
|
+
children: [
|
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 }) })
|
918
|
+
]
|
919
|
+
}
|
920
|
+
);
|
921
|
+
}
|
922
|
+
const zr = {
|
923
|
+
tabsWrapper: {
|
924
|
+
backgroundColor: ({ palette: t }) => t.background.paper,
|
925
|
+
left: 0,
|
926
|
+
position: "sticky",
|
927
|
+
top: 0,
|
928
|
+
width: "100%",
|
929
|
+
zIndex: 2,
|
930
|
+
"& .MuiTab-root:last-of-type": {
|
931
|
+
marginRight: 0
|
932
|
+
},
|
933
|
+
"& .MuiTab-textColorPrimary": {
|
934
|
+
color: ({ palette: t }) => t.text.primary,
|
935
|
+
"&.Mui-selected": {
|
936
|
+
color: ({ palette: t }) => t.primary.main
|
937
|
+
}
|
938
|
+
},
|
939
|
+
"& .MuiTabs-indicator.colorPrimary": {
|
940
|
+
backgroundColor: ({ palette: t }) => t.primary.main
|
941
|
+
}
|
942
|
+
}
|
943
|
+
};
|
944
|
+
function nt({
|
945
|
+
children: t,
|
946
|
+
anchor: a,
|
947
|
+
TabsProps: l,
|
948
|
+
variant: i = "standard",
|
949
|
+
onChange: y
|
950
|
+
}) {
|
951
|
+
const v = (S, x) => {
|
952
|
+
S.preventDefault(), y?.(x);
|
953
|
+
};
|
954
|
+
return /* @__PURE__ */ d.jsx($, { sx: zr.tabsWrapper, children: /* @__PURE__ */ d.jsx(
|
955
|
+
Cr,
|
956
|
+
{
|
957
|
+
indicatorColor: "primary",
|
958
|
+
textColor: "primary",
|
959
|
+
"aria-label": "Explore sections",
|
960
|
+
...l,
|
961
|
+
value: a,
|
962
|
+
variant: i,
|
963
|
+
onChange: v,
|
964
|
+
children: t
|
965
|
+
}
|
966
|
+
) });
|
967
|
+
}
|
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);
|
976
|
+
else
|
977
|
+
for (a in t)
|
978
|
+
t[a] && (i && (i += " "), i += a);
|
979
|
+
return i;
|
980
|
+
}
|
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;
|
985
|
+
}
|
986
|
+
const qr = {
|
987
|
+
box: {
|
988
|
+
borderRadius: ({ spacing: t }) => `0 0 ${t(0.5)} ${t(0.5)}`,
|
989
|
+
flex: 1,
|
990
|
+
height: "100%",
|
991
|
+
margin: "0 auto",
|
992
|
+
maxWidth: ({ breakpoints: t }) => t.values.lg,
|
993
|
+
overflow: "auto",
|
994
|
+
position: "relative",
|
995
|
+
width: "100%"
|
996
|
+
}
|
997
|
+
};
|
998
|
+
function at({
|
999
|
+
children: t,
|
1000
|
+
currentAnchor: a,
|
1001
|
+
BoxProps: l,
|
1002
|
+
className: i,
|
1003
|
+
timeout: y = 50,
|
1004
|
+
onChange: v
|
1005
|
+
}) {
|
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"]') || []
|
1010
|
+
);
|
1011
|
+
if (x.current = [...m].reverse(), !x.current.length)
|
1012
|
+
throw new Error(
|
1013
|
+
'initialization of ScrollToAnchor: Missing sections with data-anchor="true" attribute.'
|
1014
|
+
);
|
1015
|
+
}, []), B(() => {
|
1016
|
+
const m = (R) => {
|
1017
|
+
const O = S.current?.querySelector(`#${R}`);
|
1018
|
+
if (!O) {
|
1019
|
+
console.warn(
|
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.`
|
1021
|
+
);
|
1022
|
+
return;
|
1023
|
+
}
|
1024
|
+
if (O) {
|
1025
|
+
O.scrollIntoView({ behavior: "smooth" });
|
1026
|
+
const j = setInterval(() => {
|
1027
|
+
O.offsetTop === p.current && (g.current = R, clearInterval(j));
|
1028
|
+
}, y);
|
1029
|
+
}
|
1030
|
+
};
|
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());
|
1039
|
+
},
|
1040
|
+
[a, h]
|
1041
|
+
);
|
1042
|
+
return /* @__PURE__ */ d.jsx(
|
1043
|
+
$,
|
1044
|
+
{
|
1045
|
+
ref: S,
|
1046
|
+
sx: qr.box,
|
1047
|
+
...l,
|
1048
|
+
className: Ur(i),
|
1049
|
+
"data-scroller": !0,
|
1050
|
+
onScroll: (m) => w(m),
|
1051
|
+
children: t
|
1052
|
+
}
|
1053
|
+
);
|
1054
|
+
}
|
1055
|
+
function ot(t) {
|
1056
|
+
return t.map((a) => {
|
1057
|
+
const l = a, i = String(a);
|
1058
|
+
return { value: l, label: i };
|
1059
|
+
});
|
1060
|
+
}
|
1061
|
+
export {
|
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
|
1073
|
+
};
|