sass-template-common 0.1.82 → 0.1.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sass-template-common.d.ts +18 -0
- package/dist/sass-template-common.js +723 -669
- package/dist/sass-template-common.umd.cjs +35 -23
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as a, jsxs as h, Fragment as
|
|
1
|
+
import { jsx as a, jsxs as h, Fragment as Y } from "react/jsx-runtime";
|
|
2
2
|
import * as qa from "react";
|
|
3
|
-
import xe, { useState as
|
|
3
|
+
import xe, { useState as K, useRef as Or, useCallback as he, useEffect as Me, createElement as st, forwardRef as Pr, Fragment as pn, useMemo as Mo, Component as jo } from "react";
|
|
4
4
|
let ta = {
|
|
5
5
|
PUBLIC_API_HOST: "https://dev-saas.cms-medios.com",
|
|
6
6
|
PUBLIC_API_FRONT: "https://dev-lahora.cms-medios.com",
|
|
@@ -49,7 +49,9 @@ let ta = {
|
|
|
49
49
|
/// originaly => COMMENTS_CAPTCHA_API_KEY
|
|
50
50
|
CAPTCHA_KEY_V2: "",
|
|
51
51
|
/// originaly => NEXT_PUBLIC_CAPTCHA_KEY_V2
|
|
52
|
-
SHOW_TAG_BY_SECTION: !1
|
|
52
|
+
SHOW_TAG_BY_SECTION: !1,
|
|
53
|
+
SHOW_NEWS_MORE_NEWS: !0,
|
|
54
|
+
SHOW_NEWS_RELATED_NEWS: !0
|
|
53
55
|
};
|
|
54
56
|
function g9(e = {}) {
|
|
55
57
|
ta = { ...ta, ...e };
|
|
@@ -84,7 +86,7 @@ const Qo = () => {
|
|
|
84
86
|
o[s] = s;
|
|
85
87
|
}), o;
|
|
86
88
|
}, [t]), { ANALYTICS_ga4: r } = J();
|
|
87
|
-
return r && /* @__PURE__ */ h(
|
|
89
|
+
return r && /* @__PURE__ */ h(Y, { children: [
|
|
88
90
|
/* @__PURE__ */ a("script", { defer: !0, src: "https://www.googletagmanager.com/gtag/js?" + e }),
|
|
89
91
|
/* @__PURE__ */ a(
|
|
90
92
|
"script",
|
|
@@ -107,7 +109,7 @@ const Qo = () => {
|
|
|
107
109
|
] });
|
|
108
110
|
}, Ho = () => {
|
|
109
111
|
const { ANALYTICS_gtm: e } = J();
|
|
110
|
-
return e && /* @__PURE__ */ h(
|
|
112
|
+
return e && /* @__PURE__ */ h(Y, { children: [
|
|
111
113
|
/* @__PURE__ */ a(
|
|
112
114
|
"script",
|
|
113
115
|
{
|
|
@@ -154,7 +156,7 @@ function Dr() {
|
|
|
154
156
|
(function(n, r) {
|
|
155
157
|
e.exports = r();
|
|
156
158
|
})(Fo, (function() {
|
|
157
|
-
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", i = "second", c = "minute", d = "hour", l = "day", u = "week",
|
|
159
|
+
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", i = "second", c = "minute", d = "hour", l = "day", u = "week", f = "month", m = "quarter", p = "year", g = "date", A = "Invalid Date", y = /^(\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, S = { 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(D) {
|
|
158
160
|
var U = ["th", "st", "nd", "rd"], E = D % 100;
|
|
159
161
|
return "[" + D + (U[(E - 20) % 10] || U[E] || U[0]) + "]";
|
|
160
162
|
} }, _ = function(D, U, E) {
|
|
@@ -165,21 +167,21 @@ function Dr() {
|
|
|
165
167
|
return (U <= 0 ? "+" : "-") + _(P, 2, "0") + ":" + _(I, 2, "0");
|
|
166
168
|
}, m: function D(U, E) {
|
|
167
169
|
if (U.date() < E.date()) return -D(E, U);
|
|
168
|
-
var P = 12 * (E.year() - U.year()) + (E.month() - U.month()), I = U.clone().add(P,
|
|
170
|
+
var P = 12 * (E.year() - U.year()) + (E.month() - U.month()), I = U.clone().add(P, f), H = E - I < 0, w = U.clone().add(P + (H ? -1 : 1), f);
|
|
169
171
|
return +(-(P + (E - I) / (H ? I - w : w - I)) || 0);
|
|
170
172
|
}, a: function(D) {
|
|
171
173
|
return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
|
|
172
174
|
}, p: function(D) {
|
|
173
|
-
return { M:
|
|
175
|
+
return { M: f, y: p, w: u, d: l, D: g, h: d, m: c, s: i, ms: s, Q: m }[D] || String(D || "").toLowerCase().replace(/s$/, "");
|
|
174
176
|
}, u: function(D) {
|
|
175
177
|
return D === void 0;
|
|
176
|
-
} },
|
|
177
|
-
x[
|
|
178
|
+
} }, v = "en", x = {};
|
|
179
|
+
x[v] = S;
|
|
178
180
|
var j = "$isDayjsObject", Q = function(D) {
|
|
179
181
|
return D instanceof ee || !(!D || !D[j]);
|
|
180
182
|
}, te = function D(U, E, P) {
|
|
181
183
|
var I;
|
|
182
|
-
if (!U) return
|
|
184
|
+
if (!U) return v;
|
|
183
185
|
if (typeof U == "string") {
|
|
184
186
|
var H = U.toLowerCase();
|
|
185
187
|
x[H] && (I = H), E && (x[H] = E, I = H);
|
|
@@ -189,7 +191,7 @@ function Dr() {
|
|
|
189
191
|
var N = U.name;
|
|
190
192
|
x[N] = U, I = N;
|
|
191
193
|
}
|
|
192
|
-
return !P && I && (
|
|
194
|
+
return !P && I && (v = I), I || !P && v;
|
|
193
195
|
}, G = function(D, U) {
|
|
194
196
|
if (Q(D)) return D.clone();
|
|
195
197
|
var E = typeof U == "object" ? U : {};
|
|
@@ -248,7 +250,7 @@ function Dr() {
|
|
|
248
250
|
switch (w) {
|
|
249
251
|
case p:
|
|
250
252
|
return H ? N(1, 0) : N(31, 11);
|
|
251
|
-
case
|
|
253
|
+
case f:
|
|
252
254
|
return H ? N(1, B) : N(0, B + 1);
|
|
253
255
|
case u:
|
|
254
256
|
var F = this.$locale().weekStart || 0, Z = (M < F ? M + 7 : M) - F;
|
|
@@ -268,8 +270,8 @@ function Dr() {
|
|
|
268
270
|
}, U.endOf = function(E) {
|
|
269
271
|
return this.startOf(E, !1);
|
|
270
272
|
}, U.$set = function(E, P) {
|
|
271
|
-
var I, H = O.p(E), w = "set" + (this.$u ? "UTC" : ""), N = (I = {}, I[l] = w + "Date", I[g] = w + "Date", I[
|
|
272
|
-
if (H ===
|
|
273
|
+
var I, H = O.p(E), w = "set" + (this.$u ? "UTC" : ""), N = (I = {}, I[l] = w + "Date", I[g] = w + "Date", I[f] = w + "Month", I[p] = w + "FullYear", I[d] = w + "Hours", I[c] = w + "Minutes", I[i] = w + "Seconds", I[s] = w + "Milliseconds", I)[H], q = H === l ? this.$D + (P - this.$W) : P;
|
|
274
|
+
if (H === f || H === p) {
|
|
273
275
|
var M = this.clone().set(g, 1);
|
|
274
276
|
M.$d[N](q), M.init(), this.$d = M.set(g, Math.min(this.$D, M.daysInMonth())).$d;
|
|
275
277
|
} else N && this.$d[N](q);
|
|
@@ -285,7 +287,7 @@ function Dr() {
|
|
|
285
287
|
var z = G(H);
|
|
286
288
|
return O.w(z.date(z.date() + Math.round(B * E)), H);
|
|
287
289
|
};
|
|
288
|
-
if (w ===
|
|
290
|
+
if (w === f) return this.set(f, this.$M + E);
|
|
289
291
|
if (w === p) return this.set(p, this.$y + E);
|
|
290
292
|
if (w === l) return N(1);
|
|
291
293
|
if (w === u) return N(7);
|
|
@@ -369,10 +371,10 @@ function Dr() {
|
|
|
369
371
|
case p:
|
|
370
372
|
H = z() / 12;
|
|
371
373
|
break;
|
|
372
|
-
case
|
|
374
|
+
case f:
|
|
373
375
|
H = z();
|
|
374
376
|
break;
|
|
375
|
-
case
|
|
377
|
+
case m:
|
|
376
378
|
H = z() / 3;
|
|
377
379
|
break;
|
|
378
380
|
case u:
|
|
@@ -395,7 +397,7 @@ function Dr() {
|
|
|
395
397
|
}
|
|
396
398
|
return I ? H : O.a(H);
|
|
397
399
|
}, U.daysInMonth = function() {
|
|
398
|
-
return this.endOf(
|
|
400
|
+
return this.endOf(f).$D;
|
|
399
401
|
}, U.$locale = function() {
|
|
400
402
|
return x[this.$L];
|
|
401
403
|
}, U.locale = function(E, P) {
|
|
@@ -414,7 +416,7 @@ function Dr() {
|
|
|
414
416
|
return this.$d.toUTCString();
|
|
415
417
|
}, D;
|
|
416
418
|
})(), ce = ee.prototype;
|
|
417
|
-
return G.prototype = ce, [["$ms", s], ["$s", i], ["$m", c], ["$H", d], ["$W", l], ["$M",
|
|
419
|
+
return G.prototype = ce, [["$ms", s], ["$s", i], ["$m", c], ["$H", d], ["$W", l], ["$M", f], ["$y", p], ["$D", g]].forEach((function(D) {
|
|
418
420
|
ce[D[1]] = function(U) {
|
|
419
421
|
return this.$g(U, D[0], D[1]);
|
|
420
422
|
};
|
|
@@ -422,7 +424,7 @@ function Dr() {
|
|
|
422
424
|
return D.$i || (D(U, ee, G), D.$i = !0), G;
|
|
423
425
|
}, G.locale = te, G.isDayjs = Q, G.unix = function(D) {
|
|
424
426
|
return G(1e3 * D);
|
|
425
|
-
}, G.en = x[
|
|
427
|
+
}, G.en = x[v], G.Ls = x, G.p = {}, G;
|
|
426
428
|
}));
|
|
427
429
|
})(sn)), sn.exports;
|
|
428
430
|
}
|
|
@@ -437,18 +439,18 @@ function Yo() {
|
|
|
437
439
|
return function(n, r, o) {
|
|
438
440
|
n = n || {};
|
|
439
441
|
var s = r.prototype, i = { 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" };
|
|
440
|
-
function c(l, u,
|
|
441
|
-
return s.fromToBase(l, u,
|
|
442
|
+
function c(l, u, f, m) {
|
|
443
|
+
return s.fromToBase(l, u, f, m);
|
|
442
444
|
}
|
|
443
|
-
o.en.relativeTime = i, s.fromToBase = function(l, u,
|
|
444
|
-
for (var g, A, y, C =
|
|
445
|
-
var
|
|
446
|
-
|
|
445
|
+
o.en.relativeTime = i, s.fromToBase = function(l, u, f, m, p) {
|
|
446
|
+
for (var g, A, y, C = f.$locale().relativeTime || i, S = 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" }], _ = S.length, T = 0; T < _; T += 1) {
|
|
447
|
+
var v = S[T];
|
|
448
|
+
v.d && (g = m ? o(l).diff(f, v.d, !0) : f.diff(l, v.d, !0));
|
|
447
449
|
var x = (n.rounding || Math.round)(Math.abs(g));
|
|
448
|
-
if (y = g > 0, x <=
|
|
449
|
-
x <= 1 && T > 0 && (
|
|
450
|
-
var j = C[
|
|
451
|
-
p && (x = p("" + x)), A = typeof j == "string" ? j.replace("%d", x) : j(x, u,
|
|
450
|
+
if (y = g > 0, x <= v.r || !v.r) {
|
|
451
|
+
x <= 1 && T > 0 && (v = S[T - 1]);
|
|
452
|
+
var j = C[v.l];
|
|
453
|
+
p && (x = p("" + x)), A = typeof j == "string" ? j.replace("%d", x) : j(x, u, v.l, y);
|
|
452
454
|
break;
|
|
453
455
|
}
|
|
454
456
|
}
|
|
@@ -520,13 +522,13 @@ function ts() {
|
|
|
520
522
|
this.$y = A.getUTCFullYear(), this.$M = A.getUTCMonth(), this.$D = A.getUTCDate(), this.$W = A.getUTCDay(), this.$H = A.getUTCHours(), this.$m = A.getUTCMinutes(), this.$s = A.getUTCSeconds(), this.$ms = A.getUTCMilliseconds();
|
|
521
523
|
} else u.call(this);
|
|
522
524
|
};
|
|
523
|
-
var
|
|
525
|
+
var f = d.utcOffset;
|
|
524
526
|
d.utcOffset = function(A, y) {
|
|
525
527
|
var C = this.$utils().u;
|
|
526
|
-
if (C(A)) return this.$u ? 0 : C(this.$offset) ?
|
|
527
|
-
if (typeof A == "string" && (A = (function(
|
|
528
|
-
|
|
529
|
-
var x =
|
|
528
|
+
if (C(A)) return this.$u ? 0 : C(this.$offset) ? f.call(this) : this.$offset;
|
|
529
|
+
if (typeof A == "string" && (A = (function(v) {
|
|
530
|
+
v === void 0 && (v = "");
|
|
531
|
+
var x = v.match(r);
|
|
530
532
|
if (!x) return null;
|
|
531
533
|
var j = ("" + x[0]).match(o) || ["-", 0, 0], Q = j[0], te = 60 * +j[1] + +j[2];
|
|
532
534
|
return te === 0 ? 0 : Q === "+" ? te : -te;
|
|
@@ -538,10 +540,10 @@ function ts() {
|
|
|
538
540
|
var T = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
539
541
|
return (_ = this.local().add(S + T, n)).$offset = S, _.$x.$localOffset = T, _;
|
|
540
542
|
};
|
|
541
|
-
var
|
|
543
|
+
var m = d.format;
|
|
542
544
|
d.format = function(A) {
|
|
543
545
|
var y = A || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
544
|
-
return
|
|
546
|
+
return m.call(this, y);
|
|
545
547
|
}, d.valueOf = function() {
|
|
546
548
|
var A = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
547
549
|
return this.$d.valueOf() - 6e4 * A;
|
|
@@ -576,56 +578,56 @@ function os() {
|
|
|
576
578
|
})(rs, (function() {
|
|
577
579
|
var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, r = {};
|
|
578
580
|
return function(o, s, i) {
|
|
579
|
-
var c, d = function(
|
|
581
|
+
var c, d = function(m, p, g) {
|
|
580
582
|
g === void 0 && (g = {});
|
|
581
|
-
var A = new Date(
|
|
583
|
+
var A = new Date(m), y = (function(C, S) {
|
|
582
584
|
S === void 0 && (S = {});
|
|
583
|
-
var _ = S.timeZoneName || "short", T = C + "|" + _,
|
|
584
|
-
return
|
|
585
|
+
var _ = S.timeZoneName || "short", T = C + "|" + _, v = r[T];
|
|
586
|
+
return v || (v = 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: _ }), r[T] = v), v;
|
|
585
587
|
})(p, g);
|
|
586
588
|
return y.formatToParts(A);
|
|
587
|
-
}, l = function(
|
|
588
|
-
for (var g = d(
|
|
589
|
+
}, l = function(m, p) {
|
|
590
|
+
for (var g = d(m, p), A = [], y = 0; y < g.length; y += 1) {
|
|
589
591
|
var C = g[y], S = C.type, _ = C.value, T = n[S];
|
|
590
592
|
T >= 0 && (A[T] = parseInt(_, 10));
|
|
591
593
|
}
|
|
592
|
-
var
|
|
594
|
+
var v = A[3], x = v === 24 ? 0 : v, j = A[0] + "-" + A[1] + "-" + A[2] + " " + x + ":" + A[4] + ":" + A[5] + ":000", Q = +m;
|
|
593
595
|
return (i.utc(j).valueOf() - (Q -= Q % 1e3)) / 6e4;
|
|
594
596
|
}, u = s.prototype;
|
|
595
|
-
u.tz = function(
|
|
596
|
-
|
|
597
|
-
var g, A = this.utcOffset(), y = this.toDate(), C = y.toLocaleString("en-US", { timeZone:
|
|
597
|
+
u.tz = function(m, p) {
|
|
598
|
+
m === void 0 && (m = c);
|
|
599
|
+
var g, A = this.utcOffset(), y = this.toDate(), C = y.toLocaleString("en-US", { timeZone: m }), S = Math.round((y - new Date(C)) / 1e3 / 60), _ = 15 * -Math.round(y.getTimezoneOffset() / 15) - S;
|
|
598
600
|
if (!Number(_)) g = this.utcOffset(0, p);
|
|
599
601
|
else if (g = i(C, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(_, !0), p) {
|
|
600
602
|
var T = g.utcOffset();
|
|
601
603
|
g = g.add(A - T, "minute");
|
|
602
604
|
}
|
|
603
|
-
return g.$x.$timezone =
|
|
604
|
-
}, u.offsetName = function(
|
|
605
|
-
var p = this.$x.$timezone || i.tz.guess(), g = d(this.valueOf(), p, { timeZoneName:
|
|
605
|
+
return g.$x.$timezone = m, g;
|
|
606
|
+
}, u.offsetName = function(m) {
|
|
607
|
+
var p = this.$x.$timezone || i.tz.guess(), g = d(this.valueOf(), p, { timeZoneName: m }).find((function(A) {
|
|
606
608
|
return A.type.toLowerCase() === "timezonename";
|
|
607
609
|
}));
|
|
608
610
|
return g && g.value;
|
|
609
611
|
};
|
|
610
|
-
var
|
|
611
|
-
u.startOf = function(
|
|
612
|
-
if (!this.$x || !this.$x.$timezone) return
|
|
612
|
+
var f = u.startOf;
|
|
613
|
+
u.startOf = function(m, p) {
|
|
614
|
+
if (!this.$x || !this.$x.$timezone) return f.call(this, m, p);
|
|
613
615
|
var g = i(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
614
|
-
return
|
|
615
|
-
}, i.tz = function(
|
|
616
|
+
return f.call(g, m, p).tz(this.$x.$timezone, !0);
|
|
617
|
+
}, i.tz = function(m, p, g) {
|
|
616
618
|
var A = g && p, y = g || p || c, C = l(+i(), y);
|
|
617
|
-
if (typeof
|
|
619
|
+
if (typeof m != "string") return i(m).tz(y);
|
|
618
620
|
var S = (function(x, j, Q) {
|
|
619
621
|
var te = x - 60 * j * 1e3, G = l(te, Q);
|
|
620
622
|
if (j === G) return [te, j];
|
|
621
623
|
var O = l(te -= 60 * (G - j) * 1e3, Q);
|
|
622
624
|
return G === O ? [te, G] : [x - 60 * Math.min(G, O) * 1e3, Math.max(G, O)];
|
|
623
|
-
})(i.utc(
|
|
624
|
-
return
|
|
625
|
+
})(i.utc(m, A).valueOf(), C, y), _ = S[0], T = S[1], v = i(_).utcOffset(T);
|
|
626
|
+
return v.$x.$timezone = y, v;
|
|
625
627
|
}, i.tz.guess = function() {
|
|
626
628
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
627
|
-
}, i.tz.setDefault = function(
|
|
628
|
-
c =
|
|
629
|
+
}, i.tz.setDefault = function(m) {
|
|
630
|
+
c = m;
|
|
629
631
|
};
|
|
630
632
|
};
|
|
631
633
|
}));
|
|
@@ -902,7 +904,7 @@ const An = () => {
|
|
|
902
904
|
const t = e.banners.find((s) => s.key === e.name);
|
|
903
905
|
if (!t || !t.show) return null;
|
|
904
906
|
const n = ga(t.value || "", e.replaces), r = /<script([^>]*)>([\s\S]*?)<\/script\s*>/gi, o = [...n.matchAll(r)];
|
|
905
|
-
return /* @__PURE__ */ a(
|
|
907
|
+
return /* @__PURE__ */ a(Y, { children: o.map((s, i) => {
|
|
906
908
|
const c = s[1] || "", d = s[2]?.trim() || "", l = c.match(/src=["']([^"']+)["']/i);
|
|
907
909
|
if (l) {
|
|
908
910
|
const u = l[1];
|
|
@@ -921,7 +923,7 @@ const An = () => {
|
|
|
921
923
|
const t = e.banners.find((o) => o.key === e.name);
|
|
922
924
|
if (!t || !t.show) return null;
|
|
923
925
|
const r = ga(t.value || "", e.replaces).split(/(<script[\s\S]*?<\/script\s*>)/gi);
|
|
924
|
-
return /* @__PURE__ */ a(
|
|
926
|
+
return /* @__PURE__ */ a(Y, { children: r.map((o, s) => {
|
|
925
927
|
const i = o.match(
|
|
926
928
|
/<script([^>]*)>([\s\S]*?)<\/script\s*>/i
|
|
927
929
|
);
|
|
@@ -961,7 +963,7 @@ function w9(e) {
|
|
|
961
963
|
const ws = () => {
|
|
962
964
|
const { PUBLIC_ASSETS_URL: e } = J();
|
|
963
965
|
return e && e !== "false" && /* @__PURE__ */ a("link", { rel: "preconnect", href: e, crossOrigin: "anonymous" });
|
|
964
|
-
}, { PUBLIC_ASSETS_URL: Rn } = J(), ys = Rn && Rn !== "false" ? Rn : "", Da = ({ images: e }) => /* @__PURE__ */ a(
|
|
966
|
+
}, { PUBLIC_ASSETS_URL: Rn } = J(), ys = Rn && Rn !== "false" ? Rn : "", Da = ({ images: e }) => /* @__PURE__ */ a(Y, { children: e.map(
|
|
965
967
|
(t, n) => t.href !== "" && /* @__PURE__ */ a(
|
|
966
968
|
"link",
|
|
967
969
|
{
|
|
@@ -1138,9 +1140,9 @@ const xs = async ({
|
|
|
1138
1140
|
logow: t.socialBlockLogo?.width,
|
|
1139
1141
|
logoh: t.socialBlockLogo?.height,
|
|
1140
1142
|
authorurl: n + "/autor/"
|
|
1141
|
-
}, u = e.split("/")[1],
|
|
1143
|
+
}, u = e.split("/")[1], f = u == "liveblogs" || u == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], m = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema, p = o !== "false" && s !== "false" ? "/" + o + m : m;
|
|
1142
1144
|
i = (await Promise.all(
|
|
1143
|
-
|
|
1145
|
+
f.map(async (A) => {
|
|
1144
1146
|
const y = A === "/news-breadcrumb" ? { ...l, prefixtag: p } : l;
|
|
1145
1147
|
return await pa(y, A, r);
|
|
1146
1148
|
})
|
|
@@ -1229,7 +1231,7 @@ const xs = async ({
|
|
|
1229
1231
|
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;
|
|
1230
1232
|
}
|
|
1231
1233
|
`;
|
|
1232
|
-
return /* @__PURE__ */ a(
|
|
1234
|
+
return /* @__PURE__ */ a(Y, { children: e.useS3Font ? /* @__PURE__ */ h(Y, { children: [
|
|
1233
1235
|
/* @__PURE__ */ a(
|
|
1234
1236
|
"link",
|
|
1235
1237
|
{
|
|
@@ -1663,7 +1665,7 @@ const fi = (e) => {
|
|
|
1663
1665
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
1664
1666
|
typeof setImmediate == "function",
|
|
1665
1667
|
Ce(dt.postMessage)
|
|
1666
|
-
), Ai = typeof queueMicrotask < "u" ? queueMicrotask.bind(dt) : typeof process < "u" && process.nextTick || Jr, wi = (e) => e != null && Ce(e[Sn]),
|
|
1668
|
+
), Ai = typeof queueMicrotask < "u" ? queueMicrotask.bind(dt) : typeof process < "u" && process.nextTick || Jr, wi = (e) => e != null && Ce(e[Sn]), b = {
|
|
1667
1669
|
isArray: St,
|
|
1668
1670
|
isArrayBuffer: Fr,
|
|
1669
1671
|
isBuffer: Qt,
|
|
@@ -1726,7 +1728,7 @@ const fi = (e) => {
|
|
|
1726
1728
|
function $(e, t, n, r, o) {
|
|
1727
1729
|
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), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
1728
1730
|
}
|
|
1729
|
-
|
|
1731
|
+
b.inherits($, Error, {
|
|
1730
1732
|
toJSON: function() {
|
|
1731
1733
|
return {
|
|
1732
1734
|
// Standard
|
|
@@ -1741,7 +1743,7 @@ v.inherits($, Error, {
|
|
|
1741
1743
|
columnNumber: this.columnNumber,
|
|
1742
1744
|
stack: this.stack,
|
|
1743
1745
|
// Axios
|
|
1744
|
-
config:
|
|
1746
|
+
config: b.toJSONObject(this.config),
|
|
1745
1747
|
code: this.code,
|
|
1746
1748
|
status: this.status
|
|
1747
1749
|
};
|
|
@@ -1769,7 +1771,7 @@ Object.defineProperties($, Xr);
|
|
|
1769
1771
|
Object.defineProperty(Zr, "isAxiosError", { value: !0 });
|
|
1770
1772
|
$.from = (e, t, n, r, o, s) => {
|
|
1771
1773
|
const i = Object.create(Zr);
|
|
1772
|
-
|
|
1774
|
+
b.toFlatObject(e, i, function(u) {
|
|
1773
1775
|
return u !== Error.prototype;
|
|
1774
1776
|
}, (l) => l !== "isAxiosError");
|
|
1775
1777
|
const c = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
|
|
@@ -1777,10 +1779,10 @@ $.from = (e, t, n, r, o, s) => {
|
|
|
1777
1779
|
};
|
|
1778
1780
|
const yi = null;
|
|
1779
1781
|
function aa(e) {
|
|
1780
|
-
return
|
|
1782
|
+
return b.isPlainObject(e) || b.isArray(e);
|
|
1781
1783
|
}
|
|
1782
1784
|
function eo(e) {
|
|
1783
|
-
return
|
|
1785
|
+
return b.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
1784
1786
|
}
|
|
1785
1787
|
function ja(e, t, n) {
|
|
1786
1788
|
return e ? e.concat(t).map(function(o, s) {
|
|
@@ -1788,42 +1790,42 @@ function ja(e, t, n) {
|
|
|
1788
1790
|
}).join(n ? "." : "") : t;
|
|
1789
1791
|
}
|
|
1790
1792
|
function vi(e) {
|
|
1791
|
-
return
|
|
1793
|
+
return b.isArray(e) && !e.some(aa);
|
|
1792
1794
|
}
|
|
1793
|
-
const bi =
|
|
1795
|
+
const bi = b.toFlatObject(b, {}, null, function(t) {
|
|
1794
1796
|
return /^is[A-Z]/.test(t);
|
|
1795
1797
|
});
|
|
1796
1798
|
function Tn(e, t, n) {
|
|
1797
|
-
if (!
|
|
1799
|
+
if (!b.isObject(e))
|
|
1798
1800
|
throw new TypeError("target must be an object");
|
|
1799
|
-
t = t || new FormData(), n =
|
|
1801
|
+
t = t || new FormData(), n = b.toFlatObject(n, {
|
|
1800
1802
|
metaTokens: !0,
|
|
1801
1803
|
dots: !1,
|
|
1802
1804
|
indexes: !1
|
|
1803
1805
|
}, !1, function(A, y) {
|
|
1804
|
-
return !
|
|
1806
|
+
return !b.isUndefined(y[A]);
|
|
1805
1807
|
});
|
|
1806
|
-
const r = n.metaTokens, o = n.visitor || u, s = n.dots, i = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) &&
|
|
1807
|
-
if (!
|
|
1808
|
+
const r = n.metaTokens, o = n.visitor || u, s = n.dots, i = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && b.isSpecCompliantForm(t);
|
|
1809
|
+
if (!b.isFunction(o))
|
|
1808
1810
|
throw new TypeError("visitor must be a function");
|
|
1809
1811
|
function l(g) {
|
|
1810
1812
|
if (g === null) return "";
|
|
1811
|
-
if (
|
|
1813
|
+
if (b.isDate(g))
|
|
1812
1814
|
return g.toISOString();
|
|
1813
|
-
if (
|
|
1815
|
+
if (b.isBoolean(g))
|
|
1814
1816
|
return g.toString();
|
|
1815
|
-
if (!d &&
|
|
1817
|
+
if (!d && b.isBlob(g))
|
|
1816
1818
|
throw new $("Blob is not supported. Use a Buffer instead.");
|
|
1817
|
-
return
|
|
1819
|
+
return b.isArrayBuffer(g) || b.isTypedArray(g) ? d && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
|
|
1818
1820
|
}
|
|
1819
1821
|
function u(g, A, y) {
|
|
1820
1822
|
let C = g;
|
|
1821
1823
|
if (g && !y && typeof g == "object") {
|
|
1822
|
-
if (
|
|
1824
|
+
if (b.endsWith(A, "{}"))
|
|
1823
1825
|
A = r ? A : A.slice(0, -2), g = JSON.stringify(g);
|
|
1824
|
-
else if (
|
|
1826
|
+
else if (b.isArray(g) && vi(g) || (b.isFileList(g) || b.endsWith(A, "[]")) && (C = b.toArray(g)))
|
|
1825
1827
|
return A = eo(A), C.forEach(function(_, T) {
|
|
1826
|
-
!(
|
|
1828
|
+
!(b.isUndefined(_) || _ === null) && t.append(
|
|
1827
1829
|
// eslint-disable-next-line no-nested-ternary
|
|
1828
1830
|
i === !0 ? ja([A], T, s) : i === null ? A : A + "[]",
|
|
1829
1831
|
l(_)
|
|
@@ -1832,27 +1834,27 @@ function Tn(e, t, n) {
|
|
|
1832
1834
|
}
|
|
1833
1835
|
return aa(g) ? !0 : (t.append(ja(y, A, s), l(g)), !1);
|
|
1834
1836
|
}
|
|
1835
|
-
const
|
|
1837
|
+
const f = [], m = Object.assign(bi, {
|
|
1836
1838
|
defaultVisitor: u,
|
|
1837
1839
|
convertValue: l,
|
|
1838
1840
|
isVisitable: aa
|
|
1839
1841
|
});
|
|
1840
1842
|
function p(g, A) {
|
|
1841
|
-
if (!
|
|
1842
|
-
if (
|
|
1843
|
+
if (!b.isUndefined(g)) {
|
|
1844
|
+
if (f.indexOf(g) !== -1)
|
|
1843
1845
|
throw Error("Circular reference detected in " + A.join("."));
|
|
1844
|
-
|
|
1845
|
-
(!(
|
|
1846
|
+
f.push(g), b.forEach(g, function(C, S) {
|
|
1847
|
+
(!(b.isUndefined(C) || C === null) && o.call(
|
|
1846
1848
|
t,
|
|
1847
1849
|
C,
|
|
1848
|
-
|
|
1850
|
+
b.isString(S) ? S.trim() : S,
|
|
1849
1851
|
A,
|
|
1850
|
-
|
|
1852
|
+
m
|
|
1851
1853
|
)) === !0 && p(C, A ? A.concat(S) : [S]);
|
|
1852
|
-
}),
|
|
1854
|
+
}), f.pop();
|
|
1853
1855
|
}
|
|
1854
1856
|
}
|
|
1855
|
-
if (!
|
|
1857
|
+
if (!b.isObject(e))
|
|
1856
1858
|
throw new TypeError("data must be an object");
|
|
1857
1859
|
return p(e), t;
|
|
1858
1860
|
}
|
|
@@ -1892,12 +1894,12 @@ function no(e, t, n) {
|
|
|
1892
1894
|
if (!t)
|
|
1893
1895
|
return e;
|
|
1894
1896
|
const r = n && n.encode || Ci;
|
|
1895
|
-
|
|
1897
|
+
b.isFunction(n) && (n = {
|
|
1896
1898
|
serialize: n
|
|
1897
1899
|
});
|
|
1898
1900
|
const o = n && n.serialize;
|
|
1899
1901
|
let s;
|
|
1900
|
-
if (o ? s = o(t, n) : s =
|
|
1902
|
+
if (o ? s = o(t, n) : s = b.isURLSearchParams(t) ? t.toString() : new wa(t, n).toString(r), s) {
|
|
1901
1903
|
const i = e.indexOf("#");
|
|
1902
1904
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
|
|
1903
1905
|
}
|
|
@@ -1952,7 +1954,7 @@ class Ga {
|
|
|
1952
1954
|
* @returns {void}
|
|
1953
1955
|
*/
|
|
1954
1956
|
forEach(t) {
|
|
1955
|
-
|
|
1957
|
+
b.forEach(this.handlers, function(r) {
|
|
1956
1958
|
r !== null && t(r);
|
|
1957
1959
|
});
|
|
1958
1960
|
}
|
|
@@ -1984,13 +1986,13 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ii
|
|
|
1984
1986
|
function Ui(e, t) {
|
|
1985
1987
|
return Tn(e, new fe.classes.URLSearchParams(), {
|
|
1986
1988
|
visitor: function(n, r, o, s) {
|
|
1987
|
-
return fe.isNode &&
|
|
1989
|
+
return fe.isNode && b.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
1988
1990
|
},
|
|
1989
1991
|
...t
|
|
1990
1992
|
});
|
|
1991
1993
|
}
|
|
1992
1994
|
function qi(e) {
|
|
1993
|
-
return
|
|
1995
|
+
return b.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
1994
1996
|
}
|
|
1995
1997
|
function Ri(e) {
|
|
1996
1998
|
const t = {}, n = Object.keys(e);
|
|
@@ -2006,20 +2008,20 @@ function ro(e) {
|
|
|
2006
2008
|
let i = n[s++];
|
|
2007
2009
|
if (i === "__proto__") return !0;
|
|
2008
2010
|
const c = Number.isFinite(+i), d = s >= n.length;
|
|
2009
|
-
return i = !i &&
|
|
2011
|
+
return i = !i && b.isArray(o) ? o.length : i, d ? (b.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !c) : ((!o[i] || !b.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && b.isArray(o[i]) && (o[i] = Ri(o[i])), !c);
|
|
2010
2012
|
}
|
|
2011
|
-
if (
|
|
2013
|
+
if (b.isFormData(e) && b.isFunction(e.entries)) {
|
|
2012
2014
|
const n = {};
|
|
2013
|
-
return
|
|
2015
|
+
return b.forEachEntry(e, (r, o) => {
|
|
2014
2016
|
t(qi(r), o, n, 0);
|
|
2015
2017
|
}), n;
|
|
2016
2018
|
}
|
|
2017
2019
|
return null;
|
|
2018
2020
|
}
|
|
2019
2021
|
function Li(e, t, n) {
|
|
2020
|
-
if (
|
|
2022
|
+
if (b.isString(e))
|
|
2021
2023
|
try {
|
|
2022
|
-
return (t || JSON.parse)(e),
|
|
2024
|
+
return (t || JSON.parse)(e), b.trim(e);
|
|
2023
2025
|
} catch (r) {
|
|
2024
2026
|
if (r.name !== "SyntaxError")
|
|
2025
2027
|
throw r;
|
|
@@ -2030,20 +2032,20 @@ const Ht = {
|
|
|
2030
2032
|
transitional: ao,
|
|
2031
2033
|
adapter: ["xhr", "http", "fetch"],
|
|
2032
2034
|
transformRequest: [function(t, n) {
|
|
2033
|
-
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s =
|
|
2034
|
-
if (s &&
|
|
2035
|
+
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = b.isObject(t);
|
|
2036
|
+
if (s && b.isHTMLForm(t) && (t = new FormData(t)), b.isFormData(t))
|
|
2035
2037
|
return o ? JSON.stringify(ro(t)) : t;
|
|
2036
|
-
if (
|
|
2038
|
+
if (b.isArrayBuffer(t) || b.isBuffer(t) || b.isStream(t) || b.isFile(t) || b.isBlob(t) || b.isReadableStream(t))
|
|
2037
2039
|
return t;
|
|
2038
|
-
if (
|
|
2040
|
+
if (b.isArrayBufferView(t))
|
|
2039
2041
|
return t.buffer;
|
|
2040
|
-
if (
|
|
2042
|
+
if (b.isURLSearchParams(t))
|
|
2041
2043
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
2042
2044
|
let c;
|
|
2043
2045
|
if (s) {
|
|
2044
2046
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
2045
2047
|
return Ui(t, this.formSerializer).toString();
|
|
2046
|
-
if ((c =
|
|
2048
|
+
if ((c = b.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
2047
2049
|
const d = this.env && this.env.FormData;
|
|
2048
2050
|
return Tn(
|
|
2049
2051
|
c ? { "files[]": t } : t,
|
|
@@ -2056,9 +2058,9 @@ const Ht = {
|
|
|
2056
2058
|
}],
|
|
2057
2059
|
transformResponse: [function(t) {
|
|
2058
2060
|
const n = this.transitional || Ht.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
2059
|
-
if (
|
|
2061
|
+
if (b.isResponse(t) || b.isReadableStream(t))
|
|
2060
2062
|
return t;
|
|
2061
|
-
if (t &&
|
|
2063
|
+
if (t && b.isString(t) && (r && !this.responseType || o)) {
|
|
2062
2064
|
const i = !(n && n.silentJSONParsing) && o;
|
|
2063
2065
|
try {
|
|
2064
2066
|
return JSON.parse(t, this.parseReviver);
|
|
@@ -2092,10 +2094,10 @@ const Ht = {
|
|
|
2092
2094
|
}
|
|
2093
2095
|
}
|
|
2094
2096
|
};
|
|
2095
|
-
|
|
2097
|
+
b.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
2096
2098
|
Ht.headers[e] = {};
|
|
2097
2099
|
});
|
|
2098
|
-
const Bi =
|
|
2100
|
+
const Bi = b.toObjectSet([
|
|
2099
2101
|
"age",
|
|
2100
2102
|
"authorization",
|
|
2101
2103
|
"content-length",
|
|
@@ -2125,7 +2127,7 @@ function kt(e) {
|
|
|
2125
2127
|
return e && String(e).trim().toLowerCase();
|
|
2126
2128
|
}
|
|
2127
2129
|
function mn(e) {
|
|
2128
|
-
return e === !1 || e == null ? e :
|
|
2130
|
+
return e === !1 || e == null ? e : b.isArray(e) ? e.map(mn) : String(e);
|
|
2129
2131
|
}
|
|
2130
2132
|
function Pi(e) {
|
|
2131
2133
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -2136,12 +2138,12 @@ function Pi(e) {
|
|
|
2136
2138
|
}
|
|
2137
2139
|
const Di = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
2138
2140
|
function Ln(e, t, n, r, o) {
|
|
2139
|
-
if (
|
|
2141
|
+
if (b.isFunction(r))
|
|
2140
2142
|
return r.call(this, t, n);
|
|
2141
|
-
if (o && (t = n), !!
|
|
2142
|
-
if (
|
|
2143
|
+
if (o && (t = n), !!b.isString(t)) {
|
|
2144
|
+
if (b.isString(r))
|
|
2143
2145
|
return t.indexOf(r) !== -1;
|
|
2144
|
-
if (
|
|
2146
|
+
if (b.isRegExp(r))
|
|
2145
2147
|
return r.test(t);
|
|
2146
2148
|
}
|
|
2147
2149
|
}
|
|
@@ -2149,7 +2151,7 @@ function Mi(e) {
|
|
|
2149
2151
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
2150
2152
|
}
|
|
2151
2153
|
function ji(e, t) {
|
|
2152
|
-
const n =
|
|
2154
|
+
const n = b.toCamelCase(" " + t);
|
|
2153
2155
|
["get", "set", "has"].forEach((r) => {
|
|
2154
2156
|
Object.defineProperty(e, r + n, {
|
|
2155
2157
|
value: function(o, s, i) {
|
|
@@ -2169,20 +2171,20 @@ let _e = class {
|
|
|
2169
2171
|
const u = kt(d);
|
|
2170
2172
|
if (!u)
|
|
2171
2173
|
throw new Error("header name must be a non-empty string");
|
|
2172
|
-
const
|
|
2173
|
-
(!
|
|
2174
|
+
const f = b.findKey(o, u);
|
|
2175
|
+
(!f || o[f] === void 0 || l === !0 || l === void 0 && o[f] !== !1) && (o[f || d] = mn(c));
|
|
2174
2176
|
}
|
|
2175
|
-
const i = (c, d) =>
|
|
2176
|
-
if (
|
|
2177
|
+
const i = (c, d) => b.forEach(c, (l, u) => s(l, u, d));
|
|
2178
|
+
if (b.isPlainObject(t) || t instanceof this.constructor)
|
|
2177
2179
|
i(t, n);
|
|
2178
|
-
else if (
|
|
2180
|
+
else if (b.isString(t) && (t = t.trim()) && !Di(t))
|
|
2179
2181
|
i(Oi(t), n);
|
|
2180
|
-
else if (
|
|
2182
|
+
else if (b.isObject(t) && b.isIterable(t)) {
|
|
2181
2183
|
let c = {}, d, l;
|
|
2182
2184
|
for (const u of t) {
|
|
2183
|
-
if (!
|
|
2185
|
+
if (!b.isArray(u))
|
|
2184
2186
|
throw TypeError("Object iterator must return a key-value pair");
|
|
2185
|
-
c[l = u[0]] = (d = c[l]) ?
|
|
2187
|
+
c[l = u[0]] = (d = c[l]) ? b.isArray(d) ? [...d, u[1]] : [d, u[1]] : u[1];
|
|
2186
2188
|
}
|
|
2187
2189
|
i(c, n);
|
|
2188
2190
|
} else
|
|
@@ -2191,16 +2193,16 @@ let _e = class {
|
|
|
2191
2193
|
}
|
|
2192
2194
|
get(t, n) {
|
|
2193
2195
|
if (t = kt(t), t) {
|
|
2194
|
-
const r =
|
|
2196
|
+
const r = b.findKey(this, t);
|
|
2195
2197
|
if (r) {
|
|
2196
2198
|
const o = this[r];
|
|
2197
2199
|
if (!n)
|
|
2198
2200
|
return o;
|
|
2199
2201
|
if (n === !0)
|
|
2200
2202
|
return Pi(o);
|
|
2201
|
-
if (
|
|
2203
|
+
if (b.isFunction(n))
|
|
2202
2204
|
return n.call(this, o, r);
|
|
2203
|
-
if (
|
|
2205
|
+
if (b.isRegExp(n))
|
|
2204
2206
|
return n.exec(o);
|
|
2205
2207
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
2206
2208
|
}
|
|
@@ -2208,7 +2210,7 @@ let _e = class {
|
|
|
2208
2210
|
}
|
|
2209
2211
|
has(t, n) {
|
|
2210
2212
|
if (t = kt(t), t) {
|
|
2211
|
-
const r =
|
|
2213
|
+
const r = b.findKey(this, t);
|
|
2212
2214
|
return !!(r && this[r] !== void 0 && (!n || Ln(this, this[r], r, n)));
|
|
2213
2215
|
}
|
|
2214
2216
|
return !1;
|
|
@@ -2218,11 +2220,11 @@ let _e = class {
|
|
|
2218
2220
|
let o = !1;
|
|
2219
2221
|
function s(i) {
|
|
2220
2222
|
if (i = kt(i), i) {
|
|
2221
|
-
const c =
|
|
2223
|
+
const c = b.findKey(r, i);
|
|
2222
2224
|
c && (!n || Ln(r, r[c], c, n)) && (delete r[c], o = !0);
|
|
2223
2225
|
}
|
|
2224
2226
|
}
|
|
2225
|
-
return
|
|
2227
|
+
return b.isArray(t) ? t.forEach(s) : s(t), o;
|
|
2226
2228
|
}
|
|
2227
2229
|
clear(t) {
|
|
2228
2230
|
const n = Object.keys(this);
|
|
@@ -2235,8 +2237,8 @@ let _e = class {
|
|
|
2235
2237
|
}
|
|
2236
2238
|
normalize(t) {
|
|
2237
2239
|
const n = this, r = {};
|
|
2238
|
-
return
|
|
2239
|
-
const i =
|
|
2240
|
+
return b.forEach(this, (o, s) => {
|
|
2241
|
+
const i = b.findKey(r, s);
|
|
2240
2242
|
if (i) {
|
|
2241
2243
|
n[i] = mn(o), delete n[s];
|
|
2242
2244
|
return;
|
|
@@ -2250,8 +2252,8 @@ let _e = class {
|
|
|
2250
2252
|
}
|
|
2251
2253
|
toJSON(t) {
|
|
2252
2254
|
const n = /* @__PURE__ */ Object.create(null);
|
|
2253
|
-
return
|
|
2254
|
-
r != null && r !== !1 && (n[o] = t &&
|
|
2255
|
+
return b.forEach(this, (r, o) => {
|
|
2256
|
+
r != null && r !== !1 && (n[o] = t && b.isArray(r) ? r.join(", ") : r);
|
|
2255
2257
|
}), n;
|
|
2256
2258
|
}
|
|
2257
2259
|
[Symbol.iterator]() {
|
|
@@ -2282,11 +2284,11 @@ let _e = class {
|
|
|
2282
2284
|
const c = kt(i);
|
|
2283
2285
|
r[c] || (ji(o, i), r[c] = !0);
|
|
2284
2286
|
}
|
|
2285
|
-
return
|
|
2287
|
+
return b.isArray(t) ? t.forEach(s) : s(t), this;
|
|
2286
2288
|
}
|
|
2287
2289
|
};
|
|
2288
2290
|
_e.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
2289
|
-
|
|
2291
|
+
b.reduceDescriptors(_e.prototype, ({ value: e }, t) => {
|
|
2290
2292
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
2291
2293
|
return {
|
|
2292
2294
|
get: () => e,
|
|
@@ -2295,11 +2297,11 @@ v.reduceDescriptors(_e.prototype, ({ value: e }, t) => {
|
|
|
2295
2297
|
}
|
|
2296
2298
|
};
|
|
2297
2299
|
});
|
|
2298
|
-
|
|
2300
|
+
b.freezeMethods(_e);
|
|
2299
2301
|
function Bn(e, t) {
|
|
2300
2302
|
const n = this || Ht, r = t || n, o = _e.from(r.headers);
|
|
2301
2303
|
let s = r.data;
|
|
2302
|
-
return
|
|
2304
|
+
return b.forEach(e, function(c) {
|
|
2303
2305
|
s = c.call(n, s, o.normalize(), t ? t.status : void 0);
|
|
2304
2306
|
}), o.normalize(), s;
|
|
2305
2307
|
}
|
|
@@ -2309,7 +2311,7 @@ function oo(e) {
|
|
|
2309
2311
|
function Et(e, t, n) {
|
|
2310
2312
|
$.call(this, e ?? "canceled", $.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
2311
2313
|
}
|
|
2312
|
-
|
|
2314
|
+
b.inherits(Et, $, {
|
|
2313
2315
|
__CANCEL__: !0
|
|
2314
2316
|
});
|
|
2315
2317
|
function so(e, t, n) {
|
|
@@ -2333,13 +2335,13 @@ function Gi(e, t) {
|
|
|
2333
2335
|
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
2334
2336
|
const l = Date.now(), u = r[s];
|
|
2335
2337
|
i || (i = l), n[o] = d, r[o] = l;
|
|
2336
|
-
let
|
|
2337
|
-
for (;
|
|
2338
|
-
|
|
2338
|
+
let f = s, m = 0;
|
|
2339
|
+
for (; f !== o; )
|
|
2340
|
+
m += n[f++], f = f % e;
|
|
2339
2341
|
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), l - i < t)
|
|
2340
2342
|
return;
|
|
2341
2343
|
const p = u && l - u;
|
|
2342
|
-
return p ? Math.round(
|
|
2344
|
+
return p ? Math.round(m * 1e3 / p) : void 0;
|
|
2343
2345
|
};
|
|
2344
2346
|
}
|
|
2345
2347
|
function zi(e, t) {
|
|
@@ -2348,10 +2350,10 @@ function zi(e, t) {
|
|
|
2348
2350
|
n = u, o = null, s && (clearTimeout(s), s = null), e(...l);
|
|
2349
2351
|
};
|
|
2350
2352
|
return [(...l) => {
|
|
2351
|
-
const u = Date.now(),
|
|
2352
|
-
|
|
2353
|
+
const u = Date.now(), f = u - n;
|
|
2354
|
+
f >= r ? i(l, u) : (o = l, s || (s = setTimeout(() => {
|
|
2353
2355
|
s = null, i(o);
|
|
2354
|
-
}, r -
|
|
2356
|
+
}, r - f)));
|
|
2355
2357
|
}, () => o && i(o)];
|
|
2356
2358
|
}
|
|
2357
2359
|
const wn = (e, t, n = 3) => {
|
|
@@ -2360,7 +2362,7 @@ const wn = (e, t, n = 3) => {
|
|
|
2360
2362
|
return zi((s) => {
|
|
2361
2363
|
const i = s.loaded, c = s.lengthComputable ? s.total : void 0, d = i - r, l = o(d), u = i <= c;
|
|
2362
2364
|
r = i;
|
|
2363
|
-
const
|
|
2365
|
+
const f = {
|
|
2364
2366
|
loaded: i,
|
|
2365
2367
|
total: c,
|
|
2366
2368
|
progress: c ? i / c : void 0,
|
|
@@ -2371,7 +2373,7 @@ const wn = (e, t, n = 3) => {
|
|
|
2371
2373
|
lengthComputable: c != null,
|
|
2372
2374
|
[t ? "download" : "upload"]: !0
|
|
2373
2375
|
};
|
|
2374
|
-
e(
|
|
2376
|
+
e(f);
|
|
2375
2377
|
}, n);
|
|
2376
2378
|
}, Ha = (e, t) => {
|
|
2377
2379
|
const n = e != null;
|
|
@@ -2380,7 +2382,7 @@ const wn = (e, t, n = 3) => {
|
|
|
2380
2382
|
total: e,
|
|
2381
2383
|
loaded: r
|
|
2382
2384
|
}), t[1]];
|
|
2383
|
-
}, Va = (e) => (...t) =>
|
|
2385
|
+
}, Va = (e) => (...t) => b.asap(() => e(...t)), Hi = fe.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, fe.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
2384
2386
|
new URL(fe.origin),
|
|
2385
2387
|
fe.navigator && /(msie|trident)/i.test(fe.navigator.userAgent)
|
|
2386
2388
|
) : () => !0, Vi = fe.hasStandardBrowserEnv ? (
|
|
@@ -2389,7 +2391,7 @@ const wn = (e, t, n = 3) => {
|
|
|
2389
2391
|
write(e, t, n, r, o, s, i) {
|
|
2390
2392
|
if (typeof document > "u") return;
|
|
2391
2393
|
const c = [`${e}=${encodeURIComponent(t)}`];
|
|
2392
|
-
|
|
2394
|
+
b.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), b.isString(r) && c.push(`path=${r}`), b.isString(o) && c.push(`domain=${o}`), s === !0 && c.push("secure"), b.isString(i) && c.push(`SameSite=${i}`), document.cookie = c.join("; ");
|
|
2393
2395
|
},
|
|
2394
2396
|
read(e) {
|
|
2395
2397
|
if (typeof document > "u") return null;
|
|
@@ -2426,29 +2428,29 @@ const Fa = (e) => e instanceof _e ? { ...e } : e;
|
|
|
2426
2428
|
function mt(e, t) {
|
|
2427
2429
|
t = t || {};
|
|
2428
2430
|
const n = {};
|
|
2429
|
-
function r(l, u,
|
|
2430
|
-
return
|
|
2431
|
+
function r(l, u, f, m) {
|
|
2432
|
+
return b.isPlainObject(l) && b.isPlainObject(u) ? b.merge.call({ caseless: m }, l, u) : b.isPlainObject(u) ? b.merge({}, u) : b.isArray(u) ? u.slice() : u;
|
|
2431
2433
|
}
|
|
2432
|
-
function o(l, u,
|
|
2433
|
-
if (
|
|
2434
|
-
if (!
|
|
2435
|
-
return r(void 0, l,
|
|
2436
|
-
} else return r(l, u,
|
|
2434
|
+
function o(l, u, f, m) {
|
|
2435
|
+
if (b.isUndefined(u)) {
|
|
2436
|
+
if (!b.isUndefined(l))
|
|
2437
|
+
return r(void 0, l, f, m);
|
|
2438
|
+
} else return r(l, u, f, m);
|
|
2437
2439
|
}
|
|
2438
2440
|
function s(l, u) {
|
|
2439
|
-
if (!
|
|
2441
|
+
if (!b.isUndefined(u))
|
|
2440
2442
|
return r(void 0, u);
|
|
2441
2443
|
}
|
|
2442
2444
|
function i(l, u) {
|
|
2443
|
-
if (
|
|
2444
|
-
if (!
|
|
2445
|
+
if (b.isUndefined(u)) {
|
|
2446
|
+
if (!b.isUndefined(l))
|
|
2445
2447
|
return r(void 0, l);
|
|
2446
2448
|
} else return r(void 0, u);
|
|
2447
2449
|
}
|
|
2448
|
-
function c(l, u,
|
|
2449
|
-
if (
|
|
2450
|
+
function c(l, u, f) {
|
|
2451
|
+
if (f in t)
|
|
2450
2452
|
return r(l, u);
|
|
2451
|
-
if (
|
|
2453
|
+
if (f in e)
|
|
2452
2454
|
return r(void 0, l);
|
|
2453
2455
|
}
|
|
2454
2456
|
const d = {
|
|
@@ -2480,11 +2482,11 @@ function mt(e, t) {
|
|
|
2480
2482
|
socketPath: i,
|
|
2481
2483
|
responseEncoding: i,
|
|
2482
2484
|
validateStatus: c,
|
|
2483
|
-
headers: (l, u,
|
|
2485
|
+
headers: (l, u, f) => o(Fa(l), Fa(u), f, !0)
|
|
2484
2486
|
};
|
|
2485
|
-
return
|
|
2486
|
-
const
|
|
2487
|
-
|
|
2487
|
+
return b.forEach(Object.keys({ ...e, ...t }), function(u) {
|
|
2488
|
+
const f = d[u] || o, m = f(e[u], t[u], u);
|
|
2489
|
+
b.isUndefined(m) && f !== c || (n[u] = m);
|
|
2488
2490
|
}), n;
|
|
2489
2491
|
}
|
|
2490
2492
|
const co = (e) => {
|
|
@@ -2493,17 +2495,17 @@ const co = (e) => {
|
|
|
2493
2495
|
if (t.headers = i = _e.from(i), t.url = no(io(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
2494
2496
|
"Authorization",
|
|
2495
2497
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
2496
|
-
),
|
|
2498
|
+
), b.isFormData(n)) {
|
|
2497
2499
|
if (fe.hasStandardBrowserEnv || fe.hasStandardBrowserWebWorkerEnv)
|
|
2498
2500
|
i.setContentType(void 0);
|
|
2499
|
-
else if (
|
|
2501
|
+
else if (b.isFunction(n.getHeaders)) {
|
|
2500
2502
|
const d = n.getHeaders(), l = ["content-type", "content-length"];
|
|
2501
|
-
Object.entries(d).forEach(([u,
|
|
2502
|
-
l.includes(u.toLowerCase()) && i.set(u,
|
|
2503
|
+
Object.entries(d).forEach(([u, f]) => {
|
|
2504
|
+
l.includes(u.toLowerCase()) && i.set(u, f);
|
|
2503
2505
|
});
|
|
2504
2506
|
}
|
|
2505
2507
|
}
|
|
2506
|
-
if (fe.hasStandardBrowserEnv && (r &&
|
|
2508
|
+
if (fe.hasStandardBrowserEnv && (r && b.isFunction(r) && (r = r(t)), r || r !== !1 && Hi(t.url))) {
|
|
2507
2509
|
const d = o && s && Vi.read(s);
|
|
2508
2510
|
d && i.set(o, d);
|
|
2509
2511
|
}
|
|
@@ -2513,7 +2515,7 @@ const co = (e) => {
|
|
|
2513
2515
|
const o = co(e);
|
|
2514
2516
|
let s = o.data;
|
|
2515
2517
|
const i = _e.from(o.headers).normalize();
|
|
2516
|
-
let { responseType: c, onUploadProgress: d, onDownloadProgress: l } = o, u,
|
|
2518
|
+
let { responseType: c, onUploadProgress: d, onDownloadProgress: l } = o, u, f, m, p, g;
|
|
2517
2519
|
function A() {
|
|
2518
2520
|
p && p(), g && g(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
|
|
2519
2521
|
}
|
|
@@ -2524,7 +2526,7 @@ const co = (e) => {
|
|
|
2524
2526
|
return;
|
|
2525
2527
|
const _ = _e.from(
|
|
2526
2528
|
"getAllResponseHeaders" in y && y.getAllResponseHeaders()
|
|
2527
|
-
),
|
|
2529
|
+
), v = {
|
|
2528
2530
|
data: !c || c === "text" || c === "json" ? y.responseText : y.response,
|
|
2529
2531
|
status: y.status,
|
|
2530
2532
|
statusText: y.statusText,
|
|
@@ -2536,27 +2538,27 @@ const co = (e) => {
|
|
|
2536
2538
|
n(j), A();
|
|
2537
2539
|
}, function(j) {
|
|
2538
2540
|
r(j), A();
|
|
2539
|
-
},
|
|
2541
|
+
}, v), y = null;
|
|
2540
2542
|
}
|
|
2541
2543
|
"onloadend" in y ? y.onloadend = C : y.onreadystatechange = function() {
|
|
2542
2544
|
!y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(C);
|
|
2543
2545
|
}, y.onabort = function() {
|
|
2544
2546
|
y && (r(new $("Request aborted", $.ECONNABORTED, e, y)), y = null);
|
|
2545
2547
|
}, y.onerror = function(T) {
|
|
2546
|
-
const
|
|
2548
|
+
const v = T && T.message ? T.message : "Network Error", x = new $(v, $.ERR_NETWORK, e, y);
|
|
2547
2549
|
x.event = T || null, r(x), y = null;
|
|
2548
2550
|
}, y.ontimeout = function() {
|
|
2549
2551
|
let T = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
2550
|
-
const
|
|
2552
|
+
const v = o.transitional || ao;
|
|
2551
2553
|
o.timeoutErrorMessage && (T = o.timeoutErrorMessage), r(new $(
|
|
2552
2554
|
T,
|
|
2553
|
-
|
|
2555
|
+
v.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
|
|
2554
2556
|
e,
|
|
2555
2557
|
y
|
|
2556
2558
|
)), y = null;
|
|
2557
|
-
}, s === void 0 && i.setContentType(null), "setRequestHeader" in y &&
|
|
2558
|
-
y.setRequestHeader(
|
|
2559
|
-
}),
|
|
2559
|
+
}, s === void 0 && i.setContentType(null), "setRequestHeader" in y && b.forEach(i.toJSON(), function(T, v) {
|
|
2560
|
+
y.setRequestHeader(v, T);
|
|
2561
|
+
}), b.isUndefined(o.withCredentials) || (y.withCredentials = !!o.withCredentials), c && c !== "json" && (y.responseType = o.responseType), l && ([m, g] = wn(l, !0), y.addEventListener("progress", m)), d && y.upload && ([f, p] = wn(d), y.upload.addEventListener("progress", f), y.upload.addEventListener("loadend", p)), (o.cancelToken || o.signal) && (u = (_) => {
|
|
2560
2562
|
y && (r(!_ || _.type ? new Et(null, e, y) : _), y.abort(), y = null);
|
|
2561
2563
|
}, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
|
|
2562
2564
|
const S = Qi(o.url);
|
|
@@ -2587,7 +2589,7 @@ const co = (e) => {
|
|
|
2587
2589
|
};
|
|
2588
2590
|
e.forEach((l) => l.addEventListener("abort", s));
|
|
2589
2591
|
const { signal: d } = r;
|
|
2590
|
-
return d.unsubscribe = () =>
|
|
2592
|
+
return d.unsubscribe = () => b.asap(c), d;
|
|
2591
2593
|
}
|
|
2592
2594
|
}, Ji = function* (e, t) {
|
|
2593
2595
|
let n = e.byteLength;
|
|
@@ -2630,10 +2632,10 @@ const co = (e) => {
|
|
|
2630
2632
|
c(), d.close();
|
|
2631
2633
|
return;
|
|
2632
2634
|
}
|
|
2633
|
-
let
|
|
2635
|
+
let f = u.byteLength;
|
|
2634
2636
|
if (n) {
|
|
2635
|
-
let
|
|
2636
|
-
n(
|
|
2637
|
+
let m = s += f;
|
|
2638
|
+
n(m);
|
|
2637
2639
|
}
|
|
2638
2640
|
d.enqueue(new Uint8Array(u));
|
|
2639
2641
|
} catch (l) {
|
|
@@ -2646,20 +2648,20 @@ const co = (e) => {
|
|
|
2646
2648
|
}, {
|
|
2647
2649
|
highWaterMark: 2
|
|
2648
2650
|
});
|
|
2649
|
-
}, $a = 64 * 1024, { isFunction: Kt } =
|
|
2651
|
+
}, $a = 64 * 1024, { isFunction: Kt } = b, ec = (({ Request: e, Response: t }) => ({
|
|
2650
2652
|
Request: e,
|
|
2651
2653
|
Response: t
|
|
2652
|
-
}))(
|
|
2654
|
+
}))(b.global), {
|
|
2653
2655
|
ReadableStream: Ya,
|
|
2654
2656
|
TextEncoder: Ka
|
|
2655
|
-
} =
|
|
2657
|
+
} = b.global, Ja = (e, ...t) => {
|
|
2656
2658
|
try {
|
|
2657
2659
|
return !!e(...t);
|
|
2658
2660
|
} catch {
|
|
2659
2661
|
return !1;
|
|
2660
2662
|
}
|
|
2661
2663
|
}, tc = (e) => {
|
|
2662
|
-
e =
|
|
2664
|
+
e = b.merge.call({
|
|
2663
2665
|
skipUndefined: !0
|
|
2664
2666
|
}, ec, e);
|
|
2665
2667
|
const { fetch: t, Request: n, Response: r } = e, o = t ? Kt(t) : typeof fetch == "function", s = Kt(n), i = Kt(r);
|
|
@@ -2675,34 +2677,34 @@ const co = (e) => {
|
|
|
2675
2677
|
}
|
|
2676
2678
|
}).headers.has("Content-Type");
|
|
2677
2679
|
return g && !A;
|
|
2678
|
-
}), u = i && c && Ja(() =>
|
|
2680
|
+
}), u = i && c && Ja(() => b.isReadableStream(new r("").body)), f = {
|
|
2679
2681
|
stream: u && ((g) => g.body)
|
|
2680
2682
|
};
|
|
2681
2683
|
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((g) => {
|
|
2682
|
-
!
|
|
2684
|
+
!f[g] && (f[g] = (A, y) => {
|
|
2683
2685
|
let C = A && A[g];
|
|
2684
2686
|
if (C)
|
|
2685
2687
|
return C.call(A);
|
|
2686
2688
|
throw new $(`Response type '${g}' is not supported`, $.ERR_NOT_SUPPORT, y);
|
|
2687
2689
|
});
|
|
2688
2690
|
});
|
|
2689
|
-
const
|
|
2691
|
+
const m = async (g) => {
|
|
2690
2692
|
if (g == null)
|
|
2691
2693
|
return 0;
|
|
2692
|
-
if (
|
|
2694
|
+
if (b.isBlob(g))
|
|
2693
2695
|
return g.size;
|
|
2694
|
-
if (
|
|
2696
|
+
if (b.isSpecCompliantForm(g))
|
|
2695
2697
|
return (await new n(fe.origin, {
|
|
2696
2698
|
method: "POST",
|
|
2697
2699
|
body: g
|
|
2698
2700
|
}).arrayBuffer()).byteLength;
|
|
2699
|
-
if (
|
|
2701
|
+
if (b.isArrayBufferView(g) || b.isArrayBuffer(g))
|
|
2700
2702
|
return g.byteLength;
|
|
2701
|
-
if (
|
|
2703
|
+
if (b.isURLSearchParams(g) && (g = g + ""), b.isString(g))
|
|
2702
2704
|
return (await d(g)).byteLength;
|
|
2703
2705
|
}, p = async (g, A) => {
|
|
2704
|
-
const y =
|
|
2705
|
-
return y ??
|
|
2706
|
+
const y = b.toFiniteNumber(g.getContentLength());
|
|
2707
|
+
return y ?? m(A);
|
|
2706
2708
|
};
|
|
2707
2709
|
return async (g) => {
|
|
2708
2710
|
let {
|
|
@@ -2712,7 +2714,7 @@ const co = (e) => {
|
|
|
2712
2714
|
signal: S,
|
|
2713
2715
|
cancelToken: _,
|
|
2714
2716
|
timeout: T,
|
|
2715
|
-
onDownloadProgress:
|
|
2717
|
+
onDownloadProgress: v,
|
|
2716
2718
|
onUploadProgress: x,
|
|
2717
2719
|
responseType: j,
|
|
2718
2720
|
headers: Q,
|
|
@@ -2732,7 +2734,7 @@ const co = (e) => {
|
|
|
2732
2734
|
body: C,
|
|
2733
2735
|
duplex: "half"
|
|
2734
2736
|
}), q;
|
|
2735
|
-
if (
|
|
2737
|
+
if (b.isFormData(C) && (q = N.headers.get("content-type")) && Q.setContentType(q), N.body) {
|
|
2736
2738
|
const [M, B] = Ha(
|
|
2737
2739
|
U,
|
|
2738
2740
|
wn(Va(x))
|
|
@@ -2740,7 +2742,7 @@ const co = (e) => {
|
|
|
2740
2742
|
C = Wa(N.body, $a, M, B);
|
|
2741
2743
|
}
|
|
2742
2744
|
}
|
|
2743
|
-
|
|
2745
|
+
b.isString(te) || (te = te ? "include" : "omit");
|
|
2744
2746
|
const E = s && "credentials" in n.prototype, P = {
|
|
2745
2747
|
...G,
|
|
2746
2748
|
signal: ee,
|
|
@@ -2753,14 +2755,14 @@ const co = (e) => {
|
|
|
2753
2755
|
ce = s && new n(A, P);
|
|
2754
2756
|
let I = await (s ? O(ce, G) : O(A, P));
|
|
2755
2757
|
const H = u && (j === "stream" || j === "response");
|
|
2756
|
-
if (u && (
|
|
2758
|
+
if (u && (v || H && D)) {
|
|
2757
2759
|
const N = {};
|
|
2758
2760
|
["status", "statusText", "headers"].forEach((z) => {
|
|
2759
2761
|
N[z] = I[z];
|
|
2760
2762
|
});
|
|
2761
|
-
const q =
|
|
2763
|
+
const q = b.toFiniteNumber(I.headers.get("content-length")), [M, B] = v && Ha(
|
|
2762
2764
|
q,
|
|
2763
|
-
wn(Va(
|
|
2765
|
+
wn(Va(v), !0)
|
|
2764
2766
|
) || [];
|
|
2765
2767
|
I = new r(
|
|
2766
2768
|
Wa(I.body, $a, M, () => {
|
|
@@ -2770,7 +2772,7 @@ const co = (e) => {
|
|
|
2770
2772
|
);
|
|
2771
2773
|
}
|
|
2772
2774
|
j = j || "text";
|
|
2773
|
-
let w = await
|
|
2775
|
+
let w = await f[b.findKey(f, j) || "text"](I, g);
|
|
2774
2776
|
return !H && D && D(), await new Promise((N, q) => {
|
|
2775
2777
|
so(N, q, {
|
|
2776
2778
|
data: w,
|
|
@@ -2810,7 +2812,7 @@ const va = {
|
|
|
2810
2812
|
get: lo
|
|
2811
2813
|
}
|
|
2812
2814
|
};
|
|
2813
|
-
|
|
2815
|
+
b.forEach(va, (e, t) => {
|
|
2814
2816
|
if (e) {
|
|
2815
2817
|
try {
|
|
2816
2818
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -2819,9 +2821,9 @@ v.forEach(va, (e, t) => {
|
|
|
2819
2821
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
2820
2822
|
}
|
|
2821
2823
|
});
|
|
2822
|
-
const Za = (e) => `- ${e}`, ac = (e) =>
|
|
2824
|
+
const Za = (e) => `- ${e}`, ac = (e) => b.isFunction(e) || e === null || e === !1;
|
|
2823
2825
|
function rc(e, t) {
|
|
2824
|
-
e =
|
|
2826
|
+
e = b.isArray(e) ? e : [e];
|
|
2825
2827
|
const { length: n } = e;
|
|
2826
2828
|
let r, o;
|
|
2827
2829
|
const s = {};
|
|
@@ -2830,7 +2832,7 @@ function rc(e, t) {
|
|
|
2830
2832
|
let c;
|
|
2831
2833
|
if (o = r, !ac(r) && (o = va[(c = String(r)).toLowerCase()], o === void 0))
|
|
2832
2834
|
throw new $(`Unknown adapter '${c}'`);
|
|
2833
|
-
if (o && (
|
|
2835
|
+
if (o && (b.isFunction(o) || (o = o.get(t))))
|
|
2834
2836
|
break;
|
|
2835
2837
|
s[c || "#" + i] = o;
|
|
2836
2838
|
}
|
|
@@ -2970,7 +2972,7 @@ let ut = class {
|
|
|
2970
2972
|
silentJSONParsing: Pe.transitional(Pe.boolean),
|
|
2971
2973
|
forcedJSONParsing: Pe.transitional(Pe.boolean),
|
|
2972
2974
|
clarifyTimeoutError: Pe.transitional(Pe.boolean)
|
|
2973
|
-
}, !1), o != null && (
|
|
2975
|
+
}, !1), o != null && (b.isFunction(o) ? n.paramsSerializer = {
|
|
2974
2976
|
serialize: o
|
|
2975
2977
|
} : fn.assertOptions(o, {
|
|
2976
2978
|
encode: Pe.function,
|
|
@@ -2979,11 +2981,11 @@ let ut = class {
|
|
|
2979
2981
|
baseUrl: Pe.spelling("baseURL"),
|
|
2980
2982
|
withXsrfToken: Pe.spelling("withXSRFToken")
|
|
2981
2983
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
2982
|
-
let i = s &&
|
|
2984
|
+
let i = s && b.merge(
|
|
2983
2985
|
s.common,
|
|
2984
2986
|
s[n.method]
|
|
2985
2987
|
);
|
|
2986
|
-
s &&
|
|
2988
|
+
s && b.forEach(
|
|
2987
2989
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
2988
2990
|
(g) => {
|
|
2989
2991
|
delete s[g];
|
|
@@ -2998,17 +3000,17 @@ let ut = class {
|
|
|
2998
3000
|
this.interceptors.response.forEach(function(A) {
|
|
2999
3001
|
l.push(A.fulfilled, A.rejected);
|
|
3000
3002
|
});
|
|
3001
|
-
let u,
|
|
3003
|
+
let u, f = 0, m;
|
|
3002
3004
|
if (!d) {
|
|
3003
3005
|
const g = [Xa.bind(this), void 0];
|
|
3004
|
-
for (g.unshift(...c), g.push(...l),
|
|
3005
|
-
u = u.then(g[
|
|
3006
|
+
for (g.unshift(...c), g.push(...l), m = g.length, u = Promise.resolve(n); f < m; )
|
|
3007
|
+
u = u.then(g[f++], g[f++]);
|
|
3006
3008
|
return u;
|
|
3007
3009
|
}
|
|
3008
|
-
|
|
3010
|
+
m = c.length;
|
|
3009
3011
|
let p = n;
|
|
3010
|
-
for (;
|
|
3011
|
-
const g = c[
|
|
3012
|
+
for (; f < m; ) {
|
|
3013
|
+
const g = c[f++], A = c[f++];
|
|
3012
3014
|
try {
|
|
3013
3015
|
p = g(p);
|
|
3014
3016
|
} catch (y) {
|
|
@@ -3021,8 +3023,8 @@ let ut = class {
|
|
|
3021
3023
|
} catch (g) {
|
|
3022
3024
|
return Promise.reject(g);
|
|
3023
3025
|
}
|
|
3024
|
-
for (
|
|
3025
|
-
u = u.then(l[
|
|
3026
|
+
for (f = 0, m = l.length; f < m; )
|
|
3027
|
+
u = u.then(l[f++], l[f++]);
|
|
3026
3028
|
return u;
|
|
3027
3029
|
}
|
|
3028
3030
|
getUri(t) {
|
|
@@ -3031,7 +3033,7 @@ let ut = class {
|
|
|
3031
3033
|
return no(n, t.params, t.paramsSerializer);
|
|
3032
3034
|
}
|
|
3033
3035
|
};
|
|
3034
|
-
|
|
3036
|
+
b.forEach(["delete", "get", "head", "options"], function(t) {
|
|
3035
3037
|
ut.prototype[t] = function(n, r) {
|
|
3036
3038
|
return this.request(mt(r || {}, {
|
|
3037
3039
|
method: t,
|
|
@@ -3040,7 +3042,7 @@ v.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
3040
3042
|
}));
|
|
3041
3043
|
};
|
|
3042
3044
|
});
|
|
3043
|
-
|
|
3045
|
+
b.forEach(["post", "put", "patch"], function(t) {
|
|
3044
3046
|
function n(r) {
|
|
3045
3047
|
return function(s, i, c) {
|
|
3046
3048
|
return this.request(mt(c || {}, {
|
|
@@ -3134,7 +3136,7 @@ function ic(e) {
|
|
|
3134
3136
|
};
|
|
3135
3137
|
}
|
|
3136
3138
|
function cc(e) {
|
|
3137
|
-
return
|
|
3139
|
+
return b.isObject(e) && e.isAxiosError === !0;
|
|
3138
3140
|
}
|
|
3139
3141
|
const oa = {
|
|
3140
3142
|
Continue: 100,
|
|
@@ -3212,7 +3214,7 @@ Object.entries(oa).forEach(([e, t]) => {
|
|
|
3212
3214
|
});
|
|
3213
3215
|
function fo(e) {
|
|
3214
3216
|
const t = new ut(e), n = Hr(ut.prototype.request, t);
|
|
3215
|
-
return
|
|
3217
|
+
return b.extend(n, ut.prototype, t, { allOwnKeys: !0 }), b.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
3216
3218
|
return fo(mt(e, o));
|
|
3217
3219
|
}, n;
|
|
3218
3220
|
}
|
|
@@ -3232,7 +3234,7 @@ oe.spread = ic;
|
|
|
3232
3234
|
oe.isAxiosError = cc;
|
|
3233
3235
|
oe.mergeConfig = mt;
|
|
3234
3236
|
oe.AxiosHeaders = _e;
|
|
3235
|
-
oe.formToJSON = (e) => ro(
|
|
3237
|
+
oe.formToJSON = (e) => ro(b.isHTMLForm(e) ? new FormData(e) : e);
|
|
3236
3238
|
oe.getAdapter = uo.getAdapter;
|
|
3237
3239
|
oe.HttpStatusCode = oa;
|
|
3238
3240
|
oe.default = oe;
|
|
@@ -3442,24 +3444,24 @@ const z9 = async (e, t, n, r, o, s, i) => {
|
|
|
3442
3444
|
axiosApi: e,
|
|
3443
3445
|
exclude: i
|
|
3444
3446
|
}), d = [];
|
|
3445
|
-
for (let
|
|
3446
|
-
for (let
|
|
3447
|
+
for (let f = 1; f <= o; f++)
|
|
3448
|
+
for (let m = 1; m <= s; m++)
|
|
3447
3449
|
d.push({
|
|
3448
3450
|
func: c.getBlockSass,
|
|
3449
|
-
slot_id:
|
|
3451
|
+
slot_id: f + "_" + m
|
|
3450
3452
|
});
|
|
3451
3453
|
const l = await Promise.allSettled([
|
|
3452
|
-
...d.map((
|
|
3454
|
+
...d.map((f) => f.func({ template: "Home_" + f.slot_id }))
|
|
3453
3455
|
]);
|
|
3454
3456
|
return (() => {
|
|
3455
|
-
const
|
|
3456
|
-
for (let
|
|
3457
|
+
const f = {};
|
|
3458
|
+
for (let m = 0; m < l.length; m++) {
|
|
3457
3459
|
const p = ds(
|
|
3458
|
-
l[
|
|
3459
|
-
), g = "Home_" + (Math.floor(
|
|
3460
|
-
p && (
|
|
3460
|
+
l[m]
|
|
3461
|
+
), g = "Home_" + (Math.floor(m / s) + 1) + "_" + (Math.floor(m % s) + 1);
|
|
3462
|
+
p && (f[g] = { ...p });
|
|
3461
3463
|
}
|
|
3462
|
-
return
|
|
3464
|
+
return f;
|
|
3463
3465
|
})();
|
|
3464
3466
|
}, dc = (e) => {
|
|
3465
3467
|
const t = ls(e);
|
|
@@ -3522,11 +3524,11 @@ const z9 = async (e, t, n, r, o, s, i) => {
|
|
|
3522
3524
|
page: d
|
|
3523
3525
|
});
|
|
3524
3526
|
if (!u) return ve(t);
|
|
3525
|
-
const
|
|
3526
|
-
return
|
|
3527
|
+
const f = u.data.data, m = f[0];
|
|
3528
|
+
return f.length < l || c.push({ rel: "next", url: Wt(n, i, d) }), d > 1 && c.push({ rel: "prev", url: $t(n, i, d) }), {
|
|
3527
3529
|
...t,
|
|
3528
|
-
title: `Últimas Noticias de ${
|
|
3529
|
-
description: `Todas las últimas noticias de ${
|
|
3530
|
+
title: `Últimas Noticias de ${m.info.section?.name} | ${n.name}`,
|
|
3531
|
+
description: `Todas las últimas noticias de ${m.info.section?.name} en ${n.name}`,
|
|
3530
3532
|
alternates: {
|
|
3531
3533
|
...t.alternates,
|
|
3532
3534
|
canonical: n.siteUrl + r
|
|
@@ -3540,13 +3542,13 @@ const z9 = async (e, t, n, r, o, s, i) => {
|
|
|
3540
3542
|
"msapplication-TileImage": n.msapplicationTileImage ?? ""
|
|
3541
3543
|
},
|
|
3542
3544
|
openGraph: {
|
|
3543
|
-
title: `${
|
|
3545
|
+
title: `${m.info.section?.name}`,
|
|
3544
3546
|
type: "website",
|
|
3545
3547
|
url: `${n.siteUrl}${r}`
|
|
3546
3548
|
},
|
|
3547
3549
|
twitter: {
|
|
3548
3550
|
card: "summary_large_image",
|
|
3549
|
-
title: `${
|
|
3551
|
+
title: `${m.info.section?.name}`,
|
|
3550
3552
|
domain: n.siteUrl,
|
|
3551
3553
|
url: `${n.siteUrl}${r}`
|
|
3552
3554
|
}
|
|
@@ -3556,12 +3558,12 @@ const z9 = async (e, t, n, r, o, s, i) => {
|
|
|
3556
3558
|
}
|
|
3557
3559
|
},
|
|
3558
3560
|
tema: async (e) => {
|
|
3559
|
-
const { meta: t, config: n, pathname: r, slug: o } = e, s = new Be(), i = r.split("/"), c = [], d = Yt(r), l = Number(n.newsListLimit) ?? 0, u = /([t][0-9]{4})\w+/.exec(o || ""),
|
|
3561
|
+
const { meta: t, config: n, pathname: r, slug: o } = e, s = new Be(), i = r.split("/"), c = [], d = Yt(r), l = Number(n.newsListLimit) ?? 0, u = /([t][0-9]{4})\w+/.exec(o || ""), f = u && u?.length > 0 ? u[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: m } = J();
|
|
3560
3562
|
try {
|
|
3561
3563
|
const p = await s.getNewsListTags({
|
|
3562
|
-
tagid:
|
|
3564
|
+
tagid: f,
|
|
3563
3565
|
size: l,
|
|
3564
|
-
tagtype: Number(
|
|
3566
|
+
tagtype: Number(m),
|
|
3565
3567
|
newstype: n.newsType,
|
|
3566
3568
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
3567
3569
|
page: d
|
|
@@ -3727,7 +3729,7 @@ const z9 = async (e, t, n, r, o, s, i) => {
|
|
|
3727
3729
|
user: s,
|
|
3728
3730
|
exclude: "groups",
|
|
3729
3731
|
imagesizes: o.sm
|
|
3730
|
-
}),
|
|
3732
|
+
}), f = await i.getNewsListAutor({
|
|
3731
3733
|
size: Number(n.newsListLimit) ?? 0,
|
|
3732
3734
|
user: s,
|
|
3733
3735
|
page: l,
|
|
@@ -3735,7 +3737,7 @@ const z9 = async (e, t, n, r, o, s, i) => {
|
|
|
3735
3737
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
3736
3738
|
imagesizes: o.md
|
|
3737
3739
|
});
|
|
3738
|
-
return
|
|
3740
|
+
return f ? (f.data.data.length < Number(n.newsListLimit) || d.push({
|
|
3739
3741
|
rel: "next",
|
|
3740
3742
|
url: Wt(n, c, l)
|
|
3741
3743
|
}), l > 1 && d.push({
|
|
@@ -3783,8 +3785,8 @@ async function V9({
|
|
|
3783
3785
|
query: d,
|
|
3784
3786
|
currentNew: l,
|
|
3785
3787
|
banners: u,
|
|
3786
|
-
internalPath:
|
|
3787
|
-
config:
|
|
3788
|
+
internalPath: f,
|
|
3789
|
+
config: m,
|
|
3788
3790
|
socials: p,
|
|
3789
3791
|
speculationType: g = "Common",
|
|
3790
3792
|
preloadImageUrl: A,
|
|
@@ -3795,26 +3797,26 @@ async function V9({
|
|
|
3795
3797
|
}) {
|
|
3796
3798
|
const T = C || await uc[o]({
|
|
3797
3799
|
meta: n,
|
|
3798
|
-
config:
|
|
3800
|
+
config: m,
|
|
3799
3801
|
currentNew: l,
|
|
3800
3802
|
pathname: s,
|
|
3801
3803
|
imgSizes: r,
|
|
3802
3804
|
slug: i,
|
|
3803
3805
|
texts: c,
|
|
3804
3806
|
query: d
|
|
3805
|
-
}),
|
|
3807
|
+
}), v = ps(T), x = S || zr[o]({
|
|
3806
3808
|
pathname: s,
|
|
3807
3809
|
slug: i,
|
|
3808
|
-
config:
|
|
3810
|
+
config: m,
|
|
3809
3811
|
currentNew: l,
|
|
3810
|
-
internalPath:
|
|
3812
|
+
internalPath: f
|
|
3811
3813
|
});
|
|
3812
|
-
return /* @__PURE__ */ h(
|
|
3814
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
3813
3815
|
/* @__PURE__ */ a("meta", { charSet: "utf-8" }),
|
|
3814
3816
|
/* @__PURE__ */ a("meta", { name: "viewport", content: "width=device-width" }),
|
|
3815
|
-
|
|
3817
|
+
v,
|
|
3816
3818
|
/* @__PURE__ */ a(ws, {}),
|
|
3817
|
-
t.ampConfig &&
|
|
3819
|
+
t.ampConfig && m.ampOption && t.ampConfig_slugIsValid && /* @__PURE__ */ a("link", { rel: "amphtml", href: m.siteUrl + "/amp" + s }),
|
|
3818
3820
|
t.preloadImages && l && l.preview?.sizes && /* @__PURE__ */ a(
|
|
3819
3821
|
Da,
|
|
3820
3822
|
{
|
|
@@ -3831,7 +3833,7 @@ async function V9({
|
|
|
3831
3833
|
}
|
|
3832
3834
|
),
|
|
3833
3835
|
t.preloadImages && A && /* @__PURE__ */ a(Da, { images: A }),
|
|
3834
|
-
/* @__PURE__ */ a(Us, { config:
|
|
3836
|
+
/* @__PURE__ */ a(Us, { config: m }),
|
|
3835
3837
|
/* @__PURE__ */ a(
|
|
3836
3838
|
Qr,
|
|
3837
3839
|
{
|
|
@@ -3840,39 +3842,39 @@ async function V9({
|
|
|
3840
3842
|
banners: u
|
|
3841
3843
|
}
|
|
3842
3844
|
),
|
|
3843
|
-
t.schemas_NewsArticle &&
|
|
3845
|
+
t.schemas_NewsArticle && f && /* @__PURE__ */ a(
|
|
3844
3846
|
xs,
|
|
3845
3847
|
{
|
|
3846
|
-
BASE_URL:
|
|
3847
|
-
config:
|
|
3848
|
-
realPath:
|
|
3848
|
+
BASE_URL: m.siteUrl,
|
|
3849
|
+
config: m,
|
|
3850
|
+
realPath: f,
|
|
3849
3851
|
axiosApi: e
|
|
3850
3852
|
}
|
|
3851
3853
|
),
|
|
3852
|
-
/* @__PURE__ */ a(Ts, { config:
|
|
3853
|
-
t.schemas_Videos &&
|
|
3854
|
+
/* @__PURE__ */ a(Ts, { config: m, socials: p }),
|
|
3855
|
+
t.schemas_Videos && f && /* @__PURE__ */ a(
|
|
3854
3856
|
ks,
|
|
3855
3857
|
{
|
|
3856
3858
|
axiosApi: e,
|
|
3857
|
-
realPath:
|
|
3858
|
-
config:
|
|
3859
|
+
realPath: f,
|
|
3860
|
+
config: m
|
|
3859
3861
|
}
|
|
3860
3862
|
),
|
|
3861
3863
|
t.schemas_ItemList && /* @__PURE__ */ a(
|
|
3862
3864
|
Es,
|
|
3863
3865
|
{
|
|
3864
|
-
config:
|
|
3866
|
+
config: m,
|
|
3865
3867
|
ROUTE: o,
|
|
3866
3868
|
pathname: s,
|
|
3867
3869
|
axiosApi: e
|
|
3868
3870
|
}
|
|
3869
3871
|
),
|
|
3870
|
-
t.schemas_WebsiteList && /* @__PURE__ */ a(Is, { config:
|
|
3872
|
+
t.schemas_WebsiteList && /* @__PURE__ */ a(Is, { config: m }),
|
|
3871
3873
|
/* @__PURE__ */ a(
|
|
3872
3874
|
Ns,
|
|
3873
3875
|
{
|
|
3874
3876
|
type: g,
|
|
3875
|
-
active:
|
|
3877
|
+
active: m.useSpeculationRules,
|
|
3876
3878
|
customSpeculation: y
|
|
3877
3879
|
}
|
|
3878
3880
|
),
|
|
@@ -3892,19 +3894,19 @@ const F9 = ({
|
|
|
3892
3894
|
scriptReplaces: l,
|
|
3893
3895
|
body_custom_elements: u
|
|
3894
3896
|
}) => {
|
|
3895
|
-
const
|
|
3897
|
+
const f = Go(c, d), m = zr[t]({
|
|
3896
3898
|
pathname: r,
|
|
3897
3899
|
slug: o,
|
|
3898
3900
|
config: s,
|
|
3899
3901
|
currentNew: c,
|
|
3900
3902
|
internalPath: i
|
|
3901
|
-
}), p = l.before.active, g = l.after.active, A = p ? l.before.customData ? l.before.customData :
|
|
3902
|
-
return /* @__PURE__ */ h(
|
|
3903
|
+
}), p = l.before.active, g = l.after.active, A = p ? l.before.customData ? l.before.customData : m : void 0, y = g ? l.after.customData ? l.after.customData : m : void 0;
|
|
3904
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
3903
3905
|
/* @__PURE__ */ a(Qr, { name: "bodybefore", banners: n, replaces: A }),
|
|
3904
3906
|
e,
|
|
3905
3907
|
/* @__PURE__ */ a(Vo, {}),
|
|
3906
3908
|
/* @__PURE__ */ a(Qo, {}),
|
|
3907
|
-
/* @__PURE__ */ a(zo, { dimensionValues:
|
|
3909
|
+
/* @__PURE__ */ a(zo, { dimensionValues: f }),
|
|
3908
3910
|
/* @__PURE__ */ a(Ho, {}),
|
|
3909
3911
|
u,
|
|
3910
3912
|
/* @__PURE__ */ a(As, { name: "bodyafter", banners: n, replaces: y })
|
|
@@ -3950,7 +3952,7 @@ function wc({
|
|
|
3950
3952
|
enableDrag: s,
|
|
3951
3953
|
onIndexChange: i
|
|
3952
3954
|
}) {
|
|
3953
|
-
const [c, d] =
|
|
3955
|
+
const [c, d] = K(!1), [l, u] = K(0), [f, m] = K(0), [p, g] = K(0), [A, y] = K(0), [C, S] = K(null), _ = Or(null), [T, v] = K(1), x = he(() => {
|
|
3954
3956
|
if (o) return 1;
|
|
3955
3957
|
const w = _.current?.offsetWidth || window.innerWidth, N = n + r, q = Math.floor(w / N);
|
|
3956
3958
|
return Math.max(1, q);
|
|
@@ -3958,7 +3960,7 @@ function wc({
|
|
|
3958
3960
|
Me(() => {
|
|
3959
3961
|
const w = () => {
|
|
3960
3962
|
const N = x();
|
|
3961
|
-
|
|
3963
|
+
v(N);
|
|
3962
3964
|
};
|
|
3963
3965
|
return w(), window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
|
|
3964
3966
|
}, [x]);
|
|
@@ -3990,14 +3992,14 @@ function wc({
|
|
|
3990
3992
|
[o, n, r, x, te]
|
|
3991
3993
|
), ee = he(
|
|
3992
3994
|
(w) => {
|
|
3993
|
-
s && (u(w),
|
|
3995
|
+
s && (u(w), m(w), g(0), y(Date.now()), d(!0), document.body.classList.add("dragging"));
|
|
3994
3996
|
},
|
|
3995
3997
|
[s]
|
|
3996
3998
|
), ce = he(
|
|
3997
3999
|
(w) => {
|
|
3998
4000
|
if (!c || !s) return;
|
|
3999
4001
|
const N = w - l, q = (n + r) * 1.2, M = e === 0 && N > 0, B = e === Q && N < 0, z = M || B ? Math.sign(N) * Math.min(Math.abs(N), q) : N;
|
|
4000
|
-
|
|
4002
|
+
m(w), g(z);
|
|
4001
4003
|
},
|
|
4002
4004
|
[c, l, s, e, Q, n, r]
|
|
4003
4005
|
), D = he(
|
|
@@ -4008,7 +4010,7 @@ function wc({
|
|
|
4008
4010
|
), U = he(
|
|
4009
4011
|
(w) => {
|
|
4010
4012
|
if (!c || !s) return;
|
|
4011
|
-
const N =
|
|
4013
|
+
const N = f - l, q = Date.now() - A, M = Math.abs(N) / Math.max(q, 1), B = O(N), V = M > 0.5 && Math.abs(N) > 50 ? Math.max(B, 1) : B;
|
|
4012
4014
|
if (V > 0)
|
|
4013
4015
|
if (N > 0) {
|
|
4014
4016
|
const F = Math.max(0, e - V);
|
|
@@ -4021,7 +4023,7 @@ function wc({
|
|
|
4021
4023
|
},
|
|
4022
4024
|
[
|
|
4023
4025
|
c,
|
|
4024
|
-
|
|
4026
|
+
f,
|
|
4025
4027
|
l,
|
|
4026
4028
|
A,
|
|
4027
4029
|
e,
|
|
@@ -4087,7 +4089,7 @@ function $9(e) {
|
|
|
4087
4089
|
fullPageWidth: i = !1,
|
|
4088
4090
|
pagination: c = !1,
|
|
4089
4091
|
enableDrag: d = !0
|
|
4090
|
-
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [u,
|
|
4092
|
+
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [u, f] = K(0), [m, p] = K(!1);
|
|
4091
4093
|
Me(() => {
|
|
4092
4094
|
p(!0);
|
|
4093
4095
|
const G = document.getElementById("ssr-dummy_" + n);
|
|
@@ -4108,19 +4110,19 @@ function $9(e) {
|
|
|
4108
4110
|
cardGap: s,
|
|
4109
4111
|
fullPageWidth: i,
|
|
4110
4112
|
enableDrag: d,
|
|
4111
|
-
onIndexChange:
|
|
4112
|
-
}),
|
|
4113
|
+
onIndexChange: f
|
|
4114
|
+
}), v = he(
|
|
4113
4115
|
(G) => {
|
|
4114
4116
|
const O = Math.max(0, Math.min(G, C));
|
|
4115
|
-
|
|
4117
|
+
f(O);
|
|
4116
4118
|
},
|
|
4117
4119
|
[C]
|
|
4118
4120
|
), x = he(() => {
|
|
4119
|
-
|
|
4120
|
-
}, [u,
|
|
4121
|
-
|
|
4122
|
-
}, [u,
|
|
4123
|
-
if (!
|
|
4121
|
+
v(u - 1);
|
|
4122
|
+
}, [u, v]), j = he(() => {
|
|
4123
|
+
v(u + 1);
|
|
4124
|
+
}, [u, v]);
|
|
4125
|
+
if (!m) return;
|
|
4124
4126
|
const Q = S(u, A), te = i ? `translateX(${Q}%)` : `translateX(${Q}px)`;
|
|
4125
4127
|
return /* @__PURE__ */ h("div", { className: `${n}- carrousel-container`, children: [
|
|
4126
4128
|
u > 0 && /* @__PURE__ */ a(
|
|
@@ -4227,7 +4229,7 @@ function $9(e) {
|
|
|
4227
4229
|
"li",
|
|
4228
4230
|
{
|
|
4229
4231
|
className: ee ? "active" : "",
|
|
4230
|
-
onClick: () =>
|
|
4232
|
+
onClick: () => v(O * _),
|
|
4231
4233
|
style: {
|
|
4232
4234
|
cursor: "pointer",
|
|
4233
4235
|
backgroundColor: ee ? "var(--carrousel-pagination-background-color)" : "var(--carrousel-pagination-background-color-white)"
|
|
@@ -4505,7 +4507,7 @@ const Tt = (e) => {
|
|
|
4505
4507
|
if (e?.config?.showtime)
|
|
4506
4508
|
return je(e.info?.date?.modified);
|
|
4507
4509
|
}, d = () => {
|
|
4508
|
-
const
|
|
4510
|
+
const f = {
|
|
4509
4511
|
"--fontSizeSubTitle": e.fontSizeSubTitle,
|
|
4510
4512
|
"--lineHeightSubTitle": e.lineHeightSubTitle,
|
|
4511
4513
|
"--colorSubTitle": e.colorSubTitle
|
|
@@ -4517,34 +4519,34 @@ const Tt = (e) => {
|
|
|
4517
4519
|
dangerouslySetInnerHTML: {
|
|
4518
4520
|
__html: e.main.subtitle.rendered ?? e.main.subtitle.striped ?? ""
|
|
4519
4521
|
},
|
|
4520
|
-
style:
|
|
4522
|
+
style: f
|
|
4521
4523
|
}
|
|
4522
4524
|
);
|
|
4523
4525
|
}, l = () => e.main.uppertitle ? /* @__PURE__ */ a("p", { className: re.uppertitle, title: e.main.uppertitle, children: e.main.uppertitle }) : null, u = () => {
|
|
4524
4526
|
if (i && r?.tags?.length && r.tags.length > 0) {
|
|
4525
|
-
const
|
|
4527
|
+
const f = r.tags[0], m = f.name;
|
|
4526
4528
|
return /* @__PURE__ */ h("h3", { className: re.sectionDescriptionContainer, children: [
|
|
4527
|
-
|
|
4529
|
+
f.approved ? /* @__PURE__ */ a(
|
|
4528
4530
|
L,
|
|
4529
4531
|
{
|
|
4530
|
-
"aria-label":
|
|
4532
|
+
"aria-label": m,
|
|
4531
4533
|
className: re.sectionDescription,
|
|
4532
|
-
href: vt(
|
|
4533
|
-
children:
|
|
4534
|
+
href: vt(f, s),
|
|
4535
|
+
children: m
|
|
4534
4536
|
}
|
|
4535
|
-
) : /* @__PURE__ */ a("div", { className: re.sectionDescription, children:
|
|
4537
|
+
) : /* @__PURE__ */ a("div", { className: re.sectionDescription, children: m }),
|
|
4536
4538
|
l()
|
|
4537
4539
|
] });
|
|
4538
4540
|
} else if (o?.section?.url) {
|
|
4539
|
-
const
|
|
4541
|
+
const f = o.section.name;
|
|
4540
4542
|
return /* @__PURE__ */ h("h3", { className: re.sectionDescriptionContainer, children: [
|
|
4541
4543
|
/* @__PURE__ */ a(
|
|
4542
4544
|
L,
|
|
4543
4545
|
{
|
|
4544
|
-
"aria-label":
|
|
4546
|
+
"aria-label": f,
|
|
4545
4547
|
className: re.sectionDescription,
|
|
4546
4548
|
href: o.section.url,
|
|
4547
|
-
children:
|
|
4549
|
+
children: f
|
|
4548
4550
|
}
|
|
4549
4551
|
),
|
|
4550
4552
|
l()
|
|
@@ -4583,7 +4585,7 @@ const Tt = (e) => {
|
|
|
4583
4585
|
) : e.main?.title?.section
|
|
4584
4586
|
),
|
|
4585
4587
|
e.config?.showsubtitle && /* @__PURE__ */ a(d, {}),
|
|
4586
|
-
(e?.config?.showtime || e.config?.showauthor) && /* @__PURE__ */ a(
|
|
4588
|
+
(e?.config?.showtime || e.config?.showauthor) && /* @__PURE__ */ a(Y, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ a("h3", { children: /* @__PURE__ */ a(
|
|
4587
4589
|
L,
|
|
4588
4590
|
{
|
|
4589
4591
|
"aria-label": c(),
|
|
@@ -4642,7 +4644,7 @@ const Tt = (e) => {
|
|
|
4642
4644
|
src: o[0]?.url ? o[0]?.url : void 0
|
|
4643
4645
|
}
|
|
4644
4646
|
),
|
|
4645
|
-
t && /* @__PURE__ */ h(
|
|
4647
|
+
t && /* @__PURE__ */ h(Y, { children: [
|
|
4646
4648
|
/* @__PURE__ */ a(
|
|
4647
4649
|
"div",
|
|
4648
4650
|
{
|
|
@@ -4700,7 +4702,7 @@ const Tt = (e) => {
|
|
|
4700
4702
|
src: o[0]?.url ? o[0]?.url : ""
|
|
4701
4703
|
}
|
|
4702
4704
|
),
|
|
4703
|
-
t && /* @__PURE__ */ h(
|
|
4705
|
+
t && /* @__PURE__ */ h(Y, { children: [
|
|
4704
4706
|
/* @__PURE__ */ a(
|
|
4705
4707
|
"div",
|
|
4706
4708
|
{
|
|
@@ -4747,7 +4749,7 @@ const Tt = (e) => {
|
|
|
4747
4749
|
isVideo: n = !1,
|
|
4748
4750
|
hasShadow: r = !1,
|
|
4749
4751
|
priorityHigh: o = !1
|
|
4750
|
-
} = e, [s, i] =
|
|
4752
|
+
} = e, [s, i] = K(void 0), c = t?.sizes;
|
|
4751
4753
|
return Me(() => {
|
|
4752
4754
|
(async () => {
|
|
4753
4755
|
const { PUBLIC_IS_OFFLINE: l } = J();
|
|
@@ -6267,7 +6269,7 @@ const Tt = (e) => {
|
|
|
6267
6269
|
i
|
|
6268
6270
|
)) })
|
|
6269
6271
|
] }),
|
|
6270
|
-
o && /* @__PURE__ */ a(
|
|
6272
|
+
o && /* @__PURE__ */ a(Y, { children: o }),
|
|
6271
6273
|
/* @__PURE__ */ h("section", { className: we.copyrigth, children: [
|
|
6272
6274
|
/* @__PURE__ */ a("p", { className: we.copyrigthText, children: e.copyrigth }),
|
|
6273
6275
|
/* @__PURE__ */ a(
|
|
@@ -6573,9 +6575,9 @@ const Dd = "_content_r1co8_1", Md = "_videoContent_r1co8_20", jd = "_articleSect
|
|
|
6573
6575
|
}, vn = (e) => {
|
|
6574
6576
|
const { currentPage: t, showNext: n, maxPages: r, pathname: o, query: s } = e, i = (c, d, l) => {
|
|
6575
6577
|
let u = "";
|
|
6576
|
-
const
|
|
6577
|
-
return
|
|
6578
|
-
p !== 0 && (u += `/${
|
|
6578
|
+
const f = d.split("/");
|
|
6579
|
+
return f.indexOf("page") !== -1 && f.splice(u.indexOf("page") - 1, f.length - 1), f.forEach((m, p) => {
|
|
6580
|
+
p !== 0 && (u += `/${m}`);
|
|
6579
6581
|
}), c === "next" ? u += `/page/${t + 1}${l ? `?query=${l}` : ""}` : u += `/page/${t - 1}${l ? `?query=${l}` : ""}`;
|
|
6580
6582
|
};
|
|
6581
6583
|
return (t > 1 || n && t < r) && /* @__PURE__ */ h("section", { className: Pn.content, children: [
|
|
@@ -6611,7 +6613,7 @@ const Dd = "_content_r1co8_1", Md = "_videoContent_r1co8_20", jd = "_articleSect
|
|
|
6611
6613
|
children: e.children
|
|
6612
6614
|
}
|
|
6613
6615
|
),
|
|
6614
|
-
/* @__PURE__ */ a(
|
|
6616
|
+
/* @__PURE__ */ a(Y, { children: e.paginatorComponent })
|
|
6615
6617
|
] });
|
|
6616
6618
|
}, Zd = "_content_15x47_1", Xd = "_newsDescription_15x47_15", e1 = "_image_15x47_41", Dt = {
|
|
6617
6619
|
content: Zd,
|
|
@@ -6629,8 +6631,8 @@ const Dd = "_content_r1co8_1", Md = "_videoContent_r1co8_20", jd = "_articleSect
|
|
|
6629
6631
|
overImage: d = "default",
|
|
6630
6632
|
isTitle: l,
|
|
6631
6633
|
priorityHigh: u = !1,
|
|
6632
|
-
isLarge:
|
|
6633
|
-
paths:
|
|
6634
|
+
isLarge: f,
|
|
6635
|
+
paths: m,
|
|
6634
6636
|
keywords: p
|
|
6635
6637
|
} = e;
|
|
6636
6638
|
return /* @__PURE__ */ h(
|
|
@@ -6654,7 +6656,7 @@ const Dd = "_content_r1co8_1", Md = "_videoContent_r1co8_20", jd = "_articleSect
|
|
|
6654
6656
|
{
|
|
6655
6657
|
preview: o,
|
|
6656
6658
|
isVideo: i,
|
|
6657
|
-
isLarge:
|
|
6659
|
+
isLarge: f,
|
|
6658
6660
|
priorityHigh: u
|
|
6659
6661
|
}
|
|
6660
6662
|
)
|
|
@@ -6671,7 +6673,7 @@ const Dd = "_content_r1co8_1", Md = "_videoContent_r1co8_20", jd = "_articleSect
|
|
|
6671
6673
|
config: c,
|
|
6672
6674
|
overImage: d,
|
|
6673
6675
|
isTitle: l,
|
|
6674
|
-
paths:
|
|
6676
|
+
paths: m,
|
|
6675
6677
|
keywords: p
|
|
6676
6678
|
}
|
|
6677
6679
|
) })
|
|
@@ -6826,7 +6828,7 @@ const Dd = "_content_r1co8_1", Md = "_videoContent_r1co8_20", jd = "_articleSect
|
|
|
6826
6828
|
/* @__PURE__ */ a(Ue, { preview: e.preview, isLarge: !0, priorityHigh: !0 }),
|
|
6827
6829
|
t && /* @__PURE__ */ a("div", { className: bn.description, children: t })
|
|
6828
6830
|
] });
|
|
6829
|
-
}, D1 = (e) => /* @__PURE__ */ a(
|
|
6831
|
+
}, D1 = (e) => /* @__PURE__ */ a(Y, { children: /* @__PURE__ */ h("div", { className: tt.boxInformation, children: [
|
|
6830
6832
|
/* @__PURE__ */ a(yo, { preview: e.preview }),
|
|
6831
6833
|
/* @__PURE__ */ h("div", { className: tt.textBox, children: [
|
|
6832
6834
|
/* @__PURE__ */ h("div", { className: tt.contentBox, children: [
|
|
@@ -7416,7 +7418,7 @@ const Dd = "_content_r1co8_1", Md = "_videoContent_r1co8_20", jd = "_articleSect
|
|
|
7416
7418
|
children: t?.data[0]?.main?.title.home ?? ""
|
|
7417
7419
|
}
|
|
7418
7420
|
);
|
|
7419
|
-
return /* @__PURE__ */ h(
|
|
7421
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
7420
7422
|
/* @__PURE__ */ a(
|
|
7421
7423
|
"input",
|
|
7422
7424
|
{
|
|
@@ -7753,7 +7755,7 @@ const Dd = "_content_r1co8_1", Md = "_videoContent_r1co8_20", jd = "_articleSect
|
|
|
7753
7755
|
op2: am
|
|
7754
7756
|
}, a3 = (e) => {
|
|
7755
7757
|
const { alertZone: t, children: n, sidebar: r } = e;
|
|
7756
|
-
return /* @__PURE__ */ h(
|
|
7758
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
7757
7759
|
/* @__PURE__ */ a(kh, { ...e }),
|
|
7758
7760
|
!e.showOnlyStickyHeader && /* @__PURE__ */ a(em, { ...e }),
|
|
7759
7761
|
/* @__PURE__ */ h(
|
|
@@ -8173,7 +8175,7 @@ const Dd = "_content_r1co8_1", Md = "_videoContent_r1co8_20", jd = "_articleSect
|
|
|
8173
8175
|
}
|
|
8174
8176
|
}
|
|
8175
8177
|
),
|
|
8176
|
-
e?.config?.showtime && e.config?.showauthor && /* @__PURE__ */ a(
|
|
8178
|
+
e?.config?.showtime && e.config?.showauthor && /* @__PURE__ */ a(Y, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ a(
|
|
8177
8179
|
L,
|
|
8178
8180
|
{
|
|
8179
8181
|
href: `/${e.paths?.autor ?? "autor"}/${e?.authors[0]?.name}`,
|
|
@@ -8594,7 +8596,7 @@ const r3 = (e) => {
|
|
|
8594
8596
|
] }),
|
|
8595
8597
|
/* @__PURE__ */ a("div", { className: wt.bannerContent, children: e.halfPageBanner })
|
|
8596
8598
|
] });
|
|
8597
|
-
}, i3 = (e) => /* @__PURE__ */ h(
|
|
8599
|
+
}, i3 = (e) => /* @__PURE__ */ h(Y, { children: [
|
|
8598
8600
|
/* @__PURE__ */ a(gl, { className: "display-on-lower-900px", ...e }),
|
|
8599
8601
|
/* @__PURE__ */ a(Tl, { ...e })
|
|
8600
8602
|
] }), b2 = "_newsContent_gd57q_1", C2 = "_newsContentWithLines_gd57q_8", _2 = "_newsContentWithoutLines_gd57q_13", N2 = "_contentSeparator_gd57q_18", en = {
|
|
@@ -9075,12 +9077,12 @@ const r3 = (e) => {
|
|
|
9075
9077
|
showNext: !(t.length < e.NEWS_PER_SECTION)
|
|
9076
9078
|
}
|
|
9077
9079
|
),
|
|
9078
|
-
children: Array.isArray(t) && t?.map((u,
|
|
9079
|
-
d.includes(
|
|
9080
|
+
children: Array.isArray(t) && t?.map((u, f) => /* @__PURE__ */ h(pn, { children: [
|
|
9081
|
+
d.includes(f + 1) && /* @__PURE__ */ a("div", { className: Ke.itemContent + " banner-context", children: /* @__PURE__ */ a(
|
|
9080
9082
|
ge,
|
|
9081
9083
|
{
|
|
9082
9084
|
banners: r ?? [],
|
|
9083
|
-
name: `block_2_${l[
|
|
9085
|
+
name: `block_2_${l[f + 1]}`
|
|
9084
9086
|
}
|
|
9085
9087
|
) }),
|
|
9086
9088
|
/* @__PURE__ */ a(
|
|
@@ -9091,9 +9093,9 @@ const r3 = (e) => {
|
|
|
9091
9093
|
option: o,
|
|
9092
9094
|
paths: e.paths
|
|
9093
9095
|
},
|
|
9094
|
-
|
|
9096
|
+
f
|
|
9095
9097
|
)
|
|
9096
|
-
] },
|
|
9098
|
+
] }, f))
|
|
9097
9099
|
}
|
|
9098
9100
|
) : /* @__PURE__ */ a(
|
|
9099
9101
|
"div",
|
|
@@ -9123,7 +9125,7 @@ const r3 = (e) => {
|
|
|
9123
9125
|
}
|
|
9124
9126
|
);
|
|
9125
9127
|
case "op2":
|
|
9126
|
-
return /* @__PURE__ */ a(
|
|
9128
|
+
return /* @__PURE__ */ a(Y, { children: t.length > 0 ? /* @__PURE__ */ a(
|
|
9127
9129
|
sa,
|
|
9128
9130
|
{
|
|
9129
9131
|
className: "padding-0",
|
|
@@ -9138,12 +9140,12 @@ const r3 = (e) => {
|
|
|
9138
9140
|
showNext: !(t.length < e.NEWS_PER_SECTION)
|
|
9139
9141
|
}
|
|
9140
9142
|
),
|
|
9141
|
-
children: Array.isArray(t) && t?.map((u,
|
|
9142
|
-
d.includes(
|
|
9143
|
+
children: Array.isArray(t) && t?.map((u, f) => /* @__PURE__ */ h(pn, { children: [
|
|
9144
|
+
d.includes(f + 1) && /* @__PURE__ */ a("div", { className: Ke.itemContent, children: /* @__PURE__ */ a(
|
|
9143
9145
|
ge,
|
|
9144
9146
|
{
|
|
9145
9147
|
banners: r ?? [],
|
|
9146
|
-
name: `block_2_${l[
|
|
9148
|
+
name: `block_2_${l[f + 1]}`
|
|
9147
9149
|
}
|
|
9148
9150
|
) }),
|
|
9149
9151
|
/* @__PURE__ */ a(
|
|
@@ -9154,9 +9156,9 @@ const r3 = (e) => {
|
|
|
9154
9156
|
option: o,
|
|
9155
9157
|
paths: e.paths
|
|
9156
9158
|
},
|
|
9157
|
-
|
|
9159
|
+
f
|
|
9158
9160
|
)
|
|
9159
|
-
] },
|
|
9161
|
+
] }, f))
|
|
9160
9162
|
}
|
|
9161
9163
|
) : /* @__PURE__ */ a(
|
|
9162
9164
|
"div",
|
|
@@ -9184,7 +9186,7 @@ const r3 = (e) => {
|
|
|
9184
9186
|
}
|
|
9185
9187
|
) });
|
|
9186
9188
|
default:
|
|
9187
|
-
return /* @__PURE__ */ a(
|
|
9189
|
+
return /* @__PURE__ */ a(Y, {});
|
|
9188
9190
|
}
|
|
9189
9191
|
}, df = "_content_gwsqy_1", uf = "_contactInfoContent_gwsqy_7", mr = {
|
|
9190
9192
|
content: df,
|
|
@@ -9599,45 +9601,45 @@ function Zf(e) {
|
|
|
9599
9601
|
const t = e.children, n = `${e.slot_id}-`, r = e.visibleItems, o = e.cardGap ?? 20;
|
|
9600
9602
|
function s(c) {
|
|
9601
9603
|
const d = [], l = [];
|
|
9602
|
-
let u = "",
|
|
9603
|
-
for (let
|
|
9604
|
-
const p = `[data-index="${
|
|
9604
|
+
let u = "", f = !0;
|
|
9605
|
+
for (let m = 0; m < c; m++) {
|
|
9606
|
+
const p = `[data-index="${m}"]:checked ~ .carrousel-pagination li:nth-child(${m + 1}) {
|
|
9605
9607
|
background-color:var(--carrousel-pagination-background-color)
|
|
9606
9608
|
}`;
|
|
9607
9609
|
u += `
|
|
9608
9610
|
.${n}.carrousel-container {
|
|
9609
9611
|
${p}
|
|
9610
|
-
[data-index="${
|
|
9611
|
-
transform: translate(-${
|
|
9612
|
+
[data-index="${m}"]:checked ~ .carrousel-ssr {
|
|
9613
|
+
transform: translate(-${m * (100 + o) + "%"});
|
|
9612
9614
|
transition: transform 300ms;
|
|
9613
9615
|
}
|
|
9614
|
-
[data-index="${
|
|
9615
|
-
${
|
|
9616
|
+
[data-index="${m + 1}"]:checked ~ .visible-arrow.left[data-index="${m}"]
|
|
9617
|
+
${m < c - 1 ? `,[data-index="${m}"]:checked ~ .visible-arrow.right[data-index="${m}"]` : ""} {
|
|
9616
9618
|
display: flex;
|
|
9617
9619
|
}
|
|
9618
9620
|
}
|
|
9619
|
-
`,
|
|
9621
|
+
`, m > c - (r + 1) && (u += `
|
|
9620
9622
|
@media (min-width:900px) {
|
|
9621
9623
|
.${n}.carrousel-container {
|
|
9622
|
-
[data-index="${
|
|
9624
|
+
[data-index="${m}"]:checked ~ .visible-arrow.right[data-index="${m}"] {
|
|
9623
9625
|
display:none!important;
|
|
9624
9626
|
}
|
|
9625
9627
|
}
|
|
9626
9628
|
}`), d.push(
|
|
9627
|
-
`<input type="radio" name="${n + "card"}" ${
|
|
9629
|
+
`<input type="radio" name="${n + "card"}" ${f ? "checked" : ""} id="${n + "input-check-" + m}" data-index="${m}" />`
|
|
9628
9630
|
), l.push(`
|
|
9629
|
-
<label for="${n + "input-check-" +
|
|
9631
|
+
<label for="${n + "input-check-" + m}" data-index="${m}" class="visible-arrow left">
|
|
9630
9632
|
<svg width="16" height="16" view-box="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
9631
9633
|
<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" />
|
|
9632
9634
|
</svg>
|
|
9633
9635
|
</label>
|
|
9634
9636
|
|
|
9635
|
-
${
|
|
9637
|
+
${m < c - 1 ? `<label for="${n + "input-check-" + (m + 1)}" data-index="${m}" class="visible-arrow right">
|
|
9636
9638
|
<svg width="16" height="16" view-box="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
9637
9639
|
<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" />
|
|
9638
9640
|
</svg>
|
|
9639
9641
|
</label>` : ""}
|
|
9640
|
-
`),
|
|
9642
|
+
`), f = !1;
|
|
9641
9643
|
}
|
|
9642
9644
|
return `
|
|
9643
9645
|
<style>${u}</style>
|
|
@@ -9723,7 +9725,7 @@ const Xf = (e) => /* @__PURE__ */ a(
|
|
|
9723
9725
|
).test(o)) {
|
|
9724
9726
|
r++;
|
|
9725
9727
|
const u = t.find(
|
|
9726
|
-
(
|
|
9728
|
+
(f) => f.key === `block_2_${n[r]}`
|
|
9727
9729
|
);
|
|
9728
9730
|
return u ? `${c}<div class="banner-context">${u.value}</div>` : c;
|
|
9729
9731
|
}
|
|
@@ -9736,13 +9738,13 @@ const Xf = (e) => /* @__PURE__ */ a(
|
|
|
9736
9738
|
for (const s of n) {
|
|
9737
9739
|
const [i, c = ""] = s, d = s.index, l = d + i.length;
|
|
9738
9740
|
r += e.slice(o, d);
|
|
9739
|
-
const
|
|
9741
|
+
const f = [...c.matchAll(/data-src="([^"]+)"/g)].map(
|
|
9740
9742
|
(g) => g[1]
|
|
9741
9743
|
).map(
|
|
9742
9744
|
(g) => `<img fetchPriority='low' loading='lazy' alt='imagen' src="${g}" class="carrusel-note-item" width="800" height="469"/>`
|
|
9743
|
-
),
|
|
9744
|
-
slot_id:
|
|
9745
|
-
children:
|
|
9745
|
+
), m = "gallery_embeded" + d.toString(), p = Zf({
|
|
9746
|
+
slot_id: m,
|
|
9747
|
+
children: f,
|
|
9746
9748
|
visibleItems: 1,
|
|
9747
9749
|
cardGap: 0
|
|
9748
9750
|
});
|
|
@@ -9758,7 +9760,7 @@ const Xf = (e) => /* @__PURE__ */ a(
|
|
|
9758
9760
|
(S) => d.includes(S?.[0]?.info.link.internal || "")
|
|
9759
9761
|
);
|
|
9760
9762
|
if (!l || !l[0]) continue;
|
|
9761
|
-
const u = l[0].preview?.sizes?.[0],
|
|
9763
|
+
const u = l[0].preview?.sizes?.[0], f = u ? await pe(u.url) : "", m = l[0].info.section?.url ?? "#", p = l[0].info.section?.name ?? "Sección", g = l[0].info.link?.url ?? "#", A = l[0].main?.title.article ?? "Título", y = (await Promise.all(
|
|
9762
9764
|
l[0].preview?.sizes?.map(async (S) => {
|
|
9763
9765
|
const _ = await pe(S.url);
|
|
9764
9766
|
return S.width < 200 ? `<source srcset="${_}" media="(width < 750px)"/>` : `<source srcset="${_}" media="(width >= 750px)"/>`;
|
|
@@ -9767,10 +9769,10 @@ const Xf = (e) => /* @__PURE__ */ a(
|
|
|
9767
9769
|
<span data-src="${d}">
|
|
9768
9770
|
<picture style='display: flex'>
|
|
9769
9771
|
${y}
|
|
9770
|
-
<img fetchPriority='low' loading='lazy' src="${
|
|
9772
|
+
<img fetchPriority='low' loading='lazy' src="${f}" alt="${t.noteRelatedImageAlt}" />
|
|
9771
9773
|
</picture>
|
|
9772
9774
|
<div>
|
|
9773
|
-
<a class="section" href="${
|
|
9775
|
+
<a class="section" href="${m}">${p}</a>
|
|
9774
9776
|
<a class="title" href="${g}">${A}</a>
|
|
9775
9777
|
</div>
|
|
9776
9778
|
</span>
|
|
@@ -9780,39 +9782,86 @@ const Xf = (e) => /* @__PURE__ */ a(
|
|
|
9780
9782
|
return s;
|
|
9781
9783
|
};
|
|
9782
9784
|
async function o0(e, t) {
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
let
|
|
9790
|
-
|
|
9791
|
-
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
m.data.data[0].info.type === "video-youtube" ? g = `<iframe
|
|
9799
|
-
frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen
|
|
9800
|
-
style="position: relative!important;" src="https://www.youtube.com/embed/${m.data.data[0].main.code}"></iframe>` : g = m.data.data[0].main.code, p = `
|
|
9801
|
-
<figure class="videoFigure">
|
|
9802
|
-
${f && f.data && f.data.data && /* @__PURE__ */ h("script", { type: "application/ld+json", children: [
|
|
9803
|
-
"$",
|
|
9804
|
-
Eo(
|
|
9805
|
-
JSON.stringify(f.data.data) || ""
|
|
9806
|
-
)
|
|
9807
|
-
] })}
|
|
9808
|
-
${g}
|
|
9809
|
-
<figcaption>${m.data.data[0].main.description || ""}</figcaption>
|
|
9810
|
-
</figure>
|
|
9811
|
-
`;
|
|
9785
|
+
let n = "", r = 0;
|
|
9786
|
+
const o = /<div\b[^>]*\bclass=(["'])(?:(?!\1).)*\bck-video-player\b(?:(?!\1).)*\1[^>]*>/gi;
|
|
9787
|
+
let s;
|
|
9788
|
+
for (; (s = o.exec(e)) !== null; ) {
|
|
9789
|
+
const i = s.index, c = o.lastIndex;
|
|
9790
|
+
n += e.slice(r, i);
|
|
9791
|
+
let d = 1, l = c;
|
|
9792
|
+
const u = e.length;
|
|
9793
|
+
for (; l < u && d > 0; ) {
|
|
9794
|
+
const C = e.indexOf("<div", l), S = e.indexOf("</div>", l);
|
|
9795
|
+
if (S === -1) {
|
|
9796
|
+
l = u;
|
|
9797
|
+
break;
|
|
9798
|
+
}
|
|
9799
|
+
C !== -1 && C < S ? (d += 1, l = C + 4) : (d -= 1, l = S + 6);
|
|
9812
9800
|
}
|
|
9813
|
-
|
|
9801
|
+
const f = l, m = e.slice(i, f);
|
|
9802
|
+
let p = null;
|
|
9803
|
+
const g = /<span\b([^>]*)>/gi;
|
|
9804
|
+
let A;
|
|
9805
|
+
for (; (A = g.exec(m)) !== null; ) {
|
|
9806
|
+
const C = A[1];
|
|
9807
|
+
if (!C) break;
|
|
9808
|
+
if (/data-type\s*=\s*["']?video["']?/i.test(C)) {
|
|
9809
|
+
const S = C.match(/data-src\s*=\s*["']([^"']+)["']/i);
|
|
9810
|
+
if (S) {
|
|
9811
|
+
p = S[1] ?? "";
|
|
9812
|
+
break;
|
|
9813
|
+
}
|
|
9814
|
+
}
|
|
9815
|
+
}
|
|
9816
|
+
if (!p) {
|
|
9817
|
+
const C = m.match(/<span\b[^>]*data-src=["'][^"']+["'][^>]*>/i);
|
|
9818
|
+
if (C) {
|
|
9819
|
+
const S = C[0].match(/data-src\s*=\s*["']([^"']+)["']/i);
|
|
9820
|
+
S && (p = S[1] ?? "");
|
|
9821
|
+
}
|
|
9822
|
+
}
|
|
9823
|
+
let y = "";
|
|
9824
|
+
if (p)
|
|
9825
|
+
try {
|
|
9826
|
+
const C = await t.iframe({ path: p }), S = t.schema ? await t.schema(p) : null;
|
|
9827
|
+
if (C && C.data) {
|
|
9828
|
+
const _ = C.data.data[0];
|
|
9829
|
+
let T = "";
|
|
9830
|
+
const v = m.match(
|
|
9831
|
+
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
9832
|
+
), x = v && v[1] ? v[1].trim() : "";
|
|
9833
|
+
_.info && _.info.type === "video-youtube" ? T = `<iframe
|
|
9834
|
+
loading="lazy"
|
|
9835
|
+
frameborder="0"
|
|
9836
|
+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
9837
|
+
referrerpolicy="strict-origin-when-cross-origin"
|
|
9838
|
+
allowfullscreen
|
|
9839
|
+
style="position: relative!important;"
|
|
9840
|
+
src="https://www.youtube.com/embed/${_.main?.code || _.main?.youtubeid || ""}"></iframe>` : _.info && _.info.type === "video-link" ? T = `<iframe
|
|
9841
|
+
loading="lazy"
|
|
9842
|
+
frameborder="0"
|
|
9843
|
+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
9844
|
+
referrerpolicy="strict-origin-when-cross-origin"
|
|
9845
|
+
allowfullscreen
|
|
9846
|
+
style="position: relative!important;"
|
|
9847
|
+
src="${_.main?.code || ""}"></iframe>` : T = _.main?.code || "";
|
|
9848
|
+
const j = x || _.main?.description || "";
|
|
9849
|
+
y = `
|
|
9850
|
+
<figure class="videoFigure">
|
|
9851
|
+
${S && S.data && S.data.data ? `<script type="application/ld+json">${Eo(JSON.stringify(S.data.data))}<\/script>` : ""}
|
|
9852
|
+
${T}
|
|
9853
|
+
<figcaption>${j}</figcaption>
|
|
9854
|
+
</figure>
|
|
9855
|
+
`;
|
|
9856
|
+
}
|
|
9857
|
+
} catch (C) {
|
|
9858
|
+
console.error("insertVideos error for", p, C), y = "";
|
|
9859
|
+
}
|
|
9860
|
+
else
|
|
9861
|
+
y = m;
|
|
9862
|
+
r = f, n += y, o.lastIndex = f;
|
|
9814
9863
|
}
|
|
9815
|
-
return
|
|
9864
|
+
return n += e.slice(r), n;
|
|
9816
9865
|
}
|
|
9817
9866
|
async function s0(e) {
|
|
9818
9867
|
const {
|
|
@@ -9908,7 +9957,7 @@ const i0 = "_content_cu8lm_1", c0 = "_title_cu8lm_18", gr = {
|
|
|
9908
9957
|
path: t,
|
|
9909
9958
|
imagesizes: e.preview.sizes[0]?.scale
|
|
9910
9959
|
});
|
|
9911
|
-
if (
|
|
9960
|
+
if (!r) return;
|
|
9912
9961
|
const o = r.data.data[0]?.videos.filter(
|
|
9913
9962
|
(s) => s.type === "video-youtube"
|
|
9914
9963
|
)[0];
|
|
@@ -9935,7 +9984,7 @@ const i0 = "_content_cu8lm_1", c0 = "_title_cu8lm_18", gr = {
|
|
|
9935
9984
|
path: t,
|
|
9936
9985
|
imagesizes: e.preview.sizes[0]?.scale
|
|
9937
9986
|
});
|
|
9938
|
-
if (
|
|
9987
|
+
if (!r) return;
|
|
9939
9988
|
const o = r.data.data[0]?.external?.iframe;
|
|
9940
9989
|
return /* @__PURE__ */ a(
|
|
9941
9990
|
"div",
|
|
@@ -10196,15 +10245,15 @@ const wr = {
|
|
|
10196
10245
|
showTagBySection: i
|
|
10197
10246
|
}) => {
|
|
10198
10247
|
const c = [], l = t, u = Object.keys(e).length / l;
|
|
10199
|
-
for (let
|
|
10200
|
-
for (let
|
|
10201
|
-
const p = "Home_" +
|
|
10248
|
+
for (let f = 1; f <= u; f++)
|
|
10249
|
+
for (let m = 1; m <= l; m++) {
|
|
10250
|
+
const p = "Home_" + f + "_" + m;
|
|
10202
10251
|
!e[p] || !e[p].blockSass || !e[p].blockSass[0] || !e[p].blockSass[0].value || !e[p].blockSass[0].block || e[p].blockSass[0].block === "No Mostrar" || c.push(
|
|
10203
10252
|
/* @__PURE__ */ h(
|
|
10204
10253
|
Ac,
|
|
10205
10254
|
{
|
|
10206
10255
|
show: !!e[p].content?.data,
|
|
10207
|
-
order: (
|
|
10256
|
+
order: (f - 1) * l + (m - 1),
|
|
10208
10257
|
children: [
|
|
10209
10258
|
/* @__PURE__ */ a(
|
|
10210
10259
|
xo,
|
|
@@ -10227,12 +10276,12 @@ const wr = {
|
|
|
10227
10276
|
rt,
|
|
10228
10277
|
{
|
|
10229
10278
|
banners: s,
|
|
10230
|
-
index: "dynamic_" +
|
|
10279
|
+
index: "dynamic_" + f + "_" + m
|
|
10231
10280
|
}
|
|
10232
10281
|
) })
|
|
10233
10282
|
]
|
|
10234
10283
|
},
|
|
10235
|
-
|
|
10284
|
+
f + "_" + m
|
|
10236
10285
|
)
|
|
10237
10286
|
);
|
|
10238
10287
|
}
|
|
@@ -10251,7 +10300,7 @@ const wr = {
|
|
|
10251
10300
|
data: s.slice(0, d),
|
|
10252
10301
|
paths: n.paths
|
|
10253
10302
|
});
|
|
10254
|
-
return /* @__PURE__ */ h(
|
|
10303
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
10255
10304
|
/* @__PURE__ */ a(
|
|
10256
10305
|
Fn,
|
|
10257
10306
|
{
|
|
@@ -10298,9 +10347,9 @@ const wr = {
|
|
|
10298
10347
|
itemList: c = [],
|
|
10299
10348
|
socials: d,
|
|
10300
10349
|
getVideos: l
|
|
10301
|
-
} = e, u = e.slug === "liveblogs";
|
|
10350
|
+
} = e, u = e.slug === "liveblogs", { SHOW_NEWS_MORE_NEWS: f, SHOW_NEWS_RELATED_NEWS: m } = J();
|
|
10302
10351
|
if (!(!s || !s[0]))
|
|
10303
|
-
return /* @__PURE__ */ a(
|
|
10352
|
+
return /* @__PURE__ */ a(Y, { children: /* @__PURE__ */ h(Af, { className: la.contentLayout2, children: [
|
|
10304
10353
|
/* @__PURE__ */ a(
|
|
10305
10354
|
Nf,
|
|
10306
10355
|
{
|
|
@@ -10321,7 +10370,7 @@ const wr = {
|
|
|
10321
10370
|
ranking: n,
|
|
10322
10371
|
bannerTop: /* @__PURE__ */ a(ge, { banners: r ?? [], name: "right_1" }),
|
|
10323
10372
|
banner: /* @__PURE__ */ a(ge, { banners: r ?? [], name: "right_2" }),
|
|
10324
|
-
complement:
|
|
10373
|
+
complement: /* @__PURE__ */ h("div", { id: "comentarios", suppressHydrationWarning: !0, children: [
|
|
10325
10374
|
o.length > 0 && /* @__PURE__ */ a(
|
|
10326
10375
|
ym,
|
|
10327
10376
|
{
|
|
@@ -10372,37 +10421,42 @@ const wr = {
|
|
|
10372
10421
|
}
|
|
10373
10422
|
),
|
|
10374
10423
|
/* @__PURE__ */ a(ht, { children: /* @__PURE__ */ a(rt, { banners: r, index: 2 }) }),
|
|
10375
|
-
/* @__PURE__ */
|
|
10376
|
-
|
|
10377
|
-
|
|
10378
|
-
|
|
10379
|
-
|
|
10380
|
-
|
|
10381
|
-
|
|
10382
|
-
|
|
10383
|
-
|
|
10384
|
-
|
|
10385
|
-
|
|
10424
|
+
m && /* @__PURE__ */ h(Y, { children: [
|
|
10425
|
+
/* @__PURE__ */ a(
|
|
10426
|
+
xo,
|
|
10427
|
+
{
|
|
10428
|
+
component: "Carrusel card",
|
|
10429
|
+
banners: [],
|
|
10430
|
+
slot_id: "Nota_1",
|
|
10431
|
+
data: {
|
|
10432
|
+
...e.stylesConfig["Carrusel card"],
|
|
10433
|
+
content: e.relatedNewsList ?? [],
|
|
10434
|
+
title: e.texts.relatedNewsTitle,
|
|
10435
|
+
titleUrl: void 0
|
|
10436
|
+
}
|
|
10386
10437
|
}
|
|
10387
|
-
|
|
10388
|
-
|
|
10389
|
-
|
|
10390
|
-
/* @__PURE__ */
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
|
|
10394
|
-
|
|
10395
|
-
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10399
|
-
|
|
10400
|
-
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10438
|
+
),
|
|
10439
|
+
/* @__PURE__ */ a(ht, { children: /* @__PURE__ */ a(rt, { banners: r, index: 3 }) })
|
|
10440
|
+
] }),
|
|
10441
|
+
f && /* @__PURE__ */ h(Y, { children: [
|
|
10442
|
+
/* @__PURE__ */ a(me, { title: e.texts.moreNewsTitle, children: /* @__PURE__ */ a(
|
|
10443
|
+
"div",
|
|
10444
|
+
{
|
|
10445
|
+
suppressHydrationWarning: !0,
|
|
10446
|
+
"data-hydrate": "LazyLoader",
|
|
10447
|
+
"data-props": encodeURIComponent(
|
|
10448
|
+
JSON.stringify({
|
|
10449
|
+
render: "more",
|
|
10450
|
+
stylesConfig: e.stylesConfig,
|
|
10451
|
+
section: s[0].info.section?.slug ?? "",
|
|
10452
|
+
currentNews: s[0]
|
|
10453
|
+
})
|
|
10454
|
+
)
|
|
10455
|
+
}
|
|
10456
|
+
) }),
|
|
10457
|
+
/* @__PURE__ */ a(ht, { children: /* @__PURE__ */ a(rt, { banners: r, index: 4 }) })
|
|
10458
|
+
] }),
|
|
10459
|
+
t && t()
|
|
10406
10460
|
]
|
|
10407
10461
|
}
|
|
10408
10462
|
)
|
|
@@ -10539,7 +10593,7 @@ const wr = {
|
|
|
10539
10593
|
}
|
|
10540
10594
|
);
|
|
10541
10595
|
default:
|
|
10542
|
-
return /* @__PURE__ */ a(
|
|
10596
|
+
return /* @__PURE__ */ a(Y, {});
|
|
10543
10597
|
}
|
|
10544
10598
|
}, z0 = "_content_gxziw_1", H0 = "_buttonStyled_gxziw_9", V0 = "_searchStyled_gxziw_21", F0 = "_inputStyled_gxziw_32", W0 = "_inputStyledTest_gxziw_51", Ot = {
|
|
10545
10599
|
content: z0,
|
|
@@ -10602,14 +10656,14 @@ const wr = {
|
|
|
10602
10656
|
currentPage: d,
|
|
10603
10657
|
slug: l,
|
|
10604
10658
|
texts: u = {}
|
|
10605
|
-
} = e,
|
|
10659
|
+
} = e, f = [5, 10, 15], m = {
|
|
10606
10660
|
5: 1,
|
|
10607
10661
|
10: 2,
|
|
10608
10662
|
15: 3
|
|
10609
10663
|
};
|
|
10610
10664
|
switch (n) {
|
|
10611
10665
|
case "op1":
|
|
10612
|
-
return /* @__PURE__ */ a(
|
|
10666
|
+
return /* @__PURE__ */ a(Y, { children: /* @__PURE__ */ h(sr, { children: [
|
|
10613
10667
|
/* @__PURE__ */ a(X1, { autor: r[0], autorIcon: e.autorIcon }),
|
|
10614
10668
|
/* @__PURE__ */ a(
|
|
10615
10669
|
vo,
|
|
@@ -10637,7 +10691,7 @@ const wr = {
|
|
|
10637
10691
|
}
|
|
10638
10692
|
),
|
|
10639
10693
|
children: Array.isArray(t) && t?.map((p, g) => /* @__PURE__ */ h(pn, { children: [
|
|
10640
|
-
|
|
10694
|
+
f.includes(g + 1) && /* @__PURE__ */ a(
|
|
10641
10695
|
"div",
|
|
10642
10696
|
{
|
|
10643
10697
|
className: Wn.itemContent + " banner-context",
|
|
@@ -10645,7 +10699,7 @@ const wr = {
|
|
|
10645
10699
|
ge,
|
|
10646
10700
|
{
|
|
10647
10701
|
banners: s ?? [],
|
|
10648
|
-
name: `block_2_${
|
|
10702
|
+
name: `block_2_${m[g + 1]}`
|
|
10649
10703
|
}
|
|
10650
10704
|
)
|
|
10651
10705
|
}
|
|
@@ -10691,9 +10745,9 @@ const wr = {
|
|
|
10691
10745
|
)
|
|
10692
10746
|
] }) });
|
|
10693
10747
|
case "op2":
|
|
10694
|
-
return /* @__PURE__ */ a(
|
|
10748
|
+
return /* @__PURE__ */ a(Y, { children: /* @__PURE__ */ h(sr, { children: [
|
|
10695
10749
|
/* @__PURE__ */ a(du, { autor: r[0], autorIcon: e.autorIcon }),
|
|
10696
|
-
Array.isArray(t) ? /* @__PURE__ */ h(
|
|
10750
|
+
Array.isArray(t) ? /* @__PURE__ */ h(Y, { children: [
|
|
10697
10751
|
/* @__PURE__ */ a(
|
|
10698
10752
|
No,
|
|
10699
10753
|
{
|
|
@@ -10744,7 +10798,7 @@ const wr = {
|
|
|
10744
10798
|
)
|
|
10745
10799
|
] }) });
|
|
10746
10800
|
default:
|
|
10747
|
-
return /* @__PURE__ */ a(
|
|
10801
|
+
return /* @__PURE__ */ a(Y, {});
|
|
10748
10802
|
}
|
|
10749
10803
|
}, Z0 = "_content_pq89v_1", X0 = "_videoContent_pq89v_9", yr = {
|
|
10750
10804
|
content: Z0,
|
|
@@ -10867,7 +10921,7 @@ const wr = {
|
|
|
10867
10921
|
case "op2":
|
|
10868
10922
|
return /* @__PURE__ */ a(_g, { video: e.data[0] });
|
|
10869
10923
|
default:
|
|
10870
|
-
return /* @__PURE__ */ a(
|
|
10924
|
+
return /* @__PURE__ */ a(Y, {});
|
|
10871
10925
|
}
|
|
10872
10926
|
};
|
|
10873
10927
|
function w3({ containerId: e, containerId2: t }) {
|
|
@@ -10881,10 +10935,10 @@ function w3({ containerId: e, containerId2: t }) {
|
|
|
10881
10935
|
if (!r && !o) return;
|
|
10882
10936
|
const s = r?.querySelectorAll("script[src]") ?? [], i = o?.querySelectorAll("script[src]") ?? [];
|
|
10883
10937
|
[...s, ...i].forEach((u) => {
|
|
10884
|
-
const
|
|
10885
|
-
Array.from(u.attributes).forEach((
|
|
10886
|
-
|
|
10887
|
-
}), u.replaceWith(
|
|
10938
|
+
const f = document.createElement("script");
|
|
10939
|
+
Array.from(u.attributes).forEach((m) => {
|
|
10940
|
+
f.setAttribute(m.name, m.value);
|
|
10941
|
+
}), u.replaceWith(f);
|
|
10888
10942
|
});
|
|
10889
10943
|
const d = document.querySelectorAll(
|
|
10890
10944
|
'script[src*="platform.twitter.com/widgets.js"]'
|
|
@@ -10945,7 +10999,7 @@ const Ng = (e) => {
|
|
|
10945
10999
|
}
|
|
10946
11000
|
}
|
|
10947
11001
|
),
|
|
10948
|
-
t && /* @__PURE__ */ h(
|
|
11002
|
+
t && /* @__PURE__ */ h(Y, { children: [
|
|
10949
11003
|
/* @__PURE__ */ a(
|
|
10950
11004
|
"div",
|
|
10951
11005
|
{
|
|
@@ -11049,20 +11103,20 @@ const Ng = (e) => {
|
|
|
11049
11103
|
isVisible: r = !1,
|
|
11050
11104
|
stylesConfig: o
|
|
11051
11105
|
}) => {
|
|
11052
|
-
const [s, i] =
|
|
11106
|
+
const [s, i] = K({ data: Array.from({ length: Cr }, () => Eg) }), [c, d] = K(!1), l = he(async () => {
|
|
11053
11107
|
if (!(c || !t?.info?.link?.internal)) {
|
|
11054
11108
|
d(!0);
|
|
11055
11109
|
try {
|
|
11056
11110
|
const u = new URLSearchParams({
|
|
11057
11111
|
section: e,
|
|
11058
11112
|
currentNewsLink: t.info.link.internal
|
|
11059
|
-
}),
|
|
11060
|
-
if (!
|
|
11061
|
-
throw i(void 0), new Error(`HTTP error! status: ${
|
|
11062
|
-
const
|
|
11113
|
+
}), f = await fetch(`/api/get-more-news?${u}`);
|
|
11114
|
+
if (!f.ok)
|
|
11115
|
+
throw i(void 0), new Error(`HTTP error! status: ${f.status}`);
|
|
11116
|
+
const m = await f.json();
|
|
11063
11117
|
i({
|
|
11064
|
-
...
|
|
11065
|
-
data:
|
|
11118
|
+
...m,
|
|
11119
|
+
data: m.data.slice(0, Cr)
|
|
11066
11120
|
});
|
|
11067
11121
|
} catch (u) {
|
|
11068
11122
|
console.error("[/api/get-more-news] Error:", u.message), i(void 0);
|
|
@@ -11101,8 +11155,8 @@ const Ng = (e) => {
|
|
|
11101
11155
|
info: d,
|
|
11102
11156
|
preview: l,
|
|
11103
11157
|
isVideo: u = !1,
|
|
11104
|
-
config:
|
|
11105
|
-
overImage:
|
|
11158
|
+
config: f,
|
|
11159
|
+
overImage: m = "default",
|
|
11106
11160
|
isTitle: p = !1,
|
|
11107
11161
|
isLarge: g = !1
|
|
11108
11162
|
} = o;
|
|
@@ -11140,8 +11194,8 @@ const Ng = (e) => {
|
|
|
11140
11194
|
info: d,
|
|
11141
11195
|
preview: l,
|
|
11142
11196
|
share: e.share,
|
|
11143
|
-
config:
|
|
11144
|
-
overImage:
|
|
11197
|
+
config: f,
|
|
11198
|
+
overImage: m,
|
|
11145
11199
|
isTitle: p,
|
|
11146
11200
|
paths: o.paths,
|
|
11147
11201
|
isVisible: e.isVisible
|
|
@@ -11198,7 +11252,7 @@ const Ng = (e) => {
|
|
|
11198
11252
|
children: n ? Qe(e.main.subtitle.striped) : e.main.subtitle.striped
|
|
11199
11253
|
}
|
|
11200
11254
|
),
|
|
11201
|
-
(e?.config?.showtime || e.config?.showauthor) && o && /* @__PURE__ */ a(
|
|
11255
|
+
(e?.config?.showtime || e.config?.showauthor) && o && /* @__PURE__ */ a(Y, { children: e.authors?.[0]?.internaluser ? /* @__PURE__ */ a(
|
|
11202
11256
|
L,
|
|
11203
11257
|
{
|
|
11204
11258
|
className: re.correspondentLink,
|
|
@@ -11315,7 +11369,7 @@ async function y3({
|
|
|
11315
11369
|
username: t,
|
|
11316
11370
|
id: n,
|
|
11317
11371
|
type: l
|
|
11318
|
-
}),
|
|
11372
|
+
}), f = `${d}?${u.toString()}`;
|
|
11319
11373
|
try {
|
|
11320
11374
|
console.log("Reporting comment:", {
|
|
11321
11375
|
publication: e,
|
|
@@ -11323,31 +11377,31 @@ async function y3({
|
|
|
11323
11377
|
id: n,
|
|
11324
11378
|
type: r,
|
|
11325
11379
|
encodedType: l,
|
|
11326
|
-
url:
|
|
11380
|
+
url: f
|
|
11327
11381
|
});
|
|
11328
|
-
const
|
|
11382
|
+
const m = await oe.post(f, null, {
|
|
11329
11383
|
headers: {
|
|
11330
11384
|
"User-Agent": "Bluestack",
|
|
11331
11385
|
"x-api-token": i,
|
|
11332
11386
|
"Content-Type": "application/json"
|
|
11333
11387
|
}
|
|
11334
11388
|
});
|
|
11335
|
-
if (console.log("Report response:",
|
|
11389
|
+
if (console.log("Report response:", m.data), m.status === 200 || m.status === 201)
|
|
11336
11390
|
return {
|
|
11337
11391
|
type: "success",
|
|
11338
11392
|
message: "Comentario reportado exitosamente",
|
|
11339
|
-
status:
|
|
11340
|
-
data:
|
|
11393
|
+
status: m.status,
|
|
11394
|
+
data: m.data
|
|
11341
11395
|
};
|
|
11342
|
-
throw new Error(`Respuesta inesperada del servidor: ${
|
|
11343
|
-
} catch (
|
|
11344
|
-
if (console.error("Error reporting comment:",
|
|
11345
|
-
const p =
|
|
11396
|
+
throw new Error(`Respuesta inesperada del servidor: ${m.status}`);
|
|
11397
|
+
} catch (m) {
|
|
11398
|
+
if (console.error("Error reporting comment:", m), oe.isAxiosError(m)) {
|
|
11399
|
+
const p = m.response?.status, g = m.response?.data;
|
|
11346
11400
|
throw p === 400 ? new Error("Datos inválidos para el reporte") : p === 401 ? new Error("Token de API inválido") : p === 403 ? new Error("Acceso denegado para reportar comentario") : p === 404 ? new Error("Comentario no encontrado") : p === 409 ? new Error("El comentario ya fue reportado por este usuario") : p === 500 ? new Error("Error interno del servidor CMS") : new Error(
|
|
11347
11401
|
g?.error || g?.message || `Error HTTP ${p}: No se pudo reportar el comentario`
|
|
11348
11402
|
);
|
|
11349
11403
|
}
|
|
11350
|
-
throw
|
|
11404
|
+
throw m;
|
|
11351
11405
|
}
|
|
11352
11406
|
}
|
|
11353
11407
|
const Ye = {
|
|
@@ -11407,28 +11461,28 @@ var _r;
|
|
|
11407
11461
|
function Zg() {
|
|
11408
11462
|
if (_r) return ne;
|
|
11409
11463
|
_r = 1;
|
|
11410
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112,
|
|
11411
|
-
function _(
|
|
11412
|
-
if (typeof
|
|
11413
|
-
var x =
|
|
11464
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
11465
|
+
function _(v) {
|
|
11466
|
+
if (typeof v == "object" && v !== null) {
|
|
11467
|
+
var x = v.$$typeof;
|
|
11414
11468
|
switch (x) {
|
|
11415
11469
|
case t:
|
|
11416
|
-
switch (
|
|
11470
|
+
switch (v = v.type, v) {
|
|
11417
11471
|
case d:
|
|
11418
11472
|
case l:
|
|
11419
11473
|
case r:
|
|
11420
11474
|
case s:
|
|
11421
11475
|
case o:
|
|
11422
|
-
case
|
|
11423
|
-
return
|
|
11476
|
+
case f:
|
|
11477
|
+
return v;
|
|
11424
11478
|
default:
|
|
11425
|
-
switch (
|
|
11479
|
+
switch (v = v && v.$$typeof, v) {
|
|
11426
11480
|
case c:
|
|
11427
11481
|
case u:
|
|
11428
11482
|
case g:
|
|
11429
11483
|
case p:
|
|
11430
11484
|
case i:
|
|
11431
|
-
return
|
|
11485
|
+
return v;
|
|
11432
11486
|
default:
|
|
11433
11487
|
return x;
|
|
11434
11488
|
}
|
|
@@ -11438,45 +11492,45 @@ function Zg() {
|
|
|
11438
11492
|
}
|
|
11439
11493
|
}
|
|
11440
11494
|
}
|
|
11441
|
-
function T(
|
|
11442
|
-
return _(
|
|
11443
|
-
}
|
|
11444
|
-
return ne.AsyncMode = d, ne.ConcurrentMode = l, ne.ContextConsumer = c, ne.ContextProvider = i, ne.Element = t, ne.ForwardRef = u, ne.Fragment = r, ne.Lazy = g, ne.Memo = p, ne.Portal = n, ne.Profiler = s, ne.StrictMode = o, ne.Suspense =
|
|
11445
|
-
return T(
|
|
11446
|
-
}, ne.isConcurrentMode = T, ne.isContextConsumer = function(
|
|
11447
|
-
return _(
|
|
11448
|
-
}, ne.isContextProvider = function(
|
|
11449
|
-
return _(
|
|
11450
|
-
}, ne.isElement = function(
|
|
11451
|
-
return typeof
|
|
11452
|
-
}, ne.isForwardRef = function(
|
|
11453
|
-
return _(
|
|
11454
|
-
}, ne.isFragment = function(
|
|
11455
|
-
return _(
|
|
11456
|
-
}, ne.isLazy = function(
|
|
11457
|
-
return _(
|
|
11458
|
-
}, ne.isMemo = function(
|
|
11459
|
-
return _(
|
|
11460
|
-
}, ne.isPortal = function(
|
|
11461
|
-
return _(
|
|
11462
|
-
}, ne.isProfiler = function(
|
|
11463
|
-
return _(
|
|
11464
|
-
}, ne.isStrictMode = function(
|
|
11465
|
-
return _(
|
|
11466
|
-
}, ne.isSuspense = function(
|
|
11467
|
-
return _(
|
|
11468
|
-
}, ne.isValidElementType = function(
|
|
11469
|
-
return typeof
|
|
11495
|
+
function T(v) {
|
|
11496
|
+
return _(v) === l;
|
|
11497
|
+
}
|
|
11498
|
+
return ne.AsyncMode = d, ne.ConcurrentMode = l, ne.ContextConsumer = c, ne.ContextProvider = i, ne.Element = t, ne.ForwardRef = u, ne.Fragment = r, ne.Lazy = g, ne.Memo = p, ne.Portal = n, ne.Profiler = s, ne.StrictMode = o, ne.Suspense = f, ne.isAsyncMode = function(v) {
|
|
11499
|
+
return T(v) || _(v) === d;
|
|
11500
|
+
}, ne.isConcurrentMode = T, ne.isContextConsumer = function(v) {
|
|
11501
|
+
return _(v) === c;
|
|
11502
|
+
}, ne.isContextProvider = function(v) {
|
|
11503
|
+
return _(v) === i;
|
|
11504
|
+
}, ne.isElement = function(v) {
|
|
11505
|
+
return typeof v == "object" && v !== null && v.$$typeof === t;
|
|
11506
|
+
}, ne.isForwardRef = function(v) {
|
|
11507
|
+
return _(v) === u;
|
|
11508
|
+
}, ne.isFragment = function(v) {
|
|
11509
|
+
return _(v) === r;
|
|
11510
|
+
}, ne.isLazy = function(v) {
|
|
11511
|
+
return _(v) === g;
|
|
11512
|
+
}, ne.isMemo = function(v) {
|
|
11513
|
+
return _(v) === p;
|
|
11514
|
+
}, ne.isPortal = function(v) {
|
|
11515
|
+
return _(v) === n;
|
|
11516
|
+
}, ne.isProfiler = function(v) {
|
|
11517
|
+
return _(v) === s;
|
|
11518
|
+
}, ne.isStrictMode = function(v) {
|
|
11519
|
+
return _(v) === o;
|
|
11520
|
+
}, ne.isSuspense = function(v) {
|
|
11521
|
+
return _(v) === f;
|
|
11522
|
+
}, ne.isValidElementType = function(v) {
|
|
11523
|
+
return typeof v == "string" || typeof v == "function" || v === r || v === l || v === s || v === o || v === f || v === m || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === p || v.$$typeof === i || v.$$typeof === c || v.$$typeof === u || v.$$typeof === y || v.$$typeof === C || v.$$typeof === S || v.$$typeof === A);
|
|
11470
11524
|
}, ne.typeOf = _, ne;
|
|
11471
11525
|
}
|
|
11472
11526
|
var ae = {};
|
|
11473
11527
|
var Nr;
|
|
11474
11528
|
function Xg() {
|
|
11475
11529
|
return Nr || (Nr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
11476
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112,
|
|
11530
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
11477
11531
|
function _(R) {
|
|
11478
11532
|
return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
11479
|
-
R === r || R === l || R === s || R === o || R ===
|
|
11533
|
+
R === r || R === l || R === s || R === o || R === f || R === m || typeof R == "object" && R !== null && (R.$$typeof === g || R.$$typeof === p || R.$$typeof === i || R.$$typeof === c || R.$$typeof === u || R.$$typeof === y || R.$$typeof === C || R.$$typeof === S || R.$$typeof === A);
|
|
11480
11534
|
}
|
|
11481
11535
|
function T(R) {
|
|
11482
11536
|
if (typeof R == "object" && R !== null) {
|
|
@@ -11490,7 +11544,7 @@ function Xg() {
|
|
|
11490
11544
|
case r:
|
|
11491
11545
|
case s:
|
|
11492
11546
|
case o:
|
|
11493
|
-
case
|
|
11547
|
+
case f:
|
|
11494
11548
|
return Ft;
|
|
11495
11549
|
default:
|
|
11496
11550
|
var Ua = Ft && Ft.$$typeof;
|
|
@@ -11510,7 +11564,7 @@ function Xg() {
|
|
|
11510
11564
|
}
|
|
11511
11565
|
}
|
|
11512
11566
|
}
|
|
11513
|
-
var
|
|
11567
|
+
var v = d, x = l, j = c, Q = i, te = t, G = u, O = r, ee = g, ce = p, D = n, U = s, E = o, P = f, I = !1;
|
|
11514
11568
|
function H(R) {
|
|
11515
11569
|
return I || (I = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), w(R) || T(R) === d;
|
|
11516
11570
|
}
|
|
@@ -11548,9 +11602,9 @@ function Xg() {
|
|
|
11548
11602
|
return T(R) === o;
|
|
11549
11603
|
}
|
|
11550
11604
|
function ie(R) {
|
|
11551
|
-
return T(R) ===
|
|
11605
|
+
return T(R) === f;
|
|
11552
11606
|
}
|
|
11553
|
-
ae.AsyncMode =
|
|
11607
|
+
ae.AsyncMode = v, ae.ConcurrentMode = x, ae.ContextConsumer = j, ae.ContextProvider = Q, ae.Element = te, ae.ForwardRef = G, ae.Fragment = O, ae.Lazy = ee, ae.Memo = ce, ae.Portal = D, ae.Profiler = U, ae.StrictMode = E, ae.Suspense = P, ae.isAsyncMode = H, ae.isConcurrentMode = w, ae.isContextConsumer = N, ae.isContextProvider = q, ae.isElement = M, ae.isForwardRef = B, ae.isFragment = z, ae.isLazy = V, ae.isMemo = F, ae.isPortal = Z, ae.isProfiler = X, ae.isStrictMode = W, ae.isSuspense = ie, ae.isValidElementType = _, ae.typeOf = T;
|
|
11554
11608
|
})()), ae;
|
|
11555
11609
|
}
|
|
11556
11610
|
var Sr;
|
|
@@ -11592,12 +11646,12 @@ function ep() {
|
|
|
11592
11646
|
return $n = o() ? Object.assign : function(s, i) {
|
|
11593
11647
|
for (var c, d = r(s), l, u = 1; u < arguments.length; u++) {
|
|
11594
11648
|
c = Object(arguments[u]);
|
|
11595
|
-
for (var
|
|
11596
|
-
t.call(c,
|
|
11649
|
+
for (var f in c)
|
|
11650
|
+
t.call(c, f) && (d[f] = c[f]);
|
|
11597
11651
|
if (e) {
|
|
11598
11652
|
l = e(c);
|
|
11599
|
-
for (var
|
|
11600
|
-
n.call(c, l[
|
|
11653
|
+
for (var m = 0; m < l.length; m++)
|
|
11654
|
+
n.call(c, l[m]) && (d[l[m]] = c[l[m]]);
|
|
11601
11655
|
}
|
|
11602
11656
|
}
|
|
11603
11657
|
return d;
|
|
@@ -11635,25 +11689,25 @@ function tp() {
|
|
|
11635
11689
|
if (process.env.NODE_ENV !== "production") {
|
|
11636
11690
|
for (var u in s)
|
|
11637
11691
|
if (r(s, u)) {
|
|
11638
|
-
var
|
|
11692
|
+
var f;
|
|
11639
11693
|
try {
|
|
11640
11694
|
if (typeof s[u] != "function") {
|
|
11641
|
-
var
|
|
11695
|
+
var m = Error(
|
|
11642
11696
|
(d || "React class") + ": " + c + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
11643
11697
|
);
|
|
11644
|
-
throw
|
|
11698
|
+
throw m.name = "Invariant Violation", m;
|
|
11645
11699
|
}
|
|
11646
|
-
|
|
11700
|
+
f = s[u](i, u, d, c, null, t);
|
|
11647
11701
|
} catch (g) {
|
|
11648
|
-
|
|
11702
|
+
f = g;
|
|
11649
11703
|
}
|
|
11650
|
-
if (
|
|
11651
|
-
(d || "React class") + ": type specification of " + c + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
11652
|
-
),
|
|
11653
|
-
n[
|
|
11704
|
+
if (f && !(f instanceof Error) && e(
|
|
11705
|
+
(d || "React class") + ": type specification of " + c + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
11706
|
+
), f instanceof Error && !(f.message in n)) {
|
|
11707
|
+
n[f.message] = !0;
|
|
11654
11708
|
var p = l ? l() : "";
|
|
11655
11709
|
e(
|
|
11656
|
-
"Failed " + c + " type: " +
|
|
11710
|
+
"Failed " + c + " type: " + f.message + (p ?? "")
|
|
11657
11711
|
);
|
|
11658
11712
|
}
|
|
11659
11713
|
}
|
|
@@ -11682,12 +11736,12 @@ function np() {
|
|
|
11682
11736
|
}
|
|
11683
11737
|
return Zn = function(c, d) {
|
|
11684
11738
|
var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
11685
|
-
function
|
|
11739
|
+
function f(w) {
|
|
11686
11740
|
var N = w && (l && w[l] || w[u]);
|
|
11687
11741
|
if (typeof N == "function")
|
|
11688
11742
|
return N;
|
|
11689
11743
|
}
|
|
11690
|
-
var
|
|
11744
|
+
var m = "<<anonymous>>", p = {
|
|
11691
11745
|
array: C("array"),
|
|
11692
11746
|
bigint: C("bigint"),
|
|
11693
11747
|
bool: C("boolean"),
|
|
@@ -11699,7 +11753,7 @@ function np() {
|
|
|
11699
11753
|
any: S(),
|
|
11700
11754
|
arrayOf: _,
|
|
11701
11755
|
element: T(),
|
|
11702
|
-
elementType:
|
|
11756
|
+
elementType: v(),
|
|
11703
11757
|
instanceOf: x,
|
|
11704
11758
|
node: G(),
|
|
11705
11759
|
objectOf: Q,
|
|
@@ -11719,7 +11773,7 @@ function np() {
|
|
|
11719
11773
|
if (process.env.NODE_ENV !== "production")
|
|
11720
11774
|
var N = {}, q = 0;
|
|
11721
11775
|
function M(z, V, F, Z, X, W, ie) {
|
|
11722
|
-
if (Z = Z ||
|
|
11776
|
+
if (Z = Z || m, W = W || F, ie !== n) {
|
|
11723
11777
|
if (d) {
|
|
11724
11778
|
var R = new Error(
|
|
11725
11779
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -11784,7 +11838,7 @@ function np() {
|
|
|
11784
11838
|
}
|
|
11785
11839
|
return y(w);
|
|
11786
11840
|
}
|
|
11787
|
-
function
|
|
11841
|
+
function v() {
|
|
11788
11842
|
function w(N, q, M, B, z) {
|
|
11789
11843
|
var V = N[q];
|
|
11790
11844
|
if (!e.isValidElementType(V)) {
|
|
@@ -11798,7 +11852,7 @@ function np() {
|
|
|
11798
11852
|
function x(w) {
|
|
11799
11853
|
function N(q, M, B, z, V) {
|
|
11800
11854
|
if (!(q[M] instanceof w)) {
|
|
11801
|
-
var F = w.name ||
|
|
11855
|
+
var F = w.name || m, Z = H(q[M]);
|
|
11802
11856
|
return new A("Invalid " + z + " `" + V + "` of type " + ("`" + Z + "` supplied to `" + B + "`, expected ") + ("instance of `" + F + "`."));
|
|
11803
11857
|
}
|
|
11804
11858
|
return null;
|
|
@@ -11925,7 +11979,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
11925
11979
|
return w.every(D);
|
|
11926
11980
|
if (w === null || c(w))
|
|
11927
11981
|
return !0;
|
|
11928
|
-
var N =
|
|
11982
|
+
var N = f(w);
|
|
11929
11983
|
if (N) {
|
|
11930
11984
|
var q = N.call(w), M;
|
|
11931
11985
|
if (N !== w.entries) {
|
|
@@ -11979,7 +12033,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
11979
12033
|
}
|
|
11980
12034
|
}
|
|
11981
12035
|
function H(w) {
|
|
11982
|
-
return !w.constructor || !w.constructor.name ?
|
|
12036
|
+
return !w.constructor || !w.constructor.name ? m : w.constructor.name;
|
|
11983
12037
|
}
|
|
11984
12038
|
return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
|
|
11985
12039
|
}, Zn;
|
|
@@ -11994,12 +12048,12 @@ function ap() {
|
|
|
11994
12048
|
function n() {
|
|
11995
12049
|
}
|
|
11996
12050
|
return n.resetWarningCache = t, Xn = function() {
|
|
11997
|
-
function r(i, c, d, l, u,
|
|
11998
|
-
if (
|
|
11999
|
-
var
|
|
12051
|
+
function r(i, c, d, l, u, f) {
|
|
12052
|
+
if (f !== e) {
|
|
12053
|
+
var m = new Error(
|
|
12000
12054
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
12001
12055
|
);
|
|
12002
|
-
throw
|
|
12056
|
+
throw m.name = "Invariant Violation", m;
|
|
12003
12057
|
}
|
|
12004
12058
|
}
|
|
12005
12059
|
r.isRequired = r;
|
|
@@ -12213,17 +12267,17 @@ function lp() {
|
|
|
12213
12267
|
function i(g) {
|
|
12214
12268
|
return e.isMemo(g) ? o : s[g.$$typeof] || t;
|
|
12215
12269
|
}
|
|
12216
|
-
var c = Object.defineProperty, d = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, u = Object.getOwnPropertyDescriptor,
|
|
12270
|
+
var c = Object.defineProperty, d = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, u = Object.getOwnPropertyDescriptor, f = Object.getPrototypeOf, m = Object.prototype;
|
|
12217
12271
|
function p(g, A, y) {
|
|
12218
12272
|
if (typeof A != "string") {
|
|
12219
|
-
if (
|
|
12220
|
-
var C =
|
|
12221
|
-
C && C !==
|
|
12273
|
+
if (m) {
|
|
12274
|
+
var C = f(A);
|
|
12275
|
+
C && C !== m && p(g, C, y);
|
|
12222
12276
|
}
|
|
12223
12277
|
var S = d(A);
|
|
12224
12278
|
l && (S = S.concat(l(A)));
|
|
12225
|
-
for (var _ = i(g), T = i(A),
|
|
12226
|
-
var x = S[
|
|
12279
|
+
for (var _ = i(g), T = i(A), v = 0; v < S.length; ++v) {
|
|
12280
|
+
var x = S[v];
|
|
12227
12281
|
if (!n[x] && !(y && y[x]) && !(T && T[x]) && !(_ && _[x])) {
|
|
12228
12282
|
var j = u(A, x);
|
|
12229
12283
|
try {
|
|
@@ -12264,87 +12318,87 @@ function gp(e, t) {
|
|
|
12264
12318
|
return t = t || {}, function(r) {
|
|
12265
12319
|
var o = r.displayName || r.name || "Component", s = /* @__PURE__ */ (function(c) {
|
|
12266
12320
|
mp(d, c);
|
|
12267
|
-
function d(u,
|
|
12268
|
-
var
|
|
12269
|
-
return
|
|
12321
|
+
function d(u, f) {
|
|
12322
|
+
var m;
|
|
12323
|
+
return m = c.call(this, u, f) || this, m.state = {}, m.__scriptURL = "", m;
|
|
12270
12324
|
}
|
|
12271
12325
|
var l = d.prototype;
|
|
12272
12326
|
return l.asyncScriptLoaderGetScriptLoaderID = function() {
|
|
12273
12327
|
return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + fp++), this.__scriptLoaderID;
|
|
12274
12328
|
}, l.setupScriptURL = function() {
|
|
12275
12329
|
return this.__scriptURL = typeof e == "function" ? e() : e, this.__scriptURL;
|
|
12276
|
-
}, l.asyncScriptLoaderHandleLoad = function(
|
|
12277
|
-
var
|
|
12278
|
-
this.setState(
|
|
12279
|
-
return
|
|
12330
|
+
}, l.asyncScriptLoaderHandleLoad = function(f) {
|
|
12331
|
+
var m = this;
|
|
12332
|
+
this.setState(f, function() {
|
|
12333
|
+
return m.props.asyncScriptOnLoad && m.props.asyncScriptOnLoad(m.state);
|
|
12280
12334
|
});
|
|
12281
12335
|
}, l.asyncScriptLoaderTriggerOnScriptLoaded = function() {
|
|
12282
|
-
var
|
|
12283
|
-
if (!
|
|
12336
|
+
var f = Le[this.__scriptURL];
|
|
12337
|
+
if (!f || !f.loaded)
|
|
12284
12338
|
throw new Error("Script is not loaded.");
|
|
12285
|
-
for (var
|
|
12286
|
-
|
|
12339
|
+
for (var m in f.observers)
|
|
12340
|
+
f.observers[m](f);
|
|
12287
12341
|
delete window[t.callbackName];
|
|
12288
12342
|
}, l.componentDidMount = function() {
|
|
12289
|
-
var
|
|
12290
|
-
if (A && typeof window[A] < "u" && (Le[
|
|
12343
|
+
var f = this, m = this.setupScriptURL(), p = this.asyncScriptLoaderGetScriptLoaderID(), g = t, A = g.globalName, y = g.callbackName, C = g.scriptId;
|
|
12344
|
+
if (A && typeof window[A] < "u" && (Le[m] = {
|
|
12291
12345
|
loaded: !0,
|
|
12292
12346
|
observers: {}
|
|
12293
|
-
}), Le[
|
|
12294
|
-
var S = Le[
|
|
12347
|
+
}), Le[m]) {
|
|
12348
|
+
var S = Le[m];
|
|
12295
12349
|
if (S && (S.loaded || S.errored)) {
|
|
12296
12350
|
this.asyncScriptLoaderHandleLoad(S);
|
|
12297
12351
|
return;
|
|
12298
12352
|
}
|
|
12299
12353
|
S.observers[p] = function(j) {
|
|
12300
|
-
return
|
|
12354
|
+
return f.asyncScriptLoaderHandleLoad(j);
|
|
12301
12355
|
};
|
|
12302
12356
|
return;
|
|
12303
12357
|
}
|
|
12304
12358
|
var _ = {};
|
|
12305
12359
|
_[p] = function(j) {
|
|
12306
|
-
return
|
|
12307
|
-
}, Le[
|
|
12360
|
+
return f.asyncScriptLoaderHandleLoad(j);
|
|
12361
|
+
}, Le[m] = {
|
|
12308
12362
|
loaded: !1,
|
|
12309
12363
|
observers: _
|
|
12310
12364
|
};
|
|
12311
12365
|
var T = document.createElement("script");
|
|
12312
|
-
T.src =
|
|
12313
|
-
for (var
|
|
12314
|
-
T.setAttribute(
|
|
12366
|
+
T.src = m, T.async = !0;
|
|
12367
|
+
for (var v in t.attributes)
|
|
12368
|
+
T.setAttribute(v, t.attributes[v]);
|
|
12315
12369
|
C && (T.id = C);
|
|
12316
12370
|
var x = function(Q) {
|
|
12317
|
-
if (Le[
|
|
12318
|
-
var te = Le[
|
|
12371
|
+
if (Le[m]) {
|
|
12372
|
+
var te = Le[m], G = te.observers;
|
|
12319
12373
|
for (var O in G)
|
|
12320
12374
|
Q(G[O]) && delete G[O];
|
|
12321
12375
|
}
|
|
12322
12376
|
};
|
|
12323
12377
|
y && typeof window < "u" && (window[y] = function() {
|
|
12324
|
-
return
|
|
12378
|
+
return f.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
12325
12379
|
}), T.onload = function() {
|
|
12326
|
-
var j = Le[
|
|
12380
|
+
var j = Le[m];
|
|
12327
12381
|
j && (j.loaded = !0, x(function(Q) {
|
|
12328
12382
|
return y ? !1 : (Q(j), !0);
|
|
12329
12383
|
}));
|
|
12330
12384
|
}, T.onerror = function() {
|
|
12331
|
-
var j = Le[
|
|
12385
|
+
var j = Le[m];
|
|
12332
12386
|
j && (j.errored = !0, x(function(Q) {
|
|
12333
12387
|
return Q(j), !0;
|
|
12334
12388
|
}));
|
|
12335
12389
|
}, document.body.appendChild(T);
|
|
12336
12390
|
}, l.componentWillUnmount = function() {
|
|
12337
|
-
var
|
|
12391
|
+
var f = this.__scriptURL;
|
|
12338
12392
|
if (t.removeOnUnmount === !0)
|
|
12339
|
-
for (var
|
|
12340
|
-
|
|
12341
|
-
var g = Le[
|
|
12342
|
-
g && (delete g.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete Le[
|
|
12393
|
+
for (var m = document.getElementsByTagName("script"), p = 0; p < m.length; p += 1)
|
|
12394
|
+
m[p].src.indexOf(f) > -1 && m[p].parentNode && m[p].parentNode.removeChild(m[p]);
|
|
12395
|
+
var g = Le[f];
|
|
12396
|
+
g && (delete g.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete Le[f]);
|
|
12343
12397
|
}, l.render = function() {
|
|
12344
|
-
var
|
|
12345
|
-
|
|
12346
|
-
var p =
|
|
12347
|
-
return
|
|
12398
|
+
var f = t.globalName, m = this.props;
|
|
12399
|
+
m.asyncScriptOnLoad;
|
|
12400
|
+
var p = m.forwardedRef, g = hp(m, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
12401
|
+
return f && typeof window < "u" && (g[f] = typeof window[f] < "u" ? window[f] : void 0), g.ref = p, st(r, g);
|
|
12348
12402
|
}, d;
|
|
12349
12403
|
})(jo), i = Pr(function(c, d) {
|
|
12350
12404
|
return st(s, ha({}, c, {
|
|
@@ -12417,9 +12471,9 @@ const Uo = gp(Ap, {
|
|
|
12417
12471
|
username: o,
|
|
12418
12472
|
CAPTCHA_KEY_V2: s
|
|
12419
12473
|
}) => {
|
|
12420
|
-
const [i, c] =
|
|
12474
|
+
const [i, c] = K("form"), [d, l] = K(
|
|
12421
12475
|
""
|
|
12422
|
-
), [u,
|
|
12476
|
+
), [u, f] = K(""), [m, p] = K(""), g = [
|
|
12423
12477
|
{ id: "spam", label: Ye.spam },
|
|
12424
12478
|
{
|
|
12425
12479
|
id: "inappropriate",
|
|
@@ -12439,10 +12493,10 @@ const Uo = gp(Ap, {
|
|
|
12439
12493
|
], A = async () => {
|
|
12440
12494
|
if (!(!d || !n)) {
|
|
12441
12495
|
if (Io(document).includes(n)) {
|
|
12442
|
-
|
|
12496
|
+
f("Ya has reportado este comentario.");
|
|
12443
12497
|
return;
|
|
12444
12498
|
}
|
|
12445
|
-
c("loading"),
|
|
12499
|
+
c("loading"), f("");
|
|
12446
12500
|
try {
|
|
12447
12501
|
const S = await (await fetch("/api/comments-report", {
|
|
12448
12502
|
method: "POST",
|
|
@@ -12453,7 +12507,7 @@ const Uo = gp(Ap, {
|
|
|
12453
12507
|
publication: r,
|
|
12454
12508
|
username: o,
|
|
12455
12509
|
id: n,
|
|
12456
|
-
captchaToken:
|
|
12510
|
+
captchaToken: m,
|
|
12457
12511
|
type: Ye[d]
|
|
12458
12512
|
// Enviamos el label completo
|
|
12459
12513
|
})
|
|
@@ -12465,17 +12519,17 @@ const Uo = gp(Ap, {
|
|
|
12465
12519
|
else
|
|
12466
12520
|
throw new Error(S.message || "Error al reportar comentario");
|
|
12467
12521
|
} catch (C) {
|
|
12468
|
-
console.error("Error reporting comment:", C),
|
|
12522
|
+
console.error("Error reporting comment:", C), f(C.message || "Error al reportar comentario"), c("form");
|
|
12469
12523
|
}
|
|
12470
12524
|
}
|
|
12471
12525
|
}, y = () => {
|
|
12472
|
-
c("form"), l(""),
|
|
12526
|
+
c("form"), l(""), f(""), t();
|
|
12473
12527
|
};
|
|
12474
12528
|
return !e || !n || !o ? null : /* @__PURE__ */ a("div", { className: ue.overlay, children: /* @__PURE__ */ h("div", { className: ue.popup, children: [
|
|
12475
12529
|
/* @__PURE__ */ a("button", { className: "close-reply-form", onClick: y, children: /* @__PURE__ */ a(It, {}) }),
|
|
12476
12530
|
/* @__PURE__ */ a("h2", { className: ue.title, children: "Reportar Abuso" }),
|
|
12477
12531
|
i === "loading" && /* @__PURE__ */ a("div", { className: ue.loadingContainer, children: /* @__PURE__ */ a(Ze, {}) }),
|
|
12478
|
-
i === "form" || i === "loading" ? /* @__PURE__ */ h(
|
|
12532
|
+
i === "form" || i === "loading" ? /* @__PURE__ */ h(Y, { children: [
|
|
12479
12533
|
/* @__PURE__ */ a("div", { className: ue.optionsContainer, children: g.map((C) => /* @__PURE__ */ h("label", { className: ue.option, children: [
|
|
12480
12534
|
/* @__PURE__ */ a(
|
|
12481
12535
|
"input",
|
|
@@ -12514,7 +12568,7 @@ const Uo = gp(Ap, {
|
|
|
12514
12568
|
}
|
|
12515
12569
|
)
|
|
12516
12570
|
] })
|
|
12517
|
-
] }) : /* @__PURE__ */ h(
|
|
12571
|
+
] }) : /* @__PURE__ */ h(Y, { children: [
|
|
12518
12572
|
/* @__PURE__ */ h("div", { className: ue.successContainer, children: [
|
|
12519
12573
|
/* @__PURE__ */ a("div", { className: ue.thumbsUp, children: /* @__PURE__ */ a(
|
|
12520
12574
|
"svg",
|
|
@@ -12590,20 +12644,20 @@ async function Vp({
|
|
|
12590
12644
|
throw new Error("Invalid input types for publication or path");
|
|
12591
12645
|
if (!c)
|
|
12592
12646
|
throw new Error("Missing CMS API token");
|
|
12593
|
-
const { PUBLIC_ENV: d, PUBLIC_API_HOST: l, PUBLIC_API_PATH: u, PUBLIC_API_PATH_VERSION:
|
|
12594
|
-
if (isNaN(
|
|
12647
|
+
const { PUBLIC_ENV: d, PUBLIC_API_HOST: l, PUBLIC_API_PATH: u, PUBLIC_API_PATH_VERSION: f } = J(), m = parseInt(String(n), 10), p = parseInt(String(r), 10);
|
|
12648
|
+
if (isNaN(m) || m <= 0)
|
|
12595
12649
|
throw new Error("Invalid size parameter");
|
|
12596
12650
|
if (isNaN(p) || p < 0)
|
|
12597
12651
|
throw new Error("Invalid sizereply parameter");
|
|
12598
12652
|
const g = d !== "prod" ? `${l}${u}` : us(), A = new URLSearchParams({
|
|
12599
12653
|
publication: e,
|
|
12600
12654
|
path: t,
|
|
12601
|
-
size:
|
|
12655
|
+
size: m.toString(),
|
|
12602
12656
|
sizereply: p.toString(),
|
|
12603
12657
|
state: i
|
|
12604
12658
|
});
|
|
12605
12659
|
o && A.append("id", o), s && A.append("lastid", s);
|
|
12606
|
-
const y = `${g}${
|
|
12660
|
+
const y = `${g}${f}/newcomments/get?${A.toString()}`;
|
|
12607
12661
|
try {
|
|
12608
12662
|
console.log("Fetching comments from:", y);
|
|
12609
12663
|
const { data: C } = await oe.get(y, {
|
|
@@ -12626,7 +12680,7 @@ async function Vp({
|
|
|
12626
12680
|
}
|
|
12627
12681
|
}
|
|
12628
12682
|
const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
12629
|
-
const [t, n] =
|
|
12683
|
+
const [t, n] = K(void 0);
|
|
12630
12684
|
return Me(() => {
|
|
12631
12685
|
if (t) return;
|
|
12632
12686
|
(async () => {
|
|
@@ -12826,19 +12880,19 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
12826
12880
|
throw new Error(
|
|
12827
12881
|
`Error al enviar comentario: ${u?.message} status: ${l.status}`
|
|
12828
12882
|
);
|
|
12829
|
-
const
|
|
12883
|
+
const f = Date.now(), m = Math.max(0, 2400 + Math.abs(f - d)), p = {
|
|
12830
12884
|
username: o.username,
|
|
12831
12885
|
firstname: o.firstname,
|
|
12832
12886
|
...o.lastname && { lastname: o.lastname },
|
|
12833
12887
|
...o.picture && { picture: o.picture }
|
|
12834
12888
|
};
|
|
12835
12889
|
return i({
|
|
12836
|
-
id:
|
|
12890
|
+
id: f.toString(),
|
|
12837
12891
|
text: c,
|
|
12838
12892
|
user: p,
|
|
12839
12893
|
date: { time: Date.now() },
|
|
12840
12894
|
reply: []
|
|
12841
|
-
}), t.current && (t.current.value = ""),
|
|
12895
|
+
}), t.current && (t.current.value = ""), m;
|
|
12842
12896
|
} catch (d) {
|
|
12843
12897
|
return console.error("Error enviando comentario:", d), alert(d.message || "Error al enviar el comentario."), !1;
|
|
12844
12898
|
}
|
|
@@ -12851,11 +12905,11 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
12851
12905
|
closeForm: s,
|
|
12852
12906
|
CAPTCHA_KEY_V2: i
|
|
12853
12907
|
}) => {
|
|
12854
|
-
const [c, d] =
|
|
12908
|
+
const [c, d] = K(!0), [l, u] = K(""), f = () => {
|
|
12855
12909
|
t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${ft}`), d(!0), s();
|
|
12856
12910
|
};
|
|
12857
12911
|
return /* @__PURE__ */ h("div", { className: "comment-form reply-form", children: [
|
|
12858
|
-
/* @__PURE__ */ a("button", { className: "close-reply-form", onClick:
|
|
12912
|
+
/* @__PURE__ */ a("button", { className: "close-reply-form", onClick: f, children: /* @__PURE__ */ a(It, {}) }),
|
|
12859
12913
|
/* @__PURE__ */ a(
|
|
12860
12914
|
Bo,
|
|
12861
12915
|
{
|
|
@@ -12874,19 +12928,19 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
12874
12928
|
children: /* @__PURE__ */ a(
|
|
12875
12929
|
Po,
|
|
12876
12930
|
{
|
|
12877
|
-
onClick: async (
|
|
12931
|
+
onClick: async (m) => {
|
|
12878
12932
|
if (c) return;
|
|
12879
12933
|
const p = await Do({
|
|
12880
12934
|
path: r,
|
|
12881
12935
|
ref: t,
|
|
12882
12936
|
captchaToken: l,
|
|
12883
|
-
button:
|
|
12937
|
+
button: m.currentTarget,
|
|
12884
12938
|
user: n,
|
|
12885
12939
|
id: e,
|
|
12886
12940
|
addComment: o
|
|
12887
12941
|
});
|
|
12888
12942
|
return p && typeof p == "number" ? (setTimeout(() => {
|
|
12889
|
-
|
|
12943
|
+
f();
|
|
12890
12944
|
}, p), !0) : !1;
|
|
12891
12945
|
},
|
|
12892
12946
|
isDisabled: c
|
|
@@ -12912,7 +12966,7 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
12912
12966
|
] })
|
|
12913
12967
|
] }) });
|
|
12914
12968
|
}, Xp = ({ comment: e, replyingTo: t, path: n, user: r, handleReplyingTo: o, onFlag: s, CAPTCHA_KEY_V2: i }) => {
|
|
12915
|
-
const c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [d, l] =
|
|
12969
|
+
const c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [d, l] = K(c), [u, f] = xe.useState(!1), { PUBLIC_PUBLICATION_ID: m, PUBLIC_X_SECURITY_TOKEN: p } = J(), g = e.text, A = xe.useRef(null);
|
|
12916
12970
|
let y = `${Je.firstname} ${Je.lastname}`, C = Je.username;
|
|
12917
12971
|
e.user && (y = `${e.user.firstname} ${e.user.lastname}`, C = e.user.username);
|
|
12918
12972
|
const S = (_) => {
|
|
@@ -12965,10 +13019,10 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
12965
13019
|
className: "comment-replies-button reply-button",
|
|
12966
13020
|
onClick: async () => {
|
|
12967
13021
|
const _ = d.reply[d.reply.length - 1]?.id;
|
|
12968
|
-
|
|
13022
|
+
f(!0);
|
|
12969
13023
|
try {
|
|
12970
|
-
const
|
|
12971
|
-
publication:
|
|
13024
|
+
const v = await ka({
|
|
13025
|
+
publication: m ?? "",
|
|
12972
13026
|
path: n ?? "",
|
|
12973
13027
|
size: 2,
|
|
12974
13028
|
sizereply: 2,
|
|
@@ -12977,9 +13031,9 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
12977
13031
|
state: "5,6",
|
|
12978
13032
|
apiToken: p ?? ""
|
|
12979
13033
|
});
|
|
12980
|
-
|
|
13034
|
+
f(!1), l({ morereply: v.morecomment, reply: [...d.reply, ...v.comments] });
|
|
12981
13035
|
} catch (T) {
|
|
12982
|
-
throw
|
|
13036
|
+
throw f(!1), new Error(`Error al obtener comentarios: ${T}`);
|
|
12983
13037
|
}
|
|
12984
13038
|
},
|
|
12985
13039
|
children: "Más Respuestas"
|
|
@@ -12997,7 +13051,7 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
12997
13051
|
addComment: r,
|
|
12998
13052
|
CAPTCHA_KEY_V2: o
|
|
12999
13053
|
}) => {
|
|
13000
|
-
const [s, i] =
|
|
13054
|
+
const [s, i] = K(!0), [c, d] = K("");
|
|
13001
13055
|
return /* @__PURE__ */ h("div", { className: "comment-form", children: [
|
|
13002
13056
|
/* @__PURE__ */ a(
|
|
13003
13057
|
Bo,
|
|
@@ -13044,12 +13098,12 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
13044
13098
|
handleLogout: r,
|
|
13045
13099
|
COMMENTS_VARS: o
|
|
13046
13100
|
}) => {
|
|
13047
|
-
const s = t.replaceAll("/", "|"), [i, c] =
|
|
13101
|
+
const s = t.replaceAll("/", "|"), [i, c] = K(
|
|
13048
13102
|
void 0
|
|
13049
|
-
), [d, l] =
|
|
13103
|
+
), [d, l] = K(""), { comments: u, setComments: f } = $p(s), [m, p] = xe.useState(!1), g = xe.useRef(null), A = (x) => {
|
|
13050
13104
|
l(d === x ? "" : x);
|
|
13051
13105
|
}, y = (x) => {
|
|
13052
|
-
|
|
13106
|
+
f(
|
|
13053
13107
|
u ? {
|
|
13054
13108
|
...u,
|
|
13055
13109
|
comments: [x, ...u.comments ?? []]
|
|
@@ -13074,16 +13128,16 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
13074
13128
|
state: "5,6",
|
|
13075
13129
|
apiToken: n9
|
|
13076
13130
|
});
|
|
13077
|
-
|
|
13131
|
+
f({
|
|
13078
13132
|
morecomment: Q.morecomment ?? !1,
|
|
13079
13133
|
comments: [...u.comments, ...Q.comments]
|
|
13080
13134
|
}), p(!1);
|
|
13081
13135
|
} catch (Q) {
|
|
13082
13136
|
throw p(!1), new Error(`Error al obtener comentarios: ${Q}`);
|
|
13083
13137
|
}
|
|
13084
|
-
}, _ = u?.comments && u.comments.length > 0, T = _ ? "Comparte tu opinión de este artículo." : "Se el primero en compartir tu opinión de este artículo.",
|
|
13085
|
-
return /* @__PURE__ */ h(
|
|
13086
|
-
/* @__PURE__ */ a("div", { className: "comments-container", children: /* @__PURE__ */ a(me, { title: _ || e ? "COMENTARIOS" : !1, children: /* @__PURE__ */ h(
|
|
13138
|
+
}, _ = u?.comments && u.comments.length > 0, T = _ ? "Comparte tu opinión de este artículo." : "Se el primero en compartir tu opinión de este artículo.", v = /* @__PURE__ */ a("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ a(Ze, {}) });
|
|
13139
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
13140
|
+
/* @__PURE__ */ a("div", { className: "comments-container", children: /* @__PURE__ */ a(me, { title: _ || e ? "COMENTARIOS" : !1, children: /* @__PURE__ */ h(Y, { children: [
|
|
13087
13141
|
e && n && /* @__PURE__ */ h("div", { className: "comments-header", children: [
|
|
13088
13142
|
/* @__PURE__ */ a(
|
|
13089
13143
|
kg,
|
|
@@ -13123,11 +13177,11 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
13123
13177
|
},
|
|
13124
13178
|
x.id
|
|
13125
13179
|
)),
|
|
13126
|
-
|
|
13180
|
+
m && v
|
|
13127
13181
|
]
|
|
13128
13182
|
}
|
|
13129
|
-
) : null :
|
|
13130
|
-
u?.morecomment && !
|
|
13183
|
+
) : null : v,
|
|
13184
|
+
u?.morecomment && !m && /* @__PURE__ */ a(
|
|
13131
13185
|
"button",
|
|
13132
13186
|
{
|
|
13133
13187
|
className: "comment-replies-button",
|
|
@@ -13196,7 +13250,7 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
13196
13250
|
}
|
|
13197
13251
|
];
|
|
13198
13252
|
function r9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
13199
|
-
const [r, o] =
|
|
13253
|
+
const [r, o] = K({}), [s, i] = K(!1), [c, d] = K(!1), [l, u] = K(null), [f, m] = K(
|
|
13200
13254
|
"register"
|
|
13201
13255
|
), p = (C, S) => {
|
|
13202
13256
|
o((_) => ({ ..._, [C]: S }));
|
|
@@ -13219,8 +13273,8 @@ function r9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13219
13273
|
u("La contraseña no es válida");
|
|
13220
13274
|
return;
|
|
13221
13275
|
}
|
|
13222
|
-
const
|
|
13223
|
-
S.push({ Name: "updated_at", Value: String(
|
|
13276
|
+
const v = Math.floor(Date.now() / 1e3);
|
|
13277
|
+
S.push({ Name: "updated_at", Value: String(v) });
|
|
13224
13278
|
const x = "token", j = await fetch("/api/auth/create-user", {
|
|
13225
13279
|
method: "POST",
|
|
13226
13280
|
headers: { "Content-Type": "application/json" },
|
|
@@ -13238,12 +13292,12 @@ function r9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13238
13292
|
method: "POST",
|
|
13239
13293
|
headers: { "Content-Type": "application/json" },
|
|
13240
13294
|
body: JSON.stringify({ username: r.email })
|
|
13241
|
-
}),
|
|
13295
|
+
}), m("confirm");
|
|
13242
13296
|
return;
|
|
13243
13297
|
}
|
|
13244
13298
|
throw new Error(Q?.error || "Error al crear usuario");
|
|
13245
13299
|
}
|
|
13246
|
-
|
|
13300
|
+
m("confirm");
|
|
13247
13301
|
} catch (S) {
|
|
13248
13302
|
console.log(S), u(S?.message || S?.error || "Error inesperado");
|
|
13249
13303
|
} finally {
|
|
@@ -13268,15 +13322,15 @@ function r9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13268
13322
|
const _ = await S.json().catch(() => ({}));
|
|
13269
13323
|
throw new Error(_?.error || "Error al confirmar usuario");
|
|
13270
13324
|
}
|
|
13271
|
-
|
|
13325
|
+
m("success");
|
|
13272
13326
|
} catch (S) {
|
|
13273
13327
|
u(S?.message || "Error inesperado");
|
|
13274
13328
|
} finally {
|
|
13275
13329
|
d(!1);
|
|
13276
13330
|
}
|
|
13277
13331
|
}, y = r.password || "";
|
|
13278
|
-
return /* @__PURE__ */ h(
|
|
13279
|
-
|
|
13332
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
13333
|
+
f === "register" && /* @__PURE__ */ h(Y, { children: [
|
|
13280
13334
|
/* @__PURE__ */ h("button", { onClick: t, className: k.google, children: [
|
|
13281
13335
|
/* @__PURE__ */ a(
|
|
13282
13336
|
"img",
|
|
@@ -13310,13 +13364,13 @@ function r9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13310
13364
|
}
|
|
13311
13365
|
),
|
|
13312
13366
|
C === "password" && /* @__PURE__ */ a("div", { className: k.passwordChecker, children: _n.map((_, T) => {
|
|
13313
|
-
const
|
|
13367
|
+
const v = _.test(y);
|
|
13314
13368
|
return /* @__PURE__ */ h(
|
|
13315
13369
|
"div",
|
|
13316
13370
|
{
|
|
13317
|
-
className:
|
|
13371
|
+
className: v ? k.valid : k.invalid,
|
|
13318
13372
|
children: [
|
|
13319
|
-
/* @__PURE__ */ a("div", { children:
|
|
13373
|
+
/* @__PURE__ */ a("div", { children: v ? "✔" : "○" }),
|
|
13320
13374
|
/* @__PURE__ */ a("div", { children: _.label })
|
|
13321
13375
|
]
|
|
13322
13376
|
},
|
|
@@ -13354,7 +13408,7 @@ function r9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13354
13408
|
}
|
|
13355
13409
|
)
|
|
13356
13410
|
] }),
|
|
13357
|
-
|
|
13411
|
+
f === "confirm" && /* @__PURE__ */ h(
|
|
13358
13412
|
"form",
|
|
13359
13413
|
{
|
|
13360
13414
|
onSubmit: A,
|
|
@@ -13384,7 +13438,7 @@ function r9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13384
13438
|
]
|
|
13385
13439
|
}
|
|
13386
13440
|
),
|
|
13387
|
-
|
|
13441
|
+
f === "success" && /* @__PURE__ */ h("form", { className: k.form, children: [
|
|
13388
13442
|
/* @__PURE__ */ h("div", { className: k.successContainer, children: [
|
|
13389
13443
|
/* @__PURE__ */ a("div", { className: k.thumbsUp, children: /* @__PURE__ */ a(
|
|
13390
13444
|
"svg",
|
|
@@ -13409,7 +13463,7 @@ function r9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13409
13463
|
] }),
|
|
13410
13464
|
/* @__PURE__ */ a("button", { onClick: e, className: k.primary, children: "Iniciar sesión" })
|
|
13411
13465
|
] }),
|
|
13412
|
-
|
|
13466
|
+
f === "register" && /* @__PURE__ */ h("p", { className: k.switch, children: [
|
|
13413
13467
|
"¿Ya tenés cuenta?",
|
|
13414
13468
|
/* @__PURE__ */ a("button", { type: "button", onClick: e, children: "Iniciar sesión" })
|
|
13415
13469
|
] })
|
|
@@ -13422,8 +13476,8 @@ function o9({
|
|
|
13422
13476
|
handleGoogleLogin: r,
|
|
13423
13477
|
CAPTCHA_KEY: o
|
|
13424
13478
|
}) {
|
|
13425
|
-
const [s, i] =
|
|
13426
|
-
return console.log("CAPTCHA_KEY", o), /* @__PURE__ */ h(
|
|
13479
|
+
const [s, i] = K("login"), [c, d] = K(""), [l, u] = K(""), [f, m] = K(""), [p, g] = K(""), [A, y] = K(""), [C, S] = K(!1), [_, T] = K(!1), [v, x] = K(null);
|
|
13480
|
+
return console.log("CAPTCHA_KEY", o), /* @__PURE__ */ h(Y, { children: [
|
|
13427
13481
|
s === "login" && /* @__PURE__ */ a(
|
|
13428
13482
|
s9,
|
|
13429
13483
|
{
|
|
@@ -13431,7 +13485,7 @@ function o9({
|
|
|
13431
13485
|
password: l,
|
|
13432
13486
|
showPassword: C,
|
|
13433
13487
|
loading: _,
|
|
13434
|
-
error:
|
|
13488
|
+
error: v,
|
|
13435
13489
|
setEmail: d,
|
|
13436
13490
|
setPassword: u,
|
|
13437
13491
|
setShowPassword: S,
|
|
@@ -13471,7 +13525,7 @@ function o9({
|
|
|
13471
13525
|
email: c,
|
|
13472
13526
|
setEmail: d,
|
|
13473
13527
|
loading: _,
|
|
13474
|
-
error:
|
|
13528
|
+
error: v,
|
|
13475
13529
|
onSubmit: async (G) => {
|
|
13476
13530
|
if (!_) {
|
|
13477
13531
|
G.preventDefault(), x(null), T(!0);
|
|
@@ -13502,13 +13556,13 @@ function o9({
|
|
|
13502
13556
|
c9,
|
|
13503
13557
|
{
|
|
13504
13558
|
email: c,
|
|
13505
|
-
confirmationCode:
|
|
13559
|
+
confirmationCode: f,
|
|
13506
13560
|
newPassword: p,
|
|
13507
13561
|
confirmNewPassword: A,
|
|
13508
13562
|
showPassword: C,
|
|
13509
13563
|
loading: _,
|
|
13510
|
-
error:
|
|
13511
|
-
setConfirmationCode:
|
|
13564
|
+
error: v,
|
|
13565
|
+
setConfirmationCode: m,
|
|
13512
13566
|
setNewPassword: g,
|
|
13513
13567
|
setConfirmNewPassword: y,
|
|
13514
13568
|
setShowPassword: S,
|
|
@@ -13529,7 +13583,7 @@ function o9({
|
|
|
13529
13583
|
const ee = await fetch("/api/auth/confirm-forgot-password", {
|
|
13530
13584
|
method: "POST",
|
|
13531
13585
|
headers: { "Content-Type": "application/json" },
|
|
13532
|
-
body: JSON.stringify({ email: c, code:
|
|
13586
|
+
body: JSON.stringify({ email: c, code: f, newPassword: p })
|
|
13533
13587
|
});
|
|
13534
13588
|
if (!ee.ok) {
|
|
13535
13589
|
const ce = await ee.json().catch(() => ({}));
|
|
@@ -13569,10 +13623,10 @@ function s9({
|
|
|
13569
13623
|
onSubmit: d,
|
|
13570
13624
|
onForgot: l,
|
|
13571
13625
|
onRegister: u,
|
|
13572
|
-
handleGoogleLogin:
|
|
13626
|
+
handleGoogleLogin: f
|
|
13573
13627
|
}) {
|
|
13574
|
-
return /* @__PURE__ */ h(
|
|
13575
|
-
/* @__PURE__ */ h("button", { onClick:
|
|
13628
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
13629
|
+
/* @__PURE__ */ h("button", { onClick: f, className: k.google, children: [
|
|
13576
13630
|
/* @__PURE__ */ a(
|
|
13577
13631
|
"img",
|
|
13578
13632
|
{
|
|
@@ -13598,7 +13652,7 @@ function s9({
|
|
|
13598
13652
|
{
|
|
13599
13653
|
type: "email",
|
|
13600
13654
|
value: e,
|
|
13601
|
-
onChange: (
|
|
13655
|
+
onChange: (m) => s(m.target.value),
|
|
13602
13656
|
className: k.input,
|
|
13603
13657
|
placeholder: ""
|
|
13604
13658
|
}
|
|
@@ -13611,7 +13665,7 @@ function s9({
|
|
|
13611
13665
|
{
|
|
13612
13666
|
type: n ? "text" : "password",
|
|
13613
13667
|
value: t,
|
|
13614
|
-
onChange: (
|
|
13668
|
+
onChange: (m) => i(m.target.value),
|
|
13615
13669
|
className: k.input,
|
|
13616
13670
|
placeholder: ""
|
|
13617
13671
|
}
|
|
@@ -13623,7 +13677,7 @@ function s9({
|
|
|
13623
13677
|
id: "showPasswordLogin",
|
|
13624
13678
|
type: "checkbox",
|
|
13625
13679
|
checked: n,
|
|
13626
|
-
onChange: (
|
|
13680
|
+
onChange: (m) => c(m.target.checked)
|
|
13627
13681
|
}
|
|
13628
13682
|
),
|
|
13629
13683
|
/* @__PURE__ */ a("label", { htmlFor: "showPasswordLogin", className: k.checkboxLabel, children: "Mostrar contraseña" })
|
|
@@ -13698,13 +13752,13 @@ function c9({
|
|
|
13698
13752
|
setNewPassword: d,
|
|
13699
13753
|
setConfirmNewPassword: l,
|
|
13700
13754
|
setShowPassword: u,
|
|
13701
|
-
onSubmit:
|
|
13702
|
-
onBack:
|
|
13755
|
+
onSubmit: f,
|
|
13756
|
+
onBack: m
|
|
13703
13757
|
}) {
|
|
13704
13758
|
return /* @__PURE__ */ h(
|
|
13705
13759
|
"form",
|
|
13706
13760
|
{
|
|
13707
|
-
onSubmit:
|
|
13761
|
+
onSubmit: f,
|
|
13708
13762
|
className: k.form,
|
|
13709
13763
|
"data-error": i ? "true" : "false",
|
|
13710
13764
|
children: [
|
|
@@ -13792,7 +13846,7 @@ function c9({
|
|
|
13792
13846
|
children: s ? /* @__PURE__ */ a(Ze, {}) : "Cambiar contraseña"
|
|
13793
13847
|
}
|
|
13794
13848
|
),
|
|
13795
|
-
/* @__PURE__ */ a("p", { className: k.switch, children: /* @__PURE__ */ a("button", { type: "button", onClick:
|
|
13849
|
+
/* @__PURE__ */ a("p", { className: k.switch, children: /* @__PURE__ */ a("button", { type: "button", onClick: m, children: "Volver" }) })
|
|
13796
13850
|
]
|
|
13797
13851
|
}
|
|
13798
13852
|
);
|
|
@@ -13810,7 +13864,7 @@ function d9({
|
|
|
13810
13864
|
icon: r,
|
|
13811
13865
|
COMMENTS_VARS: o
|
|
13812
13866
|
}) {
|
|
13813
|
-
const [s, i] =
|
|
13867
|
+
const [s, i] = K("login"), c = async () => {
|
|
13814
13868
|
{
|
|
13815
13869
|
await fetch("/api/auth/debug-login", { method: "GET", credentials: "include" }), localStorage.setItem("cognito-login", "success:" + Date.now()), t(), n();
|
|
13816
13870
|
return;
|
|
@@ -13873,7 +13927,7 @@ function u9({
|
|
|
13873
13927
|
COMMENTS_VARS: c
|
|
13874
13928
|
}) {
|
|
13875
13929
|
const [d, l] = xe.useState(!1);
|
|
13876
|
-
return /* @__PURE__ */ h(
|
|
13930
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
13877
13931
|
d && /* @__PURE__ */ a(
|
|
13878
13932
|
d9,
|
|
13879
13933
|
{
|
|
@@ -13892,8 +13946,8 @@ function u9({
|
|
|
13892
13946
|
"a",
|
|
13893
13947
|
{
|
|
13894
13948
|
href: n,
|
|
13895
|
-
onClick: async (
|
|
13896
|
-
|
|
13949
|
+
onClick: async (m) => {
|
|
13950
|
+
m.preventDefault(), n && l(!0);
|
|
13897
13951
|
},
|
|
13898
13952
|
className: "login-button",
|
|
13899
13953
|
children: "Iniciar Sesión"
|
|
@@ -13923,7 +13977,7 @@ function h9({
|
|
|
13923
13977
|
icon: n,
|
|
13924
13978
|
COMMENTS_VARS: r
|
|
13925
13979
|
}) {
|
|
13926
|
-
const [o, s] =
|
|
13980
|
+
const [o, s] = K(null), [i, c] = K(null), d = r?.COGNITO_AUTH_PREFIX ?? "ASTRO_", l = he(async () => {
|
|
13927
13981
|
if (e) {
|
|
13928
13982
|
if (console.log(d), document.cookie.search(d + "IS_AUTH=true") === -1) {
|
|
13929
13983
|
s(!1), c(null), console.log("user not logged");
|
|
@@ -13932,8 +13986,8 @@ function h9({
|
|
|
13932
13986
|
try {
|
|
13933
13987
|
const p = await (await fetch("/api/auth/user", { credentials: "include" })).json();
|
|
13934
13988
|
s(p.isAuthenticated ?? !1), c(p.user ?? null);
|
|
13935
|
-
} catch (
|
|
13936
|
-
console.error("Error checking auth:",
|
|
13989
|
+
} catch (m) {
|
|
13990
|
+
console.error("Error checking auth:", m), s(!1), c(null);
|
|
13937
13991
|
}
|
|
13938
13992
|
}
|
|
13939
13993
|
}, [e, d]);
|
|
@@ -13941,14 +13995,14 @@ function h9({
|
|
|
13941
13995
|
l();
|
|
13942
13996
|
}, [l, e]), Me(() => {
|
|
13943
13997
|
if (!i || !e || typeof window > "u") return;
|
|
13944
|
-
const
|
|
13945
|
-
if (typeof
|
|
13998
|
+
const m = window;
|
|
13999
|
+
if (typeof m != "function") {
|
|
13946
14000
|
console.warn("gtag no está disponible todavía");
|
|
13947
14001
|
return;
|
|
13948
14002
|
}
|
|
13949
|
-
|
|
14003
|
+
m.gtag("set", { user_id: i.username }), console.log("username setted successfully");
|
|
13950
14004
|
}, [i, e]);
|
|
13951
|
-
const u = "/api/auth/login",
|
|
14005
|
+
const u = "/api/auth/login", f = /* @__PURE__ */ a(
|
|
13952
14006
|
"div",
|
|
13953
14007
|
{
|
|
13954
14008
|
style: {
|
|
@@ -13961,7 +14015,7 @@ function h9({
|
|
|
13961
14015
|
children: /* @__PURE__ */ a(Ze, {})
|
|
13962
14016
|
}
|
|
13963
14017
|
);
|
|
13964
|
-
return o === null ?
|
|
14018
|
+
return o === null ? f : e ? /* @__PURE__ */ a(
|
|
13965
14019
|
u9,
|
|
13966
14020
|
{
|
|
13967
14021
|
icon: n,
|
|
@@ -13973,7 +14027,7 @@ function h9({
|
|
|
13973
14027
|
path: t,
|
|
13974
14028
|
COMMENTS_VARS: r
|
|
13975
14029
|
}
|
|
13976
|
-
) :
|
|
14030
|
+
) : f;
|
|
13977
14031
|
}
|
|
13978
14032
|
const C3 = ({
|
|
13979
14033
|
render: e,
|
|
@@ -13988,18 +14042,18 @@ const C3 = ({
|
|
|
13988
14042
|
const d = Or(null), [l, u] = xe.useState(i);
|
|
13989
14043
|
xe.useEffect(() => {
|
|
13990
14044
|
if (i || l) return;
|
|
13991
|
-
const
|
|
14045
|
+
const m = new IntersectionObserver(
|
|
13992
14046
|
([p]) => {
|
|
13993
|
-
p?.isIntersecting && (u(!0),
|
|
14047
|
+
p?.isIntersecting && (u(!0), m.disconnect());
|
|
13994
14048
|
},
|
|
13995
14049
|
{
|
|
13996
14050
|
rootMargin: "0px",
|
|
13997
14051
|
threshold: 0.1
|
|
13998
14052
|
}
|
|
13999
14053
|
);
|
|
14000
|
-
return d.current &&
|
|
14054
|
+
return d.current && m.observe(d.current), () => m.disconnect();
|
|
14001
14055
|
}, []);
|
|
14002
|
-
const
|
|
14056
|
+
const f = {
|
|
14003
14057
|
comment: /* @__PURE__ */ a(
|
|
14004
14058
|
h9,
|
|
14005
14059
|
{
|
|
@@ -14027,7 +14081,7 @@ const C3 = ({
|
|
|
14027
14081
|
style: {
|
|
14028
14082
|
...o ? o["Modulo 1x3 Client"] ? o["Modulo 1x3 Client"] : o["Modulo 1x3"] : {}
|
|
14029
14083
|
},
|
|
14030
|
-
children:
|
|
14084
|
+
children: f[e]
|
|
14031
14085
|
}
|
|
14032
14086
|
);
|
|
14033
14087
|
};
|
|
@@ -14081,16 +14135,16 @@ async function _3({
|
|
|
14081
14135
|
message: "Captcha inválido. Intenta nuevamente.",
|
|
14082
14136
|
status: 403
|
|
14083
14137
|
};
|
|
14084
|
-
const
|
|
14138
|
+
const f = `${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`, m = {
|
|
14085
14139
|
publication: e,
|
|
14086
14140
|
path: t.replace(/\|/gi, "/"),
|
|
14087
14141
|
username: n ?? !1,
|
|
14088
14142
|
text: r.trim()
|
|
14089
14143
|
};
|
|
14090
|
-
o && (
|
|
14091
|
-
const p = new URLSearchParams(
|
|
14144
|
+
o && (m.id = o);
|
|
14145
|
+
const p = new URLSearchParams(m);
|
|
14092
14146
|
try {
|
|
14093
|
-
const { data: g } = await oe.get(`${
|
|
14147
|
+
const { data: g } = await oe.get(`${f}?${p.toString()}`, {
|
|
14094
14148
|
headers: {
|
|
14095
14149
|
"Content-Type": "application/json",
|
|
14096
14150
|
"x-security-token": d,
|