sass-template-common 0.2.42 → 0.2.44
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) {
|
|
@@ -3456,24 +3456,24 @@ const W9 = async (e, t, n, r, s, o, i) => {
|
|
|
3456
3456
|
axiosApi: e,
|
|
3457
3457
|
exclude: i
|
|
3458
3458
|
}), d = [];
|
|
3459
|
-
for (let
|
|
3460
|
-
for (let
|
|
3459
|
+
for (let h = 1; h <= s; h++)
|
|
3460
|
+
for (let m = 1; m <= o; m++)
|
|
3461
3461
|
d.push({
|
|
3462
3462
|
func: c.getBlockSass,
|
|
3463
|
-
slot_id:
|
|
3463
|
+
slot_id: h + "_" + m
|
|
3464
3464
|
});
|
|
3465
3465
|
const l = await Promise.allSettled([
|
|
3466
|
-
...d.map((
|
|
3466
|
+
...d.map((h) => h.func({ template: "Home_" + h.slot_id }))
|
|
3467
3467
|
]);
|
|
3468
3468
|
return (() => {
|
|
3469
|
-
const
|
|
3470
|
-
for (let
|
|
3469
|
+
const h = {};
|
|
3470
|
+
for (let m = 0; m < l.length; m++) {
|
|
3471
3471
|
const p = ho(
|
|
3472
|
-
l[
|
|
3473
|
-
), g = "Home_" + (Math.floor(
|
|
3474
|
-
p && (
|
|
3472
|
+
l[m]
|
|
3473
|
+
), g = "Home_" + (Math.floor(m / o) + 1) + "_" + (Math.floor(m % o) + 1);
|
|
3474
|
+
p && (h[g] = { ...p });
|
|
3475
3475
|
}
|
|
3476
|
-
return
|
|
3476
|
+
return h;
|
|
3477
3477
|
})();
|
|
3478
3478
|
}, hc = (e) => {
|
|
3479
3479
|
const t = Qr(e);
|
|
@@ -3536,11 +3536,11 @@ const W9 = async (e, t, n, r, s, o, i) => {
|
|
|
3536
3536
|
page: d
|
|
3537
3537
|
});
|
|
3538
3538
|
if (!u) return ve(t);
|
|
3539
|
-
const
|
|
3540
|
-
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) }), {
|
|
3541
3541
|
...t,
|
|
3542
|
-
title: `Últimas Noticias de ${
|
|
3543
|
-
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}`,
|
|
3544
3544
|
alternates: {
|
|
3545
3545
|
...t.alternates,
|
|
3546
3546
|
canonical: n.siteUrl + r
|
|
@@ -3554,13 +3554,13 @@ const W9 = async (e, t, n, r, s, o, i) => {
|
|
|
3554
3554
|
"msapplication-TileImage": n.msapplicationTileImage ?? ""
|
|
3555
3555
|
},
|
|
3556
3556
|
openGraph: {
|
|
3557
|
-
title: `${
|
|
3557
|
+
title: `${m.info.section?.name}`,
|
|
3558
3558
|
type: "website",
|
|
3559
3559
|
url: `${n.siteUrl}${r}`
|
|
3560
3560
|
},
|
|
3561
3561
|
twitter: {
|
|
3562
3562
|
card: "summary_large_image",
|
|
3563
|
-
title: `${
|
|
3563
|
+
title: `${m.info.section?.name}`,
|
|
3564
3564
|
domain: n.siteUrl,
|
|
3565
3565
|
url: `${n.siteUrl}${r}`
|
|
3566
3566
|
}
|
|
@@ -3570,12 +3570,12 @@ const W9 = async (e, t, n, r, s, o, i) => {
|
|
|
3570
3570
|
}
|
|
3571
3571
|
},
|
|
3572
3572
|
tema: async (e) => {
|
|
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 || ""),
|
|
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();
|
|
3574
3574
|
try {
|
|
3575
3575
|
const p = await o.getNewsListTags({
|
|
3576
|
-
tagid:
|
|
3576
|
+
tagid: h,
|
|
3577
3577
|
size: l,
|
|
3578
|
-
tagtype: Number(
|
|
3578
|
+
tagtype: Number(m),
|
|
3579
3579
|
newstype: n.newsType,
|
|
3580
3580
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
3581
3581
|
page: d
|
|
@@ -3741,7 +3741,7 @@ const W9 = async (e, t, n, r, s, o, i) => {
|
|
|
3741
3741
|
user: o,
|
|
3742
3742
|
exclude: "groups",
|
|
3743
3743
|
imagesizes: s.sm
|
|
3744
|
-
}),
|
|
3744
|
+
}), h = await i.getNewsListAutor({
|
|
3745
3745
|
size: Number(n.newsListLimit) ?? 0,
|
|
3746
3746
|
user: o,
|
|
3747
3747
|
page: l,
|
|
@@ -3749,7 +3749,7 @@ const W9 = async (e, t, n, r, s, o, i) => {
|
|
|
3749
3749
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
3750
3750
|
imagesizes: s.md
|
|
3751
3751
|
});
|
|
3752
|
-
return
|
|
3752
|
+
return h ? (h.data.data.length < Number(n.newsListLimit) || d.push({
|
|
3753
3753
|
rel: "next",
|
|
3754
3754
|
url: $t(n, c, l)
|
|
3755
3755
|
}), l > 1 && d.push({
|
|
@@ -3797,8 +3797,8 @@ async function K9({
|
|
|
3797
3797
|
query: d,
|
|
3798
3798
|
currentNew: l,
|
|
3799
3799
|
banners: u,
|
|
3800
|
-
internalPath:
|
|
3801
|
-
config:
|
|
3800
|
+
internalPath: h,
|
|
3801
|
+
config: m,
|
|
3802
3802
|
socials: p,
|
|
3803
3803
|
speculationType: g = "Common",
|
|
3804
3804
|
preloadImageUrl: A,
|
|
@@ -3809,7 +3809,7 @@ async function K9({
|
|
|
3809
3809
|
}) {
|
|
3810
3810
|
const x = v || await mc[s]({
|
|
3811
3811
|
meta: n,
|
|
3812
|
-
config:
|
|
3812
|
+
config: m,
|
|
3813
3813
|
currentNew: l,
|
|
3814
3814
|
pathname: o,
|
|
3815
3815
|
imgSizes: r,
|
|
@@ -3819,16 +3819,16 @@ async function K9({
|
|
|
3819
3819
|
}), b = yo(x), E = N || zr[s]({
|
|
3820
3820
|
pathname: o,
|
|
3821
3821
|
slug: i,
|
|
3822
|
-
config:
|
|
3822
|
+
config: m,
|
|
3823
3823
|
currentNew: l,
|
|
3824
|
-
internalPath:
|
|
3824
|
+
internalPath: h
|
|
3825
3825
|
});
|
|
3826
3826
|
return /* @__PURE__ */ f(Y, { children: [
|
|
3827
3827
|
/* @__PURE__ */ a("meta", { charSet: "utf-8" }),
|
|
3828
3828
|
/* @__PURE__ */ a("meta", { name: "viewport", content: "width=device-width" }),
|
|
3829
3829
|
b,
|
|
3830
3830
|
/* @__PURE__ */ a(vo, {}),
|
|
3831
|
-
t.ampConfig &&
|
|
3831
|
+
t.ampConfig && m.ampOption && t.ampConfig_slugIsValid && /* @__PURE__ */ a("link", { rel: "amphtml", href: m.siteUrl + "/amp" + o }),
|
|
3832
3832
|
t.preloadImages && l && l.preview?.sizes && /* @__PURE__ */ a(
|
|
3833
3833
|
Ma,
|
|
3834
3834
|
{
|
|
@@ -3845,7 +3845,7 @@ async function K9({
|
|
|
3845
3845
|
}
|
|
3846
3846
|
),
|
|
3847
3847
|
t.preloadImages && A && /* @__PURE__ */ a(Ma, { images: A }),
|
|
3848
|
-
/* @__PURE__ */ a(Ro, { config:
|
|
3848
|
+
/* @__PURE__ */ a(Ro, { config: m }),
|
|
3849
3849
|
/* @__PURE__ */ a(
|
|
3850
3850
|
Hr,
|
|
3851
3851
|
{
|
|
@@ -3854,39 +3854,39 @@ async function K9({
|
|
|
3854
3854
|
banners: u
|
|
3855
3855
|
}
|
|
3856
3856
|
),
|
|
3857
|
-
t.schemas_NewsArticle &&
|
|
3857
|
+
t.schemas_NewsArticle && h && /* @__PURE__ */ a(
|
|
3858
3858
|
Io,
|
|
3859
3859
|
{
|
|
3860
|
-
BASE_URL:
|
|
3861
|
-
config:
|
|
3862
|
-
realPath:
|
|
3860
|
+
BASE_URL: m.siteUrl,
|
|
3861
|
+
config: m,
|
|
3862
|
+
realPath: h,
|
|
3863
3863
|
axiosApi: e
|
|
3864
3864
|
}
|
|
3865
3865
|
),
|
|
3866
|
-
/* @__PURE__ */ a(ko, { config:
|
|
3867
|
-
t.schemas_Videos &&
|
|
3866
|
+
/* @__PURE__ */ a(ko, { config: m, socials: p }),
|
|
3867
|
+
t.schemas_Videos && h && /* @__PURE__ */ a(
|
|
3868
3868
|
qo,
|
|
3869
3869
|
{
|
|
3870
3870
|
axiosApi: e,
|
|
3871
|
-
realPath:
|
|
3872
|
-
config:
|
|
3871
|
+
realPath: h,
|
|
3872
|
+
config: m
|
|
3873
3873
|
}
|
|
3874
3874
|
),
|
|
3875
3875
|
t.schemas_ItemList && /* @__PURE__ */ a(
|
|
3876
3876
|
To,
|
|
3877
3877
|
{
|
|
3878
|
-
config:
|
|
3878
|
+
config: m,
|
|
3879
3879
|
ROUTE: s,
|
|
3880
3880
|
pathname: o,
|
|
3881
3881
|
axiosApi: e
|
|
3882
3882
|
}
|
|
3883
3883
|
),
|
|
3884
|
-
t.schemas_WebsiteList && /* @__PURE__ */ a(Uo, { config:
|
|
3884
|
+
t.schemas_WebsiteList && /* @__PURE__ */ a(Uo, { config: m }),
|
|
3885
3885
|
/* @__PURE__ */ a(
|
|
3886
3886
|
Eo,
|
|
3887
3887
|
{
|
|
3888
3888
|
type: g,
|
|
3889
|
-
active:
|
|
3889
|
+
active: m.useSpeculationRules,
|
|
3890
3890
|
customSpeculation: y
|
|
3891
3891
|
}
|
|
3892
3892
|
),
|
|
@@ -3906,19 +3906,19 @@ const J9 = ({
|
|
|
3906
3906
|
scriptReplaces: l,
|
|
3907
3907
|
body_custom_elements: u
|
|
3908
3908
|
}) => {
|
|
3909
|
-
const
|
|
3909
|
+
const h = zs(c, d), m = zr[t]({
|
|
3910
3910
|
pathname: r,
|
|
3911
3911
|
slug: s,
|
|
3912
3912
|
config: o,
|
|
3913
3913
|
currentNew: c,
|
|
3914
3914
|
internalPath: i
|
|
3915
|
-
}), 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;
|
|
3916
3916
|
return /* @__PURE__ */ f(Y, { children: [
|
|
3917
3917
|
/* @__PURE__ */ a(Hr, { name: "bodybefore", banners: n, replaces: A }),
|
|
3918
3918
|
e,
|
|
3919
3919
|
/* @__PURE__ */ a($s, {}),
|
|
3920
3920
|
/* @__PURE__ */ a(Hs, {}),
|
|
3921
|
-
/* @__PURE__ */ a(Vs, { dimensionValues:
|
|
3921
|
+
/* @__PURE__ */ a(Vs, { dimensionValues: h }),
|
|
3922
3922
|
/* @__PURE__ */ a(Fs, {}),
|
|
3923
3923
|
u,
|
|
3924
3924
|
/* @__PURE__ */ a(wo, { name: "bodyafter", banners: n, replaces: y })
|
|
@@ -3964,7 +3964,7 @@ function vc({
|
|
|
3964
3964
|
enableDrag: o,
|
|
3965
3965
|
onIndexChange: i
|
|
3966
3966
|
}) {
|
|
3967
|
-
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(() => {
|
|
3968
3968
|
if (s) return 1;
|
|
3969
3969
|
const w = _.current?.offsetWidth || window.innerWidth, S = n + r, q = Math.floor(w / S);
|
|
3970
3970
|
return Math.max(1, q);
|
|
@@ -4004,14 +4004,14 @@ function vc({
|
|
|
4004
4004
|
[s, n, r, E, te]
|
|
4005
4005
|
), ee = he(
|
|
4006
4006
|
(w) => {
|
|
4007
|
-
o && (u(w),
|
|
4007
|
+
o && (u(w), m(w), g(0), y(Date.now()), d(!0), document.body.classList.add("dragging"));
|
|
4008
4008
|
},
|
|
4009
4009
|
[o]
|
|
4010
4010
|
), ce = he(
|
|
4011
4011
|
(w) => {
|
|
4012
4012
|
if (!c || !o) return;
|
|
4013
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;
|
|
4014
|
-
|
|
4014
|
+
m(w), g(H);
|
|
4015
4015
|
},
|
|
4016
4016
|
[c, l, o, e, Q, n, r]
|
|
4017
4017
|
), M = he(
|
|
@@ -4022,7 +4022,7 @@ function vc({
|
|
|
4022
4022
|
), U = he(
|
|
4023
4023
|
(w) => {
|
|
4024
4024
|
if (!c || !o) return;
|
|
4025
|
-
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;
|
|
4026
4026
|
if (V > 0)
|
|
4027
4027
|
if (S > 0) {
|
|
4028
4028
|
const F = Math.max(0, e - V);
|
|
@@ -4035,7 +4035,7 @@ function vc({
|
|
|
4035
4035
|
},
|
|
4036
4036
|
[
|
|
4037
4037
|
c,
|
|
4038
|
-
|
|
4038
|
+
h,
|
|
4039
4039
|
l,
|
|
4040
4040
|
A,
|
|
4041
4041
|
e,
|
|
@@ -4101,7 +4101,7 @@ function X9(e) {
|
|
|
4101
4101
|
fullPageWidth: i = !1,
|
|
4102
4102
|
pagination: c = !1,
|
|
4103
4103
|
enableDrag: d = !0
|
|
4104
|
-
} = 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);
|
|
4105
4105
|
De(() => {
|
|
4106
4106
|
p(!0);
|
|
4107
4107
|
const G = document.getElementById("ssr-dummy_" + n);
|
|
@@ -4122,11 +4122,11 @@ function X9(e) {
|
|
|
4122
4122
|
cardGap: o,
|
|
4123
4123
|
fullPageWidth: i,
|
|
4124
4124
|
enableDrag: d,
|
|
4125
|
-
onIndexChange:
|
|
4125
|
+
onIndexChange: h
|
|
4126
4126
|
}), b = he(
|
|
4127
4127
|
(G) => {
|
|
4128
4128
|
const P = Math.max(0, Math.min(G, v));
|
|
4129
|
-
|
|
4129
|
+
h(P);
|
|
4130
4130
|
},
|
|
4131
4131
|
[v]
|
|
4132
4132
|
), E = he(() => {
|
|
@@ -4134,7 +4134,7 @@ function X9(e) {
|
|
|
4134
4134
|
}, [u, b]), O = he(() => {
|
|
4135
4135
|
b(u + 1);
|
|
4136
4136
|
}, [u, b]);
|
|
4137
|
-
if (!
|
|
4137
|
+
if (!m) return;
|
|
4138
4138
|
const Q = N(u, A), te = i ? `translateX(${Q}%)` : `translateX(${Q}px)`;
|
|
4139
4139
|
return /* @__PURE__ */ f("div", { className: `${n}- carrousel-container`, children: [
|
|
4140
4140
|
u > 0 && /* @__PURE__ */ a(
|
|
@@ -4520,7 +4520,7 @@ const xt = (e) => {
|
|
|
4520
4520
|
if (e?.config?.showtime)
|
|
4521
4521
|
return Me(e.info?.date?.modified);
|
|
4522
4522
|
}, d = () => {
|
|
4523
|
-
const
|
|
4523
|
+
const h = {
|
|
4524
4524
|
"--fontSizeSubTitle": e.fontSizeSubTitle,
|
|
4525
4525
|
"--lineHeightSubTitle": e.lineHeightSubTitle,
|
|
4526
4526
|
"--colorSubTitle": e.colorSubTitle
|
|
@@ -4532,34 +4532,34 @@ const xt = (e) => {
|
|
|
4532
4532
|
dangerouslySetInnerHTML: {
|
|
4533
4533
|
__html: e.main.subtitle.rendered ?? e.main.subtitle.striped ?? ""
|
|
4534
4534
|
},
|
|
4535
|
-
style:
|
|
4535
|
+
style: h
|
|
4536
4536
|
}
|
|
4537
4537
|
);
|
|
4538
4538
|
}, l = () => e.main.uppertitle ? /* @__PURE__ */ a("p", { className: re.uppertitle, title: e.main.uppertitle, children: e.main.uppertitle }) : null, u = () => {
|
|
4539
4539
|
if (i && r?.tags?.length && r.tags.length > 0) {
|
|
4540
|
-
const
|
|
4540
|
+
const h = r.tags[0], m = h.name;
|
|
4541
4541
|
return /* @__PURE__ */ f("h3", { className: re.sectionDescriptionContainer, children: [
|
|
4542
|
-
|
|
4542
|
+
h.approved ? /* @__PURE__ */ a(
|
|
4543
4543
|
B,
|
|
4544
4544
|
{
|
|
4545
|
-
"aria-label":
|
|
4545
|
+
"aria-label": m,
|
|
4546
4546
|
className: re.sectionDescription,
|
|
4547
|
-
href: vt(
|
|
4548
|
-
children:
|
|
4547
|
+
href: vt(h, o),
|
|
4548
|
+
children: m
|
|
4549
4549
|
}
|
|
4550
|
-
) : /* @__PURE__ */ a("div", { className: re.sectionDescription, children:
|
|
4550
|
+
) : /* @__PURE__ */ a("div", { className: re.sectionDescription, children: m }),
|
|
4551
4551
|
l()
|
|
4552
4552
|
] });
|
|
4553
4553
|
} else if (s?.section?.url) {
|
|
4554
|
-
const
|
|
4554
|
+
const h = s.section.name;
|
|
4555
4555
|
return /* @__PURE__ */ f("h3", { className: re.sectionDescriptionContainer, children: [
|
|
4556
4556
|
/* @__PURE__ */ a(
|
|
4557
4557
|
B,
|
|
4558
4558
|
{
|
|
4559
|
-
"aria-label":
|
|
4559
|
+
"aria-label": h,
|
|
4560
4560
|
className: re.sectionDescription,
|
|
4561
4561
|
href: s.section.url,
|
|
4562
|
-
children:
|
|
4562
|
+
children: h
|
|
4563
4563
|
}
|
|
4564
4564
|
),
|
|
4565
4565
|
l()
|
|
@@ -6582,9 +6582,9 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6582
6582
|
}, wn = (e) => {
|
|
6583
6583
|
const { currentPage: t, showNext: n, maxPages: r, pathname: s, query: o } = e, i = (c, d, l) => {
|
|
6584
6584
|
let u = "";
|
|
6585
|
-
const
|
|
6586
|
-
return
|
|
6587
|
-
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}`);
|
|
6588
6588
|
}), c === "next" ? u += `/page/${t + 1}${l ? `?query=${l}` : ""}` : u += `/page/${t - 1}${l ? `?query=${l}` : ""}`;
|
|
6589
6589
|
};
|
|
6590
6590
|
return (t > 1 || n && t < r) && /* @__PURE__ */ f("section", { className: Bn.content, children: [
|
|
@@ -6638,8 +6638,8 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6638
6638
|
overImage: d = "default",
|
|
6639
6639
|
isTitle: l,
|
|
6640
6640
|
priorityHigh: u = !1,
|
|
6641
|
-
isLarge:
|
|
6642
|
-
paths:
|
|
6641
|
+
isLarge: h,
|
|
6642
|
+
paths: m,
|
|
6643
6643
|
keywords: p
|
|
6644
6644
|
} = e;
|
|
6645
6645
|
return /* @__PURE__ */ f(
|
|
@@ -6663,7 +6663,7 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6663
6663
|
{
|
|
6664
6664
|
preview: s,
|
|
6665
6665
|
isVideo: i,
|
|
6666
|
-
isLarge:
|
|
6666
|
+
isLarge: h,
|
|
6667
6667
|
priorityHigh: u
|
|
6668
6668
|
}
|
|
6669
6669
|
)
|
|
@@ -6680,7 +6680,7 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6680
6680
|
config: c,
|
|
6681
6681
|
overImage: d,
|
|
6682
6682
|
isTitle: l,
|
|
6683
|
-
paths:
|
|
6683
|
+
paths: m,
|
|
6684
6684
|
keywords: p
|
|
6685
6685
|
}
|
|
6686
6686
|
) })
|
|
@@ -6885,7 +6885,7 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6885
6885
|
contenSocialNetwork: X1,
|
|
6886
6886
|
socialIcon: eu
|
|
6887
6887
|
}, tu = async (e) => {
|
|
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 ?? "",
|
|
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 ?? "";
|
|
6889
6889
|
return /* @__PURE__ */ a(
|
|
6890
6890
|
"section",
|
|
6891
6891
|
{
|
|
@@ -6920,19 +6920,19 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6920
6920
|
children: /* @__PURE__ */ a(_a, { className: Ne.socialIcon })
|
|
6921
6921
|
}
|
|
6922
6922
|
),
|
|
6923
|
-
|
|
6923
|
+
h && /* @__PURE__ */ a(
|
|
6924
6924
|
"a",
|
|
6925
6925
|
{
|
|
6926
|
-
href:
|
|
6926
|
+
href: h,
|
|
6927
6927
|
target: "_blank",
|
|
6928
6928
|
rel: "noreferrer",
|
|
6929
6929
|
children: /* @__PURE__ */ a(Na, { className: Ne.socialIcon })
|
|
6930
6930
|
}
|
|
6931
6931
|
),
|
|
6932
|
-
|
|
6932
|
+
m && /* @__PURE__ */ a(
|
|
6933
6933
|
"a",
|
|
6934
6934
|
{
|
|
6935
|
-
href:
|
|
6935
|
+
href: m,
|
|
6936
6936
|
target: "_blank",
|
|
6937
6937
|
rel: "noreferrer",
|
|
6938
6938
|
children: /* @__PURE__ */ a(jt, { className: Ne.socialIcon })
|
|
@@ -6963,7 +6963,7 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6963
6963
|
contenSocialNetwork: du,
|
|
6964
6964
|
socialIcon: uu
|
|
6965
6965
|
}, hu = async (e) => {
|
|
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 ?? "",
|
|
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 ?? "";
|
|
6967
6967
|
return /* @__PURE__ */ a("section", { className: Se.content, children: /* @__PURE__ */ f("div", { className: Se.contentInfo, children: [
|
|
6968
6968
|
s ? /* @__PURE__ */ a(
|
|
6969
6969
|
"img",
|
|
@@ -6988,10 +6988,10 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6988
6988
|
children: /* @__PURE__ */ a(_a, { className: Se.socialIcon })
|
|
6989
6989
|
}
|
|
6990
6990
|
),
|
|
6991
|
-
|
|
6991
|
+
h && /* @__PURE__ */ a(
|
|
6992
6992
|
"a",
|
|
6993
6993
|
{
|
|
6994
|
-
href:
|
|
6994
|
+
href: h,
|
|
6995
6995
|
target: "_blank",
|
|
6996
6996
|
rel: "noreferrer",
|
|
6997
6997
|
children: /* @__PURE__ */ a(
|
|
@@ -7003,10 +7003,10 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
7003
7003
|
)
|
|
7004
7004
|
}
|
|
7005
7005
|
),
|
|
7006
|
-
|
|
7006
|
+
m && /* @__PURE__ */ a(
|
|
7007
7007
|
"a",
|
|
7008
7008
|
{
|
|
7009
|
-
href:
|
|
7009
|
+
href: m,
|
|
7010
7010
|
target: "_blank",
|
|
7011
7011
|
rel: "noreferrer",
|
|
7012
7012
|
children: /* @__PURE__ */ a(jt, { className: Se.socialIcon })
|
|
@@ -9114,12 +9114,12 @@ const l3 = (e) => {
|
|
|
9114
9114
|
showNext: !(t.length < e.NEWS_PER_SECTION)
|
|
9115
9115
|
}
|
|
9116
9116
|
),
|
|
9117
|
-
children: Array.isArray(t) && t?.map((u,
|
|
9118
|
-
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(
|
|
9119
9119
|
pe,
|
|
9120
9120
|
{
|
|
9121
9121
|
banners: r ?? [],
|
|
9122
|
-
name: `block_2_${l[
|
|
9122
|
+
name: `block_2_${l[h + 1]}`
|
|
9123
9123
|
}
|
|
9124
9124
|
) }),
|
|
9125
9125
|
/* @__PURE__ */ a(
|
|
@@ -9130,9 +9130,9 @@ const l3 = (e) => {
|
|
|
9130
9130
|
option: s,
|
|
9131
9131
|
paths: e.paths
|
|
9132
9132
|
},
|
|
9133
|
-
|
|
9133
|
+
h
|
|
9134
9134
|
)
|
|
9135
|
-
] },
|
|
9135
|
+
] }, h))
|
|
9136
9136
|
}
|
|
9137
9137
|
) : /* @__PURE__ */ a(
|
|
9138
9138
|
"div",
|
|
@@ -9177,12 +9177,12 @@ const l3 = (e) => {
|
|
|
9177
9177
|
showNext: !(t.length < e.NEWS_PER_SECTION)
|
|
9178
9178
|
}
|
|
9179
9179
|
),
|
|
9180
|
-
children: Array.isArray(t) && t?.map((u,
|
|
9181
|
-
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(
|
|
9182
9182
|
pe,
|
|
9183
9183
|
{
|
|
9184
9184
|
banners: r ?? [],
|
|
9185
|
-
name: `block_2_${l[
|
|
9185
|
+
name: `block_2_${l[h + 1]}`
|
|
9186
9186
|
}
|
|
9187
9187
|
) }),
|
|
9188
9188
|
/* @__PURE__ */ a(
|
|
@@ -9193,9 +9193,9 @@ const l3 = (e) => {
|
|
|
9193
9193
|
option: s,
|
|
9194
9194
|
paths: e.paths
|
|
9195
9195
|
},
|
|
9196
|
-
|
|
9196
|
+
h
|
|
9197
9197
|
)
|
|
9198
|
-
] },
|
|
9198
|
+
] }, h))
|
|
9199
9199
|
}
|
|
9200
9200
|
) : /* @__PURE__ */ a(
|
|
9201
9201
|
"div",
|
|
@@ -9394,7 +9394,7 @@ const l3 = (e) => {
|
|
|
9394
9394
|
o = o.replace("ck-related-news", "ck-related-news-empty");
|
|
9395
9395
|
break;
|
|
9396
9396
|
}
|
|
9397
|
-
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(
|
|
9398
9398
|
l.preview?.sizes?.map(async (N) => {
|
|
9399
9399
|
const _ = await me(N.url);
|
|
9400
9400
|
return N.width < 200 ? `<source srcset="${_}" media="(width < 750px)"/>` : `<source srcset="${_}" media="(width >= 750px)"/>`;
|
|
@@ -9403,10 +9403,10 @@ const l3 = (e) => {
|
|
|
9403
9403
|
<span data-src="${d}">
|
|
9404
9404
|
<picture style='display: flex'>
|
|
9405
9405
|
${y}
|
|
9406
|
-
<img fetchPriority='low' loading='lazy' src="${
|
|
9406
|
+
<img fetchPriority='low' loading='lazy' src="${h}" alt="${t.noteRelatedImageAlt}" />
|
|
9407
9407
|
</picture>
|
|
9408
9408
|
<div>
|
|
9409
|
-
<a class="section" href="${
|
|
9409
|
+
<a class="section" href="${m}">${p}</a>
|
|
9410
9410
|
<a class="title" href="${g}">${A}</a>
|
|
9411
9411
|
</div>
|
|
9412
9412
|
</span>
|
|
@@ -9440,12 +9440,12 @@ async function G2(e, t) {
|
|
|
9440
9440
|
let l = o[1] ?? "";
|
|
9441
9441
|
l && (l = Q2(l));
|
|
9442
9442
|
const u = /data-type\s*=\s*["']?video["']?/i.test(d) || /video-type\s*=\s*["']?embedded["']?/i.test(d);
|
|
9443
|
-
let
|
|
9443
|
+
let h = d;
|
|
9444
9444
|
if (u && l)
|
|
9445
9445
|
try {
|
|
9446
|
-
const
|
|
9447
|
-
if (
|
|
9448
|
-
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];
|
|
9449
9449
|
let A = "";
|
|
9450
9450
|
const y = d.match(
|
|
9451
9451
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
@@ -9466,7 +9466,7 @@ async function G2(e, t) {
|
|
|
9466
9466
|
style="width: 100%; height: auto; min-height: 400px;"
|
|
9467
9467
|
src="${g.main?.code || ""}"></iframe>` : A = g.main?.code || "";
|
|
9468
9468
|
const N = v || g.main?.description || "";
|
|
9469
|
-
|
|
9469
|
+
h = `
|
|
9470
9470
|
<figure class="videoFigure">
|
|
9471
9471
|
${p && p.data && p.data.data ? `<script type="application/ld+json">${ga(
|
|
9472
9472
|
JSON.stringify(p.data.data)
|
|
@@ -9476,10 +9476,10 @@ async function G2(e, t) {
|
|
|
9476
9476
|
</figure>
|
|
9477
9477
|
`;
|
|
9478
9478
|
}
|
|
9479
|
-
} catch (
|
|
9480
|
-
console.error("replaceVideoSpansWithIframes error for", l,
|
|
9479
|
+
} catch (m) {
|
|
9480
|
+
console.error("replaceVideoSpansWithIframes error for", l, m), h = d;
|
|
9481
9481
|
}
|
|
9482
|
-
r = c, n +=
|
|
9482
|
+
r = c, n += h, s.lastIndex = c;
|
|
9483
9483
|
}
|
|
9484
9484
|
return n += e.slice(r), n;
|
|
9485
9485
|
}
|
|
@@ -9699,7 +9699,7 @@ const $2 = () => /* @__PURE__ */ f("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
9699
9699
|
)
|
|
9700
9700
|
] })
|
|
9701
9701
|
] }) });
|
|
9702
|
-
}, Y2 = "
|
|
9702
|
+
}, Y2 = "_content_bkrmk_1", K2 = "_journalistArticleContent_bkrmk_15", J2 = "_contentNews_bkrmk_35", Z2 = "_noteSource_bkrmk_402", tn = {
|
|
9703
9703
|
content: Y2,
|
|
9704
9704
|
journalistArticleContent: K2,
|
|
9705
9705
|
contentNews: J2,
|
|
@@ -9742,45 +9742,45 @@ function n0(e) {
|
|
|
9742
9742
|
const t = e.children, n = `${e.slot_id}-`, r = e.visibleItems, s = e.cardGap ?? 20;
|
|
9743
9743
|
function o(c) {
|
|
9744
9744
|
const d = [], l = [];
|
|
9745
|
-
let u = "",
|
|
9746
|
-
for (let
|
|
9747
|
-
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}) {
|
|
9748
9748
|
background-color:var(--carrousel-pagination-background-color)
|
|
9749
9749
|
}`;
|
|
9750
9750
|
u += `
|
|
9751
9751
|
.${n}.carrousel-container {
|
|
9752
9752
|
${p}
|
|
9753
|
-
[data-index="${
|
|
9754
|
-
transform: translate(-${
|
|
9753
|
+
[data-index="${m}"]:checked ~ .carrousel-ssr {
|
|
9754
|
+
transform: translate(-${m * (100 + s) + "%"});
|
|
9755
9755
|
transition: transform 300ms;
|
|
9756
9756
|
}
|
|
9757
|
-
[data-index="${
|
|
9758
|
-
${
|
|
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}"]` : ""} {
|
|
9759
9759
|
display: flex;
|
|
9760
9760
|
}
|
|
9761
9761
|
}
|
|
9762
|
-
`,
|
|
9762
|
+
`, m > c - (r + 1) && (u += `
|
|
9763
9763
|
@media (min-width:900px) {
|
|
9764
9764
|
.${n}.carrousel-container {
|
|
9765
|
-
[data-index="${
|
|
9765
|
+
[data-index="${m}"]:checked ~ .visible-arrow.right[data-index="${m}"] {
|
|
9766
9766
|
display:none!important;
|
|
9767
9767
|
}
|
|
9768
9768
|
}
|
|
9769
9769
|
}`), d.push(
|
|
9770
|
-
`<input type="radio" name="${n + "card"}" ${
|
|
9770
|
+
`<input type="radio" name="${n + "card"}" ${h ? "checked" : ""} id="${n + "input-check-" + m}" data-index="${m}" />`
|
|
9771
9771
|
), l.push(`
|
|
9772
|
-
<label for="${n + "input-check-" +
|
|
9772
|
+
<label for="${n + "input-check-" + m}" data-index="${m}" class="visible-arrow left">
|
|
9773
9773
|
<svg width="16" height="16" view-box="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
9774
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" />
|
|
9775
9775
|
</svg>
|
|
9776
9776
|
</label>
|
|
9777
9777
|
|
|
9778
|
-
${
|
|
9778
|
+
${m < c - 1 ? `<label for="${n + "input-check-" + (m + 1)}" data-index="${m}" class="visible-arrow right">
|
|
9779
9779
|
<svg width="16" height="16" view-box="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
9780
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" />
|
|
9781
9781
|
</svg>
|
|
9782
9782
|
</label>` : ""}
|
|
9783
|
-
`),
|
|
9783
|
+
`), h = !1;
|
|
9784
9784
|
}
|
|
9785
9785
|
return `
|
|
9786
9786
|
<style>${u}</style>
|
|
@@ -9833,25 +9833,25 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9833
9833
|
), Ts = async (e) => {
|
|
9834
9834
|
const { PUBLIC_IS_OFFLINE: t } = K();
|
|
9835
9835
|
if (!(t === "true")) {
|
|
9836
|
-
const l = /<img\b[^>]*\bsrc=["']([^"']+)["']/g, u = [...e.matchAll(l)],
|
|
9837
|
-
for (const
|
|
9838
|
-
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;
|
|
9839
9839
|
if (g) {
|
|
9840
9840
|
const A = await me(g.url) || "";
|
|
9841
|
-
|
|
9841
|
+
h[p] = A;
|
|
9842
9842
|
}
|
|
9843
9843
|
}
|
|
9844
9844
|
return e.replace(
|
|
9845
9845
|
l,
|
|
9846
|
-
(
|
|
9846
|
+
(m, p) => `<img fetchPriority='low' loading='lazy' alt='imagen' src="${h[p] || p}"`
|
|
9847
9847
|
);
|
|
9848
9848
|
}
|
|
9849
9849
|
let r = e;
|
|
9850
9850
|
const s = /<figure\b[^>]*>([\s\S]*?)<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>([\s\S]*?)<\/figure>/g, o = [...e.matchAll(s)], i = /* @__PURE__ */ new Set();
|
|
9851
9851
|
for (const l of o) {
|
|
9852
|
-
const u = l[0],
|
|
9853
|
-
i.add(
|
|
9854
|
-
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;
|
|
9855
9855
|
let y = 0, v = 0;
|
|
9856
9856
|
if (A) {
|
|
9857
9857
|
const E = A.match(/w:(\d+)/), O = A.match(/h:(\d+)/);
|
|
@@ -9862,13 +9862,13 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9862
9862
|
sizes: [
|
|
9863
9863
|
{
|
|
9864
9864
|
scale: A || `w:${y},h:${v},t:2`,
|
|
9865
|
-
url:
|
|
9865
|
+
url: h,
|
|
9866
9866
|
width: y,
|
|
9867
9867
|
height: v
|
|
9868
9868
|
}
|
|
9869
9869
|
],
|
|
9870
9870
|
original: {
|
|
9871
|
-
url:
|
|
9871
|
+
url: h.split("?")[0],
|
|
9872
9872
|
width: y,
|
|
9873
9873
|
height: v
|
|
9874
9874
|
},
|
|
@@ -9883,9 +9883,9 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9883
9883
|
}
|
|
9884
9884
|
const c = /<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g, d = [...r.matchAll(c)];
|
|
9885
9885
|
for (const l of d) {
|
|
9886
|
-
const u = l[0],
|
|
9887
|
-
if (i.has(
|
|
9888
|
-
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;
|
|
9889
9889
|
let y = 0, v = 0;
|
|
9890
9890
|
if (A) {
|
|
9891
9891
|
const E = A.match(/w:(\d+)/), O = A.match(/h:(\d+)/);
|
|
@@ -9896,13 +9896,13 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9896
9896
|
sizes: [
|
|
9897
9897
|
{
|
|
9898
9898
|
scale: A || `w:${y},h:${v},t:2`,
|
|
9899
|
-
url:
|
|
9899
|
+
url: h,
|
|
9900
9900
|
width: y,
|
|
9901
9901
|
height: v
|
|
9902
9902
|
}
|
|
9903
9903
|
],
|
|
9904
9904
|
original: {
|
|
9905
|
-
url:
|
|
9905
|
+
url: h.split("?")[0],
|
|
9906
9906
|
width: y,
|
|
9907
9907
|
height: v
|
|
9908
9908
|
},
|
|
@@ -9939,7 +9939,7 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9939
9939
|
).test(s)) {
|
|
9940
9940
|
r++;
|
|
9941
9941
|
const u = t.find(
|
|
9942
|
-
(
|
|
9942
|
+
(h) => h.key === `block_2_${n[r]}`
|
|
9943
9943
|
);
|
|
9944
9944
|
return u ? `${c}<div class="banner-context">${u.value}</div>` : c;
|
|
9945
9945
|
}
|
|
@@ -9952,13 +9952,13 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9952
9952
|
for (const o of n) {
|
|
9953
9953
|
const [i, c = ""] = o, d = o.index, l = d + i.length;
|
|
9954
9954
|
r += e.slice(s, d);
|
|
9955
|
-
const
|
|
9955
|
+
const h = [...c.matchAll(/data-src="([^"]+)"/g)].map(
|
|
9956
9956
|
(g) => g[1]
|
|
9957
9957
|
).map(
|
|
9958
9958
|
(g) => `<img fetchPriority='low' loading='lazy' alt='imagen' src="${g}" class="carrusel-note-item" width="800" height="469"/>`
|
|
9959
|
-
),
|
|
9960
|
-
slot_id:
|
|
9961
|
-
children:
|
|
9959
|
+
), m = "gallery_embeded" + d.toString(), p = n0({
|
|
9960
|
+
slot_id: m,
|
|
9961
|
+
children: h,
|
|
9962
9962
|
visibleItems: 1,
|
|
9963
9963
|
cardGap: 0
|
|
9964
9964
|
});
|
|
@@ -9974,7 +9974,7 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9974
9974
|
(N) => d.includes(N?.[0]?.info.link.internal || "")
|
|
9975
9975
|
);
|
|
9976
9976
|
if (!l || !l[0]) continue;
|
|
9977
|
-
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(
|
|
9978
9978
|
l[0].preview?.sizes?.map(async (N, _) => {
|
|
9979
9979
|
const x = await me(N.url);
|
|
9980
9980
|
return _ === 0 ? `<source srcset="${x}" media="(width >= 900px)"/>` : `<source srcset="${x}" media="(width < 900px)"/>`;
|
|
@@ -9983,10 +9983,10 @@ const a0 = (e) => /* @__PURE__ */ a(
|
|
|
9983
9983
|
<span data-src="${d}">
|
|
9984
9984
|
<picture style='display: flex'>
|
|
9985
9985
|
${y}
|
|
9986
|
-
<img fetchPriority='low' loading='lazy' src="${
|
|
9986
|
+
<img fetchPriority='low' loading='lazy' src="${h}" alt="${t.noteRelatedImageAlt}" />
|
|
9987
9987
|
</picture>
|
|
9988
9988
|
<div>
|
|
9989
|
-
<a class="section" href="${
|
|
9989
|
+
<a class="section" href="${m}">${p}</a>
|
|
9990
9990
|
<a class="title" href="${g}">${A}</a>
|
|
9991
9991
|
</div>
|
|
9992
9992
|
</span>
|
|
@@ -10012,11 +10012,11 @@ async function l0(e, t) {
|
|
|
10012
10012
|
}
|
|
10013
10013
|
v !== -1 && v < N ? (d += 1, l = v + 4) : (d -= 1, l = N + 6);
|
|
10014
10014
|
}
|
|
10015
|
-
const
|
|
10015
|
+
const h = l, m = e.slice(i, h);
|
|
10016
10016
|
let p = null;
|
|
10017
10017
|
const g = /<span\b([^>]*)>/gi;
|
|
10018
10018
|
let A;
|
|
10019
|
-
for (; (A = g.exec(
|
|
10019
|
+
for (; (A = g.exec(m)) !== null; ) {
|
|
10020
10020
|
const v = A[1];
|
|
10021
10021
|
if (!v) break;
|
|
10022
10022
|
if (/data-type\s*=\s*["']?video["']?/i.test(v)) {
|
|
@@ -10028,7 +10028,7 @@ async function l0(e, t) {
|
|
|
10028
10028
|
}
|
|
10029
10029
|
}
|
|
10030
10030
|
if (!p) {
|
|
10031
|
-
const v =
|
|
10031
|
+
const v = m.match(
|
|
10032
10032
|
/<span\b[^>]*data-src=["'][^"']+["'][^>]*>/i
|
|
10033
10033
|
);
|
|
10034
10034
|
if (v) {
|
|
@@ -10043,7 +10043,7 @@ async function l0(e, t) {
|
|
|
10043
10043
|
if (v && v.data) {
|
|
10044
10044
|
const _ = v.data.data[0];
|
|
10045
10045
|
let x = "";
|
|
10046
|
-
const b =
|
|
10046
|
+
const b = m.match(
|
|
10047
10047
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
10048
10048
|
), E = b && b[1] ? b[1].trim() : "";
|
|
10049
10049
|
_.info && _.info.type === "video-youtube" ? x = `<iframe
|
|
@@ -10076,8 +10076,8 @@ async function l0(e, t) {
|
|
|
10076
10076
|
console.error("insertVideos error for", p, v), y = "";
|
|
10077
10077
|
}
|
|
10078
10078
|
else
|
|
10079
|
-
y =
|
|
10080
|
-
r =
|
|
10079
|
+
y = m;
|
|
10080
|
+
r = h, n += y, s.lastIndex = h;
|
|
10081
10081
|
}
|
|
10082
10082
|
return n += e.slice(r), n;
|
|
10083
10083
|
}
|
|
@@ -10086,20 +10086,21 @@ async function d0(e) {
|
|
|
10086
10086
|
news: t,
|
|
10087
10087
|
banners: n,
|
|
10088
10088
|
newsRelatedResponses: r,
|
|
10089
|
-
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10089
|
+
newsRelatedListResponses: s,
|
|
10090
|
+
slug: o,
|
|
10091
|
+
itemList: i,
|
|
10092
|
+
socials: c,
|
|
10093
|
+
getVideos: d
|
|
10093
10094
|
} = e;
|
|
10094
|
-
let
|
|
10095
|
-
|
|
10096
|
-
|
|
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,
|
|
10097
10098
|
e.texts,
|
|
10098
10099
|
r
|
|
10099
|
-
),
|
|
10100
|
-
const
|
|
10100
|
+
), l = await l0(l, d), l = r0(l), l = s0(l);
|
|
10101
|
+
const u = t.main.sources ?? [];
|
|
10101
10102
|
return /* @__PURE__ */ f("div", { className: tn.content, children: [
|
|
10102
|
-
|
|
10103
|
+
o !== "liveblogs" && e.showHeaderImage ? t.hascontent?.hasgalleryimages ? /* @__PURE__ */ a(
|
|
10103
10104
|
xs,
|
|
10104
10105
|
{
|
|
10105
10106
|
newsformated: t,
|
|
@@ -10111,7 +10112,7 @@ async function d0(e) {
|
|
|
10111
10112
|
W2,
|
|
10112
10113
|
{
|
|
10113
10114
|
autorIcon: e.autorIcon,
|
|
10114
|
-
socials:
|
|
10115
|
+
socials: c,
|
|
10115
10116
|
news: t,
|
|
10116
10117
|
texts: e.texts,
|
|
10117
10118
|
noteShare: e.noteShare,
|
|
@@ -10125,23 +10126,23 @@ async function d0(e) {
|
|
|
10125
10126
|
className: tn.contentNews,
|
|
10126
10127
|
suppressHydrationWarning: !0,
|
|
10127
10128
|
id: "content-news-section",
|
|
10128
|
-
dangerouslySetInnerHTML: { __html:
|
|
10129
|
+
dangerouslySetInnerHTML: { __html: l }
|
|
10129
10130
|
}
|
|
10130
10131
|
),
|
|
10131
10132
|
/* @__PURE__ */ a(
|
|
10132
10133
|
z2,
|
|
10133
10134
|
{
|
|
10134
10135
|
texts: e.texts,
|
|
10135
|
-
itemList:
|
|
10136
|
+
itemList: i,
|
|
10136
10137
|
banners: n,
|
|
10137
|
-
slug:
|
|
10138
|
-
getVideos:
|
|
10139
|
-
newsRelatedListResponses:
|
|
10138
|
+
slug: o,
|
|
10139
|
+
getVideos: d,
|
|
10140
|
+
newsRelatedListResponses: s ?? []
|
|
10140
10141
|
}
|
|
10141
10142
|
),
|
|
10142
|
-
|
|
10143
|
+
u.length > 0 && /* @__PURE__ */ f("div", { className: tn.noteSource, children: [
|
|
10143
10144
|
/* @__PURE__ */ a(a0, {}),
|
|
10144
|
-
/* @__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(", ") })
|
|
10145
10146
|
] })
|
|
10146
10147
|
] });
|
|
10147
10148
|
}
|
|
@@ -10494,15 +10495,15 @@ const wr = {
|
|
|
10494
10495
|
showTagBySection: i
|
|
10495
10496
|
}) => {
|
|
10496
10497
|
const c = [], l = t, u = Object.keys(e).length / l;
|
|
10497
|
-
for (let
|
|
10498
|
-
for (let
|
|
10499
|
-
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;
|
|
10500
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(
|
|
10501
10502
|
/* @__PURE__ */ f(
|
|
10502
10503
|
wc,
|
|
10503
10504
|
{
|
|
10504
10505
|
show: !!e[p].content?.data,
|
|
10505
|
-
order: (
|
|
10506
|
+
order: (h - 1) * l + (m - 1),
|
|
10506
10507
|
children: [
|
|
10507
10508
|
/* @__PURE__ */ a(
|
|
10508
10509
|
Is,
|
|
@@ -10525,12 +10526,12 @@ const wr = {
|
|
|
10525
10526
|
rt,
|
|
10526
10527
|
{
|
|
10527
10528
|
banners: o,
|
|
10528
|
-
index: "dynamic_" +
|
|
10529
|
+
index: "dynamic_" + h + "_" + m
|
|
10529
10530
|
}
|
|
10530
10531
|
) })
|
|
10531
10532
|
]
|
|
10532
10533
|
},
|
|
10533
|
-
|
|
10534
|
+
h + "_" + m
|
|
10534
10535
|
)
|
|
10535
10536
|
);
|
|
10536
10537
|
}
|
|
@@ -10593,10 +10594,11 @@ const wr = {
|
|
|
10593
10594
|
autor: s = [],
|
|
10594
10595
|
news: o = [],
|
|
10595
10596
|
newsRelatedResponses: i = [],
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
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();
|
|
10600
10602
|
if (!(!o || !o[0]))
|
|
10601
10603
|
return /* @__PURE__ */ a(Y, { children: /* @__PURE__ */ f(y2, { className: ia.contentLayout2, children: [
|
|
10602
10604
|
/* @__PURE__ */ a(
|
|
@@ -10609,7 +10611,7 @@ const wr = {
|
|
|
10609
10611
|
}
|
|
10610
10612
|
),
|
|
10611
10613
|
/* @__PURE__ */ a(rt, { banners: r, index: 1 }),
|
|
10612
|
-
!
|
|
10614
|
+
!h && e.commonServices && /* @__PURE__ */ a(
|
|
10613
10615
|
C0,
|
|
10614
10616
|
{
|
|
10615
10617
|
news: o[0],
|
|
@@ -10622,7 +10624,7 @@ const wr = {
|
|
|
10622
10624
|
texts: e.texts,
|
|
10623
10625
|
paths: e.paths,
|
|
10624
10626
|
slug: e.slug,
|
|
10625
|
-
itemList:
|
|
10627
|
+
itemList: d,
|
|
10626
10628
|
ranking: n,
|
|
10627
10629
|
readestCustomStyles: e.readestCustomStyles,
|
|
10628
10630
|
bannerTop: /* @__PURE__ */ a(pe, { banners: r ?? [], name: "right_1" }),
|
|
@@ -10678,7 +10680,7 @@ const wr = {
|
|
|
10678
10680
|
}
|
|
10679
10681
|
),
|
|
10680
10682
|
/* @__PURE__ */ a(ht, { children: /* @__PURE__ */ a(rt, { banners: r, index: 2 }) }),
|
|
10681
|
-
|
|
10683
|
+
p && /* @__PURE__ */ f(Y, { children: [
|
|
10682
10684
|
/* @__PURE__ */ a(
|
|
10683
10685
|
Is,
|
|
10684
10686
|
{
|
|
@@ -10730,13 +10732,14 @@ const wr = {
|
|
|
10730
10732
|
{
|
|
10731
10733
|
texts: e.texts,
|
|
10732
10734
|
autorIcon: e.autorIcon,
|
|
10733
|
-
socials:
|
|
10735
|
+
socials: l,
|
|
10734
10736
|
news: o[0],
|
|
10735
10737
|
banners: r,
|
|
10736
10738
|
newsRelatedResponses: i,
|
|
10737
|
-
|
|
10739
|
+
newsRelatedListResponses: c,
|
|
10740
|
+
itemList: d,
|
|
10738
10741
|
slug: e.slug,
|
|
10739
|
-
getVideos:
|
|
10742
|
+
getVideos: u,
|
|
10740
10743
|
noteShare: e.noteShare,
|
|
10741
10744
|
paths: e.paths,
|
|
10742
10745
|
showHeaderImage: !L0(o[0])
|
|
@@ -10913,7 +10916,7 @@ const wr = {
|
|
|
10913
10916
|
currentPage: d,
|
|
10914
10917
|
slug: l,
|
|
10915
10918
|
texts: u = {}
|
|
10916
|
-
} = e,
|
|
10919
|
+
} = e, h = [5, 10, 15], m = {
|
|
10917
10920
|
5: 1,
|
|
10918
10921
|
10: 2,
|
|
10919
10922
|
15: 3
|
|
@@ -10948,7 +10951,7 @@ const wr = {
|
|
|
10948
10951
|
}
|
|
10949
10952
|
),
|
|
10950
10953
|
children: Array.isArray(t) && t?.map((p, g) => /* @__PURE__ */ f(pn, { children: [
|
|
10951
|
-
|
|
10954
|
+
h.includes(g + 1) && /* @__PURE__ */ a(
|
|
10952
10955
|
"div",
|
|
10953
10956
|
{
|
|
10954
10957
|
className: Vn.itemContent + " banner-context",
|
|
@@ -10956,7 +10959,7 @@ const wr = {
|
|
|
10956
10959
|
pe,
|
|
10957
10960
|
{
|
|
10958
10961
|
banners: o ?? [],
|
|
10959
|
-
name: `block_2_${
|
|
10962
|
+
name: `block_2_${m[g + 1]}`
|
|
10960
10963
|
}
|
|
10961
10964
|
)
|
|
10962
10965
|
}
|
|
@@ -11192,10 +11195,10 @@ function _3({ containerId: e, containerId2: t }) {
|
|
|
11192
11195
|
if (!r && !s) return;
|
|
11193
11196
|
const o = r?.querySelectorAll("script[src]") ?? [], i = s?.querySelectorAll("script[src]") ?? [];
|
|
11194
11197
|
[...o, ...i].forEach((u) => {
|
|
11195
|
-
const
|
|
11196
|
-
Array.from(u.attributes).forEach((
|
|
11197
|
-
|
|
11198
|
-
}), 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);
|
|
11199
11202
|
});
|
|
11200
11203
|
const d = document.querySelectorAll(
|
|
11201
11204
|
'script[src*="platform.twitter.com/widgets.js"]'
|
|
@@ -11367,13 +11370,13 @@ const Tg = (e) => {
|
|
|
11367
11370
|
const u = new URLSearchParams({
|
|
11368
11371
|
section: e,
|
|
11369
11372
|
currentNewsLink: t.info.link.internal
|
|
11370
|
-
}),
|
|
11371
|
-
if (!
|
|
11372
|
-
throw i(void 0), new Error(`HTTP error! status: ${
|
|
11373
|
-
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();
|
|
11374
11377
|
i({
|
|
11375
|
-
...
|
|
11376
|
-
data:
|
|
11378
|
+
...m,
|
|
11379
|
+
data: m.data.slice(0, _r)
|
|
11377
11380
|
});
|
|
11378
11381
|
} catch (u) {
|
|
11379
11382
|
console.error("[/api/get-more-news] Error:", u.message), i(void 0);
|
|
@@ -11412,8 +11415,8 @@ const Tg = (e) => {
|
|
|
11412
11415
|
info: d,
|
|
11413
11416
|
preview: l,
|
|
11414
11417
|
isVideo: u = !1,
|
|
11415
|
-
config:
|
|
11416
|
-
overImage:
|
|
11418
|
+
config: h,
|
|
11419
|
+
overImage: m = "default",
|
|
11417
11420
|
isTitle: p = !1,
|
|
11418
11421
|
isLarge: g = !1
|
|
11419
11422
|
} = s;
|
|
@@ -11451,8 +11454,8 @@ const Tg = (e) => {
|
|
|
11451
11454
|
info: d,
|
|
11452
11455
|
preview: l,
|
|
11453
11456
|
share: e.share,
|
|
11454
|
-
config:
|
|
11455
|
-
overImage:
|
|
11457
|
+
config: h,
|
|
11458
|
+
overImage: m,
|
|
11456
11459
|
isTitle: p,
|
|
11457
11460
|
paths: s.paths,
|
|
11458
11461
|
isVisible: e.isVisible
|
|
@@ -11623,7 +11626,7 @@ async function N3({
|
|
|
11623
11626
|
username: t,
|
|
11624
11627
|
id: n,
|
|
11625
11628
|
type: l
|
|
11626
|
-
}),
|
|
11629
|
+
}), h = `${d}?${u.toString()}`;
|
|
11627
11630
|
try {
|
|
11628
11631
|
console.log("Reporting comment:", {
|
|
11629
11632
|
publication: e,
|
|
@@ -11631,31 +11634,31 @@ async function N3({
|
|
|
11631
11634
|
id: n,
|
|
11632
11635
|
type: r,
|
|
11633
11636
|
encodedType: l,
|
|
11634
|
-
url:
|
|
11637
|
+
url: h
|
|
11635
11638
|
});
|
|
11636
|
-
const
|
|
11639
|
+
const m = await se.post(h, null, {
|
|
11637
11640
|
headers: {
|
|
11638
11641
|
"User-Agent": "Bluestack",
|
|
11639
11642
|
"x-api-token": i,
|
|
11640
11643
|
"Content-Type": "application/json"
|
|
11641
11644
|
}
|
|
11642
11645
|
});
|
|
11643
|
-
if (console.log("Report response:",
|
|
11646
|
+
if (console.log("Report response:", m.data), m.status === 200 || m.status === 201)
|
|
11644
11647
|
return {
|
|
11645
11648
|
type: "success",
|
|
11646
11649
|
message: "Comentario reportado exitosamente",
|
|
11647
|
-
status:
|
|
11648
|
-
data:
|
|
11650
|
+
status: m.status,
|
|
11651
|
+
data: m.data
|
|
11649
11652
|
};
|
|
11650
|
-
throw new Error(`Respuesta inesperada del servidor: ${
|
|
11651
|
-
} catch (
|
|
11652
|
-
if (console.error("Error reporting comment:",
|
|
11653
|
-
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;
|
|
11654
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(
|
|
11655
11658
|
g?.error || g?.message || `Error HTTP ${p}: No se pudo reportar el comentario`
|
|
11656
11659
|
);
|
|
11657
11660
|
}
|
|
11658
|
-
throw
|
|
11661
|
+
throw m;
|
|
11659
11662
|
}
|
|
11660
11663
|
}
|
|
11661
11664
|
const We = {
|
|
@@ -11715,7 +11718,7 @@ var Nr;
|
|
|
11715
11718
|
function np() {
|
|
11716
11719
|
if (Nr) return ne;
|
|
11717
11720
|
Nr = 1;
|
|
11718
|
-
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;
|
|
11719
11722
|
function _(b) {
|
|
11720
11723
|
if (typeof b == "object" && b !== null) {
|
|
11721
11724
|
var E = b.$$typeof;
|
|
@@ -11727,7 +11730,7 @@ function np() {
|
|
|
11727
11730
|
case r:
|
|
11728
11731
|
case o:
|
|
11729
11732
|
case s:
|
|
11730
|
-
case
|
|
11733
|
+
case h:
|
|
11731
11734
|
return b;
|
|
11732
11735
|
default:
|
|
11733
11736
|
switch (b = b && b.$$typeof, b) {
|
|
@@ -11749,7 +11752,7 @@ function np() {
|
|
|
11749
11752
|
function x(b) {
|
|
11750
11753
|
return _(b) === l;
|
|
11751
11754
|
}
|
|
11752
|
-
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) {
|
|
11753
11756
|
return x(b) || _(b) === d;
|
|
11754
11757
|
}, ne.isConcurrentMode = x, ne.isContextConsumer = function(b) {
|
|
11755
11758
|
return _(b) === c;
|
|
@@ -11772,19 +11775,19 @@ function np() {
|
|
|
11772
11775
|
}, ne.isStrictMode = function(b) {
|
|
11773
11776
|
return _(b) === s;
|
|
11774
11777
|
}, ne.isSuspense = function(b) {
|
|
11775
|
-
return _(b) ===
|
|
11778
|
+
return _(b) === h;
|
|
11776
11779
|
}, ne.isValidElementType = function(b) {
|
|
11777
|
-
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);
|
|
11778
11781
|
}, ne.typeOf = _, ne;
|
|
11779
11782
|
}
|
|
11780
11783
|
var ae = {};
|
|
11781
11784
|
var Sr;
|
|
11782
11785
|
function ap() {
|
|
11783
11786
|
return Sr || (Sr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
11784
|
-
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;
|
|
11785
11788
|
function _(R) {
|
|
11786
11789
|
return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
11787
|
-
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);
|
|
11788
11791
|
}
|
|
11789
11792
|
function x(R) {
|
|
11790
11793
|
if (typeof R == "object" && R !== null) {
|
|
@@ -11798,7 +11801,7 @@ function ap() {
|
|
|
11798
11801
|
case r:
|
|
11799
11802
|
case o:
|
|
11800
11803
|
case s:
|
|
11801
|
-
case
|
|
11804
|
+
case h:
|
|
11802
11805
|
return Ft;
|
|
11803
11806
|
default:
|
|
11804
11807
|
var qa = Ft && Ft.$$typeof;
|
|
@@ -11818,7 +11821,7 @@ function ap() {
|
|
|
11818
11821
|
}
|
|
11819
11822
|
}
|
|
11820
11823
|
}
|
|
11821
|
-
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;
|
|
11822
11825
|
function z(R) {
|
|
11823
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;
|
|
11824
11827
|
}
|
|
@@ -11856,7 +11859,7 @@ function ap() {
|
|
|
11856
11859
|
return x(R) === s;
|
|
11857
11860
|
}
|
|
11858
11861
|
function ie(R) {
|
|
11859
|
-
return x(R) ===
|
|
11862
|
+
return x(R) === h;
|
|
11860
11863
|
}
|
|
11861
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;
|
|
11862
11865
|
})()), ae;
|
|
@@ -11900,12 +11903,12 @@ function rp() {
|
|
|
11900
11903
|
return Fn = s() ? Object.assign : function(o, i) {
|
|
11901
11904
|
for (var c, d = r(o), l, u = 1; u < arguments.length; u++) {
|
|
11902
11905
|
c = Object(arguments[u]);
|
|
11903
|
-
for (var
|
|
11904
|
-
t.call(c,
|
|
11906
|
+
for (var h in c)
|
|
11907
|
+
t.call(c, h) && (d[h] = c[h]);
|
|
11905
11908
|
if (e) {
|
|
11906
11909
|
l = e(c);
|
|
11907
|
-
for (var
|
|
11908
|
-
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]]);
|
|
11909
11912
|
}
|
|
11910
11913
|
}
|
|
11911
11914
|
return d;
|
|
@@ -11943,25 +11946,25 @@ function sp() {
|
|
|
11943
11946
|
if (process.env.NODE_ENV !== "production") {
|
|
11944
11947
|
for (var u in o)
|
|
11945
11948
|
if (r(o, u)) {
|
|
11946
|
-
var
|
|
11949
|
+
var h;
|
|
11947
11950
|
try {
|
|
11948
11951
|
if (typeof o[u] != "function") {
|
|
11949
|
-
var
|
|
11952
|
+
var m = Error(
|
|
11950
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`."
|
|
11951
11954
|
);
|
|
11952
|
-
throw
|
|
11955
|
+
throw m.name = "Invariant Violation", m;
|
|
11953
11956
|
}
|
|
11954
|
-
|
|
11957
|
+
h = o[u](i, u, d, c, null, t);
|
|
11955
11958
|
} catch (g) {
|
|
11956
|
-
|
|
11959
|
+
h = g;
|
|
11957
11960
|
}
|
|
11958
|
-
if (
|
|
11959
|
-
(d || "React class") + ": type specification of " + c + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
11960
|
-
),
|
|
11961
|
-
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;
|
|
11962
11965
|
var p = l ? l() : "";
|
|
11963
11966
|
e(
|
|
11964
|
-
"Failed " + c + " type: " +
|
|
11967
|
+
"Failed " + c + " type: " + h.message + (p ?? "")
|
|
11965
11968
|
);
|
|
11966
11969
|
}
|
|
11967
11970
|
}
|
|
@@ -11990,12 +11993,12 @@ function op() {
|
|
|
11990
11993
|
}
|
|
11991
11994
|
return Kn = function(c, d) {
|
|
11992
11995
|
var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
11993
|
-
function
|
|
11996
|
+
function h(w) {
|
|
11994
11997
|
var S = w && (l && w[l] || w[u]);
|
|
11995
11998
|
if (typeof S == "function")
|
|
11996
11999
|
return S;
|
|
11997
12000
|
}
|
|
11998
|
-
var
|
|
12001
|
+
var m = "<<anonymous>>", p = {
|
|
11999
12002
|
array: v("array"),
|
|
12000
12003
|
bigint: v("bigint"),
|
|
12001
12004
|
bool: v("boolean"),
|
|
@@ -12027,7 +12030,7 @@ function op() {
|
|
|
12027
12030
|
if (process.env.NODE_ENV !== "production")
|
|
12028
12031
|
var S = {}, q = 0;
|
|
12029
12032
|
function j(H, V, F, Z, X, $, ie) {
|
|
12030
|
-
if (Z = Z ||
|
|
12033
|
+
if (Z = Z || m, $ = $ || F, ie !== n) {
|
|
12031
12034
|
if (d) {
|
|
12032
12035
|
var R = new Error(
|
|
12033
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"
|
|
@@ -12106,7 +12109,7 @@ function op() {
|
|
|
12106
12109
|
function E(w) {
|
|
12107
12110
|
function S(q, j, L, H, V) {
|
|
12108
12111
|
if (!(q[j] instanceof w)) {
|
|
12109
|
-
var F = w.name ||
|
|
12112
|
+
var F = w.name || m, Z = z(q[j]);
|
|
12110
12113
|
return new A("Invalid " + H + " `" + V + "` of type " + ("`" + Z + "` supplied to `" + L + "`, expected ") + ("instance of `" + F + "`."));
|
|
12111
12114
|
}
|
|
12112
12115
|
return null;
|
|
@@ -12233,7 +12236,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
12233
12236
|
return w.every(M);
|
|
12234
12237
|
if (w === null || c(w))
|
|
12235
12238
|
return !0;
|
|
12236
|
-
var S =
|
|
12239
|
+
var S = h(w);
|
|
12237
12240
|
if (S) {
|
|
12238
12241
|
var q = S.call(w), j;
|
|
12239
12242
|
if (S !== w.entries) {
|
|
@@ -12287,7 +12290,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
12287
12290
|
}
|
|
12288
12291
|
}
|
|
12289
12292
|
function z(w) {
|
|
12290
|
-
return !w.constructor || !w.constructor.name ?
|
|
12293
|
+
return !w.constructor || !w.constructor.name ? m : w.constructor.name;
|
|
12291
12294
|
}
|
|
12292
12295
|
return p.checkPropTypes = s, p.resetWarningCache = s.resetWarningCache, p.PropTypes = p, p;
|
|
12293
12296
|
}, Kn;
|
|
@@ -12302,12 +12305,12 @@ function ip() {
|
|
|
12302
12305
|
function n() {
|
|
12303
12306
|
}
|
|
12304
12307
|
return n.resetWarningCache = t, Jn = function() {
|
|
12305
|
-
function r(i, c, d, l, u,
|
|
12306
|
-
if (
|
|
12307
|
-
var
|
|
12308
|
+
function r(i, c, d, l, u, h) {
|
|
12309
|
+
if (h !== e) {
|
|
12310
|
+
var m = new Error(
|
|
12308
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"
|
|
12309
12312
|
);
|
|
12310
|
-
throw
|
|
12313
|
+
throw m.name = "Invariant Violation", m;
|
|
12311
12314
|
}
|
|
12312
12315
|
}
|
|
12313
12316
|
r.isRequired = r;
|
|
@@ -12521,12 +12524,12 @@ function mp() {
|
|
|
12521
12524
|
function i(g) {
|
|
12522
12525
|
return e.isMemo(g) ? s : o[g.$$typeof] || t;
|
|
12523
12526
|
}
|
|
12524
|
-
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;
|
|
12525
12528
|
function p(g, A, y) {
|
|
12526
12529
|
if (typeof A != "string") {
|
|
12527
|
-
if (
|
|
12528
|
-
var v =
|
|
12529
|
-
v && v !==
|
|
12530
|
+
if (m) {
|
|
12531
|
+
var v = h(A);
|
|
12532
|
+
v && v !== m && p(g, v, y);
|
|
12530
12533
|
}
|
|
12531
12534
|
var N = d(A);
|
|
12532
12535
|
l && (N = N.concat(l(A)));
|
|
@@ -12572,87 +12575,87 @@ function wp(e, t) {
|
|
|
12572
12575
|
return t = t || {}, function(r) {
|
|
12573
12576
|
var s = r.displayName || r.name || "Component", o = /* @__PURE__ */ (function(c) {
|
|
12574
12577
|
Ap(d, c);
|
|
12575
|
-
function d(u,
|
|
12576
|
-
var
|
|
12577
|
-
return
|
|
12578
|
+
function d(u, h) {
|
|
12579
|
+
var m;
|
|
12580
|
+
return m = c.call(this, u, h) || this, m.state = {}, m.__scriptURL = "", m;
|
|
12578
12581
|
}
|
|
12579
12582
|
var l = d.prototype;
|
|
12580
12583
|
return l.asyncScriptLoaderGetScriptLoaderID = function() {
|
|
12581
12584
|
return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + yp++), this.__scriptLoaderID;
|
|
12582
12585
|
}, l.setupScriptURL = function() {
|
|
12583
12586
|
return this.__scriptURL = typeof e == "function" ? e() : e, this.__scriptURL;
|
|
12584
|
-
}, l.asyncScriptLoaderHandleLoad = function(
|
|
12585
|
-
var
|
|
12586
|
-
this.setState(
|
|
12587
|
-
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);
|
|
12588
12591
|
});
|
|
12589
12592
|
}, l.asyncScriptLoaderTriggerOnScriptLoaded = function() {
|
|
12590
|
-
var
|
|
12591
|
-
if (!
|
|
12593
|
+
var h = Le[this.__scriptURL];
|
|
12594
|
+
if (!h || !h.loaded)
|
|
12592
12595
|
throw new Error("Script is not loaded.");
|
|
12593
|
-
for (var
|
|
12594
|
-
|
|
12596
|
+
for (var m in h.observers)
|
|
12597
|
+
h.observers[m](h);
|
|
12595
12598
|
delete window[t.callbackName];
|
|
12596
12599
|
}, l.componentDidMount = function() {
|
|
12597
|
-
var
|
|
12598
|
-
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] = {
|
|
12599
12602
|
loaded: !0,
|
|
12600
12603
|
observers: {}
|
|
12601
|
-
}), Le[
|
|
12602
|
-
var N = Le[
|
|
12604
|
+
}), Le[m]) {
|
|
12605
|
+
var N = Le[m];
|
|
12603
12606
|
if (N && (N.loaded || N.errored)) {
|
|
12604
12607
|
this.asyncScriptLoaderHandleLoad(N);
|
|
12605
12608
|
return;
|
|
12606
12609
|
}
|
|
12607
12610
|
N.observers[p] = function(O) {
|
|
12608
|
-
return
|
|
12611
|
+
return h.asyncScriptLoaderHandleLoad(O);
|
|
12609
12612
|
};
|
|
12610
12613
|
return;
|
|
12611
12614
|
}
|
|
12612
12615
|
var _ = {};
|
|
12613
12616
|
_[p] = function(O) {
|
|
12614
|
-
return
|
|
12615
|
-
}, Le[
|
|
12617
|
+
return h.asyncScriptLoaderHandleLoad(O);
|
|
12618
|
+
}, Le[m] = {
|
|
12616
12619
|
loaded: !1,
|
|
12617
12620
|
observers: _
|
|
12618
12621
|
};
|
|
12619
12622
|
var x = document.createElement("script");
|
|
12620
|
-
x.src =
|
|
12623
|
+
x.src = m, x.async = !0;
|
|
12621
12624
|
for (var b in t.attributes)
|
|
12622
12625
|
x.setAttribute(b, t.attributes[b]);
|
|
12623
12626
|
v && (x.id = v);
|
|
12624
12627
|
var E = function(Q) {
|
|
12625
|
-
if (Le[
|
|
12626
|
-
var te = Le[
|
|
12628
|
+
if (Le[m]) {
|
|
12629
|
+
var te = Le[m], G = te.observers;
|
|
12627
12630
|
for (var P in G)
|
|
12628
12631
|
Q(G[P]) && delete G[P];
|
|
12629
12632
|
}
|
|
12630
12633
|
};
|
|
12631
12634
|
y && typeof window < "u" && (window[y] = function() {
|
|
12632
|
-
return
|
|
12635
|
+
return h.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
12633
12636
|
}), x.onload = function() {
|
|
12634
|
-
var O = Le[
|
|
12637
|
+
var O = Le[m];
|
|
12635
12638
|
O && (O.loaded = !0, E(function(Q) {
|
|
12636
12639
|
return y ? !1 : (Q(O), !0);
|
|
12637
12640
|
}));
|
|
12638
12641
|
}, x.onerror = function() {
|
|
12639
|
-
var O = Le[
|
|
12642
|
+
var O = Le[m];
|
|
12640
12643
|
O && (O.errored = !0, E(function(Q) {
|
|
12641
12644
|
return Q(O), !0;
|
|
12642
12645
|
}));
|
|
12643
12646
|
}, document.body.appendChild(x);
|
|
12644
12647
|
}, l.componentWillUnmount = function() {
|
|
12645
|
-
var
|
|
12648
|
+
var h = this.__scriptURL;
|
|
12646
12649
|
if (t.removeOnUnmount === !0)
|
|
12647
|
-
for (var
|
|
12648
|
-
|
|
12649
|
-
var g = Le[
|
|
12650
|
-
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]);
|
|
12651
12654
|
}, l.render = function() {
|
|
12652
|
-
var
|
|
12653
|
-
|
|
12654
|
-
var p =
|
|
12655
|
-
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);
|
|
12656
12659
|
}, d;
|
|
12657
12660
|
})(Gs), i = Dr(function(c, d) {
|
|
12658
12661
|
return ot(o, da({}, c, {
|
|
@@ -12727,7 +12730,7 @@ const Rs = wp(bp, {
|
|
|
12727
12730
|
}) => {
|
|
12728
12731
|
const [i, c] = J("form"), [d, l] = J(
|
|
12729
12732
|
""
|
|
12730
|
-
), [u,
|
|
12733
|
+
), [u, h] = J(""), [m, p] = J(""), g = [
|
|
12731
12734
|
{ id: "spam", label: We.spam },
|
|
12732
12735
|
{
|
|
12733
12736
|
id: "inappropriate",
|
|
@@ -12747,10 +12750,10 @@ const Rs = wp(bp, {
|
|
|
12747
12750
|
], A = async () => {
|
|
12748
12751
|
if (!(!d || !n)) {
|
|
12749
12752
|
if (Us(document).includes(n)) {
|
|
12750
|
-
|
|
12753
|
+
h("Ya has reportado este comentario.");
|
|
12751
12754
|
return;
|
|
12752
12755
|
}
|
|
12753
|
-
c("loading"),
|
|
12756
|
+
c("loading"), h("");
|
|
12754
12757
|
try {
|
|
12755
12758
|
const N = await (await fetch("/api/comments-report", {
|
|
12756
12759
|
method: "POST",
|
|
@@ -12761,7 +12764,7 @@ const Rs = wp(bp, {
|
|
|
12761
12764
|
publication: r,
|
|
12762
12765
|
username: s,
|
|
12763
12766
|
id: n,
|
|
12764
|
-
captchaToken:
|
|
12767
|
+
captchaToken: m,
|
|
12765
12768
|
type: We[d]
|
|
12766
12769
|
// Enviamos el label completo
|
|
12767
12770
|
})
|
|
@@ -12773,11 +12776,11 @@ const Rs = wp(bp, {
|
|
|
12773
12776
|
else
|
|
12774
12777
|
throw new Error(N.message || "Error al reportar comentario");
|
|
12775
12778
|
} catch (v) {
|
|
12776
|
-
console.error("Error reporting comment:", v),
|
|
12779
|
+
console.error("Error reporting comment:", v), h(v.message || "Error al reportar comentario"), c("form");
|
|
12777
12780
|
}
|
|
12778
12781
|
}
|
|
12779
12782
|
}, y = () => {
|
|
12780
|
-
c("form"), l(""),
|
|
12783
|
+
c("form"), l(""), h(""), t();
|
|
12781
12784
|
};
|
|
12782
12785
|
return !e || !n || !s ? null : /* @__PURE__ */ a("div", { className: ue.overlay, children: /* @__PURE__ */ f("div", { className: ue.popup, children: [
|
|
12783
12786
|
/* @__PURE__ */ a("button", { className: "close-reply-form", onClick: y, children: /* @__PURE__ */ a(Tt, {}) }),
|
|
@@ -12898,20 +12901,20 @@ async function Yp({
|
|
|
12898
12901
|
throw new Error("Invalid input types for publication or path");
|
|
12899
12902
|
if (!c)
|
|
12900
12903
|
throw new Error("Missing CMS API token");
|
|
12901
|
-
const { PUBLIC_ENV: d, PUBLIC_API_HOST: l, PUBLIC_API_PATH: u, PUBLIC_API_PATH_VERSION:
|
|
12902
|
-
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)
|
|
12903
12906
|
throw new Error("Invalid size parameter");
|
|
12904
12907
|
if (isNaN(p) || p < 0)
|
|
12905
12908
|
throw new Error("Invalid sizereply parameter");
|
|
12906
12909
|
const g = d !== "prod" ? `${l}${u}` : mo(), A = new URLSearchParams({
|
|
12907
12910
|
publication: e,
|
|
12908
12911
|
path: t,
|
|
12909
|
-
size:
|
|
12912
|
+
size: m.toString(),
|
|
12910
12913
|
sizereply: p.toString(),
|
|
12911
12914
|
state: i
|
|
12912
12915
|
});
|
|
12913
12916
|
s && A.append("id", s), o && A.append("lastid", o);
|
|
12914
|
-
const y = `${g}${
|
|
12917
|
+
const y = `${g}${h}/newcomments/get?${A.toString()}`;
|
|
12915
12918
|
try {
|
|
12916
12919
|
console.log("Fetching comments from:", y);
|
|
12917
12920
|
const { data: v } = await se.get(y, {
|
|
@@ -13134,19 +13137,19 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13134
13137
|
throw new Error(
|
|
13135
13138
|
`Error al enviar comentario: ${u?.message} status: ${l.status}`
|
|
13136
13139
|
);
|
|
13137
|
-
const
|
|
13140
|
+
const h = Date.now(), m = Math.max(0, 2400 + Math.abs(h - d)), p = {
|
|
13138
13141
|
username: s.username,
|
|
13139
13142
|
firstname: s.firstname,
|
|
13140
13143
|
...s.lastname && { lastname: s.lastname },
|
|
13141
13144
|
...s.picture && { picture: s.picture }
|
|
13142
13145
|
};
|
|
13143
13146
|
return i({
|
|
13144
|
-
id:
|
|
13147
|
+
id: h.toString(),
|
|
13145
13148
|
text: c,
|
|
13146
13149
|
user: p,
|
|
13147
13150
|
date: { time: Date.now() },
|
|
13148
13151
|
reply: []
|
|
13149
|
-
}), t.current && (t.current.value = ""),
|
|
13152
|
+
}), t.current && (t.current.value = ""), m;
|
|
13150
13153
|
} catch (d) {
|
|
13151
13154
|
return console.error("Error enviando comentario:", d), alert(d.message || "Error al enviar el comentario."), !1;
|
|
13152
13155
|
}
|
|
@@ -13159,11 +13162,11 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13159
13162
|
closeForm: o,
|
|
13160
13163
|
CAPTCHA_KEY_V2: i
|
|
13161
13164
|
}) => {
|
|
13162
|
-
const [c, d] = J(!0), [l, u] = J(""),
|
|
13165
|
+
const [c, d] = J(!0), [l, u] = J(""), h = () => {
|
|
13163
13166
|
t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${ft}`), d(!0), o();
|
|
13164
13167
|
};
|
|
13165
13168
|
return /* @__PURE__ */ f("div", { className: "comment-form reply-form", children: [
|
|
13166
|
-
/* @__PURE__ */ a("button", { className: "close-reply-form", onClick:
|
|
13169
|
+
/* @__PURE__ */ a("button", { className: "close-reply-form", onClick: h, children: /* @__PURE__ */ a(Tt, {}) }),
|
|
13167
13170
|
/* @__PURE__ */ a(
|
|
13168
13171
|
Ps,
|
|
13169
13172
|
{
|
|
@@ -13182,19 +13185,19 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13182
13185
|
children: /* @__PURE__ */ a(
|
|
13183
13186
|
Ms,
|
|
13184
13187
|
{
|
|
13185
|
-
onClick: async (
|
|
13188
|
+
onClick: async (m) => {
|
|
13186
13189
|
if (c) return;
|
|
13187
13190
|
const p = await js({
|
|
13188
13191
|
path: r,
|
|
13189
13192
|
ref: t,
|
|
13190
13193
|
captchaToken: l,
|
|
13191
|
-
button:
|
|
13194
|
+
button: m.currentTarget,
|
|
13192
13195
|
user: n,
|
|
13193
13196
|
id: e,
|
|
13194
13197
|
addComment: s
|
|
13195
13198
|
});
|
|
13196
13199
|
return p && typeof p == "number" ? (setTimeout(() => {
|
|
13197
|
-
|
|
13200
|
+
h();
|
|
13198
13201
|
}, p), !0) : !1;
|
|
13199
13202
|
},
|
|
13200
13203
|
isDisabled: c
|
|
@@ -13220,7 +13223,7 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13220
13223
|
] })
|
|
13221
13224
|
] }) });
|
|
13222
13225
|
}, a9 = ({ comment: e, replyingTo: t, path: n, user: r, handleReplyingTo: s, onFlag: o, CAPTCHA_KEY_V2: i }) => {
|
|
13223
|
-
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);
|
|
13224
13227
|
let y = `${Ke.firstname} ${Ke.lastname}`, v = Ke.username;
|
|
13225
13228
|
e.user && (y = `${e.user.firstname} ${e.user.lastname}`, v = e.user.username);
|
|
13226
13229
|
const N = (_) => {
|
|
@@ -13273,10 +13276,10 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13273
13276
|
className: "comment-replies-button reply-button",
|
|
13274
13277
|
onClick: async () => {
|
|
13275
13278
|
const _ = d.reply[d.reply.length - 1]?.id;
|
|
13276
|
-
|
|
13279
|
+
h(!0);
|
|
13277
13280
|
try {
|
|
13278
13281
|
const b = await Ua({
|
|
13279
|
-
publication:
|
|
13282
|
+
publication: m ?? "",
|
|
13280
13283
|
path: n ?? "",
|
|
13281
13284
|
size: 2,
|
|
13282
13285
|
sizereply: 2,
|
|
@@ -13285,9 +13288,9 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13285
13288
|
state: "5,6",
|
|
13286
13289
|
apiToken: p ?? ""
|
|
13287
13290
|
});
|
|
13288
|
-
|
|
13291
|
+
h(!1), l({ morereply: b.morecomment, reply: [...d.reply, ...b.comments] });
|
|
13289
13292
|
} catch (x) {
|
|
13290
|
-
throw
|
|
13293
|
+
throw h(!1), new Error(`Error al obtener comentarios: ${x}`);
|
|
13291
13294
|
}
|
|
13292
13295
|
},
|
|
13293
13296
|
children: "Más Respuestas"
|
|
@@ -13354,10 +13357,10 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13354
13357
|
}) => {
|
|
13355
13358
|
const o = t.replaceAll("/", "|"), [i, c] = J(
|
|
13356
13359
|
void 0
|
|
13357
|
-
), [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) => {
|
|
13358
13361
|
l(d === E ? "" : E);
|
|
13359
13362
|
}, y = (E) => {
|
|
13360
|
-
|
|
13363
|
+
h(
|
|
13361
13364
|
u ? {
|
|
13362
13365
|
...u,
|
|
13363
13366
|
comments: [E, ...u.comments ?? []]
|
|
@@ -13382,7 +13385,7 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13382
13385
|
state: "5,6",
|
|
13383
13386
|
apiToken: o9
|
|
13384
13387
|
});
|
|
13385
|
-
|
|
13388
|
+
h({
|
|
13386
13389
|
morecomment: Q.morecomment ?? !1,
|
|
13387
13390
|
comments: [...u.comments, ...Q.comments]
|
|
13388
13391
|
}), p(!1);
|
|
@@ -13431,11 +13434,11 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13431
13434
|
},
|
|
13432
13435
|
E.id
|
|
13433
13436
|
)),
|
|
13434
|
-
|
|
13437
|
+
m && b
|
|
13435
13438
|
]
|
|
13436
13439
|
}
|
|
13437
13440
|
) : null : b,
|
|
13438
|
-
u?.morecomment && !
|
|
13441
|
+
u?.morecomment && !m && /* @__PURE__ */ a(
|
|
13439
13442
|
"button",
|
|
13440
13443
|
{
|
|
13441
13444
|
className: "comment-replies-button",
|
|
@@ -13504,7 +13507,7 @@ const { PUBLIC_PUBLICATION_ID: Kp } = K(), Jp = Kp, Zp = (e) => {
|
|
|
13504
13507
|
}
|
|
13505
13508
|
];
|
|
13506
13509
|
function c9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
13507
|
-
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(
|
|
13508
13511
|
"register"
|
|
13509
13512
|
), p = (v, N) => {
|
|
13510
13513
|
s((_) => ({ ..._, [v]: N }));
|
|
@@ -13546,12 +13549,12 @@ function c9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13546
13549
|
method: "POST",
|
|
13547
13550
|
headers: { "Content-Type": "application/json" },
|
|
13548
13551
|
body: JSON.stringify({ username: r.email })
|
|
13549
|
-
}),
|
|
13552
|
+
}), m("confirm");
|
|
13550
13553
|
return;
|
|
13551
13554
|
}
|
|
13552
13555
|
throw new Error(Q?.error || "Error al crear usuario");
|
|
13553
13556
|
}
|
|
13554
|
-
|
|
13557
|
+
m("confirm");
|
|
13555
13558
|
} catch (N) {
|
|
13556
13559
|
console.log(N), u(N?.message || N?.error || "Error inesperado");
|
|
13557
13560
|
} finally {
|
|
@@ -13576,7 +13579,7 @@ function c9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13576
13579
|
const _ = await N.json().catch(() => ({}));
|
|
13577
13580
|
throw new Error(_?.error || "Error al confirmar usuario");
|
|
13578
13581
|
}
|
|
13579
|
-
|
|
13582
|
+
m("success");
|
|
13580
13583
|
} catch (N) {
|
|
13581
13584
|
u(N?.message || "Error inesperado");
|
|
13582
13585
|
} finally {
|
|
@@ -13584,7 +13587,7 @@ function c9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13584
13587
|
}
|
|
13585
13588
|
}, y = r.password || "";
|
|
13586
13589
|
return /* @__PURE__ */ f(Y, { children: [
|
|
13587
|
-
|
|
13590
|
+
h === "register" && /* @__PURE__ */ f(Y, { children: [
|
|
13588
13591
|
/* @__PURE__ */ f("button", { onClick: t, className: k.google, children: [
|
|
13589
13592
|
/* @__PURE__ */ a(
|
|
13590
13593
|
"img",
|
|
@@ -13662,7 +13665,7 @@ function c9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13662
13665
|
}
|
|
13663
13666
|
)
|
|
13664
13667
|
] }),
|
|
13665
|
-
|
|
13668
|
+
h === "confirm" && /* @__PURE__ */ f(
|
|
13666
13669
|
"form",
|
|
13667
13670
|
{
|
|
13668
13671
|
onSubmit: A,
|
|
@@ -13692,7 +13695,7 @@ function c9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13692
13695
|
]
|
|
13693
13696
|
}
|
|
13694
13697
|
),
|
|
13695
|
-
|
|
13698
|
+
h === "success" && /* @__PURE__ */ f("form", { className: k.form, children: [
|
|
13696
13699
|
/* @__PURE__ */ f("div", { className: k.successContainer, children: [
|
|
13697
13700
|
/* @__PURE__ */ a("div", { className: k.thumbsUp, children: /* @__PURE__ */ a(
|
|
13698
13701
|
"svg",
|
|
@@ -13717,7 +13720,7 @@ function c9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13717
13720
|
] }),
|
|
13718
13721
|
/* @__PURE__ */ a("button", { onClick: e, className: k.primary, children: "Iniciar sesión" })
|
|
13719
13722
|
] }),
|
|
13720
|
-
|
|
13723
|
+
h === "register" && /* @__PURE__ */ f("p", { className: k.switch, children: [
|
|
13721
13724
|
"¿Ya tenés cuenta?",
|
|
13722
13725
|
/* @__PURE__ */ a("button", { type: "button", onClick: e, children: "Iniciar sesión" })
|
|
13723
13726
|
] })
|
|
@@ -13730,7 +13733,7 @@ function l9({
|
|
|
13730
13733
|
handleGoogleLogin: r,
|
|
13731
13734
|
CAPTCHA_KEY: s
|
|
13732
13735
|
}) {
|
|
13733
|
-
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);
|
|
13734
13737
|
return console.log("CAPTCHA_KEY", s), /* @__PURE__ */ f(Y, { children: [
|
|
13735
13738
|
o === "login" && /* @__PURE__ */ a(
|
|
13736
13739
|
d9,
|
|
@@ -13810,13 +13813,13 @@ function l9({
|
|
|
13810
13813
|
h9,
|
|
13811
13814
|
{
|
|
13812
13815
|
email: c,
|
|
13813
|
-
confirmationCode:
|
|
13816
|
+
confirmationCode: h,
|
|
13814
13817
|
newPassword: p,
|
|
13815
13818
|
confirmNewPassword: A,
|
|
13816
13819
|
showPassword: v,
|
|
13817
13820
|
loading: _,
|
|
13818
13821
|
error: b,
|
|
13819
|
-
setConfirmationCode:
|
|
13822
|
+
setConfirmationCode: m,
|
|
13820
13823
|
setNewPassword: g,
|
|
13821
13824
|
setConfirmNewPassword: y,
|
|
13822
13825
|
setShowPassword: N,
|
|
@@ -13837,7 +13840,7 @@ function l9({
|
|
|
13837
13840
|
const ee = await fetch("/api/auth/confirm-forgot-password", {
|
|
13838
13841
|
method: "POST",
|
|
13839
13842
|
headers: { "Content-Type": "application/json" },
|
|
13840
|
-
body: JSON.stringify({ email: c, code:
|
|
13843
|
+
body: JSON.stringify({ email: c, code: h, newPassword: p })
|
|
13841
13844
|
});
|
|
13842
13845
|
if (!ee.ok) {
|
|
13843
13846
|
const ce = await ee.json().catch(() => ({}));
|
|
@@ -13877,10 +13880,10 @@ function d9({
|
|
|
13877
13880
|
onSubmit: d,
|
|
13878
13881
|
onForgot: l,
|
|
13879
13882
|
onRegister: u,
|
|
13880
|
-
handleGoogleLogin:
|
|
13883
|
+
handleGoogleLogin: h
|
|
13881
13884
|
}) {
|
|
13882
13885
|
return /* @__PURE__ */ f(Y, { children: [
|
|
13883
|
-
/* @__PURE__ */ f("button", { onClick:
|
|
13886
|
+
/* @__PURE__ */ f("button", { onClick: h, className: k.google, children: [
|
|
13884
13887
|
/* @__PURE__ */ a(
|
|
13885
13888
|
"img",
|
|
13886
13889
|
{
|
|
@@ -13906,7 +13909,7 @@ function d9({
|
|
|
13906
13909
|
{
|
|
13907
13910
|
type: "email",
|
|
13908
13911
|
value: e,
|
|
13909
|
-
onChange: (
|
|
13912
|
+
onChange: (m) => o(m.target.value),
|
|
13910
13913
|
className: k.input,
|
|
13911
13914
|
placeholder: ""
|
|
13912
13915
|
}
|
|
@@ -13919,7 +13922,7 @@ function d9({
|
|
|
13919
13922
|
{
|
|
13920
13923
|
type: n ? "text" : "password",
|
|
13921
13924
|
value: t,
|
|
13922
|
-
onChange: (
|
|
13925
|
+
onChange: (m) => i(m.target.value),
|
|
13923
13926
|
className: k.input,
|
|
13924
13927
|
placeholder: ""
|
|
13925
13928
|
}
|
|
@@ -13931,7 +13934,7 @@ function d9({
|
|
|
13931
13934
|
id: "showPasswordLogin",
|
|
13932
13935
|
type: "checkbox",
|
|
13933
13936
|
checked: n,
|
|
13934
|
-
onChange: (
|
|
13937
|
+
onChange: (m) => c(m.target.checked)
|
|
13935
13938
|
}
|
|
13936
13939
|
),
|
|
13937
13940
|
/* @__PURE__ */ a("label", { htmlFor: "showPasswordLogin", className: k.checkboxLabel, children: "Mostrar contraseña" })
|
|
@@ -14006,13 +14009,13 @@ function h9({
|
|
|
14006
14009
|
setNewPassword: d,
|
|
14007
14010
|
setConfirmNewPassword: l,
|
|
14008
14011
|
setShowPassword: u,
|
|
14009
|
-
onSubmit:
|
|
14010
|
-
onBack:
|
|
14012
|
+
onSubmit: h,
|
|
14013
|
+
onBack: m
|
|
14011
14014
|
}) {
|
|
14012
14015
|
return /* @__PURE__ */ f(
|
|
14013
14016
|
"form",
|
|
14014
14017
|
{
|
|
14015
|
-
onSubmit:
|
|
14018
|
+
onSubmit: h,
|
|
14016
14019
|
className: k.form,
|
|
14017
14020
|
"data-error": i ? "true" : "false",
|
|
14018
14021
|
children: [
|
|
@@ -14100,7 +14103,7 @@ function h9({
|
|
|
14100
14103
|
children: o ? /* @__PURE__ */ a(Je, {}) : "Cambiar contraseña"
|
|
14101
14104
|
}
|
|
14102
14105
|
),
|
|
14103
|
-
/* @__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" }) })
|
|
14104
14107
|
]
|
|
14105
14108
|
}
|
|
14106
14109
|
);
|
|
@@ -14199,8 +14202,8 @@ function g9({
|
|
|
14199
14202
|
"a",
|
|
14200
14203
|
{
|
|
14201
14204
|
href: n,
|
|
14202
|
-
onClick: async (
|
|
14203
|
-
|
|
14205
|
+
onClick: async (m) => {
|
|
14206
|
+
m.preventDefault(), n && l(!0);
|
|
14204
14207
|
},
|
|
14205
14208
|
className: "login-button",
|
|
14206
14209
|
children: "Iniciar Sesión"
|
|
@@ -14213,8 +14216,8 @@ function g9({
|
|
|
14213
14216
|
isAuthenticated: e,
|
|
14214
14217
|
handleLogout: async () => {
|
|
14215
14218
|
{
|
|
14216
|
-
const
|
|
14217
|
-
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)}`;
|
|
14218
14221
|
}
|
|
14219
14222
|
},
|
|
14220
14223
|
path: s,
|
|
@@ -14239,8 +14242,8 @@ function p9({
|
|
|
14239
14242
|
try {
|
|
14240
14243
|
const p = await (await fetch("/api/auth/user", { credentials: "include" })).json();
|
|
14241
14244
|
o(p.isAuthenticated ?? !1), c(p.user ?? null);
|
|
14242
|
-
} catch (
|
|
14243
|
-
console.error("Error checking auth:",
|
|
14245
|
+
} catch (m) {
|
|
14246
|
+
console.error("Error checking auth:", m), o(!1), c(null);
|
|
14244
14247
|
}
|
|
14245
14248
|
}
|
|
14246
14249
|
}, [e, d]);
|
|
@@ -14248,14 +14251,14 @@ function p9({
|
|
|
14248
14251
|
l();
|
|
14249
14252
|
}, [l, e]), De(() => {
|
|
14250
14253
|
if (!i || !e || typeof window > "u") return;
|
|
14251
|
-
const
|
|
14252
|
-
if (typeof
|
|
14254
|
+
const m = window;
|
|
14255
|
+
if (typeof m != "function") {
|
|
14253
14256
|
console.warn("gtag no está disponible todavía");
|
|
14254
14257
|
return;
|
|
14255
14258
|
}
|
|
14256
|
-
|
|
14259
|
+
m.gtag("set", { user_id: i.username }), console.log("username setted successfully");
|
|
14257
14260
|
}, [i, e]);
|
|
14258
|
-
const u = "/api/auth/login",
|
|
14261
|
+
const u = "/api/auth/login", h = /* @__PURE__ */ a(
|
|
14259
14262
|
"div",
|
|
14260
14263
|
{
|
|
14261
14264
|
style: {
|
|
@@ -14268,7 +14271,7 @@ function p9({
|
|
|
14268
14271
|
children: /* @__PURE__ */ a(Je, {})
|
|
14269
14272
|
}
|
|
14270
14273
|
);
|
|
14271
|
-
return s === null ?
|
|
14274
|
+
return s === null ? h : e ? /* @__PURE__ */ a(
|
|
14272
14275
|
g9,
|
|
14273
14276
|
{
|
|
14274
14277
|
icon: n,
|
|
@@ -14280,7 +14283,7 @@ function p9({
|
|
|
14280
14283
|
path: t,
|
|
14281
14284
|
COMMENTS_VARS: r
|
|
14282
14285
|
}
|
|
14283
|
-
) :
|
|
14286
|
+
) : h;
|
|
14284
14287
|
}
|
|
14285
14288
|
const x3 = ({
|
|
14286
14289
|
render: e,
|
|
@@ -14295,18 +14298,18 @@ const x3 = ({
|
|
|
14295
14298
|
const d = Pr(null), [l, u] = Te.useState(i);
|
|
14296
14299
|
Te.useEffect(() => {
|
|
14297
14300
|
if (i || l) return;
|
|
14298
|
-
const
|
|
14301
|
+
const m = new IntersectionObserver(
|
|
14299
14302
|
([p]) => {
|
|
14300
|
-
p?.isIntersecting && (u(!0),
|
|
14303
|
+
p?.isIntersecting && (u(!0), m.disconnect());
|
|
14301
14304
|
},
|
|
14302
14305
|
{
|
|
14303
14306
|
rootMargin: "0px",
|
|
14304
14307
|
threshold: 0.1
|
|
14305
14308
|
}
|
|
14306
14309
|
);
|
|
14307
|
-
return d.current &&
|
|
14310
|
+
return d.current && m.observe(d.current), () => m.disconnect();
|
|
14308
14311
|
}, []);
|
|
14309
|
-
const
|
|
14312
|
+
const h = {
|
|
14310
14313
|
comment: /* @__PURE__ */ a(
|
|
14311
14314
|
p9,
|
|
14312
14315
|
{
|
|
@@ -14334,7 +14337,7 @@ const x3 = ({
|
|
|
14334
14337
|
style: {
|
|
14335
14338
|
...s ? s["Modulo 1x3 Client"] ? s["Modulo 1x3 Client"] : s["Modulo 1x3"] : {}
|
|
14336
14339
|
},
|
|
14337
|
-
children:
|
|
14340
|
+
children: h[e]
|
|
14338
14341
|
}
|
|
14339
14342
|
);
|
|
14340
14343
|
};
|
|
@@ -14388,16 +14391,16 @@ async function T3({
|
|
|
14388
14391
|
message: "Captcha inválido. Intenta nuevamente.",
|
|
14389
14392
|
status: 403
|
|
14390
14393
|
};
|
|
14391
|
-
const
|
|
14394
|
+
const h = `${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`, m = {
|
|
14392
14395
|
publication: e,
|
|
14393
14396
|
path: t.replace(/\|/gi, "/"),
|
|
14394
14397
|
username: n ?? !1,
|
|
14395
14398
|
text: r.trim()
|
|
14396
14399
|
};
|
|
14397
|
-
s && (
|
|
14398
|
-
const p = new URLSearchParams(
|
|
14400
|
+
s && (m.id = s);
|
|
14401
|
+
const p = new URLSearchParams(m);
|
|
14399
14402
|
try {
|
|
14400
|
-
const { data: g } = await se.get(`${
|
|
14403
|
+
const { data: g } = await se.get(`${h}?${p.toString()}`, {
|
|
14401
14404
|
headers: {
|
|
14402
14405
|
"Content-Type": "application/json",
|
|
14403
14406
|
"x-security-token": d,
|