sass-template-common 0.0.93 → 0.0.95
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 +2 -72
- package/dist/sass-template-common.js +417 -430
- package/dist/sass-template-common.umd.cjs +22 -22
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as a, jsxs as m, Fragment as
|
|
2
|
-
import xe, { useState as
|
|
1
|
+
import { jsx as a, jsxs as m, Fragment as Q } from "react/jsx-runtime";
|
|
2
|
+
import xe, { useState as j, useRef as Ja, useCallback as ae, useEffect as Ie, createElement as ut, forwardRef as Ks, Fragment as on, useMemo as Js } from "react";
|
|
3
3
|
const Zs = ({ id: e }) => e && /* @__PURE__ */ a(
|
|
4
4
|
"script",
|
|
5
5
|
{
|
|
@@ -24,7 +24,7 @@ const Zs = ({ id: e }) => e && /* @__PURE__ */ a(
|
|
|
24
24
|
s[o] = o;
|
|
25
25
|
}), s;
|
|
26
26
|
}, [t]);
|
|
27
|
-
return e && /* @__PURE__ */ m(
|
|
27
|
+
return e && /* @__PURE__ */ m(Q, { children: [
|
|
28
28
|
/* @__PURE__ */ a(
|
|
29
29
|
"script",
|
|
30
30
|
{
|
|
@@ -49,7 +49,7 @@ const Zs = ({ id: e }) => e && /* @__PURE__ */ a(
|
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
51
|
] });
|
|
52
|
-
}, n3 = ({ id: e }) => /* @__PURE__ */ m(
|
|
52
|
+
}, n3 = ({ id: e }) => /* @__PURE__ */ m(Q, { children: [
|
|
53
53
|
/* @__PURE__ */ a(
|
|
54
54
|
"script",
|
|
55
55
|
{
|
|
@@ -92,7 +92,7 @@ function Za() {
|
|
|
92
92
|
(function(n, s) {
|
|
93
93
|
e.exports = s();
|
|
94
94
|
})(no, (function() {
|
|
95
|
-
var n = 1e3, s = 6e4, o = 36e5, i = "millisecond", r = "second", l = "minute", c = "hour", u = "day", d = "week", h = "month",
|
|
95
|
+
var n = 1e3, s = 6e4, o = 36e5, i = "millisecond", r = "second", l = "minute", c = "hour", u = "day", d = "week", h = "month", g = "quarter", y = "year", f = "date", p = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|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, k = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(q) {
|
|
96
96
|
var x = ["th", "st", "nd", "rd"], b = q % 100;
|
|
97
97
|
return "[" + q + (x[(b - 20) % 10] || x[b] || x[0]) + "]";
|
|
98
98
|
} }, N = function(q, x, b) {
|
|
@@ -108,7 +108,7 @@ function Za() {
|
|
|
108
108
|
}, a: function(q) {
|
|
109
109
|
return q < 0 ? Math.ceil(q) || 0 : Math.floor(q);
|
|
110
110
|
}, p: function(q) {
|
|
111
|
-
return { M: h, y, w: d, d: u, D:
|
|
111
|
+
return { M: h, y, w: d, d: u, D: f, h: c, m: l, s: r, ms: i, Q: g }[q] || String(q || "").toLowerCase().replace(/s$/, "");
|
|
112
112
|
}, u: function(q) {
|
|
113
113
|
return q === void 0;
|
|
114
114
|
} }, I = "en", E = {};
|
|
@@ -192,7 +192,7 @@ function Za() {
|
|
|
192
192
|
var _e = this.$locale().weekStart || 0, At = (W < _e ? W + 7 : W) - _e;
|
|
193
193
|
return L(P ? Z - At : Z + (6 - At), V);
|
|
194
194
|
case u:
|
|
195
|
-
case
|
|
195
|
+
case f:
|
|
196
196
|
return G(be + "Hours", 0);
|
|
197
197
|
case c:
|
|
198
198
|
return G(be + "Minutes", 1);
|
|
@@ -206,10 +206,10 @@ function Za() {
|
|
|
206
206
|
}, x.endOf = function(b) {
|
|
207
207
|
return this.startOf(b, !1);
|
|
208
208
|
}, x.$set = function(b, B) {
|
|
209
|
-
var S, P = T.p(b), _ = "set" + (this.$u ? "UTC" : ""), L = (S = {}, S[u] = _ + "Date", S[
|
|
209
|
+
var S, P = T.p(b), _ = "set" + (this.$u ? "UTC" : ""), L = (S = {}, S[u] = _ + "Date", S[f] = _ + "Date", S[h] = _ + "Month", S[y] = _ + "FullYear", S[c] = _ + "Hours", S[l] = _ + "Minutes", S[r] = _ + "Seconds", S[i] = _ + "Milliseconds", S)[P], G = P === u ? this.$D + (B - this.$W) : B;
|
|
210
210
|
if (P === h || P === y) {
|
|
211
|
-
var W = this.clone().set(
|
|
212
|
-
W.$d[L](G), W.init(), this.$d = W.set(
|
|
211
|
+
var W = this.clone().set(f, 1);
|
|
212
|
+
W.$d[L](G), W.init(), this.$d = W.set(f, Math.min(this.$D, W.daysInMonth())).$d;
|
|
213
213
|
} else L && this.$d[L](G);
|
|
214
214
|
return this.init(), this;
|
|
215
215
|
}, x.set = function(b, B) {
|
|
@@ -310,7 +310,7 @@ function Za() {
|
|
|
310
310
|
case h:
|
|
311
311
|
P = Z();
|
|
312
312
|
break;
|
|
313
|
-
case
|
|
313
|
+
case g:
|
|
314
314
|
P = Z() / 3;
|
|
315
315
|
break;
|
|
316
316
|
case d:
|
|
@@ -352,7 +352,7 @@ function Za() {
|
|
|
352
352
|
return this.$d.toUTCString();
|
|
353
353
|
}, q;
|
|
354
354
|
})(), ne = z.prototype;
|
|
355
|
-
return M.prototype = ne, [["$ms", i], ["$s", r], ["$m", l], ["$H", c], ["$W", u], ["$M", h], ["$y", y], ["$D",
|
|
355
|
+
return M.prototype = ne, [["$ms", i], ["$s", r], ["$m", l], ["$H", c], ["$W", u], ["$M", h], ["$y", y], ["$D", f]].forEach((function(q) {
|
|
356
356
|
ne[q[1]] = function(x) {
|
|
357
357
|
return this.$g(x, q[0], q[1]);
|
|
358
358
|
};
|
|
@@ -375,15 +375,15 @@ function oo() {
|
|
|
375
375
|
return function(n, s, o) {
|
|
376
376
|
n = n || {};
|
|
377
377
|
var i = s.prototype, r = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
378
|
-
function l(u, d, h,
|
|
379
|
-
return i.fromToBase(u, d, h,
|
|
378
|
+
function l(u, d, h, g) {
|
|
379
|
+
return i.fromToBase(u, d, h, g);
|
|
380
380
|
}
|
|
381
|
-
o.en.relativeTime = r, i.fromToBase = function(u, d, h,
|
|
382
|
-
for (var
|
|
381
|
+
o.en.relativeTime = r, i.fromToBase = function(u, d, h, g, y) {
|
|
382
|
+
for (var f, p, w, C = h.$locale().relativeTime || r, k = 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 = k.length, R = 0; R < N; R += 1) {
|
|
383
383
|
var I = k[R];
|
|
384
|
-
I.d && (
|
|
385
|
-
var E = (n.rounding || Math.round)(Math.abs(
|
|
386
|
-
if (w =
|
|
384
|
+
I.d && (f = g ? o(u).diff(h, I.d, !0) : h.diff(u, I.d, !0));
|
|
385
|
+
var E = (n.rounding || Math.round)(Math.abs(f));
|
|
386
|
+
if (w = f > 0, E <= I.r || !I.r) {
|
|
387
387
|
E <= 1 && R > 0 && (I = k[R - 1]);
|
|
388
388
|
var D = C[I.l];
|
|
389
389
|
y && (E = y("" + E)), p = typeof D == "string" ? D.replace("%d", E) : D(E, d, I.l, w);
|
|
@@ -476,10 +476,10 @@ function mo() {
|
|
|
476
476
|
var R = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
477
477
|
return (N = this.local().add(k + R, n)).$offset = k, N.$x.$localOffset = R, N;
|
|
478
478
|
};
|
|
479
|
-
var
|
|
479
|
+
var g = c.format;
|
|
480
480
|
c.format = function(p) {
|
|
481
481
|
var w = p || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
482
|
-
return
|
|
482
|
+
return g.call(this, w);
|
|
483
483
|
}, c.valueOf = function() {
|
|
484
484
|
var p = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
485
485
|
return this.$d.valueOf() - 6e4 * p;
|
|
@@ -494,11 +494,11 @@ function mo() {
|
|
|
494
494
|
c.toDate = function(p) {
|
|
495
495
|
return p === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : y.call(this);
|
|
496
496
|
};
|
|
497
|
-
var
|
|
497
|
+
var f = c.diff;
|
|
498
498
|
c.diff = function(p, w, C) {
|
|
499
|
-
if (p && this.$u === p.$u) return
|
|
499
|
+
if (p && this.$u === p.$u) return f.call(this, p, w, C);
|
|
500
500
|
var k = this.local(), N = l(p).local();
|
|
501
|
-
return
|
|
501
|
+
return f.call(k, N, w, C);
|
|
502
502
|
};
|
|
503
503
|
};
|
|
504
504
|
}));
|
|
@@ -514,56 +514,56 @@ function po() {
|
|
|
514
514
|
})(go, (function() {
|
|
515
515
|
var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, s = {};
|
|
516
516
|
return function(o, i, r) {
|
|
517
|
-
var l, c = function(
|
|
518
|
-
|
|
519
|
-
var p = new Date(
|
|
517
|
+
var l, c = function(g, y, f) {
|
|
518
|
+
f === void 0 && (f = {});
|
|
519
|
+
var p = new Date(g), w = (function(C, k) {
|
|
520
520
|
k === void 0 && (k = {});
|
|
521
521
|
var N = k.timeZoneName || "short", R = C + "|" + N, I = s[R];
|
|
522
522
|
return I || (I = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: C, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: N }), s[R] = I), I;
|
|
523
|
-
})(y,
|
|
523
|
+
})(y, f);
|
|
524
524
|
return w.formatToParts(p);
|
|
525
|
-
}, u = function(
|
|
526
|
-
for (var
|
|
527
|
-
var C =
|
|
525
|
+
}, u = function(g, y) {
|
|
526
|
+
for (var f = c(g, y), p = [], w = 0; w < f.length; w += 1) {
|
|
527
|
+
var C = f[w], k = C.type, N = C.value, R = n[k];
|
|
528
528
|
R >= 0 && (p[R] = parseInt(N, 10));
|
|
529
529
|
}
|
|
530
|
-
var I = p[3], E = I === 24 ? 0 : I, D = p[0] + "-" + p[1] + "-" + p[2] + " " + E + ":" + p[4] + ":" + p[5] + ":000", H = +
|
|
530
|
+
var I = p[3], E = I === 24 ? 0 : I, D = p[0] + "-" + p[1] + "-" + p[2] + " " + E + ":" + p[4] + ":" + p[5] + ":000", H = +g;
|
|
531
531
|
return (r.utc(D).valueOf() - (H -= H % 1e3)) / 6e4;
|
|
532
532
|
}, d = i.prototype;
|
|
533
|
-
d.tz = function(
|
|
534
|
-
|
|
535
|
-
var
|
|
536
|
-
if (!Number(N))
|
|
537
|
-
else if (
|
|
538
|
-
var R =
|
|
539
|
-
|
|
533
|
+
d.tz = function(g, y) {
|
|
534
|
+
g === void 0 && (g = l);
|
|
535
|
+
var f, p = this.utcOffset(), w = this.toDate(), C = w.toLocaleString("en-US", { timeZone: g }), k = Math.round((w - new Date(C)) / 1e3 / 60), N = 15 * -Math.round(w.getTimezoneOffset() / 15) - k;
|
|
536
|
+
if (!Number(N)) f = this.utcOffset(0, y);
|
|
537
|
+
else if (f = r(C, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(N, !0), y) {
|
|
538
|
+
var R = f.utcOffset();
|
|
539
|
+
f = f.add(p - R, "minute");
|
|
540
540
|
}
|
|
541
|
-
return
|
|
542
|
-
}, d.offsetName = function(
|
|
543
|
-
var y = this.$x.$timezone || r.tz.guess(),
|
|
541
|
+
return f.$x.$timezone = g, f;
|
|
542
|
+
}, d.offsetName = function(g) {
|
|
543
|
+
var y = this.$x.$timezone || r.tz.guess(), f = c(this.valueOf(), y, { timeZoneName: g }).find((function(p) {
|
|
544
544
|
return p.type.toLowerCase() === "timezonename";
|
|
545
545
|
}));
|
|
546
|
-
return
|
|
546
|
+
return f && f.value;
|
|
547
547
|
};
|
|
548
548
|
var h = d.startOf;
|
|
549
|
-
d.startOf = function(
|
|
550
|
-
if (!this.$x || !this.$x.$timezone) return h.call(this,
|
|
551
|
-
var
|
|
552
|
-
return h.call(
|
|
553
|
-
}, r.tz = function(
|
|
554
|
-
var p =
|
|
555
|
-
if (typeof
|
|
549
|
+
d.startOf = function(g, y) {
|
|
550
|
+
if (!this.$x || !this.$x.$timezone) return h.call(this, g, y);
|
|
551
|
+
var f = r(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
552
|
+
return h.call(f, g, y).tz(this.$x.$timezone, !0);
|
|
553
|
+
}, r.tz = function(g, y, f) {
|
|
554
|
+
var p = f && y, w = f || y || l, C = u(+r(), w);
|
|
555
|
+
if (typeof g != "string") return r(g).tz(w);
|
|
556
556
|
var k = (function(E, D, H) {
|
|
557
557
|
var F = E - 60 * D * 1e3, M = u(F, H);
|
|
558
558
|
if (D === M) return [F, D];
|
|
559
559
|
var T = u(F -= 60 * (M - D) * 1e3, H);
|
|
560
560
|
return M === T ? [F, M] : [E - 60 * Math.min(M, T) * 1e3, Math.max(M, T)];
|
|
561
|
-
})(r.utc(
|
|
561
|
+
})(r.utc(g, p).valueOf(), C, w), N = k[0], R = k[1], I = r(N).utcOffset(R);
|
|
562
562
|
return I.$x.$timezone = w, I;
|
|
563
563
|
}, r.tz.guess = function() {
|
|
564
564
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
565
|
-
}, r.tz.setDefault = function(
|
|
566
|
-
l =
|
|
565
|
+
}, r.tz.setDefault = function(g) {
|
|
566
|
+
l = g;
|
|
567
567
|
};
|
|
568
568
|
};
|
|
569
569
|
}));
|
|
@@ -856,7 +856,7 @@ const rn = () => {
|
|
|
856
856
|
const t = e.banners.find((i) => i.key === e.name);
|
|
857
857
|
if (!t || !t.show) return null;
|
|
858
858
|
const n = Wn(t.value || "", e.replaces), s = /<script([^>]*)>([\s\S]*?)<\/script\s*>/gi, o = [...n.matchAll(s)];
|
|
859
|
-
return /* @__PURE__ */ a(
|
|
859
|
+
return /* @__PURE__ */ a(Q, { children: o.map((i, r) => {
|
|
860
860
|
const l = i[1] || "", c = i[2]?.trim() || "", u = l.match(/src=["']([^"']+)["']/i);
|
|
861
861
|
if (u) {
|
|
862
862
|
const d = u[1];
|
|
@@ -875,7 +875,7 @@ const rn = () => {
|
|
|
875
875
|
const t = e.banners.find((o) => o.key === e.name);
|
|
876
876
|
if (!t || !t.show) return null;
|
|
877
877
|
const s = Wn(t.value || "", e.replaces).split(/(<script[\s\S]*?<\/script\s*>)/gi);
|
|
878
|
-
return /* @__PURE__ */ a(
|
|
878
|
+
return /* @__PURE__ */ a(Q, { children: s.map((o, i) => {
|
|
879
879
|
const r = o.match(
|
|
880
880
|
/<script([^>]*)>([\s\S]*?)<\/script\s*>/i
|
|
881
881
|
);
|
|
@@ -915,7 +915,7 @@ function i3(e) {
|
|
|
915
915
|
const Io = () => {
|
|
916
916
|
const { PUBLIC_ASSETS_URL: e } = J();
|
|
917
917
|
return e && e !== "false" && /* @__PURE__ */ a("link", { rel: "preconnect", href: e, crossOrigin: "anonymous" });
|
|
918
|
-
}, { PUBLIC_ASSETS_URL: vn } = J(), To = vn && vn !== "false" ? vn : "", ma = ({ images: e }) => /* @__PURE__ */ a(
|
|
918
|
+
}, { PUBLIC_ASSETS_URL: vn } = J(), To = vn && vn !== "false" ? vn : "", ma = ({ images: e }) => /* @__PURE__ */ a(Q, { children: e.map(
|
|
919
919
|
(t, n) => t.href !== "" && /* @__PURE__ */ a(
|
|
920
920
|
"link",
|
|
921
921
|
{
|
|
@@ -1173,7 +1173,7 @@ const Oo = async ({
|
|
|
1173
1173
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
1174
1174
|
}
|
|
1175
1175
|
`;
|
|
1176
|
-
return /* @__PURE__ */ a(
|
|
1176
|
+
return /* @__PURE__ */ a(Q, { children: e.useS3Font ? /* @__PURE__ */ m(Q, { children: [
|
|
1177
1177
|
/* @__PURE__ */ a(
|
|
1178
1178
|
"link",
|
|
1179
1179
|
{
|
|
@@ -1430,11 +1430,11 @@ function ss(e, t) {
|
|
|
1430
1430
|
const { toString: Fo } = Object.prototype, { getPrototypeOf: Yn } = Object, { iterator: pn, toStringTag: os } = Symbol, An = /* @__PURE__ */ ((e) => (t) => {
|
|
1431
1431
|
const n = Fo.call(t);
|
|
1432
1432
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
1433
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
1433
|
+
})(/* @__PURE__ */ Object.create(null)), Ee = (e) => (e = e.toLowerCase(), (t) => An(t) === e), wn = (e) => (t) => typeof t === e, { isArray: mt } = Array, lt = wn("undefined");
|
|
1434
1434
|
function Bt(e) {
|
|
1435
1435
|
return e !== null && !lt(e) && e.constructor !== null && !lt(e.constructor) && me(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1436
1436
|
}
|
|
1437
|
-
const is =
|
|
1437
|
+
const is = Ee("ArrayBuffer");
|
|
1438
1438
|
function Wo(e) {
|
|
1439
1439
|
let t;
|
|
1440
1440
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && is(e.buffer), t;
|
|
@@ -1452,11 +1452,11 @@ const $o = wn("string"), me = wn("function"), rs = wn("number"), Lt = (e) => e !
|
|
|
1452
1452
|
} catch {
|
|
1453
1453
|
return !1;
|
|
1454
1454
|
}
|
|
1455
|
-
}, Jo =
|
|
1455
|
+
}, Jo = Ee("Date"), Zo = Ee("File"), Xo = Ee("Blob"), ei = Ee("FileList"), ti = (e) => Lt(e) && me(e.pipe), ni = (e) => {
|
|
1456
1456
|
let t;
|
|
1457
1457
|
return e && (typeof FormData == "function" && e instanceof FormData || me(e.append) && ((t = An(e)) === "formdata" || // detect form-data instance
|
|
1458
1458
|
t === "object" && me(e.toString) && e.toString() === "[object FormData]"));
|
|
1459
|
-
}, ai =
|
|
1459
|
+
}, ai = Ee("URLSearchParams"), [si, oi, ii, ri] = ["ReadableStream", "Request", "Response", "Headers"].map(Ee), li = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1460
1460
|
function Rt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
1461
1461
|
if (e === null || typeof e > "u")
|
|
1462
1462
|
return;
|
|
@@ -1536,12 +1536,12 @@ const ci = (e, t, n, { allOwnKeys: s } = {}) => (Rt(t, (o, i) => {
|
|
|
1536
1536
|
for (; (n = e.exec(t)) !== null; )
|
|
1537
1537
|
s.push(n);
|
|
1538
1538
|
return s;
|
|
1539
|
-
}, wi =
|
|
1539
|
+
}, wi = Ee("HTMLFormElement"), yi = (e) => e.toLowerCase().replace(
|
|
1540
1540
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
1541
1541
|
function(n, s, o) {
|
|
1542
1542
|
return s.toUpperCase() + o;
|
|
1543
1543
|
}
|
|
1544
|
-
), ha = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ci =
|
|
1544
|
+
), ha = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ci = Ee("RegExp"), ds = (e, t) => {
|
|
1545
1545
|
const n = Object.getOwnPropertyDescriptors(e), s = {};
|
|
1546
1546
|
Rt(n, (o, i) => {
|
|
1547
1547
|
let r;
|
|
@@ -1593,7 +1593,7 @@ const xi = (e) => {
|
|
|
1593
1593
|
return s;
|
|
1594
1594
|
};
|
|
1595
1595
|
return n(e, 0);
|
|
1596
|
-
}, Ei =
|
|
1596
|
+
}, Ei = Ee("AsyncFunction"), ki = (e) => e && (Lt(e) || me(e)) && me(e.then) && me(e.catch), us = ((e, t) => e ? setImmediate : t ? ((n, s) => (Ze.addEventListener("message", ({ source: o, data: i }) => {
|
|
1597
1597
|
o === Ze && i === n && s.length && s.shift()();
|
|
1598
1598
|
}, !1), (o) => {
|
|
1599
1599
|
s.push(o), Ze.postMessage(n, "*");
|
|
@@ -1634,7 +1634,7 @@ const xi = (e) => {
|
|
|
1634
1634
|
inherits: ui,
|
|
1635
1635
|
toFlatObject: mi,
|
|
1636
1636
|
kindOf: An,
|
|
1637
|
-
kindOfTest:
|
|
1637
|
+
kindOfTest: Ee,
|
|
1638
1638
|
endsWith: hi,
|
|
1639
1639
|
toArray: fi,
|
|
1640
1640
|
forEachEntry: pi,
|
|
@@ -1660,10 +1660,10 @@ const xi = (e) => {
|
|
|
1660
1660
|
asap: Ui,
|
|
1661
1661
|
isIterable: Ii
|
|
1662
1662
|
};
|
|
1663
|
-
function
|
|
1663
|
+
function O(e, t, n, s, o) {
|
|
1664
1664
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), s && (this.request = s), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
1665
1665
|
}
|
|
1666
|
-
A.inherits(
|
|
1666
|
+
A.inherits(O, Error, {
|
|
1667
1667
|
toJSON: function() {
|
|
1668
1668
|
return {
|
|
1669
1669
|
// Standard
|
|
@@ -1684,7 +1684,7 @@ A.inherits(Q, Error, {
|
|
|
1684
1684
|
};
|
|
1685
1685
|
}
|
|
1686
1686
|
});
|
|
1687
|
-
const ms =
|
|
1687
|
+
const ms = O.prototype, hs = {};
|
|
1688
1688
|
[
|
|
1689
1689
|
"ERR_BAD_OPTION_VALUE",
|
|
1690
1690
|
"ERR_BAD_OPTION",
|
|
@@ -1702,15 +1702,15 @@ const ms = Q.prototype, hs = {};
|
|
|
1702
1702
|
].forEach((e) => {
|
|
1703
1703
|
hs[e] = { value: e };
|
|
1704
1704
|
});
|
|
1705
|
-
Object.defineProperties(
|
|
1705
|
+
Object.defineProperties(O, hs);
|
|
1706
1706
|
Object.defineProperty(ms, "isAxiosError", { value: !0 });
|
|
1707
|
-
|
|
1707
|
+
O.from = (e, t, n, s, o, i) => {
|
|
1708
1708
|
const r = Object.create(ms);
|
|
1709
1709
|
A.toFlatObject(e, r, function(d) {
|
|
1710
1710
|
return d !== Error.prototype;
|
|
1711
1711
|
}, (u) => u !== "isAxiosError");
|
|
1712
1712
|
const l = e && e.message ? e.message : "Error", c = t == null && e ? e.code : t;
|
|
1713
|
-
return
|
|
1713
|
+
return O.call(r, l, c, n, s, o), e && r.cause == null && Object.defineProperty(r, "cause", { value: e, configurable: !0 }), r.name = e && e.name || "Error", i && Object.assign(r, i), r;
|
|
1714
1714
|
};
|
|
1715
1715
|
const Ti = null;
|
|
1716
1716
|
function jn(e) {
|
|
@@ -1743,22 +1743,22 @@ function yn(e, t, n) {
|
|
|
1743
1743
|
const s = n.metaTokens, o = n.visitor || d, i = n.dots, r = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && A.isSpecCompliantForm(t);
|
|
1744
1744
|
if (!A.isFunction(o))
|
|
1745
1745
|
throw new TypeError("visitor must be a function");
|
|
1746
|
-
function u(
|
|
1747
|
-
if (
|
|
1748
|
-
if (A.isDate(
|
|
1749
|
-
return
|
|
1750
|
-
if (A.isBoolean(
|
|
1751
|
-
return
|
|
1752
|
-
if (!c && A.isBlob(
|
|
1753
|
-
throw new
|
|
1754
|
-
return A.isArrayBuffer(
|
|
1755
|
-
}
|
|
1756
|
-
function d(
|
|
1757
|
-
let C =
|
|
1758
|
-
if (
|
|
1746
|
+
function u(f) {
|
|
1747
|
+
if (f === null) return "";
|
|
1748
|
+
if (A.isDate(f))
|
|
1749
|
+
return f.toISOString();
|
|
1750
|
+
if (A.isBoolean(f))
|
|
1751
|
+
return f.toString();
|
|
1752
|
+
if (!c && A.isBlob(f))
|
|
1753
|
+
throw new O("Blob is not supported. Use a Buffer instead.");
|
|
1754
|
+
return A.isArrayBuffer(f) || A.isTypedArray(f) ? c && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
1755
|
+
}
|
|
1756
|
+
function d(f, p, w) {
|
|
1757
|
+
let C = f;
|
|
1758
|
+
if (f && !w && typeof f == "object") {
|
|
1759
1759
|
if (A.endsWith(p, "{}"))
|
|
1760
|
-
p = s ? p : p.slice(0, -2),
|
|
1761
|
-
else if (A.isArray(
|
|
1760
|
+
p = s ? p : p.slice(0, -2), f = JSON.stringify(f);
|
|
1761
|
+
else if (A.isArray(f) && qi(f) || (A.isFileList(f) || A.endsWith(p, "[]")) && (C = A.toArray(f)))
|
|
1762
1762
|
return p = fs(p), C.forEach(function(N, R) {
|
|
1763
1763
|
!(A.isUndefined(N) || N === null) && t.append(
|
|
1764
1764
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -1767,24 +1767,24 @@ function yn(e, t, n) {
|
|
|
1767
1767
|
);
|
|
1768
1768
|
}), !1;
|
|
1769
1769
|
}
|
|
1770
|
-
return jn(
|
|
1770
|
+
return jn(f) ? !0 : (t.append(fa(w, p, i), u(f)), !1);
|
|
1771
1771
|
}
|
|
1772
|
-
const h = [],
|
|
1772
|
+
const h = [], g = Object.assign(Bi, {
|
|
1773
1773
|
defaultVisitor: d,
|
|
1774
1774
|
convertValue: u,
|
|
1775
1775
|
isVisitable: jn
|
|
1776
1776
|
});
|
|
1777
|
-
function y(
|
|
1778
|
-
if (!A.isUndefined(
|
|
1779
|
-
if (h.indexOf(
|
|
1777
|
+
function y(f, p) {
|
|
1778
|
+
if (!A.isUndefined(f)) {
|
|
1779
|
+
if (h.indexOf(f) !== -1)
|
|
1780
1780
|
throw Error("Circular reference detected in " + p.join("."));
|
|
1781
|
-
h.push(
|
|
1781
|
+
h.push(f), A.forEach(f, function(C, k) {
|
|
1782
1782
|
(!(A.isUndefined(C) || C === null) && o.call(
|
|
1783
1783
|
t,
|
|
1784
1784
|
C,
|
|
1785
1785
|
A.isString(k) ? k.trim() : k,
|
|
1786
1786
|
p,
|
|
1787
|
-
|
|
1787
|
+
g
|
|
1788
1788
|
)) === !0 && y(C, p ? p.concat(k) : [k]);
|
|
1789
1789
|
}), h.pop();
|
|
1790
1790
|
}
|
|
@@ -2001,7 +2001,7 @@ const Dt = {
|
|
|
2001
2001
|
return JSON.parse(t, this.parseReviver);
|
|
2002
2002
|
} catch (l) {
|
|
2003
2003
|
if (r)
|
|
2004
|
-
throw l.name === "SyntaxError" ?
|
|
2004
|
+
throw l.name === "SyntaxError" ? O.from(l, O.ERR_BAD_RESPONSE, this, null, this.response) : l;
|
|
2005
2005
|
}
|
|
2006
2006
|
}
|
|
2007
2007
|
return t;
|
|
@@ -2244,16 +2244,16 @@ function ys(e) {
|
|
|
2244
2244
|
return !!(e && e.__CANCEL__);
|
|
2245
2245
|
}
|
|
2246
2246
|
function ht(e, t, n) {
|
|
2247
|
-
|
|
2247
|
+
O.call(this, e ?? "canceled", O.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
2248
2248
|
}
|
|
2249
|
-
A.inherits(ht,
|
|
2249
|
+
A.inherits(ht, O, {
|
|
2250
2250
|
__CANCEL__: !0
|
|
2251
2251
|
});
|
|
2252
2252
|
function Cs(e, t, n) {
|
|
2253
2253
|
const s = n.config.validateStatus;
|
|
2254
|
-
!n.status || !s || s(n.status) ? e(n) : t(new
|
|
2254
|
+
!n.status || !s || s(n.status) ? e(n) : t(new O(
|
|
2255
2255
|
"Request failed with status code " + n.status,
|
|
2256
|
-
[
|
|
2256
|
+
[O.ERR_BAD_REQUEST, O.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
2257
2257
|
n.config,
|
|
2258
2258
|
n.request,
|
|
2259
2259
|
n
|
|
@@ -2270,13 +2270,13 @@ function er(e, t) {
|
|
|
2270
2270
|
return t = t !== void 0 ? t : 1e3, function(c) {
|
|
2271
2271
|
const u = Date.now(), d = s[i];
|
|
2272
2272
|
r || (r = u), n[o] = c, s[o] = u;
|
|
2273
|
-
let h = i,
|
|
2273
|
+
let h = i, g = 0;
|
|
2274
2274
|
for (; h !== o; )
|
|
2275
|
-
|
|
2275
|
+
g += n[h++], h = h % e;
|
|
2276
2276
|
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), u - r < t)
|
|
2277
2277
|
return;
|
|
2278
2278
|
const y = d && u - d;
|
|
2279
|
-
return y ? Math.round(
|
|
2279
|
+
return y ? Math.round(g * 1e3 / y) : void 0;
|
|
2280
2280
|
};
|
|
2281
2281
|
}
|
|
2282
2282
|
function tr(e, t) {
|
|
@@ -2363,14 +2363,14 @@ const Ca = (e) => e instanceof he ? { ...e } : e;
|
|
|
2363
2363
|
function et(e, t) {
|
|
2364
2364
|
t = t || {};
|
|
2365
2365
|
const n = {};
|
|
2366
|
-
function s(u, d, h,
|
|
2367
|
-
return A.isPlainObject(u) && A.isPlainObject(d) ? A.merge.call({ caseless:
|
|
2366
|
+
function s(u, d, h, g) {
|
|
2367
|
+
return A.isPlainObject(u) && A.isPlainObject(d) ? A.merge.call({ caseless: g }, u, d) : A.isPlainObject(d) ? A.merge({}, d) : A.isArray(d) ? d.slice() : d;
|
|
2368
2368
|
}
|
|
2369
|
-
function o(u, d, h,
|
|
2369
|
+
function o(u, d, h, g) {
|
|
2370
2370
|
if (A.isUndefined(d)) {
|
|
2371
2371
|
if (!A.isUndefined(u))
|
|
2372
|
-
return s(void 0, u, h,
|
|
2373
|
-
} else return s(u, d, h,
|
|
2372
|
+
return s(void 0, u, h, g);
|
|
2373
|
+
} else return s(u, d, h, g);
|
|
2374
2374
|
}
|
|
2375
2375
|
function i(u, d) {
|
|
2376
2376
|
if (!A.isUndefined(d))
|
|
@@ -2420,8 +2420,8 @@ function et(e, t) {
|
|
|
2420
2420
|
headers: (u, d, h) => o(Ca(u), Ca(d), h, !0)
|
|
2421
2421
|
};
|
|
2422
2422
|
return A.forEach(Object.keys({ ...e, ...t }), function(d) {
|
|
2423
|
-
const h = c[d] || o,
|
|
2424
|
-
A.isUndefined(
|
|
2423
|
+
const h = c[d] || o, g = h(e[d], t[d], d);
|
|
2424
|
+
A.isUndefined(g) && h !== l || (n[d] = g);
|
|
2425
2425
|
}), n;
|
|
2426
2426
|
}
|
|
2427
2427
|
const _s = (e) => {
|
|
@@ -2450,9 +2450,9 @@ const _s = (e) => {
|
|
|
2450
2450
|
const o = _s(e);
|
|
2451
2451
|
let i = o.data;
|
|
2452
2452
|
const r = he.from(o.headers).normalize();
|
|
2453
|
-
let { responseType: l, onUploadProgress: c, onDownloadProgress: u } = o, d, h,
|
|
2453
|
+
let { responseType: l, onUploadProgress: c, onDownloadProgress: u } = o, d, h, g, y, f;
|
|
2454
2454
|
function p() {
|
|
2455
|
-
y && y(),
|
|
2455
|
+
y && y(), f && f(), o.cancelToken && o.cancelToken.unsubscribe(d), o.signal && o.signal.removeEventListener("abort", d);
|
|
2456
2456
|
}
|
|
2457
2457
|
let w = new XMLHttpRequest();
|
|
2458
2458
|
w.open(o.method.toUpperCase(), o.url, !0), w.timeout = o.timeout;
|
|
@@ -2478,27 +2478,27 @@ const _s = (e) => {
|
|
|
2478
2478
|
"onloadend" in w ? w.onloadend = C : w.onreadystatechange = function() {
|
|
2479
2479
|
!w || w.readyState !== 4 || w.status === 0 && !(w.responseURL && w.responseURL.indexOf("file:") === 0) || setTimeout(C);
|
|
2480
2480
|
}, w.onabort = function() {
|
|
2481
|
-
w && (s(new
|
|
2481
|
+
w && (s(new O("Request aborted", O.ECONNABORTED, e, w)), w = null);
|
|
2482
2482
|
}, w.onerror = function(R) {
|
|
2483
|
-
const I = R && R.message ? R.message : "Network Error", E = new
|
|
2483
|
+
const I = R && R.message ? R.message : "Network Error", E = new O(I, O.ERR_NETWORK, e, w);
|
|
2484
2484
|
E.event = R || null, s(E), w = null;
|
|
2485
2485
|
}, w.ontimeout = function() {
|
|
2486
2486
|
let R = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
2487
2487
|
const I = o.transitional || As;
|
|
2488
|
-
o.timeoutErrorMessage && (R = o.timeoutErrorMessage), s(new
|
|
2488
|
+
o.timeoutErrorMessage && (R = o.timeoutErrorMessage), s(new O(
|
|
2489
2489
|
R,
|
|
2490
|
-
I.clarifyTimeoutError ?
|
|
2490
|
+
I.clarifyTimeoutError ? O.ETIMEDOUT : O.ECONNABORTED,
|
|
2491
2491
|
e,
|
|
2492
2492
|
w
|
|
2493
2493
|
)), w = null;
|
|
2494
2494
|
}, i === void 0 && r.setContentType(null), "setRequestHeader" in w && A.forEach(r.toJSON(), function(R, I) {
|
|
2495
2495
|
w.setRequestHeader(I, R);
|
|
2496
|
-
}), A.isUndefined(o.withCredentials) || (w.withCredentials = !!o.withCredentials), l && l !== "json" && (w.responseType = o.responseType), u && ([
|
|
2496
|
+
}), A.isUndefined(o.withCredentials) || (w.withCredentials = !!o.withCredentials), l && l !== "json" && (w.responseType = o.responseType), u && ([g, f] = ln(u, !0), w.addEventListener("progress", g)), c && w.upload && ([h, y] = ln(c), w.upload.addEventListener("progress", h), w.upload.addEventListener("loadend", y)), (o.cancelToken || o.signal) && (d = (N) => {
|
|
2497
2497
|
w && (s(!N || N.type ? new ht(null, e, w) : N), w.abort(), w = null);
|
|
2498
2498
|
}, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
|
|
2499
2499
|
const k = Xi(o.url);
|
|
2500
2500
|
if (k && se.protocols.indexOf(k) === -1) {
|
|
2501
|
-
s(new
|
|
2501
|
+
s(new O("Unsupported protocol " + k + ":", O.ERR_BAD_REQUEST, e));
|
|
2502
2502
|
return;
|
|
2503
2503
|
}
|
|
2504
2504
|
w.send(i || null);
|
|
@@ -2511,11 +2511,11 @@ const _s = (e) => {
|
|
|
2511
2511
|
if (!o) {
|
|
2512
2512
|
o = !0, l();
|
|
2513
2513
|
const d = u instanceof Error ? u : this.reason;
|
|
2514
|
-
s.abort(d instanceof
|
|
2514
|
+
s.abort(d instanceof O ? d : new ht(d instanceof Error ? d.message : d));
|
|
2515
2515
|
}
|
|
2516
2516
|
};
|
|
2517
2517
|
let r = t && setTimeout(() => {
|
|
2518
|
-
r = null, i(new
|
|
2518
|
+
r = null, i(new O(`timeout ${t} of ms exceeded`, O.ETIMEDOUT));
|
|
2519
2519
|
}, t);
|
|
2520
2520
|
const l = () => {
|
|
2521
2521
|
e && (r && clearTimeout(r), r = null, e.forEach((u) => {
|
|
@@ -2569,8 +2569,8 @@ const _s = (e) => {
|
|
|
2569
2569
|
}
|
|
2570
2570
|
let h = d.byteLength;
|
|
2571
2571
|
if (n) {
|
|
2572
|
-
let
|
|
2573
|
-
n(
|
|
2572
|
+
let g = i += h;
|
|
2573
|
+
n(g);
|
|
2574
2574
|
}
|
|
2575
2575
|
c.enqueue(new Uint8Array(d));
|
|
2576
2576
|
} catch (u) {
|
|
@@ -2602,46 +2602,46 @@ const _s = (e) => {
|
|
|
2602
2602
|
const { fetch: t, Request: n, Response: s } = e, o = t ? Gt(t) : typeof fetch == "function", i = Gt(n), r = Gt(s);
|
|
2603
2603
|
if (!o)
|
|
2604
2604
|
return !1;
|
|
2605
|
-
const l = o && Gt(va), c = o && (typeof Na == "function" ? /* @__PURE__ */ ((
|
|
2606
|
-
let
|
|
2605
|
+
const l = o && Gt(va), c = o && (typeof Na == "function" ? /* @__PURE__ */ ((f) => (p) => f.encode(p))(new Na()) : async (f) => new Uint8Array(await new n(f).arrayBuffer())), u = i && l && Sa(() => {
|
|
2606
|
+
let f = !1;
|
|
2607
2607
|
const p = new n(se.origin, {
|
|
2608
2608
|
body: new va(),
|
|
2609
2609
|
method: "POST",
|
|
2610
2610
|
get duplex() {
|
|
2611
|
-
return
|
|
2611
|
+
return f = !0, "half";
|
|
2612
2612
|
}
|
|
2613
2613
|
}).headers.has("Content-Type");
|
|
2614
|
-
return
|
|
2614
|
+
return f && !p;
|
|
2615
2615
|
}), d = r && l && Sa(() => A.isReadableStream(new s("").body)), h = {
|
|
2616
|
-
stream: d && ((
|
|
2616
|
+
stream: d && ((f) => f.body)
|
|
2617
2617
|
};
|
|
2618
|
-
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
2619
|
-
!h[
|
|
2620
|
-
let C = p && p[
|
|
2618
|
+
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
2619
|
+
!h[f] && (h[f] = (p, w) => {
|
|
2620
|
+
let C = p && p[f];
|
|
2621
2621
|
if (C)
|
|
2622
2622
|
return C.call(p);
|
|
2623
|
-
throw new
|
|
2623
|
+
throw new O(`Response type '${f}' is not supported`, O.ERR_NOT_SUPPORT, w);
|
|
2624
2624
|
});
|
|
2625
2625
|
});
|
|
2626
|
-
const
|
|
2627
|
-
if (
|
|
2626
|
+
const g = async (f) => {
|
|
2627
|
+
if (f == null)
|
|
2628
2628
|
return 0;
|
|
2629
|
-
if (A.isBlob(
|
|
2630
|
-
return
|
|
2631
|
-
if (A.isSpecCompliantForm(
|
|
2629
|
+
if (A.isBlob(f))
|
|
2630
|
+
return f.size;
|
|
2631
|
+
if (A.isSpecCompliantForm(f))
|
|
2632
2632
|
return (await new n(se.origin, {
|
|
2633
2633
|
method: "POST",
|
|
2634
|
-
body:
|
|
2634
|
+
body: f
|
|
2635
2635
|
}).arrayBuffer()).byteLength;
|
|
2636
|
-
if (A.isArrayBufferView(
|
|
2637
|
-
return
|
|
2638
|
-
if (A.isURLSearchParams(
|
|
2639
|
-
return (await c(
|
|
2640
|
-
}, y = async (
|
|
2641
|
-
const w = A.toFiniteNumber(
|
|
2642
|
-
return w ??
|
|
2636
|
+
if (A.isArrayBufferView(f) || A.isArrayBuffer(f))
|
|
2637
|
+
return f.byteLength;
|
|
2638
|
+
if (A.isURLSearchParams(f) && (f = f + ""), A.isString(f))
|
|
2639
|
+
return (await c(f)).byteLength;
|
|
2640
|
+
}, y = async (f, p) => {
|
|
2641
|
+
const w = A.toFiniteNumber(f.getContentLength());
|
|
2642
|
+
return w ?? g(p);
|
|
2643
2643
|
};
|
|
2644
|
-
return async (
|
|
2644
|
+
return async (f) => {
|
|
2645
2645
|
let {
|
|
2646
2646
|
url: p,
|
|
2647
2647
|
method: w,
|
|
@@ -2655,7 +2655,7 @@ const _s = (e) => {
|
|
|
2655
2655
|
headers: H,
|
|
2656
2656
|
withCredentials: F = "same-origin",
|
|
2657
2657
|
fetchOptions: M
|
|
2658
|
-
} = _s(
|
|
2658
|
+
} = _s(f), T = t || fetch;
|
|
2659
2659
|
D = D ? (D + "").toLowerCase() : "text";
|
|
2660
2660
|
let z = lr([k, N && N.toAbortSignal()], R), ne = null;
|
|
2661
2661
|
const q = z && z.unsubscribe && (() => {
|
|
@@ -2707,24 +2707,24 @@ const _s = (e) => {
|
|
|
2707
2707
|
);
|
|
2708
2708
|
}
|
|
2709
2709
|
D = D || "text";
|
|
2710
|
-
let _ = await h[A.findKey(h, D) || "text"](S,
|
|
2710
|
+
let _ = await h[A.findKey(h, D) || "text"](S, f);
|
|
2711
2711
|
return !P && q && q(), await new Promise((L, G) => {
|
|
2712
2712
|
Cs(L, G, {
|
|
2713
2713
|
data: _,
|
|
2714
2714
|
headers: he.from(S.headers),
|
|
2715
2715
|
status: S.status,
|
|
2716
2716
|
statusText: S.statusText,
|
|
2717
|
-
config:
|
|
2717
|
+
config: f,
|
|
2718
2718
|
request: ne
|
|
2719
2719
|
});
|
|
2720
2720
|
});
|
|
2721
2721
|
} catch (b) {
|
|
2722
2722
|
throw q && q(), b && b.name === "TypeError" && /Load failed|fetch/i.test(b.message) ? Object.assign(
|
|
2723
|
-
new
|
|
2723
|
+
new O("Network Error", O.ERR_NETWORK, f, ne),
|
|
2724
2724
|
{
|
|
2725
2725
|
cause: b.cause || b
|
|
2726
2726
|
}
|
|
2727
|
-
) :
|
|
2727
|
+
) : O.from(b, b && b.code, f, ne);
|
|
2728
2728
|
}
|
|
2729
2729
|
};
|
|
2730
2730
|
}, fr = /* @__PURE__ */ new Map(), vs = (e) => {
|
|
@@ -2766,7 +2766,7 @@ function pr(e, t) {
|
|
|
2766
2766
|
s = e[r];
|
|
2767
2767
|
let l;
|
|
2768
2768
|
if (o = s, !gr(s) && (o = Zn[(l = String(s)).toLowerCase()], o === void 0))
|
|
2769
|
-
throw new
|
|
2769
|
+
throw new O(`Unknown adapter '${l}'`);
|
|
2770
2770
|
if (o && (A.isFunction(o) || (o = o.get(t))))
|
|
2771
2771
|
break;
|
|
2772
2772
|
i[l || "#" + r] = o;
|
|
@@ -2778,7 +2778,7 @@ function pr(e, t) {
|
|
|
2778
2778
|
let l = n ? r.length > 1 ? `since :
|
|
2779
2779
|
` + r.map(xa).join(`
|
|
2780
2780
|
`) : " " + xa(r[0]) : "as no adapter specified";
|
|
2781
|
-
throw new
|
|
2781
|
+
throw new O(
|
|
2782
2782
|
"There is no suitable adapter to dispatch the request " + l,
|
|
2783
2783
|
"ERR_NOT_SUPPORT"
|
|
2784
2784
|
);
|
|
@@ -2832,9 +2832,9 @@ Cn.transitional = function(t, n, s) {
|
|
|
2832
2832
|
}
|
|
2833
2833
|
return (i, r, l) => {
|
|
2834
2834
|
if (t === !1)
|
|
2835
|
-
throw new
|
|
2835
|
+
throw new O(
|
|
2836
2836
|
o(r, " has been removed" + (n ? " in " + n : "")),
|
|
2837
|
-
|
|
2837
|
+
O.ERR_DEPRECATED
|
|
2838
2838
|
);
|
|
2839
2839
|
return n && !ka[r] && (ka[r] = !0, console.warn(
|
|
2840
2840
|
o(
|
|
@@ -2849,7 +2849,7 @@ Cn.spelling = function(t) {
|
|
|
2849
2849
|
};
|
|
2850
2850
|
function Ar(e, t, n) {
|
|
2851
2851
|
if (typeof e != "object")
|
|
2852
|
-
throw new
|
|
2852
|
+
throw new O("options must be an object", O.ERR_BAD_OPTION_VALUE);
|
|
2853
2853
|
const s = Object.keys(e);
|
|
2854
2854
|
let o = s.length;
|
|
2855
2855
|
for (; o-- > 0; ) {
|
|
@@ -2857,17 +2857,17 @@ function Ar(e, t, n) {
|
|
|
2857
2857
|
if (r) {
|
|
2858
2858
|
const l = e[i], c = l === void 0 || r(l, i, e);
|
|
2859
2859
|
if (c !== !0)
|
|
2860
|
-
throw new
|
|
2860
|
+
throw new O("option " + i + " must be " + c, O.ERR_BAD_OPTION_VALUE);
|
|
2861
2861
|
continue;
|
|
2862
2862
|
}
|
|
2863
2863
|
if (n !== !0)
|
|
2864
|
-
throw new
|
|
2864
|
+
throw new O("Unknown option " + i, O.ERR_BAD_OPTION);
|
|
2865
2865
|
}
|
|
2866
2866
|
}
|
|
2867
2867
|
const nn = {
|
|
2868
2868
|
assertOptions: Ar,
|
|
2869
2869
|
validators: Cn
|
|
2870
|
-
},
|
|
2870
|
+
}, ke = nn.validators;
|
|
2871
2871
|
let Xe = class {
|
|
2872
2872
|
constructor(t) {
|
|
2873
2873
|
this.defaults = t || {}, this.interceptors = {
|
|
@@ -2904,17 +2904,17 @@ let Xe = class {
|
|
|
2904
2904
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = et(this.defaults, n);
|
|
2905
2905
|
const { transitional: s, paramsSerializer: o, headers: i } = n;
|
|
2906
2906
|
s !== void 0 && nn.assertOptions(s, {
|
|
2907
|
-
silentJSONParsing:
|
|
2908
|
-
forcedJSONParsing:
|
|
2909
|
-
clarifyTimeoutError:
|
|
2907
|
+
silentJSONParsing: ke.transitional(ke.boolean),
|
|
2908
|
+
forcedJSONParsing: ke.transitional(ke.boolean),
|
|
2909
|
+
clarifyTimeoutError: ke.transitional(ke.boolean)
|
|
2910
2910
|
}, !1), o != null && (A.isFunction(o) ? n.paramsSerializer = {
|
|
2911
2911
|
serialize: o
|
|
2912
2912
|
} : nn.assertOptions(o, {
|
|
2913
|
-
encode:
|
|
2914
|
-
serialize:
|
|
2913
|
+
encode: ke.function,
|
|
2914
|
+
serialize: ke.function
|
|
2915
2915
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), nn.assertOptions(n, {
|
|
2916
|
-
baseUrl:
|
|
2917
|
-
withXsrfToken:
|
|
2916
|
+
baseUrl: ke.spelling("baseURL"),
|
|
2917
|
+
withXsrfToken: ke.spelling("withXSRFToken")
|
|
2918
2918
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
2919
2919
|
let r = i && A.merge(
|
|
2920
2920
|
i.common,
|
|
@@ -2922,8 +2922,8 @@ let Xe = class {
|
|
|
2922
2922
|
);
|
|
2923
2923
|
i && A.forEach(
|
|
2924
2924
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
2925
|
-
(
|
|
2926
|
-
delete i[
|
|
2925
|
+
(f) => {
|
|
2926
|
+
delete i[f];
|
|
2927
2927
|
}
|
|
2928
2928
|
), n.headers = he.concat(r, i);
|
|
2929
2929
|
const l = [];
|
|
@@ -2935,19 +2935,19 @@ let Xe = class {
|
|
|
2935
2935
|
this.interceptors.response.forEach(function(p) {
|
|
2936
2936
|
u.push(p.fulfilled, p.rejected);
|
|
2937
2937
|
});
|
|
2938
|
-
let d, h = 0,
|
|
2938
|
+
let d, h = 0, g;
|
|
2939
2939
|
if (!c) {
|
|
2940
|
-
const
|
|
2941
|
-
for (
|
|
2942
|
-
d = d.then(
|
|
2940
|
+
const f = [Ea.bind(this), void 0];
|
|
2941
|
+
for (f.unshift(...l), f.push(...u), g = f.length, d = Promise.resolve(n); h < g; )
|
|
2942
|
+
d = d.then(f[h++], f[h++]);
|
|
2943
2943
|
return d;
|
|
2944
2944
|
}
|
|
2945
|
-
|
|
2945
|
+
g = l.length;
|
|
2946
2946
|
let y = n;
|
|
2947
|
-
for (; h <
|
|
2948
|
-
const
|
|
2947
|
+
for (; h < g; ) {
|
|
2948
|
+
const f = l[h++], p = l[h++];
|
|
2949
2949
|
try {
|
|
2950
|
-
y =
|
|
2950
|
+
y = f(y);
|
|
2951
2951
|
} catch (w) {
|
|
2952
2952
|
p.call(this, w);
|
|
2953
2953
|
break;
|
|
@@ -2955,10 +2955,10 @@ let Xe = class {
|
|
|
2955
2955
|
}
|
|
2956
2956
|
try {
|
|
2957
2957
|
d = Ea.call(this, y);
|
|
2958
|
-
} catch (
|
|
2959
|
-
return Promise.reject(
|
|
2958
|
+
} catch (f) {
|
|
2959
|
+
return Promise.reject(f);
|
|
2960
2960
|
}
|
|
2961
|
-
for (h = 0,
|
|
2961
|
+
for (h = 0, g = u.length; h < g; )
|
|
2962
2962
|
d = d.then(u[h++], u[h++]);
|
|
2963
2963
|
return d;
|
|
2964
2964
|
}
|
|
@@ -3160,7 +3160,7 @@ $.CancelToken = wr;
|
|
|
3160
3160
|
$.isCancel = ys;
|
|
3161
3161
|
$.VERSION = Ss;
|
|
3162
3162
|
$.toFormData = yn;
|
|
3163
|
-
$.AxiosError =
|
|
3163
|
+
$.AxiosError = O;
|
|
3164
3164
|
$.Cancel = $.CanceledError;
|
|
3165
3165
|
$.all = function(t) {
|
|
3166
3166
|
return Promise.all(t);
|
|
@@ -3387,10 +3387,10 @@ const I3 = async (e, t, n, s, o, i) => {
|
|
|
3387
3387
|
return (() => {
|
|
3388
3388
|
const d = {};
|
|
3389
3389
|
for (let h = 0; h < c.length; h++) {
|
|
3390
|
-
const
|
|
3390
|
+
const g = _o(
|
|
3391
3391
|
c[h]
|
|
3392
3392
|
), y = "Home_" + (Math.floor(h / i) + 1) + "_" + (Math.floor(h % i) + 1);
|
|
3393
|
-
|
|
3393
|
+
g && (d[y] = { ...g });
|
|
3394
3394
|
}
|
|
3395
3395
|
return d;
|
|
3396
3396
|
})();
|
|
@@ -3455,11 +3455,11 @@ const I3 = async (e, t, n, s, o, i) => {
|
|
|
3455
3455
|
page: c
|
|
3456
3456
|
});
|
|
3457
3457
|
if (!d) return ue(t);
|
|
3458
|
-
const h = d.data.data,
|
|
3458
|
+
const h = d.data.data, g = h[0];
|
|
3459
3459
|
return h.length < u || l.push({ rel: "next", url: Ot(n, r, c) }), c > 1 && l.push({ rel: "prev", url: Qt(n, r, c) }), {
|
|
3460
3460
|
...t,
|
|
3461
|
-
title: `Últimas Noticias de ${
|
|
3462
|
-
description: `Todas las últimas noticias de ${
|
|
3461
|
+
title: `Últimas Noticias de ${g.info.section?.name} | ${n.name}`,
|
|
3462
|
+
description: `Todas las últimas noticias de ${g.info.section?.name} en ${n.name}`,
|
|
3463
3463
|
alternates: {
|
|
3464
3464
|
...t.alternates,
|
|
3465
3465
|
canonical: n.siteUrl + s
|
|
@@ -3473,13 +3473,13 @@ const I3 = async (e, t, n, s, o, i) => {
|
|
|
3473
3473
|
"msapplication-TileImage": n.msapplicationTileImage ?? ""
|
|
3474
3474
|
},
|
|
3475
3475
|
openGraph: {
|
|
3476
|
-
title: `${
|
|
3476
|
+
title: `${g.info.section?.name}`,
|
|
3477
3477
|
type: "website",
|
|
3478
3478
|
url: `${n.siteUrl}${s}`
|
|
3479
3479
|
},
|
|
3480
3480
|
twitter: {
|
|
3481
3481
|
card: "summary_large_image",
|
|
3482
|
-
title: `${
|
|
3482
|
+
title: `${g.info.section?.name}`,
|
|
3483
3483
|
domain: n.siteUrl,
|
|
3484
3484
|
url: `${n.siteUrl}${s}`
|
|
3485
3485
|
}
|
|
@@ -3489,19 +3489,19 @@ const I3 = async (e, t, n, s, o, i) => {
|
|
|
3489
3489
|
}
|
|
3490
3490
|
},
|
|
3491
3491
|
tema: async (e) => {
|
|
3492
|
-
const { meta: t, config: n, pathname: s, slug: o } = e, i = new Se(), r = s.split("/"), l = [], c = jt(s), u = Number(n.newsListLimit) ?? 0, d = /([t][0-9]{4})\w+/.exec(o || ""), h = d && d?.length > 0 ? d[0].replace("t", "") : "", { PUBLIC_TAG_TYPE:
|
|
3492
|
+
const { meta: t, config: n, pathname: s, slug: o } = e, i = new Se(), r = s.split("/"), l = [], c = jt(s), u = Number(n.newsListLimit) ?? 0, d = /([t][0-9]{4})\w+/.exec(o || ""), h = d && d?.length > 0 ? d[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: g } = J();
|
|
3493
3493
|
try {
|
|
3494
3494
|
const y = await i.getNewsListTags({
|
|
3495
3495
|
tagid: h,
|
|
3496
3496
|
size: u,
|
|
3497
|
-
tagtype: Number(
|
|
3497
|
+
tagtype: Number(g),
|
|
3498
3498
|
newstype: n.newsType,
|
|
3499
3499
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
3500
3500
|
page: c
|
|
3501
3501
|
});
|
|
3502
3502
|
if (!y) return ue(t);
|
|
3503
|
-
const
|
|
3504
|
-
return
|
|
3503
|
+
const f = y.data.entity;
|
|
3504
|
+
return f ? (y.data.data?.length < u || l.push({
|
|
3505
3505
|
rel: "next",
|
|
3506
3506
|
url: Ot(n, r, c)
|
|
3507
3507
|
}), c > 1 && l.push({
|
|
@@ -3509,8 +3509,8 @@ const I3 = async (e, t, n, s, o, i) => {
|
|
|
3509
3509
|
url: Qt(n, r, c)
|
|
3510
3510
|
}), {
|
|
3511
3511
|
...t,
|
|
3512
|
-
title: `Últimas noticias de ${
|
|
3513
|
-
description: `Las últimas noticias sobre ${
|
|
3512
|
+
title: `Últimas noticias de ${f.name} | ${n.name}`,
|
|
3513
|
+
description: `Las últimas noticias sobre ${f.name} en ${n.name}`,
|
|
3514
3514
|
alternates: {
|
|
3515
3515
|
...t.alternates,
|
|
3516
3516
|
canonical: n.siteUrl + s
|
|
@@ -3524,13 +3524,13 @@ const I3 = async (e, t, n, s, o, i) => {
|
|
|
3524
3524
|
"msapplication-TileImage": n.msapplicationTileImage ?? ""
|
|
3525
3525
|
},
|
|
3526
3526
|
openGraph: {
|
|
3527
|
-
title: `${
|
|
3527
|
+
title: `${f.name}`,
|
|
3528
3528
|
type: "website",
|
|
3529
3529
|
url: `${n.siteUrl}${s}`
|
|
3530
3530
|
},
|
|
3531
3531
|
twitter: {
|
|
3532
3532
|
card: "summary_large_image",
|
|
3533
|
-
title: `${
|
|
3533
|
+
title: `${f.name}`,
|
|
3534
3534
|
domain: n.siteUrl,
|
|
3535
3535
|
url: `${n.siteUrl}${s}`
|
|
3536
3536
|
}
|
|
@@ -3717,9 +3717,9 @@ async function q3({
|
|
|
3717
3717
|
currentNew: u,
|
|
3718
3718
|
banners: d,
|
|
3719
3719
|
internalPath: h,
|
|
3720
|
-
config:
|
|
3720
|
+
config: g,
|
|
3721
3721
|
socials: y,
|
|
3722
|
-
speculationType:
|
|
3722
|
+
speculationType: f = "Common",
|
|
3723
3723
|
preloadImageUrl: p,
|
|
3724
3724
|
custom_Speculation: w,
|
|
3725
3725
|
custom_metadata: C,
|
|
@@ -3728,7 +3728,7 @@ async function q3({
|
|
|
3728
3728
|
}) {
|
|
3729
3729
|
const R = C || await vr[o]({
|
|
3730
3730
|
meta: n,
|
|
3731
|
-
config:
|
|
3731
|
+
config: g,
|
|
3732
3732
|
currentNew: u,
|
|
3733
3733
|
pathname: i,
|
|
3734
3734
|
imgSizes: s,
|
|
@@ -3738,16 +3738,16 @@ async function q3({
|
|
|
3738
3738
|
}), I = ko(R), E = k || as[o]({
|
|
3739
3739
|
pathname: i,
|
|
3740
3740
|
slug: r,
|
|
3741
|
-
config:
|
|
3741
|
+
config: g,
|
|
3742
3742
|
currentNew: u,
|
|
3743
3743
|
internalPath: h
|
|
3744
3744
|
});
|
|
3745
|
-
return /* @__PURE__ */ m(
|
|
3745
|
+
return /* @__PURE__ */ m(Q, { children: [
|
|
3746
3746
|
/* @__PURE__ */ a("meta", { charSet: "utf-8" }),
|
|
3747
3747
|
/* @__PURE__ */ a("meta", { name: "viewport", content: "width=device-width" }),
|
|
3748
3748
|
I,
|
|
3749
3749
|
/* @__PURE__ */ a(Io, {}),
|
|
3750
|
-
t.ampConfig &&
|
|
3750
|
+
t.ampConfig && g.ampOption && t.ampConfig_slugIsValid && /* @__PURE__ */ a("link", { rel: "amphtml", href: g.siteUrl + "/amp" + i }),
|
|
3751
3751
|
t.preloadImages && u && u.preview?.sizes && /* @__PURE__ */ a(
|
|
3752
3752
|
ma,
|
|
3753
3753
|
{
|
|
@@ -3764,7 +3764,7 @@ async function q3({
|
|
|
3764
3764
|
}
|
|
3765
3765
|
),
|
|
3766
3766
|
t.preloadImages && p && /* @__PURE__ */ a(ma, { images: p }),
|
|
3767
|
-
/* @__PURE__ */ a(Ho, { config:
|
|
3767
|
+
/* @__PURE__ */ a(Ho, { config: g }),
|
|
3768
3768
|
/* @__PURE__ */ a(
|
|
3769
3769
|
ts,
|
|
3770
3770
|
{
|
|
@@ -3776,36 +3776,36 @@ async function q3({
|
|
|
3776
3776
|
t.schemas_NewsArticle && h && /* @__PURE__ */ a(
|
|
3777
3777
|
Oo,
|
|
3778
3778
|
{
|
|
3779
|
-
BASE_URL:
|
|
3780
|
-
config:
|
|
3779
|
+
BASE_URL: g.siteUrl,
|
|
3780
|
+
config: g,
|
|
3781
3781
|
realPath: h,
|
|
3782
3782
|
axiosApi: e
|
|
3783
3783
|
}
|
|
3784
3784
|
),
|
|
3785
|
-
/* @__PURE__ */ a(Qo, { config:
|
|
3785
|
+
/* @__PURE__ */ a(Qo, { config: g, socials: y }),
|
|
3786
3786
|
t.schemas_Videos && h && /* @__PURE__ */ a(
|
|
3787
3787
|
Go,
|
|
3788
3788
|
{
|
|
3789
3789
|
axiosApi: e,
|
|
3790
3790
|
realPath: h,
|
|
3791
|
-
config:
|
|
3791
|
+
config: g
|
|
3792
3792
|
}
|
|
3793
3793
|
),
|
|
3794
3794
|
t.schemas_ItemList && /* @__PURE__ */ a(
|
|
3795
3795
|
Po,
|
|
3796
3796
|
{
|
|
3797
|
-
config:
|
|
3797
|
+
config: g,
|
|
3798
3798
|
ROUTE: o,
|
|
3799
3799
|
pathname: i,
|
|
3800
3800
|
axiosApi: e
|
|
3801
3801
|
}
|
|
3802
3802
|
),
|
|
3803
|
-
t.schemas_WebsiteList && /* @__PURE__ */ a(jo, { config:
|
|
3803
|
+
t.schemas_WebsiteList && /* @__PURE__ */ a(jo, { config: g }),
|
|
3804
3804
|
/* @__PURE__ */ a(
|
|
3805
3805
|
Do,
|
|
3806
3806
|
{
|
|
3807
|
-
type:
|
|
3808
|
-
active:
|
|
3807
|
+
type: f,
|
|
3808
|
+
active: g.useSpeculationRules,
|
|
3809
3809
|
customSpeculation: w
|
|
3810
3810
|
}
|
|
3811
3811
|
),
|
|
@@ -3826,19 +3826,19 @@ const B3 = ({
|
|
|
3826
3826
|
scriptReplaces: d,
|
|
3827
3827
|
body_custom_elements: h
|
|
3828
3828
|
}) => {
|
|
3829
|
-
const
|
|
3829
|
+
const g = Xs(c, u), y = as[t]({
|
|
3830
3830
|
pathname: s,
|
|
3831
3831
|
slug: o,
|
|
3832
3832
|
config: i,
|
|
3833
3833
|
currentNew: c,
|
|
3834
3834
|
internalPath: r
|
|
3835
|
-
}),
|
|
3836
|
-
return /* @__PURE__ */ m(
|
|
3835
|
+
}), f = d.before.active, p = d.after.active, w = f ? d.before.customData ? d.before.customData : y : void 0, C = p ? d.after.customData ? d.after.customData : y : void 0;
|
|
3836
|
+
return /* @__PURE__ */ m(Q, { children: [
|
|
3837
3837
|
/* @__PURE__ */ a(ts, { name: "bodybefore", banners: n, replaces: w }),
|
|
3838
3838
|
e,
|
|
3839
3839
|
/* @__PURE__ */ a(to, { id: l.marfeel }),
|
|
3840
3840
|
/* @__PURE__ */ a(Zs, { id: l.comscore }),
|
|
3841
|
-
/* @__PURE__ */ a(eo, { id: l.ga4, dimensionValues:
|
|
3841
|
+
/* @__PURE__ */ a(eo, { id: l.ga4, dimensionValues: g }),
|
|
3842
3842
|
h,
|
|
3843
3843
|
/* @__PURE__ */ a(Uo, { name: "bodyafter", banners: n, replaces: C })
|
|
3844
3844
|
] });
|
|
@@ -3883,12 +3883,12 @@ function Ir({
|
|
|
3883
3883
|
enableDrag: i,
|
|
3884
3884
|
onIndexChange: r
|
|
3885
3885
|
}) {
|
|
3886
|
-
const [l, c] =
|
|
3886
|
+
const [l, c] = j(!1), [u, d] = j(0), [h, g] = j(0), [y, f] = j(0), [p, w] = j(0), [C, k] = j(null), N = Ja(null), [R, I] = j(1), E = ae(() => {
|
|
3887
3887
|
if (o) return 1;
|
|
3888
3888
|
const _ = N.current?.offsetWidth || window.innerWidth, L = n + s, G = Math.floor(_ / L);
|
|
3889
3889
|
return Math.max(1, G);
|
|
3890
3890
|
}, [o, n, s]);
|
|
3891
|
-
|
|
3891
|
+
Ie(() => {
|
|
3892
3892
|
const _ = () => {
|
|
3893
3893
|
const L = E();
|
|
3894
3894
|
I(L);
|
|
@@ -3923,14 +3923,14 @@ function Ir({
|
|
|
3923
3923
|
[o, n, s, E, F]
|
|
3924
3924
|
), z = ae(
|
|
3925
3925
|
(_) => {
|
|
3926
|
-
i && (d(_),
|
|
3926
|
+
i && (d(_), g(_), f(0), w(Date.now()), c(!0), document.body.classList.add("dragging"));
|
|
3927
3927
|
},
|
|
3928
3928
|
[i]
|
|
3929
3929
|
), ne = ae(
|
|
3930
3930
|
(_) => {
|
|
3931
3931
|
if (!l || !i) return;
|
|
3932
3932
|
const L = _ - u, G = (n + s) * 1.2, W = e === 0 && L > 0, V = e === H && L < 0, Z = W || V ? Math.sign(L) * Math.min(Math.abs(L), G) : L;
|
|
3933
|
-
|
|
3933
|
+
g(_), f(Z);
|
|
3934
3934
|
},
|
|
3935
3935
|
[l, u, i, e, H, n, s]
|
|
3936
3936
|
), q = ae(
|
|
@@ -3950,7 +3950,7 @@ function Ir({
|
|
|
3950
3950
|
const _e = Math.min(H, e + be);
|
|
3951
3951
|
r(_e);
|
|
3952
3952
|
}
|
|
3953
|
-
c(!1),
|
|
3953
|
+
c(!1), f(0), document.body.classList.remove("dragging"), document.removeEventListener("mousemove", q), document.removeEventListener("mouseup", x), _.clientX === u && C?.dispatchEvent(new PointerEvent("click"));
|
|
3954
3954
|
},
|
|
3955
3955
|
[
|
|
3956
3956
|
l,
|
|
@@ -3986,7 +3986,7 @@ function Ir({
|
|
|
3986
3986
|
},
|
|
3987
3987
|
[x]
|
|
3988
3988
|
);
|
|
3989
|
-
return
|
|
3989
|
+
return Ie(() => {
|
|
3990
3990
|
if (l)
|
|
3991
3991
|
return N.current?.addEventListener("mousemove", q), N.current?.addEventListener("mouseup", x), () => {
|
|
3992
3992
|
N.current?.removeEventListener(
|
|
@@ -4020,14 +4020,14 @@ function R3(e) {
|
|
|
4020
4020
|
fullPageWidth: r = !1,
|
|
4021
4021
|
pagination: l = !1,
|
|
4022
4022
|
enableDrag: c = !0
|
|
4023
|
-
} = e, u = Array.isArray(t) ? t : t?.props?.value?.split("SPLITING"), [d, h] =
|
|
4024
|
-
|
|
4023
|
+
} = e, u = Array.isArray(t) ? t : t?.props?.value?.split("SPLITING"), [d, h] = j(0), [g, y] = j(!1);
|
|
4024
|
+
Ie(() => {
|
|
4025
4025
|
y(!0);
|
|
4026
4026
|
const M = document.getElementById("ssr-dummy_" + n);
|
|
4027
4027
|
M && M.remove();
|
|
4028
4028
|
}, []);
|
|
4029
4029
|
const {
|
|
4030
|
-
isDragging:
|
|
4030
|
+
isDragging: f,
|
|
4031
4031
|
translateOffset: p,
|
|
4032
4032
|
carrouselRef: w,
|
|
4033
4033
|
maxIndex: C,
|
|
@@ -4053,7 +4053,7 @@ function R3(e) {
|
|
|
4053
4053
|
}, [d, I]), D = ae(() => {
|
|
4054
4054
|
I(d + 1);
|
|
4055
4055
|
}, [d, I]);
|
|
4056
|
-
if (!
|
|
4056
|
+
if (!g) return;
|
|
4057
4057
|
const H = k(d, p), F = r ? `translateX(${H}%)` : `translateX(${H}px)`;
|
|
4058
4058
|
return /* @__PURE__ */ m("div", { className: `${n}- carrousel-container`, children: [
|
|
4059
4059
|
d > 0 && /* @__PURE__ */ a(
|
|
@@ -4116,7 +4116,7 @@ function R3(e) {
|
|
|
4116
4116
|
style: {
|
|
4117
4117
|
gap: i,
|
|
4118
4118
|
margin: i === 0 ? "0" : "0 0.5rem 1rem",
|
|
4119
|
-
cursor: c ?
|
|
4119
|
+
cursor: c ? f ? "grabbing" : "grab" : "default"
|
|
4120
4120
|
},
|
|
4121
4121
|
...R,
|
|
4122
4122
|
children: u && u.map((M, T) => typeof M == "string" ? /* @__PURE__ */ a(
|
|
@@ -4125,11 +4125,11 @@ function R3(e) {
|
|
|
4125
4125
|
className: "card",
|
|
4126
4126
|
style: {
|
|
4127
4127
|
transform: F,
|
|
4128
|
-
transition:
|
|
4128
|
+
transition: f ? "none" : "transform 300ms ease",
|
|
4129
4129
|
minWidth: r ? "100%" : o,
|
|
4130
4130
|
width: "min-content",
|
|
4131
|
-
userSelect:
|
|
4132
|
-
pointerEvents:
|
|
4131
|
+
userSelect: f ? "none" : "auto",
|
|
4132
|
+
pointerEvents: f ? "none" : "auto"
|
|
4133
4133
|
},
|
|
4134
4134
|
dangerouslySetInnerHTML: { __html: M }
|
|
4135
4135
|
},
|
|
@@ -4140,11 +4140,11 @@ function R3(e) {
|
|
|
4140
4140
|
className: "card",
|
|
4141
4141
|
style: {
|
|
4142
4142
|
transform: F,
|
|
4143
|
-
transition:
|
|
4143
|
+
transition: f ? "none" : "transform 300ms ease",
|
|
4144
4144
|
minWidth: r ? "100%" : o,
|
|
4145
4145
|
width: "min-content",
|
|
4146
|
-
userSelect:
|
|
4147
|
-
pointerEvents:
|
|
4146
|
+
userSelect: f ? "none" : "auto",
|
|
4147
|
+
pointerEvents: f ? "none" : "auto"
|
|
4148
4148
|
},
|
|
4149
4149
|
children: M
|
|
4150
4150
|
},
|
|
@@ -4444,7 +4444,7 @@ const gt = (e) => {
|
|
|
4444
4444
|
) : e.main?.title?.section
|
|
4445
4445
|
),
|
|
4446
4446
|
e.config?.showsubtitle && /* @__PURE__ */ a(o, {}),
|
|
4447
|
-
(e?.config?.showtime || e.config?.showauthor) && /* @__PURE__ */ a(
|
|
4447
|
+
(e?.config?.showtime || e.config?.showauthor) && /* @__PURE__ */ a(Q, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ a("h3", { children: /* @__PURE__ */ a(
|
|
4448
4448
|
U,
|
|
4449
4449
|
{
|
|
4450
4450
|
"aria-label": s(),
|
|
@@ -4503,7 +4503,7 @@ const gt = (e) => {
|
|
|
4503
4503
|
src: o[0]?.url ? o[0]?.url : void 0
|
|
4504
4504
|
}
|
|
4505
4505
|
),
|
|
4506
|
-
t && /* @__PURE__ */ m(
|
|
4506
|
+
t && /* @__PURE__ */ m(Q, { children: [
|
|
4507
4507
|
/* @__PURE__ */ a(
|
|
4508
4508
|
"div",
|
|
4509
4509
|
{
|
|
@@ -4561,7 +4561,7 @@ const gt = (e) => {
|
|
|
4561
4561
|
src: o[0]?.url ? o[0]?.url : ""
|
|
4562
4562
|
}
|
|
4563
4563
|
),
|
|
4564
|
-
t && /* @__PURE__ */ m(
|
|
4564
|
+
t && /* @__PURE__ */ m(Q, { children: [
|
|
4565
4565
|
/* @__PURE__ */ a(
|
|
4566
4566
|
"div",
|
|
4567
4567
|
{
|
|
@@ -4608,8 +4608,8 @@ const gt = (e) => {
|
|
|
4608
4608
|
isVideo: n = !1,
|
|
4609
4609
|
hasShadow: s = !1,
|
|
4610
4610
|
priorityHigh: o = !1
|
|
4611
|
-
} = e, [i, r] =
|
|
4612
|
-
return
|
|
4611
|
+
} = e, [i, r] = j(void 0), l = t?.sizes;
|
|
4612
|
+
return Ie(() => {
|
|
4613
4613
|
(async () => {
|
|
4614
4614
|
const { PUBLIC_IS_OFFLINE: u } = J();
|
|
4615
4615
|
if (u === "true" && l?.[0]?.url) {
|
|
@@ -6128,7 +6128,7 @@ const gt = (e) => {
|
|
|
6128
6128
|
r
|
|
6129
6129
|
)) })
|
|
6130
6130
|
] }),
|
|
6131
|
-
o && /* @__PURE__ */ a(
|
|
6131
|
+
o && /* @__PURE__ */ a(Q, { children: o }),
|
|
6132
6132
|
/* @__PURE__ */ m("section", { className: le.copyrigth, children: [
|
|
6133
6133
|
/* @__PURE__ */ a("p", { className: le.copyrigthText, children: e.copyrigth }),
|
|
6134
6134
|
/* @__PURE__ */ a(
|
|
@@ -6435,8 +6435,8 @@ const Yc = "_content_xlsy2_1", Kc = "_videoContent_xlsy2_39", Jc = "_articleSect
|
|
|
6435
6435
|
const { currentPage: t, showNext: n, maxPages: s, pathname: o, query: i } = e, r = (l, c, u) => {
|
|
6436
6436
|
let d = "";
|
|
6437
6437
|
const h = c.split("/");
|
|
6438
|
-
return h.indexOf("page") !== -1 && h.splice(d.indexOf("page") - 1, h.length - 1), h.forEach((
|
|
6439
|
-
y !== 0 && (d += `/${
|
|
6438
|
+
return h.indexOf("page") !== -1 && h.splice(d.indexOf("page") - 1, h.length - 1), h.forEach((g, y) => {
|
|
6439
|
+
y !== 0 && (d += `/${g}`);
|
|
6440
6440
|
}), l === "next" ? d += `/page/${t + 1}${u ? `?query=${u}` : ""}` : d += `/page/${t - 1}${u ? `?query=${u}` : ""}`;
|
|
6441
6441
|
};
|
|
6442
6442
|
return (t > 1 || n && t < s) && /* @__PURE__ */ m("section", { className: En.content, children: [
|
|
@@ -6472,7 +6472,7 @@ const Yc = "_content_xlsy2_1", Kc = "_videoContent_xlsy2_39", Jc = "_articleSect
|
|
|
6472
6472
|
children: e.children
|
|
6473
6473
|
}
|
|
6474
6474
|
),
|
|
6475
|
-
/* @__PURE__ */ a(
|
|
6475
|
+
/* @__PURE__ */ a(Q, { children: e.paginatorComponent })
|
|
6476
6476
|
] });
|
|
6477
6477
|
}, cd = "_content_3pssn_1", dd = "_newsDescription_3pssn_29", ud = "_image_3pssn_81", Ut = {
|
|
6478
6478
|
content: cd,
|
|
@@ -6491,7 +6491,7 @@ const Yc = "_content_xlsy2_1", Kc = "_videoContent_xlsy2_39", Jc = "_articleSect
|
|
|
6491
6491
|
isTitle: u,
|
|
6492
6492
|
priorityHigh: d = !1,
|
|
6493
6493
|
isLarge: h,
|
|
6494
|
-
paths:
|
|
6494
|
+
paths: g
|
|
6495
6495
|
} = e;
|
|
6496
6496
|
return /* @__PURE__ */ m(
|
|
6497
6497
|
"section",
|
|
@@ -6531,7 +6531,7 @@ const Yc = "_content_xlsy2_1", Kc = "_videoContent_xlsy2_39", Jc = "_articleSect
|
|
|
6531
6531
|
config: l,
|
|
6532
6532
|
overImage: c,
|
|
6533
6533
|
isTitle: u,
|
|
6534
|
-
paths:
|
|
6534
|
+
paths: g
|
|
6535
6535
|
}
|
|
6536
6536
|
) })
|
|
6537
6537
|
]
|
|
@@ -6672,7 +6672,7 @@ const Yc = "_content_xlsy2_1", Kc = "_videoContent_xlsy2_39", Jc = "_articleSect
|
|
|
6672
6672
|
/* @__PURE__ */ a(Ce, { preview: e.preview, isLarge: !0, priorityHigh: !0 }),
|
|
6673
6673
|
t && /* @__PURE__ */ a("div", { className: un.description, children: t })
|
|
6674
6674
|
] });
|
|
6675
|
-
}, Yd = (e) => /* @__PURE__ */ a(
|
|
6675
|
+
}, Yd = (e) => /* @__PURE__ */ a(Q, { children: /* @__PURE__ */ m("div", { className: Fe.boxInformation, children: [
|
|
6676
6676
|
/* @__PURE__ */ a(qs, { preview: e.preview }),
|
|
6677
6677
|
/* @__PURE__ */ m("div", { className: Fe.textBox, children: [
|
|
6678
6678
|
/* @__PURE__ */ m("div", { className: Fe.contentBox, children: [
|
|
@@ -7262,7 +7262,7 @@ const Yc = "_content_xlsy2_1", Kc = "_videoContent_xlsy2_39", Jc = "_articleSect
|
|
|
7262
7262
|
children: t?.data[0]?.main?.title.home ?? ""
|
|
7263
7263
|
}
|
|
7264
7264
|
);
|
|
7265
|
-
return /* @__PURE__ */ m(
|
|
7265
|
+
return /* @__PURE__ */ m(Q, { children: [
|
|
7266
7266
|
/* @__PURE__ */ a(
|
|
7267
7267
|
"input",
|
|
7268
7268
|
{
|
|
@@ -7599,7 +7599,7 @@ const Yc = "_content_xlsy2_1", Kc = "_videoContent_xlsy2_39", Jc = "_articleSect
|
|
|
7599
7599
|
op2: fm
|
|
7600
7600
|
}, z3 = (e) => {
|
|
7601
7601
|
const { alertZone: t, children: n, sidebar: s } = e;
|
|
7602
|
-
return /* @__PURE__ */ m(
|
|
7602
|
+
return /* @__PURE__ */ m(Q, { children: [
|
|
7603
7603
|
/* @__PURE__ */ a(ju, { ...e }),
|
|
7604
7604
|
!e.showOnlyStickyHeader && /* @__PURE__ */ a(um, { ...e }),
|
|
7605
7605
|
/* @__PURE__ */ m(
|
|
@@ -7653,7 +7653,7 @@ const Yc = "_content_xlsy2_1", Kc = "_videoContent_xlsy2_39", Jc = "_articleSect
|
|
|
7653
7653
|
/* @__PURE__ */ a("p", { className: st.tagStyled, children: e.title ? e.title : "Tags:" }),
|
|
7654
7654
|
e.tags.map((n, s) => n.approved ? /* @__PURE__ */ a(U, { href: t(n), children: /* @__PURE__ */ a("div", { className: `${st.chipStyled} ${st.tagLink}`, children: n.name }) }, s) : /* @__PURE__ */ a("div", { className: st.chipStyled, children: n.name }, s))
|
|
7655
7655
|
] }) });
|
|
7656
|
-
}, Cm = "_contentBox_horo3_1", bm = "_content_horo3_1", _m = "_imageStyled_horo3_31", vm = "_contentIconStyled_horo3_45", Nm = "_avatarContent_horo3_85", Sm = "_journalistSection_horo3_99", xm = "_journalistInfo_horo3_111", Em = "_socialNetworkSection_horo3_139", km = "_article_horo3_165",
|
|
7656
|
+
}, Cm = "_contentBox_horo3_1", bm = "_content_horo3_1", _m = "_imageStyled_horo3_31", vm = "_contentIconStyled_horo3_45", Nm = "_avatarContent_horo3_85", Sm = "_journalistSection_horo3_99", xm = "_journalistInfo_horo3_111", Em = "_socialNetworkSection_horo3_139", km = "_article_horo3_165", Ue = {
|
|
7657
7657
|
contentBox: Cm,
|
|
7658
7658
|
content: bm,
|
|
7659
7659
|
imageStyled: _m,
|
|
@@ -7665,12 +7665,12 @@ const Yc = "_content_xlsy2_1", Kc = "_videoContent_xlsy2_39", Jc = "_articleSect
|
|
|
7665
7665
|
article: km
|
|
7666
7666
|
}, F3 = async (e) => {
|
|
7667
7667
|
const { autor: t } = e;
|
|
7668
|
-
return t.addtional.USER_SHOWBIO && /* @__PURE__ */ a("section", { className:
|
|
7669
|
-
/* @__PURE__ */ m("div", { className:
|
|
7668
|
+
return t.addtional.USER_SHOWBIO && /* @__PURE__ */ a("section", { className: Ue.contentBox, children: /* @__PURE__ */ m("div", { className: Ue.content, children: [
|
|
7669
|
+
/* @__PURE__ */ m("div", { className: Ue.avatarContent, children: [
|
|
7670
7670
|
/* @__PURE__ */ a(
|
|
7671
7671
|
U,
|
|
7672
7672
|
{
|
|
7673
|
-
className:
|
|
7673
|
+
className: Ue.journalistInfo,
|
|
7674
7674
|
href: `/${e.paths.autor}/${t.info.name}`,
|
|
7675
7675
|
children: t.info.image ? /* @__PURE__ */ a(
|
|
7676
7676
|
"img",
|
|
@@ -7678,15 +7678,15 @@ const Yc = "_content_xlsy2_1", Kc = "_videoContent_xlsy2_39", Jc = "_articleSect
|
|
|
7678
7678
|
fetchPriority: "low",
|
|
7679
7679
|
loading: "lazy",
|
|
7680
7680
|
alt: "autor-image",
|
|
7681
|
-
className:
|
|
7681
|
+
className: Ue.imageStyled,
|
|
7682
7682
|
src: await ie(t.info.image.sizes[0]?.url || "")
|
|
7683
7683
|
}
|
|
7684
|
-
) : /* @__PURE__ */ a("div", { className:
|
|
7684
|
+
) : /* @__PURE__ */ a("div", { className: Ue.contentIconStyled, children: e.autorIcon() })
|
|
7685
7685
|
}
|
|
7686
7686
|
),
|
|
7687
|
-
/* @__PURE__ */ m("section", { className:
|
|
7688
|
-
/* @__PURE__ */ a("h3", { className:
|
|
7689
|
-
/* @__PURE__ */ m("section", { className:
|
|
7687
|
+
/* @__PURE__ */ m("section", { className: Ue.journalistSection, children: [
|
|
7688
|
+
/* @__PURE__ */ a("h3", { className: Ue.journalistInfo, children: /* @__PURE__ */ a(U, { href: `/${e.paths.autor}/${t.info.name}`, children: t.info.fullname }) }),
|
|
7689
|
+
/* @__PURE__ */ m("section", { className: Ue.socialNetworkSection, children: [
|
|
7690
7690
|
t.addtional.USER_USERFB && /* @__PURE__ */ a(
|
|
7691
7691
|
"a",
|
|
7692
7692
|
{
|
|
@@ -7847,7 +7847,7 @@ const Yc = "_content_xlsy2_1", Kc = "_videoContent_xlsy2_39", Jc = "_articleSect
|
|
|
7847
7847
|
t.addtional.USER_SHOWBIO && /* @__PURE__ */ a(
|
|
7848
7848
|
"p",
|
|
7849
7849
|
{
|
|
7850
|
-
className:
|
|
7850
|
+
className: Ue.article,
|
|
7851
7851
|
dangerouslySetInnerHTML: {
|
|
7852
7852
|
__html: `${t.addtional.USER_MIBIO} <a aria-label="${t.info.name}" href="/${e.paths.autor}/${t.info.name}">${e.texts.authorViewMore ?? "Ver más"}</a>`
|
|
7853
7853
|
}
|
|
@@ -7992,7 +7992,7 @@ const Yc = "_content_xlsy2_1", Kc = "_videoContent_xlsy2_39", Jc = "_articleSect
|
|
|
7992
7992
|
}
|
|
7993
7993
|
}
|
|
7994
7994
|
),
|
|
7995
|
-
e?.config?.showtime && e.config?.showauthor && /* @__PURE__ */ a(
|
|
7995
|
+
e?.config?.showtime && e.config?.showauthor && /* @__PURE__ */ a(Q, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ a(
|
|
7996
7996
|
U,
|
|
7997
7997
|
{
|
|
7998
7998
|
href: `/${e.paths?.autor ?? "autor"}/${e?.authors[0]?.name}`,
|
|
@@ -8395,7 +8395,7 @@ const $3 = (e) => {
|
|
|
8395
8395
|
] }),
|
|
8396
8396
|
/* @__PURE__ */ a("div", { className: it.bannerContent, children: e.halfPageBanner })
|
|
8397
8397
|
] });
|
|
8398
|
-
}, J3 = (e) => /* @__PURE__ */ m(
|
|
8398
|
+
}, J3 = (e) => /* @__PURE__ */ m(Q, { children: [
|
|
8399
8399
|
/* @__PURE__ */ a(xl, { className: "display-on-lower-900px", ...e }),
|
|
8400
8400
|
/* @__PURE__ */ a(Ol, { ...e })
|
|
8401
8401
|
] }), Uh = "_newsContent_smaec_1", Ih = "_newsContentWithLines_smaec_15", Th = "_newsContentWithoutLines_smaec_25", qh = "_contentSeparator_smaec_35", Ft = {
|
|
@@ -8920,7 +8920,7 @@ const $3 = (e) => {
|
|
|
8920
8920
|
}
|
|
8921
8921
|
);
|
|
8922
8922
|
case "op2":
|
|
8923
|
-
return /* @__PURE__ */ a(
|
|
8923
|
+
return /* @__PURE__ */ a(Q, { children: t.length > 0 ? /* @__PURE__ */ a(
|
|
8924
8924
|
zn,
|
|
8925
8925
|
{
|
|
8926
8926
|
className: "padding-0",
|
|
@@ -8981,7 +8981,7 @@ const $3 = (e) => {
|
|
|
8981
8981
|
}
|
|
8982
8982
|
) });
|
|
8983
8983
|
default:
|
|
8984
|
-
return /* @__PURE__ */ a(
|
|
8984
|
+
return /* @__PURE__ */ a(Q, {});
|
|
8985
8985
|
}
|
|
8986
8986
|
}, A2 = "_content_1oabr_1", w2 = "_contactInfoContent_1oabr_13", Qa = {
|
|
8987
8987
|
content: A2,
|
|
@@ -9396,39 +9396,39 @@ function o0(e) {
|
|
|
9396
9396
|
function i(l) {
|
|
9397
9397
|
const c = [], u = [];
|
|
9398
9398
|
let d = "", h = !0;
|
|
9399
|
-
for (let
|
|
9400
|
-
const y = `[data-index="${
|
|
9399
|
+
for (let g = 0; g < l; g++) {
|
|
9400
|
+
const y = `[data-index="${g}"]:checked ~ .carrousel-pagination li:nth-child(${g + 1}) {
|
|
9401
9401
|
background-color:var(--carrousel-pagination-background-color)
|
|
9402
9402
|
}`;
|
|
9403
9403
|
d += `
|
|
9404
9404
|
.${n}.carrousel-container {
|
|
9405
9405
|
${y}
|
|
9406
|
-
[data-index="${
|
|
9407
|
-
transform: translate(-${
|
|
9406
|
+
[data-index="${g}"]:checked ~ .carrousel-ssr {
|
|
9407
|
+
transform: translate(-${g * (100 + o) + "%"});
|
|
9408
9408
|
transition: transform 300ms;
|
|
9409
9409
|
}
|
|
9410
|
-
[data-index="${
|
|
9411
|
-
${
|
|
9410
|
+
[data-index="${g + 1}"]:checked ~ .visible-arrow.left[data-index="${g}"]
|
|
9411
|
+
${g < l - 1 ? `,[data-index="${g}"]:checked ~ .visible-arrow.right[data-index="${g}"]` : ""} {
|
|
9412
9412
|
display: flex;
|
|
9413
9413
|
}
|
|
9414
9414
|
}
|
|
9415
|
-
`,
|
|
9415
|
+
`, g > l - (s + 1) && (d += `
|
|
9416
9416
|
@media (min-width:900px) {
|
|
9417
9417
|
.${n}.carrousel-container {
|
|
9418
|
-
[data-index="${
|
|
9418
|
+
[data-index="${g}"]:checked ~ .visible-arrow.right[data-index="${g}"] {
|
|
9419
9419
|
display:none!important;
|
|
9420
9420
|
}
|
|
9421
9421
|
}
|
|
9422
9422
|
}`), c.push(
|
|
9423
|
-
`<input type="radio" name="${n + "card"}" ${h ? "checked" : ""} id="${n + "input-check-" +
|
|
9423
|
+
`<input type="radio" name="${n + "card"}" ${h ? "checked" : ""} id="${n + "input-check-" + g}" data-index="${g}" />`
|
|
9424
9424
|
), u.push(`
|
|
9425
|
-
<label for="${n + "input-check-" +
|
|
9425
|
+
<label for="${n + "input-check-" + g}" data-index="${g}" class="visible-arrow left">
|
|
9426
9426
|
<svg width="16" height="16" view-box="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
9427
9427
|
<path d="M1 8.99973H12.17L7.29 13.8797C6.9 14.2697 6.9 14.9097 7.29 15.2997C7.68 15.6897 8.31 15.6897 8.7 15.2997L15.29 8.70973C15.68 8.31973 15.68 7.68973 15.29 7.29973L8.71 0.699727C8.32 0.309727 7.69 0.309727 7.3 0.699727C6.91 1.08973 6.91 1.71973 7.3 2.10973L12.17 6.99973H1C0.45 6.99973 0 7.44973 0 7.99973C0 8.54973 0.45 8.99973 1 8.99973Z" fill="currentColor" />
|
|
9428
9428
|
</svg>
|
|
9429
9429
|
</label>
|
|
9430
9430
|
|
|
9431
|
-
${
|
|
9431
|
+
${g < l - 1 ? `<label for="${n + "input-check-" + (g + 1)}" data-index="${g}" class="visible-arrow right">
|
|
9432
9432
|
<svg width="16" height="16" view-box="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
9433
9433
|
<path d="M1 8.99973H12.17L7.29 13.8797C6.9 14.2697 6.9 14.9097 7.29 15.2997C7.68 15.6897 8.31 15.6897 8.7 15.2997L15.29 8.70973C15.68 8.31973 15.68 7.68973 15.29 7.29973L8.71 0.699727C8.32 0.309727 7.69 0.309727 7.3 0.699727C6.91 1.08973 6.91 1.71973 7.3 2.10973L12.17 6.99973H1C0.45 6.99973 0 7.44973 0 7.99973C0 8.54973 0.45 8.99973 1 8.99973Z" fill="currentColor" />
|
|
9434
9434
|
</svg>
|
|
@@ -9533,11 +9533,11 @@ const i0 = (e) => /* @__PURE__ */ a(
|
|
|
9533
9533
|
const [r, l = ""] = i, c = i.index, u = c + r.length;
|
|
9534
9534
|
s += e.slice(o, c);
|
|
9535
9535
|
const h = [...l.matchAll(/data-src="([^"]+)"/g)].map(
|
|
9536
|
-
(
|
|
9536
|
+
(f) => f[1]
|
|
9537
9537
|
).map(
|
|
9538
|
-
(
|
|
9539
|
-
),
|
|
9540
|
-
slot_id:
|
|
9538
|
+
(f) => `<img src="${f}" class="carrusel-note-item" width="800" height="469"/>`
|
|
9539
|
+
), g = "gallery_embeded" + c.toString(), y = o0({
|
|
9540
|
+
slot_id: g,
|
|
9541
9541
|
children: h,
|
|
9542
9542
|
visibleItems: 1,
|
|
9543
9543
|
cardGap: 0
|
|
@@ -9554,7 +9554,7 @@ const i0 = (e) => /* @__PURE__ */ a(
|
|
|
9554
9554
|
(k) => c.includes(k?.[0]?.info.link.internal || "")
|
|
9555
9555
|
);
|
|
9556
9556
|
if (!u || !u[0]) continue;
|
|
9557
|
-
const d = u[0].preview?.sizes?.[0], h = d ? await ie(d.url) : "",
|
|
9557
|
+
const d = u[0].preview?.sizes?.[0], h = d ? await ie(d.url) : "", g = u[0].info.section?.url ?? "#", y = u[0].info.section?.name ?? "Sección", f = u[0].info.link?.url ?? "#", p = u[0].main?.title.article ?? "Título", w = (await Promise.all(
|
|
9558
9558
|
u[0].preview?.sizes?.map(async (k) => {
|
|
9559
9559
|
const N = await ie(k.url);
|
|
9560
9560
|
return k.width < 200 ? `<source srcset="${N}" media="(width < 750px)"/>` : `<source srcset="${N}" media="(width >= 750px)"/>`;
|
|
@@ -9566,8 +9566,8 @@ const i0 = (e) => /* @__PURE__ */ a(
|
|
|
9566
9566
|
<img fetchPriority='low' loading='lazy' src="${h}" alt="${t.noteRelatedImageAlt}" />
|
|
9567
9567
|
</picture>
|
|
9568
9568
|
<div>
|
|
9569
|
-
<a class="section" href="${
|
|
9570
|
-
<a class="title" href="${
|
|
9569
|
+
<a class="section" href="${g}">${y}</a>
|
|
9570
|
+
<a class="title" href="${f}">${p}</a>
|
|
9571
9571
|
</div>
|
|
9572
9572
|
</span>
|
|
9573
9573
|
`;
|
|
@@ -9581,18 +9581,18 @@ async function m0(e, t) {
|
|
|
9581
9581
|
for (const r of s) {
|
|
9582
9582
|
const [l, c] = r, u = r.index, d = u + l.length;
|
|
9583
9583
|
o += e.slice(i, u);
|
|
9584
|
-
const h = await t.iframe({ path: c }),
|
|
9584
|
+
const h = await t.iframe({ path: c }), g = await t.schema(c);
|
|
9585
9585
|
let y = "";
|
|
9586
9586
|
if (h && h.data) {
|
|
9587
|
-
let
|
|
9588
|
-
h.data.data[0].info.type === "video-youtube" ?
|
|
9587
|
+
let f = "";
|
|
9588
|
+
h.data.data[0].info.type === "video-youtube" ? f = `<iframe
|
|
9589
9589
|
frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen
|
|
9590
|
-
style="position: relative!important;" src="https://www.youtube.com/embed/${h.data.data[0].main.code}"></iframe>` :
|
|
9590
|
+
style="position: relative!important;" src="https://www.youtube.com/embed/${h.data.data[0].main.code}"></iframe>` : f = h.data.data[0].main.code, y = `
|
|
9591
9591
|
<figure class="videoFigure" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen>
|
|
9592
9592
|
<script type="application/ld+json">${Os(
|
|
9593
|
-
JSON.stringify(
|
|
9593
|
+
JSON.stringify(g.data.data) || ""
|
|
9594
9594
|
)}<\/script>
|
|
9595
|
-
${
|
|
9595
|
+
${f}
|
|
9596
9596
|
<figcaption>${h.data.data[0].main.description || ""}</figcaption>
|
|
9597
9597
|
</figure>
|
|
9598
9598
|
`;
|
|
@@ -9774,7 +9774,7 @@ const f0 = "_content_1kodm_1", g0 = "_title_1kodm_35", Ga = {
|
|
|
9774
9774
|
getVideos: c
|
|
9775
9775
|
} = e, u = e.slug === "liveblogs";
|
|
9776
9776
|
if (!(!o || !o[0]))
|
|
9777
|
-
return /* @__PURE__ */ a(
|
|
9777
|
+
return /* @__PURE__ */ a(Q, { children: /* @__PURE__ */ m(v2, { className: Ps.contentLayout2, children: [
|
|
9778
9778
|
/* @__PURE__ */ a(
|
|
9779
9779
|
I2,
|
|
9780
9780
|
{
|
|
@@ -9928,7 +9928,7 @@ const f0 = "_content_1kodm_1", g0 = "_title_1kodm_35", Ga = {
|
|
|
9928
9928
|
}
|
|
9929
9929
|
);
|
|
9930
9930
|
default:
|
|
9931
|
-
return /* @__PURE__ */ a(
|
|
9931
|
+
return /* @__PURE__ */ a(Q, {});
|
|
9932
9932
|
}
|
|
9933
9933
|
}, M0 = "_content_yu4fr_1", P0 = "_buttonStyled_yu4fr_17", O0 = "_searchStyled_yu4fr_41", Q0 = "_inputStyled_yu4fr_63", j0 = "_inputStyledTest_yu4fr_101", xt = {
|
|
9934
9934
|
content: M0,
|
|
@@ -9991,14 +9991,14 @@ const f0 = "_content_1kodm_1", g0 = "_title_1kodm_35", Ga = {
|
|
|
9991
9991
|
currentPage: c,
|
|
9992
9992
|
slug: u,
|
|
9993
9993
|
texts: d = {}
|
|
9994
|
-
} = e, h = [5, 10, 15],
|
|
9994
|
+
} = e, h = [5, 10, 15], g = {
|
|
9995
9995
|
5: 1,
|
|
9996
9996
|
10: 2,
|
|
9997
9997
|
15: 3
|
|
9998
9998
|
};
|
|
9999
9999
|
switch (n) {
|
|
10000
10000
|
case "op1":
|
|
10001
|
-
return /* @__PURE__ */ a(
|
|
10001
|
+
return /* @__PURE__ */ a(Q, { children: /* @__PURE__ */ m(Ba, { children: [
|
|
10002
10002
|
/* @__PURE__ */ a(d1, { autor: s[0], autorIcon: e.autorIcon }),
|
|
10003
10003
|
/* @__PURE__ */ a(
|
|
10004
10004
|
Bs,
|
|
@@ -10025,8 +10025,8 @@ const f0 = "_content_1kodm_1", g0 = "_title_1kodm_35", Ga = {
|
|
|
10025
10025
|
showNext: !(t.length < e.newsListLimit)
|
|
10026
10026
|
}
|
|
10027
10027
|
),
|
|
10028
|
-
children: Array.isArray(t) && t?.map((y,
|
|
10029
|
-
h.includes(
|
|
10028
|
+
children: Array.isArray(t) && t?.map((y, f) => /* @__PURE__ */ m(on, { children: [
|
|
10029
|
+
h.includes(f + 1) && /* @__PURE__ */ a(
|
|
10030
10030
|
"div",
|
|
10031
10031
|
{
|
|
10032
10032
|
className: Mn.itemContent + " banner-context",
|
|
@@ -10034,7 +10034,7 @@ const f0 = "_content_1kodm_1", g0 = "_title_1kodm_35", Ga = {
|
|
|
10034
10034
|
oe,
|
|
10035
10035
|
{
|
|
10036
10036
|
banners: i ?? [],
|
|
10037
|
-
name: `block_2_${f
|
|
10037
|
+
name: `block_2_${g[f + 1]}`
|
|
10038
10038
|
}
|
|
10039
10039
|
)
|
|
10040
10040
|
}
|
|
@@ -10047,9 +10047,9 @@ const f0 = "_content_1kodm_1", g0 = "_title_1kodm_35", Ga = {
|
|
|
10047
10047
|
option: u,
|
|
10048
10048
|
paths: e.paths
|
|
10049
10049
|
},
|
|
10050
|
-
|
|
10050
|
+
f
|
|
10051
10051
|
)
|
|
10052
|
-
] },
|
|
10052
|
+
] }, f))
|
|
10053
10053
|
}
|
|
10054
10054
|
) : /* @__PURE__ */ a(
|
|
10055
10055
|
"div",
|
|
@@ -10080,9 +10080,9 @@ const f0 = "_content_1kodm_1", g0 = "_title_1kodm_35", Ga = {
|
|
|
10080
10080
|
)
|
|
10081
10081
|
] }) });
|
|
10082
10082
|
case "op2":
|
|
10083
|
-
return /* @__PURE__ */ a(
|
|
10083
|
+
return /* @__PURE__ */ a(Q, { children: /* @__PURE__ */ m(Ba, { children: [
|
|
10084
10084
|
/* @__PURE__ */ a(b1, { autor: s[0], autorIcon: e.autorIcon }),
|
|
10085
|
-
Array.isArray(t) ? /* @__PURE__ */ m(
|
|
10085
|
+
Array.isArray(t) ? /* @__PURE__ */ m(Q, { children: [
|
|
10086
10086
|
/* @__PURE__ */ a(
|
|
10087
10087
|
Ms,
|
|
10088
10088
|
{
|
|
@@ -10133,7 +10133,7 @@ const f0 = "_content_1kodm_1", g0 = "_title_1kodm_35", Ga = {
|
|
|
10133
10133
|
)
|
|
10134
10134
|
] }) });
|
|
10135
10135
|
default:
|
|
10136
|
-
return /* @__PURE__ */ a(
|
|
10136
|
+
return /* @__PURE__ */ a(Q, {});
|
|
10137
10137
|
}
|
|
10138
10138
|
}, F0 = "_content_ghncj_1", W0 = "_videoContent_ghncj_17", Ha = {
|
|
10139
10139
|
content: F0,
|
|
@@ -10256,11 +10256,11 @@ const f0 = "_content_1kodm_1", g0 = "_title_1kodm_35", Ga = {
|
|
|
10256
10256
|
case "op2":
|
|
10257
10257
|
return /* @__PURE__ */ a(wf, { video: e.data[0] });
|
|
10258
10258
|
default:
|
|
10259
|
-
return /* @__PURE__ */ a(
|
|
10259
|
+
return /* @__PURE__ */ a(Q, {});
|
|
10260
10260
|
}
|
|
10261
10261
|
};
|
|
10262
10262
|
function o9({ containerId: e, containerId2: t }) {
|
|
10263
|
-
return
|
|
10263
|
+
return Ie(() => {
|
|
10264
10264
|
try {
|
|
10265
10265
|
let n = function() {
|
|
10266
10266
|
const d = window.twttr;
|
|
@@ -10271,8 +10271,8 @@ function o9({ containerId: e, containerId2: t }) {
|
|
|
10271
10271
|
const i = s?.querySelectorAll("script[src]") ?? [], r = o?.querySelectorAll("script[src]") ?? [];
|
|
10272
10272
|
[...i, ...r].forEach((d) => {
|
|
10273
10273
|
const h = document.createElement("script");
|
|
10274
|
-
Array.from(d.attributes).forEach((
|
|
10275
|
-
h.setAttribute(
|
|
10274
|
+
Array.from(d.attributes).forEach((g) => {
|
|
10275
|
+
h.setAttribute(g.name, g.value);
|
|
10276
10276
|
}), d.replaceWith(h);
|
|
10277
10277
|
});
|
|
10278
10278
|
const c = document.querySelectorAll(
|
|
@@ -10334,7 +10334,7 @@ const yf = (e) => {
|
|
|
10334
10334
|
}
|
|
10335
10335
|
}
|
|
10336
10336
|
),
|
|
10337
|
-
t && /* @__PURE__ */ m(
|
|
10337
|
+
t && /* @__PURE__ */ m(Q, { children: [
|
|
10338
10338
|
/* @__PURE__ */ a(
|
|
10339
10339
|
"div",
|
|
10340
10340
|
{
|
|
@@ -10438,7 +10438,7 @@ const yf = (e) => {
|
|
|
10438
10438
|
isVisible: s = !1,
|
|
10439
10439
|
stylesConfig: o
|
|
10440
10440
|
}) => {
|
|
10441
|
-
const [i, r] =
|
|
10441
|
+
const [i, r] = j({ data: Array.from({ length: Fa }, () => bf) }), [l, c] = j(!1), u = ae(async () => {
|
|
10442
10442
|
if (!(l || !t?.info?.link?.internal)) {
|
|
10443
10443
|
c(!0);
|
|
10444
10444
|
try {
|
|
@@ -10448,17 +10448,17 @@ const yf = (e) => {
|
|
|
10448
10448
|
}), h = await fetch(`/api/get-more-news?${d}`);
|
|
10449
10449
|
if (!h.ok)
|
|
10450
10450
|
throw r(void 0), new Error(`HTTP error! status: ${h.status}`);
|
|
10451
|
-
const
|
|
10451
|
+
const g = await h.json();
|
|
10452
10452
|
r({
|
|
10453
|
-
...
|
|
10454
|
-
data:
|
|
10453
|
+
...g,
|
|
10454
|
+
data: g.data.slice(0, Fa)
|
|
10455
10455
|
});
|
|
10456
10456
|
} catch (d) {
|
|
10457
10457
|
console.error("[/api/get-more-news] Error:", d.message), r(void 0);
|
|
10458
10458
|
}
|
|
10459
10459
|
}
|
|
10460
10460
|
}, [e, t.info.link.internal, l]);
|
|
10461
|
-
return
|
|
10461
|
+
return Ie(() => {
|
|
10462
10462
|
s && u();
|
|
10463
10463
|
}, [s, i, u]), !i?.data || i.data.length === 0 ? null : /* @__PURE__ */ a(
|
|
10464
10464
|
vf,
|
|
@@ -10491,9 +10491,9 @@ const yf = (e) => {
|
|
|
10491
10491
|
preview: u,
|
|
10492
10492
|
isVideo: d = !1,
|
|
10493
10493
|
config: h,
|
|
10494
|
-
overImage:
|
|
10494
|
+
overImage: g = "default",
|
|
10495
10495
|
isTitle: y = !1,
|
|
10496
|
-
isLarge:
|
|
10496
|
+
isLarge: f = !1
|
|
10497
10497
|
} = o;
|
|
10498
10498
|
return /* @__PURE__ */ a(
|
|
10499
10499
|
"div",
|
|
@@ -10515,7 +10515,7 @@ const yf = (e) => {
|
|
|
10515
10515
|
preview: u,
|
|
10516
10516
|
rounded: e.rounded,
|
|
10517
10517
|
isVideo: d,
|
|
10518
|
-
isLarge:
|
|
10518
|
+
isLarge: f,
|
|
10519
10519
|
getImageUrl: e.getImageUrl
|
|
10520
10520
|
}
|
|
10521
10521
|
)
|
|
@@ -10530,7 +10530,7 @@ const yf = (e) => {
|
|
|
10530
10530
|
preview: u,
|
|
10531
10531
|
share: e.share,
|
|
10532
10532
|
config: h,
|
|
10533
|
-
overImage:
|
|
10533
|
+
overImage: g,
|
|
10534
10534
|
isTitle: y,
|
|
10535
10535
|
paths: o.paths,
|
|
10536
10536
|
isVisible: e.isVisible
|
|
@@ -10587,7 +10587,7 @@ const yf = (e) => {
|
|
|
10587
10587
|
children: n ? ye(e.main.subtitle.striped) : e.main.subtitle.striped
|
|
10588
10588
|
}
|
|
10589
10589
|
),
|
|
10590
|
-
(e?.config?.showtime || e.config?.showauthor) && o && /* @__PURE__ */ a(
|
|
10590
|
+
(e?.config?.showtime || e.config?.showauthor) && o && /* @__PURE__ */ a(Q, { children: e.authors?.[0]?.internaluser ? /* @__PURE__ */ a(
|
|
10591
10591
|
U,
|
|
10592
10592
|
{
|
|
10593
10593
|
className: K.correspondentLink,
|
|
@@ -10712,29 +10712,29 @@ async function i9({
|
|
|
10712
10712
|
encodedType: u,
|
|
10713
10713
|
url: h
|
|
10714
10714
|
});
|
|
10715
|
-
const
|
|
10715
|
+
const g = await $.post(h, null, {
|
|
10716
10716
|
headers: {
|
|
10717
10717
|
"User-Agent": "Bluestack",
|
|
10718
10718
|
"x-api-token": l,
|
|
10719
10719
|
"Content-Type": "application/json"
|
|
10720
10720
|
}
|
|
10721
10721
|
});
|
|
10722
|
-
if (console.log("Report response:",
|
|
10722
|
+
if (console.log("Report response:", g.data), g.status === 200 || g.status === 201)
|
|
10723
10723
|
return {
|
|
10724
10724
|
type: "success",
|
|
10725
10725
|
message: "Comentario reportado exitosamente",
|
|
10726
|
-
status:
|
|
10727
|
-
data:
|
|
10726
|
+
status: g.status,
|
|
10727
|
+
data: g.data
|
|
10728
10728
|
};
|
|
10729
|
-
throw new Error(`Respuesta inesperada del servidor: ${
|
|
10730
|
-
} catch (
|
|
10731
|
-
if (console.error("Error reporting comment:",
|
|
10732
|
-
const y =
|
|
10729
|
+
throw new Error(`Respuesta inesperada del servidor: ${g.status}`);
|
|
10730
|
+
} catch (g) {
|
|
10731
|
+
if (console.error("Error reporting comment:", g), $.isAxiosError(g)) {
|
|
10732
|
+
const y = g.response?.status, f = g.response?.data;
|
|
10733
10733
|
throw y === 400 ? new Error("Datos inválidos para el reporte") : y === 401 ? new Error("Token de API inválido") : y === 403 ? new Error("Acceso denegado para reportar comentario") : y === 404 ? new Error("Comentario no encontrado") : y === 409 ? new Error("El comentario ya fue reportado por este usuario") : y === 500 ? new Error("Error interno del servidor CMS") : new Error(
|
|
10734
|
-
|
|
10734
|
+
f?.error || f?.message || `Error HTTP ${y}: No se pudo reportar el comentario`
|
|
10735
10735
|
);
|
|
10736
10736
|
}
|
|
10737
|
-
throw
|
|
10737
|
+
throw g;
|
|
10738
10738
|
}
|
|
10739
10739
|
}
|
|
10740
10740
|
const Qe = {
|
|
@@ -10835,9 +10835,9 @@ const Wf = "_overlay_1je20_1", $f = "_header_1je20_35", Yf = "_logo_1je20_49", K
|
|
|
10835
10835
|
publication: s,
|
|
10836
10836
|
username: o
|
|
10837
10837
|
}) => {
|
|
10838
|
-
const [i, r] =
|
|
10838
|
+
const [i, r] = j("form"), [l, c] = j(
|
|
10839
10839
|
""
|
|
10840
|
-
), [u, d] =
|
|
10840
|
+
), [u, d] = j(""), [h] = j(""), g = [
|
|
10841
10841
|
{ id: "spam", label: Qe.spam },
|
|
10842
10842
|
{
|
|
10843
10843
|
id: "inappropriate",
|
|
@@ -10878,7 +10878,7 @@ const Wf = "_overlay_1je20_1", $f = "_header_1je20_35", Yf = "_logo_1je20_49", K
|
|
|
10878
10878
|
})).json();
|
|
10879
10879
|
if (w.type === "success")
|
|
10880
10880
|
Vf(document, n), r("success"), setTimeout(() => {
|
|
10881
|
-
|
|
10881
|
+
f();
|
|
10882
10882
|
}, 3e3);
|
|
10883
10883
|
else
|
|
10884
10884
|
throw new Error(w.message || "Error al reportar comentario");
|
|
@@ -10886,15 +10886,15 @@ const Wf = "_overlay_1je20_1", $f = "_header_1je20_35", Yf = "_logo_1je20_49", K
|
|
|
10886
10886
|
console.error("Error reporting comment:", p), d(p.message || "Error al reportar comentario"), r("form");
|
|
10887
10887
|
}
|
|
10888
10888
|
}
|
|
10889
|
-
},
|
|
10889
|
+
}, f = () => {
|
|
10890
10890
|
r("form"), c(""), d(""), t();
|
|
10891
10891
|
};
|
|
10892
10892
|
return !e || !n || !o ? null : /* @__PURE__ */ a("div", { className: te.overlay, children: /* @__PURE__ */ m("div", { className: te.popup, children: [
|
|
10893
|
-
/* @__PURE__ */ a("button", { className: "close-reply-form", onClick:
|
|
10893
|
+
/* @__PURE__ */ a("button", { className: "close-reply-form", onClick: f, children: /* @__PURE__ */ a(pt, {}) }),
|
|
10894
10894
|
/* @__PURE__ */ a("h2", { className: te.title, children: "Reportar Abuso" }),
|
|
10895
10895
|
i === "loading" && /* @__PURE__ */ a("div", { className: te.loadingContainer, children: /* @__PURE__ */ a(He, {}) }),
|
|
10896
|
-
i === "form" || i === "loading" ? /* @__PURE__ */ m(
|
|
10897
|
-
/* @__PURE__ */ a("div", { className: te.optionsContainer, children:
|
|
10896
|
+
i === "form" || i === "loading" ? /* @__PURE__ */ m(Q, { children: [
|
|
10897
|
+
/* @__PURE__ */ a("div", { className: te.optionsContainer, children: g.map((p) => /* @__PURE__ */ m("label", { className: te.option, children: [
|
|
10898
10898
|
/* @__PURE__ */ a(
|
|
10899
10899
|
"input",
|
|
10900
10900
|
{
|
|
@@ -10911,7 +10911,7 @@ const Wf = "_overlay_1je20_1", $f = "_header_1je20_35", Yf = "_logo_1je20_49", K
|
|
|
10911
10911
|
] }, p.id)) }),
|
|
10912
10912
|
u && /* @__PURE__ */ a("div", { className: te.errorMessage, children: u }),
|
|
10913
10913
|
/* @__PURE__ */ m("div", { className: te.buttons, children: [
|
|
10914
|
-
/* @__PURE__ */ a("button", { onClick:
|
|
10914
|
+
/* @__PURE__ */ a("button", { onClick: f, className: te.cancelButton, children: "Cancelar" }),
|
|
10915
10915
|
/* @__PURE__ */ a(
|
|
10916
10916
|
"button",
|
|
10917
10917
|
{
|
|
@@ -10922,7 +10922,7 @@ const Wf = "_overlay_1je20_1", $f = "_header_1je20_35", Yf = "_logo_1je20_49", K
|
|
|
10922
10922
|
}
|
|
10923
10923
|
)
|
|
10924
10924
|
] })
|
|
10925
|
-
] }) : /* @__PURE__ */ m(
|
|
10925
|
+
] }) : /* @__PURE__ */ m(Q, { children: [
|
|
10926
10926
|
/* @__PURE__ */ m("div", { className: te.successContainer, children: [
|
|
10927
10927
|
/* @__PURE__ */ a("div", { className: te.thumbsUp, children: /* @__PURE__ */ a(
|
|
10928
10928
|
"svg",
|
|
@@ -10945,7 +10945,7 @@ const Wf = "_overlay_1je20_1", $f = "_header_1je20_35", Yf = "_logo_1je20_49", K
|
|
|
10945
10945
|
/* @__PURE__ */ a("div", { className: te.buttons, children: /* @__PURE__ */ a(
|
|
10946
10946
|
"button",
|
|
10947
10947
|
{
|
|
10948
|
-
onClick:
|
|
10948
|
+
onClick: f,
|
|
10949
10949
|
className: [te.closeButton, te.buttonAlone].join(" "),
|
|
10950
10950
|
children: "Cerrar"
|
|
10951
10951
|
}
|
|
@@ -10983,10 +10983,10 @@ async function oa({
|
|
|
10983
10983
|
state: r
|
|
10984
10984
|
});
|
|
10985
10985
|
o && h.append("id", o), i && h.append("lastid", i);
|
|
10986
|
-
const
|
|
10986
|
+
const g = `${d}?${h.toString()}`;
|
|
10987
10987
|
try {
|
|
10988
|
-
console.log("Fetching comments from:",
|
|
10989
|
-
const { data: y } = await $.get(
|
|
10988
|
+
console.log("Fetching comments from:", g);
|
|
10989
|
+
const { data: y } = await $.get(g, {
|
|
10990
10990
|
headers: {
|
|
10991
10991
|
"x-api-token": l,
|
|
10992
10992
|
"Cache-Control": "max-age=0, no-cache, no-store, must-revalidate",
|
|
@@ -10999,17 +10999,17 @@ async function oa({
|
|
|
10999
10999
|
return y.data || y || [];
|
|
11000
11000
|
} catch (y) {
|
|
11001
11001
|
if (console.error("Error fetching comments:", y), $.isAxiosError(y)) {
|
|
11002
|
-
const
|
|
11003
|
-
throw
|
|
11004
|
-
p?.error || p?.message || `HTTP ${
|
|
11002
|
+
const f = y.response?.status, p = y.response?.data;
|
|
11003
|
+
throw f === 404 ? new Error("Comments not found") : f === 403 ? new Error("Access forbidden - check API token") : f === 401 ? new Error("Unauthorized - invalid API token") : f === 500 ? new Error("Internal server error from CMS") : new Error(
|
|
11004
|
+
p?.error || p?.message || `HTTP ${f}: Failed to fetch comments`
|
|
11005
11005
|
);
|
|
11006
11006
|
}
|
|
11007
11007
|
throw y;
|
|
11008
11008
|
}
|
|
11009
11009
|
}
|
|
11010
11010
|
const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
11011
|
-
const [t, n] =
|
|
11012
|
-
return
|
|
11011
|
+
const [t, n] = j(void 0);
|
|
11012
|
+
return Ie(() => {
|
|
11013
11013
|
if (t) return;
|
|
11014
11014
|
(async () => {
|
|
11015
11015
|
const { PUBLIC_X_SECURITY_TOKEN: o } = J();
|
|
@@ -11087,7 +11087,7 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11087
11087
|
]
|
|
11088
11088
|
}
|
|
11089
11089
|
) })
|
|
11090
|
-
] }), Vs = ({ commentRef: e, captchaToken: t = "", setIsDisabled: n }) => (
|
|
11090
|
+
] }), Vs = ({ commentRef: e, captchaToken: t = "", setIsDisabled: n }) => (Ie(() => {
|
|
11091
11091
|
const s = e.current;
|
|
11092
11092
|
if (!s) return;
|
|
11093
11093
|
const o = () => {
|
|
@@ -11187,14 +11187,14 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11187
11187
|
let d = null;
|
|
11188
11188
|
try {
|
|
11189
11189
|
d = await u.json();
|
|
11190
|
-
} catch (
|
|
11191
|
-
console.error("Error parsing JSON response:",
|
|
11190
|
+
} catch (f) {
|
|
11191
|
+
console.error("Error parsing JSON response:", f);
|
|
11192
11192
|
}
|
|
11193
11193
|
if (!u.ok)
|
|
11194
11194
|
throw new Error(
|
|
11195
11195
|
`Error al enviar comentario: ${d?.message} status: ${u.status}`
|
|
11196
11196
|
);
|
|
11197
|
-
const h = Date.now(),
|
|
11197
|
+
const h = Date.now(), g = Math.max(0, 2400 + Math.abs(h - c)), y = {
|
|
11198
11198
|
username: o.username,
|
|
11199
11199
|
firstname: o.firstname,
|
|
11200
11200
|
...o.lastname && { lastname: o.lastname },
|
|
@@ -11206,7 +11206,7 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11206
11206
|
user: y,
|
|
11207
11207
|
date: { time: Date.now() },
|
|
11208
11208
|
reply: []
|
|
11209
|
-
}), t.current && (t.current.value = ""),
|
|
11209
|
+
}), t.current && (t.current.value = ""), g;
|
|
11210
11210
|
} catch (c) {
|
|
11211
11211
|
return console.error("Error enviando comentario:", c), alert(c.message || "Error al enviar el comentario."), !1;
|
|
11212
11212
|
}
|
|
@@ -11218,7 +11218,7 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11218
11218
|
addReply: o,
|
|
11219
11219
|
closeForm: i
|
|
11220
11220
|
}) => {
|
|
11221
|
-
const [r, l] =
|
|
11221
|
+
const [r, l] = j(!0), [c, u] = j(""), d = () => {
|
|
11222
11222
|
t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${tt}`), l(!0), i();
|
|
11223
11223
|
};
|
|
11224
11224
|
return /* @__PURE__ */ m("div", { className: "comment-form reply-form", children: [
|
|
@@ -11242,7 +11242,7 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11242
11242
|
{
|
|
11243
11243
|
onClick: async (h) => {
|
|
11244
11244
|
if (r) return;
|
|
11245
|
-
const
|
|
11245
|
+
const g = await $s({
|
|
11246
11246
|
path: s,
|
|
11247
11247
|
ref: t,
|
|
11248
11248
|
captchaToken: c,
|
|
@@ -11251,9 +11251,9 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11251
11251
|
id: e,
|
|
11252
11252
|
addComment: o
|
|
11253
11253
|
});
|
|
11254
|
-
return
|
|
11254
|
+
return g && typeof g == "number" ? (setTimeout(() => {
|
|
11255
11255
|
d();
|
|
11256
|
-
},
|
|
11256
|
+
}, g), !0) : !1;
|
|
11257
11257
|
},
|
|
11258
11258
|
isDisabled: r
|
|
11259
11259
|
}
|
|
@@ -11278,9 +11278,9 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11278
11278
|
] })
|
|
11279
11279
|
] }) });
|
|
11280
11280
|
}, Eg = ({ comment: e, replyingTo: t, path: n, user: s, handleReplyingTo: o, onFlag: i }) => {
|
|
11281
|
-
const r = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [l, c] =
|
|
11282
|
-
let
|
|
11283
|
-
e.user && (
|
|
11281
|
+
const r = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [l, c] = j(r), [u, d] = xe.useState(!1), h = process.env.NEXT_PUBLIC_PUBLICATION_ID ?? "", g = e.text, y = xe.useRef(null);
|
|
11282
|
+
let f = `${Ge.firstname} ${Ge.lastname}`, p = Ge.username;
|
|
11283
|
+
e.user && (f = `${e.user.firstname} ${e.user.lastname}`, p = e.user.username);
|
|
11284
11284
|
const w = (C) => {
|
|
11285
11285
|
c({ morereply: l.morereply, reply: [C, ...l.reply] });
|
|
11286
11286
|
};
|
|
@@ -11292,8 +11292,8 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11292
11292
|
children: [
|
|
11293
11293
|
/* @__PURE__ */ a(Hs, { user: e.user ? e.user : Ge }),
|
|
11294
11294
|
/* @__PURE__ */ m("div", { style: { flex: 1 }, children: [
|
|
11295
|
-
/* @__PURE__ */ a(Gs, { username:
|
|
11296
|
-
/* @__PURE__ */ a("p", { className: "comment-text", children:
|
|
11295
|
+
/* @__PURE__ */ a(Gs, { username: f, date: e.date.time }),
|
|
11296
|
+
/* @__PURE__ */ a("p", { className: "comment-text", children: g }),
|
|
11297
11297
|
s?.username.toLowerCase() !== p.toLowerCase() && // No puedes responder ni reportar tus respuestas
|
|
11298
11298
|
/* @__PURE__ */ a(
|
|
11299
11299
|
zs,
|
|
@@ -11319,7 +11319,7 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11319
11319
|
{
|
|
11320
11320
|
user: s,
|
|
11321
11321
|
reply: C,
|
|
11322
|
-
replyingTo:
|
|
11322
|
+
replyingTo: f,
|
|
11323
11323
|
onFlag: i
|
|
11324
11324
|
},
|
|
11325
11325
|
C.id
|
|
@@ -11361,7 +11361,7 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11361
11361
|
path: n,
|
|
11362
11362
|
addComment: s
|
|
11363
11363
|
}) => {
|
|
11364
|
-
const [o, i] =
|
|
11364
|
+
const [o, i] = j(!0), [r, l] = j("");
|
|
11365
11365
|
return /* @__PURE__ */ m("div", { className: "comment-form", children: [
|
|
11366
11366
|
/* @__PURE__ */ a(
|
|
11367
11367
|
Vs,
|
|
@@ -11407,9 +11407,9 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11407
11407
|
handleLogout: s,
|
|
11408
11408
|
CAPTCHA_KEY_V2: o
|
|
11409
11409
|
}) => {
|
|
11410
|
-
const i = t.replaceAll("/", "|"), [r, l] =
|
|
11410
|
+
const i = t.replaceAll("/", "|"), [r, l] = j(
|
|
11411
11411
|
void 0
|
|
11412
|
-
), [c, u] =
|
|
11412
|
+
), [c, u] = j(""), { comments: d, setComments: h } = _g(i), [g, y] = xe.useState(!1), f = xe.useRef(null), p = (E) => {
|
|
11413
11413
|
u(c === E ? "" : E);
|
|
11414
11414
|
}, w = (E) => {
|
|
11415
11415
|
h(
|
|
@@ -11446,9 +11446,9 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11446
11446
|
throw y(!1), new Error(`Error al obtener comentarios: ${H}`);
|
|
11447
11447
|
}
|
|
11448
11448
|
}, N = d?.comments && d.comments.length > 0, R = N ? "Comparte tu opinión de este artículo." : "Se el primero en compartir tu opinión de este artículo.", I = /* @__PURE__ */ a("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ a(He, {}) });
|
|
11449
|
-
return /* @__PURE__ */ m(
|
|
11450
|
-
/* @__PURE__ */ a("div", { className: "comments-container", children: /* @__PURE__ */ a(re, { title: N || e ? "COMENTARIOS" : !1, children: /* @__PURE__ */ m(
|
|
11451
|
-
/* @__PURE__ */ a("div", { className: "comments-header", children: e && n && /* @__PURE__ */ m(
|
|
11449
|
+
return /* @__PURE__ */ m(Q, { children: [
|
|
11450
|
+
/* @__PURE__ */ a("div", { className: "comments-container", children: /* @__PURE__ */ a(re, { title: N || e ? "COMENTARIOS" : !1, children: /* @__PURE__ */ m(Q, { children: [
|
|
11451
|
+
/* @__PURE__ */ a("div", { className: "comments-header", children: e && n && /* @__PURE__ */ m(Q, { children: [
|
|
11452
11452
|
/* @__PURE__ */ a(
|
|
11453
11453
|
Sf,
|
|
11454
11454
|
{
|
|
@@ -11460,7 +11460,7 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11460
11460
|
/* @__PURE__ */ a(
|
|
11461
11461
|
kg,
|
|
11462
11462
|
{
|
|
11463
|
-
commentRef:
|
|
11463
|
+
commentRef: f,
|
|
11464
11464
|
user: n,
|
|
11465
11465
|
addComment: w,
|
|
11466
11466
|
path: i
|
|
@@ -11472,7 +11472,7 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11472
11472
|
{
|
|
11473
11473
|
className: "comments-list",
|
|
11474
11474
|
"data-isauthenticated": `${e}`,
|
|
11475
|
-
children: d ? d.comments && d.comments.length > 0 ? /* @__PURE__ */ m(
|
|
11475
|
+
children: d ? d.comments && d.comments.length > 0 ? /* @__PURE__ */ m(Q, { children: [
|
|
11476
11476
|
d.comments.map((E) => /* @__PURE__ */ a(
|
|
11477
11477
|
Eg,
|
|
11478
11478
|
{
|
|
@@ -11485,11 +11485,11 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11485
11485
|
},
|
|
11486
11486
|
E.id
|
|
11487
11487
|
)),
|
|
11488
|
-
|
|
11488
|
+
g && I
|
|
11489
11489
|
] }) : null : I
|
|
11490
11490
|
}
|
|
11491
11491
|
),
|
|
11492
|
-
d?.morecomment && !
|
|
11492
|
+
d?.morecomment && !g && /* @__PURE__ */ a(
|
|
11493
11493
|
"button",
|
|
11494
11494
|
{
|
|
11495
11495
|
className: "comment-replies-button",
|
|
@@ -11558,9 +11558,9 @@ const { PUBLIC_PUBLICATION_ID: Cg } = J(), bg = Cg, _g = (e) => {
|
|
|
11558
11558
|
}
|
|
11559
11559
|
];
|
|
11560
11560
|
function qg({ goToLogin: e, handleGoogleLogin: t }) {
|
|
11561
|
-
const [n, s] =
|
|
11561
|
+
const [n, s] = j({}), [o, i] = j(!1), [r, l] = j(!1), [c, u] = j(null), [d, h] = j(
|
|
11562
11562
|
"register"
|
|
11563
|
-
),
|
|
11563
|
+
), g = (w, C) => {
|
|
11564
11564
|
s((k) => ({ ...k, [w]: C }));
|
|
11565
11565
|
}, y = async (w) => {
|
|
11566
11566
|
w.preventDefault(), u(null), l(!0);
|
|
@@ -11616,7 +11616,7 @@ function qg({ goToLogin: e, handleGoogleLogin: t }) {
|
|
|
11616
11616
|
} finally {
|
|
11617
11617
|
l(!1);
|
|
11618
11618
|
}
|
|
11619
|
-
},
|
|
11619
|
+
}, f = async (w) => {
|
|
11620
11620
|
if (w.preventDefault(), !n.confirmationCode) {
|
|
11621
11621
|
u("Debes ingresar el código de verificación");
|
|
11622
11622
|
return;
|
|
@@ -11642,8 +11642,8 @@ function qg({ goToLogin: e, handleGoogleLogin: t }) {
|
|
|
11642
11642
|
l(!1);
|
|
11643
11643
|
}
|
|
11644
11644
|
}, p = n.password || "";
|
|
11645
|
-
return /* @__PURE__ */ m(
|
|
11646
|
-
d === "register" && /* @__PURE__ */ m(
|
|
11645
|
+
return /* @__PURE__ */ m(Q, { children: [
|
|
11646
|
+
d === "register" && /* @__PURE__ */ m(Q, { children: [
|
|
11647
11647
|
/* @__PURE__ */ m("button", { onClick: t, className: v.google, children: [
|
|
11648
11648
|
/* @__PURE__ */ a(
|
|
11649
11649
|
"img",
|
|
@@ -11671,7 +11671,7 @@ function qg({ goToLogin: e, handleGoogleLogin: t }) {
|
|
|
11671
11671
|
type: w.toLowerCase().includes("password") ? o ? "text" : "password" : w === "birthdate" ? "date" : w === "email" ? "email" : w === "phone_number" ? "tel" : "text",
|
|
11672
11672
|
name: w,
|
|
11673
11673
|
value: n[w] || "",
|
|
11674
|
-
onChange: (k) =>
|
|
11674
|
+
onChange: (k) => g(w, k.target.value),
|
|
11675
11675
|
className: v.input,
|
|
11676
11676
|
placeholder: ""
|
|
11677
11677
|
}
|
|
@@ -11724,7 +11724,7 @@ function qg({ goToLogin: e, handleGoogleLogin: t }) {
|
|
|
11724
11724
|
d === "confirm" && /* @__PURE__ */ m(
|
|
11725
11725
|
"form",
|
|
11726
11726
|
{
|
|
11727
|
-
onSubmit:
|
|
11727
|
+
onSubmit: f,
|
|
11728
11728
|
className: v.form,
|
|
11729
11729
|
"data-error": c ? "true" : "false",
|
|
11730
11730
|
children: [
|
|
@@ -11736,7 +11736,7 @@ function qg({ goToLogin: e, handleGoogleLogin: t }) {
|
|
|
11736
11736
|
type: "text",
|
|
11737
11737
|
name: "confirmationCode",
|
|
11738
11738
|
value: n.confirmationCode || "",
|
|
11739
|
-
onChange: (w) =>
|
|
11739
|
+
onChange: (w) => g("confirmationCode", w.target.value),
|
|
11740
11740
|
className: v.input,
|
|
11741
11741
|
required: !0
|
|
11742
11742
|
}
|
|
@@ -11789,8 +11789,8 @@ function Bg({
|
|
|
11789
11789
|
handleGoogleLogin: s,
|
|
11790
11790
|
CAPTCHA_KEY: o
|
|
11791
11791
|
}) {
|
|
11792
|
-
const [i, r] =
|
|
11793
|
-
return /* @__PURE__ */ m(
|
|
11792
|
+
const [i, r] = j("login"), [l, c] = j(""), [u, d] = j(""), [h, g] = j(""), [y, f] = j(""), [p, w] = j(""), [C, k] = j(!1), [N, R] = j(!1), [I, E] = j(null);
|
|
11793
|
+
return /* @__PURE__ */ m(Q, { children: [
|
|
11794
11794
|
i === "login" && /* @__PURE__ */ a(
|
|
11795
11795
|
Lg,
|
|
11796
11796
|
{
|
|
@@ -11876,8 +11876,8 @@ function Bg({
|
|
|
11876
11876
|
showPassword: C,
|
|
11877
11877
|
loading: N,
|
|
11878
11878
|
error: I,
|
|
11879
|
-
setConfirmationCode:
|
|
11880
|
-
setNewPassword:
|
|
11879
|
+
setConfirmationCode: g,
|
|
11880
|
+
setNewPassword: f,
|
|
11881
11881
|
setConfirmNewPassword: w,
|
|
11882
11882
|
setShowPassword: k,
|
|
11883
11883
|
onSubmit: async (M) => {
|
|
@@ -11939,7 +11939,7 @@ function Lg({
|
|
|
11939
11939
|
onRegister: d,
|
|
11940
11940
|
handleGoogleLogin: h
|
|
11941
11941
|
}) {
|
|
11942
|
-
return /* @__PURE__ */ m(
|
|
11942
|
+
return /* @__PURE__ */ m(Q, { children: [
|
|
11943
11943
|
/* @__PURE__ */ m("button", { onClick: h, className: v.google, children: [
|
|
11944
11944
|
/* @__PURE__ */ a(
|
|
11945
11945
|
"img",
|
|
@@ -11966,7 +11966,7 @@ function Lg({
|
|
|
11966
11966
|
{
|
|
11967
11967
|
type: "email",
|
|
11968
11968
|
value: e,
|
|
11969
|
-
onChange: (
|
|
11969
|
+
onChange: (g) => i(g.target.value),
|
|
11970
11970
|
className: v.input,
|
|
11971
11971
|
placeholder: ""
|
|
11972
11972
|
}
|
|
@@ -11979,7 +11979,7 @@ function Lg({
|
|
|
11979
11979
|
{
|
|
11980
11980
|
type: n ? "text" : "password",
|
|
11981
11981
|
value: t,
|
|
11982
|
-
onChange: (
|
|
11982
|
+
onChange: (g) => r(g.target.value),
|
|
11983
11983
|
className: v.input,
|
|
11984
11984
|
placeholder: ""
|
|
11985
11985
|
}
|
|
@@ -11991,7 +11991,7 @@ function Lg({
|
|
|
11991
11991
|
id: "showPasswordLogin",
|
|
11992
11992
|
type: "checkbox",
|
|
11993
11993
|
checked: n,
|
|
11994
|
-
onChange: (
|
|
11994
|
+
onChange: (g) => l(g.target.checked)
|
|
11995
11995
|
}
|
|
11996
11996
|
),
|
|
11997
11997
|
/* @__PURE__ */ a("label", { htmlFor: "showPasswordLogin", className: v.checkboxLabel, children: "Mostrar contraseña" })
|
|
@@ -12067,7 +12067,7 @@ function Dg({
|
|
|
12067
12067
|
setConfirmNewPassword: u,
|
|
12068
12068
|
setShowPassword: d,
|
|
12069
12069
|
onSubmit: h,
|
|
12070
|
-
onBack:
|
|
12070
|
+
onBack: g
|
|
12071
12071
|
}) {
|
|
12072
12072
|
return /* @__PURE__ */ m(
|
|
12073
12073
|
"form",
|
|
@@ -12108,12 +12108,12 @@ function Dg({
|
|
|
12108
12108
|
name: "password"
|
|
12109
12109
|
}
|
|
12110
12110
|
),
|
|
12111
|
-
/* @__PURE__ */ a("div", { className: v.passwordChecker, children: hn.map((y,
|
|
12111
|
+
/* @__PURE__ */ a("div", { className: v.passwordChecker, children: hn.map((y, f) => {
|
|
12112
12112
|
const p = y.test(n);
|
|
12113
12113
|
return /* @__PURE__ */ m("div", { className: p ? v.valid : v.invalid, children: [
|
|
12114
12114
|
/* @__PURE__ */ a("div", { children: p ? "✔" : "○" }),
|
|
12115
12115
|
/* @__PURE__ */ a("div", { children: y.label })
|
|
12116
|
-
] },
|
|
12116
|
+
] }, f);
|
|
12117
12117
|
}) })
|
|
12118
12118
|
] }),
|
|
12119
12119
|
/* @__PURE__ */ m("div", { className: v.field, children: [
|
|
@@ -12160,7 +12160,7 @@ function Dg({
|
|
|
12160
12160
|
children: i ? /* @__PURE__ */ a(He, {}) : "Cambiar contraseña"
|
|
12161
12161
|
}
|
|
12162
12162
|
),
|
|
12163
|
-
/* @__PURE__ */ a("p", { className: v.switch, children: /* @__PURE__ */ a("button", { type: "button", onClick:
|
|
12163
|
+
/* @__PURE__ */ a("p", { className: v.switch, children: /* @__PURE__ */ a("button", { type: "button", onClick: g, children: "Volver" }) })
|
|
12164
12164
|
]
|
|
12165
12165
|
}
|
|
12166
12166
|
);
|
|
@@ -12179,7 +12179,7 @@ function Pg({
|
|
|
12179
12179
|
checkAuth: o,
|
|
12180
12180
|
icon: i
|
|
12181
12181
|
}) {
|
|
12182
|
-
const [r, l] =
|
|
12182
|
+
const [r, l] = j("login"), c = async () => {
|
|
12183
12183
|
if (!e) return;
|
|
12184
12184
|
const u = encodeURIComponent(window.location.pathname);
|
|
12185
12185
|
window.location.href = `/api/auth/login?redirect=${u}`;
|
|
@@ -12245,10 +12245,10 @@ function Og({
|
|
|
12245
12245
|
const y = window.location.pathname;
|
|
12246
12246
|
window.location.href = `${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(y)}`;
|
|
12247
12247
|
}
|
|
12248
|
-
},
|
|
12248
|
+
}, g = async (y) => {
|
|
12249
12249
|
y.preventDefault(), n && d(!0);
|
|
12250
12250
|
};
|
|
12251
|
-
return /* @__PURE__ */ m(
|
|
12251
|
+
return /* @__PURE__ */ m(Q, { children: [
|
|
12252
12252
|
u && /* @__PURE__ */ a(
|
|
12253
12253
|
Pg,
|
|
12254
12254
|
{
|
|
@@ -12268,7 +12268,7 @@ function Og({
|
|
|
12268
12268
|
"a",
|
|
12269
12269
|
{
|
|
12270
12270
|
href: n,
|
|
12271
|
-
onClick:
|
|
12271
|
+
onClick: g,
|
|
12272
12272
|
className: "login-button",
|
|
12273
12273
|
children: "Iniciar Sesión"
|
|
12274
12274
|
}
|
|
@@ -12294,7 +12294,7 @@ function jg({
|
|
|
12294
12294
|
COGNITO_AUTH_PREFIX: s,
|
|
12295
12295
|
captchaVars: o
|
|
12296
12296
|
}) {
|
|
12297
|
-
const [i, r] =
|
|
12297
|
+
const [i, r] = j(null), [l, c] = j(null), u = async () => {
|
|
12298
12298
|
if (console.log("check auth"), !!e) {
|
|
12299
12299
|
if (console.log("check auth 2"), document.cookie.search(Qg + "IS_AUTH=true") === -1) {
|
|
12300
12300
|
r(!1), c(null), console.log("user not logged");
|
|
@@ -12302,25 +12302,25 @@ function jg({
|
|
|
12302
12302
|
}
|
|
12303
12303
|
try {
|
|
12304
12304
|
console.log("check user");
|
|
12305
|
-
const
|
|
12306
|
-
console.log("check user",
|
|
12307
|
-
const y = await
|
|
12305
|
+
const g = await fetch("/api/auth/user", { credentials: "include" });
|
|
12306
|
+
console.log("check user", g);
|
|
12307
|
+
const y = await g.json();
|
|
12308
12308
|
console.log("check user", y), r(y.isAuthenticated ?? !1), c(y.user ?? null);
|
|
12309
|
-
} catch (
|
|
12310
|
-
console.log("check auth error catch"), console.error("Error checking auth:",
|
|
12309
|
+
} catch (g) {
|
|
12310
|
+
console.log("check auth error catch"), console.error("Error checking auth:", g), r(!1), c(null);
|
|
12311
12311
|
}
|
|
12312
12312
|
}
|
|
12313
12313
|
};
|
|
12314
|
-
|
|
12314
|
+
Ie(() => {
|
|
12315
12315
|
console.log("authArea effect"), u();
|
|
12316
|
-
}, []),
|
|
12316
|
+
}, [e]), Ie(() => {
|
|
12317
12317
|
if (!l || !e || typeof window > "u") return;
|
|
12318
|
-
const
|
|
12319
|
-
if (typeof
|
|
12318
|
+
const g = window;
|
|
12319
|
+
if (typeof g != "function") {
|
|
12320
12320
|
console.warn("gtag no está disponible todavía");
|
|
12321
12321
|
return;
|
|
12322
12322
|
}
|
|
12323
|
-
|
|
12323
|
+
g.gtag("set", { user_id: l.username }), console.log("username setted successfully");
|
|
12324
12324
|
}, [l, e]);
|
|
12325
12325
|
const d = "/api/auth/login", h = /* @__PURE__ */ a("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", minHeight: 310, position: "relative" }, children: /* @__PURE__ */ a(He, {}) });
|
|
12326
12326
|
return console.log("COMMENTS: ", i, e), i === null ? h : e ? /* @__PURE__ */ a(
|
|
@@ -12351,20 +12351,7 @@ const l9 = ({
|
|
|
12351
12351
|
CAPTCHA_KEY: "invalidKey"
|
|
12352
12352
|
}
|
|
12353
12353
|
}) => {
|
|
12354
|
-
const c = Ja(null),
|
|
12355
|
-
Ee(() => {
|
|
12356
|
-
const f = new IntersectionObserver(
|
|
12357
|
-
([y]) => {
|
|
12358
|
-
y?.isIntersecting && (d(!0), f.disconnect());
|
|
12359
|
-
},
|
|
12360
|
-
{
|
|
12361
|
-
rootMargin: "0px",
|
|
12362
|
-
threshold: 0.1
|
|
12363
|
-
}
|
|
12364
|
-
);
|
|
12365
|
-
return c.current && f.observe(c.current), () => f.disconnect();
|
|
12366
|
-
}, []);
|
|
12367
|
-
const h = {
|
|
12354
|
+
const c = Ja(null), u = !0, d = {
|
|
12368
12355
|
// related: (
|
|
12369
12356
|
// <RelatedNews
|
|
12370
12357
|
// config={config}
|
|
@@ -12402,7 +12389,7 @@ const l9 = ({
|
|
|
12402
12389
|
style: {
|
|
12403
12390
|
...o ? o["Modulo 1x3 Client"] ? o["Modulo 1x3 Client"] : o["Modulo 1x3"] : {}
|
|
12404
12391
|
},
|
|
12405
|
-
children:
|
|
12392
|
+
children: d[e]
|
|
12406
12393
|
}
|
|
12407
12394
|
);
|
|
12408
12395
|
};
|
|
@@ -12431,7 +12418,7 @@ async function c9({
|
|
|
12431
12418
|
message: "Faltan campos obligatorios. Por favor, completa todos los campos.",
|
|
12432
12419
|
status: 400
|
|
12433
12420
|
};
|
|
12434
|
-
if ([e, t, s, n].some((
|
|
12421
|
+
if ([e, t, s, n].some((f) => typeof f != "string"))
|
|
12435
12422
|
return {
|
|
12436
12423
|
type: "error",
|
|
12437
12424
|
message: "Datos inválidos. Intenta de nuevo.",
|
|
@@ -12459,16 +12446,16 @@ async function c9({
|
|
|
12459
12446
|
message: "Captcha inválido. Intenta nuevamente.",
|
|
12460
12447
|
status: 403
|
|
12461
12448
|
};
|
|
12462
|
-
const h = `${l}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,
|
|
12449
|
+
const h = `${l}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`, g = {
|
|
12463
12450
|
publication: e,
|
|
12464
12451
|
path: t.replace(/\|/gi, "/"),
|
|
12465
12452
|
username: n ?? !1,
|
|
12466
12453
|
text: s.trim()
|
|
12467
12454
|
};
|
|
12468
|
-
o && (
|
|
12469
|
-
const y = new URLSearchParams(
|
|
12455
|
+
o && (g.id = o);
|
|
12456
|
+
const y = new URLSearchParams(g);
|
|
12470
12457
|
try {
|
|
12471
|
-
const { data:
|
|
12458
|
+
const { data: f } = await $.get(`${h}?${y.toString()}`, {
|
|
12472
12459
|
headers: {
|
|
12473
12460
|
"Content-Type": "application/json",
|
|
12474
12461
|
"x-security-token": u,
|
|
@@ -12476,18 +12463,18 @@ async function c9({
|
|
|
12476
12463
|
"User-Agent": "amplifyapp-comments-saas"
|
|
12477
12464
|
}
|
|
12478
12465
|
});
|
|
12479
|
-
return !
|
|
12466
|
+
return !f || f.error ? (console.error("CMS error response:", f), {
|
|
12480
12467
|
type: "error",
|
|
12481
12468
|
message: "No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",
|
|
12482
12469
|
status: 502
|
|
12483
|
-
}) : (console.log("Comentario enviado con éxito",
|
|
12470
|
+
}) : (console.log("Comentario enviado con éxito", f), {
|
|
12484
12471
|
type: "success",
|
|
12485
12472
|
message: "Comentario enviado con éxito.",
|
|
12486
12473
|
status: 200
|
|
12487
12474
|
});
|
|
12488
|
-
} catch (
|
|
12489
|
-
if (console.error("Error enviando comentario:",
|
|
12490
|
-
const p =
|
|
12475
|
+
} catch (f) {
|
|
12476
|
+
if (console.error("Error enviando comentario:", f), $.isAxiosError(f)) {
|
|
12477
|
+
const p = f.response?.status ?? 500, w = f.response?.data;
|
|
12491
12478
|
return p === 400 ? {
|
|
12492
12479
|
type: "error",
|
|
12493
12480
|
message: w?.message || "Solicitud inválida. Verifica que los campos sean correctos.",
|
|
@@ -12782,25 +12769,25 @@ const Ka = {
|
|
|
12782
12769
|
const r = [], c = t, u = Object.keys(e).length / c;
|
|
12783
12770
|
for (let d = 1; d <= u; d++)
|
|
12784
12771
|
for (let h = 1; h <= c; h++) {
|
|
12785
|
-
const
|
|
12786
|
-
!e[
|
|
12772
|
+
const g = "Home_" + d + "_" + h;
|
|
12773
|
+
!e[g] || !e[g].blockSass || !e[g].blockSass[0] || !e[g].blockSass[0].value || !e[g].blockSass[0].block || e[g].blockSass[0].block === "No Mostrar" || r.push(
|
|
12787
12774
|
/* @__PURE__ */ m(
|
|
12788
12775
|
Ur,
|
|
12789
12776
|
{
|
|
12790
|
-
show: !!e[
|
|
12777
|
+
show: !!e[g].content?.data,
|
|
12791
12778
|
order: (d - 1) * c + (h - 1),
|
|
12792
12779
|
children: [
|
|
12793
12780
|
/* @__PURE__ */ a(
|
|
12794
12781
|
Xg,
|
|
12795
12782
|
{
|
|
12796
|
-
component: e[
|
|
12783
|
+
component: e[g].blockSass[0].block,
|
|
12797
12784
|
banners: i,
|
|
12798
|
-
slot_id:
|
|
12785
|
+
slot_id: g,
|
|
12799
12786
|
data: {
|
|
12800
|
-
...e[
|
|
12801
|
-
content: e[
|
|
12802
|
-
title: e[
|
|
12803
|
-
titleUrl: e[
|
|
12787
|
+
...e[g].blockSass[0].block ? n[e[g].blockSass[0].block] : [],
|
|
12788
|
+
content: e[g].content?.data ?? [],
|
|
12789
|
+
title: e[g].blockSass[0].title ?? void 0,
|
|
12790
|
+
titleUrl: e[g].blockSass[0].link ?? void 0,
|
|
12804
12791
|
autorIcon: /* @__PURE__ */ a(s, {}),
|
|
12805
12792
|
paths: o.paths
|
|
12806
12793
|
}
|
|
@@ -12834,7 +12821,7 @@ const Ka = {
|
|
|
12834
12821
|
data: i.slice(0, c),
|
|
12835
12822
|
paths: n.paths
|
|
12836
12823
|
});
|
|
12837
|
-
return /* @__PURE__ */ m(
|
|
12824
|
+
return /* @__PURE__ */ m(Q, { children: [
|
|
12838
12825
|
/* @__PURE__ */ a(
|
|
12839
12826
|
Pn,
|
|
12840
12827
|
{
|