levannta-ui 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.esm.js +219 -207
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
var
|
1
|
+
import he, { forwardRef as pr, useState as W, useEffect as be } from "react";
|
2
|
+
var me = { exports: {} }, K = {};
|
3
3
|
/**
|
4
4
|
* @license React
|
5
5
|
* react-jsx-runtime.production.min.js
|
@@ -9,23 +9,23 @@ var be = { exports: {} }, K = {};
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
11
11
|
*/
|
12
|
-
var
|
12
|
+
var Me;
|
13
13
|
function gr() {
|
14
|
-
if (
|
14
|
+
if (Me)
|
15
15
|
return K;
|
16
|
-
|
17
|
-
var o =
|
18
|
-
function
|
16
|
+
Me = 1;
|
17
|
+
var o = he, d = Symbol.for("react.element"), a = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, x = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, N = { key: !0, ref: !0, __self: !0, __source: !0 };
|
18
|
+
function j(p, c, m) {
|
19
19
|
var s, y = {}, g = null, _ = null;
|
20
|
-
|
20
|
+
m !== void 0 && (g = "" + m), c.key !== void 0 && (g = "" + c.key), c.ref !== void 0 && (_ = c.ref);
|
21
21
|
for (s in c)
|
22
22
|
u.call(c, s) && !N.hasOwnProperty(s) && (y[s] = c[s]);
|
23
|
-
if (
|
24
|
-
for (s in c =
|
23
|
+
if (p && p.defaultProps)
|
24
|
+
for (s in c = p.defaultProps, c)
|
25
25
|
y[s] === void 0 && (y[s] = c[s]);
|
26
|
-
return { $$typeof: d, type:
|
26
|
+
return { $$typeof: d, type: p, key: g, ref: _, props: y, _owner: x.current };
|
27
27
|
}
|
28
|
-
return K.Fragment = a, K.jsx =
|
28
|
+
return K.Fragment = a, K.jsx = j, K.jsxs = j, K;
|
29
29
|
}
|
30
30
|
var q = {};
|
31
31
|
/**
|
@@ -37,11 +37,11 @@ var q = {};
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
39
39
|
*/
|
40
|
-
var
|
40
|
+
var Le;
|
41
41
|
function yr() {
|
42
|
-
return
|
43
|
-
var o =
|
44
|
-
function
|
42
|
+
return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
|
43
|
+
var o = he, d = Symbol.for("react.element"), a = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), p = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), O = Symbol.iterator, M = "@@iterator";
|
44
|
+
function w(e) {
|
45
45
|
if (e === null || typeof e != "object")
|
46
46
|
return null;
|
47
47
|
var r = O && e[O] || e[M];
|
@@ -57,29 +57,29 @@ function yr() {
|
|
57
57
|
}
|
58
58
|
function V(e, r, n) {
|
59
59
|
{
|
60
|
-
var i = F.ReactDebugCurrentFrame,
|
61
|
-
|
62
|
-
var
|
60
|
+
var i = F.ReactDebugCurrentFrame, v = i.getStackAddendum();
|
61
|
+
v !== "" && (r += "%s", n = n.concat([v]));
|
62
|
+
var h = n.map(function(f) {
|
63
63
|
return String(f);
|
64
64
|
});
|
65
|
-
|
65
|
+
h.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, h);
|
66
66
|
}
|
67
67
|
}
|
68
68
|
var A = !1, re = !1, ne = !1, te = !1, ae = !1, G;
|
69
69
|
G = Symbol.for("react.module.reference");
|
70
70
|
function Y(e) {
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === u || e === N || ae || e === x || e ===
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === u || e === N || ae || e === x || e === m || e === s || te || e === _ || A || re || ne || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === y || e.$$typeof === j || e.$$typeof === p || e.$$typeof === c || // This needs to include all possible module reference object
|
72
72
|
// types supported by any Flight configuration anywhere since
|
73
73
|
// we don't know which Flight build this will end up being used
|
74
74
|
// with.
|
75
75
|
e.$$typeof === G || e.getModuleId !== void 0));
|
76
76
|
}
|
77
|
-
function
|
77
|
+
function b(e, r, n) {
|
78
78
|
var i = e.displayName;
|
79
79
|
if (i)
|
80
80
|
return i;
|
81
|
-
var
|
82
|
-
return
|
81
|
+
var v = r.displayName || r.name || "";
|
82
|
+
return v !== "" ? n + "(" + v + ")" : n;
|
83
83
|
}
|
84
84
|
function S(e) {
|
85
85
|
return e.displayName || "Context";
|
@@ -100,28 +100,28 @@ function yr() {
|
|
100
100
|
return "Profiler";
|
101
101
|
case x:
|
102
102
|
return "StrictMode";
|
103
|
-
case
|
103
|
+
case m:
|
104
104
|
return "Suspense";
|
105
105
|
case s:
|
106
106
|
return "SuspenseList";
|
107
107
|
}
|
108
108
|
if (typeof e == "object")
|
109
109
|
switch (e.$$typeof) {
|
110
|
-
case
|
110
|
+
case p:
|
111
111
|
var r = e;
|
112
112
|
return S(r) + ".Consumer";
|
113
|
-
case
|
113
|
+
case j:
|
114
114
|
var n = e;
|
115
115
|
return S(n._context) + ".Provider";
|
116
116
|
case c:
|
117
|
-
return
|
117
|
+
return b(e, e.render, "ForwardRef");
|
118
118
|
case y:
|
119
119
|
var i = e.displayName || null;
|
120
120
|
return i !== null ? i : E(e.type) || "Memo";
|
121
121
|
case g: {
|
122
|
-
var
|
122
|
+
var v = e, h = v._payload, f = v._init;
|
123
123
|
try {
|
124
|
-
return E(f(
|
124
|
+
return E(f(h));
|
125
125
|
} catch {
|
126
126
|
return null;
|
127
127
|
}
|
@@ -129,18 +129,18 @@ function yr() {
|
|
129
129
|
}
|
130
130
|
return null;
|
131
131
|
}
|
132
|
-
var k = Object.assign, I = 0, X,
|
133
|
-
function
|
132
|
+
var k = Object.assign, I = 0, X, pe, ge, ye, xe, je, we;
|
133
|
+
function Ee() {
|
134
134
|
}
|
135
|
-
|
135
|
+
Ee.__reactDisabledLog = !0;
|
136
136
|
function Be() {
|
137
137
|
{
|
138
138
|
if (I === 0) {
|
139
|
-
X = console.log,
|
139
|
+
X = console.log, pe = console.info, ge = console.warn, ye = console.error, xe = console.group, je = console.groupCollapsed, we = console.groupEnd;
|
140
140
|
var e = {
|
141
141
|
configurable: !0,
|
142
142
|
enumerable: !0,
|
143
|
-
value:
|
143
|
+
value: Ee,
|
144
144
|
writable: !0
|
145
145
|
};
|
146
146
|
Object.defineProperties(console, {
|
@@ -169,22 +169,22 @@ function yr() {
|
|
169
169
|
value: X
|
170
170
|
}),
|
171
171
|
info: k({}, e, {
|
172
|
-
value:
|
172
|
+
value: pe
|
173
173
|
}),
|
174
174
|
warn: k({}, e, {
|
175
|
-
value:
|
175
|
+
value: ge
|
176
176
|
}),
|
177
177
|
error: k({}, e, {
|
178
|
-
value:
|
178
|
+
value: ye
|
179
179
|
}),
|
180
180
|
group: k({}, e, {
|
181
|
-
value:
|
181
|
+
value: xe
|
182
182
|
}),
|
183
183
|
groupCollapsed: k({}, e, {
|
184
|
-
value:
|
184
|
+
value: je
|
185
185
|
}),
|
186
186
|
groupEnd: k({}, e, {
|
187
|
-
value:
|
187
|
+
value: we
|
188
188
|
})
|
189
189
|
});
|
190
190
|
}
|
@@ -197,8 +197,8 @@ function yr() {
|
|
197
197
|
if (oe === void 0)
|
198
198
|
try {
|
199
199
|
throw Error();
|
200
|
-
} catch (
|
201
|
-
var i =
|
200
|
+
} catch (v) {
|
201
|
+
var i = v.stack.trim().match(/\n( *(at )?)/);
|
202
202
|
oe = i && i[1] || "";
|
203
203
|
}
|
204
204
|
return `
|
@@ -210,7 +210,7 @@ function yr() {
|
|
210
210
|
var Je = typeof WeakMap == "function" ? WeakMap : Map;
|
211
211
|
Z = new Je();
|
212
212
|
}
|
213
|
-
function
|
213
|
+
function Re(e, r) {
|
214
214
|
if (!e || se)
|
215
215
|
return "";
|
216
216
|
{
|
@@ -220,10 +220,10 @@ function yr() {
|
|
220
220
|
}
|
221
221
|
var i;
|
222
222
|
se = !0;
|
223
|
-
var
|
223
|
+
var v = Error.prepareStackTrace;
|
224
224
|
Error.prepareStackTrace = void 0;
|
225
|
-
var
|
226
|
-
|
225
|
+
var h;
|
226
|
+
h = ie.current, ie.current = null, Be();
|
227
227
|
try {
|
228
228
|
if (r) {
|
229
229
|
var f = function() {
|
@@ -276,13 +276,13 @@ function yr() {
|
|
276
276
|
}
|
277
277
|
}
|
278
278
|
} finally {
|
279
|
-
se = !1, ie.current =
|
279
|
+
se = !1, ie.current = h, ze(), Error.prepareStackTrace = v;
|
280
280
|
}
|
281
|
-
var B = e ? e.displayName || e.name : "",
|
282
|
-
return typeof e == "function" && Z.set(e,
|
281
|
+
var B = e ? e.displayName || e.name : "", L = B ? H(B) : "";
|
282
|
+
return typeof e == "function" && Z.set(e, L), L;
|
283
283
|
}
|
284
284
|
function Ke(e, r, n) {
|
285
|
-
return
|
285
|
+
return Re(e, !1);
|
286
286
|
}
|
287
287
|
function qe(e) {
|
288
288
|
var r = e.prototype;
|
@@ -292,11 +292,11 @@ function yr() {
|
|
292
292
|
if (e == null)
|
293
293
|
return "";
|
294
294
|
if (typeof e == "function")
|
295
|
-
return
|
295
|
+
return Re(e, qe(e));
|
296
296
|
if (typeof e == "string")
|
297
297
|
return H(e);
|
298
298
|
switch (e) {
|
299
|
-
case
|
299
|
+
case m:
|
300
300
|
return H("Suspense");
|
301
301
|
case s:
|
302
302
|
return H("SuspenseList");
|
@@ -308,28 +308,28 @@ function yr() {
|
|
308
308
|
case y:
|
309
309
|
return Q(e.type, r, n);
|
310
310
|
case g: {
|
311
|
-
var i = e,
|
311
|
+
var i = e, v = i._payload, h = i._init;
|
312
312
|
try {
|
313
|
-
return Q(
|
313
|
+
return Q(h(v), r, n);
|
314
314
|
} catch {
|
315
315
|
}
|
316
316
|
}
|
317
317
|
}
|
318
318
|
return "";
|
319
319
|
}
|
320
|
-
var z = Object.prototype.hasOwnProperty,
|
320
|
+
var z = Object.prototype.hasOwnProperty, _e = {}, Ce = F.ReactDebugCurrentFrame;
|
321
321
|
function ee(e) {
|
322
322
|
if (e) {
|
323
323
|
var r = e._owner, n = Q(e.type, e._source, r ? r.type : null);
|
324
|
-
|
324
|
+
Ce.setExtraStackFrame(n);
|
325
325
|
} else
|
326
|
-
|
326
|
+
Ce.setExtraStackFrame(null);
|
327
327
|
}
|
328
|
-
function Ge(e, r, n, i,
|
328
|
+
function Ge(e, r, n, i, v) {
|
329
329
|
{
|
330
|
-
var
|
330
|
+
var h = Function.call.bind(z);
|
331
331
|
for (var f in e)
|
332
|
-
if (
|
332
|
+
if (h(e, f)) {
|
333
333
|
var l = void 0;
|
334
334
|
try {
|
335
335
|
if (typeof e[f] != "function") {
|
@@ -340,7 +340,7 @@ function yr() {
|
|
340
340
|
} catch (C) {
|
341
341
|
l = C;
|
342
342
|
}
|
343
|
-
l && !(l instanceof Error) && (ee(
|
343
|
+
l && !(l instanceof Error) && (ee(v), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", n, f, typeof l), ee(null)), l instanceof Error && !(l.message in _e) && (_e[l.message] = !0, ee(v), R("Failed %s type: %s", n, l.message), ee(null));
|
344
344
|
}
|
345
345
|
}
|
346
346
|
}
|
@@ -356,24 +356,24 @@ function yr() {
|
|
356
356
|
}
|
357
357
|
function Ze(e) {
|
358
358
|
try {
|
359
|
-
return
|
359
|
+
return Te(e), !1;
|
360
360
|
} catch {
|
361
361
|
return !0;
|
362
362
|
}
|
363
363
|
}
|
364
|
-
function
|
364
|
+
function Te(e) {
|
365
365
|
return "" + e;
|
366
366
|
}
|
367
|
-
function
|
367
|
+
function Ne(e) {
|
368
368
|
if (Ze(e))
|
369
|
-
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)),
|
369
|
+
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), Te(e);
|
370
370
|
}
|
371
371
|
var J = F.ReactCurrentOwner, Qe = {
|
372
372
|
key: !0,
|
373
373
|
ref: !0,
|
374
374
|
__self: !0,
|
375
375
|
__source: !0
|
376
|
-
},
|
376
|
+
}, Se, ke, ue;
|
377
377
|
ue = {};
|
378
378
|
function er(e) {
|
379
379
|
if (z.call(e, "ref")) {
|
@@ -400,7 +400,7 @@ function yr() {
|
|
400
400
|
function tr(e, r) {
|
401
401
|
{
|
402
402
|
var n = function() {
|
403
|
-
|
403
|
+
Se || (Se = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
404
404
|
};
|
405
405
|
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
406
406
|
get: n,
|
@@ -411,7 +411,7 @@ function yr() {
|
|
411
411
|
function ar(e, r) {
|
412
412
|
{
|
413
413
|
var n = function() {
|
414
|
-
|
414
|
+
ke || (ke = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
415
415
|
};
|
416
416
|
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
417
417
|
get: n,
|
@@ -419,7 +419,7 @@ function yr() {
|
|
419
419
|
});
|
420
420
|
}
|
421
421
|
}
|
422
|
-
var ir = function(e, r, n, i,
|
422
|
+
var ir = function(e, r, n, i, v, h, f) {
|
423
423
|
var l = {
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
425
425
|
$$typeof: d,
|
@@ -429,7 +429,7 @@ function yr() {
|
|
429
429
|
ref: n,
|
430
430
|
props: f,
|
431
431
|
// Record the component responsible for creating this element.
|
432
|
-
_owner:
|
432
|
+
_owner: h
|
433
433
|
};
|
434
434
|
return l._store = {}, Object.defineProperty(l._store, "validated", {
|
435
435
|
configurable: !1,
|
@@ -445,41 +445,41 @@ function yr() {
|
|
445
445
|
configurable: !1,
|
446
446
|
enumerable: !1,
|
447
447
|
writable: !1,
|
448
|
-
value:
|
448
|
+
value: v
|
449
449
|
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
450
450
|
};
|
451
|
-
function or(e, r, n, i,
|
451
|
+
function or(e, r, n, i, v) {
|
452
452
|
{
|
453
|
-
var
|
454
|
-
n !== void 0 && (
|
455
|
-
for (
|
456
|
-
z.call(r,
|
453
|
+
var h, f = {}, l = null, P = null;
|
454
|
+
n !== void 0 && (Ne(n), l = "" + n), rr(r) && (Ne(r.key), l = "" + r.key), er(r) && (P = r.ref, nr(r, v));
|
455
|
+
for (h in r)
|
456
|
+
z.call(r, h) && !Qe.hasOwnProperty(h) && (f[h] = r[h]);
|
457
457
|
if (e && e.defaultProps) {
|
458
458
|
var C = e.defaultProps;
|
459
|
-
for (
|
460
|
-
f[
|
459
|
+
for (h in C)
|
460
|
+
f[h] === void 0 && (f[h] = C[h]);
|
461
461
|
}
|
462
462
|
if (l || P) {
|
463
463
|
var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
464
464
|
l && tr(f, T), P && ar(f, T);
|
465
465
|
}
|
466
|
-
return ir(e, l, P,
|
466
|
+
return ir(e, l, P, v, i, J.current, f);
|
467
467
|
}
|
468
468
|
}
|
469
|
-
var ce = F.ReactCurrentOwner,
|
469
|
+
var ce = F.ReactCurrentOwner, Oe = F.ReactDebugCurrentFrame;
|
470
470
|
function U(e) {
|
471
471
|
if (e) {
|
472
472
|
var r = e._owner, n = Q(e.type, e._source, r ? r.type : null);
|
473
|
-
|
473
|
+
Oe.setExtraStackFrame(n);
|
474
474
|
} else
|
475
|
-
|
475
|
+
Oe.setExtraStackFrame(null);
|
476
476
|
}
|
477
477
|
var fe;
|
478
478
|
fe = !1;
|
479
479
|
function de(e) {
|
480
480
|
return typeof e == "object" && e !== null && e.$$typeof === d;
|
481
481
|
}
|
482
|
-
function
|
482
|
+
function Pe() {
|
483
483
|
{
|
484
484
|
if (ce.current) {
|
485
485
|
var e = E(ce.current.type);
|
@@ -502,10 +502,10 @@ Check your code at ` + r + ":" + n + ".";
|
|
502
502
|
return "";
|
503
503
|
}
|
504
504
|
}
|
505
|
-
var
|
505
|
+
var Ie = {};
|
506
506
|
function lr(e) {
|
507
507
|
{
|
508
|
-
var r =
|
508
|
+
var r = Pe();
|
509
509
|
if (!r) {
|
510
510
|
var n = typeof e == "string" ? e : e.displayName || e.name;
|
511
511
|
n && (r = `
|
@@ -515,35 +515,35 @@ Check the top-level render call using <` + n + ">.");
|
|
515
515
|
return r;
|
516
516
|
}
|
517
517
|
}
|
518
|
-
function
|
518
|
+
function $e(e, r) {
|
519
519
|
{
|
520
520
|
if (!e._store || e._store.validated || e.key != null)
|
521
521
|
return;
|
522
522
|
e._store.validated = !0;
|
523
523
|
var n = lr(r);
|
524
|
-
if (
|
524
|
+
if (Ie[n])
|
525
525
|
return;
|
526
|
-
|
526
|
+
Ie[n] = !0;
|
527
527
|
var i = "";
|
528
528
|
e && e._owner && e._owner !== ce.current && (i = " It was passed a child from " + E(e._owner.type) + "."), U(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, i), U(null);
|
529
529
|
}
|
530
530
|
}
|
531
|
-
function
|
531
|
+
function Fe(e, r) {
|
532
532
|
{
|
533
533
|
if (typeof e != "object")
|
534
534
|
return;
|
535
535
|
if (le(e))
|
536
536
|
for (var n = 0; n < e.length; n++) {
|
537
537
|
var i = e[n];
|
538
|
-
de(i) &&
|
538
|
+
de(i) && $e(i, r);
|
539
539
|
}
|
540
540
|
else if (de(e))
|
541
541
|
e._store && (e._store.validated = !0);
|
542
542
|
else if (e) {
|
543
|
-
var
|
544
|
-
if (typeof
|
545
|
-
for (var
|
546
|
-
de(f.value) &&
|
543
|
+
var v = w(e);
|
544
|
+
if (typeof v == "function" && v !== e.entries)
|
545
|
+
for (var h = v.call(e), f; !(f = h.next()).done; )
|
546
|
+
de(f.value) && $e(f.value, r);
|
547
547
|
}
|
548
548
|
}
|
549
549
|
}
|
@@ -566,8 +566,8 @@ Check the top-level render call using <` + n + ">.");
|
|
566
566
|
Ge(n, e.props, "prop", i, e);
|
567
567
|
} else if (r.PropTypes !== void 0 && !fe) {
|
568
568
|
fe = !0;
|
569
|
-
var
|
570
|
-
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
569
|
+
var v = E(r);
|
570
|
+
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
|
571
571
|
}
|
572
572
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
573
573
|
}
|
@@ -584,19 +584,19 @@ Check the top-level render call using <` + n + ">.");
|
|
584
584
|
e.ref !== null && (U(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
|
585
585
|
}
|
586
586
|
}
|
587
|
-
var
|
588
|
-
function
|
587
|
+
var Ae = {};
|
588
|
+
function De(e, r, n, i, v, h) {
|
589
589
|
{
|
590
590
|
var f = Y(e);
|
591
591
|
if (!f) {
|
592
592
|
var l = "";
|
593
593
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
594
|
-
var P = sr(
|
595
|
-
P ? l += P : l +=
|
594
|
+
var P = sr(v);
|
595
|
+
P ? l += P : l += Pe();
|
596
596
|
var C;
|
597
597
|
e === null ? C = "null" : le(e) ? C = "array" : e !== void 0 && e.$$typeof === d ? (C = "<" + (E(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : C = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, l);
|
598
598
|
}
|
599
|
-
var T = or(e, r, n,
|
599
|
+
var T = or(e, r, n, v, h);
|
600
600
|
if (T == null)
|
601
601
|
return T;
|
602
602
|
if (f) {
|
@@ -605,42 +605,42 @@ Check the top-level render call using <` + n + ">.");
|
|
605
605
|
if (i)
|
606
606
|
if (le(D)) {
|
607
607
|
for (var B = 0; B < D.length; B++)
|
608
|
-
|
608
|
+
Fe(D[B], e);
|
609
609
|
Object.freeze && Object.freeze(D);
|
610
610
|
} else
|
611
611
|
R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
612
612
|
else
|
613
|
-
|
613
|
+
Fe(D, e);
|
614
614
|
}
|
615
615
|
if (z.call(r, "key")) {
|
616
|
-
var
|
616
|
+
var L = E(e), $ = Object.keys(r).filter(function(hr) {
|
617
617
|
return hr !== "key";
|
618
618
|
}), ve = $.length > 0 ? "{key: someKey, " + $.join(": ..., ") + ": ...}" : "{key: someKey}";
|
619
|
-
if (!
|
619
|
+
if (!Ae[L + ve]) {
|
620
620
|
var mr = $.length > 0 ? "{" + $.join(": ..., ") + ": ...}" : "{}";
|
621
621
|
R(`A props object containing a "key" prop is being spread into JSX:
|
622
622
|
let props = %s;
|
623
623
|
<%s {...props} />
|
624
624
|
React keys must be passed directly to JSX without using spread:
|
625
625
|
let props = %s;
|
626
|
-
<%s key={someKey} {...props} />`, ve,
|
626
|
+
<%s key={someKey} {...props} />`, ve, L, mr, L), Ae[L + ve] = !0;
|
627
627
|
}
|
628
628
|
}
|
629
629
|
return e === u ? cr(T) : ur(T), T;
|
630
630
|
}
|
631
631
|
}
|
632
632
|
function fr(e, r, n) {
|
633
|
-
return
|
633
|
+
return De(e, r, n, !0);
|
634
634
|
}
|
635
635
|
function dr(e, r, n) {
|
636
|
-
return
|
636
|
+
return De(e, r, n, !1);
|
637
637
|
}
|
638
638
|
var vr = dr, br = fr;
|
639
639
|
q.Fragment = u, q.jsx = vr, q.jsxs = br;
|
640
640
|
}()), q;
|
641
641
|
}
|
642
|
-
process.env.NODE_ENV === "production" ?
|
643
|
-
var t =
|
642
|
+
process.env.NODE_ENV === "production" ? me.exports = gr() : me.exports = yr();
|
643
|
+
var t = me.exports;
|
644
644
|
function Ue(o) {
|
645
645
|
var d, a, u = "";
|
646
646
|
if (typeof o == "string" || typeof o == "number")
|
@@ -660,37 +660,37 @@ function xr() {
|
|
660
660
|
(o = arguments[a]) && (d = Ue(o)) && (u && (u += " "), u += d);
|
661
661
|
return u;
|
662
662
|
}
|
663
|
-
const
|
663
|
+
const We = (o) => typeof o == "boolean" ? `${o}` : o === 0 ? "0" : o, Ve = xr, jr = (o, d) => (a) => {
|
664
664
|
var u;
|
665
665
|
if ((d == null ? void 0 : d.variants) == null)
|
666
|
-
return
|
667
|
-
const { variants: x, defaultVariants: N } = d,
|
668
|
-
const s = a == null ? void 0 : a[
|
666
|
+
return Ve(o, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
667
|
+
const { variants: x, defaultVariants: N } = d, j = Object.keys(x).map((m) => {
|
668
|
+
const s = a == null ? void 0 : a[m], y = N == null ? void 0 : N[m];
|
669
669
|
if (s === null)
|
670
670
|
return null;
|
671
|
-
const g =
|
672
|
-
return x[
|
673
|
-
}),
|
671
|
+
const g = We(s) || We(y);
|
672
|
+
return x[m][g];
|
673
|
+
}), p = a && Object.entries(a).reduce((m, s) => {
|
674
674
|
let [y, g] = s;
|
675
|
-
return g === void 0 || (
|
676
|
-
}, {}), c = d == null || (u = d.compoundVariants) === null || u === void 0 ? void 0 : u.reduce((
|
675
|
+
return g === void 0 || (m[y] = g), m;
|
676
|
+
}, {}), c = d == null || (u = d.compoundVariants) === null || u === void 0 ? void 0 : u.reduce((m, s) => {
|
677
677
|
let { class: y, className: g, ..._ } = s;
|
678
678
|
return Object.entries(_).every((O) => {
|
679
|
-
let [M,
|
680
|
-
return Array.isArray(
|
679
|
+
let [M, w] = O;
|
680
|
+
return Array.isArray(w) ? w.includes({
|
681
681
|
...N,
|
682
|
-
...
|
682
|
+
...p
|
683
683
|
}[M]) : {
|
684
684
|
...N,
|
685
|
-
...
|
686
|
-
}[M] ===
|
685
|
+
...p
|
686
|
+
}[M] === w;
|
687
687
|
}) ? [
|
688
|
-
...
|
688
|
+
...m,
|
689
689
|
y,
|
690
690
|
g
|
691
|
-
] :
|
691
|
+
] : m;
|
692
692
|
}, []);
|
693
|
-
return
|
693
|
+
return Ve(o, j, c, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
694
694
|
};
|
695
695
|
const wr = jr("button", {
|
696
696
|
variants: {
|
@@ -761,17 +761,17 @@ const wr = jr("button", {
|
|
761
761
|
size: u,
|
762
762
|
pill: x,
|
763
763
|
active: N,
|
764
|
-
iconLeft:
|
765
|
-
iconRight:
|
764
|
+
iconLeft: j,
|
765
|
+
iconRight: p,
|
766
766
|
iconLeftJustified: c,
|
767
|
-
iconRightJustified:
|
767
|
+
iconRightJustified: m,
|
768
768
|
iconOnly: s,
|
769
769
|
width: y,
|
770
770
|
children: g,
|
771
771
|
style: _,
|
772
772
|
...O
|
773
773
|
}, M) => {
|
774
|
-
const
|
774
|
+
const w = {
|
775
775
|
..._ || {},
|
776
776
|
...y ? { width: y } : {}
|
777
777
|
};
|
@@ -784,22 +784,22 @@ const wr = jr("button", {
|
|
784
784
|
size: u,
|
785
785
|
pill: x,
|
786
786
|
active: N,
|
787
|
-
iconLeft: !!
|
788
|
-
iconRight: !!
|
787
|
+
iconLeft: !!j,
|
788
|
+
iconRight: !!p,
|
789
789
|
iconLeftJustified: !!c,
|
790
|
-
iconRightJustified: !!
|
790
|
+
iconRightJustified: !!m,
|
791
791
|
iconOnly: !!s,
|
792
792
|
className: o
|
793
793
|
}),
|
794
|
-
style:
|
794
|
+
style: w,
|
795
795
|
ref: M,
|
796
796
|
...O,
|
797
797
|
children: [
|
798
|
-
|
798
|
+
j && /* @__PURE__ */ t.jsx("span", { className: "button-icon-left", children: j }),
|
799
799
|
c && /* @__PURE__ */ t.jsx("span", { className: "button-icon-left", children: c }),
|
800
800
|
s ? /* @__PURE__ */ t.jsx("span", { children: s }) : g,
|
801
|
-
|
802
|
-
|
801
|
+
p && /* @__PURE__ */ t.jsx("span", { className: "button-icon-right", children: p }),
|
802
|
+
m && /* @__PURE__ */ t.jsx("span", { className: "button-icon-right", children: m })
|
803
803
|
]
|
804
804
|
}
|
805
805
|
);
|
@@ -813,25 +813,25 @@ const Rr = ({ className: o }) => /* @__PURE__ */ t.jsx("svg", { width: "24", hei
|
|
813
813
|
submenu: u,
|
814
814
|
collapsed: x,
|
815
815
|
active: N,
|
816
|
-
activePath:
|
817
|
-
isOpen:
|
816
|
+
activePath: j,
|
817
|
+
isOpen: p,
|
818
818
|
onToggle: c,
|
819
|
-
onExpand:
|
819
|
+
onExpand: m,
|
820
820
|
onSetActive: s,
|
821
821
|
isMobile: y = !1
|
822
822
|
}) => {
|
823
|
-
const g = u && u.length > 0, _ = g && u.some((
|
824
|
-
if (
|
823
|
+
const g = u && u.length > 0, _ = g && u.some((w) => w.url === j), O = N || p && g || _ || d === j, M = (w) => {
|
824
|
+
if (w.preventDefault(), y && g) {
|
825
825
|
c();
|
826
826
|
return;
|
827
827
|
}
|
828
|
-
if (s && s(d), x &&
|
829
|
-
|
828
|
+
if (s && s(d), x && m) {
|
829
|
+
m();
|
830
830
|
return;
|
831
831
|
}
|
832
832
|
g && !x && c();
|
833
833
|
};
|
834
|
-
return /* @__PURE__ */ t.jsx("div", { className: `sidebar-item ${
|
834
|
+
return /* @__PURE__ */ t.jsx("div", { className: `sidebar-item ${p ? "open" : ""} `, children: /* @__PURE__ */ t.jsxs("div", { className: `sidebar-item-wrapper ${O && !x ? "active" : ""}`, children: [
|
835
835
|
/* @__PURE__ */ t.jsxs(
|
836
836
|
"a",
|
837
837
|
{
|
@@ -847,15 +847,15 @@ const Rr = ({ className: o }) => /* @__PURE__ */ t.jsx("svg", { width: "24", hei
|
|
847
847
|
]
|
848
848
|
}
|
849
849
|
),
|
850
|
-
g && (!x || y) && /* @__PURE__ */ t.jsx("div", { className: "submenu", children: u.map((
|
851
|
-
const R =
|
850
|
+
g && (!x || y) && /* @__PURE__ */ t.jsx("div", { className: "submenu", children: u.map((w, F) => {
|
851
|
+
const R = w.url === j;
|
852
852
|
return /* @__PURE__ */ t.jsx(
|
853
853
|
"a",
|
854
854
|
{
|
855
|
-
href:
|
855
|
+
href: w.url,
|
856
856
|
className: `submenu-item ${R ? "active-text" : ""}`,
|
857
|
-
onClick: () => s && s(
|
858
|
-
children: /* @__PURE__ */ t.jsx("span", { className: "submenu-label", children:
|
857
|
+
onClick: () => s && s(w.url),
|
858
|
+
children: /* @__PURE__ */ t.jsx("span", { className: "submenu-label", children: w.label })
|
859
859
|
},
|
860
860
|
F
|
861
861
|
);
|
@@ -876,7 +876,7 @@ const Cr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
|
|
876
876
|
/* @__PURE__ */ t.jsx("path", { d: "M10.8383 7.82832C10.3833 8.28332 10.3833 9.01832 10.8383 9.47332L15.365 14L10.8383 18.5267C10.3833 18.9817 10.3833 19.7167 10.8383 20.1717C11.2933 20.6267 12.0283 20.6267 12.4833 20.1717L17.8383 14.8167C18.2933 14.3617 18.2933 13.6267 17.8383 13.1717L12.4833 7.81665C12.04 7.37332 11.2933 7.37332 10.8383 7.82832Z", fill: "#002244" })
|
877
877
|
]
|
878
878
|
}
|
879
|
-
),
|
879
|
+
), Ye = () => /* @__PURE__ */ t.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t.jsxs("g", { className: "hamburger-icon", children: [
|
880
880
|
/* @__PURE__ */ t.jsx(
|
881
881
|
"line",
|
882
882
|
{
|
@@ -923,21 +923,21 @@ const Cr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
|
|
923
923
|
logoutIcon: u,
|
924
924
|
onLogout: x,
|
925
925
|
logoutLabel: N = "Cerrar sesión",
|
926
|
-
collapsed:
|
927
|
-
onToggle:
|
926
|
+
collapsed: j = !1,
|
927
|
+
onToggle: p,
|
928
928
|
activePath: c,
|
929
|
-
onActiveChange:
|
929
|
+
onActiveChange: m
|
930
930
|
}) => {
|
931
|
-
const [s, y] =
|
932
|
-
|
933
|
-
const
|
931
|
+
const [s, y] = W(j), [g, _] = W(null), [O, M] = W(c), [w, F] = W(!1), [R, V] = W(!1), [A, re] = W(!1);
|
932
|
+
be(() => {
|
933
|
+
const b = () => {
|
934
934
|
re(window.innerWidth <= 768);
|
935
935
|
};
|
936
|
-
return
|
937
|
-
window.removeEventListener("resize",
|
936
|
+
return b(), window.addEventListener("resize", b), () => {
|
937
|
+
window.removeEventListener("resize", b);
|
938
938
|
};
|
939
|
-
}, []),
|
940
|
-
var
|
939
|
+
}, []), he.useEffect(() => {
|
940
|
+
var b;
|
941
941
|
if (c) {
|
942
942
|
M(c);
|
943
943
|
const S = a.findIndex(
|
@@ -946,32 +946,32 @@ const Cr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
|
|
946
946
|
return E.url === c || ((k = E.submenu) == null ? void 0 : k.some((I) => I.url === c));
|
947
947
|
}
|
948
948
|
);
|
949
|
-
S !== -1 && ((
|
949
|
+
S !== -1 && ((b = a[S].submenu) != null && b.length ? _(S) : _(null));
|
950
950
|
}
|
951
951
|
}, [c, a]);
|
952
952
|
const ne = () => {
|
953
|
-
y(!s),
|
953
|
+
y(!s), p && p();
|
954
954
|
}, te = () => {
|
955
|
-
var
|
955
|
+
var b;
|
956
956
|
if (s)
|
957
|
-
if (y(!1),
|
957
|
+
if (y(!1), p && p(), O) {
|
958
958
|
const S = a.findIndex(
|
959
959
|
(E) => {
|
960
960
|
var k;
|
961
961
|
return E.url === O || ((k = E.submenu) == null ? void 0 : k.some((I) => I.url === O));
|
962
962
|
}
|
963
963
|
);
|
964
|
-
S !== -1 && ((
|
964
|
+
S !== -1 && ((b = a[S].submenu) != null && b.length) ? _(S) : _(null);
|
965
965
|
} else
|
966
966
|
_(null);
|
967
|
-
}, ae = (
|
968
|
-
_(g ===
|
969
|
-
}, G = (
|
970
|
-
M(
|
967
|
+
}, ae = (b) => {
|
968
|
+
_(g === b ? null : b), A && F(!0);
|
969
|
+
}, G = (b) => {
|
970
|
+
M(b);
|
971
971
|
const S = a.findIndex(
|
972
972
|
(E) => {
|
973
973
|
var k;
|
974
|
-
return E.url ===
|
974
|
+
return E.url === b || ((k = E.submenu) == null ? void 0 : k.some((I) => I.url === b));
|
975
975
|
}
|
976
976
|
);
|
977
977
|
if (S !== -1) {
|
@@ -979,16 +979,16 @@ const Cr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
|
|
979
979
|
E.submenu && E.submenu.length > 0 ? _(S) : _(null);
|
980
980
|
} else
|
981
981
|
_(null);
|
982
|
-
|
982
|
+
m && m(b), A && (a.some(
|
983
983
|
(k) => {
|
984
984
|
var I;
|
985
|
-
return (I = k.submenu) == null ? void 0 : I.some((X) => X.url ===
|
985
|
+
return (I = k.submenu) == null ? void 0 : I.some((X) => X.url === b);
|
986
986
|
}
|
987
987
|
) || (V(!0), setTimeout(() => {
|
988
988
|
F(!1), V(!1);
|
989
989
|
}, 500)));
|
990
990
|
}, Y = () => {
|
991
|
-
|
991
|
+
w ? (V(!0), setTimeout(() => {
|
992
992
|
F(!1), V(!1);
|
993
993
|
}, 500)) : F(!0);
|
994
994
|
};
|
@@ -998,34 +998,34 @@ const Cr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
|
|
998
998
|
/* @__PURE__ */ t.jsx(
|
999
999
|
"button",
|
1000
1000
|
{
|
1001
|
-
className: `mobile-menu-button ${
|
1001
|
+
className: `mobile-menu-button ${w ? "open" : ""}`,
|
1002
1002
|
onClick: Y,
|
1003
1003
|
"aria-label": "Toggle mobile menu",
|
1004
|
-
children: /* @__PURE__ */ t.jsx(
|
1004
|
+
children: /* @__PURE__ */ t.jsx(Ye, {})
|
1005
1005
|
}
|
1006
1006
|
)
|
1007
1007
|
] }),
|
1008
1008
|
!A && /* @__PURE__ */ t.jsx(
|
1009
1009
|
"button",
|
1010
1010
|
{
|
1011
|
-
className: `mobile-menu-button ${
|
1011
|
+
className: `mobile-menu-button ${w ? "open" : ""}`,
|
1012
1012
|
onClick: Y,
|
1013
1013
|
"aria-label": "Toggle mobile menu",
|
1014
1014
|
style: { display: "none" },
|
1015
|
-
children: /* @__PURE__ */ t.jsx(
|
1015
|
+
children: /* @__PURE__ */ t.jsx(Ye, {})
|
1016
1016
|
}
|
1017
1017
|
),
|
1018
|
-
A && (
|
1018
|
+
A && (w || R) && /* @__PURE__ */ t.jsx(
|
1019
1019
|
"div",
|
1020
1020
|
{
|
1021
|
-
className: `sidebar-overlay ${
|
1021
|
+
className: `sidebar-overlay ${w ? "visible" : ""}`,
|
1022
1022
|
onClick: Y
|
1023
1023
|
}
|
1024
1024
|
),
|
1025
|
-
/* @__PURE__ */ t.jsxs("div", { className: `sidebar-wrapper ${
|
1025
|
+
/* @__PURE__ */ t.jsxs("div", { className: `sidebar-wrapper ${w ? "mobile-open" : ""} ${R ? "mobile-closing" : ""}`, children: [
|
1026
1026
|
/* @__PURE__ */ t.jsxs("div", { className: `sidebar ${!A && s ? "sidebar-collapsed" : ""} ${A ? "sidebar-mobile" : ""}`, children: [
|
1027
1027
|
!A && /* @__PURE__ */ t.jsx("div", { className: "sidebar-header", children: /* @__PURE__ */ t.jsx("div", { className: "sidebar-logo", children: s ? /* @__PURE__ */ t.jsx("span", { className: "logo-text", children: d }) : /* @__PURE__ */ t.jsx("span", { className: "logo-text", children: o }) }) }),
|
1028
|
-
A && (
|
1028
|
+
A && (w || R) && /* @__PURE__ */ t.jsxs("div", { className: "mobile-header", children: [
|
1029
1029
|
/* @__PURE__ */ t.jsx("div", { className: "mobile-logo-menu", children: o }),
|
1030
1030
|
/* @__PURE__ */ t.jsx(
|
1031
1031
|
"button",
|
@@ -1037,15 +1037,15 @@ const Cr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
|
|
1037
1037
|
}
|
1038
1038
|
)
|
1039
1039
|
] }),
|
1040
|
-
/* @__PURE__ */ t.jsx("div", { className: "sidebar-menu", children: a.map((
|
1040
|
+
/* @__PURE__ */ t.jsx("div", { className: "sidebar-menu", children: a.map((b, S) => /* @__PURE__ */ t.jsx(
|
1041
1041
|
_r,
|
1042
1042
|
{
|
1043
|
-
icon:
|
1044
|
-
url:
|
1045
|
-
label:
|
1046
|
-
submenu:
|
1043
|
+
icon: b.icon,
|
1044
|
+
url: b.url,
|
1045
|
+
label: b.label,
|
1046
|
+
submenu: b.submenu,
|
1047
1047
|
collapsed: s,
|
1048
|
-
active:
|
1048
|
+
active: b.active || b.url === O,
|
1049
1049
|
activePath: O,
|
1050
1050
|
isOpen: g === S,
|
1051
1051
|
onToggle: () => ae(S),
|
@@ -1080,25 +1080,37 @@ const Sr = ({
|
|
1080
1080
|
position: x = "right",
|
1081
1081
|
size: N = "medium"
|
1082
1082
|
}) => {
|
1083
|
-
const [
|
1084
|
-
|
1085
|
-
|
1086
|
-
},
|
1083
|
+
const [j, p] = W(!1), c = () => {
|
1084
|
+
!j && o && (p(!0), setTimeout(() => {
|
1085
|
+
p(!1), d();
|
1086
|
+
}, 500));
|
1087
1087
|
};
|
1088
|
-
return
|
1089
|
-
|
1090
|
-
},
|
1088
|
+
return be(() => {
|
1089
|
+
o && p(!1);
|
1090
|
+
}, [o]), be(() => (o && !j ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
1091
1091
|
document.body.style.overflow = "";
|
1092
|
-
}), [o,
|
1093
|
-
/* @__PURE__ */ t.jsx(
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1092
|
+
}), [o, j]), !o && !j ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1093
|
+
/* @__PURE__ */ t.jsx(
|
1094
|
+
"div",
|
1095
|
+
{
|
1096
|
+
className: `drawer-overlay ${j ? "fade-out" : "fade-in"}`,
|
1097
|
+
onClick: c
|
1098
|
+
}
|
1099
|
+
),
|
1100
|
+
/* @__PURE__ */ t.jsxs(
|
1101
|
+
"div",
|
1102
|
+
{
|
1103
|
+
className: `drawer drawer-${x} drawer-${N} ${j ? "drawer-closing" : "drawer-open"}`,
|
1104
|
+
children: [
|
1105
|
+
/* @__PURE__ */ t.jsxs("div", { className: "drawer-header", children: [
|
1106
|
+
a && /* @__PURE__ */ t.jsx("h2", { className: "drawer-title", children: a }),
|
1107
|
+
/* @__PURE__ */ t.jsx("button", { className: "drawer-close", onClick: c, children: "✕" })
|
1108
|
+
] }),
|
1109
|
+
/* @__PURE__ */ t.jsx("div", { className: "drawer-content", children: u })
|
1110
|
+
]
|
1111
|
+
}
|
1112
|
+
)
|
1113
|
+
] });
|
1102
1114
|
};
|
1103
1115
|
export {
|
1104
1116
|
Er as Button,
|