sass-template-common 0.9.73 → 0.9.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sass-template-common.js +633 -631
- package/dist/sass-template-common.umd.cjs +41 -41
- package/package.json +1 -1
|
@@ -177,7 +177,7 @@ function qn() {
|
|
|
177
177
|
(function(s, a) {
|
|
178
178
|
e.exports = a();
|
|
179
179
|
})(Va, (function() {
|
|
180
|
-
var s = 1e3, a = 6e4, r = 36e5, i = "millisecond", o = "second", c = "minute",
|
|
180
|
+
var s = 1e3, a = 6e4, r = 36e5, i = "millisecond", o = "second", c = "minute", d = "hour", l = "day", u = "week", m = "month", f = "quarter", A = "year", h = "date", g = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|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, E = { 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(q) {
|
|
181
181
|
var x = ["th", "st", "nd", "rd"], U = q % 100;
|
|
182
182
|
return "[" + q + (x[(U - 20) % 10] || x[U] || x[0]) + "]";
|
|
183
183
|
} }, N = function(q, x, U) {
|
|
@@ -193,7 +193,7 @@ function qn() {
|
|
|
193
193
|
}, a: function(q) {
|
|
194
194
|
return q < 0 ? Math.ceil(q) || 0 : Math.floor(q);
|
|
195
195
|
}, p: function(q) {
|
|
196
|
-
return { M: m, y: A, w:
|
|
196
|
+
return { M: m, y: A, w: u, d: l, D: h, h: d, m: c, s: o, ms: i, Q: f }[q] || String(q || "").toLowerCase().replace(/s$/, "");
|
|
197
197
|
}, u: function(q) {
|
|
198
198
|
return q === void 0;
|
|
199
199
|
} }, b = "en", I = {};
|
|
@@ -273,13 +273,13 @@ function qn() {
|
|
|
273
273
|
return F ? T(1, 0) : T(31, 11);
|
|
274
274
|
case m:
|
|
275
275
|
return F ? T(1, D) : T(0, D + 1);
|
|
276
|
-
case
|
|
276
|
+
case u:
|
|
277
277
|
var Y = this.$locale().weekStart || 0, ee = (G < Y ? G + 7 : G) - Y;
|
|
278
278
|
return T(F ? V - ee : V + (6 - ee), D);
|
|
279
279
|
case l:
|
|
280
280
|
case h:
|
|
281
281
|
return P(z + "Hours", 0);
|
|
282
|
-
case
|
|
282
|
+
case d:
|
|
283
283
|
return P(z + "Minutes", 1);
|
|
284
284
|
case c:
|
|
285
285
|
return P(z + "Seconds", 2);
|
|
@@ -291,7 +291,7 @@ function qn() {
|
|
|
291
291
|
}, x.endOf = function(U) {
|
|
292
292
|
return this.startOf(U, !1);
|
|
293
293
|
}, x.$set = function(U, M) {
|
|
294
|
-
var k, F = L.p(U), y = "set" + (this.$u ? "UTC" : ""), T = (k = {}, k[l] = y + "Date", k[h] = y + "Date", k[m] = y + "Month", k[A] = y + "FullYear", k[
|
|
294
|
+
var k, F = L.p(U), y = "set" + (this.$u ? "UTC" : ""), T = (k = {}, k[l] = y + "Date", k[h] = y + "Date", k[m] = y + "Month", k[A] = y + "FullYear", k[d] = y + "Hours", k[c] = y + "Minutes", k[o] = y + "Seconds", k[i] = y + "Milliseconds", k)[F], P = F === l ? this.$D + (M - this.$W) : M;
|
|
295
295
|
if (F === m || F === A) {
|
|
296
296
|
var G = this.clone().set(h, 1);
|
|
297
297
|
G.$d[T](P), G.init(), this.$d = G.set(h, Math.min(this.$D, G.daysInMonth())).$d;
|
|
@@ -311,8 +311,8 @@ function qn() {
|
|
|
311
311
|
if (y === m) return this.set(m, this.$M + U);
|
|
312
312
|
if (y === A) return this.set(A, this.$y + U);
|
|
313
313
|
if (y === l) return T(1);
|
|
314
|
-
if (y ===
|
|
315
|
-
var P = (k = {}, k[c] = a, k[
|
|
314
|
+
if (y === u) return T(7);
|
|
315
|
+
var P = (k = {}, k[c] = a, k[d] = r, k[o] = s, k)[y] || 1, G = this.$d.getTime() + U * P;
|
|
316
316
|
return L.w(G, this);
|
|
317
317
|
}, x.subtract = function(U, M) {
|
|
318
318
|
return this.add(-1 * U, M);
|
|
@@ -398,13 +398,13 @@ function qn() {
|
|
|
398
398
|
case f:
|
|
399
399
|
F = V() / 3;
|
|
400
400
|
break;
|
|
401
|
-
case
|
|
401
|
+
case u:
|
|
402
402
|
F = (D - G) / 6048e5;
|
|
403
403
|
break;
|
|
404
404
|
case l:
|
|
405
405
|
F = (D - G) / 864e5;
|
|
406
406
|
break;
|
|
407
|
-
case
|
|
407
|
+
case d:
|
|
408
408
|
F = D / r;
|
|
409
409
|
break;
|
|
410
410
|
case c:
|
|
@@ -437,7 +437,7 @@ function qn() {
|
|
|
437
437
|
return this.$d.toUTCString();
|
|
438
438
|
}, q;
|
|
439
439
|
})(), se = H.prototype;
|
|
440
|
-
return j.prototype = se, [["$ms", i], ["$s", o], ["$m", c], ["$H",
|
|
440
|
+
return j.prototype = se, [["$ms", i], ["$s", o], ["$m", c], ["$H", d], ["$W", l], ["$M", m], ["$y", A], ["$D", h]].forEach((function(q) {
|
|
441
441
|
se[q[1]] = function(x) {
|
|
442
442
|
return this.$g(x, q[0], q[1]);
|
|
443
443
|
};
|
|
@@ -460,10 +460,10 @@ function Wa() {
|
|
|
460
460
|
return function(s, a, r) {
|
|
461
461
|
s = s || {};
|
|
462
462
|
var i = a.prototype, o = { 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" };
|
|
463
|
-
function c(l,
|
|
464
|
-
return i.fromToBase(l,
|
|
463
|
+
function c(l, u, m, f) {
|
|
464
|
+
return i.fromToBase(l, u, m, f);
|
|
465
465
|
}
|
|
466
|
-
r.en.relativeTime = o, i.fromToBase = function(l,
|
|
466
|
+
r.en.relativeTime = o, i.fromToBase = function(l, u, m, f, A) {
|
|
467
467
|
for (var h, g, w, v = m.$locale().relativeTime || o, E = s.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 = E.length, S = 0; S < N; S += 1) {
|
|
468
468
|
var b = E[S];
|
|
469
469
|
b.d && (h = f ? r(l).diff(m, b.d, !0) : m.diff(l, b.d, !0));
|
|
@@ -471,25 +471,25 @@ function Wa() {
|
|
|
471
471
|
if (w = h > 0, I <= b.r || !b.r) {
|
|
472
472
|
I <= 1 && S > 0 && (b = E[S - 1]);
|
|
473
473
|
var R = v[b.l];
|
|
474
|
-
A && (I = A("" + I)), g = typeof R == "string" ? R.replace("%d", I) : R(I,
|
|
474
|
+
A && (I = A("" + I)), g = typeof R == "string" ? R.replace("%d", I) : R(I, u, b.l, w);
|
|
475
475
|
break;
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
|
-
if (
|
|
478
|
+
if (u) return g;
|
|
479
479
|
var Q = w ? v.future : v.past;
|
|
480
480
|
return typeof Q == "function" ? Q(g) : Q.replace("%s", g);
|
|
481
|
-
}, i.to = function(l,
|
|
482
|
-
return c(l,
|
|
483
|
-
}, i.from = function(l,
|
|
484
|
-
return c(l,
|
|
481
|
+
}, i.to = function(l, u) {
|
|
482
|
+
return c(l, u, this, !0);
|
|
483
|
+
}, i.from = function(l, u) {
|
|
484
|
+
return c(l, u, this);
|
|
485
485
|
};
|
|
486
|
-
var
|
|
486
|
+
var d = function(l) {
|
|
487
487
|
return l.$u ? r.utc() : r();
|
|
488
488
|
};
|
|
489
489
|
i.toNow = function(l) {
|
|
490
|
-
return this.to(
|
|
490
|
+
return this.to(d(this), l);
|
|
491
491
|
}, i.fromNow = function(l) {
|
|
492
|
-
return this.from(
|
|
492
|
+
return this.from(d(this), l);
|
|
493
493
|
};
|
|
494
494
|
};
|
|
495
495
|
}));
|
|
@@ -522,29 +522,29 @@ function Xa() {
|
|
|
522
522
|
})(Za, (function() {
|
|
523
523
|
var s = "minute", a = /[+-]\d\d(?::?\d\d)?/g, r = /([+-]|\d\d)/g;
|
|
524
524
|
return function(i, o, c) {
|
|
525
|
-
var
|
|
525
|
+
var d = o.prototype;
|
|
526
526
|
c.utc = function(g) {
|
|
527
527
|
var w = { date: g, utc: !0, args: arguments };
|
|
528
528
|
return new o(w);
|
|
529
|
-
},
|
|
529
|
+
}, d.utc = function(g) {
|
|
530
530
|
var w = c(this.toDate(), { locale: this.$L, utc: !0 });
|
|
531
531
|
return g ? w.add(this.utcOffset(), s) : w;
|
|
532
|
-
},
|
|
532
|
+
}, d.local = function() {
|
|
533
533
|
return c(this.toDate(), { locale: this.$L, utc: !1 });
|
|
534
534
|
};
|
|
535
|
-
var l =
|
|
536
|
-
|
|
535
|
+
var l = d.parse;
|
|
536
|
+
d.parse = function(g) {
|
|
537
537
|
g.utc && (this.$u = !0), this.$utils().u(g.$offset) || (this.$offset = g.$offset), l.call(this, g);
|
|
538
538
|
};
|
|
539
|
-
var
|
|
540
|
-
|
|
539
|
+
var u = d.init;
|
|
540
|
+
d.init = function() {
|
|
541
541
|
if (this.$u) {
|
|
542
542
|
var g = this.$d;
|
|
543
543
|
this.$y = g.getUTCFullYear(), this.$M = g.getUTCMonth(), this.$D = g.getUTCDate(), this.$W = g.getUTCDay(), this.$H = g.getUTCHours(), this.$m = g.getUTCMinutes(), this.$s = g.getUTCSeconds(), this.$ms = g.getUTCMilliseconds();
|
|
544
|
-
} else
|
|
544
|
+
} else u.call(this);
|
|
545
545
|
};
|
|
546
|
-
var m =
|
|
547
|
-
|
|
546
|
+
var m = d.utcOffset;
|
|
547
|
+
d.utcOffset = function(g, w) {
|
|
548
548
|
var v = this.$utils().u;
|
|
549
549
|
if (v(g)) return this.$u ? 0 : v(this.$offset) ? m.call(this) : this.$offset;
|
|
550
550
|
if (typeof g == "string" && (g = (function(b) {
|
|
@@ -561,26 +561,26 @@ function Xa() {
|
|
|
561
561
|
var S = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
562
562
|
return (N = this.local().add(E + S, s)).$offset = E, N.$x.$localOffset = S, N;
|
|
563
563
|
};
|
|
564
|
-
var f =
|
|
565
|
-
|
|
564
|
+
var f = d.format;
|
|
565
|
+
d.format = function(g) {
|
|
566
566
|
var w = g || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
567
567
|
return f.call(this, w);
|
|
568
|
-
},
|
|
568
|
+
}, d.valueOf = function() {
|
|
569
569
|
var g = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
570
570
|
return this.$d.valueOf() - 6e4 * g;
|
|
571
|
-
},
|
|
571
|
+
}, d.isUTC = function() {
|
|
572
572
|
return !!this.$u;
|
|
573
|
-
},
|
|
573
|
+
}, d.toISOString = function() {
|
|
574
574
|
return this.toDate().toISOString();
|
|
575
|
-
},
|
|
575
|
+
}, d.toString = function() {
|
|
576
576
|
return this.toDate().toUTCString();
|
|
577
577
|
};
|
|
578
|
-
var A =
|
|
579
|
-
|
|
578
|
+
var A = d.toDate;
|
|
579
|
+
d.toDate = function(g) {
|
|
580
580
|
return g === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : A.call(this);
|
|
581
581
|
};
|
|
582
|
-
var h =
|
|
583
|
-
|
|
582
|
+
var h = d.diff;
|
|
583
|
+
d.diff = function(g, w, v) {
|
|
584
584
|
if (g && this.$u === g.$u) return h.call(this, g, w, v);
|
|
585
585
|
var E = this.local(), N = c(g).local();
|
|
586
586
|
return h.call(E, N, w, v);
|
|
@@ -599,7 +599,7 @@ function nr() {
|
|
|
599
599
|
})(sr, (function() {
|
|
600
600
|
var s = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, a = {};
|
|
601
601
|
return function(r, i, o) {
|
|
602
|
-
var c,
|
|
602
|
+
var c, d = function(f, A, h) {
|
|
603
603
|
h === void 0 && (h = {});
|
|
604
604
|
var g = new Date(f), w = (function(v, E) {
|
|
605
605
|
E === void 0 && (E = {});
|
|
@@ -608,14 +608,14 @@ function nr() {
|
|
|
608
608
|
})(A, h);
|
|
609
609
|
return w.formatToParts(g);
|
|
610
610
|
}, l = function(f, A) {
|
|
611
|
-
for (var h =
|
|
611
|
+
for (var h = d(f, A), g = [], w = 0; w < h.length; w += 1) {
|
|
612
612
|
var v = h[w], E = v.type, N = v.value, S = s[E];
|
|
613
613
|
S >= 0 && (g[S] = parseInt(N, 10));
|
|
614
614
|
}
|
|
615
615
|
var b = g[3], I = b === 24 ? 0 : b, R = g[0] + "-" + g[1] + "-" + g[2] + " " + I + ":" + g[4] + ":" + g[5] + ":000", Q = +f;
|
|
616
616
|
return (o.utc(R).valueOf() - (Q -= Q % 1e3)) / 6e4;
|
|
617
|
-
},
|
|
618
|
-
|
|
617
|
+
}, u = i.prototype;
|
|
618
|
+
u.tz = function(f, A) {
|
|
619
619
|
f === void 0 && (f = c);
|
|
620
620
|
var h, g = this.utcOffset(), w = this.toDate(), v = w.toLocaleString("en-US", { timeZone: f }), E = Math.round((w - new Date(v)) / 1e3 / 60), N = 15 * -Math.round(w.getTimezoneOffset() / 15) - E;
|
|
621
621
|
if (!Number(N)) h = this.utcOffset(0, A);
|
|
@@ -624,14 +624,14 @@ function nr() {
|
|
|
624
624
|
h = h.add(g - S, "minute");
|
|
625
625
|
}
|
|
626
626
|
return h.$x.$timezone = f, h;
|
|
627
|
-
},
|
|
628
|
-
var A = this.$x.$timezone || o.tz.guess(), h =
|
|
627
|
+
}, u.offsetName = function(f) {
|
|
628
|
+
var A = this.$x.$timezone || o.tz.guess(), h = d(this.valueOf(), A, { timeZoneName: f }).find((function(g) {
|
|
629
629
|
return g.type.toLowerCase() === "timezonename";
|
|
630
630
|
}));
|
|
631
631
|
return h && h.value;
|
|
632
632
|
};
|
|
633
|
-
var m =
|
|
634
|
-
|
|
633
|
+
var m = u.startOf;
|
|
634
|
+
u.startOf = function(f, A) {
|
|
635
635
|
if (!this.$x || !this.$x.$timezone) return m.call(this, f, A);
|
|
636
636
|
var h = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
637
637
|
return m.call(h, f, A).tz(this.$x.$timezone, !0);
|
|
@@ -688,7 +688,7 @@ const Rt = (e) => e === "en" ? "en" : "es", Ue = (e, t) => {
|
|
|
688
688
|
r.forEach((A) => {
|
|
689
689
|
A.type !== "literal" && (i[A.type] = A.value);
|
|
690
690
|
});
|
|
691
|
-
const o = new Date(s.toLocaleString("en-US", { timeZone: "UTC" })),
|
|
691
|
+
const o = new Date(s.toLocaleString("en-US", { timeZone: "UTC" })), d = (new Date(s.toLocaleString("en-US", { timeZone: t })).getTime() - o.getTime()) / 6e4, l = d >= 0 ? "+" : "-", u = (A) => String(Math.floor(Math.abs(A))).padStart(2, "0"), m = u(d / 60), f = u(d % 60);
|
|
692
692
|
return `${i.year}-${i.month}-${i.day}T${i.hour}:${i.minute}:${i.second}${l}${m}:${f}`;
|
|
693
693
|
}, xe = (e, t = 136) => e && e.length > t ? `${e.substring(0, t)}...` : e;
|
|
694
694
|
function He(e) {
|
|
@@ -762,20 +762,20 @@ function as(e) {
|
|
|
762
762
|
const r = zs.exec(t);
|
|
763
763
|
if (!r) break;
|
|
764
764
|
const i = r.index + r[0].length;
|
|
765
|
-
let o = 1, c = i,
|
|
765
|
+
let o = 1, c = i, d = i;
|
|
766
766
|
for (; c < t.length && o > 0; ) {
|
|
767
767
|
const A = t.slice(c), h = A.match(/<div\b/i), g = A.match(/<\/div>/i), w = h?.index ?? -1, v = g?.index ?? -1;
|
|
768
768
|
if (v === -1) break;
|
|
769
769
|
const E = w === -1 ? 1 / 0 : c + w, N = c + v;
|
|
770
|
-
w !== -1 && w < v ? (o += 1, c = E + h[0].length) : (o -= 1,
|
|
770
|
+
w !== -1 && w < v ? (o += 1, c = E + h[0].length) : (o -= 1, d = N, c = N + g[0].length);
|
|
771
771
|
}
|
|
772
|
-
const l = t.slice(i,
|
|
772
|
+
const l = t.slice(i, d), u = [], m = /<span\b[^>]*\bdata-src=["']([^"']+)["']/gi;
|
|
773
773
|
let f;
|
|
774
774
|
for (; (f = m.exec(l)) !== null; ) {
|
|
775
775
|
const A = f[1];
|
|
776
|
-
A &&
|
|
776
|
+
A && u.push(A);
|
|
777
777
|
}
|
|
778
|
-
|
|
778
|
+
u.length > 0 && s.push(u), a = c;
|
|
779
779
|
}
|
|
780
780
|
return s;
|
|
781
781
|
}
|
|
@@ -827,18 +827,18 @@ const Ed = as, ur = async (e, t) => {
|
|
|
827
827
|
PUBLIC_ASSETS_URL: r,
|
|
828
828
|
PUBLIC_API_FRONT: i,
|
|
829
829
|
DATE_TIMEZONE: o = "America/Mexico_City"
|
|
830
|
-
} = _(), c = Mn(t.keywords) ?? "",
|
|
831
|
-
schemaImage:
|
|
830
|
+
} = _(), c = Mn(t.keywords) ?? "", d = t?.preview?.sizes ? t?.preview?.sizes[0]?.url : "", l = (r !== "false" ? r : i) ?? "", u = mr(a), m = t.main.title.article, f = Ws({
|
|
831
|
+
schemaImage: u,
|
|
832
832
|
socialImage: t?.social?.images?.facebook,
|
|
833
|
-
fallbackImage:
|
|
833
|
+
fallbackImage: d,
|
|
834
834
|
prefix: l,
|
|
835
835
|
defaultWidth: s.landscapeLogo.width,
|
|
836
836
|
defaultHeight: s.landscapeLogo.height,
|
|
837
837
|
alt: a?.description ?? m
|
|
838
838
|
}), A = Ws({
|
|
839
|
-
schemaImage:
|
|
839
|
+
schemaImage: u,
|
|
840
840
|
socialImage: t?.social?.images?.twitter,
|
|
841
|
-
fallbackImage:
|
|
841
|
+
fallbackImage: d,
|
|
842
842
|
prefix: l,
|
|
843
843
|
defaultWidth: s.twitterSummaryCard.width,
|
|
844
844
|
defaultHeight: s.twitterSummaryCard.height,
|
|
@@ -910,13 +910,13 @@ const Ed = as, ur = async (e, t) => {
|
|
|
910
910
|
let s = 0;
|
|
911
911
|
const a = (o) => t.push(o);
|
|
912
912
|
return e.title && typeof e.title == "string" && a(/* @__PURE__ */ n("title", { children: e.title }, `title-${s++}`)), Object.entries(pr).forEach(([o, c]) => {
|
|
913
|
-
const
|
|
914
|
-
|
|
913
|
+
const d = o.split(".").reduce((l, u) => l?.[u], e);
|
|
914
|
+
d && a(
|
|
915
915
|
/* @__PURE__ */ n(
|
|
916
916
|
"meta",
|
|
917
917
|
{
|
|
918
918
|
[c.attr]: c.value,
|
|
919
|
-
content: String(
|
|
919
|
+
content: String(d)
|
|
920
920
|
},
|
|
921
921
|
`meta-${s++}`
|
|
922
922
|
)
|
|
@@ -1150,8 +1150,8 @@ const Ed = as, ur = async (e, t) => {
|
|
|
1150
1150
|
/<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i
|
|
1151
1151
|
);
|
|
1152
1152
|
if (o) {
|
|
1153
|
-
const c = o[1] || o[3] || "",
|
|
1154
|
-
return Dn(c,
|
|
1153
|
+
const c = o[1] || o[3] || "", d = o[2]?.trim() || "";
|
|
1154
|
+
return Dn(c, d, i, e.name);
|
|
1155
1155
|
}
|
|
1156
1156
|
return r.trim() && /<[a-zA-Z]/.test(r) ? /* @__PURE__ */ n(
|
|
1157
1157
|
"div",
|
|
@@ -1308,7 +1308,7 @@ const De = (e, t) => {
|
|
|
1308
1308
|
}) => {
|
|
1309
1309
|
if (!e || !t || !s || !r)
|
|
1310
1310
|
return console.warn("createAssessment: faltan parámetros requeridos"), null;
|
|
1311
|
-
const c = `${Er}/${e}/assessments?key=${r}`,
|
|
1311
|
+
const c = `${Er}/${e}/assessments?key=${r}`, d = {
|
|
1312
1312
|
event: {
|
|
1313
1313
|
token: s,
|
|
1314
1314
|
siteKey: t,
|
|
@@ -1321,7 +1321,7 @@ const De = (e, t) => {
|
|
|
1321
1321
|
const l = await fetch(c, {
|
|
1322
1322
|
method: "POST",
|
|
1323
1323
|
headers: { "Content-Type": "application/json" },
|
|
1324
|
-
body: JSON.stringify(
|
|
1324
|
+
body: JSON.stringify(d)
|
|
1325
1325
|
});
|
|
1326
1326
|
if (!l.ok)
|
|
1327
1327
|
return console.error(
|
|
@@ -1329,18 +1329,18 @@ const De = (e, t) => {
|
|
|
1329
1329
|
l.status,
|
|
1330
1330
|
await l.text()
|
|
1331
1331
|
), null;
|
|
1332
|
-
const
|
|
1333
|
-
if (!
|
|
1332
|
+
const u = await l.json();
|
|
1333
|
+
if (!u?.tokenProperties?.valid)
|
|
1334
1334
|
return console.log(
|
|
1335
|
-
`CreateAssessment falló - token inválido: ${
|
|
1335
|
+
`CreateAssessment falló - token inválido: ${u?.tokenProperties?.invalidReason ?? "unknown"}`
|
|
1336
1336
|
), null;
|
|
1337
|
-
if (
|
|
1337
|
+
if (u.tokenProperties.action !== a)
|
|
1338
1338
|
return console.log(
|
|
1339
1339
|
"La acción en reCAPTCHA no coincide con la esperada:",
|
|
1340
1340
|
a
|
|
1341
1341
|
), null;
|
|
1342
|
-
const m =
|
|
1343
|
-
return m !== void 0 && (console.log("reCAPTCHA score:", m),
|
|
1342
|
+
const m = u?.riskAnalysis?.score;
|
|
1343
|
+
return m !== void 0 && (console.log("reCAPTCHA score:", m), u?.riskAnalysis?.reasons?.forEach((f) => console.log(f))), typeof m == "number" ? m : null;
|
|
1344
1344
|
} catch (l) {
|
|
1345
1345
|
return console.error("createAssessment error:", l), null;
|
|
1346
1346
|
}
|
|
@@ -1379,26 +1379,26 @@ const qd = async (e, t, s) => {
|
|
|
1379
1379
|
...r
|
|
1380
1380
|
};
|
|
1381
1381
|
if (i === "videoYouTube" || i === "videoEmbedded" || o) {
|
|
1382
|
-
const
|
|
1382
|
+
const d = await t.getNewsMultimedia({
|
|
1383
1383
|
path: a.link.internal,
|
|
1384
1384
|
imagesizes: s
|
|
1385
1385
|
});
|
|
1386
|
-
if (
|
|
1386
|
+
if (d && d.data)
|
|
1387
1387
|
return {
|
|
1388
1388
|
...e,
|
|
1389
1389
|
preview: c,
|
|
1390
|
-
videos:
|
|
1390
|
+
videos: d.data.data[0].videos ?? []
|
|
1391
1391
|
};
|
|
1392
1392
|
}
|
|
1393
1393
|
if (i === "fotogaleria") {
|
|
1394
|
-
const
|
|
1394
|
+
const d = await t.getNewsMultimedia({
|
|
1395
1395
|
path: a.link.internal,
|
|
1396
1396
|
imagesizes: s
|
|
1397
1397
|
});
|
|
1398
|
-
if (
|
|
1398
|
+
if (d && d.data) {
|
|
1399
1399
|
const l = await Promise.all(
|
|
1400
|
-
|
|
1401
|
-
...
|
|
1400
|
+
d.data.data[0].gallery.map(async (u) => ({
|
|
1401
|
+
...u
|
|
1402
1402
|
}))
|
|
1403
1403
|
);
|
|
1404
1404
|
return {
|
|
@@ -1580,13 +1580,13 @@ const qd = async (e, t, s) => {
|
|
|
1580
1580
|
}) => {
|
|
1581
1581
|
const { PUBLIC_PUBLICATION_ID: r = "" } = _();
|
|
1582
1582
|
let i = [];
|
|
1583
|
-
const o = s === "/" || s === "/index.html" ? void 0 : _r(Gr[a]({ pathname: s, config: e })), c = Lr[a] ?? void 0,
|
|
1583
|
+
const o = s === "/" || s === "/index.html" ? void 0 : _r(Gr[a]({ pathname: s, config: e })), c = Lr[a] ?? void 0, d = {
|
|
1584
1584
|
newstype: e.newsType,
|
|
1585
1585
|
publication: Number(r),
|
|
1586
1586
|
...o && c ? { query: `${c}:('${o}')` } : {}
|
|
1587
1587
|
};
|
|
1588
1588
|
try {
|
|
1589
|
-
const l = await As(
|
|
1589
|
+
const l = await As(d, "/news-list-summary", t);
|
|
1590
1590
|
l?.data?.data ? i = l.data.data : console.warn(
|
|
1591
1591
|
"getSchemas responded but did not contain expected data:",
|
|
1592
1592
|
l
|
|
@@ -1620,16 +1620,16 @@ const Br = async ({
|
|
|
1620
1620
|
const { PUBLIC_SERVICE_PREFIX: r, PUBLIC_IS_SUB_PUBLICATION: i } = _();
|
|
1621
1621
|
let o = [];
|
|
1622
1622
|
try {
|
|
1623
|
-
const c = t.socialBlockLogo?.url ? new URL(t.socialBlockLogo.url).pathname : void 0,
|
|
1623
|
+
const c = t.socialBlockLogo?.url ? new URL(t.socialBlockLogo.url).pathname : void 0, d = t.landscapeLogo?.url ? new URL(t.landscapeLogo.url).pathname : void 0, l = {
|
|
1624
1624
|
path: e,
|
|
1625
|
-
image:
|
|
1625
|
+
image: d,
|
|
1626
1626
|
logo: c,
|
|
1627
1627
|
url: t.siteUrl,
|
|
1628
1628
|
name: t.name,
|
|
1629
1629
|
logow: t.socialBlockLogo?.width,
|
|
1630
1630
|
logoh: t.socialBlockLogo?.height,
|
|
1631
1631
|
authorurl: s + "/autor/"
|
|
1632
|
-
},
|
|
1632
|
+
}, u = e.split("/")[1], m = u == "liveblogs" || u == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], f = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema, A = r !== "false" && i !== "false" ? "/" + r + f : f;
|
|
1633
1633
|
o = (await Promise.all(
|
|
1634
1634
|
m.map(async (g) => {
|
|
1635
1635
|
const w = g === "/news-breadcrumb" ? { ...l, prefixtag: A } : g === "/news" && t.schemasNewsParams ? { ...l, ...t.schemasNewsParams } : l;
|
|
@@ -1639,7 +1639,7 @@ const Br = async ({
|
|
|
1639
1639
|
} catch (c) {
|
|
1640
1640
|
console.log("Error fetching schemas:", c);
|
|
1641
1641
|
}
|
|
1642
|
-
return o.map((c,
|
|
1642
|
+
return o.map((c, d) => /* @__PURE__ */ n(
|
|
1643
1643
|
"script",
|
|
1644
1644
|
{
|
|
1645
1645
|
type: "application/ld+json",
|
|
@@ -1647,7 +1647,7 @@ const Br = async ({
|
|
|
1647
1647
|
__html: kt(JSON.stringify(c))
|
|
1648
1648
|
}
|
|
1649
1649
|
},
|
|
1650
|
-
|
|
1650
|
+
d
|
|
1651
1651
|
));
|
|
1652
1652
|
}, Or = ({ config: e, socials: t }) => {
|
|
1653
1653
|
const s = {
|
|
@@ -2381,8 +2381,8 @@ const Ni = (e) => {
|
|
|
2381
2381
|
t[r] = a;
|
|
2382
2382
|
const i = Ke(a) ? [] : {};
|
|
2383
2383
|
return it(a, (o, c) => {
|
|
2384
|
-
const
|
|
2385
|
-
!ze(
|
|
2384
|
+
const d = s(o, r + 1);
|
|
2385
|
+
!ze(d) && (i[c] = d);
|
|
2386
2386
|
}), t[r] = void 0, i;
|
|
2387
2387
|
}
|
|
2388
2388
|
}
|
|
@@ -2502,11 +2502,11 @@ Object.defineProperties(Z, $n);
|
|
|
2502
2502
|
Object.defineProperty(Jn, "isAxiosError", { value: !0 });
|
|
2503
2503
|
Z.from = (e, t, s, a, r, i) => {
|
|
2504
2504
|
const o = Object.create(Jn);
|
|
2505
|
-
C.toFlatObject(e, o, function(
|
|
2506
|
-
return
|
|
2505
|
+
C.toFlatObject(e, o, function(u) {
|
|
2506
|
+
return u !== Error.prototype;
|
|
2507
2507
|
}, (l) => l !== "isAxiosError");
|
|
2508
|
-
const c = e && e.message ? e.message : "Error",
|
|
2509
|
-
return Z.call(o, c,
|
|
2508
|
+
const c = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
|
|
2509
|
+
return Z.call(o, c, d, s, a, r), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", i && Object.assign(o, i), o;
|
|
2510
2510
|
};
|
|
2511
2511
|
const Ui = null;
|
|
2512
2512
|
function is(e) {
|
|
@@ -2536,7 +2536,7 @@ function Ot(e, t, s) {
|
|
|
2536
2536
|
}, !1, function(g, w) {
|
|
2537
2537
|
return !C.isUndefined(w[g]);
|
|
2538
2538
|
});
|
|
2539
|
-
const a = s.metaTokens, r = s.visitor ||
|
|
2539
|
+
const a = s.metaTokens, r = s.visitor || u, i = s.dots, o = s.indexes, d = (s.Blob || typeof Blob < "u" && Blob) && C.isSpecCompliantForm(t);
|
|
2540
2540
|
if (!C.isFunction(r))
|
|
2541
2541
|
throw new TypeError("visitor must be a function");
|
|
2542
2542
|
function l(h) {
|
|
@@ -2545,11 +2545,11 @@ function Ot(e, t, s) {
|
|
|
2545
2545
|
return h.toISOString();
|
|
2546
2546
|
if (C.isBoolean(h))
|
|
2547
2547
|
return h.toString();
|
|
2548
|
-
if (!
|
|
2548
|
+
if (!d && C.isBlob(h))
|
|
2549
2549
|
throw new Z("Blob is not supported. Use a Buffer instead.");
|
|
2550
|
-
return C.isArrayBuffer(h) || C.isTypedArray(h) ?
|
|
2550
|
+
return C.isArrayBuffer(h) || C.isTypedArray(h) ? d && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
|
2551
2551
|
}
|
|
2552
|
-
function
|
|
2552
|
+
function u(h, g, w) {
|
|
2553
2553
|
let v = h;
|
|
2554
2554
|
if (h && !w && typeof h == "object") {
|
|
2555
2555
|
if (C.endsWith(g, "{}"))
|
|
@@ -2566,7 +2566,7 @@ function Ot(e, t, s) {
|
|
|
2566
2566
|
return is(h) ? !0 : (t.append(Js(w, g, i), l(h)), !1);
|
|
2567
2567
|
}
|
|
2568
2568
|
const m = [], f = Object.assign(Ri, {
|
|
2569
|
-
defaultVisitor:
|
|
2569
|
+
defaultVisitor: u,
|
|
2570
2570
|
convertValue: l,
|
|
2571
2571
|
isVisitable: is
|
|
2572
2572
|
});
|
|
@@ -2738,8 +2738,8 @@ function sa(e) {
|
|
|
2738
2738
|
function t(s, a, r, i) {
|
|
2739
2739
|
let o = s[i++];
|
|
2740
2740
|
if (o === "__proto__") return !0;
|
|
2741
|
-
const c = Number.isFinite(+o),
|
|
2742
|
-
return o = !o && C.isArray(r) ? r.length : o,
|
|
2741
|
+
const c = Number.isFinite(+o), d = i >= s.length;
|
|
2742
|
+
return o = !o && C.isArray(r) ? r.length : o, d ? (C.hasOwnProp(r, o) ? r[o] = [r[o], a] : r[o] = a, !c) : ((!r[o] || !C.isObject(r[o])) && (r[o] = []), t(s, a, r[o], i) && C.isArray(r[o]) && (r[o] = Qi(r[o])), !c);
|
|
2743
2743
|
}
|
|
2744
2744
|
if (C.isFormData(e) && C.isFunction(e.entries)) {
|
|
2745
2745
|
const s = {};
|
|
@@ -2777,10 +2777,10 @@ const ot = {
|
|
|
2777
2777
|
if (a.indexOf("application/x-www-form-urlencoded") > -1)
|
|
2778
2778
|
return Gi(t, this.formSerializer).toString();
|
|
2779
2779
|
if ((c = C.isFileList(t)) || a.indexOf("multipart/form-data") > -1) {
|
|
2780
|
-
const
|
|
2780
|
+
const d = this.env && this.env.FormData;
|
|
2781
2781
|
return Ot(
|
|
2782
2782
|
c ? { "files[]": t } : t,
|
|
2783
|
-
|
|
2783
|
+
d && new d(),
|
|
2784
2784
|
this.formSerializer
|
|
2785
2785
|
);
|
|
2786
2786
|
}
|
|
@@ -2898,24 +2898,24 @@ let Ae = class {
|
|
|
2898
2898
|
}
|
|
2899
2899
|
set(t, s, a) {
|
|
2900
2900
|
const r = this;
|
|
2901
|
-
function i(c,
|
|
2902
|
-
const
|
|
2903
|
-
if (!
|
|
2901
|
+
function i(c, d, l) {
|
|
2902
|
+
const u = Ze(d);
|
|
2903
|
+
if (!u)
|
|
2904
2904
|
throw new Error("header name must be a non-empty string");
|
|
2905
|
-
const m = C.findKey(r,
|
|
2906
|
-
(!m || r[m] === void 0 || l === !0 || l === void 0 && r[m] !== !1) && (r[m ||
|
|
2905
|
+
const m = C.findKey(r, u);
|
|
2906
|
+
(!m || r[m] === void 0 || l === !0 || l === void 0 && r[m] !== !1) && (r[m || d] = St(c));
|
|
2907
2907
|
}
|
|
2908
|
-
const o = (c,
|
|
2908
|
+
const o = (c, d) => C.forEach(c, (l, u) => i(l, u, d));
|
|
2909
2909
|
if (C.isPlainObject(t) || t instanceof this.constructor)
|
|
2910
2910
|
o(t, s);
|
|
2911
2911
|
else if (C.isString(t) && (t = t.trim()) && !Wi(t))
|
|
2912
2912
|
o(Fi(t), s);
|
|
2913
2913
|
else if (C.isObject(t) && C.isIterable(t)) {
|
|
2914
|
-
let c = {},
|
|
2915
|
-
for (const
|
|
2916
|
-
if (!C.isArray(
|
|
2914
|
+
let c = {}, d, l;
|
|
2915
|
+
for (const u of t) {
|
|
2916
|
+
if (!C.isArray(u))
|
|
2917
2917
|
throw TypeError("Object iterator must return a key-value pair");
|
|
2918
|
-
c[l =
|
|
2918
|
+
c[l = u[0]] = (d = c[l]) ? C.isArray(d) ? [...d, u[1]] : [d, u[1]] : u[1];
|
|
2919
2919
|
}
|
|
2920
2920
|
o(c, s);
|
|
2921
2921
|
} else
|
|
@@ -3063,26 +3063,26 @@ function $i(e, t) {
|
|
|
3063
3063
|
e = e || 10;
|
|
3064
3064
|
const s = new Array(e), a = new Array(e);
|
|
3065
3065
|
let r = 0, i = 0, o;
|
|
3066
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
3067
|
-
const l = Date.now(),
|
|
3068
|
-
o || (o = l), s[r] =
|
|
3066
|
+
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
3067
|
+
const l = Date.now(), u = a[i];
|
|
3068
|
+
o || (o = l), s[r] = d, a[r] = l;
|
|
3069
3069
|
let m = i, f = 0;
|
|
3070
3070
|
for (; m !== r; )
|
|
3071
3071
|
f += s[m++], m = m % e;
|
|
3072
3072
|
if (r = (r + 1) % e, r === i && (i = (i + 1) % e), l - o < t)
|
|
3073
3073
|
return;
|
|
3074
|
-
const A =
|
|
3074
|
+
const A = u && l - u;
|
|
3075
3075
|
return A ? Math.round(f * 1e3 / A) : void 0;
|
|
3076
3076
|
};
|
|
3077
3077
|
}
|
|
3078
3078
|
function Zi(e, t) {
|
|
3079
3079
|
let s = 0, a = 1e3 / t, r, i;
|
|
3080
|
-
const o = (l,
|
|
3081
|
-
s =
|
|
3080
|
+
const o = (l, u = Date.now()) => {
|
|
3081
|
+
s = u, r = null, i && (clearTimeout(i), i = null), e(...l);
|
|
3082
3082
|
};
|
|
3083
3083
|
return [(...l) => {
|
|
3084
|
-
const
|
|
3085
|
-
m >= a ? o(l,
|
|
3084
|
+
const u = Date.now(), m = u - s;
|
|
3085
|
+
m >= a ? o(l, u) : (r = l, i || (i = setTimeout(() => {
|
|
3086
3086
|
i = null, o(r);
|
|
3087
3087
|
}, a - m)));
|
|
3088
3088
|
}, () => r && o(r)];
|
|
@@ -3091,15 +3091,15 @@ const It = (e, t, s = 3) => {
|
|
|
3091
3091
|
let a = 0;
|
|
3092
3092
|
const r = $i(50, 250);
|
|
3093
3093
|
return Zi((i) => {
|
|
3094
|
-
const o = i.loaded, c = i.lengthComputable ? i.total : void 0,
|
|
3094
|
+
const o = i.loaded, c = i.lengthComputable ? i.total : void 0, d = o - a, l = r(d), u = o <= c;
|
|
3095
3095
|
a = o;
|
|
3096
3096
|
const m = {
|
|
3097
3097
|
loaded: o,
|
|
3098
3098
|
total: c,
|
|
3099
3099
|
progress: c ? o / c : void 0,
|
|
3100
|
-
bytes:
|
|
3100
|
+
bytes: d,
|
|
3101
3101
|
rate: l || void 0,
|
|
3102
|
-
estimated: l && c &&
|
|
3102
|
+
estimated: l && c && u ? (c - o) / l : void 0,
|
|
3103
3103
|
event: i,
|
|
3104
3104
|
lengthComputable: c != null,
|
|
3105
3105
|
[t ? "download" : "upload"]: !0
|
|
@@ -3159,32 +3159,32 @@ const sn = (e) => e instanceof Ae ? { ...e } : e;
|
|
|
3159
3159
|
function _e(e, t) {
|
|
3160
3160
|
t = t || {};
|
|
3161
3161
|
const s = {};
|
|
3162
|
-
function a(l,
|
|
3163
|
-
return C.isPlainObject(l) && C.isPlainObject(
|
|
3162
|
+
function a(l, u, m, f) {
|
|
3163
|
+
return C.isPlainObject(l) && C.isPlainObject(u) ? C.merge.call({ caseless: f }, l, u) : C.isPlainObject(u) ? C.merge({}, u) : C.isArray(u) ? u.slice() : u;
|
|
3164
3164
|
}
|
|
3165
|
-
function r(l,
|
|
3166
|
-
if (C.isUndefined(
|
|
3165
|
+
function r(l, u, m, f) {
|
|
3166
|
+
if (C.isUndefined(u)) {
|
|
3167
3167
|
if (!C.isUndefined(l))
|
|
3168
3168
|
return a(void 0, l, m, f);
|
|
3169
|
-
} else return a(l,
|
|
3169
|
+
} else return a(l, u, m, f);
|
|
3170
3170
|
}
|
|
3171
|
-
function i(l,
|
|
3172
|
-
if (!C.isUndefined(
|
|
3173
|
-
return a(void 0,
|
|
3171
|
+
function i(l, u) {
|
|
3172
|
+
if (!C.isUndefined(u))
|
|
3173
|
+
return a(void 0, u);
|
|
3174
3174
|
}
|
|
3175
|
-
function o(l,
|
|
3176
|
-
if (C.isUndefined(
|
|
3175
|
+
function o(l, u) {
|
|
3176
|
+
if (C.isUndefined(u)) {
|
|
3177
3177
|
if (!C.isUndefined(l))
|
|
3178
3178
|
return a(void 0, l);
|
|
3179
|
-
} else return a(void 0,
|
|
3179
|
+
} else return a(void 0, u);
|
|
3180
3180
|
}
|
|
3181
|
-
function c(l,
|
|
3181
|
+
function c(l, u, m) {
|
|
3182
3182
|
if (m in t)
|
|
3183
|
-
return a(l,
|
|
3183
|
+
return a(l, u);
|
|
3184
3184
|
if (m in e)
|
|
3185
3185
|
return a(void 0, l);
|
|
3186
3186
|
}
|
|
3187
|
-
const
|
|
3187
|
+
const d = {
|
|
3188
3188
|
url: i,
|
|
3189
3189
|
method: i,
|
|
3190
3190
|
data: i,
|
|
@@ -3213,11 +3213,11 @@ function _e(e, t) {
|
|
|
3213
3213
|
socketPath: o,
|
|
3214
3214
|
responseEncoding: o,
|
|
3215
3215
|
validateStatus: c,
|
|
3216
|
-
headers: (l,
|
|
3216
|
+
headers: (l, u, m) => r(sn(l), sn(u), m, !0)
|
|
3217
3217
|
};
|
|
3218
|
-
return C.forEach(Object.keys({ ...e, ...t }), function(
|
|
3219
|
-
const m = u
|
|
3220
|
-
C.isUndefined(f) && m !== c || (s[
|
|
3218
|
+
return C.forEach(Object.keys({ ...e, ...t }), function(u) {
|
|
3219
|
+
const m = d[u] || r, f = m(e[u], t[u], u);
|
|
3220
|
+
C.isUndefined(f) && m !== c || (s[u] = f);
|
|
3221
3221
|
}), s;
|
|
3222
3222
|
}
|
|
3223
3223
|
const ia = (e) => {
|
|
@@ -3230,15 +3230,15 @@ const ia = (e) => {
|
|
|
3230
3230
|
if (de.hasStandardBrowserEnv || de.hasStandardBrowserWebWorkerEnv)
|
|
3231
3231
|
o.setContentType(void 0);
|
|
3232
3232
|
else if (C.isFunction(s.getHeaders)) {
|
|
3233
|
-
const
|
|
3234
|
-
Object.entries(
|
|
3235
|
-
l.includes(
|
|
3233
|
+
const d = s.getHeaders(), l = ["content-type", "content-length"];
|
|
3234
|
+
Object.entries(d).forEach(([u, m]) => {
|
|
3235
|
+
l.includes(u.toLowerCase()) && o.set(u, m);
|
|
3236
3236
|
});
|
|
3237
3237
|
}
|
|
3238
3238
|
}
|
|
3239
3239
|
if (de.hasStandardBrowserEnv && (a && C.isFunction(a) && (a = a(t)), a || a !== !1 && Xi(t.url))) {
|
|
3240
|
-
const
|
|
3241
|
-
|
|
3240
|
+
const d = r && i && eo.read(i);
|
|
3241
|
+
d && o.set(r, d);
|
|
3242
3242
|
}
|
|
3243
3243
|
return t;
|
|
3244
3244
|
}, no = typeof XMLHttpRequest < "u", ao = no && function(e) {
|
|
@@ -3246,9 +3246,9 @@ const ia = (e) => {
|
|
|
3246
3246
|
const r = ia(e);
|
|
3247
3247
|
let i = r.data;
|
|
3248
3248
|
const o = Ae.from(r.headers).normalize();
|
|
3249
|
-
let { responseType: c, onUploadProgress:
|
|
3249
|
+
let { responseType: c, onUploadProgress: d, onDownloadProgress: l } = r, u, m, f, A, h;
|
|
3250
3250
|
function g() {
|
|
3251
|
-
A && A(), h && h(), r.cancelToken && r.cancelToken.unsubscribe(
|
|
3251
|
+
A && A(), h && h(), r.cancelToken && r.cancelToken.unsubscribe(u), r.signal && r.signal.removeEventListener("abort", u);
|
|
3252
3252
|
}
|
|
3253
3253
|
let w = new XMLHttpRequest();
|
|
3254
3254
|
w.open(r.method.toUpperCase(), r.url, !0), w.timeout = r.timeout;
|
|
@@ -3289,9 +3289,9 @@ const ia = (e) => {
|
|
|
3289
3289
|
)), w = null;
|
|
3290
3290
|
}, i === void 0 && o.setContentType(null), "setRequestHeader" in w && C.forEach(o.toJSON(), function(S, b) {
|
|
3291
3291
|
w.setRequestHeader(b, S);
|
|
3292
|
-
}), C.isUndefined(r.withCredentials) || (w.withCredentials = !!r.withCredentials), c && c !== "json" && (w.responseType = r.responseType), l && ([f, h] = It(l, !0), w.addEventListener("progress", f)),
|
|
3292
|
+
}), C.isUndefined(r.withCredentials) || (w.withCredentials = !!r.withCredentials), c && c !== "json" && (w.responseType = r.responseType), l && ([f, h] = It(l, !0), w.addEventListener("progress", f)), d && w.upload && ([m, A] = It(d), w.upload.addEventListener("progress", m), w.upload.addEventListener("loadend", A)), (r.cancelToken || r.signal) && (u = (N) => {
|
|
3293
3293
|
w && (a(!N || N.type ? new Je(null, e, w) : N), w.abort(), w = null);
|
|
3294
|
-
}, r.cancelToken && r.cancelToken.subscribe(
|
|
3294
|
+
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
3295
3295
|
const E = Ji(r.url);
|
|
3296
3296
|
if (E && de.protocols.indexOf(E) === -1) {
|
|
3297
3297
|
a(new Z("Unsupported protocol " + E + ":", Z.ERR_BAD_REQUEST, e));
|
|
@@ -3306,8 +3306,8 @@ const ia = (e) => {
|
|
|
3306
3306
|
const i = function(l) {
|
|
3307
3307
|
if (!r) {
|
|
3308
3308
|
r = !0, c();
|
|
3309
|
-
const
|
|
3310
|
-
a.abort(
|
|
3309
|
+
const u = l instanceof Error ? l : this.reason;
|
|
3310
|
+
a.abort(u instanceof Z ? u : new Je(u instanceof Error ? u.message : u));
|
|
3311
3311
|
}
|
|
3312
3312
|
};
|
|
3313
3313
|
let o = t && setTimeout(() => {
|
|
@@ -3319,8 +3319,8 @@ const ia = (e) => {
|
|
|
3319
3319
|
}), e = null);
|
|
3320
3320
|
};
|
|
3321
3321
|
e.forEach((l) => l.addEventListener("abort", i));
|
|
3322
|
-
const { signal:
|
|
3323
|
-
return
|
|
3322
|
+
const { signal: d } = a;
|
|
3323
|
+
return d.unsubscribe = () => C.asap(c), d;
|
|
3324
3324
|
}
|
|
3325
3325
|
}, io = function* (e, t) {
|
|
3326
3326
|
let s = e.byteLength;
|
|
@@ -3352,29 +3352,29 @@ const ia = (e) => {
|
|
|
3352
3352
|
}
|
|
3353
3353
|
}, nn = (e, t, s, a) => {
|
|
3354
3354
|
const r = oo(e, t);
|
|
3355
|
-
let i = 0, o, c = (
|
|
3356
|
-
o || (o = !0, a && a(
|
|
3355
|
+
let i = 0, o, c = (d) => {
|
|
3356
|
+
o || (o = !0, a && a(d));
|
|
3357
3357
|
};
|
|
3358
3358
|
return new ReadableStream({
|
|
3359
|
-
async pull(
|
|
3359
|
+
async pull(d) {
|
|
3360
3360
|
try {
|
|
3361
|
-
const { done: l, value:
|
|
3361
|
+
const { done: l, value: u } = await r.next();
|
|
3362
3362
|
if (l) {
|
|
3363
|
-
c(),
|
|
3363
|
+
c(), d.close();
|
|
3364
3364
|
return;
|
|
3365
3365
|
}
|
|
3366
|
-
let m =
|
|
3366
|
+
let m = u.byteLength;
|
|
3367
3367
|
if (s) {
|
|
3368
3368
|
let f = i += m;
|
|
3369
3369
|
s(f);
|
|
3370
3370
|
}
|
|
3371
|
-
|
|
3371
|
+
d.enqueue(new Uint8Array(u));
|
|
3372
3372
|
} catch (l) {
|
|
3373
3373
|
throw c(l), l;
|
|
3374
3374
|
}
|
|
3375
3375
|
},
|
|
3376
|
-
cancel(
|
|
3377
|
-
return c(
|
|
3376
|
+
cancel(d) {
|
|
3377
|
+
return c(d), r.return();
|
|
3378
3378
|
}
|
|
3379
3379
|
}, {
|
|
3380
3380
|
highWaterMark: 2
|
|
@@ -3398,7 +3398,7 @@ const ia = (e) => {
|
|
|
3398
3398
|
const { fetch: t, Request: s, Response: a } = e, r = t ? mt(t) : typeof fetch == "function", i = mt(s), o = mt(a);
|
|
3399
3399
|
if (!r)
|
|
3400
3400
|
return !1;
|
|
3401
|
-
const c = r && mt(rn),
|
|
3401
|
+
const c = r && mt(rn), d = r && (typeof on == "function" ? /* @__PURE__ */ ((h) => (g) => h.encode(g))(new on()) : async (h) => new Uint8Array(await new s(h).arrayBuffer())), l = i && c && cn(() => {
|
|
3402
3402
|
let h = !1;
|
|
3403
3403
|
const g = new s(de.origin, {
|
|
3404
3404
|
body: new rn(),
|
|
@@ -3408,8 +3408,8 @@ const ia = (e) => {
|
|
|
3408
3408
|
}
|
|
3409
3409
|
}).headers.has("Content-Type");
|
|
3410
3410
|
return h && !g;
|
|
3411
|
-
}),
|
|
3412
|
-
stream:
|
|
3411
|
+
}), u = o && c && cn(() => C.isReadableStream(new a("").body)), m = {
|
|
3412
|
+
stream: u && ((h) => h.body)
|
|
3413
3413
|
};
|
|
3414
3414
|
r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((h) => {
|
|
3415
3415
|
!m[h] && (m[h] = (g, w) => {
|
|
@@ -3432,7 +3432,7 @@ const ia = (e) => {
|
|
|
3432
3432
|
if (C.isArrayBufferView(h) || C.isArrayBuffer(h))
|
|
3433
3433
|
return h.byteLength;
|
|
3434
3434
|
if (C.isURLSearchParams(h) && (h = h + ""), C.isString(h))
|
|
3435
|
-
return (await
|
|
3435
|
+
return (await d(h)).byteLength;
|
|
3436
3436
|
}, A = async (h, g) => {
|
|
3437
3437
|
const w = C.toFiniteNumber(h.getContentLength());
|
|
3438
3438
|
return w ?? f(g);
|
|
@@ -3485,8 +3485,8 @@ const ia = (e) => {
|
|
|
3485
3485
|
};
|
|
3486
3486
|
se = i && new s(g, M);
|
|
3487
3487
|
let k = await (i ? L(se, j) : L(g, M));
|
|
3488
|
-
const F =
|
|
3489
|
-
if (
|
|
3488
|
+
const F = u && (R === "stream" || R === "response");
|
|
3489
|
+
if (u && (b || F && q)) {
|
|
3490
3490
|
const T = {};
|
|
3491
3491
|
["status", "statusText", "headers"].forEach((V) => {
|
|
3492
3492
|
T[V] = k[V];
|
|
@@ -3530,9 +3530,9 @@ const ia = (e) => {
|
|
|
3530
3530
|
r,
|
|
3531
3531
|
s
|
|
3532
3532
|
];
|
|
3533
|
-
let o = i.length, c = o,
|
|
3533
|
+
let o = i.length, c = o, d, l, u = mo;
|
|
3534
3534
|
for (; c--; )
|
|
3535
|
-
|
|
3535
|
+
d = i[c], l = u.get(d), l === void 0 && u.set(d, l = c ? /* @__PURE__ */ new Map() : uo(t)), u = l;
|
|
3536
3536
|
return l;
|
|
3537
3537
|
};
|
|
3538
3538
|
oa();
|
|
@@ -3569,7 +3569,7 @@ function fo(e, t) {
|
|
|
3569
3569
|
}
|
|
3570
3570
|
if (!r) {
|
|
3571
3571
|
const o = Object.entries(i).map(
|
|
3572
|
-
([
|
|
3572
|
+
([d, l]) => `adapter ${d} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
3573
3573
|
);
|
|
3574
3574
|
let c = s ? o.length > 1 ? `since :
|
|
3575
3575
|
` + o.map(ln).join(`
|
|
@@ -3651,9 +3651,9 @@ function go(e, t, s) {
|
|
|
3651
3651
|
for (; r-- > 0; ) {
|
|
3652
3652
|
const i = a[r], o = t[i];
|
|
3653
3653
|
if (o) {
|
|
3654
|
-
const c = e[i],
|
|
3655
|
-
if (
|
|
3656
|
-
throw new Z("option " + i + " must be " +
|
|
3654
|
+
const c = e[i], d = c === void 0 || o(c, i, e);
|
|
3655
|
+
if (d !== !0)
|
|
3656
|
+
throw new Z("option " + i + " must be " + d, Z.ERR_BAD_OPTION_VALUE);
|
|
3657
3657
|
continue;
|
|
3658
3658
|
}
|
|
3659
3659
|
if (s !== !0)
|
|
@@ -3723,20 +3723,20 @@ let qe = class {
|
|
|
3723
3723
|
}
|
|
3724
3724
|
), s.headers = Ae.concat(o, i);
|
|
3725
3725
|
const c = [];
|
|
3726
|
-
let
|
|
3726
|
+
let d = !0;
|
|
3727
3727
|
this.interceptors.request.forEach(function(g) {
|
|
3728
|
-
typeof g.runWhen == "function" && g.runWhen(s) === !1 || (
|
|
3728
|
+
typeof g.runWhen == "function" && g.runWhen(s) === !1 || (d = d && g.synchronous, c.unshift(g.fulfilled, g.rejected));
|
|
3729
3729
|
});
|
|
3730
3730
|
const l = [];
|
|
3731
3731
|
this.interceptors.response.forEach(function(g) {
|
|
3732
3732
|
l.push(g.fulfilled, g.rejected);
|
|
3733
3733
|
});
|
|
3734
|
-
let
|
|
3735
|
-
if (!
|
|
3734
|
+
let u, m = 0, f;
|
|
3735
|
+
if (!d) {
|
|
3736
3736
|
const h = [dn.bind(this), void 0];
|
|
3737
|
-
for (h.unshift(...c), h.push(...l), f = h.length,
|
|
3738
|
-
|
|
3739
|
-
return
|
|
3737
|
+
for (h.unshift(...c), h.push(...l), f = h.length, u = Promise.resolve(s); m < f; )
|
|
3738
|
+
u = u.then(h[m++], h[m++]);
|
|
3739
|
+
return u;
|
|
3740
3740
|
}
|
|
3741
3741
|
f = c.length;
|
|
3742
3742
|
let A = s;
|
|
@@ -3750,13 +3750,13 @@ let qe = class {
|
|
|
3750
3750
|
}
|
|
3751
3751
|
}
|
|
3752
3752
|
try {
|
|
3753
|
-
|
|
3753
|
+
u = dn.call(this, A);
|
|
3754
3754
|
} catch (h) {
|
|
3755
3755
|
return Promise.reject(h);
|
|
3756
3756
|
}
|
|
3757
3757
|
for (m = 0, f = l.length; m < f; )
|
|
3758
|
-
|
|
3759
|
-
return
|
|
3758
|
+
u = u.then(l[m++], l[m++]);
|
|
3759
|
+
return u;
|
|
3760
3760
|
}
|
|
3761
3761
|
getUri(t) {
|
|
3762
3762
|
t = _e(this.defaults, t);
|
|
@@ -4322,8 +4322,8 @@ class Be {
|
|
|
4322
4322
|
]), o = He(
|
|
4323
4323
|
r
|
|
4324
4324
|
)?.data, c = o?.[0];
|
|
4325
|
-
let
|
|
4326
|
-
c?.authors?.length === 1 && c?.config?.showauthor && c.authors[0]?.internaluser && (
|
|
4325
|
+
let d = [];
|
|
4326
|
+
c?.authors?.length === 1 && c?.config?.showauthor && c.authors[0]?.internaluser && (d = (await this.getAutorInfo({
|
|
4327
4327
|
user: c.authors[0].name,
|
|
4328
4328
|
exclude: a.getAutorInfo,
|
|
4329
4329
|
imagesizes: s.getAutorInfo
|
|
@@ -4359,7 +4359,7 @@ class Be {
|
|
|
4359
4359
|
}
|
|
4360
4360
|
return {
|
|
4361
4361
|
news: o ?? [],
|
|
4362
|
-
autor:
|
|
4362
|
+
autor: d,
|
|
4363
4363
|
newsRelatedResponses: g,
|
|
4364
4364
|
itemList: He(i)?.data ?? [],
|
|
4365
4365
|
newsRelatedListResponses: h,
|
|
@@ -4394,7 +4394,7 @@ class bo extends Be {
|
|
|
4394
4394
|
}), Promise.reject(l)));
|
|
4395
4395
|
if (!s || !s.data || !s.data.data || s.data.data.length === 0 || !s.data.data[0]?.value || !s.data.data[0].block || !this.props?.imgSizes[s.data.data[0].block])
|
|
4396
4396
|
return { blockSass: s ? s.data.data : void 0 };
|
|
4397
|
-
const a = s.data.data[0] ?? [], r = a?.value.split("="), i = r[0] ?? "", o = r[1] ?? "", c = a?.block,
|
|
4397
|
+
const a = s.data.data[0] ?? [], r = a?.value.split("="), i = r[0] ?? "", o = r[1] ?? "", c = a?.block, d = {
|
|
4398
4398
|
videos: async () => {
|
|
4399
4399
|
const l = {
|
|
4400
4400
|
size: this.props?.imgSizes[c].size ?? 5,
|
|
@@ -4403,20 +4403,20 @@ class bo extends Be {
|
|
|
4403
4403
|
};
|
|
4404
4404
|
this.IS_MULTIPUBLICATION && (l.publication = this.MULTIPUBLICATION_FETCHES ?? this.PUBLIC_PUBLICATION_ID);
|
|
4405
4405
|
try {
|
|
4406
|
-
const
|
|
4406
|
+
const u = await this.getvideoListAdvanced(l);
|
|
4407
4407
|
return {
|
|
4408
4408
|
blockSass: s.data.data,
|
|
4409
|
-
content:
|
|
4409
|
+
content: u ? u.data : void 0
|
|
4410
4410
|
};
|
|
4411
|
-
} catch (
|
|
4412
|
-
return console.log(`[/videos-list-advanced] Error: ${
|
|
4411
|
+
} catch (u) {
|
|
4412
|
+
return console.log(`[/videos-list-advanced] Error: ${u?.message}`), X({
|
|
4413
4413
|
service: "DynamicBlockServices.getBlockSass.videos",
|
|
4414
4414
|
endpoint: "/videos-list-advanced",
|
|
4415
4415
|
method: "GET",
|
|
4416
4416
|
params: l,
|
|
4417
|
-
message:
|
|
4418
|
-
status:
|
|
4419
|
-
error:
|
|
4417
|
+
message: u?.message ?? "Unknown error",
|
|
4418
|
+
status: u?.response?.status,
|
|
4419
|
+
error: u
|
|
4420
4420
|
}), {
|
|
4421
4421
|
blockSass: s.data.data,
|
|
4422
4422
|
content: void 0
|
|
@@ -4424,16 +4424,16 @@ class bo extends Be {
|
|
|
4424
4424
|
}
|
|
4425
4425
|
},
|
|
4426
4426
|
tag: async () => {
|
|
4427
|
-
const { USE_QUOTE_IN_QUERY_TAG_HOME: l } = _(),
|
|
4427
|
+
const { USE_QUOTE_IN_QUERY_TAG_HOME: l } = _(), u = {
|
|
4428
4428
|
query: l ? 'claves:("' + o + '")' : "claves:(" + o + ")",
|
|
4429
4429
|
size: this.props?.imgSizes[c]?.size ?? 3,
|
|
4430
4430
|
newstype: this.props?.config?.newsType,
|
|
4431
4431
|
exclude: this.exclude,
|
|
4432
4432
|
imagesizes: this.props?.imgSizes[c]?.imageSizes
|
|
4433
4433
|
};
|
|
4434
|
-
this.IS_MULTIPUBLICATION && (
|
|
4434
|
+
this.IS_MULTIPUBLICATION && (u.publication = this.MULTIPUBLICATION_FETCHES ?? this.PUBLIC_PUBLICATION_ID);
|
|
4435
4435
|
try {
|
|
4436
|
-
const m = await this.getNewsListAvanced(
|
|
4436
|
+
const m = await this.getNewsListAvanced(u);
|
|
4437
4437
|
return {
|
|
4438
4438
|
blockSass: s.data.data,
|
|
4439
4439
|
content: m ? m.data : void 0
|
|
@@ -4443,7 +4443,7 @@ class bo extends Be {
|
|
|
4443
4443
|
service: "DynamicBlockServices.getBlockSass.tag",
|
|
4444
4444
|
endpoint: "/news-list-advanced",
|
|
4445
4445
|
method: "GET",
|
|
4446
|
-
params:
|
|
4446
|
+
params: u,
|
|
4447
4447
|
message: m?.message ?? "Unknown error",
|
|
4448
4448
|
status: m?.response?.status,
|
|
4449
4449
|
error: m
|
|
@@ -4463,20 +4463,20 @@ class bo extends Be {
|
|
|
4463
4463
|
};
|
|
4464
4464
|
this.IS_MULTIPUBLICATION && (l.publication = this.MULTIPUBLICATION_FETCHES ?? this.PUBLIC_PUBLICATION_ID);
|
|
4465
4465
|
try {
|
|
4466
|
-
const
|
|
4466
|
+
const u = await this.getNewsListAvanced(l);
|
|
4467
4467
|
return {
|
|
4468
4468
|
blockSass: s.data.data,
|
|
4469
|
-
content:
|
|
4469
|
+
content: u ? u.data : void 0
|
|
4470
4470
|
};
|
|
4471
|
-
} catch (
|
|
4472
|
-
return console.log(`[/news-list-advanced] Error: ${
|
|
4471
|
+
} catch (u) {
|
|
4472
|
+
return console.log(`[/news-list-advanced] Error: ${u?.message}`), X({
|
|
4473
4473
|
service: "DynamicBlockServices.getBlockSass.seccion",
|
|
4474
4474
|
endpoint: "/news-list-advanced",
|
|
4475
4475
|
method: "GET",
|
|
4476
4476
|
params: l,
|
|
4477
|
-
message:
|
|
4478
|
-
status:
|
|
4479
|
-
error:
|
|
4477
|
+
message: u?.message ?? "Unknown error",
|
|
4478
|
+
status: u?.response?.status,
|
|
4479
|
+
error: u
|
|
4480
4480
|
}), {
|
|
4481
4481
|
blockSass: s.data.data,
|
|
4482
4482
|
content: void 0
|
|
@@ -4484,8 +4484,8 @@ class bo extends Be {
|
|
|
4484
4484
|
}
|
|
4485
4485
|
}
|
|
4486
4486
|
};
|
|
4487
|
-
if (i in
|
|
4488
|
-
const l =
|
|
4487
|
+
if (i in d) {
|
|
4488
|
+
const l = d[i];
|
|
4489
4489
|
return await l();
|
|
4490
4490
|
}
|
|
4491
4491
|
return { blockSass: s.data.data };
|
|
@@ -4535,15 +4535,15 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4535
4535
|
imgSizesVideo: a,
|
|
4536
4536
|
axiosApi: e,
|
|
4537
4537
|
exclude: o
|
|
4538
|
-
}),
|
|
4538
|
+
}), d = [];
|
|
4539
4539
|
for (let m = 1; m <= r; m++)
|
|
4540
4540
|
for (let f = 1; f <= i; f++)
|
|
4541
|
-
|
|
4541
|
+
d.push({
|
|
4542
4542
|
func: c.getBlockSass,
|
|
4543
4543
|
slot_id: m + "_" + f
|
|
4544
4544
|
});
|
|
4545
4545
|
const l = await Promise.allSettled([
|
|
4546
|
-
...
|
|
4546
|
+
...d.map((m) => m.func({ template: "Home_" + m.slot_id }))
|
|
4547
4547
|
]);
|
|
4548
4548
|
return (() => {
|
|
4549
4549
|
const m = {};
|
|
@@ -4617,18 +4617,18 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4617
4617
|
return i ? { ...t, ...i } : fe(t);
|
|
4618
4618
|
},
|
|
4619
4619
|
seccion: async (e) => {
|
|
4620
|
-
const { meta: t, config: s, pathname: a, slug: r, axiosApi: i } = e, o = new Be({ config: s, axiosApi: i }), c = a.split("/"),
|
|
4620
|
+
const { meta: t, config: s, pathname: a, slug: r, axiosApi: i } = e, o = new Be({ config: s, axiosApi: i }), c = a.split("/"), d = [], l = ut(a), u = Number(s.newsListLimit) ?? 0;
|
|
4621
4621
|
try {
|
|
4622
4622
|
const m = await o.getNewsListSection({
|
|
4623
4623
|
section: r,
|
|
4624
|
-
size:
|
|
4624
|
+
size: u,
|
|
4625
4625
|
newstype: s.newsType,
|
|
4626
4626
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
4627
4627
|
page: l
|
|
4628
4628
|
});
|
|
4629
4629
|
if (!m) return fe(t);
|
|
4630
4630
|
const f = m.data.data, A = f[0];
|
|
4631
|
-
return f.length <
|
|
4631
|
+
return f.length < u || d.push({ rel: "next", url: lt(s, c, l) }), l > 1 && d.push({ rel: "prev", url: dt(s, c, l) }), {
|
|
4632
4632
|
...t,
|
|
4633
4633
|
title: `Últimas Noticias de ${A.info.section?.name} | ${s.name}`,
|
|
4634
4634
|
description: `Todas las últimas noticias de ${A.info.section?.name} en ${s.name}`,
|
|
@@ -4639,7 +4639,7 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4639
4639
|
manifest: s.manifest,
|
|
4640
4640
|
icons: {
|
|
4641
4641
|
...s.icons,
|
|
4642
|
-
other:
|
|
4642
|
+
other: d
|
|
4643
4643
|
},
|
|
4644
4644
|
other: {
|
|
4645
4645
|
"msapplication-TileImage": s.msapplicationTileImage ?? ""
|
|
@@ -4663,11 +4663,11 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4663
4663
|
}
|
|
4664
4664
|
},
|
|
4665
4665
|
tema: async (e) => {
|
|
4666
|
-
const { meta: t, config: s, pathname: a, slug: r, axiosApi: i } = e, o = new Be({ config: s, axiosApi: i }), c = a.split("/"),
|
|
4666
|
+
const { meta: t, config: s, pathname: a, slug: r, axiosApi: i } = e, o = new Be({ config: s, axiosApi: i }), c = a.split("/"), d = [], l = ut(a), u = Number(s.newsListLimit) ?? 0, m = /([t][0-9]{4})\w+/.exec(r || ""), f = m && m?.length > 0 ? m[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: A } = _();
|
|
4667
4667
|
try {
|
|
4668
4668
|
const h = await o.getNewsListTags({
|
|
4669
4669
|
tagid: f,
|
|
4670
|
-
size:
|
|
4670
|
+
size: u,
|
|
4671
4671
|
tagtype: Number(A),
|
|
4672
4672
|
newstype: s.newsType,
|
|
4673
4673
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
@@ -4675,10 +4675,10 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4675
4675
|
});
|
|
4676
4676
|
if (!h) return fe(t);
|
|
4677
4677
|
const g = h.data.entity;
|
|
4678
|
-
return g ? (h.data.data?.length <
|
|
4678
|
+
return g ? (h.data.data?.length < u || d.push({
|
|
4679
4679
|
rel: "next",
|
|
4680
4680
|
url: lt(s, c, l)
|
|
4681
|
-
}), l > 1 &&
|
|
4681
|
+
}), l > 1 && d.push({
|
|
4682
4682
|
rel: "prev",
|
|
4683
4683
|
url: dt(s, c, l)
|
|
4684
4684
|
}), {
|
|
@@ -4692,7 +4692,7 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4692
4692
|
manifest: s.manifest,
|
|
4693
4693
|
icons: {
|
|
4694
4694
|
...s.icons,
|
|
4695
|
-
other:
|
|
4695
|
+
other: d
|
|
4696
4696
|
},
|
|
4697
4697
|
other: {
|
|
4698
4698
|
"msapplication-TileImage": s.msapplicationTileImage ?? ""
|
|
@@ -4745,17 +4745,17 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4745
4745
|
}
|
|
4746
4746
|
},
|
|
4747
4747
|
videos: async (e) => {
|
|
4748
|
-
const { meta: t, config: s, pathname: a, axiosApi: r } = e, i = new Be({ config: s, axiosApi: r }), o = a.split("/"), c = [],
|
|
4748
|
+
const { meta: t, config: s, pathname: a, axiosApi: r } = e, i = new Be({ config: s, axiosApi: r }), o = a.split("/"), c = [], d = ut(a), l = await i.getvideoListAdvanced({
|
|
4749
4749
|
size: Number(s.newsListLimit),
|
|
4750
4750
|
query: "Category:(videohome OR destacadoseccion OR seccion)",
|
|
4751
|
-
page: Number(
|
|
4751
|
+
page: Number(d)
|
|
4752
4752
|
});
|
|
4753
4753
|
return l ? (l.data.data.length < Number(s.newsListLimit) || c.push({
|
|
4754
4754
|
rel: "next",
|
|
4755
|
-
url: lt(s, o,
|
|
4756
|
-
}),
|
|
4755
|
+
url: lt(s, o, d)
|
|
4756
|
+
}), d > 1 && c.push({
|
|
4757
4757
|
rel: "prev",
|
|
4758
|
-
url: dt(s, o,
|
|
4758
|
+
url: dt(s, o, d)
|
|
4759
4759
|
}), {
|
|
4760
4760
|
...t,
|
|
4761
4761
|
title: "Videos | " + s.name,
|
|
@@ -4776,11 +4776,11 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4776
4776
|
pages: async (e, t) => {
|
|
4777
4777
|
const { meta: s, config: a, pathname: r, slug: i, axiosApi: o } = e, c = new Be({ config: a, axiosApi: o });
|
|
4778
4778
|
try {
|
|
4779
|
-
const
|
|
4779
|
+
const d = await c.getPages({
|
|
4780
4780
|
path: t || a.servicePrefix + `/pages/${i}`
|
|
4781
4781
|
});
|
|
4782
|
-
if (!
|
|
4783
|
-
const l =
|
|
4782
|
+
if (!d) return fe(s);
|
|
4783
|
+
const l = d.data.data[0]?.info.title ?? "";
|
|
4784
4784
|
return {
|
|
4785
4785
|
...s,
|
|
4786
4786
|
title: `${a.name} | ${l}`,
|
|
@@ -4789,8 +4789,8 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4789
4789
|
canonical: a.siteUrl + r
|
|
4790
4790
|
}
|
|
4791
4791
|
};
|
|
4792
|
-
} catch (
|
|
4793
|
-
return console.error(
|
|
4792
|
+
} catch (d) {
|
|
4793
|
+
return console.error(d), fe(s);
|
|
4794
4794
|
}
|
|
4795
4795
|
},
|
|
4796
4796
|
contacto: (e) => {
|
|
@@ -4834,7 +4834,7 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4834
4834
|
};
|
|
4835
4835
|
},
|
|
4836
4836
|
autor: async (e) => {
|
|
4837
|
-
const { meta: t, config: s, pathname: a, imgSizes: r, slug: i, axiosApi: o } = e, c = new Be({ config: s, axiosApi: o, imgSizes: r }),
|
|
4837
|
+
const { meta: t, config: s, pathname: a, imgSizes: r, slug: i, axiosApi: o } = e, c = new Be({ config: s, axiosApi: o, imgSizes: r }), d = a.split("/"), l = [], u = ut(a);
|
|
4838
4838
|
try {
|
|
4839
4839
|
const m = await c.getAutorInfo({
|
|
4840
4840
|
user: i,
|
|
@@ -4843,17 +4843,17 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4843
4843
|
}), f = await c.getNewsListAutor({
|
|
4844
4844
|
size: Number(s.newsListLimit) ?? 0,
|
|
4845
4845
|
user: i,
|
|
4846
|
-
page:
|
|
4846
|
+
page: u,
|
|
4847
4847
|
newstype: s.newsType,
|
|
4848
4848
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
4849
4849
|
imagesizes: r.md
|
|
4850
4850
|
});
|
|
4851
4851
|
return f ? (f.data.data.length < Number(s.newsListLimit) || l.push({
|
|
4852
4852
|
rel: "next",
|
|
4853
|
-
url: lt(s,
|
|
4854
|
-
}),
|
|
4853
|
+
url: lt(s, d, u)
|
|
4854
|
+
}), u > 1 && l.push({
|
|
4855
4855
|
rel: "prev",
|
|
4856
|
-
url: dt(s,
|
|
4856
|
+
url: dt(s, d, u)
|
|
4857
4857
|
}), {
|
|
4858
4858
|
...t,
|
|
4859
4859
|
title: `Últimas Noticias de ${m?.data.data[0]?.info.fullname} | ${s.name}`,
|
|
@@ -4880,7 +4880,7 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4880
4880
|
listAutor: t,
|
|
4881
4881
|
config: s
|
|
4882
4882
|
}) => {
|
|
4883
|
-
const a = t?.[0] ?? null, { DATE_TIMEZONE: r = "America/Mexico_City", PUBLIC_ASSETS_URL: i } = _(), o = r, c = a?.info?.date?.modified ? Fe(a.info.date.modified, o) : void 0,
|
|
4883
|
+
const a = t?.[0] ?? null, { DATE_TIMEZONE: r = "America/Mexico_City", PUBLIC_ASSETS_URL: i } = _(), o = r, c = a?.info?.date?.modified ? Fe(a.info.date.modified, o) : void 0, d = e.addtional?.USER_JOBSTART ? Fe(e.addtional.USER_JOBSTART, o) : void 0, l = i && i !== "false" ? i : "", u = {
|
|
4884
4884
|
"@context": "https://schema.org",
|
|
4885
4885
|
"@type": "ProfilePage",
|
|
4886
4886
|
mainEntity: {
|
|
@@ -4900,7 +4900,7 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4900
4900
|
url: s.siteUrl + (s.paths.autor !== "" ? `/${s.paths.autor}/` : "/") + e.info.name
|
|
4901
4901
|
}
|
|
4902
4902
|
};
|
|
4903
|
-
return
|
|
4903
|
+
return d && (u.dateCreated = d), c && (u.dateModified = c), e?.addtional?.USER_SHOWEMAIL && (u.mainEntity.email = e.info.email), /* @__PURE__ */ n("script", { type: "application/ld+json", children: JSON.stringify(u) });
|
|
4904
4904
|
};
|
|
4905
4905
|
async function iu({
|
|
4906
4906
|
axiosApi: e,
|
|
@@ -4920,9 +4920,9 @@ async function iu({
|
|
|
4920
4920
|
pathname: i,
|
|
4921
4921
|
slug: o,
|
|
4922
4922
|
texts: c,
|
|
4923
|
-
query:
|
|
4923
|
+
query: d,
|
|
4924
4924
|
autor: l,
|
|
4925
|
-
listAutor:
|
|
4925
|
+
listAutor: u,
|
|
4926
4926
|
currentNew: m,
|
|
4927
4927
|
banners: f,
|
|
4928
4928
|
schemasImages: A,
|
|
@@ -4944,7 +4944,7 @@ async function iu({
|
|
|
4944
4944
|
imgSizes: a,
|
|
4945
4945
|
slug: o,
|
|
4946
4946
|
texts: c,
|
|
4947
|
-
query:
|
|
4947
|
+
query: d,
|
|
4948
4948
|
axiosApi: e,
|
|
4949
4949
|
internalPath: h,
|
|
4950
4950
|
schemasImages: R
|
|
@@ -5008,7 +5008,7 @@ async function iu({
|
|
|
5008
5008
|
No,
|
|
5009
5009
|
{
|
|
5010
5010
|
autor: l,
|
|
5011
|
-
listAutor:
|
|
5011
|
+
listAutor: u,
|
|
5012
5012
|
config: g
|
|
5013
5013
|
}
|
|
5014
5014
|
),
|
|
@@ -5042,11 +5042,11 @@ const ou = ({
|
|
|
5042
5042
|
config: i,
|
|
5043
5043
|
internalPath: o,
|
|
5044
5044
|
currentNew: c,
|
|
5045
|
-
tagsParsed:
|
|
5045
|
+
tagsParsed: d,
|
|
5046
5046
|
scriptReplaces: l,
|
|
5047
|
-
body_custom_elements:
|
|
5047
|
+
body_custom_elements: u
|
|
5048
5048
|
}) => {
|
|
5049
|
-
const m = Ga(c,
|
|
5049
|
+
const m = Ga(c, d), f = jn[t]({
|
|
5050
5050
|
pathname: a,
|
|
5051
5051
|
slug: r,
|
|
5052
5052
|
config: i,
|
|
@@ -5060,7 +5060,7 @@ const ou = ({
|
|
|
5060
5060
|
/* @__PURE__ */ n(_a, {}),
|
|
5061
5061
|
/* @__PURE__ */ n(ja, { dimensionValues: m }),
|
|
5062
5062
|
/* @__PURE__ */ n(Qa, {}),
|
|
5063
|
-
|
|
5063
|
+
u,
|
|
5064
5064
|
/* @__PURE__ */ n(yr, { name: "bodyafter", banners: s, replaces: w })
|
|
5065
5065
|
] });
|
|
5066
5066
|
}, So = () => /* @__PURE__ */ n(
|
|
@@ -5099,7 +5099,7 @@ function Eo({
|
|
|
5099
5099
|
enableDrag: i,
|
|
5100
5100
|
onIndexChange: o
|
|
5101
5101
|
}) {
|
|
5102
|
-
const [c,
|
|
5102
|
+
const [c, d] = $(!1), [l, u] = $(0), [m, f] = $(0), [A, h] = $(0), [g, w] = $(0), [v, E] = $(null), N = Ma(null), [S, b] = $(1), I = ce(() => {
|
|
5103
5103
|
if (r) return 1;
|
|
5104
5104
|
const y = N.current?.offsetWidth || window.innerWidth, T = s + a, P = Math.floor(y / T);
|
|
5105
5105
|
return Math.max(1, P);
|
|
@@ -5139,7 +5139,7 @@ function Eo({
|
|
|
5139
5139
|
[r, s, a, I, W]
|
|
5140
5140
|
), H = ce(
|
|
5141
5141
|
(y) => {
|
|
5142
|
-
i && (
|
|
5142
|
+
i && (u(y), f(y), h(0), w(Date.now()), d(!0), document.body.classList.add("dragging"));
|
|
5143
5143
|
},
|
|
5144
5144
|
[i]
|
|
5145
5145
|
), se = ce(
|
|
@@ -5166,7 +5166,7 @@ function Eo({
|
|
|
5166
5166
|
const Y = Math.min(Q, e + z);
|
|
5167
5167
|
o(Y);
|
|
5168
5168
|
}
|
|
5169
|
-
|
|
5169
|
+
d(!1), h(0), document.body.classList.remove("dragging"), document.removeEventListener("mousemove", q), document.removeEventListener("mouseup", x), y.clientX === l && v?.dispatchEvent(new PointerEvent("click"));
|
|
5170
5170
|
},
|
|
5171
5171
|
[
|
|
5172
5172
|
c,
|
|
@@ -5235,8 +5235,8 @@ function lu(e) {
|
|
|
5235
5235
|
cardGap: i = 20,
|
|
5236
5236
|
fullPageWidth: o = !1,
|
|
5237
5237
|
pagination: c = !1,
|
|
5238
|
-
enableDrag:
|
|
5239
|
-
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [
|
|
5238
|
+
enableDrag: d = !0
|
|
5239
|
+
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [u, m] = $(0), [f, A] = $(!1);
|
|
5240
5240
|
Te(() => {
|
|
5241
5241
|
A(!0);
|
|
5242
5242
|
const j = document.getElementById("ssr-dummy_" + s);
|
|
@@ -5251,12 +5251,12 @@ function lu(e) {
|
|
|
5251
5251
|
actualVisibleItems: N,
|
|
5252
5252
|
dragHandlers: S
|
|
5253
5253
|
} = Eo({
|
|
5254
|
-
currentIndex:
|
|
5254
|
+
currentIndex: u,
|
|
5255
5255
|
totalItems: l.length,
|
|
5256
5256
|
cardWidth: r,
|
|
5257
5257
|
cardGap: i,
|
|
5258
5258
|
fullPageWidth: o,
|
|
5259
|
-
enableDrag:
|
|
5259
|
+
enableDrag: d,
|
|
5260
5260
|
onIndexChange: m
|
|
5261
5261
|
}), b = ce(
|
|
5262
5262
|
(j) => {
|
|
@@ -5265,14 +5265,14 @@ function lu(e) {
|
|
|
5265
5265
|
},
|
|
5266
5266
|
[v]
|
|
5267
5267
|
), I = ce(() => {
|
|
5268
|
-
b(
|
|
5269
|
-
}, [
|
|
5270
|
-
b(
|
|
5271
|
-
}, [
|
|
5268
|
+
b(u - 1);
|
|
5269
|
+
}, [u, b]), R = ce(() => {
|
|
5270
|
+
b(u + 1);
|
|
5271
|
+
}, [u, b]);
|
|
5272
5272
|
if (!f) return;
|
|
5273
|
-
const Q = E(
|
|
5273
|
+
const Q = E(u, g), W = o ? `translateX(${Q}%)` : `translateX(${Q}px)`;
|
|
5274
5274
|
return /* @__PURE__ */ p("div", { className: `${s}- carrousel-container`, children: [
|
|
5275
|
-
|
|
5275
|
+
u > 0 && /* @__PURE__ */ n(
|
|
5276
5276
|
"button",
|
|
5277
5277
|
{
|
|
5278
5278
|
className: "visible-arrow left",
|
|
@@ -5298,7 +5298,7 @@ function lu(e) {
|
|
|
5298
5298
|
)
|
|
5299
5299
|
}
|
|
5300
5300
|
),
|
|
5301
|
-
|
|
5301
|
+
u < v && /* @__PURE__ */ n(
|
|
5302
5302
|
"button",
|
|
5303
5303
|
{
|
|
5304
5304
|
className: "visible-arrow right",
|
|
@@ -5332,7 +5332,7 @@ function lu(e) {
|
|
|
5332
5332
|
style: {
|
|
5333
5333
|
gap: i,
|
|
5334
5334
|
margin: i === 0 ? "0" : "0 0.5rem 1rem",
|
|
5335
|
-
cursor:
|
|
5335
|
+
cursor: d ? h ? "grabbing" : "grab" : "default",
|
|
5336
5336
|
justifyContent: "start !important"
|
|
5337
5337
|
},
|
|
5338
5338
|
...S,
|
|
@@ -5372,7 +5372,7 @@ function lu(e) {
|
|
|
5372
5372
|
c && /* @__PURE__ */ n("nav", { className: "carrousel-pagination", children: Array.from(
|
|
5373
5373
|
{ length: Math.ceil(l.length / N) },
|
|
5374
5374
|
(j, L) => {
|
|
5375
|
-
const H = Math.floor(
|
|
5375
|
+
const H = Math.floor(u / N) === L;
|
|
5376
5376
|
return /* @__PURE__ */ n(
|
|
5377
5377
|
"li",
|
|
5378
5378
|
{
|
|
@@ -5467,11 +5467,11 @@ const et = (e) => /* @__PURE__ */ n("div", { className: "su-flex su-flex-col sas
|
|
|
5467
5467
|
);
|
|
5468
5468
|
};
|
|
5469
5469
|
function O(e) {
|
|
5470
|
-
const { PUBLIC_SERVICE_PREFIX: t, PUBLIC_IS_SUB_PUBLICATION: s, SUB_PUBLICATION_PREFIX_IN_ROUTES: a } = _(), { block_subPublication: r } = e, i = xo(e.href), o = e.hasOwnProperty("href") && e.href ? (e.href ?? "").includes("/buscar") : !1, c = a?.tema && i,
|
|
5470
|
+
const { PUBLIC_SERVICE_PREFIX: t, PUBLIC_IS_SUB_PUBLICATION: s, SUB_PUBLICATION_PREFIX_IN_ROUTES: a } = _(), { block_subPublication: r } = e, i = xo(e.href), o = e.hasOwnProperty("href") && e.href ? (e.href ?? "").includes("/buscar") : !1, c = a?.tema && i, d = a?.buscar && o, l = !r && !c && !d && t !== "false" && s !== "false" ? "/" + t : "", u = /^(https?:)?\/\//.test(e.href) || /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e.href), m = e.href?.split("/")[1] === l.replace("/", ""), f = {
|
|
5471
5471
|
...e,
|
|
5472
|
-
href: (!
|
|
5472
|
+
href: (!u && !m ? l : "") + (l && e.href === "/" ? "" : e.href ?? "")
|
|
5473
5473
|
};
|
|
5474
|
-
return
|
|
5474
|
+
return u ? /* @__PURE__ */ n(
|
|
5475
5475
|
"a",
|
|
5476
5476
|
{
|
|
5477
5477
|
target: f.target ?? "_blank",
|
|
@@ -5482,8 +5482,8 @@ function O(e) {
|
|
|
5482
5482
|
) : /* @__PURE__ */ n("a", { ...f, children: e.children });
|
|
5483
5483
|
}
|
|
5484
5484
|
const xo = (e) => !!/([t][0-9]{4})\w+/.exec(e || ""), oe = (e) => {
|
|
5485
|
-
const { PUBLIC_ASSETS_URL: t } = _();
|
|
5486
|
-
return (
|
|
5485
|
+
const { PUBLIC_ASSETS_URL: t, PUBLIC_ENV: s, PUBLIC_SERVICE_PREFIX: a, PUBLIC_IS_SUB_PUBLICATION: r } = _(), i = a && a !== "false" ? a : "", c = r && r !== "false" && i && s === "local" ? `/${i}` : "", d = t;
|
|
5486
|
+
return (d && d !== "false" ? d : "") + c + "/versions/images" + e;
|
|
5487
5487
|
}, Ns = (e) => {
|
|
5488
5488
|
const { PUBLIC_ENV: t } = _(), s = oe("/whatsapp-black.svg");
|
|
5489
5489
|
return t !== "" && !e.forceSVG ? /* @__PURE__ */ n("img", { fetchPriority: "low", loading: "lazy", src: s, alt: "", ...e }) : /* @__PURE__ */ n(
|
|
@@ -5644,7 +5644,7 @@ const Qe = (e) => {
|
|
|
5644
5644
|
paths: i,
|
|
5645
5645
|
newsDescriptionSectionTag: o = "h3",
|
|
5646
5646
|
speculationPrerenderClass: c
|
|
5647
|
-
} = e, { SHOW_TAG_BY_SECTION:
|
|
5647
|
+
} = e, { SHOW_TAG_BY_SECTION: d, SUB_PUBLICATION_PREFIX_IN_ROUTES: l } = _(), u = () => {
|
|
5648
5648
|
if (e?.config?.showtime && e.config?.showauthor)
|
|
5649
5649
|
return `${e?.authors[0]?.fullname ?? "Redacción"} - ${Ue(
|
|
5650
5650
|
e.info?.date?.modified
|
|
@@ -5670,7 +5670,7 @@ const Qe = (e) => {
|
|
|
5670
5670
|
}
|
|
5671
5671
|
);
|
|
5672
5672
|
}, f = () => e.main.uppertitle ? /* @__PURE__ */ n("p", { className: "sass-com-nd-uppertitle", title: e.main.uppertitle, children: e.main.uppertitle }) : null, A = () => {
|
|
5673
|
-
if (
|
|
5673
|
+
if (d && a?.tags?.length && a.tags.length > 0) {
|
|
5674
5674
|
const h = a.tags[0], g = h.name;
|
|
5675
5675
|
return le.createElement(
|
|
5676
5676
|
o,
|
|
@@ -5745,12 +5745,12 @@ const Qe = (e) => {
|
|
|
5745
5745
|
O,
|
|
5746
5746
|
{
|
|
5747
5747
|
block_subPublication: l?.autor,
|
|
5748
|
-
"aria-label":
|
|
5748
|
+
"aria-label": u(),
|
|
5749
5749
|
className: "sass-com-nd-correspondentLink",
|
|
5750
5750
|
href: `/${e?.paths?.autor}/${e?.authors[0]?.name}`,
|
|
5751
|
-
children:
|
|
5751
|
+
children: u()
|
|
5752
5752
|
}
|
|
5753
|
-
) }) : /* @__PURE__ */ n("h3", { className: "sass-com-nd-correspondent", children:
|
|
5753
|
+
) }) : /* @__PURE__ */ n("h3", { className: "sass-com-nd-correspondent", children: u() }) })
|
|
5754
5754
|
] });
|
|
5755
5755
|
}, ma = (e) => /* @__PURE__ */ p(
|
|
5756
5756
|
"svg",
|
|
@@ -5876,14 +5876,14 @@ const Po = (e) => {
|
|
|
5876
5876
|
isVideo: s = !1,
|
|
5877
5877
|
hasShadow: a = !1,
|
|
5878
5878
|
priorityHigh: r = !1
|
|
5879
|
-
} = e, i = fa(), [o, c] = $(void 0),
|
|
5879
|
+
} = e, i = fa(), [o, c] = $(void 0), d = t?.sizes;
|
|
5880
5880
|
return Te(() => {
|
|
5881
5881
|
(async () => {
|
|
5882
|
-
|
|
5883
|
-
`/api/image-proxy?url=${encodeURIComponent(
|
|
5884
|
-
) : c(
|
|
5882
|
+
d?.[0]?.url ? c(
|
|
5883
|
+
`/api/image-proxy?url=${encodeURIComponent(d[0].url)}`
|
|
5884
|
+
) : c(d?.[0]?.url);
|
|
5885
5885
|
})();
|
|
5886
|
-
}, [
|
|
5886
|
+
}, [d, t, e.cookies]), d && o && o !== "invalidURL" ? /* @__PURE__ */ n("figure", { className: "sass-com-img-figure", children: /* @__PURE__ */ p("span", { className: "sass-com-img-backdrop", children: [
|
|
5887
5887
|
/* @__PURE__ */ n("span", { className: "sass-com-img-backdropAux" }),
|
|
5888
5888
|
/* @__PURE__ */ p("picture", { children: [
|
|
5889
5889
|
/* @__PURE__ */ n(
|
|
@@ -7651,12 +7651,12 @@ const hu = (e) => {
|
|
|
7651
7651
|
] })
|
|
7652
7652
|
] }) }) });
|
|
7653
7653
|
}, pn = (e) => {
|
|
7654
|
-
const { currentPage: t, showNext: s, maxPages: a, pathname: r, query: i, block_subPublication: o } = e, c = (
|
|
7654
|
+
const { currentPage: t, showNext: s, maxPages: a, pathname: r, query: i, block_subPublication: o } = e, c = (d, l, u) => {
|
|
7655
7655
|
let m = "";
|
|
7656
7656
|
const f = l.split("/");
|
|
7657
7657
|
return f.indexOf("page") !== -1 && f.splice(m.indexOf("page") - 1, f.length - 1), f.forEach((A, h) => {
|
|
7658
7658
|
h !== 0 && (m += `/${A}`);
|
|
7659
|
-
}),
|
|
7659
|
+
}), d === "next" ? m += `/page/${t + 1}${u ? `?query=${u}` : ""}` : m += `/page/${t - 1}${u ? `?query=${u}` : ""}`;
|
|
7660
7660
|
};
|
|
7661
7661
|
return (t > 1 || s && t < a) && /* @__PURE__ */ p("section", { className: "sass-com-np-content", children: [
|
|
7662
7662
|
t > 1 && /* @__PURE__ */ n(
|
|
@@ -7699,9 +7699,9 @@ const hu = (e) => {
|
|
|
7699
7699
|
share: i,
|
|
7700
7700
|
isVideo: o,
|
|
7701
7701
|
config: c,
|
|
7702
|
-
overImage:
|
|
7702
|
+
overImage: d = "default",
|
|
7703
7703
|
isTitle: l,
|
|
7704
|
-
priorityHigh:
|
|
7704
|
+
priorityHigh: u = !1,
|
|
7705
7705
|
isLarge: m,
|
|
7706
7706
|
paths: f,
|
|
7707
7707
|
keywords: A,
|
|
@@ -7729,7 +7729,7 @@ const hu = (e) => {
|
|
|
7729
7729
|
preview: r,
|
|
7730
7730
|
isVideo: o,
|
|
7731
7731
|
isLarge: m,
|
|
7732
|
-
priorityHigh:
|
|
7732
|
+
priorityHigh: u
|
|
7733
7733
|
}
|
|
7734
7734
|
)
|
|
7735
7735
|
}
|
|
@@ -7743,7 +7743,7 @@ const hu = (e) => {
|
|
|
7743
7743
|
preview: r,
|
|
7744
7744
|
share: i,
|
|
7745
7745
|
config: c,
|
|
7746
|
-
overImage:
|
|
7746
|
+
overImage: d,
|
|
7747
7747
|
isTitle: l,
|
|
7748
7748
|
paths: f,
|
|
7749
7749
|
keywords: A
|
|
@@ -7759,19 +7759,19 @@ const hu = (e) => {
|
|
|
7759
7759
|
main: a,
|
|
7760
7760
|
overImage: r = "default",
|
|
7761
7761
|
titleGradient: i = !1
|
|
7762
|
-
} = e, { SHOW_TAG_BY_SECTION: o, SUB_PUBLICATION_PREFIX_IN_ROUTES: c } = _(),
|
|
7762
|
+
} = e, { SHOW_TAG_BY_SECTION: o, SUB_PUBLICATION_PREFIX_IN_ROUTES: c } = _(), d = () => {
|
|
7763
7763
|
if (o && e.keywords?.tags?.length && e.keywords.tags.length > 0) {
|
|
7764
|
-
const l = e.keywords.tags[0],
|
|
7764
|
+
const l = e.keywords.tags[0], u = l.name;
|
|
7765
7765
|
return l.approved ? /* @__PURE__ */ n("h3", { children: /* @__PURE__ */ n(
|
|
7766
7766
|
O,
|
|
7767
7767
|
{
|
|
7768
|
-
"aria-label":
|
|
7768
|
+
"aria-label": u,
|
|
7769
7769
|
block_subPublication: c?.tema,
|
|
7770
7770
|
className: "sass-com-sc2-sectionDescription",
|
|
7771
7771
|
href: De(l, e.paths),
|
|
7772
|
-
children:
|
|
7772
|
+
children: u
|
|
7773
7773
|
}
|
|
7774
|
-
) }) : /* @__PURE__ */ n("div", { className: "sass-com-sc2-sectionDescription", children:
|
|
7774
|
+
) }) : /* @__PURE__ */ n("div", { className: "sass-com-sc2-sectionDescription", children: u });
|
|
7775
7775
|
} else if (e.info?.section?.url)
|
|
7776
7776
|
return /* @__PURE__ */ n("h3", { children: /* @__PURE__ */ n(
|
|
7777
7777
|
O,
|
|
@@ -7807,7 +7807,7 @@ const hu = (e) => {
|
|
|
7807
7807
|
top: r !== "default" ? "-1rem" : ""
|
|
7808
7808
|
},
|
|
7809
7809
|
children: [
|
|
7810
|
-
/* @__PURE__ */ n(
|
|
7810
|
+
/* @__PURE__ */ n(d, {}),
|
|
7811
7811
|
/* @__PURE__ */ n("h2", { className: "sass-com-sc2-articule", children: /* @__PURE__ */ n(
|
|
7812
7812
|
O,
|
|
7813
7813
|
{
|
|
@@ -7930,7 +7930,7 @@ const hu = (e) => {
|
|
|
7930
7930
|
const t = e.trim();
|
|
7931
7931
|
return t.startsWith("http://") || t.startsWith("https://") ? t : `https://${t}`;
|
|
7932
7932
|
}, Jo = (e) => !e || e.trim() === "" ? !1 : /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()), bu = async (e) => {
|
|
7933
|
-
const { autor: t, autorIcon: s, socialIconsFilled: a = !1 } = e, r = s, i = t?.info?.image?.sizes?.[0]?.url ?? "", o = t?.info?.fullname ?? "", c = t?.info?.email ?? "",
|
|
7933
|
+
const { autor: t, autorIcon: s, socialIconsFilled: a = !1 } = e, r = s, i = t?.info?.image?.sizes?.[0]?.url ?? "", o = t?.info?.fullname ?? "", c = t?.info?.email ?? "", d = t?.addtional?.USER_SHOWEMAIL ?? !1, l = t?.addtional?.USER_SHOWBIO ?? !1, u = t?.addtional?.USER_MIBIO ?? "", m = ht(t?.addtional?.USER_USERFB ?? ""), f = ht(t?.addtional?.USER_USERIG ?? ""), A = ht(t?.addtional?.USER_USERTWT ?? ""), h = ht(t?.addtional?.USER_USERLIN ?? ""), g = () => !d || !c || c.trim() === "" ? !1 : Jo(c), w = (v) => `mailto:${v.trim()}`;
|
|
7934
7934
|
return /* @__PURE__ */ n(
|
|
7935
7935
|
"section",
|
|
7936
7936
|
{
|
|
@@ -7963,7 +7963,7 @@ const hu = (e) => {
|
|
|
7963
7963
|
children: c
|
|
7964
7964
|
}
|
|
7965
7965
|
),
|
|
7966
|
-
l && /* @__PURE__ */ n("p", { className: "sass-com-ah1-description", children:
|
|
7966
|
+
l && /* @__PURE__ */ n("p", { className: "sass-com-ah1-description", children: u }),
|
|
7967
7967
|
/* @__PURE__ */ p("div", { className: "sass-com-ah1-social", children: [
|
|
7968
7968
|
m && /* @__PURE__ */ n(
|
|
7969
7969
|
"a",
|
|
@@ -8010,7 +8010,7 @@ const hu = (e) => {
|
|
|
8010
8010
|
}
|
|
8011
8011
|
);
|
|
8012
8012
|
}, vu = async (e) => {
|
|
8013
|
-
const { autor: t, autorIcon: s, socialIconsFilled: a = !1 } = e, r = s, i = t?.info?.image?.sizes?.[0]?.url ?? "", o = t?.info?.fullname ?? "", c = t?.info?.email ?? "",
|
|
8013
|
+
const { autor: t, autorIcon: s, socialIconsFilled: a = !1 } = e, r = s, i = t?.info?.image?.sizes?.[0]?.url ?? "", o = t?.info?.fullname ?? "", c = t?.info?.email ?? "", d = t?.addtional?.USER_SHOWEMAIL ?? !1, l = t?.addtional?.USER_SHOWBIO ?? !1, u = t?.addtional?.USER_MIBIO ?? "", m = t?.addtional?.USER_USERFB ?? "", f = t?.addtional?.USER_USERIG ?? "", A = t?.addtional?.USER_USERTWT ?? "", h = t?.addtional?.USER_USERLIN ?? "";
|
|
8014
8014
|
return /* @__PURE__ */ n(
|
|
8015
8015
|
"section",
|
|
8016
8016
|
{
|
|
@@ -8035,8 +8035,8 @@ const hu = (e) => {
|
|
|
8035
8035
|
className: "sass-com-ah2-contentAuthor su-stack-center su-md:items-start",
|
|
8036
8036
|
children: [
|
|
8037
8037
|
/* @__PURE__ */ n("h1", { className: "sass-com-ah2-name", children: o }),
|
|
8038
|
-
|
|
8039
|
-
l && /* @__PURE__ */ n("p", { className: "sass-com-ah2-description", children:
|
|
8038
|
+
d && /* @__PURE__ */ n("p", { className: "sass-com-ah2-email", children: c }),
|
|
8039
|
+
l && /* @__PURE__ */ n("p", { className: "sass-com-ah2-description", children: u }),
|
|
8040
8040
|
/* @__PURE__ */ p(
|
|
8041
8041
|
"div",
|
|
8042
8042
|
{
|
|
@@ -8392,15 +8392,16 @@ const hu = (e) => {
|
|
|
8392
8392
|
copyrigth: s,
|
|
8393
8393
|
sidebarExtra: a,
|
|
8394
8394
|
searchKeyWord: r,
|
|
8395
|
-
|
|
8395
|
+
searchLink: i,
|
|
8396
|
+
custom_styles: o = {}
|
|
8396
8397
|
}) => {
|
|
8397
|
-
const { PUBLIC_SERVICE_PREFIX:
|
|
8398
|
+
const { PUBLIC_SERVICE_PREFIX: c, PUBLIC_IS_SUB_PUBLICATION: d, SUB_PUBLICATION_PREFIX_IN_ROUTES: l } = _(), u = l?.buscar && c !== "false" && d !== "false" ? `/${c}` : "";
|
|
8398
8399
|
return /* @__PURE__ */ p(
|
|
8399
8400
|
"aside",
|
|
8400
8401
|
{
|
|
8401
8402
|
className: "sass-com-sb-drawerStyled",
|
|
8402
8403
|
id: "sidebar-expandable",
|
|
8403
|
-
style:
|
|
8404
|
+
style: o,
|
|
8404
8405
|
children: [
|
|
8405
8406
|
/* @__PURE__ */ n("input", { type: "checkbox", id: "side-bar-state" }),
|
|
8406
8407
|
/* @__PURE__ */ p("section", { className: "sass-com-sb-sidebarCustom", children: [
|
|
@@ -8408,14 +8409,14 @@ const hu = (e) => {
|
|
|
8408
8409
|
/* @__PURE__ */ n(
|
|
8409
8410
|
ec,
|
|
8410
8411
|
{
|
|
8411
|
-
action: `${
|
|
8412
|
+
action: `${u}${i || "/buscar"}`,
|
|
8412
8413
|
placeholder: `${r}...`
|
|
8413
8414
|
}
|
|
8414
8415
|
),
|
|
8415
8416
|
/* @__PURE__ */ p("div", { className: "sass-com-sb-mainContent", children: [
|
|
8416
8417
|
/* @__PURE__ */ p("div", { children: [
|
|
8417
8418
|
a,
|
|
8418
|
-
e.map((
|
|
8419
|
+
e.map((m, f) => /* @__PURE__ */ n(tc, { item: m, index: f }, f))
|
|
8419
8420
|
] }),
|
|
8420
8421
|
/* @__PURE__ */ n(sc, { socials: t, copyright: s })
|
|
8421
8422
|
] })
|
|
@@ -8810,6 +8811,7 @@ const hu = (e) => {
|
|
|
8810
8811
|
sidebarExtra: e.sidebarExtra,
|
|
8811
8812
|
searchKeyWord: e.searchKeyWord,
|
|
8812
8813
|
sidebar: a,
|
|
8814
|
+
searchLink: e.searchLink,
|
|
8813
8815
|
socials: e.socials,
|
|
8814
8816
|
copyrigth: e.copyrigth,
|
|
8815
8817
|
custom_styles: e.custom_styles
|
|
@@ -8831,7 +8833,7 @@ const hu = (e) => {
|
|
|
8831
8833
|
) : /* @__PURE__ */ n("div", { className: "sass-com-ts-chipStyled", children: s.name }, a))
|
|
8832
8834
|
] }) });
|
|
8833
8835
|
}, cc = async (e) => {
|
|
8834
|
-
const { autor: t } = e, { SUB_PUBLICATION_PREFIX_IN_ROUTES: s } = _(), a = t?.addtional?.USER_SHOWBIO ?? !1, r = t?.info?.name ?? "", i = t?.info?.fullname ?? "", o = t?.info?.image?.sizes?.[0]?.url ?? "", c = t?.addtional?.USER_MIBIO ?? "",
|
|
8836
|
+
const { autor: t } = e, { SUB_PUBLICATION_PREFIX_IN_ROUTES: s } = _(), a = t?.addtional?.USER_SHOWBIO ?? !1, r = t?.info?.name ?? "", i = t?.info?.fullname ?? "", o = t?.info?.image?.sizes?.[0]?.url ?? "", c = t?.addtional?.USER_MIBIO ?? "", d = t?.addtional?.USER_USERFB ?? "", l = t?.addtional?.USER_USERIG ?? "", u = t?.addtional?.USER_USERTWT ?? "", m = t?.addtional?.USER_USERLIN ?? "";
|
|
8835
8837
|
return a && !!t && /* @__PURE__ */ n("section", { className: "sass-com-ja2-contentBox", children: /* @__PURE__ */ p("div", { className: "sass-com-ja2-content", children: [
|
|
8836
8838
|
/* @__PURE__ */ p("div", { className: "sass-com-ja2-avatarContent", children: [
|
|
8837
8839
|
/* @__PURE__ */ n(
|
|
@@ -8863,10 +8865,10 @@ const hu = (e) => {
|
|
|
8863
8865
|
}
|
|
8864
8866
|
) }),
|
|
8865
8867
|
/* @__PURE__ */ p("section", { className: "sass-com-ja2-socialNetworkSection", children: [
|
|
8866
|
-
|
|
8868
|
+
d && /* @__PURE__ */ n(
|
|
8867
8869
|
"a",
|
|
8868
8870
|
{
|
|
8869
|
-
href:
|
|
8871
|
+
href: d,
|
|
8870
8872
|
target: "_blank",
|
|
8871
8873
|
"aria-label": c,
|
|
8872
8874
|
rel: "noreferrer",
|
|
@@ -8943,10 +8945,10 @@ const hu = (e) => {
|
|
|
8943
8945
|
)
|
|
8944
8946
|
}
|
|
8945
8947
|
),
|
|
8946
|
-
|
|
8948
|
+
u && /* @__PURE__ */ n(
|
|
8947
8949
|
"a",
|
|
8948
8950
|
{
|
|
8949
|
-
href:
|
|
8951
|
+
href: u,
|
|
8950
8952
|
target: "_blank",
|
|
8951
8953
|
"aria-label": c,
|
|
8952
8954
|
rel: "noreferrer",
|
|
@@ -9162,9 +9164,9 @@ function Su(e) {
|
|
|
9162
9164
|
config: i,
|
|
9163
9165
|
keywords: o,
|
|
9164
9166
|
isVideo: c,
|
|
9165
|
-
isLarge:
|
|
9167
|
+
isLarge: d,
|
|
9166
9168
|
priorityHigh: l,
|
|
9167
|
-
share:
|
|
9169
|
+
share: u,
|
|
9168
9170
|
overImage: m,
|
|
9169
9171
|
isTitle: f,
|
|
9170
9172
|
paths: A
|
|
@@ -9229,7 +9231,7 @@ function Su(e) {
|
|
|
9229
9231
|
{
|
|
9230
9232
|
preview: R,
|
|
9231
9233
|
isVideo: c,
|
|
9232
|
-
isLarge:
|
|
9234
|
+
isLarge: d,
|
|
9233
9235
|
priorityHigh: l
|
|
9234
9236
|
}
|
|
9235
9237
|
)
|
|
@@ -9277,7 +9279,7 @@ function Su(e) {
|
|
|
9277
9279
|
{
|
|
9278
9280
|
preview: r,
|
|
9279
9281
|
isVideo: c,
|
|
9280
|
-
isLarge:
|
|
9282
|
+
isLarge: d,
|
|
9281
9283
|
priorityHigh: l
|
|
9282
9284
|
}
|
|
9283
9285
|
)
|
|
@@ -9301,7 +9303,7 @@ function Su(e) {
|
|
|
9301
9303
|
authors: s,
|
|
9302
9304
|
info: a,
|
|
9303
9305
|
preview: r,
|
|
9304
|
-
share:
|
|
9306
|
+
share: u,
|
|
9305
9307
|
config: i,
|
|
9306
9308
|
overImage: m,
|
|
9307
9309
|
isTitle: f,
|
|
@@ -9459,9 +9461,9 @@ const We = (e) => {
|
|
|
9459
9461
|
isVideo: i,
|
|
9460
9462
|
config: o,
|
|
9461
9463
|
itemReverseOrder: c,
|
|
9462
|
-
imageSize:
|
|
9464
|
+
imageSize: d,
|
|
9463
9465
|
showSuper: l,
|
|
9464
|
-
textPosition:
|
|
9466
|
+
textPosition: u,
|
|
9465
9467
|
heightImageOverwrite: m,
|
|
9466
9468
|
heightImageOverwriteMobile: f
|
|
9467
9469
|
} = e;
|
|
@@ -9482,7 +9484,7 @@ const We = (e) => {
|
|
|
9482
9484
|
isVideo: i,
|
|
9483
9485
|
config: o,
|
|
9484
9486
|
paths: e.paths,
|
|
9485
|
-
textPosition:
|
|
9487
|
+
textPosition: u,
|
|
9486
9488
|
heightImageOverwrite: m,
|
|
9487
9489
|
heightImageOverwriteMobile: f,
|
|
9488
9490
|
speculationPrerenderClass: e.speculationPrerenderClass
|
|
@@ -9516,7 +9518,7 @@ const We = (e) => {
|
|
|
9516
9518
|
block: e.block,
|
|
9517
9519
|
itemReverseOrder: c,
|
|
9518
9520
|
priorityHigh: !0,
|
|
9519
|
-
imageSize:
|
|
9521
|
+
imageSize: d,
|
|
9520
9522
|
customNewsDescriptionStyles: e.customNewsDescriptionStyles,
|
|
9521
9523
|
paths: e.paths,
|
|
9522
9524
|
speculationPrerenderClass: e.speculationPrerenderClass
|
|
@@ -9684,7 +9686,7 @@ const We = (e) => {
|
|
|
9684
9686
|
className: "su-grid sass-bd-dn-newsContent",
|
|
9685
9687
|
children: [
|
|
9686
9688
|
/* @__PURE__ */ n("div", { className: "banner-context", style: { order: 1 }, children: e.banner }),
|
|
9687
|
-
Array.isArray(o) && o.map((c,
|
|
9689
|
+
Array.isArray(o) && o.map((c, d) => {
|
|
9688
9690
|
const l = {
|
|
9689
9691
|
...c,
|
|
9690
9692
|
main: {
|
|
@@ -9695,14 +9697,14 @@ const We = (e) => {
|
|
|
9695
9697
|
}
|
|
9696
9698
|
}
|
|
9697
9699
|
};
|
|
9698
|
-
return /* @__PURE__ */ n("div", { style: { order:
|
|
9700
|
+
return /* @__PURE__ */ n("div", { style: { order: d }, children: /* @__PURE__ */ n(
|
|
9699
9701
|
ke,
|
|
9700
9702
|
{
|
|
9701
9703
|
...l,
|
|
9702
9704
|
isVideo: a,
|
|
9703
9705
|
paths: e.paths
|
|
9704
9706
|
}
|
|
9705
|
-
) },
|
|
9707
|
+
) }, d);
|
|
9706
9708
|
})
|
|
9707
9709
|
]
|
|
9708
9710
|
}
|
|
@@ -9879,7 +9881,7 @@ const Eu = (e) => {
|
|
|
9879
9881
|
for (let o = 0; o < t.length; o++) {
|
|
9880
9882
|
e.banners && e.bannerPositionIndex?.includes(o) && (a.push(
|
|
9881
9883
|
/* @__PURE__ */ n("section", { className: s(r), children: e.banners?.some(
|
|
9882
|
-
(
|
|
9884
|
+
(u) => u.key === `${e.slot_id}_${i}`
|
|
9883
9885
|
) && /* @__PURE__ */ n(
|
|
9884
9886
|
we,
|
|
9885
9887
|
{
|
|
@@ -9895,13 +9897,13 @@ const Eu = (e) => {
|
|
|
9895
9897
|
e.showVideoAuthor
|
|
9896
9898
|
) : t[o];
|
|
9897
9899
|
if (!c) continue;
|
|
9898
|
-
const
|
|
9900
|
+
const d = e.slot_id && e.slot_id !== "Nota_1", l = {
|
|
9899
9901
|
...c,
|
|
9900
9902
|
main: {
|
|
9901
9903
|
...c.main,
|
|
9902
9904
|
title: {
|
|
9903
9905
|
...c.main.title,
|
|
9904
|
-
section:
|
|
9906
|
+
section: d ? c.main.title.home : c.main.title.section
|
|
9905
9907
|
}
|
|
9906
9908
|
}
|
|
9907
9909
|
};
|
|
@@ -10033,8 +10035,8 @@ const Eu = (e) => {
|
|
|
10033
10035
|
] }),
|
|
10034
10036
|
/* @__PURE__ */ p("div", { className: "sass-bd-dv-newsContent", children: [
|
|
10035
10037
|
/* @__PURE__ */ n("div", { className: "banner-context", style: { order: 1 }, children: e.banner }),
|
|
10036
|
-
Array.isArray(o) && o.map((c,
|
|
10037
|
-
const l = tt(c),
|
|
10038
|
+
Array.isArray(o) && o.map((c, d) => {
|
|
10039
|
+
const l = tt(c), u = {
|
|
10038
10040
|
...l,
|
|
10039
10041
|
main: {
|
|
10040
10042
|
...l.main,
|
|
@@ -10044,15 +10046,15 @@ const Eu = (e) => {
|
|
|
10044
10046
|
}
|
|
10045
10047
|
}
|
|
10046
10048
|
};
|
|
10047
|
-
return /* @__PURE__ */ n("div", { style: { order:
|
|
10049
|
+
return /* @__PURE__ */ n("div", { style: { order: d }, children: /* @__PURE__ */ Le(
|
|
10048
10050
|
ke,
|
|
10049
10051
|
{
|
|
10050
|
-
...
|
|
10052
|
+
...u,
|
|
10051
10053
|
isVideo: a,
|
|
10052
|
-
key:
|
|
10054
|
+
key: d,
|
|
10053
10055
|
paths: e.paths
|
|
10054
10056
|
}
|
|
10055
|
-
) },
|
|
10057
|
+
) }, d);
|
|
10056
10058
|
})
|
|
10057
10059
|
] })
|
|
10058
10060
|
] });
|
|
@@ -10291,7 +10293,7 @@ const Eu = (e) => {
|
|
|
10291
10293
|
ranking: i,
|
|
10292
10294
|
pathname: o,
|
|
10293
10295
|
texts: c = {}
|
|
10294
|
-
} = e,
|
|
10296
|
+
} = e, d = [3, 8, 13], l = {
|
|
10295
10297
|
3: 1,
|
|
10296
10298
|
8: 2,
|
|
10297
10299
|
13: 3
|
|
@@ -10323,8 +10325,8 @@ const Eu = (e) => {
|
|
|
10323
10325
|
showNext: !(t.length < e.NEWS_PER_SECTION)
|
|
10324
10326
|
}
|
|
10325
10327
|
),
|
|
10326
|
-
children: Array.isArray(t) && t?.map((
|
|
10327
|
-
|
|
10328
|
+
children: Array.isArray(t) && t?.map((u, m) => /* @__PURE__ */ p(ts, { children: [
|
|
10329
|
+
d.includes(m + 1) && /* @__PURE__ */ n(
|
|
10328
10330
|
"div",
|
|
10329
10331
|
{
|
|
10330
10332
|
className: "sass-pg-sec-itemContent banner-context",
|
|
@@ -10341,7 +10343,7 @@ const Eu = (e) => {
|
|
|
10341
10343
|
bn,
|
|
10342
10344
|
{
|
|
10343
10345
|
autorIcon: e.autorIcon,
|
|
10344
|
-
item:
|
|
10346
|
+
item: u,
|
|
10345
10347
|
option: r,
|
|
10346
10348
|
paths: e.paths,
|
|
10347
10349
|
speculationPrerenderClass: e.speculationPrerender?.length && m < e.speculationPrerender.length ? e.speculationPrerender.class : void 0
|
|
@@ -10393,8 +10395,8 @@ const Eu = (e) => {
|
|
|
10393
10395
|
showNext: !(t.length < e.NEWS_PER_SECTION)
|
|
10394
10396
|
}
|
|
10395
10397
|
),
|
|
10396
|
-
children: Array.isArray(t) && t?.map((
|
|
10397
|
-
|
|
10398
|
+
children: Array.isArray(t) && t?.map((u, m) => /* @__PURE__ */ p(ts, { children: [
|
|
10399
|
+
d.includes(m + 1) && /* @__PURE__ */ n("div", { className: "sass-pg-sec-itemContent", children: /* @__PURE__ */ n(
|
|
10398
10400
|
we,
|
|
10399
10401
|
{
|
|
10400
10402
|
banners: a ?? [],
|
|
@@ -10405,7 +10407,7 @@ const Eu = (e) => {
|
|
|
10405
10407
|
bn,
|
|
10406
10408
|
{
|
|
10407
10409
|
autorIcon: e.autorIcon,
|
|
10408
|
-
item:
|
|
10410
|
+
item: u,
|
|
10409
10411
|
option: r,
|
|
10410
10412
|
paths: e.paths,
|
|
10411
10413
|
speculationPrerenderClass: e.speculationPrerender?.length && m < e.speculationPrerender.length ? e.speculationPrerender.class : void 0
|
|
@@ -10489,19 +10491,19 @@ const Eu = (e) => {
|
|
|
10489
10491
|
imagesizes: a
|
|
10490
10492
|
}))?.data?.data;
|
|
10491
10493
|
if (!Array.isArray(i) || i.length === 0) return null;
|
|
10492
|
-
const o = i[0],
|
|
10494
|
+
const o = i[0], d = (Array.isArray(o?.videos) ? o.videos : []).find(
|
|
10493
10495
|
(l) => l?.type === "video-embedded"
|
|
10494
10496
|
);
|
|
10495
|
-
return
|
|
10497
|
+
return d?.code ? /* @__PURE__ */ p("div", { className: "sass-pg-veh-content", children: [
|
|
10496
10498
|
/* @__PURE__ */ n(
|
|
10497
10499
|
"div",
|
|
10498
10500
|
{
|
|
10499
10501
|
dangerouslySetInnerHTML: {
|
|
10500
|
-
__html: typeof
|
|
10502
|
+
__html: typeof d.code == "string" ? d.code : ""
|
|
10501
10503
|
}
|
|
10502
10504
|
}
|
|
10503
10505
|
),
|
|
10504
|
-
|
|
10506
|
+
d?.title && /* @__PURE__ */ n("p", { className: "sass-pg-veh-title", children: d.title })
|
|
10505
10507
|
] }) : null;
|
|
10506
10508
|
} catch {
|
|
10507
10509
|
return null;
|
|
@@ -10518,20 +10520,20 @@ const Eu = (e) => {
|
|
|
10518
10520
|
imagesizes: a
|
|
10519
10521
|
}))?.data?.data;
|
|
10520
10522
|
if (!Array.isArray(i) || i.length === 0) return null;
|
|
10521
|
-
const o = i[0],
|
|
10523
|
+
const o = i[0], d = (Array.isArray(o?.videos) ? o.videos : []).find(
|
|
10522
10524
|
(l) => l?.type === "video-youtube"
|
|
10523
10525
|
);
|
|
10524
|
-
return !
|
|
10526
|
+
return !d?.code || typeof d.code != "string" ? null : /* @__PURE__ */ p("div", { className: "sass-pg-vyh-content", children: [
|
|
10525
10527
|
/* @__PURE__ */ n(
|
|
10526
10528
|
"iframe",
|
|
10527
10529
|
{
|
|
10528
10530
|
className: "sass-pg-vyh-iframeStyled",
|
|
10529
|
-
src: `https://www.youtube.com/embed/${
|
|
10531
|
+
src: `https://www.youtube.com/embed/${d.code}`,
|
|
10530
10532
|
frameBorder: "0",
|
|
10531
10533
|
allowFullScreen: !0
|
|
10532
10534
|
}
|
|
10533
10535
|
),
|
|
10534
|
-
|
|
10536
|
+
d?.title && /* @__PURE__ */ n("p", { className: "sass-pg-vyh-title", children: d.title })
|
|
10535
10537
|
] });
|
|
10536
10538
|
} catch {
|
|
10537
10539
|
return null;
|
|
@@ -10683,10 +10685,10 @@ const Eu = (e) => {
|
|
|
10683
10685
|
const a = /(<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>[\s\S]*?<span\b[^>]*data-src="([^"]+)"[^>]*>[\s\S]*?<\/span>[\s\S]*?<\/div>\s*<\/div>)/g, r = [...e.matchAll(a)];
|
|
10684
10686
|
let i = e;
|
|
10685
10687
|
for (const o of r) {
|
|
10686
|
-
const c = o[1],
|
|
10688
|
+
const c = o[1], d = o[2] ?? "";
|
|
10687
10689
|
let l;
|
|
10688
10690
|
if (s.forEach((b) => {
|
|
10689
|
-
Array.isArray(b) && !l && (l = b.find((I) =>
|
|
10691
|
+
Array.isArray(b) && !l && (l = b.find((I) => d.replaceAll("/", "|").includes(I?.info.link.internal || "")));
|
|
10690
10692
|
}), !l) {
|
|
10691
10693
|
const b = c.replace(
|
|
10692
10694
|
/class=["']([^"']*ck-related-news[^"']*)["']/,
|
|
@@ -10695,13 +10697,13 @@ const Eu = (e) => {
|
|
|
10695
10697
|
i = i.replace(c, b);
|
|
10696
10698
|
continue;
|
|
10697
10699
|
}
|
|
10698
|
-
const
|
|
10700
|
+
const u = l.preview?.sizes?.[0], m = u ? await ue(u.url) : "", f = l.info.section?.url ?? "#", A = l.info.section?.name ?? "Sección", h = l.info.link?.url ?? "#", g = l.main?.title.article ?? "Título", w = (await Promise.all(
|
|
10699
10701
|
l.preview?.sizes?.map(async (b) => {
|
|
10700
10702
|
const I = await ue(b.url);
|
|
10701
10703
|
return b.width < 200 ? `<source srcset="${I}" media="(width < 750px)"/>` : `<source srcset="${I}" media="(width >= 750px)"/>`;
|
|
10702
10704
|
}) || []
|
|
10703
10705
|
)).reduce((b, I) => b += I, ""), v = c.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/), E = v ? v[0] : "", N = `
|
|
10704
|
-
<span data-src="${
|
|
10706
|
+
<span data-src="${d}">
|
|
10705
10707
|
<picture style='display: flex'>
|
|
10706
10708
|
${w}
|
|
10707
10709
|
<img fetchPriority='low' loading='lazy' src="${m}" alt="${String(t.noteRelatedImageAlt ?? "")} ${g}" />
|
|
@@ -10737,18 +10739,18 @@ async function qc(e, t) {
|
|
|
10737
10739
|
for (; (i = r.exec(e)) !== null; ) {
|
|
10738
10740
|
const o = i.index, c = r.lastIndex;
|
|
10739
10741
|
s += e.slice(a, o);
|
|
10740
|
-
const
|
|
10742
|
+
const d = i[0];
|
|
10741
10743
|
let l = i[1] ?? "";
|
|
10742
10744
|
l && (l = Oc(l));
|
|
10743
|
-
const
|
|
10744
|
-
let m =
|
|
10745
|
-
if (
|
|
10745
|
+
const u = /data-type\s*=\s*["']?video["']?/i.test(d) || /video-type\s*=\s*["']?embedded["']?/i.test(d);
|
|
10746
|
+
let m = d;
|
|
10747
|
+
if (u && l)
|
|
10746
10748
|
try {
|
|
10747
10749
|
const f = await t.iframe({ path: l }), A = t.schema ? await t.schema(l) : null;
|
|
10748
10750
|
if (f && f.data) {
|
|
10749
10751
|
const h = f.data.data[0];
|
|
10750
10752
|
let g = "";
|
|
10751
|
-
const w =
|
|
10753
|
+
const w = d.match(
|
|
10752
10754
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
10753
10755
|
), v = w && w[1] ? w[1].trim() : "";
|
|
10754
10756
|
h.info && h.info.type === "video-youtube" ? g = `<iframe
|
|
@@ -10778,7 +10780,7 @@ async function qc(e, t) {
|
|
|
10778
10780
|
`;
|
|
10779
10781
|
}
|
|
10780
10782
|
} catch (f) {
|
|
10781
|
-
console.error("replaceVideoSpansWithIframes error for", l, f), m =
|
|
10783
|
+
console.error("replaceVideoSpansWithIframes error for", l, f), m = d;
|
|
10782
10784
|
}
|
|
10783
10785
|
a = c, s += m, r.lastIndex = c;
|
|
10784
10786
|
}
|
|
@@ -10800,8 +10802,8 @@ const Dc = async ({
|
|
|
10800
10802
|
}) => {
|
|
10801
10803
|
if (!e || e.length === 0 || !e[0]) return;
|
|
10802
10804
|
const o = e[0].list?.items?.map(async (c) => {
|
|
10803
|
-
const
|
|
10804
|
-
let l = Bc(
|
|
10805
|
+
const d = Pc(c.body.rendered);
|
|
10806
|
+
let l = Bc(d);
|
|
10805
10807
|
return l = Mc(l), l = await qc(
|
|
10806
10808
|
l,
|
|
10807
10809
|
r
|
|
@@ -10813,8 +10815,8 @@ const Dc = async ({
|
|
|
10813
10815
|
}
|
|
10814
10816
|
};
|
|
10815
10817
|
});
|
|
10816
|
-
return /* @__PURE__ */ n("section", { className: "sass-com-bnl-content", id: "block-notes-list", children: o?.map(async (c,
|
|
10817
|
-
/* @__PURE__ */ n(kc, { id: `item-${
|
|
10818
|
+
return /* @__PURE__ */ n("section", { className: "sass-com-bnl-content", id: "block-notes-list", children: o?.map(async (c, d) => /* @__PURE__ */ p(ts, { children: [
|
|
10819
|
+
/* @__PURE__ */ n(kc, { id: `item-${d + 1}`, children: /* @__PURE__ */ p("div", { className: "sass-com-bnl-contentWithinCard", children: [
|
|
10818
10820
|
(await c).date > 0 && /* @__PURE__ */ p("div", { className: "sass-com-bnl-contentDate", children: [
|
|
10819
10821
|
/* @__PURE__ */ n(
|
|
10820
10822
|
"span",
|
|
@@ -10860,16 +10862,16 @@ const Dc = async ({
|
|
|
10860
10862
|
children: String(a.blockNoteList_readMore ?? "Leer Más")
|
|
10861
10863
|
}
|
|
10862
10864
|
) })
|
|
10863
|
-
] }) },
|
|
10864
|
-
vn[
|
|
10865
|
+
] }) }, d),
|
|
10866
|
+
vn[d] && /* @__PURE__ */ n(
|
|
10865
10867
|
we,
|
|
10866
10868
|
{
|
|
10867
10869
|
banners: s,
|
|
10868
|
-
name: "list_" + vn[
|
|
10870
|
+
name: "list_" + vn[d]
|
|
10869
10871
|
},
|
|
10870
|
-
|
|
10872
|
+
d
|
|
10871
10873
|
)
|
|
10872
|
-
] },
|
|
10874
|
+
] }, d)) });
|
|
10873
10875
|
}, Ta = {
|
|
10874
10876
|
FaceBook: "facebook",
|
|
10875
10877
|
Instagram: "instagram",
|
|
@@ -10912,7 +10914,7 @@ const Gc = () => /* @__PURE__ */ p("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
10912
10914
|
] }), jc = async (e) => {
|
|
10913
10915
|
if (!e.news || !e.news.authors) return null;
|
|
10914
10916
|
const { news: t, socials: s, texts: a } = e, r = t.authors.map(
|
|
10915
|
-
(
|
|
10917
|
+
(d) => d.internaluser ? `<a href="${`/${e.paths.autor}/${d.name}`}">${d.fullname}</a>` : d.fullname
|
|
10916
10918
|
).join(", "), i = () => t.authors.length === 1 ? "sass-com-ja3-width1Autor" : t.authors.length === 2 ? "sass-com-ja3-width2Autor" : t.authors.length === 3 ? "sass-com-ja3-width3Autor" : "", { DATE_TIMEZONE: o = "America/Mexico_City", CONFIG_shareOnlyWhatsApp: c } = _();
|
|
10917
10919
|
return t.config?.showauthor && /* @__PURE__ */ n("div", { className: "sass-com-ja3-content", children: /* @__PURE__ */ p("div", { className: "sass-com-ja3-avatarContent", children: [
|
|
10918
10920
|
c ? /* @__PURE__ */ p(
|
|
@@ -10967,23 +10969,23 @@ const Gc = () => /* @__PURE__ */ p("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
10967
10969
|
width: `${t.authors?.length > 2 ? t.authors?.length * 30 : t.authors?.length * 35}px`
|
|
10968
10970
|
},
|
|
10969
10971
|
children: Array.isArray(t.authors) && t.authors?.map(
|
|
10970
|
-
async (
|
|
10972
|
+
async (d, l) => d.image ? /* @__PURE__ */ n(
|
|
10971
10973
|
"img",
|
|
10972
10974
|
{
|
|
10973
10975
|
fetchPriority: "low",
|
|
10974
10976
|
loading: "lazy",
|
|
10975
|
-
alt: "Imagen de perfil de " +
|
|
10977
|
+
alt: "Imagen de perfil de " + d.fullname,
|
|
10976
10978
|
className: "sass-com-ja3-imageStyled sass-com-ja3-imageAutor su-object-cover su-flex-center",
|
|
10977
|
-
src: await ue(
|
|
10979
|
+
src: await ue(d.image.sizes[0]?.url || "")
|
|
10978
10980
|
},
|
|
10979
|
-
|
|
10981
|
+
d.fullname
|
|
10980
10982
|
) : /* @__PURE__ */ n(
|
|
10981
10983
|
"div",
|
|
10982
10984
|
{
|
|
10983
10985
|
className: "sass-com-ja3-contentIconStyled sass-com-ja3-imageAutor su-flex-center",
|
|
10984
10986
|
children: e.autorIcon
|
|
10985
10987
|
},
|
|
10986
|
-
|
|
10988
|
+
d.fullname
|
|
10987
10989
|
)
|
|
10988
10990
|
)
|
|
10989
10991
|
}
|
|
@@ -11035,13 +11037,13 @@ const Gc = () => /* @__PURE__ */ p("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
11035
11037
|
function Vc(e) {
|
|
11036
11038
|
const t = e.children, s = `${e.slot_id}-`, a = e.visibleItems, r = e.cardGap ?? 20;
|
|
11037
11039
|
function i(c) {
|
|
11038
|
-
const
|
|
11039
|
-
let
|
|
11040
|
+
const d = [], l = [];
|
|
11041
|
+
let u = "", m = !0;
|
|
11040
11042
|
for (let f = 0; f < c; f++) {
|
|
11041
11043
|
const A = `[data-index="${f}"]:checked ~ .carrousel-pagination li:nth-child(${f + 1}) {
|
|
11042
11044
|
background-color:var(--carrousel-pagination-background-color)
|
|
11043
11045
|
}`;
|
|
11044
|
-
|
|
11046
|
+
u += `
|
|
11045
11047
|
.${s}.carrousel-container {
|
|
11046
11048
|
${A}
|
|
11047
11049
|
[data-index="${f}"]:checked ~ .carrousel-ssr {
|
|
@@ -11053,14 +11055,14 @@ function Vc(e) {
|
|
|
11053
11055
|
display: flex;
|
|
11054
11056
|
}
|
|
11055
11057
|
}
|
|
11056
|
-
`, f > c - (a + 1) && (
|
|
11058
|
+
`, f > c - (a + 1) && (u += `
|
|
11057
11059
|
@media (min-width:900px) {
|
|
11058
11060
|
.${s}.carrousel-container {
|
|
11059
11061
|
[data-index="${f}"]:checked ~ .visible-arrow.right[data-index="${f}"] {
|
|
11060
11062
|
display:none!important;
|
|
11061
11063
|
}
|
|
11062
11064
|
}
|
|
11063
|
-
}`),
|
|
11065
|
+
}`), d.push(
|
|
11064
11066
|
`<input type="radio" name="${s + "card"}" ${m ? "checked" : ""} id="${s + "input-check-" + f}" data-index="${f}" />`
|
|
11065
11067
|
), l.push(`
|
|
11066
11068
|
<label for="${s + "input-check-" + f}" data-index="${f}" class="visible-arrow left">
|
|
@@ -11077,17 +11079,17 @@ function Vc(e) {
|
|
|
11077
11079
|
`), m = !1;
|
|
11078
11080
|
}
|
|
11079
11081
|
return `
|
|
11080
|
-
<style>${
|
|
11081
|
-
${
|
|
11082
|
+
<style>${u}</style>
|
|
11083
|
+
${d.join("")}
|
|
11082
11084
|
${l.join("")}
|
|
11083
11085
|
`;
|
|
11084
11086
|
}
|
|
11085
11087
|
const o = (c) => {
|
|
11086
|
-
const
|
|
11088
|
+
const d = [];
|
|
11087
11089
|
for (let l = 0; l < c; l++)
|
|
11088
|
-
|
|
11090
|
+
d.push("<li></li>");
|
|
11089
11091
|
return `<menu class='carrousel-pagination'>
|
|
11090
|
-
${
|
|
11092
|
+
${d.join("")}
|
|
11091
11093
|
</menu>`;
|
|
11092
11094
|
};
|
|
11093
11095
|
return `
|
|
@@ -11227,7 +11229,7 @@ const Yc = async (e) => {
|
|
|
11227
11229
|
if (!e.news || !e.news.authors) return null;
|
|
11228
11230
|
const { news: t, socials: s, texts: a } = e, r = t.authors.map(
|
|
11229
11231
|
(l) => l.internaluser ? `<a href="${`/${e.paths.autor}/${l.name}`}">${l.fullname}</a>` : l.fullname
|
|
11230
|
-
).join(", "), i = () => t.authors.length === 1 ? "sass-com-ja4-width1Autor" : t.authors.length === 2 ? "sass-com-ja4-width2Autor" : t.authors.length === 3 ? "sass-com-ja4-width3Autor" : "", { CONFIG_shareOnlyWhatsApp: o, DATE_TIMEZONE: c = "America/Mexico_City", CONFIG_commentsV2:
|
|
11232
|
+
).join(", "), i = () => t.authors.length === 1 ? "sass-com-ja4-width1Autor" : t.authors.length === 2 ? "sass-com-ja4-width2Autor" : t.authors.length === 3 ? "sass-com-ja4-width3Autor" : "", { CONFIG_shareOnlyWhatsApp: o, DATE_TIMEZONE: c = "America/Mexico_City", CONFIG_commentsV2: d } = _();
|
|
11231
11233
|
return t.config?.showauthor && /* @__PURE__ */ n("div", { className: "sass-com-ja4-content sass-journalist-articule-4", children: /* @__PURE__ */ p("div", { className: "sass-com-ja4-avatarContent", children: [
|
|
11232
11234
|
/* @__PURE__ */ p("div", { className: "sass-com-ja4-socialActionsRow", children: [
|
|
11233
11235
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: "10px", alignItems: "center" }, children: [
|
|
@@ -11282,7 +11284,7 @@ const Yc = async (e) => {
|
|
|
11282
11284
|
/* @__PURE__ */ n("span", { children: "Seguir en" }),
|
|
11283
11285
|
/* @__PURE__ */ n(Ia, {})
|
|
11284
11286
|
] }),
|
|
11285
|
-
e.noteShare?.customButton && (
|
|
11287
|
+
e.noteShare?.customButton && (d ? /* @__PURE__ */ n("a", { href: "#comentarios", className: "sass-journalist-articule-custom-button", "aria-label": "Custom button for the journalist article" }) : /* @__PURE__ */ n("button", { type: "button", className: "sass-journalist-articule-custom-button", "data-hydrate": "CustomButton", "aria-label": "Custom button for the journalist article" }))
|
|
11286
11288
|
] }),
|
|
11287
11289
|
/* @__PURE__ */ n(
|
|
11288
11290
|
"div",
|
|
@@ -11306,7 +11308,7 @@ const Yc = async (e) => {
|
|
|
11306
11308
|
width: `${t.authors?.length > 2 ? t.authors?.length * 30 : t.authors?.length * 40}px`
|
|
11307
11309
|
},
|
|
11308
11310
|
children: Array.isArray(t.authors) && t.authors?.map(
|
|
11309
|
-
async (l,
|
|
11311
|
+
async (l, u) => l.image ? /* @__PURE__ */ n(
|
|
11310
11312
|
"img",
|
|
11311
11313
|
{
|
|
11312
11314
|
fetchPriority: "low",
|
|
@@ -11352,8 +11354,8 @@ const Yc = async (e) => {
|
|
|
11352
11354
|
), Zc = async (e) => {
|
|
11353
11355
|
const { PUBLIC_IS_OFFLINE: t } = _();
|
|
11354
11356
|
if (!(t === "true")) {
|
|
11355
|
-
const l = /<img\b[^>]*\bsrc=["']([^"']+)["']/g,
|
|
11356
|
-
for (const f of
|
|
11357
|
+
const l = /<img\b[^>]*\bsrc=["']([^"']+)["']/g, u = [...e.matchAll(l)], m = {};
|
|
11358
|
+
for (const f of u) {
|
|
11357
11359
|
const A = f[1] ?? "", h = e.includes(A) ? { url: A } : null;
|
|
11358
11360
|
if (h) {
|
|
11359
11361
|
const g = await ue(h.url) || "";
|
|
@@ -11372,9 +11374,9 @@ const Yc = async (e) => {
|
|
|
11372
11374
|
o = a;
|
|
11373
11375
|
const l = i.exec(a);
|
|
11374
11376
|
if (!l) break;
|
|
11375
|
-
const
|
|
11377
|
+
const u = l[0], m = l[1] ?? "";
|
|
11376
11378
|
r.add(m);
|
|
11377
|
-
const f =
|
|
11379
|
+
const f = u.match(/<img\b[^>]*\balt=["']([^"']*)["']/), A = f ? f[1] : "imagen", h = m.match(/__scale=([^&"']+)/), g = h ? decodeURIComponent(h[1]) : null;
|
|
11378
11380
|
let w = 0, v = 0;
|
|
11379
11381
|
if (g) {
|
|
11380
11382
|
const I = g.match(/w:(\d+)/), R = g.match(/h:(\d+)/);
|
|
@@ -11402,13 +11404,13 @@ const Yc = async (e) => {
|
|
|
11402
11404
|
isLarge: !1,
|
|
11403
11405
|
priorityHigh: !1
|
|
11404
11406
|
}, b = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(N))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
|
|
11405
|
-
a = a.replace(
|
|
11407
|
+
a = a.replace(u, b), i.lastIndex = 0;
|
|
11406
11408
|
}
|
|
11407
|
-
const c = /<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g,
|
|
11408
|
-
for (const l of
|
|
11409
|
-
const
|
|
11409
|
+
const c = /<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g, d = [...a.matchAll(c)];
|
|
11410
|
+
for (const l of d) {
|
|
11411
|
+
const u = l[0], m = l[1] ?? "";
|
|
11410
11412
|
if (r.has(m)) continue;
|
|
11411
|
-
const f =
|
|
11413
|
+
const f = u.match(/\balt=["']([^"']*)["']/), A = f ? f[1] : "imagen", h = m.match(/__scale=([^&"']+)/), g = h ? decodeURIComponent(h[1]) : null;
|
|
11412
11414
|
let w = 0, v = 0;
|
|
11413
11415
|
if (g) {
|
|
11414
11416
|
const I = g.match(/w:(\d+)/), R = g.match(/h:(\d+)/);
|
|
@@ -11436,7 +11438,7 @@ const Yc = async (e) => {
|
|
|
11436
11438
|
isLarge: !1,
|
|
11437
11439
|
priorityHigh: !1
|
|
11438
11440
|
}, b = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(N))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
|
|
11439
|
-
a = a.replace(
|
|
11441
|
+
a = a.replace(u, b);
|
|
11440
11442
|
}
|
|
11441
11443
|
return a;
|
|
11442
11444
|
}, Xc = (e) => e.replace(
|
|
@@ -11458,16 +11460,16 @@ const Yc = async (e) => {
|
|
|
11458
11460
|
return r = r.replace(
|
|
11459
11461
|
/<p\b[^>]*?>[\s\S]*?<\/p>|<(ul|ol)[^>]*?>[\s\S]*?<\/\1>/g,
|
|
11460
11462
|
(c) => {
|
|
11461
|
-
const
|
|
11463
|
+
const d = c.replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
|
|
11462
11464
|
if (!new RegExp(
|
|
11463
|
-
`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${
|
|
11465
|
+
`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${d}[\\s\\S]*?<\\/blockquote>`,
|
|
11464
11466
|
"gi"
|
|
11465
11467
|
).test(r)) {
|
|
11466
11468
|
a++;
|
|
11467
|
-
const
|
|
11469
|
+
const u = t.find(
|
|
11468
11470
|
(m) => m.key === `block_2_${s[a]}`
|
|
11469
11471
|
);
|
|
11470
|
-
return
|
|
11472
|
+
return u && u.show ? `${c}<div class="banner-context">${Xc(u.value)}</div>` : c;
|
|
11471
11473
|
}
|
|
11472
11474
|
return c;
|
|
11473
11475
|
}
|
|
@@ -11476,13 +11478,13 @@ const Yc = async (e) => {
|
|
|
11476
11478
|
const t = /<div class="ck-image-gallery"[^>]*?>([\s\S]*?)<\/div>/g, s = [...e.matchAll(t)];
|
|
11477
11479
|
let a = "", r = 0;
|
|
11478
11480
|
for (const i of s) {
|
|
11479
|
-
const [o, c = ""] = i,
|
|
11480
|
-
a += e.slice(r,
|
|
11481
|
+
const [o, c = ""] = i, d = i.index, l = d + o.length;
|
|
11482
|
+
a += e.slice(r, d);
|
|
11481
11483
|
const m = [...c.matchAll(/data-src="([^"]+)"/g)].map(
|
|
11482
11484
|
(h) => h[1]
|
|
11483
11485
|
).map(
|
|
11484
11486
|
(h) => `<img fetchPriority='low' loading='lazy' alt='imagen' src="${h}" class="carrusel-note-item" width="800" height="469"/>`
|
|
11485
|
-
), f = "gallery_embeded" +
|
|
11487
|
+
), f = "gallery_embeded" + d.toString(), A = Vc({
|
|
11486
11488
|
slot_id: f,
|
|
11487
11489
|
children: m,
|
|
11488
11490
|
visibleItems: 1,
|
|
@@ -11496,17 +11498,17 @@ const Yc = async (e) => {
|
|
|
11496
11498
|
const a = /<span data-src="(.*?)"><\/span>/g, r = [...e.matchAll(a)];
|
|
11497
11499
|
let i = e;
|
|
11498
11500
|
for (const o of r) {
|
|
11499
|
-
const c = o[0],
|
|
11500
|
-
(E) =>
|
|
11501
|
+
const c = o[0], d = o[1] ?? "", l = s.find(
|
|
11502
|
+
(E) => d.includes(E?.[0]?.info.link.internal || "")
|
|
11501
11503
|
);
|
|
11502
11504
|
if (!l || !l[0]) continue;
|
|
11503
|
-
const
|
|
11505
|
+
const u = l[0].preview?.sizes?.[0], m = u ? await ue(u.url) : "", f = l[0].info.section?.url ?? "#", A = l[0].info.section?.name ?? "Sección", h = l[0].info.link?.url ?? "#", g = l[0].main?.title.article ?? "Título", w = (await Promise.all(
|
|
11504
11506
|
l[0].preview?.sizes?.map(async (E, N) => {
|
|
11505
11507
|
const S = await ue(E.url);
|
|
11506
11508
|
return N === 0 ? `<source srcset="${S}" media="(width >= 900px)"/>` : `<source srcset="${S}" media="(width < 900px)"/>`;
|
|
11507
11509
|
})
|
|
11508
11510
|
)).reduce((E, N) => E += N, ""), v = `
|
|
11509
|
-
<span data-src="${
|
|
11511
|
+
<span data-src="${d}">
|
|
11510
11512
|
<picture style='display: flex'>
|
|
11511
11513
|
${w}
|
|
11512
11514
|
<img fetchPriority='low' loading='lazy' src="${m}" alt="${String(t.noteRelatedImageAlt ?? "")} ${g}" />
|
|
@@ -11528,15 +11530,15 @@ async function nl(e, t) {
|
|
|
11528
11530
|
for (; (i = r.exec(e)) !== null; ) {
|
|
11529
11531
|
const o = i.index, c = r.lastIndex;
|
|
11530
11532
|
s += e.slice(a, o);
|
|
11531
|
-
let
|
|
11532
|
-
const
|
|
11533
|
-
for (; l <
|
|
11533
|
+
let d = 1, l = c;
|
|
11534
|
+
const u = e.length;
|
|
11535
|
+
for (; l < u && d > 0; ) {
|
|
11534
11536
|
const v = e.indexOf("<div", l), E = e.indexOf("</div>", l);
|
|
11535
11537
|
if (E === -1) {
|
|
11536
|
-
l =
|
|
11538
|
+
l = u;
|
|
11537
11539
|
break;
|
|
11538
11540
|
}
|
|
11539
|
-
v !== -1 && v < E ? (
|
|
11541
|
+
v !== -1 && v < E ? (d += 1, l = v + 4) : (d -= 1, l = E + 6);
|
|
11540
11542
|
}
|
|
11541
11543
|
const m = l, f = e.slice(o, m);
|
|
11542
11544
|
let A = null;
|
|
@@ -11616,18 +11618,18 @@ async function al(e) {
|
|
|
11616
11618
|
slug: i,
|
|
11617
11619
|
itemList: o,
|
|
11618
11620
|
socials: c,
|
|
11619
|
-
getVideos:
|
|
11621
|
+
getVideos: d,
|
|
11620
11622
|
commonServices: l
|
|
11621
11623
|
} = e;
|
|
11622
|
-
let
|
|
11623
|
-
|
|
11624
|
+
let u = t?.body?.rendered ?? "";
|
|
11625
|
+
u = u.replace(
|
|
11624
11626
|
/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,
|
|
11625
11627
|
""
|
|
11626
|
-
),
|
|
11627
|
-
|
|
11628
|
+
), u = u.replace(/ /g, ""), u = el(u, s), u = tl(u), u = await Zc(u), u = await sl(
|
|
11629
|
+
u,
|
|
11628
11630
|
e.texts,
|
|
11629
11631
|
a
|
|
11630
|
-
),
|
|
11632
|
+
), u = await nl(u, d), u = Kc(u), u = Jc(u);
|
|
11631
11633
|
const m = t.main.sources ?? [], { NEWS_JOURNALIST_COMPONENT: f, CONFIG_blockDefaultTwitterHydrator: A } = _(), h = t.config.articlepreview === Me.fotoGaleria && t.hascontent?.hasgalleryimages;
|
|
11632
11634
|
return /* @__PURE__ */ p(J, { children: [
|
|
11633
11635
|
i !== "liveblogs" && e.showHeaderImage ? h ? /* @__PURE__ */ n(
|
|
@@ -11667,7 +11669,7 @@ async function al(e) {
|
|
|
11667
11669
|
className: "sass-pg-nrs-contentNews",
|
|
11668
11670
|
suppressHydrationWarning: !0,
|
|
11669
11671
|
id: "content-news-section",
|
|
11670
|
-
dangerouslySetInnerHTML: { __html:
|
|
11672
|
+
dangerouslySetInnerHTML: { __html: u }
|
|
11671
11673
|
}
|
|
11672
11674
|
),
|
|
11673
11675
|
/* @__PURE__ */ n(
|
|
@@ -11677,7 +11679,7 @@ async function al(e) {
|
|
|
11677
11679
|
itemList: o,
|
|
11678
11680
|
banners: s,
|
|
11679
11681
|
slug: i,
|
|
11680
|
-
getVideos:
|
|
11682
|
+
getVideos: d,
|
|
11681
11683
|
newsRelatedListResponses: r ?? []
|
|
11682
11684
|
}
|
|
11683
11685
|
),
|
|
@@ -11704,14 +11706,14 @@ const rl = (e) => {
|
|
|
11704
11706
|
noteShare: i,
|
|
11705
11707
|
paths: o,
|
|
11706
11708
|
banners: c,
|
|
11707
|
-
news:
|
|
11709
|
+
news: d,
|
|
11708
11710
|
newsRelatedResponses: l = [],
|
|
11709
|
-
newsRelatedListResponses:
|
|
11711
|
+
newsRelatedListResponses: u = [],
|
|
11710
11712
|
itemList: m = [],
|
|
11711
11713
|
socials: f,
|
|
11712
11714
|
getVideos: A
|
|
11713
11715
|
} = e;
|
|
11714
|
-
if (
|
|
11716
|
+
if (d)
|
|
11715
11717
|
return /* @__PURE__ */ p(J, { children: [
|
|
11716
11718
|
/* @__PURE__ */ n(
|
|
11717
11719
|
al,
|
|
@@ -11719,16 +11721,16 @@ const rl = (e) => {
|
|
|
11719
11721
|
texts: t,
|
|
11720
11722
|
autorIcon: s,
|
|
11721
11723
|
socials: f,
|
|
11722
|
-
news:
|
|
11724
|
+
news: d,
|
|
11723
11725
|
banners: c,
|
|
11724
11726
|
newsRelatedResponses: l,
|
|
11725
|
-
newsRelatedListResponses:
|
|
11727
|
+
newsRelatedListResponses: u,
|
|
11726
11728
|
itemList: m,
|
|
11727
11729
|
slug: r,
|
|
11728
11730
|
getVideos: A,
|
|
11729
11731
|
noteShare: i,
|
|
11730
11732
|
paths: o,
|
|
11731
|
-
showHeaderImage: !rl(
|
|
11733
|
+
showHeaderImage: !rl(d),
|
|
11732
11734
|
commonServices: a
|
|
11733
11735
|
}
|
|
11734
11736
|
),
|
|
@@ -11743,7 +11745,7 @@ const rl = (e) => {
|
|
|
11743
11745
|
newsRelatedResponses: i = [],
|
|
11744
11746
|
newsRelatedListResponses: o = [],
|
|
11745
11747
|
itemList: c = [],
|
|
11746
|
-
socials:
|
|
11748
|
+
socials: d,
|
|
11747
11749
|
getVideos: l
|
|
11748
11750
|
} = e;
|
|
11749
11751
|
if (!(!r || !r[0]))
|
|
@@ -11803,7 +11805,7 @@ const rl = (e) => {
|
|
|
11803
11805
|
{
|
|
11804
11806
|
texts: e.texts,
|
|
11805
11807
|
autorIcon: e.autorIcon,
|
|
11806
|
-
socials:
|
|
11808
|
+
socials: d,
|
|
11807
11809
|
news: r[0],
|
|
11808
11810
|
banners: s,
|
|
11809
11811
|
newsRelatedResponses: i,
|
|
@@ -11933,7 +11935,7 @@ function Pu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
11933
11935
|
{ label: a.passwordRuleSymbol, test: Ee[4] }
|
|
11934
11936
|
],
|
|
11935
11937
|
[a.passwordRuleMinLength, a.passwordRuleNumber, a.passwordRuleLowercase, a.passwordRuleUppercase, a.passwordRuleSymbol]
|
|
11936
|
-
), [o, c] = $({}), [
|
|
11938
|
+
), [o, c] = $({}), [d, l] = $(!1), [u, m] = $(!1), [f, A] = $(null), [h, g] = $(
|
|
11937
11939
|
"register"
|
|
11938
11940
|
), w = async () => {
|
|
11939
11941
|
if (t.PUBLIC_ENV === "local") {
|
|
@@ -12050,7 +12052,7 @@ function Pu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12050
12052
|
/* @__PURE__ */ n(
|
|
12051
12053
|
"input",
|
|
12052
12054
|
{
|
|
12053
|
-
type: b.toLowerCase().includes("password") ?
|
|
12055
|
+
type: b.toLowerCase().includes("password") ? d ? "text" : "password" : b === "birthdate" ? "date" : b === "email" ? "email" : b === "phone_number" ? "tel" : "text",
|
|
12054
12056
|
name: b,
|
|
12055
12057
|
value: o[b] || "",
|
|
12056
12058
|
onChange: (R) => v(b, R.target.value),
|
|
@@ -12078,7 +12080,7 @@ function Pu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12078
12080
|
{
|
|
12079
12081
|
id: "showPasswordRegister",
|
|
12080
12082
|
type: "checkbox",
|
|
12081
|
-
checked:
|
|
12083
|
+
checked: d,
|
|
12082
12084
|
onChange: (R) => l(R.target.checked)
|
|
12083
12085
|
}
|
|
12084
12086
|
),
|
|
@@ -12100,7 +12102,7 @@ function Pu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12100
12102
|
" ",
|
|
12101
12103
|
a.termsSuffix
|
|
12102
12104
|
] }),
|
|
12103
|
-
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled:
|
|
12105
|
+
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled: u, children: u ? /* @__PURE__ */ n(nt, {}) : a.createAccountButton })
|
|
12104
12106
|
]
|
|
12105
12107
|
}
|
|
12106
12108
|
)
|
|
@@ -12127,7 +12129,7 @@ function Pu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12127
12129
|
)
|
|
12128
12130
|
] }),
|
|
12129
12131
|
f && /* @__PURE__ */ n("p", { className: "sass-pg-login-error", children: f }),
|
|
12130
|
-
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled:
|
|
12132
|
+
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled: u, children: u ? /* @__PURE__ */ n(nt, {}) : a.confirmAccountButton }),
|
|
12131
12133
|
/* @__PURE__ */ p("p", { className: "sass-pg-login-switch", children: [
|
|
12132
12134
|
a.alreadyConfirmedText,
|
|
12133
12135
|
/* @__PURE__ */ n("a", { className: "sass-pg-login-toRegister", href: "./login", children: a.loginButtonText })
|
|
@@ -12194,7 +12196,7 @@ function Bu({
|
|
|
12194
12196
|
API_ENV: e,
|
|
12195
12197
|
texts: t
|
|
12196
12198
|
}) {
|
|
12197
|
-
const s = { ...dl, ...t?.comentarios }, [a, r] = $("login"), [i, o] = $(""), [c,
|
|
12199
|
+
const s = { ...dl, ...t?.comentarios }, [a, r] = $("login"), [i, o] = $(""), [c, d] = $(""), [l, u] = $(""), [m, f] = $(""), [A, h] = $(""), [g, w] = $(!1), [v, E] = $(!1), [N, S] = $(null);
|
|
12198
12200
|
le.useEffect(() => {
|
|
12199
12201
|
if (typeof window > "u") return;
|
|
12200
12202
|
window.location.hash.includes("forgot") && a === "login" && r("forgot"), a === "login" && I();
|
|
@@ -12216,7 +12218,7 @@ function Bu({
|
|
|
12216
12218
|
loading: v,
|
|
12217
12219
|
error: N,
|
|
12218
12220
|
setEmail: o,
|
|
12219
|
-
setPassword:
|
|
12221
|
+
setPassword: d,
|
|
12220
12222
|
setShowPassword: w,
|
|
12221
12223
|
onSubmit: async (L) => {
|
|
12222
12224
|
if (!v) {
|
|
@@ -12282,7 +12284,7 @@ function Bu({
|
|
|
12282
12284
|
const se = await H.json().catch(() => ({}));
|
|
12283
12285
|
throw new Error(se?.error || "Error al enviar código");
|
|
12284
12286
|
}
|
|
12285
|
-
|
|
12287
|
+
d(""), r("changePassword");
|
|
12286
12288
|
} catch (H) {
|
|
12287
12289
|
S(H?.message || "Error inesperado");
|
|
12288
12290
|
} finally {
|
|
@@ -12306,7 +12308,7 @@ function Bu({
|
|
|
12306
12308
|
showPassword: g,
|
|
12307
12309
|
loading: v,
|
|
12308
12310
|
error: N,
|
|
12309
|
-
setConfirmationCode:
|
|
12311
|
+
setConfirmationCode: u,
|
|
12310
12312
|
setNewPassword: f,
|
|
12311
12313
|
setConfirmNewPassword: h,
|
|
12312
12314
|
setShowPassword: w,
|
|
@@ -12366,13 +12368,13 @@ function ul({
|
|
|
12366
12368
|
setEmail: i,
|
|
12367
12369
|
setPassword: o,
|
|
12368
12370
|
setShowPassword: c,
|
|
12369
|
-
onSubmit:
|
|
12371
|
+
onSubmit: d,
|
|
12370
12372
|
onForgot: l,
|
|
12371
|
-
handleGoogleLogin:
|
|
12373
|
+
handleGoogleLogin: u,
|
|
12372
12374
|
t: m
|
|
12373
12375
|
}) {
|
|
12374
12376
|
return /* @__PURE__ */ p(J, { children: [
|
|
12375
|
-
/* @__PURE__ */ p("button", { onClick:
|
|
12377
|
+
/* @__PURE__ */ p("button", { onClick: u, className: "sass-pg-login-google", children: [
|
|
12376
12378
|
/* @__PURE__ */ n(
|
|
12377
12379
|
"img",
|
|
12378
12380
|
{
|
|
@@ -12387,7 +12389,7 @@ function ul({
|
|
|
12387
12389
|
/* @__PURE__ */ p(
|
|
12388
12390
|
"form",
|
|
12389
12391
|
{
|
|
12390
|
-
onSubmit:
|
|
12392
|
+
onSubmit: d,
|
|
12391
12393
|
className: "sass-pg-login-form",
|
|
12392
12394
|
"data-error": r ? "true" : "false",
|
|
12393
12395
|
children: [
|
|
@@ -12507,9 +12509,9 @@ function fl({
|
|
|
12507
12509
|
loading: i,
|
|
12508
12510
|
error: o,
|
|
12509
12511
|
setConfirmationCode: c,
|
|
12510
|
-
setNewPassword:
|
|
12512
|
+
setNewPassword: d,
|
|
12511
12513
|
setConfirmNewPassword: l,
|
|
12512
|
-
setShowPassword:
|
|
12514
|
+
setShowPassword: u,
|
|
12513
12515
|
onSubmit: m,
|
|
12514
12516
|
onBack: f,
|
|
12515
12517
|
t: A
|
|
@@ -12544,7 +12546,7 @@ function fl({
|
|
|
12544
12546
|
{
|
|
12545
12547
|
type: r ? "text" : "password",
|
|
12546
12548
|
value: s,
|
|
12547
|
-
onChange: (g) =>
|
|
12549
|
+
onChange: (g) => d(g.target.value),
|
|
12548
12550
|
className: "sass-pg-login-input",
|
|
12549
12551
|
placeholder: "",
|
|
12550
12552
|
name: "password"
|
|
@@ -12577,7 +12579,7 @@ function fl({
|
|
|
12577
12579
|
id: "showPasswordForgot",
|
|
12578
12580
|
type: "checkbox",
|
|
12579
12581
|
checked: r,
|
|
12580
|
-
onChange: (g) =>
|
|
12582
|
+
onChange: (g) => u(g.target.checked)
|
|
12581
12583
|
}
|
|
12582
12584
|
),
|
|
12583
12585
|
/* @__PURE__ */ n(
|
|
@@ -12620,32 +12622,32 @@ function Ou({ containerId: e, containerId2: t }) {
|
|
|
12620
12622
|
return Te(() => {
|
|
12621
12623
|
try {
|
|
12622
12624
|
let s = function() {
|
|
12623
|
-
const
|
|
12624
|
-
|
|
12625
|
+
const u = window.twttr;
|
|
12626
|
+
u?.widgets ? u.widgets.load(a) : l < 10 ? (l++, requestAnimationFrame(s)) : console.warn("No se pudo cargar widgets de Twitter");
|
|
12625
12627
|
};
|
|
12626
12628
|
const a = document.getElementById(e), r = document.getElementById(t);
|
|
12627
12629
|
if (!a && !r) return;
|
|
12628
12630
|
const i = a?.querySelectorAll("script[src]") ?? [], o = r?.querySelectorAll("script[src]") ?? [];
|
|
12629
|
-
[...i, ...o].forEach((
|
|
12631
|
+
[...i, ...o].forEach((u) => {
|
|
12630
12632
|
const m = document.createElement("script");
|
|
12631
|
-
Array.from(
|
|
12633
|
+
Array.from(u.attributes).forEach((f) => {
|
|
12632
12634
|
m.setAttribute(f.name, f.value);
|
|
12633
|
-
}),
|
|
12635
|
+
}), u.replaceWith(m);
|
|
12634
12636
|
});
|
|
12635
|
-
const
|
|
12637
|
+
const d = document.querySelectorAll(
|
|
12636
12638
|
'script[src*="platform.twitter.com/widgets.js"]'
|
|
12637
12639
|
);
|
|
12638
|
-
if (
|
|
12639
|
-
for (let
|
|
12640
|
-
u
|
|
12640
|
+
if (d)
|
|
12641
|
+
for (let u = 0; u < d.length; u++)
|
|
12642
|
+
d[u]?.remove();
|
|
12641
12643
|
let l = 0;
|
|
12642
12644
|
if (document.querySelector(
|
|
12643
12645
|
'script[src*="platform.twitter.com/widgets.js"]'
|
|
12644
12646
|
))
|
|
12645
12647
|
s();
|
|
12646
12648
|
else {
|
|
12647
|
-
const
|
|
12648
|
-
|
|
12649
|
+
const u = document.createElement("script");
|
|
12650
|
+
u.src = "https://platform.twitter.com/widgets.js", u.async = !0, u.onload = s, document.body.appendChild(u);
|
|
12649
12651
|
}
|
|
12650
12652
|
} catch (s) {
|
|
12651
12653
|
console.warn("Error al procesar embeds de Twitter", s);
|
|
@@ -12668,7 +12670,7 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12668
12670
|
}, [e?.preview?.sizes, e?.preview?.original]);
|
|
12669
12671
|
if (!o.length || !o[0]?.url || o[0]?.url === "")
|
|
12670
12672
|
return /* @__PURE__ */ n("div", { className: "sass-com-img-imagePlaceholder" });
|
|
12671
|
-
const { PUBLIC_API_HOST: c = "", PUBLIC_ASSETS_URL:
|
|
12673
|
+
const { PUBLIC_API_HOST: c = "", PUBLIC_ASSETS_URL: d } = e.API_ENV, l = o[0]?.url, u = d && d !== "false" ? d : c, m = l?.startsWith("http") || l?.includes(u) ? l : u + l;
|
|
12672
12674
|
return /* @__PURE__ */ n("figure", { className: "sass-com-img-figure", children: /* @__PURE__ */ p("span", { className: "sass-com-img-backdrop", children: [
|
|
12673
12675
|
/* @__PURE__ */ n(
|
|
12674
12676
|
"span",
|
|
@@ -12800,7 +12802,7 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12800
12802
|
fetchConfig: o,
|
|
12801
12803
|
paths: c
|
|
12802
12804
|
}) => {
|
|
12803
|
-
const
|
|
12805
|
+
const d = i.FETCH_SIZE_MORE_NEWS ?? 6, [l, u] = $({ data: Array.from({ length: d }, () => wl) }), [m, f] = $(!1), A = ce(async () => {
|
|
12804
12806
|
if (!t) return;
|
|
12805
12807
|
const w = new URLSearchParams({
|
|
12806
12808
|
section: e,
|
|
@@ -12822,7 +12824,7 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12822
12824
|
`${w}${E}/news-list-section`,
|
|
12823
12825
|
{
|
|
12824
12826
|
params: {
|
|
12825
|
-
size:
|
|
12827
|
+
size: d + 1,
|
|
12826
12828
|
newstype: o.newsType,
|
|
12827
12829
|
section: e,
|
|
12828
12830
|
imagesizes: o.imgSizes,
|
|
@@ -12845,12 +12847,12 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12845
12847
|
f(!0);
|
|
12846
12848
|
try {
|
|
12847
12849
|
let w;
|
|
12848
|
-
i.PUBLIC_ENV !== "prod" ? w = await A() : w = await h(),
|
|
12850
|
+
i.PUBLIC_ENV !== "prod" ? w = await A() : w = await h(), u({
|
|
12849
12851
|
...w,
|
|
12850
|
-
data: w.data.slice(0,
|
|
12852
|
+
data: w.data.slice(0, d)
|
|
12851
12853
|
});
|
|
12852
12854
|
} catch (w) {
|
|
12853
|
-
console.error("[/api/get-more-news] Error:", w.message),
|
|
12855
|
+
console.error("[/api/get-more-news] Error:", w.message), u(void 0);
|
|
12854
12856
|
}
|
|
12855
12857
|
}
|
|
12856
12858
|
}, [
|
|
@@ -12890,9 +12892,9 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12890
12892
|
children: t.map((i, o) => {
|
|
12891
12893
|
const {
|
|
12892
12894
|
main: c,
|
|
12893
|
-
authors:
|
|
12895
|
+
authors: d,
|
|
12894
12896
|
info: l,
|
|
12895
|
-
preview:
|
|
12897
|
+
preview: u,
|
|
12896
12898
|
isVideo: m = !1,
|
|
12897
12899
|
config: f,
|
|
12898
12900
|
overImage: A = "default",
|
|
@@ -12917,7 +12919,7 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12917
12919
|
pl,
|
|
12918
12920
|
{
|
|
12919
12921
|
isVisible: e.isVisible,
|
|
12920
|
-
preview:
|
|
12922
|
+
preview: u,
|
|
12921
12923
|
rounded: e.rounded,
|
|
12922
12924
|
isVideo: m,
|
|
12923
12925
|
isLarge: g,
|
|
@@ -12932,9 +12934,9 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12932
12934
|
{
|
|
12933
12935
|
main: c,
|
|
12934
12936
|
SHOW_TAG_BY_SECTION: a.SHOW_TAG_BY_SECTION,
|
|
12935
|
-
authors:
|
|
12937
|
+
authors: d,
|
|
12936
12938
|
info: l,
|
|
12937
|
-
preview:
|
|
12939
|
+
preview: u,
|
|
12938
12940
|
share: e.share,
|
|
12939
12941
|
config: f,
|
|
12940
12942
|
overImage: A,
|
|
@@ -12955,40 +12957,40 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12955
12957
|
}, yl = (e) => {
|
|
12956
12958
|
const { share: t = !1, cutSubtitle: s = !0, SHOW_TAG_BY_SECTION: a, keywords: r, info: i } = e, c = (() => {
|
|
12957
12959
|
if (!e?.authors || e.authors.length === 0) return "";
|
|
12958
|
-
const
|
|
12959
|
-
return
|
|
12960
|
-
})(),
|
|
12960
|
+
const u = e.authors[0], m = Ue(e.info?.date?.modified, e.DATE_CONFIG);
|
|
12961
|
+
return u && e?.config?.showtime && e.config?.showauthor ? `${u.fullname} - ${m}` : u && e.config?.showauthor ? u.fullname : e?.config?.showtime ? m : "";
|
|
12962
|
+
})(), d = () => e.main.uppertitle ? /* @__PURE__ */ n("p", { className: "sass-com-nd-uppertitle", title: e.main.uppertitle, children: e.main.uppertitle }) : null;
|
|
12961
12963
|
return /* @__PURE__ */ p("div", { className: "sass-com-nd-boxInformation", children: [
|
|
12962
12964
|
t && /* @__PURE__ */ n(Al, { className: "sass-com-nd-dotStyles" }),
|
|
12963
12965
|
/* @__PURE__ */ n(() => {
|
|
12964
12966
|
if (a && r?.tags?.length && r.tags.length > 0) {
|
|
12965
|
-
const
|
|
12967
|
+
const u = r.tags[0], m = u.name;
|
|
12966
12968
|
return /* @__PURE__ */ p("h3", { className: "sass-com-nd-sectionDescriptionContainer", children: [
|
|
12967
|
-
|
|
12969
|
+
u.approved ? /* @__PURE__ */ n(
|
|
12968
12970
|
O,
|
|
12969
12971
|
{
|
|
12970
12972
|
"aria-label": m,
|
|
12971
12973
|
block_subPublication: e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,
|
|
12972
12974
|
className: "sass-com-nd-sectionDescription",
|
|
12973
|
-
href: De(
|
|
12975
|
+
href: De(u, e.paths),
|
|
12974
12976
|
children: m
|
|
12975
12977
|
}
|
|
12976
12978
|
) : /* @__PURE__ */ n("div", { className: "sass-com-nd-sectionDescription", children: m }),
|
|
12977
|
-
|
|
12979
|
+
d()
|
|
12978
12980
|
] });
|
|
12979
12981
|
} else if (i?.section?.url) {
|
|
12980
|
-
const
|
|
12982
|
+
const u = i.section.name;
|
|
12981
12983
|
return /* @__PURE__ */ p("h3", { className: "sass-com-nd-sectionDescriptionContainer", children: [
|
|
12982
12984
|
/* @__PURE__ */ n(
|
|
12983
12985
|
O,
|
|
12984
12986
|
{
|
|
12985
|
-
"aria-label":
|
|
12987
|
+
"aria-label": u,
|
|
12986
12988
|
className: "sass-com-nd-sectionDescription",
|
|
12987
12989
|
href: i.section.url,
|
|
12988
|
-
children:
|
|
12990
|
+
children: u
|
|
12989
12991
|
}
|
|
12990
12992
|
),
|
|
12991
|
-
|
|
12993
|
+
d()
|
|
12992
12994
|
] });
|
|
12993
12995
|
}
|
|
12994
12996
|
return null;
|
|
@@ -13038,8 +13040,8 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13038
13040
|
texts: a
|
|
13039
13041
|
}) => {
|
|
13040
13042
|
const r = { ...Cl, ...a?.comentarios }, i = () => {
|
|
13041
|
-
const
|
|
13042
|
-
|
|
13043
|
+
const d = document.querySelector(".user-actions-options");
|
|
13044
|
+
d && d.classList.toggle("show");
|
|
13043
13045
|
}, o = e.firstname ?? "Usuario", c = r.userGreeting.replace("{{name}}", o);
|
|
13044
13046
|
return /* @__PURE__ */ n("div", { className: "comment-item", children: /* @__PURE__ */ p("div", { style: { display: "flex", gap: "14px" }, children: [
|
|
13045
13047
|
e && e.picture && e.picture !== "" ? /* @__PURE__ */ n(
|
|
@@ -13099,7 +13101,7 @@ async function Mu({
|
|
|
13099
13101
|
captchaToken: i,
|
|
13100
13102
|
apiToken: o,
|
|
13101
13103
|
securityToken: c,
|
|
13102
|
-
COMMENTS_VARS:
|
|
13104
|
+
COMMENTS_VARS: d
|
|
13103
13105
|
}) {
|
|
13104
13106
|
if (!e || !t || !s || !a || !i)
|
|
13105
13107
|
throw new Error(
|
|
@@ -13107,15 +13109,15 @@ async function Mu({
|
|
|
13107
13109
|
);
|
|
13108
13110
|
if (typeof e != "string" || typeof t != "string" || typeof s != "string" || typeof a != "string" || typeof i != "string")
|
|
13109
13111
|
throw new Error("Todos los parámetros deben ser strings");
|
|
13110
|
-
if (!await xa(i,
|
|
13112
|
+
if (!await xa(i, d))
|
|
13111
13113
|
throw new Error("Token de captcha inválido");
|
|
13112
13114
|
if (!o)
|
|
13113
13115
|
throw new Error("Falta el token de API del CMS");
|
|
13114
|
-
const l = `${r}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,
|
|
13116
|
+
const l = `${r}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`, u = encodeURIComponent(a), m = new URLSearchParams({
|
|
13115
13117
|
publication: e,
|
|
13116
13118
|
username: t ?? !1,
|
|
13117
13119
|
id: s,
|
|
13118
|
-
type:
|
|
13120
|
+
type: u
|
|
13119
13121
|
}), f = `${l}?${m.toString()}`;
|
|
13120
13122
|
try {
|
|
13121
13123
|
console.log("Reporting comment:", {
|
|
@@ -13123,7 +13125,7 @@ async function Mu({
|
|
|
13123
13125
|
username: t,
|
|
13124
13126
|
id: s,
|
|
13125
13127
|
type: a,
|
|
13126
|
-
encodedType:
|
|
13128
|
+
encodedType: u,
|
|
13127
13129
|
url: f
|
|
13128
13130
|
});
|
|
13129
13131
|
const A = await re.get(f, {
|
|
@@ -13177,8 +13179,8 @@ function Sl(e) {
|
|
|
13177
13179
|
}
|
|
13178
13180
|
const jt = (e, t, s) => {
|
|
13179
13181
|
if (!e || !e.current) return { boolean: !1, text: "" };
|
|
13180
|
-
const a = e.current?.value || "", r = a.length > Re, { PUBLIC_ENV: i } = s, o = i === "local", c = a.trim() !== "" && (o || t !== "") && !r,
|
|
13181
|
-
return { boolean: c, text:
|
|
13182
|
+
const a = e.current?.value || "", r = a.length > Re, { PUBLIC_ENV: i } = s, o = i === "local", c = a.trim() !== "" && (o || t !== "") && !r, d = r ? `No debes exceder el limite de ${Re} caracteres.` : "Debes completar todos los campos para comentar.";
|
|
13183
|
+
return { boolean: c, text: d };
|
|
13182
13184
|
}, Ra = (e) => {
|
|
13183
13185
|
const t = e.cookie.split("; ").find((s) => s.startsWith("reported="));
|
|
13184
13186
|
if (!t) return [];
|
|
@@ -13198,14 +13200,14 @@ var yn;
|
|
|
13198
13200
|
function Tl() {
|
|
13199
13201
|
if (yn) return ne;
|
|
13200
13202
|
yn = 1;
|
|
13201
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110,
|
|
13203
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
13202
13204
|
function N(b) {
|
|
13203
13205
|
if (typeof b == "object" && b !== null) {
|
|
13204
13206
|
var I = b.$$typeof;
|
|
13205
13207
|
switch (I) {
|
|
13206
13208
|
case t:
|
|
13207
13209
|
switch (b = b.type, b) {
|
|
13208
|
-
case
|
|
13210
|
+
case d:
|
|
13209
13211
|
case l:
|
|
13210
13212
|
case a:
|
|
13211
13213
|
case i:
|
|
@@ -13215,7 +13217,7 @@ function Tl() {
|
|
|
13215
13217
|
default:
|
|
13216
13218
|
switch (b = b && b.$$typeof, b) {
|
|
13217
13219
|
case c:
|
|
13218
|
-
case
|
|
13220
|
+
case u:
|
|
13219
13221
|
case h:
|
|
13220
13222
|
case A:
|
|
13221
13223
|
case o:
|
|
@@ -13232,8 +13234,8 @@ function Tl() {
|
|
|
13232
13234
|
function S(b) {
|
|
13233
13235
|
return N(b) === l;
|
|
13234
13236
|
}
|
|
13235
|
-
return ne.AsyncMode =
|
|
13236
|
-
return S(b) || N(b) ===
|
|
13237
|
+
return ne.AsyncMode = d, ne.ConcurrentMode = l, ne.ContextConsumer = c, ne.ContextProvider = o, ne.Element = t, ne.ForwardRef = u, ne.Fragment = a, ne.Lazy = h, ne.Memo = A, ne.Portal = s, ne.Profiler = i, ne.StrictMode = r, ne.Suspense = m, ne.isAsyncMode = function(b) {
|
|
13238
|
+
return S(b) || N(b) === d;
|
|
13237
13239
|
}, ne.isConcurrentMode = S, ne.isContextConsumer = function(b) {
|
|
13238
13240
|
return N(b) === c;
|
|
13239
13241
|
}, ne.isContextProvider = function(b) {
|
|
@@ -13241,7 +13243,7 @@ function Tl() {
|
|
|
13241
13243
|
}, ne.isElement = function(b) {
|
|
13242
13244
|
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
13243
13245
|
}, ne.isForwardRef = function(b) {
|
|
13244
|
-
return N(b) ===
|
|
13246
|
+
return N(b) === u;
|
|
13245
13247
|
}, ne.isFragment = function(b) {
|
|
13246
13248
|
return N(b) === a;
|
|
13247
13249
|
}, ne.isLazy = function(b) {
|
|
@@ -13257,17 +13259,17 @@ function Tl() {
|
|
|
13257
13259
|
}, ne.isSuspense = function(b) {
|
|
13258
13260
|
return N(b) === m;
|
|
13259
13261
|
}, ne.isValidElementType = function(b) {
|
|
13260
|
-
return typeof b == "string" || typeof b == "function" || b === a || b === l || b === i || b === r || b === m || b === f || typeof b == "object" && b !== null && (b.$$typeof === h || b.$$typeof === A || b.$$typeof === o || b.$$typeof === c || b.$$typeof ===
|
|
13262
|
+
return typeof b == "string" || typeof b == "function" || b === a || b === l || b === i || b === r || b === m || b === f || typeof b == "object" && b !== null && (b.$$typeof === h || b.$$typeof === A || b.$$typeof === o || b.$$typeof === c || b.$$typeof === u || b.$$typeof === w || b.$$typeof === v || b.$$typeof === E || b.$$typeof === g);
|
|
13261
13263
|
}, ne.typeOf = N, ne;
|
|
13262
13264
|
}
|
|
13263
13265
|
var ae = {};
|
|
13264
13266
|
var Cn;
|
|
13265
13267
|
function Il() {
|
|
13266
13268
|
return Cn || (Cn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
13267
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110,
|
|
13269
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
13268
13270
|
function N(B) {
|
|
13269
13271
|
return typeof B == "string" || typeof B == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
13270
|
-
B === a || B === l || B === i || B === r || B === m || B === f || typeof B == "object" && B !== null && (B.$$typeof === h || B.$$typeof === A || B.$$typeof === o || B.$$typeof === c || B.$$typeof ===
|
|
13272
|
+
B === a || B === l || B === i || B === r || B === m || B === f || typeof B == "object" && B !== null && (B.$$typeof === h || B.$$typeof === A || B.$$typeof === o || B.$$typeof === c || B.$$typeof === u || B.$$typeof === w || B.$$typeof === v || B.$$typeof === E || B.$$typeof === g);
|
|
13271
13273
|
}
|
|
13272
13274
|
function S(B) {
|
|
13273
13275
|
if (typeof B == "object" && B !== null) {
|
|
@@ -13276,7 +13278,7 @@ function Il() {
|
|
|
13276
13278
|
case t:
|
|
13277
13279
|
var ct = B.type;
|
|
13278
13280
|
switch (ct) {
|
|
13279
|
-
case
|
|
13281
|
+
case d:
|
|
13280
13282
|
case l:
|
|
13281
13283
|
case a:
|
|
13282
13284
|
case i:
|
|
@@ -13287,7 +13289,7 @@ function Il() {
|
|
|
13287
13289
|
var _s = ct && ct.$$typeof;
|
|
13288
13290
|
switch (_s) {
|
|
13289
13291
|
case c:
|
|
13290
|
-
case
|
|
13292
|
+
case u:
|
|
13291
13293
|
case h:
|
|
13292
13294
|
case A:
|
|
13293
13295
|
case o:
|
|
@@ -13301,9 +13303,9 @@ function Il() {
|
|
|
13301
13303
|
}
|
|
13302
13304
|
}
|
|
13303
13305
|
}
|
|
13304
|
-
var b =
|
|
13306
|
+
var b = d, I = l, R = c, Q = o, W = t, j = u, L = a, H = h, se = A, q = s, x = i, U = r, M = m, k = !1;
|
|
13305
13307
|
function F(B) {
|
|
13306
|
-
return k || (k = !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.")), y(B) || S(B) ===
|
|
13308
|
+
return k || (k = !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.")), y(B) || S(B) === d;
|
|
13307
13309
|
}
|
|
13308
13310
|
function y(B) {
|
|
13309
13311
|
return S(B) === l;
|
|
@@ -13318,7 +13320,7 @@ function Il() {
|
|
|
13318
13320
|
return typeof B == "object" && B !== null && B.$$typeof === t;
|
|
13319
13321
|
}
|
|
13320
13322
|
function D(B) {
|
|
13321
|
-
return S(B) ===
|
|
13323
|
+
return S(B) === u;
|
|
13322
13324
|
}
|
|
13323
13325
|
function V(B) {
|
|
13324
13326
|
return S(B) === a;
|
|
@@ -13367,31 +13369,31 @@ function Ul() {
|
|
|
13367
13369
|
return !1;
|
|
13368
13370
|
for (var o = {}, c = 0; c < 10; c++)
|
|
13369
13371
|
o["_" + String.fromCharCode(c)] = c;
|
|
13370
|
-
var
|
|
13371
|
-
return o[
|
|
13372
|
+
var d = Object.getOwnPropertyNames(o).map(function(u) {
|
|
13373
|
+
return o[u];
|
|
13372
13374
|
});
|
|
13373
|
-
if (
|
|
13375
|
+
if (d.join("") !== "0123456789")
|
|
13374
13376
|
return !1;
|
|
13375
13377
|
var l = {};
|
|
13376
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
13377
|
-
l[
|
|
13378
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(u) {
|
|
13379
|
+
l[u] = u;
|
|
13378
13380
|
}), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
|
|
13379
13381
|
} catch {
|
|
13380
13382
|
return !1;
|
|
13381
13383
|
}
|
|
13382
13384
|
}
|
|
13383
13385
|
return Wt = r() ? Object.assign : function(i, o) {
|
|
13384
|
-
for (var c,
|
|
13385
|
-
c = Object(arguments[
|
|
13386
|
+
for (var c, d = a(i), l, u = 1; u < arguments.length; u++) {
|
|
13387
|
+
c = Object(arguments[u]);
|
|
13386
13388
|
for (var m in c)
|
|
13387
|
-
t.call(c, m) && (
|
|
13389
|
+
t.call(c, m) && (d[m] = c[m]);
|
|
13388
13390
|
if (e) {
|
|
13389
13391
|
l = e(c);
|
|
13390
13392
|
for (var f = 0; f < l.length; f++)
|
|
13391
|
-
s.call(c, l[f]) && (
|
|
13393
|
+
s.call(c, l[f]) && (d[l[f]] = c[l[f]]);
|
|
13392
13394
|
}
|
|
13393
13395
|
}
|
|
13394
|
-
return
|
|
13396
|
+
return d;
|
|
13395
13397
|
}, Wt;
|
|
13396
13398
|
}
|
|
13397
13399
|
var Yt, En;
|
|
@@ -13422,24 +13424,24 @@ function xl() {
|
|
|
13422
13424
|
}
|
|
13423
13425
|
};
|
|
13424
13426
|
}
|
|
13425
|
-
function r(i, o, c,
|
|
13427
|
+
function r(i, o, c, d, l) {
|
|
13426
13428
|
if (process.env.NODE_ENV !== "production") {
|
|
13427
|
-
for (var
|
|
13428
|
-
if (a(i,
|
|
13429
|
+
for (var u in i)
|
|
13430
|
+
if (a(i, u)) {
|
|
13429
13431
|
var m;
|
|
13430
13432
|
try {
|
|
13431
|
-
if (typeof i[
|
|
13433
|
+
if (typeof i[u] != "function") {
|
|
13432
13434
|
var f = Error(
|
|
13433
|
-
(
|
|
13435
|
+
(d || "React class") + ": " + c + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
13434
13436
|
);
|
|
13435
13437
|
throw f.name = "Invariant Violation", f;
|
|
13436
13438
|
}
|
|
13437
|
-
m = i[
|
|
13439
|
+
m = i[u](o, u, d, c, null, t);
|
|
13438
13440
|
} catch (h) {
|
|
13439
13441
|
m = h;
|
|
13440
13442
|
}
|
|
13441
13443
|
if (m && !(m instanceof Error) && e(
|
|
13442
|
-
(
|
|
13444
|
+
(d || "React class") + ": type specification of " + c + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
13443
13445
|
), m instanceof Error && !(m.message in s)) {
|
|
13444
13446
|
s[m.message] = !0;
|
|
13445
13447
|
var A = l ? l() : "";
|
|
@@ -13461,20 +13463,20 @@ function Rl() {
|
|
|
13461
13463
|
var e = Rs(), t = Ul(), s = /* @__PURE__ */ ks(), a = /* @__PURE__ */ ka(), r = /* @__PURE__ */ xl(), i = function() {
|
|
13462
13464
|
};
|
|
13463
13465
|
process.env.NODE_ENV !== "production" && (i = function(c) {
|
|
13464
|
-
var
|
|
13465
|
-
typeof console < "u" && console.error(
|
|
13466
|
+
var d = "Warning: " + c;
|
|
13467
|
+
typeof console < "u" && console.error(d);
|
|
13466
13468
|
try {
|
|
13467
|
-
throw new Error(
|
|
13469
|
+
throw new Error(d);
|
|
13468
13470
|
} catch {
|
|
13469
13471
|
}
|
|
13470
13472
|
});
|
|
13471
13473
|
function o() {
|
|
13472
13474
|
return null;
|
|
13473
13475
|
}
|
|
13474
|
-
return $t = function(c,
|
|
13475
|
-
var l = typeof Symbol == "function" && Symbol.iterator,
|
|
13476
|
+
return $t = function(c, d) {
|
|
13477
|
+
var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
13476
13478
|
function m(y) {
|
|
13477
|
-
var T = y && (l && y[l] || y[
|
|
13479
|
+
var T = y && (l && y[l] || y[u]);
|
|
13478
13480
|
if (typeof T == "function")
|
|
13479
13481
|
return T;
|
|
13480
13482
|
}
|
|
@@ -13511,7 +13513,7 @@ function Rl() {
|
|
|
13511
13513
|
var T = {}, P = 0;
|
|
13512
13514
|
function G(V, z, Y, ee, te, K, ie) {
|
|
13513
13515
|
if (ee = ee || f, K = K || Y, ie !== s) {
|
|
13514
|
-
if (
|
|
13516
|
+
if (d) {
|
|
13515
13517
|
var B = new Error(
|
|
13516
13518
|
"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"
|
|
13517
13519
|
);
|
|
@@ -13785,7 +13787,7 @@ function kl() {
|
|
|
13785
13787
|
function s() {
|
|
13786
13788
|
}
|
|
13787
13789
|
return s.resetWarningCache = t, Zt = function() {
|
|
13788
|
-
function a(o, c,
|
|
13790
|
+
function a(o, c, d, l, u, m) {
|
|
13789
13791
|
if (m !== e) {
|
|
13790
13792
|
var f = new Error(
|
|
13791
13793
|
"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"
|
|
@@ -14004,19 +14006,19 @@ function Ml() {
|
|
|
14004
14006
|
function o(h) {
|
|
14005
14007
|
return e.isMemo(h) ? r : i[h.$$typeof] || t;
|
|
14006
14008
|
}
|
|
14007
|
-
var c = Object.defineProperty,
|
|
14009
|
+
var c = Object.defineProperty, d = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, u = Object.getOwnPropertyDescriptor, m = Object.getPrototypeOf, f = Object.prototype;
|
|
14008
14010
|
function A(h, g, w) {
|
|
14009
14011
|
if (typeof g != "string") {
|
|
14010
14012
|
if (f) {
|
|
14011
14013
|
var v = m(g);
|
|
14012
14014
|
v && v !== f && A(h, v, w);
|
|
14013
14015
|
}
|
|
14014
|
-
var E =
|
|
14016
|
+
var E = d(g);
|
|
14015
14017
|
l && (E = E.concat(l(g)));
|
|
14016
14018
|
for (var N = o(h), S = o(g), b = 0; b < E.length; ++b) {
|
|
14017
14019
|
var I = E[b];
|
|
14018
14020
|
if (!s[I] && !(w && w[I]) && !(S && S[I]) && !(N && N[I])) {
|
|
14019
|
-
var R =
|
|
14021
|
+
var R = u(g, I);
|
|
14020
14022
|
try {
|
|
14021
14023
|
c(h, I, R);
|
|
14022
14024
|
} catch {
|
|
@@ -14054,12 +14056,12 @@ var Ce = {}, Ql = 0;
|
|
|
14054
14056
|
function Hl(e, t) {
|
|
14055
14057
|
return t = t || {}, function(a) {
|
|
14056
14058
|
var r = a.displayName || a.name || "Component", i = /* @__PURE__ */ (function(c) {
|
|
14057
|
-
jl(
|
|
14058
|
-
function u
|
|
14059
|
+
jl(d, c);
|
|
14060
|
+
function d(u, m) {
|
|
14059
14061
|
var f;
|
|
14060
|
-
return f = c.call(this,
|
|
14062
|
+
return f = c.call(this, u, m) || this, f.state = {}, f.__scriptURL = "", f;
|
|
14061
14063
|
}
|
|
14062
|
-
var l =
|
|
14064
|
+
var l = d.prototype;
|
|
14063
14065
|
return l.asyncScriptLoaderGetScriptLoaderID = function() {
|
|
14064
14066
|
return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + Ql++), this.__scriptLoaderID;
|
|
14065
14067
|
}, l.setupScriptURL = function() {
|
|
@@ -14136,10 +14138,10 @@ function Hl(e, t) {
|
|
|
14136
14138
|
f.asyncScriptOnLoad;
|
|
14137
14139
|
var A = f.forwardedRef, h = Gl(f, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
14138
14140
|
return m && typeof window < "u" && (h[m] = typeof window[m] < "u" ? window[m] : void 0), h.ref = A, Le(a, h);
|
|
14139
|
-
},
|
|
14140
|
-
})(Da), o = On(function(c,
|
|
14141
|
+
}, d;
|
|
14142
|
+
})(Da), o = On(function(c, d) {
|
|
14141
14143
|
return Le(i, ms({}, c, {
|
|
14142
|
-
forwardedRef:
|
|
14144
|
+
forwardedRef: d
|
|
14143
14145
|
}));
|
|
14144
14146
|
});
|
|
14145
14147
|
return o.displayName = "AsyncScriptLoader(" + r + ")", o.propTypes = {
|
|
@@ -14189,23 +14191,23 @@ const La = Hl(Fl, {
|
|
|
14189
14191
|
CAPTCHA_KEY_V2: i,
|
|
14190
14192
|
texts: o
|
|
14191
14193
|
}) => {
|
|
14192
|
-
const c = { ...zl, ...o?.comentarios },
|
|
14194
|
+
const c = { ...zl, ...o?.comentarios }, d = { ...ls, ...c.reportReasons ?? {} }, [l, u] = $("form"), [m, f] = $(
|
|
14193
14195
|
""
|
|
14194
14196
|
), [A, h] = $(""), [g, w] = $(""), v = [
|
|
14195
|
-
{ id: "spam", label:
|
|
14196
|
-
{ id: "inappropriate", label:
|
|
14197
|
-
{ id: "hate", label:
|
|
14198
|
-
{ id: "misinformation", label:
|
|
14199
|
-
{ id: "terrorism", label:
|
|
14200
|
-
{ id: "intellectual", label:
|
|
14201
|
-
{ id: "bullying", label:
|
|
14197
|
+
{ id: "spam", label: d.spam },
|
|
14198
|
+
{ id: "inappropriate", label: d.inappropriate },
|
|
14199
|
+
{ id: "hate", label: d.hate },
|
|
14200
|
+
{ id: "misinformation", label: d.misinformation },
|
|
14201
|
+
{ id: "terrorism", label: d.terrorism },
|
|
14202
|
+
{ id: "intellectual", label: d.intellectual },
|
|
14203
|
+
{ id: "bullying", label: d.bullying }
|
|
14202
14204
|
], E = async () => {
|
|
14203
14205
|
if (!(!m || !s)) {
|
|
14204
14206
|
if (Ra(document).includes(s)) {
|
|
14205
14207
|
h(c.errorAlreadyReported);
|
|
14206
14208
|
return;
|
|
14207
14209
|
}
|
|
14208
|
-
|
|
14210
|
+
u("loading"), h("");
|
|
14209
14211
|
try {
|
|
14210
14212
|
const b = await (await fetch("/api/comments-report", {
|
|
14211
14213
|
method: "POST",
|
|
@@ -14222,17 +14224,17 @@ const La = Hl(Fl, {
|
|
|
14222
14224
|
})
|
|
14223
14225
|
})).json();
|
|
14224
14226
|
if (b.type === "success")
|
|
14225
|
-
El(document, s),
|
|
14227
|
+
El(document, s), u("success"), setTimeout(() => {
|
|
14226
14228
|
N();
|
|
14227
14229
|
}, 3e3);
|
|
14228
14230
|
else
|
|
14229
14231
|
throw new Error(b.message || c.errorReportComment);
|
|
14230
14232
|
} catch (S) {
|
|
14231
|
-
console.error("Error reporting comment:", S), h(S.message || c.errorReportComment),
|
|
14233
|
+
console.error("Error reporting comment:", S), h(S.message || c.errorReportComment), u("form");
|
|
14232
14234
|
}
|
|
14233
14235
|
}
|
|
14234
14236
|
}, N = () => {
|
|
14235
|
-
|
|
14237
|
+
u("form"), f(""), h(""), t();
|
|
14236
14238
|
};
|
|
14237
14239
|
return !e || !s || !r ? null : /* @__PURE__ */ n("div", { className: "sass-pg-cmt-rp-overlay", children: /* @__PURE__ */ p("div", { className: "sass-pg-cmt-rp-popup", children: [
|
|
14238
14240
|
/* @__PURE__ */ n("button", { className: "close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none", onClick: N, children: /* @__PURE__ */ n($e, {}) }),
|
|
@@ -14353,11 +14355,11 @@ async function Ps({
|
|
|
14353
14355
|
lastid: i,
|
|
14354
14356
|
state: o = "5,6",
|
|
14355
14357
|
apiToken: c,
|
|
14356
|
-
API_ENV:
|
|
14358
|
+
API_ENV: d
|
|
14357
14359
|
}) {
|
|
14358
|
-
const { PUBLIC_ENV: l } =
|
|
14360
|
+
const { PUBLIC_ENV: l } = d;
|
|
14359
14361
|
if (l === "prod") {
|
|
14360
|
-
const
|
|
14362
|
+
const u = await Kl({
|
|
14361
14363
|
publication: e,
|
|
14362
14364
|
path: t,
|
|
14363
14365
|
size: s,
|
|
@@ -14366,14 +14368,14 @@ async function Ps({
|
|
|
14366
14368
|
lastid: i,
|
|
14367
14369
|
state: o,
|
|
14368
14370
|
apiToken: c,
|
|
14369
|
-
API_ENV:
|
|
14371
|
+
API_ENV: d
|
|
14370
14372
|
});
|
|
14371
|
-
return xt(
|
|
14373
|
+
return xt(u[0]);
|
|
14372
14374
|
} else {
|
|
14373
|
-
const
|
|
14374
|
-
if (!
|
|
14375
|
-
throw new Error(`Error al obtener comentarios: ${
|
|
14376
|
-
const m = await
|
|
14375
|
+
const u = await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${s}&sizereply=${a}&lastid=${i}`);
|
|
14376
|
+
if (!u.ok)
|
|
14377
|
+
throw new Error(`Error al obtener comentarios: ${u.status}`);
|
|
14378
|
+
const m = await u.json();
|
|
14377
14379
|
return xt(m.data[0]);
|
|
14378
14380
|
}
|
|
14379
14381
|
}
|
|
@@ -14386,7 +14388,7 @@ async function Kl({
|
|
|
14386
14388
|
lastid: i,
|
|
14387
14389
|
state: o = "5,6",
|
|
14388
14390
|
apiToken: c,
|
|
14389
|
-
API_ENV:
|
|
14391
|
+
API_ENV: d
|
|
14390
14392
|
}) {
|
|
14391
14393
|
if (!e || !t)
|
|
14392
14394
|
throw new Error("Missing required parameters: publication and path");
|
|
@@ -14394,12 +14396,12 @@ async function Kl({
|
|
|
14394
14396
|
throw new Error("Invalid input types for publication or path");
|
|
14395
14397
|
if (!c)
|
|
14396
14398
|
throw new Error("Missing CMS API token");
|
|
14397
|
-
const { PUBLIC_ENV: l, PUBLIC_API_HOST:
|
|
14399
|
+
const { PUBLIC_ENV: l, PUBLIC_API_HOST: u = "dummy", PUBLIC_API_PATH: m, PUBLIC_API_PATH_VERSION: f } = d, A = parseInt(String(s), 10), h = parseInt(String(a), 10);
|
|
14398
14400
|
if (isNaN(A) || A <= 0)
|
|
14399
14401
|
throw new Error("Invalid size parameter");
|
|
14400
14402
|
if (isNaN(h) || h < 0)
|
|
14401
14403
|
throw new Error("Invalid sizereply parameter");
|
|
14402
|
-
const g = l !== "prod" ? `${
|
|
14404
|
+
const g = l !== "prod" ? `${u}${m}` : "", w = new URLSearchParams({
|
|
14403
14405
|
publication: e,
|
|
14404
14406
|
path: t,
|
|
14405
14407
|
size: A.toString(),
|
|
@@ -14435,7 +14437,7 @@ const Jl = (e, t) => {
|
|
|
14435
14437
|
(async () => {
|
|
14436
14438
|
const { PUBLIC_X_SECURITY_TOKEN: c } = t;
|
|
14437
14439
|
try {
|
|
14438
|
-
const
|
|
14440
|
+
const d = await Ps({
|
|
14439
14441
|
publication: i,
|
|
14440
14442
|
path: e ?? "",
|
|
14441
14443
|
size: 5,
|
|
@@ -14446,7 +14448,7 @@ const Jl = (e, t) => {
|
|
|
14446
14448
|
apiToken: c,
|
|
14447
14449
|
API_ENV: t
|
|
14448
14450
|
});
|
|
14449
|
-
a(
|
|
14451
|
+
a(d ?? []);
|
|
14450
14452
|
} catch {
|
|
14451
14453
|
a({ comments: [], morecomment: !1 });
|
|
14452
14454
|
}
|
|
@@ -14595,11 +14597,11 @@ function ed({
|
|
|
14595
14597
|
texts: a,
|
|
14596
14598
|
API_ENV: r
|
|
14597
14599
|
}) {
|
|
14598
|
-
const i = { ...Xl, ...Zl, ...a?.comentarios }, o = (
|
|
14599
|
-
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = "/auth/login" + (
|
|
14600
|
+
const i = { ...Xl, ...Zl, ...a?.comentarios }, o = (u) => {
|
|
14601
|
+
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = "/auth/login" + (u ? "#forgot" : ""));
|
|
14600
14602
|
}, c = () => {
|
|
14601
14603
|
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = "/auth/register");
|
|
14602
|
-
}, { PUBLIC_ASSETS_URL:
|
|
14604
|
+
}, { PUBLIC_ASSETS_URL: d } = r, l = (d && d !== "false" ? d : "") + "/versions/images/anonimus-img.png";
|
|
14603
14605
|
return /* @__PURE__ */ n(
|
|
14604
14606
|
"div",
|
|
14605
14607
|
{
|
|
@@ -14607,8 +14609,8 @@ function ed({
|
|
|
14607
14609
|
role: "dialog",
|
|
14608
14610
|
"aria-modal": "true",
|
|
14609
14611
|
id: "pop-overlay",
|
|
14610
|
-
onClick: (
|
|
14611
|
-
const m =
|
|
14612
|
+
onClick: (u) => {
|
|
14613
|
+
const m = u.target;
|
|
14612
14614
|
m && m.id === "pop-overlay" && e();
|
|
14613
14615
|
},
|
|
14614
14616
|
children: /* @__PURE__ */ p("div", { className: "sass-pg-cmt-lp-card", children: [
|
|
@@ -14669,23 +14671,23 @@ function ed({
|
|
|
14669
14671
|
const td = {
|
|
14670
14672
|
submitCommentButton: "Enviar Comentario"
|
|
14671
14673
|
}, qs = ({ onClick: e, isDisabled: t, API_ENV: s, icon: a, handleGoogleLogin: r, showAlert: i, texts: o }) => {
|
|
14672
|
-
const c = { ...td, ...o?.comentarios }, [
|
|
14674
|
+
const c = { ...td, ...o?.comentarios }, [d, l] = le.useState(!1), [u, m] = le.useState(!1), [f, A] = le.useState(!1);
|
|
14673
14675
|
le.useEffect(() => {
|
|
14674
14676
|
let g = null;
|
|
14675
|
-
return
|
|
14677
|
+
return d && (g = setTimeout(() => {
|
|
14676
14678
|
l(!1);
|
|
14677
14679
|
}, 2400)), () => {
|
|
14678
14680
|
g && clearTimeout(g);
|
|
14679
14681
|
};
|
|
14680
|
-
}, [
|
|
14681
|
-
if (!
|
|
14682
|
+
}, [d]), le.useEffect(() => {
|
|
14683
|
+
if (!u || !s.CONFIG_commentsV2 || !i || !document) return;
|
|
14682
14684
|
const g = document.getElementById("comment-button");
|
|
14683
14685
|
if (!g) return;
|
|
14684
14686
|
const w = g.closest(".comment-form"), v = w?.querySelector('input[name="username"]'), E = w?.querySelector('textarea[name="comment"]'), N = w?.querySelector("textarea.g-recaptcha-response") ?? document.querySelector("#g-recaptcha-response");
|
|
14685
14687
|
v?.value?.trim() && E?.value?.trim() && N?.value?.trim() && g.click();
|
|
14686
14688
|
});
|
|
14687
14689
|
const h = oe("/Success.gif");
|
|
14688
|
-
return
|
|
14690
|
+
return d ? /* @__PURE__ */ n("div", { className: "success-gif-container su-flex-center su-relative", children: /* @__PURE__ */ n("img", { className: "success-gif su-absolute", src: h }) }) : /* @__PURE__ */ p(J, { children: [
|
|
14689
14691
|
f && s.CONFIG_commentsV2 && i && /* @__PURE__ */ n(ed, { API_ENV: s, icon: a, handleGoogleLogin: r, texts: o, onClose: (g) => {
|
|
14690
14692
|
g && m(!0), A(!1);
|
|
14691
14693
|
} }),
|
|
@@ -14694,7 +14696,7 @@ const td = {
|
|
|
14694
14696
|
{
|
|
14695
14697
|
type: "button",
|
|
14696
14698
|
onClick: async (g) => {
|
|
14697
|
-
if (!
|
|
14699
|
+
if (!u && s.CONFIG_commentsV2 && i) {
|
|
14698
14700
|
A(!0), console.log("open popup");
|
|
14699
14701
|
return;
|
|
14700
14702
|
}
|
|
@@ -14735,16 +14737,16 @@ const td = {
|
|
|
14735
14737
|
id: i,
|
|
14736
14738
|
addComment: o,
|
|
14737
14739
|
API_ENV: c,
|
|
14738
|
-
anonimusUser:
|
|
14740
|
+
anonimusUser: d
|
|
14739
14741
|
}) => {
|
|
14740
|
-
const l = t.current?.value || "", { PUBLIC_PUBLICATION_ID:
|
|
14741
|
-
if (console.log("check", r,
|
|
14742
|
+
const l = t.current?.value || "", { PUBLIC_PUBLICATION_ID: u } = c, m = u;
|
|
14743
|
+
if (console.log("check", r, d), !jt(t, s, c).boolean || !r && !d) {
|
|
14742
14744
|
console.log("warn");
|
|
14743
14745
|
const A = a.nextElementSibling;
|
|
14744
14746
|
return A && (A.style.display = "block"), !1;
|
|
14745
14747
|
}
|
|
14746
|
-
if (!r && !
|
|
14747
|
-
const f = r ? l : "[[" +
|
|
14748
|
+
if (!r && !d) return;
|
|
14749
|
+
const f = r ? l : "[[" + d + "]] " + l;
|
|
14748
14750
|
try {
|
|
14749
14751
|
const A = Date.now(), h = await fetch("/api/comments-add", {
|
|
14750
14752
|
method: "POST",
|
|
@@ -14768,7 +14770,7 @@ const td = {
|
|
|
14768
14770
|
throw new Error(
|
|
14769
14771
|
`Error al enviar comentario: ${g?.message} status: ${h.status}`
|
|
14770
14772
|
);
|
|
14771
|
-
const w = Date.now(), v = Math.max(0, 2400 + Math.abs(w - A)), E = r || { username:
|
|
14773
|
+
const w = Date.now(), v = Math.max(0, 2400 + Math.abs(w - A)), E = r || { username: d, firstname: d }, N = {
|
|
14772
14774
|
username: E.username,
|
|
14773
14775
|
firstname: E.firstname,
|
|
14774
14776
|
...E.lastname && { lastname: E.lastname },
|
|
@@ -14794,7 +14796,7 @@ const td = {
|
|
|
14794
14796
|
API_ENV: o,
|
|
14795
14797
|
texts: c
|
|
14796
14798
|
}) => {
|
|
14797
|
-
const [
|
|
14799
|
+
const [d, l] = $(!0), [u, m] = $(""), f = () => {
|
|
14798
14800
|
t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${Re}`), l(!0), i();
|
|
14799
14801
|
};
|
|
14800
14802
|
return /* @__PURE__ */ p("div", { className: "comment-form reply-form su-p-8 su-relative", children: [
|
|
@@ -14803,7 +14805,7 @@ const td = {
|
|
|
14803
14805
|
Bs,
|
|
14804
14806
|
{
|
|
14805
14807
|
commentRef: t,
|
|
14806
|
-
captchaToken:
|
|
14808
|
+
captchaToken: u,
|
|
14807
14809
|
setIsDisabled: l,
|
|
14808
14810
|
API_ENV: o,
|
|
14809
14811
|
texts: c
|
|
@@ -14813,18 +14815,18 @@ const td = {
|
|
|
14813
14815
|
Os,
|
|
14814
14816
|
{
|
|
14815
14817
|
commentRef: t,
|
|
14816
|
-
captchaToken:
|
|
14818
|
+
captchaToken: u,
|
|
14817
14819
|
setCaptchaToken: m,
|
|
14818
14820
|
API_ENV: o,
|
|
14819
14821
|
children: /* @__PURE__ */ n(
|
|
14820
14822
|
qs,
|
|
14821
14823
|
{
|
|
14822
14824
|
onClick: async (A) => {
|
|
14823
|
-
if (
|
|
14825
|
+
if (d) return;
|
|
14824
14826
|
const h = await Ms({
|
|
14825
14827
|
path: a,
|
|
14826
14828
|
ref: t,
|
|
14827
|
-
captchaToken:
|
|
14829
|
+
captchaToken: u,
|
|
14828
14830
|
button: A.currentTarget,
|
|
14829
14831
|
user: s,
|
|
14830
14832
|
id: e,
|
|
@@ -14835,7 +14837,7 @@ const td = {
|
|
|
14835
14837
|
f();
|
|
14836
14838
|
}, h), !0) : !1;
|
|
14837
14839
|
},
|
|
14838
|
-
isDisabled:
|
|
14840
|
+
isDisabled: d,
|
|
14839
14841
|
API_ENV: o,
|
|
14840
14842
|
texts: c
|
|
14841
14843
|
}
|
|
@@ -14847,11 +14849,11 @@ const td = {
|
|
|
14847
14849
|
replyingToLabel: "Respondiendo a"
|
|
14848
14850
|
}, ad = ({ reply: e, replyingTo: t, user: s, onFlag: a, DATE_CONFIG: r, texts: i }) => {
|
|
14849
14851
|
const o = { ...nd, ...i?.comentarios }, c = e.text;
|
|
14850
|
-
let
|
|
14851
|
-
return e.user && (
|
|
14852
|
+
let d = `${Ie.firstname} ${Ie.lastname ?? ""}`, l = Ie.username;
|
|
14853
|
+
return e.user && (d = `${e.user.firstname} ${e.user.lastname ?? ""}`, l = e.user.username), /* @__PURE__ */ n("div", { className: "comment-item reply", children: /* @__PURE__ */ p("div", { className: "comment-header-container su-flex su-relative", children: [
|
|
14852
14854
|
/* @__PURE__ */ n(Ba, { user: e.user ? e.user : Ie }),
|
|
14853
14855
|
/* @__PURE__ */ p("div", { style: { flex: 1 }, children: [
|
|
14854
|
-
/* @__PURE__ */ n(Pa, { username:
|
|
14856
|
+
/* @__PURE__ */ n(Pa, { username: d, date: e.date.time, DATE_CONFIG: r }),
|
|
14855
14857
|
/* @__PURE__ */ p("div", { className: "comment-reply-to", children: [
|
|
14856
14858
|
o.replyingToLabel,
|
|
14857
14859
|
" ",
|
|
@@ -14865,17 +14867,17 @@ const td = {
|
|
|
14865
14867
|
}, rd = {
|
|
14866
14868
|
moreRepliesButton: "Más Respuestas"
|
|
14867
14869
|
}, id = ({ comment: e, replyingTo: t, path: s, user: a, handleReplyingTo: r, onFlag: i, API_ENV: o, texts: c }) => {
|
|
14868
|
-
const
|
|
14870
|
+
const d = { ...rd, ...c?.comentarios }, l = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [u, m] = $(l), [f, A] = le.useState(!1), { PUBLIC_PUBLICATION_ID: h, PUBLIC_X_SECURITY_TOKEN: g } = o, w = e.text, v = le.useRef(null);
|
|
14869
14871
|
let E = `${Ie.firstname} ${Ie.lastname ?? ""}`, N = Ie.username;
|
|
14870
14872
|
e.user && (E = `${e.user.firstname} ${e.user.lastname ?? ""}`, N = e.user.username);
|
|
14871
14873
|
const S = (b) => {
|
|
14872
|
-
m({ morereply:
|
|
14874
|
+
m({ morereply: u.morereply, reply: [b, ...u.reply] });
|
|
14873
14875
|
};
|
|
14874
14876
|
return /* @__PURE__ */ n("div", { className: "comment-item", children: /* @__PURE__ */ p(
|
|
14875
14877
|
"div",
|
|
14876
14878
|
{
|
|
14877
14879
|
className: "comment-header-container su-flex su-relative",
|
|
14878
|
-
"data-hasreplies":
|
|
14880
|
+
"data-hasreplies": u.reply.length > 0 ? "true" : "false",
|
|
14879
14881
|
children: [
|
|
14880
14882
|
/* @__PURE__ */ n(Ba, { user: e.user ? e.user : Ie }),
|
|
14881
14883
|
/* @__PURE__ */ p("div", { style: { flex: 1 }, children: [
|
|
@@ -14902,8 +14904,8 @@ const td = {
|
|
|
14902
14904
|
texts: c
|
|
14903
14905
|
}
|
|
14904
14906
|
),
|
|
14905
|
-
|
|
14906
|
-
|
|
14907
|
+
u.reply.length > 0 && /* @__PURE__ */ p("div", { className: "comment-replies", children: [
|
|
14908
|
+
u.reply.map((b) => /* @__PURE__ */ n(
|
|
14907
14909
|
ad,
|
|
14908
14910
|
{
|
|
14909
14911
|
user: a,
|
|
@@ -14915,12 +14917,12 @@ const td = {
|
|
|
14915
14917
|
},
|
|
14916
14918
|
b.id
|
|
14917
14919
|
)),
|
|
14918
|
-
f ? /* @__PURE__ */ n("div", { style: { marginLeft: "4rem", position: "relative" }, children: /* @__PURE__ */ n(Ls, {}) }) :
|
|
14920
|
+
f ? /* @__PURE__ */ n("div", { style: { marginLeft: "4rem", position: "relative" }, children: /* @__PURE__ */ n(Ls, {}) }) : u.morereply && /* @__PURE__ */ n(
|
|
14919
14921
|
"button",
|
|
14920
14922
|
{
|
|
14921
14923
|
className: "comment-replies-button reply-button su-flex-center su-rounded-full su-border-none su-relative",
|
|
14922
14924
|
onClick: async () => {
|
|
14923
|
-
const b =
|
|
14925
|
+
const b = u.reply[u.reply.length - 1]?.id;
|
|
14924
14926
|
A(!0);
|
|
14925
14927
|
try {
|
|
14926
14928
|
const R = await Ps({
|
|
@@ -14934,12 +14936,12 @@ const td = {
|
|
|
14934
14936
|
apiToken: g ?? "",
|
|
14935
14937
|
API_ENV: o
|
|
14936
14938
|
});
|
|
14937
|
-
A(!1), m({ morereply: R.morecomment, reply: [...
|
|
14939
|
+
A(!1), m({ morereply: R.morecomment, reply: [...u.reply, ...R.comments] });
|
|
14938
14940
|
} catch (I) {
|
|
14939
14941
|
throw A(!1), new Error(`Error al obtener comentarios: ${I}`);
|
|
14940
14942
|
}
|
|
14941
14943
|
},
|
|
14942
|
-
children:
|
|
14944
|
+
children: d.moreRepliesButton
|
|
14943
14945
|
}
|
|
14944
14946
|
)
|
|
14945
14947
|
] })
|
|
@@ -14955,13 +14957,13 @@ const td = {
|
|
|
14955
14957
|
API_ENV: r,
|
|
14956
14958
|
texts: i
|
|
14957
14959
|
}) => {
|
|
14958
|
-
const [o, c] = $(!0), [
|
|
14960
|
+
const [o, c] = $(!0), [d, l] = $("");
|
|
14959
14961
|
return /* @__PURE__ */ p("div", { className: "comment-form su-p-8 su-relative", children: [
|
|
14960
14962
|
/* @__PURE__ */ n(
|
|
14961
14963
|
Bs,
|
|
14962
14964
|
{
|
|
14963
14965
|
commentRef: e,
|
|
14964
|
-
captchaToken:
|
|
14966
|
+
captchaToken: d,
|
|
14965
14967
|
setIsDisabled: c,
|
|
14966
14968
|
API_ENV: r,
|
|
14967
14969
|
texts: i
|
|
@@ -14972,18 +14974,18 @@ const td = {
|
|
|
14972
14974
|
{
|
|
14973
14975
|
API_ENV: r,
|
|
14974
14976
|
commentRef: e,
|
|
14975
|
-
captchaToken:
|
|
14977
|
+
captchaToken: d,
|
|
14976
14978
|
setCaptchaToken: l,
|
|
14977
14979
|
children: /* @__PURE__ */ n(
|
|
14978
14980
|
qs,
|
|
14979
14981
|
{
|
|
14980
|
-
onClick: async (
|
|
14982
|
+
onClick: async (u) => {
|
|
14981
14983
|
if (o) return;
|
|
14982
14984
|
const m = await Ms({
|
|
14983
14985
|
path: s,
|
|
14984
14986
|
ref: e,
|
|
14985
|
-
captchaToken:
|
|
14986
|
-
button:
|
|
14987
|
+
captchaToken: d,
|
|
14988
|
+
button: u.currentTarget,
|
|
14987
14989
|
user: t,
|
|
14988
14990
|
addComment: a,
|
|
14989
14991
|
API_ENV: r
|
|
@@ -15027,7 +15029,7 @@ const td = {
|
|
|
15027
15029
|
API_ENV: o,
|
|
15028
15030
|
texts: c
|
|
15029
15031
|
}) => {
|
|
15030
|
-
const [
|
|
15032
|
+
const [d, l] = $(!0), [u, m] = $("");
|
|
15031
15033
|
return /* @__PURE__ */ n(J, { children: /* @__PURE__ */ p("div", { className: "comment-form anoninus-form su-p-8 su-relative", children: [
|
|
15032
15034
|
/* @__PURE__ */ n(
|
|
15033
15035
|
ld,
|
|
@@ -15040,7 +15042,7 @@ const td = {
|
|
|
15040
15042
|
Bs,
|
|
15041
15043
|
{
|
|
15042
15044
|
commentRef: t,
|
|
15043
|
-
captchaToken:
|
|
15045
|
+
captchaToken: u,
|
|
15044
15046
|
setIsDisabled: l,
|
|
15045
15047
|
API_ENV: o,
|
|
15046
15048
|
texts: c
|
|
@@ -15051,24 +15053,24 @@ const td = {
|
|
|
15051
15053
|
{
|
|
15052
15054
|
API_ENV: o,
|
|
15053
15055
|
commentRef: t,
|
|
15054
|
-
captchaToken:
|
|
15056
|
+
captchaToken: u,
|
|
15055
15057
|
setCaptchaToken: m,
|
|
15056
15058
|
children: /* @__PURE__ */ n(
|
|
15057
15059
|
qs,
|
|
15058
15060
|
{
|
|
15059
15061
|
onClick: async (A) => {
|
|
15060
|
-
if (
|
|
15062
|
+
if (d) {
|
|
15061
15063
|
console.log("error");
|
|
15062
15064
|
return;
|
|
15063
15065
|
}
|
|
15064
|
-
if (!jt(t,
|
|
15066
|
+
if (!jt(t, u, o).boolean) {
|
|
15065
15067
|
console.log("invalidForm");
|
|
15066
15068
|
return;
|
|
15067
15069
|
}
|
|
15068
15070
|
const h = e.current.value, g = await Ms({
|
|
15069
15071
|
path: s,
|
|
15070
15072
|
ref: t,
|
|
15071
|
-
captchaToken:
|
|
15073
|
+
captchaToken: u,
|
|
15072
15074
|
button: A.currentTarget,
|
|
15073
15075
|
user: void 0,
|
|
15074
15076
|
addComment: i,
|
|
@@ -15079,7 +15081,7 @@ const td = {
|
|
|
15079
15081
|
t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${Re}`), l(!0);
|
|
15080
15082
|
}, g), !0) : !1;
|
|
15081
15083
|
},
|
|
15082
|
-
isDisabled:
|
|
15084
|
+
isDisabled: d,
|
|
15083
15085
|
API_ENV: o,
|
|
15084
15086
|
handleGoogleLogin: r,
|
|
15085
15087
|
icon: a,
|
|
@@ -15110,7 +15112,7 @@ const td = {
|
|
|
15110
15112
|
API_ENV: o,
|
|
15111
15113
|
texts: c
|
|
15112
15114
|
}) => {
|
|
15113
|
-
const
|
|
15115
|
+
const d = { ...ud, ...c?.comentarios }, { PUBLIC_PUBLICATION_ID: l, PUBLIC_X_SECURITY_TOKEN: u } = o, m = l ?? "", f = t.replaceAll("/", "|"), [A, h] = $(
|
|
15114
15116
|
void 0
|
|
15115
15117
|
), [g, w] = $(""), { comments: v, setComments: E } = Jl(f, o), [N, S] = le.useState(!1), b = le.useRef(null), I = le.useRef(null), R = (x) => {
|
|
15116
15118
|
w(g === x ? "" : x);
|
|
@@ -15138,7 +15140,7 @@ const td = {
|
|
|
15138
15140
|
id: void 0,
|
|
15139
15141
|
lastid: U,
|
|
15140
15142
|
state: "5,6",
|
|
15141
|
-
apiToken:
|
|
15143
|
+
apiToken: u,
|
|
15142
15144
|
API_ENV: o
|
|
15143
15145
|
});
|
|
15144
15146
|
E({
|
|
@@ -15148,11 +15150,11 @@ const td = {
|
|
|
15148
15150
|
} catch (M) {
|
|
15149
15151
|
throw S(!1), new Error(`Error al obtener comentarios: ${M}`);
|
|
15150
15152
|
}
|
|
15151
|
-
}, L = v?.comments && v.comments.length > 0, H = L ?
|
|
15153
|
+
}, L = v?.comments && v.comments.length > 0, H = L ? d.commentHeaderMessageWithComments : d.commentHeaderMessageEmpty, se = /* @__PURE__ */ n("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ n(Ls, {}) }), q = () => {
|
|
15152
15154
|
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = "/auth/login");
|
|
15153
15155
|
};
|
|
15154
15156
|
return /* @__PURE__ */ p(J, { children: [
|
|
15155
|
-
/* @__PURE__ */ n("div", { className: "comments-container", children: /* @__PURE__ */ n(he, { title: o.CONFIG_commentsV2 || L || e ?
|
|
15157
|
+
/* @__PURE__ */ n("div", { className: "comments-container", children: /* @__PURE__ */ n(he, { title: o.CONFIG_commentsV2 || L || e ? d.commentsSectionTitle : !1, children: /* @__PURE__ */ p(J, { children: [
|
|
15156
15158
|
/* @__PURE__ */ n("div", { className: "comments-header", children: e && s ? /* @__PURE__ */ p(J, { children: [
|
|
15157
15159
|
/* @__PURE__ */ n(
|
|
15158
15160
|
Nl,
|
|
@@ -15176,9 +15178,9 @@ const td = {
|
|
|
15176
15178
|
)
|
|
15177
15179
|
] }) : o.CONFIG_commentsV2 ? /* @__PURE__ */ p(J, { children: [
|
|
15178
15180
|
/* @__PURE__ */ p("p", { className: "anonimus-message", children: [
|
|
15179
|
-
|
|
15180
|
-
/* @__PURE__ */ n("button", { className: "su-border-none su-p-0", onClick: q, children:
|
|
15181
|
-
|
|
15181
|
+
d.anonimusPromptPrefix,
|
|
15182
|
+
/* @__PURE__ */ n("button", { className: "su-border-none su-p-0", onClick: q, children: d.anonimusPromptLinkText }),
|
|
15183
|
+
d.anonimusPromptSuffix
|
|
15182
15184
|
] }),
|
|
15183
15185
|
/* @__PURE__ */ n(
|
|
15184
15186
|
dd,
|
|
@@ -15223,7 +15225,7 @@ const td = {
|
|
|
15223
15225
|
{
|
|
15224
15226
|
className: "comment-replies-button su-flex-center su-rounded-full",
|
|
15225
15227
|
onClick: j,
|
|
15226
|
-
children:
|
|
15228
|
+
children: d.loadMoreButton
|
|
15227
15229
|
}
|
|
15228
15230
|
)
|
|
15229
15231
|
] }) }) }),
|
|
@@ -15250,7 +15252,7 @@ function hd({
|
|
|
15250
15252
|
checkAuth: i,
|
|
15251
15253
|
icon: o,
|
|
15252
15254
|
API_ENV: c,
|
|
15253
|
-
texts:
|
|
15255
|
+
texts: d
|
|
15254
15256
|
// termsAndConditionsUrl,
|
|
15255
15257
|
}) {
|
|
15256
15258
|
return /* @__PURE__ */ n(J, { children: /* @__PURE__ */ n(
|
|
@@ -15281,7 +15283,7 @@ function hd({
|
|
|
15281
15283
|
path: r,
|
|
15282
15284
|
user: e ? a : void 0,
|
|
15283
15285
|
API_ENV: c,
|
|
15284
|
-
texts:
|
|
15286
|
+
texts: d
|
|
15285
15287
|
}
|
|
15286
15288
|
) });
|
|
15287
15289
|
}
|
|
@@ -15292,23 +15294,23 @@ function fd({
|
|
|
15292
15294
|
API_ENV: a,
|
|
15293
15295
|
texts: r
|
|
15294
15296
|
}) {
|
|
15295
|
-
const [i, o] = $(null), [c,
|
|
15297
|
+
const [i, o] = $(null), [c, d] = $(null), l = a?.COGNITO_AUTH_PREFIX ?? "ASTRO_", u = ce(async () => {
|
|
15296
15298
|
if (e) {
|
|
15297
15299
|
if (document.cookie.search(l + "IS_AUTH=true") === -1) {
|
|
15298
|
-
o(!1),
|
|
15300
|
+
o(!1), d(null);
|
|
15299
15301
|
return;
|
|
15300
15302
|
}
|
|
15301
15303
|
try {
|
|
15302
15304
|
const g = await (await fetch("/api/auth/user", { credentials: "include" })).json();
|
|
15303
|
-
o(g.isAuthenticated ?? !1),
|
|
15305
|
+
o(g.isAuthenticated ?? !1), d(g.user ?? null), document.cookie = "redirect_after_login_1=; Max-Age=0; path=/";
|
|
15304
15306
|
} catch (h) {
|
|
15305
|
-
console.error("Error checking auth:", h), o(!1),
|
|
15307
|
+
console.error("Error checking auth:", h), o(!1), d(null);
|
|
15306
15308
|
}
|
|
15307
15309
|
}
|
|
15308
15310
|
}, [e, l]);
|
|
15309
15311
|
Te(() => {
|
|
15310
|
-
|
|
15311
|
-
}, [
|
|
15312
|
+
u();
|
|
15313
|
+
}, [u, e]), Te(() => {
|
|
15312
15314
|
if (!c || !e || typeof window > "u") return;
|
|
15313
15315
|
const h = window;
|
|
15314
15316
|
if (typeof h != "function") {
|
|
@@ -15336,7 +15338,7 @@ function fd({
|
|
|
15336
15338
|
setIsAuthenticated: o,
|
|
15337
15339
|
loginUrl: m,
|
|
15338
15340
|
user: c ?? void 0,
|
|
15339
|
-
checkAuth:
|
|
15341
|
+
checkAuth: u,
|
|
15340
15342
|
path: A,
|
|
15341
15343
|
API_ENV: a,
|
|
15342
15344
|
texts: r
|
|
@@ -15397,7 +15399,7 @@ async function ju({
|
|
|
15397
15399
|
recaptchaResponse: i,
|
|
15398
15400
|
baseUrl: o,
|
|
15399
15401
|
apiToken: c,
|
|
15400
|
-
securityToken:
|
|
15402
|
+
securityToken: d,
|
|
15401
15403
|
COMMENTS_VARS: l
|
|
15402
15404
|
}) {
|
|
15403
15405
|
if (console.log("Adding comment with data:", {
|
|
@@ -15425,8 +15427,8 @@ async function ju({
|
|
|
15425
15427
|
message: "El comentario no puede estar vacío.",
|
|
15426
15428
|
status: 400
|
|
15427
15429
|
};
|
|
15428
|
-
const
|
|
15429
|
-
if (console.log("Verifying captcha token...",
|
|
15430
|
+
const u = await xa(i, l);
|
|
15431
|
+
if (console.log("Verifying captcha token...", u), !u)
|
|
15430
15432
|
return {
|
|
15431
15433
|
type: "error",
|
|
15432
15434
|
message: "Captcha inválido. Intenta nuevamente.",
|
|
@@ -15443,7 +15445,7 @@ async function ju({
|
|
|
15443
15445
|
const { data: h } = await re.get(`${m}?${A.toString()}`, {
|
|
15444
15446
|
headers: {
|
|
15445
15447
|
"Content-Type": "application/json",
|
|
15446
|
-
"x-security-token":
|
|
15448
|
+
"x-security-token": d,
|
|
15447
15449
|
"x-api-token": c,
|
|
15448
15450
|
"User-Agent": "amplifyapp-comments-saas"
|
|
15449
15451
|
}
|
|
@@ -15635,7 +15637,7 @@ const qa = async (e, t) => {
|
|
|
15635
15637
|
) }),
|
|
15636
15638
|
/* @__PURE__ */ p("div", { className: "sass-bd-dnfw-containerCards", children: [
|
|
15637
15639
|
/* @__PURE__ */ n("div", { className: "banner-context", style: { order: 1 }, children: e.banner }),
|
|
15638
|
-
/* @__PURE__ */ n("div", { className: "sass-bd-dnfw-newsContent", children: Array.isArray(i) && i.map((c,
|
|
15640
|
+
/* @__PURE__ */ n("div", { className: "sass-bd-dnfw-newsContent", children: Array.isArray(i) && i.map((c, d) => {
|
|
15639
15641
|
const l = {
|
|
15640
15642
|
...c,
|
|
15641
15643
|
main: {
|
|
@@ -15646,14 +15648,14 @@ const qa = async (e, t) => {
|
|
|
15646
15648
|
}
|
|
15647
15649
|
}
|
|
15648
15650
|
};
|
|
15649
|
-
return /* @__PURE__ */ n("div", { style: { order:
|
|
15651
|
+
return /* @__PURE__ */ n("div", { style: { order: d }, children: /* @__PURE__ */ n(
|
|
15650
15652
|
ke,
|
|
15651
15653
|
{
|
|
15652
15654
|
...l,
|
|
15653
15655
|
isVideo: a,
|
|
15654
15656
|
paths: e.paths
|
|
15655
15657
|
}
|
|
15656
|
-
) },
|
|
15658
|
+
) }, d);
|
|
15657
15659
|
}) })
|
|
15658
15660
|
] })
|
|
15659
15661
|
] });
|
|
@@ -15787,8 +15789,8 @@ const Bn = {
|
|
|
15787
15789
|
banners: i,
|
|
15788
15790
|
showTagBySection: o
|
|
15789
15791
|
}) => {
|
|
15790
|
-
const c = [], l = t,
|
|
15791
|
-
for (let m = 1; m <=
|
|
15792
|
+
const c = [], l = t, u = Object.keys(e).length / l;
|
|
15793
|
+
for (let m = 1; m <= u; m++)
|
|
15792
15794
|
for (let f = 1; f <= l; f++) {
|
|
15793
15795
|
const A = "Home_" + m + "_" + f;
|
|
15794
15796
|
!e[A] || !e[A].blockSass || !e[A].blockSass[0] || !e[A].blockSass[0].value || !e[A].blockSass[0].block || e[A].blockSass[0].block === "No Mostrar" || (e[A].blockSass[0]?.block === "Modulo iframe" ? c.push(
|
|
@@ -15870,10 +15872,10 @@ const Bn = {
|
|
|
15870
15872
|
}) => {
|
|
15871
15873
|
const { PUBLIC_ENV: r } = _();
|
|
15872
15874
|
if (r !== "local") return null;
|
|
15873
|
-
const i = e?.news?.data || [], o = (c,
|
|
15875
|
+
const i = e?.news?.data || [], o = (c, d) => ({
|
|
15874
15876
|
...e?.news,
|
|
15875
15877
|
...t[c],
|
|
15876
|
-
data: i.slice(0,
|
|
15878
|
+
data: i.slice(0, d),
|
|
15877
15879
|
paths: s.paths
|
|
15878
15880
|
});
|
|
15879
15881
|
return /* @__PURE__ */ p(J, { children: [
|