sass-template-common 0.1.48 → 0.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sass-template-common.js +270 -284
- package/dist/sass-template-common.umd.cjs +13 -13
- package/package.json +1 -1
|
@@ -154,7 +154,7 @@ function Pr() {
|
|
|
154
154
|
(function(n, r) {
|
|
155
155
|
e.exports = r();
|
|
156
156
|
})(Wo, (function() {
|
|
157
|
-
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", i = "second", c = "minute", d = "hour", l = "day", u = "week", h = "month", f = "quarter",
|
|
157
|
+
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", i = "second", c = "minute", d = "hour", l = "day", u = "week", h = "month", f = "quarter", w = "year", g = "date", p = "Invalid Date", A = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, _ = /\[([^\]]+)]|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(M) {
|
|
158
158
|
var U = ["th", "st", "nd", "rd"], E = M % 100;
|
|
159
159
|
return "[" + M + (U[(E - 20) % 10] || U[E] || U[0]) + "]";
|
|
160
160
|
} }, N = function(M, U, E) {
|
|
@@ -170,7 +170,7 @@ function Pr() {
|
|
|
170
170
|
}, a: function(M) {
|
|
171
171
|
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
|
172
172
|
}, p: function(M) {
|
|
173
|
-
return { M: h, y:
|
|
173
|
+
return { M: h, y: w, w: u, d: l, D: g, h: d, m: c, s: i, ms: s, Q: f }[M] || String(M || "").toLowerCase().replace(/s$/, "");
|
|
174
174
|
}, u: function(M) {
|
|
175
175
|
return M === void 0;
|
|
176
176
|
} }, v = "en", B = {};
|
|
@@ -210,7 +210,7 @@ function Pr() {
|
|
|
210
210
|
if (P.u(T)) return /* @__PURE__ */ new Date();
|
|
211
211
|
if (T instanceof Date) return new Date(T);
|
|
212
212
|
if (typeof T == "string" && !/Z$/i.test(T)) {
|
|
213
|
-
var y = T.match(
|
|
213
|
+
var y = T.match(A);
|
|
214
214
|
if (y) {
|
|
215
215
|
var C = y[2] - 1 || 0, k = (y[7] || "0").substring(0, 3);
|
|
216
216
|
return z ? new Date(Date.UTC(y[1], C, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, k)) : new Date(y[1], C, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, k);
|
|
@@ -246,7 +246,7 @@ function Pr() {
|
|
|
246
246
|
return P.w(T.toDate()[X].apply(T.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(F)), T);
|
|
247
247
|
}, j = this.$W, L = this.$M, G = this.$D, H = "set" + (this.$u ? "UTC" : "");
|
|
248
248
|
switch (y) {
|
|
249
|
-
case
|
|
249
|
+
case w:
|
|
250
250
|
return z ? C(1, 0) : C(31, 11);
|
|
251
251
|
case h:
|
|
252
252
|
return z ? C(1, L) : C(0, L + 1);
|
|
@@ -268,8 +268,8 @@ function Pr() {
|
|
|
268
268
|
}, U.endOf = function(E) {
|
|
269
269
|
return this.startOf(E, !1);
|
|
270
270
|
}, U.$set = function(E, D) {
|
|
271
|
-
var T, z = P.p(E), y = "set" + (this.$u ? "UTC" : ""), C = (T = {}, T[l] = y + "Date", T[g] = y + "Date", T[h] = y + "Month", T[
|
|
272
|
-
if (z === h || z ===
|
|
271
|
+
var T, z = P.p(E), y = "set" + (this.$u ? "UTC" : ""), C = (T = {}, T[l] = y + "Date", T[g] = y + "Date", T[h] = y + "Month", T[w] = y + "FullYear", T[d] = y + "Hours", T[c] = y + "Minutes", T[i] = y + "Seconds", T[s] = y + "Milliseconds", T)[z], k = z === l ? this.$D + (D - this.$W) : D;
|
|
272
|
+
if (z === h || z === w) {
|
|
273
273
|
var j = this.clone().set(g, 1);
|
|
274
274
|
j.$d[C](k), j.init(), this.$d = j.set(g, Math.min(this.$D, j.daysInMonth())).$d;
|
|
275
275
|
} else C && this.$d[C](k);
|
|
@@ -286,7 +286,7 @@ function Pr() {
|
|
|
286
286
|
return P.w(G.date(G.date() + Math.round(L * E)), z);
|
|
287
287
|
};
|
|
288
288
|
if (y === h) return this.set(h, this.$M + E);
|
|
289
|
-
if (y ===
|
|
289
|
+
if (y === w) return this.set(w, this.$y + E);
|
|
290
290
|
if (y === l) return C(1);
|
|
291
291
|
if (y === u) return C(7);
|
|
292
292
|
var k = (T = {}, T[c] = r, T[d] = o, T[i] = n, T)[y] || 1, j = this.$d.getTime() + E * k;
|
|
@@ -366,7 +366,7 @@ function Pr() {
|
|
|
366
366
|
return P.m(y, k);
|
|
367
367
|
};
|
|
368
368
|
switch (C) {
|
|
369
|
-
case
|
|
369
|
+
case w:
|
|
370
370
|
z = G() / 12;
|
|
371
371
|
break;
|
|
372
372
|
case h:
|
|
@@ -414,7 +414,7 @@ function Pr() {
|
|
|
414
414
|
return this.$d.toUTCString();
|
|
415
415
|
}, M;
|
|
416
416
|
})(), ce = ee.prototype;
|
|
417
|
-
return Q.prototype = ce, [["$ms", s], ["$s", i], ["$m", c], ["$H", d], ["$W", l], ["$M", h], ["$y",
|
|
417
|
+
return Q.prototype = ce, [["$ms", s], ["$s", i], ["$m", c], ["$H", d], ["$W", l], ["$M", h], ["$y", w], ["$D", g]].forEach((function(M) {
|
|
418
418
|
ce[M[1]] = function(U) {
|
|
419
419
|
return this.$g(U, M[0], M[1]);
|
|
420
420
|
};
|
|
@@ -440,20 +440,20 @@ function Ko() {
|
|
|
440
440
|
function c(l, u, h, f) {
|
|
441
441
|
return s.fromToBase(l, u, h, f);
|
|
442
442
|
}
|
|
443
|
-
o.en.relativeTime = i, s.fromToBase = function(l, u, h, f,
|
|
444
|
-
for (var g, p,
|
|
443
|
+
o.en.relativeTime = i, s.fromToBase = function(l, u, h, f, w) {
|
|
444
|
+
for (var g, p, A, _ = h.$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" }], N = S.length, x = 0; x < N; x += 1) {
|
|
445
445
|
var v = S[x];
|
|
446
446
|
v.d && (g = f ? o(l).diff(h, v.d, !0) : h.diff(l, v.d, !0));
|
|
447
447
|
var B = (n.rounding || Math.round)(Math.abs(g));
|
|
448
|
-
if (
|
|
448
|
+
if (A = g > 0, B <= v.r || !v.r) {
|
|
449
449
|
B <= 1 && x > 0 && (v = S[x - 1]);
|
|
450
450
|
var R = _[v.l];
|
|
451
|
-
|
|
451
|
+
w && (B = w("" + B)), p = typeof R == "string" ? R.replace("%d", B) : R(B, u, v.l, A);
|
|
452
452
|
break;
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
if (u) return p;
|
|
456
|
-
var Y =
|
|
456
|
+
var Y = A ? _.future : _.past;
|
|
457
457
|
return typeof Y == "function" ? Y(p) : Y.replace("%s", p);
|
|
458
458
|
}, s.to = function(l, u) {
|
|
459
459
|
return c(l, u, this, !0);
|
|
@@ -501,11 +501,11 @@ function ns() {
|
|
|
501
501
|
return function(s, i, c) {
|
|
502
502
|
var d = i.prototype;
|
|
503
503
|
c.utc = function(p) {
|
|
504
|
-
var
|
|
505
|
-
return new i(
|
|
504
|
+
var A = { date: p, utc: !0, args: arguments };
|
|
505
|
+
return new i(A);
|
|
506
506
|
}, d.utc = function(p) {
|
|
507
|
-
var
|
|
508
|
-
return p ?
|
|
507
|
+
var A = c(this.toDate(), { locale: this.$L, utc: !0 });
|
|
508
|
+
return p ? A.add(this.utcOffset(), n) : A;
|
|
509
509
|
}, d.local = function() {
|
|
510
510
|
return c(this.toDate(), { locale: this.$L, utc: !1 });
|
|
511
511
|
};
|
|
@@ -521,7 +521,7 @@ function ns() {
|
|
|
521
521
|
} else u.call(this);
|
|
522
522
|
};
|
|
523
523
|
var h = d.utcOffset;
|
|
524
|
-
d.utcOffset = function(p,
|
|
524
|
+
d.utcOffset = function(p, A) {
|
|
525
525
|
var _ = this.$utils().u;
|
|
526
526
|
if (_(p)) return this.$u ? 0 : _(this.$offset) ? h.call(this) : this.$offset;
|
|
527
527
|
if (typeof p == "string" && (p = (function(v) {
|
|
@@ -532,16 +532,16 @@ function ns() {
|
|
|
532
532
|
return te === 0 ? 0 : Y === "+" ? te : -te;
|
|
533
533
|
})(p), p === null)) return this;
|
|
534
534
|
var S = Math.abs(p) <= 16 ? 60 * p : p;
|
|
535
|
-
if (S === 0) return this.utc(
|
|
535
|
+
if (S === 0) return this.utc(A);
|
|
536
536
|
var N = this.clone();
|
|
537
|
-
if (
|
|
537
|
+
if (A) return N.$offset = S, N.$u = !1, N;
|
|
538
538
|
var x = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
539
539
|
return (N = this.local().add(S + x, n)).$offset = S, N.$x.$localOffset = x, N;
|
|
540
540
|
};
|
|
541
541
|
var f = d.format;
|
|
542
542
|
d.format = function(p) {
|
|
543
|
-
var
|
|
544
|
-
return f.call(this,
|
|
543
|
+
var A = p || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
544
|
+
return f.call(this, A);
|
|
545
545
|
}, d.valueOf = function() {
|
|
546
546
|
var p = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
547
547
|
return this.$d.valueOf() - 6e4 * p;
|
|
@@ -552,15 +552,15 @@ function ns() {
|
|
|
552
552
|
}, d.toString = function() {
|
|
553
553
|
return this.toDate().toUTCString();
|
|
554
554
|
};
|
|
555
|
-
var
|
|
555
|
+
var w = d.toDate;
|
|
556
556
|
d.toDate = function(p) {
|
|
557
|
-
return p === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() :
|
|
557
|
+
return p === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : w.call(this);
|
|
558
558
|
};
|
|
559
559
|
var g = d.diff;
|
|
560
|
-
d.diff = function(p,
|
|
561
|
-
if (p && this.$u === p.$u) return g.call(this, p,
|
|
560
|
+
d.diff = function(p, A, _) {
|
|
561
|
+
if (p && this.$u === p.$u) return g.call(this, p, A, _);
|
|
562
562
|
var S = this.local(), N = c(p).local();
|
|
563
|
-
return g.call(S, N,
|
|
563
|
+
return g.call(S, N, A, _);
|
|
564
564
|
};
|
|
565
565
|
};
|
|
566
566
|
}));
|
|
@@ -576,52 +576,52 @@ function ss() {
|
|
|
576
576
|
})(os, (function() {
|
|
577
577
|
var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, r = {};
|
|
578
578
|
return function(o, s, i) {
|
|
579
|
-
var c, d = function(f,
|
|
579
|
+
var c, d = function(f, w, g) {
|
|
580
580
|
g === void 0 && (g = {});
|
|
581
|
-
var p = new Date(f),
|
|
581
|
+
var p = new Date(f), A = (function(_, S) {
|
|
582
582
|
S === void 0 && (S = {});
|
|
583
583
|
var N = S.timeZoneName || "short", x = _ + "|" + N, v = r[x];
|
|
584
584
|
return v || (v = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: _, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: N }), r[x] = v), v;
|
|
585
|
-
})(
|
|
586
|
-
return
|
|
587
|
-
}, l = function(f,
|
|
588
|
-
for (var g = d(f,
|
|
589
|
-
var _ = g[
|
|
585
|
+
})(w, g);
|
|
586
|
+
return A.formatToParts(p);
|
|
587
|
+
}, l = function(f, w) {
|
|
588
|
+
for (var g = d(f, w), p = [], A = 0; A < g.length; A += 1) {
|
|
589
|
+
var _ = g[A], S = _.type, N = _.value, x = n[S];
|
|
590
590
|
x >= 0 && (p[x] = parseInt(N, 10));
|
|
591
591
|
}
|
|
592
592
|
var v = p[3], B = v === 24 ? 0 : v, R = p[0] + "-" + p[1] + "-" + p[2] + " " + B + ":" + p[4] + ":" + p[5] + ":000", Y = +f;
|
|
593
593
|
return (i.utc(R).valueOf() - (Y -= Y % 1e3)) / 6e4;
|
|
594
594
|
}, u = s.prototype;
|
|
595
|
-
u.tz = function(f,
|
|
595
|
+
u.tz = function(f, w) {
|
|
596
596
|
f === void 0 && (f = c);
|
|
597
|
-
var g, p = this.utcOffset(),
|
|
598
|
-
if (!Number(N)) g = this.utcOffset(0,
|
|
599
|
-
else if (g = i(_, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(N, !0),
|
|
597
|
+
var g, p = this.utcOffset(), A = this.toDate(), _ = A.toLocaleString("en-US", { timeZone: f }), S = Math.round((A - new Date(_)) / 1e3 / 60), N = 15 * -Math.round(A.getTimezoneOffset() / 15) - S;
|
|
598
|
+
if (!Number(N)) g = this.utcOffset(0, w);
|
|
599
|
+
else if (g = i(_, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(N, !0), w) {
|
|
600
600
|
var x = g.utcOffset();
|
|
601
601
|
g = g.add(p - x, "minute");
|
|
602
602
|
}
|
|
603
603
|
return g.$x.$timezone = f, g;
|
|
604
604
|
}, u.offsetName = function(f) {
|
|
605
|
-
var
|
|
605
|
+
var w = this.$x.$timezone || i.tz.guess(), g = d(this.valueOf(), w, { timeZoneName: f }).find((function(p) {
|
|
606
606
|
return p.type.toLowerCase() === "timezonename";
|
|
607
607
|
}));
|
|
608
608
|
return g && g.value;
|
|
609
609
|
};
|
|
610
610
|
var h = u.startOf;
|
|
611
|
-
u.startOf = function(f,
|
|
612
|
-
if (!this.$x || !this.$x.$timezone) return h.call(this, f,
|
|
611
|
+
u.startOf = function(f, w) {
|
|
612
|
+
if (!this.$x || !this.$x.$timezone) return h.call(this, f, w);
|
|
613
613
|
var g = i(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
614
|
-
return h.call(g, f,
|
|
615
|
-
}, i.tz = function(f,
|
|
616
|
-
var p = g &&
|
|
617
|
-
if (typeof f != "string") return i(f).tz(
|
|
614
|
+
return h.call(g, f, w).tz(this.$x.$timezone, !0);
|
|
615
|
+
}, i.tz = function(f, w, g) {
|
|
616
|
+
var p = g && w, A = g || w || c, _ = l(+i(), A);
|
|
617
|
+
if (typeof f != "string") return i(f).tz(A);
|
|
618
618
|
var S = (function(B, R, Y) {
|
|
619
619
|
var te = B - 60 * R * 1e3, Q = l(te, Y);
|
|
620
620
|
if (R === Q) return [te, R];
|
|
621
621
|
var P = l(te -= 60 * (Q - R) * 1e3, Y);
|
|
622
622
|
return Q === P ? [te, Q] : [B - 60 * Math.min(Q, P) * 1e3, Math.max(Q, P)];
|
|
623
|
-
})(i.utc(f, p).valueOf(), _,
|
|
624
|
-
return v.$x.$timezone =
|
|
623
|
+
})(i.utc(f, p).valueOf(), _, A), N = S[0], x = S[1], v = i(N).utcOffset(x);
|
|
624
|
+
return v.$x.$timezone = A, v;
|
|
625
625
|
}, i.tz.guess = function() {
|
|
626
626
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
627
627
|
}, i.tz.setDefault = function(f) {
|
|
@@ -1138,11 +1138,11 @@ const Ts = async ({
|
|
|
1138
1138
|
logow: t.socialBlockLogo?.width,
|
|
1139
1139
|
logoh: t.socialBlockLogo?.height,
|
|
1140
1140
|
authorurl: n + "/autor/"
|
|
1141
|
-
}, u = e.split("/")[1], h = u == "liveblogs" || u == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], f = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema,
|
|
1141
|
+
}, u = e.split("/")[1], h = u == "liveblogs" || u == "liveblog" ? ["/news", "/news-breadcrumb", "/news-liveblog"] : ["/news", "/news-breadcrumb"], f = t.paths.tema !== "" ? "/" + t.paths.tema : t.paths.tema, w = o !== "false" && s !== "false" ? "/" + o + f : f;
|
|
1142
1142
|
i = (await Promise.all(
|
|
1143
1143
|
h.map(async (p) => {
|
|
1144
|
-
const
|
|
1145
|
-
return await ga(
|
|
1144
|
+
const A = p === "/news-breadcrumb" ? { ...l, prefixtag: w } : l;
|
|
1145
|
+
return await ga(A, p, r);
|
|
1146
1146
|
})
|
|
1147
1147
|
)).map((p) => p?.data?.data ?? []);
|
|
1148
1148
|
} catch (c) {
|
|
@@ -1800,8 +1800,8 @@ function xn(e, t, n) {
|
|
|
1800
1800
|
metaTokens: !0,
|
|
1801
1801
|
dots: !1,
|
|
1802
1802
|
indexes: !1
|
|
1803
|
-
}, !1, function(p,
|
|
1804
|
-
return !b.isUndefined(
|
|
1803
|
+
}, !1, function(p, A) {
|
|
1804
|
+
return !b.isUndefined(A[p]);
|
|
1805
1805
|
});
|
|
1806
1806
|
const r = n.metaTokens, o = n.visitor || u, s = n.dots, i = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && b.isSpecCompliantForm(t);
|
|
1807
1807
|
if (!b.isFunction(o))
|
|
@@ -1816,9 +1816,9 @@ function xn(e, t, n) {
|
|
|
1816
1816
|
throw new W("Blob is not supported. Use a Buffer instead.");
|
|
1817
1817
|
return b.isArrayBuffer(g) || b.isTypedArray(g) ? d && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
|
|
1818
1818
|
}
|
|
1819
|
-
function u(g, p,
|
|
1819
|
+
function u(g, p, A) {
|
|
1820
1820
|
let _ = g;
|
|
1821
|
-
if (g && !
|
|
1821
|
+
if (g && !A && typeof g == "object") {
|
|
1822
1822
|
if (b.endsWith(p, "{}"))
|
|
1823
1823
|
p = r ? p : p.slice(0, -2), g = JSON.stringify(g);
|
|
1824
1824
|
else if (b.isArray(g) && bi(g) || (b.isFileList(g) || b.endsWith(p, "[]")) && (_ = b.toArray(g)))
|
|
@@ -1830,14 +1830,14 @@ function xn(e, t, n) {
|
|
|
1830
1830
|
);
|
|
1831
1831
|
}), !1;
|
|
1832
1832
|
}
|
|
1833
|
-
return na(g) ? !0 : (t.append(Ma(
|
|
1833
|
+
return na(g) ? !0 : (t.append(Ma(A, p, s), l(g)), !1);
|
|
1834
1834
|
}
|
|
1835
1835
|
const h = [], f = Object.assign(Ci, {
|
|
1836
1836
|
defaultVisitor: u,
|
|
1837
1837
|
convertValue: l,
|
|
1838
1838
|
isVisitable: na
|
|
1839
1839
|
});
|
|
1840
|
-
function
|
|
1840
|
+
function w(g, p) {
|
|
1841
1841
|
if (!b.isUndefined(g)) {
|
|
1842
1842
|
if (h.indexOf(g) !== -1)
|
|
1843
1843
|
throw Error("Circular reference detected in " + p.join("."));
|
|
@@ -1848,13 +1848,13 @@ function xn(e, t, n) {
|
|
|
1848
1848
|
b.isString(S) ? S.trim() : S,
|
|
1849
1849
|
p,
|
|
1850
1850
|
f
|
|
1851
|
-
)) === !0 &&
|
|
1851
|
+
)) === !0 && w(_, p ? p.concat(S) : [S]);
|
|
1852
1852
|
}), h.pop();
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
1855
|
if (!b.isObject(e))
|
|
1856
1856
|
throw new TypeError("data must be an object");
|
|
1857
|
-
return
|
|
1857
|
+
return w(e), t;
|
|
1858
1858
|
}
|
|
1859
1859
|
function ja(e) {
|
|
1860
1860
|
const t = {
|
|
@@ -2338,8 +2338,8 @@ function zi(e, t) {
|
|
|
2338
2338
|
f += n[h++], h = h % e;
|
|
2339
2339
|
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), l - i < t)
|
|
2340
2340
|
return;
|
|
2341
|
-
const
|
|
2342
|
-
return
|
|
2341
|
+
const w = u && l - u;
|
|
2342
|
+
return w ? Math.round(f * 1e3 / w) : void 0;
|
|
2343
2343
|
};
|
|
2344
2344
|
}
|
|
2345
2345
|
function Hi(e, t) {
|
|
@@ -2513,58 +2513,58 @@ const co = (e) => {
|
|
|
2513
2513
|
const o = co(e);
|
|
2514
2514
|
let s = o.data;
|
|
2515
2515
|
const i = _e.from(o.headers).normalize();
|
|
2516
|
-
let { responseType: c, onUploadProgress: d, onDownloadProgress: l } = o, u, h, f,
|
|
2516
|
+
let { responseType: c, onUploadProgress: d, onDownloadProgress: l } = o, u, h, f, w, g;
|
|
2517
2517
|
function p() {
|
|
2518
|
-
|
|
2518
|
+
w && w(), g && g(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
|
|
2519
2519
|
}
|
|
2520
|
-
let
|
|
2521
|
-
|
|
2520
|
+
let A = new XMLHttpRequest();
|
|
2521
|
+
A.open(o.method.toUpperCase(), o.url, !0), A.timeout = o.timeout;
|
|
2522
2522
|
function _() {
|
|
2523
|
-
if (!
|
|
2523
|
+
if (!A)
|
|
2524
2524
|
return;
|
|
2525
2525
|
const N = _e.from(
|
|
2526
|
-
"getAllResponseHeaders" in
|
|
2526
|
+
"getAllResponseHeaders" in A && A.getAllResponseHeaders()
|
|
2527
2527
|
), v = {
|
|
2528
|
-
data: !c || c === "text" || c === "json" ?
|
|
2529
|
-
status:
|
|
2530
|
-
statusText:
|
|
2528
|
+
data: !c || c === "text" || c === "json" ? A.responseText : A.response,
|
|
2529
|
+
status: A.status,
|
|
2530
|
+
statusText: A.statusText,
|
|
2531
2531
|
headers: N,
|
|
2532
2532
|
config: e,
|
|
2533
|
-
request:
|
|
2533
|
+
request: A
|
|
2534
2534
|
};
|
|
2535
2535
|
so(function(R) {
|
|
2536
2536
|
n(R), p();
|
|
2537
2537
|
}, function(R) {
|
|
2538
2538
|
r(R), p();
|
|
2539
|
-
}, v),
|
|
2540
|
-
}
|
|
2541
|
-
"onloadend" in
|
|
2542
|
-
!
|
|
2543
|
-
},
|
|
2544
|
-
|
|
2545
|
-
},
|
|
2546
|
-
const v = x && x.message ? x.message : "Network Error", B = new W(v, W.ERR_NETWORK, e,
|
|
2547
|
-
B.event = x || null, r(B),
|
|
2548
|
-
},
|
|
2539
|
+
}, v), A = null;
|
|
2540
|
+
}
|
|
2541
|
+
"onloadend" in A ? A.onloadend = _ : A.onreadystatechange = function() {
|
|
2542
|
+
!A || A.readyState !== 4 || A.status === 0 && !(A.responseURL && A.responseURL.indexOf("file:") === 0) || setTimeout(_);
|
|
2543
|
+
}, A.onabort = function() {
|
|
2544
|
+
A && (r(new W("Request aborted", W.ECONNABORTED, e, A)), A = null);
|
|
2545
|
+
}, A.onerror = function(x) {
|
|
2546
|
+
const v = x && x.message ? x.message : "Network Error", B = new W(v, W.ERR_NETWORK, e, A);
|
|
2547
|
+
B.event = x || null, r(B), A = null;
|
|
2548
|
+
}, A.ontimeout = function() {
|
|
2549
2549
|
let x = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
2550
2550
|
const v = o.transitional || ao;
|
|
2551
2551
|
o.timeoutErrorMessage && (x = o.timeoutErrorMessage), r(new W(
|
|
2552
2552
|
x,
|
|
2553
2553
|
v.clarifyTimeoutError ? W.ETIMEDOUT : W.ECONNABORTED,
|
|
2554
2554
|
e,
|
|
2555
|
-
|
|
2556
|
-
)),
|
|
2557
|
-
}, s === void 0 && i.setContentType(null), "setRequestHeader" in
|
|
2558
|
-
|
|
2559
|
-
}), b.isUndefined(o.withCredentials) || (
|
|
2560
|
-
|
|
2555
|
+
A
|
|
2556
|
+
)), A = null;
|
|
2557
|
+
}, s === void 0 && i.setContentType(null), "setRequestHeader" in A && b.forEach(i.toJSON(), function(x, v) {
|
|
2558
|
+
A.setRequestHeader(v, x);
|
|
2559
|
+
}), b.isUndefined(o.withCredentials) || (A.withCredentials = !!o.withCredentials), c && c !== "json" && (A.responseType = o.responseType), l && ([f, g] = An(l, !0), A.addEventListener("progress", f)), d && A.upload && ([h, w] = An(d), A.upload.addEventListener("progress", h), A.upload.addEventListener("loadend", w)), (o.cancelToken || o.signal) && (u = (N) => {
|
|
2560
|
+
A && (r(!N || N.type ? new Nt(null, e, A) : N), A.abort(), A = null);
|
|
2561
2561
|
}, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
|
|
2562
2562
|
const S = Gi(o.url);
|
|
2563
2563
|
if (S && fe.protocols.indexOf(S) === -1) {
|
|
2564
2564
|
r(new W("Unsupported protocol " + S + ":", W.ERR_BAD_REQUEST, e));
|
|
2565
2565
|
return;
|
|
2566
2566
|
}
|
|
2567
|
-
|
|
2567
|
+
A.send(s || null);
|
|
2568
2568
|
});
|
|
2569
2569
|
}, Ji = (e, t) => {
|
|
2570
2570
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
@@ -2679,11 +2679,11 @@ const co = (e) => {
|
|
|
2679
2679
|
stream: u && ((g) => g.body)
|
|
2680
2680
|
};
|
|
2681
2681
|
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((g) => {
|
|
2682
|
-
!h[g] && (h[g] = (p,
|
|
2682
|
+
!h[g] && (h[g] = (p, A) => {
|
|
2683
2683
|
let _ = p && p[g];
|
|
2684
2684
|
if (_)
|
|
2685
2685
|
return _.call(p);
|
|
2686
|
-
throw new W(`Response type '${g}' is not supported`, W.ERR_NOT_SUPPORT,
|
|
2686
|
+
throw new W(`Response type '${g}' is not supported`, W.ERR_NOT_SUPPORT, A);
|
|
2687
2687
|
});
|
|
2688
2688
|
});
|
|
2689
2689
|
const f = async (g) => {
|
|
@@ -2700,14 +2700,14 @@ const co = (e) => {
|
|
|
2700
2700
|
return g.byteLength;
|
|
2701
2701
|
if (b.isURLSearchParams(g) && (g = g + ""), b.isString(g))
|
|
2702
2702
|
return (await d(g)).byteLength;
|
|
2703
|
-
},
|
|
2704
|
-
const
|
|
2705
|
-
return
|
|
2703
|
+
}, w = async (g, p) => {
|
|
2704
|
+
const A = b.toFiniteNumber(g.getContentLength());
|
|
2705
|
+
return A ?? f(p);
|
|
2706
2706
|
};
|
|
2707
2707
|
return async (g) => {
|
|
2708
2708
|
let {
|
|
2709
2709
|
url: p,
|
|
2710
|
-
method:
|
|
2710
|
+
method: A,
|
|
2711
2711
|
data: _,
|
|
2712
2712
|
signal: S,
|
|
2713
2713
|
cancelToken: N,
|
|
@@ -2726,7 +2726,7 @@ const co = (e) => {
|
|
|
2726
2726
|
});
|
|
2727
2727
|
let U;
|
|
2728
2728
|
try {
|
|
2729
|
-
if (B && l &&
|
|
2729
|
+
if (B && l && A !== "get" && A !== "head" && (U = await w(Y, _)) !== 0) {
|
|
2730
2730
|
let C = new n(p, {
|
|
2731
2731
|
method: "POST",
|
|
2732
2732
|
body: _,
|
|
@@ -2744,7 +2744,7 @@ const co = (e) => {
|
|
|
2744
2744
|
const E = s && "credentials" in n.prototype, D = {
|
|
2745
2745
|
...Q,
|
|
2746
2746
|
signal: ee,
|
|
2747
|
-
method:
|
|
2747
|
+
method: A.toUpperCase(),
|
|
2748
2748
|
headers: Y.normalize().toJSON(),
|
|
2749
2749
|
body: _,
|
|
2750
2750
|
duplex: "half",
|
|
@@ -3006,18 +3006,18 @@ let lt = class {
|
|
|
3006
3006
|
return u;
|
|
3007
3007
|
}
|
|
3008
3008
|
f = c.length;
|
|
3009
|
-
let
|
|
3009
|
+
let w = n;
|
|
3010
3010
|
for (; h < f; ) {
|
|
3011
3011
|
const g = c[h++], p = c[h++];
|
|
3012
3012
|
try {
|
|
3013
|
-
|
|
3014
|
-
} catch (
|
|
3015
|
-
p.call(this,
|
|
3013
|
+
w = g(w);
|
|
3014
|
+
} catch (A) {
|
|
3015
|
+
p.call(this, A);
|
|
3016
3016
|
break;
|
|
3017
3017
|
}
|
|
3018
3018
|
}
|
|
3019
3019
|
try {
|
|
3020
|
-
u = Za.call(this,
|
|
3020
|
+
u = Za.call(this, w);
|
|
3021
3021
|
} catch (g) {
|
|
3022
3022
|
return Promise.reject(g);
|
|
3023
3023
|
}
|
|
@@ -3453,8 +3453,8 @@ const H9 = async (e, t, n, r, o, s) => {
|
|
|
3453
3453
|
for (let h = 0; h < d.length; h++) {
|
|
3454
3454
|
const f = us(
|
|
3455
3455
|
d[h]
|
|
3456
|
-
),
|
|
3457
|
-
f && (u[
|
|
3456
|
+
), w = "Home_" + (Math.floor(h / s) + 1) + "_" + (Math.floor(h % s) + 1);
|
|
3457
|
+
f && (u[w] = { ...f });
|
|
3458
3458
|
}
|
|
3459
3459
|
return u;
|
|
3460
3460
|
})();
|
|
@@ -3555,7 +3555,7 @@ const H9 = async (e, t, n, r, o, s) => {
|
|
|
3555
3555
|
tema: async (e) => {
|
|
3556
3556
|
const { meta: t, config: n, pathname: r, slug: o } = e, s = new Le(), i = r.split("/"), c = [], d = $t(r), l = Number(n.newsListLimit) ?? 0, u = /([t][0-9]{4})\w+/.exec(o || ""), h = u && u?.length > 0 ? u[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: f } = J();
|
|
3557
3557
|
try {
|
|
3558
|
-
const
|
|
3558
|
+
const w = await s.getNewsListTags({
|
|
3559
3559
|
tagid: h,
|
|
3560
3560
|
size: l,
|
|
3561
3561
|
tagtype: Number(f),
|
|
@@ -3563,9 +3563,9 @@ const H9 = async (e, t, n, r, o, s) => {
|
|
|
3563
3563
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
3564
3564
|
page: d
|
|
3565
3565
|
});
|
|
3566
|
-
if (!
|
|
3567
|
-
const g =
|
|
3568
|
-
return g ? (
|
|
3566
|
+
if (!w) return ve(t);
|
|
3567
|
+
const g = w.data.entity;
|
|
3568
|
+
return g ? (w.data.data?.length < l || c.push({
|
|
3569
3569
|
rel: "next",
|
|
3570
3570
|
url: Ft(n, i, d)
|
|
3571
3571
|
}), d > 1 && c.push({
|
|
@@ -3599,8 +3599,8 @@ const H9 = async (e, t, n, r, o, s) => {
|
|
|
3599
3599
|
url: `${n.siteUrl}${r}`
|
|
3600
3600
|
}
|
|
3601
3601
|
}) : t;
|
|
3602
|
-
} catch (
|
|
3603
|
-
return console.error(
|
|
3602
|
+
} catch (w) {
|
|
3603
|
+
return console.error(w), ve(t);
|
|
3604
3604
|
}
|
|
3605
3605
|
},
|
|
3606
3606
|
"ultimas-noticias": (e) => {
|
|
@@ -3782,10 +3782,10 @@ async function F9({
|
|
|
3782
3782
|
banners: u,
|
|
3783
3783
|
internalPath: h,
|
|
3784
3784
|
config: f,
|
|
3785
|
-
socials:
|
|
3785
|
+
socials: w,
|
|
3786
3786
|
speculationType: g = "Common",
|
|
3787
3787
|
preloadImageUrl: p,
|
|
3788
|
-
custom_Speculation:
|
|
3788
|
+
custom_Speculation: A,
|
|
3789
3789
|
custom_metadata: _,
|
|
3790
3790
|
custom_scriptReplaces: S,
|
|
3791
3791
|
head_custom_elements: N
|
|
@@ -3846,7 +3846,7 @@ async function F9({
|
|
|
3846
3846
|
axiosApi: e
|
|
3847
3847
|
}
|
|
3848
3848
|
),
|
|
3849
|
-
/* @__PURE__ */ a(Is, { config: f, socials:
|
|
3849
|
+
/* @__PURE__ */ a(Is, { config: f, socials: w }),
|
|
3850
3850
|
t.schemas_Videos && h && /* @__PURE__ */ a(
|
|
3851
3851
|
ks,
|
|
3852
3852
|
{
|
|
@@ -3870,7 +3870,7 @@ async function F9({
|
|
|
3870
3870
|
{
|
|
3871
3871
|
type: g,
|
|
3872
3872
|
active: f.useSpeculationRules,
|
|
3873
|
-
customSpeculation:
|
|
3873
|
+
customSpeculation: A
|
|
3874
3874
|
}
|
|
3875
3875
|
),
|
|
3876
3876
|
N
|
|
@@ -3895,7 +3895,7 @@ const W9 = ({
|
|
|
3895
3895
|
config: s,
|
|
3896
3896
|
currentNew: c,
|
|
3897
3897
|
internalPath: i
|
|
3898
|
-
}),
|
|
3898
|
+
}), w = l.before.active, g = l.after.active, p = w ? l.before.customData ? l.before.customData : f : void 0, A = g ? l.after.customData ? l.after.customData : f : void 0;
|
|
3899
3899
|
return /* @__PURE__ */ m(K, { children: [
|
|
3900
3900
|
/* @__PURE__ */ a(jr, { name: "bodybefore", banners: n, replaces: p }),
|
|
3901
3901
|
e,
|
|
@@ -3904,7 +3904,7 @@ const W9 = ({
|
|
|
3904
3904
|
/* @__PURE__ */ a(Ho, { dimensionValues: h }),
|
|
3905
3905
|
/* @__PURE__ */ a(Vo, {}),
|
|
3906
3906
|
u,
|
|
3907
|
-
/* @__PURE__ */ a(ws, { name: "bodyafter", banners: n, replaces:
|
|
3907
|
+
/* @__PURE__ */ a(ws, { name: "bodyafter", banners: n, replaces: A })
|
|
3908
3908
|
] });
|
|
3909
3909
|
}, mc = "_content_1tvgz_1", fc = {
|
|
3910
3910
|
content: mc
|
|
@@ -3947,7 +3947,7 @@ function yc({
|
|
|
3947
3947
|
enableDrag: s,
|
|
3948
3948
|
onIndexChange: i
|
|
3949
3949
|
}) {
|
|
3950
|
-
const [c, d] = $(!1), [l, u] = $(0), [h, f] = $(0), [
|
|
3950
|
+
const [c, d] = $(!1), [l, u] = $(0), [h, f] = $(0), [w, g] = $(0), [p, A] = $(0), [_, S] = $(null), N = Br(null), [x, v] = $(1), B = he(() => {
|
|
3951
3951
|
if (o) return 1;
|
|
3952
3952
|
const y = N.current?.offsetWidth || window.innerWidth, C = n + r, k = Math.floor(y / C);
|
|
3953
3953
|
return Math.max(1, k);
|
|
@@ -3987,7 +3987,7 @@ function yc({
|
|
|
3987
3987
|
[o, n, r, B, te]
|
|
3988
3988
|
), ee = he(
|
|
3989
3989
|
(y) => {
|
|
3990
|
-
s && (u(y), f(y), g(0),
|
|
3990
|
+
s && (u(y), f(y), g(0), A(Date.now()), d(!0), document.body.classList.add("dragging"));
|
|
3991
3991
|
},
|
|
3992
3992
|
[s]
|
|
3993
3993
|
), ce = he(
|
|
@@ -4060,7 +4060,7 @@ function yc({
|
|
|
4060
4060
|
};
|
|
4061
4061
|
}, [c, ce, U, M]), {
|
|
4062
4062
|
isDragging: c,
|
|
4063
|
-
translateOffset:
|
|
4063
|
+
translateOffset: w,
|
|
4064
4064
|
carrouselRef: N,
|
|
4065
4065
|
maxIndex: Y,
|
|
4066
4066
|
getTranslateValue: Q,
|
|
@@ -4084,16 +4084,16 @@ function Y9(e) {
|
|
|
4084
4084
|
fullPageWidth: i = !1,
|
|
4085
4085
|
pagination: c = !1,
|
|
4086
4086
|
enableDrag: d = !0
|
|
4087
|
-
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [u, h] = $(0), [f,
|
|
4087
|
+
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [u, h] = $(0), [f, w] = $(!1);
|
|
4088
4088
|
De(() => {
|
|
4089
|
-
|
|
4089
|
+
w(!0);
|
|
4090
4090
|
const Q = document.getElementById("ssr-dummy_" + n);
|
|
4091
4091
|
Q && Q.remove();
|
|
4092
4092
|
}, []);
|
|
4093
4093
|
const {
|
|
4094
4094
|
isDragging: g,
|
|
4095
4095
|
translateOffset: p,
|
|
4096
|
-
carrouselRef:
|
|
4096
|
+
carrouselRef: A,
|
|
4097
4097
|
maxIndex: _,
|
|
4098
4098
|
getTranslateValue: S,
|
|
4099
4099
|
actualVisibleItems: N,
|
|
@@ -4175,7 +4175,7 @@ function Y9(e) {
|
|
|
4175
4175
|
/* @__PURE__ */ a(
|
|
4176
4176
|
"div",
|
|
4177
4177
|
{
|
|
4178
|
-
ref:
|
|
4178
|
+
ref: A,
|
|
4179
4179
|
className: "carrousel-ssr",
|
|
4180
4180
|
style: {
|
|
4181
4181
|
gap: s,
|
|
@@ -4492,14 +4492,7 @@ function jc({ noteShare: e }) {
|
|
|
4492
4492
|
] }) : null;
|
|
4493
4493
|
}
|
|
4494
4494
|
const Et = (e) => {
|
|
4495
|
-
const {
|
|
4496
|
-
share: t = !1,
|
|
4497
|
-
cutSubtitle: n = !0,
|
|
4498
|
-
keywords: r,
|
|
4499
|
-
info: o,
|
|
4500
|
-
main: s,
|
|
4501
|
-
paths: i
|
|
4502
|
-
} = e, { SHOW_TAG_BY_SECTION: c } = J(), d = () => {
|
|
4495
|
+
const { share: t = !1, cutSubtitle: n = !0, keywords: r, info: o, paths: s } = e, { SHOW_TAG_BY_SECTION: i } = J(), c = () => {
|
|
4503
4496
|
if (e?.config?.showtime && e.config?.showauthor)
|
|
4504
4497
|
return `${e?.authors[0]?.fullname ?? "Redacción"} - ${Me(
|
|
4505
4498
|
e.info?.date?.modified
|
|
@@ -4508,7 +4501,7 @@ const Et = (e) => {
|
|
|
4508
4501
|
return e?.authors[0]?.fullname ?? "Redacción";
|
|
4509
4502
|
if (e?.config?.showtime)
|
|
4510
4503
|
return Me(e.info?.date?.modified);
|
|
4511
|
-
},
|
|
4504
|
+
}, d = () => {
|
|
4512
4505
|
const h = {
|
|
4513
4506
|
"--fontSizeSubTitle": e.fontSizeSubTitle,
|
|
4514
4507
|
"--lineHeightSubTitle": e.lineHeightSubTitle,
|
|
@@ -4524,41 +4517,34 @@ const Et = (e) => {
|
|
|
4524
4517
|
style: h
|
|
4525
4518
|
}
|
|
4526
4519
|
);
|
|
4527
|
-
}, u = () => {
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
"after",
|
|
4533
|
-
c,
|
|
4534
|
-
r.tags,
|
|
4535
|
-
A,
|
|
4536
|
-
g
|
|
4537
|
-
), /* @__PURE__ */ m("h3", { className: re.sectionDescriptionContainer, children: [
|
|
4538
|
-
A.approved ? /* @__PURE__ */ a(
|
|
4520
|
+
}, l = () => e.main.uppertitle ? /* @__PURE__ */ a("p", { className: re.uppertitle, title: e.main.uppertitle, children: e.main.uppertitle }) : null, u = () => {
|
|
4521
|
+
if (i && r?.tags?.length && r.tags.length > 0) {
|
|
4522
|
+
const h = r.tags[0], f = h.name;
|
|
4523
|
+
return /* @__PURE__ */ m("h3", { className: re.sectionDescriptionContainer, children: [
|
|
4524
|
+
h.approved ? /* @__PURE__ */ a(
|
|
4539
4525
|
O,
|
|
4540
4526
|
{
|
|
4541
|
-
"aria-label":
|
|
4527
|
+
"aria-label": f,
|
|
4542
4528
|
className: re.sectionDescription,
|
|
4543
|
-
href: Qr(
|
|
4544
|
-
children:
|
|
4529
|
+
href: Qr(h, s),
|
|
4530
|
+
children: f
|
|
4545
4531
|
}
|
|
4546
|
-
) : /* @__PURE__ */ a("div", { className: re.sectionDescription, children:
|
|
4547
|
-
|
|
4532
|
+
) : /* @__PURE__ */ a("div", { className: re.sectionDescription, children: f }),
|
|
4533
|
+
l()
|
|
4548
4534
|
] });
|
|
4549
|
-
} else if (o?.section?.url
|
|
4550
|
-
const
|
|
4535
|
+
} else if (o?.section?.url) {
|
|
4536
|
+
const h = o.section.name;
|
|
4551
4537
|
return /* @__PURE__ */ m("h3", { className: re.sectionDescriptionContainer, children: [
|
|
4552
4538
|
/* @__PURE__ */ a(
|
|
4553
4539
|
O,
|
|
4554
4540
|
{
|
|
4555
|
-
"aria-label":
|
|
4541
|
+
"aria-label": h,
|
|
4556
4542
|
className: re.sectionDescription,
|
|
4557
4543
|
href: o.section.url,
|
|
4558
|
-
children:
|
|
4544
|
+
children: h
|
|
4559
4545
|
}
|
|
4560
4546
|
),
|
|
4561
|
-
|
|
4547
|
+
l()
|
|
4562
4548
|
] });
|
|
4563
4549
|
}
|
|
4564
4550
|
return null;
|
|
@@ -4573,7 +4559,7 @@ const Et = (e) => {
|
|
|
4573
4559
|
children: /* @__PURE__ */ a(jc, { noteShare: { ...t } })
|
|
4574
4560
|
}
|
|
4575
4561
|
),
|
|
4576
|
-
u
|
|
4562
|
+
/* @__PURE__ */ a(u, {}),
|
|
4577
4563
|
Ee.createElement(
|
|
4578
4564
|
e.isTitle ? "h1" : "h2",
|
|
4579
4565
|
{
|
|
@@ -4593,16 +4579,16 @@ const Et = (e) => {
|
|
|
4593
4579
|
}
|
|
4594
4580
|
) : e.main?.title?.section
|
|
4595
4581
|
),
|
|
4596
|
-
e.config?.showsubtitle && /* @__PURE__ */ a(
|
|
4582
|
+
e.config?.showsubtitle && /* @__PURE__ */ a(d, {}),
|
|
4597
4583
|
(e?.config?.showtime || e.config?.showauthor) && /* @__PURE__ */ a(K, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ a("h3", { children: /* @__PURE__ */ a(
|
|
4598
4584
|
O,
|
|
4599
4585
|
{
|
|
4600
|
-
"aria-label":
|
|
4586
|
+
"aria-label": c(),
|
|
4601
4587
|
className: re.correspondentLink,
|
|
4602
4588
|
href: `/${e?.paths?.autor}/${e?.authors[0]?.name}`,
|
|
4603
|
-
children:
|
|
4589
|
+
children: c()
|
|
4604
4590
|
}
|
|
4605
|
-
) }) : /* @__PURE__ */ a("h3", { className: re.correspondent, children:
|
|
4591
|
+
) }) : /* @__PURE__ */ a("h3", { className: re.correspondent, children: c() }) })
|
|
4606
4592
|
] });
|
|
4607
4593
|
}, Qc = "_content_coxjf_1", Gc = "_contentNew_coxjf_21", zc = "_imageBox_coxjf_29", Hc = "_numberTag_coxjf_44", Kt = {
|
|
4608
4594
|
content: Qc,
|
|
@@ -6585,8 +6571,8 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6585
6571
|
const { currentPage: t, showNext: n, maxPages: r, pathname: o, query: s } = e, i = (c, d, l) => {
|
|
6586
6572
|
let u = "";
|
|
6587
6573
|
const h = d.split("/");
|
|
6588
|
-
return h.indexOf("page") !== -1 && h.splice(u.indexOf("page") - 1, h.length - 1), h.forEach((f,
|
|
6589
|
-
|
|
6574
|
+
return h.indexOf("page") !== -1 && h.splice(u.indexOf("page") - 1, h.length - 1), h.forEach((f, w) => {
|
|
6575
|
+
w !== 0 && (u += `/${f}`);
|
|
6590
6576
|
}), c === "next" ? u += `/page/${t + 1}${l ? `?query=${l}` : ""}` : u += `/page/${t - 1}${l ? `?query=${l}` : ""}`;
|
|
6591
6577
|
};
|
|
6592
6578
|
return (t > 1 || n && t < r) && /* @__PURE__ */ m("section", { className: On.content, children: [
|
|
@@ -9536,12 +9522,12 @@ function Xf(e) {
|
|
|
9536
9522
|
const d = [], l = [];
|
|
9537
9523
|
let u = "", h = !0;
|
|
9538
9524
|
for (let f = 0; f < c; f++) {
|
|
9539
|
-
const
|
|
9525
|
+
const w = `[data-index="${f}"]:checked ~ .carrousel-pagination li:nth-child(${f + 1}) {
|
|
9540
9526
|
background-color:var(--carrousel-pagination-background-color)
|
|
9541
9527
|
}`;
|
|
9542
9528
|
u += `
|
|
9543
9529
|
.${n}.carrousel-container {
|
|
9544
|
-
${
|
|
9530
|
+
${w}
|
|
9545
9531
|
[data-index="${f}"]:checked ~ .carrousel-ssr {
|
|
9546
9532
|
transform: translate(-${f * (100 + o) + "%"});
|
|
9547
9533
|
transition: transform 300ms;
|
|
@@ -9675,13 +9661,13 @@ const e0 = (e) => /* @__PURE__ */ a(
|
|
|
9675
9661
|
(g) => g[1]
|
|
9676
9662
|
).map(
|
|
9677
9663
|
(g) => `<img fetchPriority='low' loading='lazy' alt='imagen' src="${g}" class="carrusel-note-item" width="800" height="469"/>`
|
|
9678
|
-
), f = "gallery_embeded" + d.toString(),
|
|
9664
|
+
), f = "gallery_embeded" + d.toString(), w = Xf({
|
|
9679
9665
|
slot_id: f,
|
|
9680
9666
|
children: h,
|
|
9681
9667
|
visibleItems: 1,
|
|
9682
9668
|
cardGap: 0
|
|
9683
9669
|
});
|
|
9684
|
-
r +=
|
|
9670
|
+
r += w, o = l;
|
|
9685
9671
|
}
|
|
9686
9672
|
return r += e.slice(o), r;
|
|
9687
9673
|
}, o0 = async (e, t, n) => {
|
|
@@ -9693,7 +9679,7 @@ const e0 = (e) => /* @__PURE__ */ a(
|
|
|
9693
9679
|
(S) => d.includes(S?.[0]?.info.link.internal || "")
|
|
9694
9680
|
);
|
|
9695
9681
|
if (!l || !l[0]) continue;
|
|
9696
|
-
const u = l[0].preview?.sizes?.[0], h = u ? await pe(u.url) : "", f = l[0].info.section?.url ?? "#",
|
|
9682
|
+
const u = l[0].preview?.sizes?.[0], h = u ? await pe(u.url) : "", f = l[0].info.section?.url ?? "#", w = l[0].info.section?.name ?? "Sección", g = l[0].info.link?.url ?? "#", p = l[0].main?.title.article ?? "Título", A = (await Promise.all(
|
|
9697
9683
|
l[0].preview?.sizes?.map(async (S) => {
|
|
9698
9684
|
const N = await pe(S.url);
|
|
9699
9685
|
return S.width < 200 ? `<source srcset="${N}" media="(width < 750px)"/>` : `<source srcset="${N}" media="(width >= 750px)"/>`;
|
|
@@ -9701,11 +9687,11 @@ const e0 = (e) => /* @__PURE__ */ a(
|
|
|
9701
9687
|
)).reduce((S, N) => S += N, ""), _ = `
|
|
9702
9688
|
<span data-src="${d}">
|
|
9703
9689
|
<picture style='display: flex'>
|
|
9704
|
-
${
|
|
9690
|
+
${A}
|
|
9705
9691
|
<img fetchPriority='low' loading='lazy' src="${h}" alt="${t.noteRelatedImageAlt}" />
|
|
9706
9692
|
</picture>
|
|
9707
9693
|
<div>
|
|
9708
|
-
<a class="section" href="${f}">${
|
|
9694
|
+
<a class="section" href="${f}">${w}</a>
|
|
9709
9695
|
<a class="title" href="${g}">${p}</a>
|
|
9710
9696
|
</div>
|
|
9711
9697
|
</span>
|
|
@@ -9727,12 +9713,12 @@ async function s0(e, t) {
|
|
|
9727
9713
|
} catch {
|
|
9728
9714
|
console.log("error fetching schema videos embed.");
|
|
9729
9715
|
}
|
|
9730
|
-
let
|
|
9716
|
+
let w = "";
|
|
9731
9717
|
if (h && h.data) {
|
|
9732
9718
|
let g = "";
|
|
9733
9719
|
h.data.data[0].info.type === "video-youtube" ? g = `<iframe
|
|
9734
9720
|
frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen
|
|
9735
|
-
style="position: relative!important;" src="https://www.youtube.com/embed/${h.data.data[0].main.code}"></iframe>` : g = h.data.data[0].main.code,
|
|
9721
|
+
style="position: relative!important;" src="https://www.youtube.com/embed/${h.data.data[0].main.code}"></iframe>` : g = h.data.data[0].main.code, w = `
|
|
9736
9722
|
<figure class="videoFigure">
|
|
9737
9723
|
${f && f.data && f.data.data && /* @__PURE__ */ m("script", { type: "application/ld+json", children: [
|
|
9738
9724
|
"$",
|
|
@@ -9745,7 +9731,7 @@ async function s0(e, t) {
|
|
|
9745
9731
|
</figure>
|
|
9746
9732
|
`;
|
|
9747
9733
|
}
|
|
9748
|
-
o +=
|
|
9734
|
+
o += w, s = u;
|
|
9749
9735
|
}
|
|
9750
9736
|
return o += e.slice(s), o;
|
|
9751
9737
|
}
|
|
@@ -10133,25 +10119,25 @@ const Ar = {
|
|
|
10133
10119
|
const c = [], l = t, u = Object.keys(e).length / l;
|
|
10134
10120
|
for (let h = 1; h <= u; h++)
|
|
10135
10121
|
for (let f = 1; f <= l; f++) {
|
|
10136
|
-
const
|
|
10137
|
-
!e[
|
|
10122
|
+
const w = "Home_" + h + "_" + f;
|
|
10123
|
+
!e[w] || !e[w].blockSass || !e[w].blockSass[0] || !e[w].blockSass[0].value || !e[w].blockSass[0].block || e[w].blockSass[0].block === "No Mostrar" || c.push(
|
|
10138
10124
|
/* @__PURE__ */ m(
|
|
10139
10125
|
wc,
|
|
10140
10126
|
{
|
|
10141
|
-
show: !!e[
|
|
10127
|
+
show: !!e[w].content?.data,
|
|
10142
10128
|
order: (h - 1) * l + (f - 1),
|
|
10143
10129
|
children: [
|
|
10144
10130
|
/* @__PURE__ */ a(
|
|
10145
10131
|
xo,
|
|
10146
10132
|
{
|
|
10147
|
-
component: e[
|
|
10133
|
+
component: e[w].blockSass[0].block,
|
|
10148
10134
|
banners: s,
|
|
10149
|
-
slot_id:
|
|
10135
|
+
slot_id: w,
|
|
10150
10136
|
data: {
|
|
10151
|
-
...e[
|
|
10152
|
-
content: e[
|
|
10153
|
-
title: e[
|
|
10154
|
-
titleUrl: e[
|
|
10137
|
+
...e[w].blockSass[0].block ? n[e[w].blockSass[0].block] : [],
|
|
10138
|
+
content: e[w].content?.data ?? [],
|
|
10139
|
+
title: e[w].blockSass[0].title ?? void 0,
|
|
10140
|
+
titleUrl: e[w].blockSass[0].link ?? void 0,
|
|
10155
10141
|
autorIcon: /* @__PURE__ */ a(r, {}),
|
|
10156
10142
|
paths: o.paths,
|
|
10157
10143
|
showTagBySection: i
|
|
@@ -10570,7 +10556,7 @@ const Ar = {
|
|
|
10570
10556
|
showNext: !(t.length < e.newsListLimit)
|
|
10571
10557
|
}
|
|
10572
10558
|
),
|
|
10573
|
-
children: Array.isArray(t) && t?.map((
|
|
10559
|
+
children: Array.isArray(t) && t?.map((w, g) => /* @__PURE__ */ m(gn, { children: [
|
|
10574
10560
|
h.includes(g + 1) && /* @__PURE__ */ a(
|
|
10575
10561
|
"div",
|
|
10576
10562
|
{
|
|
@@ -10588,7 +10574,7 @@ const Ar = {
|
|
|
10588
10574
|
ia,
|
|
10589
10575
|
{
|
|
10590
10576
|
autorIcon: e.autorIcon,
|
|
10591
|
-
item:
|
|
10577
|
+
item: w,
|
|
10592
10578
|
option: l,
|
|
10593
10579
|
paths: e.paths
|
|
10594
10580
|
},
|
|
@@ -11037,7 +11023,7 @@ const Sg = (e) => {
|
|
|
11037
11023
|
isVideo: u = !1,
|
|
11038
11024
|
config: h,
|
|
11039
11025
|
overImage: f = "default",
|
|
11040
|
-
isTitle:
|
|
11026
|
+
isTitle: w = !1,
|
|
11041
11027
|
isLarge: g = !1
|
|
11042
11028
|
} = o;
|
|
11043
11029
|
return /* @__PURE__ */ a(
|
|
@@ -11076,7 +11062,7 @@ const Sg = (e) => {
|
|
|
11076
11062
|
share: e.share,
|
|
11077
11063
|
config: h,
|
|
11078
11064
|
overImage: f,
|
|
11079
|
-
isTitle:
|
|
11065
|
+
isTitle: w,
|
|
11080
11066
|
paths: o.paths,
|
|
11081
11067
|
isVisible: e.isVisible
|
|
11082
11068
|
}
|
|
@@ -11274,9 +11260,9 @@ async function v3({
|
|
|
11274
11260
|
throw new Error(`Respuesta inesperada del servidor: ${h.status}`);
|
|
11275
11261
|
} catch (h) {
|
|
11276
11262
|
if (console.error("Error reporting comment:", h), oe.isAxiosError(h)) {
|
|
11277
|
-
const f = h.response?.status,
|
|
11263
|
+
const f = h.response?.status, w = h.response?.data;
|
|
11278
11264
|
throw f === 400 ? new Error("Datos inválidos para el reporte") : f === 401 ? new Error("Token de API inválido") : f === 403 ? new Error("Acceso denegado para reportar comentario") : f === 404 ? new Error("Comentario no encontrado") : f === 409 ? new Error("El comentario ya fue reportado por este usuario") : f === 500 ? new Error("Error interno del servidor CMS") : new Error(
|
|
11279
|
-
|
|
11265
|
+
w?.error || w?.message || `Error HTTP ${f}: No se pudo reportar el comentario`
|
|
11280
11266
|
);
|
|
11281
11267
|
}
|
|
11282
11268
|
throw h;
|
|
@@ -11339,7 +11325,7 @@ var Cr;
|
|
|
11339
11325
|
function Xg() {
|
|
11340
11326
|
if (Cr) return ne;
|
|
11341
11327
|
Cr = 1;
|
|
11342
|
-
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, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120,
|
|
11328
|
+
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, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
11343
11329
|
function N(v) {
|
|
11344
11330
|
if (typeof v == "object" && v !== null) {
|
|
11345
11331
|
var B = v.$$typeof;
|
|
@@ -11358,7 +11344,7 @@ function Xg() {
|
|
|
11358
11344
|
case c:
|
|
11359
11345
|
case u:
|
|
11360
11346
|
case g:
|
|
11361
|
-
case
|
|
11347
|
+
case w:
|
|
11362
11348
|
case i:
|
|
11363
11349
|
return v;
|
|
11364
11350
|
default:
|
|
@@ -11373,7 +11359,7 @@ function Xg() {
|
|
|
11373
11359
|
function x(v) {
|
|
11374
11360
|
return N(v) === l;
|
|
11375
11361
|
}
|
|
11376
|
-
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 =
|
|
11362
|
+
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 = w, ne.Portal = n, ne.Profiler = s, ne.StrictMode = o, ne.Suspense = h, ne.isAsyncMode = function(v) {
|
|
11377
11363
|
return x(v) || N(v) === d;
|
|
11378
11364
|
}, ne.isConcurrentMode = x, ne.isContextConsumer = function(v) {
|
|
11379
11365
|
return N(v) === c;
|
|
@@ -11388,7 +11374,7 @@ function Xg() {
|
|
|
11388
11374
|
}, ne.isLazy = function(v) {
|
|
11389
11375
|
return N(v) === g;
|
|
11390
11376
|
}, ne.isMemo = function(v) {
|
|
11391
|
-
return N(v) ===
|
|
11377
|
+
return N(v) === w;
|
|
11392
11378
|
}, ne.isPortal = function(v) {
|
|
11393
11379
|
return N(v) === n;
|
|
11394
11380
|
}, ne.isProfiler = function(v) {
|
|
@@ -11398,17 +11384,17 @@ function Xg() {
|
|
|
11398
11384
|
}, ne.isSuspense = function(v) {
|
|
11399
11385
|
return N(v) === h;
|
|
11400
11386
|
}, ne.isValidElementType = function(v) {
|
|
11401
|
-
return typeof v == "string" || typeof v == "function" || v === r || v === l || v === s || v === o || v === h || v === f || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof ===
|
|
11387
|
+
return typeof v == "string" || typeof v == "function" || v === r || v === l || v === s || v === o || v === h || v === f || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === w || v.$$typeof === i || v.$$typeof === c || v.$$typeof === u || v.$$typeof === A || v.$$typeof === _ || v.$$typeof === S || v.$$typeof === p);
|
|
11402
11388
|
}, ne.typeOf = N, ne;
|
|
11403
11389
|
}
|
|
11404
11390
|
var ae = {};
|
|
11405
11391
|
var _r;
|
|
11406
11392
|
function ep() {
|
|
11407
11393
|
return _r || (_r = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
11408
|
-
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, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120,
|
|
11394
|
+
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, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
11409
11395
|
function N(q) {
|
|
11410
11396
|
return typeof q == "string" || typeof q == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
11411
|
-
q === r || q === l || q === s || q === o || q === h || q === f || typeof q == "object" && q !== null && (q.$$typeof === g || q.$$typeof ===
|
|
11397
|
+
q === r || q === l || q === s || q === o || q === h || q === f || typeof q == "object" && q !== null && (q.$$typeof === g || q.$$typeof === w || q.$$typeof === i || q.$$typeof === c || q.$$typeof === u || q.$$typeof === A || q.$$typeof === _ || q.$$typeof === S || q.$$typeof === p);
|
|
11412
11398
|
}
|
|
11413
11399
|
function x(q) {
|
|
11414
11400
|
if (typeof q == "object" && q !== null) {
|
|
@@ -11430,7 +11416,7 @@ function ep() {
|
|
|
11430
11416
|
case c:
|
|
11431
11417
|
case u:
|
|
11432
11418
|
case g:
|
|
11433
|
-
case
|
|
11419
|
+
case w:
|
|
11434
11420
|
case i:
|
|
11435
11421
|
return Ua;
|
|
11436
11422
|
default:
|
|
@@ -11442,7 +11428,7 @@ function ep() {
|
|
|
11442
11428
|
}
|
|
11443
11429
|
}
|
|
11444
11430
|
}
|
|
11445
|
-
var v = d, B = l, R = c, Y = i, te = t, Q = u, P = r, ee = g, ce =
|
|
11431
|
+
var v = d, B = l, R = c, Y = i, te = t, Q = u, P = r, ee = g, ce = w, M = n, U = s, E = o, D = h, T = !1;
|
|
11446
11432
|
function z(q) {
|
|
11447
11433
|
return T || (T = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(q) || x(q) === d;
|
|
11448
11434
|
}
|
|
@@ -11468,7 +11454,7 @@ function ep() {
|
|
|
11468
11454
|
return x(q) === g;
|
|
11469
11455
|
}
|
|
11470
11456
|
function V(q) {
|
|
11471
|
-
return x(q) ===
|
|
11457
|
+
return x(q) === w;
|
|
11472
11458
|
}
|
|
11473
11459
|
function Z(q) {
|
|
11474
11460
|
return x(q) === n;
|
|
@@ -11583,9 +11569,9 @@ function np() {
|
|
|
11583
11569
|
(d || "React class") + ": type specification of " + c + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
11584
11570
|
), h instanceof Error && !(h.message in n)) {
|
|
11585
11571
|
n[h.message] = !0;
|
|
11586
|
-
var
|
|
11572
|
+
var w = l ? l() : "";
|
|
11587
11573
|
e(
|
|
11588
|
-
"Failed " + c + " type: " + h.message + (
|
|
11574
|
+
"Failed " + c + " type: " + h.message + (w ?? "")
|
|
11589
11575
|
);
|
|
11590
11576
|
}
|
|
11591
11577
|
}
|
|
@@ -11619,7 +11605,7 @@ function ap() {
|
|
|
11619
11605
|
if (typeof C == "function")
|
|
11620
11606
|
return C;
|
|
11621
11607
|
}
|
|
11622
|
-
var f = "<<anonymous>>",
|
|
11608
|
+
var f = "<<anonymous>>", w = {
|
|
11623
11609
|
array: _("array"),
|
|
11624
11610
|
bigint: _("bigint"),
|
|
11625
11611
|
bool: _("boolean"),
|
|
@@ -11647,7 +11633,7 @@ function ap() {
|
|
|
11647
11633
|
this.message = y, this.data = C && typeof C == "object" ? C : {}, this.stack = "";
|
|
11648
11634
|
}
|
|
11649
11635
|
p.prototype = Error.prototype;
|
|
11650
|
-
function
|
|
11636
|
+
function A(y) {
|
|
11651
11637
|
if (process.env.NODE_ENV !== "production")
|
|
11652
11638
|
var C = {}, k = 0;
|
|
11653
11639
|
function j(G, H, V, Z, X, F, ie) {
|
|
@@ -11682,10 +11668,10 @@ function ap() {
|
|
|
11682
11668
|
}
|
|
11683
11669
|
return null;
|
|
11684
11670
|
}
|
|
11685
|
-
return
|
|
11671
|
+
return A(C);
|
|
11686
11672
|
}
|
|
11687
11673
|
function S() {
|
|
11688
|
-
return
|
|
11674
|
+
return A(i);
|
|
11689
11675
|
}
|
|
11690
11676
|
function N(y) {
|
|
11691
11677
|
function C(k, j, L, G, H) {
|
|
@@ -11703,7 +11689,7 @@ function ap() {
|
|
|
11703
11689
|
}
|
|
11704
11690
|
return null;
|
|
11705
11691
|
}
|
|
11706
|
-
return
|
|
11692
|
+
return A(C);
|
|
11707
11693
|
}
|
|
11708
11694
|
function x() {
|
|
11709
11695
|
function y(C, k, j, L, G) {
|
|
@@ -11714,7 +11700,7 @@ function ap() {
|
|
|
11714
11700
|
}
|
|
11715
11701
|
return null;
|
|
11716
11702
|
}
|
|
11717
|
-
return
|
|
11703
|
+
return A(y);
|
|
11718
11704
|
}
|
|
11719
11705
|
function v() {
|
|
11720
11706
|
function y(C, k, j, L, G) {
|
|
@@ -11725,7 +11711,7 @@ function ap() {
|
|
|
11725
11711
|
}
|
|
11726
11712
|
return null;
|
|
11727
11713
|
}
|
|
11728
|
-
return
|
|
11714
|
+
return A(y);
|
|
11729
11715
|
}
|
|
11730
11716
|
function B(y) {
|
|
11731
11717
|
function C(k, j, L, G, H) {
|
|
@@ -11735,7 +11721,7 @@ function ap() {
|
|
|
11735
11721
|
}
|
|
11736
11722
|
return null;
|
|
11737
11723
|
}
|
|
11738
|
-
return
|
|
11724
|
+
return A(C);
|
|
11739
11725
|
}
|
|
11740
11726
|
function R(y) {
|
|
11741
11727
|
if (!Array.isArray(y))
|
|
@@ -11752,7 +11738,7 @@ function ap() {
|
|
|
11752
11738
|
});
|
|
11753
11739
|
return new p("Invalid " + G + " `" + H + "` of value `" + String(V) + "` " + ("supplied to `" + L + "`, expected one of " + X + "."));
|
|
11754
11740
|
}
|
|
11755
|
-
return
|
|
11741
|
+
return A(C);
|
|
11756
11742
|
}
|
|
11757
11743
|
function Y(y) {
|
|
11758
11744
|
function C(k, j, L, G, H) {
|
|
@@ -11769,7 +11755,7 @@ function ap() {
|
|
|
11769
11755
|
}
|
|
11770
11756
|
return null;
|
|
11771
11757
|
}
|
|
11772
|
-
return
|
|
11758
|
+
return A(C);
|
|
11773
11759
|
}
|
|
11774
11760
|
function te(y) {
|
|
11775
11761
|
if (!Array.isArray(y))
|
|
@@ -11791,13 +11777,13 @@ function ap() {
|
|
|
11791
11777
|
var Ae = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
11792
11778
|
return new p("Invalid " + V + " `" + Z + "` supplied to " + ("`" + H + "`" + Ae + "."));
|
|
11793
11779
|
}
|
|
11794
|
-
return
|
|
11780
|
+
return A(j);
|
|
11795
11781
|
}
|
|
11796
11782
|
function Q() {
|
|
11797
11783
|
function y(C, k, j, L, G) {
|
|
11798
11784
|
return M(C[k]) ? null : new p("Invalid " + L + " `" + G + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
|
|
11799
11785
|
}
|
|
11800
|
-
return
|
|
11786
|
+
return A(y);
|
|
11801
11787
|
}
|
|
11802
11788
|
function P(y, C, k, j, L) {
|
|
11803
11789
|
return new p(
|
|
@@ -11819,7 +11805,7 @@ function ap() {
|
|
|
11819
11805
|
}
|
|
11820
11806
|
return null;
|
|
11821
11807
|
}
|
|
11822
|
-
return
|
|
11808
|
+
return A(C);
|
|
11823
11809
|
}
|
|
11824
11810
|
function ce(y) {
|
|
11825
11811
|
function C(k, j, L, G, H) {
|
|
@@ -11842,7 +11828,7 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
|
11842
11828
|
}
|
|
11843
11829
|
return null;
|
|
11844
11830
|
}
|
|
11845
|
-
return
|
|
11831
|
+
return A(C);
|
|
11846
11832
|
}
|
|
11847
11833
|
function M(y) {
|
|
11848
11834
|
switch (typeof y) {
|
|
@@ -11913,7 +11899,7 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
|
11913
11899
|
function z(y) {
|
|
11914
11900
|
return !y.constructor || !y.constructor.name ? f : y.constructor.name;
|
|
11915
11901
|
}
|
|
11916
|
-
return
|
|
11902
|
+
return w.checkPropTypes = o, w.resetWarningCache = o.resetWarningCache, w.PropTypes = w, w;
|
|
11917
11903
|
}, Jn;
|
|
11918
11904
|
}
|
|
11919
11905
|
var Zn, Ur;
|
|
@@ -12146,17 +12132,17 @@ function dp() {
|
|
|
12146
12132
|
return e.isMemo(g) ? o : s[g.$$typeof] || t;
|
|
12147
12133
|
}
|
|
12148
12134
|
var c = Object.defineProperty, d = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, u = Object.getOwnPropertyDescriptor, h = Object.getPrototypeOf, f = Object.prototype;
|
|
12149
|
-
function
|
|
12135
|
+
function w(g, p, A) {
|
|
12150
12136
|
if (typeof p != "string") {
|
|
12151
12137
|
if (f) {
|
|
12152
12138
|
var _ = h(p);
|
|
12153
|
-
_ && _ !== f &&
|
|
12139
|
+
_ && _ !== f && w(g, _, A);
|
|
12154
12140
|
}
|
|
12155
12141
|
var S = d(p);
|
|
12156
12142
|
l && (S = S.concat(l(p)));
|
|
12157
12143
|
for (var N = i(g), x = i(p), v = 0; v < S.length; ++v) {
|
|
12158
12144
|
var B = S[v];
|
|
12159
|
-
if (!n[B] && !(
|
|
12145
|
+
if (!n[B] && !(A && A[B]) && !(x && x[B]) && !(N && N[B])) {
|
|
12160
12146
|
var R = u(p, B);
|
|
12161
12147
|
try {
|
|
12162
12148
|
c(g, B, R);
|
|
@@ -12167,7 +12153,7 @@ function dp() {
|
|
|
12167
12153
|
}
|
|
12168
12154
|
return g;
|
|
12169
12155
|
}
|
|
12170
|
-
return Xn =
|
|
12156
|
+
return Xn = w, Xn;
|
|
12171
12157
|
}
|
|
12172
12158
|
var up = dp();
|
|
12173
12159
|
const hp = /* @__PURE__ */ Ct(up);
|
|
@@ -12218,7 +12204,7 @@ function pp(e, t) {
|
|
|
12218
12204
|
h.observers[f](h);
|
|
12219
12205
|
delete window[t.callbackName];
|
|
12220
12206
|
}, l.componentDidMount = function() {
|
|
12221
|
-
var h = this, f = this.setupScriptURL(),
|
|
12207
|
+
var h = this, f = this.setupScriptURL(), w = this.asyncScriptLoaderGetScriptLoaderID(), g = t, p = g.globalName, A = g.callbackName, _ = g.scriptId;
|
|
12222
12208
|
if (p && typeof window[p] < "u" && (Re[f] = {
|
|
12223
12209
|
loaded: !0,
|
|
12224
12210
|
observers: {}
|
|
@@ -12228,13 +12214,13 @@ function pp(e, t) {
|
|
|
12228
12214
|
this.asyncScriptLoaderHandleLoad(S);
|
|
12229
12215
|
return;
|
|
12230
12216
|
}
|
|
12231
|
-
S.observers[
|
|
12217
|
+
S.observers[w] = function(R) {
|
|
12232
12218
|
return h.asyncScriptLoaderHandleLoad(R);
|
|
12233
12219
|
};
|
|
12234
12220
|
return;
|
|
12235
12221
|
}
|
|
12236
12222
|
var N = {};
|
|
12237
|
-
N[
|
|
12223
|
+
N[w] = function(R) {
|
|
12238
12224
|
return h.asyncScriptLoaderHandleLoad(R);
|
|
12239
12225
|
}, Re[f] = {
|
|
12240
12226
|
loaded: !1,
|
|
@@ -12252,12 +12238,12 @@ function pp(e, t) {
|
|
|
12252
12238
|
Y(Q[P]) && delete Q[P];
|
|
12253
12239
|
}
|
|
12254
12240
|
};
|
|
12255
|
-
|
|
12241
|
+
A && typeof window < "u" && (window[A] = function() {
|
|
12256
12242
|
return h.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
12257
12243
|
}), x.onload = function() {
|
|
12258
12244
|
var R = Re[f];
|
|
12259
12245
|
R && (R.loaded = !0, B(function(Y) {
|
|
12260
|
-
return
|
|
12246
|
+
return A ? !1 : (Y(R), !0);
|
|
12261
12247
|
}));
|
|
12262
12248
|
}, x.onerror = function() {
|
|
12263
12249
|
var R = Re[f];
|
|
@@ -12268,15 +12254,15 @@ function pp(e, t) {
|
|
|
12268
12254
|
}, l.componentWillUnmount = function() {
|
|
12269
12255
|
var h = this.__scriptURL;
|
|
12270
12256
|
if (t.removeOnUnmount === !0)
|
|
12271
|
-
for (var f = document.getElementsByTagName("script"),
|
|
12272
|
-
f[
|
|
12257
|
+
for (var f = document.getElementsByTagName("script"), w = 0; w < f.length; w += 1)
|
|
12258
|
+
f[w].src.indexOf(h) > -1 && f[w].parentNode && f[w].parentNode.removeChild(f[w]);
|
|
12273
12259
|
var g = Re[h];
|
|
12274
12260
|
g && (delete g.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete Re[h]);
|
|
12275
12261
|
}, l.render = function() {
|
|
12276
12262
|
var h = t.globalName, f = this.props;
|
|
12277
12263
|
f.asyncScriptOnLoad;
|
|
12278
|
-
var
|
|
12279
|
-
return h && typeof window < "u" && (g[h] = typeof window[h] < "u" ? window[h] : void 0), g.ref =
|
|
12264
|
+
var w = f.forwardedRef, g = mp(f, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
12265
|
+
return h && typeof window < "u" && (g[h] = typeof window[h] < "u" ? window[h] : void 0), g.ref = w, ot(r, g);
|
|
12280
12266
|
}, d;
|
|
12281
12267
|
})(Qo), i = Or(function(c, d) {
|
|
12282
12268
|
return ot(s, ua({}, c, {
|
|
@@ -12350,7 +12336,7 @@ const ko = pp(wp, {
|
|
|
12350
12336
|
}) => {
|
|
12351
12337
|
const [s, i] = $("form"), [c, d] = $(
|
|
12352
12338
|
""
|
|
12353
|
-
), [l, u] = $(""), [h, f] = $(""),
|
|
12339
|
+
), [l, u] = $(""), [h, f] = $(""), w = [
|
|
12354
12340
|
{ id: "spam", label: Ye.spam },
|
|
12355
12341
|
{
|
|
12356
12342
|
id: "inappropriate",
|
|
@@ -12395,8 +12381,8 @@ const ko = pp(wp, {
|
|
|
12395
12381
|
}, 3e3);
|
|
12396
12382
|
else
|
|
12397
12383
|
throw new Error(_.message || "Error al reportar comentario");
|
|
12398
|
-
} catch (
|
|
12399
|
-
console.error("Error reporting comment:",
|
|
12384
|
+
} catch (A) {
|
|
12385
|
+
console.error("Error reporting comment:", A), u(A.message || "Error al reportar comentario"), i("form");
|
|
12400
12386
|
}
|
|
12401
12387
|
}
|
|
12402
12388
|
}, p = () => {
|
|
@@ -12407,21 +12393,21 @@ const ko = pp(wp, {
|
|
|
12407
12393
|
/* @__PURE__ */ a("h2", { className: ue.title, children: "Reportar Abuso" }),
|
|
12408
12394
|
s === "loading" && /* @__PURE__ */ a("div", { className: ue.loadingContainer, children: /* @__PURE__ */ a(Ze, {}) }),
|
|
12409
12395
|
s === "form" || s === "loading" ? /* @__PURE__ */ m(K, { children: [
|
|
12410
|
-
/* @__PURE__ */ a("div", { className: ue.optionsContainer, children:
|
|
12396
|
+
/* @__PURE__ */ a("div", { className: ue.optionsContainer, children: w.map((A) => /* @__PURE__ */ m("label", { className: ue.option, children: [
|
|
12411
12397
|
/* @__PURE__ */ a(
|
|
12412
12398
|
"input",
|
|
12413
12399
|
{
|
|
12414
12400
|
type: "radio",
|
|
12415
12401
|
name: "reportReason",
|
|
12416
|
-
value:
|
|
12417
|
-
checked: c ===
|
|
12402
|
+
value: A.id,
|
|
12403
|
+
checked: c === A.id,
|
|
12418
12404
|
onChange: (_) => d(_.target.value),
|
|
12419
12405
|
className: ue.radioInput
|
|
12420
12406
|
}
|
|
12421
12407
|
),
|
|
12422
12408
|
/* @__PURE__ */ a("span", { className: ue.radioCustom }),
|
|
12423
|
-
/* @__PURE__ */ a("span", { className: ue.optionLabel, children:
|
|
12424
|
-
] },
|
|
12409
|
+
/* @__PURE__ */ a("span", { className: ue.optionLabel, children: A.label })
|
|
12410
|
+
] }, A.id)) }),
|
|
12425
12411
|
l && /* @__PURE__ */ a("div", { className: ue.errorMessage, children: l }),
|
|
12426
12412
|
/* @__PURE__ */ a(
|
|
12427
12413
|
ko,
|
|
@@ -12429,7 +12415,7 @@ const ko = pp(wp, {
|
|
|
12429
12415
|
sitekey: "",
|
|
12430
12416
|
theme: "light",
|
|
12431
12417
|
size: "normal",
|
|
12432
|
-
onChange: (
|
|
12418
|
+
onChange: (A) => f(A ?? ""),
|
|
12433
12419
|
onExpired: () => f("")
|
|
12434
12420
|
}
|
|
12435
12421
|
),
|
|
@@ -12521,23 +12507,23 @@ async function Fp({
|
|
|
12521
12507
|
throw new Error("Invalid input types for publication or path");
|
|
12522
12508
|
if (!c)
|
|
12523
12509
|
throw new Error("Missing CMS API token");
|
|
12524
|
-
const { PUBLIC_ENV: d, PUBLIC_API_HOST: l, PUBLIC_API_PATH: u, PUBLIC_API_PATH_VERSION: h } = J(), f = parseInt(String(n), 10),
|
|
12510
|
+
const { PUBLIC_ENV: d, PUBLIC_API_HOST: l, PUBLIC_API_PATH: u, PUBLIC_API_PATH_VERSION: h } = J(), f = parseInt(String(n), 10), w = parseInt(String(r), 10);
|
|
12525
12511
|
if (isNaN(f) || f <= 0)
|
|
12526
12512
|
throw new Error("Invalid size parameter");
|
|
12527
|
-
if (isNaN(
|
|
12513
|
+
if (isNaN(w) || w < 0)
|
|
12528
12514
|
throw new Error("Invalid sizereply parameter");
|
|
12529
12515
|
const g = d !== "prod" ? `${l}${u}` : hs(), p = new URLSearchParams({
|
|
12530
12516
|
publication: e,
|
|
12531
12517
|
path: t,
|
|
12532
12518
|
size: f.toString(),
|
|
12533
|
-
sizereply:
|
|
12519
|
+
sizereply: w.toString(),
|
|
12534
12520
|
state: i
|
|
12535
12521
|
});
|
|
12536
12522
|
o && p.append("id", o), s && p.append("lastid", s);
|
|
12537
|
-
const
|
|
12523
|
+
const A = `${g}${h}/newcomments/get?${p.toString()}`;
|
|
12538
12524
|
try {
|
|
12539
|
-
console.log("Fetching comments from:",
|
|
12540
|
-
const { data: _ } = await oe.get(
|
|
12525
|
+
console.log("Fetching comments from:", A);
|
|
12526
|
+
const { data: _ } = await oe.get(A, {
|
|
12541
12527
|
headers: {
|
|
12542
12528
|
"x-api-token": c,
|
|
12543
12529
|
"Cache-Control": "max-age=0, no-cache, no-store, must-revalidate",
|
|
@@ -12756,7 +12742,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
12756
12742
|
throw new Error(
|
|
12757
12743
|
`Error al enviar comentario: ${u?.message} status: ${l.status}`
|
|
12758
12744
|
);
|
|
12759
|
-
const h = Date.now(), f = Math.max(0, 2400 + Math.abs(h - d)),
|
|
12745
|
+
const h = Date.now(), f = Math.max(0, 2400 + Math.abs(h - d)), w = {
|
|
12760
12746
|
username: o.username,
|
|
12761
12747
|
firstname: o.firstname,
|
|
12762
12748
|
...o.lastname && { lastname: o.lastname },
|
|
@@ -12765,7 +12751,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
12765
12751
|
return i({
|
|
12766
12752
|
id: h.toString(),
|
|
12767
12753
|
text: c,
|
|
12768
|
-
user:
|
|
12754
|
+
user: w,
|
|
12769
12755
|
date: { time: Date.now() },
|
|
12770
12756
|
reply: []
|
|
12771
12757
|
}), t.current && (t.current.value = ""), f;
|
|
@@ -12840,10 +12826,10 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
12840
12826
|
] })
|
|
12841
12827
|
] }) });
|
|
12842
12828
|
}, e9 = ({ comment: e, replyingTo: t, path: n, user: r, handleReplyingTo: o, onFlag: s }) => {
|
|
12843
|
-
const i = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [c, d] = $(i), [l, u] = Ee.useState(!1), h = process.env.PUBLIC_PUBLICATION_ID ?? "", f = e.text,
|
|
12829
|
+
const i = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [c, d] = $(i), [l, u] = Ee.useState(!1), h = process.env.PUBLIC_PUBLICATION_ID ?? "", f = e.text, w = Ee.useRef(null);
|
|
12844
12830
|
let g = `${Je.firstname} ${Je.lastname}`, p = Je.username;
|
|
12845
12831
|
e.user && (g = `${e.user.firstname} ${e.user.lastname}`, p = e.user.username);
|
|
12846
|
-
const
|
|
12832
|
+
const A = (_) => {
|
|
12847
12833
|
d({ morereply: c.morereply, reply: [_, ...c.reply] });
|
|
12848
12834
|
};
|
|
12849
12835
|
return /* @__PURE__ */ a("div", { className: "comment-item", children: /* @__PURE__ */ m(
|
|
@@ -12868,8 +12854,8 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
12868
12854
|
Zp,
|
|
12869
12855
|
{
|
|
12870
12856
|
replyingTo: t,
|
|
12871
|
-
commentRef:
|
|
12872
|
-
addReply:
|
|
12857
|
+
commentRef: w,
|
|
12858
|
+
addReply: A,
|
|
12873
12859
|
user: r,
|
|
12874
12860
|
path: n,
|
|
12875
12861
|
closeForm: () => o("")
|
|
@@ -12970,7 +12956,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
12970
12956
|
}) => {
|
|
12971
12957
|
const o = t.replaceAll("/", "|"), [s, i] = $(
|
|
12972
12958
|
void 0
|
|
12973
|
-
), [c, d] = $(""), { comments: l, setComments: u } = Yp(o), [h, f] = Ee.useState(!1),
|
|
12959
|
+
), [c, d] = $(""), { comments: l, setComments: u } = Yp(o), [h, f] = Ee.useState(!1), w = Ee.useRef(null), g = (v) => {
|
|
12974
12960
|
d(c === v ? "" : v);
|
|
12975
12961
|
}, p = (v) => {
|
|
12976
12962
|
u(
|
|
@@ -12979,7 +12965,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
12979
12965
|
comments: [v, ...l.comments ?? []]
|
|
12980
12966
|
} : void 0
|
|
12981
12967
|
);
|
|
12982
|
-
},
|
|
12968
|
+
}, A = (v) => {
|
|
12983
12969
|
i(v);
|
|
12984
12970
|
}, _ = async () => {
|
|
12985
12971
|
if (!l || !l.morecomment || l.comments.length === 0) return;
|
|
@@ -13020,7 +13006,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
13020
13006
|
/* @__PURE__ */ a(
|
|
13021
13007
|
t9,
|
|
13022
13008
|
{
|
|
13023
|
-
commentRef:
|
|
13009
|
+
commentRef: w,
|
|
13024
13010
|
user: n,
|
|
13025
13011
|
addComment: p,
|
|
13026
13012
|
path: o
|
|
@@ -13039,7 +13025,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
13039
13025
|
comment: v,
|
|
13040
13026
|
replyingTo: c,
|
|
13041
13027
|
handleReplyingTo: g,
|
|
13042
|
-
onFlag:
|
|
13028
|
+
onFlag: A,
|
|
13043
13029
|
user: n ?? Je,
|
|
13044
13030
|
path: o
|
|
13045
13031
|
},
|
|
@@ -13119,10 +13105,10 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
13119
13105
|
function o9({ goToLogin: e, handleGoogleLogin: t }) {
|
|
13120
13106
|
const [n, r] = $({}), [o, s] = $(!1), [i, c] = $(!1), [d, l] = $(null), [u, h] = $(
|
|
13121
13107
|
"register"
|
|
13122
|
-
), f = (
|
|
13123
|
-
r((S) => ({ ...S, [
|
|
13124
|
-
},
|
|
13125
|
-
|
|
13108
|
+
), f = (A, _) => {
|
|
13109
|
+
r((S) => ({ ...S, [A]: _ }));
|
|
13110
|
+
}, w = async (A) => {
|
|
13111
|
+
A.preventDefault(), l(null), c(!0);
|
|
13126
13112
|
try {
|
|
13127
13113
|
const _ = Object.keys(Lr).filter((R) => !["username", "password", "confirmPassword"].includes(R)).map((R) => ({ Name: R, Value: n[R] }));
|
|
13128
13114
|
if (_.some((R) => {
|
|
@@ -13175,8 +13161,8 @@ function o9({ goToLogin: e, handleGoogleLogin: t }) {
|
|
|
13175
13161
|
} finally {
|
|
13176
13162
|
c(!1);
|
|
13177
13163
|
}
|
|
13178
|
-
}, g = async (
|
|
13179
|
-
if (
|
|
13164
|
+
}, g = async (A) => {
|
|
13165
|
+
if (A.preventDefault(), !n.confirmationCode) {
|
|
13180
13166
|
l("Debes ingresar el código de verificación");
|
|
13181
13167
|
return;
|
|
13182
13168
|
}
|
|
@@ -13218,24 +13204,24 @@ function o9({ goToLogin: e, handleGoogleLogin: t }) {
|
|
|
13218
13204
|
/* @__PURE__ */ m(
|
|
13219
13205
|
"form",
|
|
13220
13206
|
{
|
|
13221
|
-
onSubmit:
|
|
13207
|
+
onSubmit: w,
|
|
13222
13208
|
className: I.form,
|
|
13223
13209
|
"data-error": d ? "true" : "false",
|
|
13224
13210
|
children: [
|
|
13225
|
-
/* @__PURE__ */ a("ul", { className: I.formUl, children: Object.entries(Lr).map(([
|
|
13211
|
+
/* @__PURE__ */ a("ul", { className: I.formUl, children: Object.entries(Lr).map(([A, { label: _ }]) => /* @__PURE__ */ m("div", { className: I.field, children: [
|
|
13226
13212
|
/* @__PURE__ */ a("label", { className: I.label, children: _ }),
|
|
13227
13213
|
/* @__PURE__ */ a(
|
|
13228
13214
|
"input",
|
|
13229
13215
|
{
|
|
13230
|
-
type:
|
|
13231
|
-
name:
|
|
13232
|
-
value: n[
|
|
13233
|
-
onChange: (S) => f(
|
|
13216
|
+
type: A.toLowerCase().includes("password") ? o ? "text" : "password" : A === "birthdate" ? "date" : A === "email" ? "email" : A === "phone_number" ? "tel" : "text",
|
|
13217
|
+
name: A,
|
|
13218
|
+
value: n[A] || "",
|
|
13219
|
+
onChange: (S) => f(A, S.target.value),
|
|
13234
13220
|
className: I.input,
|
|
13235
13221
|
placeholder: ""
|
|
13236
13222
|
}
|
|
13237
13223
|
),
|
|
13238
|
-
|
|
13224
|
+
A === "password" && /* @__PURE__ */ a("div", { className: I.passwordChecker, children: Cn.map((S, N) => {
|
|
13239
13225
|
const x = S.test(p);
|
|
13240
13226
|
return /* @__PURE__ */ m(
|
|
13241
13227
|
"div",
|
|
@@ -13249,7 +13235,7 @@ function o9({ goToLogin: e, handleGoogleLogin: t }) {
|
|
|
13249
13235
|
N
|
|
13250
13236
|
);
|
|
13251
13237
|
}) }),
|
|
13252
|
-
|
|
13238
|
+
A === "confirmPassword" && /* @__PURE__ */ m("div", { className: I.checkboxRow, children: [
|
|
13253
13239
|
/* @__PURE__ */ a(
|
|
13254
13240
|
"input",
|
|
13255
13241
|
{
|
|
@@ -13268,7 +13254,7 @@ function o9({ goToLogin: e, handleGoogleLogin: t }) {
|
|
|
13268
13254
|
}
|
|
13269
13255
|
)
|
|
13270
13256
|
] })
|
|
13271
|
-
] },
|
|
13257
|
+
] }, A)) }),
|
|
13272
13258
|
d && /* @__PURE__ */ a("p", { className: I.error, children: d }),
|
|
13273
13259
|
/* @__PURE__ */ m("p", { className: I.terms, children: [
|
|
13274
13260
|
"Al continuar, confirmo que he leído y aceptado los",
|
|
@@ -13295,7 +13281,7 @@ function o9({ goToLogin: e, handleGoogleLogin: t }) {
|
|
|
13295
13281
|
type: "text",
|
|
13296
13282
|
name: "confirmationCode",
|
|
13297
13283
|
value: n.confirmationCode || "",
|
|
13298
|
-
onChange: (
|
|
13284
|
+
onChange: (A) => f("confirmationCode", A.target.value),
|
|
13299
13285
|
className: I.input,
|
|
13300
13286
|
required: !0
|
|
13301
13287
|
}
|
|
@@ -13347,14 +13333,14 @@ function s9({
|
|
|
13347
13333
|
goToRegister: n,
|
|
13348
13334
|
handleGoogleLogin: r
|
|
13349
13335
|
}) {
|
|
13350
|
-
const [o, s] = $("login"), [i, c] = $(""), [d, l] = $(""), [u, h] = $(""), [f,
|
|
13336
|
+
const [o, s] = $("login"), [i, c] = $(""), [d, l] = $(""), [u, h] = $(""), [f, w] = $(""), [g, p] = $(""), [A, _] = $(!1), [S, N] = $(!1), [x, v] = $(null), { CAPTCHA_KEY: B } = J();
|
|
13351
13337
|
return /* @__PURE__ */ m(K, { children: [
|
|
13352
13338
|
o === "login" && /* @__PURE__ */ a(
|
|
13353
13339
|
i9,
|
|
13354
13340
|
{
|
|
13355
13341
|
email: i,
|
|
13356
13342
|
password: d,
|
|
13357
|
-
showPassword:
|
|
13343
|
+
showPassword: A,
|
|
13358
13344
|
loading: S,
|
|
13359
13345
|
error: x,
|
|
13360
13346
|
setEmail: c,
|
|
@@ -13431,11 +13417,11 @@ function s9({
|
|
|
13431
13417
|
confirmationCode: u,
|
|
13432
13418
|
newPassword: f,
|
|
13433
13419
|
confirmNewPassword: g,
|
|
13434
|
-
showPassword:
|
|
13420
|
+
showPassword: A,
|
|
13435
13421
|
loading: S,
|
|
13436
13422
|
error: x,
|
|
13437
13423
|
setConfirmationCode: h,
|
|
13438
|
-
setNewPassword:
|
|
13424
|
+
setNewPassword: w,
|
|
13439
13425
|
setConfirmNewPassword: p,
|
|
13440
13426
|
setShowPassword: _,
|
|
13441
13427
|
onSubmit: async (Q) => {
|
|
@@ -13647,7 +13633,7 @@ function l9({
|
|
|
13647
13633
|
{
|
|
13648
13634
|
type: "text",
|
|
13649
13635
|
value: t,
|
|
13650
|
-
onChange: (
|
|
13636
|
+
onChange: (w) => c(w.target.value),
|
|
13651
13637
|
className: I.input,
|
|
13652
13638
|
placeholder: ""
|
|
13653
13639
|
}
|
|
@@ -13660,17 +13646,17 @@ function l9({
|
|
|
13660
13646
|
{
|
|
13661
13647
|
type: o ? "text" : "password",
|
|
13662
13648
|
value: n,
|
|
13663
|
-
onChange: (
|
|
13649
|
+
onChange: (w) => d(w.target.value),
|
|
13664
13650
|
className: I.input,
|
|
13665
13651
|
placeholder: "",
|
|
13666
13652
|
name: "password"
|
|
13667
13653
|
}
|
|
13668
13654
|
),
|
|
13669
|
-
/* @__PURE__ */ a("div", { className: I.passwordChecker, children: Cn.map((
|
|
13670
|
-
const p =
|
|
13655
|
+
/* @__PURE__ */ a("div", { className: I.passwordChecker, children: Cn.map((w, g) => {
|
|
13656
|
+
const p = w.test(n);
|
|
13671
13657
|
return /* @__PURE__ */ m("div", { className: p ? I.valid : I.invalid, children: [
|
|
13672
13658
|
/* @__PURE__ */ a("div", { children: p ? "✔" : "○" }),
|
|
13673
|
-
/* @__PURE__ */ a("div", { children:
|
|
13659
|
+
/* @__PURE__ */ a("div", { children: w.label })
|
|
13674
13660
|
] }, g);
|
|
13675
13661
|
}) })
|
|
13676
13662
|
] }),
|
|
@@ -13681,7 +13667,7 @@ function l9({
|
|
|
13681
13667
|
{
|
|
13682
13668
|
type: o ? "text" : "password",
|
|
13683
13669
|
value: r,
|
|
13684
|
-
onChange: (
|
|
13670
|
+
onChange: (w) => l(w.target.value),
|
|
13685
13671
|
className: I.input,
|
|
13686
13672
|
placeholder: ""
|
|
13687
13673
|
}
|
|
@@ -13693,7 +13679,7 @@ function l9({
|
|
|
13693
13679
|
id: "showPasswordForgot",
|
|
13694
13680
|
type: "checkbox",
|
|
13695
13681
|
checked: o,
|
|
13696
|
-
onChange: (
|
|
13682
|
+
onChange: (w) => u(w.target.checked)
|
|
13697
13683
|
}
|
|
13698
13684
|
),
|
|
13699
13685
|
/* @__PURE__ */ a(
|
|
@@ -13971,7 +13957,7 @@ async function _3({
|
|
|
13971
13957
|
message: "Faltan campos obligatorios. Por favor, completa todos los campos.",
|
|
13972
13958
|
status: 400
|
|
13973
13959
|
};
|
|
13974
|
-
if ([e, t, r, n].some((
|
|
13960
|
+
if ([e, t, r, n].some((w) => typeof w != "string"))
|
|
13975
13961
|
return {
|
|
13976
13962
|
type: "error",
|
|
13977
13963
|
message: "Datos inválidos. Intenta de nuevo.",
|
|
@@ -14005,7 +13991,7 @@ async function _3({
|
|
|
14005
13991
|
o && (h.id = o);
|
|
14006
13992
|
const f = new URLSearchParams(h);
|
|
14007
13993
|
try {
|
|
14008
|
-
const { data:
|
|
13994
|
+
const { data: w } = await oe.get(`${u}?${f.toString()}`, {
|
|
14009
13995
|
headers: {
|
|
14010
13996
|
"Content-Type": "application/json",
|
|
14011
13997
|
"x-security-token": d,
|
|
@@ -14013,18 +13999,18 @@ async function _3({
|
|
|
14013
13999
|
"User-Agent": "amplifyapp-comments-saas"
|
|
14014
14000
|
}
|
|
14015
14001
|
});
|
|
14016
|
-
return !
|
|
14002
|
+
return !w || w.error ? (console.error("CMS error response:", w), {
|
|
14017
14003
|
type: "error",
|
|
14018
14004
|
message: "No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",
|
|
14019
14005
|
status: 502
|
|
14020
|
-
}) : (console.log("Comentario enviado con éxito",
|
|
14006
|
+
}) : (console.log("Comentario enviado con éxito", w), {
|
|
14021
14007
|
type: "success",
|
|
14022
14008
|
message: "Comentario enviado con éxito.",
|
|
14023
14009
|
status: 200
|
|
14024
14010
|
});
|
|
14025
|
-
} catch (
|
|
14026
|
-
if (console.error("Error enviando comentario:",
|
|
14027
|
-
const g =
|
|
14011
|
+
} catch (w) {
|
|
14012
|
+
if (console.error("Error enviando comentario:", w), oe.isAxiosError(w)) {
|
|
14013
|
+
const g = w.response?.status ?? 500, p = w.response?.data;
|
|
14028
14014
|
return g === 400 ? {
|
|
14029
14015
|
type: "error",
|
|
14030
14016
|
message: p?.message || "Solicitud inválida. Verifica que los campos sean correctos.",
|