sass-template-common 0.10.36-beta.0 → 0.10.36-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sass-template-common.js +630 -628
- package/dist/sass-template-common.umd.cjs +18 -18
- package/package.json +1 -1
|
@@ -108,7 +108,7 @@ function Za() {
|
|
|
108
108
|
(function(n, a) {
|
|
109
109
|
e.exports = a();
|
|
110
110
|
})(wo, (function() {
|
|
111
|
-
var n = 1e3, a = 6e4, r = 36e5, o = "millisecond", i = "second", l = "minute", c = "hour", d = "day", u = "week", h = "month", m = "quarter", p = "year", f = "date", w = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
111
|
+
var n = 1e3, a = 6e4, r = 36e5, o = "millisecond", i = "second", l = "minute", c = "hour", d = "day", u = "week", h = "month", m = "quarter", p = "year", f = "date", w = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(B) {
|
|
112
112
|
var L = ["th", "st", "nd", "rd"], U = B % 100;
|
|
113
113
|
return "[" + B + (L[(U - 20) % 10] || L[U] || L[0]) + "]";
|
|
114
114
|
} }, N = function(B, L, U) {
|
|
@@ -119,16 +119,16 @@ function Za() {
|
|
|
119
119
|
return (L <= 0 ? "+" : "-") + N(j, 2, "0") + ":" + N(M, 2, "0");
|
|
120
120
|
}, m: function B(L, U) {
|
|
121
121
|
if (L.date() < U.date()) return -B(U, L);
|
|
122
|
-
var j = 12 * (U.year() - L.year()) + (U.month() - L.month()), M = L.clone().add(j, h), W = U - M < 0,
|
|
123
|
-
return +(-(j + (U - M) / (W ? M -
|
|
122
|
+
var j = 12 * (U.year() - L.year()) + (U.month() - L.month()), M = L.clone().add(j, h), W = U - M < 0, S = L.clone().add(j + (W ? -1 : 1), h);
|
|
123
|
+
return +(-(j + (U - M) / (W ? M - S : S - M)) || 0);
|
|
124
124
|
}, a: function(B) {
|
|
125
125
|
return B < 0 ? Math.ceil(B) || 0 : Math.floor(B);
|
|
126
126
|
}, p: function(B) {
|
|
127
127
|
return { M: h, y: p, w: u, d, D: f, h: c, m: l, s: i, ms: o, Q: m }[B] || String(B || "").toLowerCase().replace(/s$/, "");
|
|
128
128
|
}, u: function(B) {
|
|
129
129
|
return B === void 0;
|
|
130
|
-
} }, C = "en",
|
|
131
|
-
|
|
130
|
+
} }, C = "en", x = {};
|
|
131
|
+
x[C] = y;
|
|
132
132
|
var T = "$isDayjsObject", P = function(B) {
|
|
133
133
|
return B instanceof F || !(!B || !B[T]);
|
|
134
134
|
}, $ = function B(L, U, j) {
|
|
@@ -136,12 +136,12 @@ function Za() {
|
|
|
136
136
|
if (!L) return C;
|
|
137
137
|
if (typeof L == "string") {
|
|
138
138
|
var W = L.toLowerCase();
|
|
139
|
-
|
|
140
|
-
var
|
|
141
|
-
if (!M &&
|
|
139
|
+
x[W] && (M = W), U && (x[W] = U, M = W);
|
|
140
|
+
var S = L.split("-");
|
|
141
|
+
if (!M && S.length > 1) return B(S[0]);
|
|
142
142
|
} else {
|
|
143
143
|
var k = L.name;
|
|
144
|
-
|
|
144
|
+
x[k] = L, M = k;
|
|
145
145
|
}
|
|
146
146
|
return !j && M && (C = M), M || !j && C;
|
|
147
147
|
}, O = function(B, L) {
|
|
@@ -164,10 +164,10 @@ function Za() {
|
|
|
164
164
|
if (R.u(M)) return /* @__PURE__ */ new Date();
|
|
165
165
|
if (M instanceof Date) return new Date(M);
|
|
166
166
|
if (typeof M == "string" && !/Z$/i.test(M)) {
|
|
167
|
-
var
|
|
168
|
-
if (
|
|
169
|
-
var k =
|
|
170
|
-
return W ? new Date(Date.UTC(
|
|
167
|
+
var S = M.match(b);
|
|
168
|
+
if (S) {
|
|
169
|
+
var k = S[2] - 1 || 0, q = (S[7] || "0").substring(0, 3);
|
|
170
|
+
return W ? new Date(Date.UTC(S[1], k, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, q)) : new Date(S[1], k, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, q);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
return new Date(M);
|
|
@@ -193,13 +193,13 @@ function Za() {
|
|
|
193
193
|
}, L.valueOf = function() {
|
|
194
194
|
return this.$d.getTime();
|
|
195
195
|
}, L.startOf = function(U, j) {
|
|
196
|
-
var M = this, W = !!R.u(j) || j,
|
|
196
|
+
var M = this, W = !!R.u(j) || j, S = R.p(U), k = function(se, X) {
|
|
197
197
|
var de = R.w(M.$u ? Date.UTC(M.$y, X, se) : new Date(M.$y, X, se), M);
|
|
198
198
|
return W ? de : de.endOf(d);
|
|
199
199
|
}, q = function(se, X) {
|
|
200
200
|
return R.w(M.toDate()[se].apply(M.toDate("s"), (W ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), M);
|
|
201
201
|
}, H = this.$W, G = this.$M, Q = this.$D, K = "set" + (this.$u ? "UTC" : "");
|
|
202
|
-
switch (
|
|
202
|
+
switch (S) {
|
|
203
203
|
case p:
|
|
204
204
|
return W ? k(1, 0) : k(31, 11);
|
|
205
205
|
case h:
|
|
@@ -222,7 +222,7 @@ function Za() {
|
|
|
222
222
|
}, L.endOf = function(U) {
|
|
223
223
|
return this.startOf(U, !1);
|
|
224
224
|
}, L.$set = function(U, j) {
|
|
225
|
-
var M, W = R.p(U),
|
|
225
|
+
var M, W = R.p(U), S = "set" + (this.$u ? "UTC" : ""), k = (M = {}, M[d] = S + "Date", M[f] = S + "Date", M[h] = S + "Month", M[p] = S + "FullYear", M[c] = S + "Hours", M[l] = S + "Minutes", M[i] = S + "Seconds", M[o] = S + "Milliseconds", M)[W], q = W === d ? this.$D + (j - this.$W) : j;
|
|
226
226
|
if (W === h || W === p) {
|
|
227
227
|
var H = this.clone().set(f, 1);
|
|
228
228
|
H.$d[k](q), H.init(), this.$d = H.set(f, Math.min(this.$D, H.daysInMonth())).$d;
|
|
@@ -235,22 +235,22 @@ function Za() {
|
|
|
235
235
|
}, L.add = function(U, j) {
|
|
236
236
|
var M, W = this;
|
|
237
237
|
U = Number(U);
|
|
238
|
-
var
|
|
238
|
+
var S = R.p(j), k = function(G) {
|
|
239
239
|
var Q = O(W);
|
|
240
240
|
return R.w(Q.date(Q.date() + Math.round(G * U)), W);
|
|
241
241
|
};
|
|
242
|
-
if (
|
|
243
|
-
if (
|
|
244
|
-
if (
|
|
245
|
-
if (
|
|
246
|
-
var q = (M = {}, M[l] = a, M[c] = r, M[i] = n, M)[
|
|
242
|
+
if (S === h) return this.set(h, this.$M + U);
|
|
243
|
+
if (S === p) return this.set(p, this.$y + U);
|
|
244
|
+
if (S === d) return k(1);
|
|
245
|
+
if (S === u) return k(7);
|
|
246
|
+
var q = (M = {}, M[l] = a, M[c] = r, M[i] = n, M)[S] || 1, H = this.$d.getTime() + U * q;
|
|
247
247
|
return R.w(H, this);
|
|
248
248
|
}, L.subtract = function(U, j) {
|
|
249
249
|
return this.add(-1 * U, j);
|
|
250
250
|
}, L.format = function(U) {
|
|
251
251
|
var j = this, M = this.$locale();
|
|
252
252
|
if (!this.isValid()) return M.invalidDate || w;
|
|
253
|
-
var W = U || "YYYY-MM-DDTHH:mm:ssZ",
|
|
253
|
+
var W = U || "YYYY-MM-DDTHH:mm:ssZ", S = R.z(this), k = this.$H, q = this.$m, H = this.$M, G = M.weekdays, Q = M.months, K = M.meridiem, J = function(X, de, D, Ae) {
|
|
254
254
|
return X && (X[de] || X(j, W)) || D[de].slice(0, Ae);
|
|
255
255
|
}, ne = function(X) {
|
|
256
256
|
return R.s(k % 12 || 12, X, "0");
|
|
@@ -258,7 +258,7 @@ function Za() {
|
|
|
258
258
|
var Ae = X < 12 ? "AM" : "PM";
|
|
259
259
|
return D ? Ae.toLowerCase() : Ae;
|
|
260
260
|
};
|
|
261
|
-
return W.replace(
|
|
261
|
+
return W.replace(A, (function(X, de) {
|
|
262
262
|
return de || (function(D) {
|
|
263
263
|
switch (D) {
|
|
264
264
|
case "YY":
|
|
@@ -308,16 +308,16 @@ function Za() {
|
|
|
308
308
|
case "SSS":
|
|
309
309
|
return R.s(j.$ms, 3, "0");
|
|
310
310
|
case "Z":
|
|
311
|
-
return
|
|
311
|
+
return S;
|
|
312
312
|
}
|
|
313
313
|
return null;
|
|
314
|
-
})(X) ||
|
|
314
|
+
})(X) || S.replace(":", "");
|
|
315
315
|
}));
|
|
316
316
|
}, L.utcOffset = function() {
|
|
317
317
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
318
318
|
}, L.diff = function(U, j, M) {
|
|
319
|
-
var W,
|
|
320
|
-
return R.m(
|
|
319
|
+
var W, S = this, k = R.p(j), q = O(U), H = (q.utcOffset() - this.utcOffset()) * a, G = this - q, Q = function() {
|
|
320
|
+
return R.m(S, q);
|
|
321
321
|
};
|
|
322
322
|
switch (k) {
|
|
323
323
|
case p:
|
|
@@ -351,7 +351,7 @@ function Za() {
|
|
|
351
351
|
}, L.daysInMonth = function() {
|
|
352
352
|
return this.endOf(h).$D;
|
|
353
353
|
}, L.$locale = function() {
|
|
354
|
-
return
|
|
354
|
+
return x[this.$L];
|
|
355
355
|
}, L.locale = function(U, j) {
|
|
356
356
|
if (!U) return this.$L;
|
|
357
357
|
var M = this.clone(), W = $(U, j, !0);
|
|
@@ -376,7 +376,7 @@ function Za() {
|
|
|
376
376
|
return B.$i || (B(L, F, O), B.$i = !0), O;
|
|
377
377
|
}, O.locale = $, O.isDayjs = P, O.unix = function(B) {
|
|
378
378
|
return O(1e3 * B);
|
|
379
|
-
}, O.en =
|
|
379
|
+
}, O.en = x[C], O.Ls = x, O.p = {}, O;
|
|
380
380
|
}));
|
|
381
381
|
})(dn)), dn.exports;
|
|
382
382
|
}
|
|
@@ -395,19 +395,19 @@ function yo() {
|
|
|
395
395
|
return o.fromToBase(d, u, h, m);
|
|
396
396
|
}
|
|
397
397
|
r.en.relativeTime = i, o.fromToBase = function(d, u, h, m, p) {
|
|
398
|
-
for (var f, w, b,
|
|
399
|
-
var C =
|
|
398
|
+
for (var f, w, b, A = h.$locale().relativeTime || i, y = 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 = y.length, v = 0; v < N; v += 1) {
|
|
399
|
+
var C = y[v];
|
|
400
400
|
C.d && (f = m ? r(d).diff(h, C.d, !0) : h.diff(d, C.d, !0));
|
|
401
|
-
var
|
|
402
|
-
if (b = f > 0,
|
|
403
|
-
|
|
404
|
-
var T =
|
|
405
|
-
p && (
|
|
401
|
+
var x = (n.rounding || Math.round)(Math.abs(f));
|
|
402
|
+
if (b = f > 0, x <= C.r || !C.r) {
|
|
403
|
+
x <= 1 && v > 0 && (C = y[v - 1]);
|
|
404
|
+
var T = A[C.l];
|
|
405
|
+
p && (x = p("" + x)), w = typeof T == "string" ? T.replace("%d", x) : T(x, u, C.l, b);
|
|
406
406
|
break;
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
if (u) return w;
|
|
410
|
-
var P = b ?
|
|
410
|
+
var P = b ? A.future : A.past;
|
|
411
411
|
return typeof P == "function" ? P(w) : P.replace("%s", w);
|
|
412
412
|
}, o.to = function(d, u) {
|
|
413
413
|
return l(d, u, this, !0);
|
|
@@ -476,21 +476,21 @@ function Eo() {
|
|
|
476
476
|
};
|
|
477
477
|
var h = c.utcOffset;
|
|
478
478
|
c.utcOffset = function(w, b) {
|
|
479
|
-
var
|
|
480
|
-
if (
|
|
479
|
+
var A = this.$utils().u;
|
|
480
|
+
if (A(w)) return this.$u ? 0 : A(this.$offset) ? h.call(this) : this.$offset;
|
|
481
481
|
if (typeof w == "string" && (w = (function(C) {
|
|
482
482
|
C === void 0 && (C = "");
|
|
483
|
-
var
|
|
484
|
-
if (!
|
|
485
|
-
var T = ("" +
|
|
483
|
+
var x = C.match(a);
|
|
484
|
+
if (!x) return null;
|
|
485
|
+
var T = ("" + x[0]).match(r) || ["-", 0, 0], P = T[0], $ = 60 * +T[1] + +T[2];
|
|
486
486
|
return $ === 0 ? 0 : P === "+" ? $ : -$;
|
|
487
487
|
})(w), w === null)) return this;
|
|
488
|
-
var
|
|
489
|
-
if (
|
|
488
|
+
var y = Math.abs(w) <= 16 ? 60 * w : w;
|
|
489
|
+
if (y === 0) return this.utc(b);
|
|
490
490
|
var N = this.clone();
|
|
491
|
-
if (b) return N.$offset =
|
|
491
|
+
if (b) return N.$offset = y, N.$u = !1, N;
|
|
492
492
|
var v = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
493
|
-
return (N = this.local().add(
|
|
493
|
+
return (N = this.local().add(y + v, n)).$offset = y, N.$x.$localOffset = v, N;
|
|
494
494
|
};
|
|
495
495
|
var m = c.format;
|
|
496
496
|
c.format = function(w) {
|
|
@@ -511,10 +511,10 @@ function Eo() {
|
|
|
511
511
|
return w === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : p.call(this);
|
|
512
512
|
};
|
|
513
513
|
var f = c.diff;
|
|
514
|
-
c.diff = function(w, b,
|
|
515
|
-
if (w && this.$u === w.$u) return f.call(this, w, b,
|
|
516
|
-
var
|
|
517
|
-
return f.call(
|
|
514
|
+
c.diff = function(w, b, A) {
|
|
515
|
+
if (w && this.$u === w.$u) return f.call(this, w, b, A);
|
|
516
|
+
var y = this.local(), N = l(w).local();
|
|
517
|
+
return f.call(y, N, b, A);
|
|
518
518
|
};
|
|
519
519
|
};
|
|
520
520
|
}));
|
|
@@ -532,25 +532,25 @@ function Uo() {
|
|
|
532
532
|
return function(r, o, i) {
|
|
533
533
|
var l, c = function(m, p, f) {
|
|
534
534
|
f === void 0 && (f = {});
|
|
535
|
-
var w = new Date(m), b = (function(
|
|
536
|
-
|
|
537
|
-
var N =
|
|
538
|
-
return C || (C = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone:
|
|
535
|
+
var w = new Date(m), b = (function(A, y) {
|
|
536
|
+
y === void 0 && (y = {});
|
|
537
|
+
var N = y.timeZoneName || "short", v = A + "|" + N, C = a[v];
|
|
538
|
+
return C || (C = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: A, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: N }), a[v] = C), C;
|
|
539
539
|
})(p, f);
|
|
540
540
|
return b.formatToParts(w);
|
|
541
541
|
}, d = function(m, p) {
|
|
542
542
|
for (var f = c(m, p), w = [], b = 0; b < f.length; b += 1) {
|
|
543
|
-
var
|
|
543
|
+
var A = f[b], y = A.type, N = A.value, v = n[y];
|
|
544
544
|
v >= 0 && (w[v] = parseInt(N, 10));
|
|
545
545
|
}
|
|
546
|
-
var C = w[3],
|
|
546
|
+
var C = w[3], x = C === 24 ? 0 : C, T = w[0] + "-" + w[1] + "-" + w[2] + " " + x + ":" + w[4] + ":" + w[5] + ":000", P = +m;
|
|
547
547
|
return (i.utc(T).valueOf() - (P -= P % 1e3)) / 6e4;
|
|
548
548
|
}, u = o.prototype;
|
|
549
549
|
u.tz = function(m, p) {
|
|
550
550
|
m === void 0 && (m = l);
|
|
551
|
-
var f, w = this.utcOffset(), b = this.toDate(),
|
|
551
|
+
var f, w = this.utcOffset(), b = this.toDate(), A = b.toLocaleString("en-US", { timeZone: m }), y = Math.round((b - new Date(A)) / 1e3 / 60), N = 15 * -Math.round(b.getTimezoneOffset() / 15) - y;
|
|
552
552
|
if (!Number(N)) f = this.utcOffset(0, p);
|
|
553
|
-
else if (f = i(
|
|
553
|
+
else if (f = i(A, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(N, !0), p) {
|
|
554
554
|
var v = f.utcOffset();
|
|
555
555
|
f = f.add(w - v, "minute");
|
|
556
556
|
}
|
|
@@ -567,14 +567,14 @@ function Uo() {
|
|
|
567
567
|
var f = i(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
568
568
|
return h.call(f, m, p).tz(this.$x.$timezone, !0);
|
|
569
569
|
}, i.tz = function(m, p, f) {
|
|
570
|
-
var w = f && p, b = f || p || l,
|
|
570
|
+
var w = f && p, b = f || p || l, A = d(+i(), b);
|
|
571
571
|
if (typeof m != "string") return i(m).tz(b);
|
|
572
|
-
var
|
|
573
|
-
var $ =
|
|
572
|
+
var y = (function(x, T, P) {
|
|
573
|
+
var $ = x - 60 * T * 1e3, O = d($, P);
|
|
574
574
|
if (T === O) return [$, T];
|
|
575
575
|
var R = d($ -= 60 * (O - T) * 1e3, P);
|
|
576
|
-
return O === R ? [$, O] : [
|
|
577
|
-
})(i.utc(m, w).valueOf(),
|
|
576
|
+
return O === R ? [$, O] : [x - 60 * Math.min(O, R) * 1e3, Math.max(O, R)];
|
|
577
|
+
})(i.utc(m, w).valueOf(), A, b), N = y[0], v = y[1], C = i(N).utcOffset(v);
|
|
578
578
|
return C.$x.$timezone = b, C;
|
|
579
579
|
}, i.tz.guess = function() {
|
|
580
580
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -851,10 +851,10 @@ function is(e) {
|
|
|
851
851
|
const o = r.index + r[0].length;
|
|
852
852
|
let i = 1, l = o, c = o;
|
|
853
853
|
for (; l < t.length && i > 0; ) {
|
|
854
|
-
const p = t.slice(l), f = p.match(/<div\b/i), w = p.match(/<\/div>/i), b = f?.index ?? -1,
|
|
855
|
-
if (
|
|
856
|
-
const
|
|
857
|
-
b !== -1 && b <
|
|
854
|
+
const p = t.slice(l), f = p.match(/<div\b/i), w = p.match(/<\/div>/i), b = f?.index ?? -1, A = w?.index ?? -1;
|
|
855
|
+
if (A === -1) break;
|
|
856
|
+
const y = b === -1 ? 1 / 0 : l + b, N = l + A;
|
|
857
|
+
b !== -1 && b < A ? (i += 1, l = y + f[0].length) : (i -= 1, c = N, l = N + w[0].length);
|
|
858
858
|
}
|
|
859
859
|
const d = t.slice(o, c), u = [], h = /<span\b[^>]*\bdata-src=["']([^"']+)["']/gi;
|
|
860
860
|
let m;
|
|
@@ -2066,12 +2066,12 @@ function Ln(e, t, n) {
|
|
|
2066
2066
|
return E.isArrayBuffer(f) || E.isTypedArray(f) ? c && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
2067
2067
|
}
|
|
2068
2068
|
function u(f, w, b) {
|
|
2069
|
-
let
|
|
2069
|
+
let A = f;
|
|
2070
2070
|
if (f && !b && typeof f == "object") {
|
|
2071
2071
|
if (E.endsWith(w, "{}"))
|
|
2072
2072
|
w = a ? w : w.slice(0, -2), f = JSON.stringify(f);
|
|
2073
|
-
else if (E.isArray(f) && Zi(f) || (E.isFileList(f) || E.endsWith(w, "[]")) && (
|
|
2074
|
-
return w = gr(w),
|
|
2073
|
+
else if (E.isArray(f) && Zi(f) || (E.isFileList(f) || E.endsWith(w, "[]")) && (A = E.toArray(f)))
|
|
2074
|
+
return w = gr(w), A.forEach(function(N, v) {
|
|
2075
2075
|
!(E.isUndefined(N) || N === null) && t.append(
|
|
2076
2076
|
// eslint-disable-next-line no-nested-ternary
|
|
2077
2077
|
i === !0 ? na([w], v, o) : i === null ? w : w + "[]",
|
|
@@ -2090,14 +2090,14 @@ function Ln(e, t, n) {
|
|
|
2090
2090
|
if (!E.isUndefined(f)) {
|
|
2091
2091
|
if (h.indexOf(f) !== -1)
|
|
2092
2092
|
throw Error("Circular reference detected in " + w.join("."));
|
|
2093
|
-
h.push(f), E.forEach(f, function(
|
|
2094
|
-
(!(E.isUndefined(
|
|
2093
|
+
h.push(f), E.forEach(f, function(A, y) {
|
|
2094
|
+
(!(E.isUndefined(A) || A === null) && r.call(
|
|
2095
2095
|
t,
|
|
2096
|
-
|
|
2097
|
-
E.isString(
|
|
2096
|
+
A,
|
|
2097
|
+
E.isString(y) ? y.trim() : y,
|
|
2098
2098
|
w,
|
|
2099
2099
|
m
|
|
2100
|
-
)) === !0 && p(
|
|
2100
|
+
)) === !0 && p(A, w ? w.concat(y) : [y]);
|
|
2101
2101
|
}), h.pop();
|
|
2102
2102
|
}
|
|
2103
2103
|
}
|
|
@@ -2768,7 +2768,7 @@ const xr = (e) => {
|
|
|
2768
2768
|
}
|
|
2769
2769
|
let b = new XMLHttpRequest();
|
|
2770
2770
|
b.open(r.method.toUpperCase(), r.url, !0), b.timeout = r.timeout;
|
|
2771
|
-
function
|
|
2771
|
+
function A() {
|
|
2772
2772
|
if (!b)
|
|
2773
2773
|
return;
|
|
2774
2774
|
const N = xe.from(
|
|
@@ -2787,13 +2787,13 @@ const xr = (e) => {
|
|
|
2787
2787
|
a(T), w();
|
|
2788
2788
|
}, C), b = null;
|
|
2789
2789
|
}
|
|
2790
|
-
"onloadend" in b ? b.onloadend =
|
|
2791
|
-
!b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
2790
|
+
"onloadend" in b ? b.onloadend = A : b.onreadystatechange = function() {
|
|
2791
|
+
!b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(A);
|
|
2792
2792
|
}, b.onabort = function() {
|
|
2793
2793
|
b && (a(new te("Request aborted", te.ECONNABORTED, e, b)), b = null);
|
|
2794
2794
|
}, b.onerror = function(v) {
|
|
2795
|
-
const C = v && v.message ? v.message : "Network Error",
|
|
2796
|
-
|
|
2795
|
+
const C = v && v.message ? v.message : "Network Error", x = new te(C, te.ERR_NETWORK, e, b);
|
|
2796
|
+
x.event = v || null, a(x), b = null;
|
|
2797
2797
|
}, b.ontimeout = function() {
|
|
2798
2798
|
let v = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
2799
2799
|
const C = r.transitional || Ar;
|
|
@@ -2808,9 +2808,9 @@ const xr = (e) => {
|
|
|
2808
2808
|
}), E.isUndefined(r.withCredentials) || (b.withCredentials = !!r.withCredentials), l && l !== "json" && (b.responseType = r.responseType), d && ([m, f] = An(d, !0), b.addEventListener("progress", m)), c && b.upload && ([h, p] = An(c), b.upload.addEventListener("progress", h), b.upload.addEventListener("loadend", p)), (r.cancelToken || r.signal) && (u = (N) => {
|
|
2809
2809
|
b && (a(!N || N.type ? new vt(null, e, b) : N), b.abort(), b = null);
|
|
2810
2810
|
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
2811
|
-
const
|
|
2812
|
-
if (
|
|
2813
|
-
a(new te("Unsupported protocol " +
|
|
2811
|
+
const y = Al(r.url);
|
|
2812
|
+
if (y && we.protocols.indexOf(y) === -1) {
|
|
2813
|
+
a(new te("Unsupported protocol " + y + ":", te.ERR_BAD_REQUEST, e));
|
|
2814
2814
|
return;
|
|
2815
2815
|
}
|
|
2816
2816
|
b.send(o || null);
|
|
@@ -2929,9 +2929,9 @@ const xr = (e) => {
|
|
|
2929
2929
|
};
|
|
2930
2930
|
r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
2931
2931
|
!h[f] && (h[f] = (w, b) => {
|
|
2932
|
-
let
|
|
2933
|
-
if (
|
|
2934
|
-
return
|
|
2932
|
+
let A = w && w[f];
|
|
2933
|
+
if (A)
|
|
2934
|
+
return A.call(w);
|
|
2935
2935
|
throw new te(`Response type '${f}' is not supported`, te.ERR_NOT_SUPPORT, b);
|
|
2936
2936
|
});
|
|
2937
2937
|
});
|
|
@@ -2957,36 +2957,36 @@ const xr = (e) => {
|
|
|
2957
2957
|
let {
|
|
2958
2958
|
url: w,
|
|
2959
2959
|
method: b,
|
|
2960
|
-
data:
|
|
2961
|
-
signal:
|
|
2960
|
+
data: A,
|
|
2961
|
+
signal: y,
|
|
2962
2962
|
cancelToken: N,
|
|
2963
2963
|
timeout: v,
|
|
2964
2964
|
onDownloadProgress: C,
|
|
2965
|
-
onUploadProgress:
|
|
2965
|
+
onUploadProgress: x,
|
|
2966
2966
|
responseType: T,
|
|
2967
2967
|
headers: P,
|
|
2968
2968
|
withCredentials: $ = "same-origin",
|
|
2969
2969
|
fetchOptions: O
|
|
2970
2970
|
} = xr(f), R = t || fetch;
|
|
2971
2971
|
T = T ? (T + "").toLowerCase() : "text";
|
|
2972
|
-
let F = kl([
|
|
2972
|
+
let F = kl([y, N && N.toAbortSignal()], v), z = null;
|
|
2973
2973
|
const B = F && F.unsubscribe && (() => {
|
|
2974
2974
|
F.unsubscribe();
|
|
2975
2975
|
});
|
|
2976
2976
|
let L;
|
|
2977
2977
|
try {
|
|
2978
|
-
if (
|
|
2978
|
+
if (x && d && b !== "get" && b !== "head" && (L = await p(P, A)) !== 0) {
|
|
2979
2979
|
let k = new n(w, {
|
|
2980
2980
|
method: "POST",
|
|
2981
|
-
body:
|
|
2981
|
+
body: A,
|
|
2982
2982
|
duplex: "half"
|
|
2983
2983
|
}), q;
|
|
2984
|
-
if (E.isFormData(
|
|
2984
|
+
if (E.isFormData(A) && (q = k.headers.get("content-type")) && P.setContentType(q), k.body) {
|
|
2985
2985
|
const [H, G] = oa(
|
|
2986
2986
|
L,
|
|
2987
|
-
An(ia(
|
|
2987
|
+
An(ia(x))
|
|
2988
2988
|
);
|
|
2989
|
-
|
|
2989
|
+
A = ca(k.body, da, H, G);
|
|
2990
2990
|
}
|
|
2991
2991
|
}
|
|
2992
2992
|
E.isString($) || ($ = $ ? "include" : "omit");
|
|
@@ -2995,7 +2995,7 @@ const xr = (e) => {
|
|
|
2995
2995
|
signal: F,
|
|
2996
2996
|
method: b.toUpperCase(),
|
|
2997
2997
|
headers: P.normalize().toJSON(),
|
|
2998
|
-
body:
|
|
2998
|
+
body: A,
|
|
2999
2999
|
duplex: "half",
|
|
3000
3000
|
credentials: U ? $ : void 0
|
|
3001
3001
|
};
|
|
@@ -3019,10 +3019,10 @@ const xr = (e) => {
|
|
|
3019
3019
|
);
|
|
3020
3020
|
}
|
|
3021
3021
|
T = T || "text";
|
|
3022
|
-
let
|
|
3022
|
+
let S = await h[E.findKey(h, T) || "text"](M, f);
|
|
3023
3023
|
return !W && B && B(), await new Promise((k, q) => {
|
|
3024
3024
|
vr(k, q, {
|
|
3025
|
-
data:
|
|
3025
|
+
data: S,
|
|
3026
3026
|
headers: xe.from(M.headers),
|
|
3027
3027
|
status: M.status,
|
|
3028
3028
|
statusText: M.statusText,
|
|
@@ -3736,13 +3736,13 @@ async function y1(e) {
|
|
|
3736
3736
|
v
|
|
3737
3737
|
);
|
|
3738
3738
|
f = await tn(async () => {
|
|
3739
|
-
const
|
|
3739
|
+
const x = await e.axiosApi.get("/config/menu", {
|
|
3740
3740
|
params: { path: N }
|
|
3741
|
-
}), T = JSON.stringify(
|
|
3742
|
-
return { status:
|
|
3741
|
+
}), T = JSON.stringify(x.data ?? "").length;
|
|
3742
|
+
return { status: x.status, size: T };
|
|
3743
3743
|
}, a), w = await tn(async () => {
|
|
3744
|
-
const
|
|
3745
|
-
return { status:
|
|
3744
|
+
const x = await o.get(C), T = JSON.stringify(x.data ?? "").length;
|
|
3745
|
+
return { status: x.status, size: T };
|
|
3746
3746
|
}, a);
|
|
3747
3747
|
} else if (p.bannerTemplate) {
|
|
3748
3748
|
const N = en(
|
|
@@ -3756,26 +3756,26 @@ async function y1(e) {
|
|
|
3756
3756
|
v
|
|
3757
3757
|
);
|
|
3758
3758
|
f = await tn(async () => {
|
|
3759
|
-
const
|
|
3759
|
+
const x = await e.axiosApi.get("/config/banners", {
|
|
3760
3760
|
params: {
|
|
3761
3761
|
path: N,
|
|
3762
3762
|
template: p.bannerTemplate
|
|
3763
3763
|
}
|
|
3764
|
-
}), T = JSON.stringify(
|
|
3765
|
-
return { status:
|
|
3764
|
+
}), T = JSON.stringify(x.data ?? "").length;
|
|
3765
|
+
return { status: x.status, size: T };
|
|
3766
3766
|
}, a), w = await tn(async () => {
|
|
3767
|
-
const
|
|
3768
|
-
return { status:
|
|
3767
|
+
const x = await o.get(C), T = JSON.stringify(x.data ?? "").length;
|
|
3768
|
+
return { status: x.status, size: T };
|
|
3769
3769
|
}, a);
|
|
3770
3770
|
} else
|
|
3771
3771
|
continue;
|
|
3772
|
-
const b = f.avg - w.avg,
|
|
3772
|
+
const b = f.avg - w.avg, A = b > 0 ? "bucket" : "api", y = Math.abs(b) / Math.max(f.avg, w.avg, 1) * 100;
|
|
3773
3773
|
l.push({
|
|
3774
3774
|
name: p.name,
|
|
3775
3775
|
api: f,
|
|
3776
3776
|
bucket: w,
|
|
3777
|
-
winner:
|
|
3778
|
-
advantagePct:
|
|
3777
|
+
winner: A,
|
|
3778
|
+
advantagePct: y,
|
|
3779
3779
|
deltaMs: b
|
|
3780
3780
|
});
|
|
3781
3781
|
}
|
|
@@ -3794,13 +3794,13 @@ async function y1(e) {
|
|
|
3794
3794
|
params: { path: b }
|
|
3795
3795
|
})).data;
|
|
3796
3796
|
else {
|
|
3797
|
-
const
|
|
3797
|
+
const A = ms(b), y = Je(
|
|
3798
3798
|
c,
|
|
3799
3799
|
e.servicePrefix,
|
|
3800
3800
|
"menu",
|
|
3801
|
-
|
|
3801
|
+
A
|
|
3802
3802
|
);
|
|
3803
|
-
(await o.get(
|
|
3803
|
+
(await o.get(y)).data;
|
|
3804
3804
|
}
|
|
3805
3805
|
}),
|
|
3806
3806
|
(async () => {
|
|
@@ -4326,8 +4326,8 @@ const wc = (e) => Array.isArray(e) ? e.length > 0 : e && typeof e == "object" ?
|
|
|
4326
4326
|
}, h = e.split("/").find((b) => ["liveblogs", "liveblog"].includes(b)), m = r && r.length > 0 ? r : h == "liveblogs" || h == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], p = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema, f = o ? o + p : p;
|
|
4327
4327
|
i = (await Promise.all(
|
|
4328
4328
|
m.map(async (b) => {
|
|
4329
|
-
const
|
|
4330
|
-
return await Es(
|
|
4329
|
+
const A = b === "/news-breadcrumb" ? { ...u, prefixtag: f } : b === "/news" && t.schemasNewsParams ? { ...u, ...t.schemasNewsParams } : u;
|
|
4330
|
+
return await Es(A, b, a);
|
|
4331
4331
|
})
|
|
4332
4332
|
)).map((b) => b?.data?.data ?? []);
|
|
4333
4333
|
} catch (c) {
|
|
@@ -5138,10 +5138,10 @@ class Ke {
|
|
|
5138
5138
|
exclude: a.getAutorInfo,
|
|
5139
5139
|
imagesizes: n.getAutorInfo
|
|
5140
5140
|
}))?.data.data ?? []);
|
|
5141
|
-
const d = is(l), h = (ht(o)?.data ?? [])[0]?.list?.items?.map((
|
|
5142
|
-
h?.forEach((
|
|
5143
|
-
|
|
5144
|
-
|
|
5141
|
+
const d = is(l), h = (ht(o)?.data ?? [])[0]?.list?.items?.map((A) => is(A)), m = [];
|
|
5142
|
+
h?.forEach((A) => {
|
|
5143
|
+
A && A.length > 0 && A.forEach((y) => {
|
|
5144
|
+
y.forEach((N) => {
|
|
5145
5145
|
const v = this.getNews({
|
|
5146
5146
|
path: N.replaceAll("|", "/"),
|
|
5147
5147
|
imagesizes: n.getNewsItemsRelated,
|
|
@@ -5156,7 +5156,7 @@ class Ke {
|
|
|
5156
5156
|
const f = (await Promise.allSettled([
|
|
5157
5157
|
...m
|
|
5158
5158
|
])).map(
|
|
5159
|
-
(
|
|
5159
|
+
(A) => ht(A)?.data
|
|
5160
5160
|
), w = await Fo(
|
|
5161
5161
|
d,
|
|
5162
5162
|
this.getNews,
|
|
@@ -5165,8 +5165,8 @@ class Ke {
|
|
|
5165
5165
|
let b = [];
|
|
5166
5166
|
try {
|
|
5167
5167
|
b = (await this.getNewsSchemasImages({ path: t }))?.data?.data ?? [];
|
|
5168
|
-
} catch (
|
|
5169
|
-
console.warn("getNewsSchemasImages failed:",
|
|
5168
|
+
} catch (A) {
|
|
5169
|
+
console.warn("getNewsSchemasImages failed:", A), b = [];
|
|
5170
5170
|
}
|
|
5171
5171
|
return {
|
|
5172
5172
|
news: i ?? [],
|
|
@@ -5458,12 +5458,12 @@ const Yn = Symbol("bucket-retry-exhausted"), Pc = async (e, t) => {
|
|
|
5458
5458
|
let f = i?.sectionName, w = i?.hasNextPage;
|
|
5459
5459
|
if (f === void 0 || w === void 0) {
|
|
5460
5460
|
Ut("seccion");
|
|
5461
|
-
const
|
|
5461
|
+
const y = new Ke({ config: n, axiosApi: o });
|
|
5462
5462
|
try {
|
|
5463
5463
|
let N, v;
|
|
5464
5464
|
if (nr("seccion")) {
|
|
5465
5465
|
const C = await ei({
|
|
5466
|
-
fetchFn: (
|
|
5466
|
+
fetchFn: (x) => y.getNewsListSection(x),
|
|
5467
5467
|
baseParams: {
|
|
5468
5468
|
section: r,
|
|
5469
5469
|
newstype: n.newsType,
|
|
@@ -5474,7 +5474,7 @@ const Yn = Symbol("bucket-retry-exhausted"), Pc = async (e, t) => {
|
|
|
5474
5474
|
});
|
|
5475
5475
|
N = C.data, v = C.hasNextPage;
|
|
5476
5476
|
} else {
|
|
5477
|
-
const C = await
|
|
5477
|
+
const C = await y.getNewsListSection({
|
|
5478
5478
|
section: r,
|
|
5479
5479
|
size: m,
|
|
5480
5480
|
newstype: n.newsType,
|
|
@@ -5491,11 +5491,11 @@ const Yn = Symbol("bucket-retry-exhausted"), Pc = async (e, t) => {
|
|
|
5491
5491
|
}
|
|
5492
5492
|
}
|
|
5493
5493
|
w && u.push({ rel: "next", url: Et(n, d, h) }), h > 1 && u.push({ rel: "prev", url: Tt(n, d, h) });
|
|
5494
|
-
const b = p ? `Latest News from ${f} | ${n.name}` : `Últimas Noticias de ${f} | ${n.name}`,
|
|
5494
|
+
const b = p ? `Latest News from ${f} | ${n.name}` : `Últimas Noticias de ${f} | ${n.name}`, A = p ? `All the latest news from ${f} on ${n.name}` : `Todas las últimas noticias de ${f} en ${n.name}`;
|
|
5495
5495
|
return {
|
|
5496
5496
|
...t,
|
|
5497
5497
|
title: b,
|
|
5498
|
-
description:
|
|
5498
|
+
description: A,
|
|
5499
5499
|
alternates: {
|
|
5500
5500
|
...t.alternates,
|
|
5501
5501
|
canonical: Se(n.siteUrl + a)
|
|
@@ -5511,7 +5511,7 @@ const Yn = Symbol("bucket-retry-exhausted"), Pc = async (e, t) => {
|
|
|
5511
5511
|
openGraph: {
|
|
5512
5512
|
...t.openGraph,
|
|
5513
5513
|
title: b,
|
|
5514
|
-
description:
|
|
5514
|
+
description: A,
|
|
5515
5515
|
type: "website",
|
|
5516
5516
|
url: Se(`${n.siteUrl}${a}`),
|
|
5517
5517
|
locale: t.openGraph.locale
|
|
@@ -5520,7 +5520,7 @@ const Yn = Symbol("bucket-retry-exhausted"), Pc = async (e, t) => {
|
|
|
5520
5520
|
...t.twitter,
|
|
5521
5521
|
card: "summary_large_image",
|
|
5522
5522
|
title: b,
|
|
5523
|
-
description:
|
|
5523
|
+
description: A,
|
|
5524
5524
|
site: t.twitter.site,
|
|
5525
5525
|
domain: new URL(n.siteUrl).hostname,
|
|
5526
5526
|
url: Se(`${n.siteUrl}${a}`)
|
|
@@ -5534,7 +5534,7 @@ const Yn = Symbol("bucket-retry-exhausted"), Pc = async (e, t) => {
|
|
|
5534
5534
|
Ut("tema");
|
|
5535
5535
|
const N = new Ke({ config: n, axiosApi: o }), v = /([t][0-9]{4})\w+/.exec(r || ""), C = v && v?.length > 0 ? v[0].replace("t", "") : "";
|
|
5536
5536
|
try {
|
|
5537
|
-
const
|
|
5537
|
+
const x = await N.getNewsListTags({
|
|
5538
5538
|
tagid: C,
|
|
5539
5539
|
size: h,
|
|
5540
5540
|
tagtype: Number(m),
|
|
@@ -5542,12 +5542,12 @@ const Yn = Symbol("bucket-retry-exhausted"), Pc = async (e, t) => {
|
|
|
5542
5542
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
5543
5543
|
page: u
|
|
5544
5544
|
});
|
|
5545
|
-
if (!
|
|
5546
|
-
const T =
|
|
5545
|
+
if (!x) return pe(t, n);
|
|
5546
|
+
const T = x.data.entity;
|
|
5547
5547
|
if (!T) return pe(t, n);
|
|
5548
|
-
w = T.name, b = !(
|
|
5549
|
-
} catch (
|
|
5550
|
-
return console.error(
|
|
5548
|
+
w = T.name, b = !(x.data.data?.length < h);
|
|
5549
|
+
} catch (x) {
|
|
5550
|
+
return console.error(x), pe(t, n, 500);
|
|
5551
5551
|
}
|
|
5552
5552
|
}
|
|
5553
5553
|
b && d.push({
|
|
@@ -5557,11 +5557,11 @@ const Yn = Symbol("bucket-retry-exhausted"), Pc = async (e, t) => {
|
|
|
5557
5557
|
rel: "prev",
|
|
5558
5558
|
url: Tt(n, c, u)
|
|
5559
5559
|
});
|
|
5560
|
-
const
|
|
5560
|
+
const A = f ? `Latest news about ${w} | ${n.name}` : `Últimas noticias de ${w} | ${n.name}`, y = f ? `The latest news about ${w} on ${n.name}` : `Las últimas noticias sobre ${w} en ${n.name}`;
|
|
5561
5561
|
return {
|
|
5562
5562
|
...t,
|
|
5563
|
-
title:
|
|
5564
|
-
description:
|
|
5563
|
+
title: A,
|
|
5564
|
+
description: y,
|
|
5565
5565
|
alternates: {
|
|
5566
5566
|
...t.alternates,
|
|
5567
5567
|
canonical: Se(n.siteUrl + a)
|
|
@@ -5576,8 +5576,8 @@ const Yn = Symbol("bucket-retry-exhausted"), Pc = async (e, t) => {
|
|
|
5576
5576
|
},
|
|
5577
5577
|
openGraph: {
|
|
5578
5578
|
...t.openGraph,
|
|
5579
|
-
title:
|
|
5580
|
-
description:
|
|
5579
|
+
title: A,
|
|
5580
|
+
description: y,
|
|
5581
5581
|
type: "website",
|
|
5582
5582
|
url: Se(`${n.siteUrl}${a}`),
|
|
5583
5583
|
locale: t.openGraph.locale
|
|
@@ -5585,8 +5585,8 @@ const Yn = Symbol("bucket-retry-exhausted"), Pc = async (e, t) => {
|
|
|
5585
5585
|
twitter: {
|
|
5586
5586
|
...t.twitter,
|
|
5587
5587
|
card: "summary_large_image",
|
|
5588
|
-
title:
|
|
5589
|
-
description:
|
|
5588
|
+
title: A,
|
|
5589
|
+
description: y,
|
|
5590
5590
|
site: t.twitter.site,
|
|
5591
5591
|
domain: new URL(n.siteUrl).hostname,
|
|
5592
5592
|
url: Se(`${n.siteUrl}${a}`)
|
|
@@ -5789,24 +5789,24 @@ const Yn = Symbol("bucket-retry-exhausted"), Pc = async (e, t) => {
|
|
|
5789
5789
|
let p = i?.fullname, f = i?.hasNextPage;
|
|
5790
5790
|
if (p === void 0 || f === void 0) {
|
|
5791
5791
|
Ut("autor");
|
|
5792
|
-
const
|
|
5792
|
+
const A = new Ke({ config: n, axiosApi: o });
|
|
5793
5793
|
try {
|
|
5794
|
-
const
|
|
5794
|
+
const y = await A.getAutorInfo({
|
|
5795
5795
|
user: r,
|
|
5796
5796
|
exclude: "groups",
|
|
5797
|
-
imagesizes:
|
|
5798
|
-
}), N = await
|
|
5797
|
+
imagesizes: A.contract.author.avatar
|
|
5798
|
+
}), N = await A.getNewsListAutor({
|
|
5799
5799
|
size: m,
|
|
5800
5800
|
user: r,
|
|
5801
5801
|
page: u,
|
|
5802
5802
|
newstype: n.newsType,
|
|
5803
5803
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
5804
|
-
imagesizes:
|
|
5804
|
+
imagesizes: A.contract.note.listStandard
|
|
5805
5805
|
});
|
|
5806
5806
|
if (!N) return pe(t, n);
|
|
5807
|
-
f = !(N.data.data.length < m), p =
|
|
5808
|
-
} catch (
|
|
5809
|
-
return console.error(
|
|
5807
|
+
f = !(N.data.data.length < m), p = y?.data.data[0]?.info.fullname;
|
|
5808
|
+
} catch (y) {
|
|
5809
|
+
return console.error(y), pe(t, n, 500);
|
|
5810
5810
|
}
|
|
5811
5811
|
}
|
|
5812
5812
|
f && d.push({
|
|
@@ -5837,7 +5837,7 @@ const Yn = Symbol("bucket-retry-exhausted"), Pc = async (e, t) => {
|
|
|
5837
5837
|
listAutor: t,
|
|
5838
5838
|
config: n
|
|
5839
5839
|
}) => {
|
|
5840
|
-
const a = t?.[0] ?? null, { DATE_TIMEZONE: r = "America/Mexico_City", PUBLIC_ASSETS_URL: o, PUBLIC_LNG: i } = I(), l = i === "en", c = r, d = a?.info?.date?.modified ? lt(a.info.date.modified, c) : void 0, u = e.addtional?.USER_JOBSTART ? lt(e.addtional.USER_JOBSTART, c) : void 0, h = o && o !== "false" ? o : "", m = e.addtional, p = m?.USER_USERFB || m?.USER_PAGE_FACEBOOK || m?.USER_FACEBOOK_FAN_PAGE, f = m?.USER_USERTWT || m?.USER_PAGE_TWITTER, w = m?.USER_USERIG || m?.USER_PAGE_INSTAGRAM, b = m?.USER_USERLIN || m?.USER_PAGE_LINKEDIN,
|
|
5840
|
+
const a = t?.[0] ?? null, { DATE_TIMEZONE: r = "America/Mexico_City", PUBLIC_ASSETS_URL: o, PUBLIC_LNG: i } = I(), l = i === "en", c = r, d = a?.info?.date?.modified ? lt(a.info.date.modified, c) : void 0, u = e.addtional?.USER_JOBSTART ? lt(e.addtional.USER_JOBSTART, c) : void 0, h = o && o !== "false" ? o : "", m = e.addtional, p = m?.USER_USERFB || m?.USER_PAGE_FACEBOOK || m?.USER_FACEBOOK_FAN_PAGE, f = m?.USER_USERTWT || m?.USER_PAGE_TWITTER, w = m?.USER_USERIG || m?.USER_PAGE_INSTAGRAM, b = m?.USER_USERLIN || m?.USER_PAGE_LINKEDIN, A = m?.USER_PAGE_TIKTOK, y = m?.USER_PAGE_YOUTUBE, N = m?.USER_PAGE_PINTEREST, v = l ? m?.USER_POSITION_EN || "" : m?.USER_JOBTITLE || m?.USER_POSITION || "", C = l ? m?.USER_DESCRIPCION_EN || m?.USER_MIBIO_EN || "" : m?.USER_DESCRIPCION || m?.USER_MIBIO || "", x = e?.addtional?.USER_SHOWEMAIL === !0 || m?.USER_MOSTRAR_MAIL?.toUpperCase() === "TRUE", T = he(), P = {
|
|
5841
5841
|
"@context": "https://schema.org",
|
|
5842
5842
|
"@type": "ProfilePage",
|
|
5843
5843
|
mainEntity: {
|
|
@@ -5852,15 +5852,15 @@ const Yn = Symbol("bucket-retry-exhausted"), Pc = async (e, t) => {
|
|
|
5852
5852
|
w,
|
|
5853
5853
|
b,
|
|
5854
5854
|
f,
|
|
5855
|
-
y,
|
|
5856
5855
|
A,
|
|
5856
|
+
y,
|
|
5857
5857
|
N
|
|
5858
5858
|
].filter(Boolean),
|
|
5859
5859
|
jobTitle: v,
|
|
5860
5860
|
url: n.siteUrl + T + (n.paths.autor !== "" ? `/${n.paths.autor}/` : "/") + e.info.name
|
|
5861
5861
|
}
|
|
5862
5862
|
};
|
|
5863
|
-
return u && (P.dateCreated = u), d && (P.dateModified = d),
|
|
5863
|
+
return u && (P.dateCreated = u), d && (P.dateModified = d), x && (P.mainEntity.email = e.info.email), /* @__PURE__ */ s("script", { type: "application/ld+json", children: JSON.stringify($e(P)) });
|
|
5864
5864
|
}, _c = `(function(){"use strict";const Me="__html-audit-manifest";function je(e){const t=e.getElementById(Me);if(!t||!t.textContent)return null;try{const n=JSON.parse(t.textContent);return!n||typeof n!="object"||!n.expects?null:n}catch{return null}}function g(e,t,n,o,r){return{id:e,label:t,status:n,detail:o,expected:r}}function w(e,t,n,o,r){return o==null?g(e,t,n?"ok":"info",r,void 0):o?n?g(e,t,"ok",r,!0):g(e,t,"missing",r||"Esperado por config pero AUSENTE",!0):n?g(e,t,"warn",r||"Presente pero no estaba configurado",!1):g(e,t,"info",r||"No configurado",!1)}const ce={ok:0,info:1,warn:2,missing:3};function J(e,t){if(!t||!t.length)return e;e.issues=t;let n=e.status;for(const o of t)ce[o.status]>ce[n]&&(n=o.status);return e.status=n,e}function N(e,t){return!!e.querySelector(t)}function q(e,t){return e.querySelectorAll(t).length}function F(e){const t=[];return e.querySelectorAll('script[type="application/ld+json"]').forEach(o=>{if(o.textContent)try{const r=JSON.parse(o.textContent);Array.isArray(r)?t.push(...r):t.push(r)}catch{}}),t}function U(e,t){return F(e).some(n=>{const o=n?.["@type"];return typeof o=="string"?o===t:Array.isArray(o)?o.includes(t):!1})}function pe(e,t){const n=[],o=r=>{if(!r||typeof r!="object")return;if(Array.isArray(r)){r.forEach(o);return}const s=r,i=s["@type"];(i===t||Array.isArray(i)&&i.includes(t))&&n.push(s),Array.isArray(s["@graph"])&&s["@graph"].forEach(o)};return F(e).forEach(o),n}const qe=600,Ue=6e3;function de(e,t){return e.length>t?e.slice(0,t)+\`
|
|
5865
5865
|
… (recortado)\`:e}function E(e,t=qe){return e?de(e.outerHTML||"",t):""}function h(e,t){return t&&t.length&&(e.evidence=t),e}function O(e,t){return Array.from(e.querySelectorAll(t)).map(n=>({label:n.getAttribute("property")||n.getAttribute("name")||n.getAttribute("rel")||n.getAttribute("type")||n.tagName.toLowerCase(),snippet:E(n)}))}function K(e,t){if(!e||typeof e!="object")return;if(Array.isArray(e)){e.forEach(r=>K(r,t));return}const n=e,o=n["@type"];typeof o=="string"?t.add(o):Array.isArray(o)&&o.forEach(r=>typeof r=="string"&&t.add(r)),Array.isArray(n["@graph"])&&K(n["@graph"],t)}function ue(e){const t=e.querySelectorAll('script[type="application/ld+json"]'),n=[];return t.forEach((o,r)=>{const s=o.textContent||"",i=new Set;let l=s,a=!0;try{const u=JSON.parse(s);K(u,i),l=JSON.stringify(u,null,2)}catch{a=!1}const c=o.id,p=[...i],d=p.length?p.join(", "):c||\`bloque #\${r+1}\`;n.push({types:p,label:a?d:\`\${d} (JSON inválido)\`,snippet:de(l,Ue)})}),n}function _(e,t){return ue(e).filter(n=>n.types.includes(t)).map(n=>({label:n.label,snippet:n.snippet}))}function _e(e){return ue(e).map(t=>({label:t.label,snippet:t.snippet}))}const Ie=(e,t)=>{const n=t?.expects,o=[],r=e.querySelector("meta[charset]");o.push(h(w("htmlAttrs.charset","<meta charset>",!!r,n?n.charset:null,"Falta <meta charset>"),r?[{label:"<meta charset>",snippet:E(r)}]:[]));const s=e.querySelector('meta[name="viewport"]');o.push(h(w("htmlAttrs.viewport","<meta name=viewport>",!!s,n?n.viewport:null,"Falta <meta name=viewport>"),s?[{label:"<meta name=viewport>",snippet:E(s)}]:[]));const i=e.documentElement.getAttribute("lang");o.push(g("htmlAttrs.lang","html[lang]",i?"ok":"info",i?\`lang="\${i}"\`:"No emitido por el paquete (lo agrega el sitio)"));const l=e.documentElement.getAttribute("dir");o.push(g("htmlAttrs.dir","html[dir]",l?"ok":"info",l?\`dir="\${l}"\`:"No emitido por el paquete"));const a=new Map;e.querySelectorAll("[id]").forEach(p=>{const d=p.id;d&&a.set(d,(a.get(d)||0)+1)});const c=[...a.entries()].filter(([,p])=>p>1).map(([p])=>p);return o.push(g("htmlAttrs.duplicateIds","IDs duplicados",c.length?"warn":"ok",c.length?\`Duplicados: \${c.slice(0,10).join(", ")}\`:"Sin IDs duplicados")),{key:"htmlAttrs",title:"HTML attrs",findings:o}},Fe=(e,t)=>{const n=t?.expects,o=[],r=e.querySelector('script[type="speculationrules"]');o.push(h(w("structure.speculationRules","Speculation rules",!!r,n?n.speculationRules:null,"Speculation rules desactivadas"),r?[{label:"speculationrules",snippet:E(r,2e3)}]:[])),t?.speculationType&&o.push(g("structure.speculationType","Speculation type","info",\`Tipo esperado: \${t.speculationType}\`));const s=q(e,"main");o.push(g("structure.main","<main>",s===1?"ok":s===0?"info":"warn",s===1?"1 <main>":s===0?"Sin <main> (lo arma el sitio)":\`\${s} <main> (debería ser 1)\`)),o.push(g("structure.header","<header>",N(e,"header")?"ok":"info",N(e,"header")?"Presente":"Sin <header>")),o.push(g("structure.footer","<footer>",N(e,"footer")?"ok":"info",N(e,"footer")?"Presente":"Sin <footer>"));const i=q(e,"h1");return o.push(g("structure.h1","<h1>",i===1?"ok":"warn",i===0?"Sin <h1>":i===1?"1 <h1>":\`\${i} <h1> (revisar jerarquía)\`)),{key:"structure",title:"Estructura",findings:o}},Pe=["og:title","og:description","og:type","og:url","og:site_name","og:locale","og:image"],He=["twitter:card","twitter:title","twitter:description","twitter:image","twitter:site"];function M(e,t){return{status:e,message:t}}function X(e,t=60){const n=e.trim();return n.length>t?n.slice(0,t)+"…":n}function P(e,t={}){const n=(e||"").trim();if(!n)return[];const o=[],r=t.absolute!==!1,s=t.https!==!1,i=/^[a-z][a-z0-9+.-]*:/i.test(n),l=n.startsWith("//");r&&!i&&!l&&o.push(M("warn",\`URL relativa ("\${X(n)}"); se espera absoluta\`));let a=null;try{a=new URL(n,t.base)}catch{return o.push(M("warn",\`URL malformada: "\${X(n)}"\`)),o}return(a.protocol==="http:"||a.protocol==="https:")&&(s&&a.protocol==="http:"&&o.push(M("warn","Usa http (inseguro); se espera https")),a.pathname.includes("//")&&o.push(M("warn",\`Doble slash en el path: "\${X(a.pathname)}"\`)),t.sameHost&&a.host!==t.sameHost&&o.push(M("warn",\`Host distinto: "\${a.host}" (se espera "\${t.sameHost}")\`))),o}function fe(e,t){const n=(e||"").trim();if(!n)return null;try{return new URL(n,t).href}catch{return null}}const Be={NewsArticle:["@context","headline","datePublished","image","author","publisher"]};function De(e){return e==null?!0:typeof e=="string"?e.trim()==="":Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}function We(e,t){return t.filter(n=>De(e[n])).map(n=>M("warn",\`Falta campo requerido: \${n}\`))}function Ge(e){const t=e.itemListElement;return Array.isArray(t)?t.length:t?1:0}function z(e){return e===void 0||e==="meta"?null:e}function L(e,t,n,o,r,s,i){const l=e.querySelector(o),a=w(t,n,!!l,r,l?he(l):s);return l&&(h(a,[{label:n,snippet:E(l)}]),i&&J(a,i(l))),a}function he(e){const n=(e.getAttribute("content")||e.getAttribute("href")||e.textContent||"").trim();return n.length>80?n.slice(0,80)+"…":n||"presente"}const Ve=(e,t)=>{const n=t?.expects.metadata,o=[],r=e.location?.href,s=e.location?.host,i=e.querySelector('link[rel="canonical"]')?.getAttribute("href")||"",l=e.querySelector("title"),a=!!l&&!!l.textContent?.trim();o.push(h(w("metadata.title","<title>",a,z(n?.title),a?he(l):"Falta <title> o está vacío"),l?[{label:"<title>",snippet:E(l)}]:[])),o.push(L(e,"metadata.description","meta description",'meta[name="description"]',z(n?.description),"Falta <meta name=description>"));const c=e.querySelectorAll('meta[name="keywords"], meta[name="news_keywords"]');o.push(h(g("metadata.keywords","keywords / news_keywords",c.length?"ok":"info",c.length?\`\${c.length} tag(s)\`:"Sin keywords (opcional)"),O(e,'meta[name="keywords"], meta[name="news_keywords"]'))),o.push(L(e,"metadata.robots","meta robots",'meta[name="robots"]',z(n?.robots),"Sin meta robots (esperado solo en news/video)")),o.push(L(e,"metadata.canonical","link canonical",'link[rel="canonical"]',z(n?.canonical),"Falta <link rel=canonical>",m=>P(m.getAttribute("href"),{base:r,https:!0,sameHost:s})));const p=t?.expects.hreflang,d='link[rel="alternate"][hreflang]',u=e.querySelectorAll(d),x=Array.from(u).map(m=>m.getAttribute("hreflang")||""),C=p?.expected?p.langs.filter(m=>!x.includes(m)):[];o.push(h(w("metadata.hreflang","link alternate hreflang",u.length>0&&C.length===0,p?p.expected:null,p?.expected?C.length?\`Faltan hreflang: \${C.join(", ")}\`:\`\${u.length} hreflang (\${x.join(", ")})\`:u.length?\`\${u.length} hreflang (\${x.join(", ")})\`:"Sin hreflang (no esperado en esta ruta)"),O(e,d))),o.push(L(e,"metadata.og.title","og:title",'meta[property="og:title"]',z(n?.openGraph),"Falta og:title")),o.push(L(e,"metadata.og.image","og:image",'meta[property="og:image"]',z(n?.openGraph),"Falta og:image (sin imagen de preview al compartir)",m=>P(m.getAttribute("content"),{base:r,https:!0})));for(const m of Pe){if(m==="og:title"||m==="og:image")continue;const T="metadata."+m.replace(":","."),ae=m==="og:url"?le=>Je(le.getAttribute("content"),i,r):void 0;o.push(L(e,T,m,\`meta[property="\${m}"]\`,null,\`Sin \${m} (opcional)\`,ae))}const $=q(e,'meta[property^="og:"]');o.push(h(g("metadata.og.count","Tags og:* totales",$>0?"ok":"info",\`\${$} tag(s) og:*\`),O(e,'meta[property^="og:"]'))),o.push(L(e,"metadata.twitter.card","twitter:card",'meta[name="twitter:card"]',z(n?.twitter),"Falta twitter:card")),o.push(L(e,"metadata.twitter.image","twitter:image",'meta[name="twitter:image"]',z(n?.twitter),"Falta twitter:image",m=>P(m.getAttribute("content"),{base:r,https:!0})));for(const m of He){if(m==="twitter:card"||m==="twitter:image")continue;const T="metadata."+m.replace(":",".");o.push(L(e,T,m,\`meta[name="\${m}"]\`,null,\`Sin \${m} (opcional)\`))}const R=q(e,'meta[name^="twitter:"]');o.push(h(g("metadata.twitter.count","Tags twitter:* totales",R>0?"ok":"info",\`\${R} tag(s) twitter:*\`),O(e,'meta[name^="twitter:"]')));const j=q(e,'meta[property^="article:"]');o.push(h(w("metadata.article","article:* (published/modified/section/author/tag)",j>0,z(n?.article),j>0?\`\${j} tag(s) article:*\`:"Sin article:* (esperado solo en news)"),O(e,'meta[property^="article:"]'))),o.push(L(e,"metadata.rss","link alternate RSS",'link[rel="alternate"][type="application/rss+xml"]',z(n?.rss),"Sin alternate RSS (esperado solo en news)")),o.push(L(e,"metadata.manifest","link manifest",'link[rel="manifest"]',null,"Sin <link rel=manifest> (opcional)"));const k='link[rel="icon"], link[rel="apple-touch-icon"], link[rel="shortcut icon"], link[rel="mask-icon"]',A=q(e,k);return o.push(h(g("metadata.icons","favicons / icons",A?"ok":"info",A?\`\${A} icono(s)\`:"Sin favicons declarados"),O(e,k))),{key:"metadata",title:"Metadata",findings:o}};function Je(e,t,n){const o=P(e,{base:n,https:!0}),r=fe(e,n),s=fe(t,n);return r&&s&&r!==s&&o.push(M("warn",\`og:url no coincide con canonical (\${s})\`)),o}const Ke=(e,t)=>{const n=t?.expects.schemas,o=[];o.push(h(w("schemas.NewsMediaOrganization","NewsMediaOrganization (OrgList)",N(e,"script#WebsiteOrgListSchema")||U(e,"NewsMediaOrganization"),n?n.NewsMediaOrganization:!0,"Falta NewsMediaOrganization (se emite siempre)"),_(e,"NewsMediaOrganization"))),o.push(h(w("schemas.WebSite","WebSite (WebsiteList)",N(e,"script#WebsiteListSchema")||U(e,"WebSite"),n?n.WebSite:null,"Falta WebSite"),_(e,"WebSite")));{const a=h(w("schemas.NewsArticle","NewsArticle",U(e,"NewsArticle"),n?n.NewsArticle:null,"NewsArticle esperado pero AUSENTE (puede ser API vacía)"),_(e,"NewsArticle"));if(a.status==="ok"){const c=pe(e,"NewsArticle");c.length&&J(a,We(c[0],Be.NewsArticle))}o.push(a)}o.push(h(w("schemas.Videos","VideoObject",U(e,"VideoObject"),n?n.Videos:null,"VideoObject esperado pero AUSENTE"),_(e,"VideoObject"))),o.push(h(w("schemas.Autor","ProfilePage (Autor)",U(e,"ProfilePage"),n?n.Autor:null,"ProfilePage esperado pero AUSENTE"),_(e,"ProfilePage")));{const a=h(w("schemas.ItemList","ItemList",N(e,"script#webSiteItemListSchema")||U(e,"ItemList"),n?n.ItemList:null,"ItemList esperado pero AUSENTE (PuedeVacío)"),_(e,"ItemList"));if(a.status==="ok"){const c=pe(e,"ItemList"),p=c.reduce((d,u)=>d+Ge(u),0);a.detail=\`\${c.length} ItemList; \${p} entr\${p===1?"y":"ies"}\`,c.length&&p===0&&J(a,[M("warn","ItemList sin itemListElement (lista vacía)")])}o.push(a)}o.push(h(w("schemas.SoftwareApplication","SoftwareApplication",N(e,'script[id^="SoftwareApplicationSchema-"]')||U(e,"SoftwareApplication"),n?n.SoftwareApplication:null,"SoftwareApplication esperado pero AUSENTE"),_(e,"SoftwareApplication")));const r=e.querySelectorAll('script[type="application/ld+json"]');let s=0;r.forEach(a=>{if(a.textContent)try{JSON.parse(a.textContent)}catch{s++}});const i=Xe(e),l=i?\`; @graph: \${i} nodo(s)\`:"";return o.push(h(g("schemas.parsed","JSON-LD parseables",s?"warn":"ok",\`\${r.length} bloque(s); \${s} inválido(s)\${l}. Tipos: \${Qe(e)}\`),_e(e))),{key:"schemas",title:"Schemas JSON-LD",findings:o}};function Xe(e){let t=0;const n=o=>{if(!o||typeof o!="object")return;if(Array.isArray(o)){o.forEach(n);return}const r=o;Array.isArray(r["@graph"])&&(t+=r["@graph"].length,r["@graph"].forEach(n))};return F(e).forEach(n),t}function Qe(e){const t=new Set;return F(e).forEach(n=>{const o=n?.["@type"];typeof o=="string"?t.add(o):Array.isArray(o)&&o.forEach(r=>typeof r=="string"&&t.add(r))}),t.size?[...t].join(", "):"—"}const Ye=(e,t)=>{const n=t?.expects,o=e.querySelector('link[rel="amphtml"]');return{key:"amp",title:"AMP",findings:[h(w("amp.amphtml","link rel=amphtml",!!o,n?n.amp:null,o?\`href=\${o.getAttribute("href")||""}\`:"No hay AMP"),o?[{label:"link rel=amphtml",snippet:E(o)}]:[])]}};function H(e){return e.slice(0,8).map(t=>({label:t.getAttribute("src")||"(sin src)",snippet:E(t,300)}))}function me(e,t){const n=(e.getAttribute("src")||"").trim();if(!n||n.startsWith("data:"))return null;try{return new URL(n,t)}catch{return null}}const Ze=(e,t)=>{const n=Array.from(e.querySelectorAll("img")),o=[],r=e.location?.href;let s=null;if(t?.expects.assetsUrl)try{s=new URL(t.expects.assetsUrl).host}catch{s=null}o.push(g("images.count","<img> totales","info",\`\${n.length} imagen(es)\`));const i=n.filter(p=>!p.hasAttribute("alt"));o.push(h(g("images.alt","img sin atributo alt",i.length?"warn":"ok",i.length?\`\${i.length} <img> sin alt: \${Q(i)}\`:"Todas las <img> declaran alt"),H(i)));const l=n.filter(p=>p.getAttribute("loading")==="lazy").length;o.push(g("images.lazy","img loading=lazy","info",\`\${l}/\${n.length} lazy\`));const a=n.filter(p=>{const d=p.getAttribute("src");return d!==null&&d.trim()===""});o.push(h(g("images.emptySrc","img con src vacío",a.length?"warn":"ok",a.length?\`\${a.length} <img> con src=""\`:"Sin src vacíos"),H(a)));const c=n.filter(p=>me(p,r)?.protocol==="http:");if(o.push(h(g("images.insecure","img con src http (inseguro)",c.length?"warn":"ok",c.length?\`\${c.length} <img> en http: \${Q(c)}\`:"Sin imágenes http (mixed content)"),H(c))),s){const p=n.filter(d=>{const u=me(d,r);return!!u&&(u.protocol==="http:"||u.protocol==="https:")&&u.host!==s});o.push(h(g("images.offAssets",\`img fuera del dominio de assets (\${s})\`,"info",p.length?\`\${p.length} <img> en otro host: \${Q(p)}\`:"Todas las <img> absolutas vienen del dominio de assets"),H(p)))}return{key:"images",title:"Imágenes",findings:o}};function Q(e){return e.slice(0,5).map(t=>t.getAttribute("src")||"(sin src)").join(", ")}function Y(e,t){for(const n of t){const o=e.querySelector(n);if(o)return o}return null}function B(e,t){return e?[{label:t,snippet:E(e)}]:[]}const et=[Ie,Fe,Ve,Ke,Ye,(e,t)=>{const n=t?.expects,o=[],r=n?.assetsUrl;let s;r?s=Array.from(e.querySelectorAll('link[rel="preconnect"]')).some(c=>(c.getAttribute("href")||"").indexOf(r)===0):s=!!e.querySelector('link[rel="preconnect"]'),o.push(h(w("css.preconnectAssets","preconnect assets",s,n?n.preconnectAssets:null,"Falta <link rel=preconnect> a PUBLIC_ASSETS_URL"),O(e,'link[rel="preconnect"], link[rel="dns-prefetch"]'))),o.push(h(w("css.preloadImages","preload de imágenes",!!e.querySelector('link[rel="preload"][as="image"]'),n?n.preloadImages:null,"No hay preload de imágenes (preloadImages)"),O(e,'link[rel="preload"][as="image"]')));const i=!!e.querySelector('link[rel="preload"][as="font"]'),l=!!e.querySelector('link[href*="fonts.googleapis"], link[href*="fonts.gstatic"]'),a=n?.font;return a==="selfHosted"?o.push(w("css.font","Font self-hosted",i,!0,"Font self-hosted esperada pero sin <link as=font>")):a==="google"?o.push(w("css.font","Google Fonts",l,!0,"Google Fonts esperada pero ausente")):o.push(g("css.font","Fonts","info",i?"Font self-hosted presente":l?"Google Fonts presente":"Sin fuente configurada por el paquete")),o.push(h(g("css.stylesheets","<link rel=stylesheet> totales","info",\`\${q(e,'link[rel="stylesheet"]')} stylesheet(s) (los agrega el sitio)\`),O(e,'link[rel="stylesheet"]'))),{key:"cssImports",title:"CSS / preconnect / fonts",findings:o}},Ze,(e,t)=>{const n=t?.expects.analytics,o=[],r=Y(e,["script#googleanalytics",'script[src*="gtag/js"]']);o.push(h(w("content.ga4","GA4",!!r,n?n.ga4:null,"GA4 no configurado"),B(r,"GA4")));const s=Y(e,["script#GTM",'script[src*="googletagmanager.com/gtm.js"]','iframe[src*="googletagmanager.com/ns.html"]']);o.push(h(w("content.gtm","Google Tag Manager",!!s,n?n.gtm:null,"GTM no configurado"),B(s,"GTM")));const i=Y(e,["script#comscore",'script[src*="scorecardresearch"]']);o.push(h(w("content.comscore","Comscore",!!i,n?n.comscore:null,"Comscore no configurado"),B(i,"Comscore")));const l=e.querySelector('script[src*="marfeel"]')||Array.from(e.querySelectorAll("script")).find(u=>(u.textContent||"").includes("marfeel"))||null;o.push(h(w("content.marfeel","Marfeel",!!l,n?n.marfeel:null,"Marfeel no configurado"),B(l,"Marfeel")));const c=Array.from(e.querySelectorAll("h1,h2,h3,h4,h5,h6")).filter(u=>!(u.textContent||"").trim());o.push(h(g("content.emptyHeadings","Headings vacíos",c.length?"warn":"ok",c.length?\`\${c.length} heading(s) sin texto\`:"Sin headings vacíos"),c.slice(0,8).map(u=>({label:u.tagName.toLowerCase(),snippet:E(u,200)}))));const p=Array.from(e.querySelectorAll("a")),d=p.filter(u=>{const x=u.getAttribute("href");return x===null||x.trim()===""||x.trim()==="#"});return o.push(h(g("content.links","Links sin destino",d.length?"warn":"ok",\`\${p.length} link(s); \${d.length} sin href válido\`),d.slice(0,8).map(u=>({label:(u.textContent||"").trim().slice(0,40)||"(sin texto)",snippet:E(u,200)})))),{key:"content",title:"Contenido",findings:o}}];function ge(e,t){const n=et.map(r=>r(e,t)),o={ok:0,missing:0,warn:0,info:0};for(const r of n)for(const s of r.findings)o[s.status]++;return{route:t?t.route:null,hasManifest:!!t,totals:o,categories:n,blindSpots:t?t.blindSpots||[]:[]}}const tt=\`
|
|
5866
5866
|
/* all: initial corta toda herencia del host; los resets explícitos de abajo pinean la
|
|
@@ -6376,12 +6376,12 @@ async function U1({
|
|
|
6376
6376
|
internalPath: f,
|
|
6377
6377
|
metaSource: w,
|
|
6378
6378
|
config: b,
|
|
6379
|
-
socials:
|
|
6380
|
-
speculationType:
|
|
6379
|
+
socials: A,
|
|
6380
|
+
speculationType: y = "Common",
|
|
6381
6381
|
preloadImageUrl: N,
|
|
6382
6382
|
custom_Speculation: v,
|
|
6383
6383
|
custom_metadata: C,
|
|
6384
|
-
custom_scriptReplaces:
|
|
6384
|
+
custom_scriptReplaces: x,
|
|
6385
6385
|
head_custom_elements: T,
|
|
6386
6386
|
schemasCustomEndpoints: P,
|
|
6387
6387
|
configOriginAuditReport: $
|
|
@@ -6403,7 +6403,7 @@ async function U1({
|
|
|
6403
6403
|
internalPath: f,
|
|
6404
6404
|
metaSource: L,
|
|
6405
6405
|
schemasImages: F
|
|
6406
|
-
}), j = Yo(U), M =
|
|
6406
|
+
}), j = Yo(U), M = x || Rr[r]({
|
|
6407
6407
|
pathname: o,
|
|
6408
6408
|
slug: i,
|
|
6409
6409
|
config: b,
|
|
@@ -6461,7 +6461,7 @@ async function U1({
|
|
|
6461
6461
|
}
|
|
6462
6462
|
),
|
|
6463
6463
|
O.schemas_SoftwareApplication && /* @__PURE__ */ s(gc, { config: b }),
|
|
6464
|
-
/* @__PURE__ */ s(Ac, { config: b, socials:
|
|
6464
|
+
/* @__PURE__ */ s(Ac, { config: b, socials: A }),
|
|
6465
6465
|
O.schemas_Videos && f && /* @__PURE__ */ s(
|
|
6466
6466
|
Cc,
|
|
6467
6467
|
{
|
|
@@ -6481,10 +6481,10 @@ async function U1({
|
|
|
6481
6481
|
}
|
|
6482
6482
|
),
|
|
6483
6483
|
O.schemas_WebsiteList && /* @__PURE__ */ s(yc, { config: b }),
|
|
6484
|
-
|
|
6484
|
+
y && /* @__PURE__ */ s(
|
|
6485
6485
|
uc,
|
|
6486
6486
|
{
|
|
6487
|
-
type:
|
|
6487
|
+
type: y,
|
|
6488
6488
|
active: b.useSpeculationRules,
|
|
6489
6489
|
customSpeculation: v
|
|
6490
6490
|
}
|
|
@@ -6496,7 +6496,7 @@ async function U1({
|
|
|
6496
6496
|
headConfig: O,
|
|
6497
6497
|
config: b,
|
|
6498
6498
|
defaultMetadataName: r,
|
|
6499
|
-
speculationType:
|
|
6499
|
+
speculationType: y,
|
|
6500
6500
|
internalPath: f,
|
|
6501
6501
|
hasAutor: !!d,
|
|
6502
6502
|
hasCurrentNewPreview: !!h?.preview?.sizes,
|
|
@@ -6537,7 +6537,7 @@ const L1 = ({
|
|
|
6537
6537
|
config: o,
|
|
6538
6538
|
currentNew: l,
|
|
6539
6539
|
internalPath: i
|
|
6540
|
-
}), p = n.find((
|
|
6540
|
+
}), p = n.find((y) => y.key === "event_analytics"), f = d.before.active, w = d.after.active, b = f ? d.before.customData ? d.before.customData : m : void 0, A = w ? d.after.customData ? d.after.customData : m : void 0;
|
|
6541
6541
|
return /* @__PURE__ */ g(Y, { children: [
|
|
6542
6542
|
/* @__PURE__ */ s(ar, { name: "bodybefore", banners: n, replaces: b }),
|
|
6543
6543
|
e,
|
|
@@ -6553,7 +6553,7 @@ const L1 = ({
|
|
|
6553
6553
|
),
|
|
6554
6554
|
/* @__PURE__ */ s(ac, {}),
|
|
6555
6555
|
u,
|
|
6556
|
-
/* @__PURE__ */ s(li, { name: "bodyafter", banners: n, replaces:
|
|
6556
|
+
/* @__PURE__ */ s(li, { name: "bodyafter", banners: n, replaces: A })
|
|
6557
6557
|
] });
|
|
6558
6558
|
}, $c = () => /* @__PURE__ */ s(
|
|
6559
6559
|
"svg",
|
|
@@ -6591,63 +6591,63 @@ function Qc({
|
|
|
6591
6591
|
enableDrag: o,
|
|
6592
6592
|
onIndexChange: i
|
|
6593
6593
|
}) {
|
|
6594
|
-
const [l, c] = V(!1), [d, u] = V(0), [h, m] = V(0), [p, f] = V(0), [w, b] = V(0), [
|
|
6594
|
+
const [l, c] = V(!1), [d, u] = V(0), [h, m] = V(0), [p, f] = V(0), [w, b] = V(0), [A, y] = V(null), N = Ka(null), [v, C] = V(1), x = ue(() => {
|
|
6595
6595
|
if (r) return 1;
|
|
6596
|
-
const
|
|
6596
|
+
const S = N.current?.offsetWidth || window.innerWidth, k = n + a, q = Math.floor(S / k);
|
|
6597
6597
|
return Math.max(1, q);
|
|
6598
6598
|
}, [r, n, a]);
|
|
6599
6599
|
qe(() => {
|
|
6600
|
-
const
|
|
6601
|
-
const k =
|
|
6600
|
+
const S = () => {
|
|
6601
|
+
const k = x();
|
|
6602
6602
|
C(k);
|
|
6603
6603
|
};
|
|
6604
|
-
return
|
|
6605
|
-
}, [
|
|
6604
|
+
return S(), window.addEventListener("resize", S), () => window.removeEventListener("resize", S);
|
|
6605
|
+
}, [x]);
|
|
6606
6606
|
const P = ue(() => {
|
|
6607
|
-
const
|
|
6608
|
-
return Math.max(0, t -
|
|
6609
|
-
}, [t,
|
|
6610
|
-
const
|
|
6611
|
-
return
|
|
6612
|
-
}, [
|
|
6613
|
-
(
|
|
6607
|
+
const S = x();
|
|
6608
|
+
return Math.max(0, t - S);
|
|
6609
|
+
}, [t, x])(), $ = ue(() => {
|
|
6610
|
+
const S = x();
|
|
6611
|
+
return S === 1 ? 1 : Math.max(1, Math.ceil(S / 2));
|
|
6612
|
+
}, [x]), O = ue(
|
|
6613
|
+
(S, k = 0) => {
|
|
6614
6614
|
if (r) {
|
|
6615
6615
|
const q = N.current?.offsetWidth || window.innerWidth;
|
|
6616
|
-
return -(
|
|
6616
|
+
return -(S * (100 + a)) + k / q * 100;
|
|
6617
6617
|
}
|
|
6618
|
-
return -(
|
|
6618
|
+
return -(S * (n + a)) + k;
|
|
6619
6619
|
},
|
|
6620
6620
|
[r, n, a]
|
|
6621
6621
|
), R = ue(
|
|
6622
|
-
(
|
|
6623
|
-
const k = N.current?.offsetWidth || window.innerWidth, q =
|
|
6622
|
+
(S) => {
|
|
6623
|
+
const k = N.current?.offsetWidth || window.innerWidth, q = x(), H = $();
|
|
6624
6624
|
if (r)
|
|
6625
|
-
return Math.abs(
|
|
6625
|
+
return Math.abs(S) / k * 100 > 30 ? 1 : 0;
|
|
6626
6626
|
{
|
|
6627
|
-
const G = n + a, Q = Math.abs(
|
|
6627
|
+
const G = n + a, Q = Math.abs(S) / G;
|
|
6628
6628
|
return Q >= (q === 1 ? 0.2 : 0.3) ? q === 1 ? 1 : Math.min(Math.round(Q), H) : 0;
|
|
6629
6629
|
}
|
|
6630
6630
|
},
|
|
6631
|
-
[r, n, a,
|
|
6631
|
+
[r, n, a, x, $]
|
|
6632
6632
|
), F = ue(
|
|
6633
|
-
(
|
|
6634
|
-
o && (u(
|
|
6633
|
+
(S) => {
|
|
6634
|
+
o && (u(S), m(S), f(0), b(Date.now()), c(!0), document.body.classList.add("dragging"));
|
|
6635
6635
|
},
|
|
6636
6636
|
[o]
|
|
6637
6637
|
), z = ue(
|
|
6638
|
-
(
|
|
6638
|
+
(S) => {
|
|
6639
6639
|
if (!l || !o) return;
|
|
6640
|
-
const k =
|
|
6641
|
-
m(
|
|
6640
|
+
const k = S - d, q = (n + a) * 1.2, H = e === 0 && k > 0, G = e === P && k < 0, Q = H || G ? Math.sign(k) * Math.min(Math.abs(k), q) : k;
|
|
6641
|
+
m(S), f(Q);
|
|
6642
6642
|
},
|
|
6643
6643
|
[l, d, o, e, P, n, a]
|
|
6644
6644
|
), B = ue(
|
|
6645
|
-
(
|
|
6646
|
-
z(
|
|
6645
|
+
(S) => {
|
|
6646
|
+
z(S.clientX);
|
|
6647
6647
|
},
|
|
6648
6648
|
[z]
|
|
6649
6649
|
), L = ue(
|
|
6650
|
-
(
|
|
6650
|
+
(S) => {
|
|
6651
6651
|
if (!l || !o) return;
|
|
6652
6652
|
const k = h - d, q = Date.now() - w, H = Math.abs(k) / Math.max(q, 1), G = R(k), K = H > 0.5 && Math.abs(k) > 50 ? Math.max(G, 1) : G;
|
|
6653
6653
|
if (K > 0)
|
|
@@ -6658,7 +6658,7 @@ function Qc({
|
|
|
6658
6658
|
const J = Math.min(P, e + K);
|
|
6659
6659
|
i(J);
|
|
6660
6660
|
}
|
|
6661
|
-
c(!1), f(0), document.body.classList.remove("dragging"), document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", L),
|
|
6661
|
+
c(!1), f(0), document.body.classList.remove("dragging"), document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", L), S.clientX === d && A?.dispatchEvent(new PointerEvent("click"));
|
|
6662
6662
|
},
|
|
6663
6663
|
[
|
|
6664
6664
|
l,
|
|
@@ -6671,26 +6671,26 @@ function Qc({
|
|
|
6671
6671
|
i,
|
|
6672
6672
|
R,
|
|
6673
6673
|
B,
|
|
6674
|
-
|
|
6674
|
+
A
|
|
6675
6675
|
]
|
|
6676
6676
|
), U = ue(
|
|
6677
|
-
(
|
|
6678
|
-
|
|
6677
|
+
(S) => {
|
|
6678
|
+
S.preventDefault(), ["a", "span"].includes(S.target?.localName) && y(S.target), F(S.clientX);
|
|
6679
6679
|
},
|
|
6680
6680
|
[F]
|
|
6681
6681
|
), j = ue(
|
|
6682
|
-
(
|
|
6683
|
-
F(
|
|
6682
|
+
(S) => {
|
|
6683
|
+
F(S.touches[0].clientX);
|
|
6684
6684
|
},
|
|
6685
6685
|
[F]
|
|
6686
6686
|
), M = ue(
|
|
6687
|
-
(
|
|
6688
|
-
l && (
|
|
6687
|
+
(S) => {
|
|
6688
|
+
l && (S.preventDefault(), z(S.touches[0].clientX));
|
|
6689
6689
|
},
|
|
6690
6690
|
[l, z]
|
|
6691
6691
|
), W = ue(
|
|
6692
|
-
(
|
|
6693
|
-
L(
|
|
6692
|
+
(S) => {
|
|
6693
|
+
L(S);
|
|
6694
6694
|
},
|
|
6695
6695
|
[L]
|
|
6696
6696
|
);
|
|
@@ -6738,8 +6738,8 @@ function R1(e) {
|
|
|
6738
6738
|
isDragging: f,
|
|
6739
6739
|
translateOffset: w,
|
|
6740
6740
|
carrouselRef: b,
|
|
6741
|
-
maxIndex:
|
|
6742
|
-
getTranslateValue:
|
|
6741
|
+
maxIndex: A,
|
|
6742
|
+
getTranslateValue: y,
|
|
6743
6743
|
actualVisibleItems: N,
|
|
6744
6744
|
dragHandlers: v
|
|
6745
6745
|
} = Qc({
|
|
@@ -6752,23 +6752,23 @@ function R1(e) {
|
|
|
6752
6752
|
onIndexChange: h
|
|
6753
6753
|
}), C = ue(
|
|
6754
6754
|
(O) => {
|
|
6755
|
-
const R = Math.max(0, Math.min(O,
|
|
6755
|
+
const R = Math.max(0, Math.min(O, A));
|
|
6756
6756
|
h(R);
|
|
6757
6757
|
},
|
|
6758
|
-
[
|
|
6759
|
-
),
|
|
6758
|
+
[A]
|
|
6759
|
+
), x = ue(() => {
|
|
6760
6760
|
C(u - 1);
|
|
6761
6761
|
}, [u, C]), T = ue(() => {
|
|
6762
6762
|
C(u + 1);
|
|
6763
6763
|
}, [u, C]);
|
|
6764
6764
|
if (!m) return;
|
|
6765
|
-
const P =
|
|
6765
|
+
const P = y(u, w), $ = i ? `translateX(${P}%)` : `translateX(${P}px)`;
|
|
6766
6766
|
return /* @__PURE__ */ g("div", { className: `${n}- carrousel-container`, children: [
|
|
6767
6767
|
u > 0 && /* @__PURE__ */ s(
|
|
6768
6768
|
"button",
|
|
6769
6769
|
{
|
|
6770
6770
|
className: "visible-arrow left",
|
|
6771
|
-
onClick:
|
|
6771
|
+
onClick: x,
|
|
6772
6772
|
"aria-label": "Previous slide",
|
|
6773
6773
|
style: { display: "flex" },
|
|
6774
6774
|
children: /* @__PURE__ */ s(
|
|
@@ -6790,7 +6790,7 @@ function R1(e) {
|
|
|
6790
6790
|
)
|
|
6791
6791
|
}
|
|
6792
6792
|
),
|
|
6793
|
-
u <
|
|
6793
|
+
u < A && /* @__PURE__ */ s(
|
|
6794
6794
|
"button",
|
|
6795
6795
|
{
|
|
6796
6796
|
className: "visible-arrow right",
|
|
@@ -7461,7 +7461,7 @@ const Or = ({
|
|
|
7461
7461
|
);
|
|
7462
7462
|
};
|
|
7463
7463
|
function ad(e) {
|
|
7464
|
-
return Array.isArray(e) ? e : e && typeof e == "object" ? [e] : [];
|
|
7464
|
+
return e ? Array.isArray(e) ? e : e && typeof e == "object" ? [e] : [] : [];
|
|
7465
7465
|
}
|
|
7466
7466
|
const We = (e) => {
|
|
7467
7467
|
const {
|
|
@@ -7472,47 +7472,49 @@ const We = (e) => {
|
|
|
7472
7472
|
paths: o,
|
|
7473
7473
|
newsDescriptionSectionTag: i = "span",
|
|
7474
7474
|
speculationPrerenderClass: l
|
|
7475
|
-
} = e, { SHOW_TAG_BY_SECTION: c, SUB_PUBLICATION_PREFIX_IN_ROUTES: d } = I(), u = ad(e.authors)
|
|
7476
|
-
|
|
7475
|
+
} = e, { SHOW_TAG_BY_SECTION: c, SUB_PUBLICATION_PREFIX_IN_ROUTES: d } = I(), u = ad(e.authors), h = Array.isArray(u);
|
|
7476
|
+
h && console.log("normalizedAuthors", u);
|
|
7477
|
+
const m = (h ? u : []).slice(0, 2), p = !!e.config?.showauthor, f = !!e.config?.showtime, w = (v) => /* @__PURE__ */ s("span", { className: "sass-com-nd-correspondentName", children: v }), b = () => p ? m.length === 0 ? w("Redacción") : m.map((v, C) => {
|
|
7478
|
+
const x = v.Figure || v.fullname || "Redacción", T = C > 0 ? /* @__PURE__ */ s("span", { className: "sass-com-nd-correspondentSeparator", children: ", " }) : null, P = v.internaluser ? /* @__PURE__ */ s(
|
|
7477
7479
|
_,
|
|
7478
7480
|
{
|
|
7479
7481
|
block_subPublication: d?.autor,
|
|
7480
|
-
"aria-label":
|
|
7482
|
+
"aria-label": x,
|
|
7481
7483
|
className: "sass-com-nd-correspondentLink",
|
|
7482
|
-
href: `/${e?.paths?.autor ?? "autor"}/${
|
|
7483
|
-
children:
|
|
7484
|
+
href: `/${e?.paths?.autor ?? "autor"}/${v.name}`,
|
|
7485
|
+
children: w(x)
|
|
7484
7486
|
}
|
|
7485
|
-
) :
|
|
7487
|
+
) : w(x);
|
|
7486
7488
|
return /* @__PURE__ */ g(me.Fragment, { children: [
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
] },
|
|
7490
|
-
}) : null,
|
|
7491
|
-
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
] }),
|
|
7489
|
+
T,
|
|
7490
|
+
P
|
|
7491
|
+
] }, v.name || `${x}-${C}`);
|
|
7492
|
+
}) : null, A = () => !p && !f ? null : /* @__PURE__ */ g("span", { className: "sass-com-nd-correspondent", children: [
|
|
7493
|
+
b(),
|
|
7494
|
+
p && f && /* @__PURE__ */ s("span", { className: "sass-com-nd-correspondentSeparator", children: " - " }),
|
|
7495
|
+
f && /* @__PURE__ */ s("span", { className: "sass-com-nd-correspondentTime", children: Ve(e.info?.date?.modified) })
|
|
7496
|
+
] }), y = () => e.main.uppertitle ? /* @__PURE__ */ s("p", { className: "sass-com-nd-uppertitle", title: e.main.uppertitle, children: e.main.uppertitle }) : null, N = () => {
|
|
7495
7497
|
if (c && a?.tags?.length && a.tags.length > 0) {
|
|
7496
|
-
const
|
|
7498
|
+
const v = a.tags[0], C = v.name;
|
|
7497
7499
|
return me.createElement(
|
|
7498
7500
|
i,
|
|
7499
7501
|
{ className: "sass-com-nd-sectionDescriptionContainer section" },
|
|
7500
7502
|
/* @__PURE__ */ g(Y, { children: [
|
|
7501
|
-
|
|
7503
|
+
v.approved ? /* @__PURE__ */ s(
|
|
7502
7504
|
_,
|
|
7503
7505
|
{
|
|
7504
7506
|
block_subPublication: d?.tema,
|
|
7505
|
-
"aria-label":
|
|
7507
|
+
"aria-label": C,
|
|
7506
7508
|
className: "sass-com-nd-sectionDescription",
|
|
7507
|
-
href: Xe(
|
|
7508
|
-
children:
|
|
7509
|
+
href: Xe(v, o),
|
|
7510
|
+
children: C
|
|
7509
7511
|
}
|
|
7510
|
-
) : /* @__PURE__ */ s("div", { className: "sass-com-nd-sectionDescription", children:
|
|
7511
|
-
|
|
7512
|
+
) : /* @__PURE__ */ s("div", { className: "sass-com-nd-sectionDescription", children: C }),
|
|
7513
|
+
y()
|
|
7512
7514
|
] })
|
|
7513
7515
|
);
|
|
7514
7516
|
} else if (r?.section?.url) {
|
|
7515
|
-
const
|
|
7517
|
+
const v = r.section.name;
|
|
7516
7518
|
return me.createElement(
|
|
7517
7519
|
i,
|
|
7518
7520
|
{ className: "sass-com-nd-sectionDescriptionContainer section" },
|
|
@@ -7520,13 +7522,13 @@ const We = (e) => {
|
|
|
7520
7522
|
/* @__PURE__ */ s(
|
|
7521
7523
|
_,
|
|
7522
7524
|
{
|
|
7523
|
-
"aria-label":
|
|
7525
|
+
"aria-label": v,
|
|
7524
7526
|
className: "sass-com-nd-sectionDescription",
|
|
7525
7527
|
href: r.section.url,
|
|
7526
|
-
children:
|
|
7528
|
+
children: v
|
|
7527
7529
|
}
|
|
7528
7530
|
),
|
|
7529
|
-
|
|
7531
|
+
y()
|
|
7530
7532
|
] })
|
|
7531
7533
|
);
|
|
7532
7534
|
}
|
|
@@ -7542,7 +7544,7 @@ const We = (e) => {
|
|
|
7542
7544
|
children: /* @__PURE__ */ s(sd, { noteShare: { ...t } })
|
|
7543
7545
|
}
|
|
7544
7546
|
),
|
|
7545
|
-
/* @__PURE__ */ s(
|
|
7547
|
+
/* @__PURE__ */ s(N, {}),
|
|
7546
7548
|
me.createElement(
|
|
7547
7549
|
e.isTitle ? "h1" : "h2",
|
|
7548
7550
|
{
|
|
@@ -7573,7 +7575,7 @@ const We = (e) => {
|
|
|
7573
7575
|
isH2: e.isTitle
|
|
7574
7576
|
}
|
|
7575
7577
|
),
|
|
7576
|
-
|
|
7578
|
+
A()
|
|
7577
7579
|
] });
|
|
7578
7580
|
}, Br = (e) => /* @__PURE__ */ g(
|
|
7579
7581
|
"svg",
|
|
@@ -9600,15 +9602,15 @@ const q1 = (e) => {
|
|
|
9600
9602
|
priorityHigh: u = !1
|
|
9601
9603
|
}) => {
|
|
9602
9604
|
const { CONFIG_videoClipUrl: h } = I(), m = e ?? "imagen", p = Array.isArray(t) ? t : [], f = () => {
|
|
9603
|
-
const
|
|
9604
|
-
return
|
|
9605
|
+
const y = p[0]?.clip;
|
|
9606
|
+
return y ? /* @__PURE__ */ s("div", { className: "sass-com-sc1-videoClipContainer", children: /* @__PURE__ */ s("video", { autoPlay: !0, loop: !0, muted: !0, playsInline: !0, children: /* @__PURE__ */ s("source", { src: `${h}${y}`, type: "video/mp4" }) }) }) : null;
|
|
9605
9607
|
}, w = () => {
|
|
9606
|
-
const
|
|
9607
|
-
return
|
|
9608
|
+
const y = p[0]?.code;
|
|
9609
|
+
return y ? /* @__PURE__ */ s(
|
|
9608
9610
|
"iframe",
|
|
9609
9611
|
{
|
|
9610
9612
|
className: "sass-com-sc1-videoIframeContainer",
|
|
9611
|
-
src: `https://www.youtube.com/embed/${
|
|
9613
|
+
src: `https://www.youtube.com/embed/${y}`,
|
|
9612
9614
|
frameBorder: "0",
|
|
9613
9615
|
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",
|
|
9614
9616
|
allowFullScreen: !0,
|
|
@@ -9616,11 +9618,11 @@ const q1 = (e) => {
|
|
|
9616
9618
|
}
|
|
9617
9619
|
) : null;
|
|
9618
9620
|
}, b = () => {
|
|
9619
|
-
const
|
|
9620
|
-
if (!
|
|
9621
|
-
const v = /src\s*=\s*"([^"]+)"/.exec(
|
|
9621
|
+
const y = p.find(($) => $.type === "video-embedded");
|
|
9622
|
+
if (!y?.code) return null;
|
|
9623
|
+
const v = /src\s*=\s*"([^"]+)"/.exec(y.code), C = v ? v[1] : null;
|
|
9622
9624
|
if (!C) return null;
|
|
9623
|
-
const
|
|
9625
|
+
const x = a.original?.url ?? a.sizes?.[0]?.url ?? "", T = rt() ?? "", P = x.startsWith("http") || x.includes(T) || T === "" ? x : T + x;
|
|
9624
9626
|
return /* @__PURE__ */ s(
|
|
9625
9627
|
"iframe",
|
|
9626
9628
|
{
|
|
@@ -9634,7 +9636,7 @@ const q1 = (e) => {
|
|
|
9634
9636
|
}
|
|
9635
9637
|
}
|
|
9636
9638
|
);
|
|
9637
|
-
},
|
|
9639
|
+
}, A = () => /* @__PURE__ */ s(
|
|
9638
9640
|
_,
|
|
9639
9641
|
{
|
|
9640
9642
|
"aria-label": l,
|
|
@@ -9655,11 +9657,11 @@ const q1 = (e) => {
|
|
|
9655
9657
|
);
|
|
9656
9658
|
switch (m) {
|
|
9657
9659
|
case "videoYouTube":
|
|
9658
|
-
return p[0]?.code ? /* @__PURE__ */ s(w, {}) : /* @__PURE__ */ s(
|
|
9660
|
+
return p[0]?.code ? /* @__PURE__ */ s(w, {}) : /* @__PURE__ */ s(A, {});
|
|
9659
9661
|
case "videoEmbedded":
|
|
9660
|
-
return p.some((
|
|
9662
|
+
return p.some((y) => y.type === "video-embedded" && y.code) ? /* @__PURE__ */ s(b, {}) : /* @__PURE__ */ s(A, {});
|
|
9661
9663
|
case "clip":
|
|
9662
|
-
return p[0]?.clip ? /* @__PURE__ */ s(f, {}) : /* @__PURE__ */ s(
|
|
9664
|
+
return p[0]?.clip ? /* @__PURE__ */ s(f, {}) : /* @__PURE__ */ s(A, {});
|
|
9663
9665
|
case "iframe":
|
|
9664
9666
|
return n?.iframe ? /* @__PURE__ */ s(
|
|
9665
9667
|
"div",
|
|
@@ -9667,9 +9669,9 @@ const q1 = (e) => {
|
|
|
9667
9669
|
className: "sass-com-sc1-iframeContainer",
|
|
9668
9670
|
dangerouslySetInnerHTML: { __html: n.iframe }
|
|
9669
9671
|
}
|
|
9670
|
-
) : /* @__PURE__ */ s(
|
|
9672
|
+
) : /* @__PURE__ */ s(A, {});
|
|
9671
9673
|
default:
|
|
9672
|
-
return /* @__PURE__ */ s(
|
|
9674
|
+
return /* @__PURE__ */ s(A, {});
|
|
9673
9675
|
}
|
|
9674
9676
|
}, Ye = (e) => {
|
|
9675
9677
|
const {
|
|
@@ -9925,7 +9927,7 @@ const q1 = (e) => {
|
|
|
9925
9927
|
loading: "lazy"
|
|
9926
9928
|
}
|
|
9927
9929
|
), V1 = async (e) => {
|
|
9928
|
-
const { autor: t, autorIcon: n, socialIconsFilled: a = !1, socialIconsCustom: r = !1 } = e, o = n, { PUBLIC_LNG: i } = I(), l = i === "en", c = t?.addtional, d = t?.info?.image?.sizes?.[0]?.url ?? "", u = t?.info?.fullname ?? "", h = t?.info?.email ?? "", m = l ? c?.USER_DESCRIPCION_EN || c?.USER_MIBIO_EN || "" : c?.USER_DESCRIPCION || c?.USER_MIBIO || "", p = nn(t?.addtional?.USER_USERFB ?? ""), f = nn(t?.addtional?.USER_USERIG ?? ""), w = nn(t?.addtional?.USER_USERTWT ?? ""), b = nn(t?.addtional?.USER_USERLIN ?? ""),
|
|
9930
|
+
const { autor: t, autorIcon: n, socialIconsFilled: a = !1, socialIconsCustom: r = !1 } = e, o = n, { PUBLIC_LNG: i } = I(), l = i === "en", c = t?.addtional, d = t?.info?.image?.sizes?.[0]?.url ?? "", u = t?.info?.fullname ?? "", h = t?.info?.email ?? "", m = l ? c?.USER_DESCRIPCION_EN || c?.USER_MIBIO_EN || "" : c?.USER_DESCRIPCION || c?.USER_MIBIO || "", p = nn(t?.addtional?.USER_USERFB ?? ""), f = nn(t?.addtional?.USER_USERIG ?? ""), w = nn(t?.addtional?.USER_USERTWT ?? ""), b = nn(t?.addtional?.USER_USERLIN ?? ""), A = () => !h || h.trim() === "" ? !1 : Sd(h), y = (N) => `mailto:${N.trim()}`;
|
|
9929
9931
|
return /* @__PURE__ */ s(
|
|
9930
9932
|
"section",
|
|
9931
9933
|
{
|
|
@@ -9948,10 +9950,10 @@ const q1 = (e) => {
|
|
|
9948
9950
|
}
|
|
9949
9951
|
),
|
|
9950
9952
|
/* @__PURE__ */ s("h1", { className: "sass-com-ah1-name", children: u }),
|
|
9951
|
-
|
|
9953
|
+
A() && /* @__PURE__ */ s(
|
|
9952
9954
|
"a",
|
|
9953
9955
|
{
|
|
9954
|
-
href:
|
|
9956
|
+
href: y(h),
|
|
9955
9957
|
className: "sass-com-ah1-email",
|
|
9956
9958
|
"aria-label": `Enviar correo electrónico a ${h}`,
|
|
9957
9959
|
title: `Enviar correo a ${h}`,
|
|
@@ -10005,7 +10007,7 @@ const q1 = (e) => {
|
|
|
10005
10007
|
}
|
|
10006
10008
|
);
|
|
10007
10009
|
}, z1 = async (e) => {
|
|
10008
|
-
const { autor: t, autorIcon: n, socialIconsFilled: a = !1 } = e, r = n, { PUBLIC_LNG: o } = I(), i = o === "en", l = t?.addtional, c = t?.info?.image?.sizes?.[0]?.url ?? "", d = t?.info?.fullname ?? "", u = t?.info?.email ?? "", h = l?.USER_SHOWEMAIL === !0 || l?.USER_MOSTRAR_MAIL?.toUpperCase() === "TRUE", m = l?.USER_SHOWBIO ?? !1, p = i ? l?.USER_DESCRIPCION_EN || l?.USER_MIBIO_EN || "" : l?.USER_DESCRIPCION || l?.USER_MIBIO || "", f = t?.addtional?.USER_USERFB ?? "", w = t?.addtional?.USER_USERIG ?? "", b = t?.addtional?.USER_USERTWT ?? "",
|
|
10010
|
+
const { autor: t, autorIcon: n, socialIconsFilled: a = !1 } = e, r = n, { PUBLIC_LNG: o } = I(), i = o === "en", l = t?.addtional, c = t?.info?.image?.sizes?.[0]?.url ?? "", d = t?.info?.fullname ?? "", u = t?.info?.email ?? "", h = l?.USER_SHOWEMAIL === !0 || l?.USER_MOSTRAR_MAIL?.toUpperCase() === "TRUE", m = l?.USER_SHOWBIO ?? !1, p = i ? l?.USER_DESCRIPCION_EN || l?.USER_MIBIO_EN || "" : l?.USER_DESCRIPCION || l?.USER_MIBIO || "", f = t?.addtional?.USER_USERFB ?? "", w = t?.addtional?.USER_USERIG ?? "", b = t?.addtional?.USER_USERTWT ?? "", A = t?.addtional?.USER_USERLIN ?? "";
|
|
10009
10011
|
return /* @__PURE__ */ s(
|
|
10010
10012
|
"section",
|
|
10011
10013
|
{
|
|
@@ -10071,10 +10073,10 @@ const q1 = (e) => {
|
|
|
10071
10073
|
children: /* @__PURE__ */ s(je, { className: "sass-com-ah2-socialIcon sass-com-ah2-social-icon-x", forceSVG: !0 })
|
|
10072
10074
|
}
|
|
10073
10075
|
),
|
|
10074
|
-
|
|
10076
|
+
A && /* @__PURE__ */ s(
|
|
10075
10077
|
"a",
|
|
10076
10078
|
{
|
|
10077
|
-
href:
|
|
10079
|
+
href: A,
|
|
10078
10080
|
target: "_blank",
|
|
10079
10081
|
className: a ? "sass-com-ah2-socialIconFilled" : "sass-com-ah2-socialIconStroke",
|
|
10080
10082
|
rel: "noreferrer",
|
|
@@ -11370,7 +11372,7 @@ function K1(e) {
|
|
|
11370
11372
|
} = e, { CONFIG_videoClipUrl: f } = I(), w = o?.homepreview ?? "imagen", b = () => {
|
|
11371
11373
|
const C = e.videos?.[0]?.clip;
|
|
11372
11374
|
return C ? /* @__PURE__ */ s("div", { className: "homeCardVideoClipContainer", children: /* @__PURE__ */ s("video", { autoPlay: !0, loop: !0, muted: !0, playsInline: !0, width: "480", height: "535", children: /* @__PURE__ */ s("source", { src: `${f}${C}`, type: "video/mp4" }) }) }) : null;
|
|
11373
|
-
},
|
|
11375
|
+
}, A = () => {
|
|
11374
11376
|
if (!e.videos) return null;
|
|
11375
11377
|
const C = e.videos?.[0]?.code;
|
|
11376
11378
|
return C ? /* @__PURE__ */ s(
|
|
@@ -11382,7 +11384,7 @@ function K1(e) {
|
|
|
11382
11384
|
allowFullScreen: !0
|
|
11383
11385
|
}
|
|
11384
11386
|
) : null;
|
|
11385
|
-
},
|
|
11387
|
+
}, y = () => {
|
|
11386
11388
|
if (!e.videos) return null;
|
|
11387
11389
|
const C = (e.videos ?? []).find(
|
|
11388
11390
|
(F) => F.type === "video-embedded"
|
|
@@ -11404,8 +11406,8 @@ function K1(e) {
|
|
|
11404
11406
|
}
|
|
11405
11407
|
);
|
|
11406
11408
|
}, N = () => {
|
|
11407
|
-
const
|
|
11408
|
-
return
|
|
11409
|
+
const x = e.gallery ?? [];
|
|
11410
|
+
return x.length ? /* @__PURE__ */ s(
|
|
11409
11411
|
dt,
|
|
11410
11412
|
{
|
|
11411
11413
|
slot_id: "home-card_" + e.info.link.url,
|
|
@@ -11413,7 +11415,7 @@ function K1(e) {
|
|
|
11413
11415
|
visibleItems: 1,
|
|
11414
11416
|
pagination: !0,
|
|
11415
11417
|
cardGap: 0,
|
|
11416
|
-
children:
|
|
11418
|
+
children: x.map((T, P) => {
|
|
11417
11419
|
const $ = T?.url || T?.id || `gallery-${P}`;
|
|
11418
11420
|
return /* @__PURE__ */ s(
|
|
11419
11421
|
_,
|
|
@@ -11445,10 +11447,10 @@ function K1(e) {
|
|
|
11445
11447
|
v = /* @__PURE__ */ s(N, {});
|
|
11446
11448
|
break;
|
|
11447
11449
|
case "videoYouTube":
|
|
11448
|
-
v = /* @__PURE__ */ s(
|
|
11450
|
+
v = /* @__PURE__ */ s(A, {});
|
|
11449
11451
|
break;
|
|
11450
11452
|
case "videoEmbedded":
|
|
11451
|
-
v = /* @__PURE__ */ s(
|
|
11453
|
+
v = /* @__PURE__ */ s(y, {});
|
|
11452
11454
|
break;
|
|
11453
11455
|
case "clip":
|
|
11454
11456
|
v = /* @__PURE__ */ s(b, {});
|
|
@@ -13028,7 +13030,7 @@ const tf = (e) => {
|
|
|
13028
13030
|
const l = i[1], c = i[2] ?? "";
|
|
13029
13031
|
let d;
|
|
13030
13032
|
if (n.forEach((C) => {
|
|
13031
|
-
Array.isArray(C) && !d && (d = C.find((
|
|
13033
|
+
Array.isArray(C) && !d && (d = C.find((x) => c.replaceAll("/", "|").includes(x?.info.link.internal || "")));
|
|
13032
13034
|
}), !d) {
|
|
13033
13035
|
const C = l.replace(
|
|
13034
13036
|
/class=["']([^"']*ck-related-news[^"']*)["']/,
|
|
@@ -13039,10 +13041,10 @@ const tf = (e) => {
|
|
|
13039
13041
|
}
|
|
13040
13042
|
const u = d.preview?.sizes?.[0], h = u ? await fe(u.url) : "", m = d.info.section?.url ?? "#", p = d.info.section?.name ?? "Sección", f = d.info.link?.url ?? "#", w = d.main?.title.article ?? "Título", b = (await Promise.all(
|
|
13041
13043
|
d.preview?.sizes?.map(async (C) => {
|
|
13042
|
-
const
|
|
13043
|
-
return C.width < 200 ? `<source srcset="${
|
|
13044
|
+
const x = await fe(C.url);
|
|
13045
|
+
return C.width < 200 ? `<source srcset="${x}" media="(width < 750px)"/>` : `<source srcset="${x}" media="(width >= 750px)"/>`;
|
|
13044
13046
|
}) || []
|
|
13045
|
-
)).reduce((C,
|
|
13047
|
+
)).reduce((C, x) => C += x, ""), A = l.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/), y = A ? A[0] : "", N = `
|
|
13046
13048
|
<span data-src="${c}">
|
|
13047
13049
|
<picture style='display: flex'>
|
|
13048
13050
|
${b}
|
|
@@ -13053,7 +13055,7 @@ const tf = (e) => {
|
|
|
13053
13055
|
<a class="title" href="${f}">${w}</a>
|
|
13054
13056
|
</div>
|
|
13055
13057
|
</span>
|
|
13056
|
-
`, v = l.replace(
|
|
13058
|
+
`, v = l.replace(y, N);
|
|
13057
13059
|
o = o.replace(l, v);
|
|
13058
13060
|
}
|
|
13059
13061
|
return o;
|
|
@@ -13092,7 +13094,7 @@ async function mu(e, t) {
|
|
|
13092
13094
|
let w = "";
|
|
13093
13095
|
const b = c.match(
|
|
13094
13096
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
13095
|
-
),
|
|
13097
|
+
), A = b && b[1] ? b[1].trim() : "";
|
|
13096
13098
|
f.info && f.info.type === "video-youtube" ? w = `<iframe
|
|
13097
13099
|
loading="lazy"
|
|
13098
13100
|
frameborder="0"
|
|
@@ -13108,14 +13110,14 @@ async function mu(e, t) {
|
|
|
13108
13110
|
allowfullscreen
|
|
13109
13111
|
style="width: 100%; height: auto; min-height: 400px;"
|
|
13110
13112
|
src="${f.main?.code || ""}"></iframe>` : w = f.main?.code || "";
|
|
13111
|
-
const
|
|
13113
|
+
const y = A || f.main?.description || "";
|
|
13112
13114
|
h = `
|
|
13113
13115
|
<figure class="videoFigure">
|
|
13114
13116
|
${p && p.data && p.data.data ? `<script type="application/ld+json">${Rn(
|
|
13115
13117
|
JSON.stringify(p.data.data)
|
|
13116
13118
|
)}<\/script>` : ""}
|
|
13117
13119
|
${w}
|
|
13118
|
-
${
|
|
13120
|
+
${y ? `<figcaption>${y}</figcaption>` : ""}
|
|
13119
13121
|
</figure>
|
|
13120
13122
|
`;
|
|
13121
13123
|
}
|
|
@@ -13863,9 +13865,9 @@ const Tu = async (e) => {
|
|
|
13863
13865
|
CONFIG_commentsV2: i,
|
|
13864
13866
|
EXPERIMENTAL_commentsV2Paths: l
|
|
13865
13867
|
} = I(), c = t.info?.link?.internal ?? "", d = i || (l ?? []).some(
|
|
13866
|
-
(
|
|
13867
|
-
), u = he(), h = (
|
|
13868
|
-
(
|
|
13868
|
+
(A) => c === A || c.endsWith(A)
|
|
13869
|
+
), u = he(), h = (A) => `${u}/${e.paths.autor}/${A}`, m = t.authors.map(
|
|
13870
|
+
(A) => A.internaluser ? `<a href="${h(A.name)}">${A.fullname}</a>` : A.fullname
|
|
13869
13871
|
).join(", "), f = t.authors.length === 1 ? "sass-com-ja5--singleAuthor" : "sass-com-ja5--multiAuthor", b = `sass-com-ja5-imageContent--count${Math.min(t.authors.length, 6)}`;
|
|
13870
13872
|
return t.config?.showauthor && /* @__PURE__ */ s(
|
|
13871
13873
|
"div",
|
|
@@ -14010,25 +14012,25 @@ const Tu = async (e) => {
|
|
|
14010
14012
|
children: [
|
|
14011
14013
|
/* @__PURE__ */ g("div", { className: "sass-com-ja5-journalistMain", children: [
|
|
14012
14014
|
/* @__PURE__ */ s("div", { className: `sass-com-ja5-imageContent ${b}`, children: Array.isArray(t.authors) && t.authors?.map(
|
|
14013
|
-
async (
|
|
14015
|
+
async (A) => A.image ? /* @__PURE__ */ s(
|
|
14014
14016
|
"img",
|
|
14015
14017
|
{
|
|
14016
14018
|
fetchPriority: "low",
|
|
14017
14019
|
loading: "lazy",
|
|
14018
|
-
alt: "Imagen de perfil de " +
|
|
14020
|
+
alt: "Imagen de perfil de " + A.fullname,
|
|
14019
14021
|
className: "sass-com-ja5-imageStyled sass-com-ja5-imageAutor su-object-cover su-flex-center",
|
|
14020
14022
|
src: await fe(
|
|
14021
|
-
|
|
14023
|
+
A.image.sizes[0]?.url || ""
|
|
14022
14024
|
)
|
|
14023
14025
|
},
|
|
14024
|
-
|
|
14026
|
+
A.fullname
|
|
14025
14027
|
) : /* @__PURE__ */ s(
|
|
14026
14028
|
"div",
|
|
14027
14029
|
{
|
|
14028
14030
|
className: "sass-com-ja5-contentIconStyled sass-com-ja5-imageAutor su-flex-center",
|
|
14029
14031
|
children: e.autorIcon
|
|
14030
14032
|
},
|
|
14031
|
-
|
|
14033
|
+
A.fullname
|
|
14032
14034
|
)
|
|
14033
14035
|
) }),
|
|
14034
14036
|
/* @__PURE__ */ s(
|
|
@@ -14074,8 +14076,8 @@ const Tu = async (e) => {
|
|
|
14074
14076
|
for (const f of u) {
|
|
14075
14077
|
const w = f[1] ?? "", b = e.includes(w) ? { url: w } : null;
|
|
14076
14078
|
if (b) {
|
|
14077
|
-
const
|
|
14078
|
-
h[w] =
|
|
14079
|
+
const A = await fe(b.url) || "";
|
|
14080
|
+
h[w] = A;
|
|
14079
14081
|
}
|
|
14080
14082
|
}
|
|
14081
14083
|
const m = {}, p = /<figure\b[^>]*>[\s\S]*?<\/figure>/g;
|
|
@@ -14100,17 +14102,17 @@ const Tu = async (e) => {
|
|
|
14100
14102
|
if (!d) break;
|
|
14101
14103
|
const u = d[0], h = d[1] ?? "";
|
|
14102
14104
|
r.add(h);
|
|
14103
|
-
const m = u.match(/<figcaption[^>]*>([\s\S]*?)<\/figcaption>/i), p = m ? m[1].replace(/<[^>]+>/g, "").trim() : null, f = u.match(/<img\b[^>]*\balt=["']([^"']*)["']/), w = u.match(/<img\b[^>]*\btitle=["']([^"']*)["']/), b = p || f?.[1] || w?.[1] || "imagen",
|
|
14105
|
+
const m = u.match(/<figcaption[^>]*>([\s\S]*?)<\/figcaption>/i), p = m ? m[1].replace(/<[^>]+>/g, "").trim() : null, f = u.match(/<img\b[^>]*\balt=["']([^"']*)["']/), w = u.match(/<img\b[^>]*\btitle=["']([^"']*)["']/), b = p || f?.[1] || w?.[1] || "imagen", A = h.match(/__scale=([^&"']+)/), y = A ? decodeURIComponent(A[1]) : null;
|
|
14104
14106
|
let N = 0, v = 0;
|
|
14105
|
-
if (
|
|
14106
|
-
const $ =
|
|
14107
|
+
if (y) {
|
|
14108
|
+
const $ = y.match(/w:(\d+)/), O = y.match(/h:(\d+)/);
|
|
14107
14109
|
N = $ ? parseInt($[1]) : 0, v = O ? parseInt(O[1]) : 0;
|
|
14108
14110
|
}
|
|
14109
|
-
const
|
|
14111
|
+
const x = {
|
|
14110
14112
|
preview: {
|
|
14111
14113
|
sizes: [
|
|
14112
14114
|
{
|
|
14113
|
-
scale:
|
|
14115
|
+
scale: y || `w:${N},h:${v},t:2`,
|
|
14114
14116
|
url: h,
|
|
14115
14117
|
width: N,
|
|
14116
14118
|
height: v
|
|
@@ -14127,7 +14129,7 @@ const Tu = async (e) => {
|
|
|
14127
14129
|
},
|
|
14128
14130
|
isLarge: !1,
|
|
14129
14131
|
priorityHigh: !1
|
|
14130
|
-
}, P = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(
|
|
14132
|
+
}, P = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(x))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
|
|
14131
14133
|
a = a.replace(u, P), o.lastIndex = 0;
|
|
14132
14134
|
}
|
|
14133
14135
|
const l = /<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g, c = [...a.matchAll(l)];
|
|
@@ -14135,25 +14137,25 @@ const Tu = async (e) => {
|
|
|
14135
14137
|
const u = d[0], h = d[1] ?? "";
|
|
14136
14138
|
if (r.has(h)) continue;
|
|
14137
14139
|
const m = u.match(/\balt=["']([^"']*)["']/), p = u.match(/\btitle=["']([^"']*)["']/), f = m?.[1] || p?.[1] || "imagen", w = h.match(/__scale=([^&"']+)/), b = w ? decodeURIComponent(w[1]) : null;
|
|
14138
|
-
let
|
|
14140
|
+
let A = 0, y = 0;
|
|
14139
14141
|
if (b) {
|
|
14140
14142
|
const T = b.match(/w:(\d+)/), P = b.match(/h:(\d+)/);
|
|
14141
|
-
|
|
14143
|
+
A = T ? parseInt(T[1]) : 0, y = P ? parseInt(P[1]) : 0;
|
|
14142
14144
|
}
|
|
14143
14145
|
const v = {
|
|
14144
14146
|
preview: {
|
|
14145
14147
|
sizes: [
|
|
14146
14148
|
{
|
|
14147
|
-
scale: b || `w:${
|
|
14149
|
+
scale: b || `w:${A},h:${y},t:2`,
|
|
14148
14150
|
url: h,
|
|
14149
|
-
width:
|
|
14150
|
-
height:
|
|
14151
|
+
width: A,
|
|
14152
|
+
height: y
|
|
14151
14153
|
}
|
|
14152
14154
|
],
|
|
14153
14155
|
original: {
|
|
14154
14156
|
url: h.split("?")[0],
|
|
14155
|
-
width:
|
|
14156
|
-
height:
|
|
14157
|
+
width: A,
|
|
14158
|
+
height: y
|
|
14157
14159
|
},
|
|
14158
14160
|
copyright: !1,
|
|
14159
14161
|
description: f,
|
|
@@ -14161,8 +14163,8 @@ const Tu = async (e) => {
|
|
|
14161
14163
|
},
|
|
14162
14164
|
isLarge: !1,
|
|
14163
14165
|
priorityHigh: !1
|
|
14164
|
-
},
|
|
14165
|
-
a = a.replace(u,
|
|
14166
|
+
}, x = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(v))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
|
|
14167
|
+
a = a.replace(u, x);
|
|
14166
14168
|
}
|
|
14167
14169
|
return a;
|
|
14168
14170
|
}, Pu = (e) => e.replace(
|
|
@@ -14198,7 +14200,7 @@ const Tu = async (e) => {
|
|
|
14198
14200
|
"gi"
|
|
14199
14201
|
).test(d)) {
|
|
14200
14202
|
c++;
|
|
14201
|
-
const w = l ? l.get(c) : t.find((
|
|
14203
|
+
const w = l ? l.get(c) : t.find((A) => A.key === `block_2_${i[c]}`);
|
|
14202
14204
|
if (!w || !w.show) return m;
|
|
14203
14205
|
const b = ys(w.value, n);
|
|
14204
14206
|
return b ? `${m}<div class="banner-context">${o ? Pu(b) : b}</div>` : m;
|
|
@@ -14230,17 +14232,17 @@ const Tu = async (e) => {
|
|
|
14230
14232
|
const a = /<span data-src="(.*?)"><\/span>/g, r = [...e.matchAll(a)];
|
|
14231
14233
|
let o = e;
|
|
14232
14234
|
for (const i of r) {
|
|
14233
|
-
const l = i[0], c = i[1] ?? "", d = n.find((
|
|
14234
|
-
const N =
|
|
14235
|
+
const l = i[0], c = i[1] ?? "", d = n.find((y) => {
|
|
14236
|
+
const N = y?.[0]?.info.link.internal;
|
|
14235
14237
|
return !!N && c.includes(N);
|
|
14236
14238
|
});
|
|
14237
14239
|
if (!d || !d[0]) continue;
|
|
14238
14240
|
const u = d[0].preview?.sizes?.[0], h = u ? await fe(u.url) : "", m = d[0].info.section?.url ?? "#", p = d[0].info.section?.name ?? "Sección", f = d[0].info.link?.url ?? "#", w = d[0].main?.title.article ?? "Título", b = (await Promise.all(
|
|
14239
|
-
(d[0].preview?.sizes ?? []).map(async (
|
|
14240
|
-
const v = await fe(
|
|
14241
|
+
(d[0].preview?.sizes ?? []).map(async (y, N) => {
|
|
14242
|
+
const v = await fe(y.url);
|
|
14241
14243
|
return N === 0 ? `<source srcset="${v}" media="(width >= 900px)"/>` : `<source srcset="${v}" media="(width < 900px)"/>`;
|
|
14242
14244
|
})
|
|
14243
|
-
)).reduce((
|
|
14245
|
+
)).reduce((y, N) => y += N, ""), A = `
|
|
14244
14246
|
<span data-src="${c}">
|
|
14245
14247
|
<picture style='display: flex'>
|
|
14246
14248
|
${b}
|
|
@@ -14252,7 +14254,7 @@ const Tu = async (e) => {
|
|
|
14252
14254
|
</div>
|
|
14253
14255
|
</span>
|
|
14254
14256
|
`;
|
|
14255
|
-
o = o.replace(l,
|
|
14257
|
+
o = o.replace(l, A);
|
|
14256
14258
|
}
|
|
14257
14259
|
return o;
|
|
14258
14260
|
};
|
|
@@ -14266,47 +14268,47 @@ async function Mu(e, t) {
|
|
|
14266
14268
|
let c = 1, d = l;
|
|
14267
14269
|
const u = e.length;
|
|
14268
14270
|
for (; d < u && c > 0; ) {
|
|
14269
|
-
const
|
|
14270
|
-
if (
|
|
14271
|
+
const A = e.indexOf("<div", d), y = e.indexOf("</div>", d);
|
|
14272
|
+
if (y === -1) {
|
|
14271
14273
|
d = u;
|
|
14272
14274
|
break;
|
|
14273
14275
|
}
|
|
14274
|
-
|
|
14276
|
+
A !== -1 && A < y ? (c += 1, d = A + 4) : (c -= 1, d = y + 6);
|
|
14275
14277
|
}
|
|
14276
14278
|
const h = d, m = e.slice(i, h);
|
|
14277
14279
|
let p = null;
|
|
14278
14280
|
const f = /<span\b([^>]*)>/gi;
|
|
14279
14281
|
let w;
|
|
14280
14282
|
for (; (w = f.exec(m)) !== null; ) {
|
|
14281
|
-
const
|
|
14282
|
-
if (!
|
|
14283
|
-
if (/data-type\s*=\s*["']?video["']?/i.test(
|
|
14284
|
-
const
|
|
14285
|
-
if (
|
|
14286
|
-
p =
|
|
14283
|
+
const A = w[1];
|
|
14284
|
+
if (!A) break;
|
|
14285
|
+
if (/data-type\s*=\s*["']?video["']?/i.test(A)) {
|
|
14286
|
+
const y = A.match(/data-src\s*=\s*["']([^"']+)["']/i);
|
|
14287
|
+
if (y) {
|
|
14288
|
+
p = y[1] ?? "";
|
|
14287
14289
|
break;
|
|
14288
14290
|
}
|
|
14289
14291
|
}
|
|
14290
14292
|
}
|
|
14291
14293
|
if (!p) {
|
|
14292
|
-
const
|
|
14294
|
+
const A = m.match(
|
|
14293
14295
|
/<span\b[^>]*data-src=["'][^"']+["'][^>]*>/i
|
|
14294
14296
|
);
|
|
14295
|
-
if (
|
|
14296
|
-
const
|
|
14297
|
-
|
|
14297
|
+
if (A) {
|
|
14298
|
+
const y = A[0].match(/data-src\s*=\s*["']([^"']+)["']/i);
|
|
14299
|
+
y && (p = y[1] ?? "");
|
|
14298
14300
|
}
|
|
14299
14301
|
}
|
|
14300
14302
|
let b = "";
|
|
14301
14303
|
if (p)
|
|
14302
14304
|
try {
|
|
14303
|
-
const
|
|
14304
|
-
if (
|
|
14305
|
-
const N =
|
|
14305
|
+
const A = await t.iframe({ path: p }), y = t.schema ? await t.schema(p) : null;
|
|
14306
|
+
if (A && A.data) {
|
|
14307
|
+
const N = A.data.data[0];
|
|
14306
14308
|
let v = "";
|
|
14307
14309
|
const C = m.match(
|
|
14308
14310
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
14309
|
-
),
|
|
14311
|
+
), x = C && C[1] ? C[1].trim() : "";
|
|
14310
14312
|
N.info && N.info.type === "video-youtube" ? v = `<iframe
|
|
14311
14313
|
loading="lazy"
|
|
14312
14314
|
frameborder="0"
|
|
@@ -14322,19 +14324,19 @@ async function Mu(e, t) {
|
|
|
14322
14324
|
allowfullscreen
|
|
14323
14325
|
style="position: relative!important;"
|
|
14324
14326
|
src="${N.main?.code || ""}"></iframe>` : v = N.main?.code || "";
|
|
14325
|
-
const T =
|
|
14327
|
+
const T = x || N.main?.description || "";
|
|
14326
14328
|
b = `
|
|
14327
14329
|
<figure class="videoFigure">
|
|
14328
|
-
${
|
|
14329
|
-
JSON.stringify(
|
|
14330
|
+
${y && y.data && y.data.data ? `<script type="application/ld+json">${Rn(
|
|
14331
|
+
JSON.stringify(y.data.data)
|
|
14330
14332
|
)}<\/script>` : ""}
|
|
14331
14333
|
${v}
|
|
14332
14334
|
<figcaption>${T}</figcaption>
|
|
14333
14335
|
</figure>
|
|
14334
14336
|
`;
|
|
14335
14337
|
}
|
|
14336
|
-
} catch (
|
|
14337
|
-
console.error("insertVideos error for", p,
|
|
14338
|
+
} catch (A) {
|
|
14339
|
+
console.error("insertVideos error for", p, A), b = "";
|
|
14338
14340
|
}
|
|
14339
14341
|
else
|
|
14340
14342
|
b = m;
|
|
@@ -14448,7 +14450,7 @@ async function _u(e) {
|
|
|
14448
14450
|
),
|
|
14449
14451
|
p.length > 0 && /* @__PURE__ */ g("div", { className: "sass-pg-nrs-noteSource", children: [
|
|
14450
14452
|
/* @__PURE__ */ s(Cu, {}),
|
|
14451
|
-
/* @__PURE__ */ s("p", { children: String(e.texts.noteSource ?? "") + (p.length === 1 ? "" : "s") + ": " + p.map((
|
|
14453
|
+
/* @__PURE__ */ s("p", { children: String(e.texts.noteSource ?? "") + (p.length === 1 ? "" : "s") + ": " + p.map((A) => A.name).join(", ") })
|
|
14452
14454
|
] }),
|
|
14453
14455
|
!w && t && t.hascontent && t.hascontent.hasembeddedtwitter && /* @__PURE__ */ s("script", { async: !0, defer: !0, src: "https://platform.twitter.com/widgets.js" })
|
|
14454
14456
|
] });
|
|
@@ -14479,7 +14481,7 @@ const qu = (e) => {
|
|
|
14479
14481
|
scope: f,
|
|
14480
14482
|
customSummary: w,
|
|
14481
14483
|
subtitleBeforeImage: b,
|
|
14482
|
-
headerSectionStyles:
|
|
14484
|
+
headerSectionStyles: A
|
|
14483
14485
|
} = e;
|
|
14484
14486
|
if (c)
|
|
14485
14487
|
return /* @__PURE__ */ g(Y, { children: [
|
|
@@ -14502,7 +14504,7 @@ const qu = (e) => {
|
|
|
14502
14504
|
commonServices: a,
|
|
14503
14505
|
customSummary: w,
|
|
14504
14506
|
subtitleBeforeImage: b,
|
|
14505
|
-
headerSectionStyles:
|
|
14507
|
+
headerSectionStyles: A
|
|
14506
14508
|
}
|
|
14507
14509
|
),
|
|
14508
14510
|
/* @__PURE__ */ s(Ee, { banners: l ?? [], name: "block_3", scope: f })
|
|
@@ -14722,13 +14724,13 @@ function of({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14722
14724
|
}
|
|
14723
14725
|
const C = encodeURIComponent(window.location.pathname);
|
|
14724
14726
|
window.location.href = `/api/auth/login?redirect=${C}`;
|
|
14725
|
-
},
|
|
14726
|
-
l((T) => ({ ...T, [C]:
|
|
14727
|
-
},
|
|
14727
|
+
}, A = (C, x) => {
|
|
14728
|
+
l((T) => ({ ...T, [C]: x }));
|
|
14729
|
+
}, y = async (C) => {
|
|
14728
14730
|
C.preventDefault(), p(null), h(!0);
|
|
14729
14731
|
try {
|
|
14730
|
-
const
|
|
14731
|
-
if (
|
|
14732
|
+
const x = Object.keys(r).filter((F) => !["username", "password", "confirmPassword"].includes(F)).map((F) => ({ Name: F, Value: i[F] }));
|
|
14733
|
+
if (x.some((F) => {
|
|
14732
14734
|
if (!F.Value || F.Value.trim() === "") return !0;
|
|
14733
14735
|
}))
|
|
14734
14736
|
return h(!1), p(a.errorCompleteFields);
|
|
@@ -14744,7 +14746,7 @@ function of({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14744
14746
|
return;
|
|
14745
14747
|
}
|
|
14746
14748
|
const $ = Math.floor(Date.now() / 1e3);
|
|
14747
|
-
|
|
14749
|
+
x.push({ Name: "updated_at", Value: String($) });
|
|
14748
14750
|
const O = t.PUBLIC_ENV === "local" ? "token" : await Hn(
|
|
14749
14751
|
"comment_register",
|
|
14750
14752
|
t.CAPTCHA_KEY ?? ""
|
|
@@ -14756,7 +14758,7 @@ function of({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14756
14758
|
body: JSON.stringify({
|
|
14757
14759
|
username: i.email,
|
|
14758
14760
|
password: i.password,
|
|
14759
|
-
userAttributes:
|
|
14761
|
+
userAttributes: x,
|
|
14760
14762
|
token: O
|
|
14761
14763
|
})
|
|
14762
14764
|
});
|
|
@@ -14773,8 +14775,8 @@ function of({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14773
14775
|
throw new Error(F?.error || "Error al crear usuario");
|
|
14774
14776
|
}
|
|
14775
14777
|
w("confirm");
|
|
14776
|
-
} catch (
|
|
14777
|
-
console.log(
|
|
14778
|
+
} catch (x) {
|
|
14779
|
+
console.log(x), p(x?.message || x?.error || a.errorUnexpected);
|
|
14778
14780
|
} finally {
|
|
14779
14781
|
h(!1);
|
|
14780
14782
|
}
|
|
@@ -14785,7 +14787,7 @@ function of({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14785
14787
|
}
|
|
14786
14788
|
p(null), h(!0);
|
|
14787
14789
|
try {
|
|
14788
|
-
const
|
|
14790
|
+
const x = await fetch("/api/auth/confirm-user", {
|
|
14789
14791
|
method: "POST",
|
|
14790
14792
|
headers: { "Content-Type": "application/json" },
|
|
14791
14793
|
body: JSON.stringify({
|
|
@@ -14793,13 +14795,13 @@ function of({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14793
14795
|
code: i.confirmationCode
|
|
14794
14796
|
})
|
|
14795
14797
|
});
|
|
14796
|
-
if (!
|
|
14797
|
-
const T = await
|
|
14798
|
+
if (!x.ok) {
|
|
14799
|
+
const T = await x.json().catch(() => ({}));
|
|
14798
14800
|
throw new Error(T?.error || "Error al confirmar usuario");
|
|
14799
14801
|
}
|
|
14800
14802
|
w("success");
|
|
14801
|
-
} catch (
|
|
14802
|
-
p(
|
|
14803
|
+
} catch (x) {
|
|
14804
|
+
p(x?.message || a.errorUnexpected);
|
|
14803
14805
|
} finally {
|
|
14804
14806
|
h(!1);
|
|
14805
14807
|
}
|
|
@@ -14821,19 +14823,19 @@ function of({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14821
14823
|
/* @__PURE__ */ g(
|
|
14822
14824
|
"form",
|
|
14823
14825
|
{
|
|
14824
|
-
onSubmit:
|
|
14826
|
+
onSubmit: y,
|
|
14825
14827
|
className: "sass-pg-login-form",
|
|
14826
14828
|
"data-error": m ? "true" : "false",
|
|
14827
14829
|
children: [
|
|
14828
|
-
/* @__PURE__ */ s("ul", { className: "sass-pg-login-formUl", children: Object.entries(r).map(([C, { label:
|
|
14829
|
-
/* @__PURE__ */ s("label", { className: "sass-pg-login-label", children:
|
|
14830
|
+
/* @__PURE__ */ s("ul", { className: "sass-pg-login-formUl", children: Object.entries(r).map(([C, { label: x }]) => /* @__PURE__ */ g("div", { className: "sass-pg-login-field", children: [
|
|
14831
|
+
/* @__PURE__ */ s("label", { className: "sass-pg-login-label", children: x }),
|
|
14830
14832
|
/* @__PURE__ */ s(
|
|
14831
14833
|
"input",
|
|
14832
14834
|
{
|
|
14833
14835
|
type: C.toLowerCase().includes("password") ? c ? "text" : "password" : C === "birthdate" ? "date" : C === "email" ? "email" : C === "phone_number" ? "tel" : "text",
|
|
14834
14836
|
name: C,
|
|
14835
14837
|
value: i[C] || "",
|
|
14836
|
-
onChange: (T) =>
|
|
14838
|
+
onChange: (T) => A(C, T.target.value),
|
|
14837
14839
|
className: "sass-pg-login-input",
|
|
14838
14840
|
placeholder: ""
|
|
14839
14841
|
}
|
|
@@ -14900,7 +14902,7 @@ function of({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
14900
14902
|
type: "text",
|
|
14901
14903
|
name: "confirmationCode",
|
|
14902
14904
|
value: i.confirmationCode || "",
|
|
14903
|
-
onChange: (C) =>
|
|
14905
|
+
onChange: (C) => A("confirmationCode", C.target.value),
|
|
14904
14906
|
className: "sass-pg-login-input",
|
|
14905
14907
|
required: !0
|
|
14906
14908
|
}
|
|
@@ -14974,12 +14976,12 @@ function lf({
|
|
|
14974
14976
|
API_ENV: e,
|
|
14975
14977
|
texts: t
|
|
14976
14978
|
}) {
|
|
14977
|
-
const n = { ...Hu, ...t?.comentarios }, [a, r] = V("login"), [o, i] = V(""), [l, c] = V(""), [d, u] = V(""), [h, m] = V(""), [p, f] = V(""), [w, b] = V(!1), [
|
|
14979
|
+
const n = { ...Hu, ...t?.comentarios }, [a, r] = V("login"), [o, i] = V(""), [l, c] = V(""), [d, u] = V(""), [h, m] = V(""), [p, f] = V(""), [w, b] = V(!1), [A, y] = V(!1), [N, v] = V(null);
|
|
14978
14980
|
me.useEffect(() => {
|
|
14979
14981
|
if (typeof window > "u") return;
|
|
14980
|
-
window.location.hash.includes("forgot") && a === "login" && r("forgot"), a === "login" &&
|
|
14982
|
+
window.location.hash.includes("forgot") && a === "login" && r("forgot"), a === "login" && x();
|
|
14981
14983
|
});
|
|
14982
|
-
const C = (R) => document.cookie.split("; ").find((F) => F.startsWith(R + "="))?.split("=")[1],
|
|
14984
|
+
const C = (R) => document.cookie.split("; ").find((F) => F.startsWith(R + "="))?.split("=")[1], x = async () => {
|
|
14983
14985
|
if (document.cookie.search(e.COGNITO_AUTH_PREFIX + "IS_AUTH=true") !== -1) {
|
|
14984
14986
|
if (!window) return;
|
|
14985
14987
|
const R = C("redirect_after_login_1");
|
|
@@ -14993,18 +14995,18 @@ function lf({
|
|
|
14993
14995
|
email: o,
|
|
14994
14996
|
password: l,
|
|
14995
14997
|
showPassword: w,
|
|
14996
|
-
loading:
|
|
14998
|
+
loading: A,
|
|
14997
14999
|
error: N,
|
|
14998
15000
|
setEmail: i,
|
|
14999
15001
|
setPassword: c,
|
|
15000
15002
|
setShowPassword: b,
|
|
15001
15003
|
onSubmit: async (R) => {
|
|
15002
|
-
if (!
|
|
15004
|
+
if (!A) {
|
|
15003
15005
|
if (R.preventDefault(), o === "" || l === "") {
|
|
15004
15006
|
v("Complete todos los campos");
|
|
15005
15007
|
return;
|
|
15006
15008
|
}
|
|
15007
|
-
v(null),
|
|
15009
|
+
v(null), y(!0);
|
|
15008
15010
|
try {
|
|
15009
15011
|
const F = e.PUBLIC_ENV === "local" ? "token" : await Hn("comment_login", e.CAPTCHA_KEY || "");
|
|
15010
15012
|
if (!F) throw new Error("Captcha token no generado");
|
|
@@ -15018,12 +15020,12 @@ function lf({
|
|
|
15018
15020
|
const B = await z.json().catch(() => ({}));
|
|
15019
15021
|
throw new Error(B?.error || "Ha ocurrido un error");
|
|
15020
15022
|
}
|
|
15021
|
-
await
|
|
15023
|
+
await x();
|
|
15022
15024
|
return;
|
|
15023
15025
|
} catch (F) {
|
|
15024
15026
|
v(F?.message || "Error inesperado");
|
|
15025
15027
|
} finally {
|
|
15026
|
-
|
|
15028
|
+
y(!1);
|
|
15027
15029
|
}
|
|
15028
15030
|
}
|
|
15029
15031
|
},
|
|
@@ -15047,11 +15049,11 @@ function lf({
|
|
|
15047
15049
|
{
|
|
15048
15050
|
email: o,
|
|
15049
15051
|
setEmail: i,
|
|
15050
|
-
loading:
|
|
15052
|
+
loading: A,
|
|
15051
15053
|
error: N,
|
|
15052
15054
|
onSubmit: async (R) => {
|
|
15053
|
-
if (!
|
|
15054
|
-
R.preventDefault(), v(null),
|
|
15055
|
+
if (!A) {
|
|
15056
|
+
R.preventDefault(), v(null), y(!0);
|
|
15055
15057
|
try {
|
|
15056
15058
|
const F = await fetch("/api/auth/forgot-password", {
|
|
15057
15059
|
method: "POST",
|
|
@@ -15066,7 +15068,7 @@ function lf({
|
|
|
15066
15068
|
} catch (F) {
|
|
15067
15069
|
v(F?.message || "Error inesperado");
|
|
15068
15070
|
} finally {
|
|
15069
|
-
|
|
15071
|
+
y(!1);
|
|
15070
15072
|
}
|
|
15071
15073
|
}
|
|
15072
15074
|
},
|
|
@@ -15084,14 +15086,14 @@ function lf({
|
|
|
15084
15086
|
newPassword: h,
|
|
15085
15087
|
confirmNewPassword: p,
|
|
15086
15088
|
showPassword: w,
|
|
15087
|
-
loading:
|
|
15089
|
+
loading: A,
|
|
15088
15090
|
error: N,
|
|
15089
15091
|
setConfirmationCode: u,
|
|
15090
15092
|
setNewPassword: m,
|
|
15091
15093
|
setConfirmNewPassword: f,
|
|
15092
15094
|
setShowPassword: b,
|
|
15093
15095
|
onSubmit: async (R) => {
|
|
15094
|
-
if (
|
|
15096
|
+
if (A) return;
|
|
15095
15097
|
if (R.preventDefault(), h !== p) {
|
|
15096
15098
|
v("Las contraseñas no coinciden");
|
|
15097
15099
|
return;
|
|
@@ -15102,7 +15104,7 @@ function lf({
|
|
|
15102
15104
|
v("La contraseña no cumple con los requisitos");
|
|
15103
15105
|
return;
|
|
15104
15106
|
}
|
|
15105
|
-
v(null),
|
|
15107
|
+
v(null), y(!0);
|
|
15106
15108
|
try {
|
|
15107
15109
|
const z = await fetch("/api/auth/confirm-forgot-password", {
|
|
15108
15110
|
method: "POST",
|
|
@@ -15117,7 +15119,7 @@ function lf({
|
|
|
15117
15119
|
} catch (z) {
|
|
15118
15120
|
v(z?.message || "Error inesperado");
|
|
15119
15121
|
} finally {
|
|
15120
|
-
|
|
15122
|
+
y(!1);
|
|
15121
15123
|
}
|
|
15122
15124
|
},
|
|
15123
15125
|
onBack: () => {
|
|
@@ -15331,9 +15333,9 @@ function Qu({
|
|
|
15331
15333
|
}
|
|
15332
15334
|
),
|
|
15333
15335
|
/* @__PURE__ */ s("div", { className: "sass-pg-login-passwordChecker", children: Wr.map((w, b) => {
|
|
15334
|
-
const
|
|
15335
|
-
return /* @__PURE__ */ g("div", { className:
|
|
15336
|
-
/* @__PURE__ */ s("div", { children:
|
|
15336
|
+
const A = w.test(n);
|
|
15337
|
+
return /* @__PURE__ */ g("div", { className: A ? "sass-pg-login-valid" : "sass-pg-login-invalid", children: [
|
|
15338
|
+
/* @__PURE__ */ s("div", { children: A ? "✔" : "○" }),
|
|
15337
15339
|
/* @__PURE__ */ s("div", { children: w.label })
|
|
15338
15340
|
] }, b);
|
|
15339
15341
|
}) })
|
|
@@ -15585,21 +15587,21 @@ const df = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15585
15587
|
const b = new URLSearchParams({
|
|
15586
15588
|
section: e,
|
|
15587
15589
|
currentNewsLink: t
|
|
15588
|
-
}),
|
|
15589
|
-
if (!
|
|
15590
|
-
throw new Error(`HTTP error! status: ${
|
|
15591
|
-
return await
|
|
15590
|
+
}), A = await fetch(`/api/get-more-news?${b}`);
|
|
15591
|
+
if (!A.ok)
|
|
15592
|
+
throw new Error(`HTTP error! status: ${A.status}`);
|
|
15593
|
+
return await A.json();
|
|
15592
15594
|
}, [e, t]), f = ue(async () => {
|
|
15593
15595
|
const {
|
|
15594
15596
|
PUBLIC_API_FRONT: b,
|
|
15595
|
-
PUBLIC_X_SECURITY_TOKEN:
|
|
15596
|
-
PUBLIC_API_PATH_VERSION:
|
|
15597
|
+
PUBLIC_X_SECURITY_TOKEN: A,
|
|
15598
|
+
PUBLIC_API_PATH_VERSION: y,
|
|
15597
15599
|
PUBLIC_PUBLICATION_ID: N
|
|
15598
15600
|
} = o;
|
|
15599
|
-
if (!b || !
|
|
15601
|
+
if (!b || !A || !N || !y)
|
|
15600
15602
|
throw new Error("Missing required environment variables");
|
|
15601
15603
|
const v = await oe.get(
|
|
15602
|
-
`${b}${
|
|
15604
|
+
`${b}${y}/news-list-section`,
|
|
15603
15605
|
{
|
|
15604
15606
|
params: {
|
|
15605
15607
|
size: c + 1,
|
|
@@ -15609,7 +15611,7 @@ const df = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
15609
15611
|
publication: parseInt(N)
|
|
15610
15612
|
},
|
|
15611
15613
|
headers: {
|
|
15612
|
-
"x-api-token":
|
|
15614
|
+
"x-api-token": A,
|
|
15613
15615
|
"Content-Type": "application/json"
|
|
15614
15616
|
}
|
|
15615
15617
|
}
|
|
@@ -16003,11 +16005,11 @@ var La;
|
|
|
16003
16005
|
function om() {
|
|
16004
16006
|
if (La) return ie;
|
|
16005
16007
|
La = 1;
|
|
16006
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117,
|
|
16008
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
16007
16009
|
function N(C) {
|
|
16008
16010
|
if (typeof C == "object" && C !== null) {
|
|
16009
|
-
var
|
|
16010
|
-
switch (
|
|
16011
|
+
var x = C.$$typeof;
|
|
16012
|
+
switch (x) {
|
|
16011
16013
|
case t:
|
|
16012
16014
|
switch (C = C.type, C) {
|
|
16013
16015
|
case c:
|
|
@@ -16026,11 +16028,11 @@ function om() {
|
|
|
16026
16028
|
case i:
|
|
16027
16029
|
return C;
|
|
16028
16030
|
default:
|
|
16029
|
-
return
|
|
16031
|
+
return x;
|
|
16030
16032
|
}
|
|
16031
16033
|
}
|
|
16032
16034
|
case n:
|
|
16033
|
-
return
|
|
16035
|
+
return x;
|
|
16034
16036
|
}
|
|
16035
16037
|
}
|
|
16036
16038
|
}
|
|
@@ -16062,17 +16064,17 @@ function om() {
|
|
|
16062
16064
|
}, ie.isSuspense = function(C) {
|
|
16063
16065
|
return N(C) === h;
|
|
16064
16066
|
}, ie.isValidElementType = function(C) {
|
|
16065
|
-
return typeof C == "string" || typeof C == "function" || C === a || C === d || C === o || C === r || C === h || C === m || typeof C == "object" && C !== null && (C.$$typeof === f || C.$$typeof === p || C.$$typeof === i || C.$$typeof === l || C.$$typeof === u || C.$$typeof === b || C.$$typeof ===
|
|
16067
|
+
return typeof C == "string" || typeof C == "function" || C === a || C === d || C === o || C === r || C === h || C === m || typeof C == "object" && C !== null && (C.$$typeof === f || C.$$typeof === p || C.$$typeof === i || C.$$typeof === l || C.$$typeof === u || C.$$typeof === b || C.$$typeof === A || C.$$typeof === y || C.$$typeof === w);
|
|
16066
16068
|
}, ie.typeOf = N, ie;
|
|
16067
16069
|
}
|
|
16068
16070
|
var le = {};
|
|
16069
16071
|
var Pa;
|
|
16070
16072
|
function im() {
|
|
16071
16073
|
return Pa || (Pa = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
16072
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117,
|
|
16074
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
16073
16075
|
function N(D) {
|
|
16074
16076
|
return typeof D == "string" || typeof D == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
16075
|
-
D === a || D === d || D === o || D === r || D === h || D === m || typeof D == "object" && D !== null && (D.$$typeof === f || D.$$typeof === p || D.$$typeof === i || D.$$typeof === l || D.$$typeof === u || D.$$typeof === b || D.$$typeof ===
|
|
16077
|
+
D === a || D === d || D === o || D === r || D === h || D === m || typeof D == "object" && D !== null && (D.$$typeof === f || D.$$typeof === p || D.$$typeof === i || D.$$typeof === l || D.$$typeof === u || D.$$typeof === b || D.$$typeof === A || D.$$typeof === y || D.$$typeof === w);
|
|
16076
16078
|
}
|
|
16077
16079
|
function v(D) {
|
|
16078
16080
|
if (typeof D == "object" && D !== null) {
|
|
@@ -16106,11 +16108,11 @@ function im() {
|
|
|
16106
16108
|
}
|
|
16107
16109
|
}
|
|
16108
16110
|
}
|
|
16109
|
-
var C = c,
|
|
16111
|
+
var C = c, x = d, T = l, P = i, $ = t, O = u, R = a, F = f, z = p, B = n, L = o, U = r, j = h, M = !1;
|
|
16110
16112
|
function W(D) {
|
|
16111
|
-
return M || (M = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
16113
|
+
return M || (M = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), S(D) || v(D) === c;
|
|
16112
16114
|
}
|
|
16113
|
-
function
|
|
16115
|
+
function S(D) {
|
|
16114
16116
|
return v(D) === d;
|
|
16115
16117
|
}
|
|
16116
16118
|
function k(D) {
|
|
@@ -16146,7 +16148,7 @@ function im() {
|
|
|
16146
16148
|
function de(D) {
|
|
16147
16149
|
return v(D) === h;
|
|
16148
16150
|
}
|
|
16149
|
-
le.AsyncMode = C, le.ConcurrentMode =
|
|
16151
|
+
le.AsyncMode = C, le.ConcurrentMode = x, le.ContextConsumer = T, le.ContextProvider = P, le.Element = $, le.ForwardRef = O, le.Fragment = R, le.Lazy = F, le.Memo = z, le.Portal = B, le.Profiler = L, le.StrictMode = U, le.Suspense = j, le.isAsyncMode = W, le.isConcurrentMode = S, le.isContextConsumer = k, le.isContextProvider = q, le.isElement = H, le.isForwardRef = G, le.isFragment = Q, le.isLazy = K, le.isMemo = J, le.isPortal = ne, le.isProfiler = se, le.isStrictMode = X, le.isSuspense = de, le.isValidElementType = N, le.typeOf = v;
|
|
16150
16152
|
})()), le;
|
|
16151
16153
|
}
|
|
16152
16154
|
var Ra;
|
|
@@ -16278,25 +16280,25 @@ function dm() {
|
|
|
16278
16280
|
}
|
|
16279
16281
|
return ts = function(l, c) {
|
|
16280
16282
|
var d = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
16281
|
-
function h(
|
|
16282
|
-
var k =
|
|
16283
|
+
function h(S) {
|
|
16284
|
+
var k = S && (d && S[d] || S[u]);
|
|
16283
16285
|
if (typeof k == "function")
|
|
16284
16286
|
return k;
|
|
16285
16287
|
}
|
|
16286
16288
|
var m = "<<anonymous>>", p = {
|
|
16287
|
-
array:
|
|
16288
|
-
bigint:
|
|
16289
|
-
bool:
|
|
16290
|
-
func:
|
|
16291
|
-
number:
|
|
16292
|
-
object:
|
|
16293
|
-
string:
|
|
16294
|
-
symbol:
|
|
16295
|
-
any:
|
|
16289
|
+
array: A("array"),
|
|
16290
|
+
bigint: A("bigint"),
|
|
16291
|
+
bool: A("boolean"),
|
|
16292
|
+
func: A("function"),
|
|
16293
|
+
number: A("number"),
|
|
16294
|
+
object: A("object"),
|
|
16295
|
+
string: A("string"),
|
|
16296
|
+
symbol: A("symbol"),
|
|
16297
|
+
any: y(),
|
|
16296
16298
|
arrayOf: N,
|
|
16297
16299
|
element: v(),
|
|
16298
16300
|
elementType: C(),
|
|
16299
|
-
instanceOf:
|
|
16301
|
+
instanceOf: x,
|
|
16300
16302
|
node: O(),
|
|
16301
16303
|
objectOf: P,
|
|
16302
16304
|
oneOf: T,
|
|
@@ -16304,14 +16306,14 @@ function dm() {
|
|
|
16304
16306
|
shape: F,
|
|
16305
16307
|
exact: z
|
|
16306
16308
|
};
|
|
16307
|
-
function f(
|
|
16308
|
-
return
|
|
16309
|
+
function f(S, k) {
|
|
16310
|
+
return S === k ? S !== 0 || 1 / S === 1 / k : S !== S && k !== k;
|
|
16309
16311
|
}
|
|
16310
|
-
function w(
|
|
16311
|
-
this.message =
|
|
16312
|
+
function w(S, k) {
|
|
16313
|
+
this.message = S, this.data = k && typeof k == "object" ? k : {}, this.stack = "";
|
|
16312
16314
|
}
|
|
16313
16315
|
w.prototype = Error.prototype;
|
|
16314
|
-
function b(
|
|
16316
|
+
function b(S) {
|
|
16315
16317
|
if (process.env.NODE_ENV !== "production")
|
|
16316
16318
|
var k = {}, q = 0;
|
|
16317
16319
|
function H(Q, K, J, ne, se, X, de) {
|
|
@@ -16329,31 +16331,31 @@ function dm() {
|
|
|
16329
16331
|
), k[Ae] = !0, q++);
|
|
16330
16332
|
}
|
|
16331
16333
|
}
|
|
16332
|
-
return K[J] == null ? Q ? K[J] === null ? new w("The " + se + " `" + X + "` is marked as required " + ("in `" + ne + "`, but its value is `null`.")) : new w("The " + se + " `" + X + "` is marked as required in " + ("`" + ne + "`, but its value is `undefined`.")) : null :
|
|
16334
|
+
return K[J] == null ? Q ? K[J] === null ? new w("The " + se + " `" + X + "` is marked as required " + ("in `" + ne + "`, but its value is `null`.")) : new w("The " + se + " `" + X + "` is marked as required in " + ("`" + ne + "`, but its value is `undefined`.")) : null : S(K, J, ne, se, X);
|
|
16333
16335
|
}
|
|
16334
16336
|
var G = H.bind(null, !1);
|
|
16335
16337
|
return G.isRequired = H.bind(null, !0), G;
|
|
16336
16338
|
}
|
|
16337
|
-
function
|
|
16339
|
+
function A(S) {
|
|
16338
16340
|
function k(q, H, G, Q, K, J) {
|
|
16339
16341
|
var ne = q[H], se = U(ne);
|
|
16340
|
-
if (se !==
|
|
16342
|
+
if (se !== S) {
|
|
16341
16343
|
var X = j(ne);
|
|
16342
16344
|
return new w(
|
|
16343
|
-
"Invalid " + Q + " `" + K + "` of type " + ("`" + X + "` supplied to `" + G + "`, expected ") + ("`" +
|
|
16344
|
-
{ expectedType:
|
|
16345
|
+
"Invalid " + Q + " `" + K + "` of type " + ("`" + X + "` supplied to `" + G + "`, expected ") + ("`" + S + "`."),
|
|
16346
|
+
{ expectedType: S }
|
|
16345
16347
|
);
|
|
16346
16348
|
}
|
|
16347
16349
|
return null;
|
|
16348
16350
|
}
|
|
16349
16351
|
return b(k);
|
|
16350
16352
|
}
|
|
16351
|
-
function
|
|
16353
|
+
function y() {
|
|
16352
16354
|
return b(i);
|
|
16353
16355
|
}
|
|
16354
|
-
function N(
|
|
16356
|
+
function N(S) {
|
|
16355
16357
|
function k(q, H, G, Q, K) {
|
|
16356
|
-
if (typeof
|
|
16358
|
+
if (typeof S != "function")
|
|
16357
16359
|
return new w("Property `" + K + "` of component `" + G + "` has invalid PropType notation inside arrayOf.");
|
|
16358
16360
|
var J = q[H];
|
|
16359
16361
|
if (!Array.isArray(J)) {
|
|
@@ -16361,7 +16363,7 @@ function dm() {
|
|
|
16361
16363
|
return new w("Invalid " + Q + " `" + K + "` of type " + ("`" + ne + "` supplied to `" + G + "`, expected an array."));
|
|
16362
16364
|
}
|
|
16363
16365
|
for (var se = 0; se < J.length; se++) {
|
|
16364
|
-
var X =
|
|
16366
|
+
var X = S(J, se, G, Q, K + "[" + se + "]", n);
|
|
16365
16367
|
if (X instanceof Error)
|
|
16366
16368
|
return X;
|
|
16367
16369
|
}
|
|
@@ -16370,7 +16372,7 @@ function dm() {
|
|
|
16370
16372
|
return b(k);
|
|
16371
16373
|
}
|
|
16372
16374
|
function v() {
|
|
16373
|
-
function
|
|
16375
|
+
function S(k, q, H, G, Q) {
|
|
16374
16376
|
var K = k[q];
|
|
16375
16377
|
if (!l(K)) {
|
|
16376
16378
|
var J = U(K);
|
|
@@ -16378,10 +16380,10 @@ function dm() {
|
|
|
16378
16380
|
}
|
|
16379
16381
|
return null;
|
|
16380
16382
|
}
|
|
16381
|
-
return b(
|
|
16383
|
+
return b(S);
|
|
16382
16384
|
}
|
|
16383
16385
|
function C() {
|
|
16384
|
-
function
|
|
16386
|
+
function S(k, q, H, G, Q) {
|
|
16385
16387
|
var K = k[q];
|
|
16386
16388
|
if (!e.isValidElementType(K)) {
|
|
16387
16389
|
var J = U(K);
|
|
@@ -16389,28 +16391,28 @@ function dm() {
|
|
|
16389
16391
|
}
|
|
16390
16392
|
return null;
|
|
16391
16393
|
}
|
|
16392
|
-
return b(
|
|
16394
|
+
return b(S);
|
|
16393
16395
|
}
|
|
16394
|
-
function S
|
|
16396
|
+
function x(S) {
|
|
16395
16397
|
function k(q, H, G, Q, K) {
|
|
16396
|
-
if (!(q[H] instanceof
|
|
16397
|
-
var J =
|
|
16398
|
+
if (!(q[H] instanceof S)) {
|
|
16399
|
+
var J = S.name || m, ne = W(q[H]);
|
|
16398
16400
|
return new w("Invalid " + Q + " `" + K + "` of type " + ("`" + ne + "` supplied to `" + G + "`, expected ") + ("instance of `" + J + "`."));
|
|
16399
16401
|
}
|
|
16400
16402
|
return null;
|
|
16401
16403
|
}
|
|
16402
16404
|
return b(k);
|
|
16403
16405
|
}
|
|
16404
|
-
function T(
|
|
16405
|
-
if (!Array.isArray(
|
|
16406
|
+
function T(S) {
|
|
16407
|
+
if (!Array.isArray(S))
|
|
16406
16408
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
16407
16409
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
16408
16410
|
) : o("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
16409
16411
|
function k(q, H, G, Q, K) {
|
|
16410
|
-
for (var J = q[H], ne = 0; ne <
|
|
16411
|
-
if (f(J,
|
|
16412
|
+
for (var J = q[H], ne = 0; ne < S.length; ne++)
|
|
16413
|
+
if (f(J, S[ne]))
|
|
16412
16414
|
return null;
|
|
16413
|
-
var se = JSON.stringify(
|
|
16415
|
+
var se = JSON.stringify(S, function(de, D) {
|
|
16414
16416
|
var Ae = j(D);
|
|
16415
16417
|
return Ae === "symbol" ? String(D) : D;
|
|
16416
16418
|
});
|
|
@@ -16418,16 +16420,16 @@ function dm() {
|
|
|
16418
16420
|
}
|
|
16419
16421
|
return b(k);
|
|
16420
16422
|
}
|
|
16421
|
-
function P(
|
|
16423
|
+
function P(S) {
|
|
16422
16424
|
function k(q, H, G, Q, K) {
|
|
16423
|
-
if (typeof
|
|
16425
|
+
if (typeof S != "function")
|
|
16424
16426
|
return new w("Property `" + K + "` of component `" + G + "` has invalid PropType notation inside objectOf.");
|
|
16425
16427
|
var J = q[H], ne = U(J);
|
|
16426
16428
|
if (ne !== "object")
|
|
16427
16429
|
return new w("Invalid " + Q + " `" + K + "` of type " + ("`" + ne + "` supplied to `" + G + "`, expected an object."));
|
|
16428
16430
|
for (var se in J)
|
|
16429
16431
|
if (a(J, se)) {
|
|
16430
|
-
var X =
|
|
16432
|
+
var X = S(J, se, G, Q, K + "." + se, n);
|
|
16431
16433
|
if (X instanceof Error)
|
|
16432
16434
|
return X;
|
|
16433
16435
|
}
|
|
@@ -16435,19 +16437,19 @@ function dm() {
|
|
|
16435
16437
|
}
|
|
16436
16438
|
return b(k);
|
|
16437
16439
|
}
|
|
16438
|
-
function $(
|
|
16439
|
-
if (!Array.isArray(
|
|
16440
|
+
function $(S) {
|
|
16441
|
+
if (!Array.isArray(S))
|
|
16440
16442
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
16441
|
-
for (var k = 0; k <
|
|
16442
|
-
var q =
|
|
16443
|
+
for (var k = 0; k < S.length; k++) {
|
|
16444
|
+
var q = S[k];
|
|
16443
16445
|
if (typeof q != "function")
|
|
16444
16446
|
return o(
|
|
16445
16447
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M(q) + " at index " + k + "."
|
|
16446
16448
|
), i;
|
|
16447
16449
|
}
|
|
16448
16450
|
function H(G, Q, K, J, ne) {
|
|
16449
|
-
for (var se = [], X = 0; X <
|
|
16450
|
-
var de =
|
|
16451
|
+
for (var se = [], X = 0; X < S.length; X++) {
|
|
16452
|
+
var de = S[X], D = de(G, Q, K, J, ne, n);
|
|
16451
16453
|
if (D == null)
|
|
16452
16454
|
return null;
|
|
16453
16455
|
D.data && a(D.data, "expectedType") && se.push(D.data.expectedType);
|
|
@@ -16458,23 +16460,23 @@ function dm() {
|
|
|
16458
16460
|
return b(H);
|
|
16459
16461
|
}
|
|
16460
16462
|
function O() {
|
|
16461
|
-
function
|
|
16463
|
+
function S(k, q, H, G, Q) {
|
|
16462
16464
|
return B(k[q]) ? null : new w("Invalid " + G + " `" + Q + "` supplied to " + ("`" + H + "`, expected a ReactNode."));
|
|
16463
16465
|
}
|
|
16464
|
-
return b(
|
|
16466
|
+
return b(S);
|
|
16465
16467
|
}
|
|
16466
|
-
function R(
|
|
16468
|
+
function R(S, k, q, H, G) {
|
|
16467
16469
|
return new w(
|
|
16468
|
-
(
|
|
16470
|
+
(S || "React class") + ": " + k + " type `" + q + "." + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + G + "`."
|
|
16469
16471
|
);
|
|
16470
16472
|
}
|
|
16471
|
-
function F(
|
|
16473
|
+
function F(S) {
|
|
16472
16474
|
function k(q, H, G, Q, K) {
|
|
16473
16475
|
var J = q[H], ne = U(J);
|
|
16474
16476
|
if (ne !== "object")
|
|
16475
16477
|
return new w("Invalid " + Q + " `" + K + "` of type `" + ne + "` " + ("supplied to `" + G + "`, expected `object`."));
|
|
16476
|
-
for (var se in
|
|
16477
|
-
var X =
|
|
16478
|
+
for (var se in S) {
|
|
16479
|
+
var X = S[se];
|
|
16478
16480
|
if (typeof X != "function")
|
|
16479
16481
|
return R(G, Q, K, se, j(X));
|
|
16480
16482
|
var de = X(J, se, G, Q, K + "." + se, n);
|
|
@@ -16485,20 +16487,20 @@ function dm() {
|
|
|
16485
16487
|
}
|
|
16486
16488
|
return b(k);
|
|
16487
16489
|
}
|
|
16488
|
-
function z(
|
|
16490
|
+
function z(S) {
|
|
16489
16491
|
function k(q, H, G, Q, K) {
|
|
16490
16492
|
var J = q[H], ne = U(J);
|
|
16491
16493
|
if (ne !== "object")
|
|
16492
16494
|
return new w("Invalid " + Q + " `" + K + "` of type `" + ne + "` " + ("supplied to `" + G + "`, expected `object`."));
|
|
16493
|
-
var se = t({}, q[H],
|
|
16495
|
+
var se = t({}, q[H], S);
|
|
16494
16496
|
for (var X in se) {
|
|
16495
|
-
var de =
|
|
16496
|
-
if (a(
|
|
16497
|
+
var de = S[X];
|
|
16498
|
+
if (a(S, X) && typeof de != "function")
|
|
16497
16499
|
return R(G, Q, K, X, j(de));
|
|
16498
16500
|
if (!de)
|
|
16499
16501
|
return new w(
|
|
16500
16502
|
"Invalid " + Q + " `" + K + "` key `" + X + "` supplied to `" + G + "`.\nBad object: " + JSON.stringify(q[H], null, " ") + `
|
|
16501
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
16503
|
+
Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
16502
16504
|
);
|
|
16503
16505
|
var D = de(J, X, G, Q, K + "." + X, n);
|
|
16504
16506
|
if (D)
|
|
@@ -16508,23 +16510,23 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
16508
16510
|
}
|
|
16509
16511
|
return b(k);
|
|
16510
16512
|
}
|
|
16511
|
-
function B(
|
|
16512
|
-
switch (typeof
|
|
16513
|
+
function B(S) {
|
|
16514
|
+
switch (typeof S) {
|
|
16513
16515
|
case "number":
|
|
16514
16516
|
case "string":
|
|
16515
16517
|
case "undefined":
|
|
16516
16518
|
return !0;
|
|
16517
16519
|
case "boolean":
|
|
16518
|
-
return !
|
|
16520
|
+
return !S;
|
|
16519
16521
|
case "object":
|
|
16520
|
-
if (Array.isArray(
|
|
16521
|
-
return
|
|
16522
|
-
if (
|
|
16522
|
+
if (Array.isArray(S))
|
|
16523
|
+
return S.every(B);
|
|
16524
|
+
if (S === null || l(S))
|
|
16523
16525
|
return !0;
|
|
16524
|
-
var k = h(
|
|
16526
|
+
var k = h(S);
|
|
16525
16527
|
if (k) {
|
|
16526
|
-
var q = k.call(
|
|
16527
|
-
if (k !==
|
|
16528
|
+
var q = k.call(S), H;
|
|
16529
|
+
if (k !== S.entries) {
|
|
16528
16530
|
for (; !(H = q.next()).done; )
|
|
16529
16531
|
if (!B(H.value))
|
|
16530
16532
|
return !1;
|
|
@@ -16541,27 +16543,27 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
16541
16543
|
return !1;
|
|
16542
16544
|
}
|
|
16543
16545
|
}
|
|
16544
|
-
function L(
|
|
16545
|
-
return
|
|
16546
|
+
function L(S, k) {
|
|
16547
|
+
return S === "symbol" ? !0 : k ? k["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && k instanceof Symbol : !1;
|
|
16546
16548
|
}
|
|
16547
|
-
function U(
|
|
16548
|
-
var k = typeof
|
|
16549
|
-
return Array.isArray(
|
|
16549
|
+
function U(S) {
|
|
16550
|
+
var k = typeof S;
|
|
16551
|
+
return Array.isArray(S) ? "array" : S instanceof RegExp ? "object" : L(k, S) ? "symbol" : k;
|
|
16550
16552
|
}
|
|
16551
|
-
function j(
|
|
16552
|
-
if (typeof
|
|
16553
|
-
return "" +
|
|
16554
|
-
var k = U(
|
|
16553
|
+
function j(S) {
|
|
16554
|
+
if (typeof S > "u" || S === null)
|
|
16555
|
+
return "" + S;
|
|
16556
|
+
var k = U(S);
|
|
16555
16557
|
if (k === "object") {
|
|
16556
|
-
if (
|
|
16558
|
+
if (S instanceof Date)
|
|
16557
16559
|
return "date";
|
|
16558
|
-
if (
|
|
16560
|
+
if (S instanceof RegExp)
|
|
16559
16561
|
return "regexp";
|
|
16560
16562
|
}
|
|
16561
16563
|
return k;
|
|
16562
16564
|
}
|
|
16563
|
-
function M(
|
|
16564
|
-
var k = j(
|
|
16565
|
+
function M(S) {
|
|
16566
|
+
var k = j(S);
|
|
16565
16567
|
switch (k) {
|
|
16566
16568
|
case "array":
|
|
16567
16569
|
case "object":
|
|
@@ -16574,8 +16576,8 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
16574
16576
|
return k;
|
|
16575
16577
|
}
|
|
16576
16578
|
}
|
|
16577
|
-
function W(
|
|
16578
|
-
return !
|
|
16579
|
+
function W(S) {
|
|
16580
|
+
return !S.constructor || !S.constructor.name ? m : S.constructor.name;
|
|
16579
16581
|
}
|
|
16580
16582
|
return p.checkPropTypes = r, p.resetWarningCache = r.resetWarningCache, p.PropTypes = p, p;
|
|
16581
16583
|
}, ts;
|
|
@@ -16813,17 +16815,17 @@ function wm() {
|
|
|
16813
16815
|
function p(f, w, b) {
|
|
16814
16816
|
if (typeof w != "string") {
|
|
16815
16817
|
if (m) {
|
|
16816
|
-
var
|
|
16817
|
-
|
|
16818
|
-
}
|
|
16819
|
-
var
|
|
16820
|
-
d && (
|
|
16821
|
-
for (var N = i(f), v = i(w), C = 0; C <
|
|
16822
|
-
var
|
|
16823
|
-
if (!n[
|
|
16824
|
-
var T = u(w,
|
|
16818
|
+
var A = h(w);
|
|
16819
|
+
A && A !== m && p(f, A, b);
|
|
16820
|
+
}
|
|
16821
|
+
var y = c(w);
|
|
16822
|
+
d && (y = y.concat(d(w)));
|
|
16823
|
+
for (var N = i(f), v = i(w), C = 0; C < y.length; ++C) {
|
|
16824
|
+
var x = y[C];
|
|
16825
|
+
if (!n[x] && !(b && b[x]) && !(v && v[x]) && !(N && N[x])) {
|
|
16826
|
+
var T = u(w, x);
|
|
16825
16827
|
try {
|
|
16826
|
-
l(f,
|
|
16828
|
+
l(f, x, T);
|
|
16827
16829
|
} catch {
|
|
16828
16830
|
}
|
|
16829
16831
|
}
|
|
@@ -16882,17 +16884,17 @@ function Nm(e, t) {
|
|
|
16882
16884
|
h.observers[m](h);
|
|
16883
16885
|
delete window[t.callbackName];
|
|
16884
16886
|
}, d.componentDidMount = function() {
|
|
16885
|
-
var h = this, m = this.setupScriptURL(), p = this.asyncScriptLoaderGetScriptLoaderID(), f = t, w = f.globalName, b = f.callbackName,
|
|
16887
|
+
var h = this, m = this.setupScriptURL(), p = this.asyncScriptLoaderGetScriptLoaderID(), f = t, w = f.globalName, b = f.callbackName, A = f.scriptId;
|
|
16886
16888
|
if (w && typeof window[w] < "u" && (Ue[m] = {
|
|
16887
16889
|
loaded: !0,
|
|
16888
16890
|
observers: {}
|
|
16889
16891
|
}), Ue[m]) {
|
|
16890
|
-
var
|
|
16891
|
-
if (
|
|
16892
|
-
this.asyncScriptLoaderHandleLoad(
|
|
16892
|
+
var y = Ue[m];
|
|
16893
|
+
if (y && (y.loaded || y.errored)) {
|
|
16894
|
+
this.asyncScriptLoaderHandleLoad(y);
|
|
16893
16895
|
return;
|
|
16894
16896
|
}
|
|
16895
|
-
|
|
16897
|
+
y.observers[p] = function(T) {
|
|
16896
16898
|
return h.asyncScriptLoaderHandleLoad(T);
|
|
16897
16899
|
};
|
|
16898
16900
|
return;
|
|
@@ -16908,8 +16910,8 @@ function Nm(e, t) {
|
|
|
16908
16910
|
v.src = m, v.async = !0;
|
|
16909
16911
|
for (var C in t.attributes)
|
|
16910
16912
|
v.setAttribute(C, t.attributes[C]);
|
|
16911
|
-
|
|
16912
|
-
var
|
|
16913
|
+
A && (v.id = A);
|
|
16914
|
+
var x = function(P) {
|
|
16913
16915
|
if (Ue[m]) {
|
|
16914
16916
|
var $ = Ue[m], O = $.observers;
|
|
16915
16917
|
for (var R in O)
|
|
@@ -16920,12 +16922,12 @@ function Nm(e, t) {
|
|
|
16920
16922
|
return h.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
16921
16923
|
}), v.onload = function() {
|
|
16922
16924
|
var T = Ue[m];
|
|
16923
|
-
T && (T.loaded = !0,
|
|
16925
|
+
T && (T.loaded = !0, x(function(P) {
|
|
16924
16926
|
return b ? !1 : (P(T), !0);
|
|
16925
16927
|
}));
|
|
16926
16928
|
}, v.onerror = function() {
|
|
16927
16929
|
var T = Ue[m];
|
|
16928
|
-
T && (T.errored = !0,
|
|
16930
|
+
T && (T.errored = !0, x(function(P) {
|
|
16929
16931
|
return P(T), !0;
|
|
16930
16932
|
}));
|
|
16931
16933
|
}, document.body.appendChild(v);
|
|
@@ -16996,7 +16998,7 @@ const Zr = Nm(Sm, {
|
|
|
16996
16998
|
}) => {
|
|
16997
16999
|
const l = { ...Em, ...i?.comentarios }, c = { ...hs, ...l.reportReasons ?? {} }, [d, u] = V("form"), [h, m] = V(
|
|
16998
17000
|
""
|
|
16999
|
-
), [p, f] = V(""), [w, b] = V(""),
|
|
17001
|
+
), [p, f] = V(""), [w, b] = V(""), A = [
|
|
17000
17002
|
{ id: "spam", label: c.spam },
|
|
17001
17003
|
{ id: "inappropriate", label: c.inappropriate },
|
|
17002
17004
|
{ id: "hate", label: c.hate },
|
|
@@ -17004,7 +17006,7 @@ const Zr = Nm(Sm, {
|
|
|
17004
17006
|
{ id: "terrorism", label: c.terrorism },
|
|
17005
17007
|
{ id: "intellectual", label: c.intellectual },
|
|
17006
17008
|
{ id: "bullying", label: c.bullying }
|
|
17007
|
-
],
|
|
17009
|
+
], y = async () => {
|
|
17008
17010
|
if (!(!h || !n)) {
|
|
17009
17011
|
if (Kr(document).includes(n)) {
|
|
17010
17012
|
f(l.errorAlreadyReported);
|
|
@@ -17044,7 +17046,7 @@ const Zr = Nm(Sm, {
|
|
|
17044
17046
|
/* @__PURE__ */ s("div", { className: "sass-pg-cmt-rp-title", children: l.reportAbuseTitle }),
|
|
17045
17047
|
d === "loading" && /* @__PURE__ */ s("div", { className: "sass-pg-cmt-rp-loadingContainer", children: /* @__PURE__ */ s(et, {}) }),
|
|
17046
17048
|
d === "form" || d === "loading" ? /* @__PURE__ */ g(Y, { children: [
|
|
17047
|
-
/* @__PURE__ */ s("div", { className: "sass-pg-cmt-rp-optionsContainer", children:
|
|
17049
|
+
/* @__PURE__ */ s("div", { className: "sass-pg-cmt-rp-optionsContainer", children: A.map((v) => /* @__PURE__ */ g("label", { className: "sass-pg-cmt-rp-option", children: [
|
|
17048
17050
|
/* @__PURE__ */ s(
|
|
17049
17051
|
"input",
|
|
17050
17052
|
{
|
|
@@ -17075,7 +17077,7 @@ const Zr = Nm(Sm, {
|
|
|
17075
17077
|
/* @__PURE__ */ s(
|
|
17076
17078
|
"button",
|
|
17077
17079
|
{
|
|
17078
|
-
onClick:
|
|
17080
|
+
onClick: y,
|
|
17079
17081
|
disabled: !h,
|
|
17080
17082
|
className: "sass-pg-cmt-rp-reportButton",
|
|
17081
17083
|
children: l.reportButton
|
|
@@ -17212,9 +17214,9 @@ async function Im({
|
|
|
17212
17214
|
state: i
|
|
17213
17215
|
});
|
|
17214
17216
|
r && b.append("id", r), o && b.append("lastid", o);
|
|
17215
|
-
const
|
|
17217
|
+
const A = `${w}${m}/newcomments/get?${b.toString()}`;
|
|
17216
17218
|
try {
|
|
17217
|
-
const { data:
|
|
17219
|
+
const { data: y } = await oe.get(A, {
|
|
17218
17220
|
headers: {
|
|
17219
17221
|
"x-api-token": l,
|
|
17220
17222
|
"Cache-Control": "max-age=0, no-cache, no-store, must-revalidate",
|
|
@@ -17222,15 +17224,15 @@ async function Im({
|
|
|
17222
17224
|
Expires: "0"
|
|
17223
17225
|
}
|
|
17224
17226
|
});
|
|
17225
|
-
if (!
|
|
17227
|
+
if (!y)
|
|
17226
17228
|
throw new Error("No comments data received");
|
|
17227
|
-
return
|
|
17228
|
-
} catch (
|
|
17229
|
-
if (console.error("Error fetching comments:",
|
|
17230
|
-
const N =
|
|
17229
|
+
return y.data || y || [];
|
|
17230
|
+
} catch (y) {
|
|
17231
|
+
if (console.error("Error fetching comments:", y), oe.isAxiosError(y)) {
|
|
17232
|
+
const N = y.response?.status, v = y.response?.data;
|
|
17231
17233
|
throw N === 404 ? new Error("Comments not found") : N === 403 ? new Error("Access forbidden - check API token") : N === 401 ? new Error("Unauthorized - invalid API token") : N === 500 ? new Error("Internal server error from CMS") : new Error(v?.error || v?.message || `HTTP ${N}: Failed to fetch comments`);
|
|
17232
17234
|
}
|
|
17233
|
-
throw
|
|
17235
|
+
throw y;
|
|
17234
17236
|
}
|
|
17235
17237
|
}
|
|
17236
17238
|
const Um = (e, t) => {
|
|
@@ -17486,8 +17488,8 @@ const Bm = {
|
|
|
17486
17488
|
if (!u || !n.CONFIG_commentsV2 || !o || !document) return;
|
|
17487
17489
|
const w = document.getElementById("comment-button");
|
|
17488
17490
|
if (!w) return;
|
|
17489
|
-
const b = w.closest(".comment-form"),
|
|
17490
|
-
|
|
17491
|
+
const b = w.closest(".comment-form"), A = b?.querySelector('input[name="username"]'), y = b?.querySelector('textarea[name="comment"]'), N = b?.querySelector("textarea.g-recaptcha-response") ?? document.querySelector("#g-recaptcha-response");
|
|
17492
|
+
A?.value?.trim() && y?.value?.trim() && N?.value?.trim() && w.click();
|
|
17491
17493
|
});
|
|
17492
17494
|
const f = re("/Success.gif", n.PUBLIC_ASSETS_URL);
|
|
17493
17495
|
return c ? /* @__PURE__ */ s("div", { className: "success-gif-container su-flex-center su-relative", children: /* @__PURE__ */ s("img", { className: "success-gif su-absolute", src: f }) }) : /* @__PURE__ */ g(Y, { children: [
|
|
@@ -17573,11 +17575,11 @@ const Bm = {
|
|
|
17573
17575
|
throw new Error(
|
|
17574
17576
|
`Error al enviar comentario: ${w?.message} status: ${f.status}`
|
|
17575
17577
|
);
|
|
17576
|
-
const b = Date.now(),
|
|
17577
|
-
username:
|
|
17578
|
-
firstname:
|
|
17579
|
-
...
|
|
17580
|
-
...
|
|
17578
|
+
const b = Date.now(), A = Math.max(0, 2400 + Math.abs(b - p)), y = r || { username: c, firstname: c }, N = {
|
|
17579
|
+
username: y.username,
|
|
17580
|
+
firstname: y.firstname,
|
|
17581
|
+
...y.lastname && { lastname: y.lastname },
|
|
17582
|
+
...y.picture && { picture: y.picture }
|
|
17581
17583
|
};
|
|
17582
17584
|
return i({
|
|
17583
17585
|
id: b.toString(),
|
|
@@ -17585,7 +17587,7 @@ const Bm = {
|
|
|
17585
17587
|
user: N,
|
|
17586
17588
|
date: { time: Date.now() },
|
|
17587
17589
|
reply: []
|
|
17588
|
-
}), t.current && (t.current.value = ""),
|
|
17590
|
+
}), t.current && (t.current.value = ""), A;
|
|
17589
17591
|
} catch (p) {
|
|
17590
17592
|
return console.error("Error enviando comentario:", p), alert(p.message || "Error al enviar el comentario."), !1;
|
|
17591
17593
|
}
|
|
@@ -17670,9 +17672,9 @@ const Bm = {
|
|
|
17670
17672
|
}, Dm = {
|
|
17671
17673
|
moreRepliesButton: "Más Respuestas"
|
|
17672
17674
|
}, jm = ({ comment: e, replyingTo: t, path: n, user: a, handleReplyingTo: r, onFlag: o, API_ENV: i, texts: l }) => {
|
|
17673
|
-
const c = { ...Dm, ...l?.comentarios }, d = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [u, h] = V(d), [m, p] = me.useState(!1), { PUBLIC_PUBLICATION_ID: f, PUBLIC_X_SECURITY_TOKEN: w } = i, b = e.text,
|
|
17674
|
-
let
|
|
17675
|
-
e.user && (
|
|
17675
|
+
const c = { ...Dm, ...l?.comentarios }, d = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [u, h] = V(d), [m, p] = me.useState(!1), { PUBLIC_PUBLICATION_ID: f, PUBLIC_X_SECURITY_TOKEN: w } = i, b = e.text, A = me.useRef(null);
|
|
17676
|
+
let y = `${He.firstname} ${He.lastname ?? ""}`, N = He.username;
|
|
17677
|
+
e.user && (y = `${e.user.firstname} ${e.user.lastname ?? ""}`, N = e.user.username);
|
|
17676
17678
|
const v = (C) => {
|
|
17677
17679
|
h({ morereply: u.morereply, reply: [C, ...u.reply] });
|
|
17678
17680
|
};
|
|
@@ -17684,7 +17686,7 @@ const Bm = {
|
|
|
17684
17686
|
children: [
|
|
17685
17687
|
/* @__PURE__ */ s(eo, { user: e.user ? e.user : He }),
|
|
17686
17688
|
/* @__PURE__ */ g("div", { style: { flex: 1 }, children: [
|
|
17687
|
-
/* @__PURE__ */ s(Xr, { username:
|
|
17689
|
+
/* @__PURE__ */ s(Xr, { username: y, date: e.date.time, DATE_CONFIG: i }),
|
|
17688
17690
|
/* @__PURE__ */ s("p", { className: "comment-text su-font-normal", children: b }),
|
|
17689
17691
|
a?.username.toLowerCase() !== N.toLowerCase() && // No puedes responder ni reportar tus respuestas
|
|
17690
17692
|
/* @__PURE__ */ s(
|
|
@@ -17698,7 +17700,7 @@ const Bm = {
|
|
|
17698
17700
|
Mm,
|
|
17699
17701
|
{
|
|
17700
17702
|
replyingTo: t,
|
|
17701
|
-
commentRef:
|
|
17703
|
+
commentRef: A,
|
|
17702
17704
|
addReply: v,
|
|
17703
17705
|
user: a,
|
|
17704
17706
|
path: n,
|
|
@@ -17713,7 +17715,7 @@ const Bm = {
|
|
|
17713
17715
|
{
|
|
17714
17716
|
user: a,
|
|
17715
17717
|
reply: C,
|
|
17716
|
-
replyingTo:
|
|
17718
|
+
replyingTo: y,
|
|
17717
17719
|
onFlag: o,
|
|
17718
17720
|
DATE_CONFIG: i,
|
|
17719
17721
|
texts: l
|
|
@@ -17740,8 +17742,8 @@ const Bm = {
|
|
|
17740
17742
|
API_ENV: i
|
|
17741
17743
|
});
|
|
17742
17744
|
p(!1), h({ morereply: T.morecomment, reply: [...u.reply, ...T.comments] });
|
|
17743
|
-
} catch (
|
|
17744
|
-
throw p(!1), new Error(`Error al obtener comentarios: ${
|
|
17745
|
+
} catch (x) {
|
|
17746
|
+
throw p(!1), new Error(`Error al obtener comentarios: ${x}`);
|
|
17745
17747
|
}
|
|
17746
17748
|
},
|
|
17747
17749
|
children: c.moreRepliesButton
|
|
@@ -17917,20 +17919,20 @@ const Bm = {
|
|
|
17917
17919
|
}) => {
|
|
17918
17920
|
const c = { ...zm, ...l?.comentarios }, { PUBLIC_PUBLICATION_ID: d, PUBLIC_X_SECURITY_TOKEN: u } = i, h = d ?? "", m = t.replaceAll("/", "|"), [p, f] = V(
|
|
17919
17921
|
void 0
|
|
17920
|
-
), [w, b] = V(""), { comments:
|
|
17922
|
+
), [w, b] = V(""), { comments: A, setComments: y } = Um(m, i), [N, v] = me.useState(!1), C = me.useRef(null), x = me.useRef(null), T = (L) => {
|
|
17921
17923
|
b(w === L ? "" : L);
|
|
17922
17924
|
}, P = (L) => {
|
|
17923
|
-
|
|
17924
|
-
|
|
17925
|
-
...
|
|
17926
|
-
comments: [L, ...
|
|
17925
|
+
y(
|
|
17926
|
+
A ? {
|
|
17927
|
+
...A,
|
|
17928
|
+
comments: [L, ...A.comments ?? []]
|
|
17927
17929
|
} : void 0
|
|
17928
17930
|
);
|
|
17929
17931
|
}, $ = (L) => {
|
|
17930
17932
|
f(L);
|
|
17931
17933
|
}, O = async () => {
|
|
17932
|
-
if (!
|
|
17933
|
-
const L =
|
|
17934
|
+
if (!A || !A.morecomment || A.comments.length === 0) return;
|
|
17935
|
+
const L = A.comments[A.comments.length - 1];
|
|
17934
17936
|
if (!L) return;
|
|
17935
17937
|
v(!0);
|
|
17936
17938
|
const U = L.id;
|
|
@@ -17946,14 +17948,14 @@ const Bm = {
|
|
|
17946
17948
|
apiToken: u,
|
|
17947
17949
|
API_ENV: i
|
|
17948
17950
|
});
|
|
17949
|
-
|
|
17951
|
+
y({
|
|
17950
17952
|
morecomment: j.morecomment ?? !1,
|
|
17951
|
-
comments: [...
|
|
17953
|
+
comments: [...A.comments, ...j.comments]
|
|
17952
17954
|
}), v(!1);
|
|
17953
17955
|
} catch (j) {
|
|
17954
17956
|
throw v(!1), new Error(`Error al obtener comentarios: ${j}`);
|
|
17955
17957
|
}
|
|
17956
|
-
}, R =
|
|
17958
|
+
}, R = A?.comments && A.comments.length > 0, F = R ? c.commentHeaderMessageWithComments : c.commentHeaderMessageEmpty, z = /* @__PURE__ */ s("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ s(et, {}) }), B = () => {
|
|
17957
17959
|
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = he(i) + "/auth/login");
|
|
17958
17960
|
};
|
|
17959
17961
|
return /* @__PURE__ */ g(Y, { children: [
|
|
@@ -17988,7 +17990,7 @@ const Bm = {
|
|
|
17988
17990
|
/* @__PURE__ */ s(
|
|
17989
17991
|
Vm,
|
|
17990
17992
|
{
|
|
17991
|
-
usernameRef:
|
|
17993
|
+
usernameRef: x,
|
|
17992
17994
|
commentRef: C,
|
|
17993
17995
|
icon: r,
|
|
17994
17996
|
handleGoogleLogin: o,
|
|
@@ -17999,13 +18001,13 @@ const Bm = {
|
|
|
17999
18001
|
}
|
|
18000
18002
|
)
|
|
18001
18003
|
] }) : null }),
|
|
18002
|
-
|
|
18004
|
+
A ? A.comments && A.comments.length > 0 ? /* @__PURE__ */ g(
|
|
18003
18005
|
"div",
|
|
18004
18006
|
{
|
|
18005
18007
|
className: "comments-list",
|
|
18006
18008
|
"data-isauthenticated": `${e}`,
|
|
18007
18009
|
children: [
|
|
18008
|
-
|
|
18010
|
+
A.comments.map((L) => /* @__PURE__ */ s(
|
|
18009
18011
|
jm,
|
|
18010
18012
|
{
|
|
18011
18013
|
comment: L,
|
|
@@ -18023,7 +18025,7 @@ const Bm = {
|
|
|
18023
18025
|
]
|
|
18024
18026
|
}
|
|
18025
18027
|
) : null : z,
|
|
18026
|
-
|
|
18028
|
+
A?.morecomment && !N && /* @__PURE__ */ s(
|
|
18027
18029
|
"button",
|
|
18028
18030
|
{
|
|
18029
18031
|
className: "comment-replies-button su-flex-center su-rounded-full",
|
|
@@ -18131,12 +18133,12 @@ function Ym({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
18131
18133
|
{ label: o.passwordRuleSymbol, test: _e[4] }
|
|
18132
18134
|
],
|
|
18133
18135
|
[o.passwordRuleMinLength, o.passwordRuleNumber, o.passwordRuleLowercase, o.passwordRuleUppercase, o.passwordRuleSymbol]
|
|
18134
|
-
), [c, d] = V({}), [u, h] = V(!1), [m, p] = V(!1), [f, w] = V(null), [b,
|
|
18136
|
+
), [c, d] = V({}), [u, h] = V(!1), [m, p] = V(!1), [f, w] = V(null), [b, A] = V(
|
|
18135
18137
|
"register"
|
|
18136
|
-
),
|
|
18137
|
-
d((P) => ({ ...P, [
|
|
18138
|
-
}, N = async (
|
|
18139
|
-
|
|
18138
|
+
), y = (x, T) => {
|
|
18139
|
+
d((P) => ({ ...P, [x]: T }));
|
|
18140
|
+
}, N = async (x) => {
|
|
18141
|
+
x.preventDefault(), w(null), p(!0);
|
|
18140
18142
|
try {
|
|
18141
18143
|
const T = Object.keys(i).filter((z) => !["username", "password", "confirmPassword"].includes(z)).map((z) => ({ Name: z, Value: c[z] }));
|
|
18142
18144
|
if (T.some((z) => {
|
|
@@ -18178,19 +18180,19 @@ function Ym({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
18178
18180
|
method: "POST",
|
|
18179
18181
|
headers: { "Content-Type": "application/json" },
|
|
18180
18182
|
body: JSON.stringify({ username: c.email })
|
|
18181
|
-
}),
|
|
18183
|
+
}), A("confirm");
|
|
18182
18184
|
return;
|
|
18183
18185
|
}
|
|
18184
18186
|
throw new Error(z?.error || "Error al crear usuario");
|
|
18185
18187
|
}
|
|
18186
|
-
|
|
18188
|
+
A("confirm");
|
|
18187
18189
|
} catch (T) {
|
|
18188
18190
|
console.log(T), w(T?.message || T?.error || o.errorUnexpected);
|
|
18189
18191
|
} finally {
|
|
18190
18192
|
p(!1);
|
|
18191
18193
|
}
|
|
18192
|
-
}, v = async (
|
|
18193
|
-
if (
|
|
18194
|
+
}, v = async (x) => {
|
|
18195
|
+
if (x.preventDefault(), !c.confirmationCode) {
|
|
18194
18196
|
w(o.errorVerificationCodeRequired);
|
|
18195
18197
|
return;
|
|
18196
18198
|
}
|
|
@@ -18208,7 +18210,7 @@ function Ym({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
18208
18210
|
const P = await T.json().catch(() => ({}));
|
|
18209
18211
|
throw new Error(P?.error || "Error al confirmar usuario");
|
|
18210
18212
|
}
|
|
18211
|
-
|
|
18213
|
+
A("success");
|
|
18212
18214
|
} catch (T) {
|
|
18213
18215
|
w(T?.message || o.errorUnexpected);
|
|
18214
18216
|
} finally {
|
|
@@ -18236,20 +18238,20 @@ function Ym({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
18236
18238
|
className: "sass-pg-cmt-lp-form",
|
|
18237
18239
|
"data-error": f ? "true" : "false",
|
|
18238
18240
|
children: [
|
|
18239
|
-
/* @__PURE__ */ s("ul", { className: "sass-pg-cmt-lp-formUl", children: Object.entries(i).map(([
|
|
18241
|
+
/* @__PURE__ */ s("ul", { className: "sass-pg-cmt-lp-formUl", children: Object.entries(i).map(([x, { label: T }]) => /* @__PURE__ */ g("div", { className: "sass-pg-cmt-lp-field", children: [
|
|
18240
18242
|
/* @__PURE__ */ s("label", { className: "sass-pg-cmt-lp-label", children: T }),
|
|
18241
18243
|
/* @__PURE__ */ s(
|
|
18242
18244
|
"input",
|
|
18243
18245
|
{
|
|
18244
|
-
type:
|
|
18245
|
-
name:
|
|
18246
|
-
value: c[
|
|
18247
|
-
onChange: (P) =>
|
|
18246
|
+
type: x.toLowerCase().includes("password") ? u ? "text" : "password" : x === "birthdate" ? "date" : x === "email" ? "email" : x === "phone_number" ? "tel" : "text",
|
|
18247
|
+
name: x,
|
|
18248
|
+
value: c[x] || "",
|
|
18249
|
+
onChange: (P) => y(x, P.target.value),
|
|
18248
18250
|
className: "sass-pg-cmt-lp-input",
|
|
18249
18251
|
placeholder: ""
|
|
18250
18252
|
}
|
|
18251
18253
|
),
|
|
18252
|
-
|
|
18254
|
+
x === "password" && /* @__PURE__ */ s("div", { className: "sass-pg-cmt-lp-passwordChecker", children: l.map((P, $) => {
|
|
18253
18255
|
const O = P.test(C);
|
|
18254
18256
|
return /* @__PURE__ */ g(
|
|
18255
18257
|
"div",
|
|
@@ -18263,7 +18265,7 @@ function Ym({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
18263
18265
|
$
|
|
18264
18266
|
);
|
|
18265
18267
|
}) }),
|
|
18266
|
-
|
|
18268
|
+
x === "confirmPassword" && /* @__PURE__ */ g("div", { className: "sass-pg-cmt-lp-checkboxRow", children: [
|
|
18267
18269
|
/* @__PURE__ */ s(
|
|
18268
18270
|
"input",
|
|
18269
18271
|
{
|
|
@@ -18282,7 +18284,7 @@ function Ym({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
18282
18284
|
}
|
|
18283
18285
|
)
|
|
18284
18286
|
] })
|
|
18285
|
-
] },
|
|
18287
|
+
] }, x)) }),
|
|
18286
18288
|
f && /* @__PURE__ */ s("p", { className: "sass-pg-cmt-lp-error", children: f }),
|
|
18287
18289
|
/* @__PURE__ */ g("p", { className: "sass-pg-cmt-lp-terms", children: [
|
|
18288
18290
|
o.termsPrefix,
|
|
@@ -18311,7 +18313,7 @@ function Ym({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
18311
18313
|
type: "text",
|
|
18312
18314
|
name: "confirmationCode",
|
|
18313
18315
|
value: c.confirmationCode || "",
|
|
18314
|
-
onChange: (
|
|
18316
|
+
onChange: (x) => y("confirmationCode", x.target.value),
|
|
18315
18317
|
className: "sass-pg-cmt-lp-input",
|
|
18316
18318
|
required: !0
|
|
18317
18319
|
}
|
|
@@ -18389,7 +18391,7 @@ function Jm({
|
|
|
18389
18391
|
API_ENV: r,
|
|
18390
18392
|
texts: o
|
|
18391
18393
|
}) {
|
|
18392
|
-
const i = { ...Km, ...o?.comentarios }, [l, c] = V("login"), [d, u] = V(""), [h, m] = V(""), [p, f] = V(""), [w, b] = V(""), [
|
|
18394
|
+
const i = { ...Km, ...o?.comentarios }, [l, c] = V("login"), [d, u] = V(""), [h, m] = V(""), [p, f] = V(""), [w, b] = V(""), [A, y] = V(""), [N, v] = V(!1), [C, x] = V(!1), [T, P] = V(null);
|
|
18393
18395
|
return /* @__PURE__ */ g(Y, { children: [
|
|
18394
18396
|
l === "login" && /* @__PURE__ */ s(
|
|
18395
18397
|
Zm,
|
|
@@ -18404,7 +18406,7 @@ function Jm({
|
|
|
18404
18406
|
setShowPassword: v,
|
|
18405
18407
|
onSubmit: async (F) => {
|
|
18406
18408
|
if (!C) {
|
|
18407
|
-
F.preventDefault(), P(null),
|
|
18409
|
+
F.preventDefault(), P(null), x(!0);
|
|
18408
18410
|
try {
|
|
18409
18411
|
const z = r.PUBLIC_ENV === "local" ? "token" : await Hn("comment_login", r.CAPTCHA_KEY || "");
|
|
18410
18412
|
if (!z) throw new Error("Captcha token no generado");
|
|
@@ -18422,7 +18424,7 @@ function Jm({
|
|
|
18422
18424
|
} catch (z) {
|
|
18423
18425
|
P(z?.message || "Error inesperado");
|
|
18424
18426
|
} finally {
|
|
18425
|
-
|
|
18427
|
+
x(!1);
|
|
18426
18428
|
}
|
|
18427
18429
|
}
|
|
18428
18430
|
},
|
|
@@ -18443,7 +18445,7 @@ function Jm({
|
|
|
18443
18445
|
error: T,
|
|
18444
18446
|
onSubmit: async (F) => {
|
|
18445
18447
|
if (!C) {
|
|
18446
|
-
F.preventDefault(), P(null),
|
|
18448
|
+
F.preventDefault(), P(null), x(!0);
|
|
18447
18449
|
try {
|
|
18448
18450
|
const z = await fetch("/api/auth/forgot-password", {
|
|
18449
18451
|
method: "POST",
|
|
@@ -18458,7 +18460,7 @@ function Jm({
|
|
|
18458
18460
|
} catch (z) {
|
|
18459
18461
|
P(z?.message || "Error inesperado");
|
|
18460
18462
|
} finally {
|
|
18461
|
-
|
|
18463
|
+
x(!1);
|
|
18462
18464
|
}
|
|
18463
18465
|
}
|
|
18464
18466
|
},
|
|
@@ -18474,17 +18476,17 @@ function Jm({
|
|
|
18474
18476
|
email: d,
|
|
18475
18477
|
confirmationCode: p,
|
|
18476
18478
|
newPassword: w,
|
|
18477
|
-
confirmNewPassword:
|
|
18479
|
+
confirmNewPassword: A,
|
|
18478
18480
|
showPassword: N,
|
|
18479
18481
|
loading: C,
|
|
18480
18482
|
error: T,
|
|
18481
18483
|
setConfirmationCode: f,
|
|
18482
18484
|
setNewPassword: b,
|
|
18483
|
-
setConfirmNewPassword:
|
|
18485
|
+
setConfirmNewPassword: y,
|
|
18484
18486
|
setShowPassword: v,
|
|
18485
18487
|
onSubmit: async (F) => {
|
|
18486
18488
|
if (C) return;
|
|
18487
|
-
if (F.preventDefault(), w !==
|
|
18489
|
+
if (F.preventDefault(), w !== A) {
|
|
18488
18490
|
P("Las contraseñas no coinciden");
|
|
18489
18491
|
return;
|
|
18490
18492
|
}
|
|
@@ -18494,7 +18496,7 @@ function Jm({
|
|
|
18494
18496
|
P("La contraseña no cumple con los requisitos");
|
|
18495
18497
|
return;
|
|
18496
18498
|
}
|
|
18497
|
-
P(null),
|
|
18499
|
+
P(null), x(!0);
|
|
18498
18500
|
try {
|
|
18499
18501
|
const B = await fetch("/api/auth/confirm-forgot-password", {
|
|
18500
18502
|
method: "POST",
|
|
@@ -18509,7 +18511,7 @@ function Jm({
|
|
|
18509
18511
|
} catch (B) {
|
|
18510
18512
|
P(B?.message || "Error inesperado");
|
|
18511
18513
|
} finally {
|
|
18512
|
-
|
|
18514
|
+
x(!1);
|
|
18513
18515
|
}
|
|
18514
18516
|
},
|
|
18515
18517
|
onBack: () => {
|
|
@@ -18713,9 +18715,9 @@ function eh({
|
|
|
18713
18715
|
}
|
|
18714
18716
|
),
|
|
18715
18717
|
/* @__PURE__ */ s("div", { className: "sass-pg-cmt-lp-passwordChecker", children: no.map((w, b) => {
|
|
18716
|
-
const
|
|
18717
|
-
return /* @__PURE__ */ g("div", { className:
|
|
18718
|
-
/* @__PURE__ */ s("div", { children:
|
|
18718
|
+
const A = w.test(n);
|
|
18719
|
+
return /* @__PURE__ */ g("div", { className: A ? "sass-pg-cmt-lp-valid" : "sass-pg-cmt-lp-invalid", children: [
|
|
18720
|
+
/* @__PURE__ */ s("div", { children: A ? "✔" : "○" }),
|
|
18719
18721
|
/* @__PURE__ */ s("div", { children: w.label })
|
|
18720
18722
|
] }, b);
|
|
18721
18723
|
}) })
|
|
@@ -18860,19 +18862,19 @@ function ah({
|
|
|
18860
18862
|
credentials: "include"
|
|
18861
18863
|
}), t(!1);
|
|
18862
18864
|
else {
|
|
18863
|
-
const
|
|
18864
|
-
window.location.href = `${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(
|
|
18865
|
+
const A = window.location.pathname;
|
|
18866
|
+
window.location.href = `${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(A)}`;
|
|
18865
18867
|
}
|
|
18866
|
-
}, w = async (
|
|
18867
|
-
|
|
18868
|
+
}, w = async (A) => {
|
|
18869
|
+
A.preventDefault(), n && h(!0);
|
|
18868
18870
|
}, b = async () => {
|
|
18869
18871
|
if (l.PUBLIC_ENV === "local") {
|
|
18870
18872
|
await fetch("/api/auth/debug-login", { method: "GET", credentials: "include" }), localStorage.setItem("cognito-login", "success:" + Date.now()), o();
|
|
18871
18873
|
return;
|
|
18872
18874
|
}
|
|
18873
18875
|
if (!n) return;
|
|
18874
|
-
const
|
|
18875
|
-
window.location.href = `/api/auth/login?redirect=${
|
|
18876
|
+
const A = encodeURIComponent(window.location.pathname);
|
|
18877
|
+
window.location.href = `/api/auth/login?redirect=${A}`;
|
|
18876
18878
|
};
|
|
18877
18879
|
return /* @__PURE__ */ g(Y, { children: [
|
|
18878
18880
|
u && !l.CONFIG_commentsV2 && /* @__PURE__ */ s(
|
|
@@ -19438,15 +19440,15 @@ const uh = (e) => e?.main?.title ? {
|
|
|
19438
19440
|
}) => {
|
|
19439
19441
|
const c = ec(l), d = [], u = t;
|
|
19440
19442
|
let h = !0;
|
|
19441
|
-
const m = (
|
|
19442
|
-
if (e[
|
|
19443
|
-
return !!e[
|
|
19444
|
-
const v = e[
|
|
19443
|
+
const m = (y) => y === "No Mostrar" || y?.toLowerCase() === "no mostrar", p = (y) => {
|
|
19444
|
+
if (e[y].blockSass[0]?.block === "Modulo iframe")
|
|
19445
|
+
return !!e[y].blockSass[0]?.value;
|
|
19446
|
+
const v = e[y].content?.data;
|
|
19445
19447
|
return Array.isArray(v) && v.length > 0;
|
|
19446
|
-
}, f = (
|
|
19448
|
+
}, f = (y) => {
|
|
19447
19449
|
if (!h) return {};
|
|
19448
19450
|
h = !1;
|
|
19449
|
-
const N = e[
|
|
19451
|
+
const N = e[y].content?.data, v = Array.isArray(N) ? N.length : 0;
|
|
19450
19452
|
return {
|
|
19451
19453
|
speculationPrerenderClass: xa,
|
|
19452
19454
|
speculationPrerender: {
|
|
@@ -19454,29 +19456,29 @@ const uh = (e) => e?.main?.title ? {
|
|
|
19454
19456
|
length: v
|
|
19455
19457
|
}
|
|
19456
19458
|
};
|
|
19457
|
-
}, w = (
|
|
19458
|
-
if (!e[
|
|
19459
|
-
const
|
|
19460
|
-
e[
|
|
19459
|
+
}, w = (y, N, v, C) => {
|
|
19460
|
+
if (!e[y] || !e[y].blockSass || !e[y].blockSass[0] || !e[y].blockSass[0].value || !e[y].blockSass[0].block || m(e[y].blockSass[0].block) || !p(y)) return;
|
|
19461
|
+
const x = f(y);
|
|
19462
|
+
e[y].blockSass[0]?.block === "Modulo iframe" ? d.push(
|
|
19461
19463
|
/* @__PURE__ */ g(
|
|
19462
19464
|
Na,
|
|
19463
19465
|
{
|
|
19464
|
-
id: e[
|
|
19465
|
-
show: !!e[
|
|
19466
|
+
id: e[y].blockSass[0].key,
|
|
19467
|
+
show: !!e[y].blockSass[0].value,
|
|
19466
19468
|
order: N,
|
|
19467
19469
|
children: [
|
|
19468
19470
|
/* @__PURE__ */ s(
|
|
19469
19471
|
Ha,
|
|
19470
19472
|
{
|
|
19471
|
-
component: e[
|
|
19473
|
+
component: e[y].blockSass[0].block,
|
|
19472
19474
|
banners: o,
|
|
19473
|
-
slot_id:
|
|
19475
|
+
slot_id: y,
|
|
19474
19476
|
isHome: c,
|
|
19475
19477
|
data: {
|
|
19476
|
-
printEdition: e[
|
|
19477
|
-
title: e[
|
|
19478
|
-
titleUrl: e[
|
|
19479
|
-
...
|
|
19478
|
+
printEdition: e[y]?.blockSass[0].value,
|
|
19479
|
+
title: e[y]?.blockSass[0].title ?? "",
|
|
19480
|
+
titleUrl: e[y].blockSass[0].link ?? void 0,
|
|
19481
|
+
...x
|
|
19480
19482
|
}
|
|
19481
19483
|
}
|
|
19482
19484
|
),
|
|
@@ -19495,26 +19497,26 @@ const uh = (e) => e?.main?.title ? {
|
|
|
19495
19497
|
/* @__PURE__ */ g(
|
|
19496
19498
|
Na,
|
|
19497
19499
|
{
|
|
19498
|
-
id: e[
|
|
19499
|
-
show: !!e[
|
|
19500
|
+
id: e[y].blockSass[0].key,
|
|
19501
|
+
show: !!e[y].content?.data,
|
|
19500
19502
|
order: N,
|
|
19501
19503
|
children: [
|
|
19502
19504
|
/* @__PURE__ */ s(
|
|
19503
19505
|
Ha,
|
|
19504
19506
|
{
|
|
19505
|
-
component: e[
|
|
19507
|
+
component: e[y].blockSass[0].block,
|
|
19506
19508
|
banners: o,
|
|
19507
|
-
slot_id:
|
|
19509
|
+
slot_id: y,
|
|
19508
19510
|
isHome: c,
|
|
19509
19511
|
data: {
|
|
19510
|
-
...e[
|
|
19511
|
-
content: e[
|
|
19512
|
-
title: e[
|
|
19513
|
-
titleUrl: e[
|
|
19512
|
+
...e[y].blockSass[0].block ? n[e[y].blockSass[0].block] : [],
|
|
19513
|
+
content: e[y].content?.data ?? [],
|
|
19514
|
+
title: e[y].blockSass[0].title ?? void 0,
|
|
19515
|
+
titleUrl: e[y].blockSass[0].link ?? void 0,
|
|
19514
19516
|
autorIcon: /* @__PURE__ */ s(a, {}),
|
|
19515
19517
|
paths: r.paths,
|
|
19516
19518
|
showTagBySection: i,
|
|
19517
|
-
...
|
|
19519
|
+
...x
|
|
19518
19520
|
}
|
|
19519
19521
|
}
|
|
19520
19522
|
),
|
|
@@ -19531,11 +19533,11 @@ const uh = (e) => e?.main?.title ? {
|
|
|
19531
19533
|
)
|
|
19532
19534
|
);
|
|
19533
19535
|
}, b = Object.keys(e);
|
|
19534
|
-
if (b.some((
|
|
19535
|
-
const
|
|
19536
|
+
if (b.some((y) => /^Home_\d+$/.test(y))) {
|
|
19537
|
+
const y = b.filter((N) => /^Home_\d+$/.test(N)).sort(
|
|
19536
19538
|
(N, v) => Number(N.slice(5)) - Number(v.slice(5))
|
|
19537
19539
|
);
|
|
19538
|
-
for (const N of
|
|
19540
|
+
for (const N of y) {
|
|
19539
19541
|
const v = Number(N.slice(5));
|
|
19540
19542
|
w(N, Number.isFinite(v) ? v - 1 : 0, N, String(v));
|
|
19541
19543
|
}
|
|
@@ -19623,8 +19625,8 @@ function mh({
|
|
|
19623
19625
|
v.has(C.id) || ve.addSuccess(C);
|
|
19624
19626
|
}
|
|
19625
19627
|
r(ve.getCount()), i(ve.getSuccessCount());
|
|
19626
|
-
const
|
|
19627
|
-
return window.addEventListener("debug-fetch-error",
|
|
19628
|
+
const y = (v) => r(v.detail.count), N = (v) => i(v.detail.count);
|
|
19629
|
+
return window.addEventListener("debug-fetch-error", y), window.addEventListener("debug-fetch-success", N), w.current = oe.interceptors.response.use(
|
|
19628
19630
|
(v) => {
|
|
19629
19631
|
const C = hh(v.data);
|
|
19630
19632
|
return ve.addSuccess({
|
|
@@ -19639,13 +19641,13 @@ function mh({
|
|
|
19639
19641
|
void 0
|
|
19640
19642
|
// let errors propagate normally; they're tracked per-service
|
|
19641
19643
|
), () => {
|
|
19642
|
-
window.removeEventListener("debug-fetch-error",
|
|
19644
|
+
window.removeEventListener("debug-fetch-error", y), window.removeEventListener("debug-fetch-success", N), w.current !== null && oe.interceptors.response.eject(w.current);
|
|
19643
19645
|
};
|
|
19644
19646
|
}, []);
|
|
19645
19647
|
function b() {
|
|
19646
19648
|
m(ve.getAll()), f(ve.getAllSuccesses()), c(!0);
|
|
19647
19649
|
}
|
|
19648
|
-
function
|
|
19650
|
+
function A() {
|
|
19649
19651
|
ve.clearAll(), m([]), f([]), r(0), i(0), c(!1);
|
|
19650
19652
|
}
|
|
19651
19653
|
return /* @__PURE__ */ g(Y, { children: [
|
|
@@ -19654,7 +19656,7 @@ function mh({
|
|
|
19654
19656
|
a > 0 && /* @__PURE__ */ s("span", { style: za("#e94560"), children: a }),
|
|
19655
19657
|
o > 0 && /* @__PURE__ */ s("span", { style: za("#27ae60"), children: o })
|
|
19656
19658
|
] }),
|
|
19657
|
-
l && /* @__PURE__ */ s("div", { style: Ah, onClick: () => c(!1), children: /* @__PURE__ */ g("div", { style: yh, onClick: (
|
|
19659
|
+
l && /* @__PURE__ */ s("div", { style: Ah, onClick: () => c(!1), children: /* @__PURE__ */ g("div", { style: yh, onClick: (y) => y.stopPropagation(), children: [
|
|
19658
19660
|
/* @__PURE__ */ g("div", { style: Ch, children: [
|
|
19659
19661
|
/* @__PURE__ */ s("strong", { children: "Debug Panel" }),
|
|
19660
19662
|
/* @__PURE__ */ s("button", { onClick: () => c(!1), style: Sh, children: "✕" })
|
|
@@ -19684,10 +19686,10 @@ function mh({
|
|
|
19684
19686
|
)
|
|
19685
19687
|
] }),
|
|
19686
19688
|
/* @__PURE__ */ g("div", { style: Nh, children: [
|
|
19687
|
-
d === "errors" && (h.length === 0 ? /* @__PURE__ */ s("p", { style: Ya, children: "No hay errores acumulados." }) : h.map((
|
|
19688
|
-
d === "successes" && (p.length === 0 ? /* @__PURE__ */ s("p", { style: Ya, children: "No hay fetches exitosos registrados aún." }) : p.map((
|
|
19689
|
+
d === "errors" && (h.length === 0 ? /* @__PURE__ */ s("p", { style: Ya, children: "No hay errores acumulados." }) : h.map((y) => /* @__PURE__ */ s(ph, { error: y }, y.id))),
|
|
19690
|
+
d === "successes" && (p.length === 0 ? /* @__PURE__ */ s("p", { style: Ya, children: "No hay fetches exitosos registrados aún." }) : p.map((y) => /* @__PURE__ */ s(gh, { entry: y }, y.id)))
|
|
19689
19691
|
] }),
|
|
19690
|
-
/* @__PURE__ */ s("div", { style: xh, children: /* @__PURE__ */ s("button", { onClick:
|
|
19692
|
+
/* @__PURE__ */ s("div", { style: xh, children: /* @__PURE__ */ s("button", { onClick: A, style: Eh, children: "Limpiar todo" }) })
|
|
19691
19693
|
] }) })
|
|
19692
19694
|
] });
|
|
19693
19695
|
}
|
|
@@ -20070,49 +20072,49 @@ function Oh(e, t, n) {
|
|
|
20070
20072
|
let u = "";
|
|
20071
20073
|
const h = e.keywords, m = e.info;
|
|
20072
20074
|
if (i && h?.tags?.length && h.tags.length > 0) {
|
|
20073
|
-
const
|
|
20075
|
+
const y = h.tags[0], N = y.name;
|
|
20074
20076
|
let v;
|
|
20075
|
-
if (
|
|
20076
|
-
const C = Xe(
|
|
20077
|
+
if (y.approved) {
|
|
20078
|
+
const C = Xe(y, t), { finalHref: x } = Bt(
|
|
20077
20079
|
C,
|
|
20078
20080
|
!!l?.tema
|
|
20079
20081
|
);
|
|
20080
|
-
v = `<a aria-label="${ce(N)}" class="sass-com-nd-sectionDescription" href="${ce(
|
|
20082
|
+
v = `<a aria-label="${ce(N)}" class="sass-com-nd-sectionDescription" href="${ce(x)}">${Fe(N)}</a>`;
|
|
20081
20083
|
} else
|
|
20082
20084
|
v = `<div class="sass-com-nd-sectionDescription">${Fe(N)}</div>`;
|
|
20083
20085
|
u = `<${r} class="sass-com-nd-sectionDescriptionContainer section">${v}${d()}</${r}>`;
|
|
20084
20086
|
} else if (m?.section?.url) {
|
|
20085
|
-
const
|
|
20086
|
-
u = `<${r} class="sass-com-nd-sectionDescriptionContainer section"><a aria-label="${ce(
|
|
20087
|
+
const y = m.section.name, { finalHref: N } = Bt(m.section.url);
|
|
20088
|
+
u = `<${r} class="sass-com-nd-sectionDescriptionContainer section"><a aria-label="${ce(y)}" class="sass-com-nd-sectionDescription" href="${ce(N)}">${Fe(y)}</a>` + d() + `</${r}>`;
|
|
20087
20089
|
}
|
|
20088
20090
|
const p = e.main?.title?.section ?? "", f = o ? `${o} sass-com-nd-linkStyled su-no-underline` : "sass-com-nd-linkStyled su-no-underline";
|
|
20089
20091
|
let w;
|
|
20090
20092
|
if (e.info?.link?.url) {
|
|
20091
|
-
const { finalHref:
|
|
20093
|
+
const { finalHref: y, isExternal: N } = Bt(
|
|
20092
20094
|
e.info.link.url
|
|
20093
|
-
), v = e.info.link.target, C = v ? ` target="${ce(v)}"` : "",
|
|
20094
|
-
w = `<h2 class="sass-com-nd-articule"><a aria-label="${ce(p)}" class="${f}" style="--isLink:var(--news-description-title-color-hover-decoration)" href="${ce(
|
|
20095
|
+
), v = e.info.link.target, C = v ? ` target="${ce(v)}"` : "", x = N ? ' rel="noopener noreferrer"' : "";
|
|
20096
|
+
w = `<h2 class="sass-com-nd-articule"><a aria-label="${ce(p)}" class="${f}" style="--isLink:var(--news-description-title-color-hover-decoration)" href="${ce(y)}"${C}${x}>${Fe(p)}</a></h2>`;
|
|
20095
20097
|
} else
|
|
20096
20098
|
w = `<h2 class="sass-com-nd-articule">${Fe(p)}</h2>`;
|
|
20097
20099
|
let b = "";
|
|
20098
20100
|
if (e.config?.showsubtitle) {
|
|
20099
|
-
const
|
|
20100
|
-
b = `<p class="sass-com-nd-description">${Fe(ze(
|
|
20101
|
+
const y = e.main?.subtitle?.striped ?? "";
|
|
20102
|
+
b = `<p class="sass-com-nd-description">${Fe(ze(y))}</p>`;
|
|
20101
20103
|
}
|
|
20102
|
-
let
|
|
20104
|
+
let A = "";
|
|
20103
20105
|
if (e.config?.showtime || e.config?.showauthor) {
|
|
20104
|
-
let
|
|
20105
|
-
if (e.config?.showtime && e.config?.showauthor ?
|
|
20106
|
+
let y;
|
|
20107
|
+
if (e.config?.showtime && e.config?.showauthor ? y = `${e.authors[0]?.fullname ?? "Redacción"} - ${Ve(e.info?.date?.modified)}` : e.config?.showauthor ? y = e.authors[0]?.fullname ?? "Redacción" : e.config?.showtime && (y = Ve(e.info?.date?.modified)), y !== void 0)
|
|
20106
20108
|
if (e.authors[0]?.internaluser) {
|
|
20107
20109
|
const N = `/${t?.autor}/${e.authors[0]?.name}`, { finalHref: v } = Bt(
|
|
20108
20110
|
N,
|
|
20109
20111
|
!!l?.autor
|
|
20110
20112
|
);
|
|
20111
|
-
|
|
20113
|
+
A = `<h3><a aria-label="${ce(y)}" class="sass-com-nd-correspondentLink" href="${ce(v)}">${Fe(y)}</a></h3>`;
|
|
20112
20114
|
} else
|
|
20113
|
-
|
|
20115
|
+
A = `<h3 class="sass-com-nd-correspondent">${Fe(y)}</h3>`;
|
|
20114
20116
|
}
|
|
20115
|
-
return '<div class="sass-com-nd-boxInformation sass-news-description">' + c + u + w + b +
|
|
20117
|
+
return '<div class="sass-com-nd-boxInformation sass-news-description">' + c + u + w + b + A + "</div>";
|
|
20116
20118
|
}
|
|
20117
20119
|
function Cf(e, t, n, a, r = !1) {
|
|
20118
20120
|
const o = t < 5 ? "nota-prerender" : void 0, i = Rh({
|