levannta-ui 1.0.13 → 1.0.15
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/README.md +64 -0
- package/dist/components/ui/Drawer/Drawer.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.esm.js +406 -387
- 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
|
2
|
-
var
|
1
|
+
import ge, { forwardRef as pr, useState as Y, useEffect as be, useRef as me } from "react";
|
2
|
+
var he = { exports: {} }, J = {};
|
3
3
|
/**
|
4
4
|
* @license React
|
5
5
|
* react-jsx-runtime.production.min.js
|
@@ -9,25 +9,25 @@ var me = { 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
|
13
|
-
function
|
14
|
-
if (
|
15
|
-
return
|
16
|
-
|
17
|
-
var o =
|
18
|
-
function
|
19
|
-
var s, y = {},
|
20
|
-
|
12
|
+
var Le;
|
13
|
+
function yr() {
|
14
|
+
if (Le)
|
15
|
+
return J;
|
16
|
+
Le = 1;
|
17
|
+
var o = ge, d = Symbol.for("react.element"), a = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, p = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, N = { key: !0, ref: !0, __self: !0, __source: !0 };
|
18
|
+
function C(h, c, g) {
|
19
|
+
var s, y = {}, v = null, x = null;
|
20
|
+
g !== void 0 && (v = "" + g), c.key !== void 0 && (v = "" + c.key), c.ref !== void 0 && (x = 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 (h && h.defaultProps)
|
24
|
+
for (s in c = h.defaultProps, c)
|
25
25
|
y[s] === void 0 && (y[s] = c[s]);
|
26
|
-
return { $$typeof: d, type:
|
26
|
+
return { $$typeof: d, type: h, key: v, ref: x, props: y, _owner: p.current };
|
27
27
|
}
|
28
|
-
return
|
28
|
+
return J.Fragment = a, J.jsx = C, J.jsxs = C, J;
|
29
29
|
}
|
30
|
-
var
|
30
|
+
var K = {};
|
31
31
|
/**
|
32
32
|
* @license React
|
33
33
|
* react-jsx-runtime.development.js
|
@@ -37,57 +37,57 @@ 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
|
41
|
-
function
|
42
|
-
return
|
43
|
-
var o =
|
44
|
-
function
|
40
|
+
var We;
|
41
|
+
function xr() {
|
42
|
+
return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
|
43
|
+
var o = ge, d = Symbol.for("react.element"), a = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), h = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), S = Symbol.iterator, D = "@@iterator";
|
44
|
+
function m(e) {
|
45
45
|
if (e === null || typeof e != "object")
|
46
46
|
return null;
|
47
|
-
var r =
|
47
|
+
var r = S && e[S] || e[D];
|
48
48
|
return typeof r == "function" ? r : null;
|
49
49
|
}
|
50
|
-
var
|
51
|
-
function
|
50
|
+
var I = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
51
|
+
function E(e) {
|
52
52
|
{
|
53
53
|
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
54
54
|
n[i - 1] = arguments[i];
|
55
|
-
|
55
|
+
L("error", e, n);
|
56
56
|
}
|
57
57
|
}
|
58
|
-
function
|
58
|
+
function L(e, r, n) {
|
59
59
|
{
|
60
|
-
var i =
|
61
|
-
|
62
|
-
var
|
60
|
+
var i = I.ReactDebugCurrentFrame, b = i.getStackAddendum();
|
61
|
+
b !== "" && (r += "%s", n = n.concat([b]));
|
62
|
+
var w = n.map(function(f) {
|
63
63
|
return String(f);
|
64
64
|
});
|
65
|
-
|
65
|
+
w.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, w);
|
66
66
|
}
|
67
67
|
}
|
68
|
-
var
|
69
|
-
|
70
|
-
function
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === u || e === N || ae || e ===
|
68
|
+
var P = !1, re = !1, ne = !1, te = !1, ae = !1, q;
|
69
|
+
q = Symbol.for("react.module.reference");
|
70
|
+
function V(e) {
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === u || e === N || ae || e === p || e === g || e === s || te || e === x || P || re || ne || typeof e == "object" && e !== null && (e.$$typeof === v || e.$$typeof === y || e.$$typeof === C || e.$$typeof === h || 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
|
-
e.$$typeof ===
|
75
|
+
e.$$typeof === q || e.getModuleId !== void 0));
|
76
76
|
}
|
77
|
-
function
|
77
|
+
function j(e, r, n) {
|
78
78
|
var i = e.displayName;
|
79
79
|
if (i)
|
80
80
|
return i;
|
81
|
-
var
|
82
|
-
return
|
81
|
+
var b = r.displayName || r.name || "";
|
82
|
+
return b !== "" ? n + "(" + b + ")" : n;
|
83
83
|
}
|
84
|
-
function
|
84
|
+
function k(e) {
|
85
85
|
return e.displayName || "Context";
|
86
86
|
}
|
87
|
-
function
|
87
|
+
function R(e) {
|
88
88
|
if (e == null)
|
89
89
|
return null;
|
90
|
-
if (typeof e.tag == "number" &&
|
90
|
+
if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
91
91
|
return e.displayName || e.name || null;
|
92
92
|
if (typeof e == "string")
|
93
93
|
return e;
|
@@ -98,30 +98,30 @@ function yr() {
|
|
98
98
|
return "Portal";
|
99
99
|
case N:
|
100
100
|
return "Profiler";
|
101
|
-
case
|
101
|
+
case p:
|
102
102
|
return "StrictMode";
|
103
|
-
case
|
103
|
+
case g:
|
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 h:
|
111
111
|
var r = e;
|
112
|
-
return
|
113
|
-
case
|
112
|
+
return k(r) + ".Consumer";
|
113
|
+
case C:
|
114
114
|
var n = e;
|
115
|
-
return
|
115
|
+
return k(n._context) + ".Provider";
|
116
116
|
case c:
|
117
|
-
return
|
117
|
+
return j(e, e.render, "ForwardRef");
|
118
118
|
case y:
|
119
119
|
var i = e.displayName || null;
|
120
|
-
return i !== null ? i :
|
121
|
-
case
|
122
|
-
var
|
120
|
+
return i !== null ? i : R(e.type) || "Memo";
|
121
|
+
case v: {
|
122
|
+
var b = e, w = b._payload, f = b._init;
|
123
123
|
try {
|
124
|
-
return
|
124
|
+
return R(f(w));
|
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
|
133
|
-
function
|
132
|
+
var O = Object.assign, F = 0, G, pe, ye, xe, je, we, Ee;
|
133
|
+
function Re() {
|
134
134
|
}
|
135
|
-
|
136
|
-
function
|
135
|
+
Re.__reactDisabledLog = !0;
|
136
|
+
function ze() {
|
137
137
|
{
|
138
|
-
if (
|
139
|
-
|
138
|
+
if (F === 0) {
|
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,
|
142
142
|
enumerable: !0,
|
143
|
-
value:
|
143
|
+
value: Re,
|
144
144
|
writable: !0
|
145
145
|
};
|
146
146
|
Object.defineProperties(console, {
|
@@ -153,52 +153,52 @@ function yr() {
|
|
153
153
|
groupEnd: e
|
154
154
|
});
|
155
155
|
}
|
156
|
-
|
156
|
+
F++;
|
157
157
|
}
|
158
158
|
}
|
159
|
-
function
|
159
|
+
function Xe() {
|
160
160
|
{
|
161
|
-
if (
|
161
|
+
if (F--, F === 0) {
|
162
162
|
var e = {
|
163
163
|
configurable: !0,
|
164
164
|
enumerable: !0,
|
165
165
|
writable: !0
|
166
166
|
};
|
167
167
|
Object.defineProperties(console, {
|
168
|
-
log:
|
169
|
-
value:
|
168
|
+
log: O({}, e, {
|
169
|
+
value: G
|
170
170
|
}),
|
171
|
-
info:
|
171
|
+
info: O({}, e, {
|
172
172
|
value: pe
|
173
173
|
}),
|
174
|
-
warn:
|
175
|
-
value: ge
|
176
|
-
}),
|
177
|
-
error: k({}, e, {
|
174
|
+
warn: O({}, e, {
|
178
175
|
value: ye
|
179
176
|
}),
|
180
|
-
|
177
|
+
error: O({}, e, {
|
181
178
|
value: xe
|
182
179
|
}),
|
183
|
-
|
180
|
+
group: O({}, e, {
|
184
181
|
value: je
|
185
182
|
}),
|
186
|
-
|
183
|
+
groupCollapsed: O({}, e, {
|
187
184
|
value: we
|
185
|
+
}),
|
186
|
+
groupEnd: O({}, e, {
|
187
|
+
value: Ee
|
188
188
|
})
|
189
189
|
});
|
190
190
|
}
|
191
|
-
|
191
|
+
F < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
192
192
|
}
|
193
193
|
}
|
194
|
-
var ie =
|
194
|
+
var ie = I.ReactCurrentDispatcher, oe;
|
195
195
|
function H(e, r, n) {
|
196
196
|
{
|
197
197
|
if (oe === void 0)
|
198
198
|
try {
|
199
199
|
throw Error();
|
200
|
-
} catch (
|
201
|
-
var i =
|
200
|
+
} catch (b) {
|
201
|
+
var i = b.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 _e(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 b = Error.prepareStackTrace;
|
224
224
|
Error.prepareStackTrace = void 0;
|
225
|
-
var
|
226
|
-
|
225
|
+
var w;
|
226
|
+
w = ie.current, ie.current = null, ze();
|
227
227
|
try {
|
228
228
|
if (r) {
|
229
229
|
var f = function() {
|
@@ -236,53 +236,53 @@ function yr() {
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
237
237
|
try {
|
238
238
|
Reflect.construct(f, []);
|
239
|
-
} catch (
|
240
|
-
i =
|
239
|
+
} catch (A) {
|
240
|
+
i = A;
|
241
241
|
}
|
242
242
|
Reflect.construct(e, [], f);
|
243
243
|
} else {
|
244
244
|
try {
|
245
245
|
f.call();
|
246
|
-
} catch (
|
247
|
-
i =
|
246
|
+
} catch (A) {
|
247
|
+
i = A;
|
248
248
|
}
|
249
249
|
e.call(f.prototype);
|
250
250
|
}
|
251
251
|
} else {
|
252
252
|
try {
|
253
253
|
throw Error();
|
254
|
-
} catch (
|
255
|
-
i =
|
254
|
+
} catch (A) {
|
255
|
+
i = A;
|
256
256
|
}
|
257
257
|
e();
|
258
258
|
}
|
259
|
-
} catch (
|
260
|
-
if (
|
261
|
-
for (var l =
|
262
|
-
`),
|
263
|
-
`),
|
259
|
+
} catch (A) {
|
260
|
+
if (A && i && typeof A.stack == "string") {
|
261
|
+
for (var l = A.stack.split(`
|
262
|
+
`), $ = i.stack.split(`
|
263
|
+
`), _ = l.length - 1, T = $.length - 1; _ >= 1 && T >= 0 && l[_] !== $[T]; )
|
264
264
|
T--;
|
265
|
-
for (;
|
266
|
-
if (l[
|
267
|
-
if (
|
265
|
+
for (; _ >= 1 && T >= 0; _--, T--)
|
266
|
+
if (l[_] !== $[T]) {
|
267
|
+
if (_ !== 1 || T !== 1)
|
268
268
|
do
|
269
|
-
if (
|
270
|
-
var
|
271
|
-
` + l[
|
272
|
-
return e.displayName &&
|
269
|
+
if (_--, T--, T < 0 || l[_] !== $[T]) {
|
270
|
+
var M = `
|
271
|
+
` + l[_].replace(" at new ", " at ");
|
272
|
+
return e.displayName && M.includes("<anonymous>") && (M = M.replace("<anonymous>", e.displayName)), typeof e == "function" && Z.set(e, M), M;
|
273
273
|
}
|
274
|
-
while (
|
274
|
+
while (_ >= 1 && T >= 0);
|
275
275
|
break;
|
276
276
|
}
|
277
277
|
}
|
278
278
|
} finally {
|
279
|
-
se = !1, ie.current =
|
279
|
+
se = !1, ie.current = w, Xe(), Error.prepareStackTrace = b;
|
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 : "", W = B ? H(B) : "";
|
282
|
+
return typeof e == "function" && Z.set(e, W), W;
|
283
283
|
}
|
284
284
|
function Ke(e, r, n) {
|
285
|
-
return
|
285
|
+
return _e(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 _e(e, qe(e));
|
296
296
|
if (typeof e == "string")
|
297
297
|
return H(e);
|
298
298
|
switch (e) {
|
299
|
-
case
|
299
|
+
case g:
|
300
300
|
return H("Suspense");
|
301
301
|
case s:
|
302
302
|
return H("SuspenseList");
|
@@ -307,75 +307,75 @@ function yr() {
|
|
307
307
|
return Ke(e.render);
|
308
308
|
case y:
|
309
309
|
return Q(e.type, r, n);
|
310
|
-
case
|
311
|
-
var i = e,
|
310
|
+
case v: {
|
311
|
+
var i = e, b = i._payload, w = i._init;
|
312
312
|
try {
|
313
|
-
return Q(
|
313
|
+
return Q(w(b), 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, 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);
|
324
|
-
|
324
|
+
Te.setExtraStackFrame(n);
|
325
325
|
} else
|
326
|
-
|
326
|
+
Te.setExtraStackFrame(null);
|
327
327
|
}
|
328
|
-
function Ge(e, r, n, i,
|
328
|
+
function Ge(e, r, n, i, b) {
|
329
329
|
{
|
330
|
-
var
|
330
|
+
var w = Function.call.bind(z);
|
331
331
|
for (var f in e)
|
332
|
-
if (
|
332
|
+
if (w(e, f)) {
|
333
333
|
var l = void 0;
|
334
334
|
try {
|
335
335
|
if (typeof e[f] != "function") {
|
336
|
-
var
|
337
|
-
throw
|
336
|
+
var $ = Error((i || "React class") + ": " + n + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
337
|
+
throw $.name = "Invariant Violation", $;
|
338
338
|
}
|
339
339
|
l = e[f](r, f, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
340
|
-
} catch (
|
341
|
-
l =
|
340
|
+
} catch (_) {
|
341
|
+
l = _;
|
342
342
|
}
|
343
|
-
l && !(l instanceof Error) && (ee(
|
343
|
+
l && !(l instanceof Error) && (ee(b), 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).", i || "React class", n, f, typeof l), ee(null)), l instanceof Error && !(l.message in Ce) && (Ce[l.message] = !0, ee(b), E("Failed %s type: %s", n, l.message), ee(null));
|
344
344
|
}
|
345
345
|
}
|
346
346
|
}
|
347
|
-
var
|
347
|
+
var He = Array.isArray;
|
348
348
|
function le(e) {
|
349
|
-
return
|
349
|
+
return He(e);
|
350
350
|
}
|
351
|
-
function
|
351
|
+
function Ze(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 Qe(e) {
|
358
358
|
try {
|
359
|
-
return
|
359
|
+
return Se(e), !1;
|
360
360
|
} catch {
|
361
361
|
return !0;
|
362
362
|
}
|
363
363
|
}
|
364
|
-
function
|
364
|
+
function Se(e) {
|
365
365
|
return "" + e;
|
366
366
|
}
|
367
367
|
function Ne(e) {
|
368
|
-
if (
|
369
|
-
return
|
368
|
+
if (Qe(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.", Ze(e)), Se(e);
|
370
370
|
}
|
371
|
-
var
|
371
|
+
var X = I.ReactCurrentOwner, er = {
|
372
372
|
key: !0,
|
373
373
|
ref: !0,
|
374
374
|
__self: !0,
|
375
375
|
__source: !0
|
376
|
-
},
|
376
|
+
}, ke, Oe, ue;
|
377
377
|
ue = {};
|
378
|
-
function
|
378
|
+
function rr(e) {
|
379
379
|
if (z.call(e, "ref")) {
|
380
380
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
381
381
|
if (r && r.isReactWarning)
|
@@ -383,7 +383,7 @@ function yr() {
|
|
383
383
|
}
|
384
384
|
return e.ref !== void 0;
|
385
385
|
}
|
386
|
-
function
|
386
|
+
function nr(e) {
|
387
387
|
if (z.call(e, "key")) {
|
388
388
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
389
389
|
if (r && r.isReactWarning)
|
@@ -391,16 +391,16 @@ function yr() {
|
|
391
391
|
}
|
392
392
|
return e.key !== void 0;
|
393
393
|
}
|
394
|
-
function
|
395
|
-
if (typeof e.ref == "string" &&
|
396
|
-
var n =
|
397
|
-
ue[n] || (
|
394
|
+
function tr(e, r) {
|
395
|
+
if (typeof e.ref == "string" && X.current && r && X.current.stateNode !== r) {
|
396
|
+
var n = R(X.current.type);
|
397
|
+
ue[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(X.current.type), e.ref), ue[n] = !0);
|
398
398
|
}
|
399
399
|
}
|
400
|
-
function
|
400
|
+
function ar(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));
|
404
404
|
};
|
405
405
|
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
406
406
|
get: n,
|
@@ -408,10 +408,10 @@ function yr() {
|
|
408
408
|
});
|
409
409
|
}
|
410
410
|
}
|
411
|
-
function
|
411
|
+
function ir(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));
|
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
|
422
|
+
var or = function(e, r, n, i, b, w, 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: w
|
433
433
|
};
|
434
434
|
return l._store = {}, Object.defineProperty(l._store, "validated", {
|
435
435
|
configurable: !1,
|
@@ -445,44 +445,44 @@ function yr() {
|
|
445
445
|
configurable: !1,
|
446
446
|
enumerable: !1,
|
447
447
|
writable: !1,
|
448
|
-
value:
|
448
|
+
value: b
|
449
449
|
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
450
450
|
};
|
451
|
-
function
|
451
|
+
function sr(e, r, n, i, b) {
|
452
452
|
{
|
453
|
-
var
|
454
|
-
n !== void 0 && (Ne(n), l = "" + n),
|
455
|
-
for (
|
456
|
-
z.call(r,
|
453
|
+
var w, f = {}, l = null, $ = null;
|
454
|
+
n !== void 0 && (Ne(n), l = "" + n), nr(r) && (Ne(r.key), l = "" + r.key), rr(r) && ($ = r.ref, tr(r, b));
|
455
|
+
for (w in r)
|
456
|
+
z.call(r, w) && !er.hasOwnProperty(w) && (f[w] = r[w]);
|
457
457
|
if (e && e.defaultProps) {
|
458
|
-
var
|
459
|
-
for (
|
460
|
-
f[
|
458
|
+
var _ = e.defaultProps;
|
459
|
+
for (w in _)
|
460
|
+
f[w] === void 0 && (f[w] = _[w]);
|
461
461
|
}
|
462
|
-
if (l ||
|
462
|
+
if (l || $) {
|
463
463
|
var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
464
|
-
l &&
|
464
|
+
l && ar(f, T), $ && ir(f, T);
|
465
465
|
}
|
466
|
-
return
|
466
|
+
return or(e, l, $, b, i, X.current, f);
|
467
467
|
}
|
468
468
|
}
|
469
|
-
var ce =
|
469
|
+
var ce = I.ReactCurrentOwner, Pe = I.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
|
+
Pe.setExtraStackFrame(n);
|
474
474
|
} else
|
475
|
-
|
475
|
+
Pe.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 Ie() {
|
483
483
|
{
|
484
484
|
if (ce.current) {
|
485
|
-
var e =
|
485
|
+
var e = R(ce.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 lr(e) {
|
495
495
|
{
|
496
496
|
if (e !== void 0) {
|
497
497
|
var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
@@ -502,10 +502,10 @@ Check your code at ` + r + ":" + n + ".";
|
|
502
502
|
return "";
|
503
503
|
}
|
504
504
|
}
|
505
|
-
var
|
506
|
-
function
|
505
|
+
var $e = {};
|
506
|
+
function ur(e) {
|
507
507
|
{
|
508
|
-
var r =
|
508
|
+
var r = Ie();
|
509
509
|
if (!r) {
|
510
510
|
var n = typeof e == "string" ? e : e.displayName || e.name;
|
511
511
|
n && (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 Fe(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 =
|
524
|
-
if (
|
523
|
+
var n = ur(r);
|
524
|
+
if ($e[n])
|
525
525
|
return;
|
526
|
-
|
526
|
+
$e[n] = !0;
|
527
527
|
var i = "";
|
528
|
-
e && e._owner && e._owner !== ce.current && (i = " It was passed a child from " +
|
528
|
+
e && e._owner && e._owner !== ce.current && (i = " It was passed a child from " + R(e._owner.type) + "."), U(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, i), U(null);
|
529
529
|
}
|
530
530
|
}
|
531
|
-
function
|
531
|
+
function Ae(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) && Fe(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 b = m(e);
|
544
|
+
if (typeof b == "function" && b !== e.entries)
|
545
|
+
for (var w = b.call(e), f; !(f = w.next()).done; )
|
546
|
+
de(f.value) && Fe(f.value, r);
|
547
547
|
}
|
548
548
|
}
|
549
549
|
}
|
550
|
-
function
|
550
|
+
function cr(e) {
|
551
551
|
{
|
552
552
|
var r = e.type;
|
553
553
|
if (r == null || typeof r == "string")
|
@@ -562,137 +562,137 @@ Check the top-level render call using <` + n + ">.");
|
|
562
562
|
else
|
563
563
|
return;
|
564
564
|
if (n) {
|
565
|
-
var i =
|
565
|
+
var i = R(r);
|
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
|
-
|
569
|
+
var b = R(r);
|
570
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
|
571
571
|
}
|
572
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
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 fr(e) {
|
576
576
|
{
|
577
577
|
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
|
578
578
|
var i = r[n];
|
579
579
|
if (i !== "children" && i !== "key") {
|
580
|
-
U(e),
|
580
|
+
U(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), U(null);
|
581
581
|
break;
|
582
582
|
}
|
583
583
|
}
|
584
|
-
e.ref !== null && (U(e),
|
584
|
+
e.ref !== null && (U(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
|
585
585
|
}
|
586
586
|
}
|
587
|
-
var
|
588
|
-
function
|
587
|
+
var De = {};
|
588
|
+
function Me(e, r, n, i, b, w) {
|
589
589
|
{
|
590
|
-
var f =
|
590
|
+
var f = V(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
|
595
|
-
|
596
|
-
var
|
597
|
-
e === null ?
|
594
|
+
var $ = lr(b);
|
595
|
+
$ ? l += $ : l += Ie();
|
596
|
+
var _;
|
597
|
+
e === null ? _ = "null" : le(e) ? _ = "array" : e !== void 0 && e.$$typeof === d ? (_ = "<" + (R(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : _ = 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", _, l);
|
598
598
|
}
|
599
|
-
var T =
|
599
|
+
var T = sr(e, r, n, b, w);
|
600
600
|
if (T == null)
|
601
601
|
return T;
|
602
602
|
if (f) {
|
603
|
-
var
|
604
|
-
if (
|
603
|
+
var M = r.children;
|
604
|
+
if (M !== void 0)
|
605
605
|
if (i)
|
606
|
-
if (le(
|
607
|
-
for (var B = 0; B <
|
608
|
-
|
609
|
-
Object.freeze && Object.freeze(
|
606
|
+
if (le(M)) {
|
607
|
+
for (var B = 0; B < M.length; B++)
|
608
|
+
Ae(M[B], e);
|
609
|
+
Object.freeze && Object.freeze(M);
|
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
|
+
Ae(M, e);
|
614
614
|
}
|
615
615
|
if (z.call(r, "key")) {
|
616
|
-
var
|
617
|
-
return
|
618
|
-
}), ve =
|
619
|
-
if (!
|
620
|
-
var
|
621
|
-
|
616
|
+
var W = R(e), A = Object.keys(r).filter(function(gr) {
|
617
|
+
return gr !== "key";
|
618
|
+
}), ve = A.length > 0 ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}";
|
619
|
+
if (!De[W + ve]) {
|
620
|
+
var hr = A.length > 0 ? "{" + A.join(": ..., ") + ": ...}" : "{}";
|
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} />`, ve,
|
626
|
+
<%s key={someKey} {...props} />`, ve, W, hr, W), De[W + ve] = !0;
|
627
627
|
}
|
628
628
|
}
|
629
|
-
return e === u ?
|
629
|
+
return e === u ? fr(T) : cr(T), T;
|
630
630
|
}
|
631
631
|
}
|
632
|
-
function fr(e, r, n) {
|
633
|
-
return De(e, r, n, !0);
|
634
|
-
}
|
635
632
|
function dr(e, r, n) {
|
636
|
-
return
|
633
|
+
return Me(e, r, n, !0);
|
637
634
|
}
|
638
|
-
|
639
|
-
|
640
|
-
|
635
|
+
function vr(e, r, n) {
|
636
|
+
return Me(e, r, n, !1);
|
637
|
+
}
|
638
|
+
var mr = vr, br = dr;
|
639
|
+
K.Fragment = u, K.jsx = mr, K.jsxs = br;
|
640
|
+
}()), K;
|
641
641
|
}
|
642
|
-
process.env.NODE_ENV === "production" ?
|
643
|
-
var t =
|
644
|
-
function
|
642
|
+
process.env.NODE_ENV === "production" ? he.exports = yr() : he.exports = xr();
|
643
|
+
var t = he.exports;
|
644
|
+
function Be(o) {
|
645
645
|
var d, a, u = "";
|
646
646
|
if (typeof o == "string" || typeof o == "number")
|
647
647
|
u += o;
|
648
648
|
else if (typeof o == "object")
|
649
649
|
if (Array.isArray(o)) {
|
650
|
-
var
|
651
|
-
for (d = 0; d <
|
652
|
-
o[d] && (a =
|
650
|
+
var p = o.length;
|
651
|
+
for (d = 0; d < p; d++)
|
652
|
+
o[d] && (a = Be(o[d])) && (u && (u += " "), u += a);
|
653
653
|
} else
|
654
654
|
for (a in o)
|
655
655
|
o[a] && (u && (u += " "), u += a);
|
656
656
|
return u;
|
657
657
|
}
|
658
|
-
function
|
659
|
-
for (var o, d, a = 0, u = "",
|
660
|
-
(o = arguments[a]) && (d =
|
658
|
+
function jr() {
|
659
|
+
for (var o, d, a = 0, u = "", p = arguments.length; a < p; a++)
|
660
|
+
(o = arguments[a]) && (d = Be(o)) && (u && (u += " "), u += d);
|
661
661
|
return u;
|
662
662
|
}
|
663
|
-
const
|
663
|
+
const Ye = (o) => typeof o == "boolean" ? `${o}` : o === 0 ? "0" : o, Ve = jr, wr = (o, d) => (a) => {
|
664
664
|
var u;
|
665
665
|
if ((d == null ? void 0 : d.variants) == null)
|
666
666
|
return Ve(o, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
667
|
-
const { variants:
|
668
|
-
const s = a == null ? void 0 : a[
|
667
|
+
const { variants: p, defaultVariants: N } = d, C = Object.keys(p).map((g) => {
|
668
|
+
const s = a == null ? void 0 : a[g], y = N == null ? void 0 : N[g];
|
669
669
|
if (s === null)
|
670
670
|
return null;
|
671
|
-
const
|
672
|
-
return
|
673
|
-
}),
|
674
|
-
let [y,
|
675
|
-
return
|
676
|
-
}, {}), c = d == null || (u = d.compoundVariants) === null || u === void 0 ? void 0 : u.reduce((
|
677
|
-
let { class: y, className:
|
678
|
-
return Object.entries(
|
679
|
-
let [
|
680
|
-
return Array.isArray(
|
671
|
+
const v = Ye(s) || Ye(y);
|
672
|
+
return p[g][v];
|
673
|
+
}), h = a && Object.entries(a).reduce((g, s) => {
|
674
|
+
let [y, v] = s;
|
675
|
+
return v === void 0 || (g[y] = v), g;
|
676
|
+
}, {}), c = d == null || (u = d.compoundVariants) === null || u === void 0 ? void 0 : u.reduce((g, s) => {
|
677
|
+
let { class: y, className: v, ...x } = s;
|
678
|
+
return Object.entries(x).every((S) => {
|
679
|
+
let [D, m] = S;
|
680
|
+
return Array.isArray(m) ? m.includes({
|
681
681
|
...N,
|
682
|
-
...
|
683
|
-
}[
|
682
|
+
...h
|
683
|
+
}[D]) : {
|
684
684
|
...N,
|
685
|
-
...
|
686
|
-
}[
|
685
|
+
...h
|
686
|
+
}[D] === m;
|
687
687
|
}) ? [
|
688
|
-
...
|
688
|
+
...g,
|
689
689
|
y,
|
690
|
-
|
691
|
-
] :
|
690
|
+
v
|
691
|
+
] : g;
|
692
692
|
}, []);
|
693
|
-
return Ve(o,
|
693
|
+
return Ve(o, C, c, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
694
694
|
};
|
695
|
-
const
|
695
|
+
const Er = wr("button", {
|
696
696
|
variants: {
|
697
697
|
variant: {
|
698
698
|
outlined: "button-outlined",
|
@@ -753,116 +753,116 @@ const wr = jr("button", {
|
|
753
753
|
{ variant: "icon", color: "error", className: "button-icon-error" },
|
754
754
|
{ variant: "icon", color: "clear", className: "button-icon-clear" }
|
755
755
|
]
|
756
|
-
}),
|
756
|
+
}), Rr = pr(
|
757
757
|
({
|
758
758
|
className: o,
|
759
759
|
variant: d,
|
760
760
|
color: a,
|
761
761
|
size: u,
|
762
|
-
pill:
|
762
|
+
pill: p,
|
763
763
|
active: N,
|
764
|
-
iconLeft:
|
765
|
-
iconRight:
|
764
|
+
iconLeft: C,
|
765
|
+
iconRight: h,
|
766
766
|
iconLeftJustified: c,
|
767
|
-
iconRightJustified:
|
767
|
+
iconRightJustified: g,
|
768
768
|
iconOnly: s,
|
769
769
|
width: y,
|
770
|
-
children:
|
771
|
-
style:
|
772
|
-
...
|
773
|
-
},
|
774
|
-
const
|
775
|
-
...
|
770
|
+
children: v,
|
771
|
+
style: x,
|
772
|
+
...S
|
773
|
+
}, D) => {
|
774
|
+
const m = {
|
775
|
+
...x || {},
|
776
776
|
...y ? { width: y } : {}
|
777
777
|
};
|
778
778
|
return /* @__PURE__ */ t.jsxs(
|
779
779
|
"button",
|
780
780
|
{
|
781
|
-
className:
|
781
|
+
className: Er({
|
782
782
|
variant: d,
|
783
783
|
color: a,
|
784
784
|
size: u,
|
785
|
-
pill:
|
785
|
+
pill: p,
|
786
786
|
active: N,
|
787
|
-
iconLeft: !!
|
788
|
-
iconRight: !!
|
787
|
+
iconLeft: !!C,
|
788
|
+
iconRight: !!h,
|
789
789
|
iconLeftJustified: !!c,
|
790
|
-
iconRightJustified: !!
|
790
|
+
iconRightJustified: !!g,
|
791
791
|
iconOnly: !!s,
|
792
792
|
className: o
|
793
793
|
}),
|
794
|
-
style:
|
795
|
-
ref:
|
796
|
-
...
|
794
|
+
style: m,
|
795
|
+
ref: D,
|
796
|
+
...S,
|
797
797
|
children: [
|
798
|
-
|
798
|
+
C && /* @__PURE__ */ t.jsx("span", { className: "button-icon-left", children: C }),
|
799
799
|
c && /* @__PURE__ */ t.jsx("span", { className: "button-icon-left", children: c }),
|
800
|
-
s ? /* @__PURE__ */ t.jsx("span", { children: s }) :
|
801
|
-
|
802
|
-
|
800
|
+
s ? /* @__PURE__ */ t.jsx("span", { children: s }) : v,
|
801
|
+
h && /* @__PURE__ */ t.jsx("span", { className: "button-icon-right", children: h }),
|
802
|
+
g && /* @__PURE__ */ t.jsx("span", { className: "button-icon-right", children: g })
|
803
803
|
]
|
804
804
|
}
|
805
805
|
);
|
806
806
|
}
|
807
807
|
);
|
808
|
-
|
809
|
-
const
|
808
|
+
Rr.displayName = "Button";
|
809
|
+
const _r = ({ className: o }) => /* @__PURE__ */ t.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: o, 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
810
|
icon: o,
|
811
811
|
url: d,
|
812
812
|
label: a,
|
813
813
|
submenu: u,
|
814
|
-
collapsed:
|
814
|
+
collapsed: p,
|
815
815
|
active: N,
|
816
|
-
activePath:
|
817
|
-
isOpen:
|
816
|
+
activePath: C,
|
817
|
+
isOpen: h,
|
818
818
|
onToggle: c,
|
819
|
-
onExpand:
|
819
|
+
onExpand: g,
|
820
820
|
onSetActive: s,
|
821
821
|
isMobile: y = !1
|
822
822
|
}) => {
|
823
|
-
const
|
824
|
-
if (
|
823
|
+
const v = u && u.length > 0, x = v && u.some((m) => m.url === C), S = N || h && v || x || d === C, D = (m) => {
|
824
|
+
if (m.preventDefault(), y && v) {
|
825
825
|
c();
|
826
826
|
return;
|
827
827
|
}
|
828
|
-
if (s && s(d),
|
829
|
-
|
828
|
+
if (s && s(d), p && g) {
|
829
|
+
g();
|
830
830
|
return;
|
831
831
|
}
|
832
|
-
|
832
|
+
v && !p && c();
|
833
833
|
};
|
834
|
-
return /* @__PURE__ */ t.jsx("div", { className: `sidebar-item ${
|
834
|
+
return /* @__PURE__ */ t.jsx("div", { className: `sidebar-item ${h ? "open" : ""} `, children: /* @__PURE__ */ t.jsxs("div", { className: `sidebar-item-wrapper ${S && !p ? "active" : ""}`, children: [
|
835
835
|
/* @__PURE__ */ t.jsxs(
|
836
836
|
"a",
|
837
837
|
{
|
838
838
|
href: d,
|
839
|
-
className: `sidebar-link sidebar-collapsed ${
|
840
|
-
onClick:
|
839
|
+
className: `sidebar-link sidebar-collapsed ${S ? "active-text" : ""}`,
|
840
|
+
onClick: D,
|
841
841
|
children: [
|
842
|
-
/* @__PURE__ */ t.jsx("div", { className: `sidebar-icon ${
|
843
|
-
(!
|
842
|
+
/* @__PURE__ */ t.jsx("div", { className: `sidebar-icon ${S ? "active-text" : ""}`, children: o }),
|
843
|
+
(!p || y) && /* @__PURE__ */ t.jsxs("div", { className: "sidebar-content", children: [
|
844
844
|
/* @__PURE__ */ t.jsx("span", { className: "sidebar-label", children: a }),
|
845
|
-
|
845
|
+
v && /* @__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
|
850
|
+
v && (!p || y) && /* @__PURE__ */ t.jsx("div", { className: "submenu", children: u.map((m, I) => {
|
851
|
+
const E = m.url === C;
|
852
852
|
return /* @__PURE__ */ t.jsx(
|
853
853
|
"a",
|
854
854
|
{
|
855
|
-
href:
|
856
|
-
className: `submenu-item ${
|
857
|
-
onClick: () => s && s(
|
858
|
-
children: /* @__PURE__ */ t.jsx("span", { className: "submenu-label", children:
|
855
|
+
href: m.url,
|
856
|
+
className: `submenu-item ${E ? "active-text" : ""}`,
|
857
|
+
onClick: () => s && s(m.url),
|
858
|
+
children: /* @__PURE__ */ t.jsx("span", { className: "submenu-label", children: m.label })
|
859
859
|
},
|
860
|
-
|
860
|
+
I
|
861
861
|
);
|
862
862
|
}) })
|
863
863
|
] }) });
|
864
864
|
};
|
865
|
-
const
|
865
|
+
const Tr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
|
866
866
|
"svg",
|
867
867
|
{
|
868
868
|
width: "28",
|
@@ -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
|
+
), Ue = () => /* @__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
|
{
|
@@ -921,190 +921,209 @@ const Cr = ({ className: o }) => /* @__PURE__ */ t.jsxs(
|
|
921
921
|
logoCollapsed: d,
|
922
922
|
items: a,
|
923
923
|
logoutIcon: u,
|
924
|
-
onLogout:
|
924
|
+
onLogout: p,
|
925
925
|
logoutLabel: N = "Cerrar sesión",
|
926
|
-
collapsed:
|
927
|
-
onToggle:
|
926
|
+
collapsed: C = !1,
|
927
|
+
onToggle: h,
|
928
928
|
activePath: c,
|
929
|
-
onActiveChange:
|
929
|
+
onActiveChange: g
|
930
930
|
}) => {
|
931
|
-
const [s, y] =
|
931
|
+
const [s, y] = Y(C), [v, x] = Y(null), [S, D] = Y(c), [m, I] = Y(!1), [E, L] = Y(!1), [P, re] = Y(!1);
|
932
932
|
be(() => {
|
933
|
-
const
|
933
|
+
const j = () => {
|
934
934
|
re(window.innerWidth <= 768);
|
935
935
|
};
|
936
|
-
return
|
937
|
-
window.removeEventListener("resize",
|
936
|
+
return j(), window.addEventListener("resize", j), () => {
|
937
|
+
window.removeEventListener("resize", j);
|
938
938
|
};
|
939
|
-
}, []),
|
940
|
-
var
|
939
|
+
}, []), ge.useEffect(() => {
|
940
|
+
var j;
|
941
941
|
if (c) {
|
942
|
-
|
943
|
-
const
|
944
|
-
(
|
945
|
-
var
|
946
|
-
return
|
942
|
+
D(c);
|
943
|
+
const k = a.findIndex(
|
944
|
+
(R) => {
|
945
|
+
var O;
|
946
|
+
return R.url === c || ((O = R.submenu) == null ? void 0 : O.some((F) => F.url === c));
|
947
947
|
}
|
948
948
|
);
|
949
|
-
|
949
|
+
k !== -1 && ((j = a[k].submenu) != null && j.length ? x(k) : x(null));
|
950
950
|
}
|
951
951
|
}, [c, a]);
|
952
952
|
const ne = () => {
|
953
|
-
y(!s),
|
953
|
+
y(!s), h && h();
|
954
954
|
}, te = () => {
|
955
|
-
var
|
955
|
+
var j;
|
956
956
|
if (s)
|
957
|
-
if (y(!1),
|
958
|
-
const
|
959
|
-
(
|
960
|
-
var
|
961
|
-
return
|
957
|
+
if (y(!1), h && h(), S) {
|
958
|
+
const k = a.findIndex(
|
959
|
+
(R) => {
|
960
|
+
var O;
|
961
|
+
return R.url === S || ((O = R.submenu) == null ? void 0 : O.some((F) => F.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
|
-
|
967
|
-
}, ae = (
|
968
|
-
|
969
|
-
},
|
970
|
-
|
971
|
-
const
|
972
|
-
(
|
973
|
-
var
|
974
|
-
return
|
966
|
+
x(null);
|
967
|
+
}, ae = (j) => {
|
968
|
+
x(v === j ? null : j), P && I(!0);
|
969
|
+
}, q = (j) => {
|
970
|
+
D(j);
|
971
|
+
const k = a.findIndex(
|
972
|
+
(R) => {
|
973
|
+
var O;
|
974
|
+
return R.url === j || ((O = R.submenu) == null ? void 0 : O.some((F) => F.url === j));
|
975
975
|
}
|
976
976
|
);
|
977
|
-
if (
|
978
|
-
const
|
979
|
-
|
977
|
+
if (k !== -1) {
|
978
|
+
const R = a[k];
|
979
|
+
R.submenu && R.submenu.length > 0 ? x(k) : x(null);
|
980
980
|
} else
|
981
|
-
|
982
|
-
|
983
|
-
(
|
984
|
-
var
|
985
|
-
return (
|
981
|
+
x(null);
|
982
|
+
g && g(j), P && (a.some(
|
983
|
+
(O) => {
|
984
|
+
var F;
|
985
|
+
return (F = O.submenu) == null ? void 0 : F.some((G) => G.url === j);
|
986
986
|
}
|
987
|
-
) || (
|
988
|
-
|
987
|
+
) || (L(!0), setTimeout(() => {
|
988
|
+
I(!1), L(!1);
|
989
989
|
}, 500)));
|
990
|
-
},
|
991
|
-
|
992
|
-
|
993
|
-
}, 500)) :
|
990
|
+
}, V = () => {
|
991
|
+
m ? (L(!0), setTimeout(() => {
|
992
|
+
I(!1), L(!1);
|
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
997
|
/* @__PURE__ */ t.jsx("div", { className: "mobile-logo", children: o }),
|
998
998
|
/* @__PURE__ */ t.jsx(
|
999
999
|
"button",
|
1000
1000
|
{
|
1001
|
-
className: `mobile-menu-button ${
|
1002
|
-
onClick:
|
1001
|
+
className: `mobile-menu-button ${m ? "open" : ""}`,
|
1002
|
+
onClick: V,
|
1003
1003
|
"aria-label": "Toggle mobile menu",
|
1004
|
-
children: /* @__PURE__ */ t.jsx(
|
1004
|
+
children: /* @__PURE__ */ t.jsx(Ue, {})
|
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 ${m ? "open" : ""}`,
|
1012
|
+
onClick: V,
|
1013
1013
|
"aria-label": "Toggle mobile menu",
|
1014
1014
|
style: { display: "none" },
|
1015
|
-
children: /* @__PURE__ */ t.jsx(
|
1015
|
+
children: /* @__PURE__ */ t.jsx(Ue, {})
|
1016
1016
|
}
|
1017
1017
|
),
|
1018
|
-
|
1018
|
+
P && (m || E) && /* @__PURE__ */ t.jsx(
|
1019
1019
|
"div",
|
1020
1020
|
{
|
1021
|
-
className: `sidebar-overlay ${
|
1022
|
-
onClick:
|
1021
|
+
className: `sidebar-overlay ${m ? "visible" : ""}`,
|
1022
|
+
onClick: V
|
1023
1023
|
}
|
1024
1024
|
),
|
1025
|
-
/* @__PURE__ */ t.jsxs("div", { className: `sidebar-wrapper ${
|
1026
|
-
/* @__PURE__ */ t.jsxs("div", { className: `sidebar ${!
|
1027
|
-
!
|
1028
|
-
|
1025
|
+
/* @__PURE__ */ t.jsxs("div", { className: `sidebar-wrapper ${m ? "mobile-open" : ""} ${E ? "mobile-closing" : ""}`, children: [
|
1026
|
+
/* @__PURE__ */ t.jsxs("div", { className: `sidebar ${!P && s ? "sidebar-collapsed" : ""} ${P ? "sidebar-mobile" : ""}`, children: [
|
1027
|
+
!P && /* @__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
|
+
P && (m || E) && /* @__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",
|
1032
1032
|
{
|
1033
1033
|
className: "mobile-close-button",
|
1034
|
-
onClick:
|
1034
|
+
onClick: V,
|
1035
1035
|
"aria-label": "Close menu",
|
1036
1036
|
children: "×"
|
1037
1037
|
}
|
1038
1038
|
)
|
1039
1039
|
] }),
|
1040
|
-
/* @__PURE__ */ t.jsx("div", { className: "sidebar-menu", children: a.map((
|
1041
|
-
|
1040
|
+
/* @__PURE__ */ t.jsx("div", { className: "sidebar-menu", children: a.map((j, k) => /* @__PURE__ */ t.jsx(
|
1041
|
+
Cr,
|
1042
1042
|
{
|
1043
|
-
icon:
|
1044
|
-
url:
|
1045
|
-
label:
|
1046
|
-
submenu:
|
1043
|
+
icon: j.icon,
|
1044
|
+
url: j.url,
|
1045
|
+
label: j.label,
|
1046
|
+
submenu: j.submenu,
|
1047
1047
|
collapsed: s,
|
1048
|
-
active:
|
1049
|
-
activePath:
|
1050
|
-
isOpen:
|
1051
|
-
onToggle: () => ae(
|
1048
|
+
active: j.active || j.url === S,
|
1049
|
+
activePath: S,
|
1050
|
+
isOpen: v === k,
|
1051
|
+
onToggle: () => ae(k),
|
1052
1052
|
onExpand: te,
|
1053
|
-
onSetActive:
|
1054
|
-
isMobile:
|
1053
|
+
onSetActive: q,
|
1054
|
+
isMobile: P
|
1055
1055
|
},
|
1056
|
-
|
1056
|
+
k
|
1057
1057
|
)) }),
|
1058
|
-
|
1058
|
+
p && /* @__PURE__ */ t.jsx("div", { className: "sidebar-footer", children: /* @__PURE__ */ t.jsxs("button", { className: "logout-button", onClick: p, children: [
|
1059
1059
|
u,
|
1060
1060
|
!s && /* @__PURE__ */ t.jsx("span", { children: N })
|
1061
1061
|
] }) })
|
1062
1062
|
] }),
|
1063
|
-
!
|
1063
|
+
!P && /* @__PURE__ */ t.jsx(
|
1064
1064
|
"button",
|
1065
1065
|
{
|
1066
1066
|
className: `sidebar-toggle-icon${s ? " collapsed" : ""}`,
|
1067
1067
|
onClick: ne,
|
1068
1068
|
"aria-label": "Toggle sidebar",
|
1069
|
-
children: /* @__PURE__ */ t.jsx(
|
1069
|
+
children: /* @__PURE__ */ t.jsx(Tr, {})
|
1070
1070
|
}
|
1071
1071
|
)
|
1072
1072
|
] })
|
1073
1073
|
] });
|
1074
1074
|
};
|
1075
|
-
const
|
1075
|
+
const kr = ({
|
1076
1076
|
isOpen: o,
|
1077
1077
|
onClose: d,
|
1078
1078
|
title: a = "",
|
1079
1079
|
children: u,
|
1080
|
-
position:
|
1081
|
-
size: N = "medium"
|
1080
|
+
position: p = "right",
|
1081
|
+
size: N = "medium",
|
1082
|
+
enableSwipeToClose: C = !0
|
1082
1083
|
}) => {
|
1083
|
-
const [
|
1084
|
-
!
|
1085
|
-
|
1084
|
+
const [h, c] = Y(!1), g = me(null), s = me(0), y = me(0), v = 50, x = () => {
|
1085
|
+
!h && o && (c(!0), setTimeout(() => {
|
1086
|
+
c(!1), d();
|
1086
1087
|
}, 500));
|
1088
|
+
}, S = (m) => {
|
1089
|
+
C && (s.current = m.touches[0].clientX, y.current = m.touches[0].clientY);
|
1090
|
+
}, D = (m) => {
|
1091
|
+
if (!C || !m.changedTouches[0])
|
1092
|
+
return;
|
1093
|
+
const I = m.changedTouches[0].clientX, E = m.changedTouches[0].clientY, L = I - s.current, P = E - y.current;
|
1094
|
+
(p === "right" && L > v || p === "left" && L < -v || p === "top" && P < -v || p === "bottom" && P > v) && x();
|
1087
1095
|
};
|
1088
1096
|
return be(() => {
|
1089
|
-
o &&
|
1090
|
-
}, [o]), be(() => (o && !
|
1097
|
+
o && c(!1);
|
1098
|
+
}, [o]), be(() => (o && !h ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
1091
1099
|
document.body.style.overflow = "";
|
1092
|
-
}), [o,
|
1100
|
+
}), [o, h]), !o && !h ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1093
1101
|
/* @__PURE__ */ t.jsx(
|
1094
1102
|
"div",
|
1095
1103
|
{
|
1096
|
-
className: `drawer-overlay ${
|
1097
|
-
onClick:
|
1104
|
+
className: `drawer-overlay ${h ? "fade-out" : "fade-in"}`,
|
1105
|
+
onClick: x
|
1098
1106
|
}
|
1099
1107
|
),
|
1100
1108
|
/* @__PURE__ */ t.jsxs(
|
1101
1109
|
"div",
|
1102
1110
|
{
|
1103
|
-
|
1111
|
+
ref: g,
|
1112
|
+
className: `drawer drawer-${p} drawer-${N} ${h ? "drawer-closing" : "drawer-open"}`,
|
1113
|
+
onTouchStart: S,
|
1114
|
+
onTouchEnd: D,
|
1104
1115
|
children: [
|
1105
1116
|
/* @__PURE__ */ t.jsxs("div", { className: `drawer-header ${a ? "has-title" : "no-title"}`, children: [
|
1106
1117
|
a && /* @__PURE__ */ t.jsx("h2", { className: "drawer-title", children: a }),
|
1107
|
-
/* @__PURE__ */ t.jsx(
|
1118
|
+
/* @__PURE__ */ t.jsx(
|
1119
|
+
"button",
|
1120
|
+
{
|
1121
|
+
className: "drawer-close",
|
1122
|
+
onClick: x,
|
1123
|
+
"aria-label": "Cerrar",
|
1124
|
+
children: "✕"
|
1125
|
+
}
|
1126
|
+
)
|
1108
1127
|
] }),
|
1109
1128
|
/* @__PURE__ */ t.jsx("div", { className: "drawer-content", children: u })
|
1110
1129
|
]
|
@@ -1113,9 +1132,9 @@ const Sr = ({
|
|
1113
1132
|
] });
|
1114
1133
|
};
|
1115
1134
|
export {
|
1116
|
-
|
1117
|
-
|
1135
|
+
Rr as Button,
|
1136
|
+
kr as Drawer,
|
1118
1137
|
Nr as Sidebar,
|
1119
|
-
|
1138
|
+
Er as buttonVariants
|
1120
1139
|
};
|
1121
1140
|
//# sourceMappingURL=index.esm.js.map
|