sass-template-common 0.3.55 → 0.3.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sass-template-common.js +185 -177
- package/dist/sass-template-common.umd.cjs +11 -11
- package/package.json +1 -1
|
@@ -60,11 +60,11 @@ let ia = {
|
|
|
60
60
|
function n3(e = {}) {
|
|
61
61
|
ia = { ...ia, ...e };
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function ee() {
|
|
64
64
|
return ia;
|
|
65
65
|
}
|
|
66
66
|
const Xo = () => {
|
|
67
|
-
const { ANALYTICS_comscore: e } =
|
|
67
|
+
const { ANALYTICS_comscore: e } = ee();
|
|
68
68
|
return e && /* @__PURE__ */ a(
|
|
69
69
|
"script",
|
|
70
70
|
{
|
|
@@ -89,7 +89,7 @@ const Xo = () => {
|
|
|
89
89
|
return Object.keys(t).forEach((r) => {
|
|
90
90
|
o[r] = r;
|
|
91
91
|
}), o;
|
|
92
|
-
}, [t]), { ANALYTICS_ga4: s } =
|
|
92
|
+
}, [t]), { ANALYTICS_ga4: s } = ee();
|
|
93
93
|
return s && /* @__PURE__ */ f(J, { children: [
|
|
94
94
|
/* @__PURE__ */ a("script", { defer: !0, src: "https://www.googletagmanager.com/gtag/js?" + e }),
|
|
95
95
|
/* @__PURE__ */ a(
|
|
@@ -112,7 +112,7 @@ const Xo = () => {
|
|
|
112
112
|
)
|
|
113
113
|
] });
|
|
114
114
|
}, nr = () => {
|
|
115
|
-
const { ANALYTICS_gtm: e } =
|
|
115
|
+
const { ANALYTICS_gtm: e } = ee();
|
|
116
116
|
return e && /* @__PURE__ */ f(J, { children: [
|
|
117
117
|
/* @__PURE__ */ a(
|
|
118
118
|
"script",
|
|
@@ -140,7 +140,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
140
140
|
) })
|
|
141
141
|
] });
|
|
142
142
|
}, ar = () => {
|
|
143
|
-
const { ANALYTICS_marfeel: e } =
|
|
143
|
+
const { ANALYTICS_marfeel: e } = ee();
|
|
144
144
|
return e && /* @__PURE__ */ a(
|
|
145
145
|
"script",
|
|
146
146
|
{
|
|
@@ -181,8 +181,8 @@ function Ws() {
|
|
|
181
181
|
return M === void 0;
|
|
182
182
|
} }, C = "en", E = {};
|
|
183
183
|
E[C] = N;
|
|
184
|
-
var
|
|
185
|
-
return M instanceof
|
|
184
|
+
var O = "$isDayjsObject", Q = function(M) {
|
|
185
|
+
return M instanceof te || !(!M || !M[O]);
|
|
186
186
|
}, W = function M(U, I, D) {
|
|
187
187
|
var T;
|
|
188
188
|
if (!U) return C;
|
|
@@ -199,14 +199,14 @@ function Ws() {
|
|
|
199
199
|
}, G = function(M, U) {
|
|
200
200
|
if (Q(M)) return M.clone();
|
|
201
201
|
var I = typeof U == "object" ? U : {};
|
|
202
|
-
return I.date = M, I.args = arguments, new
|
|
202
|
+
return I.date = M, I.args = arguments, new te(I);
|
|
203
203
|
}, B = x;
|
|
204
204
|
B.l = W, B.i = Q, B.w = function(M, U) {
|
|
205
205
|
return G(M, { locale: U.$L, utc: U.$u, x: U.$x, $offset: U.$offset });
|
|
206
206
|
};
|
|
207
|
-
var
|
|
207
|
+
var te = (function() {
|
|
208
208
|
function M(I) {
|
|
209
|
-
this.$L = W(I.locale, null, !0), this.parse(I), this.$x = this.$x || I.x || {}, this[
|
|
209
|
+
this.$L = W(I.locale, null, !0), this.parse(I), this.$x = this.$x || I.x || {}, this[O] = !0;
|
|
210
210
|
}
|
|
211
211
|
var U = M.prototype;
|
|
212
212
|
return U.parse = function(I) {
|
|
@@ -250,15 +250,15 @@ function Ws() {
|
|
|
250
250
|
return z ? ie : ie.endOf(l);
|
|
251
251
|
}, R = function(X, $) {
|
|
252
252
|
return B.w(T.toDate()[X].apply(T.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), T);
|
|
253
|
-
}, j = this.$W,
|
|
253
|
+
}, j = this.$W, P = this.$M, H = this.$D, V = "set" + (this.$u ? "UTC" : "");
|
|
254
254
|
switch (y) {
|
|
255
255
|
case p:
|
|
256
256
|
return z ? S(1, 0) : S(31, 11);
|
|
257
257
|
case h:
|
|
258
|
-
return z ? S(1,
|
|
258
|
+
return z ? S(1, P) : S(0, P + 1);
|
|
259
259
|
case u:
|
|
260
260
|
var F = this.$locale().weekStart || 0, Z = (j < F ? j + 7 : j) - F;
|
|
261
|
-
return S(z ? H - Z : H + (6 - Z),
|
|
261
|
+
return S(z ? H - Z : H + (6 - Z), P);
|
|
262
262
|
case l:
|
|
263
263
|
case g:
|
|
264
264
|
return R(V + "Hours", 0);
|
|
@@ -287,9 +287,9 @@ function Ws() {
|
|
|
287
287
|
}, U.add = function(I, D) {
|
|
288
288
|
var T, z = this;
|
|
289
289
|
I = Number(I);
|
|
290
|
-
var y = B.p(D), S = function(
|
|
290
|
+
var y = B.p(D), S = function(P) {
|
|
291
291
|
var H = G(z);
|
|
292
|
-
return B.w(H.date(H.date() + Math.round(
|
|
292
|
+
return B.w(H.date(H.date() + Math.round(P * I)), z);
|
|
293
293
|
};
|
|
294
294
|
if (y === h) return this.set(h, this.$M + I);
|
|
295
295
|
if (y === p) return this.set(p, this.$y + I);
|
|
@@ -302,7 +302,7 @@ function Ws() {
|
|
|
302
302
|
}, U.format = function(I) {
|
|
303
303
|
var D = this, T = this.$locale();
|
|
304
304
|
if (!this.isValid()) return T.invalidDate || A;
|
|
305
|
-
var z = I || "YYYY-MM-DDTHH:mm:ssZ", y = B.z(this), S = this.$H, R = this.$m, j = this.$M,
|
|
305
|
+
var z = I || "YYYY-MM-DDTHH:mm:ssZ", y = B.z(this), S = this.$H, R = this.$m, j = this.$M, P = T.weekdays, H = T.months, V = T.meridiem, F = function($, ie, L, ve) {
|
|
306
306
|
return $ && ($[ie] || $(D, z)) || L[ie].slice(0, ve);
|
|
307
307
|
}, Z = function($) {
|
|
308
308
|
return B.s(S % 12 || 12, $, "0");
|
|
@@ -332,11 +332,11 @@ function Ws() {
|
|
|
332
332
|
case "d":
|
|
333
333
|
return String(D.$W);
|
|
334
334
|
case "dd":
|
|
335
|
-
return F(T.weekdaysMin, D.$W,
|
|
335
|
+
return F(T.weekdaysMin, D.$W, P, 2);
|
|
336
336
|
case "ddd":
|
|
337
|
-
return F(T.weekdaysShort, D.$W,
|
|
337
|
+
return F(T.weekdaysShort, D.$W, P, 3);
|
|
338
338
|
case "dddd":
|
|
339
|
-
return
|
|
339
|
+
return P[D.$W];
|
|
340
340
|
case "H":
|
|
341
341
|
return String(S);
|
|
342
342
|
case "HH":
|
|
@@ -368,7 +368,7 @@ function Ws() {
|
|
|
368
368
|
}, U.utcOffset = function() {
|
|
369
369
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
370
370
|
}, U.diff = function(I, D, T) {
|
|
371
|
-
var z, y = this, S = B.p(D), R = G(I), j = (R.utcOffset() - this.utcOffset()) * s,
|
|
371
|
+
var z, y = this, S = B.p(D), R = G(I), j = (R.utcOffset() - this.utcOffset()) * s, P = this - R, H = function() {
|
|
372
372
|
return B.m(y, R);
|
|
373
373
|
};
|
|
374
374
|
switch (S) {
|
|
@@ -382,22 +382,22 @@ function Ws() {
|
|
|
382
382
|
z = H() / 3;
|
|
383
383
|
break;
|
|
384
384
|
case u:
|
|
385
|
-
z = (
|
|
385
|
+
z = (P - j) / 6048e5;
|
|
386
386
|
break;
|
|
387
387
|
case l:
|
|
388
|
-
z = (
|
|
388
|
+
z = (P - j) / 864e5;
|
|
389
389
|
break;
|
|
390
390
|
case d:
|
|
391
|
-
z =
|
|
391
|
+
z = P / o;
|
|
392
392
|
break;
|
|
393
393
|
case c:
|
|
394
|
-
z =
|
|
394
|
+
z = P / s;
|
|
395
395
|
break;
|
|
396
396
|
case i:
|
|
397
|
-
z =
|
|
397
|
+
z = P / n;
|
|
398
398
|
break;
|
|
399
399
|
default:
|
|
400
|
-
z =
|
|
400
|
+
z = P;
|
|
401
401
|
}
|
|
402
402
|
return T ? z : B.a(z);
|
|
403
403
|
}, U.daysInMonth = function() {
|
|
@@ -419,13 +419,13 @@ function Ws() {
|
|
|
419
419
|
}, U.toString = function() {
|
|
420
420
|
return this.$d.toUTCString();
|
|
421
421
|
}, M;
|
|
422
|
-
})(), le =
|
|
422
|
+
})(), le = te.prototype;
|
|
423
423
|
return G.prototype = le, [["$ms", r], ["$s", i], ["$m", c], ["$H", d], ["$W", l], ["$M", h], ["$y", p], ["$D", g]].forEach((function(M) {
|
|
424
424
|
le[M[1]] = function(U) {
|
|
425
425
|
return this.$g(U, M[0], M[1]);
|
|
426
426
|
};
|
|
427
427
|
})), G.extend = function(M, U) {
|
|
428
|
-
return M.$i || (M(U,
|
|
428
|
+
return M.$i || (M(U, te, G), M.$i = !0), G;
|
|
429
429
|
}, G.locale = W, G.isDayjs = Q, G.unix = function(M) {
|
|
430
430
|
return G(1e3 * M);
|
|
431
431
|
}, G.en = E[C], G.Ls = E, G.p = {}, G;
|
|
@@ -453,8 +453,8 @@ function ir() {
|
|
|
453
453
|
var E = (n.rounding || Math.round)(Math.abs(g));
|
|
454
454
|
if (w = g > 0, E <= C.r || !C.r) {
|
|
455
455
|
E <= 1 && x > 0 && (C = N[x - 1]);
|
|
456
|
-
var
|
|
457
|
-
p && (E = p("" + E)), A = typeof
|
|
456
|
+
var O = v[C.l];
|
|
457
|
+
p && (E = p("" + E)), A = typeof O == "string" ? O.replace("%d", E) : O(E, u, C.l, w);
|
|
458
458
|
break;
|
|
459
459
|
}
|
|
460
460
|
}
|
|
@@ -534,7 +534,7 @@ function mr() {
|
|
|
534
534
|
C === void 0 && (C = "");
|
|
535
535
|
var E = C.match(s);
|
|
536
536
|
if (!E) return null;
|
|
537
|
-
var
|
|
537
|
+
var O = ("" + E[0]).match(o) || ["-", 0, 0], Q = O[0], W = 60 * +O[1] + +O[2];
|
|
538
538
|
return W === 0 ? 0 : Q === "+" ? W : -W;
|
|
539
539
|
})(A), A === null)) return this;
|
|
540
540
|
var N = Math.abs(A) <= 16 ? 60 * A : A;
|
|
@@ -595,8 +595,8 @@ function Ar() {
|
|
|
595
595
|
var v = g[w], N = v.type, b = v.value, x = n[N];
|
|
596
596
|
x >= 0 && (A[x] = parseInt(b, 10));
|
|
597
597
|
}
|
|
598
|
-
var C = A[3], E = C === 24 ? 0 : C,
|
|
599
|
-
return (i.utc(
|
|
598
|
+
var C = A[3], E = C === 24 ? 0 : C, O = A[0] + "-" + A[1] + "-" + A[2] + " " + E + ":" + A[4] + ":" + A[5] + ":000", Q = +m;
|
|
599
|
+
return (i.utc(O).valueOf() - (Q -= Q % 1e3)) / 6e4;
|
|
600
600
|
}, u = r.prototype;
|
|
601
601
|
u.tz = function(m, p) {
|
|
602
602
|
m === void 0 && (m = c);
|
|
@@ -621,10 +621,10 @@ function Ar() {
|
|
|
621
621
|
}, i.tz = function(m, p, g) {
|
|
622
622
|
var A = g && p, w = g || p || c, v = l(+i(), w);
|
|
623
623
|
if (typeof m != "string") return i(m).tz(w);
|
|
624
|
-
var N = (function(E,
|
|
625
|
-
var W = E - 60 *
|
|
626
|
-
if (
|
|
627
|
-
var B = l(W -= 60 * (G -
|
|
624
|
+
var N = (function(E, O, Q) {
|
|
625
|
+
var W = E - 60 * O * 1e3, G = l(W, Q);
|
|
626
|
+
if (O === G) return [W, O];
|
|
627
|
+
var B = l(W -= 60 * (G - O) * 1e3, Q);
|
|
628
628
|
return G === B ? [W, G] : [E - 60 * Math.min(G, B) * 1e3, Math.max(G, B)];
|
|
629
629
|
})(i.utc(m, A).valueOf(), v, w), b = N[0], x = N[1], C = i(b).utcOffset(x);
|
|
630
630
|
return C.$x.$timezone = w, C;
|
|
@@ -643,18 +643,18 @@ Te.extend(gr);
|
|
|
643
643
|
Te.extend(yr);
|
|
644
644
|
Te.extend(lr);
|
|
645
645
|
const In = (e) => e === "en" ? "en" : "es", Ge = (e, t) => {
|
|
646
|
-
const { PUBLIC_LNG: n, DATE_TIMEZONE: s } = t ||
|
|
646
|
+
const { PUBLIC_LNG: n, DATE_TIMEZONE: s } = t || ee(), o = In(n ?? "es");
|
|
647
647
|
return Te.tz(e, s).locale(o).format("DD MMMM YYYY");
|
|
648
648
|
}, _a = (e) => {
|
|
649
|
-
const { PUBLIC_LNG: t, DATE_TIMEZONE: n } =
|
|
649
|
+
const { PUBLIC_LNG: t, DATE_TIMEZONE: n } = ee(), s = In(t ?? "es");
|
|
650
650
|
return Te.tz(e, n).locale(s).format(
|
|
651
651
|
s === "en" ? "MMMM DD YYYY [•] HH:mm [hs]" : "DD [de] MMMM YYYY [•] HH:mm [hs]"
|
|
652
652
|
);
|
|
653
653
|
}, vr = (e) => {
|
|
654
|
-
const { PUBLIC_LNG: t, DATE_TIMEZONE: n } =
|
|
654
|
+
const { PUBLIC_LNG: t, DATE_TIMEZONE: n } = ee(), s = In(t ?? "es");
|
|
655
655
|
return Te.tz(e, n).locale(s).format("MM/DD/YYYY [•] HH:mm [HS]");
|
|
656
656
|
}, a3 = (e) => {
|
|
657
|
-
const { PUBLIC_LNG: t, DATE_TIMEZONE: n } =
|
|
657
|
+
const { PUBLIC_LNG: t, DATE_TIMEZONE: n } = ee(), s = In(t ?? "es");
|
|
658
658
|
return Te.tz(e, n).locale(s).format("dddd DD [de] MMMM YYYY");
|
|
659
659
|
}, He = (e, t = 136) => e && e.length > t ? `${e.substring(0, t)}...` : e;
|
|
660
660
|
function St(e) {
|
|
@@ -732,14 +732,14 @@ const _r = async (e, t) => {
|
|
|
732
732
|
(r) => St(r)?.data
|
|
733
733
|
);
|
|
734
734
|
}, Cn = () => {
|
|
735
|
-
const { PUBLIC_ENV: e, PUBLIC_API_HOST: t, PUBLIC_ASSETS_URL: n } =
|
|
735
|
+
const { PUBLIC_ENV: e, PUBLIC_API_HOST: t, PUBLIC_ASSETS_URL: n } = ee();
|
|
736
736
|
return e == "local" ? t : n && n !== "false" ? n : "";
|
|
737
737
|
}, s3 = () => {
|
|
738
|
-
const { PUBLIC_ENV: e, PUBLIC_API_FRONT: t } =
|
|
738
|
+
const { PUBLIC_ENV: e, PUBLIC_API_FRONT: t } = ee();
|
|
739
739
|
return e === "local" ? t : "";
|
|
740
740
|
}, br = (e, t) => {
|
|
741
741
|
if (!e) return {};
|
|
742
|
-
const { PUBLIC_ASSETS_URL: n, PUBLIC_API_FRONT: s } =
|
|
742
|
+
const { PUBLIC_ASSETS_URL: n, PUBLIC_API_FRONT: s } = ee(), o = Ys(e.keywords) ?? "", r = e?.preview?.sizes ? e?.preview?.sizes[0]?.url : "", i = (n !== "false" ? n : s) ?? "";
|
|
743
743
|
return {
|
|
744
744
|
title: (e?.main?.title?.seo ?? e?.main?.title?.article) + " | " + t.name,
|
|
745
745
|
robots: "index, follow, max-image-preview:large",
|
|
@@ -984,9 +984,9 @@ function o3(e) {
|
|
|
984
984
|
return t > 1 && e.charCodeAt(t - 1) === 47 ? e.slice(0, t - 1) : e;
|
|
985
985
|
}
|
|
986
986
|
const Tr = () => {
|
|
987
|
-
const { PUBLIC_ASSETS_URL: e } =
|
|
987
|
+
const { PUBLIC_ASSETS_URL: e } = ee();
|
|
988
988
|
return e && e !== "false" && /* @__PURE__ */ a("link", { rel: "preconnect", href: e, crossOrigin: "anonymous" });
|
|
989
|
-
}, { PUBLIC_ASSETS_URL: Mn } =
|
|
989
|
+
}, { PUBLIC_ASSETS_URL: Mn } = ee(), kr = Mn && Mn !== "false" ? Mn : "", Ka = ({ images: e }) => /* @__PURE__ */ a(J, { children: e.map(
|
|
990
990
|
(t, n) => t.href !== "" && /* @__PURE__ */ a(
|
|
991
991
|
"link",
|
|
992
992
|
{
|
|
@@ -1000,7 +1000,7 @@ const Tr = () => {
|
|
|
1000
1000
|
)
|
|
1001
1001
|
) }), Ur = (e, t) => {
|
|
1002
1002
|
if (!e) return {};
|
|
1003
|
-
const { PUBLIC_API_FRONT: n } =
|
|
1003
|
+
const { PUBLIC_API_FRONT: n } = ee();
|
|
1004
1004
|
return {
|
|
1005
1005
|
title: e?.main?.title + " | " + t.name,
|
|
1006
1006
|
robots: "index, follow, max-image-preview:large",
|
|
@@ -1112,7 +1112,7 @@ const At = (e, t) => {
|
|
|
1112
1112
|
pathname: n,
|
|
1113
1113
|
ROUTE: s
|
|
1114
1114
|
}) => {
|
|
1115
|
-
const { PUBLIC_PUBLICATION_ID: o = "" } =
|
|
1115
|
+
const { PUBLIC_PUBLICATION_ID: o = "" } = ee();
|
|
1116
1116
|
let r = [];
|
|
1117
1117
|
const i = n === "/" || n === "/index.html" ? void 0 : Hr(zr[s]({ pathname: n, config: e })), c = Or[s] ?? void 0, d = {
|
|
1118
1118
|
newstype: e.newsType,
|
|
@@ -1140,7 +1140,7 @@ const At = (e, t) => {
|
|
|
1140
1140
|
);
|
|
1141
1141
|
};
|
|
1142
1142
|
function Tn(e) {
|
|
1143
|
-
const { PUBLIC_ASSETS_URL: t } =
|
|
1143
|
+
const { PUBLIC_ASSETS_URL: t } = ee();
|
|
1144
1144
|
if (!t || t === "false") return e;
|
|
1145
1145
|
const n = t.replace(/\/+$/, ""), s = /https?:\/\/[^/\s]+\/(arte|__export)\//g;
|
|
1146
1146
|
return e.replace(s, (o, r) => `${n}/${r}/`);
|
|
@@ -1151,7 +1151,7 @@ const Dr = async ({
|
|
|
1151
1151
|
BASE_URL: n,
|
|
1152
1152
|
axiosApi: s
|
|
1153
1153
|
}) => {
|
|
1154
|
-
const { PUBLIC_SERVICE_PREFIX: o, PUBLIC_IS_SUB_PUBLICATION: r } =
|
|
1154
|
+
const { PUBLIC_SERVICE_PREFIX: o, PUBLIC_IS_SUB_PUBLICATION: r } = ee();
|
|
1155
1155
|
let i = [];
|
|
1156
1156
|
try {
|
|
1157
1157
|
const c = t.socialBlockLogo?.url ? new URL(t.socialBlockLogo.url).pathname : void 0, d = t.landscapeLogo?.url ? new URL(t.landscapeLogo.url).pathname : void 0, l = {
|
|
@@ -2560,10 +2560,10 @@ const Ao = (e) => {
|
|
|
2560
2560
|
config: e,
|
|
2561
2561
|
request: w
|
|
2562
2562
|
};
|
|
2563
|
-
go(function(
|
|
2564
|
-
n(
|
|
2565
|
-
}, function(
|
|
2566
|
-
s(
|
|
2563
|
+
go(function(O) {
|
|
2564
|
+
n(O), A();
|
|
2565
|
+
}, function(O) {
|
|
2566
|
+
s(O), A();
|
|
2567
2567
|
}, C), w = null;
|
|
2568
2568
|
}
|
|
2569
2569
|
"onloadend" in w ? w.onloadend = v : w.onreadystatechange = function() {
|
|
@@ -2742,15 +2742,15 @@ const Ao = (e) => {
|
|
|
2742
2742
|
timeout: x,
|
|
2743
2743
|
onDownloadProgress: C,
|
|
2744
2744
|
onUploadProgress: E,
|
|
2745
|
-
responseType:
|
|
2745
|
+
responseType: O,
|
|
2746
2746
|
headers: Q,
|
|
2747
2747
|
withCredentials: W = "same-origin",
|
|
2748
2748
|
fetchOptions: G
|
|
2749
2749
|
} = Ao(g), B = t || fetch;
|
|
2750
|
-
|
|
2751
|
-
let
|
|
2752
|
-
const M =
|
|
2753
|
-
|
|
2750
|
+
O = O ? (O + "").toLowerCase() : "text";
|
|
2751
|
+
let te = ic([N, b && b.toAbortSignal()], x), le = null;
|
|
2752
|
+
const M = te && te.unsubscribe && (() => {
|
|
2753
|
+
te.unsubscribe();
|
|
2754
2754
|
});
|
|
2755
2755
|
let U;
|
|
2756
2756
|
try {
|
|
@@ -2761,17 +2761,17 @@ const Ao = (e) => {
|
|
|
2761
2761
|
duplex: "half"
|
|
2762
2762
|
}), R;
|
|
2763
2763
|
if (_.isFormData(v) && (R = S.headers.get("content-type")) && Q.setContentType(R), S.body) {
|
|
2764
|
-
const [j,
|
|
2764
|
+
const [j, P] = ns(
|
|
2765
2765
|
U,
|
|
2766
2766
|
_n(as(E))
|
|
2767
2767
|
);
|
|
2768
|
-
v = os(S.body, rs, j,
|
|
2768
|
+
v = os(S.body, rs, j, P);
|
|
2769
2769
|
}
|
|
2770
2770
|
}
|
|
2771
2771
|
_.isString(W) || (W = W ? "include" : "omit");
|
|
2772
2772
|
const I = r && "credentials" in n.prototype, D = {
|
|
2773
2773
|
...G,
|
|
2774
|
-
signal:
|
|
2774
|
+
signal: te,
|
|
2775
2775
|
method: w.toUpperCase(),
|
|
2776
2776
|
headers: Q.normalize().toJSON(),
|
|
2777
2777
|
body: v,
|
|
@@ -2780,25 +2780,25 @@ const Ao = (e) => {
|
|
|
2780
2780
|
};
|
|
2781
2781
|
le = r && new n(A, D);
|
|
2782
2782
|
let T = await (r ? B(le, G) : B(A, D));
|
|
2783
|
-
const z = u && (
|
|
2783
|
+
const z = u && (O === "stream" || O === "response");
|
|
2784
2784
|
if (u && (C || z && M)) {
|
|
2785
2785
|
const S = {};
|
|
2786
2786
|
["status", "statusText", "headers"].forEach((H) => {
|
|
2787
2787
|
S[H] = T[H];
|
|
2788
2788
|
});
|
|
2789
|
-
const R = _.toFiniteNumber(T.headers.get("content-length")), [j,
|
|
2789
|
+
const R = _.toFiniteNumber(T.headers.get("content-length")), [j, P] = C && ns(
|
|
2790
2790
|
R,
|
|
2791
2791
|
_n(as(C), !0)
|
|
2792
2792
|
) || [];
|
|
2793
2793
|
T = new s(
|
|
2794
2794
|
os(T.body, rs, j, () => {
|
|
2795
|
-
|
|
2795
|
+
P && P(), M && M();
|
|
2796
2796
|
}),
|
|
2797
2797
|
S
|
|
2798
2798
|
);
|
|
2799
2799
|
}
|
|
2800
|
-
|
|
2801
|
-
let y = await h[_.findKey(h,
|
|
2800
|
+
O = O || "text";
|
|
2801
|
+
let y = await h[_.findKey(h, O) || "text"](T, g);
|
|
2802
2802
|
return !z && M && M(), await new Promise((S, R) => {
|
|
2803
2803
|
go(S, R, {
|
|
2804
2804
|
data: y,
|
|
@@ -3293,7 +3293,7 @@ class ht {
|
|
|
3293
3293
|
PUBLIC_IS_OFFLINE: n,
|
|
3294
3294
|
PUBLIC_USERNAME_OFFLINE: s,
|
|
3295
3295
|
PUBLIC_PASSWORD_OFFLINE: o
|
|
3296
|
-
} =
|
|
3296
|
+
} = ee();
|
|
3297
3297
|
if (n === "true")
|
|
3298
3298
|
try {
|
|
3299
3299
|
return (await this.props?.axiosApi.get("/auth", {
|
|
@@ -3638,7 +3638,7 @@ const k3 = async (e, t, n, s, o, r, i) => {
|
|
|
3638
3638
|
}
|
|
3639
3639
|
},
|
|
3640
3640
|
tema: async (e) => {
|
|
3641
|
-
const { meta: t, config: n, pathname: s, slug: o, axiosApi: r } = e, i = new ht({ config: n, axiosApi: r }), c = s.split("/"), d = [], l = Zt(s), u = Number(n.newsListLimit) ?? 0, h = /([t][0-9]{4})\w+/.exec(o || ""), m = h && h?.length > 0 ? h[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: p } =
|
|
3641
|
+
const { meta: t, config: n, pathname: s, slug: o, axiosApi: r } = e, i = new ht({ config: n, axiosApi: r }), c = s.split("/"), d = [], l = Zt(s), u = Number(n.newsListLimit) ?? 0, h = /([t][0-9]{4})\w+/.exec(o || ""), m = h && h?.length > 0 ? h[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: p } = ee();
|
|
3642
3642
|
try {
|
|
3643
3643
|
const g = await i.getNewsListTags({
|
|
3644
3644
|
tagid: m,
|
|
@@ -3892,7 +3892,7 @@ async function R3({
|
|
|
3892
3892
|
config: m,
|
|
3893
3893
|
currentNew: l,
|
|
3894
3894
|
internalPath: h
|
|
3895
|
-
});
|
|
3895
|
+
}), { CAPTCHA_KEY: O, CONFIG_comments: Q } = ee();
|
|
3896
3896
|
return /* @__PURE__ */ f(J, { children: [
|
|
3897
3897
|
/* @__PURE__ */ a("meta", { charSet: "utf-8" }),
|
|
3898
3898
|
/* @__PURE__ */ a("meta", { name: "viewport", content: "width=device-width" }),
|
|
@@ -3960,6 +3960,14 @@ async function R3({
|
|
|
3960
3960
|
customSpeculation: w
|
|
3961
3961
|
}
|
|
3962
3962
|
),
|
|
3963
|
+
O && O !== "" && (o === "news" && Q || o === "anuncia" || o === "contacto") && /* @__PURE__ */ a(
|
|
3964
|
+
"script",
|
|
3965
|
+
{
|
|
3966
|
+
src: `https://www.google.com/recaptcha/enterprise.js?render=${O}`,
|
|
3967
|
+
async: !0,
|
|
3968
|
+
defer: !0
|
|
3969
|
+
}
|
|
3970
|
+
),
|
|
3963
3971
|
b
|
|
3964
3972
|
] });
|
|
3965
3973
|
}
|
|
@@ -4067,12 +4075,12 @@ function Tc({
|
|
|
4067
4075
|
if (o)
|
|
4068
4076
|
return Math.abs(y) / S * 100 > 30 ? 1 : 0;
|
|
4069
4077
|
{
|
|
4070
|
-
const
|
|
4078
|
+
const P = n + s, H = Math.abs(y) / P;
|
|
4071
4079
|
return H >= (R === 1 ? 0.2 : 0.3) ? R === 1 ? 1 : Math.min(Math.round(H), j) : 0;
|
|
4072
4080
|
}
|
|
4073
4081
|
},
|
|
4074
4082
|
[o, n, s, E, W]
|
|
4075
|
-
),
|
|
4083
|
+
), te = ue(
|
|
4076
4084
|
(y) => {
|
|
4077
4085
|
r && (u(y), m(y), g(0), w(Date.now()), d(!0), document.body.classList.add("dragging"));
|
|
4078
4086
|
},
|
|
@@ -4080,7 +4088,7 @@ function Tc({
|
|
|
4080
4088
|
), le = ue(
|
|
4081
4089
|
(y) => {
|
|
4082
4090
|
if (!c || !r) return;
|
|
4083
|
-
const S = y - l, R = (n + s) * 1.2, j = e === 0 && S > 0,
|
|
4091
|
+
const S = y - l, R = (n + s) * 1.2, j = e === 0 && S > 0, P = e === Q && S < 0, H = j || P ? Math.sign(S) * Math.min(Math.abs(S), R) : S;
|
|
4084
4092
|
m(y), g(H);
|
|
4085
4093
|
},
|
|
4086
4094
|
[c, l, r, e, Q, n, s]
|
|
@@ -4092,7 +4100,7 @@ function Tc({
|
|
|
4092
4100
|
), U = ue(
|
|
4093
4101
|
(y) => {
|
|
4094
4102
|
if (!c || !r) return;
|
|
4095
|
-
const S = h - l, R = Date.now() - A, j = Math.abs(S) / Math.max(R, 1),
|
|
4103
|
+
const S = h - l, R = Date.now() - A, j = Math.abs(S) / Math.max(R, 1), P = B(S), V = j > 0.5 && Math.abs(S) > 50 ? Math.max(P, 1) : P;
|
|
4096
4104
|
if (V > 0)
|
|
4097
4105
|
if (S > 0) {
|
|
4098
4106
|
const F = Math.max(0, e - V);
|
|
@@ -4118,14 +4126,14 @@ function Tc({
|
|
|
4118
4126
|
]
|
|
4119
4127
|
), I = ue(
|
|
4120
4128
|
(y) => {
|
|
4121
|
-
y.preventDefault(), ["a", "span"].includes(y.target?.localName) && N(y.target),
|
|
4129
|
+
y.preventDefault(), ["a", "span"].includes(y.target?.localName) && N(y.target), te(y.clientX);
|
|
4122
4130
|
},
|
|
4123
|
-
[
|
|
4131
|
+
[te]
|
|
4124
4132
|
), D = ue(
|
|
4125
4133
|
(y) => {
|
|
4126
|
-
|
|
4134
|
+
te(y.touches[0].clientX);
|
|
4127
4135
|
},
|
|
4128
|
-
[
|
|
4136
|
+
[te]
|
|
4129
4137
|
), T = ue(
|
|
4130
4138
|
(y) => {
|
|
4131
4139
|
c && (y.preventDefault(), le(y.touches[0].clientX));
|
|
@@ -4201,7 +4209,7 @@ function B3(e) {
|
|
|
4201
4209
|
[v]
|
|
4202
4210
|
), E = ue(() => {
|
|
4203
4211
|
C(u - 1);
|
|
4204
|
-
}, [u, C]),
|
|
4212
|
+
}, [u, C]), O = ue(() => {
|
|
4205
4213
|
C(u + 1);
|
|
4206
4214
|
}, [u, C]);
|
|
4207
4215
|
if (!m) return;
|
|
@@ -4237,7 +4245,7 @@ function B3(e) {
|
|
|
4237
4245
|
"button",
|
|
4238
4246
|
{
|
|
4239
4247
|
className: "visible-arrow right",
|
|
4240
|
-
onClick:
|
|
4248
|
+
onClick: O,
|
|
4241
4249
|
"aria-label": "Next slide",
|
|
4242
4250
|
style: { display: "flex" },
|
|
4243
4251
|
children: /* @__PURE__ */ a(
|
|
@@ -4307,15 +4315,15 @@ function B3(e) {
|
|
|
4307
4315
|
c && /* @__PURE__ */ a("nav", { className: "carrousel-pagination", children: Array.from(
|
|
4308
4316
|
{ length: Math.ceil(l.length / b) },
|
|
4309
4317
|
(G, B) => {
|
|
4310
|
-
const
|
|
4318
|
+
const te = Math.floor(u / b) === B;
|
|
4311
4319
|
return /* @__PURE__ */ a(
|
|
4312
4320
|
"li",
|
|
4313
4321
|
{
|
|
4314
|
-
className:
|
|
4322
|
+
className: te ? "active" : "",
|
|
4315
4323
|
onClick: () => C(B * b),
|
|
4316
4324
|
style: {
|
|
4317
4325
|
cursor: "pointer",
|
|
4318
|
-
backgroundColor:
|
|
4326
|
+
backgroundColor: te ? "var(--carrousel-pagination-background-color)" : "var(--carrousel-pagination-background-color-white)"
|
|
4319
4327
|
}
|
|
4320
4328
|
},
|
|
4321
4329
|
B
|
|
@@ -4414,7 +4422,7 @@ const Uc = "_content_3olxv_1", Rc = {
|
|
|
4414
4422
|
whatsappButton: Yc
|
|
4415
4423
|
};
|
|
4416
4424
|
function q(e) {
|
|
4417
|
-
const { PUBLIC_SERVICE_PREFIX: t, PUBLIC_IS_SUB_PUBLICATION: n } =
|
|
4425
|
+
const { PUBLIC_SERVICE_PREFIX: t, PUBLIC_IS_SUB_PUBLICATION: n } = ee(), s = t !== "false" && n !== "false" ? "/" + t : "", o = /^(https?:)?\/\//.test(e.href) || /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e.href), r = e.href?.split("/")[1] === s.replace("/", ""), i = {
|
|
4418
4426
|
...e,
|
|
4419
4427
|
href: (!o && !r ? s : "") + (e.href ?? "")
|
|
4420
4428
|
};
|
|
@@ -4565,7 +4573,7 @@ function Zc({ noteShare: e }) {
|
|
|
4565
4573
|
] }) : null;
|
|
4566
4574
|
}
|
|
4567
4575
|
const Rt = (e) => {
|
|
4568
|
-
const { share: t = !1, cutSubtitle: n = !0, keywords: s, info: o, paths: r } = e, { SHOW_TAG_BY_SECTION: i } =
|
|
4576
|
+
const { share: t = !1, cutSubtitle: n = !0, keywords: s, info: o, paths: r } = e, { SHOW_TAG_BY_SECTION: i } = ee(), c = () => {
|
|
4569
4577
|
if (e?.config?.showtime && e.config?.showauthor)
|
|
4570
4578
|
return `${e?.authors[0]?.fullname ?? "Redacción"} - ${Ge(
|
|
4571
4579
|
e.info?.date?.modified
|
|
@@ -4699,10 +4707,10 @@ const Rt = (e) => {
|
|
|
4699
4707
|
}
|
|
4700
4708
|
);
|
|
4701
4709
|
function Ra() {
|
|
4702
|
-
return
|
|
4710
|
+
return ee().COMPONENTS?.PlayIcon || bo;
|
|
4703
4711
|
}
|
|
4704
4712
|
function No() {
|
|
4705
|
-
return
|
|
4713
|
+
return ee().COMPONENTS?.PlayIcon || bo;
|
|
4706
4714
|
}
|
|
4707
4715
|
const ul = (e) => {
|
|
4708
4716
|
const { isVideo: t = !1, priorityHigh: n = !1 } = e, s = Ra(), o = e.preview.sizes;
|
|
@@ -4834,7 +4842,7 @@ const ul = (e) => {
|
|
|
4834
4842
|
const { preview: t } = e;
|
|
4835
4843
|
if (!t?.sizes || t.sizes.length === 0 || t.sizes.some((r) => !r.url))
|
|
4836
4844
|
return /* @__PURE__ */ a("div", { className: re.imageLogoPlaceholder });
|
|
4837
|
-
const { PUBLIC_IS_OFFLINE: n } =
|
|
4845
|
+
const { PUBLIC_IS_OFFLINE: n } = ee();
|
|
4838
4846
|
if (n === "true")
|
|
4839
4847
|
return /* @__PURE__ */ a(
|
|
4840
4848
|
hl,
|
|
@@ -5830,7 +5838,7 @@ const ul = (e) => {
|
|
|
5830
5838
|
showads: !1
|
|
5831
5839
|
}, La = (e) => {
|
|
5832
5840
|
let t = [];
|
|
5833
|
-
const { PUBLIC_ENV: n, PUBLIC_IS_OFFLINE: s } =
|
|
5841
|
+
const { PUBLIC_ENV: n, PUBLIC_IS_OFFLINE: s } = ee();
|
|
5834
5842
|
return e.content && e.content.length > 0 ? t = e.content.map((o) => ({
|
|
5835
5843
|
...o,
|
|
5836
5844
|
config: ps
|
|
@@ -6672,7 +6680,7 @@ const Qd = "_content_r1co8_1", Gd = "_videoContent_r1co8_20", Hd = "_articleSect
|
|
|
6672
6680
|
main: s,
|
|
6673
6681
|
overImage: o = "default",
|
|
6674
6682
|
titleGradient: r = !1
|
|
6675
|
-
} = e, { SHOW_TAG_BY_SECTION: i } =
|
|
6683
|
+
} = e, { SHOW_TAG_BY_SECTION: i } = ee(), c = () => {
|
|
6676
6684
|
if (i && e.keywords?.tags?.length && e.keywords.tags.length > 0) {
|
|
6677
6685
|
const d = e.keywords.tags[0], l = d.name;
|
|
6678
6686
|
return d.approved ? /* @__PURE__ */ a("h3", { children: /* @__PURE__ */ a(
|
|
@@ -7866,7 +7874,7 @@ const Qd = "_content_r1co8_1", Gd = "_videoContent_r1co8_20", Hd = "_articleSect
|
|
|
7866
7874
|
className: je.imageStyled,
|
|
7867
7875
|
src: await pe(r)
|
|
7868
7876
|
}
|
|
7869
|
-
) : /* @__PURE__ */ a("div", { className: je.contentIconStyled, children: e.autorIcon
|
|
7877
|
+
) : /* @__PURE__ */ a("div", { className: je.contentIconStyled, children: e.autorIcon })
|
|
7870
7878
|
}
|
|
7871
7879
|
),
|
|
7872
7880
|
/* @__PURE__ */ f("section", { className: je.journalistSection, children: [
|
|
@@ -8189,7 +8197,7 @@ const Qd = "_content_r1co8_1", Gd = "_videoContent_r1co8_20", Hd = "_articleSect
|
|
|
8189
8197
|
correspondentLink: n2,
|
|
8190
8198
|
description: a2
|
|
8191
8199
|
}, Et = (e) => {
|
|
8192
|
-
const { SHOW_TAG_BY_SECTION: t } =
|
|
8200
|
+
const { SHOW_TAG_BY_SECTION: t } = ee(), n = () => {
|
|
8193
8201
|
if (e?.config?.showtime && e.config?.showauthor)
|
|
8194
8202
|
return `${e?.authors[0]?.fullname} - ${Ge(
|
|
8195
8203
|
e.info?.date?.modified
|
|
@@ -8456,7 +8464,7 @@ const Qd = "_content_r1co8_1", Gd = "_videoContent_r1co8_20", Hd = "_articleSect
|
|
|
8456
8464
|
subtitle: f2,
|
|
8457
8465
|
linkStyled: g2
|
|
8458
8466
|
}, Oo = (e) => {
|
|
8459
|
-
const { SHOW_TAG_BY_SECTION: t } =
|
|
8467
|
+
const { SHOW_TAG_BY_SECTION: t } = ee(), n = () => {
|
|
8460
8468
|
if (t && e.mainNew.keywords?.tags?.length && e.mainNew.keywords.tags.length > 0) {
|
|
8461
8469
|
const s = e.mainNew.keywords.tags[0], o = s.name;
|
|
8462
8470
|
return s.approved ? /* @__PURE__ */ a("h3", { children: /* @__PURE__ */ a(
|
|
@@ -9712,7 +9720,7 @@ const h0 = () => /* @__PURE__ */ f("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
9712
9720
|
if (!e.news || !e.news.authors) return null;
|
|
9713
9721
|
const { news: t, socials: n, texts: s } = e, o = t.authors.map(
|
|
9714
9722
|
(c) => c.internaluser ? `<a href="${`/${e.paths.autor}/${c.name}`}">${c.fullname}</a>` : c.fullname
|
|
9715
|
-
).join(", "), r = () => t.authors.length === 1 ? he.width1Autor : t.authors.length === 2 ? he.width2Autor : t.authors.length === 3 ? he.width3Autor : "", { CONFIG_shareOnlyWhatsApp: i } =
|
|
9723
|
+
).join(", "), r = () => t.authors.length === 1 ? he.width1Autor : t.authors.length === 2 ? he.width2Autor : t.authors.length === 3 ? he.width3Autor : "", { CONFIG_shareOnlyWhatsApp: i } = ee();
|
|
9716
9724
|
return t.config?.showauthor && /* @__PURE__ */ a("div", { className: he.content, children: /* @__PURE__ */ f("div", { className: he.avatarContent, children: [
|
|
9717
9725
|
i ? /* @__PURE__ */ f(
|
|
9718
9726
|
"a",
|
|
@@ -10275,7 +10283,7 @@ const hg = async (e) => {
|
|
|
10275
10283
|
/<span\b[^>]*class=["'][^"']*video__title[^"']*["'][^>]*>[\s\S]*?<\/span>/gi,
|
|
10276
10284
|
""
|
|
10277
10285
|
), Ag = async (e) => {
|
|
10278
|
-
const { PUBLIC_IS_OFFLINE: t } =
|
|
10286
|
+
const { PUBLIC_IS_OFFLINE: t } = ee();
|
|
10279
10287
|
if (!(t === "true")) {
|
|
10280
10288
|
const l = /<img\b[^>]*\bsrc=["']([^"']+)["']/g, u = [...e.matchAll(l)], h = {};
|
|
10281
10289
|
for (const m of u) {
|
|
@@ -10298,8 +10306,8 @@ const hg = async (e) => {
|
|
|
10298
10306
|
const m = u.match(/<img\b[^>]*\balt=["']([^"']*)["']/), p = m ? m[1] : "imagen", g = h.match(/__scale=([^&"']+)/), A = g ? decodeURIComponent(g[1]) : null;
|
|
10299
10307
|
let w = 0, v = 0;
|
|
10300
10308
|
if (A) {
|
|
10301
|
-
const E = A.match(/w:(\d+)/),
|
|
10302
|
-
w = E ? parseInt(E[1]) : 0, v =
|
|
10309
|
+
const E = A.match(/w:(\d+)/), O = A.match(/h:(\d+)/);
|
|
10310
|
+
w = E ? parseInt(E[1]) : 0, v = O ? parseInt(O[1]) : 0;
|
|
10303
10311
|
}
|
|
10304
10312
|
const b = {
|
|
10305
10313
|
preview: {
|
|
@@ -10332,8 +10340,8 @@ const hg = async (e) => {
|
|
|
10332
10340
|
const m = u.match(/\balt=["']([^"']*)["']/), p = m ? m[1] : "imagen", g = h.match(/__scale=([^&"']+)/), A = g ? decodeURIComponent(g[1]) : null;
|
|
10333
10341
|
let w = 0, v = 0;
|
|
10334
10342
|
if (A) {
|
|
10335
|
-
const E = A.match(/w:(\d+)/),
|
|
10336
|
-
w = E ? parseInt(E[1]) : 0, v =
|
|
10343
|
+
const E = A.match(/w:(\d+)/), O = A.match(/h:(\d+)/);
|
|
10344
|
+
w = E ? parseInt(E[1]) : 0, v = O ? parseInt(O[1]) : 0;
|
|
10337
10345
|
}
|
|
10338
10346
|
const b = {
|
|
10339
10347
|
preview: {
|
|
@@ -10505,14 +10513,14 @@ async function Cg(e, t) {
|
|
|
10505
10513
|
allowfullscreen
|
|
10506
10514
|
style="position: relative!important;"
|
|
10507
10515
|
src="${b.main?.code || ""}"></iframe>` : x = b.main?.code || "";
|
|
10508
|
-
const
|
|
10516
|
+
const O = E || b.main?.description || "";
|
|
10509
10517
|
w = `
|
|
10510
10518
|
<figure class="videoFigure">
|
|
10511
10519
|
${N && N.data && N.data.data ? `<script type="application/ld+json">${Tn(
|
|
10512
10520
|
JSON.stringify(N.data.data)
|
|
10513
10521
|
)}<\/script>` : ""}
|
|
10514
10522
|
${x}
|
|
10515
|
-
<figcaption>${
|
|
10523
|
+
<figcaption>${O}</figcaption>
|
|
10516
10524
|
</figure>
|
|
10517
10525
|
`;
|
|
10518
10526
|
}
|
|
@@ -10546,7 +10554,7 @@ async function _g(e) {
|
|
|
10546
10554
|
e.texts,
|
|
10547
10555
|
s
|
|
10548
10556
|
), u = await Cg(u, d), u = fg(u), u = gg(u);
|
|
10549
|
-
const h = t.main.sources ?? [], { NEWS_JOURNALIST_COMPONENT: m } =
|
|
10557
|
+
const h = t.main.sources ?? [], { NEWS_JOURNALIST_COMPONENT: m } = ee(), p = t.config.articlepreview === pt.fotoGaleria && t.hascontent?.hasgalleryimages;
|
|
10550
10558
|
return /* @__PURE__ */ f("div", { className: rn.content, children: [
|
|
10551
10559
|
r !== "liveblogs" && e.showHeaderImage ? p ? /* @__PURE__ */ a(
|
|
10552
10560
|
C0,
|
|
@@ -10888,7 +10896,7 @@ const Ts = {
|
|
|
10888
10896
|
config: n,
|
|
10889
10897
|
banners: s
|
|
10890
10898
|
}) => {
|
|
10891
|
-
const { PUBLIC_ENV: o } =
|
|
10899
|
+
const { PUBLIC_ENV: o } = ee();
|
|
10892
10900
|
if (o !== "local") return null;
|
|
10893
10901
|
const r = e?.news?.data || [], i = (c, d) => ({
|
|
10894
10902
|
...e?.news,
|
|
@@ -10944,7 +10952,7 @@ const Ts = {
|
|
|
10944
10952
|
itemList: d = [],
|
|
10945
10953
|
socials: l,
|
|
10946
10954
|
getVideos: u
|
|
10947
|
-
} = e, h = e.slug === "liveblogs", { SHOW_NEWS_MORE_NEWS: m, SHOW_NEWS_RELATED_NEWS: p, MORE_NEWS_SSR: g } =
|
|
10955
|
+
} = e, h = e.slug === "liveblogs", { SHOW_NEWS_MORE_NEWS: m, SHOW_NEWS_RELATED_NEWS: p, MORE_NEWS_SSR: g } = ee();
|
|
10948
10956
|
if (!(!r || !r[0]))
|
|
10949
10957
|
return /* @__PURE__ */ a(J, { children: /* @__PURE__ */ f(Df, { className: ga.contentLayout2, children: [
|
|
10950
10958
|
/* @__PURE__ */ a(
|
|
@@ -12153,7 +12161,7 @@ function Vp() {
|
|
|
12153
12161
|
}
|
|
12154
12162
|
}
|
|
12155
12163
|
}
|
|
12156
|
-
var C = d, E = l,
|
|
12164
|
+
var C = d, E = l, O = c, Q = i, W = t, G = u, B = s, te = g, le = p, M = n, U = r, I = o, D = h, T = !1;
|
|
12157
12165
|
function z(L) {
|
|
12158
12166
|
return T || (T = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(L) || x(L) === d;
|
|
12159
12167
|
}
|
|
@@ -12169,7 +12177,7 @@ function Vp() {
|
|
|
12169
12177
|
function j(L) {
|
|
12170
12178
|
return typeof L == "object" && L !== null && L.$$typeof === t;
|
|
12171
12179
|
}
|
|
12172
|
-
function
|
|
12180
|
+
function P(L) {
|
|
12173
12181
|
return x(L) === u;
|
|
12174
12182
|
}
|
|
12175
12183
|
function H(L) {
|
|
@@ -12193,7 +12201,7 @@ function Vp() {
|
|
|
12193
12201
|
function ie(L) {
|
|
12194
12202
|
return x(L) === h;
|
|
12195
12203
|
}
|
|
12196
|
-
se.AsyncMode = C, se.ConcurrentMode = E, se.ContextConsumer =
|
|
12204
|
+
se.AsyncMode = C, se.ConcurrentMode = E, se.ContextConsumer = O, se.ContextProvider = Q, se.Element = W, se.ForwardRef = G, se.Fragment = B, se.Lazy = te, se.Memo = le, se.Portal = M, se.Profiler = U, se.StrictMode = I, se.Suspense = D, se.isAsyncMode = z, se.isConcurrentMode = y, se.isContextConsumer = S, se.isContextProvider = R, se.isElement = j, se.isForwardRef = P, se.isFragment = H, se.isLazy = V, se.isMemo = F, se.isPortal = Z, se.isProfiler = X, se.isStrictMode = $, se.isSuspense = ie, se.isValidElementType = b, se.typeOf = x;
|
|
12197
12205
|
})()), se;
|
|
12198
12206
|
}
|
|
12199
12207
|
var Os;
|
|
@@ -12346,9 +12354,9 @@ function Wp() {
|
|
|
12346
12354
|
instanceOf: E,
|
|
12347
12355
|
node: G(),
|
|
12348
12356
|
objectOf: Q,
|
|
12349
|
-
oneOf:
|
|
12357
|
+
oneOf: O,
|
|
12350
12358
|
oneOfType: W,
|
|
12351
|
-
shape:
|
|
12359
|
+
shape: te,
|
|
12352
12360
|
exact: le
|
|
12353
12361
|
};
|
|
12354
12362
|
function g(y, S) {
|
|
@@ -12378,16 +12386,16 @@ function Wp() {
|
|
|
12378
12386
|
}
|
|
12379
12387
|
return V[F] == null ? H ? V[F] === null ? new A("The " + X + " `" + $ + "` is marked as required " + ("in `" + Z + "`, but its value is `null`.")) : new A("The " + X + " `" + $ + "` is marked as required in " + ("`" + Z + "`, but its value is `undefined`.")) : null : y(V, F, Z, X, $);
|
|
12380
12388
|
}
|
|
12381
|
-
var
|
|
12382
|
-
return
|
|
12389
|
+
var P = j.bind(null, !1);
|
|
12390
|
+
return P.isRequired = j.bind(null, !0), P;
|
|
12383
12391
|
}
|
|
12384
12392
|
function v(y) {
|
|
12385
|
-
function S(R, j,
|
|
12393
|
+
function S(R, j, P, H, V, F) {
|
|
12386
12394
|
var Z = R[j], X = I(Z);
|
|
12387
12395
|
if (X !== y) {
|
|
12388
12396
|
var $ = D(Z);
|
|
12389
12397
|
return new A(
|
|
12390
|
-
"Invalid " + H + " `" + V + "` of type " + ("`" + $ + "` supplied to `" +
|
|
12398
|
+
"Invalid " + H + " `" + V + "` of type " + ("`" + $ + "` supplied to `" + P + "`, expected ") + ("`" + y + "`."),
|
|
12391
12399
|
{ expectedType: y }
|
|
12392
12400
|
);
|
|
12393
12401
|
}
|
|
@@ -12399,16 +12407,16 @@ function Wp() {
|
|
|
12399
12407
|
return w(i);
|
|
12400
12408
|
}
|
|
12401
12409
|
function b(y) {
|
|
12402
|
-
function S(R, j,
|
|
12410
|
+
function S(R, j, P, H, V) {
|
|
12403
12411
|
if (typeof y != "function")
|
|
12404
|
-
return new A("Property `" + V + "` of component `" +
|
|
12412
|
+
return new A("Property `" + V + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
|
|
12405
12413
|
var F = R[j];
|
|
12406
12414
|
if (!Array.isArray(F)) {
|
|
12407
12415
|
var Z = I(F);
|
|
12408
|
-
return new A("Invalid " + H + " `" + V + "` of type " + ("`" + Z + "` supplied to `" +
|
|
12416
|
+
return new A("Invalid " + H + " `" + V + "` of type " + ("`" + Z + "` supplied to `" + P + "`, expected an array."));
|
|
12409
12417
|
}
|
|
12410
12418
|
for (var X = 0; X < F.length; X++) {
|
|
12411
|
-
var $ = y(F, X,
|
|
12419
|
+
var $ = y(F, X, P, H, V + "[" + X + "]", n);
|
|
12412
12420
|
if ($ instanceof Error)
|
|
12413
12421
|
return $;
|
|
12414
12422
|
}
|
|
@@ -12417,43 +12425,43 @@ function Wp() {
|
|
|
12417
12425
|
return w(S);
|
|
12418
12426
|
}
|
|
12419
12427
|
function x() {
|
|
12420
|
-
function y(S, R, j,
|
|
12428
|
+
function y(S, R, j, P, H) {
|
|
12421
12429
|
var V = S[R];
|
|
12422
12430
|
if (!c(V)) {
|
|
12423
12431
|
var F = I(V);
|
|
12424
|
-
return new A("Invalid " +
|
|
12432
|
+
return new A("Invalid " + P + " `" + H + "` of type " + ("`" + F + "` supplied to `" + j + "`, expected a single ReactElement."));
|
|
12425
12433
|
}
|
|
12426
12434
|
return null;
|
|
12427
12435
|
}
|
|
12428
12436
|
return w(y);
|
|
12429
12437
|
}
|
|
12430
12438
|
function C() {
|
|
12431
|
-
function y(S, R, j,
|
|
12439
|
+
function y(S, R, j, P, H) {
|
|
12432
12440
|
var V = S[R];
|
|
12433
12441
|
if (!e.isValidElementType(V)) {
|
|
12434
12442
|
var F = I(V);
|
|
12435
|
-
return new A("Invalid " +
|
|
12443
|
+
return new A("Invalid " + P + " `" + H + "` of type " + ("`" + F + "` supplied to `" + j + "`, expected a single ReactElement type."));
|
|
12436
12444
|
}
|
|
12437
12445
|
return null;
|
|
12438
12446
|
}
|
|
12439
12447
|
return w(y);
|
|
12440
12448
|
}
|
|
12441
12449
|
function E(y) {
|
|
12442
|
-
function S(R, j,
|
|
12450
|
+
function S(R, j, P, H, V) {
|
|
12443
12451
|
if (!(R[j] instanceof y)) {
|
|
12444
12452
|
var F = y.name || m, Z = z(R[j]);
|
|
12445
|
-
return new A("Invalid " + H + " `" + V + "` of type " + ("`" + Z + "` supplied to `" +
|
|
12453
|
+
return new A("Invalid " + H + " `" + V + "` of type " + ("`" + Z + "` supplied to `" + P + "`, expected ") + ("instance of `" + F + "`."));
|
|
12446
12454
|
}
|
|
12447
12455
|
return null;
|
|
12448
12456
|
}
|
|
12449
12457
|
return w(S);
|
|
12450
12458
|
}
|
|
12451
|
-
function
|
|
12459
|
+
function O(y) {
|
|
12452
12460
|
if (!Array.isArray(y))
|
|
12453
12461
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
|
|
12454
12462
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
12455
12463
|
) : r("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
12456
|
-
function S(R, j,
|
|
12464
|
+
function S(R, j, P, H, V) {
|
|
12457
12465
|
for (var F = R[j], Z = 0; Z < y.length; Z++)
|
|
12458
12466
|
if (g(F, y[Z]))
|
|
12459
12467
|
return null;
|
|
@@ -12461,20 +12469,20 @@ function Wp() {
|
|
|
12461
12469
|
var ve = D(L);
|
|
12462
12470
|
return ve === "symbol" ? String(L) : L;
|
|
12463
12471
|
});
|
|
12464
|
-
return new A("Invalid " + H + " `" + V + "` of value `" + String(F) + "` " + ("supplied to `" +
|
|
12472
|
+
return new A("Invalid " + H + " `" + V + "` of value `" + String(F) + "` " + ("supplied to `" + P + "`, expected one of " + X + "."));
|
|
12465
12473
|
}
|
|
12466
12474
|
return w(S);
|
|
12467
12475
|
}
|
|
12468
12476
|
function Q(y) {
|
|
12469
|
-
function S(R, j,
|
|
12477
|
+
function S(R, j, P, H, V) {
|
|
12470
12478
|
if (typeof y != "function")
|
|
12471
|
-
return new A("Property `" + V + "` of component `" +
|
|
12479
|
+
return new A("Property `" + V + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
|
|
12472
12480
|
var F = R[j], Z = I(F);
|
|
12473
12481
|
if (Z !== "object")
|
|
12474
|
-
return new A("Invalid " + H + " `" + V + "` of type " + ("`" + Z + "` supplied to `" +
|
|
12482
|
+
return new A("Invalid " + H + " `" + V + "` of type " + ("`" + Z + "` supplied to `" + P + "`, expected an object."));
|
|
12475
12483
|
for (var X in F)
|
|
12476
12484
|
if (s(F, X)) {
|
|
12477
|
-
var $ = y(F, X,
|
|
12485
|
+
var $ = y(F, X, P, H, V + "." + X, n);
|
|
12478
12486
|
if ($ instanceof Error)
|
|
12479
12487
|
return $;
|
|
12480
12488
|
}
|
|
@@ -12492,9 +12500,9 @@ function Wp() {
|
|
|
12492
12500
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + T(R) + " at index " + S + "."
|
|
12493
12501
|
), i;
|
|
12494
12502
|
}
|
|
12495
|
-
function j(
|
|
12503
|
+
function j(P, H, V, F, Z) {
|
|
12496
12504
|
for (var X = [], $ = 0; $ < y.length; $++) {
|
|
12497
|
-
var ie = y[$], L = ie(
|
|
12505
|
+
var ie = y[$], L = ie(P, H, V, F, Z, n);
|
|
12498
12506
|
if (L == null)
|
|
12499
12507
|
return null;
|
|
12500
12508
|
L.data && s(L.data, "expectedType") && X.push(L.data.expectedType);
|
|
@@ -12505,26 +12513,26 @@ function Wp() {
|
|
|
12505
12513
|
return w(j);
|
|
12506
12514
|
}
|
|
12507
12515
|
function G() {
|
|
12508
|
-
function y(S, R, j,
|
|
12509
|
-
return M(S[R]) ? null : new A("Invalid " +
|
|
12516
|
+
function y(S, R, j, P, H) {
|
|
12517
|
+
return M(S[R]) ? null : new A("Invalid " + P + " `" + H + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
|
|
12510
12518
|
}
|
|
12511
12519
|
return w(y);
|
|
12512
12520
|
}
|
|
12513
|
-
function B(y, S, R, j,
|
|
12521
|
+
function B(y, S, R, j, P) {
|
|
12514
12522
|
return new A(
|
|
12515
|
-
(y || "React class") + ": " + S + " type `" + R + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
12523
|
+
(y || "React class") + ": " + S + " type `" + R + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
|
|
12516
12524
|
);
|
|
12517
12525
|
}
|
|
12518
|
-
function
|
|
12519
|
-
function S(R, j,
|
|
12526
|
+
function te(y) {
|
|
12527
|
+
function S(R, j, P, H, V) {
|
|
12520
12528
|
var F = R[j], Z = I(F);
|
|
12521
12529
|
if (Z !== "object")
|
|
12522
|
-
return new A("Invalid " + H + " `" + V + "` of type `" + Z + "` " + ("supplied to `" +
|
|
12530
|
+
return new A("Invalid " + H + " `" + V + "` of type `" + Z + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
12523
12531
|
for (var X in y) {
|
|
12524
12532
|
var $ = y[X];
|
|
12525
12533
|
if (typeof $ != "function")
|
|
12526
|
-
return B(
|
|
12527
|
-
var ie = $(F, X,
|
|
12534
|
+
return B(P, H, V, X, D($));
|
|
12535
|
+
var ie = $(F, X, P, H, V + "." + X, n);
|
|
12528
12536
|
if (ie)
|
|
12529
12537
|
return ie;
|
|
12530
12538
|
}
|
|
@@ -12533,21 +12541,21 @@ function Wp() {
|
|
|
12533
12541
|
return w(S);
|
|
12534
12542
|
}
|
|
12535
12543
|
function le(y) {
|
|
12536
|
-
function S(R, j,
|
|
12544
|
+
function S(R, j, P, H, V) {
|
|
12537
12545
|
var F = R[j], Z = I(F);
|
|
12538
12546
|
if (Z !== "object")
|
|
12539
|
-
return new A("Invalid " + H + " `" + V + "` of type `" + Z + "` " + ("supplied to `" +
|
|
12547
|
+
return new A("Invalid " + H + " `" + V + "` of type `" + Z + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
12540
12548
|
var X = t({}, R[j], y);
|
|
12541
12549
|
for (var $ in X) {
|
|
12542
12550
|
var ie = y[$];
|
|
12543
12551
|
if (s(y, $) && typeof ie != "function")
|
|
12544
|
-
return B(
|
|
12552
|
+
return B(P, H, V, $, D(ie));
|
|
12545
12553
|
if (!ie)
|
|
12546
12554
|
return new A(
|
|
12547
|
-
"Invalid " + H + " `" + V + "` key `" + $ + "` supplied to `" +
|
|
12555
|
+
"Invalid " + H + " `" + V + "` key `" + $ + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(R[j], null, " ") + `
|
|
12548
12556
|
Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
12549
12557
|
);
|
|
12550
|
-
var L = ie(F, $,
|
|
12558
|
+
var L = ie(F, $, P, H, V + "." + $, n);
|
|
12551
12559
|
if (L)
|
|
12552
12560
|
return L;
|
|
12553
12561
|
}
|
|
@@ -12577,8 +12585,8 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
|
12577
12585
|
return !1;
|
|
12578
12586
|
} else
|
|
12579
12587
|
for (; !(j = R.next()).done; ) {
|
|
12580
|
-
var
|
|
12581
|
-
if (
|
|
12588
|
+
var P = j.value;
|
|
12589
|
+
if (P && !M(P[1]))
|
|
12582
12590
|
return !1;
|
|
12583
12591
|
}
|
|
12584
12592
|
} else
|
|
@@ -12868,9 +12876,9 @@ function t9() {
|
|
|
12868
12876
|
for (var b = i(g), x = i(A), C = 0; C < N.length; ++C) {
|
|
12869
12877
|
var E = N[C];
|
|
12870
12878
|
if (!n[E] && !(w && w[E]) && !(x && x[E]) && !(b && b[E])) {
|
|
12871
|
-
var
|
|
12879
|
+
var O = u(A, E);
|
|
12872
12880
|
try {
|
|
12873
|
-
c(g, E,
|
|
12881
|
+
c(g, E, O);
|
|
12874
12882
|
} catch {
|
|
12875
12883
|
}
|
|
12876
12884
|
}
|
|
@@ -12939,14 +12947,14 @@ function i9(e, t) {
|
|
|
12939
12947
|
this.asyncScriptLoaderHandleLoad(N);
|
|
12940
12948
|
return;
|
|
12941
12949
|
}
|
|
12942
|
-
N.observers[p] = function(
|
|
12943
|
-
return h.asyncScriptLoaderHandleLoad(
|
|
12950
|
+
N.observers[p] = function(O) {
|
|
12951
|
+
return h.asyncScriptLoaderHandleLoad(O);
|
|
12944
12952
|
};
|
|
12945
12953
|
return;
|
|
12946
12954
|
}
|
|
12947
12955
|
var b = {};
|
|
12948
|
-
b[p] = function(
|
|
12949
|
-
return h.asyncScriptLoaderHandleLoad(
|
|
12956
|
+
b[p] = function(O) {
|
|
12957
|
+
return h.asyncScriptLoaderHandleLoad(O);
|
|
12950
12958
|
}, Pe[m] = {
|
|
12951
12959
|
loaded: !1,
|
|
12952
12960
|
observers: b
|
|
@@ -12966,14 +12974,14 @@ function i9(e, t) {
|
|
|
12966
12974
|
w && typeof window < "u" && (window[w] = function() {
|
|
12967
12975
|
return h.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
12968
12976
|
}), x.onload = function() {
|
|
12969
|
-
var
|
|
12970
|
-
|
|
12971
|
-
return w ? !1 : (Q(
|
|
12977
|
+
var O = Pe[m];
|
|
12978
|
+
O && (O.loaded = !0, E(function(Q) {
|
|
12979
|
+
return w ? !1 : (Q(O), !0);
|
|
12972
12980
|
}));
|
|
12973
12981
|
}, x.onerror = function() {
|
|
12974
|
-
var
|
|
12975
|
-
|
|
12976
|
-
return Q(
|
|
12982
|
+
var O = Pe[m];
|
|
12983
|
+
O && (O.errored = !0, E(function(Q) {
|
|
12984
|
+
return Q(O), !0;
|
|
12977
12985
|
}));
|
|
12978
12986
|
}, document.body.appendChild(x);
|
|
12979
12987
|
}, l.componentWillUnmount = function() {
|
|
@@ -13778,7 +13786,7 @@ const M9 = (e, t) => {
|
|
|
13778
13786
|
} catch (B) {
|
|
13779
13787
|
throw w(!1), new Error(`Error al obtener comentarios: ${B}`);
|
|
13780
13788
|
}
|
|
13781
|
-
}, E = p?.comments && p.comments.length > 0,
|
|
13789
|
+
}, E = p?.comments && p.comments.length > 0, O = E ? "Comparte tu opinión de este artículo." : "Se el primero en compartir tu opinión de este artículo.", Q = /* @__PURE__ */ a("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ a(et, {}) });
|
|
13782
13790
|
return /* @__PURE__ */ f(J, { children: [
|
|
13783
13791
|
/* @__PURE__ */ a("div", { className: "comments-container", children: /* @__PURE__ */ a(Ae, { title: E || e ? "COMENTARIOS" : !1, children: /* @__PURE__ */ f(J, { children: [
|
|
13784
13792
|
e && n && /* @__PURE__ */ f("div", { className: "comments-header", children: [
|
|
@@ -13787,7 +13795,7 @@ const M9 = (e, t) => {
|
|
|
13787
13795
|
{
|
|
13788
13796
|
user: n,
|
|
13789
13797
|
handleLogout: s,
|
|
13790
|
-
message:
|
|
13798
|
+
message: O
|
|
13791
13799
|
}
|
|
13792
13800
|
),
|
|
13793
13801
|
/* @__PURE__ */ a(
|
|
@@ -13923,7 +13931,7 @@ function V9({ goToLogin: e, handleGoogleLogin: t, API_ENV: n }) {
|
|
|
13923
13931
|
n.CAPTCHA_KEY ?? ""
|
|
13924
13932
|
);
|
|
13925
13933
|
if (!E) throw new Error("Captcha token no generado");
|
|
13926
|
-
const
|
|
13934
|
+
const O = await fetch("/api/auth/create-user", {
|
|
13927
13935
|
method: "POST",
|
|
13928
13936
|
headers: { "Content-Type": "application/json" },
|
|
13929
13937
|
body: JSON.stringify({
|
|
@@ -13933,8 +13941,8 @@ function V9({ goToLogin: e, handleGoogleLogin: t, API_ENV: n }) {
|
|
|
13933
13941
|
token: E
|
|
13934
13942
|
})
|
|
13935
13943
|
});
|
|
13936
|
-
if (!
|
|
13937
|
-
const Q = await
|
|
13944
|
+
if (!O.ok) {
|
|
13945
|
+
const Q = await O.json().catch(() => ({}));
|
|
13938
13946
|
if (Q.code === "UsernameExistsException") {
|
|
13939
13947
|
await fetch("/api/auth/resend-code", {
|
|
13940
13948
|
method: "POST",
|
|
@@ -14143,14 +14151,14 @@ function F9({
|
|
|
14143
14151
|
try {
|
|
14144
14152
|
const B = o.PUBLIC_ENV === "local" ? "token" : await Ko("comment_login", o.CAPTCHA_KEY || "");
|
|
14145
14153
|
if (!B) throw new Error("Captcha token no generado");
|
|
14146
|
-
const
|
|
14154
|
+
const te = await fetch("/api/auth/login-password", {
|
|
14147
14155
|
method: "POST",
|
|
14148
14156
|
headers: { "Content-Type": "application/json" },
|
|
14149
14157
|
credentials: "include",
|
|
14150
14158
|
body: JSON.stringify({ email: c, password: l, token: B })
|
|
14151
14159
|
});
|
|
14152
|
-
if (!
|
|
14153
|
-
const le = await
|
|
14160
|
+
if (!te.ok) {
|
|
14161
|
+
const le = await te.json().catch(() => ({}));
|
|
14154
14162
|
throw new Error(le?.error || "Ha ocurrido un error");
|
|
14155
14163
|
}
|
|
14156
14164
|
e(), await t();
|
|
@@ -14185,8 +14193,8 @@ function F9({
|
|
|
14185
14193
|
body: JSON.stringify({ email: c })
|
|
14186
14194
|
});
|
|
14187
14195
|
if (!B.ok) {
|
|
14188
|
-
const
|
|
14189
|
-
throw new Error(
|
|
14196
|
+
const te = await B.json().catch(() => ({}));
|
|
14197
|
+
throw new Error(te?.error || "Error al enviar código");
|
|
14190
14198
|
}
|
|
14191
14199
|
u(""), i("changePassword");
|
|
14192
14200
|
} catch (B) {
|
|
@@ -14222,25 +14230,25 @@ function F9({
|
|
|
14222
14230
|
return;
|
|
14223
14231
|
}
|
|
14224
14232
|
if (En.some(
|
|
14225
|
-
(
|
|
14233
|
+
(te) => !te.test(p)
|
|
14226
14234
|
)) {
|
|
14227
14235
|
E("La contraseña no cumple con los requisitos");
|
|
14228
14236
|
return;
|
|
14229
14237
|
}
|
|
14230
14238
|
E(null), x(!0);
|
|
14231
14239
|
try {
|
|
14232
|
-
const
|
|
14240
|
+
const te = await fetch("/api/auth/confirm-forgot-password", {
|
|
14233
14241
|
method: "POST",
|
|
14234
14242
|
headers: { "Content-Type": "application/json" },
|
|
14235
14243
|
body: JSON.stringify({ email: c, code: h, newPassword: p })
|
|
14236
14244
|
});
|
|
14237
|
-
if (!
|
|
14238
|
-
const le = await
|
|
14245
|
+
if (!te.ok) {
|
|
14246
|
+
const le = await te.json().catch(() => ({}));
|
|
14239
14247
|
throw new Error(le?.error || "Error al cambiar contraseña");
|
|
14240
14248
|
}
|
|
14241
14249
|
i("feedback");
|
|
14242
|
-
} catch (
|
|
14243
|
-
E(
|
|
14250
|
+
} catch (te) {
|
|
14251
|
+
E(te?.message || "Error inesperado");
|
|
14244
14252
|
} finally {
|
|
14245
14253
|
x(!1);
|
|
14246
14254
|
}
|
|
@@ -15005,7 +15013,7 @@ export {
|
|
|
15005
15013
|
U3 as generalGetData,
|
|
15006
15014
|
Ko as getCaptchaToken,
|
|
15007
15015
|
D9 as getComments,
|
|
15008
|
-
|
|
15016
|
+
ee as getConfig,
|
|
15009
15017
|
k3 as getDynamicSlots,
|
|
15010
15018
|
Cn as getEnvironmentUrl,
|
|
15011
15019
|
s3 as getEnvironmentUrlFront,
|