sass-template-common 0.2.41 → 0.2.43
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.
|
@@ -157,7 +157,7 @@ function Mr() {
|
|
|
157
157
|
(function(n, r) {
|
|
158
158
|
e.exports = r();
|
|
159
159
|
})(Ws, (function() {
|
|
160
|
-
var n = 1e3, r = 6e4, s = 36e5, o = "millisecond", i = "second", c = "minute", d = "hour", l = "day", u = "week",
|
|
160
|
+
var n = 1e3, r = 6e4, s = 36e5, o = "millisecond", i = "second", c = "minute", d = "hour", l = "day", u = "week", h = "month", m = "quarter", p = "year", g = "date", A = "Invalid Date", y = /^(\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, N = { 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) {
|
|
161
161
|
var U = ["th", "st", "nd", "rd"], T = M % 100;
|
|
162
162
|
return "[" + M + (U[(T - 20) % 10] || U[T] || U[0]) + "]";
|
|
163
163
|
} }, _ = function(M, U, T) {
|
|
@@ -168,12 +168,12 @@ function Mr() {
|
|
|
168
168
|
return (U <= 0 ? "+" : "-") + _(D, 2, "0") + ":" + _(I, 2, "0");
|
|
169
169
|
}, m: function M(U, T) {
|
|
170
170
|
if (U.date() < T.date()) return -M(T, U);
|
|
171
|
-
var D = 12 * (T.year() - U.year()) + (T.month() - U.month()), I = U.clone().add(D,
|
|
171
|
+
var D = 12 * (T.year() - U.year()) + (T.month() - U.month()), I = U.clone().add(D, h), z = T - I < 0, w = U.clone().add(D + (z ? -1 : 1), h);
|
|
172
172
|
return +(-(D + (T - I) / (z ? I - w : w - I)) || 0);
|
|
173
173
|
}, a: function(M) {
|
|
174
174
|
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
|
175
175
|
}, p: function(M) {
|
|
176
|
-
return { M:
|
|
176
|
+
return { M: h, y: p, w: u, d: l, D: g, h: d, m: c, s: i, ms: o, Q: m }[M] || String(M || "").toLowerCase().replace(/s$/, "");
|
|
177
177
|
}, u: function(M) {
|
|
178
178
|
return M === void 0;
|
|
179
179
|
} }, b = "en", E = {};
|
|
@@ -251,7 +251,7 @@ function Mr() {
|
|
|
251
251
|
switch (w) {
|
|
252
252
|
case p:
|
|
253
253
|
return z ? S(1, 0) : S(31, 11);
|
|
254
|
-
case
|
|
254
|
+
case h:
|
|
255
255
|
return z ? S(1, L) : S(0, L + 1);
|
|
256
256
|
case u:
|
|
257
257
|
var F = this.$locale().weekStart || 0, Z = (j < F ? j + 7 : j) - F;
|
|
@@ -271,8 +271,8 @@ function Mr() {
|
|
|
271
271
|
}, U.endOf = function(T) {
|
|
272
272
|
return this.startOf(T, !1);
|
|
273
273
|
}, U.$set = function(T, D) {
|
|
274
|
-
var I, z = P.p(T), w = "set" + (this.$u ? "UTC" : ""), S = (I = {}, I[l] = w + "Date", I[g] = w + "Date", I[
|
|
275
|
-
if (z ===
|
|
274
|
+
var I, z = P.p(T), w = "set" + (this.$u ? "UTC" : ""), S = (I = {}, I[l] = w + "Date", I[g] = w + "Date", I[h] = w + "Month", I[p] = w + "FullYear", I[d] = w + "Hours", I[c] = w + "Minutes", I[i] = w + "Seconds", I[o] = w + "Milliseconds", I)[z], q = z === l ? this.$D + (D - this.$W) : D;
|
|
275
|
+
if (z === h || z === p) {
|
|
276
276
|
var j = this.clone().set(g, 1);
|
|
277
277
|
j.$d[S](q), j.init(), this.$d = j.set(g, Math.min(this.$D, j.daysInMonth())).$d;
|
|
278
278
|
} else S && this.$d[S](q);
|
|
@@ -288,7 +288,7 @@ function Mr() {
|
|
|
288
288
|
var H = G(z);
|
|
289
289
|
return P.w(H.date(H.date() + Math.round(L * T)), z);
|
|
290
290
|
};
|
|
291
|
-
if (w ===
|
|
291
|
+
if (w === h) return this.set(h, this.$M + T);
|
|
292
292
|
if (w === p) return this.set(p, this.$y + T);
|
|
293
293
|
if (w === l) return S(1);
|
|
294
294
|
if (w === u) return S(7);
|
|
@@ -372,10 +372,10 @@ function Mr() {
|
|
|
372
372
|
case p:
|
|
373
373
|
z = H() / 12;
|
|
374
374
|
break;
|
|
375
|
-
case
|
|
375
|
+
case h:
|
|
376
376
|
z = H();
|
|
377
377
|
break;
|
|
378
|
-
case
|
|
378
|
+
case m:
|
|
379
379
|
z = H() / 3;
|
|
380
380
|
break;
|
|
381
381
|
case u:
|
|
@@ -398,7 +398,7 @@ function Mr() {
|
|
|
398
398
|
}
|
|
399
399
|
return I ? z : P.a(z);
|
|
400
400
|
}, U.daysInMonth = function() {
|
|
401
|
-
return this.endOf(
|
|
401
|
+
return this.endOf(h).$D;
|
|
402
402
|
}, U.$locale = function() {
|
|
403
403
|
return E[this.$L];
|
|
404
404
|
}, U.locale = function(T, D) {
|
|
@@ -417,7 +417,7 @@ function Mr() {
|
|
|
417
417
|
return this.$d.toUTCString();
|
|
418
418
|
}, M;
|
|
419
419
|
})(), ce = ee.prototype;
|
|
420
|
-
return G.prototype = ce, [["$ms", o], ["$s", i], ["$m", c], ["$H", d], ["$W", l], ["$M",
|
|
420
|
+
return G.prototype = ce, [["$ms", o], ["$s", i], ["$m", c], ["$H", d], ["$W", l], ["$M", h], ["$y", p], ["$D", g]].forEach((function(M) {
|
|
421
421
|
ce[M[1]] = function(U) {
|
|
422
422
|
return this.$g(U, M[0], M[1]);
|
|
423
423
|
};
|
|
@@ -440,13 +440,13 @@ function Js() {
|
|
|
440
440
|
return function(n, r, s) {
|
|
441
441
|
n = n || {};
|
|
442
442
|
var o = r.prototype, i = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
443
|
-
function c(l, u,
|
|
444
|
-
return o.fromToBase(l, u,
|
|
443
|
+
function c(l, u, h, m) {
|
|
444
|
+
return o.fromToBase(l, u, h, m);
|
|
445
445
|
}
|
|
446
|
-
s.en.relativeTime = i, o.fromToBase = function(l, u,
|
|
447
|
-
for (var g, A, y, v =
|
|
446
|
+
s.en.relativeTime = i, o.fromToBase = function(l, u, h, m, p) {
|
|
447
|
+
for (var g, A, y, v = h.$locale().relativeTime || i, N = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], _ = N.length, x = 0; x < _; x += 1) {
|
|
448
448
|
var b = N[x];
|
|
449
|
-
b.d && (g =
|
|
449
|
+
b.d && (g = m ? s(l).diff(h, b.d, !0) : h.diff(l, b.d, !0));
|
|
450
450
|
var E = (n.rounding || Math.round)(Math.abs(g));
|
|
451
451
|
if (y = g > 0, E <= b.r || !b.r) {
|
|
452
452
|
E <= 1 && x > 0 && (b = N[x - 1]);
|
|
@@ -523,10 +523,10 @@ function ao() {
|
|
|
523
523
|
this.$y = A.getUTCFullYear(), this.$M = A.getUTCMonth(), this.$D = A.getUTCDate(), this.$W = A.getUTCDay(), this.$H = A.getUTCHours(), this.$m = A.getUTCMinutes(), this.$s = A.getUTCSeconds(), this.$ms = A.getUTCMilliseconds();
|
|
524
524
|
} else u.call(this);
|
|
525
525
|
};
|
|
526
|
-
var
|
|
526
|
+
var h = d.utcOffset;
|
|
527
527
|
d.utcOffset = function(A, y) {
|
|
528
528
|
var v = this.$utils().u;
|
|
529
|
-
if (v(A)) return this.$u ? 0 : v(this.$offset) ?
|
|
529
|
+
if (v(A)) return this.$u ? 0 : v(this.$offset) ? h.call(this) : this.$offset;
|
|
530
530
|
if (typeof A == "string" && (A = (function(b) {
|
|
531
531
|
b === void 0 && (b = "");
|
|
532
532
|
var E = b.match(r);
|
|
@@ -541,10 +541,10 @@ function ao() {
|
|
|
541
541
|
var x = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
542
542
|
return (_ = this.local().add(N + x, n)).$offset = N, _.$x.$localOffset = x, _;
|
|
543
543
|
};
|
|
544
|
-
var
|
|
544
|
+
var m = d.format;
|
|
545
545
|
d.format = function(A) {
|
|
546
546
|
var y = A || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
547
|
-
return
|
|
547
|
+
return m.call(this, y);
|
|
548
548
|
}, d.valueOf = function() {
|
|
549
549
|
var A = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
550
550
|
return this.$d.valueOf() - 6e4 * A;
|
|
@@ -579,56 +579,56 @@ function io() {
|
|
|
579
579
|
})(oo, (function() {
|
|
580
580
|
var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, r = {};
|
|
581
581
|
return function(s, o, i) {
|
|
582
|
-
var c, d = function(
|
|
582
|
+
var c, d = function(m, p, g) {
|
|
583
583
|
g === void 0 && (g = {});
|
|
584
|
-
var A = new Date(
|
|
584
|
+
var A = new Date(m), y = (function(v, N) {
|
|
585
585
|
N === void 0 && (N = {});
|
|
586
586
|
var _ = N.timeZoneName || "short", x = v + "|" + _, b = r[x];
|
|
587
587
|
return b || (b = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: v, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: _ }), r[x] = b), b;
|
|
588
588
|
})(p, g);
|
|
589
589
|
return y.formatToParts(A);
|
|
590
|
-
}, l = function(
|
|
591
|
-
for (var g = d(
|
|
590
|
+
}, l = function(m, p) {
|
|
591
|
+
for (var g = d(m, p), A = [], y = 0; y < g.length; y += 1) {
|
|
592
592
|
var v = g[y], N = v.type, _ = v.value, x = n[N];
|
|
593
593
|
x >= 0 && (A[x] = parseInt(_, 10));
|
|
594
594
|
}
|
|
595
|
-
var b = A[3], E = b === 24 ? 0 : b, O = A[0] + "-" + A[1] + "-" + A[2] + " " + E + ":" + A[4] + ":" + A[5] + ":000", Q = +
|
|
595
|
+
var b = A[3], E = b === 24 ? 0 : b, O = A[0] + "-" + A[1] + "-" + A[2] + " " + E + ":" + A[4] + ":" + A[5] + ":000", Q = +m;
|
|
596
596
|
return (i.utc(O).valueOf() - (Q -= Q % 1e3)) / 6e4;
|
|
597
597
|
}, u = o.prototype;
|
|
598
|
-
u.tz = function(
|
|
599
|
-
|
|
600
|
-
var g, A = this.utcOffset(), y = this.toDate(), v = y.toLocaleString("en-US", { timeZone:
|
|
598
|
+
u.tz = function(m, p) {
|
|
599
|
+
m === void 0 && (m = c);
|
|
600
|
+
var g, A = this.utcOffset(), y = this.toDate(), v = y.toLocaleString("en-US", { timeZone: m }), N = Math.round((y - new Date(v)) / 1e3 / 60), _ = 15 * -Math.round(y.getTimezoneOffset() / 15) - N;
|
|
601
601
|
if (!Number(_)) g = this.utcOffset(0, p);
|
|
602
602
|
else if (g = i(v, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(_, !0), p) {
|
|
603
603
|
var x = g.utcOffset();
|
|
604
604
|
g = g.add(A - x, "minute");
|
|
605
605
|
}
|
|
606
|
-
return g.$x.$timezone =
|
|
607
|
-
}, u.offsetName = function(
|
|
608
|
-
var p = this.$x.$timezone || i.tz.guess(), g = d(this.valueOf(), p, { timeZoneName:
|
|
606
|
+
return g.$x.$timezone = m, g;
|
|
607
|
+
}, u.offsetName = function(m) {
|
|
608
|
+
var p = this.$x.$timezone || i.tz.guess(), g = d(this.valueOf(), p, { timeZoneName: m }).find((function(A) {
|
|
609
609
|
return A.type.toLowerCase() === "timezonename";
|
|
610
610
|
}));
|
|
611
611
|
return g && g.value;
|
|
612
612
|
};
|
|
613
|
-
var
|
|
614
|
-
u.startOf = function(
|
|
615
|
-
if (!this.$x || !this.$x.$timezone) return
|
|
613
|
+
var h = u.startOf;
|
|
614
|
+
u.startOf = function(m, p) {
|
|
615
|
+
if (!this.$x || !this.$x.$timezone) return h.call(this, m, p);
|
|
616
616
|
var g = i(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
617
|
-
return
|
|
618
|
-
}, i.tz = function(
|
|
617
|
+
return h.call(g, m, p).tz(this.$x.$timezone, !0);
|
|
618
|
+
}, i.tz = function(m, p, g) {
|
|
619
619
|
var A = g && p, y = g || p || c, v = l(+i(), y);
|
|
620
|
-
if (typeof
|
|
620
|
+
if (typeof m != "string") return i(m).tz(y);
|
|
621
621
|
var N = (function(E, O, Q) {
|
|
622
622
|
var te = E - 60 * O * 1e3, G = l(te, Q);
|
|
623
623
|
if (O === G) return [te, O];
|
|
624
624
|
var P = l(te -= 60 * (G - O) * 1e3, Q);
|
|
625
625
|
return G === P ? [te, G] : [E - 60 * Math.min(G, P) * 1e3, Math.max(G, P)];
|
|
626
|
-
})(i.utc(
|
|
626
|
+
})(i.utc(m, A).valueOf(), v, y), _ = N[0], x = N[1], b = i(_).utcOffset(x);
|
|
627
627
|
return b.$x.$timezone = y, b;
|
|
628
628
|
}, i.tz.guess = function() {
|
|
629
629
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
630
|
-
}, i.tz.setDefault = function(
|
|
631
|
-
c =
|
|
630
|
+
}, i.tz.setDefault = function(m) {
|
|
631
|
+
c = m;
|
|
632
632
|
};
|
|
633
633
|
};
|
|
634
634
|
}));
|
|
@@ -1156,9 +1156,9 @@ const Io = async ({
|
|
|
1156
1156
|
logow: t.socialBlockLogo?.width,
|
|
1157
1157
|
logoh: t.socialBlockLogo?.height,
|
|
1158
1158
|
authorurl: n + "/autor/"
|
|
1159
|
-
}, u = e.split("/")[1],
|
|
1159
|
+
}, u = e.split("/")[1], h = u == "liveblogs" || u == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], m = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema, p = s !== "false" && o !== "false" ? "/" + s + m : m;
|
|
1160
1160
|
i = (await Promise.all(
|
|
1161
|
-
|
|
1161
|
+
h.map(async (A) => {
|
|
1162
1162
|
const y = A === "/news-breadcrumb" ? { ...l, prefixtag: p } : l;
|
|
1163
1163
|
return await fa(y, A, r);
|
|
1164
1164
|
})
|
|
@@ -1850,24 +1850,24 @@ function xn(e, t, n) {
|
|
|
1850
1850
|
}
|
|
1851
1851
|
return ta(g) ? !0 : (t.append(Qa(y, A, o), l(g)), !1);
|
|
1852
1852
|
}
|
|
1853
|
-
const
|
|
1853
|
+
const h = [], m = Object.assign(_i, {
|
|
1854
1854
|
defaultVisitor: u,
|
|
1855
1855
|
convertValue: l,
|
|
1856
1856
|
isVisitable: ta
|
|
1857
1857
|
});
|
|
1858
1858
|
function p(g, A) {
|
|
1859
1859
|
if (!C.isUndefined(g)) {
|
|
1860
|
-
if (
|
|
1860
|
+
if (h.indexOf(g) !== -1)
|
|
1861
1861
|
throw Error("Circular reference detected in " + A.join("."));
|
|
1862
|
-
|
|
1862
|
+
h.push(g), C.forEach(g, function(v, N) {
|
|
1863
1863
|
(!(C.isUndefined(v) || v === null) && s.call(
|
|
1864
1864
|
t,
|
|
1865
1865
|
v,
|
|
1866
1866
|
C.isString(N) ? N.trim() : N,
|
|
1867
1867
|
A,
|
|
1868
|
-
|
|
1868
|
+
m
|
|
1869
1869
|
)) === !0 && p(v, A ? A.concat(N) : [N]);
|
|
1870
|
-
}),
|
|
1870
|
+
}), h.pop();
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
1873
|
if (!C.isObject(e))
|
|
@@ -2187,8 +2187,8 @@ let _e = class {
|
|
|
2187
2187
|
const u = It(d);
|
|
2188
2188
|
if (!u)
|
|
2189
2189
|
throw new Error("header name must be a non-empty string");
|
|
2190
|
-
const
|
|
2191
|
-
(!
|
|
2190
|
+
const h = C.findKey(s, u);
|
|
2191
|
+
(!h || s[h] === void 0 || l === !0 || l === void 0 && s[h] !== !1) && (s[h || d] = mn(c));
|
|
2192
2192
|
}
|
|
2193
2193
|
const i = (c, d) => C.forEach(c, (l, u) => o(l, u, d));
|
|
2194
2194
|
if (C.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -2351,13 +2351,13 @@ function zi(e, t) {
|
|
|
2351
2351
|
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
2352
2352
|
const l = Date.now(), u = r[o];
|
|
2353
2353
|
i || (i = l), n[s] = d, r[s] = l;
|
|
2354
|
-
let
|
|
2355
|
-
for (;
|
|
2356
|
-
|
|
2354
|
+
let h = o, m = 0;
|
|
2355
|
+
for (; h !== s; )
|
|
2356
|
+
m += n[h++], h = h % e;
|
|
2357
2357
|
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), l - i < t)
|
|
2358
2358
|
return;
|
|
2359
2359
|
const p = u && l - u;
|
|
2360
|
-
return p ? Math.round(
|
|
2360
|
+
return p ? Math.round(m * 1e3 / p) : void 0;
|
|
2361
2361
|
};
|
|
2362
2362
|
}
|
|
2363
2363
|
function Vi(e, t) {
|
|
@@ -2366,10 +2366,10 @@ function Vi(e, t) {
|
|
|
2366
2366
|
n = u, s = null, o && (clearTimeout(o), o = null), e(...l);
|
|
2367
2367
|
};
|
|
2368
2368
|
return [(...l) => {
|
|
2369
|
-
const u = Date.now(),
|
|
2370
|
-
|
|
2369
|
+
const u = Date.now(), h = u - n;
|
|
2370
|
+
h >= r ? i(l, u) : (s = l, o || (o = setTimeout(() => {
|
|
2371
2371
|
o = null, i(s);
|
|
2372
|
-
}, r -
|
|
2372
|
+
}, r - h)));
|
|
2373
2373
|
}, () => s && i(s)];
|
|
2374
2374
|
}
|
|
2375
2375
|
const An = (e, t, n = 3) => {
|
|
@@ -2378,7 +2378,7 @@ const An = (e, t, n = 3) => {
|
|
|
2378
2378
|
return Vi((o) => {
|
|
2379
2379
|
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, d = i - r, l = s(d), u = i <= c;
|
|
2380
2380
|
r = i;
|
|
2381
|
-
const
|
|
2381
|
+
const h = {
|
|
2382
2382
|
loaded: i,
|
|
2383
2383
|
total: c,
|
|
2384
2384
|
progress: c ? i / c : void 0,
|
|
@@ -2389,7 +2389,7 @@ const An = (e, t, n = 3) => {
|
|
|
2389
2389
|
lengthComputable: c != null,
|
|
2390
2390
|
[t ? "download" : "upload"]: !0
|
|
2391
2391
|
};
|
|
2392
|
-
e(
|
|
2392
|
+
e(h);
|
|
2393
2393
|
}, n);
|
|
2394
2394
|
}, Va = (e, t) => {
|
|
2395
2395
|
const n = e != null;
|
|
@@ -2444,14 +2444,14 @@ const $a = (e) => e instanceof _e ? { ...e } : e;
|
|
|
2444
2444
|
function mt(e, t) {
|
|
2445
2445
|
t = t || {};
|
|
2446
2446
|
const n = {};
|
|
2447
|
-
function r(l, u,
|
|
2448
|
-
return C.isPlainObject(l) && C.isPlainObject(u) ? C.merge.call({ caseless:
|
|
2447
|
+
function r(l, u, h, m) {
|
|
2448
|
+
return C.isPlainObject(l) && C.isPlainObject(u) ? C.merge.call({ caseless: m }, l, u) : C.isPlainObject(u) ? C.merge({}, u) : C.isArray(u) ? u.slice() : u;
|
|
2449
2449
|
}
|
|
2450
|
-
function s(l, u,
|
|
2450
|
+
function s(l, u, h, m) {
|
|
2451
2451
|
if (C.isUndefined(u)) {
|
|
2452
2452
|
if (!C.isUndefined(l))
|
|
2453
|
-
return r(void 0, l,
|
|
2454
|
-
} else return r(l, u,
|
|
2453
|
+
return r(void 0, l, h, m);
|
|
2454
|
+
} else return r(l, u, h, m);
|
|
2455
2455
|
}
|
|
2456
2456
|
function o(l, u) {
|
|
2457
2457
|
if (!C.isUndefined(u))
|
|
@@ -2463,10 +2463,10 @@ function mt(e, t) {
|
|
|
2463
2463
|
return r(void 0, l);
|
|
2464
2464
|
} else return r(void 0, u);
|
|
2465
2465
|
}
|
|
2466
|
-
function c(l, u,
|
|
2467
|
-
if (
|
|
2466
|
+
function c(l, u, h) {
|
|
2467
|
+
if (h in t)
|
|
2468
2468
|
return r(l, u);
|
|
2469
|
-
if (
|
|
2469
|
+
if (h in e)
|
|
2470
2470
|
return r(void 0, l);
|
|
2471
2471
|
}
|
|
2472
2472
|
const d = {
|
|
@@ -2498,11 +2498,11 @@ function mt(e, t) {
|
|
|
2498
2498
|
socketPath: i,
|
|
2499
2499
|
responseEncoding: i,
|
|
2500
2500
|
validateStatus: c,
|
|
2501
|
-
headers: (l, u,
|
|
2501
|
+
headers: (l, u, h) => s($a(l), $a(u), h, !0)
|
|
2502
2502
|
};
|
|
2503
2503
|
return C.forEach(Object.keys({ ...e, ...t }), function(u) {
|
|
2504
|
-
const
|
|
2505
|
-
C.isUndefined(
|
|
2504
|
+
const h = d[u] || s, m = h(e[u], t[u], u);
|
|
2505
|
+
C.isUndefined(m) && h !== c || (n[u] = m);
|
|
2506
2506
|
}), n;
|
|
2507
2507
|
}
|
|
2508
2508
|
const ls = (e) => {
|
|
@@ -2516,8 +2516,8 @@ const ls = (e) => {
|
|
|
2516
2516
|
i.setContentType(void 0);
|
|
2517
2517
|
else if (C.isFunction(n.getHeaders)) {
|
|
2518
2518
|
const d = n.getHeaders(), l = ["content-type", "content-length"];
|
|
2519
|
-
Object.entries(d).forEach(([u,
|
|
2520
|
-
l.includes(u.toLowerCase()) && i.set(u,
|
|
2519
|
+
Object.entries(d).forEach(([u, h]) => {
|
|
2520
|
+
l.includes(u.toLowerCase()) && i.set(u, h);
|
|
2521
2521
|
});
|
|
2522
2522
|
}
|
|
2523
2523
|
}
|
|
@@ -2531,7 +2531,7 @@ const ls = (e) => {
|
|
|
2531
2531
|
const s = ls(e);
|
|
2532
2532
|
let o = s.data;
|
|
2533
2533
|
const i = _e.from(s.headers).normalize();
|
|
2534
|
-
let { responseType: c, onUploadProgress: d, onDownloadProgress: l } = s, u,
|
|
2534
|
+
let { responseType: c, onUploadProgress: d, onDownloadProgress: l } = s, u, h, m, p, g;
|
|
2535
2535
|
function A() {
|
|
2536
2536
|
p && p(), g && g(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
2537
2537
|
}
|
|
@@ -2574,7 +2574,7 @@ const ls = (e) => {
|
|
|
2574
2574
|
)), y = null;
|
|
2575
2575
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in y && C.forEach(i.toJSON(), function(x, b) {
|
|
2576
2576
|
y.setRequestHeader(b, x);
|
|
2577
|
-
}), C.isUndefined(s.withCredentials) || (y.withCredentials = !!s.withCredentials), c && c !== "json" && (y.responseType = s.responseType), l && ([
|
|
2577
|
+
}), C.isUndefined(s.withCredentials) || (y.withCredentials = !!s.withCredentials), c && c !== "json" && (y.responseType = s.responseType), l && ([m, g] = An(l, !0), y.addEventListener("progress", m)), d && y.upload && ([h, p] = An(d), y.upload.addEventListener("progress", h), y.upload.addEventListener("loadend", p)), (s.cancelToken || s.signal) && (u = (_) => {
|
|
2578
2578
|
y && (r(!_ || _.type ? new St(null, e, y) : _), y.abort(), y = null);
|
|
2579
2579
|
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
2580
2580
|
const N = Hi(s.url);
|
|
@@ -2648,10 +2648,10 @@ const ls = (e) => {
|
|
|
2648
2648
|
c(), d.close();
|
|
2649
2649
|
return;
|
|
2650
2650
|
}
|
|
2651
|
-
let
|
|
2651
|
+
let h = u.byteLength;
|
|
2652
2652
|
if (n) {
|
|
2653
|
-
let
|
|
2654
|
-
n(
|
|
2653
|
+
let m = o += h;
|
|
2654
|
+
n(m);
|
|
2655
2655
|
}
|
|
2656
2656
|
d.enqueue(new Uint8Array(u));
|
|
2657
2657
|
} catch (l) {
|
|
@@ -2693,18 +2693,18 @@ const ls = (e) => {
|
|
|
2693
2693
|
}
|
|
2694
2694
|
}).headers.has("Content-Type");
|
|
2695
2695
|
return g && !A;
|
|
2696
|
-
}), u = i && c && Za(() => C.isReadableStream(new r("").body)),
|
|
2696
|
+
}), u = i && c && Za(() => C.isReadableStream(new r("").body)), h = {
|
|
2697
2697
|
stream: u && ((g) => g.body)
|
|
2698
2698
|
};
|
|
2699
2699
|
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((g) => {
|
|
2700
|
-
!
|
|
2700
|
+
!h[g] && (h[g] = (A, y) => {
|
|
2701
2701
|
let v = A && A[g];
|
|
2702
2702
|
if (v)
|
|
2703
2703
|
return v.call(A);
|
|
2704
2704
|
throw new W(`Response type '${g}' is not supported`, W.ERR_NOT_SUPPORT, y);
|
|
2705
2705
|
});
|
|
2706
2706
|
});
|
|
2707
|
-
const
|
|
2707
|
+
const m = async (g) => {
|
|
2708
2708
|
if (g == null)
|
|
2709
2709
|
return 0;
|
|
2710
2710
|
if (C.isBlob(g))
|
|
@@ -2720,7 +2720,7 @@ const ls = (e) => {
|
|
|
2720
2720
|
return (await d(g)).byteLength;
|
|
2721
2721
|
}, p = async (g, A) => {
|
|
2722
2722
|
const y = C.toFiniteNumber(g.getContentLength());
|
|
2723
|
-
return y ??
|
|
2723
|
+
return y ?? m(A);
|
|
2724
2724
|
};
|
|
2725
2725
|
return async (g) => {
|
|
2726
2726
|
let {
|
|
@@ -2788,7 +2788,7 @@ const ls = (e) => {
|
|
|
2788
2788
|
);
|
|
2789
2789
|
}
|
|
2790
2790
|
O = O || "text";
|
|
2791
|
-
let w = await
|
|
2791
|
+
let w = await h[C.findKey(h, O) || "text"](I, g);
|
|
2792
2792
|
return !z && M && M(), await new Promise((S, q) => {
|
|
2793
2793
|
is(S, q, {
|
|
2794
2794
|
data: w,
|
|
@@ -3016,17 +3016,17 @@ let ut = class {
|
|
|
3016
3016
|
this.interceptors.response.forEach(function(A) {
|
|
3017
3017
|
l.push(A.fulfilled, A.rejected);
|
|
3018
3018
|
});
|
|
3019
|
-
let u,
|
|
3019
|
+
let u, h = 0, m;
|
|
3020
3020
|
if (!d) {
|
|
3021
3021
|
const g = [er.bind(this), void 0];
|
|
3022
|
-
for (g.unshift(...c), g.push(...l),
|
|
3023
|
-
u = u.then(g[
|
|
3022
|
+
for (g.unshift(...c), g.push(...l), m = g.length, u = Promise.resolve(n); h < m; )
|
|
3023
|
+
u = u.then(g[h++], g[h++]);
|
|
3024
3024
|
return u;
|
|
3025
3025
|
}
|
|
3026
|
-
|
|
3026
|
+
m = c.length;
|
|
3027
3027
|
let p = n;
|
|
3028
|
-
for (;
|
|
3029
|
-
const g = c[
|
|
3028
|
+
for (; h < m; ) {
|
|
3029
|
+
const g = c[h++], A = c[h++];
|
|
3030
3030
|
try {
|
|
3031
3031
|
p = g(p);
|
|
3032
3032
|
} catch (y) {
|
|
@@ -3039,8 +3039,8 @@ let ut = class {
|
|
|
3039
3039
|
} catch (g) {
|
|
3040
3040
|
return Promise.reject(g);
|
|
3041
3041
|
}
|
|
3042
|
-
for (
|
|
3043
|
-
u = u.then(l[
|
|
3042
|
+
for (h = 0, m = l.length; h < m; )
|
|
3043
|
+
u = u.then(l[h++], l[h++]);
|
|
3044
3044
|
return u;
|
|
3045
3045
|
}
|
|
3046
3046
|
getUri(t) {
|
|
@@ -3331,14 +3331,15 @@ class at {
|
|
|
3331
3331
|
}).catch((n) => (console.log(`[/news] Error: ${n.message}`), Promise.reject(n)));
|
|
3332
3332
|
getNewsMultimedia = (t) => this.props?.axiosApi.get("/news-items-multimedia", { params: t }).catch((n) => (console.log(`[/news-items-multimedia] Error: ${n.message}`), Promise.reject(n)));
|
|
3333
3333
|
getNewsItemsList = (t) => this.props?.axiosApi.get("/news-items-list", { params: t }).catch((n) => (console.log(`[/news-items-list] Error: ${n.message}`), Promise.reject(n)));
|
|
3334
|
-
getNewsItemsRelated = (t) => this.props?.axiosApi.get("/news-items-related", {
|
|
3334
|
+
getNewsItemsRelated = (t, n) => this.props?.axiosApi.get("/news-items-related", {
|
|
3335
3335
|
params: {
|
|
3336
3336
|
path: t,
|
|
3337
3337
|
// size: NewsListSizes['Carrusel card'].size,
|
|
3338
3338
|
imagesizes: this.props?.imgSizes.md,
|
|
3339
|
-
exclude: this.exclude
|
|
3339
|
+
exclude: this.exclude,
|
|
3340
|
+
...n
|
|
3340
3341
|
}
|
|
3341
|
-
}).catch((
|
|
3342
|
+
}).catch((r) => (console.log(`[/news-items-related] Error: ${r.message}`), { data: { data: [] } }));
|
|
3342
3343
|
sendEmail = (t) => this.props?.axiosApi.post("/send/email", t, {
|
|
3343
3344
|
headers: {
|
|
3344
3345
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
@@ -3455,24 +3456,24 @@ const W9 = async (e, t, n, r, s, o, i) => {
|
|
|
3455
3456
|
axiosApi: e,
|
|
3456
3457
|
exclude: i
|
|
3457
3458
|
}), d = [];
|
|
3458
|
-
for (let
|
|
3459
|
-
for (let
|
|
3459
|
+
for (let h = 1; h <= s; h++)
|
|
3460
|
+
for (let m = 1; m <= o; m++)
|
|
3460
3461
|
d.push({
|
|
3461
3462
|
func: c.getBlockSass,
|
|
3462
|
-
slot_id:
|
|
3463
|
+
slot_id: h + "_" + m
|
|
3463
3464
|
});
|
|
3464
3465
|
const l = await Promise.allSettled([
|
|
3465
|
-
...d.map((
|
|
3466
|
+
...d.map((h) => h.func({ template: "Home_" + h.slot_id }))
|
|
3466
3467
|
]);
|
|
3467
3468
|
return (() => {
|
|
3468
|
-
const
|
|
3469
|
-
for (let
|
|
3469
|
+
const h = {};
|
|
3470
|
+
for (let m = 0; m < l.length; m++) {
|
|
3470
3471
|
const p = ho(
|
|
3471
|
-
l[
|
|
3472
|
-
), g = "Home_" + (Math.floor(
|
|
3473
|
-
p && (
|
|
3472
|
+
l[m]
|
|
3473
|
+
), g = "Home_" + (Math.floor(m / o) + 1) + "_" + (Math.floor(m % o) + 1);
|
|
3474
|
+
p && (h[g] = { ...p });
|
|
3474
3475
|
}
|
|
3475
|
-
return
|
|
3476
|
+
return h;
|
|
3476
3477
|
})();
|
|
3477
3478
|
}, hc = (e) => {
|
|
3478
3479
|
const t = Qr(e);
|
|
@@ -3535,11 +3536,11 @@ const W9 = async (e, t, n, r, s, o, i) => {
|
|
|
3535
3536
|
page: d
|
|
3536
3537
|
});
|
|
3537
3538
|
if (!u) return ve(t);
|
|
3538
|
-
const
|
|
3539
|
-
return
|
|
3539
|
+
const h = u.data.data, m = h[0];
|
|
3540
|
+
return h.length < l || c.push({ rel: "next", url: $t(n, i, d) }), d > 1 && c.push({ rel: "prev", url: Wt(n, i, d) }), {
|
|
3540
3541
|
...t,
|
|
3541
|
-
title: `Últimas Noticias de ${
|
|
3542
|
-
description: `Todas las últimas noticias de ${
|
|
3542
|
+
title: `Últimas Noticias de ${m.info.section?.name} | ${n.name}`,
|
|
3543
|
+
description: `Todas las últimas noticias de ${m.info.section?.name} en ${n.name}`,
|
|
3543
3544
|
alternates: {
|
|
3544
3545
|
...t.alternates,
|
|
3545
3546
|
canonical: n.siteUrl + r
|
|
@@ -3553,13 +3554,13 @@ const W9 = async (e, t, n, r, s, o, i) => {
|
|
|
3553
3554
|
"msapplication-TileImage": n.msapplicationTileImage ?? ""
|
|
3554
3555
|
},
|
|
3555
3556
|
openGraph: {
|
|
3556
|
-
title: `${
|
|
3557
|
+
title: `${m.info.section?.name}`,
|
|
3557
3558
|
type: "website",
|
|
3558
3559
|
url: `${n.siteUrl}${r}`
|
|
3559
3560
|
},
|
|
3560
3561
|
twitter: {
|
|
3561
3562
|
card: "summary_large_image",
|
|
3562
|
-
title: `${
|
|
3563
|
+
title: `${m.info.section?.name}`,
|
|
3563
3564
|
domain: n.siteUrl,
|
|
3564
3565
|
url: `${n.siteUrl}${r}`
|
|
3565
3566
|
}
|
|
@@ -3569,12 +3570,12 @@ const W9 = async (e, t, n, r, s, o, i) => {
|
|
|
3569
3570
|
}
|
|
3570
3571
|
},
|
|
3571
3572
|
tema: async (e) => {
|
|
3572
|
-
const { meta: t, config: n, pathname: r, slug: s } = e, o = new at(), i = r.split("/"), c = [], d = Yt(r), l = Number(n.newsListLimit) ?? 0, u = /([t][0-9]{4})\w+/.exec(s || ""),
|
|
3573
|
+
const { meta: t, config: n, pathname: r, slug: s } = e, o = new at(), i = r.split("/"), c = [], d = Yt(r), l = Number(n.newsListLimit) ?? 0, u = /([t][0-9]{4})\w+/.exec(s || ""), h = u && u?.length > 0 ? u[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: m } = K();
|
|
3573
3574
|
try {
|
|
3574
3575
|
const p = await o.getNewsListTags({
|
|
3575
|
-
tagid:
|
|
3576
|
+
tagid: h,
|
|
3576
3577
|
size: l,
|
|
3577
|
-
tagtype: Number(
|
|
3578
|
+
tagtype: Number(m),
|
|
3578
3579
|
newstype: n.newsType,
|
|
3579
3580
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
3580
3581
|
page: d
|
|
@@ -3740,7 +3741,7 @@ const W9 = async (e, t, n, r, s, o, i) => {
|
|
|
3740
3741
|
user: o,
|
|
3741
3742
|
exclude: "groups",
|
|
3742
3743
|
imagesizes: s.sm
|
|
3743
|
-
}),
|
|
3744
|
+
}), h = await i.getNewsListAutor({
|
|
3744
3745
|
size: Number(n.newsListLimit) ?? 0,
|
|
3745
3746
|
user: o,
|
|
3746
3747
|
page: l,
|
|
@@ -3748,7 +3749,7 @@ const W9 = async (e, t, n, r, s, o, i) => {
|
|
|
3748
3749
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
3749
3750
|
imagesizes: s.md
|
|
3750
3751
|
});
|
|
3751
|
-
return
|
|
3752
|
+
return h ? (h.data.data.length < Number(n.newsListLimit) || d.push({
|
|
3752
3753
|
rel: "next",
|
|
3753
3754
|
url: $t(n, c, l)
|
|
3754
3755
|
}), l > 1 && d.push({
|
|
@@ -3796,8 +3797,8 @@ async function K9({
|
|
|
3796
3797
|
query: d,
|
|
3797
3798
|
currentNew: l,
|
|
3798
3799
|
banners: u,
|
|
3799
|
-
internalPath:
|
|
3800
|
-
config:
|
|
3800
|
+
internalPath: h,
|
|
3801
|
+
config: m,
|
|
3801
3802
|
socials: p,
|
|
3802
3803
|
speculationType: g = "Common",
|
|
3803
3804
|
preloadImageUrl: A,
|
|
@@ -3808,7 +3809,7 @@ async function K9({
|
|
|
3808
3809
|
}) {
|
|
3809
3810
|
const x = v || await mc[s]({
|
|
3810
3811
|
meta: n,
|
|
3811
|
-
config:
|
|
3812
|
+
config: m,
|
|
3812
3813
|
currentNew: l,
|
|
3813
3814
|
pathname: o,
|
|
3814
3815
|
imgSizes: r,
|
|
@@ -3818,16 +3819,16 @@ async function K9({
|
|
|
3818
3819
|
}), b = yo(x), E = N || zr[s]({
|
|
3819
3820
|
pathname: o,
|
|
3820
3821
|
slug: i,
|
|
3821
|
-
config:
|
|
3822
|
+
config: m,
|
|
3822
3823
|
currentNew: l,
|
|
3823
|
-
internalPath:
|
|
3824
|
+
internalPath: h
|
|
3824
3825
|
});
|
|
3825
3826
|
return /* @__PURE__ */ f(Y, { children: [
|
|
3826
3827
|
/* @__PURE__ */ a("meta", { charSet: "utf-8" }),
|
|
3827
3828
|
/* @__PURE__ */ a("meta", { name: "viewport", content: "width=device-width" }),
|
|
3828
3829
|
b,
|
|
3829
3830
|
/* @__PURE__ */ a(vo, {}),
|
|
3830
|
-
t.ampConfig &&
|
|
3831
|
+
t.ampConfig && m.ampOption && t.ampConfig_slugIsValid && /* @__PURE__ */ a("link", { rel: "amphtml", href: m.siteUrl + "/amp" + o }),
|
|
3831
3832
|
t.preloadImages && l && l.preview?.sizes && /* @__PURE__ */ a(
|
|
3832
3833
|
Ma,
|
|
3833
3834
|
{
|
|
@@ -3844,7 +3845,7 @@ async function K9({
|
|
|
3844
3845
|
}
|
|
3845
3846
|
),
|
|
3846
3847
|
t.preloadImages && A && /* @__PURE__ */ a(Ma, { images: A }),
|
|
3847
|
-
/* @__PURE__ */ a(Ro, { config:
|
|
3848
|
+
/* @__PURE__ */ a(Ro, { config: m }),
|
|
3848
3849
|
/* @__PURE__ */ a(
|
|
3849
3850
|
Hr,
|
|
3850
3851
|
{
|
|
@@ -3853,39 +3854,39 @@ async function K9({
|
|
|
3853
3854
|
banners: u
|
|
3854
3855
|
}
|
|
3855
3856
|
),
|
|
3856
|
-
t.schemas_NewsArticle &&
|
|
3857
|
+
t.schemas_NewsArticle && h && /* @__PURE__ */ a(
|
|
3857
3858
|
Io,
|
|
3858
3859
|
{
|
|
3859
|
-
BASE_URL:
|
|
3860
|
-
config:
|
|
3861
|
-
realPath:
|
|
3860
|
+
BASE_URL: m.siteUrl,
|
|
3861
|
+
config: m,
|
|
3862
|
+
realPath: h,
|
|
3862
3863
|
axiosApi: e
|
|
3863
3864
|
}
|
|
3864
3865
|
),
|
|
3865
|
-
/* @__PURE__ */ a(ko, { config:
|
|
3866
|
-
t.schemas_Videos &&
|
|
3866
|
+
/* @__PURE__ */ a(ko, { config: m, socials: p }),
|
|
3867
|
+
t.schemas_Videos && h && /* @__PURE__ */ a(
|
|
3867
3868
|
qo,
|
|
3868
3869
|
{
|
|
3869
3870
|
axiosApi: e,
|
|
3870
|
-
realPath:
|
|
3871
|
-
config:
|
|
3871
|
+
realPath: h,
|
|
3872
|
+
config: m
|
|
3872
3873
|
}
|
|
3873
3874
|
),
|
|
3874
3875
|
t.schemas_ItemList && /* @__PURE__ */ a(
|
|
3875
3876
|
To,
|
|
3876
3877
|
{
|
|
3877
|
-
config:
|
|
3878
|
+
config: m,
|
|
3878
3879
|
ROUTE: s,
|
|
3879
3880
|
pathname: o,
|
|
3880
3881
|
axiosApi: e
|
|
3881
3882
|
}
|
|
3882
3883
|
),
|
|
3883
|
-
t.schemas_WebsiteList && /* @__PURE__ */ a(Uo, { config:
|
|
3884
|
+
t.schemas_WebsiteList && /* @__PURE__ */ a(Uo, { config: m }),
|
|
3884
3885
|
/* @__PURE__ */ a(
|
|
3885
3886
|
Eo,
|
|
3886
3887
|
{
|
|
3887
3888
|
type: g,
|
|
3888
|
-
active:
|
|
3889
|
+
active: m.useSpeculationRules,
|
|
3889
3890
|
customSpeculation: y
|
|
3890
3891
|
}
|
|
3891
3892
|
),
|
|
@@ -3905,19 +3906,19 @@ const J9 = ({
|
|
|
3905
3906
|
scriptReplaces: l,
|
|
3906
3907
|
body_custom_elements: u
|
|
3907
3908
|
}) => {
|
|
3908
|
-
const
|
|
3909
|
+
const h = zs(c, d), m = zr[t]({
|
|
3909
3910
|
pathname: r,
|
|
3910
3911
|
slug: s,
|
|
3911
3912
|
config: o,
|
|
3912
3913
|
currentNew: c,
|
|
3913
3914
|
internalPath: i
|
|
3914
|
-
}), p = l.before.active, g = l.after.active, A = p ? l.before.customData ? l.before.customData :
|
|
3915
|
+
}), p = l.before.active, g = l.after.active, A = p ? l.before.customData ? l.before.customData : m : void 0, y = g ? l.after.customData ? l.after.customData : m : void 0;
|
|
3915
3916
|
return /* @__PURE__ */ f(Y, { children: [
|
|
3916
3917
|
/* @__PURE__ */ a(Hr, { name: "bodybefore", banners: n, replaces: A }),
|
|
3917
3918
|
e,
|
|
3918
3919
|
/* @__PURE__ */ a($s, {}),
|
|
3919
3920
|
/* @__PURE__ */ a(Hs, {}),
|
|
3920
|
-
/* @__PURE__ */ a(Vs, { dimensionValues:
|
|
3921
|
+
/* @__PURE__ */ a(Vs, { dimensionValues: h }),
|
|
3921
3922
|
/* @__PURE__ */ a(Fs, {}),
|
|
3922
3923
|
u,
|
|
3923
3924
|
/* @__PURE__ */ a(wo, { name: "bodyafter", banners: n, replaces: y })
|
|
@@ -3963,7 +3964,7 @@ function vc({
|
|
|
3963
3964
|
enableDrag: o,
|
|
3964
3965
|
onIndexChange: i
|
|
3965
3966
|
}) {
|
|
3966
|
-
const [c, d] = J(!1), [l, u] = J(0), [
|
|
3967
|
+
const [c, d] = J(!1), [l, u] = J(0), [h, m] = J(0), [p, g] = J(0), [A, y] = J(0), [v, N] = J(null), _ = Pr(null), [x, b] = J(1), E = he(() => {
|
|
3967
3968
|
if (s) return 1;
|
|
3968
3969
|
const w = _.current?.offsetWidth || window.innerWidth, S = n + r, q = Math.floor(w / S);
|
|
3969
3970
|
return Math.max(1, q);
|
|
@@ -4003,14 +4004,14 @@ function vc({
|
|
|
4003
4004
|
[s, n, r, E, te]
|
|
4004
4005
|
), ee = he(
|
|
4005
4006
|
(w) => {
|
|
4006
|
-
o && (u(w),
|
|
4007
|
+
o && (u(w), m(w), g(0), y(Date.now()), d(!0), document.body.classList.add("dragging"));
|
|
4007
4008
|
},
|
|
4008
4009
|
[o]
|
|
4009
4010
|
), ce = he(
|
|
4010
4011
|
(w) => {
|
|
4011
4012
|
if (!c || !o) return;
|
|
4012
4013
|
const S = w - l, q = (n + r) * 1.2, j = e === 0 && S > 0, L = e === Q && S < 0, H = j || L ? Math.sign(S) * Math.min(Math.abs(S), q) : S;
|
|
4013
|
-
|
|
4014
|
+
m(w), g(H);
|
|
4014
4015
|
},
|
|
4015
4016
|
[c, l, o, e, Q, n, r]
|
|
4016
4017
|
), M = he(
|
|
@@ -4021,7 +4022,7 @@ function vc({
|
|
|
4021
4022
|
), U = he(
|
|
4022
4023
|
(w) => {
|
|
4023
4024
|
if (!c || !o) return;
|
|
4024
|
-
const S =
|
|
4025
|
+
const S = h - l, q = Date.now() - A, j = Math.abs(S) / Math.max(q, 1), L = P(S), V = j > 0.5 && Math.abs(S) > 50 ? Math.max(L, 1) : L;
|
|
4025
4026
|
if (V > 0)
|
|
4026
4027
|
if (S > 0) {
|
|
4027
4028
|
const F = Math.max(0, e - V);
|
|
@@ -4034,7 +4035,7 @@ function vc({
|
|
|
4034
4035
|
},
|
|
4035
4036
|
[
|
|
4036
4037
|
c,
|
|
4037
|
-
|
|
4038
|
+
h,
|
|
4038
4039
|
l,
|
|
4039
4040
|
A,
|
|
4040
4041
|
e,
|
|
@@ -4100,7 +4101,7 @@ function X9(e) {
|
|
|
4100
4101
|
fullPageWidth: i = !1,
|
|
4101
4102
|
pagination: c = !1,
|
|
4102
4103
|
enableDrag: d = !0
|
|
4103
|
-
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [u,
|
|
4104
|
+
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [u, h] = J(0), [m, p] = J(!1);
|
|
4104
4105
|
De(() => {
|
|
4105
4106
|
p(!0);
|
|
4106
4107
|
const G = document.getElementById("ssr-dummy_" + n);
|
|
@@ -4121,11 +4122,11 @@ function X9(e) {
|
|
|
4121
4122
|
cardGap: o,
|
|
4122
4123
|
fullPageWidth: i,
|
|
4123
4124
|
enableDrag: d,
|
|
4124
|
-
onIndexChange:
|
|
4125
|
+
onIndexChange: h
|
|
4125
4126
|
}), b = he(
|
|
4126
4127
|
(G) => {
|
|
4127
4128
|
const P = Math.max(0, Math.min(G, v));
|
|
4128
|
-
|
|
4129
|
+
h(P);
|
|
4129
4130
|
},
|
|
4130
4131
|
[v]
|
|
4131
4132
|
), E = he(() => {
|
|
@@ -4133,7 +4134,7 @@ function X9(e) {
|
|
|
4133
4134
|
}, [u, b]), O = he(() => {
|
|
4134
4135
|
b(u + 1);
|
|
4135
4136
|
}, [u, b]);
|
|
4136
|
-
if (!
|
|
4137
|
+
if (!m) return;
|
|
4137
4138
|
const Q = N(u, A), te = i ? `translateX(${Q}%)` : `translateX(${Q}px)`;
|
|
4138
4139
|
return /* @__PURE__ */ f("div", { className: `${n}- carrousel-container`, children: [
|
|
4139
4140
|
u > 0 && /* @__PURE__ */ a(
|
|
@@ -4519,7 +4520,7 @@ const xt = (e) => {
|
|
|
4519
4520
|
if (e?.config?.showtime)
|
|
4520
4521
|
return Me(e.info?.date?.modified);
|
|
4521
4522
|
}, d = () => {
|
|
4522
|
-
const
|
|
4523
|
+
const h = {
|
|
4523
4524
|
"--fontSizeSubTitle": e.fontSizeSubTitle,
|
|
4524
4525
|
"--lineHeightSubTitle": e.lineHeightSubTitle,
|
|
4525
4526
|
"--colorSubTitle": e.colorSubTitle
|
|
@@ -4531,34 +4532,34 @@ const xt = (e) => {
|
|
|
4531
4532
|
dangerouslySetInnerHTML: {
|
|
4532
4533
|
__html: e.main.subtitle.rendered ?? e.main.subtitle.striped ?? ""
|
|
4533
4534
|
},
|
|
4534
|
-
style:
|
|
4535
|
+
style: h
|
|
4535
4536
|
}
|
|
4536
4537
|
);
|
|
4537
4538
|
}, l = () => e.main.uppertitle ? /* @__PURE__ */ a("p", { className: re.uppertitle, title: e.main.uppertitle, children: e.main.uppertitle }) : null, u = () => {
|
|
4538
4539
|
if (i && r?.tags?.length && r.tags.length > 0) {
|
|
4539
|
-
const
|
|
4540
|
+
const h = r.tags[0], m = h.name;
|
|
4540
4541
|
return /* @__PURE__ */ f("h3", { className: re.sectionDescriptionContainer, children: [
|
|
4541
|
-
|
|
4542
|
+
h.approved ? /* @__PURE__ */ a(
|
|
4542
4543
|
B,
|
|
4543
4544
|
{
|
|
4544
|
-
"aria-label":
|
|
4545
|
+
"aria-label": m,
|
|
4545
4546
|
className: re.sectionDescription,
|
|
4546
|
-
href: vt(
|
|
4547
|
-
children:
|
|
4547
|
+
href: vt(h, o),
|
|
4548
|
+
children: m
|
|
4548
4549
|
}
|
|
4549
|
-
) : /* @__PURE__ */ a("div", { className: re.sectionDescription, children:
|
|
4550
|
+
) : /* @__PURE__ */ a("div", { className: re.sectionDescription, children: m }),
|
|
4550
4551
|
l()
|
|
4551
4552
|
] });
|
|
4552
4553
|
} else if (s?.section?.url) {
|
|
4553
|
-
const
|
|
4554
|
+
const h = s.section.name;
|
|
4554
4555
|
return /* @__PURE__ */ f("h3", { className: re.sectionDescriptionContainer, children: [
|
|
4555
4556
|
/* @__PURE__ */ a(
|
|
4556
4557
|
B,
|
|
4557
4558
|
{
|
|
4558
|
-
"aria-label":
|
|
4559
|
+
"aria-label": h,
|
|
4559
4560
|
className: re.sectionDescription,
|
|
4560
4561
|
href: s.section.url,
|
|
4561
|
-
children:
|
|
4562
|
+
children: h
|
|
4562
4563
|
}
|
|
4563
4564
|
),
|
|
4564
4565
|
l()
|
|
@@ -6581,9 +6582,9 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6581
6582
|
}, wn = (e) => {
|
|
6582
6583
|
const { currentPage: t, showNext: n, maxPages: r, pathname: s, query: o } = e, i = (c, d, l) => {
|
|
6583
6584
|
let u = "";
|
|
6584
|
-
const
|
|
6585
|
-
return
|
|
6586
|
-
p !== 0 && (u += `/${
|
|
6585
|
+
const h = d.split("/");
|
|
6586
|
+
return h.indexOf("page") !== -1 && h.splice(u.indexOf("page") - 1, h.length - 1), h.forEach((m, p) => {
|
|
6587
|
+
p !== 0 && (u += `/${m}`);
|
|
6587
6588
|
}), c === "next" ? u += `/page/${t + 1}${l ? `?query=${l}` : ""}` : u += `/page/${t - 1}${l ? `?query=${l}` : ""}`;
|
|
6588
6589
|
};
|
|
6589
6590
|
return (t > 1 || n && t < r) && /* @__PURE__ */ f("section", { className: Bn.content, children: [
|
|
@@ -6637,8 +6638,8 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6637
6638
|
overImage: d = "default",
|
|
6638
6639
|
isTitle: l,
|
|
6639
6640
|
priorityHigh: u = !1,
|
|
6640
|
-
isLarge:
|
|
6641
|
-
paths:
|
|
6641
|
+
isLarge: h,
|
|
6642
|
+
paths: m,
|
|
6642
6643
|
keywords: p
|
|
6643
6644
|
} = e;
|
|
6644
6645
|
return /* @__PURE__ */ f(
|
|
@@ -6662,7 +6663,7 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6662
6663
|
{
|
|
6663
6664
|
preview: s,
|
|
6664
6665
|
isVideo: i,
|
|
6665
|
-
isLarge:
|
|
6666
|
+
isLarge: h,
|
|
6666
6667
|
priorityHigh: u
|
|
6667
6668
|
}
|
|
6668
6669
|
)
|
|
@@ -6679,7 +6680,7 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6679
6680
|
config: c,
|
|
6680
6681
|
overImage: d,
|
|
6681
6682
|
isTitle: l,
|
|
6682
|
-
paths:
|
|
6683
|
+
paths: m,
|
|
6683
6684
|
keywords: p
|
|
6684
6685
|
}
|
|
6685
6686
|
) })
|
|
@@ -6884,7 +6885,7 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6884
6885
|
contenSocialNetwork: X1,
|
|
6885
6886
|
socialIcon: eu
|
|
6886
6887
|
}, tu = async (e) => {
|
|
6887
|
-
const { autor: t, autorIcon: n } = e, r = n, s = t?.info?.image?.sizes?.[0]?.url ?? "", o = t?.info?.fullname ?? "", i = t?.info?.email ?? "", c = t?.addtional?.USER_SHOWEMAIL ?? !1, d = t?.addtional?.USER_SHOWBIO ?? !1, l = t?.addtional?.USER_MIBIO ?? "", u = t?.addtional?.USER_USERFB ?? "",
|
|
6888
|
+
const { autor: t, autorIcon: n } = e, r = n, s = t?.info?.image?.sizes?.[0]?.url ?? "", o = t?.info?.fullname ?? "", i = t?.info?.email ?? "", c = t?.addtional?.USER_SHOWEMAIL ?? !1, d = t?.addtional?.USER_SHOWBIO ?? !1, l = t?.addtional?.USER_MIBIO ?? "", u = t?.addtional?.USER_USERFB ?? "", h = t?.addtional?.USER_USERIG ?? "", m = t?.addtional?.USER_USERTWT ?? "", p = t?.addtional?.USER_USERLIN ?? "";
|
|
6888
6889
|
return /* @__PURE__ */ a(
|
|
6889
6890
|
"section",
|
|
6890
6891
|
{
|
|
@@ -6919,19 +6920,19 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6919
6920
|
children: /* @__PURE__ */ a(_a, { className: Ne.socialIcon })
|
|
6920
6921
|
}
|
|
6921
6922
|
),
|
|
6922
|
-
|
|
6923
|
+
h && /* @__PURE__ */ a(
|
|
6923
6924
|
"a",
|
|
6924
6925
|
{
|
|
6925
|
-
href:
|
|
6926
|
+
href: h,
|
|
6926
6927
|
target: "_blank",
|
|
6927
6928
|
rel: "noreferrer",
|
|
6928
6929
|
children: /* @__PURE__ */ a(Na, { className: Ne.socialIcon })
|
|
6929
6930
|
}
|
|
6930
6931
|
),
|
|
6931
|
-
|
|
6932
|
+
m && /* @__PURE__ */ a(
|
|
6932
6933
|
"a",
|
|
6933
6934
|
{
|
|
6934
|
-
href:
|
|
6935
|
+
href: m,
|
|
6935
6936
|
target: "_blank",
|
|
6936
6937
|
rel: "noreferrer",
|
|
6937
6938
|
children: /* @__PURE__ */ a(jt, { className: Ne.socialIcon })
|
|
@@ -6962,7 +6963,7 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6962
6963
|
contenSocialNetwork: du,
|
|
6963
6964
|
socialIcon: uu
|
|
6964
6965
|
}, hu = async (e) => {
|
|
6965
|
-
const { autor: t, autorIcon: n } = e, r = n, s = t?.info?.image?.sizes?.[0]?.url ?? "", o = t?.info?.fullname ?? "", i = t?.info?.email ?? "", c = t?.addtional?.USER_SHOWEMAIL ?? !1, d = t?.addtional?.USER_SHOWBIO ?? !1, l = t?.addtional?.USER_MIBIO ?? "", u = t?.addtional?.USER_USERFB ?? "",
|
|
6966
|
+
const { autor: t, autorIcon: n } = e, r = n, s = t?.info?.image?.sizes?.[0]?.url ?? "", o = t?.info?.fullname ?? "", i = t?.info?.email ?? "", c = t?.addtional?.USER_SHOWEMAIL ?? !1, d = t?.addtional?.USER_SHOWBIO ?? !1, l = t?.addtional?.USER_MIBIO ?? "", u = t?.addtional?.USER_USERFB ?? "", h = t?.addtional?.USER_USERIG ?? "", m = t?.addtional?.USER_USERTWT ?? "", p = t?.addtional?.USER_USERLIN ?? "";
|
|
6966
6967
|
return /* @__PURE__ */ a("section", { className: Se.content, children: /* @__PURE__ */ f("div", { className: Se.contentInfo, children: [
|
|
6967
6968
|
s ? /* @__PURE__ */ a(
|
|
6968
6969
|
"img",
|
|
@@ -6987,10 +6988,10 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6987
6988
|
children: /* @__PURE__ */ a(_a, { className: Se.socialIcon })
|
|
6988
6989
|
}
|
|
6989
6990
|
),
|
|
6990
|
-
|
|
6991
|
+
h && /* @__PURE__ */ a(
|
|
6991
6992
|
"a",
|
|
6992
6993
|
{
|
|
6993
|
-
href:
|
|
6994
|
+
href: h,
|
|
6994
6995
|
target: "_blank",
|
|
6995
6996
|
rel: "noreferrer",
|
|
6996
6997
|
children: /* @__PURE__ */ a(
|
|
@@ -7002,10 +7003,10 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
7002
7003
|
)
|
|
7003
7004
|
}
|
|
7004
7005
|
),
|
|
7005
|
-
|
|
7006
|
+
m && /* @__PURE__ */ a(
|
|
7006
7007
|
"a",
|
|
7007
7008
|
{
|
|
7008
|
-
href:
|
|
7009
|
+
href: m,
|
|
7009
7010
|
target: "_blank",
|
|
7010
7011
|
rel: "noreferrer",
|
|
7011
7012
|
children: /* @__PURE__ */ a(jt, { className: Se.socialIcon })
|
|
@@ -9113,12 +9114,12 @@ const l3 = (e) => {
|
|
|
9113
9114
|
showNext: !(t.length < e.NEWS_PER_SECTION)
|
|
9114
9115
|
}
|
|
9115
9116
|
),
|
|
9116
|
-
children: Array.isArray(t) && t?.map((u,
|
|
9117
|
-
d.includes(
|
|
9117
|
+
children: Array.isArray(t) && t?.map((u, h) => /* @__PURE__ */ f(pn, { children: [
|
|
9118
|
+
d.includes(h + 1) && /* @__PURE__ */ a("div", { className: Ye.itemContent + " banner-context", children: /* @__PURE__ */ a(
|
|
9118
9119
|
pe,
|
|
9119
9120
|
{
|
|
9120
9121
|
banners: r ?? [],
|
|
9121
|
-
name: `block_2_${l[
|
|
9122
|
+
name: `block_2_${l[h + 1]}`
|
|
9122
9123
|
}
|
|
9123
9124
|
) }),
|
|
9124
9125
|
/* @__PURE__ */ a(
|
|
@@ -9129,9 +9130,9 @@ const l3 = (e) => {
|
|
|
9129
9130
|
option: s,
|
|
9130
9131
|
paths: e.paths
|
|
9131
9132
|
},
|
|
9132
|
-
|
|
9133
|
+
h
|
|
9133
9134
|
)
|
|
9134
|
-
] },
|
|
9135
|
+
] }, h))
|
|
9135
9136
|
}
|
|
9136
9137
|
) : /* @__PURE__ */ a(
|
|
9137
9138
|
"div",
|
|
@@ -9176,12 +9177,12 @@ const l3 = (e) => {
|
|
|
9176
9177
|
showNext: !(t.length < e.NEWS_PER_SECTION)
|
|
9177
9178
|
}
|
|
9178
9179
|
),
|
|
9179
|
-
children: Array.isArray(t) && t?.map((u,
|
|
9180
|
-
d.includes(
|
|
9180
|
+
children: Array.isArray(t) && t?.map((u, h) => /* @__PURE__ */ f(pn, { children: [
|
|
9181
|
+
d.includes(h + 1) && /* @__PURE__ */ a("div", { className: Ye.itemContent, children: /* @__PURE__ */ a(
|
|
9181
9182
|
pe,
|
|
9182
9183
|
{
|
|
9183
9184
|
banners: r ?? [],
|
|
9184
|
-
name: `block_2_${l[
|
|
9185
|
+
name: `block_2_${l[h + 1]}`
|
|
9185
9186
|
}
|
|
9186
9187
|
) }),
|
|
9187
9188
|
/* @__PURE__ */ a(
|
|
@@ -9192,9 +9193,9 @@ const l3 = (e) => {
|
|
|
9192
9193
|
option: s,
|
|
9193
9194
|
paths: e.paths
|
|
9194
9195
|
},
|
|
9195
|
-
|
|
9196
|
+
h
|
|
9196
9197
|
)
|
|
9197
|
-
] },
|
|
9198
|
+
] }, h))
|
|
9198
9199
|
}
|
|
9199
9200
|
) : /* @__PURE__ */ a(
|
|
9200
9201
|
"div",
|
|
@@ -9393,7 +9394,7 @@ const l3 = (e) => {
|
|
|
9393
9394
|
o = o.replace("ck-related-news", "ck-related-news-empty");
|
|
9394
9395
|
break;
|
|
9395
9396
|
}
|
|
9396
|
-
const u = l.preview?.sizes?.[0],
|
|
9397
|
+
const u = l.preview?.sizes?.[0], h = u ? await me(u.url) : "", m = l.info.section?.url ?? "#", p = l.info.section?.name ?? "Sección", g = l.info.link?.url ?? "#", A = l.main?.title.article ?? "Título", y = (await Promise.all(
|
|
9397
9398
|
l.preview?.sizes?.map(async (N) => {
|
|
9398
9399
|
const _ = await me(N.url);
|
|
9399
9400
|
return N.width < 200 ? `<source srcset="${_}" media="(width < 750px)"/>` : `<source srcset="${_}" media="(width >= 750px)"/>`;
|
|
@@ -9402,10 +9403,10 @@ const l3 = (e) => {
|
|
|
9402
9403
|
<span data-src="${d}">
|
|
9403
9404
|
<picture style='display: flex'>
|
|
9404
9405
|
${y}
|
|
9405
|
-
<img fetchPriority='low' loading='lazy' src="${
|
|
9406
|
+
<img fetchPriority='low' loading='lazy' src="${h}" alt="${t.noteRelatedImageAlt}" />
|
|
9406
9407
|
</picture>
|
|
9407
9408
|
<div>
|
|
9408
|
-
<a class="section" href="${
|
|
9409
|
+
<a class="section" href="${m}">${p}</a>
|
|
9409
9410
|
<a class="title" href="${g}">${A}</a>
|
|
9410
9411
|
</div>
|
|
9411
9412
|
</span>
|
|
@@ -9439,12 +9440,12 @@ async function G2(e, t) {
|
|
|
9439
9440
|
let l = o[1] ?? "";
|
|
9440
9441
|
l && (l = Q2(l));
|
|
9441
9442
|
const u = /data-type\s*=\s*["']?video["']?/i.test(d) || /video-type\s*=\s*["']?embedded["']?/i.test(d);
|
|
9442
|
-
let
|
|
9443
|
+
let h = d;
|
|
9443
9444
|
if (u && l)
|
|
9444
9445
|
try {
|
|
9445
|
-
const
|
|
9446
|
-
if (
|
|
9447
|
-
const g =
|
|
9446
|
+
const m = await t.iframe({ path: l }), p = t.schema ? await t.schema(l) : null;
|
|
9447
|
+
if (m && m.data) {
|
|
9448
|
+
const g = m.data.data[0];
|
|
9448
9449
|
let A = "";
|
|
9449
9450
|
const y = d.match(
|
|
9450
9451
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
@@ -9465,7 +9466,7 @@ async function G2(e, t) {
|
|
|
9465
9466
|
style="width: 100%; height: auto; min-height: 400px;"
|
|
9466
9467
|
src="${g.main?.code || ""}"></iframe>` : A = g.main?.code || "";
|
|
9467
9468
|
const N = v || g.main?.description || "";
|
|
9468
|
-
|
|
9469
|
+
h = `
|
|
9469
9470
|
<figure class="videoFigure">
|
|
9470
9471
|
${p && p.data && p.data.data ? `<script type="application/ld+json">${ga(
|
|
9471
9472
|
JSON.stringify(p.data.data)
|
|
@@ -9475,10 +9476,10 @@ async function G2(e, t) {
|
|
|
9475
9476
|
</figure>
|
|
9476
9477
|
`;
|
|
9477
9478
|
}
|
|
9478
|
-
} catch (
|
|
9479
|
-
console.error("replaceVideoSpansWithIframes error for", l,
|
|
9479
|
+
} catch (m) {
|
|
9480
|
+
console.error("replaceVideoSpansWithIframes error for", l, m), h = d;
|
|
9480
9481
|
}
|
|
9481
|
-
r = c, n +=
|
|
9482
|
+
r = c, n += h, s.lastIndex = c;
|
|
9482
9483
|
}
|
|
9483
9484
|
return n += e.slice(r), n;
|
|
9484
9485
|
}
|
|
@@ -9698,7 +9699,7 @@ const $2 = () => /* @__PURE__ */ f("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
9698
9699
|
)
|
|
9699
9700
|
] })
|
|
9700
9701
|
] }) });
|
|
9701
|
-
}, Y2 = "
|
|
9702
|
+
}, Y2 = "_content_g3sds_1", K2 = "_journalistArticleContent_g3sds_15", J2 = "_contentNews_g3sds_35", Z2 = "_noteSource_g3sds_401", tn = {
|
|
9702
9703
|
content: Y2,
|
|
9703
9704
|
journalistArticleContent: K2,
|
|
9704
9705
|
contentNews: J2,
|
|
@@ -9741,45 +9742,45 @@ function n0(e) {
|
|
|
9741
9742
|
const t = e.children, n = `${e.slot_id}-`, r = e.visibleItems, s = e.cardGap ?? 20;
|
|
9742
9743
|
function o(c) {
|
|
9743
9744
|
const d = [], l = [];
|
|
9744
|
-
let u = "",
|
|
9745
|
-
for (let
|
|
9746
|
-
const p = `[data-index="${
|
|
9745
|
+
let u = "", h = !0;
|
|
9746
|
+
for (let m = 0; m < c; m++) {
|
|
9747
|
+
const p = `[data-index="${m}"]:checked ~ .carrousel-pagination li:nth-child(${m + 1}) {
|
|
9747
9748
|
background-color:var(--carrousel-pagination-background-color)
|
|
9748
9749
|
}`;
|
|
9749
9750
|
u += `
|
|
9750
9751
|
.${n}.carrousel-container {
|
|
9751
9752
|
${p}
|
|
9752
|
-
[data-index="${
|
|
9753
|
-
transform: translate(-${
|
|
9753
|
+
[data-index="${m}"]:checked ~ .carrousel-ssr {
|
|
9754
|
+
transform: translate(-${m * (100 + s) + "%"});
|
|
9754
9755
|
transition: transform 300ms;
|
|
9755
9756
|
}
|
|
9756
|
-
[data-index="${
|
|
9757
|
-
${
|
|
9757
|
+
[data-index="${m + 1}"]:checked ~ .visible-arrow.left[data-index="${m}"]
|
|
9758
|
+
${m < c - 1 ? `,[data-index="${m}"]:checked ~ .visible-arrow.right[data-index="${m}"]` : ""} {
|
|
9758
9759
|
display: flex;
|
|
9759
9760
|
}
|
|
9760
9761
|
}
|
|
9761
|
-
`,
|
|
9762
|
+
`, m > c - (r + 1) && (u += `
|
|
9762
9763
|
@media (min-width:900px) {
|
|
9763
9764
|
.${n}.carrousel-container {
|
|
9764
|
-
[data-index="${
|
|
9765
|
+
[data-index="${m}"]:checked ~ .visible-arrow.right[data-index="${m}"] {
|
|
9765
9766
|
display:none!important;
|
|
9766
9767
|
}
|
|
9767
9768
|
}
|
|
9768
9769
|
}`), d.push(
|
|
9769
|
-
`<input type="radio" name="${n + "card"}" ${
|
|
9770
|
+
`<input type="radio" name="${n + "card"}" ${h ? "checked" : ""} id="${n + "input-check-" + m}" data-index="${m}" />`
|
|
9770
9771
|
), l.push(`
|
|
9771
|
-
<label for="${n + "input-check-" +
|
|
9772
|
+
<label for="${n + "input-check-" + m}" data-index="${m}" class="visible-arrow left">
|
|
9772
9773
|
<svg width="16" height="16" view-box="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
9773
9774
|
<path d="M1 8.99973H12.17L7.29 13.8797C6.9 14.2697 6.9 14.9097 7.29 15.2997C7.68 15.6897 8.31 15.6897 8.7 15.2997L15.29 8.70973C15.68 8.31973 15.68 7.68973 15.29 7.29973L8.71 0.699727C8.32 0.309727 7.69 0.309727 7.3 0.699727C6.91 1.08973 6.91 1.71973 7.3 2.10973L12.17 6.99973H1C0.45 6.99973 0 7.44973 0 7.99973C0 8.54973 0.45 8.99973 1 8.99973Z" fill="currentColor" />
|
|
9774
9775
|
</svg>
|
|
9775
9776
|
</label>
|
|
9776
9777
|
|
|
9777
|
-
${
|
|
9778
|
+
${m < c - 1 ? `<label for="${n + "input-check-" + (m + 1)}" data-index="${m}" class="visible-arrow right">
|
|
9778
9779
|
<svg width="16" height="16" view-box="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
9779
9780
|
<path d="M1 8.99973H12.17L7.29 13.8797C6.9 14.2697 6.9 14.9097 7.29 15.2997C7.68 15.6897 8.31 15.6897 8.7 15.2997L15.29 8.70973C15.68 8.31973 15.68 7.68973 15.29 7.29973L8.71 0.699727C8.32 0.309727 7.69 0.309727 7.3 0.699727C6.91 1.08973 6.91 1.71973 7.3 2.10973L12.17 6.99973H1C0.45 6.99973 0 7.44973 0 7.99973C0 8.54973 0.45 8.99973 1 8.99973Z" fill="currentColor" />
|
|
9780
9781
|
</svg>
|
|
9781
9782
|
</label>` : ""}
|
|
9782
|
-
`),
|
|
9783
|
+
`), h = !1;
|
|
9783
9784
|
}
|
|
9784
9785
|
return `
|
|
9785
9786
|
<style>${u}</style>
|
|
@@ -9832,25 +9833,25 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9832
9833
|
), Ts = async (e) => {
|
|
9833
9834
|
const { PUBLIC_IS_OFFLINE: t } = K();
|
|
9834
9835
|
if (!(t === "true")) {
|
|
9835
|
-
const l = /<img\b[^>]*\bsrc=["']([^"']+)["']/g, u = [...e.matchAll(l)],
|
|
9836
|
-
for (const
|
|
9837
|
-
const p =
|
|
9836
|
+
const l = /<img\b[^>]*\bsrc=["']([^"']+)["']/g, u = [...e.matchAll(l)], h = {};
|
|
9837
|
+
for (const m of u) {
|
|
9838
|
+
const p = m[1] ?? "", g = e.includes(p) ? { url: p } : null;
|
|
9838
9839
|
if (g) {
|
|
9839
9840
|
const A = await me(g.url) || "";
|
|
9840
|
-
|
|
9841
|
+
h[p] = A;
|
|
9841
9842
|
}
|
|
9842
9843
|
}
|
|
9843
9844
|
return e.replace(
|
|
9844
9845
|
l,
|
|
9845
|
-
(
|
|
9846
|
+
(m, p) => `<img fetchPriority='low' loading='lazy' alt='imagen' src="${h[p] || p}"`
|
|
9846
9847
|
);
|
|
9847
9848
|
}
|
|
9848
9849
|
let r = e;
|
|
9849
9850
|
const s = /<figure\b[^>]*>([\s\S]*?)<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>([\s\S]*?)<\/figure>/g, o = [...e.matchAll(s)], i = /* @__PURE__ */ new Set();
|
|
9850
9851
|
for (const l of o) {
|
|
9851
|
-
const u = l[0],
|
|
9852
|
-
i.add(
|
|
9853
|
-
const
|
|
9852
|
+
const u = l[0], h = l[2] ?? "";
|
|
9853
|
+
i.add(h);
|
|
9854
|
+
const m = u.match(/<img\b[^>]*\balt=["']([^"']*)["']/), p = m ? m[1] : "imagen", g = h.match(/__scale=([^&"']+)/), A = g ? decodeURIComponent(g[1]) : null;
|
|
9854
9855
|
let y = 0, v = 0;
|
|
9855
9856
|
if (A) {
|
|
9856
9857
|
const E = A.match(/w:(\d+)/), O = A.match(/h:(\d+)/);
|
|
@@ -9861,13 +9862,13 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9861
9862
|
sizes: [
|
|
9862
9863
|
{
|
|
9863
9864
|
scale: A || `w:${y},h:${v},t:2`,
|
|
9864
|
-
url:
|
|
9865
|
+
url: h,
|
|
9865
9866
|
width: y,
|
|
9866
9867
|
height: v
|
|
9867
9868
|
}
|
|
9868
9869
|
],
|
|
9869
9870
|
original: {
|
|
9870
|
-
url:
|
|
9871
|
+
url: h.split("?")[0],
|
|
9871
9872
|
width: y,
|
|
9872
9873
|
height: v
|
|
9873
9874
|
},
|
|
@@ -9882,9 +9883,9 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9882
9883
|
}
|
|
9883
9884
|
const c = /<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g, d = [...r.matchAll(c)];
|
|
9884
9885
|
for (const l of d) {
|
|
9885
|
-
const u = l[0],
|
|
9886
|
-
if (i.has(
|
|
9887
|
-
const
|
|
9886
|
+
const u = l[0], h = l[1] ?? "";
|
|
9887
|
+
if (i.has(h)) continue;
|
|
9888
|
+
const m = u.match(/\balt=["']([^"']*)["']/), p = m ? m[1] : "imagen", g = h.match(/__scale=([^&"']+)/), A = g ? decodeURIComponent(g[1]) : null;
|
|
9888
9889
|
let y = 0, v = 0;
|
|
9889
9890
|
if (A) {
|
|
9890
9891
|
const E = A.match(/w:(\d+)/), O = A.match(/h:(\d+)/);
|
|
@@ -9895,13 +9896,13 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9895
9896
|
sizes: [
|
|
9896
9897
|
{
|
|
9897
9898
|
scale: A || `w:${y},h:${v},t:2`,
|
|
9898
|
-
url:
|
|
9899
|
+
url: h,
|
|
9899
9900
|
width: y,
|
|
9900
9901
|
height: v
|
|
9901
9902
|
}
|
|
9902
9903
|
],
|
|
9903
9904
|
original: {
|
|
9904
|
-
url:
|
|
9905
|
+
url: h.split("?")[0],
|
|
9905
9906
|
width: y,
|
|
9906
9907
|
height: v
|
|
9907
9908
|
},
|
|
@@ -9938,7 +9939,7 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9938
9939
|
).test(s)) {
|
|
9939
9940
|
r++;
|
|
9940
9941
|
const u = t.find(
|
|
9941
|
-
(
|
|
9942
|
+
(h) => h.key === `block_2_${n[r]}`
|
|
9942
9943
|
);
|
|
9943
9944
|
return u ? `${c}<div class="banner-context">${u.value}</div>` : c;
|
|
9944
9945
|
}
|
|
@@ -9951,13 +9952,13 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9951
9952
|
for (const o of n) {
|
|
9952
9953
|
const [i, c = ""] = o, d = o.index, l = d + i.length;
|
|
9953
9954
|
r += e.slice(s, d);
|
|
9954
|
-
const
|
|
9955
|
+
const h = [...c.matchAll(/data-src="([^"]+)"/g)].map(
|
|
9955
9956
|
(g) => g[1]
|
|
9956
9957
|
).map(
|
|
9957
9958
|
(g) => `<img fetchPriority='low' loading='lazy' alt='imagen' src="${g}" class="carrusel-note-item" width="800" height="469"/>`
|
|
9958
|
-
),
|
|
9959
|
-
slot_id:
|
|
9960
|
-
children:
|
|
9959
|
+
), m = "gallery_embeded" + d.toString(), p = n0({
|
|
9960
|
+
slot_id: m,
|
|
9961
|
+
children: h,
|
|
9961
9962
|
visibleItems: 1,
|
|
9962
9963
|
cardGap: 0
|
|
9963
9964
|
});
|
|
@@ -9973,7 +9974,7 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9973
9974
|
(N) => d.includes(N?.[0]?.info.link.internal || "")
|
|
9974
9975
|
);
|
|
9975
9976
|
if (!l || !l[0]) continue;
|
|
9976
|
-
const u = l[0].preview?.sizes?.[0],
|
|
9977
|
+
const u = l[0].preview?.sizes?.[0], h = u ? await me(u.url) : "", m = l[0].info.section?.url ?? "#", p = l[0].info.section?.name ?? "Sección", g = l[0].info.link?.url ?? "#", A = l[0].main?.title.article ?? "Título", y = (await Promise.all(
|
|
9977
9978
|
l[0].preview?.sizes?.map(async (N, _) => {
|
|
9978
9979
|
const x = await me(N.url);
|
|
9979
9980
|
return _ === 0 ? `<source srcset="${x}" media="(width >= 900px)"/>` : `<source srcset="${x}" media="(width < 900px)"/>`;
|
|
@@ -9982,10 +9983,10 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9982
9983
|
<span data-src="${d}">
|
|
9983
9984
|
<picture style='display: flex'>
|
|
9984
9985
|
${y}
|
|
9985
|
-
<img fetchPriority='low' loading='lazy' src="${
|
|
9986
|
+
<img fetchPriority='low' loading='lazy' src="${h}" alt="${t.noteRelatedImageAlt}" />
|
|
9986
9987
|
</picture>
|
|
9987
9988
|
<div>
|
|
9988
|
-
<a class="section" href="${
|
|
9989
|
+
<a class="section" href="${m}">${p}</a>
|
|
9989
9990
|
<a class="title" href="${g}">${A}</a>
|
|
9990
9991
|
</div>
|
|
9991
9992
|
</span>
|
|
@@ -10011,11 +10012,11 @@ async function l0(e, t) {
|
|
|
10011
10012
|
}
|
|
10012
10013
|
v !== -1 && v < N ? (d += 1, l = v + 4) : (d -= 1, l = N + 6);
|
|
10013
10014
|
}
|
|
10014
|
-
const
|
|
10015
|
+
const h = l, m = e.slice(i, h);
|
|
10015
10016
|
let p = null;
|
|
10016
10017
|
const g = /<span\b([^>]*)>/gi;
|
|
10017
10018
|
let A;
|
|
10018
|
-
for (; (A = g.exec(
|
|
10019
|
+
for (; (A = g.exec(m)) !== null; ) {
|
|
10019
10020
|
const v = A[1];
|
|
10020
10021
|
if (!v) break;
|
|
10021
10022
|
if (/data-type\s*=\s*["']?video["']?/i.test(v)) {
|
|
@@ -10027,7 +10028,7 @@ async function l0(e, t) {
|
|
|
10027
10028
|
}
|
|
10028
10029
|
}
|
|
10029
10030
|
if (!p) {
|
|
10030
|
-
const v =
|
|
10031
|
+
const v = m.match(
|
|
10031
10032
|
/<span\b[^>]*data-src=["'][^"']+["'][^>]*>/i
|
|
10032
10033
|
);
|
|
10033
10034
|
if (v) {
|
|
@@ -10042,7 +10043,7 @@ async function l0(e, t) {
|
|
|
10042
10043
|
if (v && v.data) {
|
|
10043
10044
|
const _ = v.data.data[0];
|
|
10044
10045
|
let x = "";
|
|
10045
|
-
const b =
|
|
10046
|
+
const b = m.match(
|
|
10046
10047
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
10047
10048
|
), E = b && b[1] ? b[1].trim() : "";
|
|
10048
10049
|
_.info && _.info.type === "video-youtube" ? x = `<iframe
|
|
@@ -10075,8 +10076,8 @@ async function l0(e, t) {
|
|
|
10075
10076
|
console.error("insertVideos error for", p, v), y = "";
|
|
10076
10077
|
}
|
|
10077
10078
|
else
|
|
10078
|
-
y =
|
|
10079
|
-
r =
|
|
10079
|
+
y = m;
|
|
10080
|
+
r = h, n += y, s.lastIndex = h;
|
|
10080
10081
|
}
|
|
10081
10082
|
return n += e.slice(r), n;
|
|
10082
10083
|
}
|
|
@@ -10085,20 +10086,21 @@ async function d0(e) {
|
|
|
10085
10086
|
news: t,
|
|
10086
10087
|
banners: n,
|
|
10087
10088
|
newsRelatedResponses: r,
|
|
10088
|
-
|
|
10089
|
-
|
|
10090
|
-
|
|
10091
|
-
|
|
10089
|
+
newsRelatedListResponses: s,
|
|
10090
|
+
slug: o,
|
|
10091
|
+
itemList: i,
|
|
10092
|
+
socials: c,
|
|
10093
|
+
getVideos: d
|
|
10092
10094
|
} = e;
|
|
10093
|
-
let
|
|
10094
|
-
|
|
10095
|
-
|
|
10095
|
+
let l = t?.body?.rendered ?? "";
|
|
10096
|
+
l = l.replace(/ /g, ""), l = o0(l, n), l = i0(l), l = await Ts(l), l = await c0(
|
|
10097
|
+
l,
|
|
10096
10098
|
e.texts,
|
|
10097
10099
|
r
|
|
10098
|
-
),
|
|
10099
|
-
const
|
|
10100
|
+
), l = await l0(l, d), l = r0(l), l = s0(l);
|
|
10101
|
+
const u = t.main.sources ?? [];
|
|
10100
10102
|
return /* @__PURE__ */ f("div", { className: tn.content, children: [
|
|
10101
|
-
|
|
10103
|
+
o !== "liveblogs" && e.showHeaderImage ? t.hascontent?.hasgalleryimages ? /* @__PURE__ */ a(
|
|
10102
10104
|
xs,
|
|
10103
10105
|
{
|
|
10104
10106
|
newsformated: t,
|
|
@@ -10110,7 +10112,7 @@ async function d0(e) {
|
|
|
10110
10112
|
W2,
|
|
10111
10113
|
{
|
|
10112
10114
|
autorIcon: e.autorIcon,
|
|
10113
|
-
socials:
|
|
10115
|
+
socials: c,
|
|
10114
10116
|
news: t,
|
|
10115
10117
|
texts: e.texts,
|
|
10116
10118
|
noteShare: e.noteShare,
|
|
@@ -10124,23 +10126,23 @@ async function d0(e) {
|
|
|
10124
10126
|
className: tn.contentNews,
|
|
10125
10127
|
suppressHydrationWarning: !0,
|
|
10126
10128
|
id: "content-news-section",
|
|
10127
|
-
dangerouslySetInnerHTML: { __html:
|
|
10129
|
+
dangerouslySetInnerHTML: { __html: l }
|
|
10128
10130
|
}
|
|
10129
10131
|
),
|
|
10130
10132
|
/* @__PURE__ */ a(
|
|
10131
10133
|
z2,
|
|
10132
10134
|
{
|
|
10133
10135
|
texts: e.texts,
|
|
10134
|
-
itemList:
|
|
10136
|
+
itemList: i,
|
|
10135
10137
|
banners: n,
|
|
10136
|
-
slug:
|
|
10137
|
-
getVideos:
|
|
10138
|
-
newsRelatedListResponses:
|
|
10138
|
+
slug: o,
|
|
10139
|
+
getVideos: d,
|
|
10140
|
+
newsRelatedListResponses: s ?? []
|
|
10139
10141
|
}
|
|
10140
10142
|
),
|
|
10141
|
-
|
|
10143
|
+
u.length > 0 && /* @__PURE__ */ f("div", { className: tn.noteSource, children: [
|
|
10142
10144
|
/* @__PURE__ */ a(a0, {}),
|
|
10143
|
-
/* @__PURE__ */ a("p", { children: e.texts.noteSource + (
|
|
10145
|
+
/* @__PURE__ */ a("p", { children: e.texts.noteSource + (u.length === 1 ? "" : "s") + ": " + u.map((h) => h.name).join(", ") })
|
|
10144
10146
|
] })
|
|
10145
10147
|
] });
|
|
10146
10148
|
}
|
|
@@ -10493,15 +10495,15 @@ const wr = {
|
|
|
10493
10495
|
showTagBySection: i
|
|
10494
10496
|
}) => {
|
|
10495
10497
|
const c = [], l = t, u = Object.keys(e).length / l;
|
|
10496
|
-
for (let
|
|
10497
|
-
for (let
|
|
10498
|
-
const p = "Home_" +
|
|
10498
|
+
for (let h = 1; h <= u; h++)
|
|
10499
|
+
for (let m = 1; m <= l; m++) {
|
|
10500
|
+
const p = "Home_" + h + "_" + m;
|
|
10499
10501
|
!e[p] || !e[p].blockSass || !e[p].blockSass[0] || !e[p].blockSass[0].value || !e[p].blockSass[0].block || e[p].blockSass[0].block === "No Mostrar" || c.push(
|
|
10500
10502
|
/* @__PURE__ */ f(
|
|
10501
10503
|
wc,
|
|
10502
10504
|
{
|
|
10503
10505
|
show: !!e[p].content?.data,
|
|
10504
|
-
order: (
|
|
10506
|
+
order: (h - 1) * l + (m - 1),
|
|
10505
10507
|
children: [
|
|
10506
10508
|
/* @__PURE__ */ a(
|
|
10507
10509
|
Is,
|
|
@@ -10524,12 +10526,12 @@ const wr = {
|
|
|
10524
10526
|
rt,
|
|
10525
10527
|
{
|
|
10526
10528
|
banners: o,
|
|
10527
|
-
index: "dynamic_" +
|
|
10529
|
+
index: "dynamic_" + h + "_" + m
|
|
10528
10530
|
}
|
|
10529
10531
|
) })
|
|
10530
10532
|
]
|
|
10531
10533
|
},
|
|
10532
|
-
|
|
10534
|
+
h + "_" + m
|
|
10533
10535
|
)
|
|
10534
10536
|
);
|
|
10535
10537
|
}
|
|
@@ -10592,10 +10594,11 @@ const wr = {
|
|
|
10592
10594
|
autor: s = [],
|
|
10593
10595
|
news: o = [],
|
|
10594
10596
|
newsRelatedResponses: i = [],
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10597
|
+
newsRelatedListResponses: c = [],
|
|
10598
|
+
itemList: d = [],
|
|
10599
|
+
socials: l,
|
|
10600
|
+
getVideos: u
|
|
10601
|
+
} = e, h = e.slug === "liveblogs", { SHOW_NEWS_MORE_NEWS: m, SHOW_NEWS_RELATED_NEWS: p } = K();
|
|
10599
10602
|
if (!(!o || !o[0]))
|
|
10600
10603
|
return /* @__PURE__ */ a(Y, { children: /* @__PURE__ */ f(y2, { className: ia.contentLayout2, children: [
|
|
10601
10604
|
/* @__PURE__ */ a(
|
|
@@ -10608,7 +10611,7 @@ const wr = {
|
|
|
10608
10611
|
}
|
|
10609
10612
|
),
|
|
10610
10613
|
/* @__PURE__ */ a(rt, { banners: r, index: 1 }),
|
|
10611
|
-
!
|
|
10614
|
+
!h && e.commonServices && /* @__PURE__ */ a(
|
|
10612
10615
|
C0,
|
|
10613
10616
|
{
|
|
10614
10617
|
news: o[0],
|
|
@@ -10621,7 +10624,7 @@ const wr = {
|
|
|
10621
10624
|
texts: e.texts,
|
|
10622
10625
|
paths: e.paths,
|
|
10623
10626
|
slug: e.slug,
|
|
10624
|
-
itemList:
|
|
10627
|
+
itemList: d,
|
|
10625
10628
|
ranking: n,
|
|
10626
10629
|
readestCustomStyles: e.readestCustomStyles,
|
|
10627
10630
|
bannerTop: /* @__PURE__ */ a(pe, { banners: r ?? [], name: "right_1" }),
|
|
@@ -10677,7 +10680,7 @@ const wr = {
|
|
|
10677
10680
|
}
|
|
10678
10681
|
),
|
|
10679
10682
|
/* @__PURE__ */ a(ht, { children: /* @__PURE__ */ a(rt, { banners: r, index: 2 }) }),
|
|
10680
|
-
|
|
10683
|
+
p && /* @__PURE__ */ f(Y, { children: [
|
|
10681
10684
|
/* @__PURE__ */ a(
|
|
10682
10685
|
Is,
|
|
10683
10686
|
{
|
|
@@ -10729,13 +10732,14 @@ const wr = {
|
|
|
10729
10732
|
{
|
|
10730
10733
|
texts: e.texts,
|
|
10731
10734
|
autorIcon: e.autorIcon,
|
|
10732
|
-
socials:
|
|
10735
|
+
socials: l,
|
|
10733
10736
|
news: o[0],
|
|
10734
10737
|
banners: r,
|
|
10735
10738
|
newsRelatedResponses: i,
|
|
10736
|
-
|
|
10739
|
+
newsRelatedListResponses: c,
|
|
10740
|
+
itemList: d,
|
|
10737
10741
|
slug: e.slug,
|
|
10738
|
-
getVideos:
|
|
10742
|
+
getVideos: u,
|
|
10739
10743
|
noteShare: e.noteShare,
|
|
10740
10744
|
paths: e.paths,
|
|
10741
10745
|
showHeaderImage: !L0(o[0])
|
|
@@ -10912,7 +10916,7 @@ const wr = {
|
|
|
10912
10916
|
currentPage: d,
|
|
10913
10917
|
slug: l,
|
|
10914
10918
|
texts: u = {}
|
|
10915
|
-
} = e,
|
|
10919
|
+
} = e, h = [5, 10, 15], m = {
|
|
10916
10920
|
5: 1,
|
|
10917
10921
|
10: 2,
|
|
10918
10922
|
15: 3
|
|
@@ -10947,7 +10951,7 @@ const wr = {
|
|
|
10947
10951
|
}
|
|
10948
10952
|
),
|
|
10949
10953
|
children: Array.isArray(t) && t?.map((p, g) => /* @__PURE__ */ f(pn, { children: [
|
|
10950
|
-
|
|
10954
|
+
h.includes(g + 1) && /* @__PURE__ */ a(
|
|
10951
10955
|
"div",
|
|
10952
10956
|
{
|
|
10953
10957
|
className: Vn.itemContent + " banner-context",
|
|
@@ -10955,7 +10959,7 @@ const wr = {
|
|
|
10955
10959
|
pe,
|
|
10956
10960
|
{
|
|
10957
10961
|
banners: o ?? [],
|
|
10958
|
-
name: `block_2_${
|
|
10962
|
+
name: `block_2_${m[g + 1]}`
|
|
10959
10963
|
}
|
|
10960
10964
|
)
|
|
10961
10965
|
}
|
|
@@ -11191,10 +11195,10 @@ function _3({ containerId: e, containerId2: t }) {
|
|
|
11191
11195
|
if (!r && !s) return;
|
|
11192
11196
|
const o = r?.querySelectorAll("script[src]") ?? [], i = s?.querySelectorAll("script[src]") ?? [];
|
|
11193
11197
|
[...o, ...i].forEach((u) => {
|
|
11194
|
-
const
|
|
11195
|
-
Array.from(u.attributes).forEach((
|
|
11196
|
-
|
|
11197
|
-
}), u.replaceWith(
|
|
11198
|
+
const h = document.createElement("script");
|
|
11199
|
+
Array.from(u.attributes).forEach((m) => {
|
|
11200
|
+
h.setAttribute(m.name, m.value);
|
|
11201
|
+
}), u.replaceWith(h);
|
|
11198
11202
|
});
|
|
11199
11203
|
const d = document.querySelectorAll(
|
|
11200
11204
|
'script[src*="platform.twitter.com/widgets.js"]'
|
|
@@ -11366,13 +11370,13 @@ const Tg = (e) => {
|
|
|
11366
11370
|
const u = new URLSearchParams({
|
|
11367
11371
|
section: e,
|
|
11368
11372
|
currentNewsLink: t.info.link.internal
|
|
11369
|
-
}),
|
|
11370
|
-
if (!
|
|
11371
|
-
throw i(void 0), new Error(`HTTP error! status: ${
|
|
11372
|
-
const
|
|
11373
|
+
}), h = await fetch(`/api/get-more-news?${u}`);
|
|
11374
|
+
if (!h.ok)
|
|
11375
|
+
throw i(void 0), new Error(`HTTP error! status: ${h.status}`);
|
|
11376
|
+
const m = await h.json();
|
|
11373
11377
|
i({
|
|
11374
|
-
...
|
|
11375
|
-
data:
|
|
11378
|
+
...m,
|
|
11379
|
+
data: m.data.slice(0, _r)
|
|
11376
11380
|
});
|
|
11377
11381
|
} catch (u) {
|
|
11378
11382
|
console.error("[/api/get-more-news] Error:", u.message), i(void 0);
|
|
@@ -11411,8 +11415,8 @@ const Tg = (e) => {
|
|
|
11411
11415
|
info: d,
|
|
11412
11416
|
preview: l,
|
|
11413
11417
|
isVideo: u = !1,
|
|
11414
|
-
config:
|
|
11415
|
-
overImage:
|
|
11418
|
+
config: h,
|
|
11419
|
+
overImage: m = "default",
|
|
11416
11420
|
isTitle: p = !1,
|
|
11417
11421
|
isLarge: g = !1
|
|
11418
11422
|
} = s;
|
|
@@ -11450,8 +11454,8 @@ const Tg = (e) => {
|
|
|
11450
11454
|
info: d,
|
|
11451
11455
|
preview: l,
|
|
11452
11456
|
share: e.share,
|
|
11453
|
-
config:
|
|
11454
|
-
overImage:
|
|
11457
|
+
config: h,
|
|
11458
|
+
overImage: m,
|
|
11455
11459
|
isTitle: p,
|
|
11456
11460
|
paths: s.paths,
|
|
11457
11461
|
isVisible: e.isVisible
|
|
@@ -11622,7 +11626,7 @@ async function N3({
|
|
|
11622
11626
|
username: t,
|
|
11623
11627
|
id: n,
|
|
11624
11628
|
type: l
|
|
11625
|
-
}),
|
|
11629
|
+
}), h = `${d}?${u.toString()}`;
|
|
11626
11630
|
try {
|
|
11627
11631
|
console.log("Reporting comment:", {
|
|
11628
11632
|
publication: e,
|
|
@@ -11630,31 +11634,31 @@ async function N3({
|
|
|
11630
11634
|
id: n,
|
|
11631
11635
|
type: r,
|
|
11632
11636
|
encodedType: l,
|
|
11633
|
-
url:
|
|
11637
|
+
url: h
|
|
11634
11638
|
});
|
|
11635
|
-
const
|
|
11639
|
+
const m = await se.post(h, null, {
|
|
11636
11640
|
headers: {
|
|
11637
11641
|
"User-Agent": "Bluestack",
|
|
11638
11642
|
"x-api-token": i,
|
|
11639
11643
|
"Content-Type": "application/json"
|
|
11640
11644
|
}
|
|
11641
11645
|
});
|
|
11642
|
-
if (console.log("Report response:",
|
|
11646
|
+
if (console.log("Report response:", m.data), m.status === 200 || m.status === 201)
|
|
11643
11647
|
return {
|
|
11644
11648
|
type: "success",
|
|
11645
11649
|
message: "Comentario reportado exitosamente",
|
|
11646
|
-
status:
|
|
11647
|
-
data:
|
|
11650
|
+
status: m.status,
|
|
11651
|
+
data: m.data
|
|
11648
11652
|
};
|
|
11649
|
-
throw new Error(`Respuesta inesperada del servidor: ${
|
|
11650
|
-
} catch (
|
|
11651
|
-
if (console.error("Error reporting comment:",
|
|
11652
|
-
const p =
|
|
11653
|
+
throw new Error(`Respuesta inesperada del servidor: ${m.status}`);
|
|
11654
|
+
} catch (m) {
|
|
11655
|
+
if (console.error("Error reporting comment:", m), se.isAxiosError(m)) {
|
|
11656
|
+
const p = m.response?.status, g = m.response?.data;
|
|
11653
11657
|
throw p === 400 ? new Error("Datos inválidos para el reporte") : p === 401 ? new Error("Token de API inválido") : p === 403 ? new Error("Acceso denegado para reportar comentario") : p === 404 ? new Error("Comentario no encontrado") : p === 409 ? new Error("El comentario ya fue reportado por este usuario") : p === 500 ? new Error("Error interno del servidor CMS") : new Error(
|
|
11654
11658
|
g?.error || g?.message || `Error HTTP ${p}: No se pudo reportar el comentario`
|
|
11655
11659
|
);
|
|
11656
11660
|
}
|
|
11657
|
-
throw
|
|
11661
|
+
throw m;
|
|
11658
11662
|
}
|
|
11659
11663
|
}
|
|
11660
11664
|
const We = {
|
|
@@ -11714,7 +11718,7 @@ var Nr;
|
|
|
11714
11718
|
function np() {
|
|
11715
11719
|
if (Nr) return ne;
|
|
11716
11720
|
Nr = 1;
|
|
11717
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112,
|
|
11721
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
|
|
11718
11722
|
function _(b) {
|
|
11719
11723
|
if (typeof b == "object" && b !== null) {
|
|
11720
11724
|
var E = b.$$typeof;
|
|
@@ -11726,7 +11730,7 @@ function np() {
|
|
|
11726
11730
|
case r:
|
|
11727
11731
|
case o:
|
|
11728
11732
|
case s:
|
|
11729
|
-
case
|
|
11733
|
+
case h:
|
|
11730
11734
|
return b;
|
|
11731
11735
|
default:
|
|
11732
11736
|
switch (b = b && b.$$typeof, b) {
|
|
@@ -11748,7 +11752,7 @@ function np() {
|
|
|
11748
11752
|
function x(b) {
|
|
11749
11753
|
return _(b) === l;
|
|
11750
11754
|
}
|
|
11751
|
-
return ne.AsyncMode = d, ne.ConcurrentMode = l, ne.ContextConsumer = c, ne.ContextProvider = i, ne.Element = t, ne.ForwardRef = u, ne.Fragment = r, ne.Lazy = g, ne.Memo = p, ne.Portal = n, ne.Profiler = o, ne.StrictMode = s, ne.Suspense =
|
|
11755
|
+
return ne.AsyncMode = d, ne.ConcurrentMode = l, ne.ContextConsumer = c, ne.ContextProvider = i, ne.Element = t, ne.ForwardRef = u, ne.Fragment = r, ne.Lazy = g, ne.Memo = p, ne.Portal = n, ne.Profiler = o, ne.StrictMode = s, ne.Suspense = h, ne.isAsyncMode = function(b) {
|
|
11752
11756
|
return x(b) || _(b) === d;
|
|
11753
11757
|
}, ne.isConcurrentMode = x, ne.isContextConsumer = function(b) {
|
|
11754
11758
|
return _(b) === c;
|
|
@@ -11771,19 +11775,19 @@ function np() {
|
|
|
11771
11775
|
}, ne.isStrictMode = function(b) {
|
|
11772
11776
|
return _(b) === s;
|
|
11773
11777
|
}, ne.isSuspense = function(b) {
|
|
11774
|
-
return _(b) ===
|
|
11778
|
+
return _(b) === h;
|
|
11775
11779
|
}, ne.isValidElementType = function(b) {
|
|
11776
|
-
return typeof b == "string" || typeof b == "function" || b === r || b === l || b === o || b === s || b ===
|
|
11780
|
+
return typeof b == "string" || typeof b == "function" || b === r || b === l || b === o || b === s || b === h || b === m || typeof b == "object" && b !== null && (b.$$typeof === g || b.$$typeof === p || b.$$typeof === i || b.$$typeof === c || b.$$typeof === u || b.$$typeof === y || b.$$typeof === v || b.$$typeof === N || b.$$typeof === A);
|
|
11777
11781
|
}, ne.typeOf = _, ne;
|
|
11778
11782
|
}
|
|
11779
11783
|
var ae = {};
|
|
11780
11784
|
var Sr;
|
|
11781
11785
|
function ap() {
|
|
11782
11786
|
return Sr || (Sr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
11783
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112,
|
|
11787
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
|
|
11784
11788
|
function _(R) {
|
|
11785
11789
|
return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
11786
|
-
R === r || R === l || R === o || R === s || R ===
|
|
11790
|
+
R === r || R === l || R === o || R === s || R === h || R === m || typeof R == "object" && R !== null && (R.$$typeof === g || R.$$typeof === p || R.$$typeof === i || R.$$typeof === c || R.$$typeof === u || R.$$typeof === y || R.$$typeof === v || R.$$typeof === N || R.$$typeof === A);
|
|
11787
11791
|
}
|
|
11788
11792
|
function x(R) {
|
|
11789
11793
|
if (typeof R == "object" && R !== null) {
|
|
@@ -11797,7 +11801,7 @@ function ap() {
|
|
|
11797
11801
|
case r:
|
|
11798
11802
|
case o:
|
|
11799
11803
|
case s:
|
|
11800
|
-
case
|
|
11804
|
+
case h:
|
|
11801
11805
|
return Ft;
|
|
11802
11806
|
default:
|
|
11803
11807
|
var qa = Ft && Ft.$$typeof;
|
|
@@ -11817,7 +11821,7 @@ function ap() {
|
|
|
11817
11821
|
}
|
|
11818
11822
|
}
|
|
11819
11823
|
}
|
|
11820
|
-
var b = d, E = l, O = c, Q = i, te = t, G = u, P = r, ee = g, ce = p, M = n, U = o, T = s, D =
|
|
11824
|
+
var b = d, E = l, O = c, Q = i, te = t, G = u, P = r, ee = g, ce = p, M = n, U = o, T = s, D = h, I = !1;
|
|
11821
11825
|
function z(R) {
|
|
11822
11826
|
return I || (I = !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.")), w(R) || x(R) === d;
|
|
11823
11827
|
}
|
|
@@ -11855,7 +11859,7 @@ function ap() {
|
|
|
11855
11859
|
return x(R) === s;
|
|
11856
11860
|
}
|
|
11857
11861
|
function ie(R) {
|
|
11858
|
-
return x(R) ===
|
|
11862
|
+
return x(R) === h;
|
|
11859
11863
|
}
|
|
11860
11864
|
ae.AsyncMode = b, ae.ConcurrentMode = E, ae.ContextConsumer = O, ae.ContextProvider = Q, ae.Element = te, ae.ForwardRef = G, ae.Fragment = P, ae.Lazy = ee, ae.Memo = ce, ae.Portal = M, ae.Profiler = U, ae.StrictMode = T, ae.Suspense = D, ae.isAsyncMode = z, ae.isConcurrentMode = w, ae.isContextConsumer = S, ae.isContextProvider = q, ae.isElement = j, ae.isForwardRef = L, ae.isFragment = H, ae.isLazy = V, ae.isMemo = F, ae.isPortal = Z, ae.isProfiler = X, ae.isStrictMode = $, ae.isSuspense = ie, ae.isValidElementType = _, ae.typeOf = x;
|
|
11861
11865
|
})()), ae;
|
|
@@ -11899,12 +11903,12 @@ function rp() {
|
|
|
11899
11903
|
return Fn = s() ? Object.assign : function(o, i) {
|
|
11900
11904
|
for (var c, d = r(o), l, u = 1; u < arguments.length; u++) {
|
|
11901
11905
|
c = Object(arguments[u]);
|
|
11902
|
-
for (var
|
|
11903
|
-
t.call(c,
|
|
11906
|
+
for (var h in c)
|
|
11907
|
+
t.call(c, h) && (d[h] = c[h]);
|
|
11904
11908
|
if (e) {
|
|
11905
11909
|
l = e(c);
|
|
11906
|
-
for (var
|
|
11907
|
-
n.call(c, l[
|
|
11910
|
+
for (var m = 0; m < l.length; m++)
|
|
11911
|
+
n.call(c, l[m]) && (d[l[m]] = c[l[m]]);
|
|
11908
11912
|
}
|
|
11909
11913
|
}
|
|
11910
11914
|
return d;
|
|
@@ -11942,25 +11946,25 @@ function sp() {
|
|
|
11942
11946
|
if (process.env.NODE_ENV !== "production") {
|
|
11943
11947
|
for (var u in o)
|
|
11944
11948
|
if (r(o, u)) {
|
|
11945
|
-
var
|
|
11949
|
+
var h;
|
|
11946
11950
|
try {
|
|
11947
11951
|
if (typeof o[u] != "function") {
|
|
11948
|
-
var
|
|
11952
|
+
var m = Error(
|
|
11949
11953
|
(d || "React class") + ": " + c + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
11950
11954
|
);
|
|
11951
|
-
throw
|
|
11955
|
+
throw m.name = "Invariant Violation", m;
|
|
11952
11956
|
}
|
|
11953
|
-
|
|
11957
|
+
h = o[u](i, u, d, c, null, t);
|
|
11954
11958
|
} catch (g) {
|
|
11955
|
-
|
|
11959
|
+
h = g;
|
|
11956
11960
|
}
|
|
11957
|
-
if (
|
|
11958
|
-
(d || "React class") + ": type specification of " + c + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
11959
|
-
),
|
|
11960
|
-
n[
|
|
11961
|
+
if (h && !(h instanceof Error) && e(
|
|
11962
|
+
(d || "React class") + ": type specification of " + c + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
11963
|
+
), h instanceof Error && !(h.message in n)) {
|
|
11964
|
+
n[h.message] = !0;
|
|
11961
11965
|
var p = l ? l() : "";
|
|
11962
11966
|
e(
|
|
11963
|
-
"Failed " + c + " type: " +
|
|
11967
|
+
"Failed " + c + " type: " + h.message + (p ?? "")
|
|
11964
11968
|
);
|
|
11965
11969
|
}
|
|
11966
11970
|
}
|
|
@@ -11989,12 +11993,12 @@ function op() {
|
|
|
11989
11993
|
}
|
|
11990
11994
|
return Kn = function(c, d) {
|
|
11991
11995
|
var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
11992
|
-
function
|
|
11996
|
+
function h(w) {
|
|
11993
11997
|
var S = w && (l && w[l] || w[u]);
|
|
11994
11998
|
if (typeof S == "function")
|
|
11995
11999
|
return S;
|
|
11996
12000
|
}
|
|
11997
|
-
var
|
|
12001
|
+
var m = "<<anonymous>>", p = {
|
|
11998
12002
|
array: v("array"),
|
|
11999
12003
|
bigint: v("bigint"),
|
|
12000
12004
|
bool: v("boolean"),
|
|
@@ -12026,7 +12030,7 @@ function op() {
|
|
|
12026
12030
|
if (process.env.NODE_ENV !== "production")
|
|
12027
12031
|
var S = {}, q = 0;
|
|
12028
12032
|
function j(H, V, F, Z, X, $, ie) {
|
|
12029
|
-
if (Z = Z ||
|
|
12033
|
+
if (Z = Z || m, $ = $ || F, ie !== n) {
|
|
12030
12034
|
if (d) {
|
|
12031
12035
|
var R = new Error(
|
|
12032
12036
|
"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"
|
|
@@ -12105,7 +12109,7 @@ function op() {
|
|
|
12105
12109
|
function E(w) {
|
|
12106
12110
|
function S(q, j, L, H, V) {
|
|
12107
12111
|
if (!(q[j] instanceof w)) {
|
|
12108
|
-
var F = w.name ||
|
|
12112
|
+
var F = w.name || m, Z = z(q[j]);
|
|
12109
12113
|
return new A("Invalid " + H + " `" + V + "` of type " + ("`" + Z + "` supplied to `" + L + "`, expected ") + ("instance of `" + F + "`."));
|
|
12110
12114
|
}
|
|
12111
12115
|
return null;
|
|
@@ -12232,7 +12236,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
12232
12236
|
return w.every(M);
|
|
12233
12237
|
if (w === null || c(w))
|
|
12234
12238
|
return !0;
|
|
12235
|
-
var S =
|
|
12239
|
+
var S = h(w);
|
|
12236
12240
|
if (S) {
|
|
12237
12241
|
var q = S.call(w), j;
|
|
12238
12242
|
if (S !== w.entries) {
|
|
@@ -12286,7 +12290,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
12286
12290
|
}
|
|
12287
12291
|
}
|
|
12288
12292
|
function z(w) {
|
|
12289
|
-
return !w.constructor || !w.constructor.name ?
|
|
12293
|
+
return !w.constructor || !w.constructor.name ? m : w.constructor.name;
|
|
12290
12294
|
}
|
|
12291
12295
|
return p.checkPropTypes = s, p.resetWarningCache = s.resetWarningCache, p.PropTypes = p, p;
|
|
12292
12296
|
}, Kn;
|
|
@@ -12301,12 +12305,12 @@ function ip() {
|
|
|
12301
12305
|
function n() {
|
|
12302
12306
|
}
|
|
12303
12307
|
return n.resetWarningCache = t, Jn = function() {
|
|
12304
|
-
function r(i, c, d, l, u,
|
|
12305
|
-
if (
|
|
12306
|
-
var
|
|
12308
|
+
function r(i, c, d, l, u, h) {
|
|
12309
|
+
if (h !== e) {
|
|
12310
|
+
var m = new Error(
|
|
12307
12311
|
"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"
|
|
12308
12312
|
);
|
|
12309
|
-
throw
|
|
12313
|
+
throw m.name = "Invariant Violation", m;
|
|
12310
12314
|
}
|
|
12311
12315
|
}
|
|
12312
12316
|
r.isRequired = r;
|
|
@@ -12520,12 +12524,12 @@ function mp() {
|
|
|
12520
12524
|
function i(g) {
|
|
12521
12525
|
return e.isMemo(g) ? s : o[g.$$typeof] || t;
|
|
12522
12526
|
}
|
|
12523
|
-
var c = Object.defineProperty, d = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, u = Object.getOwnPropertyDescriptor,
|
|
12527
|
+
var c = Object.defineProperty, d = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, u = Object.getOwnPropertyDescriptor, h = Object.getPrototypeOf, m = Object.prototype;
|
|
12524
12528
|
function p(g, A, y) {
|
|
12525
12529
|
if (typeof A != "string") {
|
|
12526
|
-
if (
|
|
12527
|
-
var v =
|
|
12528
|
-
v && v !==
|
|
12530
|
+
if (m) {
|
|
12531
|
+
var v = h(A);
|
|
12532
|
+
v && v !== m && p(g, v, y);
|
|
12529
12533
|
}
|
|
12530
12534
|
var N = d(A);
|
|
12531
12535
|
l && (N = N.concat(l(A)));
|
|
@@ -12571,87 +12575,87 @@ function wp(e, t) {
|
|
|
12571
12575
|
return t = t || {}, function(r) {
|
|
12572
12576
|
var s = r.displayName || r.name || "Component", o = /* @__PURE__ */ (function(c) {
|
|
12573
12577
|
Ap(d, c);
|
|
12574
|
-
function d(u,
|
|
12575
|
-
var
|
|
12576
|
-
return
|
|
12578
|
+
function d(u, h) {
|
|
12579
|
+
var m;
|
|
12580
|
+
return m = c.call(this, u, h) || this, m.state = {}, m.__scriptURL = "", m;
|
|
12577
12581
|
}
|
|
12578
12582
|
var l = d.prototype;
|
|
12579
12583
|
return l.asyncScriptLoaderGetScriptLoaderID = function() {
|
|
12580
12584
|
return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + yp++), this.__scriptLoaderID;
|
|
12581
12585
|
}, l.setupScriptURL = function() {
|
|
12582
12586
|
return this.__scriptURL = typeof e == "function" ? e() : e, this.__scriptURL;
|
|
12583
|
-
}, l.asyncScriptLoaderHandleLoad = function(
|
|
12584
|
-
var
|
|
12585
|
-
this.setState(
|
|
12586
|
-
return
|
|
12587
|
+
}, l.asyncScriptLoaderHandleLoad = function(h) {
|
|
12588
|
+
var m = this;
|
|
12589
|
+
this.setState(h, function() {
|
|
12590
|
+
return m.props.asyncScriptOnLoad && m.props.asyncScriptOnLoad(m.state);
|
|
12587
12591
|
});
|
|
12588
12592
|
}, l.asyncScriptLoaderTriggerOnScriptLoaded = function() {
|
|
12589
|
-
var
|
|
12590
|
-
if (!
|
|
12593
|
+
var h = Le[this.__scriptURL];
|
|
12594
|
+
if (!h || !h.loaded)
|
|
12591
12595
|
throw new Error("Script is not loaded.");
|
|
12592
|
-
for (var
|
|
12593
|
-
|
|
12596
|
+
for (var m in h.observers)
|
|
12597
|
+
h.observers[m](h);
|
|
12594
12598
|
delete window[t.callbackName];
|
|
12595
12599
|
}, l.componentDidMount = function() {
|
|
12596
|
-
var
|
|
12597
|
-
if (A && typeof window[A] < "u" && (Le[
|
|
12600
|
+
var h = this, m = this.setupScriptURL(), p = this.asyncScriptLoaderGetScriptLoaderID(), g = t, A = g.globalName, y = g.callbackName, v = g.scriptId;
|
|
12601
|
+
if (A && typeof window[A] < "u" && (Le[m] = {
|
|
12598
12602
|
loaded: !0,
|
|
12599
12603
|
observers: {}
|
|
12600
|
-
}), Le[
|
|
12601
|
-
var N = Le[
|
|
12604
|
+
}), Le[m]) {
|
|
12605
|
+
var N = Le[m];
|
|
12602
12606
|
if (N && (N.loaded || N.errored)) {
|
|
12603
12607
|
this.asyncScriptLoaderHandleLoad(N);
|
|
12604
12608
|
return;
|
|
12605
12609
|
}
|
|
12606
12610
|
N.observers[p] = function(O) {
|
|
12607
|
-
return
|
|
12611
|
+
return h.asyncScriptLoaderHandleLoad(O);
|
|
12608
12612
|
};
|
|
12609
12613
|
return;
|
|
12610
12614
|
}
|
|
12611
12615
|
var _ = {};
|
|
12612
12616
|
_[p] = function(O) {
|
|
12613
|
-
return
|
|
12614
|
-
}, Le[
|
|
12617
|
+
return h.asyncScriptLoaderHandleLoad(O);
|
|
12618
|
+
}, Le[m] = {
|
|
12615
12619
|
loaded: !1,
|
|
12616
12620
|
observers: _
|
|
12617
12621
|
};
|
|
12618
12622
|
var x = document.createElement("script");
|
|
12619
|
-
x.src =
|
|
12623
|
+
x.src = m, x.async = !0;
|
|
12620
12624
|
for (var b in t.attributes)
|
|
12621
12625
|
x.setAttribute(b, t.attributes[b]);
|
|
12622
12626
|
v && (x.id = v);
|
|
12623
12627
|
var E = function(Q) {
|
|
12624
|
-
if (Le[
|
|
12625
|
-
var te = Le[
|
|
12628
|
+
if (Le[m]) {
|
|
12629
|
+
var te = Le[m], G = te.observers;
|
|
12626
12630
|
for (var P in G)
|
|
12627
12631
|
Q(G[P]) && delete G[P];
|
|
12628
12632
|
}
|
|
12629
12633
|
};
|
|
12630
12634
|
y && typeof window < "u" && (window[y] = function() {
|
|
12631
|
-
return
|
|
12635
|
+
return h.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
12632
12636
|
}), x.onload = function() {
|
|
12633
|
-
var O = Le[
|
|
12637
|
+
var O = Le[m];
|
|
12634
12638
|
O && (O.loaded = !0, E(function(Q) {
|
|
12635
12639
|
return y ? !1 : (Q(O), !0);
|
|
12636
12640
|
}));
|
|
12637
12641
|
}, x.onerror = function() {
|
|
12638
|
-
var O = Le[
|
|
12642
|
+
var O = Le[m];
|
|
12639
12643
|
O && (O.errored = !0, E(function(Q) {
|
|
12640
12644
|
return Q(O), !0;
|
|
12641
12645
|
}));
|
|
12642
12646
|
}, document.body.appendChild(x);
|
|
12643
12647
|
}, l.componentWillUnmount = function() {
|
|
12644
|
-
var
|
|
12648
|
+
var h = this.__scriptURL;
|
|
12645
12649
|
if (t.removeOnUnmount === !0)
|
|
12646
|
-
for (var
|
|
12647
|
-
|
|
12648
|
-
var g = Le[
|
|
12649
|
-
g && (delete g.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete Le[
|
|
12650
|
+
for (var m = document.getElementsByTagName("script"), p = 0; p < m.length; p += 1)
|
|
12651
|
+
m[p].src.indexOf(h) > -1 && m[p].parentNode && m[p].parentNode.removeChild(m[p]);
|
|
12652
|
+
var g = Le[h];
|
|
12653
|
+
g && (delete g.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete Le[h]);
|
|
12650
12654
|
}, l.render = function() {
|
|
12651
|
-
var
|
|
12652
|
-
|
|
12653
|
-
var p =
|
|
12654
|
-
return
|
|
12655
|
+
var h = t.globalName, m = this.props;
|
|
12656
|
+
m.asyncScriptOnLoad;
|
|
12657
|
+
var p = m.forwardedRef, g = pp(m, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
12658
|
+
return h && typeof window < "u" && (g[h] = typeof window[h] < "u" ? window[h] : void 0), g.ref = p, ot(r, g);
|
|
12655
12659
|
}, d;
|
|
12656
12660
|
})(Gs), i = Dr(function(c, d) {
|
|
12657
12661
|
return ot(o, da({}, c, {
|
|
@@ -12726,7 +12730,7 @@ const Rs = wp(bp, {
|
|
|
12726
12730
|
}) => {
|
|
12727
12731
|
const [i, c] = J("form"), [d, l] = J(
|
|
12728
12732
|
""
|
|
12729
|
-
), [u,
|
|
12733
|
+
), [u, h] = J(""), [m, p] = J(""), g = [
|
|
12730
12734
|
{ id: "spam", label: We.spam },
|
|
12731
12735
|
{
|
|
12732
12736
|
id: "inappropriate",
|
|
@@ -12746,10 +12750,10 @@ const Rs = wp(bp, {
|
|
|
12746
12750
|
], A = async () => {
|
|
12747
12751
|
if (!(!d || !n)) {
|
|
12748
12752
|
if (Us(document).includes(n)) {
|
|
12749
|
-
|
|
12753
|
+
h("Ya has reportado este comentario.");
|
|
12750
12754
|
return;
|
|
12751
12755
|
}
|
|
12752
|
-
c("loading"),
|
|
12756
|
+
c("loading"), h("");
|
|
12753
12757
|
try {
|
|
12754
12758
|
const N = await (await fetch("/api/comments-report", {
|
|
12755
12759
|
method: "POST",
|
|
@@ -12760,7 +12764,7 @@ const Rs = wp(bp, {
|
|
|
12760
12764
|
publication: r,
|
|
12761
12765
|
username: s,
|
|
12762
12766
|
id: n,
|
|
12763
|
-
captchaToken:
|
|
12767
|
+
captchaToken: m,
|
|
12764
12768
|
type: We[d]
|
|
12765
12769
|
// Enviamos el label completo
|
|
12766
12770
|
})
|
|
@@ -12772,11 +12776,11 @@ const Rs = wp(bp, {
|
|
|
12772
12776
|
else
|
|
12773
12777
|
throw new Error(N.message || "Error al reportar comentario");
|
|
12774
12778
|
} catch (v) {
|
|
12775
|
-
console.error("Error reporting comment:", v),
|
|
12779
|
+
console.error("Error reporting comment:", v), h(v.message || "Error al reportar comentario"), c("form");
|
|
12776
12780
|
}
|
|
12777
12781
|
}
|
|
12778
12782
|
}, y = () => {
|
|
12779
|
-
c("form"), l(""),
|
|
12783
|
+
c("form"), l(""), h(""), t();
|
|
12780
12784
|
};
|
|
12781
12785
|
return !e || !n || !s ? null : /* @__PURE__ */ a("div", { className: ue.overlay, children: /* @__PURE__ */ f("div", { className: ue.popup, children: [
|
|
12782
12786
|
/* @__PURE__ */ a("button", { className: "close-reply-form", onClick: y, children: /* @__PURE__ */ a(Tt, {}) }),
|
|
@@ -12897,20 +12901,20 @@ async function Yp({
|
|
|
12897
12901
|
throw new Error("Invalid input types for publication or path");
|
|
12898
12902
|
if (!c)
|
|
12899
12903
|
throw new Error("Missing CMS API token");
|
|
12900
|
-
const { PUBLIC_ENV: d, PUBLIC_API_HOST: l, PUBLIC_API_PATH: u, PUBLIC_API_PATH_VERSION:
|
|
12901
|
-
if (isNaN(
|
|
12904
|
+
const { PUBLIC_ENV: d, PUBLIC_API_HOST: l, PUBLIC_API_PATH: u, PUBLIC_API_PATH_VERSION: h } = K(), m = parseInt(String(n), 10), p = parseInt(String(r), 10);
|
|
12905
|
+
if (isNaN(m) || m <= 0)
|
|
12902
12906
|
throw new Error("Invalid size parameter");
|
|
12903
12907
|
if (isNaN(p) || p < 0)
|
|
12904
12908
|
throw new Error("Invalid sizereply parameter");
|
|
12905
12909
|
const g = d !== "prod" ? `${l}${u}` : mo(), A = new URLSearchParams({
|
|
12906
12910
|
publication: e,
|
|
12907
12911
|
path: t,
|
|
12908
|
-
size:
|
|
12912
|
+
size: m.toString(),
|
|
12909
12913
|
sizereply: p.toString(),
|
|
12910
12914
|
state: i
|
|
12911
12915
|
});
|
|
12912
12916
|
s && A.append("id", s), o && A.append("lastid", o);
|
|
12913
|
-
const y = `${g}${
|
|
12917
|
+
const y = `${g}${h}/newcomments/get?${A.toString()}`;
|
|
12914
12918
|
try {
|
|
12915
12919
|
console.log("Fetching comments from:", y);
|
|
12916
12920
|
const { data: v } = await se.get(y, {
|
|
@@ -13133,19 +13137,19 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13133
13137
|
throw new Error(
|
|
13134
13138
|
`Error al enviar comentario: ${u?.message} status: ${l.status}`
|
|
13135
13139
|
);
|
|
13136
|
-
const
|
|
13140
|
+
const h = Date.now(), m = Math.max(0, 2400 + Math.abs(h - d)), p = {
|
|
13137
13141
|
username: s.username,
|
|
13138
13142
|
firstname: s.firstname,
|
|
13139
13143
|
...s.lastname && { lastname: s.lastname },
|
|
13140
13144
|
...s.picture && { picture: s.picture }
|
|
13141
13145
|
};
|
|
13142
13146
|
return i({
|
|
13143
|
-
id:
|
|
13147
|
+
id: h.toString(),
|
|
13144
13148
|
text: c,
|
|
13145
13149
|
user: p,
|
|
13146
13150
|
date: { time: Date.now() },
|
|
13147
13151
|
reply: []
|
|
13148
|
-
}), t.current && (t.current.value = ""),
|
|
13152
|
+
}), t.current && (t.current.value = ""), m;
|
|
13149
13153
|
} catch (d) {
|
|
13150
13154
|
return console.error("Error enviando comentario:", d), alert(d.message || "Error al enviar el comentario."), !1;
|
|
13151
13155
|
}
|
|
@@ -13158,11 +13162,11 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13158
13162
|
closeForm: o,
|
|
13159
13163
|
CAPTCHA_KEY_V2: i
|
|
13160
13164
|
}) => {
|
|
13161
|
-
const [c, d] = J(!0), [l, u] = J(""),
|
|
13165
|
+
const [c, d] = J(!0), [l, u] = J(""), h = () => {
|
|
13162
13166
|
t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${ft}`), d(!0), o();
|
|
13163
13167
|
};
|
|
13164
13168
|
return /* @__PURE__ */ f("div", { className: "comment-form reply-form", children: [
|
|
13165
|
-
/* @__PURE__ */ a("button", { className: "close-reply-form", onClick:
|
|
13169
|
+
/* @__PURE__ */ a("button", { className: "close-reply-form", onClick: h, children: /* @__PURE__ */ a(Tt, {}) }),
|
|
13166
13170
|
/* @__PURE__ */ a(
|
|
13167
13171
|
Ps,
|
|
13168
13172
|
{
|
|
@@ -13181,19 +13185,19 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13181
13185
|
children: /* @__PURE__ */ a(
|
|
13182
13186
|
Ms,
|
|
13183
13187
|
{
|
|
13184
|
-
onClick: async (
|
|
13188
|
+
onClick: async (m) => {
|
|
13185
13189
|
if (c) return;
|
|
13186
13190
|
const p = await js({
|
|
13187
13191
|
path: r,
|
|
13188
13192
|
ref: t,
|
|
13189
13193
|
captchaToken: l,
|
|
13190
|
-
button:
|
|
13194
|
+
button: m.currentTarget,
|
|
13191
13195
|
user: n,
|
|
13192
13196
|
id: e,
|
|
13193
13197
|
addComment: s
|
|
13194
13198
|
});
|
|
13195
13199
|
return p && typeof p == "number" ? (setTimeout(() => {
|
|
13196
|
-
|
|
13200
|
+
h();
|
|
13197
13201
|
}, p), !0) : !1;
|
|
13198
13202
|
},
|
|
13199
13203
|
isDisabled: c
|
|
@@ -13219,7 +13223,7 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13219
13223
|
] })
|
|
13220
13224
|
] }) });
|
|
13221
13225
|
}, a9 = ({ comment: e, replyingTo: t, path: n, user: r, handleReplyingTo: s, onFlag: o, CAPTCHA_KEY_V2: i }) => {
|
|
13222
|
-
const c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [d, l] = J(c), [u,
|
|
13226
|
+
const c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [d, l] = J(c), [u, h] = Te.useState(!1), { PUBLIC_PUBLICATION_ID: m, PUBLIC_X_SECURITY_TOKEN: p } = K(), g = e.text, A = Te.useRef(null);
|
|
13223
13227
|
let y = `${Ke.firstname} ${Ke.lastname}`, v = Ke.username;
|
|
13224
13228
|
e.user && (y = `${e.user.firstname} ${e.user.lastname}`, v = e.user.username);
|
|
13225
13229
|
const N = (_) => {
|
|
@@ -13272,10 +13276,10 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13272
13276
|
className: "comment-replies-button reply-button",
|
|
13273
13277
|
onClick: async () => {
|
|
13274
13278
|
const _ = d.reply[d.reply.length - 1]?.id;
|
|
13275
|
-
|
|
13279
|
+
h(!0);
|
|
13276
13280
|
try {
|
|
13277
13281
|
const b = await Ua({
|
|
13278
|
-
publication:
|
|
13282
|
+
publication: m ?? "",
|
|
13279
13283
|
path: n ?? "",
|
|
13280
13284
|
size: 2,
|
|
13281
13285
|
sizereply: 2,
|
|
@@ -13284,9 +13288,9 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13284
13288
|
state: "5,6",
|
|
13285
13289
|
apiToken: p ?? ""
|
|
13286
13290
|
});
|
|
13287
|
-
|
|
13291
|
+
h(!1), l({ morereply: b.morecomment, reply: [...d.reply, ...b.comments] });
|
|
13288
13292
|
} catch (x) {
|
|
13289
|
-
throw
|
|
13293
|
+
throw h(!1), new Error(`Error al obtener comentarios: ${x}`);
|
|
13290
13294
|
}
|
|
13291
13295
|
},
|
|
13292
13296
|
children: "Más Respuestas"
|
|
@@ -13353,10 +13357,10 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13353
13357
|
}) => {
|
|
13354
13358
|
const o = t.replaceAll("/", "|"), [i, c] = J(
|
|
13355
13359
|
void 0
|
|
13356
|
-
), [d, l] = J(""), { comments: u, setComments:
|
|
13360
|
+
), [d, l] = J(""), { comments: u, setComments: h } = Zp(o), [m, p] = Te.useState(!1), g = Te.useRef(null), A = (E) => {
|
|
13357
13361
|
l(d === E ? "" : E);
|
|
13358
13362
|
}, y = (E) => {
|
|
13359
|
-
|
|
13363
|
+
h(
|
|
13360
13364
|
u ? {
|
|
13361
13365
|
...u,
|
|
13362
13366
|
comments: [E, ...u.comments ?? []]
|
|
@@ -13381,7 +13385,7 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13381
13385
|
state: "5,6",
|
|
13382
13386
|
apiToken: o9
|
|
13383
13387
|
});
|
|
13384
|
-
|
|
13388
|
+
h({
|
|
13385
13389
|
morecomment: Q.morecomment ?? !1,
|
|
13386
13390
|
comments: [...u.comments, ...Q.comments]
|
|
13387
13391
|
}), p(!1);
|
|
@@ -13430,11 +13434,11 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13430
13434
|
},
|
|
13431
13435
|
E.id
|
|
13432
13436
|
)),
|
|
13433
|
-
|
|
13437
|
+
m && b
|
|
13434
13438
|
]
|
|
13435
13439
|
}
|
|
13436
13440
|
) : null : b,
|
|
13437
|
-
u?.morecomment && !
|
|
13441
|
+
u?.morecomment && !m && /* @__PURE__ */ a(
|
|
13438
13442
|
"button",
|
|
13439
13443
|
{
|
|
13440
13444
|
className: "comment-replies-button",
|
|
@@ -13503,7 +13507,7 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13503
13507
|
}
|
|
13504
13508
|
];
|
|
13505
13509
|
function c9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
13506
|
-
const [r, s] = J({}), [o, i] = J(!1), [c, d] = J(!1), [l, u] = J(null), [
|
|
13510
|
+
const [r, s] = J({}), [o, i] = J(!1), [c, d] = J(!1), [l, u] = J(null), [h, m] = J(
|
|
13507
13511
|
"register"
|
|
13508
13512
|
), p = (v, N) => {
|
|
13509
13513
|
s((_) => ({ ..._, [v]: N }));
|
|
@@ -13545,12 +13549,12 @@ function c9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13545
13549
|
method: "POST",
|
|
13546
13550
|
headers: { "Content-Type": "application/json" },
|
|
13547
13551
|
body: JSON.stringify({ username: r.email })
|
|
13548
|
-
}),
|
|
13552
|
+
}), m("confirm");
|
|
13549
13553
|
return;
|
|
13550
13554
|
}
|
|
13551
13555
|
throw new Error(Q?.error || "Error al crear usuario");
|
|
13552
13556
|
}
|
|
13553
|
-
|
|
13557
|
+
m("confirm");
|
|
13554
13558
|
} catch (N) {
|
|
13555
13559
|
console.log(N), u(N?.message || N?.error || "Error inesperado");
|
|
13556
13560
|
} finally {
|
|
@@ -13575,7 +13579,7 @@ function c9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13575
13579
|
const _ = await N.json().catch(() => ({}));
|
|
13576
13580
|
throw new Error(_?.error || "Error al confirmar usuario");
|
|
13577
13581
|
}
|
|
13578
|
-
|
|
13582
|
+
m("success");
|
|
13579
13583
|
} catch (N) {
|
|
13580
13584
|
u(N?.message || "Error inesperado");
|
|
13581
13585
|
} finally {
|
|
@@ -13583,7 +13587,7 @@ function c9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13583
13587
|
}
|
|
13584
13588
|
}, y = r.password || "";
|
|
13585
13589
|
return /* @__PURE__ */ f(Y, { children: [
|
|
13586
|
-
|
|
13590
|
+
h === "register" && /* @__PURE__ */ f(Y, { children: [
|
|
13587
13591
|
/* @__PURE__ */ f("button", { onClick: t, className: k.google, children: [
|
|
13588
13592
|
/* @__PURE__ */ a(
|
|
13589
13593
|
"img",
|
|
@@ -13661,7 +13665,7 @@ function c9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13661
13665
|
}
|
|
13662
13666
|
)
|
|
13663
13667
|
] }),
|
|
13664
|
-
|
|
13668
|
+
h === "confirm" && /* @__PURE__ */ f(
|
|
13665
13669
|
"form",
|
|
13666
13670
|
{
|
|
13667
13671
|
onSubmit: A,
|
|
@@ -13691,7 +13695,7 @@ function c9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13691
13695
|
]
|
|
13692
13696
|
}
|
|
13693
13697
|
),
|
|
13694
|
-
|
|
13698
|
+
h === "success" && /* @__PURE__ */ f("form", { className: k.form, children: [
|
|
13695
13699
|
/* @__PURE__ */ f("div", { className: k.successContainer, children: [
|
|
13696
13700
|
/* @__PURE__ */ a("div", { className: k.thumbsUp, children: /* @__PURE__ */ a(
|
|
13697
13701
|
"svg",
|
|
@@ -13716,7 +13720,7 @@ function c9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13716
13720
|
] }),
|
|
13717
13721
|
/* @__PURE__ */ a("button", { onClick: e, className: k.primary, children: "Iniciar sesión" })
|
|
13718
13722
|
] }),
|
|
13719
|
-
|
|
13723
|
+
h === "register" && /* @__PURE__ */ f("p", { className: k.switch, children: [
|
|
13720
13724
|
"¿Ya tenés cuenta?",
|
|
13721
13725
|
/* @__PURE__ */ a("button", { type: "button", onClick: e, children: "Iniciar sesión" })
|
|
13722
13726
|
] })
|
|
@@ -13729,7 +13733,7 @@ function l9({
|
|
|
13729
13733
|
handleGoogleLogin: r,
|
|
13730
13734
|
CAPTCHA_KEY: s
|
|
13731
13735
|
}) {
|
|
13732
|
-
const [o, i] = J("login"), [c, d] = J(""), [l, u] = J(""), [
|
|
13736
|
+
const [o, i] = J("login"), [c, d] = J(""), [l, u] = J(""), [h, m] = J(""), [p, g] = J(""), [A, y] = J(""), [v, N] = J(!1), [_, x] = J(!1), [b, E] = J(null);
|
|
13733
13737
|
return console.log("CAPTCHA_KEY", s), /* @__PURE__ */ f(Y, { children: [
|
|
13734
13738
|
o === "login" && /* @__PURE__ */ a(
|
|
13735
13739
|
d9,
|
|
@@ -13809,13 +13813,13 @@ function l9({
|
|
|
13809
13813
|
h9,
|
|
13810
13814
|
{
|
|
13811
13815
|
email: c,
|
|
13812
|
-
confirmationCode:
|
|
13816
|
+
confirmationCode: h,
|
|
13813
13817
|
newPassword: p,
|
|
13814
13818
|
confirmNewPassword: A,
|
|
13815
13819
|
showPassword: v,
|
|
13816
13820
|
loading: _,
|
|
13817
13821
|
error: b,
|
|
13818
|
-
setConfirmationCode:
|
|
13822
|
+
setConfirmationCode: m,
|
|
13819
13823
|
setNewPassword: g,
|
|
13820
13824
|
setConfirmNewPassword: y,
|
|
13821
13825
|
setShowPassword: N,
|
|
@@ -13836,7 +13840,7 @@ function l9({
|
|
|
13836
13840
|
const ee = await fetch("/api/auth/confirm-forgot-password", {
|
|
13837
13841
|
method: "POST",
|
|
13838
13842
|
headers: { "Content-Type": "application/json" },
|
|
13839
|
-
body: JSON.stringify({ email: c, code:
|
|
13843
|
+
body: JSON.stringify({ email: c, code: h, newPassword: p })
|
|
13840
13844
|
});
|
|
13841
13845
|
if (!ee.ok) {
|
|
13842
13846
|
const ce = await ee.json().catch(() => ({}));
|
|
@@ -13876,10 +13880,10 @@ function d9({
|
|
|
13876
13880
|
onSubmit: d,
|
|
13877
13881
|
onForgot: l,
|
|
13878
13882
|
onRegister: u,
|
|
13879
|
-
handleGoogleLogin:
|
|
13883
|
+
handleGoogleLogin: h
|
|
13880
13884
|
}) {
|
|
13881
13885
|
return /* @__PURE__ */ f(Y, { children: [
|
|
13882
|
-
/* @__PURE__ */ f("button", { onClick:
|
|
13886
|
+
/* @__PURE__ */ f("button", { onClick: h, className: k.google, children: [
|
|
13883
13887
|
/* @__PURE__ */ a(
|
|
13884
13888
|
"img",
|
|
13885
13889
|
{
|
|
@@ -13905,7 +13909,7 @@ function d9({
|
|
|
13905
13909
|
{
|
|
13906
13910
|
type: "email",
|
|
13907
13911
|
value: e,
|
|
13908
|
-
onChange: (
|
|
13912
|
+
onChange: (m) => o(m.target.value),
|
|
13909
13913
|
className: k.input,
|
|
13910
13914
|
placeholder: ""
|
|
13911
13915
|
}
|
|
@@ -13918,7 +13922,7 @@ function d9({
|
|
|
13918
13922
|
{
|
|
13919
13923
|
type: n ? "text" : "password",
|
|
13920
13924
|
value: t,
|
|
13921
|
-
onChange: (
|
|
13925
|
+
onChange: (m) => i(m.target.value),
|
|
13922
13926
|
className: k.input,
|
|
13923
13927
|
placeholder: ""
|
|
13924
13928
|
}
|
|
@@ -13930,7 +13934,7 @@ function d9({
|
|
|
13930
13934
|
id: "showPasswordLogin",
|
|
13931
13935
|
type: "checkbox",
|
|
13932
13936
|
checked: n,
|
|
13933
|
-
onChange: (
|
|
13937
|
+
onChange: (m) => c(m.target.checked)
|
|
13934
13938
|
}
|
|
13935
13939
|
),
|
|
13936
13940
|
/* @__PURE__ */ a("label", { htmlFor: "showPasswordLogin", className: k.checkboxLabel, children: "Mostrar contraseña" })
|
|
@@ -14005,13 +14009,13 @@ function h9({
|
|
|
14005
14009
|
setNewPassword: d,
|
|
14006
14010
|
setConfirmNewPassword: l,
|
|
14007
14011
|
setShowPassword: u,
|
|
14008
|
-
onSubmit:
|
|
14009
|
-
onBack:
|
|
14012
|
+
onSubmit: h,
|
|
14013
|
+
onBack: m
|
|
14010
14014
|
}) {
|
|
14011
14015
|
return /* @__PURE__ */ f(
|
|
14012
14016
|
"form",
|
|
14013
14017
|
{
|
|
14014
|
-
onSubmit:
|
|
14018
|
+
onSubmit: h,
|
|
14015
14019
|
className: k.form,
|
|
14016
14020
|
"data-error": i ? "true" : "false",
|
|
14017
14021
|
children: [
|
|
@@ -14099,7 +14103,7 @@ function h9({
|
|
|
14099
14103
|
children: o ? /* @__PURE__ */ a(Je, {}) : "Cambiar contraseña"
|
|
14100
14104
|
}
|
|
14101
14105
|
),
|
|
14102
|
-
/* @__PURE__ */ a("p", { className: k.switch, children: /* @__PURE__ */ a("button", { type: "button", onClick:
|
|
14106
|
+
/* @__PURE__ */ a("p", { className: k.switch, children: /* @__PURE__ */ a("button", { type: "button", onClick: m, children: "Volver" }) })
|
|
14103
14107
|
]
|
|
14104
14108
|
}
|
|
14105
14109
|
);
|
|
@@ -14198,8 +14202,8 @@ function g9({
|
|
|
14198
14202
|
"a",
|
|
14199
14203
|
{
|
|
14200
14204
|
href: n,
|
|
14201
|
-
onClick: async (
|
|
14202
|
-
|
|
14205
|
+
onClick: async (m) => {
|
|
14206
|
+
m.preventDefault(), n && l(!0);
|
|
14203
14207
|
},
|
|
14204
14208
|
className: "login-button",
|
|
14205
14209
|
children: "Iniciar Sesión"
|
|
@@ -14212,8 +14216,8 @@ function g9({
|
|
|
14212
14216
|
isAuthenticated: e,
|
|
14213
14217
|
handleLogout: async () => {
|
|
14214
14218
|
{
|
|
14215
|
-
const
|
|
14216
|
-
window.location.href = `${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(
|
|
14219
|
+
const m = window.location.pathname;
|
|
14220
|
+
window.location.href = `${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(m)}`;
|
|
14217
14221
|
}
|
|
14218
14222
|
},
|
|
14219
14223
|
path: s,
|
|
@@ -14238,8 +14242,8 @@ function p9({
|
|
|
14238
14242
|
try {
|
|
14239
14243
|
const p = await (await fetch("/api/auth/user", { credentials: "include" })).json();
|
|
14240
14244
|
o(p.isAuthenticated ?? !1), c(p.user ?? null);
|
|
14241
|
-
} catch (
|
|
14242
|
-
console.error("Error checking auth:",
|
|
14245
|
+
} catch (m) {
|
|
14246
|
+
console.error("Error checking auth:", m), o(!1), c(null);
|
|
14243
14247
|
}
|
|
14244
14248
|
}
|
|
14245
14249
|
}, [e, d]);
|
|
@@ -14247,14 +14251,14 @@ function p9({
|
|
|
14247
14251
|
l();
|
|
14248
14252
|
}, [l, e]), De(() => {
|
|
14249
14253
|
if (!i || !e || typeof window > "u") return;
|
|
14250
|
-
const
|
|
14251
|
-
if (typeof
|
|
14254
|
+
const m = window;
|
|
14255
|
+
if (typeof m != "function") {
|
|
14252
14256
|
console.warn("gtag no está disponible todavía");
|
|
14253
14257
|
return;
|
|
14254
14258
|
}
|
|
14255
|
-
|
|
14259
|
+
m.gtag("set", { user_id: i.username }), console.log("username setted successfully");
|
|
14256
14260
|
}, [i, e]);
|
|
14257
|
-
const u = "/api/auth/login",
|
|
14261
|
+
const u = "/api/auth/login", h = /* @__PURE__ */ a(
|
|
14258
14262
|
"div",
|
|
14259
14263
|
{
|
|
14260
14264
|
style: {
|
|
@@ -14267,7 +14271,7 @@ function p9({
|
|
|
14267
14271
|
children: /* @__PURE__ */ a(Je, {})
|
|
14268
14272
|
}
|
|
14269
14273
|
);
|
|
14270
|
-
return s === null ?
|
|
14274
|
+
return s === null ? h : e ? /* @__PURE__ */ a(
|
|
14271
14275
|
g9,
|
|
14272
14276
|
{
|
|
14273
14277
|
icon: n,
|
|
@@ -14279,7 +14283,7 @@ function p9({
|
|
|
14279
14283
|
path: t,
|
|
14280
14284
|
COMMENTS_VARS: r
|
|
14281
14285
|
}
|
|
14282
|
-
) :
|
|
14286
|
+
) : h;
|
|
14283
14287
|
}
|
|
14284
14288
|
const x3 = ({
|
|
14285
14289
|
render: e,
|
|
@@ -14294,18 +14298,18 @@ const x3 = ({
|
|
|
14294
14298
|
const d = Pr(null), [l, u] = Te.useState(i);
|
|
14295
14299
|
Te.useEffect(() => {
|
|
14296
14300
|
if (i || l) return;
|
|
14297
|
-
const
|
|
14301
|
+
const m = new IntersectionObserver(
|
|
14298
14302
|
([p]) => {
|
|
14299
|
-
p?.isIntersecting && (u(!0),
|
|
14303
|
+
p?.isIntersecting && (u(!0), m.disconnect());
|
|
14300
14304
|
},
|
|
14301
14305
|
{
|
|
14302
14306
|
rootMargin: "0px",
|
|
14303
14307
|
threshold: 0.1
|
|
14304
14308
|
}
|
|
14305
14309
|
);
|
|
14306
|
-
return d.current &&
|
|
14310
|
+
return d.current && m.observe(d.current), () => m.disconnect();
|
|
14307
14311
|
}, []);
|
|
14308
|
-
const
|
|
14312
|
+
const h = {
|
|
14309
14313
|
comment: /* @__PURE__ */ a(
|
|
14310
14314
|
p9,
|
|
14311
14315
|
{
|
|
@@ -14333,7 +14337,7 @@ const x3 = ({
|
|
|
14333
14337
|
style: {
|
|
14334
14338
|
...s ? s["Modulo 1x3 Client"] ? s["Modulo 1x3 Client"] : s["Modulo 1x3"] : {}
|
|
14335
14339
|
},
|
|
14336
|
-
children:
|
|
14340
|
+
children: h[e]
|
|
14337
14341
|
}
|
|
14338
14342
|
);
|
|
14339
14343
|
};
|
|
@@ -14387,16 +14391,16 @@ async function T3({
|
|
|
14387
14391
|
message: "Captcha inválido. Intenta nuevamente.",
|
|
14388
14392
|
status: 403
|
|
14389
14393
|
};
|
|
14390
|
-
const
|
|
14394
|
+
const h = `${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`, m = {
|
|
14391
14395
|
publication: e,
|
|
14392
14396
|
path: t.replace(/\|/gi, "/"),
|
|
14393
14397
|
username: n ?? !1,
|
|
14394
14398
|
text: r.trim()
|
|
14395
14399
|
};
|
|
14396
|
-
s && (
|
|
14397
|
-
const p = new URLSearchParams(
|
|
14400
|
+
s && (m.id = s);
|
|
14401
|
+
const p = new URLSearchParams(m);
|
|
14398
14402
|
try {
|
|
14399
|
-
const { data: g } = await se.get(`${
|
|
14403
|
+
const { data: g } = await se.get(`${h}?${p.toString()}`, {
|
|
14400
14404
|
headers: {
|
|
14401
14405
|
"Content-Type": "application/json",
|
|
14402
14406
|
"x-security-token": d,
|