sass-template-common 0.10.16 → 0.10.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sass-template-common.d.ts +15 -9
- package/dist/sass-template-common.js +829 -814
- package/dist/sass-template-common.umd.cjs +26 -26
- package/package.json +1 -1
|
@@ -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,56 +4615,58 @@ 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;
|
|
4625
4629
|
}
|
|
4626
4630
|
return a();
|
|
4627
4631
|
}
|
|
4628
|
-
getNewsListZoneWrapper(t, n, a) {
|
|
4632
|
+
getNewsListZoneWrapper(t, n, a, r) {
|
|
4629
4633
|
return this.getNewsListZone({
|
|
4630
|
-
zone: "destacadas",
|
|
4631
|
-
size:
|
|
4634
|
+
zone: n || "destacadas",
|
|
4635
|
+
size: a,
|
|
4632
4636
|
onmainpage: t ? "section" : void 0,
|
|
4633
4637
|
section: t,
|
|
4634
4638
|
newstype: this.config.newsType,
|
|
4635
4639
|
exclude: this.exclude,
|
|
4636
|
-
imagesizes:
|
|
4640
|
+
imagesizes: r
|
|
4637
4641
|
});
|
|
4638
4642
|
}
|
|
4639
|
-
async getNewsDestacadoDiario(t) {
|
|
4643
|
+
async getNewsDestacadoDiario(t, n) {
|
|
4640
4644
|
try {
|
|
4641
|
-
const [
|
|
4645
|
+
const [a, r] = await Promise.all([
|
|
4642
4646
|
this.getNewsListZoneWrapper(
|
|
4643
4647
|
t,
|
|
4648
|
+
n,
|
|
4644
4649
|
1,
|
|
4645
4650
|
this.customMainImagesSize || `${this.contract.video.xl}${this.contract.video.lg}`
|
|
4646
4651
|
),
|
|
4647
|
-
this.getNewsListZoneWrapper(t, 5)
|
|
4652
|
+
this.getNewsListZoneWrapper(t, n, 5)
|
|
4648
4653
|
]);
|
|
4649
|
-
return !
|
|
4650
|
-
...
|
|
4651
|
-
...
|
|
4652
|
-
],
|
|
4653
|
-
} catch (
|
|
4654
|
+
return !a?.data?.data || !r?.data?.data ? [] : (a.data.data = [
|
|
4655
|
+
...a.data.data,
|
|
4656
|
+
...r.data.data.slice(1)
|
|
4657
|
+
], a);
|
|
4658
|
+
} catch (a) {
|
|
4654
4659
|
return console.log(
|
|
4655
|
-
`[MainComponentServices.getNewsDestacadoDiario] Error: ${
|
|
4660
|
+
`[MainComponentServices.getNewsDestacadoDiario] Error: ${a?.message}`
|
|
4656
4661
|
), [];
|
|
4657
4662
|
}
|
|
4658
4663
|
}
|
|
4659
|
-
async getNewsDestacadoDiarioImage(t) {
|
|
4664
|
+
async getNewsDestacadoDiarioImage(t, n) {
|
|
4660
4665
|
try {
|
|
4661
|
-
const [
|
|
4666
|
+
const [a, r] = await Promise.all([
|
|
4662
4667
|
this.getNewsListZoneWrapper(
|
|
4663
4668
|
t,
|
|
4669
|
+
n,
|
|
4664
4670
|
1,
|
|
4665
4671
|
// El 2º corte legado 410x590 era valor muerto (fallback siempre
|
|
4666
4672
|
// sobrescrito por customMainImagesSize; plan §4) → borrado.
|
|
@@ -4668,105 +4674,114 @@ class p1 {
|
|
|
4668
4674
|
),
|
|
4669
4675
|
this.getNewsListZoneWrapper(
|
|
4670
4676
|
t,
|
|
4677
|
+
n,
|
|
4671
4678
|
5,
|
|
4672
4679
|
this.contract.note.featuredDiarioImageThumb
|
|
4673
4680
|
)
|
|
4674
4681
|
]);
|
|
4675
|
-
return !
|
|
4676
|
-
...
|
|
4677
|
-
...
|
|
4678
|
-
],
|
|
4679
|
-
} catch (
|
|
4682
|
+
return !a?.data?.data || !r?.data?.data ? [] : (a.data.data = [
|
|
4683
|
+
...a.data.data,
|
|
4684
|
+
...r.data.data.slice(1)
|
|
4685
|
+
], a);
|
|
4686
|
+
} catch (a) {
|
|
4680
4687
|
return console.log(
|
|
4681
|
-
`[MainComponentServices.getNewsDestacadoDiarioImage] Error: ${
|
|
4688
|
+
`[MainComponentServices.getNewsDestacadoDiarioImage] Error: ${a?.message}`
|
|
4682
4689
|
), [];
|
|
4683
4690
|
}
|
|
4684
4691
|
}
|
|
4685
|
-
async getNewsAltoImpacto(t) {
|
|
4692
|
+
async getNewsAltoImpacto(t, n) {
|
|
4686
4693
|
try {
|
|
4687
4694
|
return await this.getNewsListZoneWrapper(
|
|
4688
4695
|
t,
|
|
4696
|
+
n,
|
|
4689
4697
|
1,
|
|
4690
4698
|
`${this.contract.note.gallery}${this.contract.note.featuredSuperSecondary}`
|
|
4691
4699
|
);
|
|
4692
|
-
} catch (
|
|
4700
|
+
} catch (a) {
|
|
4693
4701
|
console.log(
|
|
4694
|
-
`[MainComponentServices.getNewsAltoImpacto] Error: ${
|
|
4702
|
+
`[MainComponentServices.getNewsAltoImpacto] Error: ${a?.message}`
|
|
4695
4703
|
);
|
|
4696
4704
|
return;
|
|
4697
4705
|
}
|
|
4698
4706
|
}
|
|
4699
|
-
async getNewsDestacadoVertical(t) {
|
|
4707
|
+
async getNewsDestacadoVertical(t, n) {
|
|
4700
4708
|
try {
|
|
4701
|
-
const [
|
|
4709
|
+
const [a, r] = await Promise.all([
|
|
4702
4710
|
this.getNewsListZoneWrapper(
|
|
4703
4711
|
t,
|
|
4712
|
+
n,
|
|
4704
4713
|
1,
|
|
4705
4714
|
`${this.contract.note.featuredVerticalPrimary}${this.contract.video.lg}`
|
|
4706
4715
|
),
|
|
4707
4716
|
this.getNewsListZoneWrapper(
|
|
4708
4717
|
t,
|
|
4718
|
+
n,
|
|
4709
4719
|
3,
|
|
4710
4720
|
`${this.contract.video.lg}${this.contract.note.featuredVerticalSecondary}`
|
|
4711
4721
|
)
|
|
4712
4722
|
]);
|
|
4713
|
-
return !
|
|
4714
|
-
...
|
|
4715
|
-
...
|
|
4716
|
-
],
|
|
4717
|
-
} catch (
|
|
4723
|
+
return !a?.data?.data || !r?.data?.data ? [] : (a.data.data = [
|
|
4724
|
+
...a.data.data,
|
|
4725
|
+
...r.data.data.slice(1)
|
|
4726
|
+
], a);
|
|
4727
|
+
} catch (a) {
|
|
4718
4728
|
return console.log(
|
|
4719
|
-
`[MainComponentServices.getNewsDestacadoVertical] Error: ${
|
|
4729
|
+
`[MainComponentServices.getNewsDestacadoVertical] Error: ${a?.message}`
|
|
4720
4730
|
), [];
|
|
4721
4731
|
}
|
|
4722
4732
|
}
|
|
4723
|
-
async getNewsDestacadoHorizontal(t) {
|
|
4733
|
+
async getNewsDestacadoHorizontal(t, n) {
|
|
4724
4734
|
try {
|
|
4725
|
-
const [
|
|
4735
|
+
const [a, r] = await Promise.all([
|
|
4726
4736
|
this.getNewsListZoneWrapper(
|
|
4727
4737
|
t,
|
|
4738
|
+
n,
|
|
4728
4739
|
1,
|
|
4729
4740
|
`${this.contract.note.featuredHorizontalPrimary}${this.contract.video.lg}`
|
|
4730
4741
|
),
|
|
4731
4742
|
this.getNewsListZoneWrapper(
|
|
4732
4743
|
t,
|
|
4744
|
+
n,
|
|
4733
4745
|
3,
|
|
4734
4746
|
this.contract.note.featuredHorizontalSecondary
|
|
4735
4747
|
)
|
|
4736
4748
|
]);
|
|
4737
|
-
return !
|
|
4738
|
-
...
|
|
4739
|
-
...
|
|
4740
|
-
],
|
|
4741
|
-
} catch (
|
|
4749
|
+
return !a?.data?.data || !r?.data?.data ? [] : (a.data.data = [
|
|
4750
|
+
...a.data.data,
|
|
4751
|
+
...r.data.data.slice(1)
|
|
4752
|
+
], a);
|
|
4753
|
+
} catch (a) {
|
|
4742
4754
|
return console.log(
|
|
4743
|
-
`[MainComponentServices.getNewsDestacadoHorizontal] Error: ${
|
|
4755
|
+
`[MainComponentServices.getNewsDestacadoHorizontal] Error: ${a?.message}`
|
|
4744
4756
|
), [];
|
|
4745
4757
|
}
|
|
4746
4758
|
}
|
|
4747
4759
|
GetByOptions = {
|
|
4748
|
-
Diario: (t) => this.getNewsDestacadoDiario(t),
|
|
4749
|
-
"Diario con imagen": (t) => this.getNewsDestacadoDiarioImage(t),
|
|
4750
|
-
Super: (t) => this.getNewsAltoImpacto(t),
|
|
4751
|
-
"3 notas verticales": (t) => this.getNewsDestacadoVertical(t),
|
|
4752
|
-
"3 notas horizontales": (t) => this.getNewsDestacadoHorizontal(t)
|
|
4760
|
+
Diario: (t, n) => this.getNewsDestacadoDiario(t, n),
|
|
4761
|
+
"Diario con imagen": (t, n) => this.getNewsDestacadoDiarioImage(t, n),
|
|
4762
|
+
Super: (t, n) => this.getNewsAltoImpacto(t, n),
|
|
4763
|
+
"3 notas verticales": (t, n) => this.getNewsDestacadoVertical(t, n),
|
|
4764
|
+
"3 notas horizontales": (t, n) => this.getNewsDestacadoHorizontal(t, n)
|
|
4753
4765
|
};
|
|
4754
|
-
async getMainBlockData(t, n) {
|
|
4766
|
+
async getMainBlockData(t, n, a) {
|
|
4755
4767
|
try {
|
|
4756
|
-
const
|
|
4757
|
-
if (!
|
|
4768
|
+
const o = (await this.getOutstandingBlock(t))?.data?.data?.[0]?.value || "";
|
|
4769
|
+
if (!o || !Object.keys(this.GetByOptions).includes(o))
|
|
4758
4770
|
return {
|
|
4759
|
-
section:
|
|
4771
|
+
section: o,
|
|
4760
4772
|
news: []
|
|
4761
4773
|
};
|
|
4762
|
-
const
|
|
4774
|
+
const i = await this.GetByOptions[o](
|
|
4775
|
+
n,
|
|
4776
|
+
a
|
|
4777
|
+
);
|
|
4763
4778
|
return {
|
|
4764
|
-
section:
|
|
4765
|
-
news:
|
|
4779
|
+
section: o,
|
|
4780
|
+
news: i?.data ?? []
|
|
4766
4781
|
};
|
|
4767
|
-
} catch (
|
|
4782
|
+
} catch (r) {
|
|
4768
4783
|
return console.log(
|
|
4769
|
-
`[MainComponentServices.getMainBlockData] Error: ${
|
|
4784
|
+
`[MainComponentServices.getMainBlockData] Error: ${r?.message}`
|
|
4770
4785
|
), {
|
|
4771
4786
|
section: "",
|
|
4772
4787
|
news: []
|
|
@@ -4823,10 +4838,10 @@ class $e {
|
|
|
4823
4838
|
"menu",
|
|
4824
4839
|
c,
|
|
4825
4840
|
i
|
|
4826
|
-
), d = n.referer ?? ft, u = `origin:menu:bucket:${l}`,
|
|
4841
|
+
), d = n.referer ?? ft, u = `origin:menu:bucket:${l}`, h = await ht(
|
|
4827
4842
|
u,
|
|
4828
|
-
() =>
|
|
4829
|
-
() =>
|
|
4843
|
+
() => Rt(
|
|
4844
|
+
() => Mt(n.proxyUrl ?? n.url, d).get(l),
|
|
4830
4845
|
ut,
|
|
4831
4846
|
{ label: "bucket:menu", endpoint: l, params: t }
|
|
4832
4847
|
),
|
|
@@ -4834,7 +4849,7 @@ class $e {
|
|
|
4834
4849
|
shouldCache: (m) => m !== ut
|
|
4835
4850
|
}
|
|
4836
4851
|
);
|
|
4837
|
-
return
|
|
4852
|
+
return h === ut ? (pn("menu", l), a) : h;
|
|
4838
4853
|
}
|
|
4839
4854
|
const o = `origin:menu:api:${t.path ?? ""}`;
|
|
4840
4855
|
return ht(o, () => r());
|
|
@@ -4879,15 +4894,15 @@ class $e {
|
|
|
4879
4894
|
"banners",
|
|
4880
4895
|
d,
|
|
4881
4896
|
l
|
|
4882
|
-
),
|
|
4897
|
+
), h = n.referer ?? ft, m = `origin:banners:bucket:${u}`, w = await ht(
|
|
4883
4898
|
m,
|
|
4884
|
-
() =>
|
|
4885
|
-
() =>
|
|
4899
|
+
() => Rt(
|
|
4900
|
+
() => Mt(n.proxyUrl ?? n.url, h).get(u),
|
|
4886
4901
|
ut,
|
|
4887
4902
|
{ label: "bucket:banners", endpoint: u, params: t }
|
|
4888
4903
|
),
|
|
4889
4904
|
{
|
|
4890
|
-
shouldCache: (
|
|
4905
|
+
shouldCache: (f) => f !== ut
|
|
4891
4906
|
}
|
|
4892
4907
|
);
|
|
4893
4908
|
return w === ut ? (pn("banners", u), a) : w;
|
|
@@ -4898,7 +4913,7 @@ class $e {
|
|
|
4898
4913
|
getPages = (t) => this.props?.axiosApi.get("/config/pages", { params: t }).catch((n) => (console.log(`[/config/pages] Error: ${n.message}`), Promise.reject(n)));
|
|
4899
4914
|
getRankingS3 = async (t, n = {
|
|
4900
4915
|
Referer: ft
|
|
4901
|
-
}) => !t || t === "" ? { data: [] } :
|
|
4916
|
+
}) => !t || t === "" ? { data: [] } : Rt(
|
|
4902
4917
|
() => oe.get(t, { headers: n }),
|
|
4903
4918
|
{ data: [] },
|
|
4904
4919
|
{ label: "bucket:ranking", endpoint: t }
|
|
@@ -4963,8 +4978,8 @@ class $e {
|
|
|
4963
4978
|
exclude: a.getAutorInfo,
|
|
4964
4979
|
imagesizes: n.getAutorInfo
|
|
4965
4980
|
}))?.data.data ?? []);
|
|
4966
|
-
const d = ss(c),
|
|
4967
|
-
|
|
4981
|
+
const d = ss(c), h = (mt(o)?.data ?? [])[0]?.list?.items?.map((A) => ss(A)), m = [];
|
|
4982
|
+
h?.forEach((A) => {
|
|
4968
4983
|
A && A.length > 0 && A.forEach((v) => {
|
|
4969
4984
|
v.forEach((N) => {
|
|
4970
4985
|
const C = this.getNews({
|
|
@@ -4978,7 +4993,7 @@ class $e {
|
|
|
4978
4993
|
});
|
|
4979
4994
|
});
|
|
4980
4995
|
});
|
|
4981
|
-
const
|
|
4996
|
+
const f = (await Promise.allSettled([
|
|
4982
4997
|
...m
|
|
4983
4998
|
])).map(
|
|
4984
4999
|
(A) => mt(A)?.data
|
|
@@ -4998,7 +5013,7 @@ class $e {
|
|
|
4998
5013
|
autor: l,
|
|
4999
5014
|
newsRelatedResponses: p,
|
|
5000
5015
|
itemList: mt(o)?.data ?? [],
|
|
5001
|
-
newsRelatedListResponses:
|
|
5016
|
+
newsRelatedListResponses: f,
|
|
5002
5017
|
schemasImages: b ?? []
|
|
5003
5018
|
};
|
|
5004
5019
|
};
|
|
@@ -5154,8 +5169,8 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5154
5169
|
a
|
|
5155
5170
|
), o = n.referer ?? ft, i = `origin:slots:bucket:${r}`, c = await ht(
|
|
5156
5171
|
i,
|
|
5157
|
-
() =>
|
|
5158
|
-
() =>
|
|
5172
|
+
() => Rt(
|
|
5173
|
+
() => Mt(n.proxyUrl ?? n.url, o).get(r),
|
|
5159
5174
|
zn,
|
|
5160
5175
|
{ label: "bucket:slots", endpoint: r, params: {} }
|
|
5161
5176
|
),
|
|
@@ -5189,14 +5204,14 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5189
5204
|
});
|
|
5190
5205
|
const u = await Promise.allSettled([
|
|
5191
5206
|
...d.map((m) => m.func({ template: "Home_" + m.slot_id }))
|
|
5192
|
-
]),
|
|
5207
|
+
]), h = {};
|
|
5193
5208
|
for (let m = 0; m < u.length; m++) {
|
|
5194
5209
|
const w = Eo(
|
|
5195
5210
|
u[m]
|
|
5196
|
-
),
|
|
5197
|
-
w && (f
|
|
5211
|
+
), f = "Home_" + (Math.floor(m / o) + 1) + "_" + (Math.floor(m % o) + 1);
|
|
5212
|
+
w && (h[f] = { ...w });
|
|
5198
5213
|
}
|
|
5199
|
-
return
|
|
5214
|
+
return h;
|
|
5200
5215
|
};
|
|
5201
5216
|
return I().BUCKET_ORIGIN?.slots ? Nl(c, t) : l();
|
|
5202
5217
|
}, xl = (e) => {
|
|
@@ -5221,7 +5236,7 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5221
5236
|
title: e.title,
|
|
5222
5237
|
description: e.description
|
|
5223
5238
|
// robots: 'noindex',
|
|
5224
|
-
}), ga = (e = "") => e.replace(/-/g, " ").replace(/^./, (t) => t.toUpperCase()),
|
|
5239
|
+
}), ga = (e = "") => e.replace(/-/g, " ").replace(/^./, (t) => t.toUpperCase()), Et = (e) => e.includes("/page/") ? e.replace(/\/page\/\d+$/, "") : e, ge = (e) => {
|
|
5225
5240
|
try {
|
|
5226
5241
|
const t = me();
|
|
5227
5242
|
if (!t) return e;
|
|
@@ -5275,9 +5290,9 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5275
5290
|
return o ? { ...t, ...o } : pe(t);
|
|
5276
5291
|
},
|
|
5277
5292
|
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 =
|
|
5293
|
+
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
5294
|
if (c && i)
|
|
5280
|
-
return i.next &&
|
|
5295
|
+
return i.next && h.push({ rel: "next", url: lt(n, u, m) }), m > 1 && h.push({ rel: "prev", url: dt(n, u, m) }), {
|
|
5281
5296
|
...t,
|
|
5282
5297
|
title: i.title,
|
|
5283
5298
|
alternates: {
|
|
@@ -5285,7 +5300,7 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5285
5300
|
canonical: ge(n.siteUrl + a)
|
|
5286
5301
|
},
|
|
5287
5302
|
manifest: n.manifest,
|
|
5288
|
-
icons: { ...n.icons, other:
|
|
5303
|
+
icons: { ...n.icons, other: h },
|
|
5289
5304
|
other: {
|
|
5290
5305
|
"msapplication-TileImage": n.msapplicationTileImage ?? ""
|
|
5291
5306
|
},
|
|
@@ -5330,8 +5345,8 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5330
5345
|
b = y.data.data, A = !(b.length < w);
|
|
5331
5346
|
}
|
|
5332
5347
|
const v = b[0];
|
|
5333
|
-
A &&
|
|
5334
|
-
const N =
|
|
5348
|
+
A && h.push({ rel: "next", url: lt(n, u, m) }), m > 1 && h.push({ rel: "prev", url: dt(n, u, m) });
|
|
5349
|
+
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
5350
|
return {
|
|
5336
5351
|
...t,
|
|
5337
5352
|
title: N,
|
|
@@ -5343,7 +5358,7 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5343
5358
|
manifest: n.manifest,
|
|
5344
5359
|
icons: {
|
|
5345
5360
|
...n.icons,
|
|
5346
|
-
other:
|
|
5361
|
+
other: h
|
|
5347
5362
|
},
|
|
5348
5363
|
other: {
|
|
5349
5364
|
"msapplication-TileImage": n.msapplicationTileImage ?? ""
|
|
@@ -5371,12 +5386,12 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5371
5386
|
}
|
|
5372
5387
|
},
|
|
5373
5388
|
tema: async (e) => {
|
|
5374
|
-
const { meta: t, config: n, pathname: a, slug: r, axiosApi: o } = e, i = new $e({ config: n, axiosApi: o }), l =
|
|
5389
|
+
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
5390
|
try {
|
|
5376
5391
|
const A = await i.getNewsListTags({
|
|
5377
5392
|
tagid: w,
|
|
5378
|
-
size:
|
|
5379
|
-
tagtype: Number(
|
|
5393
|
+
size: h,
|
|
5394
|
+
tagtype: Number(f),
|
|
5380
5395
|
newstype: n.newsType,
|
|
5381
5396
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
5382
5397
|
page: u
|
|
@@ -5384,7 +5399,7 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5384
5399
|
if (!A) return pe(t);
|
|
5385
5400
|
const v = A.data.entity;
|
|
5386
5401
|
if (!v) return pe(t);
|
|
5387
|
-
A.data.data?.length <
|
|
5402
|
+
A.data.data?.length < h || d.push({
|
|
5388
5403
|
rel: "next",
|
|
5389
5404
|
url: lt(n, l, u)
|
|
5390
5405
|
}), u > 1 && d.push({
|
|
@@ -5431,7 +5446,7 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5431
5446
|
}
|
|
5432
5447
|
},
|
|
5433
5448
|
"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 =
|
|
5449
|
+
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
5450
|
...t,
|
|
5436
5451
|
title: m,
|
|
5437
5452
|
...Pe(
|
|
@@ -5442,13 +5457,13 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5442
5457
|
};
|
|
5443
5458
|
if (!o) return w;
|
|
5444
5459
|
try {
|
|
5445
|
-
const
|
|
5446
|
-
size:
|
|
5460
|
+
const f = await i.getNewsList({
|
|
5461
|
+
size: h,
|
|
5447
5462
|
newstype: n.newsType,
|
|
5448
5463
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
5449
5464
|
page: u
|
|
5450
5465
|
});
|
|
5451
|
-
return
|
|
5466
|
+
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
5467
|
...t,
|
|
5453
5468
|
title: m,
|
|
5454
5469
|
...Pe(t, n.siteUrl + a, m),
|
|
@@ -5461,8 +5476,8 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5461
5476
|
"msapplication-TileImage": n.msapplicationTileImage ?? ""
|
|
5462
5477
|
}
|
|
5463
5478
|
}) : w;
|
|
5464
|
-
} catch (
|
|
5465
|
-
return console.error(
|
|
5479
|
+
} catch (f) {
|
|
5480
|
+
return console.error(f), w;
|
|
5466
5481
|
}
|
|
5467
5482
|
},
|
|
5468
5483
|
video: async (e) => {
|
|
@@ -5485,15 +5500,15 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5485
5500
|
}
|
|
5486
5501
|
},
|
|
5487
5502
|
videos: async (e) => {
|
|
5488
|
-
const { meta: t, config: n, pathname: a, axiosApi: r } = e, o = new $e({ config: n, axiosApi: r }), c =
|
|
5503
|
+
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
5504
|
try {
|
|
5490
|
-
const
|
|
5505
|
+
const h = await o.getvideoListAdvanced({
|
|
5491
5506
|
size: u,
|
|
5492
5507
|
query: "Category:(videohome OR destacadoseccion OR seccion)",
|
|
5493
5508
|
page: Number(d)
|
|
5494
5509
|
});
|
|
5495
|
-
if (!
|
|
5496
|
-
|
|
5510
|
+
if (!h) return pe(t);
|
|
5511
|
+
h.data.data.length < u || l.push({
|
|
5497
5512
|
rel: "next",
|
|
5498
5513
|
url: lt(n, c, d)
|
|
5499
5514
|
}), d > 1 && l.push({
|
|
@@ -5514,8 +5529,8 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5514
5529
|
"msapplication-TileImage": n.msapplicationTileImage ?? ""
|
|
5515
5530
|
}
|
|
5516
5531
|
};
|
|
5517
|
-
} catch (
|
|
5518
|
-
return console.error(
|
|
5532
|
+
} catch (h) {
|
|
5533
|
+
return console.error(h), pe(t);
|
|
5519
5534
|
}
|
|
5520
5535
|
},
|
|
5521
5536
|
pages: async (e, t) => {
|
|
@@ -5610,13 +5625,13 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5610
5625
|
}
|
|
5611
5626
|
},
|
|
5612
5627
|
autor: async (e) => {
|
|
5613
|
-
const { meta: t, config: n, pathname: a, slug: r, axiosApi: o } = e, i = new $e({ config: n, axiosApi: o }), l =
|
|
5628
|
+
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
5629
|
try {
|
|
5615
5630
|
const w = await i.getAutorInfo({
|
|
5616
5631
|
user: r,
|
|
5617
5632
|
exclude: "groups",
|
|
5618
5633
|
imagesizes: i.contract.author.avatar
|
|
5619
|
-
}),
|
|
5634
|
+
}), f = await i.getNewsListAutor({
|
|
5620
5635
|
size: m,
|
|
5621
5636
|
user: r,
|
|
5622
5637
|
page: u,
|
|
@@ -5624,15 +5639,15 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5624
5639
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
5625
5640
|
imagesizes: i.contract.note.listStandard
|
|
5626
5641
|
});
|
|
5627
|
-
if (!
|
|
5628
|
-
|
|
5642
|
+
if (!f) return pe(t);
|
|
5643
|
+
f.data.data.length < m || d.push({
|
|
5629
5644
|
rel: "next",
|
|
5630
5645
|
url: lt(n, l, u)
|
|
5631
5646
|
}), u > 1 && d.push({
|
|
5632
5647
|
rel: "prev",
|
|
5633
5648
|
url: dt(n, l, u)
|
|
5634
5649
|
});
|
|
5635
|
-
const p = w?.data.data[0]?.info.fullname, b =
|
|
5650
|
+
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
5651
|
return {
|
|
5637
5652
|
...t,
|
|
5638
5653
|
title: b,
|
|
@@ -5661,7 +5676,7 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5661
5676
|
listAutor: t,
|
|
5662
5677
|
config: n
|
|
5663
5678
|
}) => {
|
|
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,
|
|
5679
|
+
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
5680
|
"@context": "https://schema.org",
|
|
5666
5681
|
"@type": "ProfilePage",
|
|
5667
5682
|
mainEntity: {
|
|
@@ -5670,12 +5685,12 @@ const zn = Symbol("bucket-retry-exhausted"), Nl = async (e, t) => {
|
|
|
5670
5685
|
alternateName: e.info.nickname ? e.info.nickname : e.info.name,
|
|
5671
5686
|
identifier: e.info.id,
|
|
5672
5687
|
description: El(y),
|
|
5673
|
-
image: e.info.image ? e.info.image.sizes.map((z, O) => O === 0 && e.info.image.sizes.length !== 1 ? null :
|
|
5688
|
+
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
5689
|
sameAs: [
|
|
5675
5690
|
w,
|
|
5676
5691
|
p,
|
|
5677
5692
|
b,
|
|
5678
|
-
|
|
5693
|
+
f,
|
|
5679
5694
|
A,
|
|
5680
5695
|
v,
|
|
5681
5696
|
N
|
|
@@ -6194,10 +6209,10 @@ async function A1({
|
|
|
6194
6209
|
query: l,
|
|
6195
6210
|
autor: d,
|
|
6196
6211
|
listAutor: u,
|
|
6197
|
-
currentNew:
|
|
6212
|
+
currentNew: h,
|
|
6198
6213
|
banners: m,
|
|
6199
6214
|
schemasImages: w,
|
|
6200
|
-
internalPath:
|
|
6215
|
+
internalPath: f,
|
|
6201
6216
|
meta_info: p,
|
|
6202
6217
|
config: b,
|
|
6203
6218
|
socials: A,
|
|
@@ -6213,22 +6228,22 @@ async function A1({
|
|
|
6213
6228
|
const O = { ...Ml, ...t }, P = w && w[0] && w[0].preview ? w[0] : void 0, F = me(), Q = y || await Sl[r]({
|
|
6214
6229
|
meta: n,
|
|
6215
6230
|
config: { ...b, siteUrl: b.siteUrl + F },
|
|
6216
|
-
currentNew:
|
|
6231
|
+
currentNew: h,
|
|
6217
6232
|
pathname: o,
|
|
6218
6233
|
imgSizes: a,
|
|
6219
6234
|
slug: i,
|
|
6220
6235
|
texts: c,
|
|
6221
6236
|
query: l,
|
|
6222
6237
|
axiosApi: e,
|
|
6223
|
-
internalPath:
|
|
6238
|
+
internalPath: f,
|
|
6224
6239
|
meta_info: p,
|
|
6225
6240
|
schemasImages: P
|
|
6226
6241
|
}), B = Go(Q), L = S || Er[r]({
|
|
6227
6242
|
pathname: o,
|
|
6228
6243
|
slug: i,
|
|
6229
6244
|
config: b,
|
|
6230
|
-
currentNew:
|
|
6231
|
-
internalPath:
|
|
6245
|
+
currentNew: h,
|
|
6246
|
+
internalPath: f
|
|
6232
6247
|
});
|
|
6233
6248
|
return /* @__PURE__ */ g($, { children: [
|
|
6234
6249
|
/* @__PURE__ */ s("meta", { charSet: "utf-8" }),
|
|
@@ -6244,16 +6259,16 @@ async function A1({
|
|
|
6244
6259
|
}
|
|
6245
6260
|
),
|
|
6246
6261
|
/* @__PURE__ */ s(bl, { config: b }),
|
|
6247
|
-
O.preloadImages &&
|
|
6262
|
+
O.preloadImages && h && h.preview?.sizes && /* @__PURE__ */ s(
|
|
6248
6263
|
Ks,
|
|
6249
6264
|
{
|
|
6250
6265
|
images: [
|
|
6251
6266
|
{
|
|
6252
|
-
href: nt() + (
|
|
6267
|
+
href: nt() + (h.preview.sizes[0]?.url ?? ""),
|
|
6253
6268
|
media: "(min-width: 900px)"
|
|
6254
6269
|
},
|
|
6255
6270
|
{
|
|
6256
|
-
href: nt() + (
|
|
6271
|
+
href: nt() + (h.preview.sizes[1]?.url ?? ""),
|
|
6257
6272
|
media: "(max-width: 900px)"
|
|
6258
6273
|
}
|
|
6259
6274
|
]
|
|
@@ -6270,23 +6285,23 @@ async function A1({
|
|
|
6270
6285
|
),
|
|
6271
6286
|
B,
|
|
6272
6287
|
O.ampConfig && b.ampOption && O.ampConfig_slugIsValid && /* @__PURE__ */ s("link", { rel: "amphtml", href: b.siteUrl + "/amp" + F + o }),
|
|
6273
|
-
O.schemas_NewsArticle &&
|
|
6288
|
+
O.schemas_NewsArticle && f && /* @__PURE__ */ s(
|
|
6274
6289
|
ll,
|
|
6275
6290
|
{
|
|
6276
6291
|
schemasCustomEndpoints: R,
|
|
6277
6292
|
BASE_URL: b.siteUrl,
|
|
6278
6293
|
config: b,
|
|
6279
|
-
realPath:
|
|
6294
|
+
realPath: f,
|
|
6280
6295
|
axiosApi: e
|
|
6281
6296
|
}
|
|
6282
6297
|
),
|
|
6283
6298
|
O.schemas_SoftwareApplication && /* @__PURE__ */ s(il, { config: b }),
|
|
6284
6299
|
/* @__PURE__ */ s(dl, { config: b, socials: A }),
|
|
6285
|
-
O.schemas_Videos &&
|
|
6300
|
+
O.schemas_Videos && f && /* @__PURE__ */ s(
|
|
6286
6301
|
ml,
|
|
6287
6302
|
{
|
|
6288
6303
|
axiosApi: e,
|
|
6289
|
-
realPath:
|
|
6304
|
+
realPath: f,
|
|
6290
6305
|
config: b
|
|
6291
6306
|
}
|
|
6292
6307
|
),
|
|
@@ -6317,9 +6332,9 @@ async function A1({
|
|
|
6317
6332
|
config: b,
|
|
6318
6333
|
defaultMetadataName: r,
|
|
6319
6334
|
speculationType: v,
|
|
6320
|
-
internalPath:
|
|
6335
|
+
internalPath: f,
|
|
6321
6336
|
hasAutor: !!d,
|
|
6322
|
-
hasCurrentNewPreview: !!
|
|
6337
|
+
hasCurrentNewPreview: !!h?.preview?.sizes,
|
|
6323
6338
|
hasPreloadImageUrl: !!N?.length
|
|
6324
6339
|
}),
|
|
6325
6340
|
configOriginAuditReport: z
|
|
@@ -6349,13 +6364,13 @@ const y1 = ({
|
|
|
6349
6364
|
scriptReplaces: d,
|
|
6350
6365
|
body_custom_elements: u
|
|
6351
6366
|
}) => {
|
|
6352
|
-
const
|
|
6367
|
+
const h = $c(c, l), m = Er[t]({
|
|
6353
6368
|
pathname: a,
|
|
6354
6369
|
slug: r,
|
|
6355
6370
|
config: o,
|
|
6356
6371
|
currentNew: c,
|
|
6357
6372
|
internalPath: i
|
|
6358
|
-
}), w = n.find((v) => v.key === "event_analytics"),
|
|
6373
|
+
}), 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
6374
|
return /* @__PURE__ */ g($, { children: [
|
|
6360
6375
|
/* @__PURE__ */ s(Ja, { name: "bodybefore", banners: n, replaces: b }),
|
|
6361
6376
|
e,
|
|
@@ -6364,7 +6379,7 @@ const y1 = ({
|
|
|
6364
6379
|
/* @__PURE__ */ s(
|
|
6365
6380
|
Wc,
|
|
6366
6381
|
{
|
|
6367
|
-
dimensionValues:
|
|
6382
|
+
dimensionValues: h,
|
|
6368
6383
|
event_analytics: w,
|
|
6369
6384
|
eventReplaces: m
|
|
6370
6385
|
}
|
|
@@ -6409,7 +6424,7 @@ function ql({
|
|
|
6409
6424
|
enableDrag: o,
|
|
6410
6425
|
onIndexChange: i
|
|
6411
6426
|
}) {
|
|
6412
|
-
const [c, l] = V(!1), [d, u] = V(0), [
|
|
6427
|
+
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
6428
|
if (r) return 1;
|
|
6414
6429
|
const x = N.current?.offsetWidth || window.innerWidth, k = n + a, q = Math.floor(x / k);
|
|
6415
6430
|
return Math.max(1, q);
|
|
@@ -6449,14 +6464,14 @@ function ql({
|
|
|
6449
6464
|
[r, n, a, S, z]
|
|
6450
6465
|
), F = ue(
|
|
6451
6466
|
(x) => {
|
|
6452
|
-
o && (u(x), m(x),
|
|
6467
|
+
o && (u(x), m(x), f(0), b(Date.now()), l(!0), document.body.classList.add("dragging"));
|
|
6453
6468
|
},
|
|
6454
6469
|
[o]
|
|
6455
6470
|
), Q = ue(
|
|
6456
6471
|
(x) => {
|
|
6457
6472
|
if (!c || !o) return;
|
|
6458
6473
|
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),
|
|
6474
|
+
m(x), f(W);
|
|
6460
6475
|
},
|
|
6461
6476
|
[c, d, o, e, R, n, a]
|
|
6462
6477
|
), B = ue(
|
|
@@ -6467,7 +6482,7 @@ function ql({
|
|
|
6467
6482
|
), L = ue(
|
|
6468
6483
|
(x) => {
|
|
6469
6484
|
if (!c || !o) return;
|
|
6470
|
-
const k =
|
|
6485
|
+
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
6486
|
if (K > 0)
|
|
6472
6487
|
if (k > 0) {
|
|
6473
6488
|
const J = Math.max(0, e - K);
|
|
@@ -6476,11 +6491,11 @@ function ql({
|
|
|
6476
6491
|
const J = Math.min(R, e + K);
|
|
6477
6492
|
i(J);
|
|
6478
6493
|
}
|
|
6479
|
-
l(!1),
|
|
6494
|
+
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
6495
|
},
|
|
6481
6496
|
[
|
|
6482
6497
|
c,
|
|
6483
|
-
|
|
6498
|
+
h,
|
|
6484
6499
|
d,
|
|
6485
6500
|
p,
|
|
6486
6501
|
e,
|
|
@@ -6546,14 +6561,14 @@ function C1(e) {
|
|
|
6546
6561
|
fullPageWidth: i = !1,
|
|
6547
6562
|
pagination: c = !1,
|
|
6548
6563
|
enableDrag: l = !0
|
|
6549
|
-
} = e, d = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [u,
|
|
6564
|
+
} = 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
6565
|
Me(() => {
|
|
6551
6566
|
w(!0);
|
|
6552
6567
|
const O = document.getElementById("ssr-dummy_" + n);
|
|
6553
6568
|
O && O.remove();
|
|
6554
6569
|
}, []);
|
|
6555
6570
|
const {
|
|
6556
|
-
isDragging:
|
|
6571
|
+
isDragging: f,
|
|
6557
6572
|
translateOffset: p,
|
|
6558
6573
|
carrouselRef: b,
|
|
6559
6574
|
maxIndex: A,
|
|
@@ -6567,11 +6582,11 @@ function C1(e) {
|
|
|
6567
6582
|
cardGap: o,
|
|
6568
6583
|
fullPageWidth: i,
|
|
6569
6584
|
enableDrag: l,
|
|
6570
|
-
onIndexChange:
|
|
6585
|
+
onIndexChange: h
|
|
6571
6586
|
}), y = ue(
|
|
6572
6587
|
(O) => {
|
|
6573
6588
|
const P = Math.max(0, Math.min(O, A));
|
|
6574
|
-
|
|
6589
|
+
h(P);
|
|
6575
6590
|
},
|
|
6576
6591
|
[A]
|
|
6577
6592
|
), S = ue(() => {
|
|
@@ -6642,7 +6657,7 @@ function C1(e) {
|
|
|
6642
6657
|
style: {
|
|
6643
6658
|
gap: o,
|
|
6644
6659
|
margin: o === 0 ? "0" : "0 0.5rem 1rem",
|
|
6645
|
-
cursor: l ?
|
|
6660
|
+
cursor: l ? f ? "grabbing" : "grab" : "default",
|
|
6646
6661
|
justifyContent: "start !important"
|
|
6647
6662
|
},
|
|
6648
6663
|
...C,
|
|
@@ -6652,11 +6667,11 @@ function C1(e) {
|
|
|
6652
6667
|
className: "card",
|
|
6653
6668
|
style: {
|
|
6654
6669
|
transform: z,
|
|
6655
|
-
transition:
|
|
6670
|
+
transition: f ? "none" : "transform 300ms ease",
|
|
6656
6671
|
minWidth: i ? "100%" : r,
|
|
6657
6672
|
width: "min-content",
|
|
6658
|
-
userSelect:
|
|
6659
|
-
pointerEvents:
|
|
6673
|
+
userSelect: f ? "none" : "auto",
|
|
6674
|
+
pointerEvents: f ? "none" : "auto"
|
|
6660
6675
|
},
|
|
6661
6676
|
dangerouslySetInnerHTML: { __html: O }
|
|
6662
6677
|
},
|
|
@@ -6667,11 +6682,11 @@ function C1(e) {
|
|
|
6667
6682
|
className: "card",
|
|
6668
6683
|
style: {
|
|
6669
6684
|
transform: z,
|
|
6670
|
-
transition:
|
|
6685
|
+
transition: f ? "none" : "transform 300ms ease",
|
|
6671
6686
|
minWidth: i ? "100%" : r,
|
|
6672
6687
|
width: "min-content",
|
|
6673
|
-
userSelect:
|
|
6674
|
-
pointerEvents:
|
|
6688
|
+
userSelect: f ? "none" : "auto",
|
|
6689
|
+
pointerEvents: f ? "none" : "auto"
|
|
6675
6690
|
},
|
|
6676
6691
|
children: O
|
|
6677
6692
|
},
|
|
@@ -6741,7 +6756,7 @@ function it(e) {
|
|
|
6741
6756
|
}
|
|
6742
6757
|
);
|
|
6743
6758
|
}
|
|
6744
|
-
const
|
|
6759
|
+
const Pt = (e) => /* @__PURE__ */ s("div", { className: "su-flex su-flex-col sass-com-mid-content", children: e.children }), jl = (e) => e.replace(
|
|
6745
6760
|
/<script\b([^>]*)>/gi,
|
|
6746
6761
|
(t, n) => (
|
|
6747
6762
|
// Reemplaza o agrega type="text/deferred-banner" para que el browser no ejecute
|
|
@@ -6753,7 +6768,7 @@ const Rt = (e) => /* @__PURE__ */ s("div", { className: "su-flex su-flex-col sas
|
|
|
6753
6768
|
if (!a?.value || !a.show) return null;
|
|
6754
6769
|
const r = gs(a.value, n);
|
|
6755
6770
|
if (!r) return null;
|
|
6756
|
-
const { CONFIG_deferBanners: o } = I(), i =
|
|
6771
|
+
const { CONFIG_deferBanners: o } = I(), i = Dt(r, {}), c = o?.middle !== !1 ? jl(i) : i;
|
|
6757
6772
|
return /* @__PURE__ */ s(
|
|
6758
6773
|
"div",
|
|
6759
6774
|
{
|
|
@@ -6770,7 +6785,7 @@ const Rt = (e) => /* @__PURE__ */ s("div", { className: "su-flex su-flex-col sas
|
|
|
6770
6785
|
if (!a?.show) return null;
|
|
6771
6786
|
const r = gs(a.value, n);
|
|
6772
6787
|
if (!r) return null;
|
|
6773
|
-
const o =
|
|
6788
|
+
const o = Dt(r) ?? "", { CONFIG_deferBanners: i } = I(), c = i?.common !== !1 ? Gl(o) : o;
|
|
6774
6789
|
return /* @__PURE__ */ s(
|
|
6775
6790
|
"div",
|
|
6776
6791
|
{
|
|
@@ -6781,9 +6796,9 @@ const Rt = (e) => /* @__PURE__ */ s("div", { className: "su-flex su-flex-col sas
|
|
|
6781
6796
|
);
|
|
6782
6797
|
};
|
|
6783
6798
|
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,
|
|
6799
|
+
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
6800
|
...p,
|
|
6786
|
-
href: (!m && !w ?
|
|
6801
|
+
href: (!m && !w ? h : "") + (h && e.href === "/" ? "" : e.href ?? "")
|
|
6787
6802
|
};
|
|
6788
6803
|
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
6804
|
"a",
|
|
@@ -7274,7 +7289,7 @@ const Tr = ({
|
|
|
7274
7289
|
paths: o,
|
|
7275
7290
|
newsDescriptionSectionTag: i = "span",
|
|
7276
7291
|
speculationPrerenderClass: c
|
|
7277
|
-
} = e, { SHOW_TAG_BY_SECTION: l, SUB_PUBLICATION_PREFIX_IN_ROUTES: d } = I(), u = () => e?.authors[0]?.fullname ?? "Redacción",
|
|
7292
|
+
} = e, { SHOW_TAG_BY_SECTION: l, SUB_PUBLICATION_PREFIX_IN_ROUTES: d } = I(), u = () => e?.authors[0]?.fullname ?? "Redacción", h = () => {
|
|
7278
7293
|
if (e?.config?.showtime && e.config?.showauthor)
|
|
7279
7294
|
return `${u()} - ${ke(e.info?.date?.modified)}`;
|
|
7280
7295
|
if (e.config?.showauthor)
|
|
@@ -7285,7 +7300,7 @@ const Tr = ({
|
|
|
7285
7300
|
/* @__PURE__ */ s("span", { className: "sass-com-nd-correspondentName", children: u() }),
|
|
7286
7301
|
/* @__PURE__ */ s("span", { className: "sass-com-nd-correspondentSeparator", children: " - " }),
|
|
7287
7302
|
/* @__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,
|
|
7303
|
+
] }) : 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
7304
|
if (l && a?.tags?.length && a.tags.length > 0) {
|
|
7290
7305
|
const p = a.tags[0], b = p.name;
|
|
7291
7306
|
return he.createElement(
|
|
@@ -7336,7 +7351,7 @@ const Tr = ({
|
|
|
7336
7351
|
children: /* @__PURE__ */ s($l, { noteShare: { ...t } })
|
|
7337
7352
|
}
|
|
7338
7353
|
),
|
|
7339
|
-
/* @__PURE__ */ s(
|
|
7354
|
+
/* @__PURE__ */ s(f, {}),
|
|
7340
7355
|
he.createElement(
|
|
7341
7356
|
e.isTitle ? "h1" : "h2",
|
|
7342
7357
|
{
|
|
@@ -7371,7 +7386,7 @@ const Tr = ({
|
|
|
7371
7386
|
_,
|
|
7372
7387
|
{
|
|
7373
7388
|
block_subPublication: d?.autor,
|
|
7374
|
-
"aria-label":
|
|
7389
|
+
"aria-label": h(),
|
|
7375
7390
|
className: "sass-com-nd-correspondentLink",
|
|
7376
7391
|
href: `/${e?.paths?.autor ?? "autor"}/${e?.authors[0]?.name}`,
|
|
7377
7392
|
children: m()
|
|
@@ -9109,7 +9124,7 @@ const Wl = (e) => {
|
|
|
9109
9124
|
]
|
|
9110
9125
|
}
|
|
9111
9126
|
);
|
|
9112
|
-
},
|
|
9127
|
+
}, Vt = (e) => {
|
|
9113
9128
|
const { PUBLIC_ENV: t } = I(), n = re("/facebook-black.svg");
|
|
9114
9129
|
return t !== "" && !e.forceSVG ? /* @__PURE__ */ s("img", { fetchPriority: "low", loading: "lazy", width: 17, height: 23, src: n, alt: "", ...e }) : /* @__PURE__ */ s(
|
|
9115
9130
|
"svg",
|
|
@@ -9234,7 +9249,7 @@ const Wl = (e) => {
|
|
|
9234
9249
|
url: (e) => `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,
|
|
9235
9250
|
icon: {
|
|
9236
9251
|
outline: (e) => /* @__PURE__ */ s(Es, { className: e, forceSVG: !0 }),
|
|
9237
|
-
solid: (e) => /* @__PURE__ */ s(
|
|
9252
|
+
solid: (e) => /* @__PURE__ */ s(Vt, { className: e, forceSVG: !0 })
|
|
9238
9253
|
}
|
|
9239
9254
|
},
|
|
9240
9255
|
X: {
|
|
@@ -9350,11 +9365,11 @@ const T1 = (e) => {
|
|
|
9350
9365
|
] }) }) });
|
|
9351
9366
|
}, Aa = (e) => {
|
|
9352
9367
|
const { currentPage: t, showNext: n, maxPages: a, pathname: r, query: o, block_subPublication: i } = e, c = (l, d, u) => {
|
|
9353
|
-
let
|
|
9368
|
+
let h = "";
|
|
9354
9369
|
const m = d.split("/");
|
|
9355
|
-
return m.indexOf("page") !== -1 && m.splice(
|
|
9356
|
-
|
|
9357
|
-
}), l === "next" ?
|
|
9370
|
+
return m.indexOf("page") !== -1 && m.splice(h.indexOf("page") - 1, m.length - 1), m.forEach((w, f) => {
|
|
9371
|
+
f !== 0 && (h += `/${w}`);
|
|
9372
|
+
}), l === "next" ? h += `/page/${t + 1}${u ? `?query=${u}` : ""}` : h += `/page/${t - 1}${u ? `?query=${u}` : ""}`;
|
|
9358
9373
|
};
|
|
9359
9374
|
return (t > 1 || n && t < a) && /* @__PURE__ */ g("section", { className: "sass-com-np-content", children: [
|
|
9360
9375
|
t > 1 && /* @__PURE__ */ s(
|
|
@@ -9401,9 +9416,9 @@ const T1 = (e) => {
|
|
|
9401
9416
|
isLarge: d,
|
|
9402
9417
|
priorityHigh: u = !1
|
|
9403
9418
|
}) => {
|
|
9404
|
-
const { CONFIG_videoClipUrl:
|
|
9419
|
+
const { CONFIG_videoClipUrl: h } = I(), m = e ?? "imagen", w = Array.isArray(t) ? t : [], f = () => {
|
|
9405
9420
|
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: `${
|
|
9421
|
+
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
9422
|
}, p = () => {
|
|
9408
9423
|
const v = w[0]?.code;
|
|
9409
9424
|
return v ? /* @__PURE__ */ s(
|
|
@@ -9461,7 +9476,7 @@ const T1 = (e) => {
|
|
|
9461
9476
|
case "videoEmbedded":
|
|
9462
9477
|
return w.some((v) => v.type === "video-embedded" && v.code) ? /* @__PURE__ */ s(b, {}) : /* @__PURE__ */ s(A, {});
|
|
9463
9478
|
case "clip":
|
|
9464
|
-
return w[0]?.clip ? /* @__PURE__ */ s(
|
|
9479
|
+
return w[0]?.clip ? /* @__PURE__ */ s(f, {}) : /* @__PURE__ */ s(A, {});
|
|
9465
9480
|
case "iframe":
|
|
9466
9481
|
return n?.iframe ? /* @__PURE__ */ s(
|
|
9467
9482
|
"div",
|
|
@@ -9485,11 +9500,11 @@ const T1 = (e) => {
|
|
|
9485
9500
|
overImage: l = "default",
|
|
9486
9501
|
isTitle: d,
|
|
9487
9502
|
priorityHigh: u = !1,
|
|
9488
|
-
isLarge:
|
|
9503
|
+
isLarge: h,
|
|
9489
9504
|
paths: m,
|
|
9490
9505
|
keywords: w,
|
|
9491
|
-
speculationPrerenderClass:
|
|
9492
|
-
} = e, p =
|
|
9506
|
+
speculationPrerenderClass: f
|
|
9507
|
+
} = e, p = f ? `${f} sass-com-sc1-image` : "sass-com-sc1-image";
|
|
9493
9508
|
return /* @__PURE__ */ g(
|
|
9494
9509
|
"section",
|
|
9495
9510
|
{
|
|
@@ -9510,7 +9525,7 @@ const T1 = (e) => {
|
|
|
9510
9525
|
linkTarget: a?.link?.target,
|
|
9511
9526
|
linkTitle: t?.title?.section,
|
|
9512
9527
|
isVideo: i,
|
|
9513
|
-
isLarge:
|
|
9528
|
+
isLarge: h,
|
|
9514
9529
|
priorityHigh: u
|
|
9515
9530
|
}
|
|
9516
9531
|
) }),
|
|
@@ -9719,7 +9734,7 @@ const T1 = (e) => {
|
|
|
9719
9734
|
loading: "lazy"
|
|
9720
9735
|
}
|
|
9721
9736
|
), 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 ?? "",
|
|
9737
|
+
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
9738
|
return /* @__PURE__ */ s(
|
|
9724
9739
|
"section",
|
|
9725
9740
|
{
|
|
@@ -9745,14 +9760,14 @@ const T1 = (e) => {
|
|
|
9745
9760
|
N() && /* @__PURE__ */ s(
|
|
9746
9761
|
"a",
|
|
9747
9762
|
{
|
|
9748
|
-
href: C(
|
|
9763
|
+
href: C(h),
|
|
9749
9764
|
className: "sass-com-ah1-email",
|
|
9750
|
-
"aria-label": `Enviar correo electrónico a ${
|
|
9751
|
-
title: `Enviar correo a ${
|
|
9752
|
-
children:
|
|
9765
|
+
"aria-label": `Enviar correo electrónico a ${h}`,
|
|
9766
|
+
title: `Enviar correo a ${h}`,
|
|
9767
|
+
children: h
|
|
9753
9768
|
}
|
|
9754
9769
|
),
|
|
9755
|
-
w && /* @__PURE__ */ s("p", { className: "sass-com-ah1-description", children:
|
|
9770
|
+
w && /* @__PURE__ */ s("p", { className: "sass-com-ah1-description", children: f }),
|
|
9756
9771
|
/* @__PURE__ */ g("div", { className: "sass-com-ah1-social", children: [
|
|
9757
9772
|
p && /* @__PURE__ */ s(
|
|
9758
9773
|
"a",
|
|
@@ -9761,7 +9776,7 @@ const T1 = (e) => {
|
|
|
9761
9776
|
target: "_blank",
|
|
9762
9777
|
className: `sass-com-ah1-social-link ${a ? "sass-com-ah1-social-filled" : "sass-com-ah1-social-stroke"}`,
|
|
9763
9778
|
rel: "noreferrer",
|
|
9764
|
-
children: r ? Zt(a ? "facebook-black" : "facebook", "Facebook", "sass-com-ah1-social-icon sass-social-icon-facebook") : a ? /* @__PURE__ */ s(
|
|
9779
|
+
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
9780
|
}
|
|
9766
9781
|
),
|
|
9767
9782
|
b && /* @__PURE__ */ s(
|
|
@@ -9799,7 +9814,7 @@ const T1 = (e) => {
|
|
|
9799
9814
|
}
|
|
9800
9815
|
);
|
|
9801
9816
|
}, 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 ?? "",
|
|
9817
|
+
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
9818
|
return /* @__PURE__ */ s(
|
|
9804
9819
|
"section",
|
|
9805
9820
|
{
|
|
@@ -9824,21 +9839,21 @@ const T1 = (e) => {
|
|
|
9824
9839
|
className: "sass-com-ah2-contentAuthor su-stack-center su-md:items-start",
|
|
9825
9840
|
children: [
|
|
9826
9841
|
/* @__PURE__ */ s("h1", { className: "sass-com-ah2-name", children: d }),
|
|
9827
|
-
|
|
9842
|
+
h && /* @__PURE__ */ s("p", { className: "sass-com-ah2-email", children: u }),
|
|
9828
9843
|
m && /* @__PURE__ */ s("p", { className: "sass-com-ah2-description", children: w }),
|
|
9829
9844
|
/* @__PURE__ */ g(
|
|
9830
9845
|
"div",
|
|
9831
9846
|
{
|
|
9832
9847
|
className: "sass-com-ah2-contenSocialNetwork su-flex su-items-center su-gap-4 su-justify-start",
|
|
9833
9848
|
children: [
|
|
9834
|
-
|
|
9849
|
+
f && /* @__PURE__ */ s(
|
|
9835
9850
|
"a",
|
|
9836
9851
|
{
|
|
9837
|
-
href:
|
|
9852
|
+
href: f,
|
|
9838
9853
|
target: "_blank",
|
|
9839
9854
|
className: a ? "sass-com-ah2-socialIconFilled" : "sass-com-ah2-socialIconStroke",
|
|
9840
9855
|
rel: "noreferrer",
|
|
9841
|
-
children: a ? /* @__PURE__ */ s(
|
|
9856
|
+
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
9857
|
}
|
|
9843
9858
|
),
|
|
9844
9859
|
p && /* @__PURE__ */ s(
|
|
@@ -10001,7 +10016,7 @@ const T1 = (e) => {
|
|
|
10001
10016
|
{
|
|
10002
10017
|
isTitle: !0,
|
|
10003
10018
|
cutSubtitle: !1,
|
|
10004
|
-
...
|
|
10019
|
+
...Bt(
|
|
10005
10020
|
{
|
|
10006
10021
|
...e?.video,
|
|
10007
10022
|
info: {
|
|
@@ -10037,7 +10052,7 @@ const T1 = (e) => {
|
|
|
10037
10052
|
Array.isArray(t) && t.map((n, a) => /* @__PURE__ */ Ye(
|
|
10038
10053
|
gd,
|
|
10039
10054
|
{
|
|
10040
|
-
...
|
|
10055
|
+
...Bt(n, !0, !1, !1),
|
|
10041
10056
|
key: a,
|
|
10042
10057
|
paths: e.paths
|
|
10043
10058
|
}
|
|
@@ -10228,7 +10243,7 @@ const T1 = (e) => {
|
|
|
10228
10243
|
/* @__PURE__ */ g("div", { className: "sass-com-sb-mainContent", children: [
|
|
10229
10244
|
/* @__PURE__ */ g("div", { children: [
|
|
10230
10245
|
a,
|
|
10231
|
-
e.map((
|
|
10246
|
+
e.map((h, m) => /* @__PURE__ */ s(Ad, { item: h, index: m }, m))
|
|
10232
10247
|
] }),
|
|
10233
10248
|
/* @__PURE__ */ s(yd, { socials: t, copyright: n })
|
|
10234
10249
|
] })
|
|
@@ -10662,7 +10677,7 @@ const T1 = (e) => {
|
|
|
10662
10677
|
) : /* @__PURE__ */ s("div", { className: "sass-com-ts-chipStyled", children: n.name }, a))
|
|
10663
10678
|
] }) });
|
|
10664
10679
|
}, 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 ?? "",
|
|
10680
|
+
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
10681
|
return c && !!t && /* @__PURE__ */ s("section", { className: "sass-com-ja2-contentBox", children: /* @__PURE__ */ g("div", { className: "sass-com-ja2-content", children: [
|
|
10667
10682
|
/* @__PURE__ */ g("div", { className: "sass-com-ja2-avatarContent", children: [
|
|
10668
10683
|
/* @__PURE__ */ s(
|
|
@@ -10699,7 +10714,7 @@ const T1 = (e) => {
|
|
|
10699
10714
|
{
|
|
10700
10715
|
href: m,
|
|
10701
10716
|
target: "_blank",
|
|
10702
|
-
"aria-label":
|
|
10717
|
+
"aria-label": h,
|
|
10703
10718
|
rel: "noreferrer",
|
|
10704
10719
|
children: /* @__PURE__ */ s(
|
|
10705
10720
|
"svg",
|
|
@@ -10726,7 +10741,7 @@ const T1 = (e) => {
|
|
|
10726
10741
|
{
|
|
10727
10742
|
href: w,
|
|
10728
10743
|
target: "_blank",
|
|
10729
|
-
"aria-label":
|
|
10744
|
+
"aria-label": h,
|
|
10730
10745
|
rel: "noreferrer",
|
|
10731
10746
|
children: /* @__PURE__ */ g(
|
|
10732
10747
|
"svg",
|
|
@@ -10774,12 +10789,12 @@ const T1 = (e) => {
|
|
|
10774
10789
|
)
|
|
10775
10790
|
}
|
|
10776
10791
|
),
|
|
10777
|
-
|
|
10792
|
+
f && /* @__PURE__ */ s(
|
|
10778
10793
|
"a",
|
|
10779
10794
|
{
|
|
10780
|
-
href:
|
|
10795
|
+
href: f,
|
|
10781
10796
|
target: "_blank",
|
|
10782
|
-
"aria-label":
|
|
10797
|
+
"aria-label": h,
|
|
10783
10798
|
rel: "noreferrer",
|
|
10784
10799
|
children: /* @__PURE__ */ s(
|
|
10785
10800
|
"svg",
|
|
@@ -10805,7 +10820,7 @@ const T1 = (e) => {
|
|
|
10805
10820
|
{
|
|
10806
10821
|
href: p,
|
|
10807
10822
|
target: "_blank",
|
|
10808
|
-
"aria-label":
|
|
10823
|
+
"aria-label": h,
|
|
10809
10824
|
rel: "noreferrer",
|
|
10810
10825
|
children: /* @__PURE__ */ g(
|
|
10811
10826
|
"svg",
|
|
@@ -10864,7 +10879,7 @@ const T1 = (e) => {
|
|
|
10864
10879
|
"div",
|
|
10865
10880
|
{
|
|
10866
10881
|
className: "sass-com-ja2-article sass-com-ja2-article-clamp",
|
|
10867
|
-
dangerouslySetInnerHTML: { __html:
|
|
10882
|
+
dangerouslySetInnerHTML: { __html: h }
|
|
10868
10883
|
}
|
|
10869
10884
|
),
|
|
10870
10885
|
/* @__PURE__ */ g("div", { className: "sass-com-ja2-bioFooter", children: [
|
|
@@ -10923,7 +10938,7 @@ const T1 = (e) => {
|
|
|
10923
10938
|
{
|
|
10924
10939
|
className: "sass-com-ja2-article",
|
|
10925
10940
|
dangerouslySetInnerHTML: {
|
|
10926
|
-
__html: `${
|
|
10941
|
+
__html: `${h} <a aria-label="${l}" href="${b}">${String(
|
|
10927
10942
|
e.texts.authorViewMore ?? "Ver más"
|
|
10928
10943
|
)}</a>`
|
|
10929
10944
|
}
|
|
@@ -11158,12 +11173,12 @@ function D1(e) {
|
|
|
11158
11173
|
isLarge: l,
|
|
11159
11174
|
priorityHigh: d,
|
|
11160
11175
|
share: u,
|
|
11161
|
-
overImage:
|
|
11176
|
+
overImage: h,
|
|
11162
11177
|
isTitle: m,
|
|
11163
11178
|
paths: w
|
|
11164
|
-
} = e, { CONFIG_videoClipUrl:
|
|
11179
|
+
} = e, { CONFIG_videoClipUrl: f } = I(), p = o?.homepreview ?? "imagen", b = () => {
|
|
11165
11180
|
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: `${
|
|
11181
|
+
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
11182
|
}, A = () => {
|
|
11168
11183
|
if (!e.videos) return null;
|
|
11169
11184
|
const y = e.videos?.[0]?.code;
|
|
@@ -11296,7 +11311,7 @@ function D1(e) {
|
|
|
11296
11311
|
preview: r,
|
|
11297
11312
|
share: u,
|
|
11298
11313
|
config: o,
|
|
11299
|
-
overImage:
|
|
11314
|
+
overImage: h,
|
|
11300
11315
|
isTitle: m,
|
|
11301
11316
|
paths: w,
|
|
11302
11317
|
keywords: i
|
|
@@ -11455,7 +11470,7 @@ const bt = (e) => {
|
|
|
11455
11470
|
imageSize: l,
|
|
11456
11471
|
showSuper: d,
|
|
11457
11472
|
textPosition: u,
|
|
11458
|
-
heightImageOverwrite:
|
|
11473
|
+
heightImageOverwrite: h,
|
|
11459
11474
|
heightImageOverwriteMobile: m
|
|
11460
11475
|
} = e;
|
|
11461
11476
|
return /* @__PURE__ */ g("section", { className: "su-grid su-w-full su-gap-8 sass-bmd-dd-content", children: [
|
|
@@ -11476,7 +11491,7 @@ const bt = (e) => {
|
|
|
11476
11491
|
config: i,
|
|
11477
11492
|
paths: e.paths,
|
|
11478
11493
|
textPosition: u,
|
|
11479
|
-
heightImageOverwrite:
|
|
11494
|
+
heightImageOverwrite: h,
|
|
11480
11495
|
heightImageOverwriteMobile: m,
|
|
11481
11496
|
speculationPrerenderClass: e.speculationPrerenderClass
|
|
11482
11497
|
}
|
|
@@ -11685,7 +11700,7 @@ const bt = (e) => {
|
|
|
11685
11700
|
className: "su-grid sass-bd-dn-newsContent",
|
|
11686
11701
|
children: [
|
|
11687
11702
|
/* @__PURE__ */ s("div", { className: "banner-context", style: { order: 1 }, children: e.banner }),
|
|
11688
|
-
Array.isArray(l) && l.map((u,
|
|
11703
|
+
Array.isArray(l) && l.map((u, h) => {
|
|
11689
11704
|
const m = {
|
|
11690
11705
|
...u,
|
|
11691
11706
|
main: {
|
|
@@ -11696,14 +11711,14 @@ const bt = (e) => {
|
|
|
11696
11711
|
}
|
|
11697
11712
|
}
|
|
11698
11713
|
};
|
|
11699
|
-
return /* @__PURE__ */ s("div", { style: { order:
|
|
11714
|
+
return /* @__PURE__ */ s("div", { style: { order: h }, children: /* @__PURE__ */ s(
|
|
11700
11715
|
Qe,
|
|
11701
11716
|
{
|
|
11702
11717
|
...m,
|
|
11703
11718
|
isVideo: a,
|
|
11704
11719
|
paths: e.paths
|
|
11705
11720
|
}
|
|
11706
|
-
) },
|
|
11721
|
+
) }, h);
|
|
11707
11722
|
})
|
|
11708
11723
|
]
|
|
11709
11724
|
}
|
|
@@ -11909,7 +11924,7 @@ const j1 = (e) => {
|
|
|
11909
11924
|
}
|
|
11910
11925
|
) }, r)
|
|
11911
11926
|
), r++, o++);
|
|
11912
|
-
const c = e.isVideo ?
|
|
11927
|
+
const c = e.isVideo ? Bt(
|
|
11913
11928
|
t[i],
|
|
11914
11929
|
e.showVideoTime,
|
|
11915
11930
|
e.showVideosubtitle,
|
|
@@ -12100,7 +12115,7 @@ const V1 = (e) => {
|
|
|
12100
12115
|
jr,
|
|
12101
12116
|
{
|
|
12102
12117
|
goTo: e.goTo,
|
|
12103
|
-
mainNew:
|
|
12118
|
+
mainNew: Bt(r),
|
|
12104
12119
|
paths: e.paths
|
|
12105
12120
|
}
|
|
12106
12121
|
),
|
|
@@ -12128,7 +12143,7 @@ const V1 = (e) => {
|
|
|
12128
12143
|
/* @__PURE__ */ g("div", { className: "sass-bd-dv-newsContent", children: [
|
|
12129
12144
|
/* @__PURE__ */ s("div", { className: "banner-context", style: { order: 1 }, children: e.banner }),
|
|
12130
12145
|
Array.isArray(i) && i.map((c, l) => {
|
|
12131
|
-
const d =
|
|
12146
|
+
const d = Bt(c), u = {
|
|
12132
12147
|
...d,
|
|
12133
12148
|
main: {
|
|
12134
12149
|
...d.main,
|
|
@@ -12381,7 +12396,7 @@ const V1 = (e) => {
|
|
|
12381
12396
|
3: 1,
|
|
12382
12397
|
8: 2,
|
|
12383
12398
|
13: 3
|
|
12384
|
-
}, u = d ? Object.keys(d).map((
|
|
12399
|
+
}, u = d ? Object.keys(d).map((h) => parseInt(h)) : [];
|
|
12385
12400
|
switch (e.option) {
|
|
12386
12401
|
case "op1":
|
|
12387
12402
|
return /* @__PURE__ */ s(
|
|
@@ -12410,7 +12425,7 @@ const V1 = (e) => {
|
|
|
12410
12425
|
showNext: !(t.length < e.NEWS_PER_SECTION)
|
|
12411
12426
|
}
|
|
12412
12427
|
),
|
|
12413
|
-
children: Array.isArray(t) && t?.map((
|
|
12428
|
+
children: Array.isArray(t) && t?.map((h, m) => /* @__PURE__ */ g(ts, { children: [
|
|
12414
12429
|
u.includes(m + 1) && /* @__PURE__ */ s(
|
|
12415
12430
|
"div",
|
|
12416
12431
|
{
|
|
@@ -12428,7 +12443,7 @@ const V1 = (e) => {
|
|
|
12428
12443
|
Ca,
|
|
12429
12444
|
{
|
|
12430
12445
|
autorIcon: e.autorIcon,
|
|
12431
|
-
item:
|
|
12446
|
+
item: h,
|
|
12432
12447
|
option: r,
|
|
12433
12448
|
paths: e.paths,
|
|
12434
12449
|
speculationPrerenderClass: e.speculationPrerender?.length && m < e.speculationPrerender.length ? e.speculationPrerender.class : void 0
|
|
@@ -12480,7 +12495,7 @@ const V1 = (e) => {
|
|
|
12480
12495
|
showNext: !(t.length < e.NEWS_PER_SECTION)
|
|
12481
12496
|
}
|
|
12482
12497
|
),
|
|
12483
|
-
children: Array.isArray(t) && t?.map((
|
|
12498
|
+
children: Array.isArray(t) && t?.map((h, m) => /* @__PURE__ */ g(ts, { children: [
|
|
12484
12499
|
u.includes(m + 1) && /* @__PURE__ */ s("div", { className: "sass-pg-sec-ItemCustomContent", children: /* @__PURE__ */ s(
|
|
12485
12500
|
Ee,
|
|
12486
12501
|
{
|
|
@@ -12492,7 +12507,7 @@ const V1 = (e) => {
|
|
|
12492
12507
|
Ca,
|
|
12493
12508
|
{
|
|
12494
12509
|
autorIcon: e.autorIcon,
|
|
12495
|
-
item:
|
|
12510
|
+
item: h,
|
|
12496
12511
|
option: r,
|
|
12497
12512
|
paths: e.paths,
|
|
12498
12513
|
speculationPrerenderClass: e.speculationPrerender?.length && m < e.speculationPrerender.length ? e.speculationPrerender.class : void 0
|
|
@@ -12784,7 +12799,7 @@ const V1 = (e) => {
|
|
|
12784
12799
|
o = o.replace(c, y);
|
|
12785
12800
|
continue;
|
|
12786
12801
|
}
|
|
12787
|
-
const u = d.preview?.sizes?.[0],
|
|
12802
|
+
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
12803
|
d.preview?.sizes?.map(async (y) => {
|
|
12789
12804
|
const S = await fe(y.url);
|
|
12790
12805
|
return y.width < 200 ? `<source srcset="${S}" media="(width < 750px)"/>` : `<source srcset="${S}" media="(width >= 750px)"/>`;
|
|
@@ -12793,11 +12808,11 @@ const V1 = (e) => {
|
|
|
12793
12808
|
<span data-src="${l}">
|
|
12794
12809
|
<picture style='display: flex'>
|
|
12795
12810
|
${b}
|
|
12796
|
-
<img fetchPriority='low' loading='lazy' src="${
|
|
12811
|
+
<img fetchPriority='low' loading='lazy' src="${h}" alt="${String(t.noteRelatedImageAlt ?? "")} ${p}" />
|
|
12797
12812
|
</picture>
|
|
12798
12813
|
<div>
|
|
12799
12814
|
<a class="section" href="${m}">${w}</a>
|
|
12800
|
-
<a class="title" href="${
|
|
12815
|
+
<a class="title" href="${f}">${p}</a>
|
|
12801
12816
|
</div>
|
|
12802
12817
|
</span>
|
|
12803
12818
|
`, C = c.replace(v, N);
|
|
@@ -12830,33 +12845,33 @@ async function tu(e, t) {
|
|
|
12830
12845
|
let d = o[1] ?? "";
|
|
12831
12846
|
d && (d = eu(d));
|
|
12832
12847
|
const u = /data-type\s*=\s*["']?video["']?/i.test(l) || /video-type\s*=\s*["']?embedded["']?/i.test(l);
|
|
12833
|
-
let
|
|
12848
|
+
let h = l;
|
|
12834
12849
|
if (u && d)
|
|
12835
12850
|
try {
|
|
12836
12851
|
const m = await t.iframe({ path: d }), w = t.schema ? await t.schema(d) : null;
|
|
12837
12852
|
if (m && m.data) {
|
|
12838
|
-
const
|
|
12853
|
+
const f = m.data.data[0];
|
|
12839
12854
|
let p = "";
|
|
12840
12855
|
const b = l.match(
|
|
12841
12856
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
12842
12857
|
), A = b && b[1] ? b[1].trim() : "";
|
|
12843
|
-
|
|
12858
|
+
f.info && f.info.type === "video-youtube" ? p = `<iframe
|
|
12844
12859
|
loading="lazy"
|
|
12845
12860
|
frameborder="0"
|
|
12846
12861
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
12847
12862
|
referrerpolicy="strict-origin-when-cross-origin"
|
|
12848
12863
|
allowfullscreen
|
|
12849
12864
|
style="width: 100%; height: auto; min-height: 400px;"
|
|
12850
|
-
src="https://www.youtube.com/embed/${
|
|
12865
|
+
src="https://www.youtube.com/embed/${f.main?.code || f.main?.youtubeid || ""}"></iframe>` : f.info && f.info.type === "video-link" ? p = `<iframe
|
|
12851
12866
|
loading="lazy"
|
|
12852
12867
|
frameborder="0"
|
|
12853
12868
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
12854
12869
|
referrerpolicy="strict-origin-when-cross-origin"
|
|
12855
12870
|
allowfullscreen
|
|
12856
12871
|
style="width: 100%; height: auto; min-height: 400px;"
|
|
12857
|
-
src="${
|
|
12858
|
-
const v = A ||
|
|
12859
|
-
|
|
12872
|
+
src="${f.main?.code || ""}"></iframe>` : p = f.main?.code || "";
|
|
12873
|
+
const v = A || f.main?.description || "";
|
|
12874
|
+
h = `
|
|
12860
12875
|
<figure class="videoFigure">
|
|
12861
12876
|
${w && w.data && w.data.data ? `<script type="application/ld+json">${In(
|
|
12862
12877
|
JSON.stringify(w.data.data)
|
|
@@ -12867,9 +12882,9 @@ async function tu(e, t) {
|
|
|
12867
12882
|
`;
|
|
12868
12883
|
}
|
|
12869
12884
|
} catch (m) {
|
|
12870
|
-
console.error("replaceVideoSpansWithIframes error for", d, m),
|
|
12885
|
+
console.error("replaceVideoSpansWithIframes error for", d, m), h = l;
|
|
12871
12886
|
}
|
|
12872
|
-
a = c, n +=
|
|
12887
|
+
a = c, n += h, r.lastIndex = c;
|
|
12873
12888
|
}
|
|
12874
12889
|
return n += e.slice(a), n;
|
|
12875
12890
|
}
|
|
@@ -13070,7 +13085,7 @@ const ru = () => /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
13070
13085
|
{
|
|
13071
13086
|
className: `sass-com-ja3-imageContent ${m}`,
|
|
13072
13087
|
children: Array.isArray(t.authors) && t.authors?.map(
|
|
13073
|
-
async (w,
|
|
13088
|
+
async (w, f) => w.image ? /* @__PURE__ */ s(
|
|
13074
13089
|
"img",
|
|
13075
13090
|
{
|
|
13076
13091
|
fetchPriority: "low",
|
|
@@ -13141,7 +13156,7 @@ function lu(e) {
|
|
|
13141
13156
|
const t = e.children, n = `${e.slot_id}-`, a = e.visibleItems, r = e.cardGap ?? 20;
|
|
13142
13157
|
function o(c) {
|
|
13143
13158
|
const l = [], d = [];
|
|
13144
|
-
let u = "",
|
|
13159
|
+
let u = "", h = !0;
|
|
13145
13160
|
for (let m = 0; m < c; m++) {
|
|
13146
13161
|
const w = `[data-index="${m}"]:checked ~ .carrousel-pagination li:nth-child(${m + 1}) {
|
|
13147
13162
|
background-color:var(--carrousel-pagination-background-color)
|
|
@@ -13166,7 +13181,7 @@ function lu(e) {
|
|
|
13166
13181
|
}
|
|
13167
13182
|
}
|
|
13168
13183
|
}`), l.push(
|
|
13169
|
-
`<input type="radio" name="${n + "card"}" ${
|
|
13184
|
+
`<input type="radio" name="${n + "card"}" ${h ? "checked" : ""} id="${n + "input-check-" + m}" data-index="${m}" />`
|
|
13170
13185
|
), d.push(`
|
|
13171
13186
|
<label for="${n + "input-check-" + m}" data-index="${m}" class="visible-arrow left">
|
|
13172
13187
|
<svg width="16" height="16" view-box="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -13179,7 +13194,7 @@ function lu(e) {
|
|
|
13179
13194
|
<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
13195
|
</svg>
|
|
13181
13196
|
</label>` : ""}
|
|
13182
|
-
`),
|
|
13197
|
+
`), h = !1;
|
|
13183
13198
|
}
|
|
13184
13199
|
return `
|
|
13185
13200
|
<style>${u}</style>
|
|
@@ -13233,7 +13248,7 @@ const du = (e) => /* @__PURE__ */ s(
|
|
|
13233
13248
|
url: (e) => `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,
|
|
13234
13249
|
icon: {
|
|
13235
13250
|
outline: (e) => /* @__PURE__ */ s(Es, { className: e, forceSVG: !0 }),
|
|
13236
|
-
solid: (e) => /* @__PURE__ */ s(
|
|
13251
|
+
solid: (e) => /* @__PURE__ */ s(Vt, { className: e, forceSVG: !0 })
|
|
13237
13252
|
}
|
|
13238
13253
|
},
|
|
13239
13254
|
X: {
|
|
@@ -13336,9 +13351,9 @@ const hu = async (e) => {
|
|
|
13336
13351
|
CONFIG_shareOnlyWhatsApp: r,
|
|
13337
13352
|
DATE_TIMEZONE: o = "America/Mexico_City",
|
|
13338
13353
|
CONFIG_commentsV2: i
|
|
13339
|
-
} = I(), c = me(), l = (
|
|
13340
|
-
(
|
|
13341
|
-
).join(", "),
|
|
13354
|
+
} = I(), c = me(), l = (f) => `${c}/${e.paths.autor}/${f}`, d = t.authors.map(
|
|
13355
|
+
(f) => f.internaluser ? `<a href="${l(f.name)}">${f.fullname}</a>` : f.fullname
|
|
13356
|
+
).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
13357
|
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
13358
|
/* @__PURE__ */ g("div", { className: "sass-com-ja4-socialActionsRow", children: [
|
|
13344
13359
|
/* @__PURE__ */ g("div", { className: "sass-com-ja4-socialActionDiv", children: [
|
|
@@ -13428,37 +13443,37 @@ const hu = async (e) => {
|
|
|
13428
13443
|
/* @__PURE__ */ g(
|
|
13429
13444
|
"section",
|
|
13430
13445
|
{
|
|
13431
|
-
className: `sass-com-ja4-journalistSection ${
|
|
13446
|
+
className: `sass-com-ja4-journalistSection ${h}`,
|
|
13432
13447
|
children: [
|
|
13433
13448
|
/* @__PURE__ */ g(
|
|
13434
13449
|
"div",
|
|
13435
13450
|
{
|
|
13436
|
-
className: `sass-com-ja4-authorsInfoRow ${
|
|
13451
|
+
className: `sass-com-ja4-authorsInfoRow ${h}`,
|
|
13437
13452
|
children: [
|
|
13438
13453
|
/* @__PURE__ */ s(
|
|
13439
13454
|
"div",
|
|
13440
13455
|
{
|
|
13441
13456
|
className: `sass-com-ja4-imageContent ${w}`,
|
|
13442
13457
|
children: Array.isArray(t.authors) && t.authors?.map(
|
|
13443
|
-
async (
|
|
13458
|
+
async (f, p) => f.image ? /* @__PURE__ */ s(
|
|
13444
13459
|
"img",
|
|
13445
13460
|
{
|
|
13446
13461
|
fetchPriority: "low",
|
|
13447
13462
|
loading: "lazy",
|
|
13448
|
-
alt: "Imagen de perfil de " +
|
|
13463
|
+
alt: "Imagen de perfil de " + f.fullname,
|
|
13449
13464
|
className: "sass-com-ja4-imageStyled sass-com-ja4-imageAutor su-object-cover su-flex-center",
|
|
13450
13465
|
src: await fe(
|
|
13451
|
-
|
|
13466
|
+
f.image.sizes[0]?.url || ""
|
|
13452
13467
|
)
|
|
13453
13468
|
},
|
|
13454
|
-
|
|
13469
|
+
f.fullname
|
|
13455
13470
|
) : /* @__PURE__ */ s(
|
|
13456
13471
|
"div",
|
|
13457
13472
|
{
|
|
13458
13473
|
className: "sass-com-ja4-contentIconStyled sass-com-ja4-imageAutor su-flex-center",
|
|
13459
13474
|
children: e.autorIcon
|
|
13460
13475
|
},
|
|
13461
|
-
|
|
13476
|
+
f.fullname
|
|
13462
13477
|
)
|
|
13463
13478
|
)
|
|
13464
13479
|
}
|
|
@@ -13466,7 +13481,7 @@ const hu = async (e) => {
|
|
|
13466
13481
|
/* @__PURE__ */ s(
|
|
13467
13482
|
"div",
|
|
13468
13483
|
{
|
|
13469
|
-
className: `sass-com-ja4-journalistInfoLink ${
|
|
13484
|
+
className: `sass-com-ja4-journalistInfoLink ${h}`,
|
|
13470
13485
|
dangerouslySetInnerHTML: {
|
|
13471
13486
|
__html: `${a.JournalistPrefix} <h3>${d ?? "Redaccion"}</h3>`
|
|
13472
13487
|
}
|
|
@@ -13504,7 +13519,7 @@ const hu = async (e) => {
|
|
|
13504
13519
|
url: (e) => `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,
|
|
13505
13520
|
icon: {
|
|
13506
13521
|
outline: (e) => /* @__PURE__ */ s(Es, { className: e, forceSVG: !0 }),
|
|
13507
|
-
solid: (e) => /* @__PURE__ */ s(
|
|
13522
|
+
solid: (e) => /* @__PURE__ */ s(Vt, { className: e, forceSVG: !0 }),
|
|
13508
13523
|
custom: en("/ja-facebook.svg", "Facebook")
|
|
13509
13524
|
}
|
|
13510
13525
|
},
|
|
@@ -13607,13 +13622,13 @@ const gu = async (e) => {
|
|
|
13607
13622
|
EXPERIMENTAL_commentsV2Paths: c
|
|
13608
13623
|
} = I(), l = t.info?.link?.internal ?? "", d = i || (c ?? []).some(
|
|
13609
13624
|
(A) => l === A || l.endsWith(A)
|
|
13610
|
-
), u = me(),
|
|
13611
|
-
(A) => A.internaluser ? `<a href="${
|
|
13612
|
-
).join(", "),
|
|
13625
|
+
), u = me(), h = (A) => `${u}/${e.paths.autor}/${A}`, m = t.authors.map(
|
|
13626
|
+
(A) => A.internaluser ? `<a href="${h(A.name)}">${A.fullname}</a>` : A.fullname
|
|
13627
|
+
).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
13628
|
return t.config?.showauthor && /* @__PURE__ */ s(
|
|
13614
13629
|
"div",
|
|
13615
13630
|
{
|
|
13616
|
-
className: `sass-com-ja5-content sass-journalist-articule-5 ${
|
|
13631
|
+
className: `sass-com-ja5-content sass-journalist-articule-5 ${f}`,
|
|
13617
13632
|
children: /* @__PURE__ */ g("div", { className: "sass-com-ja5-avatarContent", children: [
|
|
13618
13633
|
/* @__PURE__ */ g("div", { className: "sass-com-ja5-socialActionsRow", children: [
|
|
13619
13634
|
/* @__PURE__ */ g("div", { className: "sass-com-ja5-socialActionDiv", children: [
|
|
@@ -13747,7 +13762,7 @@ const gu = async (e) => {
|
|
|
13747
13762
|
{
|
|
13748
13763
|
className: [
|
|
13749
13764
|
"sass-com-ja5-journalistSection",
|
|
13750
|
-
|
|
13765
|
+
f,
|
|
13751
13766
|
t.config?.showtime && "sass-com-ja5-journalistSection--withDate"
|
|
13752
13767
|
].filter(Boolean).join(" "),
|
|
13753
13768
|
children: [
|
|
@@ -13777,7 +13792,7 @@ const gu = async (e) => {
|
|
|
13777
13792
|
/* @__PURE__ */ s(
|
|
13778
13793
|
"div",
|
|
13779
13794
|
{
|
|
13780
|
-
className: `sass-com-ja5-journalistInfoLink ${
|
|
13795
|
+
className: `sass-com-ja5-journalistInfoLink ${f}`,
|
|
13781
13796
|
dangerouslySetInnerHTML: {
|
|
13782
13797
|
__html: `${a.JournalistPrefix} <span class="sass-com-ja5-journalistNames">${m ?? "Redaccion"}</span>`
|
|
13783
13798
|
}
|
|
@@ -13813,24 +13828,24 @@ const gu = async (e) => {
|
|
|
13813
13828
|
), yu = async (e) => {
|
|
13814
13829
|
const { PUBLIC_IS_OFFLINE: t } = I();
|
|
13815
13830
|
if (!(t === "true")) {
|
|
13816
|
-
const d = /<img\b[^>]*\bsrc=["']([^"']+)["']/g, u = [...e.matchAll(d)],
|
|
13817
|
-
for (const
|
|
13818
|
-
const p =
|
|
13831
|
+
const d = /<img\b[^>]*\bsrc=["']([^"']+)["']/g, u = [...e.matchAll(d)], h = {};
|
|
13832
|
+
for (const f of u) {
|
|
13833
|
+
const p = f[1] ?? "", b = e.includes(p) ? { url: p } : null;
|
|
13819
13834
|
if (b) {
|
|
13820
13835
|
const A = await fe(b.url) || "";
|
|
13821
|
-
|
|
13836
|
+
h[p] = A;
|
|
13822
13837
|
}
|
|
13823
13838
|
}
|
|
13824
13839
|
const m = {}, w = /<figure\b[^>]*>[\s\S]*?<\/figure>/g;
|
|
13825
|
-
for (const
|
|
13826
|
-
const p =
|
|
13840
|
+
for (const f of [...e.matchAll(w)]) {
|
|
13841
|
+
const p = f[0].match(/<img\b[^>]*\bsrc=["']([^"']+)["']/), b = f[0].match(/<figcaption[^>]*>([\s\S]*?)<\/figcaption>/i);
|
|
13827
13842
|
p?.[1] && b?.[1] && (m[p[1]] = b[1].replace(/<[^>]+>/g, "").trim());
|
|
13828
13843
|
}
|
|
13829
13844
|
return e.replace(
|
|
13830
13845
|
d,
|
|
13831
|
-
(
|
|
13832
|
-
const b =
|
|
13833
|
-
return `<img fetchPriority='low' loading='lazy' alt='${(m[p] || b?.[1] || "imagen").replace(/'/g, "'")}' src="${
|
|
13846
|
+
(f, p) => {
|
|
13847
|
+
const b = f.match(/\btitle=["']([^"']*)["']/);
|
|
13848
|
+
return `<img fetchPriority='low' loading='lazy' alt='${(m[p] || b?.[1] || "imagen").replace(/'/g, "'")}' src="${h[p] || p}"`;
|
|
13834
13849
|
}
|
|
13835
13850
|
);
|
|
13836
13851
|
}
|
|
@@ -13841,9 +13856,9 @@ const gu = async (e) => {
|
|
|
13841
13856
|
i = a;
|
|
13842
13857
|
const d = o.exec(a);
|
|
13843
13858
|
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,
|
|
13859
|
+
const u = d[0], h = d[1] ?? "";
|
|
13860
|
+
r.add(h);
|
|
13861
|
+
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
13862
|
let N = 0, C = 0;
|
|
13848
13863
|
if (v) {
|
|
13849
13864
|
const z = v.match(/w:(\d+)/), O = v.match(/h:(\d+)/);
|
|
@@ -13854,13 +13869,13 @@ const gu = async (e) => {
|
|
|
13854
13869
|
sizes: [
|
|
13855
13870
|
{
|
|
13856
13871
|
scale: v || `w:${N},h:${C},t:2`,
|
|
13857
|
-
url:
|
|
13872
|
+
url: h,
|
|
13858
13873
|
width: N,
|
|
13859
13874
|
height: C
|
|
13860
13875
|
}
|
|
13861
13876
|
],
|
|
13862
13877
|
original: {
|
|
13863
|
-
url:
|
|
13878
|
+
url: h.split("?")[0],
|
|
13864
13879
|
width: N,
|
|
13865
13880
|
height: C
|
|
13866
13881
|
},
|
|
@@ -13875,9 +13890,9 @@ const gu = async (e) => {
|
|
|
13875
13890
|
}
|
|
13876
13891
|
const c = /<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g, l = [...a.matchAll(c)];
|
|
13877
13892
|
for (const d of l) {
|
|
13878
|
-
const u = d[0],
|
|
13879
|
-
if (r.has(
|
|
13880
|
-
const m = u.match(/\balt=["']([^"']*)["']/), w = u.match(/\btitle=["']([^"']*)["']/),
|
|
13893
|
+
const u = d[0], h = d[1] ?? "";
|
|
13894
|
+
if (r.has(h)) continue;
|
|
13895
|
+
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
13896
|
let A = 0, v = 0;
|
|
13882
13897
|
if (b) {
|
|
13883
13898
|
const T = b.match(/w:(\d+)/), R = b.match(/h:(\d+)/);
|
|
@@ -13888,18 +13903,18 @@ const gu = async (e) => {
|
|
|
13888
13903
|
sizes: [
|
|
13889
13904
|
{
|
|
13890
13905
|
scale: b || `w:${A},h:${v},t:2`,
|
|
13891
|
-
url:
|
|
13906
|
+
url: h,
|
|
13892
13907
|
width: A,
|
|
13893
13908
|
height: v
|
|
13894
13909
|
}
|
|
13895
13910
|
],
|
|
13896
13911
|
original: {
|
|
13897
|
-
url:
|
|
13912
|
+
url: h.split("?")[0],
|
|
13898
13913
|
width: A,
|
|
13899
13914
|
height: v
|
|
13900
13915
|
},
|
|
13901
13916
|
copyright: !1,
|
|
13902
|
-
description:
|
|
13917
|
+
description: f,
|
|
13903
13918
|
photographer: !1
|
|
13904
13919
|
},
|
|
13905
13920
|
isLarge: !1,
|
|
@@ -13928,10 +13943,10 @@ const gu = async (e) => {
|
|
|
13928
13943
|
}
|
|
13929
13944
|
}
|
|
13930
13945
|
let l = 0, d = e;
|
|
13931
|
-
const u = /<(p|li|ul|ol)>\s*<\/\1>/gi,
|
|
13946
|
+
const u = /<(p|li|ul|ol)>\s*<\/\1>/gi, h = /<(p|li|ul|ol)>(?:&(?:nbsp|#160|ensp|emsp|#8194|#8195);)*?<\/\1>/gi;
|
|
13932
13947
|
do
|
|
13933
|
-
d = e.replace(u, "").replace(
|
|
13934
|
-
while (d.match(u) || d.match(
|
|
13948
|
+
d = e.replace(u, "").replace(h, "");
|
|
13949
|
+
while (d.match(u) || d.match(h));
|
|
13935
13950
|
return d = d.replace(
|
|
13936
13951
|
/<p\b[^>]*?>[\s\S]*?<\/p>|<(ul|ol)[^>]*?>[\s\S]*?<\/\1>/g,
|
|
13937
13952
|
(m) => {
|
|
@@ -13955,13 +13970,13 @@ const gu = async (e) => {
|
|
|
13955
13970
|
for (const o of n) {
|
|
13956
13971
|
const [i, c = ""] = o, l = o.index, d = l + i.length;
|
|
13957
13972
|
a += e.slice(r, l);
|
|
13958
|
-
const
|
|
13959
|
-
(
|
|
13973
|
+
const h = [...c.matchAll(/data-src="([^"]+)"/g)].map(
|
|
13974
|
+
(f) => f[1]
|
|
13960
13975
|
).map(
|
|
13961
|
-
(
|
|
13976
|
+
(f) => `<img fetchPriority='low' loading='lazy' alt='imagen' src="${f}" class="carrusel-note-item" width="800" height="469"/>`
|
|
13962
13977
|
), m = "gallery_embeded" + l.toString(), w = lu({
|
|
13963
13978
|
slot_id: m,
|
|
13964
|
-
children:
|
|
13979
|
+
children: h,
|
|
13965
13980
|
visibleItems: 1,
|
|
13966
13981
|
cardGap: 0
|
|
13967
13982
|
});
|
|
@@ -13977,7 +13992,7 @@ const gu = async (e) => {
|
|
|
13977
13992
|
(v) => l.includes(v?.[0]?.info.link.internal || "")
|
|
13978
13993
|
);
|
|
13979
13994
|
if (!d || !d[0]) continue;
|
|
13980
|
-
const u = d[0].preview?.sizes?.[0],
|
|
13995
|
+
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
13996
|
d[0].preview?.sizes?.map(async (v, N) => {
|
|
13982
13997
|
const C = await fe(v.url);
|
|
13983
13998
|
return N === 0 ? `<source srcset="${C}" media="(width >= 900px)"/>` : `<source srcset="${C}" media="(width < 900px)"/>`;
|
|
@@ -13986,11 +14001,11 @@ const gu = async (e) => {
|
|
|
13986
14001
|
<span data-src="${l}">
|
|
13987
14002
|
<picture style='display: flex'>
|
|
13988
14003
|
${b}
|
|
13989
|
-
<img fetchPriority='low' loading='lazy' src="${
|
|
14004
|
+
<img fetchPriority='low' loading='lazy' src="${h}" alt="${String(t.noteRelatedImageAlt ?? "")} ${p}" />
|
|
13990
14005
|
</picture>
|
|
13991
14006
|
<div>
|
|
13992
14007
|
<a class="section" href="${m}">${w}</a>
|
|
13993
|
-
<a class="title" href="${
|
|
14008
|
+
<a class="title" href="${f}">${p}</a>
|
|
13994
14009
|
</div>
|
|
13995
14010
|
</span>
|
|
13996
14011
|
`;
|
|
@@ -14015,11 +14030,11 @@ async function Su(e, t) {
|
|
|
14015
14030
|
}
|
|
14016
14031
|
A !== -1 && A < v ? (l += 1, d = A + 4) : (l -= 1, d = v + 6);
|
|
14017
14032
|
}
|
|
14018
|
-
const
|
|
14033
|
+
const h = d, m = e.slice(i, h);
|
|
14019
14034
|
let w = null;
|
|
14020
|
-
const
|
|
14035
|
+
const f = /<span\b([^>]*)>/gi;
|
|
14021
14036
|
let p;
|
|
14022
|
-
for (; (p =
|
|
14037
|
+
for (; (p = f.exec(m)) !== null; ) {
|
|
14023
14038
|
const A = p[1];
|
|
14024
14039
|
if (!A) break;
|
|
14025
14040
|
if (/data-type\s*=\s*["']?video["']?/i.test(A)) {
|
|
@@ -14080,7 +14095,7 @@ async function Su(e, t) {
|
|
|
14080
14095
|
}
|
|
14081
14096
|
else
|
|
14082
14097
|
b = m;
|
|
14083
|
-
a =
|
|
14098
|
+
a = h, n += b, r.lastIndex = h;
|
|
14084
14099
|
}
|
|
14085
14100
|
return n += e.slice(a), n = Au(n), n;
|
|
14086
14101
|
}
|
|
@@ -14095,17 +14110,17 @@ async function Eu(e) {
|
|
|
14095
14110
|
socials: c,
|
|
14096
14111
|
getVideos: l,
|
|
14097
14112
|
commonServices: d
|
|
14098
|
-
} = e, u = t?.info?.section?.slug,
|
|
14113
|
+
} = e, u = t?.info?.section?.slug, h = u ? { type: "seccion", value: u } : { type: "general" };
|
|
14099
14114
|
let m = t?.body?.rendered ?? "";
|
|
14100
14115
|
m = m.replace(
|
|
14101
14116
|
/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,
|
|
14102
14117
|
""
|
|
14103
|
-
), m = m.replace(/ /g, ""), m = Cu(m, n,
|
|
14118
|
+
), m = m.replace(/ /g, ""), m = Cu(m, n, h), m = Nu(m), m = await yu(m), m = await xu(
|
|
14104
14119
|
m,
|
|
14105
14120
|
e.texts,
|
|
14106
14121
|
a
|
|
14107
14122
|
), m = await Su(m, l), m = wu(m), m = bu(m);
|
|
14108
|
-
const w = t.main.sources ?? [], { NEWS_JOURNALIST_COMPONENT:
|
|
14123
|
+
const w = t.main.sources ?? [], { NEWS_JOURNALIST_COMPONENT: f, CONFIG_blockDefaultTwitterHydrator: p } = I(), b = t.config.articlepreview === at.fotoGaleria && t.hascontent?.hasgalleryimages;
|
|
14109
14124
|
return /* @__PURE__ */ g($, { children: [
|
|
14110
14125
|
o !== "liveblogs" && e.showHeaderImage ? b ? /* @__PURE__ */ s(
|
|
14111
14126
|
cu,
|
|
@@ -14132,8 +14147,8 @@ async function Eu(e) {
|
|
|
14132
14147
|
)
|
|
14133
14148
|
}
|
|
14134
14149
|
),
|
|
14135
|
-
/* @__PURE__ */ s(Ee, { banners: n, name: "block_1", scope:
|
|
14136
|
-
/* @__PURE__ */ s("div", { className: "sass-pg-nrs-journalistArticleContent", children:
|
|
14150
|
+
/* @__PURE__ */ s(Ee, { banners: n, name: "block_1", scope: h }),
|
|
14151
|
+
/* @__PURE__ */ s("div", { className: "sass-pg-nrs-journalistArticleContent", children: f === "op1" ? /* @__PURE__ */ s(
|
|
14137
14152
|
ou,
|
|
14138
14153
|
{
|
|
14139
14154
|
autorIcon: e.autorIcon,
|
|
@@ -14143,7 +14158,7 @@ async function Eu(e) {
|
|
|
14143
14158
|
noteShare: e.noteShare,
|
|
14144
14159
|
paths: e.paths
|
|
14145
14160
|
}
|
|
14146
|
-
) :
|
|
14161
|
+
) : f === "op2" ? /* @__PURE__ */ s(
|
|
14147
14162
|
hu,
|
|
14148
14163
|
{
|
|
14149
14164
|
autorIcon: e.autorIcon,
|
|
@@ -14183,7 +14198,7 @@ async function Eu(e) {
|
|
|
14183
14198
|
slug: o,
|
|
14184
14199
|
getVideos: l,
|
|
14185
14200
|
newsRelatedListResponses: r ?? [],
|
|
14186
|
-
scope:
|
|
14201
|
+
scope: h
|
|
14187
14202
|
}
|
|
14188
14203
|
),
|
|
14189
14204
|
w.length > 0 && /* @__PURE__ */ g("div", { className: "sass-pg-nrs-noteSource", children: [
|
|
@@ -14212,10 +14227,10 @@ const Tu = (e) => {
|
|
|
14212
14227
|
news: l,
|
|
14213
14228
|
newsRelatedResponses: d = [],
|
|
14214
14229
|
newsRelatedListResponses: u = [],
|
|
14215
|
-
itemList:
|
|
14230
|
+
itemList: h = [],
|
|
14216
14231
|
socials: m,
|
|
14217
14232
|
getVideos: w,
|
|
14218
|
-
scope:
|
|
14233
|
+
scope: f,
|
|
14219
14234
|
customSummary: p,
|
|
14220
14235
|
subtitleBeforeImage: b,
|
|
14221
14236
|
headerSectionStyles: A
|
|
@@ -14232,7 +14247,7 @@ const Tu = (e) => {
|
|
|
14232
14247
|
banners: c,
|
|
14233
14248
|
newsRelatedResponses: d,
|
|
14234
14249
|
newsRelatedListResponses: u,
|
|
14235
|
-
itemList:
|
|
14250
|
+
itemList: h,
|
|
14236
14251
|
slug: r,
|
|
14237
14252
|
getVideos: w,
|
|
14238
14253
|
noteShare: o,
|
|
@@ -14244,7 +14259,7 @@ const Tu = (e) => {
|
|
|
14244
14259
|
headerSectionStyles: A
|
|
14245
14260
|
}
|
|
14246
14261
|
),
|
|
14247
|
-
/* @__PURE__ */ s(Ee, { banners: c ?? [], name: "block_3", scope:
|
|
14262
|
+
/* @__PURE__ */ s(Ee, { banners: c ?? [], name: "block_3", scope: f })
|
|
14248
14263
|
] });
|
|
14249
14264
|
}, $1 = async (e) => {
|
|
14250
14265
|
const {
|
|
@@ -14259,7 +14274,7 @@ const Tu = (e) => {
|
|
|
14259
14274
|
getVideos: d
|
|
14260
14275
|
} = e;
|
|
14261
14276
|
if (!r || !r[0]) return;
|
|
14262
|
-
const u = r[0]?.info?.section?.slug,
|
|
14277
|
+
const u = r[0]?.info?.section?.slug, h = u ? { type: "seccion", value: u } : { type: "general" };
|
|
14263
14278
|
return /* @__PURE__ */ g($, { children: [
|
|
14264
14279
|
/* @__PURE__ */ s(
|
|
14265
14280
|
Yd,
|
|
@@ -14271,7 +14286,7 @@ const Tu = (e) => {
|
|
|
14271
14286
|
banners: e.banners,
|
|
14272
14287
|
headerSectionStyles: e.headerSectionStyles,
|
|
14273
14288
|
newsDescriptionSectionTag: e.newsDescriptionSectionTag,
|
|
14274
|
-
scope:
|
|
14289
|
+
scope: h,
|
|
14275
14290
|
subtitleBeforeImage: e.subtitleBeforeImage
|
|
14276
14291
|
}
|
|
14277
14292
|
),
|
|
@@ -14284,8 +14299,8 @@ const Tu = (e) => {
|
|
|
14284
14299
|
itemList: c,
|
|
14285
14300
|
ranking: t,
|
|
14286
14301
|
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:
|
|
14302
|
+
bannerTop: /* @__PURE__ */ s(Ee, { banners: n ?? [], name: "right_1", scope: h }),
|
|
14303
|
+
banner: /* @__PURE__ */ s(Ee, { banners: n ?? [], name: "right_2", scope: h }),
|
|
14289
14304
|
complement: /* @__PURE__ */ g("div", { id: "comentarios", className: "sass-pg-news-complementContent", suppressHydrationWarning: !0, children: [
|
|
14290
14305
|
a.length > 0 && /* @__PURE__ */ s(
|
|
14291
14306
|
Ed,
|
|
@@ -14329,7 +14344,7 @@ const Tu = (e) => {
|
|
|
14329
14344
|
noteShare: e.noteShare,
|
|
14330
14345
|
paths: e.paths,
|
|
14331
14346
|
commonServices: e.commonServices,
|
|
14332
|
-
scope:
|
|
14347
|
+
scope: h,
|
|
14333
14348
|
customSummary: e.customSummary,
|
|
14334
14349
|
subtitleBeforeImage: e.subtitleBeforeImage,
|
|
14335
14350
|
headerSectionStyles: e.headerSectionStyles
|
|
@@ -14374,7 +14389,7 @@ const Tu = (e) => {
|
|
|
14374
14389
|
/* @__PURE__ */ s("button", { className: "sass-pg-buscar-buttonStyled", type: "submit", children: /* @__PURE__ */ s(Iu, { className: "sass-pg-buscar-searchStyled" }) })
|
|
14375
14390
|
] })
|
|
14376
14391
|
}
|
|
14377
|
-
),
|
|
14392
|
+
), qt = ({ className: e }) => /* @__PURE__ */ s(
|
|
14378
14393
|
"svg",
|
|
14379
14394
|
{
|
|
14380
14395
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -14410,7 +14425,7 @@ const Tu = (e) => {
|
|
|
14410
14425
|
errorPasswordInvalid: "La contraseña no es válida",
|
|
14411
14426
|
errorVerificationCodeRequired: "Debes ingresar el código de verificación",
|
|
14412
14427
|
errorUnexpected: "Error inesperado"
|
|
14413
|
-
},
|
|
14428
|
+
}, Tt = {
|
|
14414
14429
|
email: { label: "Email" },
|
|
14415
14430
|
given_name: { label: "Nombre" },
|
|
14416
14431
|
family_name: { label: "Apellido" },
|
|
@@ -14419,11 +14434,11 @@ const Tu = (e) => {
|
|
|
14419
14434
|
};
|
|
14420
14435
|
function Lu(e) {
|
|
14421
14436
|
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 ??
|
|
14437
|
+
email: { label: e?.email ?? Tt.email.label, required: !0 },
|
|
14438
|
+
given_name: { label: e?.given_name ?? Tt.given_name.label, required: !0 },
|
|
14439
|
+
family_name: { label: e?.family_name ?? Tt.family_name.label, required: !0 },
|
|
14440
|
+
password: { label: e?.password ?? Tt.password.label, required: !0 },
|
|
14441
|
+
confirmPassword: { label: e?.confirmPassword ?? Tt.confirmPassword.label, required: !0 }
|
|
14427
14442
|
};
|
|
14428
14443
|
}
|
|
14429
14444
|
const Oe = [
|
|
@@ -14440,10 +14455,10 @@ const Oe = [
|
|
|
14440
14455
|
{ label: "Usa un símbolo", test: Oe[4] }
|
|
14441
14456
|
];
|
|
14442
14457
|
function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
14443
|
-
const a = { ...Uu, ...e?.comentarios }, r =
|
|
14458
|
+
const a = { ...Uu, ...e?.comentarios }, r = Ot(
|
|
14444
14459
|
() => Lu(e?.comentarios?.registerForm),
|
|
14445
14460
|
[e?.comentarios?.registerForm]
|
|
14446
|
-
), o =
|
|
14461
|
+
), o = Ot(
|
|
14447
14462
|
() => [
|
|
14448
14463
|
{ label: a.passwordRuleMinLength, test: Oe[0] },
|
|
14449
14464
|
{ label: a.passwordRuleNumber, test: Oe[1] },
|
|
@@ -14452,7 +14467,7 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14452
14467
|
{ label: a.passwordRuleSymbol, test: Oe[4] }
|
|
14453
14468
|
],
|
|
14454
14469
|
[a.passwordRuleMinLength, a.passwordRuleNumber, a.passwordRuleLowercase, a.passwordRuleUppercase, a.passwordRuleSymbol]
|
|
14455
|
-
), [i, c] = V({}), [l, d] = V(!1), [u,
|
|
14470
|
+
), [i, c] = V({}), [l, d] = V(!1), [u, h] = V(!1), [m, w] = V(null), [f, p] = V(
|
|
14456
14471
|
"register"
|
|
14457
14472
|
), b = async () => {
|
|
14458
14473
|
if (t.PUBLIC_ENV === "local") {
|
|
@@ -14464,13 +14479,13 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14464
14479
|
}, A = (y, S) => {
|
|
14465
14480
|
c((T) => ({ ...T, [y]: S }));
|
|
14466
14481
|
}, v = async (y) => {
|
|
14467
|
-
y.preventDefault(), w(null),
|
|
14482
|
+
y.preventDefault(), w(null), h(!0);
|
|
14468
14483
|
try {
|
|
14469
14484
|
const S = Object.keys(r).filter((F) => !["username", "password", "confirmPassword"].includes(F)).map((F) => ({ Name: F, Value: i[F] }));
|
|
14470
14485
|
if (S.some((F) => {
|
|
14471
14486
|
if (!F.Value || F.Value.trim() === "") return !0;
|
|
14472
14487
|
}))
|
|
14473
|
-
return
|
|
14488
|
+
return h(!1), w(a.errorCompleteFields);
|
|
14474
14489
|
if (i.password !== i.confirmPassword) {
|
|
14475
14490
|
w(a.errorPasswordMismatch);
|
|
14476
14491
|
return;
|
|
@@ -14515,14 +14530,14 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14515
14530
|
} catch (S) {
|
|
14516
14531
|
console.log(S), w(S?.message || S?.error || a.errorUnexpected);
|
|
14517
14532
|
} finally {
|
|
14518
|
-
|
|
14533
|
+
h(!1);
|
|
14519
14534
|
}
|
|
14520
14535
|
}, N = async (y) => {
|
|
14521
14536
|
if (y.preventDefault(), !i.confirmationCode) {
|
|
14522
14537
|
w(a.errorVerificationCodeRequired);
|
|
14523
14538
|
return;
|
|
14524
14539
|
}
|
|
14525
|
-
w(null),
|
|
14540
|
+
w(null), h(!0);
|
|
14526
14541
|
try {
|
|
14527
14542
|
const S = await fetch("/api/auth/confirm-user", {
|
|
14528
14543
|
method: "POST",
|
|
@@ -14540,11 +14555,11 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14540
14555
|
} catch (S) {
|
|
14541
14556
|
w(S?.message || a.errorUnexpected);
|
|
14542
14557
|
} finally {
|
|
14543
|
-
|
|
14558
|
+
h(!1);
|
|
14544
14559
|
}
|
|
14545
14560
|
}, C = i.password || "";
|
|
14546
14561
|
return /* @__PURE__ */ g($, { children: [
|
|
14547
|
-
|
|
14562
|
+
f === "register" && /* @__PURE__ */ g($, { children: [
|
|
14548
14563
|
/* @__PURE__ */ g("button", { onClick: b, className: "sass-pg-login-google", children: [
|
|
14549
14564
|
/* @__PURE__ */ s(
|
|
14550
14565
|
"img",
|
|
@@ -14619,12 +14634,12 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14619
14634
|
" ",
|
|
14620
14635
|
a.termsSuffix
|
|
14621
14636
|
] }),
|
|
14622
|
-
/* @__PURE__ */ s("button", { type: "submit", className: "sass-pg-login-primary", disabled: u, children: u ? /* @__PURE__ */ s(
|
|
14637
|
+
/* @__PURE__ */ s("button", { type: "submit", className: "sass-pg-login-primary", disabled: u, children: u ? /* @__PURE__ */ s(qt, {}) : a.createAccountButton })
|
|
14623
14638
|
]
|
|
14624
14639
|
}
|
|
14625
14640
|
)
|
|
14626
14641
|
] }),
|
|
14627
|
-
|
|
14642
|
+
f === "confirm" && /* @__PURE__ */ g(
|
|
14628
14643
|
"form",
|
|
14629
14644
|
{
|
|
14630
14645
|
onSubmit: N,
|
|
@@ -14646,7 +14661,7 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14646
14661
|
)
|
|
14647
14662
|
] }),
|
|
14648
14663
|
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(
|
|
14664
|
+
/* @__PURE__ */ s("button", { type: "submit", className: "sass-pg-login-primary", disabled: u, children: u ? /* @__PURE__ */ s(qt, {}) : a.confirmAccountButton }),
|
|
14650
14665
|
/* @__PURE__ */ g("p", { className: "sass-pg-login-switch", children: [
|
|
14651
14666
|
a.alreadyConfirmedText,
|
|
14652
14667
|
/* @__PURE__ */ s("a", { className: "sass-pg-login-toRegister", href: "./login", children: a.loginButtonText })
|
|
@@ -14654,7 +14669,7 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14654
14669
|
]
|
|
14655
14670
|
}
|
|
14656
14671
|
),
|
|
14657
|
-
|
|
14672
|
+
f === "success" && /* @__PURE__ */ g("form", { className: "sass-pg-login-form", children: [
|
|
14658
14673
|
/* @__PURE__ */ g("div", { className: "sass-pg-login-successContainer", children: [
|
|
14659
14674
|
/* @__PURE__ */ s("div", { className: "sass-pg-login-thumbsUp", children: /* @__PURE__ */ s(
|
|
14660
14675
|
"svg",
|
|
@@ -14679,7 +14694,7 @@ function Y1({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14679
14694
|
] }),
|
|
14680
14695
|
/* @__PURE__ */ s("a", { href: "./login", type: "submit", className: "sass-pg-login-primary", children: a.loginButtonText })
|
|
14681
14696
|
] }),
|
|
14682
|
-
|
|
14697
|
+
f === "register" && /* @__PURE__ */ g("p", { className: "sass-pg-login-switch", children: [
|
|
14683
14698
|
a.alreadyHasAccountText,
|
|
14684
14699
|
/* @__PURE__ */ s("a", { className: "sass-pg-login-toRegister", href: "./login", children: a.loginButtonText })
|
|
14685
14700
|
] })
|
|
@@ -14713,7 +14728,7 @@ function K1({
|
|
|
14713
14728
|
API_ENV: e,
|
|
14714
14729
|
texts: t
|
|
14715
14730
|
}) {
|
|
14716
|
-
const n = { ...Ru, ...t?.comentarios }, [a, r] = V("login"), [o, i] = V(""), [c, l] = V(""), [d, u] = V(""), [
|
|
14731
|
+
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
14732
|
he.useEffect(() => {
|
|
14718
14733
|
if (typeof window > "u") return;
|
|
14719
14734
|
window.location.hash.includes("forgot") && a === "login" && r("forgot"), a === "login" && S();
|
|
@@ -14820,23 +14835,23 @@ function K1({
|
|
|
14820
14835
|
{
|
|
14821
14836
|
email: o,
|
|
14822
14837
|
confirmationCode: d,
|
|
14823
|
-
newPassword:
|
|
14838
|
+
newPassword: h,
|
|
14824
14839
|
confirmNewPassword: w,
|
|
14825
14840
|
showPassword: p,
|
|
14826
14841
|
loading: A,
|
|
14827
14842
|
error: N,
|
|
14828
14843
|
setConfirmationCode: u,
|
|
14829
14844
|
setNewPassword: m,
|
|
14830
|
-
setConfirmNewPassword:
|
|
14845
|
+
setConfirmNewPassword: f,
|
|
14831
14846
|
setShowPassword: b,
|
|
14832
14847
|
onSubmit: async (P) => {
|
|
14833
14848
|
if (A) return;
|
|
14834
|
-
if (P.preventDefault(),
|
|
14849
|
+
if (P.preventDefault(), h !== w) {
|
|
14835
14850
|
C("Las contraseñas no coinciden");
|
|
14836
14851
|
return;
|
|
14837
14852
|
}
|
|
14838
14853
|
if (Gr.some(
|
|
14839
|
-
(Q) => !Q.test(
|
|
14854
|
+
(Q) => !Q.test(h)
|
|
14840
14855
|
)) {
|
|
14841
14856
|
C("La contraseña no cumple con los requisitos");
|
|
14842
14857
|
return;
|
|
@@ -14846,7 +14861,7 @@ function K1({
|
|
|
14846
14861
|
const Q = await fetch("/api/auth/confirm-forgot-password", {
|
|
14847
14862
|
method: "POST",
|
|
14848
14863
|
headers: { "Content-Type": "application/json" },
|
|
14849
|
-
body: JSON.stringify({ email: o, code: d, newPassword:
|
|
14864
|
+
body: JSON.stringify({ email: o, code: d, newPassword: h })
|
|
14850
14865
|
});
|
|
14851
14866
|
if (!Q.ok) {
|
|
14852
14867
|
const B = await Q.json().catch(() => ({}));
|
|
@@ -14888,7 +14903,7 @@ function Pu({
|
|
|
14888
14903
|
onSubmit: l,
|
|
14889
14904
|
onForgot: d,
|
|
14890
14905
|
handleGoogleLogin: u,
|
|
14891
|
-
t:
|
|
14906
|
+
t: h
|
|
14892
14907
|
}) {
|
|
14893
14908
|
return /* @__PURE__ */ g($, { children: [
|
|
14894
14909
|
/* @__PURE__ */ g("button", { onClick: u, className: "sass-pg-login-google", children: [
|
|
@@ -14900,7 +14915,7 @@ function Pu({
|
|
|
14900
14915
|
className: "sass-pg-login-googleIcon"
|
|
14901
14916
|
}
|
|
14902
14917
|
),
|
|
14903
|
-
/* @__PURE__ */ s("span", { children:
|
|
14918
|
+
/* @__PURE__ */ s("span", { children: h.GoogleButtonText })
|
|
14904
14919
|
] }),
|
|
14905
14920
|
/* @__PURE__ */ s("div", { className: "sass-pg-login-divider", children: /* @__PURE__ */ s("span", { children: "o" }) }),
|
|
14906
14921
|
/* @__PURE__ */ g(
|
|
@@ -14911,7 +14926,7 @@ function Pu({
|
|
|
14911
14926
|
"data-error": r ? "true" : "false",
|
|
14912
14927
|
children: [
|
|
14913
14928
|
/* @__PURE__ */ g("div", { className: "sass-pg-login-field", children: [
|
|
14914
|
-
/* @__PURE__ */ s("label", { className: "sass-pg-login-label", children:
|
|
14929
|
+
/* @__PURE__ */ s("label", { className: "sass-pg-login-label", children: h.email }),
|
|
14915
14930
|
/* @__PURE__ */ s(
|
|
14916
14931
|
"input",
|
|
14917
14932
|
{
|
|
@@ -14924,7 +14939,7 @@ function Pu({
|
|
|
14924
14939
|
)
|
|
14925
14940
|
] }),
|
|
14926
14941
|
/* @__PURE__ */ g("div", { className: "sass-pg-login-field", children: [
|
|
14927
|
-
/* @__PURE__ */ s("label", { className: "sass-pg-login-label", children:
|
|
14942
|
+
/* @__PURE__ */ s("label", { className: "sass-pg-login-label", children: h.password }),
|
|
14928
14943
|
/* @__PURE__ */ s(
|
|
14929
14944
|
"input",
|
|
14930
14945
|
{
|
|
@@ -14945,17 +14960,17 @@ function Pu({
|
|
|
14945
14960
|
onChange: (m) => c(m.target.checked)
|
|
14946
14961
|
}
|
|
14947
14962
|
),
|
|
14948
|
-
/* @__PURE__ */ s("label", { htmlFor: "showPasswordLogin", className: "sass-pg-login-checkboxLabel", children:
|
|
14963
|
+
/* @__PURE__ */ s("label", { htmlFor: "showPasswordLogin", className: "sass-pg-login-checkboxLabel", children: h.showPassword })
|
|
14949
14964
|
] })
|
|
14950
14965
|
] }),
|
|
14951
14966
|
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(
|
|
14967
|
+
/* @__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
14968
|
]
|
|
14954
14969
|
}
|
|
14955
14970
|
),
|
|
14956
14971
|
/* @__PURE__ */ g("p", { className: "sass-pg-login-switch", children: [
|
|
14957
|
-
|
|
14958
|
-
/* @__PURE__ */ s("a", { className: "sass-pg-login-toRegister", href: "./register", children:
|
|
14972
|
+
h.noAccountText,
|
|
14973
|
+
/* @__PURE__ */ s("a", { className: "sass-pg-login-toRegister", href: "./register", children: h.registerButtonText })
|
|
14959
14974
|
] }),
|
|
14960
14975
|
/* @__PURE__ */ s(
|
|
14961
14976
|
"button",
|
|
@@ -14963,7 +14978,7 @@ function Pu({
|
|
|
14963
14978
|
type: "button",
|
|
14964
14979
|
className: "sass-pg-login-forgotPassword",
|
|
14965
14980
|
onClick: d,
|
|
14966
|
-
children:
|
|
14981
|
+
children: h.forgotPasswordText
|
|
14967
14982
|
}
|
|
14968
14983
|
)
|
|
14969
14984
|
] });
|
|
@@ -15000,7 +15015,7 @@ function Ou({
|
|
|
15000
15015
|
)
|
|
15001
15016
|
] }),
|
|
15002
15017
|
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(
|
|
15018
|
+
/* @__PURE__ */ s("button", { type: "submit", className: "sass-pg-login-primary", disabled: n, children: n ? /* @__PURE__ */ s(qt, {}) : i.sendCodeButton }),
|
|
15004
15019
|
/* @__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
15020
|
]
|
|
15006
15021
|
}
|
|
@@ -15029,19 +15044,19 @@ function Mu({
|
|
|
15029
15044
|
setNewPassword: l,
|
|
15030
15045
|
setConfirmNewPassword: d,
|
|
15031
15046
|
setShowPassword: u,
|
|
15032
|
-
onSubmit:
|
|
15047
|
+
onSubmit: h,
|
|
15033
15048
|
onBack: m,
|
|
15034
15049
|
t: w
|
|
15035
15050
|
}) {
|
|
15036
|
-
const
|
|
15051
|
+
const f = w.changePasswordMessage.replace("{{email}}", Bu(e));
|
|
15037
15052
|
return /* @__PURE__ */ g(
|
|
15038
15053
|
"form",
|
|
15039
15054
|
{
|
|
15040
|
-
onSubmit:
|
|
15055
|
+
onSubmit: h,
|
|
15041
15056
|
className: "sass-pg-login-form",
|
|
15042
15057
|
"data-error": i ? "true" : "false",
|
|
15043
15058
|
children: [
|
|
15044
|
-
/* @__PURE__ */ s("p", { className: "sass-pg-login-message", children:
|
|
15059
|
+
/* @__PURE__ */ s("p", { className: "sass-pg-login-message", children: f }),
|
|
15045
15060
|
/* @__PURE__ */ g("ul", { className: "sass-pg-login-formUl", children: [
|
|
15046
15061
|
/* @__PURE__ */ g("div", { className: "sass-pg-login-field", children: [
|
|
15047
15062
|
/* @__PURE__ */ s("label", { className: "sass-pg-login-label", children: w.verificationCodeLabel }),
|
|
@@ -15118,7 +15133,7 @@ function Mu({
|
|
|
15118
15133
|
className: "sass-pg-login-primary",
|
|
15119
15134
|
style: { maxWidth: o ? "revert-layer" : "fit-content" },
|
|
15120
15135
|
disabled: o,
|
|
15121
|
-
children: o ? /* @__PURE__ */ s(
|
|
15136
|
+
children: o ? /* @__PURE__ */ s(qt, {}) : w.changePasswordButton
|
|
15122
15137
|
}
|
|
15123
15138
|
),
|
|
15124
15139
|
/* @__PURE__ */ s("p", { className: "sass-pg-login-switch", children: /* @__PURE__ */ s("button", { type: "button", onClick: m, children: w.backButton }) })
|
|
@@ -15146,10 +15161,10 @@ function J1({ containerId: e, containerId2: t }) {
|
|
|
15146
15161
|
if (!a && !r) return;
|
|
15147
15162
|
const o = a?.querySelectorAll("script[src]") ?? [], i = r?.querySelectorAll("script[src]") ?? [];
|
|
15148
15163
|
[...o, ...i].forEach((u) => {
|
|
15149
|
-
const
|
|
15164
|
+
const h = document.createElement("script");
|
|
15150
15165
|
Array.from(u.attributes).forEach((m) => {
|
|
15151
|
-
|
|
15152
|
-
}), u.replaceWith(
|
|
15166
|
+
h.setAttribute(m.name, m.value);
|
|
15167
|
+
}), u.replaceWith(h);
|
|
15153
15168
|
});
|
|
15154
15169
|
const l = document.querySelectorAll(
|
|
15155
15170
|
'script[src*="platform.twitter.com/widgets.js"]'
|
|
@@ -15179,7 +15194,7 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15179
15194
|
hasShadow: a = !1,
|
|
15180
15195
|
BackDropAuxHeigthMobile: r
|
|
15181
15196
|
//isVisible,
|
|
15182
|
-
} = e, o = Ur(), i =
|
|
15197
|
+
} = e, o = Ur(), i = Ot(() => {
|
|
15183
15198
|
const m = e?.preview?.sizes;
|
|
15184
15199
|
if (m && Array.isArray(m) && m.length > 0) return m;
|
|
15185
15200
|
const w = e?.preview?.original;
|
|
@@ -15187,7 +15202,7 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15187
15202
|
}, [e?.preview?.sizes, e?.preview?.original]);
|
|
15188
15203
|
if (!i.length || !i[0]?.url || i[0]?.url === "")
|
|
15189
15204
|
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,
|
|
15205
|
+
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
15206
|
return /* @__PURE__ */ s("figure", { className: "sass-com-img-figure", children: /* @__PURE__ */ g("span", { className: "sass-com-img-backdrop", children: [
|
|
15192
15207
|
/* @__PURE__ */ s(
|
|
15193
15208
|
"span",
|
|
@@ -15206,7 +15221,7 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15206
15221
|
loading: "lazy",
|
|
15207
15222
|
className: "sass-com-img-imageStyled",
|
|
15208
15223
|
alt: e.preview?.description || "",
|
|
15209
|
-
src:
|
|
15224
|
+
src: h,
|
|
15210
15225
|
style: {
|
|
15211
15226
|
boxShadow: a ? "0px 4px 8px 0px #00000033" : "0px"
|
|
15212
15227
|
}
|
|
@@ -15319,7 +15334,7 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15319
15334
|
fetchConfig: i,
|
|
15320
15335
|
paths: c
|
|
15321
15336
|
}) => {
|
|
15322
|
-
const l = o.FETCH_SIZE_MORE_NEWS ?? 6, [d, u] = V({ data: Array.from({ length: l }, () => ju) }), [
|
|
15337
|
+
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
15338
|
if (!t) return;
|
|
15324
15339
|
const b = new URLSearchParams({
|
|
15325
15340
|
section: e,
|
|
@@ -15328,7 +15343,7 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15328
15343
|
if (!A.ok)
|
|
15329
15344
|
throw new Error(`HTTP error! status: ${A.status}`);
|
|
15330
15345
|
return await A.json();
|
|
15331
|
-
}, [e, t]),
|
|
15346
|
+
}, [e, t]), f = ue(async () => {
|
|
15332
15347
|
const {
|
|
15333
15348
|
PUBLIC_API_FRONT: b,
|
|
15334
15349
|
PUBLIC_X_SECURITY_TOKEN: A,
|
|
@@ -15360,11 +15375,11 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15360
15375
|
)
|
|
15361
15376
|
};
|
|
15362
15377
|
}, [e, t, o]), p = ue(async () => {
|
|
15363
|
-
if (!(
|
|
15378
|
+
if (!(h || !t)) {
|
|
15364
15379
|
m(!0);
|
|
15365
15380
|
try {
|
|
15366
15381
|
let b;
|
|
15367
|
-
o.PUBLIC_ENV !== "prod" ? b = await w() : b = await
|
|
15382
|
+
o.PUBLIC_ENV !== "prod" ? b = await w() : b = await f(), u({
|
|
15368
15383
|
...b,
|
|
15369
15384
|
data: b.data.slice(0, l)
|
|
15370
15385
|
});
|
|
@@ -15373,11 +15388,11 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15373
15388
|
}
|
|
15374
15389
|
}
|
|
15375
15390
|
}, [
|
|
15376
|
-
|
|
15391
|
+
h,
|
|
15377
15392
|
t,
|
|
15378
15393
|
o.PUBLIC_ENV,
|
|
15379
15394
|
w,
|
|
15380
|
-
|
|
15395
|
+
f
|
|
15381
15396
|
]);
|
|
15382
15397
|
return Me(() => {
|
|
15383
15398
|
a && p();
|
|
@@ -15413,10 +15428,10 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15413
15428
|
authors: l,
|
|
15414
15429
|
info: d,
|
|
15415
15430
|
preview: u,
|
|
15416
|
-
isVideo:
|
|
15431
|
+
isVideo: h = !1,
|
|
15417
15432
|
config: m,
|
|
15418
15433
|
overImage: w = "default",
|
|
15419
|
-
isTitle:
|
|
15434
|
+
isTitle: f = !1,
|
|
15420
15435
|
isLarge: p = !1,
|
|
15421
15436
|
keywords: b
|
|
15422
15437
|
} = o;
|
|
@@ -15440,7 +15455,7 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15440
15455
|
isVisible: e.isVisible,
|
|
15441
15456
|
preview: u,
|
|
15442
15457
|
rounded: e.rounded,
|
|
15443
|
-
isVideo:
|
|
15458
|
+
isVideo: h,
|
|
15444
15459
|
isLarge: p,
|
|
15445
15460
|
API_ENV: e.API_ENV,
|
|
15446
15461
|
getImageUrl: e.getImageUrl
|
|
@@ -15459,7 +15474,7 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15459
15474
|
share: e.share,
|
|
15460
15475
|
config: m,
|
|
15461
15476
|
overImage: w,
|
|
15462
|
-
isTitle:
|
|
15477
|
+
isTitle: f,
|
|
15463
15478
|
paths: e.paths,
|
|
15464
15479
|
isVisible: e.isVisible,
|
|
15465
15480
|
DATE_CONFIG: e.API_ENV,
|
|
@@ -15484,28 +15499,28 @@ const Z1 = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15484
15499
|
info: o
|
|
15485
15500
|
} = e, c = (() => {
|
|
15486
15501
|
if (!e?.authors || e.authors.length === 0) return "";
|
|
15487
|
-
const u = e.authors[0],
|
|
15502
|
+
const u = e.authors[0], h = ke(
|
|
15488
15503
|
e.info?.date?.modified,
|
|
15489
15504
|
e.DATE_CONFIG
|
|
15490
15505
|
);
|
|
15491
|
-
return u && e?.config?.showtime && e.config?.showauthor && u.fullname ? `${u.fullname} - ${
|
|
15506
|
+
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
15507
|
})(), l = () => e.main.uppertitle ? /* @__PURE__ */ s("p", { className: "sass-com-nd-uppertitle", title: e.main.uppertitle, children: e.main.uppertitle }) : null;
|
|
15493
15508
|
return /* @__PURE__ */ g("div", { className: "sass-com-nd-boxInformation", children: [
|
|
15494
15509
|
t && /* @__PURE__ */ s(Du, { className: "sass-com-nd-dotStyles" }),
|
|
15495
15510
|
/* @__PURE__ */ s(() => {
|
|
15496
15511
|
if (a && r?.tags?.length && r.tags.length > 0) {
|
|
15497
|
-
const u = r.tags[0],
|
|
15512
|
+
const u = r.tags[0], h = u.name;
|
|
15498
15513
|
return /* @__PURE__ */ g("span", { className: "sass-com-nd-sectionDescriptionContainer", children: [
|
|
15499
15514
|
u.approved ? /* @__PURE__ */ s(
|
|
15500
15515
|
_,
|
|
15501
15516
|
{
|
|
15502
|
-
"aria-label":
|
|
15517
|
+
"aria-label": h,
|
|
15503
15518
|
block_subPublication: e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,
|
|
15504
15519
|
className: "sass-com-nd-sectionDescription",
|
|
15505
15520
|
href: Ke(u, e.paths),
|
|
15506
|
-
children:
|
|
15521
|
+
children: h
|
|
15507
15522
|
}
|
|
15508
|
-
) : /* @__PURE__ */ s("div", { className: "sass-com-nd-sectionDescription", children:
|
|
15523
|
+
) : /* @__PURE__ */ s("div", { className: "sass-com-nd-sectionDescription", children: h }),
|
|
15509
15524
|
l()
|
|
15510
15525
|
] });
|
|
15511
15526
|
} else if (o?.section?.url) {
|
|
@@ -15644,12 +15659,12 @@ async function X1({
|
|
|
15644
15659
|
throw new Error("Token de captcha inválido");
|
|
15645
15660
|
if (!i)
|
|
15646
15661
|
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),
|
|
15662
|
+
const d = `${r}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`, u = encodeURIComponent(a), h = new URLSearchParams({
|
|
15648
15663
|
publication: e,
|
|
15649
15664
|
username: t ?? !1,
|
|
15650
15665
|
id: n,
|
|
15651
15666
|
type: u
|
|
15652
|
-
}), m = `${d}?${
|
|
15667
|
+
}), m = `${d}?${h.toString()}`;
|
|
15653
15668
|
try {
|
|
15654
15669
|
console.log("Reporting comment:", {
|
|
15655
15670
|
publication: e,
|
|
@@ -15677,9 +15692,9 @@ async function X1({
|
|
|
15677
15692
|
throw new Error(`Respuesta inesperada del servidor: ${w.status}`);
|
|
15678
15693
|
} catch (w) {
|
|
15679
15694
|
if (console.error("Error reporting comment:", w), oe.isAxiosError(w)) {
|
|
15680
|
-
const
|
|
15681
|
-
throw
|
|
15682
|
-
p?.error || p?.message || `Error HTTP ${
|
|
15695
|
+
const f = w.response?.status, p = w.response?.data;
|
|
15696
|
+
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(
|
|
15697
|
+
p?.error || p?.message || `Error HTTP ${f}: No se pudo reportar el comentario`
|
|
15683
15698
|
);
|
|
15684
15699
|
}
|
|
15685
15700
|
throw w;
|
|
@@ -15742,7 +15757,7 @@ var xa;
|
|
|
15742
15757
|
function Yu() {
|
|
15743
15758
|
if (xa) return ie;
|
|
15744
15759
|
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,
|
|
15760
|
+
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
15761
|
function N(y) {
|
|
15747
15762
|
if (typeof y == "object" && y !== null) {
|
|
15748
15763
|
var S = y.$$typeof;
|
|
@@ -15754,13 +15769,13 @@ function Yu() {
|
|
|
15754
15769
|
case a:
|
|
15755
15770
|
case o:
|
|
15756
15771
|
case r:
|
|
15757
|
-
case
|
|
15772
|
+
case h:
|
|
15758
15773
|
return y;
|
|
15759
15774
|
default:
|
|
15760
15775
|
switch (y = y && y.$$typeof, y) {
|
|
15761
15776
|
case c:
|
|
15762
15777
|
case u:
|
|
15763
|
-
case
|
|
15778
|
+
case f:
|
|
15764
15779
|
case w:
|
|
15765
15780
|
case i:
|
|
15766
15781
|
return y;
|
|
@@ -15776,7 +15791,7 @@ function Yu() {
|
|
|
15776
15791
|
function C(y) {
|
|
15777
15792
|
return N(y) === d;
|
|
15778
15793
|
}
|
|
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 =
|
|
15794
|
+
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
15795
|
return C(y) || N(y) === l;
|
|
15781
15796
|
}, ie.isConcurrentMode = C, ie.isContextConsumer = function(y) {
|
|
15782
15797
|
return N(y) === c;
|
|
@@ -15789,7 +15804,7 @@ function Yu() {
|
|
|
15789
15804
|
}, ie.isFragment = function(y) {
|
|
15790
15805
|
return N(y) === a;
|
|
15791
15806
|
}, ie.isLazy = function(y) {
|
|
15792
|
-
return N(y) ===
|
|
15807
|
+
return N(y) === f;
|
|
15793
15808
|
}, ie.isMemo = function(y) {
|
|
15794
15809
|
return N(y) === w;
|
|
15795
15810
|
}, ie.isPortal = function(y) {
|
|
@@ -15799,40 +15814,40 @@ function Yu() {
|
|
|
15799
15814
|
}, ie.isStrictMode = function(y) {
|
|
15800
15815
|
return N(y) === r;
|
|
15801
15816
|
}, ie.isSuspense = function(y) {
|
|
15802
|
-
return N(y) ===
|
|
15817
|
+
return N(y) === h;
|
|
15803
15818
|
}, ie.isValidElementType = function(y) {
|
|
15804
|
-
return typeof y == "string" || typeof y == "function" || y === a || y === d || y === o || y === r || y ===
|
|
15819
|
+
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
15820
|
}, ie.typeOf = N, ie;
|
|
15806
15821
|
}
|
|
15807
15822
|
var ce = {};
|
|
15808
15823
|
var Sa;
|
|
15809
15824
|
function Ku() {
|
|
15810
15825
|
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,
|
|
15826
|
+
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
15827
|
function N(D) {
|
|
15813
15828
|
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 ===
|
|
15829
|
+
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
15830
|
}
|
|
15816
15831
|
function C(D) {
|
|
15817
15832
|
if (typeof D == "object" && D !== null) {
|
|
15818
15833
|
var ye = D.$$typeof;
|
|
15819
15834
|
switch (ye) {
|
|
15820
15835
|
case t:
|
|
15821
|
-
var
|
|
15822
|
-
switch (
|
|
15836
|
+
var zt = D.type;
|
|
15837
|
+
switch (zt) {
|
|
15823
15838
|
case l:
|
|
15824
15839
|
case d:
|
|
15825
15840
|
case a:
|
|
15826
15841
|
case o:
|
|
15827
15842
|
case r:
|
|
15828
|
-
case
|
|
15829
|
-
return
|
|
15843
|
+
case h:
|
|
15844
|
+
return zt;
|
|
15830
15845
|
default:
|
|
15831
|
-
var qs =
|
|
15846
|
+
var qs = zt && zt.$$typeof;
|
|
15832
15847
|
switch (qs) {
|
|
15833
15848
|
case c:
|
|
15834
15849
|
case u:
|
|
15835
|
-
case
|
|
15850
|
+
case f:
|
|
15836
15851
|
case w:
|
|
15837
15852
|
case i:
|
|
15838
15853
|
return qs;
|
|
@@ -15845,7 +15860,7 @@ function Ku() {
|
|
|
15845
15860
|
}
|
|
15846
15861
|
}
|
|
15847
15862
|
}
|
|
15848
|
-
var y = l, S = d, T = c, R = i, z = t, O = u, P = a, F =
|
|
15863
|
+
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
15864
|
function Y(D) {
|
|
15850
15865
|
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
15866
|
}
|
|
@@ -15868,7 +15883,7 @@ function Ku() {
|
|
|
15868
15883
|
return C(D) === a;
|
|
15869
15884
|
}
|
|
15870
15885
|
function K(D) {
|
|
15871
|
-
return C(D) ===
|
|
15886
|
+
return C(D) === f;
|
|
15872
15887
|
}
|
|
15873
15888
|
function J(D) {
|
|
15874
15889
|
return C(D) === w;
|
|
@@ -15883,7 +15898,7 @@ function Ku() {
|
|
|
15883
15898
|
return C(D) === r;
|
|
15884
15899
|
}
|
|
15885
15900
|
function de(D) {
|
|
15886
|
-
return C(D) ===
|
|
15901
|
+
return C(D) === h;
|
|
15887
15902
|
}
|
|
15888
15903
|
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
15904
|
})()), ce;
|
|
@@ -15927,8 +15942,8 @@ function Ju() {
|
|
|
15927
15942
|
return $n = r() ? Object.assign : function(o, i) {
|
|
15928
15943
|
for (var c, l = a(o), d, u = 1; u < arguments.length; u++) {
|
|
15929
15944
|
c = Object(arguments[u]);
|
|
15930
|
-
for (var
|
|
15931
|
-
t.call(c,
|
|
15945
|
+
for (var h in c)
|
|
15946
|
+
t.call(c, h) && (l[h] = c[h]);
|
|
15932
15947
|
if (e) {
|
|
15933
15948
|
d = e(c);
|
|
15934
15949
|
for (var m = 0; m < d.length; m++)
|
|
@@ -15970,7 +15985,7 @@ function Zu() {
|
|
|
15970
15985
|
if (process.env.NODE_ENV !== "production") {
|
|
15971
15986
|
for (var u in o)
|
|
15972
15987
|
if (a(o, u)) {
|
|
15973
|
-
var
|
|
15988
|
+
var h;
|
|
15974
15989
|
try {
|
|
15975
15990
|
if (typeof o[u] != "function") {
|
|
15976
15991
|
var m = Error(
|
|
@@ -15978,17 +15993,17 @@ function Zu() {
|
|
|
15978
15993
|
);
|
|
15979
15994
|
throw m.name = "Invariant Violation", m;
|
|
15980
15995
|
}
|
|
15981
|
-
|
|
15982
|
-
} catch (
|
|
15983
|
-
|
|
15996
|
+
h = o[u](i, u, l, c, null, t);
|
|
15997
|
+
} catch (f) {
|
|
15998
|
+
h = f;
|
|
15984
15999
|
}
|
|
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[
|
|
16000
|
+
if (h && !(h instanceof Error) && e(
|
|
16001
|
+
(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)."
|
|
16002
|
+
), h instanceof Error && !(h.message in n)) {
|
|
16003
|
+
n[h.message] = !0;
|
|
15989
16004
|
var w = d ? d() : "";
|
|
15990
16005
|
e(
|
|
15991
|
-
"Failed " + c + " type: " +
|
|
16006
|
+
"Failed " + c + " type: " + h.message + (w ?? "")
|
|
15992
16007
|
);
|
|
15993
16008
|
}
|
|
15994
16009
|
}
|
|
@@ -16017,7 +16032,7 @@ function Xu() {
|
|
|
16017
16032
|
}
|
|
16018
16033
|
return Jn = function(c, l) {
|
|
16019
16034
|
var d = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
16020
|
-
function
|
|
16035
|
+
function h(x) {
|
|
16021
16036
|
var k = x && (d && x[d] || x[u]);
|
|
16022
16037
|
if (typeof k == "function")
|
|
16023
16038
|
return k;
|
|
@@ -16043,7 +16058,7 @@ function Xu() {
|
|
|
16043
16058
|
shape: F,
|
|
16044
16059
|
exact: Q
|
|
16045
16060
|
};
|
|
16046
|
-
function
|
|
16061
|
+
function f(x, k) {
|
|
16047
16062
|
return x === k ? x !== 0 || 1 / x === 1 / k : x !== x && k !== k;
|
|
16048
16063
|
}
|
|
16049
16064
|
function p(x, k) {
|
|
@@ -16147,7 +16162,7 @@ function Xu() {
|
|
|
16147
16162
|
) : o("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
16148
16163
|
function k(q, H, G, W, K) {
|
|
16149
16164
|
for (var J = q[H], ne = 0; ne < x.length; ne++)
|
|
16150
|
-
if (
|
|
16165
|
+
if (f(J, x[ne]))
|
|
16151
16166
|
return null;
|
|
16152
16167
|
var se = JSON.stringify(x, function(de, D) {
|
|
16153
16168
|
var ye = j(D);
|
|
@@ -16260,7 +16275,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
16260
16275
|
return x.every(B);
|
|
16261
16276
|
if (x === null || c(x))
|
|
16262
16277
|
return !0;
|
|
16263
|
-
var k =
|
|
16278
|
+
var k = h(x);
|
|
16264
16279
|
if (k) {
|
|
16265
16280
|
var q = k.call(x), H;
|
|
16266
16281
|
if (k !== x.entries) {
|
|
@@ -16329,8 +16344,8 @@ function em() {
|
|
|
16329
16344
|
function n() {
|
|
16330
16345
|
}
|
|
16331
16346
|
return n.resetWarningCache = t, Zn = function() {
|
|
16332
|
-
function a(i, c, l, d, u,
|
|
16333
|
-
if (
|
|
16347
|
+
function a(i, c, l, d, u, h) {
|
|
16348
|
+
if (h !== e) {
|
|
16334
16349
|
var m = new Error(
|
|
16335
16350
|
"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
16351
|
);
|
|
@@ -16545,30 +16560,30 @@ function om() {
|
|
|
16545
16560
|
type: !0
|
|
16546
16561
|
}, o = {};
|
|
16547
16562
|
o[e.ForwardRef] = a, o[e.Memo] = r;
|
|
16548
|
-
function i(
|
|
16549
|
-
return e.isMemo(
|
|
16563
|
+
function i(f) {
|
|
16564
|
+
return e.isMemo(f) ? r : o[f.$$typeof] || t;
|
|
16550
16565
|
}
|
|
16551
|
-
var c = Object.defineProperty, l = Object.getOwnPropertyNames, d = Object.getOwnPropertySymbols, u = Object.getOwnPropertyDescriptor,
|
|
16552
|
-
function w(
|
|
16566
|
+
var c = Object.defineProperty, l = Object.getOwnPropertyNames, d = Object.getOwnPropertySymbols, u = Object.getOwnPropertyDescriptor, h = Object.getPrototypeOf, m = Object.prototype;
|
|
16567
|
+
function w(f, p, b) {
|
|
16553
16568
|
if (typeof p != "string") {
|
|
16554
16569
|
if (m) {
|
|
16555
|
-
var A =
|
|
16556
|
-
A && A !== m && w(
|
|
16570
|
+
var A = h(p);
|
|
16571
|
+
A && A !== m && w(f, A, b);
|
|
16557
16572
|
}
|
|
16558
16573
|
var v = l(p);
|
|
16559
16574
|
d && (v = v.concat(d(p)));
|
|
16560
|
-
for (var N = i(
|
|
16575
|
+
for (var N = i(f), C = i(p), y = 0; y < v.length; ++y) {
|
|
16561
16576
|
var S = v[y];
|
|
16562
16577
|
if (!n[S] && !(b && b[S]) && !(C && C[S]) && !(N && N[S])) {
|
|
16563
16578
|
var T = u(p, S);
|
|
16564
16579
|
try {
|
|
16565
|
-
c(
|
|
16580
|
+
c(f, S, T);
|
|
16566
16581
|
} catch {
|
|
16567
16582
|
}
|
|
16568
16583
|
}
|
|
16569
16584
|
}
|
|
16570
16585
|
}
|
|
16571
|
-
return
|
|
16586
|
+
return f;
|
|
16572
16587
|
}
|
|
16573
16588
|
return Xn = w, Xn;
|
|
16574
16589
|
}
|
|
@@ -16599,29 +16614,29 @@ function mm(e, t) {
|
|
|
16599
16614
|
return t = t || {}, function(a) {
|
|
16600
16615
|
var r = a.displayName || a.name || "Component", o = /* @__PURE__ */ (function(c) {
|
|
16601
16616
|
dm(l, c);
|
|
16602
|
-
function l(u,
|
|
16617
|
+
function l(u, h) {
|
|
16603
16618
|
var m;
|
|
16604
|
-
return m = c.call(this, u,
|
|
16619
|
+
return m = c.call(this, u, h) || this, m.state = {}, m.__scriptURL = "", m;
|
|
16605
16620
|
}
|
|
16606
16621
|
var d = l.prototype;
|
|
16607
16622
|
return d.asyncScriptLoaderGetScriptLoaderID = function() {
|
|
16608
16623
|
return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + um++), this.__scriptLoaderID;
|
|
16609
16624
|
}, d.setupScriptURL = function() {
|
|
16610
16625
|
return this.__scriptURL = typeof e == "function" ? e() : e, this.__scriptURL;
|
|
16611
|
-
}, d.asyncScriptLoaderHandleLoad = function(
|
|
16626
|
+
}, d.asyncScriptLoaderHandleLoad = function(h) {
|
|
16612
16627
|
var m = this;
|
|
16613
|
-
this.setState(
|
|
16628
|
+
this.setState(h, function() {
|
|
16614
16629
|
return m.props.asyncScriptOnLoad && m.props.asyncScriptOnLoad(m.state);
|
|
16615
16630
|
});
|
|
16616
16631
|
}, d.asyncScriptLoaderTriggerOnScriptLoaded = function() {
|
|
16617
|
-
var
|
|
16618
|
-
if (!
|
|
16632
|
+
var h = Ue[this.__scriptURL];
|
|
16633
|
+
if (!h || !h.loaded)
|
|
16619
16634
|
throw new Error("Script is not loaded.");
|
|
16620
|
-
for (var m in
|
|
16621
|
-
|
|
16635
|
+
for (var m in h.observers)
|
|
16636
|
+
h.observers[m](h);
|
|
16622
16637
|
delete window[t.callbackName];
|
|
16623
16638
|
}, d.componentDidMount = function() {
|
|
16624
|
-
var
|
|
16639
|
+
var h = this, m = this.setupScriptURL(), w = this.asyncScriptLoaderGetScriptLoaderID(), f = t, p = f.globalName, b = f.callbackName, A = f.scriptId;
|
|
16625
16640
|
if (p && typeof window[p] < "u" && (Ue[m] = {
|
|
16626
16641
|
loaded: !0,
|
|
16627
16642
|
observers: {}
|
|
@@ -16632,13 +16647,13 @@ function mm(e, t) {
|
|
|
16632
16647
|
return;
|
|
16633
16648
|
}
|
|
16634
16649
|
v.observers[w] = function(T) {
|
|
16635
|
-
return
|
|
16650
|
+
return h.asyncScriptLoaderHandleLoad(T);
|
|
16636
16651
|
};
|
|
16637
16652
|
return;
|
|
16638
16653
|
}
|
|
16639
16654
|
var N = {};
|
|
16640
16655
|
N[w] = function(T) {
|
|
16641
|
-
return
|
|
16656
|
+
return h.asyncScriptLoaderHandleLoad(T);
|
|
16642
16657
|
}, Ue[m] = {
|
|
16643
16658
|
loaded: !1,
|
|
16644
16659
|
observers: N
|
|
@@ -16656,7 +16671,7 @@ function mm(e, t) {
|
|
|
16656
16671
|
}
|
|
16657
16672
|
};
|
|
16658
16673
|
b && typeof window < "u" && (window[b] = function() {
|
|
16659
|
-
return
|
|
16674
|
+
return h.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
16660
16675
|
}), C.onload = function() {
|
|
16661
16676
|
var T = Ue[m];
|
|
16662
16677
|
T && (T.loaded = !0, S(function(R) {
|
|
@@ -16669,17 +16684,17 @@ function mm(e, t) {
|
|
|
16669
16684
|
}));
|
|
16670
16685
|
}, document.body.appendChild(C);
|
|
16671
16686
|
}, d.componentWillUnmount = function() {
|
|
16672
|
-
var
|
|
16687
|
+
var h = this.__scriptURL;
|
|
16673
16688
|
if (t.removeOnUnmount === !0)
|
|
16674
16689
|
for (var m = document.getElementsByTagName("script"), w = 0; w < m.length; w += 1)
|
|
16675
|
-
m[w].src.indexOf(
|
|
16676
|
-
var
|
|
16677
|
-
|
|
16690
|
+
m[w].src.indexOf(h) > -1 && m[w].parentNode && m[w].parentNode.removeChild(m[w]);
|
|
16691
|
+
var f = Ue[h];
|
|
16692
|
+
f && (delete f.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete Ue[h]);
|
|
16678
16693
|
}, d.render = function() {
|
|
16679
|
-
var
|
|
16694
|
+
var h = t.globalName, m = this.props;
|
|
16680
16695
|
m.asyncScriptOnLoad;
|
|
16681
|
-
var w = m.forwardedRef,
|
|
16682
|
-
return
|
|
16696
|
+
var w = m.forwardedRef, f = lm(m, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
16697
|
+
return h && typeof window < "u" && (f[h] = typeof window[h] < "u" ? window[h] : void 0), f.ref = w, Ye(a, f);
|
|
16683
16698
|
}, l;
|
|
16684
16699
|
})(oo), i = Va(function(c, l) {
|
|
16685
16700
|
return Ye(o, ms({}, c, {
|
|
@@ -16733,9 +16748,9 @@ const zr = mm(fm, {
|
|
|
16733
16748
|
CAPTCHA_KEY_V2: o,
|
|
16734
16749
|
texts: i
|
|
16735
16750
|
}) => {
|
|
16736
|
-
const c = { ...pm, ...i?.comentarios }, l = { ...ls, ...c.reportReasons ?? {} }, [d, u] = V("form"), [
|
|
16751
|
+
const c = { ...pm, ...i?.comentarios }, l = { ...ls, ...c.reportReasons ?? {} }, [d, u] = V("form"), [h, m] = V(
|
|
16737
16752
|
""
|
|
16738
|
-
), [w,
|
|
16753
|
+
), [w, f] = V(""), [p, b] = V(""), A = [
|
|
16739
16754
|
{ id: "spam", label: l.spam },
|
|
16740
16755
|
{ id: "inappropriate", label: l.inappropriate },
|
|
16741
16756
|
{ id: "hate", label: l.hate },
|
|
@@ -16744,12 +16759,12 @@ const zr = mm(fm, {
|
|
|
16744
16759
|
{ id: "intellectual", label: l.intellectual },
|
|
16745
16760
|
{ id: "bullying", label: l.bullying }
|
|
16746
16761
|
], v = async () => {
|
|
16747
|
-
if (!(!
|
|
16762
|
+
if (!(!h || !n)) {
|
|
16748
16763
|
if (Hr(document).includes(n)) {
|
|
16749
|
-
|
|
16764
|
+
f(c.errorAlreadyReported);
|
|
16750
16765
|
return;
|
|
16751
16766
|
}
|
|
16752
|
-
u("loading"),
|
|
16767
|
+
u("loading"), f("");
|
|
16753
16768
|
try {
|
|
16754
16769
|
const y = await (await fetch("/api/comments-report", {
|
|
16755
16770
|
method: "POST",
|
|
@@ -16761,7 +16776,7 @@ const zr = mm(fm, {
|
|
|
16761
16776
|
username: r,
|
|
16762
16777
|
id: n,
|
|
16763
16778
|
captchaToken: p,
|
|
16764
|
-
type: ls[
|
|
16779
|
+
type: ls[h]
|
|
16765
16780
|
// Enviamos el label completo
|
|
16766
16781
|
})
|
|
16767
16782
|
})).json();
|
|
@@ -16772,11 +16787,11 @@ const zr = mm(fm, {
|
|
|
16772
16787
|
else
|
|
16773
16788
|
throw new Error(y.message || c.errorReportComment);
|
|
16774
16789
|
} catch (C) {
|
|
16775
|
-
console.error("Error reporting comment:", C),
|
|
16790
|
+
console.error("Error reporting comment:", C), f(C.message || c.errorReportComment), u("form");
|
|
16776
16791
|
}
|
|
16777
16792
|
}
|
|
16778
16793
|
}, N = () => {
|
|
16779
|
-
u("form"), m(""),
|
|
16794
|
+
u("form"), m(""), f(""), t();
|
|
16780
16795
|
};
|
|
16781
16796
|
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
16797
|
/* @__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 +16805,7 @@ const zr = mm(fm, {
|
|
|
16790
16805
|
type: "radio",
|
|
16791
16806
|
name: "reportReason",
|
|
16792
16807
|
value: C.id,
|
|
16793
|
-
checked:
|
|
16808
|
+
checked: h === C.id,
|
|
16794
16809
|
onChange: (y) => m(y.target.value),
|
|
16795
16810
|
className: "sass-pg-cmt-rp-radioInput"
|
|
16796
16811
|
}
|
|
@@ -16815,7 +16830,7 @@ const zr = mm(fm, {
|
|
|
16815
16830
|
"button",
|
|
16816
16831
|
{
|
|
16817
16832
|
onClick: v,
|
|
16818
|
-
disabled: !
|
|
16833
|
+
disabled: !h,
|
|
16819
16834
|
className: "sass-pg-cmt-rp-reportButton",
|
|
16820
16835
|
children: c.reportButton
|
|
16821
16836
|
}
|
|
@@ -16917,8 +16932,8 @@ async function Rs({
|
|
|
16917
16932
|
const u = await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${n}&sizereply=${a}&lastid=${o}`);
|
|
16918
16933
|
if (!u.ok)
|
|
16919
16934
|
throw new Error(`Error al obtener comentarios: ${u.status}`);
|
|
16920
|
-
const
|
|
16921
|
-
return yn(
|
|
16935
|
+
const h = await u.json();
|
|
16936
|
+
return yn(h.data[0]);
|
|
16922
16937
|
}
|
|
16923
16938
|
}
|
|
16924
16939
|
async function bm({
|
|
@@ -16938,16 +16953,16 @@ async function bm({
|
|
|
16938
16953
|
throw new Error("Invalid input types for publication or path");
|
|
16939
16954
|
if (!c)
|
|
16940
16955
|
throw new Error("Missing CMS API token");
|
|
16941
|
-
const { PUBLIC_ENV: d, PUBLIC_API_HOST: u = "dummy", PUBLIC_API_PATH:
|
|
16956
|
+
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
16957
|
if (isNaN(w) || w <= 0)
|
|
16943
16958
|
throw new Error("Invalid size parameter");
|
|
16944
|
-
if (isNaN(
|
|
16959
|
+
if (isNaN(f) || f < 0)
|
|
16945
16960
|
throw new Error("Invalid sizereply parameter");
|
|
16946
|
-
const p = d !== "prod" ? `${u}${
|
|
16961
|
+
const p = d !== "prod" ? `${u}${h}` : "", b = new URLSearchParams({
|
|
16947
16962
|
publication: e,
|
|
16948
16963
|
path: t,
|
|
16949
16964
|
size: w.toString(),
|
|
16950
|
-
sizereply:
|
|
16965
|
+
sizereply: f.toString(),
|
|
16951
16966
|
state: i
|
|
16952
16967
|
});
|
|
16953
16968
|
r && b.append("id", r), o && b.append("lastid", o);
|
|
@@ -17139,8 +17154,8 @@ function Nm({
|
|
|
17139
17154
|
texts: a,
|
|
17140
17155
|
API_ENV: r
|
|
17141
17156
|
}) {
|
|
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" + (
|
|
17157
|
+
const o = { ...Cm, ...vm, ...a?.comentarios }, i = me(r), c = (h) => {
|
|
17158
|
+
!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
17159
|
}, l = () => {
|
|
17145
17160
|
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = i + "/auth/register");
|
|
17146
17161
|
}, { PUBLIC_ASSETS_URL: d } = r, u = (d && d !== "false" ? d : "") + "/versions/images/anonimus-img.png";
|
|
@@ -17151,8 +17166,8 @@ function Nm({
|
|
|
17151
17166
|
role: "dialog",
|
|
17152
17167
|
"aria-modal": "true",
|
|
17153
17168
|
id: "pop-overlay",
|
|
17154
|
-
onClick: (
|
|
17155
|
-
const m =
|
|
17169
|
+
onClick: (h) => {
|
|
17170
|
+
const m = h.target;
|
|
17156
17171
|
m && m.id === "pop-overlay" && e();
|
|
17157
17172
|
},
|
|
17158
17173
|
children: /* @__PURE__ */ g("div", { className: "sass-pg-cmt-lp-card", children: [
|
|
@@ -17213,7 +17228,7 @@ function Nm({
|
|
|
17213
17228
|
const xm = {
|
|
17214
17229
|
submitCommentButton: "Enviar Comentario"
|
|
17215
17230
|
}, 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,
|
|
17231
|
+
const c = { ...xm, ...i?.comentarios }, [l, d] = he.useState(!1), [u, h] = he.useState(!1), [m, w] = he.useState(!1);
|
|
17217
17232
|
he.useEffect(() => {
|
|
17218
17233
|
let p = null;
|
|
17219
17234
|
return l && (p = setTimeout(() => {
|
|
@@ -17228,10 +17243,10 @@ const xm = {
|
|
|
17228
17243
|
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
17244
|
A?.value?.trim() && v?.value?.trim() && N?.value?.trim() && p.click();
|
|
17230
17245
|
});
|
|
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:
|
|
17246
|
+
const f = re("/Success.gif", n.PUBLIC_ASSETS_URL);
|
|
17247
|
+
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
17248
|
m && n.CONFIG_commentsV2 && o && /* @__PURE__ */ s(Nm, { API_ENV: n, icon: a, handleGoogleLogin: r, texts: i, onClose: (p) => {
|
|
17234
|
-
p &&
|
|
17249
|
+
p && h(!0), w(!1);
|
|
17235
17250
|
} }),
|
|
17236
17251
|
/* @__PURE__ */ g(
|
|
17237
17252
|
"button",
|
|
@@ -17242,7 +17257,7 @@ const xm = {
|
|
|
17242
17257
|
w(!0), console.log("open popup");
|
|
17243
17258
|
return;
|
|
17244
17259
|
}
|
|
17245
|
-
await e(p) && (n.CONFIG_commentsV2 && o &&
|
|
17260
|
+
await e(p) && (n.CONFIG_commentsV2 && o && h(!1), d(!0));
|
|
17246
17261
|
},
|
|
17247
17262
|
id: "comment-button",
|
|
17248
17263
|
className: `submit-btn su-bg-transparent su-font-bold ${t ? "disabled" : "active"}`,
|
|
@@ -17281,7 +17296,7 @@ const xm = {
|
|
|
17281
17296
|
API_ENV: c,
|
|
17282
17297
|
anonimusUser: l
|
|
17283
17298
|
}) => {
|
|
17284
|
-
const d = t.current?.value || "", { PUBLIC_PUBLICATION_ID: u } = c,
|
|
17299
|
+
const d = t.current?.value || "", { PUBLIC_PUBLICATION_ID: u } = c, h = u;
|
|
17285
17300
|
if (console.log("check", r, l), !_n(t, n, c).boolean || !r && !l) {
|
|
17286
17301
|
console.log("warn");
|
|
17287
17302
|
const w = a.nextElementSibling;
|
|
@@ -17290,11 +17305,11 @@ const xm = {
|
|
|
17290
17305
|
if (!r && !l) return;
|
|
17291
17306
|
const m = r ? d : "[[" + l + "]] " + d;
|
|
17292
17307
|
try {
|
|
17293
|
-
const w = Date.now(),
|
|
17308
|
+
const w = Date.now(), f = await fetch("/api/comments-add", {
|
|
17294
17309
|
method: "POST",
|
|
17295
17310
|
headers: { "Content-Type": "application/json" },
|
|
17296
17311
|
body: JSON.stringify({
|
|
17297
|
-
publication:
|
|
17312
|
+
publication: h,
|
|
17298
17313
|
path: e,
|
|
17299
17314
|
id: o,
|
|
17300
17315
|
username: r ? r.username : !1,
|
|
@@ -17304,13 +17319,13 @@ const xm = {
|
|
|
17304
17319
|
});
|
|
17305
17320
|
let p = null;
|
|
17306
17321
|
try {
|
|
17307
|
-
p = await
|
|
17322
|
+
p = await f.json();
|
|
17308
17323
|
} catch (C) {
|
|
17309
17324
|
console.error("Error parsing JSON response:", C);
|
|
17310
17325
|
}
|
|
17311
|
-
if (!
|
|
17326
|
+
if (!f.ok)
|
|
17312
17327
|
throw new Error(
|
|
17313
|
-
`Error al enviar comentario: ${p?.message} status: ${
|
|
17328
|
+
`Error al enviar comentario: ${p?.message} status: ${f.status}`
|
|
17314
17329
|
);
|
|
17315
17330
|
const b = Date.now(), A = Math.max(0, 2400 + Math.abs(b - w)), v = r || { username: l, firstname: l }, N = {
|
|
17316
17331
|
username: v.username,
|
|
@@ -17338,7 +17353,7 @@ const xm = {
|
|
|
17338
17353
|
API_ENV: i,
|
|
17339
17354
|
texts: c
|
|
17340
17355
|
}) => {
|
|
17341
|
-
const [l, d] = V(!0), [u,
|
|
17356
|
+
const [l, d] = V(!0), [u, h] = V(""), m = () => {
|
|
17342
17357
|
t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${Ve}`), d(!0), o();
|
|
17343
17358
|
};
|
|
17344
17359
|
return /* @__PURE__ */ g("div", { className: "comment-form reply-form su-p-8 su-relative", children: [
|
|
@@ -17358,14 +17373,14 @@ const xm = {
|
|
|
17358
17373
|
{
|
|
17359
17374
|
commentRef: t,
|
|
17360
17375
|
captchaToken: u,
|
|
17361
|
-
setCaptchaToken:
|
|
17376
|
+
setCaptchaToken: h,
|
|
17362
17377
|
API_ENV: i,
|
|
17363
17378
|
children: /* @__PURE__ */ s(
|
|
17364
17379
|
Bs,
|
|
17365
17380
|
{
|
|
17366
17381
|
onClick: async (w) => {
|
|
17367
17382
|
if (l) return;
|
|
17368
|
-
const
|
|
17383
|
+
const f = await Ms({
|
|
17369
17384
|
path: a,
|
|
17370
17385
|
ref: t,
|
|
17371
17386
|
captchaToken: u,
|
|
@@ -17375,9 +17390,9 @@ const xm = {
|
|
|
17375
17390
|
addComment: r,
|
|
17376
17391
|
API_ENV: i
|
|
17377
17392
|
});
|
|
17378
|
-
return
|
|
17393
|
+
return f && typeof f == "number" ? (setTimeout(() => {
|
|
17379
17394
|
m();
|
|
17380
|
-
},
|
|
17395
|
+
}, f), !0) : !1;
|
|
17381
17396
|
},
|
|
17382
17397
|
isDisabled: l,
|
|
17383
17398
|
API_ENV: i,
|
|
@@ -17409,11 +17424,11 @@ const xm = {
|
|
|
17409
17424
|
}, km = {
|
|
17410
17425
|
moreRepliesButton: "Más Respuestas"
|
|
17411
17426
|
}, 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,
|
|
17427
|
+
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
17428
|
let v = `${Ge.firstname} ${Ge.lastname ?? ""}`, N = Ge.username;
|
|
17414
17429
|
e.user && (v = `${e.user.firstname} ${e.user.lastname ?? ""}`, N = e.user.username);
|
|
17415
17430
|
const C = (y) => {
|
|
17416
|
-
|
|
17431
|
+
h({ morereply: u.morereply, reply: [y, ...u.reply] });
|
|
17417
17432
|
};
|
|
17418
17433
|
return /* @__PURE__ */ s("div", { className: "comment-item", children: /* @__PURE__ */ g(
|
|
17419
17434
|
"div",
|
|
@@ -17468,7 +17483,7 @@ const xm = {
|
|
|
17468
17483
|
w(!0);
|
|
17469
17484
|
try {
|
|
17470
17485
|
const T = await Rs({
|
|
17471
|
-
publication:
|
|
17486
|
+
publication: f ?? "",
|
|
17472
17487
|
path: n ?? "",
|
|
17473
17488
|
size: 2,
|
|
17474
17489
|
sizereply: 2,
|
|
@@ -17478,7 +17493,7 @@ const xm = {
|
|
|
17478
17493
|
apiToken: p ?? "",
|
|
17479
17494
|
API_ENV: i
|
|
17480
17495
|
});
|
|
17481
|
-
w(!1),
|
|
17496
|
+
w(!1), h({ morereply: T.morecomment, reply: [...u.reply, ...T.comments] });
|
|
17482
17497
|
} catch (S) {
|
|
17483
17498
|
throw w(!1), new Error(`Error al obtener comentarios: ${S}`);
|
|
17484
17499
|
}
|
|
@@ -17523,7 +17538,7 @@ const xm = {
|
|
|
17523
17538
|
{
|
|
17524
17539
|
onClick: async (u) => {
|
|
17525
17540
|
if (i) return;
|
|
17526
|
-
const
|
|
17541
|
+
const h = await Ms({
|
|
17527
17542
|
path: n,
|
|
17528
17543
|
ref: e,
|
|
17529
17544
|
captchaToken: l,
|
|
@@ -17532,9 +17547,9 @@ const xm = {
|
|
|
17532
17547
|
addComment: a,
|
|
17533
17548
|
API_ENV: r
|
|
17534
17549
|
});
|
|
17535
|
-
return
|
|
17550
|
+
return h && typeof h == "number" ? (e.current?.parentElement && (e.current.parentElement.dataset.text = `0/${Ve}`), c(!0), setTimeout(() => {
|
|
17536
17551
|
e.current?.parentElement && (e.current.parentElement.dataset.text = `0/${Ve}`), c(!0);
|
|
17537
|
-
},
|
|
17552
|
+
}, h), !0) : !1;
|
|
17538
17553
|
},
|
|
17539
17554
|
isDisabled: i,
|
|
17540
17555
|
API_ENV: r,
|
|
@@ -17571,7 +17586,7 @@ const xm = {
|
|
|
17571
17586
|
API_ENV: i,
|
|
17572
17587
|
texts: c
|
|
17573
17588
|
}) => {
|
|
17574
|
-
const [l, d] = V(!0), [u,
|
|
17589
|
+
const [l, d] = V(!0), [u, h] = V("");
|
|
17575
17590
|
return /* @__PURE__ */ s($, { children: /* @__PURE__ */ g("div", { className: "comment-form anoninus-form su-p-8 su-relative", children: [
|
|
17576
17591
|
/* @__PURE__ */ s(
|
|
17577
17592
|
Rm,
|
|
@@ -17596,7 +17611,7 @@ const xm = {
|
|
|
17596
17611
|
API_ENV: i,
|
|
17597
17612
|
commentRef: t,
|
|
17598
17613
|
captchaToken: u,
|
|
17599
|
-
setCaptchaToken:
|
|
17614
|
+
setCaptchaToken: h,
|
|
17600
17615
|
children: /* @__PURE__ */ s(
|
|
17601
17616
|
Bs,
|
|
17602
17617
|
{
|
|
@@ -17609,7 +17624,7 @@ const xm = {
|
|
|
17609
17624
|
console.log("invalidForm");
|
|
17610
17625
|
return;
|
|
17611
17626
|
}
|
|
17612
|
-
const
|
|
17627
|
+
const f = e.current.value, p = await Ms({
|
|
17613
17628
|
path: n,
|
|
17614
17629
|
ref: t,
|
|
17615
17630
|
captchaToken: u,
|
|
@@ -17617,9 +17632,9 @@ const xm = {
|
|
|
17617
17632
|
user: void 0,
|
|
17618
17633
|
addComment: o,
|
|
17619
17634
|
API_ENV: i,
|
|
17620
|
-
anonimusUser:
|
|
17635
|
+
anonimusUser: f
|
|
17621
17636
|
});
|
|
17622
|
-
return
|
|
17637
|
+
return h(""), p && typeof p == "number" ? (t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${Ve}`), d(!0), setTimeout(() => {
|
|
17623
17638
|
t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${Ve}`), d(!0);
|
|
17624
17639
|
}, p), !0) : !1;
|
|
17625
17640
|
},
|
|
@@ -17654,7 +17669,7 @@ const xm = {
|
|
|
17654
17669
|
API_ENV: i,
|
|
17655
17670
|
texts: c
|
|
17656
17671
|
}) => {
|
|
17657
|
-
const l = { ...Om, ...c?.comentarios }, { PUBLIC_PUBLICATION_ID: d, PUBLIC_X_SECURITY_TOKEN: u } = i,
|
|
17672
|
+
const l = { ...Om, ...c?.comentarios }, { PUBLIC_PUBLICATION_ID: d, PUBLIC_X_SECURITY_TOKEN: u } = i, h = d ?? "", m = t.replaceAll("/", "|"), [w, f] = V(
|
|
17658
17673
|
void 0
|
|
17659
17674
|
), [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
17675
|
b(p === L ? "" : L);
|
|
@@ -17666,7 +17681,7 @@ const xm = {
|
|
|
17666
17681
|
} : void 0
|
|
17667
17682
|
);
|
|
17668
17683
|
}, z = (L) => {
|
|
17669
|
-
|
|
17684
|
+
f(L);
|
|
17670
17685
|
}, O = async () => {
|
|
17671
17686
|
if (!A || !A.morecomment || A.comments.length === 0) return;
|
|
17672
17687
|
const L = A.comments[A.comments.length - 1];
|
|
@@ -17675,7 +17690,7 @@ const xm = {
|
|
|
17675
17690
|
const U = L.id;
|
|
17676
17691
|
try {
|
|
17677
17692
|
const j = await Rs({
|
|
17678
|
-
publication:
|
|
17693
|
+
publication: h,
|
|
17679
17694
|
path: m ?? "",
|
|
17680
17695
|
size: 5,
|
|
17681
17696
|
sizereply: 2,
|
|
@@ -17775,10 +17790,10 @@ const xm = {
|
|
|
17775
17790
|
gm,
|
|
17776
17791
|
{
|
|
17777
17792
|
username: n?.username ?? void 0,
|
|
17778
|
-
publication:
|
|
17793
|
+
publication: h,
|
|
17779
17794
|
commentId: w,
|
|
17780
17795
|
isOpen: w !== void 0,
|
|
17781
|
-
onClose: () =>
|
|
17796
|
+
onClose: () => f(void 0),
|
|
17782
17797
|
CAPTCHA_KEY_V2: i.CAPTCHA_KEY_V2 ?? "",
|
|
17783
17798
|
texts: c
|
|
17784
17799
|
}
|
|
@@ -17828,7 +17843,7 @@ const xm = {
|
|
|
17828
17843
|
errorPasswordInvalid: "La contraseña no es válida",
|
|
17829
17844
|
errorVerificationCodeRequired: "Debes ingresar el código de verificación",
|
|
17830
17845
|
errorUnexpected: "Error inesperado"
|
|
17831
|
-
},
|
|
17846
|
+
}, kt = {
|
|
17832
17847
|
email: { label: "Email" },
|
|
17833
17848
|
given_name: { label: "Nombre" },
|
|
17834
17849
|
family_name: { label: "Apellido" },
|
|
@@ -17837,11 +17852,11 @@ const xm = {
|
|
|
17837
17852
|
};
|
|
17838
17853
|
function _m(e) {
|
|
17839
17854
|
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 ??
|
|
17855
|
+
email: { label: e?.email ?? kt.email.label, required: !0 },
|
|
17856
|
+
given_name: { label: e?.given_name ?? kt.given_name.label, required: !0 },
|
|
17857
|
+
family_name: { label: e?.family_name ?? kt.family_name.label, required: !0 },
|
|
17858
|
+
password: { label: e?.password ?? kt.password.label, required: !0 },
|
|
17859
|
+
confirmPassword: { label: e?.confirmPassword ?? kt.confirmPassword.label, required: !0 }
|
|
17845
17860
|
};
|
|
17846
17861
|
}
|
|
17847
17862
|
const Be = [
|
|
@@ -17858,10 +17873,10 @@ const Be = [
|
|
|
17858
17873
|
{ label: "Usa un símbolo", test: Be[4] }
|
|
17859
17874
|
];
|
|
17860
17875
|
function qm({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAndConditionsUrl: r }) {
|
|
17861
|
-
const o = { ...Mm, ...a?.comentarios }, i =
|
|
17876
|
+
const o = { ...Mm, ...a?.comentarios }, i = Ot(
|
|
17862
17877
|
() => _m(a?.comentarios?.registerForm),
|
|
17863
17878
|
[a?.comentarios?.registerForm]
|
|
17864
|
-
), c =
|
|
17879
|
+
), c = Ot(
|
|
17865
17880
|
() => [
|
|
17866
17881
|
{ label: o.passwordRuleMinLength, test: Be[0] },
|
|
17867
17882
|
{ label: o.passwordRuleNumber, test: Be[1] },
|
|
@@ -17870,7 +17885,7 @@ function qm({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
17870
17885
|
{ label: o.passwordRuleSymbol, test: Be[4] }
|
|
17871
17886
|
],
|
|
17872
17887
|
[o.passwordRuleMinLength, o.passwordRuleNumber, o.passwordRuleLowercase, o.passwordRuleUppercase, o.passwordRuleSymbol]
|
|
17873
|
-
), [l, d] = V({}), [u,
|
|
17888
|
+
), [l, d] = V({}), [u, h] = V(!1), [m, w] = V(!1), [f, p] = V(null), [b, A] = V(
|
|
17874
17889
|
"register"
|
|
17875
17890
|
), v = (S, T) => {
|
|
17876
17891
|
d((R) => ({ ...R, [S]: T }));
|
|
@@ -17973,7 +17988,7 @@ function qm({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
17973
17988
|
{
|
|
17974
17989
|
onSubmit: N,
|
|
17975
17990
|
className: "sass-pg-cmt-lp-form",
|
|
17976
|
-
"data-error":
|
|
17991
|
+
"data-error": f ? "true" : "false",
|
|
17977
17992
|
children: [
|
|
17978
17993
|
/* @__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
17994
|
/* @__PURE__ */ s("label", { className: "sass-pg-cmt-lp-label", children: T }),
|
|
@@ -18009,7 +18024,7 @@ function qm({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
18009
18024
|
id: "showPasswordRegister",
|
|
18010
18025
|
type: "checkbox",
|
|
18011
18026
|
checked: u,
|
|
18012
|
-
onChange: (R) =>
|
|
18027
|
+
onChange: (R) => h(R.target.checked)
|
|
18013
18028
|
}
|
|
18014
18029
|
),
|
|
18015
18030
|
/* @__PURE__ */ s(
|
|
@@ -18022,7 +18037,7 @@ function qm({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
18022
18037
|
)
|
|
18023
18038
|
] })
|
|
18024
18039
|
] }, S)) }),
|
|
18025
|
-
|
|
18040
|
+
f && /* @__PURE__ */ s("p", { className: "sass-pg-cmt-lp-error", children: f }),
|
|
18026
18041
|
/* @__PURE__ */ g("p", { className: "sass-pg-cmt-lp-terms", children: [
|
|
18027
18042
|
o.termsPrefix,
|
|
18028
18043
|
" ",
|
|
@@ -18040,7 +18055,7 @@ function qm({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
18040
18055
|
{
|
|
18041
18056
|
onSubmit: C,
|
|
18042
18057
|
className: "sass-pg-cmt-lp-form",
|
|
18043
|
-
"data-error":
|
|
18058
|
+
"data-error": f ? "true" : "false",
|
|
18044
18059
|
children: [
|
|
18045
18060
|
/* @__PURE__ */ g("div", { className: "sass-pg-cmt-lp-field", children: [
|
|
18046
18061
|
/* @__PURE__ */ s("label", { className: "sass-pg-cmt-lp-label", children: o.verificationCodeLabel }),
|
|
@@ -18056,7 +18071,7 @@ function qm({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
18056
18071
|
}
|
|
18057
18072
|
)
|
|
18058
18073
|
] }),
|
|
18059
|
-
|
|
18074
|
+
f && /* @__PURE__ */ s("p", { className: "sass-pg-cmt-lp-error", children: f }),
|
|
18060
18075
|
/* @__PURE__ */ s("button", { type: "submit", className: "sass-pg-cmt-lp-primary", disabled: m, children: m ? /* @__PURE__ */ s(Je, {}) : o.confirmAccountButton }),
|
|
18061
18076
|
/* @__PURE__ */ g("p", { className: "sass-pg-cmt-lp-switch", children: [
|
|
18062
18077
|
o.alreadyConfirmedText,
|
|
@@ -18128,13 +18143,13 @@ function jm({
|
|
|
18128
18143
|
API_ENV: r,
|
|
18129
18144
|
texts: o
|
|
18130
18145
|
}) {
|
|
18131
|
-
const i = { ...Dm, ...o?.comentarios }, [c, l] = V("login"), [d, u] = V(""), [
|
|
18146
|
+
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
18147
|
return /* @__PURE__ */ g($, { children: [
|
|
18133
18148
|
c === "login" && /* @__PURE__ */ s(
|
|
18134
18149
|
Gm,
|
|
18135
18150
|
{
|
|
18136
18151
|
email: d,
|
|
18137
|
-
password:
|
|
18152
|
+
password: h,
|
|
18138
18153
|
showPassword: N,
|
|
18139
18154
|
loading: y,
|
|
18140
18155
|
error: T,
|
|
@@ -18151,7 +18166,7 @@ function jm({
|
|
|
18151
18166
|
method: "POST",
|
|
18152
18167
|
headers: { "Content-Type": "application/json" },
|
|
18153
18168
|
credentials: "include",
|
|
18154
|
-
body: JSON.stringify({ email: d, password:
|
|
18169
|
+
body: JSON.stringify({ email: d, password: h, token: Q })
|
|
18155
18170
|
});
|
|
18156
18171
|
if (!B.ok) {
|
|
18157
18172
|
const L = await B.json().catch(() => ({}));
|
|
@@ -18217,7 +18232,7 @@ function jm({
|
|
|
18217
18232
|
showPassword: N,
|
|
18218
18233
|
loading: y,
|
|
18219
18234
|
error: T,
|
|
18220
|
-
setConfirmationCode:
|
|
18235
|
+
setConfirmationCode: f,
|
|
18221
18236
|
setNewPassword: b,
|
|
18222
18237
|
setConfirmNewPassword: v,
|
|
18223
18238
|
setShowPassword: C,
|
|
@@ -18280,11 +18295,11 @@ function Gm({
|
|
|
18280
18295
|
onSubmit: l,
|
|
18281
18296
|
onForgot: d,
|
|
18282
18297
|
onRegister: u,
|
|
18283
|
-
handleGoogleLogin:
|
|
18298
|
+
handleGoogleLogin: h,
|
|
18284
18299
|
t: m
|
|
18285
18300
|
}) {
|
|
18286
18301
|
return /* @__PURE__ */ g($, { children: [
|
|
18287
|
-
/* @__PURE__ */ g("button", { onClick:
|
|
18302
|
+
/* @__PURE__ */ g("button", { onClick: h, className: "sass-pg-cmt-lp-google", children: [
|
|
18288
18303
|
/* @__PURE__ */ s(
|
|
18289
18304
|
"img",
|
|
18290
18305
|
{
|
|
@@ -18411,19 +18426,19 @@ function Hm({
|
|
|
18411
18426
|
setNewPassword: l,
|
|
18412
18427
|
setConfirmNewPassword: d,
|
|
18413
18428
|
setShowPassword: u,
|
|
18414
|
-
onSubmit:
|
|
18429
|
+
onSubmit: h,
|
|
18415
18430
|
onBack: m,
|
|
18416
18431
|
t: w
|
|
18417
18432
|
}) {
|
|
18418
|
-
const
|
|
18433
|
+
const f = w.changePasswordMessage.replace("{{email}}", Wu(e));
|
|
18419
18434
|
return /* @__PURE__ */ g(
|
|
18420
18435
|
"form",
|
|
18421
18436
|
{
|
|
18422
|
-
onSubmit:
|
|
18437
|
+
onSubmit: h,
|
|
18423
18438
|
className: "sass-pg-cmt-lp-form",
|
|
18424
18439
|
"data-error": i ? "true" : "false",
|
|
18425
18440
|
children: [
|
|
18426
|
-
/* @__PURE__ */ s("p", { className: "sass-pg-cmt-lp-message", children:
|
|
18441
|
+
/* @__PURE__ */ s("p", { className: "sass-pg-cmt-lp-message", children: f }),
|
|
18427
18442
|
/* @__PURE__ */ g("ul", { className: "sass-pg-cmt-lp-formUl", children: [
|
|
18428
18443
|
/* @__PURE__ */ g("div", { className: "sass-pg-cmt-lp-field", children: [
|
|
18429
18444
|
/* @__PURE__ */ s("label", { className: "sass-pg-cmt-lp-label", children: w.verificationCodeLabel }),
|
|
@@ -18592,7 +18607,7 @@ function $m({
|
|
|
18592
18607
|
texts: l,
|
|
18593
18608
|
termsAndConditionsUrl: d
|
|
18594
18609
|
}) {
|
|
18595
|
-
const [u,
|
|
18610
|
+
const [u, h] = V(!1), m = { ...Qm, ...l?.comentarios }, w = m.loginButtonText, f = async () => {
|
|
18596
18611
|
if (c.PUBLIC_ENV === "local")
|
|
18597
18612
|
await fetch("/api/auth/logout", {
|
|
18598
18613
|
method: "GET",
|
|
@@ -18603,7 +18618,7 @@ function $m({
|
|
|
18603
18618
|
window.location.href = `${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(A)}`;
|
|
18604
18619
|
}
|
|
18605
18620
|
}, p = async (A) => {
|
|
18606
|
-
A.preventDefault(), n &&
|
|
18621
|
+
A.preventDefault(), n && h(!0);
|
|
18607
18622
|
}, b = async () => {
|
|
18608
18623
|
if (c.PUBLIC_ENV === "local") {
|
|
18609
18624
|
await fetch("/api/auth/debug-login", { method: "GET", credentials: "include" }), localStorage.setItem("cognito-login", "success:" + Date.now()), o();
|
|
@@ -18625,7 +18640,7 @@ function $m({
|
|
|
18625
18640
|
texts: l,
|
|
18626
18641
|
termsAndConditionsUrl: d,
|
|
18627
18642
|
onClose: () => {
|
|
18628
|
-
|
|
18643
|
+
h(!1);
|
|
18629
18644
|
}
|
|
18630
18645
|
}
|
|
18631
18646
|
),
|
|
@@ -18645,7 +18660,7 @@ function $m({
|
|
|
18645
18660
|
Bm,
|
|
18646
18661
|
{
|
|
18647
18662
|
isAuthenticated: e,
|
|
18648
|
-
handleLogout:
|
|
18663
|
+
handleLogout: f,
|
|
18649
18664
|
handleGoogleLogin: b,
|
|
18650
18665
|
icon: i,
|
|
18651
18666
|
path: r,
|
|
@@ -18672,8 +18687,8 @@ function Wm({
|
|
|
18672
18687
|
try {
|
|
18673
18688
|
const p = await (await fetch("/api/auth/user", { credentials: "include" })).json();
|
|
18674
18689
|
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:",
|
|
18690
|
+
} catch (f) {
|
|
18691
|
+
console.error("Error checking auth:", f), i(!1), l(null);
|
|
18677
18692
|
}
|
|
18678
18693
|
}
|
|
18679
18694
|
}, [e, d]);
|
|
@@ -18681,14 +18696,14 @@ function Wm({
|
|
|
18681
18696
|
u();
|
|
18682
18697
|
}, [u, e]), Me(() => {
|
|
18683
18698
|
if (!c || !e || typeof window > "u") return;
|
|
18684
|
-
const
|
|
18685
|
-
if (typeof
|
|
18699
|
+
const f = window;
|
|
18700
|
+
if (typeof f != "function") {
|
|
18686
18701
|
console.warn("gtag no está disponible todavía");
|
|
18687
18702
|
return;
|
|
18688
18703
|
}
|
|
18689
|
-
|
|
18704
|
+
f.gtag("set", { user_id: c.username }), console.log("username setted successfully");
|
|
18690
18705
|
}, [c, e]);
|
|
18691
|
-
const
|
|
18706
|
+
const h = "/api/auth/login", m = /* @__PURE__ */ s(
|
|
18692
18707
|
"div",
|
|
18693
18708
|
{
|
|
18694
18709
|
className: "su-flex-center su-relative",
|
|
@@ -18705,7 +18720,7 @@ function Wm({
|
|
|
18705
18720
|
icon: n,
|
|
18706
18721
|
isAuthenticated: o,
|
|
18707
18722
|
setIsAuthenticated: i,
|
|
18708
|
-
loginUrl:
|
|
18723
|
+
loginUrl: h,
|
|
18709
18724
|
user: c ?? void 0,
|
|
18710
18725
|
checkAuth: u,
|
|
18711
18726
|
path: w,
|
|
@@ -18784,7 +18799,7 @@ async function sf({
|
|
|
18784
18799
|
message: "Faltan campos obligatorios. Por favor, completa todos los campos.",
|
|
18785
18800
|
status: 400
|
|
18786
18801
|
};
|
|
18787
|
-
if ([e, t, a].some((
|
|
18802
|
+
if ([e, t, a].some((f) => typeof f != "string"))
|
|
18788
18803
|
return {
|
|
18789
18804
|
type: "error",
|
|
18790
18805
|
message: "Datos inválidos. Intenta de nuevo.",
|
|
@@ -18803,7 +18818,7 @@ async function sf({
|
|
|
18803
18818
|
message: "Captcha inválido. Intenta nuevamente.",
|
|
18804
18819
|
status: 403
|
|
18805
18820
|
};
|
|
18806
|
-
const
|
|
18821
|
+
const h = `${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`, m = {
|
|
18807
18822
|
publication: e,
|
|
18808
18823
|
path: t.replace(/\|/gi, "/"),
|
|
18809
18824
|
text: a.trim()
|
|
@@ -18811,7 +18826,7 @@ async function sf({
|
|
|
18811
18826
|
n && (m.username = n), r && (m.id = r);
|
|
18812
18827
|
const w = new URLSearchParams(m);
|
|
18813
18828
|
try {
|
|
18814
|
-
const { data:
|
|
18829
|
+
const { data: f } = await oe.get(`${h}?${w.toString()}`, {
|
|
18815
18830
|
headers: {
|
|
18816
18831
|
"Content-Type": "application/json",
|
|
18817
18832
|
"x-security-token": l,
|
|
@@ -18819,18 +18834,18 @@ async function sf({
|
|
|
18819
18834
|
"User-Agent": "amplifyapp-comments-saas"
|
|
18820
18835
|
}
|
|
18821
18836
|
});
|
|
18822
|
-
return !
|
|
18837
|
+
return !f || f.error ? (console.error("CMS error response:", f), {
|
|
18823
18838
|
type: "error",
|
|
18824
18839
|
message: "No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",
|
|
18825
18840
|
status: 502
|
|
18826
|
-
}) : (console.log("Comentario enviado con éxito",
|
|
18841
|
+
}) : (console.log("Comentario enviado con éxito", f), {
|
|
18827
18842
|
type: "success",
|
|
18828
18843
|
message: "Comentario enviado con éxito.",
|
|
18829
18844
|
status: 200
|
|
18830
18845
|
});
|
|
18831
|
-
} catch (
|
|
18832
|
-
if (console.error("Error enviando comentario:",
|
|
18833
|
-
const p =
|
|
18846
|
+
} catch (f) {
|
|
18847
|
+
if (console.error("Error enviando comentario:", f), oe.isAxiosError(f)) {
|
|
18848
|
+
const p = f.response?.status ?? 500, b = f.response?.data;
|
|
18834
18849
|
return p === 400 ? {
|
|
18835
18850
|
type: "error",
|
|
18836
18851
|
message: b?.message || "Solicitud inválida. Verifica que los campos sean correctos.",
|
|
@@ -19154,30 +19169,30 @@ const eh = (e) => e?.main?.title ? {
|
|
|
19154
19169
|
showTagBySection: i,
|
|
19155
19170
|
pathname: c
|
|
19156
19171
|
}) => {
|
|
19157
|
-
const l = zc(c), d = [], u = t,
|
|
19158
|
-
!e[
|
|
19172
|
+
const l = zc(c), d = [], u = t, h = (f, p, b, A) => {
|
|
19173
|
+
!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
19174
|
/* @__PURE__ */ g(
|
|
19160
19175
|
wa,
|
|
19161
19176
|
{
|
|
19162
|
-
id: e[
|
|
19163
|
-
show: !!e[
|
|
19177
|
+
id: e[f].blockSass[0].key,
|
|
19178
|
+
show: !!e[f].blockSass[0].value,
|
|
19164
19179
|
order: p,
|
|
19165
19180
|
children: [
|
|
19166
19181
|
/* @__PURE__ */ s(
|
|
19167
19182
|
Ma,
|
|
19168
19183
|
{
|
|
19169
|
-
component: e[
|
|
19184
|
+
component: e[f].blockSass[0].block,
|
|
19170
19185
|
banners: o,
|
|
19171
|
-
slot_id:
|
|
19186
|
+
slot_id: f,
|
|
19172
19187
|
isHome: l,
|
|
19173
19188
|
data: {
|
|
19174
|
-
printEdition: e[
|
|
19175
|
-
title: e[
|
|
19176
|
-
titleUrl: e[
|
|
19189
|
+
printEdition: e[f]?.blockSass[0].value,
|
|
19190
|
+
title: e[f]?.blockSass[0].title ?? "",
|
|
19191
|
+
titleUrl: e[f].blockSass[0].link ?? void 0
|
|
19177
19192
|
}
|
|
19178
19193
|
}
|
|
19179
19194
|
),
|
|
19180
|
-
/* @__PURE__ */ s(
|
|
19195
|
+
/* @__PURE__ */ s(Pt, { children: /* @__PURE__ */ s(
|
|
19181
19196
|
pt,
|
|
19182
19197
|
{
|
|
19183
19198
|
banners: o,
|
|
@@ -19192,29 +19207,29 @@ const eh = (e) => e?.main?.title ? {
|
|
|
19192
19207
|
/* @__PURE__ */ g(
|
|
19193
19208
|
wa,
|
|
19194
19209
|
{
|
|
19195
|
-
id: e[
|
|
19196
|
-
show: !!e[
|
|
19210
|
+
id: e[f].blockSass[0].key,
|
|
19211
|
+
show: !!e[f].content?.data,
|
|
19197
19212
|
order: p,
|
|
19198
19213
|
children: [
|
|
19199
19214
|
/* @__PURE__ */ s(
|
|
19200
19215
|
Ma,
|
|
19201
19216
|
{
|
|
19202
|
-
component: e[
|
|
19217
|
+
component: e[f].blockSass[0].block,
|
|
19203
19218
|
banners: o,
|
|
19204
|
-
slot_id:
|
|
19219
|
+
slot_id: f,
|
|
19205
19220
|
isHome: l,
|
|
19206
19221
|
data: {
|
|
19207
|
-
...e[
|
|
19208
|
-
content: e[
|
|
19209
|
-
title: e[
|
|
19210
|
-
titleUrl: e[
|
|
19222
|
+
...e[f].blockSass[0].block ? n[e[f].blockSass[0].block] : [],
|
|
19223
|
+
content: e[f].content?.data ?? [],
|
|
19224
|
+
title: e[f].blockSass[0].title ?? void 0,
|
|
19225
|
+
titleUrl: e[f].blockSass[0].link ?? void 0,
|
|
19211
19226
|
autorIcon: /* @__PURE__ */ s(a, {}),
|
|
19212
19227
|
paths: r.paths,
|
|
19213
19228
|
showTagBySection: i
|
|
19214
19229
|
}
|
|
19215
19230
|
}
|
|
19216
19231
|
),
|
|
19217
|
-
/* @__PURE__ */ s(
|
|
19232
|
+
/* @__PURE__ */ s(Pt, { children: /* @__PURE__ */ s(
|
|
19218
19233
|
pt,
|
|
19219
19234
|
{
|
|
19220
19235
|
banners: o,
|
|
@@ -19227,16 +19242,16 @@ const eh = (e) => e?.main?.title ? {
|
|
|
19227
19242
|
)
|
|
19228
19243
|
));
|
|
19229
19244
|
}, m = Object.keys(e);
|
|
19230
|
-
if (m.some((
|
|
19231
|
-
for (const
|
|
19232
|
-
const p = Number(
|
|
19233
|
-
f
|
|
19245
|
+
if (m.some((f) => /^Home_\d+$/.test(f)))
|
|
19246
|
+
for (const f of m) {
|
|
19247
|
+
const p = Number(f.slice(5));
|
|
19248
|
+
h(f, Number.isFinite(p) ? p - 1 : 0, f, String(p));
|
|
19234
19249
|
}
|
|
19235
19250
|
else {
|
|
19236
19251
|
const p = m.length / u;
|
|
19237
19252
|
for (let b = 1; b <= p; b++)
|
|
19238
19253
|
for (let A = 1; A <= u; A++)
|
|
19239
|
-
|
|
19254
|
+
h(
|
|
19240
19255
|
"Home_" + b + "_" + A,
|
|
19241
19256
|
(b - 1) * u + (A - 1),
|
|
19242
19257
|
b + "_" + A,
|
|
@@ -19267,7 +19282,7 @@ const eh = (e) => e?.main?.title ? {
|
|
|
19267
19282
|
banners: a
|
|
19268
19283
|
}
|
|
19269
19284
|
),
|
|
19270
|
-
/* @__PURE__ */ s(
|
|
19285
|
+
/* @__PURE__ */ s(Pt, { children: /* @__PURE__ */ s(pt, { banners: a, index: 1 }) }),
|
|
19271
19286
|
/* @__PURE__ */ s(
|
|
19272
19287
|
es,
|
|
19273
19288
|
{
|
|
@@ -19276,7 +19291,7 @@ const eh = (e) => e?.main?.title ? {
|
|
|
19276
19291
|
banners: a
|
|
19277
19292
|
}
|
|
19278
19293
|
),
|
|
19279
|
-
/* @__PURE__ */ s(
|
|
19294
|
+
/* @__PURE__ */ s(Pt, { children: /* @__PURE__ */ s(pt, { banners: a, index: 1 }) }),
|
|
19280
19295
|
/* @__PURE__ */ s(
|
|
19281
19296
|
es,
|
|
19282
19297
|
{
|
|
@@ -19285,7 +19300,7 @@ const eh = (e) => e?.main?.title ? {
|
|
|
19285
19300
|
banners: a
|
|
19286
19301
|
}
|
|
19287
19302
|
),
|
|
19288
|
-
/* @__PURE__ */ s(
|
|
19303
|
+
/* @__PURE__ */ s(Pt, { children: /* @__PURE__ */ s(pt, { banners: a, index: 1 }) })
|
|
19289
19304
|
] });
|
|
19290
19305
|
};
|
|
19291
19306
|
function lf({ debugCfg: e }) {
|
|
@@ -19303,7 +19318,7 @@ function th({
|
|
|
19303
19318
|
initialErrors: t,
|
|
19304
19319
|
initialSuccesses: n
|
|
19305
19320
|
}) {
|
|
19306
|
-
const [a, r] = V(0), [o, i] = V(0), [c, l] = V(!1), [d, u] = V("errors"), [
|
|
19321
|
+
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
19322
|
Me(() => {
|
|
19308
19323
|
if (t && t.length > 0) {
|
|
19309
19324
|
const C = new Set(Ne.getAll().map((y) => y.id));
|
|
@@ -19336,10 +19351,10 @@ function th({
|
|
|
19336
19351
|
};
|
|
19337
19352
|
}, []);
|
|
19338
19353
|
function b() {
|
|
19339
|
-
m(Ne.getAll()),
|
|
19354
|
+
m(Ne.getAll()), f(Ne.getAllSuccesses()), l(!0);
|
|
19340
19355
|
}
|
|
19341
19356
|
function A() {
|
|
19342
|
-
Ne.clearAll(), m([]),
|
|
19357
|
+
Ne.clearAll(), m([]), f([]), r(0), i(0), l(!1);
|
|
19343
19358
|
}
|
|
19344
19359
|
return /* @__PURE__ */ g($, { children: [
|
|
19345
19360
|
/* @__PURE__ */ g("button", { onClick: b, style: ih(e), title: "Debug panel", children: [
|
|
@@ -19377,7 +19392,7 @@ function th({
|
|
|
19377
19392
|
)
|
|
19378
19393
|
] }),
|
|
19379
19394
|
/* @__PURE__ */ g("div", { style: mh, children: [
|
|
19380
|
-
d === "errors" && (
|
|
19395
|
+
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
19396
|
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
19397
|
] }),
|
|
19383
19398
|
/* @__PURE__ */ s("div", { style: hh, children: /* @__PURE__ */ s("button", { onClick: A, style: ph, children: "Limpiar todo" }) })
|
|
@@ -19716,10 +19731,10 @@ function le(e) {
|
|
|
19716
19731
|
function je(e) {
|
|
19717
19732
|
return String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
19718
19733
|
}
|
|
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:
|
|
19734
|
+
function Ut(e, t) {
|
|
19735
|
+
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("/", "");
|
|
19736
|
+
let w = (!h && !m ? u : "") + (u && o === "/" ? "" : o);
|
|
19737
|
+
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
19738
|
}
|
|
19724
19739
|
const Ah = {
|
|
19725
19740
|
whatsapp: {
|
|
@@ -19748,12 +19763,12 @@ function vh(e, t) {
|
|
|
19748
19763
|
const m = n[0]?.url ? ` src="${le(n[0].url)}"` : "";
|
|
19749
19764
|
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
19765
|
}
|
|
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(
|
|
19766
|
+
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 ?? "";
|
|
19767
|
+
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
19768
|
}
|
|
19754
19769
|
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}"${
|
|
19770
|
+
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);
|
|
19771
|
+
return `<a${u} class="${d}"${h} href="${le(c)}"${w}${f}>${p}</a>`;
|
|
19757
19772
|
}
|
|
19758
19773
|
function Nh(e, t, n) {
|
|
19759
19774
|
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 +19776,12 @@ function Nh(e, t, n) {
|
|
|
19761
19776
|
a && (l = `<div style="width: 100%;" data-hydrate="ShareButtons" data-props="${encodeURIComponent(JSON.stringify({ noteShare: a }))}">` + yh(a) + "</div>");
|
|
19762
19777
|
const d = () => e.main.uppertitle ? `<p class="sass-com-nd-uppertitle" title="${le(e.main.uppertitle)}">${je(e.main.uppertitle)}</p>` : "";
|
|
19763
19778
|
let u = "";
|
|
19764
|
-
const
|
|
19765
|
-
if (i &&
|
|
19766
|
-
const v =
|
|
19779
|
+
const h = e.keywords, m = e.info;
|
|
19780
|
+
if (i && h?.tags?.length && h.tags.length > 0) {
|
|
19781
|
+
const v = h.tags[0], N = v.name;
|
|
19767
19782
|
let C;
|
|
19768
19783
|
if (v.approved) {
|
|
19769
|
-
const y = Ke(v, t), { finalHref: S } =
|
|
19784
|
+
const y = Ke(v, t), { finalHref: S } = Ut(
|
|
19770
19785
|
y,
|
|
19771
19786
|
!!c?.tema
|
|
19772
19787
|
);
|
|
@@ -19775,16 +19790,16 @@ function Nh(e, t, n) {
|
|
|
19775
19790
|
C = `<div class="sass-com-nd-sectionDescription">${je(N)}</div>`;
|
|
19776
19791
|
u = `<${r} class="sass-com-nd-sectionDescriptionContainer section">${C}${d()}</${r}>`;
|
|
19777
19792
|
} else if (m?.section?.url) {
|
|
19778
|
-
const v = m.section.name, { finalHref: N } =
|
|
19793
|
+
const v = m.section.name, { finalHref: N } = Ut(m.section.url);
|
|
19779
19794
|
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
19795
|
}
|
|
19781
|
-
const w = e.main?.title?.section ?? "",
|
|
19796
|
+
const w = e.main?.title?.section ?? "", f = o ? `${o} sass-com-nd-linkStyled su-no-underline` : "sass-com-nd-linkStyled su-no-underline";
|
|
19782
19797
|
let p;
|
|
19783
19798
|
if (e.info?.link?.url) {
|
|
19784
|
-
const { finalHref: v, isExternal: N } =
|
|
19799
|
+
const { finalHref: v, isExternal: N } = Ut(
|
|
19785
19800
|
e.info.link.url
|
|
19786
19801
|
), 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="${
|
|
19802
|
+
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
19803
|
} else
|
|
19789
19804
|
p = `<h2 class="sass-com-nd-articule">${je(w)}</h2>`;
|
|
19790
19805
|
let b = "";
|
|
@@ -19797,7 +19812,7 @@ function Nh(e, t, n) {
|
|
|
19797
19812
|
let v;
|
|
19798
19813
|
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
19814
|
if (e.authors[0]?.internaluser) {
|
|
19800
|
-
const N = `/${t?.autor}/${e.authors[0]?.name}`, { finalHref: C } =
|
|
19815
|
+
const N = `/${t?.autor}/${e.authors[0]?.name}`, { finalHref: C } = Ut(
|
|
19801
19816
|
N,
|
|
19802
19817
|
!!c?.autor
|
|
19803
19818
|
);
|
|
@@ -19879,7 +19894,7 @@ export {
|
|
|
19879
19894
|
p1 as MainComponentServices,
|
|
19880
19895
|
Kc as Marfeel,
|
|
19881
19896
|
nf as MasNoticiasLazyLoader,
|
|
19882
|
-
|
|
19897
|
+
Pt as MiddleSection,
|
|
19883
19898
|
Od as Modulo1x3,
|
|
19884
19899
|
Dd as Modulo1x3Card,
|
|
19885
19900
|
Bd as Modulo1x4,
|
|
@@ -19900,7 +19915,7 @@ export {
|
|
|
19900
19915
|
dl as OrgList,
|
|
19901
19916
|
Ks as PreloadImages,
|
|
19902
19917
|
ls as REPORT_REASONS,
|
|
19903
|
-
|
|
19918
|
+
Nt as RESILIENT_FETCH_DEFAULTS,
|
|
19904
19919
|
h1 as ReCaptchaRender,
|
|
19905
19920
|
xs as Readest,
|
|
19906
19921
|
Y1 as RegisterForm,
|
|
@@ -19917,7 +19932,7 @@ export {
|
|
|
19917
19932
|
il as SoftwareApplication,
|
|
19918
19933
|
q1 as SourceButtons,
|
|
19919
19934
|
nl as SpeculationRules,
|
|
19920
|
-
|
|
19935
|
+
qt as Spin,
|
|
19921
19936
|
rf as StaticSlotWrapper,
|
|
19922
19937
|
Zl as SubscribeColumn,
|
|
19923
19938
|
Xl as SubscribeRow,
|
|
@@ -19937,9 +19952,9 @@ export {
|
|
|
19937
19952
|
Lo as assertImageSizesContract,
|
|
19938
19953
|
re as assetsImagesPrefixer,
|
|
19939
19954
|
gn as auditConfigOrigin,
|
|
19940
|
-
|
|
19955
|
+
Dt as bannersReplace,
|
|
19941
19956
|
Qo as batchedNewsFetch,
|
|
19942
|
-
|
|
19957
|
+
Bt as becomeVideoObject,
|
|
19943
19958
|
Yt as buildConfigMenuApiPath,
|
|
19944
19959
|
Ke as buildTagUrl,
|
|
19945
19960
|
kh as checkImageSizes,
|
|
@@ -19968,7 +19983,7 @@ export {
|
|
|
19968
19983
|
_o as formatNewsMeta,
|
|
19969
19984
|
ni as formatVideoData,
|
|
19970
19985
|
b1 as generalGetData,
|
|
19971
|
-
|
|
19986
|
+
Mt as getBucketHttpClient,
|
|
19972
19987
|
Dn as getCaptchaToken,
|
|
19973
19988
|
bm as getComments,
|
|
19974
19989
|
I as getConfig,
|
|
@@ -19982,7 +19997,7 @@ export {
|
|
|
19982
19997
|
fe as getImageUrl,
|
|
19983
19998
|
Hh as getItemFormated,
|
|
19984
19999
|
lt as getNextMeta,
|
|
19985
|
-
|
|
20000
|
+
St as getPage,
|
|
19986
20001
|
Ir as getPlayIcon,
|
|
19987
20002
|
f1 as getPreloadImages,
|
|
19988
20003
|
dt as getPrevMeta,
|
|
@@ -20019,7 +20034,7 @@ export {
|
|
|
20019
20034
|
Al as removePages,
|
|
20020
20035
|
pn as reportBucketOriginExhausted,
|
|
20021
20036
|
X1 as reportComment,
|
|
20022
|
-
|
|
20037
|
+
Rt as resilientFetch,
|
|
20023
20038
|
Wa as resolveBatchCount,
|
|
20024
20039
|
cs as resolveBucketMenuSubtype,
|
|
20025
20040
|
We as resolveBucketOriginUrl,
|
|
@@ -20029,7 +20044,7 @@ export {
|
|
|
20029
20044
|
wt as socialIcons,
|
|
20030
20045
|
u1 as takeConfigOriginAuditReport,
|
|
20031
20046
|
rt as toISOWithTimeZone,
|
|
20032
|
-
|
|
20047
|
+
Lt as toPublicEditionUrl,
|
|
20033
20048
|
Rh as toPublicShareUrl,
|
|
20034
20049
|
Do as urlReplaces,
|
|
20035
20050
|
Ur as usePlayIcon,
|