w-design-system 0.0.100 → 0.2.100
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/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/stories.d.ts.map +1 -1
- package/dist/w-design-system.es.js +647 -653
- package/dist/w-design-system.umd.js +101 -100
- package/package.json +1 -1
- package/src/components/Table/index.tsx +33 -33
- package/src/components/Table/stories.tsx +2 -3
|
@@ -16,13 +16,13 @@ var u2;
|
|
|
16
16
|
function V1() {
|
|
17
17
|
if (u2) return N0;
|
|
18
18
|
u2 = 1;
|
|
19
|
-
var A = y0, g = Symbol.for("react.element"), i = Symbol.for("react.fragment"),
|
|
19
|
+
var A = y0, g = Symbol.for("react.element"), i = Symbol.for("react.fragment"), C = Object.prototype.hasOwnProperty, c = A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
20
20
|
function h(t, B, d) {
|
|
21
|
-
var
|
|
22
|
-
d !== void 0 && (
|
|
23
|
-
for (
|
|
24
|
-
if (t && t.defaultProps) for (
|
|
25
|
-
return { $$typeof: g, type: t, key:
|
|
21
|
+
var E, o = {}, r = null, j = null;
|
|
22
|
+
d !== void 0 && (r = "" + d), B.key !== void 0 && (r = "" + B.key), B.ref !== void 0 && (j = B.ref);
|
|
23
|
+
for (E in B) C.call(B, E) && !l.hasOwnProperty(E) && (o[E] = B[E]);
|
|
24
|
+
if (t && t.defaultProps) for (E in B = t.defaultProps, B) o[E] === void 0 && (o[E] = B[E]);
|
|
25
|
+
return { $$typeof: g, type: t, key: r, ref: j, props: o, _owner: c.current };
|
|
26
26
|
}
|
|
27
27
|
return N0.Fragment = i, N0.jsx = h, N0.jsxs = h, N0;
|
|
28
28
|
}
|
|
@@ -39,45 +39,45 @@ var K0 = {};
|
|
|
39
39
|
var Z2;
|
|
40
40
|
function q1() {
|
|
41
41
|
return Z2 || (Z2 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
42
|
-
var A = y0, g = Symbol.for("react.element"), i = Symbol.for("react.portal"),
|
|
42
|
+
var A = y0, g = Symbol.for("react.element"), i = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), t = Symbol.for("react.context"), B = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), o = Symbol.for("react.memo"), r = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), n = Symbol.iterator, G = "@@iterator";
|
|
43
43
|
function x(I) {
|
|
44
44
|
if (I === null || typeof I != "object")
|
|
45
45
|
return null;
|
|
46
|
-
var
|
|
47
|
-
return typeof
|
|
46
|
+
var M = n && I[n] || I[G];
|
|
47
|
+
return typeof M == "function" ? M : null;
|
|
48
48
|
}
|
|
49
|
-
var
|
|
49
|
+
var D = A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
50
50
|
function O(I) {
|
|
51
51
|
{
|
|
52
|
-
for (var
|
|
52
|
+
for (var M = arguments.length, m = new Array(M > 1 ? M - 1 : 0), K = 1; K < M; K++)
|
|
53
53
|
m[K - 1] = arguments[K];
|
|
54
54
|
Y("error", I, m);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
function Y(I,
|
|
57
|
+
function Y(I, M, m) {
|
|
58
58
|
{
|
|
59
|
-
var K =
|
|
60
|
-
I0 !== "" && (
|
|
59
|
+
var K = D.ReactDebugCurrentFrame, I0 = K.getStackAddendum();
|
|
60
|
+
I0 !== "" && (M += "%s", m = m.concat([I0]));
|
|
61
61
|
var t0 = m.map(function(q) {
|
|
62
62
|
return String(q);
|
|
63
63
|
});
|
|
64
|
-
t0.unshift("Warning: " +
|
|
64
|
+
t0.unshift("Warning: " + M), Function.prototype.apply.call(console[I], console, t0);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
var Z = !1, a = !1, X = !1, p = !1, F = !1, _;
|
|
68
68
|
_ = Symbol.for("react.module.reference");
|
|
69
69
|
function e0(I) {
|
|
70
|
-
return !!(typeof I == "string" || typeof I == "function" || I ===
|
|
70
|
+
return !!(typeof I == "string" || typeof I == "function" || I === C || I === l || F || I === c || I === d || I === E || p || I === j || Z || a || X || typeof I == "object" && I !== null && (I.$$typeof === r || I.$$typeof === o || I.$$typeof === h || I.$$typeof === t || I.$$typeof === B || // This needs to include all possible module reference object
|
|
71
71
|
// types supported by any Flight configuration anywhere since
|
|
72
72
|
// we don't know which Flight build this will end up being used
|
|
73
73
|
// with.
|
|
74
74
|
I.$$typeof === _ || I.getModuleId !== void 0));
|
|
75
75
|
}
|
|
76
|
-
function s0(I,
|
|
76
|
+
function s0(I, M, m) {
|
|
77
77
|
var K = I.displayName;
|
|
78
78
|
if (K)
|
|
79
79
|
return K;
|
|
80
|
-
var I0 =
|
|
80
|
+
var I0 = M.displayName || M.name || "";
|
|
81
81
|
return I0 !== "" ? m + "(" + I0 + ")" : m;
|
|
82
82
|
}
|
|
83
83
|
function l0(I) {
|
|
@@ -91,24 +91,24 @@ function q1() {
|
|
|
91
91
|
if (typeof I == "string")
|
|
92
92
|
return I;
|
|
93
93
|
switch (I) {
|
|
94
|
-
case
|
|
94
|
+
case C:
|
|
95
95
|
return "Fragment";
|
|
96
96
|
case i:
|
|
97
97
|
return "Portal";
|
|
98
98
|
case l:
|
|
99
99
|
return "Profiler";
|
|
100
|
-
case
|
|
100
|
+
case c:
|
|
101
101
|
return "StrictMode";
|
|
102
102
|
case d:
|
|
103
103
|
return "Suspense";
|
|
104
|
-
case
|
|
104
|
+
case E:
|
|
105
105
|
return "SuspenseList";
|
|
106
106
|
}
|
|
107
107
|
if (typeof I == "object")
|
|
108
108
|
switch (I.$$typeof) {
|
|
109
109
|
case t:
|
|
110
|
-
var
|
|
111
|
-
return l0(
|
|
110
|
+
var M = I;
|
|
111
|
+
return l0(M) + ".Consumer";
|
|
112
112
|
case h:
|
|
113
113
|
var m = I;
|
|
114
114
|
return l0(m._context) + ".Provider";
|
|
@@ -117,7 +117,7 @@ function q1() {
|
|
|
117
117
|
case o:
|
|
118
118
|
var K = I.displayName || null;
|
|
119
119
|
return K !== null ? K : S(I.type) || "Memo";
|
|
120
|
-
case
|
|
120
|
+
case r: {
|
|
121
121
|
var I0 = I, t0 = I0._payload, q = I0._init;
|
|
122
122
|
try {
|
|
123
123
|
return S(q(t0));
|
|
@@ -190,8 +190,8 @@ function q1() {
|
|
|
190
190
|
N < 0 && O("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
var z =
|
|
194
|
-
function k(I,
|
|
193
|
+
var z = D.ReactCurrentDispatcher, H;
|
|
194
|
+
function k(I, M, m) {
|
|
195
195
|
{
|
|
196
196
|
if (H === void 0)
|
|
197
197
|
try {
|
|
@@ -209,7 +209,7 @@ function q1() {
|
|
|
209
209
|
var f0 = typeof WeakMap == "function" ? WeakMap : Map;
|
|
210
210
|
U = new f0();
|
|
211
211
|
}
|
|
212
|
-
function R(I,
|
|
212
|
+
function R(I, M) {
|
|
213
213
|
if (!I || T)
|
|
214
214
|
return "";
|
|
215
215
|
{
|
|
@@ -224,7 +224,7 @@ function q1() {
|
|
|
224
224
|
var t0;
|
|
225
225
|
t0 = z.current, z.current = null, P();
|
|
226
226
|
try {
|
|
227
|
-
if (
|
|
227
|
+
if (M) {
|
|
228
228
|
var q = function() {
|
|
229
229
|
throw Error();
|
|
230
230
|
};
|
|
@@ -280,14 +280,14 @@ function q1() {
|
|
|
280
280
|
var L0 = I ? I.displayName || I.name : "", O0 = L0 ? k(L0) : "";
|
|
281
281
|
return typeof I == "function" && U.set(I, O0), O0;
|
|
282
282
|
}
|
|
283
|
-
function E0(I,
|
|
283
|
+
function E0(I, M, m) {
|
|
284
284
|
return R(I, !1);
|
|
285
285
|
}
|
|
286
286
|
function H0(I) {
|
|
287
|
-
var
|
|
288
|
-
return !!(
|
|
287
|
+
var M = I.prototype;
|
|
288
|
+
return !!(M && M.isReactComponent);
|
|
289
289
|
}
|
|
290
|
-
function Y0(I,
|
|
290
|
+
function Y0(I, M, m) {
|
|
291
291
|
if (I == null)
|
|
292
292
|
return "";
|
|
293
293
|
if (typeof I == "function")
|
|
@@ -297,7 +297,7 @@ function q1() {
|
|
|
297
297
|
switch (I) {
|
|
298
298
|
case d:
|
|
299
299
|
return k("Suspense");
|
|
300
|
-
case
|
|
300
|
+
case E:
|
|
301
301
|
return k("SuspenseList");
|
|
302
302
|
}
|
|
303
303
|
if (typeof I == "object")
|
|
@@ -305,26 +305,26 @@ function q1() {
|
|
|
305
305
|
case B:
|
|
306
306
|
return E0(I.render);
|
|
307
307
|
case o:
|
|
308
|
-
return Y0(I.type,
|
|
309
|
-
case
|
|
308
|
+
return Y0(I.type, M, m);
|
|
309
|
+
case r: {
|
|
310
310
|
var K = I, I0 = K._payload, t0 = K._init;
|
|
311
311
|
try {
|
|
312
|
-
return Y0(t0(I0),
|
|
312
|
+
return Y0(t0(I0), M, m);
|
|
313
313
|
} catch {
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
return "";
|
|
318
318
|
}
|
|
319
|
-
var m0 = Object.prototype.hasOwnProperty, Q2 = {}, d2 =
|
|
319
|
+
var m0 = Object.prototype.hasOwnProperty, Q2 = {}, d2 = D.ReactDebugCurrentFrame;
|
|
320
320
|
function U0(I) {
|
|
321
321
|
if (I) {
|
|
322
|
-
var
|
|
322
|
+
var M = I._owner, m = Y0(I.type, I._source, M ? M.type : null);
|
|
323
323
|
d2.setExtraStackFrame(m);
|
|
324
324
|
} else
|
|
325
325
|
d2.setExtraStackFrame(null);
|
|
326
326
|
}
|
|
327
|
-
function H1(I,
|
|
327
|
+
function H1(I, M, m, K, I0) {
|
|
328
328
|
{
|
|
329
329
|
var t0 = Function.call.bind(m0);
|
|
330
330
|
for (var q in I)
|
|
@@ -335,7 +335,7 @@ function q1() {
|
|
|
335
335
|
var D0 = Error((K || "React class") + ": " + m + " type `" + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof I[q] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
336
336
|
throw D0.name = "Invariant Violation", D0;
|
|
337
337
|
}
|
|
338
|
-
W = I[q](
|
|
338
|
+
W = I[q](M, q, K, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
339
339
|
} catch (B0) {
|
|
340
340
|
W = B0;
|
|
341
341
|
}
|
|
@@ -349,7 +349,7 @@ function q1() {
|
|
|
349
349
|
}
|
|
350
350
|
function G1(I) {
|
|
351
351
|
{
|
|
352
|
-
var
|
|
352
|
+
var M = typeof Symbol == "function" && Symbol.toStringTag, m = M && I[Symbol.toStringTag] || I.constructor.name || "Object";
|
|
353
353
|
return m;
|
|
354
354
|
}
|
|
355
355
|
}
|
|
@@ -367,7 +367,7 @@ function q1() {
|
|
|
367
367
|
if (R1(I))
|
|
368
368
|
return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", G1(I)), P2(I);
|
|
369
369
|
}
|
|
370
|
-
var j2 =
|
|
370
|
+
var j2 = D.ReactCurrentOwner, x1 = {
|
|
371
371
|
key: !0,
|
|
372
372
|
ref: !0,
|
|
373
373
|
__self: !0,
|
|
@@ -375,27 +375,27 @@ function q1() {
|
|
|
375
375
|
}, G2, R2;
|
|
376
376
|
function Y1(I) {
|
|
377
377
|
if (m0.call(I, "ref")) {
|
|
378
|
-
var
|
|
379
|
-
if (
|
|
378
|
+
var M = Object.getOwnPropertyDescriptor(I, "ref").get;
|
|
379
|
+
if (M && M.isReactWarning)
|
|
380
380
|
return !1;
|
|
381
381
|
}
|
|
382
382
|
return I.ref !== void 0;
|
|
383
383
|
}
|
|
384
384
|
function k1(I) {
|
|
385
385
|
if (m0.call(I, "key")) {
|
|
386
|
-
var
|
|
387
|
-
if (
|
|
386
|
+
var M = Object.getOwnPropertyDescriptor(I, "key").get;
|
|
387
|
+
if (M && M.isReactWarning)
|
|
388
388
|
return !1;
|
|
389
389
|
}
|
|
390
390
|
return I.key !== void 0;
|
|
391
391
|
}
|
|
392
|
-
function m1(I,
|
|
392
|
+
function m1(I, M) {
|
|
393
393
|
typeof I.ref == "string" && j2.current;
|
|
394
394
|
}
|
|
395
|
-
function p1(I,
|
|
395
|
+
function p1(I, M) {
|
|
396
396
|
{
|
|
397
397
|
var m = function() {
|
|
398
|
-
G2 || (G2 = !0, O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
398
|
+
G2 || (G2 = !0, O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", M));
|
|
399
399
|
};
|
|
400
400
|
m.isReactWarning = !0, Object.defineProperty(I, "key", {
|
|
401
401
|
get: m,
|
|
@@ -403,10 +403,10 @@ function q1() {
|
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
function y1(I,
|
|
406
|
+
function y1(I, M) {
|
|
407
407
|
{
|
|
408
408
|
var m = function() {
|
|
409
|
-
R2 || (R2 = !0, O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
409
|
+
R2 || (R2 = !0, O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", M));
|
|
410
410
|
};
|
|
411
411
|
m.isReactWarning = !0, Object.defineProperty(I, "ref", {
|
|
412
412
|
get: m,
|
|
@@ -414,13 +414,13 @@ function q1() {
|
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
var O1 = function(I,
|
|
417
|
+
var O1 = function(I, M, m, K, I0, t0, q) {
|
|
418
418
|
var W = {
|
|
419
419
|
// This tag allows us to uniquely identify this as a React Element
|
|
420
420
|
$$typeof: g,
|
|
421
421
|
// Built-in properties that belong on the element
|
|
422
422
|
type: I,
|
|
423
|
-
key:
|
|
423
|
+
key: M,
|
|
424
424
|
ref: m,
|
|
425
425
|
props: q,
|
|
426
426
|
// Record the component responsible for creating this element.
|
|
@@ -443,12 +443,12 @@ function q1() {
|
|
|
443
443
|
value: I0
|
|
444
444
|
}), Object.freeze && (Object.freeze(W.props), Object.freeze(W)), W;
|
|
445
445
|
};
|
|
446
|
-
function u1(I,
|
|
446
|
+
function u1(I, M, m, K, I0) {
|
|
447
447
|
{
|
|
448
448
|
var t0, q = {}, W = null, D0 = null;
|
|
449
|
-
m !== void 0 && (H2(m), W = "" + m), k1(
|
|
450
|
-
for (t0 in
|
|
451
|
-
m0.call(
|
|
449
|
+
m !== void 0 && (H2(m), W = "" + m), k1(M) && (H2(M.key), W = "" + M.key), Y1(M) && (D0 = M.ref, m1(M, I0));
|
|
450
|
+
for (t0 in M)
|
|
451
|
+
m0.call(M, t0) && !x1.hasOwnProperty(t0) && (q[t0] = M[t0]);
|
|
452
452
|
if (I && I.defaultProps) {
|
|
453
453
|
var B0 = I.defaultProps;
|
|
454
454
|
for (t0 in B0)
|
|
@@ -461,10 +461,10 @@ function q1() {
|
|
|
461
461
|
return O1(I, W, D0, I0, K, j2.current, q);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
var I2 =
|
|
464
|
+
var I2 = D.ReactCurrentOwner, x2 = D.ReactDebugCurrentFrame;
|
|
465
465
|
function Z0(I) {
|
|
466
466
|
if (I) {
|
|
467
|
-
var
|
|
467
|
+
var M = I._owner, m = Y0(I.type, I._source, M ? M.type : null);
|
|
468
468
|
x2.setExtraStackFrame(m);
|
|
469
469
|
} else
|
|
470
470
|
x2.setExtraStackFrame(null);
|
|
@@ -492,22 +492,22 @@ Check the render method of \`` + I + "`.";
|
|
|
492
492
|
var k2 = {};
|
|
493
493
|
function L1(I) {
|
|
494
494
|
{
|
|
495
|
-
var
|
|
496
|
-
if (!
|
|
495
|
+
var M = Y2();
|
|
496
|
+
if (!M) {
|
|
497
497
|
var m = typeof I == "string" ? I : I.displayName || I.name;
|
|
498
|
-
m && (
|
|
498
|
+
m && (M = `
|
|
499
499
|
|
|
500
500
|
Check the top-level render call using <` + m + ">.");
|
|
501
501
|
}
|
|
502
|
-
return
|
|
502
|
+
return M;
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
function m2(I,
|
|
505
|
+
function m2(I, M) {
|
|
506
506
|
{
|
|
507
507
|
if (!I._store || I._store.validated || I.key != null)
|
|
508
508
|
return;
|
|
509
509
|
I._store.validated = !0;
|
|
510
|
-
var m = L1(
|
|
510
|
+
var m = L1(M);
|
|
511
511
|
if (k2[m])
|
|
512
512
|
return;
|
|
513
513
|
k2[m] = !0;
|
|
@@ -515,14 +515,14 @@ Check the top-level render call using <` + m + ">.");
|
|
|
515
515
|
I && I._owner && I._owner !== I2.current && (K = " It was passed a child from " + S(I._owner.type) + "."), Z0(I), O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, K), Z0(null);
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
function p2(I,
|
|
518
|
+
function p2(I, M) {
|
|
519
519
|
{
|
|
520
520
|
if (typeof I != "object")
|
|
521
521
|
return;
|
|
522
522
|
if (g2(I))
|
|
523
523
|
for (var m = 0; m < I.length; m++) {
|
|
524
524
|
var K = I[m];
|
|
525
|
-
c2(K) && m2(K,
|
|
525
|
+
c2(K) && m2(K, M);
|
|
526
526
|
}
|
|
527
527
|
else if (c2(I))
|
|
528
528
|
I._store && (I._store.validated = !0);
|
|
@@ -530,39 +530,39 @@ Check the top-level render call using <` + m + ">.");
|
|
|
530
530
|
var I0 = x(I);
|
|
531
531
|
if (typeof I0 == "function" && I0 !== I.entries)
|
|
532
532
|
for (var t0 = I0.call(I), q; !(q = t0.next()).done; )
|
|
533
|
-
c2(q.value) && m2(q.value,
|
|
533
|
+
c2(q.value) && m2(q.value, M);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
function F1(I) {
|
|
538
538
|
{
|
|
539
|
-
var
|
|
540
|
-
if (
|
|
539
|
+
var M = I.type;
|
|
540
|
+
if (M == null || typeof M == "string")
|
|
541
541
|
return;
|
|
542
542
|
var m;
|
|
543
|
-
if (typeof
|
|
544
|
-
m =
|
|
545
|
-
else if (typeof
|
|
543
|
+
if (typeof M == "function")
|
|
544
|
+
m = M.propTypes;
|
|
545
|
+
else if (typeof M == "object" && (M.$$typeof === B || // Note: Memo only checks outer props here.
|
|
546
546
|
// Inner props are checked in the reconciler.
|
|
547
|
-
|
|
548
|
-
m =
|
|
547
|
+
M.$$typeof === o))
|
|
548
|
+
m = M.propTypes;
|
|
549
549
|
else
|
|
550
550
|
return;
|
|
551
551
|
if (m) {
|
|
552
|
-
var K = S(
|
|
552
|
+
var K = S(M);
|
|
553
553
|
H1(m, I.props, "prop", K, I);
|
|
554
|
-
} else if (
|
|
554
|
+
} else if (M.PropTypes !== void 0 && !C2) {
|
|
555
555
|
C2 = !0;
|
|
556
|
-
var I0 = S(
|
|
556
|
+
var I0 = S(M);
|
|
557
557
|
O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I0 || "Unknown");
|
|
558
558
|
}
|
|
559
|
-
typeof
|
|
559
|
+
typeof M.getDefaultProps == "function" && !M.getDefaultProps.isReactClassApproved && O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
function N1(I) {
|
|
563
563
|
{
|
|
564
|
-
for (var
|
|
565
|
-
var K =
|
|
564
|
+
for (var M = Object.keys(I.props), m = 0; m < M.length; m++) {
|
|
565
|
+
var K = M[m];
|
|
566
566
|
if (K !== "children" && K !== "key") {
|
|
567
567
|
Z0(I), O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", K), Z0(null);
|
|
568
568
|
break;
|
|
@@ -572,7 +572,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
var y2 = {};
|
|
575
|
-
function O2(I,
|
|
575
|
+
function O2(I, M, m, K, I0, t0) {
|
|
576
576
|
{
|
|
577
577
|
var q = e0(I);
|
|
578
578
|
if (!q) {
|
|
@@ -583,11 +583,11 @@ Check the top-level render call using <` + m + ">.");
|
|
|
583
583
|
var B0;
|
|
584
584
|
I === null ? B0 = "null" : g2(I) ? B0 = "array" : I !== void 0 && I.$$typeof === g ? (B0 = "<" + (S(I.type) || "Unknown") + " />", W = " Did you accidentally export a JSX literal instead of a component?") : B0 = typeof I, O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", B0, W);
|
|
585
585
|
}
|
|
586
|
-
var r0 = u1(I,
|
|
586
|
+
var r0 = u1(I, M, m, I0, t0);
|
|
587
587
|
if (r0 == null)
|
|
588
588
|
return r0;
|
|
589
589
|
if (q) {
|
|
590
|
-
var Q0 =
|
|
590
|
+
var Q0 = M.children;
|
|
591
591
|
if (Q0 !== void 0)
|
|
592
592
|
if (K)
|
|
593
593
|
if (g2(Q0)) {
|
|
@@ -599,8 +599,8 @@ Check the top-level render call using <` + m + ">.");
|
|
|
599
599
|
else
|
|
600
600
|
p2(Q0, I);
|
|
601
601
|
}
|
|
602
|
-
if (m0.call(
|
|
603
|
-
var O0 = S(I), z0 = Object.keys(
|
|
602
|
+
if (m0.call(M, "key")) {
|
|
603
|
+
var O0 = S(I), z0 = Object.keys(M).filter(function(T1) {
|
|
604
604
|
return T1 !== "key";
|
|
605
605
|
}), e2 = z0.length > 0 ? "{key: someKey, " + z0.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
606
606
|
if (!y2[O0 + e2]) {
|
|
@@ -613,17 +613,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
613
613
|
<%s key={someKey} {...props} />`, e2, O0, J1, O0), y2[O0 + e2] = !0;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
return I ===
|
|
616
|
+
return I === C ? N1(r0) : F1(r0), r0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
function K1(I,
|
|
620
|
-
return O2(I,
|
|
619
|
+
function K1(I, M, m) {
|
|
620
|
+
return O2(I, M, m, !0);
|
|
621
621
|
}
|
|
622
|
-
function b1(I,
|
|
623
|
-
return O2(I,
|
|
622
|
+
function b1(I, M, m) {
|
|
623
|
+
return O2(I, M, m, !1);
|
|
624
624
|
}
|
|
625
625
|
var U1 = b1, S1 = K1;
|
|
626
|
-
K0.Fragment =
|
|
626
|
+
K0.Fragment = C, K0.jsx = U1, K0.jsxs = S1;
|
|
627
627
|
}()), K0;
|
|
628
628
|
}
|
|
629
629
|
var L2;
|
|
@@ -687,7 +687,7 @@ const _1 = {
|
|
|
687
687
|
z8: 8,
|
|
688
688
|
z9: 9,
|
|
689
689
|
full: 1e4
|
|
690
|
-
},
|
|
690
|
+
}, w = {
|
|
691
691
|
zIndex: o3,
|
|
692
692
|
spacing: i3,
|
|
693
693
|
colors: {
|
|
@@ -714,7 +714,7 @@ const _1 = {
|
|
|
714
714
|
medium: "16px",
|
|
715
715
|
large: "18px"
|
|
716
716
|
}
|
|
717
|
-
}, { colors: d0 } =
|
|
717
|
+
}, { colors: d0 } = w, T0 = (A) => b`
|
|
718
718
|
.buttonRadiusWrapperIcon {
|
|
719
719
|
svg {
|
|
720
720
|
fill: ${A};
|
|
@@ -767,9 +767,9 @@ const _1 = {
|
|
|
767
767
|
function w3(A, g) {
|
|
768
768
|
if (A == null) return {};
|
|
769
769
|
var i = {};
|
|
770
|
-
for (var
|
|
771
|
-
if (g.indexOf(
|
|
772
|
-
i[
|
|
770
|
+
for (var C in A) if ({}.hasOwnProperty.call(A, C)) {
|
|
771
|
+
if (g.indexOf(C) !== -1) continue;
|
|
772
|
+
i[C] = A[C];
|
|
773
773
|
}
|
|
774
774
|
return i;
|
|
775
775
|
}
|
|
@@ -777,22 +777,22 @@ function _0() {
|
|
|
777
777
|
return _0 = Object.assign ? Object.assign.bind() : function(A) {
|
|
778
778
|
for (var g = 1; g < arguments.length; g++) {
|
|
779
779
|
var i = arguments[g];
|
|
780
|
-
for (var
|
|
780
|
+
for (var C in i) ({}).hasOwnProperty.call(i, C) && (A[C] = i[C]);
|
|
781
781
|
}
|
|
782
782
|
return A;
|
|
783
783
|
}, _0.apply(null, arguments);
|
|
784
784
|
}
|
|
785
785
|
function n2(A, g) {
|
|
786
|
-
return n2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i,
|
|
787
|
-
return i.__proto__ =
|
|
786
|
+
return n2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, C) {
|
|
787
|
+
return i.__proto__ = C, i;
|
|
788
788
|
}, n2(A, g);
|
|
789
789
|
}
|
|
790
790
|
function E3(A, g) {
|
|
791
791
|
A.prototype = Object.create(g.prototype), A.prototype.constructor = A, n2(A, g);
|
|
792
792
|
}
|
|
793
793
|
function l2(A, g, i) {
|
|
794
|
-
if (i || arguments.length === 2) for (var
|
|
795
|
-
(l || !(
|
|
794
|
+
if (i || arguments.length === 2) for (var C = 0, c = g.length, l; C < c; C++)
|
|
795
|
+
(l || !(C in g)) && (l || (l = Array.prototype.slice.call(g, 0, C)), l[C] = g[C]);
|
|
796
796
|
return A.concat(l || Array.prototype.slice.call(g));
|
|
797
797
|
}
|
|
798
798
|
var X0 = {};
|
|
@@ -805,60 +805,60 @@ var K2;
|
|
|
805
805
|
function M3() {
|
|
806
806
|
if (K2) return X0;
|
|
807
807
|
K2 = 1;
|
|
808
|
-
var A = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, g = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/, i = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,
|
|
808
|
+
var A = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, g = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/, i = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, C = /\\([\u000b\u0020-\u00ff])/g, c = /([\\"])/g, l = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
809
809
|
X0.format = h, X0.parse = t;
|
|
810
810
|
function h(o) {
|
|
811
811
|
if (!o || typeof o != "object")
|
|
812
812
|
throw new TypeError("argument obj is required");
|
|
813
|
-
var
|
|
813
|
+
var r = o.parameters, j = o.type;
|
|
814
814
|
if (!j || !l.test(j))
|
|
815
815
|
throw new TypeError("invalid type");
|
|
816
|
-
var
|
|
817
|
-
if (
|
|
818
|
-
for (var G, x = Object.keys(
|
|
819
|
-
if (G = x[
|
|
816
|
+
var n = j;
|
|
817
|
+
if (r && typeof r == "object")
|
|
818
|
+
for (var G, x = Object.keys(r).sort(), D = 0; D < x.length; D++) {
|
|
819
|
+
if (G = x[D], !i.test(G))
|
|
820
820
|
throw new TypeError("invalid parameter name");
|
|
821
|
-
|
|
821
|
+
n += "; " + G + "=" + d(r[G]);
|
|
822
822
|
}
|
|
823
|
-
return
|
|
823
|
+
return n;
|
|
824
824
|
}
|
|
825
825
|
function t(o) {
|
|
826
826
|
if (!o)
|
|
827
827
|
throw new TypeError("argument string is required");
|
|
828
|
-
var
|
|
829
|
-
if (typeof
|
|
828
|
+
var r = typeof o == "object" ? B(o) : o;
|
|
829
|
+
if (typeof r != "string")
|
|
830
830
|
throw new TypeError("argument string is required to be a string");
|
|
831
|
-
var j =
|
|
832
|
-
if (!l.test(
|
|
831
|
+
var j = r.indexOf(";"), n = j !== -1 ? r.slice(0, j).trim() : r.trim();
|
|
832
|
+
if (!l.test(n))
|
|
833
833
|
throw new TypeError("invalid media type");
|
|
834
|
-
var G = new
|
|
834
|
+
var G = new E(n.toLowerCase());
|
|
835
835
|
if (j !== -1) {
|
|
836
|
-
var x,
|
|
837
|
-
for (A.lastIndex = j;
|
|
838
|
-
if (
|
|
836
|
+
var x, D, O;
|
|
837
|
+
for (A.lastIndex = j; D = A.exec(r); ) {
|
|
838
|
+
if (D.index !== j)
|
|
839
839
|
throw new TypeError("invalid parameter format");
|
|
840
|
-
j +=
|
|
840
|
+
j += D[0].length, x = D[1].toLowerCase(), O = D[2], O.charCodeAt(0) === 34 && (O = O.slice(1, -1), O.indexOf("\\") !== -1 && (O = O.replace(C, "$1"))), G.parameters[x] = O;
|
|
841
841
|
}
|
|
842
|
-
if (j !==
|
|
842
|
+
if (j !== r.length)
|
|
843
843
|
throw new TypeError("invalid parameter format");
|
|
844
844
|
}
|
|
845
845
|
return G;
|
|
846
846
|
}
|
|
847
847
|
function B(o) {
|
|
848
|
-
var
|
|
849
|
-
if (typeof o.getHeader == "function" ?
|
|
848
|
+
var r;
|
|
849
|
+
if (typeof o.getHeader == "function" ? r = o.getHeader("content-type") : typeof o.headers == "object" && (r = o.headers && o.headers["content-type"]), typeof r != "string")
|
|
850
850
|
throw new TypeError("content-type header is missing from object");
|
|
851
|
-
return
|
|
851
|
+
return r;
|
|
852
852
|
}
|
|
853
853
|
function d(o) {
|
|
854
|
-
var
|
|
855
|
-
if (i.test(
|
|
856
|
-
return
|
|
857
|
-
if (
|
|
854
|
+
var r = String(o);
|
|
855
|
+
if (i.test(r))
|
|
856
|
+
return r;
|
|
857
|
+
if (r.length > 0 && !g.test(r))
|
|
858
858
|
throw new TypeError("invalid parameter value");
|
|
859
|
-
return '"' +
|
|
859
|
+
return '"' + r.replace(c, "\\$1") + '"';
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function E(o) {
|
|
862
862
|
this.parameters = /* @__PURE__ */ Object.create(null), this.type = o;
|
|
863
863
|
}
|
|
864
864
|
return X0;
|
|
@@ -867,33 +867,33 @@ var D3 = M3(), F0 = /* @__PURE__ */ new Map(), f1 = function(g) {
|
|
|
867
867
|
return g.cloneNode(!0);
|
|
868
868
|
}, b2 = function() {
|
|
869
869
|
return window.location.protocol === "file:";
|
|
870
|
-
}, B1 = function(g, i,
|
|
871
|
-
var
|
|
872
|
-
|
|
870
|
+
}, B1 = function(g, i, C) {
|
|
871
|
+
var c = new XMLHttpRequest();
|
|
872
|
+
c.onreadystatechange = function() {
|
|
873
873
|
try {
|
|
874
|
-
if (!/\.svg/i.test(g) &&
|
|
875
|
-
var l =
|
|
874
|
+
if (!/\.svg/i.test(g) && c.readyState === 2) {
|
|
875
|
+
var l = c.getResponseHeader("Content-Type");
|
|
876
876
|
if (!l)
|
|
877
877
|
throw new Error("Content type not found");
|
|
878
878
|
var h = D3.parse(l).type;
|
|
879
879
|
if (!(h === "image/svg+xml" || h === "text/plain"))
|
|
880
880
|
throw new Error("Invalid content type: ".concat(h));
|
|
881
881
|
}
|
|
882
|
-
if (
|
|
883
|
-
if (
|
|
882
|
+
if (c.readyState === 4) {
|
|
883
|
+
if (c.status === 404 || c.responseXML === null)
|
|
884
884
|
throw new Error(b2() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + g);
|
|
885
|
-
if (
|
|
886
|
-
|
|
885
|
+
if (c.status === 200 || b2() && c.status === 0)
|
|
886
|
+
C(null, c);
|
|
887
887
|
else
|
|
888
|
-
throw new Error("There was a problem injecting the SVG: " +
|
|
888
|
+
throw new Error("There was a problem injecting the SVG: " + c.status + " " + c.statusText);
|
|
889
889
|
}
|
|
890
890
|
} catch (t) {
|
|
891
|
-
if (
|
|
892
|
-
|
|
891
|
+
if (c.abort(), t instanceof Error)
|
|
892
|
+
C(t, c);
|
|
893
893
|
else
|
|
894
894
|
throw t;
|
|
895
895
|
}
|
|
896
|
-
},
|
|
896
|
+
}, c.open("GET", g), c.withCredentials = i, c.overrideMimeType && c.overrideMimeType("text/xml"), c.send();
|
|
897
897
|
}, p0 = {}, U2 = function(g, i) {
|
|
898
898
|
p0[g] = p0[g] || [], p0[g].push(i);
|
|
899
899
|
}, z3 = function(g) {
|
|
@@ -904,32 +904,32 @@ var D3 = M3(), F0 = /* @__PURE__ */ new Map(), f1 = function(g) {
|
|
|
904
904
|
B instanceof SVGSVGElement && d(null, f1(B)), B instanceof Error && d(B), h === p0[g].length - 1 && delete p0[g];
|
|
905
905
|
}
|
|
906
906
|
}, 0);
|
|
907
|
-
},
|
|
908
|
-
i(
|
|
909
|
-
}, v3 = function(g, i,
|
|
907
|
+
}, C = 0, c = p0[g].length; C < c; C++)
|
|
908
|
+
i(C);
|
|
909
|
+
}, v3 = function(g, i, C) {
|
|
910
910
|
if (F0.has(g)) {
|
|
911
|
-
var
|
|
912
|
-
if (
|
|
913
|
-
U2(g,
|
|
911
|
+
var c = F0.get(g);
|
|
912
|
+
if (c === void 0) {
|
|
913
|
+
U2(g, C);
|
|
914
914
|
return;
|
|
915
915
|
}
|
|
916
|
-
if (
|
|
917
|
-
|
|
916
|
+
if (c instanceof SVGSVGElement) {
|
|
917
|
+
C(null, f1(c));
|
|
918
918
|
return;
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
|
-
F0.set(g, void 0), U2(g,
|
|
921
|
+
F0.set(g, void 0), U2(g, C), B1(g, i, function(l, h) {
|
|
922
922
|
var t;
|
|
923
923
|
l ? F0.set(g, l) : ((t = h.responseXML) === null || t === void 0 ? void 0 : t.documentElement) instanceof SVGSVGElement && F0.set(g, h.responseXML.documentElement), z3(g);
|
|
924
924
|
});
|
|
925
|
-
}, Q3 = function(g, i,
|
|
926
|
-
B1(g, i, function(
|
|
925
|
+
}, Q3 = function(g, i, C) {
|
|
926
|
+
B1(g, i, function(c, l) {
|
|
927
927
|
var h;
|
|
928
|
-
|
|
928
|
+
c ? C(c) : ((h = l.responseXML) === null || h === void 0 ? void 0 : h.documentElement) instanceof SVGSVGElement && C(null, l.responseXML.documentElement);
|
|
929
929
|
});
|
|
930
930
|
}, d3 = 0, P3 = function() {
|
|
931
931
|
return ++d3;
|
|
932
|
-
}, G0 = [], S2 = {}, H3 = "http://www.w3.org/2000/svg", s2 = "http://www.w3.org/1999/xlink", J2 = function(g, i,
|
|
932
|
+
}, G0 = [], S2 = {}, H3 = "http://www.w3.org/2000/svg", s2 = "http://www.w3.org/1999/xlink", J2 = function(g, i, C, c, l, h, t) {
|
|
933
933
|
var B = g.getAttribute("data-src") || g.getAttribute("src");
|
|
934
934
|
if (!B) {
|
|
935
935
|
t(new Error("Invalid data-src or src attribute"));
|
|
@@ -940,30 +940,30 @@ var D3 = M3(), F0 = /* @__PURE__ */ new Map(), f1 = function(g) {
|
|
|
940
940
|
return;
|
|
941
941
|
}
|
|
942
942
|
G0.push(g), g.setAttribute("src", "");
|
|
943
|
-
var d =
|
|
944
|
-
d(B, l, function(
|
|
943
|
+
var d = c ? v3 : Q3;
|
|
944
|
+
d(B, l, function(E, o) {
|
|
945
945
|
if (!o) {
|
|
946
|
-
G0.splice(G0.indexOf(g), 1), g = null, t(
|
|
946
|
+
G0.splice(G0.indexOf(g), 1), g = null, t(E);
|
|
947
947
|
return;
|
|
948
948
|
}
|
|
949
|
-
var
|
|
950
|
-
|
|
949
|
+
var r = g.getAttribute("id");
|
|
950
|
+
r && o.setAttribute("id", r);
|
|
951
951
|
var j = g.getAttribute("title");
|
|
952
952
|
j && o.setAttribute("title", j);
|
|
953
|
-
var
|
|
954
|
-
|
|
953
|
+
var n = g.getAttribute("width");
|
|
954
|
+
n && o.setAttribute("width", n);
|
|
955
955
|
var G = g.getAttribute("height");
|
|
956
956
|
G && o.setAttribute("height", G);
|
|
957
957
|
var x = Array.from(new Set(l2(l2(l2([], (o.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (g.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
958
958
|
o.setAttribute("class", x);
|
|
959
|
-
var
|
|
960
|
-
|
|
959
|
+
var D = g.getAttribute("style");
|
|
960
|
+
D && o.setAttribute("style", D), o.setAttribute("data-src", B);
|
|
961
961
|
var O = [].filter.call(g.attributes, function(g0) {
|
|
962
962
|
return /^data-\w[\w-]*$/.test(g0.name);
|
|
963
963
|
});
|
|
964
964
|
if (Array.prototype.forEach.call(O, function(g0) {
|
|
965
965
|
g0.name && g0.value && o.setAttribute(g0.name, g0.value);
|
|
966
|
-
}),
|
|
966
|
+
}), C) {
|
|
967
967
|
var Y = {
|
|
968
968
|
clipPath: ["clip-path"],
|
|
969
969
|
"color-profile": ["color-profile"],
|
|
@@ -1017,16 +1017,16 @@ var D3 = M3(), F0 = /* @__PURE__ */ new Map(), f1 = function(g) {
|
|
|
1017
1017
|
g.parentNode.replaceChild(o, g), G0.splice(G0.indexOf(g), 1), g = null, t(null, o);
|
|
1018
1018
|
});
|
|
1019
1019
|
}, j3 = function(g, i) {
|
|
1020
|
-
var
|
|
1021
|
-
} :
|
|
1022
|
-
} : h, B =
|
|
1023
|
-
} : B,
|
|
1020
|
+
var C = i === void 0 ? {} : i, c = C.afterAll, l = c === void 0 ? function() {
|
|
1021
|
+
} : c, h = C.afterEach, t = h === void 0 ? function() {
|
|
1022
|
+
} : h, B = C.beforeEach, d = B === void 0 ? function() {
|
|
1023
|
+
} : B, E = C.cacheRequests, o = E === void 0 ? !0 : E, r = C.evalScripts, j = r === void 0 ? "never" : r, n = C.httpRequestWithCredentials, G = n === void 0 ? !1 : n, x = C.renumerateIRIElements, D = x === void 0 ? !0 : x;
|
|
1024
1024
|
if (g && "length" in g)
|
|
1025
1025
|
for (var O = 0, Y = 0, Z = g.length; Y < Z; Y++)
|
|
1026
|
-
J2(g[Y], j,
|
|
1026
|
+
J2(g[Y], j, D, o, G, d, function(a, X) {
|
|
1027
1027
|
t(a, X), g && "length" in g && g.length === ++O && l(O);
|
|
1028
1028
|
});
|
|
1029
|
-
else g ? J2(g, j,
|
|
1029
|
+
else g ? J2(g, j, D, o, G, d, function(a, X) {
|
|
1030
1030
|
t(a, X), l(1), g = null;
|
|
1031
1031
|
}) : l(0);
|
|
1032
1032
|
}, W0 = { exports: {} }, V0 = { exports: {} }, C0 = {};
|
|
@@ -1042,7 +1042,7 @@ var T2;
|
|
|
1042
1042
|
function G3() {
|
|
1043
1043
|
if (T2) return C0;
|
|
1044
1044
|
T2 = 1;
|
|
1045
|
-
var A = typeof Symbol == "function" && Symbol.for, g = A ? Symbol.for("react.element") : 60103, i = A ? Symbol.for("react.portal") : 60106,
|
|
1045
|
+
var A = typeof Symbol == "function" && Symbol.for, g = A ? Symbol.for("react.element") : 60103, i = A ? Symbol.for("react.portal") : 60106, C = A ? Symbol.for("react.fragment") : 60107, c = A ? Symbol.for("react.strict_mode") : 60108, l = A ? Symbol.for("react.profiler") : 60114, h = A ? Symbol.for("react.provider") : 60109, t = A ? Symbol.for("react.context") : 60110, B = A ? Symbol.for("react.async_mode") : 60111, d = A ? Symbol.for("react.concurrent_mode") : 60111, E = A ? Symbol.for("react.forward_ref") : 60112, o = A ? Symbol.for("react.suspense") : 60113, r = A ? Symbol.for("react.suspense_list") : 60120, j = A ? Symbol.for("react.memo") : 60115, n = A ? Symbol.for("react.lazy") : 60116, G = A ? Symbol.for("react.block") : 60121, x = A ? Symbol.for("react.fundamental") : 60117, D = A ? Symbol.for("react.responder") : 60118, O = A ? Symbol.for("react.scope") : 60119;
|
|
1046
1046
|
function Y(a) {
|
|
1047
1047
|
if (typeof a == "object" && a !== null) {
|
|
1048
1048
|
var X = a.$$typeof;
|
|
@@ -1051,16 +1051,16 @@ function G3() {
|
|
|
1051
1051
|
switch (a = a.type, a) {
|
|
1052
1052
|
case B:
|
|
1053
1053
|
case d:
|
|
1054
|
-
case c:
|
|
1055
|
-
case l:
|
|
1056
1054
|
case C:
|
|
1055
|
+
case l:
|
|
1056
|
+
case c:
|
|
1057
1057
|
case o:
|
|
1058
1058
|
return a;
|
|
1059
1059
|
default:
|
|
1060
1060
|
switch (a = a && a.$$typeof, a) {
|
|
1061
1061
|
case t:
|
|
1062
|
-
case
|
|
1063
|
-
case
|
|
1062
|
+
case E:
|
|
1063
|
+
case n:
|
|
1064
1064
|
case j:
|
|
1065
1065
|
case h:
|
|
1066
1066
|
return a;
|
|
@@ -1076,7 +1076,7 @@ function G3() {
|
|
|
1076
1076
|
function Z(a) {
|
|
1077
1077
|
return Y(a) === d;
|
|
1078
1078
|
}
|
|
1079
|
-
return C0.AsyncMode = B, C0.ConcurrentMode = d, C0.ContextConsumer = t, C0.ContextProvider = h, C0.Element = g, C0.ForwardRef =
|
|
1079
|
+
return C0.AsyncMode = B, C0.ConcurrentMode = d, C0.ContextConsumer = t, C0.ContextProvider = h, C0.Element = g, C0.ForwardRef = E, C0.Fragment = C, C0.Lazy = n, C0.Memo = j, C0.Portal = i, C0.Profiler = l, C0.StrictMode = c, C0.Suspense = o, C0.isAsyncMode = function(a) {
|
|
1080
1080
|
return Z(a) || Y(a) === B;
|
|
1081
1081
|
}, C0.isConcurrentMode = Z, C0.isContextConsumer = function(a) {
|
|
1082
1082
|
return Y(a) === t;
|
|
@@ -1085,11 +1085,11 @@ function G3() {
|
|
|
1085
1085
|
}, C0.isElement = function(a) {
|
|
1086
1086
|
return typeof a == "object" && a !== null && a.$$typeof === g;
|
|
1087
1087
|
}, C0.isForwardRef = function(a) {
|
|
1088
|
-
return Y(a) ===
|
|
1088
|
+
return Y(a) === E;
|
|
1089
1089
|
}, C0.isFragment = function(a) {
|
|
1090
|
-
return Y(a) ===
|
|
1090
|
+
return Y(a) === C;
|
|
1091
1091
|
}, C0.isLazy = function(a) {
|
|
1092
|
-
return Y(a) ===
|
|
1092
|
+
return Y(a) === n;
|
|
1093
1093
|
}, C0.isMemo = function(a) {
|
|
1094
1094
|
return Y(a) === j;
|
|
1095
1095
|
}, C0.isPortal = function(a) {
|
|
@@ -1097,11 +1097,11 @@ function G3() {
|
|
|
1097
1097
|
}, C0.isProfiler = function(a) {
|
|
1098
1098
|
return Y(a) === l;
|
|
1099
1099
|
}, C0.isStrictMode = function(a) {
|
|
1100
|
-
return Y(a) ===
|
|
1100
|
+
return Y(a) === c;
|
|
1101
1101
|
}, C0.isSuspense = function(a) {
|
|
1102
1102
|
return Y(a) === o;
|
|
1103
1103
|
}, C0.isValidElementType = function(a) {
|
|
1104
|
-
return typeof a == "string" || typeof a == "function" || a ===
|
|
1104
|
+
return typeof a == "string" || typeof a == "function" || a === C || a === d || a === l || a === c || a === o || a === r || typeof a == "object" && a !== null && (a.$$typeof === n || a.$$typeof === j || a.$$typeof === h || a.$$typeof === t || a.$$typeof === E || a.$$typeof === x || a.$$typeof === D || a.$$typeof === O || a.$$typeof === G);
|
|
1105
1105
|
}, C0.typeOf = Y, C0;
|
|
1106
1106
|
}
|
|
1107
1107
|
var c0 = {};
|
|
@@ -1116,10 +1116,10 @@ var c0 = {};
|
|
|
1116
1116
|
var X2;
|
|
1117
1117
|
function R3() {
|
|
1118
1118
|
return X2 || (X2 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1119
|
-
var A = typeof Symbol == "function" && Symbol.for, g = A ? Symbol.for("react.element") : 60103, i = A ? Symbol.for("react.portal") : 60106,
|
|
1119
|
+
var A = typeof Symbol == "function" && Symbol.for, g = A ? Symbol.for("react.element") : 60103, i = A ? Symbol.for("react.portal") : 60106, C = A ? Symbol.for("react.fragment") : 60107, c = A ? Symbol.for("react.strict_mode") : 60108, l = A ? Symbol.for("react.profiler") : 60114, h = A ? Symbol.for("react.provider") : 60109, t = A ? Symbol.for("react.context") : 60110, B = A ? Symbol.for("react.async_mode") : 60111, d = A ? Symbol.for("react.concurrent_mode") : 60111, E = A ? Symbol.for("react.forward_ref") : 60112, o = A ? Symbol.for("react.suspense") : 60113, r = A ? Symbol.for("react.suspense_list") : 60120, j = A ? Symbol.for("react.memo") : 60115, n = A ? Symbol.for("react.lazy") : 60116, G = A ? Symbol.for("react.block") : 60121, x = A ? Symbol.for("react.fundamental") : 60117, D = A ? Symbol.for("react.responder") : 60118, O = A ? Symbol.for("react.scope") : 60119;
|
|
1120
1120
|
function Y(R) {
|
|
1121
1121
|
return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1122
|
-
R ===
|
|
1122
|
+
R === C || R === d || R === l || R === c || R === o || R === r || typeof R == "object" && R !== null && (R.$$typeof === n || R.$$typeof === j || R.$$typeof === h || R.$$typeof === t || R.$$typeof === E || R.$$typeof === x || R.$$typeof === D || R.$$typeof === O || R.$$typeof === G);
|
|
1123
1123
|
}
|
|
1124
1124
|
function Z(R) {
|
|
1125
1125
|
if (typeof R == "object" && R !== null) {
|
|
@@ -1130,17 +1130,17 @@ function R3() {
|
|
|
1130
1130
|
switch (H0) {
|
|
1131
1131
|
case B:
|
|
1132
1132
|
case d:
|
|
1133
|
-
case c:
|
|
1134
|
-
case l:
|
|
1135
1133
|
case C:
|
|
1134
|
+
case l:
|
|
1135
|
+
case c:
|
|
1136
1136
|
case o:
|
|
1137
1137
|
return H0;
|
|
1138
1138
|
default:
|
|
1139
1139
|
var Y0 = H0 && H0.$$typeof;
|
|
1140
1140
|
switch (Y0) {
|
|
1141
1141
|
case t:
|
|
1142
|
-
case
|
|
1143
|
-
case
|
|
1142
|
+
case E:
|
|
1143
|
+
case n:
|
|
1144
1144
|
case j:
|
|
1145
1145
|
case h:
|
|
1146
1146
|
return Y0;
|
|
@@ -1153,7 +1153,7 @@ function R3() {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
|
-
var a = B, X = d, p = t, F = h, _ = g, e0 =
|
|
1156
|
+
var a = B, X = d, p = t, F = h, _ = g, e0 = E, s0 = C, l0 = n, S = j, $ = i, N = l, J = c, i0 = o, g0 = !1;
|
|
1157
1157
|
function h0(R) {
|
|
1158
1158
|
return g0 || (g0 = !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.")), s(R) || Z(R) === B;
|
|
1159
1159
|
}
|
|
@@ -1170,13 +1170,13 @@ function R3() {
|
|
|
1170
1170
|
return typeof R == "object" && R !== null && R.$$typeof === g;
|
|
1171
1171
|
}
|
|
1172
1172
|
function P(R) {
|
|
1173
|
-
return Z(R) ===
|
|
1173
|
+
return Z(R) === E;
|
|
1174
1174
|
}
|
|
1175
1175
|
function f(R) {
|
|
1176
|
-
return Z(R) ===
|
|
1176
|
+
return Z(R) === C;
|
|
1177
1177
|
}
|
|
1178
1178
|
function z(R) {
|
|
1179
|
-
return Z(R) ===
|
|
1179
|
+
return Z(R) === n;
|
|
1180
1180
|
}
|
|
1181
1181
|
function H(R) {
|
|
1182
1182
|
return Z(R) === j;
|
|
@@ -1188,7 +1188,7 @@ function R3() {
|
|
|
1188
1188
|
return Z(R) === l;
|
|
1189
1189
|
}
|
|
1190
1190
|
function U(R) {
|
|
1191
|
-
return Z(R) ===
|
|
1191
|
+
return Z(R) === c;
|
|
1192
1192
|
}
|
|
1193
1193
|
function f0(R) {
|
|
1194
1194
|
return Z(R) === o;
|
|
@@ -1210,12 +1210,12 @@ function x3() {
|
|
|
1210
1210
|
if (V2) return t2;
|
|
1211
1211
|
V2 = 1;
|
|
1212
1212
|
var A = Object.getOwnPropertySymbols, g = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
1213
|
-
function
|
|
1213
|
+
function C(l) {
|
|
1214
1214
|
if (l == null)
|
|
1215
1215
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
1216
1216
|
return Object(l);
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1218
|
+
function c() {
|
|
1219
1219
|
try {
|
|
1220
1220
|
if (!Object.assign)
|
|
1221
1221
|
return !1;
|
|
@@ -1224,28 +1224,28 @@ function x3() {
|
|
|
1224
1224
|
return !1;
|
|
1225
1225
|
for (var h = {}, t = 0; t < 10; t++)
|
|
1226
1226
|
h["_" + String.fromCharCode(t)] = t;
|
|
1227
|
-
var B = Object.getOwnPropertyNames(h).map(function(
|
|
1228
|
-
return h[
|
|
1227
|
+
var B = Object.getOwnPropertyNames(h).map(function(E) {
|
|
1228
|
+
return h[E];
|
|
1229
1229
|
});
|
|
1230
1230
|
if (B.join("") !== "0123456789")
|
|
1231
1231
|
return !1;
|
|
1232
1232
|
var d = {};
|
|
1233
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
1234
|
-
d[
|
|
1233
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(E) {
|
|
1234
|
+
d[E] = E;
|
|
1235
1235
|
}), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
|
|
1236
1236
|
} catch {
|
|
1237
1237
|
return !1;
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
|
-
return t2 =
|
|
1241
|
-
for (var t, B =
|
|
1242
|
-
t = Object(arguments[
|
|
1240
|
+
return t2 = c() ? Object.assign : function(l, h) {
|
|
1241
|
+
for (var t, B = C(l), d, E = 1; E < arguments.length; E++) {
|
|
1242
|
+
t = Object(arguments[E]);
|
|
1243
1243
|
for (var o in t)
|
|
1244
1244
|
g.call(t, o) && (B[o] = t[o]);
|
|
1245
1245
|
if (A) {
|
|
1246
1246
|
d = A(t);
|
|
1247
|
-
for (var
|
|
1248
|
-
i.call(t, d[
|
|
1247
|
+
for (var r = 0; r < d.length; r++)
|
|
1248
|
+
i.call(t, d[r]) && (B[d[r]] = t[d[r]]);
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
1251
|
return B;
|
|
@@ -1269,7 +1269,7 @@ function Y3() {
|
|
|
1269
1269
|
var A = function() {
|
|
1270
1270
|
};
|
|
1271
1271
|
if (process.env.NODE_ENV !== "production") {
|
|
1272
|
-
var g = /* @__PURE__ */ z2(), i = {},
|
|
1272
|
+
var g = /* @__PURE__ */ z2(), i = {}, C = /* @__PURE__ */ r1();
|
|
1273
1273
|
A = function(l) {
|
|
1274
1274
|
var h = "Warning: " + l;
|
|
1275
1275
|
typeof console < "u" && console.error(h);
|
|
@@ -1279,24 +1279,24 @@ function Y3() {
|
|
|
1279
1279
|
}
|
|
1280
1280
|
};
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function c(l, h, t, B, d) {
|
|
1283
1283
|
if (process.env.NODE_ENV !== "production") {
|
|
1284
|
-
for (var
|
|
1285
|
-
if (
|
|
1284
|
+
for (var E in l)
|
|
1285
|
+
if (C(l, E)) {
|
|
1286
1286
|
var o;
|
|
1287
1287
|
try {
|
|
1288
|
-
if (typeof l[
|
|
1289
|
-
var
|
|
1290
|
-
(B || "React class") + ": " + t + " type `" +
|
|
1288
|
+
if (typeof l[E] != "function") {
|
|
1289
|
+
var r = Error(
|
|
1290
|
+
(B || "React class") + ": " + t + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof l[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1291
1291
|
);
|
|
1292
|
-
throw
|
|
1292
|
+
throw r.name = "Invariant Violation", r;
|
|
1293
1293
|
}
|
|
1294
|
-
o = l[
|
|
1295
|
-
} catch (
|
|
1296
|
-
o =
|
|
1294
|
+
o = l[E](h, E, B, t, null, g);
|
|
1295
|
+
} catch (n) {
|
|
1296
|
+
o = n;
|
|
1297
1297
|
}
|
|
1298
1298
|
if (o && !(o instanceof Error) && A(
|
|
1299
|
-
(B || "React class") + ": type specification of " + t + " `" +
|
|
1299
|
+
(B || "React class") + ": type specification of " + t + " `" + E + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof o + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1300
1300
|
), o instanceof Error && !(o.message in i)) {
|
|
1301
1301
|
i[o.message] = !0;
|
|
1302
1302
|
var j = d ? d() : "";
|
|
@@ -1307,15 +1307,15 @@ function Y3() {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
|
-
return
|
|
1310
|
+
return c.resetWarningCache = function() {
|
|
1311
1311
|
process.env.NODE_ENV !== "production" && (i = {});
|
|
1312
|
-
}, h2 =
|
|
1312
|
+
}, h2 = c, h2;
|
|
1313
1313
|
}
|
|
1314
1314
|
var f2, A1;
|
|
1315
1315
|
function k3() {
|
|
1316
1316
|
if (A1) return f2;
|
|
1317
1317
|
A1 = 1;
|
|
1318
|
-
var A = a1(), g = x3(), i = /* @__PURE__ */ z2(),
|
|
1318
|
+
var A = a1(), g = x3(), i = /* @__PURE__ */ z2(), C = /* @__PURE__ */ r1(), c = /* @__PURE__ */ Y3(), l = function() {
|
|
1319
1319
|
};
|
|
1320
1320
|
process.env.NODE_ENV !== "production" && (l = function(t) {
|
|
1321
1321
|
var B = "Warning: " + t;
|
|
@@ -1329,21 +1329,21 @@ function k3() {
|
|
|
1329
1329
|
return null;
|
|
1330
1330
|
}
|
|
1331
1331
|
return f2 = function(t, B) {
|
|
1332
|
-
var d = typeof Symbol == "function" && Symbol.iterator,
|
|
1332
|
+
var d = typeof Symbol == "function" && Symbol.iterator, E = "@@iterator";
|
|
1333
1333
|
function o(s) {
|
|
1334
|
-
var v = s && (d && s[d] || s[
|
|
1334
|
+
var v = s && (d && s[d] || s[E]);
|
|
1335
1335
|
if (typeof v == "function")
|
|
1336
1336
|
return v;
|
|
1337
1337
|
}
|
|
1338
|
-
var
|
|
1339
|
-
array:
|
|
1340
|
-
bigint:
|
|
1341
|
-
bool:
|
|
1342
|
-
func:
|
|
1343
|
-
number:
|
|
1344
|
-
object:
|
|
1345
|
-
string:
|
|
1346
|
-
symbol:
|
|
1338
|
+
var r = "<<anonymous>>", j = {
|
|
1339
|
+
array: D("array"),
|
|
1340
|
+
bigint: D("bigint"),
|
|
1341
|
+
bool: D("boolean"),
|
|
1342
|
+
func: D("function"),
|
|
1343
|
+
number: D("number"),
|
|
1344
|
+
object: D("object"),
|
|
1345
|
+
string: D("string"),
|
|
1346
|
+
symbol: D("symbol"),
|
|
1347
1347
|
any: O(),
|
|
1348
1348
|
arrayOf: Y,
|
|
1349
1349
|
element: Z(),
|
|
@@ -1356,7 +1356,7 @@ function k3() {
|
|
|
1356
1356
|
shape: l0,
|
|
1357
1357
|
exact: S
|
|
1358
1358
|
};
|
|
1359
|
-
function
|
|
1359
|
+
function n(s, v) {
|
|
1360
1360
|
return s === v ? s !== 0 || 1 / s === 1 / v : s !== s && v !== v;
|
|
1361
1361
|
}
|
|
1362
1362
|
function G(s, v) {
|
|
@@ -1367,7 +1367,7 @@ function k3() {
|
|
|
1367
1367
|
if (process.env.NODE_ENV !== "production")
|
|
1368
1368
|
var v = {}, L = 0;
|
|
1369
1369
|
function Q(f, z, H, k, T, U, f0) {
|
|
1370
|
-
if (k = k ||
|
|
1370
|
+
if (k = k || r, U = U || H, f0 !== i) {
|
|
1371
1371
|
if (B) {
|
|
1372
1372
|
var R = new Error(
|
|
1373
1373
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -1386,7 +1386,7 @@ function k3() {
|
|
|
1386
1386
|
var P = Q.bind(null, !1);
|
|
1387
1387
|
return P.isRequired = Q.bind(null, !0), P;
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function D(s) {
|
|
1390
1390
|
function v(L, Q, P, f, z, H) {
|
|
1391
1391
|
var k = L[Q], T = J(k);
|
|
1392
1392
|
if (T !== s) {
|
|
@@ -1446,7 +1446,7 @@ function k3() {
|
|
|
1446
1446
|
function X(s) {
|
|
1447
1447
|
function v(L, Q, P, f, z) {
|
|
1448
1448
|
if (!(L[Q] instanceof s)) {
|
|
1449
|
-
var H = s.name ||
|
|
1449
|
+
var H = s.name || r, k = h0(L[Q]);
|
|
1450
1450
|
return new G("Invalid " + f + " `" + z + "` of type " + ("`" + k + "` supplied to `" + P + "`, expected ") + ("instance of `" + H + "`."));
|
|
1451
1451
|
}
|
|
1452
1452
|
return null;
|
|
@@ -1460,7 +1460,7 @@ function k3() {
|
|
|
1460
1460
|
) : l("Invalid argument supplied to oneOf, expected an array.")), h;
|
|
1461
1461
|
function v(L, Q, P, f, z) {
|
|
1462
1462
|
for (var H = L[Q], k = 0; k < s.length; k++)
|
|
1463
|
-
if (
|
|
1463
|
+
if (n(H, s[k]))
|
|
1464
1464
|
return null;
|
|
1465
1465
|
var T = JSON.stringify(s, function(f0, R) {
|
|
1466
1466
|
var E0 = i0(R);
|
|
@@ -1478,7 +1478,7 @@ function k3() {
|
|
|
1478
1478
|
if (k !== "object")
|
|
1479
1479
|
return new G("Invalid " + f + " `" + z + "` of type " + ("`" + k + "` supplied to `" + P + "`, expected an object."));
|
|
1480
1480
|
for (var T in H)
|
|
1481
|
-
if (
|
|
1481
|
+
if (C(H, T)) {
|
|
1482
1482
|
var U = s(H, T, P, f, z + "." + T, i);
|
|
1483
1483
|
if (U instanceof Error)
|
|
1484
1484
|
return U;
|
|
@@ -1502,7 +1502,7 @@ function k3() {
|
|
|
1502
1502
|
var f0 = s[U], R = f0(P, f, z, H, k, i);
|
|
1503
1503
|
if (R == null)
|
|
1504
1504
|
return null;
|
|
1505
|
-
R.data &&
|
|
1505
|
+
R.data && C(R.data, "expectedType") && T.push(R.data.expectedType);
|
|
1506
1506
|
}
|
|
1507
1507
|
var E0 = T.length > 0 ? ", expected one of type [" + T.join(", ") + "]" : "";
|
|
1508
1508
|
return new G("Invalid " + H + " `" + k + "` supplied to " + ("`" + z + "`" + E0 + "."));
|
|
@@ -1545,7 +1545,7 @@ function k3() {
|
|
|
1545
1545
|
var T = g({}, L[Q], s);
|
|
1546
1546
|
for (var U in T) {
|
|
1547
1547
|
var f0 = s[U];
|
|
1548
|
-
if (
|
|
1548
|
+
if (C(s, U) && typeof f0 != "function")
|
|
1549
1549
|
return s0(P, f, z, U, i0(f0));
|
|
1550
1550
|
if (!f0)
|
|
1551
1551
|
return new G(
|
|
@@ -1627,9 +1627,9 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
|
|
|
1627
1627
|
}
|
|
1628
1628
|
}
|
|
1629
1629
|
function h0(s) {
|
|
1630
|
-
return !s.constructor || !s.constructor.name ?
|
|
1630
|
+
return !s.constructor || !s.constructor.name ? r : s.constructor.name;
|
|
1631
1631
|
}
|
|
1632
|
-
return j.checkPropTypes =
|
|
1632
|
+
return j.checkPropTypes = c, j.resetWarningCache = c.resetWarningCache, j.PropTypes = j, j;
|
|
1633
1633
|
}, f2;
|
|
1634
1634
|
}
|
|
1635
1635
|
var B2, g1;
|
|
@@ -1642,38 +1642,38 @@ function m3() {
|
|
|
1642
1642
|
function i() {
|
|
1643
1643
|
}
|
|
1644
1644
|
return i.resetWarningCache = g, B2 = function() {
|
|
1645
|
-
function
|
|
1645
|
+
function C(h, t, B, d, E, o) {
|
|
1646
1646
|
if (o !== A) {
|
|
1647
|
-
var
|
|
1647
|
+
var r = new Error(
|
|
1648
1648
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1649
1649
|
);
|
|
1650
|
-
throw
|
|
1650
|
+
throw r.name = "Invariant Violation", r;
|
|
1651
1651
|
}
|
|
1652
1652
|
}
|
|
1653
|
-
|
|
1654
|
-
function
|
|
1655
|
-
return
|
|
1653
|
+
C.isRequired = C;
|
|
1654
|
+
function c() {
|
|
1655
|
+
return C;
|
|
1656
1656
|
}
|
|
1657
1657
|
var l = {
|
|
1658
|
-
array:
|
|
1659
|
-
bigint:
|
|
1660
|
-
bool:
|
|
1661
|
-
func:
|
|
1662
|
-
number:
|
|
1663
|
-
object:
|
|
1664
|
-
string:
|
|
1665
|
-
symbol:
|
|
1666
|
-
any:
|
|
1667
|
-
arrayOf:
|
|
1668
|
-
element:
|
|
1669
|
-
elementType:
|
|
1670
|
-
instanceOf:
|
|
1671
|
-
node:
|
|
1672
|
-
objectOf:
|
|
1673
|
-
oneOf:
|
|
1674
|
-
oneOfType:
|
|
1675
|
-
shape:
|
|
1676
|
-
exact:
|
|
1658
|
+
array: C,
|
|
1659
|
+
bigint: C,
|
|
1660
|
+
bool: C,
|
|
1661
|
+
func: C,
|
|
1662
|
+
number: C,
|
|
1663
|
+
object: C,
|
|
1664
|
+
string: C,
|
|
1665
|
+
symbol: C,
|
|
1666
|
+
any: C,
|
|
1667
|
+
arrayOf: c,
|
|
1668
|
+
element: C,
|
|
1669
|
+
elementType: C,
|
|
1670
|
+
instanceOf: c,
|
|
1671
|
+
node: C,
|
|
1672
|
+
objectOf: c,
|
|
1673
|
+
oneOf: c,
|
|
1674
|
+
oneOfType: c,
|
|
1675
|
+
shape: c,
|
|
1676
|
+
exact: c,
|
|
1677
1677
|
checkPropTypes: i,
|
|
1678
1678
|
resetWarningCache: g
|
|
1679
1679
|
};
|
|
@@ -1694,37 +1694,37 @@ var n0 = /* @__PURE__ */ p3(), y3 = function(g) {
|
|
|
1694
1694
|
var i = (g == null ? void 0 : g.ownerDocument) || document;
|
|
1695
1695
|
return i.defaultView || window;
|
|
1696
1696
|
}, O3 = function(g, i) {
|
|
1697
|
-
for (var
|
|
1698
|
-
if (!(
|
|
1697
|
+
for (var C in g)
|
|
1698
|
+
if (!(C in i))
|
|
1699
1699
|
return !0;
|
|
1700
|
-
for (var
|
|
1701
|
-
if (g[
|
|
1700
|
+
for (var c in i)
|
|
1701
|
+
if (g[c] !== i[c])
|
|
1702
1702
|
return !0;
|
|
1703
1703
|
return !1;
|
|
1704
1704
|
}, u3 = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], q0 = "http://www.w3.org/2000/svg", C1 = "http://www.w3.org/1999/xlink", v2 = /* @__PURE__ */ function(A) {
|
|
1705
1705
|
function g() {
|
|
1706
|
-
for (var
|
|
1706
|
+
for (var C, c = arguments.length, l = new Array(c), h = 0; h < c; h++)
|
|
1707
1707
|
l[h] = arguments[h];
|
|
1708
|
-
return
|
|
1708
|
+
return C = A.call.apply(A, [this].concat(l)) || this, C.initialState = {
|
|
1709
1709
|
hasError: !1,
|
|
1710
1710
|
isLoading: !0
|
|
1711
|
-
},
|
|
1712
|
-
|
|
1713
|
-
},
|
|
1711
|
+
}, C.state = C.initialState, C._isMounted = !1, C.reactWrapper = void 0, C.nonReactWrapper = void 0, C.refCallback = function(t) {
|
|
1712
|
+
C.reactWrapper = t;
|
|
1713
|
+
}, C;
|
|
1714
1714
|
}
|
|
1715
1715
|
E3(g, A);
|
|
1716
1716
|
var i = g.prototype;
|
|
1717
1717
|
return i.renderSVG = function() {
|
|
1718
|
-
var
|
|
1718
|
+
var c = this;
|
|
1719
1719
|
if (this.reactWrapper instanceof y3(this.reactWrapper).Node) {
|
|
1720
|
-
var l = this.props, h = l.desc, t = l.evalScripts, B = l.httpRequestWithCredentials, d = l.renumerateIRIElements,
|
|
1721
|
-
x === "svg" ? (
|
|
1720
|
+
var l = this.props, h = l.desc, t = l.evalScripts, B = l.httpRequestWithCredentials, d = l.renumerateIRIElements, E = l.src, o = l.title, r = l.useRequestCache, j = this.props.onError, n = this.props.beforeInjection, G = this.props.afterInjection, x = this.props.wrapper, D, O;
|
|
1721
|
+
x === "svg" ? (D = document.createElementNS(q0, x), D.setAttribute("xmlns", q0), D.setAttribute("xmlns:xlink", C1), O = document.createElementNS(q0, x)) : (D = document.createElement(x), O = document.createElement(x)), D.appendChild(O), O.dataset.src = E, this.nonReactWrapper = this.reactWrapper.appendChild(D);
|
|
1722
1722
|
var Y = function(p) {
|
|
1723
|
-
if (
|
|
1723
|
+
if (c.removeSVG(), !c._isMounted) {
|
|
1724
1724
|
j(p);
|
|
1725
1725
|
return;
|
|
1726
1726
|
}
|
|
1727
|
-
|
|
1727
|
+
c.setState(function() {
|
|
1728
1728
|
return {
|
|
1729
1729
|
hasError: !0,
|
|
1730
1730
|
isLoading: !1
|
|
@@ -1737,7 +1737,7 @@ var n0 = /* @__PURE__ */ p3(), y3 = function(g) {
|
|
|
1737
1737
|
Y(p);
|
|
1738
1738
|
return;
|
|
1739
1739
|
}
|
|
1740
|
-
|
|
1740
|
+
c._isMounted && c.setState(function() {
|
|
1741
1741
|
return {
|
|
1742
1742
|
isLoading: !1
|
|
1743
1743
|
};
|
|
@@ -1762,7 +1762,7 @@ var n0 = /* @__PURE__ */ p3(), y3 = function(g) {
|
|
|
1762
1762
|
s0.innerHTML = o, p.prepend(s0);
|
|
1763
1763
|
}
|
|
1764
1764
|
try {
|
|
1765
|
-
|
|
1765
|
+
n(p);
|
|
1766
1766
|
} catch (l0) {
|
|
1767
1767
|
Y(l0);
|
|
1768
1768
|
}
|
|
@@ -1770,20 +1770,20 @@ var n0 = /* @__PURE__ */ p3(), y3 = function(g) {
|
|
|
1770
1770
|
j3(O, {
|
|
1771
1771
|
afterEach: Z,
|
|
1772
1772
|
beforeEach: a,
|
|
1773
|
-
cacheRequests:
|
|
1773
|
+
cacheRequests: r,
|
|
1774
1774
|
evalScripts: t,
|
|
1775
1775
|
httpRequestWithCredentials: B,
|
|
1776
1776
|
renumerateIRIElements: d
|
|
1777
1777
|
});
|
|
1778
1778
|
}
|
|
1779
1779
|
}, i.removeSVG = function() {
|
|
1780
|
-
var
|
|
1781
|
-
(
|
|
1780
|
+
var c;
|
|
1781
|
+
(c = this.nonReactWrapper) != null && c.parentNode && (this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper), this.nonReactWrapper = null);
|
|
1782
1782
|
}, i.componentDidMount = function() {
|
|
1783
1783
|
this._isMounted = !0, this.renderSVG();
|
|
1784
|
-
}, i.componentDidUpdate = function(
|
|
1784
|
+
}, i.componentDidUpdate = function(c) {
|
|
1785
1785
|
var l = this;
|
|
1786
|
-
O3(_0({},
|
|
1786
|
+
O3(_0({}, c), this.props) && this.setState(function() {
|
|
1787
1787
|
return l.initialState;
|
|
1788
1788
|
}, function() {
|
|
1789
1789
|
l.removeSVG(), l.renderSVG();
|
|
@@ -1791,13 +1791,13 @@ var n0 = /* @__PURE__ */ p3(), y3 = function(g) {
|
|
|
1791
1791
|
}, i.componentWillUnmount = function() {
|
|
1792
1792
|
this._isMounted = !1, this.removeSVG();
|
|
1793
1793
|
}, i.render = function() {
|
|
1794
|
-
var
|
|
1795
|
-
|
|
1796
|
-
var l =
|
|
1797
|
-
|
|
1798
|
-
var h =
|
|
1799
|
-
|
|
1800
|
-
var t =
|
|
1794
|
+
var c = this.props;
|
|
1795
|
+
c.afterInjection, c.beforeInjection, c.desc, c.evalScripts;
|
|
1796
|
+
var l = c.fallback;
|
|
1797
|
+
c.httpRequestWithCredentials;
|
|
1798
|
+
var h = c.loading;
|
|
1799
|
+
c.renumerateIRIElements, c.src, c.title, c.useRequestCache;
|
|
1800
|
+
var t = c.wrapper, B = w3(c, u3), d = t;
|
|
1801
1801
|
return /* @__PURE__ */ S0.createElement(d, _0({}, B, {
|
|
1802
1802
|
ref: this.refCallback
|
|
1803
1803
|
}, t === "svg" ? {
|
|
@@ -1863,13 +1863,13 @@ const Z3 = w2`
|
|
|
1863
1863
|
fill: ${({ color: A }) => A || "black"};
|
|
1864
1864
|
}
|
|
1865
1865
|
}
|
|
1866
|
-
`, a0 = ({ src: A, color: g, width: i, height:
|
|
1866
|
+
`, a0 = ({ src: A, color: g, width: i, height: C, className: c, onClick: l, loading: h }) => /* @__PURE__ */ e.jsx(
|
|
1867
1867
|
L3,
|
|
1868
1868
|
{
|
|
1869
1869
|
color: g,
|
|
1870
1870
|
width: i,
|
|
1871
|
-
height:
|
|
1872
|
-
className:
|
|
1871
|
+
height: C,
|
|
1872
|
+
className: c,
|
|
1873
1873
|
clickable: !!l,
|
|
1874
1874
|
loading: h,
|
|
1875
1875
|
onClick: l,
|
|
@@ -1900,32 +1900,32 @@ const Z3 = w2`
|
|
|
1900
1900
|
size: A = "small",
|
|
1901
1901
|
as: g = "p",
|
|
1902
1902
|
color: i = "inherit",
|
|
1903
|
-
textTransform:
|
|
1904
|
-
textAlign:
|
|
1903
|
+
textTransform: C = "none",
|
|
1904
|
+
textAlign: c = "left",
|
|
1905
1905
|
lineHeight: l = "140%",
|
|
1906
1906
|
letterSpacing: h = "normal",
|
|
1907
1907
|
margin: t = "0",
|
|
1908
1908
|
padding: B = "0",
|
|
1909
1909
|
children: d,
|
|
1910
|
-
...
|
|
1910
|
+
...E
|
|
1911
1911
|
}) => /* @__PURE__ */ e.jsx(
|
|
1912
1912
|
K3,
|
|
1913
1913
|
{
|
|
1914
1914
|
as: g,
|
|
1915
1915
|
size: A,
|
|
1916
1916
|
color: i,
|
|
1917
|
-
textTransform:
|
|
1918
|
-
textAlign:
|
|
1917
|
+
textTransform: C,
|
|
1918
|
+
textAlign: c,
|
|
1919
1919
|
lineHeight: l,
|
|
1920
1920
|
letterSpacing: h,
|
|
1921
1921
|
margin: t,
|
|
1922
1922
|
padding: B,
|
|
1923
|
-
...
|
|
1923
|
+
...E,
|
|
1924
1924
|
children: d
|
|
1925
1925
|
}
|
|
1926
1926
|
), {
|
|
1927
1927
|
colors: { cyan40: c1, mint40: b3, honey40: U3, red40: S3, shade40: J3, shade30: T3 }
|
|
1928
|
-
} =
|
|
1928
|
+
} = w, O7 = ({ title: A, onClick: g, variant: i, subTitle: C, ...c }) => {
|
|
1929
1929
|
const l = () => {
|
|
1930
1930
|
switch (i) {
|
|
1931
1931
|
case "notice":
|
|
@@ -1940,17 +1940,17 @@ const Z3 = w2`
|
|
|
1940
1940
|
return { icon: N2, color: c1 };
|
|
1941
1941
|
}
|
|
1942
1942
|
}, { icon: h, color: t } = l();
|
|
1943
|
-
return /* @__PURE__ */ e.jsxs(f3, { variant: i, ...
|
|
1943
|
+
return /* @__PURE__ */ e.jsxs(f3, { variant: i, ...c, children: [
|
|
1944
1944
|
/* @__PURE__ */ e.jsxs("div", { className: "bannerWrapper", children: [
|
|
1945
1945
|
/* @__PURE__ */ e.jsx(a0, { src: h, className: "buttonRadiusWrapperIcon" }),
|
|
1946
1946
|
/* @__PURE__ */ e.jsxs("span", { children: [
|
|
1947
1947
|
/* @__PURE__ */ e.jsx(v0, { size: "medium", color: t, children: A }),
|
|
1948
|
-
|
|
1948
|
+
C && /* @__PURE__ */ e.jsx(v0, { size: "small", color: J3, children: C })
|
|
1949
1949
|
] })
|
|
1950
1950
|
] }),
|
|
1951
1951
|
/* @__PURE__ */ e.jsx(a0, { src: i1, width: "14px", height: "14px", color: T3, onClick: g })
|
|
1952
1952
|
] });
|
|
1953
|
-
}, { colors: u } =
|
|
1953
|
+
}, { colors: u } = w, X3 = w2`
|
|
1954
1954
|
0% { transform: rotate(0deg); }
|
|
1955
1955
|
100% { transform: rotate(360deg); }
|
|
1956
1956
|
`, x0 = (A) => b`
|
|
@@ -2157,7 +2157,7 @@ const $3 = y.button`
|
|
|
2157
2157
|
.buttonRadiusWrapperIcon {
|
|
2158
2158
|
margin-top: 4px;
|
|
2159
2159
|
}
|
|
2160
|
-
`, { colors: j0 } =
|
|
2160
|
+
`, { colors: j0 } = w, _3 = ({ variant: A, outline: g }) => {
|
|
2161
2161
|
if (g) {
|
|
2162
2162
|
if (A === "primary")
|
|
2163
2163
|
return j0.cyan50;
|
|
@@ -2179,21 +2179,21 @@ const $3 = y.button`
|
|
|
2179
2179
|
variant: A = "primary",
|
|
2180
2180
|
children: g,
|
|
2181
2181
|
disabled: i = !1,
|
|
2182
|
-
icon:
|
|
2183
|
-
radius:
|
|
2182
|
+
icon: C,
|
|
2183
|
+
radius: c,
|
|
2184
2184
|
outline: l,
|
|
2185
2185
|
halfLeft: h,
|
|
2186
2186
|
halfRight: t,
|
|
2187
2187
|
fullWidth: B,
|
|
2188
2188
|
size: d,
|
|
2189
|
-
loading:
|
|
2189
|
+
loading: E,
|
|
2190
2190
|
...o
|
|
2191
2191
|
}) => /* @__PURE__ */ e.jsxs(
|
|
2192
2192
|
$3,
|
|
2193
2193
|
{
|
|
2194
2194
|
variant: A,
|
|
2195
2195
|
disabled: i,
|
|
2196
|
-
radius:
|
|
2196
|
+
radius: c,
|
|
2197
2197
|
outline: l,
|
|
2198
2198
|
halfLeft: h,
|
|
2199
2199
|
halfRight: t,
|
|
@@ -2201,11 +2201,11 @@ const $3 = y.button`
|
|
|
2201
2201
|
size: d,
|
|
2202
2202
|
...o,
|
|
2203
2203
|
children: [
|
|
2204
|
-
|
|
2205
|
-
|
|
2204
|
+
E && /* @__PURE__ */ e.jsx(a0, { src: h1, loading: !0, color: _3({ variant: A, outline: l }) }),
|
|
2205
|
+
C && /* @__PURE__ */ e.jsx(
|
|
2206
2206
|
a0,
|
|
2207
2207
|
{
|
|
2208
|
-
src:
|
|
2208
|
+
src: C,
|
|
2209
2209
|
color: "white",
|
|
2210
2210
|
className: "buttonRadiusWrapperIcon",
|
|
2211
2211
|
width: d !== "large" ? "20px" : "24px",
|
|
@@ -2215,7 +2215,7 @@ const $3 = y.button`
|
|
|
2215
2215
|
g
|
|
2216
2216
|
]
|
|
2217
2217
|
}
|
|
2218
|
-
), { colors: V } =
|
|
2218
|
+
), { colors: V } = w, u0 = (A) => b`
|
|
2219
2219
|
.buttonRadiusIconWrapperIcon {
|
|
2220
2220
|
background: ${A};
|
|
2221
2221
|
width: 56px;
|
|
@@ -2361,27 +2361,27 @@ const $3 = y.button`
|
|
|
2361
2361
|
variant: A = "primary",
|
|
2362
2362
|
children: g,
|
|
2363
2363
|
disabled: i = !1,
|
|
2364
|
-
icon:
|
|
2365
|
-
subTitle:
|
|
2364
|
+
icon: C,
|
|
2365
|
+
subTitle: c,
|
|
2366
2366
|
size: l,
|
|
2367
2367
|
...h
|
|
2368
|
-
}) => /* @__PURE__ */ e.jsxs(I4, { variant: A, disabled: i, subTitle:
|
|
2368
|
+
}) => /* @__PURE__ */ e.jsxs(I4, { variant: A, disabled: i, subTitle: c, ...h, size: l, children: [
|
|
2369
2369
|
/* @__PURE__ */ e.jsxs("span", { className: "buttonRadiusIconContainer", children: [
|
|
2370
2370
|
g,
|
|
2371
2371
|
" ",
|
|
2372
|
-
|
|
2372
|
+
c && /* @__PURE__ */ e.jsx("p", { className: "buttonRadiusIconTitle", children: c })
|
|
2373
2373
|
] }),
|
|
2374
2374
|
/* @__PURE__ */ e.jsx("span", { className: "buttonRadiusIconWrapperIcon", children: /* @__PURE__ */ e.jsx(
|
|
2375
2375
|
a0,
|
|
2376
2376
|
{
|
|
2377
|
-
src:
|
|
2377
|
+
src: C || "",
|
|
2378
2378
|
color: "white",
|
|
2379
2379
|
className: "buttonRadiusWrapperIcon",
|
|
2380
2380
|
width: l !== "large" ? "20px" : "24px",
|
|
2381
2381
|
height: l !== "large" ? "20px" : "24px"
|
|
2382
2382
|
}
|
|
2383
2383
|
) })
|
|
2384
|
-
] }), { colors: A0 } =
|
|
2384
|
+
] }), { colors: A0 } = w, R0 = (A) => b`
|
|
2385
2385
|
.buttonRadiusWrapperIcon {
|
|
2386
2386
|
svg {
|
|
2387
2387
|
fill: ${A};
|
|
@@ -2512,17 +2512,17 @@ const $3 = y.button`
|
|
|
2512
2512
|
variant: A = "primary",
|
|
2513
2513
|
children: g,
|
|
2514
2514
|
disabled: i = !1,
|
|
2515
|
-
icon:
|
|
2516
|
-
outline:
|
|
2515
|
+
icon: C,
|
|
2516
|
+
outline: c,
|
|
2517
2517
|
badge: l,
|
|
2518
2518
|
size: h = "medium",
|
|
2519
2519
|
...t
|
|
2520
|
-
}) => /* @__PURE__ */ e.jsxs(c4, { variant: A, disabled: i, outline:
|
|
2520
|
+
}) => /* @__PURE__ */ e.jsxs(c4, { variant: A, disabled: i, outline: c, badge: l, size: h, ...t, children: [
|
|
2521
2521
|
l && h === "medium" && /* @__PURE__ */ e.jsx("span", { className: "buttonRoundBadge", children: l }),
|
|
2522
2522
|
/* @__PURE__ */ e.jsx(
|
|
2523
2523
|
a0,
|
|
2524
2524
|
{
|
|
2525
|
-
src:
|
|
2525
|
+
src: C || "",
|
|
2526
2526
|
color: "white",
|
|
2527
2527
|
width: h === "small" ? "16px" : "20px",
|
|
2528
2528
|
height: h === "small" ? "16px" : "20px",
|
|
@@ -2539,10 +2539,10 @@ const $3 = y.button`
|
|
|
2539
2539
|
border: none;
|
|
2540
2540
|
outline: none;
|
|
2541
2541
|
|
|
2542
|
-
color: ${
|
|
2542
|
+
color: ${w.colors.shade50};
|
|
2543
2543
|
|
|
2544
|
-
font-family: ${
|
|
2545
|
-
font-size: ${
|
|
2544
|
+
font-family: ${w.fonts.join(", ")};
|
|
2545
|
+
font-size: ${w.paragraph.medium};
|
|
2546
2546
|
|
|
2547
2547
|
&:active,
|
|
2548
2548
|
&:focus {
|
|
@@ -2551,8 +2551,8 @@ const $3 = y.button`
|
|
|
2551
2551
|
}
|
|
2552
2552
|
|
|
2553
2553
|
&::placeholder {
|
|
2554
|
-
color: ${
|
|
2555
|
-
font-size: ${
|
|
2554
|
+
color: ${w.colors.shade30};
|
|
2555
|
+
font-size: ${w.paragraph.medium};
|
|
2556
2556
|
opacity: 1;
|
|
2557
2557
|
}
|
|
2558
2558
|
|
|
@@ -2562,7 +2562,7 @@ const $3 = y.button`
|
|
|
2562
2562
|
}
|
|
2563
2563
|
`, s4 = y.label`
|
|
2564
2564
|
position: absolute;
|
|
2565
|
-
color: ${
|
|
2565
|
+
color: ${w.colors.shade50};
|
|
2566
2566
|
|
|
2567
2567
|
box-sizing: content-box;
|
|
2568
2568
|
left: 15px;
|
|
@@ -2570,7 +2570,7 @@ const $3 = y.button`
|
|
|
2570
2570
|
padding: 0 1px;
|
|
2571
2571
|
|
|
2572
2572
|
font-family: 'Nunito Sans', sans-serif;
|
|
2573
|
-
font-size: ${
|
|
2573
|
+
font-size: ${w.paragraph.small};
|
|
2574
2574
|
font-weight: 600;
|
|
2575
2575
|
text-wrap: nowrap;
|
|
2576
2576
|
`, t4 = y.div`
|
|
@@ -2586,7 +2586,7 @@ const $3 = y.button`
|
|
|
2586
2586
|
gap: 8px;
|
|
2587
2587
|
border-radius: 4px;
|
|
2588
2588
|
|
|
2589
|
-
background-color: ${({ disabled: A }) => A ?
|
|
2589
|
+
background-color: ${({ disabled: A }) => A ? w.colors.shade10 : w.colors.white};
|
|
2590
2590
|
|
|
2591
2591
|
cursor: ${({ disabled: A }) => A ? "not-allowed" : "pointer"};
|
|
2592
2592
|
`, i4 = y.div`
|
|
@@ -2595,7 +2595,7 @@ const $3 = y.button`
|
|
|
2595
2595
|
box-sizing: content-box;
|
|
2596
2596
|
inset: 0px;
|
|
2597
2597
|
border-radius: 4px;
|
|
2598
|
-
border: 1px solid ${
|
|
2598
|
+
border: 1px solid ${w.colors.shade20};
|
|
2599
2599
|
clip-rule: evenodd;
|
|
2600
2600
|
clip-path: path(
|
|
2601
2601
|
'${({ label: A, content: g }) => A.height !== 0 && A.width !== 0 ? `M ${g.x} ${g.y} l ${g.width} 0 l 0 ${g.height} l -${g.width} 0z M ${A.x} ${A.y} l 0 ${A.height} l ${A.width} 0 l 0 -${A.height}z` : ""}'
|
|
@@ -2604,26 +2604,26 @@ const $3 = y.button`
|
|
|
2604
2604
|
label: A,
|
|
2605
2605
|
readonly: g,
|
|
2606
2606
|
onChange: i,
|
|
2607
|
-
onInput:
|
|
2608
|
-
value:
|
|
2607
|
+
onInput: C,
|
|
2608
|
+
value: c,
|
|
2609
2609
|
onKeyDown: l,
|
|
2610
2610
|
disabled: h,
|
|
2611
2611
|
onKeyUp: t,
|
|
2612
2612
|
leftIcon: B,
|
|
2613
2613
|
rightIcon: d,
|
|
2614
|
-
...
|
|
2614
|
+
...E
|
|
2615
2615
|
}) => {
|
|
2616
|
-
const o = s1(), [
|
|
2616
|
+
const o = s1(), [r, j] = y0.useState({
|
|
2617
2617
|
x: 0,
|
|
2618
2618
|
y: 0,
|
|
2619
2619
|
width: 0,
|
|
2620
2620
|
height: 0
|
|
2621
|
-
}), [
|
|
2621
|
+
}), [n, G] = y0.useState({
|
|
2622
2622
|
x: 0,
|
|
2623
2623
|
y: 0,
|
|
2624
2624
|
width: 0,
|
|
2625
2625
|
height: 0
|
|
2626
|
-
}), x = w0(null),
|
|
2626
|
+
}), x = w0(null), D = w0(null), O = w0(null), Y = P0(() => {
|
|
2627
2627
|
var p, F, _, e0, s0, l0, S, $;
|
|
2628
2628
|
G({
|
|
2629
2629
|
x: (((p = x.current) == null ? void 0 : p.offsetLeft) ?? 0) - 30,
|
|
@@ -2631,10 +2631,10 @@ const $3 = y.button`
|
|
|
2631
2631
|
width: (((_ = x.current) == null ? void 0 : _.offsetWidth) ?? 0) + 30 * 2,
|
|
2632
2632
|
height: (((e0 = x.current) == null ? void 0 : e0.offsetHeight) ?? 0) + 30 * 2
|
|
2633
2633
|
}), j({
|
|
2634
|
-
x: (((s0 =
|
|
2635
|
-
y: (((l0 =
|
|
2636
|
-
width: (((S =
|
|
2637
|
-
height: ((($ =
|
|
2634
|
+
x: (((s0 = D.current) == null ? void 0 : s0.offsetLeft) ?? 0) - 4,
|
|
2635
|
+
y: (((l0 = D.current) == null ? void 0 : l0.offsetTop) ?? 0) - 4,
|
|
2636
|
+
width: (((S = D.current) == null ? void 0 : S.offsetWidth) ?? 0) + 4 * 2,
|
|
2637
|
+
height: ((($ = D.current) == null ? void 0 : $.offsetHeight) ?? 0) + 4 * 2
|
|
2638
2638
|
});
|
|
2639
2639
|
}, []), Z = () => {
|
|
2640
2640
|
var a;
|
|
@@ -2643,25 +2643,25 @@ const $3 = y.button`
|
|
|
2643
2643
|
return M0(() => {
|
|
2644
2644
|
const a = () => Y();
|
|
2645
2645
|
let X = null;
|
|
2646
|
-
return ResizeObserver ? (X = new ResizeObserver(a), x.current && X.observe(x.current),
|
|
2646
|
+
return ResizeObserver ? (X = new ResizeObserver(a), x.current && X.observe(x.current), D.current && X.observe(D.current)) : window.addEventListener("resize", a), () => {
|
|
2647
2647
|
X ? X.disconnect() : window.removeEventListener("resize", a);
|
|
2648
2648
|
};
|
|
2649
2649
|
}, [Y]), M0(() => {
|
|
2650
2650
|
Y();
|
|
2651
|
-
}, [A, Y]), /* @__PURE__ */ e.jsx(e4, { ...
|
|
2652
|
-
/* @__PURE__ */ e.jsx(i4, { content:
|
|
2653
|
-
/* @__PURE__ */ e.jsx(s4, { htmlFor: o, ref:
|
|
2651
|
+
}, [A, Y]), /* @__PURE__ */ e.jsx(e4, { ...E, children: /* @__PURE__ */ e.jsxs(t4, { disabled: h, ref: x, onClick: Z, children: [
|
|
2652
|
+
/* @__PURE__ */ e.jsx(i4, { content: n, label: r }),
|
|
2653
|
+
/* @__PURE__ */ e.jsx(s4, { htmlFor: o, ref: D, children: A }),
|
|
2654
2654
|
B,
|
|
2655
2655
|
/* @__PURE__ */ e.jsx(
|
|
2656
2656
|
l4,
|
|
2657
2657
|
{
|
|
2658
2658
|
id: o,
|
|
2659
2659
|
disabled: h,
|
|
2660
|
-
value:
|
|
2661
|
-
placeholder:
|
|
2660
|
+
value: c,
|
|
2661
|
+
placeholder: E.placeholder,
|
|
2662
2662
|
ref: O,
|
|
2663
2663
|
onChange: i,
|
|
2664
|
-
onInput:
|
|
2664
|
+
onInput: C,
|
|
2665
2665
|
onKeyDown: l,
|
|
2666
2666
|
onKeyUp: t,
|
|
2667
2667
|
readOnly: g
|
|
@@ -2682,36 +2682,36 @@ const $3 = y.button`
|
|
|
2682
2682
|
`, E1 = y.div`
|
|
2683
2683
|
position: absolute;
|
|
2684
2684
|
|
|
2685
|
-
z-index: ${
|
|
2685
|
+
z-index: ${w.zIndex.z9};
|
|
2686
2686
|
|
|
2687
|
-
background-color: ${
|
|
2687
|
+
background-color: ${w.colors.white};
|
|
2688
2688
|
width: ${({ $dropDownWidth: A }) => A || "100%"};
|
|
2689
2689
|
${({ $dropDownTop: A }) => A ? "bottom: 58px;" : "margin-top: 4px;"};
|
|
2690
2690
|
padding: 16px;
|
|
2691
2691
|
|
|
2692
2692
|
border-radius: 4px;
|
|
2693
|
-
border: 1px solid ${
|
|
2693
|
+
border: 1px solid ${w.colors.shade20};
|
|
2694
2694
|
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.05);
|
|
2695
2695
|
height: auto;
|
|
2696
2696
|
max-height: ${({ $dropDownMaxHeight: A }) => A || "300px"};
|
|
2697
2697
|
overflow-y: auto;
|
|
2698
2698
|
`, M1 = y.div`
|
|
2699
2699
|
position: relative;
|
|
2700
|
-
z-index: ${
|
|
2700
|
+
z-index: ${w.zIndex.z9};
|
|
2701
2701
|
`, D1 = y.button`
|
|
2702
2702
|
display: flex;
|
|
2703
2703
|
|
|
2704
2704
|
align-items: center;
|
|
2705
2705
|
justify-content: space-between;
|
|
2706
2706
|
gap: 0.5rem;
|
|
2707
|
-
color: ${({ selected: A }) => A ?
|
|
2707
|
+
color: ${({ selected: A }) => A ? w.colors.cyan30 : w.colors.shade40};
|
|
2708
2708
|
background-color: transparent;
|
|
2709
2709
|
border: none;
|
|
2710
2710
|
|
|
2711
2711
|
cursor: pointer;
|
|
2712
2712
|
|
|
2713
2713
|
font-family: 'Nunito Sans', sans-serif;
|
|
2714
|
-
font-size: ${
|
|
2714
|
+
font-size: ${w.paragraph.medium};
|
|
2715
2715
|
text-align: left;
|
|
2716
2716
|
|
|
2717
2717
|
height: 46px;
|
|
@@ -2719,7 +2719,7 @@ const $3 = y.button`
|
|
|
2719
2719
|
padding: 0;
|
|
2720
2720
|
|
|
2721
2721
|
&:not(:last-child) {
|
|
2722
|
-
border-bottom: 1px solid ${
|
|
2722
|
+
border-bottom: 1px solid ${w.colors.shade10};
|
|
2723
2723
|
}
|
|
2724
2724
|
`, z1 = y.div`
|
|
2725
2725
|
flex-grow: 1;
|
|
@@ -2734,7 +2734,7 @@ const $3 = y.button`
|
|
|
2734
2734
|
`, d1 = y.div`
|
|
2735
2735
|
position: absolute;
|
|
2736
2736
|
z-index: -1;
|
|
2737
|
-
background-color: ${
|
|
2737
|
+
background-color: ${w.colors.shade10};
|
|
2738
2738
|
opacity: ${({ $opacity: A }) => A};
|
|
2739
2739
|
width: ${({ $width: A }) => A};
|
|
2740
2740
|
height: ${({ $height: A }) => A};
|
|
@@ -2742,8 +2742,8 @@ const $3 = y.button`
|
|
|
2742
2742
|
left: ${({ $left: A }) => A};
|
|
2743
2743
|
transition: all 0.15s;
|
|
2744
2744
|
`, P1 = y.div`
|
|
2745
|
-
color: ${
|
|
2746
|
-
font-size: ${
|
|
2745
|
+
color: ${w.colors.shade40};
|
|
2746
|
+
font-size: ${w.paragraph.medium};
|
|
2747
2747
|
font-family: 'Nunito Sans', sans-serif;
|
|
2748
2748
|
padding: 16px;
|
|
2749
2749
|
text-align: center;
|
|
@@ -2751,22 +2751,22 @@ const $3 = y.button`
|
|
|
2751
2751
|
children: A,
|
|
2752
2752
|
label: g,
|
|
2753
2753
|
leftIcon: i,
|
|
2754
|
-
onOptionChange:
|
|
2755
|
-
options:
|
|
2754
|
+
onOptionChange: C,
|
|
2755
|
+
options: c,
|
|
2756
2756
|
placeholder: l,
|
|
2757
2757
|
rightIcon: h,
|
|
2758
2758
|
selectedOption: t,
|
|
2759
2759
|
value: B,
|
|
2760
2760
|
dropDownWidth: d,
|
|
2761
|
-
disabled:
|
|
2761
|
+
disabled: E,
|
|
2762
2762
|
disableSearch: o,
|
|
2763
|
-
badge:
|
|
2763
|
+
badge: r,
|
|
2764
2764
|
onOpenChange: j,
|
|
2765
|
-
...
|
|
2765
|
+
...n
|
|
2766
2766
|
}, G) => {
|
|
2767
|
-
const [x,
|
|
2767
|
+
const [x, D] = o0(!1), [O, Y] = o0(!1), [Z, a] = o0(B), X = w0(null);
|
|
2768
2768
|
t1(G, () => ({
|
|
2769
|
-
setOpen:
|
|
2769
|
+
setOpen: D
|
|
2770
2770
|
}));
|
|
2771
2771
|
const p = w0(), F = w0(null), [_, e0] = o0({
|
|
2772
2772
|
$opacity: 0,
|
|
@@ -2793,7 +2793,7 @@ const $3 = y.button`
|
|
|
2793
2793
|
let H = z.target;
|
|
2794
2794
|
for (; H && H !== document.body.parentElement && H !== X.current; )
|
|
2795
2795
|
H = H.parentElement;
|
|
2796
|
-
H === document.body.parentElement && (
|
|
2796
|
+
H === document.body.parentElement && (D(!1), j && j(!1));
|
|
2797
2797
|
};
|
|
2798
2798
|
return document.addEventListener("click", f), () => {
|
|
2799
2799
|
document.removeEventListener("click", f);
|
|
@@ -2801,9 +2801,9 @@ const $3 = y.button`
|
|
|
2801
2801
|
}, [x, j]);
|
|
2802
2802
|
const l0 = P0(
|
|
2803
2803
|
(f) => {
|
|
2804
|
-
|
|
2804
|
+
C && C(f), D(!1);
|
|
2805
2805
|
},
|
|
2806
|
-
[
|
|
2806
|
+
[C]
|
|
2807
2807
|
);
|
|
2808
2808
|
M0(() => {
|
|
2809
2809
|
O || a(B || (t ? t.text : ""));
|
|
@@ -2811,17 +2811,17 @@ const $3 = y.button`
|
|
|
2811
2811
|
x || Y(!1);
|
|
2812
2812
|
}, [x]);
|
|
2813
2813
|
const S = (f) => {
|
|
2814
|
-
o || (a(f.target.value), Y(!0),
|
|
2814
|
+
o || (a(f.target.value), Y(!0), C && C(null));
|
|
2815
2815
|
}, $ = k0(() => {
|
|
2816
|
-
if (!
|
|
2817
|
-
if (!O || o) return
|
|
2816
|
+
if (!c) return [];
|
|
2817
|
+
if (!O || o) return c;
|
|
2818
2818
|
const f = (Z || "").trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
2819
|
-
if (!f) return
|
|
2819
|
+
if (!f) return c;
|
|
2820
2820
|
const z = [];
|
|
2821
|
-
for (const H of
|
|
2821
|
+
for (const H of c)
|
|
2822
2822
|
H.text.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").includes(f) && z.push(H);
|
|
2823
2823
|
return z;
|
|
2824
|
-
}, [
|
|
2824
|
+
}, [c, O, o, Z]), N = w0(null), J = w0([]), [i0, g0] = o0(null);
|
|
2825
2825
|
M0(() => {
|
|
2826
2826
|
if (!x) {
|
|
2827
2827
|
g0(null), e0((z) => ({ ...z, $opacity: 0 }));
|
|
@@ -2875,22 +2875,22 @@ const $3 = y.button`
|
|
|
2875
2875
|
},
|
|
2876
2876
|
[h0]
|
|
2877
2877
|
);
|
|
2878
|
-
return /* @__PURE__ */ e.jsxs(w1, { ...
|
|
2878
|
+
return /* @__PURE__ */ e.jsxs(w1, { ...n, ref: X, children: [
|
|
2879
2879
|
/* @__PURE__ */ e.jsx(
|
|
2880
2880
|
n1,
|
|
2881
2881
|
{
|
|
2882
|
-
disabled:
|
|
2882
|
+
disabled: E,
|
|
2883
2883
|
leftIcon: i,
|
|
2884
2884
|
rightIcon: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2885
2885
|
h,
|
|
2886
|
-
|
|
2886
|
+
r != null && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(v0, { strongBod: !0, color: w.colors.honey30, children: r }) }),
|
|
2887
2887
|
/* @__PURE__ */ e.jsx(
|
|
2888
2888
|
a0,
|
|
2889
2889
|
{
|
|
2890
2890
|
className: `icon ${x ? "icon-rotate" : ""}`,
|
|
2891
2891
|
src: E2,
|
|
2892
2892
|
width: "16px",
|
|
2893
|
-
color:
|
|
2893
|
+
color: w.colors.shade30
|
|
2894
2894
|
}
|
|
2895
2895
|
)
|
|
2896
2896
|
] }),
|
|
@@ -2900,7 +2900,7 @@ const $3 = y.button`
|
|
|
2900
2900
|
readonly: !x,
|
|
2901
2901
|
onChange: S,
|
|
2902
2902
|
onClick: () => {
|
|
2903
|
-
|
|
2903
|
+
E || (a(""), Y(!0), D(!0), j && j(!0), e0({ $opacity: 0, $width: "100%", $height: "0px", $top: "0px", $left: "0px" }));
|
|
2904
2904
|
}
|
|
2905
2905
|
}
|
|
2906
2906
|
),
|
|
@@ -2908,11 +2908,11 @@ const $3 = y.button`
|
|
|
2908
2908
|
E1,
|
|
2909
2909
|
{
|
|
2910
2910
|
ref: N,
|
|
2911
|
-
$dropDownTop:
|
|
2911
|
+
$dropDownTop: n.dropDownTop,
|
|
2912
2912
|
$dropDownWidth: d,
|
|
2913
|
-
$dropDownMaxHeight:
|
|
2913
|
+
$dropDownMaxHeight: n.dropDownMaxHeight,
|
|
2914
2914
|
children: [
|
|
2915
|
-
((
|
|
2915
|
+
((c == null ? void 0 : c.length) ?? 0) > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2916
2916
|
/* @__PURE__ */ e.jsx(Q1, { ref: F, children: $.map((f, z) => {
|
|
2917
2917
|
const H = (t == null ? void 0 : t.id) === f.id;
|
|
2918
2918
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -2925,7 +2925,7 @@ const $3 = y.button`
|
|
|
2925
2925
|
onPointerLeave: (k) => P(k, z),
|
|
2926
2926
|
children: (f == null ? void 0 : f.badge) != null ? /* @__PURE__ */ e.jsxs(v1, { children: [
|
|
2927
2927
|
/* @__PURE__ */ e.jsx("div", { children: f.text }),
|
|
2928
|
-
/* @__PURE__ */ e.jsx(v0, { strongBod: !0, color:
|
|
2928
|
+
/* @__PURE__ */ e.jsx(v0, { strongBod: !0, color: w.colors.honey30, children: f.badge })
|
|
2929
2929
|
] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2930
2930
|
f.icon,
|
|
2931
2931
|
/* @__PURE__ */ e.jsx(z1, { children: f.text })
|
|
@@ -2944,7 +2944,7 @@ const $3 = y.button`
|
|
|
2944
2944
|
$left: _.$left
|
|
2945
2945
|
}
|
|
2946
2946
|
),
|
|
2947
|
-
$.length === 0 && (
|
|
2947
|
+
$.length === 0 && (c == null ? void 0 : c.length) && /* @__PURE__ */ e.jsx(P1, { children: "Sem resultados" })
|
|
2948
2948
|
] }),
|
|
2949
2949
|
A
|
|
2950
2950
|
]
|
|
@@ -2961,44 +2961,44 @@ const $3 = y.button`
|
|
|
2961
2961
|
grid-row-gap: 0px;
|
|
2962
2962
|
height: 100%;
|
|
2963
2963
|
width: 100%;
|
|
2964
|
-
font-size: ${
|
|
2965
|
-
color: ${
|
|
2964
|
+
font-size: ${w.paragraph.small};
|
|
2965
|
+
color: ${w.colors.shade50};
|
|
2966
2966
|
`, f4 = y.div`
|
|
2967
|
-
font-size: ${
|
|
2968
|
-
color: ${
|
|
2967
|
+
font-size: ${w.paragraph["xx-small"]};
|
|
2968
|
+
color: ${w.colors.shade30};
|
|
2969
2969
|
font-weight: 600;
|
|
2970
2970
|
margin-bottom: 4px;
|
|
2971
2971
|
`, B4 = y.div`
|
|
2972
2972
|
display: flex;
|
|
2973
2973
|
justify-content: space-between;
|
|
2974
2974
|
align-items: center;
|
|
2975
|
-
font-size: ${
|
|
2975
|
+
font-size: ${w.paragraph.small};
|
|
2976
2976
|
font-family: 'Nunito Sans', sans-serif;
|
|
2977
2977
|
font-weight: 600;
|
|
2978
2978
|
|
|
2979
2979
|
.icon,
|
|
2980
2980
|
.icon svg,
|
|
2981
2981
|
.icon svg path {
|
|
2982
|
-
fill: ${
|
|
2982
|
+
fill: ${w.colors.shade50} !important;
|
|
2983
2983
|
}
|
|
2984
2984
|
|
|
2985
2985
|
.icon:hover,
|
|
2986
2986
|
.icon:hover svg,
|
|
2987
2987
|
.icon:hover svg path {
|
|
2988
|
-
fill: ${
|
|
2988
|
+
fill: ${w.colors.cyan30} !important;
|
|
2989
2989
|
}
|
|
2990
2990
|
|
|
2991
2991
|
.icon-disabled,
|
|
2992
2992
|
.icon-disabled svg,
|
|
2993
2993
|
.icon-disabled svg path {
|
|
2994
|
-
fill: ${
|
|
2994
|
+
fill: ${w.colors.shade20} !important;
|
|
2995
2995
|
}
|
|
2996
2996
|
`, a4 = y.div`
|
|
2997
2997
|
position: relative;
|
|
2998
2998
|
cursor: pointer;
|
|
2999
2999
|
width: 36px;
|
|
3000
3000
|
height: 36px;
|
|
3001
|
-
color: ${({ $isFirstSelected: A, $isLastSelected: g, $isBlocked: i }) => A || g ?
|
|
3001
|
+
color: ${({ $isFirstSelected: A, $isLastSelected: g, $isBlocked: i }) => A || g ? w.colors.white : i ? w.colors.shade30 : w.colors.shade50};
|
|
3002
3002
|
|
|
3003
3003
|
&:before {
|
|
3004
3004
|
position: absolute;
|
|
@@ -3007,11 +3007,11 @@ const $3 = y.button`
|
|
|
3007
3007
|
border-radius: 50%;
|
|
3008
3008
|
pointer-events: none;
|
|
3009
3009
|
|
|
3010
|
-
${({ $today: A, $isFirstSelected: g, $isLastSelected: i }) => A && !(g || i) ? `border: 1px solid ${
|
|
3010
|
+
${({ $today: A, $isFirstSelected: g, $isLastSelected: i }) => A && !(g || i) ? `border: 1px solid ${w.colors.cyan40}` : ""};
|
|
3011
3011
|
}
|
|
3012
3012
|
`, r4 = y.div`
|
|
3013
3013
|
position: absolute;
|
|
3014
|
-
background-color: ${({ $selected: A }) => A &&
|
|
3014
|
+
background-color: ${({ $selected: A }) => A && w.colors.cyan30opacity16};
|
|
3015
3015
|
width: 100%;
|
|
3016
3016
|
height: 100%;
|
|
3017
3017
|
inset: 0;
|
|
@@ -3020,13 +3020,13 @@ const $3 = y.button`
|
|
|
3020
3020
|
|
|
3021
3021
|
&:hover {
|
|
3022
3022
|
border-radius: ${({ $isFirstSelected: A, $isLastSelected: g, $selected: i }) => A && g ? "50%" : A ? "50% 0 0 50%" : g ? "0 50% 50% 0" : i ? "0" : "50%"};
|
|
3023
|
-
background-color: ${({ $isBlocked: A }) => A ? "transparant" :
|
|
3023
|
+
background-color: ${({ $isBlocked: A }) => A ? "transparant" : w.colors.cyan30opacity16};
|
|
3024
3024
|
}
|
|
3025
3025
|
|
|
3026
3026
|
&::before {
|
|
3027
3027
|
content: '';
|
|
3028
3028
|
border-radius: 50%;
|
|
3029
|
-
background-color: ${({ $isFirstSelected: A, $isLastSelected: g, $isBlocked: i }) => (A || g) && !i ?
|
|
3029
|
+
background-color: ${({ $isFirstSelected: A, $isLastSelected: g, $isBlocked: i }) => (A || g) && !i ? w.colors.cyan40 : "transparent"};
|
|
3030
3030
|
position: absolute;
|
|
3031
3031
|
inset: 0;
|
|
3032
3032
|
}
|
|
@@ -3042,8 +3042,8 @@ const $3 = y.button`
|
|
|
3042
3042
|
justify-content: space-between;
|
|
3043
3043
|
align-items: center;
|
|
3044
3044
|
margin-top: 16px;
|
|
3045
|
-
font-size: ${
|
|
3046
|
-
color: ${
|
|
3045
|
+
font-size: ${w.paragraph.small};
|
|
3046
|
+
color: ${w.colors.shade50};
|
|
3047
3047
|
font-family: 'Nunito Sans', sans-serif;
|
|
3048
3048
|
`, E4 = [
|
|
3049
3049
|
"Janeiro",
|
|
@@ -3062,35 +3062,35 @@ const $3 = y.button`
|
|
|
3062
3062
|
label: A,
|
|
3063
3063
|
options: g,
|
|
3064
3064
|
selectedOption: i,
|
|
3065
|
-
onSelectedOptionChange:
|
|
3066
|
-
placeholder:
|
|
3065
|
+
onSelectedOptionChange: C,
|
|
3066
|
+
placeholder: c,
|
|
3067
3067
|
onSelectedCustomRange: l,
|
|
3068
3068
|
startCustomDate: h,
|
|
3069
3069
|
endCustomDate: t,
|
|
3070
3070
|
isRange: B,
|
|
3071
3071
|
rangeDayLimit: d,
|
|
3072
|
-
footerMessage:
|
|
3072
|
+
footerMessage: E,
|
|
3073
3073
|
onOpenChange: o,
|
|
3074
|
-
...
|
|
3074
|
+
...r
|
|
3075
3075
|
}) => {
|
|
3076
|
-
const [j,
|
|
3076
|
+
const [j, n] = o0(0), [G, x] = o0(0), [D, O] = o0(null), Y = w0(null);
|
|
3077
3077
|
M0(() => {
|
|
3078
3078
|
const s = /* @__PURE__ */ new Date();
|
|
3079
|
-
|
|
3079
|
+
n(s.getFullYear()), x(s.getMonth());
|
|
3080
3080
|
}, []);
|
|
3081
3081
|
const Z = P0((s) => s ? new Date(s.getFullYear(), s.getMonth(), s.getDate(), 0, 0, 0, 0) : null, []), a = [], X = (s) => {
|
|
3082
3082
|
const v = new Date(j, G + s);
|
|
3083
|
-
|
|
3083
|
+
n(v.getFullYear()), x(v.getMonth());
|
|
3084
3084
|
}, p = (s) => {
|
|
3085
3085
|
var v;
|
|
3086
|
-
|
|
3086
|
+
C && (C(s), l && l(null, null), (v = Y.current) == null || v.setOpen(!1));
|
|
3087
3087
|
}, F = (s, v) => {
|
|
3088
3088
|
const L = Math.abs(v.getTime() - s.getTime());
|
|
3089
3089
|
return Math.ceil(L / (1e3 * 60 * 60 * 24));
|
|
3090
3090
|
}, _ = (s) => {
|
|
3091
3091
|
var v, L, Q;
|
|
3092
|
-
if (
|
|
3093
|
-
l && l(s, null),
|
|
3092
|
+
if (C && C(null), !h)
|
|
3093
|
+
l && l(s, null), D && O(Z(s)), B === !1 && ((v = Y.current) == null || v.setOpen(!1));
|
|
3094
3094
|
else if (t)
|
|
3095
3095
|
B === !1 && ((Q = Y.current) == null || Q.setOpen(!1)), l && l(s, null), O(Z(s));
|
|
3096
3096
|
else {
|
|
@@ -3110,7 +3110,7 @@ const $3 = y.button`
|
|
|
3110
3110
|
for (let s = 0; s < S.getDay(); s++)
|
|
3111
3111
|
a.push({ type: "empty", key: `before-${s}` });
|
|
3112
3112
|
const $ = (/* @__PURE__ */ new Date()).toDateString();
|
|
3113
|
-
let N = Z(h), J = Z(t) ??
|
|
3113
|
+
let N = Z(h), J = Z(t) ?? D;
|
|
3114
3114
|
if (N && J && N > J) {
|
|
3115
3115
|
const s = N;
|
|
3116
3116
|
N = J, J = s;
|
|
@@ -3130,7 +3130,7 @@ const $3 = y.button`
|
|
|
3130
3130
|
}), S.setDate(S.getDate() + 1);
|
|
3131
3131
|
}
|
|
3132
3132
|
const i0 = k0(() => i !== null || !N && !J ? "" : N && !J || J && (N == null ? void 0 : N.toLocaleDateString()) === J.toLocaleDateString() ? N.toLocaleDateString() : N && J ? `${N.toLocaleDateString()} - ${J.toLocaleDateString()}` : "", [i, N, J]);
|
|
3133
|
-
|
|
3133
|
+
c = c ?? "Selecione um período";
|
|
3134
3134
|
const { customOption: g0, optionComputed: h0 } = k0(() => {
|
|
3135
3135
|
if (g && g.length > 0) {
|
|
3136
3136
|
const v = {
|
|
@@ -3148,15 +3148,15 @@ const $3 = y.button`
|
|
|
3148
3148
|
dropDownWidth: "284px",
|
|
3149
3149
|
dropDownMaxHeight: "auto",
|
|
3150
3150
|
ref: Y,
|
|
3151
|
-
placeholder:
|
|
3151
|
+
placeholder: c,
|
|
3152
3152
|
label: A,
|
|
3153
3153
|
value: i0,
|
|
3154
|
-
leftIcon: /* @__PURE__ */ e.jsx(a0, { className: "icon", src: B3, width: "20px", height: "20px", color:
|
|
3154
|
+
leftIcon: /* @__PURE__ */ e.jsx(a0, { className: "icon", src: B3, width: "20px", height: "20px", color: w.colors.shade30 }),
|
|
3155
3155
|
options: h0,
|
|
3156
3156
|
selectedOption: i ?? (N ? g0 : null),
|
|
3157
3157
|
onOptionChange: p,
|
|
3158
3158
|
onOpenChange: e0,
|
|
3159
|
-
...
|
|
3159
|
+
...r,
|
|
3160
3160
|
children: [
|
|
3161
3161
|
/* @__PURE__ */ e.jsxs(B4, { children: [
|
|
3162
3162
|
/* @__PURE__ */ e.jsx(a0, { className: "icon", src: M2, width: "14px", onClick: () => X(-1) }),
|
|
@@ -3194,7 +3194,7 @@ const $3 = y.button`
|
|
|
3194
3194
|
s.value
|
|
3195
3195
|
))
|
|
3196
3196
|
] }),
|
|
3197
|
-
|
|
3197
|
+
E && /* @__PURE__ */ e.jsx(w4, { children: E })
|
|
3198
3198
|
]
|
|
3199
3199
|
}
|
|
3200
3200
|
);
|
|
@@ -3203,21 +3203,21 @@ const $3 = y.button`
|
|
|
3203
3203
|
customDate: g,
|
|
3204
3204
|
...i
|
|
3205
3205
|
}) => {
|
|
3206
|
-
const
|
|
3207
|
-
A && A(
|
|
3206
|
+
const C = (c) => {
|
|
3207
|
+
A && A(c);
|
|
3208
3208
|
};
|
|
3209
3209
|
return /* @__PURE__ */ e.jsx(
|
|
3210
3210
|
D4,
|
|
3211
3211
|
{
|
|
3212
3212
|
...i,
|
|
3213
3213
|
isRange: !1,
|
|
3214
|
-
onSelectedCustomRange:
|
|
3214
|
+
onSelectedCustomRange: C,
|
|
3215
3215
|
startCustomDate: g,
|
|
3216
3216
|
endCustomDate: g
|
|
3217
3217
|
}
|
|
3218
3218
|
);
|
|
3219
3219
|
}, z4 = {
|
|
3220
|
-
...
|
|
3220
|
+
...w.title
|
|
3221
3221
|
}, v4 = y.p`
|
|
3222
3222
|
margin: 0;
|
|
3223
3223
|
padding: 0;
|
|
@@ -3226,10 +3226,10 @@ const $3 = y.button`
|
|
|
3226
3226
|
line-height: 130%;
|
|
3227
3227
|
font-family: 'Nunito Sans', sans-serif;
|
|
3228
3228
|
color: ${(A) => A.color || "inherit"}; // Aplicando a cor
|
|
3229
|
-
`, Q4 = ({ size: A = "medium", bold: g, as: i = "h2", color:
|
|
3229
|
+
`, Q4 = ({ size: A = "medium", bold: g, as: i = "h2", color: C, children: c }) => /* @__PURE__ */ e.jsx(v4, { as: i, size: A, bold: g, color: C, children: c }), {
|
|
3230
3230
|
colors: { shade20: d4 },
|
|
3231
3231
|
zIndex: { z8: P4, z9: H4 }
|
|
3232
|
-
} =
|
|
3232
|
+
} = w, j4 = y.div`
|
|
3233
3233
|
position: fixed;
|
|
3234
3234
|
top: 0;
|
|
3235
3235
|
left: 0;
|
|
@@ -3273,16 +3273,16 @@ const $3 = y.button`
|
|
|
3273
3273
|
}
|
|
3274
3274
|
`, {
|
|
3275
3275
|
colors: { cyan50: R4, shade30: x4 }
|
|
3276
|
-
} =
|
|
3276
|
+
} = w, N7 = ({ title: A, children: g, onClose: i, footer: C, ...c }) => W1.createPortal(
|
|
3277
3277
|
/* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3278
3278
|
/* @__PURE__ */ e.jsx(j4, { onClick: i }),
|
|
3279
|
-
/* @__PURE__ */ e.jsxs(G4, { ...
|
|
3279
|
+
/* @__PURE__ */ e.jsxs(G4, { ...c, children: [
|
|
3280
3280
|
/* @__PURE__ */ e.jsxs("div", { className: "modalHeader", children: [
|
|
3281
3281
|
/* @__PURE__ */ e.jsx(Q4, { size: "medium", bold: !0, color: R4, children: A }),
|
|
3282
3282
|
/* @__PURE__ */ e.jsx(a0, { src: i1, width: "14px", height: "14px", color: x4, onClick: i })
|
|
3283
3283
|
] }),
|
|
3284
3284
|
/* @__PURE__ */ e.jsx("div", { className: "modalContainer", children: g }),
|
|
3285
|
-
/* @__PURE__ */ e.jsx("div", { className: "modalFooter", children:
|
|
3285
|
+
/* @__PURE__ */ e.jsx("div", { className: "modalFooter", children: C })
|
|
3286
3286
|
] })
|
|
3287
3287
|
] }),
|
|
3288
3288
|
document.body
|
|
@@ -3294,19 +3294,19 @@ const $3 = y.button`
|
|
|
3294
3294
|
.icon,
|
|
3295
3295
|
.icon svg,
|
|
3296
3296
|
.icon svg path {
|
|
3297
|
-
fill: ${
|
|
3297
|
+
fill: ${w.colors.shade30} !important;
|
|
3298
3298
|
}
|
|
3299
3299
|
|
|
3300
3300
|
.icon:hover,
|
|
3301
3301
|
.icon:hover svg,
|
|
3302
3302
|
.icon:hover svg path {
|
|
3303
|
-
fill: ${
|
|
3303
|
+
fill: ${w.colors.cyan30} !important;
|
|
3304
3304
|
}
|
|
3305
3305
|
|
|
3306
3306
|
.icon-disabled,
|
|
3307
3307
|
.icon-disabled svg,
|
|
3308
3308
|
.icon-disabled svg path {
|
|
3309
|
-
fill: ${
|
|
3309
|
+
fill: ${w.colors.shade20} !important;
|
|
3310
3310
|
}
|
|
3311
3311
|
|
|
3312
3312
|
ul.pagination {
|
|
@@ -3314,7 +3314,7 @@ const $3 = y.button`
|
|
|
3314
3314
|
gap: 1rem;
|
|
3315
3315
|
font-family: 'Nunito Sans', sans-serif;
|
|
3316
3316
|
font-size: 1rem;
|
|
3317
|
-
color: ${
|
|
3317
|
+
color: ${w.colors.shade40};
|
|
3318
3318
|
li {
|
|
3319
3319
|
list-style: none;
|
|
3320
3320
|
}
|
|
@@ -3324,11 +3324,11 @@ const $3 = y.button`
|
|
|
3324
3324
|
}
|
|
3325
3325
|
|
|
3326
3326
|
li.page:hover {
|
|
3327
|
-
color: ${
|
|
3327
|
+
color: ${w.colors.cyan30};
|
|
3328
3328
|
}
|
|
3329
3329
|
|
|
3330
3330
|
li.page-active {
|
|
3331
|
-
color: ${
|
|
3331
|
+
color: ${w.colors.cyan30};
|
|
3332
3332
|
cursor: default;
|
|
3333
3333
|
}
|
|
3334
3334
|
}
|
|
@@ -3340,7 +3340,7 @@ const $3 = y.button`
|
|
|
3340
3340
|
text-wrap: nowrap;
|
|
3341
3341
|
gap: 1rem;
|
|
3342
3342
|
font-family: 'Nunito Sans', sans-serif;
|
|
3343
|
-
color: ${
|
|
3343
|
+
color: ${w.colors.shade40};
|
|
3344
3344
|
}
|
|
3345
3345
|
|
|
3346
3346
|
.select {
|
|
@@ -3350,22 +3350,22 @@ const $3 = y.button`
|
|
|
3350
3350
|
currentPage: A,
|
|
3351
3351
|
itemCount: g,
|
|
3352
3352
|
onChangePage: i,
|
|
3353
|
-
itemsPerPage:
|
|
3354
|
-
onChangeItemsPerPage:
|
|
3353
|
+
itemsPerPage: C,
|
|
3354
|
+
onChangeItemsPerPage: c,
|
|
3355
3355
|
itemPerPageOptions: l = [],
|
|
3356
3356
|
dropDownTop: h
|
|
3357
3357
|
}) => {
|
|
3358
|
-
let t =
|
|
3359
|
-
const B = Math.ceil(g / t), d = [],
|
|
3360
|
-
B > 0 && A -
|
|
3361
|
-
const o = Math.max(A -
|
|
3358
|
+
let t = C || 20;
|
|
3359
|
+
const B = Math.ceil(g / t), d = [], E = 2;
|
|
3360
|
+
B > 0 && A - E > 1 && d.push(1);
|
|
3361
|
+
const o = Math.max(A - E, 1), r = Math.min(A + E, B);
|
|
3362
3362
|
o > 2 && d.push("elipsis");
|
|
3363
|
-
for (let
|
|
3364
|
-
d.push(
|
|
3365
|
-
|
|
3366
|
-
const j = (A - 1) * t + 1,
|
|
3367
|
-
|
|
3368
|
-
const x = Array.from(new Set(G)).sort((
|
|
3363
|
+
for (let D = o; D <= r; D++)
|
|
3364
|
+
d.push(D);
|
|
3365
|
+
r < B - 1 && d.push("elipsis"), B > A + E && d.push(B);
|
|
3366
|
+
const j = (A - 1) * t + 1, n = Math.min(A * t, g), G = Array.from(l);
|
|
3367
|
+
C && G.push(C);
|
|
3368
|
+
const x = Array.from(new Set(G)).sort((D, O) => D - O);
|
|
3369
3369
|
return /* @__PURE__ */ e.jsxs(Y4, { children: [
|
|
3370
3370
|
/* @__PURE__ */ e.jsxs("ul", { className: "pagination", children: [
|
|
3371
3371
|
/* @__PURE__ */ e.jsx(
|
|
@@ -3377,7 +3377,7 @@ const $3 = y.button`
|
|
|
3377
3377
|
onClick: () => A !== 1 && i(A - 1)
|
|
3378
3378
|
}
|
|
3379
3379
|
),
|
|
3380
|
-
d.map((
|
|
3380
|
+
d.map((D, O) => D === "elipsis" ? /* @__PURE__ */ e.jsx("li", { children: "..." }, `elipsis-${O}`) : /* @__PURE__ */ e.jsx("li", { className: D === A ? "page-active" : "page", onClick: () => i(D), children: D }, D)),
|
|
3381
3381
|
/* @__PURE__ */ e.jsx(
|
|
3382
3382
|
a0,
|
|
3383
3383
|
{
|
|
@@ -3397,20 +3397,20 @@ const $3 = y.button`
|
|
|
3397
3397
|
className: "select",
|
|
3398
3398
|
dropDownTop: h !== !1,
|
|
3399
3399
|
value: t.toString(),
|
|
3400
|
-
onOptionChange: (
|
|
3401
|
-
|
|
3400
|
+
onOptionChange: (D) => {
|
|
3401
|
+
D && c(D.id);
|
|
3402
3402
|
},
|
|
3403
3403
|
disabled: l.length <= 1,
|
|
3404
|
-
options: x.map((
|
|
3405
|
-
id:
|
|
3406
|
-
text:
|
|
3404
|
+
options: x.map((D) => ({
|
|
3405
|
+
id: D,
|
|
3406
|
+
text: D == null ? void 0 : D.toString()
|
|
3407
3407
|
}))
|
|
3408
3408
|
}
|
|
3409
3409
|
),
|
|
3410
3410
|
/* @__PURE__ */ e.jsxs("div", { className: "items-per-page-selected", children: [
|
|
3411
3411
|
j,
|
|
3412
3412
|
" - ",
|
|
3413
|
-
|
|
3413
|
+
n,
|
|
3414
3414
|
" de ",
|
|
3415
3415
|
g
|
|
3416
3416
|
] })
|
|
@@ -3420,22 +3420,22 @@ const $3 = y.button`
|
|
|
3420
3420
|
children: A,
|
|
3421
3421
|
label: g,
|
|
3422
3422
|
leftIcon: i,
|
|
3423
|
-
onOptionChange:
|
|
3424
|
-
options:
|
|
3423
|
+
onOptionChange: C,
|
|
3424
|
+
options: c,
|
|
3425
3425
|
placeholder: l,
|
|
3426
3426
|
rightIcon: h,
|
|
3427
3427
|
selectedOption: t,
|
|
3428
3428
|
value: B,
|
|
3429
3429
|
dropDownWidth: d,
|
|
3430
|
-
disabled:
|
|
3430
|
+
disabled: E,
|
|
3431
3431
|
disableSearch: o,
|
|
3432
|
-
...
|
|
3432
|
+
...r
|
|
3433
3433
|
}, j) => {
|
|
3434
|
-
const [
|
|
3434
|
+
const [n, G] = o0(!1), [x, D] = o0(!1), [O, Y] = o0(B), Z = w0(null);
|
|
3435
3435
|
t1(j, () => ({
|
|
3436
3436
|
setOpen: G
|
|
3437
3437
|
})), M0(() => {
|
|
3438
|
-
if (!
|
|
3438
|
+
if (!n) return;
|
|
3439
3439
|
const Q = (P) => {
|
|
3440
3440
|
let f = P.target;
|
|
3441
3441
|
for (; f && f !== document.body.parentElement && f !== Z.current; )
|
|
@@ -3445,32 +3445,32 @@ const $3 = y.button`
|
|
|
3445
3445
|
return document.addEventListener("click", Q), () => {
|
|
3446
3446
|
document.removeEventListener("click", Q);
|
|
3447
3447
|
};
|
|
3448
|
-
}, [
|
|
3448
|
+
}, [n]);
|
|
3449
3449
|
const a = P0(
|
|
3450
3450
|
(Q) => {
|
|
3451
|
-
(t == null ? void 0 : t.findIndex((f) => f.id === Q.id)) !== -1 ?
|
|
3451
|
+
(t == null ? void 0 : t.findIndex((f) => f.id === Q.id)) !== -1 ? C && C((t == null ? void 0 : t.filter((f) => f.id !== Q.id)) ?? []) : C && C([...t ?? [], Q]);
|
|
3452
3452
|
},
|
|
3453
|
-
[
|
|
3453
|
+
[C, t]
|
|
3454
3454
|
);
|
|
3455
3455
|
M0(() => {
|
|
3456
|
-
x || (B ? Y(B) : t ? (t == null ? void 0 : t.length) === (
|
|
3456
|
+
x || (B ? Y(B) : t ? (t == null ? void 0 : t.length) === (c == null ? void 0 : c.length) ? Y("Todos") : Y(
|
|
3457
3457
|
t.map((Q) => Q.text).sort().join(", ")
|
|
3458
3458
|
) : Y(""));
|
|
3459
|
-
}, [B, t, o,
|
|
3460
|
-
|
|
3461
|
-
}, [
|
|
3459
|
+
}, [B, t, o, n, x, c]), M0(() => {
|
|
3460
|
+
n || D(!1);
|
|
3461
|
+
}, [n]);
|
|
3462
3462
|
const X = (Q) => {
|
|
3463
|
-
o || (Y(Q.target.value),
|
|
3463
|
+
o || (Y(Q.target.value), D(!0));
|
|
3464
3464
|
}, p = k0(() => {
|
|
3465
|
-
if (!
|
|
3466
|
-
if (!x || o) return
|
|
3465
|
+
if (!c) return [];
|
|
3466
|
+
if (!x || o) return c;
|
|
3467
3467
|
const Q = (O || "").trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
3468
|
-
if (!Q) return
|
|
3468
|
+
if (!Q) return c;
|
|
3469
3469
|
const P = [];
|
|
3470
|
-
for (const f of
|
|
3470
|
+
for (const f of c)
|
|
3471
3471
|
f.text.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").includes(Q) && P.push(f);
|
|
3472
3472
|
return P;
|
|
3473
|
-
}, [
|
|
3473
|
+
}, [c, x, o, O]), F = w0(null), _ = w0(null), [e0, s0] = o0({
|
|
3474
3474
|
$opacity: 0,
|
|
3475
3475
|
$width: "100%",
|
|
3476
3476
|
$height: "0px",
|
|
@@ -3503,7 +3503,7 @@ const $3 = y.button`
|
|
|
3503
3503
|
}
|
|
3504
3504
|
};
|
|
3505
3505
|
M0(() => {
|
|
3506
|
-
if (!
|
|
3506
|
+
if (!n) {
|
|
3507
3507
|
N(null), s0((P) => ({ ...P, $opacity: 0 }));
|
|
3508
3508
|
return;
|
|
3509
3509
|
}
|
|
@@ -3531,7 +3531,7 @@ const $3 = y.button`
|
|
|
3531
3531
|
return document.addEventListener("keydown", Q), () => {
|
|
3532
3532
|
document.removeEventListener("keydown", Q);
|
|
3533
3533
|
};
|
|
3534
|
-
}, [
|
|
3534
|
+
}, [n, p, $, J, a]), M0(() => {
|
|
3535
3535
|
if (i0 && F.current) {
|
|
3536
3536
|
const Q = F.current, P = () => {
|
|
3537
3537
|
g0(!1);
|
|
@@ -3552,43 +3552,43 @@ const $3 = y.button`
|
|
|
3552
3552
|
},
|
|
3553
3553
|
[i0]
|
|
3554
3554
|
);
|
|
3555
|
-
return /* @__PURE__ */ e.jsxs(w1, { ...
|
|
3555
|
+
return /* @__PURE__ */ e.jsxs(w1, { ...r, ref: Z, children: [
|
|
3556
3556
|
/* @__PURE__ */ e.jsx(
|
|
3557
3557
|
n1,
|
|
3558
3558
|
{
|
|
3559
|
-
disabled:
|
|
3559
|
+
disabled: E,
|
|
3560
3560
|
leftIcon: i,
|
|
3561
3561
|
rightIcon: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3562
3562
|
h,
|
|
3563
3563
|
/* @__PURE__ */ e.jsx(
|
|
3564
3564
|
a0,
|
|
3565
3565
|
{
|
|
3566
|
-
className: `icon ${
|
|
3566
|
+
className: `icon ${n ? "icon-rotate" : ""}`,
|
|
3567
3567
|
src: E2,
|
|
3568
3568
|
width: "16px",
|
|
3569
|
-
color:
|
|
3569
|
+
color: w.colors.shade30
|
|
3570
3570
|
}
|
|
3571
3571
|
)
|
|
3572
3572
|
] }),
|
|
3573
3573
|
placeholder: l,
|
|
3574
3574
|
label: g,
|
|
3575
3575
|
value: O,
|
|
3576
|
-
readonly: !
|
|
3576
|
+
readonly: !n,
|
|
3577
3577
|
onChange: X,
|
|
3578
3578
|
onClick: () => {
|
|
3579
|
-
|
|
3579
|
+
E || (Y(""), D(!0), G(!0));
|
|
3580
3580
|
}
|
|
3581
3581
|
}
|
|
3582
3582
|
),
|
|
3583
|
-
|
|
3583
|
+
n && /* @__PURE__ */ e.jsx(M1, { children: /* @__PURE__ */ e.jsxs(
|
|
3584
3584
|
E1,
|
|
3585
3585
|
{
|
|
3586
3586
|
ref: F,
|
|
3587
|
-
$dropDownTop:
|
|
3587
|
+
$dropDownTop: r.dropDownTop,
|
|
3588
3588
|
$dropDownWidth: d,
|
|
3589
|
-
$dropDownMaxHeight:
|
|
3589
|
+
$dropDownMaxHeight: r.dropDownMaxHeight,
|
|
3590
3590
|
children: [
|
|
3591
|
-
((
|
|
3591
|
+
((c == null ? void 0 : c.length) ?? 0) > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3592
3592
|
/* @__PURE__ */ e.jsx(Q1, { ref: _, children: p.map((Q, P) => /* @__PURE__ */ e.jsxs(
|
|
3593
3593
|
D1,
|
|
3594
3594
|
{
|
|
@@ -3608,7 +3608,7 @@ const $3 = y.button`
|
|
|
3608
3608
|
),
|
|
3609
3609
|
Q != null && Q.badge ? /* @__PURE__ */ e.jsxs(v1, { children: [
|
|
3610
3610
|
/* @__PURE__ */ e.jsx("div", { children: Q.text }),
|
|
3611
|
-
/* @__PURE__ */ e.jsx(v0, { strongBod: !0, color:
|
|
3611
|
+
/* @__PURE__ */ e.jsx(v0, { strongBod: !0, color: w.colors.honey30, children: Q.badge })
|
|
3612
3612
|
] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3613
3613
|
Q.icon,
|
|
3614
3614
|
/* @__PURE__ */ e.jsx(z1, { children: Q.text })
|
|
@@ -3627,7 +3627,7 @@ const $3 = y.button`
|
|
|
3627
3627
|
$left: e0.$left
|
|
3628
3628
|
}
|
|
3629
3629
|
),
|
|
3630
|
-
p.length === 0 && (
|
|
3630
|
+
p.length === 0 && (c == null ? void 0 : c.length) && /* @__PURE__ */ e.jsx(P1, { children: "Sem resultados" })
|
|
3631
3631
|
] }),
|
|
3632
3632
|
A
|
|
3633
3633
|
]
|
|
@@ -3685,10 +3685,10 @@ const $3 = y.button`
|
|
|
3685
3685
|
48: z5,
|
|
3686
3686
|
49: v5,
|
|
3687
3687
|
54: Q5
|
|
3688
|
-
}, d5 = ({ children: A, portals: g, allPortalsOption: i, ...
|
|
3688
|
+
}, d5 = ({ children: A, portals: g, allPortalsOption: i, ...C }, c) => {
|
|
3689
3689
|
const l = i !== !1, h = l ? [{ id: 0, name: "Todos os portais" }, ...g] : g, t = {
|
|
3690
|
-
...
|
|
3691
|
-
leftIcon:
|
|
3690
|
+
...C,
|
|
3691
|
+
leftIcon: C.selectedOption != null && b0[C.selectedOption.id] && /* @__PURE__ */ e.jsx(a2, { src: C.selectedOption ? b0[C.selectedOption.id] : m4 }),
|
|
3692
3692
|
options: h.map((B) => {
|
|
3693
3693
|
const d = b0[B.id];
|
|
3694
3694
|
return {
|
|
@@ -3699,30 +3699,30 @@ const $3 = y.button`
|
|
|
3699
3699
|
};
|
|
3700
3700
|
}),
|
|
3701
3701
|
onOptionChange: (B) => {
|
|
3702
|
-
if (
|
|
3702
|
+
if (C.onOptionChange)
|
|
3703
3703
|
if (l && !B) {
|
|
3704
|
-
|
|
3704
|
+
C.onOptionChange({
|
|
3705
3705
|
id: 0,
|
|
3706
3706
|
name: "Todos os portais"
|
|
3707
3707
|
});
|
|
3708
3708
|
return;
|
|
3709
3709
|
} else
|
|
3710
|
-
|
|
3710
|
+
C.onOptionChange((B == null ? void 0 : B.portal) ?? null);
|
|
3711
3711
|
},
|
|
3712
|
-
selectedOption:
|
|
3713
|
-
id:
|
|
3714
|
-
text:
|
|
3715
|
-
icon: b0[
|
|
3716
|
-
portal:
|
|
3712
|
+
selectedOption: C.selectedOption ? {
|
|
3713
|
+
id: C.selectedOption.id,
|
|
3714
|
+
text: C.selectedOption.name,
|
|
3715
|
+
icon: b0[C.selectedOption.id] && /* @__PURE__ */ e.jsx(a2, { src: b0[C.selectedOption.id], alt: C.selectedOption.name }),
|
|
3716
|
+
portal: C.selectedOption
|
|
3717
3717
|
} : null
|
|
3718
3718
|
};
|
|
3719
|
-
return /* @__PURE__ */ e.jsx(A2, { ...t, ref:
|
|
3719
|
+
return /* @__PURE__ */ e.jsx(A2, { ...t, ref: c, children: A });
|
|
3720
3720
|
}, U7 = y0.forwardRef(d5), P5 = ({
|
|
3721
3721
|
children: A,
|
|
3722
3722
|
allStatesOption: g,
|
|
3723
3723
|
selectedOption: i,
|
|
3724
|
-
selectedOptionAbbreviation:
|
|
3725
|
-
validStates:
|
|
3724
|
+
selectedOptionAbbreviation: C,
|
|
3725
|
+
validStates: c,
|
|
3726
3726
|
...l
|
|
3727
3727
|
}, h) => {
|
|
3728
3728
|
const t = g !== !1, B = k0(
|
|
@@ -3756,34 +3756,34 @@ const $3 = y.button`
|
|
|
3756
3756
|
{ id: 27, name: "Distrito Federal", abbreviation: "DF" }
|
|
3757
3757
|
],
|
|
3758
3758
|
[]
|
|
3759
|
-
), d = k0(() =>
|
|
3759
|
+
), d = k0(() => c ? B.filter((n) => c.includes(n.abbreviation)) : B, [c, B]), E = k0(() => t ? [{ id: 0, name: "Todos os estados", abbreviation: "BR" }, ...d] : d, [t, d]), o = k0(() => new Map(E.map((n) => [n.abbreviation, n])), [E]), r = k0(() => {
|
|
3760
3760
|
if (i)
|
|
3761
3761
|
return {
|
|
3762
3762
|
id: i.id,
|
|
3763
3763
|
text: i.name,
|
|
3764
3764
|
countryState: i
|
|
3765
3765
|
};
|
|
3766
|
-
if (
|
|
3767
|
-
const
|
|
3768
|
-
if (
|
|
3766
|
+
if (C) {
|
|
3767
|
+
const n = o.get(C);
|
|
3768
|
+
if (n)
|
|
3769
3769
|
return {
|
|
3770
|
-
id:
|
|
3771
|
-
text:
|
|
3772
|
-
countryState:
|
|
3770
|
+
id: n.id,
|
|
3771
|
+
text: n.name,
|
|
3772
|
+
countryState: n
|
|
3773
3773
|
};
|
|
3774
3774
|
}
|
|
3775
3775
|
return null;
|
|
3776
|
-
}, [i,
|
|
3776
|
+
}, [i, C, o]), j = {
|
|
3777
3777
|
...l,
|
|
3778
3778
|
placeholder: l.placeholder ?? "Estado",
|
|
3779
|
-
options:
|
|
3780
|
-
id:
|
|
3781
|
-
text:
|
|
3782
|
-
countryState:
|
|
3779
|
+
options: E.map((n) => ({
|
|
3780
|
+
id: n.id,
|
|
3781
|
+
text: n.name,
|
|
3782
|
+
countryState: n
|
|
3783
3783
|
})),
|
|
3784
|
-
onOptionChange: (
|
|
3784
|
+
onOptionChange: (n) => {
|
|
3785
3785
|
if (l.onOptionChange)
|
|
3786
|
-
if (g && !
|
|
3786
|
+
if (g && !n) {
|
|
3787
3787
|
l.onOptionChange({
|
|
3788
3788
|
id: 0,
|
|
3789
3789
|
name: "Todos os estados",
|
|
@@ -3791,9 +3791,9 @@ const $3 = y.button`
|
|
|
3791
3791
|
});
|
|
3792
3792
|
return;
|
|
3793
3793
|
} else
|
|
3794
|
-
l.onOptionChange((
|
|
3794
|
+
l.onOptionChange((n == null ? void 0 : n.countryState) ?? null);
|
|
3795
3795
|
},
|
|
3796
|
-
selectedOption:
|
|
3796
|
+
selectedOption: r
|
|
3797
3797
|
};
|
|
3798
3798
|
return /* @__PURE__ */ e.jsx(A2, { ...j, ref: h, children: A });
|
|
3799
3799
|
}, S7 = X1(P5), H5 = y.div`
|
|
@@ -3857,47 +3857,47 @@ y.div`
|
|
|
3857
3857
|
text-align: center;
|
|
3858
3858
|
|
|
3859
3859
|
.item-locked {
|
|
3860
|
-
color: ${
|
|
3860
|
+
color: ${w.colors.honey40};
|
|
3861
3861
|
}
|
|
3862
3862
|
`;
|
|
3863
3863
|
const G5 = ({
|
|
3864
3864
|
title: A,
|
|
3865
3865
|
icon: g,
|
|
3866
3866
|
children: i,
|
|
3867
|
-
sidebarOpen:
|
|
3868
|
-
disabled:
|
|
3867
|
+
sidebarOpen: C,
|
|
3868
|
+
disabled: c,
|
|
3869
3869
|
onClick: l,
|
|
3870
3870
|
isCurrentGroup: h
|
|
3871
3871
|
}) => {
|
|
3872
3872
|
const [t, B] = o0(!1);
|
|
3873
3873
|
M0(() => {
|
|
3874
|
-
t &&
|
|
3875
|
-
}, [t,
|
|
3874
|
+
t && c && B(!1);
|
|
3875
|
+
}, [t, c]);
|
|
3876
3876
|
const d = P0(
|
|
3877
3877
|
(o) => {
|
|
3878
|
-
|
|
3878
|
+
c || (C ? (o.stopPropagation(), B(!t)) : l());
|
|
3879
3879
|
},
|
|
3880
|
-
[
|
|
3880
|
+
[c, C, t, l]
|
|
3881
3881
|
);
|
|
3882
|
-
let
|
|
3883
|
-
return
|
|
3882
|
+
let E = "#fff";
|
|
3883
|
+
return c && (E = "rgba(255,255,255,0.3)"), h && (E = "#217efd"), /* @__PURE__ */ e.jsxs(H5, { $open: C, $groupOpen: t, children: [
|
|
3884
3884
|
/* @__PURE__ */ e.jsxs(
|
|
3885
3885
|
j5,
|
|
3886
3886
|
{
|
|
3887
|
-
$disabled:
|
|
3888
|
-
$sidebarOpen:
|
|
3887
|
+
$disabled: c,
|
|
3888
|
+
$sidebarOpen: C,
|
|
3889
3889
|
$groupOpen: t,
|
|
3890
3890
|
onClick: d,
|
|
3891
3891
|
children: [
|
|
3892
|
-
/* @__PURE__ */ e.jsx(a0, { src: g, color:
|
|
3893
|
-
|
|
3894
|
-
|
|
3892
|
+
/* @__PURE__ */ e.jsx(a0, { src: g, color: E, width: "20px" }),
|
|
3893
|
+
C && /* @__PURE__ */ e.jsx("span", { className: "title", children: /* @__PURE__ */ e.jsx(v0, { size: "medium", heavyBod: h, color: c ? w.colors.shade40 : "white", children: A }) }),
|
|
3894
|
+
C && (c ? /* @__PURE__ */ e.jsx(a0, { src: o1, width: "20px", color: "white" }) : /* @__PURE__ */ e.jsx(
|
|
3895
3895
|
a0,
|
|
3896
3896
|
{
|
|
3897
3897
|
className: `icon ${t ? "icon-rotate" : ""}`,
|
|
3898
3898
|
src: E2,
|
|
3899
3899
|
width: "20px",
|
|
3900
|
-
color:
|
|
3900
|
+
color: w.colors.shade30
|
|
3901
3901
|
}
|
|
3902
3902
|
))
|
|
3903
3903
|
]
|
|
@@ -3969,29 +3969,29 @@ const G5 = ({
|
|
|
3969
3969
|
title: A,
|
|
3970
3970
|
disabled: g,
|
|
3971
3971
|
icon: i,
|
|
3972
|
-
isInsideGroup:
|
|
3973
|
-
isCurrentItem:
|
|
3972
|
+
isInsideGroup: C,
|
|
3973
|
+
isCurrentItem: c,
|
|
3974
3974
|
sidebarOpen: l,
|
|
3975
3975
|
onClick: h
|
|
3976
3976
|
}) => {
|
|
3977
3977
|
let t = "#fff";
|
|
3978
|
-
return g && (t = "rgba(255,255,255,0.3)"),
|
|
3978
|
+
return g && (t = "rgba(255,255,255,0.3)"), c && (t = w.colors.cyan30), /* @__PURE__ */ e.jsxs(
|
|
3979
3979
|
R5,
|
|
3980
3980
|
{
|
|
3981
|
-
$isCurrentItem:
|
|
3981
|
+
$isCurrentItem: c,
|
|
3982
3982
|
$disabled: g ?? !1,
|
|
3983
3983
|
$sidebarOpen: l,
|
|
3984
|
-
$isInsideGroup:
|
|
3984
|
+
$isInsideGroup: C,
|
|
3985
3985
|
onClick: () => !g && h(),
|
|
3986
3986
|
children: [
|
|
3987
|
-
|
|
3987
|
+
C ? /* @__PURE__ */ e.jsx(x5, {}) : i && /* @__PURE__ */ e.jsx("div", { className: "icon", children: /* @__PURE__ */ e.jsx(a0, { src: i, color: t, width: "20px" }) }),
|
|
3988
3988
|
l && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3989
3989
|
/* @__PURE__ */ e.jsx("span", { className: "title", children: /* @__PURE__ */ e.jsx(
|
|
3990
3990
|
v0,
|
|
3991
3991
|
{
|
|
3992
|
-
size:
|
|
3993
|
-
color: g ?
|
|
3994
|
-
heavyBod:
|
|
3992
|
+
size: C ? "small" : "medium",
|
|
3993
|
+
color: g ? w.colors.shade40 : C ? w.colors.shade10 : "white",
|
|
3994
|
+
heavyBod: c,
|
|
3995
3995
|
children: A
|
|
3996
3996
|
}
|
|
3997
3997
|
) }),
|
|
@@ -4031,7 +4031,7 @@ const G5 = ({
|
|
|
4031
4031
|
height: var(--height);
|
|
4032
4032
|
width: var(--width);
|
|
4033
4033
|
|
|
4034
|
-
background: ${({ $baseColor: A }) => A ||
|
|
4034
|
+
background: ${({ $baseColor: A }) => A || w.colors.cyan50};
|
|
4035
4035
|
color: #fff;
|
|
4036
4036
|
|
|
4037
4037
|
border-radius: 0 var(--width) var(--width) 0;
|
|
@@ -4044,7 +4044,7 @@ const G5 = ({
|
|
|
4044
4044
|
|
|
4045
4045
|
z-index: 2;
|
|
4046
4046
|
}
|
|
4047
|
-
`, k5 = ({ sidebarOpen: A, setSidebarOpen: g, logoOpacity: i, logoUrl:
|
|
4047
|
+
`, k5 = ({ sidebarOpen: A, setSidebarOpen: g, logoOpacity: i, logoUrl: C, baseColor: c }) => /* @__PURE__ */ e.jsxs(Y5, { $logoUrl: C, $logoOpacity: i, $sidebarOpen: A, $baseColor: c, children: [
|
|
4048
4048
|
/* @__PURE__ */ e.jsx("button", { type: "button", onClick: () => g(!A), className: "close", "aria-label": "Fechar menu", children: /* @__PURE__ */ e.jsx(a0, { src: A ? M2 : D2, color: "#fff", width: "12px", height: "12px" }) }),
|
|
4049
4049
|
/* @__PURE__ */ e.jsx("div", { className: "logo" })
|
|
4050
4050
|
] }), m5 = y.div`
|
|
@@ -4060,7 +4060,7 @@ const G5 = ({
|
|
|
4060
4060
|
width: min-content;
|
|
4061
4061
|
min-width: ${({ $sidebarOpen: A }) => A && "215px"};
|
|
4062
4062
|
border-radius: ${({ $sidebarOpen: A }) => A && "0 60px 0px 0;"};
|
|
4063
|
-
background: ${({ $baseColor: A }) => A ||
|
|
4063
|
+
background: ${({ $baseColor: A }) => A || w.colors.cyan50};
|
|
4064
4064
|
/* Mantenha o estilo do container ao passar o mouse */
|
|
4065
4065
|
&:hover {
|
|
4066
4066
|
&::-webkit-scrollbar {
|
|
@@ -4117,16 +4117,16 @@ const G5 = ({
|
|
|
4117
4117
|
logoUrl: A,
|
|
4118
4118
|
layout: g,
|
|
4119
4119
|
currentItemId: i,
|
|
4120
|
-
currentGroupId:
|
|
4121
|
-
setLink:
|
|
4120
|
+
currentGroupId: C,
|
|
4121
|
+
setLink: c,
|
|
4122
4122
|
items: l,
|
|
4123
4123
|
logoOpacity: h,
|
|
4124
4124
|
groups: t,
|
|
4125
4125
|
baseColor: B
|
|
4126
4126
|
}) => {
|
|
4127
|
-
const [d,
|
|
4128
|
-
const j = l[
|
|
4129
|
-
|
|
4127
|
+
const [d, E] = o0(!0), o = (r) => {
|
|
4128
|
+
const j = l[r], n = j == null ? void 0 : j.link;
|
|
4129
|
+
n && c(n);
|
|
4130
4130
|
};
|
|
4131
4131
|
return /* @__PURE__ */ e.jsxs(m5, { $sidebarOpen: d, $baseColor: B, children: [
|
|
4132
4132
|
/* @__PURE__ */ e.jsx(
|
|
@@ -4134,60 +4134,60 @@ const G5 = ({
|
|
|
4134
4134
|
{
|
|
4135
4135
|
logoUrl: A,
|
|
4136
4136
|
sidebarOpen: d,
|
|
4137
|
-
setSidebarOpen:
|
|
4137
|
+
setSidebarOpen: E,
|
|
4138
4138
|
logoOpacity: h,
|
|
4139
4139
|
baseColor: B
|
|
4140
4140
|
}
|
|
4141
4141
|
),
|
|
4142
|
-
/* @__PURE__ */ e.jsx(y5, { children: /* @__PURE__ */ e.jsx(p5, { children: g.map((
|
|
4143
|
-
var j,
|
|
4144
|
-
if (
|
|
4145
|
-
if (
|
|
4142
|
+
/* @__PURE__ */ e.jsx(y5, { children: /* @__PURE__ */ e.jsx(p5, { children: g.map((r, j) => ({ id: j, disabled: void 0, ...r })).map((r) => {
|
|
4143
|
+
var j, n, G, x;
|
|
4144
|
+
if (r.type === "spacer") return /* @__PURE__ */ e.jsx(O5, {}, r.id);
|
|
4145
|
+
if (r.type === "item")
|
|
4146
4146
|
return /* @__PURE__ */ e.jsx(
|
|
4147
4147
|
r2,
|
|
4148
4148
|
{
|
|
4149
|
-
title: (j = l[
|
|
4150
|
-
icon: (
|
|
4151
|
-
disabled: (G = l[
|
|
4152
|
-
onClick: () => o(
|
|
4149
|
+
title: (j = l[r.id]) == null ? void 0 : j.menuTitle,
|
|
4150
|
+
icon: (n = l[r.id]) == null ? void 0 : n.icon,
|
|
4151
|
+
disabled: (G = l[r.id]) == null ? void 0 : G.disabled,
|
|
4152
|
+
onClick: () => o(r.id),
|
|
4153
4153
|
sidebarOpen: d,
|
|
4154
|
-
isCurrentItem: i ===
|
|
4154
|
+
isCurrentItem: i === r.id
|
|
4155
4155
|
},
|
|
4156
|
-
|
|
4156
|
+
r.id
|
|
4157
4157
|
);
|
|
4158
|
-
if (
|
|
4159
|
-
const
|
|
4158
|
+
if (r.type === "group") {
|
|
4159
|
+
const D = t[r.id], O = (x = D.itemIds) == null ? void 0 : x.some((Y) => {
|
|
4160
4160
|
var Z;
|
|
4161
4161
|
return ((Z = l[Y]) == null ? void 0 : Z.showInMenu) !== !1;
|
|
4162
4162
|
});
|
|
4163
|
-
if (
|
|
4164
|
-
const Y = l[
|
|
4163
|
+
if (D.itemIds == null || D.itemIds.length === 0 || !O) {
|
|
4164
|
+
const Y = l[r.id];
|
|
4165
4165
|
return /* @__PURE__ */ e.jsx(
|
|
4166
4166
|
r2,
|
|
4167
4167
|
{
|
|
4168
|
-
onClick: () => o(
|
|
4168
|
+
onClick: () => o(r.id),
|
|
4169
4169
|
sidebarOpen: d,
|
|
4170
|
-
isCurrentItem:
|
|
4170
|
+
isCurrentItem: C === r.id,
|
|
4171
4171
|
disabled: Y.disabled,
|
|
4172
4172
|
title: Y.menuTitle,
|
|
4173
4173
|
icon: Y.icon
|
|
4174
4174
|
},
|
|
4175
|
-
|
|
4175
|
+
r.id
|
|
4176
4176
|
);
|
|
4177
4177
|
} else
|
|
4178
4178
|
return /* @__PURE__ */ e.jsx(
|
|
4179
4179
|
G5,
|
|
4180
4180
|
{
|
|
4181
|
-
disabled:
|
|
4181
|
+
disabled: D.itemIds.every((Y) => {
|
|
4182
4182
|
var Z;
|
|
4183
4183
|
return (Z = l[Y]) == null ? void 0 : Z.disabled;
|
|
4184
4184
|
}),
|
|
4185
|
-
title:
|
|
4186
|
-
icon:
|
|
4185
|
+
title: D.name,
|
|
4186
|
+
icon: D.icon,
|
|
4187
4187
|
sidebarOpen: d,
|
|
4188
|
-
onClick: () =>
|
|
4189
|
-
isCurrentGroup:
|
|
4190
|
-
children:
|
|
4188
|
+
onClick: () => D.link && c(D.link),
|
|
4189
|
+
isCurrentGroup: C === r.id,
|
|
4190
|
+
children: D.itemIds.filter((Y) => {
|
|
4191
4191
|
var Z;
|
|
4192
4192
|
return ((Z = l[Y]) == null ? void 0 : Z.showInMenu) !== !1;
|
|
4193
4193
|
}).map((Y) => {
|
|
@@ -4206,7 +4206,7 @@ const G5 = ({
|
|
|
4206
4206
|
);
|
|
4207
4207
|
})
|
|
4208
4208
|
},
|
|
4209
|
-
|
|
4209
|
+
r.id
|
|
4210
4210
|
);
|
|
4211
4211
|
}
|
|
4212
4212
|
return null;
|
|
@@ -4240,7 +4240,7 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4240
4240
|
animation: ${u5} 2s linear infinite;
|
|
4241
4241
|
`, N5 = ({ size: A = "medium" }) => /* @__PURE__ */ e.jsx(Z5, { children: /* @__PURE__ */ e.jsxs(L5, { children: [
|
|
4242
4242
|
/* @__PURE__ */ e.jsx(F5, { src: h1, alt: "loading", size: A }),
|
|
4243
|
-
/* @__PURE__ */ e.jsx(v0, { color:
|
|
4243
|
+
/* @__PURE__ */ e.jsx(v0, { color: w.colors.shade30, size: "x-small", children: "CARREGANDO" })
|
|
4244
4244
|
] }) }), K5 = y.div`
|
|
4245
4245
|
padding: 36px;
|
|
4246
4246
|
width: 100%;
|
|
@@ -4251,7 +4251,7 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4251
4251
|
border-radius: 8px;
|
|
4252
4252
|
display: flex;
|
|
4253
4253
|
flex-direction: column;
|
|
4254
|
-
gap: ${
|
|
4254
|
+
gap: ${w.spacing.space3};
|
|
4255
4255
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
4256
4256
|
|
|
4257
4257
|
.empty-state-logo {
|
|
@@ -4267,9 +4267,9 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4267
4267
|
opacity: 0.2;
|
|
4268
4268
|
}
|
|
4269
4269
|
`, b5 = ({ title: A, subTitle: g, description: i }) => /* @__PURE__ */ e.jsxs(K5, { children: [
|
|
4270
|
-
/* @__PURE__ */ e.jsx(v0, { strongBod: !0, color:
|
|
4271
|
-
/* @__PURE__ */ e.jsx(v0, { color:
|
|
4272
|
-
/* @__PURE__ */ e.jsx(v0, { color:
|
|
4270
|
+
/* @__PURE__ */ e.jsx(v0, { strongBod: !0, color: w.colors.cyan50, size: "large", children: A }),
|
|
4271
|
+
/* @__PURE__ */ e.jsx(v0, { color: w.colors.shade40, size: "medium", children: g }),
|
|
4272
|
+
/* @__PURE__ */ e.jsx(v0, { color: w.colors.cyan40, size: "medium", children: i }),
|
|
4273
4273
|
/* @__PURE__ */ e.jsx("div", { className: "empty-state-logo", children: /* @__PURE__ */ e.jsx("img", { src: r3, alt: "Logo", className: "clearer-image" }) })
|
|
4274
4274
|
] }), U5 = y.div`
|
|
4275
4275
|
display: flex;
|
|
@@ -4281,29 +4281,30 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4281
4281
|
border-collapse: collapse;
|
|
4282
4282
|
table-layout: fixed;
|
|
4283
4283
|
`, S5 = y.thead`
|
|
4284
|
-
border-bottom: 1px solid
|
|
4284
|
+
border-bottom: 1px solid ${w.colors.shade10};
|
|
4285
4285
|
`, J5 = y.div`
|
|
4286
4286
|
overflow-y: auto;
|
|
4287
|
-
height: ${(A) => A
|
|
4287
|
+
height: ${({ height: A }) => A || "100%"};
|
|
4288
4288
|
`, T5 = y.tbody``, l1 = y.tr`
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
table-layout: fixed;
|
|
4292
|
-
background-color: ${(A) => A.striped ? "#f9f9f9" : "transparent"};
|
|
4293
|
-
cursor: ${(A) => A.clickable ? "pointer" : "default"};
|
|
4289
|
+
background-color: ${({ selected: A, striped: g }) => A ? w.colors.cyan10 : g ? "white" : "transparent"};
|
|
4290
|
+
cursor: ${({ clickable: A }) => A ? "pointer" : "default"};
|
|
4294
4291
|
|
|
4295
|
-
&:nth-child(
|
|
4296
|
-
background-color: ${(A) => A.
|
|
4292
|
+
&:nth-child(even) {
|
|
4293
|
+
background-color: ${({ selected: A, striped: g }) => A ? w.colors.cyan10 : g ? w.colors.shade05 : "transparent"};
|
|
4294
|
+
}
|
|
4295
|
+
|
|
4296
|
+
&:hover {
|
|
4297
|
+
background-color: ${({ clickable: A, selected: g }) => A && !g ? w.colors.cyan10 : ""};
|
|
4297
4298
|
}
|
|
4298
4299
|
`, X5 = y.th`
|
|
4299
4300
|
padding: 10px;
|
|
4300
|
-
text-align: ${(A) => A
|
|
4301
|
-
width: ${(A) => A
|
|
4301
|
+
text-align: ${({ align: A }) => A || "left"};
|
|
4302
|
+
width: ${({ width: A }) => A || "auto"};
|
|
4302
4303
|
vertical-align: middle;
|
|
4303
4304
|
`, W5 = y.td`
|
|
4304
4305
|
padding: 12px;
|
|
4305
|
-
width: ${(
|
|
4306
|
-
text-align: ${(
|
|
4306
|
+
width: ${({ width: A }) => A || "auto"};
|
|
4307
|
+
text-align: ${({ align: A }) => A || "left"};
|
|
4307
4308
|
`, V5 = y.div`
|
|
4308
4309
|
padding: 8px;
|
|
4309
4310
|
min-height: 50px;
|
|
@@ -4324,8 +4325,8 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4324
4325
|
columns: A,
|
|
4325
4326
|
data: g,
|
|
4326
4327
|
height: i = "100%",
|
|
4327
|
-
loading:
|
|
4328
|
-
emptyStateMessage:
|
|
4328
|
+
loading: C = !1,
|
|
4329
|
+
emptyStateMessage: c = {
|
|
4329
4330
|
title: "Nenhum registro encontrado",
|
|
4330
4331
|
subTitle: "Não há registros para exibir",
|
|
4331
4332
|
description: "Não há registros para exibir"
|
|
@@ -4334,40 +4335,33 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4334
4335
|
rowClickable: h = !1,
|
|
4335
4336
|
onRowClick: t
|
|
4336
4337
|
}) => {
|
|
4337
|
-
const [B, d] = o0([]), [
|
|
4338
|
-
o(
|
|
4339
|
-
}, j = (
|
|
4340
|
-
d((G) => G.includes(
|
|
4338
|
+
const [B, d] = o0([]), [E, o] = o0(null), r = (n) => {
|
|
4339
|
+
o(n.id), t == null || t(n);
|
|
4340
|
+
}, j = (n) => {
|
|
4341
|
+
d((G) => G.includes(n) ? G.filter((x) => x !== n) : [...G, n]);
|
|
4341
4342
|
};
|
|
4342
4343
|
return /* @__PURE__ */ e.jsxs(U5, { children: [
|
|
4343
|
-
/* @__PURE__ */ e.jsx(e1, { children: /* @__PURE__ */ e.jsx(S5, { children: /* @__PURE__ */ e.jsx(l1, {
|
|
4344
|
-
/* @__PURE__ */ e.jsx(J5, { height: i, children: /* @__PURE__ */ e.jsx(e1, { children: /* @__PURE__ */ e.jsx(T5, { children:
|
|
4344
|
+
/* @__PURE__ */ e.jsx(e1, { children: /* @__PURE__ */ e.jsx(S5, { children: /* @__PURE__ */ e.jsx(l1, { children: A.map((n, G) => /* @__PURE__ */ e.jsx(X5, { width: n.width, align: n.align, children: /* @__PURE__ */ e.jsx(v0, { color: w.colors.shade30, textTransform: "uppercase", strongBod: !0, children: n.header }) }, G)) }) }) }),
|
|
4345
|
+
/* @__PURE__ */ e.jsx(J5, { height: i, children: /* @__PURE__ */ e.jsx(e1, { children: /* @__PURE__ */ e.jsx(T5, { children: C ? /* @__PURE__ */ e.jsx(q5, { children: /* @__PURE__ */ e.jsx(N5, { size: "small" }) }) : g.length === 0 ? /* @__PURE__ */ e.jsx($5, { children: /* @__PURE__ */ e.jsx(
|
|
4345
4346
|
b5,
|
|
4346
4347
|
{
|
|
4347
|
-
title:
|
|
4348
|
-
subTitle:
|
|
4349
|
-
description:
|
|
4348
|
+
title: c.title,
|
|
4349
|
+
subTitle: c.subTitle,
|
|
4350
|
+
description: c.description
|
|
4350
4351
|
}
|
|
4351
|
-
) }) : g.map((
|
|
4352
|
+
) }) : g.map((n) => /* @__PURE__ */ e.jsxs(y0.Fragment, { children: [
|
|
4352
4353
|
/* @__PURE__ */ e.jsx(
|
|
4353
4354
|
l1,
|
|
4354
4355
|
{
|
|
4355
4356
|
striped: l,
|
|
4356
4357
|
clickable: h && !!t,
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
background: w === r.id ? D.colors.cyan10 : "transparent"
|
|
4361
|
-
},
|
|
4362
|
-
children: A.map((G, x) => /* @__PURE__ */ e.jsx(W5, { width: G.width, align: G.align || "left", children: G.Cell ? (
|
|
4363
|
-
// Exemplo de uso de stopPropagation():
|
|
4364
|
-
// Se o Cell renderiza um botão, no onClick do botão faça event.stopPropagation()
|
|
4365
|
-
G.Cell(r, j)
|
|
4366
|
-
) : G.accessor ? /* @__PURE__ */ e.jsx(v0, { color: D.colors.shade40, children: String(r[G.accessor]) }) : null }, x))
|
|
4358
|
+
selected: E === n.id,
|
|
4359
|
+
onClick: () => h && t && r(n),
|
|
4360
|
+
children: A.map((G, x) => /* @__PURE__ */ e.jsx(W5, { width: G.width, align: G.align, children: G.Cell ? G.Cell(n, j) : G.accessor && /* @__PURE__ */ e.jsx(v0, { color: w.colors.shade40, children: String(n[G.accessor]) }) }, x))
|
|
4367
4361
|
}
|
|
4368
4362
|
),
|
|
4369
|
-
B.includes(
|
|
4370
|
-
] },
|
|
4363
|
+
B.includes(n.id) && "containerColapsed" in n && typeof n.containerColapsed == "function" && /* @__PURE__ */ e.jsx(V5, { children: n.containerColapsed(n) })
|
|
4364
|
+
] }, n.id)) }) }) })
|
|
4371
4365
|
] });
|
|
4372
4366
|
}, _5 = y.div`
|
|
4373
4367
|
display: flex;
|
|
@@ -4388,10 +4382,10 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4388
4382
|
color: ${(A) => A.active ? "var(--PrimaryColor, #000)" : "var(--SecondaryColor, #666)"};
|
|
4389
4383
|
transition: opacity 0.3s;
|
|
4390
4384
|
`, X7 = ({ tabs: A, defaultActiveTab: g, onTabChange: i }) => {
|
|
4391
|
-
const [
|
|
4392
|
-
|
|
4385
|
+
const [C, c] = o0(g || A[0]), l = (h) => {
|
|
4386
|
+
c(h), i && i(h);
|
|
4393
4387
|
};
|
|
4394
|
-
return /* @__PURE__ */ e.jsx(_5, { children: A.map((h) => /* @__PURE__ */ e.jsx(A7, { active: h ===
|
|
4388
|
+
return /* @__PURE__ */ e.jsx(_5, { children: A.map((h) => /* @__PURE__ */ e.jsx(A7, { active: h === C, onClick: () => l(h), children: h }, h)) });
|
|
4395
4389
|
}, g7 = y.div`
|
|
4396
4390
|
position: relative;
|
|
4397
4391
|
border-radius: 4px;
|
|
@@ -4413,14 +4407,14 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4413
4407
|
|
|
4414
4408
|
|
|
4415
4409
|
.button-action:hover svg path {
|
|
4416
|
-
fill: ${
|
|
4410
|
+
fill: ${w.colors.cyan20};
|
|
4417
4411
|
}
|
|
4418
4412
|
|
|
4419
4413
|
.button-action:hover {
|
|
4420
|
-
background: ${
|
|
4414
|
+
background: ${w.colors.cyan10};
|
|
4421
4415
|
}
|
|
4422
4416
|
.button-action:active {
|
|
4423
|
-
background: ${
|
|
4417
|
+
background: ${w.colors.cyan15};
|
|
4424
4418
|
}
|
|
4425
4419
|
|
|
4426
4420
|
.container-input-tag {
|
|
@@ -4443,7 +4437,7 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4443
4437
|
}
|
|
4444
4438
|
|
|
4445
4439
|
.wrapper-tag {
|
|
4446
|
-
background: ${
|
|
4440
|
+
background: ${w.colors.cyan10};
|
|
4447
4441
|
display: flex;
|
|
4448
4442
|
align-items: center;
|
|
4449
4443
|
flex-wrap: nowrap;
|
|
@@ -4452,7 +4446,7 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4452
4446
|
}
|
|
4453
4447
|
.wrapper-tag-button {
|
|
4454
4448
|
padding: 8px 10px;
|
|
4455
|
-
color: ${
|
|
4449
|
+
color: ${w.colors.shade40};
|
|
4456
4450
|
}
|
|
4457
4451
|
}
|
|
4458
4452
|
`, I7 = y.input`
|
|
@@ -4462,10 +4456,10 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4462
4456
|
border: none;
|
|
4463
4457
|
outline: none;
|
|
4464
4458
|
|
|
4465
|
-
color: ${
|
|
4459
|
+
color: ${w.colors.shade50};
|
|
4466
4460
|
|
|
4467
|
-
font-family: ${
|
|
4468
|
-
font-size: ${
|
|
4461
|
+
font-family: ${w.fonts.join(", ")};
|
|
4462
|
+
font-size: ${w.paragraph.medium};
|
|
4469
4463
|
|
|
4470
4464
|
&:active,
|
|
4471
4465
|
&:focus {
|
|
@@ -4474,8 +4468,8 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4474
4468
|
}
|
|
4475
4469
|
|
|
4476
4470
|
&::placeholder {
|
|
4477
|
-
color: ${
|
|
4478
|
-
font-size: ${
|
|
4471
|
+
color: ${w.colors.shade30};
|
|
4472
|
+
font-size: ${w.paragraph.medium};
|
|
4479
4473
|
opacity: 1;
|
|
4480
4474
|
}
|
|
4481
4475
|
|
|
@@ -4485,7 +4479,7 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4485
4479
|
}
|
|
4486
4480
|
`, C7 = y.label`
|
|
4487
4481
|
position: absolute;
|
|
4488
|
-
color: ${
|
|
4482
|
+
color: ${w.colors.shade50};
|
|
4489
4483
|
|
|
4490
4484
|
box-sizing: content-box;
|
|
4491
4485
|
left: 15px;
|
|
@@ -4493,7 +4487,7 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4493
4487
|
padding: 0 1px;
|
|
4494
4488
|
|
|
4495
4489
|
font-family: 'Nunito Sans', sans-serif;
|
|
4496
|
-
font-size: ${
|
|
4490
|
+
font-size: ${w.paragraph.small};
|
|
4497
4491
|
font-weight: 600;
|
|
4498
4492
|
text-wrap: nowrap;
|
|
4499
4493
|
`, c7 = y.div`
|
|
@@ -4509,7 +4503,7 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4509
4503
|
gap: 8px;
|
|
4510
4504
|
border-radius: 4px;
|
|
4511
4505
|
|
|
4512
|
-
background-color: ${({ disabled: A }) => A ?
|
|
4506
|
+
background-color: ${({ disabled: A }) => A ? w.colors.shade10 : w.colors.white};
|
|
4513
4507
|
|
|
4514
4508
|
cursor: ${({ disabled: A }) => A ? "not-allowed" : "pointer"};
|
|
4515
4509
|
`, e7 = y.div`
|
|
@@ -4518,7 +4512,7 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4518
4512
|
box-sizing: content-box;
|
|
4519
4513
|
inset: 0px;
|
|
4520
4514
|
border-radius: 4px;
|
|
4521
|
-
border: 1px solid ${
|
|
4515
|
+
border: 1px solid ${w.colors.shade20};
|
|
4522
4516
|
clip-rule: evenodd;
|
|
4523
4517
|
clip-path: path(
|
|
4524
4518
|
'${({ label: A, content: g }) => A.height !== 0 && A.width !== 0 ? `M ${g.x} ${g.y} l ${g.width} 0 l 0 ${g.height} l -${g.width} 0z M ${A.x} ${A.y} l 0 ${A.height} l ${A.width} 0 l 0 -${A.height}z` : ""}'
|
|
@@ -4527,29 +4521,29 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4527
4521
|
label: A,
|
|
4528
4522
|
readonly: g,
|
|
4529
4523
|
disabled: i,
|
|
4530
|
-
leftIcon:
|
|
4531
|
-
rightIcon:
|
|
4524
|
+
leftIcon: C,
|
|
4525
|
+
rightIcon: c,
|
|
4532
4526
|
tags: l,
|
|
4533
4527
|
setTags: h,
|
|
4534
4528
|
placeholder: t,
|
|
4535
4529
|
...B
|
|
4536
4530
|
}) => {
|
|
4537
|
-
const d = s1(),
|
|
4531
|
+
const d = s1(), E = w0(null), o = w0(null), r = w0(null), [j, n] = o0(""), [G, x] = o0({
|
|
4538
4532
|
x: 0,
|
|
4539
4533
|
y: 0,
|
|
4540
4534
|
width: 0,
|
|
4541
4535
|
height: 0
|
|
4542
|
-
}), [
|
|
4536
|
+
}), [D, O] = o0({
|
|
4543
4537
|
x: 0,
|
|
4544
4538
|
y: 0,
|
|
4545
4539
|
width: 0,
|
|
4546
4540
|
height: 0
|
|
4547
4541
|
}), Y = P0(() => {
|
|
4548
|
-
|
|
4549
|
-
x:
|
|
4550
|
-
y:
|
|
4551
|
-
width:
|
|
4552
|
-
height:
|
|
4542
|
+
E.current && O({
|
|
4543
|
+
x: E.current.offsetLeft - 30,
|
|
4544
|
+
y: E.current.offsetTop - 30,
|
|
4545
|
+
width: E.current.offsetWidth + 30 * 2,
|
|
4546
|
+
height: E.current.offsetHeight + 30 * 2
|
|
4553
4547
|
}), o.current && x({
|
|
4554
4548
|
x: o.current.offsetLeft - 4,
|
|
4555
4549
|
y: o.current.offsetTop - 4,
|
|
@@ -4560,7 +4554,7 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4560
4554
|
M0(() => {
|
|
4561
4555
|
const p = () => Y();
|
|
4562
4556
|
let F = null;
|
|
4563
|
-
return ResizeObserver ? (F = new ResizeObserver(p),
|
|
4557
|
+
return ResizeObserver ? (F = new ResizeObserver(p), E.current && F.observe(E.current), o.current && F.observe(o.current)) : window.addEventListener("resize", p), () => {
|
|
4564
4558
|
F ? F.disconnect() : window.removeEventListener("resize", p);
|
|
4565
4559
|
};
|
|
4566
4560
|
}, [Y]), M0(() => {
|
|
@@ -4568,26 +4562,26 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4568
4562
|
}, [A, Y]);
|
|
4569
4563
|
const Z = (p) => {
|
|
4570
4564
|
var F;
|
|
4571
|
-
p && p.stopPropagation(), j.trim() && !l.includes(j.trim()) && (h([...l, j.trim()]),
|
|
4565
|
+
p && p.stopPropagation(), j.trim() && !l.includes(j.trim()) && (h([...l, j.trim()]), n(""), (F = r.current) == null || F.focus());
|
|
4572
4566
|
}, a = (p) => {
|
|
4573
4567
|
h(l.filter((F) => F !== p));
|
|
4574
4568
|
}, X = (p) => {
|
|
4575
4569
|
var F;
|
|
4576
|
-
(F =
|
|
4570
|
+
(F = r.current) == null || F.focus(), p.stopPropagation();
|
|
4577
4571
|
};
|
|
4578
4572
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs(g7, { ...B, children: [
|
|
4579
|
-
/* @__PURE__ */ e.jsxs(c7, { disabled: i, ref:
|
|
4580
|
-
/* @__PURE__ */ e.jsx(e7, { content:
|
|
4573
|
+
/* @__PURE__ */ e.jsxs(c7, { disabled: i, ref: E, onClick: (p) => X(p), children: [
|
|
4574
|
+
/* @__PURE__ */ e.jsx(e7, { content: D, label: G }),
|
|
4581
4575
|
/* @__PURE__ */ e.jsx(C7, { htmlFor: d, ref: o, children: A }),
|
|
4582
|
-
|
|
4576
|
+
C,
|
|
4583
4577
|
/* @__PURE__ */ e.jsx(
|
|
4584
4578
|
I7,
|
|
4585
4579
|
{
|
|
4586
4580
|
id: d,
|
|
4587
4581
|
disabled: i,
|
|
4588
|
-
ref:
|
|
4582
|
+
ref: r,
|
|
4589
4583
|
value: j,
|
|
4590
|
-
onChange: (p) =>
|
|
4584
|
+
onChange: (p) => n(p.target.value),
|
|
4591
4585
|
placeholder: t,
|
|
4592
4586
|
onKeyDown: (p) => {
|
|
4593
4587
|
p.key === "Enter" && (p.preventDefault(), Z());
|
|
@@ -4596,12 +4590,12 @@ const Z5 = y.div``, L5 = y.div`
|
|
|
4596
4590
|
}
|
|
4597
4591
|
),
|
|
4598
4592
|
/* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4599
|
-
|
|
4600
|
-
/* @__PURE__ */ e.jsx("button", { className: "button-action", onClick: (p) => Z(p), children: /* @__PURE__ */ e.jsx(a0, { src: n3, width: "24px", height: "24px", color:
|
|
4593
|
+
c,
|
|
4594
|
+
/* @__PURE__ */ e.jsx("button", { className: "button-action", onClick: (p) => Z(p), children: /* @__PURE__ */ e.jsx(a0, { src: n3, width: "24px", height: "24px", color: w.colors.shade30 }) })
|
|
4601
4595
|
] })
|
|
4602
4596
|
] }),
|
|
4603
4597
|
/* @__PURE__ */ e.jsx("div", { className: "container-input-tag", children: l.map((p, F) => /* @__PURE__ */ e.jsxs("div", { className: "wrapper-tag", children: [
|
|
4604
|
-
/* @__PURE__ */ e.jsx(v0, { color:
|
|
4598
|
+
/* @__PURE__ */ e.jsx(v0, { color: w.colors.cyan30, children: p }),
|
|
4605
4599
|
/* @__PURE__ */ e.jsx("button", { className: "wrapper-tag-button", onClick: () => a(p), children: "x" })
|
|
4606
4600
|
] }, F)) })
|
|
4607
4601
|
] }) });
|
|
@@ -4663,6 +4657,6 @@ export {
|
|
|
4663
4657
|
m7 as settingSVG,
|
|
4664
4658
|
h1 as spinSVG,
|
|
4665
4659
|
p7 as spreadsheetSVG,
|
|
4666
|
-
|
|
4660
|
+
w as theme,
|
|
4667
4661
|
y7 as wavePulseSVG
|
|
4668
4662
|
};
|