sass-template-common 0.10.16 → 0.10.17
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s, Fragment as $, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import * as Ds from "react";
|
|
3
|
-
import he, { useState as V, useRef as Ha, useCallback as ue, useEffect as Me, createElement as Ye, forwardRef as Va, Fragment as ts, useMemo as
|
|
3
|
+
import he, { useState as V, useRef as Ha, useCallback as ue, useEffect as Me, createElement as Ye, forwardRef as Va, Fragment as ts, useMemo as Ot, Component as oo } from "react";
|
|
4
4
|
let ns = {
|
|
5
5
|
PUBLIC_API_HOST: "",
|
|
6
6
|
PUBLIC_API_FRONT: "",
|
|
@@ -106,7 +106,7 @@ function za() {
|
|
|
106
106
|
(function(n, a) {
|
|
107
107
|
e.exports = a();
|
|
108
108
|
})(co, (function() {
|
|
109
|
-
var n = 1e3, a = 6e4, r = 36e5, o = "millisecond", i = "second", c = "minute", l = "hour", d = "day", u = "week",
|
|
109
|
+
var n = 1e3, a = 6e4, r = 36e5, o = "millisecond", i = "second", c = "minute", l = "hour", d = "day", u = "week", h = "month", m = "quarter", w = "year", f = "date", p = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|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, v = { 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(B) {
|
|
110
110
|
var L = ["th", "st", "nd", "rd"], U = B % 100;
|
|
111
111
|
return "[" + B + (L[(U - 20) % 10] || L[U] || L[0]) + "]";
|
|
112
112
|
} }, N = function(B, L, U) {
|
|
@@ -117,12 +117,12 @@ function za() {
|
|
|
117
117
|
return (L <= 0 ? "+" : "-") + N(j, 2, "0") + ":" + N(M, 2, "0");
|
|
118
118
|
}, m: function B(L, U) {
|
|
119
119
|
if (L.date() < U.date()) return -B(U, L);
|
|
120
|
-
var j = 12 * (U.year() - L.year()) + (U.month() - L.month()), M = L.clone().add(j,
|
|
120
|
+
var j = 12 * (U.year() - L.year()) + (U.month() - L.month()), M = L.clone().add(j, h), Y = U - M < 0, x = L.clone().add(j + (Y ? -1 : 1), h);
|
|
121
121
|
return +(-(j + (U - M) / (Y ? M - x : x - M)) || 0);
|
|
122
122
|
}, a: function(B) {
|
|
123
123
|
return B < 0 ? Math.ceil(B) || 0 : Math.floor(B);
|
|
124
124
|
}, p: function(B) {
|
|
125
|
-
return { M:
|
|
125
|
+
return { M: h, y: w, w: u, d, D: f, h: l, m: c, s: i, ms: o, Q: m }[B] || String(B || "").toLowerCase().replace(/s$/, "");
|
|
126
126
|
}, u: function(B) {
|
|
127
127
|
return B === void 0;
|
|
128
128
|
} }, y = "en", S = {};
|
|
@@ -200,13 +200,13 @@ function za() {
|
|
|
200
200
|
switch (x) {
|
|
201
201
|
case w:
|
|
202
202
|
return Y ? k(1, 0) : k(31, 11);
|
|
203
|
-
case
|
|
203
|
+
case h:
|
|
204
204
|
return Y ? k(1, G) : k(0, G + 1);
|
|
205
205
|
case u:
|
|
206
206
|
var J = this.$locale().weekStart || 0, ne = (H < J ? H + 7 : H) - J;
|
|
207
207
|
return k(Y ? W - ne : W + (6 - ne), G);
|
|
208
208
|
case d:
|
|
209
|
-
case
|
|
209
|
+
case f:
|
|
210
210
|
return q(K + "Hours", 0);
|
|
211
211
|
case l:
|
|
212
212
|
return q(K + "Minutes", 1);
|
|
@@ -220,10 +220,10 @@ function za() {
|
|
|
220
220
|
}, L.endOf = function(U) {
|
|
221
221
|
return this.startOf(U, !1);
|
|
222
222
|
}, L.$set = function(U, j) {
|
|
223
|
-
var M, Y = P.p(U), x = "set" + (this.$u ? "UTC" : ""), k = (M = {}, M[d] = x + "Date", M[
|
|
224
|
-
if (Y ===
|
|
225
|
-
var H = this.clone().set(
|
|
226
|
-
H.$d[k](q), H.init(), this.$d = H.set(
|
|
223
|
+
var M, Y = P.p(U), x = "set" + (this.$u ? "UTC" : ""), k = (M = {}, M[d] = x + "Date", M[f] = x + "Date", M[h] = x + "Month", M[w] = x + "FullYear", M[l] = x + "Hours", M[c] = x + "Minutes", M[i] = x + "Seconds", M[o] = x + "Milliseconds", M)[Y], q = Y === d ? this.$D + (j - this.$W) : j;
|
|
224
|
+
if (Y === h || Y === w) {
|
|
225
|
+
var H = this.clone().set(f, 1);
|
|
226
|
+
H.$d[k](q), H.init(), this.$d = H.set(f, Math.min(this.$D, H.daysInMonth())).$d;
|
|
227
227
|
} else k && this.$d[k](q);
|
|
228
228
|
return this.init(), this;
|
|
229
229
|
}, L.set = function(U, j) {
|
|
@@ -237,7 +237,7 @@ function za() {
|
|
|
237
237
|
var W = O(Y);
|
|
238
238
|
return P.w(W.date(W.date() + Math.round(G * U)), Y);
|
|
239
239
|
};
|
|
240
|
-
if (x ===
|
|
240
|
+
if (x === h) return this.set(h, this.$M + U);
|
|
241
241
|
if (x === w) return this.set(w, this.$y + U);
|
|
242
242
|
if (x === d) return k(1);
|
|
243
243
|
if (x === u) return k(7);
|
|
@@ -321,7 +321,7 @@ function za() {
|
|
|
321
321
|
case w:
|
|
322
322
|
Y = W() / 12;
|
|
323
323
|
break;
|
|
324
|
-
case
|
|
324
|
+
case h:
|
|
325
325
|
Y = W();
|
|
326
326
|
break;
|
|
327
327
|
case m:
|
|
@@ -347,7 +347,7 @@ function za() {
|
|
|
347
347
|
}
|
|
348
348
|
return M ? Y : P.a(Y);
|
|
349
349
|
}, L.daysInMonth = function() {
|
|
350
|
-
return this.endOf(
|
|
350
|
+
return this.endOf(h).$D;
|
|
351
351
|
}, L.$locale = function() {
|
|
352
352
|
return S[this.$L];
|
|
353
353
|
}, L.locale = function(U, j) {
|
|
@@ -366,7 +366,7 @@ function za() {
|
|
|
366
366
|
return this.$d.toUTCString();
|
|
367
367
|
}, B;
|
|
368
368
|
})(), Q = F.prototype;
|
|
369
|
-
return O.prototype = Q, [["$ms", o], ["$s", i], ["$m", c], ["$H", l], ["$W", d], ["$M",
|
|
369
|
+
return O.prototype = Q, [["$ms", o], ["$s", i], ["$m", c], ["$H", l], ["$W", d], ["$M", h], ["$y", w], ["$D", f]].forEach((function(B) {
|
|
370
370
|
Q[B[1]] = function(L) {
|
|
371
371
|
return this.$g(L, B[0], B[1]);
|
|
372
372
|
};
|
|
@@ -389,15 +389,15 @@ function mo() {
|
|
|
389
389
|
return function(n, a, r) {
|
|
390
390
|
n = n || {};
|
|
391
391
|
var o = a.prototype, i = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
392
|
-
function c(d, u,
|
|
393
|
-
return o.fromToBase(d, u,
|
|
392
|
+
function c(d, u, h, m) {
|
|
393
|
+
return o.fromToBase(d, u, h, m);
|
|
394
394
|
}
|
|
395
|
-
r.en.relativeTime = i, o.fromToBase = function(d, u,
|
|
396
|
-
for (var
|
|
395
|
+
r.en.relativeTime = i, o.fromToBase = function(d, u, h, m, w) {
|
|
396
|
+
for (var f, p, b, A = h.$locale().relativeTime || i, v = 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" }], N = v.length, C = 0; C < N; C += 1) {
|
|
397
397
|
var y = v[C];
|
|
398
|
-
y.d && (
|
|
399
|
-
var S = (n.rounding || Math.round)(Math.abs(
|
|
400
|
-
if (b =
|
|
398
|
+
y.d && (f = m ? r(d).diff(h, y.d, !0) : h.diff(d, y.d, !0));
|
|
399
|
+
var S = (n.rounding || Math.round)(Math.abs(f));
|
|
400
|
+
if (b = f > 0, S <= y.r || !y.r) {
|
|
401
401
|
S <= 1 && C > 0 && (y = v[C - 1]);
|
|
402
402
|
var T = A[y.l];
|
|
403
403
|
w && (S = w("" + S)), p = typeof T == "string" ? T.replace("%d", S) : T(S, u, y.l, b);
|
|
@@ -472,10 +472,10 @@ function bo() {
|
|
|
472
472
|
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();
|
|
473
473
|
} else u.call(this);
|
|
474
474
|
};
|
|
475
|
-
var
|
|
475
|
+
var h = l.utcOffset;
|
|
476
476
|
l.utcOffset = function(p, b) {
|
|
477
477
|
var A = this.$utils().u;
|
|
478
|
-
if (A(p)) return this.$u ? 0 : A(this.$offset) ?
|
|
478
|
+
if (A(p)) return this.$u ? 0 : A(this.$offset) ? h.call(this) : this.$offset;
|
|
479
479
|
if (typeof p == "string" && (p = (function(y) {
|
|
480
480
|
y === void 0 && (y = "");
|
|
481
481
|
var S = y.match(a);
|
|
@@ -508,11 +508,11 @@ function bo() {
|
|
|
508
508
|
l.toDate = function(p) {
|
|
509
509
|
return p === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : w.call(this);
|
|
510
510
|
};
|
|
511
|
-
var
|
|
511
|
+
var f = l.diff;
|
|
512
512
|
l.diff = function(p, b, A) {
|
|
513
|
-
if (p && this.$u === p.$u) return
|
|
513
|
+
if (p && this.$u === p.$u) return f.call(this, p, b, A);
|
|
514
514
|
var v = this.local(), N = c(p).local();
|
|
515
|
-
return
|
|
515
|
+
return f.call(v, N, b, A);
|
|
516
516
|
};
|
|
517
517
|
};
|
|
518
518
|
}));
|
|
@@ -528,17 +528,17 @@ function Co() {
|
|
|
528
528
|
})(vo, (function() {
|
|
529
529
|
var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, a = {};
|
|
530
530
|
return function(r, o, i) {
|
|
531
|
-
var c, l = function(m, w,
|
|
532
|
-
|
|
531
|
+
var c, l = function(m, w, f) {
|
|
532
|
+
f === void 0 && (f = {});
|
|
533
533
|
var p = new Date(m), b = (function(A, v) {
|
|
534
534
|
v === void 0 && (v = {});
|
|
535
535
|
var N = v.timeZoneName || "short", C = A + "|" + N, y = a[C];
|
|
536
536
|
return y || (y = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: A, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: N }), a[C] = y), y;
|
|
537
|
-
})(w,
|
|
537
|
+
})(w, f);
|
|
538
538
|
return b.formatToParts(p);
|
|
539
539
|
}, d = function(m, w) {
|
|
540
|
-
for (var
|
|
541
|
-
var A =
|
|
540
|
+
for (var f = l(m, w), p = [], b = 0; b < f.length; b += 1) {
|
|
541
|
+
var A = f[b], v = A.type, N = A.value, C = n[v];
|
|
542
542
|
C >= 0 && (p[C] = parseInt(N, 10));
|
|
543
543
|
}
|
|
544
544
|
var y = p[3], S = y === 24 ? 0 : y, T = p[0] + "-" + p[1] + "-" + p[2] + " " + S + ":" + p[4] + ":" + p[5] + ":000", R = +m;
|
|
@@ -546,26 +546,26 @@ function Co() {
|
|
|
546
546
|
}, u = o.prototype;
|
|
547
547
|
u.tz = function(m, w) {
|
|
548
548
|
m === void 0 && (m = c);
|
|
549
|
-
var
|
|
550
|
-
if (!Number(N))
|
|
551
|
-
else if (
|
|
552
|
-
var C =
|
|
553
|
-
|
|
549
|
+
var f, p = this.utcOffset(), b = this.toDate(), A = b.toLocaleString("en-US", { timeZone: m }), v = Math.round((b - new Date(A)) / 1e3 / 60), N = 15 * -Math.round(b.getTimezoneOffset() / 15) - v;
|
|
550
|
+
if (!Number(N)) f = this.utcOffset(0, w);
|
|
551
|
+
else if (f = i(A, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(N, !0), w) {
|
|
552
|
+
var C = f.utcOffset();
|
|
553
|
+
f = f.add(p - C, "minute");
|
|
554
554
|
}
|
|
555
|
-
return
|
|
555
|
+
return f.$x.$timezone = m, f;
|
|
556
556
|
}, u.offsetName = function(m) {
|
|
557
|
-
var w = this.$x.$timezone || i.tz.guess(),
|
|
557
|
+
var w = this.$x.$timezone || i.tz.guess(), f = l(this.valueOf(), w, { timeZoneName: m }).find((function(p) {
|
|
558
558
|
return p.type.toLowerCase() === "timezonename";
|
|
559
559
|
}));
|
|
560
|
-
return
|
|
560
|
+
return f && f.value;
|
|
561
561
|
};
|
|
562
|
-
var
|
|
562
|
+
var h = u.startOf;
|
|
563
563
|
u.startOf = function(m, w) {
|
|
564
|
-
if (!this.$x || !this.$x.$timezone) return
|
|
565
|
-
var
|
|
566
|
-
return
|
|
567
|
-
}, i.tz = function(m, w,
|
|
568
|
-
var p =
|
|
564
|
+
if (!this.$x || !this.$x.$timezone) return h.call(this, m, w);
|
|
565
|
+
var f = i(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
566
|
+
return h.call(f, m, w).tz(this.$x.$timezone, !0);
|
|
567
|
+
}, i.tz = function(m, w, f) {
|
|
568
|
+
var p = f && w, b = f || w || c, A = d(+i(), b);
|
|
569
569
|
if (typeof m != "string") return i(m).tz(b);
|
|
570
570
|
var v = (function(S, T, R) {
|
|
571
571
|
var z = S - 60 * T * 1e3, O = d(z, R);
|
|
@@ -617,8 +617,8 @@ const vn = (e) => e === "en" ? "en" : "es", ke = (e, t) => {
|
|
|
617
617
|
r.forEach((w) => {
|
|
618
618
|
w.type !== "literal" && (o[w.type] = w.value);
|
|
619
619
|
});
|
|
620
|
-
const i = new Date(n.toLocaleString("en-US", { timeZone: "UTC" })), l = (new Date(n.toLocaleString("en-US", { timeZone: t })).getTime() - i.getTime()) / 6e4, d = l >= 0 ? "+" : "-", u = (w) => String(Math.floor(Math.abs(w))).padStart(2, "0"),
|
|
621
|
-
return `${o.year}-${o.month}-${o.day}T${o.hour}:${o.minute}:${o.second}${d}${
|
|
620
|
+
const i = new Date(n.toLocaleString("en-US", { timeZone: "UTC" })), l = (new Date(n.toLocaleString("en-US", { timeZone: t })).getTime() - i.getTime()) / 6e4, d = l >= 0 ? "+" : "-", u = (w) => String(Math.floor(Math.abs(w))).padStart(2, "0"), h = u(l / 60), m = u(l % 60);
|
|
621
|
+
return `${o.year}-${o.month}-${o.day}T${o.hour}:${o.minute}:${o.second}${d}${h}:${m}`;
|
|
622
622
|
}, Fe = (e, t = 136) => e && e.length > t ? `${e.substring(0, t)}...` : e;
|
|
623
623
|
function mt(e) {
|
|
624
624
|
return e && e.status === "fulfilled" ? e.value.data : null;
|
|
@@ -636,7 +636,7 @@ const To = { url: "", target: "_self", canonical: "", internal: "" }, ko = {
|
|
|
636
636
|
function Io(e) {
|
|
637
637
|
return e == null ? "" : typeof e == "string" ? e : e.article ?? e.home ?? e.section ?? e.seo ?? "";
|
|
638
638
|
}
|
|
639
|
-
const
|
|
639
|
+
const Bt = (e, t, n, a) => {
|
|
640
640
|
const r = Io(e?.main?.title), o = e?.main?.description ?? "";
|
|
641
641
|
return {
|
|
642
642
|
authors: e?.main?.author ? [
|
|
@@ -736,7 +736,7 @@ function Lo(e) {
|
|
|
736
736
|
`ImageSizesContract inválido: faltan o tienen formato incorrecto los siguientes slots: ${t.join(", ")}. Formato esperado por slot: "w:{n},h:{n},t:{1|2}[,c:{hex}];" (uno o más, cada uno terminado en ';').`
|
|
737
737
|
);
|
|
738
738
|
}
|
|
739
|
-
const
|
|
739
|
+
const Qt = {
|
|
740
740
|
note: {
|
|
741
741
|
detailMain: "w:1200,h:675,t:2;",
|
|
742
742
|
detailSecondary: "w:412,h:231,t:2;",
|
|
@@ -777,7 +777,7 @@ const zt = {
|
|
|
777
777
|
"featuredHorizontalSecondary",
|
|
778
778
|
"featuredDiarioImageThumb"
|
|
779
779
|
]);
|
|
780
|
-
function
|
|
780
|
+
function $t(e, t, n, a, r) {
|
|
781
781
|
const o = {};
|
|
782
782
|
for (const i of Object.keys(t)) {
|
|
783
783
|
const c = n?.[i];
|
|
@@ -787,26 +787,26 @@ function Qt(e, t, n, a, r) {
|
|
|
787
787
|
}
|
|
788
788
|
function Nn(e) {
|
|
789
789
|
const t = [], n = {
|
|
790
|
-
note:
|
|
790
|
+
note: $t(
|
|
791
791
|
"note",
|
|
792
|
-
|
|
792
|
+
Qt.note,
|
|
793
793
|
e?.note,
|
|
794
794
|
t,
|
|
795
795
|
Ro
|
|
796
796
|
),
|
|
797
|
-
author:
|
|
797
|
+
author: $t(
|
|
798
798
|
"author",
|
|
799
|
-
|
|
799
|
+
Qt.author,
|
|
800
800
|
e?.author,
|
|
801
801
|
t
|
|
802
802
|
),
|
|
803
|
-
video:
|
|
803
|
+
video: $t(
|
|
804
804
|
"video",
|
|
805
|
-
|
|
805
|
+
Qt.video,
|
|
806
806
|
e?.video,
|
|
807
807
|
t
|
|
808
808
|
),
|
|
809
|
-
og:
|
|
809
|
+
og: $t("og", Qt.og, e?.og, t),
|
|
810
810
|
// Opcional sin default: se pasa tal cual si el app lo mandó; si no, queda
|
|
811
811
|
// ausente (undefined) → el consumidor que lo use sin configurarlo falla.
|
|
812
812
|
// NO se agrega a `legacyFieldsUsed` (no hay default que "usar").
|
|
@@ -849,14 +849,14 @@ function ss(e) {
|
|
|
849
849
|
const o = r.index + r[0].length;
|
|
850
850
|
let i = 1, c = o, l = o;
|
|
851
851
|
for (; c < t.length && i > 0; ) {
|
|
852
|
-
const w = t.slice(c),
|
|
852
|
+
const w = t.slice(c), f = w.match(/<div\b/i), p = w.match(/<\/div>/i), b = f?.index ?? -1, A = p?.index ?? -1;
|
|
853
853
|
if (A === -1) break;
|
|
854
854
|
const v = b === -1 ? 1 / 0 : c + b, N = c + A;
|
|
855
|
-
b !== -1 && b < A ? (i += 1, c = v +
|
|
855
|
+
b !== -1 && b < A ? (i += 1, c = v + f[0].length) : (i -= 1, l = N, c = N + p[0].length);
|
|
856
856
|
}
|
|
857
|
-
const d = t.slice(o, l), u = [],
|
|
857
|
+
const d = t.slice(o, l), u = [], h = /<span\b[^>]*\bdata-src=["']([^"']+)["']/gi;
|
|
858
858
|
let m;
|
|
859
|
-
for (; (m =
|
|
859
|
+
for (; (m = h.exec(d)) !== null; ) {
|
|
860
860
|
const w = m[1];
|
|
861
861
|
w && u.push(w);
|
|
862
862
|
}
|
|
@@ -897,7 +897,7 @@ function me(e = I()) {
|
|
|
897
897
|
} = e;
|
|
898
898
|
return a && a !== "" ? "/" + a : t && t !== "false" && n && n !== "false" ? "/" + t : "";
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function Lt(e, t, n = I()) {
|
|
901
901
|
if (!e) return e;
|
|
902
902
|
const a = Qa(n);
|
|
903
903
|
if (!a) return e;
|
|
@@ -954,14 +954,14 @@ const Mo = (e) => {
|
|
|
954
954
|
PUBLIC_ASSETS_URL: r,
|
|
955
955
|
PUBLIC_API_FRONT: o,
|
|
956
956
|
DATE_TIMEZONE: i = "America/Mexico_City"
|
|
957
|
-
} = I(), c = $a(t.keywords) ?? "", l = t?.preview?.sizes ? t?.preview?.sizes[0]?.url : "", d = (r !== "false" ? r : o) ?? "", u = Mo(a),
|
|
957
|
+
} = I(), c = $a(t.keywords) ?? "", l = t?.preview?.sizes ? t?.preview?.sizes[0]?.url : "", d = (r !== "false" ? r : o) ?? "", u = Mo(a), h = t.main.title.article, m = $s({
|
|
958
958
|
schemaImage: u,
|
|
959
959
|
socialImage: t?.social?.images?.facebook,
|
|
960
960
|
fallbackImage: l,
|
|
961
961
|
prefix: d,
|
|
962
962
|
defaultWidth: n.landscapeLogo.width,
|
|
963
963
|
defaultHeight: n.landscapeLogo.height,
|
|
964
|
-
alt: a?.description ??
|
|
964
|
+
alt: a?.description ?? h
|
|
965
965
|
}), w = $s({
|
|
966
966
|
schemaImage: u,
|
|
967
967
|
socialImage: t?.social?.images?.twitter,
|
|
@@ -969,16 +969,16 @@ const Mo = (e) => {
|
|
|
969
969
|
prefix: d,
|
|
970
970
|
defaultWidth: n.twitterSummaryCard.width,
|
|
971
971
|
defaultHeight: n.twitterSummaryCard.height,
|
|
972
|
-
alt: a?.description ??
|
|
973
|
-
}),
|
|
972
|
+
alt: a?.description ?? h
|
|
973
|
+
}), f = (() => {
|
|
974
974
|
try {
|
|
975
975
|
return new URL(n.siteUrl ?? "").origin;
|
|
976
976
|
} catch {
|
|
977
977
|
return n.siteUrl ?? "";
|
|
978
978
|
}
|
|
979
|
-
})(), p =
|
|
979
|
+
})(), p = Lt(
|
|
980
980
|
t?.info?.link?.canonical,
|
|
981
|
-
|
|
981
|
+
f
|
|
982
982
|
);
|
|
983
983
|
return {
|
|
984
984
|
title: (t?.main?.title?.seo ?? t?.main?.title?.article) + " | " + n.name,
|
|
@@ -1213,7 +1213,7 @@ const Mo = (e) => {
|
|
|
1213
1213
|
}, fe = async (e) => {
|
|
1214
1214
|
const t = nt() ?? "", n = e;
|
|
1215
1215
|
return n?.startsWith("http") || n?.includes(t) || t === "" ? n : t + n;
|
|
1216
|
-
},
|
|
1216
|
+
}, Dt = (e, t) => {
|
|
1217
1217
|
const n = e || "";
|
|
1218
1218
|
return t ? n.replaceAll("[section_replace]", t["[section_replace]"] ?? "").replaceAll("[tag_replace]", t["[tag_replace]"] ?? "").replaceAll("[tags_replace]", t["[tags_replace]"] ?? "").replaceAll("[url_replace]", t["[url_replace]"] ?? "").replaceAll("[author_replace]", t["[author_replace]"] ?? "").replaceAll("[creator_replace]", t["[creator_replace]"] ?? "") || "" : n || "";
|
|
1219
1219
|
}, Fo = /\[(?:general|seccion:[^\]]+|tema:\d+)\][\s\S]*?\[\/(?:general|seccion:[^\]]+|tema:\d+)\]/i, Ho = /\[(general|seccion:[^\]]+|tema:\d+)\]([\s\S]*?)\[\/\1\]/gi, Vo = (e) => !e || e.type === "general" ? "general" : e.type === "seccion" ? `seccion:${e.value}`.toLowerCase() : `tema:${e.value}`, gs = (e, t) => {
|
|
@@ -1261,8 +1261,8 @@ async function Qo({
|
|
|
1261
1261
|
}) {
|
|
1262
1262
|
const o = Math.ceil(a / r), i = (n - 1) * r + 1, c = Array.from(
|
|
1263
1263
|
{ length: r },
|
|
1264
|
-
(
|
|
1265
|
-
), l = await Promise.allSettled(c), d = l.map((
|
|
1264
|
+
(f, p) => e({ ...t, size: o, page: i + p }) ?? Promise.resolve(void 0)
|
|
1265
|
+
), l = await Promise.allSettled(c), d = l.map((f) => f.status === "fulfilled" && f.value?.data?.data ? f.value.data.data : []), u = d.flat(), m = (d[d.length - 1] ?? []).length === o, w = l[0]?.status === "fulfilled" ? l[0].value : void 0;
|
|
1266
1266
|
return { data: u, hasNextPage: m, firstBatchResponse: w };
|
|
1267
1267
|
}
|
|
1268
1268
|
const Ze = [], Xe = [], Ws = () => !!I().DEBUG_ENABLED, Ne = {
|
|
@@ -1326,9 +1326,10 @@ function Wo(e, t) {
|
|
|
1326
1326
|
);
|
|
1327
1327
|
});
|
|
1328
1328
|
}
|
|
1329
|
-
const
|
|
1329
|
+
const Nt = {
|
|
1330
1330
|
retries: 2,
|
|
1331
1331
|
timeoutMs: 2500,
|
|
1332
|
+
maxTimeoutMs: 1e4,
|
|
1332
1333
|
baseDelayMs: 100,
|
|
1333
1334
|
maxDelayMs: 2e4
|
|
1334
1335
|
};
|
|
@@ -1336,38 +1337,41 @@ function Yo(e, t, n) {
|
|
|
1336
1337
|
const a = Math.min(n, t * 2 ** e);
|
|
1337
1338
|
return Math.floor(Math.random() * a);
|
|
1338
1339
|
}
|
|
1339
|
-
async function
|
|
1340
|
+
async function Rt(e, t, {
|
|
1340
1341
|
label: n,
|
|
1341
1342
|
endpoint: a,
|
|
1342
1343
|
params: r,
|
|
1343
|
-
retries: o =
|
|
1344
|
-
timeoutMs: i =
|
|
1345
|
-
|
|
1346
|
-
|
|
1344
|
+
retries: o = Nt.retries,
|
|
1345
|
+
timeoutMs: i = Nt.timeoutMs,
|
|
1346
|
+
maxTimeoutMs: c = Nt.maxTimeoutMs,
|
|
1347
|
+
baseDelayMs: l = Nt.baseDelayMs,
|
|
1348
|
+
maxDelayMs: d = Nt.maxDelayMs
|
|
1347
1349
|
}) {
|
|
1348
|
-
let
|
|
1349
|
-
for (let
|
|
1350
|
+
let u;
|
|
1351
|
+
for (let h = 0; h <= o; h++) {
|
|
1352
|
+
const m = Math.min(c, i * 2 ** h);
|
|
1350
1353
|
try {
|
|
1351
|
-
return await Wo(Promise.resolve(e()),
|
|
1352
|
-
} catch (
|
|
1353
|
-
if (
|
|
1354
|
-
`[${n}] intento ${
|
|
1355
|
-
), $o(
|
|
1354
|
+
return await Wo(Promise.resolve(e()), m);
|
|
1355
|
+
} catch (w) {
|
|
1356
|
+
if (u = w, console.log(
|
|
1357
|
+
`[${n}] intento ${h + 1}/${o + 1} fallido: ${Ys(w)}`
|
|
1358
|
+
), $o(w)) {
|
|
1356
1359
|
console.log(`[${n}] error de cliente no reintentable, se salta al fallback`);
|
|
1357
1360
|
break;
|
|
1358
1361
|
}
|
|
1359
|
-
if (
|
|
1360
|
-
const
|
|
1361
|
-
await new Promise((
|
|
1362
|
+
if (h < o) {
|
|
1363
|
+
const f = Yo(h, l, d);
|
|
1364
|
+
await new Promise((p) => setTimeout(p, f));
|
|
1362
1365
|
}
|
|
1363
1366
|
}
|
|
1367
|
+
}
|
|
1364
1368
|
return Ne.add({
|
|
1365
1369
|
service: n,
|
|
1366
1370
|
endpoint: a ?? n,
|
|
1367
1371
|
method: "GET",
|
|
1368
1372
|
params: r,
|
|
1369
|
-
message: Ys(
|
|
1370
|
-
status:
|
|
1373
|
+
message: Ys(u),
|
|
1374
|
+
status: u?.response?.status,
|
|
1371
1375
|
layer: "axios-service"
|
|
1372
1376
|
}), t;
|
|
1373
1377
|
}
|
|
@@ -1427,7 +1431,7 @@ const Jo = (e) => {
|
|
|
1427
1431
|
(r) => r.key === e.name
|
|
1428
1432
|
);
|
|
1429
1433
|
if (!t || !t.show) return null;
|
|
1430
|
-
const n =
|
|
1434
|
+
const n = Dt(
|
|
1431
1435
|
t.value || "",
|
|
1432
1436
|
e.replaces
|
|
1433
1437
|
), a = Xo(n);
|
|
@@ -1440,7 +1444,7 @@ const Jo = (e) => {
|
|
|
1440
1444
|
(r) => r.key === e.name
|
|
1441
1445
|
);
|
|
1442
1446
|
if (!t || !t.show) return null;
|
|
1443
|
-
const a =
|
|
1447
|
+
const a = Dt(
|
|
1444
1448
|
t.value || "",
|
|
1445
1449
|
e.replaces
|
|
1446
1450
|
).split(
|
|
@@ -1641,8 +1645,8 @@ const Ke = (e, t) => {
|
|
|
1641
1645
|
"La acción en reCAPTCHA no coincide con la esperada:",
|
|
1642
1646
|
a
|
|
1643
1647
|
), null;
|
|
1644
|
-
const
|
|
1645
|
-
return
|
|
1648
|
+
const h = u?.riskAnalysis?.score;
|
|
1649
|
+
return h !== void 0 && (console.log("reCAPTCHA score:", h), u?.riskAnalysis?.reasons?.forEach((m) => console.log(m))), typeof h == "number" ? h : null;
|
|
1646
1650
|
} catch (d) {
|
|
1647
1651
|
return console.error("createAssessment error:", d), null;
|
|
1648
1652
|
}
|
|
@@ -1724,7 +1728,7 @@ const { toString: ai } = Object.prototype, { getPrototypeOf: ws } = Object, { it
|
|
|
1724
1728
|
const n = ai.call(t);
|
|
1725
1729
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
1726
1730
|
})(/* @__PURE__ */ Object.create(null)), Le = (e) => (e = e.toLowerCase(), (t) => Sn(t) === e), En = (e) => (t) => typeof t === e, { isArray: yt } = Array, gt = En("undefined");
|
|
1727
|
-
function
|
|
1731
|
+
function jt(e) {
|
|
1728
1732
|
return e !== null && !gt(e) && e.constructor !== null && !gt(e.constructor) && xe(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1729
1733
|
}
|
|
1730
1734
|
const tr = Le("ArrayBuffer");
|
|
@@ -1732,25 +1736,25 @@ function ri(e) {
|
|
|
1732
1736
|
let t;
|
|
1733
1737
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && tr(e.buffer), t;
|
|
1734
1738
|
}
|
|
1735
|
-
const oi = En("string"), xe = En("function"), nr = En("number"),
|
|
1739
|
+
const oi = En("string"), xe = En("function"), nr = En("number"), Gt = (e) => e !== null && typeof e == "object", ii = (e) => e === !0 || e === !1, dn = (e) => {
|
|
1736
1740
|
if (Sn(e) !== "object")
|
|
1737
1741
|
return !1;
|
|
1738
1742
|
const t = ws(e);
|
|
1739
1743
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(er in e) && !(xn in e);
|
|
1740
1744
|
}, ci = (e) => {
|
|
1741
|
-
if (!
|
|
1745
|
+
if (!Gt(e) || jt(e))
|
|
1742
1746
|
return !1;
|
|
1743
1747
|
try {
|
|
1744
1748
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
1745
1749
|
} catch {
|
|
1746
1750
|
return !1;
|
|
1747
1751
|
}
|
|
1748
|
-
}, li = Le("Date"), di = Le("File"), ui = Le("Blob"), mi = Le("FileList"), hi = (e) =>
|
|
1752
|
+
}, li = Le("Date"), di = Le("File"), ui = Le("Blob"), mi = Le("FileList"), hi = (e) => Gt(e) && xe(e.pipe), fi = (e) => {
|
|
1749
1753
|
let t;
|
|
1750
1754
|
return e && (typeof FormData == "function" && e instanceof FormData || xe(e.append) && ((t = Sn(e)) === "formdata" || // detect form-data instance
|
|
1751
1755
|
t === "object" && xe(e.toString) && e.toString() === "[object FormData]"));
|
|
1752
1756
|
}, pi = Le("URLSearchParams"), [gi, wi, bi, Ai] = ["ReadableStream", "Request", "Response", "Headers"].map(Le), yi = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1753
|
-
function
|
|
1757
|
+
function Ft(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
1754
1758
|
if (e === null || typeof e > "u")
|
|
1755
1759
|
return;
|
|
1756
1760
|
let a, r;
|
|
@@ -1758,7 +1762,7 @@ function Gt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
1758
1762
|
for (a = 0, r = e.length; a < r; a++)
|
|
1759
1763
|
t.call(null, e[a], a, e);
|
|
1760
1764
|
else {
|
|
1761
|
-
if (
|
|
1765
|
+
if (jt(e))
|
|
1762
1766
|
return;
|
|
1763
1767
|
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
1764
1768
|
let c;
|
|
@@ -1767,7 +1771,7 @@ function Gt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
1767
1771
|
}
|
|
1768
1772
|
}
|
|
1769
1773
|
function sr(e, t) {
|
|
1770
|
-
if (
|
|
1774
|
+
if (jt(e))
|
|
1771
1775
|
return null;
|
|
1772
1776
|
t = t.toLowerCase();
|
|
1773
1777
|
const n = Object.keys(e);
|
|
@@ -1784,10 +1788,10 @@ function as() {
|
|
|
1784
1788
|
dn(n[i]) && dn(r) ? n[i] = as(n[i], r) : dn(r) ? n[i] = as({}, r) : yt(r) ? n[i] = r.slice() : (!t || !gt(r)) && (n[i] = r);
|
|
1785
1789
|
};
|
|
1786
1790
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
1787
|
-
arguments[r] &&
|
|
1791
|
+
arguments[r] && Ft(arguments[r], a);
|
|
1788
1792
|
return n;
|
|
1789
1793
|
}
|
|
1790
|
-
const vi = (e, t, n, { allOwnKeys: a } = {}) => (
|
|
1794
|
+
const vi = (e, t, n, { allOwnKeys: a } = {}) => (Ft(t, (r, o) => {
|
|
1791
1795
|
n && xe(r) ? e[o] = Xa(r, n) : e[o] = r;
|
|
1792
1796
|
}, { allOwnKeys: a }), e), Ci = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ni = (e, t, n, a) => {
|
|
1793
1797
|
e.prototype = Object.create(t.prototype, a), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
@@ -1836,7 +1840,7 @@ const vi = (e, t, n, { allOwnKeys: a } = {}) => (Gt(t, (r, o) => {
|
|
|
1836
1840
|
}
|
|
1837
1841
|
), Js = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ri = Le("RegExp"), rr = (e, t) => {
|
|
1838
1842
|
const n = Object.getOwnPropertyDescriptors(e), a = {};
|
|
1839
|
-
|
|
1843
|
+
Ft(n, (r, o) => {
|
|
1840
1844
|
let i;
|
|
1841
1845
|
(i = t(r, o, e)) !== !1 && (a[o] = i || r);
|
|
1842
1846
|
}), Object.defineProperties(e, a);
|
|
@@ -1869,15 +1873,15 @@ function _i(e) {
|
|
|
1869
1873
|
}
|
|
1870
1874
|
const qi = (e) => {
|
|
1871
1875
|
const t = new Array(10), n = (a, r) => {
|
|
1872
|
-
if (
|
|
1876
|
+
if (Gt(a)) {
|
|
1873
1877
|
if (t.indexOf(a) >= 0)
|
|
1874
1878
|
return;
|
|
1875
|
-
if (
|
|
1879
|
+
if (jt(a))
|
|
1876
1880
|
return a;
|
|
1877
1881
|
if (!("toJSON" in a)) {
|
|
1878
1882
|
t[r] = a;
|
|
1879
1883
|
const o = yt(a) ? [] : {};
|
|
1880
|
-
return
|
|
1884
|
+
return Ft(a, (i, c) => {
|
|
1881
1885
|
const l = n(i, r + 1);
|
|
1882
1886
|
!gt(l) && (o[c] = l);
|
|
1883
1887
|
}), t[r] = void 0, o;
|
|
@@ -1886,7 +1890,7 @@ const qi = (e) => {
|
|
|
1886
1890
|
return a;
|
|
1887
1891
|
};
|
|
1888
1892
|
return n(e, 0);
|
|
1889
|
-
}, Di = Le("AsyncFunction"), ji = (e) => e && (
|
|
1893
|
+
}, Di = Le("AsyncFunction"), ji = (e) => e && (Gt(e) || xe(e)) && xe(e.then) && xe(e.catch), or = ((e, t) => e ? setImmediate : t ? ((n, a) => (tt.addEventListener("message", ({ source: r, data: o }) => {
|
|
1890
1894
|
r === tt && o === n && a.length && a.shift()();
|
|
1891
1895
|
}, !1), (r) => {
|
|
1892
1896
|
a.push(r), tt.postMessage(n, "*");
|
|
@@ -1896,13 +1900,13 @@ const qi = (e) => {
|
|
|
1896
1900
|
), Gi = typeof queueMicrotask < "u" ? queueMicrotask.bind(tt) : typeof process < "u" && process.nextTick || or, Fi = (e) => e != null && xe(e[xn]), E = {
|
|
1897
1901
|
isArray: yt,
|
|
1898
1902
|
isArrayBuffer: tr,
|
|
1899
|
-
isBuffer:
|
|
1903
|
+
isBuffer: jt,
|
|
1900
1904
|
isFormData: fi,
|
|
1901
1905
|
isArrayBufferView: ri,
|
|
1902
1906
|
isString: oi,
|
|
1903
1907
|
isNumber: nr,
|
|
1904
1908
|
isBoolean: ii,
|
|
1905
|
-
isObject:
|
|
1909
|
+
isObject: Gt,
|
|
1906
1910
|
isPlainObject: dn,
|
|
1907
1911
|
isEmptyObject: ci,
|
|
1908
1912
|
isReadableStream: gi,
|
|
@@ -1919,7 +1923,7 @@ const qi = (e) => {
|
|
|
1919
1923
|
isURLSearchParams: pi,
|
|
1920
1924
|
isTypedArray: Ti,
|
|
1921
1925
|
isFileList: mi,
|
|
1922
|
-
forEach:
|
|
1926
|
+
forEach: Ft,
|
|
1923
1927
|
merge: as,
|
|
1924
1928
|
extend: vi,
|
|
1925
1929
|
trim: yi,
|
|
@@ -2036,22 +2040,22 @@ function Tn(e, t, n) {
|
|
|
2036
2040
|
const a = n.metaTokens, r = n.visitor || u, o = n.dots, i = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && E.isSpecCompliantForm(t);
|
|
2037
2041
|
if (!E.isFunction(r))
|
|
2038
2042
|
throw new TypeError("visitor must be a function");
|
|
2039
|
-
function d(
|
|
2040
|
-
if (
|
|
2041
|
-
if (E.isDate(
|
|
2042
|
-
return
|
|
2043
|
-
if (E.isBoolean(
|
|
2044
|
-
return
|
|
2045
|
-
if (!l && E.isBlob(
|
|
2043
|
+
function d(f) {
|
|
2044
|
+
if (f === null) return "";
|
|
2045
|
+
if (E.isDate(f))
|
|
2046
|
+
return f.toISOString();
|
|
2047
|
+
if (E.isBoolean(f))
|
|
2048
|
+
return f.toString();
|
|
2049
|
+
if (!l && E.isBlob(f))
|
|
2046
2050
|
throw new te("Blob is not supported. Use a Buffer instead.");
|
|
2047
|
-
return E.isArrayBuffer(
|
|
2051
|
+
return E.isArrayBuffer(f) || E.isTypedArray(f) ? l && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
2048
2052
|
}
|
|
2049
|
-
function u(
|
|
2050
|
-
let A =
|
|
2051
|
-
if (
|
|
2053
|
+
function u(f, p, b) {
|
|
2054
|
+
let A = f;
|
|
2055
|
+
if (f && !b && typeof f == "object") {
|
|
2052
2056
|
if (E.endsWith(p, "{}"))
|
|
2053
|
-
p = a ? p : p.slice(0, -2),
|
|
2054
|
-
else if (E.isArray(
|
|
2057
|
+
p = a ? p : p.slice(0, -2), f = JSON.stringify(f);
|
|
2058
|
+
else if (E.isArray(f) && Vi(f) || (E.isFileList(f) || E.endsWith(p, "[]")) && (A = E.toArray(f)))
|
|
2055
2059
|
return p = lr(p), A.forEach(function(N, C) {
|
|
2056
2060
|
!(E.isUndefined(N) || N === null) && t.append(
|
|
2057
2061
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -2060,18 +2064,18 @@ function Tn(e, t, n) {
|
|
|
2060
2064
|
);
|
|
2061
2065
|
}), !1;
|
|
2062
2066
|
}
|
|
2063
|
-
return rs(
|
|
2067
|
+
return rs(f) ? !0 : (t.append(Zs(b, p, o), d(f)), !1);
|
|
2064
2068
|
}
|
|
2065
|
-
const
|
|
2069
|
+
const h = [], m = Object.assign(zi, {
|
|
2066
2070
|
defaultVisitor: u,
|
|
2067
2071
|
convertValue: d,
|
|
2068
2072
|
isVisitable: rs
|
|
2069
2073
|
});
|
|
2070
|
-
function w(
|
|
2071
|
-
if (!E.isUndefined(
|
|
2072
|
-
if (
|
|
2074
|
+
function w(f, p) {
|
|
2075
|
+
if (!E.isUndefined(f)) {
|
|
2076
|
+
if (h.indexOf(f) !== -1)
|
|
2073
2077
|
throw Error("Circular reference detected in " + p.join("."));
|
|
2074
|
-
|
|
2078
|
+
h.push(f), E.forEach(f, function(A, v) {
|
|
2075
2079
|
(!(E.isUndefined(A) || A === null) && r.call(
|
|
2076
2080
|
t,
|
|
2077
2081
|
A,
|
|
@@ -2079,7 +2083,7 @@ function Tn(e, t, n) {
|
|
|
2079
2083
|
p,
|
|
2080
2084
|
m
|
|
2081
2085
|
)) === !0 && w(A, p ? p.concat(v) : [v]);
|
|
2082
|
-
}),
|
|
2086
|
+
}), h.pop();
|
|
2083
2087
|
}
|
|
2084
2088
|
}
|
|
2085
2089
|
if (!E.isObject(e))
|
|
@@ -2256,7 +2260,7 @@ function ac(e, t, n) {
|
|
|
2256
2260
|
}
|
|
2257
2261
|
return (n || JSON.stringify)(e);
|
|
2258
2262
|
}
|
|
2259
|
-
const
|
|
2263
|
+
const Ht = {
|
|
2260
2264
|
transitional: mr,
|
|
2261
2265
|
adapter: ["xhr", "http", "fetch"],
|
|
2262
2266
|
transformRequest: [function(t, n) {
|
|
@@ -2285,7 +2289,7 @@ const Ft = {
|
|
|
2285
2289
|
return o || r ? (n.setContentType("application/json", !1), ac(t)) : t;
|
|
2286
2290
|
}],
|
|
2287
2291
|
transformResponse: [function(t) {
|
|
2288
|
-
const n = this.transitional ||
|
|
2292
|
+
const n = this.transitional || Ht.transitional, a = n && n.forcedJSONParsing, r = this.responseType === "json";
|
|
2289
2293
|
if (E.isResponse(t) || E.isReadableStream(t))
|
|
2290
2294
|
return t;
|
|
2291
2295
|
if (t && E.isString(t) && (a && !this.responseType || r)) {
|
|
@@ -2323,7 +2327,7 @@ const Ft = {
|
|
|
2323
2327
|
}
|
|
2324
2328
|
};
|
|
2325
2329
|
E.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
2326
|
-
|
|
2330
|
+
Ht.headers[e] = {};
|
|
2327
2331
|
});
|
|
2328
2332
|
const rc = E.toObjectSet([
|
|
2329
2333
|
"age",
|
|
@@ -2351,7 +2355,7 @@ const rc = E.toObjectSet([
|
|
|
2351
2355
|
r = i.indexOf(":"), n = i.substring(0, r).trim().toLowerCase(), a = i.substring(r + 1).trim(), !(!n || t[n] && rc[n]) && (n === "set-cookie" ? t[n] ? t[n].push(a) : t[n] = [a] : t[n] = t[n] ? t[n] + ", " + a : a);
|
|
2352
2356
|
}), t;
|
|
2353
2357
|
}, ta = Symbol("internals");
|
|
2354
|
-
function
|
|
2358
|
+
function xt(e) {
|
|
2355
2359
|
return e && String(e).trim().toLowerCase();
|
|
2356
2360
|
}
|
|
2357
2361
|
function un(e) {
|
|
@@ -2396,11 +2400,11 @@ let Se = class {
|
|
|
2396
2400
|
set(t, n, a) {
|
|
2397
2401
|
const r = this;
|
|
2398
2402
|
function o(c, l, d) {
|
|
2399
|
-
const u =
|
|
2403
|
+
const u = xt(l);
|
|
2400
2404
|
if (!u)
|
|
2401
2405
|
throw new Error("header name must be a non-empty string");
|
|
2402
|
-
const
|
|
2403
|
-
(!
|
|
2406
|
+
const h = E.findKey(r, u);
|
|
2407
|
+
(!h || r[h] === void 0 || d === !0 || d === void 0 && r[h] !== !1) && (r[h || l] = un(c));
|
|
2404
2408
|
}
|
|
2405
2409
|
const i = (c, l) => E.forEach(c, (d, u) => o(d, u, l));
|
|
2406
2410
|
if (E.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -2420,7 +2424,7 @@ let Se = class {
|
|
|
2420
2424
|
return this;
|
|
2421
2425
|
}
|
|
2422
2426
|
get(t, n) {
|
|
2423
|
-
if (t =
|
|
2427
|
+
if (t = xt(t), t) {
|
|
2424
2428
|
const a = E.findKey(this, t);
|
|
2425
2429
|
if (a) {
|
|
2426
2430
|
const r = this[a];
|
|
@@ -2437,7 +2441,7 @@ let Se = class {
|
|
|
2437
2441
|
}
|
|
2438
2442
|
}
|
|
2439
2443
|
has(t, n) {
|
|
2440
|
-
if (t =
|
|
2444
|
+
if (t = xt(t), t) {
|
|
2441
2445
|
const a = E.findKey(this, t);
|
|
2442
2446
|
return !!(a && this[a] !== void 0 && (!n || Gn(this, this[a], a, n)));
|
|
2443
2447
|
}
|
|
@@ -2447,7 +2451,7 @@ let Se = class {
|
|
|
2447
2451
|
const a = this;
|
|
2448
2452
|
let r = !1;
|
|
2449
2453
|
function o(i) {
|
|
2450
|
-
if (i =
|
|
2454
|
+
if (i = xt(i), i) {
|
|
2451
2455
|
const c = E.findKey(a, i);
|
|
2452
2456
|
c && (!n || Gn(a, a[c], c, n)) && (delete a[c], r = !0);
|
|
2453
2457
|
}
|
|
@@ -2509,7 +2513,7 @@ let Se = class {
|
|
|
2509
2513
|
accessors: {}
|
|
2510
2514
|
}).accessors, r = this.prototype;
|
|
2511
2515
|
function o(i) {
|
|
2512
|
-
const c =
|
|
2516
|
+
const c = xt(i);
|
|
2513
2517
|
a[c] || (dc(r, i), a[c] = !0);
|
|
2514
2518
|
}
|
|
2515
2519
|
return E.isArray(t) ? t.forEach(o) : o(t), this;
|
|
@@ -2527,7 +2531,7 @@ E.reduceDescriptors(Se.prototype, ({ value: e }, t) => {
|
|
|
2527
2531
|
});
|
|
2528
2532
|
E.freezeMethods(Se);
|
|
2529
2533
|
function Fn(e, t) {
|
|
2530
|
-
const n = this ||
|
|
2534
|
+
const n = this || Ht, a = t || n, r = Se.from(a.headers);
|
|
2531
2535
|
let o = a.data;
|
|
2532
2536
|
return E.forEach(e, function(c) {
|
|
2533
2537
|
o = c.call(n, o, r.normalize(), t ? t.status : void 0);
|
|
@@ -2563,9 +2567,9 @@ function mc(e, t) {
|
|
|
2563
2567
|
return t = t !== void 0 ? t : 1e3, function(l) {
|
|
2564
2568
|
const d = Date.now(), u = a[o];
|
|
2565
2569
|
i || (i = d), n[r] = l, a[r] = d;
|
|
2566
|
-
let
|
|
2567
|
-
for (;
|
|
2568
|
-
m += n[
|
|
2570
|
+
let h = o, m = 0;
|
|
2571
|
+
for (; h !== r; )
|
|
2572
|
+
m += n[h++], h = h % e;
|
|
2569
2573
|
if (r = (r + 1) % e, r === o && (o = (o + 1) % e), d - i < t)
|
|
2570
2574
|
return;
|
|
2571
2575
|
const w = u && d - u;
|
|
@@ -2578,10 +2582,10 @@ function hc(e, t) {
|
|
|
2578
2582
|
n = u, r = null, o && (clearTimeout(o), o = null), e(...d);
|
|
2579
2583
|
};
|
|
2580
2584
|
return [(...d) => {
|
|
2581
|
-
const u = Date.now(),
|
|
2582
|
-
|
|
2585
|
+
const u = Date.now(), h = u - n;
|
|
2586
|
+
h >= a ? i(d, u) : (r = d, o || (o = setTimeout(() => {
|
|
2583
2587
|
o = null, i(r);
|
|
2584
|
-
}, a -
|
|
2588
|
+
}, a - h)));
|
|
2585
2589
|
}, () => r && i(r)];
|
|
2586
2590
|
}
|
|
2587
2591
|
const fn = (e, t, n = 3) => {
|
|
@@ -2590,7 +2594,7 @@ const fn = (e, t, n = 3) => {
|
|
|
2590
2594
|
return hc((o) => {
|
|
2591
2595
|
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, l = i - a, d = r(l), u = i <= c;
|
|
2592
2596
|
a = i;
|
|
2593
|
-
const
|
|
2597
|
+
const h = {
|
|
2594
2598
|
loaded: i,
|
|
2595
2599
|
total: c,
|
|
2596
2600
|
progress: c ? i / c : void 0,
|
|
@@ -2601,7 +2605,7 @@ const fn = (e, t, n = 3) => {
|
|
|
2601
2605
|
lengthComputable: c != null,
|
|
2602
2606
|
[t ? "download" : "upload"]: !0
|
|
2603
2607
|
};
|
|
2604
|
-
e(
|
|
2608
|
+
e(h);
|
|
2605
2609
|
}, n);
|
|
2606
2610
|
}, na = (e, t) => {
|
|
2607
2611
|
const n = e != null;
|
|
@@ -2656,14 +2660,14 @@ const aa = (e) => e instanceof Se ? { ...e } : e;
|
|
|
2656
2660
|
function ot(e, t) {
|
|
2657
2661
|
t = t || {};
|
|
2658
2662
|
const n = {};
|
|
2659
|
-
function a(d, u,
|
|
2663
|
+
function a(d, u, h, m) {
|
|
2660
2664
|
return E.isPlainObject(d) && E.isPlainObject(u) ? E.merge.call({ caseless: m }, d, u) : E.isPlainObject(u) ? E.merge({}, u) : E.isArray(u) ? u.slice() : u;
|
|
2661
2665
|
}
|
|
2662
|
-
function r(d, u,
|
|
2666
|
+
function r(d, u, h, m) {
|
|
2663
2667
|
if (E.isUndefined(u)) {
|
|
2664
2668
|
if (!E.isUndefined(d))
|
|
2665
|
-
return a(void 0, d,
|
|
2666
|
-
} else return a(d, u,
|
|
2669
|
+
return a(void 0, d, h, m);
|
|
2670
|
+
} else return a(d, u, h, m);
|
|
2667
2671
|
}
|
|
2668
2672
|
function o(d, u) {
|
|
2669
2673
|
if (!E.isUndefined(u))
|
|
@@ -2675,10 +2679,10 @@ function ot(e, t) {
|
|
|
2675
2679
|
return a(void 0, d);
|
|
2676
2680
|
} else return a(void 0, u);
|
|
2677
2681
|
}
|
|
2678
|
-
function c(d, u,
|
|
2679
|
-
if (
|
|
2682
|
+
function c(d, u, h) {
|
|
2683
|
+
if (h in t)
|
|
2680
2684
|
return a(d, u);
|
|
2681
|
-
if (
|
|
2685
|
+
if (h in e)
|
|
2682
2686
|
return a(void 0, d);
|
|
2683
2687
|
}
|
|
2684
2688
|
const l = {
|
|
@@ -2710,11 +2714,11 @@ function ot(e, t) {
|
|
|
2710
2714
|
socketPath: i,
|
|
2711
2715
|
responseEncoding: i,
|
|
2712
2716
|
validateStatus: c,
|
|
2713
|
-
headers: (d, u,
|
|
2717
|
+
headers: (d, u, h) => r(aa(d), aa(u), h, !0)
|
|
2714
2718
|
};
|
|
2715
2719
|
return E.forEach(Object.keys({ ...e, ...t }), function(u) {
|
|
2716
|
-
const
|
|
2717
|
-
E.isUndefined(m) &&
|
|
2720
|
+
const h = l[u] || r, m = h(e[u], t[u], u);
|
|
2721
|
+
E.isUndefined(m) && h !== c || (n[u] = m);
|
|
2718
2722
|
}), n;
|
|
2719
2723
|
}
|
|
2720
2724
|
const wr = (e) => {
|
|
@@ -2728,8 +2732,8 @@ const wr = (e) => {
|
|
|
2728
2732
|
i.setContentType(void 0);
|
|
2729
2733
|
else if (E.isFunction(n.getHeaders)) {
|
|
2730
2734
|
const l = n.getHeaders(), d = ["content-type", "content-length"];
|
|
2731
|
-
Object.entries(l).forEach(([u,
|
|
2732
|
-
d.includes(u.toLowerCase()) && i.set(u,
|
|
2735
|
+
Object.entries(l).forEach(([u, h]) => {
|
|
2736
|
+
d.includes(u.toLowerCase()) && i.set(u, h);
|
|
2733
2737
|
});
|
|
2734
2738
|
}
|
|
2735
2739
|
}
|
|
@@ -2743,9 +2747,9 @@ const wr = (e) => {
|
|
|
2743
2747
|
const r = wr(e);
|
|
2744
2748
|
let o = r.data;
|
|
2745
2749
|
const i = Se.from(r.headers).normalize();
|
|
2746
|
-
let { responseType: c, onUploadProgress: l, onDownloadProgress: d } = r, u,
|
|
2750
|
+
let { responseType: c, onUploadProgress: l, onDownloadProgress: d } = r, u, h, m, w, f;
|
|
2747
2751
|
function p() {
|
|
2748
|
-
w && w(),
|
|
2752
|
+
w && w(), f && f(), r.cancelToken && r.cancelToken.unsubscribe(u), r.signal && r.signal.removeEventListener("abort", u);
|
|
2749
2753
|
}
|
|
2750
2754
|
let b = new XMLHttpRequest();
|
|
2751
2755
|
b.open(r.method.toUpperCase(), r.url, !0), b.timeout = r.timeout;
|
|
@@ -2786,7 +2790,7 @@ const wr = (e) => {
|
|
|
2786
2790
|
)), b = null;
|
|
2787
2791
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in b && E.forEach(i.toJSON(), function(C, y) {
|
|
2788
2792
|
b.setRequestHeader(y, C);
|
|
2789
|
-
}), E.isUndefined(r.withCredentials) || (b.withCredentials = !!r.withCredentials), c && c !== "json" && (b.responseType = r.responseType), d && ([m,
|
|
2793
|
+
}), E.isUndefined(r.withCredentials) || (b.withCredentials = !!r.withCredentials), c && c !== "json" && (b.responseType = r.responseType), d && ([m, f] = fn(d, !0), b.addEventListener("progress", m)), l && b.upload && ([h, w] = fn(l), b.upload.addEventListener("progress", h), b.upload.addEventListener("loadend", w)), (r.cancelToken || r.signal) && (u = (N) => {
|
|
2790
2794
|
b && (a(!N || N.type ? new vt(null, e, b) : N), b.abort(), b = null);
|
|
2791
2795
|
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
2792
2796
|
const v = uc(r.url);
|
|
@@ -2860,9 +2864,9 @@ const wr = (e) => {
|
|
|
2860
2864
|
c(), l.close();
|
|
2861
2865
|
return;
|
|
2862
2866
|
}
|
|
2863
|
-
let
|
|
2867
|
+
let h = u.byteLength;
|
|
2864
2868
|
if (n) {
|
|
2865
|
-
let m = o +=
|
|
2869
|
+
let m = o += h;
|
|
2866
2870
|
n(m);
|
|
2867
2871
|
}
|
|
2868
2872
|
l.enqueue(new Uint8Array(u));
|
|
@@ -2895,46 +2899,46 @@ const wr = (e) => {
|
|
|
2895
2899
|
const { fetch: t, Request: n, Response: a } = e, r = t ? Wt(t) : typeof fetch == "function", o = Wt(n), i = Wt(a);
|
|
2896
2900
|
if (!r)
|
|
2897
2901
|
return !1;
|
|
2898
|
-
const c = r && Wt(ia), l = r && (typeof ca == "function" ? /* @__PURE__ */ ((
|
|
2899
|
-
let
|
|
2902
|
+
const c = r && Wt(ia), l = r && (typeof ca == "function" ? /* @__PURE__ */ ((f) => (p) => f.encode(p))(new ca()) : async (f) => new Uint8Array(await new n(f).arrayBuffer())), d = o && c && la(() => {
|
|
2903
|
+
let f = !1;
|
|
2900
2904
|
const p = new n(be.origin, {
|
|
2901
2905
|
body: new ia(),
|
|
2902
2906
|
method: "POST",
|
|
2903
2907
|
get duplex() {
|
|
2904
|
-
return
|
|
2908
|
+
return f = !0, "half";
|
|
2905
2909
|
}
|
|
2906
2910
|
}).headers.has("Content-Type");
|
|
2907
|
-
return
|
|
2908
|
-
}), u = i && c && la(() => E.isReadableStream(new a("").body)),
|
|
2909
|
-
stream: u && ((
|
|
2911
|
+
return f && !p;
|
|
2912
|
+
}), u = i && c && la(() => E.isReadableStream(new a("").body)), h = {
|
|
2913
|
+
stream: u && ((f) => f.body)
|
|
2910
2914
|
};
|
|
2911
|
-
r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
2912
|
-
!f
|
|
2913
|
-
let A = p && p[
|
|
2915
|
+
r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
2916
|
+
!h[f] && (h[f] = (p, b) => {
|
|
2917
|
+
let A = p && p[f];
|
|
2914
2918
|
if (A)
|
|
2915
2919
|
return A.call(p);
|
|
2916
|
-
throw new te(`Response type '${
|
|
2920
|
+
throw new te(`Response type '${f}' is not supported`, te.ERR_NOT_SUPPORT, b);
|
|
2917
2921
|
});
|
|
2918
2922
|
});
|
|
2919
|
-
const m = async (
|
|
2920
|
-
if (
|
|
2923
|
+
const m = async (f) => {
|
|
2924
|
+
if (f == null)
|
|
2921
2925
|
return 0;
|
|
2922
|
-
if (E.isBlob(
|
|
2923
|
-
return
|
|
2924
|
-
if (E.isSpecCompliantForm(
|
|
2926
|
+
if (E.isBlob(f))
|
|
2927
|
+
return f.size;
|
|
2928
|
+
if (E.isSpecCompliantForm(f))
|
|
2925
2929
|
return (await new n(be.origin, {
|
|
2926
2930
|
method: "POST",
|
|
2927
|
-
body:
|
|
2931
|
+
body: f
|
|
2928
2932
|
}).arrayBuffer()).byteLength;
|
|
2929
|
-
if (E.isArrayBufferView(
|
|
2930
|
-
return
|
|
2931
|
-
if (E.isURLSearchParams(
|
|
2932
|
-
return (await l(
|
|
2933
|
-
}, w = async (
|
|
2934
|
-
const b = E.toFiniteNumber(
|
|
2933
|
+
if (E.isArrayBufferView(f) || E.isArrayBuffer(f))
|
|
2934
|
+
return f.byteLength;
|
|
2935
|
+
if (E.isURLSearchParams(f) && (f = f + ""), E.isString(f))
|
|
2936
|
+
return (await l(f)).byteLength;
|
|
2937
|
+
}, w = async (f, p) => {
|
|
2938
|
+
const b = E.toFiniteNumber(f.getContentLength());
|
|
2935
2939
|
return b ?? m(p);
|
|
2936
2940
|
};
|
|
2937
|
-
return async (
|
|
2941
|
+
return async (f) => {
|
|
2938
2942
|
let {
|
|
2939
2943
|
url: p,
|
|
2940
2944
|
method: b,
|
|
@@ -2948,7 +2952,7 @@ const wr = (e) => {
|
|
|
2948
2952
|
headers: R,
|
|
2949
2953
|
withCredentials: z = "same-origin",
|
|
2950
2954
|
fetchOptions: O
|
|
2951
|
-
} = wr(
|
|
2955
|
+
} = wr(f), P = t || fetch;
|
|
2952
2956
|
T = T ? (T + "").toLowerCase() : "text";
|
|
2953
2957
|
let F = yc([v, N && N.toAbortSignal()], C), Q = null;
|
|
2954
2958
|
const B = F && F.unsubscribe && (() => {
|
|
@@ -3000,24 +3004,24 @@ const wr = (e) => {
|
|
|
3000
3004
|
);
|
|
3001
3005
|
}
|
|
3002
3006
|
T = T || "text";
|
|
3003
|
-
let x = await
|
|
3007
|
+
let x = await h[E.findKey(h, T) || "text"](M, f);
|
|
3004
3008
|
return !Y && B && B(), await new Promise((k, q) => {
|
|
3005
3009
|
pr(k, q, {
|
|
3006
3010
|
data: x,
|
|
3007
3011
|
headers: Se.from(M.headers),
|
|
3008
3012
|
status: M.status,
|
|
3009
3013
|
statusText: M.statusText,
|
|
3010
|
-
config:
|
|
3014
|
+
config: f,
|
|
3011
3015
|
request: Q
|
|
3012
3016
|
});
|
|
3013
3017
|
});
|
|
3014
3018
|
} catch (U) {
|
|
3015
3019
|
throw B && B(), U && U.name === "TypeError" && /Load failed|fetch/i.test(U.message) ? Object.assign(
|
|
3016
|
-
new te("Network Error", te.ERR_NETWORK,
|
|
3020
|
+
new te("Network Error", te.ERR_NETWORK, f, Q),
|
|
3017
3021
|
{
|
|
3018
3022
|
cause: U.cause || U
|
|
3019
3023
|
}
|
|
3020
|
-
) : te.from(U, U && U.code,
|
|
3024
|
+
) : te.from(U, U && U.code, f, Q);
|
|
3021
3025
|
}
|
|
3022
3026
|
};
|
|
3023
3027
|
}, Ec = /* @__PURE__ */ new Map(), br = (e) => {
|
|
@@ -3098,7 +3102,7 @@ function ua(e) {
|
|
|
3098
3102
|
return Hn(e), e.headers = Se.from(e.headers), e.data = Fn.call(
|
|
3099
3103
|
e,
|
|
3100
3104
|
e.transformRequest
|
|
3101
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ar.getAdapter(e.adapter ||
|
|
3105
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ar.getAdapter(e.adapter || Ht.adapter, e)(e).then(function(a) {
|
|
3102
3106
|
return Hn(e), a.data = Fn.call(
|
|
3103
3107
|
e,
|
|
3104
3108
|
e.transformResponse,
|
|
@@ -3215,8 +3219,8 @@ let st = class {
|
|
|
3215
3219
|
);
|
|
3216
3220
|
o && E.forEach(
|
|
3217
3221
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
3218
|
-
(
|
|
3219
|
-
delete o[
|
|
3222
|
+
(f) => {
|
|
3223
|
+
delete o[f];
|
|
3220
3224
|
}
|
|
3221
3225
|
), n.headers = Se.concat(i, o);
|
|
3222
3226
|
const c = [];
|
|
@@ -3228,19 +3232,19 @@ let st = class {
|
|
|
3228
3232
|
this.interceptors.response.forEach(function(p) {
|
|
3229
3233
|
d.push(p.fulfilled, p.rejected);
|
|
3230
3234
|
});
|
|
3231
|
-
let u,
|
|
3235
|
+
let u, h = 0, m;
|
|
3232
3236
|
if (!l) {
|
|
3233
|
-
const
|
|
3234
|
-
for (
|
|
3235
|
-
u = u.then(h
|
|
3237
|
+
const f = [ua.bind(this), void 0];
|
|
3238
|
+
for (f.unshift(...c), f.push(...d), m = f.length, u = Promise.resolve(n); h < m; )
|
|
3239
|
+
u = u.then(f[h++], f[h++]);
|
|
3236
3240
|
return u;
|
|
3237
3241
|
}
|
|
3238
3242
|
m = c.length;
|
|
3239
3243
|
let w = n;
|
|
3240
|
-
for (;
|
|
3241
|
-
const
|
|
3244
|
+
for (; h < m; ) {
|
|
3245
|
+
const f = c[h++], p = c[h++];
|
|
3242
3246
|
try {
|
|
3243
|
-
w =
|
|
3247
|
+
w = f(w);
|
|
3244
3248
|
} catch (b) {
|
|
3245
3249
|
p.call(this, b);
|
|
3246
3250
|
break;
|
|
@@ -3248,11 +3252,11 @@ let st = class {
|
|
|
3248
3252
|
}
|
|
3249
3253
|
try {
|
|
3250
3254
|
u = ua.call(this, w);
|
|
3251
|
-
} catch (
|
|
3252
|
-
return Promise.reject(
|
|
3255
|
+
} catch (f) {
|
|
3256
|
+
return Promise.reject(f);
|
|
3253
3257
|
}
|
|
3254
|
-
for (
|
|
3255
|
-
u = u.then(d[
|
|
3258
|
+
for (h = 0, m = d.length; h < m; )
|
|
3259
|
+
u = u.then(d[h++], d[h++]);
|
|
3256
3260
|
return u;
|
|
3257
3261
|
}
|
|
3258
3262
|
getUri(t) {
|
|
@@ -3446,7 +3450,7 @@ function Cr(e) {
|
|
|
3446
3450
|
return Cr(ot(e, r));
|
|
3447
3451
|
}, n;
|
|
3448
3452
|
}
|
|
3449
|
-
const oe = Cr(
|
|
3453
|
+
const oe = Cr(Ht);
|
|
3450
3454
|
oe.Axios = st;
|
|
3451
3455
|
oe.CanceledError = vt;
|
|
3452
3456
|
oe.CancelToken = Uc;
|
|
@@ -3511,7 +3515,7 @@ function Oc() {
|
|
|
3511
3515
|
}
|
|
3512
3516
|
return De;
|
|
3513
3517
|
}
|
|
3514
|
-
function
|
|
3518
|
+
function Mt(e, t) {
|
|
3515
3519
|
const n = e.replace(/\/+$/, ""), a = ha.get(n);
|
|
3516
3520
|
if (a) return a;
|
|
3517
3521
|
const r = oe.create({
|
|
@@ -3596,7 +3600,7 @@ function Yt(e, t, n) {
|
|
|
3596
3600
|
return `${e.startsWith("/") ? e : e ? `/${e}` : ""}/${t}/${n}`.replace(/\/+/g, "/");
|
|
3597
3601
|
}
|
|
3598
3602
|
const _c = 3, qc = 300 * 1e3;
|
|
3599
|
-
let
|
|
3603
|
+
let It = null;
|
|
3600
3604
|
function Dc(e, t) {
|
|
3601
3605
|
if (!e.length) return 0;
|
|
3602
3606
|
const n = [...e].sort((a, r) => a - r);
|
|
@@ -3645,11 +3649,11 @@ function Gc(e) {
|
|
|
3645
3649
|
async function l1(e) {
|
|
3646
3650
|
if (!vs()) return null;
|
|
3647
3651
|
const t = Date.now();
|
|
3648
|
-
if (
|
|
3649
|
-
return { ...
|
|
3652
|
+
if (It && It.expiresAt > t)
|
|
3653
|
+
return { ...It.report, cached: !0 };
|
|
3650
3654
|
const n = I().BUCKET_ORIGIN;
|
|
3651
3655
|
if (!n?.url || !n.clientName) return null;
|
|
3652
|
-
const a = e.runs ?? _c, r = n.referer ?? ft, o =
|
|
3656
|
+
const a = e.runs ?? _c, r = n.referer ?? ft, o = Mt(n.proxyUrl ?? n.url, r), i = [
|
|
3653
3657
|
{ name: "menu (menu.html)", kind: "menu", menuFile: "menu.html" },
|
|
3654
3658
|
{ name: "menu (footer.html)", kind: "menu", menuFile: "footer.html" },
|
|
3655
3659
|
{
|
|
@@ -3669,7 +3673,7 @@ async function l1(e) {
|
|
|
3669
3673
|
}
|
|
3670
3674
|
], c = [];
|
|
3671
3675
|
for (const w of i) {
|
|
3672
|
-
let
|
|
3676
|
+
let f, p;
|
|
3673
3677
|
if (w.kind === "menu" && w.menuFile) {
|
|
3674
3678
|
const N = Yt(
|
|
3675
3679
|
e.servicePrefix,
|
|
@@ -3681,7 +3685,7 @@ async function l1(e) {
|
|
|
3681
3685
|
"menu",
|
|
3682
3686
|
C
|
|
3683
3687
|
);
|
|
3684
|
-
|
|
3688
|
+
f = await Kt(async () => {
|
|
3685
3689
|
const S = await e.axiosApi.get("/config/menu", {
|
|
3686
3690
|
params: { path: N }
|
|
3687
3691
|
}), T = JSON.stringify(S.data ?? "").length;
|
|
@@ -3701,7 +3705,7 @@ async function l1(e) {
|
|
|
3701
3705
|
"banners",
|
|
3702
3706
|
C
|
|
3703
3707
|
);
|
|
3704
|
-
|
|
3708
|
+
f = await Kt(async () => {
|
|
3705
3709
|
const S = await e.axiosApi.get("/config/banners", {
|
|
3706
3710
|
params: {
|
|
3707
3711
|
path: N,
|
|
@@ -3715,10 +3719,10 @@ async function l1(e) {
|
|
|
3715
3719
|
}, a);
|
|
3716
3720
|
} else
|
|
3717
3721
|
continue;
|
|
3718
|
-
const b =
|
|
3722
|
+
const b = f.avg - p.avg, A = b > 0 ? "bucket" : "api", v = Math.abs(b) / Math.max(f.avg, p.avg, 1) * 100;
|
|
3719
3723
|
c.push({
|
|
3720
3724
|
name: w.name,
|
|
3721
|
-
api:
|
|
3725
|
+
api: f,
|
|
3722
3726
|
bucket: p,
|
|
3723
3727
|
winner: A,
|
|
3724
3728
|
advantagePct: v,
|
|
@@ -3727,7 +3731,7 @@ async function l1(e) {
|
|
|
3727
3731
|
}
|
|
3728
3732
|
const l = n, d = ["sidebar.html", "menu.html", "footer.html", "pages.html"];
|
|
3729
3733
|
async function u(w) {
|
|
3730
|
-
const
|
|
3734
|
+
const f = performance.now();
|
|
3731
3735
|
return await Promise.all([
|
|
3732
3736
|
...d.map(async (p) => {
|
|
3733
3737
|
const b = Yt(
|
|
@@ -3769,27 +3773,27 @@ async function l1(e) {
|
|
|
3769
3773
|
(await o.get(b)).data;
|
|
3770
3774
|
}
|
|
3771
3775
|
})()
|
|
3772
|
-
]), performance.now() -
|
|
3776
|
+
]), performance.now() - f;
|
|
3773
3777
|
}
|
|
3774
|
-
const
|
|
3778
|
+
const h = {
|
|
3775
3779
|
api: await u("api"),
|
|
3776
3780
|
bucket: await u("bucket")
|
|
3777
3781
|
}, m = {
|
|
3778
3782
|
runs: a,
|
|
3779
3783
|
rows: c,
|
|
3780
|
-
homeParallel:
|
|
3784
|
+
homeParallel: h,
|
|
3781
3785
|
generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3782
3786
|
cached: !1
|
|
3783
3787
|
};
|
|
3784
|
-
return
|
|
3788
|
+
return It = {
|
|
3785
3789
|
expiresAt: t + qc,
|
|
3786
3790
|
report: m
|
|
3787
3791
|
}, m;
|
|
3788
3792
|
}
|
|
3789
3793
|
function d1() {
|
|
3790
|
-
|
|
3794
|
+
It = null;
|
|
3791
3795
|
}
|
|
3792
|
-
const
|
|
3796
|
+
const _t = [];
|
|
3793
3797
|
function vs() {
|
|
3794
3798
|
return I().HTML_AUDIT === !0;
|
|
3795
3799
|
}
|
|
@@ -3814,9 +3818,9 @@ function Fc() {
|
|
|
3814
3818
|
bucket: 0,
|
|
3815
3819
|
networkMs: 0
|
|
3816
3820
|
};
|
|
3817
|
-
for (const t of
|
|
3821
|
+
for (const t of _t)
|
|
3818
3822
|
t.origin === "api" ? e.api++ : e.bucket++, t.outcome === "network" ? (e.network++, e.networkMs += t.durationMs) : t.outcome === "cache-hit" ? e.cacheHit++ : t.outcome === "dedup" && e.dedup++;
|
|
3819
|
-
return { entries: [...
|
|
3823
|
+
return { entries: [..._t], totals: e };
|
|
3820
3824
|
}
|
|
3821
3825
|
function Hc(e) {
|
|
3822
3826
|
const { totals: t, entries: n, comparison: a } = e, r = [];
|
|
@@ -3835,7 +3839,7 @@ function Hc(e) {
|
|
|
3835
3839
|
`)) : "[config-origin] (sin fetches de menú/banners)";
|
|
3836
3840
|
}
|
|
3837
3841
|
function gn(e) {
|
|
3838
|
-
vs() && (
|
|
3842
|
+
vs() && (_t.push(e), console.log(xr(e)));
|
|
3839
3843
|
}
|
|
3840
3844
|
function Vc(e) {
|
|
3841
3845
|
return { ...Fc(), comparison: e ?? null };
|
|
@@ -3843,10 +3847,10 @@ function Vc(e) {
|
|
|
3843
3847
|
function u1(e) {
|
|
3844
3848
|
if (!vs()) return null;
|
|
3845
3849
|
const t = Vc(e);
|
|
3846
|
-
return (t.entries.length > 0 || t.comparison?.rows.length) && console.log(Hc(t)),
|
|
3850
|
+
return (t.entries.length > 0 || t.comparison?.rows.length) && console.log(Hc(t)), _t.length = 0, t.entries.length > 0 || t.comparison?.rows.length ? t : null;
|
|
3847
3851
|
}
|
|
3848
3852
|
function m1() {
|
|
3849
|
-
|
|
3853
|
+
_t.length = 0;
|
|
3850
3854
|
}
|
|
3851
3855
|
const zc = (e) => e === "/" || e === "/index.html", Qc = /* @__PURE__ */ new Set(["@type", "@context"]), pa = (e) => {
|
|
3852
3856
|
if (e == null) return !0;
|
|
@@ -3884,7 +3888,7 @@ const zc = (e) => e === "/" || e === "/index.html", Qc = /* @__PURE__ */ new Set
|
|
|
3884
3888
|
return Object.keys(t).forEach((l) => {
|
|
3885
3889
|
c[l] = l;
|
|
3886
3890
|
}), c;
|
|
3887
|
-
}, [t]), { ANALYTICS_ga4: o } = I(), i = n && n.show && n.value ?
|
|
3891
|
+
}, [t]), { ANALYTICS_ga4: o } = I(), i = n && n.show && n.value ? Dt(n.value, a) : "";
|
|
3888
3892
|
return o && /* @__PURE__ */ g($, { children: [
|
|
3889
3893
|
/* @__PURE__ */ s("script", { defer: !0, src: "https://www.googletagmanager.com/gtag/js?" + o }),
|
|
3890
3894
|
/* @__PURE__ */ s(
|
|
@@ -4115,10 +4119,10 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
4115
4119
|
console.log(`[/schemas${t}] Error: ${a.message}`);
|
|
4116
4120
|
});
|
|
4117
4121
|
}, sl = (e, t) => {
|
|
4118
|
-
if (typeof e == "string") return
|
|
4122
|
+
if (typeof e == "string") return Lt(e, t);
|
|
4119
4123
|
if (e && typeof e == "object") {
|
|
4120
4124
|
const n = { ...e };
|
|
4121
|
-
return typeof n.url == "string" && (n.url =
|
|
4125
|
+
return typeof n.url == "string" && (n.url = Lt(n.url, t)), typeof n["@id"] == "string" && (n["@id"] = Lt(n["@id"], t)), n;
|
|
4122
4126
|
}
|
|
4123
4127
|
return e;
|
|
4124
4128
|
}, wn = (e, t) => {
|
|
@@ -4135,7 +4139,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
4135
4139
|
itemListElement: o.map((c, l) => {
|
|
4136
4140
|
if (!c || typeof c != "object") return c;
|
|
4137
4141
|
const d = { ...c };
|
|
4138
|
-
return "item" in d && (d.item = sl(d.item, t)), typeof d.url == "string" && (d.url =
|
|
4142
|
+
return "item" in d && (d.item = sl(d.item, t)), typeof d.url == "string" && (d.url = Lt(d.url, t)), i && (d.position = l + 1), d;
|
|
4139
4143
|
})
|
|
4140
4144
|
};
|
|
4141
4145
|
}
|
|
@@ -4259,10 +4263,10 @@ const cl = (e) => Array.isArray(e) ? e.length > 0 : e && typeof e == "object" ?
|
|
|
4259
4263
|
logoh: t.socialBlockLogo?.height,
|
|
4260
4264
|
authorurl: n + o + (t.paths.autor ? `/${t.paths.autor}/` : "/autor/"),
|
|
4261
4265
|
lang: t.lang
|
|
4262
|
-
},
|
|
4266
|
+
}, h = e.split("/").find((b) => ["liveblogs", "liveblog"].includes(b)), m = r && r.length > 0 ? r : h == "liveblogs" || h == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], w = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema, f = o ? o + w : w;
|
|
4263
4267
|
i = (await Promise.all(
|
|
4264
4268
|
m.map(async (b) => {
|
|
4265
|
-
const A = b === "/news-breadcrumb" ? { ...u, prefixtag:
|
|
4269
|
+
const A = b === "/news-breadcrumb" ? { ...u, prefixtag: f } : b === "/news" && t.schemasNewsParams ? { ...u, ...t.schemasNewsParams } : u;
|
|
4266
4270
|
return await Cs(A, b, a);
|
|
4267
4271
|
})
|
|
4268
4272
|
)).map((b) => b?.data?.data ?? []);
|
|
@@ -4523,7 +4527,7 @@ const cl = (e) => Array.isArray(e) ? e.length > 0 : e && typeof e == "object" ?
|
|
|
4523
4527
|
autor: (e) => Te(e.pathname),
|
|
4524
4528
|
video: (e) => Te(e.pathname),
|
|
4525
4529
|
videos: (e) => Te(e.pathname)
|
|
4526
|
-
},
|
|
4530
|
+
}, St = (e) => {
|
|
4527
4531
|
const t = e.split("/"), n = t[t.length - 1] ?? "1";
|
|
4528
4532
|
return Number(n) > 0 ? Number(n) : 1;
|
|
4529
4533
|
}, f1 = (e, t = 2) => {
|
|
@@ -4611,14 +4615,14 @@ class p1 {
|
|
|
4611
4615
|
o
|
|
4612
4616
|
), l = r.referer ?? ft, d = `origin:destacado:bucket:${c}`, u = await ht(
|
|
4613
4617
|
d,
|
|
4614
|
-
() =>
|
|
4615
|
-
() =>
|
|
4618
|
+
() => Rt(
|
|
4619
|
+
() => Mt(r.proxyUrl ?? r.url, l).get(c),
|
|
4616
4620
|
Vn,
|
|
4617
4621
|
{ label: "bucket:destacado", endpoint: c, params: t }
|
|
4618
4622
|
),
|
|
4619
4623
|
{
|
|
4620
4624
|
// No convertir un timeout transitorio en un vacío cacheado por el TTL.
|
|
4621
|
-
shouldCache: (
|
|
4625
|
+
shouldCache: (h) => h !== Vn
|
|
4622
4626
|
}
|
|
4623
4627
|
);
|
|
4624
4628
|
return u === Vn ? (pn("destacado", c), i) : u;
|
|
@@ -4823,10 +4827,10 @@ class $e {
|
|
|
4823
4827
|
"menu",
|
|
4824
4828
|
c,
|
|
4825
4829
|
i
|
|
4826
|
-
), d = n.referer ?? ft, u = `origin:menu:bucket:${l}`,
|
|
4830
|
+
), d = n.referer ?? ft, u = `origin:menu:bucket:${l}`, h = await ht(
|
|
4827
4831
|
u,
|
|
4828
|
-
() =>
|
|
4829
|
-
() =>
|
|
4832
|
+
() => Rt(
|
|
4833
|
+
() => Mt(n.proxyUrl ?? n.url, d).get(l),
|
|
4830
4834
|
ut,
|
|
4831
4835
|
{ label: "bucket:menu", endpoint: l, params: t }
|
|
4832
4836
|
),
|
|
@@ -4834,7 +4838,7 @@ class $e {
|
|
|
4834
4838
|
shouldCache: (m) => m !== ut
|
|
4835
4839
|
}
|
|
4836
4840
|
);
|
|
4837
|
-
return
|
|
4841
|
+
return h === ut ? (pn("menu", l), a) : h;
|
|
4838
4842
|
}
|
|
4839
4843
|
const o = `origin:menu:api:${t.path ?? ""}`;
|
|
4840
4844
|
return ht(o, () => r());
|
|
@@ -4879,15 +4883,15 @@ class $e {
|
|
|
4879
4883
|
"banners",
|
|
4880
4884
|
d,
|
|
4881
4885
|
l
|
|
4882
|
-
),
|
|
4886
|
+
), h = n.referer ?? ft, m = `origin:banners:bucket:${u}`, w = await ht(
|
|
4883
4887
|
m,
|
|
4884
|
-
() =>
|
|
4885
|
-
() =>
|
|
4888
|
+
() => Rt(
|
|
4889
|
+
() => Mt(n.proxyUrl ?? n.url, h).get(u),
|
|
4886
4890
|
ut,
|
|
4887
4891
|
{ label: "bucket:banners", endpoint: u, params: t }
|
|
4888
4892
|
),
|
|
4889
4893
|
{
|
|
4890
|
-
shouldCache: (
|
|
4894
|
+
shouldCache: (f) => f !== ut
|
|
4891
4895
|
}
|
|
4892
4896
|
);
|
|
4893
4897
|
return w === ut ? (pn("banners", u), a) : w;
|
|
@@ -4898,7 +4902,7 @@ class $e {
|
|
|
4898
4902
|
getPages = (t) => this.props?.axiosApi.get("/config/pages", { params: t }).catch((n) => (console.log(`[/config/pages] Error: ${n.message}`), Promise.reject(n)));
|
|
4899
4903
|
getRankingS3 = async (t, n = {
|
|
4900
4904
|
Referer: ft
|
|
4901
|
-
}) => !t || t === "" ? { data: [] } :
|
|
4905
|
+
}) => !t || t === "" ? { data: [] } : Rt(
|
|
4902
4906
|
() => oe.get(t, { headers: n }),
|
|
4903
4907
|
{ data: [] },
|
|
4904
4908
|
{ label: "bucket:ranking", endpoint: t }
|
|
@@ -4963,8 +4967,8 @@ class $e {
|
|
|
4963
4967
|
exclude: a.getAutorInfo,
|
|
4964
4968
|
imagesizes: n.getAutorInfo
|
|
4965
4969
|
}))?.data.data ?? []);
|
|
4966
|
-
const d = ss(c),
|
|
4967
|
-
|
|
4970
|
+
const d = ss(c), h = (mt(o)?.data ?? [])[0]?.list?.items?.map((A) => ss(A)), m = [];
|
|
4971
|
+
h?.forEach((A) => {
|
|
4968
4972
|
A && A.length > 0 && A.forEach((v) => {
|
|
4969
4973
|
v.forEach((N) => {
|
|
4970
4974
|
const C = this.getNews({
|
|
@@ -4978,7 +4982,7 @@ class $e {
|
|
|
4978
4982
|
});
|
|
4979
4983
|
});
|
|
4980
4984
|
});
|
|
4981
|
-
const
|
|
4985
|
+
const f = (await Promise.allSettled([
|
|
4982
4986
|
...m
|
|
4983
4987
|
])).map(
|
|
4984
4988
|
(A) => mt(A)?.data
|
|
@@ -4998,7 +5002,7 @@ class $e {
|
|
|
4998
5002
|
autor: l,
|
|
4999
5003
|
newsRelatedResponses: p,
|
|
5000
5004
|
itemList: mt(o)?.data ?? [],
|
|
5001
|
-
newsRelatedListResponses:
|
|
5005
|
+
newsRelatedListResponses: f,
|
|
5002
5006
|
schemasImages: b ?? []
|
|
5003
5007
|
};
|
|
5004
5008
|
};
|
|
@@ -5154,8 +5158,8 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5154
5158
|
a
|
|
5155
5159
|
), o = n.referer ?? ft, i = `origin:slots:bucket:${r}`, c = await ht(
|
|
5156
5160
|
i,
|
|
5157
|
-
() =>
|
|
5158
|
-
() =>
|
|
5161
|
+
() => Rt(
|
|
5162
|
+
() => Mt(n.proxyUrl ?? n.url, o).get(r),
|
|
5159
5163
|
zn,
|
|
5160
5164
|
{ label: "bucket:slots", endpoint: r, params: {} }
|
|
5161
5165
|
),
|
|
@@ -5189,14 +5193,14 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5189
5193
|
});
|
|
5190
5194
|
const u = await Promise.allSettled([
|
|
5191
5195
|
...d.map((m) => m.func({ template: "Home_" + m.slot_id }))
|
|
5192
|
-
]),
|
|
5196
|
+
]), h = {};
|
|
5193
5197
|
for (let m = 0; m < u.length; m++) {
|
|
5194
5198
|
const w = Eo(
|
|
5195
5199
|
u[m]
|
|
5196
|
-
),
|
|
5197
|
-
w && (f
|
|
5200
|
+
), f = "Home_" + (Math.floor(m / o) + 1) + "_" + (Math.floor(m % o) + 1);
|
|
5201
|
+
w && (h[f] = { ...w });
|
|
5198
5202
|
}
|
|
5199
|
-
return
|
|
5203
|
+
return h;
|
|
5200
5204
|
};
|
|
5201
5205
|
return I().BUCKET_ORIGIN?.slots ? Nl(c, t) : l();
|
|
5202
5206
|
}, xl = (e) => {
|
|
@@ -5221,7 +5225,7 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5221
5225
|
title: e.title,
|
|
5222
5226
|
description: e.description
|
|
5223
5227
|
// robots: 'noindex',
|
|
5224
|
-
}), ga = (e = "") => e.replace(/-/g, " ").replace(/^./, (t) => t.toUpperCase()),
|
|
5228
|
+
}), ga = (e = "") => e.replace(/-/g, " ").replace(/^./, (t) => t.toUpperCase()), Et = (e) => e.includes("/page/") ? e.replace(/\/page\/\d+$/, "") : e, ge = (e) => {
|
|
5225
5229
|
try {
|
|
5226
5230
|
const t = me();
|
|
5227
5231
|
if (!t) return e;
|
|
@@ -5275,9 +5279,9 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5275
5279
|
return o ? { ...t, ...o } : pe(t);
|
|
5276
5280
|
},
|
|
5277
5281
|
seccion: async (e) => {
|
|
5278
|
-
const { meta: t, config: n, pathname: a, slug: r, axiosApi: o, meta_info: i } = e, { CONFIG_sectionMetaInfo: c, PUBLIC_LNG: l } = I(), u =
|
|
5282
|
+
const { meta: t, config: n, pathname: a, slug: r, axiosApi: o, meta_info: i } = e, { CONFIG_sectionMetaInfo: c, PUBLIC_LNG: l } = I(), u = Et(a).split("/"), h = [], m = St(a), w = Number(n.newsListLimit) || 0, f = l === "en";
|
|
5279
5283
|
if (c && i)
|
|
5280
|
-
return i.next &&
|
|
5284
|
+
return i.next && h.push({ rel: "next", url: lt(n, u, m) }), m > 1 && h.push({ rel: "prev", url: dt(n, u, m) }), {
|
|
5281
5285
|
...t,
|
|
5282
5286
|
title: i.title,
|
|
5283
5287
|
alternates: {
|
|
@@ -5285,7 +5289,7 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5285
5289
|
canonical: ge(n.siteUrl + a)
|
|
5286
5290
|
},
|
|
5287
5291
|
manifest: n.manifest,
|
|
5288
|
-
icons: { ...n.icons, other:
|
|
5292
|
+
icons: { ...n.icons, other: h },
|
|
5289
5293
|
other: {
|
|
5290
5294
|
"msapplication-TileImage": n.msapplicationTileImage ?? ""
|
|
5291
5295
|
},
|
|
@@ -5330,8 +5334,8 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5330
5334
|
b = y.data.data, A = !(b.length < w);
|
|
5331
5335
|
}
|
|
5332
5336
|
const v = b[0];
|
|
5333
|
-
A &&
|
|
5334
|
-
const N =
|
|
5337
|
+
A && h.push({ rel: "next", url: lt(n, u, m) }), m > 1 && h.push({ rel: "prev", url: dt(n, u, m) });
|
|
5338
|
+
const N = f ? `Latest News from ${v.info.section?.name} | ${n.name}` : `Últimas Noticias de ${v.info.section?.name} | ${n.name}`, C = f ? `All the latest news from ${v.info.section?.name} on ${n.name}` : `Todas las últimas noticias de ${v.info.section?.name} en ${n.name}`;
|
|
5335
5339
|
return {
|
|
5336
5340
|
...t,
|
|
5337
5341
|
title: N,
|
|
@@ -5343,7 +5347,7 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5343
5347
|
manifest: n.manifest,
|
|
5344
5348
|
icons: {
|
|
5345
5349
|
...n.icons,
|
|
5346
|
-
other:
|
|
5350
|
+
other: h
|
|
5347
5351
|
},
|
|
5348
5352
|
other: {
|
|
5349
5353
|
"msapplication-TileImage": n.msapplicationTileImage ?? ""
|
|
@@ -5371,12 +5375,12 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5371
5375
|
}
|
|
5372
5376
|
},
|
|
5373
5377
|
tema: async (e) => {
|
|
5374
|
-
const { meta: t, config: n, pathname: a, slug: r, axiosApi: o } = e, i = new $e({ config: n, axiosApi: o }), l =
|
|
5378
|
+
const { meta: t, config: n, pathname: a, slug: r, axiosApi: o } = e, i = new $e({ config: n, axiosApi: o }), l = Et(a).split("/"), d = [], u = St(a), h = Number(n.newsListLimit) || 0, m = /([t][0-9]{4})\w+/.exec(r || ""), w = m && m?.length > 0 ? m[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: f, PUBLIC_LNG: p } = I(), b = p === "en";
|
|
5375
5379
|
try {
|
|
5376
5380
|
const A = await i.getNewsListTags({
|
|
5377
5381
|
tagid: w,
|
|
5378
|
-
size:
|
|
5379
|
-
tagtype: Number(
|
|
5382
|
+
size: h,
|
|
5383
|
+
tagtype: Number(f),
|
|
5380
5384
|
newstype: n.newsType,
|
|
5381
5385
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
5382
5386
|
page: u
|
|
@@ -5384,7 +5388,7 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5384
5388
|
if (!A) return pe(t);
|
|
5385
5389
|
const v = A.data.entity;
|
|
5386
5390
|
if (!v) return pe(t);
|
|
5387
|
-
A.data.data?.length <
|
|
5391
|
+
A.data.data?.length < h || d.push({
|
|
5388
5392
|
rel: "next",
|
|
5389
5393
|
url: lt(n, l, u)
|
|
5390
5394
|
}), u > 1 && d.push({
|
|
@@ -5431,7 +5435,7 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5431
5435
|
}
|
|
5432
5436
|
},
|
|
5433
5437
|
"ultimas-noticias": async (e) => {
|
|
5434
|
-
const { meta: t, config: n, pathname: a, texts: r, axiosApi: o } = e, i = new $e({ config: n, axiosApi: o }), l =
|
|
5438
|
+
const { meta: t, config: n, pathname: a, texts: r, axiosApi: o } = e, i = new $e({ config: n, axiosApi: o }), l = Et(a).split("/"), d = [], u = St(a), h = Number(n.newsListLimit) || 0, m = `${n.name} | ${r.lastNotesTitle}`, w = {
|
|
5435
5439
|
...t,
|
|
5436
5440
|
title: m,
|
|
5437
5441
|
...Pe(
|
|
@@ -5442,13 +5446,13 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5442
5446
|
};
|
|
5443
5447
|
if (!o) return w;
|
|
5444
5448
|
try {
|
|
5445
|
-
const
|
|
5446
|
-
size:
|
|
5449
|
+
const f = await i.getNewsList({
|
|
5450
|
+
size: h,
|
|
5447
5451
|
newstype: n.newsType,
|
|
5448
5452
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
5449
5453
|
page: u
|
|
5450
5454
|
});
|
|
5451
|
-
return
|
|
5455
|
+
return f ? (f.data.data.length < h || d.push({ rel: "next", url: lt(n, l, u) }), u > 1 && d.push({ rel: "prev", url: dt(n, l, u) }), {
|
|
5452
5456
|
...t,
|
|
5453
5457
|
title: m,
|
|
5454
5458
|
...Pe(t, n.siteUrl + a, m),
|
|
@@ -5461,8 +5465,8 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5461
5465
|
"msapplication-TileImage": n.msapplicationTileImage ?? ""
|
|
5462
5466
|
}
|
|
5463
5467
|
}) : w;
|
|
5464
|
-
} catch (
|
|
5465
|
-
return console.error(
|
|
5468
|
+
} catch (f) {
|
|
5469
|
+
return console.error(f), w;
|
|
5466
5470
|
}
|
|
5467
5471
|
},
|
|
5468
5472
|
video: async (e) => {
|
|
@@ -5485,15 +5489,15 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5485
5489
|
}
|
|
5486
5490
|
},
|
|
5487
5491
|
videos: async (e) => {
|
|
5488
|
-
const { meta: t, config: n, pathname: a, axiosApi: r } = e, o = new $e({ config: n, axiosApi: r }), c =
|
|
5492
|
+
const { meta: t, config: n, pathname: a, axiosApi: r } = e, o = new $e({ config: n, axiosApi: r }), c = Et(a).split("/"), l = [], d = St(a), u = Number(n.newsListLimit) || 0;
|
|
5489
5493
|
try {
|
|
5490
|
-
const
|
|
5494
|
+
const h = await o.getvideoListAdvanced({
|
|
5491
5495
|
size: u,
|
|
5492
5496
|
query: "Category:(videohome OR destacadoseccion OR seccion)",
|
|
5493
5497
|
page: Number(d)
|
|
5494
5498
|
});
|
|
5495
|
-
if (!
|
|
5496
|
-
|
|
5499
|
+
if (!h) return pe(t);
|
|
5500
|
+
h.data.data.length < u || l.push({
|
|
5497
5501
|
rel: "next",
|
|
5498
5502
|
url: lt(n, c, d)
|
|
5499
5503
|
}), d > 1 && l.push({
|
|
@@ -5514,8 +5518,8 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5514
5518
|
"msapplication-TileImage": n.msapplicationTileImage ?? ""
|
|
5515
5519
|
}
|
|
5516
5520
|
};
|
|
5517
|
-
} catch (
|
|
5518
|
-
return console.error(
|
|
5521
|
+
} catch (h) {
|
|
5522
|
+
return console.error(h), pe(t);
|
|
5519
5523
|
}
|
|
5520
5524
|
},
|
|
5521
5525
|
pages: async (e, t) => {
|
|
@@ -5610,13 +5614,13 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5610
5614
|
}
|
|
5611
5615
|
},
|
|
5612
5616
|
autor: async (e) => {
|
|
5613
|
-
const { meta: t, config: n, pathname: a, slug: r, axiosApi: o } = e, i = new $e({ config: n, axiosApi: o }), l =
|
|
5617
|
+
const { meta: t, config: n, pathname: a, slug: r, axiosApi: o } = e, i = new $e({ config: n, axiosApi: o }), l = Et(a).split("/"), d = [], u = St(a), h = I().PUBLIC_LNG === "en", m = Number(n.newsListLimit) || 0;
|
|
5614
5618
|
try {
|
|
5615
5619
|
const w = await i.getAutorInfo({
|
|
5616
5620
|
user: r,
|
|
5617
5621
|
exclude: "groups",
|
|
5618
5622
|
imagesizes: i.contract.author.avatar
|
|
5619
|
-
}),
|
|
5623
|
+
}), f = await i.getNewsListAutor({
|
|
5620
5624
|
size: m,
|
|
5621
5625
|
user: r,
|
|
5622
5626
|
page: u,
|
|
@@ -5624,15 +5628,15 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5624
5628
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
5625
5629
|
imagesizes: i.contract.note.listStandard
|
|
5626
5630
|
});
|
|
5627
|
-
if (!
|
|
5628
|
-
|
|
5631
|
+
if (!f) return pe(t);
|
|
5632
|
+
f.data.data.length < m || d.push({
|
|
5629
5633
|
rel: "next",
|
|
5630
5634
|
url: lt(n, l, u)
|
|
5631
5635
|
}), u > 1 && d.push({
|
|
5632
5636
|
rel: "prev",
|
|
5633
5637
|
url: dt(n, l, u)
|
|
5634
5638
|
});
|
|
5635
|
-
const p = w?.data.data[0]?.info.fullname, b =
|
|
5639
|
+
const p = w?.data.data[0]?.info.fullname, b = h ? `Latest News from ${p} | ${n.name}` : `Últimas Noticias de ${p} | ${n.name}`, A = h ? `All the latest news from ${p} on ${n.name}` : `Todas las últimas noticias de ${p} en ${n.name}`;
|
|
5636
5640
|
return {
|
|
5637
5641
|
...t,
|
|
5638
5642
|
title: b,
|
|
@@ -5661,7 +5665,7 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5661
5665
|
listAutor: t,
|
|
5662
5666
|
config: n
|
|
5663
5667
|
}) => {
|
|
5664
|
-
const a = t?.[0] ?? null, { DATE_TIMEZONE: r = "America/Mexico_City", PUBLIC_ASSETS_URL: o, PUBLIC_LNG: i } = I(), c = i === "en", l = r, d = a?.info?.date?.modified ? rt(a.info.date.modified, l) : void 0, u = e.addtional?.USER_JOBSTART ? rt(e.addtional.USER_JOBSTART, l) : void 0,
|
|
5668
|
+
const a = t?.[0] ?? null, { DATE_TIMEZONE: r = "America/Mexico_City", PUBLIC_ASSETS_URL: o, PUBLIC_LNG: i } = I(), c = i === "en", l = r, d = a?.info?.date?.modified ? rt(a.info.date.modified, l) : void 0, u = e.addtional?.USER_JOBSTART ? rt(e.addtional.USER_JOBSTART, l) : void 0, h = o && o !== "false" ? o : "", m = e.addtional, w = m?.USER_USERFB || m?.USER_PAGE_FACEBOOK || m?.USER_FACEBOOK_FAN_PAGE, f = m?.USER_USERTWT || m?.USER_PAGE_TWITTER, p = m?.USER_USERIG || m?.USER_PAGE_INSTAGRAM, b = m?.USER_USERLIN || m?.USER_PAGE_LINKEDIN, A = m?.USER_PAGE_TIKTOK, v = m?.USER_PAGE_YOUTUBE, N = m?.USER_PAGE_PINTEREST, C = c ? m?.USER_POSITION_EN || "" : m?.USER_JOBTITLE || m?.USER_POSITION || "", y = c ? m?.USER_DESCRIPCION_EN || m?.USER_MIBIO_EN || "" : m?.USER_DESCRIPCION || m?.USER_MIBIO || "", S = e?.addtional?.USER_SHOWEMAIL === !0 || m?.USER_MOSTRAR_MAIL?.toUpperCase() === "TRUE", T = me(), R = {
|
|
5665
5669
|
"@context": "https://schema.org",
|
|
5666
5670
|
"@type": "ProfilePage",
|
|
5667
5671
|
mainEntity: {
|
|
@@ -5670,12 +5674,12 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5670
5674
|
alternateName: e.info.nickname ? e.info.nickname : e.info.name,
|
|
5671
5675
|
identifier: e.info.id,
|
|
5672
5676
|
description: El(y),
|
|
5673
|
-
image: e.info.image ? e.info.image.sizes.map((z, O) => O === 0 && e.info.image.sizes.length !== 1 ? null :
|
|
5677
|
+
image: e.info.image ? e.info.image.sizes.map((z, O) => O === 0 && e.info.image.sizes.length !== 1 ? null : h + z.url).filter(Boolean) : [],
|
|
5674
5678
|
sameAs: [
|
|
5675
5679
|
w,
|
|
5676
5680
|
p,
|
|
5677
5681
|
b,
|
|
5678
|
-
|
|
5682
|
+
f,
|
|
5679
5683
|
A,
|
|
5680
5684
|
v,
|
|
5681
5685
|
N
|
|
@@ -6194,10 +6198,10 @@ async function A1({
|
|
|
6194
6198
|
query: l,
|
|
6195
6199
|
autor: d,
|
|
6196
6200
|
listAutor: u,
|
|
6197
|
-
currentNew:
|
|
6201
|
+
currentNew: h,
|
|
6198
6202
|
banners: m,
|
|
6199
6203
|
schemasImages: w,
|
|
6200
|
-
internalPath:
|
|
6204
|
+
internalPath: f,
|
|
6201
6205
|
meta_info: p,
|
|
6202
6206
|
config: b,
|
|
6203
6207
|
socials: A,
|
|
@@ -6213,22 +6217,22 @@ async function A1({
|
|
|
6213
6217
|
const O = { ...Ml, ...t }, P = w && w[0] && w[0].preview ? w[0] : void 0, F = me(), Q = y || await Sl[r]({
|
|
6214
6218
|
meta: n,
|
|
6215
6219
|
config: { ...b, siteUrl: b.siteUrl + F },
|
|
6216
|
-
currentNew:
|
|
6220
|
+
currentNew: h,
|
|
6217
6221
|
pathname: o,
|
|
6218
6222
|
imgSizes: a,
|
|
6219
6223
|
slug: i,
|
|
6220
6224
|
texts: c,
|
|
6221
6225
|
query: l,
|
|
6222
6226
|
axiosApi: e,
|
|
6223
|
-
internalPath:
|
|
6227
|
+
internalPath: f,
|
|
6224
6228
|
meta_info: p,
|
|
6225
6229
|
schemasImages: P
|
|
6226
6230
|
}), B = Go(Q), L = S || Er[r]({
|
|
6227
6231
|
pathname: o,
|
|
6228
6232
|
slug: i,
|
|
6229
6233
|
config: b,
|
|
6230
|
-
currentNew:
|
|
6231
|
-
internalPath:
|
|
6234
|
+
currentNew: h,
|
|
6235
|
+
internalPath: f
|
|
6232
6236
|
});
|
|
6233
6237
|
return /* @__PURE__ */ g($, { children: [
|
|
6234
6238
|
/* @__PURE__ */ s("meta", { charSet: "utf-8" }),
|
|
@@ -6244,16 +6248,16 @@ async function A1({
|
|
|
6244
6248
|
}
|
|
6245
6249
|
),
|
|
6246
6250
|
/* @__PURE__ */ s(bl, { config: b }),
|
|
6247
|
-
O.preloadImages &&
|
|
6251
|
+
O.preloadImages && h && h.preview?.sizes && /* @__PURE__ */ s(
|
|
6248
6252
|
Ks,
|
|
6249
6253
|
{
|
|
6250
6254
|
images: [
|
|
6251
6255
|
{
|
|
6252
|
-
href: nt() + (
|
|
6256
|
+
href: nt() + (h.preview.sizes[0]?.url ?? ""),
|
|
6253
6257
|
media: "(min-width: 900px)"
|
|
6254
6258
|
},
|
|
6255
6259
|
{
|
|
6256
|
-
href: nt() + (
|
|
6260
|
+
href: nt() + (h.preview.sizes[1]?.url ?? ""),
|
|
6257
6261
|
media: "(max-width: 900px)"
|
|
6258
6262
|
}
|
|
6259
6263
|
]
|
|
@@ -6270,23 +6274,23 @@ async function A1({
|
|
|
6270
6274
|
),
|
|
6271
6275
|
B,
|
|
6272
6276
|
O.ampConfig && b.ampOption && O.ampConfig_slugIsValid && /* @__PURE__ */ s("link", { rel: "amphtml", href: b.siteUrl + "/amp" + F + o }),
|
|
6273
|
-
O.schemas_NewsArticle &&
|
|
6277
|
+
O.schemas_NewsArticle && f && /* @__PURE__ */ s(
|
|
6274
6278
|
ll,
|
|
6275
6279
|
{
|
|
6276
6280
|
schemasCustomEndpoints: R,
|
|
6277
6281
|
BASE_URL: b.siteUrl,
|
|
6278
6282
|
config: b,
|
|
6279
|
-
realPath:
|
|
6283
|
+
realPath: f,
|
|
6280
6284
|
axiosApi: e
|
|
6281
6285
|
}
|
|
6282
6286
|
),
|
|
6283
6287
|
O.schemas_SoftwareApplication && /* @__PURE__ */ s(il, { config: b }),
|
|
6284
6288
|
/* @__PURE__ */ s(dl, { config: b, socials: A }),
|
|
6285
|
-
O.schemas_Videos &&
|
|
6289
|
+
O.schemas_Videos && f && /* @__PURE__ */ s(
|
|
6286
6290
|
ml,
|
|
6287
6291
|
{
|
|
6288
6292
|
axiosApi: e,
|
|
6289
|
-
realPath:
|
|
6293
|
+
realPath: f,
|
|
6290
6294
|
config: b
|
|
6291
6295
|
}
|
|
6292
6296
|
),
|
|
@@ -6317,9 +6321,9 @@ async function A1({
|
|
|
6317
6321
|
config: b,
|
|
6318
6322
|
defaultMetadataName: r,
|
|
6319
6323
|
speculationType: v,
|
|
6320
|
-
internalPath:
|
|
6324
|
+
internalPath: f,
|
|
6321
6325
|
hasAutor: !!d,
|
|
6322
|
-
hasCurrentNewPreview: !!
|
|
6326
|
+
hasCurrentNewPreview: !!h?.preview?.sizes,
|
|
6323
6327
|
hasPreloadImageUrl: !!N?.length
|
|
6324
6328
|
}),
|
|
6325
6329
|
configOriginAuditReport: z
|
|
@@ -6349,13 +6353,13 @@ const y1 = ({
|
|
|
6349
6353
|
scriptReplaces: d,
|
|
6350
6354
|
body_custom_elements: u
|
|
6351
6355
|
}) => {
|
|
6352
|
-
const
|
|
6356
|
+
const h = $c(c, l), m = Er[t]({
|
|
6353
6357
|
pathname: a,
|
|
6354
6358
|
slug: r,
|
|
6355
6359
|
config: o,
|
|
6356
6360
|
currentNew: c,
|
|
6357
6361
|
internalPath: i
|
|
6358
|
-
}), w = n.find((v) => v.key === "event_analytics"),
|
|
6362
|
+
}), w = n.find((v) => v.key === "event_analytics"), f = d.before.active, p = d.after.active, b = f ? d.before.customData ? d.before.customData : m : void 0, A = p ? d.after.customData ? d.after.customData : m : void 0;
|
|
6359
6363
|
return /* @__PURE__ */ g($, { children: [
|
|
6360
6364
|
/* @__PURE__ */ s(Ja, { name: "bodybefore", banners: n, replaces: b }),
|
|
6361
6365
|
e,
|
|
@@ -6364,7 +6368,7 @@ const y1 = ({
|
|
|
6364
6368
|
/* @__PURE__ */ s(
|
|
6365
6369
|
Wc,
|
|
6366
6370
|
{
|
|
6367
|
-
dimensionValues:
|
|
6371
|
+
dimensionValues: h,
|
|
6368
6372
|
event_analytics: w,
|
|
6369
6373
|
eventReplaces: m
|
|
6370
6374
|
}
|
|
@@ -6409,7 +6413,7 @@ function ql({
|
|
|
6409
6413
|
enableDrag: o,
|
|
6410
6414
|
onIndexChange: i
|
|
6411
6415
|
}) {
|
|
6412
|
-
const [c, l] = V(!1), [d, u] = V(0), [
|
|
6416
|
+
const [c, l] = V(!1), [d, u] = V(0), [h, m] = V(0), [w, f] = V(0), [p, b] = V(0), [A, v] = V(null), N = Ha(null), [C, y] = V(1), S = ue(() => {
|
|
6413
6417
|
if (r) return 1;
|
|
6414
6418
|
const x = N.current?.offsetWidth || window.innerWidth, k = n + a, q = Math.floor(x / k);
|
|
6415
6419
|
return Math.max(1, q);
|
|
@@ -6449,14 +6453,14 @@ function ql({
|
|
|
6449
6453
|
[r, n, a, S, z]
|
|
6450
6454
|
), F = ue(
|
|
6451
6455
|
(x) => {
|
|
6452
|
-
o && (u(x), m(x),
|
|
6456
|
+
o && (u(x), m(x), f(0), b(Date.now()), l(!0), document.body.classList.add("dragging"));
|
|
6453
6457
|
},
|
|
6454
6458
|
[o]
|
|
6455
6459
|
), Q = ue(
|
|
6456
6460
|
(x) => {
|
|
6457
6461
|
if (!c || !o) return;
|
|
6458
6462
|
const k = x - d, q = (n + a) * 1.2, H = e === 0 && k > 0, G = e === R && k < 0, W = H || G ? Math.sign(k) * Math.min(Math.abs(k), q) : k;
|
|
6459
|
-
m(x),
|
|
6463
|
+
m(x), f(W);
|
|
6460
6464
|
},
|
|
6461
6465
|
[c, d, o, e, R, n, a]
|
|
6462
6466
|
), B = ue(
|
|
@@ -6467,7 +6471,7 @@ function ql({
|
|
|
6467
6471
|
), L = ue(
|
|
6468
6472
|
(x) => {
|
|
6469
6473
|
if (!c || !o) return;
|
|
6470
|
-
const k =
|
|
6474
|
+
const k = h - d, q = Date.now() - p, H = Math.abs(k) / Math.max(q, 1), G = P(k), K = H > 0.5 && Math.abs(k) > 50 ? Math.max(G, 1) : G;
|
|
6471
6475
|
if (K > 0)
|
|
6472
6476
|
if (k > 0) {
|
|
6473
6477
|
const J = Math.max(0, e - K);
|
|
@@ -6476,11 +6480,11 @@ function ql({
|
|
|
6476
6480
|
const J = Math.min(R, e + K);
|
|
6477
6481
|
i(J);
|
|
6478
6482
|
}
|
|
6479
|
-
l(!1),
|
|
6483
|
+
l(!1), f(0), document.body.classList.remove("dragging"), document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", L), x.clientX === d && A?.dispatchEvent(new PointerEvent("click"));
|
|
6480
6484
|
},
|
|
6481
6485
|
[
|
|
6482
6486
|
c,
|
|
6483
|
-
|
|
6487
|
+
h,
|
|
6484
6488
|
d,
|
|
6485
6489
|
p,
|
|
6486
6490
|
e,
|
|
@@ -6546,14 +6550,14 @@ function C1(e) {
|
|
|
6546
6550
|
fullPageWidth: i = !1,
|
|
6547
6551
|
pagination: c = !1,
|
|
6548
6552
|
enableDrag: l = !0
|
|
6549
|
-
} = e, d = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [u,
|
|
6553
|
+
} = e, d = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [u, h] = V(0), [m, w] = V(!1);
|
|
6550
6554
|
Me(() => {
|
|
6551
6555
|
w(!0);
|
|
6552
6556
|
const O = document.getElementById("ssr-dummy_" + n);
|
|
6553
6557
|
O && O.remove();
|
|
6554
6558
|
}, []);
|
|
6555
6559
|
const {
|
|
6556
|
-
isDragging:
|
|
6560
|
+
isDragging: f,
|
|
6557
6561
|
translateOffset: p,
|
|
6558
6562
|
carrouselRef: b,
|
|
6559
6563
|
maxIndex: A,
|
|
@@ -6567,11 +6571,11 @@ function C1(e) {
|
|
|
6567
6571
|
cardGap: o,
|
|
6568
6572
|
fullPageWidth: i,
|
|
6569
6573
|
enableDrag: l,
|
|
6570
|
-
onIndexChange:
|
|
6574
|
+
onIndexChange: h
|
|
6571
6575
|
}), y = ue(
|
|
6572
6576
|
(O) => {
|
|
6573
6577
|
const P = Math.max(0, Math.min(O, A));
|
|
6574
|
-
|
|
6578
|
+
h(P);
|
|
6575
6579
|
},
|
|
6576
6580
|
[A]
|
|
6577
6581
|
), S = ue(() => {
|
|
@@ -6642,7 +6646,7 @@ function C1(e) {
|
|
|
6642
6646
|
style: {
|
|
6643
6647
|
gap: o,
|
|
6644
6648
|
margin: o === 0 ? "0" : "0 0.5rem 1rem",
|
|
6645
|
-
cursor: l ?
|
|
6649
|
+
cursor: l ? f ? "grabbing" : "grab" : "default",
|
|
6646
6650
|
justifyContent: "start !important"
|
|
6647
6651
|
},
|
|
6648
6652
|
...C,
|
|
@@ -6652,11 +6656,11 @@ function C1(e) {
|
|
|
6652
6656
|
className: "card",
|
|
6653
6657
|
style: {
|
|
6654
6658
|
transform: z,
|
|
6655
|
-
transition:
|
|
6659
|
+
transition: f ? "none" : "transform 300ms ease",
|
|
6656
6660
|
minWidth: i ? "100%" : r,
|
|
6657
6661
|
width: "min-content",
|
|
6658
|
-
userSelect:
|
|
6659
|
-
pointerEvents:
|
|
6662
|
+
userSelect: f ? "none" : "auto",
|
|
6663
|
+
pointerEvents: f ? "none" : "auto"
|
|
6660
6664
|
},
|
|
6661
6665
|
dangerouslySetInnerHTML: { __html: O }
|
|
6662
6666
|
},
|
|
@@ -6667,11 +6671,11 @@ function C1(e) {
|
|
|
6667
6671
|
className: "card",
|
|
6668
6672
|
style: {
|
|
6669
6673
|
transform: z,
|
|
6670
|
-
transition:
|
|
6674
|
+
transition: f ? "none" : "transform 300ms ease",
|
|
6671
6675
|
minWidth: i ? "100%" : r,
|
|
6672
6676
|
width: "min-content",
|
|
6673
|
-
userSelect:
|
|
6674
|
-
pointerEvents:
|
|
6677
|
+
userSelect: f ? "none" : "auto",
|
|
6678
|
+
pointerEvents: f ? "none" : "auto"
|
|
6675
6679
|
},
|
|
6676
6680
|
children: O
|
|
6677
6681
|
},
|
|
@@ -6741,7 +6745,7 @@ function it(e) {
|
|
|
6741
6745
|
}
|
|
6742
6746
|
);
|
|
6743
6747
|
}
|
|
6744
|
-
const
|
|
6748
|
+
const Pt = (e) => /* @__PURE__ */ s("div", { className: "su-flex su-flex-col sass-com-mid-content", children: e.children }), jl = (e) => e.replace(
|
|
6745
6749
|
/<script\b([^>]*)>/gi,
|
|
6746
6750
|
(t, n) => (
|
|
6747
6751
|
// Reemplaza o agrega type="text/deferred-banner" para que el browser no ejecute
|
|
@@ -6753,7 +6757,7 @@ const Rt = (e) => /* @__PURE__ */ s("div", { className: "su-flex su-flex-col sas
|
|
|
6753
6757
|
if (!a?.value || !a.show) return null;
|
|
6754
6758
|
const r = gs(a.value, n);
|
|
6755
6759
|
if (!r) return null;
|
|
6756
|
-
const { CONFIG_deferBanners: o } = I(), i =
|
|
6760
|
+
const { CONFIG_deferBanners: o } = I(), i = Dt(r, {}), c = o?.middle !== !1 ? jl(i) : i;
|
|
6757
6761
|
return /* @__PURE__ */ s(
|
|
6758
6762
|
"div",
|
|
6759
6763
|
{
|
|
@@ -6770,7 +6774,7 @@ const Rt = (e) => /* @__PURE__ */ s("div", { className: "su-flex su-flex-col sas
|
|
|
6770
6774
|
if (!a?.show) return null;
|
|
6771
6775
|
const r = gs(a.value, n);
|
|
6772
6776
|
if (!r) return null;
|
|
6773
|
-
const o =
|
|
6777
|
+
const o = Dt(r) ?? "", { CONFIG_deferBanners: i } = I(), c = i?.common !== !1 ? Gl(o) : o;
|
|
6774
6778
|
return /* @__PURE__ */ s(
|
|
6775
6779
|
"div",
|
|
6776
6780
|
{
|
|
@@ -6781,9 +6785,9 @@ const Rt = (e) => /* @__PURE__ */ s("div", { className: "su-flex su-flex-col sas
|
|
|
6781
6785
|
);
|
|
6782
6786
|
};
|
|
6783
6787
|
function _(e) {
|
|
6784
|
-
const { SUB_PUBLICATION_PREFIX_IN_ROUTES: t, LINK_REMOVE: n, CONFIG_buscar_html: a } = I(), { block_subPublication: r, LINK_REMOVE: o } = e, i = o ?? n, c = Fl(e.href), l = e.hasOwnProperty("href") && e.href ? (e.href ?? "").includes("/buscar") : !1, d = t?.tema && c, u = t?.buscar && l,
|
|
6788
|
+
const { SUB_PUBLICATION_PREFIX_IN_ROUTES: t, LINK_REMOVE: n, CONFIG_buscar_html: a } = I(), { block_subPublication: r, LINK_REMOVE: o } = e, i = o ?? n, c = Fl(e.href), l = e.hasOwnProperty("href") && e.href ? (e.href ?? "").includes("/buscar") : !1, d = t?.tema && c, u = t?.buscar && l, h = !r && !d && !u ? me() : "", m = /^(https?:)?\/\//.test(e.href) || /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e.href), w = (typeof e.href == "string" ? e.href : "").split("/")?.[1] === h.replace("/", ""), { LINK_REMOVE: f, ...p } = e, b = {
|
|
6785
6789
|
...p,
|
|
6786
|
-
href: (!m && !w ?
|
|
6790
|
+
href: (!m && !w ? h : "") + (h && e.href === "/" ? "" : e.href ?? "")
|
|
6787
6791
|
};
|
|
6788
6792
|
return b.href.startsWith("//") && (b.href = b.href.replace("/", "")), i && b.href.search(i) !== -1 && (b.href = b.href.replace(i, "")), a && l && !b.href.endsWith(".html") && (b.href = b.href.replace("/buscar", "/buscar.html")), m ? /* @__PURE__ */ s(
|
|
6789
6793
|
"a",
|
|
@@ -7274,7 +7278,7 @@ const Tr = ({
|
|
|
7274
7278
|
paths: o,
|
|
7275
7279
|
newsDescriptionSectionTag: i = "span",
|
|
7276
7280
|
speculationPrerenderClass: c
|
|
7277
|
-
} = e, { SHOW_TAG_BY_SECTION: l, SUB_PUBLICATION_PREFIX_IN_ROUTES: d } = I(), u = () => e?.authors[0]?.fullname ?? "Redacción",
|
|
7281
|
+
} = e, { SHOW_TAG_BY_SECTION: l, SUB_PUBLICATION_PREFIX_IN_ROUTES: d } = I(), u = () => e?.authors[0]?.fullname ?? "Redacción", h = () => {
|
|
7278
7282
|
if (e?.config?.showtime && e.config?.showauthor)
|
|
7279
7283
|
return `${u()} - ${ke(e.info?.date?.modified)}`;
|
|
7280
7284
|
if (e.config?.showauthor)
|
|
@@ -7285,7 +7289,7 @@ const Tr = ({
|
|
|
7285
7289
|
/* @__PURE__ */ s("span", { className: "sass-com-nd-correspondentName", children: u() }),
|
|
7286
7290
|
/* @__PURE__ */ s("span", { className: "sass-com-nd-correspondentSeparator", children: " - " }),
|
|
7287
7291
|
/* @__PURE__ */ s("span", { className: "sass-com-nd-correspondentTime", children: ke(e.info?.date?.modified) })
|
|
7288
|
-
] }) : e.config?.showauthor ? /* @__PURE__ */ s("span", { className: "sass-com-nd-correspondentName", children: u() }) : e?.config?.showtime ? /* @__PURE__ */ s("span", { className: "sass-com-nd-correspondentTime", children: ke(e.info?.date?.modified) }) : null, w = () => e.main.uppertitle ? /* @__PURE__ */ s("p", { className: "sass-com-nd-uppertitle", title: e.main.uppertitle, children: e.main.uppertitle }) : null,
|
|
7292
|
+
] }) : e.config?.showauthor ? /* @__PURE__ */ s("span", { className: "sass-com-nd-correspondentName", children: u() }) : e?.config?.showtime ? /* @__PURE__ */ s("span", { className: "sass-com-nd-correspondentTime", children: ke(e.info?.date?.modified) }) : null, w = () => e.main.uppertitle ? /* @__PURE__ */ s("p", { className: "sass-com-nd-uppertitle", title: e.main.uppertitle, children: e.main.uppertitle }) : null, f = () => {
|
|
7289
7293
|
if (l && a?.tags?.length && a.tags.length > 0) {
|
|
7290
7294
|
const p = a.tags[0], b = p.name;
|
|
7291
7295
|
return he.createElement(
|
|
@@ -7336,7 +7340,7 @@ const Tr = ({
|
|
|
7336
7340
|
children: /* @__PURE__ */ s($l, { noteShare: { ...t } })
|
|
7337
7341
|
}
|
|
7338
7342
|
),
|
|
7339
|
-
/* @__PURE__ */ s(
|
|
7343
|
+
/* @__PURE__ */ s(f, {}),
|
|
7340
7344
|
he.createElement(
|
|
7341
7345
|
e.isTitle ? "h1" : "h2",
|
|
7342
7346
|
{
|
|
@@ -7371,7 +7375,7 @@ const Tr = ({
|
|
|
7371
7375
|
_,
|
|
7372
7376
|
{
|
|
7373
7377
|
block_subPublication: d?.autor,
|
|
7374
|
-
"aria-label":
|
|
7378
|
+
"aria-label": h(),
|
|
7375
7379
|
className: "sass-com-nd-correspondentLink",
|
|
7376
7380
|
href: `/${e?.paths?.autor ?? "autor"}/${e?.authors[0]?.name}`,
|
|
7377
7381
|
children: m()
|
|
@@ -9109,7 +9113,7 @@ const Wl = (e) => {
|
|
|
9109
9113
|
]
|
|
9110
9114
|
}
|
|
9111
9115
|
);
|
|
9112
|
-
},
|
|
9116
|
+
}, Vt = (e) => {
|
|
9113
9117
|
const { PUBLIC_ENV: t } = I(), n = re("/facebook-black.svg");
|
|
9114
9118
|
return t !== "" && !e.forceSVG ? /* @__PURE__ */ s("img", { fetchPriority: "low", loading: "lazy", width: 17, height: 23, src: n, alt: "", ...e }) : /* @__PURE__ */ s(
|
|
9115
9119
|
"svg",
|
|
@@ -9234,7 +9238,7 @@ const Wl = (e) => {
|
|
|
9234
9238
|
url: (e) => `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,
|
|
9235
9239
|
icon: {
|
|
9236
9240
|
outline: (e) => /* @__PURE__ */ s(Es, { className: e, forceSVG: !0 }),
|
|
9237
|
-
solid: (e) => /* @__PURE__ */ s(
|
|
9241
|
+
solid: (e) => /* @__PURE__ */ s(Vt, { className: e, forceSVG: !0 })
|
|
9238
9242
|
}
|
|
9239
9243
|
},
|
|
9240
9244
|
X: {
|
|
@@ -9350,11 +9354,11 @@ const T1 = (e) => {
|
|
|
9350
9354
|
] }) }) });
|
|
9351
9355
|
}, Aa = (e) => {
|
|
9352
9356
|
const { currentPage: t, showNext: n, maxPages: a, pathname: r, query: o, block_subPublication: i } = e, c = (l, d, u) => {
|
|
9353
|
-
let
|
|
9357
|
+
let h = "";
|
|
9354
9358
|
const m = d.split("/");
|
|
9355
|
-
return m.indexOf("page") !== -1 && m.splice(
|
|
9356
|
-
|
|
9357
|
-
}), l === "next" ?
|
|
9359
|
+
return m.indexOf("page") !== -1 && m.splice(h.indexOf("page") - 1, m.length - 1), m.forEach((w, f) => {
|
|
9360
|
+
f !== 0 && (h += `/${w}`);
|
|
9361
|
+
}), l === "next" ? h += `/page/${t + 1}${u ? `?query=${u}` : ""}` : h += `/page/${t - 1}${u ? `?query=${u}` : ""}`;
|
|
9358
9362
|
};
|
|
9359
9363
|
return (t > 1 || n && t < a) && /* @__PURE__ */ g("section", { className: "sass-com-np-content", children: [
|
|
9360
9364
|
t > 1 && /* @__PURE__ */ s(
|
|
@@ -9401,9 +9405,9 @@ const T1 = (e) => {
|
|
|
9401
9405
|
isLarge: d,
|
|
9402
9406
|
priorityHigh: u = !1
|
|
9403
9407
|
}) => {
|
|
9404
|
-
const { CONFIG_videoClipUrl:
|
|
9408
|
+
const { CONFIG_videoClipUrl: h } = I(), m = e ?? "imagen", w = Array.isArray(t) ? t : [], f = () => {
|
|
9405
9409
|
const v = w[0]?.clip;
|
|
9406
|
-
return v ? /* @__PURE__ */ s("div", { className: "sass-com-sc1-videoClipContainer", children: /* @__PURE__ */ s("video", { autoPlay: !0, loop: !0, muted: !0, playsInline: !0, children: /* @__PURE__ */ s("source", { src: `${
|
|
9410
|
+
return v ? /* @__PURE__ */ s("div", { className: "sass-com-sc1-videoClipContainer", children: /* @__PURE__ */ s("video", { autoPlay: !0, loop: !0, muted: !0, playsInline: !0, children: /* @__PURE__ */ s("source", { src: `${h}${v}`, type: "video/mp4" }) }) }) : null;
|
|
9407
9411
|
}, p = () => {
|
|
9408
9412
|
const v = w[0]?.code;
|
|
9409
9413
|
return v ? /* @__PURE__ */ s(
|
|
@@ -9461,7 +9465,7 @@ const T1 = (e) => {
|
|
|
9461
9465
|
case "videoEmbedded":
|
|
9462
9466
|
return w.some((v) => v.type === "video-embedded" && v.code) ? /* @__PURE__ */ s(b, {}) : /* @__PURE__ */ s(A, {});
|
|
9463
9467
|
case "clip":
|
|
9464
|
-
return w[0]?.clip ? /* @__PURE__ */ s(
|
|
9468
|
+
return w[0]?.clip ? /* @__PURE__ */ s(f, {}) : /* @__PURE__ */ s(A, {});
|
|
9465
9469
|
case "iframe":
|
|
9466
9470
|
return n?.iframe ? /* @__PURE__ */ s(
|
|
9467
9471
|
"div",
|
|
@@ -9485,11 +9489,11 @@ const T1 = (e) => {
|
|
|
9485
9489
|
overImage: l = "default",
|
|
9486
9490
|
isTitle: d,
|
|
9487
9491
|
priorityHigh: u = !1,
|
|
9488
|
-
isLarge:
|
|
9492
|
+
isLarge: h,
|
|
9489
9493
|
paths: m,
|
|
9490
9494
|
keywords: w,
|
|
9491
|
-
speculationPrerenderClass:
|
|
9492
|
-
} = e, p =
|
|
9495
|
+
speculationPrerenderClass: f
|
|
9496
|
+
} = e, p = f ? `${f} sass-com-sc1-image` : "sass-com-sc1-image";
|
|
9493
9497
|
return /* @__PURE__ */ g(
|
|
9494
9498
|
"section",
|
|
9495
9499
|
{
|
|
@@ -9510,7 +9514,7 @@ const T1 = (e) => {
|
|
|
9510
9514
|
linkTarget: a?.link?.target,
|
|
9511
9515
|
linkTitle: t?.title?.section,
|
|
9512
9516
|
isVideo: i,
|
|
9513
|
-
isLarge:
|
|
9517
|
+
isLarge: h,
|
|
9514
9518
|
priorityHigh: u
|
|
9515
9519
|
}
|
|
9516
9520
|
) }),
|
|
@@ -9719,7 +9723,7 @@ const T1 = (e) => {
|
|
|
9719
9723
|
loading: "lazy"
|
|
9720
9724
|
}
|
|
9721
9725
|
), P1 = async (e) => {
|
|
9722
|
-
const { autor: t, autorIcon: n, socialIconsFilled: a = !1, socialIconsCustom: r = !1 } = e, o = n, { PUBLIC_LNG: i } = I(), c = i === "en", l = t?.addtional, d = t?.info?.image?.sizes?.[0]?.url ?? "", u = t?.info?.fullname ?? "",
|
|
9726
|
+
const { autor: t, autorIcon: n, socialIconsFilled: a = !1, socialIconsCustom: r = !1 } = e, o = n, { PUBLIC_LNG: i } = I(), c = i === "en", l = t?.addtional, d = t?.info?.image?.sizes?.[0]?.url ?? "", u = t?.info?.fullname ?? "", h = t?.info?.email ?? "", m = l?.USER_SHOWEMAIL === !0 || l?.USER_MOSTRAR_MAIL?.toUpperCase() === "TRUE", w = l?.USER_SHOWBIO ?? !1, f = c ? l?.USER_DESCRIPCION_EN || l?.USER_MIBIO_EN || "" : l?.USER_DESCRIPCION || l?.USER_MIBIO || "", p = Jt(t?.addtional?.USER_USERFB ?? ""), b = Jt(t?.addtional?.USER_USERIG ?? ""), A = Jt(t?.addtional?.USER_USERTWT ?? ""), v = Jt(t?.addtional?.USER_USERLIN ?? ""), N = () => !m || !h || h.trim() === "" ? !1 : fd(h), C = (y) => `mailto:${y.trim()}`;
|
|
9723
9727
|
return /* @__PURE__ */ s(
|
|
9724
9728
|
"section",
|
|
9725
9729
|
{
|
|
@@ -9745,14 +9749,14 @@ const T1 = (e) => {
|
|
|
9745
9749
|
N() && /* @__PURE__ */ s(
|
|
9746
9750
|
"a",
|
|
9747
9751
|
{
|
|
9748
|
-
href: C(
|
|
9752
|
+
href: C(h),
|
|
9749
9753
|
className: "sass-com-ah1-email",
|
|
9750
|
-
"aria-label": `Enviar correo electrónico a ${
|
|
9751
|
-
title: `Enviar correo a ${
|
|
9752
|
-
children:
|
|
9754
|
+
"aria-label": `Enviar correo electrónico a ${h}`,
|
|
9755
|
+
title: `Enviar correo a ${h}`,
|
|
9756
|
+
children: h
|
|
9753
9757
|
}
|
|
9754
9758
|
),
|
|
9755
|
-
w && /* @__PURE__ */ s("p", { className: "sass-com-ah1-description", children:
|
|
9759
|
+
w && /* @__PURE__ */ s("p", { className: "sass-com-ah1-description", children: f }),
|
|
9756
9760
|
/* @__PURE__ */ g("div", { className: "sass-com-ah1-social", children: [
|
|
9757
9761
|
p && /* @__PURE__ */ s(
|
|
9758
9762
|
"a",
|
|
@@ -9761,7 +9765,7 @@ const T1 = (e) => {
|
|
|
9761
9765
|
target: "_blank",
|
|
9762
9766
|
className: `sass-com-ah1-social-link ${a ? "sass-com-ah1-social-filled" : "sass-com-ah1-social-stroke"}`,
|
|
9763
9767
|
rel: "noreferrer",
|
|
9764
|
-
children: r ? Zt(a ? "facebook-black" : "facebook", "Facebook", "sass-com-ah1-social-icon sass-social-icon-facebook") : a ? /* @__PURE__ */ s(
|
|
9768
|
+
children: r ? Zt(a ? "facebook-black" : "facebook", "Facebook", "sass-com-ah1-social-icon sass-social-icon-facebook") : a ? /* @__PURE__ */ s(Vt, { className: "sass-com-ah1-social-icon sass-social-icon-facebook", forceSVG: !0 }) : /* @__PURE__ */ s(Pn, { className: "sass-com-ah1-facebook-icon sass-com-ah1-social-icon-facebook", forceSVG: !0 })
|
|
9765
9769
|
}
|
|
9766
9770
|
),
|
|
9767
9771
|
b && /* @__PURE__ */ s(
|
|
@@ -9799,7 +9803,7 @@ const T1 = (e) => {
|
|
|
9799
9803
|
}
|
|
9800
9804
|
);
|
|
9801
9805
|
}, O1 = async (e) => {
|
|
9802
|
-
const { autor: t, autorIcon: n, socialIconsFilled: a = !1 } = e, r = n, { PUBLIC_LNG: o } = I(), i = o === "en", c = t?.addtional, l = t?.info?.image?.sizes?.[0]?.url ?? "", d = t?.info?.fullname ?? "", u = t?.info?.email ?? "",
|
|
9806
|
+
const { autor: t, autorIcon: n, socialIconsFilled: a = !1 } = e, r = n, { PUBLIC_LNG: o } = I(), i = o === "en", c = t?.addtional, l = t?.info?.image?.sizes?.[0]?.url ?? "", d = t?.info?.fullname ?? "", u = t?.info?.email ?? "", h = c?.USER_SHOWEMAIL === !0 || c?.USER_MOSTRAR_MAIL?.toUpperCase() === "TRUE", m = c?.USER_SHOWBIO ?? !1, w = i ? c?.USER_DESCRIPCION_EN || c?.USER_MIBIO_EN || "" : c?.USER_DESCRIPCION || c?.USER_MIBIO || "", f = t?.addtional?.USER_USERFB ?? "", p = t?.addtional?.USER_USERIG ?? "", b = t?.addtional?.USER_USERTWT ?? "", A = t?.addtional?.USER_USERLIN ?? "";
|
|
9803
9807
|
return /* @__PURE__ */ s(
|
|
9804
9808
|
"section",
|
|
9805
9809
|
{
|
|
@@ -9824,21 +9828,21 @@ const T1 = (e) => {
|
|
|
9824
9828
|
className: "sass-com-ah2-contentAuthor su-stack-center su-md:items-start",
|
|
9825
9829
|
children: [
|
|
9826
9830
|
/* @__PURE__ */ s("h1", { className: "sass-com-ah2-name", children: d }),
|
|
9827
|
-
|
|
9831
|
+
h && /* @__PURE__ */ s("p", { className: "sass-com-ah2-email", children: u }),
|
|
9828
9832
|
m && /* @__PURE__ */ s("p", { className: "sass-com-ah2-description", children: w }),
|
|
9829
9833
|
/* @__PURE__ */ g(
|
|
9830
9834
|
"div",
|
|
9831
9835
|
{
|
|
9832
9836
|
className: "sass-com-ah2-contenSocialNetwork su-flex su-items-center su-gap-4 su-justify-start",
|
|
9833
9837
|
children: [
|
|
9834
|
-
|
|
9838
|
+
f && /* @__PURE__ */ s(
|
|
9835
9839
|
"a",
|
|
9836
9840
|
{
|
|
9837
|
-
href:
|
|
9841
|
+
href: f,
|
|
9838
9842
|
target: "_blank",
|
|
9839
9843
|
className: a ? "sass-com-ah2-socialIconFilled" : "sass-com-ah2-socialIconStroke",
|
|
9840
9844
|
rel: "noreferrer",
|
|
9841
|
-
children: a ? /* @__PURE__ */ s(
|
|
9845
|
+
children: a ? /* @__PURE__ */ s(Vt, { className: "sass-com-ah2-blackIconFaceBook sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook", forceSVG: !0 }) : /* @__PURE__ */ s(Pn, { className: "sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook", forceSVG: !0 })
|
|
9842
9846
|
}
|
|
9843
9847
|
),
|
|
9844
9848
|
p && /* @__PURE__ */ s(
|
|
@@ -10001,7 +10005,7 @@ const T1 = (e) => {
|
|
|
10001
10005
|
{
|
|
10002
10006
|
isTitle: !0,
|
|
10003
10007
|
cutSubtitle: !1,
|
|
10004
|
-
...
|
|
10008
|
+
...Bt(
|
|
10005
10009
|
{
|
|
10006
10010
|
...e?.video,
|
|
10007
10011
|
info: {
|
|
@@ -10037,7 +10041,7 @@ const T1 = (e) => {
|
|
|
10037
10041
|
Array.isArray(t) && t.map((n, a) => /* @__PURE__ */ Ye(
|
|
10038
10042
|
gd,
|
|
10039
10043
|
{
|
|
10040
|
-
...
|
|
10044
|
+
...Bt(n, !0, !1, !1),
|
|
10041
10045
|
key: a,
|
|
10042
10046
|
paths: e.paths
|
|
10043
10047
|
}
|
|
@@ -10228,7 +10232,7 @@ const T1 = (e) => {
|
|
|
10228
10232
|
/* @__PURE__ */ g("div", { className: "sass-com-sb-mainContent", children: [
|
|
10229
10233
|
/* @__PURE__ */ g("div", { children: [
|
|
10230
10234
|
a,
|
|
10231
|
-
e.map((
|
|
10235
|
+
e.map((h, m) => /* @__PURE__ */ s(Ad, { item: h, index: m }, m))
|
|
10232
10236
|
] }),
|
|
10233
10237
|
/* @__PURE__ */ s(yd, { socials: t, copyright: n })
|
|
10234
10238
|
] })
|
|
@@ -10662,7 +10666,7 @@ const T1 = (e) => {
|
|
|
10662
10666
|
) : /* @__PURE__ */ s("div", { className: "sass-com-ts-chipStyled", children: n.name }, a))
|
|
10663
10667
|
] }) });
|
|
10664
10668
|
}, Ed = async (e) => {
|
|
10665
|
-
const { autor: t } = e, { SUB_PUBLICATION_PREFIX_IN_ROUTES: n, PUBLIC_LNG: a } = I(), r = me(), o = a === "en", i = t?.addtional, c = i?.USER_SHOWBIO ?? !1, l = t?.info?.name ?? "", d = t?.info?.fullname ?? "", u = t?.info?.image?.sizes?.[0]?.url ?? "",
|
|
10669
|
+
const { autor: t } = e, { SUB_PUBLICATION_PREFIX_IN_ROUTES: n, PUBLIC_LNG: a } = I(), r = me(), o = a === "en", i = t?.addtional, c = i?.USER_SHOWBIO ?? !1, l = t?.info?.name ?? "", d = t?.info?.fullname ?? "", u = t?.info?.image?.sizes?.[0]?.url ?? "", h = o ? i?.USER_DESCRIPCION_EN || i?.USER_MIBIO_EN || "" : i?.USER_DESCRIPCION || i?.USER_MIBIO || "", m = t?.addtional?.USER_USERFB ?? "", w = t?.addtional?.USER_USERIG ?? "", f = t?.addtional?.USER_USERTWT ?? "", p = t?.addtional?.USER_USERLIN ?? "", b = `${r}/${e.paths.autor}/${l}`, N = h.replace(/<[^>]*>/g, "").replace(/&[^;]+;/g, " ").trim().length > 360, C = `ja2-bio-toggle-${l}`;
|
|
10666
10670
|
return c && !!t && /* @__PURE__ */ s("section", { className: "sass-com-ja2-contentBox", children: /* @__PURE__ */ g("div", { className: "sass-com-ja2-content", children: [
|
|
10667
10671
|
/* @__PURE__ */ g("div", { className: "sass-com-ja2-avatarContent", children: [
|
|
10668
10672
|
/* @__PURE__ */ s(
|
|
@@ -10699,7 +10703,7 @@ const T1 = (e) => {
|
|
|
10699
10703
|
{
|
|
10700
10704
|
href: m,
|
|
10701
10705
|
target: "_blank",
|
|
10702
|
-
"aria-label":
|
|
10706
|
+
"aria-label": h,
|
|
10703
10707
|
rel: "noreferrer",
|
|
10704
10708
|
children: /* @__PURE__ */ s(
|
|
10705
10709
|
"svg",
|
|
@@ -10726,7 +10730,7 @@ const T1 = (e) => {
|
|
|
10726
10730
|
{
|
|
10727
10731
|
href: w,
|
|
10728
10732
|
target: "_blank",
|
|
10729
|
-
"aria-label":
|
|
10733
|
+
"aria-label": h,
|
|
10730
10734
|
rel: "noreferrer",
|
|
10731
10735
|
children: /* @__PURE__ */ g(
|
|
10732
10736
|
"svg",
|
|
@@ -10774,12 +10778,12 @@ const T1 = (e) => {
|
|
|
10774
10778
|
)
|
|
10775
10779
|
}
|
|
10776
10780
|
),
|
|
10777
|
-
|
|
10781
|
+
f && /* @__PURE__ */ s(
|
|
10778
10782
|
"a",
|
|
10779
10783
|
{
|
|
10780
|
-
href:
|
|
10784
|
+
href: f,
|
|
10781
10785
|
target: "_blank",
|
|
10782
|
-
"aria-label":
|
|
10786
|
+
"aria-label": h,
|
|
10783
10787
|
rel: "noreferrer",
|
|
10784
10788
|
children: /* @__PURE__ */ s(
|
|
10785
10789
|
"svg",
|
|
@@ -10805,7 +10809,7 @@ const T1 = (e) => {
|
|
|
10805
10809
|
{
|
|
10806
10810
|
href: p,
|
|
10807
10811
|
target: "_blank",
|
|
10808
|
-
"aria-label":
|
|
10812
|
+
"aria-label": h,
|
|
10809
10813
|
rel: "noreferrer",
|
|
10810
10814
|
children: /* @__PURE__ */ g(
|
|
10811
10815
|
"svg",
|
|
@@ -10864,7 +10868,7 @@ const T1 = (e) => {
|
|
|
10864
10868
|
"div",
|
|
10865
10869
|
{
|
|
10866
10870
|
className: "sass-com-ja2-article sass-com-ja2-article-clamp",
|
|
10867
|
-
dangerouslySetInnerHTML: { __html:
|
|
10871
|
+
dangerouslySetInnerHTML: { __html: h }
|
|
10868
10872
|
}
|
|
10869
10873
|
),
|
|
10870
10874
|
/* @__PURE__ */ g("div", { className: "sass-com-ja2-bioFooter", children: [
|
|
@@ -10923,7 +10927,7 @@ const T1 = (e) => {
|
|
|
10923
10927
|
{
|
|
10924
10928
|
className: "sass-com-ja2-article",
|
|
10925
10929
|
dangerouslySetInnerHTML: {
|
|
10926
|
-
__html: `${
|
|
10930
|
+
__html: `${h} <a aria-label="${l}" href="${b}">${String(
|
|
10927
10931
|
e.texts.authorViewMore ?? "Ver más"
|
|
10928
10932
|
)}</a>`
|
|
10929
10933
|
}
|
|
@@ -11158,12 +11162,12 @@ function D1(e) {
|
|
|
11158
11162
|
isLarge: l,
|
|
11159
11163
|
priorityHigh: d,
|
|
11160
11164
|
share: u,
|
|
11161
|
-
overImage:
|
|
11165
|
+
overImage: h,
|
|
11162
11166
|
isTitle: m,
|
|
11163
11167
|
paths: w
|
|
11164
|
-
} = e, { CONFIG_videoClipUrl:
|
|
11168
|
+
} = e, { CONFIG_videoClipUrl: f } = I(), p = o?.homepreview ?? "imagen", b = () => {
|
|
11165
11169
|
const y = e.videos?.[0]?.clip;
|
|
11166
|
-
return y ? /* @__PURE__ */ s("div", { className: "homeCardVideoClipContainer", children: /* @__PURE__ */ s("video", { autoPlay: !0, loop: !0, muted: !0, playsInline: !0, width: "480", height: "535", children: /* @__PURE__ */ s("source", { src: `${
|
|
11170
|
+
return y ? /* @__PURE__ */ s("div", { className: "homeCardVideoClipContainer", children: /* @__PURE__ */ s("video", { autoPlay: !0, loop: !0, muted: !0, playsInline: !0, width: "480", height: "535", children: /* @__PURE__ */ s("source", { src: `${f}${y}`, type: "video/mp4" }) }) }) : null;
|
|
11167
11171
|
}, A = () => {
|
|
11168
11172
|
if (!e.videos) return null;
|
|
11169
11173
|
const y = e.videos?.[0]?.code;
|
|
@@ -11296,7 +11300,7 @@ function D1(e) {
|
|
|
11296
11300
|
preview: r,
|
|
11297
11301
|
share: u,
|
|
11298
11302
|
config: o,
|
|
11299
|
-
overImage:
|
|
11303
|
+
overImage: h,
|
|
11300
11304
|
isTitle: m,
|
|
11301
11305
|
paths: w,
|
|
11302
11306
|
keywords: i
|
|
@@ -11455,7 +11459,7 @@ const bt = (e) => {
|
|
|
11455
11459
|
imageSize: l,
|
|
11456
11460
|
showSuper: d,
|
|
11457
11461
|
textPosition: u,
|
|
11458
|
-
heightImageOverwrite:
|
|
11462
|
+
heightImageOverwrite: h,
|
|
11459
11463
|
heightImageOverwriteMobile: m
|
|
11460
11464
|
} = e;
|
|
11461
11465
|
return /* @__PURE__ */ g("section", { className: "su-grid su-w-full su-gap-8 sass-bmd-dd-content", children: [
|
|
@@ -11476,7 +11480,7 @@ const bt = (e) => {
|
|
|
11476
11480
|
config: i,
|
|
11477
11481
|
paths: e.paths,
|
|
11478
11482
|
textPosition: u,
|
|
11479
|
-
heightImageOverwrite:
|
|
11483
|
+
heightImageOverwrite: h,
|
|
11480
11484
|
heightImageOverwriteMobile: m,
|
|
11481
11485
|
speculationPrerenderClass: e.speculationPrerenderClass
|
|
11482
11486
|
}
|
|
@@ -11685,7 +11689,7 @@ const bt = (e) => {
|
|
|
11685
11689
|
className: "su-grid sass-bd-dn-newsContent",
|
|
11686
11690
|
children: [
|
|
11687
11691
|
/* @__PURE__ */ s("div", { className: "banner-context", style: { order: 1 }, children: e.banner }),
|
|
11688
|
-
Array.isArray(l) && l.map((u,
|
|
11692
|
+
Array.isArray(l) && l.map((u, h) => {
|
|
11689
11693
|
const m = {
|
|
11690
11694
|
...u,
|
|
11691
11695
|
main: {
|
|
@@ -11696,14 +11700,14 @@ const bt = (e) => {
|
|
|
11696
11700
|
}
|
|
11697
11701
|
}
|
|
11698
11702
|
};
|
|
11699
|
-
return /* @__PURE__ */ s("div", { style: { order:
|
|
11703
|
+
return /* @__PURE__ */ s("div", { style: { order: h }, children: /* @__PURE__ */ s(
|
|
11700
11704
|
Qe,
|
|
11701
11705
|
{
|
|
11702
11706
|
...m,
|
|
11703
11707
|
isVideo: a,
|
|
11704
11708
|
paths: e.paths
|
|
11705
11709
|
}
|
|
11706
|
-
) },
|
|
11710
|
+
) }, h);
|
|
11707
11711
|
})
|
|
11708
11712
|
]
|
|
11709
11713
|
}
|
|
@@ -11909,7 +11913,7 @@ const j1 = (e) => {
|
|
|
11909
11913
|
}
|
|
11910
11914
|
) }, r)
|
|
11911
11915
|
), r++, o++);
|
|
11912
|
-
const c = e.isVideo ?
|
|
11916
|
+
const c = e.isVideo ? Bt(
|
|
11913
11917
|
t[i],
|
|
11914
11918
|
e.showVideoTime,
|
|
11915
11919
|
e.showVideosubtitle,
|
|
@@ -12100,7 +12104,7 @@ const V1 = (e) => {
|
|
|
12100
12104
|
jr,
|
|
12101
12105
|
{
|
|
12102
12106
|
goTo: e.goTo,
|
|
12103
|
-
mainNew:
|
|
12107
|
+
mainNew: Bt(r),
|
|
12104
12108
|
paths: e.paths
|
|
12105
12109
|
}
|
|
12106
12110
|
),
|
|
@@ -12128,7 +12132,7 @@ const V1 = (e) => {
|
|
|
12128
12132
|
/* @__PURE__ */ g("div", { className: "sass-bd-dv-newsContent", children: [
|
|
12129
12133
|
/* @__PURE__ */ s("div", { className: "banner-context", style: { order: 1 }, children: e.banner }),
|
|
12130
12134
|
Array.isArray(i) && i.map((c, l) => {
|
|
12131
|
-
const d =
|
|
12135
|
+
const d = Bt(c), u = {
|
|
12132
12136
|
...d,
|
|
12133
12137
|
main: {
|
|
12134
12138
|
...d.main,
|
|
@@ -12381,7 +12385,7 @@ const V1 = (e) => {
|
|
|
12381
12385
|
3: 1,
|
|
12382
12386
|
8: 2,
|
|
12383
12387
|
13: 3
|
|
12384
|
-
}, u = d ? Object.keys(d).map((
|
|
12388
|
+
}, u = d ? Object.keys(d).map((h) => parseInt(h)) : [];
|
|
12385
12389
|
switch (e.option) {
|
|
12386
12390
|
case "op1":
|
|
12387
12391
|
return /* @__PURE__ */ s(
|
|
@@ -12410,7 +12414,7 @@ const V1 = (e) => {
|
|
|
12410
12414
|
showNext: !(t.length < e.NEWS_PER_SECTION)
|
|
12411
12415
|
}
|
|
12412
12416
|
),
|
|
12413
|
-
children: Array.isArray(t) && t?.map((
|
|
12417
|
+
children: Array.isArray(t) && t?.map((h, m) => /* @__PURE__ */ g(ts, { children: [
|
|
12414
12418
|
u.includes(m + 1) && /* @__PURE__ */ s(
|
|
12415
12419
|
"div",
|
|
12416
12420
|
{
|
|
@@ -12428,7 +12432,7 @@ const V1 = (e) => {
|
|
|
12428
12432
|
Ca,
|
|
12429
12433
|
{
|
|
12430
12434
|
autorIcon: e.autorIcon,
|
|
12431
|
-
item:
|
|
12435
|
+
item: h,
|
|
12432
12436
|
option: r,
|
|
12433
12437
|
paths: e.paths,
|
|
12434
12438
|
speculationPrerenderClass: e.speculationPrerender?.length && m < e.speculationPrerender.length ? e.speculationPrerender.class : void 0
|
|
@@ -12480,7 +12484,7 @@ const V1 = (e) => {
|
|
|
12480
12484
|
showNext: !(t.length < e.NEWS_PER_SECTION)
|
|
12481
12485
|
}
|
|
12482
12486
|
),
|
|
12483
|
-
children: Array.isArray(t) && t?.map((
|
|
12487
|
+
children: Array.isArray(t) && t?.map((h, m) => /* @__PURE__ */ g(ts, { children: [
|
|
12484
12488
|
u.includes(m + 1) && /* @__PURE__ */ s("div", { className: "sass-pg-sec-ItemCustomContent", children: /* @__PURE__ */ s(
|
|
12485
12489
|
Ee,
|
|
12486
12490
|
{
|
|
@@ -12492,7 +12496,7 @@ const V1 = (e) => {
|
|
|
12492
12496
|
Ca,
|
|
12493
12497
|
{
|
|
12494
12498
|
autorIcon: e.autorIcon,
|
|
12495
|
-
item:
|
|
12499
|
+
item: h,
|
|
12496
12500
|
option: r,
|
|
12497
12501
|
paths: e.paths,
|
|
12498
12502
|
speculationPrerenderClass: e.speculationPrerender?.length && m < e.speculationPrerender.length ? e.speculationPrerender.class : void 0
|
|
@@ -12784,7 +12788,7 @@ const V1 = (e) => {
|
|
|
12784
12788
|
o = o.replace(c, y);
|
|
12785
12789
|
continue;
|
|
12786
12790
|
}
|
|
12787
|
-
const u = d.preview?.sizes?.[0],
|
|
12791
|
+
const u = d.preview?.sizes?.[0], h = u ? await fe(u.url) : "", m = d.info.section?.url ?? "#", w = d.info.section?.name ?? "Sección", f = d.info.link?.url ?? "#", p = d.main?.title.article ?? "Título", b = (await Promise.all(
|
|
12788
12792
|
d.preview?.sizes?.map(async (y) => {
|
|
12789
12793
|
const S = await fe(y.url);
|
|
12790
12794
|
return y.width < 200 ? `<source srcset="${S}" media="(width < 750px)"/>` : `<source srcset="${S}" media="(width >= 750px)"/>`;
|
|
@@ -12793,11 +12797,11 @@ const V1 = (e) => {
|
|
|
12793
12797
|
<span data-src="${l}">
|
|
12794
12798
|
<picture style='display: flex'>
|
|
12795
12799
|
${b}
|
|
12796
|
-
<img fetchPriority='low' loading='lazy' src="${
|
|
12800
|
+
<img fetchPriority='low' loading='lazy' src="${h}" alt="${String(t.noteRelatedImageAlt ?? "")} ${p}" />
|
|
12797
12801
|
</picture>
|
|
12798
12802
|
<div>
|
|
12799
12803
|
<a class="section" href="${m}">${w}</a>
|
|
12800
|
-
<a class="title" href="${
|
|
12804
|
+
<a class="title" href="${f}">${p}</a>
|
|
12801
12805
|
</div>
|
|
12802
12806
|
</span>
|
|
12803
12807
|
`, C = c.replace(v, N);
|
|
@@ -12830,33 +12834,33 @@ async function tu(e, t) {
|
|
|
12830
12834
|
let d = o[1] ?? "";
|
|
12831
12835
|
d && (d = eu(d));
|
|
12832
12836
|
const u = /data-type\s*=\s*["']?video["']?/i.test(l) || /video-type\s*=\s*["']?embedded["']?/i.test(l);
|
|
12833
|
-
let
|
|
12837
|
+
let h = l;
|
|
12834
12838
|
if (u && d)
|
|
12835
12839
|
try {
|
|
12836
12840
|
const m = await t.iframe({ path: d }), w = t.schema ? await t.schema(d) : null;
|
|
12837
12841
|
if (m && m.data) {
|
|
12838
|
-
const
|
|
12842
|
+
const f = m.data.data[0];
|
|
12839
12843
|
let p = "";
|
|
12840
12844
|
const b = l.match(
|
|
12841
12845
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
12842
12846
|
), A = b && b[1] ? b[1].trim() : "";
|
|
12843
|
-
|
|
12847
|
+
f.info && f.info.type === "video-youtube" ? p = `<iframe
|
|
12844
12848
|
loading="lazy"
|
|
12845
12849
|
frameborder="0"
|
|
12846
12850
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
12847
12851
|
referrerpolicy="strict-origin-when-cross-origin"
|
|
12848
12852
|
allowfullscreen
|
|
12849
12853
|
style="width: 100%; height: auto; min-height: 400px;"
|
|
12850
|
-
src="https://www.youtube.com/embed/${
|
|
12854
|
+
src="https://www.youtube.com/embed/${f.main?.code || f.main?.youtubeid || ""}"></iframe>` : f.info && f.info.type === "video-link" ? p = `<iframe
|
|
12851
12855
|
loading="lazy"
|
|
12852
12856
|
frameborder="0"
|
|
12853
12857
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
12854
12858
|
referrerpolicy="strict-origin-when-cross-origin"
|
|
12855
12859
|
allowfullscreen
|
|
12856
12860
|
style="width: 100%; height: auto; min-height: 400px;"
|
|
12857
|
-
src="${
|
|
12858
|
-
const v = A ||
|
|
12859
|
-
|
|
12861
|
+
src="${f.main?.code || ""}"></iframe>` : p = f.main?.code || "";
|
|
12862
|
+
const v = A || f.main?.description || "";
|
|
12863
|
+
h = `
|
|
12860
12864
|
<figure class="videoFigure">
|
|
12861
12865
|
${w && w.data && w.data.data ? `<script type="application/ld+json">${In(
|
|
12862
12866
|
JSON.stringify(w.data.data)
|
|
@@ -12867,9 +12871,9 @@ async function tu(e, t) {
|
|
|
12867
12871
|
`;
|
|
12868
12872
|
}
|
|
12869
12873
|
} catch (m) {
|
|
12870
|
-
console.error("replaceVideoSpansWithIframes error for", d, m),
|
|
12874
|
+
console.error("replaceVideoSpansWithIframes error for", d, m), h = l;
|
|
12871
12875
|
}
|
|
12872
|
-
a = c, n +=
|
|
12876
|
+
a = c, n += h, r.lastIndex = c;
|
|
12873
12877
|
}
|
|
12874
12878
|
return n += e.slice(a), n;
|
|
12875
12879
|
}
|
|
@@ -13070,7 +13074,7 @@ const ru = () => /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
13070
13074
|
{
|
|
13071
13075
|
className: `sass-com-ja3-imageContent ${m}`,
|
|
13072
13076
|
children: Array.isArray(t.authors) && t.authors?.map(
|
|
13073
|
-
async (w,
|
|
13077
|
+
async (w, f) => w.image ? /* @__PURE__ */ s(
|
|
13074
13078
|
"img",
|
|
13075
13079
|
{
|
|
13076
13080
|
fetchPriority: "low",
|
|
@@ -13141,7 +13145,7 @@ function lu(e) {
|
|
|
13141
13145
|
const t = e.children, n = `${e.slot_id}-`, a = e.visibleItems, r = e.cardGap ?? 20;
|
|
13142
13146
|
function o(c) {
|
|
13143
13147
|
const l = [], d = [];
|
|
13144
|
-
let u = "",
|
|
13148
|
+
let u = "", h = !0;
|
|
13145
13149
|
for (let m = 0; m < c; m++) {
|
|
13146
13150
|
const w = `[data-index="${m}"]:checked ~ .carrousel-pagination li:nth-child(${m + 1}) {
|
|
13147
13151
|
background-color:var(--carrousel-pagination-background-color)
|
|
@@ -13166,7 +13170,7 @@ function lu(e) {
|
|
|
13166
13170
|
}
|
|
13167
13171
|
}
|
|
13168
13172
|
}`), l.push(
|
|
13169
|
-
`<input type="radio" name="${n + "card"}" ${
|
|
13173
|
+
`<input type="radio" name="${n + "card"}" ${h ? "checked" : ""} id="${n + "input-check-" + m}" data-index="${m}" />`
|
|
13170
13174
|
), d.push(`
|
|
13171
13175
|
<label for="${n + "input-check-" + m}" data-index="${m}" class="visible-arrow left">
|
|
13172
13176
|
<svg width="16" height="16" view-box="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -13179,7 +13183,7 @@ function lu(e) {
|
|
|
13179
13183
|
<path d="M1 8.99973H12.17L7.29 13.8797C6.9 14.2697 6.9 14.9097 7.29 15.2997C7.68 15.6897 8.31 15.6897 8.7 15.2997L15.29 8.70973C15.68 8.31973 15.68 7.68973 15.29 7.29973L8.71 0.699727C8.32 0.309727 7.69 0.309727 7.3 0.699727C6.91 1.08973 6.91 1.71973 7.3 2.10973L12.17 6.99973H1C0.45 6.99973 0 7.44973 0 7.99973C0 8.54973 0.45 8.99973 1 8.99973Z" fill="currentColor" />
|
|
13180
13184
|
</svg>
|
|
13181
13185
|
</label>` : ""}
|
|
13182
|
-
`),
|
|
13186
|
+
`), h = !1;
|
|
13183
13187
|
}
|
|
13184
13188
|
return `
|
|
13185
13189
|
<style>${u}</style>
|
|
@@ -13233,7 +13237,7 @@ const du = (e) => /* @__PURE__ */ s(
|
|
|
13233
13237
|
url: (e) => `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,
|
|
13234
13238
|
icon: {
|
|
13235
13239
|
outline: (e) => /* @__PURE__ */ s(Es, { className: e, forceSVG: !0 }),
|
|
13236
|
-
solid: (e) => /* @__PURE__ */ s(
|
|
13240
|
+
solid: (e) => /* @__PURE__ */ s(Vt, { className: e, forceSVG: !0 })
|
|
13237
13241
|
}
|
|
13238
13242
|
},
|
|
13239
13243
|
X: {
|
|
@@ -13336,9 +13340,9 @@ const hu = async (e) => {
|
|
|
13336
13340
|
CONFIG_shareOnlyWhatsApp: r,
|
|
13337
13341
|
DATE_TIMEZONE: o = "America/Mexico_City",
|
|
13338
13342
|
CONFIG_commentsV2: i
|
|
13339
|
-
} = I(), c = me(), l = (
|
|
13340
|
-
(
|
|
13341
|
-
).join(", "),
|
|
13343
|
+
} = I(), c = me(), l = (f) => `${c}/${e.paths.autor}/${f}`, d = t.authors.map(
|
|
13344
|
+
(f) => f.internaluser ? `<a href="${l(f.name)}">${f.fullname}</a>` : f.fullname
|
|
13345
|
+
).join(", "), h = t.authors.length === 1 ? "sass-com-ja4--singleAuthor" : "sass-com-ja4--multiAuthor", w = `sass-com-ja4-imageContent--count${Math.min(t.authors.length, 6)}`;
|
|
13342
13346
|
return t.config?.showauthor && /* @__PURE__ */ s("div", { className: "sass-com-ja4-content sass-journalist-articule-4", children: /* @__PURE__ */ g("div", { className: "sass-com-ja4-avatarContent", children: [
|
|
13343
13347
|
/* @__PURE__ */ g("div", { className: "sass-com-ja4-socialActionsRow", children: [
|
|
13344
13348
|
/* @__PURE__ */ g("div", { className: "sass-com-ja4-socialActionDiv", children: [
|
|
@@ -13428,37 +13432,37 @@ const hu = async (e) => {
|
|
|
13428
13432
|
/* @__PURE__ */ g(
|
|
13429
13433
|
"section",
|
|
13430
13434
|
{
|
|
13431
|
-
className: `sass-com-ja4-journalistSection ${
|
|
13435
|
+
className: `sass-com-ja4-journalistSection ${h}`,
|
|
13432
13436
|
children: [
|
|
13433
13437
|
/* @__PURE__ */ g(
|
|
13434
13438
|
"div",
|
|
13435
13439
|
{
|
|
13436
|
-
className: `sass-com-ja4-authorsInfoRow ${
|
|
13440
|
+
className: `sass-com-ja4-authorsInfoRow ${h}`,
|
|
13437
13441
|
children: [
|
|
13438
13442
|
/* @__PURE__ */ s(
|
|
13439
13443
|
"div",
|
|
13440
13444
|
{
|
|
13441
13445
|
className: `sass-com-ja4-imageContent ${w}`,
|
|
13442
13446
|
children: Array.isArray(t.authors) && t.authors?.map(
|
|
13443
|
-
async (
|
|
13447
|
+
async (f, p) => f.image ? /* @__PURE__ */ s(
|
|
13444
13448
|
"img",
|
|
13445
13449
|
{
|
|
13446
13450
|
fetchPriority: "low",
|
|
13447
13451
|
loading: "lazy",
|
|
13448
|
-
alt: "Imagen de perfil de " +
|
|
13452
|
+
alt: "Imagen de perfil de " + f.fullname,
|
|
13449
13453
|
className: "sass-com-ja4-imageStyled sass-com-ja4-imageAutor su-object-cover su-flex-center",
|
|
13450
13454
|
src: await fe(
|
|
13451
|
-
|
|
13455
|
+
f.image.sizes[0]?.url || ""
|
|
13452
13456
|
)
|
|
13453
13457
|
},
|
|
13454
|
-
|
|
13458
|
+
f.fullname
|
|
13455
13459
|
) : /* @__PURE__ */ s(
|
|
13456
13460
|
"div",
|
|
13457
13461
|
{
|
|
13458
13462
|
className: "sass-com-ja4-contentIconStyled sass-com-ja4-imageAutor su-flex-center",
|
|
13459
13463
|
children: e.autorIcon
|
|
13460
13464
|
},
|
|
13461
|
-
|
|
13465
|
+
f.fullname
|
|
13462
13466
|
)
|
|
13463
13467
|
)
|
|
13464
13468
|
}
|
|
@@ -13466,7 +13470,7 @@ const hu = async (e) => {
|
|
|
13466
13470
|
/* @__PURE__ */ s(
|
|
13467
13471
|
"div",
|
|
13468
13472
|
{
|
|
13469
|
-
className: `sass-com-ja4-journalistInfoLink ${
|
|
13473
|
+
className: `sass-com-ja4-journalistInfoLink ${h}`,
|
|
13470
13474
|
dangerouslySetInnerHTML: {
|
|
13471
13475
|
__html: `${a.JournalistPrefix} <h3>${d ?? "Redaccion"}</h3>`
|
|
13472
13476
|
}
|
|
@@ -13504,7 +13508,7 @@ const hu = async (e) => {
|
|
|
13504
13508
|
url: (e) => `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,
|
|
13505
13509
|
icon: {
|
|
13506
13510
|
outline: (e) => /* @__PURE__ */ s(Es, { className: e, forceSVG: !0 }),
|
|
13507
|
-
solid: (e) => /* @__PURE__ */ s(
|
|
13511
|
+
solid: (e) => /* @__PURE__ */ s(Vt, { className: e, forceSVG: !0 }),
|
|
13508
13512
|
custom: en("/ja-facebook.svg", "Facebook")
|
|
13509
13513
|
}
|
|
13510
13514
|
},
|
|
@@ -13607,13 +13611,13 @@ const gu = async (e) => {
|
|
|
13607
13611
|
EXPERIMENTAL_commentsV2Paths: c
|
|
13608
13612
|
} = I(), l = t.info?.link?.internal ?? "", d = i || (c ?? []).some(
|
|
13609
13613
|
(A) => l === A || l.endsWith(A)
|
|
13610
|
-
), u = me(),
|
|
13611
|
-
(A) => A.internaluser ? `<a href="${
|
|
13612
|
-
).join(", "),
|
|
13614
|
+
), u = me(), h = (A) => `${u}/${e.paths.autor}/${A}`, m = t.authors.map(
|
|
13615
|
+
(A) => A.internaluser ? `<a href="${h(A.name)}">${A.fullname}</a>` : A.fullname
|
|
13616
|
+
).join(", "), f = t.authors.length === 1 ? "sass-com-ja5--singleAuthor" : "sass-com-ja5--multiAuthor", b = `sass-com-ja5-imageContent--count${Math.min(t.authors.length, 6)}`;
|
|
13613
13617
|
return t.config?.showauthor && /* @__PURE__ */ s(
|
|
13614
13618
|
"div",
|
|
13615
13619
|
{
|
|
13616
|
-
className: `sass-com-ja5-content sass-journalist-articule-5 ${
|
|
13620
|
+
className: `sass-com-ja5-content sass-journalist-articule-5 ${f}`,
|
|
13617
13621
|
children: /* @__PURE__ */ g("div", { className: "sass-com-ja5-avatarContent", children: [
|
|
13618
13622
|
/* @__PURE__ */ g("div", { className: "sass-com-ja5-socialActionsRow", children: [
|
|
13619
13623
|
/* @__PURE__ */ g("div", { className: "sass-com-ja5-socialActionDiv", children: [
|
|
@@ -13747,7 +13751,7 @@ const gu = async (e) => {
|
|
|
13747
13751
|
{
|
|
13748
13752
|
className: [
|
|
13749
13753
|
"sass-com-ja5-journalistSection",
|
|
13750
|
-
|
|
13754
|
+
f,
|
|
13751
13755
|
t.config?.showtime && "sass-com-ja5-journalistSection--withDate"
|
|
13752
13756
|
].filter(Boolean).join(" "),
|
|
13753
13757
|
children: [
|
|
@@ -13777,7 +13781,7 @@ const gu = async (e) => {
|
|
|
13777
13781
|
/* @__PURE__ */ s(
|
|
13778
13782
|
"div",
|
|
13779
13783
|
{
|
|
13780
|
-
className: `sass-com-ja5-journalistInfoLink ${
|
|
13784
|
+
className: `sass-com-ja5-journalistInfoLink ${f}`,
|
|
13781
13785
|
dangerouslySetInnerHTML: {
|
|
13782
13786
|
__html: `${a.JournalistPrefix} <span class="sass-com-ja5-journalistNames">${m ?? "Redaccion"}</span>`
|
|
13783
13787
|
}
|
|
@@ -13813,24 +13817,24 @@ const gu = async (e) => {
|
|
|
13813
13817
|
), yu = async (e) => {
|
|
13814
13818
|
const { PUBLIC_IS_OFFLINE: t } = I();
|
|
13815
13819
|
if (!(t === "true")) {
|
|
13816
|
-
const d = /<img\b[^>]*\bsrc=["']([^"']+)["']/g, u = [...e.matchAll(d)],
|
|
13817
|
-
for (const
|
|
13818
|
-
const p =
|
|
13820
|
+
const d = /<img\b[^>]*\bsrc=["']([^"']+)["']/g, u = [...e.matchAll(d)], h = {};
|
|
13821
|
+
for (const f of u) {
|
|
13822
|
+
const p = f[1] ?? "", b = e.includes(p) ? { url: p } : null;
|
|
13819
13823
|
if (b) {
|
|
13820
13824
|
const A = await fe(b.url) || "";
|
|
13821
|
-
|
|
13825
|
+
h[p] = A;
|
|
13822
13826
|
}
|
|
13823
13827
|
}
|
|
13824
13828
|
const m = {}, w = /<figure\b[^>]*>[\s\S]*?<\/figure>/g;
|
|
13825
|
-
for (const
|
|
13826
|
-
const p =
|
|
13829
|
+
for (const f of [...e.matchAll(w)]) {
|
|
13830
|
+
const p = f[0].match(/<img\b[^>]*\bsrc=["']([^"']+)["']/), b = f[0].match(/<figcaption[^>]*>([\s\S]*?)<\/figcaption>/i);
|
|
13827
13831
|
p?.[1] && b?.[1] && (m[p[1]] = b[1].replace(/<[^>]+>/g, "").trim());
|
|
13828
13832
|
}
|
|
13829
13833
|
return e.replace(
|
|
13830
13834
|
d,
|
|
13831
|
-
(
|
|
13832
|
-
const b =
|
|
13833
|
-
return `<img fetchPriority='low' loading='lazy' alt='${(m[p] || b?.[1] || "imagen").replace(/'/g, "'")}' src="${
|
|
13835
|
+
(f, p) => {
|
|
13836
|
+
const b = f.match(/\btitle=["']([^"']*)["']/);
|
|
13837
|
+
return `<img fetchPriority='low' loading='lazy' alt='${(m[p] || b?.[1] || "imagen").replace(/'/g, "'")}' src="${h[p] || p}"`;
|
|
13834
13838
|
}
|
|
13835
13839
|
);
|
|
13836
13840
|
}
|
|
@@ -13841,9 +13845,9 @@ const gu = async (e) => {
|
|
|
13841
13845
|
i = a;
|
|
13842
13846
|
const d = o.exec(a);
|
|
13843
13847
|
if (!d) break;
|
|
13844
|
-
const u = d[0],
|
|
13845
|
-
r.add(
|
|
13846
|
-
const m = u.match(/<figcaption[^>]*>([\s\S]*?)<\/figcaption>/i), w = m ? m[1].replace(/<[^>]+>/g, "").trim() : null,
|
|
13848
|
+
const u = d[0], h = d[1] ?? "";
|
|
13849
|
+
r.add(h);
|
|
13850
|
+
const m = u.match(/<figcaption[^>]*>([\s\S]*?)<\/figcaption>/i), w = m ? m[1].replace(/<[^>]+>/g, "").trim() : null, f = u.match(/<img\b[^>]*\balt=["']([^"']*)["']/), p = u.match(/<img\b[^>]*\btitle=["']([^"']*)["']/), b = w || f?.[1] || p?.[1] || "imagen", A = h.match(/__scale=([^&"']+)/), v = A ? decodeURIComponent(A[1]) : null;
|
|
13847
13851
|
let N = 0, C = 0;
|
|
13848
13852
|
if (v) {
|
|
13849
13853
|
const z = v.match(/w:(\d+)/), O = v.match(/h:(\d+)/);
|
|
@@ -13854,13 +13858,13 @@ const gu = async (e) => {
|
|
|
13854
13858
|
sizes: [
|
|
13855
13859
|
{
|
|
13856
13860
|
scale: v || `w:${N},h:${C},t:2`,
|
|
13857
|
-
url:
|
|
13861
|
+
url: h,
|
|
13858
13862
|
width: N,
|
|
13859
13863
|
height: C
|
|
13860
13864
|
}
|
|
13861
13865
|
],
|
|
13862
13866
|
original: {
|
|
13863
|
-
url:
|
|
13867
|
+
url: h.split("?")[0],
|
|
13864
13868
|
width: N,
|
|
13865
13869
|
height: C
|
|
13866
13870
|
},
|
|
@@ -13875,9 +13879,9 @@ const gu = async (e) => {
|
|
|
13875
13879
|
}
|
|
13876
13880
|
const c = /<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g, l = [...a.matchAll(c)];
|
|
13877
13881
|
for (const d of l) {
|
|
13878
|
-
const u = d[0],
|
|
13879
|
-
if (r.has(
|
|
13880
|
-
const m = u.match(/\balt=["']([^"']*)["']/), w = u.match(/\btitle=["']([^"']*)["']/),
|
|
13882
|
+
const u = d[0], h = d[1] ?? "";
|
|
13883
|
+
if (r.has(h)) continue;
|
|
13884
|
+
const m = u.match(/\balt=["']([^"']*)["']/), w = u.match(/\btitle=["']([^"']*)["']/), f = m?.[1] || w?.[1] || "imagen", p = h.match(/__scale=([^&"']+)/), b = p ? decodeURIComponent(p[1]) : null;
|
|
13881
13885
|
let A = 0, v = 0;
|
|
13882
13886
|
if (b) {
|
|
13883
13887
|
const T = b.match(/w:(\d+)/), R = b.match(/h:(\d+)/);
|
|
@@ -13888,18 +13892,18 @@ const gu = async (e) => {
|
|
|
13888
13892
|
sizes: [
|
|
13889
13893
|
{
|
|
13890
13894
|
scale: b || `w:${A},h:${v},t:2`,
|
|
13891
|
-
url:
|
|
13895
|
+
url: h,
|
|
13892
13896
|
width: A,
|
|
13893
13897
|
height: v
|
|
13894
13898
|
}
|
|
13895
13899
|
],
|
|
13896
13900
|
original: {
|
|
13897
|
-
url:
|
|
13901
|
+
url: h.split("?")[0],
|
|
13898
13902
|
width: A,
|
|
13899
13903
|
height: v
|
|
13900
13904
|
},
|
|
13901
13905
|
copyright: !1,
|
|
13902
|
-
description:
|
|
13906
|
+
description: f,
|
|
13903
13907
|
photographer: !1
|
|
13904
13908
|
},
|
|
13905
13909
|
isLarge: !1,
|
|
@@ -13928,10 +13932,10 @@ const gu = async (e) => {
|
|
|
13928
13932
|
}
|
|
13929
13933
|
}
|
|
13930
13934
|
let l = 0, d = e;
|
|
13931
|
-
const u = /<(p|li|ul|ol)>\s*<\/\1>/gi,
|
|
13935
|
+
const u = /<(p|li|ul|ol)>\s*<\/\1>/gi, h = /<(p|li|ul|ol)>(?:&(?:nbsp|#160|ensp|emsp|#8194|#8195);)*?<\/\1>/gi;
|
|
13932
13936
|
do
|
|
13933
|
-
d = e.replace(u, "").replace(
|
|
13934
|
-
while (d.match(u) || d.match(
|
|
13937
|
+
d = e.replace(u, "").replace(h, "");
|
|
13938
|
+
while (d.match(u) || d.match(h));
|
|
13935
13939
|
return d = d.replace(
|
|
13936
13940
|
/<p\b[^>]*?>[\s\S]*?<\/p>|<(ul|ol)[^>]*?>[\s\S]*?<\/\1>/g,
|
|
13937
13941
|
(m) => {
|
|
@@ -13955,13 +13959,13 @@ const gu = async (e) => {
|
|
|
13955
13959
|
for (const o of n) {
|
|
13956
13960
|
const [i, c = ""] = o, l = o.index, d = l + i.length;
|
|
13957
13961
|
a += e.slice(r, l);
|
|
13958
|
-
const
|
|
13959
|
-
(
|
|
13962
|
+
const h = [...c.matchAll(/data-src="([^"]+)"/g)].map(
|
|
13963
|
+
(f) => f[1]
|
|
13960
13964
|
).map(
|
|
13961
|
-
(
|
|
13965
|
+
(f) => `<img fetchPriority='low' loading='lazy' alt='imagen' src="${f}" class="carrusel-note-item" width="800" height="469"/>`
|
|
13962
13966
|
), m = "gallery_embeded" + l.toString(), w = lu({
|
|
13963
13967
|
slot_id: m,
|
|
13964
|
-
children:
|
|
13968
|
+
children: h,
|
|
13965
13969
|
visibleItems: 1,
|
|
13966
13970
|
cardGap: 0
|
|
13967
13971
|
});
|
|
@@ -13977,7 +13981,7 @@ const gu = async (e) => {
|
|
|
13977
13981
|
(v) => l.includes(v?.[0]?.info.link.internal || "")
|
|
13978
13982
|
);
|
|
13979
13983
|
if (!d || !d[0]) continue;
|
|
13980
|
-
const u = d[0].preview?.sizes?.[0],
|
|
13984
|
+
const u = d[0].preview?.sizes?.[0], h = u ? await fe(u.url) : "", m = d[0].info.section?.url ?? "#", w = d[0].info.section?.name ?? "Sección", f = d[0].info.link?.url ?? "#", p = d[0].main?.title.article ?? "Título", b = (await Promise.all(
|
|
13981
13985
|
d[0].preview?.sizes?.map(async (v, N) => {
|
|
13982
13986
|
const C = await fe(v.url);
|
|
13983
13987
|
return N === 0 ? `<source srcset="${C}" media="(width >= 900px)"/>` : `<source srcset="${C}" media="(width < 900px)"/>`;
|
|
@@ -13986,11 +13990,11 @@ const gu = async (e) => {
|
|
|
13986
13990
|
<span data-src="${l}">
|
|
13987
13991
|
<picture style='display: flex'>
|
|
13988
13992
|
${b}
|
|
13989
|
-
<img fetchPriority='low' loading='lazy' src="${
|
|
13993
|
+
<img fetchPriority='low' loading='lazy' src="${h}" alt="${String(t.noteRelatedImageAlt ?? "")} ${p}" />
|
|
13990
13994
|
</picture>
|
|
13991
13995
|
<div>
|
|
13992
13996
|
<a class="section" href="${m}">${w}</a>
|
|
13993
|
-
<a class="title" href="${
|
|
13997
|
+
<a class="title" href="${f}">${p}</a>
|
|
13994
13998
|
</div>
|
|
13995
13999
|
</span>
|
|
13996
14000
|
`;
|
|
@@ -14015,11 +14019,11 @@ async function Su(e, t) {
|
|
|
14015
14019
|
}
|
|
14016
14020
|
A !== -1 && A < v ? (l += 1, d = A + 4) : (l -= 1, d = v + 6);
|
|
14017
14021
|
}
|
|
14018
|
-
const
|
|
14022
|
+
const h = d, m = e.slice(i, h);
|
|
14019
14023
|
let w = null;
|
|
14020
|
-
const
|
|
14024
|
+
const f = /<span\b([^>]*)>/gi;
|
|
14021
14025
|
let p;
|
|
14022
|
-
for (; (p =
|
|
14026
|
+
for (; (p = f.exec(m)) !== null; ) {
|
|
14023
14027
|
const A = p[1];
|
|
14024
14028
|
if (!A) break;
|
|
14025
14029
|
if (/data-type\s*=\s*["']?video["']?/i.test(A)) {
|
|
@@ -14080,7 +14084,7 @@ async function Su(e, t) {
|
|
|
14080
14084
|
}
|
|
14081
14085
|
else
|
|
14082
14086
|
b = m;
|
|
14083
|
-
a =
|
|
14087
|
+
a = h, n += b, r.lastIndex = h;
|
|
14084
14088
|
}
|
|
14085
14089
|
return n += e.slice(a), n = Au(n), n;
|
|
14086
14090
|
}
|
|
@@ -14095,17 +14099,17 @@ async function Eu(e) {
|
|
|
14095
14099
|
socials: c,
|
|
14096
14100
|
getVideos: l,
|
|
14097
14101
|
commonServices: d
|
|
14098
|
-
} = e, u = t?.info?.section?.slug,
|
|
14102
|
+
} = e, u = t?.info?.section?.slug, h = u ? { type: "seccion", value: u } : { type: "general" };
|
|
14099
14103
|
let m = t?.body?.rendered ?? "";
|
|
14100
14104
|
m = m.replace(
|
|
14101
14105
|
/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,
|
|
14102
14106
|
""
|
|
14103
|
-
), m = m.replace(/ /g, ""), m = Cu(m, n,
|
|
14107
|
+
), m = m.replace(/ /g, ""), m = Cu(m, n, h), m = Nu(m), m = await yu(m), m = await xu(
|
|
14104
14108
|
m,
|
|
14105
14109
|
e.texts,
|
|
14106
14110
|
a
|
|
14107
14111
|
), m = await Su(m, l), m = wu(m), m = bu(m);
|
|
14108
|
-
const w = t.main.sources ?? [], { NEWS_JOURNALIST_COMPONENT:
|
|
14112
|
+
const w = t.main.sources ?? [], { NEWS_JOURNALIST_COMPONENT: f, CONFIG_blockDefaultTwitterHydrator: p } = I(), b = t.config.articlepreview === at.fotoGaleria && t.hascontent?.hasgalleryimages;
|
|
14109
14113
|
return /* @__PURE__ */ g($, { children: [
|
|
14110
14114
|
o !== "liveblogs" && e.showHeaderImage ? b ? /* @__PURE__ */ s(
|
|
14111
14115
|
cu,
|
|
@@ -14132,8 +14136,8 @@ async function Eu(e) {
|
|
|
14132
14136
|
)
|
|
14133
14137
|
}
|
|
14134
14138
|
),
|
|
14135
|
-
/* @__PURE__ */ s(Ee, { banners: n, name: "block_1", scope:
|
|
14136
|
-
/* @__PURE__ */ s("div", { className: "sass-pg-nrs-journalistArticleContent", children:
|
|
14139
|
+
/* @__PURE__ */ s(Ee, { banners: n, name: "block_1", scope: h }),
|
|
14140
|
+
/* @__PURE__ */ s("div", { className: "sass-pg-nrs-journalistArticleContent", children: f === "op1" ? /* @__PURE__ */ s(
|
|
14137
14141
|
ou,
|
|
14138
14142
|
{
|
|
14139
14143
|
autorIcon: e.autorIcon,
|
|
@@ -14143,7 +14147,7 @@ async function Eu(e) {
|
|
|
14143
14147
|
noteShare: e.noteShare,
|
|
14144
14148
|
paths: e.paths
|
|
14145
14149
|
}
|
|
14146
|
-
) :
|
|
14150
|
+
) : f === "op2" ? /* @__PURE__ */ s(
|
|
14147
14151
|
hu,
|
|
14148
14152
|
{
|
|
14149
14153
|
autorIcon: e.autorIcon,
|
|
@@ -14183,7 +14187,7 @@ async function Eu(e) {
|
|
|
14183
14187
|
slug: o,
|
|
14184
14188
|
getVideos: l,
|
|
14185
14189
|
newsRelatedListResponses: r ?? [],
|
|
14186
|
-
scope:
|
|
14190
|
+
scope: h
|
|
14187
14191
|
}
|
|
14188
14192
|
),
|
|
14189
14193
|
w.length > 0 && /* @__PURE__ */ g("div", { className: "sass-pg-nrs-noteSource", children: [
|
|
@@ -14212,10 +14216,10 @@ const Tu = (e) => {
|
|
|
14212
14216
|
news: l,
|
|
14213
14217
|
newsRelatedResponses: d = [],
|
|
14214
14218
|
newsRelatedListResponses: u = [],
|
|
14215
|
-
itemList:
|
|
14219
|
+
itemList: h = [],
|
|
14216
14220
|
socials: m,
|
|
14217
14221
|
getVideos: w,
|
|
14218
|
-
scope:
|
|
14222
|
+
scope: f,
|
|
14219
14223
|
customSummary: p,
|
|
14220
14224
|
subtitleBeforeImage: b,
|
|
14221
14225
|
headerSectionStyles: A
|
|
@@ -14232,7 +14236,7 @@ const Tu = (e) => {
|
|
|
14232
14236
|
banners: c,
|
|
14233
14237
|
newsRelatedResponses: d,
|
|
14234
14238
|
newsRelatedListResponses: u,
|
|
14235
|
-
itemList:
|
|
14239
|
+
itemList: h,
|
|
14236
14240
|
slug: r,
|
|
14237
14241
|
getVideos: w,
|
|
14238
14242
|
noteShare: o,
|
|
@@ -14244,7 +14248,7 @@ const Tu = (e) => {
|
|
|
14244
14248
|
headerSectionStyles: A
|
|
14245
14249
|
}
|
|
14246
14250
|
),
|
|
14247
|
-
/* @__PURE__ */ s(Ee, { banners: c ?? [], name: "block_3", scope:
|
|
14251
|
+
/* @__PURE__ */ s(Ee, { banners: c ?? [], name: "block_3", scope: f })
|
|
14248
14252
|
] });
|
|
14249
14253
|
}, $1 = async (e) => {
|
|
14250
14254
|
const {
|
|
@@ -14259,7 +14263,7 @@ const Tu = (e) => {
|
|
|
14259
14263
|
getVideos: d
|
|
14260
14264
|
} = e;
|
|
14261
14265
|
if (!r || !r[0]) return;
|
|
14262
|
-
const u = r[0]?.info?.section?.slug,
|
|
14266
|
+
const u = r[0]?.info?.section?.slug, h = u ? { type: "seccion", value: u } : { type: "general" };
|
|
14263
14267
|
return /* @__PURE__ */ g($, { children: [
|
|
14264
14268
|
/* @__PURE__ */ s(
|
|
14265
14269
|
Yd,
|
|
@@ -14271,7 +14275,7 @@ const Tu = (e) => {
|
|
|
14271
14275
|
banners: e.banners,
|
|
14272
14276
|
headerSectionStyles: e.headerSectionStyles,
|
|
14273
14277
|
newsDescriptionSectionTag: e.newsDescriptionSectionTag,
|
|
14274
|
-
scope:
|
|
14278
|
+
scope: h,
|
|
14275
14279
|
subtitleBeforeImage: e.subtitleBeforeImage
|
|
14276
14280
|
}
|
|
14277
14281
|
),
|
|
@@ -14284,8 +14288,8 @@ const Tu = (e) => {
|
|
|
14284
14288
|
itemList: c,
|
|
14285
14289
|
ranking: t,
|
|
14286
14290
|
readestCustomStyles: e.readestCustomStyles,
|
|
14287
|
-
bannerTop: /* @__PURE__ */ s(Ee, { banners: n ?? [], name: "right_1", scope:
|
|
14288
|
-
banner: /* @__PURE__ */ s(Ee, { banners: n ?? [], name: "right_2", scope:
|
|
14291
|
+
bannerTop: /* @__PURE__ */ s(Ee, { banners: n ?? [], name: "right_1", scope: h }),
|
|
14292
|
+
banner: /* @__PURE__ */ s(Ee, { banners: n ?? [], name: "right_2", scope: h }),
|
|
14289
14293
|
complement: /* @__PURE__ */ g("div", { id: "comentarios", className: "sass-pg-news-complementContent", suppressHydrationWarning: !0, children: [
|
|
14290
14294
|
a.length > 0 && /* @__PURE__ */ s(
|
|
14291
14295
|
Ed,
|
|
@@ -14329,7 +14333,7 @@ const Tu = (e) => {
|
|
|
14329
14333
|
noteShare: e.noteShare,
|
|
14330
14334
|
paths: e.paths,
|
|
14331
14335
|
commonServices: e.commonServices,
|
|
14332
|
-
scope:
|
|
14336
|
+
scope: h,
|
|
14333
14337
|
customSummary: e.customSummary,
|
|
14334
14338
|
subtitleBeforeImage: e.subtitleBeforeImage,
|
|
14335
14339
|
headerSectionStyles: e.headerSectionStyles
|
|
@@ -14374,7 +14378,7 @@ const Tu = (e) => {
|
|
|
14374
14378
|
/* @__PURE__ */ s("button", { className: "sass-pg-buscar-buttonStyled", type: "submit", children: /* @__PURE__ */ s(Iu, { className: "sass-pg-buscar-searchStyled" }) })
|
|
14375
14379
|
] })
|
|
14376
14380
|
}
|
|
14377
|
-
),
|
|
14381
|
+
), qt = ({ className: e }) => /* @__PURE__ */ s(
|
|
14378
14382
|
"svg",
|
|
14379
14383
|
{
|
|
14380
14384
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -14410,7 +14414,7 @@ const Tu = (e) => {
|
|
|
14410
14414
|
errorPasswordInvalid: "La contraseña no es válida",
|
|
14411
14415
|
errorVerificationCodeRequired: "Debes ingresar el código de verificación",
|
|
14412
14416
|
errorUnexpected: "Error inesperado"
|
|
14413
|
-
},
|
|
14417
|
+
}, Tt = {
|
|
14414
14418
|
email: { label: "Email" },
|
|
14415
14419
|
given_name: { label: "Nombre" },
|
|
14416
14420
|
family_name: { label: "Apellido" },
|
|
@@ -14419,11 +14423,11 @@ const Tu = (e) => {
|
|
|
14419
14423
|
};
|
|
14420
14424
|
function Lu(e) {
|
|
14421
14425
|
return {
|
|
14422
|
-
email: { label: e?.email ??
|
|
14423
|
-
given_name: { label: e?.given_name ??
|
|
14424
|
-
family_name: { label: e?.family_name ??
|
|
14425
|
-
password: { label: e?.password ??
|
|
14426
|
-
confirmPassword: { label: e?.confirmPassword ??
|
|
14426
|
+
email: { label: e?.email ?? Tt.email.label, required: !0 },
|
|
14427
|
+
given_name: { label: e?.given_name ?? Tt.given_name.label, required: !0 },
|
|
14428
|
+
family_name: { label: e?.family_name ?? Tt.family_name.label, required: !0 },
|
|
14429
|
+
password: { label: e?.password ?? Tt.password.label, required: !0 },
|
|
14430
|
+
confirmPassword: { label: e?.confirmPassword ?? Tt.confirmPassword.label, required: !0 }
|
|
14427
14431
|
};
|
|
14428
14432
|
}
|
|
14429
14433
|
const Oe = [
|
|
@@ -14440,10 +14444,10 @@ const Oe = [
|
|
|
14440
14444
|
{ label: "Usa un símbolo", test: Oe[4] }
|
|
14441
14445
|
];
|
|
14442
14446
|
function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
14443
|
-
const a = { ...Uu, ...e?.comentarios }, r =
|
|
14447
|
+
const a = { ...Uu, ...e?.comentarios }, r = Ot(
|
|
14444
14448
|
() => Lu(e?.comentarios?.registerForm),
|
|
14445
14449
|
[e?.comentarios?.registerForm]
|
|
14446
|
-
), o =
|
|
14450
|
+
), o = Ot(
|
|
14447
14451
|
() => [
|
|
14448
14452
|
{ label: a.passwordRuleMinLength, test: Oe[0] },
|
|
14449
14453
|
{ label: a.passwordRuleNumber, test: Oe[1] },
|
|
@@ -14452,7 +14456,7 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14452
14456
|
{ label: a.passwordRuleSymbol, test: Oe[4] }
|
|
14453
14457
|
],
|
|
14454
14458
|
[a.passwordRuleMinLength, a.passwordRuleNumber, a.passwordRuleLowercase, a.passwordRuleUppercase, a.passwordRuleSymbol]
|
|
14455
|
-
), [i, c] = V({}), [l, d] = V(!1), [u,
|
|
14459
|
+
), [i, c] = V({}), [l, d] = V(!1), [u, h] = V(!1), [m, w] = V(null), [f, p] = V(
|
|
14456
14460
|
"register"
|
|
14457
14461
|
), b = async () => {
|
|
14458
14462
|
if (t.PUBLIC_ENV === "local") {
|
|
@@ -14464,13 +14468,13 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14464
14468
|
}, A = (y, S) => {
|
|
14465
14469
|
c((T) => ({ ...T, [y]: S }));
|
|
14466
14470
|
}, v = async (y) => {
|
|
14467
|
-
y.preventDefault(), w(null),
|
|
14471
|
+
y.preventDefault(), w(null), h(!0);
|
|
14468
14472
|
try {
|
|
14469
14473
|
const S = Object.keys(r).filter((F) => !["username", "password", "confirmPassword"].includes(F)).map((F) => ({ Name: F, Value: i[F] }));
|
|
14470
14474
|
if (S.some((F) => {
|
|
14471
14475
|
if (!F.Value || F.Value.trim() === "") return !0;
|
|
14472
14476
|
}))
|
|
14473
|
-
return
|
|
14477
|
+
return h(!1), w(a.errorCompleteFields);
|
|
14474
14478
|
if (i.password !== i.confirmPassword) {
|
|
14475
14479
|
w(a.errorPasswordMismatch);
|
|
14476
14480
|
return;
|
|
@@ -14515,14 +14519,14 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14515
14519
|
} catch (S) {
|
|
14516
14520
|
console.log(S), w(S?.message || S?.error || a.errorUnexpected);
|
|
14517
14521
|
} finally {
|
|
14518
|
-
|
|
14522
|
+
h(!1);
|
|
14519
14523
|
}
|
|
14520
14524
|
}, N = async (y) => {
|
|
14521
14525
|
if (y.preventDefault(), !i.confirmationCode) {
|
|
14522
14526
|
w(a.errorVerificationCodeRequired);
|
|
14523
14527
|
return;
|
|
14524
14528
|
}
|
|
14525
|
-
w(null),
|
|
14529
|
+
w(null), h(!0);
|
|
14526
14530
|
try {
|
|
14527
14531
|
const S = await fetch("/api/auth/confirm-user", {
|
|
14528
14532
|
method: "POST",
|
|
@@ -14540,11 +14544,11 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14540
14544
|
} catch (S) {
|
|
14541
14545
|
w(S?.message || a.errorUnexpected);
|
|
14542
14546
|
} finally {
|
|
14543
|
-
|
|
14547
|
+
h(!1);
|
|
14544
14548
|
}
|
|
14545
14549
|
}, C = i.password || "";
|
|
14546
14550
|
return /* @__PURE__ */ g($, { children: [
|
|
14547
|
-
|
|
14551
|
+
f === "register" && /* @__PURE__ */ g($, { children: [
|
|
14548
14552
|
/* @__PURE__ */ g("button", { onClick: b, className: "sass-pg-login-google", children: [
|
|
14549
14553
|
/* @__PURE__ */ s(
|
|
14550
14554
|
"img",
|
|
@@ -14619,12 +14623,12 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14619
14623
|
" ",
|
|
14620
14624
|
a.termsSuffix
|
|
14621
14625
|
] }),
|
|
14622
|
-
/* @__PURE__ */ s("button", { type: "submit", className: "sass-pg-login-primary", disabled: u, children: u ? /* @__PURE__ */ s(
|
|
14626
|
+
/* @__PURE__ */ s("button", { type: "submit", className: "sass-pg-login-primary", disabled: u, children: u ? /* @__PURE__ */ s(qt, {}) : a.createAccountButton })
|
|
14623
14627
|
]
|
|
14624
14628
|
}
|
|
14625
14629
|
)
|
|
14626
14630
|
] }),
|
|
14627
|
-
|
|
14631
|
+
f === "confirm" && /* @__PURE__ */ g(
|
|
14628
14632
|
"form",
|
|
14629
14633
|
{
|
|
14630
14634
|
onSubmit: N,
|
|
@@ -14646,7 +14650,7 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14646
14650
|
)
|
|
14647
14651
|
] }),
|
|
14648
14652
|
m && /* @__PURE__ */ s("p", { className: "sass-pg-login-error", children: m }),
|
|
14649
|
-
/* @__PURE__ */ s("button", { type: "submit", className: "sass-pg-login-primary", disabled: u, children: u ? /* @__PURE__ */ s(
|
|
14653
|
+
/* @__PURE__ */ s("button", { type: "submit", className: "sass-pg-login-primary", disabled: u, children: u ? /* @__PURE__ */ s(qt, {}) : a.confirmAccountButton }),
|
|
14650
14654
|
/* @__PURE__ */ g("p", { className: "sass-pg-login-switch", children: [
|
|
14651
14655
|
a.alreadyConfirmedText,
|
|
14652
14656
|
/* @__PURE__ */ s("a", { className: "sass-pg-login-toRegister", href: "./login", children: a.loginButtonText })
|
|
@@ -14654,7 +14658,7 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14654
14658
|
]
|
|
14655
14659
|
}
|
|
14656
14660
|
),
|
|
14657
|
-
|
|
14661
|
+
f === "success" && /* @__PURE__ */ g("form", { className: "sass-pg-login-form", children: [
|
|
14658
14662
|
/* @__PURE__ */ g("div", { className: "sass-pg-login-successContainer", children: [
|
|
14659
14663
|
/* @__PURE__ */ s("div", { className: "sass-pg-login-thumbsUp", children: /* @__PURE__ */ s(
|
|
14660
14664
|
"svg",
|
|
@@ -14679,7 +14683,7 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14679
14683
|
] }),
|
|
14680
14684
|
/* @__PURE__ */ s("a", { href: "./login", type: "submit", className: "sass-pg-login-primary", children: a.loginButtonText })
|
|
14681
14685
|
] }),
|
|
14682
|
-
|
|
14686
|
+
f === "register" && /* @__PURE__ */ g("p", { className: "sass-pg-login-switch", children: [
|
|
14683
14687
|
a.alreadyHasAccountText,
|
|
14684
14688
|
/* @__PURE__ */ s("a", { className: "sass-pg-login-toRegister", href: "./login", children: a.loginButtonText })
|
|
14685
14689
|
] })
|
|
@@ -14713,7 +14717,7 @@ function K1({
|
|
|
14713
14717
|
API_ENV: e,
|
|
14714
14718
|
texts: t
|
|
14715
14719
|
}) {
|
|
14716
|
-
const n = { ...Ru, ...t?.comentarios }, [a, r] = V("login"), [o, i] = V(""), [c, l] = V(""), [d, u] = V(""), [
|
|
14720
|
+
const n = { ...Ru, ...t?.comentarios }, [a, r] = V("login"), [o, i] = V(""), [c, l] = V(""), [d, u] = V(""), [h, m] = V(""), [w, f] = V(""), [p, b] = V(!1), [A, v] = V(!1), [N, C] = V(null);
|
|
14717
14721
|
he.useEffect(() => {
|
|
14718
14722
|
if (typeof window > "u") return;
|
|
14719
14723
|
window.location.hash.includes("forgot") && a === "login" && r("forgot"), a === "login" && S();
|
|
@@ -14820,23 +14824,23 @@ function K1({
|
|
|
14820
14824
|
{
|
|
14821
14825
|
email: o,
|
|
14822
14826
|
confirmationCode: d,
|
|
14823
|
-
newPassword:
|
|
14827
|
+
newPassword: h,
|
|
14824
14828
|
confirmNewPassword: w,
|
|
14825
14829
|
showPassword: p,
|
|
14826
14830
|
loading: A,
|
|
14827
14831
|
error: N,
|
|
14828
14832
|
setConfirmationCode: u,
|
|
14829
14833
|
setNewPassword: m,
|
|
14830
|
-
setConfirmNewPassword:
|
|
14834
|
+
setConfirmNewPassword: f,
|
|
14831
14835
|
setShowPassword: b,
|
|
14832
14836
|
onSubmit: async (P) => {
|
|
14833
14837
|
if (A) return;
|
|
14834
|
-
if (P.preventDefault(),
|
|
14838
|
+
if (P.preventDefault(), h !== w) {
|
|
14835
14839
|
C("Las contraseñas no coinciden");
|
|
14836
14840
|
return;
|
|
14837
14841
|
}
|
|
14838
14842
|
if (Gr.some(
|
|
14839
|
-
(Q) => !Q.test(
|
|
14843
|
+
(Q) => !Q.test(h)
|
|
14840
14844
|
)) {
|
|
14841
14845
|
C("La contraseña no cumple con los requisitos");
|
|
14842
14846
|
return;
|
|
@@ -14846,7 +14850,7 @@ function K1({
|
|
|
14846
14850
|
const Q = await fetch("/api/auth/confirm-forgot-password", {
|
|
14847
14851
|
method: "POST",
|
|
14848
14852
|
headers: { "Content-Type": "application/json" },
|
|
14849
|
-
body: JSON.stringify({ email: o, code: d, newPassword:
|
|
14853
|
+
body: JSON.stringify({ email: o, code: d, newPassword: h })
|
|
14850
14854
|
});
|
|
14851
14855
|
if (!Q.ok) {
|
|
14852
14856
|
const B = await Q.json().catch(() => ({}));
|
|
@@ -14888,7 +14892,7 @@ function Pu({
|
|
|
14888
14892
|
onSubmit: l,
|
|
14889
14893
|
onForgot: d,
|
|
14890
14894
|
handleGoogleLogin: u,
|
|
14891
|
-
t:
|
|
14895
|
+
t: h
|
|
14892
14896
|
}) {
|
|
14893
14897
|
return /* @__PURE__ */ g($, { children: [
|
|
14894
14898
|
/* @__PURE__ */ g("button", { onClick: u, className: "sass-pg-login-google", children: [
|
|
@@ -14900,7 +14904,7 @@ function Pu({
|
|
|
14900
14904
|
className: "sass-pg-login-googleIcon"
|
|
14901
14905
|
}
|
|
14902
14906
|
),
|
|
14903
|
-
/* @__PURE__ */ s("span", { children:
|
|
14907
|
+
/* @__PURE__ */ s("span", { children: h.GoogleButtonText })
|
|
14904
14908
|
] }),
|
|
14905
14909
|
/* @__PURE__ */ s("div", { className: "sass-pg-login-divider", children: /* @__PURE__ */ s("span", { children: "o" }) }),
|
|
14906
14910
|
/* @__PURE__ */ g(
|
|
@@ -14911,7 +14915,7 @@ function Pu({
|
|
|
14911
14915
|
"data-error": r ? "true" : "false",
|
|
14912
14916
|
children: [
|
|
14913
14917
|
/* @__PURE__ */ g("div", { className: "sass-pg-login-field", children: [
|
|
14914
|
-
/* @__PURE__ */ s("label", { className: "sass-pg-login-label", children:
|
|
14918
|
+
/* @__PURE__ */ s("label", { className: "sass-pg-login-label", children: h.email }),
|
|
14915
14919
|
/* @__PURE__ */ s(
|
|
14916
14920
|
"input",
|
|
14917
14921
|
{
|
|
@@ -14924,7 +14928,7 @@ function Pu({
|
|
|
14924
14928
|
)
|
|
14925
14929
|
] }),
|
|
14926
14930
|
/* @__PURE__ */ g("div", { className: "sass-pg-login-field", children: [
|
|
14927
|
-
/* @__PURE__ */ s("label", { className: "sass-pg-login-label", children:
|
|
14931
|
+
/* @__PURE__ */ s("label", { className: "sass-pg-login-label", children: h.password }),
|
|
14928
14932
|
/* @__PURE__ */ s(
|
|
14929
14933
|
"input",
|
|
14930
14934
|
{
|
|
@@ -14945,17 +14949,17 @@ function Pu({
|
|
|
14945
14949
|
onChange: (m) => c(m.target.checked)
|
|
14946
14950
|
}
|
|
14947
14951
|
),
|
|
14948
|
-
/* @__PURE__ */ s("label", { htmlFor: "showPasswordLogin", className: "sass-pg-login-checkboxLabel", children:
|
|
14952
|
+
/* @__PURE__ */ s("label", { htmlFor: "showPasswordLogin", className: "sass-pg-login-checkboxLabel", children: h.showPassword })
|
|
14949
14953
|
] })
|
|
14950
14954
|
] }),
|
|
14951
14955
|
r && /* @__PURE__ */ s("p", { className: "sass-pg-login-error", children: r }),
|
|
14952
|
-
/* @__PURE__ */ s("button", { type: "submit", className: "sass-pg-login-primary", disabled: a, children: a ? /* @__PURE__ */ s(
|
|
14956
|
+
/* @__PURE__ */ s("button", { type: "submit", className: "sass-pg-login-primary", disabled: a, children: a ? /* @__PURE__ */ s(qt, { className: "sass-pg-login-spin" }) : h.loginButtonText })
|
|
14953
14957
|
]
|
|
14954
14958
|
}
|
|
14955
14959
|
),
|
|
14956
14960
|
/* @__PURE__ */ g("p", { className: "sass-pg-login-switch", children: [
|
|
14957
|
-
|
|
14958
|
-
/* @__PURE__ */ s("a", { className: "sass-pg-login-toRegister", href: "./register", children:
|
|
14961
|
+
h.noAccountText,
|
|
14962
|
+
/* @__PURE__ */ s("a", { className: "sass-pg-login-toRegister", href: "./register", children: h.registerButtonText })
|
|
14959
14963
|
] }),
|
|
14960
14964
|
/* @__PURE__ */ s(
|
|
14961
14965
|
"button",
|
|
@@ -14963,7 +14967,7 @@ function Pu({
|
|
|
14963
14967
|
type: "button",
|
|
14964
14968
|
className: "sass-pg-login-forgotPassword",
|
|
14965
14969
|
onClick: d,
|
|
14966
|
-
children:
|
|
14970
|
+
children: h.forgotPasswordText
|
|
14967
14971
|
}
|
|
14968
14972
|
)
|
|
14969
14973
|
] });
|
|
@@ -15000,7 +15004,7 @@ function Ou({
|
|
|
15000
15004
|
)
|
|
15001
15005
|
] }),
|
|
15002
15006
|
a && /* @__PURE__ */ s("p", { className: "sass-pg-login-error", children: a }),
|
|
15003
|
-
/* @__PURE__ */ s("button", { type: "submit", className: "sass-pg-login-primary", disabled: n, children: n ? /* @__PURE__ */ s(
|
|
15007
|
+
/* @__PURE__ */ s("button", { type: "submit", className: "sass-pg-login-primary", disabled: n, children: n ? /* @__PURE__ */ s(qt, {}) : i.sendCodeButton }),
|
|
15004
15008
|
/* @__PURE__ */ s("p", { className: "sass-pg-login-switch", style: { margin: "0 0 16px" }, children: /* @__PURE__ */ s("button", { type: "button", onClick: o, children: i.backButton }) })
|
|
15005
15009
|
]
|
|
15006
15010
|
}
|
|
@@ -15029,19 +15033,19 @@ function Mu({
|
|
|
15029
15033
|
setNewPassword: l,
|
|
15030
15034
|
setConfirmNewPassword: d,
|
|
15031
15035
|
setShowPassword: u,
|
|
15032
|
-
onSubmit:
|
|
15036
|
+
onSubmit: h,
|
|
15033
15037
|
onBack: m,
|
|
15034
15038
|
t: w
|
|
15035
15039
|
}) {
|
|
15036
|
-
const
|
|
15040
|
+
const f = w.changePasswordMessage.replace("{{email}}", Bu(e));
|
|
15037
15041
|
return /* @__PURE__ */ g(
|
|
15038
15042
|
"form",
|
|
15039
15043
|
{
|
|
15040
|
-
onSubmit:
|
|
15044
|
+
onSubmit: h,
|
|
15041
15045
|
className: "sass-pg-login-form",
|
|
15042
15046
|
"data-error": i ? "true" : "false",
|
|
15043
15047
|
children: [
|
|
15044
|
-
/* @__PURE__ */ s("p", { className: "sass-pg-login-message", children:
|
|
15048
|
+
/* @__PURE__ */ s("p", { className: "sass-pg-login-message", children: f }),
|
|
15045
15049
|
/* @__PURE__ */ g("ul", { className: "sass-pg-login-formUl", children: [
|
|
15046
15050
|
/* @__PURE__ */ g("div", { className: "sass-pg-login-field", children: [
|
|
15047
15051
|
/* @__PURE__ */ s("label", { className: "sass-pg-login-label", children: w.verificationCodeLabel }),
|
|
@@ -15118,7 +15122,7 @@ function Mu({
|
|
|
15118
15122
|
className: "sass-pg-login-primary",
|
|
15119
15123
|
style: { maxWidth: o ? "revert-layer" : "fit-content" },
|
|
15120
15124
|
disabled: o,
|
|
15121
|
-
children: o ? /* @__PURE__ */ s(
|
|
15125
|
+
children: o ? /* @__PURE__ */ s(qt, {}) : w.changePasswordButton
|
|
15122
15126
|
}
|
|
15123
15127
|
),
|
|
15124
15128
|
/* @__PURE__ */ s("p", { className: "sass-pg-login-switch", children: /* @__PURE__ */ s("button", { type: "button", onClick: m, children: w.backButton }) })
|
|
@@ -15146,10 +15150,10 @@ function J1({ containerId: e, containerId2: t }) {
|
|
|
15146
15150
|
if (!a && !r) return;
|
|
15147
15151
|
const o = a?.querySelectorAll("script[src]") ?? [], i = r?.querySelectorAll("script[src]") ?? [];
|
|
15148
15152
|
[...o, ...i].forEach((u) => {
|
|
15149
|
-
const
|
|
15153
|
+
const h = document.createElement("script");
|
|
15150
15154
|
Array.from(u.attributes).forEach((m) => {
|
|
15151
|
-
|
|
15152
|
-
}), u.replaceWith(
|
|
15155
|
+
h.setAttribute(m.name, m.value);
|
|
15156
|
+
}), u.replaceWith(h);
|
|
15153
15157
|
});
|
|
15154
15158
|
const l = document.querySelectorAll(
|
|
15155
15159
|
'script[src*="platform.twitter.com/widgets.js"]'
|
|
@@ -15179,7 +15183,7 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15179
15183
|
hasShadow: a = !1,
|
|
15180
15184
|
BackDropAuxHeigthMobile: r
|
|
15181
15185
|
//isVisible,
|
|
15182
|
-
} = e, o = Ur(), i =
|
|
15186
|
+
} = e, o = Ur(), i = Ot(() => {
|
|
15183
15187
|
const m = e?.preview?.sizes;
|
|
15184
15188
|
if (m && Array.isArray(m) && m.length > 0) return m;
|
|
15185
15189
|
const w = e?.preview?.original;
|
|
@@ -15187,7 +15191,7 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15187
15191
|
}, [e?.preview?.sizes, e?.preview?.original]);
|
|
15188
15192
|
if (!i.length || !i[0]?.url || i[0]?.url === "")
|
|
15189
15193
|
return /* @__PURE__ */ s("div", { className: "sass-com-img-imagePlaceholder" });
|
|
15190
|
-
const { PUBLIC_API_HOST: c = "", PUBLIC_ASSETS_URL: l } = e.API_ENV, d = i[0]?.url, u = l && l !== "false" ? l : c,
|
|
15194
|
+
const { PUBLIC_API_HOST: c = "", PUBLIC_ASSETS_URL: l } = e.API_ENV, d = i[0]?.url, u = l && l !== "false" ? l : c, h = d?.startsWith("http") || d?.includes(u) ? d : u + d;
|
|
15191
15195
|
return /* @__PURE__ */ s("figure", { className: "sass-com-img-figure", children: /* @__PURE__ */ g("span", { className: "sass-com-img-backdrop", children: [
|
|
15192
15196
|
/* @__PURE__ */ s(
|
|
15193
15197
|
"span",
|
|
@@ -15206,7 +15210,7 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15206
15210
|
loading: "lazy",
|
|
15207
15211
|
className: "sass-com-img-imageStyled",
|
|
15208
15212
|
alt: e.preview?.description || "",
|
|
15209
|
-
src:
|
|
15213
|
+
src: h,
|
|
15210
15214
|
style: {
|
|
15211
15215
|
boxShadow: a ? "0px 4px 8px 0px #00000033" : "0px"
|
|
15212
15216
|
}
|
|
@@ -15319,7 +15323,7 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15319
15323
|
fetchConfig: i,
|
|
15320
15324
|
paths: c
|
|
15321
15325
|
}) => {
|
|
15322
|
-
const l = o.FETCH_SIZE_MORE_NEWS ?? 6, [d, u] = V({ data: Array.from({ length: l }, () => ju) }), [
|
|
15326
|
+
const l = o.FETCH_SIZE_MORE_NEWS ?? 6, [d, u] = V({ data: Array.from({ length: l }, () => ju) }), [h, m] = V(!1), w = ue(async () => {
|
|
15323
15327
|
if (!t) return;
|
|
15324
15328
|
const b = new URLSearchParams({
|
|
15325
15329
|
section: e,
|
|
@@ -15328,7 +15332,7 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15328
15332
|
if (!A.ok)
|
|
15329
15333
|
throw new Error(`HTTP error! status: ${A.status}`);
|
|
15330
15334
|
return await A.json();
|
|
15331
|
-
}, [e, t]),
|
|
15335
|
+
}, [e, t]), f = ue(async () => {
|
|
15332
15336
|
const {
|
|
15333
15337
|
PUBLIC_API_FRONT: b,
|
|
15334
15338
|
PUBLIC_X_SECURITY_TOKEN: A,
|
|
@@ -15360,11 +15364,11 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15360
15364
|
)
|
|
15361
15365
|
};
|
|
15362
15366
|
}, [e, t, o]), p = ue(async () => {
|
|
15363
|
-
if (!(
|
|
15367
|
+
if (!(h || !t)) {
|
|
15364
15368
|
m(!0);
|
|
15365
15369
|
try {
|
|
15366
15370
|
let b;
|
|
15367
|
-
o.PUBLIC_ENV !== "prod" ? b = await w() : b = await
|
|
15371
|
+
o.PUBLIC_ENV !== "prod" ? b = await w() : b = await f(), u({
|
|
15368
15372
|
...b,
|
|
15369
15373
|
data: b.data.slice(0, l)
|
|
15370
15374
|
});
|
|
@@ -15373,11 +15377,11 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15373
15377
|
}
|
|
15374
15378
|
}
|
|
15375
15379
|
}, [
|
|
15376
|
-
|
|
15380
|
+
h,
|
|
15377
15381
|
t,
|
|
15378
15382
|
o.PUBLIC_ENV,
|
|
15379
15383
|
w,
|
|
15380
|
-
|
|
15384
|
+
f
|
|
15381
15385
|
]);
|
|
15382
15386
|
return Me(() => {
|
|
15383
15387
|
a && p();
|
|
@@ -15413,10 +15417,10 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15413
15417
|
authors: l,
|
|
15414
15418
|
info: d,
|
|
15415
15419
|
preview: u,
|
|
15416
|
-
isVideo:
|
|
15420
|
+
isVideo: h = !1,
|
|
15417
15421
|
config: m,
|
|
15418
15422
|
overImage: w = "default",
|
|
15419
|
-
isTitle:
|
|
15423
|
+
isTitle: f = !1,
|
|
15420
15424
|
isLarge: p = !1,
|
|
15421
15425
|
keywords: b
|
|
15422
15426
|
} = o;
|
|
@@ -15440,7 +15444,7 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15440
15444
|
isVisible: e.isVisible,
|
|
15441
15445
|
preview: u,
|
|
15442
15446
|
rounded: e.rounded,
|
|
15443
|
-
isVideo:
|
|
15447
|
+
isVideo: h,
|
|
15444
15448
|
isLarge: p,
|
|
15445
15449
|
API_ENV: e.API_ENV,
|
|
15446
15450
|
getImageUrl: e.getImageUrl
|
|
@@ -15459,7 +15463,7 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15459
15463
|
share: e.share,
|
|
15460
15464
|
config: m,
|
|
15461
15465
|
overImage: w,
|
|
15462
|
-
isTitle:
|
|
15466
|
+
isTitle: f,
|
|
15463
15467
|
paths: e.paths,
|
|
15464
15468
|
isVisible: e.isVisible,
|
|
15465
15469
|
DATE_CONFIG: e.API_ENV,
|
|
@@ -15484,28 +15488,28 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15484
15488
|
info: o
|
|
15485
15489
|
} = e, c = (() => {
|
|
15486
15490
|
if (!e?.authors || e.authors.length === 0) return "";
|
|
15487
|
-
const u = e.authors[0],
|
|
15491
|
+
const u = e.authors[0], h = ke(
|
|
15488
15492
|
e.info?.date?.modified,
|
|
15489
15493
|
e.DATE_CONFIG
|
|
15490
15494
|
);
|
|
15491
|
-
return u && e?.config?.showtime && e.config?.showauthor && u.fullname ? `${u.fullname} - ${
|
|
15495
|
+
return u && e?.config?.showtime && e.config?.showauthor && u.fullname ? `${u.fullname} - ${h}` : u && u.fullname && e.config?.showauthor ? u.fullname : (e?.config?.showtime, "");
|
|
15492
15496
|
})(), l = () => e.main.uppertitle ? /* @__PURE__ */ s("p", { className: "sass-com-nd-uppertitle", title: e.main.uppertitle, children: e.main.uppertitle }) : null;
|
|
15493
15497
|
return /* @__PURE__ */ g("div", { className: "sass-com-nd-boxInformation", children: [
|
|
15494
15498
|
t && /* @__PURE__ */ s(Du, { className: "sass-com-nd-dotStyles" }),
|
|
15495
15499
|
/* @__PURE__ */ s(() => {
|
|
15496
15500
|
if (a && r?.tags?.length && r.tags.length > 0) {
|
|
15497
|
-
const u = r.tags[0],
|
|
15501
|
+
const u = r.tags[0], h = u.name;
|
|
15498
15502
|
return /* @__PURE__ */ g("span", { className: "sass-com-nd-sectionDescriptionContainer", children: [
|
|
15499
15503
|
u.approved ? /* @__PURE__ */ s(
|
|
15500
15504
|
_,
|
|
15501
15505
|
{
|
|
15502
|
-
"aria-label":
|
|
15506
|
+
"aria-label": h,
|
|
15503
15507
|
block_subPublication: e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,
|
|
15504
15508
|
className: "sass-com-nd-sectionDescription",
|
|
15505
15509
|
href: Ke(u, e.paths),
|
|
15506
|
-
children:
|
|
15510
|
+
children: h
|
|
15507
15511
|
}
|
|
15508
|
-
) : /* @__PURE__ */ s("div", { className: "sass-com-nd-sectionDescription", children:
|
|
15512
|
+
) : /* @__PURE__ */ s("div", { className: "sass-com-nd-sectionDescription", children: h }),
|
|
15509
15513
|
l()
|
|
15510
15514
|
] });
|
|
15511
15515
|
} else if (o?.section?.url) {
|
|
@@ -15644,12 +15648,12 @@ async function X1({
|
|
|
15644
15648
|
throw new Error("Token de captcha inválido");
|
|
15645
15649
|
if (!i)
|
|
15646
15650
|
throw new Error("Falta el token de API del CMS");
|
|
15647
|
-
const d = `${r}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`, u = encodeURIComponent(a),
|
|
15651
|
+
const d = `${r}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`, u = encodeURIComponent(a), h = new URLSearchParams({
|
|
15648
15652
|
publication: e,
|
|
15649
15653
|
username: t ?? !1,
|
|
15650
15654
|
id: n,
|
|
15651
15655
|
type: u
|
|
15652
|
-
}), m = `${d}?${
|
|
15656
|
+
}), m = `${d}?${h.toString()}`;
|
|
15653
15657
|
try {
|
|
15654
15658
|
console.log("Reporting comment:", {
|
|
15655
15659
|
publication: e,
|
|
@@ -15677,9 +15681,9 @@ async function X1({
|
|
|
15677
15681
|
throw new Error(`Respuesta inesperada del servidor: ${w.status}`);
|
|
15678
15682
|
} catch (w) {
|
|
15679
15683
|
if (console.error("Error reporting comment:", w), oe.isAxiosError(w)) {
|
|
15680
|
-
const
|
|
15681
|
-
throw
|
|
15682
|
-
p?.error || p?.message || `Error HTTP ${
|
|
15684
|
+
const f = w.response?.status, p = w.response?.data;
|
|
15685
|
+
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(
|
|
15686
|
+
p?.error || p?.message || `Error HTTP ${f}: No se pudo reportar el comentario`
|
|
15683
15687
|
);
|
|
15684
15688
|
}
|
|
15685
15689
|
throw w;
|
|
@@ -15742,7 +15746,7 @@ var xa;
|
|
|
15742
15746
|
function Yu() {
|
|
15743
15747
|
if (xa) return ie;
|
|
15744
15748
|
xa = 1;
|
|
15745
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112,
|
|
15749
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
|
|
15746
15750
|
function N(y) {
|
|
15747
15751
|
if (typeof y == "object" && y !== null) {
|
|
15748
15752
|
var S = y.$$typeof;
|
|
@@ -15754,13 +15758,13 @@ function Yu() {
|
|
|
15754
15758
|
case a:
|
|
15755
15759
|
case o:
|
|
15756
15760
|
case r:
|
|
15757
|
-
case
|
|
15761
|
+
case h:
|
|
15758
15762
|
return y;
|
|
15759
15763
|
default:
|
|
15760
15764
|
switch (y = y && y.$$typeof, y) {
|
|
15761
15765
|
case c:
|
|
15762
15766
|
case u:
|
|
15763
|
-
case
|
|
15767
|
+
case f:
|
|
15764
15768
|
case w:
|
|
15765
15769
|
case i:
|
|
15766
15770
|
return y;
|
|
@@ -15776,7 +15780,7 @@ function Yu() {
|
|
|
15776
15780
|
function C(y) {
|
|
15777
15781
|
return N(y) === d;
|
|
15778
15782
|
}
|
|
15779
|
-
return ie.AsyncMode = l, ie.ConcurrentMode = d, ie.ContextConsumer = c, ie.ContextProvider = i, ie.Element = t, ie.ForwardRef = u, ie.Fragment = a, ie.Lazy =
|
|
15783
|
+
return ie.AsyncMode = l, ie.ConcurrentMode = d, ie.ContextConsumer = c, ie.ContextProvider = i, ie.Element = t, ie.ForwardRef = u, ie.Fragment = a, ie.Lazy = f, ie.Memo = w, ie.Portal = n, ie.Profiler = o, ie.StrictMode = r, ie.Suspense = h, ie.isAsyncMode = function(y) {
|
|
15780
15784
|
return C(y) || N(y) === l;
|
|
15781
15785
|
}, ie.isConcurrentMode = C, ie.isContextConsumer = function(y) {
|
|
15782
15786
|
return N(y) === c;
|
|
@@ -15789,7 +15793,7 @@ function Yu() {
|
|
|
15789
15793
|
}, ie.isFragment = function(y) {
|
|
15790
15794
|
return N(y) === a;
|
|
15791
15795
|
}, ie.isLazy = function(y) {
|
|
15792
|
-
return N(y) ===
|
|
15796
|
+
return N(y) === f;
|
|
15793
15797
|
}, ie.isMemo = function(y) {
|
|
15794
15798
|
return N(y) === w;
|
|
15795
15799
|
}, ie.isPortal = function(y) {
|
|
@@ -15799,40 +15803,40 @@ function Yu() {
|
|
|
15799
15803
|
}, ie.isStrictMode = function(y) {
|
|
15800
15804
|
return N(y) === r;
|
|
15801
15805
|
}, ie.isSuspense = function(y) {
|
|
15802
|
-
return N(y) ===
|
|
15806
|
+
return N(y) === h;
|
|
15803
15807
|
}, ie.isValidElementType = function(y) {
|
|
15804
|
-
return typeof y == "string" || typeof y == "function" || y === a || y === d || y === o || y === r || y ===
|
|
15808
|
+
return typeof y == "string" || typeof y == "function" || y === a || y === d || y === o || y === r || y === h || y === m || typeof y == "object" && y !== null && (y.$$typeof === f || y.$$typeof === w || y.$$typeof === i || y.$$typeof === c || y.$$typeof === u || y.$$typeof === b || y.$$typeof === A || y.$$typeof === v || y.$$typeof === p);
|
|
15805
15809
|
}, ie.typeOf = N, ie;
|
|
15806
15810
|
}
|
|
15807
15811
|
var ce = {};
|
|
15808
15812
|
var Sa;
|
|
15809
15813
|
function Ku() {
|
|
15810
15814
|
return Sa || (Sa = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
15811
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112,
|
|
15815
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
|
|
15812
15816
|
function N(D) {
|
|
15813
15817
|
return typeof D == "string" || typeof D == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
15814
|
-
D === a || D === d || D === o || D === r || D ===
|
|
15818
|
+
D === a || D === d || D === o || D === r || D === h || D === m || typeof D == "object" && D !== null && (D.$$typeof === f || D.$$typeof === w || D.$$typeof === i || D.$$typeof === c || D.$$typeof === u || D.$$typeof === b || D.$$typeof === A || D.$$typeof === v || D.$$typeof === p);
|
|
15815
15819
|
}
|
|
15816
15820
|
function C(D) {
|
|
15817
15821
|
if (typeof D == "object" && D !== null) {
|
|
15818
15822
|
var ye = D.$$typeof;
|
|
15819
15823
|
switch (ye) {
|
|
15820
15824
|
case t:
|
|
15821
|
-
var
|
|
15822
|
-
switch (
|
|
15825
|
+
var zt = D.type;
|
|
15826
|
+
switch (zt) {
|
|
15823
15827
|
case l:
|
|
15824
15828
|
case d:
|
|
15825
15829
|
case a:
|
|
15826
15830
|
case o:
|
|
15827
15831
|
case r:
|
|
15828
|
-
case
|
|
15829
|
-
return
|
|
15832
|
+
case h:
|
|
15833
|
+
return zt;
|
|
15830
15834
|
default:
|
|
15831
|
-
var qs =
|
|
15835
|
+
var qs = zt && zt.$$typeof;
|
|
15832
15836
|
switch (qs) {
|
|
15833
15837
|
case c:
|
|
15834
15838
|
case u:
|
|
15835
|
-
case
|
|
15839
|
+
case f:
|
|
15836
15840
|
case w:
|
|
15837
15841
|
case i:
|
|
15838
15842
|
return qs;
|
|
@@ -15845,7 +15849,7 @@ function Ku() {
|
|
|
15845
15849
|
}
|
|
15846
15850
|
}
|
|
15847
15851
|
}
|
|
15848
|
-
var y = l, S = d, T = c, R = i, z = t, O = u, P = a, F =
|
|
15852
|
+
var y = l, S = d, T = c, R = i, z = t, O = u, P = a, F = f, Q = w, B = n, L = o, U = r, j = h, M = !1;
|
|
15849
15853
|
function Y(D) {
|
|
15850
15854
|
return M || (M = !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.")), x(D) || C(D) === l;
|
|
15851
15855
|
}
|
|
@@ -15868,7 +15872,7 @@ function Ku() {
|
|
|
15868
15872
|
return C(D) === a;
|
|
15869
15873
|
}
|
|
15870
15874
|
function K(D) {
|
|
15871
|
-
return C(D) ===
|
|
15875
|
+
return C(D) === f;
|
|
15872
15876
|
}
|
|
15873
15877
|
function J(D) {
|
|
15874
15878
|
return C(D) === w;
|
|
@@ -15883,7 +15887,7 @@ function Ku() {
|
|
|
15883
15887
|
return C(D) === r;
|
|
15884
15888
|
}
|
|
15885
15889
|
function de(D) {
|
|
15886
|
-
return C(D) ===
|
|
15890
|
+
return C(D) === h;
|
|
15887
15891
|
}
|
|
15888
15892
|
ce.AsyncMode = y, ce.ConcurrentMode = S, ce.ContextConsumer = T, ce.ContextProvider = R, ce.Element = z, ce.ForwardRef = O, ce.Fragment = P, ce.Lazy = F, ce.Memo = Q, ce.Portal = B, ce.Profiler = L, ce.StrictMode = U, ce.Suspense = j, ce.isAsyncMode = Y, ce.isConcurrentMode = x, ce.isContextConsumer = k, ce.isContextProvider = q, ce.isElement = H, ce.isForwardRef = G, ce.isFragment = W, ce.isLazy = K, ce.isMemo = J, ce.isPortal = ne, ce.isProfiler = se, ce.isStrictMode = X, ce.isSuspense = de, ce.isValidElementType = N, ce.typeOf = C;
|
|
15889
15893
|
})()), ce;
|
|
@@ -15927,8 +15931,8 @@ function Ju() {
|
|
|
15927
15931
|
return $n = r() ? Object.assign : function(o, i) {
|
|
15928
15932
|
for (var c, l = a(o), d, u = 1; u < arguments.length; u++) {
|
|
15929
15933
|
c = Object(arguments[u]);
|
|
15930
|
-
for (var
|
|
15931
|
-
t.call(c,
|
|
15934
|
+
for (var h in c)
|
|
15935
|
+
t.call(c, h) && (l[h] = c[h]);
|
|
15932
15936
|
if (e) {
|
|
15933
15937
|
d = e(c);
|
|
15934
15938
|
for (var m = 0; m < d.length; m++)
|
|
@@ -15970,7 +15974,7 @@ function Zu() {
|
|
|
15970
15974
|
if (process.env.NODE_ENV !== "production") {
|
|
15971
15975
|
for (var u in o)
|
|
15972
15976
|
if (a(o, u)) {
|
|
15973
|
-
var
|
|
15977
|
+
var h;
|
|
15974
15978
|
try {
|
|
15975
15979
|
if (typeof o[u] != "function") {
|
|
15976
15980
|
var m = Error(
|
|
@@ -15978,17 +15982,17 @@ function Zu() {
|
|
|
15978
15982
|
);
|
|
15979
15983
|
throw m.name = "Invariant Violation", m;
|
|
15980
15984
|
}
|
|
15981
|
-
|
|
15982
|
-
} catch (
|
|
15983
|
-
|
|
15985
|
+
h = o[u](i, u, l, c, null, t);
|
|
15986
|
+
} catch (f) {
|
|
15987
|
+
h = f;
|
|
15984
15988
|
}
|
|
15985
|
-
if (
|
|
15986
|
-
(l || "React class") + ": type specification of " + c + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
15987
|
-
),
|
|
15988
|
-
n[
|
|
15989
|
+
if (h && !(h instanceof Error) && e(
|
|
15990
|
+
(l || "React class") + ": type specification of " + c + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
15991
|
+
), h instanceof Error && !(h.message in n)) {
|
|
15992
|
+
n[h.message] = !0;
|
|
15989
15993
|
var w = d ? d() : "";
|
|
15990
15994
|
e(
|
|
15991
|
-
"Failed " + c + " type: " +
|
|
15995
|
+
"Failed " + c + " type: " + h.message + (w ?? "")
|
|
15992
15996
|
);
|
|
15993
15997
|
}
|
|
15994
15998
|
}
|
|
@@ -16017,7 +16021,7 @@ function Xu() {
|
|
|
16017
16021
|
}
|
|
16018
16022
|
return Jn = function(c, l) {
|
|
16019
16023
|
var d = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
16020
|
-
function
|
|
16024
|
+
function h(x) {
|
|
16021
16025
|
var k = x && (d && x[d] || x[u]);
|
|
16022
16026
|
if (typeof k == "function")
|
|
16023
16027
|
return k;
|
|
@@ -16043,7 +16047,7 @@ function Xu() {
|
|
|
16043
16047
|
shape: F,
|
|
16044
16048
|
exact: Q
|
|
16045
16049
|
};
|
|
16046
|
-
function
|
|
16050
|
+
function f(x, k) {
|
|
16047
16051
|
return x === k ? x !== 0 || 1 / x === 1 / k : x !== x && k !== k;
|
|
16048
16052
|
}
|
|
16049
16053
|
function p(x, k) {
|
|
@@ -16147,7 +16151,7 @@ function Xu() {
|
|
|
16147
16151
|
) : o("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
16148
16152
|
function k(q, H, G, W, K) {
|
|
16149
16153
|
for (var J = q[H], ne = 0; ne < x.length; ne++)
|
|
16150
|
-
if (
|
|
16154
|
+
if (f(J, x[ne]))
|
|
16151
16155
|
return null;
|
|
16152
16156
|
var se = JSON.stringify(x, function(de, D) {
|
|
16153
16157
|
var ye = j(D);
|
|
@@ -16260,7 +16264,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
16260
16264
|
return x.every(B);
|
|
16261
16265
|
if (x === null || c(x))
|
|
16262
16266
|
return !0;
|
|
16263
|
-
var k =
|
|
16267
|
+
var k = h(x);
|
|
16264
16268
|
if (k) {
|
|
16265
16269
|
var q = k.call(x), H;
|
|
16266
16270
|
if (k !== x.entries) {
|
|
@@ -16329,8 +16333,8 @@ function em() {
|
|
|
16329
16333
|
function n() {
|
|
16330
16334
|
}
|
|
16331
16335
|
return n.resetWarningCache = t, Zn = function() {
|
|
16332
|
-
function a(i, c, l, d, u,
|
|
16333
|
-
if (
|
|
16336
|
+
function a(i, c, l, d, u, h) {
|
|
16337
|
+
if (h !== e) {
|
|
16334
16338
|
var m = new Error(
|
|
16335
16339
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
16336
16340
|
);
|
|
@@ -16545,30 +16549,30 @@ function om() {
|
|
|
16545
16549
|
type: !0
|
|
16546
16550
|
}, o = {};
|
|
16547
16551
|
o[e.ForwardRef] = a, o[e.Memo] = r;
|
|
16548
|
-
function i(
|
|
16549
|
-
return e.isMemo(
|
|
16552
|
+
function i(f) {
|
|
16553
|
+
return e.isMemo(f) ? r : o[f.$$typeof] || t;
|
|
16550
16554
|
}
|
|
16551
|
-
var c = Object.defineProperty, l = Object.getOwnPropertyNames, d = Object.getOwnPropertySymbols, u = Object.getOwnPropertyDescriptor,
|
|
16552
|
-
function w(
|
|
16555
|
+
var c = Object.defineProperty, l = Object.getOwnPropertyNames, d = Object.getOwnPropertySymbols, u = Object.getOwnPropertyDescriptor, h = Object.getPrototypeOf, m = Object.prototype;
|
|
16556
|
+
function w(f, p, b) {
|
|
16553
16557
|
if (typeof p != "string") {
|
|
16554
16558
|
if (m) {
|
|
16555
|
-
var A =
|
|
16556
|
-
A && A !== m && w(
|
|
16559
|
+
var A = h(p);
|
|
16560
|
+
A && A !== m && w(f, A, b);
|
|
16557
16561
|
}
|
|
16558
16562
|
var v = l(p);
|
|
16559
16563
|
d && (v = v.concat(d(p)));
|
|
16560
|
-
for (var N = i(
|
|
16564
|
+
for (var N = i(f), C = i(p), y = 0; y < v.length; ++y) {
|
|
16561
16565
|
var S = v[y];
|
|
16562
16566
|
if (!n[S] && !(b && b[S]) && !(C && C[S]) && !(N && N[S])) {
|
|
16563
16567
|
var T = u(p, S);
|
|
16564
16568
|
try {
|
|
16565
|
-
c(
|
|
16569
|
+
c(f, S, T);
|
|
16566
16570
|
} catch {
|
|
16567
16571
|
}
|
|
16568
16572
|
}
|
|
16569
16573
|
}
|
|
16570
16574
|
}
|
|
16571
|
-
return
|
|
16575
|
+
return f;
|
|
16572
16576
|
}
|
|
16573
16577
|
return Xn = w, Xn;
|
|
16574
16578
|
}
|
|
@@ -16599,29 +16603,29 @@ function mm(e, t) {
|
|
|
16599
16603
|
return t = t || {}, function(a) {
|
|
16600
16604
|
var r = a.displayName || a.name || "Component", o = /* @__PURE__ */ (function(c) {
|
|
16601
16605
|
dm(l, c);
|
|
16602
|
-
function l(u,
|
|
16606
|
+
function l(u, h) {
|
|
16603
16607
|
var m;
|
|
16604
|
-
return m = c.call(this, u,
|
|
16608
|
+
return m = c.call(this, u, h) || this, m.state = {}, m.__scriptURL = "", m;
|
|
16605
16609
|
}
|
|
16606
16610
|
var d = l.prototype;
|
|
16607
16611
|
return d.asyncScriptLoaderGetScriptLoaderID = function() {
|
|
16608
16612
|
return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + um++), this.__scriptLoaderID;
|
|
16609
16613
|
}, d.setupScriptURL = function() {
|
|
16610
16614
|
return this.__scriptURL = typeof e == "function" ? e() : e, this.__scriptURL;
|
|
16611
|
-
}, d.asyncScriptLoaderHandleLoad = function(
|
|
16615
|
+
}, d.asyncScriptLoaderHandleLoad = function(h) {
|
|
16612
16616
|
var m = this;
|
|
16613
|
-
this.setState(
|
|
16617
|
+
this.setState(h, function() {
|
|
16614
16618
|
return m.props.asyncScriptOnLoad && m.props.asyncScriptOnLoad(m.state);
|
|
16615
16619
|
});
|
|
16616
16620
|
}, d.asyncScriptLoaderTriggerOnScriptLoaded = function() {
|
|
16617
|
-
var
|
|
16618
|
-
if (!
|
|
16621
|
+
var h = Ue[this.__scriptURL];
|
|
16622
|
+
if (!h || !h.loaded)
|
|
16619
16623
|
throw new Error("Script is not loaded.");
|
|
16620
|
-
for (var m in
|
|
16621
|
-
|
|
16624
|
+
for (var m in h.observers)
|
|
16625
|
+
h.observers[m](h);
|
|
16622
16626
|
delete window[t.callbackName];
|
|
16623
16627
|
}, d.componentDidMount = function() {
|
|
16624
|
-
var
|
|
16628
|
+
var h = this, m = this.setupScriptURL(), w = this.asyncScriptLoaderGetScriptLoaderID(), f = t, p = f.globalName, b = f.callbackName, A = f.scriptId;
|
|
16625
16629
|
if (p && typeof window[p] < "u" && (Ue[m] = {
|
|
16626
16630
|
loaded: !0,
|
|
16627
16631
|
observers: {}
|
|
@@ -16632,13 +16636,13 @@ function mm(e, t) {
|
|
|
16632
16636
|
return;
|
|
16633
16637
|
}
|
|
16634
16638
|
v.observers[w] = function(T) {
|
|
16635
|
-
return
|
|
16639
|
+
return h.asyncScriptLoaderHandleLoad(T);
|
|
16636
16640
|
};
|
|
16637
16641
|
return;
|
|
16638
16642
|
}
|
|
16639
16643
|
var N = {};
|
|
16640
16644
|
N[w] = function(T) {
|
|
16641
|
-
return
|
|
16645
|
+
return h.asyncScriptLoaderHandleLoad(T);
|
|
16642
16646
|
}, Ue[m] = {
|
|
16643
16647
|
loaded: !1,
|
|
16644
16648
|
observers: N
|
|
@@ -16656,7 +16660,7 @@ function mm(e, t) {
|
|
|
16656
16660
|
}
|
|
16657
16661
|
};
|
|
16658
16662
|
b && typeof window < "u" && (window[b] = function() {
|
|
16659
|
-
return
|
|
16663
|
+
return h.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
16660
16664
|
}), C.onload = function() {
|
|
16661
16665
|
var T = Ue[m];
|
|
16662
16666
|
T && (T.loaded = !0, S(function(R) {
|
|
@@ -16669,17 +16673,17 @@ function mm(e, t) {
|
|
|
16669
16673
|
}));
|
|
16670
16674
|
}, document.body.appendChild(C);
|
|
16671
16675
|
}, d.componentWillUnmount = function() {
|
|
16672
|
-
var
|
|
16676
|
+
var h = this.__scriptURL;
|
|
16673
16677
|
if (t.removeOnUnmount === !0)
|
|
16674
16678
|
for (var m = document.getElementsByTagName("script"), w = 0; w < m.length; w += 1)
|
|
16675
|
-
m[w].src.indexOf(
|
|
16676
|
-
var
|
|
16677
|
-
|
|
16679
|
+
m[w].src.indexOf(h) > -1 && m[w].parentNode && m[w].parentNode.removeChild(m[w]);
|
|
16680
|
+
var f = Ue[h];
|
|
16681
|
+
f && (delete f.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete Ue[h]);
|
|
16678
16682
|
}, d.render = function() {
|
|
16679
|
-
var
|
|
16683
|
+
var h = t.globalName, m = this.props;
|
|
16680
16684
|
m.asyncScriptOnLoad;
|
|
16681
|
-
var w = m.forwardedRef,
|
|
16682
|
-
return
|
|
16685
|
+
var w = m.forwardedRef, f = lm(m, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
16686
|
+
return h && typeof window < "u" && (f[h] = typeof window[h] < "u" ? window[h] : void 0), f.ref = w, Ye(a, f);
|
|
16683
16687
|
}, l;
|
|
16684
16688
|
})(oo), i = Va(function(c, l) {
|
|
16685
16689
|
return Ye(o, ms({}, c, {
|
|
@@ -16733,9 +16737,9 @@ const zr = mm(fm, {
|
|
|
16733
16737
|
CAPTCHA_KEY_V2: o,
|
|
16734
16738
|
texts: i
|
|
16735
16739
|
}) => {
|
|
16736
|
-
const c = { ...pm, ...i?.comentarios }, l = { ...ls, ...c.reportReasons ?? {} }, [d, u] = V("form"), [
|
|
16740
|
+
const c = { ...pm, ...i?.comentarios }, l = { ...ls, ...c.reportReasons ?? {} }, [d, u] = V("form"), [h, m] = V(
|
|
16737
16741
|
""
|
|
16738
|
-
), [w,
|
|
16742
|
+
), [w, f] = V(""), [p, b] = V(""), A = [
|
|
16739
16743
|
{ id: "spam", label: l.spam },
|
|
16740
16744
|
{ id: "inappropriate", label: l.inappropriate },
|
|
16741
16745
|
{ id: "hate", label: l.hate },
|
|
@@ -16744,12 +16748,12 @@ const zr = mm(fm, {
|
|
|
16744
16748
|
{ id: "intellectual", label: l.intellectual },
|
|
16745
16749
|
{ id: "bullying", label: l.bullying }
|
|
16746
16750
|
], v = async () => {
|
|
16747
|
-
if (!(!
|
|
16751
|
+
if (!(!h || !n)) {
|
|
16748
16752
|
if (Hr(document).includes(n)) {
|
|
16749
|
-
|
|
16753
|
+
f(c.errorAlreadyReported);
|
|
16750
16754
|
return;
|
|
16751
16755
|
}
|
|
16752
|
-
u("loading"),
|
|
16756
|
+
u("loading"), f("");
|
|
16753
16757
|
try {
|
|
16754
16758
|
const y = await (await fetch("/api/comments-report", {
|
|
16755
16759
|
method: "POST",
|
|
@@ -16761,7 +16765,7 @@ const zr = mm(fm, {
|
|
|
16761
16765
|
username: r,
|
|
16762
16766
|
id: n,
|
|
16763
16767
|
captchaToken: p,
|
|
16764
|
-
type: ls[
|
|
16768
|
+
type: ls[h]
|
|
16765
16769
|
// Enviamos el label completo
|
|
16766
16770
|
})
|
|
16767
16771
|
})).json();
|
|
@@ -16772,11 +16776,11 @@ const zr = mm(fm, {
|
|
|
16772
16776
|
else
|
|
16773
16777
|
throw new Error(y.message || c.errorReportComment);
|
|
16774
16778
|
} catch (C) {
|
|
16775
|
-
console.error("Error reporting comment:", C),
|
|
16779
|
+
console.error("Error reporting comment:", C), f(C.message || c.errorReportComment), u("form");
|
|
16776
16780
|
}
|
|
16777
16781
|
}
|
|
16778
16782
|
}, N = () => {
|
|
16779
|
-
u("form"), m(""),
|
|
16783
|
+
u("form"), m(""), f(""), t();
|
|
16780
16784
|
};
|
|
16781
16785
|
return !e || !n || !r ? null : /* @__PURE__ */ s("div", { className: "sass-pg-cmt-rp-overlay", children: /* @__PURE__ */ g("div", { className: "sass-pg-cmt-rp-popup", children: [
|
|
16782
16786
|
/* @__PURE__ */ s("button", { className: "close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none", onClick: N, children: /* @__PURE__ */ s(ct, {}) }),
|
|
@@ -16790,7 +16794,7 @@ const zr = mm(fm, {
|
|
|
16790
16794
|
type: "radio",
|
|
16791
16795
|
name: "reportReason",
|
|
16792
16796
|
value: C.id,
|
|
16793
|
-
checked:
|
|
16797
|
+
checked: h === C.id,
|
|
16794
16798
|
onChange: (y) => m(y.target.value),
|
|
16795
16799
|
className: "sass-pg-cmt-rp-radioInput"
|
|
16796
16800
|
}
|
|
@@ -16815,7 +16819,7 @@ const zr = mm(fm, {
|
|
|
16815
16819
|
"button",
|
|
16816
16820
|
{
|
|
16817
16821
|
onClick: v,
|
|
16818
|
-
disabled: !
|
|
16822
|
+
disabled: !h,
|
|
16819
16823
|
className: "sass-pg-cmt-rp-reportButton",
|
|
16820
16824
|
children: c.reportButton
|
|
16821
16825
|
}
|
|
@@ -16917,8 +16921,8 @@ async function Rs({
|
|
|
16917
16921
|
const u = await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${n}&sizereply=${a}&lastid=${o}`);
|
|
16918
16922
|
if (!u.ok)
|
|
16919
16923
|
throw new Error(`Error al obtener comentarios: ${u.status}`);
|
|
16920
|
-
const
|
|
16921
|
-
return yn(
|
|
16924
|
+
const h = await u.json();
|
|
16925
|
+
return yn(h.data[0]);
|
|
16922
16926
|
}
|
|
16923
16927
|
}
|
|
16924
16928
|
async function bm({
|
|
@@ -16938,16 +16942,16 @@ async function bm({
|
|
|
16938
16942
|
throw new Error("Invalid input types for publication or path");
|
|
16939
16943
|
if (!c)
|
|
16940
16944
|
throw new Error("Missing CMS API token");
|
|
16941
|
-
const { PUBLIC_ENV: d, PUBLIC_API_HOST: u = "dummy", PUBLIC_API_PATH:
|
|
16945
|
+
const { PUBLIC_ENV: d, PUBLIC_API_HOST: u = "dummy", PUBLIC_API_PATH: h, PUBLIC_API_PATH_VERSION: m } = l, w = parseInt(String(n), 10), f = parseInt(String(a), 10);
|
|
16942
16946
|
if (isNaN(w) || w <= 0)
|
|
16943
16947
|
throw new Error("Invalid size parameter");
|
|
16944
|
-
if (isNaN(
|
|
16948
|
+
if (isNaN(f) || f < 0)
|
|
16945
16949
|
throw new Error("Invalid sizereply parameter");
|
|
16946
|
-
const p = d !== "prod" ? `${u}${
|
|
16950
|
+
const p = d !== "prod" ? `${u}${h}` : "", b = new URLSearchParams({
|
|
16947
16951
|
publication: e,
|
|
16948
16952
|
path: t,
|
|
16949
16953
|
size: w.toString(),
|
|
16950
|
-
sizereply:
|
|
16954
|
+
sizereply: f.toString(),
|
|
16951
16955
|
state: i
|
|
16952
16956
|
});
|
|
16953
16957
|
r && b.append("id", r), o && b.append("lastid", o);
|
|
@@ -17139,8 +17143,8 @@ function Nm({
|
|
|
17139
17143
|
texts: a,
|
|
17140
17144
|
API_ENV: r
|
|
17141
17145
|
}) {
|
|
17142
|
-
const o = { ...Cm, ...vm, ...a?.comentarios }, i = me(r), c = (
|
|
17143
|
-
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = i + "/auth/login" + (
|
|
17146
|
+
const o = { ...Cm, ...vm, ...a?.comentarios }, i = me(r), c = (h) => {
|
|
17147
|
+
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = i + "/auth/login" + (h ? "#forgot" : ""));
|
|
17144
17148
|
}, l = () => {
|
|
17145
17149
|
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = i + "/auth/register");
|
|
17146
17150
|
}, { PUBLIC_ASSETS_URL: d } = r, u = (d && d !== "false" ? d : "") + "/versions/images/anonimus-img.png";
|
|
@@ -17151,8 +17155,8 @@ function Nm({
|
|
|
17151
17155
|
role: "dialog",
|
|
17152
17156
|
"aria-modal": "true",
|
|
17153
17157
|
id: "pop-overlay",
|
|
17154
|
-
onClick: (
|
|
17155
|
-
const m =
|
|
17158
|
+
onClick: (h) => {
|
|
17159
|
+
const m = h.target;
|
|
17156
17160
|
m && m.id === "pop-overlay" && e();
|
|
17157
17161
|
},
|
|
17158
17162
|
children: /* @__PURE__ */ g("div", { className: "sass-pg-cmt-lp-card", children: [
|
|
@@ -17213,7 +17217,7 @@ function Nm({
|
|
|
17213
17217
|
const xm = {
|
|
17214
17218
|
submitCommentButton: "Enviar Comentario"
|
|
17215
17219
|
}, Bs = ({ onClick: e, isDisabled: t, API_ENV: n, icon: a, handleGoogleLogin: r, showAlert: o, texts: i }) => {
|
|
17216
|
-
const c = { ...xm, ...i?.comentarios }, [l, d] = he.useState(!1), [u,
|
|
17220
|
+
const c = { ...xm, ...i?.comentarios }, [l, d] = he.useState(!1), [u, h] = he.useState(!1), [m, w] = he.useState(!1);
|
|
17217
17221
|
he.useEffect(() => {
|
|
17218
17222
|
let p = null;
|
|
17219
17223
|
return l && (p = setTimeout(() => {
|
|
@@ -17228,10 +17232,10 @@ const xm = {
|
|
|
17228
17232
|
const b = p.closest(".comment-form"), A = b?.querySelector('input[name="username"]'), v = b?.querySelector('textarea[name="comment"]'), N = b?.querySelector("textarea.g-recaptcha-response") ?? document.querySelector("#g-recaptcha-response");
|
|
17229
17233
|
A?.value?.trim() && v?.value?.trim() && N?.value?.trim() && p.click();
|
|
17230
17234
|
});
|
|
17231
|
-
const
|
|
17232
|
-
return l ? /* @__PURE__ */ s("div", { className: "success-gif-container su-flex-center su-relative", children: /* @__PURE__ */ s("img", { className: "success-gif su-absolute", src:
|
|
17235
|
+
const f = re("/Success.gif", n.PUBLIC_ASSETS_URL);
|
|
17236
|
+
return l ? /* @__PURE__ */ s("div", { className: "success-gif-container su-flex-center su-relative", children: /* @__PURE__ */ s("img", { className: "success-gif su-absolute", src: f }) }) : /* @__PURE__ */ g($, { children: [
|
|
17233
17237
|
m && n.CONFIG_commentsV2 && o && /* @__PURE__ */ s(Nm, { API_ENV: n, icon: a, handleGoogleLogin: r, texts: i, onClose: (p) => {
|
|
17234
|
-
p &&
|
|
17238
|
+
p && h(!0), w(!1);
|
|
17235
17239
|
} }),
|
|
17236
17240
|
/* @__PURE__ */ g(
|
|
17237
17241
|
"button",
|
|
@@ -17242,7 +17246,7 @@ const xm = {
|
|
|
17242
17246
|
w(!0), console.log("open popup");
|
|
17243
17247
|
return;
|
|
17244
17248
|
}
|
|
17245
|
-
await e(p) && (n.CONFIG_commentsV2 && o &&
|
|
17249
|
+
await e(p) && (n.CONFIG_commentsV2 && o && h(!1), d(!0));
|
|
17246
17250
|
},
|
|
17247
17251
|
id: "comment-button",
|
|
17248
17252
|
className: `submit-btn su-bg-transparent su-font-bold ${t ? "disabled" : "active"}`,
|
|
@@ -17281,7 +17285,7 @@ const xm = {
|
|
|
17281
17285
|
API_ENV: c,
|
|
17282
17286
|
anonimusUser: l
|
|
17283
17287
|
}) => {
|
|
17284
|
-
const d = t.current?.value || "", { PUBLIC_PUBLICATION_ID: u } = c,
|
|
17288
|
+
const d = t.current?.value || "", { PUBLIC_PUBLICATION_ID: u } = c, h = u;
|
|
17285
17289
|
if (console.log("check", r, l), !_n(t, n, c).boolean || !r && !l) {
|
|
17286
17290
|
console.log("warn");
|
|
17287
17291
|
const w = a.nextElementSibling;
|
|
@@ -17290,11 +17294,11 @@ const xm = {
|
|
|
17290
17294
|
if (!r && !l) return;
|
|
17291
17295
|
const m = r ? d : "[[" + l + "]] " + d;
|
|
17292
17296
|
try {
|
|
17293
|
-
const w = Date.now(),
|
|
17297
|
+
const w = Date.now(), f = await fetch("/api/comments-add", {
|
|
17294
17298
|
method: "POST",
|
|
17295
17299
|
headers: { "Content-Type": "application/json" },
|
|
17296
17300
|
body: JSON.stringify({
|
|
17297
|
-
publication:
|
|
17301
|
+
publication: h,
|
|
17298
17302
|
path: e,
|
|
17299
17303
|
id: o,
|
|
17300
17304
|
username: r ? r.username : !1,
|
|
@@ -17304,13 +17308,13 @@ const xm = {
|
|
|
17304
17308
|
});
|
|
17305
17309
|
let p = null;
|
|
17306
17310
|
try {
|
|
17307
|
-
p = await
|
|
17311
|
+
p = await f.json();
|
|
17308
17312
|
} catch (C) {
|
|
17309
17313
|
console.error("Error parsing JSON response:", C);
|
|
17310
17314
|
}
|
|
17311
|
-
if (!
|
|
17315
|
+
if (!f.ok)
|
|
17312
17316
|
throw new Error(
|
|
17313
|
-
`Error al enviar comentario: ${p?.message} status: ${
|
|
17317
|
+
`Error al enviar comentario: ${p?.message} status: ${f.status}`
|
|
17314
17318
|
);
|
|
17315
17319
|
const b = Date.now(), A = Math.max(0, 2400 + Math.abs(b - w)), v = r || { username: l, firstname: l }, N = {
|
|
17316
17320
|
username: v.username,
|
|
@@ -17338,7 +17342,7 @@ const xm = {
|
|
|
17338
17342
|
API_ENV: i,
|
|
17339
17343
|
texts: c
|
|
17340
17344
|
}) => {
|
|
17341
|
-
const [l, d] = V(!0), [u,
|
|
17345
|
+
const [l, d] = V(!0), [u, h] = V(""), m = () => {
|
|
17342
17346
|
t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${Ve}`), d(!0), o();
|
|
17343
17347
|
};
|
|
17344
17348
|
return /* @__PURE__ */ g("div", { className: "comment-form reply-form su-p-8 su-relative", children: [
|
|
@@ -17358,14 +17362,14 @@ const xm = {
|
|
|
17358
17362
|
{
|
|
17359
17363
|
commentRef: t,
|
|
17360
17364
|
captchaToken: u,
|
|
17361
|
-
setCaptchaToken:
|
|
17365
|
+
setCaptchaToken: h,
|
|
17362
17366
|
API_ENV: i,
|
|
17363
17367
|
children: /* @__PURE__ */ s(
|
|
17364
17368
|
Bs,
|
|
17365
17369
|
{
|
|
17366
17370
|
onClick: async (w) => {
|
|
17367
17371
|
if (l) return;
|
|
17368
|
-
const
|
|
17372
|
+
const f = await Ms({
|
|
17369
17373
|
path: a,
|
|
17370
17374
|
ref: t,
|
|
17371
17375
|
captchaToken: u,
|
|
@@ -17375,9 +17379,9 @@ const xm = {
|
|
|
17375
17379
|
addComment: r,
|
|
17376
17380
|
API_ENV: i
|
|
17377
17381
|
});
|
|
17378
|
-
return
|
|
17382
|
+
return f && typeof f == "number" ? (setTimeout(() => {
|
|
17379
17383
|
m();
|
|
17380
|
-
},
|
|
17384
|
+
}, f), !0) : !1;
|
|
17381
17385
|
},
|
|
17382
17386
|
isDisabled: l,
|
|
17383
17387
|
API_ENV: i,
|
|
@@ -17409,11 +17413,11 @@ const xm = {
|
|
|
17409
17413
|
}, km = {
|
|
17410
17414
|
moreRepliesButton: "Más Respuestas"
|
|
17411
17415
|
}, Im = ({ comment: e, replyingTo: t, path: n, user: a, handleReplyingTo: r, onFlag: o, API_ENV: i, texts: c }) => {
|
|
17412
|
-
const l = { ...km, ...c?.comentarios }, d = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [u,
|
|
17416
|
+
const l = { ...km, ...c?.comentarios }, d = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [u, h] = V(d), [m, w] = he.useState(!1), { PUBLIC_PUBLICATION_ID: f, PUBLIC_X_SECURITY_TOKEN: p } = i, b = e.text, A = he.useRef(null);
|
|
17413
17417
|
let v = `${Ge.firstname} ${Ge.lastname ?? ""}`, N = Ge.username;
|
|
17414
17418
|
e.user && (v = `${e.user.firstname} ${e.user.lastname ?? ""}`, N = e.user.username);
|
|
17415
17419
|
const C = (y) => {
|
|
17416
|
-
|
|
17420
|
+
h({ morereply: u.morereply, reply: [y, ...u.reply] });
|
|
17417
17421
|
};
|
|
17418
17422
|
return /* @__PURE__ */ s("div", { className: "comment-item", children: /* @__PURE__ */ g(
|
|
17419
17423
|
"div",
|
|
@@ -17468,7 +17472,7 @@ const xm = {
|
|
|
17468
17472
|
w(!0);
|
|
17469
17473
|
try {
|
|
17470
17474
|
const T = await Rs({
|
|
17471
|
-
publication:
|
|
17475
|
+
publication: f ?? "",
|
|
17472
17476
|
path: n ?? "",
|
|
17473
17477
|
size: 2,
|
|
17474
17478
|
sizereply: 2,
|
|
@@ -17478,7 +17482,7 @@ const xm = {
|
|
|
17478
17482
|
apiToken: p ?? "",
|
|
17479
17483
|
API_ENV: i
|
|
17480
17484
|
});
|
|
17481
|
-
w(!1),
|
|
17485
|
+
w(!1), h({ morereply: T.morecomment, reply: [...u.reply, ...T.comments] });
|
|
17482
17486
|
} catch (S) {
|
|
17483
17487
|
throw w(!1), new Error(`Error al obtener comentarios: ${S}`);
|
|
17484
17488
|
}
|
|
@@ -17523,7 +17527,7 @@ const xm = {
|
|
|
17523
17527
|
{
|
|
17524
17528
|
onClick: async (u) => {
|
|
17525
17529
|
if (i) return;
|
|
17526
|
-
const
|
|
17530
|
+
const h = await Ms({
|
|
17527
17531
|
path: n,
|
|
17528
17532
|
ref: e,
|
|
17529
17533
|
captchaToken: l,
|
|
@@ -17532,9 +17536,9 @@ const xm = {
|
|
|
17532
17536
|
addComment: a,
|
|
17533
17537
|
API_ENV: r
|
|
17534
17538
|
});
|
|
17535
|
-
return
|
|
17539
|
+
return h && typeof h == "number" ? (e.current?.parentElement && (e.current.parentElement.dataset.text = `0/${Ve}`), c(!0), setTimeout(() => {
|
|
17536
17540
|
e.current?.parentElement && (e.current.parentElement.dataset.text = `0/${Ve}`), c(!0);
|
|
17537
|
-
},
|
|
17541
|
+
}, h), !0) : !1;
|
|
17538
17542
|
},
|
|
17539
17543
|
isDisabled: i,
|
|
17540
17544
|
API_ENV: r,
|
|
@@ -17571,7 +17575,7 @@ const xm = {
|
|
|
17571
17575
|
API_ENV: i,
|
|
17572
17576
|
texts: c
|
|
17573
17577
|
}) => {
|
|
17574
|
-
const [l, d] = V(!0), [u,
|
|
17578
|
+
const [l, d] = V(!0), [u, h] = V("");
|
|
17575
17579
|
return /* @__PURE__ */ s($, { children: /* @__PURE__ */ g("div", { className: "comment-form anoninus-form su-p-8 su-relative", children: [
|
|
17576
17580
|
/* @__PURE__ */ s(
|
|
17577
17581
|
Rm,
|
|
@@ -17596,7 +17600,7 @@ const xm = {
|
|
|
17596
17600
|
API_ENV: i,
|
|
17597
17601
|
commentRef: t,
|
|
17598
17602
|
captchaToken: u,
|
|
17599
|
-
setCaptchaToken:
|
|
17603
|
+
setCaptchaToken: h,
|
|
17600
17604
|
children: /* @__PURE__ */ s(
|
|
17601
17605
|
Bs,
|
|
17602
17606
|
{
|
|
@@ -17609,7 +17613,7 @@ const xm = {
|
|
|
17609
17613
|
console.log("invalidForm");
|
|
17610
17614
|
return;
|
|
17611
17615
|
}
|
|
17612
|
-
const
|
|
17616
|
+
const f = e.current.value, p = await Ms({
|
|
17613
17617
|
path: n,
|
|
17614
17618
|
ref: t,
|
|
17615
17619
|
captchaToken: u,
|
|
@@ -17617,9 +17621,9 @@ const xm = {
|
|
|
17617
17621
|
user: void 0,
|
|
17618
17622
|
addComment: o,
|
|
17619
17623
|
API_ENV: i,
|
|
17620
|
-
anonimusUser:
|
|
17624
|
+
anonimusUser: f
|
|
17621
17625
|
});
|
|
17622
|
-
return
|
|
17626
|
+
return h(""), p && typeof p == "number" ? (t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${Ve}`), d(!0), setTimeout(() => {
|
|
17623
17627
|
t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${Ve}`), d(!0);
|
|
17624
17628
|
}, p), !0) : !1;
|
|
17625
17629
|
},
|
|
@@ -17654,7 +17658,7 @@ const xm = {
|
|
|
17654
17658
|
API_ENV: i,
|
|
17655
17659
|
texts: c
|
|
17656
17660
|
}) => {
|
|
17657
|
-
const l = { ...Om, ...c?.comentarios }, { PUBLIC_PUBLICATION_ID: d, PUBLIC_X_SECURITY_TOKEN: u } = i,
|
|
17661
|
+
const l = { ...Om, ...c?.comentarios }, { PUBLIC_PUBLICATION_ID: d, PUBLIC_X_SECURITY_TOKEN: u } = i, h = d ?? "", m = t.replaceAll("/", "|"), [w, f] = V(
|
|
17658
17662
|
void 0
|
|
17659
17663
|
), [p, b] = V(""), { comments: A, setComments: v } = Am(m, i), [N, C] = he.useState(!1), y = he.useRef(null), S = he.useRef(null), T = (L) => {
|
|
17660
17664
|
b(p === L ? "" : L);
|
|
@@ -17666,7 +17670,7 @@ const xm = {
|
|
|
17666
17670
|
} : void 0
|
|
17667
17671
|
);
|
|
17668
17672
|
}, z = (L) => {
|
|
17669
|
-
|
|
17673
|
+
f(L);
|
|
17670
17674
|
}, O = async () => {
|
|
17671
17675
|
if (!A || !A.morecomment || A.comments.length === 0) return;
|
|
17672
17676
|
const L = A.comments[A.comments.length - 1];
|
|
@@ -17675,7 +17679,7 @@ const xm = {
|
|
|
17675
17679
|
const U = L.id;
|
|
17676
17680
|
try {
|
|
17677
17681
|
const j = await Rs({
|
|
17678
|
-
publication:
|
|
17682
|
+
publication: h,
|
|
17679
17683
|
path: m ?? "",
|
|
17680
17684
|
size: 5,
|
|
17681
17685
|
sizereply: 2,
|
|
@@ -17775,10 +17779,10 @@ const xm = {
|
|
|
17775
17779
|
gm,
|
|
17776
17780
|
{
|
|
17777
17781
|
username: n?.username ?? void 0,
|
|
17778
|
-
publication:
|
|
17782
|
+
publication: h,
|
|
17779
17783
|
commentId: w,
|
|
17780
17784
|
isOpen: w !== void 0,
|
|
17781
|
-
onClose: () =>
|
|
17785
|
+
onClose: () => f(void 0),
|
|
17782
17786
|
CAPTCHA_KEY_V2: i.CAPTCHA_KEY_V2 ?? "",
|
|
17783
17787
|
texts: c
|
|
17784
17788
|
}
|
|
@@ -17828,7 +17832,7 @@ const xm = {
|
|
|
17828
17832
|
errorPasswordInvalid: "La contraseña no es válida",
|
|
17829
17833
|
errorVerificationCodeRequired: "Debes ingresar el código de verificación",
|
|
17830
17834
|
errorUnexpected: "Error inesperado"
|
|
17831
|
-
},
|
|
17835
|
+
}, kt = {
|
|
17832
17836
|
email: { label: "Email" },
|
|
17833
17837
|
given_name: { label: "Nombre" },
|
|
17834
17838
|
family_name: { label: "Apellido" },
|
|
@@ -17837,11 +17841,11 @@ const xm = {
|
|
|
17837
17841
|
};
|
|
17838
17842
|
function _m(e) {
|
|
17839
17843
|
return {
|
|
17840
|
-
email: { label: e?.email ??
|
|
17841
|
-
given_name: { label: e?.given_name ??
|
|
17842
|
-
family_name: { label: e?.family_name ??
|
|
17843
|
-
password: { label: e?.password ??
|
|
17844
|
-
confirmPassword: { label: e?.confirmPassword ??
|
|
17844
|
+
email: { label: e?.email ?? kt.email.label, required: !0 },
|
|
17845
|
+
given_name: { label: e?.given_name ?? kt.given_name.label, required: !0 },
|
|
17846
|
+
family_name: { label: e?.family_name ?? kt.family_name.label, required: !0 },
|
|
17847
|
+
password: { label: e?.password ?? kt.password.label, required: !0 },
|
|
17848
|
+
confirmPassword: { label: e?.confirmPassword ?? kt.confirmPassword.label, required: !0 }
|
|
17845
17849
|
};
|
|
17846
17850
|
}
|
|
17847
17851
|
const Be = [
|
|
@@ -17858,10 +17862,10 @@ const Be = [
|
|
|
17858
17862
|
{ label: "Usa un símbolo", test: Be[4] }
|
|
17859
17863
|
];
|
|
17860
17864
|
function qm({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAndConditionsUrl: r }) {
|
|
17861
|
-
const o = { ...Mm, ...a?.comentarios }, i =
|
|
17865
|
+
const o = { ...Mm, ...a?.comentarios }, i = Ot(
|
|
17862
17866
|
() => _m(a?.comentarios?.registerForm),
|
|
17863
17867
|
[a?.comentarios?.registerForm]
|
|
17864
|
-
), c =
|
|
17868
|
+
), c = Ot(
|
|
17865
17869
|
() => [
|
|
17866
17870
|
{ label: o.passwordRuleMinLength, test: Be[0] },
|
|
17867
17871
|
{ label: o.passwordRuleNumber, test: Be[1] },
|
|
@@ -17870,7 +17874,7 @@ function qm({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
17870
17874
|
{ label: o.passwordRuleSymbol, test: Be[4] }
|
|
17871
17875
|
],
|
|
17872
17876
|
[o.passwordRuleMinLength, o.passwordRuleNumber, o.passwordRuleLowercase, o.passwordRuleUppercase, o.passwordRuleSymbol]
|
|
17873
|
-
), [l, d] = V({}), [u,
|
|
17877
|
+
), [l, d] = V({}), [u, h] = V(!1), [m, w] = V(!1), [f, p] = V(null), [b, A] = V(
|
|
17874
17878
|
"register"
|
|
17875
17879
|
), v = (S, T) => {
|
|
17876
17880
|
d((R) => ({ ...R, [S]: T }));
|
|
@@ -17973,7 +17977,7 @@ function qm({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
17973
17977
|
{
|
|
17974
17978
|
onSubmit: N,
|
|
17975
17979
|
className: "sass-pg-cmt-lp-form",
|
|
17976
|
-
"data-error":
|
|
17980
|
+
"data-error": f ? "true" : "false",
|
|
17977
17981
|
children: [
|
|
17978
17982
|
/* @__PURE__ */ s("ul", { className: "sass-pg-cmt-lp-formUl", children: Object.entries(i).map(([S, { label: T }]) => /* @__PURE__ */ g("div", { className: "sass-pg-cmt-lp-field", children: [
|
|
17979
17983
|
/* @__PURE__ */ s("label", { className: "sass-pg-cmt-lp-label", children: T }),
|
|
@@ -18009,7 +18013,7 @@ function qm({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
18009
18013
|
id: "showPasswordRegister",
|
|
18010
18014
|
type: "checkbox",
|
|
18011
18015
|
checked: u,
|
|
18012
|
-
onChange: (R) =>
|
|
18016
|
+
onChange: (R) => h(R.target.checked)
|
|
18013
18017
|
}
|
|
18014
18018
|
),
|
|
18015
18019
|
/* @__PURE__ */ s(
|
|
@@ -18022,7 +18026,7 @@ function qm({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
18022
18026
|
)
|
|
18023
18027
|
] })
|
|
18024
18028
|
] }, S)) }),
|
|
18025
|
-
|
|
18029
|
+
f && /* @__PURE__ */ s("p", { className: "sass-pg-cmt-lp-error", children: f }),
|
|
18026
18030
|
/* @__PURE__ */ g("p", { className: "sass-pg-cmt-lp-terms", children: [
|
|
18027
18031
|
o.termsPrefix,
|
|
18028
18032
|
" ",
|
|
@@ -18040,7 +18044,7 @@ function qm({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
18040
18044
|
{
|
|
18041
18045
|
onSubmit: C,
|
|
18042
18046
|
className: "sass-pg-cmt-lp-form",
|
|
18043
|
-
"data-error":
|
|
18047
|
+
"data-error": f ? "true" : "false",
|
|
18044
18048
|
children: [
|
|
18045
18049
|
/* @__PURE__ */ g("div", { className: "sass-pg-cmt-lp-field", children: [
|
|
18046
18050
|
/* @__PURE__ */ s("label", { className: "sass-pg-cmt-lp-label", children: o.verificationCodeLabel }),
|
|
@@ -18056,7 +18060,7 @@ function qm({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
18056
18060
|
}
|
|
18057
18061
|
)
|
|
18058
18062
|
] }),
|
|
18059
|
-
|
|
18063
|
+
f && /* @__PURE__ */ s("p", { className: "sass-pg-cmt-lp-error", children: f }),
|
|
18060
18064
|
/* @__PURE__ */ s("button", { type: "submit", className: "sass-pg-cmt-lp-primary", disabled: m, children: m ? /* @__PURE__ */ s(Je, {}) : o.confirmAccountButton }),
|
|
18061
18065
|
/* @__PURE__ */ g("p", { className: "sass-pg-cmt-lp-switch", children: [
|
|
18062
18066
|
o.alreadyConfirmedText,
|
|
@@ -18128,13 +18132,13 @@ function jm({
|
|
|
18128
18132
|
API_ENV: r,
|
|
18129
18133
|
texts: o
|
|
18130
18134
|
}) {
|
|
18131
|
-
const i = { ...Dm, ...o?.comentarios }, [c, l] = V("login"), [d, u] = V(""), [
|
|
18135
|
+
const i = { ...Dm, ...o?.comentarios }, [c, l] = V("login"), [d, u] = V(""), [h, m] = V(""), [w, f] = V(""), [p, b] = V(""), [A, v] = V(""), [N, C] = V(!1), [y, S] = V(!1), [T, R] = V(null);
|
|
18132
18136
|
return /* @__PURE__ */ g($, { children: [
|
|
18133
18137
|
c === "login" && /* @__PURE__ */ s(
|
|
18134
18138
|
Gm,
|
|
18135
18139
|
{
|
|
18136
18140
|
email: d,
|
|
18137
|
-
password:
|
|
18141
|
+
password: h,
|
|
18138
18142
|
showPassword: N,
|
|
18139
18143
|
loading: y,
|
|
18140
18144
|
error: T,
|
|
@@ -18151,7 +18155,7 @@ function jm({
|
|
|
18151
18155
|
method: "POST",
|
|
18152
18156
|
headers: { "Content-Type": "application/json" },
|
|
18153
18157
|
credentials: "include",
|
|
18154
|
-
body: JSON.stringify({ email: d, password:
|
|
18158
|
+
body: JSON.stringify({ email: d, password: h, token: Q })
|
|
18155
18159
|
});
|
|
18156
18160
|
if (!B.ok) {
|
|
18157
18161
|
const L = await B.json().catch(() => ({}));
|
|
@@ -18217,7 +18221,7 @@ function jm({
|
|
|
18217
18221
|
showPassword: N,
|
|
18218
18222
|
loading: y,
|
|
18219
18223
|
error: T,
|
|
18220
|
-
setConfirmationCode:
|
|
18224
|
+
setConfirmationCode: f,
|
|
18221
18225
|
setNewPassword: b,
|
|
18222
18226
|
setConfirmNewPassword: v,
|
|
18223
18227
|
setShowPassword: C,
|
|
@@ -18280,11 +18284,11 @@ function Gm({
|
|
|
18280
18284
|
onSubmit: l,
|
|
18281
18285
|
onForgot: d,
|
|
18282
18286
|
onRegister: u,
|
|
18283
|
-
handleGoogleLogin:
|
|
18287
|
+
handleGoogleLogin: h,
|
|
18284
18288
|
t: m
|
|
18285
18289
|
}) {
|
|
18286
18290
|
return /* @__PURE__ */ g($, { children: [
|
|
18287
|
-
/* @__PURE__ */ g("button", { onClick:
|
|
18291
|
+
/* @__PURE__ */ g("button", { onClick: h, className: "sass-pg-cmt-lp-google", children: [
|
|
18288
18292
|
/* @__PURE__ */ s(
|
|
18289
18293
|
"img",
|
|
18290
18294
|
{
|
|
@@ -18411,19 +18415,19 @@ function Hm({
|
|
|
18411
18415
|
setNewPassword: l,
|
|
18412
18416
|
setConfirmNewPassword: d,
|
|
18413
18417
|
setShowPassword: u,
|
|
18414
|
-
onSubmit:
|
|
18418
|
+
onSubmit: h,
|
|
18415
18419
|
onBack: m,
|
|
18416
18420
|
t: w
|
|
18417
18421
|
}) {
|
|
18418
|
-
const
|
|
18422
|
+
const f = w.changePasswordMessage.replace("{{email}}", Wu(e));
|
|
18419
18423
|
return /* @__PURE__ */ g(
|
|
18420
18424
|
"form",
|
|
18421
18425
|
{
|
|
18422
|
-
onSubmit:
|
|
18426
|
+
onSubmit: h,
|
|
18423
18427
|
className: "sass-pg-cmt-lp-form",
|
|
18424
18428
|
"data-error": i ? "true" : "false",
|
|
18425
18429
|
children: [
|
|
18426
|
-
/* @__PURE__ */ s("p", { className: "sass-pg-cmt-lp-message", children:
|
|
18430
|
+
/* @__PURE__ */ s("p", { className: "sass-pg-cmt-lp-message", children: f }),
|
|
18427
18431
|
/* @__PURE__ */ g("ul", { className: "sass-pg-cmt-lp-formUl", children: [
|
|
18428
18432
|
/* @__PURE__ */ g("div", { className: "sass-pg-cmt-lp-field", children: [
|
|
18429
18433
|
/* @__PURE__ */ s("label", { className: "sass-pg-cmt-lp-label", children: w.verificationCodeLabel }),
|
|
@@ -18592,7 +18596,7 @@ function $m({
|
|
|
18592
18596
|
texts: l,
|
|
18593
18597
|
termsAndConditionsUrl: d
|
|
18594
18598
|
}) {
|
|
18595
|
-
const [u,
|
|
18599
|
+
const [u, h] = V(!1), m = { ...Qm, ...l?.comentarios }, w = m.loginButtonText, f = async () => {
|
|
18596
18600
|
if (c.PUBLIC_ENV === "local")
|
|
18597
18601
|
await fetch("/api/auth/logout", {
|
|
18598
18602
|
method: "GET",
|
|
@@ -18603,7 +18607,7 @@ function $m({
|
|
|
18603
18607
|
window.location.href = `${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(A)}`;
|
|
18604
18608
|
}
|
|
18605
18609
|
}, p = async (A) => {
|
|
18606
|
-
A.preventDefault(), n &&
|
|
18610
|
+
A.preventDefault(), n && h(!0);
|
|
18607
18611
|
}, b = async () => {
|
|
18608
18612
|
if (c.PUBLIC_ENV === "local") {
|
|
18609
18613
|
await fetch("/api/auth/debug-login", { method: "GET", credentials: "include" }), localStorage.setItem("cognito-login", "success:" + Date.now()), o();
|
|
@@ -18625,7 +18629,7 @@ function $m({
|
|
|
18625
18629
|
texts: l,
|
|
18626
18630
|
termsAndConditionsUrl: d,
|
|
18627
18631
|
onClose: () => {
|
|
18628
|
-
|
|
18632
|
+
h(!1);
|
|
18629
18633
|
}
|
|
18630
18634
|
}
|
|
18631
18635
|
),
|
|
@@ -18645,7 +18649,7 @@ function $m({
|
|
|
18645
18649
|
Bm,
|
|
18646
18650
|
{
|
|
18647
18651
|
isAuthenticated: e,
|
|
18648
|
-
handleLogout:
|
|
18652
|
+
handleLogout: f,
|
|
18649
18653
|
handleGoogleLogin: b,
|
|
18650
18654
|
icon: i,
|
|
18651
18655
|
path: r,
|
|
@@ -18672,8 +18676,8 @@ function Wm({
|
|
|
18672
18676
|
try {
|
|
18673
18677
|
const p = await (await fetch("/api/auth/user", { credentials: "include" })).json();
|
|
18674
18678
|
i(p.isAuthenticated ?? !1), l(p.user ?? null), document.cookie = "redirect_after_login_1=; Max-Age=0; path=/";
|
|
18675
|
-
} catch (
|
|
18676
|
-
console.error("Error checking auth:",
|
|
18679
|
+
} catch (f) {
|
|
18680
|
+
console.error("Error checking auth:", f), i(!1), l(null);
|
|
18677
18681
|
}
|
|
18678
18682
|
}
|
|
18679
18683
|
}, [e, d]);
|
|
@@ -18681,14 +18685,14 @@ function Wm({
|
|
|
18681
18685
|
u();
|
|
18682
18686
|
}, [u, e]), Me(() => {
|
|
18683
18687
|
if (!c || !e || typeof window > "u") return;
|
|
18684
|
-
const
|
|
18685
|
-
if (typeof
|
|
18688
|
+
const f = window;
|
|
18689
|
+
if (typeof f != "function") {
|
|
18686
18690
|
console.warn("gtag no está disponible todavía");
|
|
18687
18691
|
return;
|
|
18688
18692
|
}
|
|
18689
|
-
|
|
18693
|
+
f.gtag("set", { user_id: c.username }), console.log("username setted successfully");
|
|
18690
18694
|
}, [c, e]);
|
|
18691
|
-
const
|
|
18695
|
+
const h = "/api/auth/login", m = /* @__PURE__ */ s(
|
|
18692
18696
|
"div",
|
|
18693
18697
|
{
|
|
18694
18698
|
className: "su-flex-center su-relative",
|
|
@@ -18705,7 +18709,7 @@ function Wm({
|
|
|
18705
18709
|
icon: n,
|
|
18706
18710
|
isAuthenticated: o,
|
|
18707
18711
|
setIsAuthenticated: i,
|
|
18708
|
-
loginUrl:
|
|
18712
|
+
loginUrl: h,
|
|
18709
18713
|
user: c ?? void 0,
|
|
18710
18714
|
checkAuth: u,
|
|
18711
18715
|
path: w,
|
|
@@ -18784,7 +18788,7 @@ async function sf({
|
|
|
18784
18788
|
message: "Faltan campos obligatorios. Por favor, completa todos los campos.",
|
|
18785
18789
|
status: 400
|
|
18786
18790
|
};
|
|
18787
|
-
if ([e, t, a].some((
|
|
18791
|
+
if ([e, t, a].some((f) => typeof f != "string"))
|
|
18788
18792
|
return {
|
|
18789
18793
|
type: "error",
|
|
18790
18794
|
message: "Datos inválidos. Intenta de nuevo.",
|
|
@@ -18803,7 +18807,7 @@ async function sf({
|
|
|
18803
18807
|
message: "Captcha inválido. Intenta nuevamente.",
|
|
18804
18808
|
status: 403
|
|
18805
18809
|
};
|
|
18806
|
-
const
|
|
18810
|
+
const h = `${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`, m = {
|
|
18807
18811
|
publication: e,
|
|
18808
18812
|
path: t.replace(/\|/gi, "/"),
|
|
18809
18813
|
text: a.trim()
|
|
@@ -18811,7 +18815,7 @@ async function sf({
|
|
|
18811
18815
|
n && (m.username = n), r && (m.id = r);
|
|
18812
18816
|
const w = new URLSearchParams(m);
|
|
18813
18817
|
try {
|
|
18814
|
-
const { data:
|
|
18818
|
+
const { data: f } = await oe.get(`${h}?${w.toString()}`, {
|
|
18815
18819
|
headers: {
|
|
18816
18820
|
"Content-Type": "application/json",
|
|
18817
18821
|
"x-security-token": l,
|
|
@@ -18819,18 +18823,18 @@ async function sf({
|
|
|
18819
18823
|
"User-Agent": "amplifyapp-comments-saas"
|
|
18820
18824
|
}
|
|
18821
18825
|
});
|
|
18822
|
-
return !
|
|
18826
|
+
return !f || f.error ? (console.error("CMS error response:", f), {
|
|
18823
18827
|
type: "error",
|
|
18824
18828
|
message: "No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",
|
|
18825
18829
|
status: 502
|
|
18826
|
-
}) : (console.log("Comentario enviado con éxito",
|
|
18830
|
+
}) : (console.log("Comentario enviado con éxito", f), {
|
|
18827
18831
|
type: "success",
|
|
18828
18832
|
message: "Comentario enviado con éxito.",
|
|
18829
18833
|
status: 200
|
|
18830
18834
|
});
|
|
18831
|
-
} catch (
|
|
18832
|
-
if (console.error("Error enviando comentario:",
|
|
18833
|
-
const p =
|
|
18835
|
+
} catch (f) {
|
|
18836
|
+
if (console.error("Error enviando comentario:", f), oe.isAxiosError(f)) {
|
|
18837
|
+
const p = f.response?.status ?? 500, b = f.response?.data;
|
|
18834
18838
|
return p === 400 ? {
|
|
18835
18839
|
type: "error",
|
|
18836
18840
|
message: b?.message || "Solicitud inválida. Verifica que los campos sean correctos.",
|
|
@@ -19154,30 +19158,30 @@ const eh = (e) => e?.main?.title ? {
|
|
|
19154
19158
|
showTagBySection: i,
|
|
19155
19159
|
pathname: c
|
|
19156
19160
|
}) => {
|
|
19157
|
-
const l = zc(c), d = [], u = t,
|
|
19158
|
-
!e[
|
|
19161
|
+
const l = zc(c), d = [], u = t, h = (f, p, b, A) => {
|
|
19162
|
+
!e[f] || !e[f].blockSass || !e[f].blockSass[0] || !e[f].blockSass[0].value || !e[f].blockSass[0].block || e[f].blockSass[0].block === "No Mostrar" || (e[f].blockSass[0]?.block === "Modulo iframe" ? d.push(
|
|
19159
19163
|
/* @__PURE__ */ g(
|
|
19160
19164
|
wa,
|
|
19161
19165
|
{
|
|
19162
|
-
id: e[
|
|
19163
|
-
show: !!e[
|
|
19166
|
+
id: e[f].blockSass[0].key,
|
|
19167
|
+
show: !!e[f].blockSass[0].value,
|
|
19164
19168
|
order: p,
|
|
19165
19169
|
children: [
|
|
19166
19170
|
/* @__PURE__ */ s(
|
|
19167
19171
|
Ma,
|
|
19168
19172
|
{
|
|
19169
|
-
component: e[
|
|
19173
|
+
component: e[f].blockSass[0].block,
|
|
19170
19174
|
banners: o,
|
|
19171
|
-
slot_id:
|
|
19175
|
+
slot_id: f,
|
|
19172
19176
|
isHome: l,
|
|
19173
19177
|
data: {
|
|
19174
|
-
printEdition: e[
|
|
19175
|
-
title: e[
|
|
19176
|
-
titleUrl: e[
|
|
19178
|
+
printEdition: e[f]?.blockSass[0].value,
|
|
19179
|
+
title: e[f]?.blockSass[0].title ?? "",
|
|
19180
|
+
titleUrl: e[f].blockSass[0].link ?? void 0
|
|
19177
19181
|
}
|
|
19178
19182
|
}
|
|
19179
19183
|
),
|
|
19180
|
-
/* @__PURE__ */ s(
|
|
19184
|
+
/* @__PURE__ */ s(Pt, { children: /* @__PURE__ */ s(
|
|
19181
19185
|
pt,
|
|
19182
19186
|
{
|
|
19183
19187
|
banners: o,
|
|
@@ -19192,29 +19196,29 @@ const eh = (e) => e?.main?.title ? {
|
|
|
19192
19196
|
/* @__PURE__ */ g(
|
|
19193
19197
|
wa,
|
|
19194
19198
|
{
|
|
19195
|
-
id: e[
|
|
19196
|
-
show: !!e[
|
|
19199
|
+
id: e[f].blockSass[0].key,
|
|
19200
|
+
show: !!e[f].content?.data,
|
|
19197
19201
|
order: p,
|
|
19198
19202
|
children: [
|
|
19199
19203
|
/* @__PURE__ */ s(
|
|
19200
19204
|
Ma,
|
|
19201
19205
|
{
|
|
19202
|
-
component: e[
|
|
19206
|
+
component: e[f].blockSass[0].block,
|
|
19203
19207
|
banners: o,
|
|
19204
|
-
slot_id:
|
|
19208
|
+
slot_id: f,
|
|
19205
19209
|
isHome: l,
|
|
19206
19210
|
data: {
|
|
19207
|
-
...e[
|
|
19208
|
-
content: e[
|
|
19209
|
-
title: e[
|
|
19210
|
-
titleUrl: e[
|
|
19211
|
+
...e[f].blockSass[0].block ? n[e[f].blockSass[0].block] : [],
|
|
19212
|
+
content: e[f].content?.data ?? [],
|
|
19213
|
+
title: e[f].blockSass[0].title ?? void 0,
|
|
19214
|
+
titleUrl: e[f].blockSass[0].link ?? void 0,
|
|
19211
19215
|
autorIcon: /* @__PURE__ */ s(a, {}),
|
|
19212
19216
|
paths: r.paths,
|
|
19213
19217
|
showTagBySection: i
|
|
19214
19218
|
}
|
|
19215
19219
|
}
|
|
19216
19220
|
),
|
|
19217
|
-
/* @__PURE__ */ s(
|
|
19221
|
+
/* @__PURE__ */ s(Pt, { children: /* @__PURE__ */ s(
|
|
19218
19222
|
pt,
|
|
19219
19223
|
{
|
|
19220
19224
|
banners: o,
|
|
@@ -19227,16 +19231,16 @@ const eh = (e) => e?.main?.title ? {
|
|
|
19227
19231
|
)
|
|
19228
19232
|
));
|
|
19229
19233
|
}, m = Object.keys(e);
|
|
19230
|
-
if (m.some((
|
|
19231
|
-
for (const
|
|
19232
|
-
const p = Number(
|
|
19233
|
-
f
|
|
19234
|
+
if (m.some((f) => /^Home_\d+$/.test(f)))
|
|
19235
|
+
for (const f of m) {
|
|
19236
|
+
const p = Number(f.slice(5));
|
|
19237
|
+
h(f, Number.isFinite(p) ? p - 1 : 0, f, String(p));
|
|
19234
19238
|
}
|
|
19235
19239
|
else {
|
|
19236
19240
|
const p = m.length / u;
|
|
19237
19241
|
for (let b = 1; b <= p; b++)
|
|
19238
19242
|
for (let A = 1; A <= u; A++)
|
|
19239
|
-
|
|
19243
|
+
h(
|
|
19240
19244
|
"Home_" + b + "_" + A,
|
|
19241
19245
|
(b - 1) * u + (A - 1),
|
|
19242
19246
|
b + "_" + A,
|
|
@@ -19267,7 +19271,7 @@ const eh = (e) => e?.main?.title ? {
|
|
|
19267
19271
|
banners: a
|
|
19268
19272
|
}
|
|
19269
19273
|
),
|
|
19270
|
-
/* @__PURE__ */ s(
|
|
19274
|
+
/* @__PURE__ */ s(Pt, { children: /* @__PURE__ */ s(pt, { banners: a, index: 1 }) }),
|
|
19271
19275
|
/* @__PURE__ */ s(
|
|
19272
19276
|
es,
|
|
19273
19277
|
{
|
|
@@ -19276,7 +19280,7 @@ const eh = (e) => e?.main?.title ? {
|
|
|
19276
19280
|
banners: a
|
|
19277
19281
|
}
|
|
19278
19282
|
),
|
|
19279
|
-
/* @__PURE__ */ s(
|
|
19283
|
+
/* @__PURE__ */ s(Pt, { children: /* @__PURE__ */ s(pt, { banners: a, index: 1 }) }),
|
|
19280
19284
|
/* @__PURE__ */ s(
|
|
19281
19285
|
es,
|
|
19282
19286
|
{
|
|
@@ -19285,7 +19289,7 @@ const eh = (e) => e?.main?.title ? {
|
|
|
19285
19289
|
banners: a
|
|
19286
19290
|
}
|
|
19287
19291
|
),
|
|
19288
|
-
/* @__PURE__ */ s(
|
|
19292
|
+
/* @__PURE__ */ s(Pt, { children: /* @__PURE__ */ s(pt, { banners: a, index: 1 }) })
|
|
19289
19293
|
] });
|
|
19290
19294
|
};
|
|
19291
19295
|
function lf({ debugCfg: e }) {
|
|
@@ -19303,7 +19307,7 @@ function th({
|
|
|
19303
19307
|
initialErrors: t,
|
|
19304
19308
|
initialSuccesses: n
|
|
19305
19309
|
}) {
|
|
19306
|
-
const [a, r] = V(0), [o, i] = V(0), [c, l] = V(!1), [d, u] = V("errors"), [
|
|
19310
|
+
const [a, r] = V(0), [o, i] = V(0), [c, l] = V(!1), [d, u] = V("errors"), [h, m] = V([]), [w, f] = V([]), p = Ha(null);
|
|
19307
19311
|
Me(() => {
|
|
19308
19312
|
if (t && t.length > 0) {
|
|
19309
19313
|
const C = new Set(Ne.getAll().map((y) => y.id));
|
|
@@ -19336,10 +19340,10 @@ function th({
|
|
|
19336
19340
|
};
|
|
19337
19341
|
}, []);
|
|
19338
19342
|
function b() {
|
|
19339
|
-
m(Ne.getAll()),
|
|
19343
|
+
m(Ne.getAll()), f(Ne.getAllSuccesses()), l(!0);
|
|
19340
19344
|
}
|
|
19341
19345
|
function A() {
|
|
19342
|
-
Ne.clearAll(), m([]),
|
|
19346
|
+
Ne.clearAll(), m([]), f([]), r(0), i(0), l(!1);
|
|
19343
19347
|
}
|
|
19344
19348
|
return /* @__PURE__ */ g($, { children: [
|
|
19345
19349
|
/* @__PURE__ */ g("button", { onClick: b, style: ih(e), title: "Debug panel", children: [
|
|
@@ -19377,7 +19381,7 @@ function th({
|
|
|
19377
19381
|
)
|
|
19378
19382
|
] }),
|
|
19379
19383
|
/* @__PURE__ */ g("div", { style: mh, children: [
|
|
19380
|
-
d === "errors" && (
|
|
19384
|
+
d === "errors" && (h.length === 0 ? /* @__PURE__ */ s("p", { style: Fa, children: "No hay errores acumulados." }) : h.map((v) => /* @__PURE__ */ s(ah, { error: v }, v.id))),
|
|
19381
19385
|
d === "successes" && (w.length === 0 ? /* @__PURE__ */ s("p", { style: Fa, children: "No hay fetches exitosos registrados aún." }) : w.map((v) => /* @__PURE__ */ s(rh, { entry: v }, v.id)))
|
|
19382
19386
|
] }),
|
|
19383
19387
|
/* @__PURE__ */ s("div", { style: hh, children: /* @__PURE__ */ s("button", { onClick: A, style: ph, children: "Limpiar todo" }) })
|
|
@@ -19716,10 +19720,10 @@ function le(e) {
|
|
|
19716
19720
|
function je(e) {
|
|
19717
19721
|
return String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
19718
19722
|
}
|
|
19719
|
-
function
|
|
19720
|
-
const { SUB_PUBLICATION_PREFIX_IN_ROUTES: n, LINK_REMOVE: a, CONFIG_buscar_html: r } = I(), o = e ?? "", i = /[t][0-9]{4}\w+/.test(o), c = o.includes("/buscar"), l = !!n?.tema && i, d = !!n?.buscar && c, u = !t && !l && !d ? me() : "",
|
|
19721
|
-
let w = (!
|
|
19722
|
-
return w.startsWith("//") && (w = w.slice(1)), a && w.search(a) !== -1 && (w = w.replace(a, "")), r && c && !w.endsWith(".html") && (w = w.replace("/buscar", "/buscar.html")), { finalHref: w, isExternal:
|
|
19723
|
+
function Ut(e, t) {
|
|
19724
|
+
const { SUB_PUBLICATION_PREFIX_IN_ROUTES: n, LINK_REMOVE: a, CONFIG_buscar_html: r } = I(), o = e ?? "", i = /[t][0-9]{4}\w+/.test(o), c = o.includes("/buscar"), l = !!n?.tema && i, d = !!n?.buscar && c, u = !t && !l && !d ? me() : "", h = /^(https?:)?\/\//.test(o) || /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(o), m = o.split("/")?.[1] === u.replace("/", "");
|
|
19725
|
+
let w = (!h && !m ? u : "") + (u && o === "/" ? "" : o);
|
|
19726
|
+
return w.startsWith("//") && (w = w.slice(1)), a && w.search(a) !== -1 && (w = w.replace(a, "")), r && c && !w.endsWith(".html") && (w = w.replace("/buscar", "/buscar.html")), { finalHref: w, isExternal: h };
|
|
19723
19727
|
}
|
|
19724
19728
|
const Ah = {
|
|
19725
19729
|
whatsapp: {
|
|
@@ -19748,12 +19752,12 @@ function vh(e, t) {
|
|
|
19748
19752
|
const m = n[0]?.url ? ` src="${le(n[0].url)}"` : "";
|
|
19749
19753
|
return `<figure class="sass-com-img-figure"><span class="sass-com-img-backdrop"><span class="sass-com-img-backdropAux"></span><picture><img fetchpriority="${r}" loading="${o}" class="sass-com-img-imageStyled su-flex-center su-object-cover" alt="${le(a)}"${m}></picture></span></figure>`;
|
|
19750
19754
|
}
|
|
19751
|
-
const i = t ? "sync" : "async", c = n.filter((m) => m.width < 580).map((m) => `<source srcset="${le(m.url)}">`).join(""), l = n[0], d = l?.width !== void 0 ? ` width="${l.width}"` : "", u = l?.height !== void 0 ? ` height="${l.height}"` : "",
|
|
19752
|
-
return '<figure class="sass-com-img-figure"><span class="sass-com-img-backdrop"><span class="sass-com-img-backdropAux"></span><picture>' + c + `<img fetchpriority="${r}" loading="${o}" decoding="${i}" class="sass-com-img-imageStyled su-flex-center su-object-cover"${d}${u} alt="${le(a)}" src="${le(
|
|
19755
|
+
const i = t ? "sync" : "async", c = n.filter((m) => m.width < 580).map((m) => `<source srcset="${le(m.url)}">`).join(""), l = n[0], d = l?.width !== void 0 ? ` width="${l.width}"` : "", u = l?.height !== void 0 ? ` height="${l.height}"` : "", h = l?.url ?? "";
|
|
19756
|
+
return '<figure class="sass-com-img-figure"><span class="sass-com-img-backdrop"><span class="sass-com-img-backdropAux"></span><picture>' + c + `<img fetchpriority="${r}" loading="${o}" decoding="${i}" class="sass-com-img-imageStyled su-flex-center su-object-cover"${d}${u} alt="${le(a)}" src="${le(h)}"></picture></span></figure>`;
|
|
19753
19757
|
}
|
|
19754
19758
|
function Ch(e) {
|
|
19755
|
-
const { href: t, target: n, ariaLabel: a, preview: r, preRenderClass: o, priorityHigh: i } = e, { finalHref: c, isExternal: l } =
|
|
19756
|
-
return `<a${u} class="${d}"${
|
|
19759
|
+
const { href: t, target: n, ariaLabel: a, preview: r, preRenderClass: o, priorityHigh: i } = e, { finalHref: c, isExternal: l } = Ut(t), d = o ? `homeCardImage ${o}` : "homeCardImage", u = a != null ? ` aria-label="${le(a)}"` : "", h = a != null ? ` title="${le(a)}"` : "", m = n ?? void 0, w = m ? ` target="${le(m)}"` : "", f = l ? ' rel="noopener noreferrer"' : "", p = vh(r, i ?? !1);
|
|
19760
|
+
return `<a${u} class="${d}"${h} href="${le(c)}"${w}${f}>${p}</a>`;
|
|
19757
19761
|
}
|
|
19758
19762
|
function Nh(e, t, n) {
|
|
19759
19763
|
const a = n?.share, r = n?.newsDescriptionSectionTag ?? "h3", o = n?.speculationPrerenderClass, { SHOW_TAG_BY_SECTION: i, SUB_PUBLICATION_PREFIX_IN_ROUTES: c } = I();
|
|
@@ -19761,12 +19765,12 @@ function Nh(e, t, n) {
|
|
|
19761
19765
|
a && (l = `<div style="width: 100%;" data-hydrate="ShareButtons" data-props="${encodeURIComponent(JSON.stringify({ noteShare: a }))}">` + yh(a) + "</div>");
|
|
19762
19766
|
const d = () => e.main.uppertitle ? `<p class="sass-com-nd-uppertitle" title="${le(e.main.uppertitle)}">${je(e.main.uppertitle)}</p>` : "";
|
|
19763
19767
|
let u = "";
|
|
19764
|
-
const
|
|
19765
|
-
if (i &&
|
|
19766
|
-
const v =
|
|
19768
|
+
const h = e.keywords, m = e.info;
|
|
19769
|
+
if (i && h?.tags?.length && h.tags.length > 0) {
|
|
19770
|
+
const v = h.tags[0], N = v.name;
|
|
19767
19771
|
let C;
|
|
19768
19772
|
if (v.approved) {
|
|
19769
|
-
const y = Ke(v, t), { finalHref: S } =
|
|
19773
|
+
const y = Ke(v, t), { finalHref: S } = Ut(
|
|
19770
19774
|
y,
|
|
19771
19775
|
!!c?.tema
|
|
19772
19776
|
);
|
|
@@ -19775,16 +19779,16 @@ function Nh(e, t, n) {
|
|
|
19775
19779
|
C = `<div class="sass-com-nd-sectionDescription">${je(N)}</div>`;
|
|
19776
19780
|
u = `<${r} class="sass-com-nd-sectionDescriptionContainer section">${C}${d()}</${r}>`;
|
|
19777
19781
|
} else if (m?.section?.url) {
|
|
19778
|
-
const v = m.section.name, { finalHref: N } =
|
|
19782
|
+
const v = m.section.name, { finalHref: N } = Ut(m.section.url);
|
|
19779
19783
|
u = `<${r} class="sass-com-nd-sectionDescriptionContainer section"><a aria-label="${le(v)}" class="sass-com-nd-sectionDescription" href="${le(N)}">${je(v)}</a>` + d() + `</${r}>`;
|
|
19780
19784
|
}
|
|
19781
|
-
const w = e.main?.title?.section ?? "",
|
|
19785
|
+
const w = e.main?.title?.section ?? "", f = o ? `${o} sass-com-nd-linkStyled su-no-underline` : "sass-com-nd-linkStyled su-no-underline";
|
|
19782
19786
|
let p;
|
|
19783
19787
|
if (e.info?.link?.url) {
|
|
19784
|
-
const { finalHref: v, isExternal: N } =
|
|
19788
|
+
const { finalHref: v, isExternal: N } = Ut(
|
|
19785
19789
|
e.info.link.url
|
|
19786
19790
|
), C = e.info.link.target, y = C ? ` target="${le(C)}"` : "", S = N ? ' rel="noopener noreferrer"' : "";
|
|
19787
|
-
p = `<h2 class="sass-com-nd-articule"><a aria-label="${le(w)}" class="${
|
|
19791
|
+
p = `<h2 class="sass-com-nd-articule"><a aria-label="${le(w)}" class="${f}" style="--isLink:var(--news-description-title-color-hover-decoration)" href="${le(v)}"${y}${S}>${je(w)}</a></h2>`;
|
|
19788
19792
|
} else
|
|
19789
19793
|
p = `<h2 class="sass-com-nd-articule">${je(w)}</h2>`;
|
|
19790
19794
|
let b = "";
|
|
@@ -19797,7 +19801,7 @@ function Nh(e, t, n) {
|
|
|
19797
19801
|
let v;
|
|
19798
19802
|
if (e.config?.showtime && e.config?.showauthor ? v = `${e.authors[0]?.fullname ?? "Redacción"} - ${ke(e.info?.date?.modified)}` : e.config?.showauthor ? v = e.authors[0]?.fullname ?? "Redacción" : e.config?.showtime && (v = ke(e.info?.date?.modified)), v !== void 0)
|
|
19799
19803
|
if (e.authors[0]?.internaluser) {
|
|
19800
|
-
const N = `/${t?.autor}/${e.authors[0]?.name}`, { finalHref: C } =
|
|
19804
|
+
const N = `/${t?.autor}/${e.authors[0]?.name}`, { finalHref: C } = Ut(
|
|
19801
19805
|
N,
|
|
19802
19806
|
!!c?.autor
|
|
19803
19807
|
);
|
|
@@ -19879,7 +19883,7 @@ export {
|
|
|
19879
19883
|
p1 as MainComponentServices,
|
|
19880
19884
|
Kc as Marfeel,
|
|
19881
19885
|
nf as MasNoticiasLazyLoader,
|
|
19882
|
-
|
|
19886
|
+
Pt as MiddleSection,
|
|
19883
19887
|
Od as Modulo1x3,
|
|
19884
19888
|
Dd as Modulo1x3Card,
|
|
19885
19889
|
Bd as Modulo1x4,
|
|
@@ -19900,7 +19904,7 @@ export {
|
|
|
19900
19904
|
dl as OrgList,
|
|
19901
19905
|
Ks as PreloadImages,
|
|
19902
19906
|
ls as REPORT_REASONS,
|
|
19903
|
-
|
|
19907
|
+
Nt as RESILIENT_FETCH_DEFAULTS,
|
|
19904
19908
|
h1 as ReCaptchaRender,
|
|
19905
19909
|
xs as Readest,
|
|
19906
19910
|
Y1 as RegisterForm,
|
|
@@ -19917,7 +19921,7 @@ export {
|
|
|
19917
19921
|
il as SoftwareApplication,
|
|
19918
19922
|
q1 as SourceButtons,
|
|
19919
19923
|
nl as SpeculationRules,
|
|
19920
|
-
|
|
19924
|
+
qt as Spin,
|
|
19921
19925
|
rf as StaticSlotWrapper,
|
|
19922
19926
|
Zl as SubscribeColumn,
|
|
19923
19927
|
Xl as SubscribeRow,
|
|
@@ -19937,9 +19941,9 @@ export {
|
|
|
19937
19941
|
Lo as assertImageSizesContract,
|
|
19938
19942
|
re as assetsImagesPrefixer,
|
|
19939
19943
|
gn as auditConfigOrigin,
|
|
19940
|
-
|
|
19944
|
+
Dt as bannersReplace,
|
|
19941
19945
|
Qo as batchedNewsFetch,
|
|
19942
|
-
|
|
19946
|
+
Bt as becomeVideoObject,
|
|
19943
19947
|
Yt as buildConfigMenuApiPath,
|
|
19944
19948
|
Ke as buildTagUrl,
|
|
19945
19949
|
kh as checkImageSizes,
|
|
@@ -19968,7 +19972,7 @@ export {
|
|
|
19968
19972
|
_o as formatNewsMeta,
|
|
19969
19973
|
ni as formatVideoData,
|
|
19970
19974
|
b1 as generalGetData,
|
|
19971
|
-
|
|
19975
|
+
Mt as getBucketHttpClient,
|
|
19972
19976
|
Dn as getCaptchaToken,
|
|
19973
19977
|
bm as getComments,
|
|
19974
19978
|
I as getConfig,
|
|
@@ -19982,7 +19986,7 @@ export {
|
|
|
19982
19986
|
fe as getImageUrl,
|
|
19983
19987
|
Hh as getItemFormated,
|
|
19984
19988
|
lt as getNextMeta,
|
|
19985
|
-
|
|
19989
|
+
St as getPage,
|
|
19986
19990
|
Ir as getPlayIcon,
|
|
19987
19991
|
f1 as getPreloadImages,
|
|
19988
19992
|
dt as getPrevMeta,
|
|
@@ -20019,7 +20023,7 @@ export {
|
|
|
20019
20023
|
Al as removePages,
|
|
20020
20024
|
pn as reportBucketOriginExhausted,
|
|
20021
20025
|
X1 as reportComment,
|
|
20022
|
-
|
|
20026
|
+
Rt as resilientFetch,
|
|
20023
20027
|
Wa as resolveBatchCount,
|
|
20024
20028
|
cs as resolveBucketMenuSubtype,
|
|
20025
20029
|
We as resolveBucketOriginUrl,
|
|
@@ -20029,7 +20033,7 @@ export {
|
|
|
20029
20033
|
wt as socialIcons,
|
|
20030
20034
|
u1 as takeConfigOriginAuditReport,
|
|
20031
20035
|
rt as toISOWithTimeZone,
|
|
20032
|
-
|
|
20036
|
+
Lt as toPublicEditionUrl,
|
|
20033
20037
|
Rh as toPublicShareUrl,
|
|
20034
20038
|
Do as urlReplaces,
|
|
20035
20039
|
Ur as usePlayIcon,
|