@tmf_ciclica/ciclicastorybook 1.2.141 → 1.2.143
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.js +21 -21
- package/dist/index.es.js +952 -917
- package/package.json +12 -13
package/dist/index.es.js
CHANGED
|
@@ -9,14 +9,14 @@ import * as hr from "d3";
|
|
|
9
9
|
import { select as gt, min as qn, max as Wn, scaleBand as Ir, scaleLinear as Ii, scaleOrdinal as Pi, axisBottom as Vi, axisLeft as Pr, line as qs, curveMonotoneX as Ws } from "d3";
|
|
10
10
|
import Us from "mapbox-gl";
|
|
11
11
|
import { useSelector as Zs } from "react-redux";
|
|
12
|
-
import { createPortal as
|
|
12
|
+
import { createPortal as Bi } from "react-dom";
|
|
13
13
|
import gr from "maplibre-gl";
|
|
14
14
|
import { Protocol as Hs } from "pmtiles";
|
|
15
15
|
import { createSlice as Ks } from "@reduxjs/toolkit";
|
|
16
16
|
import { createTheme as Gs, Box as Ys } from "@mui/material";
|
|
17
17
|
import { ThemeProvider as Xs } from "@emotion/react";
|
|
18
18
|
import Qs from "@emotion/styled";
|
|
19
|
-
import { NavLink as
|
|
19
|
+
import { NavLink as Fi } from "react-router-dom";
|
|
20
20
|
const Js = "_ambitSelector_mcunf_2", ea = "_header_mcunf_13", ta = "_nameDateContainer_mcunf_23", na = "_ambitName_mcunf_39", ra = "_ambitDate_mcunf_53", oa = "_buttonsContainer_mcunf_67", ia = "_ambitListContainer_mcunf_76", sa = "_newAmbitButtonContainer_mcunf_80", ft = {
|
|
21
21
|
ambitSelector: Js,
|
|
22
22
|
header: ea,
|
|
@@ -49,28 +49,28 @@ var fo;
|
|
|
49
49
|
function va() {
|
|
50
50
|
if (fo) return fe;
|
|
51
51
|
fo = 1;
|
|
52
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115,
|
|
53
|
-
function $(
|
|
54
|
-
if (typeof
|
|
55
|
-
var w =
|
|
52
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
53
|
+
function $(C) {
|
|
54
|
+
if (typeof C == "object" && C !== null) {
|
|
55
|
+
var w = C.$$typeof;
|
|
56
56
|
switch (w) {
|
|
57
57
|
case t:
|
|
58
|
-
switch (
|
|
58
|
+
switch (C = C.type, C) {
|
|
59
59
|
case c:
|
|
60
60
|
case d:
|
|
61
61
|
case r:
|
|
62
62
|
case s:
|
|
63
63
|
case o:
|
|
64
64
|
case g:
|
|
65
|
-
return
|
|
65
|
+
return C;
|
|
66
66
|
default:
|
|
67
|
-
switch (
|
|
67
|
+
switch (C = C && C.$$typeof, C) {
|
|
68
68
|
case l:
|
|
69
69
|
case h:
|
|
70
|
-
case
|
|
70
|
+
case v:
|
|
71
71
|
case m:
|
|
72
72
|
case a:
|
|
73
|
-
return
|
|
73
|
+
return C;
|
|
74
74
|
default:
|
|
75
75
|
return w;
|
|
76
76
|
}
|
|
@@ -80,35 +80,35 @@ function va() {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return $(
|
|
83
|
+
function b(C) {
|
|
84
|
+
return $(C) === d;
|
|
85
85
|
}
|
|
86
|
-
return fe.AsyncMode = c, fe.ConcurrentMode = d, fe.ContextConsumer = l, fe.ContextProvider = a, fe.Element = t, fe.ForwardRef = h, fe.Fragment = r, fe.Lazy =
|
|
87
|
-
return
|
|
88
|
-
}, fe.isConcurrentMode =
|
|
89
|
-
return $(
|
|
90
|
-
}, fe.isContextProvider = function(
|
|
91
|
-
return $(
|
|
92
|
-
}, fe.isElement = function(
|
|
93
|
-
return typeof
|
|
94
|
-
}, fe.isForwardRef = function(
|
|
95
|
-
return $(
|
|
96
|
-
}, fe.isFragment = function(
|
|
97
|
-
return $(
|
|
98
|
-
}, fe.isLazy = function(
|
|
99
|
-
return $(
|
|
100
|
-
}, fe.isMemo = function(
|
|
101
|
-
return $(
|
|
102
|
-
}, fe.isPortal = function(
|
|
103
|
-
return $(
|
|
104
|
-
}, fe.isProfiler = function(
|
|
105
|
-
return $(
|
|
106
|
-
}, fe.isStrictMode = function(
|
|
107
|
-
return $(
|
|
108
|
-
}, fe.isSuspense = function(
|
|
109
|
-
return $(
|
|
110
|
-
}, fe.isValidElementType = function(
|
|
111
|
-
return typeof
|
|
86
|
+
return fe.AsyncMode = c, fe.ConcurrentMode = d, fe.ContextConsumer = l, fe.ContextProvider = a, fe.Element = t, fe.ForwardRef = h, fe.Fragment = r, fe.Lazy = v, fe.Memo = m, fe.Portal = n, fe.Profiler = s, fe.StrictMode = o, fe.Suspense = g, fe.isAsyncMode = function(C) {
|
|
87
|
+
return b(C) || $(C) === c;
|
|
88
|
+
}, fe.isConcurrentMode = b, fe.isContextConsumer = function(C) {
|
|
89
|
+
return $(C) === l;
|
|
90
|
+
}, fe.isContextProvider = function(C) {
|
|
91
|
+
return $(C) === a;
|
|
92
|
+
}, fe.isElement = function(C) {
|
|
93
|
+
return typeof C == "object" && C !== null && C.$$typeof === t;
|
|
94
|
+
}, fe.isForwardRef = function(C) {
|
|
95
|
+
return $(C) === h;
|
|
96
|
+
}, fe.isFragment = function(C) {
|
|
97
|
+
return $(C) === r;
|
|
98
|
+
}, fe.isLazy = function(C) {
|
|
99
|
+
return $(C) === v;
|
|
100
|
+
}, fe.isMemo = function(C) {
|
|
101
|
+
return $(C) === m;
|
|
102
|
+
}, fe.isPortal = function(C) {
|
|
103
|
+
return $(C) === n;
|
|
104
|
+
}, fe.isProfiler = function(C) {
|
|
105
|
+
return $(C) === s;
|
|
106
|
+
}, fe.isStrictMode = function(C) {
|
|
107
|
+
return $(C) === o;
|
|
108
|
+
}, fe.isSuspense = function(C) {
|
|
109
|
+
return $(C) === g;
|
|
110
|
+
}, fe.isValidElementType = function(C) {
|
|
111
|
+
return typeof C == "string" || typeof C == "function" || C === r || C === d || C === s || C === o || C === g || C === y || typeof C == "object" && C !== null && (C.$$typeof === v || C.$$typeof === m || C.$$typeof === a || C.$$typeof === l || C.$$typeof === h || C.$$typeof === _ || C.$$typeof === x || C.$$typeof === S || C.$$typeof === f);
|
|
112
112
|
}, fe.typeOf = $, fe;
|
|
113
113
|
}
|
|
114
114
|
var pe = {};
|
|
@@ -123,12 +123,12 @@ var pe = {};
|
|
|
123
123
|
var po;
|
|
124
124
|
function Ca() {
|
|
125
125
|
return po || (po = 1, process.env.NODE_ENV !== "production" && function() {
|
|
126
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115,
|
|
126
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
127
127
|
function $(P) {
|
|
128
128
|
return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
129
|
-
P === r || P === d || P === s || P === o || P === g || P === y || typeof P == "object" && P !== null && (P.$$typeof ===
|
|
129
|
+
P === r || P === d || P === s || P === o || P === g || P === y || typeof P == "object" && P !== null && (P.$$typeof === v || P.$$typeof === m || P.$$typeof === a || P.$$typeof === l || P.$$typeof === h || P.$$typeof === _ || P.$$typeof === x || P.$$typeof === S || P.$$typeof === f);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function b(P) {
|
|
132
132
|
if (typeof P == "object" && P !== null) {
|
|
133
133
|
var se = P.$$typeof;
|
|
134
134
|
switch (se) {
|
|
@@ -147,7 +147,7 @@ function Ca() {
|
|
|
147
147
|
switch (tt) {
|
|
148
148
|
case l:
|
|
149
149
|
case h:
|
|
150
|
-
case
|
|
150
|
+
case v:
|
|
151
151
|
case m:
|
|
152
152
|
case a:
|
|
153
153
|
return tt;
|
|
@@ -160,47 +160,47 @@ function Ca() {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
var
|
|
163
|
+
var C = c, w = d, N = l, L = a, E = t, B = h, I = r, p = v, O = m, T = n, z = s, j = o, Y = g, W = !1;
|
|
164
164
|
function ue(P) {
|
|
165
|
-
return W || (W = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), D(P) ||
|
|
165
|
+
return W || (W = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), D(P) || b(P) === c;
|
|
166
166
|
}
|
|
167
167
|
function D(P) {
|
|
168
|
-
return
|
|
168
|
+
return b(P) === d;
|
|
169
169
|
}
|
|
170
170
|
function M(P) {
|
|
171
|
-
return
|
|
171
|
+
return b(P) === l;
|
|
172
172
|
}
|
|
173
173
|
function ee(P) {
|
|
174
|
-
return
|
|
174
|
+
return b(P) === a;
|
|
175
175
|
}
|
|
176
176
|
function K(P) {
|
|
177
177
|
return typeof P == "object" && P !== null && P.$$typeof === t;
|
|
178
178
|
}
|
|
179
179
|
function V(P) {
|
|
180
|
-
return
|
|
180
|
+
return b(P) === h;
|
|
181
181
|
}
|
|
182
182
|
function Z(P) {
|
|
183
|
-
return
|
|
183
|
+
return b(P) === r;
|
|
184
184
|
}
|
|
185
185
|
function ne(P) {
|
|
186
|
-
return
|
|
186
|
+
return b(P) === v;
|
|
187
187
|
}
|
|
188
188
|
function G(P) {
|
|
189
|
-
return
|
|
189
|
+
return b(P) === m;
|
|
190
190
|
}
|
|
191
191
|
function U(P) {
|
|
192
|
-
return
|
|
192
|
+
return b(P) === n;
|
|
193
193
|
}
|
|
194
194
|
function oe(P) {
|
|
195
|
-
return
|
|
195
|
+
return b(P) === s;
|
|
196
196
|
}
|
|
197
197
|
function te(P) {
|
|
198
|
-
return
|
|
198
|
+
return b(P) === o;
|
|
199
199
|
}
|
|
200
200
|
function de(P) {
|
|
201
|
-
return
|
|
201
|
+
return b(P) === g;
|
|
202
202
|
}
|
|
203
|
-
pe.AsyncMode =
|
|
203
|
+
pe.AsyncMode = C, pe.ConcurrentMode = w, pe.ContextConsumer = N, pe.ContextProvider = L, pe.Element = E, pe.ForwardRef = B, pe.Fragment = I, pe.Lazy = p, pe.Memo = O, pe.Portal = T, pe.Profiler = z, pe.StrictMode = j, pe.Suspense = Y, pe.isAsyncMode = ue, pe.isConcurrentMode = D, pe.isContextConsumer = M, pe.isContextProvider = ee, pe.isElement = K, pe.isForwardRef = V, pe.isFragment = Z, pe.isLazy = ne, pe.isMemo = G, pe.isPortal = U, pe.isProfiler = oe, pe.isStrictMode = te, pe.isSuspense = de, pe.isValidElementType = $, pe.typeOf = b;
|
|
204
204
|
}()), pe;
|
|
205
205
|
}
|
|
206
206
|
var mo;
|
|
@@ -299,8 +299,8 @@ function xa() {
|
|
|
299
299
|
throw y.name = "Invariant Violation", y;
|
|
300
300
|
}
|
|
301
301
|
g = s[h](a, h, c, l, null, t);
|
|
302
|
-
} catch (
|
|
303
|
-
g =
|
|
302
|
+
} catch (v) {
|
|
303
|
+
g = v;
|
|
304
304
|
}
|
|
305
305
|
if (g && !(g instanceof Error) && e(
|
|
306
306
|
(c || "React class") + ": type specification of " + l + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -353,24 +353,24 @@ function wa() {
|
|
|
353
353
|
symbol: x("symbol"),
|
|
354
354
|
any: S(),
|
|
355
355
|
arrayOf: $,
|
|
356
|
-
element:
|
|
357
|
-
elementType:
|
|
356
|
+
element: b(),
|
|
357
|
+
elementType: C(),
|
|
358
358
|
instanceOf: w,
|
|
359
|
-
node:
|
|
359
|
+
node: B(),
|
|
360
360
|
objectOf: L,
|
|
361
361
|
oneOf: N,
|
|
362
362
|
oneOfType: E,
|
|
363
363
|
shape: p,
|
|
364
364
|
exact: O
|
|
365
365
|
};
|
|
366
|
-
function
|
|
366
|
+
function v(D, M) {
|
|
367
367
|
return D === M ? D !== 0 || 1 / D === 1 / M : D !== D && M !== M;
|
|
368
368
|
}
|
|
369
369
|
function f(D, M) {
|
|
370
370
|
this.message = D, this.data = M && typeof M == "object" ? M : {}, this.stack = "";
|
|
371
371
|
}
|
|
372
372
|
f.prototype = Error.prototype;
|
|
373
|
-
function
|
|
373
|
+
function _(D) {
|
|
374
374
|
if (process.env.NODE_ENV !== "production")
|
|
375
375
|
var M = {}, ee = 0;
|
|
376
376
|
function K(Z, ne, G, U, oe, te, de) {
|
|
@@ -405,10 +405,10 @@ function wa() {
|
|
|
405
405
|
}
|
|
406
406
|
return null;
|
|
407
407
|
}
|
|
408
|
-
return
|
|
408
|
+
return _(M);
|
|
409
409
|
}
|
|
410
410
|
function S() {
|
|
411
|
-
return
|
|
411
|
+
return _(a);
|
|
412
412
|
}
|
|
413
413
|
function $(D) {
|
|
414
414
|
function M(ee, K, V, Z, ne) {
|
|
@@ -426,9 +426,9 @@ function wa() {
|
|
|
426
426
|
}
|
|
427
427
|
return null;
|
|
428
428
|
}
|
|
429
|
-
return
|
|
429
|
+
return _(M);
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function b() {
|
|
432
432
|
function D(M, ee, K, V, Z) {
|
|
433
433
|
var ne = M[ee];
|
|
434
434
|
if (!l(ne)) {
|
|
@@ -437,9 +437,9 @@ function wa() {
|
|
|
437
437
|
}
|
|
438
438
|
return null;
|
|
439
439
|
}
|
|
440
|
-
return
|
|
440
|
+
return _(D);
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function C() {
|
|
443
443
|
function D(M, ee, K, V, Z) {
|
|
444
444
|
var ne = M[ee];
|
|
445
445
|
if (!e.isValidElementType(ne)) {
|
|
@@ -448,7 +448,7 @@ function wa() {
|
|
|
448
448
|
}
|
|
449
449
|
return null;
|
|
450
450
|
}
|
|
451
|
-
return
|
|
451
|
+
return _(D);
|
|
452
452
|
}
|
|
453
453
|
function w(D) {
|
|
454
454
|
function M(ee, K, V, Z, ne) {
|
|
@@ -458,7 +458,7 @@ function wa() {
|
|
|
458
458
|
}
|
|
459
459
|
return null;
|
|
460
460
|
}
|
|
461
|
-
return
|
|
461
|
+
return _(M);
|
|
462
462
|
}
|
|
463
463
|
function N(D) {
|
|
464
464
|
if (!Array.isArray(D))
|
|
@@ -467,7 +467,7 @@ function wa() {
|
|
|
467
467
|
) : s("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
468
468
|
function M(ee, K, V, Z, ne) {
|
|
469
469
|
for (var G = ee[K], U = 0; U < D.length; U++)
|
|
470
|
-
if (
|
|
470
|
+
if (v(G, D[U]))
|
|
471
471
|
return null;
|
|
472
472
|
var oe = JSON.stringify(D, function(de, P) {
|
|
473
473
|
var se = Y(P);
|
|
@@ -475,7 +475,7 @@ function wa() {
|
|
|
475
475
|
});
|
|
476
476
|
return new f("Invalid " + Z + " `" + ne + "` of value `" + String(G) + "` " + ("supplied to `" + V + "`, expected one of " + oe + "."));
|
|
477
477
|
}
|
|
478
|
-
return
|
|
478
|
+
return _(M);
|
|
479
479
|
}
|
|
480
480
|
function L(D) {
|
|
481
481
|
function M(ee, K, V, Z, ne) {
|
|
@@ -492,7 +492,7 @@ function wa() {
|
|
|
492
492
|
}
|
|
493
493
|
return null;
|
|
494
494
|
}
|
|
495
|
-
return
|
|
495
|
+
return _(M);
|
|
496
496
|
}
|
|
497
497
|
function E(D) {
|
|
498
498
|
if (!Array.isArray(D))
|
|
@@ -514,13 +514,13 @@ function wa() {
|
|
|
514
514
|
var se = oe.length > 0 ? ", expected one of type [" + oe.join(", ") + "]" : "";
|
|
515
515
|
return new f("Invalid " + G + " `" + U + "` supplied to " + ("`" + ne + "`" + se + "."));
|
|
516
516
|
}
|
|
517
|
-
return
|
|
517
|
+
return _(K);
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function B() {
|
|
520
520
|
function D(M, ee, K, V, Z) {
|
|
521
521
|
return T(M[ee]) ? null : new f("Invalid " + V + " `" + Z + "` supplied to " + ("`" + K + "`, expected a ReactNode."));
|
|
522
522
|
}
|
|
523
|
-
return
|
|
523
|
+
return _(D);
|
|
524
524
|
}
|
|
525
525
|
function I(D, M, ee, K, V) {
|
|
526
526
|
return new f(
|
|
@@ -542,7 +542,7 @@ function wa() {
|
|
|
542
542
|
}
|
|
543
543
|
return null;
|
|
544
544
|
}
|
|
545
|
-
return
|
|
545
|
+
return _(M);
|
|
546
546
|
}
|
|
547
547
|
function O(D) {
|
|
548
548
|
function M(ee, K, V, Z, ne) {
|
|
@@ -565,7 +565,7 @@ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
|
|
|
565
565
|
}
|
|
566
566
|
return null;
|
|
567
567
|
}
|
|
568
|
-
return
|
|
568
|
+
return _(M);
|
|
569
569
|
}
|
|
570
570
|
function T(D) {
|
|
571
571
|
switch (typeof D) {
|
|
@@ -794,19 +794,19 @@ const xo = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
794
794
|
buttonContainerStyles: l = {},
|
|
795
795
|
containerStyles: c = {},
|
|
796
796
|
onCLickNewAmbit: d = () => console.log("New ambit clicked"),
|
|
797
|
-
onClickCopy: h = (
|
|
798
|
-
onCLickDelete: g = (
|
|
799
|
-
onClickFilters: y = (
|
|
800
|
-
onClickAmbit: m = (
|
|
797
|
+
onClickCopy: h = (v) => console.log(`Copy ambit: ${v}`),
|
|
798
|
+
onCLickDelete: g = (v) => console.log(`Delete ambit: ${v}`),
|
|
799
|
+
onClickFilters: y = (v) => console.log(`Filters clicked: ${v}`),
|
|
800
|
+
onClickAmbit: m = (v) => console.log(`OnCLickAmbit: ${v}`)
|
|
801
801
|
}) => {
|
|
802
|
-
const { t:
|
|
802
|
+
const { t: v } = ce(), [f, _] = le(e);
|
|
803
803
|
J(() => {
|
|
804
|
-
e &&
|
|
804
|
+
e && _(e);
|
|
805
805
|
}, [e]);
|
|
806
806
|
const x = (S) => {
|
|
807
807
|
if (f && f.length > 0) {
|
|
808
808
|
let $ = [...f];
|
|
809
|
-
$.sort((
|
|
809
|
+
$.sort((b, C) => b[S].localeCompare(C[S])), _($);
|
|
810
810
|
}
|
|
811
811
|
};
|
|
812
812
|
return /* @__PURE__ */ k(
|
|
@@ -823,11 +823,11 @@ const xo = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
823
823
|
children: [
|
|
824
824
|
/* @__PURE__ */ k("div", { className: ft.nameDateContainer, children: [
|
|
825
825
|
/* @__PURE__ */ u("div", { className: ft.ambitName, children: /* @__PURE__ */ k("button", { onClick: () => x("name"), children: [
|
|
826
|
-
/* @__PURE__ */ u("span", { children:
|
|
826
|
+
/* @__PURE__ */ u("span", { children: v(o) }),
|
|
827
827
|
/* @__PURE__ */ u("img", { src: xo })
|
|
828
828
|
] }) }),
|
|
829
829
|
/* @__PURE__ */ u("div", { className: ft.ambitDate, children: /* @__PURE__ */ k("button", { onClick: () => x("date"), children: [
|
|
830
|
-
/* @__PURE__ */ u("span", { children:
|
|
830
|
+
/* @__PURE__ */ u("span", { children: v(s) }),
|
|
831
831
|
/* @__PURE__ */ u("img", { src: xo })
|
|
832
832
|
] }) })
|
|
833
833
|
] }),
|
|
@@ -855,7 +855,7 @@ const xo = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
855
855
|
style: { ...l },
|
|
856
856
|
onClick: d,
|
|
857
857
|
borderColor: "grey",
|
|
858
|
-
children:
|
|
858
|
+
children: v(a)
|
|
859
859
|
}
|
|
860
860
|
) })
|
|
861
861
|
]
|
|
@@ -891,14 +891,14 @@ const Oa = "_buttonsContainer_1ks7x_2", Aa = "_vertical_1ks7x_6", La = "_horizon
|
|
|
891
891
|
button: Ma,
|
|
892
892
|
active: Ra,
|
|
893
893
|
buttonName: Da
|
|
894
|
-
}, Ia = "_left_1l4m4_2", Pa = "_top_1l4m4_40", Va = "_bottom_1l4m4_79",
|
|
894
|
+
}, Ia = "_left_1l4m4_2", Pa = "_top_1l4m4_40", Va = "_bottom_1l4m4_79", Ba = "_right_1l4m4_118", Fa = {
|
|
895
895
|
left: Ia,
|
|
896
896
|
top: Pa,
|
|
897
897
|
bottom: Va,
|
|
898
|
-
right:
|
|
898
|
+
right: Ba
|
|
899
899
|
}, lt = ({ text: e, position: t, styleCustom: n = null }) => {
|
|
900
900
|
const { t: r } = ce();
|
|
901
|
-
return /* @__PURE__ */ u("div", { className: `tooltip ${
|
|
901
|
+
return /* @__PURE__ */ u("div", { className: `tooltip ${Fa[t]}`, style: n, children: r(e) });
|
|
902
902
|
};
|
|
903
903
|
lt.propTypes = {
|
|
904
904
|
text: i.string.isRequired,
|
|
@@ -926,7 +926,7 @@ const za = ({
|
|
|
926
926
|
isActive: g,
|
|
927
927
|
name: y,
|
|
928
928
|
onClick: m,
|
|
929
|
-
disabled:
|
|
929
|
+
disabled: v
|
|
930
930
|
} = l, f = /* @__PURE__ */ k(pn, { children: [
|
|
931
931
|
n && r === "left" && /* @__PURE__ */ u("span", { className: _t.buttonName, children: a(y) }),
|
|
932
932
|
/* @__PURE__ */ u("img", { src: g ? h : d, alt: a(y) }),
|
|
@@ -939,7 +939,7 @@ const za = ({
|
|
|
939
939
|
onClick: m,
|
|
940
940
|
className: `${_t.button}
|
|
941
941
|
${g && _t.active}`,
|
|
942
|
-
disabled:
|
|
942
|
+
disabled: v,
|
|
943
943
|
children: f
|
|
944
944
|
}
|
|
945
945
|
),
|
|
@@ -1046,7 +1046,7 @@ const Gp = () => /* @__PURE__ */ u("div", { children: "EditAmbit" }), Ua = "data
|
|
|
1046
1046
|
const { t: l } = ce(), { tematicalFiltersSelected: c, activeFiltersType: d } = ve((y) => y), h = (y) => {
|
|
1047
1047
|
ve.setState((m) => ({
|
|
1048
1048
|
tematicalFiltersSelected: m.tematicalFiltersSelected.filter(
|
|
1049
|
-
(
|
|
1049
|
+
(v) => v.code !== y
|
|
1050
1050
|
)
|
|
1051
1051
|
}));
|
|
1052
1052
|
};
|
|
@@ -1206,17 +1206,17 @@ function Tn(e) {
|
|
|
1206
1206
|
});
|
|
1207
1207
|
}
|
|
1208
1208
|
function xt(e, t) {
|
|
1209
|
-
return
|
|
1209
|
+
return Br(function(n, r) {
|
|
1210
1210
|
let o = n;
|
|
1211
1211
|
return o <= r.min && (o = r.min), o >= r.max && (o = r.max), o;
|
|
1212
1212
|
}(e, t), t);
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function Br(e, t) {
|
|
1215
1215
|
const n = (e - t.min) % t.step;
|
|
1216
1216
|
let r = e - n;
|
|
1217
1217
|
return 2 * Math.abs(n) >= t.step && (r += n > 0 ? t.step : -t.step), parseFloat(r.toFixed(5));
|
|
1218
1218
|
}
|
|
1219
|
-
let
|
|
1219
|
+
let Fr = function(e) {
|
|
1220
1220
|
function t(r) {
|
|
1221
1221
|
var o;
|
|
1222
1222
|
(o = e.call(this, r) || this).onKeyUp = () => {
|
|
@@ -1415,22 +1415,22 @@ let Br = function(e) {
|
|
|
1415
1415
|
r > y - g && (r = y - g);
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
|
-
o[s] = r, c && a > 1 && (r > l ? (this.pushSucceeding(o, g, s), function(y, m,
|
|
1419
|
-
for (let
|
|
1420
|
-
const x = f -
|
|
1421
|
-
m[y - 1 -
|
|
1418
|
+
o[s] = r, c && a > 1 && (r > l ? (this.pushSucceeding(o, g, s), function(y, m, v, f) {
|
|
1419
|
+
for (let _ = 0; _ < y; _ += 1) {
|
|
1420
|
+
const x = f - _ * v;
|
|
1421
|
+
m[y - 1 - _] > x && (m[y - 1 - _] = x);
|
|
1422
1422
|
}
|
|
1423
|
-
}(a, o, g, d)) : r < l && (this.pushPreceding(o, g, s), function(y, m,
|
|
1424
|
-
for (let
|
|
1425
|
-
const x = f +
|
|
1426
|
-
m[
|
|
1423
|
+
}(a, o, g, d)) : r < l && (this.pushPreceding(o, g, s), function(y, m, v, f) {
|
|
1424
|
+
for (let _ = 0; _ < y; _ += 1) {
|
|
1425
|
+
const x = f + _ * v;
|
|
1426
|
+
m[_] < x && (m[_] = x);
|
|
1427
1427
|
}
|
|
1428
1428
|
}(a, o, g, h))), this.setState({ value: o }, this.fireChangeEvent.bind(this, "onChange"));
|
|
1429
1429
|
}, n.pushSucceeding = function(r, o, s) {
|
|
1430
1430
|
let a, l;
|
|
1431
|
-
for (a = s, l = r[a] + o; r[a + 1] !== null && l > r[a + 1]; a += 1, l = r[a] + o) r[a + 1] =
|
|
1431
|
+
for (a = s, l = r[a] + o; r[a + 1] !== null && l > r[a + 1]; a += 1, l = r[a] + o) r[a + 1] = Br(l, this.props);
|
|
1432
1432
|
}, n.pushPreceding = function(r, o, s) {
|
|
1433
|
-
for (let a = s, l = r[a] - o; r[a - 1] !== null && l < r[a - 1]; a -= 1, l = r[a] - o) r[a - 1] =
|
|
1433
|
+
for (let a = s, l = r[a] - o; r[a - 1] !== null && l < r[a - 1]; a -= 1, l = r[a] - o) r[a - 1] = Br(l, this.props);
|
|
1434
1434
|
}, n.axisKey = function() {
|
|
1435
1435
|
return this.props.orientation === "vertical" ? "Y" : "X";
|
|
1436
1436
|
}, n.orthogonalAxisKey = function() {
|
|
@@ -1479,8 +1479,8 @@ let Br = function(e) {
|
|
|
1479
1479
|
}, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick }, a, l, c);
|
|
1480
1480
|
}, t;
|
|
1481
1481
|
}(ie.Component);
|
|
1482
|
-
|
|
1483
|
-
var zr =
|
|
1482
|
+
Fr.displayName = "ReactSlider", Fr.defaultProps = { min: 0, max: 100, step: 1, pageFn: (e) => 10 * e, minDistance: 0, defaultValue: 0, orientation: "horizontal", className: "slider", thumbClassName: "thumb", thumbActiveClassName: "active", trackClassName: "track", markClassName: "mark", withTracks: !0, pearling: !1, disabled: !1, snapDragDisabled: !1, invert: !1, marks: [], renderThumb: (e) => ie.createElement("div", e), renderTrack: (e) => ie.createElement("div", e), renderMark: (e) => ie.createElement("span", e) };
|
|
1483
|
+
var zr = Fr;
|
|
1484
1484
|
const Ja = "_container_4u41i_2", el = "_unitLabel_4u41i_8", tl = "_slider_4u41i_11", nl = "_thumb_4u41i_17", rl = "_track_4u41i_26", ol = "_labels_4u41i_32", Dt = {
|
|
1485
1485
|
container: Ja,
|
|
1486
1486
|
unitLabel: el,
|
|
@@ -1499,7 +1499,7 @@ const Ja = "_container_4u41i_2", el = "_unitLabel_4u41i_8", tl = "_slider_4u41i_
|
|
|
1499
1499
|
defaultValue: l,
|
|
1500
1500
|
isDate: c
|
|
1501
1501
|
}) => {
|
|
1502
|
-
const { t: d } = ce(), h = c ? new Date(e).getTime() : null, g = c ? new Date(t).getTime() : null, [y, m] = le(c ? [h, g] : [e, t]),
|
|
1502
|
+
const { t: d } = ce(), h = c ? new Date(e).getTime() : null, g = c ? new Date(t).getTime() : null, [y, m] = le(c ? [h, g] : [e, t]), v = (f) => {
|
|
1503
1503
|
m(f), r == null || r({ min: f[0], max: f[1] });
|
|
1504
1504
|
};
|
|
1505
1505
|
return J(() => {
|
|
@@ -1521,7 +1521,7 @@ const Ja = "_container_4u41i_2", el = "_unitLabel_4u41i_8", tl = "_slider_4u41i_
|
|
|
1521
1521
|
max: c ? g : t,
|
|
1522
1522
|
step: c ? (g - h) / 30 : n,
|
|
1523
1523
|
value: y,
|
|
1524
|
-
onAfterChange:
|
|
1524
|
+
onAfterChange: v,
|
|
1525
1525
|
withTracks: !0,
|
|
1526
1526
|
pearling: !c,
|
|
1527
1527
|
minDistance: c ? 0 : 0.1
|
|
@@ -1578,19 +1578,19 @@ const il = "_tematicalFiltersInputContainer_1vm1r_2", sl = "_inputTypeContainer_
|
|
|
1578
1578
|
} = e || {}, m = je(
|
|
1579
1579
|
() => o == "cat" || n == "cat",
|
|
1580
1580
|
[n, o]
|
|
1581
|
-
),
|
|
1581
|
+
), v = je(
|
|
1582
1582
|
() => o == "abs" || n == "abs",
|
|
1583
1583
|
[n, o]
|
|
1584
1584
|
), {
|
|
1585
1585
|
tematicalFiltersSelected: f,
|
|
1586
|
-
selectedIndicator:
|
|
1586
|
+
selectedIndicator: _,
|
|
1587
1587
|
fontColor: x,
|
|
1588
1588
|
inputsColor: S
|
|
1589
|
-
} = ve((
|
|
1590
|
-
if (
|
|
1591
|
-
const { min: w, max: N, valueClicked: L, allValues: E } =
|
|
1592
|
-
let T =
|
|
1593
|
-
I == "both" && (T = O == "cat" ?
|
|
1589
|
+
} = ve((C) => C), $ = (C) => {
|
|
1590
|
+
if (C) {
|
|
1591
|
+
const { min: w, max: N, valueClicked: L, allValues: E } = C || {}, { code: B, type: I, source: p } = e || {}, O = v ? "abs" : m ? "cat" : "both";
|
|
1592
|
+
let T = B[0];
|
|
1593
|
+
I == "both" && (T = O == "cat" ? B[1] : B[0]), O == "cat" ? ve.setState((z) => {
|
|
1594
1594
|
let j = z.tematicalFiltersSelected.find(
|
|
1595
1595
|
(Y) => Y.code === T
|
|
1596
1596
|
);
|
|
@@ -1656,12 +1656,12 @@ const il = "_tematicalFiltersInputContainer_1vm1r_2", sl = "_inputTypeContainer_
|
|
|
1656
1656
|
};
|
|
1657
1657
|
});
|
|
1658
1658
|
}
|
|
1659
|
-
},
|
|
1660
|
-
const
|
|
1659
|
+
}, b = je(() => {
|
|
1660
|
+
const C = {};
|
|
1661
1661
|
if ((f == null ? void 0 : f.length) > 0)
|
|
1662
1662
|
for (const w of f)
|
|
1663
|
-
w.type === "cat" ?
|
|
1664
|
-
return
|
|
1663
|
+
w.type === "cat" ? C[w.code] = new Set(w.values) : C[w.code] = [w.min, w.max];
|
|
1664
|
+
return C;
|
|
1665
1665
|
}, [f]);
|
|
1666
1666
|
return /* @__PURE__ */ u("div", { className: $n.tematicalFiltersInputContainer, children: /* @__PURE__ */ k(
|
|
1667
1667
|
Lt,
|
|
@@ -1672,10 +1672,10 @@ const il = "_tematicalFiltersInputContainer_1vm1r_2", sl = "_inputTypeContainer_
|
|
|
1672
1672
|
opacity: g ? 0.5 : 1
|
|
1673
1673
|
},
|
|
1674
1674
|
title: s,
|
|
1675
|
-
isOpen:
|
|
1675
|
+
isOpen: _ == `id${s}`,
|
|
1676
1676
|
onClick: () => {
|
|
1677
1677
|
g || ve.setState(() => ({
|
|
1678
|
-
selectedIndicator:
|
|
1678
|
+
selectedIndicator: _ == `id${s}` ? "" : `id${s}`
|
|
1679
1679
|
}));
|
|
1680
1680
|
},
|
|
1681
1681
|
showBottomBar: !1,
|
|
@@ -1732,26 +1732,26 @@ const il = "_tematicalFiltersInputContainer_1vm1r_2", sl = "_inputTypeContainer_
|
|
|
1732
1732
|
]
|
|
1733
1733
|
}
|
|
1734
1734
|
),
|
|
1735
|
-
m && /* @__PURE__ */ u("div", { className: $n.checkboxContainer, children: (a || []).map((
|
|
1735
|
+
m && /* @__PURE__ */ u("div", { className: $n.checkboxContainer, children: (a || []).map((C, w) => {
|
|
1736
1736
|
var N;
|
|
1737
1737
|
return /* @__PURE__ */ u(
|
|
1738
1738
|
Zi,
|
|
1739
1739
|
{
|
|
1740
1740
|
onClick: () => $({ valueClicked: w, allValues: a }),
|
|
1741
|
-
indicator:
|
|
1742
|
-
value: ((N =
|
|
1741
|
+
indicator: C,
|
|
1742
|
+
value: ((N = b[e.code[o == "both" ? 1 : 0]]) == null ? void 0 : N.has(w)) || !b[e.code[o == "both" ? 1 : 0]]
|
|
1743
1743
|
},
|
|
1744
1744
|
`checkbox-${w}`
|
|
1745
1745
|
);
|
|
1746
1746
|
}) }),
|
|
1747
|
-
(
|
|
1747
|
+
(v || o == "glb") && /* @__PURE__ */ u("div", { className: $n.absoluteSliderContainer, children: /* @__PURE__ */ u(
|
|
1748
1748
|
Hi,
|
|
1749
1749
|
{
|
|
1750
1750
|
onChange: $,
|
|
1751
1751
|
min: l,
|
|
1752
1752
|
max: c,
|
|
1753
1753
|
unit: d,
|
|
1754
|
-
defaultValue:
|
|
1754
|
+
defaultValue: b[e.code[0]] ? b[e.code[0]] : "",
|
|
1755
1755
|
isDate: y,
|
|
1756
1756
|
step: h
|
|
1757
1757
|
}
|
|
@@ -1947,16 +1947,16 @@ const cl = "_FiltersAmbitContainer_1hv16_2", ul = "_FiltersContainer_1hv16_15",
|
|
|
1947
1947
|
filtersTypes: g = ["geographical", "tematical"],
|
|
1948
1948
|
nameRequiredText: y,
|
|
1949
1949
|
geoLayers: m = [],
|
|
1950
|
-
onGeoLayersChange:
|
|
1950
|
+
onGeoLayersChange: v,
|
|
1951
1951
|
onlyFilters: f = !1,
|
|
1952
1952
|
//usamos esta opción para ocultar el nombre, la descripción y el botón de guardar ámbito
|
|
1953
|
-
descriptionRequired:
|
|
1953
|
+
descriptionRequired: _ = !1,
|
|
1954
1954
|
//campo descripción required
|
|
1955
1955
|
extraLists: x = !1
|
|
1956
1956
|
}) => {
|
|
1957
|
-
const { t: S } = ce(), { tematicalFiltersSelected: $, activeFiltersType:
|
|
1957
|
+
const { t: S } = ce(), { tematicalFiltersSelected: $, activeFiltersType: b } = ve(
|
|
1958
1958
|
(p) => p
|
|
1959
|
-
), [
|
|
1959
|
+
), [C, w] = le(e || null), [N, L] = le(t || null), [E, B] = le(!1);
|
|
1960
1960
|
J(() => {
|
|
1961
1961
|
ve.setState({
|
|
1962
1962
|
tematicalFiltersSelected: n || []
|
|
@@ -1965,17 +1965,17 @@ const cl = "_FiltersAmbitContainer_1hv16_2", ul = "_FiltersContainer_1hv16_15",
|
|
|
1965
1965
|
l($);
|
|
1966
1966
|
}, [$]);
|
|
1967
1967
|
const I = () => {
|
|
1968
|
-
|
|
1968
|
+
_ ? C && N ? c({ name: C, description: N }) : B(!0) : C ? c({ name: C, description: N }) : B(!0);
|
|
1969
1969
|
};
|
|
1970
1970
|
return J(() => {
|
|
1971
|
-
if (g.includes("geographical") &&
|
|
1971
|
+
if (g.includes("geographical") && b != "geographical" && m.length > 0) {
|
|
1972
1972
|
const p = m.map((O) => ({
|
|
1973
1973
|
...O,
|
|
1974
1974
|
active: !1
|
|
1975
1975
|
}));
|
|
1976
|
-
|
|
1976
|
+
v == null || v(p);
|
|
1977
1977
|
}
|
|
1978
|
-
}, [
|
|
1978
|
+
}, [b]), /* @__PURE__ */ k("div", { className: pt.FiltersAmbitContainer, children: [
|
|
1979
1979
|
/* @__PURE__ */ k("div", { className: pt.FiltersContainer, children: [
|
|
1980
1980
|
!f && /* @__PURE__ */ k("div", { className: pt.FiltersAmbitHeader, children: [
|
|
1981
1981
|
/* @__PURE__ */ u("div", { className: pt.FiltersAmbitTitle, children: /* @__PURE__ */ u(
|
|
@@ -1983,9 +1983,9 @@ const cl = "_FiltersAmbitContainer_1hv16_2", ul = "_FiltersContainer_1hv16_15",
|
|
|
1983
1983
|
{
|
|
1984
1984
|
type: "text",
|
|
1985
1985
|
onChange: (p) => {
|
|
1986
|
-
|
|
1986
|
+
B(!1), w(p.target.value);
|
|
1987
1987
|
},
|
|
1988
|
-
value:
|
|
1988
|
+
value: C,
|
|
1989
1989
|
placeholder: S(d)
|
|
1990
1990
|
}
|
|
1991
1991
|
) }),
|
|
@@ -1994,7 +1994,7 @@ const cl = "_FiltersAmbitContainer_1hv16_2", ul = "_FiltersContainer_1hv16_15",
|
|
|
1994
1994
|
{
|
|
1995
1995
|
value: N,
|
|
1996
1996
|
onChange: (p) => {
|
|
1997
|
-
|
|
1997
|
+
_ && B(!1), L(p.target.value);
|
|
1998
1998
|
},
|
|
1999
1999
|
placeholder: S(h)
|
|
2000
2000
|
}
|
|
@@ -2004,7 +2004,7 @@ const cl = "_FiltersAmbitContainer_1hv16_2", ul = "_FiltersContainer_1hv16_15",
|
|
|
2004
2004
|
Wi,
|
|
2005
2005
|
{
|
|
2006
2006
|
title: S("applied_filters"),
|
|
2007
|
-
isOpen:
|
|
2007
|
+
isOpen: b == "applied",
|
|
2008
2008
|
textColor: s || "#fff",
|
|
2009
2009
|
backgroundColor: a || "#605B5680",
|
|
2010
2010
|
activeColor: o
|
|
@@ -2016,7 +2016,7 @@ const cl = "_FiltersAmbitContainer_1hv16_2", ul = "_FiltersContainer_1hv16_15",
|
|
|
2016
2016
|
title: "geo_filters",
|
|
2017
2017
|
activeColor: o,
|
|
2018
2018
|
geoLayers: m,
|
|
2019
|
-
onGeoLayersChange:
|
|
2019
|
+
onGeoLayersChange: v
|
|
2020
2020
|
}
|
|
2021
2021
|
),
|
|
2022
2022
|
g.includes("extra") && x.map((p) => /* @__PURE__ */ u(
|
|
@@ -2089,35 +2089,35 @@ const bl = "_barChartContainer_1ly7h_2", ko = {
|
|
|
2089
2089
|
mainColor: m = "#000"
|
|
2090
2090
|
}) => {
|
|
2091
2091
|
const {
|
|
2092
|
-
xScale:
|
|
2092
|
+
xScale: v,
|
|
2093
2093
|
yScale: f,
|
|
2094
|
-
ticks:
|
|
2094
|
+
ticks: _,
|
|
2095
2095
|
height: x,
|
|
2096
2096
|
chartWidth: S,
|
|
2097
2097
|
svgWidth: $,
|
|
2098
|
-
svgHeight:
|
|
2099
|
-
contentWidth:
|
|
2098
|
+
svgHeight: b,
|
|
2099
|
+
contentWidth: C
|
|
2100
2100
|
} = je(() => {
|
|
2101
2101
|
if (e && e.length > 0) {
|
|
2102
2102
|
const w = hr.max(e, (L) => L.value) || 1, N = a || w;
|
|
2103
2103
|
if (l === "vertical") {
|
|
2104
|
-
const L = e.length * (t + n) + c * 2, E = Math.max(L, g || 0),
|
|
2104
|
+
const L = e.length * (t + n) + c * 2, E = Math.max(L, g || 0), B = y, p = hr.scaleLinear().domain([0, N]).range([B - 100, d]), O = Array.from(
|
|
2105
2105
|
{ length: s + 1 },
|
|
2106
2106
|
(T, z) => N / s * z
|
|
2107
2107
|
);
|
|
2108
2108
|
return {
|
|
2109
2109
|
yScale: p,
|
|
2110
2110
|
ticks: O,
|
|
2111
|
-
height:
|
|
2111
|
+
height: B,
|
|
2112
2112
|
chartWidth: E,
|
|
2113
2113
|
svgWidth: E,
|
|
2114
|
-
svgHeight:
|
|
2114
|
+
svgHeight: B,
|
|
2115
2115
|
contentWidth: L
|
|
2116
2116
|
};
|
|
2117
2117
|
} else {
|
|
2118
2118
|
const L = e.length * (t + n);
|
|
2119
2119
|
console.log("barsHeight: ", L);
|
|
2120
|
-
const E = L + d * 2 + h + 30,
|
|
2120
|
+
const E = L + d * 2 + h + 30, B = g + o + c * 2, I = hr.scaleLinear().domain([0, N]).range([0, g - c * 2]), p = Array.from(
|
|
2121
2121
|
{ length: s + 1 },
|
|
2122
2122
|
(O, T) => N / s * T
|
|
2123
2123
|
);
|
|
@@ -2126,9 +2126,9 @@ const bl = "_barChartContainer_1ly7h_2", ko = {
|
|
|
2126
2126
|
ticks: p,
|
|
2127
2127
|
height: E,
|
|
2128
2128
|
chartWidth: g,
|
|
2129
|
-
svgWidth:
|
|
2129
|
+
svgWidth: B,
|
|
2130
2130
|
svgHeight: E,
|
|
2131
|
-
contentWidth:
|
|
2131
|
+
contentWidth: B
|
|
2132
2132
|
};
|
|
2133
2133
|
}
|
|
2134
2134
|
} else
|
|
@@ -2166,16 +2166,16 @@ const bl = "_barChartContainer_1ly7h_2", ko = {
|
|
|
2166
2166
|
"svg",
|
|
2167
2167
|
{
|
|
2168
2168
|
width: $,
|
|
2169
|
-
height:
|
|
2169
|
+
height: b,
|
|
2170
2170
|
style: {
|
|
2171
2171
|
display: "block",
|
|
2172
2172
|
width: $,
|
|
2173
|
-
height:
|
|
2173
|
+
height: b,
|
|
2174
2174
|
maxWidth: "none",
|
|
2175
2175
|
"--main-color": m
|
|
2176
2176
|
},
|
|
2177
2177
|
children: /* @__PURE__ */ k("g", { transform: `translate(${c}, 0)`, children: [
|
|
2178
|
-
/* @__PURE__ */ u("g", { children:
|
|
2178
|
+
/* @__PURE__ */ u("g", { children: _.map((w, N) => {
|
|
2179
2179
|
const L = f(w);
|
|
2180
2180
|
return /* @__PURE__ */ k("g", { children: [
|
|
2181
2181
|
/* @__PURE__ */ u(
|
|
@@ -2202,13 +2202,13 @@ const bl = "_barChartContainer_1ly7h_2", ko = {
|
|
|
2202
2202
|
] }, N);
|
|
2203
2203
|
}) }),
|
|
2204
2204
|
e && e.length > 0 && e.map((w, N) => {
|
|
2205
|
-
const L = f(0) - f(w.value), E = N * (t + n),
|
|
2205
|
+
const L = f(0) - f(w.value), E = N * (t + n), B = f(w.value);
|
|
2206
2206
|
return /* @__PURE__ */ k("g", { children: [
|
|
2207
2207
|
/* @__PURE__ */ u(
|
|
2208
2208
|
"rect",
|
|
2209
2209
|
{
|
|
2210
2210
|
x: E,
|
|
2211
|
-
y:
|
|
2211
|
+
y: B,
|
|
2212
2212
|
width: t,
|
|
2213
2213
|
height: L,
|
|
2214
2214
|
fill: w.color,
|
|
@@ -2233,7 +2233,7 @@ const bl = "_barChartContainer_1ly7h_2", ko = {
|
|
|
2233
2233
|
}
|
|
2234
2234
|
)
|
|
2235
2235
|
}
|
|
2236
|
-
) : (console.log("svgHeight: ",
|
|
2236
|
+
) : (console.log("svgHeight: ", b), /* @__PURE__ */ u(
|
|
2237
2237
|
"div",
|
|
2238
2238
|
{
|
|
2239
2239
|
style: {
|
|
@@ -2247,16 +2247,16 @@ const bl = "_barChartContainer_1ly7h_2", ko = {
|
|
|
2247
2247
|
"svg",
|
|
2248
2248
|
{
|
|
2249
2249
|
width: $,
|
|
2250
|
-
height:
|
|
2250
|
+
height: b,
|
|
2251
2251
|
style: {
|
|
2252
2252
|
minWidth: "100%",
|
|
2253
|
-
height:
|
|
2254
|
-
width:
|
|
2253
|
+
height: b,
|
|
2254
|
+
width: C,
|
|
2255
2255
|
maxWidth: "none"
|
|
2256
2256
|
},
|
|
2257
2257
|
children: /* @__PURE__ */ k("g", { transform: `translate(0,${d})`, children: [
|
|
2258
|
-
/* @__PURE__ */ u("g", { transform: `translate(${o + c}, 0)`, children:
|
|
2259
|
-
const L =
|
|
2258
|
+
/* @__PURE__ */ u("g", { transform: `translate(${o + c}, 0)`, children: _.map((w, N) => {
|
|
2259
|
+
const L = v(w);
|
|
2260
2260
|
return /* @__PURE__ */ k("g", { transform: `translate(${L}, 0)`, children: [
|
|
2261
2261
|
/* @__PURE__ */ u(
|
|
2262
2262
|
"line",
|
|
@@ -2279,7 +2279,7 @@ const bl = "_barChartContainer_1ly7h_2", ko = {
|
|
|
2279
2279
|
] }, N);
|
|
2280
2280
|
}) }),
|
|
2281
2281
|
e && e.length > 0 && e.map((w, N) => {
|
|
2282
|
-
const L =
|
|
2282
|
+
const L = v(w.value), E = N * (t + n);
|
|
2283
2283
|
return console.log("y: ", E), /* @__PURE__ */ k(
|
|
2284
2284
|
"g",
|
|
2285
2285
|
{
|
|
@@ -2430,9 +2430,9 @@ const xl = "_indicatorsCategory_arwy3_2", wl = "_title_arwy3_5", Sl = "_list_arw
|
|
|
2430
2430
|
multiple: l = !1,
|
|
2431
2431
|
onChangeType: c
|
|
2432
2432
|
}) => {
|
|
2433
|
-
const { t: d } = ce(), { name: h, type: g, disabled: y } = e, [m,
|
|
2433
|
+
const { t: d } = ce(), { name: h, type: g, disabled: y } = e, [m, v] = le(!1);
|
|
2434
2434
|
J(() => {
|
|
2435
|
-
o &&
|
|
2435
|
+
o && v(
|
|
2436
2436
|
l ? o.some(
|
|
2437
2437
|
(x) => x.name == String(h)
|
|
2438
2438
|
) : o.name == h
|
|
@@ -2497,7 +2497,7 @@ const xl = "_indicatorsCategory_arwy3_2", wl = "_title_arwy3_5", Sl = "_list_arw
|
|
|
2497
2497
|
]
|
|
2498
2498
|
}
|
|
2499
2499
|
)
|
|
2500
|
-
] }) }) }),
|
|
2500
|
+
] }) }) }), _ = () => /* @__PURE__ */ u("div", { className: Re.switchExternalContainer, children: /* @__PURE__ */ u("div", { className: Re.switchType, children: /* @__PURE__ */ u("div", { className: Re.switchTypeOptions, children: t.map((x, S) => /* @__PURE__ */ k(
|
|
2501
2501
|
"div",
|
|
2502
2502
|
{
|
|
2503
2503
|
className: Re.optionContainer,
|
|
@@ -2554,7 +2554,7 @@ const xl = "_indicatorsCategory_arwy3_2", wl = "_title_arwy3_5", Sl = "_list_arw
|
|
|
2554
2554
|
}
|
|
2555
2555
|
),
|
|
2556
2556
|
(o == null ? void 0 : o.name) === h && g === "both" && /* @__PURE__ */ u("div", { children: f() }),
|
|
2557
|
-
(o == null ? void 0 : o.name) === h && g === "twoUnits" && /* @__PURE__ */ u("div", { children:
|
|
2557
|
+
(o == null ? void 0 : o.name) === h && g === "twoUnits" && /* @__PURE__ */ u("div", { children: _() })
|
|
2558
2558
|
] });
|
|
2559
2559
|
};
|
|
2560
2560
|
eo.propTypes = {
|
|
@@ -2586,9 +2586,9 @@ const Pl = "_indicatorsSubCategory_1nuug_2", Vl = "_list_1nuug_11", $o = {
|
|
|
2586
2586
|
activeIndicatorType: h,
|
|
2587
2587
|
onChangeType: g
|
|
2588
2588
|
}) => {
|
|
2589
|
-
const { t: y } = ce(), [m,
|
|
2589
|
+
const { t: y } = ce(), [m, v] = le(!1);
|
|
2590
2590
|
return J(() => {
|
|
2591
|
-
|
|
2591
|
+
v(o == a);
|
|
2592
2592
|
}, [o, a]), /* @__PURE__ */ k(
|
|
2593
2593
|
Xr.div,
|
|
2594
2594
|
{
|
|
@@ -2607,7 +2607,7 @@ const Pl = "_indicatorsSubCategory_1nuug_2", Vl = "_list_1nuug_11", $o = {
|
|
|
2607
2607
|
}
|
|
2608
2608
|
)
|
|
2609
2609
|
] }) }),
|
|
2610
|
-
t && /* @__PURE__ */ u("div", { className: $o.list, children: t == null ? void 0 : t.map((f,
|
|
2610
|
+
t && /* @__PURE__ */ u("div", { className: $o.list, children: t == null ? void 0 : t.map((f, _) => /* @__PURE__ */ u(
|
|
2611
2611
|
eo,
|
|
2612
2612
|
{
|
|
2613
2613
|
indicator: f,
|
|
@@ -2619,7 +2619,7 @@ const Pl = "_indicatorsSubCategory_1nuug_2", Vl = "_list_1nuug_11", $o = {
|
|
|
2619
2619
|
activeIndicatorType: h,
|
|
2620
2620
|
onChangeType: g
|
|
2621
2621
|
},
|
|
2622
|
-
"indicator" +
|
|
2622
|
+
"indicator" + _
|
|
2623
2623
|
)) })
|
|
2624
2624
|
]
|
|
2625
2625
|
}
|
|
@@ -2652,8 +2652,8 @@ const Qi = ({
|
|
|
2652
2652
|
activeIndicatorType: g,
|
|
2653
2653
|
onChangeType: y
|
|
2654
2654
|
}) => {
|
|
2655
|
-
var
|
|
2656
|
-
const { t: m } = ce(), [
|
|
2655
|
+
var _;
|
|
2656
|
+
const { t: m } = ce(), [v, f] = le(!1);
|
|
2657
2657
|
return J(() => {
|
|
2658
2658
|
f(s === t);
|
|
2659
2659
|
}, [s, t]), /* @__PURE__ */ k(
|
|
@@ -2661,26 +2661,26 @@ const Qi = ({
|
|
|
2661
2661
|
{
|
|
2662
2662
|
className: Nn.indicatorsCategory,
|
|
2663
2663
|
initial: { height: "53px" },
|
|
2664
|
-
animate: { height:
|
|
2664
|
+
animate: { height: v ? "auto" : "53px" },
|
|
2665
2665
|
transition: { duration: 0.4 },
|
|
2666
2666
|
style: {
|
|
2667
2667
|
backgroundColor: "white",
|
|
2668
|
-
borderBottom:
|
|
2669
|
-
marginBottom:
|
|
2668
|
+
borderBottom: v ? `1px solid ${n}` : "0px",
|
|
2669
|
+
marginBottom: v ? "20px" : "0px"
|
|
2670
2670
|
},
|
|
2671
2671
|
children: [
|
|
2672
2672
|
/* @__PURE__ */ k("h2", { className: `${Nn.title}`, onClick: () => o(t), children: [
|
|
2673
|
-
/* @__PURE__ */ u("span", { className: Nn.plus, style: { color:
|
|
2673
|
+
/* @__PURE__ */ u("span", { className: Nn.plus, style: { color: v ? n : r }, children: v ? "-" : "+" }),
|
|
2674
2674
|
/* @__PURE__ */ u(
|
|
2675
2675
|
"span",
|
|
2676
2676
|
{
|
|
2677
|
-
style: { color:
|
|
2677
|
+
style: { color: v ? n : r },
|
|
2678
2678
|
children: m(e.name)
|
|
2679
2679
|
}
|
|
2680
2680
|
)
|
|
2681
2681
|
] }),
|
|
2682
2682
|
e.subcategories ? e.subcategories.map(
|
|
2683
|
-
({ name: x, subcategory: S, indicators: $ },
|
|
2683
|
+
({ name: x, subcategory: S, indicators: $ }, b) => /* @__PURE__ */ u(
|
|
2684
2684
|
Xi,
|
|
2685
2685
|
{
|
|
2686
2686
|
id: S,
|
|
@@ -2696,9 +2696,9 @@ const Qi = ({
|
|
|
2696
2696
|
activeIndicatorType: g,
|
|
2697
2697
|
onChangeType: y
|
|
2698
2698
|
},
|
|
2699
|
-
`subcKey ${
|
|
2699
|
+
`subcKey ${b}`
|
|
2700
2700
|
)
|
|
2701
|
-
) : /* @__PURE__ */ u("div", { className: Nn.list, children: (
|
|
2701
|
+
) : /* @__PURE__ */ u("div", { className: Nn.list, children: (_ = e.indicators) == null ? void 0 : _.map((x, S) => /* @__PURE__ */ u(
|
|
2702
2702
|
eo,
|
|
2703
2703
|
{
|
|
2704
2704
|
indicator: x,
|
|
@@ -2731,9 +2731,9 @@ Qi.propTypes = {
|
|
|
2731
2731
|
activeColor: i.string,
|
|
2732
2732
|
defaultColor: i.string
|
|
2733
2733
|
};
|
|
2734
|
-
const
|
|
2735
|
-
indicatorsList:
|
|
2736
|
-
title:
|
|
2734
|
+
const Bl = "_indicatorsList_13b3m_2", Fl = "_title_13b3m_6", No = {
|
|
2735
|
+
indicatorsList: Bl,
|
|
2736
|
+
title: Fl
|
|
2737
2737
|
}, zl = ({
|
|
2738
2738
|
indicators: e,
|
|
2739
2739
|
activeColor: t,
|
|
@@ -2748,26 +2748,26 @@ const Fl = "_indicatorsList_13b3m_2", Bl = "_title_13b3m_6", No = {
|
|
|
2748
2748
|
changeIndType: a,
|
|
2749
2749
|
activeIndicatorType: l
|
|
2750
2750
|
}) => {
|
|
2751
|
-
const { t: c } = ce(), [d, h] = le(), [g, y] = le(), [m,
|
|
2752
|
-
h(d ==
|
|
2753
|
-
},
|
|
2754
|
-
y(g ==
|
|
2755
|
-
}, x = ({ indicator:
|
|
2756
|
-
S(
|
|
2757
|
-
}, S = (
|
|
2751
|
+
const { t: c } = ce(), [d, h] = le(), [g, y] = le(), [m, v] = le(), f = (b) => {
|
|
2752
|
+
h(d == b ? null : b);
|
|
2753
|
+
}, _ = (b) => {
|
|
2754
|
+
y(g == b ? null : b);
|
|
2755
|
+
}, x = ({ indicator: b }) => {
|
|
2756
|
+
S(b);
|
|
2757
|
+
}, S = (b) => {
|
|
2758
2758
|
if (!o)
|
|
2759
|
-
|
|
2760
|
-
(m == null ? void 0 : m.name) ==
|
|
2759
|
+
v(
|
|
2760
|
+
(m == null ? void 0 : m.name) == b.name ? null : b
|
|
2761
2761
|
);
|
|
2762
2762
|
else {
|
|
2763
|
-
let
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
(w) => w.name ==
|
|
2767
|
-
) ?
|
|
2768
|
-
(w) => w.name != String(
|
|
2769
|
-
) : [...
|
|
2770
|
-
),
|
|
2763
|
+
let C = m && m.length > 0 ? [...m] : [];
|
|
2764
|
+
v(
|
|
2765
|
+
C != null && C.some(
|
|
2766
|
+
(w) => w.name == b.name
|
|
2767
|
+
) ? C.filter(
|
|
2768
|
+
(w) => w.name != String(b.name)
|
|
2769
|
+
) : [...C, b]
|
|
2770
|
+
), b.type == "both" && a("cat");
|
|
2771
2771
|
}
|
|
2772
2772
|
};
|
|
2773
2773
|
J(() => {
|
|
@@ -2775,41 +2775,41 @@ const Fl = "_indicatorsList_13b3m_2", Bl = "_title_13b3m_6", No = {
|
|
|
2775
2775
|
}, [m]), Ri(() => {
|
|
2776
2776
|
if (s && !m)
|
|
2777
2777
|
if (o && s && Array.isArray(s)) {
|
|
2778
|
-
let
|
|
2779
|
-
|
|
2778
|
+
let b = m && m.length > 0 ? [...m] : [];
|
|
2779
|
+
v([...b, ...s]), $(s[0].name);
|
|
2780
2780
|
} else
|
|
2781
2781
|
S(s), $(s.name);
|
|
2782
2782
|
}, []), J(() => {
|
|
2783
2783
|
if (s != m)
|
|
2784
2784
|
if (o && s && Array.isArray(s)) {
|
|
2785
|
-
let
|
|
2786
|
-
|
|
2785
|
+
let b = m && m.length > 0 ? [...m] : [];
|
|
2786
|
+
v([...b, ...s]), $(s[0].name);
|
|
2787
2787
|
} else
|
|
2788
2788
|
S(s), $(s.name);
|
|
2789
2789
|
}, [s]);
|
|
2790
|
-
const $ = (
|
|
2791
|
-
const
|
|
2790
|
+
const $ = (b) => {
|
|
2791
|
+
const C = e.find((w) => {
|
|
2792
2792
|
if (w.subcategories) {
|
|
2793
2793
|
let N = w.subcategories.find(
|
|
2794
|
-
(L) => L.indicators.find((E) => E.name ==
|
|
2794
|
+
(L) => L.indicators.find((E) => E.name == b)
|
|
2795
2795
|
);
|
|
2796
2796
|
if (N)
|
|
2797
2797
|
return y(N.subcategory), N;
|
|
2798
2798
|
} else
|
|
2799
|
-
return w.indicators.some((N) => N.name ==
|
|
2799
|
+
return w.indicators.some((N) => N.name == b);
|
|
2800
2800
|
});
|
|
2801
|
-
|
|
2801
|
+
C && h(C.category);
|
|
2802
2802
|
};
|
|
2803
2803
|
return /* @__PURE__ */ k("div", { className: No.indicatorsList, children: [
|
|
2804
2804
|
/* @__PURE__ */ u("h2", { className: No.title, style: { color: n }, children: c("indicators.indicators") }),
|
|
2805
|
-
e.map((
|
|
2805
|
+
e.map((b, C) => /* @__PURE__ */ u(
|
|
2806
2806
|
Qi,
|
|
2807
2807
|
{
|
|
2808
|
-
id:
|
|
2809
|
-
cat:
|
|
2808
|
+
id: b.category,
|
|
2809
|
+
cat: b,
|
|
2810
2810
|
onClickCategory: f,
|
|
2811
2811
|
activeCategory: d,
|
|
2812
|
-
onClickSubCategory:
|
|
2812
|
+
onClickSubCategory: _,
|
|
2813
2813
|
activeSubCategory: g,
|
|
2814
2814
|
onClickIndicator: x,
|
|
2815
2815
|
activeIndicator: m,
|
|
@@ -2820,7 +2820,7 @@ const Fl = "_indicatorsList_13b3m_2", Bl = "_title_13b3m_6", No = {
|
|
|
2820
2820
|
onChangeType: a,
|
|
2821
2821
|
activeIndicatorType: l
|
|
2822
2822
|
},
|
|
2823
|
-
`categoryKey${
|
|
2823
|
+
`categoryKey${C}`
|
|
2824
2824
|
))
|
|
2825
2825
|
] });
|
|
2826
2826
|
};
|
|
@@ -3590,16 +3590,16 @@ function kc(e, t, n) {
|
|
|
3590
3590
|
return;
|
|
3591
3591
|
if (!m)
|
|
3592
3592
|
throw new Error("Invalid mapLib");
|
|
3593
|
-
const
|
|
3594
|
-
if (!
|
|
3593
|
+
const v = "Map" in m ? m : m.default;
|
|
3594
|
+
if (!v.Map)
|
|
3595
3595
|
throw new Error("Invalid mapLib");
|
|
3596
|
-
if (Sc(
|
|
3597
|
-
e.reuseMaps && (y = Kt.reuse(e, a.current)), y || (y = new Kt(
|
|
3596
|
+
if (Sc(v, e), !v.supported || v.supported(e))
|
|
3597
|
+
e.reuseMaps && (y = Kt.reuse(e, a.current)), y || (y = new Kt(v.Map, e, a.current)), l.map = Cc(y), l.mapLib = v, s(y), r == null || r.onMapMount(l.map, e.id);
|
|
3598
3598
|
else
|
|
3599
3599
|
throw new Error("Map is not supported by this browser");
|
|
3600
3600
|
}).catch((m) => {
|
|
3601
|
-
const { onError:
|
|
3602
|
-
|
|
3601
|
+
const { onError: v } = e;
|
|
3602
|
+
v ? v({
|
|
3603
3603
|
type: "error",
|
|
3604
3604
|
target: null,
|
|
3605
3605
|
originalEvent: null,
|
|
@@ -3643,38 +3643,38 @@ function $c(e, t) {
|
|
|
3643
3643
|
Q.Children.forEach(e.children, (S) => {
|
|
3644
3644
|
S && (f = !0);
|
|
3645
3645
|
});
|
|
3646
|
-
const
|
|
3646
|
+
const _ = {
|
|
3647
3647
|
...e,
|
|
3648
3648
|
element: f ? document.createElement("div") : null
|
|
3649
|
-
}, x = new r.Marker(
|
|
3649
|
+
}, x = new r.Marker(_);
|
|
3650
3650
|
return x.setLngLat([e.longitude, e.latitude]), x.getElement().addEventListener("click", (S) => {
|
|
3651
|
-
var $,
|
|
3652
|
-
(
|
|
3651
|
+
var $, b;
|
|
3652
|
+
(b = ($ = o.current.props).onClick) === null || b === void 0 || b.call($, {
|
|
3653
3653
|
type: "click",
|
|
3654
3654
|
target: x,
|
|
3655
3655
|
originalEvent: S
|
|
3656
3656
|
});
|
|
3657
3657
|
}), x.on("dragstart", (S) => {
|
|
3658
|
-
var $,
|
|
3659
|
-
const
|
|
3660
|
-
|
|
3658
|
+
var $, b;
|
|
3659
|
+
const C = S;
|
|
3660
|
+
C.lngLat = s.getLngLat(), (b = ($ = o.current.props).onDragStart) === null || b === void 0 || b.call($, C);
|
|
3661
3661
|
}), x.on("drag", (S) => {
|
|
3662
|
-
var $,
|
|
3663
|
-
const
|
|
3664
|
-
|
|
3662
|
+
var $, b;
|
|
3663
|
+
const C = S;
|
|
3664
|
+
C.lngLat = s.getLngLat(), (b = ($ = o.current.props).onDrag) === null || b === void 0 || b.call($, C);
|
|
3665
3665
|
}), x.on("dragend", (S) => {
|
|
3666
|
-
var $,
|
|
3667
|
-
const
|
|
3668
|
-
|
|
3666
|
+
var $, b;
|
|
3667
|
+
const C = S;
|
|
3668
|
+
C.lngLat = s.getLngLat(), (b = ($ = o.current.props).onDragEnd) === null || b === void 0 || b.call($, C);
|
|
3669
3669
|
}), x;
|
|
3670
3670
|
}, []);
|
|
3671
3671
|
J(() => (s.addTo(n.getMap()), () => {
|
|
3672
3672
|
s.remove();
|
|
3673
3673
|
}), []);
|
|
3674
|
-
const { longitude: a, latitude: l, offset: c, style: d, draggable: h = !1, popup: g = null, rotation: y = 0, rotationAlignment: m = "auto", pitchAlignment:
|
|
3674
|
+
const { longitude: a, latitude: l, offset: c, style: d, draggable: h = !1, popup: g = null, rotation: y = 0, rotationAlignment: m = "auto", pitchAlignment: v = "auto" } = e;
|
|
3675
3675
|
return J(() => {
|
|
3676
3676
|
Mt(s.getElement(), d);
|
|
3677
|
-
}, [d]), Yn(t, () => s, []), (s.getLngLat().lng !== a || s.getLngLat().lat !== l) && s.setLngLat([a, l]), c && !pc(s.getOffset(), c) && s.setOffset(c), s.isDraggable() !== h && s.setDraggable(h), s.getRotation() !== y && s.setRotation(y), s.getRotationAlignment() !== m && s.setRotationAlignment(m), s.getPitchAlignment() !==
|
|
3677
|
+
}, [d]), Yn(t, () => s, []), (s.getLngLat().lng !== a || s.getLngLat().lat !== l) && s.setLngLat([a, l]), c && !pc(s.getOffset(), c) && s.setOffset(c), s.isDraggable() !== h && s.setDraggable(h), s.getRotation() !== y && s.setRotation(y), s.getRotationAlignment() !== m && s.setRotationAlignment(m), s.getPitchAlignment() !== v && s.setPitchAlignment(v), s.getPopup() !== g && s.setPopup(g), Bi(e.children, s.getElement());
|
|
3678
3678
|
}
|
|
3679
3679
|
At(Gr($c));
|
|
3680
3680
|
function Po(e) {
|
|
@@ -3708,7 +3708,7 @@ function Nc(e, t) {
|
|
|
3708
3708
|
l.has(d) || a.addClassName(d);
|
|
3709
3709
|
a.options.className = e.className;
|
|
3710
3710
|
}
|
|
3711
|
-
return
|
|
3711
|
+
return Bi(e.children, o);
|
|
3712
3712
|
}
|
|
3713
3713
|
const Ec = At(Gr(Nc));
|
|
3714
3714
|
function hn(e, t, n, r) {
|
|
@@ -3816,7 +3816,7 @@ function Pc(e, t, n) {
|
|
|
3816
3816
|
}
|
|
3817
3817
|
}
|
|
3818
3818
|
let Vc = 0;
|
|
3819
|
-
function
|
|
3819
|
+
function Bc(e) {
|
|
3820
3820
|
const t = Yt(Xt).map.getMap(), n = Se(e), [, r] = le(0), o = je(() => e.id || `jsx-layer-${Vc++}`, []);
|
|
3821
3821
|
if (J(() => {
|
|
3822
3822
|
if (t) {
|
|
@@ -3835,7 +3835,7 @@ function Fc(e) {
|
|
|
3835
3835
|
Pc(t, o, e);
|
|
3836
3836
|
return n.current = e, null;
|
|
3837
3837
|
}
|
|
3838
|
-
let
|
|
3838
|
+
let Fc = 0;
|
|
3839
3839
|
function zc(e, t, n) {
|
|
3840
3840
|
if (e.style && e.style._loaded) {
|
|
3841
3841
|
const r = { ...n };
|
|
@@ -3857,7 +3857,7 @@ function jc(e, t, n) {
|
|
|
3857
3857
|
}) : "setCoordinates" in e && o === 1 && r === "coordinates" ? e.setCoordinates(t.coordinates) : "setUrl" in e && r === "url" ? e.setUrl(t.url) : "setTiles" in e && r === "tiles" ? e.setTiles(t.tiles) : console.warn(`Unable to update <Source> prop: ${r}`);
|
|
3858
3858
|
}
|
|
3859
3859
|
function qc(e) {
|
|
3860
|
-
const t = Yt(Xt).map.getMap(), n = Se(e), [, r] = le(0), o = je(() => e.id || `jsx-source-${
|
|
3860
|
+
const t = Yt(Xt).map.getMap(), n = Se(e), [, r] = le(0), o = je(() => e.id || `jsx-source-${Fc++}`, []);
|
|
3861
3861
|
J(() => {
|
|
3862
3862
|
if (t) {
|
|
3863
3863
|
const a = () => setTimeout(() => r((l) => l + 1), 0);
|
|
@@ -3880,7 +3880,7 @@ function qc(e) {
|
|
|
3880
3880
|
}
|
|
3881
3881
|
const Wc = import("mapbox-gl"), Ji = Q.forwardRef(function(t, n) {
|
|
3882
3882
|
return kc(t, n, Wc);
|
|
3883
|
-
}), es = Ec, ts = Rc, ns =
|
|
3883
|
+
}), es = Ec, ts = Rc, ns = Bc, rs = qc, Uc = "_mapContainer_84pkf_2", Zc = {
|
|
3884
3884
|
mapContainer: Uc
|
|
3885
3885
|
};
|
|
3886
3886
|
Us.accessToken = "pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";
|
|
@@ -3897,15 +3897,15 @@ const Hc = ({
|
|
|
3897
3897
|
sources: d = [],
|
|
3898
3898
|
layers: h = []
|
|
3899
3899
|
}) => {
|
|
3900
|
-
const g = Se(), [y, m] = le(null),
|
|
3900
|
+
const g = Se(), [y, m] = le(null), v = Zs((f) => f.mapState.showTexts);
|
|
3901
3901
|
return J(() => {
|
|
3902
3902
|
if (g.current) {
|
|
3903
3903
|
const f = g.current.getMap();
|
|
3904
3904
|
f.getStyle().layers.map((x) => {
|
|
3905
|
-
x.type == "symbol" && x.id != "professionals" && (
|
|
3905
|
+
x.type == "symbol" && x.id != "professionals" && (v ? f.setLayoutProperty(x.id, "visibility", "visible") : f.setLayoutProperty(x.id, "visibility", "none"));
|
|
3906
3906
|
});
|
|
3907
3907
|
}
|
|
3908
|
-
}, [
|
|
3908
|
+
}, [v]), /* @__PURE__ */ u("div", { className: `${Zc.mapContainer}`, style: s, children: /* @__PURE__ */ k(
|
|
3909
3909
|
Ji,
|
|
3910
3910
|
{
|
|
3911
3911
|
initialViewState: e,
|
|
@@ -3917,7 +3917,7 @@ const Hc = ({
|
|
|
3917
3917
|
onClick: a,
|
|
3918
3918
|
interactiveLayerIds: l,
|
|
3919
3919
|
children: [
|
|
3920
|
-
d.length && d.map((f,
|
|
3920
|
+
d.length && d.map((f, _) => /* @__PURE__ */ u(rs, { ...f, children: h.length && h.map((x, S) => {
|
|
3921
3921
|
if (x.sourceId == f.id)
|
|
3922
3922
|
return /* @__PURE__ */ u(
|
|
3923
3923
|
ns,
|
|
@@ -3927,7 +3927,7 @@ const Hc = ({
|
|
|
3927
3927
|
},
|
|
3928
3928
|
S
|
|
3929
3929
|
);
|
|
3930
|
-
}) },
|
|
3930
|
+
}) }, _)),
|
|
3931
3931
|
/* @__PURE__ */ u(ts, { position: "bottom-right", visualizePitch: !0 }),
|
|
3932
3932
|
c && y && /* @__PURE__ */ u(
|
|
3933
3933
|
es,
|
|
@@ -4022,10 +4022,10 @@ const Kc = "_mapContainer_b0pyr_3", Gc = {
|
|
|
4022
4022
|
showTexts: y,
|
|
4023
4023
|
hash: m = !1
|
|
4024
4024
|
}) => {
|
|
4025
|
-
const
|
|
4025
|
+
const v = Se();
|
|
4026
4026
|
return J(() => {
|
|
4027
|
-
if (
|
|
4028
|
-
const f =
|
|
4027
|
+
if (v.current) {
|
|
4028
|
+
const f = v.current.getMap();
|
|
4029
4029
|
f.getStyle().layers.map((x) => {
|
|
4030
4030
|
x.type == "symbol" && x.id != "professionals" && (y ? f.setLayoutProperty(x.id, "visibility", "visible") : f.setLayoutProperty(x.id, "visibility", "none"));
|
|
4031
4031
|
});
|
|
@@ -4040,7 +4040,7 @@ const Kc = "_mapContainer_b0pyr_3", Gc = {
|
|
|
4040
4040
|
{
|
|
4041
4041
|
mapLib: gr,
|
|
4042
4042
|
initialViewState: e,
|
|
4043
|
-
ref:
|
|
4043
|
+
ref: v,
|
|
4044
4044
|
hash: m,
|
|
4045
4045
|
maxZoom: t,
|
|
4046
4046
|
minZoom: n,
|
|
@@ -4048,7 +4048,7 @@ const Kc = "_mapContainer_b0pyr_3", Gc = {
|
|
|
4048
4048
|
onClick: a,
|
|
4049
4049
|
interactiveLayerIds: l,
|
|
4050
4050
|
children: [
|
|
4051
|
-
c.length && c.map((f,
|
|
4051
|
+
c.length && c.map((f, _) => /* @__PURE__ */ u(rs, { ...f, children: d.length && d.map((x, S) => {
|
|
4052
4052
|
if (x.sourceId == f.id)
|
|
4053
4053
|
return /* @__PURE__ */ u(
|
|
4054
4054
|
ns,
|
|
@@ -4062,7 +4062,7 @@ const Kc = "_mapContainer_b0pyr_3", Gc = {
|
|
|
4062
4062
|
},
|
|
4063
4063
|
S
|
|
4064
4064
|
);
|
|
4065
|
-
}) },
|
|
4065
|
+
}) }, _)),
|
|
4066
4066
|
/* @__PURE__ */ u(ts, { position: "bottom-right", visualizePitch: !0 }),
|
|
4067
4067
|
h && /* @__PURE__ */ u(
|
|
4068
4068
|
es,
|
|
@@ -4216,7 +4216,7 @@ function bt() {
|
|
|
4216
4216
|
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = os(e)) && (r && (r += " "), r += t);
|
|
4217
4217
|
return r;
|
|
4218
4218
|
}
|
|
4219
|
-
function
|
|
4219
|
+
function Bo(e, t) {
|
|
4220
4220
|
return process.env.NODE_ENV === "production" ? () => null : function(...r) {
|
|
4221
4221
|
return e(...r) || t(...r);
|
|
4222
4222
|
};
|
|
@@ -4272,7 +4272,7 @@ function p0(e, t, n) {
|
|
|
4272
4272
|
}
|
|
4273
4273
|
};
|
|
4274
4274
|
}
|
|
4275
|
-
function
|
|
4275
|
+
function Bn(e, t = []) {
|
|
4276
4276
|
if (e === void 0)
|
|
4277
4277
|
return {};
|
|
4278
4278
|
const n = {};
|
|
@@ -4280,7 +4280,7 @@ function Fn(e, t = []) {
|
|
|
4280
4280
|
n[r] = e[r];
|
|
4281
4281
|
}), n;
|
|
4282
4282
|
}
|
|
4283
|
-
function
|
|
4283
|
+
function Fo(e) {
|
|
4284
4284
|
if (e === void 0)
|
|
4285
4285
|
return {};
|
|
4286
4286
|
const t = {};
|
|
@@ -4297,7 +4297,7 @@ function m0(e) {
|
|
|
4297
4297
|
className: s
|
|
4298
4298
|
} = e;
|
|
4299
4299
|
if (!t) {
|
|
4300
|
-
const m = bt(n == null ? void 0 : n.className, s, o == null ? void 0 : o.className, r == null ? void 0 : r.className),
|
|
4300
|
+
const m = bt(n == null ? void 0 : n.className, s, o == null ? void 0 : o.className, r == null ? void 0 : r.className), v = {
|
|
4301
4301
|
...n == null ? void 0 : n.style,
|
|
4302
4302
|
...o == null ? void 0 : o.style,
|
|
4303
4303
|
...r == null ? void 0 : r.style
|
|
@@ -4306,15 +4306,15 @@ function m0(e) {
|
|
|
4306
4306
|
...o,
|
|
4307
4307
|
...r
|
|
4308
4308
|
};
|
|
4309
|
-
return m.length > 0 && (f.className = m), Object.keys(
|
|
4309
|
+
return m.length > 0 && (f.className = m), Object.keys(v).length > 0 && (f.style = v), {
|
|
4310
4310
|
props: f,
|
|
4311
4311
|
internalRef: void 0
|
|
4312
4312
|
};
|
|
4313
4313
|
}
|
|
4314
|
-
const a =
|
|
4314
|
+
const a = Bn({
|
|
4315
4315
|
...o,
|
|
4316
4316
|
...r
|
|
4317
|
-
}), l =
|
|
4317
|
+
}), l = Fo(r), c = Fo(o), d = t(a), h = bt(d == null ? void 0 : d.className, n == null ? void 0 : n.className, s, o == null ? void 0 : o.className, r == null ? void 0 : r.className), g = {
|
|
4318
4318
|
...d == null ? void 0 : d.style,
|
|
4319
4319
|
...n == null ? void 0 : n.style,
|
|
4320
4320
|
...o == null ? void 0 : o.style,
|
|
@@ -4353,7 +4353,7 @@ function mt(e) {
|
|
|
4353
4353
|
ref: d
|
|
4354
4354
|
}, r);
|
|
4355
4355
|
}
|
|
4356
|
-
function
|
|
4356
|
+
function Fn(e) {
|
|
4357
4357
|
return e && e.ownerDocument || document;
|
|
4358
4358
|
}
|
|
4359
4359
|
function g0(e) {
|
|
@@ -4488,7 +4488,7 @@ function On({
|
|
|
4488
4488
|
setActive: n
|
|
4489
4489
|
}) {
|
|
4490
4490
|
var o, s, a;
|
|
4491
|
-
const r =
|
|
4491
|
+
const r = Fn(e.current);
|
|
4492
4492
|
(!((o = e.current) != null && o.contains(r.activeElement)) || Number((s = r == null ? void 0 : r.activeElement) == null ? void 0 : s.getAttribute("data-index")) !== t) && ((a = e.current) == null || a.querySelector(`[type="range"][data-index="${t}"]`).focus()), n && n(t);
|
|
4493
4493
|
}
|
|
4494
4494
|
function An(e, t) {
|
|
@@ -4539,39 +4539,39 @@ function k0(e) {
|
|
|
4539
4539
|
onChangeCommitted: g,
|
|
4540
4540
|
orientation: y = "horizontal",
|
|
4541
4541
|
rootRef: m,
|
|
4542
|
-
scale:
|
|
4542
|
+
scale: v = S0,
|
|
4543
4543
|
step: f = 1,
|
|
4544
|
-
shiftStep:
|
|
4544
|
+
shiftStep: _ = 10,
|
|
4545
4545
|
tabIndex: x,
|
|
4546
4546
|
value: S
|
|
4547
|
-
} = e, $ = Q.useRef(void 0), [
|
|
4547
|
+
} = e, $ = Q.useRef(void 0), [b, C] = Q.useState(-1), [w, N] = Q.useState(-1), [L, E] = Q.useState(!1), B = Q.useRef(0), I = Q.useRef(null), [p, O] = g0({
|
|
4548
4548
|
controlled: S,
|
|
4549
4549
|
default: n ?? c,
|
|
4550
4550
|
name: "Slider"
|
|
4551
|
-
}), T = h && ((R,
|
|
4551
|
+
}), T = h && ((R, F, H) => {
|
|
4552
4552
|
const ae = R.nativeEvent || R, be = new ae.constructor(ae.type, ae);
|
|
4553
4553
|
Object.defineProperty(be, "target", {
|
|
4554
4554
|
writable: !0,
|
|
4555
4555
|
value: {
|
|
4556
|
-
value:
|
|
4556
|
+
value: F,
|
|
4557
4557
|
name: d
|
|
4558
4558
|
}
|
|
4559
|
-
}), I.current =
|
|
4559
|
+
}), I.current = F, h(be, F, H);
|
|
4560
4560
|
}), z = Array.isArray(p);
|
|
4561
4561
|
let j = z ? p.slice().sort(as) : [p];
|
|
4562
4562
|
j = j.map((R) => R == null ? c : Zt(R, c, l));
|
|
4563
|
-
const Y = a === !0 && f !== null ? [...Array(Math.floor((l - c) / f) + 1)].map((R,
|
|
4564
|
-
value: c + f *
|
|
4565
|
-
})) : a || [], W = Y.map((R) => R.value), [ue, D] = Q.useState(-1), M = Q.useRef(null), ee = is(m, M), K = (R) => (
|
|
4563
|
+
const Y = a === !0 && f !== null ? [...Array(Math.floor((l - c) / f) + 1)].map((R, F) => ({
|
|
4564
|
+
value: c + f * F
|
|
4565
|
+
})) : a || [], W = Y.map((R) => R.value), [ue, D] = Q.useState(-1), M = Q.useRef(null), ee = is(m, M), K = (R) => (F) => {
|
|
4566
4566
|
var ae;
|
|
4567
|
-
const H = Number(
|
|
4568
|
-
zo(
|
|
4569
|
-
}, V = (R) => (
|
|
4567
|
+
const H = Number(F.currentTarget.getAttribute("data-index"));
|
|
4568
|
+
zo(F.target) && D(H), N(H), (ae = R == null ? void 0 : R.onFocus) == null || ae.call(R, F);
|
|
4569
|
+
}, V = (R) => (F) => {
|
|
4570
4570
|
var H;
|
|
4571
|
-
zo(
|
|
4572
|
-
}, Z = (R,
|
|
4571
|
+
zo(F.target) || D(-1), N(-1), (H = R == null ? void 0 : R.onBlur) == null || H.call(R, F);
|
|
4572
|
+
}, Z = (R, F) => {
|
|
4573
4573
|
const H = Number(R.currentTarget.getAttribute("data-index")), ae = j[H], be = W.indexOf(ae);
|
|
4574
|
-
let X =
|
|
4574
|
+
let X = F;
|
|
4575
4575
|
if (Y && f == null) {
|
|
4576
4576
|
const Me = W[W.length - 1];
|
|
4577
4577
|
X >= Me ? X = Me : X <= W[0] ? X = W[0] : X = X < ae ? W[be - 1] : W[be + 1];
|
|
@@ -4591,15 +4591,15 @@ function k0(e) {
|
|
|
4591
4591
|
});
|
|
4592
4592
|
}
|
|
4593
4593
|
O(X), D(H), T && !An(X, p) && T(R, X, H), g && g(R, I.current ?? X);
|
|
4594
|
-
}, ne = (R) => (
|
|
4594
|
+
}, ne = (R) => (F) => {
|
|
4595
4595
|
var H;
|
|
4596
|
-
if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(
|
|
4597
|
-
|
|
4598
|
-
const ae = Number(
|
|
4596
|
+
if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(F.key)) {
|
|
4597
|
+
F.preventDefault();
|
|
4598
|
+
const ae = Number(F.currentTarget.getAttribute("data-index")), be = j[ae];
|
|
4599
4599
|
let X = null;
|
|
4600
4600
|
if (f != null) {
|
|
4601
|
-
const Me =
|
|
4602
|
-
switch (
|
|
4601
|
+
const Me = F.shiftKey ? _ : f;
|
|
4602
|
+
switch (F.key) {
|
|
4603
4603
|
case "ArrowUp":
|
|
4604
4604
|
X = Pt(be, Me, 1, c, l);
|
|
4605
4605
|
break;
|
|
@@ -4613,10 +4613,10 @@ function k0(e) {
|
|
|
4613
4613
|
X = Pt(be, Me, s ? 1 : -1, c, l);
|
|
4614
4614
|
break;
|
|
4615
4615
|
case "PageUp":
|
|
4616
|
-
X = Pt(be,
|
|
4616
|
+
X = Pt(be, _, 1, c, l);
|
|
4617
4617
|
break;
|
|
4618
4618
|
case "PageDown":
|
|
4619
|
-
X = Pt(be,
|
|
4619
|
+
X = Pt(be, _, -1, c, l);
|
|
4620
4620
|
break;
|
|
4621
4621
|
case "Home":
|
|
4622
4622
|
X = c;
|
|
@@ -4627,25 +4627,25 @@ function k0(e) {
|
|
|
4627
4627
|
}
|
|
4628
4628
|
} else if (Y) {
|
|
4629
4629
|
const Me = W[W.length - 1], Ve = W.indexOf(be), Oe = [s ? "ArrowRight" : "ArrowLeft", "ArrowDown", "PageDown", "Home"], Ke = [s ? "ArrowLeft" : "ArrowRight", "ArrowUp", "PageUp", "End"];
|
|
4630
|
-
Oe.includes(
|
|
4630
|
+
Oe.includes(F.key) ? Ve === 0 ? X = W[0] : X = W[Ve - 1] : Ke.includes(F.key) && (Ve === W.length - 1 ? X = Me : X = W[Ve + 1]);
|
|
4631
4631
|
}
|
|
4632
|
-
X != null && Z(
|
|
4632
|
+
X != null && Z(F, X);
|
|
4633
4633
|
}
|
|
4634
|
-
(H = R == null ? void 0 : R.onKeyDown) == null || H.call(R,
|
|
4634
|
+
(H = R == null ? void 0 : R.onKeyDown) == null || H.call(R, F);
|
|
4635
4635
|
};
|
|
4636
4636
|
ss(() => {
|
|
4637
4637
|
var R;
|
|
4638
4638
|
r && M.current.contains(document.activeElement) && ((R = document.activeElement) == null || R.blur());
|
|
4639
|
-
}, [r]), r &&
|
|
4640
|
-
const G = (R) => (
|
|
4639
|
+
}, [r]), r && b !== -1 && C(-1), r && ue !== -1 && D(-1);
|
|
4640
|
+
const G = (R) => (F) => {
|
|
4641
4641
|
var H;
|
|
4642
|
-
(H = R.onChange) == null || H.call(R,
|
|
4642
|
+
(H = R.onChange) == null || H.call(R, F), Z(F, F.target.valueAsNumber);
|
|
4643
4643
|
}, U = Q.useRef(void 0);
|
|
4644
4644
|
let oe = y;
|
|
4645
4645
|
s && y === "horizontal" && (oe += "-reverse");
|
|
4646
4646
|
const te = ({
|
|
4647
4647
|
finger: R,
|
|
4648
|
-
move:
|
|
4648
|
+
move: F = !1
|
|
4649
4649
|
}) => {
|
|
4650
4650
|
const {
|
|
4651
4651
|
current: H
|
|
@@ -4667,23 +4667,23 @@ function k0(e) {
|
|
|
4667
4667
|
Oe = Zt(Oe, c, l);
|
|
4668
4668
|
let Ke = 0;
|
|
4669
4669
|
if (z) {
|
|
4670
|
-
|
|
4670
|
+
F ? Ke = U.current : Ke = jo(j, Oe), o && (Oe = Zt(Oe, j[Ke - 1] || -1 / 0, j[Ke + 1] || 1 / 0));
|
|
4671
4671
|
const Jt = Oe;
|
|
4672
4672
|
Oe = qo({
|
|
4673
4673
|
values: j,
|
|
4674
4674
|
newValue: Oe,
|
|
4675
4675
|
index: Ke
|
|
4676
|
-
}), o &&
|
|
4676
|
+
}), o && F || (Ke = Oe.indexOf(Jt), U.current = Ke);
|
|
4677
4677
|
}
|
|
4678
4678
|
return {
|
|
4679
4679
|
newValue: Oe,
|
|
4680
4680
|
activeIndex: Ke
|
|
4681
4681
|
};
|
|
4682
4682
|
}, de = Tr((R) => {
|
|
4683
|
-
const
|
|
4684
|
-
if (!
|
|
4683
|
+
const F = En(R, $);
|
|
4684
|
+
if (!F)
|
|
4685
4685
|
return;
|
|
4686
|
-
if (
|
|
4686
|
+
if (B.current += 1, R.type === "mousemove" && R.buttons === 0) {
|
|
4687
4687
|
P(R);
|
|
4688
4688
|
return;
|
|
4689
4689
|
}
|
|
@@ -4691,31 +4691,31 @@ function k0(e) {
|
|
|
4691
4691
|
newValue: H,
|
|
4692
4692
|
activeIndex: ae
|
|
4693
4693
|
} = te({
|
|
4694
|
-
finger:
|
|
4694
|
+
finger: F,
|
|
4695
4695
|
move: !0
|
|
4696
4696
|
});
|
|
4697
4697
|
On({
|
|
4698
4698
|
sliderRef: M,
|
|
4699
4699
|
activeIndex: ae,
|
|
4700
|
-
setActive:
|
|
4701
|
-
}), O(H), !L &&
|
|
4700
|
+
setActive: C
|
|
4701
|
+
}), O(H), !L && B.current > v0 && E(!0), T && !An(H, p) && T(R, H, ae);
|
|
4702
4702
|
}), P = Tr((R) => {
|
|
4703
|
-
const
|
|
4704
|
-
if (E(!1), !
|
|
4703
|
+
const F = En(R, $);
|
|
4704
|
+
if (E(!1), !F)
|
|
4705
4705
|
return;
|
|
4706
4706
|
const {
|
|
4707
4707
|
newValue: H
|
|
4708
4708
|
} = te({
|
|
4709
|
-
finger:
|
|
4709
|
+
finger: F,
|
|
4710
4710
|
move: !0
|
|
4711
4711
|
});
|
|
4712
|
-
|
|
4712
|
+
C(-1), R.type === "touchend" && N(-1), g && g(R, I.current ?? H), $.current = void 0, Ie();
|
|
4713
4713
|
}), se = Tr((R) => {
|
|
4714
4714
|
if (r)
|
|
4715
4715
|
return;
|
|
4716
4716
|
Wo() || R.preventDefault();
|
|
4717
|
-
const
|
|
4718
|
-
|
|
4717
|
+
const F = R.changedTouches[0];
|
|
4718
|
+
F != null && ($.current = F.identifier);
|
|
4719
4719
|
const H = En(R, $);
|
|
4720
4720
|
if (H !== !1) {
|
|
4721
4721
|
const {
|
|
@@ -4727,18 +4727,18 @@ function k0(e) {
|
|
|
4727
4727
|
On({
|
|
4728
4728
|
sliderRef: M,
|
|
4729
4729
|
activeIndex: X,
|
|
4730
|
-
setActive:
|
|
4730
|
+
setActive: C
|
|
4731
4731
|
}), O(be), T && !An(be, p) && T(R, be, X);
|
|
4732
4732
|
}
|
|
4733
|
-
|
|
4734
|
-
const ae =
|
|
4733
|
+
B.current = 0;
|
|
4734
|
+
const ae = Fn(M.current);
|
|
4735
4735
|
ae.addEventListener("touchmove", de, {
|
|
4736
4736
|
passive: !0
|
|
4737
4737
|
}), ae.addEventListener("touchend", P, {
|
|
4738
4738
|
passive: !0
|
|
4739
4739
|
});
|
|
4740
4740
|
}), Ie = Q.useCallback(() => {
|
|
4741
|
-
const R =
|
|
4741
|
+
const R = Fn(M.current);
|
|
4742
4742
|
R.removeEventListener("mousemove", de), R.removeEventListener("mouseup", P), R.removeEventListener("touchmove", de), R.removeEventListener("touchend", P);
|
|
4743
4743
|
}, [P, de]);
|
|
4744
4744
|
Q.useEffect(() => {
|
|
@@ -4753,12 +4753,12 @@ function k0(e) {
|
|
|
4753
4753
|
}, [Ie, se]), Q.useEffect(() => {
|
|
4754
4754
|
r && Ie();
|
|
4755
4755
|
}, [r, Ie]);
|
|
4756
|
-
const tt = (R) => (
|
|
4756
|
+
const tt = (R) => (F) => {
|
|
4757
4757
|
var be;
|
|
4758
|
-
if ((be = R.onMouseDown) == null || be.call(R,
|
|
4758
|
+
if ((be = R.onMouseDown) == null || be.call(R, F), r || F.defaultPrevented || F.button !== 0)
|
|
4759
4759
|
return;
|
|
4760
|
-
|
|
4761
|
-
const H = En(
|
|
4760
|
+
F.preventDefault();
|
|
4761
|
+
const H = En(F, $);
|
|
4762
4762
|
if (H !== !1) {
|
|
4763
4763
|
const {
|
|
4764
4764
|
newValue: X,
|
|
@@ -4769,19 +4769,19 @@ function k0(e) {
|
|
|
4769
4769
|
On({
|
|
4770
4770
|
sliderRef: M,
|
|
4771
4771
|
activeIndex: Me,
|
|
4772
|
-
setActive:
|
|
4773
|
-
}), O(X), T && !An(X, p) && T(
|
|
4772
|
+
setActive: C
|
|
4773
|
+
}), O(X), T && !An(X, p) && T(F, X, Me);
|
|
4774
4774
|
}
|
|
4775
|
-
|
|
4776
|
-
const ae =
|
|
4775
|
+
B.current = 0;
|
|
4776
|
+
const ae = Fn(M.current);
|
|
4777
4777
|
ae.addEventListener("mousemove", de, {
|
|
4778
4778
|
passive: !0
|
|
4779
4779
|
}), ae.addEventListener("mouseup", P);
|
|
4780
4780
|
}, q = Zn(z ? j[0] : c, c, l), re = Zn(j[j.length - 1], c, l) - q, we = (R = {}) => {
|
|
4781
|
-
const
|
|
4782
|
-
onMouseDown: tt(
|
|
4781
|
+
const F = Bn(R), H = {
|
|
4782
|
+
onMouseDown: tt(F || {})
|
|
4783
4783
|
}, ae = {
|
|
4784
|
-
...
|
|
4784
|
+
...F,
|
|
4785
4785
|
...H
|
|
4786
4786
|
};
|
|
4787
4787
|
return {
|
|
@@ -4789,51 +4789,51 @@ function k0(e) {
|
|
|
4789
4789
|
ref: ee,
|
|
4790
4790
|
...ae
|
|
4791
4791
|
};
|
|
4792
|
-
}, Ce = (R) => (
|
|
4792
|
+
}, Ce = (R) => (F) => {
|
|
4793
4793
|
var ae;
|
|
4794
|
-
(ae = R.onMouseOver) == null || ae.call(R,
|
|
4795
|
-
const H = Number(
|
|
4794
|
+
(ae = R.onMouseOver) == null || ae.call(R, F);
|
|
4795
|
+
const H = Number(F.currentTarget.getAttribute("data-index"));
|
|
4796
4796
|
N(H);
|
|
4797
|
-
}, Le = (R) => (
|
|
4797
|
+
}, Le = (R) => (F) => {
|
|
4798
4798
|
var H;
|
|
4799
|
-
(H = R.onMouseLeave) == null || H.call(R,
|
|
4799
|
+
(H = R.onMouseLeave) == null || H.call(R, F), N(-1);
|
|
4800
4800
|
}, qe = (R = {}) => {
|
|
4801
|
-
const
|
|
4802
|
-
onMouseOver: Ce(
|
|
4803
|
-
onMouseLeave: Le(
|
|
4801
|
+
const F = Bn(R), H = {
|
|
4802
|
+
onMouseOver: Ce(F || {}),
|
|
4803
|
+
onMouseLeave: Le(F || {})
|
|
4804
4804
|
};
|
|
4805
4805
|
return {
|
|
4806
4806
|
...R,
|
|
4807
|
-
...
|
|
4807
|
+
...F,
|
|
4808
4808
|
...H
|
|
4809
4809
|
};
|
|
4810
4810
|
}, Je = (R) => ({
|
|
4811
4811
|
// So the non active thumb doesn't show its label on hover.
|
|
4812
|
-
pointerEvents:
|
|
4812
|
+
pointerEvents: b !== -1 && b !== R ? "none" : void 0
|
|
4813
4813
|
});
|
|
4814
4814
|
let _e;
|
|
4815
4815
|
return y === "vertical" && (_e = s ? "vertical-rl" : "vertical-lr"), {
|
|
4816
|
-
active:
|
|
4816
|
+
active: b,
|
|
4817
4817
|
axis: oe,
|
|
4818
4818
|
axisProps: w0,
|
|
4819
4819
|
dragging: L,
|
|
4820
4820
|
focusedThumbIndex: ue,
|
|
4821
4821
|
getHiddenInputProps: (R = {}) => {
|
|
4822
|
-
const
|
|
4823
|
-
onChange: G(
|
|
4824
|
-
onFocus: K(
|
|
4825
|
-
onBlur: V(
|
|
4826
|
-
onKeyDown: ne(
|
|
4822
|
+
const F = Bn(R), H = {
|
|
4823
|
+
onChange: G(F || {}),
|
|
4824
|
+
onFocus: K(F || {}),
|
|
4825
|
+
onBlur: V(F || {}),
|
|
4826
|
+
onKeyDown: ne(F || {})
|
|
4827
4827
|
}, ae = {
|
|
4828
|
-
...
|
|
4828
|
+
...F,
|
|
4829
4829
|
...H
|
|
4830
4830
|
};
|
|
4831
4831
|
return {
|
|
4832
4832
|
tabIndex: x,
|
|
4833
4833
|
"aria-labelledby": t,
|
|
4834
4834
|
"aria-orientation": y,
|
|
4835
|
-
"aria-valuemax":
|
|
4836
|
-
"aria-valuemin":
|
|
4835
|
+
"aria-valuemax": v(l),
|
|
4836
|
+
"aria-valuemin": v(c),
|
|
4837
4837
|
name: d,
|
|
4838
4838
|
type: "range",
|
|
4839
4839
|
min: e.min,
|
|
@@ -4888,10 +4888,10 @@ function T0() {
|
|
|
4888
4888
|
if (Uo) return ge;
|
|
4889
4889
|
Uo = 1;
|
|
4890
4890
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), y = Symbol.for("react.view_transition"), m = Symbol.for("react.client.reference");
|
|
4891
|
-
function
|
|
4891
|
+
function v(f) {
|
|
4892
4892
|
if (typeof f == "object" && f !== null) {
|
|
4893
|
-
var
|
|
4894
|
-
switch (
|
|
4893
|
+
var _ = f.$$typeof;
|
|
4894
|
+
switch (_) {
|
|
4895
4895
|
case e:
|
|
4896
4896
|
switch (f = f.type, f) {
|
|
4897
4897
|
case n:
|
|
@@ -4911,41 +4911,41 @@ function T0() {
|
|
|
4911
4911
|
case s:
|
|
4912
4912
|
return f;
|
|
4913
4913
|
default:
|
|
4914
|
-
return
|
|
4914
|
+
return _;
|
|
4915
4915
|
}
|
|
4916
4916
|
}
|
|
4917
4917
|
case t:
|
|
4918
|
-
return
|
|
4918
|
+
return _;
|
|
4919
4919
|
}
|
|
4920
4920
|
}
|
|
4921
4921
|
}
|
|
4922
4922
|
return ge.ContextConsumer = s, ge.ContextProvider = a, ge.Element = e, ge.ForwardRef = l, ge.Fragment = n, ge.Lazy = g, ge.Memo = h, ge.Portal = t, ge.Profiler = o, ge.StrictMode = r, ge.Suspense = c, ge.SuspenseList = d, ge.isContextConsumer = function(f) {
|
|
4923
|
-
return
|
|
4923
|
+
return v(f) === s;
|
|
4924
4924
|
}, ge.isContextProvider = function(f) {
|
|
4925
|
-
return
|
|
4925
|
+
return v(f) === a;
|
|
4926
4926
|
}, ge.isElement = function(f) {
|
|
4927
4927
|
return typeof f == "object" && f !== null && f.$$typeof === e;
|
|
4928
4928
|
}, ge.isForwardRef = function(f) {
|
|
4929
|
-
return
|
|
4929
|
+
return v(f) === l;
|
|
4930
4930
|
}, ge.isFragment = function(f) {
|
|
4931
|
-
return
|
|
4931
|
+
return v(f) === n;
|
|
4932
4932
|
}, ge.isLazy = function(f) {
|
|
4933
|
-
return
|
|
4933
|
+
return v(f) === g;
|
|
4934
4934
|
}, ge.isMemo = function(f) {
|
|
4935
|
-
return
|
|
4935
|
+
return v(f) === h;
|
|
4936
4936
|
}, ge.isPortal = function(f) {
|
|
4937
|
-
return
|
|
4937
|
+
return v(f) === t;
|
|
4938
4938
|
}, ge.isProfiler = function(f) {
|
|
4939
|
-
return
|
|
4939
|
+
return v(f) === o;
|
|
4940
4940
|
}, ge.isStrictMode = function(f) {
|
|
4941
|
-
return
|
|
4941
|
+
return v(f) === r;
|
|
4942
4942
|
}, ge.isSuspense = function(f) {
|
|
4943
|
-
return
|
|
4943
|
+
return v(f) === c;
|
|
4944
4944
|
}, ge.isSuspenseList = function(f) {
|
|
4945
|
-
return
|
|
4945
|
+
return v(f) === d;
|
|
4946
4946
|
}, ge.isValidElementType = function(f) {
|
|
4947
4947
|
return typeof f == "string" || typeof f == "function" || f === n || f === o || f === r || f === c || f === d || typeof f == "object" && f !== null && (f.$$typeof === g || f.$$typeof === h || f.$$typeof === a || f.$$typeof === s || f.$$typeof === l || f.$$typeof === m || f.getModuleId !== void 0);
|
|
4948
|
-
}, ge.typeOf =
|
|
4948
|
+
}, ge.typeOf = v, ge;
|
|
4949
4949
|
}
|
|
4950
4950
|
var ye = {};
|
|
4951
4951
|
/**
|
|
@@ -4962,8 +4962,8 @@ function $0() {
|
|
|
4962
4962
|
return Zo || (Zo = 1, process.env.NODE_ENV !== "production" && function() {
|
|
4963
4963
|
function e(f) {
|
|
4964
4964
|
if (typeof f == "object" && f !== null) {
|
|
4965
|
-
var
|
|
4966
|
-
switch (
|
|
4965
|
+
var _ = f.$$typeof;
|
|
4966
|
+
switch (_) {
|
|
4967
4967
|
case t:
|
|
4968
4968
|
switch (f = f.type, f) {
|
|
4969
4969
|
case r:
|
|
@@ -4983,15 +4983,15 @@ function $0() {
|
|
|
4983
4983
|
case a:
|
|
4984
4984
|
return f;
|
|
4985
4985
|
default:
|
|
4986
|
-
return
|
|
4986
|
+
return _;
|
|
4987
4987
|
}
|
|
4988
4988
|
}
|
|
4989
4989
|
case n:
|
|
4990
|
-
return
|
|
4990
|
+
return _;
|
|
4991
4991
|
}
|
|
4992
4992
|
}
|
|
4993
4993
|
}
|
|
4994
|
-
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), m = Symbol.for("react.view_transition"),
|
|
4994
|
+
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), m = Symbol.for("react.view_transition"), v = Symbol.for("react.client.reference");
|
|
4995
4995
|
ye.ContextConsumer = a, ye.ContextProvider = l, ye.Element = t, ye.ForwardRef = c, ye.Fragment = r, ye.Lazy = y, ye.Memo = g, ye.Portal = n, ye.Profiler = s, ye.StrictMode = o, ye.Suspense = d, ye.SuspenseList = h, ye.isContextConsumer = function(f) {
|
|
4996
4996
|
return e(f) === a;
|
|
4997
4997
|
}, ye.isContextProvider = function(f) {
|
|
@@ -5017,7 +5017,7 @@ function $0() {
|
|
|
5017
5017
|
}, ye.isSuspenseList = function(f) {
|
|
5018
5018
|
return e(f) === h;
|
|
5019
5019
|
}, ye.isValidElementType = function(f) {
|
|
5020
|
-
return typeof f == "string" || typeof f == "function" || f === r || f === s || f === o || f === d || f === h || typeof f == "object" && f !== null && (f.$$typeof === y || f.$$typeof === g || f.$$typeof === l || f.$$typeof === a || f.$$typeof === c || f.$$typeof ===
|
|
5020
|
+
return typeof f == "string" || typeof f == "function" || f === r || f === s || f === o || f === d || f === h || typeof f == "object" && f !== null && (f.$$typeof === y || f.$$typeof === g || f.$$typeof === l || f.$$typeof === a || f.$$typeof === c || f.$$typeof === v || f.getModuleId !== void 0);
|
|
5021
5021
|
}, ye.typeOf = e;
|
|
5022
5022
|
}()), ye;
|
|
5023
5023
|
}
|
|
@@ -5249,18 +5249,18 @@ function to(e) {
|
|
|
5249
5249
|
function yn(e, t) {
|
|
5250
5250
|
return typeof t == "string" || t == null ? t : e(t);
|
|
5251
5251
|
}
|
|
5252
|
-
function
|
|
5252
|
+
function B0(e, t) {
|
|
5253
5253
|
return (n) => e.reduce((r, o) => (r[o] = yn(t, n), r), {});
|
|
5254
5254
|
}
|
|
5255
|
-
function
|
|
5255
|
+
function F0(e, t, n, r) {
|
|
5256
5256
|
if (!t.includes(n))
|
|
5257
5257
|
return null;
|
|
5258
|
-
const o = P0(n), s =
|
|
5258
|
+
const o = P0(n), s = B0(o, r), a = e[n];
|
|
5259
5259
|
return dt(e, a, s);
|
|
5260
5260
|
}
|
|
5261
5261
|
function cs(e, t) {
|
|
5262
5262
|
const n = to(e.theme);
|
|
5263
|
-
return Object.keys(e).map((r) =>
|
|
5263
|
+
return Object.keys(e).map((r) => F0(e, t, r, n)).reduce(fn, {});
|
|
5264
5264
|
}
|
|
5265
5265
|
function ke(e) {
|
|
5266
5266
|
return cs(e, er);
|
|
@@ -5749,9 +5749,9 @@ function v2() {
|
|
|
5749
5749
|
[n]: r
|
|
5750
5750
|
};
|
|
5751
5751
|
const y = Jn(o, d) || {};
|
|
5752
|
-
return g ? g(a) : dt(a, r, (
|
|
5753
|
-
let f = Kn(y, h,
|
|
5754
|
-
return
|
|
5752
|
+
return g ? g(a) : dt(a, r, (v) => {
|
|
5753
|
+
let f = Kn(y, h, v);
|
|
5754
|
+
return v === f && typeof v == "string" && (f = Kn(y, h, `${n}${v === "default" ? "" : et(v)}`, v)), c === !1 ? f : {
|
|
5755
5755
|
[c]: f
|
|
5756
5756
|
};
|
|
5757
5757
|
});
|
|
@@ -5776,25 +5776,25 @@ function v2() {
|
|
|
5776
5776
|
const h = M0(o.breakpoints), g = Object.keys(h);
|
|
5777
5777
|
let y = h;
|
|
5778
5778
|
return Object.keys(d).forEach((m) => {
|
|
5779
|
-
const
|
|
5780
|
-
if (
|
|
5781
|
-
if (typeof
|
|
5779
|
+
const v = b2(d[m], o);
|
|
5780
|
+
if (v != null)
|
|
5781
|
+
if (typeof v == "object")
|
|
5782
5782
|
if (a[m])
|
|
5783
|
-
y = fn(y, e(m,
|
|
5783
|
+
y = fn(y, e(m, v, o, a));
|
|
5784
5784
|
else {
|
|
5785
5785
|
const f = dt({
|
|
5786
5786
|
theme: o
|
|
5787
|
-
},
|
|
5788
|
-
[m]:
|
|
5787
|
+
}, v, (_) => ({
|
|
5788
|
+
[m]: _
|
|
5789
5789
|
}));
|
|
5790
|
-
y2(f,
|
|
5791
|
-
sx:
|
|
5790
|
+
y2(f, v) ? y[m] = t({
|
|
5791
|
+
sx: v,
|
|
5792
5792
|
theme: o,
|
|
5793
5793
|
nested: !0
|
|
5794
5794
|
}) : y = fn(y, f);
|
|
5795
5795
|
}
|
|
5796
5796
|
else
|
|
5797
|
-
y = fn(y, e(m,
|
|
5797
|
+
y = fn(y, e(m, v, o, a));
|
|
5798
5798
|
}), !s && o.modularCssLayers ? {
|
|
5799
5799
|
"@layer sx": Ko(o, Yo(g, y))
|
|
5800
5800
|
} : Ko(o, Yo(g, y));
|
|
@@ -6053,8 +6053,8 @@ function O2(e) {
|
|
|
6053
6053
|
return `@media (max-width:${(typeof t[y] == "number" ? t[y] : y) - r / 100}${n})`;
|
|
6054
6054
|
}
|
|
6055
6055
|
function d(y, m) {
|
|
6056
|
-
const
|
|
6057
|
-
return `@media (min-width:${typeof t[y] == "number" ? t[y] : y}${n}) and (max-width:${(
|
|
6056
|
+
const v = a.indexOf(m);
|
|
6057
|
+
return `@media (min-width:${typeof t[y] == "number" ? t[y] : y}${n}) and (max-width:${(v !== -1 && typeof t[a[v]] == "number" ? t[a[v]] : m) - r / 100}${n})`;
|
|
6058
6058
|
}
|
|
6059
6059
|
function h(y) {
|
|
6060
6060
|
return a.indexOf(y) + 1 < a.length ? d(y, a[a.indexOf(y) + 1]) : l(y);
|
|
@@ -6216,10 +6216,10 @@ function Nr(e) {
|
|
|
6216
6216
|
function $t(e, t) {
|
|
6217
6217
|
return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
|
|
6218
6218
|
}
|
|
6219
|
-
function
|
|
6219
|
+
function B2(e) {
|
|
6220
6220
|
return e ? (t, n) => n[e] : null;
|
|
6221
6221
|
}
|
|
6222
|
-
function
|
|
6222
|
+
function F2(e, t, n) {
|
|
6223
6223
|
e.theme = W2(e.theme) ? n : e.theme[t] || e.theme;
|
|
6224
6224
|
}
|
|
6225
6225
|
function zn(e, t, n) {
|
|
@@ -6273,7 +6273,7 @@ function z2(e = {}) {
|
|
|
6273
6273
|
slotShouldForwardProp: o = Nr
|
|
6274
6274
|
} = e;
|
|
6275
6275
|
function s(l) {
|
|
6276
|
-
|
|
6276
|
+
F2(l, t, n);
|
|
6277
6277
|
}
|
|
6278
6278
|
return (l, c = {}) => {
|
|
6279
6279
|
N2(l, (w) => w.filter((N) => N !== Gt));
|
|
@@ -6284,9 +6284,9 @@ function z2(e = {}) {
|
|
|
6284
6284
|
skipSx: y,
|
|
6285
6285
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
6286
6286
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
6287
|
-
overridesResolver: m =
|
|
6288
|
-
...
|
|
6289
|
-
} = c, f = d && d.startsWith("Mui") || h ? "components" : "custom",
|
|
6287
|
+
overridesResolver: m = B2(gs(h)),
|
|
6288
|
+
...v
|
|
6289
|
+
} = c, f = d && d.startsWith("Mui") || h ? "components" : "custom", _ = g !== void 0 ? g : (
|
|
6290
6290
|
// TODO v6: remove `Root` in the next major release
|
|
6291
6291
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
6292
6292
|
h && h !== "Root" && h !== "root" || !1
|
|
@@ -6296,8 +6296,8 @@ function z2(e = {}) {
|
|
|
6296
6296
|
const $ = $2(l, {
|
|
6297
6297
|
shouldForwardProp: S,
|
|
6298
6298
|
label: q2(d, h),
|
|
6299
|
-
...
|
|
6300
|
-
}),
|
|
6299
|
+
...v
|
|
6300
|
+
}), b = (w) => {
|
|
6301
6301
|
if (w.__emotion_real === w)
|
|
6302
6302
|
return w;
|
|
6303
6303
|
if (typeof w == "function")
|
|
@@ -6311,8 +6311,8 @@ function z2(e = {}) {
|
|
|
6311
6311
|
};
|
|
6312
6312
|
}
|
|
6313
6313
|
return w;
|
|
6314
|
-
},
|
|
6315
|
-
const N = [], L = w.map(
|
|
6314
|
+
}, C = (...w) => {
|
|
6315
|
+
const N = [], L = w.map(b), E = [];
|
|
6316
6316
|
if (N.push(s), d && m && E.push(function(O) {
|
|
6317
6317
|
var Y, W;
|
|
6318
6318
|
const z = (W = (Y = O.theme.components) == null ? void 0 : Y[d]) == null ? void 0 : W.styleOverrides;
|
|
@@ -6322,7 +6322,7 @@ function z2(e = {}) {
|
|
|
6322
6322
|
for (const ue in z)
|
|
6323
6323
|
j[ue] = zn(O, z[ue], O.theme.modularCssLayers ? "theme" : void 0);
|
|
6324
6324
|
return m(O, j);
|
|
6325
|
-
}), d && !
|
|
6325
|
+
}), d && !_ && E.push(function(O) {
|
|
6326
6326
|
var j, Y;
|
|
6327
6327
|
const T = O.theme, z = (Y = (j = T == null ? void 0 : T.components) == null ? void 0 : j[d]) == null ? void 0 : Y.variants;
|
|
6328
6328
|
return z ? hs(O, z, [], O.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
@@ -6331,10 +6331,10 @@ function z2(e = {}) {
|
|
|
6331
6331
|
let z;
|
|
6332
6332
|
z = [...O, ...p, ...T], z.raw = [...O, ...p.raw, ...T], N.unshift(z);
|
|
6333
6333
|
}
|
|
6334
|
-
const
|
|
6334
|
+
const B = [...N, ...L, ...E], I = $(...B);
|
|
6335
6335
|
return l.muiName && (I.muiName = l.muiName), process.env.NODE_ENV !== "production" && (I.displayName = j2(d, h, l)), I;
|
|
6336
6336
|
};
|
|
6337
|
-
return $.withConfig && (
|
|
6337
|
+
return $.withConfig && (C.withConfig = $.withConfig), C;
|
|
6338
6338
|
};
|
|
6339
6339
|
}
|
|
6340
6340
|
function j2(e, t, n) {
|
|
@@ -6616,63 +6616,63 @@ function n1(e, t = {}) {
|
|
|
6616
6616
|
varsWithDefaults: y
|
|
6617
6617
|
} = Er(d, t);
|
|
6618
6618
|
let m = y;
|
|
6619
|
-
const
|
|
6619
|
+
const v = {}, {
|
|
6620
6620
|
[c]: f,
|
|
6621
|
-
...
|
|
6621
|
+
..._
|
|
6622
6622
|
} = a;
|
|
6623
|
-
if (Object.entries(
|
|
6623
|
+
if (Object.entries(_ || {}).forEach(([b, C]) => {
|
|
6624
6624
|
const {
|
|
6625
6625
|
vars: w,
|
|
6626
6626
|
css: N,
|
|
6627
6627
|
varsWithDefaults: L
|
|
6628
|
-
} = Er(
|
|
6629
|
-
m = He(m, L), b
|
|
6628
|
+
} = Er(C, t);
|
|
6629
|
+
m = He(m, L), v[b] = {
|
|
6630
6630
|
css: N,
|
|
6631
6631
|
vars: w
|
|
6632
6632
|
};
|
|
6633
6633
|
}), f) {
|
|
6634
6634
|
const {
|
|
6635
|
-
css:
|
|
6636
|
-
vars:
|
|
6635
|
+
css: b,
|
|
6636
|
+
vars: C,
|
|
6637
6637
|
varsWithDefaults: w
|
|
6638
6638
|
} = Er(f, t);
|
|
6639
|
-
m = He(m, w),
|
|
6640
|
-
css:
|
|
6641
|
-
vars:
|
|
6639
|
+
m = He(m, w), v[c] = {
|
|
6640
|
+
css: b,
|
|
6641
|
+
vars: C
|
|
6642
6642
|
};
|
|
6643
6643
|
}
|
|
6644
|
-
function x(
|
|
6644
|
+
function x(b, C) {
|
|
6645
6645
|
var N, L;
|
|
6646
6646
|
let w = o;
|
|
6647
|
-
if (o === "class" && (w = ".%s"), o === "data" && (w = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (w = `[${o}="%s"]`),
|
|
6647
|
+
if (o === "class" && (w = ".%s"), o === "data" && (w = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (w = `[${o}="%s"]`), b) {
|
|
6648
6648
|
if (w === "media")
|
|
6649
|
-
return e.defaultColorScheme ===
|
|
6650
|
-
[`@media (prefers-color-scheme: ${((L = (N = a[
|
|
6651
|
-
":root":
|
|
6649
|
+
return e.defaultColorScheme === b ? ":root" : {
|
|
6650
|
+
[`@media (prefers-color-scheme: ${((L = (N = a[b]) == null ? void 0 : N.palette) == null ? void 0 : L.mode) || b})`]: {
|
|
6651
|
+
":root": C
|
|
6652
6652
|
}
|
|
6653
6653
|
};
|
|
6654
6654
|
if (w)
|
|
6655
|
-
return e.defaultColorScheme ===
|
|
6655
|
+
return e.defaultColorScheme === b ? `:root, ${w.replace("%s", String(b))}` : w.replace("%s", String(b));
|
|
6656
6656
|
}
|
|
6657
6657
|
return ":root";
|
|
6658
6658
|
}
|
|
6659
6659
|
return {
|
|
6660
6660
|
vars: m,
|
|
6661
6661
|
generateThemeVars: () => {
|
|
6662
|
-
let
|
|
6662
|
+
let b = {
|
|
6663
6663
|
...h
|
|
6664
6664
|
};
|
|
6665
|
-
return Object.entries(
|
|
6666
|
-
vars:
|
|
6665
|
+
return Object.entries(v).forEach(([, {
|
|
6666
|
+
vars: C
|
|
6667
6667
|
}]) => {
|
|
6668
|
-
|
|
6669
|
-
}),
|
|
6668
|
+
b = He(b, C);
|
|
6669
|
+
}), b;
|
|
6670
6670
|
},
|
|
6671
6671
|
generateStyleSheets: () => {
|
|
6672
|
-
var E,
|
|
6673
|
-
const
|
|
6672
|
+
var E, B;
|
|
6673
|
+
const b = [], C = e.defaultColorScheme || "light";
|
|
6674
6674
|
function w(I, p) {
|
|
6675
|
-
Object.keys(p).length &&
|
|
6675
|
+
Object.keys(p).length && b.push(typeof I == "string" ? {
|
|
6676
6676
|
[I]: {
|
|
6677
6677
|
...p
|
|
6678
6678
|
}
|
|
@@ -6682,19 +6682,19 @@ function n1(e, t = {}) {
|
|
|
6682
6682
|
...g
|
|
6683
6683
|
}), g);
|
|
6684
6684
|
const {
|
|
6685
|
-
[
|
|
6685
|
+
[C]: N,
|
|
6686
6686
|
...L
|
|
6687
|
-
} =
|
|
6687
|
+
} = v;
|
|
6688
6688
|
if (N) {
|
|
6689
6689
|
const {
|
|
6690
6690
|
css: I
|
|
6691
|
-
} = N, p = (
|
|
6691
|
+
} = N, p = (B = (E = a[C]) == null ? void 0 : E.palette) == null ? void 0 : B.mode, O = !r && p ? {
|
|
6692
6692
|
colorScheme: p,
|
|
6693
6693
|
...I
|
|
6694
6694
|
} : {
|
|
6695
6695
|
...I
|
|
6696
6696
|
};
|
|
6697
|
-
w(n(
|
|
6697
|
+
w(n(C, {
|
|
6698
6698
|
...O
|
|
6699
6699
|
}), O);
|
|
6700
6700
|
}
|
|
@@ -6711,7 +6711,7 @@ function n1(e, t = {}) {
|
|
|
6711
6711
|
w(n(I, {
|
|
6712
6712
|
...T
|
|
6713
6713
|
}), T);
|
|
6714
|
-
}), s &&
|
|
6714
|
+
}), s && b.push({
|
|
6715
6715
|
":root": {
|
|
6716
6716
|
// use double underscore to indicate that these are private variables
|
|
6717
6717
|
"--__l-threshold": "0.7",
|
|
@@ -6719,7 +6719,7 @@ function n1(e, t = {}) {
|
|
|
6719
6719
|
"--__a": "clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"
|
|
6720
6720
|
// 0.87 is the default alpha value for black text.
|
|
6721
6721
|
}
|
|
6722
|
-
}),
|
|
6722
|
+
}), b;
|
|
6723
6723
|
}
|
|
6724
6724
|
};
|
|
6725
6725
|
}
|
|
@@ -6753,7 +6753,7 @@ const mn = {
|
|
|
6753
6753
|
400: "#ab47bc",
|
|
6754
6754
|
500: "#9c27b0",
|
|
6755
6755
|
700: "#7b1fa2"
|
|
6756
|
-
},
|
|
6756
|
+
}, Bt = {
|
|
6757
6757
|
300: "#e57373",
|
|
6758
6758
|
400: "#ef5350",
|
|
6759
6759
|
500: "#f44336",
|
|
@@ -6765,7 +6765,7 @@ const mn = {
|
|
|
6765
6765
|
500: "#ff9800",
|
|
6766
6766
|
700: "#f57c00",
|
|
6767
6767
|
900: "#e65100"
|
|
6768
|
-
},
|
|
6768
|
+
}, Ft = {
|
|
6769
6769
|
50: "#e3f2fd",
|
|
6770
6770
|
200: "#90caf9",
|
|
6771
6771
|
400: "#42a5f5",
|
|
@@ -6865,13 +6865,13 @@ function li(e, t, n, r, o) {
|
|
|
6865
6865
|
}
|
|
6866
6866
|
function i1(e = "light") {
|
|
6867
6867
|
return e === "dark" ? {
|
|
6868
|
-
main:
|
|
6869
|
-
light:
|
|
6870
|
-
dark:
|
|
6868
|
+
main: Ft[200],
|
|
6869
|
+
light: Ft[50],
|
|
6870
|
+
dark: Ft[400]
|
|
6871
6871
|
} : {
|
|
6872
|
-
main:
|
|
6873
|
-
light:
|
|
6874
|
-
dark:
|
|
6872
|
+
main: Ft[700],
|
|
6873
|
+
light: Ft[400],
|
|
6874
|
+
dark: Ft[800]
|
|
6875
6875
|
};
|
|
6876
6876
|
}
|
|
6877
6877
|
function s1(e = "light") {
|
|
@@ -6887,13 +6887,13 @@ function s1(e = "light") {
|
|
|
6887
6887
|
}
|
|
6888
6888
|
function a1(e = "light") {
|
|
6889
6889
|
return e === "dark" ? {
|
|
6890
|
-
main:
|
|
6891
|
-
light:
|
|
6892
|
-
dark:
|
|
6890
|
+
main: Bt[500],
|
|
6891
|
+
light: Bt[300],
|
|
6892
|
+
dark: Bt[700]
|
|
6893
6893
|
} : {
|
|
6894
|
-
main:
|
|
6895
|
-
light:
|
|
6896
|
-
dark:
|
|
6894
|
+
main: Bt[700],
|
|
6895
|
+
light: Bt[400],
|
|
6896
|
+
dark: Bt[800]
|
|
6897
6897
|
};
|
|
6898
6898
|
}
|
|
6899
6899
|
function l1(e = "light") {
|
|
@@ -6941,32 +6941,32 @@ function io(e) {
|
|
|
6941
6941
|
colorSpace: o,
|
|
6942
6942
|
...s
|
|
6943
6943
|
} = e, a = e.primary || i1(t), l = e.secondary || s1(t), c = e.error || a1(t), d = e.info || l1(t), h = e.success || c1(t), g = e.warning || u1(t);
|
|
6944
|
-
function y(
|
|
6944
|
+
function y(_) {
|
|
6945
6945
|
if (o)
|
|
6946
|
-
return d1(
|
|
6947
|
-
const x = oi(
|
|
6946
|
+
return d1(_);
|
|
6947
|
+
const x = oi(_, Ur.text.primary) >= n ? Ur.text.primary : Cs.text.primary;
|
|
6948
6948
|
if (process.env.NODE_ENV !== "production") {
|
|
6949
|
-
const S = oi(
|
|
6950
|
-
S < 3 && console.error([`MUI: The contrast ratio of ${S}:1 for ${x} on ${
|
|
6949
|
+
const S = oi(_, x);
|
|
6950
|
+
S < 3 && console.error([`MUI: The contrast ratio of ${S}:1 for ${x} on ${_}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
6951
6951
|
`));
|
|
6952
6952
|
}
|
|
6953
6953
|
return x;
|
|
6954
6954
|
}
|
|
6955
6955
|
const m = ({
|
|
6956
|
-
color:
|
|
6956
|
+
color: _,
|
|
6957
6957
|
name: x,
|
|
6958
6958
|
mainShade: S = 500,
|
|
6959
6959
|
lightShade: $ = 300,
|
|
6960
|
-
darkShade:
|
|
6960
|
+
darkShade: b = 700
|
|
6961
6961
|
}) => {
|
|
6962
|
-
if (
|
|
6963
|
-
...
|
|
6964
|
-
}, !
|
|
6962
|
+
if (_ = {
|
|
6963
|
+
..._
|
|
6964
|
+
}, !_.main && _[S] && (_.main = _[S]), !_.hasOwnProperty("main"))
|
|
6965
6965
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
|
|
6966
6966
|
The color object needs to have a \`main\` property or a \`${S}\` property.` : Et(11, x ? ` (${x})` : "", S));
|
|
6967
|
-
if (typeof
|
|
6967
|
+
if (typeof _.main != "string")
|
|
6968
6968
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
|
|
6969
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
6969
|
+
\`color.main\` should be a string, but \`${JSON.stringify(_.main)}\` was provided instead.
|
|
6970
6970
|
|
|
6971
6971
|
Did you intend to use one of the following approaches?
|
|
6972
6972
|
|
|
@@ -6978,11 +6978,11 @@ const theme1 = createTheme({ palette: {
|
|
|
6978
6978
|
|
|
6979
6979
|
const theme2 = createTheme({ palette: {
|
|
6980
6980
|
primary: { main: green[500] },
|
|
6981
|
-
} });` : Et(12, x ? ` (${x})` : "", JSON.stringify(
|
|
6982
|
-
return o ? (li(o,
|
|
6981
|
+
} });` : Et(12, x ? ` (${x})` : "", JSON.stringify(_.main)));
|
|
6982
|
+
return o ? (li(o, _, "light", $, r), li(o, _, "dark", b, r)) : (ai(_, "light", $, r), ai(_, "dark", b, r)), _.contrastText || (_.contrastText = y(_.main)), _;
|
|
6983
6983
|
};
|
|
6984
|
-
let
|
|
6985
|
-
return t === "light" ?
|
|
6984
|
+
let v;
|
|
6985
|
+
return t === "light" ? v = vs() : t === "dark" && (v = _s()), process.env.NODE_ENV !== "production" && (v || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), He({
|
|
6986
6986
|
// A collection of common colors.
|
|
6987
6987
|
common: {
|
|
6988
6988
|
...mn
|
|
@@ -7037,7 +7037,7 @@ const theme2 = createTheme({ palette: {
|
|
|
7037
7037
|
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
7038
7038
|
tonalOffset: r,
|
|
7039
7039
|
// The light and dark mode object.
|
|
7040
|
-
...
|
|
7040
|
+
...v
|
|
7041
7041
|
}, s);
|
|
7042
7042
|
}
|
|
7043
7043
|
function f1(e) {
|
|
@@ -7088,9 +7088,9 @@ function h1(e, t) {
|
|
|
7088
7088
|
...g
|
|
7089
7089
|
} = typeof t == "function" ? t(e) : t;
|
|
7090
7090
|
process.env.NODE_ENV !== "production" && (typeof r != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof c != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
7091
|
-
const y = r / 14, m = h || ((
|
|
7091
|
+
const y = r / 14, m = h || ((_) => `${_ / c * y}rem`), v = (_, x, S, $, b) => ({
|
|
7092
7092
|
fontFamily: n,
|
|
7093
|
-
fontWeight:
|
|
7093
|
+
fontWeight: _,
|
|
7094
7094
|
fontSize: m(x),
|
|
7095
7095
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
7096
7096
|
lineHeight: S,
|
|
@@ -7099,22 +7099,22 @@ function h1(e, t) {
|
|
|
7099
7099
|
...n === ui ? {
|
|
7100
7100
|
letterSpacing: `${m1($ / x)}em`
|
|
7101
7101
|
} : {},
|
|
7102
|
-
...
|
|
7102
|
+
...b,
|
|
7103
7103
|
...d
|
|
7104
7104
|
}), f = {
|
|
7105
|
-
h1:
|
|
7106
|
-
h2:
|
|
7107
|
-
h3:
|
|
7108
|
-
h4:
|
|
7109
|
-
h5:
|
|
7110
|
-
h6:
|
|
7111
|
-
subtitle1:
|
|
7112
|
-
subtitle2:
|
|
7113
|
-
body1:
|
|
7114
|
-
body2:
|
|
7115
|
-
button:
|
|
7116
|
-
caption:
|
|
7117
|
-
overline:
|
|
7105
|
+
h1: v(o, 96, 1.167, -1.5),
|
|
7106
|
+
h2: v(o, 60, 1.2, -0.5),
|
|
7107
|
+
h3: v(s, 48, 1.167, 0),
|
|
7108
|
+
h4: v(s, 34, 1.235, 0.25),
|
|
7109
|
+
h5: v(s, 24, 1.334, 0),
|
|
7110
|
+
h6: v(a, 20, 1.6, 0.15),
|
|
7111
|
+
subtitle1: v(s, 16, 1.75, 0.15),
|
|
7112
|
+
subtitle2: v(a, 14, 1.57, 0.1),
|
|
7113
|
+
body1: v(s, 16, 1.5, 0.15),
|
|
7114
|
+
body2: v(s, 14, 1.43, 0.15),
|
|
7115
|
+
button: v(a, 14, 1.75, 0.4, ci),
|
|
7116
|
+
caption: v(s, 12, 1.66, 0.4),
|
|
7117
|
+
overline: v(s, 12, 2.66, 1, ci),
|
|
7118
7118
|
// TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
|
|
7119
7119
|
inherit: {
|
|
7120
7120
|
fontFamily: "inherit",
|
|
@@ -7300,28 +7300,28 @@ function Zr(e = {}, ...t) {
|
|
|
7300
7300
|
...S1
|
|
7301
7301
|
}
|
|
7302
7302
|
});
|
|
7303
|
-
if (m = He(m, h), m = t.reduce((
|
|
7304
|
-
const
|
|
7303
|
+
if (m = He(m, h), m = t.reduce((v, f) => He(v, f), m), process.env.NODE_ENV !== "production") {
|
|
7304
|
+
const v = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (_, x) => {
|
|
7305
7305
|
let S;
|
|
7306
|
-
for (S in
|
|
7307
|
-
const $ =
|
|
7308
|
-
if (
|
|
7306
|
+
for (S in _) {
|
|
7307
|
+
const $ = _[S];
|
|
7308
|
+
if (v.includes(S) && Object.keys($).length > 0) {
|
|
7309
7309
|
if (process.env.NODE_ENV !== "production") {
|
|
7310
|
-
const
|
|
7311
|
-
console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${S}\` internal state.`, "You can not override it like this: ", JSON.stringify(
|
|
7310
|
+
const b = ro("", S);
|
|
7311
|
+
console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${S}\` internal state.`, "You can not override it like this: ", JSON.stringify(_, null, 2), "", `Instead, you need to use the '&.${b}' syntax:`, JSON.stringify({
|
|
7312
7312
|
root: {
|
|
7313
|
-
[`&.${
|
|
7313
|
+
[`&.${b}`]: $
|
|
7314
7314
|
}
|
|
7315
7315
|
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
7316
7316
|
`));
|
|
7317
7317
|
}
|
|
7318
|
-
|
|
7318
|
+
_[S] = {};
|
|
7319
7319
|
}
|
|
7320
7320
|
}
|
|
7321
7321
|
};
|
|
7322
|
-
Object.keys(m.components).forEach((
|
|
7323
|
-
const x = m.components[
|
|
7324
|
-
x &&
|
|
7322
|
+
Object.keys(m.components).forEach((_) => {
|
|
7323
|
+
const x = m.components[_].styleOverrides;
|
|
7324
|
+
x && _.startsWith("Mui") && f(x, _);
|
|
7325
7325
|
});
|
|
7326
7326
|
}
|
|
7327
7327
|
return m.unstable_sxConfig = {
|
|
@@ -7496,31 +7496,31 @@ function P1(e = {}, ...t) {
|
|
|
7496
7496
|
rootSelector: d = ":root",
|
|
7497
7497
|
...h
|
|
7498
7498
|
} = e, g = Object.keys(n)[0], y = r || (n.light && g !== "light" ? "light" : g), m = I1(s), {
|
|
7499
|
-
[y]:
|
|
7499
|
+
[y]: v,
|
|
7500
7500
|
light: f,
|
|
7501
|
-
dark:
|
|
7501
|
+
dark: _,
|
|
7502
7502
|
...x
|
|
7503
7503
|
} = n, S = {
|
|
7504
7504
|
...x
|
|
7505
7505
|
};
|
|
7506
|
-
let $ =
|
|
7506
|
+
let $ = v;
|
|
7507
7507
|
if ((y === "dark" && !("dark" in n) || y === "light" && !("light" in n)) && ($ = !0), !$)
|
|
7508
7508
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${y}\` option is either missing or invalid.` : Et(21, y));
|
|
7509
|
-
let
|
|
7510
|
-
a && (
|
|
7511
|
-
const
|
|
7512
|
-
f && !S.light && Or(
|
|
7509
|
+
let b;
|
|
7510
|
+
a && (b = "oklch");
|
|
7511
|
+
const C = Or(b, S, $, h, y);
|
|
7512
|
+
f && !S.light && Or(b, S, f, void 0, "light"), _ && !S.dark && Or(b, S, _, void 0, "dark");
|
|
7513
7513
|
let w = {
|
|
7514
7514
|
defaultColorScheme: y,
|
|
7515
|
-
...
|
|
7515
|
+
...C,
|
|
7516
7516
|
cssVarPrefix: s,
|
|
7517
7517
|
colorSchemeSelector: c,
|
|
7518
7518
|
rootSelector: d,
|
|
7519
7519
|
getCssVar: m,
|
|
7520
7520
|
colorSchemes: S,
|
|
7521
7521
|
font: {
|
|
7522
|
-
...f1(
|
|
7523
|
-
...
|
|
7522
|
+
...f1(C.typography),
|
|
7523
|
+
...C.font
|
|
7524
7524
|
},
|
|
7525
7525
|
spacing: D1(h.spacing)
|
|
7526
7526
|
};
|
|
@@ -7531,21 +7531,21 @@ function P1(e = {}, ...t) {
|
|
|
7531
7531
|
};
|
|
7532
7532
|
p.mode === "light" && (A(p.common, "background", "#fff"), A(p.common, "onBackground", "#000")), p.mode === "dark" && (A(p.common, "background", "#000"), A(p.common, "onBackground", "#fff"));
|
|
7533
7533
|
function T(z, j, Y) {
|
|
7534
|
-
if (
|
|
7534
|
+
if (b) {
|
|
7535
7535
|
let W;
|
|
7536
|
-
return z === St && (W = `transparent ${((1 - Y) * 100).toFixed(0)}%`), z === me && (W = `#000 ${(Y * 100).toFixed(0)}%`), z === he && (W = `#fff ${(Y * 100).toFixed(0)}%`), `color-mix(in ${
|
|
7536
|
+
return z === St && (W = `transparent ${((1 - Y) * 100).toFixed(0)}%`), z === me && (W = `#000 ${(Y * 100).toFixed(0)}%`), z === he && (W = `#fff ${(Y * 100).toFixed(0)}%`), `color-mix(in ${b}, ${j}, ${W})`;
|
|
7537
7537
|
}
|
|
7538
7538
|
return z(j, Y);
|
|
7539
7539
|
}
|
|
7540
7540
|
if (R1(p, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), p.mode === "light") {
|
|
7541
|
-
A(p.Alert, "errorColor", T(me, a ? m("palette-error-light") : p.error.light, 0.6)), A(p.Alert, "infoColor", T(me, a ? m("palette-info-light") : p.info.light, 0.6)), A(p.Alert, "successColor", T(me, a ? m("palette-success-light") : p.success.light, 0.6)), A(p.Alert, "warningColor", T(me, a ? m("palette-warning-light") : p.warning.light, 0.6)), A(p.Alert, "errorFilledBg", O("palette-error-main")), A(p.Alert, "infoFilledBg", O("palette-info-main")), A(p.Alert, "successFilledBg", O("palette-success-main")), A(p.Alert, "warningFilledBg", O("palette-warning-main")), A(p.Alert, "errorFilledColor", nt(() => p.getContrastText(p.error.main))), A(p.Alert, "infoFilledColor", nt(() => p.getContrastText(p.info.main))), A(p.Alert, "successFilledColor", nt(() => p.getContrastText(p.success.main))), A(p.Alert, "warningFilledColor", nt(() => p.getContrastText(p.warning.main))), A(p.Alert, "errorStandardBg", T(he, a ? m("palette-error-light") : p.error.light, 0.9)), A(p.Alert, "infoStandardBg", T(he, a ? m("palette-info-light") : p.info.light, 0.9)), A(p.Alert, "successStandardBg", T(he, a ? m("palette-success-light") : p.success.light, 0.9)), A(p.Alert, "warningStandardBg", T(he, a ? m("palette-warning-light") : p.warning.light, 0.9)), A(p.Alert, "errorIconColor", O("palette-error-main")), A(p.Alert, "infoIconColor", O("palette-info-main")), A(p.Alert, "successIconColor", O("palette-success-main")), A(p.Alert, "warningIconColor", O("palette-warning-main")), A(p.AppBar, "defaultBg", O("palette-grey-100")), A(p.Avatar, "defaultBg", O("palette-grey-400")), A(p.Button, "inheritContainedBg", O("palette-grey-300")), A(p.Button, "inheritContainedHoverBg", O("palette-grey-A100")), A(p.Chip, "defaultBorder", O("palette-grey-400")), A(p.Chip, "defaultAvatarColor", O("palette-grey-700")), A(p.Chip, "defaultIconColor", O("palette-grey-700")), A(p.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), A(p.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), A(p.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), A(p.LinearProgress, "primaryBg", T(he, a ? m("palette-primary-main") : p.primary.main, 0.62)), A(p.LinearProgress, "secondaryBg", T(he, a ? m("palette-secondary-main") : p.secondary.main, 0.62)), A(p.LinearProgress, "errorBg", T(he, a ? m("palette-error-main") : p.error.main, 0.62)), A(p.LinearProgress, "infoBg", T(he, a ? m("palette-info-main") : p.info.main, 0.62)), A(p.LinearProgress, "successBg", T(he, a ? m("palette-success-main") : p.success.main, 0.62)), A(p.LinearProgress, "warningBg", T(he, a ? m("palette-warning-light") : p.warning.main, 0.62)), A(p.Skeleton, "bg",
|
|
7542
|
-
const z =
|
|
7543
|
-
A(p.SnackbarContent, "bg", z), A(p.SnackbarContent, "color", nt(() =>
|
|
7541
|
+
A(p.Alert, "errorColor", T(me, a ? m("palette-error-light") : p.error.light, 0.6)), A(p.Alert, "infoColor", T(me, a ? m("palette-info-light") : p.info.light, 0.6)), A(p.Alert, "successColor", T(me, a ? m("palette-success-light") : p.success.light, 0.6)), A(p.Alert, "warningColor", T(me, a ? m("palette-warning-light") : p.warning.light, 0.6)), A(p.Alert, "errorFilledBg", O("palette-error-main")), A(p.Alert, "infoFilledBg", O("palette-info-main")), A(p.Alert, "successFilledBg", O("palette-success-main")), A(p.Alert, "warningFilledBg", O("palette-warning-main")), A(p.Alert, "errorFilledColor", nt(() => p.getContrastText(p.error.main))), A(p.Alert, "infoFilledColor", nt(() => p.getContrastText(p.info.main))), A(p.Alert, "successFilledColor", nt(() => p.getContrastText(p.success.main))), A(p.Alert, "warningFilledColor", nt(() => p.getContrastText(p.warning.main))), A(p.Alert, "errorStandardBg", T(he, a ? m("palette-error-light") : p.error.light, 0.9)), A(p.Alert, "infoStandardBg", T(he, a ? m("palette-info-light") : p.info.light, 0.9)), A(p.Alert, "successStandardBg", T(he, a ? m("palette-success-light") : p.success.light, 0.9)), A(p.Alert, "warningStandardBg", T(he, a ? m("palette-warning-light") : p.warning.light, 0.9)), A(p.Alert, "errorIconColor", O("palette-error-main")), A(p.Alert, "infoIconColor", O("palette-info-main")), A(p.Alert, "successIconColor", O("palette-success-main")), A(p.Alert, "warningIconColor", O("palette-warning-main")), A(p.AppBar, "defaultBg", O("palette-grey-100")), A(p.Avatar, "defaultBg", O("palette-grey-400")), A(p.Button, "inheritContainedBg", O("palette-grey-300")), A(p.Button, "inheritContainedHoverBg", O("palette-grey-A100")), A(p.Chip, "defaultBorder", O("palette-grey-400")), A(p.Chip, "defaultAvatarColor", O("palette-grey-700")), A(p.Chip, "defaultIconColor", O("palette-grey-700")), A(p.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), A(p.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), A(p.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), A(p.LinearProgress, "primaryBg", T(he, a ? m("palette-primary-main") : p.primary.main, 0.62)), A(p.LinearProgress, "secondaryBg", T(he, a ? m("palette-secondary-main") : p.secondary.main, 0.62)), A(p.LinearProgress, "errorBg", T(he, a ? m("palette-error-main") : p.error.main, 0.62)), A(p.LinearProgress, "infoBg", T(he, a ? m("palette-info-main") : p.info.main, 0.62)), A(p.LinearProgress, "successBg", T(he, a ? m("palette-success-main") : p.success.main, 0.62)), A(p.LinearProgress, "warningBg", T(he, a ? m("palette-warning-light") : p.warning.main, 0.62)), A(p.Skeleton, "bg", b ? T(St, a ? m("palette-text-primary") : p.text.primary, 0.11) : `rgba(${O("palette-text-primaryChannel")} / 0.11)`), A(p.Slider, "primaryTrack", T(he, a ? m("palette-primary-main") : p.primary.main, 0.62)), A(p.Slider, "secondaryTrack", T(he, a ? m("palette-secondary-main") : p.secondary.main, 0.62)), A(p.Slider, "errorTrack", T(he, a ? m("palette-error-main") : p.error.main, 0.62)), A(p.Slider, "infoTrack", T(he, a ? m("palette-info-main") : p.info.main, 0.62)), A(p.Slider, "successTrack", T(he, a ? m("palette-success-main") : p.success.main, 0.62)), A(p.Slider, "warningTrack", T(he, a ? m("palette-warning-main") : p.warning.main, 0.62));
|
|
7542
|
+
const z = b ? T(me, a ? m("palette-background-default") : p.background.default, 0.6825) : Rn(p.background.default, 0.8);
|
|
7543
|
+
A(p.SnackbarContent, "bg", z), A(p.SnackbarContent, "color", nt(() => b ? Ur.text.primary : p.getContrastText(z))), A(p.SpeedDialAction, "fabHoverBg", Rn(p.background.paper, 0.15)), A(p.StepConnector, "border", O("palette-grey-400")), A(p.StepContent, "border", O("palette-grey-400")), A(p.Switch, "defaultColor", O("palette-common-white")), A(p.Switch, "defaultDisabledColor", O("palette-grey-100")), A(p.Switch, "primaryDisabledColor", T(he, a ? m("palette-primary-main") : p.primary.main, 0.62)), A(p.Switch, "secondaryDisabledColor", T(he, a ? m("palette-secondary-main") : p.secondary.main, 0.62)), A(p.Switch, "errorDisabledColor", T(he, a ? m("palette-error-main") : p.error.main, 0.62)), A(p.Switch, "infoDisabledColor", T(he, a ? m("palette-info-main") : p.info.main, 0.62)), A(p.Switch, "successDisabledColor", T(he, a ? m("palette-success-main") : p.success.main, 0.62)), A(p.Switch, "warningDisabledColor", T(he, a ? m("palette-warning-main") : p.warning.main, 0.62)), A(p.TableCell, "border", T(he, St(a ? m("palette-divider") : p.divider, 1), 0.88)), A(p.Tooltip, "bg", T(St, a ? m("palette-grey-700") : p.grey[700], 0.92));
|
|
7544
7544
|
}
|
|
7545
7545
|
if (p.mode === "dark") {
|
|
7546
|
-
A(p.Alert, "errorColor", T(he, a ? m("palette-error-light") : p.error.light, 0.6)), A(p.Alert, "infoColor", T(he, a ? m("palette-info-light") : p.info.light, 0.6)), A(p.Alert, "successColor", T(he, a ? m("palette-success-light") : p.success.light, 0.6)), A(p.Alert, "warningColor", T(he, a ? m("palette-warning-light") : p.warning.light, 0.6)), A(p.Alert, "errorFilledBg", O("palette-error-dark")), A(p.Alert, "infoFilledBg", O("palette-info-dark")), A(p.Alert, "successFilledBg", O("palette-success-dark")), A(p.Alert, "warningFilledBg", O("palette-warning-dark")), A(p.Alert, "errorFilledColor", nt(() => p.getContrastText(p.error.dark))), A(p.Alert, "infoFilledColor", nt(() => p.getContrastText(p.info.dark))), A(p.Alert, "successFilledColor", nt(() => p.getContrastText(p.success.dark))), A(p.Alert, "warningFilledColor", nt(() => p.getContrastText(p.warning.dark))), A(p.Alert, "errorStandardBg", T(me, a ? m("palette-error-light") : p.error.light, 0.9)), A(p.Alert, "infoStandardBg", T(me, a ? m("palette-info-light") : p.info.light, 0.9)), A(p.Alert, "successStandardBg", T(me, a ? m("palette-success-light") : p.success.light, 0.9)), A(p.Alert, "warningStandardBg", T(me, a ? m("palette-warning-light") : p.warning.light, 0.9)), A(p.Alert, "errorIconColor", O("palette-error-main")), A(p.Alert, "infoIconColor", O("palette-info-main")), A(p.Alert, "successIconColor", O("palette-success-main")), A(p.Alert, "warningIconColor", O("palette-warning-main")), A(p.AppBar, "defaultBg", O("palette-grey-900")), A(p.AppBar, "darkBg", O("palette-background-paper")), A(p.AppBar, "darkColor", O("palette-text-primary")), A(p.Avatar, "defaultBg", O("palette-grey-600")), A(p.Button, "inheritContainedBg", O("palette-grey-800")), A(p.Button, "inheritContainedHoverBg", O("palette-grey-700")), A(p.Chip, "defaultBorder", O("palette-grey-700")), A(p.Chip, "defaultAvatarColor", O("palette-grey-300")), A(p.Chip, "defaultIconColor", O("palette-grey-300")), A(p.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), A(p.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), A(p.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), A(p.LinearProgress, "primaryBg", T(me, a ? m("palette-primary-main") : p.primary.main, 0.5)), A(p.LinearProgress, "secondaryBg", T(me, a ? m("palette-secondary-main") : p.secondary.main, 0.5)), A(p.LinearProgress, "errorBg", T(me, a ? m("palette-error-main") : p.error.main, 0.5)), A(p.LinearProgress, "infoBg", T(me, a ? m("palette-info-main") : p.info.main, 0.5)), A(p.LinearProgress, "successBg", T(me, a ? m("palette-success-main") : p.success.main, 0.5)), A(p.LinearProgress, "warningBg", T(me, a ? m("palette-warning-main") : p.warning.main, 0.5)), A(p.Skeleton, "bg",
|
|
7547
|
-
const z =
|
|
7548
|
-
A(p.SnackbarContent, "bg", z), A(p.SnackbarContent, "color", nt(() =>
|
|
7546
|
+
A(p.Alert, "errorColor", T(he, a ? m("palette-error-light") : p.error.light, 0.6)), A(p.Alert, "infoColor", T(he, a ? m("palette-info-light") : p.info.light, 0.6)), A(p.Alert, "successColor", T(he, a ? m("palette-success-light") : p.success.light, 0.6)), A(p.Alert, "warningColor", T(he, a ? m("palette-warning-light") : p.warning.light, 0.6)), A(p.Alert, "errorFilledBg", O("palette-error-dark")), A(p.Alert, "infoFilledBg", O("palette-info-dark")), A(p.Alert, "successFilledBg", O("palette-success-dark")), A(p.Alert, "warningFilledBg", O("palette-warning-dark")), A(p.Alert, "errorFilledColor", nt(() => p.getContrastText(p.error.dark))), A(p.Alert, "infoFilledColor", nt(() => p.getContrastText(p.info.dark))), A(p.Alert, "successFilledColor", nt(() => p.getContrastText(p.success.dark))), A(p.Alert, "warningFilledColor", nt(() => p.getContrastText(p.warning.dark))), A(p.Alert, "errorStandardBg", T(me, a ? m("palette-error-light") : p.error.light, 0.9)), A(p.Alert, "infoStandardBg", T(me, a ? m("palette-info-light") : p.info.light, 0.9)), A(p.Alert, "successStandardBg", T(me, a ? m("palette-success-light") : p.success.light, 0.9)), A(p.Alert, "warningStandardBg", T(me, a ? m("palette-warning-light") : p.warning.light, 0.9)), A(p.Alert, "errorIconColor", O("palette-error-main")), A(p.Alert, "infoIconColor", O("palette-info-main")), A(p.Alert, "successIconColor", O("palette-success-main")), A(p.Alert, "warningIconColor", O("palette-warning-main")), A(p.AppBar, "defaultBg", O("palette-grey-900")), A(p.AppBar, "darkBg", O("palette-background-paper")), A(p.AppBar, "darkColor", O("palette-text-primary")), A(p.Avatar, "defaultBg", O("palette-grey-600")), A(p.Button, "inheritContainedBg", O("palette-grey-800")), A(p.Button, "inheritContainedHoverBg", O("palette-grey-700")), A(p.Chip, "defaultBorder", O("palette-grey-700")), A(p.Chip, "defaultAvatarColor", O("palette-grey-300")), A(p.Chip, "defaultIconColor", O("palette-grey-300")), A(p.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), A(p.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), A(p.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), A(p.LinearProgress, "primaryBg", T(me, a ? m("palette-primary-main") : p.primary.main, 0.5)), A(p.LinearProgress, "secondaryBg", T(me, a ? m("palette-secondary-main") : p.secondary.main, 0.5)), A(p.LinearProgress, "errorBg", T(me, a ? m("palette-error-main") : p.error.main, 0.5)), A(p.LinearProgress, "infoBg", T(me, a ? m("palette-info-main") : p.info.main, 0.5)), A(p.LinearProgress, "successBg", T(me, a ? m("palette-success-main") : p.success.main, 0.5)), A(p.LinearProgress, "warningBg", T(me, a ? m("palette-warning-main") : p.warning.main, 0.5)), A(p.Skeleton, "bg", b ? T(St, a ? m("palette-text-primary") : p.text.primary, 0.13) : `rgba(${O("palette-text-primaryChannel")} / 0.13)`), A(p.Slider, "primaryTrack", T(me, a ? m("palette-primary-main") : p.primary.main, 0.5)), A(p.Slider, "secondaryTrack", T(me, a ? m("palette-secondary-main") : p.secondary.main, 0.5)), A(p.Slider, "errorTrack", T(me, a ? m("palette-error-main") : p.error.main, 0.5)), A(p.Slider, "infoTrack", T(me, a ? m("palette-info-main") : p.info.main, 0.5)), A(p.Slider, "successTrack", T(me, a ? m("palette-success-main") : p.success.main, 0.5)), A(p.Slider, "warningTrack", T(me, a ? m("palette-warning-light") : p.warning.main, 0.5));
|
|
7547
|
+
const z = b ? T(he, a ? m("palette-background-default") : p.background.default, 0.985) : Rn(p.background.default, 0.98);
|
|
7548
|
+
A(p.SnackbarContent, "bg", z), A(p.SnackbarContent, "color", nt(() => b ? Cs.text.primary : p.getContrastText(z))), A(p.SpeedDialAction, "fabHoverBg", Rn(p.background.paper, 0.15)), A(p.StepConnector, "border", O("palette-grey-600")), A(p.StepContent, "border", O("palette-grey-600")), A(p.Switch, "defaultColor", O("palette-grey-300")), A(p.Switch, "defaultDisabledColor", O("palette-grey-600")), A(p.Switch, "primaryDisabledColor", T(me, a ? m("palette-primary-main") : p.primary.main, 0.55)), A(p.Switch, "secondaryDisabledColor", T(me, a ? m("palette-secondary-main") : p.secondary.main, 0.55)), A(p.Switch, "errorDisabledColor", T(me, a ? m("palette-error-main") : p.error.main, 0.55)), A(p.Switch, "infoDisabledColor", T(me, a ? m("palette-info-main") : p.info.main, 0.55)), A(p.Switch, "successDisabledColor", T(me, a ? m("palette-success-main") : p.success.main, 0.55)), A(p.Switch, "warningDisabledColor", T(me, a ? m("palette-warning-light") : p.warning.main, 0.55)), A(p.TableCell, "border", T(me, St(a ? m("palette-divider") : p.divider, 1), 0.68)), A(p.Tooltip, "bg", T(St, a ? m("palette-grey-700") : p.grey[700], 0.92));
|
|
7549
7549
|
}
|
|
7550
7550
|
a || (it(p.background, "default"), it(p.background, "paper"), it(p.common, "background"), it(p.common, "onBackground"), it(p, "divider")), Object.keys(p).forEach((z) => {
|
|
7551
7551
|
const j = p[z];
|
|
@@ -7561,11 +7561,11 @@ function P1(e = {}, ...t) {
|
|
|
7561
7561
|
}, {
|
|
7562
7562
|
vars: L,
|
|
7563
7563
|
generateThemeVars: E,
|
|
7564
|
-
generateStyleSheets:
|
|
7564
|
+
generateStyleSheets: B
|
|
7565
7565
|
} = n1(w, N);
|
|
7566
7566
|
return w.vars = L, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([I, p]) => {
|
|
7567
7567
|
w[I] = p;
|
|
7568
|
-
}), w.generateThemeVars = E, w.generateStyleSheets =
|
|
7568
|
+
}), w.generateThemeVars = E, w.generateStyleSheets = B, w.generateSpacing = function() {
|
|
7569
7569
|
return ds(h.spacing, to(this));
|
|
7570
7570
|
}, w.getColorSchemeSelector = r1(c), w.spacing = w.generateSpacing(), w.shouldSkipGeneratingVar = l, w.unstable_sxConfig = {
|
|
7571
7571
|
...ar,
|
|
@@ -7631,13 +7631,13 @@ function V1(e = {}, ...t) {
|
|
|
7631
7631
|
...typeof r != "boolean" && r
|
|
7632
7632
|
}, ...t);
|
|
7633
7633
|
}
|
|
7634
|
-
const
|
|
7634
|
+
const B1 = V1(), F1 = "$$material";
|
|
7635
7635
|
function so(e) {
|
|
7636
7636
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
7637
7637
|
}
|
|
7638
7638
|
const z1 = (e) => so(e) && e !== "classes", Rt = z2({
|
|
7639
|
-
themeId:
|
|
7640
|
-
defaultTheme:
|
|
7639
|
+
themeId: F1,
|
|
7640
|
+
defaultTheme: B1,
|
|
7641
7641
|
rootShouldForwardProp: z1
|
|
7642
7642
|
}), Qt = Q2;
|
|
7643
7643
|
process.env.NODE_ENV !== "production" && (i.node, i.object.isRequired);
|
|
@@ -8230,19 +8230,19 @@ const Q1 = Rt("span", {
|
|
|
8230
8230
|
color: g = "primary",
|
|
8231
8231
|
classes: y,
|
|
8232
8232
|
className: m,
|
|
8233
|
-
disableSwap:
|
|
8233
|
+
disableSwap: v = !1,
|
|
8234
8234
|
disabled: f = !1,
|
|
8235
|
-
getAriaLabel:
|
|
8235
|
+
getAriaLabel: _,
|
|
8236
8236
|
getAriaValueText: x,
|
|
8237
8237
|
marks: S = !1,
|
|
8238
8238
|
max: $ = 100,
|
|
8239
|
-
min:
|
|
8240
|
-
name:
|
|
8239
|
+
min: b = 0,
|
|
8240
|
+
name: C,
|
|
8241
8241
|
onChange: w,
|
|
8242
8242
|
onChangeCommitted: N,
|
|
8243
8243
|
orientation: L = "horizontal",
|
|
8244
8244
|
shiftStep: E = 10,
|
|
8245
|
-
size:
|
|
8245
|
+
size: B = "medium",
|
|
8246
8246
|
step: I = 1,
|
|
8247
8247
|
scale: p = mi,
|
|
8248
8248
|
slotProps: O,
|
|
@@ -8257,14 +8257,14 @@ const Q1 = Rt("span", {
|
|
|
8257
8257
|
...r,
|
|
8258
8258
|
isRtl: o,
|
|
8259
8259
|
max: $,
|
|
8260
|
-
min:
|
|
8260
|
+
min: b,
|
|
8261
8261
|
classes: y,
|
|
8262
8262
|
disabled: f,
|
|
8263
|
-
disableSwap:
|
|
8263
|
+
disableSwap: v,
|
|
8264
8264
|
orientation: L,
|
|
8265
8265
|
marks: S,
|
|
8266
8266
|
color: g,
|
|
8267
|
-
size:
|
|
8267
|
+
size: B,
|
|
8268
8268
|
step: I,
|
|
8269
8269
|
shiftStep: E,
|
|
8270
8270
|
scale: p,
|
|
@@ -8292,10 +8292,10 @@ const Q1 = Rt("span", {
|
|
|
8292
8292
|
rootRef: n
|
|
8293
8293
|
});
|
|
8294
8294
|
M.marked = P.length > 0 && P.some((Ne) => Ne.label), M.dragging = de, M.focusedThumbIndex = oe;
|
|
8295
|
-
const re = eu(M), we = (T == null ? void 0 : T.root) ?? d.Root ?? K1, Ce = (T == null ? void 0 : T.rail) ?? d.Rail ?? G1, Le = (T == null ? void 0 : T.track) ?? d.Track ?? Y1, qe = (T == null ? void 0 : T.thumb) ?? d.Thumb ?? X1, Je = (T == null ? void 0 : T.valueLabel) ?? d.ValueLabel ?? Ts, _e = (T == null ? void 0 : T.mark) ?? d.Mark ?? Q1, We = (T == null ? void 0 : T.markLabel) ?? d.MarkLabel ?? J1, R = (T == null ? void 0 : T.input) ?? d.Input ?? "input",
|
|
8295
|
+
const re = eu(M), we = (T == null ? void 0 : T.root) ?? d.Root ?? K1, Ce = (T == null ? void 0 : T.rail) ?? d.Rail ?? G1, Le = (T == null ? void 0 : T.track) ?? d.Track ?? Y1, qe = (T == null ? void 0 : T.thumb) ?? d.Thumb ?? X1, Je = (T == null ? void 0 : T.valueLabel) ?? d.ValueLabel ?? Ts, _e = (T == null ? void 0 : T.mark) ?? d.Mark ?? Q1, We = (T == null ? void 0 : T.markLabel) ?? d.MarkLabel ?? J1, R = (T == null ? void 0 : T.input) ?? d.Input ?? "input", F = (O == null ? void 0 : O.root) ?? h.root, H = (O == null ? void 0 : O.rail) ?? h.rail, ae = (O == null ? void 0 : O.track) ?? h.track, be = (O == null ? void 0 : O.thumb) ?? h.thumb, X = (O == null ? void 0 : O.valueLabel) ?? h.valueLabel, Me = (O == null ? void 0 : O.mark) ?? h.mark, Ve = (O == null ? void 0 : O.markLabel) ?? h.markLabel, Oe = (O == null ? void 0 : O.input) ?? h.input, Ke = mt({
|
|
8296
8296
|
elementType: we,
|
|
8297
8297
|
getSlotProps: K,
|
|
8298
|
-
externalSlotProps:
|
|
8298
|
+
externalSlotProps: F,
|
|
8299
8299
|
externalForwardedProps: D,
|
|
8300
8300
|
additionalProps: {
|
|
8301
8301
|
...q1(we) && {
|
|
@@ -8304,7 +8304,7 @@ const Q1 = Rt("span", {
|
|
|
8304
8304
|
},
|
|
8305
8305
|
ownerState: {
|
|
8306
8306
|
...M,
|
|
8307
|
-
...
|
|
8307
|
+
...F == null ? void 0 : F.ownerState
|
|
8308
8308
|
},
|
|
8309
8309
|
className: [re.root, m]
|
|
8310
8310
|
}), Jt = mt({
|
|
@@ -8312,7 +8312,7 @@ const Q1 = Rt("span", {
|
|
|
8312
8312
|
externalSlotProps: H,
|
|
8313
8313
|
ownerState: M,
|
|
8314
8314
|
className: re.rail
|
|
8315
|
-
}),
|
|
8315
|
+
}), Bs = mt({
|
|
8316
8316
|
elementType: Le,
|
|
8317
8317
|
externalSlotProps: ae,
|
|
8318
8318
|
additionalProps: {
|
|
@@ -8335,7 +8335,7 @@ const Q1 = Rt("span", {
|
|
|
8335
8335
|
...be == null ? void 0 : be.ownerState
|
|
8336
8336
|
},
|
|
8337
8337
|
className: re.thumb
|
|
8338
|
-
}),
|
|
8338
|
+
}), Fs = mt({
|
|
8339
8339
|
elementType: Je,
|
|
8340
8340
|
externalSlotProps: X,
|
|
8341
8341
|
ownerState: {
|
|
@@ -8364,9 +8364,9 @@ const Q1 = Rt("span", {
|
|
|
8364
8364
|
children: [/* @__PURE__ */ u(Ce, {
|
|
8365
8365
|
...Jt
|
|
8366
8366
|
}), /* @__PURE__ */ u(Le, {
|
|
8367
|
-
...
|
|
8368
|
-
}), P.filter((Ne) => Ne.value >=
|
|
8369
|
-
const mr = Zn(Ne.value,
|
|
8367
|
+
...Bs
|
|
8368
|
+
}), P.filter((Ne) => Ne.value >= b && Ne.value <= $).map((Ne, De) => {
|
|
8369
|
+
const mr = Zn(Ne.value, b, $), _n = ee[U].offset(mr);
|
|
8370
8370
|
let ot;
|
|
8371
8371
|
return j === !1 ? ot = se.includes(Ne.value) : ot = j === "normal" && (te ? Ne.value >= se[0] && Ne.value <= se[se.length - 1] : Ne.value <= se[0]) || j === "inverted" && (te ? Ne.value <= se[0] || Ne.value >= se[se.length - 1] : Ne.value >= se[0]), /* @__PURE__ */ k(Q.Fragment, {
|
|
8372
8372
|
children: [/* @__PURE__ */ u(_e, {
|
|
@@ -8396,7 +8396,7 @@ const Q1 = Rt("span", {
|
|
|
8396
8396
|
}) : null]
|
|
8397
8397
|
}, De);
|
|
8398
8398
|
}), se.map((Ne, De) => {
|
|
8399
|
-
const mr = Zn(Ne,
|
|
8399
|
+
const mr = Zn(Ne, b, $), _n = ee[U].offset(mr), ot = W === "off" ? tu : Je;
|
|
8400
8400
|
return (
|
|
8401
8401
|
/* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
|
|
8402
8402
|
/* @__PURE__ */ u(ot, {
|
|
@@ -8408,7 +8408,7 @@ const Q1 = Rt("span", {
|
|
|
8408
8408
|
open: ne === De || G === De || W === "on",
|
|
8409
8409
|
disabled: f
|
|
8410
8410
|
},
|
|
8411
|
-
...
|
|
8411
|
+
...Fs,
|
|
8412
8412
|
children: /* @__PURE__ */ u(qe, {
|
|
8413
8413
|
"data-index": De,
|
|
8414
8414
|
...dr,
|
|
@@ -8420,7 +8420,7 @@ const Q1 = Rt("span", {
|
|
|
8420
8420
|
},
|
|
8421
8421
|
children: /* @__PURE__ */ u(R, {
|
|
8422
8422
|
"data-index": De,
|
|
8423
|
-
"aria-label":
|
|
8423
|
+
"aria-label": _ ? _(De) : s,
|
|
8424
8424
|
"aria-valuenow": p(Ne),
|
|
8425
8425
|
"aria-labelledby": l,
|
|
8426
8426
|
"aria-valuetext": x ? x(p(Ne), De) : a,
|
|
@@ -8441,7 +8441,7 @@ process.env.NODE_ENV !== "production" && ($s.propTypes = {
|
|
|
8441
8441
|
/**
|
|
8442
8442
|
* The label of the slider.
|
|
8443
8443
|
*/
|
|
8444
|
-
"aria-label":
|
|
8444
|
+
"aria-label": Bo(i.string, (e) => Array.isArray(e.value || e.defaultValue) && e["aria-label"] != null ? new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider.") : null),
|
|
8445
8445
|
/**
|
|
8446
8446
|
* The id of the element containing a label for the slider.
|
|
8447
8447
|
*/
|
|
@@ -8449,7 +8449,7 @@ process.env.NODE_ENV !== "production" && ($s.propTypes = {
|
|
|
8449
8449
|
/**
|
|
8450
8450
|
* A string value that provides a user-friendly name for the current value of the slider.
|
|
8451
8451
|
*/
|
|
8452
|
-
"aria-valuetext":
|
|
8452
|
+
"aria-valuetext": Bo(i.string, (e) => Array.isArray(e.value || e.defaultValue) && e["aria-valuetext"] != null ? new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider.") : null),
|
|
8453
8453
|
/**
|
|
8454
8454
|
* @ignore
|
|
8455
8455
|
*/
|
|
@@ -8717,52 +8717,52 @@ const nu = "_slider_1prh1_2", ru = "_playButton_1prh1_14", ou = "_sliderOpen_1pr
|
|
|
8717
8717
|
console.log("year changed to ", d);
|
|
8718
8718
|
}
|
|
8719
8719
|
}) => {
|
|
8720
|
-
const h = o || ((
|
|
8720
|
+
const h = o || ((b, C) => {
|
|
8721
8721
|
const w = [];
|
|
8722
|
-
w.push({ label: "", value:
|
|
8723
|
-
const N = Math.ceil(
|
|
8724
|
-
for (let L = N; L <
|
|
8722
|
+
w.push({ label: "", value: b });
|
|
8723
|
+
const N = Math.ceil(b / 10) * 10;
|
|
8724
|
+
for (let L = N; L < C; L += 10)
|
|
8725
8725
|
w.push({ label: "", value: L });
|
|
8726
|
-
return w[w.length - 1].value !==
|
|
8726
|
+
return w[w.length - 1].value !== C && w.push({ label: "", value: C }), w;
|
|
8727
8727
|
})(n, r), [g, y] = le(t);
|
|
8728
8728
|
J(() => {
|
|
8729
8729
|
y(t);
|
|
8730
8730
|
}, [t]);
|
|
8731
|
-
const m = (
|
|
8732
|
-
y(
|
|
8733
|
-
}, [
|
|
8731
|
+
const m = (b, C) => {
|
|
8732
|
+
y(C), c(C);
|
|
8733
|
+
}, [v, f] = le(!1);
|
|
8734
8734
|
J(() => {
|
|
8735
8735
|
t && console.log("defaultYear changed:", t), t && y(t);
|
|
8736
8736
|
}, [t]), J(() => {
|
|
8737
8737
|
l === !1 && f(!1);
|
|
8738
8738
|
}, [l]);
|
|
8739
|
-
const
|
|
8739
|
+
const _ = () => {
|
|
8740
8740
|
f(!0);
|
|
8741
8741
|
}, x = () => {
|
|
8742
8742
|
f(!1);
|
|
8743
8743
|
};
|
|
8744
|
-
((
|
|
8744
|
+
((b, C, w = []) => {
|
|
8745
8745
|
const N = Se();
|
|
8746
8746
|
J(() => {
|
|
8747
|
-
N.current =
|
|
8748
|
-
}, [
|
|
8747
|
+
N.current = b;
|
|
8748
|
+
}, [b]), J(() => {
|
|
8749
8749
|
function L() {
|
|
8750
8750
|
N.current();
|
|
8751
8751
|
}
|
|
8752
8752
|
{
|
|
8753
|
-
let E = setInterval(L,
|
|
8753
|
+
let E = setInterval(L, C);
|
|
8754
8754
|
return () => clearInterval(E);
|
|
8755
8755
|
}
|
|
8756
|
-
}, [
|
|
8756
|
+
}, [C, ...w]);
|
|
8757
8757
|
})(
|
|
8758
8758
|
() => {
|
|
8759
|
-
|
|
8760
|
-
const
|
|
8761
|
-
return
|
|
8759
|
+
v && y((b) => {
|
|
8760
|
+
const C = b + 1;
|
|
8761
|
+
return C > r ? (c(n), n) : (c(C), C);
|
|
8762
8762
|
});
|
|
8763
8763
|
},
|
|
8764
8764
|
1e3,
|
|
8765
|
-
[n, r,
|
|
8765
|
+
[n, r, v]
|
|
8766
8766
|
);
|
|
8767
8767
|
const $ = Gs({
|
|
8768
8768
|
palette: {
|
|
@@ -8811,8 +8811,8 @@ const nu = "_slider_1prh1_2", ru = "_playButton_1prh1_14", ou = "_sliderOpen_1pr
|
|
|
8811
8811
|
}
|
|
8812
8812
|
),
|
|
8813
8813
|
r,
|
|
8814
|
-
!
|
|
8815
|
-
|
|
8814
|
+
!v && /* @__PURE__ */ u("button", { className: nn.playButton, onClick: _, children: /* @__PURE__ */ u("img", { src: l0, alt: "Play" }) }),
|
|
8815
|
+
v && /* @__PURE__ */ u("button", { className: nn.playButton, onClick: x, children: /* @__PURE__ */ u("img", { src: c0, alt: "Pause" }) })
|
|
8816
8816
|
]
|
|
8817
8817
|
}
|
|
8818
8818
|
) });
|
|
@@ -8847,7 +8847,7 @@ const au = "_TopNavMenuContainer_12mp4_2", lu = "_topNavOptions_12mp4_13", cu =
|
|
|
8847
8847
|
}) => {
|
|
8848
8848
|
const { t: s } = ce();
|
|
8849
8849
|
return /* @__PURE__ */ u("div", { className: Ar.TopNavMenuContainer, style: { ...t }, children: e.map((a, l) => /* @__PURE__ */ u(
|
|
8850
|
-
|
|
8850
|
+
Fi,
|
|
8851
8851
|
{
|
|
8852
8852
|
to: a.url,
|
|
8853
8853
|
className: ({ isActive: c }) => `${Ar.topNavOptions} ${c ? Ar.active : ""} `,
|
|
@@ -8951,7 +8951,7 @@ var Vu = function(t) {
|
|
|
8951
8951
|
d: "M12.951 10.297a3.307 3.307 0 1 0 0-6.614 3.307 3.307 0 0 0 0 6.614"
|
|
8952
8952
|
}))));
|
|
8953
8953
|
};
|
|
8954
|
-
const
|
|
8954
|
+
const Bu = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e", Ns = ({
|
|
8955
8955
|
listelement: e,
|
|
8956
8956
|
onClickElement: t,
|
|
8957
8957
|
isActive: n,
|
|
@@ -8964,7 +8964,7 @@ const Fu = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
8964
8964
|
defaultTooltip: d,
|
|
8965
8965
|
showEye: h = !0
|
|
8966
8966
|
}) => {
|
|
8967
|
-
const { name: g, created_at: y, id: m, isBeingProcessed:
|
|
8967
|
+
const { name: g, created_at: y, id: m, isBeingProcessed: v } = e, [f, _] = le(!1), { t: x } = ce();
|
|
8968
8968
|
J(() => {
|
|
8969
8969
|
console.log("elementButtons: ", l);
|
|
8970
8970
|
}, [l]);
|
|
@@ -8975,7 +8975,7 @@ const Fu = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
8975
8975
|
className: Ge.listElement,
|
|
8976
8976
|
style: { borderBottom: `1px solid ${o}` },
|
|
8977
8977
|
children: [
|
|
8978
|
-
/* @__PURE__ */ u("div", { className: Ge.elementNameDate, onClick: () => t(m), children: Object.keys(a).map((
|
|
8978
|
+
/* @__PURE__ */ u("div", { className: Ge.elementNameDate, onClick: () => t(m), children: Object.keys(a).map((b, C) => b === "name" ? /* @__PURE__ */ u("div", { className: Ge.elementNameContainer, children: /* @__PURE__ */ k(
|
|
8979
8979
|
"div",
|
|
8980
8980
|
{
|
|
8981
8981
|
className: `${Ge.elementName} ${h && Ge.nameAndEye}`,
|
|
@@ -8989,14 +8989,14 @@ const Fu = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
8989
8989
|
"img",
|
|
8990
8990
|
{
|
|
8991
8991
|
style: { marginRight: 9 },
|
|
8992
|
-
src:
|
|
8992
|
+
src: Bu,
|
|
8993
8993
|
alt: "eye"
|
|
8994
8994
|
}
|
|
8995
8995
|
)),
|
|
8996
8996
|
/* @__PURE__ */ u("span", { style: { color: n ? r : o }, children: g })
|
|
8997
8997
|
]
|
|
8998
8998
|
}
|
|
8999
|
-
) }, `col${
|
|
8999
|
+
) }, `col${C}`) : b == "data" ? /* @__PURE__ */ u("div", { className: Ge.elementDate, children: y ? new Date(y).toLocaleDateString() : "" }, `col${C}data`) : /* @__PURE__ */ u("div", { className: Ge.elementDate, children: e[b] }, `col${C}other`)) }),
|
|
9000
9000
|
/* @__PURE__ */ k("div", { className: Ge.elementButtons, children: [
|
|
9001
9001
|
e.processing && /* @__PURE__ */ k("div", { className: "tooltip-parent", children: [
|
|
9002
9002
|
/* @__PURE__ */ u("img", { src: Ru }),
|
|
@@ -9080,7 +9080,7 @@ const Fu = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
9080
9080
|
"div",
|
|
9081
9081
|
{
|
|
9082
9082
|
className: Ge.moreInfo,
|
|
9083
|
-
onClick: () =>
|
|
9083
|
+
onClick: () => _(!f),
|
|
9084
9084
|
children: [
|
|
9085
9085
|
/* @__PURE__ */ u("span", { children: f ? "-" : "+" }),
|
|
9086
9086
|
x(s.label)
|
|
@@ -9129,7 +9129,7 @@ Ns.propTypes = {
|
|
|
9129
9129
|
defaultTooltip: i.string,
|
|
9130
9130
|
showEye: i.bool
|
|
9131
9131
|
};
|
|
9132
|
-
const gi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",
|
|
9132
|
+
const gi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Fu = ({
|
|
9133
9133
|
elementsList: e,
|
|
9134
9134
|
activeElementId: t,
|
|
9135
9135
|
fontColor: n = "#605B56",
|
|
@@ -9138,7 +9138,7 @@ const gi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
9138
9138
|
containerStyles: s = {},
|
|
9139
9139
|
newElementButton: a,
|
|
9140
9140
|
//{label: 'text', onClick: function(), disabled}/null
|
|
9141
|
-
onClickElement: l = (
|
|
9141
|
+
onClickElement: l = (v) => console.log(`OnCLickElement: ${v}`),
|
|
9142
9142
|
columns: c,
|
|
9143
9143
|
// {'name': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
|
|
9144
9144
|
elementButtons: d,
|
|
@@ -9151,35 +9151,35 @@ const gi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
9151
9151
|
//texto para el tooltip del símbolo de candado para los elementos default
|
|
9152
9152
|
showEye: m = !0
|
|
9153
9153
|
}) => {
|
|
9154
|
-
const { t:
|
|
9154
|
+
const { t: v } = ce(), [f, _] = le(e);
|
|
9155
9155
|
J(() => {
|
|
9156
|
-
e &&
|
|
9156
|
+
e && _(e);
|
|
9157
9157
|
}, [e]);
|
|
9158
|
-
const x = (
|
|
9159
|
-
if (typeof
|
|
9160
|
-
if (/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(
|
|
9161
|
-
return new Date(
|
|
9162
|
-
const
|
|
9163
|
-
if (
|
|
9164
|
-
return /* @__PURE__ */ new Date(`${
|
|
9165
|
-
const w = /^(\d{2})[-/]\s*(\d{2})[-/]\s*(\d{4})$/.exec(
|
|
9158
|
+
const x = (b) => {
|
|
9159
|
+
if (typeof b != "string") return null;
|
|
9160
|
+
if (/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(b))
|
|
9161
|
+
return new Date(b);
|
|
9162
|
+
const C = /^(\d{2})[-/.]\s*(\d{2})[-/.]\s*(\d{4})$/.exec(b);
|
|
9163
|
+
if (C)
|
|
9164
|
+
return /* @__PURE__ */ new Date(`${C[3]}-${C[2]}-${C[1]}`);
|
|
9165
|
+
const w = /^(\d{2})[-/]\s*(\d{2})[-/]\s*(\d{4})$/.exec(b);
|
|
9166
9166
|
return w ? parseInt(w[1]) > 12 ? /* @__PURE__ */ new Date(`${w[3]}-${w[2]}-${w[1]}`) : /* @__PURE__ */ new Date(`${w[3]}-${w[1]}-${w[2]}`) : null;
|
|
9167
|
-
}, S = (
|
|
9167
|
+
}, S = (b) => x(b) !== null, $ = (b) => {
|
|
9168
9168
|
if (!f || f.length === 0) return;
|
|
9169
|
-
let
|
|
9170
|
-
const w =
|
|
9171
|
-
|
|
9172
|
-
const
|
|
9173
|
-
if (
|
|
9174
|
-
if (
|
|
9169
|
+
let C = [...f];
|
|
9170
|
+
const w = C.find((L) => L[b] !== null && L[b] !== void 0), N = w ? S(w[b]) : !1;
|
|
9171
|
+
C.sort((L, E) => {
|
|
9172
|
+
const B = L[b], I = E[b];
|
|
9173
|
+
if (B == null && I == null) return 0;
|
|
9174
|
+
if (B == null) return 1;
|
|
9175
9175
|
if (I == null) return -1;
|
|
9176
9176
|
if (N) {
|
|
9177
|
-
const T = x(
|
|
9177
|
+
const T = x(B), z = x(I);
|
|
9178
9178
|
return !T && !z ? 0 : T ? z ? T - z : -1 : 1;
|
|
9179
9179
|
}
|
|
9180
|
-
const p = String(
|
|
9180
|
+
const p = String(B || "").trim(), O = String(I || "").trim();
|
|
9181
9181
|
return p.localeCompare(O);
|
|
9182
|
-
}), C
|
|
9182
|
+
}), _(C);
|
|
9183
9183
|
};
|
|
9184
9184
|
return /* @__PURE__ */ k(
|
|
9185
9185
|
"div",
|
|
@@ -9193,22 +9193,22 @@ const gi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
9193
9193
|
className: st.header,
|
|
9194
9194
|
style: { borderBottom: `1px solid ${n}` },
|
|
9195
9195
|
children: [
|
|
9196
|
-
/* @__PURE__ */ u("div", { className: st.nameDateContainer, children: Object.keys(c).map((
|
|
9197
|
-
/* @__PURE__ */ u("span", { children:
|
|
9196
|
+
/* @__PURE__ */ u("div", { className: st.nameDateContainer, children: Object.keys(c).map((b) => b === "name" ? /* @__PURE__ */ u("div", { className: st.elementName, children: /* @__PURE__ */ k("button", { onClick: () => $("name"), children: [
|
|
9197
|
+
/* @__PURE__ */ u("span", { children: v(c.name) }),
|
|
9198
9198
|
/* @__PURE__ */ u("img", { src: gi, alt: "order arrow" })
|
|
9199
|
-
] }) },
|
|
9200
|
-
/* @__PURE__ */ u("span", { children:
|
|
9199
|
+
] }) }, b) : b === "data" ? /* @__PURE__ */ u("div", { className: st.elementDate, children: /* @__PURE__ */ k("button", { onClick: () => $("created_at"), children: [
|
|
9200
|
+
/* @__PURE__ */ u("span", { children: v(c.data) }),
|
|
9201
9201
|
/* @__PURE__ */ u("img", { src: gi, alt: "order arrow" })
|
|
9202
|
-
] }) },
|
|
9202
|
+
] }) }, b) : /* @__PURE__ */ u("div", { className: st.elementDate, children: /* @__PURE__ */ u("span", { children: v(c[b]) }) }, b)) }),
|
|
9203
9203
|
/* @__PURE__ */ u("div", { className: st.buttonsContainer })
|
|
9204
9204
|
]
|
|
9205
9205
|
}
|
|
9206
9206
|
),
|
|
9207
|
-
/* @__PURE__ */ u("div", { className: st.elementListContainer, children: f && f.length > 0 && f.map((
|
|
9207
|
+
/* @__PURE__ */ u("div", { className: st.elementListContainer, children: f && f.length > 0 && f.map((b) => /* @__PURE__ */ u(
|
|
9208
9208
|
Ns,
|
|
9209
9209
|
{
|
|
9210
|
-
isActive: t ==
|
|
9211
|
-
listelement:
|
|
9210
|
+
isActive: t == b.id,
|
|
9211
|
+
listelement: b,
|
|
9212
9212
|
fontColor: n,
|
|
9213
9213
|
activeColor: r,
|
|
9214
9214
|
onClickElement: l,
|
|
@@ -9219,7 +9219,7 @@ const gi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
9219
9219
|
defaultTooltip: y,
|
|
9220
9220
|
showEye: m
|
|
9221
9221
|
},
|
|
9222
|
-
`elementKey${
|
|
9222
|
+
`elementKey${b.id}`
|
|
9223
9223
|
)) }),
|
|
9224
9224
|
a && /* @__PURE__ */ u("div", { className: st.newElementButtonContainer, children: /* @__PURE__ */ u(
|
|
9225
9225
|
Xn,
|
|
@@ -9228,14 +9228,14 @@ const gi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
9228
9228
|
onClick: a.onClick,
|
|
9229
9229
|
borderColor: "grey",
|
|
9230
9230
|
disabled: a.disabled || !1,
|
|
9231
|
-
children:
|
|
9231
|
+
children: v(a.label)
|
|
9232
9232
|
}
|
|
9233
9233
|
) })
|
|
9234
9234
|
]
|
|
9235
9235
|
}
|
|
9236
9236
|
);
|
|
9237
9237
|
};
|
|
9238
|
-
|
|
9238
|
+
Fu.propTypes = {
|
|
9239
9239
|
elementsList: i.arrayOf(
|
|
9240
9240
|
i.shape({
|
|
9241
9241
|
name: i.string.isRequired,
|
|
@@ -9409,37 +9409,37 @@ function jn(e, t, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
9409
9409
|
function ed(e) {
|
|
9410
9410
|
const t = co(), { control: n = t, name: r, defaultValue: o, disabled: s, exact: a, compute: l } = e || {}, c = ie.useRef(o), d = ie.useRef(l), h = ie.useRef(void 0), g = ie.useRef(n), y = ie.useRef(r);
|
|
9411
9411
|
d.current = l;
|
|
9412
|
-
const [m,
|
|
9413
|
-
const
|
|
9414
|
-
return d.current ? d.current(
|
|
9415
|
-
}), f = ie.useCallback((
|
|
9416
|
-
const
|
|
9417
|
-
return d.current ? d.current(
|
|
9418
|
-
}, [n._formValues, n._names, r]),
|
|
9412
|
+
const [m, v] = ie.useState(() => {
|
|
9413
|
+
const b = n._getWatch(r, c.current);
|
|
9414
|
+
return d.current ? d.current(b) : b;
|
|
9415
|
+
}), f = ie.useCallback((b) => {
|
|
9416
|
+
const C = Ci(r, n._names, b || n._formValues, !1, c.current);
|
|
9417
|
+
return d.current ? d.current(C) : C;
|
|
9418
|
+
}, [n._formValues, n._names, r]), _ = ie.useCallback((b) => {
|
|
9419
9419
|
if (!s) {
|
|
9420
|
-
const
|
|
9420
|
+
const C = Ci(r, n._names, b || n._formValues, !1, c.current);
|
|
9421
9421
|
if (d.current) {
|
|
9422
|
-
const w = d.current(
|
|
9423
|
-
jn(w, h.current) || (
|
|
9422
|
+
const w = d.current(C);
|
|
9423
|
+
jn(w, h.current) || (v(w), h.current = w);
|
|
9424
9424
|
} else
|
|
9425
|
-
|
|
9425
|
+
v(C);
|
|
9426
9426
|
}
|
|
9427
9427
|
}, [n._formValues, n._names, s, r]);
|
|
9428
|
-
Rs(() => ((g.current !== n || !jn(y.current, r)) && (g.current = n, y.current = r,
|
|
9428
|
+
Rs(() => ((g.current !== n || !jn(y.current, r)) && (g.current = n, y.current = r, _()), n._subscribe({
|
|
9429
9429
|
name: r,
|
|
9430
9430
|
formState: {
|
|
9431
9431
|
values: !0
|
|
9432
9432
|
},
|
|
9433
9433
|
exact: a,
|
|
9434
|
-
callback: (
|
|
9435
|
-
|
|
9434
|
+
callback: (b) => {
|
|
9435
|
+
_(b.values);
|
|
9436
9436
|
}
|
|
9437
|
-
})), [n, a, r,
|
|
9437
|
+
})), [n, a, r, _]), ie.useEffect(() => n._removeUnmounted());
|
|
9438
9438
|
const x = g.current !== n, S = y.current, $ = ie.useMemo(() => {
|
|
9439
9439
|
if (s)
|
|
9440
9440
|
return null;
|
|
9441
|
-
const
|
|
9442
|
-
return x ||
|
|
9441
|
+
const b = !x && !jn(S, r);
|
|
9442
|
+
return x || b ? f() : null;
|
|
9443
9443
|
}, [s, x, r, S, f]);
|
|
9444
9444
|
return $ !== null ? $ : m;
|
|
9445
9445
|
}
|
|
@@ -9453,7 +9453,7 @@ function td(e) {
|
|
|
9453
9453
|
control: o,
|
|
9454
9454
|
name: n,
|
|
9455
9455
|
exact: l
|
|
9456
|
-
}), y = ie.useRef(e), m = ie.useRef(void 0),
|
|
9456
|
+
}), y = ie.useRef(e), m = ie.useRef(void 0), v = ie.useRef(o.register(n, {
|
|
9457
9457
|
...e.rules,
|
|
9458
9458
|
value: h,
|
|
9459
9459
|
...Lr(e.disabled) ? { disabled: e.disabled } : {}
|
|
@@ -9480,37 +9480,37 @@ function td(e) {
|
|
|
9480
9480
|
enumerable: !0,
|
|
9481
9481
|
get: () => ze(g.errors, n)
|
|
9482
9482
|
}
|
|
9483
|
-
}), [g, n]),
|
|
9483
|
+
}), [g, n]), _ = ie.useCallback((b) => v.current.onChange({
|
|
9484
9484
|
target: {
|
|
9485
|
-
value: Zu(
|
|
9485
|
+
value: Zu(b),
|
|
9486
9486
|
name: n
|
|
9487
9487
|
},
|
|
9488
9488
|
type: bi.CHANGE
|
|
9489
|
-
}), [n]), x = ie.useCallback(() =>
|
|
9489
|
+
}), [n]), x = ie.useCallback(() => v.current.onBlur({
|
|
9490
9490
|
target: {
|
|
9491
9491
|
value: ze(o._formValues, n),
|
|
9492
9492
|
name: n
|
|
9493
9493
|
},
|
|
9494
9494
|
type: bi.BLUR
|
|
9495
|
-
}), [n, o._formValues]), S = ie.useCallback((
|
|
9496
|
-
const
|
|
9497
|
-
|
|
9498
|
-
focus: () => Dn(
|
|
9499
|
-
select: () => Dn(
|
|
9500
|
-
setCustomValidity: (w) => Dn(
|
|
9501
|
-
reportValidity: () => Dn(
|
|
9495
|
+
}), [n, o._formValues]), S = ie.useCallback((b) => {
|
|
9496
|
+
const C = ze(o._fields, n);
|
|
9497
|
+
C && C._f && b && (C._f.ref = {
|
|
9498
|
+
focus: () => Dn(b.focus) && b.focus(),
|
|
9499
|
+
select: () => Dn(b.select) && b.select(),
|
|
9500
|
+
setCustomValidity: (w) => Dn(b.setCustomValidity) && b.setCustomValidity(w),
|
|
9501
|
+
reportValidity: () => Dn(b.reportValidity) && b.reportValidity()
|
|
9502
9502
|
});
|
|
9503
9503
|
}, [o._fields, n]), $ = ie.useMemo(() => ({
|
|
9504
9504
|
name: n,
|
|
9505
9505
|
value: h,
|
|
9506
9506
|
...Lr(r) || g.disabled ? { disabled: g.disabled || r } : {},
|
|
9507
|
-
onChange:
|
|
9507
|
+
onChange: _,
|
|
9508
9508
|
onBlur: x,
|
|
9509
9509
|
ref: S
|
|
9510
|
-
}), [n, r, g.disabled,
|
|
9510
|
+
}), [n, r, g.disabled, _, x, S, h]);
|
|
9511
9511
|
return ie.useEffect(() => {
|
|
9512
|
-
const
|
|
9513
|
-
|
|
9512
|
+
const b = o._options.shouldUnregister || s, C = m.current;
|
|
9513
|
+
C && C !== n && !c && o.unregister(C), o.register(n, {
|
|
9514
9514
|
...y.current.rules,
|
|
9515
9515
|
...Lr(y.current.disabled) ? { disabled: y.current.disabled } : {}
|
|
9516
9516
|
});
|
|
@@ -9518,12 +9518,12 @@ function td(e) {
|
|
|
9518
9518
|
const E = ze(o._fields, N);
|
|
9519
9519
|
E && E._f && (E._f.mount = L);
|
|
9520
9520
|
};
|
|
9521
|
-
if (w(n, !0),
|
|
9521
|
+
if (w(n, !0), b) {
|
|
9522
9522
|
const N = Os(ze(o._options.defaultValues, n, y.current.defaultValue));
|
|
9523
9523
|
yi(o._defaultValues, n, N), Kr(ze(o._formValues, n)) && yi(o._formValues, n, N);
|
|
9524
9524
|
}
|
|
9525
9525
|
return !c && o.register(n), m.current = n, () => {
|
|
9526
|
-
(c ?
|
|
9526
|
+
(c ? b && !o._state.action : b) ? o.unregister(n) : w(n, !1);
|
|
9527
9527
|
};
|
|
9528
9528
|
}, [n, o, c, s]), ie.useEffect(() => {
|
|
9529
9529
|
o._setDisabledField({
|
|
@@ -9580,27 +9580,27 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9580
9580
|
//Lógica extra al onChange además de actualizar el valor en RHF
|
|
9581
9581
|
onChangeExtraFunction: m = () => {
|
|
9582
9582
|
}
|
|
9583
|
-
} = e, { t:
|
|
9583
|
+
} = e, { t: v } = ce(), { control: f, trigger: _, clearErrors: x } = t, { errorColor: S } = Cn((w) => w), [$, b] = le(!1);
|
|
9584
9584
|
Se(a);
|
|
9585
|
-
const
|
|
9585
|
+
const C = () => r ? r === "password" && $ ? "text" : r : "text";
|
|
9586
9586
|
return /* @__PURE__ */ u(
|
|
9587
9587
|
bn,
|
|
9588
9588
|
{
|
|
9589
9589
|
name: n,
|
|
9590
9590
|
control: f,
|
|
9591
9591
|
rules: {
|
|
9592
|
-
required: a ? `${
|
|
9592
|
+
required: a ? `${v(o)} ${v("errorMessages.required")}` : !1,
|
|
9593
9593
|
maxLength: s || void 0,
|
|
9594
9594
|
validate: l || void 0
|
|
9595
9595
|
},
|
|
9596
9596
|
render: ({ field: w, fieldState: N }) => {
|
|
9597
9597
|
var I;
|
|
9598
|
-
const { onChange: L, ...E } = w,
|
|
9598
|
+
const { onChange: L, ...E } = w, B = (p) => {
|
|
9599
9599
|
L(p), m && m(p);
|
|
9600
9600
|
};
|
|
9601
9601
|
return /* @__PURE__ */ k("div", { className: on.textInputContainer, children: [
|
|
9602
9602
|
/* @__PURE__ */ k("h3", { className: on.labelContainer, children: [
|
|
9603
|
-
|
|
9603
|
+
v(o),
|
|
9604
9604
|
" ",
|
|
9605
9605
|
a && /* @__PURE__ */ u("label", { style: { color: N.error ? d : "" }, children: "*" })
|
|
9606
9606
|
] }),
|
|
@@ -9614,23 +9614,23 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9614
9614
|
"input",
|
|
9615
9615
|
{
|
|
9616
9616
|
...E,
|
|
9617
|
-
type:
|
|
9618
|
-
onChange:
|
|
9619
|
-
placeholder: c ?
|
|
9617
|
+
type: C(),
|
|
9618
|
+
onChange: B,
|
|
9619
|
+
placeholder: c ? v(c) : "",
|
|
9620
9620
|
maxLength: s || void 0
|
|
9621
9621
|
}
|
|
9622
9622
|
),
|
|
9623
9623
|
r == "password" && /* @__PURE__ */ u(
|
|
9624
9624
|
"button",
|
|
9625
9625
|
{
|
|
9626
|
-
onClick: () =>
|
|
9626
|
+
onClick: () => b(!$),
|
|
9627
9627
|
type: "button",
|
|
9628
9628
|
className: on.showPasswordButton,
|
|
9629
9629
|
children: /* @__PURE__ */ u(
|
|
9630
9630
|
"img",
|
|
9631
9631
|
{
|
|
9632
9632
|
src: $ ? dd : ud,
|
|
9633
|
-
alt:
|
|
9633
|
+
alt: v("show-password")
|
|
9634
9634
|
}
|
|
9635
9635
|
)
|
|
9636
9636
|
}
|
|
@@ -9638,7 +9638,7 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9638
9638
|
]
|
|
9639
9639
|
}
|
|
9640
9640
|
),
|
|
9641
|
-
r == "password" && /* @__PURE__ */ u("div", { className: on.forgotPassButton, children: /* @__PURE__ */ u("button", { onClick: g, children:
|
|
9641
|
+
r == "password" && /* @__PURE__ */ u("div", { className: on.forgotPassButton, children: /* @__PURE__ */ u("button", { onClick: g, children: v(y) }) }),
|
|
9642
9642
|
/* @__PURE__ */ u(
|
|
9643
9643
|
vn,
|
|
9644
9644
|
{
|
|
@@ -9652,7 +9652,7 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9652
9652
|
);
|
|
9653
9653
|
}, fd = "_inputsContainer_10t9s_2", Wt = {
|
|
9654
9654
|
inputsContainer: fd
|
|
9655
|
-
}, pd = "_selectInputContainer_zzz6o_2", md = "_labelContainer_zzz6o_6", hd = "_selectWrapper_zzz6o_9", gd = "_inputContainer_zzz6o_15", yd = "_selectInput_zzz6o_2", bd = "_option_zzz6o_29", vd = "_dropdownArrow_zzz6o_32",
|
|
9655
|
+
}, pd = "_selectInputContainer_zzz6o_2", md = "_labelContainer_zzz6o_6", hd = "_selectWrapper_zzz6o_9", gd = "_inputContainer_zzz6o_15", yd = "_selectInput_zzz6o_2", bd = "_option_zzz6o_29", vd = "_dropdownArrow_zzz6o_32", Be = {
|
|
9656
9656
|
selectInputContainer: pd,
|
|
9657
9657
|
labelContainer: md,
|
|
9658
9658
|
selectWrapper: hd,
|
|
@@ -9673,7 +9673,7 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9673
9673
|
width: g = 325,
|
|
9674
9674
|
options: y = []
|
|
9675
9675
|
//Used if we dont use react hook form
|
|
9676
|
-
} = e, { t: m } = ce(), { control:
|
|
9676
|
+
} = e, { t: m } = ce(), { control: v, trigger: f, clearErrors: _ } = t || {}, { errorColor: x } = Cn((b) => b);
|
|
9677
9677
|
Se(l);
|
|
9678
9678
|
const [S, $] = le(null);
|
|
9679
9679
|
return J(() => {
|
|
@@ -9682,44 +9682,44 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9682
9682
|
bn,
|
|
9683
9683
|
{
|
|
9684
9684
|
name: r,
|
|
9685
|
-
control:
|
|
9685
|
+
control: v,
|
|
9686
9686
|
rules: {
|
|
9687
9687
|
required: l ? `${m(s)} ${m("errorMessages.required")}` : !1,
|
|
9688
|
-
validate: c ? (
|
|
9689
|
-
let
|
|
9690
|
-
return c(
|
|
9688
|
+
validate: c ? (b) => {
|
|
9689
|
+
let C = t.getValues();
|
|
9690
|
+
return c(b, C);
|
|
9691
9691
|
} : void 0
|
|
9692
9692
|
},
|
|
9693
|
-
render: ({ field:
|
|
9693
|
+
render: ({ field: b, fieldState: C }) => {
|
|
9694
9694
|
var N;
|
|
9695
9695
|
const w = y.find(
|
|
9696
|
-
(L) => L.value ===
|
|
9696
|
+
(L) => L.value === b.value
|
|
9697
9697
|
);
|
|
9698
|
-
return /* @__PURE__ */ k("div", { className:
|
|
9699
|
-
s && /* @__PURE__ */ k("h3", { className:
|
|
9698
|
+
return /* @__PURE__ */ k("div", { className: Be.selectInputContainer, children: [
|
|
9699
|
+
s && /* @__PURE__ */ k("h3", { className: Be.labelContainer, children: [
|
|
9700
9700
|
m(s),
|
|
9701
9701
|
" ",
|
|
9702
|
-
l && /* @__PURE__ */ u("label", { style: { color:
|
|
9702
|
+
l && /* @__PURE__ */ u("label", { style: { color: C.error ? h : "" }, children: "*" })
|
|
9703
9703
|
] }),
|
|
9704
|
-
/* @__PURE__ */ k("div", { className:
|
|
9705
|
-
/* @__PURE__ */ k("div", { className:
|
|
9704
|
+
/* @__PURE__ */ k("div", { className: Be.selectWrapper, children: [
|
|
9705
|
+
/* @__PURE__ */ k("div", { className: Be.inputContainer, style: { width: g }, children: [
|
|
9706
9706
|
/* @__PURE__ */ k(
|
|
9707
9707
|
"select",
|
|
9708
9708
|
{
|
|
9709
|
-
...
|
|
9710
|
-
value:
|
|
9709
|
+
...b,
|
|
9710
|
+
value: b.value ?? "",
|
|
9711
9711
|
onChange: (L) => {
|
|
9712
|
-
const E = L.target.value,
|
|
9713
|
-
|
|
9712
|
+
const E = L.target.value, B = y.every((I) => typeof I.value == "number") ? Number(E) : E;
|
|
9713
|
+
b.onChange(B);
|
|
9714
9714
|
},
|
|
9715
|
-
className:
|
|
9715
|
+
className: Be.selectInput,
|
|
9716
9716
|
children: [
|
|
9717
9717
|
/* @__PURE__ */ u("option", { value: "", disabled: !0, hidden: !0, children: m(d || "selectOption") }),
|
|
9718
9718
|
y.map((L, E) => /* @__PURE__ */ u(
|
|
9719
9719
|
"option",
|
|
9720
9720
|
{
|
|
9721
9721
|
value: L.value,
|
|
9722
|
-
className:
|
|
9722
|
+
className: Be.option,
|
|
9723
9723
|
children: m(L.label)
|
|
9724
9724
|
},
|
|
9725
9725
|
E
|
|
@@ -9732,59 +9732,59 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9732
9732
|
{
|
|
9733
9733
|
src: wi,
|
|
9734
9734
|
alt: "Open",
|
|
9735
|
-
className:
|
|
9735
|
+
className: Be.dropdownArrow
|
|
9736
9736
|
}
|
|
9737
9737
|
)
|
|
9738
9738
|
] }),
|
|
9739
|
-
w && w.description && /* @__PURE__ */ u("div", { className:
|
|
9739
|
+
w && w.description && /* @__PURE__ */ u("div", { className: Be.optionDescription, children: m(w.description) })
|
|
9740
9740
|
] }),
|
|
9741
9741
|
/* @__PURE__ */ u(
|
|
9742
9742
|
vn,
|
|
9743
9743
|
{
|
|
9744
|
-
errorMessage: (N =
|
|
9744
|
+
errorMessage: (N = C.error) == null ? void 0 : N.message,
|
|
9745
9745
|
errorColor: x || h
|
|
9746
9746
|
}
|
|
9747
9747
|
)
|
|
9748
9748
|
] });
|
|
9749
9749
|
}
|
|
9750
9750
|
}
|
|
9751
|
-
) : /* @__PURE__ */ k("div", { className:
|
|
9752
|
-
s && /* @__PURE__ */ k("h3", { className:
|
|
9751
|
+
) : /* @__PURE__ */ k("div", { className: Be.selectInputContainer, children: [
|
|
9752
|
+
s && /* @__PURE__ */ k("h3", { className: Be.labelContainer, children: [
|
|
9753
9753
|
m(s),
|
|
9754
9754
|
" ",
|
|
9755
9755
|
l && /* @__PURE__ */ u("label", { children: "*" })
|
|
9756
9756
|
] }),
|
|
9757
|
-
/* @__PURE__ */ k("div", { className:
|
|
9757
|
+
/* @__PURE__ */ k("div", { className: Be.inputContainer, style: { width: g }, children: [
|
|
9758
9758
|
/* @__PURE__ */ k(
|
|
9759
9759
|
"select",
|
|
9760
9760
|
{
|
|
9761
9761
|
value: S ?? "",
|
|
9762
|
-
onChange: (
|
|
9763
|
-
const
|
|
9762
|
+
onChange: (b) => {
|
|
9763
|
+
const C = b.target.value, w = y.every((N) => typeof N.value == "number") ? Number(C) : C;
|
|
9764
9764
|
$(w);
|
|
9765
9765
|
},
|
|
9766
|
-
className:
|
|
9766
|
+
className: Be.selectInput,
|
|
9767
9767
|
children: [
|
|
9768
9768
|
/* @__PURE__ */ u("option", { value: "", disabled: !0, hidden: !0, children: m(d || "selectOption") }),
|
|
9769
|
-
y.map((
|
|
9769
|
+
y.map((b, C) => /* @__PURE__ */ u(
|
|
9770
9770
|
"option",
|
|
9771
9771
|
{
|
|
9772
|
-
value:
|
|
9773
|
-
className:
|
|
9774
|
-
children: m(
|
|
9772
|
+
value: b.value,
|
|
9773
|
+
className: Be.option,
|
|
9774
|
+
children: m(b.label)
|
|
9775
9775
|
},
|
|
9776
|
-
|
|
9776
|
+
C
|
|
9777
9777
|
))
|
|
9778
9778
|
]
|
|
9779
9779
|
}
|
|
9780
9780
|
),
|
|
9781
|
-
/* @__PURE__ */ u("img", { src: wi, alt: "Open", className:
|
|
9781
|
+
/* @__PURE__ */ u("img", { src: wi, alt: "Open", className: Be.dropdownArrow })
|
|
9782
9782
|
] }),
|
|
9783
9783
|
(() => {
|
|
9784
|
-
const
|
|
9785
|
-
(
|
|
9784
|
+
const b = y.find(
|
|
9785
|
+
(C) => C.value === S
|
|
9786
9786
|
);
|
|
9787
|
-
return
|
|
9787
|
+
return b && b.description ? /* @__PURE__ */ u("div", { className: Be.optionDescription, children: m(b.description) }) : null;
|
|
9788
9788
|
})()
|
|
9789
9789
|
] });
|
|
9790
9790
|
}, _d = "_radioButtonContainer_1e994_2", xd = "_wholeInputContainer_1e994_5", wd = "_questionContainer_1e994_27", Sd = "_radioQuestion_1e994_59", kd = "_inputContainer_1e994_63", Td = "_radioInput_1e994_93", kt = {
|
|
@@ -9803,13 +9803,13 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9803
9803
|
errorColor: a = "red",
|
|
9804
9804
|
options: l = [],
|
|
9805
9805
|
multi: c = !1
|
|
9806
|
-
} = e, { t: d } = ce(), { control: h, trigger: g, clearErrors: y } = t, { errorColor: m } = Cn((
|
|
9806
|
+
} = e, { t: d } = ce(), { control: h, trigger: g, clearErrors: y } = t, { errorColor: m } = Cn((_) => _), v = ({ options: _, onChange: x, actualValue: S }) => {
|
|
9807
9807
|
if (c && S && S.length > 0) {
|
|
9808
|
-
let $ = S.filter((
|
|
9808
|
+
let $ = S.filter((b) => b !== _);
|
|
9809
9809
|
x($);
|
|
9810
9810
|
}
|
|
9811
|
-
}, f = ({ options:
|
|
9812
|
-
c ? S && S.length > 0 ? x([...S,
|
|
9811
|
+
}, f = ({ options: _, onChange: x, actualValue: S }) => {
|
|
9812
|
+
c ? S && S.length > 0 ? x([...S, _]) : x([_]) : x(_);
|
|
9813
9813
|
};
|
|
9814
9814
|
return Se(o), /* @__PURE__ */ u(
|
|
9815
9815
|
bn,
|
|
@@ -9817,12 +9817,12 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9817
9817
|
control: h,
|
|
9818
9818
|
name: n,
|
|
9819
9819
|
rules: {
|
|
9820
|
-
validate: (
|
|
9820
|
+
validate: (_) => o && (_ == null || _ === "") ? `${d(r)} ${d("errorMessages.required")}` : null
|
|
9821
9821
|
},
|
|
9822
9822
|
render: ({
|
|
9823
|
-
formState: { errors:
|
|
9824
|
-
field: { onChange: x, onBlur: S, value: $, ref:
|
|
9825
|
-
fieldState:
|
|
9823
|
+
formState: { errors: _ },
|
|
9824
|
+
field: { onChange: x, onBlur: S, value: $, ref: b },
|
|
9825
|
+
fieldState: C
|
|
9826
9826
|
}) => {
|
|
9827
9827
|
var w;
|
|
9828
9828
|
return /* @__PURE__ */ u("div", { id: n + "id", className: kt.radioButtonContainer, children: /* @__PURE__ */ k("div", { className: kt.wholeInputContainer, children: [
|
|
@@ -9837,7 +9837,7 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9837
9837
|
o && /* @__PURE__ */ u(
|
|
9838
9838
|
"label",
|
|
9839
9839
|
{
|
|
9840
|
-
style: { color:
|
|
9840
|
+
style: { color: C.error ? a : "" },
|
|
9841
9841
|
children: "*"
|
|
9842
9842
|
}
|
|
9843
9843
|
)
|
|
@@ -9850,7 +9850,7 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9850
9850
|
label: N,
|
|
9851
9851
|
value: L,
|
|
9852
9852
|
disabled: E = !1,
|
|
9853
|
-
italicLabel:
|
|
9853
|
+
italicLabel: B
|
|
9854
9854
|
}, I) => {
|
|
9855
9855
|
const p = $ && c ? $.isArray && ($ == null ? void 0 : $.length) > 0 && $.some((O) => O === L) : $ === L;
|
|
9856
9856
|
return /* @__PURE__ */ k("label", { children: [
|
|
@@ -9860,7 +9860,7 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9860
9860
|
type: "radio",
|
|
9861
9861
|
checked: p,
|
|
9862
9862
|
onChange: () => {
|
|
9863
|
-
c ? p ?
|
|
9863
|
+
c ? p ? v({
|
|
9864
9864
|
actualValue: $,
|
|
9865
9865
|
options: l,
|
|
9866
9866
|
onChange: x
|
|
@@ -9881,7 +9881,7 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9881
9881
|
/* @__PURE__ */ u(
|
|
9882
9882
|
vn,
|
|
9883
9883
|
{
|
|
9884
|
-
errorMessage: (w =
|
|
9884
|
+
errorMessage: (w = C.error) == null ? void 0 : w.message,
|
|
9885
9885
|
errorColor: m || a
|
|
9886
9886
|
}
|
|
9887
9887
|
)
|
|
@@ -9913,14 +9913,14 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9913
9913
|
labelWidth: g = "300px",
|
|
9914
9914
|
sliderWidth: y = "300px",
|
|
9915
9915
|
minText: m,
|
|
9916
|
-
maxText:
|
|
9916
|
+
maxText: v,
|
|
9917
9917
|
disabled: f = !1,
|
|
9918
|
-
marks:
|
|
9918
|
+
marks: _ = Array.from(
|
|
9919
9919
|
{ length: a - s + 1 },
|
|
9920
|
-
(E,
|
|
9920
|
+
(E, B) => s + B
|
|
9921
9921
|
),
|
|
9922
9922
|
showMarksNumber: x = !0
|
|
9923
|
-
} = e, { t: S } = ce(), { control: $, trigger:
|
|
9923
|
+
} = e, { t: S } = ce(), { control: $, trigger: b, clearErrors: C } = t || {};
|
|
9924
9924
|
Se(d);
|
|
9925
9925
|
const { errorColorForm: w } = Cn((E) => E), [N, L] = le(l);
|
|
9926
9926
|
return t ? /* @__PURE__ */ u(
|
|
@@ -9932,7 +9932,7 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9932
9932
|
rules: {
|
|
9933
9933
|
required: d ? `${S(o)} ${S("errorMessages.required")}` : !1
|
|
9934
9934
|
},
|
|
9935
|
-
render: ({ field: E, fieldState:
|
|
9935
|
+
render: ({ field: E, fieldState: B }) => {
|
|
9936
9936
|
var I;
|
|
9937
9937
|
return /* @__PURE__ */ k(
|
|
9938
9938
|
"div",
|
|
@@ -9982,14 +9982,14 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
9982
9982
|
disabled: f
|
|
9983
9983
|
}
|
|
9984
9984
|
),
|
|
9985
|
-
|
|
9985
|
+
_ && /* @__PURE__ */ u("div", { className: Ee.labels, children: _.map((p) => /* @__PURE__ */ u("span", { children: x && p }, p)) })
|
|
9986
9986
|
] }),
|
|
9987
|
-
|
|
9987
|
+
v && /* @__PURE__ */ u("div", { className: Ee.maxLabel, children: S(v) })
|
|
9988
9988
|
] }),
|
|
9989
9989
|
/* @__PURE__ */ u(
|
|
9990
9990
|
vn,
|
|
9991
9991
|
{
|
|
9992
|
-
errorMessage: (I =
|
|
9992
|
+
errorMessage: (I = B.error) == null ? void 0 : I.message,
|
|
9993
9993
|
errorColor: w || h
|
|
9994
9994
|
}
|
|
9995
9995
|
)
|
|
@@ -10044,9 +10044,9 @@ const rd = "_textInputContainer_1o3iy_2", od = "_labelContainer_1o3iy_5", id = "
|
|
|
10044
10044
|
disabled: f
|
|
10045
10045
|
}
|
|
10046
10046
|
),
|
|
10047
|
-
|
|
10047
|
+
_ && /* @__PURE__ */ u("div", { className: Ee.labels, children: _.map((E) => /* @__PURE__ */ u("span", { children: x && E }, E)) })
|
|
10048
10048
|
] }),
|
|
10049
|
-
|
|
10049
|
+
v && /* @__PURE__ */ u("div", { className: Ee.maxLabel, children: S(v) })
|
|
10050
10050
|
] })
|
|
10051
10051
|
]
|
|
10052
10052
|
}
|
|
@@ -10188,9 +10188,9 @@ const Id = "_textDescriptionContainer_163pc_2", Pd = "_textDescriptionText_163pc
|
|
|
10188
10188
|
return /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u("h4", { children: "Default" }) }, `${a.code}${l}`);
|
|
10189
10189
|
}
|
|
10190
10190
|
}) });
|
|
10191
|
-
},
|
|
10192
|
-
categorySelector:
|
|
10193
|
-
sectionItemActive:
|
|
10191
|
+
}, Bd = "_categorySelector_1guuv_2", Fd = "_sectionItemActive_1guuv_16", zd = "_sectionItem_1guuv_16", jd = "_sectionItemError_1guuv_32", an = {
|
|
10192
|
+
categorySelector: Bd,
|
|
10193
|
+
sectionItemActive: Fd,
|
|
10194
10194
|
sectionItem: zd,
|
|
10195
10195
|
sectionItemError: jd
|
|
10196
10196
|
}, ki = ({
|
|
@@ -10247,32 +10247,32 @@ const Id = "_textDescriptionContainer_163pc_2", Pd = "_textDescriptionText_163pc
|
|
|
10247
10247
|
activeCategory: g = null,
|
|
10248
10248
|
activeCategoryColor: y = "#b32f5d",
|
|
10249
10249
|
categoriesWithErrors: m = [],
|
|
10250
|
-
onSubmit:
|
|
10250
|
+
onSubmit: v = (f) => console.log("Form submitted with: ", f)
|
|
10251
10251
|
}) => {
|
|
10252
|
-
const { t: f } = ce(), { handleSubmit:
|
|
10252
|
+
const { t: f } = ce(), { handleSubmit: _, control: x } = e;
|
|
10253
10253
|
J(() => {
|
|
10254
10254
|
s && Cn.setState(() => ({ errorColor: s }));
|
|
10255
10255
|
}, [s]);
|
|
10256
10256
|
const S = je(() => t ? t.filter((E) => E.category).map((E) => {
|
|
10257
|
-
var
|
|
10257
|
+
var B;
|
|
10258
10258
|
return {
|
|
10259
10259
|
id: E.categoryId,
|
|
10260
10260
|
label: E.category,
|
|
10261
|
-
hasSubcategories: ((
|
|
10261
|
+
hasSubcategories: ((B = E.subcategories) == null ? void 0 : B.length) > 0
|
|
10262
10262
|
};
|
|
10263
10263
|
}) : [], [t]), $ = (E) => {
|
|
10264
|
-
const
|
|
10265
|
-
return (
|
|
10266
|
-
}, [
|
|
10264
|
+
const B = t == null ? void 0 : t.find((I) => I.categoryId === E);
|
|
10265
|
+
return (B == null ? void 0 : B.subcategories) || [];
|
|
10266
|
+
}, [b, C] = le(
|
|
10267
10267
|
g || d || null
|
|
10268
10268
|
), [w, N] = le(null);
|
|
10269
10269
|
J(() => {
|
|
10270
|
-
!
|
|
10271
|
-
}, [S,
|
|
10272
|
-
const E = $(
|
|
10270
|
+
!b && S.length > 0 && C(S[0].id);
|
|
10271
|
+
}, [S, b]), J(() => {
|
|
10272
|
+
const E = $(b);
|
|
10273
10273
|
!w && (E == null ? void 0 : E.length) > 0 && N(E[0].id);
|
|
10274
|
-
}, [
|
|
10275
|
-
const L = (E,
|
|
10274
|
+
}, [b, w, t]);
|
|
10275
|
+
const L = (E, B) => {
|
|
10276
10276
|
var I;
|
|
10277
10277
|
if (((I = E.subcategories) == null ? void 0 : I.length) > 0) {
|
|
10278
10278
|
const p = E.subcategories;
|
|
@@ -10364,21 +10364,21 @@ const Id = "_textDescriptionContainer_163pc_2", Pd = "_textDescriptionText_163pc
|
|
|
10364
10364
|
)
|
|
10365
10365
|
] }, E.categoryId);
|
|
10366
10366
|
};
|
|
10367
|
-
return /* @__PURE__ */ k("form", { className: rn.formContainer, onSubmit:
|
|
10367
|
+
return /* @__PURE__ */ k("form", { className: rn.formContainer, onSubmit: _(v), children: [
|
|
10368
10368
|
c && S.length > 0 && /* @__PURE__ */ u("div", { className: rn.categorySelectorContainer, children: /* @__PURE__ */ u(
|
|
10369
10369
|
ki,
|
|
10370
10370
|
{
|
|
10371
|
-
activeCategory:
|
|
10371
|
+
activeCategory: b,
|
|
10372
10372
|
categories: S,
|
|
10373
10373
|
categoriesWithErrors: m,
|
|
10374
10374
|
onChange: (E) => {
|
|
10375
|
-
|
|
10375
|
+
C(E), N(null);
|
|
10376
10376
|
},
|
|
10377
10377
|
activeColor: y
|
|
10378
10378
|
}
|
|
10379
10379
|
) }),
|
|
10380
|
-
/* @__PURE__ */ u("div", { className: rn.formObjectContainer, children: t == null ? void 0 : t.map((E,
|
|
10381
|
-
const I = E.categoryId ===
|
|
10380
|
+
/* @__PURE__ */ u("div", { className: rn.formObjectContainer, children: t == null ? void 0 : t.map((E, B) => {
|
|
10381
|
+
const I = E.categoryId === b;
|
|
10382
10382
|
return E.category ? /* @__PURE__ */ u(
|
|
10383
10383
|
"div",
|
|
10384
10384
|
{
|
|
@@ -10398,7 +10398,7 @@ const Id = "_textDescriptionContainer_163pc_2", Pd = "_textDescriptionText_163pc
|
|
|
10398
10398
|
errorColor: s,
|
|
10399
10399
|
reactHookFormInstance: e
|
|
10400
10400
|
},
|
|
10401
|
-
`no-category-${
|
|
10401
|
+
`no-category-${B}`
|
|
10402
10402
|
);
|
|
10403
10403
|
}) }),
|
|
10404
10404
|
/* @__PURE__ */ k("div", { className: rn.buttonContainer, children: [
|
|
@@ -10565,9 +10565,9 @@ const mf = "_switchContainer_194wl_2", hf = "_labelRight_194wl_9", gf = "_labelL
|
|
|
10565
10565
|
colorOn: c = "#5A514D",
|
|
10566
10566
|
disabled: d = !1,
|
|
10567
10567
|
width: h = 240
|
|
10568
|
-
} = e, { t: g } = ce(), { control: y } = t || {}, [m,
|
|
10569
|
-
|
|
10570
|
-
},
|
|
10568
|
+
} = e, { t: g } = ce(), { control: y } = t || {}, [m, v] = le(l), f = (x) => {
|
|
10569
|
+
v(x), n && n(x);
|
|
10570
|
+
}, _ = (x, S) => /* @__PURE__ */ k("div", { className: Ut.switchContainer, style: { width: `${h}px` }, children: [
|
|
10571
10571
|
s && /* @__PURE__ */ u(
|
|
10572
10572
|
"span",
|
|
10573
10573
|
{
|
|
@@ -10604,9 +10604,9 @@ const mf = "_switchContainer_194wl_2", hf = "_labelRight_194wl_9", gf = "_labelL
|
|
|
10604
10604
|
name: o,
|
|
10605
10605
|
control: y,
|
|
10606
10606
|
defaultValue: l,
|
|
10607
|
-
render: ({ field: x }) =>
|
|
10607
|
+
render: ({ field: x }) => _(x.value, x.onChange)
|
|
10608
10608
|
}
|
|
10609
|
-
) :
|
|
10609
|
+
) : _(m, f);
|
|
10610
10610
|
};
|
|
10611
10611
|
vf.propTypes = {
|
|
10612
10612
|
input: i.shape({
|
|
@@ -10655,7 +10655,7 @@ const kf = "_container_1pl8d_3", Tf = "_burger_1pl8d_10", $f = "_menu_1pl8d_21",
|
|
|
10655
10655
|
textColor: n,
|
|
10656
10656
|
iconColor: r
|
|
10657
10657
|
}) => {
|
|
10658
|
-
const [o, s] = le(!1), a = () => s((
|
|
10658
|
+
const [o, s] = le(!1), a = () => s((v) => !v), l = () => s(!1), c = 7, d = o ? 11 : 0, h = o ? 13 : 0, g = o ? -11.51666 : 0, y = o ? -13 : 0, m = "0.35s";
|
|
10659
10659
|
return /* @__PURE__ */ k("div", { className: rt.container, children: [
|
|
10660
10660
|
/* @__PURE__ */ u("button", { onClick: a, className: rt.burger, children: /* @__PURE__ */ k(
|
|
10661
10661
|
"svg",
|
|
@@ -10730,28 +10730,28 @@ const kf = "_container_1pl8d_3", Tf = "_burger_1pl8d_10", $f = "_menu_1pl8d_21",
|
|
|
10730
10730
|
{
|
|
10731
10731
|
className: `${rt.menu} ${o ? rt.menuOpen : rt.menuClose}`,
|
|
10732
10732
|
style: { backgroundColor: t, color: n },
|
|
10733
|
-
children: /* @__PURE__ */ u("ul", { className: rt.list, children: e.map((
|
|
10734
|
-
|
|
10735
|
-
|
|
10733
|
+
children: /* @__PURE__ */ u("ul", { className: rt.list, children: e.map((v, f) => /* @__PURE__ */ k("li", { className: rt.item, children: [
|
|
10734
|
+
v.url && /* @__PURE__ */ u(
|
|
10735
|
+
Fi,
|
|
10736
10736
|
{
|
|
10737
|
-
to:
|
|
10738
|
-
className: ({ isActive:
|
|
10737
|
+
to: v.url,
|
|
10738
|
+
className: ({ isActive: _ }) => `${rt.link} ${_ ? rt.active : ""}`,
|
|
10739
10739
|
onClick: l,
|
|
10740
10740
|
style: { color: n },
|
|
10741
|
-
children:
|
|
10741
|
+
children: v.name
|
|
10742
10742
|
}
|
|
10743
10743
|
),
|
|
10744
|
-
|
|
10744
|
+
v.onclick && /* @__PURE__ */ u(
|
|
10745
10745
|
"button",
|
|
10746
10746
|
{
|
|
10747
10747
|
className: rt.button,
|
|
10748
10748
|
onClick: () => {
|
|
10749
|
-
|
|
10749
|
+
v.onclick(), l();
|
|
10750
10750
|
},
|
|
10751
|
-
children:
|
|
10751
|
+
children: v.name
|
|
10752
10752
|
}
|
|
10753
10753
|
),
|
|
10754
|
-
|
|
10754
|
+
v.component && v.component
|
|
10755
10755
|
] }, f)) })
|
|
10756
10756
|
}
|
|
10757
10757
|
)
|
|
@@ -10783,21 +10783,21 @@ const Mf = "_svgContainer_1rxoe_2", Rf = "_svg_1rxoe_2", Ti = {
|
|
|
10783
10783
|
showYAxisLabels: c = !0,
|
|
10784
10784
|
showGrid: d = !0,
|
|
10785
10785
|
xAxisTickRotation: h = -90,
|
|
10786
|
-
yAxisTickFormat: g = (
|
|
10786
|
+
yAxisTickFormat: g = (b) => b.toLocaleString("es-ES"),
|
|
10787
10787
|
barPadding: y = 0.1,
|
|
10788
10788
|
groupPadding: m = 0.05,
|
|
10789
|
-
animationDuration:
|
|
10789
|
+
animationDuration: v = 750,
|
|
10790
10790
|
onBarHover: f,
|
|
10791
|
-
onBarClick:
|
|
10791
|
+
onBarClick: _,
|
|
10792
10792
|
title: x,
|
|
10793
10793
|
xAxisLabel: S,
|
|
10794
10794
|
yAxisLabel: $
|
|
10795
10795
|
}) => {
|
|
10796
|
-
const
|
|
10796
|
+
const b = Se(), C = Se(), [w, N] = le({ width: 0, height: 0 });
|
|
10797
10797
|
return J(() => {
|
|
10798
10798
|
const L = () => {
|
|
10799
|
-
if (
|
|
10800
|
-
const E =
|
|
10799
|
+
if (C.current) {
|
|
10800
|
+
const E = C.current.getBoundingClientRect().width;
|
|
10801
10801
|
N({
|
|
10802
10802
|
width: typeof r == "number" ? r : E,
|
|
10803
10803
|
height: o
|
|
@@ -10807,7 +10807,7 @@ const Mf = "_svgContainer_1rxoe_2", Rf = "_svg_1rxoe_2", Ti = {
|
|
|
10807
10807
|
return L(), window.addEventListener("resize", L), () => window.removeEventListener("resize", L);
|
|
10808
10808
|
}, [r, o]), J(() => {
|
|
10809
10809
|
if (!e || e.length === 0 || w.width === 0) return;
|
|
10810
|
-
const L = gt(
|
|
10810
|
+
const L = gt(b.current), E = w.width, B = w.height, I = E - s.left - s.right, p = B - s.top - s.bottom;
|
|
10811
10811
|
if (I <= 0 || p <= 0) return;
|
|
10812
10812
|
const O = e.map((V) => V.anyo || V.year || V.x), T = t, z = qn(e, (V) => qn(T, (Z) => V[Z])) || 0, j = Wn(e, (V) => Wn(T, (Z) => V[Z])) || 0, Y = Ir().domain(O).rangeRound([0, I]).paddingInner(y), W = Ir().domain(T).rangeRound([0, Y.bandwidth()]).padding(m), ue = Ii().domain([Math.min(0, z), j]).nice().rangeRound([p, 0]), D = Pi().domain(T).range(Array.isArray(n) ? n : Object.values(n || {}));
|
|
10813
10813
|
L.selectAll("*").remove();
|
|
@@ -10822,12 +10822,12 @@ const Mf = "_svgContainer_1rxoe_2", Rf = "_svg_1rxoe_2", Ti = {
|
|
|
10822
10822
|
value: V[Z],
|
|
10823
10823
|
data: V
|
|
10824
10824
|
}))
|
|
10825
|
-
).enter().append("rect").attr("class", "bar").attr("x", (V) => W(V.key)).attr("y", p).attr("width", W.bandwidth()).attr("height", 0).attr("fill", (V) => D(V.key)).style("cursor", f ||
|
|
10826
|
-
K.transition().duration(
|
|
10825
|
+
).enter().append("rect").attr("class", "bar").attr("x", (V) => W(V.key)).attr("y", p).attr("width", W.bandwidth()).attr("height", 0).attr("fill", (V) => D(V.key)).style("cursor", f || _ ? "pointer" : "default");
|
|
10826
|
+
K.transition().duration(v).attr("y", (V) => ue(Math.max(0, V.value))).attr("height", (V) => Math.abs(ue(V.value) - ue(0))), f && K.on("mouseover", function(V, Z) {
|
|
10827
10827
|
gt(this).style("opacity", 0.8), f(V, Z);
|
|
10828
10828
|
}).on("mouseout", function(V, Z) {
|
|
10829
10829
|
gt(this).style("opacity", 1);
|
|
10830
|
-
}),
|
|
10830
|
+
}), _ && K.on("click", _);
|
|
10831
10831
|
}, [
|
|
10832
10832
|
e,
|
|
10833
10833
|
t,
|
|
@@ -10841,22 +10841,22 @@ const Mf = "_svgContainer_1rxoe_2", Rf = "_svg_1rxoe_2", Ti = {
|
|
|
10841
10841
|
d,
|
|
10842
10842
|
h,
|
|
10843
10843
|
g,
|
|
10844
|
-
|
|
10844
|
+
v,
|
|
10845
10845
|
f,
|
|
10846
|
-
|
|
10846
|
+
_,
|
|
10847
10847
|
x,
|
|
10848
10848
|
S,
|
|
10849
10849
|
$
|
|
10850
10850
|
]), /* @__PURE__ */ u(
|
|
10851
10851
|
"div",
|
|
10852
10852
|
{
|
|
10853
|
-
ref:
|
|
10853
|
+
ref: C,
|
|
10854
10854
|
className: `${Ti.svgContainer} ${a}`,
|
|
10855
10855
|
style: { width: r, height: o + s.top + s.bottom },
|
|
10856
10856
|
children: /* @__PURE__ */ u(
|
|
10857
10857
|
"svg",
|
|
10858
10858
|
{
|
|
10859
|
-
ref:
|
|
10859
|
+
ref: b,
|
|
10860
10860
|
className: Ti.svg,
|
|
10861
10861
|
width: w.width,
|
|
10862
10862
|
height: w.height
|
|
@@ -10914,20 +10914,20 @@ const If = "_svgContainer_7fkic_2", Pf = "_svg_7fkic_2", $i = {
|
|
|
10914
10914
|
xAxisTickRotation: g = -90,
|
|
10915
10915
|
yAxisTickFormat: y = (E) => E.toLocaleString("es-ES"),
|
|
10916
10916
|
barPadding: m = 0.4,
|
|
10917
|
-
animationDuration:
|
|
10917
|
+
animationDuration: v = 750,
|
|
10918
10918
|
onBarHover: f,
|
|
10919
|
-
onBarClick:
|
|
10919
|
+
onBarClick: _,
|
|
10920
10920
|
title: x,
|
|
10921
10921
|
xAxisLabel: S,
|
|
10922
10922
|
yAxisLabel: $,
|
|
10923
|
-
stackOrder:
|
|
10923
|
+
stackOrder: b = "reverse",
|
|
10924
10924
|
// "reverse", "ascending", "descending", "insideOut", "none"
|
|
10925
|
-
showTooltip:
|
|
10925
|
+
showTooltip: C = !0,
|
|
10926
10926
|
reverseKeys: w = !0,
|
|
10927
10927
|
minBarSlotWidth: N = 60,
|
|
10928
10928
|
wrapXAxisLabels: L = !0
|
|
10929
10929
|
}) => {
|
|
10930
|
-
const E = Se(),
|
|
10930
|
+
const E = Se(), B = Se();
|
|
10931
10931
|
Se();
|
|
10932
10932
|
const [I, p] = le({
|
|
10933
10933
|
containerWidth: 0,
|
|
@@ -10935,8 +10935,8 @@ const If = "_svgContainer_7fkic_2", Pf = "_svg_7fkic_2", $i = {
|
|
|
10935
10935
|
}), { t: O } = ce();
|
|
10936
10936
|
return J(() => {
|
|
10937
10937
|
const T = () => {
|
|
10938
|
-
if (
|
|
10939
|
-
const z =
|
|
10938
|
+
if (B.current) {
|
|
10939
|
+
const z = B.current.getBoundingClientRect().width;
|
|
10940
10940
|
p({
|
|
10941
10941
|
containerWidth: typeof o == "number" ? o : z,
|
|
10942
10942
|
height: s
|
|
@@ -10958,7 +10958,7 @@ const If = "_svgContainer_7fkic_2", Pf = "_svg_7fkic_2", $i = {
|
|
|
10958
10958
|
})), Ce = we.filter((_e) => _e.value < 0), Le = we.filter((_e) => _e.value >= 0);
|
|
10959
10959
|
let qe = 0;
|
|
10960
10960
|
Ce.forEach((_e) => {
|
|
10961
|
-
const We = qe, R = qe + _e.value,
|
|
10961
|
+
const We = qe, R = qe + _e.value, F = Math.abs(R - We);
|
|
10962
10962
|
K.push({
|
|
10963
10963
|
key: _e.key,
|
|
10964
10964
|
value: _e.value,
|
|
@@ -10966,20 +10966,20 @@ const If = "_svgContainer_7fkic_2", Pf = "_svg_7fkic_2", $i = {
|
|
|
10966
10966
|
// El punto más alto
|
|
10967
10967
|
y1: Math.min(We, R),
|
|
10968
10968
|
// El punto más bajo
|
|
10969
|
-
height:
|
|
10969
|
+
height: F,
|
|
10970
10970
|
data: _e.data,
|
|
10971
10971
|
xKey: re
|
|
10972
10972
|
}), qe = R;
|
|
10973
10973
|
});
|
|
10974
10974
|
let Je = 0;
|
|
10975
10975
|
Le.forEach((_e) => {
|
|
10976
|
-
const We = Je, R = Je + _e.value,
|
|
10976
|
+
const We = Je, R = Je + _e.value, F = R - We;
|
|
10977
10977
|
K.push({
|
|
10978
10978
|
key: _e.key,
|
|
10979
10979
|
value: _e.value,
|
|
10980
10980
|
y0: Math.min(We, R),
|
|
10981
10981
|
y1: Math.max(We, R),
|
|
10982
|
-
height:
|
|
10982
|
+
height: F,
|
|
10983
10983
|
data: _e.data,
|
|
10984
10984
|
xKey: re
|
|
10985
10985
|
}), Je = R;
|
|
@@ -11034,11 +11034,11 @@ const If = "_svgContainer_7fkic_2", Pf = "_svg_7fkic_2", $i = {
|
|
|
11034
11034
|
).text(qe[0]);
|
|
11035
11035
|
else {
|
|
11036
11036
|
const R = -(qe.length * 14 / 2) + 14 / 2;
|
|
11037
|
-
qe.forEach((
|
|
11037
|
+
qe.forEach((F, H) => {
|
|
11038
11038
|
Je.append("text").attr("x", R + H * 14).attr("y", 19).style("text-anchor", "end").style("font-size", "11px").style("fill", "#605B56").attr(
|
|
11039
11039
|
"transform",
|
|
11040
11040
|
`rotate(${g} ${R + H * 14} 15)`
|
|
11041
|
-
).text(
|
|
11041
|
+
).text(F);
|
|
11042
11042
|
});
|
|
11043
11043
|
}
|
|
11044
11044
|
}), S && de.append("text").attr(
|
|
@@ -11046,16 +11046,16 @@ const If = "_svgContainer_7fkic_2", Pf = "_svg_7fkic_2", $i = {
|
|
|
11046
11046
|
`translate(${ue / 2}, ${M + a.bottom - 5})`
|
|
11047
11047
|
).style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(S)), d && (de.append("g").attr("class", "y-axis").call(Pr(U).ticks(6).tickFormat(y)).call((q) => q.select(".domain").remove()), de.append("g").attr("class", "y-ticks").attr("transform", `translate(${ue}, 0)`).call(Pr(U).ticks(6).tickSizeInner(ue)).call((q) => q.select(".domain").remove()).call((q) => q.selectAll(".tick text").remove()), $ && de.append("text").attr("transform", "rotate(-90)").attr("y", 0 - a.left).attr("x", 0 - M / 2).attr("dy", "1em").style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text($));
|
|
11048
11048
|
let se;
|
|
11049
|
-
|
|
11049
|
+
C && (se = gt("body").append("div").attr("class", "chart-tooltip").style("position", "absolute").style("visibility", "hidden").style("background", "rgba(0, 0, 0, 0.8)").style("color", "white").style("padding", "8px").style("border-radius", "4px").style("font-size", "12px").style("pointer-events", "none").style("z-index", "1000"));
|
|
11050
11050
|
const Ie = de.selectAll(".segment").data(K, (q) => `${q.xKey}-${q.key}`);
|
|
11051
11051
|
Ie.exit().remove();
|
|
11052
11052
|
const tt = Ie.enter().append("rect").attr("class", "segment").attr("x", (q) => G(q.xKey)).attr("width", G.bandwidth()).attr("y", (q) => U(0)).attr("height", 0).attr("fill", (q) => oe(q.key)).style(
|
|
11053
11053
|
"cursor",
|
|
11054
|
-
f ||
|
|
11054
|
+
f || _ || C ? "pointer" : "default"
|
|
11055
11055
|
).merge(Ie);
|
|
11056
|
-
if (tt.transition().duration(
|
|
11056
|
+
if (tt.transition().duration(v).attr("x", (q) => G(q.xKey)).attr("y", (q) => Math.min(U(q.y0), U(q.y1))).attr("height", (q) => Math.abs(U(q.y1) - U(q.y0))), (C || f) && tt.on("mouseover", function(q, re) {
|
|
11057
11057
|
const we = re.value;
|
|
11058
|
-
|
|
11058
|
+
C && se && se.style("visibility", "visible").html(`
|
|
11059
11059
|
<strong>${O(re.key)}</strong><br/>
|
|
11060
11060
|
${re.xKey}<br/>
|
|
11061
11061
|
${y(we)}
|
|
@@ -11065,12 +11065,12 @@ const If = "_svgContainer_7fkic_2", Pf = "_svg_7fkic_2", $i = {
|
|
|
11065
11065
|
data: re.data
|
|
11066
11066
|
});
|
|
11067
11067
|
}).on("mousemove", function(q) {
|
|
11068
|
-
|
|
11068
|
+
C && se && se.style("top", q.pageY - 10 + "px").style("left", q.pageX + 10 + "px");
|
|
11069
11069
|
}).on("mouseout", function() {
|
|
11070
|
-
|
|
11071
|
-
}),
|
|
11070
|
+
C && se && se.style("visibility", "hidden"), gt(this).style("opacity", 1);
|
|
11071
|
+
}), _ && tt.on("click", function(q, re) {
|
|
11072
11072
|
const we = re.value;
|
|
11073
|
-
|
|
11073
|
+
_(q, {
|
|
11074
11074
|
key: re.key,
|
|
11075
11075
|
value: we,
|
|
11076
11076
|
data: re.data
|
|
@@ -11095,20 +11095,20 @@ const If = "_svgContainer_7fkic_2", Pf = "_svg_7fkic_2", $i = {
|
|
|
11095
11095
|
h,
|
|
11096
11096
|
g,
|
|
11097
11097
|
y,
|
|
11098
|
-
|
|
11098
|
+
v,
|
|
11099
11099
|
f,
|
|
11100
|
-
|
|
11100
|
+
_,
|
|
11101
11101
|
x,
|
|
11102
11102
|
S,
|
|
11103
11103
|
$,
|
|
11104
|
-
|
|
11105
|
-
|
|
11104
|
+
b,
|
|
11105
|
+
C,
|
|
11106
11106
|
w,
|
|
11107
11107
|
L
|
|
11108
11108
|
]), /* @__PURE__ */ u(
|
|
11109
11109
|
"div",
|
|
11110
11110
|
{
|
|
11111
|
-
ref:
|
|
11111
|
+
ref: B,
|
|
11112
11112
|
className: `${$i.svgContainer} ${l}`,
|
|
11113
11113
|
style: {
|
|
11114
11114
|
width: o,
|
|
@@ -11160,9 +11160,9 @@ Vf.propTypes = {
|
|
|
11160
11160
|
minBarSlotWidth: i.number,
|
|
11161
11161
|
wrapXAxisLabels: i.bool
|
|
11162
11162
|
};
|
|
11163
|
-
const
|
|
11164
|
-
externalContainer:
|
|
11165
|
-
externalSintetic:
|
|
11163
|
+
const Bf = "_externalContainer_1er0i_2", Ff = "_externalSintetic_1er0i_9", zf = "_titles_1er0i_13", jf = "_titleContainer_1er0i_22", qf = "_yearTitles_1er0i_36", Wf = "_yearTitle_1er0i_36", Uf = "_yearDatas_1er0i_50", Zf = "_yearDataContainer_1er0i_58", Hf = "_yearDataContent_1er0i_66", Kf = "_bigNumber_1er0i_79", Gf = "_circle_1er0i_82", Yf = "_totalContainer_1er0i_99", Xf = "_total_1er0i_99", Fe = {
|
|
11164
|
+
externalContainer: Bf,
|
|
11165
|
+
externalSintetic: Ff,
|
|
11166
11166
|
titles: zf,
|
|
11167
11167
|
titleContainer: jf,
|
|
11168
11168
|
yearTitles: qf,
|
|
@@ -11207,50 +11207,50 @@ const Ff = "_externalContainer_1er0i_2", Bf = "_externalSintetic_1er0i_9", zf =
|
|
|
11207
11207
|
return /* @__PURE__ */ k(
|
|
11208
11208
|
"div",
|
|
11209
11209
|
{
|
|
11210
|
-
className: `${
|
|
11210
|
+
className: `${Fe.externalContainer} ${a === "sin" ? Fe.externalSintetic : ""}`,
|
|
11211
11211
|
children: [
|
|
11212
11212
|
s === !0 && /* @__PURE__ */ k(pn, { children: [
|
|
11213
11213
|
/* @__PURE__ */ u("div", {}),
|
|
11214
|
-
/* @__PURE__ */ u("div", { className:
|
|
11214
|
+
/* @__PURE__ */ u("div", { className: Fe.yearTitles, children: e.map((m, v) => /* @__PURE__ */ u("div", { className: Fe.yearTitle, style: { width: h }, children: m.anyo }, v)) })
|
|
11215
11215
|
] }),
|
|
11216
|
-
/* @__PURE__ */ u("div", { className:
|
|
11216
|
+
/* @__PURE__ */ u("div", { className: Fe.titles, children: t.map((m, v) => /* @__PURE__ */ k("div", { className: Fe.titleContainer, children: [
|
|
11217
11217
|
g(r[m]),
|
|
11218
11218
|
a !== "sin" && /* @__PURE__ */ u(
|
|
11219
11219
|
"span",
|
|
11220
11220
|
{
|
|
11221
|
-
className:
|
|
11221
|
+
className: Fe.circle,
|
|
11222
11222
|
style: { background: n[m] }
|
|
11223
11223
|
}
|
|
11224
11224
|
)
|
|
11225
|
-
] },
|
|
11226
|
-
o === !0 && /* @__PURE__ */ u("div", { className:
|
|
11225
|
+
] }, v)) }),
|
|
11226
|
+
o === !0 && /* @__PURE__ */ u("div", { className: Fe.totalContainer, children: t.map((m, v) => {
|
|
11227
11227
|
var f;
|
|
11228
11228
|
return /* @__PURE__ */ k(
|
|
11229
11229
|
"div",
|
|
11230
11230
|
{
|
|
11231
|
-
className: `${
|
|
11231
|
+
className: `${Fe.total} ${d(m, e) > 9999 || d(m, e) < -9999 ? Fe.bigNumber : ""}`,
|
|
11232
11232
|
children: [
|
|
11233
11233
|
(f = d(m, e)) == null ? void 0 : f.toLocaleString("es-ES"),
|
|
11234
11234
|
" ",
|
|
11235
11235
|
y(m)
|
|
11236
11236
|
]
|
|
11237
11237
|
},
|
|
11238
|
-
|
|
11238
|
+
v
|
|
11239
11239
|
);
|
|
11240
11240
|
}) }),
|
|
11241
|
-
/* @__PURE__ */ u("div", { className:
|
|
11242
|
-
(f,
|
|
11241
|
+
/* @__PURE__ */ u("div", { className: Fe.yearDatas, children: e.map((m, v) => /* @__PURE__ */ u("div", { className: Fe.yearDataContainer, style: { width: h }, children: t.map(
|
|
11242
|
+
(f, _) => {
|
|
11243
11243
|
var x, S;
|
|
11244
11244
|
return isNaN(m[f]) ? null : /* @__PURE__ */ u(
|
|
11245
11245
|
"div",
|
|
11246
11246
|
{
|
|
11247
|
-
className: `${
|
|
11247
|
+
className: `${Fe.yearDataContent} ${m[f] > 9999 || m[f] < -9999 ? Fe.bigNumber : ""}`,
|
|
11248
11248
|
children: m[f] < 1e4 || m[f] > -1e4 ? (x = Qf(m[f])) == null ? void 0 : x.toLocaleString("es-ES") : (S = m[f]) == null ? void 0 : S.toLocaleString("es-ES")
|
|
11249
11249
|
},
|
|
11250
|
-
|
|
11250
|
+
_
|
|
11251
11251
|
);
|
|
11252
11252
|
}
|
|
11253
|
-
) },
|
|
11253
|
+
) }, v)) })
|
|
11254
11254
|
]
|
|
11255
11255
|
}
|
|
11256
11256
|
);
|
|
@@ -11472,7 +11472,7 @@ const ip = ({
|
|
|
11472
11472
|
containerStyles: h = {},
|
|
11473
11473
|
alignLeft: g = !1
|
|
11474
11474
|
}) => {
|
|
11475
|
-
const [y, m] = le(null),
|
|
11475
|
+
const [y, m] = le(null), v = r / 2, f = r / 2, _ = r / 2 - 14, x = e === "donut" ? _ - o : 0, S = e === "donut" ? _ - o / 2 : _ * 0.62, $ = je(() => op(t), [t]), b = y !== null ? $[y] : null, C = $.some((N) => N.ea - N.sa >= 359.99), w = a || (l === "transparent" ? rp : l);
|
|
11476
11476
|
return /* @__PURE__ */ k(
|
|
11477
11477
|
"div",
|
|
11478
11478
|
{
|
|
@@ -11519,9 +11519,9 @@ const ip = ({
|
|
|
11519
11519
|
alignItems: "center",
|
|
11520
11520
|
gap: "8px",
|
|
11521
11521
|
transition: "opacity 0.15s",
|
|
11522
|
-
opacity:
|
|
11522
|
+
opacity: b ? 1 : 0
|
|
11523
11523
|
},
|
|
11524
|
-
children:
|
|
11524
|
+
children: b && /* @__PURE__ */ k(pn, { children: [
|
|
11525
11525
|
/* @__PURE__ */ u(
|
|
11526
11526
|
"span",
|
|
11527
11527
|
{
|
|
@@ -11530,7 +11530,7 @@ const ip = ({
|
|
|
11530
11530
|
width: "10px",
|
|
11531
11531
|
height: "10px",
|
|
11532
11532
|
borderRadius: "50%",
|
|
11533
|
-
background:
|
|
11533
|
+
background: b.color || Rr,
|
|
11534
11534
|
flexShrink: 0
|
|
11535
11535
|
}
|
|
11536
11536
|
}
|
|
@@ -11544,9 +11544,9 @@ const ip = ({
|
|
|
11544
11544
|
fontWeight: "600"
|
|
11545
11545
|
},
|
|
11546
11546
|
children: [
|
|
11547
|
-
|
|
11547
|
+
b.title,
|
|
11548
11548
|
" — ",
|
|
11549
|
-
|
|
11549
|
+
b.value,
|
|
11550
11550
|
"%"
|
|
11551
11551
|
]
|
|
11552
11552
|
}
|
|
@@ -11576,11 +11576,11 @@ const ip = ({
|
|
|
11576
11576
|
style: { overflow: "visible" },
|
|
11577
11577
|
children: [
|
|
11578
11578
|
$.map((N, L) => {
|
|
11579
|
-
const E = y === L, { tx:
|
|
11579
|
+
const E = y === L, { tx: B, ty: I } = E && !C ? Ei(v, f, N.sa, N.ea, 10) : { tx: 0, ty: 0 };
|
|
11580
11580
|
return /* @__PURE__ */ u(
|
|
11581
11581
|
"g",
|
|
11582
11582
|
{
|
|
11583
|
-
transform: `translate(${
|
|
11583
|
+
transform: `translate(${B}, ${I})`,
|
|
11584
11584
|
style: {
|
|
11585
11585
|
transition: "transform 0.18s ease",
|
|
11586
11586
|
pointerEvents: "none"
|
|
@@ -11588,7 +11588,7 @@ const ip = ({
|
|
|
11588
11588
|
children: /* @__PURE__ */ u(
|
|
11589
11589
|
"path",
|
|
11590
11590
|
{
|
|
11591
|
-
d: Ni(
|
|
11591
|
+
d: Ni(v, f, x, _, N.sa, N.ea),
|
|
11592
11592
|
fill: N.color || Rr,
|
|
11593
11593
|
style: {
|
|
11594
11594
|
filter: E ? "brightness(1.25)" : "brightness(1)",
|
|
@@ -11600,12 +11600,12 @@ const ip = ({
|
|
|
11600
11600
|
L
|
|
11601
11601
|
);
|
|
11602
11602
|
}),
|
|
11603
|
-
!
|
|
11604
|
-
const E = ut(
|
|
11603
|
+
!C && $.map((N, L) => {
|
|
11604
|
+
const E = ut(v, f, _, N.sa), B = e === "cheese" ? v : ut(v, f, x, N.sa).x, I = e === "cheese" ? f : ut(v, f, x, N.sa).y;
|
|
11605
11605
|
return /* @__PURE__ */ u(
|
|
11606
11606
|
"line",
|
|
11607
11607
|
{
|
|
11608
|
-
x1:
|
|
11608
|
+
x1: B,
|
|
11609
11609
|
y1: I,
|
|
11610
11610
|
x2: E.x,
|
|
11611
11611
|
y2: E.y,
|
|
@@ -11619,11 +11619,11 @@ const ip = ({
|
|
|
11619
11619
|
}),
|
|
11620
11620
|
$.map((N, L) => {
|
|
11621
11621
|
if (N.ea - N.sa < 20) return null;
|
|
11622
|
-
const E = y === L, { tx:
|
|
11622
|
+
const E = y === L, { tx: B, ty: I } = E && !C ? Ei(v, f, N.sa, N.ea, 10) : { tx: 0, ty: 0 }, p = N.sa + (N.ea - N.sa) / 2, O = ut(v, f, S, p);
|
|
11623
11623
|
return /* @__PURE__ */ k(
|
|
11624
11624
|
"text",
|
|
11625
11625
|
{
|
|
11626
|
-
x: O.x +
|
|
11626
|
+
x: O.x + B,
|
|
11627
11627
|
y: O.y + I,
|
|
11628
11628
|
textAnchor: "middle",
|
|
11629
11629
|
dominantBaseline: "middle",
|
|
@@ -11644,7 +11644,7 @@ const ip = ({
|
|
|
11644
11644
|
$.map((N, L) => /* @__PURE__ */ u(
|
|
11645
11645
|
"path",
|
|
11646
11646
|
{
|
|
11647
|
-
d: Ni(
|
|
11647
|
+
d: Ni(v, f, x, _, N.sa, N.ea),
|
|
11648
11648
|
fill: "transparent",
|
|
11649
11649
|
style: { cursor: "pointer" },
|
|
11650
11650
|
onMouseEnter: () => m(L),
|
|
@@ -11755,10 +11755,10 @@ const Oi = [
|
|
|
11755
11755
|
const [h, g] = le(s ? 0 : 1);
|
|
11756
11756
|
J(() => {
|
|
11757
11757
|
if (!s) return;
|
|
11758
|
-
const
|
|
11759
|
-
return () => cancelAnimationFrame(
|
|
11758
|
+
const v = requestAnimationFrame(() => g(1));
|
|
11759
|
+
return () => cancelAnimationFrame(v);
|
|
11760
11760
|
}, [s]);
|
|
11761
|
-
const y = Math.max(...e.map((
|
|
11761
|
+
const y = Math.max(...e.map((v) => v.value), 1), m = a ?? "6px";
|
|
11762
11762
|
return /* @__PURE__ */ k(
|
|
11763
11763
|
"div",
|
|
11764
11764
|
{
|
|
@@ -11786,8 +11786,8 @@ const Oi = [
|
|
|
11786
11786
|
children: t
|
|
11787
11787
|
}
|
|
11788
11788
|
),
|
|
11789
|
-
/* @__PURE__ */ u("div", { style: { display: "flex", flexDirection: "column", gap: "18px" }, children: e.map((
|
|
11790
|
-
const
|
|
11789
|
+
/* @__PURE__ */ u("div", { style: { display: "flex", flexDirection: "column", gap: "18px" }, children: e.map((v, f) => {
|
|
11790
|
+
const _ = v.color || Oi[f % Oi.length], x = v.value / y * 100 * h;
|
|
11791
11791
|
return /* @__PURE__ */ k(
|
|
11792
11792
|
"div",
|
|
11793
11793
|
{
|
|
@@ -11802,7 +11802,7 @@ const Oi = [
|
|
|
11802
11802
|
fontWeight: "400",
|
|
11803
11803
|
opacity: 0.9
|
|
11804
11804
|
},
|
|
11805
|
-
children:
|
|
11805
|
+
children: v.title
|
|
11806
11806
|
}
|
|
11807
11807
|
),
|
|
11808
11808
|
/* @__PURE__ */ k(
|
|
@@ -11825,7 +11825,7 @@ const Oi = [
|
|
|
11825
11825
|
top: 0,
|
|
11826
11826
|
height: "100%",
|
|
11827
11827
|
width: `${x}%`,
|
|
11828
|
-
background:
|
|
11828
|
+
background: _,
|
|
11829
11829
|
borderRadius: m,
|
|
11830
11830
|
transition: s ? "width 0.8s cubic-bezier(0.16, 1, 0.3, 1)" : "none"
|
|
11831
11831
|
}
|
|
@@ -11850,7 +11850,7 @@ const Oi = [
|
|
|
11850
11850
|
paintOrder: "stroke fill"
|
|
11851
11851
|
} : {}
|
|
11852
11852
|
},
|
|
11853
|
-
children:
|
|
11853
|
+
children: v.value
|
|
11854
11854
|
}
|
|
11855
11855
|
)
|
|
11856
11856
|
]
|
|
@@ -11905,19 +11905,22 @@ const Ai = [
|
|
|
11905
11905
|
const [g, y] = le(c ? 0 : 1);
|
|
11906
11906
|
J(() => {
|
|
11907
11907
|
if (!c) return;
|
|
11908
|
-
const
|
|
11908
|
+
const $ = requestAnimationFrame(
|
|
11909
11909
|
() => requestAnimationFrame(() => y(1))
|
|
11910
11910
|
);
|
|
11911
|
-
return () => cancelAnimationFrame(
|
|
11911
|
+
return () => cancelAnimationFrame($);
|
|
11912
11912
|
}, [c]);
|
|
11913
|
-
const m = Math.max(...e.map((
|
|
11913
|
+
const m = Math.max(...e.map(($) => $.value), 1), v = d || (r === "#ffffff" ? "rgba(255,255,255,0.25)" : "rgba(0,0,0,0.15)"), f = 12, _ = 12, x = e.length * a + Math.max(0, e.length - 1) * f, S = {
|
|
11914
11914
|
fontSize: "15px",
|
|
11915
11915
|
fontWeight: "700",
|
|
11916
11916
|
letterSpacing: "-0.3px",
|
|
11917
11917
|
lineHeight: 1,
|
|
11918
11918
|
pointerEvents: "none",
|
|
11919
11919
|
whiteSpace: "nowrap",
|
|
11920
|
-
...s ? {
|
|
11920
|
+
...s ? {
|
|
11921
|
+
WebkitTextStroke: `1px ${s}`,
|
|
11922
|
+
paintOrder: "stroke fill"
|
|
11923
|
+
} : {}
|
|
11921
11924
|
};
|
|
11922
11925
|
return /* @__PURE__ */ k(
|
|
11923
11926
|
"div",
|
|
@@ -11945,85 +11948,117 @@ const Ai = [
|
|
|
11945
11948
|
children: t
|
|
11946
11949
|
}
|
|
11947
11950
|
),
|
|
11948
|
-
/* @__PURE__ */ k(
|
|
11949
|
-
|
|
11950
|
-
|
|
11951
|
-
{
|
|
11952
|
-
|
|
11953
|
-
|
|
11954
|
-
|
|
11955
|
-
|
|
11956
|
-
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
|
|
11971
|
-
children: $ ? (
|
|
11972
|
-
// Value sits just above the separator, no bar rendered
|
|
11973
|
-
/* @__PURE__ */ u("span", { style: { ...f, color: o, marginBottom: "6px" }, children: C.value })
|
|
11974
|
-
) : /* @__PURE__ */ u(
|
|
11951
|
+
/* @__PURE__ */ k(
|
|
11952
|
+
"div",
|
|
11953
|
+
{
|
|
11954
|
+
style: {
|
|
11955
|
+
display: "flex",
|
|
11956
|
+
flexDirection: "column",
|
|
11957
|
+
gap: 0,
|
|
11958
|
+
overflow: "visible"
|
|
11959
|
+
},
|
|
11960
|
+
children: [
|
|
11961
|
+
/* @__PURE__ */ u(
|
|
11962
|
+
"div",
|
|
11963
|
+
{
|
|
11964
|
+
style: {
|
|
11965
|
+
display: "flex",
|
|
11966
|
+
alignItems: "flex-end",
|
|
11967
|
+
gap: `${f}px`,
|
|
11968
|
+
width: `${x}px`,
|
|
11969
|
+
height: `${l}px`
|
|
11970
|
+
},
|
|
11971
|
+
children: e.map(($, b) => {
|
|
11972
|
+
const C = $.color || Ai[b % Ai.length], w = $.value === 0, N = w ? 0 : $.value / m * l * g;
|
|
11973
|
+
return /* @__PURE__ */ u(
|
|
11975
11974
|
"div",
|
|
11976
11975
|
{
|
|
11977
11976
|
style: {
|
|
11978
|
-
position: "relative",
|
|
11979
|
-
width: "100%",
|
|
11980
|
-
height: `${v}px`,
|
|
11981
|
-
background: S,
|
|
11982
|
-
borderRadius: "6px 6px 0 0",
|
|
11983
|
-
transition: c ? "height 0.85s cubic-bezier(0.16, 1, 0.3, 1)" : "none",
|
|
11984
11977
|
display: "flex",
|
|
11985
|
-
|
|
11986
|
-
|
|
11987
|
-
|
|
11978
|
+
flexDirection: "column",
|
|
11979
|
+
alignItems: "center",
|
|
11980
|
+
justifyContent: "flex-end",
|
|
11981
|
+
width: `${a}px`,
|
|
11982
|
+
height: "100%"
|
|
11988
11983
|
},
|
|
11989
|
-
children: /* @__PURE__ */ u(
|
|
11990
|
-
|
|
11991
|
-
|
|
11984
|
+
children: w ? /* @__PURE__ */ u(
|
|
11985
|
+
"span",
|
|
11986
|
+
{
|
|
11987
|
+
style: {
|
|
11988
|
+
...S,
|
|
11989
|
+
color: o,
|
|
11990
|
+
marginBottom: "6px"
|
|
11991
|
+
},
|
|
11992
|
+
children: $.value
|
|
11993
|
+
}
|
|
11994
|
+
) : /* @__PURE__ */ u(
|
|
11995
|
+
"div",
|
|
11996
|
+
{
|
|
11997
|
+
style: {
|
|
11998
|
+
position: "relative",
|
|
11999
|
+
width: "100%",
|
|
12000
|
+
height: `${N}px`,
|
|
12001
|
+
background: C,
|
|
12002
|
+
borderRadius: "6px 6px 0 0",
|
|
12003
|
+
transition: c ? "height 0.85s cubic-bezier(0.16, 1, 0.3, 1)" : "none",
|
|
12004
|
+
display: "flex",
|
|
12005
|
+
alignItems: "flex-start",
|
|
12006
|
+
justifyContent: "center",
|
|
12007
|
+
paddingTop: "10px"
|
|
12008
|
+
},
|
|
12009
|
+
children: /* @__PURE__ */ u("span", { style: { ...S, color: o }, children: $.value })
|
|
12010
|
+
}
|
|
12011
|
+
)
|
|
12012
|
+
},
|
|
12013
|
+
b
|
|
12014
|
+
);
|
|
12015
|
+
})
|
|
12016
|
+
}
|
|
12017
|
+
),
|
|
12018
|
+
/* @__PURE__ */ u(
|
|
12019
|
+
"div",
|
|
12020
|
+
{
|
|
12021
|
+
style: {
|
|
12022
|
+
width: `${x + _ * 2}px`,
|
|
12023
|
+
marginLeft: `-${_}px`,
|
|
12024
|
+
height: "1.5px",
|
|
12025
|
+
background: v,
|
|
12026
|
+
borderRadius: "1px"
|
|
12027
|
+
}
|
|
12028
|
+
}
|
|
12029
|
+
),
|
|
12030
|
+
/* @__PURE__ */ u(
|
|
12031
|
+
"div",
|
|
12032
|
+
{
|
|
12033
|
+
style: {
|
|
12034
|
+
display: "flex",
|
|
12035
|
+
gap: `${f}px`,
|
|
12036
|
+
width: `${x}px`,
|
|
12037
|
+
marginTop: "10px"
|
|
11992
12038
|
},
|
|
11993
|
-
|
|
11994
|
-
|
|
11995
|
-
|
|
11996
|
-
|
|
11997
|
-
|
|
11998
|
-
|
|
11999
|
-
|
|
12000
|
-
|
|
12001
|
-
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12006
|
-
|
|
12007
|
-
|
|
12008
|
-
|
|
12009
|
-
|
|
12010
|
-
|
|
12011
|
-
|
|
12012
|
-
|
|
12013
|
-
|
|
12014
|
-
|
|
12015
|
-
|
|
12016
|
-
fontWeight: "400",
|
|
12017
|
-
opacity: 0.8,
|
|
12018
|
-
whiteSpace: "nowrap",
|
|
12019
|
-
overflow: "hidden",
|
|
12020
|
-
textOverflow: "ellipsis"
|
|
12021
|
-
},
|
|
12022
|
-
children: C.title
|
|
12023
|
-
},
|
|
12024
|
-
x
|
|
12025
|
-
)) })
|
|
12026
|
-
] })
|
|
12039
|
+
children: e.map(($, b) => /* @__PURE__ */ u(
|
|
12040
|
+
"div",
|
|
12041
|
+
{
|
|
12042
|
+
style: {
|
|
12043
|
+
width: `${a}px`,
|
|
12044
|
+
textAlign: "center",
|
|
12045
|
+
color: r,
|
|
12046
|
+
fontSize: "13px",
|
|
12047
|
+
fontWeight: "400",
|
|
12048
|
+
opacity: 0.8,
|
|
12049
|
+
whiteSpace: "nowrap",
|
|
12050
|
+
overflow: "hidden",
|
|
12051
|
+
textOverflow: "ellipsis"
|
|
12052
|
+
},
|
|
12053
|
+
children: $.title
|
|
12054
|
+
},
|
|
12055
|
+
b
|
|
12056
|
+
))
|
|
12057
|
+
}
|
|
12058
|
+
)
|
|
12059
|
+
]
|
|
12060
|
+
}
|
|
12061
|
+
)
|
|
12027
12062
|
]
|
|
12028
12063
|
}
|
|
12029
12064
|
);
|
|
@@ -12086,74 +12121,74 @@ const lp = "_percentageBarContainer_lgkme_3", cp = "_barContainer_lgkme_10", up
|
|
|
12086
12121
|
const y = uo(
|
|
12087
12122
|
(f) => {
|
|
12088
12123
|
if (!h.current || !g.current) return;
|
|
12089
|
-
const { dividerIndex:
|
|
12090
|
-
d((
|
|
12091
|
-
const
|
|
12124
|
+
const { dividerIndex: _ } = h.current, x = g.current.getBoundingClientRect(), S = (f.touches ? f.touches[0].clientX : f.clientX) - x.left, $ = Math.max(0, Math.min(100, S / x.width * 100));
|
|
12125
|
+
d((b) => {
|
|
12126
|
+
const C = [...b], w = b.slice(0, _).reduce((B, I) => B + I, 0), N = w + b[_] + b[_ + 1];
|
|
12092
12127
|
let L = $ - w, E = N - $;
|
|
12093
|
-
if (L < o && (L = o, E = N - w - o), E < o && (E = o, L = N - w - o), _
|
|
12128
|
+
if (L < o && (L = o, E = N - w - o), E < o && (E = o, L = N - w - o), C[_] = L, C[_ + 1] = E, r)
|
|
12094
12129
|
try {
|
|
12095
|
-
const
|
|
12130
|
+
const B = e.reduce((I, p) => I + p.value, 0);
|
|
12096
12131
|
r(
|
|
12097
12132
|
e.map((I, p) => ({
|
|
12098
12133
|
...I,
|
|
12099
|
-
value:
|
|
12134
|
+
value: C[p] / 100 * B
|
|
12100
12135
|
}))
|
|
12101
12136
|
);
|
|
12102
|
-
} catch (
|
|
12103
|
-
console.error("PercentageBar onChange error:",
|
|
12137
|
+
} catch (B) {
|
|
12138
|
+
console.error("PercentageBar onChange error:", B);
|
|
12104
12139
|
}
|
|
12105
|
-
return
|
|
12140
|
+
return C;
|
|
12106
12141
|
});
|
|
12107
12142
|
},
|
|
12108
12143
|
[o, r, e]
|
|
12109
12144
|
), m = uo(() => {
|
|
12110
12145
|
h.current && (h.current = null, document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", m), document.removeEventListener("touchmove", y), document.removeEventListener("touchend", m), d((f) => {
|
|
12111
12146
|
if (r) {
|
|
12112
|
-
const
|
|
12147
|
+
const _ = e.reduce((x, S) => x + S.value, 0);
|
|
12113
12148
|
r(
|
|
12114
12149
|
e.map((x, S) => ({
|
|
12115
12150
|
...x,
|
|
12116
|
-
value: f[S] / 100 *
|
|
12151
|
+
value: f[S] / 100 * _
|
|
12117
12152
|
}))
|
|
12118
12153
|
);
|
|
12119
12154
|
}
|
|
12120
12155
|
return f;
|
|
12121
12156
|
}));
|
|
12122
|
-
}, [y, r, e]),
|
|
12123
|
-
|
|
12157
|
+
}, [y, r, e]), v = (f, _) => {
|
|
12158
|
+
_.preventDefault(), h.current = { dividerIndex: f }, document.addEventListener("mousemove", y), document.addEventListener("mouseup", m), document.addEventListener("touchmove", y, { passive: !1 }), document.addEventListener("touchend", m);
|
|
12124
12159
|
};
|
|
12125
12160
|
return /* @__PURE__ */ k("div", { className: Pe.percentageBarContainer, children: [
|
|
12126
|
-
/* @__PURE__ */ u("div", { className: Pe.barContainer, ref: g, children: e.map((f,
|
|
12161
|
+
/* @__PURE__ */ u("div", { className: Pe.barContainer, ref: g, children: e.map((f, _) => {
|
|
12127
12162
|
var x;
|
|
12128
12163
|
return /* @__PURE__ */ u(
|
|
12129
12164
|
"div",
|
|
12130
12165
|
{
|
|
12131
12166
|
className: Pe.segment,
|
|
12132
12167
|
style: {
|
|
12133
|
-
width: `${c[
|
|
12168
|
+
width: `${c[_]}%`,
|
|
12134
12169
|
backgroundColor: f.color || "#ccc"
|
|
12135
12170
|
},
|
|
12136
|
-
children:
|
|
12171
|
+
children: _ > 0 && /* @__PURE__ */ u(
|
|
12137
12172
|
"div",
|
|
12138
12173
|
{
|
|
12139
12174
|
className: Pe.handle,
|
|
12140
|
-
onMouseDown: (S) =>
|
|
12141
|
-
onTouchStart: (S) =>
|
|
12175
|
+
onMouseDown: (S) => v(_ - 1, S),
|
|
12176
|
+
onTouchStart: (S) => v(_ - 1, S),
|
|
12142
12177
|
role: "slider",
|
|
12143
|
-
"aria-label": `Divisor entre ${(x = e[
|
|
12144
|
-
"aria-valuenow": Math.round(c[
|
|
12178
|
+
"aria-label": `Divisor entre ${(x = e[_ - 1]) == null ? void 0 : x.title} y ${f.title}`,
|
|
12179
|
+
"aria-valuenow": Math.round(c[_]),
|
|
12145
12180
|
tabIndex: 0
|
|
12146
12181
|
}
|
|
12147
12182
|
)
|
|
12148
12183
|
},
|
|
12149
|
-
f.id ??
|
|
12184
|
+
f.id ?? _
|
|
12150
12185
|
);
|
|
12151
12186
|
}) }),
|
|
12152
|
-
t === "bar" && /* @__PURE__ */ u("div", { className: Pe.labelsContainer, children: e.map((f,
|
|
12187
|
+
t === "bar" && /* @__PURE__ */ u("div", { className: Pe.labelsContainer, children: e.map((f, _) => /* @__PURE__ */ k(
|
|
12153
12188
|
"div",
|
|
12154
12189
|
{
|
|
12155
12190
|
className: Pe.labelItem,
|
|
12156
|
-
style: { width: `${c[
|
|
12191
|
+
style: { width: `${c[_]}%` },
|
|
12157
12192
|
children: [
|
|
12158
12193
|
/* @__PURE__ */ u(
|
|
12159
12194
|
"span",
|
|
@@ -12164,19 +12199,19 @@ const lp = "_percentageBarContainer_lgkme_3", cp = "_barContainer_lgkme_10", up
|
|
|
12164
12199
|
),
|
|
12165
12200
|
/* @__PURE__ */ u("span", { className: Pe.labelText, style: { color: a || "#fff" }, children: f.title }),
|
|
12166
12201
|
/* @__PURE__ */ k("span", { className: Pe.labelValue, style: { color: l || "#fff" }, children: [
|
|
12167
|
-
Dr(e, s)[
|
|
12202
|
+
Dr(e, s)[_].toFixed(1),
|
|
12168
12203
|
"%"
|
|
12169
12204
|
] }),
|
|
12170
12205
|
n && f.translationFormula && /* @__PURE__ */ k("span", { className: Pe.labelTranslation, children: [
|
|
12171
12206
|
"(",
|
|
12172
|
-
Mi(c[
|
|
12207
|
+
Mi(c[_], f.translationFormula),
|
|
12173
12208
|
")"
|
|
12174
12209
|
] })
|
|
12175
12210
|
]
|
|
12176
12211
|
},
|
|
12177
|
-
f.id ??
|
|
12212
|
+
f.id ?? _
|
|
12178
12213
|
)) }),
|
|
12179
|
-
t === "list" && /* @__PURE__ */ u("div", { className: Pe.labelsListContainer, children: e.map((f,
|
|
12214
|
+
t === "list" && /* @__PURE__ */ u("div", { className: Pe.labelsListContainer, children: e.map((f, _) => /* @__PURE__ */ k(
|
|
12180
12215
|
"div",
|
|
12181
12216
|
{
|
|
12182
12217
|
className: Pe.labelItem,
|
|
@@ -12190,17 +12225,17 @@ const lp = "_percentageBarContainer_lgkme_3", cp = "_barContainer_lgkme_10", up
|
|
|
12190
12225
|
),
|
|
12191
12226
|
/* @__PURE__ */ u("span", { className: Pe.labelText, children: f.title }),
|
|
12192
12227
|
/* @__PURE__ */ k("span", { className: Pe.labelValue, children: [
|
|
12193
|
-
Dr(e, s)[
|
|
12228
|
+
Dr(e, s)[_].toFixed(1),
|
|
12194
12229
|
"%"
|
|
12195
12230
|
] }),
|
|
12196
12231
|
n && f.translationFormula && /* @__PURE__ */ k("span", { className: Pe.labelTranslation, children: [
|
|
12197
12232
|
"(",
|
|
12198
|
-
Mi(Dr(e, s)[
|
|
12233
|
+
Mi(Dr(e, s)[_], f.translationFormula),
|
|
12199
12234
|
")"
|
|
12200
12235
|
] })
|
|
12201
12236
|
]
|
|
12202
12237
|
},
|
|
12203
|
-
f.id ??
|
|
12238
|
+
f.id ?? _
|
|
12204
12239
|
)) })
|
|
12205
12240
|
] });
|
|
12206
12241
|
};
|
|
@@ -12320,7 +12355,7 @@ export {
|
|
|
12320
12355
|
zl as IndicatorsList,
|
|
12321
12356
|
Hl as LangSelector,
|
|
12322
12357
|
cc as Legend,
|
|
12323
|
-
|
|
12358
|
+
Fu as ListSelector,
|
|
12324
12359
|
Sf as Loader,
|
|
12325
12360
|
pu as LogInButton,
|
|
12326
12361
|
dc as LogoApp,
|