anima-ds-nucleus 1.0.26 → 1.0.27
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 +52 -52
- package/dist/anima-ds.esm.js +230 -219
- package/package.json +1 -1
- package/src/components/Layout/Header/HeaderCore.jsx +1 -1
- package/src/components/Layout/NavPoint/NavPoint.jsx +2 -1
- package/src/components/Layout/Sidebar/SidebarCore.jsx +14 -9
- package/src/components/Views/ForgotPassword/ForgotPassword.jsx +10 -2
- package/src/components/Views/NewPassword/NewPassword.jsx +4 -1
- package/src/style.css +24 -0
package/dist/anima-ds.esm.js
CHANGED
|
@@ -41,29 +41,29 @@ function Je() {
|
|
|
41
41
|
}
|
|
42
42
|
function L(o, m, E) {
|
|
43
43
|
{
|
|
44
|
-
var B = R.ReactDebugCurrentFrame,
|
|
45
|
-
|
|
44
|
+
var B = R.ReactDebugCurrentFrame, _ = B.getStackAddendum();
|
|
45
|
+
_ !== "" && (m += "%s", E = E.concat([_]));
|
|
46
46
|
var X = E.map(function(N) {
|
|
47
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 F = !1,
|
|
52
|
+
var F = !1, k = !1, $ = !1, Q = !1, P = !1, W;
|
|
53
53
|
W = Symbol.for("react.module.reference");
|
|
54
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 ||
|
|
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
59
|
o.$$typeof === W || o.getModuleId !== void 0));
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function n0(o, m, E) {
|
|
62
62
|
var B = o.displayName;
|
|
63
63
|
if (B)
|
|
64
64
|
return B;
|
|
65
|
-
var
|
|
66
|
-
return
|
|
65
|
+
var _ = m.displayName || m.name || "";
|
|
66
|
+
return _ !== "" ? E + "(" + _ + ")" : E;
|
|
67
67
|
}
|
|
68
68
|
function C(o) {
|
|
69
69
|
return o.displayName || "Context";
|
|
@@ -98,12 +98,12 @@ function Je() {
|
|
|
98
98
|
var E = o;
|
|
99
99
|
return C(E._context) + ".Provider";
|
|
100
100
|
case i:
|
|
101
|
-
return
|
|
101
|
+
return n0(o, o.render, "ForwardRef");
|
|
102
102
|
case g:
|
|
103
103
|
var B = o.displayName || null;
|
|
104
104
|
return B !== null ? B : j(o.type) || "Memo";
|
|
105
105
|
case p: {
|
|
106
|
-
var
|
|
106
|
+
var _ = o, X = _._payload, N = _._init;
|
|
107
107
|
try {
|
|
108
108
|
return j(N(X));
|
|
109
109
|
} catch {
|
|
@@ -113,14 +113,14 @@ function Je() {
|
|
|
113
113
|
}
|
|
114
114
|
return null;
|
|
115
115
|
}
|
|
116
|
-
var T = Object.assign, K = 0, D, Z, H,
|
|
116
|
+
var T = Object.assign, K = 0, D, Z, H, z, t0, J, c0;
|
|
117
117
|
function U() {
|
|
118
118
|
}
|
|
119
119
|
U.__reactDisabledLog = !0;
|
|
120
120
|
function g0() {
|
|
121
121
|
{
|
|
122
122
|
if (K === 0) {
|
|
123
|
-
D = console.log, Z = console.info, H = console.warn,
|
|
123
|
+
D = console.log, Z = console.info, H = console.warn, z = console.error, t0 = console.group, J = console.groupCollapsed, c0 = console.groupEnd;
|
|
124
124
|
var o = {
|
|
125
125
|
configurable: !0,
|
|
126
126
|
enumerable: !0,
|
|
@@ -159,13 +159,13 @@ function Je() {
|
|
|
159
159
|
value: H
|
|
160
160
|
}),
|
|
161
161
|
error: T({}, o, {
|
|
162
|
-
value:
|
|
162
|
+
value: z
|
|
163
163
|
}),
|
|
164
164
|
group: T({}, o, {
|
|
165
|
-
value:
|
|
165
|
+
value: t0
|
|
166
166
|
}),
|
|
167
167
|
groupCollapsed: T({}, o, {
|
|
168
|
-
value:
|
|
168
|
+
value: J
|
|
169
169
|
}),
|
|
170
170
|
groupEnd: T({}, o, {
|
|
171
171
|
value: c0
|
|
@@ -181,8 +181,8 @@ function Je() {
|
|
|
181
181
|
if (l0 === void 0)
|
|
182
182
|
try {
|
|
183
183
|
throw Error();
|
|
184
|
-
} catch (
|
|
185
|
-
var B =
|
|
184
|
+
} catch (_) {
|
|
185
|
+
var B = _.stack.trim().match(/\n( *(at )?)/);
|
|
186
186
|
l0 = B && B[1] || "";
|
|
187
187
|
}
|
|
188
188
|
return `
|
|
@@ -204,7 +204,7 @@ function Je() {
|
|
|
204
204
|
}
|
|
205
205
|
var B;
|
|
206
206
|
C0 = !0;
|
|
207
|
-
var
|
|
207
|
+
var _ = Error.prepareStackTrace;
|
|
208
208
|
Error.prepareStackTrace = void 0;
|
|
209
209
|
var X;
|
|
210
210
|
X = v0.current, v0.current = null, g0();
|
|
@@ -244,23 +244,23 @@ function Je() {
|
|
|
244
244
|
if (h0 && B && typeof h0.stack == "string") {
|
|
245
245
|
for (var V = h0.stack.split(`
|
|
246
246
|
`), d0 = B.stack.split(`
|
|
247
|
-
`),
|
|
248
|
-
|
|
249
|
-
for (;
|
|
250
|
-
if (V[
|
|
251
|
-
if (
|
|
247
|
+
`), a0 = V.length - 1, r0 = d0.length - 1; a0 >= 1 && r0 >= 0 && V[a0] !== d0[r0]; )
|
|
248
|
+
r0--;
|
|
249
|
+
for (; a0 >= 1 && r0 >= 0; a0--, r0--)
|
|
250
|
+
if (V[a0] !== d0[r0]) {
|
|
251
|
+
if (a0 !== 1 || r0 !== 1)
|
|
252
252
|
do
|
|
253
|
-
if (
|
|
253
|
+
if (a0--, r0--, r0 < 0 || V[a0] !== d0[r0]) {
|
|
254
254
|
var p0 = `
|
|
255
|
-
` + V[
|
|
255
|
+
` + V[a0].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 (a0 >= 1 && r0 >= 0);
|
|
259
259
|
break;
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
} finally {
|
|
263
|
-
C0 = !1, v0.current = X, M0(), Error.prepareStackTrace =
|
|
263
|
+
C0 = !1, v0.current = X, M0(), Error.prepareStackTrace = _;
|
|
264
264
|
}
|
|
265
265
|
var q0 = o ? o.displayName || o.name : "", W0 = q0 ? x0(q0) : "";
|
|
266
266
|
return typeof o == "function" && R0.set(o, W0), W0;
|
|
@@ -292,9 +292,9 @@ function Je() {
|
|
|
292
292
|
case g:
|
|
293
293
|
return E0(o.type, m, E);
|
|
294
294
|
case p: {
|
|
295
|
-
var B = o,
|
|
295
|
+
var B = o, _ = B._payload, X = B._init;
|
|
296
296
|
try {
|
|
297
|
-
return E0(X(
|
|
297
|
+
return E0(X(_), m, E);
|
|
298
298
|
} catch {
|
|
299
299
|
}
|
|
300
300
|
}
|
|
@@ -309,7 +309,7 @@ function Je() {
|
|
|
309
309
|
} else
|
|
310
310
|
z0.setExtraStackFrame(null);
|
|
311
311
|
}
|
|
312
|
-
function ee(o, m, E, B,
|
|
312
|
+
function ee(o, m, E, B, _) {
|
|
313
313
|
{
|
|
314
314
|
var X = Function.call.bind(A0);
|
|
315
315
|
for (var N in o)
|
|
@@ -321,10 +321,10 @@ function Je() {
|
|
|
321
321
|
throw d0.name = "Invariant Violation", d0;
|
|
322
322
|
}
|
|
323
323
|
V = o[N](m, N, B, E, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
324
|
-
} catch (
|
|
325
|
-
V =
|
|
324
|
+
} catch (a0) {
|
|
325
|
+
V = a0;
|
|
326
326
|
}
|
|
327
|
-
V && !(V instanceof Error) && (L0(
|
|
327
|
+
V && !(V instanceof Error) && (L0(_), 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(_), v("Failed %s type: %s", E, V.message), L0(null));
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
}
|
|
@@ -377,7 +377,7 @@ function Je() {
|
|
|
377
377
|
function s0(o, m) {
|
|
378
378
|
typeof o.ref == "string" && G.current;
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function e0(o, m) {
|
|
381
381
|
{
|
|
382
382
|
var E = function() {
|
|
383
383
|
F0 || (F0 = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
|
|
@@ -399,7 +399,7 @@ function Je() {
|
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
var o0 = function(o, m, E, B,
|
|
402
|
+
var o0 = function(o, m, E, B, _, X, N) {
|
|
403
403
|
var V = {
|
|
404
404
|
// This tag allows us to uniquely identify this as a React Element
|
|
405
405
|
$$typeof: r,
|
|
@@ -425,25 +425,25 @@ function Je() {
|
|
|
425
425
|
configurable: !1,
|
|
426
426
|
enumerable: !1,
|
|
427
427
|
writable: !1,
|
|
428
|
-
value:
|
|
428
|
+
value: _
|
|
429
429
|
}), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
|
|
430
430
|
};
|
|
431
|
-
function N0(o, m, E, B,
|
|
431
|
+
function N0(o, m, E, B, _) {
|
|
432
432
|
{
|
|
433
433
|
var X, N = {}, V = null, d0 = null;
|
|
434
|
-
E !== void 0 && (Y(E), V = "" + E), O0(m) && (Y(m.key), V = "" + m.key), _0(m) && (d0 = m.ref, s0(m,
|
|
434
|
+
E !== void 0 && (Y(E), V = "" + E), O0(m) && (Y(m.key), V = "" + m.key), _0(m) && (d0 = m.ref, s0(m, _));
|
|
435
435
|
for (X in m)
|
|
436
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
|
-
N[X] === void 0 && (N[X] =
|
|
438
|
+
var a0 = o.defaultProps;
|
|
439
|
+
for (X in a0)
|
|
440
|
+
N[X] === void 0 && (N[X] = a0[X]);
|
|
441
441
|
}
|
|
442
442
|
if (V || d0) {
|
|
443
|
-
var
|
|
444
|
-
V &&
|
|
443
|
+
var r0 = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
444
|
+
V && e0(N, r0), d0 && j0(N, r0);
|
|
445
445
|
}
|
|
446
|
-
return o0(o, V, d0,
|
|
446
|
+
return o0(o, V, d0, _, B, G.current, N);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
var $0 = R.ReactCurrentOwner, q = R.ReactDebugCurrentFrame;
|
|
@@ -512,9 +512,9 @@ Check the top-level render call using <` + E + ">.");
|
|
|
512
512
|
else if (re(o))
|
|
513
513
|
o._store && (o._store.validated = !0);
|
|
514
514
|
else if (o) {
|
|
515
|
-
var
|
|
516
|
-
if (typeof
|
|
517
|
-
for (var X =
|
|
515
|
+
var _ = A(o);
|
|
516
|
+
if (typeof _ == "function" && _ !== o.entries)
|
|
517
|
+
for (var X = _.call(o), N; !(N = X.next()).done; )
|
|
518
518
|
re(N.value) && ve(N.value, m);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
@@ -538,8 +538,8 @@ Check the top-level render call using <` + E + ">.");
|
|
|
538
538
|
ee(E, o.props, "prop", B, o);
|
|
539
539
|
} else if (m.PropTypes !== void 0 && !H0) {
|
|
540
540
|
H0 = !0;
|
|
541
|
-
var
|
|
542
|
-
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
541
|
+
var _ = j(m);
|
|
542
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "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.");
|
|
545
545
|
}
|
|
@@ -557,7 +557,7 @@ Check the top-level render call using <` + E + ">.");
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
var w0 = {};
|
|
560
|
-
function P0(o, m, E, B,
|
|
560
|
+
function P0(o, m, E, B, _, X) {
|
|
561
561
|
{
|
|
562
562
|
var N = O(o);
|
|
563
563
|
if (!N) {
|
|
@@ -565,12 +565,12 @@ Check the top-level render call using <` + E + ">.");
|
|
|
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 a0;
|
|
569
|
+
o === null ? a0 = "null" : V0(o) ? a0 = "array" : o !== void 0 && o.$$typeof === r ? (a0 = "<" + (j(o.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : a0 = 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", a0, V);
|
|
570
570
|
}
|
|
571
|
-
var
|
|
572
|
-
if (
|
|
573
|
-
return
|
|
571
|
+
var r0 = N0(o, m, E, _, X);
|
|
572
|
+
if (r0 == null)
|
|
573
|
+
return r0;
|
|
574
574
|
if (N) {
|
|
575
575
|
var p0 = m.children;
|
|
576
576
|
if (p0 !== void 0)
|
|
@@ -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(r0) : ge(r0), r0;
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
function I(o, m, E) {
|
|
@@ -662,16 +662,16 @@ const m0 = ({
|
|
|
662
662
|
// gray-400
|
|
663
663
|
background: "#F3F4F6"
|
|
664
664
|
// gray-100
|
|
665
|
-
}, L = h[c] || h.Teal, [F,
|
|
665
|
+
}, L = h[c] || h.Teal, [F, k] = S(!1), $ = 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
669
|
}, W = (Z, H = 1) => {
|
|
670
|
-
const
|
|
671
|
-
return `rgba(${
|
|
670
|
+
const z = parseInt(Z.slice(1, 3), 16), t0 = parseInt(Z.slice(3, 5), 16), J = parseInt(Z.slice(5, 7), 16);
|
|
671
|
+
return `rgba(${z}, ${t0}, ${J}, ${H})`;
|
|
672
672
|
}, O = () => {
|
|
673
673
|
const Z = {};
|
|
674
|
-
if (
|
|
674
|
+
if ($) {
|
|
675
675
|
switch (g) {
|
|
676
676
|
case "Primary":
|
|
677
677
|
Z.backgroundColor = v.background, Z.color = v.text;
|
|
@@ -694,13 +694,13 @@ const m0 = ({
|
|
|
694
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" ? (Z.color =
|
|
697
|
+
const z = A[c] || L, t0 = R[c] || L;
|
|
698
|
+
c === "Honey" ? (Z.color = t0, Z.backgroundColor = "#ffffff", F && (Z.backgroundColor = W(z, 0.1))) : (Z.color = t0, Z.backgroundColor = F ? W(z, 0.1) : "transparent");
|
|
699
699
|
break;
|
|
700
700
|
}
|
|
701
701
|
return Z;
|
|
702
702
|
}, C = (() => {
|
|
703
|
-
if (
|
|
703
|
+
if ($)
|
|
704
704
|
switch (g) {
|
|
705
705
|
case "Primary":
|
|
706
706
|
return {
|
|
@@ -749,10 +749,10 @@ const m0 = ({
|
|
|
749
749
|
${Q}
|
|
750
750
|
${j}
|
|
751
751
|
${C.base}
|
|
752
|
-
${
|
|
752
|
+
${$ ? C.disabled : "cursor-pointer"}
|
|
753
753
|
${f}
|
|
754
754
|
`.trim().replace(/\s+/g, " "), D = (Z) => {
|
|
755
|
-
|
|
755
|
+
!$ && d && d(Z);
|
|
756
756
|
};
|
|
757
757
|
return /* @__PURE__ */ l.jsx(
|
|
758
758
|
"button",
|
|
@@ -760,10 +760,10 @@ const m0 = ({
|
|
|
760
760
|
type: s,
|
|
761
761
|
className: K,
|
|
762
762
|
style: T,
|
|
763
|
-
disabled:
|
|
763
|
+
disabled: $,
|
|
764
764
|
onClick: D,
|
|
765
|
-
onMouseEnter: () =>
|
|
766
|
-
onMouseLeave: () =>
|
|
765
|
+
onMouseEnter: () => !$ && k(!0),
|
|
766
|
+
onMouseLeave: () => k(!1),
|
|
767
767
|
...w,
|
|
768
768
|
children: p
|
|
769
769
|
}
|
|
@@ -32333,13 +32333,13 @@ const Be = zD, b = ({
|
|
|
32333
32333
|
mobileIconStyle: L,
|
|
32334
32334
|
// Sección de Configuración
|
|
32335
32335
|
configSectionLabel: F = "Configuración",
|
|
32336
|
-
configSectionIcon:
|
|
32337
|
-
configSectionId:
|
|
32336
|
+
configSectionIcon: k = "Cog6ToothIcon",
|
|
32337
|
+
configSectionId: $ = "configuracion",
|
|
32338
32338
|
onConfigClick: Q,
|
|
32339
32339
|
configBadge: P,
|
|
32340
32340
|
isOpen: W,
|
|
32341
32341
|
onClose: O,
|
|
32342
|
-
className:
|
|
32342
|
+
className: n0 = "",
|
|
32343
32343
|
...C
|
|
32344
32344
|
}) => {
|
|
32345
32345
|
const [j, T] = S(!1), [K, D] = S(null), Z = W !== void 0 ? W : j, H = h && K != null ? K : r;
|
|
@@ -32348,7 +32348,7 @@ const Be = zD, b = ({
|
|
|
32348
32348
|
}, [r, K, h]), Z0(() => {
|
|
32349
32349
|
h && !Z && K != null && D(null);
|
|
32350
32350
|
}, [Z, K, h]);
|
|
32351
|
-
const
|
|
32351
|
+
const z = () => {
|
|
32352
32352
|
O ? O() : T(!j);
|
|
32353
32353
|
};
|
|
32354
32354
|
return (() => {
|
|
@@ -32377,7 +32377,7 @@ const Be = zD, b = ({
|
|
|
32377
32377
|
!Z && W === void 0 && /* @__PURE__ */ l.jsx(
|
|
32378
32378
|
"button",
|
|
32379
32379
|
{
|
|
32380
|
-
onClick:
|
|
32380
|
+
onClick: z,
|
|
32381
32381
|
className: `fixed top-4 left-4 z-50 p-2 bg-white rounded-lg \r
|
|
32382
32382
|
hover:bg-gray-50 transition-colors`,
|
|
32383
32383
|
style: { border: "1px solid #C4C4C4" },
|
|
@@ -32410,14 +32410,14 @@ const Be = zD, b = ({
|
|
|
32410
32410
|
transition: `opacity ${g}ms ${p}`
|
|
32411
32411
|
},
|
|
32412
32412
|
onClick: () => {
|
|
32413
|
-
O ? O() :
|
|
32413
|
+
O ? O() : z();
|
|
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 ${n0}`,
|
|
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: [
|
|
@@ -32464,7 +32464,7 @@ const Be = zD, b = ({
|
|
|
32464
32464
|
"button",
|
|
32465
32465
|
{
|
|
32466
32466
|
onClick: () => {
|
|
32467
|
-
O ? O() :
|
|
32467
|
+
O ? O() : z();
|
|
32468
32468
|
},
|
|
32469
32469
|
className: "p-1 hover:bg-gray-100 rounded transition-colors flex-shrink-0",
|
|
32470
32470
|
"aria-label": "Cerrar menú",
|
|
@@ -32492,7 +32492,7 @@ const Be = zD, b = ({
|
|
|
32492
32492
|
"button",
|
|
32493
32493
|
{
|
|
32494
32494
|
onClick: () => {
|
|
32495
|
-
t && t("inicio"), O ? O() :
|
|
32495
|
+
t && t("inicio"), O ? O() : z();
|
|
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" } : {},
|
|
@@ -32542,20 +32542,19 @@ const Be = zD, b = ({
|
|
|
32542
32542
|
]
|
|
32543
32543
|
}
|
|
32544
32544
|
) }),
|
|
32545
|
-
a.map((
|
|
32545
|
+
a.map((J, 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
|
-
|
|
32550
|
-
|
|
32551
|
-
children: e0.title
|
|
32549
|
+
className: "text-sidebar-core color-gray-500 uppercase font-medium tracking-wider",
|
|
32550
|
+
children: J.title
|
|
32552
32551
|
}
|
|
32553
32552
|
) }),
|
|
32554
|
-
/* @__PURE__ */ l.jsx("div", { children:
|
|
32553
|
+
/* @__PURE__ */ l.jsx("div", { children: J.items.map((U) => /* @__PURE__ */ l.jsx("div", { className: "px-4", children: /* @__PURE__ */ l.jsxs(
|
|
32555
32554
|
"button",
|
|
32556
32555
|
{
|
|
32557
32556
|
onClick: () => {
|
|
32558
|
-
h && D(U.id), t && t(U.id), O ? M ? requestAnimationFrame(() => O()) : O() :
|
|
32557
|
+
h && D(U.id), t && t(U.id), O ? M ? requestAnimationFrame(() => O()) : O() : z();
|
|
32559
32558
|
},
|
|
32560
32559
|
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
32560
|
style: H === U.id ? { backgroundColor: "#2D5C63" } : {},
|
|
@@ -32622,7 +32621,7 @@ const Be = zD, b = ({
|
|
|
32622
32621
|
{
|
|
32623
32622
|
style: {
|
|
32624
32623
|
position: "absolute",
|
|
32625
|
-
top: "
|
|
32624
|
+
top: "0px",
|
|
32626
32625
|
left: "16px",
|
|
32627
32626
|
right: "16px",
|
|
32628
32627
|
height: "1px",
|
|
@@ -32634,19 +32633,19 @@ const Be = zD, b = ({
|
|
|
32634
32633
|
"button",
|
|
32635
32634
|
{
|
|
32636
32635
|
onClick: () => {
|
|
32637
|
-
h && D(
|
|
32636
|
+
h && D($), t && t($), Q && Q($), O ? M ? requestAnimationFrame(() => O()) : O() : z();
|
|
32638
32637
|
},
|
|
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 ===
|
|
32638
|
+
className: `w-full flex items-center cursor-pointer px-4 justify-between py-2.5 rounded-lg transition-all duration-200 ${H === $ ? "" : "color-gray-700 hover:bg-gray-100"}`,
|
|
32639
|
+
style: H === $ ? { backgroundColor: "#2D5C63" } : {},
|
|
32641
32640
|
children: [
|
|
32642
32641
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center", children: [
|
|
32643
32642
|
/* @__PURE__ */ l.jsx(
|
|
32644
32643
|
b,
|
|
32645
32644
|
{
|
|
32646
|
-
name:
|
|
32645
|
+
name: k,
|
|
32647
32646
|
variant: "24-outline",
|
|
32648
32647
|
size: v,
|
|
32649
|
-
className: `mr-3 ${H ===
|
|
32648
|
+
className: `mr-3 ${H === $ ? "color-white" : "color-gray-700"}`,
|
|
32650
32649
|
style: {
|
|
32651
32650
|
width: `${v}px`,
|
|
32652
32651
|
height: `${v}px`,
|
|
@@ -32660,8 +32659,8 @@ const Be = zD, b = ({
|
|
|
32660
32659
|
x,
|
|
32661
32660
|
{
|
|
32662
32661
|
variant: "body-md",
|
|
32663
|
-
weight: H ===
|
|
32664
|
-
className: H ===
|
|
32662
|
+
weight: H === $ ? R : A,
|
|
32663
|
+
className: H === $ ? "color-white" : "color-gray-700",
|
|
32665
32664
|
style: { fontSize: y },
|
|
32666
32665
|
children: F
|
|
32667
32666
|
}
|
|
@@ -32674,8 +32673,8 @@ const Be = zD, b = ({
|
|
|
32674
32673
|
rounded-full flex items-center justify-center\r
|
|
32675
32674
|
text-body-sm font-medium`,
|
|
32676
32675
|
style: {
|
|
32677
|
-
backgroundColor: H ===
|
|
32678
|
-
color: H ===
|
|
32676
|
+
backgroundColor: H === $ ? "#ffffff" : "#6D3856",
|
|
32677
|
+
color: H === $ ? "#6D3856" : "#ffffff",
|
|
32679
32678
|
borderRadius: "12px"
|
|
32680
32679
|
},
|
|
32681
32680
|
children: P > 9 ? "9+" : P
|
|
@@ -32702,9 +32701,9 @@ const Be = zD, b = ({
|
|
|
32702
32701
|
style: { color: "#2D5C63" },
|
|
32703
32702
|
className: "text-center",
|
|
32704
32703
|
children: (() => {
|
|
32705
|
-
const
|
|
32706
|
-
if (
|
|
32707
|
-
const c0 =
|
|
32704
|
+
const J = s.split("|");
|
|
32705
|
+
if (J.length === 2) {
|
|
32706
|
+
const c0 = J[0].trim(), U = J[1].trim();
|
|
32708
32707
|
if (U.includes("Powered by")) {
|
|
32709
32708
|
const g0 = U.match(/Powered by (.+)/);
|
|
32710
32709
|
if (g0)
|
|
@@ -32764,14 +32763,14 @@ const Be = zD, b = ({
|
|
|
32764
32763
|
desktopCollapseIconStyle: L,
|
|
32765
32764
|
// Desktop: overrides para el control de expandir (solo cuando está colapsado)
|
|
32766
32765
|
desktopExpandButtonClassName: F = "",
|
|
32767
|
-
desktopExpandButtonStyle:
|
|
32768
|
-
desktopExpandIconSize:
|
|
32766
|
+
desktopExpandButtonStyle: k,
|
|
32767
|
+
desktopExpandIconSize: $ = 20,
|
|
32769
32768
|
desktopExpandIconStrokeWidth: Q = 1.5,
|
|
32770
32769
|
desktopExpandIconColor: P = "#0F172A",
|
|
32771
32770
|
desktopExpandIconClassName: W = "",
|
|
32772
32771
|
desktopExpandIconStyle: O,
|
|
32773
32772
|
// Desktop: labels de items (solo cuando NO está colapsado)
|
|
32774
|
-
desktopItemLabelFontSize:
|
|
32773
|
+
desktopItemLabelFontSize: n0 = "1rem",
|
|
32775
32774
|
desktopItemLabelWeightInactive: C = "regular",
|
|
32776
32775
|
desktopItemLabelWeightActive: j = "semibold",
|
|
32777
32776
|
// Desktop: íconos de navegación (items)
|
|
@@ -32782,9 +32781,9 @@ const Be = zD, b = ({
|
|
|
32782
32781
|
desktopCollapsedIconInnerStyle: Z,
|
|
32783
32782
|
desktopCollapsedIconWrapperStyle: H,
|
|
32784
32783
|
// Desktop colapsado: solapamiento icono + badge (mínimo)
|
|
32785
|
-
desktopCollapsedOverlapEnabled:
|
|
32786
|
-
desktopCollapsedOverlapIconMarginLeftPx:
|
|
32787
|
-
desktopCollapsedOverlapBadgeMarginLeftPx:
|
|
32784
|
+
desktopCollapsedOverlapEnabled: z = !0,
|
|
32785
|
+
desktopCollapsedOverlapIconMarginLeftPx: t0 = 3,
|
|
32786
|
+
desktopCollapsedOverlapBadgeMarginLeftPx: J = -6,
|
|
32788
32787
|
desktopCollapsedOverlapColumnGapPx: c0 = 0,
|
|
32789
32788
|
desktopNavIconStyle: U,
|
|
32790
32789
|
// Desktop colapsado: wrapper de cada item (Inicio + opciones)
|
|
@@ -32830,7 +32829,7 @@ const Be = zD, b = ({
|
|
|
32830
32829
|
// Sección de Configuración
|
|
32831
32830
|
configSectionLabel: O0 = "Configuración",
|
|
32832
32831
|
configSectionIcon: s0 = "Cog6ToothIcon",
|
|
32833
|
-
configSectionId:
|
|
32832
|
+
configSectionId: e0 = "configuracion",
|
|
32834
32833
|
onConfigClick: j0,
|
|
32835
32834
|
configBadge: o0,
|
|
32836
32835
|
className: N0 = "",
|
|
@@ -32887,7 +32886,7 @@ const Be = zD, b = ({
|
|
|
32887
32886
|
coreTextStyle: D0,
|
|
32888
32887
|
configSectionLabel: O0,
|
|
32889
32888
|
configSectionIcon: s0,
|
|
32890
|
-
configSectionId:
|
|
32889
|
+
configSectionId: e0,
|
|
32891
32890
|
onConfigClick: j0,
|
|
32892
32891
|
configBadge: o0,
|
|
32893
32892
|
className: N0,
|
|
@@ -33020,19 +33019,19 @@ const Be = zD, b = ({
|
|
|
33020
33019
|
onClick: ue,
|
|
33021
33020
|
className: `p-1.5 hover:bg-gray-100 rounded-lg transition-colors ${F}`,
|
|
33022
33021
|
"aria-label": "Expandir sidebar",
|
|
33023
|
-
style:
|
|
33022
|
+
style: k,
|
|
33024
33023
|
children: /* @__PURE__ */ l.jsx(
|
|
33025
33024
|
b,
|
|
33026
33025
|
{
|
|
33027
33026
|
name: "ChevronDoubleRightIcon",
|
|
33028
33027
|
variant: "24-outline",
|
|
33029
|
-
size:
|
|
33028
|
+
size: $,
|
|
33030
33029
|
strokeWidth: Q,
|
|
33031
33030
|
className: W,
|
|
33032
33031
|
style: {
|
|
33033
33032
|
color: P,
|
|
33034
|
-
width: `${
|
|
33035
|
-
height: `${
|
|
33033
|
+
width: `${$}px`,
|
|
33034
|
+
height: `${$}px`,
|
|
33036
33035
|
opacity: 1,
|
|
33037
33036
|
transform: "rotate(0deg)",
|
|
33038
33037
|
...O || {}
|
|
@@ -33087,7 +33086,7 @@ const Be = zD, b = ({
|
|
|
33087
33086
|
display: "flex",
|
|
33088
33087
|
alignItems: "center",
|
|
33089
33088
|
justifyContent: "center",
|
|
33090
|
-
marginLeft:
|
|
33089
|
+
marginLeft: z && Y.inicio !== void 0 && Y.inicio > 0 ? `${t0}px` : void 0,
|
|
33091
33090
|
...H || {}
|
|
33092
33091
|
},
|
|
33093
33092
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -33139,7 +33138,7 @@ const Be = zD, b = ({
|
|
|
33139
33138
|
borderRadius: "16px",
|
|
33140
33139
|
opacity: 1,
|
|
33141
33140
|
transform: "rotate(0deg)",
|
|
33142
|
-
marginLeft:
|
|
33141
|
+
marginLeft: z ? `${J}px` : void 0,
|
|
33143
33142
|
boxSizing: "border-box",
|
|
33144
33143
|
...x0 || {}
|
|
33145
33144
|
},
|
|
@@ -33176,7 +33175,7 @@ const Be = zD, b = ({
|
|
|
33176
33175
|
weight: r === "inicio" ? j : C,
|
|
33177
33176
|
className: `${r === "inicio" ? "color-white" : "color-gray-700"} min-w-0`,
|
|
33178
33177
|
style: {
|
|
33179
|
-
fontSize:
|
|
33178
|
+
fontSize: n0,
|
|
33180
33179
|
overflow: "hidden",
|
|
33181
33180
|
textOverflow: "ellipsis",
|
|
33182
33181
|
whiteSpace: "nowrap"
|
|
@@ -33251,8 +33250,7 @@ const Be = zD, b = ({
|
|
|
33251
33250
|
!q && /* @__PURE__ */ l.jsx("div", { className: "px-4 mb-2", children: /* @__PURE__ */ l.jsx(
|
|
33252
33251
|
x,
|
|
33253
33252
|
{
|
|
33254
|
-
|
|
33255
|
-
className: "color-gray-500 uppercase font-medium tracking-wider",
|
|
33253
|
+
className: "text-sidebar-core color-gray-500 uppercase font-medium tracking-wider",
|
|
33256
33254
|
children: w0.title
|
|
33257
33255
|
}
|
|
33258
33256
|
) }),
|
|
@@ -33299,7 +33297,7 @@ const Be = zD, b = ({
|
|
|
33299
33297
|
display: "flex",
|
|
33300
33298
|
alignItems: "center",
|
|
33301
33299
|
justifyContent: "center",
|
|
33302
|
-
marginLeft:
|
|
33300
|
+
marginLeft: z && (Y[I.id] !== void 0 && Y[I.id] > 0 || I.id === "empleados") ? `${t0}px` : void 0,
|
|
33303
33301
|
...H || {}
|
|
33304
33302
|
},
|
|
33305
33303
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -33351,7 +33349,7 @@ const Be = zD, b = ({
|
|
|
33351
33349
|
borderRadius: "16px",
|
|
33352
33350
|
opacity: 1,
|
|
33353
33351
|
transform: "rotate(0deg)",
|
|
33354
|
-
marginLeft:
|
|
33352
|
+
marginLeft: z ? `${J}px` : void 0,
|
|
33355
33353
|
boxSizing: "border-box",
|
|
33356
33354
|
...x0 || {}
|
|
33357
33355
|
},
|
|
@@ -33388,7 +33386,7 @@ const Be = zD, b = ({
|
|
|
33388
33386
|
weight: r === I.id ? j : C,
|
|
33389
33387
|
className: `${r === I.id ? "color-white" : "color-gray-700"} min-w-0`,
|
|
33390
33388
|
style: {
|
|
33391
|
-
fontSize:
|
|
33389
|
+
fontSize: n0,
|
|
33392
33390
|
overflow: "hidden",
|
|
33393
33391
|
textOverflow: "ellipsis",
|
|
33394
33392
|
whiteSpace: "nowrap"
|
|
@@ -33434,7 +33432,7 @@ const Be = zD, b = ({
|
|
|
33434
33432
|
{
|
|
33435
33433
|
style: {
|
|
33436
33434
|
position: "absolute",
|
|
33437
|
-
top: "
|
|
33435
|
+
top: "0px",
|
|
33438
33436
|
left: "16px",
|
|
33439
33437
|
right: "16px",
|
|
33440
33438
|
height: "1px",
|
|
@@ -33445,9 +33443,11 @@ const Be = zD, b = ({
|
|
|
33445
33443
|
/* @__PURE__ */ l.jsxs(
|
|
33446
33444
|
"button",
|
|
33447
33445
|
{
|
|
33448
|
-
onClick: () =>
|
|
33449
|
-
|
|
33450
|
-
|
|
33446
|
+
onClick: () => {
|
|
33447
|
+
t && t(e0), j0 && j0(e0);
|
|
33448
|
+
},
|
|
33449
|
+
className: `w-full flex items-center cursor-pointer px-4 justify-between py-2.5 rounded-lg transition-all duration-200 ${r === e0 ? "" : "color-gray-700 hover:bg-gray-100"}`,
|
|
33450
|
+
style: r === e0 ? { backgroundColor: "#2D5C63" } : {},
|
|
33451
33451
|
children: [
|
|
33452
33452
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center", children: [
|
|
33453
33453
|
/* @__PURE__ */ l.jsx(
|
|
@@ -33456,17 +33456,17 @@ const Be = zD, b = ({
|
|
|
33456
33456
|
name: s0,
|
|
33457
33457
|
variant: "24-outline",
|
|
33458
33458
|
size: u0,
|
|
33459
|
-
className: `mr-3 ${r ===
|
|
33459
|
+
className: `mr-3 ${r === e0 ? "color-white" : "color-gray-700"}`
|
|
33460
33460
|
}
|
|
33461
33461
|
),
|
|
33462
33462
|
/* @__PURE__ */ l.jsx(
|
|
33463
33463
|
x,
|
|
33464
33464
|
{
|
|
33465
33465
|
variant: "body-lg",
|
|
33466
|
-
weight: r ===
|
|
33467
|
-
className: `${r ===
|
|
33466
|
+
weight: r === e0 ? j : C,
|
|
33467
|
+
className: `${r === e0 ? "color-white" : "color-gray-700"} min-w-0`,
|
|
33468
33468
|
style: {
|
|
33469
|
-
fontSize:
|
|
33469
|
+
fontSize: n0,
|
|
33470
33470
|
overflow: "hidden",
|
|
33471
33471
|
textOverflow: "ellipsis",
|
|
33472
33472
|
whiteSpace: "nowrap"
|
|
@@ -33482,8 +33482,8 @@ const Be = zD, b = ({
|
|
|
33482
33482
|
rounded-full flex items-center justify-center\r
|
|
33483
33483
|
text-body-sm font-medium`,
|
|
33484
33484
|
style: {
|
|
33485
|
-
backgroundColor: r ===
|
|
33486
|
-
color: r ===
|
|
33485
|
+
backgroundColor: r === e0 ? "#ffffff" : "#6D3856",
|
|
33486
|
+
color: r === e0 ? "#6D3856" : "#ffffff",
|
|
33487
33487
|
borderRadius: "12px"
|
|
33488
33488
|
},
|
|
33489
33489
|
children: o0 > 9 ? "9+" : o0
|
|
@@ -33510,7 +33510,7 @@ const Be = zD, b = ({
|
|
|
33510
33510
|
{
|
|
33511
33511
|
style: {
|
|
33512
33512
|
position: "absolute",
|
|
33513
|
-
top: "
|
|
33513
|
+
top: "0px",
|
|
33514
33514
|
left: "8px",
|
|
33515
33515
|
right: "8px",
|
|
33516
33516
|
height: "1px",
|
|
@@ -33524,14 +33524,16 @@ const Be = zD, b = ({
|
|
|
33524
33524
|
className: g0,
|
|
33525
33525
|
style: {
|
|
33526
33526
|
...G0,
|
|
33527
|
-
backgroundColor: r ===
|
|
33527
|
+
backgroundColor: r === e0 ? v0 : "transparent",
|
|
33528
33528
|
...M0 || {}
|
|
33529
33529
|
},
|
|
33530
33530
|
title: O0,
|
|
33531
33531
|
children: /* @__PURE__ */ l.jsx(
|
|
33532
33532
|
"button",
|
|
33533
33533
|
{
|
|
33534
|
-
onClick: () =>
|
|
33534
|
+
onClick: () => {
|
|
33535
|
+
t && t(e0), j0 && j0(e0);
|
|
33536
|
+
},
|
|
33535
33537
|
className: "flex items-center justify-center transition-all duration-200",
|
|
33536
33538
|
style: {
|
|
33537
33539
|
width: "100%",
|
|
@@ -33561,7 +33563,7 @@ const Be = zD, b = ({
|
|
|
33561
33563
|
display: "flex",
|
|
33562
33564
|
alignItems: "center",
|
|
33563
33565
|
justifyContent: "center",
|
|
33564
|
-
marginLeft:
|
|
33566
|
+
marginLeft: z && o0 !== void 0 && o0 > 0 ? `${t0}px` : void 0,
|
|
33565
33567
|
...H || {}
|
|
33566
33568
|
},
|
|
33567
33569
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -33583,7 +33585,7 @@ const Be = zD, b = ({
|
|
|
33583
33585
|
name: s0,
|
|
33584
33586
|
variant: "24-outline",
|
|
33585
33587
|
size: u0,
|
|
33586
|
-
className: r ===
|
|
33588
|
+
className: r === e0 ? "color-white" : "color-gray-700",
|
|
33587
33589
|
style: {
|
|
33588
33590
|
width: `${u0}px`,
|
|
33589
33591
|
height: `${u0}px`,
|
|
@@ -33602,8 +33604,8 @@ const Be = zD, b = ({
|
|
|
33602
33604
|
{
|
|
33603
33605
|
className: `flex items-center justify-center text-body-sm font-medium ${l0}`,
|
|
33604
33606
|
style: {
|
|
33605
|
-
backgroundColor: r ===
|
|
33606
|
-
color: r ===
|
|
33607
|
+
backgroundColor: r === e0 ? "#ffffff" : "#6D3856",
|
|
33608
|
+
color: r === e0 ? "#6D3856" : "#ffffff",
|
|
33607
33609
|
width: C0,
|
|
33608
33610
|
height: R0,
|
|
33609
33611
|
paddingTop: "4px",
|
|
@@ -33613,7 +33615,7 @@ const Be = zD, b = ({
|
|
|
33613
33615
|
borderRadius: "16px",
|
|
33614
33616
|
opacity: 1,
|
|
33615
33617
|
transform: "rotate(0deg)",
|
|
33616
|
-
marginLeft:
|
|
33618
|
+
marginLeft: z ? `${J}px` : void 0,
|
|
33617
33619
|
boxSizing: "border-box",
|
|
33618
33620
|
...x0 || {}
|
|
33619
33621
|
},
|
|
@@ -33779,14 +33781,14 @@ const Be = zD, b = ({
|
|
|
33779
33781
|
desktopSearchContainerStyle: v,
|
|
33780
33782
|
desktopRightContainerClassName: L = "",
|
|
33781
33783
|
desktopRightContainerStyle: F,
|
|
33782
|
-
notificationButtonClassName:
|
|
33783
|
-
notificationButtonStyle:
|
|
33784
|
+
notificationButtonClassName: k = "",
|
|
33785
|
+
notificationButtonStyle: $,
|
|
33784
33786
|
notificationIconClassName: Q = "",
|
|
33785
33787
|
notificationIconStyle: P,
|
|
33786
33788
|
notificationBadgeClassName: W = "",
|
|
33787
33789
|
notificationBadgeStyle: O,
|
|
33788
33790
|
// Overrides específicos de medidas/posiciones (Desktop / Mobile)
|
|
33789
|
-
notificationDesktopButtonStyle:
|
|
33791
|
+
notificationDesktopButtonStyle: n0,
|
|
33790
33792
|
notificationDesktopIconWrapperClassName: C = "",
|
|
33791
33793
|
notificationDesktopIconWrapperStyle: j,
|
|
33792
33794
|
notificationDesktopIconSize: T = 24,
|
|
@@ -33794,9 +33796,9 @@ const Be = zD, b = ({
|
|
|
33794
33796
|
notificationDesktopIconStyle: D,
|
|
33795
33797
|
notificationDesktopBadgeStyle: Z,
|
|
33796
33798
|
notificationMobileButtonClassName: H = "",
|
|
33797
|
-
notificationMobileButtonStyle:
|
|
33798
|
-
notificationMobileIconWrapperClassName:
|
|
33799
|
-
notificationMobileIconWrapperStyle:
|
|
33799
|
+
notificationMobileButtonStyle: z,
|
|
33800
|
+
notificationMobileIconWrapperClassName: t0 = "",
|
|
33801
|
+
notificationMobileIconWrapperStyle: J,
|
|
33800
33802
|
notificationMobileIconSize: c0 = 24,
|
|
33801
33803
|
notificationMobileIconStrokeWidth: U = 1.5,
|
|
33802
33804
|
notificationMobileIconStyle: g0,
|
|
@@ -33824,7 +33826,7 @@ const Be = zD, b = ({
|
|
|
33824
33826
|
className: de = "",
|
|
33825
33827
|
...se
|
|
33826
33828
|
}) => {
|
|
33827
|
-
const [S0, Y] = S(""), [G, y0] = S(!1), [F0, D0] = S(!1), [_0, O0] = S(void 0), s0 = Ze(null),
|
|
33829
|
+
const [S0, Y] = S(""), [G, y0] = S(!1), [F0, D0] = S(!1), [_0, O0] = S(void 0), s0 = Ze(null), e0 = c > 0 ? "BellAlertIcon" : "BellIcon", j0 = () => {
|
|
33828
33830
|
s0.current && (clearTimeout(s0.current), s0.current = null), D0(!0), y0(!1), requestAnimationFrame(() => y0(!0));
|
|
33829
33831
|
}, o0 = () => {
|
|
33830
33832
|
y0(!1);
|
|
@@ -33898,7 +33900,7 @@ const Be = zD, b = ({
|
|
|
33898
33900
|
}
|
|
33899
33901
|
}
|
|
33900
33902
|
` }),
|
|
33901
|
-
/* @__PURE__ */ l.jsxs("div", { className: "w-full",
|
|
33903
|
+
/* @__PURE__ */ l.jsxs("div", { className: "w-full", children: [
|
|
33902
33904
|
/* @__PURE__ */ l.jsxs(
|
|
33903
33905
|
"div",
|
|
33904
33906
|
{
|
|
@@ -33969,15 +33971,15 @@ const Be = zD, b = ({
|
|
|
33969
33971
|
"button",
|
|
33970
33972
|
{
|
|
33971
33973
|
onClick: d,
|
|
33972
|
-
className: `ml-3 p-2 hover:bg-gray-100 rounded-lg transition-colors flex items-center gap-2 ${
|
|
33974
|
+
className: `ml-3 p-2 hover:bg-gray-100 rounded-lg transition-colors flex items-center gap-2 ${k}`,
|
|
33973
33975
|
"aria-label": "Notificaciones",
|
|
33974
33976
|
style: {
|
|
33975
33977
|
// Nota: en desktop el contenedor derecho está anclado a la derecha (marginLeft: auto).
|
|
33976
33978
|
// Un ml-* en el primer hijo no “mueve” visualmente, porque ensancha el contenedor hacia la izquierda.
|
|
33977
33979
|
// Por eso usamos translateX por defecto (overrideable por props).
|
|
33978
33980
|
transform: "translateX(12px)",
|
|
33979
|
-
|
|
33980
|
-
...
|
|
33981
|
+
...$ || {},
|
|
33982
|
+
...n0 || {}
|
|
33981
33983
|
},
|
|
33982
33984
|
children: [
|
|
33983
33985
|
/* @__PURE__ */ l.jsx(
|
|
@@ -33993,7 +33995,7 @@ const Be = zD, b = ({
|
|
|
33993
33995
|
children: /* @__PURE__ */ l.jsx(
|
|
33994
33996
|
b,
|
|
33995
33997
|
{
|
|
33996
|
-
name:
|
|
33998
|
+
name: e0,
|
|
33997
33999
|
variant: "24-outline",
|
|
33998
34000
|
size: T,
|
|
33999
34001
|
strokeWidth: K,
|
|
@@ -34146,7 +34148,7 @@ const Be = zD, b = ({
|
|
|
34146
34148
|
"button",
|
|
34147
34149
|
{
|
|
34148
34150
|
onClick: d,
|
|
34149
|
-
className: `ml-2 hover:bg-gray-100 transition-colors flex items-center justify-center ${
|
|
34151
|
+
className: `ml-2 hover:bg-gray-100 transition-colors flex items-center justify-center ${k} ${H}`,
|
|
34150
34152
|
"aria-label": "Notificaciones",
|
|
34151
34153
|
style: {
|
|
34152
34154
|
width: "48px",
|
|
@@ -34155,24 +34157,24 @@ const Be = zD, b = ({
|
|
|
34155
34157
|
borderRadius: "8px",
|
|
34156
34158
|
opacity: 1,
|
|
34157
34159
|
transform: "rotate(0deg)",
|
|
34158
|
-
|
|
34159
|
-
...
|
|
34160
|
+
...$ || {},
|
|
34161
|
+
...z || {}
|
|
34160
34162
|
},
|
|
34161
34163
|
children: [
|
|
34162
34164
|
/* @__PURE__ */ l.jsx(
|
|
34163
34165
|
"span",
|
|
34164
34166
|
{
|
|
34165
|
-
className: `relative inline-block ${
|
|
34167
|
+
className: `relative inline-block ${t0}`,
|
|
34166
34168
|
style: {
|
|
34167
34169
|
width: "24px",
|
|
34168
34170
|
height: "24px",
|
|
34169
34171
|
opacity: 1,
|
|
34170
|
-
...
|
|
34172
|
+
...J || {}
|
|
34171
34173
|
},
|
|
34172
34174
|
children: /* @__PURE__ */ l.jsx(
|
|
34173
34175
|
b,
|
|
34174
34176
|
{
|
|
34175
|
-
name:
|
|
34177
|
+
name: e0,
|
|
34176
34178
|
variant: "24-outline",
|
|
34177
34179
|
size: c0,
|
|
34178
34180
|
strokeWidth: U,
|
|
@@ -34754,35 +34756,35 @@ const Be = zD, b = ({
|
|
|
34754
34756
|
children: L.title
|
|
34755
34757
|
}
|
|
34756
34758
|
) }),
|
|
34757
|
-
/* @__PURE__ */ l.jsx("div", { className: "space-y-1", children: L.items.map((
|
|
34759
|
+
/* @__PURE__ */ l.jsx("div", { className: "space-y-1", children: L.items.map((k) => /* @__PURE__ */ l.jsx("div", { className: "px-4", children: /* @__PURE__ */ l.jsxs(
|
|
34758
34760
|
"button",
|
|
34759
34761
|
{
|
|
34760
34762
|
onClick: () => {
|
|
34761
|
-
t && t(
|
|
34763
|
+
t && t(k.id), A();
|
|
34762
34764
|
},
|
|
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 ===
|
|
34765
|
+
className: `w-full flex items-center cursor-pointer px-4 justify-between py-2.5 rounded-lg transition-all duration-200 ${r === k.id ? "" : "color-gray-700 hover:bg-gray-100"}`,
|
|
34766
|
+
style: r === k.id ? { backgroundColor: "#2D5C63" } : {},
|
|
34765
34767
|
children: [
|
|
34766
34768
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center", children: [
|
|
34767
34769
|
/* @__PURE__ */ l.jsx(
|
|
34768
34770
|
b,
|
|
34769
34771
|
{
|
|
34770
|
-
name:
|
|
34772
|
+
name: k.icon,
|
|
34771
34773
|
variant: "24-outline",
|
|
34772
34774
|
size: 20,
|
|
34773
|
-
className: `mr-3 ${r ===
|
|
34775
|
+
className: `mr-3 ${r === k.id ? "color-white" : "color-gray-700"}`
|
|
34774
34776
|
}
|
|
34775
34777
|
),
|
|
34776
34778
|
/* @__PURE__ */ l.jsx(
|
|
34777
34779
|
x,
|
|
34778
34780
|
{
|
|
34779
34781
|
variant: "body-md",
|
|
34780
|
-
className: `font-medium ${r ===
|
|
34781
|
-
children:
|
|
34782
|
+
className: `font-medium ${r === k.id ? "color-white" : "color-gray-700"}`,
|
|
34783
|
+
children: k.label
|
|
34782
34784
|
}
|
|
34783
34785
|
)
|
|
34784
34786
|
] }),
|
|
34785
|
-
(d[
|
|
34787
|
+
(d[k.id] !== void 0 && d[k.id] > 0 || k.id === "empleados" && 2) && /* @__PURE__ */ l.jsx(
|
|
34786
34788
|
"span",
|
|
34787
34789
|
{
|
|
34788
34790
|
className: `px-2 py-0.5 min-w-[20px] h-5 \r
|
|
@@ -34792,12 +34794,12 @@ const Be = zD, b = ({
|
|
|
34792
34794
|
backgroundColor: "#6D3856",
|
|
34793
34795
|
borderRadius: "12px"
|
|
34794
34796
|
},
|
|
34795
|
-
children:
|
|
34797
|
+
children: k.id === "empleados" ? 2 : d[k.id] > 9 ? "9+" : d[k.id]
|
|
34796
34798
|
}
|
|
34797
34799
|
)
|
|
34798
34800
|
]
|
|
34799
34801
|
}
|
|
34800
|
-
) },
|
|
34802
|
+
) }, k.id)) })
|
|
34801
34803
|
] }, F))
|
|
34802
34804
|
] })
|
|
34803
34805
|
] })
|
|
@@ -34825,9 +34827,9 @@ const Be = zD, b = ({
|
|
|
34825
34827
|
const [A, R] = S(""), [v, L] = S(!1), F = (W) => {
|
|
34826
34828
|
const O = W.target.value;
|
|
34827
34829
|
R(O), c && c(O);
|
|
34828
|
-
}, $ = (W) => {
|
|
34829
|
-
W.preventDefault(), c && c(A);
|
|
34830
34830
|
}, k = (W) => {
|
|
34831
|
+
W.preventDefault(), c && c(A);
|
|
34832
|
+
}, $ = (W) => {
|
|
34831
34833
|
f && f(W), L(!1);
|
|
34832
34834
|
}, Q = () => {
|
|
34833
34835
|
L(!1);
|
|
@@ -35034,7 +35036,7 @@ const Be = zD, b = ({
|
|
|
35034
35036
|
children: [
|
|
35035
35037
|
/* @__PURE__ */ l.jsxs("div", { className: "w-full", style: { paddingLeft: "4px", paddingRight: "4px" }, children: [
|
|
35036
35038
|
/* @__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:
|
|
35039
|
+
/* @__PURE__ */ l.jsx("div", { className: "header-search-wrapper", style: { marginRight: "16px" }, children: /* @__PURE__ */ l.jsxs("form", { onSubmit: k, className: "header-search-form flex items-center w-full", children: [
|
|
35038
35040
|
/* @__PURE__ */ l.jsx(
|
|
35039
35041
|
"input",
|
|
35040
35042
|
{
|
|
@@ -35181,7 +35183,7 @@ const Be = zD, b = ({
|
|
|
35181
35183
|
}
|
|
35182
35184
|
) })
|
|
35183
35185
|
] }),
|
|
35184
|
-
/* @__PURE__ */ l.jsx("div", { className: "header-mobile-search-row", children: /* @__PURE__ */ l.jsxs("form", { onSubmit:
|
|
35186
|
+
/* @__PURE__ */ l.jsx("div", { className: "header-mobile-search-row", children: /* @__PURE__ */ l.jsxs("form", { onSubmit: k, className: "header-search-form flex items-center w-full", children: [
|
|
35185
35187
|
/* @__PURE__ */ l.jsx(
|
|
35186
35188
|
"input",
|
|
35187
35189
|
{
|
|
@@ -35227,7 +35229,7 @@ const Be = zD, b = ({
|
|
|
35227
35229
|
{
|
|
35228
35230
|
sections: s,
|
|
35229
35231
|
activeItem: i,
|
|
35230
|
-
onItemClick:
|
|
35232
|
+
onItemClick: $,
|
|
35231
35233
|
itemBadges: w,
|
|
35232
35234
|
companyName: g,
|
|
35233
35235
|
companyLogo: p,
|
|
@@ -35529,8 +35531,8 @@ const Be = zD, b = ({
|
|
|
35529
35531
|
...M
|
|
35530
35532
|
}) => {
|
|
35531
35533
|
const [y, A] = S(""), R = (F) => F > 9 ? "9+" : F, v = (F) => {
|
|
35532
|
-
const
|
|
35533
|
-
A(
|
|
35534
|
+
const k = F.target.value;
|
|
35535
|
+
A(k), c && c(k);
|
|
35534
35536
|
}, L = (F) => {
|
|
35535
35537
|
F.preventDefault(), c && c(y);
|
|
35536
35538
|
};
|
|
@@ -35784,9 +35786,10 @@ const Be = zD, b = ({
|
|
|
35784
35786
|
x,
|
|
35785
35787
|
{
|
|
35786
35788
|
variant: "body-sm",
|
|
35787
|
-
className:
|
|
35789
|
+
className: `mt-1 ${f ? "font-medium" : "font-regular"} nav-point-text`,
|
|
35788
35790
|
style: {
|
|
35789
35791
|
color: f ? hN : mN,
|
|
35792
|
+
fontSize: "1rem",
|
|
35790
35793
|
whiteSpace: "nowrap",
|
|
35791
35794
|
overflow: "hidden",
|
|
35792
35795
|
textOverflow: "ellipsis",
|
|
@@ -36243,13 +36246,13 @@ const Be = zD, b = ({
|
|
|
36243
36246
|
// Layout / styles (overrideable)
|
|
36244
36247
|
className: L = "",
|
|
36245
36248
|
style: F,
|
|
36246
|
-
leftClassName:
|
|
36247
|
-
leftStyle:
|
|
36249
|
+
leftClassName: k = "",
|
|
36250
|
+
leftStyle: $,
|
|
36248
36251
|
rightClassName: Q = "",
|
|
36249
36252
|
rightStyle: P,
|
|
36250
36253
|
saludoFechaContainerClassName: W = "",
|
|
36251
36254
|
saludoFechaContainerStyle: O,
|
|
36252
|
-
inicioContainerClassName:
|
|
36255
|
+
inicioContainerClassName: n0 = "",
|
|
36253
36256
|
inicioContainerStyle: C,
|
|
36254
36257
|
inicioTextClassName: j = "",
|
|
36255
36258
|
inicioTextStyle: T,
|
|
@@ -36257,9 +36260,9 @@ const Be = zD, b = ({
|
|
|
36257
36260
|
inicioIconStyle: D,
|
|
36258
36261
|
greetingClassName: Z = "",
|
|
36259
36262
|
greetingStyle: H,
|
|
36260
|
-
greetingPrefix:
|
|
36261
|
-
greetingSuffix:
|
|
36262
|
-
nameClassName:
|
|
36263
|
+
greetingPrefix: z = "¡",
|
|
36264
|
+
greetingSuffix: t0 = "!",
|
|
36265
|
+
nameClassName: J = "",
|
|
36263
36266
|
nameStyle: c0,
|
|
36264
36267
|
dateTextClassName: U = "",
|
|
36265
36268
|
dateTextStyle: g0,
|
|
@@ -36297,7 +36300,7 @@ const Be = zD, b = ({
|
|
|
36297
36300
|
u && /* @__PURE__ */ l.jsxs(
|
|
36298
36301
|
"div",
|
|
36299
36302
|
{
|
|
36300
|
-
className: `scfd-inicio col-start-1 row-start-1 flex items-center gap-1 ${
|
|
36303
|
+
className: `scfd-inicio col-start-1 row-start-1 flex items-center gap-1 ${n0}`,
|
|
36301
36304
|
style: {
|
|
36302
36305
|
// Mantener "Inicio" alineado al mismo borde que "Hola" (padding-left del contenedor inferior)
|
|
36303
36306
|
paddingLeft: "8px",
|
|
@@ -36361,7 +36364,7 @@ const Be = zD, b = ({
|
|
|
36361
36364
|
...O || {}
|
|
36362
36365
|
},
|
|
36363
36366
|
children: [
|
|
36364
|
-
/* @__PURE__ */ l.jsx("div", { className: `scfd-greeting-wrapper min-w-0 ${
|
|
36367
|
+
/* @__PURE__ */ l.jsx("div", { className: `scfd-greeting-wrapper min-w-0 ${k}`, style: $, children: /* @__PURE__ */ l.jsxs(
|
|
36365
36368
|
x,
|
|
36366
36369
|
{
|
|
36367
36370
|
variant: "h5",
|
|
@@ -36393,7 +36396,7 @@ const Be = zD, b = ({
|
|
|
36393
36396
|
color: "#223B40"
|
|
36394
36397
|
},
|
|
36395
36398
|
children: [
|
|
36396
|
-
|
|
36399
|
+
z,
|
|
36397
36400
|
r
|
|
36398
36401
|
]
|
|
36399
36402
|
}
|
|
@@ -36403,7 +36406,7 @@ const Be = zD, b = ({
|
|
|
36403
36406
|
/* @__PURE__ */ l.jsx(
|
|
36404
36407
|
"span",
|
|
36405
36408
|
{
|
|
36406
|
-
className:
|
|
36409
|
+
className: J,
|
|
36407
36410
|
style: {
|
|
36408
36411
|
display: "inline-block",
|
|
36409
36412
|
verticalAlign: "middle",
|
|
@@ -36420,7 +36423,7 @@ const Be = zD, b = ({
|
|
|
36420
36423
|
}
|
|
36421
36424
|
)
|
|
36422
36425
|
] }) : null,
|
|
36423
|
-
/* @__PURE__ */ l.jsx("span", { style: { display: "inline-block", verticalAlign: "middle" }, children:
|
|
36426
|
+
/* @__PURE__ */ l.jsx("span", { style: { display: "inline-block", verticalAlign: "middle" }, children: t0 })
|
|
36424
36427
|
]
|
|
36425
36428
|
}
|
|
36426
36429
|
) }),
|
|
@@ -38046,12 +38049,12 @@ const Be = zD, b = ({
|
|
|
38046
38049
|
className: A = "",
|
|
38047
38050
|
...R
|
|
38048
38051
|
}) => {
|
|
38049
|
-
const { t: v } = b0(), L = a === "hexa-login", [F,
|
|
38052
|
+
const { t: v } = b0(), L = a === "hexa-login", [F, k] = S({
|
|
38050
38053
|
email: "",
|
|
38051
38054
|
password: "",
|
|
38052
38055
|
rememberMe: !1
|
|
38053
|
-
}), [
|
|
38054
|
-
|
|
38056
|
+
}), [$, Q] = S({}), P = (C, j) => {
|
|
38057
|
+
k((T) => ({ ...T, [C]: j })), $[C] && Q((T) => ({ ...T, [C]: null }));
|
|
38055
38058
|
}, W = (C) => {
|
|
38056
38059
|
C.preventDefault();
|
|
38057
38060
|
const j = {};
|
|
@@ -38068,7 +38071,7 @@ const Be = zD, b = ({
|
|
|
38068
38071
|
continueWithLabel: p?.continueWithLabel ?? "Continuar con",
|
|
38069
38072
|
googleLabel: p?.googleLabel ?? "Google",
|
|
38070
38073
|
microsoftLabel: p?.microsoftLabel ?? "Microsoft"
|
|
38071
|
-
},
|
|
38074
|
+
}, n0 = t ? v("form.loggingIn") ?? "Ingresando..." : v("form.login") ?? "Ingresar";
|
|
38072
38075
|
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: [
|
|
38073
38076
|
/* @__PURE__ */ l.jsxs("div", { className: "w-full", children: [
|
|
38074
38077
|
/* @__PURE__ */ l.jsx(
|
|
@@ -38087,7 +38090,7 @@ const Be = zD, b = ({
|
|
|
38087
38090
|
onChange: (C) => P("email", C.target.value),
|
|
38088
38091
|
placeholder: "Ingresa tu correo electronico",
|
|
38089
38092
|
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",
|
|
38090
|
-
style: { borderColor:
|
|
38093
|
+
style: { borderColor: $.email ? "#ef4444" : "#2D5C63" }
|
|
38091
38094
|
}
|
|
38092
38095
|
)
|
|
38093
38096
|
] }),
|
|
@@ -38103,11 +38106,11 @@ const Be = zD, b = ({
|
|
|
38103
38106
|
onChange: (C) => P("password", C.target.value),
|
|
38104
38107
|
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",
|
|
38105
38108
|
style: {
|
|
38106
|
-
borderColor:
|
|
38109
|
+
borderColor: $.password ? "#ef4444" : "#2D5C63"
|
|
38107
38110
|
}
|
|
38108
38111
|
}
|
|
38109
38112
|
) }),
|
|
38110
|
-
i &&
|
|
38113
|
+
i && !!$.password && /* @__PURE__ */ l.jsx(
|
|
38111
38114
|
"div",
|
|
38112
38115
|
{
|
|
38113
38116
|
className: "anima-loginform__requirementsBox rounded-lg p-4 border mt-4",
|
|
@@ -38174,7 +38177,7 @@ ${j[1]}`;
|
|
|
38174
38177
|
}
|
|
38175
38178
|
)
|
|
38176
38179
|
] }),
|
|
38177
|
-
(h ||
|
|
38180
|
+
(h || $.general) && /* @__PURE__ */ l.jsxs(
|
|
38178
38181
|
"div",
|
|
38179
38182
|
{
|
|
38180
38183
|
className: "anima-loginform__errorBox mt-4",
|
|
@@ -38206,7 +38209,7 @@ ${j[1]}`;
|
|
|
38206
38209
|
color: "#B30808",
|
|
38207
38210
|
margin: 0
|
|
38208
38211
|
},
|
|
38209
|
-
children: M ?? (typeof h == "string" ? h : null) ?? (
|
|
38212
|
+
children: M ?? (typeof h == "string" ? h : null) ?? ($.general && typeof $.general == "string" ? $.general : null) ?? v("errors.invalidCredentials") ?? "Correo o contraseña incorrectos."
|
|
38210
38213
|
}
|
|
38211
38214
|
),
|
|
38212
38215
|
/* @__PURE__ */ l.jsx(
|
|
@@ -38249,7 +38252,7 @@ ${j[1]}`;
|
|
|
38249
38252
|
lineHeight: "24px",
|
|
38250
38253
|
letterSpacing: "0%"
|
|
38251
38254
|
},
|
|
38252
|
-
children:
|
|
38255
|
+
children: n0
|
|
38253
38256
|
}
|
|
38254
38257
|
)
|
|
38255
38258
|
}
|
|
@@ -38320,7 +38323,7 @@ ${j[1]}`;
|
|
|
38320
38323
|
placeholder: v("placeholder.email"),
|
|
38321
38324
|
value: F.email,
|
|
38322
38325
|
onChange: (C) => P("email", C.target.value),
|
|
38323
|
-
error:
|
|
38326
|
+
error: $.email,
|
|
38324
38327
|
required: !0
|
|
38325
38328
|
}
|
|
38326
38329
|
),
|
|
@@ -38332,7 +38335,7 @@ ${j[1]}`;
|
|
|
38332
38335
|
placeholder: v("placeholder.password"),
|
|
38333
38336
|
value: F.password,
|
|
38334
38337
|
onChange: (C) => P("password", C.target.value),
|
|
38335
|
-
error:
|
|
38338
|
+
error: $.password,
|
|
38336
38339
|
required: !0
|
|
38337
38340
|
}
|
|
38338
38341
|
),
|
|
@@ -38439,13 +38442,13 @@ ${j[1]}`;
|
|
|
38439
38442
|
layout: d = "embedded",
|
|
38440
38443
|
...s
|
|
38441
38444
|
}) => {
|
|
38442
|
-
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),
|
|
38445
|
+
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), k = t !== void 0 ? t : y, $ = n !== void 0 ? n : L, Q = (C) => C && C.includes("@"), P = (C) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(C), W = () => {
|
|
38443
38446
|
const C = {};
|
|
38444
38447
|
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;
|
|
38445
38448
|
}, O = (C) => {
|
|
38446
38449
|
const j = C.target.value;
|
|
38447
38450
|
p(j), h.email && M((T) => ({ ...T, email: null })), L && F(null);
|
|
38448
|
-
},
|
|
38451
|
+
}, n0 = async (C) => {
|
|
38449
38452
|
if (C.preventDefault(), !!W()) {
|
|
38450
38453
|
if (!r) {
|
|
38451
38454
|
console.warn("ForgotPassword: onSubmit prop is required");
|
|
@@ -38510,7 +38513,7 @@ ${j[1]}`;
|
|
|
38510
38513
|
)
|
|
38511
38514
|
] }),
|
|
38512
38515
|
/* @__PURE__ */ l.jsxs("div", { className: "bg-white border border-gray-200 rounded-lg p-6 shadow-md", children: [
|
|
38513
|
-
R &&
|
|
38516
|
+
R && !k && /* @__PURE__ */ l.jsxs("div", { className: "text-center space-y-4", children: [
|
|
38514
38517
|
/* @__PURE__ */ l.jsxs(
|
|
38515
38518
|
"div",
|
|
38516
38519
|
{
|
|
@@ -38551,7 +38554,7 @@ ${j[1]}`;
|
|
|
38551
38554
|
}
|
|
38552
38555
|
)
|
|
38553
38556
|
] }),
|
|
38554
|
-
|
|
38557
|
+
k && /* @__PURE__ */ l.jsx("div", { className: "text-center space-y-4", children: /* @__PURE__ */ l.jsxs(
|
|
38555
38558
|
"div",
|
|
38556
38559
|
{
|
|
38557
38560
|
className: "rounded-lg p-4 border",
|
|
@@ -38590,7 +38593,7 @@ ${j[1]}`;
|
|
|
38590
38593
|
]
|
|
38591
38594
|
}
|
|
38592
38595
|
) }),
|
|
38593
|
-
!R &&
|
|
38596
|
+
!R && !k && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
38594
38597
|
a && /* @__PURE__ */ l.jsxs(
|
|
38595
38598
|
"button",
|
|
38596
38599
|
{
|
|
@@ -38604,7 +38607,7 @@ ${j[1]}`;
|
|
|
38604
38607
|
]
|
|
38605
38608
|
}
|
|
38606
38609
|
),
|
|
38607
|
-
/* @__PURE__ */ l.jsxs("form", { onSubmit:
|
|
38610
|
+
/* @__PURE__ */ l.jsxs("form", { onSubmit: n0, className: "space-y-4", children: [
|
|
38608
38611
|
/* @__PURE__ */ l.jsxs("div", { children: [
|
|
38609
38612
|
/* @__PURE__ */ l.jsx(
|
|
38610
38613
|
"label",
|
|
@@ -38631,10 +38634,10 @@ ${j[1]}`;
|
|
|
38631
38634
|
),
|
|
38632
38635
|
h.email && /* @__PURE__ */ l.jsx("p", { className: "mt-1 text-sm text-red-600", children: h.email })
|
|
38633
38636
|
] }),
|
|
38634
|
-
|
|
38637
|
+
$ && /* @__PURE__ */ l.jsx(
|
|
38635
38638
|
"div",
|
|
38636
38639
|
{
|
|
38637
|
-
className: "rounded-lg p-4 border",
|
|
38640
|
+
className: "rounded-lg p-4 border anima-forgotpassword__errorBox",
|
|
38638
38641
|
style: {
|
|
38639
38642
|
backgroundColor: "#fecaca",
|
|
38640
38643
|
borderColor: "#ef4444"
|
|
@@ -38644,8 +38647,16 @@ ${j[1]}`;
|
|
|
38644
38647
|
{
|
|
38645
38648
|
variant: "body2",
|
|
38646
38649
|
className: "font-bold",
|
|
38647
|
-
style: {
|
|
38648
|
-
|
|
38650
|
+
style: {
|
|
38651
|
+
color: "#b91c1c",
|
|
38652
|
+
fontFamily: "'IBM Plex Mono', monospace",
|
|
38653
|
+
fontWeight: 400,
|
|
38654
|
+
fontStyle: "normal",
|
|
38655
|
+
fontSize: "14px",
|
|
38656
|
+
lineHeight: "21px",
|
|
38657
|
+
letterSpacing: "0.02em"
|
|
38658
|
+
},
|
|
38659
|
+
children: $
|
|
38649
38660
|
}
|
|
38650
38661
|
)
|
|
38651
38662
|
}
|
|
@@ -38658,7 +38669,7 @@ ${j[1]}`;
|
|
|
38658
38669
|
tamaño: "Default",
|
|
38659
38670
|
type: "submit",
|
|
38660
38671
|
className: "w-full",
|
|
38661
|
-
disabled:
|
|
38672
|
+
disabled: k || !Q(g),
|
|
38662
38673
|
children: /* @__PURE__ */ l.jsx(
|
|
38663
38674
|
"span",
|
|
38664
38675
|
{
|
|
@@ -38670,7 +38681,7 @@ ${j[1]}`;
|
|
|
38670
38681
|
lineHeight: "24px",
|
|
38671
38682
|
letterSpacing: "0%"
|
|
38672
38683
|
},
|
|
38673
|
-
children:
|
|
38684
|
+
children: k ? i("forgotPassword.sending") ?? "Enviando..." : i("forgotPassword.button") ?? "Enviar link"
|
|
38674
38685
|
}
|
|
38675
38686
|
)
|
|
38676
38687
|
}
|
|
@@ -38709,20 +38720,20 @@ ${j[1]}`;
|
|
|
38709
38720
|
// Actions
|
|
38710
38721
|
cancelLabel: L,
|
|
38711
38722
|
submitLabel: F,
|
|
38712
|
-
onCancel:
|
|
38713
|
-
onSubmit:
|
|
38723
|
+
onCancel: k,
|
|
38724
|
+
onSubmit: $,
|
|
38714
38725
|
disabled: Q = !1,
|
|
38715
38726
|
submitting: P = !1,
|
|
38716
38727
|
// Success
|
|
38717
38728
|
success: W = !1,
|
|
38718
38729
|
successTitle: O,
|
|
38719
|
-
successMessage:
|
|
38730
|
+
successMessage: n0,
|
|
38720
38731
|
successExtra: C,
|
|
38721
38732
|
className: j = "",
|
|
38722
38733
|
...T
|
|
38723
38734
|
}) => {
|
|
38724
|
-
const { t: K } = b0(), D = a === "hexa-login", Z = r === "page", H = (
|
|
38725
|
-
|
|
38735
|
+
const { t: K } = b0(), D = a === "hexa-login", Z = r === "page", H = (z) => {
|
|
38736
|
+
z.preventDefault(), $ && !Q && !P && $({
|
|
38726
38737
|
password: d,
|
|
38727
38738
|
confirmPassword: g
|
|
38728
38739
|
});
|
|
@@ -38791,13 +38802,13 @@ ${j[1]}`;
|
|
|
38791
38802
|
children: O
|
|
38792
38803
|
}
|
|
38793
38804
|
),
|
|
38794
|
-
|
|
38805
|
+
n0 && /* @__PURE__ */ l.jsx(
|
|
38795
38806
|
x,
|
|
38796
38807
|
{
|
|
38797
38808
|
variant: "body2",
|
|
38798
38809
|
className: O ? "mt-2" : "",
|
|
38799
38810
|
style: { color: "#047857", fontSize: "14px" },
|
|
38800
|
-
children:
|
|
38811
|
+
children: n0
|
|
38801
38812
|
}
|
|
38802
38813
|
),
|
|
38803
38814
|
C && /* @__PURE__ */ l.jsx("div", { className: "mt-4", children: C })
|
|
@@ -38912,14 +38923,14 @@ ${j[1]}`;
|
|
|
38912
38923
|
whiteSpace: "pre-line"
|
|
38913
38924
|
},
|
|
38914
38925
|
children: M || (() => {
|
|
38915
|
-
const
|
|
38926
|
+
const z = A || K("form.passwordRequirementsPrefix") || "Recuerda que la contraseña debe tener:", t0 = y.length > 0 ? y : [
|
|
38916
38927
|
K("form.passwordRequirementMinChars") || "Un mínimo de 6 caracteres",
|
|
38917
38928
|
K("form.passwordRequirementOther") || "Una mayúscula, un número, un carácter especial"
|
|
38918
38929
|
];
|
|
38919
|
-
return `${
|
|
38920
|
-
${n0[0]}
|
|
38930
|
+
return t0.length > 0 ? `${z}
|
|
38921
38931
|
|
|
38922
|
-
${
|
|
38932
|
+
${t0.map((J) => `• ${J}`).join(`
|
|
38933
|
+
`)}` : z;
|
|
38923
38934
|
})()
|
|
38924
38935
|
}
|
|
38925
38936
|
)
|
|
@@ -38945,7 +38956,7 @@ ${n0.slice(1).join(", ")}`;
|
|
|
38945
38956
|
}
|
|
38946
38957
|
),
|
|
38947
38958
|
/* @__PURE__ */ l.jsxs("div", { className: "flex gap-4 pt-4", children: [
|
|
38948
|
-
|
|
38959
|
+
k && /* @__PURE__ */ l.jsx(
|
|
38949
38960
|
m0,
|
|
38950
38961
|
{
|
|
38951
38962
|
type: "button",
|
|
@@ -38953,7 +38964,7 @@ ${n0.slice(1).join(", ")}`;
|
|
|
38953
38964
|
color: "Teal",
|
|
38954
38965
|
tamaño: "Default",
|
|
38955
38966
|
className: "flex-1",
|
|
38956
|
-
onClick:
|
|
38967
|
+
onClick: k,
|
|
38957
38968
|
disabled: Q || P,
|
|
38958
38969
|
children: /* @__PURE__ */ l.jsx(
|
|
38959
38970
|
"span",
|
|
@@ -38978,7 +38989,7 @@ ${n0.slice(1).join(", ")}`;
|
|
|
38978
38989
|
tipo: "Primary",
|
|
38979
38990
|
color: "Teal",
|
|
38980
38991
|
tamaño: "Default",
|
|
38981
|
-
className:
|
|
38992
|
+
className: k ? "flex-1" : "w-full",
|
|
38982
38993
|
disabled: Q || P,
|
|
38983
38994
|
children: /* @__PURE__ */ l.jsx(
|
|
38984
38995
|
"span",
|