sass-template-common 0.7.0 → 0.7.2
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/sass-template-common.js +407 -407
- package/dist/sass-template-common.umd.cjs +23 -23
- package/package.json +1 -1
|
@@ -175,7 +175,7 @@ function to() {
|
|
|
175
175
|
(function(n, s) {
|
|
176
176
|
e.exports = s();
|
|
177
177
|
})(hi, (function() {
|
|
178
|
-
var n = 1e3, s = 6e4, o = 36e5, i = "millisecond", r = "second", c = "minute", u = "hour", d = "day", l = "week", m = "month", h = "quarter",
|
|
178
|
+
var n = 1e3, s = 6e4, o = 36e5, i = "millisecond", r = "second", c = "minute", u = "hour", d = "day", l = "week", m = "month", h = "quarter", A = "year", f = "date", p = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, _ = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, S = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
|
|
179
179
|
var k = ["th", "st", "nd", "rd"], T = R % 100;
|
|
180
180
|
return "[" + R + (k[(T - 20) % 10] || k[T] || k[0]) + "]";
|
|
181
181
|
} }, C = function(R, k, T) {
|
|
@@ -191,7 +191,7 @@ function to() {
|
|
|
191
191
|
}, a: function(R) {
|
|
192
192
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
193
193
|
}, p: function(R) {
|
|
194
|
-
return { M: m, y:
|
|
194
|
+
return { M: m, y: A, w: l, d, D: f, h: u, m: c, s: r, ms: i, Q: h }[R] || String(R || "").toLowerCase().replace(/s$/, "");
|
|
195
195
|
}, u: function(R) {
|
|
196
196
|
return R === void 0;
|
|
197
197
|
} }, y = "en", E = {};
|
|
@@ -245,7 +245,7 @@ function to() {
|
|
|
245
245
|
}, k.$utils = function() {
|
|
246
246
|
return O;
|
|
247
247
|
}, k.isValid = function() {
|
|
248
|
-
return this.$d.toString() !==
|
|
248
|
+
return this.$d.toString() !== p;
|
|
249
249
|
}, k.isSame = function(T, D) {
|
|
250
250
|
var U = Q(T);
|
|
251
251
|
return this.startOf(D) <= U && U <= this.endOf(D);
|
|
@@ -267,7 +267,7 @@ function to() {
|
|
|
267
267
|
return O.w(U.toDate()[ne].apply(U.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(W)), U);
|
|
268
268
|
}, j = this.$W, M = this.$M, H = this.$D, z = "set" + (this.$u ? "UTC" : "");
|
|
269
269
|
switch (b) {
|
|
270
|
-
case
|
|
270
|
+
case A:
|
|
271
271
|
return F ? N(1, 0) : N(31, 11);
|
|
272
272
|
case m:
|
|
273
273
|
return F ? N(1, M) : N(0, M + 1);
|
|
@@ -289,8 +289,8 @@ function to() {
|
|
|
289
289
|
}, k.endOf = function(T) {
|
|
290
290
|
return this.startOf(T, !1);
|
|
291
291
|
}, k.$set = function(T, D) {
|
|
292
|
-
var U, F = O.p(T), b = "set" + (this.$u ? "UTC" : ""), N = (U = {}, U[d] = b + "Date", U[f] = b + "Date", U[m] = b + "Month", U[
|
|
293
|
-
if (F === m || F ===
|
|
292
|
+
var U, F = O.p(T), b = "set" + (this.$u ? "UTC" : ""), N = (U = {}, U[d] = b + "Date", U[f] = b + "Date", U[m] = b + "Month", U[A] = b + "FullYear", U[u] = b + "Hours", U[c] = b + "Minutes", U[r] = b + "Seconds", U[i] = b + "Milliseconds", U)[F], B = F === d ? this.$D + (D - this.$W) : D;
|
|
293
|
+
if (F === m || F === A) {
|
|
294
294
|
var j = this.clone().set(f, 1);
|
|
295
295
|
j.$d[N](B), j.init(), this.$d = j.set(f, Math.min(this.$D, j.daysInMonth())).$d;
|
|
296
296
|
} else N && this.$d[N](B);
|
|
@@ -307,7 +307,7 @@ function to() {
|
|
|
307
307
|
return O.w(H.date(H.date() + Math.round(M * T)), F);
|
|
308
308
|
};
|
|
309
309
|
if (b === m) return this.set(m, this.$M + T);
|
|
310
|
-
if (b ===
|
|
310
|
+
if (b === A) return this.set(A, this.$y + T);
|
|
311
311
|
if (b === d) return N(1);
|
|
312
312
|
if (b === l) return N(7);
|
|
313
313
|
var B = (U = {}, U[c] = s, U[u] = o, U[r] = n, U)[b] || 1, j = this.$d.getTime() + T * B;
|
|
@@ -316,7 +316,7 @@ function to() {
|
|
|
316
316
|
return this.add(-1 * T, D);
|
|
317
317
|
}, k.format = function(T) {
|
|
318
318
|
var D = this, U = this.$locale();
|
|
319
|
-
if (!this.isValid()) return U.invalidDate ||
|
|
319
|
+
if (!this.isValid()) return U.invalidDate || p;
|
|
320
320
|
var F = T || "YYYY-MM-DDTHH:mm:ssZ", b = O.z(this), N = this.$H, B = this.$m, j = this.$M, M = U.weekdays, H = U.months, z = U.meridiem, V = function(W, de, P, Ce) {
|
|
321
321
|
return W && (W[de] || W(D, F)) || P[de].slice(0, Ce);
|
|
322
322
|
}, ee = function(W) {
|
|
@@ -387,7 +387,7 @@ function to() {
|
|
|
387
387
|
return O.m(b, B);
|
|
388
388
|
};
|
|
389
389
|
switch (N) {
|
|
390
|
-
case
|
|
390
|
+
case A:
|
|
391
391
|
F = H() / 12;
|
|
392
392
|
break;
|
|
393
393
|
case m:
|
|
@@ -435,7 +435,7 @@ function to() {
|
|
|
435
435
|
return this.$d.toUTCString();
|
|
436
436
|
}, R;
|
|
437
437
|
})(), ae = K.prototype;
|
|
438
|
-
return Q.prototype = ae, [["$ms", i], ["$s", r], ["$m", c], ["$H", u], ["$W", d], ["$M", m], ["$y",
|
|
438
|
+
return Q.prototype = ae, [["$ms", i], ["$s", r], ["$m", c], ["$H", u], ["$W", d], ["$M", m], ["$y", A], ["$D", f]].forEach((function(R) {
|
|
439
439
|
ae[R[1]] = function(k) {
|
|
440
440
|
return this.$g(k, R[0], R[1]);
|
|
441
441
|
};
|
|
@@ -461,21 +461,21 @@ function pi() {
|
|
|
461
461
|
function c(d, l, m, h) {
|
|
462
462
|
return i.fromToBase(d, l, m, h);
|
|
463
463
|
}
|
|
464
|
-
o.en.relativeTime = r, i.fromToBase = function(d, l, m, h,
|
|
465
|
-
for (var f,
|
|
464
|
+
o.en.relativeTime = r, i.fromToBase = function(d, l, m, h, A) {
|
|
465
|
+
for (var f, p, w, _ = m.$locale().relativeTime || r, S = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], C = S.length, I = 0; I < C; I += 1) {
|
|
466
466
|
var y = S[I];
|
|
467
467
|
y.d && (f = h ? o(d).diff(m, y.d, !0) : m.diff(d, y.d, !0));
|
|
468
468
|
var E = (n.rounding || Math.round)(Math.abs(f));
|
|
469
469
|
if (w = f > 0, E <= y.r || !y.r) {
|
|
470
470
|
E <= 1 && I > 0 && (y = S[I - 1]);
|
|
471
471
|
var x = _[y.l];
|
|
472
|
-
|
|
472
|
+
A && (E = A("" + E)), p = typeof x == "string" ? x.replace("%d", E) : x(E, l, y.l, w);
|
|
473
473
|
break;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
if (l) return
|
|
476
|
+
if (l) return p;
|
|
477
477
|
var G = w ? _.future : _.past;
|
|
478
|
-
return typeof G == "function" ? G(
|
|
478
|
+
return typeof G == "function" ? G(p) : G.replace("%s", p);
|
|
479
479
|
}, i.to = function(d, l) {
|
|
480
480
|
return c(d, l, this, !0);
|
|
481
481
|
}, i.from = function(d, l) {
|
|
@@ -521,38 +521,38 @@ function vi() {
|
|
|
521
521
|
var n = "minute", s = /[+-]\d\d(?::?\d\d)?/g, o = /([+-]|\d\d)/g;
|
|
522
522
|
return function(i, r, c) {
|
|
523
523
|
var u = r.prototype;
|
|
524
|
-
c.utc = function(
|
|
525
|
-
var w = { date:
|
|
524
|
+
c.utc = function(p) {
|
|
525
|
+
var w = { date: p, utc: !0, args: arguments };
|
|
526
526
|
return new r(w);
|
|
527
|
-
}, u.utc = function(
|
|
527
|
+
}, u.utc = function(p) {
|
|
528
528
|
var w = c(this.toDate(), { locale: this.$L, utc: !0 });
|
|
529
|
-
return
|
|
529
|
+
return p ? w.add(this.utcOffset(), n) : w;
|
|
530
530
|
}, u.local = function() {
|
|
531
531
|
return c(this.toDate(), { locale: this.$L, utc: !1 });
|
|
532
532
|
};
|
|
533
533
|
var d = u.parse;
|
|
534
|
-
u.parse = function(
|
|
535
|
-
|
|
534
|
+
u.parse = function(p) {
|
|
535
|
+
p.utc && (this.$u = !0), this.$utils().u(p.$offset) || (this.$offset = p.$offset), d.call(this, p);
|
|
536
536
|
};
|
|
537
537
|
var l = u.init;
|
|
538
538
|
u.init = function() {
|
|
539
539
|
if (this.$u) {
|
|
540
|
-
var
|
|
541
|
-
this.$y =
|
|
540
|
+
var p = this.$d;
|
|
541
|
+
this.$y = p.getUTCFullYear(), this.$M = p.getUTCMonth(), this.$D = p.getUTCDate(), this.$W = p.getUTCDay(), this.$H = p.getUTCHours(), this.$m = p.getUTCMinutes(), this.$s = p.getUTCSeconds(), this.$ms = p.getUTCMilliseconds();
|
|
542
542
|
} else l.call(this);
|
|
543
543
|
};
|
|
544
544
|
var m = u.utcOffset;
|
|
545
|
-
u.utcOffset = function(
|
|
545
|
+
u.utcOffset = function(p, w) {
|
|
546
546
|
var _ = this.$utils().u;
|
|
547
|
-
if (_(
|
|
548
|
-
if (typeof
|
|
547
|
+
if (_(p)) return this.$u ? 0 : _(this.$offset) ? m.call(this) : this.$offset;
|
|
548
|
+
if (typeof p == "string" && (p = (function(y) {
|
|
549
549
|
y === void 0 && (y = "");
|
|
550
550
|
var E = y.match(s);
|
|
551
551
|
if (!E) return null;
|
|
552
552
|
var x = ("" + E[0]).match(o) || ["-", 0, 0], G = x[0], X = 60 * +x[1] + +x[2];
|
|
553
553
|
return X === 0 ? 0 : G === "+" ? X : -X;
|
|
554
|
-
})(
|
|
555
|
-
var S = Math.abs(
|
|
554
|
+
})(p), p === null)) return this;
|
|
555
|
+
var S = Math.abs(p) <= 16 ? 60 * p : p;
|
|
556
556
|
if (S === 0) return this.utc(w);
|
|
557
557
|
var C = this.clone();
|
|
558
558
|
if (w) return C.$offset = S, C.$u = !1, C;
|
|
@@ -560,12 +560,12 @@ function vi() {
|
|
|
560
560
|
return (C = this.local().add(S + I, n)).$offset = S, C.$x.$localOffset = I, C;
|
|
561
561
|
};
|
|
562
562
|
var h = u.format;
|
|
563
|
-
u.format = function(
|
|
564
|
-
var w =
|
|
563
|
+
u.format = function(p) {
|
|
564
|
+
var w = p || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
565
565
|
return h.call(this, w);
|
|
566
566
|
}, u.valueOf = function() {
|
|
567
|
-
var
|
|
568
|
-
return this.$d.valueOf() - 6e4 *
|
|
567
|
+
var p = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
568
|
+
return this.$d.valueOf() - 6e4 * p;
|
|
569
569
|
}, u.isUTC = function() {
|
|
570
570
|
return !!this.$u;
|
|
571
571
|
}, u.toISOString = function() {
|
|
@@ -573,14 +573,14 @@ function vi() {
|
|
|
573
573
|
}, u.toString = function() {
|
|
574
574
|
return this.toDate().toUTCString();
|
|
575
575
|
};
|
|
576
|
-
var
|
|
577
|
-
u.toDate = function(
|
|
578
|
-
return
|
|
576
|
+
var A = u.toDate;
|
|
577
|
+
u.toDate = function(p) {
|
|
578
|
+
return p === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : A.call(this);
|
|
579
579
|
};
|
|
580
580
|
var f = u.diff;
|
|
581
|
-
u.diff = function(
|
|
582
|
-
if (
|
|
583
|
-
var S = this.local(), C = c(
|
|
581
|
+
u.diff = function(p, w, _) {
|
|
582
|
+
if (p && this.$u === p.$u) return f.call(this, p, w, _);
|
|
583
|
+
var S = this.local(), C = c(p).local();
|
|
584
584
|
return f.call(S, C, w, _);
|
|
585
585
|
};
|
|
586
586
|
};
|
|
@@ -597,51 +597,51 @@ function Ii() {
|
|
|
597
597
|
})(Ni, (function() {
|
|
598
598
|
var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, s = {};
|
|
599
599
|
return function(o, i, r) {
|
|
600
|
-
var c, u = function(h,
|
|
600
|
+
var c, u = function(h, A, f) {
|
|
601
601
|
f === void 0 && (f = {});
|
|
602
|
-
var
|
|
602
|
+
var p = new Date(h), w = (function(_, S) {
|
|
603
603
|
S === void 0 && (S = {});
|
|
604
604
|
var C = S.timeZoneName || "short", I = _ + "|" + C, y = s[I];
|
|
605
605
|
return y || (y = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: _, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: C }), s[I] = y), y;
|
|
606
|
-
})(
|
|
607
|
-
return w.formatToParts(
|
|
608
|
-
}, d = function(h,
|
|
609
|
-
for (var f = u(h,
|
|
606
|
+
})(A, f);
|
|
607
|
+
return w.formatToParts(p);
|
|
608
|
+
}, d = function(h, A) {
|
|
609
|
+
for (var f = u(h, A), p = [], w = 0; w < f.length; w += 1) {
|
|
610
610
|
var _ = f[w], S = _.type, C = _.value, I = n[S];
|
|
611
|
-
I >= 0 && (
|
|
611
|
+
I >= 0 && (p[I] = parseInt(C, 10));
|
|
612
612
|
}
|
|
613
|
-
var y =
|
|
613
|
+
var y = p[3], E = y === 24 ? 0 : y, x = p[0] + "-" + p[1] + "-" + p[2] + " " + E + ":" + p[4] + ":" + p[5] + ":000", G = +h;
|
|
614
614
|
return (r.utc(x).valueOf() - (G -= G % 1e3)) / 6e4;
|
|
615
615
|
}, l = i.prototype;
|
|
616
|
-
l.tz = function(h,
|
|
616
|
+
l.tz = function(h, A) {
|
|
617
617
|
h === void 0 && (h = c);
|
|
618
|
-
var f,
|
|
619
|
-
if (!Number(C)) f = this.utcOffset(0,
|
|
620
|
-
else if (f = r(_, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(C, !0),
|
|
618
|
+
var f, p = this.utcOffset(), w = this.toDate(), _ = w.toLocaleString("en-US", { timeZone: h }), S = Math.round((w - new Date(_)) / 1e3 / 60), C = 15 * -Math.round(w.getTimezoneOffset() / 15) - S;
|
|
619
|
+
if (!Number(C)) f = this.utcOffset(0, A);
|
|
620
|
+
else if (f = r(_, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(C, !0), A) {
|
|
621
621
|
var I = f.utcOffset();
|
|
622
|
-
f = f.add(
|
|
622
|
+
f = f.add(p - I, "minute");
|
|
623
623
|
}
|
|
624
624
|
return f.$x.$timezone = h, f;
|
|
625
625
|
}, l.offsetName = function(h) {
|
|
626
|
-
var
|
|
627
|
-
return
|
|
626
|
+
var A = this.$x.$timezone || r.tz.guess(), f = u(this.valueOf(), A, { timeZoneName: h }).find((function(p) {
|
|
627
|
+
return p.type.toLowerCase() === "timezonename";
|
|
628
628
|
}));
|
|
629
629
|
return f && f.value;
|
|
630
630
|
};
|
|
631
631
|
var m = l.startOf;
|
|
632
|
-
l.startOf = function(h,
|
|
633
|
-
if (!this.$x || !this.$x.$timezone) return m.call(this, h,
|
|
632
|
+
l.startOf = function(h, A) {
|
|
633
|
+
if (!this.$x || !this.$x.$timezone) return m.call(this, h, A);
|
|
634
634
|
var f = r(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
635
|
-
return m.call(f, h,
|
|
636
|
-
}, r.tz = function(h,
|
|
637
|
-
var
|
|
635
|
+
return m.call(f, h, A).tz(this.$x.$timezone, !0);
|
|
636
|
+
}, r.tz = function(h, A, f) {
|
|
637
|
+
var p = f && A, w = f || A || c, _ = d(+r(), w);
|
|
638
638
|
if (typeof h != "string") return r(h).tz(w);
|
|
639
639
|
var S = (function(E, x, G) {
|
|
640
640
|
var X = E - 60 * x * 1e3, Q = d(X, G);
|
|
641
641
|
if (x === Q) return [X, x];
|
|
642
642
|
var O = d(X -= 60 * (Q - x) * 1e3, G);
|
|
643
643
|
return Q === O ? [X, Q] : [E - 60 * Math.min(Q, O) * 1e3, Math.max(Q, O)];
|
|
644
|
-
})(r.utc(h,
|
|
644
|
+
})(r.utc(h, p).valueOf(), _, w), C = S[0], I = S[1], y = r(C).utcOffset(I);
|
|
645
645
|
return y.$x.$timezone = w, y;
|
|
646
646
|
}, r.tz.guess = function() {
|
|
647
647
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -683,10 +683,10 @@ const Ln = (e) => e === "en" ? "en" : "es", Fe = (e, t) => {
|
|
|
683
683
|
second: "2-digit",
|
|
684
684
|
hour12: !1
|
|
685
685
|
}).formatToParts(n), i = {};
|
|
686
|
-
o.forEach((
|
|
687
|
-
|
|
686
|
+
o.forEach((A) => {
|
|
687
|
+
A.type !== "literal" && (i[A.type] = A.value);
|
|
688
688
|
});
|
|
689
|
-
const r = new Date(n.toLocaleString("en-US", { timeZone: "UTC" })), u = (new Date(n.toLocaleString("en-US", { timeZone: t })).getTime() - r.getTime()) / 6e4, d = u >= 0 ? "+" : "-", l = (
|
|
689
|
+
const r = new Date(n.toLocaleString("en-US", { timeZone: "UTC" })), u = (new Date(n.toLocaleString("en-US", { timeZone: t })).getTime() - r.getTime()) / 6e4, d = u >= 0 ? "+" : "-", l = (A) => String(Math.floor(Math.abs(A))).padStart(2, "0"), m = l(u / 60), h = l(u % 60);
|
|
690
690
|
return `${i.year}-${i.month}-${i.day}T${i.hour}:${i.minute}:${i.second}${d}${m}:${h}`;
|
|
691
691
|
}, ze = (e, t = 136) => e && e.length > t ? `${e.substring(0, t)}...` : e;
|
|
692
692
|
function It(e) {
|
|
@@ -817,7 +817,7 @@ const Bi = async (e, t) => {
|
|
|
817
817
|
defaultWidth: n.landscapeLogo.width,
|
|
818
818
|
defaultHeight: n.landscapeLogo.height,
|
|
819
819
|
alt: s?.description ?? m
|
|
820
|
-
}),
|
|
820
|
+
}), A = ts({
|
|
821
821
|
schemaImage: l,
|
|
822
822
|
socialImage: t?.social?.images?.twitter,
|
|
823
823
|
fallbackImage: u,
|
|
@@ -852,7 +852,7 @@ const Bi = async (e, t) => {
|
|
|
852
852
|
card: "summary_large_image",
|
|
853
853
|
site: e.twitter.site,
|
|
854
854
|
description: t?.main?.subtitle?.striped ?? "",
|
|
855
|
-
images: [
|
|
855
|
+
images: [A]
|
|
856
856
|
},
|
|
857
857
|
article: {
|
|
858
858
|
published_time: $t(
|
|
@@ -1439,13 +1439,13 @@ const tr = async ({
|
|
|
1439
1439
|
logow: t.socialBlockLogo?.width,
|
|
1440
1440
|
logoh: t.socialBlockLogo?.height,
|
|
1441
1441
|
authorurl: n + "/autor/"
|
|
1442
|
-
}, l = e.split("/")[1], m = l == "liveblogs" || l == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], h = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema,
|
|
1442
|
+
}, l = e.split("/")[1], m = l == "liveblogs" || l == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], h = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema, A = o !== "false" && i !== "false" ? "/" + o + h : h;
|
|
1443
1443
|
r = (await Promise.all(
|
|
1444
|
-
m.map(async (
|
|
1445
|
-
const w =
|
|
1446
|
-
return await xa(w,
|
|
1444
|
+
m.map(async (p) => {
|
|
1445
|
+
const w = p === "/news-breadcrumb" ? { ...d, prefixtag: A } : p === "/news" && t.schemasNewsParams ? { ...d, ...t.schemasNewsParams } : d;
|
|
1446
|
+
return console.log("fetching => schemas/" + p, w), await xa(w, p, s);
|
|
1447
1447
|
})
|
|
1448
|
-
)).map((
|
|
1448
|
+
)).map((p) => p?.data?.data ?? []);
|
|
1449
1449
|
} catch (c) {
|
|
1450
1450
|
console.log("Error fetching schemas:", c);
|
|
1451
1451
|
}
|
|
@@ -2336,8 +2336,8 @@ function On(e, t, n) {
|
|
|
2336
2336
|
metaTokens: !0,
|
|
2337
2337
|
dots: !1,
|
|
2338
2338
|
indexes: !1
|
|
2339
|
-
}, !1, function(
|
|
2340
|
-
return !v.isUndefined(w[
|
|
2339
|
+
}, !1, function(p, w) {
|
|
2340
|
+
return !v.isUndefined(w[p]);
|
|
2341
2341
|
});
|
|
2342
2342
|
const s = n.metaTokens, o = n.visitor || l, i = n.dots, r = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && v.isSpecCompliantForm(t);
|
|
2343
2343
|
if (!v.isFunction(o))
|
|
@@ -2352,45 +2352,45 @@ function On(e, t, n) {
|
|
|
2352
2352
|
throw new J("Blob is not supported. Use a Buffer instead.");
|
|
2353
2353
|
return v.isArrayBuffer(f) || v.isTypedArray(f) ? u && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
2354
2354
|
}
|
|
2355
|
-
function l(f,
|
|
2355
|
+
function l(f, p, w) {
|
|
2356
2356
|
let _ = f;
|
|
2357
2357
|
if (f && !w && typeof f == "object") {
|
|
2358
|
-
if (v.endsWith(
|
|
2359
|
-
|
|
2360
|
-
else if (v.isArray(f) && Kr(f) || (v.isFileList(f) || v.endsWith(
|
|
2361
|
-
return
|
|
2358
|
+
if (v.endsWith(p, "{}"))
|
|
2359
|
+
p = s ? p : p.slice(0, -2), f = JSON.stringify(f);
|
|
2360
|
+
else if (v.isArray(f) && Kr(f) || (v.isFileList(f) || v.endsWith(p, "[]")) && (_ = v.toArray(f)))
|
|
2361
|
+
return p = Ao(p), _.forEach(function(C, I) {
|
|
2362
2362
|
!(v.isUndefined(C) || C === null) && t.append(
|
|
2363
2363
|
// eslint-disable-next-line no-nested-ternary
|
|
2364
|
-
r === !0 ? is([
|
|
2364
|
+
r === !0 ? is([p], I, i) : r === null ? p : p + "[]",
|
|
2365
2365
|
d(C)
|
|
2366
2366
|
);
|
|
2367
2367
|
}), !1;
|
|
2368
2368
|
}
|
|
2369
|
-
return fa(f) ? !0 : (t.append(is(w,
|
|
2369
|
+
return fa(f) ? !0 : (t.append(is(w, p, i), d(f)), !1);
|
|
2370
2370
|
}
|
|
2371
2371
|
const m = [], h = Object.assign(Jr, {
|
|
2372
2372
|
defaultVisitor: l,
|
|
2373
2373
|
convertValue: d,
|
|
2374
2374
|
isVisitable: fa
|
|
2375
2375
|
});
|
|
2376
|
-
function
|
|
2376
|
+
function A(f, p) {
|
|
2377
2377
|
if (!v.isUndefined(f)) {
|
|
2378
2378
|
if (m.indexOf(f) !== -1)
|
|
2379
|
-
throw Error("Circular reference detected in " +
|
|
2379
|
+
throw Error("Circular reference detected in " + p.join("."));
|
|
2380
2380
|
m.push(f), v.forEach(f, function(_, S) {
|
|
2381
2381
|
(!(v.isUndefined(_) || _ === null) && o.call(
|
|
2382
2382
|
t,
|
|
2383
2383
|
_,
|
|
2384
2384
|
v.isString(S) ? S.trim() : S,
|
|
2385
|
-
|
|
2385
|
+
p,
|
|
2386
2386
|
h
|
|
2387
|
-
)) === !0 &&
|
|
2387
|
+
)) === !0 && A(_, p ? p.concat(S) : [S]);
|
|
2388
2388
|
}), m.pop();
|
|
2389
2389
|
}
|
|
2390
2390
|
}
|
|
2391
2391
|
if (!v.isObject(e))
|
|
2392
2392
|
throw new TypeError("data must be an object");
|
|
2393
|
-
return
|
|
2393
|
+
return A(e), t;
|
|
2394
2394
|
}
|
|
2395
2395
|
function rs(e) {
|
|
2396
2396
|
const t = {
|
|
@@ -2874,8 +2874,8 @@ function wc(e, t) {
|
|
|
2874
2874
|
h += n[m++], m = m % e;
|
|
2875
2875
|
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), d - r < t)
|
|
2876
2876
|
return;
|
|
2877
|
-
const
|
|
2878
|
-
return
|
|
2877
|
+
const A = l && d - l;
|
|
2878
|
+
return A ? Math.round(h * 1e3 / A) : void 0;
|
|
2879
2879
|
};
|
|
2880
2880
|
}
|
|
2881
2881
|
function yc(e, t) {
|
|
@@ -3049,9 +3049,9 @@ const No = (e) => {
|
|
|
3049
3049
|
const o = No(e);
|
|
3050
3050
|
let i = o.data;
|
|
3051
3051
|
const r = Te.from(o.headers).normalize();
|
|
3052
|
-
let { responseType: c, onUploadProgress: u, onDownloadProgress: d } = o, l, m, h,
|
|
3053
|
-
function
|
|
3054
|
-
|
|
3052
|
+
let { responseType: c, onUploadProgress: u, onDownloadProgress: d } = o, l, m, h, A, f;
|
|
3053
|
+
function p() {
|
|
3054
|
+
A && A(), f && f(), o.cancelToken && o.cancelToken.unsubscribe(l), o.signal && o.signal.removeEventListener("abort", l);
|
|
3055
3055
|
}
|
|
3056
3056
|
let w = new XMLHttpRequest();
|
|
3057
3057
|
w.open(o.method.toUpperCase(), o.url, !0), w.timeout = o.timeout;
|
|
@@ -3069,9 +3069,9 @@ const No = (e) => {
|
|
|
3069
3069
|
request: w
|
|
3070
3070
|
};
|
|
3071
3071
|
Co(function(x) {
|
|
3072
|
-
n(x),
|
|
3072
|
+
n(x), p();
|
|
3073
3073
|
}, function(x) {
|
|
3074
|
-
s(x),
|
|
3074
|
+
s(x), p();
|
|
3075
3075
|
}, y), w = null;
|
|
3076
3076
|
}
|
|
3077
3077
|
"onloadend" in w ? w.onloadend = _ : w.onreadystatechange = function() {
|
|
@@ -3092,7 +3092,7 @@ const No = (e) => {
|
|
|
3092
3092
|
)), w = null;
|
|
3093
3093
|
}, i === void 0 && r.setContentType(null), "setRequestHeader" in w && v.forEach(r.toJSON(), function(I, y) {
|
|
3094
3094
|
w.setRequestHeader(y, I);
|
|
3095
|
-
}), v.isUndefined(o.withCredentials) || (w.withCredentials = !!o.withCredentials), c && c !== "json" && (w.responseType = o.responseType), d && ([h, f] = En(d, !0), w.addEventListener("progress", h)), u && w.upload && ([m,
|
|
3095
|
+
}), v.isUndefined(o.withCredentials) || (w.withCredentials = !!o.withCredentials), c && c !== "json" && (w.responseType = o.responseType), d && ([h, f] = En(d, !0), w.addEventListener("progress", h)), u && w.upload && ([m, A] = En(u), w.upload.addEventListener("progress", m), w.upload.addEventListener("loadend", A)), (o.cancelToken || o.signal) && (l = (C) => {
|
|
3096
3096
|
w && (s(!C || C.type ? new Ut(null, e, w) : C), w.abort(), w = null);
|
|
3097
3097
|
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
3098
3098
|
const S = Ac(o.url);
|
|
@@ -3201,24 +3201,24 @@ const No = (e) => {
|
|
|
3201
3201
|
const { fetch: t, Request: n, Response: s } = e, o = t ? an(t) : typeof fetch == "function", i = an(n), r = an(s);
|
|
3202
3202
|
if (!o)
|
|
3203
3203
|
return !1;
|
|
3204
|
-
const c = o && an(gs), u = o && (typeof ps == "function" ? /* @__PURE__ */ ((f) => (
|
|
3204
|
+
const c = o && an(gs), u = o && (typeof ps == "function" ? /* @__PURE__ */ ((f) => (p) => f.encode(p))(new ps()) : async (f) => new Uint8Array(await new n(f).arrayBuffer())), d = i && c && As(() => {
|
|
3205
3205
|
let f = !1;
|
|
3206
|
-
const
|
|
3206
|
+
const p = new n(_e.origin, {
|
|
3207
3207
|
body: new gs(),
|
|
3208
3208
|
method: "POST",
|
|
3209
3209
|
get duplex() {
|
|
3210
3210
|
return f = !0, "half";
|
|
3211
3211
|
}
|
|
3212
3212
|
}).headers.has("Content-Type");
|
|
3213
|
-
return f && !
|
|
3213
|
+
return f && !p;
|
|
3214
3214
|
}), l = r && c && As(() => v.isReadableStream(new s("").body)), m = {
|
|
3215
3215
|
stream: l && ((f) => f.body)
|
|
3216
3216
|
};
|
|
3217
3217
|
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
3218
|
-
!m[f] && (m[f] = (
|
|
3219
|
-
let _ =
|
|
3218
|
+
!m[f] && (m[f] = (p, w) => {
|
|
3219
|
+
let _ = p && p[f];
|
|
3220
3220
|
if (_)
|
|
3221
|
-
return _.call(
|
|
3221
|
+
return _.call(p);
|
|
3222
3222
|
throw new J(`Response type '${f}' is not supported`, J.ERR_NOT_SUPPORT, w);
|
|
3223
3223
|
});
|
|
3224
3224
|
});
|
|
@@ -3236,13 +3236,13 @@ const No = (e) => {
|
|
|
3236
3236
|
return f.byteLength;
|
|
3237
3237
|
if (v.isURLSearchParams(f) && (f = f + ""), v.isString(f))
|
|
3238
3238
|
return (await u(f)).byteLength;
|
|
3239
|
-
},
|
|
3239
|
+
}, A = async (f, p) => {
|
|
3240
3240
|
const w = v.toFiniteNumber(f.getContentLength());
|
|
3241
|
-
return w ?? h(
|
|
3241
|
+
return w ?? h(p);
|
|
3242
3242
|
};
|
|
3243
3243
|
return async (f) => {
|
|
3244
3244
|
let {
|
|
3245
|
-
url:
|
|
3245
|
+
url: p,
|
|
3246
3246
|
method: w,
|
|
3247
3247
|
data: _,
|
|
3248
3248
|
signal: S,
|
|
@@ -3262,8 +3262,8 @@ const No = (e) => {
|
|
|
3262
3262
|
});
|
|
3263
3263
|
let k;
|
|
3264
3264
|
try {
|
|
3265
|
-
if (E && d && w !== "get" && w !== "head" && (k = await
|
|
3266
|
-
let N = new n(
|
|
3265
|
+
if (E && d && w !== "get" && w !== "head" && (k = await A(G, _)) !== 0) {
|
|
3266
|
+
let N = new n(p, {
|
|
3267
3267
|
method: "POST",
|
|
3268
3268
|
body: _,
|
|
3269
3269
|
duplex: "half"
|
|
@@ -3286,8 +3286,8 @@ const No = (e) => {
|
|
|
3286
3286
|
duplex: "half",
|
|
3287
3287
|
credentials: T ? X : void 0
|
|
3288
3288
|
};
|
|
3289
|
-
ae = i && new n(
|
|
3290
|
-
let U = await (i ? O(ae, Q) : O(
|
|
3289
|
+
ae = i && new n(p, D);
|
|
3290
|
+
let U = await (i ? O(ae, Q) : O(p, D));
|
|
3291
3291
|
const F = l && (x === "stream" || x === "response");
|
|
3292
3292
|
if (l && (y || F && R)) {
|
|
3293
3293
|
const N = {};
|
|
@@ -3527,12 +3527,12 @@ let pt = class {
|
|
|
3527
3527
|
), n.headers = Te.concat(r, i);
|
|
3528
3528
|
const c = [];
|
|
3529
3529
|
let u = !0;
|
|
3530
|
-
this.interceptors.request.forEach(function(
|
|
3531
|
-
typeof
|
|
3530
|
+
this.interceptors.request.forEach(function(p) {
|
|
3531
|
+
typeof p.runWhen == "function" && p.runWhen(n) === !1 || (u = u && p.synchronous, c.unshift(p.fulfilled, p.rejected));
|
|
3532
3532
|
});
|
|
3533
3533
|
const d = [];
|
|
3534
|
-
this.interceptors.response.forEach(function(
|
|
3535
|
-
d.push(
|
|
3534
|
+
this.interceptors.response.forEach(function(p) {
|
|
3535
|
+
d.push(p.fulfilled, p.rejected);
|
|
3536
3536
|
});
|
|
3537
3537
|
let l, m = 0, h;
|
|
3538
3538
|
if (!u) {
|
|
@@ -3542,18 +3542,18 @@ let pt = class {
|
|
|
3542
3542
|
return l;
|
|
3543
3543
|
}
|
|
3544
3544
|
h = c.length;
|
|
3545
|
-
let
|
|
3545
|
+
let A = n;
|
|
3546
3546
|
for (; m < h; ) {
|
|
3547
|
-
const f = c[m++],
|
|
3547
|
+
const f = c[m++], p = c[m++];
|
|
3548
3548
|
try {
|
|
3549
|
-
|
|
3549
|
+
A = f(A);
|
|
3550
3550
|
} catch (w) {
|
|
3551
|
-
|
|
3551
|
+
p.call(this, w);
|
|
3552
3552
|
break;
|
|
3553
3553
|
}
|
|
3554
3554
|
}
|
|
3555
3555
|
try {
|
|
3556
|
-
l = ys.call(this,
|
|
3556
|
+
l = ys.call(this, A);
|
|
3557
3557
|
} catch (f) {
|
|
3558
3558
|
return Promise.reject(f);
|
|
3559
3559
|
}
|
|
@@ -4129,7 +4129,7 @@ class ft {
|
|
|
4129
4129
|
...h
|
|
4130
4130
|
])).map(
|
|
4131
4131
|
(_) => It(_)?.data
|
|
4132
|
-
),
|
|
4132
|
+
), p = await Bi(
|
|
4133
4133
|
d,
|
|
4134
4134
|
this.getNews
|
|
4135
4135
|
);
|
|
@@ -4142,7 +4142,7 @@ class ft {
|
|
|
4142
4142
|
return {
|
|
4143
4143
|
news: r ?? [],
|
|
4144
4144
|
autor: u,
|
|
4145
|
-
newsRelatedResponses:
|
|
4145
|
+
newsRelatedResponses: p,
|
|
4146
4146
|
itemList: It(i)?.data ?? [],
|
|
4147
4147
|
newsRelatedListResponses: f,
|
|
4148
4148
|
schemasImages: w ?? []
|
|
@@ -4330,10 +4330,10 @@ const f5 = async (e, t, n, s, o, i, r) => {
|
|
|
4330
4330
|
return (() => {
|
|
4331
4331
|
const m = {};
|
|
4332
4332
|
for (let h = 0; h < d.length; h++) {
|
|
4333
|
-
const
|
|
4333
|
+
const A = ki(
|
|
4334
4334
|
d[h]
|
|
4335
4335
|
), f = "Home_" + (Math.floor(h / i) + 1) + "_" + (Math.floor(h % i) + 1);
|
|
4336
|
-
|
|
4336
|
+
A && (m[f] = { ...A });
|
|
4337
4337
|
}
|
|
4338
4338
|
return m;
|
|
4339
4339
|
})();
|
|
@@ -4398,11 +4398,11 @@ const f5 = async (e, t, n, s, o, i, r) => {
|
|
|
4398
4398
|
page: d
|
|
4399
4399
|
});
|
|
4400
4400
|
if (!m) return Ne(t);
|
|
4401
|
-
const h = m.data.data,
|
|
4401
|
+
const h = m.data.data, A = h[0];
|
|
4402
4402
|
return h.length < l || u.push({ rel: "next", url: en(n, c, d) }), d > 1 && u.push({ rel: "prev", url: tn(n, c, d) }), {
|
|
4403
4403
|
...t,
|
|
4404
|
-
title: `Últimas Noticias de ${
|
|
4405
|
-
description: `Todas las últimas noticias de ${
|
|
4404
|
+
title: `Últimas Noticias de ${A.info.section?.name} | ${n.name}`,
|
|
4405
|
+
description: `Todas las últimas noticias de ${A.info.section?.name} en ${n.name}`,
|
|
4406
4406
|
alternates: {
|
|
4407
4407
|
...t.alternates,
|
|
4408
4408
|
canonical: n.siteUrl + s
|
|
@@ -4416,14 +4416,14 @@ const f5 = async (e, t, n, s, o, i, r) => {
|
|
|
4416
4416
|
"msapplication-TileImage": n.msapplicationTileImage ?? ""
|
|
4417
4417
|
},
|
|
4418
4418
|
openGraph: {
|
|
4419
|
-
title: `${
|
|
4419
|
+
title: `${A.info.section?.name}`,
|
|
4420
4420
|
type: "website",
|
|
4421
4421
|
url: `${n.siteUrl}${s}`,
|
|
4422
4422
|
locale: t.openGraph.locale
|
|
4423
4423
|
},
|
|
4424
4424
|
twitter: {
|
|
4425
4425
|
card: "summary_large_image",
|
|
4426
|
-
title: `${
|
|
4426
|
+
title: `${A.info.section?.name}`,
|
|
4427
4427
|
site: t.twitter.site,
|
|
4428
4428
|
domain: n.siteUrl,
|
|
4429
4429
|
url: `${n.siteUrl}${s}`
|
|
@@ -4434,19 +4434,19 @@ const f5 = async (e, t, n, s, o, i, r) => {
|
|
|
4434
4434
|
}
|
|
4435
4435
|
},
|
|
4436
4436
|
tema: async (e) => {
|
|
4437
|
-
const { meta: t, config: n, pathname: s, slug: o, axiosApi: i } = e, r = new ft({ config: n, axiosApi: i }), c = s.split("/"), u = [], d = nn(s), l = Number(n.newsListLimit) ?? 0, m = /([t][0-9]{4})\w+/.exec(o || ""), h = m && m?.length > 0 ? m[0].replace("t", "") : "", { PUBLIC_TAG_TYPE:
|
|
4437
|
+
const { meta: t, config: n, pathname: s, slug: o, axiosApi: i } = e, r = new ft({ config: n, axiosApi: i }), c = s.split("/"), u = [], d = nn(s), l = Number(n.newsListLimit) ?? 0, m = /([t][0-9]{4})\w+/.exec(o || ""), h = m && m?.length > 0 ? m[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: A } = $();
|
|
4438
4438
|
try {
|
|
4439
4439
|
const f = await r.getNewsListTags({
|
|
4440
4440
|
tagid: h,
|
|
4441
4441
|
size: l,
|
|
4442
|
-
tagtype: Number(
|
|
4442
|
+
tagtype: Number(A),
|
|
4443
4443
|
newstype: n.newsType,
|
|
4444
4444
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
4445
4445
|
page: d
|
|
4446
4446
|
});
|
|
4447
4447
|
if (!f) return Ne(t);
|
|
4448
|
-
const
|
|
4449
|
-
return
|
|
4448
|
+
const p = f.data.entity;
|
|
4449
|
+
return p ? (f.data.data?.length < l || u.push({
|
|
4450
4450
|
rel: "next",
|
|
4451
4451
|
url: en(n, c, d)
|
|
4452
4452
|
}), d > 1 && u.push({
|
|
@@ -4454,8 +4454,8 @@ const f5 = async (e, t, n, s, o, i, r) => {
|
|
|
4454
4454
|
url: tn(n, c, d)
|
|
4455
4455
|
}), {
|
|
4456
4456
|
...t,
|
|
4457
|
-
title: `Últimas noticias de ${
|
|
4458
|
-
description: `Las últimas noticias sobre ${
|
|
4457
|
+
title: `Últimas noticias de ${p.name} | ${n.name}`,
|
|
4458
|
+
description: `Las últimas noticias sobre ${p.name} en ${n.name}`,
|
|
4459
4459
|
alternates: {
|
|
4460
4460
|
...t.alternates,
|
|
4461
4461
|
canonical: n.siteUrl + s
|
|
@@ -4469,14 +4469,14 @@ const f5 = async (e, t, n, s, o, i, r) => {
|
|
|
4469
4469
|
"msapplication-TileImage": n.msapplicationTileImage ?? ""
|
|
4470
4470
|
},
|
|
4471
4471
|
openGraph: {
|
|
4472
|
-
title: `${
|
|
4472
|
+
title: `${p.name}`,
|
|
4473
4473
|
type: "website",
|
|
4474
4474
|
url: `${n.siteUrl}${s}`,
|
|
4475
4475
|
locale: t.openGraph.locale
|
|
4476
4476
|
},
|
|
4477
4477
|
twitter: {
|
|
4478
4478
|
card: "summary_large_image",
|
|
4479
|
-
title: `${
|
|
4479
|
+
title: `${p.name}`,
|
|
4480
4480
|
site: t.twitter.site,
|
|
4481
4481
|
domain: n.siteUrl,
|
|
4482
4482
|
url: `${n.siteUrl}${s}`
|
|
@@ -4692,9 +4692,9 @@ async function p5({
|
|
|
4692
4692
|
listAutor: l,
|
|
4693
4693
|
currentNew: m,
|
|
4694
4694
|
banners: h,
|
|
4695
|
-
schemasImages:
|
|
4695
|
+
schemasImages: A,
|
|
4696
4696
|
internalPath: f,
|
|
4697
|
-
config:
|
|
4697
|
+
config: p,
|
|
4698
4698
|
socials: w,
|
|
4699
4699
|
speculationType: _ = "Common",
|
|
4700
4700
|
preloadImageUrl: S,
|
|
@@ -4703,9 +4703,9 @@ async function p5({
|
|
|
4703
4703
|
custom_scriptReplaces: y,
|
|
4704
4704
|
head_custom_elements: E
|
|
4705
4705
|
}) {
|
|
4706
|
-
const x =
|
|
4706
|
+
const x = A && A[0] && A[0].preview ? A[0] : void 0, G = I || await Qc[o]({
|
|
4707
4707
|
meta: n,
|
|
4708
|
-
config:
|
|
4708
|
+
config: p,
|
|
4709
4709
|
currentNew: m,
|
|
4710
4710
|
pathname: i,
|
|
4711
4711
|
imgSizes: s,
|
|
@@ -4718,7 +4718,7 @@ async function p5({
|
|
|
4718
4718
|
}), X = ji(G), Q = y || oo[o]({
|
|
4719
4719
|
pathname: i,
|
|
4720
4720
|
slug: r,
|
|
4721
|
-
config:
|
|
4721
|
+
config: p,
|
|
4722
4722
|
currentNew: m,
|
|
4723
4723
|
internalPath: f
|
|
4724
4724
|
});
|
|
@@ -4727,7 +4727,7 @@ async function p5({
|
|
|
4727
4727
|
/* @__PURE__ */ a("meta", { name: "viewport", content: "width=device-width, initial-scale=1" }),
|
|
4728
4728
|
X,
|
|
4729
4729
|
/* @__PURE__ */ a(zi, {}),
|
|
4730
|
-
t.ampConfig &&
|
|
4730
|
+
t.ampConfig && p.ampOption && t.ampConfig_slugIsValid && /* @__PURE__ */ a("link", { rel: "amphtml", href: p.siteUrl + "/amp" + i }),
|
|
4731
4731
|
t.preloadImages && m && m.preview?.sizes && /* @__PURE__ */ a(
|
|
4732
4732
|
ns,
|
|
4733
4733
|
{
|
|
@@ -4744,7 +4744,7 @@ async function p5({
|
|
|
4744
4744
|
}
|
|
4745
4745
|
),
|
|
4746
4746
|
t.preloadImages && S && /* @__PURE__ */ a(ns, { images: S }),
|
|
4747
|
-
/* @__PURE__ */ a(or, { config:
|
|
4747
|
+
/* @__PURE__ */ a(or, { config: p }),
|
|
4748
4748
|
/* @__PURE__ */ a(
|
|
4749
4749
|
so,
|
|
4750
4750
|
{
|
|
@@ -4756,19 +4756,19 @@ async function p5({
|
|
|
4756
4756
|
t.schemas_NewsArticle && f && /* @__PURE__ */ a(
|
|
4757
4757
|
tr,
|
|
4758
4758
|
{
|
|
4759
|
-
BASE_URL:
|
|
4760
|
-
config:
|
|
4759
|
+
BASE_URL: p.siteUrl,
|
|
4760
|
+
config: p,
|
|
4761
4761
|
realPath: f,
|
|
4762
4762
|
axiosApi: e
|
|
4763
4763
|
}
|
|
4764
4764
|
),
|
|
4765
|
-
/* @__PURE__ */ a(nr, { config:
|
|
4765
|
+
/* @__PURE__ */ a(nr, { config: p, socials: w }),
|
|
4766
4766
|
t.schemas_Videos && f && /* @__PURE__ */ a(
|
|
4767
4767
|
sr,
|
|
4768
4768
|
{
|
|
4769
4769
|
axiosApi: e,
|
|
4770
4770
|
realPath: f,
|
|
4771
|
-
config:
|
|
4771
|
+
config: p
|
|
4772
4772
|
}
|
|
4773
4773
|
),
|
|
4774
4774
|
t.schemas_Autor && d && /* @__PURE__ */ a(
|
|
@@ -4776,24 +4776,24 @@ async function p5({
|
|
|
4776
4776
|
{
|
|
4777
4777
|
autor: d,
|
|
4778
4778
|
listAutor: l,
|
|
4779
|
-
config:
|
|
4779
|
+
config: p
|
|
4780
4780
|
}
|
|
4781
4781
|
),
|
|
4782
4782
|
t.schemas_ItemList && /* @__PURE__ */ a(
|
|
4783
4783
|
er,
|
|
4784
4784
|
{
|
|
4785
|
-
config:
|
|
4785
|
+
config: p,
|
|
4786
4786
|
ROUTE: o,
|
|
4787
4787
|
pathname: i,
|
|
4788
4788
|
axiosApi: e
|
|
4789
4789
|
}
|
|
4790
4790
|
),
|
|
4791
|
-
t.schemas_WebsiteList && /* @__PURE__ */ a(ar, { config:
|
|
4791
|
+
t.schemas_WebsiteList && /* @__PURE__ */ a(ar, { config: p }),
|
|
4792
4792
|
_ && /* @__PURE__ */ a(
|
|
4793
4793
|
Zi,
|
|
4794
4794
|
{
|
|
4795
4795
|
type: _,
|
|
4796
|
-
active:
|
|
4796
|
+
active: p.useSpeculationRules,
|
|
4797
4797
|
customSpeculation: C
|
|
4798
4798
|
}
|
|
4799
4799
|
),
|
|
@@ -4819,9 +4819,9 @@ const A5 = ({
|
|
|
4819
4819
|
config: i,
|
|
4820
4820
|
currentNew: c,
|
|
4821
4821
|
internalPath: r
|
|
4822
|
-
}),
|
|
4822
|
+
}), A = d.before.active, f = d.after.active, p = A ? d.before.customData ? d.before.customData : h : void 0, w = f ? d.after.customData ? d.after.customData : h : void 0;
|
|
4823
4823
|
return /* @__PURE__ */ g(Y, { children: [
|
|
4824
|
-
/* @__PURE__ */ a(so, { name: "bodybefore", banners: n, replaces:
|
|
4824
|
+
/* @__PURE__ */ a(so, { name: "bodybefore", banners: n, replaces: p }),
|
|
4825
4825
|
e,
|
|
4826
4826
|
/* @__PURE__ */ a(mi, {}),
|
|
4827
4827
|
/* @__PURE__ */ a(ci, {}),
|
|
@@ -4871,7 +4871,7 @@ function Kc({
|
|
|
4871
4871
|
enableDrag: i,
|
|
4872
4872
|
onIndexChange: r
|
|
4873
4873
|
}) {
|
|
4874
|
-
const [c, u] = Z(!1), [d, l] = Z(0), [m, h] = Z(0), [
|
|
4874
|
+
const [c, u] = Z(!1), [d, l] = Z(0), [m, h] = Z(0), [A, f] = Z(0), [p, w] = Z(0), [_, S] = Z(null), C = Xs(null), [I, y] = Z(1), E = fe(() => {
|
|
4875
4875
|
if (o) return 1;
|
|
4876
4876
|
const b = C.current?.offsetWidth || window.innerWidth, N = n + s, B = Math.floor(b / N);
|
|
4877
4877
|
return Math.max(1, B);
|
|
@@ -4929,7 +4929,7 @@ function Kc({
|
|
|
4929
4929
|
), k = fe(
|
|
4930
4930
|
(b) => {
|
|
4931
4931
|
if (!c || !i) return;
|
|
4932
|
-
const N = m - d, B = Date.now() -
|
|
4932
|
+
const N = m - d, B = Date.now() - p, j = Math.abs(N) / Math.max(B, 1), M = O(N), z = j > 0.5 && Math.abs(N) > 50 ? Math.max(M, 1) : M;
|
|
4933
4933
|
if (z > 0)
|
|
4934
4934
|
if (N > 0) {
|
|
4935
4935
|
const V = Math.max(0, e - z);
|
|
@@ -4944,7 +4944,7 @@ function Kc({
|
|
|
4944
4944
|
c,
|
|
4945
4945
|
m,
|
|
4946
4946
|
d,
|
|
4947
|
-
|
|
4947
|
+
p,
|
|
4948
4948
|
e,
|
|
4949
4949
|
G,
|
|
4950
4950
|
i,
|
|
@@ -4984,7 +4984,7 @@ function Kc({
|
|
|
4984
4984
|
};
|
|
4985
4985
|
}, [c, ae, k, R]), {
|
|
4986
4986
|
isDragging: c,
|
|
4987
|
-
translateOffset:
|
|
4987
|
+
translateOffset: A,
|
|
4988
4988
|
carrouselRef: C,
|
|
4989
4989
|
maxIndex: G,
|
|
4990
4990
|
getTranslateValue: Q,
|
|
@@ -5008,15 +5008,15 @@ function y5(e) {
|
|
|
5008
5008
|
fullPageWidth: r = !1,
|
|
5009
5009
|
pagination: c = !1,
|
|
5010
5010
|
enableDrag: u = !0
|
|
5011
|
-
} = e, d = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [l, m] = Z(0), [h,
|
|
5011
|
+
} = e, d = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [l, m] = Z(0), [h, A] = Z(!1);
|
|
5012
5012
|
He(() => {
|
|
5013
|
-
|
|
5013
|
+
A(!0);
|
|
5014
5014
|
const Q = document.getElementById("ssr-dummy_" + n);
|
|
5015
5015
|
Q && Q.remove();
|
|
5016
5016
|
}, []);
|
|
5017
5017
|
const {
|
|
5018
5018
|
isDragging: f,
|
|
5019
|
-
translateOffset:
|
|
5019
|
+
translateOffset: p,
|
|
5020
5020
|
carrouselRef: w,
|
|
5021
5021
|
maxIndex: _,
|
|
5022
5022
|
getTranslateValue: S,
|
|
@@ -5042,7 +5042,7 @@ function y5(e) {
|
|
|
5042
5042
|
y(l + 1);
|
|
5043
5043
|
}, [l, y]);
|
|
5044
5044
|
if (!h) return;
|
|
5045
|
-
const G = S(l,
|
|
5045
|
+
const G = S(l, p), X = r ? `translateX(${G}%)` : `translateX(${G}px)`;
|
|
5046
5046
|
return /* @__PURE__ */ g("div", { className: `${n}- carrousel-container`, children: [
|
|
5047
5047
|
l > 0 && /* @__PURE__ */ a(
|
|
5048
5048
|
"button",
|
|
@@ -5412,7 +5412,7 @@ const Rt = (e) => {
|
|
|
5412
5412
|
if (e?.config?.showtime)
|
|
5413
5413
|
return Fe(e.info?.date?.modified);
|
|
5414
5414
|
}, l = () => {
|
|
5415
|
-
const
|
|
5415
|
+
const A = {
|
|
5416
5416
|
"--fontSizeSubTitle": e.fontSizeSubTitle,
|
|
5417
5417
|
"--lineHeightSubTitle": e.lineHeightSubTitle,
|
|
5418
5418
|
"--colorSubTitle": e.colorSubTitle
|
|
@@ -5424,35 +5424,35 @@ const Rt = (e) => {
|
|
|
5424
5424
|
dangerouslySetInnerHTML: {
|
|
5425
5425
|
__html: e.main.subtitle.striped ?? ""
|
|
5426
5426
|
},
|
|
5427
|
-
style:
|
|
5427
|
+
style: A
|
|
5428
5428
|
}
|
|
5429
5429
|
);
|
|
5430
5430
|
}, m = () => e.main.uppertitle ? /* @__PURE__ */ a("p", { className: se.uppertitle, title: e.main.uppertitle, children: e.main.uppertitle }) : null, h = () => {
|
|
5431
5431
|
if (c && s?.tags?.length && s.tags.length > 0) {
|
|
5432
|
-
const
|
|
5432
|
+
const A = s.tags[0], f = A.name;
|
|
5433
5433
|
return be.createElement(r, { className: `${se.sectionDescriptionContainer} section` }, /* @__PURE__ */ g(Y, { children: [
|
|
5434
|
-
|
|
5434
|
+
A.approved ? /* @__PURE__ */ a(
|
|
5435
5435
|
q,
|
|
5436
5436
|
{
|
|
5437
5437
|
block_subPublication: u?.tema,
|
|
5438
5438
|
"aria-label": f,
|
|
5439
5439
|
className: se.sectionDescription,
|
|
5440
|
-
href: wt(
|
|
5440
|
+
href: wt(A, i),
|
|
5441
5441
|
children: f
|
|
5442
5442
|
}
|
|
5443
5443
|
) : /* @__PURE__ */ a("div", { className: se.sectionDescription, children: f }),
|
|
5444
5444
|
m()
|
|
5445
5445
|
] }));
|
|
5446
5446
|
} else if (o?.section?.url) {
|
|
5447
|
-
const
|
|
5447
|
+
const A = o.section.name;
|
|
5448
5448
|
return be.createElement(r, { className: `${se.sectionDescriptionContainer} section` }, /* @__PURE__ */ g(Y, { children: [
|
|
5449
5449
|
/* @__PURE__ */ a(
|
|
5450
5450
|
q,
|
|
5451
5451
|
{
|
|
5452
|
-
"aria-label":
|
|
5452
|
+
"aria-label": A,
|
|
5453
5453
|
className: se.sectionDescription,
|
|
5454
5454
|
href: o.section.url,
|
|
5455
|
-
children:
|
|
5455
|
+
children: A
|
|
5456
5456
|
}
|
|
5457
5457
|
),
|
|
5458
5458
|
m()
|
|
@@ -7401,8 +7401,8 @@ const l1 = "_content_xlsy2_1", d1 = "_videoContent_xlsy2_39", u1 = "_articleSect
|
|
|
7401
7401
|
const { currentPage: t, showNext: n, maxPages: s, pathname: o, query: i, block_subPublication: r } = e, c = (u, d, l) => {
|
|
7402
7402
|
let m = "";
|
|
7403
7403
|
const h = d.split("/");
|
|
7404
|
-
return h.indexOf("page") !== -1 && h.splice(m.indexOf("page") - 1, h.length - 1), h.forEach((
|
|
7405
|
-
f !== 0 && (m += `/${
|
|
7404
|
+
return h.indexOf("page") !== -1 && h.splice(m.indexOf("page") - 1, h.length - 1), h.forEach((A, f) => {
|
|
7405
|
+
f !== 0 && (m += `/${A}`);
|
|
7406
7406
|
}), u === "next" ? m += `/page/${t + 1}${l ? `?query=${l}` : ""}` : m += `/page/${t - 1}${l ? `?query=${l}` : ""}`;
|
|
7407
7407
|
};
|
|
7408
7408
|
return (t > 1 || n && t < s) && /* @__PURE__ */ g("section", { className: Wn.content, children: [
|
|
@@ -7460,7 +7460,7 @@ const l1 = "_content_xlsy2_1", d1 = "_videoContent_xlsy2_39", u1 = "_articleSect
|
|
|
7460
7460
|
priorityHigh: l = !1,
|
|
7461
7461
|
isLarge: m,
|
|
7462
7462
|
paths: h,
|
|
7463
|
-
keywords:
|
|
7463
|
+
keywords: A
|
|
7464
7464
|
} = e;
|
|
7465
7465
|
return /* @__PURE__ */ g(
|
|
7466
7466
|
"section",
|
|
@@ -7501,7 +7501,7 @@ const l1 = "_content_xlsy2_1", d1 = "_videoContent_xlsy2_39", u1 = "_articleSect
|
|
|
7501
7501
|
overImage: u,
|
|
7502
7502
|
isTitle: d,
|
|
7503
7503
|
paths: h,
|
|
7504
|
-
keywords:
|
|
7504
|
+
keywords: A
|
|
7505
7505
|
}
|
|
7506
7506
|
) })
|
|
7507
7507
|
]
|
|
@@ -7739,7 +7739,7 @@ const l1 = "_content_xlsy2_1", d1 = "_videoContent_xlsy2_39", u1 = "_articleSect
|
|
|
7739
7739
|
const t = e.trim();
|
|
7740
7740
|
return t.startsWith("http://") || t.startsWith("https://") ? t : `https://${t}`;
|
|
7741
7741
|
}, Tu = (e) => !e || e.trim() === "" ? !1 : /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()), xu = async (e) => {
|
|
7742
|
-
const { autor: t, autorIcon: n, socialIconsFilled: s = !1 } = e, o = n, i = t?.info?.image?.sizes?.[0]?.url ?? "", r = t?.info?.fullname ?? "", c = t?.info?.email ?? "", u = t?.addtional?.USER_SHOWEMAIL ?? !1, d = t?.addtional?.USER_SHOWBIO ?? !1, l = t?.addtional?.USER_MIBIO ?? "", m = cn(t?.addtional?.USER_USERFB ?? ""), h = cn(t?.addtional?.USER_USERIG ?? ""),
|
|
7742
|
+
const { autor: t, autorIcon: n, socialIconsFilled: s = !1 } = e, o = n, i = t?.info?.image?.sizes?.[0]?.url ?? "", r = t?.info?.fullname ?? "", c = t?.info?.email ?? "", u = t?.addtional?.USER_SHOWEMAIL ?? !1, d = t?.addtional?.USER_SHOWBIO ?? !1, l = t?.addtional?.USER_MIBIO ?? "", m = cn(t?.addtional?.USER_USERFB ?? ""), h = cn(t?.addtional?.USER_USERIG ?? ""), A = cn(t?.addtional?.USER_USERTWT ?? ""), f = cn(t?.addtional?.USER_USERLIN ?? ""), p = () => !u || !c || c.trim() === "" ? !1 : Tu(c), w = (_) => `mailto:${_.trim()}`;
|
|
7743
7743
|
return /* @__PURE__ */ a(
|
|
7744
7744
|
"section",
|
|
7745
7745
|
{
|
|
@@ -7762,7 +7762,7 @@ const l1 = "_content_xlsy2_1", d1 = "_videoContent_xlsy2_39", u1 = "_articleSect
|
|
|
7762
7762
|
}
|
|
7763
7763
|
),
|
|
7764
7764
|
/* @__PURE__ */ a("h1", { className: ue.name, children: r }),
|
|
7765
|
-
|
|
7765
|
+
p() && /* @__PURE__ */ a(
|
|
7766
7766
|
"a",
|
|
7767
7767
|
{
|
|
7768
7768
|
href: w(c),
|
|
@@ -7794,10 +7794,10 @@ const l1 = "_content_xlsy2_1", d1 = "_videoContent_xlsy2_39", u1 = "_articleSect
|
|
|
7794
7794
|
children: /* @__PURE__ */ a(jn, { className: ue.socialIcon })
|
|
7795
7795
|
}
|
|
7796
7796
|
),
|
|
7797
|
-
|
|
7797
|
+
A && /* @__PURE__ */ a(
|
|
7798
7798
|
"a",
|
|
7799
7799
|
{
|
|
7800
|
-
href:
|
|
7800
|
+
href: A,
|
|
7801
7801
|
target: "_blank",
|
|
7802
7802
|
className: ue.socialIconLink,
|
|
7803
7803
|
rel: "noreferrer",
|
|
@@ -7833,7 +7833,7 @@ const l1 = "_content_xlsy2_1", d1 = "_videoContent_xlsy2_39", u1 = "_articleSect
|
|
|
7833
7833
|
socialIconStroke: Gu,
|
|
7834
7834
|
blackIconFaceBook: Qu
|
|
7835
7835
|
}, Hu = async (e) => {
|
|
7836
|
-
const { autor: t, autorIcon: n, socialIconsFilled: s = !1 } = e, o = n, i = t?.info?.image?.sizes?.[0]?.url ?? "", r = t?.info?.fullname ?? "", c = t?.info?.email ?? "", u = t?.addtional?.USER_SHOWEMAIL ?? !1, d = t?.addtional?.USER_SHOWBIO ?? !1, l = t?.addtional?.USER_MIBIO ?? "", m = t?.addtional?.USER_USERFB ?? "", h = t?.addtional?.USER_USERIG ?? "",
|
|
7836
|
+
const { autor: t, autorIcon: n, socialIconsFilled: s = !1 } = e, o = n, i = t?.info?.image?.sizes?.[0]?.url ?? "", r = t?.info?.fullname ?? "", c = t?.info?.email ?? "", u = t?.addtional?.USER_SHOWEMAIL ?? !1, d = t?.addtional?.USER_SHOWBIO ?? !1, l = t?.addtional?.USER_MIBIO ?? "", m = t?.addtional?.USER_USERFB ?? "", h = t?.addtional?.USER_USERIG ?? "", A = t?.addtional?.USER_USERTWT ?? "", f = t?.addtional?.USER_USERLIN ?? "";
|
|
7837
7837
|
return /* @__PURE__ */ a("section", { className: he.content, children: /* @__PURE__ */ g("div", { className: he.contentInfo, children: [
|
|
7838
7838
|
i ? /* @__PURE__ */ a(
|
|
7839
7839
|
"img",
|
|
@@ -7873,10 +7873,10 @@ const l1 = "_content_xlsy2_1", d1 = "_videoContent_xlsy2_39", u1 = "_articleSect
|
|
|
7873
7873
|
)
|
|
7874
7874
|
}
|
|
7875
7875
|
),
|
|
7876
|
-
|
|
7876
|
+
A && /* @__PURE__ */ a(
|
|
7877
7877
|
"a",
|
|
7878
7878
|
{
|
|
7879
|
-
href:
|
|
7879
|
+
href: A,
|
|
7880
7880
|
target: "_blank",
|
|
7881
7881
|
rel: "noreferrer",
|
|
7882
7882
|
children: /* @__PURE__ */ a(dt, { className: he.socialIcon })
|
|
@@ -8253,7 +8253,7 @@ const l1 = "_content_xlsy2_1", d1 = "_videoContent_xlsy2_39", u1 = "_articleSect
|
|
|
8253
8253
|
style: {
|
|
8254
8254
|
"--max-height": l.subitem.length * 45 + "px"
|
|
8255
8255
|
},
|
|
8256
|
-
children: l.subitem.map((h,
|
|
8256
|
+
children: l.subitem.map((h, A) => /* @__PURE__ */ a(
|
|
8257
8257
|
q,
|
|
8258
8258
|
{
|
|
8259
8259
|
block_subPublication: !0,
|
|
@@ -8262,7 +8262,7 @@ const l1 = "_content_xlsy2_1", d1 = "_videoContent_xlsy2_39", u1 = "_articleSect
|
|
|
8262
8262
|
target: h.target,
|
|
8263
8263
|
children: h.description
|
|
8264
8264
|
},
|
|
8265
|
-
|
|
8265
|
+
A
|
|
8266
8266
|
))
|
|
8267
8267
|
}
|
|
8268
8268
|
)
|
|
@@ -10413,7 +10413,7 @@ const U5 = (e) => {
|
|
|
10413
10413
|
i = i.replace(c, y);
|
|
10414
10414
|
continue;
|
|
10415
10415
|
}
|
|
10416
|
-
const l = d.preview?.sizes?.[0], m = l ? await we(l.url) : "", h = d.info.section?.url ?? "#",
|
|
10416
|
+
const l = d.preview?.sizes?.[0], m = l ? await we(l.url) : "", h = d.info.section?.url ?? "#", A = d.info.section?.name ?? "Sección", f = d.info.link?.url ?? "#", p = d.main?.title.article ?? "Título", w = (await Promise.all(
|
|
10417
10417
|
d.preview?.sizes?.map(async (y) => {
|
|
10418
10418
|
const E = await we(y.url);
|
|
10419
10419
|
return y.width < 200 ? `<source srcset="${E}" media="(width < 750px)"/>` : `<source srcset="${E}" media="(width >= 750px)"/>`;
|
|
@@ -10422,11 +10422,11 @@ const U5 = (e) => {
|
|
|
10422
10422
|
<span data-src="${u}">
|
|
10423
10423
|
<picture style='display: flex'>
|
|
10424
10424
|
${w}
|
|
10425
|
-
<img fetchPriority='low' loading='lazy' src="${m}" alt="${String(t.noteRelatedImageAlt ?? "")} ${
|
|
10425
|
+
<img fetchPriority='low' loading='lazy' src="${m}" alt="${String(t.noteRelatedImageAlt ?? "")} ${p}" />
|
|
10426
10426
|
</picture>
|
|
10427
10427
|
<div>
|
|
10428
|
-
<a class="section" href="${h}">${
|
|
10429
|
-
<a class="title" href="${f}">${
|
|
10428
|
+
<a class="section" href="${h}">${A}</a>
|
|
10429
|
+
<a class="title" href="${f}">${p}</a>
|
|
10430
10430
|
</div>
|
|
10431
10431
|
</span>
|
|
10432
10432
|
`, I = c.replace(S, C);
|
|
@@ -10462,35 +10462,35 @@ async function q0(e, t) {
|
|
|
10462
10462
|
let m = u;
|
|
10463
10463
|
if (l && d)
|
|
10464
10464
|
try {
|
|
10465
|
-
const h = await t.iframe({ path: d }),
|
|
10465
|
+
const h = await t.iframe({ path: d }), A = t.schema ? await t.schema(d) : null;
|
|
10466
10466
|
if (h && h.data) {
|
|
10467
10467
|
const f = h.data.data[0];
|
|
10468
|
-
let
|
|
10468
|
+
let p = "";
|
|
10469
10469
|
const w = u.match(
|
|
10470
10470
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
10471
10471
|
), _ = w && w[1] ? w[1].trim() : "";
|
|
10472
|
-
f.info && f.info.type === "video-youtube" ?
|
|
10472
|
+
f.info && f.info.type === "video-youtube" ? p = `<iframe
|
|
10473
10473
|
loading="lazy"
|
|
10474
10474
|
frameborder="0"
|
|
10475
10475
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
10476
10476
|
referrerpolicy="strict-origin-when-cross-origin"
|
|
10477
10477
|
allowfullscreen
|
|
10478
10478
|
style="width: 100%; height: auto; min-height: 400px;"
|
|
10479
|
-
src="https://www.youtube.com/embed/${f.main?.code || f.main?.youtubeid || ""}"></iframe>` : f.info && f.info.type === "video-link" ?
|
|
10479
|
+
src="https://www.youtube.com/embed/${f.main?.code || f.main?.youtubeid || ""}"></iframe>` : f.info && f.info.type === "video-link" ? p = `<iframe
|
|
10480
10480
|
loading="lazy"
|
|
10481
10481
|
frameborder="0"
|
|
10482
10482
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
10483
10483
|
referrerpolicy="strict-origin-when-cross-origin"
|
|
10484
10484
|
allowfullscreen
|
|
10485
10485
|
style="width: 100%; height: auto; min-height: 400px;"
|
|
10486
|
-
src="${f.main?.code || ""}"></iframe>` :
|
|
10486
|
+
src="${f.main?.code || ""}"></iframe>` : p = f.main?.code || "";
|
|
10487
10487
|
const S = _ || f.main?.description || "";
|
|
10488
10488
|
m = `
|
|
10489
10489
|
<figure class="videoFigure">
|
|
10490
|
-
${
|
|
10491
|
-
JSON.stringify(
|
|
10490
|
+
${A && A.data && A.data.data ? `<script type="application/ld+json">${Rn(
|
|
10491
|
+
JSON.stringify(A.data.data)
|
|
10492
10492
|
)}<\/script>` : ""}
|
|
10493
|
-
${
|
|
10493
|
+
${p}
|
|
10494
10494
|
${S ? `<figcaption>${S}</figcaption>` : ""}
|
|
10495
10495
|
</figure>
|
|
10496
10496
|
`;
|
|
@@ -10763,12 +10763,12 @@ function Y0(e) {
|
|
|
10763
10763
|
const u = [], d = [];
|
|
10764
10764
|
let l = "", m = !0;
|
|
10765
10765
|
for (let h = 0; h < c; h++) {
|
|
10766
|
-
const
|
|
10766
|
+
const A = `[data-index="${h}"]:checked ~ .carrousel-pagination li:nth-child(${h + 1}) {
|
|
10767
10767
|
background-color:var(--carrousel-pagination-background-color)
|
|
10768
10768
|
}`;
|
|
10769
10769
|
l += `
|
|
10770
10770
|
.${n}.carrousel-container {
|
|
10771
|
-
${
|
|
10771
|
+
${A}
|
|
10772
10772
|
[data-index="${h}"]:checked ~ .carrousel-ssr {
|
|
10773
10773
|
transform: translate(-${h * (100 + o) + "%"});
|
|
10774
10774
|
transition: transform 300ms;
|
|
@@ -11219,15 +11219,15 @@ const jg = async (e) => {
|
|
|
11219
11219
|
if (!(t === "true")) {
|
|
11220
11220
|
const d = /<img\b[^>]*\bsrc=["']([^"']+)["']/g, l = [...e.matchAll(d)], m = {};
|
|
11221
11221
|
for (const h of l) {
|
|
11222
|
-
const
|
|
11222
|
+
const A = h[1] ?? "", f = e.includes(A) ? { url: A } : null;
|
|
11223
11223
|
if (f) {
|
|
11224
|
-
const
|
|
11225
|
-
m[
|
|
11224
|
+
const p = await we(f.url) || "";
|
|
11225
|
+
m[A] = p;
|
|
11226
11226
|
}
|
|
11227
11227
|
}
|
|
11228
11228
|
return e.replace(
|
|
11229
11229
|
d,
|
|
11230
|
-
(h,
|
|
11230
|
+
(h, A) => `<img fetchPriority='low' loading='lazy' alt='imagen' src="${m[A] || A}"`
|
|
11231
11231
|
);
|
|
11232
11232
|
}
|
|
11233
11233
|
let s = e;
|
|
@@ -11239,17 +11239,17 @@ const jg = async (e) => {
|
|
|
11239
11239
|
if (!d) break;
|
|
11240
11240
|
const l = d[0], m = d[1] ?? "";
|
|
11241
11241
|
o.add(m);
|
|
11242
|
-
const h = l.match(/<img\b[^>]*\balt=["']([^"']*)["']/),
|
|
11242
|
+
const h = l.match(/<img\b[^>]*\balt=["']([^"']*)["']/), A = h ? h[1] : "imagen", f = m.match(/__scale=([^&"']+)/), p = f ? decodeURIComponent(f[1]) : null;
|
|
11243
11243
|
let w = 0, _ = 0;
|
|
11244
|
-
if (
|
|
11245
|
-
const E =
|
|
11244
|
+
if (p) {
|
|
11245
|
+
const E = p.match(/w:(\d+)/), x = p.match(/h:(\d+)/);
|
|
11246
11246
|
w = E ? parseInt(E[1]) : 0, _ = x ? parseInt(x[1]) : 0;
|
|
11247
11247
|
}
|
|
11248
11248
|
const C = {
|
|
11249
11249
|
preview: {
|
|
11250
11250
|
sizes: [
|
|
11251
11251
|
{
|
|
11252
|
-
scale:
|
|
11252
|
+
scale: p || `w:${w},h:${_},t:2`,
|
|
11253
11253
|
url: m,
|
|
11254
11254
|
width: w,
|
|
11255
11255
|
height: _
|
|
@@ -11261,7 +11261,7 @@ const jg = async (e) => {
|
|
|
11261
11261
|
height: _
|
|
11262
11262
|
},
|
|
11263
11263
|
copyright: !1,
|
|
11264
|
-
description:
|
|
11264
|
+
description: A,
|
|
11265
11265
|
photographer: !1
|
|
11266
11266
|
},
|
|
11267
11267
|
isLarge: !1,
|
|
@@ -11273,17 +11273,17 @@ const jg = async (e) => {
|
|
|
11273
11273
|
for (const d of u) {
|
|
11274
11274
|
const l = d[0], m = d[1] ?? "";
|
|
11275
11275
|
if (o.has(m)) continue;
|
|
11276
|
-
const h = l.match(/\balt=["']([^"']*)["']/),
|
|
11276
|
+
const h = l.match(/\balt=["']([^"']*)["']/), A = h ? h[1] : "imagen", f = m.match(/__scale=([^&"']+)/), p = f ? decodeURIComponent(f[1]) : null;
|
|
11277
11277
|
let w = 0, _ = 0;
|
|
11278
|
-
if (
|
|
11279
|
-
const E =
|
|
11278
|
+
if (p) {
|
|
11279
|
+
const E = p.match(/w:(\d+)/), x = p.match(/h:(\d+)/);
|
|
11280
11280
|
w = E ? parseInt(E[1]) : 0, _ = x ? parseInt(x[1]) : 0;
|
|
11281
11281
|
}
|
|
11282
11282
|
const C = {
|
|
11283
11283
|
preview: {
|
|
11284
11284
|
sizes: [
|
|
11285
11285
|
{
|
|
11286
|
-
scale:
|
|
11286
|
+
scale: p || `w:${w},h:${_},t:2`,
|
|
11287
11287
|
url: m,
|
|
11288
11288
|
width: w,
|
|
11289
11289
|
height: _
|
|
@@ -11295,7 +11295,7 @@ const jg = async (e) => {
|
|
|
11295
11295
|
height: _
|
|
11296
11296
|
},
|
|
11297
11297
|
copyright: !1,
|
|
11298
|
-
description:
|
|
11298
|
+
description: A,
|
|
11299
11299
|
photographer: !1
|
|
11300
11300
|
},
|
|
11301
11301
|
isLarge: !1,
|
|
@@ -11344,13 +11344,13 @@ const jg = async (e) => {
|
|
|
11344
11344
|
(f) => f[1]
|
|
11345
11345
|
).map(
|
|
11346
11346
|
(f) => `<img fetchPriority='low' loading='lazy' alt='imagen' src="${f}" class="carrusel-note-item" width="800" height="469"/>`
|
|
11347
|
-
), h = "gallery_embeded" + u.toString(),
|
|
11347
|
+
), h = "gallery_embeded" + u.toString(), A = Y0({
|
|
11348
11348
|
slot_id: h,
|
|
11349
11349
|
children: m,
|
|
11350
11350
|
visibleItems: 1,
|
|
11351
11351
|
cardGap: 0
|
|
11352
11352
|
});
|
|
11353
|
-
s +=
|
|
11353
|
+
s += A, o = d;
|
|
11354
11354
|
}
|
|
11355
11355
|
return s += e.slice(o), s;
|
|
11356
11356
|
}, Vg = async (e, t, n) => {
|
|
@@ -11362,7 +11362,7 @@ const jg = async (e) => {
|
|
|
11362
11362
|
(S) => u.includes(S?.[0]?.info.link.internal || "")
|
|
11363
11363
|
);
|
|
11364
11364
|
if (!d || !d[0]) continue;
|
|
11365
|
-
const l = d[0].preview?.sizes?.[0], m = l ? await we(l.url) : "", h = d[0].info.section?.url ?? "#",
|
|
11365
|
+
const l = d[0].preview?.sizes?.[0], m = l ? await we(l.url) : "", h = d[0].info.section?.url ?? "#", A = d[0].info.section?.name ?? "Sección", f = d[0].info.link?.url ?? "#", p = d[0].main?.title.article ?? "Título", w = (await Promise.all(
|
|
11366
11366
|
d[0].preview?.sizes?.map(async (S, C) => {
|
|
11367
11367
|
const I = await we(S.url);
|
|
11368
11368
|
return C === 0 ? `<source srcset="${I}" media="(width >= 900px)"/>` : `<source srcset="${I}" media="(width < 900px)"/>`;
|
|
@@ -11371,11 +11371,11 @@ const jg = async (e) => {
|
|
|
11371
11371
|
<span data-src="${u}">
|
|
11372
11372
|
<picture style='display: flex'>
|
|
11373
11373
|
${w}
|
|
11374
|
-
<img fetchPriority='low' loading='lazy' src="${m}" alt="${String(t.noteRelatedImageAlt ?? "")} ${
|
|
11374
|
+
<img fetchPriority='low' loading='lazy' src="${m}" alt="${String(t.noteRelatedImageAlt ?? "")} ${p}" />
|
|
11375
11375
|
</picture>
|
|
11376
11376
|
<div>
|
|
11377
|
-
<a class="section" href="${h}">${
|
|
11378
|
-
<a class="title" href="${f}">${
|
|
11377
|
+
<a class="section" href="${h}">${A}</a>
|
|
11378
|
+
<a class="title" href="${f}">${p}</a>
|
|
11379
11379
|
</div>
|
|
11380
11380
|
</span>
|
|
11381
11381
|
`;
|
|
@@ -11401,33 +11401,33 @@ async function Wg(e, t) {
|
|
|
11401
11401
|
_ !== -1 && _ < S ? (u += 1, d = _ + 4) : (u -= 1, d = S + 6);
|
|
11402
11402
|
}
|
|
11403
11403
|
const m = d, h = e.slice(r, m);
|
|
11404
|
-
let
|
|
11404
|
+
let A = null;
|
|
11405
11405
|
const f = /<span\b([^>]*)>/gi;
|
|
11406
|
-
let
|
|
11407
|
-
for (; (
|
|
11408
|
-
const _ =
|
|
11406
|
+
let p;
|
|
11407
|
+
for (; (p = f.exec(h)) !== null; ) {
|
|
11408
|
+
const _ = p[1];
|
|
11409
11409
|
if (!_) break;
|
|
11410
11410
|
if (/data-type\s*=\s*["']?video["']?/i.test(_)) {
|
|
11411
11411
|
const S = _.match(/data-src\s*=\s*["']([^"']+)["']/i);
|
|
11412
11412
|
if (S) {
|
|
11413
|
-
|
|
11413
|
+
A = S[1] ?? "";
|
|
11414
11414
|
break;
|
|
11415
11415
|
}
|
|
11416
11416
|
}
|
|
11417
11417
|
}
|
|
11418
|
-
if (!
|
|
11418
|
+
if (!A) {
|
|
11419
11419
|
const _ = h.match(
|
|
11420
11420
|
/<span\b[^>]*data-src=["'][^"']+["'][^>]*>/i
|
|
11421
11421
|
);
|
|
11422
11422
|
if (_) {
|
|
11423
11423
|
const S = _[0].match(/data-src\s*=\s*["']([^"']+)["']/i);
|
|
11424
|
-
S && (
|
|
11424
|
+
S && (A = S[1] ?? "");
|
|
11425
11425
|
}
|
|
11426
11426
|
}
|
|
11427
11427
|
let w = "";
|
|
11428
|
-
if (
|
|
11428
|
+
if (A)
|
|
11429
11429
|
try {
|
|
11430
|
-
const _ = await t.iframe({ path:
|
|
11430
|
+
const _ = await t.iframe({ path: A }), S = t.schema ? await t.schema(A) : null;
|
|
11431
11431
|
if (_ && _.data) {
|
|
11432
11432
|
const C = _.data.data[0];
|
|
11433
11433
|
let I = "";
|
|
@@ -11461,7 +11461,7 @@ async function Wg(e, t) {
|
|
|
11461
11461
|
`;
|
|
11462
11462
|
}
|
|
11463
11463
|
} catch (_) {
|
|
11464
|
-
console.error("insertVideos error for",
|
|
11464
|
+
console.error("insertVideos error for", A, _), w = "";
|
|
11465
11465
|
}
|
|
11466
11466
|
else
|
|
11467
11467
|
w = h;
|
|
@@ -11490,7 +11490,7 @@ async function Yg(e) {
|
|
|
11490
11490
|
e.texts,
|
|
11491
11491
|
s
|
|
11492
11492
|
), l = await Wg(l, u), l = Gg(l), l = Qg(l);
|
|
11493
|
-
const m = t.main.sources ?? [], { NEWS_JOURNALIST_COMPONENT: h, CONFIG_blockDefaultTwitterHydrator:
|
|
11493
|
+
const m = t.main.sources ?? [], { NEWS_JOURNALIST_COMPONENT: h, CONFIG_blockDefaultTwitterHydrator: A } = $(), f = t.config.articlepreview === At.fotoGaleria && t.hascontent?.hasgalleryimages;
|
|
11494
11494
|
return /* @__PURE__ */ g("div", { className: mn.content, children: [
|
|
11495
11495
|
i !== "liveblogs" && e.showHeaderImage ? f ? /* @__PURE__ */ a(
|
|
11496
11496
|
W0,
|
|
@@ -11545,9 +11545,9 @@ async function Yg(e) {
|
|
|
11545
11545
|
),
|
|
11546
11546
|
m.length > 0 && /* @__PURE__ */ g("div", { className: mn.noteSource, children: [
|
|
11547
11547
|
/* @__PURE__ */ a(K0, {}),
|
|
11548
|
-
/* @__PURE__ */ a("p", { children: String(e.texts.noteSource ?? "") + (m.length === 1 ? "" : "s") + ": " + m.map((
|
|
11548
|
+
/* @__PURE__ */ a("p", { children: String(e.texts.noteSource ?? "") + (m.length === 1 ? "" : "s") + ": " + m.map((p) => p.name).join(", ") })
|
|
11549
11549
|
] }),
|
|
11550
|
-
!
|
|
11550
|
+
!A && t && t.hascontent && t.hascontent.hasembeddedtwitter && /* @__PURE__ */ a("script", { async: !0, defer: !0, src: "https://platform.twitter.com/widgets.js" })
|
|
11551
11551
|
] });
|
|
11552
11552
|
}
|
|
11553
11553
|
const Kg = (e) => {
|
|
@@ -11796,25 +11796,25 @@ const Ms = {
|
|
|
11796
11796
|
const c = [], d = t, l = Object.keys(e).length / d;
|
|
11797
11797
|
for (let m = 1; m <= l; m++)
|
|
11798
11798
|
for (let h = 1; h <= d; h++) {
|
|
11799
|
-
const
|
|
11800
|
-
!e[
|
|
11799
|
+
const A = "Home_" + m + "_" + h;
|
|
11800
|
+
!e[A] || !e[A].blockSass || !e[A].blockSass[0] || !e[A].blockSass[0].value || !e[A].blockSass[0].block || e[A].blockSass[0].block === "No Mostrar" || (e[A].blockSass[0]?.block === "Modulo iframe" ? c.push(
|
|
11801
11801
|
/* @__PURE__ */ g(
|
|
11802
11802
|
vs,
|
|
11803
11803
|
{
|
|
11804
|
-
id: e[
|
|
11805
|
-
show: !!e[
|
|
11804
|
+
id: e[A].blockSass[0].key,
|
|
11805
|
+
show: !!e[A].blockSass[0].value,
|
|
11806
11806
|
order: (m - 1) * d + (h - 1),
|
|
11807
11807
|
children: [
|
|
11808
11808
|
/* @__PURE__ */ a(
|
|
11809
11809
|
kn,
|
|
11810
11810
|
{
|
|
11811
|
-
component: e[
|
|
11811
|
+
component: e[A].blockSass[0].block,
|
|
11812
11812
|
banners: i,
|
|
11813
|
-
slot_id:
|
|
11813
|
+
slot_id: A,
|
|
11814
11814
|
data: {
|
|
11815
|
-
printEdition: e[
|
|
11816
|
-
title: e[
|
|
11817
|
-
titleUrl: e[
|
|
11815
|
+
printEdition: e[A]?.blockSass[0].value,
|
|
11816
|
+
title: e[A]?.blockSass[0].title ?? "",
|
|
11817
|
+
titleUrl: e[A].blockSass[0].link ?? void 0
|
|
11818
11818
|
}
|
|
11819
11819
|
}
|
|
11820
11820
|
),
|
|
@@ -11833,21 +11833,21 @@ const Ms = {
|
|
|
11833
11833
|
/* @__PURE__ */ g(
|
|
11834
11834
|
vs,
|
|
11835
11835
|
{
|
|
11836
|
-
id: e[
|
|
11837
|
-
show: !!e[
|
|
11836
|
+
id: e[A].blockSass[0].key,
|
|
11837
|
+
show: !!e[A].content?.data,
|
|
11838
11838
|
order: (m - 1) * d + (h - 1),
|
|
11839
11839
|
children: [
|
|
11840
11840
|
/* @__PURE__ */ a(
|
|
11841
11841
|
kn,
|
|
11842
11842
|
{
|
|
11843
|
-
component: e[
|
|
11843
|
+
component: e[A].blockSass[0].block,
|
|
11844
11844
|
banners: i,
|
|
11845
|
-
slot_id:
|
|
11845
|
+
slot_id: A,
|
|
11846
11846
|
data: {
|
|
11847
|
-
...e[
|
|
11848
|
-
content: e[
|
|
11849
|
-
title: e[
|
|
11850
|
-
titleUrl: e[
|
|
11847
|
+
...e[A].blockSass[0].block ? n[e[A].blockSass[0].block] : [],
|
|
11848
|
+
content: e[A].content?.data ?? [],
|
|
11849
|
+
title: e[A].blockSass[0].title ?? void 0,
|
|
11850
|
+
titleUrl: e[A].blockSass[0].link ?? void 0,
|
|
11851
11851
|
autorIcon: /* @__PURE__ */ a(s, {}),
|
|
11852
11852
|
paths: o.paths,
|
|
11853
11853
|
showTagBySection: r
|
|
@@ -11930,7 +11930,7 @@ const Ms = {
|
|
|
11930
11930
|
itemList: u = [],
|
|
11931
11931
|
socials: d,
|
|
11932
11932
|
getVideos: l
|
|
11933
|
-
} = e, m = e.slug === "liveblogs", { SHOW_NEWS_MORE_NEWS: h, SHOW_NEWS_RELATED_NEWS:
|
|
11933
|
+
} = e, m = e.slug === "liveblogs", { SHOW_NEWS_MORE_NEWS: h, SHOW_NEWS_RELATED_NEWS: A, MORE_NEWS_SSR: f } = $();
|
|
11934
11934
|
if (!(!i || !i[0]))
|
|
11935
11935
|
return /* @__PURE__ */ a(Y, { children: /* @__PURE__ */ g(u0, { className: Ft.contentLayout2, children: [
|
|
11936
11936
|
/* @__PURE__ */ a(
|
|
@@ -12015,7 +12015,7 @@ const Ms = {
|
|
|
12015
12015
|
}
|
|
12016
12016
|
),
|
|
12017
12017
|
/* @__PURE__ */ a(ct, { children: /* @__PURE__ */ a(et, { banners: s, index: 2 }) }),
|
|
12018
|
-
|
|
12018
|
+
A && /* @__PURE__ */ g(Y, { children: [
|
|
12019
12019
|
/* @__PURE__ */ a(
|
|
12020
12020
|
kn,
|
|
12021
12021
|
{
|
|
@@ -12165,7 +12165,7 @@ const Ms = {
|
|
|
12165
12165
|
slug: d,
|
|
12166
12166
|
texts: l = {},
|
|
12167
12167
|
socialIconsFilled: m = !1
|
|
12168
|
-
} = e, h = [5, 10, 15], { SUB_PUBLICATION_PREFIX_IN_ROUTES:
|
|
12168
|
+
} = e, h = [5, 10, 15], { SUB_PUBLICATION_PREFIX_IN_ROUTES: A } = $(), f = {
|
|
12169
12169
|
5: 1,
|
|
12170
12170
|
10: 2,
|
|
12171
12171
|
15: 3
|
|
@@ -12191,7 +12191,7 @@ const Ms = {
|
|
|
12191
12191
|
paginatorComponent: /* @__PURE__ */ a(
|
|
12192
12192
|
Tn,
|
|
12193
12193
|
{
|
|
12194
|
-
block_subPublication:
|
|
12194
|
+
block_subPublication: A?.autor,
|
|
12195
12195
|
texts: l,
|
|
12196
12196
|
pathname: r,
|
|
12197
12197
|
query: "",
|
|
@@ -12200,7 +12200,7 @@ const Ms = {
|
|
|
12200
12200
|
showNext: !(t.length < e.newsListLimit)
|
|
12201
12201
|
}
|
|
12202
12202
|
),
|
|
12203
|
-
children: Array.isArray(t) && t?.map((
|
|
12203
|
+
children: Array.isArray(t) && t?.map((p, w) => /* @__PURE__ */ g(Nn, { children: [
|
|
12204
12204
|
h.includes(w + 1) && /* @__PURE__ */ a(
|
|
12205
12205
|
"div",
|
|
12206
12206
|
{
|
|
@@ -12218,7 +12218,7 @@ const Ms = {
|
|
|
12218
12218
|
ba,
|
|
12219
12219
|
{
|
|
12220
12220
|
autorIcon: e.autorIcon,
|
|
12221
|
-
item:
|
|
12221
|
+
item: p,
|
|
12222
12222
|
option: d,
|
|
12223
12223
|
paths: e.paths
|
|
12224
12224
|
},
|
|
@@ -12273,7 +12273,7 @@ const Ms = {
|
|
|
12273
12273
|
/* @__PURE__ */ a(
|
|
12274
12274
|
Tn,
|
|
12275
12275
|
{
|
|
12276
|
-
block_subPublication:
|
|
12276
|
+
block_subPublication: A?.autor,
|
|
12277
12277
|
texts: l,
|
|
12278
12278
|
query: "",
|
|
12279
12279
|
pathname: r,
|
|
@@ -12435,7 +12435,7 @@ function $p({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: s }) {
|
|
|
12435
12435
|
{ label: o.passwordRuleSymbol, test: Qe[4] }
|
|
12436
12436
|
],
|
|
12437
12437
|
[o.passwordRuleMinLength, o.passwordRuleNumber, o.passwordRuleLowercase, o.passwordRuleUppercase, o.passwordRuleSymbol]
|
|
12438
|
-
), [c, u] = Z({}), [d, l] = Z(!1), [m, h] = Z(!1), [
|
|
12438
|
+
), [c, u] = Z({}), [d, l] = Z(!1), [m, h] = Z(!1), [A, f] = Z(null), [p, w] = Z(
|
|
12439
12439
|
"register"
|
|
12440
12440
|
), _ = (y, E) => {
|
|
12441
12441
|
u((x) => ({ ...x, [y]: E }));
|
|
@@ -12520,7 +12520,7 @@ function $p({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: s }) {
|
|
|
12520
12520
|
}
|
|
12521
12521
|
}, I = c.password || "";
|
|
12522
12522
|
return /* @__PURE__ */ g(Y, { children: [
|
|
12523
|
-
|
|
12523
|
+
p === "register" && /* @__PURE__ */ g(Y, { children: [
|
|
12524
12524
|
/* @__PURE__ */ g("button", { onClick: t, className: L.google, children: [
|
|
12525
12525
|
/* @__PURE__ */ a(
|
|
12526
12526
|
"img",
|
|
@@ -12538,7 +12538,7 @@ function $p({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: s }) {
|
|
|
12538
12538
|
{
|
|
12539
12539
|
onSubmit: S,
|
|
12540
12540
|
className: L.form,
|
|
12541
|
-
"data-error":
|
|
12541
|
+
"data-error": A ? "true" : "false",
|
|
12542
12542
|
children: [
|
|
12543
12543
|
/* @__PURE__ */ a("ul", { className: L.formUl, children: Object.entries(i).map(([y, { label: E }]) => /* @__PURE__ */ g("div", { className: L.field, children: [
|
|
12544
12544
|
/* @__PURE__ */ a("label", { className: L.label, children: E }),
|
|
@@ -12587,7 +12587,7 @@ function $p({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: s }) {
|
|
|
12587
12587
|
)
|
|
12588
12588
|
] })
|
|
12589
12589
|
] }, y)) }),
|
|
12590
|
-
|
|
12590
|
+
A && /* @__PURE__ */ a("p", { className: L.error, children: A }),
|
|
12591
12591
|
/* @__PURE__ */ g("p", { className: L.terms, children: [
|
|
12592
12592
|
o.termsPrefix,
|
|
12593
12593
|
" ",
|
|
@@ -12600,12 +12600,12 @@ function $p({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: s }) {
|
|
|
12600
12600
|
}
|
|
12601
12601
|
)
|
|
12602
12602
|
] }),
|
|
12603
|
-
|
|
12603
|
+
p === "confirm" && /* @__PURE__ */ g(
|
|
12604
12604
|
"form",
|
|
12605
12605
|
{
|
|
12606
12606
|
onSubmit: C,
|
|
12607
12607
|
className: L.form,
|
|
12608
|
-
"data-error":
|
|
12608
|
+
"data-error": A ? "true" : "false",
|
|
12609
12609
|
children: [
|
|
12610
12610
|
/* @__PURE__ */ g("div", { className: L.field, children: [
|
|
12611
12611
|
/* @__PURE__ */ a("label", { className: L.label, children: o.verificationCodeLabel }),
|
|
@@ -12621,7 +12621,7 @@ function $p({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: s }) {
|
|
|
12621
12621
|
}
|
|
12622
12622
|
)
|
|
12623
12623
|
] }),
|
|
12624
|
-
|
|
12624
|
+
A && /* @__PURE__ */ a("p", { className: L.error, children: A }),
|
|
12625
12625
|
/* @__PURE__ */ a("button", { type: "submit", className: L.primary, disabled: m, children: m ? /* @__PURE__ */ a(nt, {}) : o.confirmAccountButton }),
|
|
12626
12626
|
/* @__PURE__ */ g("p", { className: L.switch, children: [
|
|
12627
12627
|
o.alreadyConfirmedText,
|
|
@@ -12630,7 +12630,7 @@ function $p({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: s }) {
|
|
|
12630
12630
|
]
|
|
12631
12631
|
}
|
|
12632
12632
|
),
|
|
12633
|
-
|
|
12633
|
+
p === "success" && /* @__PURE__ */ g("form", { className: L.form, children: [
|
|
12634
12634
|
/* @__PURE__ */ g("div", { className: L.successContainer, children: [
|
|
12635
12635
|
/* @__PURE__ */ a("div", { className: L.thumbsUp, children: /* @__PURE__ */ a(
|
|
12636
12636
|
"svg",
|
|
@@ -12655,7 +12655,7 @@ function $p({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: s }) {
|
|
|
12655
12655
|
] }),
|
|
12656
12656
|
/* @__PURE__ */ a("button", { onClick: e, className: L.primary, children: o.loginButtonText })
|
|
12657
12657
|
] }),
|
|
12658
|
-
|
|
12658
|
+
p === "register" && /* @__PURE__ */ g("p", { className: L.switch, children: [
|
|
12659
12659
|
o.noAccountText,
|
|
12660
12660
|
/* @__PURE__ */ a("button", { type: "button", onClick: e, children: o.loginButtonText })
|
|
12661
12661
|
] })
|
|
@@ -12732,7 +12732,7 @@ function Jp({
|
|
|
12732
12732
|
API_ENV: o,
|
|
12733
12733
|
texts: i
|
|
12734
12734
|
}) {
|
|
12735
|
-
const r = { ...Kp, ...i?.comentarios }, [c, u] = Z("login"), [d, l] = Z(""), [m, h] = Z(""), [
|
|
12735
|
+
const r = { ...Kp, ...i?.comentarios }, [c, u] = Z("login"), [d, l] = Z(""), [m, h] = Z(""), [A, f] = Z(""), [p, w] = Z(""), [_, S] = Z(""), [C, I] = Z(!1), [y, E] = Z(!1), [x, G] = Z(null);
|
|
12736
12736
|
return /* @__PURE__ */ g(Y, { children: [
|
|
12737
12737
|
c === "login" && /* @__PURE__ */ a(
|
|
12738
12738
|
Zp,
|
|
@@ -12815,8 +12815,8 @@ function Jp({
|
|
|
12815
12815
|
e3,
|
|
12816
12816
|
{
|
|
12817
12817
|
email: d,
|
|
12818
|
-
confirmationCode:
|
|
12819
|
-
newPassword:
|
|
12818
|
+
confirmationCode: A,
|
|
12819
|
+
newPassword: p,
|
|
12820
12820
|
confirmNewPassword: _,
|
|
12821
12821
|
showPassword: C,
|
|
12822
12822
|
loading: y,
|
|
@@ -12827,12 +12827,12 @@ function Jp({
|
|
|
12827
12827
|
setShowPassword: I,
|
|
12828
12828
|
onSubmit: async (K) => {
|
|
12829
12829
|
if (y) return;
|
|
12830
|
-
if (K.preventDefault(),
|
|
12830
|
+
if (K.preventDefault(), p !== _) {
|
|
12831
12831
|
G("Las contraseñas no coinciden");
|
|
12832
12832
|
return;
|
|
12833
12833
|
}
|
|
12834
12834
|
if (Yo.some(
|
|
12835
|
-
(R) => !R.test(
|
|
12835
|
+
(R) => !R.test(p)
|
|
12836
12836
|
)) {
|
|
12837
12837
|
G("La contraseña no cumple con los requisitos");
|
|
12838
12838
|
return;
|
|
@@ -12842,7 +12842,7 @@ function Jp({
|
|
|
12842
12842
|
const R = await fetch("/api/auth/confirm-forgot-password", {
|
|
12843
12843
|
method: "POST",
|
|
12844
12844
|
headers: { "Content-Type": "application/json" },
|
|
12845
|
-
body: JSON.stringify({ email: d, code:
|
|
12845
|
+
body: JSON.stringify({ email: d, code: A, newPassword: p })
|
|
12846
12846
|
});
|
|
12847
12847
|
if (!R.ok) {
|
|
12848
12848
|
const k = await R.json().catch(() => ({}));
|
|
@@ -12914,7 +12914,7 @@ function Zp({
|
|
|
12914
12914
|
{
|
|
12915
12915
|
type: "email",
|
|
12916
12916
|
value: e,
|
|
12917
|
-
onChange: (
|
|
12917
|
+
onChange: (A) => i(A.target.value),
|
|
12918
12918
|
className: L.input,
|
|
12919
12919
|
placeholder: ""
|
|
12920
12920
|
}
|
|
@@ -12927,7 +12927,7 @@ function Zp({
|
|
|
12927
12927
|
{
|
|
12928
12928
|
type: n ? "text" : "password",
|
|
12929
12929
|
value: t,
|
|
12930
|
-
onChange: (
|
|
12930
|
+
onChange: (A) => r(A.target.value),
|
|
12931
12931
|
className: L.input,
|
|
12932
12932
|
placeholder: ""
|
|
12933
12933
|
}
|
|
@@ -12939,7 +12939,7 @@ function Zp({
|
|
|
12939
12939
|
id: "showPasswordLogin",
|
|
12940
12940
|
type: "checkbox",
|
|
12941
12941
|
checked: n,
|
|
12942
|
-
onChange: (
|
|
12942
|
+
onChange: (A) => c(A.target.checked)
|
|
12943
12943
|
}
|
|
12944
12944
|
),
|
|
12945
12945
|
/* @__PURE__ */ a("label", { htmlFor: "showPasswordLogin", className: L.checkboxLabel, children: h.showPassword })
|
|
@@ -13017,9 +13017,9 @@ function e3({
|
|
|
13017
13017
|
setShowPassword: l,
|
|
13018
13018
|
onSubmit: m,
|
|
13019
13019
|
onBack: h,
|
|
13020
|
-
t:
|
|
13020
|
+
t: A
|
|
13021
13021
|
}) {
|
|
13022
|
-
const f =
|
|
13022
|
+
const f = A.changePasswordMessage.replace("{{email}}", Yp(e));
|
|
13023
13023
|
return /* @__PURE__ */ g(
|
|
13024
13024
|
"form",
|
|
13025
13025
|
{
|
|
@@ -13030,47 +13030,47 @@ function e3({
|
|
|
13030
13030
|
/* @__PURE__ */ a("p", { className: L.message, children: f }),
|
|
13031
13031
|
/* @__PURE__ */ g("ul", { className: L.formUl, children: [
|
|
13032
13032
|
/* @__PURE__ */ g("div", { className: L.field, children: [
|
|
13033
|
-
/* @__PURE__ */ a("label", { className: L.label, children:
|
|
13033
|
+
/* @__PURE__ */ a("label", { className: L.label, children: A.verificationCodeLabel }),
|
|
13034
13034
|
/* @__PURE__ */ a(
|
|
13035
13035
|
"input",
|
|
13036
13036
|
{
|
|
13037
13037
|
type: "text",
|
|
13038
13038
|
value: t,
|
|
13039
|
-
onChange: (
|
|
13039
|
+
onChange: (p) => c(p.target.value),
|
|
13040
13040
|
className: L.input,
|
|
13041
13041
|
placeholder: ""
|
|
13042
13042
|
}
|
|
13043
13043
|
)
|
|
13044
13044
|
] }),
|
|
13045
13045
|
/* @__PURE__ */ g("div", { className: L.field, children: [
|
|
13046
|
-
/* @__PURE__ */ a("label", { className: L.label, children:
|
|
13046
|
+
/* @__PURE__ */ a("label", { className: L.label, children: A.newPasswordLabel }),
|
|
13047
13047
|
/* @__PURE__ */ a(
|
|
13048
13048
|
"input",
|
|
13049
13049
|
{
|
|
13050
13050
|
type: o ? "text" : "password",
|
|
13051
13051
|
value: n,
|
|
13052
|
-
onChange: (
|
|
13052
|
+
onChange: (p) => u(p.target.value),
|
|
13053
13053
|
className: L.input,
|
|
13054
13054
|
placeholder: "",
|
|
13055
13055
|
name: "password"
|
|
13056
13056
|
}
|
|
13057
13057
|
),
|
|
13058
|
-
/* @__PURE__ */ a("div", { className: L.passwordChecker, children: Yo.map((
|
|
13059
|
-
const _ =
|
|
13058
|
+
/* @__PURE__ */ a("div", { className: L.passwordChecker, children: Yo.map((p, w) => {
|
|
13059
|
+
const _ = p.test(n);
|
|
13060
13060
|
return /* @__PURE__ */ g("div", { className: _ ? L.valid : L.invalid, children: [
|
|
13061
13061
|
/* @__PURE__ */ a("div", { children: _ ? "✔" : "○" }),
|
|
13062
|
-
/* @__PURE__ */ a("div", { children:
|
|
13062
|
+
/* @__PURE__ */ a("div", { children: p.label })
|
|
13063
13063
|
] }, w);
|
|
13064
13064
|
}) })
|
|
13065
13065
|
] }),
|
|
13066
13066
|
/* @__PURE__ */ g("div", { className: L.field, children: [
|
|
13067
|
-
/* @__PURE__ */ a("label", { className: L.label, children:
|
|
13067
|
+
/* @__PURE__ */ a("label", { className: L.label, children: A.confirmPasswordLabel }),
|
|
13068
13068
|
/* @__PURE__ */ a(
|
|
13069
13069
|
"input",
|
|
13070
13070
|
{
|
|
13071
13071
|
type: o ? "text" : "password",
|
|
13072
13072
|
value: s,
|
|
13073
|
-
onChange: (
|
|
13073
|
+
onChange: (p) => d(p.target.value),
|
|
13074
13074
|
className: L.input,
|
|
13075
13075
|
placeholder: ""
|
|
13076
13076
|
}
|
|
@@ -13082,7 +13082,7 @@ function e3({
|
|
|
13082
13082
|
id: "showPasswordForgot",
|
|
13083
13083
|
type: "checkbox",
|
|
13084
13084
|
checked: o,
|
|
13085
|
-
onChange: (
|
|
13085
|
+
onChange: (p) => l(p.target.checked)
|
|
13086
13086
|
}
|
|
13087
13087
|
),
|
|
13088
13088
|
/* @__PURE__ */ a(
|
|
@@ -13090,7 +13090,7 @@ function e3({
|
|
|
13090
13090
|
{
|
|
13091
13091
|
htmlFor: "showPasswordForgot",
|
|
13092
13092
|
className: L.checkboxLabel,
|
|
13093
|
-
children:
|
|
13093
|
+
children: A.showPasswordsLabel
|
|
13094
13094
|
}
|
|
13095
13095
|
)
|
|
13096
13096
|
] })
|
|
@@ -13104,10 +13104,10 @@ function e3({
|
|
|
13104
13104
|
className: L.primary,
|
|
13105
13105
|
style: { maxWidth: i ? "revert-layer" : "fit-content" },
|
|
13106
13106
|
disabled: i,
|
|
13107
|
-
children: i ? /* @__PURE__ */ a(nt, {}) :
|
|
13107
|
+
children: i ? /* @__PURE__ */ a(nt, {}) : A.changePasswordButton
|
|
13108
13108
|
}
|
|
13109
13109
|
),
|
|
13110
|
-
/* @__PURE__ */ a("p", { className: L.switch, children: /* @__PURE__ */ a("button", { type: "button", onClick: h, children:
|
|
13110
|
+
/* @__PURE__ */ a("p", { className: L.switch, children: /* @__PURE__ */ a("button", { type: "button", onClick: h, children: A.backButton }) })
|
|
13111
13111
|
]
|
|
13112
13112
|
}
|
|
13113
13113
|
);
|
|
@@ -13357,8 +13357,8 @@ const z5 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13357
13357
|
} = e, i = Lo(), r = ua(() => {
|
|
13358
13358
|
const h = e?.preview?.sizes;
|
|
13359
13359
|
if (h && Array.isArray(h) && h.length > 0) return h;
|
|
13360
|
-
const
|
|
13361
|
-
return
|
|
13360
|
+
const A = e?.preview?.original;
|
|
13361
|
+
return A?.url ? [{ url: A.url, width: A.width || 0, height: A.height || 0 }] : [];
|
|
13362
13362
|
}, [e?.preview?.sizes, e?.preview?.original]);
|
|
13363
13363
|
if (!r.length || !r[0]?.url || r[0]?.url === "")
|
|
13364
13364
|
return /* @__PURE__ */ a("div", { className: ce.imagePlaceholder });
|
|
@@ -13494,7 +13494,7 @@ const z5 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13494
13494
|
fetchConfig: r,
|
|
13495
13495
|
paths: c
|
|
13496
13496
|
}) => {
|
|
13497
|
-
const u = i.FETCH_SIZE_MORE_NEWS ?? 6, [d, l] = Z({ data: Array.from({ length: u }, () => U3) }), [m, h] = Z(!1),
|
|
13497
|
+
const u = i.FETCH_SIZE_MORE_NEWS ?? 6, [d, l] = Z({ data: Array.from({ length: u }, () => U3) }), [m, h] = Z(!1), A = fe(async () => {
|
|
13498
13498
|
if (!t) return;
|
|
13499
13499
|
const w = new URLSearchParams({
|
|
13500
13500
|
section: e,
|
|
@@ -13534,12 +13534,12 @@ const z5 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13534
13534
|
(y) => y.info.link.internal !== t
|
|
13535
13535
|
)
|
|
13536
13536
|
};
|
|
13537
|
-
}, [e, t, i]),
|
|
13537
|
+
}, [e, t, i]), p = fe(async () => {
|
|
13538
13538
|
if (!(m || !t)) {
|
|
13539
13539
|
h(!0);
|
|
13540
13540
|
try {
|
|
13541
13541
|
let w;
|
|
13542
|
-
i.PUBLIC_ENV !== "prod" ? w = await
|
|
13542
|
+
i.PUBLIC_ENV !== "prod" ? w = await A() : w = await f(), l({
|
|
13543
13543
|
...w,
|
|
13544
13544
|
data: w.data.slice(0, u)
|
|
13545
13545
|
});
|
|
@@ -13551,12 +13551,12 @@ const z5 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13551
13551
|
m,
|
|
13552
13552
|
t,
|
|
13553
13553
|
i.PUBLIC_ENV,
|
|
13554
|
-
|
|
13554
|
+
A,
|
|
13555
13555
|
f
|
|
13556
13556
|
]);
|
|
13557
13557
|
return He(() => {
|
|
13558
|
-
s &&
|
|
13559
|
-
}, [s,
|
|
13558
|
+
s && p();
|
|
13559
|
+
}, [s, p]), !d?.data || d.data.length === 0 ? null : /* @__PURE__ */ a(
|
|
13560
13560
|
R3,
|
|
13561
13561
|
{
|
|
13562
13562
|
news: d.data,
|
|
@@ -13589,9 +13589,9 @@ const z5 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13589
13589
|
preview: l,
|
|
13590
13590
|
isVideo: m = !1,
|
|
13591
13591
|
config: h,
|
|
13592
|
-
overImage:
|
|
13592
|
+
overImage: A = "default",
|
|
13593
13593
|
isTitle: f = !1,
|
|
13594
|
-
isLarge:
|
|
13594
|
+
isLarge: p = !1,
|
|
13595
13595
|
keywords: w
|
|
13596
13596
|
} = i;
|
|
13597
13597
|
return /* @__PURE__ */ a(
|
|
@@ -13614,7 +13614,7 @@ const z5 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13614
13614
|
preview: l,
|
|
13615
13615
|
rounded: e.rounded,
|
|
13616
13616
|
isVideo: m,
|
|
13617
|
-
isLarge:
|
|
13617
|
+
isLarge: p,
|
|
13618
13618
|
API_ENV: e.API_ENV,
|
|
13619
13619
|
getImageUrl: e.getImageUrl
|
|
13620
13620
|
}
|
|
@@ -13631,7 +13631,7 @@ const z5 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13631
13631
|
preview: l,
|
|
13632
13632
|
share: e.share,
|
|
13633
13633
|
config: h,
|
|
13634
|
-
overImage:
|
|
13634
|
+
overImage: A,
|
|
13635
13635
|
isTitle: f,
|
|
13636
13636
|
paths: e.paths,
|
|
13637
13637
|
isVisible: e.isVisible,
|
|
@@ -13838,7 +13838,7 @@ async function $5({
|
|
|
13838
13838
|
encodedType: l,
|
|
13839
13839
|
url: h
|
|
13840
13840
|
});
|
|
13841
|
-
const
|
|
13841
|
+
const A = await re.get(h, {
|
|
13842
13842
|
headers: {
|
|
13843
13843
|
"User-Agent": "blu3st@ck-react",
|
|
13844
13844
|
"x-security-token": c,
|
|
@@ -13846,22 +13846,22 @@ async function $5({
|
|
|
13846
13846
|
"Content-Type": "application/json"
|
|
13847
13847
|
}
|
|
13848
13848
|
});
|
|
13849
|
-
if (console.log("Report response:",
|
|
13849
|
+
if (console.log("Report response:", A.data), A.status === 200 || A.status === 201)
|
|
13850
13850
|
return {
|
|
13851
13851
|
type: "success",
|
|
13852
13852
|
message: "Comentario reportado exitosamente",
|
|
13853
|
-
status:
|
|
13854
|
-
data:
|
|
13853
|
+
status: A.status,
|
|
13854
|
+
data: A.data
|
|
13855
13855
|
};
|
|
13856
|
-
throw new Error(`Respuesta inesperada del servidor: ${
|
|
13857
|
-
} catch (
|
|
13858
|
-
if (console.error("Error reporting comment:",
|
|
13859
|
-
const f =
|
|
13856
|
+
throw new Error(`Respuesta inesperada del servidor: ${A.status}`);
|
|
13857
|
+
} catch (A) {
|
|
13858
|
+
if (console.error("Error reporting comment:", A), re.isAxiosError(A)) {
|
|
13859
|
+
const f = A.response?.status, p = A.response?.data;
|
|
13860
13860
|
throw f === 400 ? new Error("Datos inválidos para el reporte") : f === 401 ? new Error("Token de API inválido") : f === 403 ? new Error("Acceso denegado para reportar comentario") : f === 404 ? new Error("Comentario no encontrado") : f === 409 ? new Error("El comentario ya fue reportado por este usuario") : f === 500 ? new Error("Error interno del servidor CMS") : new Error(
|
|
13861
|
-
|
|
13861
|
+
p?.error || p?.message || `Error HTTP ${f}: No se pudo reportar el comentario`
|
|
13862
13862
|
);
|
|
13863
13863
|
}
|
|
13864
|
-
throw
|
|
13864
|
+
throw A;
|
|
13865
13865
|
}
|
|
13866
13866
|
}
|
|
13867
13867
|
const _a = {
|
|
@@ -13881,7 +13881,7 @@ var Qs;
|
|
|
13881
13881
|
function e9() {
|
|
13882
13882
|
if (Qs) return oe;
|
|
13883
13883
|
Qs = 1;
|
|
13884
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120,
|
|
13884
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
13885
13885
|
function C(y) {
|
|
13886
13886
|
if (typeof y == "object" && y !== null) {
|
|
13887
13887
|
var E = y.$$typeof;
|
|
@@ -13900,7 +13900,7 @@ function e9() {
|
|
|
13900
13900
|
case c:
|
|
13901
13901
|
case l:
|
|
13902
13902
|
case f:
|
|
13903
|
-
case
|
|
13903
|
+
case A:
|
|
13904
13904
|
case r:
|
|
13905
13905
|
return y;
|
|
13906
13906
|
default:
|
|
@@ -13915,7 +13915,7 @@ function e9() {
|
|
|
13915
13915
|
function I(y) {
|
|
13916
13916
|
return C(y) === d;
|
|
13917
13917
|
}
|
|
13918
|
-
return oe.AsyncMode = u, oe.ConcurrentMode = d, oe.ContextConsumer = c, oe.ContextProvider = r, oe.Element = t, oe.ForwardRef = l, oe.Fragment = s, oe.Lazy = f, oe.Memo =
|
|
13918
|
+
return oe.AsyncMode = u, oe.ConcurrentMode = d, oe.ContextConsumer = c, oe.ContextProvider = r, oe.Element = t, oe.ForwardRef = l, oe.Fragment = s, oe.Lazy = f, oe.Memo = A, oe.Portal = n, oe.Profiler = i, oe.StrictMode = o, oe.Suspense = m, oe.isAsyncMode = function(y) {
|
|
13919
13919
|
return I(y) || C(y) === u;
|
|
13920
13920
|
}, oe.isConcurrentMode = I, oe.isContextConsumer = function(y) {
|
|
13921
13921
|
return C(y) === c;
|
|
@@ -13930,7 +13930,7 @@ function e9() {
|
|
|
13930
13930
|
}, oe.isLazy = function(y) {
|
|
13931
13931
|
return C(y) === f;
|
|
13932
13932
|
}, oe.isMemo = function(y) {
|
|
13933
|
-
return C(y) ===
|
|
13933
|
+
return C(y) === A;
|
|
13934
13934
|
}, oe.isPortal = function(y) {
|
|
13935
13935
|
return C(y) === n;
|
|
13936
13936
|
}, oe.isProfiler = function(y) {
|
|
@@ -13940,17 +13940,17 @@ function e9() {
|
|
|
13940
13940
|
}, oe.isSuspense = function(y) {
|
|
13941
13941
|
return C(y) === m;
|
|
13942
13942
|
}, oe.isValidElementType = function(y) {
|
|
13943
|
-
return typeof y == "string" || typeof y == "function" || y === s || y === d || y === i || y === o || y === m || y === h || typeof y == "object" && y !== null && (y.$$typeof === f || y.$$typeof ===
|
|
13943
|
+
return typeof y == "string" || typeof y == "function" || y === s || y === d || y === i || y === o || y === m || y === h || typeof y == "object" && y !== null && (y.$$typeof === f || y.$$typeof === A || y.$$typeof === r || y.$$typeof === c || y.$$typeof === l || y.$$typeof === w || y.$$typeof === _ || y.$$typeof === S || y.$$typeof === p);
|
|
13944
13944
|
}, oe.typeOf = C, oe;
|
|
13945
13945
|
}
|
|
13946
13946
|
var ie = {};
|
|
13947
13947
|
var Hs;
|
|
13948
13948
|
function t9() {
|
|
13949
13949
|
return Hs || (Hs = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
13950
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120,
|
|
13950
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
13951
13951
|
function C(P) {
|
|
13952
13952
|
return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
13953
|
-
P === s || P === d || P === i || P === o || P === m || P === h || typeof P == "object" && P !== null && (P.$$typeof === f || P.$$typeof ===
|
|
13953
|
+
P === s || P === d || P === i || P === o || P === m || P === h || typeof P == "object" && P !== null && (P.$$typeof === f || P.$$typeof === A || P.$$typeof === r || P.$$typeof === c || P.$$typeof === l || P.$$typeof === w || P.$$typeof === _ || P.$$typeof === S || P.$$typeof === p);
|
|
13954
13954
|
}
|
|
13955
13955
|
function I(P) {
|
|
13956
13956
|
if (typeof P == "object" && P !== null) {
|
|
@@ -13972,7 +13972,7 @@ function t9() {
|
|
|
13972
13972
|
case c:
|
|
13973
13973
|
case l:
|
|
13974
13974
|
case f:
|
|
13975
|
-
case
|
|
13975
|
+
case A:
|
|
13976
13976
|
case r:
|
|
13977
13977
|
return Va;
|
|
13978
13978
|
default:
|
|
@@ -13984,7 +13984,7 @@ function t9() {
|
|
|
13984
13984
|
}
|
|
13985
13985
|
}
|
|
13986
13986
|
}
|
|
13987
|
-
var y = u, E = d, x = c, G = r, X = t, Q = l, O = s, K = f, ae =
|
|
13987
|
+
var y = u, E = d, x = c, G = r, X = t, Q = l, O = s, K = f, ae = A, R = n, k = i, T = o, D = m, U = !1;
|
|
13988
13988
|
function F(P) {
|
|
13989
13989
|
return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), b(P) || I(P) === u;
|
|
13990
13990
|
}
|
|
@@ -14010,7 +14010,7 @@ function t9() {
|
|
|
14010
14010
|
return I(P) === f;
|
|
14011
14011
|
}
|
|
14012
14012
|
function V(P) {
|
|
14013
|
-
return I(P) ===
|
|
14013
|
+
return I(P) === A;
|
|
14014
14014
|
}
|
|
14015
14015
|
function ee(P) {
|
|
14016
14016
|
return I(P) === n;
|
|
@@ -14125,9 +14125,9 @@ function a9() {
|
|
|
14125
14125
|
(u || "React class") + ": type specification of " + c + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
14126
14126
|
), m instanceof Error && !(m.message in n)) {
|
|
14127
14127
|
n[m.message] = !0;
|
|
14128
|
-
var
|
|
14128
|
+
var A = d ? d() : "";
|
|
14129
14129
|
e(
|
|
14130
|
-
"Failed " + c + " type: " + m.message + (
|
|
14130
|
+
"Failed " + c + " type: " + m.message + (A ?? "")
|
|
14131
14131
|
);
|
|
14132
14132
|
}
|
|
14133
14133
|
}
|
|
@@ -14161,7 +14161,7 @@ function s9() {
|
|
|
14161
14161
|
if (typeof N == "function")
|
|
14162
14162
|
return N;
|
|
14163
14163
|
}
|
|
14164
|
-
var h = "<<anonymous>>",
|
|
14164
|
+
var h = "<<anonymous>>", A = {
|
|
14165
14165
|
array: _("array"),
|
|
14166
14166
|
bigint: _("bigint"),
|
|
14167
14167
|
bool: _("boolean"),
|
|
@@ -14185,10 +14185,10 @@ function s9() {
|
|
|
14185
14185
|
function f(b, N) {
|
|
14186
14186
|
return b === N ? b !== 0 || 1 / b === 1 / N : b !== b && N !== N;
|
|
14187
14187
|
}
|
|
14188
|
-
function
|
|
14188
|
+
function p(b, N) {
|
|
14189
14189
|
this.message = b, this.data = N && typeof N == "object" ? N : {}, this.stack = "";
|
|
14190
14190
|
}
|
|
14191
|
-
|
|
14191
|
+
p.prototype = Error.prototype;
|
|
14192
14192
|
function w(b) {
|
|
14193
14193
|
if (process.env.NODE_ENV !== "production")
|
|
14194
14194
|
var N = {}, B = 0;
|
|
@@ -14207,7 +14207,7 @@ function s9() {
|
|
|
14207
14207
|
), N[Ce] = !0, B++);
|
|
14208
14208
|
}
|
|
14209
14209
|
}
|
|
14210
|
-
return z[V] == null ? H ? z[V] === null ? new
|
|
14210
|
+
return z[V] == null ? H ? z[V] === null ? new p("The " + ne + " `" + W + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new p("The " + ne + " `" + W + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : b(z, V, ee, ne, W);
|
|
14211
14211
|
}
|
|
14212
14212
|
var M = j.bind(null, !1);
|
|
14213
14213
|
return M.isRequired = j.bind(null, !0), M;
|
|
@@ -14217,7 +14217,7 @@ function s9() {
|
|
|
14217
14217
|
var ee = B[j], ne = T(ee);
|
|
14218
14218
|
if (ne !== b) {
|
|
14219
14219
|
var W = D(ee);
|
|
14220
|
-
return new
|
|
14220
|
+
return new p(
|
|
14221
14221
|
"Invalid " + H + " `" + z + "` of type " + ("`" + W + "` supplied to `" + M + "`, expected ") + ("`" + b + "`."),
|
|
14222
14222
|
{ expectedType: b }
|
|
14223
14223
|
);
|
|
@@ -14232,11 +14232,11 @@ function s9() {
|
|
|
14232
14232
|
function C(b) {
|
|
14233
14233
|
function N(B, j, M, H, z) {
|
|
14234
14234
|
if (typeof b != "function")
|
|
14235
|
-
return new
|
|
14235
|
+
return new p("Property `" + z + "` of component `" + M + "` has invalid PropType notation inside arrayOf.");
|
|
14236
14236
|
var V = B[j];
|
|
14237
14237
|
if (!Array.isArray(V)) {
|
|
14238
14238
|
var ee = T(V);
|
|
14239
|
-
return new
|
|
14239
|
+
return new p("Invalid " + H + " `" + z + "` of type " + ("`" + ee + "` supplied to `" + M + "`, expected an array."));
|
|
14240
14240
|
}
|
|
14241
14241
|
for (var ne = 0; ne < V.length; ne++) {
|
|
14242
14242
|
var W = b(V, ne, M, H, z + "[" + ne + "]", n);
|
|
@@ -14252,7 +14252,7 @@ function s9() {
|
|
|
14252
14252
|
var z = N[B];
|
|
14253
14253
|
if (!c(z)) {
|
|
14254
14254
|
var V = T(z);
|
|
14255
|
-
return new
|
|
14255
|
+
return new p("Invalid " + M + " `" + H + "` of type " + ("`" + V + "` supplied to `" + j + "`, expected a single ReactElement."));
|
|
14256
14256
|
}
|
|
14257
14257
|
return null;
|
|
14258
14258
|
}
|
|
@@ -14263,7 +14263,7 @@ function s9() {
|
|
|
14263
14263
|
var z = N[B];
|
|
14264
14264
|
if (!e.isValidElementType(z)) {
|
|
14265
14265
|
var V = T(z);
|
|
14266
|
-
return new
|
|
14266
|
+
return new p("Invalid " + M + " `" + H + "` of type " + ("`" + V + "` supplied to `" + j + "`, expected a single ReactElement type."));
|
|
14267
14267
|
}
|
|
14268
14268
|
return null;
|
|
14269
14269
|
}
|
|
@@ -14273,7 +14273,7 @@ function s9() {
|
|
|
14273
14273
|
function N(B, j, M, H, z) {
|
|
14274
14274
|
if (!(B[j] instanceof b)) {
|
|
14275
14275
|
var V = b.name || h, ee = F(B[j]);
|
|
14276
|
-
return new
|
|
14276
|
+
return new p("Invalid " + H + " `" + z + "` of type " + ("`" + ee + "` supplied to `" + M + "`, expected ") + ("instance of `" + V + "`."));
|
|
14277
14277
|
}
|
|
14278
14278
|
return null;
|
|
14279
14279
|
}
|
|
@@ -14292,17 +14292,17 @@ function s9() {
|
|
|
14292
14292
|
var Ce = D(P);
|
|
14293
14293
|
return Ce === "symbol" ? String(P) : P;
|
|
14294
14294
|
});
|
|
14295
|
-
return new
|
|
14295
|
+
return new p("Invalid " + H + " `" + z + "` of value `" + String(V) + "` " + ("supplied to `" + M + "`, expected one of " + ne + "."));
|
|
14296
14296
|
}
|
|
14297
14297
|
return w(N);
|
|
14298
14298
|
}
|
|
14299
14299
|
function G(b) {
|
|
14300
14300
|
function N(B, j, M, H, z) {
|
|
14301
14301
|
if (typeof b != "function")
|
|
14302
|
-
return new
|
|
14302
|
+
return new p("Property `" + z + "` of component `" + M + "` has invalid PropType notation inside objectOf.");
|
|
14303
14303
|
var V = B[j], ee = T(V);
|
|
14304
14304
|
if (ee !== "object")
|
|
14305
|
-
return new
|
|
14305
|
+
return new p("Invalid " + H + " `" + z + "` of type " + ("`" + ee + "` supplied to `" + M + "`, expected an object."));
|
|
14306
14306
|
for (var ne in V)
|
|
14307
14307
|
if (s(V, ne)) {
|
|
14308
14308
|
var W = b(V, ne, M, H, z + "." + ne, n);
|
|
@@ -14331,18 +14331,18 @@ function s9() {
|
|
|
14331
14331
|
P.data && s(P.data, "expectedType") && ne.push(P.data.expectedType);
|
|
14332
14332
|
}
|
|
14333
14333
|
var Ce = ne.length > 0 ? ", expected one of type [" + ne.join(", ") + "]" : "";
|
|
14334
|
-
return new
|
|
14334
|
+
return new p("Invalid " + V + " `" + ee + "` supplied to " + ("`" + z + "`" + Ce + "."));
|
|
14335
14335
|
}
|
|
14336
14336
|
return w(j);
|
|
14337
14337
|
}
|
|
14338
14338
|
function Q() {
|
|
14339
14339
|
function b(N, B, j, M, H) {
|
|
14340
|
-
return R(N[B]) ? null : new
|
|
14340
|
+
return R(N[B]) ? null : new p("Invalid " + M + " `" + H + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
|
|
14341
14341
|
}
|
|
14342
14342
|
return w(b);
|
|
14343
14343
|
}
|
|
14344
14344
|
function O(b, N, B, j, M) {
|
|
14345
|
-
return new
|
|
14345
|
+
return new p(
|
|
14346
14346
|
(b || "React class") + ": " + N + " type `" + B + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + M + "`."
|
|
14347
14347
|
);
|
|
14348
14348
|
}
|
|
@@ -14350,7 +14350,7 @@ function s9() {
|
|
|
14350
14350
|
function N(B, j, M, H, z) {
|
|
14351
14351
|
var V = B[j], ee = T(V);
|
|
14352
14352
|
if (ee !== "object")
|
|
14353
|
-
return new
|
|
14353
|
+
return new p("Invalid " + H + " `" + z + "` of type `" + ee + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
14354
14354
|
for (var ne in b) {
|
|
14355
14355
|
var W = b[ne];
|
|
14356
14356
|
if (typeof W != "function")
|
|
@@ -14367,14 +14367,14 @@ function s9() {
|
|
|
14367
14367
|
function N(B, j, M, H, z) {
|
|
14368
14368
|
var V = B[j], ee = T(V);
|
|
14369
14369
|
if (ee !== "object")
|
|
14370
|
-
return new
|
|
14370
|
+
return new p("Invalid " + H + " `" + z + "` of type `" + ee + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
14371
14371
|
var ne = t({}, B[j], b);
|
|
14372
14372
|
for (var W in ne) {
|
|
14373
14373
|
var de = b[W];
|
|
14374
14374
|
if (s(b, W) && typeof de != "function")
|
|
14375
14375
|
return O(M, H, z, W, D(de));
|
|
14376
14376
|
if (!de)
|
|
14377
|
-
return new
|
|
14377
|
+
return new p(
|
|
14378
14378
|
"Invalid " + H + " `" + z + "` key `" + W + "` supplied to `" + M + "`.\nBad object: " + JSON.stringify(B[j], null, " ") + `
|
|
14379
14379
|
Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
14380
14380
|
);
|
|
@@ -14455,7 +14455,7 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
14455
14455
|
function F(b) {
|
|
14456
14456
|
return !b.constructor || !b.constructor.name ? h : b.constructor.name;
|
|
14457
14457
|
}
|
|
14458
|
-
return
|
|
14458
|
+
return A.checkPropTypes = o, A.resetWarningCache = o.resetWarningCache, A.PropTypes = A, A;
|
|
14459
14459
|
}, ca;
|
|
14460
14460
|
}
|
|
14461
14461
|
var la, Ks;
|
|
@@ -14688,18 +14688,18 @@ function u9() {
|
|
|
14688
14688
|
return e.isMemo(f) ? o : i[f.$$typeof] || t;
|
|
14689
14689
|
}
|
|
14690
14690
|
var c = Object.defineProperty, u = Object.getOwnPropertyNames, d = Object.getOwnPropertySymbols, l = Object.getOwnPropertyDescriptor, m = Object.getPrototypeOf, h = Object.prototype;
|
|
14691
|
-
function
|
|
14692
|
-
if (typeof
|
|
14691
|
+
function A(f, p, w) {
|
|
14692
|
+
if (typeof p != "string") {
|
|
14693
14693
|
if (h) {
|
|
14694
|
-
var _ = m(
|
|
14695
|
-
_ && _ !== h &&
|
|
14694
|
+
var _ = m(p);
|
|
14695
|
+
_ && _ !== h && A(f, _, w);
|
|
14696
14696
|
}
|
|
14697
|
-
var S = u(
|
|
14698
|
-
d && (S = S.concat(d(
|
|
14699
|
-
for (var C = r(f), I = r(
|
|
14697
|
+
var S = u(p);
|
|
14698
|
+
d && (S = S.concat(d(p)));
|
|
14699
|
+
for (var C = r(f), I = r(p), y = 0; y < S.length; ++y) {
|
|
14700
14700
|
var E = S[y];
|
|
14701
14701
|
if (!n[E] && !(w && w[E]) && !(I && I[E]) && !(C && C[E])) {
|
|
14702
|
-
var x = l(
|
|
14702
|
+
var x = l(p, E);
|
|
14703
14703
|
try {
|
|
14704
14704
|
c(f, E, x);
|
|
14705
14705
|
} catch {
|
|
@@ -14709,7 +14709,7 @@ function u9() {
|
|
|
14709
14709
|
}
|
|
14710
14710
|
return f;
|
|
14711
14711
|
}
|
|
14712
|
-
return da =
|
|
14712
|
+
return da = A, da;
|
|
14713
14713
|
}
|
|
14714
14714
|
var m9 = u9();
|
|
14715
14715
|
const h9 = /* @__PURE__ */ xt(m9);
|
|
@@ -14760,8 +14760,8 @@ function A9(e, t) {
|
|
|
14760
14760
|
m.observers[h](m);
|
|
14761
14761
|
delete window[t.callbackName];
|
|
14762
14762
|
}, d.componentDidMount = function() {
|
|
14763
|
-
var m = this, h = this.setupScriptURL(),
|
|
14764
|
-
if (
|
|
14763
|
+
var m = this, h = this.setupScriptURL(), A = this.asyncScriptLoaderGetScriptLoaderID(), f = t, p = f.globalName, w = f.callbackName, _ = f.scriptId;
|
|
14764
|
+
if (p && typeof window[p] < "u" && (Me[h] = {
|
|
14765
14765
|
loaded: !0,
|
|
14766
14766
|
observers: {}
|
|
14767
14767
|
}), Me[h]) {
|
|
@@ -14770,13 +14770,13 @@ function A9(e, t) {
|
|
|
14770
14770
|
this.asyncScriptLoaderHandleLoad(S);
|
|
14771
14771
|
return;
|
|
14772
14772
|
}
|
|
14773
|
-
S.observers[
|
|
14773
|
+
S.observers[A] = function(x) {
|
|
14774
14774
|
return m.asyncScriptLoaderHandleLoad(x);
|
|
14775
14775
|
};
|
|
14776
14776
|
return;
|
|
14777
14777
|
}
|
|
14778
14778
|
var C = {};
|
|
14779
|
-
C[
|
|
14779
|
+
C[A] = function(x) {
|
|
14780
14780
|
return m.asyncScriptLoaderHandleLoad(x);
|
|
14781
14781
|
}, Me[h] = {
|
|
14782
14782
|
loaded: !1,
|
|
@@ -14810,15 +14810,15 @@ function A9(e, t) {
|
|
|
14810
14810
|
}, d.componentWillUnmount = function() {
|
|
14811
14811
|
var m = this.__scriptURL;
|
|
14812
14812
|
if (t.removeOnUnmount === !0)
|
|
14813
|
-
for (var h = document.getElementsByTagName("script"),
|
|
14814
|
-
h[
|
|
14813
|
+
for (var h = document.getElementsByTagName("script"), A = 0; A < h.length; A += 1)
|
|
14814
|
+
h[A].src.indexOf(m) > -1 && h[A].parentNode && h[A].parentNode.removeChild(h[A]);
|
|
14815
14815
|
var f = Me[m];
|
|
14816
14816
|
f && (delete f.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete Me[m]);
|
|
14817
14817
|
}, d.render = function() {
|
|
14818
14818
|
var m = t.globalName, h = this.props;
|
|
14819
14819
|
h.asyncScriptOnLoad;
|
|
14820
|
-
var
|
|
14821
|
-
return m && typeof window < "u" && (f[m] = typeof window[m] < "u" ? window[m] : void 0), f.ref =
|
|
14820
|
+
var A = h.forwardedRef, f = f9(h, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
14821
|
+
return m && typeof window < "u" && (f[m] = typeof window[m] < "u" ? window[m] : void 0), f.ref = A, lt(s, f);
|
|
14822
14822
|
}, u;
|
|
14823
14823
|
})(ri), r = eo(function(c, u) {
|
|
14824
14824
|
return lt(i, Sa({}, c, {
|
|
@@ -14863,7 +14863,7 @@ const Xo = A9(y9, {
|
|
|
14863
14863
|
}) => {
|
|
14864
14864
|
const c = { ...b9, ...r?.comentarios }, u = { ..._a, ...c.reportReasons ?? {} }, [d, l] = Z("form"), [m, h] = Z(
|
|
14865
14865
|
""
|
|
14866
|
-
), [
|
|
14866
|
+
), [A, f] = Z(""), [p, w] = Z(""), _ = [
|
|
14867
14867
|
{ id: "spam", label: u.spam },
|
|
14868
14868
|
{ id: "inappropriate", label: u.inappropriate },
|
|
14869
14869
|
{ id: "hate", label: u.hate },
|
|
@@ -14888,7 +14888,7 @@ const Xo = A9(y9, {
|
|
|
14888
14888
|
publication: s,
|
|
14889
14889
|
username: o,
|
|
14890
14890
|
id: n,
|
|
14891
|
-
captchaToken:
|
|
14891
|
+
captchaToken: p,
|
|
14892
14892
|
type: _a[m]
|
|
14893
14893
|
// Enviamos el label completo
|
|
14894
14894
|
})
|
|
@@ -14926,7 +14926,7 @@ const Xo = A9(y9, {
|
|
|
14926
14926
|
/* @__PURE__ */ a("span", { className: Ae.radioCustom }),
|
|
14927
14927
|
/* @__PURE__ */ a("span", { className: Ae.optionLabel, children: I.label })
|
|
14928
14928
|
] }, I.id)) }),
|
|
14929
|
-
|
|
14929
|
+
A && /* @__PURE__ */ a("div", { className: Ae.errorMessage, children: A }),
|
|
14930
14930
|
/* @__PURE__ */ a(
|
|
14931
14931
|
Xo,
|
|
14932
14932
|
{
|
|
@@ -15066,20 +15066,20 @@ async function C9({
|
|
|
15066
15066
|
throw new Error("Invalid input types for publication or path");
|
|
15067
15067
|
if (!c)
|
|
15068
15068
|
throw new Error("Missing CMS API token");
|
|
15069
|
-
const { PUBLIC_ENV: d, PUBLIC_API_HOST: l = "dummy", PUBLIC_API_PATH: m, PUBLIC_API_PATH_VERSION: h } = u,
|
|
15070
|
-
if (isNaN(
|
|
15069
|
+
const { PUBLIC_ENV: d, PUBLIC_API_HOST: l = "dummy", PUBLIC_API_PATH: m, PUBLIC_API_PATH_VERSION: h } = u, A = parseInt(String(n), 10), f = parseInt(String(s), 10);
|
|
15070
|
+
if (isNaN(A) || A <= 0)
|
|
15071
15071
|
throw new Error("Invalid size parameter");
|
|
15072
15072
|
if (isNaN(f) || f < 0)
|
|
15073
15073
|
throw new Error("Invalid sizereply parameter");
|
|
15074
|
-
const
|
|
15074
|
+
const p = d !== "prod" ? `${l}${m}` : "", w = new URLSearchParams({
|
|
15075
15075
|
publication: e,
|
|
15076
15076
|
path: t,
|
|
15077
|
-
size:
|
|
15077
|
+
size: A.toString(),
|
|
15078
15078
|
sizereply: f.toString(),
|
|
15079
15079
|
state: r
|
|
15080
15080
|
});
|
|
15081
15081
|
o && w.append("id", o), i && w.append("lastid", i);
|
|
15082
|
-
const _ = `${
|
|
15082
|
+
const _ = `${p}${h}/newcomments/get?${w.toString()}`;
|
|
15083
15083
|
try {
|
|
15084
15084
|
const { data: S } = await re.get(_, {
|
|
15085
15085
|
headers: {
|
|
@@ -15295,17 +15295,17 @@ const S9 = (e, t) => {
|
|
|
15295
15295
|
recaptchaResponse: n
|
|
15296
15296
|
})
|
|
15297
15297
|
});
|
|
15298
|
-
let
|
|
15298
|
+
let A = null;
|
|
15299
15299
|
try {
|
|
15300
|
-
|
|
15300
|
+
A = await h.json();
|
|
15301
15301
|
} catch (_) {
|
|
15302
15302
|
console.error("Error parsing JSON response:", _);
|
|
15303
15303
|
}
|
|
15304
15304
|
if (!h.ok)
|
|
15305
15305
|
throw new Error(
|
|
15306
|
-
`Error al enviar comentario: ${
|
|
15306
|
+
`Error al enviar comentario: ${A?.message} status: ${h.status}`
|
|
15307
15307
|
);
|
|
15308
|
-
const f = Date.now(),
|
|
15308
|
+
const f = Date.now(), p = Math.max(0, 2400 + Math.abs(f - m)), w = {
|
|
15309
15309
|
username: o.username,
|
|
15310
15310
|
firstname: o.firstname,
|
|
15311
15311
|
...o.lastname && { lastname: o.lastname },
|
|
@@ -15317,7 +15317,7 @@ const S9 = (e, t) => {
|
|
|
15317
15317
|
user: w,
|
|
15318
15318
|
date: { time: Date.now() },
|
|
15319
15319
|
reply: []
|
|
15320
|
-
}), t.current && (t.current.value = ""),
|
|
15320
|
+
}), t.current && (t.current.value = ""), p;
|
|
15321
15321
|
} catch (m) {
|
|
15322
15322
|
return console.error("Error enviando comentario:", m), alert(m.message || "Error al enviar el comentario."), !1;
|
|
15323
15323
|
}
|
|
@@ -15356,7 +15356,7 @@ const S9 = (e, t) => {
|
|
|
15356
15356
|
{
|
|
15357
15357
|
onClick: async (h) => {
|
|
15358
15358
|
if (c) return;
|
|
15359
|
-
const
|
|
15359
|
+
const A = await ii({
|
|
15360
15360
|
path: s,
|
|
15361
15361
|
ref: t,
|
|
15362
15362
|
captchaToken: d,
|
|
@@ -15366,9 +15366,9 @@ const S9 = (e, t) => {
|
|
|
15366
15366
|
addComment: o,
|
|
15367
15367
|
API_ENV: r
|
|
15368
15368
|
});
|
|
15369
|
-
return
|
|
15369
|
+
return A && typeof A == "number" ? (setTimeout(() => {
|
|
15370
15370
|
m();
|
|
15371
|
-
},
|
|
15371
|
+
}, A), !0) : !1;
|
|
15372
15372
|
},
|
|
15373
15373
|
isDisabled: c,
|
|
15374
15374
|
API_ENV: r
|
|
@@ -15396,7 +15396,7 @@ const S9 = (e, t) => {
|
|
|
15396
15396
|
}, E9 = {
|
|
15397
15397
|
moreRepliesButton: "Más Respuestas"
|
|
15398
15398
|
}, T9 = ({ comment: e, replyingTo: t, path: n, user: s, handleReplyingTo: o, onFlag: i, API_ENV: r, texts: c }) => {
|
|
15399
|
-
const u = { ...E9, ...c?.comentarios }, d = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [l, m] = Z(d), [h,
|
|
15399
|
+
const u = { ...E9, ...c?.comentarios }, d = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [l, m] = Z(d), [h, A] = be.useState(!1), { PUBLIC_PUBLICATION_ID: f, PUBLIC_X_SECURITY_TOKEN: p } = r, w = e.text, _ = be.useRef(null);
|
|
15400
15400
|
let S = `${tt.firstname} ${tt.lastname ?? ""}`, C = tt.username;
|
|
15401
15401
|
e.user && (S = `${e.user.firstname} ${e.user.lastname ?? ""}`, C = e.user.username);
|
|
15402
15402
|
const I = (y) => {
|
|
@@ -15450,7 +15450,7 @@ const S9 = (e, t) => {
|
|
|
15450
15450
|
className: "comment-replies-button reply-button",
|
|
15451
15451
|
onClick: async () => {
|
|
15452
15452
|
const y = l.reply[l.reply.length - 1]?.id;
|
|
15453
|
-
|
|
15453
|
+
A(!0);
|
|
15454
15454
|
try {
|
|
15455
15455
|
const x = await $a({
|
|
15456
15456
|
publication: f ?? "",
|
|
@@ -15460,12 +15460,12 @@ const S9 = (e, t) => {
|
|
|
15460
15460
|
id: e.id,
|
|
15461
15461
|
lastid: y,
|
|
15462
15462
|
state: "5,6",
|
|
15463
|
-
apiToken:
|
|
15463
|
+
apiToken: p ?? "",
|
|
15464
15464
|
API_ENV: r
|
|
15465
15465
|
});
|
|
15466
|
-
|
|
15466
|
+
A(!1), m({ morereply: x.morecomment, reply: [...l.reply, ...x.comments] });
|
|
15467
15467
|
} catch (E) {
|
|
15468
|
-
throw
|
|
15468
|
+
throw A(!1), new Error(`Error al obtener comentarios: ${E}`);
|
|
15469
15469
|
}
|
|
15470
15470
|
},
|
|
15471
15471
|
children: u.moreRepliesButton
|
|
@@ -15542,20 +15542,20 @@ const S9 = (e, t) => {
|
|
|
15542
15542
|
}) => {
|
|
15543
15543
|
const r = { ...k9, ...i?.comentarios }, { PUBLIC_PUBLICATION_ID: c, PUBLIC_X_SECURITY_TOKEN: u } = o, d = c ?? "", l = t.replaceAll("/", "|"), [m, h] = Z(
|
|
15544
15544
|
void 0
|
|
15545
|
-
), [
|
|
15546
|
-
f(
|
|
15545
|
+
), [A, f] = Z(""), { comments: p, setComments: w } = S9(l, o), [_, S] = be.useState(!1), C = be.useRef(null), I = (O) => {
|
|
15546
|
+
f(A === O ? "" : O);
|
|
15547
15547
|
}, y = (O) => {
|
|
15548
15548
|
w(
|
|
15549
|
-
|
|
15550
|
-
...
|
|
15551
|
-
comments: [O, ...
|
|
15549
|
+
p ? {
|
|
15550
|
+
...p,
|
|
15551
|
+
comments: [O, ...p.comments ?? []]
|
|
15552
15552
|
} : void 0
|
|
15553
15553
|
);
|
|
15554
15554
|
}, E = (O) => {
|
|
15555
15555
|
h(O);
|
|
15556
15556
|
}, x = async () => {
|
|
15557
|
-
if (!
|
|
15558
|
-
const O =
|
|
15557
|
+
if (!p || !p.morecomment || p.comments.length === 0) return;
|
|
15558
|
+
const O = p.comments[p.comments.length - 1];
|
|
15559
15559
|
if (!O) return;
|
|
15560
15560
|
S(!0);
|
|
15561
15561
|
const K = O.id;
|
|
@@ -15573,12 +15573,12 @@ const S9 = (e, t) => {
|
|
|
15573
15573
|
});
|
|
15574
15574
|
w({
|
|
15575
15575
|
morecomment: ae.morecomment ?? !1,
|
|
15576
|
-
comments: [...
|
|
15576
|
+
comments: [...p.comments, ...ae.comments]
|
|
15577
15577
|
}), S(!1);
|
|
15578
15578
|
} catch (ae) {
|
|
15579
15579
|
throw S(!1), new Error(`Error al obtener comentarios: ${ae}`);
|
|
15580
15580
|
}
|
|
15581
|
-
}, G =
|
|
15581
|
+
}, G = p?.comments && p.comments.length > 0, X = G ? r.commentHeaderMessageWithComments : r.commentHeaderMessageEmpty, Q = /* @__PURE__ */ a("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ a(nt, {}) });
|
|
15582
15582
|
return /* @__PURE__ */ g(Y, { children: [
|
|
15583
15583
|
/* @__PURE__ */ a("div", { className: "comments-container", children: /* @__PURE__ */ a(ye, { title: G || e ? r.commentsSectionTitle : !1, children: /* @__PURE__ */ g(Y, { children: [
|
|
15584
15584
|
e && n && /* @__PURE__ */ g("div", { className: "comments-header", children: [
|
|
@@ -15601,17 +15601,17 @@ const S9 = (e, t) => {
|
|
|
15601
15601
|
}
|
|
15602
15602
|
)
|
|
15603
15603
|
] }),
|
|
15604
|
-
|
|
15604
|
+
p ? p.comments && p.comments.length > 0 ? /* @__PURE__ */ g(
|
|
15605
15605
|
"div",
|
|
15606
15606
|
{
|
|
15607
15607
|
className: "comments-list",
|
|
15608
15608
|
"data-isauthenticated": `${e}`,
|
|
15609
15609
|
children: [
|
|
15610
|
-
|
|
15610
|
+
p.comments.map((O) => /* @__PURE__ */ a(
|
|
15611
15611
|
T9,
|
|
15612
15612
|
{
|
|
15613
15613
|
comment: O,
|
|
15614
|
-
replyingTo:
|
|
15614
|
+
replyingTo: A,
|
|
15615
15615
|
handleReplyingTo: I,
|
|
15616
15616
|
onFlag: E,
|
|
15617
15617
|
user: n ?? tt,
|
|
@@ -15625,7 +15625,7 @@ const S9 = (e, t) => {
|
|
|
15625
15625
|
]
|
|
15626
15626
|
}
|
|
15627
15627
|
) : null : Q,
|
|
15628
|
-
|
|
15628
|
+
p?.morecomment && !_ && /* @__PURE__ */ a(
|
|
15629
15629
|
"button",
|
|
15630
15630
|
{
|
|
15631
15631
|
className: "comment-replies-button",
|
|
@@ -15662,18 +15662,18 @@ function R9({
|
|
|
15662
15662
|
API_ENV: c,
|
|
15663
15663
|
texts: u
|
|
15664
15664
|
}) {
|
|
15665
|
-
const [d, l] = be.useState(!1), m = { ...L9, ...u?.comentarios }, h = m.loginButtonText,
|
|
15665
|
+
const [d, l] = be.useState(!1), m = { ...L9, ...u?.comentarios }, h = m.loginButtonText, A = async () => {
|
|
15666
15666
|
if (c.PUBLIC_ENV === "local")
|
|
15667
15667
|
await fetch("/api/auth/logout", {
|
|
15668
15668
|
method: "GET",
|
|
15669
15669
|
credentials: "include"
|
|
15670
15670
|
}), t(!1);
|
|
15671
15671
|
else {
|
|
15672
|
-
const
|
|
15673
|
-
window.location.href = `${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(
|
|
15672
|
+
const p = window.location.pathname;
|
|
15673
|
+
window.location.href = `${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(p)}`;
|
|
15674
15674
|
}
|
|
15675
|
-
}, f = async (
|
|
15676
|
-
|
|
15675
|
+
}, f = async (p) => {
|
|
15676
|
+
p.preventDefault(), n && l(!0);
|
|
15677
15677
|
};
|
|
15678
15678
|
return be.useEffect(() => {
|
|
15679
15679
|
if (typeof window > "u") return;
|
|
@@ -15708,7 +15708,7 @@ function R9({
|
|
|
15708
15708
|
U9,
|
|
15709
15709
|
{
|
|
15710
15710
|
isAuthenticated: e,
|
|
15711
|
-
handleLogout:
|
|
15711
|
+
handleLogout: A,
|
|
15712
15712
|
path: o,
|
|
15713
15713
|
user: e ? s : void 0,
|
|
15714
15714
|
API_ENV: c,
|
|
@@ -15733,8 +15733,8 @@ function B9({
|
|
|
15733
15733
|
try {
|
|
15734
15734
|
const f = await (await fetch("/api/auth/user", { credentials: "include" })).json();
|
|
15735
15735
|
r(f.isAuthenticated ?? !1), u(f.user ?? null);
|
|
15736
|
-
} catch (
|
|
15737
|
-
console.error("Error checking auth:",
|
|
15736
|
+
} catch (A) {
|
|
15737
|
+
console.error("Error checking auth:", A), r(!1), u(null);
|
|
15738
15738
|
}
|
|
15739
15739
|
}
|
|
15740
15740
|
}, [e, d]);
|
|
@@ -15742,12 +15742,12 @@ function B9({
|
|
|
15742
15742
|
l();
|
|
15743
15743
|
}, [l, e]), He(() => {
|
|
15744
15744
|
if (!c || !e || typeof window > "u") return;
|
|
15745
|
-
const
|
|
15746
|
-
if (typeof
|
|
15745
|
+
const A = window;
|
|
15746
|
+
if (typeof A != "function") {
|
|
15747
15747
|
console.warn("gtag no está disponible todavía");
|
|
15748
15748
|
return;
|
|
15749
15749
|
}
|
|
15750
|
-
|
|
15750
|
+
A.gtag("set", { user_id: c.username }), console.log("username setted successfully");
|
|
15751
15751
|
}, [c, e]);
|
|
15752
15752
|
const m = "/api/auth/login", h = /* @__PURE__ */ a(
|
|
15753
15753
|
"div",
|
|
@@ -15793,8 +15793,8 @@ const W5 = ({
|
|
|
15793
15793
|
be.useEffect(() => {
|
|
15794
15794
|
if (i || m) return;
|
|
15795
15795
|
const f = new IntersectionObserver(
|
|
15796
|
-
([
|
|
15797
|
-
|
|
15796
|
+
([p]) => {
|
|
15797
|
+
p?.isIntersecting && (h(!0), f.disconnect());
|
|
15798
15798
|
},
|
|
15799
15799
|
{
|
|
15800
15800
|
rootMargin: "0px",
|
|
@@ -15803,7 +15803,7 @@ const W5 = ({
|
|
|
15803
15803
|
);
|
|
15804
15804
|
return l.current && f.observe(l.current), () => f.disconnect();
|
|
15805
15805
|
}, []);
|
|
15806
|
-
const
|
|
15806
|
+
const A = {
|
|
15807
15807
|
comment: /* @__PURE__ */ a(
|
|
15808
15808
|
B9,
|
|
15809
15809
|
{
|
|
@@ -15835,7 +15835,7 @@ const W5 = ({
|
|
|
15835
15835
|
style: {
|
|
15836
15836
|
...s ? s["Modulo 1x3 Client"] ? s["Modulo 1x3 Client"] : s["Modulo 1x3"] : {}
|
|
15837
15837
|
},
|
|
15838
|
-
children:
|
|
15838
|
+
children: A[e]
|
|
15839
15839
|
}
|
|
15840
15840
|
);
|
|
15841
15841
|
};
|
|
@@ -15896,9 +15896,9 @@ async function Y5({
|
|
|
15896
15896
|
text: s.trim()
|
|
15897
15897
|
};
|
|
15898
15898
|
o && (h.id = o);
|
|
15899
|
-
const
|
|
15899
|
+
const A = new URLSearchParams(h);
|
|
15900
15900
|
try {
|
|
15901
|
-
const { data: f } = await re.get(`${m}?${
|
|
15901
|
+
const { data: f } = await re.get(`${m}?${A.toString()}`, {
|
|
15902
15902
|
headers: {
|
|
15903
15903
|
"Content-Type": "application/json",
|
|
15904
15904
|
"x-security-token": u,
|
|
@@ -15917,23 +15917,23 @@ async function Y5({
|
|
|
15917
15917
|
});
|
|
15918
15918
|
} catch (f) {
|
|
15919
15919
|
if (console.error("Error enviando comentario:", f), re.isAxiosError(f)) {
|
|
15920
|
-
const
|
|
15921
|
-
return
|
|
15920
|
+
const p = f.response?.status ?? 500, w = f.response?.data;
|
|
15921
|
+
return p === 400 ? {
|
|
15922
15922
|
type: "error",
|
|
15923
15923
|
message: w?.message || "Solicitud inválida. Verifica que los campos sean correctos.",
|
|
15924
15924
|
status: 400
|
|
15925
|
-
} :
|
|
15925
|
+
} : p === 403 ? {
|
|
15926
15926
|
type: "error",
|
|
15927
15927
|
message: "Captcha inválido o acceso prohibido.",
|
|
15928
15928
|
status: 403
|
|
15929
|
-
} :
|
|
15929
|
+
} : p === 500 ? {
|
|
15930
15930
|
type: "error",
|
|
15931
15931
|
message: "Error interno del servidor del CMS.",
|
|
15932
15932
|
status: 500
|
|
15933
15933
|
} : {
|
|
15934
15934
|
type: "error",
|
|
15935
15935
|
message: w?.message || "No se pudo enviar el comentario.",
|
|
15936
|
-
status:
|
|
15936
|
+
status: p
|
|
15937
15937
|
};
|
|
15938
15938
|
}
|
|
15939
15939
|
return {
|