anima-ds-nucleus 1.0.25 → 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 +332 -307
- package/package.json +1 -1
- package/src/components/DataDisplay/Card/CardError.jsx +21 -18
- package/src/components/DataDisplay/Card/CardSkeleton.jsx +7 -7
- package/src/components/DataDisplay/Card/CardTituloCorto.jsx +14 -12
- package/src/components/DataDisplay/Card/CardTituloCortoMasEstado.jsx +15 -13
- package/src/components/DataDisplay/Card/CardTituloLargo.jsx +14 -12
- package/src/components/DataDisplay/Card/CardTituloLargoMasEstado.jsx +15 -13
- package/src/components/DataDisplay/Card/CardVacia.jsx +16 -13
- 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
|
) }),
|
|
@@ -36481,13 +36484,14 @@ const Be = zD, b = ({
|
|
|
36481
36484
|
}) => /* @__PURE__ */ l.jsxs(
|
|
36482
36485
|
"div",
|
|
36483
36486
|
{
|
|
36484
|
-
className: `bg-white ${a}`,
|
|
36487
|
+
className: `bg-white w-full ${a}`,
|
|
36485
36488
|
style: {
|
|
36486
|
-
|
|
36487
|
-
height: "476px",
|
|
36489
|
+
minHeight: "476px",
|
|
36488
36490
|
borderRadius: "14px",
|
|
36489
36491
|
border: "1px solid #C4C4C4",
|
|
36490
|
-
opacity: 1
|
|
36492
|
+
opacity: 1,
|
|
36493
|
+
display: "flex",
|
|
36494
|
+
flexDirection: "column"
|
|
36491
36495
|
},
|
|
36492
36496
|
...r,
|
|
36493
36497
|
children: [
|
|
@@ -36509,13 +36513,12 @@ const Be = zD, b = ({
|
|
|
36509
36513
|
"div",
|
|
36510
36514
|
{
|
|
36511
36515
|
style: {
|
|
36512
|
-
width: "379.5px",
|
|
36513
|
-
height: "60px",
|
|
36514
36516
|
paddingTop: "24px",
|
|
36515
36517
|
paddingRight: "24px",
|
|
36516
36518
|
paddingBottom: "6px",
|
|
36517
36519
|
paddingLeft: "24px",
|
|
36518
|
-
opacity: 1
|
|
36520
|
+
opacity: 1,
|
|
36521
|
+
flexShrink: 0
|
|
36519
36522
|
},
|
|
36520
36523
|
children: /* @__PURE__ */ l.jsx(
|
|
36521
36524
|
"div",
|
|
@@ -36589,13 +36592,14 @@ const Be = zD, b = ({
|
|
|
36589
36592
|
}) => /* @__PURE__ */ l.jsxs(
|
|
36590
36593
|
"div",
|
|
36591
36594
|
{
|
|
36592
|
-
className: `bg-white ${r}`,
|
|
36595
|
+
className: `bg-white w-full ${r}`,
|
|
36593
36596
|
style: {
|
|
36594
|
-
|
|
36595
|
-
height: "476px",
|
|
36597
|
+
minHeight: "476px",
|
|
36596
36598
|
borderRadius: "14px",
|
|
36597
36599
|
border: "1px solid #C4C4C4",
|
|
36598
|
-
opacity: 1
|
|
36600
|
+
opacity: 1,
|
|
36601
|
+
display: "flex",
|
|
36602
|
+
flexDirection: "column"
|
|
36599
36603
|
},
|
|
36600
36604
|
...t,
|
|
36601
36605
|
children: [
|
|
@@ -36603,21 +36607,20 @@ const Be = zD, b = ({
|
|
|
36603
36607
|
"div",
|
|
36604
36608
|
{
|
|
36605
36609
|
style: {
|
|
36606
|
-
width: "379.5px",
|
|
36607
|
-
height: "60px",
|
|
36608
36610
|
paddingTop: "24px",
|
|
36609
36611
|
paddingRight: "24px",
|
|
36610
36612
|
paddingBottom: "6px",
|
|
36611
36613
|
paddingLeft: "24px",
|
|
36612
|
-
opacity: 1
|
|
36614
|
+
opacity: 1,
|
|
36615
|
+
flexShrink: 0
|
|
36613
36616
|
},
|
|
36614
36617
|
className: "flex items-start justify-between",
|
|
36615
36618
|
children: /* @__PURE__ */ l.jsx(
|
|
36616
36619
|
"div",
|
|
36617
36620
|
{
|
|
36618
36621
|
style: {
|
|
36619
|
-
|
|
36620
|
-
|
|
36622
|
+
flex: 1,
|
|
36623
|
+
minWidth: 0,
|
|
36621
36624
|
opacity: 1
|
|
36622
36625
|
},
|
|
36623
36626
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -36635,20 +36638,23 @@ const Be = zD, b = ({
|
|
|
36635
36638
|
/* @__PURE__ */ l.jsxs(
|
|
36636
36639
|
"div",
|
|
36637
36640
|
{
|
|
36638
|
-
className: "flex flex-col items-center justify-center",
|
|
36641
|
+
className: "flex flex-col items-center justify-center flex-1",
|
|
36639
36642
|
style: {
|
|
36640
36643
|
paddingTop: "80px",
|
|
36641
36644
|
paddingBottom: "24px",
|
|
36645
|
+
paddingLeft: "24px",
|
|
36646
|
+
paddingRight: "24px",
|
|
36642
36647
|
display: "flex",
|
|
36643
|
-
justifyContent: "flex-start"
|
|
36648
|
+
justifyContent: "flex-start",
|
|
36649
|
+
minHeight: 0
|
|
36644
36650
|
},
|
|
36645
36651
|
children: [
|
|
36646
36652
|
/* @__PURE__ */ l.jsx(
|
|
36647
36653
|
"div",
|
|
36648
36654
|
{
|
|
36649
|
-
className: "mb-4 flex items-center justify-center",
|
|
36655
|
+
className: "mb-4 flex items-center justify-center flex-shrink-0",
|
|
36650
36656
|
style: {
|
|
36651
|
-
width: "
|
|
36657
|
+
width: "64px",
|
|
36652
36658
|
height: "64px",
|
|
36653
36659
|
borderRadius: "12px",
|
|
36654
36660
|
paddingTop: "8px",
|
|
@@ -36711,13 +36717,14 @@ const Be = zD, b = ({
|
|
|
36711
36717
|
}) => /* @__PURE__ */ l.jsxs(
|
|
36712
36718
|
"div",
|
|
36713
36719
|
{
|
|
36714
|
-
className: `bg-white ${t}`,
|
|
36720
|
+
className: `bg-white w-full ${t}`,
|
|
36715
36721
|
style: {
|
|
36716
|
-
|
|
36717
|
-
height: "476px",
|
|
36722
|
+
minHeight: "476px",
|
|
36718
36723
|
borderRadius: "14px",
|
|
36719
36724
|
border: "1px solid #C4C4C4",
|
|
36720
|
-
opacity: 1
|
|
36725
|
+
opacity: 1,
|
|
36726
|
+
display: "flex",
|
|
36727
|
+
flexDirection: "column"
|
|
36721
36728
|
},
|
|
36722
36729
|
...n,
|
|
36723
36730
|
children: [
|
|
@@ -36725,21 +36732,20 @@ const Be = zD, b = ({
|
|
|
36725
36732
|
"div",
|
|
36726
36733
|
{
|
|
36727
36734
|
style: {
|
|
36728
|
-
width: "379.5px",
|
|
36729
|
-
height: "60px",
|
|
36730
36735
|
paddingTop: "24px",
|
|
36731
36736
|
paddingRight: "24px",
|
|
36732
36737
|
paddingBottom: "6px",
|
|
36733
36738
|
paddingLeft: "24px",
|
|
36734
|
-
opacity: 1
|
|
36739
|
+
opacity: 1,
|
|
36740
|
+
flexShrink: 0
|
|
36735
36741
|
},
|
|
36736
36742
|
className: "flex items-start justify-between",
|
|
36737
36743
|
children: /* @__PURE__ */ l.jsx(
|
|
36738
36744
|
"div",
|
|
36739
36745
|
{
|
|
36740
36746
|
style: {
|
|
36741
|
-
|
|
36742
|
-
|
|
36747
|
+
flex: 1,
|
|
36748
|
+
minWidth: 0,
|
|
36743
36749
|
opacity: 1
|
|
36744
36750
|
},
|
|
36745
36751
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -36757,18 +36763,21 @@ const Be = zD, b = ({
|
|
|
36757
36763
|
/* @__PURE__ */ l.jsxs(
|
|
36758
36764
|
"div",
|
|
36759
36765
|
{
|
|
36760
|
-
className: "flex flex-col items-center justify-center",
|
|
36766
|
+
className: "flex flex-col items-center justify-center flex-1",
|
|
36761
36767
|
style: {
|
|
36762
36768
|
paddingTop: "80px",
|
|
36763
36769
|
paddingBottom: "24px",
|
|
36770
|
+
paddingLeft: "24px",
|
|
36771
|
+
paddingRight: "24px",
|
|
36764
36772
|
display: "flex",
|
|
36765
|
-
justifyContent: "flex-start"
|
|
36773
|
+
justifyContent: "flex-start",
|
|
36774
|
+
minHeight: 0
|
|
36766
36775
|
},
|
|
36767
36776
|
children: [
|
|
36768
36777
|
/* @__PURE__ */ l.jsx(
|
|
36769
36778
|
"div",
|
|
36770
36779
|
{
|
|
36771
|
-
className: "mb-4 flex items-center justify-center border-2 rounded-full",
|
|
36780
|
+
className: "mb-4 flex items-center justify-center border-2 rounded-full flex-shrink-0",
|
|
36772
36781
|
style: {
|
|
36773
36782
|
borderColor: "#374151",
|
|
36774
36783
|
width: "48px",
|
|
@@ -36790,8 +36799,8 @@ const Be = zD, b = ({
|
|
|
36790
36799
|
"div",
|
|
36791
36800
|
{
|
|
36792
36801
|
style: {
|
|
36793
|
-
width: "
|
|
36794
|
-
|
|
36802
|
+
width: "100%",
|
|
36803
|
+
maxWidth: "331.5px",
|
|
36795
36804
|
opacity: 1,
|
|
36796
36805
|
display: "flex",
|
|
36797
36806
|
alignItems: "center",
|
|
@@ -36822,8 +36831,9 @@ const Be = zD, b = ({
|
|
|
36822
36831
|
{
|
|
36823
36832
|
className: "border flex items-center justify-center",
|
|
36824
36833
|
style: {
|
|
36825
|
-
width: "
|
|
36826
|
-
|
|
36834
|
+
width: "100%",
|
|
36835
|
+
maxWidth: "331.5px",
|
|
36836
|
+
minHeight: "128px",
|
|
36827
36837
|
borderRadius: "10px",
|
|
36828
36838
|
borderWidth: "1px",
|
|
36829
36839
|
borderColor: "#EF4444",
|
|
@@ -36838,8 +36848,7 @@ const Be = zD, b = ({
|
|
|
36838
36848
|
"div",
|
|
36839
36849
|
{
|
|
36840
36850
|
style: {
|
|
36841
|
-
width: "
|
|
36842
|
-
height: "96px",
|
|
36851
|
+
width: "100%",
|
|
36843
36852
|
opacity: 1
|
|
36844
36853
|
},
|
|
36845
36854
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -36869,13 +36878,14 @@ const Be = zD, b = ({
|
|
|
36869
36878
|
}) => /* @__PURE__ */ l.jsxs(
|
|
36870
36879
|
"div",
|
|
36871
36880
|
{
|
|
36872
|
-
className: `bg-white ${t}`,
|
|
36881
|
+
className: `bg-white w-full ${t}`,
|
|
36873
36882
|
style: {
|
|
36874
|
-
|
|
36875
|
-
height: "476px",
|
|
36883
|
+
minHeight: "476px",
|
|
36876
36884
|
borderRadius: "14px",
|
|
36877
36885
|
border: "1px solid #C4C4C4",
|
|
36878
|
-
opacity: 1
|
|
36886
|
+
opacity: 1,
|
|
36887
|
+
display: "flex",
|
|
36888
|
+
flexDirection: "column"
|
|
36879
36889
|
},
|
|
36880
36890
|
...n,
|
|
36881
36891
|
children: [
|
|
@@ -36883,21 +36893,20 @@ const Be = zD, b = ({
|
|
|
36883
36893
|
"div",
|
|
36884
36894
|
{
|
|
36885
36895
|
style: {
|
|
36886
|
-
width: "379.5px",
|
|
36887
|
-
height: "60px",
|
|
36888
36896
|
paddingTop: "24px",
|
|
36889
36897
|
paddingRight: "24px",
|
|
36890
36898
|
paddingBottom: "6px",
|
|
36891
36899
|
paddingLeft: "24px",
|
|
36892
|
-
opacity: 1
|
|
36900
|
+
opacity: 1,
|
|
36901
|
+
flexShrink: 0
|
|
36893
36902
|
},
|
|
36894
36903
|
className: "flex items-start justify-between",
|
|
36895
36904
|
children: /* @__PURE__ */ l.jsx(
|
|
36896
36905
|
"div",
|
|
36897
36906
|
{
|
|
36898
36907
|
style: {
|
|
36899
|
-
|
|
36900
|
-
|
|
36908
|
+
flex: 1,
|
|
36909
|
+
minWidth: 0,
|
|
36901
36910
|
opacity: 1
|
|
36902
36911
|
},
|
|
36903
36912
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -36926,14 +36935,16 @@ const Be = zD, b = ({
|
|
|
36926
36935
|
"div",
|
|
36927
36936
|
{
|
|
36928
36937
|
style: {
|
|
36929
|
-
|
|
36930
|
-
height: "416px",
|
|
36938
|
+
flex: 1,
|
|
36931
36939
|
paddingRight: "24px",
|
|
36932
36940
|
paddingLeft: "24px",
|
|
36941
|
+
paddingBottom: "24px",
|
|
36933
36942
|
gap: "16px",
|
|
36934
36943
|
opacity: 1,
|
|
36935
36944
|
display: "flex",
|
|
36936
|
-
flexDirection: "column"
|
|
36945
|
+
flexDirection: "column",
|
|
36946
|
+
minHeight: 0,
|
|
36947
|
+
overflow: "auto"
|
|
36937
36948
|
},
|
|
36938
36949
|
children: r
|
|
36939
36950
|
}
|
|
@@ -36948,13 +36959,14 @@ const Be = zD, b = ({
|
|
|
36948
36959
|
}) => /* @__PURE__ */ l.jsxs(
|
|
36949
36960
|
"div",
|
|
36950
36961
|
{
|
|
36951
|
-
className: `bg-white ${t}`,
|
|
36962
|
+
className: `bg-white w-full ${t}`,
|
|
36952
36963
|
style: {
|
|
36953
|
-
|
|
36954
|
-
height: "476px",
|
|
36964
|
+
minHeight: "476px",
|
|
36955
36965
|
borderRadius: "14px",
|
|
36956
36966
|
border: "1px solid #C4C4C4",
|
|
36957
|
-
opacity: 1
|
|
36967
|
+
opacity: 1,
|
|
36968
|
+
display: "flex",
|
|
36969
|
+
flexDirection: "column"
|
|
36958
36970
|
},
|
|
36959
36971
|
...n,
|
|
36960
36972
|
children: [
|
|
@@ -36962,21 +36974,20 @@ const Be = zD, b = ({
|
|
|
36962
36974
|
"div",
|
|
36963
36975
|
{
|
|
36964
36976
|
style: {
|
|
36965
|
-
width: "379.5px",
|
|
36966
|
-
height: "60px",
|
|
36967
36977
|
paddingTop: "24px",
|
|
36968
36978
|
paddingRight: "24px",
|
|
36969
36979
|
paddingBottom: "6px",
|
|
36970
36980
|
paddingLeft: "24px",
|
|
36971
|
-
opacity: 1
|
|
36981
|
+
opacity: 1,
|
|
36982
|
+
flexShrink: 0
|
|
36972
36983
|
},
|
|
36973
36984
|
className: "flex items-start justify-between",
|
|
36974
36985
|
children: /* @__PURE__ */ l.jsx(
|
|
36975
36986
|
"div",
|
|
36976
36987
|
{
|
|
36977
36988
|
style: {
|
|
36978
|
-
|
|
36979
|
-
|
|
36989
|
+
flex: 1,
|
|
36990
|
+
minWidth: 0,
|
|
36980
36991
|
opacity: 1
|
|
36981
36992
|
},
|
|
36982
36993
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -37005,14 +37016,16 @@ const Be = zD, b = ({
|
|
|
37005
37016
|
"div",
|
|
37006
37017
|
{
|
|
37007
37018
|
style: {
|
|
37008
|
-
|
|
37009
|
-
height: "416px",
|
|
37019
|
+
flex: 1,
|
|
37010
37020
|
paddingRight: "24px",
|
|
37011
37021
|
paddingLeft: "24px",
|
|
37022
|
+
paddingBottom: "24px",
|
|
37012
37023
|
gap: "16px",
|
|
37013
37024
|
opacity: 1,
|
|
37014
37025
|
display: "flex",
|
|
37015
|
-
flexDirection: "column"
|
|
37026
|
+
flexDirection: "column",
|
|
37027
|
+
minHeight: 0,
|
|
37028
|
+
overflow: "auto"
|
|
37016
37029
|
},
|
|
37017
37030
|
children: r
|
|
37018
37031
|
}
|
|
@@ -37028,13 +37041,14 @@ const Be = zD, b = ({
|
|
|
37028
37041
|
}) => /* @__PURE__ */ l.jsxs(
|
|
37029
37042
|
"div",
|
|
37030
37043
|
{
|
|
37031
|
-
className: `bg-white ${n}`,
|
|
37044
|
+
className: `bg-white w-full ${n}`,
|
|
37032
37045
|
style: {
|
|
37033
|
-
|
|
37034
|
-
height: "476px",
|
|
37046
|
+
minHeight: "476px",
|
|
37035
37047
|
borderRadius: "14px",
|
|
37036
37048
|
border: "1px solid #C4C4C4",
|
|
37037
|
-
opacity: 1
|
|
37049
|
+
opacity: 1,
|
|
37050
|
+
display: "flex",
|
|
37051
|
+
flexDirection: "column"
|
|
37038
37052
|
},
|
|
37039
37053
|
...c,
|
|
37040
37054
|
children: [
|
|
@@ -37042,13 +37056,12 @@ const Be = zD, b = ({
|
|
|
37042
37056
|
"div",
|
|
37043
37057
|
{
|
|
37044
37058
|
style: {
|
|
37045
|
-
width: "379.5px",
|
|
37046
|
-
height: "60px",
|
|
37047
37059
|
paddingTop: "24px",
|
|
37048
37060
|
paddingRight: "24px",
|
|
37049
37061
|
paddingBottom: "6px",
|
|
37050
37062
|
paddingLeft: "24px",
|
|
37051
|
-
opacity: 1
|
|
37063
|
+
opacity: 1,
|
|
37064
|
+
flexShrink: 0
|
|
37052
37065
|
},
|
|
37053
37066
|
className: "flex items-start justify-between",
|
|
37054
37067
|
children: [
|
|
@@ -37056,8 +37069,8 @@ const Be = zD, b = ({
|
|
|
37056
37069
|
"div",
|
|
37057
37070
|
{
|
|
37058
37071
|
style: {
|
|
37059
|
-
|
|
37060
|
-
|
|
37072
|
+
flex: 1,
|
|
37073
|
+
minWidth: 0,
|
|
37061
37074
|
opacity: 1
|
|
37062
37075
|
},
|
|
37063
37076
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -37085,7 +37098,7 @@ const Be = zD, b = ({
|
|
|
37085
37098
|
{
|
|
37086
37099
|
className: "text-sm font-medium flex-shrink-0 ml-2 flex items-center justify-center",
|
|
37087
37100
|
style: {
|
|
37088
|
-
|
|
37101
|
+
minWidth: "90px",
|
|
37089
37102
|
height: "24px",
|
|
37090
37103
|
borderRadius: "12px",
|
|
37091
37104
|
paddingTop: "2px",
|
|
@@ -37106,14 +37119,16 @@ const Be = zD, b = ({
|
|
|
37106
37119
|
"div",
|
|
37107
37120
|
{
|
|
37108
37121
|
style: {
|
|
37109
|
-
|
|
37110
|
-
height: "416px",
|
|
37122
|
+
flex: 1,
|
|
37111
37123
|
paddingRight: "24px",
|
|
37112
37124
|
paddingLeft: "24px",
|
|
37125
|
+
paddingBottom: "24px",
|
|
37113
37126
|
gap: "16px",
|
|
37114
37127
|
opacity: 1,
|
|
37115
37128
|
display: "flex",
|
|
37116
|
-
flexDirection: "column"
|
|
37129
|
+
flexDirection: "column",
|
|
37130
|
+
minHeight: 0,
|
|
37131
|
+
overflow: "auto"
|
|
37117
37132
|
},
|
|
37118
37133
|
children: t
|
|
37119
37134
|
}
|
|
@@ -37129,13 +37144,14 @@ const Be = zD, b = ({
|
|
|
37129
37144
|
}) => /* @__PURE__ */ l.jsxs(
|
|
37130
37145
|
"div",
|
|
37131
37146
|
{
|
|
37132
|
-
className: `bg-white ${n}`,
|
|
37147
|
+
className: `bg-white w-full ${n}`,
|
|
37133
37148
|
style: {
|
|
37134
|
-
|
|
37135
|
-
height: "476px",
|
|
37149
|
+
minHeight: "476px",
|
|
37136
37150
|
borderRadius: "14px",
|
|
37137
37151
|
border: "1px solid #C4C4C4",
|
|
37138
|
-
opacity: 1
|
|
37152
|
+
opacity: 1,
|
|
37153
|
+
display: "flex",
|
|
37154
|
+
flexDirection: "column"
|
|
37139
37155
|
},
|
|
37140
37156
|
...c,
|
|
37141
37157
|
children: [
|
|
@@ -37143,13 +37159,12 @@ const Be = zD, b = ({
|
|
|
37143
37159
|
"div",
|
|
37144
37160
|
{
|
|
37145
37161
|
style: {
|
|
37146
|
-
width: "379.5px",
|
|
37147
|
-
height: "90px",
|
|
37148
37162
|
paddingTop: "24px",
|
|
37149
37163
|
paddingRight: "24px",
|
|
37150
37164
|
paddingBottom: "6px",
|
|
37151
37165
|
paddingLeft: "24px",
|
|
37152
|
-
opacity: 1
|
|
37166
|
+
opacity: 1,
|
|
37167
|
+
flexShrink: 0
|
|
37153
37168
|
},
|
|
37154
37169
|
className: "flex items-start justify-between",
|
|
37155
37170
|
children: [
|
|
@@ -37157,8 +37172,8 @@ const Be = zD, b = ({
|
|
|
37157
37172
|
"div",
|
|
37158
37173
|
{
|
|
37159
37174
|
style: {
|
|
37160
|
-
|
|
37161
|
-
|
|
37175
|
+
flex: 1,
|
|
37176
|
+
minWidth: 0,
|
|
37162
37177
|
opacity: 1
|
|
37163
37178
|
},
|
|
37164
37179
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -37186,7 +37201,7 @@ const Be = zD, b = ({
|
|
|
37186
37201
|
{
|
|
37187
37202
|
className: "text-sm font-medium flex-shrink-0 ml-2 flex items-center justify-center",
|
|
37188
37203
|
style: {
|
|
37189
|
-
|
|
37204
|
+
minWidth: "90px",
|
|
37190
37205
|
height: "24px",
|
|
37191
37206
|
borderRadius: "12px",
|
|
37192
37207
|
paddingTop: "2px",
|
|
@@ -37207,14 +37222,16 @@ const Be = zD, b = ({
|
|
|
37207
37222
|
"div",
|
|
37208
37223
|
{
|
|
37209
37224
|
style: {
|
|
37210
|
-
|
|
37211
|
-
height: "416px",
|
|
37225
|
+
flex: 1,
|
|
37212
37226
|
paddingRight: "24px",
|
|
37213
37227
|
paddingLeft: "24px",
|
|
37228
|
+
paddingBottom: "24px",
|
|
37214
37229
|
gap: "16px",
|
|
37215
37230
|
opacity: 1,
|
|
37216
37231
|
display: "flex",
|
|
37217
|
-
flexDirection: "column"
|
|
37232
|
+
flexDirection: "column",
|
|
37233
|
+
minHeight: 0,
|
|
37234
|
+
overflow: "auto"
|
|
37218
37235
|
},
|
|
37219
37236
|
children: t
|
|
37220
37237
|
}
|
|
@@ -38032,12 +38049,12 @@ const Be = zD, b = ({
|
|
|
38032
38049
|
className: A = "",
|
|
38033
38050
|
...R
|
|
38034
38051
|
}) => {
|
|
38035
|
-
const { t: v } = b0(), L = a === "hexa-login", [F,
|
|
38052
|
+
const { t: v } = b0(), L = a === "hexa-login", [F, k] = S({
|
|
38036
38053
|
email: "",
|
|
38037
38054
|
password: "",
|
|
38038
38055
|
rememberMe: !1
|
|
38039
|
-
}), [
|
|
38040
|
-
|
|
38056
|
+
}), [$, Q] = S({}), P = (C, j) => {
|
|
38057
|
+
k((T) => ({ ...T, [C]: j })), $[C] && Q((T) => ({ ...T, [C]: null }));
|
|
38041
38058
|
}, W = (C) => {
|
|
38042
38059
|
C.preventDefault();
|
|
38043
38060
|
const j = {};
|
|
@@ -38054,7 +38071,7 @@ const Be = zD, b = ({
|
|
|
38054
38071
|
continueWithLabel: p?.continueWithLabel ?? "Continuar con",
|
|
38055
38072
|
googleLabel: p?.googleLabel ?? "Google",
|
|
38056
38073
|
microsoftLabel: p?.microsoftLabel ?? "Microsoft"
|
|
38057
|
-
},
|
|
38074
|
+
}, n0 = t ? v("form.loggingIn") ?? "Ingresando..." : v("form.login") ?? "Ingresar";
|
|
38058
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: [
|
|
38059
38076
|
/* @__PURE__ */ l.jsxs("div", { className: "w-full", children: [
|
|
38060
38077
|
/* @__PURE__ */ l.jsx(
|
|
@@ -38073,7 +38090,7 @@ const Be = zD, b = ({
|
|
|
38073
38090
|
onChange: (C) => P("email", C.target.value),
|
|
38074
38091
|
placeholder: "Ingresa tu correo electronico",
|
|
38075
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",
|
|
38076
|
-
style: { borderColor:
|
|
38093
|
+
style: { borderColor: $.email ? "#ef4444" : "#2D5C63" }
|
|
38077
38094
|
}
|
|
38078
38095
|
)
|
|
38079
38096
|
] }),
|
|
@@ -38089,11 +38106,11 @@ const Be = zD, b = ({
|
|
|
38089
38106
|
onChange: (C) => P("password", C.target.value),
|
|
38090
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",
|
|
38091
38108
|
style: {
|
|
38092
|
-
borderColor:
|
|
38109
|
+
borderColor: $.password ? "#ef4444" : "#2D5C63"
|
|
38093
38110
|
}
|
|
38094
38111
|
}
|
|
38095
38112
|
) }),
|
|
38096
|
-
i &&
|
|
38113
|
+
i && !!$.password && /* @__PURE__ */ l.jsx(
|
|
38097
38114
|
"div",
|
|
38098
38115
|
{
|
|
38099
38116
|
className: "anima-loginform__requirementsBox rounded-lg p-4 border mt-4",
|
|
@@ -38160,7 +38177,7 @@ ${j[1]}`;
|
|
|
38160
38177
|
}
|
|
38161
38178
|
)
|
|
38162
38179
|
] }),
|
|
38163
|
-
(h ||
|
|
38180
|
+
(h || $.general) && /* @__PURE__ */ l.jsxs(
|
|
38164
38181
|
"div",
|
|
38165
38182
|
{
|
|
38166
38183
|
className: "anima-loginform__errorBox mt-4",
|
|
@@ -38192,7 +38209,7 @@ ${j[1]}`;
|
|
|
38192
38209
|
color: "#B30808",
|
|
38193
38210
|
margin: 0
|
|
38194
38211
|
},
|
|
38195
|
-
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."
|
|
38196
38213
|
}
|
|
38197
38214
|
),
|
|
38198
38215
|
/* @__PURE__ */ l.jsx(
|
|
@@ -38235,7 +38252,7 @@ ${j[1]}`;
|
|
|
38235
38252
|
lineHeight: "24px",
|
|
38236
38253
|
letterSpacing: "0%"
|
|
38237
38254
|
},
|
|
38238
|
-
children:
|
|
38255
|
+
children: n0
|
|
38239
38256
|
}
|
|
38240
38257
|
)
|
|
38241
38258
|
}
|
|
@@ -38306,7 +38323,7 @@ ${j[1]}`;
|
|
|
38306
38323
|
placeholder: v("placeholder.email"),
|
|
38307
38324
|
value: F.email,
|
|
38308
38325
|
onChange: (C) => P("email", C.target.value),
|
|
38309
|
-
error:
|
|
38326
|
+
error: $.email,
|
|
38310
38327
|
required: !0
|
|
38311
38328
|
}
|
|
38312
38329
|
),
|
|
@@ -38318,7 +38335,7 @@ ${j[1]}`;
|
|
|
38318
38335
|
placeholder: v("placeholder.password"),
|
|
38319
38336
|
value: F.password,
|
|
38320
38337
|
onChange: (C) => P("password", C.target.value),
|
|
38321
|
-
error:
|
|
38338
|
+
error: $.password,
|
|
38322
38339
|
required: !0
|
|
38323
38340
|
}
|
|
38324
38341
|
),
|
|
@@ -38425,13 +38442,13 @@ ${j[1]}`;
|
|
|
38425
38442
|
layout: d = "embedded",
|
|
38426
38443
|
...s
|
|
38427
38444
|
}) => {
|
|
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),
|
|
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 = () => {
|
|
38429
38446
|
const C = {};
|
|
38430
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;
|
|
38431
38448
|
}, O = (C) => {
|
|
38432
38449
|
const j = C.target.value;
|
|
38433
38450
|
p(j), h.email && M((T) => ({ ...T, email: null })), L && F(null);
|
|
38434
|
-
},
|
|
38451
|
+
}, n0 = async (C) => {
|
|
38435
38452
|
if (C.preventDefault(), !!W()) {
|
|
38436
38453
|
if (!r) {
|
|
38437
38454
|
console.warn("ForgotPassword: onSubmit prop is required");
|
|
@@ -38496,7 +38513,7 @@ ${j[1]}`;
|
|
|
38496
38513
|
)
|
|
38497
38514
|
] }),
|
|
38498
38515
|
/* @__PURE__ */ l.jsxs("div", { className: "bg-white border border-gray-200 rounded-lg p-6 shadow-md", children: [
|
|
38499
|
-
R &&
|
|
38516
|
+
R && !k && /* @__PURE__ */ l.jsxs("div", { className: "text-center space-y-4", children: [
|
|
38500
38517
|
/* @__PURE__ */ l.jsxs(
|
|
38501
38518
|
"div",
|
|
38502
38519
|
{
|
|
@@ -38537,7 +38554,7 @@ ${j[1]}`;
|
|
|
38537
38554
|
}
|
|
38538
38555
|
)
|
|
38539
38556
|
] }),
|
|
38540
|
-
|
|
38557
|
+
k && /* @__PURE__ */ l.jsx("div", { className: "text-center space-y-4", children: /* @__PURE__ */ l.jsxs(
|
|
38541
38558
|
"div",
|
|
38542
38559
|
{
|
|
38543
38560
|
className: "rounded-lg p-4 border",
|
|
@@ -38576,7 +38593,7 @@ ${j[1]}`;
|
|
|
38576
38593
|
]
|
|
38577
38594
|
}
|
|
38578
38595
|
) }),
|
|
38579
|
-
!R &&
|
|
38596
|
+
!R && !k && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
38580
38597
|
a && /* @__PURE__ */ l.jsxs(
|
|
38581
38598
|
"button",
|
|
38582
38599
|
{
|
|
@@ -38590,7 +38607,7 @@ ${j[1]}`;
|
|
|
38590
38607
|
]
|
|
38591
38608
|
}
|
|
38592
38609
|
),
|
|
38593
|
-
/* @__PURE__ */ l.jsxs("form", { onSubmit:
|
|
38610
|
+
/* @__PURE__ */ l.jsxs("form", { onSubmit: n0, className: "space-y-4", children: [
|
|
38594
38611
|
/* @__PURE__ */ l.jsxs("div", { children: [
|
|
38595
38612
|
/* @__PURE__ */ l.jsx(
|
|
38596
38613
|
"label",
|
|
@@ -38617,10 +38634,10 @@ ${j[1]}`;
|
|
|
38617
38634
|
),
|
|
38618
38635
|
h.email && /* @__PURE__ */ l.jsx("p", { className: "mt-1 text-sm text-red-600", children: h.email })
|
|
38619
38636
|
] }),
|
|
38620
|
-
|
|
38637
|
+
$ && /* @__PURE__ */ l.jsx(
|
|
38621
38638
|
"div",
|
|
38622
38639
|
{
|
|
38623
|
-
className: "rounded-lg p-4 border",
|
|
38640
|
+
className: "rounded-lg p-4 border anima-forgotpassword__errorBox",
|
|
38624
38641
|
style: {
|
|
38625
38642
|
backgroundColor: "#fecaca",
|
|
38626
38643
|
borderColor: "#ef4444"
|
|
@@ -38630,8 +38647,16 @@ ${j[1]}`;
|
|
|
38630
38647
|
{
|
|
38631
38648
|
variant: "body2",
|
|
38632
38649
|
className: "font-bold",
|
|
38633
|
-
style: {
|
|
38634
|
-
|
|
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: $
|
|
38635
38660
|
}
|
|
38636
38661
|
)
|
|
38637
38662
|
}
|
|
@@ -38644,7 +38669,7 @@ ${j[1]}`;
|
|
|
38644
38669
|
tamaño: "Default",
|
|
38645
38670
|
type: "submit",
|
|
38646
38671
|
className: "w-full",
|
|
38647
|
-
disabled:
|
|
38672
|
+
disabled: k || !Q(g),
|
|
38648
38673
|
children: /* @__PURE__ */ l.jsx(
|
|
38649
38674
|
"span",
|
|
38650
38675
|
{
|
|
@@ -38656,7 +38681,7 @@ ${j[1]}`;
|
|
|
38656
38681
|
lineHeight: "24px",
|
|
38657
38682
|
letterSpacing: "0%"
|
|
38658
38683
|
},
|
|
38659
|
-
children:
|
|
38684
|
+
children: k ? i("forgotPassword.sending") ?? "Enviando..." : i("forgotPassword.button") ?? "Enviar link"
|
|
38660
38685
|
}
|
|
38661
38686
|
)
|
|
38662
38687
|
}
|
|
@@ -38695,20 +38720,20 @@ ${j[1]}`;
|
|
|
38695
38720
|
// Actions
|
|
38696
38721
|
cancelLabel: L,
|
|
38697
38722
|
submitLabel: F,
|
|
38698
|
-
onCancel:
|
|
38699
|
-
onSubmit:
|
|
38723
|
+
onCancel: k,
|
|
38724
|
+
onSubmit: $,
|
|
38700
38725
|
disabled: Q = !1,
|
|
38701
38726
|
submitting: P = !1,
|
|
38702
38727
|
// Success
|
|
38703
38728
|
success: W = !1,
|
|
38704
38729
|
successTitle: O,
|
|
38705
|
-
successMessage:
|
|
38730
|
+
successMessage: n0,
|
|
38706
38731
|
successExtra: C,
|
|
38707
38732
|
className: j = "",
|
|
38708
38733
|
...T
|
|
38709
38734
|
}) => {
|
|
38710
|
-
const { t: K } = b0(), D = a === "hexa-login", Z = r === "page", H = (
|
|
38711
|
-
|
|
38735
|
+
const { t: K } = b0(), D = a === "hexa-login", Z = r === "page", H = (z) => {
|
|
38736
|
+
z.preventDefault(), $ && !Q && !P && $({
|
|
38712
38737
|
password: d,
|
|
38713
38738
|
confirmPassword: g
|
|
38714
38739
|
});
|
|
@@ -38777,13 +38802,13 @@ ${j[1]}`;
|
|
|
38777
38802
|
children: O
|
|
38778
38803
|
}
|
|
38779
38804
|
),
|
|
38780
|
-
|
|
38805
|
+
n0 && /* @__PURE__ */ l.jsx(
|
|
38781
38806
|
x,
|
|
38782
38807
|
{
|
|
38783
38808
|
variant: "body2",
|
|
38784
38809
|
className: O ? "mt-2" : "",
|
|
38785
38810
|
style: { color: "#047857", fontSize: "14px" },
|
|
38786
|
-
children:
|
|
38811
|
+
children: n0
|
|
38787
38812
|
}
|
|
38788
38813
|
),
|
|
38789
38814
|
C && /* @__PURE__ */ l.jsx("div", { className: "mt-4", children: C })
|
|
@@ -38898,14 +38923,14 @@ ${j[1]}`;
|
|
|
38898
38923
|
whiteSpace: "pre-line"
|
|
38899
38924
|
},
|
|
38900
38925
|
children: M || (() => {
|
|
38901
|
-
const
|
|
38926
|
+
const z = A || K("form.passwordRequirementsPrefix") || "Recuerda que la contraseña debe tener:", t0 = y.length > 0 ? y : [
|
|
38902
38927
|
K("form.passwordRequirementMinChars") || "Un mínimo de 6 caracteres",
|
|
38903
38928
|
K("form.passwordRequirementOther") || "Una mayúscula, un número, un carácter especial"
|
|
38904
38929
|
];
|
|
38905
|
-
return `${
|
|
38906
|
-
${n0[0]}
|
|
38930
|
+
return t0.length > 0 ? `${z}
|
|
38907
38931
|
|
|
38908
|
-
${
|
|
38932
|
+
${t0.map((J) => `• ${J}`).join(`
|
|
38933
|
+
`)}` : z;
|
|
38909
38934
|
})()
|
|
38910
38935
|
}
|
|
38911
38936
|
)
|
|
@@ -38931,7 +38956,7 @@ ${n0.slice(1).join(", ")}`;
|
|
|
38931
38956
|
}
|
|
38932
38957
|
),
|
|
38933
38958
|
/* @__PURE__ */ l.jsxs("div", { className: "flex gap-4 pt-4", children: [
|
|
38934
|
-
|
|
38959
|
+
k && /* @__PURE__ */ l.jsx(
|
|
38935
38960
|
m0,
|
|
38936
38961
|
{
|
|
38937
38962
|
type: "button",
|
|
@@ -38939,7 +38964,7 @@ ${n0.slice(1).join(", ")}`;
|
|
|
38939
38964
|
color: "Teal",
|
|
38940
38965
|
tamaño: "Default",
|
|
38941
38966
|
className: "flex-1",
|
|
38942
|
-
onClick:
|
|
38967
|
+
onClick: k,
|
|
38943
38968
|
disabled: Q || P,
|
|
38944
38969
|
children: /* @__PURE__ */ l.jsx(
|
|
38945
38970
|
"span",
|
|
@@ -38964,7 +38989,7 @@ ${n0.slice(1).join(", ")}`;
|
|
|
38964
38989
|
tipo: "Primary",
|
|
38965
38990
|
color: "Teal",
|
|
38966
38991
|
tamaño: "Default",
|
|
38967
|
-
className:
|
|
38992
|
+
className: k ? "flex-1" : "w-full",
|
|
38968
38993
|
disabled: Q || P,
|
|
38969
38994
|
children: /* @__PURE__ */ l.jsx(
|
|
38970
38995
|
"span",
|