sass-template-common 0.9.240 → 0.9.241
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -36
- package/dist/sass-template-common.d.ts +12 -4
- package/dist/sass-template-common.js +544 -508
- package/dist/sass-template-common.umd.cjs +36 -36
- package/package.json +69 -69
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s, Fragment as $, jsxs as p } from "react/jsx-runtime";
|
|
2
2
|
import * as fs from "react";
|
|
3
|
-
import ue, { useState as z, useRef as pa, useCallback as de, useEffect as Be, createElement as Ve, forwardRef as ga, Fragment as Rn, useMemo as
|
|
3
|
+
import ue, { useState as z, useRef as pa, useCallback as de, useEffect as Be, createElement as Ve, forwardRef as ga, Fragment as Rn, useMemo as vt, Component as kr } from "react";
|
|
4
4
|
let Pn = {
|
|
5
5
|
PUBLIC_API_HOST: "",
|
|
6
6
|
PUBLIC_API_FRONT: "",
|
|
@@ -77,7 +77,7 @@ let Pn = {
|
|
|
77
77
|
MULTIPUBLICATION_FETCHES: void 0,
|
|
78
78
|
BUCKET_ORIGIN: void 0
|
|
79
79
|
};
|
|
80
|
-
function
|
|
80
|
+
function Cm(e = {}) {
|
|
81
81
|
Pn = { ...Pn, ...e };
|
|
82
82
|
}
|
|
83
83
|
function R() {
|
|
@@ -104,13 +104,13 @@ function wa() {
|
|
|
104
104
|
(function(n, a) {
|
|
105
105
|
e.exports = a();
|
|
106
106
|
})(Ur, (function() {
|
|
107
|
-
var n = 1e3, a = 6e4, r = 36e5, o = "millisecond", i = "second", l = "minute", c = "hour", d = "day", u = "week", h = "month", m = "quarter", w = "year", f = "date", g = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
|
|
107
|
+
var n = 1e3, a = 6e4, r = 36e5, o = "millisecond", i = "second", l = "minute", c = "hour", d = "day", u = "week", h = "month", m = "quarter", w = "year", f = "date", g = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, v = { 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(O) {
|
|
108
108
|
var I = ["th", "st", "nd", "rd"], U = O % 100;
|
|
109
109
|
return "[" + O + (I[(U - 20) % 10] || I[U] || I[0]) + "]";
|
|
110
110
|
} }, N = function(O, I, U) {
|
|
111
111
|
var G = String(O);
|
|
112
112
|
return !G || G.length >= I ? O : "" + Array(I + 1 - G.length).join(U) + O;
|
|
113
|
-
},
|
|
113
|
+
}, C = { s: N, z: function(O) {
|
|
114
114
|
var I = -O.utcOffset(), U = Math.abs(I), G = Math.floor(U / 60), B = U % 60;
|
|
115
115
|
return (I <= 0 ? "+" : "-") + N(G, 2, "0") + ":" + N(B, 2, "0");
|
|
116
116
|
}, m: function O(I, U) {
|
|
@@ -124,7 +124,7 @@ function wa() {
|
|
|
124
124
|
}, u: function(O) {
|
|
125
125
|
return O === void 0;
|
|
126
126
|
} }, y = "en", S = {};
|
|
127
|
-
S[y] =
|
|
127
|
+
S[y] = v;
|
|
128
128
|
var k = "$isDayjsObject", L = function(O) {
|
|
129
129
|
return O instanceof H || !(!O || !O[k]);
|
|
130
130
|
}, D = function O(I, U, G) {
|
|
@@ -144,7 +144,7 @@ function wa() {
|
|
|
144
144
|
if (L(O)) return O.clone();
|
|
145
145
|
var U = typeof I == "object" ? I : {};
|
|
146
146
|
return U.date = O, U.args = arguments, new H(U);
|
|
147
|
-
}, P =
|
|
147
|
+
}, P = C;
|
|
148
148
|
P.l = D, P.i = L, P.w = function(O, I) {
|
|
149
149
|
return j(O, { locale: I.$L, utc: I.$u, x: I.$x, $offset: I.$offset });
|
|
150
150
|
};
|
|
@@ -391,12 +391,12 @@ function Pr() {
|
|
|
391
391
|
return o.fromToBase(d, u, h, m);
|
|
392
392
|
}
|
|
393
393
|
r.en.relativeTime = i, o.fromToBase = function(d, u, h, m, w) {
|
|
394
|
-
for (var f, g, b, A = h.$locale().relativeTime || i,
|
|
395
|
-
var y = C
|
|
394
|
+
for (var f, g, b, A = h.$locale().relativeTime || i, v = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], N = v.length, C = 0; C < N; C += 1) {
|
|
395
|
+
var y = v[C];
|
|
396
396
|
y.d && (f = m ? r(d).diff(h, y.d, !0) : h.diff(d, y.d, !0));
|
|
397
397
|
var S = (n.rounding || Math.round)(Math.abs(f));
|
|
398
398
|
if (b = f > 0, S <= y.r || !y.r) {
|
|
399
|
-
S <= 1 &&
|
|
399
|
+
S <= 1 && C > 0 && (y = v[C - 1]);
|
|
400
400
|
var k = A[y.l];
|
|
401
401
|
w && (S = w("" + S)), g = typeof k == "string" ? k.replace("%d", S) : k(S, u, y.l, b);
|
|
402
402
|
break;
|
|
@@ -481,12 +481,12 @@ function Dr() {
|
|
|
481
481
|
var k = ("" + S[0]).match(r) || ["-", 0, 0], L = k[0], D = 60 * +k[1] + +k[2];
|
|
482
482
|
return D === 0 ? 0 : L === "+" ? D : -D;
|
|
483
483
|
})(g), g === null)) return this;
|
|
484
|
-
var
|
|
485
|
-
if (
|
|
484
|
+
var v = Math.abs(g) <= 16 ? 60 * g : g;
|
|
485
|
+
if (v === 0) return this.utc(b);
|
|
486
486
|
var N = this.clone();
|
|
487
|
-
if (b) return N.$offset =
|
|
488
|
-
var
|
|
489
|
-
return (N = this.local().add(
|
|
487
|
+
if (b) return N.$offset = v, N.$u = !1, N;
|
|
488
|
+
var C = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
489
|
+
return (N = this.local().add(v + C, n)).$offset = v, N.$x.$localOffset = C, N;
|
|
490
490
|
};
|
|
491
491
|
var m = c.format;
|
|
492
492
|
c.format = function(g) {
|
|
@@ -509,8 +509,8 @@ function Dr() {
|
|
|
509
509
|
var f = c.diff;
|
|
510
510
|
c.diff = function(g, b, A) {
|
|
511
511
|
if (g && this.$u === g.$u) return f.call(this, g, b, A);
|
|
512
|
-
var
|
|
513
|
-
return f.call(
|
|
512
|
+
var v = this.local(), N = l(g).local();
|
|
513
|
+
return f.call(v, N, b, A);
|
|
514
514
|
};
|
|
515
515
|
};
|
|
516
516
|
}));
|
|
@@ -528,27 +528,27 @@ function Hr() {
|
|
|
528
528
|
return function(r, o, i) {
|
|
529
529
|
var l, c = function(m, w, f) {
|
|
530
530
|
f === void 0 && (f = {});
|
|
531
|
-
var g = new Date(m), b = (function(A,
|
|
532
|
-
|
|
533
|
-
var N =
|
|
534
|
-
return y || (y = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: A, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: N }), a[
|
|
531
|
+
var g = new Date(m), b = (function(A, v) {
|
|
532
|
+
v === void 0 && (v = {});
|
|
533
|
+
var N = v.timeZoneName || "short", C = A + "|" + N, y = a[C];
|
|
534
|
+
return y || (y = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: A, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: N }), a[C] = y), y;
|
|
535
535
|
})(w, f);
|
|
536
536
|
return b.formatToParts(g);
|
|
537
537
|
}, d = function(m, w) {
|
|
538
538
|
for (var f = c(m, w), g = [], b = 0; b < f.length; b += 1) {
|
|
539
|
-
var A = f[b],
|
|
540
|
-
|
|
539
|
+
var A = f[b], v = A.type, N = A.value, C = n[v];
|
|
540
|
+
C >= 0 && (g[C] = parseInt(N, 10));
|
|
541
541
|
}
|
|
542
542
|
var y = g[3], S = y === 24 ? 0 : y, k = g[0] + "-" + g[1] + "-" + g[2] + " " + S + ":" + g[4] + ":" + g[5] + ":000", L = +m;
|
|
543
543
|
return (i.utc(k).valueOf() - (L -= L % 1e3)) / 6e4;
|
|
544
544
|
}, u = o.prototype;
|
|
545
545
|
u.tz = function(m, w) {
|
|
546
546
|
m === void 0 && (m = l);
|
|
547
|
-
var f, g = this.utcOffset(), b = this.toDate(), A = b.toLocaleString("en-US", { timeZone: m }),
|
|
547
|
+
var f, g = this.utcOffset(), b = this.toDate(), A = b.toLocaleString("en-US", { timeZone: m }), v = Math.round((b - new Date(A)) / 1e3 / 60), N = 15 * -Math.round(b.getTimezoneOffset() / 15) - v;
|
|
548
548
|
if (!Number(N)) f = this.utcOffset(0, w);
|
|
549
549
|
else if (f = i(A, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(N, !0), w) {
|
|
550
|
-
var
|
|
551
|
-
f = f.add(g -
|
|
550
|
+
var C = f.utcOffset();
|
|
551
|
+
f = f.add(g - C, "minute");
|
|
552
552
|
}
|
|
553
553
|
return f.$x.$timezone = m, f;
|
|
554
554
|
}, u.offsetName = function(m) {
|
|
@@ -565,12 +565,12 @@ function Hr() {
|
|
|
565
565
|
}, i.tz = function(m, w, f) {
|
|
566
566
|
var g = f && w, b = f || w || l, A = d(+i(), b);
|
|
567
567
|
if (typeof m != "string") return i(m).tz(b);
|
|
568
|
-
var
|
|
568
|
+
var v = (function(S, k, L) {
|
|
569
569
|
var D = S - 60 * k * 1e3, j = d(D, L);
|
|
570
570
|
if (k === j) return [D, k];
|
|
571
571
|
var P = d(D -= 60 * (j - k) * 1e3, L);
|
|
572
572
|
return j === P ? [D, j] : [S - 60 * Math.min(j, P) * 1e3, Math.max(j, P)];
|
|
573
|
-
})(i.utc(m, g).valueOf(), A, b), N =
|
|
573
|
+
})(i.utc(m, g).valueOf(), A, b), N = v[0], C = v[1], y = i(N).utcOffset(C);
|
|
574
574
|
return y.$x.$timezone = b, y;
|
|
575
575
|
}, i.tz.guess = function() {
|
|
576
576
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -634,7 +634,7 @@ const Wr = { url: "", target: "_self", canonical: "", internal: "" }, Yr = {
|
|
|
634
634
|
function Kr(e) {
|
|
635
635
|
return e == null ? "" : typeof e == "string" ? e : e.article ?? e.home ?? e.section ?? e.seo ?? "";
|
|
636
636
|
}
|
|
637
|
-
const
|
|
637
|
+
const Ct = (e, t, n, a) => {
|
|
638
638
|
const r = Kr(e?.main?.title), o = e?.main?.description ?? "";
|
|
639
639
|
return {
|
|
640
640
|
authors: e?.main?.author ? [
|
|
@@ -693,8 +693,8 @@ function On(e) {
|
|
|
693
693
|
for (; l < t.length && i > 0; ) {
|
|
694
694
|
const w = t.slice(l), f = w.match(/<div\b/i), g = w.match(/<\/div>/i), b = f?.index ?? -1, A = g?.index ?? -1;
|
|
695
695
|
if (A === -1) break;
|
|
696
|
-
const
|
|
697
|
-
b !== -1 && b < A ? (i += 1, l =
|
|
696
|
+
const v = b === -1 ? 1 / 0 : l + b, N = l + A;
|
|
697
|
+
b !== -1 && b < A ? (i += 1, l = v + f[0].length) : (i -= 1, c = N, l = N + g[0].length);
|
|
698
698
|
}
|
|
699
699
|
const d = t.slice(o, c), u = [], h = /<span\b[^>]*\bdata-src=["']([^"']+)["']/gi;
|
|
700
700
|
let m;
|
|
@@ -772,7 +772,7 @@ const Xr = (e) => {
|
|
|
772
772
|
if (!e?.preview?.length) return null;
|
|
773
773
|
const t = e.preview;
|
|
774
774
|
return t.find((n) => n.format === "1.91:1") ?? t[t.length - 1];
|
|
775
|
-
},
|
|
775
|
+
}, vs = ({
|
|
776
776
|
schemaImage: e,
|
|
777
777
|
socialImage: t,
|
|
778
778
|
fallbackImage: n,
|
|
@@ -796,7 +796,7 @@ const Xr = (e) => {
|
|
|
796
796
|
PUBLIC_ASSETS_URL: r,
|
|
797
797
|
PUBLIC_API_FRONT: o,
|
|
798
798
|
DATE_TIMEZONE: i = "America/Mexico_City"
|
|
799
|
-
} = R(), l = Aa(t.keywords) ?? "", c = t?.preview?.sizes ? t?.preview?.sizes[0]?.url : "", d = (r !== "false" ? r : o) ?? "", u = Xr(a), h = t.main.title.article, m =
|
|
799
|
+
} = R(), l = Aa(t.keywords) ?? "", c = t?.preview?.sizes ? t?.preview?.sizes[0]?.url : "", d = (r !== "false" ? r : o) ?? "", u = Xr(a), h = t.main.title.article, m = vs({
|
|
800
800
|
schemaImage: u,
|
|
801
801
|
socialImage: t?.social?.images?.facebook,
|
|
802
802
|
fallbackImage: c,
|
|
@@ -804,7 +804,7 @@ const Xr = (e) => {
|
|
|
804
804
|
defaultWidth: n.landscapeLogo.width,
|
|
805
805
|
defaultHeight: n.landscapeLogo.height,
|
|
806
806
|
alt: a?.description ?? h
|
|
807
|
-
}), w =
|
|
807
|
+
}), w = vs({
|
|
808
808
|
schemaImage: u,
|
|
809
809
|
socialImage: t?.social?.images?.twitter,
|
|
810
810
|
fallbackImage: c,
|
|
@@ -1085,9 +1085,9 @@ async function lo({
|
|
|
1085
1085
|
), c = await Promise.allSettled(l), d = c.map((f) => f.status === "fulfilled" && f.value?.data?.data ? f.value.data.data : []), u = d.flat(), m = (d[d.length - 1] ?? []).length === o, w = c[0]?.status === "fulfilled" ? c[0].value : void 0;
|
|
1086
1086
|
return { data: u, hasNextPage: m, firstBatchResponse: w };
|
|
1087
1087
|
}
|
|
1088
|
-
const $e = [], We = [],
|
|
1088
|
+
const $e = [], We = [], Cs = () => !!R().DEBUG_ENABLED, Ce = {
|
|
1089
1089
|
add(e) {
|
|
1090
|
-
|
|
1090
|
+
Cs() && ($e.push({
|
|
1091
1091
|
id: `${Date.now()}-${$e.length}`,
|
|
1092
1092
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1093
1093
|
...e
|
|
@@ -1103,7 +1103,7 @@ const $e = [], We = [], vs = () => !!R().DEBUG_ENABLED, Ie = {
|
|
|
1103
1103
|
$e.length = 0;
|
|
1104
1104
|
},
|
|
1105
1105
|
addSuccess(e) {
|
|
1106
|
-
|
|
1106
|
+
Cs() && (We.push({
|
|
1107
1107
|
id: `${Date.now()}-s-${We.length}`,
|
|
1108
1108
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1109
1109
|
...e
|
|
@@ -1163,7 +1163,7 @@ const $e = [], We = [], vs = () => !!R().DEBUG_ENABLED, Ie = {
|
|
|
1163
1163
|
}, mo = (e) => {
|
|
1164
1164
|
const t = /<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/gi;
|
|
1165
1165
|
return [...e.matchAll(t)];
|
|
1166
|
-
},
|
|
1166
|
+
}, va = (e) => {
|
|
1167
1167
|
const t = e.banners.find(
|
|
1168
1168
|
(r) => r.key === e.name
|
|
1169
1169
|
);
|
|
@@ -1401,7 +1401,7 @@ function Bm(e) {
|
|
|
1401
1401
|
}
|
|
1402
1402
|
return t;
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function Ca(e) {
|
|
1405
1405
|
const t = {};
|
|
1406
1406
|
for (const [n, a] of Object.entries(e)) {
|
|
1407
1407
|
const r = atob(n.split("").reverse().join(""));
|
|
@@ -1513,7 +1513,7 @@ const Mm = async (e, t, n) => {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
)
|
|
1515
1515
|
] });
|
|
1516
|
-
},
|
|
1516
|
+
}, vo = () => {
|
|
1517
1517
|
const { ANALYTICS_gtm: e } = R();
|
|
1518
1518
|
return e && /* @__PURE__ */ p($, { children: [
|
|
1519
1519
|
/* @__PURE__ */ s(
|
|
@@ -1541,7 +1541,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
1541
1541
|
}
|
|
1542
1542
|
) })
|
|
1543
1543
|
] });
|
|
1544
|
-
},
|
|
1544
|
+
}, Co = () => {
|
|
1545
1545
|
const { ANALYTICS_marfeel: e } = R();
|
|
1546
1546
|
return e && /* @__PURE__ */ s(
|
|
1547
1547
|
"script",
|
|
@@ -2110,25 +2110,25 @@ const Oo = (e) => Array.isArray(e) ? e.length > 0 : e && typeof e == "object" ?
|
|
|
2110
2110
|
if (e.search("/page/") === -1) return e.replace("/", "");
|
|
2111
2111
|
const t = e.split("/"), n = t.indexOf("page") - 1;
|
|
2112
2112
|
return n < 0 ? e : (t[n] ?? "").replace("/", "");
|
|
2113
|
-
},
|
|
2113
|
+
}, Ee = (e) => {
|
|
2114
2114
|
const n = e.replace(/^\/|\/$/g, "").split("/"), a = n.indexOf("page");
|
|
2115
2115
|
return a > 0 ? `${n[a - 1] ?? ""}` : `${n[n.length - 1] ?? ""}`;
|
|
2116
2116
|
}, Qo = {
|
|
2117
2117
|
404: () => "404",
|
|
2118
2118
|
home: () => "home",
|
|
2119
|
-
slug: (e) =>
|
|
2119
|
+
slug: (e) => Ee(e.pathname),
|
|
2120
2120
|
news: (e) => to(e.pathname)?.slug,
|
|
2121
|
-
seccion: (e) =>
|
|
2122
|
-
tema: (e) =>
|
|
2123
|
-
pages: (e) =>
|
|
2124
|
-
auth: (e) =>
|
|
2125
|
-
buscar: (e) =>
|
|
2126
|
-
"ultimas-noticias": (e) =>
|
|
2127
|
-
anuncia: (e) =>
|
|
2128
|
-
contacto: (e) =>
|
|
2129
|
-
autor: (e) =>
|
|
2130
|
-
video: (e) =>
|
|
2131
|
-
videos: (e) =>
|
|
2121
|
+
seccion: (e) => Ee(e.pathname),
|
|
2122
|
+
tema: (e) => Ee(e.pathname),
|
|
2123
|
+
pages: (e) => Ee(e.pathname),
|
|
2124
|
+
auth: (e) => Ee(e.pathname),
|
|
2125
|
+
buscar: (e) => Ee(e.pathname),
|
|
2126
|
+
"ultimas-noticias": (e) => Ee(e.pathname),
|
|
2127
|
+
anuncia: (e) => Ee(e.pathname),
|
|
2128
|
+
contacto: (e) => Ee(e.pathname),
|
|
2129
|
+
autor: (e) => Ee(e.pathname),
|
|
2130
|
+
video: (e) => Ee(e.pathname),
|
|
2131
|
+
videos: (e) => Ee(e.pathname)
|
|
2132
2132
|
}, ft = (e) => {
|
|
2133
2133
|
const t = e.split("/"), n = t[t.length - 1] ?? "1";
|
|
2134
2134
|
return Number(n) > 0 ? Number(n) : 1;
|
|
@@ -2346,16 +2346,16 @@ function Sa(e, t) {
|
|
|
2346
2346
|
const { toString: Wo } = Object.prototype, { getPrototypeOf: Wn } = Object, { iterator: sn, toStringTag: Ea } = Symbol, an = /* @__PURE__ */ ((e) => (t) => {
|
|
2347
2347
|
const n = Wo.call(t);
|
|
2348
2348
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
2349
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
2349
|
+
})(/* @__PURE__ */ Object.create(null)), Ie = (e) => (e = e.toLowerCase(), (t) => an(t) === e), rn = (e) => (t) => typeof t === e, { isArray: mt } = Array, lt = rn("undefined");
|
|
2350
2350
|
function St(e) {
|
|
2351
|
-
return e !== null && !lt(e) && e.constructor !== null && !lt(e.constructor) &&
|
|
2351
|
+
return e !== null && !lt(e) && e.constructor !== null && !lt(e.constructor) && Ne(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
2352
2352
|
}
|
|
2353
|
-
const Ta =
|
|
2353
|
+
const Ta = Ie("ArrayBuffer");
|
|
2354
2354
|
function Yo(e) {
|
|
2355
2355
|
let t;
|
|
2356
2356
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ta(e.buffer), t;
|
|
2357
2357
|
}
|
|
2358
|
-
const Ko = rn("string"),
|
|
2358
|
+
const Ko = rn("string"), Ne = rn("function"), ka = rn("number"), Et = (e) => e !== null && typeof e == "object", Jo = (e) => e === !0 || e === !1, zt = (e) => {
|
|
2359
2359
|
if (an(e) !== "object")
|
|
2360
2360
|
return !1;
|
|
2361
2361
|
const t = Wn(e);
|
|
@@ -2368,11 +2368,11 @@ const Ko = rn("string"), ve = rn("function"), ka = rn("number"), Et = (e) => e !
|
|
|
2368
2368
|
} catch {
|
|
2369
2369
|
return !1;
|
|
2370
2370
|
}
|
|
2371
|
-
}, Xo =
|
|
2371
|
+
}, Xo = Ie("Date"), ei = Ie("File"), ti = Ie("Blob"), ni = Ie("FileList"), si = (e) => Et(e) && Ne(e.pipe), ai = (e) => {
|
|
2372
2372
|
let t;
|
|
2373
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
2374
|
-
t === "object" &&
|
|
2375
|
-
}, ri =
|
|
2373
|
+
return e && (typeof FormData == "function" && e instanceof FormData || Ne(e.append) && ((t = an(e)) === "formdata" || // detect form-data instance
|
|
2374
|
+
t === "object" && Ne(e.toString) && e.toString() === "[object FormData]"));
|
|
2375
|
+
}, ri = Ie("URLSearchParams"), [oi, ii, li, ci] = ["ReadableStream", "Request", "Response", "Headers"].map(Ie), di = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
2376
2376
|
function Tt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
2377
2377
|
if (e === null || typeof e > "u")
|
|
2378
2378
|
return;
|
|
@@ -2411,7 +2411,7 @@ function Bn() {
|
|
|
2411
2411
|
return n;
|
|
2412
2412
|
}
|
|
2413
2413
|
const ui = (e, t, n, { allOwnKeys: a } = {}) => (Tt(t, (r, o) => {
|
|
2414
|
-
n &&
|
|
2414
|
+
n && Ne(r) ? e[o] = Sa(r, n) : e[o] = r;
|
|
2415
2415
|
}, { allOwnKeys: a }), e), mi = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), hi = (e, t, n, a) => {
|
|
2416
2416
|
e.prototype = Object.create(t.prototype, a), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
2417
2417
|
value: t.prototype
|
|
@@ -2452,12 +2452,12 @@ const ui = (e, t, n, { allOwnKeys: a } = {}) => (Tt(t, (r, o) => {
|
|
|
2452
2452
|
for (; (n = e.exec(t)) !== null; )
|
|
2453
2453
|
a.push(n);
|
|
2454
2454
|
return a;
|
|
2455
|
-
}, yi =
|
|
2455
|
+
}, yi = Ie("HTMLFormElement"), vi = (e) => e.toLowerCase().replace(
|
|
2456
2456
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
2457
2457
|
function(n, a, r) {
|
|
2458
2458
|
return a.toUpperCase() + r;
|
|
2459
2459
|
}
|
|
2460
|
-
), Ss = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
|
|
2460
|
+
), Ss = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ci = Ie("RegExp"), La = (e, t) => {
|
|
2461
2461
|
const n = Object.getOwnPropertyDescriptors(e), a = {};
|
|
2462
2462
|
Tt(n, (r, o) => {
|
|
2463
2463
|
let i;
|
|
@@ -2465,10 +2465,10 @@ const ui = (e, t, n, { allOwnKeys: a } = {}) => (Tt(t, (r, o) => {
|
|
|
2465
2465
|
}), Object.defineProperties(e, a);
|
|
2466
2466
|
}, Ni = (e) => {
|
|
2467
2467
|
La(e, (t, n) => {
|
|
2468
|
-
if (
|
|
2468
|
+
if (Ne(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
2469
2469
|
return !1;
|
|
2470
2470
|
const a = e[n];
|
|
2471
|
-
if (
|
|
2471
|
+
if (Ne(a)) {
|
|
2472
2472
|
if (t.enumerable = !1, "writable" in t) {
|
|
2473
2473
|
t.writable = !1;
|
|
2474
2474
|
return;
|
|
@@ -2488,7 +2488,7 @@ const ui = (e, t, n, { allOwnKeys: a } = {}) => (Tt(t, (r, o) => {
|
|
|
2488
2488
|
}, Si = () => {
|
|
2489
2489
|
}, Ei = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
2490
2490
|
function Ti(e) {
|
|
2491
|
-
return !!(e &&
|
|
2491
|
+
return !!(e && Ne(e.append) && e[Ea] === "FormData" && e[sn]);
|
|
2492
2492
|
}
|
|
2493
2493
|
const ki = (e) => {
|
|
2494
2494
|
const t = new Array(10), n = (a, r) => {
|
|
@@ -2509,14 +2509,14 @@ const ki = (e) => {
|
|
|
2509
2509
|
return a;
|
|
2510
2510
|
};
|
|
2511
2511
|
return n(e, 0);
|
|
2512
|
-
}, Ii =
|
|
2512
|
+
}, Ii = Ie("AsyncFunction"), Ui = (e) => e && (Et(e) || Ne(e)) && Ne(e.then) && Ne(e.catch), Ra = ((e, t) => e ? setImmediate : t ? ((n, a) => (Ye.addEventListener("message", ({ source: r, data: o }) => {
|
|
2513
2513
|
r === Ye && o === n && a.length && a.shift()();
|
|
2514
2514
|
}, !1), (r) => {
|
|
2515
2515
|
a.push(r), Ye.postMessage(n, "*");
|
|
2516
2516
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
2517
2517
|
typeof setImmediate == "function",
|
|
2518
|
-
|
|
2519
|
-
), Li = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ye) : typeof process < "u" && process.nextTick || Ra, Ri = (e) => e != null &&
|
|
2518
|
+
Ne(Ye.postMessage)
|
|
2519
|
+
), Li = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ye) : typeof process < "u" && process.nextTick || Ra, Ri = (e) => e != null && Ne(e[sn]), E = {
|
|
2520
2520
|
isArray: mt,
|
|
2521
2521
|
isArrayBuffer: Ta,
|
|
2522
2522
|
isBuffer: St,
|
|
@@ -2536,8 +2536,8 @@ const ki = (e) => {
|
|
|
2536
2536
|
isDate: Xo,
|
|
2537
2537
|
isFile: ei,
|
|
2538
2538
|
isBlob: ti,
|
|
2539
|
-
isRegExp:
|
|
2540
|
-
isFunction:
|
|
2539
|
+
isRegExp: Ci,
|
|
2540
|
+
isFunction: Ne,
|
|
2541
2541
|
isStream: si,
|
|
2542
2542
|
isURLSearchParams: ri,
|
|
2543
2543
|
isTypedArray: wi,
|
|
@@ -2550,7 +2550,7 @@ const ki = (e) => {
|
|
|
2550
2550
|
inherits: hi,
|
|
2551
2551
|
toFlatObject: fi,
|
|
2552
2552
|
kindOf: an,
|
|
2553
|
-
kindOfTest:
|
|
2553
|
+
kindOfTest: Ie,
|
|
2554
2554
|
endsWith: pi,
|
|
2555
2555
|
toArray: gi,
|
|
2556
2556
|
forEachEntry: bi,
|
|
@@ -2562,7 +2562,7 @@ const ki = (e) => {
|
|
|
2562
2562
|
reduceDescriptors: La,
|
|
2563
2563
|
freezeMethods: Ni,
|
|
2564
2564
|
toObjectSet: xi,
|
|
2565
|
-
toCamelCase:
|
|
2565
|
+
toCamelCase: vi,
|
|
2566
2566
|
noop: Si,
|
|
2567
2567
|
toFiniteNumber: Ei,
|
|
2568
2568
|
findKey: Ia,
|
|
@@ -2675,10 +2675,10 @@ function on(e, t, n) {
|
|
|
2675
2675
|
if (E.endsWith(g, "{}"))
|
|
2676
2676
|
g = a ? g : g.slice(0, -2), f = JSON.stringify(f);
|
|
2677
2677
|
else if (E.isArray(f) && Oi(f) || (E.isFileList(f) || E.endsWith(g, "[]")) && (A = E.toArray(f)))
|
|
2678
|
-
return g = Ba(g), A.forEach(function(N,
|
|
2678
|
+
return g = Ba(g), A.forEach(function(N, C) {
|
|
2679
2679
|
!(E.isUndefined(N) || N === null) && t.append(
|
|
2680
2680
|
// eslint-disable-next-line no-nested-ternary
|
|
2681
|
-
i === !0 ? Es([g],
|
|
2681
|
+
i === !0 ? Es([g], C, o) : i === null ? g : g + "[]",
|
|
2682
2682
|
d(N)
|
|
2683
2683
|
);
|
|
2684
2684
|
}), !1;
|
|
@@ -2694,14 +2694,14 @@ function on(e, t, n) {
|
|
|
2694
2694
|
if (!E.isUndefined(f)) {
|
|
2695
2695
|
if (h.indexOf(f) !== -1)
|
|
2696
2696
|
throw Error("Circular reference detected in " + g.join("."));
|
|
2697
|
-
h.push(f), E.forEach(f, function(A,
|
|
2697
|
+
h.push(f), E.forEach(f, function(A, v) {
|
|
2698
2698
|
(!(E.isUndefined(A) || A === null) && r.call(
|
|
2699
2699
|
t,
|
|
2700
2700
|
A,
|
|
2701
|
-
E.isString(
|
|
2701
|
+
E.isString(v) ? v.trim() : v,
|
|
2702
2702
|
g,
|
|
2703
2703
|
m
|
|
2704
|
-
)) === !0 && w(A, g ? g.concat(
|
|
2704
|
+
)) === !0 && w(A, g ? g.concat(v) : [v]);
|
|
2705
2705
|
}), h.pop();
|
|
2706
2706
|
}
|
|
2707
2707
|
}
|
|
@@ -3012,7 +3012,7 @@ function el(e, t) {
|
|
|
3012
3012
|
});
|
|
3013
3013
|
});
|
|
3014
3014
|
}
|
|
3015
|
-
let
|
|
3015
|
+
let xe = class {
|
|
3016
3016
|
constructor(t) {
|
|
3017
3017
|
t && this.set(t);
|
|
3018
3018
|
}
|
|
@@ -3138,8 +3138,8 @@ let Ne = class {
|
|
|
3138
3138
|
return E.isArray(t) ? t.forEach(o) : o(t), this;
|
|
3139
3139
|
}
|
|
3140
3140
|
};
|
|
3141
|
-
|
|
3142
|
-
E.reduceDescriptors(
|
|
3141
|
+
xe.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
3142
|
+
E.reduceDescriptors(xe.prototype, ({ value: e }, t) => {
|
|
3143
3143
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
3144
3144
|
return {
|
|
3145
3145
|
get: () => e,
|
|
@@ -3148,9 +3148,9 @@ E.reduceDescriptors(Ne.prototype, ({ value: e }, t) => {
|
|
|
3148
3148
|
}
|
|
3149
3149
|
};
|
|
3150
3150
|
});
|
|
3151
|
-
E.freezeMethods(
|
|
3151
|
+
E.freezeMethods(xe);
|
|
3152
3152
|
function yn(e, t) {
|
|
3153
|
-
const n = this || kt, a = t || n, r =
|
|
3153
|
+
const n = this || kt, a = t || n, r = xe.from(a.headers);
|
|
3154
3154
|
let o = a.data;
|
|
3155
3155
|
return E.forEach(e, function(l) {
|
|
3156
3156
|
o = l.call(n, o, r.normalize(), t ? t.status : void 0);
|
|
@@ -3275,7 +3275,7 @@ function Fa(e, t, n) {
|
|
|
3275
3275
|
let a = !ol(t);
|
|
3276
3276
|
return e && (a || n == !1) ? il(e, t) : t;
|
|
3277
3277
|
}
|
|
3278
|
-
const Rs = (e) => e instanceof
|
|
3278
|
+
const Rs = (e) => e instanceof xe ? { ...e } : e;
|
|
3279
3279
|
function tt(e, t) {
|
|
3280
3280
|
t = t || {};
|
|
3281
3281
|
const n = {};
|
|
@@ -3343,7 +3343,7 @@ function tt(e, t) {
|
|
|
3343
3343
|
const Ha = (e) => {
|
|
3344
3344
|
const t = tt({}, e);
|
|
3345
3345
|
let { data: n, withXSRFToken: a, xsrfHeaderName: r, xsrfCookieName: o, headers: i, auth: l } = t;
|
|
3346
|
-
if (t.headers = i =
|
|
3346
|
+
if (t.headers = i = xe.from(i), t.url = _a(Fa(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), l && i.set(
|
|
3347
3347
|
"Authorization",
|
|
3348
3348
|
"Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))
|
|
3349
3349
|
), E.isFormData(n)) {
|
|
@@ -3365,7 +3365,7 @@ const Ha = (e) => {
|
|
|
3365
3365
|
return new Promise(function(n, a) {
|
|
3366
3366
|
const r = Ha(e);
|
|
3367
3367
|
let o = r.data;
|
|
3368
|
-
const i =
|
|
3368
|
+
const i = xe.from(r.headers).normalize();
|
|
3369
3369
|
let { responseType: l, onUploadProgress: c, onDownloadProgress: d } = r, u, h, m, w, f;
|
|
3370
3370
|
function g() {
|
|
3371
3371
|
w && w(), f && f(), r.cancelToken && r.cancelToken.unsubscribe(u), r.signal && r.signal.removeEventListener("abort", u);
|
|
@@ -3375,7 +3375,7 @@ const Ha = (e) => {
|
|
|
3375
3375
|
function A() {
|
|
3376
3376
|
if (!b)
|
|
3377
3377
|
return;
|
|
3378
|
-
const N =
|
|
3378
|
+
const N = xe.from(
|
|
3379
3379
|
"getAllResponseHeaders" in b && b.getAllResponseHeaders()
|
|
3380
3380
|
), y = {
|
|
3381
3381
|
data: !l || l === "text" || l === "json" ? b.responseText : b.response,
|
|
@@ -3395,26 +3395,26 @@ const Ha = (e) => {
|
|
|
3395
3395
|
!b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(A);
|
|
3396
3396
|
}, b.onabort = function() {
|
|
3397
3397
|
b && (a(new te("Request aborted", te.ECONNABORTED, e, b)), b = null);
|
|
3398
|
-
}, b.onerror = function(
|
|
3399
|
-
const y =
|
|
3400
|
-
S.event =
|
|
3398
|
+
}, b.onerror = function(C) {
|
|
3399
|
+
const y = C && C.message ? C.message : "Network Error", S = new te(y, te.ERR_NETWORK, e, b);
|
|
3400
|
+
S.event = C || null, a(S), b = null;
|
|
3401
3401
|
}, b.ontimeout = function() {
|
|
3402
|
-
let
|
|
3402
|
+
let C = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
3403
3403
|
const y = r.transitional || qa;
|
|
3404
|
-
r.timeoutErrorMessage && (
|
|
3405
|
-
|
|
3404
|
+
r.timeoutErrorMessage && (C = r.timeoutErrorMessage), a(new te(
|
|
3405
|
+
C,
|
|
3406
3406
|
y.clarifyTimeoutError ? te.ETIMEDOUT : te.ECONNABORTED,
|
|
3407
3407
|
e,
|
|
3408
3408
|
b
|
|
3409
3409
|
)), b = null;
|
|
3410
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in b && E.forEach(i.toJSON(), function(
|
|
3411
|
-
b.setRequestHeader(y,
|
|
3410
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in b && E.forEach(i.toJSON(), function(C, y) {
|
|
3411
|
+
b.setRequestHeader(y, C);
|
|
3412
3412
|
}), E.isUndefined(r.withCredentials) || (b.withCredentials = !!r.withCredentials), l && l !== "json" && (b.responseType = r.responseType), d && ([m, f] = Kt(d, !0), b.addEventListener("progress", m)), c && b.upload && ([h, w] = Kt(c), b.upload.addEventListener("progress", h), b.upload.addEventListener("loadend", w)), (r.cancelToken || r.signal) && (u = (N) => {
|
|
3413
3413
|
b && (a(!N || N.type ? new ht(null, e, b) : N), b.abort(), b = null);
|
|
3414
3414
|
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
3415
|
-
const
|
|
3416
|
-
if (
|
|
3417
|
-
a(new te("Unsupported protocol " +
|
|
3415
|
+
const v = tl(r.url);
|
|
3416
|
+
if (v && we.protocols.indexOf(v) === -1) {
|
|
3417
|
+
a(new te("Unsupported protocol " + v + ":", te.ERR_BAD_REQUEST, e));
|
|
3418
3418
|
return;
|
|
3419
3419
|
}
|
|
3420
3420
|
b.send(o || null);
|
|
@@ -3562,9 +3562,9 @@ const Ha = (e) => {
|
|
|
3562
3562
|
url: g,
|
|
3563
3563
|
method: b,
|
|
3564
3564
|
data: A,
|
|
3565
|
-
signal:
|
|
3565
|
+
signal: v,
|
|
3566
3566
|
cancelToken: N,
|
|
3567
|
-
timeout:
|
|
3567
|
+
timeout: C,
|
|
3568
3568
|
onDownloadProgress: y,
|
|
3569
3569
|
onUploadProgress: S,
|
|
3570
3570
|
responseType: k,
|
|
@@ -3573,7 +3573,7 @@ const Ha = (e) => {
|
|
|
3573
3573
|
fetchOptions: j
|
|
3574
3574
|
} = Ha(f), P = t || fetch;
|
|
3575
3575
|
k = k ? (k + "").toLowerCase() : "text";
|
|
3576
|
-
let H = dl([
|
|
3576
|
+
let H = dl([v, N && N.toAbortSignal()], C), Q = null;
|
|
3577
3577
|
const O = H && H.unsubscribe && (() => {
|
|
3578
3578
|
H.unsubscribe();
|
|
3579
3579
|
});
|
|
@@ -3627,7 +3627,7 @@ const Ha = (e) => {
|
|
|
3627
3627
|
return !Y && O && O(), await new Promise((T, _) => {
|
|
3628
3628
|
Ga(T, _, {
|
|
3629
3629
|
data: x,
|
|
3630
|
-
headers:
|
|
3630
|
+
headers: xe.from(B.headers),
|
|
3631
3631
|
status: B.status,
|
|
3632
3632
|
statusText: B.statusText,
|
|
3633
3633
|
config: f,
|
|
@@ -3713,26 +3713,26 @@ const za = {
|
|
|
3713
3713
|
*/
|
|
3714
3714
|
adapters: Jn
|
|
3715
3715
|
};
|
|
3716
|
-
function
|
|
3716
|
+
function vn(e) {
|
|
3717
3717
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
3718
3718
|
throw new ht(null, e);
|
|
3719
3719
|
}
|
|
3720
3720
|
function Ds(e) {
|
|
3721
|
-
return
|
|
3721
|
+
return vn(e), e.headers = xe.from(e.headers), e.data = yn.call(
|
|
3722
3722
|
e,
|
|
3723
3723
|
e.transformRequest
|
|
3724
3724
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), za.getAdapter(e.adapter || kt.adapter, e)(e).then(function(a) {
|
|
3725
|
-
return
|
|
3725
|
+
return vn(e), a.data = yn.call(
|
|
3726
3726
|
e,
|
|
3727
3727
|
e.transformResponse,
|
|
3728
3728
|
a
|
|
3729
|
-
), a.headers =
|
|
3729
|
+
), a.headers = xe.from(a.headers), a;
|
|
3730
3730
|
}, function(a) {
|
|
3731
|
-
return ja(a) || (
|
|
3731
|
+
return ja(a) || (vn(e), a && a.response && (a.response.data = yn.call(
|
|
3732
3732
|
e,
|
|
3733
3733
|
e.transformResponse,
|
|
3734
3734
|
a.response
|
|
3735
|
-
), a.response.headers =
|
|
3735
|
+
), a.response.headers = xe.from(a.response.headers))), Promise.reject(a);
|
|
3736
3736
|
});
|
|
3737
3737
|
}
|
|
3738
3738
|
const Qa = "1.13.2", ln = {};
|
|
@@ -3841,7 +3841,7 @@ let Je = class {
|
|
|
3841
3841
|
(f) => {
|
|
3842
3842
|
delete o[f];
|
|
3843
3843
|
}
|
|
3844
|
-
), n.headers =
|
|
3844
|
+
), n.headers = xe.concat(i, o);
|
|
3845
3845
|
const l = [];
|
|
3846
3846
|
let c = !0;
|
|
3847
3847
|
this.interceptors.request.forEach(function(g) {
|
|
@@ -3981,12 +3981,12 @@ let yl = class $a {
|
|
|
3981
3981
|
};
|
|
3982
3982
|
}
|
|
3983
3983
|
};
|
|
3984
|
-
function
|
|
3984
|
+
function vl(e) {
|
|
3985
3985
|
return function(n) {
|
|
3986
3986
|
return e.apply(null, n);
|
|
3987
3987
|
};
|
|
3988
3988
|
}
|
|
3989
|
-
function
|
|
3989
|
+
function Cl(e) {
|
|
3990
3990
|
return E.isObject(e) && e.isAxiosError === !0;
|
|
3991
3991
|
}
|
|
3992
3992
|
const qn = {
|
|
@@ -4081,10 +4081,10 @@ re.Cancel = re.CanceledError;
|
|
|
4081
4081
|
re.all = function(t) {
|
|
4082
4082
|
return Promise.all(t);
|
|
4083
4083
|
};
|
|
4084
|
-
re.spread =
|
|
4085
|
-
re.isAxiosError =
|
|
4084
|
+
re.spread = vl;
|
|
4085
|
+
re.isAxiosError = Cl;
|
|
4086
4086
|
re.mergeConfig = tt;
|
|
4087
|
-
re.AxiosHeaders =
|
|
4087
|
+
re.AxiosHeaders = xe;
|
|
4088
4088
|
re.formToJSON = (e) => Da(E.isHTMLForm(e) ? new FormData(e) : e);
|
|
4089
4089
|
re.getAdapter = za.getAdapter;
|
|
4090
4090
|
re.HttpStatusCode = qn;
|
|
@@ -4106,7 +4106,7 @@ const {
|
|
|
4106
4106
|
formToJSON: th,
|
|
4107
4107
|
getAdapter: nh,
|
|
4108
4108
|
mergeConfig: sh
|
|
4109
|
-
} = re,
|
|
4109
|
+
} = re, Cn = "https://goamg.amplifyapp.com/vndomv", Nl = {
|
|
4110
4110
|
menu: "menu-principal"
|
|
4111
4111
|
};
|
|
4112
4112
|
function xl(e) {
|
|
@@ -4144,21 +4144,38 @@ class He {
|
|
|
4144
4144
|
};
|
|
4145
4145
|
getEntitySection = (t) => this.props?.axiosApi.get("/entity-section", { params: t }).catch((n) => (console.log(`[/entity-section] Error: ${n.message}`), Promise.reject(n)));
|
|
4146
4146
|
getMainMenu = (t) => {
|
|
4147
|
-
const n = R().BUCKET_ORIGIN
|
|
4147
|
+
const n = R().BUCKET_ORIGIN, a = { data: { data: [] } }, r = () => this.props?.axiosApi.get("/config/menu", { params: t }).catch((o) => (console.log(`[/config/menu] Error: ${o.message}`), Ce.add({
|
|
4148
|
+
service: "CommonServices.getMainMenu",
|
|
4149
|
+
endpoint: "/config/menu",
|
|
4150
|
+
method: "GET",
|
|
4151
|
+
params: t,
|
|
4152
|
+
message: o.message,
|
|
4153
|
+
status: o.response?.status,
|
|
4154
|
+
layer: "axios-service"
|
|
4155
|
+
}), a));
|
|
4148
4156
|
if (n?.menu) {
|
|
4149
|
-
const
|
|
4157
|
+
const o = Gs(
|
|
4150
4158
|
n,
|
|
4151
4159
|
this.props?.config?.servicePrefix,
|
|
4152
4160
|
"menu",
|
|
4153
4161
|
xl(t.path)
|
|
4154
4162
|
);
|
|
4155
|
-
return console.log(`[bucket:menu] GET ${
|
|
4156
|
-
headers: { Referer: n.referer ??
|
|
4157
|
-
}).catch((
|
|
4158
|
-
|
|
4159
|
-
|
|
4163
|
+
return console.log(`[bucket:menu] GET ${o}`), re.get(o, {
|
|
4164
|
+
headers: { Referer: n.referer ?? Cn }
|
|
4165
|
+
}).catch((i) => {
|
|
4166
|
+
const l = i.response?.status === 404;
|
|
4167
|
+
return console.log(l ? `[bucket:menu] 404 Not Found, aún no existe en el bucket (${o})` : `[bucket:menu] Error: ${i.response?.status ?? "network"} ${i.message} (${o})`), Ce.add({
|
|
4168
|
+
service: "bucket:menu",
|
|
4169
|
+
endpoint: o,
|
|
4170
|
+
method: "GET",
|
|
4171
|
+
params: t,
|
|
4172
|
+
message: l ? "No existe aún en el bucket" : i.message,
|
|
4173
|
+
status: i.response?.status,
|
|
4174
|
+
layer: "axios-service"
|
|
4175
|
+
}), r();
|
|
4176
|
+
});
|
|
4160
4177
|
}
|
|
4161
|
-
return
|
|
4178
|
+
return r();
|
|
4162
4179
|
};
|
|
4163
4180
|
getNewsListZone = (t) => this.props?.axiosApi.get("/news-list-zone", { params: t }).catch((n) => (console.log(`[/news-list-zone] Error: ${n.message}`), Promise.reject(n)));
|
|
4164
4181
|
getNewsListZoneSection = (t) => this.props?.axiosApi.get("/news-list-zone-section", { params: t }).catch((n) => (console.log(`[/news-list-zone-section] Error: ${n.message}`), Promise.reject(n)));
|
|
@@ -4176,31 +4193,50 @@ class He {
|
|
|
4176
4193
|
getVideos = (t) => this.props?.axiosApi.get("/videos", { params: t }).catch((n) => (console.log(`[/videos] Error: ${n.message}`), Promise.reject(n)));
|
|
4177
4194
|
getVideosList = (t) => this.props?.axiosApi.get("/videos-list", { params: t }).catch((n) => (console.log(`[/videos-list] Error: ${n.message}`), Promise.reject(n)));
|
|
4178
4195
|
getBanners = async (t) => {
|
|
4179
|
-
const n = R().BUCKET_ORIGIN
|
|
4196
|
+
const n = R().BUCKET_ORIGIN, a = { data: { data: [] } }, r = () => {
|
|
4197
|
+
const o = t.path ? t.path : `/${this.configVersion}/banners.html`;
|
|
4198
|
+
return this.props?.axiosApi.get("/config/banners", {
|
|
4199
|
+
params: {
|
|
4200
|
+
...t,
|
|
4201
|
+
path: this.props?.config?.servicePrefix + o
|
|
4202
|
+
}
|
|
4203
|
+
}).catch((i) => (console.log(`[/config/banners] Error: ${i.message}`), Ce.add({
|
|
4204
|
+
service: "CommonServices.getBanners",
|
|
4205
|
+
endpoint: "/config/banners",
|
|
4206
|
+
method: "GET",
|
|
4207
|
+
params: t,
|
|
4208
|
+
message: i.message,
|
|
4209
|
+
status: i.response?.status,
|
|
4210
|
+
layer: "axios-service"
|
|
4211
|
+
}), a));
|
|
4212
|
+
};
|
|
4180
4213
|
if (n?.banners) {
|
|
4181
|
-
const
|
|
4214
|
+
const o = Gs(
|
|
4182
4215
|
n,
|
|
4183
4216
|
this.props?.config?.servicePrefix,
|
|
4184
4217
|
"banners",
|
|
4185
4218
|
(t.template ?? "").toLowerCase()
|
|
4186
4219
|
);
|
|
4187
|
-
return console.log(`[bucket:banners] GET ${
|
|
4188
|
-
headers: { Referer: n.referer ??
|
|
4189
|
-
}).catch((
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4220
|
+
return console.log(`[bucket:banners] GET ${o}`), re.get(o, {
|
|
4221
|
+
headers: { Referer: n.referer ?? Cn }
|
|
4222
|
+
}).catch((i) => {
|
|
4223
|
+
const l = i.response?.status === 404;
|
|
4224
|
+
return console.log(l ? `[bucket:banners] 404 Not Found, aún no existe en el bucket (${o})` : `[bucket:banners] Error: ${i.response?.status ?? "network"} ${i.message} (${o})`), Ce.add({
|
|
4225
|
+
service: "bucket:banners",
|
|
4226
|
+
endpoint: o,
|
|
4227
|
+
method: "GET",
|
|
4228
|
+
params: t,
|
|
4229
|
+
message: l ? "No existe aún en el bucket" : i.message,
|
|
4230
|
+
status: i.response?.status,
|
|
4231
|
+
layer: "axios-service"
|
|
4232
|
+
}), r();
|
|
4233
|
+
});
|
|
4234
|
+
}
|
|
4235
|
+
return r();
|
|
4200
4236
|
};
|
|
4201
4237
|
getPages = (t) => this.props?.axiosApi.get("/config/pages", { params: t }).catch((n) => (console.log(`[/config/pages] Error: ${n.message}`), Promise.reject(n)));
|
|
4202
4238
|
getRankingS3 = async (t, n = {
|
|
4203
|
-
Referer:
|
|
4239
|
+
Referer: Cn
|
|
4204
4240
|
}) => !t || t === "" ? { data: [] } : await re.get(t, { headers: n }).catch((a) => {
|
|
4205
4241
|
console.log(`[Rankings s3] Error: ${a.message}`);
|
|
4206
4242
|
});
|
|
@@ -4266,15 +4302,15 @@ class He {
|
|
|
4266
4302
|
}))?.data.data ?? []);
|
|
4267
4303
|
const d = On(l), h = (ot(o)?.data ?? [])[0]?.list?.items?.map((A) => On(A)), m = [];
|
|
4268
4304
|
h?.forEach((A) => {
|
|
4269
|
-
A && A.length > 0 && A.forEach((
|
|
4270
|
-
|
|
4271
|
-
const
|
|
4305
|
+
A && A.length > 0 && A.forEach((v) => {
|
|
4306
|
+
v.forEach((N) => {
|
|
4307
|
+
const C = this.getNews({
|
|
4272
4308
|
path: N.replaceAll("|", "/"),
|
|
4273
4309
|
imagesizes: n.getNewsItemsRelated,
|
|
4274
4310
|
exclude: a.getNewsItemsRelated
|
|
4275
4311
|
});
|
|
4276
|
-
|
|
4277
|
-
|
|
4312
|
+
C && m.push(
|
|
4313
|
+
C
|
|
4278
4314
|
);
|
|
4279
4315
|
});
|
|
4280
4316
|
});
|
|
@@ -4565,7 +4601,7 @@ const rh = async (e, t, n, a, r, o, i) => {
|
|
|
4565
4601
|
};
|
|
4566
4602
|
const b = new He({ config: n, axiosApi: o });
|
|
4567
4603
|
try {
|
|
4568
|
-
let A,
|
|
4604
|
+
let A, v;
|
|
4569
4605
|
if (c) {
|
|
4570
4606
|
const S = await lo({
|
|
4571
4607
|
fetchFn: (k) => b.getNewsListSection(k),
|
|
@@ -4577,7 +4613,7 @@ const rh = async (e, t, n, a, r, o, i) => {
|
|
|
4577
4613
|
userPage: w,
|
|
4578
4614
|
newsListLimit: f
|
|
4579
4615
|
});
|
|
4580
|
-
A = S.data,
|
|
4616
|
+
A = S.data, v = S.hasNextPage;
|
|
4581
4617
|
} else {
|
|
4582
4618
|
const S = await b.getNewsListSection({
|
|
4583
4619
|
section: r,
|
|
@@ -4587,14 +4623,14 @@ const rh = async (e, t, n, a, r, o, i) => {
|
|
|
4587
4623
|
page: w
|
|
4588
4624
|
});
|
|
4589
4625
|
if (!S) return fe(t);
|
|
4590
|
-
A = S.data.data,
|
|
4626
|
+
A = S.data.data, v = !(A.length < f);
|
|
4591
4627
|
}
|
|
4592
4628
|
const N = A[0];
|
|
4593
|
-
|
|
4594
|
-
const
|
|
4629
|
+
v && m.push({ rel: "next", url: at(n, h, w) }), w > 1 && m.push({ rel: "prev", url: rt(n, h, w) });
|
|
4630
|
+
const C = g ? `Latest News from ${N.info.section?.name} | ${n.name}` : `Últimas Noticias de ${N.info.section?.name} | ${n.name}`, y = g ? `All the latest news from ${N.info.section?.name} on ${n.name}` : `Todas las últimas noticias de ${N.info.section?.name} en ${n.name}`;
|
|
4595
4631
|
return {
|
|
4596
4632
|
...t,
|
|
4597
|
-
title:
|
|
4633
|
+
title: C,
|
|
4598
4634
|
description: y,
|
|
4599
4635
|
alternates: {
|
|
4600
4636
|
...t.alternates,
|
|
@@ -4610,7 +4646,7 @@ const rh = async (e, t, n, a, r, o, i) => {
|
|
|
4610
4646
|
},
|
|
4611
4647
|
openGraph: {
|
|
4612
4648
|
...t.openGraph,
|
|
4613
|
-
title:
|
|
4649
|
+
title: C,
|
|
4614
4650
|
description: y,
|
|
4615
4651
|
type: "website",
|
|
4616
4652
|
url: pe(`${n.siteUrl}${a}`),
|
|
@@ -4619,7 +4655,7 @@ const rh = async (e, t, n, a, r, o, i) => {
|
|
|
4619
4655
|
twitter: {
|
|
4620
4656
|
...t.twitter,
|
|
4621
4657
|
card: "summary_large_image",
|
|
4622
|
-
title:
|
|
4658
|
+
title: C,
|
|
4623
4659
|
description: y,
|
|
4624
4660
|
site: t.twitter.site,
|
|
4625
4661
|
domain: new URL(n.siteUrl).hostname,
|
|
@@ -4642,8 +4678,8 @@ const rh = async (e, t, n, a, r, o, i) => {
|
|
|
4642
4678
|
page: u
|
|
4643
4679
|
});
|
|
4644
4680
|
if (!A) return fe(t);
|
|
4645
|
-
const
|
|
4646
|
-
if (!
|
|
4681
|
+
const v = A.data.entity;
|
|
4682
|
+
if (!v) return fe(t);
|
|
4647
4683
|
A.data.data?.length < h || d.push({
|
|
4648
4684
|
rel: "next",
|
|
4649
4685
|
url: at(n, c, u)
|
|
@@ -4651,11 +4687,11 @@ const rh = async (e, t, n, a, r, o, i) => {
|
|
|
4651
4687
|
rel: "prev",
|
|
4652
4688
|
url: rt(n, c, u)
|
|
4653
4689
|
});
|
|
4654
|
-
const N = b ? `Latest news about ${
|
|
4690
|
+
const N = b ? `Latest news about ${v.name} | ${n.name}` : `Últimas noticias de ${v.name} | ${n.name}`, C = b ? `The latest news about ${v.name} on ${n.name}` : `Las últimas noticias sobre ${v.name} en ${n.name}`;
|
|
4655
4691
|
return {
|
|
4656
4692
|
...t,
|
|
4657
4693
|
title: N,
|
|
4658
|
-
description:
|
|
4694
|
+
description: C,
|
|
4659
4695
|
alternates: {
|
|
4660
4696
|
...t.alternates,
|
|
4661
4697
|
canonical: pe(n.siteUrl + a)
|
|
@@ -4671,7 +4707,7 @@ const rh = async (e, t, n, a, r, o, i) => {
|
|
|
4671
4707
|
openGraph: {
|
|
4672
4708
|
...t.openGraph,
|
|
4673
4709
|
title: N,
|
|
4674
|
-
description:
|
|
4710
|
+
description: C,
|
|
4675
4711
|
type: "website",
|
|
4676
4712
|
url: pe(`${n.siteUrl}${a}`),
|
|
4677
4713
|
locale: t.openGraph.locale
|
|
@@ -4680,7 +4716,7 @@ const rh = async (e, t, n, a, r, o, i) => {
|
|
|
4680
4716
|
...t.twitter,
|
|
4681
4717
|
card: "summary_large_image",
|
|
4682
4718
|
title: N,
|
|
4683
|
-
description:
|
|
4719
|
+
description: C,
|
|
4684
4720
|
site: t.twitter.site,
|
|
4685
4721
|
domain: new URL(n.siteUrl).hostname,
|
|
4686
4722
|
url: pe(`${n.siteUrl}${a}`)
|
|
@@ -4892,16 +4928,16 @@ const rh = async (e, t, n, a, r, o, i) => {
|
|
|
4892
4928
|
rel: "prev",
|
|
4893
4929
|
url: rt(n, d, h)
|
|
4894
4930
|
});
|
|
4895
|
-
const b = f?.data.data[0]?.info.fullname, A = m ? `Latest News from ${b} | ${n.name}` : `Últimas Noticias de ${b} | ${n.name}`,
|
|
4931
|
+
const b = f?.data.data[0]?.info.fullname, A = m ? `Latest News from ${b} | ${n.name}` : `Últimas Noticias de ${b} | ${n.name}`, v = m ? `All the latest news from ${b} on ${n.name}` : `Todas las últimas noticias de ${b} en ${n.name}`;
|
|
4896
4932
|
return {
|
|
4897
4933
|
...t,
|
|
4898
4934
|
title: A,
|
|
4899
|
-
description:
|
|
4935
|
+
description: v,
|
|
4900
4936
|
...Le(
|
|
4901
4937
|
t,
|
|
4902
4938
|
n.siteUrl + a,
|
|
4903
4939
|
A,
|
|
4904
|
-
|
|
4940
|
+
v
|
|
4905
4941
|
),
|
|
4906
4942
|
manifest: n.manifest,
|
|
4907
4943
|
icons: {
|
|
@@ -4921,7 +4957,7 @@ const rh = async (e, t, n, a, r, o, i) => {
|
|
|
4921
4957
|
listAutor: t,
|
|
4922
4958
|
config: n
|
|
4923
4959
|
}) => {
|
|
4924
|
-
const a = t?.[0] ?? null, { DATE_TIMEZONE: r = "America/Mexico_City", PUBLIC_ASSETS_URL: o, PUBLIC_LNG: i } = R(), l = i === "en", c = r, d = a?.info?.date?.modified ? Xe(a.info.date.modified, c) : void 0, u = e.addtional?.USER_JOBSTART ? Xe(e.addtional.USER_JOBSTART, c) : void 0, h = o && o !== "false" ? o : "", m = e.addtional, w = m?.USER_USERFB || m?.USER_PAGE_FACEBOOK || m?.USER_FACEBOOK_FAN_PAGE, f = m?.USER_USERTWT || m?.USER_PAGE_TWITTER, g = m?.USER_USERIG || m?.USER_PAGE_INSTAGRAM, b = m?.USER_USERLIN || m?.USER_PAGE_LINKEDIN, A = m?.USER_PAGE_TIKTOK,
|
|
4960
|
+
const a = t?.[0] ?? null, { DATE_TIMEZONE: r = "America/Mexico_City", PUBLIC_ASSETS_URL: o, PUBLIC_LNG: i } = R(), l = i === "en", c = r, d = a?.info?.date?.modified ? Xe(a.info.date.modified, c) : void 0, u = e.addtional?.USER_JOBSTART ? Xe(e.addtional.USER_JOBSTART, c) : void 0, h = o && o !== "false" ? o : "", m = e.addtional, w = m?.USER_USERFB || m?.USER_PAGE_FACEBOOK || m?.USER_FACEBOOK_FAN_PAGE, f = m?.USER_USERTWT || m?.USER_PAGE_TWITTER, g = m?.USER_USERIG || m?.USER_PAGE_INSTAGRAM, b = m?.USER_USERLIN || m?.USER_PAGE_LINKEDIN, A = m?.USER_PAGE_TIKTOK, v = m?.USER_PAGE_YOUTUBE, N = m?.USER_PAGE_PINTEREST, C = l ? m?.USER_POSITION_EN || "" : m?.USER_JOBTITLE || m?.USER_POSITION || "", y = l ? m?.USER_DESCRIPCION_EN || m?.USER_MIBIO_EN || "" : m?.USER_DESCRIPCION || m?.USER_MIBIO || "", S = e?.addtional?.USER_SHOWEMAIL === !0 || m?.USER_MOSTRAR_MAIL?.toUpperCase() === "TRUE", k = me(), L = {
|
|
4925
4961
|
"@context": "https://schema.org",
|
|
4926
4962
|
"@type": "ProfilePage",
|
|
4927
4963
|
mainEntity: {
|
|
@@ -4937,10 +4973,10 @@ const rh = async (e, t, n, a, r, o, i) => {
|
|
|
4937
4973
|
b,
|
|
4938
4974
|
f,
|
|
4939
4975
|
A,
|
|
4940
|
-
|
|
4976
|
+
v,
|
|
4941
4977
|
N
|
|
4942
4978
|
].filter(Boolean),
|
|
4943
|
-
jobTitle:
|
|
4979
|
+
jobTitle: C,
|
|
4944
4980
|
url: n.siteUrl + k + (n.paths.autor !== "" ? `/${n.paths.autor}/` : "/") + e.info.name
|
|
4945
4981
|
}
|
|
4946
4982
|
};
|
|
@@ -5448,9 +5484,9 @@ async function ih({
|
|
|
5448
5484
|
meta_info: g,
|
|
5449
5485
|
config: b,
|
|
5450
5486
|
socials: A,
|
|
5451
|
-
speculationType:
|
|
5487
|
+
speculationType: v = "Common",
|
|
5452
5488
|
preloadImageUrl: N,
|
|
5453
|
-
custom_Speculation:
|
|
5489
|
+
custom_Speculation: C,
|
|
5454
5490
|
custom_metadata: y,
|
|
5455
5491
|
custom_scriptReplaces: S,
|
|
5456
5492
|
head_custom_elements: k,
|
|
@@ -5547,12 +5583,12 @@ async function ih({
|
|
|
5547
5583
|
}
|
|
5548
5584
|
),
|
|
5549
5585
|
D.schemas_WebsiteList && /* @__PURE__ */ s(_o, { config: b }),
|
|
5550
|
-
|
|
5586
|
+
v && /* @__PURE__ */ s(
|
|
5551
5587
|
ko,
|
|
5552
5588
|
{
|
|
5553
|
-
type:
|
|
5589
|
+
type: v,
|
|
5554
5590
|
active: b.useSpeculationRules,
|
|
5555
|
-
customSpeculation:
|
|
5591
|
+
customSpeculation: C
|
|
5556
5592
|
}
|
|
5557
5593
|
),
|
|
5558
5594
|
/* @__PURE__ */ s(
|
|
@@ -5562,7 +5598,7 @@ async function ih({
|
|
|
5562
5598
|
headConfig: D,
|
|
5563
5599
|
config: b,
|
|
5564
5600
|
defaultMetadataName: r,
|
|
5565
|
-
speculationType:
|
|
5601
|
+
speculationType: v,
|
|
5566
5602
|
internalPath: f,
|
|
5567
5603
|
hasAutor: !!d,
|
|
5568
5604
|
hasCurrentNewPreview: !!h?.preview?.sizes,
|
|
@@ -5571,7 +5607,7 @@ async function ih({
|
|
|
5571
5607
|
}
|
|
5572
5608
|
),
|
|
5573
5609
|
/* @__PURE__ */ s(
|
|
5574
|
-
|
|
5610
|
+
va,
|
|
5575
5611
|
{
|
|
5576
5612
|
name: "headscripts",
|
|
5577
5613
|
replaces: O,
|
|
@@ -5600,11 +5636,11 @@ const lh = ({
|
|
|
5600
5636
|
config: o,
|
|
5601
5637
|
currentNew: l,
|
|
5602
5638
|
internalPath: i
|
|
5603
|
-
}), w = n.find((
|
|
5639
|
+
}), w = n.find((v) => v.key === "event_analytics"), f = d.before.active, g = d.after.active, b = f ? d.before.customData ? d.before.customData : m : void 0, A = g ? d.after.customData ? d.after.customData : m : void 0;
|
|
5604
5640
|
return /* @__PURE__ */ p($, { children: [
|
|
5605
|
-
/* @__PURE__ */ s(
|
|
5641
|
+
/* @__PURE__ */ s(va, { name: "bodybefore", banners: n, replaces: b }),
|
|
5606
5642
|
e,
|
|
5607
|
-
/* @__PURE__ */ s(
|
|
5643
|
+
/* @__PURE__ */ s(Co, {}),
|
|
5608
5644
|
/* @__PURE__ */ s(Ir, {}),
|
|
5609
5645
|
/* @__PURE__ */ s(
|
|
5610
5646
|
yo,
|
|
@@ -5614,7 +5650,7 @@ const lh = ({
|
|
|
5614
5650
|
eventReplaces: m
|
|
5615
5651
|
}
|
|
5616
5652
|
),
|
|
5617
|
-
/* @__PURE__ */ s(
|
|
5653
|
+
/* @__PURE__ */ s(vo, {}),
|
|
5618
5654
|
u,
|
|
5619
5655
|
/* @__PURE__ */ s(ho, { name: "bodyafter", banners: n, replaces: A })
|
|
5620
5656
|
] });
|
|
@@ -5654,7 +5690,7 @@ function Dl({
|
|
|
5654
5690
|
enableDrag: o,
|
|
5655
5691
|
onIndexChange: i
|
|
5656
5692
|
}) {
|
|
5657
|
-
const [l, c] = z(!1), [d, u] = z(0), [h, m] = z(0), [w, f] = z(0), [g, b] = z(0), [A,
|
|
5693
|
+
const [l, c] = z(!1), [d, u] = z(0), [h, m] = z(0), [w, f] = z(0), [g, b] = z(0), [A, v] = z(null), N = pa(null), [C, y] = z(1), S = de(() => {
|
|
5658
5694
|
if (r) return 1;
|
|
5659
5695
|
const x = N.current?.offsetWidth || window.innerWidth, T = n + a, _ = Math.floor(x / T);
|
|
5660
5696
|
return Math.max(1, _);
|
|
@@ -5738,7 +5774,7 @@ function Dl({
|
|
|
5738
5774
|
]
|
|
5739
5775
|
), U = de(
|
|
5740
5776
|
(x) => {
|
|
5741
|
-
x.preventDefault(), ["a", "span"].includes(x.target?.localName) &&
|
|
5777
|
+
x.preventDefault(), ["a", "span"].includes(x.target?.localName) && v(x.target), H(x.clientX);
|
|
5742
5778
|
},
|
|
5743
5779
|
[H]
|
|
5744
5780
|
), G = de(
|
|
@@ -5771,7 +5807,7 @@ function Dl({
|
|
|
5771
5807
|
carrouselRef: N,
|
|
5772
5808
|
maxIndex: L,
|
|
5773
5809
|
getTranslateValue: j,
|
|
5774
|
-
actualVisibleItems:
|
|
5810
|
+
actualVisibleItems: C,
|
|
5775
5811
|
dragHandlers: {
|
|
5776
5812
|
onMouseDown: U,
|
|
5777
5813
|
onTouchStart: G,
|
|
@@ -5802,9 +5838,9 @@ function dh(e) {
|
|
|
5802
5838
|
translateOffset: g,
|
|
5803
5839
|
carrouselRef: b,
|
|
5804
5840
|
maxIndex: A,
|
|
5805
|
-
getTranslateValue:
|
|
5841
|
+
getTranslateValue: v,
|
|
5806
5842
|
actualVisibleItems: N,
|
|
5807
|
-
dragHandlers:
|
|
5843
|
+
dragHandlers: C
|
|
5808
5844
|
} = Dl({
|
|
5809
5845
|
currentIndex: u,
|
|
5810
5846
|
totalItems: d.length,
|
|
@@ -5825,7 +5861,7 @@ function dh(e) {
|
|
|
5825
5861
|
y(u + 1);
|
|
5826
5862
|
}, [u, y]);
|
|
5827
5863
|
if (!m) return;
|
|
5828
|
-
const L =
|
|
5864
|
+
const L = v(u, g), D = i ? `translateX(${L}%)` : `translateX(${L}px)`;
|
|
5829
5865
|
return /* @__PURE__ */ p("div", { className: `${n}- carrousel-container`, children: [
|
|
5830
5866
|
u > 0 && /* @__PURE__ */ s(
|
|
5831
5867
|
"button",
|
|
@@ -5890,7 +5926,7 @@ function dh(e) {
|
|
|
5890
5926
|
cursor: c ? f ? "grabbing" : "grab" : "default",
|
|
5891
5927
|
justifyContent: "start !important"
|
|
5892
5928
|
},
|
|
5893
|
-
...
|
|
5929
|
+
...C,
|
|
5894
5930
|
children: d && d.map((j, P) => typeof j == "string" ? /* @__PURE__ */ s(
|
|
5895
5931
|
"section",
|
|
5896
5932
|
{
|
|
@@ -6010,7 +6046,7 @@ const yt = (e) => /* @__PURE__ */ s("div", { className: "su-flex su-flex-col sas
|
|
|
6010
6046
|
}, Fl = (e) => e.replace(
|
|
6011
6047
|
/<script\b([^>]*)>/gi,
|
|
6012
6048
|
(t, n) => n.includes("type=") ? `<script ${n.replace(/type\s*=\s*["'][^"']*["']/i, 'type="text/deferred-banner"')}>` : `<script ${n} type="text/deferred-banner">`
|
|
6013
|
-
),
|
|
6049
|
+
), Se = ({ banners: e, name: t, scope: n }) => {
|
|
6014
6050
|
const a = e?.find((c) => c.key === t);
|
|
6015
6051
|
if (!a?.show) return null;
|
|
6016
6052
|
const r = Qn(a.value, n);
|
|
@@ -6779,7 +6815,7 @@ const Yl = (e) => {
|
|
|
6779
6815
|
children: /* @__PURE__ */ s("div", { className: "sass-com-img-imagePlaceholder" })
|
|
6780
6816
|
}
|
|
6781
6817
|
);
|
|
6782
|
-
},
|
|
6818
|
+
}, Te = async (e) => {
|
|
6783
6819
|
const { preview: t } = e;
|
|
6784
6820
|
if (!t?.sizes || t.sizes.length === 0 || t.sizes.some((l) => !l.url))
|
|
6785
6821
|
return /* @__PURE__ */ s("div", { className: "sass-com-img-imageLogoPlaceholder su-flex-center" });
|
|
@@ -6831,7 +6867,7 @@ const Yl = (e) => {
|
|
|
6831
6867
|
},
|
|
6832
6868
|
children: [
|
|
6833
6869
|
/* @__PURE__ */ s("div", { className: "sass-com-ndb1-numberTag", children: a + 1 }),
|
|
6834
|
-
n.main.title.home && /* @__PURE__ */ s(
|
|
6870
|
+
n.main.title.home && /* @__PURE__ */ s(Te, { preview: n.preview, priorityHigh: e.priorityHigh })
|
|
6835
6871
|
]
|
|
6836
6872
|
}
|
|
6837
6873
|
),
|
|
@@ -8025,10 +8061,10 @@ const Yl = (e) => {
|
|
|
8025
8061
|
"path",
|
|
8026
8062
|
{
|
|
8027
8063
|
fill: "currentColor",
|
|
8028
|
-
d: `M25.7,9.4h-9.1v2.4h9.1c-0.1,0,0.1,0,0.1-0.1V9.5C25.9,9.4,25.9,9.4,25.7,9.4L25.7,9.4z M8.4,9.6
|
|
8029
|
-
c-3,0-5.6,2.5-5.6,5.6c0,3,2.5,5.4,5.7,5.4s5.4-2.4,5.4-5.4c0-0.4,0-0.7-0.1-1.1H8.5v2.1h3c-0.3,1.3-1.5,2.1-3,2.1
|
|
8030
|
-
c-1.9-0.1-3.4-1.7-3.2-3.4c0-1.9,1.5-3.2,3.2-3.2c0.8,0,1.5,0.3,2.1,0.9l1.5-1.5C11,10.2,9.7,9.6,8.4,9.6L8.4,9.6z M27,13.7H16.5
|
|
8031
|
-
v2.4H27c0,0,0.1,0,0.1-0.1v-2.1C27.2,13.7,27.2,13.7,27,13.7L27,13.7z M25.7,18.2h-9.1v2.4h9.1c-0.1,0,0.1-0.1,0.1-0.1v-2.1
|
|
8064
|
+
d: `M25.7,9.4h-9.1v2.4h9.1c-0.1,0,0.1,0,0.1-0.1V9.5C25.9,9.4,25.9,9.4,25.7,9.4L25.7,9.4z M8.4,9.6\r
|
|
8065
|
+
c-3,0-5.6,2.5-5.6,5.6c0,3,2.5,5.4,5.7,5.4s5.4-2.4,5.4-5.4c0-0.4,0-0.7-0.1-1.1H8.5v2.1h3c-0.3,1.3-1.5,2.1-3,2.1\r
|
|
8066
|
+
c-1.9-0.1-3.4-1.7-3.2-3.4c0-1.9,1.5-3.2,3.2-3.2c0.8,0,1.5,0.3,2.1,0.9l1.5-1.5C11,10.2,9.7,9.6,8.4,9.6L8.4,9.6z M27,13.7H16.5\r
|
|
8067
|
+
v2.4H27c0,0,0.1,0,0.1-0.1v-2.1C27.2,13.7,27.2,13.7,27,13.7L27,13.7z M25.7,18.2h-9.1v2.4h9.1c-0.1,0,0.1-0.1,0.1-0.1v-2.1\r
|
|
8032
8068
|
C25.9,18.2,25.9,18.2,25.7,18.2L25.7,18.2z`
|
|
8033
8069
|
}
|
|
8034
8070
|
) })
|
|
@@ -8189,13 +8225,13 @@ const Yl = (e) => {
|
|
|
8189
8225
|
"path",
|
|
8190
8226
|
{
|
|
8191
8227
|
fill: "currentColor",
|
|
8192
|
-
d: `M12.6,24.9c-1.1,0-2.1-0.3-3.1-0.8c-1.7-0.9-2.8-2.5-3.2-4.3c-0.7-3.3,1.4-6.7,4.7-7.4
|
|
8193
|
-
c0.8-0.2,1.5-0.2,2.2-0.1c0.1,0,0.1,0,0.2,0l0.5,0.1l0.1,0.5v3.8l-0.8-0.2c-0.1,0-0.2,0-0.3-0.1c-1.2-0.2-2.3,0.6-2.5,1.8
|
|
8194
|
-
c-0.2,1.2,0.6,2.3,1.8,2.5c0.6,0.1,1.2,0,1.7-0.4c0.5-0.4,0.8-1,0.8-1.6c0-0.7,0-1.3,0-2l0-0.7l0-10.8h4.1L19,5.9
|
|
8195
|
-
c0,0.2,0,0.4,0.1,0.6c0.4,1.8,2,3.2,3.9,3.3c0.5,0,0.8,0.3,0.8,0.8c0,0.6,0,1.3,0,1.9v1.5l-0.6,0c-1.5,0-2.9-0.4-4.1-1.1l0,5.6
|
|
8196
|
-
c0,2.7-1.6,5-4,6C14.2,24.7,13.4,24.9,12.6,24.9z M12.7,13.4c-0.4,0-0.9,0.1-1.3,0.2c-2.7,0.6-4.4,3.4-3.9,6.1
|
|
8197
|
-
c0.3,1.5,1.3,2.8,2.6,3.5c1.4,0.7,3,0.8,4.5,0.3c2-0.8,3.3-2.7,3.3-4.9l0-7.8l0.9,0.7c1.2,0.9,2.4,1.3,3.8,1.5v-0.3
|
|
8198
|
-
c0-0.5,0-1.1,0-1.6C20.4,10.7,18.5,9,18,6.7c0-0.2-0.1-0.3-0.1-0.5H16l0,10.4c0,0.7,0,1.4,0,2.1c0,0.9-0.5,1.8-1.2,2.4
|
|
8228
|
+
d: `M12.6,24.9c-1.1,0-2.1-0.3-3.1-0.8c-1.7-0.9-2.8-2.5-3.2-4.3c-0.7-3.3,1.4-6.7,4.7-7.4\r
|
|
8229
|
+
c0.8-0.2,1.5-0.2,2.2-0.1c0.1,0,0.1,0,0.2,0l0.5,0.1l0.1,0.5v3.8l-0.8-0.2c-0.1,0-0.2,0-0.3-0.1c-1.2-0.2-2.3,0.6-2.5,1.8\r
|
|
8230
|
+
c-0.2,1.2,0.6,2.3,1.8,2.5c0.6,0.1,1.2,0,1.7-0.4c0.5-0.4,0.8-1,0.8-1.6c0-0.7,0-1.3,0-2l0-0.7l0-10.8h4.1L19,5.9\r
|
|
8231
|
+
c0,0.2,0,0.4,0.1,0.6c0.4,1.8,2,3.2,3.9,3.3c0.5,0,0.8,0.3,0.8,0.8c0,0.6,0,1.3,0,1.9v1.5l-0.6,0c-1.5,0-2.9-0.4-4.1-1.1l0,5.6\r
|
|
8232
|
+
c0,2.7-1.6,5-4,6C14.2,24.7,13.4,24.9,12.6,24.9z M12.7,13.4c-0.4,0-0.9,0.1-1.3,0.2c-2.7,0.6-4.4,3.4-3.9,6.1\r
|
|
8233
|
+
c0.3,1.5,1.3,2.8,2.6,3.5c1.4,0.7,3,0.8,4.5,0.3c2-0.8,3.3-2.7,3.3-4.9l0-7.8l0.9,0.7c1.2,0.9,2.4,1.3,3.8,1.5v-0.3\r
|
|
8234
|
+
c0-0.5,0-1.1,0-1.6C20.4,10.7,18.5,9,18,6.7c0-0.2-0.1-0.3-0.1-0.5H16l0,10.4c0,0.7,0,1.4,0,2.1c0,0.9-0.5,1.8-1.2,2.4\r
|
|
8199
8235
|
C14,21.8,13,22,12,21.8c-1.8-0.4-3-2-2.7-3.9c0.3-1.7,1.8-2.9,3.6-2.7v-1.9C12.9,13.4,12.8,13.4,12.7,13.4z`
|
|
8200
8236
|
}
|
|
8201
8237
|
) })
|
|
@@ -8221,13 +8257,13 @@ const Yl = (e) => {
|
|
|
8221
8257
|
"path",
|
|
8222
8258
|
{
|
|
8223
8259
|
fill: "currentColor",
|
|
8224
|
-
d: `M21.7,8.3c-1.8-1.8-4.2-2.8-6.7-2.8c-5.2,0-9.5,4.2-9.5,9.4c0,1.7,0.4,3.3,1.3,4.7l-1.3,4.9l5-1.3
|
|
8225
|
-
c1.4,0.7,2.9,1.1,4.5,1.1h0c5.2,0,9.5-4.2,9.5-9.4C24.5,12.4,23.5,10,21.7,8.3 M15,22.7L15,22.7c-1.4,0-2.8-0.4-4-1.1l-0.3-0.2
|
|
8226
|
-
l-3,0.8l0.8-2.9l-0.2-0.3c-0.8-1.2-1.2-2.7-1.2-4.2c0-4.3,3.5-7.8,7.9-7.8c2.1,0,4.1,0.8,5.6,2.3c1.5,1.5,2.3,3.4,2.3,5.5
|
|
8227
|
-
C22.9,19.2,19.4,22.7,15,22.7z M19.4,16.9c-0.2-0.1-1.4-0.7-1.6-0.8c-0.2-0.1-0.4-0.1-0.5,0.1c-0.2,0.2-0.6,0.8-0.7,0.9
|
|
8228
|
-
c-0.1,0.2-0.3,0.2-0.5,0.1c-0.2-0.1-1-0.4-1.9-1.2c-0.7-0.6-1.2-1.4-1.3-1.6c-0.1-0.2,0-0.4,0.1-0.5c0.1-0.1,0.2-0.3,0.4-0.4
|
|
8229
|
-
c0.1-0.1,0.2-0.2,0.2-0.4c0.1-0.2,0-0.3,0-0.4c-0.1-0.1-0.5-1.3-0.7-1.7c-0.2-0.5-0.4-0.4-0.5-0.4c-0.1,0-0.3,0-0.5,0
|
|
8230
|
-
c-0.2,0-0.4,0.1-0.6,0.3c-0.2,0.2-0.8,0.8-0.8,2c0,1.2,0.8,2.3,1,2.4c0.1,0.2,1.7,2.5,4,3.6c0.6,0.2,1,0.4,1.3,0.5
|
|
8260
|
+
d: `M21.7,8.3c-1.8-1.8-4.2-2.8-6.7-2.8c-5.2,0-9.5,4.2-9.5,9.4c0,1.7,0.4,3.3,1.3,4.7l-1.3,4.9l5-1.3\r
|
|
8261
|
+
c1.4,0.7,2.9,1.1,4.5,1.1h0c5.2,0,9.5-4.2,9.5-9.4C24.5,12.4,23.5,10,21.7,8.3 M15,22.7L15,22.7c-1.4,0-2.8-0.4-4-1.1l-0.3-0.2\r
|
|
8262
|
+
l-3,0.8l0.8-2.9l-0.2-0.3c-0.8-1.2-1.2-2.7-1.2-4.2c0-4.3,3.5-7.8,7.9-7.8c2.1,0,4.1,0.8,5.6,2.3c1.5,1.5,2.3,3.4,2.3,5.5\r
|
|
8263
|
+
C22.9,19.2,19.4,22.7,15,22.7z M19.4,16.9c-0.2-0.1-1.4-0.7-1.6-0.8c-0.2-0.1-0.4-0.1-0.5,0.1c-0.2,0.2-0.6,0.8-0.7,0.9\r
|
|
8264
|
+
c-0.1,0.2-0.3,0.2-0.5,0.1c-0.2-0.1-1-0.4-1.9-1.2c-0.7-0.6-1.2-1.4-1.3-1.6c-0.1-0.2,0-0.4,0.1-0.5c0.1-0.1,0.2-0.3,0.4-0.4\r
|
|
8265
|
+
c0.1-0.1,0.2-0.2,0.2-0.4c0.1-0.2,0-0.3,0-0.4c-0.1-0.1-0.5-1.3-0.7-1.7c-0.2-0.5-0.4-0.4-0.5-0.4c-0.1,0-0.3,0-0.5,0\r
|
|
8266
|
+
c-0.2,0-0.4,0.1-0.6,0.3c-0.2,0.2-0.8,0.8-0.8,2c0,1.2,0.8,2.3,1,2.4c0.1,0.2,1.7,2.5,4,3.6c0.6,0.2,1,0.4,1.3,0.5\r
|
|
8231
8267
|
c0.6,0.2,1.1,0.2,1.5,0.1c0.5-0.1,1.4-0.6,1.6-1.1c0.2-0.5,0.2-1,0.1-1.1C19.7,17.1,19.6,17,19.4,16.9`
|
|
8232
8268
|
}
|
|
8233
8269
|
) }) })
|
|
@@ -8257,9 +8293,9 @@ const Yl = (e) => {
|
|
|
8257
8293
|
"path",
|
|
8258
8294
|
{
|
|
8259
8295
|
fill: "currentColor",
|
|
8260
|
-
d: `M15,23.9c-0.7,0-7.3,0-9.2-0.6C4.6,23,3.7,22,3.2,20.8c-0.4-2-0.4-5.6-0.4-5.8c0-0.2,0-3.8,0.6-5.8C3.7,7.9,4.7,7,5.9,6.5c1.9-0.4,8.9-0.4,9.2-0.4c0.7,0,7.3,0,9.2,0.6C25.5,7,26.4,8,26.9,9.2c0,0,0,0,0,0.1c0.5,1.9,0.3,5.7,0.3,5.9
|
|
8261
|
-
c0,0.1,0,3.8-0.4,5.7c-0.4,1.3-1.3,2.2-2.6,2.6C22.2,23.9,15.3,23.9,15,23.9z M15.1,7.6c-2,0-7.4,0.1-8.8,0.4C6,8.1,5.1,8.5,4.8,9.5c-0.5,1.8-0.5,5.4-0.5,5.4s0,3.6,0.4,5.4c0.1,0.3,0.5,1.2,1.6,1.5c1.4,0.4,6.8,0.5,8.7,0.5c2,0,7.4-0.1,8.8-0.4
|
|
8262
|
-
c0.3-0.1,1.2-0.5,1.5-1.6c0.4-1.6,0.4-5.3,0.4-5.3c0-0.1,0.2-3.7-0.2-5.4c-0.1-0.4-0.5-1.3-1.6-1.6C22.5,7.7,17.1,7.6,15.1,7.6zM12.8,19.2c-0.1,0-0.3,0-0.4-0.1c-0.2-0.1-0.4-0.4-0.4-0.7v-6.9c0-0.3,0.1-0.5,0.4-0.6c0.2-0.1,0.5-0.1,0.7,0l5.9,3.4
|
|
8296
|
+
d: `M15,23.9c-0.7,0-7.3,0-9.2-0.6C4.6,23,3.7,22,3.2,20.8c-0.4-2-0.4-5.6-0.4-5.8c0-0.2,0-3.8,0.6-5.8C3.7,7.9,4.7,7,5.9,6.5c1.9-0.4,8.9-0.4,9.2-0.4c0.7,0,7.3,0,9.2,0.6C25.5,7,26.4,8,26.9,9.2c0,0,0,0,0,0.1c0.5,1.9,0.3,5.7,0.3,5.9\r
|
|
8297
|
+
c0,0.1,0,3.8-0.4,5.7c-0.4,1.3-1.3,2.2-2.6,2.6C22.2,23.9,15.3,23.9,15,23.9z M15.1,7.6c-2,0-7.4,0.1-8.8,0.4C6,8.1,5.1,8.5,4.8,9.5c-0.5,1.8-0.5,5.4-0.5,5.4s0,3.6,0.4,5.4c0.1,0.3,0.5,1.2,1.6,1.5c1.4,0.4,6.8,0.5,8.7,0.5c2,0,7.4-0.1,8.8-0.4\r
|
|
8298
|
+
c0.3-0.1,1.2-0.5,1.5-1.6c0.4-1.6,0.4-5.3,0.4-5.3c0-0.1,0.2-3.7-0.2-5.4c-0.1-0.4-0.5-1.3-1.6-1.6C22.5,7.7,17.1,7.6,15.1,7.6zM12.8,19.2c-0.1,0-0.3,0-0.4-0.1c-0.2-0.1-0.4-0.4-0.4-0.7v-6.9c0-0.3,0.1-0.5,0.4-0.6c0.2-0.1,0.5-0.1,0.7,0l5.9,3.4\r
|
|
8263
8299
|
c0.2,0.1,0.4,0.4,0.4,0.6c0,0.3-0.1,0.5-0.4,0.7l-5.9,3.5C13.1,19.1,12.9,19.2,12.8,19.2z M13.6,12.9v4.3l3.7-2.2L13.6,12.9z`
|
|
8264
8300
|
}
|
|
8265
8301
|
),
|
|
@@ -8647,15 +8683,15 @@ const ph = (e) => {
|
|
|
8647
8683
|
priorityHigh: u = !1
|
|
8648
8684
|
}) => {
|
|
8649
8685
|
const { CONFIG_videoClipUrl: h } = R(), m = e ?? "imagen", w = Array.isArray(t) ? t : [], f = () => {
|
|
8650
|
-
const
|
|
8651
|
-
return
|
|
8686
|
+
const v = w[0]?.clip;
|
|
8687
|
+
return v ? /* @__PURE__ */ s("div", { className: "sass-com-sc1-videoClipContainer", children: /* @__PURE__ */ s("video", { autoPlay: !0, loop: !0, muted: !0, playsInline: !0, children: /* @__PURE__ */ s("source", { src: `${h}${v}`, type: "video/mp4" }) }) }) : null;
|
|
8652
8688
|
}, g = () => {
|
|
8653
|
-
const
|
|
8654
|
-
return
|
|
8689
|
+
const v = w[0]?.code;
|
|
8690
|
+
return v ? /* @__PURE__ */ s(
|
|
8655
8691
|
"iframe",
|
|
8656
8692
|
{
|
|
8657
8693
|
className: "sass-com-sc1-videoIframeContainer",
|
|
8658
|
-
src: `https://www.youtube.com/embed/${
|
|
8694
|
+
src: `https://www.youtube.com/embed/${v}`,
|
|
8659
8695
|
frameBorder: "0",
|
|
8660
8696
|
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",
|
|
8661
8697
|
allowFullScreen: !0,
|
|
@@ -8663,9 +8699,9 @@ const ph = (e) => {
|
|
|
8663
8699
|
}
|
|
8664
8700
|
) : null;
|
|
8665
8701
|
}, b = () => {
|
|
8666
|
-
const
|
|
8667
|
-
if (!
|
|
8668
|
-
const
|
|
8702
|
+
const v = w.find((D) => D.type === "video-embedded");
|
|
8703
|
+
if (!v?.code) return null;
|
|
8704
|
+
const C = /src\s*=\s*"([^"]+)"/.exec(v.code), y = C ? C[1] : null;
|
|
8669
8705
|
if (!y) return null;
|
|
8670
8706
|
const S = a.original?.url ?? a.sizes?.[0]?.url ?? "", k = Ke() ?? "", L = S.startsWith("http") || S.includes(k) || k === "" ? S : k + S;
|
|
8671
8707
|
return /* @__PURE__ */ s(
|
|
@@ -8690,7 +8726,7 @@ const ph = (e) => {
|
|
|
8690
8726
|
href: o,
|
|
8691
8727
|
target: i,
|
|
8692
8728
|
children: /* @__PURE__ */ s(
|
|
8693
|
-
|
|
8729
|
+
Te,
|
|
8694
8730
|
{
|
|
8695
8731
|
preview: a,
|
|
8696
8732
|
isVideo: c,
|
|
@@ -8704,7 +8740,7 @@ const ph = (e) => {
|
|
|
8704
8740
|
case "videoYouTube":
|
|
8705
8741
|
return w[0]?.code ? /* @__PURE__ */ s(g, {}) : /* @__PURE__ */ s(A, {});
|
|
8706
8742
|
case "videoEmbedded":
|
|
8707
|
-
return w.some((
|
|
8743
|
+
return w.some((v) => v.type === "video-embedded" && v.code) ? /* @__PURE__ */ s(b, {}) : /* @__PURE__ */ s(A, {});
|
|
8708
8744
|
case "clip":
|
|
8709
8745
|
return w[0]?.clip ? /* @__PURE__ */ s(f, {}) : /* @__PURE__ */ s(A, {});
|
|
8710
8746
|
case "iframe":
|
|
@@ -8816,7 +8852,7 @@ const ph = (e) => {
|
|
|
8816
8852
|
title: a?.title?.section,
|
|
8817
8853
|
href: n.link.url,
|
|
8818
8854
|
target: n.link.target,
|
|
8819
|
-
children: /* @__PURE__ */ s(
|
|
8855
|
+
children: /* @__PURE__ */ s(Te, { preview: e.preview, isVideo: t })
|
|
8820
8856
|
}
|
|
8821
8857
|
),
|
|
8822
8858
|
/* @__PURE__ */ p(
|
|
@@ -8884,7 +8920,7 @@ const ph = (e) => {
|
|
|
8884
8920
|
/* @__PURE__ */ s("textarea", { className: "sass-com-cta-input", ...e })
|
|
8885
8921
|
] }), sr = (e) => {
|
|
8886
8922
|
let t = "";
|
|
8887
|
-
return e.preview.description && (t = e.preview.description), e.preview.copyright && (t = `${t} ${e.preview.copyright}`), e.preview.photographer && (t = `${t} ${e.preview.photographer}`), /* @__PURE__ */ s("div", { className: "sass-com-in2-content", children: /* @__PURE__ */ s(
|
|
8923
|
+
return e.preview.description && (t = e.preview.description), e.preview.copyright && (t = `${t} ${e.preview.copyright}`), e.preview.photographer && (t = `${t} ${e.preview.photographer}`), /* @__PURE__ */ s("div", { className: "sass-com-in2-content", children: /* @__PURE__ */ s(Te, { preview: e.preview, isLarge: !0, priorityHigh: !0, figCaption: t }) });
|
|
8888
8924
|
}, hc = (e) => /* @__PURE__ */ s($, { children: /* @__PURE__ */ p("div", { className: "sass-com-lbh-boxInformation sass-liveblog-header", children: [
|
|
8889
8925
|
/* @__PURE__ */ s(sr, { preview: e.preview }),
|
|
8890
8926
|
/* @__PURE__ */ p("div", { className: "sass-com-lbh-textBox", children: [
|
|
@@ -8942,8 +8978,8 @@ const ph = (e) => {
|
|
|
8942
8978
|
strokeLinecap: "round",
|
|
8943
8979
|
strokeLinejoin: "round",
|
|
8944
8980
|
strokeMiterlimit: "10",
|
|
8945
|
-
d: `M10.2,8.3c0,1.1-0.9,2.1-2.2,2.1l0,0c-1.3,0-2.1-0.9-2.1-2.1c0-1.1,0.9-2.1,2.2-2.1C9.4,6.3,10.2,7.1,10.2,8.3z M6.1,23.7H10V11.9
|
|
8946
|
-
H6.1V23.7z M19.6,11.7c-2.1,0-3.5,2-3.5,2v-1.7h-3.9v11.8H16v-6.6c0-0.3,0-0.7,0.1-0.9c0.3-0.7,0.9-1.4,2-1.4c1.4,0,2,1.1,2,2.7v6.3
|
|
8981
|
+
d: `M10.2,8.3c0,1.1-0.9,2.1-2.2,2.1l0,0c-1.3,0-2.1-0.9-2.1-2.1c0-1.1,0.9-2.1,2.2-2.1C9.4,6.3,10.2,7.1,10.2,8.3z M6.1,23.7H10V11.9\r
|
|
8982
|
+
H6.1V23.7z M19.6,11.7c-2.1,0-3.5,2-3.5,2v-1.7h-3.9v11.8H16v-6.6c0-0.3,0-0.7,0.1-0.9c0.3-0.7,0.9-1.4,2-1.4c1.4,0,2,1.1,2,2.7v6.3\r
|
|
8947
8983
|
h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`
|
|
8948
8984
|
}
|
|
8949
8985
|
)
|
|
@@ -8963,8 +8999,8 @@ const ph = (e) => {
|
|
|
8963
8999
|
fetchPriority: "low",
|
|
8964
9000
|
loading: "lazy"
|
|
8965
9001
|
}
|
|
8966
|
-
),
|
|
8967
|
-
const { autor: t, autorIcon: n, socialIconsFilled: a = !1, socialIconsCustom: r = !1 } = e, o = n, { PUBLIC_LNG: i } = R(), l = i === "en", c = t?.addtional, d = t?.info?.image?.sizes?.[0]?.url ?? "", u = t?.info?.fullname ?? "", h = t?.info?.email ?? "", m = c?.USER_SHOWEMAIL === !0 || c?.USER_MOSTRAR_MAIL?.toUpperCase() === "TRUE", w = c?.USER_SHOWBIO ?? !1, f = l ? c?.USER_DESCRIPCION_EN || c?.USER_MIBIO_EN || "" : c?.USER_DESCRIPCION || c?.USER_MIBIO || "", g = Pt(t?.addtional?.USER_USERFB ?? ""), b = Pt(t?.addtional?.USER_USERIG ?? ""), A = Pt(t?.addtional?.USER_USERTWT ?? ""),
|
|
9002
|
+
), vh = async (e) => {
|
|
9003
|
+
const { autor: t, autorIcon: n, socialIconsFilled: a = !1, socialIconsCustom: r = !1 } = e, o = n, { PUBLIC_LNG: i } = R(), l = i === "en", c = t?.addtional, d = t?.info?.image?.sizes?.[0]?.url ?? "", u = t?.info?.fullname ?? "", h = t?.info?.email ?? "", m = c?.USER_SHOWEMAIL === !0 || c?.USER_MOSTRAR_MAIL?.toUpperCase() === "TRUE", w = c?.USER_SHOWBIO ?? !1, f = l ? c?.USER_DESCRIPCION_EN || c?.USER_MIBIO_EN || "" : c?.USER_DESCRIPCION || c?.USER_MIBIO || "", g = Pt(t?.addtional?.USER_USERFB ?? ""), b = Pt(t?.addtional?.USER_USERIG ?? ""), A = Pt(t?.addtional?.USER_USERTWT ?? ""), v = Pt(t?.addtional?.USER_USERLIN ?? ""), N = () => !m || !h || h.trim() === "" ? !1 : pc(h), C = (y) => `mailto:${y.trim()}`;
|
|
8968
9004
|
return /* @__PURE__ */ s(
|
|
8969
9005
|
"section",
|
|
8970
9006
|
{
|
|
@@ -8990,7 +9026,7 @@ const ph = (e) => {
|
|
|
8990
9026
|
N() && /* @__PURE__ */ s(
|
|
8991
9027
|
"a",
|
|
8992
9028
|
{
|
|
8993
|
-
href:
|
|
9029
|
+
href: C(h),
|
|
8994
9030
|
className: "sass-com-ah1-email",
|
|
8995
9031
|
"aria-label": `Enviar correo electrónico a ${h}`,
|
|
8996
9032
|
title: `Enviar correo a ${h}`,
|
|
@@ -9029,10 +9065,10 @@ const ph = (e) => {
|
|
|
9029
9065
|
children: r ? Ot("x", "X", "sass-com-ah1-social-icon sass-com-ah1-social-icon-x") : /* @__PURE__ */ s(_e, { className: "sass-com-ah1-social-icon sass-com-ah1-social-icon-x", forceSVG: !0 })
|
|
9030
9066
|
}
|
|
9031
9067
|
),
|
|
9032
|
-
|
|
9068
|
+
v && /* @__PURE__ */ s(
|
|
9033
9069
|
"a",
|
|
9034
9070
|
{
|
|
9035
|
-
href:
|
|
9071
|
+
href: v,
|
|
9036
9072
|
target: "_blank",
|
|
9037
9073
|
className: `sass-com-ah1-social-link ${a ? "sass-com-ah1-social-filled" : "sass-com-ah1-social-stroke"}`,
|
|
9038
9074
|
rel: "noreferrer",
|
|
@@ -9043,7 +9079,7 @@ const ph = (e) => {
|
|
|
9043
9079
|
] })
|
|
9044
9080
|
}
|
|
9045
9081
|
);
|
|
9046
|
-
},
|
|
9082
|
+
}, Ch = async (e) => {
|
|
9047
9083
|
const { autor: t, autorIcon: n, socialIconsFilled: a = !1 } = e, r = n, { PUBLIC_LNG: o } = R(), i = o === "en", l = t?.addtional, c = t?.info?.image?.sizes?.[0]?.url ?? "", d = t?.info?.fullname ?? "", u = t?.info?.email ?? "", h = l?.USER_SHOWEMAIL === !0 || l?.USER_MOSTRAR_MAIL?.toUpperCase() === "TRUE", m = l?.USER_SHOWBIO ?? !1, w = i ? l?.USER_DESCRIPCION_EN || l?.USER_MIBIO_EN || "" : l?.USER_DESCRIPCION || l?.USER_MIBIO || "", f = t?.addtional?.USER_USERFB ?? "", g = t?.addtional?.USER_USERIG ?? "", b = t?.addtional?.USER_USERTWT ?? "", A = t?.addtional?.USER_USERLIN ?? "";
|
|
9048
9084
|
return /* @__PURE__ */ s(
|
|
9049
9085
|
"section",
|
|
@@ -9246,7 +9282,7 @@ const ph = (e) => {
|
|
|
9246
9282
|
{
|
|
9247
9283
|
isTitle: !0,
|
|
9248
9284
|
cutSubtitle: !1,
|
|
9249
|
-
...
|
|
9285
|
+
...Ct(
|
|
9250
9286
|
{
|
|
9251
9287
|
...e?.video,
|
|
9252
9288
|
info: {
|
|
@@ -9272,7 +9308,7 @@ const ph = (e) => {
|
|
|
9272
9308
|
style: e.listVideoStyles,
|
|
9273
9309
|
children: [
|
|
9274
9310
|
e.banner && /* @__PURE__ */ s(
|
|
9275
|
-
|
|
9311
|
+
Se,
|
|
9276
9312
|
{
|
|
9277
9313
|
banners: e.banner.banners,
|
|
9278
9314
|
name: e.banner.bannerName
|
|
@@ -9282,7 +9318,7 @@ const ph = (e) => {
|
|
|
9282
9318
|
Array.isArray(t) && t.map((n, a) => /* @__PURE__ */ Ve(
|
|
9283
9319
|
wc,
|
|
9284
9320
|
{
|
|
9285
|
-
...
|
|
9321
|
+
...Ct(n, !0, !1, !1),
|
|
9286
9322
|
key: a,
|
|
9287
9323
|
paths: e.paths
|
|
9288
9324
|
}
|
|
@@ -9426,7 +9462,7 @@ const ph = (e) => {
|
|
|
9426
9462
|
}
|
|
9427
9463
|
)
|
|
9428
9464
|
] });
|
|
9429
|
-
},
|
|
9465
|
+
}, vc = ({ socials: e, copyright: t }) => /* @__PURE__ */ p("div", { className: "sass-com-sb-footerSlider", children: [
|
|
9430
9466
|
/* @__PURE__ */ s("div", { className: "sass-com-sb-socialMedia", children: Object.keys(e).map(
|
|
9431
9467
|
(n) => e[n]?.show && ct[n] ? /* @__PURE__ */ s(
|
|
9432
9468
|
"a",
|
|
@@ -9442,7 +9478,7 @@ const ph = (e) => {
|
|
|
9442
9478
|
) : null
|
|
9443
9479
|
) }),
|
|
9444
9480
|
t && /* @__PURE__ */ s("p", { className: "sass-com-sb-copyRights", children: t })
|
|
9445
|
-
] }),
|
|
9481
|
+
] }), Cc = ({
|
|
9446
9482
|
sidebar: e,
|
|
9447
9483
|
socials: t,
|
|
9448
9484
|
copyrigth: n,
|
|
@@ -9475,7 +9511,7 @@ const ph = (e) => {
|
|
|
9475
9511
|
a,
|
|
9476
9512
|
e.map((h, m) => /* @__PURE__ */ s(yc, { item: h, index: m }, m))
|
|
9477
9513
|
] }),
|
|
9478
|
-
/* @__PURE__ */ s(
|
|
9514
|
+
/* @__PURE__ */ s(vc, { socials: t, copyright: n })
|
|
9479
9515
|
] })
|
|
9480
9516
|
] })
|
|
9481
9517
|
]
|
|
@@ -9880,7 +9916,7 @@ const ph = (e) => {
|
|
|
9880
9916
|
!e.showOnlyStickyHeader && /* @__PURE__ */ s(Sc, { ...e }),
|
|
9881
9917
|
e.childrenContentPosition !== "before-headers" && i,
|
|
9882
9918
|
/* @__PURE__ */ s(
|
|
9883
|
-
|
|
9919
|
+
Cc,
|
|
9884
9920
|
{
|
|
9885
9921
|
sidebarExtra: e.sidebarExtra,
|
|
9886
9922
|
searchKeyWord: e.searchKeyWord,
|
|
@@ -9907,7 +9943,7 @@ const ph = (e) => {
|
|
|
9907
9943
|
) : /* @__PURE__ */ s("div", { className: "sass-com-ts-chipStyled", children: n.name }, a))
|
|
9908
9944
|
] }) });
|
|
9909
9945
|
}, Tc = async (e) => {
|
|
9910
|
-
const { autor: t } = e, { SUB_PUBLICATION_PREFIX_IN_ROUTES: n, PUBLIC_LNG: a } = R(), r = me(), o = a === "en", i = t?.addtional, l = i?.USER_SHOWBIO ?? !1, c = t?.info?.name ?? "", d = t?.info?.fullname ?? "", u = t?.info?.image?.sizes?.[0]?.url ?? "", h = o ? i?.USER_DESCRIPCION_EN || i?.USER_MIBIO_EN || "" : i?.USER_DESCRIPCION || i?.USER_MIBIO || "", m = t?.addtional?.USER_USERFB ?? "", w = t?.addtional?.USER_USERIG ?? "", f = t?.addtional?.USER_USERTWT ?? "", g = t?.addtional?.USER_USERLIN ?? "", b = `${r}/${e.paths.autor}/${c}`, N = h.replace(/<[^>]*>/g, "").replace(/&[^;]+;/g, " ").trim().length > 360,
|
|
9946
|
+
const { autor: t } = e, { SUB_PUBLICATION_PREFIX_IN_ROUTES: n, PUBLIC_LNG: a } = R(), r = me(), o = a === "en", i = t?.addtional, l = i?.USER_SHOWBIO ?? !1, c = t?.info?.name ?? "", d = t?.info?.fullname ?? "", u = t?.info?.image?.sizes?.[0]?.url ?? "", h = o ? i?.USER_DESCRIPCION_EN || i?.USER_MIBIO_EN || "" : i?.USER_DESCRIPCION || i?.USER_MIBIO || "", m = t?.addtional?.USER_USERFB ?? "", w = t?.addtional?.USER_USERIG ?? "", f = t?.addtional?.USER_USERTWT ?? "", g = t?.addtional?.USER_USERLIN ?? "", b = `${r}/${e.paths.autor}/${c}`, N = h.replace(/<[^>]*>/g, "").replace(/&[^;]+;/g, " ").trim().length > 360, C = `ja2-bio-toggle-${c}`;
|
|
9911
9947
|
return l && !!t && /* @__PURE__ */ s("section", { className: "sass-com-ja2-contentBox", children: /* @__PURE__ */ p("div", { className: "sass-com-ja2-content", children: [
|
|
9912
9948
|
/* @__PURE__ */ p("div", { className: "sass-com-ja2-avatarContent", children: [
|
|
9913
9949
|
/* @__PURE__ */ s(
|
|
@@ -10101,7 +10137,7 @@ const ph = (e) => {
|
|
|
10101
10137
|
"input",
|
|
10102
10138
|
{
|
|
10103
10139
|
type: "checkbox",
|
|
10104
|
-
id:
|
|
10140
|
+
id: C,
|
|
10105
10141
|
className: "sass-com-ja2-bioToggle"
|
|
10106
10142
|
}
|
|
10107
10143
|
),
|
|
@@ -10116,7 +10152,7 @@ const ph = (e) => {
|
|
|
10116
10152
|
/* @__PURE__ */ p(
|
|
10117
10153
|
"label",
|
|
10118
10154
|
{
|
|
10119
|
-
htmlFor:
|
|
10155
|
+
htmlFor: C,
|
|
10120
10156
|
className: "sass-com-ja2-bioToggleLink",
|
|
10121
10157
|
children: [
|
|
10122
10158
|
/* @__PURE__ */ s("span", { className: "sass-com-ja2-bioToggleLinkMore", children: String(e.texts.authorViewMore ?? "Ver más") }),
|
|
@@ -10127,7 +10163,7 @@ const ph = (e) => {
|
|
|
10127
10163
|
/* @__PURE__ */ s(
|
|
10128
10164
|
"label",
|
|
10129
10165
|
{
|
|
10130
|
-
htmlFor:
|
|
10166
|
+
htmlFor: C,
|
|
10131
10167
|
className: "sass-com-ja2-bioArrow",
|
|
10132
10168
|
"aria-label": "Leer más / Leer menos",
|
|
10133
10169
|
children: /* @__PURE__ */ s(
|
|
@@ -10421,7 +10457,7 @@ function Th(e) {
|
|
|
10421
10457
|
allowFullScreen: !0
|
|
10422
10458
|
}
|
|
10423
10459
|
) : null;
|
|
10424
|
-
},
|
|
10460
|
+
}, v = () => {
|
|
10425
10461
|
if (!e.videos) return null;
|
|
10426
10462
|
const y = (e.videos ?? []).find(
|
|
10427
10463
|
(H) => H.type === "video-embedded"
|
|
@@ -10463,7 +10499,7 @@ function Th(e) {
|
|
|
10463
10499
|
href: a?.link?.url,
|
|
10464
10500
|
target: a?.link?.target,
|
|
10465
10501
|
children: /* @__PURE__ */ s(
|
|
10466
|
-
|
|
10502
|
+
Te,
|
|
10467
10503
|
{
|
|
10468
10504
|
preview: k,
|
|
10469
10505
|
isVideo: l,
|
|
@@ -10478,22 +10514,22 @@ function Th(e) {
|
|
|
10478
10514
|
}
|
|
10479
10515
|
) : null;
|
|
10480
10516
|
};
|
|
10481
|
-
let
|
|
10517
|
+
let C = null;
|
|
10482
10518
|
switch (g) {
|
|
10483
10519
|
case "fotogaleria":
|
|
10484
|
-
|
|
10520
|
+
C = /* @__PURE__ */ s(N, {});
|
|
10485
10521
|
break;
|
|
10486
10522
|
case "videoYouTube":
|
|
10487
|
-
|
|
10523
|
+
C = /* @__PURE__ */ s(A, {});
|
|
10488
10524
|
break;
|
|
10489
10525
|
case "videoEmbedded":
|
|
10490
|
-
|
|
10526
|
+
C = /* @__PURE__ */ s(v, {});
|
|
10491
10527
|
break;
|
|
10492
10528
|
case "clip":
|
|
10493
|
-
|
|
10529
|
+
C = /* @__PURE__ */ s(b, {});
|
|
10494
10530
|
break;
|
|
10495
10531
|
case "iframe":
|
|
10496
|
-
|
|
10532
|
+
C = /* @__PURE__ */ s(
|
|
10497
10533
|
"div",
|
|
10498
10534
|
{
|
|
10499
10535
|
className: "homeCardIframeContainer",
|
|
@@ -10502,7 +10538,7 @@ function Th(e) {
|
|
|
10502
10538
|
);
|
|
10503
10539
|
break;
|
|
10504
10540
|
default:
|
|
10505
|
-
|
|
10541
|
+
C = /* @__PURE__ */ s(
|
|
10506
10542
|
M,
|
|
10507
10543
|
{
|
|
10508
10544
|
"aria-label": e?.main?.title?.section,
|
|
@@ -10511,7 +10547,7 @@ function Th(e) {
|
|
|
10511
10547
|
href: a?.link?.url,
|
|
10512
10548
|
target: a?.link?.target,
|
|
10513
10549
|
children: /* @__PURE__ */ s(
|
|
10514
|
-
|
|
10550
|
+
Te,
|
|
10515
10551
|
{
|
|
10516
10552
|
preview: r,
|
|
10517
10553
|
isVideo: l,
|
|
@@ -10531,7 +10567,7 @@ function Th(e) {
|
|
|
10531
10567
|
...e.customSectionCardStyles
|
|
10532
10568
|
},
|
|
10533
10569
|
children: [
|
|
10534
|
-
/* @__PURE__ */ s("div", { className: "homeCardContentWrapper", children:
|
|
10570
|
+
/* @__PURE__ */ s("div", { className: "homeCardContentWrapper", children: C }),
|
|
10535
10571
|
/* @__PURE__ */ s("div", { className: "homeCardNewsDescription", children: /* @__PURE__ */ s(
|
|
10536
10572
|
Ge,
|
|
10537
10573
|
{
|
|
@@ -10618,7 +10654,7 @@ const dt = (e) => {
|
|
|
10618
10654
|
"--lineHeightImageNewsTitleMobile": e.isVertical ? "26px" : "36px"
|
|
10619
10655
|
},
|
|
10620
10656
|
children: /* @__PURE__ */ s(
|
|
10621
|
-
|
|
10657
|
+
Te,
|
|
10622
10658
|
{
|
|
10623
10659
|
preview: e.preview,
|
|
10624
10660
|
isLarge: !0,
|
|
@@ -10743,7 +10779,7 @@ const dt = (e) => {
|
|
|
10743
10779
|
}
|
|
10744
10780
|
),
|
|
10745
10781
|
e.banners && /* @__PURE__ */ s(
|
|
10746
|
-
|
|
10782
|
+
Se,
|
|
10747
10783
|
{
|
|
10748
10784
|
banners: e.banners,
|
|
10749
10785
|
name: "main_block_" + (e.rightOnlyBanner ? 1 : 2)
|
|
@@ -11147,14 +11183,14 @@ const kh = (e) => {
|
|
|
11147
11183
|
/* @__PURE__ */ s("section", { className: n(r), children: e.banners?.some(
|
|
11148
11184
|
(u) => u.key === `${e.slot_id}_${o}`
|
|
11149
11185
|
) && /* @__PURE__ */ s(
|
|
11150
|
-
|
|
11186
|
+
Se,
|
|
11151
11187
|
{
|
|
11152
11188
|
banners: e.banners,
|
|
11153
11189
|
name: `${e.slot_id}_${o}`
|
|
11154
11190
|
}
|
|
11155
11191
|
) }, r)
|
|
11156
11192
|
), r++, o++);
|
|
11157
|
-
const l = e.isVideo ?
|
|
11193
|
+
const l = e.isVideo ? Ct(
|
|
11158
11194
|
t[i],
|
|
11159
11195
|
e.showVideoTime,
|
|
11160
11196
|
e.showVideosubtitle,
|
|
@@ -11345,7 +11381,7 @@ const Rh = (e) => {
|
|
|
11345
11381
|
lr,
|
|
11346
11382
|
{
|
|
11347
11383
|
goTo: e.goTo,
|
|
11348
|
-
mainNew:
|
|
11384
|
+
mainNew: Ct(r),
|
|
11349
11385
|
paths: e.paths
|
|
11350
11386
|
}
|
|
11351
11387
|
),
|
|
@@ -11357,7 +11393,7 @@ const Rh = (e) => {
|
|
|
11357
11393
|
target: r?.info?.link.target,
|
|
11358
11394
|
"aria-label": "Video",
|
|
11359
11395
|
children: /* @__PURE__ */ s(
|
|
11360
|
-
|
|
11396
|
+
Te,
|
|
11361
11397
|
{
|
|
11362
11398
|
preview: {
|
|
11363
11399
|
sizes: r?.main?.image.sizes,
|
|
@@ -11373,7 +11409,7 @@ const Rh = (e) => {
|
|
|
11373
11409
|
/* @__PURE__ */ p("div", { className: "sass-bd-dv-newsContent", children: [
|
|
11374
11410
|
/* @__PURE__ */ s("div", { className: "banner-context", style: { order: 1 }, children: e.banner }),
|
|
11375
11411
|
Array.isArray(i) && i.map((l, c) => {
|
|
11376
|
-
const d =
|
|
11412
|
+
const d = Ct(l), u = {
|
|
11377
11413
|
...d,
|
|
11378
11414
|
main: {
|
|
11379
11415
|
...d.main,
|
|
@@ -11412,7 +11448,7 @@ const Rh = (e) => {
|
|
|
11412
11448
|
target: e?.info?.link?.target,
|
|
11413
11449
|
title: e.main?.title?.section,
|
|
11414
11450
|
href: t ? e.info.link.url : e?.info?.section?.url,
|
|
11415
|
-
children: /* @__PURE__ */ s(
|
|
11451
|
+
children: /* @__PURE__ */ s(Te, { preview: e.preview })
|
|
11416
11452
|
}
|
|
11417
11453
|
),
|
|
11418
11454
|
/* @__PURE__ */ s("div", { className: "sass-com-sc6-textContent", children: /* @__PURE__ */ s(Ge, { ...e, paths: e.paths }) })
|
|
@@ -11636,8 +11672,8 @@ const Rh = (e) => {
|
|
|
11636
11672
|
readestTitle: l.readestTitle ?? "",
|
|
11637
11673
|
paths: e.paths,
|
|
11638
11674
|
readestCustomStyles: e.readestCustomStyles,
|
|
11639
|
-
bannerTop: /* @__PURE__ */ s(
|
|
11640
|
-
banner: /* @__PURE__ */ s(
|
|
11675
|
+
bannerTop: /* @__PURE__ */ s(Se, { banners: a ?? [], name: "right_1" }),
|
|
11676
|
+
banner: /* @__PURE__ */ s(Se, { banners: a ?? [], name: "right_2" }),
|
|
11641
11677
|
children: /* @__PURE__ */ s("section", { className: "sass-pg-sec-content", children: t.length > 0 ? /* @__PURE__ */ s(
|
|
11642
11678
|
Qs,
|
|
11643
11679
|
{
|
|
@@ -11661,7 +11697,7 @@ const Rh = (e) => {
|
|
|
11661
11697
|
{
|
|
11662
11698
|
className: "sass-pg-sec-itemContent banner-context",
|
|
11663
11699
|
children: /* @__PURE__ */ s(
|
|
11664
|
-
|
|
11700
|
+
Se,
|
|
11665
11701
|
{
|
|
11666
11702
|
banners: a ?? [],
|
|
11667
11703
|
name: `block_2_${d[m + 1]}`
|
|
@@ -11727,7 +11763,7 @@ const Rh = (e) => {
|
|
|
11727
11763
|
),
|
|
11728
11764
|
children: Array.isArray(t) && t?.map((h, m) => /* @__PURE__ */ p(Rn, { children: [
|
|
11729
11765
|
u.includes(m + 1) && /* @__PURE__ */ s("div", { className: "sass-pg-sec-ItemCustomContent", children: /* @__PURE__ */ s(
|
|
11730
|
-
|
|
11766
|
+
Se,
|
|
11731
11767
|
{
|
|
11732
11768
|
banners: a ?? [],
|
|
11733
11769
|
name: `block_2_${d[m + 1]}`
|
|
@@ -12034,7 +12070,7 @@ const Rh = (e) => {
|
|
|
12034
12070
|
const S = await he(y.url);
|
|
12035
12071
|
return y.width < 200 ? `<source srcset="${S}" media="(width < 750px)"/>` : `<source srcset="${S}" media="(width >= 750px)"/>`;
|
|
12036
12072
|
}) || []
|
|
12037
|
-
)).reduce((y, S) => y += S, ""), A = l.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/),
|
|
12073
|
+
)).reduce((y, S) => y += S, ""), A = l.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/), v = A ? A[0] : "", N = `
|
|
12038
12074
|
<span data-src="${c}">
|
|
12039
12075
|
<picture style='display: flex'>
|
|
12040
12076
|
${b}
|
|
@@ -12045,8 +12081,8 @@ const Rh = (e) => {
|
|
|
12045
12081
|
<a class="title" href="${f}">${g}</a>
|
|
12046
12082
|
</div>
|
|
12047
12083
|
</span>
|
|
12048
|
-
`,
|
|
12049
|
-
o = o.replace(l,
|
|
12084
|
+
`, C = l.replace(v, N);
|
|
12085
|
+
o = o.replace(l, C);
|
|
12050
12086
|
}
|
|
12051
12087
|
return o;
|
|
12052
12088
|
}, Xc = (e) => e.replace(/<p>(\s| )+<\/p>/g, ""), ed = (e) => {
|
|
@@ -12100,14 +12136,14 @@ async function nd(e, t) {
|
|
|
12100
12136
|
allowfullscreen
|
|
12101
12137
|
style="width: 100%; height: auto; min-height: 400px;"
|
|
12102
12138
|
src="${f.main?.code || ""}"></iframe>` : g = f.main?.code || "";
|
|
12103
|
-
const
|
|
12139
|
+
const v = A || f.main?.description || "";
|
|
12104
12140
|
h = `
|
|
12105
12141
|
<figure class="videoFigure">
|
|
12106
12142
|
${w && w.data && w.data.data ? `<script type="application/ld+json">${nn(
|
|
12107
12143
|
JSON.stringify(w.data.data)
|
|
12108
12144
|
)}<\/script>` : ""}
|
|
12109
12145
|
${g}
|
|
12110
|
-
${
|
|
12146
|
+
${v ? `<figcaption>${v}</figcaption>` : ""}
|
|
12111
12147
|
</figure>
|
|
12112
12148
|
`;
|
|
12113
12149
|
}
|
|
@@ -12172,7 +12208,7 @@ const ad = async ({
|
|
|
12172
12208
|
)
|
|
12173
12209
|
] }),
|
|
12174
12210
|
/* @__PURE__ */ s("h2", { className: "sass-com-bnl-contentTitle", children: e[0]?.list.integrated ? (await c).title : `${(await c).index}. ${(await c).title}` }),
|
|
12175
|
-
(await c).image && /* @__PURE__ */ s(
|
|
12211
|
+
(await c).image && /* @__PURE__ */ s(Te, { preview: (await c).image, isLarge: !0 }),
|
|
12176
12212
|
/* @__PURE__ */ s(
|
|
12177
12213
|
"div",
|
|
12178
12214
|
{
|
|
@@ -12197,7 +12233,7 @@ const ad = async ({
|
|
|
12197
12233
|
) })
|
|
12198
12234
|
] }) }, d),
|
|
12199
12235
|
Ys[d] && /* @__PURE__ */ s(
|
|
12200
|
-
|
|
12236
|
+
Se,
|
|
12201
12237
|
{
|
|
12202
12238
|
banners: n,
|
|
12203
12239
|
name: "list_" + Ys[d],
|
|
@@ -12376,7 +12412,7 @@ const od = () => /* @__PURE__ */ p("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
12376
12412
|
visibleItems: 1,
|
|
12377
12413
|
pagination: !0,
|
|
12378
12414
|
cardGap: 0,
|
|
12379
|
-
children: o && o.map((i, l) => /* @__PURE__ */ s(
|
|
12415
|
+
children: o && o.map((i, l) => /* @__PURE__ */ s(Te, { preview: i, priorityHigh: !0 }, l))
|
|
12380
12416
|
}
|
|
12381
12417
|
),
|
|
12382
12418
|
/* @__PURE__ */ s("div", { className: "sass-com-in2-description", children: o && o[0]?.description })
|
|
@@ -13055,7 +13091,7 @@ const wd = async (e) => {
|
|
|
13055
13091
|
), yd = (e) => e.replace(
|
|
13056
13092
|
/<span\b[^>]*class=["'][^"']*video__title[^"']*["'][^>]*>[\s\S]*?<\/span>/gi,
|
|
13057
13093
|
""
|
|
13058
|
-
),
|
|
13094
|
+
), vd = async (e) => {
|
|
13059
13095
|
const { PUBLIC_IS_OFFLINE: t } = R();
|
|
13060
13096
|
if (!(t === "true")) {
|
|
13061
13097
|
const d = /<img\b[^>]*\bsrc=["']([^"']+)["']/g, u = [...e.matchAll(d)], h = {};
|
|
@@ -13088,26 +13124,26 @@ const wd = async (e) => {
|
|
|
13088
13124
|
if (!d) break;
|
|
13089
13125
|
const u = d[0], h = d[1] ?? "";
|
|
13090
13126
|
r.add(h);
|
|
13091
|
-
const m = u.match(/<figcaption[^>]*>([\s\S]*?)<\/figcaption>/i), w = m ? m[1].replace(/<[^>]+>/g, "").trim() : null, f = u.match(/<img\b[^>]*\balt=["']([^"']*)["']/), g = u.match(/<img\b[^>]*\btitle=["']([^"']*)["']/), b = w || f?.[1] || g?.[1] || "imagen", A = h.match(/__scale=([^&"']+)/),
|
|
13092
|
-
let N = 0,
|
|
13093
|
-
if (
|
|
13094
|
-
const D =
|
|
13095
|
-
N = D ? parseInt(D[1]) : 0,
|
|
13127
|
+
const m = u.match(/<figcaption[^>]*>([\s\S]*?)<\/figcaption>/i), w = m ? m[1].replace(/<[^>]+>/g, "").trim() : null, f = u.match(/<img\b[^>]*\balt=["']([^"']*)["']/), g = u.match(/<img\b[^>]*\btitle=["']([^"']*)["']/), b = w || f?.[1] || g?.[1] || "imagen", A = h.match(/__scale=([^&"']+)/), v = A ? decodeURIComponent(A[1]) : null;
|
|
13128
|
+
let N = 0, C = 0;
|
|
13129
|
+
if (v) {
|
|
13130
|
+
const D = v.match(/w:(\d+)/), j = v.match(/h:(\d+)/);
|
|
13131
|
+
N = D ? parseInt(D[1]) : 0, C = j ? parseInt(j[1]) : 0;
|
|
13096
13132
|
}
|
|
13097
13133
|
const S = {
|
|
13098
13134
|
preview: {
|
|
13099
13135
|
sizes: [
|
|
13100
13136
|
{
|
|
13101
|
-
scale:
|
|
13137
|
+
scale: v || `w:${N},h:${C},t:2`,
|
|
13102
13138
|
url: h,
|
|
13103
13139
|
width: N,
|
|
13104
|
-
height:
|
|
13140
|
+
height: C
|
|
13105
13141
|
}
|
|
13106
13142
|
],
|
|
13107
13143
|
original: {
|
|
13108
13144
|
url: h.split("?")[0],
|
|
13109
13145
|
width: N,
|
|
13110
|
-
height:
|
|
13146
|
+
height: C
|
|
13111
13147
|
},
|
|
13112
13148
|
copyright: !1,
|
|
13113
13149
|
description: b,
|
|
@@ -13123,25 +13159,25 @@ const wd = async (e) => {
|
|
|
13123
13159
|
const u = d[0], h = d[1] ?? "";
|
|
13124
13160
|
if (r.has(h)) continue;
|
|
13125
13161
|
const m = u.match(/\balt=["']([^"']*)["']/), w = u.match(/\btitle=["']([^"']*)["']/), f = m?.[1] || w?.[1] || "imagen", g = h.match(/__scale=([^&"']+)/), b = g ? decodeURIComponent(g[1]) : null;
|
|
13126
|
-
let A = 0,
|
|
13162
|
+
let A = 0, v = 0;
|
|
13127
13163
|
if (b) {
|
|
13128
13164
|
const k = b.match(/w:(\d+)/), L = b.match(/h:(\d+)/);
|
|
13129
|
-
A = k ? parseInt(k[1]) : 0,
|
|
13165
|
+
A = k ? parseInt(k[1]) : 0, v = L ? parseInt(L[1]) : 0;
|
|
13130
13166
|
}
|
|
13131
|
-
const
|
|
13167
|
+
const C = {
|
|
13132
13168
|
preview: {
|
|
13133
13169
|
sizes: [
|
|
13134
13170
|
{
|
|
13135
|
-
scale: b || `w:${A},h:${
|
|
13171
|
+
scale: b || `w:${A},h:${v},t:2`,
|
|
13136
13172
|
url: h,
|
|
13137
13173
|
width: A,
|
|
13138
|
-
height:
|
|
13174
|
+
height: v
|
|
13139
13175
|
}
|
|
13140
13176
|
],
|
|
13141
13177
|
original: {
|
|
13142
13178
|
url: h.split("?")[0],
|
|
13143
13179
|
width: A,
|
|
13144
|
-
height:
|
|
13180
|
+
height: v
|
|
13145
13181
|
},
|
|
13146
13182
|
copyright: !1,
|
|
13147
13183
|
description: f,
|
|
@@ -13149,11 +13185,11 @@ const wd = async (e) => {
|
|
|
13149
13185
|
},
|
|
13150
13186
|
isLarge: !1,
|
|
13151
13187
|
priorityHigh: !1
|
|
13152
|
-
}, S = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(
|
|
13188
|
+
}, S = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(C))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
|
|
13153
13189
|
a = a.replace(u, S);
|
|
13154
13190
|
}
|
|
13155
13191
|
return a;
|
|
13156
|
-
},
|
|
13192
|
+
}, Cd = (e) => e.replace(
|
|
13157
13193
|
/<script\b([^>]*)>/gi,
|
|
13158
13194
|
(t, n) => n.includes("type=") ? `<script ${n.replace(/type\s*=\s*["'][^"']*["']/i, 'type="text/deferred-banner"')}>` : `<script ${n} type="text/deferred-banner">`
|
|
13159
13195
|
), Nd = (e, t, n) => {
|
|
@@ -13189,7 +13225,7 @@ const wd = async (e) => {
|
|
|
13189
13225
|
const g = l ? l.get(c) : t.find((A) => A.key === `block_2_${i[c]}`);
|
|
13190
13226
|
if (!g || !g.show) return m;
|
|
13191
13227
|
const b = Qn(g.value, n);
|
|
13192
|
-
return b ? `${m}<div class="banner-context">${o ?
|
|
13228
|
+
return b ? `${m}<div class="banner-context">${o ? Cd(b) : b}</div>` : m;
|
|
13193
13229
|
}
|
|
13194
13230
|
return m;
|
|
13195
13231
|
}
|
|
@@ -13219,15 +13255,15 @@ const wd = async (e) => {
|
|
|
13219
13255
|
let o = e;
|
|
13220
13256
|
for (const i of r) {
|
|
13221
13257
|
const l = i[0], c = i[1] ?? "", d = n.find(
|
|
13222
|
-
(
|
|
13258
|
+
(v) => c.includes(v?.[0]?.info.link.internal || "")
|
|
13223
13259
|
);
|
|
13224
13260
|
if (!d || !d[0]) continue;
|
|
13225
13261
|
const u = d[0].preview?.sizes?.[0], h = u ? await he(u.url) : "", m = d[0].info.section?.url ?? "#", w = d[0].info.section?.name ?? "Sección", f = d[0].info.link?.url ?? "#", g = d[0].main?.title.article ?? "Título", b = (await Promise.all(
|
|
13226
|
-
d[0].preview?.sizes?.map(async (
|
|
13227
|
-
const
|
|
13228
|
-
return N === 0 ? `<source srcset="${
|
|
13262
|
+
d[0].preview?.sizes?.map(async (v, N) => {
|
|
13263
|
+
const C = await he(v.url);
|
|
13264
|
+
return N === 0 ? `<source srcset="${C}" media="(width >= 900px)"/>` : `<source srcset="${C}" media="(width < 900px)"/>`;
|
|
13229
13265
|
})
|
|
13230
|
-
)).reduce((
|
|
13266
|
+
)).reduce((v, N) => v += N, ""), A = `
|
|
13231
13267
|
<span data-src="${c}">
|
|
13232
13268
|
<picture style='display: flex'>
|
|
13233
13269
|
${b}
|
|
@@ -13253,12 +13289,12 @@ async function Ed(e, t) {
|
|
|
13253
13289
|
let c = 1, d = l;
|
|
13254
13290
|
const u = e.length;
|
|
13255
13291
|
for (; d < u && c > 0; ) {
|
|
13256
|
-
const A = e.indexOf("<div", d),
|
|
13257
|
-
if (
|
|
13292
|
+
const A = e.indexOf("<div", d), v = e.indexOf("</div>", d);
|
|
13293
|
+
if (v === -1) {
|
|
13258
13294
|
d = u;
|
|
13259
13295
|
break;
|
|
13260
13296
|
}
|
|
13261
|
-
A !== -1 && A <
|
|
13297
|
+
A !== -1 && A < v ? (c += 1, d = A + 4) : (c -= 1, d = v + 6);
|
|
13262
13298
|
}
|
|
13263
13299
|
const h = d, m = e.slice(i, h);
|
|
13264
13300
|
let w = null;
|
|
@@ -13268,9 +13304,9 @@ async function Ed(e, t) {
|
|
|
13268
13304
|
const A = g[1];
|
|
13269
13305
|
if (!A) break;
|
|
13270
13306
|
if (/data-type\s*=\s*["']?video["']?/i.test(A)) {
|
|
13271
|
-
const
|
|
13272
|
-
if (
|
|
13273
|
-
w =
|
|
13307
|
+
const v = A.match(/data-src\s*=\s*["']([^"']+)["']/i);
|
|
13308
|
+
if (v) {
|
|
13309
|
+
w = v[1] ?? "";
|
|
13274
13310
|
break;
|
|
13275
13311
|
}
|
|
13276
13312
|
}
|
|
@@ -13280,42 +13316,42 @@ async function Ed(e, t) {
|
|
|
13280
13316
|
/<span\b[^>]*data-src=["'][^"']+["'][^>]*>/i
|
|
13281
13317
|
);
|
|
13282
13318
|
if (A) {
|
|
13283
|
-
const
|
|
13284
|
-
|
|
13319
|
+
const v = A[0].match(/data-src\s*=\s*["']([^"']+)["']/i);
|
|
13320
|
+
v && (w = v[1] ?? "");
|
|
13285
13321
|
}
|
|
13286
13322
|
}
|
|
13287
13323
|
let b = "";
|
|
13288
13324
|
if (w)
|
|
13289
13325
|
try {
|
|
13290
|
-
const A = await t.iframe({ path: w }),
|
|
13326
|
+
const A = await t.iframe({ path: w }), v = t.schema ? await t.schema(w) : null;
|
|
13291
13327
|
if (A && A.data) {
|
|
13292
13328
|
const N = A.data.data[0];
|
|
13293
|
-
let
|
|
13329
|
+
let C = "";
|
|
13294
13330
|
const y = m.match(
|
|
13295
13331
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
13296
13332
|
), S = y && y[1] ? y[1].trim() : "";
|
|
13297
|
-
N.info && N.info.type === "video-youtube" ?
|
|
13333
|
+
N.info && N.info.type === "video-youtube" ? C = `<iframe
|
|
13298
13334
|
loading="lazy"
|
|
13299
13335
|
frameborder="0"
|
|
13300
13336
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
13301
13337
|
referrerpolicy="strict-origin-when-cross-origin"
|
|
13302
13338
|
allowfullscreen
|
|
13303
13339
|
style="position: relative!important;"
|
|
13304
|
-
src="https://www.youtube.com/embed/${N.main?.code || N.main?.youtubeid || ""}"></iframe>` : N.info && N.info.type === "video-link" ?
|
|
13340
|
+
src="https://www.youtube.com/embed/${N.main?.code || N.main?.youtubeid || ""}"></iframe>` : N.info && N.info.type === "video-link" ? C = `<iframe
|
|
13305
13341
|
loading="lazy"
|
|
13306
13342
|
frameborder="0"
|
|
13307
13343
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
13308
13344
|
referrerpolicy="strict-origin-when-cross-origin"
|
|
13309
13345
|
allowfullscreen
|
|
13310
13346
|
style="position: relative!important;"
|
|
13311
|
-
src="${N.main?.code || ""}"></iframe>` :
|
|
13347
|
+
src="${N.main?.code || ""}"></iframe>` : C = N.main?.code || "";
|
|
13312
13348
|
const k = S || N.main?.description || "";
|
|
13313
13349
|
b = `
|
|
13314
13350
|
<figure class="videoFigure">
|
|
13315
|
-
${
|
|
13316
|
-
JSON.stringify(
|
|
13351
|
+
${v && v.data && v.data.data ? `<script type="application/ld+json">${nn(
|
|
13352
|
+
JSON.stringify(v.data.data)
|
|
13317
13353
|
)}<\/script>` : ""}
|
|
13318
|
-
${
|
|
13354
|
+
${C}
|
|
13319
13355
|
<figcaption>${k}</figcaption>
|
|
13320
13356
|
</figure>
|
|
13321
13357
|
`;
|
|
@@ -13345,7 +13381,7 @@ async function Td(e) {
|
|
|
13345
13381
|
m = m.replace(
|
|
13346
13382
|
/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,
|
|
13347
13383
|
""
|
|
13348
|
-
), m = m.replace(/ /g, ""), m = Nd(m, n, h), m = xd(m), m = await
|
|
13384
|
+
), m = m.replace(/ /g, ""), m = Nd(m, n, h), m = xd(m), m = await vd(m), m = await Sd(
|
|
13349
13385
|
m,
|
|
13350
13386
|
e.texts,
|
|
13351
13387
|
a
|
|
@@ -13377,7 +13413,7 @@ async function Td(e) {
|
|
|
13377
13413
|
)
|
|
13378
13414
|
}
|
|
13379
13415
|
),
|
|
13380
|
-
/* @__PURE__ */ s(
|
|
13416
|
+
/* @__PURE__ */ s(Se, { banners: n, name: "block_1", scope: h }),
|
|
13381
13417
|
/* @__PURE__ */ s("div", { className: "sass-pg-nrs-journalistArticleContent", children: f === "op1" ? /* @__PURE__ */ s(
|
|
13382
13418
|
id,
|
|
13383
13419
|
{
|
|
@@ -13489,7 +13525,7 @@ const kd = (e) => {
|
|
|
13489
13525
|
headerSectionStyles: A
|
|
13490
13526
|
}
|
|
13491
13527
|
),
|
|
13492
|
-
/* @__PURE__ */ s(
|
|
13528
|
+
/* @__PURE__ */ s(Se, { banners: l ?? [], name: "block_3", scope: f })
|
|
13493
13529
|
] });
|
|
13494
13530
|
}, Bh = async (e) => {
|
|
13495
13531
|
const {
|
|
@@ -13529,8 +13565,8 @@ const kd = (e) => {
|
|
|
13529
13565
|
itemList: l,
|
|
13530
13566
|
ranking: t,
|
|
13531
13567
|
readestCustomStyles: e.readestCustomStyles,
|
|
13532
|
-
bannerTop: /* @__PURE__ */ s(
|
|
13533
|
-
banner: /* @__PURE__ */ s(
|
|
13568
|
+
bannerTop: /* @__PURE__ */ s(Se, { banners: n ?? [], name: "right_1", scope: h }),
|
|
13569
|
+
banner: /* @__PURE__ */ s(Se, { banners: n ?? [], name: "right_2", scope: h }),
|
|
13534
13570
|
complement: /* @__PURE__ */ p("div", { id: "comentarios", className: "sass-pg-news-complementContent", suppressHydrationWarning: !0, children: [
|
|
13535
13571
|
a.length > 0 && /* @__PURE__ */ s(
|
|
13536
13572
|
Tc,
|
|
@@ -13685,10 +13721,10 @@ const Re = [
|
|
|
13685
13721
|
{ label: "Usa un símbolo", test: Re[4] }
|
|
13686
13722
|
];
|
|
13687
13723
|
function _h({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
13688
|
-
const a = { ...Ld, ...e?.comentarios }, r =
|
|
13724
|
+
const a = { ...Ld, ...e?.comentarios }, r = vt(
|
|
13689
13725
|
() => Rd(e?.comentarios?.registerForm),
|
|
13690
13726
|
[e?.comentarios?.registerForm]
|
|
13691
|
-
), o =
|
|
13727
|
+
), o = vt(
|
|
13692
13728
|
() => [
|
|
13693
13729
|
{ label: a.passwordRuleMinLength, test: Re[0] },
|
|
13694
13730
|
{ label: a.passwordRuleNumber, test: Re[1] },
|
|
@@ -13708,7 +13744,7 @@ function _h({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
13708
13744
|
window.location.href = `/api/auth/login?redirect=${y}`;
|
|
13709
13745
|
}, A = (y, S) => {
|
|
13710
13746
|
l((k) => ({ ...k, [y]: S }));
|
|
13711
|
-
},
|
|
13747
|
+
}, v = async (y) => {
|
|
13712
13748
|
y.preventDefault(), w(null), h(!0);
|
|
13713
13749
|
try {
|
|
13714
13750
|
const S = Object.keys(r).filter((H) => !["username", "password", "confirmPassword"].includes(H)).map((H) => ({ Name: H, Value: i[H] }));
|
|
@@ -13787,7 +13823,7 @@ function _h({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
13787
13823
|
} finally {
|
|
13788
13824
|
h(!1);
|
|
13789
13825
|
}
|
|
13790
|
-
},
|
|
13826
|
+
}, C = i.password || "";
|
|
13791
13827
|
return /* @__PURE__ */ p($, { children: [
|
|
13792
13828
|
f === "register" && /* @__PURE__ */ p($, { children: [
|
|
13793
13829
|
/* @__PURE__ */ p("button", { onClick: b, className: "sass-pg-login-google", children: [
|
|
@@ -13805,7 +13841,7 @@ function _h({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
13805
13841
|
/* @__PURE__ */ p(
|
|
13806
13842
|
"form",
|
|
13807
13843
|
{
|
|
13808
|
-
onSubmit:
|
|
13844
|
+
onSubmit: v,
|
|
13809
13845
|
className: "sass-pg-login-form",
|
|
13810
13846
|
"data-error": m ? "true" : "false",
|
|
13811
13847
|
children: [
|
|
@@ -13823,7 +13859,7 @@ function _h({ texts: e, API_ENV: t, termsAndConditionsUrl: n }) {
|
|
|
13823
13859
|
}
|
|
13824
13860
|
),
|
|
13825
13861
|
y === "password" && /* @__PURE__ */ s("div", { className: "sass-pg-login-passwordChecker", children: o.map((k, L) => {
|
|
13826
|
-
const D = k.test(
|
|
13862
|
+
const D = k.test(C);
|
|
13827
13863
|
return /* @__PURE__ */ p(
|
|
13828
13864
|
"div",
|
|
13829
13865
|
{
|
|
@@ -13958,7 +13994,7 @@ function qh({
|
|
|
13958
13994
|
API_ENV: e,
|
|
13959
13995
|
texts: t
|
|
13960
13996
|
}) {
|
|
13961
|
-
const n = { ...Pd, ...t?.comentarios }, [a, r] = z("login"), [o, i] = z(""), [l, c] = z(""), [d, u] = z(""), [h, m] = z(""), [w, f] = z(""), [g, b] = z(!1), [A,
|
|
13997
|
+
const n = { ...Pd, ...t?.comentarios }, [a, r] = z("login"), [o, i] = z(""), [l, c] = z(""), [d, u] = z(""), [h, m] = z(""), [w, f] = z(""), [g, b] = z(!1), [A, v] = z(!1), [N, C] = z(null);
|
|
13962
13998
|
ue.useEffect(() => {
|
|
13963
13999
|
if (typeof window > "u") return;
|
|
13964
14000
|
window.location.hash.includes("forgot") && a === "login" && r("forgot"), a === "login" && S();
|
|
@@ -13985,10 +14021,10 @@ function qh({
|
|
|
13985
14021
|
onSubmit: async (P) => {
|
|
13986
14022
|
if (!A) {
|
|
13987
14023
|
if (P.preventDefault(), o === "" || l === "") {
|
|
13988
|
-
|
|
14024
|
+
C("Complete todos los campos");
|
|
13989
14025
|
return;
|
|
13990
14026
|
}
|
|
13991
|
-
|
|
14027
|
+
C(null), v(!0);
|
|
13992
14028
|
try {
|
|
13993
14029
|
const H = e.PUBLIC_ENV === "local" ? "token" : await bn("comment_login", e.CAPTCHA_KEY || "");
|
|
13994
14030
|
if (!H) throw new Error("Captcha token no generado");
|
|
@@ -14005,14 +14041,14 @@ function qh({
|
|
|
14005
14041
|
await S();
|
|
14006
14042
|
return;
|
|
14007
14043
|
} catch (H) {
|
|
14008
|
-
|
|
14044
|
+
C(H?.message || "Error inesperado");
|
|
14009
14045
|
} finally {
|
|
14010
|
-
|
|
14046
|
+
v(!1);
|
|
14011
14047
|
}
|
|
14012
14048
|
}
|
|
14013
14049
|
},
|
|
14014
14050
|
onForgot: () => {
|
|
14015
|
-
|
|
14051
|
+
C(null), r("forgot");
|
|
14016
14052
|
},
|
|
14017
14053
|
handleGoogleLogin: async () => {
|
|
14018
14054
|
if (e.PUBLIC_ENV === "local") {
|
|
@@ -14035,7 +14071,7 @@ function qh({
|
|
|
14035
14071
|
error: N,
|
|
14036
14072
|
onSubmit: async (P) => {
|
|
14037
14073
|
if (!A) {
|
|
14038
|
-
P.preventDefault(),
|
|
14074
|
+
P.preventDefault(), C(null), v(!0);
|
|
14039
14075
|
try {
|
|
14040
14076
|
const H = await fetch("/api/auth/forgot-password", {
|
|
14041
14077
|
method: "POST",
|
|
@@ -14048,14 +14084,14 @@ function qh({
|
|
|
14048
14084
|
}
|
|
14049
14085
|
c(""), r("changePassword");
|
|
14050
14086
|
} catch (H) {
|
|
14051
|
-
|
|
14087
|
+
C(H?.message || "Error inesperado");
|
|
14052
14088
|
} finally {
|
|
14053
|
-
|
|
14089
|
+
v(!1);
|
|
14054
14090
|
}
|
|
14055
14091
|
}
|
|
14056
14092
|
},
|
|
14057
14093
|
onBack: () => {
|
|
14058
|
-
|
|
14094
|
+
C(null), r("login");
|
|
14059
14095
|
},
|
|
14060
14096
|
t: n
|
|
14061
14097
|
}
|
|
@@ -14077,16 +14113,16 @@ function qh({
|
|
|
14077
14113
|
onSubmit: async (P) => {
|
|
14078
14114
|
if (A) return;
|
|
14079
14115
|
if (P.preventDefault(), h !== w) {
|
|
14080
|
-
|
|
14116
|
+
C("Las contraseñas no coinciden");
|
|
14081
14117
|
return;
|
|
14082
14118
|
}
|
|
14083
14119
|
if (cr.some(
|
|
14084
14120
|
(Q) => !Q.test(h)
|
|
14085
14121
|
)) {
|
|
14086
|
-
|
|
14122
|
+
C("La contraseña no cumple con los requisitos");
|
|
14087
14123
|
return;
|
|
14088
14124
|
}
|
|
14089
|
-
|
|
14125
|
+
C(null), v(!0);
|
|
14090
14126
|
try {
|
|
14091
14127
|
const Q = await fetch("/api/auth/confirm-forgot-password", {
|
|
14092
14128
|
method: "POST",
|
|
@@ -14099,13 +14135,13 @@ function qh({
|
|
|
14099
14135
|
}
|
|
14100
14136
|
r("feedback");
|
|
14101
14137
|
} catch (Q) {
|
|
14102
|
-
|
|
14138
|
+
C(Q?.message || "Error inesperado");
|
|
14103
14139
|
} finally {
|
|
14104
|
-
|
|
14140
|
+
v(!1);
|
|
14105
14141
|
}
|
|
14106
14142
|
},
|
|
14107
14143
|
onBack: () => {
|
|
14108
|
-
|
|
14144
|
+
C(null), r("forgot");
|
|
14109
14145
|
},
|
|
14110
14146
|
t: n
|
|
14111
14147
|
}
|
|
@@ -14114,7 +14150,7 @@ function qh({
|
|
|
14114
14150
|
qd,
|
|
14115
14151
|
{
|
|
14116
14152
|
onBackToLogin: () => {
|
|
14117
|
-
|
|
14153
|
+
C(null), r("login");
|
|
14118
14154
|
},
|
|
14119
14155
|
t: n
|
|
14120
14156
|
}
|
|
@@ -14424,7 +14460,7 @@ const jh = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
14424
14460
|
hasShadow: a = !1,
|
|
14425
14461
|
BackDropAuxHeigthMobile: r
|
|
14426
14462
|
//isVisible,
|
|
14427
|
-
} = e, o = Za(), i =
|
|
14463
|
+
} = e, o = Za(), i = vt(() => {
|
|
14428
14464
|
const m = e?.preview?.sizes;
|
|
14429
14465
|
if (m && Array.isArray(m) && m.length > 0) return m;
|
|
14430
14466
|
const w = e?.preview?.original;
|
|
@@ -14577,13 +14613,13 @@ const jh = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
14577
14613
|
const {
|
|
14578
14614
|
PUBLIC_API_FRONT: b,
|
|
14579
14615
|
PUBLIC_X_SECURITY_TOKEN: A,
|
|
14580
|
-
PUBLIC_API_PATH_VERSION:
|
|
14616
|
+
PUBLIC_API_PATH_VERSION: v,
|
|
14581
14617
|
PUBLIC_PUBLICATION_ID: N
|
|
14582
14618
|
} = o;
|
|
14583
|
-
if (!b || !A || !N || !
|
|
14619
|
+
if (!b || !A || !N || !v)
|
|
14584
14620
|
throw new Error("Missing required environment variables");
|
|
14585
|
-
const
|
|
14586
|
-
`${b}${
|
|
14621
|
+
const C = await re.get(
|
|
14622
|
+
`${b}${v}/news-list-section`,
|
|
14587
14623
|
{
|
|
14588
14624
|
params: {
|
|
14589
14625
|
size: c + 1,
|
|
@@ -14599,8 +14635,8 @@ const jh = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
|
|
|
14599
14635
|
}
|
|
14600
14636
|
);
|
|
14601
14637
|
return {
|
|
14602
|
-
...
|
|
14603
|
-
data:
|
|
14638
|
+
...C.data,
|
|
14639
|
+
data: C.data.data.filter(
|
|
14604
14640
|
(y) => y.info.link.internal !== t
|
|
14605
14641
|
)
|
|
14606
14642
|
};
|
|
@@ -14987,7 +15023,7 @@ var Ks;
|
|
|
14987
15023
|
function Kd() {
|
|
14988
15024
|
if (Ks) return oe;
|
|
14989
15025
|
Ks = 1;
|
|
14990
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118,
|
|
15026
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
|
|
14991
15027
|
function N(y) {
|
|
14992
15028
|
if (typeof y == "object" && y !== null) {
|
|
14993
15029
|
var S = y.$$typeof;
|
|
@@ -15018,12 +15054,12 @@ function Kd() {
|
|
|
15018
15054
|
}
|
|
15019
15055
|
}
|
|
15020
15056
|
}
|
|
15021
|
-
function
|
|
15057
|
+
function C(y) {
|
|
15022
15058
|
return N(y) === d;
|
|
15023
15059
|
}
|
|
15024
15060
|
return oe.AsyncMode = c, oe.ConcurrentMode = d, oe.ContextConsumer = l, oe.ContextProvider = i, oe.Element = t, oe.ForwardRef = u, oe.Fragment = a, oe.Lazy = f, oe.Memo = w, oe.Portal = n, oe.Profiler = o, oe.StrictMode = r, oe.Suspense = h, oe.isAsyncMode = function(y) {
|
|
15025
|
-
return
|
|
15026
|
-
}, oe.isConcurrentMode =
|
|
15061
|
+
return C(y) || N(y) === c;
|
|
15062
|
+
}, oe.isConcurrentMode = C, oe.isContextConsumer = function(y) {
|
|
15027
15063
|
return N(y) === l;
|
|
15028
15064
|
}, oe.isContextProvider = function(y) {
|
|
15029
15065
|
return N(y) === i;
|
|
@@ -15046,19 +15082,19 @@ function Kd() {
|
|
|
15046
15082
|
}, oe.isSuspense = function(y) {
|
|
15047
15083
|
return N(y) === h;
|
|
15048
15084
|
}, oe.isValidElementType = function(y) {
|
|
15049
|
-
return typeof y == "string" || typeof y == "function" || y === a || y === d || y === o || y === r || y === h || y === m || typeof y == "object" && y !== null && (y.$$typeof === f || y.$$typeof === w || y.$$typeof === i || y.$$typeof === l || y.$$typeof === u || y.$$typeof === b || y.$$typeof === A || y.$$typeof ===
|
|
15085
|
+
return typeof y == "string" || typeof y == "function" || y === a || y === d || y === o || y === r || y === h || y === m || typeof y == "object" && y !== null && (y.$$typeof === f || y.$$typeof === w || y.$$typeof === i || y.$$typeof === l || y.$$typeof === u || y.$$typeof === b || y.$$typeof === A || y.$$typeof === v || y.$$typeof === g);
|
|
15050
15086
|
}, oe.typeOf = N, oe;
|
|
15051
15087
|
}
|
|
15052
15088
|
var ie = {};
|
|
15053
15089
|
var Js;
|
|
15054
15090
|
function Jd() {
|
|
15055
15091
|
return Js || (Js = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
15056
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118,
|
|
15092
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
|
|
15057
15093
|
function N(q) {
|
|
15058
15094
|
return typeof q == "string" || typeof q == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
15059
|
-
q === a || q === d || q === o || q === r || q === h || q === m || typeof q == "object" && q !== null && (q.$$typeof === f || q.$$typeof === w || q.$$typeof === i || q.$$typeof === l || q.$$typeof === u || q.$$typeof === b || q.$$typeof === A || q.$$typeof ===
|
|
15095
|
+
q === a || q === d || q === o || q === r || q === h || q === m || typeof q == "object" && q !== null && (q.$$typeof === f || q.$$typeof === w || q.$$typeof === i || q.$$typeof === l || q.$$typeof === u || q.$$typeof === b || q.$$typeof === A || q.$$typeof === v || q.$$typeof === g);
|
|
15060
15096
|
}
|
|
15061
|
-
function
|
|
15097
|
+
function C(q) {
|
|
15062
15098
|
if (typeof q == "object" && q !== null) {
|
|
15063
15099
|
var Ae = q.$$typeof;
|
|
15064
15100
|
switch (Ae) {
|
|
@@ -15092,45 +15128,45 @@ function Jd() {
|
|
|
15092
15128
|
}
|
|
15093
15129
|
var y = c, S = d, k = l, L = i, D = t, j = u, P = a, H = f, Q = w, O = n, I = o, U = r, G = h, B = !1;
|
|
15094
15130
|
function Y(q) {
|
|
15095
|
-
return B || (B = !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.")), x(q) ||
|
|
15131
|
+
return B || (B = !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.")), x(q) || C(q) === c;
|
|
15096
15132
|
}
|
|
15097
15133
|
function x(q) {
|
|
15098
|
-
return
|
|
15134
|
+
return C(q) === d;
|
|
15099
15135
|
}
|
|
15100
15136
|
function T(q) {
|
|
15101
|
-
return
|
|
15137
|
+
return C(q) === l;
|
|
15102
15138
|
}
|
|
15103
15139
|
function _(q) {
|
|
15104
|
-
return
|
|
15140
|
+
return C(q) === i;
|
|
15105
15141
|
}
|
|
15106
15142
|
function V(q) {
|
|
15107
15143
|
return typeof q == "object" && q !== null && q.$$typeof === t;
|
|
15108
15144
|
}
|
|
15109
15145
|
function F(q) {
|
|
15110
|
-
return
|
|
15146
|
+
return C(q) === u;
|
|
15111
15147
|
}
|
|
15112
15148
|
function W(q) {
|
|
15113
|
-
return
|
|
15149
|
+
return C(q) === a;
|
|
15114
15150
|
}
|
|
15115
15151
|
function K(q) {
|
|
15116
|
-
return
|
|
15152
|
+
return C(q) === f;
|
|
15117
15153
|
}
|
|
15118
15154
|
function J(q) {
|
|
15119
|
-
return
|
|
15155
|
+
return C(q) === w;
|
|
15120
15156
|
}
|
|
15121
15157
|
function ne(q) {
|
|
15122
|
-
return
|
|
15158
|
+
return C(q) === n;
|
|
15123
15159
|
}
|
|
15124
15160
|
function se(q) {
|
|
15125
|
-
return
|
|
15161
|
+
return C(q) === o;
|
|
15126
15162
|
}
|
|
15127
15163
|
function X(q) {
|
|
15128
|
-
return
|
|
15164
|
+
return C(q) === r;
|
|
15129
15165
|
}
|
|
15130
15166
|
function ce(q) {
|
|
15131
|
-
return
|
|
15167
|
+
return C(q) === h;
|
|
15132
15168
|
}
|
|
15133
|
-
ie.AsyncMode = y, ie.ConcurrentMode = S, ie.ContextConsumer = k, ie.ContextProvider = L, ie.Element = D, ie.ForwardRef = j, ie.Fragment = P, ie.Lazy = H, ie.Memo = Q, ie.Portal = O, ie.Profiler = I, ie.StrictMode = U, ie.Suspense = G, ie.isAsyncMode = Y, ie.isConcurrentMode = x, ie.isContextConsumer = T, ie.isContextProvider = _, ie.isElement = V, ie.isForwardRef = F, ie.isFragment = W, ie.isLazy = K, ie.isMemo = J, ie.isPortal = ne, ie.isProfiler = se, ie.isStrictMode = X, ie.isSuspense = ce, ie.isValidElementType = N, ie.typeOf =
|
|
15169
|
+
ie.AsyncMode = y, ie.ConcurrentMode = S, ie.ContextConsumer = k, ie.ContextProvider = L, ie.Element = D, ie.ForwardRef = j, ie.Fragment = P, ie.Lazy = H, ie.Memo = Q, ie.Portal = O, ie.Profiler = I, ie.StrictMode = U, ie.Suspense = G, ie.isAsyncMode = Y, ie.isConcurrentMode = x, ie.isContextConsumer = T, ie.isContextProvider = _, ie.isElement = V, ie.isForwardRef = F, ie.isFragment = W, ie.isLazy = K, ie.isMemo = J, ie.isPortal = ne, ie.isProfiler = se, ie.isStrictMode = X, ie.isSuspense = ce, ie.isValidElementType = N, ie.typeOf = C;
|
|
15134
15170
|
})()), ie;
|
|
15135
15171
|
}
|
|
15136
15172
|
var Zs;
|
|
@@ -15276,9 +15312,9 @@ function eu() {
|
|
|
15276
15312
|
object: A("object"),
|
|
15277
15313
|
string: A("string"),
|
|
15278
15314
|
symbol: A("symbol"),
|
|
15279
|
-
any:
|
|
15315
|
+
any: v(),
|
|
15280
15316
|
arrayOf: N,
|
|
15281
|
-
element:
|
|
15317
|
+
element: C(),
|
|
15282
15318
|
elementType: y(),
|
|
15283
15319
|
instanceOf: S,
|
|
15284
15320
|
node: j(),
|
|
@@ -15332,7 +15368,7 @@ function eu() {
|
|
|
15332
15368
|
}
|
|
15333
15369
|
return b(T);
|
|
15334
15370
|
}
|
|
15335
|
-
function
|
|
15371
|
+
function v() {
|
|
15336
15372
|
return b(i);
|
|
15337
15373
|
}
|
|
15338
15374
|
function N(x) {
|
|
@@ -15353,7 +15389,7 @@ function eu() {
|
|
|
15353
15389
|
}
|
|
15354
15390
|
return b(T);
|
|
15355
15391
|
}
|
|
15356
|
-
function
|
|
15392
|
+
function C() {
|
|
15357
15393
|
function x(T, _, V, F, W) {
|
|
15358
15394
|
var K = T[_];
|
|
15359
15395
|
if (!l(K)) {
|
|
@@ -15623,7 +15659,7 @@ function nu() {
|
|
|
15623
15659
|
return _t.exports;
|
|
15624
15660
|
}
|
|
15625
15661
|
var su = /* @__PURE__ */ nu();
|
|
15626
|
-
const
|
|
15662
|
+
const ve = /* @__PURE__ */ ut(su);
|
|
15627
15663
|
var au = ["sitekey", "onChange", "theme", "type", "tabindex", "onExpired", "onErrored", "size", "stoken", "grecaptcha", "badge", "hl", "isolated"];
|
|
15628
15664
|
function jn() {
|
|
15629
15665
|
return jn = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -15728,19 +15764,19 @@ var wn = /* @__PURE__ */ (function(e) {
|
|
|
15728
15764
|
})(fs.Component);
|
|
15729
15765
|
wn.displayName = "ReCAPTCHA";
|
|
15730
15766
|
wn.propTypes = {
|
|
15731
|
-
sitekey:
|
|
15732
|
-
onChange:
|
|
15733
|
-
grecaptcha:
|
|
15734
|
-
theme:
|
|
15735
|
-
type:
|
|
15736
|
-
tabindex:
|
|
15737
|
-
onExpired:
|
|
15738
|
-
onErrored:
|
|
15739
|
-
size:
|
|
15740
|
-
stoken:
|
|
15741
|
-
hl:
|
|
15742
|
-
badge:
|
|
15743
|
-
isolated:
|
|
15767
|
+
sitekey: ve.string.isRequired,
|
|
15768
|
+
onChange: ve.func,
|
|
15769
|
+
grecaptcha: ve.object,
|
|
15770
|
+
theme: ve.oneOf(["dark", "light"]),
|
|
15771
|
+
type: ve.oneOf(["image", "audio"]),
|
|
15772
|
+
tabindex: ve.number,
|
|
15773
|
+
onExpired: ve.func,
|
|
15774
|
+
onErrored: ve.func,
|
|
15775
|
+
size: ve.oneOf(["compact", "normal", "invisible"]),
|
|
15776
|
+
stoken: ve.string,
|
|
15777
|
+
hl: ve.string,
|
|
15778
|
+
badge: ve.oneOf(["bottomright", "bottomleft", "inline"]),
|
|
15779
|
+
isolated: ve.bool
|
|
15744
15780
|
};
|
|
15745
15781
|
wn.defaultProps = {
|
|
15746
15782
|
onChange: function() {
|
|
@@ -15800,11 +15836,11 @@ function iu() {
|
|
|
15800
15836
|
var A = h(g);
|
|
15801
15837
|
A && A !== m && w(f, A, b);
|
|
15802
15838
|
}
|
|
15803
|
-
var
|
|
15804
|
-
d && (
|
|
15805
|
-
for (var N = i(f),
|
|
15806
|
-
var S =
|
|
15807
|
-
if (!n[S] && !(b && b[S]) && !(
|
|
15839
|
+
var v = c(g);
|
|
15840
|
+
d && (v = v.concat(d(g)));
|
|
15841
|
+
for (var N = i(f), C = i(g), y = 0; y < v.length; ++y) {
|
|
15842
|
+
var S = v[y];
|
|
15843
|
+
if (!n[S] && !(b && b[S]) && !(C && C[S]) && !(N && N[S])) {
|
|
15808
15844
|
var k = u(g, S);
|
|
15809
15845
|
try {
|
|
15810
15846
|
l(f, S, k);
|
|
@@ -15839,7 +15875,7 @@ function du(e, t) {
|
|
|
15839
15875
|
function uu(e, t) {
|
|
15840
15876
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
|
|
15841
15877
|
}
|
|
15842
|
-
var
|
|
15878
|
+
var ke = {}, mu = 0;
|
|
15843
15879
|
function hu(e, t) {
|
|
15844
15880
|
return t = t || {}, function(a) {
|
|
15845
15881
|
var r = a.displayName || a.name || "Component", o = /* @__PURE__ */ (function(l) {
|
|
@@ -15859,7 +15895,7 @@ function hu(e, t) {
|
|
|
15859
15895
|
return m.props.asyncScriptOnLoad && m.props.asyncScriptOnLoad(m.state);
|
|
15860
15896
|
});
|
|
15861
15897
|
}, d.asyncScriptLoaderTriggerOnScriptLoaded = function() {
|
|
15862
|
-
var h =
|
|
15898
|
+
var h = ke[this.__scriptURL];
|
|
15863
15899
|
if (!h || !h.loaded)
|
|
15864
15900
|
throw new Error("Script is not loaded.");
|
|
15865
15901
|
for (var m in h.observers)
|
|
@@ -15867,16 +15903,16 @@ function hu(e, t) {
|
|
|
15867
15903
|
delete window[t.callbackName];
|
|
15868
15904
|
}, d.componentDidMount = function() {
|
|
15869
15905
|
var h = this, m = this.setupScriptURL(), w = this.asyncScriptLoaderGetScriptLoaderID(), f = t, g = f.globalName, b = f.callbackName, A = f.scriptId;
|
|
15870
|
-
if (g && typeof window[g] < "u" && (
|
|
15906
|
+
if (g && typeof window[g] < "u" && (ke[m] = {
|
|
15871
15907
|
loaded: !0,
|
|
15872
15908
|
observers: {}
|
|
15873
|
-
}),
|
|
15874
|
-
var
|
|
15875
|
-
if (
|
|
15876
|
-
this.asyncScriptLoaderHandleLoad(
|
|
15909
|
+
}), ke[m]) {
|
|
15910
|
+
var v = ke[m];
|
|
15911
|
+
if (v && (v.loaded || v.errored)) {
|
|
15912
|
+
this.asyncScriptLoaderHandleLoad(v);
|
|
15877
15913
|
return;
|
|
15878
15914
|
}
|
|
15879
|
-
|
|
15915
|
+
v.observers[w] = function(k) {
|
|
15880
15916
|
return h.asyncScriptLoaderHandleLoad(k);
|
|
15881
15917
|
};
|
|
15882
15918
|
return;
|
|
@@ -15884,42 +15920,42 @@ function hu(e, t) {
|
|
|
15884
15920
|
var N = {};
|
|
15885
15921
|
N[w] = function(k) {
|
|
15886
15922
|
return h.asyncScriptLoaderHandleLoad(k);
|
|
15887
|
-
},
|
|
15923
|
+
}, ke[m] = {
|
|
15888
15924
|
loaded: !1,
|
|
15889
15925
|
observers: N
|
|
15890
15926
|
};
|
|
15891
|
-
var
|
|
15892
|
-
|
|
15927
|
+
var C = document.createElement("script");
|
|
15928
|
+
C.src = m, C.async = !0;
|
|
15893
15929
|
for (var y in t.attributes)
|
|
15894
|
-
|
|
15895
|
-
A && (
|
|
15930
|
+
C.setAttribute(y, t.attributes[y]);
|
|
15931
|
+
A && (C.id = A);
|
|
15896
15932
|
var S = function(L) {
|
|
15897
|
-
if (
|
|
15898
|
-
var D =
|
|
15933
|
+
if (ke[m]) {
|
|
15934
|
+
var D = ke[m], j = D.observers;
|
|
15899
15935
|
for (var P in j)
|
|
15900
15936
|
L(j[P]) && delete j[P];
|
|
15901
15937
|
}
|
|
15902
15938
|
};
|
|
15903
15939
|
b && typeof window < "u" && (window[b] = function() {
|
|
15904
15940
|
return h.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
15905
|
-
}),
|
|
15906
|
-
var k =
|
|
15941
|
+
}), C.onload = function() {
|
|
15942
|
+
var k = ke[m];
|
|
15907
15943
|
k && (k.loaded = !0, S(function(L) {
|
|
15908
15944
|
return b ? !1 : (L(k), !0);
|
|
15909
15945
|
}));
|
|
15910
|
-
},
|
|
15911
|
-
var k =
|
|
15946
|
+
}, C.onerror = function() {
|
|
15947
|
+
var k = ke[m];
|
|
15912
15948
|
k && (k.errored = !0, S(function(L) {
|
|
15913
15949
|
return L(k), !0;
|
|
15914
15950
|
}));
|
|
15915
|
-
}, document.body.appendChild(
|
|
15951
|
+
}, document.body.appendChild(C);
|
|
15916
15952
|
}, d.componentWillUnmount = function() {
|
|
15917
15953
|
var h = this.__scriptURL;
|
|
15918
15954
|
if (t.removeOnUnmount === !0)
|
|
15919
15955
|
for (var m = document.getElementsByTagName("script"), w = 0; w < m.length; w += 1)
|
|
15920
15956
|
m[w].src.indexOf(h) > -1 && m[w].parentNode && m[w].parentNode.removeChild(m[w]);
|
|
15921
|
-
var f =
|
|
15922
|
-
f && (delete f.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete
|
|
15957
|
+
var f = ke[h];
|
|
15958
|
+
f && (delete f.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete ke[h]);
|
|
15923
15959
|
}, d.render = function() {
|
|
15924
15960
|
var h = t.globalName, m = this.props;
|
|
15925
15961
|
m.asyncScriptOnLoad;
|
|
@@ -15932,7 +15968,7 @@ function hu(e, t) {
|
|
|
15932
15968
|
}));
|
|
15933
15969
|
});
|
|
15934
15970
|
return i.displayName = "AsyncScriptLoader(" + r + ")", i.propTypes = {
|
|
15935
|
-
asyncScriptOnLoad:
|
|
15971
|
+
asyncScriptOnLoad: ve.func
|
|
15936
15972
|
}, cu(i, a);
|
|
15937
15973
|
};
|
|
15938
15974
|
}
|
|
@@ -15988,7 +16024,7 @@ const hr = hu(pu, {
|
|
|
15988
16024
|
{ id: "terrorism", label: c.terrorism },
|
|
15989
16025
|
{ id: "intellectual", label: c.intellectual },
|
|
15990
16026
|
{ id: "bullying", label: c.bullying }
|
|
15991
|
-
],
|
|
16027
|
+
], v = async () => {
|
|
15992
16028
|
if (!(!h || !n)) {
|
|
15993
16029
|
if (ur(document).includes(n)) {
|
|
15994
16030
|
f(l.errorAlreadyReported);
|
|
@@ -16016,8 +16052,8 @@ const hr = hu(pu, {
|
|
|
16016
16052
|
}, 3e3);
|
|
16017
16053
|
else
|
|
16018
16054
|
throw new Error(y.message || l.errorReportComment);
|
|
16019
|
-
} catch (
|
|
16020
|
-
console.error("Error reporting comment:",
|
|
16055
|
+
} catch (C) {
|
|
16056
|
+
console.error("Error reporting comment:", C), f(C.message || l.errorReportComment), u("form");
|
|
16021
16057
|
}
|
|
16022
16058
|
}
|
|
16023
16059
|
}, N = () => {
|
|
@@ -16028,21 +16064,21 @@ const hr = hu(pu, {
|
|
|
16028
16064
|
/* @__PURE__ */ s("div", { className: "sass-pg-cmt-rp-title", children: l.reportAbuseTitle }),
|
|
16029
16065
|
d === "loading" && /* @__PURE__ */ s("div", { className: "sass-pg-cmt-rp-loadingContainer", children: /* @__PURE__ */ s(Qe, {}) }),
|
|
16030
16066
|
d === "form" || d === "loading" ? /* @__PURE__ */ p($, { children: [
|
|
16031
|
-
/* @__PURE__ */ s("div", { className: "sass-pg-cmt-rp-optionsContainer", children: A.map((
|
|
16067
|
+
/* @__PURE__ */ s("div", { className: "sass-pg-cmt-rp-optionsContainer", children: A.map((C) => /* @__PURE__ */ p("label", { className: "sass-pg-cmt-rp-option", children: [
|
|
16032
16068
|
/* @__PURE__ */ s(
|
|
16033
16069
|
"input",
|
|
16034
16070
|
{
|
|
16035
16071
|
type: "radio",
|
|
16036
16072
|
name: "reportReason",
|
|
16037
|
-
value:
|
|
16038
|
-
checked: h ===
|
|
16073
|
+
value: C.id,
|
|
16074
|
+
checked: h === C.id,
|
|
16039
16075
|
onChange: (y) => m(y.target.value),
|
|
16040
16076
|
className: "sass-pg-cmt-rp-radioInput"
|
|
16041
16077
|
}
|
|
16042
16078
|
),
|
|
16043
16079
|
/* @__PURE__ */ s("span", { className: "sass-pg-cmt-rp-radioCustom" }),
|
|
16044
|
-
/* @__PURE__ */ s("span", { className: "sass-pg-cmt-rp-optionLabel", children:
|
|
16045
|
-
] },
|
|
16080
|
+
/* @__PURE__ */ s("span", { className: "sass-pg-cmt-rp-optionLabel", children: C.label })
|
|
16081
|
+
] }, C.id)) }),
|
|
16046
16082
|
w && /* @__PURE__ */ s("div", { className: "sass-pg-cmt-rp-errorMessage", children: w }),
|
|
16047
16083
|
/* @__PURE__ */ s(
|
|
16048
16084
|
hr,
|
|
@@ -16050,7 +16086,7 @@ const hr = hu(pu, {
|
|
|
16050
16086
|
sitekey: o,
|
|
16051
16087
|
theme: "light",
|
|
16052
16088
|
size: "normal",
|
|
16053
|
-
onChange: (
|
|
16089
|
+
onChange: (C) => b(C ?? ""),
|
|
16054
16090
|
onExpired: () => b("")
|
|
16055
16091
|
}
|
|
16056
16092
|
),
|
|
@@ -16059,7 +16095,7 @@ const hr = hu(pu, {
|
|
|
16059
16095
|
/* @__PURE__ */ s(
|
|
16060
16096
|
"button",
|
|
16061
16097
|
{
|
|
16062
|
-
onClick:
|
|
16098
|
+
onClick: v,
|
|
16063
16099
|
disabled: !h,
|
|
16064
16100
|
className: "sass-pg-cmt-rp-reportButton",
|
|
16065
16101
|
children: l.reportButton
|
|
@@ -16198,7 +16234,7 @@ async function Au({
|
|
|
16198
16234
|
r && b.append("id", r), o && b.append("lastid", o);
|
|
16199
16235
|
const A = `${g}${m}/newcomments/get?${b.toString()}`;
|
|
16200
16236
|
try {
|
|
16201
|
-
const { data:
|
|
16237
|
+
const { data: v } = await re.get(A, {
|
|
16202
16238
|
headers: {
|
|
16203
16239
|
"x-api-token": l,
|
|
16204
16240
|
"Cache-Control": "max-age=0, no-cache, no-store, must-revalidate",
|
|
@@ -16206,15 +16242,15 @@ async function Au({
|
|
|
16206
16242
|
Expires: "0"
|
|
16207
16243
|
}
|
|
16208
16244
|
});
|
|
16209
|
-
if (!
|
|
16245
|
+
if (!v)
|
|
16210
16246
|
throw new Error("No comments data received");
|
|
16211
|
-
return
|
|
16212
|
-
} catch (
|
|
16213
|
-
if (console.error("Error fetching comments:",
|
|
16214
|
-
const N =
|
|
16215
|
-
throw N === 404 ? new Error("Comments not found") : N === 403 ? new Error("Access forbidden - check API token") : N === 401 ? new Error("Unauthorized - invalid API token") : N === 500 ? new Error("Internal server error from CMS") : new Error(
|
|
16247
|
+
return v.data || v || [];
|
|
16248
|
+
} catch (v) {
|
|
16249
|
+
if (console.error("Error fetching comments:", v), re.isAxiosError(v)) {
|
|
16250
|
+
const N = v.response?.status, C = v.response?.data;
|
|
16251
|
+
throw N === 404 ? new Error("Comments not found") : N === 403 ? new Error("Access forbidden - check API token") : N === 401 ? new Error("Unauthorized - invalid API token") : N === 500 ? new Error("Internal server error from CMS") : new Error(C?.error || C?.message || `HTTP ${N}: Failed to fetch comments`);
|
|
16216
16252
|
}
|
|
16217
|
-
throw
|
|
16253
|
+
throw v;
|
|
16218
16254
|
}
|
|
16219
16255
|
}
|
|
16220
16256
|
const yu = (e, t) => {
|
|
@@ -16298,11 +16334,11 @@ const yu = (e, t) => {
|
|
|
16298
16334
|
]
|
|
16299
16335
|
}
|
|
16300
16336
|
) })
|
|
16301
|
-
] }),
|
|
16337
|
+
] }), vu = {
|
|
16302
16338
|
commentInputLabel: "Comentario",
|
|
16303
16339
|
commentInputPlaceholder: "Ingresa un comentario"
|
|
16304
16340
|
}, ls = ({ commentRef: e, captchaToken: t = "", setIsDisabled: n, API_ENV: a, texts: r }) => {
|
|
16305
|
-
const o = { ...
|
|
16341
|
+
const o = { ...vu, ...r?.comentarios };
|
|
16306
16342
|
return Be(() => {
|
|
16307
16343
|
const i = e.current;
|
|
16308
16344
|
if (!i) return;
|
|
@@ -16348,7 +16384,7 @@ const yu = (e, t) => {
|
|
|
16348
16384
|
!o.boolean && /* @__PURE__ */ s("p", { className: "submit-warning su-hidden su-font-normal su-p-0", children: o.text })
|
|
16349
16385
|
] })
|
|
16350
16386
|
] });
|
|
16351
|
-
},
|
|
16387
|
+
}, Cu = {
|
|
16352
16388
|
anonimusContinueButton: "Continuar de forma anónima",
|
|
16353
16389
|
anonimusDividerOr: "o",
|
|
16354
16390
|
anonimusImageAlt: "Imagen incognito",
|
|
@@ -16384,7 +16420,7 @@ function xu({
|
|
|
16384
16420
|
texts: a,
|
|
16385
16421
|
API_ENV: r
|
|
16386
16422
|
}) {
|
|
16387
|
-
const o = { ...Nu, ...
|
|
16423
|
+
const o = { ...Nu, ...Cu, ...a?.comentarios }, i = me(r), l = (h) => {
|
|
16388
16424
|
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = i + "/auth/login" + (h ? "#forgot" : ""));
|
|
16389
16425
|
}, c = () => {
|
|
16390
16426
|
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = i + "/auth/register");
|
|
@@ -16470,8 +16506,8 @@ const Su = {
|
|
|
16470
16506
|
if (!u || !n.CONFIG_commentsV2 || !o || !document) return;
|
|
16471
16507
|
const g = document.getElementById("comment-button");
|
|
16472
16508
|
if (!g) return;
|
|
16473
|
-
const b = g.closest(".comment-form"), A = b?.querySelector('input[name="username"]'),
|
|
16474
|
-
A?.value?.trim() &&
|
|
16509
|
+
const b = g.closest(".comment-form"), A = b?.querySelector('input[name="username"]'), v = b?.querySelector('textarea[name="comment"]'), N = b?.querySelector("textarea.g-recaptcha-response") ?? document.querySelector("#g-recaptcha-response");
|
|
16510
|
+
A?.value?.trim() && v?.value?.trim() && N?.value?.trim() && g.click();
|
|
16475
16511
|
});
|
|
16476
16512
|
const f = le("/Success.gif", n.PUBLIC_ASSETS_URL);
|
|
16477
16513
|
return c ? /* @__PURE__ */ s("div", { className: "success-gif-container su-flex-center su-relative", children: /* @__PURE__ */ s("img", { className: "success-gif su-absolute", src: f }) }) : /* @__PURE__ */ p($, { children: [
|
|
@@ -16550,18 +16586,18 @@ const Su = {
|
|
|
16550
16586
|
let g = null;
|
|
16551
16587
|
try {
|
|
16552
16588
|
g = await f.json();
|
|
16553
|
-
} catch (
|
|
16554
|
-
console.error("Error parsing JSON response:",
|
|
16589
|
+
} catch (C) {
|
|
16590
|
+
console.error("Error parsing JSON response:", C);
|
|
16555
16591
|
}
|
|
16556
16592
|
if (!f.ok)
|
|
16557
16593
|
throw new Error(
|
|
16558
16594
|
`Error al enviar comentario: ${g?.message} status: ${f.status}`
|
|
16559
16595
|
);
|
|
16560
|
-
const b = Date.now(), A = Math.max(0, 2400 + Math.abs(b - w)),
|
|
16561
|
-
username:
|
|
16562
|
-
firstname:
|
|
16563
|
-
...
|
|
16564
|
-
...
|
|
16596
|
+
const b = Date.now(), A = Math.max(0, 2400 + Math.abs(b - w)), v = r || { username: c, firstname: c }, N = {
|
|
16597
|
+
username: v.username,
|
|
16598
|
+
firstname: v.firstname,
|
|
16599
|
+
...v.lastname && { lastname: v.lastname },
|
|
16600
|
+
...v.picture && { picture: v.picture }
|
|
16565
16601
|
};
|
|
16566
16602
|
return i({
|
|
16567
16603
|
id: b.toString(),
|
|
@@ -16655,9 +16691,9 @@ const Su = {
|
|
|
16655
16691
|
moreRepliesButton: "Más Respuestas"
|
|
16656
16692
|
}, Uu = ({ comment: e, replyingTo: t, path: n, user: a, handleReplyingTo: r, onFlag: o, API_ENV: i, texts: l }) => {
|
|
16657
16693
|
const c = { ...Iu, ...l?.comentarios }, d = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [u, h] = z(d), [m, w] = ue.useState(!1), { PUBLIC_PUBLICATION_ID: f, PUBLIC_X_SECURITY_TOKEN: g } = i, b = e.text, A = ue.useRef(null);
|
|
16658
|
-
let
|
|
16659
|
-
e.user && (
|
|
16660
|
-
const
|
|
16694
|
+
let v = `${qe.firstname} ${qe.lastname ?? ""}`, N = qe.username;
|
|
16695
|
+
e.user && (v = `${e.user.firstname} ${e.user.lastname ?? ""}`, N = e.user.username);
|
|
16696
|
+
const C = (y) => {
|
|
16661
16697
|
h({ morereply: u.morereply, reply: [y, ...u.reply] });
|
|
16662
16698
|
};
|
|
16663
16699
|
return /* @__PURE__ */ s("div", { className: "comment-item", children: /* @__PURE__ */ p(
|
|
@@ -16668,7 +16704,7 @@ const Su = {
|
|
|
16668
16704
|
children: [
|
|
16669
16705
|
/* @__PURE__ */ s(pr, { user: e.user ? e.user : qe }),
|
|
16670
16706
|
/* @__PURE__ */ p("div", { style: { flex: 1 }, children: [
|
|
16671
|
-
/* @__PURE__ */ s(fr, { username:
|
|
16707
|
+
/* @__PURE__ */ s(fr, { username: v, date: e.date.time, DATE_CONFIG: i }),
|
|
16672
16708
|
/* @__PURE__ */ s("p", { className: "comment-text su-font-normal", children: b }),
|
|
16673
16709
|
a?.username.toLowerCase() !== N.toLowerCase() && // No puedes responder ni reportar tus respuestas
|
|
16674
16710
|
/* @__PURE__ */ s(
|
|
@@ -16683,7 +16719,7 @@ const Su = {
|
|
|
16683
16719
|
{
|
|
16684
16720
|
replyingTo: t,
|
|
16685
16721
|
commentRef: A,
|
|
16686
|
-
addReply:
|
|
16722
|
+
addReply: C,
|
|
16687
16723
|
user: a,
|
|
16688
16724
|
path: n,
|
|
16689
16725
|
API_ENV: i,
|
|
@@ -16697,7 +16733,7 @@ const Su = {
|
|
|
16697
16733
|
{
|
|
16698
16734
|
user: a,
|
|
16699
16735
|
reply: y,
|
|
16700
|
-
replyingTo:
|
|
16736
|
+
replyingTo: v,
|
|
16701
16737
|
onFlag: o,
|
|
16702
16738
|
DATE_CONFIG: i,
|
|
16703
16739
|
texts: l
|
|
@@ -16901,10 +16937,10 @@ const Su = {
|
|
|
16901
16937
|
}) => {
|
|
16902
16938
|
const c = { ...Bu, ...l?.comentarios }, { PUBLIC_PUBLICATION_ID: d, PUBLIC_X_SECURITY_TOKEN: u } = i, h = d ?? "", m = t.replaceAll("/", "|"), [w, f] = z(
|
|
16903
16939
|
void 0
|
|
16904
|
-
), [g, b] = z(""), { comments: A, setComments:
|
|
16940
|
+
), [g, b] = z(""), { comments: A, setComments: v } = yu(m, i), [N, C] = ue.useState(!1), y = ue.useRef(null), S = ue.useRef(null), k = (I) => {
|
|
16905
16941
|
b(g === I ? "" : I);
|
|
16906
16942
|
}, L = (I) => {
|
|
16907
|
-
|
|
16943
|
+
v(
|
|
16908
16944
|
A ? {
|
|
16909
16945
|
...A,
|
|
16910
16946
|
comments: [I, ...A.comments ?? []]
|
|
@@ -16916,7 +16952,7 @@ const Su = {
|
|
|
16916
16952
|
if (!A || !A.morecomment || A.comments.length === 0) return;
|
|
16917
16953
|
const I = A.comments[A.comments.length - 1];
|
|
16918
16954
|
if (!I) return;
|
|
16919
|
-
|
|
16955
|
+
C(!0);
|
|
16920
16956
|
const U = I.id;
|
|
16921
16957
|
try {
|
|
16922
16958
|
const G = await is({
|
|
@@ -16930,12 +16966,12 @@ const Su = {
|
|
|
16930
16966
|
apiToken: u,
|
|
16931
16967
|
API_ENV: i
|
|
16932
16968
|
});
|
|
16933
|
-
|
|
16969
|
+
v({
|
|
16934
16970
|
morecomment: G.morecomment ?? !1,
|
|
16935
16971
|
comments: [...A.comments, ...G.comments]
|
|
16936
|
-
}),
|
|
16972
|
+
}), C(!1);
|
|
16937
16973
|
} catch (G) {
|
|
16938
|
-
throw
|
|
16974
|
+
throw C(!1), new Error(`Error al obtener comentarios: ${G}`);
|
|
16939
16975
|
}
|
|
16940
16976
|
}, P = A?.comments && A.comments.length > 0, H = P ? c.commentHeaderMessageWithComments : c.commentHeaderMessageEmpty, Q = /* @__PURE__ */ s("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ s(Qe, {}) }), O = () => {
|
|
16941
16977
|
!window || !window.location || (document.cookie = `redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`, window.location.pathname = me(i) + "/auth/login");
|
|
@@ -17103,10 +17139,10 @@ const Pe = [
|
|
|
17103
17139
|
{ label: "Usa un símbolo", test: Pe[4] }
|
|
17104
17140
|
];
|
|
17105
17141
|
function Du({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAndConditionsUrl: r }) {
|
|
17106
|
-
const o = { ..._u, ...a?.comentarios }, i =
|
|
17142
|
+
const o = { ..._u, ...a?.comentarios }, i = vt(
|
|
17107
17143
|
() => qu(a?.comentarios?.registerForm),
|
|
17108
17144
|
[a?.comentarios?.registerForm]
|
|
17109
|
-
), l =
|
|
17145
|
+
), l = vt(
|
|
17110
17146
|
() => [
|
|
17111
17147
|
{ label: o.passwordRuleMinLength, test: Pe[0] },
|
|
17112
17148
|
{ label: o.passwordRuleNumber, test: Pe[1] },
|
|
@@ -17117,7 +17153,7 @@ function Du({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
17117
17153
|
[o.passwordRuleMinLength, o.passwordRuleNumber, o.passwordRuleLowercase, o.passwordRuleUppercase, o.passwordRuleSymbol]
|
|
17118
17154
|
), [c, d] = z({}), [u, h] = z(!1), [m, w] = z(!1), [f, g] = z(null), [b, A] = z(
|
|
17119
17155
|
"register"
|
|
17120
|
-
),
|
|
17156
|
+
), v = (S, k) => {
|
|
17121
17157
|
d((L) => ({ ...L, [S]: k }));
|
|
17122
17158
|
}, N = async (S) => {
|
|
17123
17159
|
S.preventDefault(), g(null), w(!0);
|
|
@@ -17173,7 +17209,7 @@ function Du({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
17173
17209
|
} finally {
|
|
17174
17210
|
w(!1);
|
|
17175
17211
|
}
|
|
17176
|
-
},
|
|
17212
|
+
}, C = async (S) => {
|
|
17177
17213
|
if (S.preventDefault(), !c.confirmationCode) {
|
|
17178
17214
|
g(o.errorVerificationCodeRequired);
|
|
17179
17215
|
return;
|
|
@@ -17228,7 +17264,7 @@ function Du({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
17228
17264
|
type: S.toLowerCase().includes("password") ? u ? "text" : "password" : S === "birthdate" ? "date" : S === "email" ? "email" : S === "phone_number" ? "tel" : "text",
|
|
17229
17265
|
name: S,
|
|
17230
17266
|
value: c[S] || "",
|
|
17231
|
-
onChange: (L) =>
|
|
17267
|
+
onChange: (L) => v(S, L.target.value),
|
|
17232
17268
|
className: "sass-pg-cmt-lp-input",
|
|
17233
17269
|
placeholder: ""
|
|
17234
17270
|
}
|
|
@@ -17283,7 +17319,7 @@ function Du({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
17283
17319
|
b === "confirm" && /* @__PURE__ */ p(
|
|
17284
17320
|
"form",
|
|
17285
17321
|
{
|
|
17286
|
-
onSubmit:
|
|
17322
|
+
onSubmit: C,
|
|
17287
17323
|
className: "sass-pg-cmt-lp-form",
|
|
17288
17324
|
"data-error": f ? "true" : "false",
|
|
17289
17325
|
children: [
|
|
@@ -17295,7 +17331,7 @@ function Du({ goToLogin: e, handleGoogleLogin: t, API_ENV: n, texts: a, termsAnd
|
|
|
17295
17331
|
type: "text",
|
|
17296
17332
|
name: "confirmationCode",
|
|
17297
17333
|
value: c.confirmationCode || "",
|
|
17298
|
-
onChange: (S) =>
|
|
17334
|
+
onChange: (S) => v("confirmationCode", S.target.value),
|
|
17299
17335
|
className: "sass-pg-cmt-lp-input",
|
|
17300
17336
|
required: !0
|
|
17301
17337
|
}
|
|
@@ -17373,7 +17409,7 @@ function Gu({
|
|
|
17373
17409
|
API_ENV: r,
|
|
17374
17410
|
texts: o
|
|
17375
17411
|
}) {
|
|
17376
|
-
const i = { ...ju, ...o?.comentarios }, [l, c] = z("login"), [d, u] = z(""), [h, m] = z(""), [w, f] = z(""), [g, b] = z(""), [A,
|
|
17412
|
+
const i = { ...ju, ...o?.comentarios }, [l, c] = z("login"), [d, u] = z(""), [h, m] = z(""), [w, f] = z(""), [g, b] = z(""), [A, v] = z(""), [N, C] = z(!1), [y, S] = z(!1), [k, L] = z(null);
|
|
17377
17413
|
return /* @__PURE__ */ p($, { children: [
|
|
17378
17414
|
l === "login" && /* @__PURE__ */ s(
|
|
17379
17415
|
Fu,
|
|
@@ -17385,7 +17421,7 @@ function Gu({
|
|
|
17385
17421
|
error: k,
|
|
17386
17422
|
setEmail: u,
|
|
17387
17423
|
setPassword: m,
|
|
17388
|
-
setShowPassword:
|
|
17424
|
+
setShowPassword: C,
|
|
17389
17425
|
onSubmit: async (H) => {
|
|
17390
17426
|
if (!y) {
|
|
17391
17427
|
H.preventDefault(), L(null), S(!0);
|
|
@@ -17464,8 +17500,8 @@ function Gu({
|
|
|
17464
17500
|
error: k,
|
|
17465
17501
|
setConfirmationCode: f,
|
|
17466
17502
|
setNewPassword: b,
|
|
17467
|
-
setConfirmNewPassword:
|
|
17468
|
-
setShowPassword:
|
|
17503
|
+
setConfirmNewPassword: v,
|
|
17504
|
+
setShowPassword: C,
|
|
17469
17505
|
onSubmit: async (H) => {
|
|
17470
17506
|
if (y) return;
|
|
17471
17507
|
if (H.preventDefault(), g !== A) {
|
|
@@ -17975,7 +18011,7 @@ const Hh = ({
|
|
|
17975
18011
|
path: e,
|
|
17976
18012
|
icon: t,
|
|
17977
18013
|
isVisible: !0,
|
|
17978
|
-
API_ENV:
|
|
18014
|
+
API_ENV: Ca(n),
|
|
17979
18015
|
texts: a
|
|
17980
18016
|
}
|
|
17981
18017
|
) })), Vh = ({
|
|
@@ -17999,7 +18035,7 @@ const Hh = ({
|
|
|
17999
18035
|
isVisible: !0,
|
|
18000
18036
|
paths: a,
|
|
18001
18037
|
fetchConfig: o,
|
|
18002
|
-
API_ENV:
|
|
18038
|
+
API_ENV: Ca(r)
|
|
18003
18039
|
}
|
|
18004
18040
|
)
|
|
18005
18041
|
}
|
|
@@ -18226,7 +18262,7 @@ const Qh = async ({
|
|
|
18226
18262
|
/* @__PURE__ */ s("p", { className: "sass-bd-dnfw-title", children: r?.main?.title.home }),
|
|
18227
18263
|
r?.main?.subtitle?.rendered && /* @__PURE__ */ s("p", { className: "sass-bd-dnfw-subtitle", children: r?.main?.subtitle?.striped })
|
|
18228
18264
|
] }),
|
|
18229
|
-
/* @__PURE__ */ s(
|
|
18265
|
+
/* @__PURE__ */ s(Te, { preview: r.preview })
|
|
18230
18266
|
]
|
|
18231
18267
|
}
|
|
18232
18268
|
) }),
|
|
@@ -18263,7 +18299,7 @@ const Qh = async ({
|
|
|
18263
18299
|
}
|
|
18264
18300
|
}
|
|
18265
18301
|
) }), ia = {
|
|
18266
|
-
banner: (e) => /* @__PURE__ */ s(
|
|
18302
|
+
banner: (e) => /* @__PURE__ */ s(Se, { ...e, name: e.slot_id.replace("Home", "block") }),
|
|
18267
18303
|
readest: (e) => /* @__PURE__ */ s(Xn, { ...e }),
|
|
18268
18304
|
"Modulo 1x3": (e) => /* @__PURE__ */ s(Bc, { ...e }),
|
|
18269
18305
|
"Modulo 1x4": (e) => /* @__PURE__ */ s(Mc, { ...e }),
|
|
@@ -18538,40 +18574,40 @@ function nm({
|
|
|
18538
18574
|
const [a, r] = z(0), [o, i] = z(0), [l, c] = z(!1), [d, u] = z("errors"), [h, m] = z([]), [w, f] = z([]), g = pa(null);
|
|
18539
18575
|
Be(() => {
|
|
18540
18576
|
if (t && t.length > 0) {
|
|
18541
|
-
const
|
|
18577
|
+
const C = new Set(Ce.getAll().map((y) => y.id));
|
|
18542
18578
|
for (const y of t)
|
|
18543
|
-
|
|
18579
|
+
C.has(y.id) || Ce.add(y);
|
|
18544
18580
|
}
|
|
18545
18581
|
if (n && n.length > 0) {
|
|
18546
|
-
const
|
|
18582
|
+
const C = new Set(Ce.getAllSuccesses().map((y) => y.id));
|
|
18547
18583
|
for (const y of n)
|
|
18548
|
-
|
|
18549
|
-
}
|
|
18550
|
-
r(
|
|
18551
|
-
const
|
|
18552
|
-
return window.addEventListener("debug-fetch-error",
|
|
18553
|
-
(
|
|
18554
|
-
const y = sm(
|
|
18555
|
-
return
|
|
18556
|
-
endpoint:
|
|
18557
|
-
method: (
|
|
18558
|
-
params:
|
|
18559
|
-
status:
|
|
18584
|
+
C.has(y.id) || Ce.addSuccess(y);
|
|
18585
|
+
}
|
|
18586
|
+
r(Ce.getCount()), i(Ce.getSuccessCount());
|
|
18587
|
+
const v = (C) => r(C.detail.count), N = (C) => i(C.detail.count);
|
|
18588
|
+
return window.addEventListener("debug-fetch-error", v), window.addEventListener("debug-fetch-success", N), g.current = re.interceptors.response.use(
|
|
18589
|
+
(C) => {
|
|
18590
|
+
const y = sm(C.data);
|
|
18591
|
+
return Ce.addSuccess({
|
|
18592
|
+
endpoint: C.config.url ?? "(unknown)",
|
|
18593
|
+
method: (C.config.method ?? "GET").toUpperCase(),
|
|
18594
|
+
params: C.config.params,
|
|
18595
|
+
status: C.status,
|
|
18560
18596
|
responsePreview: y,
|
|
18561
18597
|
layer: "axios-service"
|
|
18562
|
-
}),
|
|
18598
|
+
}), C;
|
|
18563
18599
|
},
|
|
18564
18600
|
void 0
|
|
18565
18601
|
// let errors propagate normally; they're tracked per-service
|
|
18566
18602
|
), () => {
|
|
18567
|
-
window.removeEventListener("debug-fetch-error",
|
|
18603
|
+
window.removeEventListener("debug-fetch-error", v), window.removeEventListener("debug-fetch-success", N), g.current !== null && re.interceptors.response.eject(g.current);
|
|
18568
18604
|
};
|
|
18569
18605
|
}, []);
|
|
18570
18606
|
function b() {
|
|
18571
|
-
m(
|
|
18607
|
+
m(Ce.getAll()), f(Ce.getAllSuccesses()), c(!0);
|
|
18572
18608
|
}
|
|
18573
18609
|
function A() {
|
|
18574
|
-
|
|
18610
|
+
Ce.clearAll(), m([]), f([]), r(0), i(0), c(!1);
|
|
18575
18611
|
}
|
|
18576
18612
|
return /* @__PURE__ */ p($, { children: [
|
|
18577
18613
|
/* @__PURE__ */ p("button", { onClick: b, style: lm(e), title: "Debug panel", children: [
|
|
@@ -18579,7 +18615,7 @@ function nm({
|
|
|
18579
18615
|
a > 0 && /* @__PURE__ */ s("span", { style: da("#e94560"), children: a }),
|
|
18580
18616
|
o > 0 && /* @__PURE__ */ s("span", { style: da("#27ae60"), children: o })
|
|
18581
18617
|
] }),
|
|
18582
|
-
l && /* @__PURE__ */ s("div", { style: cm, onClick: () => c(!1), children: /* @__PURE__ */ p("div", { style: dm, onClick: (
|
|
18618
|
+
l && /* @__PURE__ */ s("div", { style: cm, onClick: () => c(!1), children: /* @__PURE__ */ p("div", { style: dm, onClick: (v) => v.stopPropagation(), children: [
|
|
18583
18619
|
/* @__PURE__ */ p("div", { style: um, children: [
|
|
18584
18620
|
/* @__PURE__ */ s("strong", { children: "Debug Panel" }),
|
|
18585
18621
|
/* @__PURE__ */ s("button", { onClick: () => c(!1), style: pm, children: "✕" })
|
|
@@ -18609,8 +18645,8 @@ function nm({
|
|
|
18609
18645
|
)
|
|
18610
18646
|
] }),
|
|
18611
18647
|
/* @__PURE__ */ p("div", { style: hm, children: [
|
|
18612
|
-
d === "errors" && (h.length === 0 ? /* @__PURE__ */ s("p", { style: fa, children: "No hay errores acumulados." }) : h.map((
|
|
18613
|
-
d === "successes" && (w.length === 0 ? /* @__PURE__ */ s("p", { style: fa, children: "No hay fetches exitosos registrados aún." }) : w.map((
|
|
18648
|
+
d === "errors" && (h.length === 0 ? /* @__PURE__ */ s("p", { style: fa, children: "No hay errores acumulados." }) : h.map((v) => /* @__PURE__ */ s(rm, { error: v }, v.id))),
|
|
18649
|
+
d === "successes" && (w.length === 0 ? /* @__PURE__ */ s("p", { style: fa, children: "No hay fetches exitosos registrados aún." }) : w.map((v) => /* @__PURE__ */ s(om, { entry: v }, v.id)))
|
|
18614
18650
|
] }),
|
|
18615
18651
|
/* @__PURE__ */ s("div", { style: fm, children: /* @__PURE__ */ s("button", { onClick: A, style: gm, children: "Limpiar todo" }) })
|
|
18616
18652
|
] }) })
|
|
@@ -18639,13 +18675,13 @@ function rm({ error: e }) {
|
|
|
18639
18675
|
/* @__PURE__ */ s("span", { style: Er(e.layer), children: e.layer }),
|
|
18640
18676
|
e.status !== void 0 && /* @__PURE__ */ s("span", { style: Tr(e.status), children: e.status }),
|
|
18641
18677
|
/* @__PURE__ */ s("span", { style: { fontWeight: 600, fontSize: 13, color: "#f87171" }, children: am(e) }),
|
|
18642
|
-
/* @__PURE__ */ p("span", { style:
|
|
18678
|
+
/* @__PURE__ */ p("span", { style: vr, children: [
|
|
18643
18679
|
e.method,
|
|
18644
18680
|
" ",
|
|
18645
18681
|
e.endpoint
|
|
18646
18682
|
] })
|
|
18647
18683
|
] }),
|
|
18648
|
-
t && /* @__PURE__ */ p("div", { style:
|
|
18684
|
+
t && /* @__PURE__ */ p("div", { style: Cr, children: [
|
|
18649
18685
|
e.service && /* @__PURE__ */ s("div", { style: { fontSize: 11, color: "#888", marginBottom: 4 }, children: e.service }),
|
|
18650
18686
|
/* @__PURE__ */ s("div", { style: { fontSize: 12, color: "#f87171", marginBottom: 4 }, children: e.message }),
|
|
18651
18687
|
e.params && /* @__PURE__ */ s("pre", { style: zn, children: JSON.stringify(e.params, null, 2) }),
|
|
@@ -18668,7 +18704,7 @@ function om({ entry: e }) {
|
|
|
18668
18704
|
/* @__PURE__ */ s("span", { style: Er(e.layer), children: e.layer }),
|
|
18669
18705
|
/* @__PURE__ */ s("span", { style: Tr(e.status), children: e.status }),
|
|
18670
18706
|
/* @__PURE__ */ s("span", { style: { fontWeight: 600, fontSize: 13, color: "#4ade80" }, children: r }),
|
|
18671
|
-
/* @__PURE__ */ p("span", { style:
|
|
18707
|
+
/* @__PURE__ */ p("span", { style: vr, children: [
|
|
18672
18708
|
e.method,
|
|
18673
18709
|
" ",
|
|
18674
18710
|
e.endpoint
|
|
@@ -18679,7 +18715,7 @@ function om({ entry: e }) {
|
|
|
18679
18715
|
"ms"
|
|
18680
18716
|
] })
|
|
18681
18717
|
] }),
|
|
18682
|
-
t && /* @__PURE__ */ p("div", { style:
|
|
18718
|
+
t && /* @__PURE__ */ p("div", { style: Cr, children: [
|
|
18683
18719
|
e.service && /* @__PURE__ */ s("div", { style: { fontSize: 11, color: "#888", marginBottom: 4 }, children: e.service }),
|
|
18684
18720
|
e.params && /* @__PURE__ */ p($, { children: [
|
|
18685
18721
|
/* @__PURE__ */ s("div", { style: ha, children: "Params" }),
|
|
@@ -18843,7 +18879,7 @@ const Ar = {
|
|
|
18843
18879
|
fontSize: 10,
|
|
18844
18880
|
color: "#aaa",
|
|
18845
18881
|
flexShrink: 0
|
|
18846
|
-
},
|
|
18882
|
+
}, vr = {
|
|
18847
18883
|
fontSize: 11,
|
|
18848
18884
|
color: "#9ca3af",
|
|
18849
18885
|
fontFamily: "ui-monospace, monospace",
|
|
@@ -18873,7 +18909,7 @@ const Ar = {
|
|
|
18873
18909
|
textOverflow: "ellipsis",
|
|
18874
18910
|
whiteSpace: "nowrap",
|
|
18875
18911
|
maxWidth: "100%"
|
|
18876
|
-
},
|
|
18912
|
+
}, Cr = {
|
|
18877
18913
|
marginTop: 10,
|
|
18878
18914
|
paddingTop: 10,
|
|
18879
18915
|
borderTop: "1px solid #2a2a4e"
|
|
@@ -18944,9 +18980,9 @@ function Tr(e) {
|
|
|
18944
18980
|
}
|
|
18945
18981
|
export {
|
|
18946
18982
|
fo as AssetsPreconnect,
|
|
18947
|
-
|
|
18948
|
-
|
|
18949
|
-
|
|
18983
|
+
vh as AutorHeader1,
|
|
18984
|
+
Ch as AutorHeader2,
|
|
18985
|
+
Se as BannerAdvertising,
|
|
18950
18986
|
it as BannerAdvertisingMiddle,
|
|
18951
18987
|
$o as BannersPreconnect,
|
|
18952
18988
|
dh as CarrouselCSR,
|
|
@@ -18965,7 +19001,7 @@ export {
|
|
|
18965
19001
|
Yh as DEBUG_MainSlots,
|
|
18966
19002
|
_l as DEFAULT_HEAD_CONFIG,
|
|
18967
19003
|
Kh as DebugPanel,
|
|
18968
|
-
|
|
19004
|
+
Ce as DebugStore,
|
|
18969
19005
|
Lc as DestacadoNoticias,
|
|
18970
19006
|
qc as DestacadoVideos,
|
|
18971
19007
|
Sl as DynamicBlockServices,
|
|
@@ -18977,9 +19013,9 @@ export {
|
|
|
18977
19013
|
Vo as Font,
|
|
18978
19014
|
fh as Footer,
|
|
18979
19015
|
ho as FormatAfterScripts,
|
|
18980
|
-
|
|
19016
|
+
va as FormatScripts,
|
|
18981
19017
|
yo as GA4,
|
|
18982
|
-
|
|
19018
|
+
vo as GTM,
|
|
18983
19019
|
cd as GalleryHeader,
|
|
18984
19020
|
lh as GenerateBody,
|
|
18985
19021
|
ih as GenerateHead,
|
|
@@ -18988,7 +19024,7 @@ export {
|
|
|
18988
19024
|
Th as HomeCard,
|
|
18989
19025
|
$c as IframeHeader,
|
|
18990
19026
|
Kl as ImageOffline,
|
|
18991
|
-
|
|
19027
|
+
Te as ImageOnline,
|
|
18992
19028
|
Yl as ImageOnlineClient,
|
|
18993
19029
|
ah as IssuuServices,
|
|
18994
19030
|
Lo as ItemListSchema,
|
|
@@ -19000,7 +19036,7 @@ export {
|
|
|
19000
19036
|
ch as Location,
|
|
19001
19037
|
qh as LoginForm,
|
|
19002
19038
|
Dm as MainComponentServices,
|
|
19003
|
-
|
|
19039
|
+
Co as Marfeel,
|
|
19004
19040
|
Vh as MasNoticiasLazyLoader,
|
|
19005
19041
|
yt as MiddleSection,
|
|
19006
19042
|
Bc as Modulo1x3,
|
|
@@ -19058,16 +19094,16 @@ export {
|
|
|
19058
19094
|
zh as addComment,
|
|
19059
19095
|
xt as bannersReplace,
|
|
19060
19096
|
lo as batchedNewsFetch,
|
|
19061
|
-
|
|
19097
|
+
Ct as becomeVideoObject,
|
|
19062
19098
|
et as buildTagUrl,
|
|
19063
19099
|
De as cleanSchema,
|
|
19064
19100
|
hh as coloringByStrokeSVGs,
|
|
19065
19101
|
ms as compileStyleProps,
|
|
19066
19102
|
Rm as createAssessment,
|
|
19067
19103
|
ze as cutString,
|
|
19068
|
-
|
|
19104
|
+
Ca as decodeApiEnv,
|
|
19069
19105
|
Bm as encodeApiEnv,
|
|
19070
|
-
|
|
19106
|
+
Ee as extractMainSlug,
|
|
19071
19107
|
xm as extractRealtedNews,
|
|
19072
19108
|
On as extractRelatedNews,
|
|
19073
19109
|
Oe as formatDate,
|
|
@@ -19104,7 +19140,7 @@ export {
|
|
|
19104
19140
|
km as getTypeOfNews,
|
|
19105
19141
|
Im as getVideoRealPath,
|
|
19106
19142
|
is as handleGetComments,
|
|
19107
|
-
|
|
19143
|
+
Cm as initLibrary,
|
|
19108
19144
|
wo as isHomePath,
|
|
19109
19145
|
Om as isPhotoGallery,
|
|
19110
19146
|
ao as metadataToJSX,
|