anima-ds-nucleus 1.0.24 → 1.0.25
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/anima-ds-nucleus.css +1 -1
- package/dist/anima-ds.cjs.js +68 -68
- package/dist/anima-ds.esm.js +963 -957
- package/package.json +1 -1
- package/src/components/Views/ForgotPassword/ForgotPassword.jsx +2 -0
- package/src/components/Views/LoginForm/LoginForm.jsx +1 -1
- package/src/components/Views/NewPassword/NewPassword.jsx +4 -0
- package/src/style.css +53 -4
package/dist/anima-ds.esm.js
CHANGED
|
@@ -11,64 +11,64 @@ function Qe() {
|
|
|
11
11
|
if (Me) return ne;
|
|
12
12
|
Me = 1;
|
|
13
13
|
var a = He, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, c = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
14
|
-
function s
|
|
15
|
-
var w,
|
|
16
|
-
f !== void 0 && (
|
|
17
|
-
for (w in i) n.call(i, w) && !u.hasOwnProperty(w) && (
|
|
18
|
-
if (
|
|
19
|
-
return { $$typeof: r, type:
|
|
14
|
+
function d(s, i, f) {
|
|
15
|
+
var w, g = {}, p = null, h = null;
|
|
16
|
+
f !== void 0 && (p = "" + f), i.key !== void 0 && (p = "" + i.key), i.ref !== void 0 && (h = i.ref);
|
|
17
|
+
for (w in i) n.call(i, w) && !u.hasOwnProperty(w) && (g[w] = i[w]);
|
|
18
|
+
if (s && s.defaultProps) for (w in i = s.defaultProps, i) g[w] === void 0 && (g[w] = i[w]);
|
|
19
|
+
return { $$typeof: r, type: s, key: p, ref: h, props: g, _owner: c.current };
|
|
20
20
|
}
|
|
21
|
-
return ne.Fragment = t, ne.jsx =
|
|
21
|
+
return ne.Fragment = t, ne.jsx = d, ne.jsxs = d, ne;
|
|
22
22
|
}
|
|
23
23
|
var te = {};
|
|
24
24
|
var Ce;
|
|
25
25
|
function Je() {
|
|
26
26
|
return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
27
|
-
var a = He, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"),
|
|
28
|
-
function
|
|
27
|
+
var a = He, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), s = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), M = Symbol.iterator, y = "@@iterator";
|
|
28
|
+
function A(o) {
|
|
29
29
|
if (o === null || typeof o != "object")
|
|
30
30
|
return null;
|
|
31
|
-
var m =
|
|
31
|
+
var m = M && o[M] || o[y];
|
|
32
32
|
return typeof m == "function" ? m : null;
|
|
33
33
|
}
|
|
34
34
|
var R = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
35
35
|
function v(o) {
|
|
36
36
|
{
|
|
37
|
-
for (var m = arguments.length, E = new Array(m > 1 ? m - 1 : 0),
|
|
38
|
-
E[
|
|
39
|
-
|
|
37
|
+
for (var m = arguments.length, E = new Array(m > 1 ? m - 1 : 0), B = 1; B < m; B++)
|
|
38
|
+
E[B - 1] = arguments[B];
|
|
39
|
+
L("error", o, E);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function L(o, m, E) {
|
|
43
43
|
{
|
|
44
|
-
var
|
|
44
|
+
var B = R.ReactDebugCurrentFrame, z = B.getStackAddendum();
|
|
45
45
|
z !== "" && (m += "%s", E = E.concat([z]));
|
|
46
|
-
var X = E.map(function(
|
|
47
|
-
return String(
|
|
46
|
+
var X = E.map(function(N) {
|
|
47
|
+
return String(N);
|
|
48
48
|
});
|
|
49
49
|
X.unshift("Warning: " + m), Function.prototype.apply.call(console[o], console, X);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
function
|
|
55
|
-
return !!(typeof o == "string" || typeof o == "function" || o === n || o === u ||
|
|
52
|
+
var F = !1, $ = !1, k = !1, Q = !1, P = !1, W;
|
|
53
|
+
W = Symbol.for("react.module.reference");
|
|
54
|
+
function O(o) {
|
|
55
|
+
return !!(typeof o == "string" || typeof o == "function" || o === n || o === u || P || o === c || o === f || o === w || Q || o === h || F || $ || k || typeof o == "object" && o !== null && (o.$$typeof === p || o.$$typeof === g || o.$$typeof === d || o.$$typeof === s || o.$$typeof === i || // This needs to include all possible module reference object
|
|
56
56
|
// types supported by any Flight configuration anywhere since
|
|
57
57
|
// we don't know which Flight build this will end up being used
|
|
58
58
|
// with.
|
|
59
|
-
o.$$typeof ===
|
|
59
|
+
o.$$typeof === W || o.getModuleId !== void 0));
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
var
|
|
63
|
-
if (
|
|
64
|
-
return
|
|
61
|
+
function r0(o, m, E) {
|
|
62
|
+
var B = o.displayName;
|
|
63
|
+
if (B)
|
|
64
|
+
return B;
|
|
65
65
|
var z = m.displayName || m.name || "";
|
|
66
66
|
return z !== "" ? E + "(" + z + ")" : E;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function C(o) {
|
|
69
69
|
return o.displayName || "Context";
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function j(o) {
|
|
72
72
|
if (o == null)
|
|
73
73
|
return null;
|
|
74
74
|
if (typeof o.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
|
|
@@ -91,21 +91,21 @@ function Je() {
|
|
|
91
91
|
}
|
|
92
92
|
if (typeof o == "object")
|
|
93
93
|
switch (o.$$typeof) {
|
|
94
|
-
case d:
|
|
95
|
-
var m = o;
|
|
96
|
-
return Z(m) + ".Consumer";
|
|
97
94
|
case s:
|
|
95
|
+
var m = o;
|
|
96
|
+
return C(m) + ".Consumer";
|
|
97
|
+
case d:
|
|
98
98
|
var E = o;
|
|
99
|
-
return
|
|
99
|
+
return C(E._context) + ".Provider";
|
|
100
100
|
case i:
|
|
101
|
-
return
|
|
102
|
-
case
|
|
103
|
-
var
|
|
104
|
-
return
|
|
105
|
-
case
|
|
106
|
-
var z = o, X = z._payload,
|
|
101
|
+
return r0(o, o.render, "ForwardRef");
|
|
102
|
+
case g:
|
|
103
|
+
var B = o.displayName || null;
|
|
104
|
+
return B !== null ? B : j(o.type) || "Memo";
|
|
105
|
+
case p: {
|
|
106
|
+
var z = o, X = z._payload, N = z._init;
|
|
107
107
|
try {
|
|
108
|
-
return
|
|
108
|
+
return j(N(X));
|
|
109
109
|
} catch {
|
|
110
110
|
return null;
|
|
111
111
|
}
|
|
@@ -113,18 +113,18 @@ function Je() {
|
|
|
113
113
|
}
|
|
114
114
|
return null;
|
|
115
115
|
}
|
|
116
|
-
var
|
|
117
|
-
function
|
|
116
|
+
var T = Object.assign, K = 0, D, Z, H, _, n0, e0, c0;
|
|
117
|
+
function U() {
|
|
118
118
|
}
|
|
119
|
-
|
|
119
|
+
U.__reactDisabledLog = !0;
|
|
120
120
|
function g0() {
|
|
121
121
|
{
|
|
122
|
-
if (
|
|
123
|
-
|
|
122
|
+
if (K === 0) {
|
|
123
|
+
D = console.log, Z = console.info, H = console.warn, _ = console.error, n0 = console.group, e0 = console.groupCollapsed, c0 = console.groupEnd;
|
|
124
124
|
var o = {
|
|
125
125
|
configurable: !0,
|
|
126
126
|
enumerable: !0,
|
|
127
|
-
value:
|
|
127
|
+
value: U,
|
|
128
128
|
writable: !0
|
|
129
129
|
};
|
|
130
130
|
Object.defineProperties(console, {
|
|
@@ -137,42 +137,42 @@ function Je() {
|
|
|
137
137
|
groupEnd: o
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
-
|
|
140
|
+
K++;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
function M0() {
|
|
144
144
|
{
|
|
145
|
-
if (
|
|
145
|
+
if (K--, K === 0) {
|
|
146
146
|
var o = {
|
|
147
147
|
configurable: !0,
|
|
148
148
|
enumerable: !0,
|
|
149
149
|
writable: !0
|
|
150
150
|
};
|
|
151
151
|
Object.defineProperties(console, {
|
|
152
|
-
log:
|
|
153
|
-
value:
|
|
152
|
+
log: T({}, o, {
|
|
153
|
+
value: D
|
|
154
154
|
}),
|
|
155
|
-
info:
|
|
156
|
-
value:
|
|
155
|
+
info: T({}, o, {
|
|
156
|
+
value: Z
|
|
157
157
|
}),
|
|
158
|
-
warn:
|
|
158
|
+
warn: T({}, o, {
|
|
159
159
|
value: H
|
|
160
160
|
}),
|
|
161
|
-
error:
|
|
161
|
+
error: T({}, o, {
|
|
162
162
|
value: _
|
|
163
163
|
}),
|
|
164
|
-
group:
|
|
164
|
+
group: T({}, o, {
|
|
165
165
|
value: n0
|
|
166
166
|
}),
|
|
167
|
-
groupCollapsed:
|
|
168
|
-
value:
|
|
167
|
+
groupCollapsed: T({}, o, {
|
|
168
|
+
value: e0
|
|
169
169
|
}),
|
|
170
|
-
groupEnd:
|
|
170
|
+
groupEnd: T({}, o, {
|
|
171
171
|
value: c0
|
|
172
172
|
})
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
K < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
var v0 = R.ReactCurrentDispatcher, l0;
|
|
@@ -182,8 +182,8 @@ function Je() {
|
|
|
182
182
|
try {
|
|
183
183
|
throw Error();
|
|
184
184
|
} catch (z) {
|
|
185
|
-
var
|
|
186
|
-
l0 =
|
|
185
|
+
var B = z.stack.trim().match(/\n( *(at )?)/);
|
|
186
|
+
l0 = B && B[1] || "";
|
|
187
187
|
}
|
|
188
188
|
return `
|
|
189
189
|
` + l0 + o;
|
|
@@ -202,7 +202,7 @@ function Je() {
|
|
|
202
202
|
if (E !== void 0)
|
|
203
203
|
return E;
|
|
204
204
|
}
|
|
205
|
-
var
|
|
205
|
+
var B;
|
|
206
206
|
C0 = !0;
|
|
207
207
|
var z = Error.prepareStackTrace;
|
|
208
208
|
Error.prepareStackTrace = void 0;
|
|
@@ -210,52 +210,52 @@ function Je() {
|
|
|
210
210
|
X = v0.current, v0.current = null, g0();
|
|
211
211
|
try {
|
|
212
212
|
if (m) {
|
|
213
|
-
var
|
|
213
|
+
var N = function() {
|
|
214
214
|
throw Error();
|
|
215
215
|
};
|
|
216
|
-
if (Object.defineProperty(
|
|
216
|
+
if (Object.defineProperty(N.prototype, "props", {
|
|
217
217
|
set: function() {
|
|
218
218
|
throw Error();
|
|
219
219
|
}
|
|
220
220
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
221
221
|
try {
|
|
222
|
-
Reflect.construct(
|
|
222
|
+
Reflect.construct(N, []);
|
|
223
223
|
} catch (h0) {
|
|
224
|
-
|
|
224
|
+
B = h0;
|
|
225
225
|
}
|
|
226
|
-
Reflect.construct(o, [],
|
|
226
|
+
Reflect.construct(o, [], N);
|
|
227
227
|
} else {
|
|
228
228
|
try {
|
|
229
|
-
|
|
229
|
+
N.call();
|
|
230
230
|
} catch (h0) {
|
|
231
|
-
|
|
231
|
+
B = h0;
|
|
232
232
|
}
|
|
233
|
-
o.call(
|
|
233
|
+
o.call(N.prototype);
|
|
234
234
|
}
|
|
235
235
|
} else {
|
|
236
236
|
try {
|
|
237
237
|
throw Error();
|
|
238
238
|
} catch (h0) {
|
|
239
|
-
|
|
239
|
+
B = h0;
|
|
240
240
|
}
|
|
241
241
|
o();
|
|
242
242
|
}
|
|
243
243
|
} catch (h0) {
|
|
244
|
-
if (h0 &&
|
|
244
|
+
if (h0 && B && typeof h0.stack == "string") {
|
|
245
245
|
for (var V = h0.stack.split(`
|
|
246
|
-
`), d0 =
|
|
247
|
-
`),
|
|
248
|
-
|
|
249
|
-
for (;
|
|
250
|
-
if (V[
|
|
251
|
-
if (
|
|
246
|
+
`), d0 = B.stack.split(`
|
|
247
|
+
`), J = V.length - 1, a0 = d0.length - 1; J >= 1 && a0 >= 0 && V[J] !== d0[a0]; )
|
|
248
|
+
a0--;
|
|
249
|
+
for (; J >= 1 && a0 >= 0; J--, a0--)
|
|
250
|
+
if (V[J] !== d0[a0]) {
|
|
251
|
+
if (J !== 1 || a0 !== 1)
|
|
252
252
|
do
|
|
253
|
-
if (
|
|
253
|
+
if (J--, a0--, a0 < 0 || V[J] !== d0[a0]) {
|
|
254
254
|
var p0 = `
|
|
255
|
-
` + V[
|
|
255
|
+
` + V[J].replace(" at new ", " at ");
|
|
256
256
|
return o.displayName && p0.includes("<anonymous>") && (p0 = p0.replace("<anonymous>", o.displayName)), typeof o == "function" && R0.set(o, p0), p0;
|
|
257
257
|
}
|
|
258
|
-
while (
|
|
258
|
+
while (J >= 1 && a0 >= 0);
|
|
259
259
|
break;
|
|
260
260
|
}
|
|
261
261
|
}
|
|
@@ -289,10 +289,10 @@ function Je() {
|
|
|
289
289
|
switch (o.$$typeof) {
|
|
290
290
|
case i:
|
|
291
291
|
return B0(o.render);
|
|
292
|
-
case
|
|
292
|
+
case g:
|
|
293
293
|
return E0(o.type, m, E);
|
|
294
|
-
case
|
|
295
|
-
var
|
|
294
|
+
case p: {
|
|
295
|
+
var B = o, z = B._payload, X = B._init;
|
|
296
296
|
try {
|
|
297
297
|
return E0(X(z), m, E);
|
|
298
298
|
} catch {
|
|
@@ -309,22 +309,22 @@ function Je() {
|
|
|
309
309
|
} else
|
|
310
310
|
z0.setExtraStackFrame(null);
|
|
311
311
|
}
|
|
312
|
-
function ee(o, m, E,
|
|
312
|
+
function ee(o, m, E, B, z) {
|
|
313
313
|
{
|
|
314
314
|
var X = Function.call.bind(A0);
|
|
315
|
-
for (var
|
|
316
|
-
if (X(o,
|
|
315
|
+
for (var N in o)
|
|
316
|
+
if (X(o, N)) {
|
|
317
317
|
var V = void 0;
|
|
318
318
|
try {
|
|
319
|
-
if (typeof o[
|
|
320
|
-
var d0 = Error((
|
|
319
|
+
if (typeof o[N] != "function") {
|
|
320
|
+
var d0 = Error((B || "React class") + ": " + E + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
321
321
|
throw d0.name = "Invariant Violation", d0;
|
|
322
322
|
}
|
|
323
|
-
V = o[
|
|
324
|
-
} catch (
|
|
325
|
-
V =
|
|
323
|
+
V = o[N](m, N, B, E, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
324
|
+
} catch (J) {
|
|
325
|
+
V = J;
|
|
326
326
|
}
|
|
327
|
-
V && !(V instanceof Error) && (L0(z), v("%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).",
|
|
327
|
+
V && !(V instanceof Error) && (L0(z), v("%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", E, N, typeof V), L0(null)), V instanceof Error && !(V.message in U0) && (U0[V.message] = !0, L0(z), v("Failed %s type: %s", E, V.message), L0(null));
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
}
|
|
@@ -399,7 +399,7 @@ function Je() {
|
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
var o0 = function(o, m, E,
|
|
402
|
+
var o0 = function(o, m, E, B, z, X, N) {
|
|
403
403
|
var V = {
|
|
404
404
|
// This tag allows us to uniquely identify this as a React Element
|
|
405
405
|
$$typeof: r,
|
|
@@ -407,7 +407,7 @@ function Je() {
|
|
|
407
407
|
type: o,
|
|
408
408
|
key: m,
|
|
409
409
|
ref: E,
|
|
410
|
-
props:
|
|
410
|
+
props: N,
|
|
411
411
|
// Record the component responsible for creating this element.
|
|
412
412
|
_owner: X
|
|
413
413
|
};
|
|
@@ -420,7 +420,7 @@ function Je() {
|
|
|
420
420
|
configurable: !1,
|
|
421
421
|
enumerable: !1,
|
|
422
422
|
writable: !1,
|
|
423
|
-
value:
|
|
423
|
+
value: B
|
|
424
424
|
}), Object.defineProperty(V, "_source", {
|
|
425
425
|
configurable: !1,
|
|
426
426
|
enumerable: !1,
|
|
@@ -428,22 +428,22 @@ function Je() {
|
|
|
428
428
|
value: z
|
|
429
429
|
}), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
|
|
430
430
|
};
|
|
431
|
-
function N0(o, m, E,
|
|
431
|
+
function N0(o, m, E, B, z) {
|
|
432
432
|
{
|
|
433
|
-
var X,
|
|
433
|
+
var X, N = {}, V = null, d0 = null;
|
|
434
434
|
E !== void 0 && (Y(E), V = "" + E), O0(m) && (Y(m.key), V = "" + m.key), _0(m) && (d0 = m.ref, s0(m, z));
|
|
435
435
|
for (X in m)
|
|
436
|
-
A0.call(m, X) && !y0.hasOwnProperty(X) && (
|
|
436
|
+
A0.call(m, X) && !y0.hasOwnProperty(X) && (N[X] = m[X]);
|
|
437
437
|
if (o && o.defaultProps) {
|
|
438
|
-
var
|
|
439
|
-
for (X in
|
|
440
|
-
|
|
438
|
+
var J = o.defaultProps;
|
|
439
|
+
for (X in J)
|
|
440
|
+
N[X] === void 0 && (N[X] = J[X]);
|
|
441
441
|
}
|
|
442
442
|
if (V || d0) {
|
|
443
|
-
var
|
|
444
|
-
V && t0(
|
|
443
|
+
var a0 = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
444
|
+
V && t0(N, a0), d0 && j0(N, a0);
|
|
445
445
|
}
|
|
446
|
-
return o0(o, V, d0, z,
|
|
446
|
+
return o0(o, V, d0, z, B, G.current, N);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
var $0 = R.ReactCurrentOwner, q = R.ReactDebugCurrentFrame;
|
|
@@ -462,7 +462,7 @@ function Je() {
|
|
|
462
462
|
function k0() {
|
|
463
463
|
{
|
|
464
464
|
if ($0.current) {
|
|
465
|
-
var o =
|
|
465
|
+
var o = j($0.current.type);
|
|
466
466
|
if (o)
|
|
467
467
|
return `
|
|
468
468
|
|
|
@@ -496,8 +496,8 @@ Check the top-level render call using <` + E + ">.");
|
|
|
496
496
|
if (G0[E])
|
|
497
497
|
return;
|
|
498
498
|
G0[E] = !0;
|
|
499
|
-
var
|
|
500
|
-
o && o._owner && o._owner !== $0.current && (
|
|
499
|
+
var B = "";
|
|
500
|
+
o && o._owner && o._owner !== $0.current && (B = " It was passed a child from " + j(o._owner.type) + "."), i0(o), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', E, B), i0(null);
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
function f0(o, m) {
|
|
@@ -506,16 +506,16 @@ Check the top-level render call using <` + E + ">.");
|
|
|
506
506
|
return;
|
|
507
507
|
if (V0(o))
|
|
508
508
|
for (var E = 0; E < o.length; E++) {
|
|
509
|
-
var
|
|
510
|
-
re(
|
|
509
|
+
var B = o[E];
|
|
510
|
+
re(B) && ve(B, m);
|
|
511
511
|
}
|
|
512
512
|
else if (re(o))
|
|
513
513
|
o._store && (o._store.validated = !0);
|
|
514
514
|
else if (o) {
|
|
515
|
-
var z =
|
|
515
|
+
var z = A(o);
|
|
516
516
|
if (typeof z == "function" && z !== o.entries)
|
|
517
|
-
for (var X = z.call(o),
|
|
518
|
-
re(
|
|
517
|
+
for (var X = z.call(o), N; !(N = X.next()).done; )
|
|
518
|
+
re(N.value) && ve(N.value, m);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
}
|
|
@@ -529,16 +529,16 @@ Check the top-level render call using <` + E + ">.");
|
|
|
529
529
|
E = m.propTypes;
|
|
530
530
|
else if (typeof m == "object" && (m.$$typeof === i || // Note: Memo only checks outer props here.
|
|
531
531
|
// Inner props are checked in the reconciler.
|
|
532
|
-
m.$$typeof ===
|
|
532
|
+
m.$$typeof === g))
|
|
533
533
|
E = m.propTypes;
|
|
534
534
|
else
|
|
535
535
|
return;
|
|
536
536
|
if (E) {
|
|
537
|
-
var
|
|
538
|
-
ee(E, o.props, "prop",
|
|
537
|
+
var B = j(m);
|
|
538
|
+
ee(E, o.props, "prop", B, o);
|
|
539
539
|
} else if (m.PropTypes !== void 0 && !H0) {
|
|
540
540
|
H0 = !0;
|
|
541
|
-
var z =
|
|
541
|
+
var z = j(m);
|
|
542
542
|
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", z || "Unknown");
|
|
543
543
|
}
|
|
544
544
|
typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -547,9 +547,9 @@ Check the top-level render call using <` + E + ">.");
|
|
|
547
547
|
function pe(o) {
|
|
548
548
|
{
|
|
549
549
|
for (var m = Object.keys(o.props), E = 0; E < m.length; E++) {
|
|
550
|
-
var
|
|
551
|
-
if (
|
|
552
|
-
i0(o), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
550
|
+
var B = m[E];
|
|
551
|
+
if (B !== "children" && B !== "key") {
|
|
552
|
+
i0(o), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", B), i0(null);
|
|
553
553
|
break;
|
|
554
554
|
}
|
|
555
555
|
}
|
|
@@ -557,24 +557,24 @@ Check the top-level render call using <` + E + ">.");
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
var w0 = {};
|
|
560
|
-
function P0(o, m, E,
|
|
560
|
+
function P0(o, m, E, B, z, X) {
|
|
561
561
|
{
|
|
562
|
-
var
|
|
563
|
-
if (!
|
|
562
|
+
var N = O(o);
|
|
563
|
+
if (!N) {
|
|
564
564
|
var V = "";
|
|
565
565
|
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (V += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
566
566
|
var d0 = u0();
|
|
567
567
|
d0 ? V += d0 : V += k0();
|
|
568
|
-
var
|
|
569
|
-
o === null ?
|
|
568
|
+
var J;
|
|
569
|
+
o === null ? J = "null" : V0(o) ? J = "array" : o !== void 0 && o.$$typeof === r ? (J = "<" + (j(o.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : J = typeof o, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, V);
|
|
570
570
|
}
|
|
571
|
-
var
|
|
572
|
-
if (
|
|
573
|
-
return
|
|
574
|
-
if (
|
|
571
|
+
var a0 = N0(o, m, E, z, X);
|
|
572
|
+
if (a0 == null)
|
|
573
|
+
return a0;
|
|
574
|
+
if (N) {
|
|
575
575
|
var p0 = m.children;
|
|
576
576
|
if (p0 !== void 0)
|
|
577
|
-
if (
|
|
577
|
+
if (B)
|
|
578
578
|
if (V0(p0)) {
|
|
579
579
|
for (var q0 = 0; q0 < p0.length; q0++)
|
|
580
580
|
f0(p0[q0], o);
|
|
@@ -585,7 +585,7 @@ Check the top-level render call using <` + E + ">.");
|
|
|
585
585
|
f0(p0, o);
|
|
586
586
|
}
|
|
587
587
|
if (A0.call(m, "key")) {
|
|
588
|
-
var W0 =
|
|
588
|
+
var W0 = j(o), h0 = Object.keys(m).filter(function(Ge) {
|
|
589
589
|
return Ge !== "key";
|
|
590
590
|
}), be = h0.length > 0 ? "{key: someKey, " + h0.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
591
591
|
if (!w0[W0 + be]) {
|
|
@@ -598,7 +598,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
598
598
|
<%s key={someKey} {...props} />`, be, W0, _e, W0), w0[W0 + be] = !0;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
return o === n ? pe(
|
|
601
|
+
return o === n ? pe(a0) : ge(a0), a0;
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
function I(o, m, E) {
|
|
@@ -623,19 +623,19 @@ const m0 = ({
|
|
|
623
623
|
variant: n,
|
|
624
624
|
color: c = "Teal",
|
|
625
625
|
tamaño: u = "Default",
|
|
626
|
-
onClick:
|
|
627
|
-
type:
|
|
626
|
+
onClick: d,
|
|
627
|
+
type: s = "button",
|
|
628
628
|
disabled: i = !1,
|
|
629
629
|
className: f = "",
|
|
630
630
|
...w
|
|
631
631
|
}) => {
|
|
632
|
-
const
|
|
632
|
+
const g = t || n || "Primary", p = r ?? a, h = {
|
|
633
633
|
Teal: "#2D5C63",
|
|
634
634
|
Grape: "#6D3856",
|
|
635
635
|
// morado/plum profundo
|
|
636
636
|
Honey: "#E8B061"
|
|
637
637
|
// naranja/ámbar claro
|
|
638
|
-
},
|
|
638
|
+
}, M = {
|
|
639
639
|
Teal: "#ffffff",
|
|
640
640
|
Grape: "#ffffff",
|
|
641
641
|
Honey: "#374151"
|
|
@@ -645,7 +645,7 @@ const m0 = ({
|
|
|
645
645
|
Grape: h.Grape,
|
|
646
646
|
Honey: "#80501F"
|
|
647
647
|
// marrón medio-oscuro para Secondary
|
|
648
|
-
},
|
|
648
|
+
}, A = {
|
|
649
649
|
Teal: h.Teal,
|
|
650
650
|
Grape: h.Grape,
|
|
651
651
|
Honey: "#80501F"
|
|
@@ -662,46 +662,46 @@ const m0 = ({
|
|
|
662
662
|
// gray-400
|
|
663
663
|
background: "#F3F4F6"
|
|
664
664
|
// gray-100
|
|
665
|
-
},
|
|
665
|
+
}, L = h[c] || h.Teal, [F, $] = S(!1), k = i, Q = "font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2", P = {
|
|
666
666
|
Small: "px-3 py-1.5 text-sm rounded-md",
|
|
667
667
|
Default: "px-4 py-2 text-base rounded-lg",
|
|
668
668
|
Large: "px-6 py-3 text-lg rounded-lg"
|
|
669
|
-
},
|
|
670
|
-
const _ = parseInt(
|
|
671
|
-
return `rgba(${_}, ${n0}, ${
|
|
672
|
-
},
|
|
673
|
-
const
|
|
674
|
-
if (
|
|
675
|
-
switch (
|
|
669
|
+
}, W = (Z, H = 1) => {
|
|
670
|
+
const _ = parseInt(Z.slice(1, 3), 16), n0 = parseInt(Z.slice(3, 5), 16), e0 = parseInt(Z.slice(5, 7), 16);
|
|
671
|
+
return `rgba(${_}, ${n0}, ${e0}, ${H})`;
|
|
672
|
+
}, O = () => {
|
|
673
|
+
const Z = {};
|
|
674
|
+
if (k) {
|
|
675
|
+
switch (g) {
|
|
676
676
|
case "Primary":
|
|
677
|
-
|
|
677
|
+
Z.backgroundColor = v.background, Z.color = v.text;
|
|
678
678
|
break;
|
|
679
679
|
case "Secondary":
|
|
680
|
-
|
|
680
|
+
Z.borderColor = v.border, Z.color = v.text, Z.borderWidth = "1px", Z.borderStyle = "solid", Z.backgroundColor = "transparent";
|
|
681
681
|
break;
|
|
682
682
|
case "Ghost":
|
|
683
|
-
|
|
683
|
+
Z.color = v.text, Z.backgroundColor = "transparent";
|
|
684
684
|
break;
|
|
685
685
|
}
|
|
686
|
-
return
|
|
686
|
+
return Z;
|
|
687
687
|
}
|
|
688
|
-
switch (
|
|
688
|
+
switch (g) {
|
|
689
689
|
case "Primary":
|
|
690
|
-
|
|
690
|
+
Z.backgroundColor = L, Z.color = M[c] || "#ffffff", F && (Z.opacity = "0.9");
|
|
691
691
|
break;
|
|
692
692
|
case "Secondary":
|
|
693
|
-
const H = y[c] ||
|
|
694
|
-
|
|
693
|
+
const H = y[c] || L;
|
|
694
|
+
Z.borderColor = H, Z.color = H, Z.borderWidth = "1px", Z.borderStyle = "solid", F ? Z.backgroundColor = W(H, 0.1) : Z.backgroundColor = c === "Honey" || c === "Grape" ? "#ffffff" : "transparent";
|
|
695
695
|
break;
|
|
696
696
|
case "Ghost":
|
|
697
|
-
const _ =
|
|
698
|
-
c === "Honey" ? (
|
|
697
|
+
const _ = A[c] || L, n0 = R[c] || L;
|
|
698
|
+
c === "Honey" ? (Z.color = n0, Z.backgroundColor = "#ffffff", F && (Z.backgroundColor = W(_, 0.1))) : (Z.color = n0, Z.backgroundColor = F ? W(_, 0.1) : "transparent");
|
|
699
699
|
break;
|
|
700
700
|
}
|
|
701
|
-
return
|
|
702
|
-
},
|
|
703
|
-
if (
|
|
704
|
-
switch (
|
|
701
|
+
return Z;
|
|
702
|
+
}, C = (() => {
|
|
703
|
+
if (k)
|
|
704
|
+
switch (g) {
|
|
705
705
|
case "Primary":
|
|
706
706
|
return {
|
|
707
707
|
base: "active:opacity-80",
|
|
@@ -723,7 +723,7 @@ const m0 = ({
|
|
|
723
723
|
disabled: "cursor-not-allowed"
|
|
724
724
|
};
|
|
725
725
|
}
|
|
726
|
-
switch (
|
|
726
|
+
switch (g) {
|
|
727
727
|
case "Primary":
|
|
728
728
|
return {
|
|
729
729
|
base: `${c === "Honey" ? "" : "text-white"} active:opacity-80`.trim(),
|
|
@@ -745,27 +745,27 @@ const m0 = ({
|
|
|
745
745
|
disabled: "opacity-50 cursor-not-allowed"
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
|
-
})(),
|
|
749
|
-
${
|
|
750
|
-
${
|
|
751
|
-
${
|
|
752
|
-
${
|
|
748
|
+
})(), j = P[u] || P.Default, T = O(), K = `
|
|
749
|
+
${Q}
|
|
750
|
+
${j}
|
|
751
|
+
${C.base}
|
|
752
|
+
${k ? C.disabled : "cursor-pointer"}
|
|
753
753
|
${f}
|
|
754
|
-
`.trim().replace(/\s+/g, " "),
|
|
755
|
-
!
|
|
754
|
+
`.trim().replace(/\s+/g, " "), D = (Z) => {
|
|
755
|
+
!k && d && d(Z);
|
|
756
756
|
};
|
|
757
757
|
return /* @__PURE__ */ l.jsx(
|
|
758
758
|
"button",
|
|
759
759
|
{
|
|
760
|
-
type:
|
|
761
|
-
className:
|
|
762
|
-
style:
|
|
763
|
-
disabled:
|
|
764
|
-
onClick:
|
|
765
|
-
onMouseEnter: () => !
|
|
766
|
-
onMouseLeave: () =>
|
|
760
|
+
type: s,
|
|
761
|
+
className: K,
|
|
762
|
+
style: T,
|
|
763
|
+
disabled: k,
|
|
764
|
+
onClick: D,
|
|
765
|
+
onMouseEnter: () => !k && $(!0),
|
|
766
|
+
onMouseLeave: () => $(!1),
|
|
767
767
|
...w,
|
|
768
|
-
children:
|
|
768
|
+
children: p
|
|
769
769
|
}
|
|
770
770
|
);
|
|
771
771
|
}, x = ({
|
|
@@ -775,9 +775,9 @@ const m0 = ({
|
|
|
775
775
|
className: n = "",
|
|
776
776
|
weight: c,
|
|
777
777
|
color: u,
|
|
778
|
-
...
|
|
778
|
+
...d
|
|
779
779
|
}) => {
|
|
780
|
-
const
|
|
780
|
+
const s = {
|
|
781
781
|
light: "font-light",
|
|
782
782
|
regular: "font-regular",
|
|
783
783
|
medium: "font-medium",
|
|
@@ -825,10 +825,10 @@ const m0 = ({
|
|
|
825
825
|
mono: "text-mono-md"
|
|
826
826
|
// Alias por defecto de mono-md
|
|
827
827
|
}, w = r || (a.startsWith("h") ? a : "p");
|
|
828
|
-
let
|
|
829
|
-
c &&
|
|
830
|
-
const
|
|
831
|
-
return /* @__PURE__ */ l.jsx(w, { className:
|
|
828
|
+
let g = f[a] || f["body-lg"];
|
|
829
|
+
c && s[c] && (g = g.replace(/font-(light|regular|medium|semibold|bold)/g, ""), g = `${g} ${s[c]}`.trim()), u && i[u] && (g = g.replace(/color-\w+(-\w+)?/g, ""), g = `${g} ${i[u]}`.trim());
|
|
830
|
+
const p = `${g} ${n}`.trim();
|
|
831
|
+
return /* @__PURE__ */ l.jsx(w, { className: p, ...d, children: t });
|
|
832
832
|
}, a5 = ({
|
|
833
833
|
children: a,
|
|
834
834
|
variant: r = "default",
|
|
@@ -836,17 +836,17 @@ const m0 = ({
|
|
|
836
836
|
className: n = "",
|
|
837
837
|
...c
|
|
838
838
|
}) => {
|
|
839
|
-
const u = "inline-flex items-center font-medium rounded-full",
|
|
839
|
+
const u = "inline-flex items-center font-medium rounded-full", d = {
|
|
840
840
|
default: "bg-gray-100 text-gray-800",
|
|
841
841
|
primary: "bg-blue-100 text-blue-800",
|
|
842
842
|
success: "bg-green-100 text-green-800",
|
|
843
843
|
warning: "bg-yellow-100 text-yellow-800",
|
|
844
844
|
danger: "bg-red-100 text-red-800"
|
|
845
|
-
},
|
|
845
|
+
}, s = {
|
|
846
846
|
small: "px-2 py-0.5 text-xs",
|
|
847
847
|
medium: "px-2.5 py-1 text-sm",
|
|
848
848
|
large: "px-3 py-1.5 text-base"
|
|
849
|
-
}, i = `${u} ${
|
|
849
|
+
}, i = `${u} ${d[r]} ${s[t]} ${n}`;
|
|
850
850
|
return /* @__PURE__ */ l.jsx("span", { className: i, ...c, children: a });
|
|
851
851
|
};
|
|
852
852
|
function r5({
|
|
@@ -31362,7 +31362,7 @@ const _D = [
|
|
|
31362
31362
|
const r = XD(a);
|
|
31363
31363
|
return Be.includes(r) ? r : a;
|
|
31364
31364
|
}, ke = (a, r) => a ? TD[a] || a : r, KD = (a, r, t, n, c) => {
|
|
31365
|
-
const
|
|
31365
|
+
const d = ke(n, a.fill), s = ke(n, a.stroke || a.fill), i = a.variant === "outline" ? 2 : 0;
|
|
31366
31366
|
return a.shape === "triangle" ? /* @__PURE__ */ l.jsx(
|
|
31367
31367
|
"svg",
|
|
31368
31368
|
{
|
|
@@ -31377,8 +31377,8 @@ const _D = [
|
|
|
31377
31377
|
"polygon",
|
|
31378
31378
|
{
|
|
31379
31379
|
points: "12,4 22,20 2,20",
|
|
31380
|
-
fill:
|
|
31381
|
-
stroke: i ?
|
|
31380
|
+
fill: d,
|
|
31381
|
+
stroke: i ? s : "none",
|
|
31382
31382
|
strokeWidth: i,
|
|
31383
31383
|
strokeLinejoin: "round"
|
|
31384
31384
|
}
|
|
@@ -31398,8 +31398,8 @@ const _D = [
|
|
|
31398
31398
|
"polygon",
|
|
31399
31399
|
{
|
|
31400
31400
|
points: "12,2 22,12 12,22 2,12",
|
|
31401
|
-
fill:
|
|
31402
|
-
stroke: i ?
|
|
31401
|
+
fill: d,
|
|
31402
|
+
stroke: i ? s : "none",
|
|
31403
31403
|
strokeWidth: i,
|
|
31404
31404
|
strokeLinejoin: "round"
|
|
31405
31405
|
}
|
|
@@ -31423,8 +31423,8 @@ const _D = [
|
|
|
31423
31423
|
width: "14",
|
|
31424
31424
|
height: "14",
|
|
31425
31425
|
rx: 4,
|
|
31426
|
-
fill:
|
|
31427
|
-
stroke: i ?
|
|
31426
|
+
fill: d,
|
|
31427
|
+
stroke: i ? s : "none",
|
|
31428
31428
|
strokeWidth: i
|
|
31429
31429
|
}
|
|
31430
31430
|
)
|
|
@@ -31445,8 +31445,8 @@ const _D = [
|
|
|
31445
31445
|
cx: "12",
|
|
31446
31446
|
cy: "12",
|
|
31447
31447
|
r: "9",
|
|
31448
|
-
fill:
|
|
31449
|
-
stroke: i ?
|
|
31448
|
+
fill: d,
|
|
31449
|
+
stroke: i ? s : "none",
|
|
31450
31450
|
strokeWidth: i
|
|
31451
31451
|
}
|
|
31452
31452
|
)
|
|
@@ -31464,16 +31464,16 @@ const Be = zD, b = ({
|
|
|
31464
31464
|
}) => {
|
|
31465
31465
|
if (!a)
|
|
31466
31466
|
return null;
|
|
31467
|
-
const
|
|
31468
|
-
if (
|
|
31469
|
-
return KD(
|
|
31470
|
-
const
|
|
31471
|
-
({ weight:
|
|
31472
|
-
), w = i.lib[
|
|
31467
|
+
const d = GD[a];
|
|
31468
|
+
if (d)
|
|
31469
|
+
return KD(d, t ?? 18, n, c, u);
|
|
31470
|
+
const s = YD(a), i = oe.find(({ key: M }) => M === r) || oe[0], f = oe.find(
|
|
31471
|
+
({ weight: M, style: y }) => M === i.weight && y !== i.style
|
|
31472
|
+
), w = i.lib[s] || (f ? f.lib[s] : null) || Ie[s] || Ve[s] || Se[s] || De[s];
|
|
31473
31473
|
if (!w)
|
|
31474
31474
|
return console.warn(`Icon "${a}" not found in catalog`), null;
|
|
31475
|
-
const
|
|
31476
|
-
return /* @__PURE__ */ l.jsx(w, { className:
|
|
31475
|
+
const p = `${c && je[c] ? je[c] : ""} ${n}`.trim(), h = t ?? i.defaultSize;
|
|
31476
|
+
return /* @__PURE__ */ l.jsx(w, { className: p, width: h, height: h, ...u });
|
|
31477
31477
|
}, QD = ({
|
|
31478
31478
|
variant: a = "info",
|
|
31479
31479
|
title: r,
|
|
@@ -31482,22 +31482,22 @@ const Be = zD, b = ({
|
|
|
31482
31482
|
className: c = "",
|
|
31483
31483
|
...u
|
|
31484
31484
|
}) => {
|
|
31485
|
-
const
|
|
31485
|
+
const d = {
|
|
31486
31486
|
info: "bg-blue-50 border-blue-200 text-blue-800",
|
|
31487
31487
|
success: "bg-green-50 border-green-200 text-green-800",
|
|
31488
31488
|
warning: "bg-yellow-50 border-yellow-200 text-yellow-800",
|
|
31489
31489
|
danger: "bg-red-50 border-red-200 text-red-800"
|
|
31490
|
-
},
|
|
31490
|
+
}, s = {
|
|
31491
31491
|
info: "InformationCircleIcon",
|
|
31492
31492
|
success: "CheckCircleIcon",
|
|
31493
31493
|
warning: "ExclamationTriangleIcon",
|
|
31494
31494
|
danger: "XCircleIcon"
|
|
31495
|
-
}, i = `border rounded-lg p-4 ${
|
|
31495
|
+
}, i = `border rounded-lg p-4 ${d[a]} ${c}`;
|
|
31496
31496
|
return /* @__PURE__ */ l.jsx("div", { className: i, role: "alert", ...u, children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-start", children: [
|
|
31497
31497
|
/* @__PURE__ */ l.jsx(
|
|
31498
31498
|
b,
|
|
31499
31499
|
{
|
|
31500
|
-
name:
|
|
31500
|
+
name: s[a],
|
|
31501
31501
|
className: "mr-3 h-5 w-5 flex-shrink-0"
|
|
31502
31502
|
}
|
|
31503
31503
|
),
|
|
@@ -31521,9 +31521,9 @@ const Be = zD, b = ({
|
|
|
31521
31521
|
size: n = "medium",
|
|
31522
31522
|
variant: c = "circle",
|
|
31523
31523
|
className: u = "",
|
|
31524
|
-
...
|
|
31524
|
+
...d
|
|
31525
31525
|
}) => {
|
|
31526
|
-
const
|
|
31526
|
+
const s = {
|
|
31527
31527
|
small: "w-8 h-8 text-xs",
|
|
31528
31528
|
medium: "w-10 h-10 text-sm",
|
|
31529
31529
|
large: "w-12 h-12 text-base",
|
|
@@ -31531,20 +31531,20 @@ const Be = zD, b = ({
|
|
|
31531
31531
|
}, i = {
|
|
31532
31532
|
circle: "rounded-full",
|
|
31533
31533
|
square: "rounded-lg"
|
|
31534
|
-
}, f = (
|
|
31535
|
-
if (!
|
|
31536
|
-
const
|
|
31537
|
-
return
|
|
31538
|
-
}, w = `inline-flex items-center justify-center bg-gray-200 text-gray-600 font-medium ${
|
|
31534
|
+
}, f = (g) => {
|
|
31535
|
+
if (!g) return "";
|
|
31536
|
+
const p = g.trim().split(" ");
|
|
31537
|
+
return p.length === 1 ? p[0][0].toUpperCase() : (p[0][0] + p[p.length - 1][0]).toUpperCase();
|
|
31538
|
+
}, w = `inline-flex items-center justify-center bg-gray-200 text-gray-600 font-medium ${s[n]} ${i[c]} ${u}`;
|
|
31539
31539
|
return a ? /* @__PURE__ */ l.jsx(
|
|
31540
31540
|
"img",
|
|
31541
31541
|
{
|
|
31542
31542
|
src: a,
|
|
31543
31543
|
alt: r || t,
|
|
31544
|
-
className: `${
|
|
31545
|
-
...
|
|
31544
|
+
className: `${s[n]} ${i[c]} object-cover ${u}`,
|
|
31545
|
+
...d
|
|
31546
31546
|
}
|
|
31547
|
-
) : t ? /* @__PURE__ */ l.jsx("div", { className: w, ...
|
|
31547
|
+
) : t ? /* @__PURE__ */ l.jsx("div", { className: w, ...d, children: f(t) }) : /* @__PURE__ */ l.jsx("div", { className: w, ...d, children: /* @__PURE__ */ l.jsx(b, { name: "UserIcon", className: "w-1/2 h-1/2" }) });
|
|
31548
31548
|
}, SN = ({
|
|
31549
31549
|
size: a = "medium",
|
|
31550
31550
|
variant: r = "primary",
|
|
@@ -31559,11 +31559,11 @@ const Be = zD, b = ({
|
|
|
31559
31559
|
primary: "text-blue-600",
|
|
31560
31560
|
secondary: "text-gray-600",
|
|
31561
31561
|
white: "text-white"
|
|
31562
|
-
},
|
|
31562
|
+
}, d = `animate-spin ${c[a]} ${u[r]} ${t}`;
|
|
31563
31563
|
return /* @__PURE__ */ l.jsxs(
|
|
31564
31564
|
"svg",
|
|
31565
31565
|
{
|
|
31566
|
-
className:
|
|
31566
|
+
className: d,
|
|
31567
31567
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31568
31568
|
fill: "none",
|
|
31569
31569
|
viewBox: "0 0 24 24",
|
|
@@ -31598,8 +31598,8 @@ const Be = zD, b = ({
|
|
|
31598
31598
|
variant: n = "primary",
|
|
31599
31599
|
showLabel: c = !1,
|
|
31600
31600
|
label: u,
|
|
31601
|
-
className:
|
|
31602
|
-
...
|
|
31601
|
+
className: d = "",
|
|
31602
|
+
...s
|
|
31603
31603
|
}) => {
|
|
31604
31604
|
const i = Math.min(Math.max(a / r * 100, 0), 100), f = {
|
|
31605
31605
|
small: "h-1",
|
|
@@ -31611,7 +31611,7 @@ const Be = zD, b = ({
|
|
|
31611
31611
|
warning: "bg-yellow-600",
|
|
31612
31612
|
danger: "bg-red-600"
|
|
31613
31613
|
};
|
|
31614
|
-
return /* @__PURE__ */ l.jsxs("div", { className: `w-full ${
|
|
31614
|
+
return /* @__PURE__ */ l.jsxs("div", { className: `w-full ${d}`, ...s, children: [
|
|
31615
31615
|
c && /* @__PURE__ */ l.jsxs("div", { className: "flex justify-between items-center mb-1", children: [
|
|
31616
31616
|
/* @__PURE__ */ l.jsx("span", { className: "text-sm text-gray-700", children: u || `${Math.round(i)}%` }),
|
|
31617
31617
|
/* @__PURE__ */ l.jsxs("span", { className: "text-sm text-gray-500", children: [
|
|
@@ -31636,11 +31636,11 @@ const Be = zD, b = ({
|
|
|
31636
31636
|
className: c = "",
|
|
31637
31637
|
...u
|
|
31638
31638
|
}) => {
|
|
31639
|
-
const
|
|
31639
|
+
const d = {
|
|
31640
31640
|
solid: "border-solid",
|
|
31641
31641
|
dashed: "border-dashed",
|
|
31642
31642
|
dotted: "border-dotted"
|
|
31643
|
-
},
|
|
31643
|
+
}, s = {
|
|
31644
31644
|
small: a === "horizontal" ? "my-2" : "mx-2",
|
|
31645
31645
|
medium: a === "horizontal" ? "my-4" : "mx-4",
|
|
31646
31646
|
large: a === "horizontal" ? "my-6" : "mx-6"
|
|
@@ -31648,17 +31648,17 @@ const Be = zD, b = ({
|
|
|
31648
31648
|
return a === "vertical" ? /* @__PURE__ */ l.jsx(
|
|
31649
31649
|
"div",
|
|
31650
31650
|
{
|
|
31651
|
-
className: `border-l border-gray-300 ${
|
|
31651
|
+
className: `border-l border-gray-300 ${d[r]} ${s[t]} ${c}`,
|
|
31652
31652
|
...u
|
|
31653
31653
|
}
|
|
31654
|
-
) : n ? /* @__PURE__ */ l.jsxs("div", { className: `flex items-center ${
|
|
31655
|
-
/* @__PURE__ */ l.jsx("div", { className: `flex-1 border-t border-gray-300 ${
|
|
31654
|
+
) : n ? /* @__PURE__ */ l.jsxs("div", { className: `flex items-center ${s[t]} ${c}`, ...u, children: [
|
|
31655
|
+
/* @__PURE__ */ l.jsx("div", { className: `flex-1 border-t border-gray-300 ${d[r]}` }),
|
|
31656
31656
|
/* @__PURE__ */ l.jsx("span", { className: "px-4 text-sm text-gray-500", children: n }),
|
|
31657
|
-
/* @__PURE__ */ l.jsx("div", { className: `flex-1 border-t border-gray-300 ${
|
|
31657
|
+
/* @__PURE__ */ l.jsx("div", { className: `flex-1 border-t border-gray-300 ${d[r]}` })
|
|
31658
31658
|
] }) : /* @__PURE__ */ l.jsx(
|
|
31659
31659
|
"hr",
|
|
31660
31660
|
{
|
|
31661
|
-
className: `border-0 border-t border-gray-300 ${
|
|
31661
|
+
className: `border-0 border-t border-gray-300 ${d[r]} ${s[t]} ${c}`,
|
|
31662
31662
|
...u
|
|
31663
31663
|
}
|
|
31664
31664
|
);
|
|
@@ -31669,30 +31669,30 @@ const Be = zD, b = ({
|
|
|
31669
31669
|
className: n = "",
|
|
31670
31670
|
...c
|
|
31671
31671
|
}) => {
|
|
31672
|
-
const u = "animate-pulse bg-gray-200 rounded",
|
|
31672
|
+
const u = "animate-pulse bg-gray-200 rounded", d = {
|
|
31673
31673
|
text: "h-4",
|
|
31674
31674
|
circular: "rounded-full",
|
|
31675
31675
|
rectangular: "rounded"
|
|
31676
|
-
},
|
|
31677
|
-
return r && (
|
|
31676
|
+
}, s = {};
|
|
31677
|
+
return r && (s.width = r), t && (s.height = t), a === "circular" ? /* @__PURE__ */ l.jsx(
|
|
31678
31678
|
"div",
|
|
31679
31679
|
{
|
|
31680
|
-
className: `${u} ${
|
|
31681
|
-
style:
|
|
31680
|
+
className: `${u} ${d.circular} ${n}`,
|
|
31681
|
+
style: s,
|
|
31682
31682
|
...c
|
|
31683
31683
|
}
|
|
31684
31684
|
) : a === "rectangular" ? /* @__PURE__ */ l.jsx(
|
|
31685
31685
|
"div",
|
|
31686
31686
|
{
|
|
31687
|
-
className: `${u} ${
|
|
31688
|
-
style:
|
|
31687
|
+
className: `${u} ${d.rectangular} ${n}`,
|
|
31688
|
+
style: s,
|
|
31689
31689
|
...c
|
|
31690
31690
|
}
|
|
31691
31691
|
) : /* @__PURE__ */ l.jsx(
|
|
31692
31692
|
"div",
|
|
31693
31693
|
{
|
|
31694
|
-
className: `${u} ${
|
|
31695
|
-
style:
|
|
31694
|
+
className: `${u} ${d.text} ${n}`,
|
|
31695
|
+
style: s,
|
|
31696
31696
|
...c
|
|
31697
31697
|
}
|
|
31698
31698
|
);
|
|
@@ -31703,7 +31703,7 @@ const Be = zD, b = ({
|
|
|
31703
31703
|
onClose: n,
|
|
31704
31704
|
position: c = "top-right",
|
|
31705
31705
|
className: u = "",
|
|
31706
|
-
...
|
|
31706
|
+
...d
|
|
31707
31707
|
}) => {
|
|
31708
31708
|
Z0(() => {
|
|
31709
31709
|
if (t > 0 && n) {
|
|
@@ -31713,7 +31713,7 @@ const Be = zD, b = ({
|
|
|
31713
31713
|
return () => clearTimeout(w);
|
|
31714
31714
|
}
|
|
31715
31715
|
}, [t, n]);
|
|
31716
|
-
const
|
|
31716
|
+
const s = {
|
|
31717
31717
|
info: "bg-blue-50 border-blue-200 text-blue-800",
|
|
31718
31718
|
success: "bg-green-50 border-green-200 text-green-800",
|
|
31719
31719
|
warning: "bg-yellow-50 border-yellow-200 text-yellow-800",
|
|
@@ -31735,11 +31735,11 @@ const Be = zD, b = ({
|
|
|
31735
31735
|
"div",
|
|
31736
31736
|
{
|
|
31737
31737
|
className: `fixed ${f[c]} z-50 max-w-sm w-full ${u}`,
|
|
31738
|
-
...
|
|
31738
|
+
...d,
|
|
31739
31739
|
children: /* @__PURE__ */ l.jsxs(
|
|
31740
31740
|
"div",
|
|
31741
31741
|
{
|
|
31742
|
-
className: `border rounded-lg shadow-lg p-4 flex items-start ${
|
|
31742
|
+
className: `border rounded-lg shadow-lg p-4 flex items-start ${s[r]}`,
|
|
31743
31743
|
children: [
|
|
31744
31744
|
/* @__PURE__ */ l.jsx(
|
|
31745
31745
|
b,
|
|
@@ -31769,7 +31769,7 @@ const Be = zD, b = ({
|
|
|
31769
31769
|
className: n = "",
|
|
31770
31770
|
...c
|
|
31771
31771
|
}) => {
|
|
31772
|
-
const [u,
|
|
31772
|
+
const [u, d] = S(!1), s = {
|
|
31773
31773
|
top: "bottom-full left-1/2 transform -translate-x-1/2 mb-2",
|
|
31774
31774
|
bottom: "top-full left-1/2 transform -translate-x-1/2 mt-2",
|
|
31775
31775
|
left: "right-full top-1/2 transform -translate-y-1/2 mr-2",
|
|
@@ -31784,15 +31784,15 @@ const Be = zD, b = ({
|
|
|
31784
31784
|
"div",
|
|
31785
31785
|
{
|
|
31786
31786
|
className: `relative inline-block ${n}`,
|
|
31787
|
-
onMouseEnter: () =>
|
|
31788
|
-
onMouseLeave: () =>
|
|
31787
|
+
onMouseEnter: () => d(!0),
|
|
31788
|
+
onMouseLeave: () => d(!1),
|
|
31789
31789
|
...c,
|
|
31790
31790
|
children: [
|
|
31791
31791
|
r,
|
|
31792
31792
|
u && /* @__PURE__ */ l.jsxs(
|
|
31793
31793
|
"div",
|
|
31794
31794
|
{
|
|
31795
|
-
className: `absolute z-50 px-4 py-3 text-sm text-white bg-gray-900 rounded-lg shadow-lg whitespace-nowrap ${
|
|
31795
|
+
className: `absolute z-50 px-4 py-3 text-sm text-white bg-gray-900 rounded-lg shadow-lg whitespace-nowrap ${s[t]}`,
|
|
31796
31796
|
children: [
|
|
31797
31797
|
a,
|
|
31798
31798
|
/* @__PURE__ */ l.jsx(
|
|
@@ -31844,8 +31844,8 @@ const Be = zD, b = ({
|
|
|
31844
31844
|
error: n,
|
|
31845
31845
|
helperText: c,
|
|
31846
31846
|
disabled: u = !1,
|
|
31847
|
-
required:
|
|
31848
|
-
className:
|
|
31847
|
+
required: d = !1,
|
|
31848
|
+
className: s = "",
|
|
31849
31849
|
...i
|
|
31850
31850
|
}) => {
|
|
31851
31851
|
const { t: f } = b0(), w = `
|
|
@@ -31853,12 +31853,12 @@ const Be = zD, b = ({
|
|
|
31853
31853
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent
|
|
31854
31854
|
disabled:bg-gray-100 disabled:cursor-not-allowed
|
|
31855
31855
|
${n ? "border-red-500" : "border-gray-300"}
|
|
31856
|
-
${
|
|
31856
|
+
${s}
|
|
31857
31857
|
`;
|
|
31858
31858
|
return /* @__PURE__ */ l.jsxs("div", { className: "w-full", children: [
|
|
31859
31859
|
a && /* @__PURE__ */ l.jsxs("label", { className: "block text-sm font-medium text-gray-700 mb-1", children: [
|
|
31860
31860
|
a,
|
|
31861
|
-
|
|
31861
|
+
d && /* @__PURE__ */ l.jsx("span", { className: "text-red-500 ml-1", children: "*" })
|
|
31862
31862
|
] }),
|
|
31863
31863
|
/* @__PURE__ */ l.jsx(
|
|
31864
31864
|
"input",
|
|
@@ -31900,9 +31900,9 @@ const Be = zD, b = ({
|
|
|
31900
31900
|
checked: n = !1,
|
|
31901
31901
|
disabled: c = !1,
|
|
31902
31902
|
onChange: u,
|
|
31903
|
-
className:
|
|
31904
|
-
...
|
|
31905
|
-
}) => /* @__PURE__ */ l.jsxs("label", { className: `flex items-center ${c ? "cursor-not-allowed opacity-50" : "cursor-pointer"} ${
|
|
31903
|
+
className: d = "",
|
|
31904
|
+
...s
|
|
31905
|
+
}) => /* @__PURE__ */ l.jsxs("label", { className: `flex items-center ${c ? "cursor-not-allowed opacity-50" : "cursor-pointer"} ${d}`, children: [
|
|
31906
31906
|
/* @__PURE__ */ l.jsx(
|
|
31907
31907
|
"input",
|
|
31908
31908
|
{
|
|
@@ -31913,7 +31913,7 @@ const Be = zD, b = ({
|
|
|
31913
31913
|
disabled: c,
|
|
31914
31914
|
onChange: u,
|
|
31915
31915
|
className: "w-4 h-4 text-blue-600 border-gray-300 focus:ring-blue-500",
|
|
31916
|
-
...
|
|
31916
|
+
...s
|
|
31917
31917
|
}
|
|
31918
31918
|
),
|
|
31919
31919
|
a && /* @__PURE__ */ l.jsx("span", { className: "ml-2 text-sm text-gray-700", children: a })
|
|
@@ -31924,12 +31924,12 @@ const Be = zD, b = ({
|
|
|
31924
31924
|
placeholder: n,
|
|
31925
31925
|
error: c,
|
|
31926
31926
|
helperText: u,
|
|
31927
|
-
disabled:
|
|
31928
|
-
required:
|
|
31927
|
+
disabled: d = !1,
|
|
31928
|
+
required: s = !1,
|
|
31929
31929
|
className: i = "",
|
|
31930
31930
|
...f
|
|
31931
31931
|
}) => {
|
|
31932
|
-
const { t: w } = b0(),
|
|
31932
|
+
const { t: w } = b0(), g = `
|
|
31933
31933
|
w-full px-3 py-2 border rounded-lg
|
|
31934
31934
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent
|
|
31935
31935
|
disabled:bg-gray-100 disabled:cursor-not-allowed
|
|
@@ -31939,18 +31939,18 @@ const Be = zD, b = ({
|
|
|
31939
31939
|
return /* @__PURE__ */ l.jsxs("div", { className: "w-full", children: [
|
|
31940
31940
|
a && /* @__PURE__ */ l.jsxs("label", { className: "block text-sm font-medium text-gray-700 mb-1", children: [
|
|
31941
31941
|
a,
|
|
31942
|
-
|
|
31942
|
+
s && /* @__PURE__ */ l.jsx("span", { className: "text-red-500 ml-1", children: "*" })
|
|
31943
31943
|
] }),
|
|
31944
31944
|
/* @__PURE__ */ l.jsxs(
|
|
31945
31945
|
"select",
|
|
31946
31946
|
{
|
|
31947
31947
|
value: t,
|
|
31948
|
-
disabled:
|
|
31949
|
-
className:
|
|
31948
|
+
disabled: d,
|
|
31949
|
+
className: g,
|
|
31950
31950
|
...f,
|
|
31951
31951
|
children: [
|
|
31952
31952
|
n && /* @__PURE__ */ l.jsx("option", { value: "", children: n || w("placeholder.select") }),
|
|
31953
|
-
r.map((
|
|
31953
|
+
r.map((p) => /* @__PURE__ */ l.jsx("option", { value: p.value, children: p.label }, p.value))
|
|
31954
31954
|
]
|
|
31955
31955
|
}
|
|
31956
31956
|
),
|
|
@@ -31964,8 +31964,8 @@ const Be = zD, b = ({
|
|
|
31964
31964
|
helperText: n,
|
|
31965
31965
|
disabled: c = !1,
|
|
31966
31966
|
required: u = !1,
|
|
31967
|
-
rows:
|
|
31968
|
-
className:
|
|
31967
|
+
rows: d = 4,
|
|
31968
|
+
className: s = "",
|
|
31969
31969
|
...i
|
|
31970
31970
|
}) => {
|
|
31971
31971
|
const { t: f } = b0(), w = `
|
|
@@ -31974,7 +31974,7 @@ const Be = zD, b = ({
|
|
|
31974
31974
|
disabled:bg-gray-100 disabled:cursor-not-allowed
|
|
31975
31975
|
resize-y
|
|
31976
31976
|
${t ? "border-red-500" : "border-gray-300"}
|
|
31977
|
-
${
|
|
31977
|
+
${s}
|
|
31978
31978
|
`;
|
|
31979
31979
|
return /* @__PURE__ */ l.jsxs("div", { className: "w-full", children: [
|
|
31980
31980
|
a && /* @__PURE__ */ l.jsxs("label", { className: "block text-sm font-medium text-gray-700 mb-1", children: [
|
|
@@ -31984,7 +31984,7 @@ const Be = zD, b = ({
|
|
|
31984
31984
|
/* @__PURE__ */ l.jsx(
|
|
31985
31985
|
"textarea",
|
|
31986
31986
|
{
|
|
31987
|
-
rows:
|
|
31987
|
+
rows: d,
|
|
31988
31988
|
placeholder: r || f("placeholder.search"),
|
|
31989
31989
|
disabled: c,
|
|
31990
31990
|
className: w,
|
|
@@ -32043,15 +32043,15 @@ const Be = zD, b = ({
|
|
|
32043
32043
|
helperText: n,
|
|
32044
32044
|
disabled: c = !1,
|
|
32045
32045
|
required: u = !1,
|
|
32046
|
-
className:
|
|
32047
|
-
...
|
|
32046
|
+
className: d = "",
|
|
32047
|
+
...s
|
|
32048
32048
|
}) => {
|
|
32049
32049
|
const { t: i } = b0(), f = `
|
|
32050
32050
|
w-full px-3 py-2 pl-10 border rounded-lg
|
|
32051
32051
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent
|
|
32052
32052
|
disabled:bg-gray-100 disabled:cursor-not-allowed
|
|
32053
32053
|
${t ? "border-red-500" : "border-gray-300"}
|
|
32054
|
-
${
|
|
32054
|
+
${d}
|
|
32055
32055
|
`;
|
|
32056
32056
|
return /* @__PURE__ */ l.jsxs("div", { className: "w-full", children: [
|
|
32057
32057
|
a && /* @__PURE__ */ l.jsxs("label", { className: "block text-sm font-medium text-gray-700 mb-1", children: [
|
|
@@ -32067,7 +32067,7 @@ const Be = zD, b = ({
|
|
|
32067
32067
|
value: r,
|
|
32068
32068
|
disabled: c,
|
|
32069
32069
|
className: f,
|
|
32070
|
-
...
|
|
32070
|
+
...s
|
|
32071
32071
|
}
|
|
32072
32072
|
)
|
|
32073
32073
|
] }),
|
|
@@ -32081,22 +32081,22 @@ const Be = zD, b = ({
|
|
|
32081
32081
|
error: n,
|
|
32082
32082
|
helperText: c,
|
|
32083
32083
|
disabled: u = !1,
|
|
32084
|
-
required:
|
|
32085
|
-
onFileChange:
|
|
32084
|
+
required: d = !1,
|
|
32085
|
+
onFileChange: s,
|
|
32086
32086
|
className: i = "",
|
|
32087
32087
|
...f
|
|
32088
32088
|
}) => {
|
|
32089
|
-
const { t: w } = b0(), [
|
|
32090
|
-
const
|
|
32091
|
-
|
|
32092
|
-
},
|
|
32093
|
-
const
|
|
32094
|
-
|
|
32089
|
+
const { t: w } = b0(), [g, p] = S([]), h = (y) => {
|
|
32090
|
+
const A = Array.from(y.target.files);
|
|
32091
|
+
p(A), s && s(A);
|
|
32092
|
+
}, M = (y) => {
|
|
32093
|
+
const A = g.filter((R, v) => v !== y);
|
|
32094
|
+
p(A), s && s(A);
|
|
32095
32095
|
};
|
|
32096
32096
|
return /* @__PURE__ */ l.jsxs("div", { className: `w-full ${i}`, children: [
|
|
32097
32097
|
a && /* @__PURE__ */ l.jsxs("label", { className: "block text-sm font-medium text-gray-700 mb-1", children: [
|
|
32098
32098
|
a,
|
|
32099
|
-
|
|
32099
|
+
d && /* @__PURE__ */ l.jsx("span", { className: "text-red-500 ml-1", children: "*" })
|
|
32100
32100
|
] }),
|
|
32101
32101
|
/* @__PURE__ */ l.jsx("div", { className: "mt-1 flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-lg hover:border-gray-400 transition-colors", children: /* @__PURE__ */ l.jsxs("div", { className: "space-y-1 text-center", children: [
|
|
32102
32102
|
/* @__PURE__ */ l.jsx(b, { name: "CloudArrowUpIcon", className: "mx-auto h-12 w-12 text-gray-400" }),
|
|
@@ -32129,7 +32129,7 @@ const Be = zD, b = ({
|
|
|
32129
32129
|
] }),
|
|
32130
32130
|
/* @__PURE__ */ l.jsx("p", { className: "text-xs text-gray-500", children: "PNG, JPG, GIF hasta 10MB" })
|
|
32131
32131
|
] }) }),
|
|
32132
|
-
|
|
32132
|
+
g.length > 0 && /* @__PURE__ */ l.jsx("div", { className: "mt-4 space-y-2", children: g.map((y, A) => /* @__PURE__ */ l.jsxs(
|
|
32133
32133
|
"div",
|
|
32134
32134
|
{
|
|
32135
32135
|
className: "flex items-center justify-between p-2 bg-gray-50 rounded-lg",
|
|
@@ -32147,14 +32147,14 @@ const Be = zD, b = ({
|
|
|
32147
32147
|
"button",
|
|
32148
32148
|
{
|
|
32149
32149
|
type: "button",
|
|
32150
|
-
onClick: () => A
|
|
32150
|
+
onClick: () => M(A),
|
|
32151
32151
|
className: "text-red-600 hover:text-red-800",
|
|
32152
32152
|
children: /* @__PURE__ */ l.jsx(b, { name: "XMarkIcon", className: "h-5 w-5" })
|
|
32153
32153
|
}
|
|
32154
32154
|
)
|
|
32155
32155
|
]
|
|
32156
32156
|
},
|
|
32157
|
-
|
|
32157
|
+
A
|
|
32158
32158
|
)) }),
|
|
32159
32159
|
n && /* @__PURE__ */ l.jsx("p", { className: "mt-1 text-sm text-red-600", children: n }),
|
|
32160
32160
|
c && !n && /* @__PURE__ */ l.jsx("p", { className: "mt-1 text-sm text-gray-500", children: c })
|
|
@@ -32166,29 +32166,29 @@ const Be = zD, b = ({
|
|
|
32166
32166
|
notificationCount: n = 0,
|
|
32167
32167
|
onSearch: c,
|
|
32168
32168
|
onNotificationClick: u,
|
|
32169
|
-
onUserClick:
|
|
32170
|
-
className:
|
|
32169
|
+
onUserClick: d,
|
|
32170
|
+
className: s = "",
|
|
32171
32171
|
...i
|
|
32172
32172
|
}) => {
|
|
32173
|
-
const [f, w] = S(""),
|
|
32174
|
-
const
|
|
32175
|
-
w(
|
|
32176
|
-
},
|
|
32173
|
+
const [f, w] = S(""), g = (h) => {
|
|
32174
|
+
const M = h.target.value;
|
|
32175
|
+
w(M), c && c(M);
|
|
32176
|
+
}, p = (h) => {
|
|
32177
32177
|
h.preventDefault(), c && c(f);
|
|
32178
32178
|
};
|
|
32179
32179
|
return /* @__PURE__ */ l.jsx(
|
|
32180
32180
|
"header",
|
|
32181
32181
|
{
|
|
32182
|
-
className: `bg-white border-b border-gray-200 ${
|
|
32182
|
+
className: `bg-white border-b border-gray-200 ${s}`,
|
|
32183
32183
|
...i,
|
|
32184
32184
|
children: /* @__PURE__ */ l.jsx("div", { className: "container mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center justify-between h-16", children: [
|
|
32185
|
-
/* @__PURE__ */ l.jsx("div", { className: "flex-1 max-w-2xl mr-8", children: /* @__PURE__ */ l.jsxs("form", { onSubmit:
|
|
32185
|
+
/* @__PURE__ */ l.jsx("div", { className: "flex-1 max-w-2xl mr-8", children: /* @__PURE__ */ l.jsxs("form", { onSubmit: p, className: "relative", children: [
|
|
32186
32186
|
/* @__PURE__ */ l.jsx(
|
|
32187
32187
|
"input",
|
|
32188
32188
|
{
|
|
32189
32189
|
type: "text",
|
|
32190
32190
|
value: f,
|
|
32191
|
-
onChange:
|
|
32191
|
+
onChange: g,
|
|
32192
32192
|
placeholder: a,
|
|
32193
32193
|
className: `w-full pl-4 pr-12 py-2.5 bg-slate-50 border border-gray-200 rounded-lg \r
|
|
32194
32194
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent\r
|
|
@@ -32250,7 +32250,7 @@ const Be = zD, b = ({
|
|
|
32250
32250
|
r && /* @__PURE__ */ l.jsxs(
|
|
32251
32251
|
"button",
|
|
32252
32252
|
{
|
|
32253
|
-
onClick:
|
|
32253
|
+
onClick: d,
|
|
32254
32254
|
className: `flex items-center space-x-3 hover:bg-gray-50 \r
|
|
32255
32255
|
rounded-lg px-2 py-1.5 transition-colors`,
|
|
32256
32256
|
"aria-label": "Perfil de usuario",
|
|
@@ -32310,8 +32310,8 @@ const Be = zD, b = ({
|
|
|
32310
32310
|
companyName: n = "HEXA Core",
|
|
32311
32311
|
companyLogo: c,
|
|
32312
32312
|
onCompanyClick: u,
|
|
32313
|
-
itemBadges:
|
|
32314
|
-
footerText:
|
|
32313
|
+
itemBadges: d = {},
|
|
32314
|
+
footerText: s,
|
|
32315
32315
|
// Texto del footer: puede ser string "v1.0 | Powered by Nucleus" o objeto { version: "v1.0", poweredBy: "Powered by", brand: "Nucleus" }
|
|
32316
32316
|
footerCollapsedContent: i,
|
|
32317
32317
|
// Contenido a mostrar en el footer cuando está colapsado (puede ser string, ReactNode, o objeto con icon y text)
|
|
@@ -32319,62 +32319,62 @@ const Be = zD, b = ({
|
|
|
32319
32319
|
// Estilos personalizados para el contenedor de LogoHexa y "Core"
|
|
32320
32320
|
coreTextStyle: w,
|
|
32321
32321
|
// Estilos personalizados para el texto "Core"
|
|
32322
|
-
transitionDurationMs:
|
|
32323
|
-
transitionEasing:
|
|
32322
|
+
transitionDurationMs: g = 300,
|
|
32323
|
+
transitionEasing: p = "ease-in-out",
|
|
32324
32324
|
// UX: permitir que el item se pinte inmediatamente aunque el padre tarde en actualizar activeItem
|
|
32325
32325
|
enableOptimisticActiveItem: h = !0,
|
|
32326
|
-
closeOnItemClickAnimationFrame:
|
|
32326
|
+
closeOnItemClickAnimationFrame: M = !0,
|
|
32327
32327
|
// Mobile: labels de items
|
|
32328
32328
|
mobileItemLabelFontSize: y = "1rem",
|
|
32329
|
-
mobileItemLabelWeightInactive:
|
|
32329
|
+
mobileItemLabelWeightInactive: A = "regular",
|
|
32330
32330
|
mobileItemLabelWeightActive: R = "semibold",
|
|
32331
32331
|
// Mobile: íconos
|
|
32332
32332
|
mobileIconSize: v = 24,
|
|
32333
|
-
mobileIconStyle:
|
|
32333
|
+
mobileIconStyle: L,
|
|
32334
32334
|
// Sección de Configuración
|
|
32335
|
-
configSectionLabel:
|
|
32336
|
-
configSectionIcon:
|
|
32337
|
-
configSectionId:
|
|
32338
|
-
onConfigClick:
|
|
32339
|
-
configBadge:
|
|
32340
|
-
isOpen:
|
|
32341
|
-
onClose:
|
|
32342
|
-
className:
|
|
32343
|
-
...
|
|
32335
|
+
configSectionLabel: F = "Configuración",
|
|
32336
|
+
configSectionIcon: $ = "Cog6ToothIcon",
|
|
32337
|
+
configSectionId: k = "configuracion",
|
|
32338
|
+
onConfigClick: Q,
|
|
32339
|
+
configBadge: P,
|
|
32340
|
+
isOpen: W,
|
|
32341
|
+
onClose: O,
|
|
32342
|
+
className: r0 = "",
|
|
32343
|
+
...C
|
|
32344
32344
|
}) => {
|
|
32345
|
-
const [
|
|
32345
|
+
const [j, T] = S(!1), [K, D] = S(null), Z = W !== void 0 ? W : j, H = h && K != null ? K : r;
|
|
32346
32346
|
Z0(() => {
|
|
32347
|
-
h &&
|
|
32348
|
-
}, [r,
|
|
32349
|
-
h && !
|
|
32350
|
-
}, [
|
|
32347
|
+
h && K != null && K === r && D(null);
|
|
32348
|
+
}, [r, K, h]), Z0(() => {
|
|
32349
|
+
h && !Z && K != null && D(null);
|
|
32350
|
+
}, [Z, K, h]);
|
|
32351
32351
|
const _ = () => {
|
|
32352
|
-
|
|
32352
|
+
O ? O() : T(!j);
|
|
32353
32353
|
};
|
|
32354
32354
|
return (() => {
|
|
32355
32355
|
if (i)
|
|
32356
32356
|
return i;
|
|
32357
|
-
if (
|
|
32358
|
-
if (typeof
|
|
32359
|
-
return
|
|
32360
|
-
if (typeof
|
|
32361
|
-
return
|
|
32357
|
+
if (s && !i) {
|
|
32358
|
+
if (typeof s == "string")
|
|
32359
|
+
return s.split("|")[0].trim() || s.trim();
|
|
32360
|
+
if (typeof s == "object" && s.version)
|
|
32361
|
+
return s.version;
|
|
32362
32362
|
}
|
|
32363
32363
|
return null;
|
|
32364
32364
|
})(), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
32365
32365
|
/* @__PURE__ */ l.jsx("style", { children: `
|
|
32366
32366
|
.sidebar-core-mobile {
|
|
32367
32367
|
width: 100%;
|
|
32368
|
-
transform: ${
|
|
32368
|
+
transform: ${Z ? "translateX(0)" : "translateX(-100%)"};
|
|
32369
32369
|
position: fixed;
|
|
32370
32370
|
left: 0;
|
|
32371
32371
|
top: 0;
|
|
32372
32372
|
height: 100vh;
|
|
32373
32373
|
z-index: 50;
|
|
32374
|
-
transition: transform ${
|
|
32374
|
+
transition: transform ${g}ms ${p};
|
|
32375
32375
|
}
|
|
32376
32376
|
` }),
|
|
32377
|
-
!
|
|
32377
|
+
!Z && W === void 0 && /* @__PURE__ */ l.jsx(
|
|
32378
32378
|
"button",
|
|
32379
32379
|
{
|
|
32380
32380
|
onClick: _,
|
|
@@ -32394,7 +32394,7 @@ const Be = zD, b = ({
|
|
|
32394
32394
|
height: `${v}px`,
|
|
32395
32395
|
opacity: 1,
|
|
32396
32396
|
transform: "rotate(0deg)",
|
|
32397
|
-
...
|
|
32397
|
+
...L || {}
|
|
32398
32398
|
}
|
|
32399
32399
|
}
|
|
32400
32400
|
)
|
|
@@ -32405,21 +32405,21 @@ const Be = zD, b = ({
|
|
|
32405
32405
|
{
|
|
32406
32406
|
className: "fixed inset-0 bg-black bg-opacity-50 z-40",
|
|
32407
32407
|
style: {
|
|
32408
|
-
opacity:
|
|
32409
|
-
pointerEvents:
|
|
32410
|
-
transition: `opacity ${
|
|
32408
|
+
opacity: Z ? 1 : 0,
|
|
32409
|
+
pointerEvents: Z ? "auto" : "none",
|
|
32410
|
+
transition: `opacity ${g}ms ${p}`
|
|
32411
32411
|
},
|
|
32412
32412
|
onClick: () => {
|
|
32413
|
-
|
|
32413
|
+
O ? O() : _();
|
|
32414
32414
|
}
|
|
32415
32415
|
}
|
|
32416
32416
|
),
|
|
32417
32417
|
/* @__PURE__ */ l.jsx(
|
|
32418
32418
|
"aside",
|
|
32419
32419
|
{
|
|
32420
|
-
className: `bg-white sidebar-core-mobile ${
|
|
32420
|
+
className: `bg-white sidebar-core-mobile ${r0}`,
|
|
32421
32421
|
style: { border: "1px solid #C4C4C4", borderRadius: "16px" },
|
|
32422
|
-
...
|
|
32422
|
+
...C,
|
|
32423
32423
|
children: /* @__PURE__ */ l.jsxs("nav", { className: "h-full flex flex-col", children: [
|
|
32424
32424
|
/* @__PURE__ */ l.jsxs("div", { className: "bg-white px-4 py-4 flex items-center justify-between border-b border-gray-200", children: [
|
|
32425
32425
|
/* @__PURE__ */ l.jsxs(
|
|
@@ -32464,7 +32464,7 @@ const Be = zD, b = ({
|
|
|
32464
32464
|
"button",
|
|
32465
32465
|
{
|
|
32466
32466
|
onClick: () => {
|
|
32467
|
-
|
|
32467
|
+
O ? O() : _();
|
|
32468
32468
|
},
|
|
32469
32469
|
className: "p-1 hover:bg-gray-100 rounded transition-colors flex-shrink-0",
|
|
32470
32470
|
"aria-label": "Cerrar menú",
|
|
@@ -32480,7 +32480,7 @@ const Be = zD, b = ({
|
|
|
32480
32480
|
height: `${v}px`,
|
|
32481
32481
|
opacity: 1,
|
|
32482
32482
|
transform: "rotate(0deg)",
|
|
32483
|
-
...
|
|
32483
|
+
...L || {}
|
|
32484
32484
|
}
|
|
32485
32485
|
}
|
|
32486
32486
|
)
|
|
@@ -32492,7 +32492,7 @@ const Be = zD, b = ({
|
|
|
32492
32492
|
"button",
|
|
32493
32493
|
{
|
|
32494
32494
|
onClick: () => {
|
|
32495
|
-
t && t("inicio"),
|
|
32495
|
+
t && t("inicio"), O ? O() : _();
|
|
32496
32496
|
},
|
|
32497
32497
|
className: `w-full flex items-center cursor-pointer px-4 justify-between py-2.5 rounded-lg transition-all duration-200 ${H === "inicio" ? "" : "color-gray-700 hover:bg-gray-100"}`,
|
|
32498
32498
|
style: H === "inicio" ? { backgroundColor: "#2D5C63" } : {},
|
|
@@ -32510,7 +32510,7 @@ const Be = zD, b = ({
|
|
|
32510
32510
|
height: `${v}px`,
|
|
32511
32511
|
opacity: 1,
|
|
32512
32512
|
transform: "rotate(0deg)",
|
|
32513
|
-
...
|
|
32513
|
+
...L || {}
|
|
32514
32514
|
}
|
|
32515
32515
|
}
|
|
32516
32516
|
),
|
|
@@ -32518,14 +32518,14 @@ const Be = zD, b = ({
|
|
|
32518
32518
|
x,
|
|
32519
32519
|
{
|
|
32520
32520
|
variant: "body-md",
|
|
32521
|
-
weight: H === "inicio" ? R :
|
|
32521
|
+
weight: H === "inicio" ? R : A,
|
|
32522
32522
|
className: H === "inicio" ? "color-white" : "color-gray-700",
|
|
32523
32523
|
style: { fontSize: y },
|
|
32524
32524
|
children: "Inicio"
|
|
32525
32525
|
}
|
|
32526
32526
|
)
|
|
32527
32527
|
] }),
|
|
32528
|
-
|
|
32528
|
+
d.inicio !== void 0 && d.inicio > 0 && /* @__PURE__ */ l.jsx(
|
|
32529
32529
|
"span",
|
|
32530
32530
|
{
|
|
32531
32531
|
className: `px-2 py-0.5 min-w-[20px] h-5 \r
|
|
@@ -32536,44 +32536,44 @@ const Be = zD, b = ({
|
|
|
32536
32536
|
color: H === "inicio" ? "#6D3856" : "#ffffff",
|
|
32537
32537
|
borderRadius: "12px"
|
|
32538
32538
|
},
|
|
32539
|
-
children:
|
|
32539
|
+
children: d.inicio > 9 ? "9+" : d.inicio
|
|
32540
32540
|
}
|
|
32541
32541
|
)
|
|
32542
32542
|
]
|
|
32543
32543
|
}
|
|
32544
32544
|
) }),
|
|
32545
|
-
a.map((
|
|
32545
|
+
a.map((e0, c0) => /* @__PURE__ */ l.jsxs("div", { className: "mb-6", children: [
|
|
32546
32546
|
/* @__PURE__ */ l.jsx("div", { className: "px-4 mb-2", children: /* @__PURE__ */ l.jsx(
|
|
32547
32547
|
x,
|
|
32548
32548
|
{
|
|
32549
32549
|
variant: "body-sm",
|
|
32550
32550
|
className: "color-gray-500 uppercase font-medium tracking-wider",
|
|
32551
|
-
children:
|
|
32551
|
+
children: e0.title
|
|
32552
32552
|
}
|
|
32553
32553
|
) }),
|
|
32554
|
-
/* @__PURE__ */ l.jsx("div", { children:
|
|
32554
|
+
/* @__PURE__ */ l.jsx("div", { children: e0.items.map((U) => /* @__PURE__ */ l.jsx("div", { className: "px-4", children: /* @__PURE__ */ l.jsxs(
|
|
32555
32555
|
"button",
|
|
32556
32556
|
{
|
|
32557
32557
|
onClick: () => {
|
|
32558
|
-
h &&
|
|
32558
|
+
h && D(U.id), t && t(U.id), O ? M ? requestAnimationFrame(() => O()) : O() : _();
|
|
32559
32559
|
},
|
|
32560
|
-
className: `w-full flex items-center cursor-pointer px-4 justify-between py-2.5 rounded-lg transition-all duration-200 ${H ===
|
|
32561
|
-
style: H ===
|
|
32560
|
+
className: `w-full flex items-center cursor-pointer px-4 justify-between py-2.5 rounded-lg transition-all duration-200 ${H === U.id ? "" : "color-gray-700 hover:bg-gray-100"}`,
|
|
32561
|
+
style: H === U.id ? { backgroundColor: "#2D5C63" } : {},
|
|
32562
32562
|
children: [
|
|
32563
32563
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center", children: [
|
|
32564
32564
|
/* @__PURE__ */ l.jsx(
|
|
32565
32565
|
b,
|
|
32566
32566
|
{
|
|
32567
|
-
name:
|
|
32567
|
+
name: U.icon,
|
|
32568
32568
|
variant: "24-outline",
|
|
32569
32569
|
size: v,
|
|
32570
|
-
className: `mr-3 ${H ===
|
|
32570
|
+
className: `mr-3 ${H === U.id ? "color-white" : "color-gray-700"}`,
|
|
32571
32571
|
style: {
|
|
32572
32572
|
width: `${v}px`,
|
|
32573
32573
|
height: `${v}px`,
|
|
32574
32574
|
opacity: 1,
|
|
32575
32575
|
transform: "rotate(0deg)",
|
|
32576
|
-
...
|
|
32576
|
+
...L || {}
|
|
32577
32577
|
}
|
|
32578
32578
|
}
|
|
32579
32579
|
),
|
|
@@ -32581,30 +32581,30 @@ const Be = zD, b = ({
|
|
|
32581
32581
|
x,
|
|
32582
32582
|
{
|
|
32583
32583
|
variant: "body-md",
|
|
32584
|
-
weight: H ===
|
|
32585
|
-
className: H ===
|
|
32584
|
+
weight: H === U.id ? R : A,
|
|
32585
|
+
className: H === U.id ? "color-white" : "color-gray-700",
|
|
32586
32586
|
style: { fontSize: y },
|
|
32587
|
-
children:
|
|
32587
|
+
children: U.label
|
|
32588
32588
|
}
|
|
32589
32589
|
)
|
|
32590
32590
|
] }),
|
|
32591
|
-
(
|
|
32591
|
+
(d[U.id] !== void 0 && d[U.id] > 0 || U.id === "empleados" && 2) && /* @__PURE__ */ l.jsx(
|
|
32592
32592
|
"span",
|
|
32593
32593
|
{
|
|
32594
32594
|
className: `px-2 py-0.5 min-w-[20px] h-5 \r
|
|
32595
32595
|
rounded-full flex items-center justify-center\r
|
|
32596
32596
|
text-body-sm font-medium`,
|
|
32597
32597
|
style: {
|
|
32598
|
-
backgroundColor: H ===
|
|
32599
|
-
color: H ===
|
|
32598
|
+
backgroundColor: H === U.id ? "#ffffff" : "#6D3856",
|
|
32599
|
+
color: H === U.id ? "#6D3856" : "#ffffff",
|
|
32600
32600
|
borderRadius: "12px"
|
|
32601
32601
|
},
|
|
32602
|
-
children:
|
|
32602
|
+
children: U.id === "empleados" ? 2 : d[U.id] > 9 ? "9+" : d[U.id]
|
|
32603
32603
|
}
|
|
32604
32604
|
)
|
|
32605
32605
|
]
|
|
32606
32606
|
}
|
|
32607
|
-
) },
|
|
32607
|
+
) }, U.id)) })
|
|
32608
32608
|
] }, c0))
|
|
32609
32609
|
] }),
|
|
32610
32610
|
/* @__PURE__ */ l.jsxs(
|
|
@@ -32634,25 +32634,25 @@ const Be = zD, b = ({
|
|
|
32634
32634
|
"button",
|
|
32635
32635
|
{
|
|
32636
32636
|
onClick: () => {
|
|
32637
|
-
h &&
|
|
32637
|
+
h && D(k), Q && Q(k), O ? M ? requestAnimationFrame(() => O()) : O() : _();
|
|
32638
32638
|
},
|
|
32639
|
-
className: `w-full flex items-center cursor-pointer px-4 justify-between py-2.5 rounded-lg transition-all duration-200 ${H ===
|
|
32640
|
-
style: H ===
|
|
32639
|
+
className: `w-full flex items-center cursor-pointer px-4 justify-between py-2.5 rounded-lg transition-all duration-200 ${H === k ? "" : "color-gray-700 hover:bg-gray-100"}`,
|
|
32640
|
+
style: H === k ? { backgroundColor: "#2D5C63" } : {},
|
|
32641
32641
|
children: [
|
|
32642
32642
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center", children: [
|
|
32643
32643
|
/* @__PURE__ */ l.jsx(
|
|
32644
32644
|
b,
|
|
32645
32645
|
{
|
|
32646
|
-
name:
|
|
32646
|
+
name: $,
|
|
32647
32647
|
variant: "24-outline",
|
|
32648
32648
|
size: v,
|
|
32649
|
-
className: `mr-3 ${H ===
|
|
32649
|
+
className: `mr-3 ${H === k ? "color-white" : "color-gray-700"}`,
|
|
32650
32650
|
style: {
|
|
32651
32651
|
width: `${v}px`,
|
|
32652
32652
|
height: `${v}px`,
|
|
32653
32653
|
opacity: 1,
|
|
32654
32654
|
transform: "rotate(0deg)",
|
|
32655
|
-
...
|
|
32655
|
+
...L || {}
|
|
32656
32656
|
}
|
|
32657
32657
|
}
|
|
32658
32658
|
),
|
|
@@ -32660,25 +32660,25 @@ const Be = zD, b = ({
|
|
|
32660
32660
|
x,
|
|
32661
32661
|
{
|
|
32662
32662
|
variant: "body-md",
|
|
32663
|
-
weight: H ===
|
|
32664
|
-
className: H ===
|
|
32663
|
+
weight: H === k ? R : A,
|
|
32664
|
+
className: H === k ? "color-white" : "color-gray-700",
|
|
32665
32665
|
style: { fontSize: y },
|
|
32666
|
-
children:
|
|
32666
|
+
children: F
|
|
32667
32667
|
}
|
|
32668
32668
|
)
|
|
32669
32669
|
] }),
|
|
32670
|
-
|
|
32670
|
+
P !== void 0 && P > 0 && /* @__PURE__ */ l.jsx(
|
|
32671
32671
|
"span",
|
|
32672
32672
|
{
|
|
32673
32673
|
className: `px-2 py-0.5 min-w-[20px] h-5 \r
|
|
32674
32674
|
rounded-full flex items-center justify-center\r
|
|
32675
32675
|
text-body-sm font-medium`,
|
|
32676
32676
|
style: {
|
|
32677
|
-
backgroundColor: H ===
|
|
32678
|
-
color: H ===
|
|
32677
|
+
backgroundColor: H === k ? "#ffffff" : "#6D3856",
|
|
32678
|
+
color: H === k ? "#6D3856" : "#ffffff",
|
|
32679
32679
|
borderRadius: "12px"
|
|
32680
32680
|
},
|
|
32681
|
-
children:
|
|
32681
|
+
children: P > 9 ? "9+" : P
|
|
32682
32682
|
}
|
|
32683
32683
|
)
|
|
32684
32684
|
]
|
|
@@ -32687,7 +32687,7 @@ const Be = zD, b = ({
|
|
|
32687
32687
|
]
|
|
32688
32688
|
}
|
|
32689
32689
|
),
|
|
32690
|
-
|
|
32690
|
+
s && /* @__PURE__ */ l.jsx("div", { className: "px-4 pb-4 flex-shrink-0", children: /* @__PURE__ */ l.jsx(
|
|
32691
32691
|
"div",
|
|
32692
32692
|
{
|
|
32693
32693
|
className: "bg-white border rounded-lg px-3 py-2 flex items-center justify-center",
|
|
@@ -32695,18 +32695,18 @@ const Be = zD, b = ({
|
|
|
32695
32695
|
borderColor: "#2D5C63",
|
|
32696
32696
|
borderRadius: "8px"
|
|
32697
32697
|
},
|
|
32698
|
-
children: typeof
|
|
32698
|
+
children: typeof s == "string" ? /* @__PURE__ */ l.jsx(
|
|
32699
32699
|
x,
|
|
32700
32700
|
{
|
|
32701
32701
|
variant: "body-sm",
|
|
32702
32702
|
style: { color: "#2D5C63" },
|
|
32703
32703
|
className: "text-center",
|
|
32704
32704
|
children: (() => {
|
|
32705
|
-
const
|
|
32706
|
-
if (
|
|
32707
|
-
const c0 =
|
|
32708
|
-
if (
|
|
32709
|
-
const g0 =
|
|
32705
|
+
const e0 = s.split("|");
|
|
32706
|
+
if (e0.length === 2) {
|
|
32707
|
+
const c0 = e0[0].trim(), U = e0[1].trim();
|
|
32708
|
+
if (U.includes("Powered by")) {
|
|
32709
|
+
const g0 = U.match(/Powered by (.+)/);
|
|
32710
32710
|
if (g0)
|
|
32711
32711
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
32712
32712
|
c0,
|
|
@@ -32714,9 +32714,9 @@ const Be = zD, b = ({
|
|
|
32714
32714
|
/* @__PURE__ */ l.jsx("span", { className: "font-bold", children: g0[1] })
|
|
32715
32715
|
] });
|
|
32716
32716
|
}
|
|
32717
|
-
return `${c0} | ${
|
|
32717
|
+
return `${c0} | ${U}`;
|
|
32718
32718
|
}
|
|
32719
|
-
return
|
|
32719
|
+
return s;
|
|
32720
32720
|
})()
|
|
32721
32721
|
}
|
|
32722
32722
|
) : /* @__PURE__ */ l.jsxs(
|
|
@@ -32726,10 +32726,10 @@ const Be = zD, b = ({
|
|
|
32726
32726
|
style: { color: "#2D5C63" },
|
|
32727
32727
|
className: "text-center",
|
|
32728
32728
|
children: [
|
|
32729
|
-
|
|
32730
|
-
|
|
32731
|
-
|
|
32732
|
-
|
|
32729
|
+
s.version && `${s.version}`,
|
|
32730
|
+
s.version && (s.poweredBy || s.brand) && " | ",
|
|
32731
|
+
s.poweredBy && `${s.poweredBy} `,
|
|
32732
|
+
s.brand && /* @__PURE__ */ l.jsx("span", { className: "font-bold", children: s.brand })
|
|
32733
32733
|
]
|
|
32734
32734
|
}
|
|
32735
32735
|
)
|
|
@@ -32746,47 +32746,47 @@ const Be = zD, b = ({
|
|
|
32746
32746
|
defaultCollapsed: n = !1,
|
|
32747
32747
|
companyName: c = "HEXA Core",
|
|
32748
32748
|
companyLogo: u,
|
|
32749
|
-
onCompanyClick:
|
|
32749
|
+
onCompanyClick: d,
|
|
32750
32750
|
// Overrides desktop para el header "HEXA Core"
|
|
32751
|
-
desktopCompanyButtonClassName:
|
|
32751
|
+
desktopCompanyButtonClassName: s = "",
|
|
32752
32752
|
desktopCompanyButtonStyle: i,
|
|
32753
32753
|
desktopCompanyNameClassName: f = "",
|
|
32754
32754
|
desktopCompanyNameStyle: w,
|
|
32755
32755
|
// Desktop: overrides para el control de colapsar (solo cuando NO está colapsado)
|
|
32756
|
-
desktopCollapseControlWrapperClassName:
|
|
32757
|
-
desktopCollapseControlWrapperStyle:
|
|
32756
|
+
desktopCollapseControlWrapperClassName: g = "",
|
|
32757
|
+
desktopCollapseControlWrapperStyle: p,
|
|
32758
32758
|
desktopCollapseButtonClassName: h = "",
|
|
32759
|
-
desktopCollapseButtonStyle:
|
|
32759
|
+
desktopCollapseButtonStyle: M,
|
|
32760
32760
|
desktopCollapseIconSize: y = 20,
|
|
32761
|
-
desktopCollapseIconStrokeWidth:
|
|
32761
|
+
desktopCollapseIconStrokeWidth: A = 1.5,
|
|
32762
32762
|
desktopCollapseIconColor: R = "#0F172A",
|
|
32763
32763
|
desktopCollapseIconClassName: v = "",
|
|
32764
|
-
desktopCollapseIconStyle:
|
|
32764
|
+
desktopCollapseIconStyle: L,
|
|
32765
32765
|
// Desktop: overrides para el control de expandir (solo cuando está colapsado)
|
|
32766
|
-
desktopExpandButtonClassName:
|
|
32767
|
-
desktopExpandButtonStyle:
|
|
32768
|
-
desktopExpandIconSize:
|
|
32769
|
-
desktopExpandIconStrokeWidth:
|
|
32770
|
-
desktopExpandIconColor:
|
|
32771
|
-
desktopExpandIconClassName:
|
|
32772
|
-
desktopExpandIconStyle:
|
|
32766
|
+
desktopExpandButtonClassName: F = "",
|
|
32767
|
+
desktopExpandButtonStyle: $,
|
|
32768
|
+
desktopExpandIconSize: k = 20,
|
|
32769
|
+
desktopExpandIconStrokeWidth: Q = 1.5,
|
|
32770
|
+
desktopExpandIconColor: P = "#0F172A",
|
|
32771
|
+
desktopExpandIconClassName: W = "",
|
|
32772
|
+
desktopExpandIconStyle: O,
|
|
32773
32773
|
// Desktop: labels de items (solo cuando NO está colapsado)
|
|
32774
|
-
desktopItemLabelFontSize:
|
|
32775
|
-
desktopItemLabelWeightInactive:
|
|
32776
|
-
desktopItemLabelWeightActive:
|
|
32774
|
+
desktopItemLabelFontSize: r0 = "1rem",
|
|
32775
|
+
desktopItemLabelWeightInactive: C = "regular",
|
|
32776
|
+
desktopItemLabelWeightActive: j = "semibold",
|
|
32777
32777
|
// Desktop: íconos de navegación (items)
|
|
32778
|
-
desktopExpandedIconSize:
|
|
32779
|
-
desktopCollapsedIconSize:
|
|
32778
|
+
desktopExpandedIconSize: T = 24,
|
|
32779
|
+
desktopCollapsedIconSize: K = 32,
|
|
32780
32780
|
// Desktop colapsado: wrapper interno del ícono (hijo del 32x32)
|
|
32781
|
-
desktopCollapsedIconInnerSize:
|
|
32782
|
-
desktopCollapsedIconInnerStyle:
|
|
32781
|
+
desktopCollapsedIconInnerSize: D = 24,
|
|
32782
|
+
desktopCollapsedIconInnerStyle: Z,
|
|
32783
32783
|
desktopCollapsedIconWrapperStyle: H,
|
|
32784
32784
|
// Desktop colapsado: solapamiento icono + badge (mínimo)
|
|
32785
32785
|
desktopCollapsedOverlapEnabled: _ = !0,
|
|
32786
32786
|
desktopCollapsedOverlapIconMarginLeftPx: n0 = 3,
|
|
32787
|
-
desktopCollapsedOverlapBadgeMarginLeftPx:
|
|
32787
|
+
desktopCollapsedOverlapBadgeMarginLeftPx: e0 = -6,
|
|
32788
32788
|
desktopCollapsedOverlapColumnGapPx: c0 = 0,
|
|
32789
|
-
desktopNavIconStyle:
|
|
32789
|
+
desktopNavIconStyle: U,
|
|
32790
32790
|
// Desktop colapsado: wrapper de cada item (Inicio + opciones)
|
|
32791
32791
|
desktopCollapsedItemWrapperClassName: g0 = "",
|
|
32792
32792
|
desktopCollapsedItemWrapperStyle: M0,
|
|
@@ -32836,7 +32836,7 @@ const Be = zD, b = ({
|
|
|
32836
32836
|
className: N0 = "",
|
|
32837
32837
|
...$0
|
|
32838
32838
|
}) => {
|
|
32839
|
-
const [q, i0] = S(n), [H0, re] = S(!1), k0 = q ?
|
|
32839
|
+
const [q, i0] = S(n), [H0, re] = S(!1), k0 = q ? K : T, u0 = q ? D : T, G0 = {
|
|
32840
32840
|
width: "100%",
|
|
32841
32841
|
height: "48px",
|
|
32842
32842
|
paddingTop: "8px",
|
|
@@ -32879,7 +32879,7 @@ const Be = zD, b = ({
|
|
|
32879
32879
|
onItemClick: t,
|
|
32880
32880
|
companyName: c,
|
|
32881
32881
|
companyLogo: u,
|
|
32882
|
-
onCompanyClick:
|
|
32882
|
+
onCompanyClick: d,
|
|
32883
32883
|
itemBadges: Y,
|
|
32884
32884
|
footerText: G,
|
|
32885
32885
|
footerCollapsedContent: y0,
|
|
@@ -32914,9 +32914,9 @@ const Be = zD, b = ({
|
|
|
32914
32914
|
!q && /* @__PURE__ */ l.jsx("div", { className: "p-4 border-b border-gray-200 flex-shrink-0", children: /* @__PURE__ */ l.jsx(
|
|
32915
32915
|
"button",
|
|
32916
32916
|
{
|
|
32917
|
-
onClick:
|
|
32917
|
+
onClick: d,
|
|
32918
32918
|
className: `w-full bg-white rounded-lg pl-0 pr-3 py-0 h-10
|
|
32919
|
-
flex items-center justify-between hover:bg-gray-50 transition-colors ${
|
|
32919
|
+
flex items-center justify-between hover:bg-gray-50 transition-colors ${s}`,
|
|
32920
32920
|
style: i,
|
|
32921
32921
|
children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center space-x-3 min-w-0 flex-1", children: [
|
|
32922
32922
|
u ? /* @__PURE__ */ l.jsx(
|
|
@@ -32956,7 +32956,7 @@ const Be = zD, b = ({
|
|
|
32956
32956
|
!q && /* @__PURE__ */ l.jsx("div", { className: "px-4 pt-2 flex justify-end flex-shrink-0", children: /* @__PURE__ */ l.jsx(
|
|
32957
32957
|
"div",
|
|
32958
32958
|
{
|
|
32959
|
-
className: `flex justify-end ${
|
|
32959
|
+
className: `flex justify-end ${g}`,
|
|
32960
32960
|
style: {
|
|
32961
32961
|
width: "228px",
|
|
32962
32962
|
height: "36px",
|
|
@@ -32966,7 +32966,7 @@ const Be = zD, b = ({
|
|
|
32966
32966
|
boxSizing: "border-box",
|
|
32967
32967
|
borderTopRightRadius: "8px",
|
|
32968
32968
|
borderBottomRightRadius: "8px",
|
|
32969
|
-
...
|
|
32969
|
+
...p || {}
|
|
32970
32970
|
},
|
|
32971
32971
|
children: /* @__PURE__ */ l.jsx(
|
|
32972
32972
|
"button",
|
|
@@ -32982,7 +32982,7 @@ const Be = zD, b = ({
|
|
|
32982
32982
|
justifyContent: "center",
|
|
32983
32983
|
opacity: 1,
|
|
32984
32984
|
transform: "rotate(0deg)",
|
|
32985
|
-
...
|
|
32985
|
+
...M || {}
|
|
32986
32986
|
},
|
|
32987
32987
|
children: /* @__PURE__ */ l.jsx(
|
|
32988
32988
|
b,
|
|
@@ -32990,7 +32990,7 @@ const Be = zD, b = ({
|
|
|
32990
32990
|
name: "ChevronDoubleLeftIcon",
|
|
32991
32991
|
variant: "24-outline",
|
|
32992
32992
|
size: y,
|
|
32993
|
-
strokeWidth:
|
|
32993
|
+
strokeWidth: A,
|
|
32994
32994
|
className: v,
|
|
32995
32995
|
style: {
|
|
32996
32996
|
width: `${y}px`,
|
|
@@ -32998,7 +32998,7 @@ const Be = zD, b = ({
|
|
|
32998
32998
|
opacity: 1,
|
|
32999
32999
|
transform: "rotate(0deg)",
|
|
33000
33000
|
color: R,
|
|
33001
|
-
...
|
|
33001
|
+
...L || {}
|
|
33002
33002
|
}
|
|
33003
33003
|
}
|
|
33004
33004
|
)
|
|
@@ -33018,24 +33018,24 @@ const Be = zD, b = ({
|
|
|
33018
33018
|
"button",
|
|
33019
33019
|
{
|
|
33020
33020
|
onClick: ue,
|
|
33021
|
-
className: `p-1.5 hover:bg-gray-100 rounded-lg transition-colors ${
|
|
33021
|
+
className: `p-1.5 hover:bg-gray-100 rounded-lg transition-colors ${F}`,
|
|
33022
33022
|
"aria-label": "Expandir sidebar",
|
|
33023
|
-
style:
|
|
33023
|
+
style: $,
|
|
33024
33024
|
children: /* @__PURE__ */ l.jsx(
|
|
33025
33025
|
b,
|
|
33026
33026
|
{
|
|
33027
33027
|
name: "ChevronDoubleRightIcon",
|
|
33028
33028
|
variant: "24-outline",
|
|
33029
|
-
size:
|
|
33030
|
-
strokeWidth:
|
|
33031
|
-
className:
|
|
33029
|
+
size: k,
|
|
33030
|
+
strokeWidth: Q,
|
|
33031
|
+
className: W,
|
|
33032
33032
|
style: {
|
|
33033
|
-
color:
|
|
33034
|
-
width: `${
|
|
33035
|
-
height: `${
|
|
33033
|
+
color: P,
|
|
33034
|
+
width: `${k}px`,
|
|
33035
|
+
height: `${k}px`,
|
|
33036
33036
|
opacity: 1,
|
|
33037
33037
|
transform: "rotate(0deg)",
|
|
33038
|
-
...
|
|
33038
|
+
...O || {}
|
|
33039
33039
|
}
|
|
33040
33040
|
}
|
|
33041
33041
|
)
|
|
@@ -33101,7 +33101,7 @@ const Be = zD, b = ({
|
|
|
33101
33101
|
display: "flex",
|
|
33102
33102
|
alignItems: "center",
|
|
33103
33103
|
justifyContent: "center",
|
|
33104
|
-
...
|
|
33104
|
+
...Z || {}
|
|
33105
33105
|
},
|
|
33106
33106
|
children: /* @__PURE__ */ l.jsx(
|
|
33107
33107
|
b,
|
|
@@ -33115,7 +33115,7 @@ const Be = zD, b = ({
|
|
|
33115
33115
|
height: `${u0}px`,
|
|
33116
33116
|
opacity: 1,
|
|
33117
33117
|
transform: "rotate(0deg)",
|
|
33118
|
-
...
|
|
33118
|
+
...U || {}
|
|
33119
33119
|
}
|
|
33120
33120
|
}
|
|
33121
33121
|
)
|
|
@@ -33139,7 +33139,7 @@ const Be = zD, b = ({
|
|
|
33139
33139
|
borderRadius: "16px",
|
|
33140
33140
|
opacity: 1,
|
|
33141
33141
|
transform: "rotate(0deg)",
|
|
33142
|
-
marginLeft: _ ? `${
|
|
33142
|
+
marginLeft: _ ? `${e0}px` : void 0,
|
|
33143
33143
|
boxSizing: "border-box",
|
|
33144
33144
|
...x0 || {}
|
|
33145
33145
|
},
|
|
@@ -33173,10 +33173,10 @@ const Be = zD, b = ({
|
|
|
33173
33173
|
x,
|
|
33174
33174
|
{
|
|
33175
33175
|
variant: "body-lg",
|
|
33176
|
-
weight: r === "inicio" ?
|
|
33176
|
+
weight: r === "inicio" ? j : C,
|
|
33177
33177
|
className: `${r === "inicio" ? "color-white" : "color-gray-700"} min-w-0`,
|
|
33178
33178
|
style: {
|
|
33179
|
-
fontSize:
|
|
33179
|
+
fontSize: r0,
|
|
33180
33180
|
overflow: "hidden",
|
|
33181
33181
|
textOverflow: "ellipsis",
|
|
33182
33182
|
whiteSpace: "nowrap"
|
|
@@ -33313,7 +33313,7 @@ const Be = zD, b = ({
|
|
|
33313
33313
|
display: "flex",
|
|
33314
33314
|
alignItems: "center",
|
|
33315
33315
|
justifyContent: "center",
|
|
33316
|
-
...
|
|
33316
|
+
...Z || {}
|
|
33317
33317
|
},
|
|
33318
33318
|
children: /* @__PURE__ */ l.jsx(
|
|
33319
33319
|
b,
|
|
@@ -33327,7 +33327,7 @@ const Be = zD, b = ({
|
|
|
33327
33327
|
height: `${u0}px`,
|
|
33328
33328
|
opacity: 1,
|
|
33329
33329
|
transform: "rotate(0deg)",
|
|
33330
|
-
...
|
|
33330
|
+
...U || {}
|
|
33331
33331
|
}
|
|
33332
33332
|
}
|
|
33333
33333
|
)
|
|
@@ -33351,7 +33351,7 @@ const Be = zD, b = ({
|
|
|
33351
33351
|
borderRadius: "16px",
|
|
33352
33352
|
opacity: 1,
|
|
33353
33353
|
transform: "rotate(0deg)",
|
|
33354
|
-
marginLeft: _ ? `${
|
|
33354
|
+
marginLeft: _ ? `${e0}px` : void 0,
|
|
33355
33355
|
boxSizing: "border-box",
|
|
33356
33356
|
...x0 || {}
|
|
33357
33357
|
},
|
|
@@ -33385,10 +33385,10 @@ const Be = zD, b = ({
|
|
|
33385
33385
|
x,
|
|
33386
33386
|
{
|
|
33387
33387
|
variant: "body-lg",
|
|
33388
|
-
weight: r === I.id ?
|
|
33388
|
+
weight: r === I.id ? j : C,
|
|
33389
33389
|
className: `${r === I.id ? "color-white" : "color-gray-700"} min-w-0`,
|
|
33390
33390
|
style: {
|
|
33391
|
-
fontSize:
|
|
33391
|
+
fontSize: r0,
|
|
33392
33392
|
overflow: "hidden",
|
|
33393
33393
|
textOverflow: "ellipsis",
|
|
33394
33394
|
whiteSpace: "nowrap"
|
|
@@ -33463,10 +33463,10 @@ const Be = zD, b = ({
|
|
|
33463
33463
|
x,
|
|
33464
33464
|
{
|
|
33465
33465
|
variant: "body-lg",
|
|
33466
|
-
weight: r === t0 ?
|
|
33466
|
+
weight: r === t0 ? j : C,
|
|
33467
33467
|
className: `${r === t0 ? "color-white" : "color-gray-700"} min-w-0`,
|
|
33468
33468
|
style: {
|
|
33469
|
-
fontSize:
|
|
33469
|
+
fontSize: r0,
|
|
33470
33470
|
overflow: "hidden",
|
|
33471
33471
|
textOverflow: "ellipsis",
|
|
33472
33472
|
whiteSpace: "nowrap"
|
|
@@ -33575,7 +33575,7 @@ const Be = zD, b = ({
|
|
|
33575
33575
|
display: "flex",
|
|
33576
33576
|
alignItems: "center",
|
|
33577
33577
|
justifyContent: "center",
|
|
33578
|
-
...
|
|
33578
|
+
...Z || {}
|
|
33579
33579
|
},
|
|
33580
33580
|
children: /* @__PURE__ */ l.jsx(
|
|
33581
33581
|
b,
|
|
@@ -33589,7 +33589,7 @@ const Be = zD, b = ({
|
|
|
33589
33589
|
height: `${u0}px`,
|
|
33590
33590
|
opacity: 1,
|
|
33591
33591
|
transform: "rotate(0deg)",
|
|
33592
|
-
...
|
|
33592
|
+
...U || {}
|
|
33593
33593
|
}
|
|
33594
33594
|
}
|
|
33595
33595
|
)
|
|
@@ -33613,7 +33613,7 @@ const Be = zD, b = ({
|
|
|
33613
33613
|
borderRadius: "16px",
|
|
33614
33614
|
opacity: 1,
|
|
33615
33615
|
transform: "rotate(0deg)",
|
|
33616
|
-
marginLeft: _ ? `${
|
|
33616
|
+
marginLeft: _ ? `${e0}px` : void 0,
|
|
33617
33617
|
boxSizing: "border-box",
|
|
33618
33618
|
...x0 || {}
|
|
33619
33619
|
},
|
|
@@ -33760,45 +33760,45 @@ const Be = zD, b = ({
|
|
|
33760
33760
|
userAvatar: n,
|
|
33761
33761
|
notificationCount: c = 0,
|
|
33762
33762
|
onSearch: u,
|
|
33763
|
-
onNotificationClick:
|
|
33764
|
-
onUserClick:
|
|
33763
|
+
onNotificationClick: d,
|
|
33764
|
+
onUserClick: s,
|
|
33765
33765
|
// Borde inferior (subrayado)
|
|
33766
33766
|
showBottomBorder: i = !1,
|
|
33767
33767
|
bottomBorderClassName: f = "border-b border-gray-200",
|
|
33768
33768
|
// Sidebar mobile (animación/cierre controlado)
|
|
33769
33769
|
mobileSidebarTransitionDurationMs: w = 300,
|
|
33770
|
-
mobileSidebarTransitionEasing:
|
|
33770
|
+
mobileSidebarTransitionEasing: g = "ease-in-out",
|
|
33771
33771
|
// Mobile background
|
|
33772
|
-
mobileBackgroundColor:
|
|
33772
|
+
mobileBackgroundColor: p = "#F3F3F3",
|
|
33773
33773
|
mobileHeaderClassName: h = "",
|
|
33774
|
-
mobileHeaderStyle:
|
|
33774
|
+
mobileHeaderStyle: M,
|
|
33775
33775
|
// Overrides de estilo/clases para poder ajustar layout desde el proyecto consumidor
|
|
33776
33776
|
desktopLayoutClassName: y = "",
|
|
33777
|
-
desktopLayoutStyle:
|
|
33777
|
+
desktopLayoutStyle: A,
|
|
33778
33778
|
desktopSearchContainerClassName: R = "",
|
|
33779
33779
|
desktopSearchContainerStyle: v,
|
|
33780
|
-
desktopRightContainerClassName:
|
|
33781
|
-
desktopRightContainerStyle:
|
|
33782
|
-
notificationButtonClassName:
|
|
33783
|
-
notificationButtonStyle:
|
|
33784
|
-
notificationIconClassName:
|
|
33785
|
-
notificationIconStyle:
|
|
33786
|
-
notificationBadgeClassName:
|
|
33787
|
-
notificationBadgeStyle:
|
|
33780
|
+
desktopRightContainerClassName: L = "",
|
|
33781
|
+
desktopRightContainerStyle: F,
|
|
33782
|
+
notificationButtonClassName: $ = "",
|
|
33783
|
+
notificationButtonStyle: k,
|
|
33784
|
+
notificationIconClassName: Q = "",
|
|
33785
|
+
notificationIconStyle: P,
|
|
33786
|
+
notificationBadgeClassName: W = "",
|
|
33787
|
+
notificationBadgeStyle: O,
|
|
33788
33788
|
// Overrides específicos de medidas/posiciones (Desktop / Mobile)
|
|
33789
|
-
notificationDesktopButtonStyle:
|
|
33790
|
-
notificationDesktopIconWrapperClassName:
|
|
33791
|
-
notificationDesktopIconWrapperStyle:
|
|
33792
|
-
notificationDesktopIconSize:
|
|
33793
|
-
notificationDesktopIconStrokeWidth:
|
|
33794
|
-
notificationDesktopIconStyle:
|
|
33795
|
-
notificationDesktopBadgeStyle:
|
|
33789
|
+
notificationDesktopButtonStyle: r0,
|
|
33790
|
+
notificationDesktopIconWrapperClassName: C = "",
|
|
33791
|
+
notificationDesktopIconWrapperStyle: j,
|
|
33792
|
+
notificationDesktopIconSize: T = 24,
|
|
33793
|
+
notificationDesktopIconStrokeWidth: K = 1.5,
|
|
33794
|
+
notificationDesktopIconStyle: D,
|
|
33795
|
+
notificationDesktopBadgeStyle: Z,
|
|
33796
33796
|
notificationMobileButtonClassName: H = "",
|
|
33797
33797
|
notificationMobileButtonStyle: _,
|
|
33798
33798
|
notificationMobileIconWrapperClassName: n0 = "",
|
|
33799
|
-
notificationMobileIconWrapperStyle:
|
|
33799
|
+
notificationMobileIconWrapperStyle: e0,
|
|
33800
33800
|
notificationMobileIconSize: c0 = 24,
|
|
33801
|
-
notificationMobileIconStrokeWidth:
|
|
33801
|
+
notificationMobileIconStrokeWidth: U = 1.5,
|
|
33802
33802
|
notificationMobileIconStyle: g0,
|
|
33803
33803
|
showNotificationBadgeOnMobile: M0 = !1,
|
|
33804
33804
|
notificationMobileBadgeStyle: v0,
|
|
@@ -33903,7 +33903,7 @@ const Be = zD, b = ({
|
|
|
33903
33903
|
"div",
|
|
33904
33904
|
{
|
|
33905
33905
|
className: `header-desktop-layout flex items-center justify-between h-16 ${y}`,
|
|
33906
|
-
style:
|
|
33906
|
+
style: A,
|
|
33907
33907
|
children: [
|
|
33908
33908
|
/* @__PURE__ */ l.jsx(
|
|
33909
33909
|
"div",
|
|
@@ -33962,42 +33962,42 @@ const Be = zD, b = ({
|
|
|
33962
33962
|
/* @__PURE__ */ l.jsxs(
|
|
33963
33963
|
"div",
|
|
33964
33964
|
{
|
|
33965
|
-
className: `flex items-center space-x-3 md:space-x-6 flex-shrink-0 ${
|
|
33966
|
-
style: { marginLeft: "auto", paddingRight: "0px", ...
|
|
33965
|
+
className: `flex items-center space-x-3 md:space-x-6 flex-shrink-0 ${L}`,
|
|
33966
|
+
style: { marginLeft: "auto", paddingRight: "0px", ...F || {} },
|
|
33967
33967
|
children: [
|
|
33968
33968
|
c !== void 0 && /* @__PURE__ */ l.jsxs(
|
|
33969
33969
|
"button",
|
|
33970
33970
|
{
|
|
33971
|
-
onClick:
|
|
33972
|
-
className: `ml-3 p-2 hover:bg-gray-100 rounded-lg transition-colors flex items-center gap-2 ${
|
|
33971
|
+
onClick: d,
|
|
33972
|
+
className: `ml-3 p-2 hover:bg-gray-100 rounded-lg transition-colors flex items-center gap-2 ${$}`,
|
|
33973
33973
|
"aria-label": "Notificaciones",
|
|
33974
33974
|
style: {
|
|
33975
33975
|
// Nota: en desktop el contenedor derecho está anclado a la derecha (marginLeft: auto).
|
|
33976
33976
|
// Un ml-* en el primer hijo no “mueve” visualmente, porque ensancha el contenedor hacia la izquierda.
|
|
33977
33977
|
// Por eso usamos translateX por defecto (overrideable por props).
|
|
33978
33978
|
transform: "translateX(12px)",
|
|
33979
|
-
...
|
|
33980
|
-
...
|
|
33979
|
+
...k || {},
|
|
33980
|
+
...r0 || {}
|
|
33981
33981
|
},
|
|
33982
33982
|
children: [
|
|
33983
33983
|
/* @__PURE__ */ l.jsx(
|
|
33984
33984
|
"span",
|
|
33985
33985
|
{
|
|
33986
|
-
className: `relative inline-block ${
|
|
33986
|
+
className: `relative inline-block ${C}`,
|
|
33987
33987
|
style: {
|
|
33988
33988
|
width: "24px",
|
|
33989
33989
|
height: "24px",
|
|
33990
33990
|
opacity: 1,
|
|
33991
|
-
...
|
|
33991
|
+
...j || {}
|
|
33992
33992
|
},
|
|
33993
33993
|
children: /* @__PURE__ */ l.jsx(
|
|
33994
33994
|
b,
|
|
33995
33995
|
{
|
|
33996
33996
|
name: t0,
|
|
33997
33997
|
variant: "24-outline",
|
|
33998
|
-
size:
|
|
33999
|
-
strokeWidth:
|
|
34000
|
-
className: `color-gray-600 ${
|
|
33998
|
+
size: T,
|
|
33999
|
+
strokeWidth: K,
|
|
34000
|
+
className: `color-gray-600 ${Q}`,
|
|
34001
34001
|
style: {
|
|
34002
34002
|
width: "24px",
|
|
34003
34003
|
height: "24px",
|
|
@@ -34006,8 +34006,8 @@ const Be = zD, b = ({
|
|
|
34006
34006
|
left: "0px",
|
|
34007
34007
|
opacity: 1,
|
|
34008
34008
|
transform: "rotate(0deg)",
|
|
34009
|
-
...
|
|
34010
|
-
...
|
|
34009
|
+
...P || {},
|
|
34010
|
+
...D || {}
|
|
34011
34011
|
}
|
|
34012
34012
|
}
|
|
34013
34013
|
)
|
|
@@ -34016,7 +34016,7 @@ const Be = zD, b = ({
|
|
|
34016
34016
|
c > 0 && /* @__PURE__ */ l.jsx(
|
|
34017
34017
|
"span",
|
|
34018
34018
|
{
|
|
34019
|
-
className: `h-5 text-white flex items-center justify-center text-body-sm font-medium ${
|
|
34019
|
+
className: `h-5 text-white flex items-center justify-center text-body-sm font-medium ${W}`,
|
|
34020
34020
|
style: {
|
|
34021
34021
|
backgroundColor: "#6D3856",
|
|
34022
34022
|
minWidth: "24px",
|
|
@@ -34029,8 +34029,8 @@ const Be = zD, b = ({
|
|
|
34029
34029
|
borderRadius: "16px",
|
|
34030
34030
|
opacity: 1,
|
|
34031
34031
|
transform: "rotate(0deg)",
|
|
34032
|
-
...
|
|
34033
|
-
...
|
|
34032
|
+
...O || {},
|
|
34033
|
+
...Z || {}
|
|
34034
34034
|
},
|
|
34035
34035
|
children: c > 9 ? "9+" : c
|
|
34036
34036
|
}
|
|
@@ -34041,7 +34041,7 @@ const Be = zD, b = ({
|
|
|
34041
34041
|
t && /* @__PURE__ */ l.jsxs(
|
|
34042
34042
|
"button",
|
|
34043
34043
|
{
|
|
34044
|
-
onClick:
|
|
34044
|
+
onClick: s,
|
|
34045
34045
|
className: `flex items-center space-x-3 hover:bg-gray-50 \r
|
|
34046
34046
|
rounded-lg px-2 py-1.5 transition-colors`,
|
|
34047
34047
|
"aria-label": "Perfil de usuario",
|
|
@@ -34104,7 +34104,7 @@ const Be = zD, b = ({
|
|
|
34104
34104
|
"div",
|
|
34105
34105
|
{
|
|
34106
34106
|
className: `header-mobile-layout ${h}`,
|
|
34107
|
-
style: { background:
|
|
34107
|
+
style: { background: p, ...M || {} },
|
|
34108
34108
|
children: [
|
|
34109
34109
|
/* @__PURE__ */ l.jsxs("div", { className: "header-mobile-top-row", children: [
|
|
34110
34110
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
@@ -34145,8 +34145,8 @@ const Be = zD, b = ({
|
|
|
34145
34145
|
c !== void 0 && /* @__PURE__ */ l.jsxs(
|
|
34146
34146
|
"button",
|
|
34147
34147
|
{
|
|
34148
|
-
onClick:
|
|
34149
|
-
className: `ml-2 hover:bg-gray-100 transition-colors flex items-center justify-center ${
|
|
34148
|
+
onClick: d,
|
|
34149
|
+
className: `ml-2 hover:bg-gray-100 transition-colors flex items-center justify-center ${$} ${H}`,
|
|
34150
34150
|
"aria-label": "Notificaciones",
|
|
34151
34151
|
style: {
|
|
34152
34152
|
width: "48px",
|
|
@@ -34155,7 +34155,7 @@ const Be = zD, b = ({
|
|
|
34155
34155
|
borderRadius: "8px",
|
|
34156
34156
|
opacity: 1,
|
|
34157
34157
|
transform: "rotate(0deg)",
|
|
34158
|
-
...
|
|
34158
|
+
...k || {},
|
|
34159
34159
|
..._ || {}
|
|
34160
34160
|
},
|
|
34161
34161
|
children: [
|
|
@@ -34167,7 +34167,7 @@ const Be = zD, b = ({
|
|
|
34167
34167
|
width: "24px",
|
|
34168
34168
|
height: "24px",
|
|
34169
34169
|
opacity: 1,
|
|
34170
|
-
...
|
|
34170
|
+
...e0 || {}
|
|
34171
34171
|
},
|
|
34172
34172
|
children: /* @__PURE__ */ l.jsx(
|
|
34173
34173
|
b,
|
|
@@ -34175,8 +34175,8 @@ const Be = zD, b = ({
|
|
|
34175
34175
|
name: t0,
|
|
34176
34176
|
variant: "24-outline",
|
|
34177
34177
|
size: c0,
|
|
34178
|
-
strokeWidth:
|
|
34179
|
-
className: `color-gray-600 ${
|
|
34178
|
+
strokeWidth: U,
|
|
34179
|
+
className: `color-gray-600 ${Q}`,
|
|
34180
34180
|
style: {
|
|
34181
34181
|
width: "24px",
|
|
34182
34182
|
height: "24px",
|
|
@@ -34185,7 +34185,7 @@ const Be = zD, b = ({
|
|
|
34185
34185
|
left: "0px",
|
|
34186
34186
|
opacity: 1,
|
|
34187
34187
|
transform: "rotate(0deg)",
|
|
34188
|
-
...
|
|
34188
|
+
...P || {},
|
|
34189
34189
|
...g0 || {}
|
|
34190
34190
|
}
|
|
34191
34191
|
}
|
|
@@ -34195,7 +34195,7 @@ const Be = zD, b = ({
|
|
|
34195
34195
|
M0 && c > 0 && /* @__PURE__ */ l.jsx(
|
|
34196
34196
|
"span",
|
|
34197
34197
|
{
|
|
34198
|
-
className: `h-5 text-white flex items-center justify-center text-body-sm font-medium ${
|
|
34198
|
+
className: `h-5 text-white flex items-center justify-center text-body-sm font-medium ${W}`,
|
|
34199
34199
|
style: {
|
|
34200
34200
|
backgroundColor: "#6D3856",
|
|
34201
34201
|
minWidth: "24px",
|
|
@@ -34209,7 +34209,7 @@ const Be = zD, b = ({
|
|
|
34209
34209
|
marginLeft: "6px",
|
|
34210
34210
|
opacity: 1,
|
|
34211
34211
|
transform: "rotate(0deg)",
|
|
34212
|
-
...
|
|
34212
|
+
...O || {},
|
|
34213
34213
|
...v0 || {}
|
|
34214
34214
|
},
|
|
34215
34215
|
children: c > 9 ? "9+" : c
|
|
@@ -34221,7 +34221,7 @@ const Be = zD, b = ({
|
|
|
34221
34221
|
n && /* @__PURE__ */ l.jsx(
|
|
34222
34222
|
"button",
|
|
34223
34223
|
{
|
|
34224
|
-
onClick:
|
|
34224
|
+
onClick: s,
|
|
34225
34225
|
className: "hover:bg-gray-50 rounded-lg transition-colors",
|
|
34226
34226
|
"aria-label": "Perfil de usuario",
|
|
34227
34227
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -34308,7 +34308,7 @@ const Be = zD, b = ({
|
|
|
34308
34308
|
isOpen: G,
|
|
34309
34309
|
onClose: o0,
|
|
34310
34310
|
transitionDurationMs: w,
|
|
34311
|
-
transitionEasing:
|
|
34311
|
+
transitionEasing: g
|
|
34312
34312
|
}
|
|
34313
34313
|
) })
|
|
34314
34314
|
]
|
|
@@ -34336,8 +34336,8 @@ const Be = zD, b = ({
|
|
|
34336
34336
|
defaultCollapsed: n = !1,
|
|
34337
34337
|
companyName: c = "HEXA Point",
|
|
34338
34338
|
companyLogo: u,
|
|
34339
|
-
onCompanyClick:
|
|
34340
|
-
itemBadges:
|
|
34339
|
+
onCompanyClick: d,
|
|
34340
|
+
itemBadges: s = {},
|
|
34341
34341
|
// Objeto con { itemId: number } para los badges
|
|
34342
34342
|
footerText: i,
|
|
34343
34343
|
// Texto del footer: puede ser string "v1.0 | Powered by Nucleus" o objeto { version: "v1.0", poweredBy: "Powered by", brand: "Nucleus" }
|
|
@@ -34345,15 +34345,15 @@ const Be = zD, b = ({
|
|
|
34345
34345
|
// Contenido a mostrar en el footer cuando está colapsado (puede ser string, ReactNode, o objeto con icon y text)
|
|
34346
34346
|
Client: w = !1,
|
|
34347
34347
|
// Propiedad booleana para mostrar el logo de la empresa en la parte superior
|
|
34348
|
-
className:
|
|
34349
|
-
...
|
|
34348
|
+
className: g = "",
|
|
34349
|
+
...p
|
|
34350
34350
|
}) => {
|
|
34351
|
-
const [h,
|
|
34351
|
+
const [h, M] = S(n);
|
|
34352
34352
|
return /* @__PURE__ */ l.jsx(
|
|
34353
34353
|
"aside",
|
|
34354
34354
|
{
|
|
34355
|
-
className: `bg-white border-r border-gray-200 transition-all duration-300 ease-in-out h-full rounded-16 ${h ? "w-20" : "w-64"} ${
|
|
34356
|
-
...
|
|
34355
|
+
className: `bg-white border-r border-gray-200 transition-all duration-300 ease-in-out h-full rounded-16 ${h ? "w-20" : "w-64"} ${g}`,
|
|
34356
|
+
...p,
|
|
34357
34357
|
children: /* @__PURE__ */ l.jsxs("nav", { className: "h-full flex flex-col", style: { overflow: "hidden" }, children: [
|
|
34358
34358
|
w && u && !h && /* @__PURE__ */ l.jsx("div", { className: "flex-shrink-0 border-b border-gray-200", style: { borderStyle: "dashed" }, children: /* @__PURE__ */ l.jsx("div", { className: "px-4 py-6 flex flex-col items-center justify-center", children: /* @__PURE__ */ l.jsx(
|
|
34359
34359
|
"img",
|
|
@@ -34390,7 +34390,7 @@ const Be = zD, b = ({
|
|
|
34390
34390
|
}
|
|
34391
34391
|
)
|
|
34392
34392
|
] }),
|
|
34393
|
-
!h &&
|
|
34393
|
+
!h && s.inicio !== void 0 && s.inicio > 0 && /* @__PURE__ */ l.jsx(
|
|
34394
34394
|
"span",
|
|
34395
34395
|
{
|
|
34396
34396
|
className: `px-2 py-0.5 min-w-[20px] h-5 \r
|
|
@@ -34401,13 +34401,13 @@ const Be = zD, b = ({
|
|
|
34401
34401
|
color: r === "inicio" ? "#6D3856" : "#FFFFFF",
|
|
34402
34402
|
borderRadius: "12px"
|
|
34403
34403
|
},
|
|
34404
|
-
children:
|
|
34404
|
+
children: s.inicio > 9 ? "9+" : s.inicio
|
|
34405
34405
|
}
|
|
34406
34406
|
)
|
|
34407
34407
|
]
|
|
34408
34408
|
}
|
|
34409
34409
|
) }),
|
|
34410
|
-
a.map((y,
|
|
34410
|
+
a.map((y, A) => /* @__PURE__ */ l.jsxs("div", { className: "mb-6", children: [
|
|
34411
34411
|
h && /* @__PURE__ */ l.jsx("div", { className: "px-4 mb-4", children: /* @__PURE__ */ l.jsx("div", { className: "border-t", style: { borderColor: "#2D5C63" } }) }),
|
|
34412
34412
|
!h && /* @__PURE__ */ l.jsx("div", { className: "px-4 mb-2", children: /* @__PURE__ */ l.jsx(
|
|
34413
34413
|
x,
|
|
@@ -34444,7 +34444,7 @@ const Be = zD, b = ({
|
|
|
34444
34444
|
}
|
|
34445
34445
|
)
|
|
34446
34446
|
] }),
|
|
34447
|
-
!h && (
|
|
34447
|
+
!h && (s[R.id] !== void 0 && s[R.id] > 0 || R.id === "empleados" && 2) && /* @__PURE__ */ l.jsx(
|
|
34448
34448
|
"span",
|
|
34449
34449
|
{
|
|
34450
34450
|
className: `px-2 py-0.5 min-w-[20px] h-5 \r
|
|
@@ -34455,13 +34455,13 @@ const Be = zD, b = ({
|
|
|
34455
34455
|
color: r === R.id ? "#6D3856" : "#FFFFFF",
|
|
34456
34456
|
borderRadius: "12px"
|
|
34457
34457
|
},
|
|
34458
|
-
children: R.id === "empleados" ? 2 :
|
|
34458
|
+
children: R.id === "empleados" ? 2 : s[R.id] > 9 ? "9+" : s[R.id]
|
|
34459
34459
|
}
|
|
34460
34460
|
)
|
|
34461
34461
|
]
|
|
34462
34462
|
}
|
|
34463
34463
|
) }, R.id)) })
|
|
34464
|
-
] },
|
|
34464
|
+
] }, A))
|
|
34465
34465
|
] }) }),
|
|
34466
34466
|
i && !h && /* @__PURE__ */ l.jsx("div", { className: "px-4 pb-4 flex-shrink-0", children: /* @__PURE__ */ l.jsx(
|
|
34467
34467
|
"div",
|
|
@@ -34480,17 +34480,17 @@ const Be = zD, b = ({
|
|
|
34480
34480
|
children: (() => {
|
|
34481
34481
|
const y = i.split("|");
|
|
34482
34482
|
if (y.length === 2) {
|
|
34483
|
-
const
|
|
34483
|
+
const A = y[0].trim(), R = y[1].trim();
|
|
34484
34484
|
if (R.includes("Powered by")) {
|
|
34485
34485
|
const v = R.match(/Powered by (.+)/);
|
|
34486
34486
|
if (v)
|
|
34487
34487
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
34488
|
-
|
|
34488
|
+
A,
|
|
34489
34489
|
" | Powered by ",
|
|
34490
34490
|
/* @__PURE__ */ l.jsx("span", { className: "font-bold", children: v[1] })
|
|
34491
34491
|
] });
|
|
34492
34492
|
}
|
|
34493
|
-
return `${
|
|
34493
|
+
return `${A} | ${R}`;
|
|
34494
34494
|
}
|
|
34495
34495
|
return i;
|
|
34496
34496
|
})()
|
|
@@ -34571,28 +34571,28 @@ const Be = zD, b = ({
|
|
|
34571
34571
|
companyName: n = "HEXA Point",
|
|
34572
34572
|
companyLogo: c,
|
|
34573
34573
|
onCompanyClick: u,
|
|
34574
|
-
itemBadges:
|
|
34575
|
-
isOpen:
|
|
34574
|
+
itemBadges: d = {},
|
|
34575
|
+
isOpen: s,
|
|
34576
34576
|
onClose: i,
|
|
34577
34577
|
className: f = "",
|
|
34578
34578
|
...w
|
|
34579
34579
|
}) => {
|
|
34580
|
-
const [
|
|
34580
|
+
const [g, p] = S(!1), [h, M] = S(!1), y = s !== void 0 ? s : g;
|
|
34581
34581
|
Z0(() => {
|
|
34582
|
-
if (
|
|
34583
|
-
if (
|
|
34584
|
-
|
|
34585
|
-
const
|
|
34586
|
-
|
|
34582
|
+
if (s !== void 0)
|
|
34583
|
+
if (s) {
|
|
34584
|
+
M(!1);
|
|
34585
|
+
const L = setTimeout(() => {
|
|
34586
|
+
M(!0);
|
|
34587
34587
|
}, 10);
|
|
34588
|
-
return () => clearTimeout(
|
|
34588
|
+
return () => clearTimeout(L);
|
|
34589
34589
|
} else
|
|
34590
|
-
|
|
34590
|
+
M(!1);
|
|
34591
34591
|
else
|
|
34592
|
-
|
|
34593
|
-
}, [
|
|
34594
|
-
const
|
|
34595
|
-
i ? i() :
|
|
34592
|
+
M(g);
|
|
34593
|
+
}, [s, g]);
|
|
34594
|
+
const A = () => {
|
|
34595
|
+
i ? i() : p(!g);
|
|
34596
34596
|
}, R = (/* @__PURE__ */ new Date()).toLocaleDateString("es-AR", {
|
|
34597
34597
|
weekday: "long",
|
|
34598
34598
|
year: "numeric",
|
|
@@ -34621,10 +34621,10 @@ const Be = zD, b = ({
|
|
|
34621
34621
|
pointer-events: ${y ? "auto" : "none"};
|
|
34622
34622
|
}
|
|
34623
34623
|
` }),
|
|
34624
|
-
!y &&
|
|
34624
|
+
!y && s === void 0 && /* @__PURE__ */ l.jsx(
|
|
34625
34625
|
"button",
|
|
34626
34626
|
{
|
|
34627
|
-
onClick:
|
|
34627
|
+
onClick: A,
|
|
34628
34628
|
className: `fixed top-4 left-4 z-50 p-2 bg-white border border-gray-200 rounded-lg shadow-md \r
|
|
34629
34629
|
hover:bg-gray-50 transition-colors`,
|
|
34630
34630
|
"aria-label": "Toggle menu",
|
|
@@ -34644,7 +34644,7 @@ const Be = zD, b = ({
|
|
|
34644
34644
|
{
|
|
34645
34645
|
className: "sidebar-point-mobile-overlay",
|
|
34646
34646
|
onClick: () => {
|
|
34647
|
-
i ? i() :
|
|
34647
|
+
i ? i() : A();
|
|
34648
34648
|
}
|
|
34649
34649
|
}
|
|
34650
34650
|
),
|
|
@@ -34667,7 +34667,7 @@ const Be = zD, b = ({
|
|
|
34667
34667
|
"button",
|
|
34668
34668
|
{
|
|
34669
34669
|
onClick: () => {
|
|
34670
|
-
i ? i() :
|
|
34670
|
+
i ? i() : A();
|
|
34671
34671
|
},
|
|
34672
34672
|
className: "p-1 hover:bg-opacity-80 rounded transition-colors",
|
|
34673
34673
|
style: { cursor: "pointer" },
|
|
@@ -34705,7 +34705,7 @@ const Be = zD, b = ({
|
|
|
34705
34705
|
"button",
|
|
34706
34706
|
{
|
|
34707
34707
|
onClick: () => {
|
|
34708
|
-
t && t("inicio"),
|
|
34708
|
+
t && t("inicio"), A();
|
|
34709
34709
|
},
|
|
34710
34710
|
className: `w-full flex items-center cursor-pointer px-4 justify-between py-2.5 rounded-lg transition-all duration-200 ${r === "inicio" ? "" : "color-gray-700 hover:bg-gray-100"}`,
|
|
34711
34711
|
style: r === "inicio" ? { backgroundColor: "#2D5C63" } : {},
|
|
@@ -34729,7 +34729,7 @@ const Be = zD, b = ({
|
|
|
34729
34729
|
}
|
|
34730
34730
|
)
|
|
34731
34731
|
] }),
|
|
34732
|
-
|
|
34732
|
+
d.inicio !== void 0 && d.inicio > 0 && /* @__PURE__ */ l.jsx(
|
|
34733
34733
|
"span",
|
|
34734
34734
|
{
|
|
34735
34735
|
className: `px-2 py-0.5 min-w-[20px] h-5 \r
|
|
@@ -34739,50 +34739,50 @@ const Be = zD, b = ({
|
|
|
34739
34739
|
backgroundColor: "#6D3856",
|
|
34740
34740
|
borderRadius: "12px"
|
|
34741
34741
|
},
|
|
34742
|
-
children:
|
|
34742
|
+
children: d.inicio > 9 ? "9+" : d.inicio
|
|
34743
34743
|
}
|
|
34744
34744
|
)
|
|
34745
34745
|
]
|
|
34746
34746
|
}
|
|
34747
34747
|
) }),
|
|
34748
|
-
a.map((
|
|
34748
|
+
a.map((L, F) => /* @__PURE__ */ l.jsxs("div", { className: "mb-6", children: [
|
|
34749
34749
|
/* @__PURE__ */ l.jsx("div", { className: "px-4 mb-2", children: /* @__PURE__ */ l.jsx(
|
|
34750
34750
|
x,
|
|
34751
34751
|
{
|
|
34752
34752
|
variant: "body-sm",
|
|
34753
34753
|
className: "color-gray-500 uppercase font-medium tracking-wider",
|
|
34754
|
-
children:
|
|
34754
|
+
children: L.title
|
|
34755
34755
|
}
|
|
34756
34756
|
) }),
|
|
34757
|
-
/* @__PURE__ */ l.jsx("div", { className: "space-y-1", children:
|
|
34757
|
+
/* @__PURE__ */ l.jsx("div", { className: "space-y-1", children: L.items.map(($) => /* @__PURE__ */ l.jsx("div", { className: "px-4", children: /* @__PURE__ */ l.jsxs(
|
|
34758
34758
|
"button",
|
|
34759
34759
|
{
|
|
34760
34760
|
onClick: () => {
|
|
34761
|
-
t && t(
|
|
34761
|
+
t && t($.id), A();
|
|
34762
34762
|
},
|
|
34763
|
-
className: `w-full flex items-center cursor-pointer px-4 justify-between py-2.5 rounded-lg transition-all duration-200 ${r ===
|
|
34764
|
-
style: r ===
|
|
34763
|
+
className: `w-full flex items-center cursor-pointer px-4 justify-between py-2.5 rounded-lg transition-all duration-200 ${r === $.id ? "" : "color-gray-700 hover:bg-gray-100"}`,
|
|
34764
|
+
style: r === $.id ? { backgroundColor: "#2D5C63" } : {},
|
|
34765
34765
|
children: [
|
|
34766
34766
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center", children: [
|
|
34767
34767
|
/* @__PURE__ */ l.jsx(
|
|
34768
34768
|
b,
|
|
34769
34769
|
{
|
|
34770
|
-
name:
|
|
34770
|
+
name: $.icon,
|
|
34771
34771
|
variant: "24-outline",
|
|
34772
34772
|
size: 20,
|
|
34773
|
-
className: `mr-3 ${r ===
|
|
34773
|
+
className: `mr-3 ${r === $.id ? "color-white" : "color-gray-700"}`
|
|
34774
34774
|
}
|
|
34775
34775
|
),
|
|
34776
34776
|
/* @__PURE__ */ l.jsx(
|
|
34777
34777
|
x,
|
|
34778
34778
|
{
|
|
34779
34779
|
variant: "body-md",
|
|
34780
|
-
className: `font-medium ${r ===
|
|
34781
|
-
children:
|
|
34780
|
+
className: `font-medium ${r === $.id ? "color-white" : "color-gray-700"}`,
|
|
34781
|
+
children: $.label
|
|
34782
34782
|
}
|
|
34783
34783
|
)
|
|
34784
34784
|
] }),
|
|
34785
|
-
(
|
|
34785
|
+
(d[$.id] !== void 0 && d[$.id] > 0 || $.id === "empleados" && 2) && /* @__PURE__ */ l.jsx(
|
|
34786
34786
|
"span",
|
|
34787
34787
|
{
|
|
34788
34788
|
className: `px-2 py-0.5 min-w-[20px] h-5 \r
|
|
@@ -34792,13 +34792,13 @@ const Be = zD, b = ({
|
|
|
34792
34792
|
backgroundColor: "#6D3856",
|
|
34793
34793
|
borderRadius: "12px"
|
|
34794
34794
|
},
|
|
34795
|
-
children:
|
|
34795
|
+
children: $.id === "empleados" ? 2 : d[$.id] > 9 ? "9+" : d[$.id]
|
|
34796
34796
|
}
|
|
34797
34797
|
)
|
|
34798
34798
|
]
|
|
34799
34799
|
}
|
|
34800
|
-
) },
|
|
34801
|
-
] },
|
|
34800
|
+
) }, $.id)) })
|
|
34801
|
+
] }, F))
|
|
34802
34802
|
] })
|
|
34803
34803
|
] })
|
|
34804
34804
|
}
|
|
@@ -34811,27 +34811,27 @@ const Be = zD, b = ({
|
|
|
34811
34811
|
notificationCount: n = 0,
|
|
34812
34812
|
onSearch: c,
|
|
34813
34813
|
onNotificationClick: u,
|
|
34814
|
-
onUserClick:
|
|
34815
|
-
sidebarSections:
|
|
34814
|
+
onUserClick: d,
|
|
34815
|
+
sidebarSections: s,
|
|
34816
34816
|
sidebarActiveItem: i,
|
|
34817
34817
|
onSidebarItemClick: f,
|
|
34818
34818
|
sidebarItemBadges: w,
|
|
34819
|
-
sidebarCompanyName:
|
|
34820
|
-
sidebarCompanyLogo:
|
|
34819
|
+
sidebarCompanyName: g,
|
|
34820
|
+
sidebarCompanyLogo: p,
|
|
34821
34821
|
mobileBackgroundColor: h = Oe,
|
|
34822
|
-
className:
|
|
34822
|
+
className: M = "",
|
|
34823
34823
|
...y
|
|
34824
34824
|
}) => {
|
|
34825
|
-
const [
|
|
34826
|
-
const
|
|
34827
|
-
R(
|
|
34828
|
-
},
|
|
34829
|
-
|
|
34830
|
-
},
|
|
34831
|
-
f && f(
|
|
34832
|
-
},
|
|
34833
|
-
|
|
34834
|
-
},
|
|
34825
|
+
const [A, R] = S(""), [v, L] = S(!1), F = (W) => {
|
|
34826
|
+
const O = W.target.value;
|
|
34827
|
+
R(O), c && c(O);
|
|
34828
|
+
}, $ = (W) => {
|
|
34829
|
+
W.preventDefault(), c && c(A);
|
|
34830
|
+
}, k = (W) => {
|
|
34831
|
+
f && f(W), L(!1);
|
|
34832
|
+
}, Q = () => {
|
|
34833
|
+
L(!1);
|
|
34834
|
+
}, P = (W) => W > 9 ? "9+" : W;
|
|
34835
34835
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
34836
34836
|
/* @__PURE__ */ l.jsx("style", { children: `
|
|
34837
34837
|
.header-point-container {
|
|
@@ -35029,18 +35029,18 @@ const Be = zD, b = ({
|
|
|
35029
35029
|
/* @__PURE__ */ l.jsxs(
|
|
35030
35030
|
"header",
|
|
35031
35031
|
{
|
|
35032
|
-
className: `bg-white header-point-mobile rounded-12 header-point-container ${
|
|
35032
|
+
className: `bg-white header-point-mobile rounded-12 header-point-container ${M}`,
|
|
35033
35033
|
...y,
|
|
35034
35034
|
children: [
|
|
35035
35035
|
/* @__PURE__ */ l.jsxs("div", { className: "w-full", style: { paddingLeft: "4px", paddingRight: "4px" }, children: [
|
|
35036
35036
|
/* @__PURE__ */ l.jsxs("div", { className: "header-desktop-layout flex items-center justify-between", style: { height: xe, padding: "16px" }, children: [
|
|
35037
|
-
/* @__PURE__ */ l.jsx("div", { className: "header-search-wrapper", style: { marginRight: "16px" }, children: /* @__PURE__ */ l.jsxs("form", { onSubmit:
|
|
35037
|
+
/* @__PURE__ */ l.jsx("div", { className: "header-search-wrapper", style: { marginRight: "16px" }, children: /* @__PURE__ */ l.jsxs("form", { onSubmit: $, className: "header-search-form flex items-center w-full", children: [
|
|
35038
35038
|
/* @__PURE__ */ l.jsx(
|
|
35039
35039
|
"input",
|
|
35040
35040
|
{
|
|
35041
35041
|
type: "text",
|
|
35042
|
-
value:
|
|
35043
|
-
onChange:
|
|
35042
|
+
value: A,
|
|
35043
|
+
onChange: F,
|
|
35044
35044
|
placeholder: a,
|
|
35045
35045
|
className: "header-search-input flex-1 pl-2 md:pl-4 pr-2 md:pr-4 py-2 md:py-2.5 bg-white border border-gray-400 rounded-l-lg focus:outline-none text-sm md:text-base",
|
|
35046
35046
|
style: {
|
|
@@ -35091,14 +35091,14 @@ const Be = zD, b = ({
|
|
|
35091
35091
|
className: "color-gray-600"
|
|
35092
35092
|
}
|
|
35093
35093
|
),
|
|
35094
|
-
n > 0 && /* @__PURE__ */ l.jsx("span", { className: "absolute -top-1 -right-1 px-1.5 py-0.5 min-w-[20px] h-5 text-white rounded-full flex items-center justify-center text-body-sm font-medium header-notification-badge", children:
|
|
35094
|
+
n > 0 && /* @__PURE__ */ l.jsx("span", { className: "absolute -top-1 -right-1 px-1.5 py-0.5 min-w-[20px] h-5 text-white rounded-full flex items-center justify-center text-body-sm font-medium header-notification-badge", children: P(n) })
|
|
35095
35095
|
]
|
|
35096
35096
|
}
|
|
35097
35097
|
),
|
|
35098
35098
|
r && /* @__PURE__ */ l.jsxs(
|
|
35099
35099
|
"button",
|
|
35100
35100
|
{
|
|
35101
|
-
onClick:
|
|
35101
|
+
onClick: d,
|
|
35102
35102
|
className: "flex items-center gap-3 hover:bg-gray-50 rounded-lg px-2 py-1.5 transition-colors",
|
|
35103
35103
|
"aria-label": "Perfil de usuario",
|
|
35104
35104
|
children: [
|
|
@@ -35138,7 +35138,7 @@ const Be = zD, b = ({
|
|
|
35138
35138
|
/* @__PURE__ */ l.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ l.jsx(
|
|
35139
35139
|
"button",
|
|
35140
35140
|
{
|
|
35141
|
-
onClick: () =>
|
|
35141
|
+
onClick: () => L(!0),
|
|
35142
35142
|
className: "p-2 hover:bg-gray-100 rounded-lg transition-colors header-mobile-menu-button cursor-pointer",
|
|
35143
35143
|
"aria-label": "Menú",
|
|
35144
35144
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -35176,18 +35176,18 @@ const Be = zD, b = ({
|
|
|
35176
35176
|
className: "header-mobile-notification-icon"
|
|
35177
35177
|
}
|
|
35178
35178
|
),
|
|
35179
|
-
n > 0 && /* @__PURE__ */ l.jsx("span", { className: "absolute -top-1 -right-1 px-1.5 py-0.5 min-w-[20px] h-5 text-white rounded-full flex items-center justify-center text-body-sm font-medium header-notification-badge", children:
|
|
35179
|
+
n > 0 && /* @__PURE__ */ l.jsx("span", { className: "absolute -top-1 -right-1 px-1.5 py-0.5 min-w-[20px] h-5 text-white rounded-full flex items-center justify-center text-body-sm font-medium header-notification-badge", children: P(n) })
|
|
35180
35180
|
]
|
|
35181
35181
|
}
|
|
35182
35182
|
) })
|
|
35183
35183
|
] }),
|
|
35184
|
-
/* @__PURE__ */ l.jsx("div", { className: "header-mobile-search-row", children: /* @__PURE__ */ l.jsxs("form", { onSubmit:
|
|
35184
|
+
/* @__PURE__ */ l.jsx("div", { className: "header-mobile-search-row", children: /* @__PURE__ */ l.jsxs("form", { onSubmit: $, className: "header-search-form flex items-center w-full", children: [
|
|
35185
35185
|
/* @__PURE__ */ l.jsx(
|
|
35186
35186
|
"input",
|
|
35187
35187
|
{
|
|
35188
35188
|
type: "text",
|
|
35189
|
-
value:
|
|
35190
|
-
onChange:
|
|
35189
|
+
value: A,
|
|
35190
|
+
onChange: F,
|
|
35191
35191
|
placeholder: a,
|
|
35192
35192
|
className: "header-search-input flex-1 pl-3 pr-3 py-2 bg-white border border-gray-400 rounded-l-lg focus:outline-none text-sm",
|
|
35193
35193
|
style: {
|
|
@@ -35225,14 +35225,14 @@ const Be = zD, b = ({
|
|
|
35225
35225
|
v && /* @__PURE__ */ l.jsx("div", { className: "header-mobile-sidebar-wrapper", children: /* @__PURE__ */ l.jsx(
|
|
35226
35226
|
eN,
|
|
35227
35227
|
{
|
|
35228
|
-
sections:
|
|
35228
|
+
sections: s,
|
|
35229
35229
|
activeItem: i,
|
|
35230
|
-
onItemClick:
|
|
35230
|
+
onItemClick: k,
|
|
35231
35231
|
itemBadges: w,
|
|
35232
|
-
companyName:
|
|
35233
|
-
companyLogo:
|
|
35232
|
+
companyName: g,
|
|
35233
|
+
companyLogo: p,
|
|
35234
35234
|
isOpen: v,
|
|
35235
|
-
onClose:
|
|
35235
|
+
onClose: Q
|
|
35236
35236
|
}
|
|
35237
35237
|
) })
|
|
35238
35238
|
]
|
|
@@ -35249,18 +35249,18 @@ const Be = zD, b = ({
|
|
|
35249
35249
|
],
|
|
35250
35250
|
currentLanguageCode: c = "es-AR",
|
|
35251
35251
|
onLanguageChange: u,
|
|
35252
|
-
className:
|
|
35253
|
-
...
|
|
35252
|
+
className: d = "",
|
|
35253
|
+
...s
|
|
35254
35254
|
}) => {
|
|
35255
|
-
const [i, f] = S(!1), [w,
|
|
35255
|
+
const [i, f] = S(!1), [w, g] = S(null), [p, h] = S(!1), M = a === "login", y = n.find((R) => R.code === c) || n[0], A = (R) => {
|
|
35256
35256
|
u && u(R), f(!1);
|
|
35257
35257
|
};
|
|
35258
|
-
return
|
|
35259
|
-
const { style: R, ...v } =
|
|
35258
|
+
return M ? (() => {
|
|
35259
|
+
const { style: R, ...v } = s;
|
|
35260
35260
|
return /* @__PURE__ */ l.jsxs(
|
|
35261
35261
|
"header",
|
|
35262
35262
|
{
|
|
35263
|
-
className: `w-full flex justify-between items-center bg-white ${
|
|
35263
|
+
className: `w-full flex justify-between items-center bg-white ${d}`,
|
|
35264
35264
|
style: {
|
|
35265
35265
|
boxShadow: "0px 2px 4px -1px #0000000F, 0px 4px 6px -1px #0000001A",
|
|
35266
35266
|
padding: "16px var(--mf-ds-grid-margin, 20px)",
|
|
@@ -35334,7 +35334,7 @@ const Be = zD, b = ({
|
|
|
35334
35334
|
gap: "8px",
|
|
35335
35335
|
borderRadius: "8px",
|
|
35336
35336
|
border: "1px solid #38656D",
|
|
35337
|
-
background:
|
|
35337
|
+
background: p ? "#F9FAFB" : "white",
|
|
35338
35338
|
opacity: 1,
|
|
35339
35339
|
color: "#374151"
|
|
35340
35340
|
},
|
|
@@ -35376,10 +35376,10 @@ const Be = zD, b = ({
|
|
|
35376
35376
|
flexDirection: "column",
|
|
35377
35377
|
gap: "8px"
|
|
35378
35378
|
},
|
|
35379
|
-
children: n.map((
|
|
35379
|
+
children: n.map((L) => /* @__PURE__ */ l.jsx(
|
|
35380
35380
|
"button",
|
|
35381
35381
|
{
|
|
35382
|
-
onClick: () =>
|
|
35382
|
+
onClick: () => A(L.code),
|
|
35383
35383
|
className: "w-full text-left transition-colors",
|
|
35384
35384
|
style: {
|
|
35385
35385
|
width: "200px",
|
|
@@ -35388,8 +35388,8 @@ const Be = zD, b = ({
|
|
|
35388
35388
|
border: "none",
|
|
35389
35389
|
background: "transparent"
|
|
35390
35390
|
},
|
|
35391
|
-
onMouseEnter: () =>
|
|
35392
|
-
onMouseLeave: () =>
|
|
35391
|
+
onMouseEnter: () => g(L.code),
|
|
35392
|
+
onMouseLeave: () => g(null),
|
|
35393
35393
|
children: /* @__PURE__ */ l.jsxs(
|
|
35394
35394
|
"div",
|
|
35395
35395
|
{
|
|
@@ -35402,8 +35402,8 @@ const Be = zD, b = ({
|
|
|
35402
35402
|
alignItems: "center",
|
|
35403
35403
|
justifyContent: "space-between",
|
|
35404
35404
|
gap: "16px",
|
|
35405
|
-
backgroundColor: y.code ===
|
|
35406
|
-
color: y.code ===
|
|
35405
|
+
backgroundColor: y.code === L.code ? "#6D3856" : w === L.code ? "#DDDDDD" : "transparent",
|
|
35406
|
+
color: y.code === L.code ? "#FFFFFF" : void 0
|
|
35407
35407
|
},
|
|
35408
35408
|
children: [
|
|
35409
35409
|
/* @__PURE__ */ l.jsx(
|
|
@@ -35420,10 +35420,10 @@ const Be = zD, b = ({
|
|
|
35420
35420
|
height: "24px",
|
|
35421
35421
|
opacity: 1
|
|
35422
35422
|
},
|
|
35423
|
-
children:
|
|
35423
|
+
children: L.name
|
|
35424
35424
|
}
|
|
35425
35425
|
),
|
|
35426
|
-
y.code ===
|
|
35426
|
+
y.code === L.code && /* @__PURE__ */ l.jsx(
|
|
35427
35427
|
"div",
|
|
35428
35428
|
{
|
|
35429
35429
|
style: {
|
|
@@ -35450,7 +35450,7 @@ const Be = zD, b = ({
|
|
|
35450
35450
|
}
|
|
35451
35451
|
)
|
|
35452
35452
|
},
|
|
35453
|
-
|
|
35453
|
+
L.code
|
|
35454
35454
|
))
|
|
35455
35455
|
}
|
|
35456
35456
|
)
|
|
@@ -35459,7 +35459,7 @@ const Be = zD, b = ({
|
|
|
35459
35459
|
]
|
|
35460
35460
|
}
|
|
35461
35461
|
);
|
|
35462
|
-
})() : /* @__PURE__ */ l.jsxs("header", { className: `w-full flex justify-between items-center bg-white ${
|
|
35462
|
+
})() : /* @__PURE__ */ l.jsxs("header", { className: `w-full flex justify-between items-center bg-white ${d}`, style: { paddingTop: "4px", paddingBottom: "4px", paddingLeft: "8px", paddingRight: "12px" }, ...s, children: [
|
|
35463
35463
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
35464
35464
|
/* @__PURE__ */ l.jsx(ie, { width: 32, height: 36 }),
|
|
35465
35465
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center", style: { gap: "4px" }, children: [
|
|
@@ -35500,7 +35500,7 @@ const Be = zD, b = ({
|
|
|
35500
35500
|
/* @__PURE__ */ l.jsx("div", { className: "absolute right-0 mt-2 w-40 bg-white rounded-lg shadow-lg z-20 py-1", style: { border: "1px solid #2D5C63" }, children: n.map((R) => /* @__PURE__ */ l.jsx(
|
|
35501
35501
|
"button",
|
|
35502
35502
|
{
|
|
35503
|
-
onClick: () =>
|
|
35503
|
+
onClick: () => A(R.code),
|
|
35504
35504
|
className: `w-full text-left px-4 py-2 text-body-md hover:bg-gray-50 transition-colors ${y.code === R.code ? "bg-gray-50 color-brand font-medium" : "color-gray-700"}`,
|
|
35505
35505
|
children: R.name
|
|
35506
35506
|
},
|
|
@@ -35516,29 +35516,29 @@ const Be = zD, b = ({
|
|
|
35516
35516
|
notificationCount: n = 0,
|
|
35517
35517
|
onSearch: c,
|
|
35518
35518
|
onNotificationClick: u,
|
|
35519
|
-
onUserClick:
|
|
35519
|
+
onUserClick: d,
|
|
35520
35520
|
// Borde inferior (subrayado)
|
|
35521
|
-
showBottomBorder:
|
|
35521
|
+
showBottomBorder: s = !1,
|
|
35522
35522
|
bottomBorderClassName: i = "border-b border-gray-200",
|
|
35523
35523
|
// Overrides de estilo/clases para poder ajustar layout desde el proyecto consumidor
|
|
35524
35524
|
desktopLayoutClassName: f = "",
|
|
35525
35525
|
desktopLayoutStyle: w,
|
|
35526
|
-
desktopSearchContainerClassName:
|
|
35527
|
-
desktopSearchContainerStyle:
|
|
35526
|
+
desktopSearchContainerClassName: g = "",
|
|
35527
|
+
desktopSearchContainerStyle: p,
|
|
35528
35528
|
className: h = "",
|
|
35529
|
-
...
|
|
35529
|
+
...M
|
|
35530
35530
|
}) => {
|
|
35531
|
-
const [y,
|
|
35532
|
-
const
|
|
35533
|
-
|
|
35534
|
-
},
|
|
35535
|
-
|
|
35531
|
+
const [y, A] = S(""), R = (F) => F > 9 ? "9+" : F, v = (F) => {
|
|
35532
|
+
const $ = F.target.value;
|
|
35533
|
+
A($), c && c($);
|
|
35534
|
+
}, L = (F) => {
|
|
35535
|
+
F.preventDefault(), c && c(y);
|
|
35536
35536
|
};
|
|
35537
35537
|
return /* @__PURE__ */ l.jsxs(
|
|
35538
35538
|
"header",
|
|
35539
35539
|
{
|
|
35540
|
-
className: `bg-white ${
|
|
35541
|
-
...
|
|
35540
|
+
className: `bg-white ${s ? i : ""} ${h}`,
|
|
35541
|
+
...M,
|
|
35542
35542
|
children: [
|
|
35543
35543
|
/* @__PURE__ */ l.jsx("style", { children: `
|
|
35544
35544
|
.header-search-input {
|
|
@@ -35576,9 +35576,9 @@ const Be = zD, b = ({
|
|
|
35576
35576
|
/* @__PURE__ */ l.jsx(
|
|
35577
35577
|
"div",
|
|
35578
35578
|
{
|
|
35579
|
-
className: `flex-1 mr-2 md:mr-4 ${
|
|
35580
|
-
style: { maxWidth: "none", minWidth: "0", ...
|
|
35581
|
-
children: /* @__PURE__ */ l.jsxs("form", { onSubmit:
|
|
35579
|
+
className: `flex-1 mr-2 md:mr-4 ${g}`,
|
|
35580
|
+
style: { maxWidth: "none", minWidth: "0", ...p || {} },
|
|
35581
|
+
children: /* @__PURE__ */ l.jsxs("form", { onSubmit: L, className: "header-search-form flex items-center w-full", children: [
|
|
35582
35582
|
/* @__PURE__ */ l.jsx(
|
|
35583
35583
|
"input",
|
|
35584
35584
|
{
|
|
@@ -35651,7 +35651,7 @@ const Be = zD, b = ({
|
|
|
35651
35651
|
r && /* @__PURE__ */ l.jsxs(
|
|
35652
35652
|
"button",
|
|
35653
35653
|
{
|
|
35654
|
-
onClick:
|
|
35654
|
+
onClick: d,
|
|
35655
35655
|
className: "flex items-center gap-3 hover:bg-gray-50 rounded-lg px-2 py-1.5 transition-colors",
|
|
35656
35656
|
"aria-label": "Perfil de usuario",
|
|
35657
35657
|
children: [
|
|
@@ -35703,9 +35703,9 @@ const Be = zD, b = ({
|
|
|
35703
35703
|
className: n = "",
|
|
35704
35704
|
...c
|
|
35705
35705
|
}) => {
|
|
35706
|
-
const u = (
|
|
35707
|
-
t && t(
|
|
35708
|
-
},
|
|
35706
|
+
const u = (s) => {
|
|
35707
|
+
t && t(s);
|
|
35708
|
+
}, d = (s) => s ? `${X0} ${X0} 0 0` : "0";
|
|
35709
35709
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
35710
35710
|
/* @__PURE__ */ l.jsx("style", { children: `
|
|
35711
35711
|
.nav-point {
|
|
@@ -35759,22 +35759,22 @@ const Be = zD, b = ({
|
|
|
35759
35759
|
height: le
|
|
35760
35760
|
},
|
|
35761
35761
|
...c,
|
|
35762
|
-
children: /* @__PURE__ */ l.jsx("div", { className: "flex items-stretch h-full", style: { overflow: "hidden" }, children: a.map((
|
|
35763
|
-
const f = r ===
|
|
35762
|
+
children: /* @__PURE__ */ l.jsx("div", { className: "flex items-stretch h-full", style: { overflow: "hidden" }, children: a.map((s, i) => {
|
|
35763
|
+
const f = r === s.id;
|
|
35764
35764
|
return /* @__PURE__ */ l.jsxs(
|
|
35765
35765
|
"button",
|
|
35766
35766
|
{
|
|
35767
|
-
onClick: () => u(
|
|
35767
|
+
onClick: () => u(s.id),
|
|
35768
35768
|
className: "flex flex-col items-center justify-center px-4 py-3 transition-colors duration-200 cursor-pointer flex-1 relative nav-point-item",
|
|
35769
35769
|
style: {
|
|
35770
35770
|
backgroundColor: f ? wN : "transparent",
|
|
35771
|
-
borderRadius:
|
|
35771
|
+
borderRadius: d(f)
|
|
35772
35772
|
},
|
|
35773
35773
|
children: [
|
|
35774
35774
|
/* @__PURE__ */ l.jsx(
|
|
35775
35775
|
b,
|
|
35776
35776
|
{
|
|
35777
|
-
name:
|
|
35777
|
+
name: s.icon,
|
|
35778
35778
|
variant: "24-outline",
|
|
35779
35779
|
size: sN,
|
|
35780
35780
|
style: { color: f ? uN : fN }
|
|
@@ -35792,12 +35792,12 @@ const Be = zD, b = ({
|
|
|
35792
35792
|
textOverflow: "ellipsis",
|
|
35793
35793
|
width: "100%"
|
|
35794
35794
|
},
|
|
35795
|
-
children:
|
|
35795
|
+
children: s.label
|
|
35796
35796
|
}
|
|
35797
35797
|
)
|
|
35798
35798
|
]
|
|
35799
35799
|
},
|
|
35800
|
-
|
|
35800
|
+
s.id
|
|
35801
35801
|
);
|
|
35802
35802
|
}) })
|
|
35803
35803
|
}
|
|
@@ -35810,8 +35810,8 @@ const Be = zD, b = ({
|
|
|
35810
35810
|
children: n,
|
|
35811
35811
|
footer: c,
|
|
35812
35812
|
size: u = "medium",
|
|
35813
|
-
showCloseButton:
|
|
35814
|
-
className:
|
|
35813
|
+
showCloseButton: d = !0,
|
|
35814
|
+
className: s = "",
|
|
35815
35815
|
...i
|
|
35816
35816
|
}) => {
|
|
35817
35817
|
if (Z0(() => (a ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
@@ -35841,12 +35841,12 @@ const Be = zD, b = ({
|
|
|
35841
35841
|
/* @__PURE__ */ l.jsxs(
|
|
35842
35842
|
"div",
|
|
35843
35843
|
{
|
|
35844
|
-
className: `inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle w-full ${f[u]} ${
|
|
35844
|
+
className: `inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle w-full ${f[u]} ${s}`,
|
|
35845
35845
|
onClick: (w) => w.stopPropagation(),
|
|
35846
35846
|
children: [
|
|
35847
35847
|
t && /* @__PURE__ */ l.jsxs("div", { className: "px-6 py-4 border-b border-gray-200 flex items-center justify-between", children: [
|
|
35848
35848
|
/* @__PURE__ */ l.jsx("h3", { className: "text-lg font-semibold text-gray-900", children: t }),
|
|
35849
|
-
|
|
35849
|
+
d && /* @__PURE__ */ l.jsx(
|
|
35850
35850
|
"button",
|
|
35851
35851
|
{
|
|
35852
35852
|
onClick: r,
|
|
@@ -35871,27 +35871,27 @@ const Be = zD, b = ({
|
|
|
35871
35871
|
className: c = "",
|
|
35872
35872
|
...u
|
|
35873
35873
|
}) => {
|
|
35874
|
-
const [
|
|
35875
|
-
|
|
35874
|
+
const [d, s] = S(r), i = (w) => {
|
|
35875
|
+
s(w), t && t(w);
|
|
35876
35876
|
}, f = {
|
|
35877
35877
|
default: "border-blue-500 text-blue-600",
|
|
35878
35878
|
underline: "border-blue-500 text-blue-600 border-b-2"
|
|
35879
35879
|
};
|
|
35880
35880
|
return a.length === 0 ? null : /* @__PURE__ */ l.jsxs("div", { className: c, ...u, children: [
|
|
35881
|
-
/* @__PURE__ */ l.jsx("div", { className: "border-b border-gray-200", children: /* @__PURE__ */ l.jsx("nav", { className: "flex -mb-px space-x-8", "aria-label": "Tabs", children: a.map((w,
|
|
35881
|
+
/* @__PURE__ */ l.jsx("div", { className: "border-b border-gray-200", children: /* @__PURE__ */ l.jsx("nav", { className: "flex -mb-px space-x-8", "aria-label": "Tabs", children: a.map((w, g) => /* @__PURE__ */ l.jsx(
|
|
35882
35882
|
"button",
|
|
35883
35883
|
{
|
|
35884
|
-
onClick: () => i(
|
|
35884
|
+
onClick: () => i(g),
|
|
35885
35885
|
className: `
|
|
35886
35886
|
whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm
|
|
35887
35887
|
transition-colors
|
|
35888
|
-
${
|
|
35888
|
+
${d === g ? f[n] : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}
|
|
35889
35889
|
`,
|
|
35890
35890
|
children: w.label
|
|
35891
35891
|
},
|
|
35892
|
-
|
|
35892
|
+
g
|
|
35893
35893
|
)) }) }),
|
|
35894
|
-
/* @__PURE__ */ l.jsx("div", { className: "mt-4", children: a[
|
|
35894
|
+
/* @__PURE__ */ l.jsx("div", { className: "mt-4", children: a[d]?.content })
|
|
35895
35895
|
] });
|
|
35896
35896
|
}, cP = ({
|
|
35897
35897
|
items: a = [],
|
|
@@ -35900,8 +35900,8 @@ const Be = zD, b = ({
|
|
|
35900
35900
|
className: n = "",
|
|
35901
35901
|
...c
|
|
35902
35902
|
}) => {
|
|
35903
|
-
const [u,
|
|
35904
|
-
|
|
35903
|
+
const [u, d] = S(t), s = (i) => {
|
|
35904
|
+
d(
|
|
35905
35905
|
r ? (f) => f.includes(i) ? f.filter((w) => w !== i) : [...f, i] : (f) => f.includes(i) ? [] : [i]
|
|
35906
35906
|
);
|
|
35907
35907
|
};
|
|
@@ -35911,7 +35911,7 @@ const Be = zD, b = ({
|
|
|
35911
35911
|
/* @__PURE__ */ l.jsxs(
|
|
35912
35912
|
"button",
|
|
35913
35913
|
{
|
|
35914
|
-
onClick: () =>
|
|
35914
|
+
onClick: () => s(f),
|
|
35915
35915
|
className: "w-full px-4 py-3 flex items-center justify-between bg-white hover:bg-gray-50 transition-colors",
|
|
35916
35916
|
children: [
|
|
35917
35917
|
/* @__PURE__ */ l.jsx("span", { className: "font-medium text-gray-900", children: i.title }),
|
|
@@ -35934,10 +35934,10 @@ const Be = zD, b = ({
|
|
|
35934
35934
|
className: t = "",
|
|
35935
35935
|
...n
|
|
35936
35936
|
}) => a.length === 0 ? null : /* @__PURE__ */ l.jsx("nav", { className: t, "aria-label": "Breadcrumb", ...n, children: /* @__PURE__ */ l.jsx("ol", { className: "flex items-center space-x-2", children: a.map((c, u) => {
|
|
35937
|
-
const
|
|
35937
|
+
const d = u === a.length - 1;
|
|
35938
35938
|
return /* @__PURE__ */ l.jsxs("li", { className: "flex items-center", children: [
|
|
35939
35939
|
u > 0 && /* @__PURE__ */ l.jsx("span", { className: "mx-2 text-gray-400", children: r === "icon" ? /* @__PURE__ */ l.jsx(b, { name: "ChevronRightIcon", className: "h-4 w-4" }) : r }),
|
|
35940
|
-
|
|
35940
|
+
d ? /* @__PURE__ */ l.jsx("span", { className: "text-gray-500 font-medium", "aria-current": "page", children: c.label }) : /* @__PURE__ */ l.jsx(
|
|
35941
35941
|
"a",
|
|
35942
35942
|
{
|
|
35943
35943
|
href: c.href || "#",
|
|
@@ -35955,9 +35955,9 @@ const Be = zD, b = ({
|
|
|
35955
35955
|
className: c = "",
|
|
35956
35956
|
...u
|
|
35957
35957
|
}) => {
|
|
35958
|
-
const
|
|
35958
|
+
const d = (i) => {
|
|
35959
35959
|
i >= 1 && i <= r && i !== a && t && t(i);
|
|
35960
|
-
},
|
|
35960
|
+
}, s = () => {
|
|
35961
35961
|
const i = [];
|
|
35962
35962
|
if (r <= 5)
|
|
35963
35963
|
for (let w = 1; w <= r; w++)
|
|
@@ -35979,7 +35979,7 @@ const Be = zD, b = ({
|
|
|
35979
35979
|
{
|
|
35980
35980
|
variant: "outline",
|
|
35981
35981
|
size: "small",
|
|
35982
|
-
onClick: () =>
|
|
35982
|
+
onClick: () => d(1),
|
|
35983
35983
|
disabled: a === 1,
|
|
35984
35984
|
children: /* @__PURE__ */ l.jsx("svg", { className: "h-4 w-4", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ l.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M18.75 19.5l-7.5-7.5 7.5-7.5m-6 15L5.25 12l7.5-7.5" }) })
|
|
35985
35985
|
}
|
|
@@ -35989,17 +35989,17 @@ const Be = zD, b = ({
|
|
|
35989
35989
|
{
|
|
35990
35990
|
variant: "outline",
|
|
35991
35991
|
size: "small",
|
|
35992
|
-
onClick: () =>
|
|
35992
|
+
onClick: () => d(a - 1),
|
|
35993
35993
|
disabled: a === 1,
|
|
35994
35994
|
children: /* @__PURE__ */ l.jsx(b, { name: "ChevronLeftIcon", className: "h-4 w-4" })
|
|
35995
35995
|
}
|
|
35996
35996
|
),
|
|
35997
|
-
|
|
35997
|
+
s().map((i) => /* @__PURE__ */ l.jsx(
|
|
35998
35998
|
m0,
|
|
35999
35999
|
{
|
|
36000
36000
|
variant: a === i ? "primary" : "outline",
|
|
36001
36001
|
size: "small",
|
|
36002
|
-
onClick: () =>
|
|
36002
|
+
onClick: () => d(i),
|
|
36003
36003
|
children: i
|
|
36004
36004
|
},
|
|
36005
36005
|
i
|
|
@@ -36009,7 +36009,7 @@ const Be = zD, b = ({
|
|
|
36009
36009
|
{
|
|
36010
36010
|
variant: "outline",
|
|
36011
36011
|
size: "small",
|
|
36012
|
-
onClick: () =>
|
|
36012
|
+
onClick: () => d(a + 1),
|
|
36013
36013
|
disabled: a === r,
|
|
36014
36014
|
children: /* @__PURE__ */ l.jsx(b, { name: "ChevronRightIcon", className: "h-4 w-4" })
|
|
36015
36015
|
}
|
|
@@ -36019,7 +36019,7 @@ const Be = zD, b = ({
|
|
|
36019
36019
|
{
|
|
36020
36020
|
variant: "outline",
|
|
36021
36021
|
size: "small",
|
|
36022
|
-
onClick: () =>
|
|
36022
|
+
onClick: () => d(r),
|
|
36023
36023
|
disabled: a === r,
|
|
36024
36024
|
children: /* @__PURE__ */ l.jsx("svg", { className: "h-4 w-4", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ l.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5.25 4.5l7.5 7.5-7.5 7.5m6-15l7.5 7.5-7.5 7.5" }) })
|
|
36025
36025
|
}
|
|
@@ -36032,8 +36032,8 @@ const Be = zD, b = ({
|
|
|
36032
36032
|
children: n,
|
|
36033
36033
|
position: c = "right",
|
|
36034
36034
|
size: u = "medium",
|
|
36035
|
-
showCloseButton:
|
|
36036
|
-
className:
|
|
36035
|
+
showCloseButton: d = !0,
|
|
36036
|
+
className: s = "",
|
|
36037
36037
|
...i
|
|
36038
36038
|
}) => {
|
|
36039
36039
|
if (Z0(() => (a ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
@@ -36061,12 +36061,12 @@ const Be = zD, b = ({
|
|
|
36061
36061
|
/* @__PURE__ */ l.jsxs(
|
|
36062
36062
|
"div",
|
|
36063
36063
|
{
|
|
36064
|
-
className: `fixed z-50 bg-white shadow-xl ${f[c]} ${w[u]} ${
|
|
36064
|
+
className: `fixed z-50 bg-white shadow-xl ${f[c]} ${w[u]} ${s}`,
|
|
36065
36065
|
...i,
|
|
36066
36066
|
children: [
|
|
36067
36067
|
t && /* @__PURE__ */ l.jsxs("div", { className: "px-6 py-4 border-b border-gray-200 flex items-center justify-between", children: [
|
|
36068
36068
|
/* @__PURE__ */ l.jsx("h3", { className: "text-lg font-semibold text-gray-900", children: t }),
|
|
36069
|
-
|
|
36069
|
+
d && /* @__PURE__ */ l.jsx(
|
|
36070
36070
|
"button",
|
|
36071
36071
|
{
|
|
36072
36072
|
onClick: r,
|
|
@@ -36087,10 +36087,10 @@ const Be = zD, b = ({
|
|
|
36087
36087
|
className: n = "",
|
|
36088
36088
|
...c
|
|
36089
36089
|
}) => {
|
|
36090
|
-
const [u,
|
|
36090
|
+
const [u, d] = S(!1), s = Ze(null);
|
|
36091
36091
|
Z0(() => {
|
|
36092
36092
|
const f = (w) => {
|
|
36093
|
-
|
|
36093
|
+
s.current && !s.current.contains(w.target) && d(!1);
|
|
36094
36094
|
};
|
|
36095
36095
|
return u && document.addEventListener("mousedown", f), () => {
|
|
36096
36096
|
document.removeEventListener("mousedown", f);
|
|
@@ -36102,8 +36102,8 @@ const Be = zD, b = ({
|
|
|
36102
36102
|
"top-left": "bottom-full left-0 mb-1",
|
|
36103
36103
|
"top-right": "bottom-full right-0 mb-1"
|
|
36104
36104
|
};
|
|
36105
|
-
return /* @__PURE__ */ l.jsxs("div", { className: `relative inline-block ${n}`, ref:
|
|
36106
|
-
/* @__PURE__ */ l.jsx("div", { onClick: () =>
|
|
36105
|
+
return /* @__PURE__ */ l.jsxs("div", { className: `relative inline-block ${n}`, ref: s, ...c, children: [
|
|
36106
|
+
/* @__PURE__ */ l.jsx("div", { onClick: () => d(!u), children: a || /* @__PURE__ */ l.jsx("button", { className: "p-2 rounded-lg hover:bg-gray-100", children: /* @__PURE__ */ l.jsx("svg", { className: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ l.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 6.75a.75.75 0 110-1.5.75.75 0 010 1.5zM12 12.75a.75.75 0 110-1.5.75.75 0 010 1.5zM12 18.75a.75.75 0 110-1.5.75.75 0 010 1.5z" }) }) }) }),
|
|
36107
36107
|
u && /* @__PURE__ */ l.jsx(
|
|
36108
36108
|
"div",
|
|
36109
36109
|
{
|
|
@@ -36112,7 +36112,7 @@ const Be = zD, b = ({
|
|
|
36112
36112
|
"button",
|
|
36113
36113
|
{
|
|
36114
36114
|
onClick: () => {
|
|
36115
|
-
f.onClick && f.onClick(),
|
|
36115
|
+
f.onClick && f.onClick(), d(!1);
|
|
36116
36116
|
},
|
|
36117
36117
|
className: `
|
|
36118
36118
|
w-full text-left px-4 py-2 text-sm
|
|
@@ -36136,8 +36136,8 @@ const Be = zD, b = ({
|
|
|
36136
36136
|
orientation: t = "horizontal",
|
|
36137
36137
|
className: n = "",
|
|
36138
36138
|
...c
|
|
36139
|
-
}) => a.length === 0 ? null : t === "vertical" ? /* @__PURE__ */ l.jsx("div", { className: n, ...c, children: /* @__PURE__ */ l.jsx("ol", { className: "space-y-4", children: a.map((u,
|
|
36140
|
-
const
|
|
36139
|
+
}) => a.length === 0 ? null : t === "vertical" ? /* @__PURE__ */ l.jsx("div", { className: n, ...c, children: /* @__PURE__ */ l.jsx("ol", { className: "space-y-4", children: a.map((u, d) => {
|
|
36140
|
+
const s = d === r, i = d < r;
|
|
36141
36141
|
return /* @__PURE__ */ l.jsxs("li", { className: "flex items-start", children: [
|
|
36142
36142
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center", children: [
|
|
36143
36143
|
/* @__PURE__ */ l.jsx(
|
|
@@ -36145,12 +36145,12 @@ const Be = zD, b = ({
|
|
|
36145
36145
|
{
|
|
36146
36146
|
className: `
|
|
36147
36147
|
flex items-center justify-center w-10 h-10 rounded-full border-2
|
|
36148
|
-
${i ? "bg-blue-600 border-blue-600 text-white" :
|
|
36148
|
+
${i ? "bg-blue-600 border-blue-600 text-white" : s ? "bg-blue-100 border-blue-600 text-blue-600" : "bg-white border-gray-300 text-gray-400"}
|
|
36149
36149
|
`,
|
|
36150
|
-
children: i ? /* @__PURE__ */ l.jsx(b, { name: "CheckCircleIcon", className: "h-6 w-6" }) : /* @__PURE__ */ l.jsx("span", { className: "font-medium", children:
|
|
36150
|
+
children: i ? /* @__PURE__ */ l.jsx(b, { name: "CheckCircleIcon", className: "h-6 w-6" }) : /* @__PURE__ */ l.jsx("span", { className: "font-medium", children: d + 1 })
|
|
36151
36151
|
}
|
|
36152
36152
|
),
|
|
36153
|
-
|
|
36153
|
+
d < a.length - 1 && /* @__PURE__ */ l.jsx(
|
|
36154
36154
|
"div",
|
|
36155
36155
|
{
|
|
36156
36156
|
className: `
|
|
@@ -36166,26 +36166,26 @@ const Be = zD, b = ({
|
|
|
36166
36166
|
{
|
|
36167
36167
|
className: `
|
|
36168
36168
|
text-sm font-medium
|
|
36169
|
-
${
|
|
36169
|
+
${s || i ? "text-gray-900" : "text-gray-400"}
|
|
36170
36170
|
`,
|
|
36171
36171
|
children: u.label
|
|
36172
36172
|
}
|
|
36173
36173
|
),
|
|
36174
36174
|
u.description && /* @__PURE__ */ l.jsx("p", { className: "text-sm text-gray-500 mt-1", children: u.description })
|
|
36175
36175
|
] })
|
|
36176
|
-
] },
|
|
36176
|
+
] }, d);
|
|
36177
36177
|
}) }) }) : /* @__PURE__ */ l.jsxs("div", { className: n, ...c, children: [
|
|
36178
|
-
/* @__PURE__ */ l.jsx("ol", { className: "flex items-center w-full", children: a.map((u,
|
|
36179
|
-
const
|
|
36178
|
+
/* @__PURE__ */ l.jsx("ol", { className: "flex items-center w-full", children: a.map((u, d) => {
|
|
36179
|
+
const s = d === r, i = d < r, f = d === a.length - 1;
|
|
36180
36180
|
return /* @__PURE__ */ l.jsx("li", { className: "flex items-center w-full", children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center", children: [
|
|
36181
36181
|
/* @__PURE__ */ l.jsx(
|
|
36182
36182
|
"div",
|
|
36183
36183
|
{
|
|
36184
36184
|
className: `
|
|
36185
36185
|
flex items-center justify-center w-10 h-10 rounded-full border-2
|
|
36186
|
-
${i ? "bg-blue-600 border-blue-600 text-white" :
|
|
36186
|
+
${i ? "bg-blue-600 border-blue-600 text-white" : s ? "bg-blue-100 border-blue-600 text-blue-600" : "bg-white border-gray-300 text-gray-400"}
|
|
36187
36187
|
`,
|
|
36188
|
-
children: i ? /* @__PURE__ */ l.jsx(b, { name: "CheckIcon", className: "h-6 w-6" }) : /* @__PURE__ */ l.jsx("span", { className: "font-medium", children:
|
|
36188
|
+
children: i ? /* @__PURE__ */ l.jsx(b, { name: "CheckIcon", className: "h-6 w-6" }) : /* @__PURE__ */ l.jsx("span", { className: "font-medium", children: d + 1 })
|
|
36189
36189
|
}
|
|
36190
36190
|
),
|
|
36191
36191
|
!f && /* @__PURE__ */ l.jsx(
|
|
@@ -36197,7 +36197,7 @@ const Be = zD, b = ({
|
|
|
36197
36197
|
`
|
|
36198
36198
|
}
|
|
36199
36199
|
)
|
|
36200
|
-
] }) },
|
|
36200
|
+
] }) }, d);
|
|
36201
36201
|
}) }),
|
|
36202
36202
|
a[r] && /* @__PURE__ */ l.jsxs("div", { className: "mt-6", children: [
|
|
36203
36203
|
/* @__PURE__ */ l.jsx("h3", { className: "text-lg font-semibold text-gray-900", children: a[r].label }),
|
|
@@ -36223,73 +36223,73 @@ const Be = zD, b = ({
|
|
|
36223
36223
|
// Prop para ocultar saludo y fecha manteniendo el alto
|
|
36224
36224
|
// Breadcrumb / inicio (arriba del saludo)
|
|
36225
36225
|
showInicio: u = !0,
|
|
36226
|
-
inicioText:
|
|
36227
|
-
showInicioIcon:
|
|
36226
|
+
inicioText: d = "Inicio",
|
|
36227
|
+
showInicioIcon: s = !0,
|
|
36228
36228
|
inicioIconName: i = "ChevronRightIcon",
|
|
36229
36229
|
inicioIconVariant: f = "20-solid",
|
|
36230
36230
|
// heroicons "mini"
|
|
36231
36231
|
inicioIconSize: w = 16,
|
|
36232
36232
|
// Responsive behavior (<= breakpoint): centrar saludo y ocultar el resto
|
|
36233
|
-
responsiveBreakpointPx:
|
|
36234
|
-
responsiveHideInicio:
|
|
36233
|
+
responsiveBreakpointPx: g = 1365,
|
|
36234
|
+
responsiveHideInicio: p = !0,
|
|
36235
36235
|
responsiveHideDate: h = !0,
|
|
36236
|
-
responsiveCenterGreeting:
|
|
36236
|
+
responsiveCenterGreeting: M = !0,
|
|
36237
36237
|
// Date formatting
|
|
36238
36238
|
locale: y = "es-AR",
|
|
36239
|
-
dateOptions:
|
|
36239
|
+
dateOptions: A = xN,
|
|
36240
36240
|
formatDate: R,
|
|
36241
36241
|
// (date, { locale, dateOptions }) => string
|
|
36242
36242
|
capitalizeDate: v = !0,
|
|
36243
36243
|
// Layout / styles (overrideable)
|
|
36244
|
-
className:
|
|
36245
|
-
style:
|
|
36246
|
-
leftClassName:
|
|
36247
|
-
leftStyle:
|
|
36248
|
-
rightClassName:
|
|
36249
|
-
rightStyle:
|
|
36250
|
-
saludoFechaContainerClassName:
|
|
36251
|
-
saludoFechaContainerStyle:
|
|
36252
|
-
inicioContainerClassName:
|
|
36253
|
-
inicioContainerStyle:
|
|
36254
|
-
inicioTextClassName:
|
|
36255
|
-
inicioTextStyle:
|
|
36256
|
-
inicioIconClassName:
|
|
36257
|
-
inicioIconStyle:
|
|
36258
|
-
greetingClassName:
|
|
36244
|
+
className: L = "",
|
|
36245
|
+
style: F,
|
|
36246
|
+
leftClassName: $ = "",
|
|
36247
|
+
leftStyle: k,
|
|
36248
|
+
rightClassName: Q = "",
|
|
36249
|
+
rightStyle: P,
|
|
36250
|
+
saludoFechaContainerClassName: W = "",
|
|
36251
|
+
saludoFechaContainerStyle: O,
|
|
36252
|
+
inicioContainerClassName: r0 = "",
|
|
36253
|
+
inicioContainerStyle: C,
|
|
36254
|
+
inicioTextClassName: j = "",
|
|
36255
|
+
inicioTextStyle: T,
|
|
36256
|
+
inicioIconClassName: K = "",
|
|
36257
|
+
inicioIconStyle: D,
|
|
36258
|
+
greetingClassName: Z = "",
|
|
36259
36259
|
greetingStyle: H,
|
|
36260
36260
|
greetingPrefix: _ = "¡",
|
|
36261
36261
|
greetingSuffix: n0 = "!",
|
|
36262
|
-
nameClassName:
|
|
36262
|
+
nameClassName: e0 = "",
|
|
36263
36263
|
nameStyle: c0,
|
|
36264
|
-
dateTextClassName:
|
|
36264
|
+
dateTextClassName: U = "",
|
|
36265
36265
|
dateTextStyle: g0,
|
|
36266
36266
|
...M0
|
|
36267
36267
|
}) => {
|
|
36268
36268
|
const v0 = n ? RN(t) : null;
|
|
36269
36269
|
let l0 = "";
|
|
36270
|
-
return v0 && (typeof R == "function" ? l0 = R(v0, { locale: y, dateOptions:
|
|
36270
|
+
return v0 && (typeof R == "function" ? l0 = R(v0, { locale: y, dateOptions: A }) : l0 = new Intl.DateTimeFormat(y, A).format(v0), v && (l0 = EN(l0))), /* @__PURE__ */ l.jsxs(
|
|
36271
36271
|
"div",
|
|
36272
36272
|
{
|
|
36273
|
-
className: `w-full ${
|
|
36274
|
-
style:
|
|
36273
|
+
className: `w-full ${L}`,
|
|
36274
|
+
style: F,
|
|
36275
36275
|
...M0,
|
|
36276
36276
|
children: [
|
|
36277
36277
|
/* @__PURE__ */ l.jsx("style", { children: `
|
|
36278
|
-
@media (max-width: ${
|
|
36278
|
+
@media (max-width: ${g}px) {
|
|
36279
36279
|
.scfd-inicio {
|
|
36280
|
-
display: ${
|
|
36280
|
+
display: ${p ? "none" : "flex"};
|
|
36281
36281
|
}
|
|
36282
36282
|
.scfd-date {
|
|
36283
36283
|
display: ${h ? "none" : "flex"};
|
|
36284
36284
|
}
|
|
36285
36285
|
.scfd-saludo-fecha {
|
|
36286
|
-
justify-content: ${
|
|
36286
|
+
justify-content: ${M ? "center" : "space-between"};
|
|
36287
36287
|
}
|
|
36288
36288
|
.scfd-greeting-wrapper {
|
|
36289
36289
|
width: 100%;
|
|
36290
36290
|
}
|
|
36291
36291
|
.scfd-greeting {
|
|
36292
|
-
text-align: ${
|
|
36292
|
+
text-align: ${M ? "center" : "left"};
|
|
36293
36293
|
}
|
|
36294
36294
|
}
|
|
36295
36295
|
` }),
|
|
@@ -36297,18 +36297,18 @@ const Be = zD, b = ({
|
|
|
36297
36297
|
u && /* @__PURE__ */ l.jsxs(
|
|
36298
36298
|
"div",
|
|
36299
36299
|
{
|
|
36300
|
-
className: `scfd-inicio col-start-1 row-start-1 flex items-center gap-1 ${
|
|
36300
|
+
className: `scfd-inicio col-start-1 row-start-1 flex items-center gap-1 ${r0}`,
|
|
36301
36301
|
style: {
|
|
36302
36302
|
// Mantener "Inicio" alineado al mismo borde que "Hola" (padding-left del contenedor inferior)
|
|
36303
36303
|
paddingLeft: "8px",
|
|
36304
|
-
...
|
|
36304
|
+
...C || {}
|
|
36305
36305
|
},
|
|
36306
36306
|
children: [
|
|
36307
36307
|
/* @__PURE__ */ l.jsx(
|
|
36308
36308
|
x,
|
|
36309
36309
|
{
|
|
36310
36310
|
variant: "body-md",
|
|
36311
|
-
className:
|
|
36311
|
+
className: j,
|
|
36312
36312
|
style: {
|
|
36313
36313
|
color: "#223B40",
|
|
36314
36314
|
fontFamily: "IBM Plex Sans",
|
|
@@ -36318,23 +36318,23 @@ const Be = zD, b = ({
|
|
|
36318
36318
|
lineHeight: "20px",
|
|
36319
36319
|
letterSpacing: "0%",
|
|
36320
36320
|
verticalAlign: "middle",
|
|
36321
|
-
...
|
|
36321
|
+
...T || {}
|
|
36322
36322
|
},
|
|
36323
|
-
children:
|
|
36323
|
+
children: d
|
|
36324
36324
|
}
|
|
36325
36325
|
),
|
|
36326
|
-
|
|
36326
|
+
s && i ? /* @__PURE__ */ l.jsx(
|
|
36327
36327
|
b,
|
|
36328
36328
|
{
|
|
36329
36329
|
name: i,
|
|
36330
36330
|
variant: f,
|
|
36331
36331
|
size: w,
|
|
36332
|
-
className:
|
|
36332
|
+
className: K,
|
|
36333
36333
|
style: {
|
|
36334
36334
|
color: "#223B40",
|
|
36335
36335
|
opacity: 1,
|
|
36336
36336
|
transform: "rotate(0deg)",
|
|
36337
|
-
...
|
|
36337
|
+
...D || {}
|
|
36338
36338
|
}
|
|
36339
36339
|
}
|
|
36340
36340
|
) : null
|
|
@@ -36344,7 +36344,7 @@ const Be = zD, b = ({
|
|
|
36344
36344
|
/* @__PURE__ */ l.jsxs(
|
|
36345
36345
|
"div",
|
|
36346
36346
|
{
|
|
36347
|
-
className: `scfd-saludo-fecha col-start-1 col-end-3 row-start-2 flex items-center justify-between ${
|
|
36347
|
+
className: `scfd-saludo-fecha col-start-1 col-end-3 row-start-2 flex items-center justify-between ${W}`,
|
|
36348
36348
|
style: {
|
|
36349
36349
|
// Responsive: ocupar el ancho disponible sin generar scroll horizontal,
|
|
36350
36350
|
// manteniendo el ancho Figma como máximo.
|
|
@@ -36358,14 +36358,14 @@ const Be = zD, b = ({
|
|
|
36358
36358
|
paddingLeft: "8px",
|
|
36359
36359
|
boxSizing: "border-box",
|
|
36360
36360
|
visibility: c ? "visible" : "hidden",
|
|
36361
|
-
...
|
|
36361
|
+
...O || {}
|
|
36362
36362
|
},
|
|
36363
36363
|
children: [
|
|
36364
|
-
/* @__PURE__ */ l.jsx("div", { className: `scfd-greeting-wrapper min-w-0 ${
|
|
36364
|
+
/* @__PURE__ */ l.jsx("div", { className: `scfd-greeting-wrapper min-w-0 ${$}`, style: k, children: /* @__PURE__ */ l.jsxs(
|
|
36365
36365
|
x,
|
|
36366
36366
|
{
|
|
36367
36367
|
variant: "h5",
|
|
36368
|
-
className: `scfd-greeting ${
|
|
36368
|
+
className: `scfd-greeting ${Z}`,
|
|
36369
36369
|
style: {
|
|
36370
36370
|
color: "#223B40",
|
|
36371
36371
|
fontFamily: "IBM Plex Sans",
|
|
@@ -36403,7 +36403,7 @@ const Be = zD, b = ({
|
|
|
36403
36403
|
/* @__PURE__ */ l.jsx(
|
|
36404
36404
|
"span",
|
|
36405
36405
|
{
|
|
36406
|
-
className:
|
|
36406
|
+
className: e0,
|
|
36407
36407
|
style: {
|
|
36408
36408
|
display: "inline-block",
|
|
36409
36409
|
verticalAlign: "middle",
|
|
@@ -36424,11 +36424,11 @@ const Be = zD, b = ({
|
|
|
36424
36424
|
]
|
|
36425
36425
|
}
|
|
36426
36426
|
) }),
|
|
36427
|
-
n && l0 ? /* @__PURE__ */ l.jsx("div", { className: `scfd-date flex items-center flex-shrink-0 ${
|
|
36427
|
+
n && l0 ? /* @__PURE__ */ l.jsx("div", { className: `scfd-date flex items-center flex-shrink-0 ${Q}`, style: P, children: /* @__PURE__ */ l.jsx(
|
|
36428
36428
|
x,
|
|
36429
36429
|
{
|
|
36430
36430
|
variant: "body-lg",
|
|
36431
|
-
className: `color-gray-600 ${
|
|
36431
|
+
className: `color-gray-600 ${U}`,
|
|
36432
36432
|
style: g0,
|
|
36433
36433
|
children: l0
|
|
36434
36434
|
}
|
|
@@ -37228,8 +37228,8 @@ const Be = zD, b = ({
|
|
|
37228
37228
|
data: n = null,
|
|
37229
37229
|
variant: c = "corto",
|
|
37230
37230
|
title: u = "Notificaciones",
|
|
37231
|
-
status:
|
|
37232
|
-
errorMessage:
|
|
37231
|
+
status: d = null,
|
|
37232
|
+
errorMessage: s = null,
|
|
37233
37233
|
children: i = null,
|
|
37234
37234
|
className: f = "",
|
|
37235
37235
|
...w
|
|
@@ -37241,7 +37241,7 @@ const Be = zD, b = ({
|
|
|
37241
37241
|
MN,
|
|
37242
37242
|
{
|
|
37243
37243
|
title: u,
|
|
37244
|
-
errorMessage:
|
|
37244
|
+
errorMessage: s || r,
|
|
37245
37245
|
className: f,
|
|
37246
37246
|
...w
|
|
37247
37247
|
}
|
|
@@ -37271,7 +37271,7 @@ const Be = zD, b = ({
|
|
|
37271
37271
|
jN,
|
|
37272
37272
|
{
|
|
37273
37273
|
title: u,
|
|
37274
|
-
status:
|
|
37274
|
+
status: d,
|
|
37275
37275
|
className: f,
|
|
37276
37276
|
...w,
|
|
37277
37277
|
children: i
|
|
@@ -37282,7 +37282,7 @@ const Be = zD, b = ({
|
|
|
37282
37282
|
$N,
|
|
37283
37283
|
{
|
|
37284
37284
|
title: u,
|
|
37285
|
-
status:
|
|
37285
|
+
status: d,
|
|
37286
37286
|
className: f,
|
|
37287
37287
|
...w,
|
|
37288
37288
|
children: i
|
|
@@ -37348,15 +37348,15 @@ const Be = zD, b = ({
|
|
|
37348
37348
|
emptyMessage: n,
|
|
37349
37349
|
pageSize: c = 10,
|
|
37350
37350
|
pageSizeOptions: u = [5, 10, 25, 50],
|
|
37351
|
-
className:
|
|
37352
|
-
...
|
|
37351
|
+
className: d = "",
|
|
37352
|
+
...s
|
|
37353
37353
|
}) => {
|
|
37354
37354
|
const { t: i } = b0(), f = a.map((h) => {
|
|
37355
|
-
const
|
|
37355
|
+
const M = h.translationKey ? i(h.translationKey) : h.label || h.headerName;
|
|
37356
37356
|
return {
|
|
37357
37357
|
...h,
|
|
37358
|
-
headerName:
|
|
37359
|
-
label:
|
|
37358
|
+
headerName: M,
|
|
37359
|
+
label: M
|
|
37360
37360
|
};
|
|
37361
37361
|
}), w = [
|
|
37362
37362
|
{
|
|
@@ -37383,16 +37383,16 @@ const Be = zD, b = ({
|
|
|
37383
37383
|
width: 150,
|
|
37384
37384
|
translationKey: "table.role"
|
|
37385
37385
|
}
|
|
37386
|
-
],
|
|
37386
|
+
], g = f.length > 0 ? f : w, p = {
|
|
37387
37387
|
...kN,
|
|
37388
37388
|
// Personalizar mensaje de sin datos si se proporciona
|
|
37389
37389
|
...n && { noRowsLabel: n }
|
|
37390
37390
|
};
|
|
37391
|
-
return /* @__PURE__ */ l.jsx(Ke, { className:
|
|
37391
|
+
return /* @__PURE__ */ l.jsx(Ke, { className: d, sx: { height: 400, width: "100%" }, children: /* @__PURE__ */ l.jsx(
|
|
37392
37392
|
Ye,
|
|
37393
37393
|
{
|
|
37394
37394
|
rows: r,
|
|
37395
|
-
columns:
|
|
37395
|
+
columns: g,
|
|
37396
37396
|
loading: t,
|
|
37397
37397
|
pageSizeOptions: u,
|
|
37398
37398
|
initialState: {
|
|
@@ -37402,9 +37402,9 @@ const Be = zD, b = ({
|
|
|
37402
37402
|
}
|
|
37403
37403
|
}
|
|
37404
37404
|
},
|
|
37405
|
-
localeText:
|
|
37405
|
+
localeText: p,
|
|
37406
37406
|
disableRowSelectionOnClick: !0,
|
|
37407
|
-
...
|
|
37407
|
+
...s
|
|
37408
37408
|
}
|
|
37409
37409
|
) });
|
|
37410
37410
|
}, gP = ({
|
|
@@ -37414,8 +37414,8 @@ const Be = zD, b = ({
|
|
|
37414
37414
|
height: n = 350,
|
|
37415
37415
|
colors: c = ["#3B82F6", "#10B981", "#F59E0B", "#EF4444", "#8B5CF6"],
|
|
37416
37416
|
showLegend: u = !0,
|
|
37417
|
-
showToolbar:
|
|
37418
|
-
className:
|
|
37417
|
+
showToolbar: d = !0,
|
|
37418
|
+
className: s = "",
|
|
37419
37419
|
...i
|
|
37420
37420
|
}) => {
|
|
37421
37421
|
const f = K0(() => ({
|
|
@@ -37423,7 +37423,7 @@ const Be = zD, b = ({
|
|
|
37423
37423
|
type: "line",
|
|
37424
37424
|
height: n,
|
|
37425
37425
|
toolbar: {
|
|
37426
|
-
show:
|
|
37426
|
+
show: d,
|
|
37427
37427
|
tools: {
|
|
37428
37428
|
download: !0,
|
|
37429
37429
|
selection: !0,
|
|
@@ -37470,8 +37470,8 @@ const Be = zD, b = ({
|
|
|
37470
37470
|
dataLabels: {
|
|
37471
37471
|
enabled: !1
|
|
37472
37472
|
}
|
|
37473
|
-
}), [r, c, n, u,
|
|
37474
|
-
return /* @__PURE__ */ l.jsxs("div", { className:
|
|
37473
|
+
}), [r, c, n, u, d]);
|
|
37474
|
+
return /* @__PURE__ */ l.jsxs("div", { className: s, children: [
|
|
37475
37475
|
t && /* @__PURE__ */ l.jsx("h3", { className: "text-lg font-semibold text-gray-900 mb-4", children: t }),
|
|
37476
37476
|
/* @__PURE__ */ l.jsx(
|
|
37477
37477
|
Q0,
|
|
@@ -37491,8 +37491,8 @@ const Be = zD, b = ({
|
|
|
37491
37491
|
height: n = 350,
|
|
37492
37492
|
colors: c = ["#3B82F6", "#10B981", "#F59E0B", "#EF4444", "#8B5CF6"],
|
|
37493
37493
|
showLegend: u = !0,
|
|
37494
|
-
showToolbar:
|
|
37495
|
-
horizontal:
|
|
37494
|
+
showToolbar: d = !0,
|
|
37495
|
+
horizontal: s = !1,
|
|
37496
37496
|
className: i = "",
|
|
37497
37497
|
...f
|
|
37498
37498
|
}) => {
|
|
@@ -37501,7 +37501,7 @@ const Be = zD, b = ({
|
|
|
37501
37501
|
type: "bar",
|
|
37502
37502
|
height: n,
|
|
37503
37503
|
toolbar: {
|
|
37504
|
-
show:
|
|
37504
|
+
show: d,
|
|
37505
37505
|
tools: {
|
|
37506
37506
|
download: !0,
|
|
37507
37507
|
selection: !0,
|
|
@@ -37516,7 +37516,7 @@ const Be = zD, b = ({
|
|
|
37516
37516
|
colors: c,
|
|
37517
37517
|
plotOptions: {
|
|
37518
37518
|
bar: {
|
|
37519
|
-
horizontal:
|
|
37519
|
+
horizontal: s,
|
|
37520
37520
|
borderRadius: 4,
|
|
37521
37521
|
columnWidth: "55%"
|
|
37522
37522
|
}
|
|
@@ -37551,7 +37551,7 @@ const Be = zD, b = ({
|
|
|
37551
37551
|
dataLabels: {
|
|
37552
37552
|
enabled: !1
|
|
37553
37553
|
}
|
|
37554
|
-
}), [r, c, n, u,
|
|
37554
|
+
}), [r, c, n, u, d, s]);
|
|
37555
37555
|
return /* @__PURE__ */ l.jsxs("div", { className: i, children: [
|
|
37556
37556
|
t && /* @__PURE__ */ l.jsx("h3", { className: "text-lg font-semibold text-gray-900 mb-4", children: t }),
|
|
37557
37557
|
/* @__PURE__ */ l.jsx(
|
|
@@ -37572,8 +37572,8 @@ const Be = zD, b = ({
|
|
|
37572
37572
|
height: n = 350,
|
|
37573
37573
|
colors: c = ["#3B82F6", "#10B981", "#F59E0B", "#EF4444", "#8B5CF6"],
|
|
37574
37574
|
showLegend: u = !0,
|
|
37575
|
-
showToolbar:
|
|
37576
|
-
className:
|
|
37575
|
+
showToolbar: d = !0,
|
|
37576
|
+
className: s = "",
|
|
37577
37577
|
...i
|
|
37578
37578
|
}) => {
|
|
37579
37579
|
const f = K0(() => ({
|
|
@@ -37581,7 +37581,7 @@ const Be = zD, b = ({
|
|
|
37581
37581
|
type: "area",
|
|
37582
37582
|
height: n,
|
|
37583
37583
|
toolbar: {
|
|
37584
|
-
show:
|
|
37584
|
+
show: d,
|
|
37585
37585
|
tools: {
|
|
37586
37586
|
download: !0,
|
|
37587
37587
|
selection: !0,
|
|
@@ -37637,8 +37637,8 @@ const Be = zD, b = ({
|
|
|
37637
37637
|
dataLabels: {
|
|
37638
37638
|
enabled: !1
|
|
37639
37639
|
}
|
|
37640
|
-
}), [r, c, n, u,
|
|
37641
|
-
return /* @__PURE__ */ l.jsxs("div", { className:
|
|
37640
|
+
}), [r, c, n, u, d]);
|
|
37641
|
+
return /* @__PURE__ */ l.jsxs("div", { className: s, children: [
|
|
37642
37642
|
t && /* @__PURE__ */ l.jsx("h3", { className: "text-lg font-semibold text-gray-900 mb-4", children: t }),
|
|
37643
37643
|
/* @__PURE__ */ l.jsx(
|
|
37644
37644
|
Q0,
|
|
@@ -37658,8 +37658,8 @@ const Be = zD, b = ({
|
|
|
37658
37658
|
height: n = 350,
|
|
37659
37659
|
colors: c = ["#3B82F6", "#10B981", "#F59E0B", "#EF4444", "#8B5CF6", "#EC4899", "#06B6D4"],
|
|
37660
37660
|
showLegend: u = !0,
|
|
37661
|
-
className:
|
|
37662
|
-
...
|
|
37661
|
+
className: d = "",
|
|
37662
|
+
...s
|
|
37663
37663
|
}) => {
|
|
37664
37664
|
const i = K0(() => ({
|
|
37665
37665
|
chart: {
|
|
@@ -37693,7 +37693,7 @@ const Be = zD, b = ({
|
|
|
37693
37693
|
}
|
|
37694
37694
|
}
|
|
37695
37695
|
}), [r, c, n, u]);
|
|
37696
|
-
return /* @__PURE__ */ l.jsxs("div", { className:
|
|
37696
|
+
return /* @__PURE__ */ l.jsxs("div", { className: d, children: [
|
|
37697
37697
|
t && /* @__PURE__ */ l.jsx("h3", { className: "text-lg font-semibold text-gray-900 mb-4", children: t }),
|
|
37698
37698
|
/* @__PURE__ */ l.jsx(
|
|
37699
37699
|
Q0,
|
|
@@ -37702,7 +37702,7 @@ const Be = zD, b = ({
|
|
|
37702
37702
|
series: a,
|
|
37703
37703
|
type: "pie",
|
|
37704
37704
|
height: n,
|
|
37705
|
-
...
|
|
37705
|
+
...s
|
|
37706
37706
|
}
|
|
37707
37707
|
)
|
|
37708
37708
|
] });
|
|
@@ -37713,8 +37713,8 @@ const Be = zD, b = ({
|
|
|
37713
37713
|
height: n = 350,
|
|
37714
37714
|
colors: c = ["#3B82F6", "#10B981", "#F59E0B", "#EF4444", "#8B5CF6", "#EC4899", "#06B6D4"],
|
|
37715
37715
|
showLegend: u = !0,
|
|
37716
|
-
donutSize:
|
|
37717
|
-
className:
|
|
37716
|
+
donutSize: d = "70%",
|
|
37717
|
+
className: s = "",
|
|
37718
37718
|
...i
|
|
37719
37719
|
}) => {
|
|
37720
37720
|
const f = K0(() => ({
|
|
@@ -37744,7 +37744,7 @@ const Be = zD, b = ({
|
|
|
37744
37744
|
plotOptions: {
|
|
37745
37745
|
pie: {
|
|
37746
37746
|
donut: {
|
|
37747
|
-
size:
|
|
37747
|
+
size: d,
|
|
37748
37748
|
labels: {
|
|
37749
37749
|
show: !0,
|
|
37750
37750
|
name: {
|
|
@@ -37757,14 +37757,14 @@ const Be = zD, b = ({
|
|
|
37757
37757
|
total: {
|
|
37758
37758
|
show: !0,
|
|
37759
37759
|
label: "Total",
|
|
37760
|
-
formatter: () => a.reduce((
|
|
37760
|
+
formatter: () => a.reduce((g, p) => g + p, 0).toString()
|
|
37761
37761
|
}
|
|
37762
37762
|
}
|
|
37763
37763
|
}
|
|
37764
37764
|
}
|
|
37765
37765
|
}
|
|
37766
|
-
}), [r, c, n, u,
|
|
37767
|
-
return /* @__PURE__ */ l.jsxs("div", { className:
|
|
37766
|
+
}), [r, c, n, u, d, a]);
|
|
37767
|
+
return /* @__PURE__ */ l.jsxs("div", { className: s, children: [
|
|
37768
37768
|
t && /* @__PURE__ */ l.jsx("h3", { className: "text-lg font-semibold text-gray-900 mb-4", children: t }),
|
|
37769
37769
|
/* @__PURE__ */ l.jsx(
|
|
37770
37770
|
Q0,
|
|
@@ -37784,8 +37784,8 @@ const Be = zD, b = ({
|
|
|
37784
37784
|
height: n = 350,
|
|
37785
37785
|
colors: c = ["#3B82F6", "#10B981", "#F59E0B", "#EF4444", "#8B5CF6"],
|
|
37786
37786
|
showLegend: u = !0,
|
|
37787
|
-
showToolbar:
|
|
37788
|
-
className:
|
|
37787
|
+
showToolbar: d = !0,
|
|
37788
|
+
className: s = "",
|
|
37789
37789
|
...i
|
|
37790
37790
|
}) => {
|
|
37791
37791
|
const f = K0(() => ({
|
|
@@ -37793,7 +37793,7 @@ const Be = zD, b = ({
|
|
|
37793
37793
|
type: "column",
|
|
37794
37794
|
height: n,
|
|
37795
37795
|
toolbar: {
|
|
37796
|
-
show:
|
|
37796
|
+
show: d,
|
|
37797
37797
|
tools: {
|
|
37798
37798
|
download: !0,
|
|
37799
37799
|
selection: !0,
|
|
@@ -37846,8 +37846,8 @@ const Be = zD, b = ({
|
|
|
37846
37846
|
dataLabels: {
|
|
37847
37847
|
enabled: !1
|
|
37848
37848
|
}
|
|
37849
|
-
}), [r, c, n, u,
|
|
37850
|
-
return /* @__PURE__ */ l.jsxs("div", { className:
|
|
37849
|
+
}), [r, c, n, u, d]);
|
|
37850
|
+
return /* @__PURE__ */ l.jsxs("div", { className: s, children: [
|
|
37851
37851
|
t && /* @__PURE__ */ l.jsx("h3", { className: "text-lg font-semibold text-gray-900 mb-4", children: t }),
|
|
37852
37852
|
/* @__PURE__ */ l.jsx(
|
|
37853
37853
|
Q0,
|
|
@@ -37867,8 +37867,8 @@ const Be = zD, b = ({
|
|
|
37867
37867
|
actionLabel: n,
|
|
37868
37868
|
onAction: c,
|
|
37869
37869
|
className: u = "",
|
|
37870
|
-
...
|
|
37871
|
-
}) => /* @__PURE__ */ l.jsxs("div", { className: `flex flex-col items-center justify-center py-12 px-4 ${u}`, ...
|
|
37870
|
+
...d
|
|
37871
|
+
}) => /* @__PURE__ */ l.jsxs("div", { className: `flex flex-col items-center justify-center py-12 px-4 ${u}`, ...d, children: [
|
|
37872
37872
|
/* @__PURE__ */ l.jsx("div", { className: "mb-4", children: /* @__PURE__ */ l.jsx(b, { name: a, className: "h-16 w-16 text-gray-400" }) }),
|
|
37873
37873
|
/* @__PURE__ */ l.jsx("h3", { className: "text-lg font-semibold text-gray-900 mb-2", children: r }),
|
|
37874
37874
|
/* @__PURE__ */ l.jsx("p", { className: "text-sm text-gray-500 text-center max-w-sm mb-4", children: t }),
|
|
@@ -37880,8 +37880,8 @@ const Be = zD, b = ({
|
|
|
37880
37880
|
changeType: n = "neutral",
|
|
37881
37881
|
icon: c,
|
|
37882
37882
|
iconColor: u = "blue",
|
|
37883
|
-
className:
|
|
37884
|
-
...
|
|
37883
|
+
className: d = "",
|
|
37884
|
+
...s
|
|
37885
37885
|
}) => {
|
|
37886
37886
|
const i = {
|
|
37887
37887
|
blue: "bg-blue-100 text-blue-600",
|
|
@@ -37894,7 +37894,7 @@ const Be = zD, b = ({
|
|
|
37894
37894
|
negative: "text-red-600",
|
|
37895
37895
|
neutral: "text-gray-600"
|
|
37896
37896
|
};
|
|
37897
|
-
return /* @__PURE__ */ l.jsx("div", { className: `bg-white rounded-lg shadow-md p-6 ${
|
|
37897
|
+
return /* @__PURE__ */ l.jsx("div", { className: `bg-white rounded-lg shadow-md p-6 ${d}`, ...s, children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
37898
37898
|
/* @__PURE__ */ l.jsxs("div", { className: "flex-1", children: [
|
|
37899
37899
|
/* @__PURE__ */ l.jsx(x, { variant: "body2", className: "text-gray-600 mb-1", children: a }),
|
|
37900
37900
|
/* @__PURE__ */ l.jsx(x, { variant: "h3", className: "text-gray-900 mb-2", children: r }),
|
|
@@ -37926,26 +37926,26 @@ const Be = zD, b = ({
|
|
|
37926
37926
|
default: "divide-y divide-gray-200",
|
|
37927
37927
|
none: ""
|
|
37928
37928
|
};
|
|
37929
|
-
return /* @__PURE__ */ l.jsx("ul", { className: `${c[r]} ${t}`, ...n, children: a.map((u,
|
|
37929
|
+
return /* @__PURE__ */ l.jsx("ul", { className: `${c[r]} ${t}`, ...n, children: a.map((u, d) => /* @__PURE__ */ l.jsx("li", { className: "py-3", children: typeof u == "string" ? /* @__PURE__ */ l.jsx("span", { className: "text-gray-900", children: u }) : u }, d)) });
|
|
37930
37930
|
}, AP = ({
|
|
37931
37931
|
tags: a = [],
|
|
37932
37932
|
onRemove: r,
|
|
37933
37933
|
variant: t = "default",
|
|
37934
37934
|
className: n = "",
|
|
37935
37935
|
...c
|
|
37936
|
-
}) => a.length === 0 ? null : /* @__PURE__ */ l.jsx("div", { className: `flex flex-wrap gap-2 ${n}`, ...c, children: a.map((u,
|
|
37937
|
-
const
|
|
37936
|
+
}) => a.length === 0 ? null : /* @__PURE__ */ l.jsx("div", { className: `flex flex-wrap gap-2 ${n}`, ...c, children: a.map((u, d) => {
|
|
37937
|
+
const s = typeof u == "string" ? u : u.label, i = typeof u == "string" ? t : u.variant || t;
|
|
37938
37938
|
return /* @__PURE__ */ l.jsxs(a5, { variant: i, children: [
|
|
37939
|
-
|
|
37939
|
+
s,
|
|
37940
37940
|
r && /* @__PURE__ */ l.jsx(
|
|
37941
37941
|
"button",
|
|
37942
37942
|
{
|
|
37943
|
-
onClick: () => r(
|
|
37943
|
+
onClick: () => r(d),
|
|
37944
37944
|
className: "ml-2 hover:text-gray-800",
|
|
37945
37945
|
children: "×"
|
|
37946
37946
|
}
|
|
37947
37947
|
)
|
|
37948
|
-
] },
|
|
37948
|
+
] }, d);
|
|
37949
37949
|
}) }), ye = ({
|
|
37950
37950
|
label: a,
|
|
37951
37951
|
placeholder: r,
|
|
@@ -37953,15 +37953,15 @@ const Be = zD, b = ({
|
|
|
37953
37953
|
onChange: n,
|
|
37954
37954
|
error: c,
|
|
37955
37955
|
required: u = !1,
|
|
37956
|
-
disabled:
|
|
37957
|
-
variant:
|
|
37956
|
+
disabled: d = !1,
|
|
37957
|
+
variant: s,
|
|
37958
37958
|
className: i = "",
|
|
37959
37959
|
inputClassName: f = "",
|
|
37960
37960
|
labelClassName: w = "",
|
|
37961
|
-
labelStyle:
|
|
37962
|
-
...
|
|
37961
|
+
labelStyle: g,
|
|
37962
|
+
...p
|
|
37963
37963
|
}) => {
|
|
37964
|
-
const [h,
|
|
37964
|
+
const [h, M] = S(!1), y = s === "hexa-login", R = `
|
|
37965
37965
|
${y ? "w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm text-gray-900" : "w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent disabled:bg-gray-100 disabled:cursor-not-allowed"}
|
|
37966
37966
|
${y ? "" : c ? "border-red-500" : "border-gray-300"}
|
|
37967
37967
|
${f}
|
|
@@ -37971,7 +37971,7 @@ const Be = zD, b = ({
|
|
|
37971
37971
|
"label",
|
|
37972
37972
|
{
|
|
37973
37973
|
className: w || "block text-sm font-medium text-gray-700 mb-1",
|
|
37974
|
-
style:
|
|
37974
|
+
style: g,
|
|
37975
37975
|
children: [
|
|
37976
37976
|
a,
|
|
37977
37977
|
u && /* @__PURE__ */ l.jsx("span", { className: "text-red-500 ml-1", children: "*" })
|
|
@@ -37984,11 +37984,11 @@ const Be = zD, b = ({
|
|
|
37984
37984
|
{
|
|
37985
37985
|
type: h ? "text" : "password",
|
|
37986
37986
|
placeholder: r,
|
|
37987
|
-
disabled:
|
|
37987
|
+
disabled: d,
|
|
37988
37988
|
value: t,
|
|
37989
37989
|
onChange: n,
|
|
37990
37990
|
className: `${R} ${y ? "anima-passwordfield__input" : ""}`,
|
|
37991
|
-
...
|
|
37991
|
+
...p
|
|
37992
37992
|
}
|
|
37993
37993
|
),
|
|
37994
37994
|
/* @__PURE__ */ l.jsx(
|
|
@@ -37996,7 +37996,7 @@ const Be = zD, b = ({
|
|
|
37996
37996
|
{
|
|
37997
37997
|
type: "button",
|
|
37998
37998
|
tabIndex: -1,
|
|
37999
|
-
onClick: () =>
|
|
37999
|
+
onClick: () => M((v) => !v),
|
|
38000
38000
|
className: "anima-passwordfield__toggle",
|
|
38001
38001
|
"aria-label": h ? "Ocultar contraseña" : "Mostrar contraseña",
|
|
38002
38002
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -38019,61 +38019,61 @@ const Be = zD, b = ({
|
|
|
38019
38019
|
onForgotPassword: n,
|
|
38020
38020
|
onGoogleLogin: c,
|
|
38021
38021
|
onMicrosoftLogin: u,
|
|
38022
|
-
showSocialLogin:
|
|
38023
|
-
showDivider:
|
|
38022
|
+
showSocialLogin: d = !0,
|
|
38023
|
+
showDivider: s = !0,
|
|
38024
38024
|
showPasswordRequirementsOnError: i = !0,
|
|
38025
38025
|
passwordRequirementsItems: f,
|
|
38026
38026
|
passwordRequirementsTitle: w,
|
|
38027
|
-
passwordRequirementsPrefix:
|
|
38028
|
-
labels:
|
|
38027
|
+
passwordRequirementsPrefix: g,
|
|
38028
|
+
labels: p,
|
|
38029
38029
|
generalError: h,
|
|
38030
|
-
generalErrorTitle:
|
|
38030
|
+
generalErrorTitle: M,
|
|
38031
38031
|
generalErrorSubtitle: y,
|
|
38032
|
-
className:
|
|
38032
|
+
className: A = "",
|
|
38033
38033
|
...R
|
|
38034
38034
|
}) => {
|
|
38035
|
-
const { t: v } = b0(),
|
|
38035
|
+
const { t: v } = b0(), L = a === "hexa-login", [F, $] = S({
|
|
38036
38036
|
email: "",
|
|
38037
38037
|
password: "",
|
|
38038
38038
|
rememberMe: !1
|
|
38039
|
-
}), [
|
|
38040
|
-
|
|
38041
|
-
},
|
|
38042
|
-
|
|
38043
|
-
const
|
|
38044
|
-
if (
|
|
38045
|
-
|
|
38039
|
+
}), [k, Q] = S({}), P = (C, j) => {
|
|
38040
|
+
$((T) => ({ ...T, [C]: j })), k[C] && Q((T) => ({ ...T, [C]: null }));
|
|
38041
|
+
}, W = (C) => {
|
|
38042
|
+
C.preventDefault();
|
|
38043
|
+
const j = {};
|
|
38044
|
+
if (F.email || (j.email = v("form.email") + " is required"), F.password || (j.password = v("form.password") + " is required"), Object.keys(j).length > 0) {
|
|
38045
|
+
Q(j);
|
|
38046
38046
|
return;
|
|
38047
38047
|
}
|
|
38048
|
-
r && r(
|
|
38049
|
-
},
|
|
38050
|
-
emailLabel:
|
|
38051
|
-
passwordLabel:
|
|
38052
|
-
rememberMeLabel:
|
|
38053
|
-
forgotPasswordLabel:
|
|
38054
|
-
continueWithLabel:
|
|
38055
|
-
googleLabel:
|
|
38056
|
-
microsoftLabel:
|
|
38057
|
-
},
|
|
38058
|
-
return
|
|
38048
|
+
r && r(F);
|
|
38049
|
+
}, O = {
|
|
38050
|
+
emailLabel: p?.emailLabel ?? v("form.email") ?? "Email",
|
|
38051
|
+
passwordLabel: p?.passwordLabel ?? v("form.password") ?? "Contraseña",
|
|
38052
|
+
rememberMeLabel: p?.rememberMeLabel ?? v("form.rememberMe") ?? "Recordarme",
|
|
38053
|
+
forgotPasswordLabel: p?.forgotPasswordLabel ?? v("form.forgotPassword") ?? "Olvidé mi contraseña",
|
|
38054
|
+
continueWithLabel: p?.continueWithLabel ?? "Continuar con",
|
|
38055
|
+
googleLabel: p?.googleLabel ?? "Google",
|
|
38056
|
+
microsoftLabel: p?.microsoftLabel ?? "Microsoft"
|
|
38057
|
+
}, r0 = t ? v("form.loggingIn") ?? "Ingresando..." : v("form.login") ?? "Ingresar";
|
|
38058
|
+
return L ? /* @__PURE__ */ l.jsx("div", { className: `anima-loginform__container ${A}`, "data-variant": "hexa-login", ...R, children: /* @__PURE__ */ l.jsx("div", { className: "anima-loginform__card", children: /* @__PURE__ */ l.jsxs("form", { onSubmit: W, children: [
|
|
38059
38059
|
/* @__PURE__ */ l.jsxs("div", { className: "w-full", children: [
|
|
38060
38060
|
/* @__PURE__ */ l.jsx(
|
|
38061
38061
|
"label",
|
|
38062
38062
|
{
|
|
38063
38063
|
className: "block mb-2 font-medium text-sm",
|
|
38064
38064
|
style: { color: "#2D5C63" },
|
|
38065
|
-
children:
|
|
38065
|
+
children: O.emailLabel
|
|
38066
38066
|
}
|
|
38067
38067
|
),
|
|
38068
38068
|
/* @__PURE__ */ l.jsx(
|
|
38069
38069
|
"input",
|
|
38070
38070
|
{
|
|
38071
38071
|
type: "email",
|
|
38072
|
-
value:
|
|
38073
|
-
onChange: (
|
|
38072
|
+
value: F.email,
|
|
38073
|
+
onChange: (C) => P("email", C.target.value),
|
|
38074
38074
|
placeholder: "Ingresa tu correo electronico",
|
|
38075
38075
|
className: "w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm text-gray-900",
|
|
38076
|
-
style: { borderColor:
|
|
38076
|
+
style: { borderColor: k.email ? "#ef4444" : "#2D5C63" }
|
|
38077
38077
|
}
|
|
38078
38078
|
)
|
|
38079
38079
|
] }),
|
|
@@ -38081,19 +38081,19 @@ const Be = zD, b = ({
|
|
|
38081
38081
|
ye,
|
|
38082
38082
|
{
|
|
38083
38083
|
variant: "hexa-login",
|
|
38084
|
-
label:
|
|
38084
|
+
label: O.passwordLabel,
|
|
38085
38085
|
labelClassName: "block mb-2 font-medium text-sm",
|
|
38086
38086
|
labelStyle: { color: "#2D5C63" },
|
|
38087
38087
|
placeholder: v("placeholder.password"),
|
|
38088
|
-
value:
|
|
38089
|
-
onChange: (
|
|
38088
|
+
value: F.password,
|
|
38089
|
+
onChange: (C) => P("password", C.target.value),
|
|
38090
38090
|
inputClassName: "w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm text-gray-900 anima-passwordfield__input",
|
|
38091
38091
|
style: {
|
|
38092
|
-
borderColor:
|
|
38092
|
+
borderColor: k.password ? "#ef4444" : "#2D5C63"
|
|
38093
38093
|
}
|
|
38094
38094
|
}
|
|
38095
38095
|
) }),
|
|
38096
|
-
i && !!
|
|
38096
|
+
i && !!k.password && /* @__PURE__ */ l.jsx(
|
|
38097
38097
|
"div",
|
|
38098
38098
|
{
|
|
38099
38099
|
className: "anima-loginform__requirementsBox rounded-lg p-4 border mt-4",
|
|
@@ -38114,17 +38114,17 @@ const Be = zD, b = ({
|
|
|
38114
38114
|
whiteSpace: "pre-line"
|
|
38115
38115
|
},
|
|
38116
38116
|
children: w || (() => {
|
|
38117
|
-
const
|
|
38117
|
+
const C = g || v("form.passwordRequirementsPrefix") || "Recuerda que la contraseña debe tener:", j = f || [
|
|
38118
38118
|
v("form.passwordRequirementMinChars") || "Un mínimo de 6 caracteres",
|
|
38119
38119
|
v("form.passwordRequirementOther") || "Una mayúscula, un número, un carácter especial"
|
|
38120
38120
|
];
|
|
38121
|
-
return f && f.length > 0 ? `${
|
|
38121
|
+
return f && f.length > 0 ? `${C}
|
|
38122
38122
|
${f[0]}
|
|
38123
38123
|
|
|
38124
|
-
${f.slice(1).join(", ")}` : `${
|
|
38125
|
-
${
|
|
38124
|
+
${f.slice(1).join(", ")}` : `${C}
|
|
38125
|
+
${j[0]}
|
|
38126
38126
|
|
|
38127
|
-
${
|
|
38127
|
+
${j[1]}`;
|
|
38128
38128
|
})()
|
|
38129
38129
|
}
|
|
38130
38130
|
)
|
|
@@ -38136,16 +38136,16 @@ ${O[1]}`;
|
|
|
38136
38136
|
"input",
|
|
38137
38137
|
{
|
|
38138
38138
|
type: "checkbox",
|
|
38139
|
-
checked:
|
|
38140
|
-
onChange: (
|
|
38139
|
+
checked: F.rememberMe,
|
|
38140
|
+
onChange: (C) => P("rememberMe", C.target.checked),
|
|
38141
38141
|
className: "w-4 h-4 border-gray-300 rounded focus:outline-none focus:ring-0",
|
|
38142
38142
|
style: {
|
|
38143
38143
|
accentColor: "#2D5C63",
|
|
38144
|
-
borderColor:
|
|
38144
|
+
borderColor: F.rememberMe ? "#2D5C63" : "#d1d5db"
|
|
38145
38145
|
}
|
|
38146
38146
|
}
|
|
38147
38147
|
),
|
|
38148
|
-
/* @__PURE__ */ l.jsx("span", { className: "ml-2 text-sm font-medium", style: { color: "#2D5C63" }, children:
|
|
38148
|
+
/* @__PURE__ */ l.jsx("span", { className: "ml-2 text-sm font-medium", style: { color: "#2D5C63" }, children: O.rememberMeLabel })
|
|
38149
38149
|
] }),
|
|
38150
38150
|
/* @__PURE__ */ l.jsx(
|
|
38151
38151
|
"a",
|
|
@@ -38153,14 +38153,14 @@ ${O[1]}`;
|
|
|
38153
38153
|
href: "#",
|
|
38154
38154
|
className: "text-body-md hover:underline font-medium",
|
|
38155
38155
|
style: { color: "#2D5C63" },
|
|
38156
|
-
onClick: (
|
|
38157
|
-
|
|
38156
|
+
onClick: (C) => {
|
|
38157
|
+
C.preventDefault(), n && n();
|
|
38158
38158
|
},
|
|
38159
|
-
children:
|
|
38159
|
+
children: O.forgotPasswordLabel
|
|
38160
38160
|
}
|
|
38161
38161
|
)
|
|
38162
38162
|
] }),
|
|
38163
|
-
(h ||
|
|
38163
|
+
(h || k.general) && /* @__PURE__ */ l.jsxs(
|
|
38164
38164
|
"div",
|
|
38165
38165
|
{
|
|
38166
38166
|
className: "anima-loginform__errorBox mt-4",
|
|
@@ -38192,7 +38192,7 @@ ${O[1]}`;
|
|
|
38192
38192
|
color: "#B30808",
|
|
38193
38193
|
margin: 0
|
|
38194
38194
|
},
|
|
38195
|
-
children:
|
|
38195
|
+
children: M ?? (typeof h == "string" ? h : null) ?? (k.general && typeof k.general == "string" ? k.general : null) ?? v("errors.invalidCredentials") ?? "Correo o contraseña incorrectos."
|
|
38196
38196
|
}
|
|
38197
38197
|
),
|
|
38198
38198
|
/* @__PURE__ */ l.jsx(
|
|
@@ -38235,12 +38235,12 @@ ${O[1]}`;
|
|
|
38235
38235
|
lineHeight: "24px",
|
|
38236
38236
|
letterSpacing: "0%"
|
|
38237
38237
|
},
|
|
38238
|
-
children:
|
|
38238
|
+
children: r0
|
|
38239
38239
|
}
|
|
38240
38240
|
)
|
|
38241
38241
|
}
|
|
38242
38242
|
) }),
|
|
38243
|
-
|
|
38243
|
+
s && /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-3 my-6", children: [
|
|
38244
38244
|
/* @__PURE__ */ l.jsx("div", { className: "flex-1", style: { borderTop: "1px solid #2D5C63" } }),
|
|
38245
38245
|
/* @__PURE__ */ l.jsx(
|
|
38246
38246
|
x,
|
|
@@ -38248,12 +38248,12 @@ ${O[1]}`;
|
|
|
38248
38248
|
variant: "body2",
|
|
38249
38249
|
className: "text-body-md font-medium",
|
|
38250
38250
|
style: { color: "#2D5C63", whiteSpace: "nowrap" },
|
|
38251
|
-
children:
|
|
38251
|
+
children: O.continueWithLabel
|
|
38252
38252
|
}
|
|
38253
38253
|
),
|
|
38254
38254
|
/* @__PURE__ */ l.jsx("div", { className: "flex-1", style: { borderTop: "1px solid #2D5C63" } })
|
|
38255
38255
|
] }),
|
|
38256
|
-
|
|
38256
|
+
d && /* @__PURE__ */ l.jsxs("div", { className: "anima-loginform__socialRow", children: [
|
|
38257
38257
|
/* @__PURE__ */ l.jsxs(
|
|
38258
38258
|
"button",
|
|
38259
38259
|
{
|
|
@@ -38267,7 +38267,7 @@ ${O[1]}`;
|
|
|
38267
38267
|
/* @__PURE__ */ l.jsx("path", { fill: "#4CAF50", d: "M24 44c5.166 0 9.86-1.977 13.409-5.197l-6.19-5.238C29.211 35.091 26.715 36 24 36c-5.205 0-9.616-3.318-11.281-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z" }),
|
|
38268
38268
|
/* @__PURE__ */ l.jsx("path", { fill: "#1976D2", d: "M43.611 20.083H42V20H24v8h11.303c-.793 2.116-2.318 3.91-4.284 5.238l.003-.002 6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z" })
|
|
38269
38269
|
] }),
|
|
38270
|
-
/* @__PURE__ */ l.jsx(x, { variant: "body2", className: "text-gray-900 font-medium", children:
|
|
38270
|
+
/* @__PURE__ */ l.jsx(x, { variant: "body2", className: "text-gray-900 font-medium", children: O.googleLabel })
|
|
38271
38271
|
]
|
|
38272
38272
|
}
|
|
38273
38273
|
),
|
|
@@ -38284,7 +38284,7 @@ ${O[1]}`;
|
|
|
38284
38284
|
/* @__PURE__ */ l.jsx("path", { fill: "#00A4EF", d: "M6 25h17v17H6z" }),
|
|
38285
38285
|
/* @__PURE__ */ l.jsx("path", { fill: "#FFB900", d: "M25 25h17v17H25z" })
|
|
38286
38286
|
] }),
|
|
38287
|
-
/* @__PURE__ */ l.jsx(x, { variant: "body2", className: "text-gray-900 font-medium", children:
|
|
38287
|
+
/* @__PURE__ */ l.jsx(x, { variant: "body2", className: "text-gray-900 font-medium", children: O.microsoftLabel })
|
|
38288
38288
|
]
|
|
38289
38289
|
}
|
|
38290
38290
|
)
|
|
@@ -38292,8 +38292,8 @@ ${O[1]}`;
|
|
|
38292
38292
|
] }) }) }) : /* @__PURE__ */ l.jsxs(
|
|
38293
38293
|
"form",
|
|
38294
38294
|
{
|
|
38295
|
-
onSubmit:
|
|
38296
|
-
className: `max-w-md mx-auto bg-white p-6 rounded-lg shadow-md ${
|
|
38295
|
+
onSubmit: W,
|
|
38296
|
+
className: `max-w-md mx-auto bg-white p-6 rounded-lg shadow-md ${A}`,
|
|
38297
38297
|
...R,
|
|
38298
38298
|
children: [
|
|
38299
38299
|
/* @__PURE__ */ l.jsx("h2", { className: "text-2xl font-bold mb-6 text-center", children: v("form.login") }),
|
|
@@ -38304,9 +38304,9 @@ ${O[1]}`;
|
|
|
38304
38304
|
label: v("form.email"),
|
|
38305
38305
|
type: "email",
|
|
38306
38306
|
placeholder: v("placeholder.email"),
|
|
38307
|
-
value:
|
|
38308
|
-
onChange: (
|
|
38309
|
-
error:
|
|
38307
|
+
value: F.email,
|
|
38308
|
+
onChange: (C) => P("email", C.target.value),
|
|
38309
|
+
error: k.email,
|
|
38310
38310
|
required: !0
|
|
38311
38311
|
}
|
|
38312
38312
|
),
|
|
@@ -38316,9 +38316,9 @@ ${O[1]}`;
|
|
|
38316
38316
|
label: v("form.password"),
|
|
38317
38317
|
type: "password",
|
|
38318
38318
|
placeholder: v("placeholder.password"),
|
|
38319
|
-
value:
|
|
38320
|
-
onChange: (
|
|
38321
|
-
error:
|
|
38319
|
+
value: F.password,
|
|
38320
|
+
onChange: (C) => P("password", C.target.value),
|
|
38321
|
+
error: k.password,
|
|
38322
38322
|
required: !0
|
|
38323
38323
|
}
|
|
38324
38324
|
),
|
|
@@ -38326,8 +38326,8 @@ ${O[1]}`;
|
|
|
38326
38326
|
JD,
|
|
38327
38327
|
{
|
|
38328
38328
|
label: v("form.rememberMe"),
|
|
38329
|
-
checked:
|
|
38330
|
-
onChange: (
|
|
38329
|
+
checked: F.rememberMe,
|
|
38330
|
+
onChange: (C) => P("rememberMe", C.target.checked)
|
|
38331
38331
|
}
|
|
38332
38332
|
),
|
|
38333
38333
|
/* @__PURE__ */ l.jsx(m0, { type: "submit", variant: "primary", className: "w-full", children: v("form.login") }),
|
|
@@ -38345,13 +38345,13 @@ ${O[1]}`;
|
|
|
38345
38345
|
currentPassword: "",
|
|
38346
38346
|
newPassword: "",
|
|
38347
38347
|
confirmPassword: ""
|
|
38348
|
-
}), [
|
|
38349
|
-
u((
|
|
38350
|
-
},
|
|
38351
|
-
|
|
38348
|
+
}), [d, s] = S({}), [i, f] = S(!1), w = (p, h) => {
|
|
38349
|
+
u((M) => ({ ...M, [p]: h })), d[p] && s((M) => ({ ...M, [p]: null })), f(!1);
|
|
38350
|
+
}, g = (p) => {
|
|
38351
|
+
p.preventDefault();
|
|
38352
38352
|
const h = {};
|
|
38353
38353
|
if (c.currentPassword || (h.currentPassword = n("form.currentPassword") + " is required"), c.newPassword ? c.newPassword.length < 8 && (h.newPassword = "Password must be at least 8 characters") : h.newPassword = n("form.newPassword") + " is required", c.confirmPassword ? c.newPassword !== c.confirmPassword && (h.confirmPassword = "Passwords do not match") : h.confirmPassword = "Please confirm your password", Object.keys(h).length > 0) {
|
|
38354
|
-
|
|
38354
|
+
s(h);
|
|
38355
38355
|
return;
|
|
38356
38356
|
}
|
|
38357
38357
|
a && a(c), f(!0), u({
|
|
@@ -38363,7 +38363,7 @@ ${O[1]}`;
|
|
|
38363
38363
|
return /* @__PURE__ */ l.jsxs(
|
|
38364
38364
|
"form",
|
|
38365
38365
|
{
|
|
38366
|
-
onSubmit:
|
|
38366
|
+
onSubmit: g,
|
|
38367
38367
|
className: `max-w-md mx-auto bg-white p-6 rounded-lg shadow-md ${r}`,
|
|
38368
38368
|
...t,
|
|
38369
38369
|
children: [
|
|
@@ -38377,8 +38377,8 @@ ${O[1]}`;
|
|
|
38377
38377
|
type: "password",
|
|
38378
38378
|
placeholder: n("placeholder.password"),
|
|
38379
38379
|
value: c.currentPassword,
|
|
38380
|
-
onChange: (
|
|
38381
|
-
error:
|
|
38380
|
+
onChange: (p) => w("currentPassword", p.target.value),
|
|
38381
|
+
error: d.currentPassword,
|
|
38382
38382
|
required: !0
|
|
38383
38383
|
}
|
|
38384
38384
|
),
|
|
@@ -38389,8 +38389,8 @@ ${O[1]}`;
|
|
|
38389
38389
|
type: "password",
|
|
38390
38390
|
placeholder: n("placeholder.password"),
|
|
38391
38391
|
value: c.newPassword,
|
|
38392
|
-
onChange: (
|
|
38393
|
-
error:
|
|
38392
|
+
onChange: (p) => w("newPassword", p.target.value),
|
|
38393
|
+
error: d.newPassword,
|
|
38394
38394
|
helperText: "Must be at least 8 characters",
|
|
38395
38395
|
required: !0
|
|
38396
38396
|
}
|
|
@@ -38402,8 +38402,8 @@ ${O[1]}`;
|
|
|
38402
38402
|
type: "password",
|
|
38403
38403
|
placeholder: n("placeholder.password"),
|
|
38404
38404
|
value: c.confirmPassword,
|
|
38405
|
-
onChange: (
|
|
38406
|
-
error:
|
|
38405
|
+
onChange: (p) => w("confirmPassword", p.target.value),
|
|
38406
|
+
error: d.confirmPassword,
|
|
38407
38407
|
required: !0
|
|
38408
38408
|
}
|
|
38409
38409
|
),
|
|
@@ -38422,40 +38422,42 @@ ${O[1]}`;
|
|
|
38422
38422
|
error: n,
|
|
38423
38423
|
className: c = "",
|
|
38424
38424
|
variant: u = "default",
|
|
38425
|
-
layout:
|
|
38426
|
-
...
|
|
38425
|
+
layout: d = "embedded",
|
|
38426
|
+
...s
|
|
38427
38427
|
}) => {
|
|
38428
|
-
const { t: i } = b0(), f =
|
|
38429
|
-
const
|
|
38430
|
-
return
|
|
38431
|
-
},
|
|
38432
|
-
const
|
|
38433
|
-
p(
|
|
38434
|
-
},
|
|
38435
|
-
if (
|
|
38428
|
+
const { t: i } = b0(), f = u === "hexa-login", w = d === "page", [g, p] = S(""), [h, M] = S({}), [y, A] = S(!1), [R, v] = S(null), [L, F] = S(null), $ = t !== void 0 ? t : y, k = n !== void 0 ? n : L, Q = (C) => C && C.includes("@"), P = (C) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(C), W = () => {
|
|
38429
|
+
const C = {};
|
|
38430
|
+
return g ? P(g) || (C.email = i("errors.invalidEmail") ?? "El mail ingresado no es válido") : C.email = i("errors.required") ?? "Este campo es obligatorio", M(C), Object.keys(C).length === 0;
|
|
38431
|
+
}, O = (C) => {
|
|
38432
|
+
const j = C.target.value;
|
|
38433
|
+
p(j), h.email && M((T) => ({ ...T, email: null })), L && F(null);
|
|
38434
|
+
}, r0 = async (C) => {
|
|
38435
|
+
if (C.preventDefault(), !!W()) {
|
|
38436
38436
|
if (!r) {
|
|
38437
38437
|
console.warn("ForgotPassword: onSubmit prop is required");
|
|
38438
38438
|
return;
|
|
38439
38439
|
}
|
|
38440
|
-
t === void 0 &&
|
|
38440
|
+
t === void 0 && A(!0), M({}), F(null);
|
|
38441
38441
|
try {
|
|
38442
|
-
const
|
|
38443
|
-
|
|
38444
|
-
} catch (
|
|
38445
|
-
let
|
|
38446
|
-
|
|
38442
|
+
const j = await r({ email: g, countryCode: null });
|
|
38443
|
+
j?.resetLink ? v(j.resetLink) : v("success");
|
|
38444
|
+
} catch (j) {
|
|
38445
|
+
let T = i("forgotPassword.errors.sendFailed") ?? "Error al enviar el link. Intenta nuevamente.";
|
|
38446
|
+
j?.response?.status === 404 ? T = j?.response?.data?.message || j?.message || "No se encontró una cuenta asociada a este correo electrónico. Por favor, verifica que el correo esté correcto." : j?.response?.status === 400 ? T = j?.response?.data?.message || j?.message || "El correo electrónico ingresado no es válido." : j?.response?.status >= 500 ? T = "Error del servidor. Por favor, intenta más tarde." : j?.message && (T = j.message), n === void 0 && F(T);
|
|
38447
38447
|
} finally {
|
|
38448
|
-
t === void 0 &&
|
|
38448
|
+
t === void 0 && A(!1);
|
|
38449
38449
|
}
|
|
38450
38450
|
}
|
|
38451
38451
|
};
|
|
38452
38452
|
return /* @__PURE__ */ l.jsx(
|
|
38453
38453
|
"div",
|
|
38454
38454
|
{
|
|
38455
|
-
className: `${
|
|
38456
|
-
style:
|
|
38457
|
-
|
|
38458
|
-
|
|
38455
|
+
className: `${w ? "min-h-screen flex flex-col" : ""} ${c}`,
|
|
38456
|
+
style: w ? { backgroundColor: "#f5f5f5" } : void 0,
|
|
38457
|
+
"data-variant": f ? "hexa-login" : void 0,
|
|
38458
|
+
"data-layout": d,
|
|
38459
|
+
...s,
|
|
38460
|
+
children: /* @__PURE__ */ l.jsx("div", { className: w ? "flex-1 flex items-center justify-center p-4" : "p-4", children: /* @__PURE__ */ l.jsxs("div", { className: "w-full max-w-md", children: [
|
|
38459
38461
|
/* @__PURE__ */ l.jsxs("div", { className: "mb-8 text-center", children: [
|
|
38460
38462
|
/* @__PURE__ */ l.jsx(
|
|
38461
38463
|
x,
|
|
@@ -38494,7 +38496,7 @@ ${O[1]}`;
|
|
|
38494
38496
|
)
|
|
38495
38497
|
] }),
|
|
38496
38498
|
/* @__PURE__ */ l.jsxs("div", { className: "bg-white border border-gray-200 rounded-lg p-6 shadow-md", children: [
|
|
38497
|
-
|
|
38499
|
+
R && !$ && /* @__PURE__ */ l.jsxs("div", { className: "text-center space-y-4", children: [
|
|
38498
38500
|
/* @__PURE__ */ l.jsxs(
|
|
38499
38501
|
"div",
|
|
38500
38502
|
{
|
|
@@ -38525,17 +38527,17 @@ ${O[1]}`;
|
|
|
38525
38527
|
]
|
|
38526
38528
|
}
|
|
38527
38529
|
),
|
|
38528
|
-
|
|
38530
|
+
R !== "success" && /* @__PURE__ */ l.jsx(
|
|
38529
38531
|
"a",
|
|
38530
38532
|
{
|
|
38531
|
-
href:
|
|
38533
|
+
href: R,
|
|
38532
38534
|
className: "inline-block px-4 py-2 rounded-lg font-medium text-white hover:opacity-90 transition-opacity",
|
|
38533
38535
|
style: { backgroundColor: "#2D5C63" },
|
|
38534
38536
|
children: i("forgotPassword.success.linkLabel") ?? "Ir a restablecer contraseña"
|
|
38535
38537
|
}
|
|
38536
38538
|
)
|
|
38537
38539
|
] }),
|
|
38538
|
-
|
|
38540
|
+
$ && /* @__PURE__ */ l.jsx("div", { className: "text-center space-y-4", children: /* @__PURE__ */ l.jsxs(
|
|
38539
38541
|
"div",
|
|
38540
38542
|
{
|
|
38541
38543
|
className: "rounded-lg p-4 border",
|
|
@@ -38574,7 +38576,7 @@ ${O[1]}`;
|
|
|
38574
38576
|
]
|
|
38575
38577
|
}
|
|
38576
38578
|
) }),
|
|
38577
|
-
!
|
|
38579
|
+
!R && !$ && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
38578
38580
|
a && /* @__PURE__ */ l.jsxs(
|
|
38579
38581
|
"button",
|
|
38580
38582
|
{
|
|
@@ -38588,7 +38590,7 @@ ${O[1]}`;
|
|
|
38588
38590
|
]
|
|
38589
38591
|
}
|
|
38590
38592
|
),
|
|
38591
|
-
/* @__PURE__ */ l.jsxs("form", { onSubmit:
|
|
38593
|
+
/* @__PURE__ */ l.jsxs("form", { onSubmit: r0, className: "space-y-4", children: [
|
|
38592
38594
|
/* @__PURE__ */ l.jsxs("div", { children: [
|
|
38593
38595
|
/* @__PURE__ */ l.jsx(
|
|
38594
38596
|
"label",
|
|
@@ -38603,19 +38605,19 @@ ${O[1]}`;
|
|
|
38603
38605
|
{
|
|
38604
38606
|
type: "email",
|
|
38605
38607
|
placeholder: i("login.emailPlaceholder") ?? i("placeholder.email") ?? "Ingresa tu correo electrónico",
|
|
38606
|
-
value:
|
|
38607
|
-
onChange:
|
|
38608
|
+
value: g,
|
|
38609
|
+
onChange: O,
|
|
38608
38610
|
className: "w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm text-gray-900",
|
|
38609
38611
|
style: {
|
|
38610
|
-
borderColor:
|
|
38612
|
+
borderColor: h.email ? "#ef4444" : "#2D5C63",
|
|
38611
38613
|
borderWidth: "1px",
|
|
38612
38614
|
borderStyle: "solid"
|
|
38613
38615
|
}
|
|
38614
38616
|
}
|
|
38615
38617
|
),
|
|
38616
|
-
|
|
38618
|
+
h.email && /* @__PURE__ */ l.jsx("p", { className: "mt-1 text-sm text-red-600", children: h.email })
|
|
38617
38619
|
] }),
|
|
38618
|
-
|
|
38620
|
+
k && /* @__PURE__ */ l.jsx(
|
|
38619
38621
|
"div",
|
|
38620
38622
|
{
|
|
38621
38623
|
className: "rounded-lg p-4 border",
|
|
@@ -38629,7 +38631,7 @@ ${O[1]}`;
|
|
|
38629
38631
|
variant: "body2",
|
|
38630
38632
|
className: "font-bold",
|
|
38631
38633
|
style: { color: "#b91c1c" },
|
|
38632
|
-
children:
|
|
38634
|
+
children: k
|
|
38633
38635
|
}
|
|
38634
38636
|
)
|
|
38635
38637
|
}
|
|
@@ -38642,7 +38644,7 @@ ${O[1]}`;
|
|
|
38642
38644
|
tamaño: "Default",
|
|
38643
38645
|
type: "submit",
|
|
38644
38646
|
className: "w-full",
|
|
38645
|
-
disabled:
|
|
38647
|
+
disabled: $ || !Q(g),
|
|
38646
38648
|
children: /* @__PURE__ */ l.jsx(
|
|
38647
38649
|
"span",
|
|
38648
38650
|
{
|
|
@@ -38654,7 +38656,7 @@ ${O[1]}`;
|
|
|
38654
38656
|
lineHeight: "24px",
|
|
38655
38657
|
letterSpacing: "0%"
|
|
38656
38658
|
},
|
|
38657
|
-
children:
|
|
38659
|
+
children: $ ? i("forgotPassword.sending") ?? "Enviando..." : i("forgotPassword.button") ?? "Enviar link"
|
|
38658
38660
|
}
|
|
38659
38661
|
)
|
|
38660
38662
|
}
|
|
@@ -38674,57 +38676,59 @@ ${O[1]}`;
|
|
|
38674
38676
|
// Password field
|
|
38675
38677
|
passwordLabel: c,
|
|
38676
38678
|
passwordPlaceholder: u,
|
|
38677
|
-
passwordValue:
|
|
38678
|
-
onPasswordChange:
|
|
38679
|
+
passwordValue: d,
|
|
38680
|
+
onPasswordChange: s,
|
|
38679
38681
|
passwordError: i,
|
|
38680
38682
|
// Confirm field
|
|
38681
38683
|
confirmPasswordLabel: f,
|
|
38682
38684
|
confirmPasswordPlaceholder: w,
|
|
38683
|
-
confirmPasswordValue:
|
|
38684
|
-
onConfirmPasswordChange:
|
|
38685
|
+
confirmPasswordValue: g,
|
|
38686
|
+
onConfirmPasswordChange: p,
|
|
38685
38687
|
confirmPasswordError: h,
|
|
38686
38688
|
// Requirements box
|
|
38687
|
-
requirementsTitle:
|
|
38689
|
+
requirementsTitle: M,
|
|
38688
38690
|
requirementsItems: y = [],
|
|
38689
|
-
requirementsPrefix:
|
|
38691
|
+
requirementsPrefix: A,
|
|
38690
38692
|
showRequirements: R = !0,
|
|
38691
38693
|
// General error
|
|
38692
38694
|
generalError: v,
|
|
38693
38695
|
// Actions
|
|
38694
|
-
cancelLabel:
|
|
38695
|
-
submitLabel:
|
|
38696
|
-
onCancel:
|
|
38697
|
-
onSubmit:
|
|
38698
|
-
disabled:
|
|
38699
|
-
submitting:
|
|
38696
|
+
cancelLabel: L,
|
|
38697
|
+
submitLabel: F,
|
|
38698
|
+
onCancel: $,
|
|
38699
|
+
onSubmit: k,
|
|
38700
|
+
disabled: Q = !1,
|
|
38701
|
+
submitting: P = !1,
|
|
38700
38702
|
// Success
|
|
38701
|
-
success:
|
|
38702
|
-
successTitle:
|
|
38703
|
-
successMessage:
|
|
38704
|
-
successExtra:
|
|
38705
|
-
className:
|
|
38706
|
-
...
|
|
38703
|
+
success: W = !1,
|
|
38704
|
+
successTitle: O,
|
|
38705
|
+
successMessage: r0,
|
|
38706
|
+
successExtra: C,
|
|
38707
|
+
className: j = "",
|
|
38708
|
+
...T
|
|
38707
38709
|
}) => {
|
|
38708
|
-
const { t:
|
|
38709
|
-
_.preventDefault(),
|
|
38710
|
-
password:
|
|
38711
|
-
confirmPassword:
|
|
38710
|
+
const { t: K } = b0(), D = a === "hexa-login", Z = r === "page", H = (_) => {
|
|
38711
|
+
_.preventDefault(), k && !Q && !P && k({
|
|
38712
|
+
password: d,
|
|
38713
|
+
confirmPassword: g
|
|
38712
38714
|
});
|
|
38713
38715
|
};
|
|
38714
|
-
return
|
|
38716
|
+
return W ? /* @__PURE__ */ l.jsx(
|
|
38715
38717
|
"div",
|
|
38716
38718
|
{
|
|
38717
|
-
className: `${
|
|
38718
|
-
style:
|
|
38719
|
-
|
|
38720
|
-
|
|
38719
|
+
className: `${Z ? "min-h-screen flex flex-col" : ""} ${j}`,
|
|
38720
|
+
style: Z ? { backgroundColor: "#f5f5f5" } : void 0,
|
|
38721
|
+
"data-variant": D ? "hexa-login" : void 0,
|
|
38722
|
+
"data-layout": r,
|
|
38723
|
+
...T,
|
|
38724
|
+
children: /* @__PURE__ */ l.jsx("div", { className: Z ? "flex-1 flex items-center justify-center p-4" : "p-4", children: /* @__PURE__ */ l.jsxs("div", { className: "w-full max-w-md", children: [
|
|
38721
38725
|
(t || n) && /* @__PURE__ */ l.jsxs("div", { className: "mb-8 text-center", children: [
|
|
38722
38726
|
t && /* @__PURE__ */ l.jsx(
|
|
38723
38727
|
x,
|
|
38724
38728
|
{
|
|
38725
38729
|
variant: "h3",
|
|
38726
38730
|
className: "mb-2 font-semibold",
|
|
38727
|
-
style:
|
|
38731
|
+
style: D ? {
|
|
38728
38732
|
color: "#2D5C63",
|
|
38729
38733
|
fontFamily: "inherit",
|
|
38730
38734
|
fontWeight: 400,
|
|
@@ -38742,7 +38746,7 @@ ${O[1]}`;
|
|
|
38742
38746
|
{
|
|
38743
38747
|
variant: "body2",
|
|
38744
38748
|
className: "text-gray-600",
|
|
38745
|
-
style:
|
|
38749
|
+
style: D ? {
|
|
38746
38750
|
fontFamily: "inherit",
|
|
38747
38751
|
fontWeight: 400,
|
|
38748
38752
|
fontStyle: "normal",
|
|
@@ -38764,25 +38768,25 @@ ${O[1]}`;
|
|
|
38764
38768
|
borderColor: "#10b981"
|
|
38765
38769
|
},
|
|
38766
38770
|
children: [
|
|
38767
|
-
|
|
38771
|
+
O && /* @__PURE__ */ l.jsx(
|
|
38768
38772
|
x,
|
|
38769
38773
|
{
|
|
38770
38774
|
variant: "body2",
|
|
38771
38775
|
className: "font-medium",
|
|
38772
38776
|
style: { color: "#065f46" },
|
|
38773
|
-
children:
|
|
38777
|
+
children: O
|
|
38774
38778
|
}
|
|
38775
38779
|
),
|
|
38776
|
-
|
|
38780
|
+
r0 && /* @__PURE__ */ l.jsx(
|
|
38777
38781
|
x,
|
|
38778
38782
|
{
|
|
38779
38783
|
variant: "body2",
|
|
38780
|
-
className:
|
|
38784
|
+
className: O ? "mt-2" : "",
|
|
38781
38785
|
style: { color: "#047857", fontSize: "14px" },
|
|
38782
|
-
children:
|
|
38786
|
+
children: r0
|
|
38783
38787
|
}
|
|
38784
38788
|
),
|
|
38785
|
-
|
|
38789
|
+
C && /* @__PURE__ */ l.jsx("div", { className: "mt-4", children: C })
|
|
38786
38790
|
]
|
|
38787
38791
|
}
|
|
38788
38792
|
) })
|
|
@@ -38791,17 +38795,19 @@ ${O[1]}`;
|
|
|
38791
38795
|
) : /* @__PURE__ */ l.jsx(
|
|
38792
38796
|
"div",
|
|
38793
38797
|
{
|
|
38794
|
-
className: `${
|
|
38795
|
-
style:
|
|
38796
|
-
|
|
38797
|
-
|
|
38798
|
+
className: `${Z ? "min-h-screen flex flex-col" : ""} ${j}`,
|
|
38799
|
+
style: Z ? { backgroundColor: "#f5f5f5" } : void 0,
|
|
38800
|
+
"data-variant": D ? "hexa-login" : void 0,
|
|
38801
|
+
"data-layout": r,
|
|
38802
|
+
...T,
|
|
38803
|
+
children: /* @__PURE__ */ l.jsx("div", { className: Z ? "flex-1 flex items-center justify-center p-4" : "p-4", children: /* @__PURE__ */ l.jsxs("div", { className: "w-full max-w-md", children: [
|
|
38798
38804
|
(t || n) && /* @__PURE__ */ l.jsxs("div", { className: "mb-8 text-center", children: [
|
|
38799
38805
|
t && /* @__PURE__ */ l.jsx(
|
|
38800
38806
|
x,
|
|
38801
38807
|
{
|
|
38802
38808
|
variant: "h3",
|
|
38803
38809
|
className: "mb-2 font-semibold",
|
|
38804
|
-
style:
|
|
38810
|
+
style: D ? {
|
|
38805
38811
|
color: "#2D5C63",
|
|
38806
38812
|
fontFamily: "inherit",
|
|
38807
38813
|
fontWeight: 400,
|
|
@@ -38819,7 +38825,7 @@ ${O[1]}`;
|
|
|
38819
38825
|
{
|
|
38820
38826
|
variant: "body2",
|
|
38821
38827
|
className: "text-gray-600",
|
|
38822
|
-
style:
|
|
38828
|
+
style: D ? {
|
|
38823
38829
|
fontFamily: "inherit",
|
|
38824
38830
|
fontWeight: 400,
|
|
38825
38831
|
fontStyle: "normal",
|
|
@@ -38836,16 +38842,16 @@ ${O[1]}`;
|
|
|
38836
38842
|
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(
|
|
38837
38843
|
ye,
|
|
38838
38844
|
{
|
|
38839
|
-
variant:
|
|
38845
|
+
variant: D ? "hexa-login" : void 0,
|
|
38840
38846
|
label: c,
|
|
38841
|
-
labelClassName:
|
|
38842
|
-
labelStyle:
|
|
38847
|
+
labelClassName: D ? "block mb-2 font-medium text-sm" : void 0,
|
|
38848
|
+
labelStyle: D ? { color: "#2D5C63" } : void 0,
|
|
38843
38849
|
placeholder: u,
|
|
38844
|
-
value:
|
|
38845
|
-
onChange:
|
|
38850
|
+
value: d || "",
|
|
38851
|
+
onChange: s,
|
|
38846
38852
|
error: i,
|
|
38847
|
-
inputClassName:
|
|
38848
|
-
style:
|
|
38853
|
+
inputClassName: D ? "w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm text-gray-900 anima-passwordfield__input" : void 0,
|
|
38854
|
+
style: D ? {
|
|
38849
38855
|
borderColor: i ? "#ef4444" : "#2D5C63",
|
|
38850
38856
|
borderWidth: "1px",
|
|
38851
38857
|
borderStyle: "solid"
|
|
@@ -38855,16 +38861,16 @@ ${O[1]}`;
|
|
|
38855
38861
|
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(
|
|
38856
38862
|
ye,
|
|
38857
38863
|
{
|
|
38858
|
-
variant:
|
|
38864
|
+
variant: D ? "hexa-login" : void 0,
|
|
38859
38865
|
label: f,
|
|
38860
|
-
labelClassName:
|
|
38861
|
-
labelStyle:
|
|
38866
|
+
labelClassName: D ? "block mb-2 font-medium text-sm" : void 0,
|
|
38867
|
+
labelStyle: D ? { color: "#2D5C63" } : void 0,
|
|
38862
38868
|
placeholder: w,
|
|
38863
|
-
value:
|
|
38864
|
-
onChange:
|
|
38869
|
+
value: g || "",
|
|
38870
|
+
onChange: p,
|
|
38865
38871
|
error: h,
|
|
38866
|
-
inputClassName:
|
|
38867
|
-
style:
|
|
38872
|
+
inputClassName: D ? "w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm text-gray-900 anima-passwordfield__input" : void 0,
|
|
38873
|
+
style: D ? {
|
|
38868
38874
|
borderColor: h ? "#ef4444" : "#2D5C63",
|
|
38869
38875
|
borderWidth: "1px",
|
|
38870
38876
|
borderStyle: "solid"
|
|
@@ -38891,10 +38897,10 @@ ${O[1]}`;
|
|
|
38891
38897
|
fontFamily: "'IBM Plex Mono', monospace",
|
|
38892
38898
|
whiteSpace: "pre-line"
|
|
38893
38899
|
},
|
|
38894
|
-
children:
|
|
38895
|
-
const _ =
|
|
38896
|
-
|
|
38897
|
-
|
|
38900
|
+
children: M || (() => {
|
|
38901
|
+
const _ = A || K("form.passwordRequirementsPrefix") || "Recuerda que la contraseña debe tener:", n0 = y.length > 0 ? y : [
|
|
38902
|
+
K("form.passwordRequirementMinChars") || "Un mínimo de 6 caracteres",
|
|
38903
|
+
K("form.passwordRequirementOther") || "Una mayúscula, un número, un carácter especial"
|
|
38898
38904
|
];
|
|
38899
38905
|
return `${_}
|
|
38900
38906
|
${n0[0]}
|
|
@@ -38925,7 +38931,7 @@ ${n0.slice(1).join(", ")}`;
|
|
|
38925
38931
|
}
|
|
38926
38932
|
),
|
|
38927
38933
|
/* @__PURE__ */ l.jsxs("div", { className: "flex gap-4 pt-4", children: [
|
|
38928
|
-
|
|
38934
|
+
$ && /* @__PURE__ */ l.jsx(
|
|
38929
38935
|
m0,
|
|
38930
38936
|
{
|
|
38931
38937
|
type: "button",
|
|
@@ -38933,12 +38939,12 @@ ${n0.slice(1).join(", ")}`;
|
|
|
38933
38939
|
color: "Teal",
|
|
38934
38940
|
tamaño: "Default",
|
|
38935
38941
|
className: "flex-1",
|
|
38936
|
-
onClick:
|
|
38937
|
-
disabled:
|
|
38942
|
+
onClick: $,
|
|
38943
|
+
disabled: Q || P,
|
|
38938
38944
|
children: /* @__PURE__ */ l.jsx(
|
|
38939
38945
|
"span",
|
|
38940
38946
|
{
|
|
38941
|
-
style:
|
|
38947
|
+
style: D ? {
|
|
38942
38948
|
fontFamily: "'IBM Plex Sans', sans-serif",
|
|
38943
38949
|
fontWeight: 400,
|
|
38944
38950
|
fontStyle: "normal",
|
|
@@ -38946,7 +38952,7 @@ ${n0.slice(1).join(", ")}`;
|
|
|
38946
38952
|
lineHeight: "24px",
|
|
38947
38953
|
letterSpacing: "0%"
|
|
38948
38954
|
} : void 0,
|
|
38949
|
-
children:
|
|
38955
|
+
children: L || "Cancelar"
|
|
38950
38956
|
}
|
|
38951
38957
|
)
|
|
38952
38958
|
}
|
|
@@ -38958,12 +38964,12 @@ ${n0.slice(1).join(", ")}`;
|
|
|
38958
38964
|
tipo: "Primary",
|
|
38959
38965
|
color: "Teal",
|
|
38960
38966
|
tamaño: "Default",
|
|
38961
|
-
className:
|
|
38962
|
-
disabled:
|
|
38967
|
+
className: $ ? "flex-1" : "w-full",
|
|
38968
|
+
disabled: Q || P,
|
|
38963
38969
|
children: /* @__PURE__ */ l.jsx(
|
|
38964
38970
|
"span",
|
|
38965
38971
|
{
|
|
38966
|
-
style:
|
|
38972
|
+
style: D ? {
|
|
38967
38973
|
fontFamily: "'IBM Plex Sans', sans-serif",
|
|
38968
38974
|
fontWeight: 400,
|
|
38969
38975
|
fontStyle: "normal",
|
|
@@ -38971,7 +38977,7 @@ ${n0.slice(1).join(", ")}`;
|
|
|
38971
38977
|
lineHeight: "24px",
|
|
38972
38978
|
letterSpacing: "0%"
|
|
38973
38979
|
} : void 0,
|
|
38974
|
-
children:
|
|
38980
|
+
children: P ? "Guardando..." : F || "Guardar"
|
|
38975
38981
|
}
|
|
38976
38982
|
)
|
|
38977
38983
|
}
|
|
@@ -38990,25 +38996,25 @@ ${n0.slice(1).join(", ")}`;
|
|
|
38990
38996
|
className: c = "",
|
|
38991
38997
|
...u
|
|
38992
38998
|
}) => {
|
|
38993
|
-
const { t:
|
|
38999
|
+
const { t: d } = b0(), [s, i] = S(""), f = Ze(null), w = () => {
|
|
38994
39000
|
f.current?.scrollIntoView({ behavior: "smooth" });
|
|
38995
39001
|
};
|
|
38996
39002
|
Z0(() => {
|
|
38997
39003
|
w();
|
|
38998
39004
|
}, [r]);
|
|
38999
|
-
const
|
|
39000
|
-
h.preventDefault(),
|
|
39001
|
-
},
|
|
39005
|
+
const g = (h) => {
|
|
39006
|
+
h.preventDefault(), s.trim() && t && (t(s.trim()), i(""));
|
|
39007
|
+
}, p = r.length > 0 ? r : [];
|
|
39002
39008
|
return /* @__PURE__ */ l.jsxs("div", { className: `flex flex-col h-full bg-white rounded-lg shadow-md ${c}`, ...u, children: [
|
|
39003
39009
|
/* @__PURE__ */ l.jsx("div", { className: "px-4 py-3 border-b border-gray-200 bg-gray-50", children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center", children: [
|
|
39004
39010
|
/* @__PURE__ */ l.jsx("div", { className: "flex-shrink-0", children: a === "ai" ? /* @__PURE__ */ l.jsx("div", { className: "w-10 h-10 rounded-full bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center", children: /* @__PURE__ */ l.jsx(b, { name: "Cog6ToothIcon", className: "h-6 w-6 text-white" }) }) : /* @__PURE__ */ l.jsx("div", { className: "w-10 h-10 rounded-full bg-gray-300 flex items-center justify-center", children: /* @__PURE__ */ l.jsx(b, { name: "UserIcon", className: "h-6 w-6 text-gray-600" }) }) }),
|
|
39005
39011
|
/* @__PURE__ */ l.jsxs("div", { className: "ml-3", children: [
|
|
39006
|
-
/* @__PURE__ */ l.jsx("h3", { className: "text-sm font-medium text-gray-900", children:
|
|
39012
|
+
/* @__PURE__ */ l.jsx("h3", { className: "text-sm font-medium text-gray-900", children: d(a === "ai" ? "chat.ai" : "chat.user") }),
|
|
39007
39013
|
a === "ai" && /* @__PURE__ */ l.jsx("p", { className: "text-xs text-gray-500", children: "En línea" })
|
|
39008
39014
|
] })
|
|
39009
39015
|
] }) }),
|
|
39010
39016
|
/* @__PURE__ */ l.jsxs("div", { className: "flex-1 overflow-y-auto p-4 space-y-4", children: [
|
|
39011
|
-
|
|
39017
|
+
p.length === 0 ? /* @__PURE__ */ l.jsx("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ l.jsx("p", { className: "text-gray-400 text-sm", children: d("chat.empty") }) }) : p.map((h, M) => /* @__PURE__ */ l.jsx(
|
|
39012
39018
|
"div",
|
|
39013
39019
|
{
|
|
39014
39020
|
className: `flex ${h.sender === "user" ? "justify-end" : "justify-start"}`,
|
|
@@ -39032,18 +39038,18 @@ ${n0.slice(1).join(", ")}`;
|
|
|
39032
39038
|
}
|
|
39033
39039
|
)
|
|
39034
39040
|
},
|
|
39035
|
-
|
|
39041
|
+
M
|
|
39036
39042
|
)),
|
|
39037
|
-
n && /* @__PURE__ */ l.jsx("div", { className: "flex justify-start", children: /* @__PURE__ */ l.jsx("div", { className: "bg-gray-100 text-gray-900 px-4 py-2 rounded-lg", children: /* @__PURE__ */ l.jsx("p", { className: "text-sm", children:
|
|
39043
|
+
n && /* @__PURE__ */ l.jsx("div", { className: "flex justify-start", children: /* @__PURE__ */ l.jsx("div", { className: "bg-gray-100 text-gray-900 px-4 py-2 rounded-lg", children: /* @__PURE__ */ l.jsx("p", { className: "text-sm", children: d("chat.loading") }) }) }),
|
|
39038
39044
|
/* @__PURE__ */ l.jsx("div", { ref: f })
|
|
39039
39045
|
] }),
|
|
39040
|
-
/* @__PURE__ */ l.jsx("form", { onSubmit:
|
|
39046
|
+
/* @__PURE__ */ l.jsx("form", { onSubmit: g, className: "px-4 py-3 border-t border-gray-200", children: /* @__PURE__ */ l.jsxs("div", { className: "flex space-x-2", children: [
|
|
39041
39047
|
/* @__PURE__ */ l.jsx(
|
|
39042
39048
|
Y0,
|
|
39043
39049
|
{
|
|
39044
|
-
value:
|
|
39050
|
+
value: s,
|
|
39045
39051
|
onChange: (h) => i(h.target.value),
|
|
39046
|
-
placeholder:
|
|
39052
|
+
placeholder: d("chat.placeholder"),
|
|
39047
39053
|
className: "flex-1",
|
|
39048
39054
|
disabled: n
|
|
39049
39055
|
}
|
|
@@ -39053,8 +39059,8 @@ ${n0.slice(1).join(", ")}`;
|
|
|
39053
39059
|
{
|
|
39054
39060
|
type: "submit",
|
|
39055
39061
|
variant: "primary",
|
|
39056
|
-
disabled: !
|
|
39057
|
-
children:
|
|
39062
|
+
disabled: !s.trim() || n,
|
|
39063
|
+
children: d("chat.send")
|
|
39058
39064
|
}
|
|
39059
39065
|
)
|
|
39060
39066
|
] }) })
|