sass-template-common 0.9.76 → 0.9.78
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/README.md +36 -36
- package/dist/sass-template-common.js +746 -699
- package/dist/sass-template-common.umd.cjs +44 -44
- package/package.json +68 -68
|
@@ -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", u = "hour", l = "day", d = "week", m = "month", h = "quarter", A = "year", f = "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(M) {
|
|
181
181
|
var x = ["th", "st", "nd", "rd"], U = M % 100;
|
|
182
182
|
return "[" + M + (x[(U - 20) % 10] || x[U] || x[0]) + "]";
|
|
183
183
|
} }, N = function(M, x, U) {
|
|
@@ -193,7 +193,7 @@ function qn() {
|
|
|
193
193
|
}, a: function(M) {
|
|
194
194
|
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
|
195
195
|
}, p: function(M) {
|
|
196
|
-
return { M: m, y: A, w:
|
|
196
|
+
return { M: m, y: A, w: d, d: l, D: f, h: u, m: c, s: o, ms: i, Q: h }[M] || String(M || "").toLowerCase().replace(/s$/, "");
|
|
197
197
|
}, u: function(M) {
|
|
198
198
|
return M === 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, _) : T(0, _ + 1);
|
|
276
|
-
case
|
|
276
|
+
case d:
|
|
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), _);
|
|
279
279
|
case l:
|
|
280
280
|
case f:
|
|
281
281
|
return P(z + "Hours", 0);
|
|
282
|
-
case
|
|
282
|
+
case u:
|
|
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, D) {
|
|
294
|
-
var k, F = L.p(U), y = "set" + (this.$u ? "UTC" : ""), T = (k = {}, k[l] = y + "Date", k[f] = 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[f] = y + "Date", k[m] = y + "Month", k[A] = y + "FullYear", k[u] = y + "Hours", k[c] = y + "Minutes", k[o] = y + "Seconds", k[i] = y + "Milliseconds", k)[F], P = F === l ? this.$D + (D - this.$W) : D;
|
|
295
295
|
if (F === m || F === A) {
|
|
296
296
|
var G = this.clone().set(f, 1);
|
|
297
297
|
G.$d[T](P), G.init(), this.$d = G.set(f, 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 === d) return T(7);
|
|
315
|
+
var P = (k = {}, k[c] = a, k[u] = 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, D) {
|
|
318
318
|
return this.add(-1 * U, D);
|
|
@@ -398,13 +398,13 @@ function qn() {
|
|
|
398
398
|
case h:
|
|
399
399
|
F = V() / 3;
|
|
400
400
|
break;
|
|
401
|
-
case
|
|
401
|
+
case d:
|
|
402
402
|
F = (_ - G) / 6048e5;
|
|
403
403
|
break;
|
|
404
404
|
case l:
|
|
405
405
|
F = (_ - G) / 864e5;
|
|
406
406
|
break;
|
|
407
|
-
case
|
|
407
|
+
case u:
|
|
408
408
|
F = _ / r;
|
|
409
409
|
break;
|
|
410
410
|
case c:
|
|
@@ -437,7 +437,7 @@ function qn() {
|
|
|
437
437
|
return this.$d.toUTCString();
|
|
438
438
|
}, M;
|
|
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", u], ["$W", l], ["$M", m], ["$y", A], ["$D", f]].forEach((function(M) {
|
|
441
441
|
se[M[1]] = function(x) {
|
|
442
442
|
return this.$g(x, M[0], M[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, d, m, h) {
|
|
464
|
+
return i.fromToBase(l, d, m, h);
|
|
465
465
|
}
|
|
466
|
-
r.en.relativeTime = o, i.fromToBase = function(l,
|
|
466
|
+
r.en.relativeTime = o, i.fromToBase = function(l, d, m, h, A) {
|
|
467
467
|
for (var f, 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 && (f = h ? r(l).diff(m, b.d, !0) : m.diff(l, b.d, !0));
|
|
@@ -471,25 +471,25 @@ function Wa() {
|
|
|
471
471
|
if (w = f > 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, d, b.l, w);
|
|
475
475
|
break;
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
|
-
if (
|
|
478
|
+
if (d) 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, d) {
|
|
482
|
+
return c(l, d, this, !0);
|
|
483
|
+
}, i.from = function(l, d) {
|
|
484
|
+
return c(l, d, this);
|
|
485
485
|
};
|
|
486
|
-
var
|
|
486
|
+
var u = 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(u(this), l);
|
|
491
491
|
}, i.fromNow = function(l) {
|
|
492
|
-
return this.from(
|
|
492
|
+
return this.from(u(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 u = 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
|
+
}, u.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
|
+
}, u.local = function() {
|
|
533
533
|
return c(this.toDate(), { locale: this.$L, utc: !1 });
|
|
534
534
|
};
|
|
535
|
-
var l =
|
|
536
|
-
|
|
535
|
+
var l = u.parse;
|
|
536
|
+
u.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 d = u.init;
|
|
540
|
+
u.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 d.call(this);
|
|
545
545
|
};
|
|
546
|
-
var m =
|
|
547
|
-
|
|
546
|
+
var m = u.utcOffset;
|
|
547
|
+
u.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 h =
|
|
565
|
-
|
|
564
|
+
var h = u.format;
|
|
565
|
+
u.format = function(g) {
|
|
566
566
|
var w = g || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
567
567
|
return h.call(this, w);
|
|
568
|
-
},
|
|
568
|
+
}, u.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
|
+
}, u.isUTC = function() {
|
|
572
572
|
return !!this.$u;
|
|
573
|
-
},
|
|
573
|
+
}, u.toISOString = function() {
|
|
574
574
|
return this.toDate().toISOString();
|
|
575
|
-
},
|
|
575
|
+
}, u.toString = function() {
|
|
576
576
|
return this.toDate().toUTCString();
|
|
577
577
|
};
|
|
578
|
-
var A =
|
|
579
|
-
|
|
578
|
+
var A = u.toDate;
|
|
579
|
+
u.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 f =
|
|
583
|
-
|
|
582
|
+
var f = u.diff;
|
|
583
|
+
u.diff = function(g, w, v) {
|
|
584
584
|
if (g && this.$u === g.$u) return f.call(this, g, w, v);
|
|
585
585
|
var E = this.local(), N = c(g).local();
|
|
586
586
|
return f.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, u = function(h, A, f) {
|
|
603
603
|
f === void 0 && (f = {});
|
|
604
604
|
var g = new Date(h), w = (function(v, E) {
|
|
605
605
|
E === void 0 && (E = {});
|
|
@@ -608,14 +608,14 @@ function nr() {
|
|
|
608
608
|
})(A, f);
|
|
609
609
|
return w.formatToParts(g);
|
|
610
610
|
}, l = function(h, A) {
|
|
611
|
-
for (var f =
|
|
611
|
+
for (var f = u(h, A), g = [], w = 0; w < f.length; w += 1) {
|
|
612
612
|
var v = f[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 = +h;
|
|
616
616
|
return (o.utc(R).valueOf() - (Q -= Q % 1e3)) / 6e4;
|
|
617
|
-
},
|
|
618
|
-
|
|
617
|
+
}, d = i.prototype;
|
|
618
|
+
d.tz = function(h, A) {
|
|
619
619
|
h === void 0 && (h = c);
|
|
620
620
|
var f, g = this.utcOffset(), w = this.toDate(), v = w.toLocaleString("en-US", { timeZone: h }), E = Math.round((w - new Date(v)) / 1e3 / 60), N = 15 * -Math.round(w.getTimezoneOffset() / 15) - E;
|
|
621
621
|
if (!Number(N)) f = this.utcOffset(0, A);
|
|
@@ -624,14 +624,14 @@ function nr() {
|
|
|
624
624
|
f = f.add(g - S, "minute");
|
|
625
625
|
}
|
|
626
626
|
return f.$x.$timezone = h, f;
|
|
627
|
-
},
|
|
628
|
-
var A = this.$x.$timezone || o.tz.guess(), f =
|
|
627
|
+
}, d.offsetName = function(h) {
|
|
628
|
+
var A = this.$x.$timezone || o.tz.guess(), f = u(this.valueOf(), A, { timeZoneName: h }).find((function(g) {
|
|
629
629
|
return g.type.toLowerCase() === "timezonename";
|
|
630
630
|
}));
|
|
631
631
|
return f && f.value;
|
|
632
632
|
};
|
|
633
|
-
var m =
|
|
634
|
-
|
|
633
|
+
var m = d.startOf;
|
|
634
|
+
d.startOf = function(h, A) {
|
|
635
635
|
if (!this.$x || !this.$x.$timezone) return m.call(this, h, A);
|
|
636
636
|
var f = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
637
637
|
return m.call(f, h, 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" })), u = (new Date(s.toLocaleString("en-US", { timeZone: t })).getTime() - o.getTime()) / 6e4, l = u >= 0 ? "+" : "-", d = (A) => String(Math.floor(Math.abs(A))).padStart(2, "0"), m = d(u / 60), h = d(u % 60);
|
|
692
692
|
return `${i.year}-${i.month}-${i.day}T${i.hour}:${i.minute}:${i.second}${l}${m}:${h}`;
|
|
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, u = i;
|
|
766
766
|
for (; c < t.length && o > 0; ) {
|
|
767
767
|
const A = t.slice(c), f = A.match(/<div\b/i), g = A.match(/<\/div>/i), w = f?.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 + f[0].length) : (o -= 1,
|
|
770
|
+
w !== -1 && w < v ? (o += 1, c = E + f[0].length) : (o -= 1, u = N, c = N + g[0].length);
|
|
771
771
|
}
|
|
772
|
-
const l = t.slice(i,
|
|
772
|
+
const l = t.slice(i, u), d = [], m = /<span\b[^>]*\bdata-src=["']([^"']+)["']/gi;
|
|
773
773
|
let h;
|
|
774
774
|
for (; (h = m.exec(l)) !== null; ) {
|
|
775
775
|
const A = h[1];
|
|
776
|
-
A &&
|
|
776
|
+
A && d.push(A);
|
|
777
777
|
}
|
|
778
|
-
|
|
778
|
+
d.length > 0 && s.push(d), 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
|
-
} = q(), c = Mn(t.keywords) ?? "",
|
|
831
|
-
schemaImage:
|
|
830
|
+
} = q(), c = Mn(t.keywords) ?? "", u = t?.preview?.sizes ? t?.preview?.sizes[0]?.url : "", l = (r !== "false" ? r : i) ?? "", d = mr(a), m = t.main.title.article, h = Ws({
|
|
831
|
+
schemaImage: d,
|
|
832
832
|
socialImage: t?.social?.images?.facebook,
|
|
833
|
-
fallbackImage:
|
|
833
|
+
fallbackImage: u,
|
|
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: d,
|
|
840
840
|
socialImage: t?.social?.images?.twitter,
|
|
841
|
-
fallbackImage:
|
|
841
|
+
fallbackImage: u,
|
|
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 u = o.split(".").reduce((l, d) => l?.[d], e);
|
|
914
|
+
u && a(
|
|
915
915
|
/* @__PURE__ */ n(
|
|
916
916
|
"meta",
|
|
917
917
|
{
|
|
918
918
|
[c.attr]: c.value,
|
|
919
|
-
content: String(
|
|
919
|
+
content: String(u)
|
|
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] || "", u = o[2]?.trim() || "";
|
|
1154
|
+
return Dn(c, u, 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}`, u = {
|
|
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(u)
|
|
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 d = await l.json();
|
|
1333
|
+
if (!d?.tokenProperties?.valid)
|
|
1334
1334
|
return console.log(
|
|
1335
|
-
`CreateAssessment falló - token inválido: ${
|
|
1335
|
+
`CreateAssessment falló - token inválido: ${d?.tokenProperties?.invalidReason ?? "unknown"}`
|
|
1336
1336
|
), null;
|
|
1337
|
-
if (
|
|
1337
|
+
if (d.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 = d?.riskAnalysis?.score;
|
|
1343
|
+
return m !== void 0 && (console.log("reCAPTCHA score:", m), d?.riskAnalysis?.reasons?.forEach((h) => console.log(h))), 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 u = await t.getNewsMultimedia({
|
|
1383
1383
|
path: a.link.internal,
|
|
1384
1384
|
imagesizes: s
|
|
1385
1385
|
});
|
|
1386
|
-
if (
|
|
1386
|
+
if (u && u.data)
|
|
1387
1387
|
return {
|
|
1388
1388
|
...e,
|
|
1389
1389
|
preview: c,
|
|
1390
|
-
videos:
|
|
1390
|
+
videos: u.data.data[0].videos ?? []
|
|
1391
1391
|
};
|
|
1392
1392
|
}
|
|
1393
1393
|
if (i === "fotogaleria") {
|
|
1394
|
-
const
|
|
1394
|
+
const u = await t.getNewsMultimedia({
|
|
1395
1395
|
path: a.link.internal,
|
|
1396
1396
|
imagesizes: s
|
|
1397
1397
|
});
|
|
1398
|
-
if (
|
|
1398
|
+
if (u && u.data) {
|
|
1399
1399
|
const l = await Promise.all(
|
|
1400
|
-
|
|
1401
|
-
...
|
|
1400
|
+
u.data.data[0].gallery.map(async (d) => ({
|
|
1401
|
+
...d
|
|
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 = "" } = q();
|
|
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, u = {
|
|
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(u, "/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,17 @@ const Br = async ({
|
|
|
1620
1620
|
const { PUBLIC_SERVICE_PREFIX: r, PUBLIC_IS_SUB_PUBLICATION: i } = q();
|
|
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, u = t.landscapeLogo?.url ? new URL(t.landscapeLogo.url).pathname : void 0, l = {
|
|
1624
1624
|
path: e,
|
|
1625
|
-
image:
|
|
1625
|
+
image: u,
|
|
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
|
-
authorurl: s + "/autor/"
|
|
1632
|
-
|
|
1631
|
+
authorurl: s + "/autor/",
|
|
1632
|
+
language: t.lang
|
|
1633
|
+
}, d = e.split("/")[1], m = d == "liveblogs" || d == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], h = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema, A = r !== "false" && i !== "false" ? "/" + r + h : h;
|
|
1633
1634
|
o = (await Promise.all(
|
|
1634
1635
|
m.map(async (g) => {
|
|
1635
1636
|
const w = g === "/news-breadcrumb" ? { ...l, prefixtag: A } : g === "/news" && t.schemasNewsParams ? { ...l, ...t.schemasNewsParams } : l;
|
|
@@ -1639,7 +1640,7 @@ const Br = async ({
|
|
|
1639
1640
|
} catch (c) {
|
|
1640
1641
|
console.log("Error fetching schemas:", c);
|
|
1641
1642
|
}
|
|
1642
|
-
return o.map((c,
|
|
1643
|
+
return o.map((c, u) => /* @__PURE__ */ n(
|
|
1643
1644
|
"script",
|
|
1644
1645
|
{
|
|
1645
1646
|
type: "application/ld+json",
|
|
@@ -1647,7 +1648,7 @@ const Br = async ({
|
|
|
1647
1648
|
__html: kt(JSON.stringify(c))
|
|
1648
1649
|
}
|
|
1649
1650
|
},
|
|
1650
|
-
|
|
1651
|
+
u
|
|
1651
1652
|
));
|
|
1652
1653
|
}, Or = ({ config: e, socials: t }) => {
|
|
1653
1654
|
const s = {
|
|
@@ -2381,8 +2382,8 @@ const Ni = (e) => {
|
|
|
2381
2382
|
t[r] = a;
|
|
2382
2383
|
const i = Ke(a) ? [] : {};
|
|
2383
2384
|
return it(a, (o, c) => {
|
|
2384
|
-
const
|
|
2385
|
-
!ze(
|
|
2385
|
+
const u = s(o, r + 1);
|
|
2386
|
+
!ze(u) && (i[c] = u);
|
|
2386
2387
|
}), t[r] = void 0, i;
|
|
2387
2388
|
}
|
|
2388
2389
|
}
|
|
@@ -2502,11 +2503,11 @@ Object.defineProperties(Z, $n);
|
|
|
2502
2503
|
Object.defineProperty(Jn, "isAxiosError", { value: !0 });
|
|
2503
2504
|
Z.from = (e, t, s, a, r, i) => {
|
|
2504
2505
|
const o = Object.create(Jn);
|
|
2505
|
-
C.toFlatObject(e, o, function(
|
|
2506
|
-
return
|
|
2506
|
+
C.toFlatObject(e, o, function(d) {
|
|
2507
|
+
return d !== Error.prototype;
|
|
2507
2508
|
}, (l) => l !== "isAxiosError");
|
|
2508
|
-
const c = e && e.message ? e.message : "Error",
|
|
2509
|
-
return Z.call(o, c,
|
|
2509
|
+
const c = e && e.message ? e.message : "Error", u = t == null && e ? e.code : t;
|
|
2510
|
+
return Z.call(o, c, u, 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
2511
|
};
|
|
2511
2512
|
const Ui = null;
|
|
2512
2513
|
function is(e) {
|
|
@@ -2536,7 +2537,7 @@ function Ot(e, t, s) {
|
|
|
2536
2537
|
}, !1, function(g, w) {
|
|
2537
2538
|
return !C.isUndefined(w[g]);
|
|
2538
2539
|
});
|
|
2539
|
-
const a = s.metaTokens, r = s.visitor ||
|
|
2540
|
+
const a = s.metaTokens, r = s.visitor || d, i = s.dots, o = s.indexes, u = (s.Blob || typeof Blob < "u" && Blob) && C.isSpecCompliantForm(t);
|
|
2540
2541
|
if (!C.isFunction(r))
|
|
2541
2542
|
throw new TypeError("visitor must be a function");
|
|
2542
2543
|
function l(f) {
|
|
@@ -2545,11 +2546,11 @@ function Ot(e, t, s) {
|
|
|
2545
2546
|
return f.toISOString();
|
|
2546
2547
|
if (C.isBoolean(f))
|
|
2547
2548
|
return f.toString();
|
|
2548
|
-
if (!
|
|
2549
|
+
if (!u && C.isBlob(f))
|
|
2549
2550
|
throw new Z("Blob is not supported. Use a Buffer instead.");
|
|
2550
|
-
return C.isArrayBuffer(f) || C.isTypedArray(f) ?
|
|
2551
|
+
return C.isArrayBuffer(f) || C.isTypedArray(f) ? u && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
2551
2552
|
}
|
|
2552
|
-
function
|
|
2553
|
+
function d(f, g, w) {
|
|
2553
2554
|
let v = f;
|
|
2554
2555
|
if (f && !w && typeof f == "object") {
|
|
2555
2556
|
if (C.endsWith(g, "{}"))
|
|
@@ -2566,7 +2567,7 @@ function Ot(e, t, s) {
|
|
|
2566
2567
|
return is(f) ? !0 : (t.append(Js(w, g, i), l(f)), !1);
|
|
2567
2568
|
}
|
|
2568
2569
|
const m = [], h = Object.assign(Ri, {
|
|
2569
|
-
defaultVisitor:
|
|
2570
|
+
defaultVisitor: d,
|
|
2570
2571
|
convertValue: l,
|
|
2571
2572
|
isVisitable: is
|
|
2572
2573
|
});
|
|
@@ -2738,8 +2739,8 @@ function sa(e) {
|
|
|
2738
2739
|
function t(s, a, r, i) {
|
|
2739
2740
|
let o = s[i++];
|
|
2740
2741
|
if (o === "__proto__") return !0;
|
|
2741
|
-
const c = Number.isFinite(+o),
|
|
2742
|
-
return o = !o && C.isArray(r) ? r.length : o,
|
|
2742
|
+
const c = Number.isFinite(+o), u = i >= s.length;
|
|
2743
|
+
return o = !o && C.isArray(r) ? r.length : o, u ? (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
2744
|
}
|
|
2744
2745
|
if (C.isFormData(e) && C.isFunction(e.entries)) {
|
|
2745
2746
|
const s = {};
|
|
@@ -2777,10 +2778,10 @@ const ot = {
|
|
|
2777
2778
|
if (a.indexOf("application/x-www-form-urlencoded") > -1)
|
|
2778
2779
|
return Gi(t, this.formSerializer).toString();
|
|
2779
2780
|
if ((c = C.isFileList(t)) || a.indexOf("multipart/form-data") > -1) {
|
|
2780
|
-
const
|
|
2781
|
+
const u = this.env && this.env.FormData;
|
|
2781
2782
|
return Ot(
|
|
2782
2783
|
c ? { "files[]": t } : t,
|
|
2783
|
-
|
|
2784
|
+
u && new u(),
|
|
2784
2785
|
this.formSerializer
|
|
2785
2786
|
);
|
|
2786
2787
|
}
|
|
@@ -2898,24 +2899,24 @@ let Ae = class {
|
|
|
2898
2899
|
}
|
|
2899
2900
|
set(t, s, a) {
|
|
2900
2901
|
const r = this;
|
|
2901
|
-
function i(c,
|
|
2902
|
-
const
|
|
2903
|
-
if (!
|
|
2902
|
+
function i(c, u, l) {
|
|
2903
|
+
const d = Ze(u);
|
|
2904
|
+
if (!d)
|
|
2904
2905
|
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 ||
|
|
2906
|
+
const m = C.findKey(r, d);
|
|
2907
|
+
(!m || r[m] === void 0 || l === !0 || l === void 0 && r[m] !== !1) && (r[m || u] = St(c));
|
|
2907
2908
|
}
|
|
2908
|
-
const o = (c,
|
|
2909
|
+
const o = (c, u) => C.forEach(c, (l, d) => i(l, d, u));
|
|
2909
2910
|
if (C.isPlainObject(t) || t instanceof this.constructor)
|
|
2910
2911
|
o(t, s);
|
|
2911
2912
|
else if (C.isString(t) && (t = t.trim()) && !Wi(t))
|
|
2912
2913
|
o(Fi(t), s);
|
|
2913
2914
|
else if (C.isObject(t) && C.isIterable(t)) {
|
|
2914
|
-
let c = {},
|
|
2915
|
-
for (const
|
|
2916
|
-
if (!C.isArray(
|
|
2915
|
+
let c = {}, u, l;
|
|
2916
|
+
for (const d of t) {
|
|
2917
|
+
if (!C.isArray(d))
|
|
2917
2918
|
throw TypeError("Object iterator must return a key-value pair");
|
|
2918
|
-
c[l =
|
|
2919
|
+
c[l = d[0]] = (u = c[l]) ? C.isArray(u) ? [...u, d[1]] : [u, d[1]] : d[1];
|
|
2919
2920
|
}
|
|
2920
2921
|
o(c, s);
|
|
2921
2922
|
} else
|
|
@@ -3063,26 +3064,26 @@ function $i(e, t) {
|
|
|
3063
3064
|
e = e || 10;
|
|
3064
3065
|
const s = new Array(e), a = new Array(e);
|
|
3065
3066
|
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] =
|
|
3067
|
+
return t = t !== void 0 ? t : 1e3, function(u) {
|
|
3068
|
+
const l = Date.now(), d = a[i];
|
|
3069
|
+
o || (o = l), s[r] = u, a[r] = l;
|
|
3069
3070
|
let m = i, h = 0;
|
|
3070
3071
|
for (; m !== r; )
|
|
3071
3072
|
h += s[m++], m = m % e;
|
|
3072
3073
|
if (r = (r + 1) % e, r === i && (i = (i + 1) % e), l - o < t)
|
|
3073
3074
|
return;
|
|
3074
|
-
const A =
|
|
3075
|
+
const A = d && l - d;
|
|
3075
3076
|
return A ? Math.round(h * 1e3 / A) : void 0;
|
|
3076
3077
|
};
|
|
3077
3078
|
}
|
|
3078
3079
|
function Zi(e, t) {
|
|
3079
3080
|
let s = 0, a = 1e3 / t, r, i;
|
|
3080
|
-
const o = (l,
|
|
3081
|
-
s =
|
|
3081
|
+
const o = (l, d = Date.now()) => {
|
|
3082
|
+
s = d, r = null, i && (clearTimeout(i), i = null), e(...l);
|
|
3082
3083
|
};
|
|
3083
3084
|
return [(...l) => {
|
|
3084
|
-
const
|
|
3085
|
-
m >= a ? o(l,
|
|
3085
|
+
const d = Date.now(), m = d - s;
|
|
3086
|
+
m >= a ? o(l, d) : (r = l, i || (i = setTimeout(() => {
|
|
3086
3087
|
i = null, o(r);
|
|
3087
3088
|
}, a - m)));
|
|
3088
3089
|
}, () => r && o(r)];
|
|
@@ -3091,15 +3092,15 @@ const It = (e, t, s = 3) => {
|
|
|
3091
3092
|
let a = 0;
|
|
3092
3093
|
const r = $i(50, 250);
|
|
3093
3094
|
return Zi((i) => {
|
|
3094
|
-
const o = i.loaded, c = i.lengthComputable ? i.total : void 0,
|
|
3095
|
+
const o = i.loaded, c = i.lengthComputable ? i.total : void 0, u = o - a, l = r(u), d = o <= c;
|
|
3095
3096
|
a = o;
|
|
3096
3097
|
const m = {
|
|
3097
3098
|
loaded: o,
|
|
3098
3099
|
total: c,
|
|
3099
3100
|
progress: c ? o / c : void 0,
|
|
3100
|
-
bytes:
|
|
3101
|
+
bytes: u,
|
|
3101
3102
|
rate: l || void 0,
|
|
3102
|
-
estimated: l && c &&
|
|
3103
|
+
estimated: l && c && d ? (c - o) / l : void 0,
|
|
3103
3104
|
event: i,
|
|
3104
3105
|
lengthComputable: c != null,
|
|
3105
3106
|
[t ? "download" : "upload"]: !0
|
|
@@ -3159,32 +3160,32 @@ const sn = (e) => e instanceof Ae ? { ...e } : e;
|
|
|
3159
3160
|
function _e(e, t) {
|
|
3160
3161
|
t = t || {};
|
|
3161
3162
|
const s = {};
|
|
3162
|
-
function a(l,
|
|
3163
|
-
return C.isPlainObject(l) && C.isPlainObject(
|
|
3163
|
+
function a(l, d, m, h) {
|
|
3164
|
+
return C.isPlainObject(l) && C.isPlainObject(d) ? C.merge.call({ caseless: h }, l, d) : C.isPlainObject(d) ? C.merge({}, d) : C.isArray(d) ? d.slice() : d;
|
|
3164
3165
|
}
|
|
3165
|
-
function r(l,
|
|
3166
|
-
if (C.isUndefined(
|
|
3166
|
+
function r(l, d, m, h) {
|
|
3167
|
+
if (C.isUndefined(d)) {
|
|
3167
3168
|
if (!C.isUndefined(l))
|
|
3168
3169
|
return a(void 0, l, m, h);
|
|
3169
|
-
} else return a(l,
|
|
3170
|
+
} else return a(l, d, m, h);
|
|
3170
3171
|
}
|
|
3171
|
-
function i(l,
|
|
3172
|
-
if (!C.isUndefined(
|
|
3173
|
-
return a(void 0,
|
|
3172
|
+
function i(l, d) {
|
|
3173
|
+
if (!C.isUndefined(d))
|
|
3174
|
+
return a(void 0, d);
|
|
3174
3175
|
}
|
|
3175
|
-
function o(l,
|
|
3176
|
-
if (C.isUndefined(
|
|
3176
|
+
function o(l, d) {
|
|
3177
|
+
if (C.isUndefined(d)) {
|
|
3177
3178
|
if (!C.isUndefined(l))
|
|
3178
3179
|
return a(void 0, l);
|
|
3179
|
-
} else return a(void 0,
|
|
3180
|
+
} else return a(void 0, d);
|
|
3180
3181
|
}
|
|
3181
|
-
function c(l,
|
|
3182
|
+
function c(l, d, m) {
|
|
3182
3183
|
if (m in t)
|
|
3183
|
-
return a(l,
|
|
3184
|
+
return a(l, d);
|
|
3184
3185
|
if (m in e)
|
|
3185
3186
|
return a(void 0, l);
|
|
3186
3187
|
}
|
|
3187
|
-
const
|
|
3188
|
+
const u = {
|
|
3188
3189
|
url: i,
|
|
3189
3190
|
method: i,
|
|
3190
3191
|
data: i,
|
|
@@ -3213,11 +3214,11 @@ function _e(e, t) {
|
|
|
3213
3214
|
socketPath: o,
|
|
3214
3215
|
responseEncoding: o,
|
|
3215
3216
|
validateStatus: c,
|
|
3216
|
-
headers: (l,
|
|
3217
|
+
headers: (l, d, m) => r(sn(l), sn(d), m, !0)
|
|
3217
3218
|
};
|
|
3218
|
-
return C.forEach(Object.keys({ ...e, ...t }), function(
|
|
3219
|
-
const m = d
|
|
3220
|
-
C.isUndefined(h) && m !== c || (s[
|
|
3219
|
+
return C.forEach(Object.keys({ ...e, ...t }), function(d) {
|
|
3220
|
+
const m = u[d] || r, h = m(e[d], t[d], d);
|
|
3221
|
+
C.isUndefined(h) && m !== c || (s[d] = h);
|
|
3221
3222
|
}), s;
|
|
3222
3223
|
}
|
|
3223
3224
|
const ia = (e) => {
|
|
@@ -3230,15 +3231,15 @@ const ia = (e) => {
|
|
|
3230
3231
|
if (de.hasStandardBrowserEnv || de.hasStandardBrowserWebWorkerEnv)
|
|
3231
3232
|
o.setContentType(void 0);
|
|
3232
3233
|
else if (C.isFunction(s.getHeaders)) {
|
|
3233
|
-
const
|
|
3234
|
-
Object.entries(
|
|
3235
|
-
l.includes(
|
|
3234
|
+
const u = s.getHeaders(), l = ["content-type", "content-length"];
|
|
3235
|
+
Object.entries(u).forEach(([d, m]) => {
|
|
3236
|
+
l.includes(d.toLowerCase()) && o.set(d, m);
|
|
3236
3237
|
});
|
|
3237
3238
|
}
|
|
3238
3239
|
}
|
|
3239
3240
|
if (de.hasStandardBrowserEnv && (a && C.isFunction(a) && (a = a(t)), a || a !== !1 && Xi(t.url))) {
|
|
3240
|
-
const
|
|
3241
|
-
|
|
3241
|
+
const u = r && i && eo.read(i);
|
|
3242
|
+
u && o.set(r, u);
|
|
3242
3243
|
}
|
|
3243
3244
|
return t;
|
|
3244
3245
|
}, no = typeof XMLHttpRequest < "u", ao = no && function(e) {
|
|
@@ -3246,9 +3247,9 @@ const ia = (e) => {
|
|
|
3246
3247
|
const r = ia(e);
|
|
3247
3248
|
let i = r.data;
|
|
3248
3249
|
const o = Ae.from(r.headers).normalize();
|
|
3249
|
-
let { responseType: c, onUploadProgress:
|
|
3250
|
+
let { responseType: c, onUploadProgress: u, onDownloadProgress: l } = r, d, m, h, A, f;
|
|
3250
3251
|
function g() {
|
|
3251
|
-
A && A(), f && f(), r.cancelToken && r.cancelToken.unsubscribe(
|
|
3252
|
+
A && A(), f && f(), r.cancelToken && r.cancelToken.unsubscribe(d), r.signal && r.signal.removeEventListener("abort", d);
|
|
3252
3253
|
}
|
|
3253
3254
|
let w = new XMLHttpRequest();
|
|
3254
3255
|
w.open(r.method.toUpperCase(), r.url, !0), w.timeout = r.timeout;
|
|
@@ -3289,9 +3290,9 @@ const ia = (e) => {
|
|
|
3289
3290
|
)), w = null;
|
|
3290
3291
|
}, i === void 0 && o.setContentType(null), "setRequestHeader" in w && C.forEach(o.toJSON(), function(S, b) {
|
|
3291
3292
|
w.setRequestHeader(b, S);
|
|
3292
|
-
}), C.isUndefined(r.withCredentials) || (w.withCredentials = !!r.withCredentials), c && c !== "json" && (w.responseType = r.responseType), l && ([h, f] = It(l, !0), w.addEventListener("progress", h)),
|
|
3293
|
+
}), C.isUndefined(r.withCredentials) || (w.withCredentials = !!r.withCredentials), c && c !== "json" && (w.responseType = r.responseType), l && ([h, f] = It(l, !0), w.addEventListener("progress", h)), u && w.upload && ([m, A] = It(u), w.upload.addEventListener("progress", m), w.upload.addEventListener("loadend", A)), (r.cancelToken || r.signal) && (d = (N) => {
|
|
3293
3294
|
w && (a(!N || N.type ? new Je(null, e, w) : N), w.abort(), w = null);
|
|
3294
|
-
}, r.cancelToken && r.cancelToken.subscribe(
|
|
3295
|
+
}, r.cancelToken && r.cancelToken.subscribe(d), r.signal && (r.signal.aborted ? d() : r.signal.addEventListener("abort", d)));
|
|
3295
3296
|
const E = Ji(r.url);
|
|
3296
3297
|
if (E && de.protocols.indexOf(E) === -1) {
|
|
3297
3298
|
a(new Z("Unsupported protocol " + E + ":", Z.ERR_BAD_REQUEST, e));
|
|
@@ -3306,8 +3307,8 @@ const ia = (e) => {
|
|
|
3306
3307
|
const i = function(l) {
|
|
3307
3308
|
if (!r) {
|
|
3308
3309
|
r = !0, c();
|
|
3309
|
-
const
|
|
3310
|
-
a.abort(
|
|
3310
|
+
const d = l instanceof Error ? l : this.reason;
|
|
3311
|
+
a.abort(d instanceof Z ? d : new Je(d instanceof Error ? d.message : d));
|
|
3311
3312
|
}
|
|
3312
3313
|
};
|
|
3313
3314
|
let o = t && setTimeout(() => {
|
|
@@ -3319,8 +3320,8 @@ const ia = (e) => {
|
|
|
3319
3320
|
}), e = null);
|
|
3320
3321
|
};
|
|
3321
3322
|
e.forEach((l) => l.addEventListener("abort", i));
|
|
3322
|
-
const { signal:
|
|
3323
|
-
return
|
|
3323
|
+
const { signal: u } = a;
|
|
3324
|
+
return u.unsubscribe = () => C.asap(c), u;
|
|
3324
3325
|
}
|
|
3325
3326
|
}, io = function* (e, t) {
|
|
3326
3327
|
let s = e.byteLength;
|
|
@@ -3352,29 +3353,29 @@ const ia = (e) => {
|
|
|
3352
3353
|
}
|
|
3353
3354
|
}, nn = (e, t, s, a) => {
|
|
3354
3355
|
const r = oo(e, t);
|
|
3355
|
-
let i = 0, o, c = (
|
|
3356
|
-
o || (o = !0, a && a(
|
|
3356
|
+
let i = 0, o, c = (u) => {
|
|
3357
|
+
o || (o = !0, a && a(u));
|
|
3357
3358
|
};
|
|
3358
3359
|
return new ReadableStream({
|
|
3359
|
-
async pull(
|
|
3360
|
+
async pull(u) {
|
|
3360
3361
|
try {
|
|
3361
|
-
const { done: l, value:
|
|
3362
|
+
const { done: l, value: d } = await r.next();
|
|
3362
3363
|
if (l) {
|
|
3363
|
-
c(),
|
|
3364
|
+
c(), u.close();
|
|
3364
3365
|
return;
|
|
3365
3366
|
}
|
|
3366
|
-
let m =
|
|
3367
|
+
let m = d.byteLength;
|
|
3367
3368
|
if (s) {
|
|
3368
3369
|
let h = i += m;
|
|
3369
3370
|
s(h);
|
|
3370
3371
|
}
|
|
3371
|
-
|
|
3372
|
+
u.enqueue(new Uint8Array(d));
|
|
3372
3373
|
} catch (l) {
|
|
3373
3374
|
throw c(l), l;
|
|
3374
3375
|
}
|
|
3375
3376
|
},
|
|
3376
|
-
cancel(
|
|
3377
|
-
return c(
|
|
3377
|
+
cancel(u) {
|
|
3378
|
+
return c(u), r.return();
|
|
3378
3379
|
}
|
|
3379
3380
|
}, {
|
|
3380
3381
|
highWaterMark: 2
|
|
@@ -3398,7 +3399,7 @@ const ia = (e) => {
|
|
|
3398
3399
|
const { fetch: t, Request: s, Response: a } = e, r = t ? mt(t) : typeof fetch == "function", i = mt(s), o = mt(a);
|
|
3399
3400
|
if (!r)
|
|
3400
3401
|
return !1;
|
|
3401
|
-
const c = r && mt(rn),
|
|
3402
|
+
const c = r && mt(rn), u = r && (typeof on == "function" ? /* @__PURE__ */ ((f) => (g) => f.encode(g))(new on()) : async (f) => new Uint8Array(await new s(f).arrayBuffer())), l = i && c && cn(() => {
|
|
3402
3403
|
let f = !1;
|
|
3403
3404
|
const g = new s(de.origin, {
|
|
3404
3405
|
body: new rn(),
|
|
@@ -3408,8 +3409,8 @@ const ia = (e) => {
|
|
|
3408
3409
|
}
|
|
3409
3410
|
}).headers.has("Content-Type");
|
|
3410
3411
|
return f && !g;
|
|
3411
|
-
}),
|
|
3412
|
-
stream:
|
|
3412
|
+
}), d = o && c && cn(() => C.isReadableStream(new a("").body)), m = {
|
|
3413
|
+
stream: d && ((f) => f.body)
|
|
3413
3414
|
};
|
|
3414
3415
|
r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
3415
3416
|
!m[f] && (m[f] = (g, w) => {
|
|
@@ -3432,7 +3433,7 @@ const ia = (e) => {
|
|
|
3432
3433
|
if (C.isArrayBufferView(f) || C.isArrayBuffer(f))
|
|
3433
3434
|
return f.byteLength;
|
|
3434
3435
|
if (C.isURLSearchParams(f) && (f = f + ""), C.isString(f))
|
|
3435
|
-
return (await
|
|
3436
|
+
return (await u(f)).byteLength;
|
|
3436
3437
|
}, A = async (f, g) => {
|
|
3437
3438
|
const w = C.toFiniteNumber(f.getContentLength());
|
|
3438
3439
|
return w ?? h(g);
|
|
@@ -3485,8 +3486,8 @@ const ia = (e) => {
|
|
|
3485
3486
|
};
|
|
3486
3487
|
se = i && new s(g, D);
|
|
3487
3488
|
let k = await (i ? L(se, j) : L(g, D));
|
|
3488
|
-
const F =
|
|
3489
|
-
if (
|
|
3489
|
+
const F = d && (R === "stream" || R === "response");
|
|
3490
|
+
if (d && (b || F && M)) {
|
|
3490
3491
|
const T = {};
|
|
3491
3492
|
["status", "statusText", "headers"].forEach((V) => {
|
|
3492
3493
|
T[V] = k[V];
|
|
@@ -3530,9 +3531,9 @@ const ia = (e) => {
|
|
|
3530
3531
|
r,
|
|
3531
3532
|
s
|
|
3532
3533
|
];
|
|
3533
|
-
let o = i.length, c = o,
|
|
3534
|
+
let o = i.length, c = o, u, l, d = mo;
|
|
3534
3535
|
for (; c--; )
|
|
3535
|
-
|
|
3536
|
+
u = i[c], l = d.get(u), l === void 0 && d.set(u, l = c ? /* @__PURE__ */ new Map() : uo(t)), d = l;
|
|
3536
3537
|
return l;
|
|
3537
3538
|
};
|
|
3538
3539
|
oa();
|
|
@@ -3569,7 +3570,7 @@ function fo(e, t) {
|
|
|
3569
3570
|
}
|
|
3570
3571
|
if (!r) {
|
|
3571
3572
|
const o = Object.entries(i).map(
|
|
3572
|
-
([
|
|
3573
|
+
([u, l]) => `adapter ${u} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
3573
3574
|
);
|
|
3574
3575
|
let c = s ? o.length > 1 ? `since :
|
|
3575
3576
|
` + o.map(ln).join(`
|
|
@@ -3651,9 +3652,9 @@ function go(e, t, s) {
|
|
|
3651
3652
|
for (; r-- > 0; ) {
|
|
3652
3653
|
const i = a[r], o = t[i];
|
|
3653
3654
|
if (o) {
|
|
3654
|
-
const c = e[i],
|
|
3655
|
-
if (
|
|
3656
|
-
throw new Z("option " + i + " must be " +
|
|
3655
|
+
const c = e[i], u = c === void 0 || o(c, i, e);
|
|
3656
|
+
if (u !== !0)
|
|
3657
|
+
throw new Z("option " + i + " must be " + u, Z.ERR_BAD_OPTION_VALUE);
|
|
3657
3658
|
continue;
|
|
3658
3659
|
}
|
|
3659
3660
|
if (s !== !0)
|
|
@@ -3723,20 +3724,20 @@ let qe = class {
|
|
|
3723
3724
|
}
|
|
3724
3725
|
), s.headers = Ae.concat(o, i);
|
|
3725
3726
|
const c = [];
|
|
3726
|
-
let
|
|
3727
|
+
let u = !0;
|
|
3727
3728
|
this.interceptors.request.forEach(function(g) {
|
|
3728
|
-
typeof g.runWhen == "function" && g.runWhen(s) === !1 || (
|
|
3729
|
+
typeof g.runWhen == "function" && g.runWhen(s) === !1 || (u = u && g.synchronous, c.unshift(g.fulfilled, g.rejected));
|
|
3729
3730
|
});
|
|
3730
3731
|
const l = [];
|
|
3731
3732
|
this.interceptors.response.forEach(function(g) {
|
|
3732
3733
|
l.push(g.fulfilled, g.rejected);
|
|
3733
3734
|
});
|
|
3734
|
-
let
|
|
3735
|
-
if (!
|
|
3735
|
+
let d, m = 0, h;
|
|
3736
|
+
if (!u) {
|
|
3736
3737
|
const f = [dn.bind(this), void 0];
|
|
3737
|
-
for (f.unshift(...c), f.push(...l), h = f.length,
|
|
3738
|
-
|
|
3739
|
-
return
|
|
3738
|
+
for (f.unshift(...c), f.push(...l), h = f.length, d = Promise.resolve(s); m < h; )
|
|
3739
|
+
d = d.then(f[m++], f[m++]);
|
|
3740
|
+
return d;
|
|
3740
3741
|
}
|
|
3741
3742
|
h = c.length;
|
|
3742
3743
|
let A = s;
|
|
@@ -3750,13 +3751,13 @@ let qe = class {
|
|
|
3750
3751
|
}
|
|
3751
3752
|
}
|
|
3752
3753
|
try {
|
|
3753
|
-
|
|
3754
|
+
d = dn.call(this, A);
|
|
3754
3755
|
} catch (f) {
|
|
3755
3756
|
return Promise.reject(f);
|
|
3756
3757
|
}
|
|
3757
3758
|
for (m = 0, h = l.length; m < h; )
|
|
3758
|
-
|
|
3759
|
-
return
|
|
3759
|
+
d = d.then(l[m++], l[m++]);
|
|
3760
|
+
return d;
|
|
3760
3761
|
}
|
|
3761
3762
|
getUri(t) {
|
|
3762
3763
|
t = _e(this.defaults, t);
|
|
@@ -4322,8 +4323,8 @@ class Be {
|
|
|
4322
4323
|
]), o = He(
|
|
4323
4324
|
r
|
|
4324
4325
|
)?.data, c = o?.[0];
|
|
4325
|
-
let
|
|
4326
|
-
c?.authors?.length === 1 && c?.config?.showauthor && c.authors[0]?.internaluser && (
|
|
4326
|
+
let u = [];
|
|
4327
|
+
c?.authors?.length === 1 && c?.config?.showauthor && c.authors[0]?.internaluser && (u = (await this.getAutorInfo({
|
|
4327
4328
|
user: c.authors[0].name,
|
|
4328
4329
|
exclude: a.getAutorInfo,
|
|
4329
4330
|
imagesizes: s.getAutorInfo
|
|
@@ -4359,7 +4360,7 @@ class Be {
|
|
|
4359
4360
|
}
|
|
4360
4361
|
return {
|
|
4361
4362
|
news: o ?? [],
|
|
4362
|
-
autor:
|
|
4363
|
+
autor: u,
|
|
4363
4364
|
newsRelatedResponses: g,
|
|
4364
4365
|
itemList: He(i)?.data ?? [],
|
|
4365
4366
|
newsRelatedListResponses: f,
|
|
@@ -4394,7 +4395,7 @@ class bo extends Be {
|
|
|
4394
4395
|
}), Promise.reject(l)));
|
|
4395
4396
|
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
4397
|
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,
|
|
4398
|
+
const a = s.data.data[0] ?? [], r = a?.value.split("="), i = r[0] ?? "", o = r[1] ?? "", c = a?.block, u = {
|
|
4398
4399
|
videos: async () => {
|
|
4399
4400
|
const l = {
|
|
4400
4401
|
size: this.props?.imgSizes[c].size ?? 5,
|
|
@@ -4403,20 +4404,20 @@ class bo extends Be {
|
|
|
4403
4404
|
};
|
|
4404
4405
|
this.IS_MULTIPUBLICATION && (l.publication = this.MULTIPUBLICATION_FETCHES ?? this.PUBLIC_PUBLICATION_ID);
|
|
4405
4406
|
try {
|
|
4406
|
-
const
|
|
4407
|
+
const d = await this.getvideoListAdvanced(l);
|
|
4407
4408
|
return {
|
|
4408
4409
|
blockSass: s.data.data,
|
|
4409
|
-
content:
|
|
4410
|
+
content: d ? d.data : void 0
|
|
4410
4411
|
};
|
|
4411
|
-
} catch (
|
|
4412
|
-
return console.log(`[/videos-list-advanced] Error: ${
|
|
4412
|
+
} catch (d) {
|
|
4413
|
+
return console.log(`[/videos-list-advanced] Error: ${d?.message}`), X({
|
|
4413
4414
|
service: "DynamicBlockServices.getBlockSass.videos",
|
|
4414
4415
|
endpoint: "/videos-list-advanced",
|
|
4415
4416
|
method: "GET",
|
|
4416
4417
|
params: l,
|
|
4417
|
-
message:
|
|
4418
|
-
status:
|
|
4419
|
-
error:
|
|
4418
|
+
message: d?.message ?? "Unknown error",
|
|
4419
|
+
status: d?.response?.status,
|
|
4420
|
+
error: d
|
|
4420
4421
|
}), {
|
|
4421
4422
|
blockSass: s.data.data,
|
|
4422
4423
|
content: void 0
|
|
@@ -4424,16 +4425,16 @@ class bo extends Be {
|
|
|
4424
4425
|
}
|
|
4425
4426
|
},
|
|
4426
4427
|
tag: async () => {
|
|
4427
|
-
const { USE_QUOTE_IN_QUERY_TAG_HOME: l } = q(),
|
|
4428
|
+
const { USE_QUOTE_IN_QUERY_TAG_HOME: l } = q(), d = {
|
|
4428
4429
|
query: l ? 'claves:("' + o + '")' : "claves:(" + o + ")",
|
|
4429
4430
|
size: this.props?.imgSizes[c]?.size ?? 3,
|
|
4430
4431
|
newstype: this.props?.config?.newsType,
|
|
4431
4432
|
exclude: this.exclude,
|
|
4432
4433
|
imagesizes: this.props?.imgSizes[c]?.imageSizes
|
|
4433
4434
|
};
|
|
4434
|
-
this.IS_MULTIPUBLICATION && (
|
|
4435
|
+
this.IS_MULTIPUBLICATION && (d.publication = this.MULTIPUBLICATION_FETCHES ?? this.PUBLIC_PUBLICATION_ID);
|
|
4435
4436
|
try {
|
|
4436
|
-
const m = await this.getNewsListAvanced(
|
|
4437
|
+
const m = await this.getNewsListAvanced(d);
|
|
4437
4438
|
return {
|
|
4438
4439
|
blockSass: s.data.data,
|
|
4439
4440
|
content: m ? m.data : void 0
|
|
@@ -4443,7 +4444,7 @@ class bo extends Be {
|
|
|
4443
4444
|
service: "DynamicBlockServices.getBlockSass.tag",
|
|
4444
4445
|
endpoint: "/news-list-advanced",
|
|
4445
4446
|
method: "GET",
|
|
4446
|
-
params:
|
|
4447
|
+
params: d,
|
|
4447
4448
|
message: m?.message ?? "Unknown error",
|
|
4448
4449
|
status: m?.response?.status,
|
|
4449
4450
|
error: m
|
|
@@ -4463,20 +4464,20 @@ class bo extends Be {
|
|
|
4463
4464
|
};
|
|
4464
4465
|
this.IS_MULTIPUBLICATION && (l.publication = this.MULTIPUBLICATION_FETCHES ?? this.PUBLIC_PUBLICATION_ID);
|
|
4465
4466
|
try {
|
|
4466
|
-
const
|
|
4467
|
+
const d = await this.getNewsListAvanced(l);
|
|
4467
4468
|
return {
|
|
4468
4469
|
blockSass: s.data.data,
|
|
4469
|
-
content:
|
|
4470
|
+
content: d ? d.data : void 0
|
|
4470
4471
|
};
|
|
4471
|
-
} catch (
|
|
4472
|
-
return console.log(`[/news-list-advanced] Error: ${
|
|
4472
|
+
} catch (d) {
|
|
4473
|
+
return console.log(`[/news-list-advanced] Error: ${d?.message}`), X({
|
|
4473
4474
|
service: "DynamicBlockServices.getBlockSass.seccion",
|
|
4474
4475
|
endpoint: "/news-list-advanced",
|
|
4475
4476
|
method: "GET",
|
|
4476
4477
|
params: l,
|
|
4477
|
-
message:
|
|
4478
|
-
status:
|
|
4479
|
-
error:
|
|
4478
|
+
message: d?.message ?? "Unknown error",
|
|
4479
|
+
status: d?.response?.status,
|
|
4480
|
+
error: d
|
|
4480
4481
|
}), {
|
|
4481
4482
|
blockSass: s.data.data,
|
|
4482
4483
|
content: void 0
|
|
@@ -4484,8 +4485,8 @@ class bo extends Be {
|
|
|
4484
4485
|
}
|
|
4485
4486
|
}
|
|
4486
4487
|
};
|
|
4487
|
-
if (i in
|
|
4488
|
-
const l =
|
|
4488
|
+
if (i in u) {
|
|
4489
|
+
const l = u[i];
|
|
4489
4490
|
return await l();
|
|
4490
4491
|
}
|
|
4491
4492
|
return { blockSass: s.data.data };
|
|
@@ -4535,15 +4536,15 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4535
4536
|
imgSizesVideo: a,
|
|
4536
4537
|
axiosApi: e,
|
|
4537
4538
|
exclude: o
|
|
4538
|
-
}),
|
|
4539
|
+
}), u = [];
|
|
4539
4540
|
for (let m = 1; m <= r; m++)
|
|
4540
4541
|
for (let h = 1; h <= i; h++)
|
|
4541
|
-
|
|
4542
|
+
u.push({
|
|
4542
4543
|
func: c.getBlockSass,
|
|
4543
4544
|
slot_id: m + "_" + h
|
|
4544
4545
|
});
|
|
4545
4546
|
const l = await Promise.allSettled([
|
|
4546
|
-
...
|
|
4547
|
+
...u.map((m) => m.func({ template: "Home_" + m.slot_id }))
|
|
4547
4548
|
]);
|
|
4548
4549
|
return (() => {
|
|
4549
4550
|
const m = {};
|
|
@@ -4621,18 +4622,18 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4621
4622
|
return i ? { ...t, ...i } : fe(t);
|
|
4622
4623
|
},
|
|
4623
4624
|
seccion: async (e) => {
|
|
4624
|
-
const { meta: t, config: s, pathname: a, slug: r, axiosApi: i } = e, o = new Be({ config: s, axiosApi: i }), c = a.split("/"),
|
|
4625
|
+
const { meta: t, config: s, pathname: a, slug: r, axiosApi: i } = e, o = new Be({ config: s, axiosApi: i }), c = a.split("/"), u = [], l = ut(a), d = Number(s.newsListLimit) ?? 0, m = q().PUBLIC_LNG === "en";
|
|
4625
4626
|
try {
|
|
4626
4627
|
const h = await o.getNewsListSection({
|
|
4627
4628
|
section: r,
|
|
4628
|
-
size:
|
|
4629
|
+
size: d,
|
|
4629
4630
|
newstype: s.newsType,
|
|
4630
4631
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
4631
4632
|
page: l
|
|
4632
4633
|
});
|
|
4633
4634
|
if (!h) return fe(t);
|
|
4634
4635
|
const A = h.data.data, f = A[0];
|
|
4635
|
-
return A.length <
|
|
4636
|
+
return A.length < d || u.push({ rel: "next", url: lt(s, c, l) }), l > 1 && u.push({ rel: "prev", url: dt(s, c, l) }), {
|
|
4636
4637
|
...t,
|
|
4637
4638
|
title: m ? `Latest News from ${f.info.section?.name} | ${s.name}` : `Últimas Noticias de ${f.info.section?.name} | ${s.name}`,
|
|
4638
4639
|
description: m ? `All the latest news from ${f.info.section?.name} on ${s.name}` : `Todas las últimas noticias de ${f.info.section?.name} en ${s.name}`,
|
|
@@ -4643,7 +4644,7 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4643
4644
|
manifest: s.manifest,
|
|
4644
4645
|
icons: {
|
|
4645
4646
|
...s.icons,
|
|
4646
|
-
other:
|
|
4647
|
+
other: u
|
|
4647
4648
|
},
|
|
4648
4649
|
other: {
|
|
4649
4650
|
"msapplication-TileImage": s.msapplicationTileImage ?? ""
|
|
@@ -4667,11 +4668,11 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4667
4668
|
}
|
|
4668
4669
|
},
|
|
4669
4670
|
tema: async (e) => {
|
|
4670
|
-
const { meta: t, config: s, pathname: a, slug: r, axiosApi: i } = e, o = new Be({ config: s, axiosApi: i }), c = a.split("/"),
|
|
4671
|
+
const { meta: t, config: s, pathname: a, slug: r, axiosApi: i } = e, o = new Be({ config: s, axiosApi: i }), c = a.split("/"), u = [], l = ut(a), d = Number(s.newsListLimit) ?? 0, m = /([t][0-9]{4})\w+/.exec(r || ""), h = m && m?.length > 0 ? m[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: A, PUBLIC_LNG: f } = q(), g = f === "en";
|
|
4671
4672
|
try {
|
|
4672
4673
|
const w = await o.getNewsListTags({
|
|
4673
4674
|
tagid: h,
|
|
4674
|
-
size:
|
|
4675
|
+
size: d,
|
|
4675
4676
|
tagtype: Number(A),
|
|
4676
4677
|
newstype: s.newsType,
|
|
4677
4678
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
@@ -4679,10 +4680,10 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4679
4680
|
});
|
|
4680
4681
|
if (!w) return fe(t);
|
|
4681
4682
|
const v = w.data.entity;
|
|
4682
|
-
return v ? (w.data.data?.length <
|
|
4683
|
+
return v ? (w.data.data?.length < d || u.push({
|
|
4683
4684
|
rel: "next",
|
|
4684
4685
|
url: lt(s, c, l)
|
|
4685
|
-
}), l > 1 &&
|
|
4686
|
+
}), l > 1 && u.push({
|
|
4686
4687
|
rel: "prev",
|
|
4687
4688
|
url: dt(s, c, l)
|
|
4688
4689
|
}), {
|
|
@@ -4696,7 +4697,7 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4696
4697
|
manifest: s.manifest,
|
|
4697
4698
|
icons: {
|
|
4698
4699
|
...s.icons,
|
|
4699
|
-
other:
|
|
4700
|
+
other: u
|
|
4700
4701
|
},
|
|
4701
4702
|
other: {
|
|
4702
4703
|
"msapplication-TileImage": s.msapplicationTileImage ?? ""
|
|
@@ -4749,17 +4750,17 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4749
4750
|
}
|
|
4750
4751
|
},
|
|
4751
4752
|
videos: async (e) => {
|
|
4752
|
-
const { meta: t, config: s, pathname: a, axiosApi: r } = e, i = new Be({ config: s, axiosApi: r }), o = a.split("/"), c = [],
|
|
4753
|
+
const { meta: t, config: s, pathname: a, axiosApi: r } = e, i = new Be({ config: s, axiosApi: r }), o = a.split("/"), c = [], u = ut(a), l = await i.getvideoListAdvanced({
|
|
4753
4754
|
size: Number(s.newsListLimit),
|
|
4754
4755
|
query: "Category:(videohome OR destacadoseccion OR seccion)",
|
|
4755
|
-
page: Number(
|
|
4756
|
+
page: Number(u)
|
|
4756
4757
|
});
|
|
4757
4758
|
return l ? (l.data.data.length < Number(s.newsListLimit) || c.push({
|
|
4758
4759
|
rel: "next",
|
|
4759
|
-
url: lt(s, o,
|
|
4760
|
-
}),
|
|
4760
|
+
url: lt(s, o, u)
|
|
4761
|
+
}), u > 1 && c.push({
|
|
4761
4762
|
rel: "prev",
|
|
4762
|
-
url: dt(s, o,
|
|
4763
|
+
url: dt(s, o, u)
|
|
4763
4764
|
}), {
|
|
4764
4765
|
...t,
|
|
4765
4766
|
title: "Videos | " + s.name,
|
|
@@ -4780,11 +4781,11 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4780
4781
|
pages: async (e, t) => {
|
|
4781
4782
|
const { meta: s, config: a, pathname: r, slug: i, axiosApi: o } = e, c = new Be({ config: a, axiosApi: o });
|
|
4782
4783
|
try {
|
|
4783
|
-
const
|
|
4784
|
+
const u = await c.getPages({
|
|
4784
4785
|
path: t || a.servicePrefix + `/pages/${i}`
|
|
4785
4786
|
});
|
|
4786
|
-
if (!
|
|
4787
|
-
const l =
|
|
4787
|
+
if (!u) return fe(s);
|
|
4788
|
+
const l = u.data.data[0]?.info.title ?? "";
|
|
4788
4789
|
return {
|
|
4789
4790
|
...s,
|
|
4790
4791
|
title: `${a.name} | ${l}`,
|
|
@@ -4793,8 +4794,8 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4793
4794
|
canonical: a.siteUrl + r
|
|
4794
4795
|
}
|
|
4795
4796
|
};
|
|
4796
|
-
} catch (
|
|
4797
|
-
return console.error(
|
|
4797
|
+
} catch (u) {
|
|
4798
|
+
return console.error(u), fe(s);
|
|
4798
4799
|
}
|
|
4799
4800
|
},
|
|
4800
4801
|
contacto: (e) => {
|
|
@@ -4838,7 +4839,7 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4838
4839
|
};
|
|
4839
4840
|
},
|
|
4840
4841
|
autor: async (e) => {
|
|
4841
|
-
const { meta: t, config: s, pathname: a, imgSizes: r, slug: i, axiosApi: o } = e, c = new Be({ config: s, axiosApi: o, imgSizes: r }),
|
|
4842
|
+
const { meta: t, config: s, pathname: a, imgSizes: r, slug: i, axiosApi: o } = e, c = new Be({ config: s, axiosApi: o, imgSizes: r }), u = a.split("/"), l = [], d = ut(a), m = q().PUBLIC_LNG === "en";
|
|
4842
4843
|
try {
|
|
4843
4844
|
const h = await c.getAutorInfo({
|
|
4844
4845
|
user: i,
|
|
@@ -4847,17 +4848,17 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4847
4848
|
}), A = await c.getNewsListAutor({
|
|
4848
4849
|
size: Number(s.newsListLimit) ?? 0,
|
|
4849
4850
|
user: i,
|
|
4850
|
-
page:
|
|
4851
|
+
page: d,
|
|
4851
4852
|
newstype: s.newsType,
|
|
4852
4853
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
4853
4854
|
imagesizes: r.md
|
|
4854
4855
|
});
|
|
4855
4856
|
return A ? (A.data.data.length < Number(s.newsListLimit) || l.push({
|
|
4856
4857
|
rel: "next",
|
|
4857
|
-
url: lt(s,
|
|
4858
|
-
}),
|
|
4858
|
+
url: lt(s, u, d)
|
|
4859
|
+
}), d > 1 && l.push({
|
|
4859
4860
|
rel: "prev",
|
|
4860
|
-
url: dt(s,
|
|
4861
|
+
url: dt(s, u, d)
|
|
4861
4862
|
}), {
|
|
4862
4863
|
...t,
|
|
4863
4864
|
title: m ? `Latest News from ${h?.data.data[0]?.info.fullname} | ${s.name}` : `Últimas Noticias de ${h?.data.data[0]?.info.fullname} | ${s.name}`,
|
|
@@ -4884,7 +4885,7 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4884
4885
|
listAutor: t,
|
|
4885
4886
|
config: s
|
|
4886
4887
|
}) => {
|
|
4887
|
-
const a = t?.[0] ?? null, { DATE_TIMEZONE: r = "America/Mexico_City", PUBLIC_ASSETS_URL: i } = q(), o = r, c = a?.info?.date?.modified ? Fe(a.info.date.modified, o) : void 0,
|
|
4888
|
+
const a = t?.[0] ?? null, { DATE_TIMEZONE: r = "America/Mexico_City", PUBLIC_ASSETS_URL: i } = q(), o = r, c = a?.info?.date?.modified ? Fe(a.info.date.modified, o) : void 0, u = e.addtional?.USER_JOBSTART ? Fe(e.addtional.USER_JOBSTART, o) : void 0, l = i && i !== "false" ? i : "", d = {
|
|
4888
4889
|
"@context": "https://schema.org",
|
|
4889
4890
|
"@type": "ProfilePage",
|
|
4890
4891
|
mainEntity: {
|
|
@@ -4904,7 +4905,7 @@ const au = async (e, t, s, a, r, i, o) => {
|
|
|
4904
4905
|
url: s.siteUrl + (s.paths.autor !== "" ? `/${s.paths.autor}/` : "/") + e.info.name
|
|
4905
4906
|
}
|
|
4906
4907
|
};
|
|
4907
|
-
return
|
|
4908
|
+
return u && (d.dateCreated = u), c && (d.dateModified = c), e?.addtional?.USER_SHOWEMAIL && (d.mainEntity.email = e.info.email), /* @__PURE__ */ n("script", { type: "application/ld+json", children: JSON.stringify(d) });
|
|
4908
4909
|
};
|
|
4909
4910
|
async function iu({
|
|
4910
4911
|
axiosApi: e,
|
|
@@ -4924,9 +4925,9 @@ async function iu({
|
|
|
4924
4925
|
pathname: i,
|
|
4925
4926
|
slug: o,
|
|
4926
4927
|
texts: c,
|
|
4927
|
-
query:
|
|
4928
|
+
query: u,
|
|
4928
4929
|
autor: l,
|
|
4929
|
-
listAutor:
|
|
4930
|
+
listAutor: d,
|
|
4930
4931
|
currentNew: m,
|
|
4931
4932
|
banners: h,
|
|
4932
4933
|
schemasImages: A,
|
|
@@ -4948,7 +4949,7 @@ async function iu({
|
|
|
4948
4949
|
imgSizes: a,
|
|
4949
4950
|
slug: o,
|
|
4950
4951
|
texts: c,
|
|
4951
|
-
query:
|
|
4952
|
+
query: u,
|
|
4952
4953
|
axiosApi: e,
|
|
4953
4954
|
internalPath: f,
|
|
4954
4955
|
schemasImages: R
|
|
@@ -5012,7 +5013,7 @@ async function iu({
|
|
|
5012
5013
|
No,
|
|
5013
5014
|
{
|
|
5014
5015
|
autor: l,
|
|
5015
|
-
listAutor:
|
|
5016
|
+
listAutor: d,
|
|
5016
5017
|
config: g
|
|
5017
5018
|
}
|
|
5018
5019
|
),
|
|
@@ -5046,11 +5047,11 @@ const ou = ({
|
|
|
5046
5047
|
config: i,
|
|
5047
5048
|
internalPath: o,
|
|
5048
5049
|
currentNew: c,
|
|
5049
|
-
tagsParsed:
|
|
5050
|
+
tagsParsed: u,
|
|
5050
5051
|
scriptReplaces: l,
|
|
5051
|
-
body_custom_elements:
|
|
5052
|
+
body_custom_elements: d
|
|
5052
5053
|
}) => {
|
|
5053
|
-
const m = Ga(c,
|
|
5054
|
+
const m = Ga(c, u), h = jn[t]({
|
|
5054
5055
|
pathname: a,
|
|
5055
5056
|
slug: r,
|
|
5056
5057
|
config: i,
|
|
@@ -5064,7 +5065,7 @@ const ou = ({
|
|
|
5064
5065
|
/* @__PURE__ */ n(_a, {}),
|
|
5065
5066
|
/* @__PURE__ */ n(ja, { dimensionValues: m }),
|
|
5066
5067
|
/* @__PURE__ */ n(Qa, {}),
|
|
5067
|
-
|
|
5068
|
+
d,
|
|
5068
5069
|
/* @__PURE__ */ n(yr, { name: "bodyafter", banners: s, replaces: w })
|
|
5069
5070
|
] });
|
|
5070
5071
|
}, So = () => /* @__PURE__ */ n(
|
|
@@ -5103,7 +5104,7 @@ function Eo({
|
|
|
5103
5104
|
enableDrag: i,
|
|
5104
5105
|
onIndexChange: o
|
|
5105
5106
|
}) {
|
|
5106
|
-
const [c,
|
|
5107
|
+
const [c, u] = $(!1), [l, d] = $(0), [m, h] = $(0), [A, f] = $(0), [g, w] = $(0), [v, E] = $(null), N = Ma(null), [S, b] = $(1), I = ce(() => {
|
|
5107
5108
|
if (r) return 1;
|
|
5108
5109
|
const y = N.current?.offsetWidth || window.innerWidth, T = s + a, P = Math.floor(y / T);
|
|
5109
5110
|
return Math.max(1, P);
|
|
@@ -5143,7 +5144,7 @@ function Eo({
|
|
|
5143
5144
|
[r, s, a, I, W]
|
|
5144
5145
|
), H = ce(
|
|
5145
5146
|
(y) => {
|
|
5146
|
-
i && (
|
|
5147
|
+
i && (d(y), h(y), f(0), w(Date.now()), u(!0), document.body.classList.add("dragging"));
|
|
5147
5148
|
},
|
|
5148
5149
|
[i]
|
|
5149
5150
|
), se = ce(
|
|
@@ -5170,7 +5171,7 @@ function Eo({
|
|
|
5170
5171
|
const Y = Math.min(Q, e + z);
|
|
5171
5172
|
o(Y);
|
|
5172
5173
|
}
|
|
5173
|
-
|
|
5174
|
+
u(!1), f(0), document.body.classList.remove("dragging"), document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", x), y.clientX === l && v?.dispatchEvent(new PointerEvent("click"));
|
|
5174
5175
|
},
|
|
5175
5176
|
[
|
|
5176
5177
|
c,
|
|
@@ -5239,8 +5240,8 @@ function lu(e) {
|
|
|
5239
5240
|
cardGap: i = 20,
|
|
5240
5241
|
fullPageWidth: o = !1,
|
|
5241
5242
|
pagination: c = !1,
|
|
5242
|
-
enableDrag:
|
|
5243
|
-
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [
|
|
5243
|
+
enableDrag: u = !0
|
|
5244
|
+
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [d, m] = $(0), [h, A] = $(!1);
|
|
5244
5245
|
Te(() => {
|
|
5245
5246
|
A(!0);
|
|
5246
5247
|
const j = document.getElementById("ssr-dummy_" + s);
|
|
@@ -5255,12 +5256,12 @@ function lu(e) {
|
|
|
5255
5256
|
actualVisibleItems: N,
|
|
5256
5257
|
dragHandlers: S
|
|
5257
5258
|
} = Eo({
|
|
5258
|
-
currentIndex:
|
|
5259
|
+
currentIndex: d,
|
|
5259
5260
|
totalItems: l.length,
|
|
5260
5261
|
cardWidth: r,
|
|
5261
5262
|
cardGap: i,
|
|
5262
5263
|
fullPageWidth: o,
|
|
5263
|
-
enableDrag:
|
|
5264
|
+
enableDrag: u,
|
|
5264
5265
|
onIndexChange: m
|
|
5265
5266
|
}), b = ce(
|
|
5266
5267
|
(j) => {
|
|
@@ -5269,14 +5270,14 @@ function lu(e) {
|
|
|
5269
5270
|
},
|
|
5270
5271
|
[v]
|
|
5271
5272
|
), I = ce(() => {
|
|
5272
|
-
b(
|
|
5273
|
-
}, [
|
|
5274
|
-
b(
|
|
5275
|
-
}, [
|
|
5273
|
+
b(d - 1);
|
|
5274
|
+
}, [d, b]), R = ce(() => {
|
|
5275
|
+
b(d + 1);
|
|
5276
|
+
}, [d, b]);
|
|
5276
5277
|
if (!h) return;
|
|
5277
|
-
const Q = E(
|
|
5278
|
+
const Q = E(d, g), W = o ? `translateX(${Q}%)` : `translateX(${Q}px)`;
|
|
5278
5279
|
return /* @__PURE__ */ p("div", { className: `${s}- carrousel-container`, children: [
|
|
5279
|
-
|
|
5280
|
+
d > 0 && /* @__PURE__ */ n(
|
|
5280
5281
|
"button",
|
|
5281
5282
|
{
|
|
5282
5283
|
className: "visible-arrow left",
|
|
@@ -5302,7 +5303,7 @@ function lu(e) {
|
|
|
5302
5303
|
)
|
|
5303
5304
|
}
|
|
5304
5305
|
),
|
|
5305
|
-
|
|
5306
|
+
d < v && /* @__PURE__ */ n(
|
|
5306
5307
|
"button",
|
|
5307
5308
|
{
|
|
5308
5309
|
className: "visible-arrow right",
|
|
@@ -5336,7 +5337,7 @@ function lu(e) {
|
|
|
5336
5337
|
style: {
|
|
5337
5338
|
gap: i,
|
|
5338
5339
|
margin: i === 0 ? "0" : "0 0.5rem 1rem",
|
|
5339
|
-
cursor:
|
|
5340
|
+
cursor: u ? f ? "grabbing" : "grab" : "default",
|
|
5340
5341
|
justifyContent: "start !important"
|
|
5341
5342
|
},
|
|
5342
5343
|
...S,
|
|
@@ -5376,7 +5377,7 @@ function lu(e) {
|
|
|
5376
5377
|
c && /* @__PURE__ */ n("nav", { className: "carrousel-pagination", children: Array.from(
|
|
5377
5378
|
{ length: Math.ceil(l.length / N) },
|
|
5378
5379
|
(j, L) => {
|
|
5379
|
-
const H = Math.floor(
|
|
5380
|
+
const H = Math.floor(d / N) === L;
|
|
5380
5381
|
return /* @__PURE__ */ n(
|
|
5381
5382
|
"li",
|
|
5382
5383
|
{
|
|
@@ -5471,11 +5472,11 @@ const et = (e) => /* @__PURE__ */ n("div", { className: "su-flex su-flex-col sas
|
|
|
5471
5472
|
);
|
|
5472
5473
|
};
|
|
5473
5474
|
function O(e) {
|
|
5474
|
-
const { PUBLIC_SERVICE_PREFIX: t, PUBLIC_IS_SUB_PUBLICATION: s, SUB_PUBLICATION_PREFIX_IN_ROUTES: a } = q(), { block_subPublication: r } = e, i = xo(e.href), o = e.hasOwnProperty("href") && e.href ? (e.href ?? "").includes("/buscar") : !1, c = a?.tema && i,
|
|
5475
|
+
const { PUBLIC_SERVICE_PREFIX: t, PUBLIC_IS_SUB_PUBLICATION: s, SUB_PUBLICATION_PREFIX_IN_ROUTES: a } = q(), { block_subPublication: r } = e, i = xo(e.href), o = e.hasOwnProperty("href") && e.href ? (e.href ?? "").includes("/buscar") : !1, c = a?.tema && i, u = a?.buscar && o, l = !r && !c && !u && t !== "false" && s !== "false" ? "/" + t : "", d = /^(https?:)?\/\//.test(e.href) || /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e.href), m = e.href?.split("/")[1] === l.replace("/", ""), h = {
|
|
5475
5476
|
...e,
|
|
5476
|
-
href: (!
|
|
5477
|
+
href: (!d && !m ? l : "") + (l && e.href === "/" ? "" : e.href ?? "")
|
|
5477
5478
|
};
|
|
5478
|
-
return
|
|
5479
|
+
return d ? /* @__PURE__ */ n(
|
|
5479
5480
|
"a",
|
|
5480
5481
|
{
|
|
5481
5482
|
target: h.target ?? "_blank",
|
|
@@ -5486,8 +5487,8 @@ function O(e) {
|
|
|
5486
5487
|
) : /* @__PURE__ */ n("a", { ...h, children: e.children });
|
|
5487
5488
|
}
|
|
5488
5489
|
const xo = (e) => !!/([t][0-9]{4})\w+/.exec(e || ""), oe = (e) => {
|
|
5489
|
-
const { PUBLIC_ASSETS_URL: t, PUBLIC_ENV: s, PUBLIC_SERVICE_PREFIX: a, PUBLIC_IS_SUB_PUBLICATION: r } = q(), i = a && a !== "false" ? a : "", c = r && r !== "false" && i && s === "local" ? `/${i}` : "",
|
|
5490
|
-
return (
|
|
5490
|
+
const { PUBLIC_ASSETS_URL: t, PUBLIC_ENV: s, PUBLIC_SERVICE_PREFIX: a, PUBLIC_IS_SUB_PUBLICATION: r } = q(), i = a && a !== "false" ? a : "", c = r && r !== "false" && i && s === "local" ? `/${i}` : "", u = t;
|
|
5491
|
+
return (u && u !== "false" ? u : "") + c + "/versions/images" + e;
|
|
5491
5492
|
}, Ns = (e) => {
|
|
5492
5493
|
const { PUBLIC_ENV: t } = q(), s = oe("/whatsapp-black.svg");
|
|
5493
5494
|
return t !== "" && !e.forceSVG ? /* @__PURE__ */ n("img", { fetchPriority: "low", loading: "lazy", src: s, alt: "", ...e }) : /* @__PURE__ */ n(
|
|
@@ -5648,7 +5649,7 @@ const Qe = (e) => {
|
|
|
5648
5649
|
paths: i,
|
|
5649
5650
|
newsDescriptionSectionTag: o = "h3",
|
|
5650
5651
|
speculationPrerenderClass: c
|
|
5651
|
-
} = e, { SHOW_TAG_BY_SECTION:
|
|
5652
|
+
} = e, { SHOW_TAG_BY_SECTION: u, SUB_PUBLICATION_PREFIX_IN_ROUTES: l } = q(), d = () => {
|
|
5652
5653
|
if (e?.config?.showtime && e.config?.showauthor)
|
|
5653
5654
|
return `${e?.authors[0]?.fullname ?? "Redacción"} - ${Ue(
|
|
5654
5655
|
e.info?.date?.modified
|
|
@@ -5674,7 +5675,7 @@ const Qe = (e) => {
|
|
|
5674
5675
|
}
|
|
5675
5676
|
);
|
|
5676
5677
|
}, h = () => e.main.uppertitle ? /* @__PURE__ */ n("p", { className: "sass-com-nd-uppertitle", title: e.main.uppertitle, children: e.main.uppertitle }) : null, A = () => {
|
|
5677
|
-
if (
|
|
5678
|
+
if (u && a?.tags?.length && a.tags.length > 0) {
|
|
5678
5679
|
const f = a.tags[0], g = f.name;
|
|
5679
5680
|
return le.createElement(
|
|
5680
5681
|
o,
|
|
@@ -5749,12 +5750,12 @@ const Qe = (e) => {
|
|
|
5749
5750
|
O,
|
|
5750
5751
|
{
|
|
5751
5752
|
block_subPublication: l?.autor,
|
|
5752
|
-
"aria-label":
|
|
5753
|
+
"aria-label": d(),
|
|
5753
5754
|
className: "sass-com-nd-correspondentLink",
|
|
5754
5755
|
href: `/${e?.paths?.autor}/${e?.authors[0]?.name}`,
|
|
5755
|
-
children:
|
|
5756
|
+
children: d()
|
|
5756
5757
|
}
|
|
5757
|
-
) }) : /* @__PURE__ */ n("h3", { className: "sass-com-nd-correspondent", children:
|
|
5758
|
+
) }) : /* @__PURE__ */ n("h3", { className: "sass-com-nd-correspondent", children: d() }) })
|
|
5758
5759
|
] });
|
|
5759
5760
|
}, ma = (e) => /* @__PURE__ */ p(
|
|
5760
5761
|
"svg",
|
|
@@ -5880,14 +5881,14 @@ const Po = (e) => {
|
|
|
5880
5881
|
isVideo: s = !1,
|
|
5881
5882
|
hasShadow: a = !1,
|
|
5882
5883
|
priorityHigh: r = !1
|
|
5883
|
-
} = e, i = fa(), [o, c] = $(void 0),
|
|
5884
|
+
} = e, i = fa(), [o, c] = $(void 0), u = t?.sizes;
|
|
5884
5885
|
return Te(() => {
|
|
5885
5886
|
(async () => {
|
|
5886
|
-
|
|
5887
|
-
`/api/image-proxy?url=${encodeURIComponent(
|
|
5888
|
-
) : c(
|
|
5887
|
+
u?.[0]?.url ? c(
|
|
5888
|
+
`/api/image-proxy?url=${encodeURIComponent(u[0].url)}`
|
|
5889
|
+
) : c(u?.[0]?.url);
|
|
5889
5890
|
})();
|
|
5890
|
-
}, [
|
|
5891
|
+
}, [u, t, e.cookies]), u && o && o !== "invalidURL" ? /* @__PURE__ */ n("figure", { className: "sass-com-img-figure", children: /* @__PURE__ */ p("span", { className: "sass-com-img-backdrop", children: [
|
|
5891
5892
|
/* @__PURE__ */ n("span", { className: "sass-com-img-backdropAux" }),
|
|
5892
5893
|
/* @__PURE__ */ p("picture", { children: [
|
|
5893
5894
|
/* @__PURE__ */ n(
|
|
@@ -7156,10 +7157,10 @@ const Po = (e) => {
|
|
|
7156
7157
|
"path",
|
|
7157
7158
|
{
|
|
7158
7159
|
fill: "currentColor",
|
|
7159
|
-
d: `M25.7,9.4h-9.1v2.4h9.1c-0.1,0,0.1,0,0.1-0.1V9.5C25.9,9.4,25.9,9.4,25.7,9.4L25.7,9.4z M8.4,9.6
|
|
7160
|
-
c-3,0-5.6,2.5-5.6,5.6c0,3,2.5,5.4,5.7,5.4s5.4-2.4,5.4-5.4c0-0.4,0-0.7-0.1-1.1H8.5v2.1h3c-0.3,1.3-1.5,2.1-3,2.1
|
|
7161
|
-
c-1.9-0.1-3.4-1.7-3.2-3.4c0-1.9,1.5-3.2,3.2-3.2c0.8,0,1.5,0.3,2.1,0.9l1.5-1.5C11,10.2,9.7,9.6,8.4,9.6L8.4,9.6z M27,13.7H16.5
|
|
7162
|
-
v2.4H27c0,0,0.1,0,0.1-0.1v-2.1C27.2,13.7,27.2,13.7,27,13.7L27,13.7z M25.7,18.2h-9.1v2.4h9.1c-0.1,0,0.1-0.1,0.1-0.1v-2.1
|
|
7160
|
+
d: `M25.7,9.4h-9.1v2.4h9.1c-0.1,0,0.1,0,0.1-0.1V9.5C25.9,9.4,25.9,9.4,25.7,9.4L25.7,9.4z M8.4,9.6
|
|
7161
|
+
c-3,0-5.6,2.5-5.6,5.6c0,3,2.5,5.4,5.7,5.4s5.4-2.4,5.4-5.4c0-0.4,0-0.7-0.1-1.1H8.5v2.1h3c-0.3,1.3-1.5,2.1-3,2.1
|
|
7162
|
+
c-1.9-0.1-3.4-1.7-3.2-3.4c0-1.9,1.5-3.2,3.2-3.2c0.8,0,1.5,0.3,2.1,0.9l1.5-1.5C11,10.2,9.7,9.6,8.4,9.6L8.4,9.6z M27,13.7H16.5
|
|
7163
|
+
v2.4H27c0,0,0.1,0,0.1-0.1v-2.1C27.2,13.7,27.2,13.7,27,13.7L27,13.7z M25.7,18.2h-9.1v2.4h9.1c-0.1,0,0.1-0.1,0.1-0.1v-2.1
|
|
7163
7164
|
C25.9,18.2,25.9,18.2,25.7,18.2L25.7,18.2z`
|
|
7164
7165
|
}
|
|
7165
7166
|
) })
|
|
@@ -7251,13 +7252,13 @@ const Po = (e) => {
|
|
|
7251
7252
|
"path",
|
|
7252
7253
|
{
|
|
7253
7254
|
fill: "currentColor",
|
|
7254
|
-
d: `M12.6,24.9c-1.1,0-2.1-0.3-3.1-0.8c-1.7-0.9-2.8-2.5-3.2-4.3c-0.7-3.3,1.4-6.7,4.7-7.4
|
|
7255
|
-
c0.8-0.2,1.5-0.2,2.2-0.1c0.1,0,0.1,0,0.2,0l0.5,0.1l0.1,0.5v3.8l-0.8-0.2c-0.1,0-0.2,0-0.3-0.1c-1.2-0.2-2.3,0.6-2.5,1.8
|
|
7256
|
-
c-0.2,1.2,0.6,2.3,1.8,2.5c0.6,0.1,1.2,0,1.7-0.4c0.5-0.4,0.8-1,0.8-1.6c0-0.7,0-1.3,0-2l0-0.7l0-10.8h4.1L19,5.9
|
|
7257
|
-
c0,0.2,0,0.4,0.1,0.6c0.4,1.8,2,3.2,3.9,3.3c0.5,0,0.8,0.3,0.8,0.8c0,0.6,0,1.3,0,1.9v1.5l-0.6,0c-1.5,0-2.9-0.4-4.1-1.1l0,5.6
|
|
7258
|
-
c0,2.7-1.6,5-4,6C14.2,24.7,13.4,24.9,12.6,24.9z M12.7,13.4c-0.4,0-0.9,0.1-1.3,0.2c-2.7,0.6-4.4,3.4-3.9,6.1
|
|
7259
|
-
c0.3,1.5,1.3,2.8,2.6,3.5c1.4,0.7,3,0.8,4.5,0.3c2-0.8,3.3-2.7,3.3-4.9l0-7.8l0.9,0.7c1.2,0.9,2.4,1.3,3.8,1.5v-0.3
|
|
7260
|
-
c0-0.5,0-1.1,0-1.6C20.4,10.7,18.5,9,18,6.7c0-0.2-0.1-0.3-0.1-0.5H16l0,10.4c0,0.7,0,1.4,0,2.1c0,0.9-0.5,1.8-1.2,2.4
|
|
7255
|
+
d: `M12.6,24.9c-1.1,0-2.1-0.3-3.1-0.8c-1.7-0.9-2.8-2.5-3.2-4.3c-0.7-3.3,1.4-6.7,4.7-7.4
|
|
7256
|
+
c0.8-0.2,1.5-0.2,2.2-0.1c0.1,0,0.1,0,0.2,0l0.5,0.1l0.1,0.5v3.8l-0.8-0.2c-0.1,0-0.2,0-0.3-0.1c-1.2-0.2-2.3,0.6-2.5,1.8
|
|
7257
|
+
c-0.2,1.2,0.6,2.3,1.8,2.5c0.6,0.1,1.2,0,1.7-0.4c0.5-0.4,0.8-1,0.8-1.6c0-0.7,0-1.3,0-2l0-0.7l0-10.8h4.1L19,5.9
|
|
7258
|
+
c0,0.2,0,0.4,0.1,0.6c0.4,1.8,2,3.2,3.9,3.3c0.5,0,0.8,0.3,0.8,0.8c0,0.6,0,1.3,0,1.9v1.5l-0.6,0c-1.5,0-2.9-0.4-4.1-1.1l0,5.6
|
|
7259
|
+
c0,2.7-1.6,5-4,6C14.2,24.7,13.4,24.9,12.6,24.9z M12.7,13.4c-0.4,0-0.9,0.1-1.3,0.2c-2.7,0.6-4.4,3.4-3.9,6.1
|
|
7260
|
+
c0.3,1.5,1.3,2.8,2.6,3.5c1.4,0.7,3,0.8,4.5,0.3c2-0.8,3.3-2.7,3.3-4.9l0-7.8l0.9,0.7c1.2,0.9,2.4,1.3,3.8,1.5v-0.3
|
|
7261
|
+
c0-0.5,0-1.1,0-1.6C20.4,10.7,18.5,9,18,6.7c0-0.2-0.1-0.3-0.1-0.5H16l0,10.4c0,0.7,0,1.4,0,2.1c0,0.9-0.5,1.8-1.2,2.4
|
|
7261
7262
|
C14,21.8,13,22,12,21.8c-1.8-0.4-3-2-2.7-3.9c0.3-1.7,1.8-2.9,3.6-2.7v-1.9C12.9,13.4,12.8,13.4,12.7,13.4z`
|
|
7262
7263
|
}
|
|
7263
7264
|
) })
|
|
@@ -7283,13 +7284,13 @@ const Po = (e) => {
|
|
|
7283
7284
|
"path",
|
|
7284
7285
|
{
|
|
7285
7286
|
fill: "currentColor",
|
|
7286
|
-
d: `M21.7,8.3c-1.8-1.8-4.2-2.8-6.7-2.8c-5.2,0-9.5,4.2-9.5,9.4c0,1.7,0.4,3.3,1.3,4.7l-1.3,4.9l5-1.3
|
|
7287
|
-
c1.4,0.7,2.9,1.1,4.5,1.1h0c5.2,0,9.5-4.2,9.5-9.4C24.5,12.4,23.5,10,21.7,8.3 M15,22.7L15,22.7c-1.4,0-2.8-0.4-4-1.1l-0.3-0.2
|
|
7288
|
-
l-3,0.8l0.8-2.9l-0.2-0.3c-0.8-1.2-1.2-2.7-1.2-4.2c0-4.3,3.5-7.8,7.9-7.8c2.1,0,4.1,0.8,5.6,2.3c1.5,1.5,2.3,3.4,2.3,5.5
|
|
7289
|
-
C22.9,19.2,19.4,22.7,15,22.7z M19.4,16.9c-0.2-0.1-1.4-0.7-1.6-0.8c-0.2-0.1-0.4-0.1-0.5,0.1c-0.2,0.2-0.6,0.8-0.7,0.9
|
|
7290
|
-
c-0.1,0.2-0.3,0.2-0.5,0.1c-0.2-0.1-1-0.4-1.9-1.2c-0.7-0.6-1.2-1.4-1.3-1.6c-0.1-0.2,0-0.4,0.1-0.5c0.1-0.1,0.2-0.3,0.4-0.4
|
|
7291
|
-
c0.1-0.1,0.2-0.2,0.2-0.4c0.1-0.2,0-0.3,0-0.4c-0.1-0.1-0.5-1.3-0.7-1.7c-0.2-0.5-0.4-0.4-0.5-0.4c-0.1,0-0.3,0-0.5,0
|
|
7292
|
-
c-0.2,0-0.4,0.1-0.6,0.3c-0.2,0.2-0.8,0.8-0.8,2c0,1.2,0.8,2.3,1,2.4c0.1,0.2,1.7,2.5,4,3.6c0.6,0.2,1,0.4,1.3,0.5
|
|
7287
|
+
d: `M21.7,8.3c-1.8-1.8-4.2-2.8-6.7-2.8c-5.2,0-9.5,4.2-9.5,9.4c0,1.7,0.4,3.3,1.3,4.7l-1.3,4.9l5-1.3
|
|
7288
|
+
c1.4,0.7,2.9,1.1,4.5,1.1h0c5.2,0,9.5-4.2,9.5-9.4C24.5,12.4,23.5,10,21.7,8.3 M15,22.7L15,22.7c-1.4,0-2.8-0.4-4-1.1l-0.3-0.2
|
|
7289
|
+
l-3,0.8l0.8-2.9l-0.2-0.3c-0.8-1.2-1.2-2.7-1.2-4.2c0-4.3,3.5-7.8,7.9-7.8c2.1,0,4.1,0.8,5.6,2.3c1.5,1.5,2.3,3.4,2.3,5.5
|
|
7290
|
+
C22.9,19.2,19.4,22.7,15,22.7z M19.4,16.9c-0.2-0.1-1.4-0.7-1.6-0.8c-0.2-0.1-0.4-0.1-0.5,0.1c-0.2,0.2-0.6,0.8-0.7,0.9
|
|
7291
|
+
c-0.1,0.2-0.3,0.2-0.5,0.1c-0.2-0.1-1-0.4-1.9-1.2c-0.7-0.6-1.2-1.4-1.3-1.6c-0.1-0.2,0-0.4,0.1-0.5c0.1-0.1,0.2-0.3,0.4-0.4
|
|
7292
|
+
c0.1-0.1,0.2-0.2,0.2-0.4c0.1-0.2,0-0.3,0-0.4c-0.1-0.1-0.5-1.3-0.7-1.7c-0.2-0.5-0.4-0.4-0.5-0.4c-0.1,0-0.3,0-0.5,0
|
|
7293
|
+
c-0.2,0-0.4,0.1-0.6,0.3c-0.2,0.2-0.8,0.8-0.8,2c0,1.2,0.8,2.3,1,2.4c0.1,0.2,1.7,2.5,4,3.6c0.6,0.2,1,0.4,1.3,0.5
|
|
7293
7294
|
c0.6,0.2,1.1,0.2,1.5,0.1c0.5-0.1,1.4-0.6,1.6-1.1c0.2-0.5,0.2-1,0.1-1.1C19.7,17.1,19.6,17,19.4,16.9`
|
|
7294
7295
|
}
|
|
7295
7296
|
) }) })
|
|
@@ -7319,9 +7320,9 @@ const Po = (e) => {
|
|
|
7319
7320
|
"path",
|
|
7320
7321
|
{
|
|
7321
7322
|
fill: "currentColor",
|
|
7322
|
-
d: `M15,23.9c-0.7,0-7.3,0-9.2-0.6C4.6,23,3.7,22,3.2,20.8c-0.4-2-0.4-5.6-0.4-5.8c0-0.2,0-3.8,0.6-5.8C3.7,7.9,4.7,7,5.9,6.5c1.9-0.4,8.9-0.4,9.2-0.4c0.7,0,7.3,0,9.2,0.6C25.5,7,26.4,8,26.9,9.2c0,0,0,0,0,0.1c0.5,1.9,0.3,5.7,0.3,5.9
|
|
7323
|
-
c0,0.1,0,3.8-0.4,5.7c-0.4,1.3-1.3,2.2-2.6,2.6C22.2,23.9,15.3,23.9,15,23.9z M15.1,7.6c-2,0-7.4,0.1-8.8,0.4C6,8.1,5.1,8.5,4.8,9.5c-0.5,1.8-0.5,5.4-0.5,5.4s0,3.6,0.4,5.4c0.1,0.3,0.5,1.2,1.6,1.5c1.4,0.4,6.8,0.5,8.7,0.5c2,0,7.4-0.1,8.8-0.4
|
|
7324
|
-
c0.3-0.1,1.2-0.5,1.5-1.6c0.4-1.6,0.4-5.3,0.4-5.3c0-0.1,0.2-3.7-0.2-5.4c-0.1-0.4-0.5-1.3-1.6-1.6C22.5,7.7,17.1,7.6,15.1,7.6zM12.8,19.2c-0.1,0-0.3,0-0.4-0.1c-0.2-0.1-0.4-0.4-0.4-0.7v-6.9c0-0.3,0.1-0.5,0.4-0.6c0.2-0.1,0.5-0.1,0.7,0l5.9,3.4
|
|
7323
|
+
d: `M15,23.9c-0.7,0-7.3,0-9.2-0.6C4.6,23,3.7,22,3.2,20.8c-0.4-2-0.4-5.6-0.4-5.8c0-0.2,0-3.8,0.6-5.8C3.7,7.9,4.7,7,5.9,6.5c1.9-0.4,8.9-0.4,9.2-0.4c0.7,0,7.3,0,9.2,0.6C25.5,7,26.4,8,26.9,9.2c0,0,0,0,0,0.1c0.5,1.9,0.3,5.7,0.3,5.9
|
|
7324
|
+
c0,0.1,0,3.8-0.4,5.7c-0.4,1.3-1.3,2.2-2.6,2.6C22.2,23.9,15.3,23.9,15,23.9z M15.1,7.6c-2,0-7.4,0.1-8.8,0.4C6,8.1,5.1,8.5,4.8,9.5c-0.5,1.8-0.5,5.4-0.5,5.4s0,3.6,0.4,5.4c0.1,0.3,0.5,1.2,1.6,1.5c1.4,0.4,6.8,0.5,8.7,0.5c2,0,7.4-0.1,8.8-0.4
|
|
7325
|
+
c0.3-0.1,1.2-0.5,1.5-1.6c0.4-1.6,0.4-5.3,0.4-5.3c0-0.1,0.2-3.7-0.2-5.4c-0.1-0.4-0.5-1.3-1.6-1.6C22.5,7.7,17.1,7.6,15.1,7.6zM12.8,19.2c-0.1,0-0.3,0-0.4-0.1c-0.2-0.1-0.4-0.4-0.4-0.7v-6.9c0-0.3,0.1-0.5,0.4-0.6c0.2-0.1,0.5-0.1,0.7,0l5.9,3.4
|
|
7325
7326
|
c0.2,0.1,0.4,0.4,0.4,0.6c0,0.3-0.1,0.5-0.4,0.7l-5.9,3.5C13.1,19.1,12.9,19.2,12.8,19.2z M13.6,12.9v4.3l3.7-2.2L13.6,12.9z`
|
|
7326
7327
|
}
|
|
7327
7328
|
),
|
|
@@ -7655,12 +7656,12 @@ const hu = (e) => {
|
|
|
7655
7656
|
] })
|
|
7656
7657
|
] }) }) });
|
|
7657
7658
|
}, pn = (e) => {
|
|
7658
|
-
const { currentPage: t, showNext: s, maxPages: a, pathname: r, query: i, block_subPublication: o } = e, c = (
|
|
7659
|
+
const { currentPage: t, showNext: s, maxPages: a, pathname: r, query: i, block_subPublication: o } = e, c = (u, l, d) => {
|
|
7659
7660
|
let m = "";
|
|
7660
7661
|
const h = l.split("/");
|
|
7661
7662
|
return h.indexOf("page") !== -1 && h.splice(m.indexOf("page") - 1, h.length - 1), h.forEach((A, f) => {
|
|
7662
7663
|
f !== 0 && (m += `/${A}`);
|
|
7663
|
-
}),
|
|
7664
|
+
}), u === "next" ? m += `/page/${t + 1}${d ? `?query=${d}` : ""}` : m += `/page/${t - 1}${d ? `?query=${d}` : ""}`;
|
|
7664
7665
|
};
|
|
7665
7666
|
return (t > 1 || s && t < a) && /* @__PURE__ */ p("section", { className: "sass-com-np-content", children: [
|
|
7666
7667
|
t > 1 && /* @__PURE__ */ n(
|
|
@@ -7703,9 +7704,9 @@ const hu = (e) => {
|
|
|
7703
7704
|
share: i,
|
|
7704
7705
|
isVideo: o,
|
|
7705
7706
|
config: c,
|
|
7706
|
-
overImage:
|
|
7707
|
+
overImage: u = "default",
|
|
7707
7708
|
isTitle: l,
|
|
7708
|
-
priorityHigh:
|
|
7709
|
+
priorityHigh: d = !1,
|
|
7709
7710
|
isLarge: m,
|
|
7710
7711
|
paths: h,
|
|
7711
7712
|
keywords: A,
|
|
@@ -7733,7 +7734,7 @@ const hu = (e) => {
|
|
|
7733
7734
|
preview: r,
|
|
7734
7735
|
isVideo: o,
|
|
7735
7736
|
isLarge: m,
|
|
7736
|
-
priorityHigh:
|
|
7737
|
+
priorityHigh: d
|
|
7737
7738
|
}
|
|
7738
7739
|
)
|
|
7739
7740
|
}
|
|
@@ -7747,7 +7748,7 @@ const hu = (e) => {
|
|
|
7747
7748
|
preview: r,
|
|
7748
7749
|
share: i,
|
|
7749
7750
|
config: c,
|
|
7750
|
-
overImage:
|
|
7751
|
+
overImage: u,
|
|
7751
7752
|
isTitle: l,
|
|
7752
7753
|
paths: h,
|
|
7753
7754
|
keywords: A
|
|
@@ -7763,19 +7764,19 @@ const hu = (e) => {
|
|
|
7763
7764
|
main: a,
|
|
7764
7765
|
overImage: r = "default",
|
|
7765
7766
|
titleGradient: i = !1
|
|
7766
|
-
} = e, { SHOW_TAG_BY_SECTION: o, SUB_PUBLICATION_PREFIX_IN_ROUTES: c } = q(),
|
|
7767
|
+
} = e, { SHOW_TAG_BY_SECTION: o, SUB_PUBLICATION_PREFIX_IN_ROUTES: c } = q(), u = () => {
|
|
7767
7768
|
if (o && e.keywords?.tags?.length && e.keywords.tags.length > 0) {
|
|
7768
|
-
const l = e.keywords.tags[0],
|
|
7769
|
+
const l = e.keywords.tags[0], d = l.name;
|
|
7769
7770
|
return l.approved ? /* @__PURE__ */ n("h3", { children: /* @__PURE__ */ n(
|
|
7770
7771
|
O,
|
|
7771
7772
|
{
|
|
7772
|
-
"aria-label":
|
|
7773
|
+
"aria-label": d,
|
|
7773
7774
|
block_subPublication: c?.tema,
|
|
7774
7775
|
className: "sass-com-sc2-sectionDescription",
|
|
7775
7776
|
href: De(l, e.paths),
|
|
7776
|
-
children:
|
|
7777
|
+
children: d
|
|
7777
7778
|
}
|
|
7778
|
-
) }) : /* @__PURE__ */ n("div", { className: "sass-com-sc2-sectionDescription", children:
|
|
7779
|
+
) }) : /* @__PURE__ */ n("div", { className: "sass-com-sc2-sectionDescription", children: d });
|
|
7779
7780
|
} else if (e.info?.section?.url)
|
|
7780
7781
|
return /* @__PURE__ */ n("h3", { children: /* @__PURE__ */ n(
|
|
7781
7782
|
O,
|
|
@@ -7811,7 +7812,7 @@ const hu = (e) => {
|
|
|
7811
7812
|
top: r !== "default" ? "-1rem" : ""
|
|
7812
7813
|
},
|
|
7813
7814
|
children: [
|
|
7814
|
-
/* @__PURE__ */ n(
|
|
7815
|
+
/* @__PURE__ */ n(u, {}),
|
|
7815
7816
|
/* @__PURE__ */ n("h2", { className: "sass-com-sc2-articule", children: /* @__PURE__ */ n(
|
|
7816
7817
|
O,
|
|
7817
7818
|
{
|
|
@@ -7921,8 +7922,8 @@ const hu = (e) => {
|
|
|
7921
7922
|
strokeLinecap: "round",
|
|
7922
7923
|
strokeLinejoin: "round",
|
|
7923
7924
|
strokeMiterlimit: "10",
|
|
7924
|
-
d: `M10.2,8.3c0,1.1-0.9,2.1-2.2,2.1l0,0c-1.3,0-2.1-0.9-2.1-2.1c0-1.1,0.9-2.1,2.2-2.1C9.4,6.3,10.2,7.1,10.2,8.3z M6.1,23.7H10V11.9
|
|
7925
|
-
H6.1V23.7z M19.6,11.7c-2.1,0-3.5,2-3.5,2v-1.7h-3.9v11.8H16v-6.6c0-0.3,0-0.7,0.1-0.9c0.3-0.7,0.9-1.4,2-1.4c1.4,0,2,1.1,2,2.7v6.3
|
|
7925
|
+
d: `M10.2,8.3c0,1.1-0.9,2.1-2.2,2.1l0,0c-1.3,0-2.1-0.9-2.1-2.1c0-1.1,0.9-2.1,2.2-2.1C9.4,6.3,10.2,7.1,10.2,8.3z M6.1,23.7H10V11.9
|
|
7926
|
+
H6.1V23.7z M19.6,11.7c-2.1,0-3.5,2-3.5,2v-1.7h-3.9v11.8H16v-6.6c0-0.3,0-0.7,0.1-0.9c0.3-0.7,0.9-1.4,2-1.4c1.4,0,2,1.1,2,2.7v6.3
|
|
7926
7927
|
h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`
|
|
7927
7928
|
}
|
|
7928
7929
|
)
|
|
@@ -7934,7 +7935,7 @@ const hu = (e) => {
|
|
|
7934
7935
|
const t = e.trim();
|
|
7935
7936
|
return t.startsWith("http://") || t.startsWith("https://") ? t : `https://${t}`;
|
|
7936
7937
|
}, Jo = (e) => !e || e.trim() === "" ? !1 : /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()), bu = async (e) => {
|
|
7937
|
-
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 ?? "",
|
|
7938
|
+
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 ?? "", u = t?.addtional?.USER_SHOWEMAIL ?? !1, l = t?.addtional?.USER_SHOWBIO ?? !1, d = t?.addtional?.USER_MIBIO ?? "", m = ht(t?.addtional?.USER_USERFB ?? ""), h = ht(t?.addtional?.USER_USERIG ?? ""), A = ht(t?.addtional?.USER_USERTWT ?? ""), f = ht(t?.addtional?.USER_USERLIN ?? ""), g = () => !u || !c || c.trim() === "" ? !1 : Jo(c), w = (v) => `mailto:${v.trim()}`;
|
|
7938
7939
|
return /* @__PURE__ */ n(
|
|
7939
7940
|
"section",
|
|
7940
7941
|
{
|
|
@@ -7967,7 +7968,7 @@ const hu = (e) => {
|
|
|
7967
7968
|
children: c
|
|
7968
7969
|
}
|
|
7969
7970
|
),
|
|
7970
|
-
l && /* @__PURE__ */ n("p", { className: "sass-com-ah1-description", children:
|
|
7971
|
+
l && /* @__PURE__ */ n("p", { className: "sass-com-ah1-description", children: d }),
|
|
7971
7972
|
/* @__PURE__ */ p("div", { className: "sass-com-ah1-social", children: [
|
|
7972
7973
|
m && /* @__PURE__ */ n(
|
|
7973
7974
|
"a",
|
|
@@ -8014,7 +8015,7 @@ const hu = (e) => {
|
|
|
8014
8015
|
}
|
|
8015
8016
|
);
|
|
8016
8017
|
}, vu = async (e) => {
|
|
8017
|
-
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 ?? "",
|
|
8018
|
+
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 ?? "", u = t?.addtional?.USER_SHOWEMAIL ?? !1, l = t?.addtional?.USER_SHOWBIO ?? !1, d = t?.addtional?.USER_MIBIO ?? "", m = t?.addtional?.USER_USERFB ?? "", h = t?.addtional?.USER_USERIG ?? "", A = t?.addtional?.USER_USERTWT ?? "", f = t?.addtional?.USER_USERLIN ?? "";
|
|
8018
8019
|
return /* @__PURE__ */ n(
|
|
8019
8020
|
"section",
|
|
8020
8021
|
{
|
|
@@ -8039,8 +8040,8 @@ const hu = (e) => {
|
|
|
8039
8040
|
className: "sass-com-ah2-contentAuthor su-stack-center su-md:items-start",
|
|
8040
8041
|
children: [
|
|
8041
8042
|
/* @__PURE__ */ n("h1", { className: "sass-com-ah2-name", children: o }),
|
|
8042
|
-
|
|
8043
|
-
l && /* @__PURE__ */ n("p", { className: "sass-com-ah2-description", children:
|
|
8043
|
+
u && /* @__PURE__ */ n("p", { className: "sass-com-ah2-email", children: c }),
|
|
8044
|
+
l && /* @__PURE__ */ n("p", { className: "sass-com-ah2-description", children: d }),
|
|
8044
8045
|
/* @__PURE__ */ p(
|
|
8045
8046
|
"div",
|
|
8046
8047
|
{
|
|
@@ -8399,7 +8400,7 @@ const hu = (e) => {
|
|
|
8399
8400
|
searchLink: i,
|
|
8400
8401
|
custom_styles: o = {}
|
|
8401
8402
|
}) => {
|
|
8402
|
-
const { PUBLIC_SERVICE_PREFIX: c, PUBLIC_IS_SUB_PUBLICATION:
|
|
8403
|
+
const { PUBLIC_SERVICE_PREFIX: c, PUBLIC_IS_SUB_PUBLICATION: u, SUB_PUBLICATION_PREFIX_IN_ROUTES: l } = q(), d = l?.buscar && c !== "false" && u !== "false" ? `/${c}` : "";
|
|
8403
8404
|
return /* @__PURE__ */ p(
|
|
8404
8405
|
"aside",
|
|
8405
8406
|
{
|
|
@@ -8413,7 +8414,7 @@ const hu = (e) => {
|
|
|
8413
8414
|
/* @__PURE__ */ n(
|
|
8414
8415
|
ec,
|
|
8415
8416
|
{
|
|
8416
|
-
action: `${
|
|
8417
|
+
action: `${d}${i || "/buscar"}`,
|
|
8417
8418
|
placeholder: `${r}...`
|
|
8418
8419
|
}
|
|
8419
8420
|
),
|
|
@@ -8837,23 +8838,23 @@ const hu = (e) => {
|
|
|
8837
8838
|
) : /* @__PURE__ */ n("div", { className: "sass-com-ts-chipStyled", children: s.name }, a))
|
|
8838
8839
|
] }) });
|
|
8839
8840
|
}, cc = async (e) => {
|
|
8840
|
-
const { autor: t } = e, { SUB_PUBLICATION_PREFIX_IN_ROUTES: s } = q(),
|
|
8841
|
-
return
|
|
8841
|
+
const { autor: t } = e, { SUB_PUBLICATION_PREFIX_IN_ROUTES: s, PUBLIC_SERVICE_PREFIX: a } = q(), r = t?.addtional?.USER_SHOWBIO ?? !1, i = t?.info?.name ?? "", o = t?.info?.fullname ?? "", c = t?.info?.image?.sizes?.[0]?.url ?? "", u = t?.addtional?.USER_MIBIO ?? "", l = t?.addtional?.USER_USERFB ?? "", d = t?.addtional?.USER_USERIG ?? "", m = t?.addtional?.USER_USERTWT ?? "", h = t?.addtional?.USER_USERLIN ?? "", A = a ? `/${a}/${e.paths.autor}/${i}` : `/${e.paths.autor}/${i}`;
|
|
8842
|
+
return r && !!t && /* @__PURE__ */ n("section", { className: "sass-com-ja2-contentBox", children: /* @__PURE__ */ p("div", { className: "sass-com-ja2-content", children: [
|
|
8842
8843
|
/* @__PURE__ */ p("div", { className: "sass-com-ja2-avatarContent", children: [
|
|
8843
8844
|
/* @__PURE__ */ n(
|
|
8844
8845
|
O,
|
|
8845
8846
|
{
|
|
8846
8847
|
block_subPublication: s?.autor,
|
|
8847
8848
|
className: "sass-com-ja2-journalistInfo su-no-underline",
|
|
8848
|
-
href:
|
|
8849
|
-
children:
|
|
8849
|
+
href: A,
|
|
8850
|
+
children: c ? /* @__PURE__ */ n(
|
|
8850
8851
|
"img",
|
|
8851
8852
|
{
|
|
8852
8853
|
fetchPriority: "low",
|
|
8853
8854
|
loading: "lazy",
|
|
8854
|
-
alt: "Imagen de perfil de " +
|
|
8855
|
+
alt: "Imagen de perfil de " + i,
|
|
8855
8856
|
className: "sass-com-ja2-imageStyled",
|
|
8856
|
-
src: await ue(
|
|
8857
|
+
src: await ue(c)
|
|
8857
8858
|
}
|
|
8858
8859
|
) : /* @__PURE__ */ n("div", { className: "sass-com-ja2-contentIconStyled", children: e.autorIcon })
|
|
8859
8860
|
}
|
|
@@ -8864,17 +8865,17 @@ const hu = (e) => {
|
|
|
8864
8865
|
{
|
|
8865
8866
|
block_subPublication: s?.autor,
|
|
8866
8867
|
className: "su-no-underline",
|
|
8867
|
-
href:
|
|
8868
|
-
children:
|
|
8868
|
+
href: A,
|
|
8869
|
+
children: o
|
|
8869
8870
|
}
|
|
8870
8871
|
) }),
|
|
8871
8872
|
/* @__PURE__ */ p("section", { className: "sass-com-ja2-socialNetworkSection", children: [
|
|
8872
|
-
|
|
8873
|
+
l && /* @__PURE__ */ n(
|
|
8873
8874
|
"a",
|
|
8874
8875
|
{
|
|
8875
|
-
href:
|
|
8876
|
+
href: l,
|
|
8876
8877
|
target: "_blank",
|
|
8877
|
-
"aria-label":
|
|
8878
|
+
"aria-label": u,
|
|
8878
8879
|
rel: "noreferrer",
|
|
8879
8880
|
children: /* @__PURE__ */ n(
|
|
8880
8881
|
"svg",
|
|
@@ -8896,12 +8897,12 @@ const hu = (e) => {
|
|
|
8896
8897
|
)
|
|
8897
8898
|
}
|
|
8898
8899
|
),
|
|
8899
|
-
|
|
8900
|
+
d && /* @__PURE__ */ n(
|
|
8900
8901
|
"a",
|
|
8901
8902
|
{
|
|
8902
|
-
href:
|
|
8903
|
+
href: d,
|
|
8903
8904
|
target: "_blank",
|
|
8904
|
-
"aria-label":
|
|
8905
|
+
"aria-label": u,
|
|
8905
8906
|
rel: "noreferrer",
|
|
8906
8907
|
children: /* @__PURE__ */ p(
|
|
8907
8908
|
"svg",
|
|
@@ -8949,12 +8950,12 @@ const hu = (e) => {
|
|
|
8949
8950
|
)
|
|
8950
8951
|
}
|
|
8951
8952
|
),
|
|
8952
|
-
|
|
8953
|
+
m && /* @__PURE__ */ n(
|
|
8953
8954
|
"a",
|
|
8954
8955
|
{
|
|
8955
|
-
href:
|
|
8956
|
+
href: m,
|
|
8956
8957
|
target: "_blank",
|
|
8957
|
-
"aria-label":
|
|
8958
|
+
"aria-label": u,
|
|
8958
8959
|
rel: "noreferrer",
|
|
8959
8960
|
children: /* @__PURE__ */ n(
|
|
8960
8961
|
"svg",
|
|
@@ -8975,12 +8976,12 @@ const hu = (e) => {
|
|
|
8975
8976
|
)
|
|
8976
8977
|
}
|
|
8977
8978
|
),
|
|
8978
|
-
|
|
8979
|
+
h && /* @__PURE__ */ n(
|
|
8979
8980
|
"a",
|
|
8980
8981
|
{
|
|
8981
|
-
href:
|
|
8982
|
+
href: h,
|
|
8982
8983
|
target: "_blank",
|
|
8983
|
-
"aria-label":
|
|
8984
|
+
"aria-label": u,
|
|
8984
8985
|
rel: "noreferrer",
|
|
8985
8986
|
children: /* @__PURE__ */ p(
|
|
8986
8987
|
"svg",
|
|
@@ -9026,12 +9027,14 @@ const hu = (e) => {
|
|
|
9026
9027
|
] })
|
|
9027
9028
|
] })
|
|
9028
9029
|
] }),
|
|
9029
|
-
|
|
9030
|
+
r && /* @__PURE__ */ n(
|
|
9030
9031
|
"p",
|
|
9031
9032
|
{
|
|
9032
9033
|
className: "sass-com-ja2-article",
|
|
9033
9034
|
dangerouslySetInnerHTML: {
|
|
9034
|
-
__html: `${
|
|
9035
|
+
__html: `${u} <a aria-label="${i}" href="${A}">${String(
|
|
9036
|
+
e.texts.authorViewMore ?? "Ver más"
|
|
9037
|
+
)}</a>`
|
|
9035
9038
|
}
|
|
9036
9039
|
}
|
|
9037
9040
|
)
|
|
@@ -9168,9 +9171,9 @@ function Su(e) {
|
|
|
9168
9171
|
config: i,
|
|
9169
9172
|
keywords: o,
|
|
9170
9173
|
isVideo: c,
|
|
9171
|
-
isLarge:
|
|
9174
|
+
isLarge: u,
|
|
9172
9175
|
priorityHigh: l,
|
|
9173
|
-
share:
|
|
9176
|
+
share: d,
|
|
9174
9177
|
overImage: m,
|
|
9175
9178
|
isTitle: h,
|
|
9176
9179
|
paths: A
|
|
@@ -9235,7 +9238,7 @@ function Su(e) {
|
|
|
9235
9238
|
{
|
|
9236
9239
|
preview: R,
|
|
9237
9240
|
isVideo: c,
|
|
9238
|
-
isLarge:
|
|
9241
|
+
isLarge: u,
|
|
9239
9242
|
priorityHigh: l
|
|
9240
9243
|
}
|
|
9241
9244
|
)
|
|
@@ -9283,7 +9286,7 @@ function Su(e) {
|
|
|
9283
9286
|
{
|
|
9284
9287
|
preview: r,
|
|
9285
9288
|
isVideo: c,
|
|
9286
|
-
isLarge:
|
|
9289
|
+
isLarge: u,
|
|
9287
9290
|
priorityHigh: l
|
|
9288
9291
|
}
|
|
9289
9292
|
)
|
|
@@ -9307,7 +9310,7 @@ function Su(e) {
|
|
|
9307
9310
|
authors: s,
|
|
9308
9311
|
info: a,
|
|
9309
9312
|
preview: r,
|
|
9310
|
-
share:
|
|
9313
|
+
share: d,
|
|
9311
9314
|
config: i,
|
|
9312
9315
|
overImage: m,
|
|
9313
9316
|
isTitle: h,
|
|
@@ -9465,9 +9468,9 @@ const We = (e) => {
|
|
|
9465
9468
|
isVideo: i,
|
|
9466
9469
|
config: o,
|
|
9467
9470
|
itemReverseOrder: c,
|
|
9468
|
-
imageSize:
|
|
9471
|
+
imageSize: u,
|
|
9469
9472
|
showSuper: l,
|
|
9470
|
-
textPosition:
|
|
9473
|
+
textPosition: d,
|
|
9471
9474
|
heightImageOverwrite: m,
|
|
9472
9475
|
heightImageOverwriteMobile: h
|
|
9473
9476
|
} = e;
|
|
@@ -9488,7 +9491,7 @@ const We = (e) => {
|
|
|
9488
9491
|
isVideo: i,
|
|
9489
9492
|
config: o,
|
|
9490
9493
|
paths: e.paths,
|
|
9491
|
-
textPosition:
|
|
9494
|
+
textPosition: d,
|
|
9492
9495
|
heightImageOverwrite: m,
|
|
9493
9496
|
heightImageOverwriteMobile: h,
|
|
9494
9497
|
speculationPrerenderClass: e.speculationPrerenderClass
|
|
@@ -9522,7 +9525,7 @@ const We = (e) => {
|
|
|
9522
9525
|
block: e.block,
|
|
9523
9526
|
itemReverseOrder: c,
|
|
9524
9527
|
priorityHigh: !0,
|
|
9525
|
-
imageSize:
|
|
9528
|
+
imageSize: u,
|
|
9526
9529
|
customNewsDescriptionStyles: e.customNewsDescriptionStyles,
|
|
9527
9530
|
paths: e.paths,
|
|
9528
9531
|
speculationPrerenderClass: e.speculationPrerenderClass
|
|
@@ -9690,7 +9693,7 @@ const We = (e) => {
|
|
|
9690
9693
|
className: "su-grid sass-bd-dn-newsContent",
|
|
9691
9694
|
children: [
|
|
9692
9695
|
/* @__PURE__ */ n("div", { className: "banner-context", style: { order: 1 }, children: e.banner }),
|
|
9693
|
-
Array.isArray(o) && o.map((c,
|
|
9696
|
+
Array.isArray(o) && o.map((c, u) => {
|
|
9694
9697
|
const l = {
|
|
9695
9698
|
...c,
|
|
9696
9699
|
main: {
|
|
@@ -9701,14 +9704,14 @@ const We = (e) => {
|
|
|
9701
9704
|
}
|
|
9702
9705
|
}
|
|
9703
9706
|
};
|
|
9704
|
-
return /* @__PURE__ */ n("div", { style: { order:
|
|
9707
|
+
return /* @__PURE__ */ n("div", { style: { order: u }, children: /* @__PURE__ */ n(
|
|
9705
9708
|
ke,
|
|
9706
9709
|
{
|
|
9707
9710
|
...l,
|
|
9708
9711
|
isVideo: a,
|
|
9709
9712
|
paths: e.paths
|
|
9710
9713
|
}
|
|
9711
|
-
) },
|
|
9714
|
+
) }, u);
|
|
9712
9715
|
})
|
|
9713
9716
|
]
|
|
9714
9717
|
}
|
|
@@ -9885,7 +9888,7 @@ const Eu = (e) => {
|
|
|
9885
9888
|
for (let o = 0; o < t.length; o++) {
|
|
9886
9889
|
e.banners && e.bannerPositionIndex?.includes(o) && (a.push(
|
|
9887
9890
|
/* @__PURE__ */ n("section", { className: s(r), children: e.banners?.some(
|
|
9888
|
-
(
|
|
9891
|
+
(d) => d.key === `${e.slot_id}_${i}`
|
|
9889
9892
|
) && /* @__PURE__ */ n(
|
|
9890
9893
|
we,
|
|
9891
9894
|
{
|
|
@@ -9901,13 +9904,13 @@ const Eu = (e) => {
|
|
|
9901
9904
|
e.showVideoAuthor
|
|
9902
9905
|
) : t[o];
|
|
9903
9906
|
if (!c) continue;
|
|
9904
|
-
const
|
|
9907
|
+
const u = e.slot_id && e.slot_id !== "Nota_1", l = {
|
|
9905
9908
|
...c,
|
|
9906
9909
|
main: {
|
|
9907
9910
|
...c.main,
|
|
9908
9911
|
title: {
|
|
9909
9912
|
...c.main.title,
|
|
9910
|
-
section:
|
|
9913
|
+
section: u ? c.main.title.home : c.main.title.section
|
|
9911
9914
|
}
|
|
9912
9915
|
}
|
|
9913
9916
|
};
|
|
@@ -10039,8 +10042,8 @@ const Eu = (e) => {
|
|
|
10039
10042
|
] }),
|
|
10040
10043
|
/* @__PURE__ */ p("div", { className: "sass-bd-dv-newsContent", children: [
|
|
10041
10044
|
/* @__PURE__ */ n("div", { className: "banner-context", style: { order: 1 }, children: e.banner }),
|
|
10042
|
-
Array.isArray(o) && o.map((c,
|
|
10043
|
-
const l = tt(c),
|
|
10045
|
+
Array.isArray(o) && o.map((c, u) => {
|
|
10046
|
+
const l = tt(c), d = {
|
|
10044
10047
|
...l,
|
|
10045
10048
|
main: {
|
|
10046
10049
|
...l.main,
|
|
@@ -10050,15 +10053,15 @@ const Eu = (e) => {
|
|
|
10050
10053
|
}
|
|
10051
10054
|
}
|
|
10052
10055
|
};
|
|
10053
|
-
return /* @__PURE__ */ n("div", { style: { order:
|
|
10056
|
+
return /* @__PURE__ */ n("div", { style: { order: u }, children: /* @__PURE__ */ Le(
|
|
10054
10057
|
ke,
|
|
10055
10058
|
{
|
|
10056
|
-
...
|
|
10059
|
+
...d,
|
|
10057
10060
|
isVideo: a,
|
|
10058
|
-
key:
|
|
10061
|
+
key: u,
|
|
10059
10062
|
paths: e.paths
|
|
10060
10063
|
}
|
|
10061
|
-
) },
|
|
10064
|
+
) }, u);
|
|
10062
10065
|
})
|
|
10063
10066
|
] })
|
|
10064
10067
|
] });
|
|
@@ -10297,7 +10300,7 @@ const Eu = (e) => {
|
|
|
10297
10300
|
ranking: i,
|
|
10298
10301
|
pathname: o,
|
|
10299
10302
|
texts: c = {}
|
|
10300
|
-
} = e,
|
|
10303
|
+
} = e, u = [3, 8, 13], l = {
|
|
10301
10304
|
3: 1,
|
|
10302
10305
|
8: 2,
|
|
10303
10306
|
13: 3
|
|
@@ -10329,8 +10332,8 @@ const Eu = (e) => {
|
|
|
10329
10332
|
showNext: !(t.length < e.NEWS_PER_SECTION)
|
|
10330
10333
|
}
|
|
10331
10334
|
),
|
|
10332
|
-
children: Array.isArray(t) && t?.map((
|
|
10333
|
-
|
|
10335
|
+
children: Array.isArray(t) && t?.map((d, m) => /* @__PURE__ */ p(ts, { children: [
|
|
10336
|
+
u.includes(m + 1) && /* @__PURE__ */ n(
|
|
10334
10337
|
"div",
|
|
10335
10338
|
{
|
|
10336
10339
|
className: "sass-pg-sec-itemContent banner-context",
|
|
@@ -10347,7 +10350,7 @@ const Eu = (e) => {
|
|
|
10347
10350
|
bn,
|
|
10348
10351
|
{
|
|
10349
10352
|
autorIcon: e.autorIcon,
|
|
10350
|
-
item:
|
|
10353
|
+
item: d,
|
|
10351
10354
|
option: r,
|
|
10352
10355
|
paths: e.paths,
|
|
10353
10356
|
speculationPrerenderClass: e.speculationPrerender?.length && m < e.speculationPrerender.length ? e.speculationPrerender.class : void 0
|
|
@@ -10399,8 +10402,8 @@ const Eu = (e) => {
|
|
|
10399
10402
|
showNext: !(t.length < e.NEWS_PER_SECTION)
|
|
10400
10403
|
}
|
|
10401
10404
|
),
|
|
10402
|
-
children: Array.isArray(t) && t?.map((
|
|
10403
|
-
|
|
10405
|
+
children: Array.isArray(t) && t?.map((d, m) => /* @__PURE__ */ p(ts, { children: [
|
|
10406
|
+
u.includes(m + 1) && /* @__PURE__ */ n("div", { className: "sass-pg-sec-itemContent", children: /* @__PURE__ */ n(
|
|
10404
10407
|
we,
|
|
10405
10408
|
{
|
|
10406
10409
|
banners: a ?? [],
|
|
@@ -10411,7 +10414,7 @@ const Eu = (e) => {
|
|
|
10411
10414
|
bn,
|
|
10412
10415
|
{
|
|
10413
10416
|
autorIcon: e.autorIcon,
|
|
10414
|
-
item:
|
|
10417
|
+
item: d,
|
|
10415
10418
|
option: r,
|
|
10416
10419
|
paths: e.paths,
|
|
10417
10420
|
speculationPrerenderClass: e.speculationPrerender?.length && m < e.speculationPrerender.length ? e.speculationPrerender.class : void 0
|
|
@@ -10495,19 +10498,19 @@ const Eu = (e) => {
|
|
|
10495
10498
|
imagesizes: a
|
|
10496
10499
|
}))?.data?.data;
|
|
10497
10500
|
if (!Array.isArray(i) || i.length === 0) return null;
|
|
10498
|
-
const o = i[0],
|
|
10501
|
+
const o = i[0], u = (Array.isArray(o?.videos) ? o.videos : []).find(
|
|
10499
10502
|
(l) => l?.type === "video-embedded"
|
|
10500
10503
|
);
|
|
10501
|
-
return
|
|
10504
|
+
return u?.code ? /* @__PURE__ */ p("div", { className: "sass-pg-veh-content", children: [
|
|
10502
10505
|
/* @__PURE__ */ n(
|
|
10503
10506
|
"div",
|
|
10504
10507
|
{
|
|
10505
10508
|
dangerouslySetInnerHTML: {
|
|
10506
|
-
__html: typeof
|
|
10509
|
+
__html: typeof u.code == "string" ? u.code : ""
|
|
10507
10510
|
}
|
|
10508
10511
|
}
|
|
10509
10512
|
),
|
|
10510
|
-
|
|
10513
|
+
u?.title && /* @__PURE__ */ n("p", { className: "sass-pg-veh-title", children: u.title })
|
|
10511
10514
|
] }) : null;
|
|
10512
10515
|
} catch {
|
|
10513
10516
|
return null;
|
|
@@ -10524,20 +10527,20 @@ const Eu = (e) => {
|
|
|
10524
10527
|
imagesizes: a
|
|
10525
10528
|
}))?.data?.data;
|
|
10526
10529
|
if (!Array.isArray(i) || i.length === 0) return null;
|
|
10527
|
-
const o = i[0],
|
|
10530
|
+
const o = i[0], u = (Array.isArray(o?.videos) ? o.videos : []).find(
|
|
10528
10531
|
(l) => l?.type === "video-youtube"
|
|
10529
10532
|
);
|
|
10530
|
-
return !
|
|
10533
|
+
return !u?.code || typeof u.code != "string" ? null : /* @__PURE__ */ p("div", { className: "sass-pg-vyh-content", children: [
|
|
10531
10534
|
/* @__PURE__ */ n(
|
|
10532
10535
|
"iframe",
|
|
10533
10536
|
{
|
|
10534
10537
|
className: "sass-pg-vyh-iframeStyled",
|
|
10535
|
-
src: `https://www.youtube.com/embed/${
|
|
10538
|
+
src: `https://www.youtube.com/embed/${u.code}`,
|
|
10536
10539
|
frameBorder: "0",
|
|
10537
10540
|
allowFullScreen: !0
|
|
10538
10541
|
}
|
|
10539
10542
|
),
|
|
10540
|
-
|
|
10543
|
+
u?.title && /* @__PURE__ */ n("p", { className: "sass-pg-vyh-title", children: u.title })
|
|
10541
10544
|
] });
|
|
10542
10545
|
} catch {
|
|
10543
10546
|
return null;
|
|
@@ -10689,10 +10692,10 @@ const Eu = (e) => {
|
|
|
10689
10692
|
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)];
|
|
10690
10693
|
let i = e;
|
|
10691
10694
|
for (const o of r) {
|
|
10692
|
-
const c = o[1],
|
|
10695
|
+
const c = o[1], u = o[2] ?? "";
|
|
10693
10696
|
let l;
|
|
10694
10697
|
if (s.forEach((b) => {
|
|
10695
|
-
Array.isArray(b) && !l && (l = b.find((I) =>
|
|
10698
|
+
Array.isArray(b) && !l && (l = b.find((I) => u.replaceAll("/", "|").includes(I?.info.link.internal || "")));
|
|
10696
10699
|
}), !l) {
|
|
10697
10700
|
const b = c.replace(
|
|
10698
10701
|
/class=["']([^"']*ck-related-news[^"']*)["']/,
|
|
@@ -10701,13 +10704,13 @@ const Eu = (e) => {
|
|
|
10701
10704
|
i = i.replace(c, b);
|
|
10702
10705
|
continue;
|
|
10703
10706
|
}
|
|
10704
|
-
const
|
|
10707
|
+
const d = l.preview?.sizes?.[0], m = d ? await ue(d.url) : "", h = l.info.section?.url ?? "#", A = l.info.section?.name ?? "Sección", f = l.info.link?.url ?? "#", g = l.main?.title.article ?? "Título", w = (await Promise.all(
|
|
10705
10708
|
l.preview?.sizes?.map(async (b) => {
|
|
10706
10709
|
const I = await ue(b.url);
|
|
10707
10710
|
return b.width < 200 ? `<source srcset="${I}" media="(width < 750px)"/>` : `<source srcset="${I}" media="(width >= 750px)"/>`;
|
|
10708
10711
|
}) || []
|
|
10709
10712
|
)).reduce((b, I) => b += I, ""), v = c.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/), E = v ? v[0] : "", N = `
|
|
10710
|
-
<span data-src="${
|
|
10713
|
+
<span data-src="${u}">
|
|
10711
10714
|
<picture style='display: flex'>
|
|
10712
10715
|
${w}
|
|
10713
10716
|
<img fetchPriority='low' loading='lazy' src="${m}" alt="${String(t.noteRelatedImageAlt ?? "")} ${g}" />
|
|
@@ -10743,18 +10746,18 @@ async function qc(e, t) {
|
|
|
10743
10746
|
for (; (i = r.exec(e)) !== null; ) {
|
|
10744
10747
|
const o = i.index, c = r.lastIndex;
|
|
10745
10748
|
s += e.slice(a, o);
|
|
10746
|
-
const
|
|
10749
|
+
const u = i[0];
|
|
10747
10750
|
let l = i[1] ?? "";
|
|
10748
10751
|
l && (l = Oc(l));
|
|
10749
|
-
const
|
|
10750
|
-
let m =
|
|
10751
|
-
if (
|
|
10752
|
+
const d = /data-type\s*=\s*["']?video["']?/i.test(u) || /video-type\s*=\s*["']?embedded["']?/i.test(u);
|
|
10753
|
+
let m = u;
|
|
10754
|
+
if (d && l)
|
|
10752
10755
|
try {
|
|
10753
10756
|
const h = await t.iframe({ path: l }), A = t.schema ? await t.schema(l) : null;
|
|
10754
10757
|
if (h && h.data) {
|
|
10755
10758
|
const f = h.data.data[0];
|
|
10756
10759
|
let g = "";
|
|
10757
|
-
const w =
|
|
10760
|
+
const w = u.match(
|
|
10758
10761
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
10759
10762
|
), v = w && w[1] ? w[1].trim() : "";
|
|
10760
10763
|
f.info && f.info.type === "video-youtube" ? g = `<iframe
|
|
@@ -10784,7 +10787,7 @@ async function qc(e, t) {
|
|
|
10784
10787
|
`;
|
|
10785
10788
|
}
|
|
10786
10789
|
} catch (h) {
|
|
10787
|
-
console.error("replaceVideoSpansWithIframes error for", l, h), m =
|
|
10790
|
+
console.error("replaceVideoSpansWithIframes error for", l, h), m = u;
|
|
10788
10791
|
}
|
|
10789
10792
|
a = c, s += m, r.lastIndex = c;
|
|
10790
10793
|
}
|
|
@@ -10806,8 +10809,8 @@ const Dc = async ({
|
|
|
10806
10809
|
}) => {
|
|
10807
10810
|
if (!e || e.length === 0 || !e[0]) return;
|
|
10808
10811
|
const o = e[0].list?.items?.map(async (c) => {
|
|
10809
|
-
const
|
|
10810
|
-
let l = Bc(
|
|
10812
|
+
const u = Pc(c.body.rendered);
|
|
10813
|
+
let l = Bc(u);
|
|
10811
10814
|
return l = Mc(l), l = await qc(
|
|
10812
10815
|
l,
|
|
10813
10816
|
r
|
|
@@ -10819,8 +10822,8 @@ const Dc = async ({
|
|
|
10819
10822
|
}
|
|
10820
10823
|
};
|
|
10821
10824
|
});
|
|
10822
|
-
return /* @__PURE__ */ n("section", { className: "sass-com-bnl-content", id: "block-notes-list", children: o?.map(async (c,
|
|
10823
|
-
/* @__PURE__ */ n(kc, { id: `item-${
|
|
10825
|
+
return /* @__PURE__ */ n("section", { className: "sass-com-bnl-content", id: "block-notes-list", children: o?.map(async (c, u) => /* @__PURE__ */ p(ts, { children: [
|
|
10826
|
+
/* @__PURE__ */ n(kc, { id: `item-${u + 1}`, children: /* @__PURE__ */ p("div", { className: "sass-com-bnl-contentWithinCard", children: [
|
|
10824
10827
|
(await c).date > 0 && /* @__PURE__ */ p("div", { className: "sass-com-bnl-contentDate", children: [
|
|
10825
10828
|
/* @__PURE__ */ n(
|
|
10826
10829
|
"span",
|
|
@@ -10866,16 +10869,16 @@ const Dc = async ({
|
|
|
10866
10869
|
children: String(a.blockNoteList_readMore ?? "Leer Más")
|
|
10867
10870
|
}
|
|
10868
10871
|
) })
|
|
10869
|
-
] }) },
|
|
10870
|
-
vn[
|
|
10872
|
+
] }) }, u),
|
|
10873
|
+
vn[u] && /* @__PURE__ */ n(
|
|
10871
10874
|
we,
|
|
10872
10875
|
{
|
|
10873
10876
|
banners: s,
|
|
10874
|
-
name: "list_" + vn[
|
|
10877
|
+
name: "list_" + vn[u]
|
|
10875
10878
|
},
|
|
10876
|
-
|
|
10879
|
+
u
|
|
10877
10880
|
)
|
|
10878
|
-
] },
|
|
10881
|
+
] }, u)) });
|
|
10879
10882
|
}, Ta = {
|
|
10880
10883
|
FaceBook: "facebook",
|
|
10881
10884
|
Instagram: "instagram",
|
|
@@ -10917,11 +10920,15 @@ const Gc = () => /* @__PURE__ */ p("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
10917
10920
|
/* @__PURE__ */ n("path", { fill: "#4285F4", d: "M35.29 41.41V32H67c.31 1.64.47 3.58.47 5.68 0 7.06-1.93 15.79-8.15 22.01-6.05 6.3-13.78 9.66-24.02 9.66C16.32 69.35.36 53.89.36 34.91.36 15.93 16.32.47 35.3.47c10.5 0 17.98 4.12 23.6 9.49l-6.64 6.64c-4.03-3.78-9.49-6.72-16.97-6.72-13.86 0-24.7 11.17-24.7 25.03 0 13.86 10.84 25.03 24.7 25.03 8.99 0 14.11-3.61 17.39-6.89 2.66-2.66 4.41-6.46 5.1-11.65l-22.49.01z" })
|
|
10918
10921
|
] }), jc = async (e) => {
|
|
10919
10922
|
if (!e.news || !e.news.authors) return null;
|
|
10920
|
-
const { news: t, socials: s, texts: a } = e,
|
|
10921
|
-
|
|
10922
|
-
|
|
10923
|
+
const { news: t, socials: s, texts: a } = e, {
|
|
10924
|
+
DATE_TIMEZONE: r = "America/Mexico_City",
|
|
10925
|
+
CONFIG_shareOnlyWhatsApp: i,
|
|
10926
|
+
PUBLIC_SERVICE_PREFIX: o
|
|
10927
|
+
} = q(), c = (d) => o ? `/${o}/${e.paths.autor}/${d}` : `/${e.paths.autor}/${d}`, u = t.authors.map(
|
|
10928
|
+
(d) => d.internaluser ? `<a href="${c(d.name)}">${d.fullname}</a>` : d.fullname
|
|
10929
|
+
).join(", "), l = () => t.authors.length === 1 ? "sass-com-ja3-width1Autor" : t.authors.length === 2 ? "sass-com-ja3-width2Autor" : t.authors.length === 3 ? "sass-com-ja3-width3Autor" : "";
|
|
10923
10930
|
return t.config?.showauthor && /* @__PURE__ */ n("div", { className: "sass-com-ja3-content", children: /* @__PURE__ */ p("div", { className: "sass-com-ja3-avatarContent", children: [
|
|
10924
|
-
|
|
10931
|
+
i ? /* @__PURE__ */ p(
|
|
10925
10932
|
"a",
|
|
10926
10933
|
{
|
|
10927
10934
|
className: "sass-com-ja3-whatsappLink",
|
|
@@ -10963,17 +10970,22 @@ const Gc = () => /* @__PURE__ */ p("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
10963
10970
|
children: /* @__PURE__ */ n(Wo, { noteShare: e.noteShare })
|
|
10964
10971
|
}
|
|
10965
10972
|
),
|
|
10966
|
-
/* @__PURE__ */ n(
|
|
10973
|
+
/* @__PURE__ */ n(
|
|
10974
|
+
_c,
|
|
10975
|
+
{
|
|
10976
|
+
url: e.noteShare?.googleProfile?.url ?? ""
|
|
10977
|
+
}
|
|
10978
|
+
),
|
|
10967
10979
|
/* @__PURE__ */ p("section", { className: "sass-com-ja3-journalistSection", children: [
|
|
10968
10980
|
/* @__PURE__ */ n(
|
|
10969
10981
|
"div",
|
|
10970
10982
|
{
|
|
10971
|
-
className: `sass-com-ja3-imageContent ${
|
|
10983
|
+
className: `sass-com-ja3-imageContent ${l()}`,
|
|
10972
10984
|
style: {
|
|
10973
10985
|
width: `${t.authors?.length > 2 ? t.authors?.length * 30 : t.authors?.length * 35}px`
|
|
10974
10986
|
},
|
|
10975
10987
|
children: Array.isArray(t.authors) && t.authors?.map(
|
|
10976
|
-
async (d,
|
|
10988
|
+
async (d, m) => d.image ? /* @__PURE__ */ n(
|
|
10977
10989
|
"img",
|
|
10978
10990
|
{
|
|
10979
10991
|
fetchPriority: "low",
|
|
@@ -10994,12 +11006,12 @@ const Gc = () => /* @__PURE__ */ p("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
10994
11006
|
)
|
|
10995
11007
|
}
|
|
10996
11008
|
),
|
|
10997
|
-
|
|
11009
|
+
u && /* @__PURE__ */ n(
|
|
10998
11010
|
"div",
|
|
10999
11011
|
{
|
|
11000
11012
|
className: "sass-com-ja3-journalistInfoLink",
|
|
11001
11013
|
dangerouslySetInnerHTML: {
|
|
11002
|
-
__html: `${a.JournalistPrefix} <h3 style="padding:0px;">${
|
|
11014
|
+
__html: `${a.JournalistPrefix} <h3 style="padding:0px;">${u ?? "Redaccion"}${t.config?.showtime && ","}</h3> <time datetime="${Fe(t.info.date.modified, r)}">${t.config?.showtime ? gs(t.info.date.modified) : null}`
|
|
11003
11015
|
}
|
|
11004
11016
|
}
|
|
11005
11017
|
)
|
|
@@ -11041,13 +11053,13 @@ const Gc = () => /* @__PURE__ */ p("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
11041
11053
|
function Vc(e) {
|
|
11042
11054
|
const t = e.children, s = `${e.slot_id}-`, a = e.visibleItems, r = e.cardGap ?? 20;
|
|
11043
11055
|
function i(c) {
|
|
11044
|
-
const
|
|
11045
|
-
let
|
|
11056
|
+
const u = [], l = [];
|
|
11057
|
+
let d = "", m = !0;
|
|
11046
11058
|
for (let h = 0; h < c; h++) {
|
|
11047
11059
|
const A = `[data-index="${h}"]:checked ~ .carrousel-pagination li:nth-child(${h + 1}) {
|
|
11048
11060
|
background-color:var(--carrousel-pagination-background-color)
|
|
11049
11061
|
}`;
|
|
11050
|
-
|
|
11062
|
+
d += `
|
|
11051
11063
|
.${s}.carrousel-container {
|
|
11052
11064
|
${A}
|
|
11053
11065
|
[data-index="${h}"]:checked ~ .carrousel-ssr {
|
|
@@ -11059,14 +11071,14 @@ function Vc(e) {
|
|
|
11059
11071
|
display: flex;
|
|
11060
11072
|
}
|
|
11061
11073
|
}
|
|
11062
|
-
`, h > c - (a + 1) && (
|
|
11074
|
+
`, h > c - (a + 1) && (d += `
|
|
11063
11075
|
@media (min-width:900px) {
|
|
11064
11076
|
.${s}.carrousel-container {
|
|
11065
11077
|
[data-index="${h}"]:checked ~ .visible-arrow.right[data-index="${h}"] {
|
|
11066
11078
|
display:none!important;
|
|
11067
11079
|
}
|
|
11068
11080
|
}
|
|
11069
|
-
}`),
|
|
11081
|
+
}`), u.push(
|
|
11070
11082
|
`<input type="radio" name="${s + "card"}" ${m ? "checked" : ""} id="${s + "input-check-" + h}" data-index="${h}" />`
|
|
11071
11083
|
), l.push(`
|
|
11072
11084
|
<label for="${s + "input-check-" + h}" data-index="${h}" class="visible-arrow left">
|
|
@@ -11083,17 +11095,17 @@ function Vc(e) {
|
|
|
11083
11095
|
`), m = !1;
|
|
11084
11096
|
}
|
|
11085
11097
|
return `
|
|
11086
|
-
<style>${
|
|
11087
|
-
${
|
|
11098
|
+
<style>${d}</style>
|
|
11099
|
+
${u.join("")}
|
|
11088
11100
|
${l.join("")}
|
|
11089
11101
|
`;
|
|
11090
11102
|
}
|
|
11091
11103
|
const o = (c) => {
|
|
11092
|
-
const
|
|
11104
|
+
const u = [];
|
|
11093
11105
|
for (let l = 0; l < c; l++)
|
|
11094
|
-
|
|
11106
|
+
u.push("<li></li>");
|
|
11095
11107
|
return `<menu class='carrousel-pagination'>
|
|
11096
|
-
${
|
|
11108
|
+
${u.join("")}
|
|
11097
11109
|
</menu>`;
|
|
11098
11110
|
};
|
|
11099
11111
|
return `
|
|
@@ -11231,13 +11243,18 @@ function Wc({ noteShare: e }) {
|
|
|
11231
11243
|
}
|
|
11232
11244
|
const Yc = async (e) => {
|
|
11233
11245
|
if (!e.news || !e.news.authors) return null;
|
|
11234
|
-
const { news: t, socials: s, texts: a } = e,
|
|
11235
|
-
|
|
11236
|
-
|
|
11246
|
+
const { news: t, socials: s, texts: a } = e, {
|
|
11247
|
+
CONFIG_shareOnlyWhatsApp: r,
|
|
11248
|
+
DATE_TIMEZONE: i = "America/Mexico_City",
|
|
11249
|
+
CONFIG_commentsV2: o,
|
|
11250
|
+
PUBLIC_SERVICE_PREFIX: c
|
|
11251
|
+
} = q(), u = (m) => c ? `/${c}/${e.paths.autor}/${m}` : `/${e.paths.autor}/${m}`, l = t.authors.map(
|
|
11252
|
+
(m) => m.internaluser ? `<a href="${u(m.name)}">${m.fullname}</a>` : m.fullname
|
|
11253
|
+
).join(", "), d = () => t.authors.length === 1 ? "sass-com-ja4-width1Autor" : t.authors.length === 2 ? "sass-com-ja4-width2Autor" : t.authors.length === 3 ? "sass-com-ja4-width3Autor" : "";
|
|
11237
11254
|
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: [
|
|
11238
11255
|
/* @__PURE__ */ p("div", { className: "sass-com-ja4-socialActionsRow", children: [
|
|
11239
11256
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: "10px", alignItems: "center" }, children: [
|
|
11240
|
-
|
|
11257
|
+
r && /* @__PURE__ */ p(
|
|
11241
11258
|
"a",
|
|
11242
11259
|
{
|
|
11243
11260
|
className: "sass-com-ja4-socialActionLink",
|
|
@@ -11269,26 +11286,44 @@ const Yc = async (e) => {
|
|
|
11269
11286
|
]
|
|
11270
11287
|
}
|
|
11271
11288
|
),
|
|
11272
|
-
e.noteShare?.googleProfile && !e.noteShare?.googleProfile.likeSocial && e.noteShare?.googleProfile.url !== "" && /* @__PURE__ */ p(
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
|
|
11281
|
-
"path",
|
|
11289
|
+
e.noteShare?.googleProfile && !e.noteShare?.googleProfile.likeSocial && e.noteShare?.googleProfile.url !== "" && /* @__PURE__ */ p(
|
|
11290
|
+
O,
|
|
11291
|
+
{
|
|
11292
|
+
href: e.noteShare?.googleProfile.url ?? "",
|
|
11293
|
+
className: "sass-com-ja4-socialActionLink sass-journalist-articule-google-profile-button",
|
|
11294
|
+
"aria-label": "Follow on Google",
|
|
11295
|
+
children: [
|
|
11296
|
+
/* @__PURE__ */ n(
|
|
11297
|
+
"svg",
|
|
11282
11298
|
{
|
|
11283
|
-
|
|
11299
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11300
|
+
width: 16,
|
|
11301
|
+
height: 16,
|
|
11302
|
+
fill: "currentColor",
|
|
11303
|
+
children: /* @__PURE__ */ n("path", { d: "M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z" })
|
|
11284
11304
|
}
|
|
11285
|
-
)
|
|
11286
|
-
|
|
11287
|
-
|
|
11288
|
-
|
|
11289
|
-
|
|
11290
|
-
|
|
11291
|
-
e.noteShare?.customButton && (
|
|
11305
|
+
),
|
|
11306
|
+
/* @__PURE__ */ n("span", { children: "Seguir en" }),
|
|
11307
|
+
/* @__PURE__ */ n(Ia, {})
|
|
11308
|
+
]
|
|
11309
|
+
}
|
|
11310
|
+
),
|
|
11311
|
+
e.noteShare?.customButton && (o ? /* @__PURE__ */ n(
|
|
11312
|
+
"a",
|
|
11313
|
+
{
|
|
11314
|
+
href: "#comentarios",
|
|
11315
|
+
className: "sass-journalist-articule-custom-button",
|
|
11316
|
+
"aria-label": "Custom button for the journalist article"
|
|
11317
|
+
}
|
|
11318
|
+
) : /* @__PURE__ */ n(
|
|
11319
|
+
"button",
|
|
11320
|
+
{
|
|
11321
|
+
type: "button",
|
|
11322
|
+
className: "sass-journalist-articule-custom-button",
|
|
11323
|
+
"data-hydrate": "CustomButton",
|
|
11324
|
+
"aria-label": "Custom button for the journalist article"
|
|
11325
|
+
}
|
|
11326
|
+
))
|
|
11292
11327
|
] }),
|
|
11293
11328
|
/* @__PURE__ */ n(
|
|
11294
11329
|
"div",
|
|
@@ -11307,28 +11342,30 @@ const Yc = async (e) => {
|
|
|
11307
11342
|
/* @__PURE__ */ n(
|
|
11308
11343
|
"div",
|
|
11309
11344
|
{
|
|
11310
|
-
className: `sass-com-ja4-imageContent ${
|
|
11345
|
+
className: `sass-com-ja4-imageContent ${d()}`,
|
|
11311
11346
|
style: {
|
|
11312
11347
|
width: `${t.authors?.length > 2 ? t.authors?.length * 30 : t.authors?.length * 40}px`
|
|
11313
11348
|
},
|
|
11314
11349
|
children: Array.isArray(t.authors) && t.authors?.map(
|
|
11315
|
-
async (
|
|
11350
|
+
async (m, h) => m.image ? /* @__PURE__ */ n(
|
|
11316
11351
|
"img",
|
|
11317
11352
|
{
|
|
11318
11353
|
fetchPriority: "low",
|
|
11319
11354
|
loading: "lazy",
|
|
11320
|
-
alt: "Imagen de perfil de " +
|
|
11355
|
+
alt: "Imagen de perfil de " + m.fullname,
|
|
11321
11356
|
className: "sass-com-ja4-imageStyled sass-com-ja4-imageAutor su-object-cover su-flex-center",
|
|
11322
|
-
src: await ue(
|
|
11357
|
+
src: await ue(
|
|
11358
|
+
m.image.sizes[0]?.url || ""
|
|
11359
|
+
)
|
|
11323
11360
|
},
|
|
11324
|
-
|
|
11361
|
+
m.fullname
|
|
11325
11362
|
) : /* @__PURE__ */ n(
|
|
11326
11363
|
"div",
|
|
11327
11364
|
{
|
|
11328
11365
|
className: "sass-com-ja4-contentIconStyled sass-com-ja4-imageAutor su-flex-center",
|
|
11329
11366
|
children: e.autorIcon
|
|
11330
11367
|
},
|
|
11331
|
-
|
|
11368
|
+
m.fullname
|
|
11332
11369
|
)
|
|
11333
11370
|
)
|
|
11334
11371
|
}
|
|
@@ -11338,12 +11375,22 @@ const Yc = async (e) => {
|
|
|
11338
11375
|
{
|
|
11339
11376
|
className: "sass-com-ja4-journalistInfoLink",
|
|
11340
11377
|
dangerouslySetInnerHTML: {
|
|
11341
|
-
__html: `${a.JournalistPrefix} <h3 style="padding:0px;">${
|
|
11378
|
+
__html: `${a.JournalistPrefix} <h3 style="padding:0px;">${l ?? "Redaccion"}</h3>`
|
|
11342
11379
|
}
|
|
11343
11380
|
}
|
|
11344
11381
|
)
|
|
11345
11382
|
] }),
|
|
11346
|
-
t.config?.showtime && /* @__PURE__ */ n(
|
|
11383
|
+
t.config?.showtime && /* @__PURE__ */ n(
|
|
11384
|
+
"time",
|
|
11385
|
+
{
|
|
11386
|
+
className: "sass-com-ja4-journalistInfoDate",
|
|
11387
|
+
dateTime: Fe(
|
|
11388
|
+
t.info.date.modified,
|
|
11389
|
+
i
|
|
11390
|
+
),
|
|
11391
|
+
children: gs(t.info.date.modified)
|
|
11392
|
+
}
|
|
11393
|
+
)
|
|
11347
11394
|
] })
|
|
11348
11395
|
] }) });
|
|
11349
11396
|
}, Kc = (e) => e.replace(
|
|
@@ -11358,8 +11405,8 @@ const Yc = async (e) => {
|
|
|
11358
11405
|
), Zc = async (e) => {
|
|
11359
11406
|
const { PUBLIC_IS_OFFLINE: t } = q();
|
|
11360
11407
|
if (!(t === "true")) {
|
|
11361
|
-
const l = /<img\b[^>]*\bsrc=["']([^"']+)["']/g,
|
|
11362
|
-
for (const h of
|
|
11408
|
+
const l = /<img\b[^>]*\bsrc=["']([^"']+)["']/g, d = [...e.matchAll(l)], m = {};
|
|
11409
|
+
for (const h of d) {
|
|
11363
11410
|
const A = h[1] ?? "", f = e.includes(A) ? { url: A } : null;
|
|
11364
11411
|
if (f) {
|
|
11365
11412
|
const g = await ue(f.url) || "";
|
|
@@ -11378,9 +11425,9 @@ const Yc = async (e) => {
|
|
|
11378
11425
|
o = a;
|
|
11379
11426
|
const l = i.exec(a);
|
|
11380
11427
|
if (!l) break;
|
|
11381
|
-
const
|
|
11428
|
+
const d = l[0], m = l[1] ?? "";
|
|
11382
11429
|
r.add(m);
|
|
11383
|
-
const h =
|
|
11430
|
+
const h = d.match(/<img\b[^>]*\balt=["']([^"']*)["']/), A = h ? h[1] : "imagen", f = m.match(/__scale=([^&"']+)/), g = f ? decodeURIComponent(f[1]) : null;
|
|
11384
11431
|
let w = 0, v = 0;
|
|
11385
11432
|
if (g) {
|
|
11386
11433
|
const I = g.match(/w:(\d+)/), R = g.match(/h:(\d+)/);
|
|
@@ -11408,13 +11455,13 @@ const Yc = async (e) => {
|
|
|
11408
11455
|
isLarge: !1,
|
|
11409
11456
|
priorityHigh: !1
|
|
11410
11457
|
}, b = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(N))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
|
|
11411
|
-
a = a.replace(
|
|
11458
|
+
a = a.replace(d, b), i.lastIndex = 0;
|
|
11412
11459
|
}
|
|
11413
|
-
const c = /<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g,
|
|
11414
|
-
for (const l of
|
|
11415
|
-
const
|
|
11460
|
+
const c = /<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g, u = [...a.matchAll(c)];
|
|
11461
|
+
for (const l of u) {
|
|
11462
|
+
const d = l[0], m = l[1] ?? "";
|
|
11416
11463
|
if (r.has(m)) continue;
|
|
11417
|
-
const h =
|
|
11464
|
+
const h = d.match(/\balt=["']([^"']*)["']/), A = h ? h[1] : "imagen", f = m.match(/__scale=([^&"']+)/), g = f ? decodeURIComponent(f[1]) : null;
|
|
11418
11465
|
let w = 0, v = 0;
|
|
11419
11466
|
if (g) {
|
|
11420
11467
|
const I = g.match(/w:(\d+)/), R = g.match(/h:(\d+)/);
|
|
@@ -11442,7 +11489,7 @@ const Yc = async (e) => {
|
|
|
11442
11489
|
isLarge: !1,
|
|
11443
11490
|
priorityHigh: !1
|
|
11444
11491
|
}, b = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(N))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
|
|
11445
|
-
a = a.replace(
|
|
11492
|
+
a = a.replace(d, b);
|
|
11446
11493
|
}
|
|
11447
11494
|
return a;
|
|
11448
11495
|
}, Xc = (e) => e.replace(
|
|
@@ -11464,16 +11511,16 @@ const Yc = async (e) => {
|
|
|
11464
11511
|
return r = r.replace(
|
|
11465
11512
|
/<p\b[^>]*?>[\s\S]*?<\/p>|<(ul|ol)[^>]*?>[\s\S]*?<\/\1>/g,
|
|
11466
11513
|
(c) => {
|
|
11467
|
-
const
|
|
11514
|
+
const u = c.replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
|
|
11468
11515
|
if (!new RegExp(
|
|
11469
|
-
`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${
|
|
11516
|
+
`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${u}[\\s\\S]*?<\\/blockquote>`,
|
|
11470
11517
|
"gi"
|
|
11471
11518
|
).test(r)) {
|
|
11472
11519
|
a++;
|
|
11473
|
-
const
|
|
11520
|
+
const d = t.find(
|
|
11474
11521
|
(m) => m.key === `block_2_${s[a]}`
|
|
11475
11522
|
);
|
|
11476
|
-
return
|
|
11523
|
+
return d && d.show ? `${c}<div class="banner-context">${Xc(d.value)}</div>` : c;
|
|
11477
11524
|
}
|
|
11478
11525
|
return c;
|
|
11479
11526
|
}
|
|
@@ -11482,13 +11529,13 @@ const Yc = async (e) => {
|
|
|
11482
11529
|
const t = /<div class="ck-image-gallery"[^>]*?>([\s\S]*?)<\/div>/g, s = [...e.matchAll(t)];
|
|
11483
11530
|
let a = "", r = 0;
|
|
11484
11531
|
for (const i of s) {
|
|
11485
|
-
const [o, c = ""] = i,
|
|
11486
|
-
a += e.slice(r,
|
|
11532
|
+
const [o, c = ""] = i, u = i.index, l = u + o.length;
|
|
11533
|
+
a += e.slice(r, u);
|
|
11487
11534
|
const m = [...c.matchAll(/data-src="([^"]+)"/g)].map(
|
|
11488
11535
|
(f) => f[1]
|
|
11489
11536
|
).map(
|
|
11490
11537
|
(f) => `<img fetchPriority='low' loading='lazy' alt='imagen' src="${f}" class="carrusel-note-item" width="800" height="469"/>`
|
|
11491
|
-
), h = "gallery_embeded" +
|
|
11538
|
+
), h = "gallery_embeded" + u.toString(), A = Vc({
|
|
11492
11539
|
slot_id: h,
|
|
11493
11540
|
children: m,
|
|
11494
11541
|
visibleItems: 1,
|
|
@@ -11502,17 +11549,17 @@ const Yc = async (e) => {
|
|
|
11502
11549
|
const a = /<span data-src="(.*?)"><\/span>/g, r = [...e.matchAll(a)];
|
|
11503
11550
|
let i = e;
|
|
11504
11551
|
for (const o of r) {
|
|
11505
|
-
const c = o[0],
|
|
11506
|
-
(E) =>
|
|
11552
|
+
const c = o[0], u = o[1] ?? "", l = s.find(
|
|
11553
|
+
(E) => u.includes(E?.[0]?.info.link.internal || "")
|
|
11507
11554
|
);
|
|
11508
11555
|
if (!l || !l[0]) continue;
|
|
11509
|
-
const
|
|
11556
|
+
const d = l[0].preview?.sizes?.[0], m = d ? await ue(d.url) : "", h = l[0].info.section?.url ?? "#", A = l[0].info.section?.name ?? "Sección", f = l[0].info.link?.url ?? "#", g = l[0].main?.title.article ?? "Título", w = (await Promise.all(
|
|
11510
11557
|
l[0].preview?.sizes?.map(async (E, N) => {
|
|
11511
11558
|
const S = await ue(E.url);
|
|
11512
11559
|
return N === 0 ? `<source srcset="${S}" media="(width >= 900px)"/>` : `<source srcset="${S}" media="(width < 900px)"/>`;
|
|
11513
11560
|
})
|
|
11514
11561
|
)).reduce((E, N) => E += N, ""), v = `
|
|
11515
|
-
<span data-src="${
|
|
11562
|
+
<span data-src="${u}">
|
|
11516
11563
|
<picture style='display: flex'>
|
|
11517
11564
|
${w}
|
|
11518
11565
|
<img fetchPriority='low' loading='lazy' src="${m}" alt="${String(t.noteRelatedImageAlt ?? "")} ${g}" />
|
|
@@ -11534,15 +11581,15 @@ async function nl(e, t) {
|
|
|
11534
11581
|
for (; (i = r.exec(e)) !== null; ) {
|
|
11535
11582
|
const o = i.index, c = r.lastIndex;
|
|
11536
11583
|
s += e.slice(a, o);
|
|
11537
|
-
let
|
|
11538
|
-
const
|
|
11539
|
-
for (; l <
|
|
11584
|
+
let u = 1, l = c;
|
|
11585
|
+
const d = e.length;
|
|
11586
|
+
for (; l < d && u > 0; ) {
|
|
11540
11587
|
const v = e.indexOf("<div", l), E = e.indexOf("</div>", l);
|
|
11541
11588
|
if (E === -1) {
|
|
11542
|
-
l =
|
|
11589
|
+
l = d;
|
|
11543
11590
|
break;
|
|
11544
11591
|
}
|
|
11545
|
-
v !== -1 && v < E ? (
|
|
11592
|
+
v !== -1 && v < E ? (u += 1, l = v + 4) : (u -= 1, l = E + 6);
|
|
11546
11593
|
}
|
|
11547
11594
|
const m = l, h = e.slice(o, m);
|
|
11548
11595
|
let A = null;
|
|
@@ -11622,18 +11669,18 @@ async function al(e) {
|
|
|
11622
11669
|
slug: i,
|
|
11623
11670
|
itemList: o,
|
|
11624
11671
|
socials: c,
|
|
11625
|
-
getVideos:
|
|
11672
|
+
getVideos: u,
|
|
11626
11673
|
commonServices: l
|
|
11627
11674
|
} = e;
|
|
11628
|
-
let
|
|
11629
|
-
|
|
11675
|
+
let d = t?.body?.rendered ?? "";
|
|
11676
|
+
d = d.replace(
|
|
11630
11677
|
/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,
|
|
11631
11678
|
""
|
|
11632
|
-
),
|
|
11633
|
-
|
|
11679
|
+
), d = d.replace(/ /g, ""), d = el(d, s), d = tl(d), d = await Zc(d), d = await sl(
|
|
11680
|
+
d,
|
|
11634
11681
|
e.texts,
|
|
11635
11682
|
a
|
|
11636
|
-
),
|
|
11683
|
+
), d = await nl(d, u), d = Kc(d), d = Jc(d);
|
|
11637
11684
|
const m = t.main.sources ?? [], { NEWS_JOURNALIST_COMPONENT: h, CONFIG_blockDefaultTwitterHydrator: A } = q(), f = t.config.articlepreview === Me.fotoGaleria && t.hascontent?.hasgalleryimages;
|
|
11638
11685
|
return /* @__PURE__ */ p(J, { children: [
|
|
11639
11686
|
i !== "liveblogs" && e.showHeaderImage ? f ? /* @__PURE__ */ n(
|
|
@@ -11673,7 +11720,7 @@ async function al(e) {
|
|
|
11673
11720
|
className: "sass-pg-nrs-contentNews",
|
|
11674
11721
|
suppressHydrationWarning: !0,
|
|
11675
11722
|
id: "content-news-section",
|
|
11676
|
-
dangerouslySetInnerHTML: { __html:
|
|
11723
|
+
dangerouslySetInnerHTML: { __html: d }
|
|
11677
11724
|
}
|
|
11678
11725
|
),
|
|
11679
11726
|
/* @__PURE__ */ n(
|
|
@@ -11683,7 +11730,7 @@ async function al(e) {
|
|
|
11683
11730
|
itemList: o,
|
|
11684
11731
|
banners: s,
|
|
11685
11732
|
slug: i,
|
|
11686
|
-
getVideos:
|
|
11733
|
+
getVideos: u,
|
|
11687
11734
|
newsRelatedListResponses: r ?? []
|
|
11688
11735
|
}
|
|
11689
11736
|
),
|
|
@@ -11710,14 +11757,14 @@ const rl = (e) => {
|
|
|
11710
11757
|
noteShare: i,
|
|
11711
11758
|
paths: o,
|
|
11712
11759
|
banners: c,
|
|
11713
|
-
news:
|
|
11760
|
+
news: u,
|
|
11714
11761
|
newsRelatedResponses: l = [],
|
|
11715
|
-
newsRelatedListResponses:
|
|
11762
|
+
newsRelatedListResponses: d = [],
|
|
11716
11763
|
itemList: m = [],
|
|
11717
11764
|
socials: h,
|
|
11718
11765
|
getVideos: A
|
|
11719
11766
|
} = e;
|
|
11720
|
-
if (
|
|
11767
|
+
if (u)
|
|
11721
11768
|
return /* @__PURE__ */ p(J, { children: [
|
|
11722
11769
|
/* @__PURE__ */ n(
|
|
11723
11770
|
al,
|
|
@@ -11725,16 +11772,16 @@ const rl = (e) => {
|
|
|
11725
11772
|
texts: t,
|
|
11726
11773
|
autorIcon: s,
|
|
11727
11774
|
socials: h,
|
|
11728
|
-
news:
|
|
11775
|
+
news: u,
|
|
11729
11776
|
banners: c,
|
|
11730
11777
|
newsRelatedResponses: l,
|
|
11731
|
-
newsRelatedListResponses:
|
|
11778
|
+
newsRelatedListResponses: d,
|
|
11732
11779
|
itemList: m,
|
|
11733
11780
|
slug: r,
|
|
11734
11781
|
getVideos: A,
|
|
11735
11782
|
noteShare: i,
|
|
11736
11783
|
paths: o,
|
|
11737
|
-
showHeaderImage: !rl(
|
|
11784
|
+
showHeaderImage: !rl(u),
|
|
11738
11785
|
commonServices: a
|
|
11739
11786
|
}
|
|
11740
11787
|
),
|
|
@@ -11749,7 +11796,7 @@ const rl = (e) => {
|
|
|
11749
11796
|
newsRelatedResponses: i = [],
|
|
11750
11797
|
newsRelatedListResponses: o = [],
|
|
11751
11798
|
itemList: c = [],
|
|
11752
|
-
socials:
|
|
11799
|
+
socials: u,
|
|
11753
11800
|
getVideos: l
|
|
11754
11801
|
} = e;
|
|
11755
11802
|
if (!(!r || !r[0]))
|
|
@@ -11809,7 +11856,7 @@ const rl = (e) => {
|
|
|
11809
11856
|
{
|
|
11810
11857
|
texts: e.texts,
|
|
11811
11858
|
autorIcon: e.autorIcon,
|
|
11812
|
-
socials:
|
|
11859
|
+
socials: u,
|
|
11813
11860
|
news: r[0],
|
|
11814
11861
|
banners: s,
|
|
11815
11862
|
newsRelatedResponses: i,
|
|
@@ -11939,7 +11986,7 @@ function Pu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
11939
11986
|
{ label: a.passwordRuleSymbol, test: Ee[4] }
|
|
11940
11987
|
],
|
|
11941
11988
|
[a.passwordRuleMinLength, a.passwordRuleNumber, a.passwordRuleLowercase, a.passwordRuleUppercase, a.passwordRuleSymbol]
|
|
11942
|
-
), [o, c] = $({}), [
|
|
11989
|
+
), [o, c] = $({}), [u, l] = $(!1), [d, m] = $(!1), [h, A] = $(null), [f, g] = $(
|
|
11943
11990
|
"register"
|
|
11944
11991
|
), w = async () => {
|
|
11945
11992
|
if (t.PUBLIC_ENV === "local") {
|
|
@@ -12056,7 +12103,7 @@ function Pu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12056
12103
|
/* @__PURE__ */ n(
|
|
12057
12104
|
"input",
|
|
12058
12105
|
{
|
|
12059
|
-
type: b.toLowerCase().includes("password") ?
|
|
12106
|
+
type: b.toLowerCase().includes("password") ? u ? "text" : "password" : b === "birthdate" ? "date" : b === "email" ? "email" : b === "phone_number" ? "tel" : "text",
|
|
12060
12107
|
name: b,
|
|
12061
12108
|
value: o[b] || "",
|
|
12062
12109
|
onChange: (R) => v(b, R.target.value),
|
|
@@ -12084,7 +12131,7 @@ function Pu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12084
12131
|
{
|
|
12085
12132
|
id: "showPasswordRegister",
|
|
12086
12133
|
type: "checkbox",
|
|
12087
|
-
checked:
|
|
12134
|
+
checked: u,
|
|
12088
12135
|
onChange: (R) => l(R.target.checked)
|
|
12089
12136
|
}
|
|
12090
12137
|
),
|
|
@@ -12106,7 +12153,7 @@ function Pu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12106
12153
|
" ",
|
|
12107
12154
|
a.termsSuffix
|
|
12108
12155
|
] }),
|
|
12109
|
-
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled:
|
|
12156
|
+
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled: d, children: d ? /* @__PURE__ */ n(nt, {}) : a.createAccountButton })
|
|
12110
12157
|
]
|
|
12111
12158
|
}
|
|
12112
12159
|
)
|
|
@@ -12133,7 +12180,7 @@ function Pu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12133
12180
|
)
|
|
12134
12181
|
] }),
|
|
12135
12182
|
h && /* @__PURE__ */ n("p", { className: "sass-pg-login-error", children: h }),
|
|
12136
|
-
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled:
|
|
12183
|
+
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled: d, children: d ? /* @__PURE__ */ n(nt, {}) : a.confirmAccountButton }),
|
|
12137
12184
|
/* @__PURE__ */ p("p", { className: "sass-pg-login-switch", children: [
|
|
12138
12185
|
a.alreadyConfirmedText,
|
|
12139
12186
|
/* @__PURE__ */ n("a", { className: "sass-pg-login-toRegister", href: "./login", children: a.loginButtonText })
|
|
@@ -12200,7 +12247,7 @@ function Bu({
|
|
|
12200
12247
|
API_ENV: e,
|
|
12201
12248
|
texts: t
|
|
12202
12249
|
}) {
|
|
12203
|
-
const s = { ...dl, ...t?.comentarios }, [a, r] = $("login"), [i, o] = $(""), [c,
|
|
12250
|
+
const s = { ...dl, ...t?.comentarios }, [a, r] = $("login"), [i, o] = $(""), [c, u] = $(""), [l, d] = $(""), [m, h] = $(""), [A, f] = $(""), [g, w] = $(!1), [v, E] = $(!1), [N, S] = $(null);
|
|
12204
12251
|
le.useEffect(() => {
|
|
12205
12252
|
if (typeof window > "u") return;
|
|
12206
12253
|
window.location.hash.includes("forgot") && a === "login" && r("forgot"), a === "login" && I();
|
|
@@ -12222,7 +12269,7 @@ function Bu({
|
|
|
12222
12269
|
loading: v,
|
|
12223
12270
|
error: N,
|
|
12224
12271
|
setEmail: o,
|
|
12225
|
-
setPassword:
|
|
12272
|
+
setPassword: u,
|
|
12226
12273
|
setShowPassword: w,
|
|
12227
12274
|
onSubmit: async (L) => {
|
|
12228
12275
|
if (!v) {
|
|
@@ -12288,7 +12335,7 @@ function Bu({
|
|
|
12288
12335
|
const se = await H.json().catch(() => ({}));
|
|
12289
12336
|
throw new Error(se?.error || "Error al enviar código");
|
|
12290
12337
|
}
|
|
12291
|
-
|
|
12338
|
+
u(""), r("changePassword");
|
|
12292
12339
|
} catch (H) {
|
|
12293
12340
|
S(H?.message || "Error inesperado");
|
|
12294
12341
|
} finally {
|
|
@@ -12312,7 +12359,7 @@ function Bu({
|
|
|
12312
12359
|
showPassword: g,
|
|
12313
12360
|
loading: v,
|
|
12314
12361
|
error: N,
|
|
12315
|
-
setConfirmationCode:
|
|
12362
|
+
setConfirmationCode: d,
|
|
12316
12363
|
setNewPassword: h,
|
|
12317
12364
|
setConfirmNewPassword: f,
|
|
12318
12365
|
setShowPassword: w,
|
|
@@ -12372,13 +12419,13 @@ function ul({
|
|
|
12372
12419
|
setEmail: i,
|
|
12373
12420
|
setPassword: o,
|
|
12374
12421
|
setShowPassword: c,
|
|
12375
|
-
onSubmit:
|
|
12422
|
+
onSubmit: u,
|
|
12376
12423
|
onForgot: l,
|
|
12377
|
-
handleGoogleLogin:
|
|
12424
|
+
handleGoogleLogin: d,
|
|
12378
12425
|
t: m
|
|
12379
12426
|
}) {
|
|
12380
12427
|
return /* @__PURE__ */ p(J, { children: [
|
|
12381
|
-
/* @__PURE__ */ p("button", { onClick:
|
|
12428
|
+
/* @__PURE__ */ p("button", { onClick: d, className: "sass-pg-login-google", children: [
|
|
12382
12429
|
/* @__PURE__ */ n(
|
|
12383
12430
|
"img",
|
|
12384
12431
|
{
|
|
@@ -12393,7 +12440,7 @@ function ul({
|
|
|
12393
12440
|
/* @__PURE__ */ p(
|
|
12394
12441
|
"form",
|
|
12395
12442
|
{
|
|
12396
|
-
onSubmit:
|
|
12443
|
+
onSubmit: u,
|
|
12397
12444
|
className: "sass-pg-login-form",
|
|
12398
12445
|
"data-error": r ? "true" : "false",
|
|
12399
12446
|
children: [
|
|
@@ -12513,9 +12560,9 @@ function fl({
|
|
|
12513
12560
|
loading: i,
|
|
12514
12561
|
error: o,
|
|
12515
12562
|
setConfirmationCode: c,
|
|
12516
|
-
setNewPassword:
|
|
12563
|
+
setNewPassword: u,
|
|
12517
12564
|
setConfirmNewPassword: l,
|
|
12518
|
-
setShowPassword:
|
|
12565
|
+
setShowPassword: d,
|
|
12519
12566
|
onSubmit: m,
|
|
12520
12567
|
onBack: h,
|
|
12521
12568
|
t: A
|
|
@@ -12550,7 +12597,7 @@ function fl({
|
|
|
12550
12597
|
{
|
|
12551
12598
|
type: r ? "text" : "password",
|
|
12552
12599
|
value: s,
|
|
12553
|
-
onChange: (g) =>
|
|
12600
|
+
onChange: (g) => u(g.target.value),
|
|
12554
12601
|
className: "sass-pg-login-input",
|
|
12555
12602
|
placeholder: "",
|
|
12556
12603
|
name: "password"
|
|
@@ -12583,7 +12630,7 @@ function fl({
|
|
|
12583
12630
|
id: "showPasswordForgot",
|
|
12584
12631
|
type: "checkbox",
|
|
12585
12632
|
checked: r,
|
|
12586
|
-
onChange: (g) =>
|
|
12633
|
+
onChange: (g) => d(g.target.checked)
|
|
12587
12634
|
}
|
|
12588
12635
|
),
|
|
12589
12636
|
/* @__PURE__ */ n(
|
|
@@ -12626,32 +12673,32 @@ function Ou({ containerId: e, containerId2: t }) {
|
|
|
12626
12673
|
return Te(() => {
|
|
12627
12674
|
try {
|
|
12628
12675
|
let s = function() {
|
|
12629
|
-
const
|
|
12630
|
-
|
|
12676
|
+
const d = window.twttr;
|
|
12677
|
+
d?.widgets ? d.widgets.load(a) : l < 10 ? (l++, requestAnimationFrame(s)) : console.warn("No se pudo cargar widgets de Twitter");
|
|
12631
12678
|
};
|
|
12632
12679
|
const a = document.getElementById(e), r = document.getElementById(t);
|
|
12633
12680
|
if (!a && !r) return;
|
|
12634
12681
|
const i = a?.querySelectorAll("script[src]") ?? [], o = r?.querySelectorAll("script[src]") ?? [];
|
|
12635
|
-
[...i, ...o].forEach((
|
|
12682
|
+
[...i, ...o].forEach((d) => {
|
|
12636
12683
|
const m = document.createElement("script");
|
|
12637
|
-
Array.from(
|
|
12684
|
+
Array.from(d.attributes).forEach((h) => {
|
|
12638
12685
|
m.setAttribute(h.name, h.value);
|
|
12639
|
-
}),
|
|
12686
|
+
}), d.replaceWith(m);
|
|
12640
12687
|
});
|
|
12641
|
-
const
|
|
12688
|
+
const u = document.querySelectorAll(
|
|
12642
12689
|
'script[src*="platform.twitter.com/widgets.js"]'
|
|
12643
12690
|
);
|
|
12644
|
-
if (
|
|
12645
|
-
for (let
|
|
12646
|
-
d
|
|
12691
|
+
if (u)
|
|
12692
|
+
for (let d = 0; d < u.length; d++)
|
|
12693
|
+
u[d]?.remove();
|
|
12647
12694
|
let l = 0;
|
|
12648
12695
|
if (document.querySelector(
|
|
12649
12696
|
'script[src*="platform.twitter.com/widgets.js"]'
|
|
12650
12697
|
))
|
|
12651
12698
|
s();
|
|
12652
12699
|
else {
|
|
12653
|
-
const
|
|
12654
|
-
|
|
12700
|
+
const d = document.createElement("script");
|
|
12701
|
+
d.src = "https://platform.twitter.com/widgets.js", d.async = !0, d.onload = s, document.body.appendChild(d);
|
|
12655
12702
|
}
|
|
12656
12703
|
} catch (s) {
|
|
12657
12704
|
console.warn("Error al procesar embeds de Twitter", s);
|
|
@@ -12674,7 +12721,7 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12674
12721
|
}, [e?.preview?.sizes, e?.preview?.original]);
|
|
12675
12722
|
if (!o.length || !o[0]?.url || o[0]?.url === "")
|
|
12676
12723
|
return /* @__PURE__ */ n("div", { className: "sass-com-img-imagePlaceholder" });
|
|
12677
|
-
const { PUBLIC_API_HOST: c = "", PUBLIC_ASSETS_URL:
|
|
12724
|
+
const { PUBLIC_API_HOST: c = "", PUBLIC_ASSETS_URL: u } = e.API_ENV, l = o[0]?.url, d = u && u !== "false" ? u : c, m = l?.startsWith("http") || l?.includes(d) ? l : d + l;
|
|
12678
12725
|
return /* @__PURE__ */ n("figure", { className: "sass-com-img-figure", children: /* @__PURE__ */ p("span", { className: "sass-com-img-backdrop", children: [
|
|
12679
12726
|
/* @__PURE__ */ n(
|
|
12680
12727
|
"span",
|
|
@@ -12806,7 +12853,7 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12806
12853
|
fetchConfig: o,
|
|
12807
12854
|
paths: c
|
|
12808
12855
|
}) => {
|
|
12809
|
-
const
|
|
12856
|
+
const u = i.FETCH_SIZE_MORE_NEWS ?? 6, [l, d] = $({ data: Array.from({ length: u }, () => wl) }), [m, h] = $(!1), A = ce(async () => {
|
|
12810
12857
|
if (!t) return;
|
|
12811
12858
|
const w = new URLSearchParams({
|
|
12812
12859
|
section: e,
|
|
@@ -12828,7 +12875,7 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12828
12875
|
`${w}${E}/news-list-section`,
|
|
12829
12876
|
{
|
|
12830
12877
|
params: {
|
|
12831
|
-
size:
|
|
12878
|
+
size: u + 1,
|
|
12832
12879
|
newstype: o.newsType,
|
|
12833
12880
|
section: e,
|
|
12834
12881
|
imagesizes: o.imgSizes,
|
|
@@ -12851,12 +12898,12 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12851
12898
|
h(!0);
|
|
12852
12899
|
try {
|
|
12853
12900
|
let w;
|
|
12854
|
-
i.PUBLIC_ENV !== "prod" ? w = await A() : w = await f(),
|
|
12901
|
+
i.PUBLIC_ENV !== "prod" ? w = await A() : w = await f(), d({
|
|
12855
12902
|
...w,
|
|
12856
|
-
data: w.data.slice(0,
|
|
12903
|
+
data: w.data.slice(0, u)
|
|
12857
12904
|
});
|
|
12858
12905
|
} catch (w) {
|
|
12859
|
-
console.error("[/api/get-more-news] Error:", w.message),
|
|
12906
|
+
console.error("[/api/get-more-news] Error:", w.message), d(void 0);
|
|
12860
12907
|
}
|
|
12861
12908
|
}
|
|
12862
12909
|
}, [
|
|
@@ -12896,9 +12943,9 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12896
12943
|
children: t.map((i, o) => {
|
|
12897
12944
|
const {
|
|
12898
12945
|
main: c,
|
|
12899
|
-
authors:
|
|
12946
|
+
authors: u,
|
|
12900
12947
|
info: l,
|
|
12901
|
-
preview:
|
|
12948
|
+
preview: d,
|
|
12902
12949
|
isVideo: m = !1,
|
|
12903
12950
|
config: h,
|
|
12904
12951
|
overImage: A = "default",
|
|
@@ -12923,7 +12970,7 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12923
12970
|
pl,
|
|
12924
12971
|
{
|
|
12925
12972
|
isVisible: e.isVisible,
|
|
12926
|
-
preview:
|
|
12973
|
+
preview: d,
|
|
12927
12974
|
rounded: e.rounded,
|
|
12928
12975
|
isVideo: m,
|
|
12929
12976
|
isLarge: g,
|
|
@@ -12938,9 +12985,9 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12938
12985
|
{
|
|
12939
12986
|
main: c,
|
|
12940
12987
|
SHOW_TAG_BY_SECTION: a.SHOW_TAG_BY_SECTION,
|
|
12941
|
-
authors:
|
|
12988
|
+
authors: u,
|
|
12942
12989
|
info: l,
|
|
12943
|
-
preview:
|
|
12990
|
+
preview: d,
|
|
12944
12991
|
share: e.share,
|
|
12945
12992
|
config: h,
|
|
12946
12993
|
overImage: A,
|
|
@@ -12961,40 +13008,40 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
12961
13008
|
}, yl = (e) => {
|
|
12962
13009
|
const { share: t = !1, cutSubtitle: s = !0, SHOW_TAG_BY_SECTION: a, keywords: r, info: i } = e, c = (() => {
|
|
12963
13010
|
if (!e?.authors || e.authors.length === 0) return "";
|
|
12964
|
-
const
|
|
12965
|
-
return
|
|
12966
|
-
})(),
|
|
13011
|
+
const d = e.authors[0], m = Ue(e.info?.date?.modified, e.DATE_CONFIG);
|
|
13012
|
+
return d && e?.config?.showtime && e.config?.showauthor ? `${d.fullname} - ${m}` : d && e.config?.showauthor ? d.fullname : e?.config?.showtime ? m : "";
|
|
13013
|
+
})(), u = () => e.main.uppertitle ? /* @__PURE__ */ n("p", { className: "sass-com-nd-uppertitle", title: e.main.uppertitle, children: e.main.uppertitle }) : null;
|
|
12967
13014
|
return /* @__PURE__ */ p("div", { className: "sass-com-nd-boxInformation", children: [
|
|
12968
13015
|
t && /* @__PURE__ */ n(Al, { className: "sass-com-nd-dotStyles" }),
|
|
12969
13016
|
/* @__PURE__ */ n(() => {
|
|
12970
13017
|
if (a && r?.tags?.length && r.tags.length > 0) {
|
|
12971
|
-
const
|
|
13018
|
+
const d = r.tags[0], m = d.name;
|
|
12972
13019
|
return /* @__PURE__ */ p("h3", { className: "sass-com-nd-sectionDescriptionContainer", children: [
|
|
12973
|
-
|
|
13020
|
+
d.approved ? /* @__PURE__ */ n(
|
|
12974
13021
|
O,
|
|
12975
13022
|
{
|
|
12976
13023
|
"aria-label": m,
|
|
12977
13024
|
block_subPublication: e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,
|
|
12978
13025
|
className: "sass-com-nd-sectionDescription",
|
|
12979
|
-
href: De(
|
|
13026
|
+
href: De(d, e.paths),
|
|
12980
13027
|
children: m
|
|
12981
13028
|
}
|
|
12982
13029
|
) : /* @__PURE__ */ n("div", { className: "sass-com-nd-sectionDescription", children: m }),
|
|
12983
|
-
|
|
13030
|
+
u()
|
|
12984
13031
|
] });
|
|
12985
13032
|
} else if (i?.section?.url) {
|
|
12986
|
-
const
|
|
13033
|
+
const d = i.section.name;
|
|
12987
13034
|
return /* @__PURE__ */ p("h3", { className: "sass-com-nd-sectionDescriptionContainer", children: [
|
|
12988
13035
|
/* @__PURE__ */ n(
|
|
12989
13036
|
O,
|
|
12990
13037
|
{
|
|
12991
|
-
"aria-label":
|
|
13038
|
+
"aria-label": d,
|
|
12992
13039
|
className: "sass-com-nd-sectionDescription",
|
|
12993
13040
|
href: i.section.url,
|
|
12994
|
-
children:
|
|
13041
|
+
children: d
|
|
12995
13042
|
}
|
|
12996
13043
|
),
|
|
12997
|
-
|
|
13044
|
+
u()
|
|
12998
13045
|
] });
|
|
12999
13046
|
}
|
|
13000
13047
|
return null;
|
|
@@ -13044,8 +13091,8 @@ const qu = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13044
13091
|
texts: a
|
|
13045
13092
|
}) => {
|
|
13046
13093
|
const r = { ...Cl, ...a?.comentarios }, i = () => {
|
|
13047
|
-
const
|
|
13048
|
-
|
|
13094
|
+
const u = document.querySelector(".user-actions-options");
|
|
13095
|
+
u && u.classList.toggle("show");
|
|
13049
13096
|
}, o = e.firstname ?? "Usuario", c = r.userGreeting.replace("{{name}}", o);
|
|
13050
13097
|
return /* @__PURE__ */ n("div", { className: "comment-item", children: /* @__PURE__ */ p("div", { style: { display: "flex", gap: "14px" }, children: [
|
|
13051
13098
|
e && e.picture && e.picture !== "" ? /* @__PURE__ */ n(
|
|
@@ -13105,7 +13152,7 @@ async function Mu({
|
|
|
13105
13152
|
captchaToken: i,
|
|
13106
13153
|
apiToken: o,
|
|
13107
13154
|
securityToken: c,
|
|
13108
|
-
COMMENTS_VARS:
|
|
13155
|
+
COMMENTS_VARS: u
|
|
13109
13156
|
}) {
|
|
13110
13157
|
if (!e || !t || !s || !a || !i)
|
|
13111
13158
|
throw new Error(
|
|
@@ -13113,15 +13160,15 @@ async function Mu({
|
|
|
13113
13160
|
);
|
|
13114
13161
|
if (typeof e != "string" || typeof t != "string" || typeof s != "string" || typeof a != "string" || typeof i != "string")
|
|
13115
13162
|
throw new Error("Todos los parámetros deben ser strings");
|
|
13116
|
-
if (!await xa(i,
|
|
13163
|
+
if (!await xa(i, u))
|
|
13117
13164
|
throw new Error("Token de captcha inválido");
|
|
13118
13165
|
if (!o)
|
|
13119
13166
|
throw new Error("Falta el token de API del CMS");
|
|
13120
|
-
const l = `${r}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,
|
|
13167
|
+
const l = `${r}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`, d = encodeURIComponent(a), m = new URLSearchParams({
|
|
13121
13168
|
publication: e,
|
|
13122
13169
|
username: t ?? !1,
|
|
13123
13170
|
id: s,
|
|
13124
|
-
type:
|
|
13171
|
+
type: d
|
|
13125
13172
|
}), h = `${l}?${m.toString()}`;
|
|
13126
13173
|
try {
|
|
13127
13174
|
console.log("Reporting comment:", {
|
|
@@ -13129,7 +13176,7 @@ async function Mu({
|
|
|
13129
13176
|
username: t,
|
|
13130
13177
|
id: s,
|
|
13131
13178
|
type: a,
|
|
13132
|
-
encodedType:
|
|
13179
|
+
encodedType: d,
|
|
13133
13180
|
url: h
|
|
13134
13181
|
});
|
|
13135
13182
|
const A = await re.get(h, {
|
|
@@ -13183,8 +13230,8 @@ function Sl(e) {
|
|
|
13183
13230
|
}
|
|
13184
13231
|
const jt = (e, t, s) => {
|
|
13185
13232
|
if (!e || !e.current) return { boolean: !1, text: "" };
|
|
13186
|
-
const a = e.current?.value || "", r = a.length > Re, { PUBLIC_ENV: i } = s, o = i === "local", c = a.trim() !== "" && (o || t !== "") && !r,
|
|
13187
|
-
return { boolean: c, text:
|
|
13233
|
+
const a = e.current?.value || "", r = a.length > Re, { PUBLIC_ENV: i } = s, o = i === "local", c = a.trim() !== "" && (o || t !== "") && !r, u = r ? `No debes exceder el limite de ${Re} caracteres.` : "Debes completar todos los campos para comentar.";
|
|
13234
|
+
return { boolean: c, text: u };
|
|
13188
13235
|
}, Ra = (e) => {
|
|
13189
13236
|
const t = e.cookie.split("; ").find((s) => s.startsWith("reported="));
|
|
13190
13237
|
if (!t) return [];
|
|
@@ -13204,14 +13251,14 @@ var yn;
|
|
|
13204
13251
|
function Tl() {
|
|
13205
13252
|
if (yn) return ne;
|
|
13206
13253
|
yn = 1;
|
|
13207
|
-
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,
|
|
13254
|
+
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, u = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, 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;
|
|
13208
13255
|
function N(b) {
|
|
13209
13256
|
if (typeof b == "object" && b !== null) {
|
|
13210
13257
|
var I = b.$$typeof;
|
|
13211
13258
|
switch (I) {
|
|
13212
13259
|
case t:
|
|
13213
13260
|
switch (b = b.type, b) {
|
|
13214
|
-
case
|
|
13261
|
+
case u:
|
|
13215
13262
|
case l:
|
|
13216
13263
|
case a:
|
|
13217
13264
|
case i:
|
|
@@ -13221,7 +13268,7 @@ function Tl() {
|
|
|
13221
13268
|
default:
|
|
13222
13269
|
switch (b = b && b.$$typeof, b) {
|
|
13223
13270
|
case c:
|
|
13224
|
-
case
|
|
13271
|
+
case d:
|
|
13225
13272
|
case f:
|
|
13226
13273
|
case A:
|
|
13227
13274
|
case o:
|
|
@@ -13238,8 +13285,8 @@ function Tl() {
|
|
|
13238
13285
|
function S(b) {
|
|
13239
13286
|
return N(b) === l;
|
|
13240
13287
|
}
|
|
13241
|
-
return ne.AsyncMode =
|
|
13242
|
-
return S(b) || N(b) ===
|
|
13288
|
+
return ne.AsyncMode = u, ne.ConcurrentMode = l, ne.ContextConsumer = c, ne.ContextProvider = o, ne.Element = t, ne.ForwardRef = d, ne.Fragment = a, ne.Lazy = f, ne.Memo = A, ne.Portal = s, ne.Profiler = i, ne.StrictMode = r, ne.Suspense = m, ne.isAsyncMode = function(b) {
|
|
13289
|
+
return S(b) || N(b) === u;
|
|
13243
13290
|
}, ne.isConcurrentMode = S, ne.isContextConsumer = function(b) {
|
|
13244
13291
|
return N(b) === c;
|
|
13245
13292
|
}, ne.isContextProvider = function(b) {
|
|
@@ -13247,7 +13294,7 @@ function Tl() {
|
|
|
13247
13294
|
}, ne.isElement = function(b) {
|
|
13248
13295
|
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
13249
13296
|
}, ne.isForwardRef = function(b) {
|
|
13250
|
-
return N(b) ===
|
|
13297
|
+
return N(b) === d;
|
|
13251
13298
|
}, ne.isFragment = function(b) {
|
|
13252
13299
|
return N(b) === a;
|
|
13253
13300
|
}, ne.isLazy = function(b) {
|
|
@@ -13263,17 +13310,17 @@ function Tl() {
|
|
|
13263
13310
|
}, ne.isSuspense = function(b) {
|
|
13264
13311
|
return N(b) === m;
|
|
13265
13312
|
}, ne.isValidElementType = function(b) {
|
|
13266
|
-
return typeof b == "string" || typeof b == "function" || b === a || b === l || b === i || b === r || b === m || b === h || typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof === A || b.$$typeof === o || b.$$typeof === c || b.$$typeof ===
|
|
13313
|
+
return typeof b == "string" || typeof b == "function" || b === a || b === l || b === i || b === r || b === m || b === h || typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof === A || b.$$typeof === o || b.$$typeof === c || b.$$typeof === d || b.$$typeof === w || b.$$typeof === v || b.$$typeof === E || b.$$typeof === g);
|
|
13267
13314
|
}, ne.typeOf = N, ne;
|
|
13268
13315
|
}
|
|
13269
13316
|
var ae = {};
|
|
13270
13317
|
var Cn;
|
|
13271
13318
|
function Il() {
|
|
13272
13319
|
return Cn || (Cn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
13273
|
-
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,
|
|
13320
|
+
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, u = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, 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;
|
|
13274
13321
|
function N(B) {
|
|
13275
13322
|
return typeof B == "string" || typeof B == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
13276
|
-
B === a || B === l || B === i || B === r || B === m || B === h || typeof B == "object" && B !== null && (B.$$typeof === f || B.$$typeof === A || B.$$typeof === o || B.$$typeof === c || B.$$typeof ===
|
|
13323
|
+
B === a || B === l || B === i || B === r || B === m || B === h || typeof B == "object" && B !== null && (B.$$typeof === f || B.$$typeof === A || B.$$typeof === o || B.$$typeof === c || B.$$typeof === d || B.$$typeof === w || B.$$typeof === v || B.$$typeof === E || B.$$typeof === g);
|
|
13277
13324
|
}
|
|
13278
13325
|
function S(B) {
|
|
13279
13326
|
if (typeof B == "object" && B !== null) {
|
|
@@ -13282,7 +13329,7 @@ function Il() {
|
|
|
13282
13329
|
case t:
|
|
13283
13330
|
var ct = B.type;
|
|
13284
13331
|
switch (ct) {
|
|
13285
|
-
case
|
|
13332
|
+
case u:
|
|
13286
13333
|
case l:
|
|
13287
13334
|
case a:
|
|
13288
13335
|
case i:
|
|
@@ -13293,7 +13340,7 @@ function Il() {
|
|
|
13293
13340
|
var _s = ct && ct.$$typeof;
|
|
13294
13341
|
switch (_s) {
|
|
13295
13342
|
case c:
|
|
13296
|
-
case
|
|
13343
|
+
case d:
|
|
13297
13344
|
case f:
|
|
13298
13345
|
case A:
|
|
13299
13346
|
case o:
|
|
@@ -13307,9 +13354,9 @@ function Il() {
|
|
|
13307
13354
|
}
|
|
13308
13355
|
}
|
|
13309
13356
|
}
|
|
13310
|
-
var b =
|
|
13357
|
+
var b = u, I = l, R = c, Q = o, W = t, j = d, L = a, H = f, se = A, M = s, x = i, U = r, D = m, k = !1;
|
|
13311
13358
|
function F(B) {
|
|
13312
|
-
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) ===
|
|
13359
|
+
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) === u;
|
|
13313
13360
|
}
|
|
13314
13361
|
function y(B) {
|
|
13315
13362
|
return S(B) === l;
|
|
@@ -13324,7 +13371,7 @@ function Il() {
|
|
|
13324
13371
|
return typeof B == "object" && B !== null && B.$$typeof === t;
|
|
13325
13372
|
}
|
|
13326
13373
|
function _(B) {
|
|
13327
|
-
return S(B) ===
|
|
13374
|
+
return S(B) === d;
|
|
13328
13375
|
}
|
|
13329
13376
|
function V(B) {
|
|
13330
13377
|
return S(B) === a;
|
|
@@ -13373,31 +13420,31 @@ function Ul() {
|
|
|
13373
13420
|
return !1;
|
|
13374
13421
|
for (var o = {}, c = 0; c < 10; c++)
|
|
13375
13422
|
o["_" + String.fromCharCode(c)] = c;
|
|
13376
|
-
var
|
|
13377
|
-
return o[
|
|
13423
|
+
var u = Object.getOwnPropertyNames(o).map(function(d) {
|
|
13424
|
+
return o[d];
|
|
13378
13425
|
});
|
|
13379
|
-
if (
|
|
13426
|
+
if (u.join("") !== "0123456789")
|
|
13380
13427
|
return !1;
|
|
13381
13428
|
var l = {};
|
|
13382
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
13383
|
-
l[
|
|
13429
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(d) {
|
|
13430
|
+
l[d] = d;
|
|
13384
13431
|
}), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
|
|
13385
13432
|
} catch {
|
|
13386
13433
|
return !1;
|
|
13387
13434
|
}
|
|
13388
13435
|
}
|
|
13389
13436
|
return Wt = r() ? Object.assign : function(i, o) {
|
|
13390
|
-
for (var c,
|
|
13391
|
-
c = Object(arguments[
|
|
13437
|
+
for (var c, u = a(i), l, d = 1; d < arguments.length; d++) {
|
|
13438
|
+
c = Object(arguments[d]);
|
|
13392
13439
|
for (var m in c)
|
|
13393
|
-
t.call(c, m) && (
|
|
13440
|
+
t.call(c, m) && (u[m] = c[m]);
|
|
13394
13441
|
if (e) {
|
|
13395
13442
|
l = e(c);
|
|
13396
13443
|
for (var h = 0; h < l.length; h++)
|
|
13397
|
-
s.call(c, l[h]) && (
|
|
13444
|
+
s.call(c, l[h]) && (u[l[h]] = c[l[h]]);
|
|
13398
13445
|
}
|
|
13399
13446
|
}
|
|
13400
|
-
return
|
|
13447
|
+
return u;
|
|
13401
13448
|
}, Wt;
|
|
13402
13449
|
}
|
|
13403
13450
|
var Yt, En;
|
|
@@ -13428,24 +13475,24 @@ function xl() {
|
|
|
13428
13475
|
}
|
|
13429
13476
|
};
|
|
13430
13477
|
}
|
|
13431
|
-
function r(i, o, c,
|
|
13478
|
+
function r(i, o, c, u, l) {
|
|
13432
13479
|
if (process.env.NODE_ENV !== "production") {
|
|
13433
|
-
for (var
|
|
13434
|
-
if (a(i,
|
|
13480
|
+
for (var d in i)
|
|
13481
|
+
if (a(i, d)) {
|
|
13435
13482
|
var m;
|
|
13436
13483
|
try {
|
|
13437
|
-
if (typeof i[
|
|
13484
|
+
if (typeof i[d] != "function") {
|
|
13438
13485
|
var h = Error(
|
|
13439
|
-
(
|
|
13486
|
+
(u || "React class") + ": " + c + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
13440
13487
|
);
|
|
13441
13488
|
throw h.name = "Invariant Violation", h;
|
|
13442
13489
|
}
|
|
13443
|
-
m = i[
|
|
13490
|
+
m = i[d](o, d, u, c, null, t);
|
|
13444
13491
|
} catch (f) {
|
|
13445
13492
|
m = f;
|
|
13446
13493
|
}
|
|
13447
13494
|
if (m && !(m instanceof Error) && e(
|
|
13448
|
-
(
|
|
13495
|
+
(u || "React class") + ": type specification of " + c + " `" + d + "` 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)."
|
|
13449
13496
|
), m instanceof Error && !(m.message in s)) {
|
|
13450
13497
|
s[m.message] = !0;
|
|
13451
13498
|
var A = l ? l() : "";
|
|
@@ -13467,20 +13514,20 @@ function Rl() {
|
|
|
13467
13514
|
var e = Rs(), t = Ul(), s = /* @__PURE__ */ ks(), a = /* @__PURE__ */ ka(), r = /* @__PURE__ */ xl(), i = function() {
|
|
13468
13515
|
};
|
|
13469
13516
|
process.env.NODE_ENV !== "production" && (i = function(c) {
|
|
13470
|
-
var
|
|
13471
|
-
typeof console < "u" && console.error(
|
|
13517
|
+
var u = "Warning: " + c;
|
|
13518
|
+
typeof console < "u" && console.error(u);
|
|
13472
13519
|
try {
|
|
13473
|
-
throw new Error(
|
|
13520
|
+
throw new Error(u);
|
|
13474
13521
|
} catch {
|
|
13475
13522
|
}
|
|
13476
13523
|
});
|
|
13477
13524
|
function o() {
|
|
13478
13525
|
return null;
|
|
13479
13526
|
}
|
|
13480
|
-
return $t = function(c,
|
|
13481
|
-
var l = typeof Symbol == "function" && Symbol.iterator,
|
|
13527
|
+
return $t = function(c, u) {
|
|
13528
|
+
var l = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
13482
13529
|
function m(y) {
|
|
13483
|
-
var T = y && (l && y[l] || y[
|
|
13530
|
+
var T = y && (l && y[l] || y[d]);
|
|
13484
13531
|
if (typeof T == "function")
|
|
13485
13532
|
return T;
|
|
13486
13533
|
}
|
|
@@ -13517,7 +13564,7 @@ function Rl() {
|
|
|
13517
13564
|
var T = {}, P = 0;
|
|
13518
13565
|
function G(V, z, Y, ee, te, K, ie) {
|
|
13519
13566
|
if (ee = ee || h, K = K || Y, ie !== s) {
|
|
13520
|
-
if (
|
|
13567
|
+
if (u) {
|
|
13521
13568
|
var B = new Error(
|
|
13522
13569
|
"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"
|
|
13523
13570
|
);
|
|
@@ -13791,7 +13838,7 @@ function kl() {
|
|
|
13791
13838
|
function s() {
|
|
13792
13839
|
}
|
|
13793
13840
|
return s.resetWarningCache = t, Zt = function() {
|
|
13794
|
-
function a(o, c,
|
|
13841
|
+
function a(o, c, u, l, d, m) {
|
|
13795
13842
|
if (m !== e) {
|
|
13796
13843
|
var h = new Error(
|
|
13797
13844
|
"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"
|
|
@@ -14010,19 +14057,19 @@ function Ml() {
|
|
|
14010
14057
|
function o(f) {
|
|
14011
14058
|
return e.isMemo(f) ? r : i[f.$$typeof] || t;
|
|
14012
14059
|
}
|
|
14013
|
-
var c = Object.defineProperty,
|
|
14060
|
+
var c = Object.defineProperty, u = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, m = Object.getPrototypeOf, h = Object.prototype;
|
|
14014
14061
|
function A(f, g, w) {
|
|
14015
14062
|
if (typeof g != "string") {
|
|
14016
14063
|
if (h) {
|
|
14017
14064
|
var v = m(g);
|
|
14018
14065
|
v && v !== h && A(f, v, w);
|
|
14019
14066
|
}
|
|
14020
|
-
var E =
|
|
14067
|
+
var E = u(g);
|
|
14021
14068
|
l && (E = E.concat(l(g)));
|
|
14022
14069
|
for (var N = o(f), S = o(g), b = 0; b < E.length; ++b) {
|
|
14023
14070
|
var I = E[b];
|
|
14024
14071
|
if (!s[I] && !(w && w[I]) && !(S && S[I]) && !(N && N[I])) {
|
|
14025
|
-
var R =
|
|
14072
|
+
var R = d(g, I);
|
|
14026
14073
|
try {
|
|
14027
14074
|
c(f, I, R);
|
|
14028
14075
|
} catch {
|
|
@@ -14060,12 +14107,12 @@ var Ce = {}, Ql = 0;
|
|
|
14060
14107
|
function Hl(e, t) {
|
|
14061
14108
|
return t = t || {}, function(a) {
|
|
14062
14109
|
var r = a.displayName || a.name || "Component", i = /* @__PURE__ */ (function(c) {
|
|
14063
|
-
jl(
|
|
14064
|
-
function d
|
|
14110
|
+
jl(u, c);
|
|
14111
|
+
function u(d, m) {
|
|
14065
14112
|
var h;
|
|
14066
|
-
return h = c.call(this,
|
|
14113
|
+
return h = c.call(this, d, m) || this, h.state = {}, h.__scriptURL = "", h;
|
|
14067
14114
|
}
|
|
14068
|
-
var l =
|
|
14115
|
+
var l = u.prototype;
|
|
14069
14116
|
return l.asyncScriptLoaderGetScriptLoaderID = function() {
|
|
14070
14117
|
return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + Ql++), this.__scriptLoaderID;
|
|
14071
14118
|
}, l.setupScriptURL = function() {
|
|
@@ -14142,10 +14189,10 @@ function Hl(e, t) {
|
|
|
14142
14189
|
h.asyncScriptOnLoad;
|
|
14143
14190
|
var A = h.forwardedRef, f = Gl(h, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
14144
14191
|
return m && typeof window < "u" && (f[m] = typeof window[m] < "u" ? window[m] : void 0), f.ref = A, Le(a, f);
|
|
14145
|
-
},
|
|
14146
|
-
})(Da), o = On(function(c,
|
|
14192
|
+
}, u;
|
|
14193
|
+
})(Da), o = On(function(c, u) {
|
|
14147
14194
|
return Le(i, ms({}, c, {
|
|
14148
|
-
forwardedRef:
|
|
14195
|
+
forwardedRef: u
|
|
14149
14196
|
}));
|
|
14150
14197
|
});
|
|
14151
14198
|
return o.displayName = "AsyncScriptLoader(" + r + ")", o.propTypes = {
|
|
@@ -14195,23 +14242,23 @@ const La = Hl(Fl, {
|
|
|
14195
14242
|
CAPTCHA_KEY_V2: i,
|
|
14196
14243
|
texts: o
|
|
14197
14244
|
}) => {
|
|
14198
|
-
const c = { ...zl, ...o?.comentarios },
|
|
14245
|
+
const c = { ...zl, ...o?.comentarios }, u = { ...ls, ...c.reportReasons ?? {} }, [l, d] = $("form"), [m, h] = $(
|
|
14199
14246
|
""
|
|
14200
14247
|
), [A, f] = $(""), [g, w] = $(""), v = [
|
|
14201
|
-
{ id: "spam", label:
|
|
14202
|
-
{ id: "inappropriate", label:
|
|
14203
|
-
{ id: "hate", label:
|
|
14204
|
-
{ id: "misinformation", label:
|
|
14205
|
-
{ id: "terrorism", label:
|
|
14206
|
-
{ id: "intellectual", label:
|
|
14207
|
-
{ id: "bullying", label:
|
|
14248
|
+
{ id: "spam", label: u.spam },
|
|
14249
|
+
{ id: "inappropriate", label: u.inappropriate },
|
|
14250
|
+
{ id: "hate", label: u.hate },
|
|
14251
|
+
{ id: "misinformation", label: u.misinformation },
|
|
14252
|
+
{ id: "terrorism", label: u.terrorism },
|
|
14253
|
+
{ id: "intellectual", label: u.intellectual },
|
|
14254
|
+
{ id: "bullying", label: u.bullying }
|
|
14208
14255
|
], E = async () => {
|
|
14209
14256
|
if (!(!m || !s)) {
|
|
14210
14257
|
if (Ra(document).includes(s)) {
|
|
14211
14258
|
f(c.errorAlreadyReported);
|
|
14212
14259
|
return;
|
|
14213
14260
|
}
|
|
14214
|
-
|
|
14261
|
+
d("loading"), f("");
|
|
14215
14262
|
try {
|
|
14216
14263
|
const b = await (await fetch("/api/comments-report", {
|
|
14217
14264
|
method: "POST",
|
|
@@ -14228,17 +14275,17 @@ const La = Hl(Fl, {
|
|
|
14228
14275
|
})
|
|
14229
14276
|
})).json();
|
|
14230
14277
|
if (b.type === "success")
|
|
14231
|
-
El(document, s),
|
|
14278
|
+
El(document, s), d("success"), setTimeout(() => {
|
|
14232
14279
|
N();
|
|
14233
14280
|
}, 3e3);
|
|
14234
14281
|
else
|
|
14235
14282
|
throw new Error(b.message || c.errorReportComment);
|
|
14236
14283
|
} catch (S) {
|
|
14237
|
-
console.error("Error reporting comment:", S), f(S.message || c.errorReportComment),
|
|
14284
|
+
console.error("Error reporting comment:", S), f(S.message || c.errorReportComment), d("form");
|
|
14238
14285
|
}
|
|
14239
14286
|
}
|
|
14240
14287
|
}, N = () => {
|
|
14241
|
-
|
|
14288
|
+
d("form"), h(""), f(""), t();
|
|
14242
14289
|
};
|
|
14243
14290
|
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: [
|
|
14244
14291
|
/* @__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, {}) }),
|
|
@@ -14359,11 +14406,11 @@ async function Ps({
|
|
|
14359
14406
|
lastid: i,
|
|
14360
14407
|
state: o = "5,6",
|
|
14361
14408
|
apiToken: c,
|
|
14362
|
-
API_ENV:
|
|
14409
|
+
API_ENV: u
|
|
14363
14410
|
}) {
|
|
14364
|
-
const { PUBLIC_ENV: l } =
|
|
14411
|
+
const { PUBLIC_ENV: l } = u;
|
|
14365
14412
|
if (l === "prod") {
|
|
14366
|
-
const
|
|
14413
|
+
const d = await Kl({
|
|
14367
14414
|
publication: e,
|
|
14368
14415
|
path: t,
|
|
14369
14416
|
size: s,
|
|
@@ -14372,14 +14419,14 @@ async function Ps({
|
|
|
14372
14419
|
lastid: i,
|
|
14373
14420
|
state: o,
|
|
14374
14421
|
apiToken: c,
|
|
14375
|
-
API_ENV:
|
|
14422
|
+
API_ENV: u
|
|
14376
14423
|
});
|
|
14377
|
-
return xt(
|
|
14424
|
+
return xt(d[0]);
|
|
14378
14425
|
} else {
|
|
14379
|
-
const
|
|
14380
|
-
if (!
|
|
14381
|
-
throw new Error(`Error al obtener comentarios: ${
|
|
14382
|
-
const m = await
|
|
14426
|
+
const d = await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${s}&sizereply=${a}&lastid=${i}`);
|
|
14427
|
+
if (!d.ok)
|
|
14428
|
+
throw new Error(`Error al obtener comentarios: ${d.status}`);
|
|
14429
|
+
const m = await d.json();
|
|
14383
14430
|
return xt(m.data[0]);
|
|
14384
14431
|
}
|
|
14385
14432
|
}
|
|
@@ -14392,7 +14439,7 @@ async function Kl({
|
|
|
14392
14439
|
lastid: i,
|
|
14393
14440
|
state: o = "5,6",
|
|
14394
14441
|
apiToken: c,
|
|
14395
|
-
API_ENV:
|
|
14442
|
+
API_ENV: u
|
|
14396
14443
|
}) {
|
|
14397
14444
|
if (!e || !t)
|
|
14398
14445
|
throw new Error("Missing required parameters: publication and path");
|
|
@@ -14400,12 +14447,12 @@ async function Kl({
|
|
|
14400
14447
|
throw new Error("Invalid input types for publication or path");
|
|
14401
14448
|
if (!c)
|
|
14402
14449
|
throw new Error("Missing CMS API token");
|
|
14403
|
-
const { PUBLIC_ENV: l, PUBLIC_API_HOST:
|
|
14450
|
+
const { PUBLIC_ENV: l, PUBLIC_API_HOST: d = "dummy", PUBLIC_API_PATH: m, PUBLIC_API_PATH_VERSION: h } = u, A = parseInt(String(s), 10), f = parseInt(String(a), 10);
|
|
14404
14451
|
if (isNaN(A) || A <= 0)
|
|
14405
14452
|
throw new Error("Invalid size parameter");
|
|
14406
14453
|
if (isNaN(f) || f < 0)
|
|
14407
14454
|
throw new Error("Invalid sizereply parameter");
|
|
14408
|
-
const g = l !== "prod" ? `${
|
|
14455
|
+
const g = l !== "prod" ? `${d}${m}` : "", w = new URLSearchParams({
|
|
14409
14456
|
publication: e,
|
|
14410
14457
|
path: t,
|
|
14411
14458
|
size: A.toString(),
|
|
@@ -14441,7 +14488,7 @@ const Jl = (e, t) => {
|
|
|
14441
14488
|
(async () => {
|
|
14442
14489
|
const { PUBLIC_X_SECURITY_TOKEN: c } = t;
|
|
14443
14490
|
try {
|
|
14444
|
-
const
|
|
14491
|
+
const u = await Ps({
|
|
14445
14492
|
publication: i,
|
|
14446
14493
|
path: e ?? "",
|
|
14447
14494
|
size: 5,
|
|
@@ -14452,7 +14499,7 @@ const Jl = (e, t) => {
|
|
|
14452
14499
|
apiToken: c,
|
|
14453
14500
|
API_ENV: t
|
|
14454
14501
|
});
|
|
14455
|
-
a(
|
|
14502
|
+
a(u ?? []);
|
|
14456
14503
|
} catch {
|
|
14457
14504
|
a({ comments: [], morecomment: !1 });
|
|
14458
14505
|
}
|
|
@@ -14601,11 +14648,11 @@ function ed({
|
|
|
14601
14648
|
texts: a,
|
|
14602
14649
|
API_ENV: r
|
|
14603
14650
|
}) {
|
|
14604
|
-
const i = { ...Xl, ...Zl, ...a?.comentarios }, o = (
|
|
14605
|
-
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = "/auth/login" + (
|
|
14651
|
+
const i = { ...Xl, ...Zl, ...a?.comentarios }, o = (d) => {
|
|
14652
|
+
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = "/auth/login" + (d ? "#forgot" : ""));
|
|
14606
14653
|
}, c = () => {
|
|
14607
14654
|
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = "/auth/register");
|
|
14608
|
-
}, { PUBLIC_ASSETS_URL:
|
|
14655
|
+
}, { PUBLIC_ASSETS_URL: u } = r, l = (u && u !== "false" ? u : "") + "/versions/images/anonimus-img.png";
|
|
14609
14656
|
return /* @__PURE__ */ n(
|
|
14610
14657
|
"div",
|
|
14611
14658
|
{
|
|
@@ -14613,8 +14660,8 @@ function ed({
|
|
|
14613
14660
|
role: "dialog",
|
|
14614
14661
|
"aria-modal": "true",
|
|
14615
14662
|
id: "pop-overlay",
|
|
14616
|
-
onClick: (
|
|
14617
|
-
const m =
|
|
14663
|
+
onClick: (d) => {
|
|
14664
|
+
const m = d.target;
|
|
14618
14665
|
m && m.id === "pop-overlay" && e();
|
|
14619
14666
|
},
|
|
14620
14667
|
children: /* @__PURE__ */ p("div", { className: "sass-pg-cmt-lp-card", children: [
|
|
@@ -14675,23 +14722,23 @@ function ed({
|
|
|
14675
14722
|
const td = {
|
|
14676
14723
|
submitCommentButton: "Enviar Comentario"
|
|
14677
14724
|
}, qs = ({ onClick: e, isDisabled: t, API_ENV: s, icon: a, handleGoogleLogin: r, showAlert: i, texts: o }) => {
|
|
14678
|
-
const c = { ...td, ...o?.comentarios }, [
|
|
14725
|
+
const c = { ...td, ...o?.comentarios }, [u, l] = le.useState(!1), [d, m] = le.useState(!1), [h, A] = le.useState(!1);
|
|
14679
14726
|
le.useEffect(() => {
|
|
14680
14727
|
let g = null;
|
|
14681
|
-
return
|
|
14728
|
+
return u && (g = setTimeout(() => {
|
|
14682
14729
|
l(!1);
|
|
14683
14730
|
}, 2400)), () => {
|
|
14684
14731
|
g && clearTimeout(g);
|
|
14685
14732
|
};
|
|
14686
|
-
}, [
|
|
14687
|
-
if (!
|
|
14733
|
+
}, [u]), le.useEffect(() => {
|
|
14734
|
+
if (!d || !s.CONFIG_commentsV2 || !i || !document) return;
|
|
14688
14735
|
const g = document.getElementById("comment-button");
|
|
14689
14736
|
if (!g) return;
|
|
14690
14737
|
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");
|
|
14691
14738
|
v?.value?.trim() && E?.value?.trim() && N?.value?.trim() && g.click();
|
|
14692
14739
|
});
|
|
14693
14740
|
const f = oe("/Success.gif");
|
|
14694
|
-
return
|
|
14741
|
+
return u ? /* @__PURE__ */ n("div", { className: "success-gif-container su-flex-center su-relative", children: /* @__PURE__ */ n("img", { className: "success-gif su-absolute", src: f }) }) : /* @__PURE__ */ p(J, { children: [
|
|
14695
14742
|
h && s.CONFIG_commentsV2 && i && /* @__PURE__ */ n(ed, { API_ENV: s, icon: a, handleGoogleLogin: r, texts: o, onClose: (g) => {
|
|
14696
14743
|
g && m(!0), A(!1);
|
|
14697
14744
|
} }),
|
|
@@ -14700,7 +14747,7 @@ const td = {
|
|
|
14700
14747
|
{
|
|
14701
14748
|
type: "button",
|
|
14702
14749
|
onClick: async (g) => {
|
|
14703
|
-
if (!
|
|
14750
|
+
if (!d && s.CONFIG_commentsV2 && i) {
|
|
14704
14751
|
A(!0), console.log("open popup");
|
|
14705
14752
|
return;
|
|
14706
14753
|
}
|
|
@@ -14741,16 +14788,16 @@ const td = {
|
|
|
14741
14788
|
id: i,
|
|
14742
14789
|
addComment: o,
|
|
14743
14790
|
API_ENV: c,
|
|
14744
|
-
anonimusUser:
|
|
14791
|
+
anonimusUser: u
|
|
14745
14792
|
}) => {
|
|
14746
|
-
const l = t.current?.value || "", { PUBLIC_PUBLICATION_ID:
|
|
14747
|
-
if (console.log("check", r,
|
|
14793
|
+
const l = t.current?.value || "", { PUBLIC_PUBLICATION_ID: d } = c, m = d;
|
|
14794
|
+
if (console.log("check", r, u), !jt(t, s, c).boolean || !r && !u) {
|
|
14748
14795
|
console.log("warn");
|
|
14749
14796
|
const A = a.nextElementSibling;
|
|
14750
14797
|
return A && (A.style.display = "block"), !1;
|
|
14751
14798
|
}
|
|
14752
|
-
if (!r && !
|
|
14753
|
-
const h = r ? l : "[[" +
|
|
14799
|
+
if (!r && !u) return;
|
|
14800
|
+
const h = r ? l : "[[" + u + "]] " + l;
|
|
14754
14801
|
try {
|
|
14755
14802
|
const A = Date.now(), f = await fetch("/api/comments-add", {
|
|
14756
14803
|
method: "POST",
|
|
@@ -14774,7 +14821,7 @@ const td = {
|
|
|
14774
14821
|
throw new Error(
|
|
14775
14822
|
`Error al enviar comentario: ${g?.message} status: ${f.status}`
|
|
14776
14823
|
);
|
|
14777
|
-
const w = Date.now(), v = Math.max(0, 2400 + Math.abs(w - A)), E = r || { username:
|
|
14824
|
+
const w = Date.now(), v = Math.max(0, 2400 + Math.abs(w - A)), E = r || { username: u, firstname: u }, N = {
|
|
14778
14825
|
username: E.username,
|
|
14779
14826
|
firstname: E.firstname,
|
|
14780
14827
|
...E.lastname && { lastname: E.lastname },
|
|
@@ -14800,7 +14847,7 @@ const td = {
|
|
|
14800
14847
|
API_ENV: o,
|
|
14801
14848
|
texts: c
|
|
14802
14849
|
}) => {
|
|
14803
|
-
const [
|
|
14850
|
+
const [u, l] = $(!0), [d, m] = $(""), h = () => {
|
|
14804
14851
|
t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${Re}`), l(!0), i();
|
|
14805
14852
|
};
|
|
14806
14853
|
return /* @__PURE__ */ p("div", { className: "comment-form reply-form su-p-8 su-relative", children: [
|
|
@@ -14809,7 +14856,7 @@ const td = {
|
|
|
14809
14856
|
Bs,
|
|
14810
14857
|
{
|
|
14811
14858
|
commentRef: t,
|
|
14812
|
-
captchaToken:
|
|
14859
|
+
captchaToken: d,
|
|
14813
14860
|
setIsDisabled: l,
|
|
14814
14861
|
API_ENV: o,
|
|
14815
14862
|
texts: c
|
|
@@ -14819,18 +14866,18 @@ const td = {
|
|
|
14819
14866
|
Os,
|
|
14820
14867
|
{
|
|
14821
14868
|
commentRef: t,
|
|
14822
|
-
captchaToken:
|
|
14869
|
+
captchaToken: d,
|
|
14823
14870
|
setCaptchaToken: m,
|
|
14824
14871
|
API_ENV: o,
|
|
14825
14872
|
children: /* @__PURE__ */ n(
|
|
14826
14873
|
qs,
|
|
14827
14874
|
{
|
|
14828
14875
|
onClick: async (A) => {
|
|
14829
|
-
if (
|
|
14876
|
+
if (u) return;
|
|
14830
14877
|
const f = await Ms({
|
|
14831
14878
|
path: a,
|
|
14832
14879
|
ref: t,
|
|
14833
|
-
captchaToken:
|
|
14880
|
+
captchaToken: d,
|
|
14834
14881
|
button: A.currentTarget,
|
|
14835
14882
|
user: s,
|
|
14836
14883
|
id: e,
|
|
@@ -14841,7 +14888,7 @@ const td = {
|
|
|
14841
14888
|
h();
|
|
14842
14889
|
}, f), !0) : !1;
|
|
14843
14890
|
},
|
|
14844
|
-
isDisabled:
|
|
14891
|
+
isDisabled: u,
|
|
14845
14892
|
API_ENV: o,
|
|
14846
14893
|
texts: c
|
|
14847
14894
|
}
|
|
@@ -14853,11 +14900,11 @@ const td = {
|
|
|
14853
14900
|
replyingToLabel: "Respondiendo a"
|
|
14854
14901
|
}, ad = ({ reply: e, replyingTo: t, user: s, onFlag: a, DATE_CONFIG: r, texts: i }) => {
|
|
14855
14902
|
const o = { ...nd, ...i?.comentarios }, c = e.text;
|
|
14856
|
-
let
|
|
14857
|
-
return e.user && (
|
|
14903
|
+
let u = `${Ie.firstname} ${Ie.lastname ?? ""}`, l = Ie.username;
|
|
14904
|
+
return e.user && (u = `${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: [
|
|
14858
14905
|
/* @__PURE__ */ n(Ba, { user: e.user ? e.user : Ie }),
|
|
14859
14906
|
/* @__PURE__ */ p("div", { style: { flex: 1 }, children: [
|
|
14860
|
-
/* @__PURE__ */ n(Pa, { username:
|
|
14907
|
+
/* @__PURE__ */ n(Pa, { username: u, date: e.date.time, DATE_CONFIG: r }),
|
|
14861
14908
|
/* @__PURE__ */ p("div", { className: "comment-reply-to", children: [
|
|
14862
14909
|
o.replyingToLabel,
|
|
14863
14910
|
" ",
|
|
@@ -14871,17 +14918,17 @@ const td = {
|
|
|
14871
14918
|
}, rd = {
|
|
14872
14919
|
moreRepliesButton: "Más Respuestas"
|
|
14873
14920
|
}, id = ({ comment: e, replyingTo: t, path: s, user: a, handleReplyingTo: r, onFlag: i, API_ENV: o, texts: c }) => {
|
|
14874
|
-
const
|
|
14921
|
+
const u = { ...rd, ...c?.comentarios }, l = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [d, m] = $(l), [h, A] = le.useState(!1), { PUBLIC_PUBLICATION_ID: f, PUBLIC_X_SECURITY_TOKEN: g } = o, w = e.text, v = le.useRef(null);
|
|
14875
14922
|
let E = `${Ie.firstname} ${Ie.lastname ?? ""}`, N = Ie.username;
|
|
14876
14923
|
e.user && (E = `${e.user.firstname} ${e.user.lastname ?? ""}`, N = e.user.username);
|
|
14877
14924
|
const S = (b) => {
|
|
14878
|
-
m({ morereply:
|
|
14925
|
+
m({ morereply: d.morereply, reply: [b, ...d.reply] });
|
|
14879
14926
|
};
|
|
14880
14927
|
return /* @__PURE__ */ n("div", { className: "comment-item", children: /* @__PURE__ */ p(
|
|
14881
14928
|
"div",
|
|
14882
14929
|
{
|
|
14883
14930
|
className: "comment-header-container su-flex su-relative",
|
|
14884
|
-
"data-hasreplies":
|
|
14931
|
+
"data-hasreplies": d.reply.length > 0 ? "true" : "false",
|
|
14885
14932
|
children: [
|
|
14886
14933
|
/* @__PURE__ */ n(Ba, { user: e.user ? e.user : Ie }),
|
|
14887
14934
|
/* @__PURE__ */ p("div", { style: { flex: 1 }, children: [
|
|
@@ -14908,8 +14955,8 @@ const td = {
|
|
|
14908
14955
|
texts: c
|
|
14909
14956
|
}
|
|
14910
14957
|
),
|
|
14911
|
-
|
|
14912
|
-
|
|
14958
|
+
d.reply.length > 0 && /* @__PURE__ */ p("div", { className: "comment-replies", children: [
|
|
14959
|
+
d.reply.map((b) => /* @__PURE__ */ n(
|
|
14913
14960
|
ad,
|
|
14914
14961
|
{
|
|
14915
14962
|
user: a,
|
|
@@ -14921,12 +14968,12 @@ const td = {
|
|
|
14921
14968
|
},
|
|
14922
14969
|
b.id
|
|
14923
14970
|
)),
|
|
14924
|
-
h ? /* @__PURE__ */ n("div", { style: { marginLeft: "4rem", position: "relative" }, children: /* @__PURE__ */ n(Ls, {}) }) :
|
|
14971
|
+
h ? /* @__PURE__ */ n("div", { style: { marginLeft: "4rem", position: "relative" }, children: /* @__PURE__ */ n(Ls, {}) }) : d.morereply && /* @__PURE__ */ n(
|
|
14925
14972
|
"button",
|
|
14926
14973
|
{
|
|
14927
14974
|
className: "comment-replies-button reply-button su-flex-center su-rounded-full su-border-none su-relative",
|
|
14928
14975
|
onClick: async () => {
|
|
14929
|
-
const b =
|
|
14976
|
+
const b = d.reply[d.reply.length - 1]?.id;
|
|
14930
14977
|
A(!0);
|
|
14931
14978
|
try {
|
|
14932
14979
|
const R = await Ps({
|
|
@@ -14940,12 +14987,12 @@ const td = {
|
|
|
14940
14987
|
apiToken: g ?? "",
|
|
14941
14988
|
API_ENV: o
|
|
14942
14989
|
});
|
|
14943
|
-
A(!1), m({ morereply: R.morecomment, reply: [...
|
|
14990
|
+
A(!1), m({ morereply: R.morecomment, reply: [...d.reply, ...R.comments] });
|
|
14944
14991
|
} catch (I) {
|
|
14945
14992
|
throw A(!1), new Error(`Error al obtener comentarios: ${I}`);
|
|
14946
14993
|
}
|
|
14947
14994
|
},
|
|
14948
|
-
children:
|
|
14995
|
+
children: u.moreRepliesButton
|
|
14949
14996
|
}
|
|
14950
14997
|
)
|
|
14951
14998
|
] })
|
|
@@ -14961,13 +15008,13 @@ const td = {
|
|
|
14961
15008
|
API_ENV: r,
|
|
14962
15009
|
texts: i
|
|
14963
15010
|
}) => {
|
|
14964
|
-
const [o, c] = $(!0), [
|
|
15011
|
+
const [o, c] = $(!0), [u, l] = $("");
|
|
14965
15012
|
return /* @__PURE__ */ p("div", { className: "comment-form su-p-8 su-relative", children: [
|
|
14966
15013
|
/* @__PURE__ */ n(
|
|
14967
15014
|
Bs,
|
|
14968
15015
|
{
|
|
14969
15016
|
commentRef: e,
|
|
14970
|
-
captchaToken:
|
|
15017
|
+
captchaToken: u,
|
|
14971
15018
|
setIsDisabled: c,
|
|
14972
15019
|
API_ENV: r,
|
|
14973
15020
|
texts: i
|
|
@@ -14978,18 +15025,18 @@ const td = {
|
|
|
14978
15025
|
{
|
|
14979
15026
|
API_ENV: r,
|
|
14980
15027
|
commentRef: e,
|
|
14981
|
-
captchaToken:
|
|
15028
|
+
captchaToken: u,
|
|
14982
15029
|
setCaptchaToken: l,
|
|
14983
15030
|
children: /* @__PURE__ */ n(
|
|
14984
15031
|
qs,
|
|
14985
15032
|
{
|
|
14986
|
-
onClick: async (
|
|
15033
|
+
onClick: async (d) => {
|
|
14987
15034
|
if (o) return;
|
|
14988
15035
|
const m = await Ms({
|
|
14989
15036
|
path: s,
|
|
14990
15037
|
ref: e,
|
|
14991
|
-
captchaToken:
|
|
14992
|
-
button:
|
|
15038
|
+
captchaToken: u,
|
|
15039
|
+
button: d.currentTarget,
|
|
14993
15040
|
user: t,
|
|
14994
15041
|
addComment: a,
|
|
14995
15042
|
API_ENV: r
|
|
@@ -15033,7 +15080,7 @@ const td = {
|
|
|
15033
15080
|
API_ENV: o,
|
|
15034
15081
|
texts: c
|
|
15035
15082
|
}) => {
|
|
15036
|
-
const [
|
|
15083
|
+
const [u, l] = $(!0), [d, m] = $("");
|
|
15037
15084
|
return /* @__PURE__ */ n(J, { children: /* @__PURE__ */ p("div", { className: "comment-form anoninus-form su-p-8 su-relative", children: [
|
|
15038
15085
|
/* @__PURE__ */ n(
|
|
15039
15086
|
ld,
|
|
@@ -15046,7 +15093,7 @@ const td = {
|
|
|
15046
15093
|
Bs,
|
|
15047
15094
|
{
|
|
15048
15095
|
commentRef: t,
|
|
15049
|
-
captchaToken:
|
|
15096
|
+
captchaToken: d,
|
|
15050
15097
|
setIsDisabled: l,
|
|
15051
15098
|
API_ENV: o,
|
|
15052
15099
|
texts: c
|
|
@@ -15057,24 +15104,24 @@ const td = {
|
|
|
15057
15104
|
{
|
|
15058
15105
|
API_ENV: o,
|
|
15059
15106
|
commentRef: t,
|
|
15060
|
-
captchaToken:
|
|
15107
|
+
captchaToken: d,
|
|
15061
15108
|
setCaptchaToken: m,
|
|
15062
15109
|
children: /* @__PURE__ */ n(
|
|
15063
15110
|
qs,
|
|
15064
15111
|
{
|
|
15065
15112
|
onClick: async (A) => {
|
|
15066
|
-
if (
|
|
15113
|
+
if (u) {
|
|
15067
15114
|
console.log("error");
|
|
15068
15115
|
return;
|
|
15069
15116
|
}
|
|
15070
|
-
if (!jt(t,
|
|
15117
|
+
if (!jt(t, d, o).boolean) {
|
|
15071
15118
|
console.log("invalidForm");
|
|
15072
15119
|
return;
|
|
15073
15120
|
}
|
|
15074
15121
|
const f = e.current.value, g = await Ms({
|
|
15075
15122
|
path: s,
|
|
15076
15123
|
ref: t,
|
|
15077
|
-
captchaToken:
|
|
15124
|
+
captchaToken: d,
|
|
15078
15125
|
button: A.currentTarget,
|
|
15079
15126
|
user: void 0,
|
|
15080
15127
|
addComment: i,
|
|
@@ -15085,7 +15132,7 @@ const td = {
|
|
|
15085
15132
|
t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${Re}`), l(!0);
|
|
15086
15133
|
}, g), !0) : !1;
|
|
15087
15134
|
},
|
|
15088
|
-
isDisabled:
|
|
15135
|
+
isDisabled: u,
|
|
15089
15136
|
API_ENV: o,
|
|
15090
15137
|
handleGoogleLogin: r,
|
|
15091
15138
|
icon: a,
|
|
@@ -15116,7 +15163,7 @@ const td = {
|
|
|
15116
15163
|
API_ENV: o,
|
|
15117
15164
|
texts: c
|
|
15118
15165
|
}) => {
|
|
15119
|
-
const
|
|
15166
|
+
const u = { ...ud, ...c?.comentarios }, { PUBLIC_PUBLICATION_ID: l, PUBLIC_X_SECURITY_TOKEN: d } = o, m = l ?? "", h = t.replaceAll("/", "|"), [A, f] = $(
|
|
15120
15167
|
void 0
|
|
15121
15168
|
), [g, w] = $(""), { comments: v, setComments: E } = Jl(h, o), [N, S] = le.useState(!1), b = le.useRef(null), I = le.useRef(null), R = (x) => {
|
|
15122
15169
|
w(g === x ? "" : x);
|
|
@@ -15144,7 +15191,7 @@ const td = {
|
|
|
15144
15191
|
id: void 0,
|
|
15145
15192
|
lastid: U,
|
|
15146
15193
|
state: "5,6",
|
|
15147
|
-
apiToken:
|
|
15194
|
+
apiToken: d,
|
|
15148
15195
|
API_ENV: o
|
|
15149
15196
|
});
|
|
15150
15197
|
E({
|
|
@@ -15154,11 +15201,11 @@ const td = {
|
|
|
15154
15201
|
} catch (D) {
|
|
15155
15202
|
throw S(!1), new Error(`Error al obtener comentarios: ${D}`);
|
|
15156
15203
|
}
|
|
15157
|
-
}, L = v?.comments && v.comments.length > 0, H = L ?
|
|
15204
|
+
}, L = v?.comments && v.comments.length > 0, H = L ? u.commentHeaderMessageWithComments : u.commentHeaderMessageEmpty, se = /* @__PURE__ */ n("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ n(Ls, {}) }), M = () => {
|
|
15158
15205
|
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = "/auth/login");
|
|
15159
15206
|
};
|
|
15160
15207
|
return /* @__PURE__ */ p(J, { children: [
|
|
15161
|
-
/* @__PURE__ */ n("div", { className: "comments-container", children: /* @__PURE__ */ n(he, { title: o.CONFIG_commentsV2 || L || e ?
|
|
15208
|
+
/* @__PURE__ */ n("div", { className: "comments-container", children: /* @__PURE__ */ n(he, { title: o.CONFIG_commentsV2 || L || e ? u.commentsSectionTitle : !1, children: /* @__PURE__ */ p(J, { children: [
|
|
15162
15209
|
/* @__PURE__ */ n("div", { className: "comments-header", children: e && s ? /* @__PURE__ */ p(J, { children: [
|
|
15163
15210
|
/* @__PURE__ */ n(
|
|
15164
15211
|
Nl,
|
|
@@ -15182,9 +15229,9 @@ const td = {
|
|
|
15182
15229
|
)
|
|
15183
15230
|
] }) : o.CONFIG_commentsV2 ? /* @__PURE__ */ p(J, { children: [
|
|
15184
15231
|
/* @__PURE__ */ p("p", { className: "anonimus-message", children: [
|
|
15185
|
-
|
|
15186
|
-
/* @__PURE__ */ n("button", { className: "su-border-none su-p-0", onClick: M, children:
|
|
15187
|
-
|
|
15232
|
+
u.anonimusPromptPrefix,
|
|
15233
|
+
/* @__PURE__ */ n("button", { className: "su-border-none su-p-0", onClick: M, children: u.anonimusPromptLinkText }),
|
|
15234
|
+
u.anonimusPromptSuffix
|
|
15188
15235
|
] }),
|
|
15189
15236
|
/* @__PURE__ */ n(
|
|
15190
15237
|
dd,
|
|
@@ -15229,7 +15276,7 @@ const td = {
|
|
|
15229
15276
|
{
|
|
15230
15277
|
className: "comment-replies-button su-flex-center su-rounded-full",
|
|
15231
15278
|
onClick: j,
|
|
15232
|
-
children:
|
|
15279
|
+
children: u.loadMoreButton
|
|
15233
15280
|
}
|
|
15234
15281
|
)
|
|
15235
15282
|
] }) }) }),
|
|
@@ -15256,7 +15303,7 @@ function hd({
|
|
|
15256
15303
|
checkAuth: i,
|
|
15257
15304
|
icon: o,
|
|
15258
15305
|
API_ENV: c,
|
|
15259
|
-
texts:
|
|
15306
|
+
texts: u
|
|
15260
15307
|
// termsAndConditionsUrl,
|
|
15261
15308
|
}) {
|
|
15262
15309
|
return /* @__PURE__ */ n(J, { children: /* @__PURE__ */ n(
|
|
@@ -15287,7 +15334,7 @@ function hd({
|
|
|
15287
15334
|
path: r,
|
|
15288
15335
|
user: e ? a : void 0,
|
|
15289
15336
|
API_ENV: c,
|
|
15290
|
-
texts:
|
|
15337
|
+
texts: u
|
|
15291
15338
|
}
|
|
15292
15339
|
) });
|
|
15293
15340
|
}
|
|
@@ -15298,23 +15345,23 @@ function fd({
|
|
|
15298
15345
|
API_ENV: a,
|
|
15299
15346
|
texts: r
|
|
15300
15347
|
}) {
|
|
15301
|
-
const [i, o] = $(null), [c,
|
|
15348
|
+
const [i, o] = $(null), [c, u] = $(null), l = a?.COGNITO_AUTH_PREFIX ?? "ASTRO_", d = ce(async () => {
|
|
15302
15349
|
if (e) {
|
|
15303
15350
|
if (document.cookie.search(l + "IS_AUTH=true") === -1) {
|
|
15304
|
-
o(!1),
|
|
15351
|
+
o(!1), u(null);
|
|
15305
15352
|
return;
|
|
15306
15353
|
}
|
|
15307
15354
|
try {
|
|
15308
15355
|
const g = await (await fetch("/api/auth/user", { credentials: "include" })).json();
|
|
15309
|
-
o(g.isAuthenticated ?? !1),
|
|
15356
|
+
o(g.isAuthenticated ?? !1), u(g.user ?? null), document.cookie = "redirect_after_login_1=; Max-Age=0; path=/";
|
|
15310
15357
|
} catch (f) {
|
|
15311
|
-
console.error("Error checking auth:", f), o(!1),
|
|
15358
|
+
console.error("Error checking auth:", f), o(!1), u(null);
|
|
15312
15359
|
}
|
|
15313
15360
|
}
|
|
15314
15361
|
}, [e, l]);
|
|
15315
15362
|
Te(() => {
|
|
15316
|
-
|
|
15317
|
-
}, [
|
|
15363
|
+
d();
|
|
15364
|
+
}, [d, e]), Te(() => {
|
|
15318
15365
|
if (!c || !e || typeof window > "u") return;
|
|
15319
15366
|
const f = window;
|
|
15320
15367
|
if (typeof f != "function") {
|
|
@@ -15342,7 +15389,7 @@ function fd({
|
|
|
15342
15389
|
setIsAuthenticated: o,
|
|
15343
15390
|
loginUrl: m,
|
|
15344
15391
|
user: c ?? void 0,
|
|
15345
|
-
checkAuth:
|
|
15392
|
+
checkAuth: d,
|
|
15346
15393
|
path: A,
|
|
15347
15394
|
API_ENV: a,
|
|
15348
15395
|
texts: r
|
|
@@ -15403,7 +15450,7 @@ async function ju({
|
|
|
15403
15450
|
recaptchaResponse: i,
|
|
15404
15451
|
baseUrl: o,
|
|
15405
15452
|
apiToken: c,
|
|
15406
|
-
securityToken:
|
|
15453
|
+
securityToken: u,
|
|
15407
15454
|
COMMENTS_VARS: l
|
|
15408
15455
|
}) {
|
|
15409
15456
|
if (console.log("Adding comment with data:", {
|
|
@@ -15431,8 +15478,8 @@ async function ju({
|
|
|
15431
15478
|
message: "El comentario no puede estar vacío.",
|
|
15432
15479
|
status: 400
|
|
15433
15480
|
};
|
|
15434
|
-
const
|
|
15435
|
-
if (console.log("Verifying captcha token...",
|
|
15481
|
+
const d = await xa(i, l);
|
|
15482
|
+
if (console.log("Verifying captcha token...", d), !d)
|
|
15436
15483
|
return {
|
|
15437
15484
|
type: "error",
|
|
15438
15485
|
message: "Captcha inválido. Intenta nuevamente.",
|
|
@@ -15449,7 +15496,7 @@ async function ju({
|
|
|
15449
15496
|
const { data: f } = await re.get(`${m}?${A.toString()}`, {
|
|
15450
15497
|
headers: {
|
|
15451
15498
|
"Content-Type": "application/json",
|
|
15452
|
-
"x-security-token":
|
|
15499
|
+
"x-security-token": u,
|
|
15453
15500
|
"x-api-token": c,
|
|
15454
15501
|
"User-Agent": "amplifyapp-comments-saas"
|
|
15455
15502
|
}
|
|
@@ -15641,7 +15688,7 @@ const qa = async (e, t) => {
|
|
|
15641
15688
|
) }),
|
|
15642
15689
|
/* @__PURE__ */ p("div", { className: "sass-bd-dnfw-containerCards", children: [
|
|
15643
15690
|
/* @__PURE__ */ n("div", { className: "banner-context", style: { order: 1 }, children: e.banner }),
|
|
15644
|
-
/* @__PURE__ */ n("div", { className: "sass-bd-dnfw-newsContent", children: Array.isArray(i) && i.map((c,
|
|
15691
|
+
/* @__PURE__ */ n("div", { className: "sass-bd-dnfw-newsContent", children: Array.isArray(i) && i.map((c, u) => {
|
|
15645
15692
|
const l = {
|
|
15646
15693
|
...c,
|
|
15647
15694
|
main: {
|
|
@@ -15652,14 +15699,14 @@ const qa = async (e, t) => {
|
|
|
15652
15699
|
}
|
|
15653
15700
|
}
|
|
15654
15701
|
};
|
|
15655
|
-
return /* @__PURE__ */ n("div", { style: { order:
|
|
15702
|
+
return /* @__PURE__ */ n("div", { style: { order: u }, children: /* @__PURE__ */ n(
|
|
15656
15703
|
ke,
|
|
15657
15704
|
{
|
|
15658
15705
|
...l,
|
|
15659
15706
|
isVideo: a,
|
|
15660
15707
|
paths: e.paths
|
|
15661
15708
|
}
|
|
15662
|
-
) },
|
|
15709
|
+
) }, u);
|
|
15663
15710
|
}) })
|
|
15664
15711
|
] })
|
|
15665
15712
|
] });
|
|
@@ -15793,8 +15840,8 @@ const Bn = {
|
|
|
15793
15840
|
banners: i,
|
|
15794
15841
|
showTagBySection: o
|
|
15795
15842
|
}) => {
|
|
15796
|
-
const c = [], l = t,
|
|
15797
|
-
for (let m = 1; m <=
|
|
15843
|
+
const c = [], l = t, d = Object.keys(e).length / l;
|
|
15844
|
+
for (let m = 1; m <= d; m++)
|
|
15798
15845
|
for (let h = 1; h <= l; h++) {
|
|
15799
15846
|
const A = "Home_" + m + "_" + h;
|
|
15800
15847
|
!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(
|
|
@@ -15876,10 +15923,10 @@ const Bn = {
|
|
|
15876
15923
|
}) => {
|
|
15877
15924
|
const { PUBLIC_ENV: r } = q();
|
|
15878
15925
|
if (r !== "local") return null;
|
|
15879
|
-
const i = e?.news?.data || [], o = (c,
|
|
15926
|
+
const i = e?.news?.data || [], o = (c, u) => ({
|
|
15880
15927
|
...e?.news,
|
|
15881
15928
|
...t[c],
|
|
15882
|
-
data: i.slice(0,
|
|
15929
|
+
data: i.slice(0, u),
|
|
15883
15930
|
paths: s.paths
|
|
15884
15931
|
});
|
|
15885
15932
|
return /* @__PURE__ */ p(J, { children: [
|