levannta-ui 1.0.16 → 1.0.18
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.d.ts +2 -0
- package/dist/index.esm.js +463 -423
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +11 -11
- 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 ge, { forwardRef as
|
2
|
-
var he = { exports: {} },
|
1
|
+
import ge, { forwardRef as yr, useState as V, useEffect as ne, useRef as re } from "react";
|
2
|
+
var he = { exports: {} }, X = {};
|
3
3
|
/**
|
4
4
|
* @license React
|
5
5
|
* react-jsx-runtime.production.min.js
|
@@ -9,25 +9,25 @@ var he = { exports: {} }, J = {};
|
|
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
|
13
|
-
function
|
14
|
-
if (
|
15
|
-
return
|
16
|
-
|
17
|
-
var
|
18
|
-
function C(
|
19
|
-
var
|
20
|
-
|
21
|
-
for (
|
22
|
-
|
23
|
-
if (
|
24
|
-
for (
|
25
|
-
y[
|
26
|
-
return { $$typeof:
|
12
|
+
var Me;
|
13
|
+
function xr() {
|
14
|
+
if (Me)
|
15
|
+
return X;
|
16
|
+
Me = 1;
|
17
|
+
var i = ge, f = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, g = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
|
18
|
+
function C(d, u, p) {
|
19
|
+
var l, y = {}, m = null, x = null;
|
20
|
+
p !== void 0 && (m = "" + p), u.key !== void 0 && (m = "" + u.key), u.ref !== void 0 && (x = u.ref);
|
21
|
+
for (l in u)
|
22
|
+
s.call(u, l) && !_.hasOwnProperty(l) && (y[l] = u[l]);
|
23
|
+
if (d && d.defaultProps)
|
24
|
+
for (l in u = d.defaultProps, u)
|
25
|
+
y[l] === void 0 && (y[l] = u[l]);
|
26
|
+
return { $$typeof: f, type: d, key: m, ref: x, props: y, _owner: g.current };
|
27
27
|
}
|
28
|
-
return
|
28
|
+
return X.Fragment = a, X.jsx = C, X.jsxs = C, X;
|
29
29
|
}
|
30
|
-
var
|
30
|
+
var J = {};
|
31
31
|
/**
|
32
32
|
* @license React
|
33
33
|
* react-jsx-runtime.development.js
|
@@ -38,48 +38,48 @@ var K = {};
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
39
39
|
*/
|
40
40
|
var We;
|
41
|
-
function
|
41
|
+
function jr() {
|
42
42
|
return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
|
43
|
-
var
|
44
|
-
function
|
43
|
+
var i = ge, f = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), S = Symbol.iterator, A = "@@iterator";
|
44
|
+
function b(e) {
|
45
45
|
if (e === null || typeof e != "object")
|
46
46
|
return null;
|
47
|
-
var r = S && e[S] || e[
|
47
|
+
var r = S && e[S] || e[A];
|
48
48
|
return typeof r == "function" ? r : null;
|
49
49
|
}
|
50
|
-
var I =
|
50
|
+
var I = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
51
51
|
function E(e) {
|
52
52
|
{
|
53
|
-
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0),
|
54
|
-
n[
|
55
|
-
|
53
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
54
|
+
n[o - 1] = arguments[o];
|
55
|
+
M("error", e, n);
|
56
56
|
}
|
57
57
|
}
|
58
|
-
function
|
58
|
+
function M(e, r, n) {
|
59
59
|
{
|
60
|
-
var
|
61
|
-
|
62
|
-
var w = n.map(function(
|
63
|
-
return String(
|
60
|
+
var o = I.ReactDebugCurrentFrame, h = o.getStackAddendum();
|
61
|
+
h !== "" && (r += "%s", n = n.concat([h]));
|
62
|
+
var w = n.map(function(v) {
|
63
|
+
return String(v);
|
64
64
|
});
|
65
65
|
w.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, w);
|
66
66
|
}
|
67
67
|
}
|
68
|
-
var P = !1,
|
68
|
+
var P = !1, te = !1, ae = !1, ie = !1, oe = !1, q;
|
69
69
|
q = Symbol.for("react.module.reference");
|
70
|
-
function
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
70
|
+
function Y(e) {
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === _ || oe || e === g || e === p || e === l || ie || e === x || P || te || ae || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === y || e.$$typeof === C || e.$$typeof === d || e.$$typeof === u || // 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 === q || e.getModuleId !== void 0));
|
76
76
|
}
|
77
77
|
function j(e, r, n) {
|
78
|
-
var
|
79
|
-
if (
|
80
|
-
return
|
81
|
-
var
|
82
|
-
return
|
78
|
+
var o = e.displayName;
|
79
|
+
if (o)
|
80
|
+
return o;
|
81
|
+
var h = r.displayName || r.name || "";
|
82
|
+
return h !== "" ? n + "(" + h + ")" : n;
|
83
83
|
}
|
84
84
|
function k(e) {
|
85
85
|
return e.displayName || "Context";
|
@@ -92,36 +92,36 @@ function xr() {
|
|
92
92
|
if (typeof e == "string")
|
93
93
|
return e;
|
94
94
|
switch (e) {
|
95
|
-
case
|
95
|
+
case s:
|
96
96
|
return "Fragment";
|
97
97
|
case a:
|
98
98
|
return "Portal";
|
99
|
-
case
|
99
|
+
case _:
|
100
100
|
return "Profiler";
|
101
|
-
case p:
|
102
|
-
return "StrictMode";
|
103
101
|
case g:
|
102
|
+
return "StrictMode";
|
103
|
+
case p:
|
104
104
|
return "Suspense";
|
105
|
-
case
|
105
|
+
case l:
|
106
106
|
return "SuspenseList";
|
107
107
|
}
|
108
108
|
if (typeof e == "object")
|
109
109
|
switch (e.$$typeof) {
|
110
|
-
case
|
110
|
+
case d:
|
111
111
|
var r = e;
|
112
112
|
return k(r) + ".Consumer";
|
113
113
|
case C:
|
114
114
|
var n = e;
|
115
115
|
return k(n._context) + ".Provider";
|
116
|
-
case
|
116
|
+
case u:
|
117
117
|
return j(e, e.render, "ForwardRef");
|
118
118
|
case y:
|
119
|
-
var
|
120
|
-
return
|
121
|
-
case
|
122
|
-
var
|
119
|
+
var o = e.displayName || null;
|
120
|
+
return o !== null ? o : R(e.type) || "Memo";
|
121
|
+
case m: {
|
122
|
+
var h = e, w = h._payload, v = h._init;
|
123
123
|
try {
|
124
|
-
return R(
|
124
|
+
return R(v(w));
|
125
125
|
} catch {
|
126
126
|
return null;
|
127
127
|
}
|
@@ -129,13 +129,13 @@ function xr() {
|
|
129
129
|
}
|
130
130
|
return null;
|
131
131
|
}
|
132
|
-
var O = Object.assign,
|
132
|
+
var O = Object.assign, D = 0, G, pe, ye, xe, je, we, Ee;
|
133
133
|
function Re() {
|
134
134
|
}
|
135
135
|
Re.__reactDisabledLog = !0;
|
136
|
-
function
|
136
|
+
function Ke() {
|
137
137
|
{
|
138
|
-
if (
|
138
|
+
if (D === 0) {
|
139
139
|
G = console.log, pe = console.info, ye = console.warn, xe = console.error, je = console.group, we = console.groupCollapsed, Ee = console.groupEnd;
|
140
140
|
var e = {
|
141
141
|
configurable: !0,
|
@@ -153,12 +153,12 @@ function xr() {
|
|
153
153
|
groupEnd: e
|
154
154
|
});
|
155
155
|
}
|
156
|
-
|
156
|
+
D++;
|
157
157
|
}
|
158
158
|
}
|
159
159
|
function Xe() {
|
160
160
|
{
|
161
|
-
if (
|
161
|
+
if (D--, D === 0) {
|
162
162
|
var e = {
|
163
163
|
configurable: !0,
|
164
164
|
enumerable: !0,
|
@@ -188,103 +188,103 @@ function xr() {
|
|
188
188
|
})
|
189
189
|
});
|
190
190
|
}
|
191
|
-
|
191
|
+
D < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
192
192
|
}
|
193
193
|
}
|
194
|
-
var
|
194
|
+
var se = I.ReactCurrentDispatcher, le;
|
195
195
|
function H(e, r, n) {
|
196
196
|
{
|
197
|
-
if (
|
197
|
+
if (le === void 0)
|
198
198
|
try {
|
199
199
|
throw Error();
|
200
|
-
} catch (
|
201
|
-
var
|
202
|
-
|
200
|
+
} catch (h) {
|
201
|
+
var o = h.stack.trim().match(/\n( *(at )?)/);
|
202
|
+
le = o && o[1] || "";
|
203
203
|
}
|
204
204
|
return `
|
205
|
-
` +
|
205
|
+
` + le + e;
|
206
206
|
}
|
207
207
|
}
|
208
|
-
var
|
208
|
+
var ue = !1, Z;
|
209
209
|
{
|
210
210
|
var Je = typeof WeakMap == "function" ? WeakMap : Map;
|
211
211
|
Z = new Je();
|
212
212
|
}
|
213
213
|
function _e(e, r) {
|
214
|
-
if (!e ||
|
214
|
+
if (!e || ue)
|
215
215
|
return "";
|
216
216
|
{
|
217
217
|
var n = Z.get(e);
|
218
218
|
if (n !== void 0)
|
219
219
|
return n;
|
220
220
|
}
|
221
|
-
var
|
222
|
-
|
223
|
-
var
|
221
|
+
var o;
|
222
|
+
ue = !0;
|
223
|
+
var h = Error.prepareStackTrace;
|
224
224
|
Error.prepareStackTrace = void 0;
|
225
225
|
var w;
|
226
|
-
w =
|
226
|
+
w = se.current, se.current = null, Ke();
|
227
227
|
try {
|
228
228
|
if (r) {
|
229
|
-
var
|
229
|
+
var v = function() {
|
230
230
|
throw Error();
|
231
231
|
};
|
232
|
-
if (Object.defineProperty(
|
232
|
+
if (Object.defineProperty(v.prototype, "props", {
|
233
233
|
set: function() {
|
234
234
|
throw Error();
|
235
235
|
}
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
237
237
|
try {
|
238
|
-
Reflect.construct(
|
239
|
-
} catch (
|
240
|
-
|
238
|
+
Reflect.construct(v, []);
|
239
|
+
} catch (F) {
|
240
|
+
o = F;
|
241
241
|
}
|
242
|
-
Reflect.construct(e, [],
|
242
|
+
Reflect.construct(e, [], v);
|
243
243
|
} else {
|
244
244
|
try {
|
245
|
-
|
246
|
-
} catch (
|
247
|
-
|
245
|
+
v.call();
|
246
|
+
} catch (F) {
|
247
|
+
o = F;
|
248
248
|
}
|
249
|
-
e.call(
|
249
|
+
e.call(v.prototype);
|
250
250
|
}
|
251
251
|
} else {
|
252
252
|
try {
|
253
253
|
throw Error();
|
254
|
-
} catch (
|
255
|
-
|
254
|
+
} catch (F) {
|
255
|
+
o = F;
|
256
256
|
}
|
257
257
|
e();
|
258
258
|
}
|
259
|
-
} catch (
|
260
|
-
if (
|
261
|
-
for (var
|
262
|
-
`), $ =
|
263
|
-
`),
|
264
|
-
|
265
|
-
for (;
|
266
|
-
if (
|
267
|
-
if (
|
259
|
+
} catch (F) {
|
260
|
+
if (F && o && typeof F.stack == "string") {
|
261
|
+
for (var c = F.stack.split(`
|
262
|
+
`), $ = o.stack.split(`
|
263
|
+
`), T = c.length - 1, N = $.length - 1; T >= 1 && N >= 0 && c[T] !== $[N]; )
|
264
|
+
N--;
|
265
|
+
for (; T >= 1 && N >= 0; T--, N--)
|
266
|
+
if (c[T] !== $[N]) {
|
267
|
+
if (T !== 1 || N !== 1)
|
268
268
|
do
|
269
|
-
if (
|
270
|
-
var
|
271
|
-
` +
|
272
|
-
return e.displayName &&
|
269
|
+
if (T--, N--, N < 0 || c[T] !== $[N]) {
|
270
|
+
var L = `
|
271
|
+
` + c[T].replace(" at new ", " at ");
|
272
|
+
return e.displayName && L.includes("<anonymous>") && (L = L.replace("<anonymous>", e.displayName)), typeof e == "function" && Z.set(e, L), L;
|
273
273
|
}
|
274
|
-
while (
|
274
|
+
while (T >= 1 && N >= 0);
|
275
275
|
break;
|
276
276
|
}
|
277
277
|
}
|
278
278
|
} finally {
|
279
|
-
|
279
|
+
ue = !1, se.current = w, Xe(), Error.prepareStackTrace = h;
|
280
280
|
}
|
281
281
|
var B = e ? e.displayName || e.name : "", W = B ? H(B) : "";
|
282
282
|
return typeof e == "function" && Z.set(e, W), W;
|
283
283
|
}
|
284
|
-
function
|
284
|
+
function qe(e, r, n) {
|
285
285
|
return _e(e, !1);
|
286
286
|
}
|
287
|
-
function
|
287
|
+
function Ge(e) {
|
288
288
|
var r = e.prototype;
|
289
289
|
return !!(r && r.isReactComponent);
|
290
290
|
}
|
@@ -292,32 +292,32 @@ function xr() {
|
|
292
292
|
if (e == null)
|
293
293
|
return "";
|
294
294
|
if (typeof e == "function")
|
295
|
-
return _e(e,
|
295
|
+
return _e(e, Ge(e));
|
296
296
|
if (typeof e == "string")
|
297
297
|
return H(e);
|
298
298
|
switch (e) {
|
299
|
-
case
|
299
|
+
case p:
|
300
300
|
return H("Suspense");
|
301
|
-
case
|
301
|
+
case l:
|
302
302
|
return H("SuspenseList");
|
303
303
|
}
|
304
304
|
if (typeof e == "object")
|
305
305
|
switch (e.$$typeof) {
|
306
|
-
case
|
307
|
-
return
|
306
|
+
case u:
|
307
|
+
return qe(e.render);
|
308
308
|
case y:
|
309
309
|
return Q(e.type, r, n);
|
310
|
-
case
|
311
|
-
var
|
310
|
+
case m: {
|
311
|
+
var o = e, h = o._payload, w = o._init;
|
312
312
|
try {
|
313
|
-
return Q(w(
|
313
|
+
return Q(w(h), r, n);
|
314
314
|
} catch {
|
315
315
|
}
|
316
316
|
}
|
317
317
|
}
|
318
318
|
return "";
|
319
319
|
}
|
320
|
-
var
|
320
|
+
var U = Object.prototype.hasOwnProperty, Ce = {}, Te = I.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);
|
@@ -325,79 +325,79 @@ function xr() {
|
|
325
325
|
} else
|
326
326
|
Te.setExtraStackFrame(null);
|
327
327
|
}
|
328
|
-
function
|
328
|
+
function He(e, r, n, o, h) {
|
329
329
|
{
|
330
|
-
var w = Function.call.bind(
|
331
|
-
for (var
|
332
|
-
if (w(e,
|
333
|
-
var
|
330
|
+
var w = Function.call.bind(U);
|
331
|
+
for (var v in e)
|
332
|
+
if (w(e, v)) {
|
333
|
+
var c = void 0;
|
334
334
|
try {
|
335
|
-
if (typeof e[
|
336
|
-
var $ = Error((
|
335
|
+
if (typeof e[v] != "function") {
|
336
|
+
var $ = Error((o || "React class") + ": " + n + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
337
337
|
throw $.name = "Invariant Violation", $;
|
338
338
|
}
|
339
|
-
|
340
|
-
} catch (
|
341
|
-
|
339
|
+
c = e[v](r, v, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
340
|
+
} catch (T) {
|
341
|
+
c = T;
|
342
342
|
}
|
343
|
-
|
343
|
+
c && !(c instanceof Error) && (ee(h), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", n, v, typeof c), ee(null)), c instanceof Error && !(c.message in Ce) && (Ce[c.message] = !0, ee(h), E("Failed %s type: %s", n, c.message), ee(null));
|
344
344
|
}
|
345
345
|
}
|
346
346
|
}
|
347
|
-
var
|
348
|
-
function
|
349
|
-
return
|
347
|
+
var Ze = Array.isArray;
|
348
|
+
function ce(e) {
|
349
|
+
return Ze(e);
|
350
350
|
}
|
351
|
-
function
|
351
|
+
function Qe(e) {
|
352
352
|
{
|
353
353
|
var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
354
354
|
return n;
|
355
355
|
}
|
356
356
|
}
|
357
|
-
function
|
357
|
+
function er(e) {
|
358
358
|
try {
|
359
|
-
return
|
359
|
+
return Ne(e), !1;
|
360
360
|
} catch {
|
361
361
|
return !0;
|
362
362
|
}
|
363
363
|
}
|
364
|
-
function
|
364
|
+
function Ne(e) {
|
365
365
|
return "" + e;
|
366
366
|
}
|
367
|
-
function
|
368
|
-
if (
|
369
|
-
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
367
|
+
function Se(e) {
|
368
|
+
if (er(e))
|
369
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), Ne(e);
|
370
370
|
}
|
371
|
-
var
|
371
|
+
var K = I.ReactCurrentOwner, rr = {
|
372
372
|
key: !0,
|
373
373
|
ref: !0,
|
374
374
|
__self: !0,
|
375
375
|
__source: !0
|
376
|
-
}, ke, Oe,
|
377
|
-
|
378
|
-
function
|
379
|
-
if (
|
376
|
+
}, ke, Oe, fe;
|
377
|
+
fe = {};
|
378
|
+
function nr(e) {
|
379
|
+
if (U.call(e, "ref")) {
|
380
380
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
381
381
|
if (r && r.isReactWarning)
|
382
382
|
return !1;
|
383
383
|
}
|
384
384
|
return e.ref !== void 0;
|
385
385
|
}
|
386
|
-
function
|
387
|
-
if (
|
386
|
+
function tr(e) {
|
387
|
+
if (U.call(e, "key")) {
|
388
388
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
389
389
|
if (r && r.isReactWarning)
|
390
390
|
return !1;
|
391
391
|
}
|
392
392
|
return e.key !== void 0;
|
393
393
|
}
|
394
|
-
function
|
395
|
-
if (typeof e.ref == "string" &&
|
396
|
-
var n = R(
|
397
|
-
|
394
|
+
function ar(e, r) {
|
395
|
+
if (typeof e.ref == "string" && K.current && r && K.current.stateNode !== r) {
|
396
|
+
var n = R(K.current.type);
|
397
|
+
fe[n] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(K.current.type), e.ref), fe[n] = !0);
|
398
398
|
}
|
399
399
|
}
|
400
|
-
function
|
400
|
+
function ir(e, r) {
|
401
401
|
{
|
402
402
|
var n = function() {
|
403
403
|
ke || (ke = !0, E("%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));
|
@@ -408,7 +408,7 @@ function xr() {
|
|
408
408
|
});
|
409
409
|
}
|
410
410
|
}
|
411
|
-
function
|
411
|
+
function or(e, r) {
|
412
412
|
{
|
413
413
|
var n = function() {
|
414
414
|
Oe || (Oe = !0, E("%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));
|
@@ -419,70 +419,70 @@ function xr() {
|
|
419
419
|
});
|
420
420
|
}
|
421
421
|
}
|
422
|
-
var
|
423
|
-
var
|
422
|
+
var sr = function(e, r, n, o, h, w, v) {
|
423
|
+
var c = {
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
425
|
-
$$typeof:
|
425
|
+
$$typeof: f,
|
426
426
|
// Built-in properties that belong on the element
|
427
427
|
type: e,
|
428
428
|
key: r,
|
429
429
|
ref: n,
|
430
|
-
props:
|
430
|
+
props: v,
|
431
431
|
// Record the component responsible for creating this element.
|
432
432
|
_owner: w
|
433
433
|
};
|
434
|
-
return
|
434
|
+
return c._store = {}, Object.defineProperty(c._store, "validated", {
|
435
435
|
configurable: !1,
|
436
436
|
enumerable: !1,
|
437
437
|
writable: !0,
|
438
438
|
value: !1
|
439
|
-
}), Object.defineProperty(
|
439
|
+
}), Object.defineProperty(c, "_self", {
|
440
440
|
configurable: !1,
|
441
441
|
enumerable: !1,
|
442
442
|
writable: !1,
|
443
|
-
value:
|
444
|
-
}), Object.defineProperty(
|
443
|
+
value: o
|
444
|
+
}), Object.defineProperty(c, "_source", {
|
445
445
|
configurable: !1,
|
446
446
|
enumerable: !1,
|
447
447
|
writable: !1,
|
448
|
-
value:
|
449
|
-
}), Object.freeze && (Object.freeze(
|
448
|
+
value: h
|
449
|
+
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
450
450
|
};
|
451
|
-
function
|
451
|
+
function lr(e, r, n, o, h) {
|
452
452
|
{
|
453
|
-
var w,
|
454
|
-
n !== void 0 && (
|
453
|
+
var w, v = {}, c = null, $ = null;
|
454
|
+
n !== void 0 && (Se(n), c = "" + n), tr(r) && (Se(r.key), c = "" + r.key), nr(r) && ($ = r.ref, ar(r, h));
|
455
455
|
for (w in r)
|
456
|
-
|
456
|
+
U.call(r, w) && !rr.hasOwnProperty(w) && (v[w] = r[w]);
|
457
457
|
if (e && e.defaultProps) {
|
458
|
-
var
|
459
|
-
for (w in
|
460
|
-
|
458
|
+
var T = e.defaultProps;
|
459
|
+
for (w in T)
|
460
|
+
v[w] === void 0 && (v[w] = T[w]);
|
461
461
|
}
|
462
|
-
if (
|
463
|
-
var
|
464
|
-
|
462
|
+
if (c || $) {
|
463
|
+
var N = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
464
|
+
c && ir(v, N), $ && or(v, N);
|
465
465
|
}
|
466
|
-
return
|
466
|
+
return sr(e, c, $, h, o, K.current, v);
|
467
467
|
}
|
468
468
|
}
|
469
|
-
var
|
470
|
-
function
|
469
|
+
var de = I.ReactCurrentOwner, Pe = I.ReactDebugCurrentFrame;
|
470
|
+
function z(e) {
|
471
471
|
if (e) {
|
472
472
|
var r = e._owner, n = Q(e.type, e._source, r ? r.type : null);
|
473
473
|
Pe.setExtraStackFrame(n);
|
474
474
|
} else
|
475
475
|
Pe.setExtraStackFrame(null);
|
476
476
|
}
|
477
|
-
var
|
478
|
-
|
479
|
-
function
|
480
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
477
|
+
var ve;
|
478
|
+
ve = !1;
|
479
|
+
function me(e) {
|
480
|
+
return typeof e == "object" && e !== null && e.$$typeof === f;
|
481
481
|
}
|
482
482
|
function Ie() {
|
483
483
|
{
|
484
|
-
if (
|
485
|
-
var e = R(
|
484
|
+
if (de.current) {
|
485
|
+
var e = R(de.current.type);
|
486
486
|
if (e)
|
487
487
|
return `
|
488
488
|
|
@@ -491,7 +491,7 @@ Check the render method of \`` + e + "`.";
|
|
491
491
|
return "";
|
492
492
|
}
|
493
493
|
}
|
494
|
-
function
|
494
|
+
function ur(e) {
|
495
495
|
{
|
496
496
|
if (e !== void 0) {
|
497
497
|
var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
@@ -503,7 +503,7 @@ Check your code at ` + r + ":" + n + ".";
|
|
503
503
|
}
|
504
504
|
}
|
505
505
|
var $e = {};
|
506
|
-
function
|
506
|
+
function cr(e) {
|
507
507
|
{
|
508
508
|
var r = Ie();
|
509
509
|
if (!r) {
|
@@ -515,39 +515,39 @@ Check the top-level render call using <` + n + ">.");
|
|
515
515
|
return r;
|
516
516
|
}
|
517
517
|
}
|
518
|
-
function
|
518
|
+
function De(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
|
-
var n =
|
523
|
+
var n = cr(r);
|
524
524
|
if ($e[n])
|
525
525
|
return;
|
526
526
|
$e[n] = !0;
|
527
|
-
var
|
528
|
-
e && e._owner && e._owner !==
|
527
|
+
var o = "";
|
528
|
+
e && e._owner && e._owner !== de.current && (o = " It was passed a child from " + R(e._owner.type) + "."), z(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), z(null);
|
529
529
|
}
|
530
530
|
}
|
531
|
-
function
|
531
|
+
function Fe(e, r) {
|
532
532
|
{
|
533
533
|
if (typeof e != "object")
|
534
534
|
return;
|
535
|
-
if (
|
535
|
+
if (ce(e))
|
536
536
|
for (var n = 0; n < e.length; n++) {
|
537
|
-
var
|
538
|
-
|
537
|
+
var o = e[n];
|
538
|
+
me(o) && De(o, r);
|
539
539
|
}
|
540
|
-
else if (
|
540
|
+
else if (me(e))
|
541
541
|
e._store && (e._store.validated = !0);
|
542
542
|
else if (e) {
|
543
|
-
var
|
544
|
-
if (typeof
|
545
|
-
for (var w =
|
546
|
-
|
543
|
+
var h = b(e);
|
544
|
+
if (typeof h == "function" && h !== e.entries)
|
545
|
+
for (var w = h.call(e), v; !(v = w.next()).done; )
|
546
|
+
me(v.value) && De(v.value, r);
|
547
547
|
}
|
548
548
|
}
|
549
549
|
}
|
550
|
-
function
|
550
|
+
function fr(e) {
|
551
551
|
{
|
552
552
|
var r = e.type;
|
553
553
|
if (r == null || typeof r == "string")
|
@@ -555,144 +555,144 @@ Check the top-level render call using <` + n + ">.");
|
|
555
555
|
var n;
|
556
556
|
if (typeof r == "function")
|
557
557
|
n = r.propTypes;
|
558
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
558
|
+
else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
|
559
559
|
// Inner props are checked in the reconciler.
|
560
560
|
r.$$typeof === y))
|
561
561
|
n = r.propTypes;
|
562
562
|
else
|
563
563
|
return;
|
564
564
|
if (n) {
|
565
|
-
var
|
566
|
-
|
567
|
-
} else if (r.PropTypes !== void 0 && !
|
568
|
-
|
569
|
-
var
|
570
|
-
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
565
|
+
var o = R(r);
|
566
|
+
He(n, e.props, "prop", o, e);
|
567
|
+
} else if (r.PropTypes !== void 0 && !ve) {
|
568
|
+
ve = !0;
|
569
|
+
var h = R(r);
|
570
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
|
571
571
|
}
|
572
572
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
573
573
|
}
|
574
574
|
}
|
575
|
-
function
|
575
|
+
function dr(e) {
|
576
576
|
{
|
577
577
|
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
|
578
|
-
var
|
579
|
-
if (
|
580
|
-
|
578
|
+
var o = r[n];
|
579
|
+
if (o !== "children" && o !== "key") {
|
580
|
+
z(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), z(null);
|
581
581
|
break;
|
582
582
|
}
|
583
583
|
}
|
584
|
-
e.ref !== null && (
|
584
|
+
e.ref !== null && (z(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
|
585
585
|
}
|
586
586
|
}
|
587
|
-
var
|
588
|
-
function
|
587
|
+
var Ae = {};
|
588
|
+
function Le(e, r, n, o, h, w) {
|
589
589
|
{
|
590
|
-
var
|
591
|
-
if (!
|
592
|
-
var
|
593
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
594
|
-
var $ =
|
595
|
-
$ ?
|
596
|
-
var
|
597
|
-
e === null ?
|
590
|
+
var v = Y(e);
|
591
|
+
if (!v) {
|
592
|
+
var c = "";
|
593
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (c += " 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 $ = ur(h);
|
595
|
+
$ ? c += $ : c += Ie();
|
596
|
+
var T;
|
597
|
+
e === null ? T = "null" : ce(e) ? T = "array" : e !== void 0 && e.$$typeof === f ? (T = "<" + (R(e.type) || "Unknown") + " />", c = " Did you accidentally export a JSX literal instead of a component?") : T = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, c);
|
598
598
|
}
|
599
|
-
var
|
600
|
-
if (
|
601
|
-
return
|
602
|
-
if (
|
603
|
-
var
|
604
|
-
if (
|
605
|
-
if (
|
606
|
-
if (
|
607
|
-
for (var B = 0; B <
|
608
|
-
|
609
|
-
Object.freeze && Object.freeze(
|
599
|
+
var N = lr(e, r, n, h, w);
|
600
|
+
if (N == null)
|
601
|
+
return N;
|
602
|
+
if (v) {
|
603
|
+
var L = r.children;
|
604
|
+
if (L !== void 0)
|
605
|
+
if (o)
|
606
|
+
if (ce(L)) {
|
607
|
+
for (var B = 0; B < L.length; B++)
|
608
|
+
Fe(L[B], e);
|
609
|
+
Object.freeze && Object.freeze(L);
|
610
610
|
} else
|
611
611
|
E("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(L, e);
|
614
614
|
}
|
615
|
-
if (
|
616
|
-
var W = R(e),
|
617
|
-
return
|
618
|
-
}),
|
619
|
-
if (!
|
620
|
-
var
|
615
|
+
if (U.call(r, "key")) {
|
616
|
+
var W = R(e), F = Object.keys(r).filter(function(pr) {
|
617
|
+
return pr !== "key";
|
618
|
+
}), be = F.length > 0 ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}";
|
619
|
+
if (!Ae[W + be]) {
|
620
|
+
var gr = F.length > 0 ? "{" + F.join(": ..., ") + ": ...}" : "{}";
|
621
621
|
E(`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} />`,
|
626
|
+
<%s key={someKey} {...props} />`, be, W, gr, W), Ae[W + be] = !0;
|
627
627
|
}
|
628
628
|
}
|
629
|
-
return e ===
|
629
|
+
return e === s ? dr(N) : fr(N), N;
|
630
630
|
}
|
631
631
|
}
|
632
|
-
function dr(e, r, n) {
|
633
|
-
return Me(e, r, n, !0);
|
634
|
-
}
|
635
632
|
function vr(e, r, n) {
|
636
|
-
return
|
633
|
+
return Le(e, r, n, !0);
|
637
634
|
}
|
638
|
-
|
639
|
-
|
640
|
-
|
635
|
+
function mr(e, r, n) {
|
636
|
+
return Le(e, r, n, !1);
|
637
|
+
}
|
638
|
+
var br = mr, hr = vr;
|
639
|
+
J.Fragment = s, J.jsx = br, J.jsxs = hr;
|
640
|
+
}()), J;
|
641
641
|
}
|
642
|
-
process.env.NODE_ENV === "production" ? he.exports =
|
642
|
+
process.env.NODE_ENV === "production" ? he.exports = xr() : he.exports = jr();
|
643
643
|
var t = he.exports;
|
644
|
-
function Be(
|
645
|
-
var
|
646
|
-
if (typeof
|
647
|
-
|
648
|
-
else if (typeof
|
649
|
-
if (Array.isArray(
|
650
|
-
var
|
651
|
-
for (
|
652
|
-
|
644
|
+
function Be(i) {
|
645
|
+
var f, a, s = "";
|
646
|
+
if (typeof i == "string" || typeof i == "number")
|
647
|
+
s += i;
|
648
|
+
else if (typeof i == "object")
|
649
|
+
if (Array.isArray(i)) {
|
650
|
+
var g = i.length;
|
651
|
+
for (f = 0; f < g; f++)
|
652
|
+
i[f] && (a = Be(i[f])) && (s && (s += " "), s += a);
|
653
653
|
} else
|
654
|
-
for (a in
|
655
|
-
|
656
|
-
return
|
654
|
+
for (a in i)
|
655
|
+
i[a] && (s && (s += " "), s += a);
|
656
|
+
return s;
|
657
657
|
}
|
658
|
-
function
|
659
|
-
for (var
|
660
|
-
(
|
661
|
-
return
|
658
|
+
function wr() {
|
659
|
+
for (var i, f, a = 0, s = "", g = arguments.length; a < g; a++)
|
660
|
+
(i = arguments[a]) && (f = Be(i)) && (s && (s += " "), s += f);
|
661
|
+
return s;
|
662
662
|
}
|
663
|
-
const
|
664
|
-
var
|
665
|
-
if ((
|
666
|
-
return
|
667
|
-
const { variants:
|
668
|
-
const
|
669
|
-
if (
|
663
|
+
const Ve = (i) => typeof i == "boolean" ? `${i}` : i === 0 ? "0" : i, Ye = wr, Ue = (i, f) => (a) => {
|
664
|
+
var s;
|
665
|
+
if ((f == null ? void 0 : f.variants) == null)
|
666
|
+
return Ye(i, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
667
|
+
const { variants: g, defaultVariants: _ } = f, C = Object.keys(g).map((p) => {
|
668
|
+
const l = a == null ? void 0 : a[p], y = _ == null ? void 0 : _[p];
|
669
|
+
if (l === null)
|
670
670
|
return null;
|
671
|
-
const
|
672
|
-
return p
|
673
|
-
}),
|
674
|
-
let [y,
|
675
|
-
return
|
676
|
-
}, {}),
|
677
|
-
let { class: y, className:
|
671
|
+
const m = Ve(l) || Ve(y);
|
672
|
+
return g[p][m];
|
673
|
+
}), d = a && Object.entries(a).reduce((p, l) => {
|
674
|
+
let [y, m] = l;
|
675
|
+
return m === void 0 || (p[y] = m), p;
|
676
|
+
}, {}), u = f == null || (s = f.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((p, l) => {
|
677
|
+
let { class: y, className: m, ...x } = l;
|
678
678
|
return Object.entries(x).every((S) => {
|
679
|
-
let [
|
680
|
-
return Array.isArray(
|
681
|
-
...
|
682
|
-
...
|
683
|
-
}[
|
684
|
-
...
|
685
|
-
...
|
686
|
-
}[
|
679
|
+
let [A, b] = S;
|
680
|
+
return Array.isArray(b) ? b.includes({
|
681
|
+
..._,
|
682
|
+
...d
|
683
|
+
}[A]) : {
|
684
|
+
..._,
|
685
|
+
...d
|
686
|
+
}[A] === b;
|
687
687
|
}) ? [
|
688
|
-
...
|
688
|
+
...p,
|
689
689
|
y,
|
690
|
-
|
691
|
-
] :
|
690
|
+
m
|
691
|
+
] : p;
|
692
692
|
}, []);
|
693
|
-
return
|
693
|
+
return Ye(i, C, u, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
694
694
|
};
|
695
|
-
const Er =
|
695
|
+
const Er = Ue("button", {
|
696
696
|
variants: {
|
697
697
|
variant: {
|
698
698
|
outlined: "button-outlined",
|
@@ -753,25 +753,25 @@ const Er = wr("button", {
|
|
753
753
|
{ variant: "icon", color: "error", className: "button-icon-error" },
|
754
754
|
{ variant: "icon", color: "clear", className: "button-icon-clear" }
|
755
755
|
]
|
756
|
-
}), Rr =
|
756
|
+
}), Rr = yr(
|
757
757
|
({
|
758
|
-
className:
|
759
|
-
variant:
|
758
|
+
className: i,
|
759
|
+
variant: f,
|
760
760
|
color: a,
|
761
|
-
size:
|
762
|
-
pill:
|
763
|
-
active:
|
761
|
+
size: s,
|
762
|
+
pill: g,
|
763
|
+
active: _,
|
764
764
|
iconLeft: C,
|
765
|
-
iconRight:
|
766
|
-
iconLeftJustified:
|
767
|
-
iconRightJustified:
|
768
|
-
iconOnly:
|
765
|
+
iconRight: d,
|
766
|
+
iconLeftJustified: u,
|
767
|
+
iconRightJustified: p,
|
768
|
+
iconOnly: l,
|
769
769
|
width: y,
|
770
|
-
children:
|
770
|
+
children: m,
|
771
771
|
style: x,
|
772
772
|
...S
|
773
|
-
},
|
774
|
-
const
|
773
|
+
}, A) => {
|
774
|
+
const b = {
|
775
775
|
...x || {},
|
776
776
|
...y ? { width: y } : {}
|
777
777
|
};
|
@@ -779,90 +779,90 @@ const Er = wr("button", {
|
|
779
779
|
"button",
|
780
780
|
{
|
781
781
|
className: Er({
|
782
|
-
variant:
|
782
|
+
variant: f,
|
783
783
|
color: a,
|
784
|
-
size:
|
785
|
-
pill:
|
786
|
-
active:
|
784
|
+
size: s,
|
785
|
+
pill: g,
|
786
|
+
active: _,
|
787
787
|
iconLeft: !!C,
|
788
|
-
iconRight: !!
|
789
|
-
iconLeftJustified: !!
|
790
|
-
iconRightJustified: !!
|
791
|
-
iconOnly: !!
|
792
|
-
className:
|
788
|
+
iconRight: !!d,
|
789
|
+
iconLeftJustified: !!u,
|
790
|
+
iconRightJustified: !!p,
|
791
|
+
iconOnly: !!l,
|
792
|
+
className: i
|
793
793
|
}),
|
794
|
-
style:
|
795
|
-
ref:
|
794
|
+
style: b,
|
795
|
+
ref: A,
|
796
796
|
...S,
|
797
797
|
children: [
|
798
798
|
C && /* @__PURE__ */ t.jsx("span", { className: "button-icon-left", children: C }),
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
799
|
+
u && /* @__PURE__ */ t.jsx("span", { className: "button-icon-left", children: u }),
|
800
|
+
l ? /* @__PURE__ */ t.jsx("span", { children: l }) : m,
|
801
|
+
d && /* @__PURE__ */ t.jsx("span", { className: "button-icon-right", children: d }),
|
802
|
+
p && /* @__PURE__ */ t.jsx("span", { className: "button-icon-right", children: p })
|
803
803
|
]
|
804
804
|
}
|
805
805
|
);
|
806
806
|
}
|
807
807
|
);
|
808
808
|
Rr.displayName = "Button";
|
809
|
-
const _r = ({ className:
|
810
|
-
icon:
|
811
|
-
url:
|
809
|
+
const _r = ({ className: i }) => /* @__PURE__ */ t.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: i, children: /* @__PURE__ */ t.jsx("path", { d: "M8.12 9.29006L12 13.1701L15.88 9.29006C16.27 8.90006 16.9 8.90006 17.29 9.29006C17.68 9.68006 17.68 10.3101 17.29 10.7001L12.7 15.2901C12.31 15.6801 11.68 15.6801 11.29 15.2901L6.7 10.7001C6.31 10.3101 6.31 9.68006 6.7 9.29006C7.09 8.91006 7.73 8.90006 8.12 9.29006Z", fill: "#F9FAFB" }) }), Cr = ({
|
810
|
+
icon: i,
|
811
|
+
url: f,
|
812
812
|
label: a,
|
813
|
-
submenu:
|
814
|
-
collapsed:
|
815
|
-
active:
|
813
|
+
submenu: s,
|
814
|
+
collapsed: g,
|
815
|
+
active: _,
|
816
816
|
activePath: C,
|
817
|
-
isOpen:
|
818
|
-
onToggle:
|
819
|
-
onExpand:
|
820
|
-
onSetActive:
|
817
|
+
isOpen: d,
|
818
|
+
onToggle: u,
|
819
|
+
onExpand: p,
|
820
|
+
onSetActive: l,
|
821
821
|
isMobile: y = !1
|
822
822
|
}) => {
|
823
|
-
const
|
824
|
-
if (
|
825
|
-
|
823
|
+
const m = s && s.length > 0, x = m && s.some((b) => b.url === C), S = _ || d && m || x || f === C, A = (b) => {
|
824
|
+
if (b.preventDefault(), y && m) {
|
825
|
+
u();
|
826
826
|
return;
|
827
827
|
}
|
828
|
-
if (
|
829
|
-
|
828
|
+
if (l && l(f), g && p) {
|
829
|
+
p();
|
830
830
|
return;
|
831
831
|
}
|
832
|
-
|
832
|
+
m && !g && u();
|
833
833
|
};
|
834
|
-
return /* @__PURE__ */ t.jsx("div", { className: `sidebar-item ${
|
834
|
+
return /* @__PURE__ */ t.jsx("div", { className: `sidebar-item ${d ? "open" : ""} `, children: /* @__PURE__ */ t.jsxs("div", { className: `sidebar-item-wrapper ${S && !g ? "active" : ""}`, children: [
|
835
835
|
/* @__PURE__ */ t.jsxs(
|
836
836
|
"a",
|
837
837
|
{
|
838
|
-
href:
|
838
|
+
href: f,
|
839
839
|
className: `sidebar-link sidebar-collapsed ${S ? "active-text" : ""}`,
|
840
|
-
onClick:
|
840
|
+
onClick: A,
|
841
841
|
children: [
|
842
|
-
/* @__PURE__ */ t.jsx("div", { className: `sidebar-icon ${S ? "active-text" : ""}`, children:
|
843
|
-
(!
|
842
|
+
/* @__PURE__ */ t.jsx("div", { className: `sidebar-icon ${S ? "active-text" : ""}`, children: i }),
|
843
|
+
(!g || y) && /* @__PURE__ */ t.jsxs("div", { className: "sidebar-content", children: [
|
844
844
|
/* @__PURE__ */ t.jsx("span", { className: "sidebar-label", children: a }),
|
845
|
-
|
845
|
+
m && /* @__PURE__ */ t.jsx("span", { className: "submenu-arrow", children: /* @__PURE__ */ t.jsx(_r, { className: `${S ? "active-text" : ""}` }) })
|
846
846
|
] })
|
847
847
|
]
|
848
848
|
}
|
849
849
|
),
|
850
|
-
|
851
|
-
const E =
|
850
|
+
m && (!g || y) && /* @__PURE__ */ t.jsx("div", { className: "submenu", children: s.map((b, I) => {
|
851
|
+
const E = b.url === C;
|
852
852
|
return /* @__PURE__ */ t.jsx(
|
853
853
|
"a",
|
854
854
|
{
|
855
|
-
href:
|
855
|
+
href: b.url,
|
856
856
|
className: `submenu-item ${E ? "active-text" : ""}`,
|
857
|
-
onClick: () =>
|
858
|
-
children: /* @__PURE__ */ t.jsx("span", { className: "submenu-label", children:
|
857
|
+
onClick: () => l && l(b.url),
|
858
|
+
children: /* @__PURE__ */ t.jsx("span", { className: "submenu-label", children: b.label })
|
859
859
|
},
|
860
860
|
I
|
861
861
|
);
|
862
862
|
}) })
|
863
863
|
] }) });
|
864
864
|
};
|
865
|
-
const Tr = ({ className:
|
865
|
+
const Tr = ({ className: i }) => /* @__PURE__ */ t.jsxs(
|
866
866
|
"svg",
|
867
867
|
{
|
868
868
|
width: "28",
|
@@ -870,13 +870,13 @@ const Tr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
|
|
870
870
|
viewBox: "0 0 28 28",
|
871
871
|
fill: "none",
|
872
872
|
xmlns: "http://www.w3.org/2000/svg",
|
873
|
-
className:
|
873
|
+
className: i,
|
874
874
|
children: [
|
875
875
|
/* @__PURE__ */ t.jsx("circle", { cx: "14", cy: "14", r: "14", fill: "#00F7AA" }),
|
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
|
+
), ze = () => /* @__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
|
{
|
@@ -916,62 +916,62 @@ const Tr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
|
|
916
916
|
className: "hamburger-line bottom-line"
|
917
917
|
}
|
918
918
|
)
|
919
|
-
] }) }),
|
920
|
-
logo:
|
921
|
-
logoCollapsed:
|
919
|
+
] }) }), kr = ({
|
920
|
+
logo: i,
|
921
|
+
logoCollapsed: f,
|
922
922
|
items: a,
|
923
|
-
logoutIcon:
|
924
|
-
onLogout:
|
925
|
-
logoutLabel:
|
923
|
+
logoutIcon: s,
|
924
|
+
onLogout: g,
|
925
|
+
logoutLabel: _ = "Cerrar sesión",
|
926
926
|
collapsed: C = !1,
|
927
|
-
onToggle:
|
928
|
-
activePath:
|
929
|
-
onActiveChange:
|
927
|
+
onToggle: d,
|
928
|
+
activePath: u,
|
929
|
+
onActiveChange: p
|
930
930
|
}) => {
|
931
|
-
const [
|
932
|
-
|
931
|
+
const [l, y] = V(C), [m, x] = V(null), [S, A] = V(u), [b, I] = V(!1), [E, M] = V(!1), [P, te] = V(!1);
|
932
|
+
ne(() => {
|
933
933
|
const j = () => {
|
934
|
-
|
934
|
+
te(window.innerWidth <= 768);
|
935
935
|
};
|
936
936
|
return j(), window.addEventListener("resize", j), () => {
|
937
937
|
window.removeEventListener("resize", j);
|
938
938
|
};
|
939
939
|
}, []), ge.useEffect(() => {
|
940
940
|
var j;
|
941
|
-
if (
|
942
|
-
|
941
|
+
if (u) {
|
942
|
+
A(u);
|
943
943
|
const k = a.findIndex(
|
944
944
|
(R) => {
|
945
945
|
var O;
|
946
|
-
return R.url ===
|
946
|
+
return R.url === u || ((O = R.submenu) == null ? void 0 : O.some((D) => D.url === u));
|
947
947
|
}
|
948
948
|
);
|
949
949
|
k !== -1 && ((j = a[k].submenu) != null && j.length ? x(k) : x(null));
|
950
950
|
}
|
951
|
-
}, [
|
952
|
-
const
|
953
|
-
y(!
|
954
|
-
},
|
951
|
+
}, [u, a]);
|
952
|
+
const ae = () => {
|
953
|
+
y(!l), d && d();
|
954
|
+
}, ie = () => {
|
955
955
|
var j;
|
956
|
-
if (
|
957
|
-
if (y(!1),
|
956
|
+
if (l)
|
957
|
+
if (y(!1), d && d(), S) {
|
958
958
|
const k = a.findIndex(
|
959
959
|
(R) => {
|
960
960
|
var O;
|
961
|
-
return R.url === S || ((O = R.submenu) == null ? void 0 : O.some((
|
961
|
+
return R.url === S || ((O = R.submenu) == null ? void 0 : O.some((D) => D.url === S));
|
962
962
|
}
|
963
963
|
);
|
964
964
|
k !== -1 && ((j = a[k].submenu) != null && j.length) ? x(k) : x(null);
|
965
965
|
} else
|
966
966
|
x(null);
|
967
|
-
},
|
968
|
-
x(
|
967
|
+
}, oe = (j) => {
|
968
|
+
x(m === j ? null : j), P && I(!0);
|
969
969
|
}, q = (j) => {
|
970
|
-
|
970
|
+
A(j);
|
971
971
|
const k = a.findIndex(
|
972
972
|
(R) => {
|
973
973
|
var O;
|
974
|
-
return R.url === j || ((O = R.submenu) == null ? void 0 : O.some((
|
974
|
+
return R.url === j || ((O = R.submenu) == null ? void 0 : O.some((D) => D.url === j));
|
975
975
|
}
|
976
976
|
);
|
977
977
|
if (k !== -1) {
|
@@ -979,59 +979,59 @@ const Tr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
|
|
979
979
|
R.submenu && R.submenu.length > 0 ? x(k) : x(null);
|
980
980
|
} else
|
981
981
|
x(null);
|
982
|
-
|
982
|
+
p && p(j), P && (a.some(
|
983
983
|
(O) => {
|
984
|
-
var
|
985
|
-
return (
|
984
|
+
var D;
|
985
|
+
return (D = O.submenu) == null ? void 0 : D.some((G) => G.url === j);
|
986
986
|
}
|
987
|
-
) || (
|
988
|
-
I(!1),
|
987
|
+
) || (M(!0), setTimeout(() => {
|
988
|
+
I(!1), M(!1);
|
989
989
|
}, 500)));
|
990
|
-
},
|
991
|
-
|
992
|
-
I(!1),
|
990
|
+
}, Y = () => {
|
991
|
+
b ? (M(!0), setTimeout(() => {
|
992
|
+
I(!1), M(!1);
|
993
993
|
}, 500)) : I(!0);
|
994
994
|
};
|
995
995
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
996
996
|
P && /* @__PURE__ */ t.jsxs("div", { className: "mobile-navbar", children: [
|
997
|
-
/* @__PURE__ */ t.jsx("div", { className: "mobile-logo", children:
|
997
|
+
/* @__PURE__ */ t.jsx("div", { className: "mobile-logo", children: i }),
|
998
998
|
/* @__PURE__ */ t.jsx(
|
999
999
|
"button",
|
1000
1000
|
{
|
1001
|
-
className: `mobile-menu-button ${
|
1002
|
-
onClick:
|
1001
|
+
className: `mobile-menu-button ${b ? "open" : ""}`,
|
1002
|
+
onClick: Y,
|
1003
1003
|
"aria-label": "Toggle mobile menu",
|
1004
|
-
children: /* @__PURE__ */ t.jsx(
|
1004
|
+
children: /* @__PURE__ */ t.jsx(ze, {})
|
1005
1005
|
}
|
1006
1006
|
)
|
1007
1007
|
] }),
|
1008
1008
|
!P && /* @__PURE__ */ t.jsx(
|
1009
1009
|
"button",
|
1010
1010
|
{
|
1011
|
-
className: `mobile-menu-button ${
|
1012
|
-
onClick:
|
1011
|
+
className: `mobile-menu-button ${b ? "open" : ""}`,
|
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(ze, {})
|
1016
1016
|
}
|
1017
1017
|
),
|
1018
|
-
P && (
|
1018
|
+
P && (b || E) && /* @__PURE__ */ t.jsx(
|
1019
1019
|
"div",
|
1020
1020
|
{
|
1021
|
-
className: `sidebar-overlay ${
|
1022
|
-
onClick:
|
1021
|
+
className: `sidebar-overlay ${b ? "visible" : ""}`,
|
1022
|
+
onClick: Y
|
1023
1023
|
}
|
1024
1024
|
),
|
1025
|
-
/* @__PURE__ */ t.jsxs("div", { className: `sidebar-wrapper ${
|
1026
|
-
/* @__PURE__ */ t.jsxs("div", { className: `sidebar ${!P &&
|
1027
|
-
!P && /* @__PURE__ */ t.jsx("div", { className: "sidebar-header", children: /* @__PURE__ */ t.jsx("div", { className: "sidebar-logo", children:
|
1028
|
-
P && (
|
1029
|
-
/* @__PURE__ */ t.jsx("div", { className: "mobile-logo-menu", children:
|
1025
|
+
/* @__PURE__ */ t.jsxs("div", { className: `sidebar-wrapper ${b ? "mobile-open" : ""} ${E ? "mobile-closing" : ""}`, children: [
|
1026
|
+
/* @__PURE__ */ t.jsxs("div", { className: `sidebar ${!P && l ? "sidebar-collapsed" : ""} ${P ? "sidebar-mobile" : ""}`, children: [
|
1027
|
+
!P && /* @__PURE__ */ t.jsx("div", { className: "sidebar-header", children: /* @__PURE__ */ t.jsx("div", { className: "sidebar-logo", children: l ? /* @__PURE__ */ t.jsx("span", { className: "logo-text", children: f }) : /* @__PURE__ */ t.jsx("span", { className: "logo-text", children: i }) }) }),
|
1028
|
+
P && (b || E) && /* @__PURE__ */ t.jsxs("div", { className: "mobile-header", children: [
|
1029
|
+
/* @__PURE__ */ t.jsx("div", { className: "mobile-logo-menu", children: i }),
|
1030
1030
|
/* @__PURE__ */ t.jsx(
|
1031
1031
|
"button",
|
1032
1032
|
{
|
1033
1033
|
className: "mobile-close-button",
|
1034
|
-
onClick:
|
1034
|
+
onClick: Y,
|
1035
1035
|
"aria-label": "Close menu",
|
1036
1036
|
children: "×"
|
1037
1037
|
}
|
@@ -1044,27 +1044,27 @@ const Tr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
|
|
1044
1044
|
url: j.url,
|
1045
1045
|
label: j.label,
|
1046
1046
|
submenu: j.submenu,
|
1047
|
-
collapsed:
|
1047
|
+
collapsed: l,
|
1048
1048
|
active: j.active || j.url === S,
|
1049
1049
|
activePath: S,
|
1050
|
-
isOpen:
|
1051
|
-
onToggle: () =>
|
1052
|
-
onExpand:
|
1050
|
+
isOpen: m === k,
|
1051
|
+
onToggle: () => oe(k),
|
1052
|
+
onExpand: ie,
|
1053
1053
|
onSetActive: q,
|
1054
1054
|
isMobile: P
|
1055
1055
|
},
|
1056
1056
|
k
|
1057
1057
|
)) }),
|
1058
|
-
|
1059
|
-
|
1060
|
-
!
|
1058
|
+
g && /* @__PURE__ */ t.jsx("div", { className: "sidebar-footer", children: /* @__PURE__ */ t.jsxs("button", { className: "logout-button", onClick: g, children: [
|
1059
|
+
s,
|
1060
|
+
!l && /* @__PURE__ */ t.jsx("span", { children: _ })
|
1061
1061
|
] }) })
|
1062
1062
|
] }),
|
1063
1063
|
!P && /* @__PURE__ */ t.jsx(
|
1064
1064
|
"button",
|
1065
1065
|
{
|
1066
|
-
className: `sidebar-toggle-icon${
|
1067
|
-
onClick:
|
1066
|
+
className: `sidebar-toggle-icon${l ? " collapsed" : ""}`,
|
1067
|
+
onClick: ae,
|
1068
1068
|
"aria-label": "Toggle sidebar",
|
1069
1069
|
children: /* @__PURE__ */ t.jsx(Tr, {})
|
1070
1070
|
}
|
@@ -1072,46 +1072,46 @@ const Tr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
|
|
1072
1072
|
] })
|
1073
1073
|
] });
|
1074
1074
|
};
|
1075
|
-
const
|
1076
|
-
isOpen:
|
1077
|
-
onClose:
|
1075
|
+
const Or = ({
|
1076
|
+
isOpen: i,
|
1077
|
+
onClose: f,
|
1078
1078
|
title: a = "",
|
1079
|
-
children:
|
1080
|
-
position:
|
1081
|
-
size:
|
1079
|
+
children: s,
|
1080
|
+
position: g = "right",
|
1081
|
+
size: _ = "medium",
|
1082
1082
|
enableSwipeToClose: C = !0
|
1083
1083
|
}) => {
|
1084
|
-
const [
|
1085
|
-
!
|
1086
|
-
|
1084
|
+
const [d, u] = V(!1), p = re(null), l = re(0), y = re(0), m = 50, x = () => {
|
1085
|
+
!d && i && (u(!0), setTimeout(() => {
|
1086
|
+
u(!1), f();
|
1087
1087
|
}, 500));
|
1088
|
-
}, S = (
|
1089
|
-
C && (
|
1090
|
-
},
|
1091
|
-
if (!C || !
|
1088
|
+
}, S = (b) => {
|
1089
|
+
C && (l.current = b.touches[0].clientX, y.current = b.touches[0].clientY);
|
1090
|
+
}, A = (b) => {
|
1091
|
+
if (!C || !b.changedTouches[0])
|
1092
1092
|
return;
|
1093
|
-
const I =
|
1094
|
-
(
|
1093
|
+
const I = b.changedTouches[0].clientX, E = b.changedTouches[0].clientY, M = I - l.current, P = E - y.current;
|
1094
|
+
(g === "right" && M > m || g === "left" && M < -m || g === "top" && P < -m || g === "bottom" && P > m) && x();
|
1095
1095
|
};
|
1096
|
-
return
|
1097
|
-
|
1098
|
-
}, [
|
1096
|
+
return ne(() => {
|
1097
|
+
i && u(!1);
|
1098
|
+
}, [i]), ne(() => (i && !d ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
1099
1099
|
document.body.style.overflow = "";
|
1100
|
-
}), [
|
1100
|
+
}), [i, d]), !i && !d ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1101
1101
|
/* @__PURE__ */ t.jsx(
|
1102
1102
|
"div",
|
1103
1103
|
{
|
1104
|
-
className: `drawer-overlay ${
|
1104
|
+
className: `drawer-overlay ${d ? "fade-out" : "fade-in"}`,
|
1105
1105
|
onClick: x
|
1106
1106
|
}
|
1107
1107
|
),
|
1108
1108
|
/* @__PURE__ */ t.jsxs(
|
1109
1109
|
"div",
|
1110
1110
|
{
|
1111
|
-
ref:
|
1112
|
-
className: `drawer drawer-${
|
1111
|
+
ref: p,
|
1112
|
+
className: `drawer drawer-${g} drawer-${_} ${d ? "drawer-closing" : "drawer-open"}`,
|
1113
1113
|
onTouchStart: S,
|
1114
|
-
onTouchEnd:
|
1114
|
+
onTouchEnd: A,
|
1115
1115
|
children: [
|
1116
1116
|
/* @__PURE__ */ t.jsxs("div", { className: `drawer-header ${a ? "has-title" : "no-title"}`, children: [
|
1117
1117
|
a && /* @__PURE__ */ t.jsx("h2", { className: "drawer-title", children: a }),
|
@@ -1125,16 +1125,56 @@ const kr = ({
|
|
1125
1125
|
}
|
1126
1126
|
)
|
1127
1127
|
] }),
|
1128
|
-
/* @__PURE__ */ t.jsx("div", { className: "drawer-content", children:
|
1128
|
+
/* @__PURE__ */ t.jsx("div", { className: "drawer-content", children: s })
|
1129
1129
|
]
|
1130
1130
|
}
|
1131
1131
|
)
|
1132
1132
|
] });
|
1133
1133
|
};
|
1134
|
+
const Nr = Ue("modal-container", {
|
1135
|
+
variants: {
|
1136
|
+
size: {
|
1137
|
+
s: "modal-size-s",
|
1138
|
+
m: "modal-size-m",
|
1139
|
+
l: "modal-size-l"
|
1140
|
+
}
|
1141
|
+
},
|
1142
|
+
defaultVariants: {
|
1143
|
+
size: "m"
|
1144
|
+
}
|
1145
|
+
}), Pr = ({
|
1146
|
+
title: i,
|
1147
|
+
children: f,
|
1148
|
+
active: a,
|
1149
|
+
onClose: s,
|
1150
|
+
size: g
|
1151
|
+
}) => {
|
1152
|
+
const _ = re(null);
|
1153
|
+
ne(() => {
|
1154
|
+
const d = (u) => {
|
1155
|
+
u.key === "Escape" && s();
|
1156
|
+
};
|
1157
|
+
return a && document.addEventListener("keydown", d), () => {
|
1158
|
+
document.removeEventListener("keydown", d);
|
1159
|
+
};
|
1160
|
+
}, [a, s]);
|
1161
|
+
const C = (d) => {
|
1162
|
+
_.current && d.target === _.current && s();
|
1163
|
+
};
|
1164
|
+
return a ? /* @__PURE__ */ t.jsx("div", { className: "modal-backdrop", ref: _, onClick: C, children: /* @__PURE__ */ t.jsxs("div", { className: Nr({ size: g }), children: [
|
1165
|
+
/* @__PURE__ */ t.jsxs("div", { className: "modal-header", children: [
|
1166
|
+
/* @__PURE__ */ t.jsx("h2", { children: i }),
|
1167
|
+
/* @__PURE__ */ t.jsx("button", { className: "modal-close", onClick: s, "aria-label": "Cerrar", children: "×" })
|
1168
|
+
] }),
|
1169
|
+
/* @__PURE__ */ t.jsx("hr", { className: "modal-divider" }),
|
1170
|
+
/* @__PURE__ */ t.jsx("div", { className: "modal-content", children: f })
|
1171
|
+
] }) }) : null;
|
1172
|
+
};
|
1134
1173
|
export {
|
1135
1174
|
Rr as Button,
|
1136
|
-
|
1137
|
-
|
1175
|
+
Or as Drawer,
|
1176
|
+
Pr as Modal,
|
1177
|
+
kr as Sidebar,
|
1138
1178
|
Er as buttonVariants
|
1139
1179
|
};
|
1140
1180
|
//# sourceMappingURL=index.esm.js.map
|