levannta-ui 1.0.37 → 1.0.39-react18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/Selector/Selector.d.ts +21 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +1281 -833
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +15 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +15 -15
package/dist/index.esm.js
CHANGED
|
@@ -1,324 +1,673 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import re, { forwardRef as W, useState as V, useEffect as X, useRef as K, Children as yt, isValidElement as Nt, cloneElement as Ct } from "react";
|
|
2
|
+
var xe = { exports: {} }, ee = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
|
-
* react-jsx-runtime.production.js
|
|
5
|
+
* react-jsx-runtime.production.min.js
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c)
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
8
|
*
|
|
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
|
-
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} else i = r;
|
|
24
|
-
return r = i.ref, {
|
|
25
|
-
$$typeof: t,
|
|
26
|
-
type: l,
|
|
27
|
-
key: o,
|
|
28
|
-
ref: r !== void 0 ? r : null,
|
|
29
|
-
props: i
|
|
30
|
-
};
|
|
12
|
+
var Ve;
|
|
13
|
+
function _t() {
|
|
14
|
+
if (Ve) return ee;
|
|
15
|
+
Ve = 1;
|
|
16
|
+
var r = re, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function d(f, c, x) {
|
|
18
|
+
var u, j = {}, g = null, v = null;
|
|
19
|
+
x !== void 0 && (g = "" + x), c.key !== void 0 && (g = "" + c.key), c.ref !== void 0 && (v = c.ref);
|
|
20
|
+
for (u in c) l.call(c, u) && !h.hasOwnProperty(u) && (j[u] = c[u]);
|
|
21
|
+
if (f && f.defaultProps) for (u in c = f.defaultProps, c) j[u] === void 0 && (j[u] = c[u]);
|
|
22
|
+
return { $$typeof: a, type: f, key: g, ref: v, props: j, _owner: i.current };
|
|
31
23
|
}
|
|
32
|
-
return
|
|
24
|
+
return ee.Fragment = n, ee.jsx = d, ee.jsxs = d, ee;
|
|
33
25
|
}
|
|
34
|
-
var
|
|
26
|
+
var te = {};
|
|
35
27
|
/**
|
|
36
28
|
* @license React
|
|
37
29
|
* react-jsx-runtime.development.js
|
|
38
30
|
*
|
|
39
|
-
* Copyright (c)
|
|
31
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
40
32
|
*
|
|
41
33
|
* This source code is licensed under the MIT license found in the
|
|
42
34
|
* LICENSE file in the root directory of this source tree.
|
|
43
35
|
*/
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
if (typeof
|
|
50
|
-
return
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
36
|
+
var Be;
|
|
37
|
+
function kt() {
|
|
38
|
+
return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var r = re, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), f = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), w = Symbol.iterator, p = "@@iterator";
|
|
40
|
+
function m(e) {
|
|
41
|
+
if (e === null || typeof e != "object")
|
|
42
|
+
return null;
|
|
43
|
+
var s = w && e[w] || e[p];
|
|
44
|
+
return typeof s == "function" ? s : null;
|
|
45
|
+
}
|
|
46
|
+
var T = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
+
function E(e) {
|
|
48
|
+
{
|
|
49
|
+
for (var s = arguments.length, o = new Array(s > 1 ? s - 1 : 0), b = 1; b < s; b++)
|
|
50
|
+
o[b - 1] = arguments[b];
|
|
51
|
+
D("error", e, o);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function D(e, s, o) {
|
|
55
|
+
{
|
|
56
|
+
var b = T.ReactDebugCurrentFrame, _ = b.getStackAddendum();
|
|
57
|
+
_ !== "" && (s += "%s", o = o.concat([_]));
|
|
58
|
+
var R = o.map(function(N) {
|
|
59
|
+
return String(N);
|
|
60
|
+
});
|
|
61
|
+
R.unshift("Warning: " + s), Function.prototype.apply.call(console[e], console, R);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
var I = !1, ne = !1, U = !1, Z = !1, q = !1, G;
|
|
65
|
+
G = Symbol.for("react.module.reference");
|
|
66
|
+
function B(e) {
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === h || q || e === i || e === x || e === u || Z || e === v || I || ne || U || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === j || e.$$typeof === d || e.$$typeof === f || e.$$typeof === c || // This needs to include all possible module reference object
|
|
68
|
+
// types supported by any Flight configuration anywhere since
|
|
69
|
+
// we don't know which Flight build this will end up being used
|
|
70
|
+
// with.
|
|
71
|
+
e.$$typeof === G || e.getModuleId !== void 0));
|
|
72
|
+
}
|
|
73
|
+
function C(e, s, o) {
|
|
74
|
+
var b = e.displayName;
|
|
75
|
+
if (b)
|
|
76
|
+
return b;
|
|
77
|
+
var _ = s.displayName || s.name || "";
|
|
78
|
+
return _ !== "" ? o + "(" + _ + ")" : o;
|
|
79
|
+
}
|
|
80
|
+
function k(e) {
|
|
81
|
+
return e.displayName || "Context";
|
|
82
|
+
}
|
|
83
|
+
function S(e) {
|
|
84
|
+
if (e == null)
|
|
85
|
+
return null;
|
|
86
|
+
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")
|
|
87
|
+
return e.displayName || e.name || null;
|
|
88
|
+
if (typeof e == "string")
|
|
89
|
+
return e;
|
|
90
|
+
switch (e) {
|
|
91
|
+
case l:
|
|
54
92
|
return "Fragment";
|
|
55
|
-
case
|
|
93
|
+
case n:
|
|
94
|
+
return "Portal";
|
|
95
|
+
case h:
|
|
56
96
|
return "Profiler";
|
|
57
|
-
case
|
|
97
|
+
case i:
|
|
58
98
|
return "StrictMode";
|
|
59
|
-
case
|
|
99
|
+
case x:
|
|
60
100
|
return "Suspense";
|
|
61
|
-
case
|
|
101
|
+
case u:
|
|
62
102
|
return "SuspenseList";
|
|
63
|
-
case W:
|
|
64
|
-
return "Activity";
|
|
65
103
|
}
|
|
66
|
-
if (typeof
|
|
67
|
-
switch (typeof
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return (
|
|
74
|
-
case
|
|
75
|
-
return (
|
|
76
|
-
case
|
|
77
|
-
var
|
|
78
|
-
return
|
|
79
|
-
case
|
|
80
|
-
|
|
81
|
-
case B:
|
|
82
|
-
v = s._payload, s = s._init;
|
|
104
|
+
if (typeof e == "object")
|
|
105
|
+
switch (e.$$typeof) {
|
|
106
|
+
case f:
|
|
107
|
+
var s = e;
|
|
108
|
+
return k(s) + ".Consumer";
|
|
109
|
+
case d:
|
|
110
|
+
var o = e;
|
|
111
|
+
return k(o._context) + ".Provider";
|
|
112
|
+
case c:
|
|
113
|
+
return C(e, e.render, "ForwardRef");
|
|
114
|
+
case j:
|
|
115
|
+
var b = e.displayName || null;
|
|
116
|
+
return b !== null ? b : S(e.type) || "Memo";
|
|
117
|
+
case g: {
|
|
118
|
+
var _ = e, R = _._payload, N = _._init;
|
|
83
119
|
try {
|
|
84
|
-
return
|
|
120
|
+
return S(N(R));
|
|
85
121
|
} catch {
|
|
122
|
+
return null;
|
|
86
123
|
}
|
|
124
|
+
}
|
|
87
125
|
}
|
|
88
126
|
return null;
|
|
89
127
|
}
|
|
90
|
-
|
|
91
|
-
|
|
128
|
+
var $ = Object.assign, z = 0, se, pe, be, je, we, ye, Ne;
|
|
129
|
+
function Ce() {
|
|
130
|
+
}
|
|
131
|
+
Ce.__reactDisabledLog = !0;
|
|
132
|
+
function Ke() {
|
|
133
|
+
{
|
|
134
|
+
if (z === 0) {
|
|
135
|
+
se = console.log, pe = console.info, be = console.warn, je = console.error, we = console.group, ye = console.groupCollapsed, Ne = console.groupEnd;
|
|
136
|
+
var e = {
|
|
137
|
+
configurable: !0,
|
|
138
|
+
enumerable: !0,
|
|
139
|
+
value: Ce,
|
|
140
|
+
writable: !0
|
|
141
|
+
};
|
|
142
|
+
Object.defineProperties(console, {
|
|
143
|
+
info: e,
|
|
144
|
+
log: e,
|
|
145
|
+
warn: e,
|
|
146
|
+
error: e,
|
|
147
|
+
group: e,
|
|
148
|
+
groupCollapsed: e,
|
|
149
|
+
groupEnd: e
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
z++;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function Xe() {
|
|
156
|
+
{
|
|
157
|
+
if (z--, z === 0) {
|
|
158
|
+
var e = {
|
|
159
|
+
configurable: !0,
|
|
160
|
+
enumerable: !0,
|
|
161
|
+
writable: !0
|
|
162
|
+
};
|
|
163
|
+
Object.defineProperties(console, {
|
|
164
|
+
log: $({}, e, {
|
|
165
|
+
value: se
|
|
166
|
+
}),
|
|
167
|
+
info: $({}, e, {
|
|
168
|
+
value: pe
|
|
169
|
+
}),
|
|
170
|
+
warn: $({}, e, {
|
|
171
|
+
value: be
|
|
172
|
+
}),
|
|
173
|
+
error: $({}, e, {
|
|
174
|
+
value: je
|
|
175
|
+
}),
|
|
176
|
+
group: $({}, e, {
|
|
177
|
+
value: we
|
|
178
|
+
}),
|
|
179
|
+
groupCollapsed: $({}, e, {
|
|
180
|
+
value: ye
|
|
181
|
+
}),
|
|
182
|
+
groupEnd: $({}, e, {
|
|
183
|
+
value: Ne
|
|
184
|
+
})
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
z < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
var ce = T.ReactCurrentDispatcher, ue;
|
|
191
|
+
function ae(e, s, o) {
|
|
192
|
+
{
|
|
193
|
+
if (ue === void 0)
|
|
194
|
+
try {
|
|
195
|
+
throw Error();
|
|
196
|
+
} catch (_) {
|
|
197
|
+
var b = _.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
ue = b && b[1] || "";
|
|
199
|
+
}
|
|
200
|
+
return `
|
|
201
|
+
` + ue + e;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
var de = !1, ie;
|
|
205
|
+
{
|
|
206
|
+
var Ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
ie = new Ze();
|
|
92
208
|
}
|
|
93
|
-
function
|
|
209
|
+
function _e(e, s) {
|
|
210
|
+
if (!e || de)
|
|
211
|
+
return "";
|
|
212
|
+
{
|
|
213
|
+
var o = ie.get(e);
|
|
214
|
+
if (o !== void 0)
|
|
215
|
+
return o;
|
|
216
|
+
}
|
|
217
|
+
var b;
|
|
218
|
+
de = !0;
|
|
219
|
+
var _ = Error.prepareStackTrace;
|
|
220
|
+
Error.prepareStackTrace = void 0;
|
|
221
|
+
var R;
|
|
222
|
+
R = ce.current, ce.current = null, Ke();
|
|
94
223
|
try {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
224
|
+
if (s) {
|
|
225
|
+
var N = function() {
|
|
226
|
+
throw Error();
|
|
227
|
+
};
|
|
228
|
+
if (Object.defineProperty(N.prototype, "props", {
|
|
229
|
+
set: function() {
|
|
230
|
+
throw Error();
|
|
231
|
+
}
|
|
232
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
+
try {
|
|
234
|
+
Reflect.construct(N, []);
|
|
235
|
+
} catch (A) {
|
|
236
|
+
b = A;
|
|
237
|
+
}
|
|
238
|
+
Reflect.construct(e, [], N);
|
|
239
|
+
} else {
|
|
240
|
+
try {
|
|
241
|
+
N.call();
|
|
242
|
+
} catch (A) {
|
|
243
|
+
b = A;
|
|
244
|
+
}
|
|
245
|
+
e.call(N.prototype);
|
|
246
|
+
}
|
|
247
|
+
} else {
|
|
248
|
+
try {
|
|
249
|
+
throw Error();
|
|
250
|
+
} catch (A) {
|
|
251
|
+
b = A;
|
|
252
|
+
}
|
|
253
|
+
e();
|
|
254
|
+
}
|
|
255
|
+
} catch (A) {
|
|
256
|
+
if (A && b && typeof A.stack == "string") {
|
|
257
|
+
for (var y = A.stack.split(`
|
|
258
|
+
`), M = b.stack.split(`
|
|
259
|
+
`), L = y.length - 1, O = M.length - 1; L >= 1 && O >= 0 && y[L] !== M[O]; )
|
|
260
|
+
O--;
|
|
261
|
+
for (; L >= 1 && O >= 0; L--, O--)
|
|
262
|
+
if (y[L] !== M[O]) {
|
|
263
|
+
if (L !== 1 || O !== 1)
|
|
264
|
+
do
|
|
265
|
+
if (L--, O--, O < 0 || y[L] !== M[O]) {
|
|
266
|
+
var F = `
|
|
267
|
+
` + y[L].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", e.displayName)), typeof e == "function" && ie.set(e, F), F;
|
|
269
|
+
}
|
|
270
|
+
while (L >= 1 && O >= 0);
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
} finally {
|
|
275
|
+
de = !1, ce.current = R, Xe(), Error.prepareStackTrace = _;
|
|
99
276
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
277
|
+
var J = e ? e.displayName || e.name : "", Y = J ? ae(J) : "";
|
|
278
|
+
return typeof e == "function" && ie.set(e, Y), Y;
|
|
279
|
+
}
|
|
280
|
+
function qe(e, s, o) {
|
|
281
|
+
return _e(e, !1);
|
|
282
|
+
}
|
|
283
|
+
function Qe(e) {
|
|
284
|
+
var s = e.prototype;
|
|
285
|
+
return !!(s && s.isReactComponent);
|
|
286
|
+
}
|
|
287
|
+
function le(e, s, o) {
|
|
288
|
+
if (e == null)
|
|
289
|
+
return "";
|
|
290
|
+
if (typeof e == "function")
|
|
291
|
+
return _e(e, Qe(e));
|
|
292
|
+
if (typeof e == "string")
|
|
293
|
+
return ae(e);
|
|
294
|
+
switch (e) {
|
|
295
|
+
case x:
|
|
296
|
+
return ae("Suspense");
|
|
297
|
+
case u:
|
|
298
|
+
return ae("SuspenseList");
|
|
108
299
|
}
|
|
300
|
+
if (typeof e == "object")
|
|
301
|
+
switch (e.$$typeof) {
|
|
302
|
+
case c:
|
|
303
|
+
return qe(e.render);
|
|
304
|
+
case j:
|
|
305
|
+
return le(e.type, s, o);
|
|
306
|
+
case g: {
|
|
307
|
+
var b = e, _ = b._payload, R = b._init;
|
|
308
|
+
try {
|
|
309
|
+
return le(R(_), s, o);
|
|
310
|
+
} catch {
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
return "";
|
|
315
|
+
}
|
|
316
|
+
var Q = Object.prototype.hasOwnProperty, ke = {}, Ee = T.ReactDebugCurrentFrame;
|
|
317
|
+
function oe(e) {
|
|
318
|
+
if (e) {
|
|
319
|
+
var s = e._owner, o = le(e.type, e._source, s ? s.type : null);
|
|
320
|
+
Ee.setExtraStackFrame(o);
|
|
321
|
+
} else
|
|
322
|
+
Ee.setExtraStackFrame(null);
|
|
109
323
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
324
|
+
function et(e, s, o, b, _) {
|
|
325
|
+
{
|
|
326
|
+
var R = Function.call.bind(Q);
|
|
327
|
+
for (var N in e)
|
|
328
|
+
if (R(e, N)) {
|
|
329
|
+
var y = void 0;
|
|
330
|
+
try {
|
|
331
|
+
if (typeof e[N] != "function") {
|
|
332
|
+
var M = Error((b || "React class") + ": " + o + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw M.name = "Invariant Violation", M;
|
|
334
|
+
}
|
|
335
|
+
y = e[N](s, N, b, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
+
} catch (L) {
|
|
337
|
+
y = L;
|
|
338
|
+
}
|
|
339
|
+
y && !(y instanceof Error) && (oe(_), 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).", b || "React class", o, N, typeof y), oe(null)), y instanceof Error && !(y.message in ke) && (ke[y.message] = !0, oe(_), E("Failed %s type: %s", o, y.message), oe(null));
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
var tt = Array.isArray;
|
|
344
|
+
function fe(e) {
|
|
345
|
+
return tt(e);
|
|
346
|
+
}
|
|
347
|
+
function rt(e) {
|
|
348
|
+
{
|
|
349
|
+
var s = typeof Symbol == "function" && Symbol.toStringTag, o = s && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
+
return o;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
function nt(e) {
|
|
114
354
|
try {
|
|
115
|
-
|
|
116
|
-
return v ? "<" + v + ">" : "<...>";
|
|
355
|
+
return Re(e), !1;
|
|
117
356
|
} catch {
|
|
118
|
-
return
|
|
357
|
+
return !0;
|
|
119
358
|
}
|
|
120
359
|
}
|
|
121
|
-
function
|
|
122
|
-
|
|
123
|
-
return s === null ? null : s.getOwner();
|
|
360
|
+
function Re(e) {
|
|
361
|
+
return "" + e;
|
|
124
362
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
363
|
+
function Se(e) {
|
|
364
|
+
if (nt(e))
|
|
365
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rt(e)), Re(e);
|
|
127
366
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
367
|
+
var Te = T.ReactCurrentOwner, st = {
|
|
368
|
+
key: !0,
|
|
369
|
+
ref: !0,
|
|
370
|
+
__self: !0,
|
|
371
|
+
__source: !0
|
|
372
|
+
}, Le, Ie;
|
|
373
|
+
function at(e) {
|
|
374
|
+
if (Q.call(e, "ref")) {
|
|
375
|
+
var s = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
|
+
if (s && s.isReactWarning)
|
|
377
|
+
return !1;
|
|
132
378
|
}
|
|
133
|
-
return
|
|
379
|
+
return e.ref !== void 0;
|
|
134
380
|
}
|
|
135
|
-
function
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
));
|
|
381
|
+
function it(e) {
|
|
382
|
+
if (Q.call(e, "key")) {
|
|
383
|
+
var s = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
|
+
if (s && s.isReactWarning)
|
|
385
|
+
return !1;
|
|
141
386
|
}
|
|
142
|
-
|
|
143
|
-
get: N,
|
|
144
|
-
configurable: !0
|
|
145
|
-
});
|
|
387
|
+
return e.key !== void 0;
|
|
146
388
|
}
|
|
147
|
-
function
|
|
148
|
-
|
|
149
|
-
return P[s] || (P[s] = !0, console.error(
|
|
150
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
|
-
)), s = this.props.ref, s !== void 0 ? s : null;
|
|
389
|
+
function lt(e, s) {
|
|
390
|
+
typeof e.ref == "string" && Te.current;
|
|
152
391
|
}
|
|
153
|
-
function
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
392
|
+
function ot(e, s) {
|
|
393
|
+
{
|
|
394
|
+
var o = function() {
|
|
395
|
+
Le || (Le = !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)", s));
|
|
396
|
+
};
|
|
397
|
+
o.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
|
+
get: o,
|
|
399
|
+
configurable: !0
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
function ct(e, s) {
|
|
404
|
+
{
|
|
405
|
+
var o = function() {
|
|
406
|
+
Ie || (Ie = !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)", s));
|
|
407
|
+
};
|
|
408
|
+
o.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
|
+
get: o,
|
|
410
|
+
configurable: !0
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
var ut = function(e, s, o, b, _, R, N) {
|
|
415
|
+
var y = {
|
|
416
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
+
$$typeof: a,
|
|
418
|
+
// Built-in properties that belong on the element
|
|
419
|
+
type: e,
|
|
420
|
+
key: s,
|
|
421
|
+
ref: o,
|
|
422
|
+
props: N,
|
|
423
|
+
// Record the component responsible for creating this element.
|
|
424
|
+
_owner: R
|
|
425
|
+
};
|
|
426
|
+
return y._store = {}, Object.defineProperty(y._store, "validated", {
|
|
169
427
|
configurable: !1,
|
|
170
428
|
enumerable: !1,
|
|
171
429
|
writable: !0,
|
|
172
|
-
value:
|
|
173
|
-
}), Object.defineProperty(
|
|
430
|
+
value: !1
|
|
431
|
+
}), Object.defineProperty(y, "_self", {
|
|
174
432
|
configurable: !1,
|
|
175
433
|
enumerable: !1,
|
|
176
|
-
writable: !
|
|
177
|
-
value:
|
|
178
|
-
}), Object.defineProperty(
|
|
434
|
+
writable: !1,
|
|
435
|
+
value: b
|
|
436
|
+
}), Object.defineProperty(y, "_source", {
|
|
179
437
|
configurable: !1,
|
|
180
438
|
enumerable: !1,
|
|
181
|
-
writable: !
|
|
182
|
-
value:
|
|
183
|
-
}), Object.freeze && (Object.freeze(
|
|
439
|
+
writable: !1,
|
|
440
|
+
value: _
|
|
441
|
+
}), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
|
|
442
|
+
};
|
|
443
|
+
function dt(e, s, o, b, _) {
|
|
444
|
+
{
|
|
445
|
+
var R, N = {}, y = null, M = null;
|
|
446
|
+
o !== void 0 && (Se(o), y = "" + o), it(s) && (Se(s.key), y = "" + s.key), at(s) && (M = s.ref, lt(s, _));
|
|
447
|
+
for (R in s)
|
|
448
|
+
Q.call(s, R) && !st.hasOwnProperty(R) && (N[R] = s[R]);
|
|
449
|
+
if (e && e.defaultProps) {
|
|
450
|
+
var L = e.defaultProps;
|
|
451
|
+
for (R in L)
|
|
452
|
+
N[R] === void 0 && (N[R] = L[R]);
|
|
453
|
+
}
|
|
454
|
+
if (y || M) {
|
|
455
|
+
var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
+
y && ot(N, O), M && ct(N, O);
|
|
457
|
+
}
|
|
458
|
+
return ut(e, y, M, _, b, Te.current, N);
|
|
459
|
+
}
|
|
184
460
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
if (
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
461
|
+
var he = T.ReactCurrentOwner, Oe = T.ReactDebugCurrentFrame;
|
|
462
|
+
function H(e) {
|
|
463
|
+
if (e) {
|
|
464
|
+
var s = e._owner, o = le(e.type, e._source, s ? s.type : null);
|
|
465
|
+
Oe.setExtraStackFrame(o);
|
|
466
|
+
} else
|
|
467
|
+
Oe.setExtraStackFrame(null);
|
|
468
|
+
}
|
|
469
|
+
var ve;
|
|
470
|
+
ve = !1;
|
|
471
|
+
function me(e) {
|
|
472
|
+
return typeof e == "object" && e !== null && e.$$typeof === a;
|
|
473
|
+
}
|
|
474
|
+
function $e() {
|
|
475
|
+
{
|
|
476
|
+
if (he.current) {
|
|
477
|
+
var e = S(he.current.type);
|
|
478
|
+
if (e)
|
|
479
|
+
return `
|
|
480
|
+
|
|
481
|
+
Check the render method of \`` + e + "`.";
|
|
482
|
+
}
|
|
483
|
+
return "";
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
function ft(e) {
|
|
487
|
+
return "";
|
|
488
|
+
}
|
|
489
|
+
var Me = {};
|
|
490
|
+
function ht(e) {
|
|
491
|
+
{
|
|
492
|
+
var s = $e();
|
|
493
|
+
if (!s) {
|
|
494
|
+
var o = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
|
+
o && (s = `
|
|
496
|
+
|
|
497
|
+
Check the top-level render call using <` + o + ">.");
|
|
498
|
+
}
|
|
499
|
+
return s;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
function ze(e, s) {
|
|
503
|
+
{
|
|
504
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
505
|
+
return;
|
|
506
|
+
e._store.validated = !0;
|
|
507
|
+
var o = ht(s);
|
|
508
|
+
if (Me[o])
|
|
509
|
+
return;
|
|
510
|
+
Me[o] = !0;
|
|
511
|
+
var b = "";
|
|
512
|
+
e && e._owner && e._owner !== he.current && (b = " It was passed a child from " + S(e._owner.type) + "."), H(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.', o, b), H(null);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
function Ae(e, s) {
|
|
516
|
+
{
|
|
517
|
+
if (typeof e != "object")
|
|
518
|
+
return;
|
|
519
|
+
if (fe(e))
|
|
520
|
+
for (var o = 0; o < e.length; o++) {
|
|
521
|
+
var b = e[o];
|
|
522
|
+
me(b) && ze(b, s);
|
|
523
|
+
}
|
|
524
|
+
else if (me(e))
|
|
525
|
+
e._store && (e._store.validated = !0);
|
|
526
|
+
else if (e) {
|
|
527
|
+
var _ = m(e);
|
|
528
|
+
if (typeof _ == "function" && _ !== e.entries)
|
|
529
|
+
for (var R = _.call(e), N; !(N = R.next()).done; )
|
|
530
|
+
me(N.value) && ze(N.value, s);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
function vt(e) {
|
|
535
|
+
{
|
|
536
|
+
var s = e.type;
|
|
537
|
+
if (s == null || typeof s == "string")
|
|
538
|
+
return;
|
|
539
|
+
var o;
|
|
540
|
+
if (typeof s == "function")
|
|
541
|
+
o = s.propTypes;
|
|
542
|
+
else if (typeof s == "object" && (s.$$typeof === c || // Note: Memo only checks outer props here.
|
|
543
|
+
// Inner props are checked in the reconciler.
|
|
544
|
+
s.$$typeof === j))
|
|
545
|
+
o = s.propTypes;
|
|
546
|
+
else
|
|
547
|
+
return;
|
|
548
|
+
if (o) {
|
|
549
|
+
var b = S(s);
|
|
550
|
+
et(o, e.props, "prop", b, e);
|
|
551
|
+
} else if (s.PropTypes !== void 0 && !ve) {
|
|
552
|
+
ve = !0;
|
|
553
|
+
var _ = S(s);
|
|
554
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
|
|
555
|
+
}
|
|
556
|
+
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
function mt(e) {
|
|
560
|
+
{
|
|
561
|
+
for (var s = Object.keys(e.props), o = 0; o < s.length; o++) {
|
|
562
|
+
var b = s[o];
|
|
563
|
+
if (b !== "children" && b !== "key") {
|
|
564
|
+
H(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), H(null);
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
e.ref !== null && (H(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), H(null));
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
var De = {};
|
|
572
|
+
function Fe(e, s, o, b, _, R) {
|
|
573
|
+
{
|
|
574
|
+
var N = B(e);
|
|
575
|
+
if (!N) {
|
|
576
|
+
var y = "";
|
|
577
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
|
+
var M = ft();
|
|
579
|
+
M ? y += M : y += $e();
|
|
580
|
+
var L;
|
|
581
|
+
e === null ? L = "null" : fe(e) ? L = "array" : e !== void 0 && e.$$typeof === a ? (L = "<" + (S(e.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : L = 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, y);
|
|
582
|
+
}
|
|
583
|
+
var O = dt(e, s, o, _, R);
|
|
584
|
+
if (O == null)
|
|
585
|
+
return O;
|
|
586
|
+
if (N) {
|
|
587
|
+
var F = s.children;
|
|
588
|
+
if (F !== void 0)
|
|
589
|
+
if (b)
|
|
590
|
+
if (fe(F)) {
|
|
591
|
+
for (var J = 0; J < F.length; J++)
|
|
592
|
+
Ae(F[J], e);
|
|
593
|
+
Object.freeze && Object.freeze(F);
|
|
594
|
+
} else
|
|
595
|
+
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.");
|
|
596
|
+
else
|
|
597
|
+
Ae(F, e);
|
|
598
|
+
}
|
|
599
|
+
if (Q.call(s, "key")) {
|
|
600
|
+
var Y = S(e), A = Object.keys(s).filter(function(wt) {
|
|
601
|
+
return wt !== "key";
|
|
602
|
+
}), ge = A.length > 0 ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!De[Y + ge]) {
|
|
604
|
+
var jt = A.length > 0 ? "{" + A.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
+
E(`A props object containing a "key" prop is being spread into JSX:
|
|
205
606
|
let props = %s;
|
|
206
607
|
<%s {...props} />
|
|
207
608
|
React keys must be passed directly to JSX without using spread:
|
|
208
609
|
let props = %s;
|
|
209
|
-
<%s key={someKey} {...props} />`,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
T
|
|
214
|
-
), ne[T + E] = !0);
|
|
610
|
+
<%s key={someKey} {...props} />`, ge, Y, jt, Y), De[Y + ge] = !0;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
return e === l ? mt(O) : vt(O), O;
|
|
215
614
|
}
|
|
216
|
-
if (T = null, N !== void 0 && (n(N), T = "" + N), o(v) && (n(v.key), T = "" + v.key), "key" in v) {
|
|
217
|
-
N = {};
|
|
218
|
-
for (var Q in v)
|
|
219
|
-
Q !== "key" && (N[Q] = v[Q]);
|
|
220
|
-
} else N = v;
|
|
221
|
-
return T && c(
|
|
222
|
-
N,
|
|
223
|
-
typeof s == "function" ? s.displayName || s.name || "Unknown" : s
|
|
224
|
-
), b(
|
|
225
|
-
s,
|
|
226
|
-
T,
|
|
227
|
-
A,
|
|
228
|
-
M,
|
|
229
|
-
r(),
|
|
230
|
-
N,
|
|
231
|
-
J,
|
|
232
|
-
q
|
|
233
|
-
);
|
|
234
615
|
}
|
|
235
|
-
function
|
|
236
|
-
|
|
616
|
+
function gt(e, s, o) {
|
|
617
|
+
return Fe(e, s, o, !0);
|
|
237
618
|
}
|
|
238
|
-
|
|
239
|
-
return
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
var _, P = {}, ee = h.react_stack_bottom_frame.bind(
|
|
247
|
-
h,
|
|
248
|
-
i
|
|
249
|
-
)(), te = R(l(i)), ne = {};
|
|
250
|
-
G.Fragment = w, G.jsx = function(s, v, N, E, M) {
|
|
251
|
-
var A = 1e4 > p.recentlyCreatedOwnerStacks++;
|
|
252
|
-
return m(
|
|
253
|
-
s,
|
|
254
|
-
v,
|
|
255
|
-
N,
|
|
256
|
-
!1,
|
|
257
|
-
E,
|
|
258
|
-
M,
|
|
259
|
-
A ? Error("react-stack-top-frame") : ee,
|
|
260
|
-
A ? R(l(s)) : te
|
|
261
|
-
);
|
|
262
|
-
}, G.jsxs = function(s, v, N, E, M) {
|
|
263
|
-
var A = 1e4 > p.recentlyCreatedOwnerStacks++;
|
|
264
|
-
return m(
|
|
265
|
-
s,
|
|
266
|
-
v,
|
|
267
|
-
N,
|
|
268
|
-
!0,
|
|
269
|
-
E,
|
|
270
|
-
M,
|
|
271
|
-
A ? Error("react-stack-top-frame") : ee,
|
|
272
|
-
A ? R(l(s)) : te
|
|
273
|
-
);
|
|
274
|
-
};
|
|
275
|
-
}()), G;
|
|
619
|
+
function xt(e, s, o) {
|
|
620
|
+
return Fe(e, s, o, !1);
|
|
621
|
+
}
|
|
622
|
+
var pt = xt, bt = gt;
|
|
623
|
+
te.Fragment = l, te.jsx = pt, te.jsxs = bt;
|
|
624
|
+
}()), te;
|
|
276
625
|
}
|
|
277
|
-
process.env.NODE_ENV === "production" ?
|
|
278
|
-
var
|
|
279
|
-
function
|
|
626
|
+
process.env.NODE_ENV === "production" ? xe.exports = _t() : xe.exports = kt();
|
|
627
|
+
var t = xe.exports;
|
|
628
|
+
function Ge(r) {
|
|
280
629
|
var a, n, l = "";
|
|
281
|
-
if (typeof
|
|
282
|
-
else if (typeof
|
|
283
|
-
var
|
|
284
|
-
for (a = 0; a <
|
|
285
|
-
} else for (n in
|
|
630
|
+
if (typeof r == "string" || typeof r == "number") l += r;
|
|
631
|
+
else if (typeof r == "object") if (Array.isArray(r)) {
|
|
632
|
+
var i = r.length;
|
|
633
|
+
for (a = 0; a < i; a++) r[a] && (n = Ge(r[a])) && (l && (l += " "), l += n);
|
|
634
|
+
} else for (n in r) r[n] && (l && (l += " "), l += n);
|
|
286
635
|
return l;
|
|
287
636
|
}
|
|
288
|
-
function
|
|
289
|
-
for (var
|
|
637
|
+
function Et() {
|
|
638
|
+
for (var r, a, n = 0, l = "", i = arguments.length; n < i; n++) (r = arguments[n]) && (a = Ge(r)) && (l && (l += " "), l += a);
|
|
290
639
|
return l;
|
|
291
640
|
}
|
|
292
|
-
const
|
|
641
|
+
const We = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, Pe = Et, P = (r, a) => (n) => {
|
|
293
642
|
var l;
|
|
294
|
-
if ((a == null ? void 0 : a.variants) == null) return
|
|
295
|
-
const { variants:
|
|
296
|
-
const
|
|
297
|
-
if (
|
|
298
|
-
const
|
|
299
|
-
return
|
|
300
|
-
}),
|
|
301
|
-
let [
|
|
302
|
-
return
|
|
303
|
-
}, {}),
|
|
304
|
-
let { class:
|
|
305
|
-
return Object.entries(
|
|
306
|
-
let [
|
|
307
|
-
return Array.isArray(
|
|
308
|
-
...
|
|
309
|
-
...
|
|
310
|
-
}[
|
|
311
|
-
...
|
|
312
|
-
...
|
|
313
|
-
}[
|
|
643
|
+
if ((a == null ? void 0 : a.variants) == null) return Pe(r, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
644
|
+
const { variants: i, defaultVariants: h } = a, d = Object.keys(i).map((x) => {
|
|
645
|
+
const u = n == null ? void 0 : n[x], j = h == null ? void 0 : h[x];
|
|
646
|
+
if (u === null) return null;
|
|
647
|
+
const g = We(u) || We(j);
|
|
648
|
+
return i[x][g];
|
|
649
|
+
}), f = n && Object.entries(n).reduce((x, u) => {
|
|
650
|
+
let [j, g] = u;
|
|
651
|
+
return g === void 0 || (x[j] = g), x;
|
|
652
|
+
}, {}), c = a == null || (l = a.compoundVariants) === null || l === void 0 ? void 0 : l.reduce((x, u) => {
|
|
653
|
+
let { class: j, className: g, ...v } = u;
|
|
654
|
+
return Object.entries(v).every((w) => {
|
|
655
|
+
let [p, m] = w;
|
|
656
|
+
return Array.isArray(m) ? m.includes({
|
|
657
|
+
...h,
|
|
658
|
+
...f
|
|
659
|
+
}[p]) : {
|
|
660
|
+
...h,
|
|
661
|
+
...f
|
|
662
|
+
}[p] === m;
|
|
314
663
|
}) ? [
|
|
315
|
-
...
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
] :
|
|
664
|
+
...x,
|
|
665
|
+
j,
|
|
666
|
+
g
|
|
667
|
+
] : x;
|
|
319
668
|
}, []);
|
|
320
|
-
return
|
|
321
|
-
},
|
|
669
|
+
return Pe(r, d, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
670
|
+
}, Rt = P("button", {
|
|
322
671
|
variants: {
|
|
323
672
|
variant: {
|
|
324
673
|
outlined: "button-outlined",
|
|
@@ -379,135 +728,135 @@ const ae = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, le = ge, O
|
|
|
379
728
|
{ variant: "icon", color: "error", className: "button-icon-error" },
|
|
380
729
|
{ variant: "icon", color: "clear", className: "button-icon-clear" }
|
|
381
730
|
]
|
|
382
|
-
}),
|
|
731
|
+
}), St = W(
|
|
383
732
|
({
|
|
384
|
-
className:
|
|
733
|
+
className: r,
|
|
385
734
|
variant: a,
|
|
386
735
|
color: n,
|
|
387
736
|
size: l,
|
|
388
|
-
pill:
|
|
389
|
-
active:
|
|
390
|
-
iconLeft:
|
|
391
|
-
iconRight:
|
|
392
|
-
iconLeftJustified:
|
|
393
|
-
iconRightJustified:
|
|
394
|
-
iconOnly:
|
|
395
|
-
width:
|
|
396
|
-
children:
|
|
397
|
-
style:
|
|
398
|
-
...
|
|
399
|
-
},
|
|
400
|
-
const
|
|
401
|
-
...
|
|
402
|
-
...
|
|
737
|
+
pill: i,
|
|
738
|
+
active: h,
|
|
739
|
+
iconLeft: d,
|
|
740
|
+
iconRight: f,
|
|
741
|
+
iconLeftJustified: c,
|
|
742
|
+
iconRightJustified: x,
|
|
743
|
+
iconOnly: u,
|
|
744
|
+
width: j,
|
|
745
|
+
children: g,
|
|
746
|
+
style: v,
|
|
747
|
+
...w
|
|
748
|
+
}, p) => {
|
|
749
|
+
const m = {
|
|
750
|
+
...v || {},
|
|
751
|
+
...j ? { width: j } : {}
|
|
403
752
|
};
|
|
404
|
-
return /* @__PURE__ */
|
|
753
|
+
return /* @__PURE__ */ t.jsxs(
|
|
405
754
|
"button",
|
|
406
755
|
{
|
|
407
|
-
className:
|
|
756
|
+
className: Rt({
|
|
408
757
|
variant: a,
|
|
409
758
|
color: n,
|
|
410
759
|
size: l,
|
|
411
|
-
pill:
|
|
412
|
-
active:
|
|
413
|
-
iconLeft: !!
|
|
414
|
-
iconRight: !!
|
|
415
|
-
iconLeftJustified: !!
|
|
416
|
-
iconRightJustified: !!
|
|
417
|
-
iconOnly: !!
|
|
418
|
-
className:
|
|
760
|
+
pill: i,
|
|
761
|
+
active: h,
|
|
762
|
+
iconLeft: !!d,
|
|
763
|
+
iconRight: !!f,
|
|
764
|
+
iconLeftJustified: !!c,
|
|
765
|
+
iconRightJustified: !!x,
|
|
766
|
+
iconOnly: !!u,
|
|
767
|
+
className: r
|
|
419
768
|
}),
|
|
420
|
-
style:
|
|
421
|
-
ref:
|
|
422
|
-
...
|
|
769
|
+
style: m,
|
|
770
|
+
ref: p,
|
|
771
|
+
...w,
|
|
423
772
|
children: [
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
773
|
+
d && /* @__PURE__ */ t.jsx("span", { className: "button-icon-left", children: d }),
|
|
774
|
+
c && /* @__PURE__ */ t.jsx("span", { className: "button-icon-left", children: c }),
|
|
775
|
+
u ? /* @__PURE__ */ t.jsx("span", { children: u }) : g,
|
|
776
|
+
f && /* @__PURE__ */ t.jsx("span", { className: "button-icon-right", children: f }),
|
|
777
|
+
x && /* @__PURE__ */ t.jsx("span", { className: "button-icon-right", children: x })
|
|
429
778
|
]
|
|
430
779
|
}
|
|
431
780
|
);
|
|
432
781
|
}
|
|
433
782
|
);
|
|
434
|
-
|
|
435
|
-
const
|
|
783
|
+
St.displayName = "Button";
|
|
784
|
+
const Tt = ({ className: r }) => /* @__PURE__ */ t.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: r, 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" }) }), Lt = () => {
|
|
436
785
|
try {
|
|
437
|
-
const
|
|
438
|
-
return
|
|
786
|
+
const r = require("react-router-dom");
|
|
787
|
+
return r != null && r.Link ? r.Link : null;
|
|
439
788
|
} catch {
|
|
440
789
|
return null;
|
|
441
790
|
}
|
|
442
|
-
},
|
|
443
|
-
const
|
|
444
|
-
return
|
|
445
|
-
|
|
446
|
-
{ to:
|
|
447
|
-
|
|
448
|
-
) :
|
|
791
|
+
}, Ye = ({ to: r, href: a, className: n, onClick: l, children: i }) => {
|
|
792
|
+
const h = Lt();
|
|
793
|
+
return h ? re.createElement(
|
|
794
|
+
h,
|
|
795
|
+
{ to: r, className: n, onClick: l },
|
|
796
|
+
i
|
|
797
|
+
) : re.createElement(
|
|
449
798
|
"a",
|
|
450
|
-
{ href: a ||
|
|
451
|
-
|
|
799
|
+
{ href: a || r, className: n, onClick: l },
|
|
800
|
+
i
|
|
452
801
|
);
|
|
453
|
-
},
|
|
454
|
-
icon:
|
|
802
|
+
}, It = ({
|
|
803
|
+
icon: r,
|
|
455
804
|
url: a,
|
|
456
805
|
label: n,
|
|
457
806
|
submenu: l,
|
|
458
|
-
collapsed:
|
|
459
|
-
active:
|
|
460
|
-
activePath:
|
|
461
|
-
isOpen:
|
|
462
|
-
onToggle:
|
|
463
|
-
onExpand:
|
|
464
|
-
onSetActive:
|
|
465
|
-
isMobile:
|
|
807
|
+
collapsed: i,
|
|
808
|
+
active: h,
|
|
809
|
+
activePath: d,
|
|
810
|
+
isOpen: f,
|
|
811
|
+
onToggle: c,
|
|
812
|
+
onExpand: x,
|
|
813
|
+
onSetActive: u,
|
|
814
|
+
isMobile: j = !1
|
|
466
815
|
}) => {
|
|
467
|
-
const
|
|
468
|
-
if (
|
|
469
|
-
|
|
816
|
+
const g = l && l.length > 0, v = g && l.some((m) => m.url === d), w = h || f && g || v || a === d, p = (m) => {
|
|
817
|
+
if (m.preventDefault(), j && g) {
|
|
818
|
+
c();
|
|
470
819
|
return;
|
|
471
820
|
}
|
|
472
|
-
if (
|
|
473
|
-
|
|
821
|
+
if (u && u(a), i && x) {
|
|
822
|
+
x();
|
|
474
823
|
return;
|
|
475
824
|
}
|
|
476
|
-
|
|
825
|
+
g && !i && c();
|
|
477
826
|
};
|
|
478
|
-
return /* @__PURE__ */
|
|
479
|
-
/* @__PURE__ */
|
|
480
|
-
|
|
827
|
+
return /* @__PURE__ */ t.jsx("div", { className: `sidebar-item ${f ? "open" : ""} `, children: /* @__PURE__ */ t.jsxs("div", { className: `sidebar-item-wrapper ${w && !i ? "active" : ""}`, children: [
|
|
828
|
+
/* @__PURE__ */ t.jsxs(
|
|
829
|
+
Ye,
|
|
481
830
|
{
|
|
482
831
|
to: a,
|
|
483
832
|
href: a,
|
|
484
|
-
className: `sidebar-link sidebar-collapsed ${
|
|
485
|
-
onClick:
|
|
833
|
+
className: `sidebar-link sidebar-collapsed ${w ? "active-text" : ""}`,
|
|
834
|
+
onClick: p,
|
|
486
835
|
children: [
|
|
487
|
-
/* @__PURE__ */
|
|
488
|
-
(!
|
|
489
|
-
/* @__PURE__ */
|
|
490
|
-
|
|
836
|
+
/* @__PURE__ */ t.jsx("div", { className: `sidebar-icon ${w ? "active-text" : ""}`, children: r }),
|
|
837
|
+
(!i || j) && /* @__PURE__ */ t.jsxs("div", { className: "sidebar-content", children: [
|
|
838
|
+
/* @__PURE__ */ t.jsx("span", { className: "sidebar-label", children: n }),
|
|
839
|
+
g && /* @__PURE__ */ t.jsx("span", { className: "submenu-arrow", children: /* @__PURE__ */ t.jsx(Tt, { className: `${w ? "active-text" : ""}` }) })
|
|
491
840
|
] })
|
|
492
841
|
]
|
|
493
842
|
}
|
|
494
843
|
),
|
|
495
|
-
|
|
496
|
-
const
|
|
497
|
-
return /* @__PURE__ */
|
|
498
|
-
|
|
844
|
+
g && (!i || j) && /* @__PURE__ */ t.jsx("div", { className: "submenu", children: l.map((m, T) => {
|
|
845
|
+
const E = m.url === d;
|
|
846
|
+
return /* @__PURE__ */ t.jsx(
|
|
847
|
+
Ye,
|
|
499
848
|
{
|
|
500
|
-
to:
|
|
501
|
-
href:
|
|
502
|
-
className: `submenu-item ${
|
|
503
|
-
onClick: () =>
|
|
504
|
-
children: /* @__PURE__ */
|
|
849
|
+
to: m.url,
|
|
850
|
+
href: m.url,
|
|
851
|
+
className: `submenu-item ${E ? "active-text" : ""}`,
|
|
852
|
+
onClick: () => u && u(m.url),
|
|
853
|
+
children: /* @__PURE__ */ t.jsx("span", { className: "submenu-label", children: m.label })
|
|
505
854
|
},
|
|
506
|
-
|
|
855
|
+
T
|
|
507
856
|
);
|
|
508
857
|
}) })
|
|
509
858
|
] }) });
|
|
510
|
-
},
|
|
859
|
+
}, Ot = ({ className: r }) => /* @__PURE__ */ t.jsxs(
|
|
511
860
|
"svg",
|
|
512
861
|
{
|
|
513
862
|
width: "28",
|
|
@@ -515,14 +864,14 @@ const we = ({ className: t }) => /* @__PURE__ */ e.jsx("svg", { width: "24", hei
|
|
|
515
864
|
viewBox: "0 0 28 28",
|
|
516
865
|
fill: "none",
|
|
517
866
|
xmlns: "http://www.w3.org/2000/svg",
|
|
518
|
-
className:
|
|
867
|
+
className: r,
|
|
519
868
|
children: [
|
|
520
|
-
/* @__PURE__ */
|
|
521
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ t.jsx("circle", { cx: "14", cy: "14", r: "14", fill: "#00F7AA" }),
|
|
870
|
+
/* @__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" })
|
|
522
871
|
]
|
|
523
872
|
}
|
|
524
|
-
),
|
|
525
|
-
/* @__PURE__ */
|
|
873
|
+
), 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: [
|
|
874
|
+
/* @__PURE__ */ t.jsx(
|
|
526
875
|
"line",
|
|
527
876
|
{
|
|
528
877
|
x1: "4",
|
|
@@ -535,7 +884,7 @@ const we = ({ className: t }) => /* @__PURE__ */ e.jsx("svg", { width: "24", hei
|
|
|
535
884
|
className: "hamburger-line top-line"
|
|
536
885
|
}
|
|
537
886
|
),
|
|
538
|
-
/* @__PURE__ */
|
|
887
|
+
/* @__PURE__ */ t.jsx(
|
|
539
888
|
"line",
|
|
540
889
|
{
|
|
541
890
|
x1: "4",
|
|
@@ -548,7 +897,7 @@ const we = ({ className: t }) => /* @__PURE__ */ e.jsx("svg", { width: "24", hei
|
|
|
548
897
|
className: "hamburger-line middle-line"
|
|
549
898
|
}
|
|
550
899
|
),
|
|
551
|
-
/* @__PURE__ */
|
|
900
|
+
/* @__PURE__ */ t.jsx(
|
|
552
901
|
"line",
|
|
553
902
|
{
|
|
554
903
|
x1: "4",
|
|
@@ -561,219 +910,219 @@ const we = ({ className: t }) => /* @__PURE__ */ e.jsx("svg", { width: "24", hei
|
|
|
561
910
|
className: "hamburger-line bottom-line"
|
|
562
911
|
}
|
|
563
912
|
)
|
|
564
|
-
] }) }),
|
|
565
|
-
logo:
|
|
913
|
+
] }) }), nr = ({
|
|
914
|
+
logo: r,
|
|
566
915
|
logoCollapsed: a,
|
|
567
916
|
items: n,
|
|
568
917
|
logoutIcon: l,
|
|
569
|
-
onLogout:
|
|
570
|
-
logoutLabel:
|
|
571
|
-
collapsed:
|
|
572
|
-
onToggle:
|
|
573
|
-
activePath:
|
|
574
|
-
onActiveChange:
|
|
918
|
+
onLogout: i,
|
|
919
|
+
logoutLabel: h = "Cerrar sesión",
|
|
920
|
+
collapsed: d = !1,
|
|
921
|
+
onToggle: f,
|
|
922
|
+
activePath: c,
|
|
923
|
+
onActiveChange: x
|
|
575
924
|
}) => {
|
|
576
|
-
const [
|
|
577
|
-
|
|
578
|
-
const
|
|
579
|
-
|
|
925
|
+
const [u, j] = V(d), [g, v] = V(null), [w, p] = V(c), [m, T] = V(!1), [E, D] = V(!1), [I, ne] = V(!1);
|
|
926
|
+
X(() => {
|
|
927
|
+
const C = () => {
|
|
928
|
+
ne(window.innerWidth <= 768);
|
|
580
929
|
};
|
|
581
|
-
return
|
|
582
|
-
window.removeEventListener("resize",
|
|
930
|
+
return C(), window.addEventListener("resize", C), () => {
|
|
931
|
+
window.removeEventListener("resize", C);
|
|
583
932
|
};
|
|
584
|
-
}, []),
|
|
585
|
-
var
|
|
586
|
-
if (
|
|
587
|
-
|
|
588
|
-
const
|
|
589
|
-
(
|
|
590
|
-
var
|
|
591
|
-
return
|
|
933
|
+
}, []), re.useEffect(() => {
|
|
934
|
+
var C;
|
|
935
|
+
if (c) {
|
|
936
|
+
p(c);
|
|
937
|
+
const k = n.findIndex(
|
|
938
|
+
(S) => {
|
|
939
|
+
var $;
|
|
940
|
+
return S.url === c || (($ = S.submenu) == null ? void 0 : $.some((z) => z.url === c));
|
|
592
941
|
}
|
|
593
942
|
);
|
|
594
|
-
|
|
943
|
+
k !== -1 && ((C = n[k].submenu) != null && C.length ? v(k) : v(null));
|
|
595
944
|
}
|
|
596
|
-
}, [
|
|
597
|
-
const
|
|
598
|
-
|
|
599
|
-
},
|
|
600
|
-
var
|
|
601
|
-
if (
|
|
602
|
-
if (
|
|
603
|
-
const
|
|
604
|
-
(
|
|
605
|
-
var
|
|
606
|
-
return
|
|
945
|
+
}, [c, n]);
|
|
946
|
+
const U = () => {
|
|
947
|
+
j(!u), f && f();
|
|
948
|
+
}, Z = () => {
|
|
949
|
+
var C;
|
|
950
|
+
if (u)
|
|
951
|
+
if (j(!1), f && f(), w) {
|
|
952
|
+
const k = n.findIndex(
|
|
953
|
+
(S) => {
|
|
954
|
+
var $;
|
|
955
|
+
return S.url === w || (($ = S.submenu) == null ? void 0 : $.some((z) => z.url === w));
|
|
607
956
|
}
|
|
608
957
|
);
|
|
609
|
-
|
|
958
|
+
k !== -1 && ((C = n[k].submenu) != null && C.length) ? v(k) : v(null);
|
|
610
959
|
} else
|
|
611
|
-
|
|
612
|
-
},
|
|
613
|
-
|
|
614
|
-
},
|
|
615
|
-
|
|
616
|
-
const
|
|
617
|
-
(
|
|
618
|
-
var
|
|
619
|
-
return
|
|
960
|
+
v(null);
|
|
961
|
+
}, q = (C) => {
|
|
962
|
+
v(g === C ? null : C), I && T(!0);
|
|
963
|
+
}, G = (C) => {
|
|
964
|
+
p(C);
|
|
965
|
+
const k = n.findIndex(
|
|
966
|
+
(S) => {
|
|
967
|
+
var $;
|
|
968
|
+
return S.url === C || (($ = S.submenu) == null ? void 0 : $.some((z) => z.url === C));
|
|
620
969
|
}
|
|
621
970
|
);
|
|
622
|
-
if (
|
|
623
|
-
const
|
|
624
|
-
|
|
971
|
+
if (k !== -1) {
|
|
972
|
+
const S = n[k];
|
|
973
|
+
S.submenu && S.submenu.length > 0 ? v(k) : v(null);
|
|
625
974
|
} else
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
(
|
|
629
|
-
var
|
|
630
|
-
return (
|
|
975
|
+
v(null);
|
|
976
|
+
x && x(C), I && (n.some(
|
|
977
|
+
($) => {
|
|
978
|
+
var z;
|
|
979
|
+
return (z = $.submenu) == null ? void 0 : z.some((se) => se.url === C);
|
|
631
980
|
}
|
|
632
|
-
) || (
|
|
633
|
-
|
|
981
|
+
) || (D(!0), setTimeout(() => {
|
|
982
|
+
T(!1), D(!1);
|
|
634
983
|
}, 500)));
|
|
635
|
-
},
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
}, 500)) :
|
|
984
|
+
}, B = () => {
|
|
985
|
+
m ? (D(!0), setTimeout(() => {
|
|
986
|
+
T(!1), D(!1);
|
|
987
|
+
}, 500)) : T(!0);
|
|
639
988
|
};
|
|
640
|
-
return /* @__PURE__ */
|
|
641
|
-
|
|
642
|
-
/* @__PURE__ */
|
|
643
|
-
/* @__PURE__ */
|
|
989
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
990
|
+
I && /* @__PURE__ */ t.jsxs("div", { className: "mobile-navbar", children: [
|
|
991
|
+
/* @__PURE__ */ t.jsx("div", { className: "mobile-logo", children: r }),
|
|
992
|
+
/* @__PURE__ */ t.jsx(
|
|
644
993
|
"button",
|
|
645
994
|
{
|
|
646
|
-
className: `mobile-menu-button ${
|
|
647
|
-
onClick:
|
|
995
|
+
className: `mobile-menu-button ${m ? "open" : ""}`,
|
|
996
|
+
onClick: B,
|
|
648
997
|
"aria-label": "Toggle mobile menu",
|
|
649
|
-
children: /* @__PURE__ */
|
|
998
|
+
children: /* @__PURE__ */ t.jsx(Ue, {})
|
|
650
999
|
}
|
|
651
1000
|
)
|
|
652
1001
|
] }),
|
|
653
|
-
!
|
|
1002
|
+
!I && /* @__PURE__ */ t.jsx(
|
|
654
1003
|
"button",
|
|
655
1004
|
{
|
|
656
|
-
className: `mobile-menu-button ${
|
|
657
|
-
onClick:
|
|
1005
|
+
className: `mobile-menu-button ${m ? "open" : ""}`,
|
|
1006
|
+
onClick: B,
|
|
658
1007
|
"aria-label": "Toggle mobile menu",
|
|
659
1008
|
style: { display: "none" },
|
|
660
|
-
children: /* @__PURE__ */
|
|
1009
|
+
children: /* @__PURE__ */ t.jsx(Ue, {})
|
|
661
1010
|
}
|
|
662
1011
|
),
|
|
663
|
-
|
|
1012
|
+
I && (m || E) && /* @__PURE__ */ t.jsx(
|
|
664
1013
|
"div",
|
|
665
1014
|
{
|
|
666
|
-
className: `sidebar-overlay ${
|
|
667
|
-
onClick:
|
|
1015
|
+
className: `sidebar-overlay ${m ? "visible" : ""}`,
|
|
1016
|
+
onClick: B
|
|
668
1017
|
}
|
|
669
1018
|
),
|
|
670
|
-
/* @__PURE__ */
|
|
671
|
-
/* @__PURE__ */
|
|
672
|
-
!
|
|
673
|
-
|
|
674
|
-
/* @__PURE__ */
|
|
675
|
-
/* @__PURE__ */
|
|
1019
|
+
/* @__PURE__ */ t.jsxs("div", { className: `sidebar-wrapper ${m ? "mobile-open" : ""} ${E ? "mobile-closing" : ""}`, children: [
|
|
1020
|
+
/* @__PURE__ */ t.jsxs("div", { className: `sidebar ${!I && u ? "sidebar-collapsed" : ""} ${I ? "sidebar-mobile" : ""}`, children: [
|
|
1021
|
+
!I && /* @__PURE__ */ t.jsx("div", { className: "sidebar-header", children: /* @__PURE__ */ t.jsx("div", { className: "sidebar-logo", children: u ? /* @__PURE__ */ t.jsx("span", { className: "logo-text", children: a }) : /* @__PURE__ */ t.jsx("span", { className: "logo-text", children: r }) }) }),
|
|
1022
|
+
I && (m || E) && /* @__PURE__ */ t.jsxs("div", { className: "mobile-header", children: [
|
|
1023
|
+
/* @__PURE__ */ t.jsx("div", { className: "mobile-logo-menu", children: r }),
|
|
1024
|
+
/* @__PURE__ */ t.jsx(
|
|
676
1025
|
"button",
|
|
677
1026
|
{
|
|
678
1027
|
className: "mobile-close-button",
|
|
679
|
-
onClick:
|
|
1028
|
+
onClick: B,
|
|
680
1029
|
"aria-label": "Close menu",
|
|
681
1030
|
children: "×"
|
|
682
1031
|
}
|
|
683
1032
|
)
|
|
684
1033
|
] }),
|
|
685
|
-
/* @__PURE__ */
|
|
686
|
-
|
|
1034
|
+
/* @__PURE__ */ t.jsx("div", { className: "sidebar-menu", children: n.map((C, k) => /* @__PURE__ */ t.jsx(
|
|
1035
|
+
It,
|
|
687
1036
|
{
|
|
688
|
-
icon:
|
|
689
|
-
url:
|
|
690
|
-
label:
|
|
691
|
-
submenu:
|
|
692
|
-
collapsed:
|
|
693
|
-
active:
|
|
694
|
-
activePath:
|
|
695
|
-
isOpen:
|
|
696
|
-
onToggle: () =>
|
|
697
|
-
onExpand:
|
|
698
|
-
onSetActive:
|
|
699
|
-
isMobile:
|
|
1037
|
+
icon: C.icon,
|
|
1038
|
+
url: C.url,
|
|
1039
|
+
label: C.label,
|
|
1040
|
+
submenu: C.submenu,
|
|
1041
|
+
collapsed: u,
|
|
1042
|
+
active: C.active || C.url === w,
|
|
1043
|
+
activePath: w,
|
|
1044
|
+
isOpen: g === k,
|
|
1045
|
+
onToggle: () => q(k),
|
|
1046
|
+
onExpand: Z,
|
|
1047
|
+
onSetActive: G,
|
|
1048
|
+
isMobile: I
|
|
700
1049
|
},
|
|
701
|
-
|
|
1050
|
+
k
|
|
702
1051
|
)) }),
|
|
703
|
-
|
|
1052
|
+
i && /* @__PURE__ */ t.jsx("div", { className: "sidebar-footer", children: /* @__PURE__ */ t.jsxs("button", { className: "logout-button", onClick: i, children: [
|
|
704
1053
|
l,
|
|
705
|
-
!
|
|
1054
|
+
!u && /* @__PURE__ */ t.jsx("span", { children: h })
|
|
706
1055
|
] }) })
|
|
707
1056
|
] }),
|
|
708
|
-
!
|
|
1057
|
+
!I && /* @__PURE__ */ t.jsx(
|
|
709
1058
|
"button",
|
|
710
1059
|
{
|
|
711
|
-
className: `sidebar-toggle-icon${
|
|
712
|
-
onClick:
|
|
1060
|
+
className: `sidebar-toggle-icon${u ? " collapsed" : ""}`,
|
|
1061
|
+
onClick: U,
|
|
713
1062
|
"aria-label": "Toggle sidebar",
|
|
714
|
-
children: /* @__PURE__ */
|
|
1063
|
+
children: /* @__PURE__ */ t.jsx(Ot, {})
|
|
715
1064
|
}
|
|
716
1065
|
)
|
|
717
1066
|
] })
|
|
718
1067
|
] });
|
|
719
|
-
},
|
|
720
|
-
isOpen:
|
|
1068
|
+
}, sr = ({
|
|
1069
|
+
isOpen: r,
|
|
721
1070
|
onClose: a,
|
|
722
1071
|
title: n = "",
|
|
723
1072
|
children: l,
|
|
724
|
-
position:
|
|
725
|
-
size:
|
|
726
|
-
enableSwipeToClose:
|
|
1073
|
+
position: i = "right",
|
|
1074
|
+
size: h = "medium",
|
|
1075
|
+
enableSwipeToClose: d = !0
|
|
727
1076
|
}) => {
|
|
728
|
-
const [
|
|
729
|
-
!
|
|
730
|
-
|
|
1077
|
+
const [f, c] = V(!1), x = K(null), u = K(0), j = K(0), g = 50, v = () => {
|
|
1078
|
+
!f && r && (c(!0), setTimeout(() => {
|
|
1079
|
+
c(!1), a();
|
|
731
1080
|
}, 500));
|
|
732
|
-
},
|
|
733
|
-
|
|
734
|
-
},
|
|
735
|
-
if (!
|
|
736
|
-
const
|
|
737
|
-
(
|
|
1081
|
+
}, w = (m) => {
|
|
1082
|
+
d && (u.current = m.touches[0].clientX, j.current = m.touches[0].clientY);
|
|
1083
|
+
}, p = (m) => {
|
|
1084
|
+
if (!d || !m.changedTouches[0]) return;
|
|
1085
|
+
const T = m.changedTouches[0].clientX, E = m.changedTouches[0].clientY, D = T - u.current, I = E - j.current;
|
|
1086
|
+
(i === "right" && D > g || i === "left" && D < -g || i === "top" && I < -g || i === "bottom" && I > g) && v();
|
|
738
1087
|
};
|
|
739
|
-
return
|
|
740
|
-
|
|
741
|
-
}, [
|
|
1088
|
+
return X(() => {
|
|
1089
|
+
r && c(!1);
|
|
1090
|
+
}, [r]), X(() => (r && !f ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
742
1091
|
document.body.style.overflow = "";
|
|
743
|
-
}), [
|
|
744
|
-
/* @__PURE__ */
|
|
1092
|
+
}), [r, f]), !r && !f ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1093
|
+
/* @__PURE__ */ t.jsx(
|
|
745
1094
|
"div",
|
|
746
1095
|
{
|
|
747
|
-
className: `drawer-overlay ${
|
|
748
|
-
onClick:
|
|
1096
|
+
className: `drawer-overlay ${f ? "fade-out" : "fade-in"}`,
|
|
1097
|
+
onClick: v
|
|
749
1098
|
}
|
|
750
1099
|
),
|
|
751
|
-
/* @__PURE__ */
|
|
1100
|
+
/* @__PURE__ */ t.jsxs(
|
|
752
1101
|
"div",
|
|
753
1102
|
{
|
|
754
|
-
ref:
|
|
755
|
-
className: `drawer drawer-${
|
|
756
|
-
onTouchStart:
|
|
757
|
-
onTouchEnd:
|
|
1103
|
+
ref: x,
|
|
1104
|
+
className: `drawer drawer-${i} drawer-${h} ${f ? "drawer-closing" : "drawer-open"}`,
|
|
1105
|
+
onTouchStart: w,
|
|
1106
|
+
onTouchEnd: p,
|
|
758
1107
|
children: [
|
|
759
|
-
/* @__PURE__ */
|
|
760
|
-
n && /* @__PURE__ */
|
|
761
|
-
/* @__PURE__ */
|
|
1108
|
+
/* @__PURE__ */ t.jsxs("div", { className: `drawer-header ${n ? "has-title" : "no-title"}`, children: [
|
|
1109
|
+
n && /* @__PURE__ */ t.jsx("h2", { className: "drawer-title", children: n }),
|
|
1110
|
+
/* @__PURE__ */ t.jsx(
|
|
762
1111
|
"button",
|
|
763
1112
|
{
|
|
764
1113
|
className: "drawer-close",
|
|
765
|
-
onClick:
|
|
1114
|
+
onClick: v,
|
|
766
1115
|
"aria-label": "Cerrar",
|
|
767
1116
|
children: "✕"
|
|
768
1117
|
}
|
|
769
1118
|
)
|
|
770
1119
|
] }),
|
|
771
|
-
/* @__PURE__ */
|
|
1120
|
+
/* @__PURE__ */ t.jsx("div", { className: "drawer-content", children: l })
|
|
772
1121
|
]
|
|
773
1122
|
}
|
|
774
1123
|
)
|
|
775
1124
|
] });
|
|
776
|
-
},
|
|
1125
|
+
}, $t = P("modal-container", {
|
|
777
1126
|
variants: {
|
|
778
1127
|
size: {
|
|
779
1128
|
s: "modal-size-s",
|
|
@@ -784,46 +1133,46 @@ const we = ({ className: t }) => /* @__PURE__ */ e.jsx("svg", { width: "24", hei
|
|
|
784
1133
|
defaultVariants: {
|
|
785
1134
|
size: "m"
|
|
786
1135
|
}
|
|
787
|
-
}),
|
|
788
|
-
title:
|
|
1136
|
+
}), ar = ({
|
|
1137
|
+
title: r,
|
|
789
1138
|
children: a,
|
|
790
1139
|
active: n,
|
|
791
1140
|
onClose: l,
|
|
792
|
-
size:
|
|
1141
|
+
size: i
|
|
793
1142
|
}) => {
|
|
794
|
-
const
|
|
795
|
-
|
|
796
|
-
const
|
|
797
|
-
|
|
1143
|
+
const h = K(null);
|
|
1144
|
+
X(() => {
|
|
1145
|
+
const f = (c) => {
|
|
1146
|
+
c.key === "Escape" && l();
|
|
798
1147
|
};
|
|
799
|
-
return n && document.addEventListener("keydown",
|
|
800
|
-
document.removeEventListener("keydown",
|
|
1148
|
+
return n && document.addEventListener("keydown", f), () => {
|
|
1149
|
+
document.removeEventListener("keydown", f);
|
|
801
1150
|
};
|
|
802
1151
|
}, [n, l]);
|
|
803
|
-
const
|
|
804
|
-
|
|
1152
|
+
const d = (f) => {
|
|
1153
|
+
h.current && f.target === h.current && l();
|
|
805
1154
|
};
|
|
806
|
-
return n ? /* @__PURE__ */
|
|
807
|
-
/* @__PURE__ */
|
|
808
|
-
/* @__PURE__ */
|
|
809
|
-
/* @__PURE__ */
|
|
1155
|
+
return n ? /* @__PURE__ */ t.jsx("div", { className: "modal-backdrop", ref: h, onClick: d, children: /* @__PURE__ */ t.jsxs("div", { className: $t({ size: i }), children: [
|
|
1156
|
+
/* @__PURE__ */ t.jsxs("div", { className: "modal-header", children: [
|
|
1157
|
+
/* @__PURE__ */ t.jsx("h2", { children: r }),
|
|
1158
|
+
/* @__PURE__ */ t.jsx("button", { className: "modal-close", onClick: l, "aria-label": "Cerrar", children: "×" })
|
|
810
1159
|
] }),
|
|
811
|
-
/* @__PURE__ */
|
|
812
|
-
/* @__PURE__ */
|
|
1160
|
+
/* @__PURE__ */ t.jsx("hr", { className: "modal-divider" }),
|
|
1161
|
+
/* @__PURE__ */ t.jsx("div", { className: "modal-content", children: a })
|
|
813
1162
|
] }) }) : null;
|
|
814
|
-
},
|
|
815
|
-
isOpen:
|
|
1163
|
+
}, ir = ({
|
|
1164
|
+
isOpen: r,
|
|
816
1165
|
onToggle: a,
|
|
817
1166
|
title: n,
|
|
818
1167
|
subtitle: l,
|
|
819
|
-
children:
|
|
820
|
-
}) => /* @__PURE__ */
|
|
821
|
-
/* @__PURE__ */
|
|
822
|
-
/* @__PURE__ */
|
|
823
|
-
/* @__PURE__ */
|
|
824
|
-
l && /* @__PURE__ */
|
|
1168
|
+
children: i
|
|
1169
|
+
}) => /* @__PURE__ */ t.jsxs("div", { className: `collapsible ${r ? "open" : ""}`, children: [
|
|
1170
|
+
/* @__PURE__ */ t.jsxs("div", { className: "collapsible-header", onClick: a, children: [
|
|
1171
|
+
/* @__PURE__ */ t.jsxs("div", { className: "collapsible-header-content", children: [
|
|
1172
|
+
/* @__PURE__ */ t.jsx("h3", { className: "collapsible-title", children: n }),
|
|
1173
|
+
l && /* @__PURE__ */ t.jsx("p", { className: "collapsible-subtitle", children: l })
|
|
825
1174
|
] }),
|
|
826
|
-
/* @__PURE__ */
|
|
1175
|
+
/* @__PURE__ */ t.jsx("div", { className: `collapsible-arrow ${r ? "open" : ""}`, children: /* @__PURE__ */ t.jsx(
|
|
827
1176
|
"svg",
|
|
828
1177
|
{
|
|
829
1178
|
width: "24",
|
|
@@ -831,7 +1180,7 @@ const we = ({ className: t }) => /* @__PURE__ */ e.jsx("svg", { width: "24", hei
|
|
|
831
1180
|
viewBox: "0 0 24 24",
|
|
832
1181
|
fill: "none",
|
|
833
1182
|
xmlns: "http://www.w3.org/2000/svg",
|
|
834
|
-
children: /* @__PURE__ */
|
|
1183
|
+
children: /* @__PURE__ */ t.jsx(
|
|
835
1184
|
"path",
|
|
836
1185
|
{
|
|
837
1186
|
d: "M7 10L12 15L17 10",
|
|
@@ -844,8 +1193,8 @@ const we = ({ className: t }) => /* @__PURE__ */ e.jsx("svg", { width: "24", hei
|
|
|
844
1193
|
}
|
|
845
1194
|
) })
|
|
846
1195
|
] }),
|
|
847
|
-
/* @__PURE__ */
|
|
848
|
-
] }),
|
|
1196
|
+
/* @__PURE__ */ t.jsx("div", { className: `collapsible-content ${r ? "open" : ""}`, children: i })
|
|
1197
|
+
] }), lr = ({ children: r }) => /* @__PURE__ */ t.jsx("div", { className: "card", children: r }), Mt = P("tab-base", {
|
|
849
1198
|
variants: {
|
|
850
1199
|
size: {
|
|
851
1200
|
xs: "tab-size-xs",
|
|
@@ -876,90 +1225,90 @@ const we = ({ className: t }) => /* @__PURE__ */ e.jsx("svg", { width: "24", hei
|
|
|
876
1225
|
outline: !1,
|
|
877
1226
|
iconAlignment: "none"
|
|
878
1227
|
}
|
|
879
|
-
}),
|
|
1228
|
+
}), zt = W(
|
|
880
1229
|
({
|
|
881
|
-
className:
|
|
1230
|
+
className: r,
|
|
882
1231
|
size: a,
|
|
883
1232
|
state: n,
|
|
884
1233
|
outline: l,
|
|
885
|
-
iconAlignment:
|
|
886
|
-
children:
|
|
887
|
-
icon:
|
|
888
|
-
active:
|
|
889
|
-
disabled:
|
|
890
|
-
...
|
|
891
|
-
},
|
|
892
|
-
const
|
|
893
|
-
return /* @__PURE__ */
|
|
1234
|
+
iconAlignment: i,
|
|
1235
|
+
children: h,
|
|
1236
|
+
icon: d,
|
|
1237
|
+
active: f = !1,
|
|
1238
|
+
disabled: c = !1,
|
|
1239
|
+
...x
|
|
1240
|
+
}, u) => {
|
|
1241
|
+
const j = c ? "disabled" : f ? "active" : n || "default", g = d ? i || "left" : "none";
|
|
1242
|
+
return /* @__PURE__ */ t.jsxs(
|
|
894
1243
|
"button",
|
|
895
1244
|
{
|
|
896
|
-
className:
|
|
1245
|
+
className: Mt({
|
|
897
1246
|
size: a,
|
|
898
|
-
state:
|
|
1247
|
+
state: j,
|
|
899
1248
|
outline: l,
|
|
900
|
-
iconAlignment:
|
|
901
|
-
className:
|
|
1249
|
+
iconAlignment: g,
|
|
1250
|
+
className: r
|
|
902
1251
|
}),
|
|
903
|
-
ref:
|
|
904
|
-
disabled:
|
|
905
|
-
...
|
|
1252
|
+
ref: u,
|
|
1253
|
+
disabled: c,
|
|
1254
|
+
...x,
|
|
906
1255
|
children: [
|
|
907
|
-
|
|
908
|
-
/* @__PURE__ */
|
|
1256
|
+
d && g === "left" && /* @__PURE__ */ t.jsx("span", { className: "tab-icon", children: d }),
|
|
1257
|
+
/* @__PURE__ */ t.jsx("span", { className: "tab-content", children: h })
|
|
909
1258
|
]
|
|
910
1259
|
}
|
|
911
1260
|
);
|
|
912
1261
|
}
|
|
913
1262
|
);
|
|
914
|
-
|
|
915
|
-
const
|
|
916
|
-
children:
|
|
1263
|
+
zt.displayName = "Tab";
|
|
1264
|
+
const At = ({
|
|
1265
|
+
children: r,
|
|
917
1266
|
defaultActiveIndex: a = 0,
|
|
918
1267
|
activeIndex: n,
|
|
919
1268
|
onTabChange: l,
|
|
920
|
-
className:
|
|
921
|
-
variant:
|
|
922
|
-
size:
|
|
923
|
-
outline:
|
|
1269
|
+
className: i = "",
|
|
1270
|
+
variant: h = "default",
|
|
1271
|
+
size: d = "md",
|
|
1272
|
+
outline: f = !1
|
|
924
1273
|
}) => {
|
|
925
|
-
const [
|
|
926
|
-
n === void 0 &&
|
|
927
|
-
},
|
|
1274
|
+
const [c, x] = V(a), u = n !== void 0 ? n : c, j = (v) => {
|
|
1275
|
+
n === void 0 && x(v), l == null || l(v);
|
|
1276
|
+
}, g = [
|
|
928
1277
|
"tab-group",
|
|
929
|
-
`tab-group-${
|
|
930
|
-
|
|
1278
|
+
`tab-group-${h}`,
|
|
1279
|
+
i
|
|
931
1280
|
].filter(Boolean).join(" ");
|
|
932
|
-
return /* @__PURE__ */
|
|
933
|
-
...
|
|
934
|
-
active:
|
|
935
|
-
size:
|
|
936
|
-
outline:
|
|
937
|
-
onClick: (
|
|
938
|
-
var
|
|
939
|
-
|
|
1281
|
+
return /* @__PURE__ */ t.jsx("div", { className: g, role: "tablist", children: yt.map(r, (v, w) => Nt(v) ? Ct(v, {
|
|
1282
|
+
...v.props,
|
|
1283
|
+
active: w === u,
|
|
1284
|
+
size: v.props.size || d,
|
|
1285
|
+
outline: v.props.outline !== void 0 ? v.props.outline : f,
|
|
1286
|
+
onClick: (p) => {
|
|
1287
|
+
var m, T;
|
|
1288
|
+
v.props.disabled || (j(w), (T = (m = v.props).onClick) == null || T.call(m, p));
|
|
940
1289
|
},
|
|
941
1290
|
role: "tab",
|
|
942
|
-
"aria-selected":
|
|
943
|
-
"aria-controls": `tabpanel-${
|
|
944
|
-
id: `tab-${
|
|
945
|
-
tabIndex:
|
|
946
|
-
}) :
|
|
1291
|
+
"aria-selected": w === u,
|
|
1292
|
+
"aria-controls": `tabpanel-${w}`,
|
|
1293
|
+
id: `tab-${w}`,
|
|
1294
|
+
tabIndex: w === u ? 0 : -1
|
|
1295
|
+
}) : v) });
|
|
947
1296
|
};
|
|
948
|
-
|
|
949
|
-
const
|
|
950
|
-
const [n, l] =
|
|
951
|
-
|
|
1297
|
+
At.displayName = "TabGroup";
|
|
1298
|
+
const or = ({ buttonsData: r, size: a = "sm" }) => {
|
|
1299
|
+
const [n, l] = V(0), i = (h, d) => {
|
|
1300
|
+
h.onClick(), l(d);
|
|
952
1301
|
};
|
|
953
|
-
return /* @__PURE__ */
|
|
1302
|
+
return /* @__PURE__ */ t.jsx("div", { className: "toggle-button-container", children: r.map((h, d) => /* @__PURE__ */ t.jsx(
|
|
954
1303
|
"div",
|
|
955
1304
|
{
|
|
956
|
-
className: `toggle-button-inner ${n ===
|
|
957
|
-
onClick: () =>
|
|
958
|
-
children: /* @__PURE__ */
|
|
1305
|
+
className: `toggle-button-inner ${n === d ? "active" : ""} ${a}`,
|
|
1306
|
+
onClick: () => i(h, d),
|
|
1307
|
+
children: /* @__PURE__ */ t.jsx("span", { children: h.label })
|
|
959
1308
|
},
|
|
960
|
-
|
|
1309
|
+
d
|
|
961
1310
|
)) });
|
|
962
|
-
},
|
|
1311
|
+
}, He = ({ className: r }) => /* @__PURE__ */ t.jsx(
|
|
963
1312
|
"svg",
|
|
964
1313
|
{
|
|
965
1314
|
width: "20",
|
|
@@ -967,8 +1316,8 @@ const Qe = ({ buttonsData: t, size: a = "sm" }) => {
|
|
|
967
1316
|
viewBox: "0 0 24 24",
|
|
968
1317
|
fill: "none",
|
|
969
1318
|
xmlns: "http://www.w3.org/2000/svg",
|
|
970
|
-
className:
|
|
971
|
-
children: /* @__PURE__ */
|
|
1319
|
+
className: r,
|
|
1320
|
+
children: /* @__PURE__ */ t.jsx(
|
|
972
1321
|
"path",
|
|
973
1322
|
{
|
|
974
1323
|
d: "M18 6L6 18M6 6L18 18",
|
|
@@ -979,38 +1328,38 @@ const Qe = ({ buttonsData: t, size: a = "sm" }) => {
|
|
|
979
1328
|
}
|
|
980
1329
|
)
|
|
981
1330
|
}
|
|
982
|
-
),
|
|
1331
|
+
), Dt = ({ size: r = 24, className: a = "" }) => /* @__PURE__ */ t.jsxs(
|
|
983
1332
|
"svg",
|
|
984
1333
|
{
|
|
985
|
-
width:
|
|
986
|
-
height:
|
|
1334
|
+
width: r,
|
|
1335
|
+
height: r,
|
|
987
1336
|
viewBox: "0 0 24 24",
|
|
988
1337
|
fill: "none",
|
|
989
1338
|
xmlns: "http://www.w3.org/2000/svg",
|
|
990
1339
|
className: a,
|
|
991
1340
|
children: [
|
|
992
|
-
/* @__PURE__ */
|
|
1341
|
+
/* @__PURE__ */ t.jsx(
|
|
993
1342
|
"path",
|
|
994
1343
|
{
|
|
995
1344
|
d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",
|
|
996
1345
|
fill: "#4285F4"
|
|
997
1346
|
}
|
|
998
1347
|
),
|
|
999
|
-
/* @__PURE__ */
|
|
1348
|
+
/* @__PURE__ */ t.jsx(
|
|
1000
1349
|
"path",
|
|
1001
1350
|
{
|
|
1002
1351
|
d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",
|
|
1003
1352
|
fill: "#34A853"
|
|
1004
1353
|
}
|
|
1005
1354
|
),
|
|
1006
|
-
/* @__PURE__ */
|
|
1355
|
+
/* @__PURE__ */ t.jsx(
|
|
1007
1356
|
"path",
|
|
1008
1357
|
{
|
|
1009
1358
|
d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",
|
|
1010
1359
|
fill: "#FBBC05"
|
|
1011
1360
|
}
|
|
1012
1361
|
),
|
|
1013
|
-
/* @__PURE__ */
|
|
1362
|
+
/* @__PURE__ */ t.jsx(
|
|
1014
1363
|
"path",
|
|
1015
1364
|
{
|
|
1016
1365
|
d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",
|
|
@@ -1019,38 +1368,38 @@ const Qe = ({ buttonsData: t, size: a = "sm" }) => {
|
|
|
1019
1368
|
)
|
|
1020
1369
|
]
|
|
1021
1370
|
}
|
|
1022
|
-
),
|
|
1371
|
+
), Ft = ({ size: r = 24, className: a = "" }) => /* @__PURE__ */ t.jsxs(
|
|
1023
1372
|
"svg",
|
|
1024
1373
|
{
|
|
1025
|
-
width:
|
|
1026
|
-
height:
|
|
1374
|
+
width: r,
|
|
1375
|
+
height: r,
|
|
1027
1376
|
viewBox: "0 0 24 24",
|
|
1028
1377
|
fill: "none",
|
|
1029
1378
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1030
1379
|
className: a,
|
|
1031
1380
|
children: [
|
|
1032
|
-
/* @__PURE__ */
|
|
1381
|
+
/* @__PURE__ */ t.jsx(
|
|
1033
1382
|
"path",
|
|
1034
1383
|
{
|
|
1035
1384
|
d: "M11.4 2H2v9.4h9.4V2Z",
|
|
1036
1385
|
fill: "#F25022"
|
|
1037
1386
|
}
|
|
1038
1387
|
),
|
|
1039
|
-
/* @__PURE__ */
|
|
1388
|
+
/* @__PURE__ */ t.jsx(
|
|
1040
1389
|
"path",
|
|
1041
1390
|
{
|
|
1042
1391
|
d: "M22 2h-9.4v9.4H22V2Z",
|
|
1043
1392
|
fill: "#7FBA00"
|
|
1044
1393
|
}
|
|
1045
1394
|
),
|
|
1046
|
-
/* @__PURE__ */
|
|
1395
|
+
/* @__PURE__ */ t.jsx(
|
|
1047
1396
|
"path",
|
|
1048
1397
|
{
|
|
1049
1398
|
d: "M11.4 12.6H2V22h9.4v-9.4Z",
|
|
1050
1399
|
fill: "#00A4EF"
|
|
1051
1400
|
}
|
|
1052
1401
|
),
|
|
1053
|
-
/* @__PURE__ */
|
|
1402
|
+
/* @__PURE__ */ t.jsx(
|
|
1054
1403
|
"path",
|
|
1055
1404
|
{
|
|
1056
1405
|
d: "M22 12.6h-9.4V22H22v-9.4Z",
|
|
@@ -1059,19 +1408,19 @@ const Qe = ({ buttonsData: t, size: a = "sm" }) => {
|
|
|
1059
1408
|
)
|
|
1060
1409
|
]
|
|
1061
1410
|
}
|
|
1062
|
-
),
|
|
1063
|
-
size:
|
|
1411
|
+
), Vt = ({
|
|
1412
|
+
size: r = 24,
|
|
1064
1413
|
className: a
|
|
1065
|
-
}) => /* @__PURE__ */
|
|
1414
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
1066
1415
|
"svg",
|
|
1067
1416
|
{
|
|
1068
|
-
width:
|
|
1069
|
-
height:
|
|
1417
|
+
width: r,
|
|
1418
|
+
height: r,
|
|
1070
1419
|
viewBox: "0 0 24 24",
|
|
1071
1420
|
fill: "none",
|
|
1072
1421
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1073
1422
|
className: a,
|
|
1074
|
-
children: /* @__PURE__ */
|
|
1423
|
+
children: /* @__PURE__ */ t.jsx(
|
|
1075
1424
|
"path",
|
|
1076
1425
|
{
|
|
1077
1426
|
d: "M14.71 6.71L13.3 5.3L7.71 10.89C7.32 11.28 7.32 11.91 7.71 12.3L13.3 17.89L14.71 16.48L9.83 11.6L14.71 6.71Z",
|
|
@@ -1079,19 +1428,19 @@ const Qe = ({ buttonsData: t, size: a = "sm" }) => {
|
|
|
1079
1428
|
}
|
|
1080
1429
|
)
|
|
1081
1430
|
}
|
|
1082
|
-
),
|
|
1083
|
-
size:
|
|
1431
|
+
), Bt = ({
|
|
1432
|
+
size: r = 24,
|
|
1084
1433
|
className: a
|
|
1085
|
-
}) => /* @__PURE__ */
|
|
1434
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
1086
1435
|
"svg",
|
|
1087
1436
|
{
|
|
1088
|
-
width:
|
|
1089
|
-
height:
|
|
1437
|
+
width: r,
|
|
1438
|
+
height: r,
|
|
1090
1439
|
viewBox: "0 0 24 24",
|
|
1091
1440
|
fill: "none",
|
|
1092
1441
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1093
1442
|
className: a,
|
|
1094
|
-
children: /* @__PURE__ */
|
|
1443
|
+
children: /* @__PURE__ */ t.jsx(
|
|
1095
1444
|
"path",
|
|
1096
1445
|
{
|
|
1097
1446
|
d: "M9.29 17.29L10.7 18.7L16.29 13.11C16.68 12.72 16.68 12.09 16.29 11.7L10.7 6.11L9.29 7.52L14.17 12.4L9.29 17.29Z",
|
|
@@ -1099,19 +1448,19 @@ const Qe = ({ buttonsData: t, size: a = "sm" }) => {
|
|
|
1099
1448
|
}
|
|
1100
1449
|
)
|
|
1101
1450
|
}
|
|
1102
|
-
),
|
|
1103
|
-
size:
|
|
1451
|
+
), Wt = ({
|
|
1452
|
+
size: r = 24,
|
|
1104
1453
|
className: a
|
|
1105
|
-
}) => /* @__PURE__ */
|
|
1454
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
1106
1455
|
"svg",
|
|
1107
1456
|
{
|
|
1108
|
-
width:
|
|
1109
|
-
height:
|
|
1457
|
+
width: r,
|
|
1458
|
+
height: r,
|
|
1110
1459
|
viewBox: "0 0 24 24",
|
|
1111
1460
|
fill: "none",
|
|
1112
1461
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1113
1462
|
className: a,
|
|
1114
|
-
children: /* @__PURE__ */
|
|
1463
|
+
children: /* @__PURE__ */ t.jsx(
|
|
1115
1464
|
"path",
|
|
1116
1465
|
{
|
|
1117
1466
|
d: "M7.41 8.59L12 13.17L16.59 8.59L18 10L12 16L6 10L7.41 8.59Z",
|
|
@@ -1119,7 +1468,32 @@ const Qe = ({ buttonsData: t, size: a = "sm" }) => {
|
|
|
1119
1468
|
}
|
|
1120
1469
|
)
|
|
1121
1470
|
}
|
|
1122
|
-
),
|
|
1471
|
+
), Pt = ({
|
|
1472
|
+
className: r = "",
|
|
1473
|
+
size: a = 24,
|
|
1474
|
+
color: n = "currentColor"
|
|
1475
|
+
}) => /* @__PURE__ */ t.jsxs(
|
|
1476
|
+
"svg",
|
|
1477
|
+
{
|
|
1478
|
+
width: a,
|
|
1479
|
+
height: a,
|
|
1480
|
+
viewBox: "0 0 24 24",
|
|
1481
|
+
fill: "none",
|
|
1482
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1483
|
+
className: r,
|
|
1484
|
+
children: [
|
|
1485
|
+
/* @__PURE__ */ t.jsx("rect", { x: "3", y: "3", width: "4", height: "4", rx: "0.5", fill: n }),
|
|
1486
|
+
/* @__PURE__ */ t.jsx("rect", { x: "10", y: "3", width: "4", height: "4", rx: "0.5", fill: n }),
|
|
1487
|
+
/* @__PURE__ */ t.jsx("rect", { x: "17", y: "3", width: "4", height: "4", rx: "0.5", fill: n }),
|
|
1488
|
+
/* @__PURE__ */ t.jsx("rect", { x: "3", y: "10", width: "4", height: "4", rx: "0.5", fill: n }),
|
|
1489
|
+
/* @__PURE__ */ t.jsx("rect", { x: "10", y: "10", width: "4", height: "4", rx: "0.5", fill: n }),
|
|
1490
|
+
/* @__PURE__ */ t.jsx("rect", { x: "17", y: "10", width: "4", height: "4", rx: "0.5", fill: n }),
|
|
1491
|
+
/* @__PURE__ */ t.jsx("rect", { x: "3", y: "17", width: "4", height: "4", rx: "0.5", fill: n }),
|
|
1492
|
+
/* @__PURE__ */ t.jsx("rect", { x: "10", y: "17", width: "4", height: "4", rx: "0.5", fill: n }),
|
|
1493
|
+
/* @__PURE__ */ t.jsx("rect", { x: "17", y: "17", width: "4", height: "4", rx: "0.5", fill: n })
|
|
1494
|
+
]
|
|
1495
|
+
}
|
|
1496
|
+
), Yt = P("input", {
|
|
1123
1497
|
variants: {
|
|
1124
1498
|
size: {
|
|
1125
1499
|
sm: "input-size-sm",
|
|
@@ -1145,59 +1519,59 @@ const Qe = ({ buttonsData: t, size: a = "sm" }) => {
|
|
|
1145
1519
|
size: "md",
|
|
1146
1520
|
state: "default"
|
|
1147
1521
|
}
|
|
1148
|
-
}),
|
|
1522
|
+
}), Ut = W(
|
|
1149
1523
|
({
|
|
1150
|
-
className:
|
|
1524
|
+
className: r,
|
|
1151
1525
|
size: a,
|
|
1152
1526
|
state: n,
|
|
1153
1527
|
leadingIcon: l,
|
|
1154
|
-
trailingIcon:
|
|
1155
|
-
hintText:
|
|
1156
|
-
onClear:
|
|
1157
|
-
placeholder:
|
|
1158
|
-
value:
|
|
1159
|
-
onChange:
|
|
1160
|
-
...
|
|
1161
|
-
},
|
|
1162
|
-
const
|
|
1163
|
-
let
|
|
1164
|
-
return n === "default" &&
|
|
1165
|
-
/* @__PURE__ */
|
|
1166
|
-
|
|
1167
|
-
/* @__PURE__ */
|
|
1528
|
+
trailingIcon: i,
|
|
1529
|
+
hintText: h,
|
|
1530
|
+
onClear: d,
|
|
1531
|
+
placeholder: f = "Placeholder",
|
|
1532
|
+
value: c,
|
|
1533
|
+
onChange: x,
|
|
1534
|
+
...u
|
|
1535
|
+
}, j) => {
|
|
1536
|
+
const g = !!l, v = !!i, w = c && c.toString().length > 0;
|
|
1537
|
+
let p = n;
|
|
1538
|
+
return n === "default" && w && (p = "filled"), /* @__PURE__ */ t.jsxs("div", { className: "input-container", children: [
|
|
1539
|
+
/* @__PURE__ */ t.jsxs("div", { className: "input-wrapper", children: [
|
|
1540
|
+
g && /* @__PURE__ */ t.jsx("span", { className: "input-leading-icon", children: l }),
|
|
1541
|
+
/* @__PURE__ */ t.jsx(
|
|
1168
1542
|
"input",
|
|
1169
1543
|
{
|
|
1170
|
-
className:
|
|
1544
|
+
className: Yt({
|
|
1171
1545
|
size: a,
|
|
1172
|
-
state:
|
|
1173
|
-
hasLeadingIcon:
|
|
1174
|
-
hasTrailingIcon:
|
|
1175
|
-
className:
|
|
1546
|
+
state: p,
|
|
1547
|
+
hasLeadingIcon: g,
|
|
1548
|
+
hasTrailingIcon: v,
|
|
1549
|
+
className: r
|
|
1176
1550
|
}),
|
|
1177
|
-
placeholder:
|
|
1178
|
-
value:
|
|
1179
|
-
ref:
|
|
1180
|
-
...
|
|
1551
|
+
placeholder: f,
|
|
1552
|
+
value: c,
|
|
1553
|
+
ref: j,
|
|
1554
|
+
...u
|
|
1181
1555
|
}
|
|
1182
1556
|
),
|
|
1183
|
-
|
|
1184
|
-
|
|
1557
|
+
v && /* @__PURE__ */ t.jsx("span", { className: "input-trailing-icon", children: i }),
|
|
1558
|
+
d && c && c.toString().length > 0 && /* @__PURE__ */ t.jsx(
|
|
1185
1559
|
"button",
|
|
1186
1560
|
{
|
|
1187
1561
|
type: "button",
|
|
1188
1562
|
className: "input-clear-button",
|
|
1189
|
-
onClick:
|
|
1563
|
+
onClick: d,
|
|
1190
1564
|
"aria-label": "Clear input",
|
|
1191
|
-
children: /* @__PURE__ */
|
|
1565
|
+
children: /* @__PURE__ */ t.jsx(He, {})
|
|
1192
1566
|
}
|
|
1193
1567
|
)
|
|
1194
1568
|
] }),
|
|
1195
|
-
|
|
1569
|
+
h && /* @__PURE__ */ t.jsx("div", { className: `input-hint input-hint-${p}`, children: h })
|
|
1196
1570
|
] });
|
|
1197
1571
|
}
|
|
1198
1572
|
);
|
|
1199
|
-
|
|
1200
|
-
const
|
|
1573
|
+
Ut.displayName = "Input";
|
|
1574
|
+
const Gt = P("alert", {
|
|
1201
1575
|
variants: {
|
|
1202
1576
|
variant: {
|
|
1203
1577
|
info: "alert-info",
|
|
@@ -1209,55 +1583,55 @@ const $e = O("alert", {
|
|
|
1209
1583
|
defaultVariants: {
|
|
1210
1584
|
variant: "info"
|
|
1211
1585
|
}
|
|
1212
|
-
}),
|
|
1586
|
+
}), Ht = W(
|
|
1213
1587
|
({
|
|
1214
|
-
className:
|
|
1588
|
+
className: r,
|
|
1215
1589
|
variant: a,
|
|
1216
1590
|
title: n,
|
|
1217
1591
|
description: l,
|
|
1218
|
-
children:
|
|
1219
|
-
onDismiss:
|
|
1220
|
-
icon:
|
|
1221
|
-
...
|
|
1222
|
-
},
|
|
1223
|
-
const
|
|
1224
|
-
info: /* @__PURE__ */
|
|
1225
|
-
/* @__PURE__ */
|
|
1226
|
-
/* @__PURE__ */
|
|
1592
|
+
children: i,
|
|
1593
|
+
onDismiss: h,
|
|
1594
|
+
icon: d,
|
|
1595
|
+
...f
|
|
1596
|
+
}, c) => {
|
|
1597
|
+
const x = {
|
|
1598
|
+
info: /* @__PURE__ */ t.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1599
|
+
/* @__PURE__ */ t.jsx("circle", { cx: "10", cy: "10", r: "9", stroke: "currentColor", strokeWidth: "2", fill: "none" }),
|
|
1600
|
+
/* @__PURE__ */ t.jsx("path", { d: "M10 6v4m0 4h.01", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
|
|
1227
1601
|
] }),
|
|
1228
|
-
warning: /* @__PURE__ */
|
|
1229
|
-
/* @__PURE__ */
|
|
1230
|
-
/* @__PURE__ */
|
|
1602
|
+
warning: /* @__PURE__ */ t.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1603
|
+
/* @__PURE__ */ t.jsx("circle", { cx: "10", cy: "10", r: "9", stroke: "currentColor", strokeWidth: "2", fill: "none" }),
|
|
1604
|
+
/* @__PURE__ */ t.jsx("path", { d: "M10 6v4m0 4h.01", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
|
|
1231
1605
|
] }),
|
|
1232
|
-
success: /* @__PURE__ */
|
|
1233
|
-
/* @__PURE__ */
|
|
1234
|
-
/* @__PURE__ */
|
|
1606
|
+
success: /* @__PURE__ */ t.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1607
|
+
/* @__PURE__ */ t.jsx("circle", { cx: "10", cy: "10", r: "9", stroke: "currentColor", strokeWidth: "2", fill: "none" }),
|
|
1608
|
+
/* @__PURE__ */ t.jsx("path", { d: "M10 6v4m0 4h.01", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
|
|
1235
1609
|
] }),
|
|
1236
|
-
error: /* @__PURE__ */
|
|
1237
|
-
/* @__PURE__ */
|
|
1238
|
-
/* @__PURE__ */
|
|
1610
|
+
error: /* @__PURE__ */ t.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1611
|
+
/* @__PURE__ */ t.jsx("circle", { cx: "10", cy: "10", r: "9", stroke: "currentColor", strokeWidth: "2", fill: "none" }),
|
|
1612
|
+
/* @__PURE__ */ t.jsx("path", { d: "M10 6v4m0 4h.01", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
|
|
1239
1613
|
] })
|
|
1240
|
-
},
|
|
1241
|
-
return /* @__PURE__ */
|
|
1614
|
+
}, u = d || (a ? x[a] : x.info);
|
|
1615
|
+
return /* @__PURE__ */ t.jsxs(
|
|
1242
1616
|
"div",
|
|
1243
1617
|
{
|
|
1244
|
-
className:
|
|
1245
|
-
ref:
|
|
1246
|
-
...
|
|
1618
|
+
className: Gt({ variant: a, className: r }),
|
|
1619
|
+
ref: c,
|
|
1620
|
+
...f,
|
|
1247
1621
|
children: [
|
|
1248
|
-
/* @__PURE__ */
|
|
1249
|
-
/* @__PURE__ */
|
|
1250
|
-
n && /* @__PURE__ */
|
|
1251
|
-
l && /* @__PURE__ */
|
|
1252
|
-
|
|
1622
|
+
/* @__PURE__ */ t.jsx("div", { className: "alert-icon", children: u }),
|
|
1623
|
+
/* @__PURE__ */ t.jsxs("div", { className: "alert-content", children: [
|
|
1624
|
+
n && /* @__PURE__ */ t.jsx("div", { className: "alert-title", children: n }),
|
|
1625
|
+
l && /* @__PURE__ */ t.jsx("div", { className: "alert-description", children: l }),
|
|
1626
|
+
i && /* @__PURE__ */ t.jsx("div", { className: "alert-children", children: i })
|
|
1253
1627
|
] }),
|
|
1254
|
-
/* @__PURE__ */
|
|
1628
|
+
/* @__PURE__ */ t.jsx(
|
|
1255
1629
|
"button",
|
|
1256
1630
|
{
|
|
1257
1631
|
className: "alert-dismiss",
|
|
1258
|
-
onClick:
|
|
1632
|
+
onClick: h,
|
|
1259
1633
|
"aria-label": "Cerrar alerta",
|
|
1260
|
-
children: /* @__PURE__ */
|
|
1634
|
+
children: /* @__PURE__ */ t.jsx(He, {})
|
|
1261
1635
|
}
|
|
1262
1636
|
)
|
|
1263
1637
|
]
|
|
@@ -1265,8 +1639,8 @@ const $e = O("alert", {
|
|
|
1265
1639
|
);
|
|
1266
1640
|
}
|
|
1267
1641
|
);
|
|
1268
|
-
|
|
1269
|
-
const
|
|
1642
|
+
Ht.displayName = "Alert";
|
|
1643
|
+
const Jt = P("social-login", {
|
|
1270
1644
|
variants: {
|
|
1271
1645
|
variant: {
|
|
1272
1646
|
filled: "social-login-filled",
|
|
@@ -1305,59 +1679,59 @@ const Ve = O("social-login", {
|
|
|
1305
1679
|
iconAlignment: "left",
|
|
1306
1680
|
provider: "google"
|
|
1307
1681
|
}
|
|
1308
|
-
}),
|
|
1682
|
+
}), Kt = {
|
|
1309
1683
|
google: "Continuar con Google",
|
|
1310
1684
|
microsoft: "Continuar con Microsoft"
|
|
1311
|
-
},
|
|
1312
|
-
google:
|
|
1313
|
-
microsoft:
|
|
1314
|
-
},
|
|
1685
|
+
}, Xt = {
|
|
1686
|
+
google: Dt,
|
|
1687
|
+
microsoft: Ft
|
|
1688
|
+
}, Zt = W(
|
|
1315
1689
|
({
|
|
1316
|
-
className:
|
|
1690
|
+
className: r,
|
|
1317
1691
|
variant: a,
|
|
1318
1692
|
size: n,
|
|
1319
1693
|
state: l,
|
|
1320
|
-
pill:
|
|
1321
|
-
iconAlignment:
|
|
1322
|
-
provider:
|
|
1323
|
-
children:
|
|
1324
|
-
disabled:
|
|
1325
|
-
onClick:
|
|
1326
|
-
...
|
|
1327
|
-
},
|
|
1328
|
-
const
|
|
1694
|
+
pill: i,
|
|
1695
|
+
iconAlignment: h,
|
|
1696
|
+
provider: d,
|
|
1697
|
+
children: f,
|
|
1698
|
+
disabled: c,
|
|
1699
|
+
onClick: x,
|
|
1700
|
+
...u
|
|
1701
|
+
}, j) => {
|
|
1702
|
+
const g = Xt[d], v = f || Kt[d], w = c ? "disabled" : l, m = {
|
|
1329
1703
|
xs: 16,
|
|
1330
1704
|
sm: 18,
|
|
1331
1705
|
md: 20,
|
|
1332
1706
|
lg: 22,
|
|
1333
1707
|
xl: 24
|
|
1334
1708
|
}[n || "md"];
|
|
1335
|
-
return /* @__PURE__ */
|
|
1709
|
+
return /* @__PURE__ */ t.jsxs(
|
|
1336
1710
|
"button",
|
|
1337
1711
|
{
|
|
1338
|
-
className:
|
|
1712
|
+
className: Jt({
|
|
1339
1713
|
variant: a,
|
|
1340
1714
|
size: n,
|
|
1341
|
-
state:
|
|
1342
|
-
pill:
|
|
1343
|
-
iconAlignment:
|
|
1344
|
-
provider:
|
|
1345
|
-
className:
|
|
1715
|
+
state: w,
|
|
1716
|
+
pill: i,
|
|
1717
|
+
iconAlignment: h,
|
|
1718
|
+
provider: d,
|
|
1719
|
+
className: r
|
|
1346
1720
|
}),
|
|
1347
|
-
disabled:
|
|
1348
|
-
onClick:
|
|
1349
|
-
ref:
|
|
1350
|
-
...
|
|
1721
|
+
disabled: c,
|
|
1722
|
+
onClick: x,
|
|
1723
|
+
ref: j,
|
|
1724
|
+
...u,
|
|
1351
1725
|
children: [
|
|
1352
|
-
/* @__PURE__ */
|
|
1353
|
-
/* @__PURE__ */
|
|
1726
|
+
/* @__PURE__ */ t.jsx("span", { className: "social-login-icon", children: /* @__PURE__ */ t.jsx(g, { size: m }) }),
|
|
1727
|
+
/* @__PURE__ */ t.jsx("span", { className: "social-login-text", children: v })
|
|
1354
1728
|
]
|
|
1355
1729
|
}
|
|
1356
1730
|
);
|
|
1357
1731
|
}
|
|
1358
1732
|
);
|
|
1359
|
-
|
|
1360
|
-
const
|
|
1733
|
+
Zt.displayName = "SocialLogin";
|
|
1734
|
+
const qt = P("progress-bar", {
|
|
1361
1735
|
variants: {
|
|
1362
1736
|
variant: {
|
|
1363
1737
|
default: "progress-bar-default",
|
|
@@ -1385,99 +1759,99 @@ const We = O("progress-bar", {
|
|
|
1385
1759
|
size: "md",
|
|
1386
1760
|
color: "primary"
|
|
1387
1761
|
}
|
|
1388
|
-
}),
|
|
1762
|
+
}), cr = W(
|
|
1389
1763
|
({
|
|
1390
|
-
className:
|
|
1764
|
+
className: r,
|
|
1391
1765
|
variant: a,
|
|
1392
1766
|
size: n,
|
|
1393
1767
|
color: l,
|
|
1394
|
-
animated:
|
|
1395
|
-
amount:
|
|
1396
|
-
total:
|
|
1397
|
-
showPercentage:
|
|
1398
|
-
label:
|
|
1399
|
-
height:
|
|
1400
|
-
style:
|
|
1401
|
-
...
|
|
1402
|
-
},
|
|
1403
|
-
const
|
|
1404
|
-
...
|
|
1405
|
-
...
|
|
1406
|
-
},
|
|
1407
|
-
width: `${
|
|
1768
|
+
animated: i,
|
|
1769
|
+
amount: h,
|
|
1770
|
+
total: d,
|
|
1771
|
+
showPercentage: f = !1,
|
|
1772
|
+
label: c,
|
|
1773
|
+
height: x,
|
|
1774
|
+
style: u,
|
|
1775
|
+
...j
|
|
1776
|
+
}, g) => {
|
|
1777
|
+
const v = Math.min(Math.max(h / d * 100, 0), 100), w = {
|
|
1778
|
+
...u || {},
|
|
1779
|
+
...x ? { height: x } : {}
|
|
1780
|
+
}, p = {
|
|
1781
|
+
width: `${v}%`
|
|
1408
1782
|
};
|
|
1409
|
-
return /* @__PURE__ */
|
|
1783
|
+
return /* @__PURE__ */ t.jsxs(
|
|
1410
1784
|
"div",
|
|
1411
1785
|
{
|
|
1412
|
-
className:
|
|
1786
|
+
className: qt({
|
|
1413
1787
|
variant: a,
|
|
1414
1788
|
size: n,
|
|
1415
1789
|
color: l,
|
|
1416
|
-
animated:
|
|
1417
|
-
className:
|
|
1790
|
+
animated: i,
|
|
1791
|
+
className: r
|
|
1418
1792
|
}),
|
|
1419
|
-
style:
|
|
1420
|
-
ref:
|
|
1793
|
+
style: w,
|
|
1794
|
+
ref: g,
|
|
1421
1795
|
role: "progressbar",
|
|
1422
|
-
"aria-valuenow":
|
|
1796
|
+
"aria-valuenow": h,
|
|
1423
1797
|
"aria-valuemin": 0,
|
|
1424
|
-
"aria-valuemax":
|
|
1425
|
-
"aria-label":
|
|
1426
|
-
...
|
|
1798
|
+
"aria-valuemax": d,
|
|
1799
|
+
"aria-label": c || `Progreso: ${h} de ${d}`,
|
|
1800
|
+
...j,
|
|
1427
1801
|
children: [
|
|
1428
|
-
/* @__PURE__ */
|
|
1802
|
+
/* @__PURE__ */ t.jsx("div", { className: "progress-bar-track", children: /* @__PURE__ */ t.jsx(
|
|
1429
1803
|
"div",
|
|
1430
1804
|
{
|
|
1431
1805
|
className: "progress-bar-fill",
|
|
1432
|
-
style:
|
|
1806
|
+
style: p
|
|
1433
1807
|
}
|
|
1434
1808
|
) }),
|
|
1435
|
-
(
|
|
1809
|
+
(f || c) && /* @__PURE__ */ t.jsx("div", { className: "progress-bar-text", children: c || `${Math.round(v)}%` })
|
|
1436
1810
|
]
|
|
1437
1811
|
}
|
|
1438
1812
|
);
|
|
1439
1813
|
}
|
|
1440
|
-
),
|
|
1441
|
-
({ type:
|
|
1442
|
-
const
|
|
1443
|
-
return /* @__PURE__ */
|
|
1814
|
+
), Qt = (r, a) => `/logos/${`${r}_${a}.png`}`, Je = W(
|
|
1815
|
+
({ type: r = "logo", color: a = "color", alt: n, className: l, ...i }, h) => {
|
|
1816
|
+
const d = Qt(r, a), f = n || (r === "logo" ? "Levannta logo" : "Levannta isologo");
|
|
1817
|
+
return /* @__PURE__ */ t.jsx(
|
|
1444
1818
|
"img",
|
|
1445
1819
|
{
|
|
1446
|
-
ref:
|
|
1820
|
+
ref: h,
|
|
1447
1821
|
className: ["logo", l].filter(Boolean).join(" "),
|
|
1448
|
-
src:
|
|
1449
|
-
alt:
|
|
1450
|
-
...
|
|
1822
|
+
src: d,
|
|
1823
|
+
alt: f,
|
|
1824
|
+
...i
|
|
1451
1825
|
}
|
|
1452
1826
|
);
|
|
1453
1827
|
}
|
|
1454
1828
|
);
|
|
1455
|
-
|
|
1456
|
-
const
|
|
1457
|
-
title:
|
|
1829
|
+
Je.displayName = "Logo";
|
|
1830
|
+
const ur = ({
|
|
1831
|
+
title: r,
|
|
1458
1832
|
children: a,
|
|
1459
1833
|
className: n,
|
|
1460
1834
|
showLogo: l = !0,
|
|
1461
|
-
logoProps:
|
|
1462
|
-
...
|
|
1835
|
+
logoProps: i,
|
|
1836
|
+
...h
|
|
1463
1837
|
}) => {
|
|
1464
|
-
const
|
|
1465
|
-
return /* @__PURE__ */
|
|
1466
|
-
/* @__PURE__ */
|
|
1467
|
-
l && /* @__PURE__ */
|
|
1468
|
-
|
|
1838
|
+
const d = ["header", n].filter(Boolean).join(" ");
|
|
1839
|
+
return /* @__PURE__ */ t.jsx("header", { className: d, ...h, children: /* @__PURE__ */ t.jsxs("div", { className: "header-content-wrapper", children: [
|
|
1840
|
+
/* @__PURE__ */ t.jsx("h1", { className: "header-title", children: r }),
|
|
1841
|
+
l && /* @__PURE__ */ t.jsx(
|
|
1842
|
+
Je,
|
|
1469
1843
|
{
|
|
1470
1844
|
className: "header-logo",
|
|
1471
|
-
type: (
|
|
1472
|
-
color: (
|
|
1473
|
-
width: (
|
|
1474
|
-
height:
|
|
1475
|
-
alt:
|
|
1845
|
+
type: (i == null ? void 0 : i.type) ?? "logo",
|
|
1846
|
+
color: (i == null ? void 0 : i.color) ?? "color",
|
|
1847
|
+
width: (i == null ? void 0 : i.width) ?? 240,
|
|
1848
|
+
height: i == null ? void 0 : i.height,
|
|
1849
|
+
alt: i == null ? void 0 : i.alt
|
|
1476
1850
|
}
|
|
1477
1851
|
),
|
|
1478
|
-
a && /* @__PURE__ */
|
|
1852
|
+
a && /* @__PURE__ */ t.jsx("div", { className: "header-children", children: a })
|
|
1479
1853
|
] }) });
|
|
1480
|
-
},
|
|
1854
|
+
}, er = P("pagination", {
|
|
1481
1855
|
variants: {
|
|
1482
1856
|
size: {
|
|
1483
1857
|
xs: "pagination-size-xs",
|
|
@@ -1489,127 +1863,127 @@ const et = ({
|
|
|
1489
1863
|
defaultVariants: {
|
|
1490
1864
|
size: "md"
|
|
1491
1865
|
}
|
|
1492
|
-
}),
|
|
1866
|
+
}), tr = W(
|
|
1493
1867
|
({
|
|
1494
|
-
className:
|
|
1868
|
+
className: r,
|
|
1495
1869
|
size: a,
|
|
1496
1870
|
currentPage: n,
|
|
1497
1871
|
totalPages: l,
|
|
1498
|
-
itemsPerPage:
|
|
1499
|
-
totalItems:
|
|
1500
|
-
itemsPerPageOptions:
|
|
1501
|
-
onPageChange:
|
|
1502
|
-
onItemsPerPageChange:
|
|
1503
|
-
resultsLabel:
|
|
1504
|
-
ofLabel:
|
|
1505
|
-
pageLabel:
|
|
1506
|
-
prevDisabled:
|
|
1507
|
-
nextDisabled:
|
|
1508
|
-
...
|
|
1509
|
-
},
|
|
1510
|
-
const [
|
|
1872
|
+
itemsPerPage: i,
|
|
1873
|
+
totalItems: h,
|
|
1874
|
+
itemsPerPageOptions: d = [10, 20, 50, 100],
|
|
1875
|
+
onPageChange: f,
|
|
1876
|
+
onItemsPerPageChange: c,
|
|
1877
|
+
resultsLabel: x = "Resultados",
|
|
1878
|
+
ofLabel: u = "de",
|
|
1879
|
+
pageLabel: j = "Página",
|
|
1880
|
+
prevDisabled: g,
|
|
1881
|
+
nextDisabled: v,
|
|
1882
|
+
...w
|
|
1883
|
+
}, p) => {
|
|
1884
|
+
const [m, T] = V(!1), E = K(null), D = g ?? n <= 1, I = v ?? n >= l, U = {
|
|
1511
1885
|
xs: 20,
|
|
1512
1886
|
sm: 20,
|
|
1513
1887
|
md: 22,
|
|
1514
1888
|
lg: 24
|
|
1515
|
-
}[a || "md"],
|
|
1516
|
-
!
|
|
1517
|
-
},
|
|
1518
|
-
!
|
|
1519
|
-
},
|
|
1520
|
-
|
|
1521
|
-
},
|
|
1522
|
-
|
|
1889
|
+
}[a || "md"], Z = a === "lg" || a === "md" ? 28 : 24, q = () => {
|
|
1890
|
+
!D && f && f(n - 1);
|
|
1891
|
+
}, G = () => {
|
|
1892
|
+
!I && f && f(n + 1);
|
|
1893
|
+
}, B = (k) => {
|
|
1894
|
+
c && c(k), T(!1);
|
|
1895
|
+
}, C = () => {
|
|
1896
|
+
T(!m);
|
|
1523
1897
|
};
|
|
1524
|
-
return
|
|
1525
|
-
const
|
|
1526
|
-
|
|
1898
|
+
return X(() => {
|
|
1899
|
+
const k = (S) => {
|
|
1900
|
+
E.current && !E.current.contains(S.target) && T(!1);
|
|
1527
1901
|
};
|
|
1528
|
-
return
|
|
1529
|
-
document.removeEventListener("mousedown",
|
|
1902
|
+
return m && document.addEventListener("mousedown", k), () => {
|
|
1903
|
+
document.removeEventListener("mousedown", k);
|
|
1530
1904
|
};
|
|
1531
|
-
}, [
|
|
1905
|
+
}, [m]), /* @__PURE__ */ t.jsxs(
|
|
1532
1906
|
"div",
|
|
1533
1907
|
{
|
|
1534
|
-
className:
|
|
1908
|
+
className: er({
|
|
1535
1909
|
size: a,
|
|
1536
|
-
className:
|
|
1910
|
+
className: r
|
|
1537
1911
|
}),
|
|
1538
|
-
ref:
|
|
1539
|
-
...
|
|
1912
|
+
ref: p,
|
|
1913
|
+
...w,
|
|
1540
1914
|
children: [
|
|
1541
|
-
/* @__PURE__ */
|
|
1542
|
-
/* @__PURE__ */
|
|
1543
|
-
/* @__PURE__ */
|
|
1544
|
-
/* @__PURE__ */
|
|
1915
|
+
/* @__PURE__ */ t.jsxs("div", { className: "pagination-results-section", children: [
|
|
1916
|
+
/* @__PURE__ */ t.jsx("div", { className: "pagination-results", children: /* @__PURE__ */ t.jsx("span", { className: "pagination-results-text", children: x }) }),
|
|
1917
|
+
/* @__PURE__ */ t.jsx("div", { className: "pagination-items-selector", ref: E, children: /* @__PURE__ */ t.jsxs("div", { className: "pagination-items-dropdown", children: [
|
|
1918
|
+
/* @__PURE__ */ t.jsxs(
|
|
1545
1919
|
"button",
|
|
1546
1920
|
{
|
|
1547
1921
|
className: "pagination-items-display",
|
|
1548
|
-
onClick:
|
|
1922
|
+
onClick: C,
|
|
1549
1923
|
type: "button",
|
|
1550
|
-
"aria-expanded":
|
|
1924
|
+
"aria-expanded": m,
|
|
1551
1925
|
"aria-haspopup": "listbox",
|
|
1552
1926
|
children: [
|
|
1553
|
-
/* @__PURE__ */
|
|
1554
|
-
/* @__PURE__ */
|
|
1555
|
-
|
|
1927
|
+
/* @__PURE__ */ t.jsx("span", { className: "pagination-items-text", children: i }),
|
|
1928
|
+
/* @__PURE__ */ t.jsx(
|
|
1929
|
+
Wt,
|
|
1556
1930
|
{
|
|
1557
|
-
size:
|
|
1558
|
-
className: `pagination-chevron-down ${
|
|
1931
|
+
size: Z,
|
|
1932
|
+
className: `pagination-chevron-down ${m ? "open" : ""}`
|
|
1559
1933
|
}
|
|
1560
1934
|
)
|
|
1561
1935
|
]
|
|
1562
1936
|
}
|
|
1563
1937
|
),
|
|
1564
|
-
|
|
1938
|
+
m && /* @__PURE__ */ t.jsx("div", { className: "pagination-dropdown-menu", role: "listbox", children: d.map((k) => /* @__PURE__ */ t.jsx(
|
|
1565
1939
|
"button",
|
|
1566
1940
|
{
|
|
1567
|
-
className: `pagination-dropdown-item ${
|
|
1568
|
-
onClick: () =>
|
|
1941
|
+
className: `pagination-dropdown-item ${k === i ? "selected" : ""}`,
|
|
1942
|
+
onClick: () => B(k),
|
|
1569
1943
|
type: "button",
|
|
1570
1944
|
role: "option",
|
|
1571
|
-
"aria-selected":
|
|
1572
|
-
children:
|
|
1945
|
+
"aria-selected": k === i,
|
|
1946
|
+
children: k
|
|
1573
1947
|
},
|
|
1574
|
-
|
|
1948
|
+
k
|
|
1575
1949
|
)) })
|
|
1576
1950
|
] }) }),
|
|
1577
|
-
/* @__PURE__ */
|
|
1578
|
-
|
|
1951
|
+
/* @__PURE__ */ t.jsx("div", { className: "pagination-total", children: /* @__PURE__ */ t.jsxs("span", { className: "pagination-total-text", children: [
|
|
1952
|
+
u,
|
|
1579
1953
|
" ",
|
|
1580
|
-
|
|
1954
|
+
h
|
|
1581
1955
|
] }) })
|
|
1582
1956
|
] }),
|
|
1583
|
-
/* @__PURE__ */
|
|
1584
|
-
/* @__PURE__ */
|
|
1957
|
+
/* @__PURE__ */ t.jsxs("div", { className: "pagination-navigation", children: [
|
|
1958
|
+
/* @__PURE__ */ t.jsx(
|
|
1585
1959
|
"button",
|
|
1586
1960
|
{
|
|
1587
|
-
className: `pagination-nav-button ${
|
|
1588
|
-
onClick:
|
|
1589
|
-
disabled:
|
|
1961
|
+
className: `pagination-nav-button ${D ? "disabled" : ""}`,
|
|
1962
|
+
onClick: q,
|
|
1963
|
+
disabled: D,
|
|
1590
1964
|
type: "button",
|
|
1591
1965
|
"aria-label": "Página anterior",
|
|
1592
|
-
children: /* @__PURE__ */
|
|
1966
|
+
children: /* @__PURE__ */ t.jsx(Vt, { size: U })
|
|
1593
1967
|
}
|
|
1594
1968
|
),
|
|
1595
|
-
/* @__PURE__ */
|
|
1596
|
-
|
|
1969
|
+
/* @__PURE__ */ t.jsx("div", { className: "pagination-page-info", children: /* @__PURE__ */ t.jsxs("span", { className: "pagination-page-text", children: [
|
|
1970
|
+
j,
|
|
1597
1971
|
" ",
|
|
1598
1972
|
n,
|
|
1599
1973
|
" ",
|
|
1600
|
-
|
|
1974
|
+
u,
|
|
1601
1975
|
" ",
|
|
1602
1976
|
l
|
|
1603
1977
|
] }) }),
|
|
1604
|
-
/* @__PURE__ */
|
|
1978
|
+
/* @__PURE__ */ t.jsx(
|
|
1605
1979
|
"button",
|
|
1606
1980
|
{
|
|
1607
|
-
className: `pagination-nav-button ${
|
|
1608
|
-
onClick:
|
|
1609
|
-
disabled:
|
|
1981
|
+
className: `pagination-nav-button ${I ? "disabled" : ""}`,
|
|
1982
|
+
onClick: G,
|
|
1983
|
+
disabled: I,
|
|
1610
1984
|
type: "button",
|
|
1611
1985
|
"aria-label": "Página siguiente",
|
|
1612
|
-
children: /* @__PURE__ */
|
|
1986
|
+
children: /* @__PURE__ */ t.jsx(Bt, { size: U })
|
|
1613
1987
|
}
|
|
1614
1988
|
)
|
|
1615
1989
|
] })
|
|
@@ -1618,27 +1992,101 @@ const et = ({
|
|
|
1618
1992
|
);
|
|
1619
1993
|
}
|
|
1620
1994
|
);
|
|
1621
|
-
|
|
1995
|
+
tr.displayName = "Pagination";
|
|
1996
|
+
const dr = ({
|
|
1997
|
+
icon: r,
|
|
1998
|
+
title: a,
|
|
1999
|
+
options: n = [],
|
|
2000
|
+
value: l,
|
|
2001
|
+
onChange: i,
|
|
2002
|
+
className: h = ""
|
|
2003
|
+
}) => {
|
|
2004
|
+
const [d, f] = V(!1), [c, x] = V(
|
|
2005
|
+
n.find((p) => p.id === l) || null
|
|
2006
|
+
), u = K(null);
|
|
2007
|
+
X(() => {
|
|
2008
|
+
const p = (m) => {
|
|
2009
|
+
u.current && !u.current.contains(m.target) && f(!1);
|
|
2010
|
+
};
|
|
2011
|
+
return document.addEventListener("mousedown", p), () => document.removeEventListener("mousedown", p);
|
|
2012
|
+
}, []);
|
|
2013
|
+
const j = () => {
|
|
2014
|
+
f(!d);
|
|
2015
|
+
}, g = (p) => {
|
|
2016
|
+
var m;
|
|
2017
|
+
p.disabled || (x(p), f(!1), i == null || i(p), (m = p.onSelect) == null || m.call(p));
|
|
2018
|
+
}, v = a, w = r || /* @__PURE__ */ t.jsx(Pt, { size: 20, color: "#00D4AA" });
|
|
2019
|
+
return /* @__PURE__ */ t.jsxs("div", { className: `selector-container ${h}`, ref: u, children: [
|
|
2020
|
+
/* @__PURE__ */ t.jsxs(
|
|
2021
|
+
"div",
|
|
2022
|
+
{
|
|
2023
|
+
className: `selector ${d ? "selector--open" : ""}`,
|
|
2024
|
+
onClick: j,
|
|
2025
|
+
children: [
|
|
2026
|
+
/* @__PURE__ */ t.jsx("div", { className: "selector__icon", children: w }),
|
|
2027
|
+
/* @__PURE__ */ t.jsx("div", { className: "selector__title", children: v }),
|
|
2028
|
+
/* @__PURE__ */ t.jsx("div", { className: "selector__chevron", children: /* @__PURE__ */ t.jsx(
|
|
2029
|
+
"svg",
|
|
2030
|
+
{
|
|
2031
|
+
width: "12",
|
|
2032
|
+
height: "7",
|
|
2033
|
+
viewBox: "0 0 12 7",
|
|
2034
|
+
fill: "none",
|
|
2035
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2036
|
+
className: `selector__chevron-icon ${d ? "selector__chevron-icon--open" : ""}`,
|
|
2037
|
+
children: /* @__PURE__ */ t.jsx(
|
|
2038
|
+
"path",
|
|
2039
|
+
{
|
|
2040
|
+
d: "M1 1L6 6L11 1",
|
|
2041
|
+
stroke: "currentColor",
|
|
2042
|
+
strokeWidth: "1.5",
|
|
2043
|
+
strokeLinecap: "round",
|
|
2044
|
+
strokeLinejoin: "round"
|
|
2045
|
+
}
|
|
2046
|
+
)
|
|
2047
|
+
}
|
|
2048
|
+
) })
|
|
2049
|
+
]
|
|
2050
|
+
}
|
|
2051
|
+
),
|
|
2052
|
+
d && n.length > 0 && /* @__PURE__ */ t.jsx("div", { className: "selector__dropdown", children: /* @__PURE__ */ t.jsx("div", { className: "selector__dropdown-content", children: n.map((p) => /* @__PURE__ */ t.jsxs(
|
|
2053
|
+
"div",
|
|
2054
|
+
{
|
|
2055
|
+
className: `selector__option ${(c == null ? void 0 : c.id) === p.id ? "selector__option--selected" : ""} ${p.disabled ? "selector__option--disabled" : ""}`,
|
|
2056
|
+
onClick: () => g(p),
|
|
2057
|
+
children: [
|
|
2058
|
+
p.icon && /* @__PURE__ */ t.jsx("div", { className: "selector__option-icon", children: p.icon }),
|
|
2059
|
+
/* @__PURE__ */ t.jsxs("div", { className: "selector__option-content", children: [
|
|
2060
|
+
/* @__PURE__ */ t.jsx("div", { className: "selector__option-title", children: p.title }),
|
|
2061
|
+
p.subtitle && /* @__PURE__ */ t.jsx("div", { className: "selector__option-subtitle", children: p.subtitle })
|
|
2062
|
+
] })
|
|
2063
|
+
]
|
|
2064
|
+
},
|
|
2065
|
+
p.id
|
|
2066
|
+
)) }) })
|
|
2067
|
+
] });
|
|
2068
|
+
};
|
|
1622
2069
|
export {
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
2070
|
+
Ht as Alert,
|
|
2071
|
+
St as Button,
|
|
2072
|
+
lr as Card,
|
|
2073
|
+
ir as Collapsible,
|
|
2074
|
+
sr as Drawer,
|
|
2075
|
+
ur as Header,
|
|
2076
|
+
Ut as Input,
|
|
2077
|
+
Je as Logo,
|
|
2078
|
+
ar as Modal,
|
|
2079
|
+
tr as Pagination,
|
|
2080
|
+
cr as ProgressBar,
|
|
2081
|
+
dr as Selector,
|
|
2082
|
+
nr as Sidebar,
|
|
2083
|
+
Zt as SocialLogin,
|
|
2084
|
+
zt as Tab,
|
|
2085
|
+
At as TabGroup,
|
|
2086
|
+
or as ToggleButton,
|
|
2087
|
+
Gt as alertVariants,
|
|
2088
|
+
Rt as buttonVariants,
|
|
2089
|
+
Yt as inputVariants,
|
|
2090
|
+
Mt as tabVariants
|
|
1643
2091
|
};
|
|
1644
2092
|
//# sourceMappingURL=index.esm.js.map
|