sass-template-common 0.9.144 → 0.9.145
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 +459 -433
- package/dist/sass-template-common.umd.cjs +15 -15
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n, jsxs as g, Fragment as K } from "react/jsx-runtime";
|
|
2
2
|
import * as Ws from "react";
|
|
3
|
-
import ce, { useState as Z, useRef as Ga, useCallback as le, useEffect as xe, createElement as
|
|
3
|
+
import ce, { useState as Z, useRef as Ga, useCallback as le, useEffect as xe, createElement as Oe, forwardRef as Qn, Fragment as ds, useMemo as us, Component as ja } from "react";
|
|
4
4
|
let ms = {
|
|
5
5
|
PUBLIC_API_HOST: "",
|
|
6
6
|
PUBLIC_API_FRONT: "",
|
|
@@ -178,13 +178,13 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
178
178
|
function Ke(e) {
|
|
179
179
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
180
180
|
}
|
|
181
|
-
var
|
|
181
|
+
var yt = { exports: {} }, Wa = yt.exports, Ys;
|
|
182
182
|
function Vn() {
|
|
183
183
|
return Ys || (Ys = 1, (function(e, t) {
|
|
184
184
|
(function(s, a) {
|
|
185
185
|
e.exports = a();
|
|
186
186
|
})(Wa, (function() {
|
|
187
|
-
var s = 1e3, a = 6e4, r = 36e5, i = "millisecond", o = "second", l = "minute", u = "hour", c = "day", d = "week", m = "month", h = "quarter", p = "year", f = "date", A = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
|
|
187
|
+
var s = 1e3, a = 6e4, r = 36e5, i = "millisecond", o = "second", l = "minute", u = "hour", c = "day", d = "week", m = "month", h = "quarter", p = "year", f = "date", A = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(q) {
|
|
188
188
|
var U = ["th", "st", "nd", "rd"], x = q % 100;
|
|
189
189
|
return "[" + q + (U[(x - 20) % 10] || U[x] || U[0]) + "]";
|
|
190
190
|
} }, S = function(q, U, x) {
|
|
@@ -195,8 +195,8 @@ function Vn() {
|
|
|
195
195
|
return (U <= 0 ? "+" : "-") + S(D, 2, "0") + ":" + S(L, 2, "0");
|
|
196
196
|
}, m: function q(U, x) {
|
|
197
197
|
if (U.date() < x.date()) return -q(x, U);
|
|
198
|
-
var D = 12 * (x.year() - U.year()) + (x.month() - U.month()), L = U.clone().add(D, m), F = x - L < 0,
|
|
199
|
-
return +(-(D + (x - L) / (F ? L -
|
|
198
|
+
var D = 12 * (x.year() - U.year()) + (x.month() - U.month()), L = U.clone().add(D, m), F = x - L < 0, y = U.clone().add(D + (F ? -1 : 1), m);
|
|
199
|
+
return +(-(D + (x - L) / (F ? L - y : y - L)) || 0);
|
|
200
200
|
}, a: function(q) {
|
|
201
201
|
return q < 0 ? Math.ceil(q) || 0 : Math.floor(q);
|
|
202
202
|
}, p: function(q) {
|
|
@@ -204,7 +204,7 @@ function Vn() {
|
|
|
204
204
|
}, u: function(q) {
|
|
205
205
|
return q === void 0;
|
|
206
206
|
} }, b = "en", I = {};
|
|
207
|
-
I[b] =
|
|
207
|
+
I[b] = C;
|
|
208
208
|
var k = "$isDayjsObject", Q = function(q) {
|
|
209
209
|
return q instanceof V || !(!q || !q[k]);
|
|
210
210
|
}, W = function q(U, x, D) {
|
|
@@ -213,8 +213,8 @@ function Vn() {
|
|
|
213
213
|
if (typeof U == "string") {
|
|
214
214
|
var F = U.toLowerCase();
|
|
215
215
|
I[F] && (L = F), x && (I[F] = x, L = F);
|
|
216
|
-
var
|
|
217
|
-
if (!L &&
|
|
216
|
+
var y = U.split("-");
|
|
217
|
+
if (!L && y.length > 1) return q(y[0]);
|
|
218
218
|
} else {
|
|
219
219
|
var T = U.name;
|
|
220
220
|
I[T] = U, L = T;
|
|
@@ -240,10 +240,10 @@ function Vn() {
|
|
|
240
240
|
if (R.u(L)) return /* @__PURE__ */ new Date();
|
|
241
241
|
if (L instanceof Date) return new Date(L);
|
|
242
242
|
if (typeof L == "string" && !/Z$/i.test(L)) {
|
|
243
|
-
var
|
|
244
|
-
if (
|
|
245
|
-
var T =
|
|
246
|
-
return F ? new Date(Date.UTC(
|
|
243
|
+
var y = L.match(w);
|
|
244
|
+
if (y) {
|
|
245
|
+
var T = y[2] - 1 || 0, O = (y[7] || "0").substring(0, 3);
|
|
246
|
+
return F ? new Date(Date.UTC(y[1], T, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, O)) : new Date(y[1], T, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, O);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
return new Date(L);
|
|
@@ -269,13 +269,13 @@ function Vn() {
|
|
|
269
269
|
}, U.valueOf = function() {
|
|
270
270
|
return this.$d.getTime();
|
|
271
271
|
}, U.startOf = function(x, D) {
|
|
272
|
-
var L = this, F = !!R.u(D) || D,
|
|
272
|
+
var L = this, F = !!R.u(D) || D, y = R.p(x), T = function(te, $) {
|
|
273
273
|
var oe = R.w(L.$u ? Date.UTC(L.$y, $, te) : new Date(L.$y, $, te), L);
|
|
274
274
|
return F ? oe : oe.endOf(c);
|
|
275
275
|
}, O = function(te, $) {
|
|
276
276
|
return R.w(L.toDate()[te].apply(L.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), L);
|
|
277
277
|
}, G = this.$W, _ = this.$M, H = this.$D, z = "set" + (this.$u ? "UTC" : "");
|
|
278
|
-
switch (
|
|
278
|
+
switch (y) {
|
|
279
279
|
case p:
|
|
280
280
|
return F ? T(1, 0) : T(31, 11);
|
|
281
281
|
case m:
|
|
@@ -298,7 +298,7 @@ function Vn() {
|
|
|
298
298
|
}, U.endOf = function(x) {
|
|
299
299
|
return this.startOf(x, !1);
|
|
300
300
|
}, U.$set = function(x, D) {
|
|
301
|
-
var L, F = R.p(x),
|
|
301
|
+
var L, F = R.p(x), y = "set" + (this.$u ? "UTC" : ""), T = (L = {}, L[c] = y + "Date", L[f] = y + "Date", L[m] = y + "Month", L[p] = y + "FullYear", L[u] = y + "Hours", L[l] = y + "Minutes", L[o] = y + "Seconds", L[i] = y + "Milliseconds", L)[F], O = F === c ? this.$D + (D - this.$W) : D;
|
|
302
302
|
if (F === m || F === p) {
|
|
303
303
|
var G = this.clone().set(f, 1);
|
|
304
304
|
G.$d[T](O), G.init(), this.$d = G.set(f, Math.min(this.$D, G.daysInMonth())).$d;
|
|
@@ -311,22 +311,22 @@ function Vn() {
|
|
|
311
311
|
}, U.add = function(x, D) {
|
|
312
312
|
var L, F = this;
|
|
313
313
|
x = Number(x);
|
|
314
|
-
var
|
|
314
|
+
var y = R.p(D), T = function(_) {
|
|
315
315
|
var H = j(F);
|
|
316
316
|
return R.w(H.date(H.date() + Math.round(_ * x)), F);
|
|
317
317
|
};
|
|
318
|
-
if (
|
|
319
|
-
if (
|
|
320
|
-
if (
|
|
321
|
-
if (
|
|
322
|
-
var O = (L = {}, L[l] = a, L[u] = r, L[o] = s, L)[
|
|
318
|
+
if (y === m) return this.set(m, this.$M + x);
|
|
319
|
+
if (y === p) return this.set(p, this.$y + x);
|
|
320
|
+
if (y === c) return T(1);
|
|
321
|
+
if (y === d) return T(7);
|
|
322
|
+
var O = (L = {}, L[l] = a, L[u] = r, L[o] = s, L)[y] || 1, G = this.$d.getTime() + x * O;
|
|
323
323
|
return R.w(G, this);
|
|
324
324
|
}, U.subtract = function(x, D) {
|
|
325
325
|
return this.add(-1 * x, D);
|
|
326
326
|
}, U.format = function(x) {
|
|
327
327
|
var D = this, L = this.$locale();
|
|
328
328
|
if (!this.isValid()) return L.invalidDate || A;
|
|
329
|
-
var F = x || "YYYY-MM-DDTHH:mm:ssZ",
|
|
329
|
+
var F = x || "YYYY-MM-DDTHH:mm:ssZ", y = R.z(this), T = this.$H, O = this.$m, G = this.$M, _ = L.weekdays, H = L.months, z = L.meridiem, Y = function($, oe, M, me) {
|
|
330
330
|
return $ && ($[oe] || $(D, F)) || M[oe].slice(0, me);
|
|
331
331
|
}, ee = function($) {
|
|
332
332
|
return R.s(T % 12 || 12, $, "0");
|
|
@@ -384,16 +384,16 @@ function Vn() {
|
|
|
384
384
|
case "SSS":
|
|
385
385
|
return R.s(D.$ms, 3, "0");
|
|
386
386
|
case "Z":
|
|
387
|
-
return
|
|
387
|
+
return y;
|
|
388
388
|
}
|
|
389
389
|
return null;
|
|
390
|
-
})($) ||
|
|
390
|
+
})($) || y.replace(":", "");
|
|
391
391
|
}));
|
|
392
392
|
}, U.utcOffset = function() {
|
|
393
393
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
394
394
|
}, U.diff = function(x, D, L) {
|
|
395
|
-
var F,
|
|
396
|
-
return R.m(
|
|
395
|
+
var F, y = this, T = R.p(D), O = j(x), G = (O.utcOffset() - this.utcOffset()) * a, _ = this - O, H = function() {
|
|
396
|
+
return R.m(y, O);
|
|
397
397
|
};
|
|
398
398
|
switch (T) {
|
|
399
399
|
case p:
|
|
@@ -454,11 +454,11 @@ function Vn() {
|
|
|
454
454
|
return j(1e3 * q);
|
|
455
455
|
}, j.en = I[b], j.Ls = I, j.p = {}, j;
|
|
456
456
|
}));
|
|
457
|
-
})(
|
|
457
|
+
})(yt)), yt.exports;
|
|
458
458
|
}
|
|
459
459
|
var Ya = Vn();
|
|
460
460
|
const he = /* @__PURE__ */ Ke(Ya);
|
|
461
|
-
var
|
|
461
|
+
var Ct = { exports: {} }, $a = Ct.exports, $s;
|
|
462
462
|
function Ka() {
|
|
463
463
|
return $s || ($s = 1, (function(e, t) {
|
|
464
464
|
(function(s, a) {
|
|
@@ -471,12 +471,12 @@ function Ka() {
|
|
|
471
471
|
return i.fromToBase(c, d, m, h);
|
|
472
472
|
}
|
|
473
473
|
r.en.relativeTime = o, i.fromToBase = function(c, d, m, h, p) {
|
|
474
|
-
for (var f, A, w, v = m.$locale().relativeTime || o,
|
|
475
|
-
var b =
|
|
474
|
+
for (var f, A, w, v = m.$locale().relativeTime || o, C = s.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], S = C.length, E = 0; E < S; E += 1) {
|
|
475
|
+
var b = C[E];
|
|
476
476
|
b.d && (f = h ? r(c).diff(m, b.d, !0) : m.diff(c, b.d, !0));
|
|
477
477
|
var I = (s.rounding || Math.round)(Math.abs(f));
|
|
478
478
|
if (w = f > 0, I <= b.r || !b.r) {
|
|
479
|
-
I <= 1 && E > 0 && (b =
|
|
479
|
+
I <= 1 && E > 0 && (b = C[E - 1]);
|
|
480
480
|
var k = v[b.l];
|
|
481
481
|
p && (I = p("" + I)), A = typeof k == "string" ? k.replace("%d", I) : k(I, d, b.l, w);
|
|
482
482
|
break;
|
|
@@ -500,7 +500,7 @@ function Ka() {
|
|
|
500
500
|
};
|
|
501
501
|
};
|
|
502
502
|
}));
|
|
503
|
-
})(
|
|
503
|
+
})(Ct)), Ct.exports;
|
|
504
504
|
}
|
|
505
505
|
var Ja = Ka();
|
|
506
506
|
const Za = /* @__PURE__ */ Ke(Ja);
|
|
@@ -561,12 +561,12 @@ function sr() {
|
|
|
561
561
|
var k = ("" + I[0]).match(r) || ["-", 0, 0], Q = k[0], W = 60 * +k[1] + +k[2];
|
|
562
562
|
return W === 0 ? 0 : Q === "+" ? W : -W;
|
|
563
563
|
})(A), A === null)) return this;
|
|
564
|
-
var
|
|
565
|
-
if (
|
|
564
|
+
var C = Math.abs(A) <= 16 ? 60 * A : A;
|
|
565
|
+
if (C === 0) return this.utc(w);
|
|
566
566
|
var S = this.clone();
|
|
567
|
-
if (w) return S.$offset =
|
|
567
|
+
if (w) return S.$offset = C, S.$u = !1, S;
|
|
568
568
|
var E = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
569
|
-
return (S = this.local().add(
|
|
569
|
+
return (S = this.local().add(C + E, s)).$offset = C, S.$x.$localOffset = E, S;
|
|
570
570
|
};
|
|
571
571
|
var h = u.format;
|
|
572
572
|
u.format = function(A) {
|
|
@@ -589,8 +589,8 @@ function sr() {
|
|
|
589
589
|
var f = u.diff;
|
|
590
590
|
u.diff = function(A, w, v) {
|
|
591
591
|
if (A && this.$u === A.$u) return f.call(this, A, w, v);
|
|
592
|
-
var
|
|
593
|
-
return f.call(
|
|
592
|
+
var C = this.local(), S = l(A).local();
|
|
593
|
+
return f.call(C, S, w, v);
|
|
594
594
|
};
|
|
595
595
|
};
|
|
596
596
|
}));
|
|
@@ -608,15 +608,15 @@ function ir() {
|
|
|
608
608
|
return function(r, i, o) {
|
|
609
609
|
var l, u = function(h, p, f) {
|
|
610
610
|
f === void 0 && (f = {});
|
|
611
|
-
var A = new Date(h), w = (function(v,
|
|
612
|
-
|
|
613
|
-
var S =
|
|
611
|
+
var A = new Date(h), w = (function(v, C) {
|
|
612
|
+
C === void 0 && (C = {});
|
|
613
|
+
var S = C.timeZoneName || "short", E = v + "|" + S, b = a[E];
|
|
614
614
|
return b || (b = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: v, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: S }), a[E] = b), b;
|
|
615
615
|
})(p, f);
|
|
616
616
|
return w.formatToParts(A);
|
|
617
617
|
}, c = function(h, p) {
|
|
618
618
|
for (var f = u(h, p), A = [], w = 0; w < f.length; w += 1) {
|
|
619
|
-
var v = f[w],
|
|
619
|
+
var v = f[w], C = v.type, S = v.value, E = s[C];
|
|
620
620
|
E >= 0 && (A[E] = parseInt(S, 10));
|
|
621
621
|
}
|
|
622
622
|
var b = A[3], I = b === 24 ? 0 : b, k = A[0] + "-" + A[1] + "-" + A[2] + " " + I + ":" + A[4] + ":" + A[5] + ":000", Q = +h;
|
|
@@ -624,7 +624,7 @@ function ir() {
|
|
|
624
624
|
}, d = i.prototype;
|
|
625
625
|
d.tz = function(h, p) {
|
|
626
626
|
h === void 0 && (h = l);
|
|
627
|
-
var f, A = this.utcOffset(), w = this.toDate(), v = w.toLocaleString("en-US", { timeZone: h }),
|
|
627
|
+
var f, A = this.utcOffset(), w = this.toDate(), v = w.toLocaleString("en-US", { timeZone: h }), C = Math.round((w - new Date(v)) / 1e3 / 60), S = 15 * -Math.round(w.getTimezoneOffset() / 15) - C;
|
|
628
628
|
if (!Number(S)) f = this.utcOffset(0, p);
|
|
629
629
|
else if (f = o(v, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(S, !0), p) {
|
|
630
630
|
var E = f.utcOffset();
|
|
@@ -645,12 +645,12 @@ function ir() {
|
|
|
645
645
|
}, o.tz = function(h, p, f) {
|
|
646
646
|
var A = f && p, w = f || p || l, v = c(+o(), w);
|
|
647
647
|
if (typeof h != "string") return o(h).tz(w);
|
|
648
|
-
var
|
|
648
|
+
var C = (function(I, k, Q) {
|
|
649
649
|
var W = I - 60 * k * 1e3, j = c(W, Q);
|
|
650
650
|
if (k === j) return [W, k];
|
|
651
651
|
var R = c(W -= 60 * (j - k) * 1e3, Q);
|
|
652
652
|
return j === R ? [W, j] : [I - 60 * Math.min(j, R) * 1e3, Math.max(j, R)];
|
|
653
|
-
})(o.utc(h, A).valueOf(), v, w), S =
|
|
653
|
+
})(o.utc(h, A).valueOf(), v, w), S = C[0], E = C[1], b = o(S).utcOffset(E);
|
|
654
654
|
return b.$x.$timezone = w, b;
|
|
655
655
|
}, o.tz.guess = function() {
|
|
656
656
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -714,7 +714,7 @@ const ur = { url: "", target: "_self", canonical: !1, internal: "" }, mr = {
|
|
|
714
714
|
function hr(e) {
|
|
715
715
|
return e == null ? "" : typeof e == "string" ? e : e.article ?? e.home ?? e.section ?? e.seo ?? "";
|
|
716
716
|
}
|
|
717
|
-
const
|
|
717
|
+
const ot = (e, t, s, a) => {
|
|
718
718
|
const r = hr(e?.main?.title), i = e?.main?.description ?? "";
|
|
719
719
|
return {
|
|
720
720
|
authors: e?.main?.author ? [
|
|
@@ -773,8 +773,8 @@ function hs(e) {
|
|
|
773
773
|
for (; l < t.length && o > 0; ) {
|
|
774
774
|
const p = t.slice(l), f = p.match(/<div\b/i), A = p.match(/<\/div>/i), w = f?.index ?? -1, v = A?.index ?? -1;
|
|
775
775
|
if (v === -1) break;
|
|
776
|
-
const
|
|
777
|
-
w !== -1 && w < v ? (o += 1, l =
|
|
776
|
+
const C = w === -1 ? 1 / 0 : l + w, S = l + v;
|
|
777
|
+
w !== -1 && w < v ? (o += 1, l = C + f[0].length) : (o -= 1, u = S, l = S + A[0].length);
|
|
778
778
|
}
|
|
779
779
|
const c = t.slice(i, u), d = [], m = /<span\b[^>]*\bdata-src=["']([^"']+)["']/gi;
|
|
780
780
|
let h;
|
|
@@ -912,7 +912,7 @@ const Md = hs, fr = async (e, t) => {
|
|
|
912
912
|
"twitter.description": { attr: "name", value: "twitter:description" },
|
|
913
913
|
"twitter.site": { attr: "name", value: "twitter:site" },
|
|
914
914
|
"twitter.creator": { attr: "name", value: "twitter:creator" }
|
|
915
|
-
},
|
|
915
|
+
}, yr = (e) => {
|
|
916
916
|
const t = [];
|
|
917
917
|
let s = 0;
|
|
918
918
|
const a = (o) => t.push(o);
|
|
@@ -1086,9 +1086,9 @@ const Md = hs, fr = async (e, t) => {
|
|
|
1086
1086
|
}, Mt = (e, t) => {
|
|
1087
1087
|
const s = e || "";
|
|
1088
1088
|
return t ? s.replaceAll("[section_replace]", t["[section_replace]"] ?? "").replaceAll("[tag_replace]", t["[tag_replace]"] ?? "").replaceAll("[tags_replace]", t["[tags_replace]"] ?? "").replaceAll("[url_replace]", t["[url_replace]"] ?? "").replaceAll("[author_replace]", t["[author_replace]"] ?? "").replaceAll("[creator_replace]", t["[creator_replace]"] ?? "") || "" : s || "";
|
|
1089
|
-
},
|
|
1089
|
+
}, Cr = /\[(?:general|seccion:[^\]]+|tema:\d+)\][\s\S]*?\[\/(?:general|seccion:[^\]]+|tema:\d+)\]/i, Nr = /\[(general|seccion:[^\]]+|tema:\d+)\]([\s\S]*?)\[\/\1\]/gi, Sr = (e) => !e || e.type === "general" ? "general" : e.type === "seccion" ? `seccion:${e.value}`.toLowerCase() : `tema:${e.value}`, Ss = (e, t) => {
|
|
1090
1090
|
const s = e || "";
|
|
1091
|
-
if (!
|
|
1091
|
+
if (!Cr.test(s)) return s;
|
|
1092
1092
|
const a = /* @__PURE__ */ new Map();
|
|
1093
1093
|
for (const l of s.matchAll(Nr)) {
|
|
1094
1094
|
const u = l[1]?.toLowerCase(), c = l[2];
|
|
@@ -1181,12 +1181,12 @@ const Md = hs, fr = async (e, t) => {
|
|
|
1181
1181
|
i
|
|
1182
1182
|
) : null;
|
|
1183
1183
|
}) });
|
|
1184
|
-
},
|
|
1184
|
+
}, et = (e, t, s) => {
|
|
1185
1185
|
let a = e.siteUrl;
|
|
1186
1186
|
return t.forEach((r, i) => {
|
|
1187
1187
|
i > 0 && (a += `/${r}`);
|
|
1188
1188
|
}), `${a}/page/${s + 1}`;
|
|
1189
|
-
},
|
|
1189
|
+
}, tt = (e, t, s) => {
|
|
1190
1190
|
let a = e.siteUrl;
|
|
1191
1191
|
return t.forEach((r, i) => {
|
|
1192
1192
|
i > 0 && (a += `/${r}`);
|
|
@@ -1437,7 +1437,7 @@ function Yd() {
|
|
|
1437
1437
|
const { PUBLIC_SERVICE_PREFIX: e } = B();
|
|
1438
1438
|
return e && e !== "false" ? "/" + e : "";
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function Me() {
|
|
1441
1441
|
const {
|
|
1442
1442
|
PUBLIC_SERVICE_PREFIX: e,
|
|
1443
1443
|
PUBLIC_IS_SUB_PUBLICATION: t,
|
|
@@ -1691,7 +1691,7 @@ const Qr = async ({
|
|
|
1691
1691
|
BASE_URL: s,
|
|
1692
1692
|
axiosApi: a
|
|
1693
1693
|
}) => {
|
|
1694
|
-
const r =
|
|
1694
|
+
const r = Me();
|
|
1695
1695
|
let i = [];
|
|
1696
1696
|
try {
|
|
1697
1697
|
const o = t.socialBlockLogo?.url ? new URL(t.socialBlockLogo.url).pathname : void 0, l = t.landscapeLogo?.url ? new URL(t.landscapeLogo.url).pathname : void 0, u = {
|
|
@@ -1911,26 +1911,26 @@ const Qr = async ({
|
|
|
1911
1911
|
if (e.search("/page/") === -1) return e.replace("/", "");
|
|
1912
1912
|
const t = e.split("/"), s = t.indexOf("page") - 1;
|
|
1913
1913
|
return s < 0 ? e : (t[s] ?? "").replace("/", "");
|
|
1914
|
-
},
|
|
1914
|
+
}, ye = (e) => {
|
|
1915
1915
|
const s = e.replace(/^\/|\/$/g, "").split("/"), a = s.indexOf("page");
|
|
1916
1916
|
return a > 0 ? `${s[a - 1] ?? ""}` : `${s[s.length - 1] ?? ""}`;
|
|
1917
1917
|
}, Yr = {
|
|
1918
1918
|
404: () => "404",
|
|
1919
1919
|
home: () => "home",
|
|
1920
|
-
slug: (e) =>
|
|
1920
|
+
slug: (e) => ye(e.pathname),
|
|
1921
1921
|
news: (e) => wr(e.pathname)?.slug,
|
|
1922
|
-
seccion: (e) =>
|
|
1923
|
-
tema: (e) =>
|
|
1924
|
-
pages: (e) =>
|
|
1925
|
-
auth: (e) =>
|
|
1926
|
-
buscar: (e) =>
|
|
1927
|
-
"ultimas-noticias": (e) =>
|
|
1928
|
-
anuncia: (e) =>
|
|
1929
|
-
contacto: (e) =>
|
|
1930
|
-
autor: (e) =>
|
|
1931
|
-
video: (e) =>
|
|
1932
|
-
videos: (e) =>
|
|
1933
|
-
},
|
|
1922
|
+
seccion: (e) => ye(e.pathname),
|
|
1923
|
+
tema: (e) => ye(e.pathname),
|
|
1924
|
+
pages: (e) => ye(e.pathname),
|
|
1925
|
+
auth: (e) => ye(e.pathname),
|
|
1926
|
+
buscar: (e) => ye(e.pathname),
|
|
1927
|
+
"ultimas-noticias": (e) => ye(e.pathname),
|
|
1928
|
+
anuncia: (e) => ye(e.pathname),
|
|
1929
|
+
contacto: (e) => ye(e.pathname),
|
|
1930
|
+
autor: (e) => ye(e.pathname),
|
|
1931
|
+
video: (e) => ye(e.pathname),
|
|
1932
|
+
videos: (e) => ye(e.pathname)
|
|
1933
|
+
}, st = (e) => {
|
|
1934
1934
|
const t = e.split("/"), s = t[t.length - 1] ?? "1";
|
|
1935
1935
|
return Number(s) > 0 ? Number(s) : 1;
|
|
1936
1936
|
}, $d = (e, t = 2) => {
|
|
@@ -2308,7 +2308,7 @@ const { toString: Jr } = Object.prototype, { getPrototypeOf: Ts } = Object, { it
|
|
|
2308
2308
|
const s = Jr.call(t);
|
|
2309
2309
|
return e[s] || (e[s] = s.slice(8, -1).toLowerCase());
|
|
2310
2310
|
})(/* @__PURE__ */ Object.create(null)), Ne = (e) => (e = e.toLowerCase(), (t) => _t(t) === e), Gt = (e) => (t) => typeof t === e, { isArray: Je } = Array, Ye = Gt("undefined");
|
|
2311
|
-
function
|
|
2311
|
+
function ct(e) {
|
|
2312
2312
|
return e !== null && !Ye(e) && e.constructor !== null && !Ye(e.constructor) && Ae(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
2313
2313
|
}
|
|
2314
2314
|
const Jn = Ne("ArrayBuffer");
|
|
@@ -2316,25 +2316,25 @@ function Zr(e) {
|
|
|
2316
2316
|
let t;
|
|
2317
2317
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Jn(e.buffer), t;
|
|
2318
2318
|
}
|
|
2319
|
-
const Xr = Gt("string"), Ae = Gt("function"), Zn = Gt("number"),
|
|
2319
|
+
const Xr = Gt("string"), Ae = Gt("function"), Zn = Gt("number"), dt = (e) => e !== null && typeof e == "object", ei = (e) => e === !0 || e === !1, Tt = (e) => {
|
|
2320
2320
|
if (_t(e) !== "object")
|
|
2321
2321
|
return !1;
|
|
2322
2322
|
const t = Ts(e);
|
|
2323
2323
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Kn in e) && !(Dt in e);
|
|
2324
2324
|
}, ti = (e) => {
|
|
2325
|
-
if (!
|
|
2325
|
+
if (!dt(e) || ct(e))
|
|
2326
2326
|
return !1;
|
|
2327
2327
|
try {
|
|
2328
2328
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
2329
2329
|
} catch {
|
|
2330
2330
|
return !1;
|
|
2331
2331
|
}
|
|
2332
|
-
}, si = Ne("Date"), ni = Ne("File"), ai = Ne("Blob"), ri = Ne("FileList"), ii = (e) =>
|
|
2332
|
+
}, si = Ne("Date"), ni = Ne("File"), ai = Ne("Blob"), ri = Ne("FileList"), ii = (e) => dt(e) && Ae(e.pipe), oi = (e) => {
|
|
2333
2333
|
let t;
|
|
2334
2334
|
return e && (typeof FormData == "function" && e instanceof FormData || Ae(e.append) && ((t = _t(e)) === "formdata" || // detect form-data instance
|
|
2335
2335
|
t === "object" && Ae(e.toString) && e.toString() === "[object FormData]"));
|
|
2336
2336
|
}, li = Ne("URLSearchParams"), [ci, di, ui, mi] = ["ReadableStream", "Request", "Response", "Headers"].map(Ne), hi = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
2337
|
-
function
|
|
2337
|
+
function ut(e, t, { allOwnKeys: s = !1 } = {}) {
|
|
2338
2338
|
if (e === null || typeof e > "u")
|
|
2339
2339
|
return;
|
|
2340
2340
|
let a, r;
|
|
@@ -2342,7 +2342,7 @@ function ot(e, t, { allOwnKeys: s = !1 } = {}) {
|
|
|
2342
2342
|
for (a = 0, r = e.length; a < r; a++)
|
|
2343
2343
|
t.call(null, e[a], a, e);
|
|
2344
2344
|
else {
|
|
2345
|
-
if (
|
|
2345
|
+
if (ct(e))
|
|
2346
2346
|
return;
|
|
2347
2347
|
const i = s ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
|
|
2348
2348
|
let l;
|
|
@@ -2351,7 +2351,7 @@ function ot(e, t, { allOwnKeys: s = !1 } = {}) {
|
|
|
2351
2351
|
}
|
|
2352
2352
|
}
|
|
2353
2353
|
function Xn(e, t) {
|
|
2354
|
-
if (
|
|
2354
|
+
if (ct(e))
|
|
2355
2355
|
return null;
|
|
2356
2356
|
t = t.toLowerCase();
|
|
2357
2357
|
const s = Object.keys(e);
|
|
@@ -2368,10 +2368,10 @@ function fs() {
|
|
|
2368
2368
|
Tt(s[o]) && Tt(r) ? s[o] = fs(s[o], r) : Tt(r) ? s[o] = fs({}, r) : Je(r) ? s[o] = r.slice() : (!t || !Ye(r)) && (s[o] = r);
|
|
2369
2369
|
};
|
|
2370
2370
|
for (let r = 0, i = arguments.length; r < i; r++)
|
|
2371
|
-
arguments[r] &&
|
|
2371
|
+
arguments[r] && ut(arguments[r], a);
|
|
2372
2372
|
return s;
|
|
2373
2373
|
}
|
|
2374
|
-
const fi = (e, t, s, { allOwnKeys: a } = {}) => (
|
|
2374
|
+
const fi = (e, t, s, { allOwnKeys: a } = {}) => (ut(t, (r, i) => {
|
|
2375
2375
|
s && Ae(r) ? e[i] = $n(r, s) : e[i] = r;
|
|
2376
2376
|
}, { allOwnKeys: a }), e), gi = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), pi = (e, t, s, a) => {
|
|
2377
2377
|
e.prototype = Object.create(t.prototype, a), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
@@ -2400,14 +2400,14 @@ const fi = (e, t, s, { allOwnKeys: a } = {}) => (ot(t, (r, i) => {
|
|
|
2400
2400
|
for (; t-- > 0; )
|
|
2401
2401
|
s[t] = e[t];
|
|
2402
2402
|
return s;
|
|
2403
|
-
}, vi = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ts(Uint8Array)),
|
|
2403
|
+
}, vi = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ts(Uint8Array)), yi = (e, t) => {
|
|
2404
2404
|
const a = (e && e[Dt]).call(e);
|
|
2405
2405
|
let r;
|
|
2406
2406
|
for (; (r = a.next()) && !r.done; ) {
|
|
2407
2407
|
const i = r.value;
|
|
2408
2408
|
t.call(e, i[0], i[1]);
|
|
2409
2409
|
}
|
|
2410
|
-
},
|
|
2410
|
+
}, Ci = (e, t) => {
|
|
2411
2411
|
let s;
|
|
2412
2412
|
const a = [];
|
|
2413
2413
|
for (; (s = e.exec(t)) !== null; )
|
|
@@ -2420,7 +2420,7 @@ const fi = (e, t, s, { allOwnKeys: a } = {}) => (ot(t, (r, i) => {
|
|
|
2420
2420
|
}
|
|
2421
2421
|
), sn = (({ hasOwnProperty: e }) => (t, s) => e.call(t, s))(Object.prototype), Ei = Ne("RegExp"), ta = (e, t) => {
|
|
2422
2422
|
const s = Object.getOwnPropertyDescriptors(e), a = {};
|
|
2423
|
-
|
|
2423
|
+
ut(s, (r, i) => {
|
|
2424
2424
|
let o;
|
|
2425
2425
|
(o = t(r, i, e)) !== !1 && (a[i] = o || r);
|
|
2426
2426
|
}), Object.defineProperties(e, a);
|
|
@@ -2453,15 +2453,15 @@ function ki(e) {
|
|
|
2453
2453
|
}
|
|
2454
2454
|
const Ri = (e) => {
|
|
2455
2455
|
const t = new Array(10), s = (a, r) => {
|
|
2456
|
-
if (
|
|
2456
|
+
if (dt(a)) {
|
|
2457
2457
|
if (t.indexOf(a) >= 0)
|
|
2458
2458
|
return;
|
|
2459
|
-
if (
|
|
2459
|
+
if (ct(a))
|
|
2460
2460
|
return a;
|
|
2461
2461
|
if (!("toJSON" in a)) {
|
|
2462
2462
|
t[r] = a;
|
|
2463
2463
|
const i = Je(a) ? [] : {};
|
|
2464
|
-
return
|
|
2464
|
+
return ut(a, (o, l) => {
|
|
2465
2465
|
const u = s(o, r + 1);
|
|
2466
2466
|
!Ye(u) && (i[l] = u);
|
|
2467
2467
|
}), t[r] = void 0, i;
|
|
@@ -2470,7 +2470,7 @@ const Ri = (e) => {
|
|
|
2470
2470
|
return a;
|
|
2471
2471
|
};
|
|
2472
2472
|
return s(e, 0);
|
|
2473
|
-
}, Li = Ne("AsyncFunction"), Pi = (e) => e && (
|
|
2473
|
+
}, Li = Ne("AsyncFunction"), Pi = (e) => e && (dt(e) || Ae(e)) && Ae(e.then) && Ae(e.catch), sa = ((e, t) => e ? setImmediate : t ? ((s, a) => (qe.addEventListener("message", ({ source: r, data: i }) => {
|
|
2474
2474
|
r === qe && i === s && a.length && a.shift()();
|
|
2475
2475
|
}, !1), (r) => {
|
|
2476
2476
|
a.push(r), qe.postMessage(s, "*");
|
|
@@ -2480,13 +2480,13 @@ const Ri = (e) => {
|
|
|
2480
2480
|
), Bi = typeof queueMicrotask < "u" ? queueMicrotask.bind(qe) : typeof process < "u" && process.nextTick || sa, Oi = (e) => e != null && Ae(e[Dt]), N = {
|
|
2481
2481
|
isArray: Je,
|
|
2482
2482
|
isArrayBuffer: Jn,
|
|
2483
|
-
isBuffer:
|
|
2483
|
+
isBuffer: ct,
|
|
2484
2484
|
isFormData: oi,
|
|
2485
2485
|
isArrayBufferView: Zr,
|
|
2486
2486
|
isString: Xr,
|
|
2487
2487
|
isNumber: Zn,
|
|
2488
2488
|
isBoolean: ei,
|
|
2489
|
-
isObject:
|
|
2489
|
+
isObject: dt,
|
|
2490
2490
|
isPlainObject: Tt,
|
|
2491
2491
|
isEmptyObject: ti,
|
|
2492
2492
|
isReadableStream: ci,
|
|
@@ -2503,7 +2503,7 @@ const Ri = (e) => {
|
|
|
2503
2503
|
isURLSearchParams: li,
|
|
2504
2504
|
isTypedArray: vi,
|
|
2505
2505
|
isFileList: ri,
|
|
2506
|
-
forEach:
|
|
2506
|
+
forEach: ut,
|
|
2507
2507
|
merge: fs,
|
|
2508
2508
|
extend: fi,
|
|
2509
2509
|
trim: hi,
|
|
@@ -2514,8 +2514,8 @@ const Ri = (e) => {
|
|
|
2514
2514
|
kindOfTest: Ne,
|
|
2515
2515
|
endsWith: wi,
|
|
2516
2516
|
toArray: bi,
|
|
2517
|
-
forEachEntry:
|
|
2518
|
-
matchAll:
|
|
2517
|
+
forEachEntry: yi,
|
|
2518
|
+
matchAll: Ci,
|
|
2519
2519
|
isHTMLForm: Ni,
|
|
2520
2520
|
hasOwnProperty: sn,
|
|
2521
2521
|
hasOwnProp: sn,
|
|
@@ -2655,14 +2655,14 @@ function jt(e, t, s) {
|
|
|
2655
2655
|
if (!N.isUndefined(f)) {
|
|
2656
2656
|
if (m.indexOf(f) !== -1)
|
|
2657
2657
|
throw Error("Circular reference detected in " + A.join("."));
|
|
2658
|
-
m.push(f), N.forEach(f, function(v,
|
|
2658
|
+
m.push(f), N.forEach(f, function(v, C) {
|
|
2659
2659
|
(!(N.isUndefined(v) || v === null) && r.call(
|
|
2660
2660
|
t,
|
|
2661
2661
|
v,
|
|
2662
|
-
N.isString(
|
|
2662
|
+
N.isString(C) ? C.trim() : C,
|
|
2663
2663
|
A,
|
|
2664
2664
|
h
|
|
2665
|
-
)) === !0 && p(v, A ? A.concat(
|
|
2665
|
+
)) === !0 && p(v, A ? A.concat(C) : [C]);
|
|
2666
2666
|
}), m.pop();
|
|
2667
2667
|
}
|
|
2668
2668
|
}
|
|
@@ -2840,7 +2840,7 @@ function Ji(e, t, s) {
|
|
|
2840
2840
|
}
|
|
2841
2841
|
return (s || JSON.stringify)(e);
|
|
2842
2842
|
}
|
|
2843
|
-
const
|
|
2843
|
+
const mt = {
|
|
2844
2844
|
transitional: la,
|
|
2845
2845
|
adapter: ["xhr", "http", "fetch"],
|
|
2846
2846
|
transformRequest: [function(t, s) {
|
|
@@ -2869,7 +2869,7 @@ const lt = {
|
|
|
2869
2869
|
return i || r ? (s.setContentType("application/json", !1), Ji(t)) : t;
|
|
2870
2870
|
}],
|
|
2871
2871
|
transformResponse: [function(t) {
|
|
2872
|
-
const s = this.transitional ||
|
|
2872
|
+
const s = this.transitional || mt.transitional, a = s && s.forcedJSONParsing, r = this.responseType === "json";
|
|
2873
2873
|
if (N.isResponse(t) || N.isReadableStream(t))
|
|
2874
2874
|
return t;
|
|
2875
2875
|
if (t && N.isString(t) && (a && !this.responseType || r)) {
|
|
@@ -2907,7 +2907,7 @@ const lt = {
|
|
|
2907
2907
|
}
|
|
2908
2908
|
};
|
|
2909
2909
|
N.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
2910
|
-
|
|
2910
|
+
mt.headers[e] = {};
|
|
2911
2911
|
});
|
|
2912
2912
|
const Zi = N.toObjectSet([
|
|
2913
2913
|
"age",
|
|
@@ -2935,7 +2935,7 @@ const Zi = N.toObjectSet([
|
|
|
2935
2935
|
r = o.indexOf(":"), s = o.substring(0, r).trim().toLowerCase(), a = o.substring(r + 1).trim(), !(!s || t[s] && Zi[s]) && (s === "set-cookie" ? t[s] ? t[s].push(a) : t[s] = [a] : t[s] = t[s] ? t[s] + ", " + a : a);
|
|
2936
2936
|
}), t;
|
|
2937
2937
|
}, on = Symbol("internals");
|
|
2938
|
-
function
|
|
2938
|
+
function nt(e) {
|
|
2939
2939
|
return e && String(e).trim().toLowerCase();
|
|
2940
2940
|
}
|
|
2941
2941
|
function It(e) {
|
|
@@ -2980,7 +2980,7 @@ let we = class {
|
|
|
2980
2980
|
set(t, s, a) {
|
|
2981
2981
|
const r = this;
|
|
2982
2982
|
function i(l, u, c) {
|
|
2983
|
-
const d =
|
|
2983
|
+
const d = nt(u);
|
|
2984
2984
|
if (!d)
|
|
2985
2985
|
throw new Error("header name must be a non-empty string");
|
|
2986
2986
|
const m = N.findKey(r, d);
|
|
@@ -3004,7 +3004,7 @@ let we = class {
|
|
|
3004
3004
|
return this;
|
|
3005
3005
|
}
|
|
3006
3006
|
get(t, s) {
|
|
3007
|
-
if (t =
|
|
3007
|
+
if (t = nt(t), t) {
|
|
3008
3008
|
const a = N.findKey(this, t);
|
|
3009
3009
|
if (a) {
|
|
3010
3010
|
const r = this[a];
|
|
@@ -3021,7 +3021,7 @@ let we = class {
|
|
|
3021
3021
|
}
|
|
3022
3022
|
}
|
|
3023
3023
|
has(t, s) {
|
|
3024
|
-
if (t =
|
|
3024
|
+
if (t = nt(t), t) {
|
|
3025
3025
|
const a = N.findKey(this, t);
|
|
3026
3026
|
return !!(a && this[a] !== void 0 && (!s || Zt(this, this[a], a, s)));
|
|
3027
3027
|
}
|
|
@@ -3031,7 +3031,7 @@ let we = class {
|
|
|
3031
3031
|
const a = this;
|
|
3032
3032
|
let r = !1;
|
|
3033
3033
|
function i(o) {
|
|
3034
|
-
if (o =
|
|
3034
|
+
if (o = nt(o), o) {
|
|
3035
3035
|
const l = N.findKey(a, o);
|
|
3036
3036
|
l && (!s || Zt(a, a[l], l, s)) && (delete a[l], r = !0);
|
|
3037
3037
|
}
|
|
@@ -3093,7 +3093,7 @@ let we = class {
|
|
|
3093
3093
|
accessors: {}
|
|
3094
3094
|
}).accessors, r = this.prototype;
|
|
3095
3095
|
function i(o) {
|
|
3096
|
-
const l =
|
|
3096
|
+
const l = nt(o);
|
|
3097
3097
|
a[l] || (no(r, o), a[l] = !0);
|
|
3098
3098
|
}
|
|
3099
3099
|
return N.isArray(t) ? t.forEach(i) : i(t), this;
|
|
@@ -3111,7 +3111,7 @@ N.reduceDescriptors(we.prototype, ({ value: e }, t) => {
|
|
|
3111
3111
|
});
|
|
3112
3112
|
N.freezeMethods(we);
|
|
3113
3113
|
function Xt(e, t) {
|
|
3114
|
-
const s = this ||
|
|
3114
|
+
const s = this || mt, a = t || s, r = we.from(a.headers);
|
|
3115
3115
|
let i = a.data;
|
|
3116
3116
|
return N.forEach(e, function(l) {
|
|
3117
3117
|
i = l.call(s, i, r.normalize(), t ? t.status : void 0);
|
|
@@ -3373,9 +3373,9 @@ const ha = (e) => {
|
|
|
3373
3373
|
}), N.isUndefined(r.withCredentials) || (w.withCredentials = !!r.withCredentials), l && l !== "json" && (w.responseType = r.responseType), c && ([h, f] = kt(c, !0), w.addEventListener("progress", h)), u && w.upload && ([m, p] = kt(u), w.upload.addEventListener("progress", m), w.upload.addEventListener("loadend", p)), (r.cancelToken || r.signal) && (d = (S) => {
|
|
3374
3374
|
w && (a(!S || S.type ? new Ze(null, e, w) : S), w.abort(), w = null);
|
|
3375
3375
|
}, r.cancelToken && r.cancelToken.subscribe(d), r.signal && (r.signal.aborted ? d() : r.signal.addEventListener("abort", d)));
|
|
3376
|
-
const
|
|
3377
|
-
if (
|
|
3378
|
-
a(new J("Unsupported protocol " +
|
|
3376
|
+
const C = ao(r.url);
|
|
3377
|
+
if (C && ue.protocols.indexOf(C) === -1) {
|
|
3378
|
+
a(new J("Unsupported protocol " + C + ":", J.ERR_BAD_REQUEST, e));
|
|
3379
3379
|
return;
|
|
3380
3380
|
}
|
|
3381
3381
|
w.send(i || null);
|
|
@@ -3460,7 +3460,7 @@ const ha = (e) => {
|
|
|
3460
3460
|
}, {
|
|
3461
3461
|
highWaterMark: 2
|
|
3462
3462
|
});
|
|
3463
|
-
}, mn = 64 * 1024, { isFunction:
|
|
3463
|
+
}, mn = 64 * 1024, { isFunction: gt } = N, wo = (({ Request: e, Response: t }) => ({
|
|
3464
3464
|
Request: e,
|
|
3465
3465
|
Response: t
|
|
3466
3466
|
}))(N.global), {
|
|
@@ -3476,10 +3476,10 @@ const ha = (e) => {
|
|
|
3476
3476
|
e = N.merge.call({
|
|
3477
3477
|
skipUndefined: !0
|
|
3478
3478
|
}, wo, e);
|
|
3479
|
-
const { fetch: t, Request: s, Response: a } = e, r = t ?
|
|
3479
|
+
const { fetch: t, Request: s, Response: a } = e, r = t ? gt(t) : typeof fetch == "function", i = gt(s), o = gt(a);
|
|
3480
3480
|
if (!r)
|
|
3481
3481
|
return !1;
|
|
3482
|
-
const l = r &&
|
|
3482
|
+
const l = r && gt(hn), u = r && (typeof fn == "function" ? /* @__PURE__ */ ((f) => (A) => f.encode(A))(new fn()) : async (f) => new Uint8Array(await new s(f).arrayBuffer())), c = i && l && gn(() => {
|
|
3483
3483
|
let f = !1;
|
|
3484
3484
|
const A = new s(ue.origin, {
|
|
3485
3485
|
body: new hn(),
|
|
@@ -3523,7 +3523,7 @@ const ha = (e) => {
|
|
|
3523
3523
|
url: A,
|
|
3524
3524
|
method: w,
|
|
3525
3525
|
data: v,
|
|
3526
|
-
signal:
|
|
3526
|
+
signal: C,
|
|
3527
3527
|
cancelToken: S,
|
|
3528
3528
|
timeout: E,
|
|
3529
3529
|
onDownloadProgress: b,
|
|
@@ -3534,7 +3534,7 @@ const ha = (e) => {
|
|
|
3534
3534
|
fetchOptions: j
|
|
3535
3535
|
} = ha(f), R = t || fetch;
|
|
3536
3536
|
k = k ? (k + "").toLowerCase() : "text";
|
|
3537
|
-
let V = fo([
|
|
3537
|
+
let V = fo([C, S && S.toAbortSignal()], E), se = null;
|
|
3538
3538
|
const q = V && V.unsubscribe && (() => {
|
|
3539
3539
|
V.unsubscribe();
|
|
3540
3540
|
});
|
|
@@ -3584,10 +3584,10 @@ const ha = (e) => {
|
|
|
3584
3584
|
);
|
|
3585
3585
|
}
|
|
3586
3586
|
k = k || "text";
|
|
3587
|
-
let
|
|
3587
|
+
let y = await m[N.findKey(m, k) || "text"](L, f);
|
|
3588
3588
|
return !F && q && q(), await new Promise((T, O) => {
|
|
3589
3589
|
ua(T, O, {
|
|
3590
|
-
data:
|
|
3590
|
+
data: y,
|
|
3591
3591
|
headers: we.from(L.headers),
|
|
3592
3592
|
status: L.status,
|
|
3593
3593
|
statusText: L.statusText,
|
|
@@ -3633,8 +3633,8 @@ N.forEach(Us, (e, t) => {
|
|
|
3633
3633
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
3634
3634
|
}
|
|
3635
3635
|
});
|
|
3636
|
-
const pn = (e) => `- ${e}`,
|
|
3637
|
-
function
|
|
3636
|
+
const pn = (e) => `- ${e}`, yo = (e) => N.isFunction(e) || e === null || e === !1;
|
|
3637
|
+
function Co(e, t) {
|
|
3638
3638
|
e = N.isArray(e) ? e : [e];
|
|
3639
3639
|
const { length: s } = e;
|
|
3640
3640
|
let a, r;
|
|
@@ -3642,7 +3642,7 @@ function yo(e, t) {
|
|
|
3642
3642
|
for (let o = 0; o < s; o++) {
|
|
3643
3643
|
a = e[o];
|
|
3644
3644
|
let l;
|
|
3645
|
-
if (r = a, !
|
|
3645
|
+
if (r = a, !yo(a) && (r = Us[(l = String(a)).toLowerCase()], r === void 0))
|
|
3646
3646
|
throw new J(`Unknown adapter '${l}'`);
|
|
3647
3647
|
if (r && (N.isFunction(r) || (r = r.get(t))))
|
|
3648
3648
|
break;
|
|
@@ -3667,7 +3667,7 @@ const ga = {
|
|
|
3667
3667
|
* Resolve an adapter from a list of adapter names or functions.
|
|
3668
3668
|
* @type {Function}
|
|
3669
3669
|
*/
|
|
3670
|
-
getAdapter:
|
|
3670
|
+
getAdapter: Co,
|
|
3671
3671
|
/**
|
|
3672
3672
|
* Exposes all known adapters
|
|
3673
3673
|
* @type {Object<string, Function|Object>}
|
|
@@ -3682,7 +3682,7 @@ function An(e) {
|
|
|
3682
3682
|
return es(e), e.headers = we.from(e.headers), e.data = Xt.call(
|
|
3683
3683
|
e,
|
|
3684
3684
|
e.transformRequest
|
|
3685
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ga.getAdapter(e.adapter ||
|
|
3685
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ga.getAdapter(e.adapter || mt.adapter, e)(e).then(function(a) {
|
|
3686
3686
|
return es(e), a.data = Xt.call(
|
|
3687
3687
|
e,
|
|
3688
3688
|
e.transformResponse,
|
|
@@ -4030,7 +4030,7 @@ function wa(e) {
|
|
|
4030
4030
|
return wa(Qe(e, r));
|
|
4031
4031
|
}, s;
|
|
4032
4032
|
}
|
|
4033
|
-
const re = wa(
|
|
4033
|
+
const re = wa(mt);
|
|
4034
4034
|
re.Axios = De;
|
|
4035
4035
|
re.CanceledError = Ze;
|
|
4036
4036
|
re.CancelToken = So;
|
|
@@ -4068,7 +4068,7 @@ const {
|
|
|
4068
4068
|
getAdapter: hu,
|
|
4069
4069
|
mergeConfig: fu
|
|
4070
4070
|
} = re;
|
|
4071
|
-
class
|
|
4071
|
+
class Be {
|
|
4072
4072
|
constructor(t) {
|
|
4073
4073
|
this.props = t, t?.config?.configVersion && (this.configVersion = t.config.configVersion), t?.exclude && (this.exclude = t.exclude);
|
|
4074
4074
|
}
|
|
@@ -4411,8 +4411,8 @@ class Me {
|
|
|
4411
4411
|
}))?.data.data ?? []);
|
|
4412
4412
|
const c = hs(l), m = (Fe(i)?.data ?? [])[0]?.list?.items?.map((v) => hs(v)), h = [];
|
|
4413
4413
|
m?.forEach((v) => {
|
|
4414
|
-
v && v.length > 0 && v.forEach((
|
|
4415
|
-
|
|
4414
|
+
v && v.length > 0 && v.forEach((C) => {
|
|
4415
|
+
C.forEach((S) => {
|
|
4416
4416
|
const E = this.getNews({
|
|
4417
4417
|
path: S.replaceAll("|", "/"),
|
|
4418
4418
|
imagesizes: s.getNewsItemsRelated,
|
|
@@ -4448,7 +4448,7 @@ class Me {
|
|
|
4448
4448
|
};
|
|
4449
4449
|
};
|
|
4450
4450
|
}
|
|
4451
|
-
class Io extends
|
|
4451
|
+
class Io extends Be {
|
|
4452
4452
|
MULTIPUBLICATION_FETCHES;
|
|
4453
4453
|
PUBLIC_PUBLICATION_ID;
|
|
4454
4454
|
IS_MULTIPUBLICATION;
|
|
@@ -4658,7 +4658,7 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4658
4658
|
title: e.title,
|
|
4659
4659
|
description: e.description
|
|
4660
4660
|
// robots: 'noindex',
|
|
4661
|
-
}), bn = (e = "") => e.replace(/-/g, " ").replace(/^./, (t) => t.toUpperCase()),
|
|
4661
|
+
}), bn = (e = "") => e.replace(/-/g, " ").replace(/^./, (t) => t.toUpperCase()), at = (e) => e.includes("/page/") ? e.replace(/\/page\/\d+$/, "") : e, Uo = {
|
|
4662
4662
|
404: (e) => {
|
|
4663
4663
|
const { meta: t } = e;
|
|
4664
4664
|
return ge(t);
|
|
@@ -4702,7 +4702,7 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4702
4702
|
return i ? { ...t, ...i } : ge(t);
|
|
4703
4703
|
},
|
|
4704
4704
|
seccion: async (e) => {
|
|
4705
|
-
const { meta: t, config: s, pathname: a, slug: r, axiosApi: i } = e, o = new
|
|
4705
|
+
const { meta: t, config: s, pathname: a, slug: r, axiosApi: i } = e, o = new Be({ config: s, axiosApi: i }), u = at(a).split("/"), c = [], d = st(a), m = Number(s.newsListLimit) ?? 0, h = B().PUBLIC_LNG === "en";
|
|
4706
4706
|
try {
|
|
4707
4707
|
const p = await o.getNewsListSection({
|
|
4708
4708
|
section: r,
|
|
@@ -4713,7 +4713,7 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4713
4713
|
});
|
|
4714
4714
|
if (!p) return ge(t);
|
|
4715
4715
|
const f = p.data.data, A = f[0];
|
|
4716
|
-
return f.length < m || c.push({ rel: "next", url:
|
|
4716
|
+
return f.length < m || c.push({ rel: "next", url: et(s, u, d) }), d > 1 && c.push({ rel: "prev", url: tt(s, u, d) }), {
|
|
4717
4717
|
...t,
|
|
4718
4718
|
title: h ? `Latest News from ${A.info.section?.name} | ${s.name}` : `Últimas Noticias de ${A.info.section?.name} | ${s.name}`,
|
|
4719
4719
|
description: h ? `All the latest news from ${A.info.section?.name} on ${s.name}` : `Todas las últimas noticias de ${A.info.section?.name} en ${s.name}`,
|
|
@@ -4748,7 +4748,7 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4748
4748
|
}
|
|
4749
4749
|
},
|
|
4750
4750
|
tema: async (e) => {
|
|
4751
|
-
const { meta: t, config: s, pathname: a, slug: r, axiosApi: i } = e, o = new
|
|
4751
|
+
const { meta: t, config: s, pathname: a, slug: r, axiosApi: i } = e, o = new Be({ config: s, axiosApi: i }), u = at(a).split("/"), c = [], d = st(a), m = Number(s.newsListLimit) ?? 0, h = /([t][0-9]{4})\w+/.exec(r || ""), p = h && h?.length > 0 ? h[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: f, PUBLIC_LNG: A } = B(), w = A === "en";
|
|
4752
4752
|
try {
|
|
4753
4753
|
const v = await o.getNewsListTags({
|
|
4754
4754
|
tagid: p,
|
|
@@ -4759,17 +4759,17 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4759
4759
|
page: d
|
|
4760
4760
|
});
|
|
4761
4761
|
if (!v) return ge(t);
|
|
4762
|
-
const
|
|
4763
|
-
return
|
|
4762
|
+
const C = v.data.entity;
|
|
4763
|
+
return C ? (v.data.data?.length < m || c.push({
|
|
4764
4764
|
rel: "next",
|
|
4765
|
-
url:
|
|
4765
|
+
url: et(s, u, d)
|
|
4766
4766
|
}), d > 1 && c.push({
|
|
4767
4767
|
rel: "prev",
|
|
4768
|
-
url:
|
|
4768
|
+
url: tt(s, u, d)
|
|
4769
4769
|
}), {
|
|
4770
4770
|
...t,
|
|
4771
|
-
title: w ? `Latest news about ${
|
|
4772
|
-
description: w ? `The latest news about ${
|
|
4771
|
+
title: w ? `Latest news about ${C.name} | ${s.name}` : `Últimas noticias de ${C.name} | ${s.name}`,
|
|
4772
|
+
description: w ? `The latest news about ${C.name} on ${s.name}` : `Las últimas noticias sobre ${C.name} en ${s.name}`,
|
|
4773
4773
|
alternates: {
|
|
4774
4774
|
...t.alternates,
|
|
4775
4775
|
canonical: s.siteUrl + a
|
|
@@ -4784,7 +4784,7 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4784
4784
|
},
|
|
4785
4785
|
openGraph: {
|
|
4786
4786
|
...t.openGraph,
|
|
4787
|
-
title: `${
|
|
4787
|
+
title: `${C.name}`,
|
|
4788
4788
|
type: "website",
|
|
4789
4789
|
url: `${s.siteUrl}${a}`,
|
|
4790
4790
|
locale: t.openGraph.locale
|
|
@@ -4792,7 +4792,7 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4792
4792
|
twitter: {
|
|
4793
4793
|
...t.twitter,
|
|
4794
4794
|
card: "summary_large_image",
|
|
4795
|
-
title: `${
|
|
4795
|
+
title: `${C.name}`,
|
|
4796
4796
|
site: t.twitter.site,
|
|
4797
4797
|
domain: s.siteUrl,
|
|
4798
4798
|
url: `${s.siteUrl}${a}`
|
|
@@ -4802,19 +4802,45 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4802
4802
|
return console.error(v), ge(t);
|
|
4803
4803
|
}
|
|
4804
4804
|
},
|
|
4805
|
-
"ultimas-noticias": (e) => {
|
|
4806
|
-
const { meta: t, config: s,
|
|
4807
|
-
return {
|
|
4805
|
+
"ultimas-noticias": async (e) => {
|
|
4806
|
+
const { meta: t, config: s, pathname: a, texts: r, axiosApi: i } = e, o = new Be({ config: s, axiosApi: i }), u = at(a).split("/"), c = [], d = st(a), m = Number(s.newsListLimit) ?? 0, h = {
|
|
4808
4807
|
...t,
|
|
4809
|
-
title: `${s.name} | ${
|
|
4808
|
+
title: `${s.name} | ${r.lastNotesTitle}`,
|
|
4810
4809
|
alternates: {
|
|
4811
4810
|
...t.alternates,
|
|
4812
4811
|
canonical: s.siteUrl + "/" + s.paths["ultimas-noticias"]
|
|
4813
4812
|
}
|
|
4814
4813
|
};
|
|
4814
|
+
if (!i) return h;
|
|
4815
|
+
try {
|
|
4816
|
+
const p = await o.getNewsList({
|
|
4817
|
+
size: m,
|
|
4818
|
+
newstype: s.newsType,
|
|
4819
|
+
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
4820
|
+
page: d
|
|
4821
|
+
});
|
|
4822
|
+
return p ? (p.data.data.length < m || c.push({ rel: "next", url: et(s, u, d) }), d > 1 && c.push({ rel: "prev", url: tt(s, u, d) }), {
|
|
4823
|
+
...t,
|
|
4824
|
+
title: `${s.name} | ${r.lastNotesTitle}`,
|
|
4825
|
+
alternates: {
|
|
4826
|
+
...t.alternates,
|
|
4827
|
+
canonical: s.siteUrl + a
|
|
4828
|
+
},
|
|
4829
|
+
manifest: s.manifest,
|
|
4830
|
+
icons: {
|
|
4831
|
+
...s.icons,
|
|
4832
|
+
other: c
|
|
4833
|
+
},
|
|
4834
|
+
other: {
|
|
4835
|
+
"msapplication-TileImage": s.msapplicationTileImage ?? ""
|
|
4836
|
+
}
|
|
4837
|
+
}) : h;
|
|
4838
|
+
} catch (p) {
|
|
4839
|
+
return console.error(p), h;
|
|
4840
|
+
}
|
|
4815
4841
|
},
|
|
4816
4842
|
video: async (e) => {
|
|
4817
|
-
const { meta: t, config: s, internalPath: a, axiosApi: r } = e, i = new
|
|
4843
|
+
const { meta: t, config: s, internalPath: a, axiosApi: r } = e, i = new Be({ config: s, axiosApi: r });
|
|
4818
4844
|
try {
|
|
4819
4845
|
const o = await i.getVideos({
|
|
4820
4846
|
imagesizes: "w:1200,h:630,t:2;",
|
|
@@ -4833,17 +4859,17 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4833
4859
|
}
|
|
4834
4860
|
},
|
|
4835
4861
|
videos: async (e) => {
|
|
4836
|
-
const { meta: t, config: s, pathname: a, axiosApi: r } = e, i = new
|
|
4862
|
+
const { meta: t, config: s, pathname: a, axiosApi: r } = e, i = new Be({ config: s, axiosApi: r }), l = at(a).split("/"), u = [], c = st(a), d = await i.getvideoListAdvanced({
|
|
4837
4863
|
size: Number(s.newsListLimit),
|
|
4838
4864
|
query: "Category:(videohome OR destacadoseccion OR seccion)",
|
|
4839
4865
|
page: Number(c)
|
|
4840
4866
|
});
|
|
4841
4867
|
return d ? (d.data.data.length < Number(s.newsListLimit) || u.push({
|
|
4842
4868
|
rel: "next",
|
|
4843
|
-
url:
|
|
4869
|
+
url: et(s, l, c)
|
|
4844
4870
|
}), c > 1 && u.push({
|
|
4845
4871
|
rel: "prev",
|
|
4846
|
-
url:
|
|
4872
|
+
url: tt(s, l, c)
|
|
4847
4873
|
}), {
|
|
4848
4874
|
...t,
|
|
4849
4875
|
title: "Videos | " + s.name,
|
|
@@ -4862,7 +4888,7 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4862
4888
|
}) : ge(t);
|
|
4863
4889
|
},
|
|
4864
4890
|
pages: async (e, t) => {
|
|
4865
|
-
const { meta: s, config: a, pathname: r, slug: i, axiosApi: o } = e, l = new
|
|
4891
|
+
const { meta: s, config: a, pathname: r, slug: i, axiosApi: o } = e, l = new Be({ config: a, axiosApi: o });
|
|
4866
4892
|
try {
|
|
4867
4893
|
const u = await l.getPages({
|
|
4868
4894
|
path: t || a.servicePrefix + `/pages/${i}`
|
|
@@ -4954,7 +4980,7 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4954
4980
|
}
|
|
4955
4981
|
},
|
|
4956
4982
|
autor: async (e) => {
|
|
4957
|
-
const { meta: t, config: s, pathname: a, imgSizes: r, slug: i, axiosApi: o } = e, l = new
|
|
4983
|
+
const { meta: t, config: s, pathname: a, imgSizes: r, slug: i, axiosApi: o } = e, l = new Be({ config: s, axiosApi: o, imgSizes: r }), c = at(a).split("/"), d = [], m = st(a), h = B().PUBLIC_LNG === "en";
|
|
4958
4984
|
try {
|
|
4959
4985
|
const p = await l.getAutorInfo({
|
|
4960
4986
|
user: i,
|
|
@@ -4970,10 +4996,10 @@ const pu = async (e, t, s, a, r, i, o) => {
|
|
|
4970
4996
|
});
|
|
4971
4997
|
return f ? (f.data.data.length < Number(s.newsListLimit) || d.push({
|
|
4972
4998
|
rel: "next",
|
|
4973
|
-
url:
|
|
4999
|
+
url: et(s, c, m)
|
|
4974
5000
|
}), m > 1 && d.push({
|
|
4975
5001
|
rel: "prev",
|
|
4976
|
-
url:
|
|
5002
|
+
url: tt(s, c, m)
|
|
4977
5003
|
}), {
|
|
4978
5004
|
...t,
|
|
4979
5005
|
title: h ? `Latest News from ${p?.data.data[0]?.info.fullname} | ${s.name}` : `Últimas Noticias de ${p?.data.data[0]?.info.fullname} | ${s.name}`,
|
|
@@ -5051,7 +5077,7 @@ async function wu({
|
|
|
5051
5077
|
config: A,
|
|
5052
5078
|
socials: w,
|
|
5053
5079
|
speculationType: v = "Common",
|
|
5054
|
-
preloadImageUrl:
|
|
5080
|
+
preloadImageUrl: C,
|
|
5055
5081
|
custom_Speculation: S,
|
|
5056
5082
|
custom_metadata: E,
|
|
5057
5083
|
custom_scriptReplaces: b,
|
|
@@ -5069,7 +5095,7 @@ async function wu({
|
|
|
5069
5095
|
axiosApi: e,
|
|
5070
5096
|
internalPath: f,
|
|
5071
5097
|
schemasImages: k
|
|
5072
|
-
}), W =
|
|
5098
|
+
}), W = yr(Q), j = b || Yn[r]({
|
|
5073
5099
|
pathname: i,
|
|
5074
5100
|
slug: o,
|
|
5075
5101
|
config: A,
|
|
@@ -5095,10 +5121,10 @@ async function wu({
|
|
|
5095
5121
|
]
|
|
5096
5122
|
}
|
|
5097
5123
|
),
|
|
5098
|
-
t.preloadImages &&
|
|
5124
|
+
t.preloadImages && C && /* @__PURE__ */ n(
|
|
5099
5125
|
tn,
|
|
5100
5126
|
{
|
|
5101
|
-
images:
|
|
5127
|
+
images: C.map((R) => ({
|
|
5102
5128
|
...R,
|
|
5103
5129
|
href: ze() + gr(R.href)
|
|
5104
5130
|
}))
|
|
@@ -5222,63 +5248,63 @@ function Po({
|
|
|
5222
5248
|
enableDrag: i,
|
|
5223
5249
|
onIndexChange: o
|
|
5224
5250
|
}) {
|
|
5225
|
-
const [l, u] = Z(!1), [c, d] = Z(0), [m, h] = Z(0), [p, f] = Z(0), [A, w] = Z(0), [v,
|
|
5251
|
+
const [l, u] = Z(!1), [c, d] = Z(0), [m, h] = Z(0), [p, f] = Z(0), [A, w] = Z(0), [v, C] = Z(null), S = Ga(null), [E, b] = Z(1), I = le(() => {
|
|
5226
5252
|
if (r) return 1;
|
|
5227
|
-
const
|
|
5253
|
+
const y = S.current?.offsetWidth || window.innerWidth, T = s + a, O = Math.floor(y / T);
|
|
5228
5254
|
return Math.max(1, O);
|
|
5229
5255
|
}, [r, s, a]);
|
|
5230
5256
|
xe(() => {
|
|
5231
|
-
const
|
|
5257
|
+
const y = () => {
|
|
5232
5258
|
const T = I();
|
|
5233
5259
|
b(T);
|
|
5234
5260
|
};
|
|
5235
|
-
return
|
|
5261
|
+
return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
|
|
5236
5262
|
}, [I]);
|
|
5237
5263
|
const Q = le(() => {
|
|
5238
|
-
const
|
|
5239
|
-
return Math.max(0, t -
|
|
5264
|
+
const y = I();
|
|
5265
|
+
return Math.max(0, t - y);
|
|
5240
5266
|
}, [t, I])(), W = le(() => {
|
|
5241
|
-
const
|
|
5242
|
-
return
|
|
5267
|
+
const y = I();
|
|
5268
|
+
return y === 1 ? 1 : Math.max(1, Math.ceil(y / 2));
|
|
5243
5269
|
}, [I]), j = le(
|
|
5244
|
-
(
|
|
5270
|
+
(y, T = 0) => {
|
|
5245
5271
|
if (r) {
|
|
5246
5272
|
const O = S.current?.offsetWidth || window.innerWidth;
|
|
5247
|
-
return -(
|
|
5273
|
+
return -(y * (100 + a)) + T / O * 100;
|
|
5248
5274
|
}
|
|
5249
|
-
return -(
|
|
5275
|
+
return -(y * (s + a)) + T;
|
|
5250
5276
|
},
|
|
5251
5277
|
[r, s, a]
|
|
5252
5278
|
), R = le(
|
|
5253
|
-
(
|
|
5279
|
+
(y) => {
|
|
5254
5280
|
const T = S.current?.offsetWidth || window.innerWidth, O = I(), G = W();
|
|
5255
5281
|
if (r)
|
|
5256
|
-
return Math.abs(
|
|
5282
|
+
return Math.abs(y) / T * 100 > 30 ? 1 : 0;
|
|
5257
5283
|
{
|
|
5258
|
-
const _ = s + a, H = Math.abs(
|
|
5284
|
+
const _ = s + a, H = Math.abs(y) / _;
|
|
5259
5285
|
return H >= (O === 1 ? 0.2 : 0.3) ? O === 1 ? 1 : Math.min(Math.round(H), G) : 0;
|
|
5260
5286
|
}
|
|
5261
5287
|
},
|
|
5262
5288
|
[r, s, a, I, W]
|
|
5263
5289
|
), V = le(
|
|
5264
|
-
(
|
|
5265
|
-
i && (d(
|
|
5290
|
+
(y) => {
|
|
5291
|
+
i && (d(y), h(y), f(0), w(Date.now()), u(!0), document.body.classList.add("dragging"));
|
|
5266
5292
|
},
|
|
5267
5293
|
[i]
|
|
5268
5294
|
), se = le(
|
|
5269
|
-
(
|
|
5295
|
+
(y) => {
|
|
5270
5296
|
if (!l || !i) return;
|
|
5271
|
-
const T =
|
|
5272
|
-
h(
|
|
5297
|
+
const T = y - c, O = (s + a) * 1.2, G = e === 0 && T > 0, _ = e === Q && T < 0, H = G || _ ? Math.sign(T) * Math.min(Math.abs(T), O) : T;
|
|
5298
|
+
h(y), f(H);
|
|
5273
5299
|
},
|
|
5274
5300
|
[l, c, i, e, Q, s, a]
|
|
5275
5301
|
), q = le(
|
|
5276
|
-
(
|
|
5277
|
-
se(
|
|
5302
|
+
(y) => {
|
|
5303
|
+
se(y.clientX);
|
|
5278
5304
|
},
|
|
5279
5305
|
[se]
|
|
5280
5306
|
), U = le(
|
|
5281
|
-
(
|
|
5307
|
+
(y) => {
|
|
5282
5308
|
if (!l || !i) return;
|
|
5283
5309
|
const T = m - c, O = Date.now() - A, G = Math.abs(T) / Math.max(O, 1), _ = R(T), z = G > 0.5 && Math.abs(T) > 50 ? Math.max(_, 1) : _;
|
|
5284
5310
|
if (z > 0)
|
|
@@ -5289,7 +5315,7 @@ function Po({
|
|
|
5289
5315
|
const Y = Math.min(Q, e + z);
|
|
5290
5316
|
o(Y);
|
|
5291
5317
|
}
|
|
5292
|
-
u(!1), f(0), document.body.classList.remove("dragging"), document.removeEventListener("mousemove", q), document.removeEventListener("mouseup", U),
|
|
5318
|
+
u(!1), f(0), document.body.classList.remove("dragging"), document.removeEventListener("mousemove", q), document.removeEventListener("mouseup", U), y.clientX === c && v?.dispatchEvent(new PointerEvent("click"));
|
|
5293
5319
|
},
|
|
5294
5320
|
[
|
|
5295
5321
|
l,
|
|
@@ -5305,23 +5331,23 @@ function Po({
|
|
|
5305
5331
|
v
|
|
5306
5332
|
]
|
|
5307
5333
|
), x = le(
|
|
5308
|
-
(
|
|
5309
|
-
|
|
5334
|
+
(y) => {
|
|
5335
|
+
y.preventDefault(), ["a", "span"].includes(y.target?.localName) && C(y.target), V(y.clientX);
|
|
5310
5336
|
},
|
|
5311
5337
|
[V]
|
|
5312
5338
|
), D = le(
|
|
5313
|
-
(
|
|
5314
|
-
V(
|
|
5339
|
+
(y) => {
|
|
5340
|
+
V(y.touches[0].clientX);
|
|
5315
5341
|
},
|
|
5316
5342
|
[V]
|
|
5317
5343
|
), L = le(
|
|
5318
|
-
(
|
|
5319
|
-
l && (
|
|
5344
|
+
(y) => {
|
|
5345
|
+
l && (y.preventDefault(), se(y.touches[0].clientX));
|
|
5320
5346
|
},
|
|
5321
5347
|
[l, se]
|
|
5322
5348
|
), F = le(
|
|
5323
|
-
(
|
|
5324
|
-
U(
|
|
5349
|
+
(y) => {
|
|
5350
|
+
U(y);
|
|
5325
5351
|
},
|
|
5326
5352
|
[U]
|
|
5327
5353
|
);
|
|
@@ -5349,7 +5375,7 @@ function Po({
|
|
|
5349
5375
|
}
|
|
5350
5376
|
};
|
|
5351
5377
|
}
|
|
5352
|
-
function
|
|
5378
|
+
function yu(e) {
|
|
5353
5379
|
const {
|
|
5354
5380
|
children: t,
|
|
5355
5381
|
slot_id: s,
|
|
@@ -5370,7 +5396,7 @@ function Cu(e) {
|
|
|
5370
5396
|
translateOffset: A,
|
|
5371
5397
|
carrouselRef: w,
|
|
5372
5398
|
maxIndex: v,
|
|
5373
|
-
getTranslateValue:
|
|
5399
|
+
getTranslateValue: C,
|
|
5374
5400
|
actualVisibleItems: S,
|
|
5375
5401
|
dragHandlers: E
|
|
5376
5402
|
} = Po({
|
|
@@ -5393,7 +5419,7 @@ function Cu(e) {
|
|
|
5393
5419
|
b(d + 1);
|
|
5394
5420
|
}, [d, b]);
|
|
5395
5421
|
if (!h) return;
|
|
5396
|
-
const Q =
|
|
5422
|
+
const Q = C(d, A), W = o ? `translateX(${Q}%)` : `translateX(${Q}px)`;
|
|
5397
5423
|
return /* @__PURE__ */ g("div", { className: `${s}- carrousel-container`, children: [
|
|
5398
5424
|
d > 0 && /* @__PURE__ */ n(
|
|
5399
5425
|
"button",
|
|
@@ -5554,7 +5580,7 @@ function Ve(e) {
|
|
|
5554
5580
|
}
|
|
5555
5581
|
);
|
|
5556
5582
|
}
|
|
5557
|
-
const
|
|
5583
|
+
const it = (e) => /* @__PURE__ */ n("div", { className: "su-flex su-flex-col sass-com-mid-content", children: e.children }), Oo = (e) => e.replace(
|
|
5558
5584
|
/<script\b([^>]*)>/gi,
|
|
5559
5585
|
(t, s) => (
|
|
5560
5586
|
// Reemplaza o agrega type="text/deferred-banner" para que el browser no ejecute
|
|
@@ -5594,7 +5620,7 @@ const st = (e) => /* @__PURE__ */ n("div", { className: "su-flex su-flex-col sas
|
|
|
5594
5620
|
);
|
|
5595
5621
|
};
|
|
5596
5622
|
function P(e) {
|
|
5597
|
-
const { SUB_PUBLICATION_PREFIX_IN_ROUTES: t } = B(), { block_subPublication: s } = e, a = qo(e.href), r = e.hasOwnProperty("href") && e.href ? (e.href ?? "").includes("/buscar") : !1, i = t?.tema && a, o = t?.buscar && r, l = !s && !i && !o ?
|
|
5623
|
+
const { SUB_PUBLICATION_PREFIX_IN_ROUTES: t } = B(), { block_subPublication: s } = e, a = qo(e.href), r = e.hasOwnProperty("href") && e.href ? (e.href ?? "").includes("/buscar") : !1, i = t?.tema && a, o = t?.buscar && r, l = !s && !i && !o ? Me() : "", u = /^(https?:)?\/\//.test(e.href) || /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e.href), c = (typeof e.href == "string" ? e.href : "").split("/")?.[1] === l.replace("/", ""), d = {
|
|
5598
5624
|
...e,
|
|
5599
5625
|
href: (!u && !c ? l : "") + (l && e.href === "/" ? "" : e.href ?? "")
|
|
5600
5626
|
};
|
|
@@ -5608,7 +5634,7 @@ function P(e) {
|
|
|
5608
5634
|
}
|
|
5609
5635
|
) : /* @__PURE__ */ n("a", { ...d, children: e.children });
|
|
5610
5636
|
}
|
|
5611
|
-
const qo = (e) => !!/([t][0-9]{4})\w+/.exec(e || ""),
|
|
5637
|
+
const qo = (e) => !!/([t][0-9]{4})\w+/.exec(e || ""), Cu = async (e) => {
|
|
5612
5638
|
const { showNewsLikeTitle: t = !1, hasShadow: s = !1 } = e, a = await de(e?.preview?.sizes?.[0]?.url ?? "");
|
|
5613
5639
|
return e && e.info ? /* @__PURE__ */ g(
|
|
5614
5640
|
"section",
|
|
@@ -5654,7 +5680,7 @@ const qo = (e) => !!/([t][0-9]{4})\w+/.exec(e || ""), yu = async (e) => {
|
|
|
5654
5680
|
}
|
|
5655
5681
|
) : null;
|
|
5656
5682
|
}, ie = (e) => {
|
|
5657
|
-
const { PUBLIC_ASSETS_URL: t, PUBLIC_ENV: s } = B(), a = s === "local" ?
|
|
5683
|
+
const { PUBLIC_ASSETS_URL: t, PUBLIC_ENV: s } = B(), a = s === "local" ? Me() : "", r = t;
|
|
5658
5684
|
return (r && r !== "false" ? r : "") + a + "/versions/images" + e;
|
|
5659
5685
|
}, Vt = (e) => {
|
|
5660
5686
|
const { PUBLIC_ENV: t } = B(), s = ie("/whatsapp-black.svg");
|
|
@@ -5746,7 +5772,7 @@ const qo = (e) => !!/([t][0-9]{4})\w+/.exec(e || ""), yu = async (e) => {
|
|
|
5746
5772
|
)
|
|
5747
5773
|
}
|
|
5748
5774
|
);
|
|
5749
|
-
},
|
|
5775
|
+
}, yn = (e) => {
|
|
5750
5776
|
const { PUBLIC_ENV: t } = B(), s = ie("/message.svg");
|
|
5751
5777
|
return t !== "" && !e.forceSVG ? /* @__PURE__ */ n("img", { fetchPriority: "low", loading: "lazy", src: s, alt: "", ...e }) : /* @__PURE__ */ n("svg", { width: "30", height: "30", viewBox: "0 0 30 30", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M15 4C21.0751 4 26 8.92487 26 15C26 16.2691 25.5577 17.9814 24.6729 20.1367L24.502 20.5459L25.5459 24.8428C25.5943 25.042 25.5804 25.2514 25.5059 25.4424C25.3194 25.92 24.8065 26.1738 24.3223 26.0469L24.2109 26.0107L20.4648 24.5488C18.1478 25.5163 16.326 26 15 26C8.92487 26 4 21.0751 4 15C4 8.92487 8.92487 4 15 4ZM15 5.5C9.75329 5.5 5.5 9.75329 5.5 15C5.5 20.2467 9.75329 24.5 15 24.5C16.0245 24.5 17.5449 24.1124 19.5127 23.3184L20.4453 22.9316L23.8623 24.2637L22.9268 20.417L23.2715 19.6006C24.0971 17.5954 24.5 16.0455 24.5 15C24.5 9.75329 20.2467 5.5 15 5.5Z", fill: "currentColor" }) });
|
|
5752
5778
|
}, _o = {
|
|
@@ -5760,8 +5786,8 @@ const qo = (e) => !!/([t][0-9]{4})\w+/.exec(e || ""), yu = async (e) => {
|
|
|
5760
5786
|
Message: {
|
|
5761
5787
|
url: (e) => `${e}#comentarios`,
|
|
5762
5788
|
icon: {
|
|
5763
|
-
outline: (e) => /* @__PURE__ */ n(
|
|
5764
|
-
solid: (e) => /* @__PURE__ */ n(
|
|
5789
|
+
outline: (e) => /* @__PURE__ */ n(yn, { className: e }),
|
|
5790
|
+
solid: (e) => /* @__PURE__ */ n(yn, { className: e })
|
|
5765
5791
|
}
|
|
5766
5792
|
}
|
|
5767
5793
|
};
|
|
@@ -5948,7 +5974,7 @@ const He = (e) => {
|
|
|
5948
5974
|
function va() {
|
|
5949
5975
|
return B().COMPONENTS?.PlayIcon || ba;
|
|
5950
5976
|
}
|
|
5951
|
-
function
|
|
5977
|
+
function ya() {
|
|
5952
5978
|
return B().COMPONENTS?.PlayIcon || ba;
|
|
5953
5979
|
}
|
|
5954
5980
|
const jo = (e) => {
|
|
@@ -6048,7 +6074,7 @@ const jo = (e) => {
|
|
|
6048
6074
|
isVideo: s = !1,
|
|
6049
6075
|
hasShadow: a = !1,
|
|
6050
6076
|
priorityHigh: r = !1
|
|
6051
|
-
} = e, i =
|
|
6077
|
+
} = e, i = ya();
|
|
6052
6078
|
let o;
|
|
6053
6079
|
const l = t?.sizes;
|
|
6054
6080
|
return l?.[0]?.url ? o = `/api/image-proxy?url=${encodeURIComponent(l[0].url)}` : o = l?.[0]?.url, l && o && o !== "invalidURL" ? /* @__PURE__ */ n("figure", { className: "sass-com-img-figure", children: /* @__PURE__ */ g("span", { className: "sass-com-img-backdrop", children: [
|
|
@@ -6105,7 +6131,7 @@ const jo = (e) => {
|
|
|
6105
6131
|
sizes: a
|
|
6106
6132
|
};
|
|
6107
6133
|
return /* @__PURE__ */ n(jo, { ...e, preview: r });
|
|
6108
|
-
},
|
|
6134
|
+
}, Ca = (e) => {
|
|
6109
6135
|
const { itemReverseOrder: t = !1 } = e;
|
|
6110
6136
|
return /* @__PURE__ */ n(
|
|
6111
6137
|
"section",
|
|
@@ -7069,7 +7095,7 @@ const jo = (e) => {
|
|
|
7069
7095
|
customfields: !1
|
|
7070
7096
|
}
|
|
7071
7097
|
]
|
|
7072
|
-
},
|
|
7098
|
+
}, Cn = {
|
|
7073
7099
|
zonehome: void 0,
|
|
7074
7100
|
priorityhome: "",
|
|
7075
7101
|
zonesection: "no_mostrar",
|
|
@@ -7086,10 +7112,10 @@ const jo = (e) => {
|
|
|
7086
7112
|
const { PUBLIC_ENV: s, PUBLIC_IS_OFFLINE: a, SHOW_DEV_RANKING: r } = B();
|
|
7087
7113
|
return e.content && e.content.length > 0 ? t = e.content.map((i) => ({
|
|
7088
7114
|
...i,
|
|
7089
|
-
config:
|
|
7115
|
+
config: Cn
|
|
7090
7116
|
})) : s === "local" && a === "false" && r && (t = Vo.data.map((i) => ({
|
|
7091
7117
|
...i,
|
|
7092
|
-
config:
|
|
7118
|
+
config: Cn
|
|
7093
7119
|
}))), Array.isArray(t) && t.length > 0 && /* @__PURE__ */ g(
|
|
7094
7120
|
"section",
|
|
7095
7121
|
{
|
|
@@ -7098,7 +7124,7 @@ const jo = (e) => {
|
|
|
7098
7124
|
children: [
|
|
7099
7125
|
/* @__PURE__ */ n("p", { className: "sass-com-rd-titulo", children: e.title ?? "" }),
|
|
7100
7126
|
/* @__PURE__ */ n(
|
|
7101
|
-
|
|
7127
|
+
Ca,
|
|
7102
7128
|
{
|
|
7103
7129
|
block: t,
|
|
7104
7130
|
paths: e.paths,
|
|
@@ -7577,7 +7603,7 @@ const jo = (e) => {
|
|
|
7577
7603
|
]
|
|
7578
7604
|
}
|
|
7579
7605
|
);
|
|
7580
|
-
},
|
|
7606
|
+
}, ht = (e) => {
|
|
7581
7607
|
const { PUBLIC_ENV: t } = B(), s = ie("/facebook-black.svg");
|
|
7582
7608
|
return t !== "" && !e.forceSVG ? /* @__PURE__ */ n("img", { fetchPriority: "low", loading: "lazy", width: 17, height: 23, src: s, alt: "", ...e }) : /* @__PURE__ */ n(
|
|
7583
7609
|
"svg",
|
|
@@ -7706,7 +7732,7 @@ const jo = (e) => {
|
|
|
7706
7732
|
url: (e) => `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,
|
|
7707
7733
|
icon: {
|
|
7708
7734
|
outline: (e) => /* @__PURE__ */ n(Ps, { className: e, forceSVG: !0 }),
|
|
7709
|
-
solid: (e) => /* @__PURE__ */ n(
|
|
7735
|
+
solid: (e) => /* @__PURE__ */ n(ht, { className: e, forceSVG: !0 })
|
|
7710
7736
|
}
|
|
7711
7737
|
},
|
|
7712
7738
|
X: {
|
|
@@ -8140,7 +8166,7 @@ const Tu = (e) => {
|
|
|
8140
8166
|
target: "_blank",
|
|
8141
8167
|
className: `sass-com-ah1-social-link ${a ? "sass-com-ah1-social-filled" : "sass-com-ah1-social-stroke"}`,
|
|
8142
8168
|
rel: "noreferrer",
|
|
8143
|
-
children: a ? /* @__PURE__ */ n(
|
|
8169
|
+
children: a ? /* @__PURE__ */ n(ht, { className: "sass-com-ah1-social-icon sass-social-icon-facebook", forceSVG: !0 }) : /* @__PURE__ */ n(zt, { className: "sass-com-ah1-facebook-icon sass-com-ah1-social-icon-facebook", forceSVG: !0 })
|
|
8144
8170
|
}
|
|
8145
8171
|
),
|
|
8146
8172
|
h && /* @__PURE__ */ n(
|
|
@@ -8217,7 +8243,7 @@ const Tu = (e) => {
|
|
|
8217
8243
|
target: "_blank",
|
|
8218
8244
|
className: a ? "sass-com-ah2-socialIconFilled" : "sass-com-ah2-socialIconStroke",
|
|
8219
8245
|
rel: "noreferrer",
|
|
8220
|
-
children: a ? /* @__PURE__ */ n(
|
|
8246
|
+
children: a ? /* @__PURE__ */ n(ht, { className: "sass-com-ah2-blackIconFaceBook sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook", forceSVG: !0 }) : /* @__PURE__ */ n(zt, { className: "sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook", forceSVG: !0 })
|
|
8221
8247
|
}
|
|
8222
8248
|
),
|
|
8223
8249
|
h && /* @__PURE__ */ n(
|
|
@@ -8380,7 +8406,7 @@ const Tu = (e) => {
|
|
|
8380
8406
|
{
|
|
8381
8407
|
isTitle: !0,
|
|
8382
8408
|
cutSubtitle: !1,
|
|
8383
|
-
...
|
|
8409
|
+
...ot(
|
|
8384
8410
|
{
|
|
8385
8411
|
...e?.video,
|
|
8386
8412
|
info: {
|
|
@@ -8413,10 +8439,10 @@ const Tu = (e) => {
|
|
|
8413
8439
|
}
|
|
8414
8440
|
),
|
|
8415
8441
|
e.relatedName && /* @__PURE__ */ n("h2", { className: "sass-com-bv4-relatedTitle saas-video-related-title", children: e.relatedName }),
|
|
8416
|
-
Array.isArray(t) && t.map((s, a) => /* @__PURE__ */
|
|
8442
|
+
Array.isArray(t) && t.map((s, a) => /* @__PURE__ */ Oe(
|
|
8417
8443
|
il,
|
|
8418
8444
|
{
|
|
8419
|
-
...
|
|
8445
|
+
...ot(s, !0, !1, !1),
|
|
8420
8446
|
key: a,
|
|
8421
8447
|
paths: e.paths
|
|
8422
8448
|
}
|
|
@@ -8570,7 +8596,7 @@ const Tu = (e) => {
|
|
|
8570
8596
|
searchLink: i,
|
|
8571
8597
|
custom_styles: o = {}
|
|
8572
8598
|
}) => {
|
|
8573
|
-
const { SUB_PUBLICATION_PREFIX_IN_ROUTES: l } = B(), u = l?.buscar ?
|
|
8599
|
+
const { SUB_PUBLICATION_PREFIX_IN_ROUTES: l } = B(), u = l?.buscar ? Me() : "";
|
|
8574
8600
|
return /* @__PURE__ */ g(
|
|
8575
8601
|
"aside",
|
|
8576
8602
|
{
|
|
@@ -9023,7 +9049,7 @@ const Tu = (e) => {
|
|
|
9023
9049
|
) : /* @__PURE__ */ n("div", { className: "sass-com-ts-chipStyled", children: s.name }, a))
|
|
9024
9050
|
] }) });
|
|
9025
9051
|
}, pl = async (e) => {
|
|
9026
|
-
const { autor: t } = e, { SUB_PUBLICATION_PREFIX_IN_ROUTES: s } = B(), a =
|
|
9052
|
+
const { autor: t } = e, { SUB_PUBLICATION_PREFIX_IN_ROUTES: s } = B(), a = Me(), r = t?.addtional?.USER_SHOWBIO ?? !1, i = t?.info?.name ?? "", o = t?.info?.fullname ?? "", l = t?.info?.image?.sizes?.[0]?.url ?? "", u = t?.addtional?.USER_MIBIO ?? "", c = t?.addtional?.USER_USERFB ?? "", d = t?.addtional?.USER_USERIG ?? "", m = t?.addtional?.USER_USERTWT ?? "", h = t?.addtional?.USER_USERLIN ?? "", p = `${a}/${e.paths.autor}/${i}`;
|
|
9027
9053
|
return r && !!t && /* @__PURE__ */ n("section", { className: "sass-com-ja2-contentBox", children: /* @__PURE__ */ g("div", { className: "sass-com-ja2-content", children: [
|
|
9028
9054
|
/* @__PURE__ */ g("div", { className: "sass-com-ja2-avatarContent", children: [
|
|
9029
9055
|
/* @__PURE__ */ n(
|
|
@@ -9468,7 +9494,7 @@ function Du(e) {
|
|
|
9468
9494
|
allowFullScreen: !0
|
|
9469
9495
|
}
|
|
9470
9496
|
) : null;
|
|
9471
|
-
},
|
|
9497
|
+
}, C = () => {
|
|
9472
9498
|
if (!e.videos) return null;
|
|
9473
9499
|
const b = (e.videos ?? []).find(
|
|
9474
9500
|
(V) => V.type === "video-embedded"
|
|
@@ -9534,7 +9560,7 @@ function Du(e) {
|
|
|
9534
9560
|
E = /* @__PURE__ */ n(v, {});
|
|
9535
9561
|
break;
|
|
9536
9562
|
case "videoEmbedded":
|
|
9537
|
-
E = /* @__PURE__ */ n(
|
|
9563
|
+
E = /* @__PURE__ */ n(C, {});
|
|
9538
9564
|
break;
|
|
9539
9565
|
case "clip":
|
|
9540
9566
|
E = /* @__PURE__ */ n(w, {});
|
|
@@ -9797,7 +9823,7 @@ const $e = (e) => {
|
|
|
9797
9823
|
}
|
|
9798
9824
|
),
|
|
9799
9825
|
!e.rightOnlyBanner && /* @__PURE__ */ n(
|
|
9800
|
-
|
|
9826
|
+
Ca,
|
|
9801
9827
|
{
|
|
9802
9828
|
block: e.block,
|
|
9803
9829
|
itemReverseOrder: l,
|
|
@@ -9841,7 +9867,7 @@ const $e = (e) => {
|
|
|
9841
9867
|
{
|
|
9842
9868
|
style: s,
|
|
9843
9869
|
className: "su-flex su-flex-col su-gap-2 su-w-full su-h-auto su-md:gap-0 sass-bmd-dnh-secondSection",
|
|
9844
|
-
children: e.map((o, l) => l > 0 && /* @__PURE__ */
|
|
9870
|
+
children: e.map((o, l) => l > 0 && /* @__PURE__ */ Oe(
|
|
9845
9871
|
$e,
|
|
9846
9872
|
{
|
|
9847
9873
|
...o,
|
|
@@ -9881,7 +9907,7 @@ const $e = (e) => {
|
|
|
9881
9907
|
)
|
|
9882
9908
|
},
|
|
9883
9909
|
o
|
|
9884
|
-
) : /* @__PURE__ */ n("section", { style: s, children: /* @__PURE__ */
|
|
9910
|
+
) : /* @__PURE__ */ n("section", { style: s, children: /* @__PURE__ */ Oe(
|
|
9885
9911
|
$e,
|
|
9886
9912
|
{
|
|
9887
9913
|
...i,
|
|
@@ -10032,7 +10058,7 @@ const $e = (e) => {
|
|
|
10032
10058
|
] })
|
|
10033
10059
|
] });
|
|
10034
10060
|
};
|
|
10035
|
-
function
|
|
10061
|
+
function yl(e) {
|
|
10036
10062
|
const t = new Array(e.length), s = e.length / 2;
|
|
10037
10063
|
for (let a = 0; a < e.length; a++)
|
|
10038
10064
|
a % 2 === 0 ? t[Math.floor(a / 2)] = e[a] : t[s + Math.floor(a / 2)] = e[a];
|
|
@@ -10079,7 +10105,7 @@ const _u = (e) => {
|
|
|
10079
10105
|
)
|
|
10080
10106
|
);
|
|
10081
10107
|
}
|
|
10082
|
-
const r = a.length % 2 === 0 ?
|
|
10108
|
+
const r = a.length % 2 === 0 ? yl(a) : a;
|
|
10083
10109
|
return /* @__PURE__ */ n("section", { style: e.customStyles, children: /* @__PURE__ */ n(
|
|
10084
10110
|
fe,
|
|
10085
10111
|
{
|
|
@@ -10158,7 +10184,7 @@ const _u = (e) => {
|
|
|
10158
10184
|
}
|
|
10159
10185
|
),
|
|
10160
10186
|
/* @__PURE__ */ n(Fo, { ...e })
|
|
10161
|
-
] }),
|
|
10187
|
+
] }), Cl = (e) => {
|
|
10162
10188
|
const { content: t } = e;
|
|
10163
10189
|
if (!t || t.length === 0) return;
|
|
10164
10190
|
const s = (o) => e.hasLines && (o + 1) % 3 !== 0 ? "sass-bs-m3c-contentSeparator" : "", a = [];
|
|
@@ -10175,7 +10201,7 @@ const _u = (e) => {
|
|
|
10175
10201
|
}
|
|
10176
10202
|
) }, r)
|
|
10177
10203
|
), r++, i++);
|
|
10178
|
-
const l = e.isVideo ?
|
|
10204
|
+
const l = e.isVideo ? ot(
|
|
10179
10205
|
t[o],
|
|
10180
10206
|
e.showVideoTime,
|
|
10181
10207
|
e.showVideosubtitle,
|
|
@@ -10212,7 +10238,7 @@ const _u = (e) => {
|
|
|
10212
10238
|
}
|
|
10213
10239
|
);
|
|
10214
10240
|
}, Nl = (e) => /* @__PURE__ */ n(fe, { title: e.title, titleUrl: e.titleUrl, children: /* @__PURE__ */ n(
|
|
10215
|
-
|
|
10241
|
+
Cl,
|
|
10216
10242
|
{
|
|
10217
10243
|
content: e.content,
|
|
10218
10244
|
paths: e.paths,
|
|
@@ -10293,7 +10319,7 @@ const _u = (e) => {
|
|
|
10293
10319
|
ka,
|
|
10294
10320
|
{
|
|
10295
10321
|
goTo: e.goTo,
|
|
10296
|
-
mainNew:
|
|
10322
|
+
mainNew: ot(r),
|
|
10297
10323
|
paths: e.paths
|
|
10298
10324
|
}
|
|
10299
10325
|
),
|
|
@@ -10321,7 +10347,7 @@ const _u = (e) => {
|
|
|
10321
10347
|
/* @__PURE__ */ g("div", { className: "sass-bd-dv-newsContent", children: [
|
|
10322
10348
|
/* @__PURE__ */ n("div", { className: "banner-context", style: { order: 1 }, children: e.banner }),
|
|
10323
10349
|
Array.isArray(o) && o.map((l, u) => {
|
|
10324
|
-
const c =
|
|
10350
|
+
const c = ot(l), d = {
|
|
10325
10351
|
...c,
|
|
10326
10352
|
main: {
|
|
10327
10353
|
...c.main,
|
|
@@ -10331,7 +10357,7 @@ const _u = (e) => {
|
|
|
10331
10357
|
}
|
|
10332
10358
|
}
|
|
10333
10359
|
};
|
|
10334
|
-
return /* @__PURE__ */ n("div", { style: { order: u }, children: /* @__PURE__ */
|
|
10360
|
+
return /* @__PURE__ */ n("div", { style: { order: u }, children: /* @__PURE__ */ Oe(
|
|
10335
10361
|
Pe,
|
|
10336
10362
|
{
|
|
10337
10363
|
...d,
|
|
@@ -10403,7 +10429,7 @@ const _u = (e) => {
|
|
|
10403
10429
|
"section",
|
|
10404
10430
|
{
|
|
10405
10431
|
className: e.hasLines ? "sass-bd-m13-hasLinesBlock" : "",
|
|
10406
|
-
children: /* @__PURE__ */
|
|
10432
|
+
children: /* @__PURE__ */ Oe(
|
|
10407
10433
|
Il,
|
|
10408
10434
|
{
|
|
10409
10435
|
...r,
|
|
@@ -10992,7 +11018,7 @@ const _u = (e) => {
|
|
|
10992
11018
|
const I = await de(b.url);
|
|
10993
11019
|
return b.width < 200 ? `<source srcset="${I}" media="(width < 750px)"/>` : `<source srcset="${I}" media="(width >= 750px)"/>`;
|
|
10994
11020
|
}) || []
|
|
10995
|
-
)).reduce((b, I) => b += I, ""), v = l.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/),
|
|
11021
|
+
)).reduce((b, I) => b += I, ""), v = l.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/), C = v ? v[0] : "", S = `
|
|
10996
11022
|
<span data-src="${u}">
|
|
10997
11023
|
<picture style='display: flex'>
|
|
10998
11024
|
${w}
|
|
@@ -11003,7 +11029,7 @@ const _u = (e) => {
|
|
|
11003
11029
|
<a class="title" href="${f}">${A}</a>
|
|
11004
11030
|
</div>
|
|
11005
11031
|
</span>
|
|
11006
|
-
`, E = l.replace(
|
|
11032
|
+
`, E = l.replace(C, S);
|
|
11007
11033
|
i = i.replace(l, E);
|
|
11008
11034
|
}
|
|
11009
11035
|
return i;
|
|
@@ -11058,14 +11084,14 @@ async function Hl(e, t) {
|
|
|
11058
11084
|
allowfullscreen
|
|
11059
11085
|
style="width: 100%; height: auto; min-height: 400px;"
|
|
11060
11086
|
src="${f.main?.code || ""}"></iframe>` : A = f.main?.code || "";
|
|
11061
|
-
const
|
|
11087
|
+
const C = v || f.main?.description || "";
|
|
11062
11088
|
m = `
|
|
11063
11089
|
<figure class="videoFigure">
|
|
11064
11090
|
${p && p.data && p.data.data ? `<script type="application/ld+json">${qt(
|
|
11065
11091
|
JSON.stringify(p.data.data)
|
|
11066
11092
|
)}<\/script>` : ""}
|
|
11067
11093
|
${A}
|
|
11068
|
-
${
|
|
11094
|
+
${C ? `<figcaption>${C}</figcaption>` : ""}
|
|
11069
11095
|
</figure>
|
|
11070
11096
|
`;
|
|
11071
11097
|
}
|
|
@@ -11208,7 +11234,7 @@ const Yl = () => /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
11208
11234
|
const { news: t, socials: s, texts: a } = e, {
|
|
11209
11235
|
DATE_TIMEZONE: r = "America/Mexico_City",
|
|
11210
11236
|
CONFIG_shareOnlyWhatsApp: i
|
|
11211
|
-
} = B(), o =
|
|
11237
|
+
} = B(), o = Me(), l = (d) => `${o}/${e.paths.autor}/${d}`, u = t.authors.map(
|
|
11212
11238
|
(d) => d.internaluser ? `<a href="${l(d.name)}">${d.fullname}</a>` : d.fullname
|
|
11213
11239
|
).join(", "), c = () => t.authors.length === 1 ? "sass-com-ja3-width1Autor" : t.authors.length === 2 ? "sass-com-ja3-width2Autor" : t.authors.length === 3 ? "sass-com-ja3-width3Autor" : "";
|
|
11214
11240
|
return t.config?.showauthor && /* @__PURE__ */ n("div", { className: "sass-com-ja3-content", children: /* @__PURE__ */ g("div", { className: "sass-com-ja3-avatarContent", children: [
|
|
@@ -11430,7 +11456,7 @@ const Xl = (e) => /* @__PURE__ */ n(
|
|
|
11430
11456
|
url: (e) => `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,
|
|
11431
11457
|
icon: {
|
|
11432
11458
|
outline: (e) => /* @__PURE__ */ n(Ps, { className: e, forceSVG: !0 }),
|
|
11433
|
-
solid: (e) => /* @__PURE__ */ n(
|
|
11459
|
+
solid: (e) => /* @__PURE__ */ n(ht, { className: e, forceSVG: !0 })
|
|
11434
11460
|
}
|
|
11435
11461
|
},
|
|
11436
11462
|
X: {
|
|
@@ -11531,7 +11557,7 @@ const sc = async (e) => {
|
|
|
11531
11557
|
CONFIG_shareOnlyWhatsApp: r,
|
|
11532
11558
|
DATE_TIMEZONE: i = "America/Mexico_City",
|
|
11533
11559
|
CONFIG_commentsV2: o
|
|
11534
|
-
} = B(), l =
|
|
11560
|
+
} = B(), l = Me(), u = (m) => `${l}/${e.paths.autor}/${m}`, c = t.authors.map(
|
|
11535
11561
|
(m) => m.internaluser ? `<a href="${u(m.name)}">${m.fullname}</a>` : m.fullname
|
|
11536
11562
|
).join(", "), d = () => t.authors.length === 1 ? "sass-com-ja4-width1Autor" : t.authors.length === 2 ? "sass-com-ja4-width2Autor" : t.authors.length === 3 ? "sass-com-ja4-width3Autor" : "";
|
|
11537
11563
|
return t.config?.showauthor && /* @__PURE__ */ n("div", { className: "sass-com-ja4-content sass-journalist-articule-4", children: /* @__PURE__ */ g("div", { className: "sass-com-ja4-avatarContent", children: [
|
|
@@ -11681,7 +11707,7 @@ const sc = async (e) => {
|
|
|
11681
11707
|
url: (e) => `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,
|
|
11682
11708
|
icon: {
|
|
11683
11709
|
outline: (e) => /* @__PURE__ */ n(Ps, { className: e, forceSVG: !0 }),
|
|
11684
|
-
solid: (e) => /* @__PURE__ */ n(
|
|
11710
|
+
solid: (e) => /* @__PURE__ */ n(ht, { className: e, forceSVG: !0 })
|
|
11685
11711
|
}
|
|
11686
11712
|
},
|
|
11687
11713
|
X: {
|
|
@@ -11775,7 +11801,7 @@ const rc = async (e) => {
|
|
|
11775
11801
|
CONFIG_shareOnlyWhatsApp: r,
|
|
11776
11802
|
DATE_TIMEZONE: i = "America/Mexico_City",
|
|
11777
11803
|
CONFIG_commentsV2: o
|
|
11778
|
-
} = B(), l =
|
|
11804
|
+
} = B(), l = Me(), u = (m) => `${l}/${e.paths.autor}/${m}`, c = t.authors.map(
|
|
11779
11805
|
(m) => m.internaluser ? `<a href="${u(m.name)}">${m.fullname}</a>` : m.fullname
|
|
11780
11806
|
).join(", "), d = () => t.authors.length === 1 ? "sass-com-ja5-width1Autor" : t.authors.length === 2 ? "sass-com-ja5-width2Autor" : t.authors.length === 3 ? "sass-com-ja5-width3Autor" : "";
|
|
11781
11807
|
return t.config?.showauthor && /* @__PURE__ */ n("div", { className: "sass-com-ja5-content sass-journalist-articule-5", children: /* @__PURE__ */ g("div", { className: "sass-com-ja5-avatarContent", children: [
|
|
@@ -12127,15 +12153,15 @@ const rc = async (e) => {
|
|
|
12127
12153
|
let i = e;
|
|
12128
12154
|
for (const o of r) {
|
|
12129
12155
|
const l = o[0], u = o[1] ?? "", c = s.find(
|
|
12130
|
-
(
|
|
12156
|
+
(C) => u.includes(C?.[0]?.info.link.internal || "")
|
|
12131
12157
|
);
|
|
12132
12158
|
if (!c || !c[0]) continue;
|
|
12133
12159
|
const d = c[0].preview?.sizes?.[0], m = d ? await de(d.url) : "", h = c[0].info.section?.url ?? "#", p = c[0].info.section?.name ?? "Sección", f = c[0].info.link?.url ?? "#", A = c[0].main?.title.article ?? "Título", w = (await Promise.all(
|
|
12134
|
-
c[0].preview?.sizes?.map(async (
|
|
12135
|
-
const E = await de(
|
|
12160
|
+
c[0].preview?.sizes?.map(async (C, S) => {
|
|
12161
|
+
const E = await de(C.url);
|
|
12136
12162
|
return S === 0 ? `<source srcset="${E}" media="(width >= 900px)"/>` : `<source srcset="${E}" media="(width < 900px)"/>`;
|
|
12137
12163
|
})
|
|
12138
|
-
)).reduce((
|
|
12164
|
+
)).reduce((C, S) => C += S, ""), v = `
|
|
12139
12165
|
<span data-src="${u}">
|
|
12140
12166
|
<picture style='display: flex'>
|
|
12141
12167
|
${w}
|
|
@@ -12161,12 +12187,12 @@ async function fc(e, t) {
|
|
|
12161
12187
|
let u = 1, c = l;
|
|
12162
12188
|
const d = e.length;
|
|
12163
12189
|
for (; c < d && u > 0; ) {
|
|
12164
|
-
const v = e.indexOf("<div", c),
|
|
12165
|
-
if (
|
|
12190
|
+
const v = e.indexOf("<div", c), C = e.indexOf("</div>", c);
|
|
12191
|
+
if (C === -1) {
|
|
12166
12192
|
c = d;
|
|
12167
12193
|
break;
|
|
12168
12194
|
}
|
|
12169
|
-
v !== -1 && v <
|
|
12195
|
+
v !== -1 && v < C ? (u += 1, c = v + 4) : (u -= 1, c = C + 6);
|
|
12170
12196
|
}
|
|
12171
12197
|
const m = c, h = e.slice(o, m);
|
|
12172
12198
|
let p = null;
|
|
@@ -12176,9 +12202,9 @@ async function fc(e, t) {
|
|
|
12176
12202
|
const v = A[1];
|
|
12177
12203
|
if (!v) break;
|
|
12178
12204
|
if (/data-type\s*=\s*["']?video["']?/i.test(v)) {
|
|
12179
|
-
const
|
|
12180
|
-
if (
|
|
12181
|
-
p =
|
|
12205
|
+
const C = v.match(/data-src\s*=\s*["']([^"']+)["']/i);
|
|
12206
|
+
if (C) {
|
|
12207
|
+
p = C[1] ?? "";
|
|
12182
12208
|
break;
|
|
12183
12209
|
}
|
|
12184
12210
|
}
|
|
@@ -12188,14 +12214,14 @@ async function fc(e, t) {
|
|
|
12188
12214
|
/<span\b[^>]*data-src=["'][^"']+["'][^>]*>/i
|
|
12189
12215
|
);
|
|
12190
12216
|
if (v) {
|
|
12191
|
-
const
|
|
12192
|
-
|
|
12217
|
+
const C = v[0].match(/data-src\s*=\s*["']([^"']+)["']/i);
|
|
12218
|
+
C && (p = C[1] ?? "");
|
|
12193
12219
|
}
|
|
12194
12220
|
}
|
|
12195
12221
|
let w = "";
|
|
12196
12222
|
if (p)
|
|
12197
12223
|
try {
|
|
12198
|
-
const v = await t.iframe({ path: p }),
|
|
12224
|
+
const v = await t.iframe({ path: p }), C = t.schema ? await t.schema(p) : null;
|
|
12199
12225
|
if (v && v.data) {
|
|
12200
12226
|
const S = v.data.data[0];
|
|
12201
12227
|
let E = "";
|
|
@@ -12220,8 +12246,8 @@ async function fc(e, t) {
|
|
|
12220
12246
|
const k = I || S.main?.description || "";
|
|
12221
12247
|
w = `
|
|
12222
12248
|
<figure class="videoFigure">
|
|
12223
|
-
${
|
|
12224
|
-
JSON.stringify(
|
|
12249
|
+
${C && C.data && C.data.data ? `<script type="application/ld+json">${qt(
|
|
12250
|
+
JSON.stringify(C.data.data)
|
|
12225
12251
|
)}<\/script>` : ""}
|
|
12226
12252
|
${E}
|
|
12227
12253
|
<figcaption>${k}</figcaption>
|
|
@@ -12503,7 +12529,7 @@ const pc = (e) => {
|
|
|
12503
12529
|
/* @__PURE__ */ n("button", { className: "sass-pg-buscar-buttonStyled", type: "submit", children: /* @__PURE__ */ n(wc, { className: "sass-pg-buscar-searchStyled" }) })
|
|
12504
12530
|
] })
|
|
12505
12531
|
}
|
|
12506
|
-
),
|
|
12532
|
+
), lt = ({ className: e }) => /* @__PURE__ */ n(
|
|
12507
12533
|
"svg",
|
|
12508
12534
|
{
|
|
12509
12535
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12539,7 +12565,7 @@ const pc = (e) => {
|
|
|
12539
12565
|
errorPasswordInvalid: "La contraseña no es válida",
|
|
12540
12566
|
errorVerificationCodeRequired: "Debes ingresar el código de verificación",
|
|
12541
12567
|
errorUnexpected: "Error inesperado"
|
|
12542
|
-
},
|
|
12568
|
+
}, rt = {
|
|
12543
12569
|
email: { label: "Email" },
|
|
12544
12570
|
given_name: { label: "Nombre" },
|
|
12545
12571
|
family_name: { label: "Apellido" },
|
|
@@ -12548,11 +12574,11 @@ const pc = (e) => {
|
|
|
12548
12574
|
};
|
|
12549
12575
|
function vc(e) {
|
|
12550
12576
|
return {
|
|
12551
|
-
email: { label: e?.email ??
|
|
12552
|
-
given_name: { label: e?.given_name ??
|
|
12553
|
-
family_name: { label: e?.family_name ??
|
|
12554
|
-
password: { label: e?.password ??
|
|
12555
|
-
confirmPassword: { label: e?.confirmPassword ??
|
|
12577
|
+
email: { label: e?.email ?? rt.email.label, required: !0 },
|
|
12578
|
+
given_name: { label: e?.given_name ?? rt.given_name.label, required: !0 },
|
|
12579
|
+
family_name: { label: e?.family_name ?? rt.family_name.label, required: !0 },
|
|
12580
|
+
password: { label: e?.password ?? rt.password.label, required: !0 },
|
|
12581
|
+
confirmPassword: { label: e?.confirmPassword ?? rt.confirmPassword.label, required: !0 }
|
|
12556
12582
|
};
|
|
12557
12583
|
}
|
|
12558
12584
|
const Ee = [
|
|
@@ -12592,7 +12618,7 @@ function Wu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12592
12618
|
window.location.href = `/api/auth/login?redirect=${b}`;
|
|
12593
12619
|
}, v = (b, I) => {
|
|
12594
12620
|
l((k) => ({ ...k, [b]: I }));
|
|
12595
|
-
},
|
|
12621
|
+
}, C = async (b) => {
|
|
12596
12622
|
b.preventDefault(), p(null), m(!0);
|
|
12597
12623
|
try {
|
|
12598
12624
|
const I = Object.keys(r).filter((V) => !["username", "password", "confirmPassword"].includes(V)).map((V) => ({ Name: V, Value: o[V] }));
|
|
@@ -12689,7 +12715,7 @@ function Wu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12689
12715
|
/* @__PURE__ */ g(
|
|
12690
12716
|
"form",
|
|
12691
12717
|
{
|
|
12692
|
-
onSubmit:
|
|
12718
|
+
onSubmit: C,
|
|
12693
12719
|
className: "sass-pg-login-form",
|
|
12694
12720
|
"data-error": h ? "true" : "false",
|
|
12695
12721
|
children: [
|
|
@@ -12748,7 +12774,7 @@ function Wu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12748
12774
|
" ",
|
|
12749
12775
|
a.termsSuffix
|
|
12750
12776
|
] }),
|
|
12751
|
-
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled: d, children: d ? /* @__PURE__ */ n(
|
|
12777
|
+
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled: d, children: d ? /* @__PURE__ */ n(lt, {}) : a.createAccountButton })
|
|
12752
12778
|
]
|
|
12753
12779
|
}
|
|
12754
12780
|
)
|
|
@@ -12775,7 +12801,7 @@ function Wu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12775
12801
|
)
|
|
12776
12802
|
] }),
|
|
12777
12803
|
h && /* @__PURE__ */ n("p", { className: "sass-pg-login-error", children: h }),
|
|
12778
|
-
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled: d, children: d ? /* @__PURE__ */ n(
|
|
12804
|
+
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled: d, children: d ? /* @__PURE__ */ n(lt, {}) : a.confirmAccountButton }),
|
|
12779
12805
|
/* @__PURE__ */ g("p", { className: "sass-pg-login-switch", children: [
|
|
12780
12806
|
a.alreadyConfirmedText,
|
|
12781
12807
|
/* @__PURE__ */ n("a", { className: "sass-pg-login-toRegister", href: "./login", children: a.loginButtonText })
|
|
@@ -12814,7 +12840,7 @@ function Wu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
|
|
|
12814
12840
|
] })
|
|
12815
12841
|
] });
|
|
12816
12842
|
}
|
|
12817
|
-
const
|
|
12843
|
+
const yc = {
|
|
12818
12844
|
title: "",
|
|
12819
12845
|
button: "",
|
|
12820
12846
|
commentPromptMessage: "Súmate a la comunidad para dejar tu comentario",
|
|
@@ -12842,7 +12868,7 @@ function Yu({
|
|
|
12842
12868
|
API_ENV: e,
|
|
12843
12869
|
texts: t
|
|
12844
12870
|
}) {
|
|
12845
|
-
const s = { ...
|
|
12871
|
+
const s = { ...yc, ...t?.comentarios }, [a, r] = Z("login"), [i, o] = Z(""), [l, u] = Z(""), [c, d] = Z(""), [m, h] = Z(""), [p, f] = Z(""), [A, w] = Z(!1), [v, C] = Z(!1), [S, E] = Z(null);
|
|
12846
12872
|
ce.useEffect(() => {
|
|
12847
12873
|
if (typeof window > "u") return;
|
|
12848
12874
|
window.location.hash.includes("forgot") && a === "login" && r("forgot"), a === "login" && I();
|
|
@@ -12856,7 +12882,7 @@ function Yu({
|
|
|
12856
12882
|
};
|
|
12857
12883
|
return /* @__PURE__ */ g(K, { children: [
|
|
12858
12884
|
a === "login" && /* @__PURE__ */ n(
|
|
12859
|
-
|
|
12885
|
+
Cc,
|
|
12860
12886
|
{
|
|
12861
12887
|
email: i,
|
|
12862
12888
|
password: l,
|
|
@@ -12872,7 +12898,7 @@ function Yu({
|
|
|
12872
12898
|
E("Complete todos los campos");
|
|
12873
12899
|
return;
|
|
12874
12900
|
}
|
|
12875
|
-
E(null),
|
|
12901
|
+
E(null), C(!0);
|
|
12876
12902
|
try {
|
|
12877
12903
|
const V = e.PUBLIC_ENV === "local" ? "token" : await _a("comment_login", e.CAPTCHA_KEY || "");
|
|
12878
12904
|
if (!V) throw new Error("Captcha token no generado");
|
|
@@ -12891,7 +12917,7 @@ function Yu({
|
|
|
12891
12917
|
} catch (V) {
|
|
12892
12918
|
E(V?.message || "Error inesperado");
|
|
12893
12919
|
} finally {
|
|
12894
|
-
|
|
12920
|
+
C(!1);
|
|
12895
12921
|
}
|
|
12896
12922
|
}
|
|
12897
12923
|
},
|
|
@@ -12919,7 +12945,7 @@ function Yu({
|
|
|
12919
12945
|
error: S,
|
|
12920
12946
|
onSubmit: async (R) => {
|
|
12921
12947
|
if (!v) {
|
|
12922
|
-
R.preventDefault(), E(null),
|
|
12948
|
+
R.preventDefault(), E(null), C(!0);
|
|
12923
12949
|
try {
|
|
12924
12950
|
const V = await fetch("/api/auth/forgot-password", {
|
|
12925
12951
|
method: "POST",
|
|
@@ -12934,7 +12960,7 @@ function Yu({
|
|
|
12934
12960
|
} catch (V) {
|
|
12935
12961
|
E(V?.message || "Error inesperado");
|
|
12936
12962
|
} finally {
|
|
12937
|
-
|
|
12963
|
+
C(!1);
|
|
12938
12964
|
}
|
|
12939
12965
|
}
|
|
12940
12966
|
},
|
|
@@ -12970,7 +12996,7 @@ function Yu({
|
|
|
12970
12996
|
E("La contraseña no cumple con los requisitos");
|
|
12971
12997
|
return;
|
|
12972
12998
|
}
|
|
12973
|
-
E(null),
|
|
12999
|
+
E(null), C(!0);
|
|
12974
13000
|
try {
|
|
12975
13001
|
const se = await fetch("/api/auth/confirm-forgot-password", {
|
|
12976
13002
|
method: "POST",
|
|
@@ -12985,7 +13011,7 @@ function Yu({
|
|
|
12985
13011
|
} catch (se) {
|
|
12986
13012
|
E(se?.message || "Error inesperado");
|
|
12987
13013
|
} finally {
|
|
12988
|
-
|
|
13014
|
+
C(!1);
|
|
12989
13015
|
}
|
|
12990
13016
|
},
|
|
12991
13017
|
onBack: () => {
|
|
@@ -13005,7 +13031,7 @@ function Yu({
|
|
|
13005
13031
|
)
|
|
13006
13032
|
] });
|
|
13007
13033
|
}
|
|
13008
|
-
function
|
|
13034
|
+
function Cc({
|
|
13009
13035
|
email: e,
|
|
13010
13036
|
password: t,
|
|
13011
13037
|
showPassword: s,
|
|
@@ -13078,7 +13104,7 @@ function yc({
|
|
|
13078
13104
|
] })
|
|
13079
13105
|
] }),
|
|
13080
13106
|
r && /* @__PURE__ */ n("p", { className: "sass-pg-login-error", children: r }),
|
|
13081
|
-
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled: a, children: a ? /* @__PURE__ */ n(
|
|
13107
|
+
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled: a, children: a ? /* @__PURE__ */ n(lt, { className: "sass-pg-login-spin" }) : m.loginButtonText })
|
|
13082
13108
|
]
|
|
13083
13109
|
}
|
|
13084
13110
|
),
|
|
@@ -13129,7 +13155,7 @@ function Nc({
|
|
|
13129
13155
|
)
|
|
13130
13156
|
] }),
|
|
13131
13157
|
a && /* @__PURE__ */ n("p", { className: "sass-pg-login-error", children: a }),
|
|
13132
|
-
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled: s, children: s ? /* @__PURE__ */ n(
|
|
13158
|
+
/* @__PURE__ */ n("button", { type: "submit", className: "sass-pg-login-primary", disabled: s, children: s ? /* @__PURE__ */ n(lt, {}) : o.sendCodeButton }),
|
|
13133
13159
|
/* @__PURE__ */ n("p", { className: "sass-pg-login-switch", style: { margin: "0 0 16px" }, children: /* @__PURE__ */ n("button", { type: "button", onClick: i, children: o.backButton }) })
|
|
13134
13160
|
]
|
|
13135
13161
|
}
|
|
@@ -13247,7 +13273,7 @@ function Ec({
|
|
|
13247
13273
|
className: "sass-pg-login-primary",
|
|
13248
13274
|
style: { maxWidth: i ? "revert-layer" : "fit-content" },
|
|
13249
13275
|
disabled: i,
|
|
13250
|
-
children: i ? /* @__PURE__ */ n(
|
|
13276
|
+
children: i ? /* @__PURE__ */ n(lt, {}) : p.changePasswordButton
|
|
13251
13277
|
}
|
|
13252
13278
|
),
|
|
13253
13279
|
/* @__PURE__ */ n("p", { className: "sass-pg-login-switch", children: /* @__PURE__ */ n("button", { type: "button", onClick: h, children: p.backButton }) })
|
|
@@ -13308,7 +13334,7 @@ const Ku = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13308
13334
|
hasShadow: a = !1,
|
|
13309
13335
|
BackDropAuxHeigthMobile: r
|
|
13310
13336
|
//isVisible,
|
|
13311
|
-
} = e, i =
|
|
13337
|
+
} = e, i = ya(), o = us(() => {
|
|
13312
13338
|
const h = e?.preview?.sizes;
|
|
13313
13339
|
if (h && Array.isArray(h) && h.length > 0) return h;
|
|
13314
13340
|
const p = e?.preview?.original;
|
|
@@ -13461,13 +13487,13 @@ const Ku = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
13461
13487
|
const {
|
|
13462
13488
|
PUBLIC_API_FRONT: w,
|
|
13463
13489
|
PUBLIC_X_SECURITY_TOKEN: v,
|
|
13464
|
-
PUBLIC_API_PATH_VERSION:
|
|
13490
|
+
PUBLIC_API_PATH_VERSION: C,
|
|
13465
13491
|
PUBLIC_PUBLICATION_ID: S
|
|
13466
13492
|
} = i;
|
|
13467
|
-
if (!w || !v || !S || !
|
|
13493
|
+
if (!w || !v || !S || !C)
|
|
13468
13494
|
throw new Error("Missing required environment variables");
|
|
13469
13495
|
const E = await re.get(
|
|
13470
|
-
`${w}${
|
|
13496
|
+
`${w}${C}/news-list-section`,
|
|
13471
13497
|
{
|
|
13472
13498
|
params: {
|
|
13473
13499
|
size: u + 1,
|
|
@@ -13856,7 +13882,7 @@ var xn;
|
|
|
13856
13882
|
function qc() {
|
|
13857
13883
|
if (xn) return ne;
|
|
13858
13884
|
xn = 1;
|
|
13859
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118,
|
|
13885
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
13860
13886
|
function S(b) {
|
|
13861
13887
|
if (typeof b == "object" && b !== null) {
|
|
13862
13888
|
var I = b.$$typeof;
|
|
@@ -13915,34 +13941,34 @@ function qc() {
|
|
|
13915
13941
|
}, ne.isSuspense = function(b) {
|
|
13916
13942
|
return S(b) === m;
|
|
13917
13943
|
}, ne.isValidElementType = function(b) {
|
|
13918
|
-
return typeof b == "string" || typeof b == "function" || b === a || b === c || b === i || b === r || b === m || b === h || typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof === p || b.$$typeof === o || b.$$typeof === l || b.$$typeof === d || b.$$typeof === w || b.$$typeof === v || b.$$typeof ===
|
|
13944
|
+
return typeof b == "string" || typeof b == "function" || b === a || b === c || b === i || b === r || b === m || b === h || typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof === p || b.$$typeof === o || b.$$typeof === l || b.$$typeof === d || b.$$typeof === w || b.$$typeof === v || b.$$typeof === C || b.$$typeof === A);
|
|
13919
13945
|
}, ne.typeOf = S, ne;
|
|
13920
13946
|
}
|
|
13921
13947
|
var ae = {};
|
|
13922
13948
|
var Un;
|
|
13923
13949
|
function Dc() {
|
|
13924
13950
|
return Un || (Un = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
13925
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118,
|
|
13951
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
13926
13952
|
function S(M) {
|
|
13927
13953
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
13928
|
-
M === a || M === c || M === i || M === r || M === m || M === h || typeof M == "object" && M !== null && (M.$$typeof === f || M.$$typeof === p || M.$$typeof === o || M.$$typeof === l || M.$$typeof === d || M.$$typeof === w || M.$$typeof === v || M.$$typeof ===
|
|
13954
|
+
M === a || M === c || M === i || M === r || M === m || M === h || typeof M == "object" && M !== null && (M.$$typeof === f || M.$$typeof === p || M.$$typeof === o || M.$$typeof === l || M.$$typeof === d || M.$$typeof === w || M.$$typeof === v || M.$$typeof === C || M.$$typeof === A);
|
|
13929
13955
|
}
|
|
13930
13956
|
function E(M) {
|
|
13931
13957
|
if (typeof M == "object" && M !== null) {
|
|
13932
13958
|
var me = M.$$typeof;
|
|
13933
13959
|
switch (me) {
|
|
13934
13960
|
case t:
|
|
13935
|
-
var
|
|
13936
|
-
switch (
|
|
13961
|
+
var ft = M.type;
|
|
13962
|
+
switch (ft) {
|
|
13937
13963
|
case u:
|
|
13938
13964
|
case c:
|
|
13939
13965
|
case a:
|
|
13940
13966
|
case i:
|
|
13941
13967
|
case r:
|
|
13942
13968
|
case m:
|
|
13943
|
-
return
|
|
13969
|
+
return ft;
|
|
13944
13970
|
default:
|
|
13945
|
-
var zs =
|
|
13971
|
+
var zs = ft && ft.$$typeof;
|
|
13946
13972
|
switch (zs) {
|
|
13947
13973
|
case l:
|
|
13948
13974
|
case d:
|
|
@@ -13961,9 +13987,9 @@ function Dc() {
|
|
|
13961
13987
|
}
|
|
13962
13988
|
var b = u, I = c, k = l, Q = o, W = t, j = d, R = a, V = f, se = p, q = s, U = i, x = r, D = m, L = !1;
|
|
13963
13989
|
function F(M) {
|
|
13964
|
-
return L || (L = !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.")),
|
|
13990
|
+
return L || (L = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(M) || E(M) === u;
|
|
13965
13991
|
}
|
|
13966
|
-
function
|
|
13992
|
+
function y(M) {
|
|
13967
13993
|
return E(M) === c;
|
|
13968
13994
|
}
|
|
13969
13995
|
function T(M) {
|
|
@@ -13999,7 +14025,7 @@ function Dc() {
|
|
|
13999
14025
|
function oe(M) {
|
|
14000
14026
|
return E(M) === m;
|
|
14001
14027
|
}
|
|
14002
|
-
ae.AsyncMode = b, ae.ConcurrentMode = I, ae.ContextConsumer = k, ae.ContextProvider = Q, ae.Element = W, ae.ForwardRef = j, ae.Fragment = R, ae.Lazy = V, ae.Memo = se, ae.Portal = q, ae.Profiler = U, ae.StrictMode = x, ae.Suspense = D, ae.isAsyncMode = F, ae.isConcurrentMode =
|
|
14028
|
+
ae.AsyncMode = b, ae.ConcurrentMode = I, ae.ContextConsumer = k, ae.ContextProvider = Q, ae.Element = W, ae.ForwardRef = j, ae.Fragment = R, ae.Lazy = V, ae.Memo = se, ae.Portal = q, ae.Profiler = U, ae.StrictMode = x, ae.Suspense = D, ae.isAsyncMode = F, ae.isConcurrentMode = y, ae.isContextConsumer = T, ae.isContextProvider = O, ae.isElement = G, ae.isForwardRef = _, ae.isFragment = H, ae.isLazy = z, ae.isMemo = Y, ae.isPortal = ee, ae.isProfiler = te, ae.isStrictMode = $, ae.isSuspense = oe, ae.isValidElementType = S, ae.typeOf = E;
|
|
14003
14029
|
})()), ae;
|
|
14004
14030
|
}
|
|
14005
14031
|
var kn;
|
|
@@ -14131,8 +14157,8 @@ function jc() {
|
|
|
14131
14157
|
}
|
|
14132
14158
|
return is = function(l, u) {
|
|
14133
14159
|
var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
14134
|
-
function m(
|
|
14135
|
-
var T =
|
|
14160
|
+
function m(y) {
|
|
14161
|
+
var T = y && (c && y[c] || y[d]);
|
|
14136
14162
|
if (typeof T == "function")
|
|
14137
14163
|
return T;
|
|
14138
14164
|
}
|
|
@@ -14145,7 +14171,7 @@ function jc() {
|
|
|
14145
14171
|
object: v("object"),
|
|
14146
14172
|
string: v("string"),
|
|
14147
14173
|
symbol: v("symbol"),
|
|
14148
|
-
any:
|
|
14174
|
+
any: C(),
|
|
14149
14175
|
arrayOf: S,
|
|
14150
14176
|
element: E(),
|
|
14151
14177
|
elementType: b(),
|
|
@@ -14157,14 +14183,14 @@ function jc() {
|
|
|
14157
14183
|
shape: V,
|
|
14158
14184
|
exact: se
|
|
14159
14185
|
};
|
|
14160
|
-
function f(
|
|
14161
|
-
return
|
|
14186
|
+
function f(y, T) {
|
|
14187
|
+
return y === T ? y !== 0 || 1 / y === 1 / T : y !== y && T !== T;
|
|
14162
14188
|
}
|
|
14163
|
-
function A(
|
|
14164
|
-
this.message =
|
|
14189
|
+
function A(y, T) {
|
|
14190
|
+
this.message = y, this.data = T && typeof T == "object" ? T : {}, this.stack = "";
|
|
14165
14191
|
}
|
|
14166
14192
|
A.prototype = Error.prototype;
|
|
14167
|
-
function w(
|
|
14193
|
+
function w(y) {
|
|
14168
14194
|
if (process.env.NODE_ENV !== "production")
|
|
14169
14195
|
var T = {}, O = 0;
|
|
14170
14196
|
function G(H, z, Y, ee, te, $, oe) {
|
|
@@ -14182,31 +14208,31 @@ function jc() {
|
|
|
14182
14208
|
), T[me] = !0, O++);
|
|
14183
14209
|
}
|
|
14184
14210
|
}
|
|
14185
|
-
return z[Y] == null ? H ? z[Y] === null ? new A("The " + te + " `" + $ + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new A("The " + te + " `" + $ + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null :
|
|
14211
|
+
return z[Y] == null ? H ? z[Y] === null ? new A("The " + te + " `" + $ + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new A("The " + te + " `" + $ + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : y(z, Y, ee, te, $);
|
|
14186
14212
|
}
|
|
14187
14213
|
var _ = G.bind(null, !1);
|
|
14188
14214
|
return _.isRequired = G.bind(null, !0), _;
|
|
14189
14215
|
}
|
|
14190
|
-
function v(
|
|
14216
|
+
function v(y) {
|
|
14191
14217
|
function T(O, G, _, H, z, Y) {
|
|
14192
14218
|
var ee = O[G], te = x(ee);
|
|
14193
|
-
if (te !==
|
|
14219
|
+
if (te !== y) {
|
|
14194
14220
|
var $ = D(ee);
|
|
14195
14221
|
return new A(
|
|
14196
|
-
"Invalid " + H + " `" + z + "` of type " + ("`" + $ + "` supplied to `" + _ + "`, expected ") + ("`" +
|
|
14197
|
-
{ expectedType:
|
|
14222
|
+
"Invalid " + H + " `" + z + "` of type " + ("`" + $ + "` supplied to `" + _ + "`, expected ") + ("`" + y + "`."),
|
|
14223
|
+
{ expectedType: y }
|
|
14198
14224
|
);
|
|
14199
14225
|
}
|
|
14200
14226
|
return null;
|
|
14201
14227
|
}
|
|
14202
14228
|
return w(T);
|
|
14203
14229
|
}
|
|
14204
|
-
function
|
|
14230
|
+
function C() {
|
|
14205
14231
|
return w(o);
|
|
14206
14232
|
}
|
|
14207
|
-
function S(
|
|
14233
|
+
function S(y) {
|
|
14208
14234
|
function T(O, G, _, H, z) {
|
|
14209
|
-
if (typeof
|
|
14235
|
+
if (typeof y != "function")
|
|
14210
14236
|
return new A("Property `" + z + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
|
|
14211
14237
|
var Y = O[G];
|
|
14212
14238
|
if (!Array.isArray(Y)) {
|
|
@@ -14214,7 +14240,7 @@ function jc() {
|
|
|
14214
14240
|
return new A("Invalid " + H + " `" + z + "` of type " + ("`" + ee + "` supplied to `" + _ + "`, expected an array."));
|
|
14215
14241
|
}
|
|
14216
14242
|
for (var te = 0; te < Y.length; te++) {
|
|
14217
|
-
var $ =
|
|
14243
|
+
var $ = y(Y, te, _, H, z + "[" + te + "]", s);
|
|
14218
14244
|
if ($ instanceof Error)
|
|
14219
14245
|
return $;
|
|
14220
14246
|
}
|
|
@@ -14223,7 +14249,7 @@ function jc() {
|
|
|
14223
14249
|
return w(T);
|
|
14224
14250
|
}
|
|
14225
14251
|
function E() {
|
|
14226
|
-
function
|
|
14252
|
+
function y(T, O, G, _, H) {
|
|
14227
14253
|
var z = T[O];
|
|
14228
14254
|
if (!l(z)) {
|
|
14229
14255
|
var Y = x(z);
|
|
@@ -14231,10 +14257,10 @@ function jc() {
|
|
|
14231
14257
|
}
|
|
14232
14258
|
return null;
|
|
14233
14259
|
}
|
|
14234
|
-
return w(
|
|
14260
|
+
return w(y);
|
|
14235
14261
|
}
|
|
14236
14262
|
function b() {
|
|
14237
|
-
function
|
|
14263
|
+
function y(T, O, G, _, H) {
|
|
14238
14264
|
var z = T[O];
|
|
14239
14265
|
if (!e.isValidElementType(z)) {
|
|
14240
14266
|
var Y = x(z);
|
|
@@ -14242,28 +14268,28 @@ function jc() {
|
|
|
14242
14268
|
}
|
|
14243
14269
|
return null;
|
|
14244
14270
|
}
|
|
14245
|
-
return w(
|
|
14271
|
+
return w(y);
|
|
14246
14272
|
}
|
|
14247
|
-
function I(
|
|
14273
|
+
function I(y) {
|
|
14248
14274
|
function T(O, G, _, H, z) {
|
|
14249
|
-
if (!(O[G] instanceof
|
|
14250
|
-
var Y =
|
|
14275
|
+
if (!(O[G] instanceof y)) {
|
|
14276
|
+
var Y = y.name || h, ee = F(O[G]);
|
|
14251
14277
|
return new A("Invalid " + H + " `" + z + "` of type " + ("`" + ee + "` supplied to `" + _ + "`, expected ") + ("instance of `" + Y + "`."));
|
|
14252
14278
|
}
|
|
14253
14279
|
return null;
|
|
14254
14280
|
}
|
|
14255
14281
|
return w(T);
|
|
14256
14282
|
}
|
|
14257
|
-
function k(
|
|
14258
|
-
if (!Array.isArray(
|
|
14283
|
+
function k(y) {
|
|
14284
|
+
if (!Array.isArray(y))
|
|
14259
14285
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
14260
14286
|
"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])."
|
|
14261
14287
|
) : i("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
14262
14288
|
function T(O, G, _, H, z) {
|
|
14263
|
-
for (var Y = O[G], ee = 0; ee <
|
|
14264
|
-
if (f(Y,
|
|
14289
|
+
for (var Y = O[G], ee = 0; ee < y.length; ee++)
|
|
14290
|
+
if (f(Y, y[ee]))
|
|
14265
14291
|
return null;
|
|
14266
|
-
var te = JSON.stringify(
|
|
14292
|
+
var te = JSON.stringify(y, function(oe, M) {
|
|
14267
14293
|
var me = D(M);
|
|
14268
14294
|
return me === "symbol" ? String(M) : M;
|
|
14269
14295
|
});
|
|
@@ -14271,16 +14297,16 @@ function jc() {
|
|
|
14271
14297
|
}
|
|
14272
14298
|
return w(T);
|
|
14273
14299
|
}
|
|
14274
|
-
function Q(
|
|
14300
|
+
function Q(y) {
|
|
14275
14301
|
function T(O, G, _, H, z) {
|
|
14276
|
-
if (typeof
|
|
14302
|
+
if (typeof y != "function")
|
|
14277
14303
|
return new A("Property `" + z + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
|
|
14278
14304
|
var Y = O[G], ee = x(Y);
|
|
14279
14305
|
if (ee !== "object")
|
|
14280
14306
|
return new A("Invalid " + H + " `" + z + "` of type " + ("`" + ee + "` supplied to `" + _ + "`, expected an object."));
|
|
14281
14307
|
for (var te in Y)
|
|
14282
14308
|
if (a(Y, te)) {
|
|
14283
|
-
var $ =
|
|
14309
|
+
var $ = y(Y, te, _, H, z + "." + te, s);
|
|
14284
14310
|
if ($ instanceof Error)
|
|
14285
14311
|
return $;
|
|
14286
14312
|
}
|
|
@@ -14288,19 +14314,19 @@ function jc() {
|
|
|
14288
14314
|
}
|
|
14289
14315
|
return w(T);
|
|
14290
14316
|
}
|
|
14291
|
-
function W(
|
|
14292
|
-
if (!Array.isArray(
|
|
14317
|
+
function W(y) {
|
|
14318
|
+
if (!Array.isArray(y))
|
|
14293
14319
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), o;
|
|
14294
|
-
for (var T = 0; T <
|
|
14295
|
-
var O =
|
|
14320
|
+
for (var T = 0; T < y.length; T++) {
|
|
14321
|
+
var O = y[T];
|
|
14296
14322
|
if (typeof O != "function")
|
|
14297
14323
|
return i(
|
|
14298
14324
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + L(O) + " at index " + T + "."
|
|
14299
14325
|
), o;
|
|
14300
14326
|
}
|
|
14301
14327
|
function G(_, H, z, Y, ee) {
|
|
14302
|
-
for (var te = [], $ = 0; $ <
|
|
14303
|
-
var oe =
|
|
14328
|
+
for (var te = [], $ = 0; $ < y.length; $++) {
|
|
14329
|
+
var oe = y[$], M = oe(_, H, z, Y, ee, s);
|
|
14304
14330
|
if (M == null)
|
|
14305
14331
|
return null;
|
|
14306
14332
|
M.data && a(M.data, "expectedType") && te.push(M.data.expectedType);
|
|
@@ -14311,23 +14337,23 @@ function jc() {
|
|
|
14311
14337
|
return w(G);
|
|
14312
14338
|
}
|
|
14313
14339
|
function j() {
|
|
14314
|
-
function
|
|
14340
|
+
function y(T, O, G, _, H) {
|
|
14315
14341
|
return q(T[O]) ? null : new A("Invalid " + _ + " `" + H + "` supplied to " + ("`" + G + "`, expected a ReactNode."));
|
|
14316
14342
|
}
|
|
14317
|
-
return w(
|
|
14343
|
+
return w(y);
|
|
14318
14344
|
}
|
|
14319
|
-
function R(
|
|
14345
|
+
function R(y, T, O, G, _) {
|
|
14320
14346
|
return new A(
|
|
14321
|
-
(
|
|
14347
|
+
(y || "React class") + ": " + T + " type `" + O + "." + G + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
|
|
14322
14348
|
);
|
|
14323
14349
|
}
|
|
14324
|
-
function V(
|
|
14350
|
+
function V(y) {
|
|
14325
14351
|
function T(O, G, _, H, z) {
|
|
14326
14352
|
var Y = O[G], ee = x(Y);
|
|
14327
14353
|
if (ee !== "object")
|
|
14328
14354
|
return new A("Invalid " + H + " `" + z + "` of type `" + ee + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
14329
|
-
for (var te in
|
|
14330
|
-
var $ =
|
|
14355
|
+
for (var te in y) {
|
|
14356
|
+
var $ = y[te];
|
|
14331
14357
|
if (typeof $ != "function")
|
|
14332
14358
|
return R(_, H, z, te, D($));
|
|
14333
14359
|
var oe = $(Y, te, _, H, z + "." + te, s);
|
|
@@ -14338,20 +14364,20 @@ function jc() {
|
|
|
14338
14364
|
}
|
|
14339
14365
|
return w(T);
|
|
14340
14366
|
}
|
|
14341
|
-
function se(
|
|
14367
|
+
function se(y) {
|
|
14342
14368
|
function T(O, G, _, H, z) {
|
|
14343
14369
|
var Y = O[G], ee = x(Y);
|
|
14344
14370
|
if (ee !== "object")
|
|
14345
14371
|
return new A("Invalid " + H + " `" + z + "` of type `" + ee + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
14346
|
-
var te = t({}, O[G],
|
|
14372
|
+
var te = t({}, O[G], y);
|
|
14347
14373
|
for (var $ in te) {
|
|
14348
|
-
var oe =
|
|
14349
|
-
if (a(
|
|
14374
|
+
var oe = y[$];
|
|
14375
|
+
if (a(y, $) && typeof oe != "function")
|
|
14350
14376
|
return R(_, H, z, $, D(oe));
|
|
14351
14377
|
if (!oe)
|
|
14352
14378
|
return new A(
|
|
14353
14379
|
"Invalid " + H + " `" + z + "` key `" + $ + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(O[G], null, " ") + `
|
|
14354
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
14380
|
+
Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
14355
14381
|
);
|
|
14356
14382
|
var M = oe(Y, $, _, H, z + "." + $, s);
|
|
14357
14383
|
if (M)
|
|
@@ -14361,23 +14387,23 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
14361
14387
|
}
|
|
14362
14388
|
return w(T);
|
|
14363
14389
|
}
|
|
14364
|
-
function q(
|
|
14365
|
-
switch (typeof
|
|
14390
|
+
function q(y) {
|
|
14391
|
+
switch (typeof y) {
|
|
14366
14392
|
case "number":
|
|
14367
14393
|
case "string":
|
|
14368
14394
|
case "undefined":
|
|
14369
14395
|
return !0;
|
|
14370
14396
|
case "boolean":
|
|
14371
|
-
return !
|
|
14397
|
+
return !y;
|
|
14372
14398
|
case "object":
|
|
14373
|
-
if (Array.isArray(
|
|
14374
|
-
return
|
|
14375
|
-
if (
|
|
14399
|
+
if (Array.isArray(y))
|
|
14400
|
+
return y.every(q);
|
|
14401
|
+
if (y === null || l(y))
|
|
14376
14402
|
return !0;
|
|
14377
|
-
var T = m(
|
|
14403
|
+
var T = m(y);
|
|
14378
14404
|
if (T) {
|
|
14379
|
-
var O = T.call(
|
|
14380
|
-
if (T !==
|
|
14405
|
+
var O = T.call(y), G;
|
|
14406
|
+
if (T !== y.entries) {
|
|
14381
14407
|
for (; !(G = O.next()).done; )
|
|
14382
14408
|
if (!q(G.value))
|
|
14383
14409
|
return !1;
|
|
@@ -14394,27 +14420,27 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
14394
14420
|
return !1;
|
|
14395
14421
|
}
|
|
14396
14422
|
}
|
|
14397
|
-
function U(
|
|
14398
|
-
return
|
|
14423
|
+
function U(y, T) {
|
|
14424
|
+
return y === "symbol" ? !0 : T ? T["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && T instanceof Symbol : !1;
|
|
14399
14425
|
}
|
|
14400
|
-
function x(
|
|
14401
|
-
var T = typeof
|
|
14402
|
-
return Array.isArray(
|
|
14426
|
+
function x(y) {
|
|
14427
|
+
var T = typeof y;
|
|
14428
|
+
return Array.isArray(y) ? "array" : y instanceof RegExp ? "object" : U(T, y) ? "symbol" : T;
|
|
14403
14429
|
}
|
|
14404
|
-
function D(
|
|
14405
|
-
if (typeof
|
|
14406
|
-
return "" +
|
|
14407
|
-
var T = x(
|
|
14430
|
+
function D(y) {
|
|
14431
|
+
if (typeof y > "u" || y === null)
|
|
14432
|
+
return "" + y;
|
|
14433
|
+
var T = x(y);
|
|
14408
14434
|
if (T === "object") {
|
|
14409
|
-
if (
|
|
14435
|
+
if (y instanceof Date)
|
|
14410
14436
|
return "date";
|
|
14411
|
-
if (
|
|
14437
|
+
if (y instanceof RegExp)
|
|
14412
14438
|
return "regexp";
|
|
14413
14439
|
}
|
|
14414
14440
|
return T;
|
|
14415
14441
|
}
|
|
14416
|
-
function L(
|
|
14417
|
-
var T = D(
|
|
14442
|
+
function L(y) {
|
|
14443
|
+
var T = D(y);
|
|
14418
14444
|
switch (T) {
|
|
14419
14445
|
case "array":
|
|
14420
14446
|
case "object":
|
|
@@ -14427,8 +14453,8 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
14427
14453
|
return T;
|
|
14428
14454
|
}
|
|
14429
14455
|
}
|
|
14430
|
-
function F(
|
|
14431
|
-
return !
|
|
14456
|
+
function F(y) {
|
|
14457
|
+
return !y.constructor || !y.constructor.name ? h : y.constructor.name;
|
|
14432
14458
|
}
|
|
14433
14459
|
return p.checkPropTypes = r, p.resetWarningCache = r.resetWarningCache, p.PropTypes = p, p;
|
|
14434
14460
|
}, is;
|
|
@@ -14669,10 +14695,10 @@ function Yc() {
|
|
|
14669
14695
|
var v = m(A);
|
|
14670
14696
|
v && v !== h && p(f, v, w);
|
|
14671
14697
|
}
|
|
14672
|
-
var
|
|
14673
|
-
c && (
|
|
14674
|
-
for (var S = o(f), E = o(A), b = 0; b <
|
|
14675
|
-
var I =
|
|
14698
|
+
var C = u(A);
|
|
14699
|
+
c && (C = C.concat(c(A)));
|
|
14700
|
+
for (var S = o(f), E = o(A), b = 0; b < C.length; ++b) {
|
|
14701
|
+
var I = C[b];
|
|
14676
14702
|
if (!s[I] && !(w && w[I]) && !(E && E[I]) && !(S && S[I])) {
|
|
14677
14703
|
var k = d(A, I);
|
|
14678
14704
|
try {
|
|
@@ -14688,15 +14714,15 @@ function Yc() {
|
|
|
14688
14714
|
}
|
|
14689
14715
|
var $c = Yc();
|
|
14690
14716
|
const Kc = /* @__PURE__ */ Ke($c);
|
|
14691
|
-
function
|
|
14692
|
-
return
|
|
14717
|
+
function ys() {
|
|
14718
|
+
return ys = Object.assign || function(e) {
|
|
14693
14719
|
for (var t = 1; t < arguments.length; t++) {
|
|
14694
14720
|
var s = arguments[t];
|
|
14695
14721
|
for (var a in s)
|
|
14696
14722
|
Object.prototype.hasOwnProperty.call(s, a) && (e[a] = s[a]);
|
|
14697
14723
|
}
|
|
14698
14724
|
return e;
|
|
14699
|
-
},
|
|
14725
|
+
}, ys.apply(this, arguments);
|
|
14700
14726
|
}
|
|
14701
14727
|
function Jc(e, t) {
|
|
14702
14728
|
if (e == null) return {};
|
|
@@ -14708,7 +14734,7 @@ function Jc(e, t) {
|
|
|
14708
14734
|
function Zc(e, t) {
|
|
14709
14735
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
|
|
14710
14736
|
}
|
|
14711
|
-
var
|
|
14737
|
+
var Ce = {}, Xc = 0;
|
|
14712
14738
|
function ed(e, t) {
|
|
14713
14739
|
return t = t || {}, function(a) {
|
|
14714
14740
|
var r = a.displayName || a.name || "Component", i = /* @__PURE__ */ (function(l) {
|
|
@@ -14728,7 +14754,7 @@ function ed(e, t) {
|
|
|
14728
14754
|
return h.props.asyncScriptOnLoad && h.props.asyncScriptOnLoad(h.state);
|
|
14729
14755
|
});
|
|
14730
14756
|
}, c.asyncScriptLoaderTriggerOnScriptLoaded = function() {
|
|
14731
|
-
var m =
|
|
14757
|
+
var m = Ce[this.__scriptURL];
|
|
14732
14758
|
if (!m || !m.loaded)
|
|
14733
14759
|
throw new Error("Script is not loaded.");
|
|
14734
14760
|
for (var h in m.observers)
|
|
@@ -14736,16 +14762,16 @@ function ed(e, t) {
|
|
|
14736
14762
|
delete window[t.callbackName];
|
|
14737
14763
|
}, c.componentDidMount = function() {
|
|
14738
14764
|
var m = this, h = this.setupScriptURL(), p = this.asyncScriptLoaderGetScriptLoaderID(), f = t, A = f.globalName, w = f.callbackName, v = f.scriptId;
|
|
14739
|
-
if (A && typeof window[A] < "u" && (
|
|
14765
|
+
if (A && typeof window[A] < "u" && (Ce[h] = {
|
|
14740
14766
|
loaded: !0,
|
|
14741
14767
|
observers: {}
|
|
14742
|
-
}),
|
|
14743
|
-
var
|
|
14744
|
-
if (
|
|
14745
|
-
this.asyncScriptLoaderHandleLoad(
|
|
14768
|
+
}), Ce[h]) {
|
|
14769
|
+
var C = Ce[h];
|
|
14770
|
+
if (C && (C.loaded || C.errored)) {
|
|
14771
|
+
this.asyncScriptLoaderHandleLoad(C);
|
|
14746
14772
|
return;
|
|
14747
14773
|
}
|
|
14748
|
-
|
|
14774
|
+
C.observers[p] = function(k) {
|
|
14749
14775
|
return m.asyncScriptLoaderHandleLoad(k);
|
|
14750
14776
|
};
|
|
14751
14777
|
return;
|
|
@@ -14753,7 +14779,7 @@ function ed(e, t) {
|
|
|
14753
14779
|
var S = {};
|
|
14754
14780
|
S[p] = function(k) {
|
|
14755
14781
|
return m.asyncScriptLoaderHandleLoad(k);
|
|
14756
|
-
},
|
|
14782
|
+
}, Ce[h] = {
|
|
14757
14783
|
loaded: !1,
|
|
14758
14784
|
observers: S
|
|
14759
14785
|
};
|
|
@@ -14763,8 +14789,8 @@ function ed(e, t) {
|
|
|
14763
14789
|
E.setAttribute(b, t.attributes[b]);
|
|
14764
14790
|
v && (E.id = v);
|
|
14765
14791
|
var I = function(Q) {
|
|
14766
|
-
if (
|
|
14767
|
-
var W =
|
|
14792
|
+
if (Ce[h]) {
|
|
14793
|
+
var W = Ce[h], j = W.observers;
|
|
14768
14794
|
for (var R in j)
|
|
14769
14795
|
Q(j[R]) && delete j[R];
|
|
14770
14796
|
}
|
|
@@ -14772,12 +14798,12 @@ function ed(e, t) {
|
|
|
14772
14798
|
w && typeof window < "u" && (window[w] = function() {
|
|
14773
14799
|
return m.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
14774
14800
|
}), E.onload = function() {
|
|
14775
|
-
var k =
|
|
14801
|
+
var k = Ce[h];
|
|
14776
14802
|
k && (k.loaded = !0, I(function(Q) {
|
|
14777
14803
|
return w ? !1 : (Q(k), !0);
|
|
14778
14804
|
}));
|
|
14779
14805
|
}, E.onerror = function() {
|
|
14780
|
-
var k =
|
|
14806
|
+
var k = Ce[h];
|
|
14781
14807
|
k && (k.errored = !0, I(function(Q) {
|
|
14782
14808
|
return Q(k), !0;
|
|
14783
14809
|
}));
|
|
@@ -14787,16 +14813,16 @@ function ed(e, t) {
|
|
|
14787
14813
|
if (t.removeOnUnmount === !0)
|
|
14788
14814
|
for (var h = document.getElementsByTagName("script"), p = 0; p < h.length; p += 1)
|
|
14789
14815
|
h[p].src.indexOf(m) > -1 && h[p].parentNode && h[p].parentNode.removeChild(h[p]);
|
|
14790
|
-
var f =
|
|
14791
|
-
f && (delete f.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete
|
|
14816
|
+
var f = Ce[m];
|
|
14817
|
+
f && (delete f.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete Ce[m]);
|
|
14792
14818
|
}, c.render = function() {
|
|
14793
14819
|
var m = t.globalName, h = this.props;
|
|
14794
14820
|
h.asyncScriptOnLoad;
|
|
14795
14821
|
var p = h.forwardedRef, f = Jc(h, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
14796
|
-
return m && typeof window < "u" && (f[m] = typeof window[m] < "u" ? window[m] : void 0), f.ref = p,
|
|
14822
|
+
return m && typeof window < "u" && (f[m] = typeof window[m] < "u" ? window[m] : void 0), f.ref = p, Oe(a, f);
|
|
14797
14823
|
}, u;
|
|
14798
14824
|
})(ja), o = Qn(function(l, u) {
|
|
14799
|
-
return
|
|
14825
|
+
return Oe(i, ys({}, l, {
|
|
14800
14826
|
forwardedRef: u
|
|
14801
14827
|
}));
|
|
14802
14828
|
});
|
|
@@ -14805,16 +14831,16 @@ function ed(e, t) {
|
|
|
14805
14831
|
}, Kc(o, a);
|
|
14806
14832
|
};
|
|
14807
14833
|
}
|
|
14808
|
-
var
|
|
14834
|
+
var Cs = "onloadcallback", td = "grecaptcha";
|
|
14809
14835
|
function Ns() {
|
|
14810
14836
|
return typeof window < "u" && window.recaptchaOptions || {};
|
|
14811
14837
|
}
|
|
14812
14838
|
function sd() {
|
|
14813
14839
|
var e = Ns(), t = e.useRecaptchaNet ? "recaptcha.net" : "www.google.com";
|
|
14814
|
-
return e.enterprise ? "https://" + t + "/recaptcha/enterprise.js?onload=" +
|
|
14840
|
+
return e.enterprise ? "https://" + t + "/recaptcha/enterprise.js?onload=" + Cs + "&render=explicit" : "https://" + t + "/recaptcha/api.js?onload=" + Cs + "&render=explicit";
|
|
14815
14841
|
}
|
|
14816
14842
|
const Oa = ed(sd, {
|
|
14817
|
-
callbackName:
|
|
14843
|
+
callbackName: Cs,
|
|
14818
14844
|
globalName: td,
|
|
14819
14845
|
attributes: Ns().nonce ? {
|
|
14820
14846
|
nonce: Ns().nonce
|
|
@@ -14857,7 +14883,7 @@ const Oa = ed(sd, {
|
|
|
14857
14883
|
{ id: "terrorism", label: u.terrorism },
|
|
14858
14884
|
{ id: "intellectual", label: u.intellectual },
|
|
14859
14885
|
{ id: "bullying", label: u.bullying }
|
|
14860
|
-
],
|
|
14886
|
+
], C = async () => {
|
|
14861
14887
|
if (!(!m || !s)) {
|
|
14862
14888
|
if (Pa(document).includes(s)) {
|
|
14863
14889
|
f(l.errorAlreadyReported);
|
|
@@ -14928,7 +14954,7 @@ const Oa = ed(sd, {
|
|
|
14928
14954
|
/* @__PURE__ */ n(
|
|
14929
14955
|
"button",
|
|
14930
14956
|
{
|
|
14931
|
-
onClick:
|
|
14957
|
+
onClick: C,
|
|
14932
14958
|
disabled: !m,
|
|
14933
14959
|
className: "sass-pg-cmt-rp-reportButton",
|
|
14934
14960
|
children: l.reportButton
|
|
@@ -15067,7 +15093,7 @@ async function id({
|
|
|
15067
15093
|
r && w.append("id", r), i && w.append("lastid", i);
|
|
15068
15094
|
const v = `${A}${h}/newcomments/get?${w.toString()}`;
|
|
15069
15095
|
try {
|
|
15070
|
-
const { data:
|
|
15096
|
+
const { data: C } = await re.get(v, {
|
|
15071
15097
|
headers: {
|
|
15072
15098
|
"x-api-token": l,
|
|
15073
15099
|
"Cache-Control": "max-age=0, no-cache, no-store, must-revalidate",
|
|
@@ -15075,15 +15101,15 @@ async function id({
|
|
|
15075
15101
|
Expires: "0"
|
|
15076
15102
|
}
|
|
15077
15103
|
});
|
|
15078
|
-
if (!
|
|
15104
|
+
if (!C)
|
|
15079
15105
|
throw new Error("No comments data received");
|
|
15080
|
-
return
|
|
15081
|
-
} catch (
|
|
15082
|
-
if (console.error("Error fetching comments:",
|
|
15083
|
-
const S =
|
|
15106
|
+
return C.data || C || [];
|
|
15107
|
+
} catch (C) {
|
|
15108
|
+
if (console.error("Error fetching comments:", C), re.isAxiosError(C)) {
|
|
15109
|
+
const S = C.response?.status, E = C.response?.data;
|
|
15084
15110
|
throw S === 404 ? new Error("Comments not found") : S === 403 ? new Error("Access forbidden - check API token") : S === 401 ? new Error("Unauthorized - invalid API token") : S === 500 ? new Error("Internal server error from CMS") : new Error(E?.error || E?.message || `HTTP ${S}: Failed to fetch comments`);
|
|
15085
15111
|
}
|
|
15086
|
-
throw
|
|
15112
|
+
throw C;
|
|
15087
15113
|
}
|
|
15088
15114
|
}
|
|
15089
15115
|
const od = (e, t) => {
|
|
@@ -15339,8 +15365,8 @@ const md = {
|
|
|
15339
15365
|
if (!d || !s.CONFIG_commentsV2 || !i || !document) return;
|
|
15340
15366
|
const A = document.getElementById("comment-button");
|
|
15341
15367
|
if (!A) return;
|
|
15342
|
-
const w = A.closest(".comment-form"), v = w?.querySelector('input[name="username"]'),
|
|
15343
|
-
v?.value?.trim() &&
|
|
15368
|
+
const w = A.closest(".comment-form"), v = w?.querySelector('input[name="username"]'), C = w?.querySelector('textarea[name="comment"]'), S = w?.querySelector("textarea.g-recaptcha-response") ?? document.querySelector("#g-recaptcha-response");
|
|
15369
|
+
v?.value?.trim() && C?.value?.trim() && S?.value?.trim() && A.click();
|
|
15344
15370
|
});
|
|
15345
15371
|
const f = ie("/Success.gif");
|
|
15346
15372
|
return u ? /* @__PURE__ */ n("div", { className: "success-gif-container su-flex-center su-relative", children: /* @__PURE__ */ n("img", { className: "success-gif su-absolute", src: f }) }) : /* @__PURE__ */ g(K, { children: [
|
|
@@ -15426,11 +15452,11 @@ const md = {
|
|
|
15426
15452
|
throw new Error(
|
|
15427
15453
|
`Error al enviar comentario: ${A?.message} status: ${f.status}`
|
|
15428
15454
|
);
|
|
15429
|
-
const w = Date.now(), v = Math.max(0, 2400 + Math.abs(w - p)),
|
|
15430
|
-
username:
|
|
15431
|
-
firstname:
|
|
15432
|
-
...
|
|
15433
|
-
...
|
|
15455
|
+
const w = Date.now(), v = Math.max(0, 2400 + Math.abs(w - p)), C = r || { username: u, firstname: u }, S = {
|
|
15456
|
+
username: C.username,
|
|
15457
|
+
firstname: C.firstname,
|
|
15458
|
+
...C.lastname && { lastname: C.lastname },
|
|
15459
|
+
...C.picture && { picture: C.picture }
|
|
15434
15460
|
};
|
|
15435
15461
|
return o({
|
|
15436
15462
|
id: w.toString(),
|
|
@@ -15524,8 +15550,8 @@ const md = {
|
|
|
15524
15550
|
moreRepliesButton: "Más Respuestas"
|
|
15525
15551
|
}, Ad = ({ comment: e, replyingTo: t, path: s, user: a, handleReplyingTo: r, onFlag: i, API_ENV: o, texts: l }) => {
|
|
15526
15552
|
const u = { ...pd, ...l?.comentarios }, c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [d, m] = Z(c), [h, p] = ce.useState(!1), { PUBLIC_PUBLICATION_ID: f, PUBLIC_X_SECURITY_TOKEN: A } = o, w = e.text, v = ce.useRef(null);
|
|
15527
|
-
let
|
|
15528
|
-
e.user && (
|
|
15553
|
+
let C = `${Ie.firstname} ${Ie.lastname ?? ""}`, S = Ie.username;
|
|
15554
|
+
e.user && (C = `${e.user.firstname} ${e.user.lastname ?? ""}`, S = e.user.username);
|
|
15529
15555
|
const E = (b) => {
|
|
15530
15556
|
m({ morereply: d.morereply, reply: [b, ...d.reply] });
|
|
15531
15557
|
};
|
|
@@ -15537,7 +15563,7 @@ const md = {
|
|
|
15537
15563
|
children: [
|
|
15538
15564
|
/* @__PURE__ */ n(qa, { user: e.user ? e.user : Ie }),
|
|
15539
15565
|
/* @__PURE__ */ g("div", { style: { flex: 1 }, children: [
|
|
15540
|
-
/* @__PURE__ */ n(Ma, { username:
|
|
15566
|
+
/* @__PURE__ */ n(Ma, { username: C, date: e.date.time, DATE_CONFIG: o }),
|
|
15541
15567
|
/* @__PURE__ */ n("p", { className: "comment-text su-font-normal", children: w }),
|
|
15542
15568
|
a?.username.toLowerCase() !== S.toLowerCase() && // No puedes responder ni reportar tus respuestas
|
|
15543
15569
|
/* @__PURE__ */ n(
|
|
@@ -15566,7 +15592,7 @@ const md = {
|
|
|
15566
15592
|
{
|
|
15567
15593
|
user: a,
|
|
15568
15594
|
reply: b,
|
|
15569
|
-
replyingTo:
|
|
15595
|
+
replyingTo: C,
|
|
15570
15596
|
onFlag: i,
|
|
15571
15597
|
DATE_CONFIG: o,
|
|
15572
15598
|
texts: l
|
|
@@ -15675,7 +15701,7 @@ const md = {
|
|
|
15675
15701
|
}
|
|
15676
15702
|
)
|
|
15677
15703
|
] });
|
|
15678
|
-
},
|
|
15704
|
+
}, yd = ({
|
|
15679
15705
|
usernameRef: e,
|
|
15680
15706
|
commentRef: t,
|
|
15681
15707
|
path: s,
|
|
@@ -15748,7 +15774,7 @@ const md = {
|
|
|
15748
15774
|
}
|
|
15749
15775
|
)
|
|
15750
15776
|
] }) });
|
|
15751
|
-
},
|
|
15777
|
+
}, Cd = {
|
|
15752
15778
|
commentsSectionTitle: "COMENTARIOS",
|
|
15753
15779
|
commentHeaderMessageEmpty: "Se el primero en compartir tu opinión de este artículo.",
|
|
15754
15780
|
commentHeaderMessageWithComments: "Comparte tu opinión de este artículo.",
|
|
@@ -15768,12 +15794,12 @@ const md = {
|
|
|
15768
15794
|
API_ENV: o,
|
|
15769
15795
|
texts: l
|
|
15770
15796
|
}) => {
|
|
15771
|
-
const u = { ...
|
|
15797
|
+
const u = { ...Cd, ...l?.comentarios }, { PUBLIC_PUBLICATION_ID: c, PUBLIC_X_SECURITY_TOKEN: d } = o, m = c ?? "", h = t.replaceAll("/", "|"), [p, f] = Z(
|
|
15772
15798
|
void 0
|
|
15773
|
-
), [A, w] = Z(""), { comments: v, setComments:
|
|
15799
|
+
), [A, w] = Z(""), { comments: v, setComments: C } = od(h, o), [S, E] = ce.useState(!1), b = ce.useRef(null), I = ce.useRef(null), k = (U) => {
|
|
15774
15800
|
w(A === U ? "" : U);
|
|
15775
15801
|
}, Q = (U) => {
|
|
15776
|
-
|
|
15802
|
+
C(
|
|
15777
15803
|
v ? {
|
|
15778
15804
|
...v,
|
|
15779
15805
|
comments: [U, ...v.comments ?? []]
|
|
@@ -15799,7 +15825,7 @@ const md = {
|
|
|
15799
15825
|
apiToken: d,
|
|
15800
15826
|
API_ENV: o
|
|
15801
15827
|
});
|
|
15802
|
-
|
|
15828
|
+
C({
|
|
15803
15829
|
morecomment: D.morecomment ?? !1,
|
|
15804
15830
|
comments: [...v.comments, ...D.comments]
|
|
15805
15831
|
}), E(!1);
|
|
@@ -15839,7 +15865,7 @@ const md = {
|
|
|
15839
15865
|
u.anonimusPromptSuffix
|
|
15840
15866
|
] }),
|
|
15841
15867
|
/* @__PURE__ */ n(
|
|
15842
|
-
|
|
15868
|
+
yd,
|
|
15843
15869
|
{
|
|
15844
15870
|
usernameRef: I,
|
|
15845
15871
|
commentRef: b,
|
|
@@ -16253,7 +16279,7 @@ const _a = async (e, t) => {
|
|
|
16253
16279
|
...i.main,
|
|
16254
16280
|
title: { ...i.main.title, section: r ? i.main.title.home : i.main.title.section }
|
|
16255
16281
|
} };
|
|
16256
|
-
return /* @__PURE__ */
|
|
16282
|
+
return /* @__PURE__ */ Oe(
|
|
16257
16283
|
Yt,
|
|
16258
16284
|
{
|
|
16259
16285
|
...l,
|
|
@@ -16470,7 +16496,7 @@ const jn = {
|
|
|
16470
16496
|
}
|
|
16471
16497
|
}
|
|
16472
16498
|
),
|
|
16473
|
-
/* @__PURE__ */ n(
|
|
16499
|
+
/* @__PURE__ */ n(it, { children: /* @__PURE__ */ n(
|
|
16474
16500
|
We,
|
|
16475
16501
|
{
|
|
16476
16502
|
banners: i,
|
|
@@ -16506,7 +16532,7 @@ const jn = {
|
|
|
16506
16532
|
}
|
|
16507
16533
|
}
|
|
16508
16534
|
),
|
|
16509
|
-
/* @__PURE__ */ n(
|
|
16535
|
+
/* @__PURE__ */ n(it, { children: /* @__PURE__ */ n(
|
|
16510
16536
|
We,
|
|
16511
16537
|
{
|
|
16512
16538
|
banners: i,
|
|
@@ -16543,7 +16569,7 @@ const jn = {
|
|
|
16543
16569
|
banners: a
|
|
16544
16570
|
}
|
|
16545
16571
|
),
|
|
16546
|
-
/* @__PURE__ */ n(
|
|
16572
|
+
/* @__PURE__ */ n(it, { children: /* @__PURE__ */ n(We, { banners: a, index: 1 }) }),
|
|
16547
16573
|
/* @__PURE__ */ n(
|
|
16548
16574
|
cs,
|
|
16549
16575
|
{
|
|
@@ -16552,7 +16578,7 @@ const jn = {
|
|
|
16552
16578
|
banners: a
|
|
16553
16579
|
}
|
|
16554
16580
|
),
|
|
16555
|
-
/* @__PURE__ */ n(
|
|
16581
|
+
/* @__PURE__ */ n(it, { children: /* @__PURE__ */ n(We, { banners: a, index: 1 }) }),
|
|
16556
16582
|
/* @__PURE__ */ n(
|
|
16557
16583
|
cs,
|
|
16558
16584
|
{
|
|
@@ -16561,7 +16587,7 @@ const jn = {
|
|
|
16561
16587
|
banners: a
|
|
16562
16588
|
}
|
|
16563
16589
|
),
|
|
16564
|
-
/* @__PURE__ */ n(
|
|
16590
|
+
/* @__PURE__ */ n(it, { children: /* @__PURE__ */ n(We, { banners: a, index: 1 }) })
|
|
16565
16591
|
] });
|
|
16566
16592
|
};
|
|
16567
16593
|
export {
|
|
@@ -16570,12 +16596,12 @@ export {
|
|
|
16570
16596
|
Pu as AutorHeader2,
|
|
16571
16597
|
be as BannerAdvertising,
|
|
16572
16598
|
We as BannerAdvertisingMiddle,
|
|
16573
|
-
|
|
16599
|
+
yu as CarrouselCSR,
|
|
16574
16600
|
Ve as CarrouselIRS,
|
|
16575
16601
|
Ul as CarruselCard,
|
|
16576
16602
|
Rl as CarruselOpinion,
|
|
16577
16603
|
Xu as CommentLazyLoader,
|
|
16578
|
-
|
|
16604
|
+
Be as CommonServices,
|
|
16579
16605
|
Qa as Comscore,
|
|
16580
16606
|
Hu as ContactInfoServer,
|
|
16581
16607
|
Uu as ContactInput,
|
|
@@ -16620,13 +16646,13 @@ export {
|
|
|
16620
16646
|
Kd as MainComponentServices,
|
|
16621
16647
|
za as Marfeel,
|
|
16622
16648
|
e1 as MasNoticiasLazyLoader,
|
|
16623
|
-
|
|
16649
|
+
it as MiddleSection,
|
|
16624
16650
|
Nl as Modulo1x3,
|
|
16625
16651
|
xl as Modulo1x3Card,
|
|
16626
16652
|
Sl as Modulo1x4,
|
|
16627
16653
|
El as Modulo1x5,
|
|
16628
16654
|
ju as Modulo2Columnas,
|
|
16629
|
-
|
|
16655
|
+
Cl as Modulo3Columnas,
|
|
16630
16656
|
Qu as ModuloNewsletter,
|
|
16631
16657
|
_u as ModuloOpinion,
|
|
16632
16658
|
Uc as NewListResponseDataPH,
|
|
@@ -16647,7 +16673,7 @@ export {
|
|
|
16647
16673
|
fe as Section,
|
|
16648
16674
|
Pe as SectionCard,
|
|
16649
16675
|
Yt as SectionCard2,
|
|
16650
|
-
|
|
16676
|
+
Cu as SectionCard5,
|
|
16651
16677
|
Tn as SectionCardServerComponent,
|
|
16652
16678
|
Vu as SectionServerComponent,
|
|
16653
16679
|
vn as ShowSection,
|
|
@@ -16655,7 +16681,7 @@ export {
|
|
|
16655
16681
|
jr as SoftwareApplication,
|
|
16656
16682
|
qu as SourceButtons,
|
|
16657
16683
|
qr as SpeculationRules,
|
|
16658
|
-
|
|
16684
|
+
lt as Spin,
|
|
16659
16685
|
n1 as StaticSlotWrapper,
|
|
16660
16686
|
Ho as SubscribeColumn,
|
|
16661
16687
|
Fo as SubscribeRow,
|
|
@@ -16673,7 +16699,7 @@ export {
|
|
|
16673
16699
|
Hr as WebsiteList,
|
|
16674
16700
|
t1 as addComment,
|
|
16675
16701
|
Mt as bannersReplace,
|
|
16676
|
-
|
|
16702
|
+
ot as becomeVideoObject,
|
|
16677
16703
|
je as buildTagUrl,
|
|
16678
16704
|
Su as coloringByStrokeSVGs,
|
|
16679
16705
|
Fs as compileStyleProps,
|
|
@@ -16681,7 +16707,7 @@ export {
|
|
|
16681
16707
|
ke as cutString,
|
|
16682
16708
|
Wn as decodeApiEnv,
|
|
16683
16709
|
zd as encodeApiEnv,
|
|
16684
|
-
|
|
16710
|
+
ye as extractMainSlug,
|
|
16685
16711
|
Md as extractRealtedNews,
|
|
16686
16712
|
hs as extractRelatedNews,
|
|
16687
16713
|
Ue as formatDate,
|
|
@@ -16697,15 +16723,15 @@ export {
|
|
|
16697
16723
|
pu as getDynamicSlots,
|
|
16698
16724
|
ze as getEnvironmentUrl,
|
|
16699
16725
|
qd as getEnvironmentUrlFront,
|
|
16700
|
-
|
|
16726
|
+
Me as getFrontPrefix,
|
|
16701
16727
|
jd as getHydratorPath,
|
|
16702
16728
|
de as getImageUrl,
|
|
16703
16729
|
Wd as getItemFormated,
|
|
16704
|
-
|
|
16705
|
-
|
|
16730
|
+
et as getNextMeta,
|
|
16731
|
+
st as getPage,
|
|
16706
16732
|
va as getPlayIcon,
|
|
16707
16733
|
$d as getPreloadImages,
|
|
16708
|
-
|
|
16734
|
+
tt as getPrevMeta,
|
|
16709
16735
|
Qd as getRelatedNewsCarrousel,
|
|
16710
16736
|
Zu as getReportReasonLabel,
|
|
16711
16737
|
Fe as getResponse,
|
|
@@ -16720,7 +16746,7 @@ export {
|
|
|
16720
16746
|
Gs as handleGetComments,
|
|
16721
16747
|
Pd as initLibrary,
|
|
16722
16748
|
Fd as isPhotoGallery,
|
|
16723
|
-
|
|
16749
|
+
yr as metadataToJSX,
|
|
16724
16750
|
Uo as metadata_defaults,
|
|
16725
16751
|
Lr as new_speculationRules_home,
|
|
16726
16752
|
Br as new_speculationRules_note,
|
|
@@ -16736,7 +16762,7 @@ export {
|
|
|
16736
16762
|
Rt as socialIcons,
|
|
16737
16763
|
Ge as toISOWithTimeZone,
|
|
16738
16764
|
br as urlReplaces,
|
|
16739
|
-
|
|
16765
|
+
ya as usePlayIcon,
|
|
16740
16766
|
gr as validateHttpUrl,
|
|
16741
16767
|
s1 as verifyCaptchaTokenEnterprise
|
|
16742
16768
|
};
|