sass-template-common 0.1.56 → 0.1.58
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.
|
@@ -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", A = "year", g = "date", p = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, _ = /\[([^\]]+)]|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: A, 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(w);
|
|
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 A:
|
|
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[A] = 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 === A) {
|
|
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 === A) return this.set(A, 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 A:
|
|
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", A], ["$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, A) {
|
|
444
|
+
for (var g, p, w, _ = 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 (w = 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
|
+
A && (B = A("" + B)), p = typeof R == "string" ? R.replace("%d", B) : R(B, u, v.l, w);
|
|
452
452
|
break;
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
if (u) return p;
|
|
456
|
-
var Y =
|
|
456
|
+
var Y = w ? _.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 w = { date: p, utc: !0, args: arguments };
|
|
505
|
+
return new i(w);
|
|
506
506
|
}, d.utc = function(p) {
|
|
507
|
-
var
|
|
508
|
-
return p ?
|
|
507
|
+
var w = c(this.toDate(), { locale: this.$L, utc: !0 });
|
|
508
|
+
return p ? w.add(this.utcOffset(), n) : w;
|
|
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, w) {
|
|
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(w);
|
|
536
536
|
var N = this.clone();
|
|
537
|
-
if (
|
|
537
|
+
if (w) 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 w = p || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
544
|
+
return f.call(this, w);
|
|
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 A = 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() : A.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, w, _) {
|
|
561
|
+
if (p && this.$u === p.$u) return g.call(this, p, w, _);
|
|
562
562
|
var S = this.local(), N = c(p).local();
|
|
563
|
-
return g.call(S, N,
|
|
563
|
+
return g.call(S, N, w, _);
|
|
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, A, g) {
|
|
580
580
|
g === void 0 && (g = {});
|
|
581
|
-
var p = new Date(f),
|
|
581
|
+
var p = new Date(f), w = (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
|
+
})(A, g);
|
|
586
|
+
return w.formatToParts(p);
|
|
587
|
+
}, l = function(f, A) {
|
|
588
|
+
for (var g = d(f, A), p = [], w = 0; w < g.length; w += 1) {
|
|
589
|
+
var _ = g[w], 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, A) {
|
|
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(), w = this.toDate(), _ = w.toLocaleString("en-US", { timeZone: f }), S = Math.round((w - new Date(_)) / 1e3 / 60), N = 15 * -Math.round(w.getTimezoneOffset() / 15) - S;
|
|
598
|
+
if (!Number(N)) g = this.utcOffset(0, A);
|
|
599
|
+
else if (g = i(_, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(N, !0), A) {
|
|
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 A = this.$x.$timezone || i.tz.guess(), g = d(this.valueOf(), A, { 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, A) {
|
|
612
|
+
if (!this.$x || !this.$x.$timezone) return h.call(this, f, A);
|
|
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, A).tz(this.$x.$timezone, !0);
|
|
615
|
+
}, i.tz = function(f, A, g) {
|
|
616
|
+
var p = g && A, w = g || A || c, _ = l(+i(), w);
|
|
617
|
+
if (typeof f != "string") return i(f).tz(w);
|
|
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(), _, w), N = S[0], x = S[1], v = i(N).utcOffset(x);
|
|
624
|
+
return v.$x.$timezone = w, 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, A = 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 w = p === "/news-breadcrumb" ? { ...l, prefixtag: A } : l;
|
|
1145
|
+
return await ga(w, p, r);
|
|
1146
1146
|
})
|
|
1147
1147
|
)).map((p) => p?.data?.data ?? []);
|
|
1148
1148
|
} catch (c) {
|
|
@@ -1370,8 +1370,8 @@ class N9 {
|
|
|
1370
1370
|
imgSizes = {};
|
|
1371
1371
|
configVersion = ".config";
|
|
1372
1372
|
axiosApi = void 0;
|
|
1373
|
-
constructor(t, n, r) {
|
|
1374
|
-
this.config = t, this.imgSizes = n, this.axiosApi = r, t.configVersion && (this.configVersion = t.configVersion);
|
|
1373
|
+
constructor(t, n, r, o) {
|
|
1374
|
+
this.config = t, this.imgSizes = n, this.axiosApi = r, t.configVersion && (this.configVersion = t.configVersion), o && (this.exclude = o);
|
|
1375
1375
|
}
|
|
1376
1376
|
async getNewsListZone(t) {
|
|
1377
1377
|
if (this.axiosApi)
|
|
@@ -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, w) {
|
|
1804
|
+
return !b.isUndefined(w[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, w) {
|
|
1820
1820
|
let _ = g;
|
|
1821
|
-
if (g && !
|
|
1821
|
+
if (g && !w && 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(w, 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 A(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 && A(_, 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 A(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 A = u && l - u;
|
|
2342
|
+
return A ? Math.round(f * 1e3 / A) : 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, A, g;
|
|
2517
2517
|
function p() {
|
|
2518
|
-
|
|
2518
|
+
A && A(), g && g(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
|
|
2519
2519
|
}
|
|
2520
|
-
let
|
|
2521
|
-
|
|
2520
|
+
let w = new XMLHttpRequest();
|
|
2521
|
+
w.open(o.method.toUpperCase(), o.url, !0), w.timeout = o.timeout;
|
|
2522
2522
|
function _() {
|
|
2523
|
-
if (!
|
|
2523
|
+
if (!w)
|
|
2524
2524
|
return;
|
|
2525
2525
|
const N = _e.from(
|
|
2526
|
-
"getAllResponseHeaders" in
|
|
2526
|
+
"getAllResponseHeaders" in w && w.getAllResponseHeaders()
|
|
2527
2527
|
), v = {
|
|
2528
|
-
data: !c || c === "text" || c === "json" ?
|
|
2529
|
-
status:
|
|
2530
|
-
statusText:
|
|
2528
|
+
data: !c || c === "text" || c === "json" ? w.responseText : w.response,
|
|
2529
|
+
status: w.status,
|
|
2530
|
+
statusText: w.statusText,
|
|
2531
2531
|
headers: N,
|
|
2532
2532
|
config: e,
|
|
2533
|
-
request:
|
|
2533
|
+
request: w
|
|
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), w = null;
|
|
2540
|
+
}
|
|
2541
|
+
"onloadend" in w ? w.onloadend = _ : w.onreadystatechange = function() {
|
|
2542
|
+
!w || w.readyState !== 4 || w.status === 0 && !(w.responseURL && w.responseURL.indexOf("file:") === 0) || setTimeout(_);
|
|
2543
|
+
}, w.onabort = function() {
|
|
2544
|
+
w && (r(new W("Request aborted", W.ECONNABORTED, e, w)), w = null);
|
|
2545
|
+
}, w.onerror = function(x) {
|
|
2546
|
+
const v = x && x.message ? x.message : "Network Error", B = new W(v, W.ERR_NETWORK, e, w);
|
|
2547
|
+
B.event = x || null, r(B), w = null;
|
|
2548
|
+
}, w.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
|
+
w
|
|
2556
|
+
)), w = null;
|
|
2557
|
+
}, s === void 0 && i.setContentType(null), "setRequestHeader" in w && b.forEach(i.toJSON(), function(x, v) {
|
|
2558
|
+
w.setRequestHeader(v, x);
|
|
2559
|
+
}), b.isUndefined(o.withCredentials) || (w.withCredentials = !!o.withCredentials), c && c !== "json" && (w.responseType = o.responseType), l && ([f, g] = An(l, !0), w.addEventListener("progress", f)), d && w.upload && ([h, A] = An(d), w.upload.addEventListener("progress", h), w.upload.addEventListener("loadend", A)), (o.cancelToken || o.signal) && (u = (N) => {
|
|
2560
|
+
w && (r(!N || N.type ? new Nt(null, e, w) : N), w.abort(), w = 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
|
+
w.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, w) => {
|
|
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, w);
|
|
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
|
+
}, A = async (g, p) => {
|
|
2704
|
+
const w = b.toFiniteNumber(g.getContentLength());
|
|
2705
|
+
return w ?? f(p);
|
|
2706
2706
|
};
|
|
2707
2707
|
return async (g) => {
|
|
2708
2708
|
let {
|
|
2709
2709
|
url: p,
|
|
2710
|
-
method:
|
|
2710
|
+
method: w,
|
|
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 && w !== "get" && w !== "head" && (U = await A(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: w.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 A = 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
|
+
A = g(A);
|
|
3014
|
+
} catch (w) {
|
|
3015
|
+
p.call(this, w);
|
|
3016
3016
|
break;
|
|
3017
3017
|
}
|
|
3018
3018
|
}
|
|
3019
3019
|
try {
|
|
3020
|
-
u = Za.call(this,
|
|
3020
|
+
u = Za.call(this, A);
|
|
3021
3021
|
} catch (g) {
|
|
3022
3022
|
return Promise.reject(g);
|
|
3023
3023
|
}
|
|
@@ -3256,9 +3256,10 @@ const {
|
|
|
3256
3256
|
} = oe;
|
|
3257
3257
|
class Le {
|
|
3258
3258
|
constructor(t) {
|
|
3259
|
-
this.props = t, t?.config?.configVersion && (this.configVersion = t.config.configVersion);
|
|
3259
|
+
this.props = t, t?.config?.configVersion && (this.configVersion = t.config.configVersion), t?.exclude && (this.exclude = t.exclude);
|
|
3260
3260
|
}
|
|
3261
3261
|
configVersion = ".config";
|
|
3262
|
+
exclude = "keywords,gallery,related,relatedexternal,external,customfields";
|
|
3262
3263
|
generateTokenOffline = async (t) => {
|
|
3263
3264
|
const {
|
|
3264
3265
|
PUBLIC_IS_OFFLINE: n,
|
|
@@ -3317,7 +3318,7 @@ class Le {
|
|
|
3317
3318
|
path: t,
|
|
3318
3319
|
// size: NewsListSizes['Carrusel card'].size,
|
|
3319
3320
|
imagesizes: this.props?.imgSizes.md,
|
|
3320
|
-
exclude:
|
|
3321
|
+
exclude: this.exclude
|
|
3321
3322
|
}
|
|
3322
3323
|
}).catch((n) => (console.log(`[/news-items-related] Error: ${n.message}`), { data: { data: [] } }));
|
|
3323
3324
|
sendEmail = (t) => this.props?.axiosApi.post("/send/email", t, {
|
|
@@ -3333,7 +3334,7 @@ class Le {
|
|
|
3333
3334
|
} : {
|
|
3334
3335
|
lastNews: await this.getNewsList({
|
|
3335
3336
|
size: 15,
|
|
3336
|
-
exclude:
|
|
3337
|
+
exclude: this.exclude,
|
|
3337
3338
|
imagesizes: this.props?.imgSizes.md,
|
|
3338
3339
|
newstype: this.props?.config?.newsType
|
|
3339
3340
|
})
|
|
@@ -3367,7 +3368,7 @@ class dc extends Le {
|
|
|
3367
3368
|
query: 'claves:("' + i + '")',
|
|
3368
3369
|
size: this.props?.imgSizes[c]?.size ?? 3,
|
|
3369
3370
|
newstype: this.props?.config?.newsType,
|
|
3370
|
-
exclude:
|
|
3371
|
+
exclude: this.exclude,
|
|
3371
3372
|
imagesizes: this.props?.imgSizes[c]?.imageSizes
|
|
3372
3373
|
});
|
|
3373
3374
|
return {
|
|
@@ -3380,7 +3381,7 @@ class dc extends Le {
|
|
|
3380
3381
|
section: i,
|
|
3381
3382
|
size: this.props?.imgSizes[c]?.size ?? 3,
|
|
3382
3383
|
newstype: this.props?.config?.newsType,
|
|
3383
|
-
exclude:
|
|
3384
|
+
exclude: this.exclude,
|
|
3384
3385
|
imagesizes: this.props?.imgSizes[c]?.imageSizes
|
|
3385
3386
|
});
|
|
3386
3387
|
return {
|
|
@@ -3453,8 +3454,8 @@ const H9 = async (e, t, n, r, o, s) => {
|
|
|
3453
3454
|
for (let h = 0; h < d.length; h++) {
|
|
3454
3455
|
const f = us(
|
|
3455
3456
|
d[h]
|
|
3456
|
-
),
|
|
3457
|
-
f && (u[
|
|
3457
|
+
), A = "Home_" + (Math.floor(h / s) + 1) + "_" + (Math.floor(h % s) + 1);
|
|
3458
|
+
f && (u[A] = { ...f });
|
|
3458
3459
|
}
|
|
3459
3460
|
return u;
|
|
3460
3461
|
})();
|
|
@@ -3555,7 +3556,7 @@ const H9 = async (e, t, n, r, o, s) => {
|
|
|
3555
3556
|
tema: async (e) => {
|
|
3556
3557
|
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
3558
|
try {
|
|
3558
|
-
const
|
|
3559
|
+
const A = await s.getNewsListTags({
|
|
3559
3560
|
tagid: h,
|
|
3560
3561
|
size: l,
|
|
3561
3562
|
tagtype: Number(f),
|
|
@@ -3563,9 +3564,9 @@ const H9 = async (e, t, n, r, o, s) => {
|
|
|
3563
3564
|
exclude: "keywords,gallery,related,relatedexternal,external,customfields",
|
|
3564
3565
|
page: d
|
|
3565
3566
|
});
|
|
3566
|
-
if (!
|
|
3567
|
-
const g =
|
|
3568
|
-
return g ? (
|
|
3567
|
+
if (!A) return ve(t);
|
|
3568
|
+
const g = A.data.entity;
|
|
3569
|
+
return g ? (A.data.data?.length < l || c.push({
|
|
3569
3570
|
rel: "next",
|
|
3570
3571
|
url: Ft(n, i, d)
|
|
3571
3572
|
}), d > 1 && c.push({
|
|
@@ -3599,8 +3600,8 @@ const H9 = async (e, t, n, r, o, s) => {
|
|
|
3599
3600
|
url: `${n.siteUrl}${r}`
|
|
3600
3601
|
}
|
|
3601
3602
|
}) : t;
|
|
3602
|
-
} catch (
|
|
3603
|
-
return console.error(
|
|
3603
|
+
} catch (A) {
|
|
3604
|
+
return console.error(A), ve(t);
|
|
3604
3605
|
}
|
|
3605
3606
|
},
|
|
3606
3607
|
"ultimas-noticias": (e) => {
|
|
@@ -3782,10 +3783,10 @@ async function F9({
|
|
|
3782
3783
|
banners: u,
|
|
3783
3784
|
internalPath: h,
|
|
3784
3785
|
config: f,
|
|
3785
|
-
socials:
|
|
3786
|
+
socials: A,
|
|
3786
3787
|
speculationType: g = "Common",
|
|
3787
3788
|
preloadImageUrl: p,
|
|
3788
|
-
custom_Speculation:
|
|
3789
|
+
custom_Speculation: w,
|
|
3789
3790
|
custom_metadata: _,
|
|
3790
3791
|
custom_scriptReplaces: S,
|
|
3791
3792
|
head_custom_elements: N
|
|
@@ -3846,7 +3847,7 @@ async function F9({
|
|
|
3846
3847
|
axiosApi: e
|
|
3847
3848
|
}
|
|
3848
3849
|
),
|
|
3849
|
-
/* @__PURE__ */ a(Is, { config: f, socials:
|
|
3850
|
+
/* @__PURE__ */ a(Is, { config: f, socials: A }),
|
|
3850
3851
|
t.schemas_Videos && h && /* @__PURE__ */ a(
|
|
3851
3852
|
ks,
|
|
3852
3853
|
{
|
|
@@ -3870,7 +3871,7 @@ async function F9({
|
|
|
3870
3871
|
{
|
|
3871
3872
|
type: g,
|
|
3872
3873
|
active: f.useSpeculationRules,
|
|
3873
|
-
customSpeculation:
|
|
3874
|
+
customSpeculation: w
|
|
3874
3875
|
}
|
|
3875
3876
|
),
|
|
3876
3877
|
N
|
|
@@ -3895,7 +3896,7 @@ const W9 = ({
|
|
|
3895
3896
|
config: s,
|
|
3896
3897
|
currentNew: c,
|
|
3897
3898
|
internalPath: i
|
|
3898
|
-
}),
|
|
3899
|
+
}), A = l.before.active, g = l.after.active, p = A ? l.before.customData ? l.before.customData : f : void 0, w = g ? l.after.customData ? l.after.customData : f : void 0;
|
|
3899
3900
|
return /* @__PURE__ */ m(K, { children: [
|
|
3900
3901
|
/* @__PURE__ */ a(jr, { name: "bodybefore", banners: n, replaces: p }),
|
|
3901
3902
|
e,
|
|
@@ -3904,7 +3905,7 @@ const W9 = ({
|
|
|
3904
3905
|
/* @__PURE__ */ a(Ho, { dimensionValues: h }),
|
|
3905
3906
|
/* @__PURE__ */ a(Vo, {}),
|
|
3906
3907
|
u,
|
|
3907
|
-
/* @__PURE__ */ a(ws, { name: "bodyafter", banners: n, replaces:
|
|
3908
|
+
/* @__PURE__ */ a(ws, { name: "bodyafter", banners: n, replaces: w })
|
|
3908
3909
|
] });
|
|
3909
3910
|
}, mc = "_content_1tvgz_1", fc = {
|
|
3910
3911
|
content: mc
|
|
@@ -3947,7 +3948,7 @@ function yc({
|
|
|
3947
3948
|
enableDrag: s,
|
|
3948
3949
|
onIndexChange: i
|
|
3949
3950
|
}) {
|
|
3950
|
-
const [c, d] = $(!1), [l, u] = $(0), [h, f] = $(0), [
|
|
3951
|
+
const [c, d] = $(!1), [l, u] = $(0), [h, f] = $(0), [A, g] = $(0), [p, w] = $(0), [_, S] = $(null), N = Br(null), [x, v] = $(1), B = he(() => {
|
|
3951
3952
|
if (o) return 1;
|
|
3952
3953
|
const y = N.current?.offsetWidth || window.innerWidth, C = n + r, k = Math.floor(y / C);
|
|
3953
3954
|
return Math.max(1, k);
|
|
@@ -3987,7 +3988,7 @@ function yc({
|
|
|
3987
3988
|
[o, n, r, B, te]
|
|
3988
3989
|
), ee = he(
|
|
3989
3990
|
(y) => {
|
|
3990
|
-
s && (u(y), f(y), g(0),
|
|
3991
|
+
s && (u(y), f(y), g(0), w(Date.now()), d(!0), document.body.classList.add("dragging"));
|
|
3991
3992
|
},
|
|
3992
3993
|
[s]
|
|
3993
3994
|
), ce = he(
|
|
@@ -4060,7 +4061,7 @@ function yc({
|
|
|
4060
4061
|
};
|
|
4061
4062
|
}, [c, ce, U, M]), {
|
|
4062
4063
|
isDragging: c,
|
|
4063
|
-
translateOffset:
|
|
4064
|
+
translateOffset: A,
|
|
4064
4065
|
carrouselRef: N,
|
|
4065
4066
|
maxIndex: Y,
|
|
4066
4067
|
getTranslateValue: Q,
|
|
@@ -4084,16 +4085,16 @@ function Y9(e) {
|
|
|
4084
4085
|
fullPageWidth: i = !1,
|
|
4085
4086
|
pagination: c = !1,
|
|
4086
4087
|
enableDrag: d = !0
|
|
4087
|
-
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [u, h] = $(0), [f,
|
|
4088
|
+
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [u, h] = $(0), [f, A] = $(!1);
|
|
4088
4089
|
De(() => {
|
|
4089
|
-
|
|
4090
|
+
A(!0);
|
|
4090
4091
|
const Q = document.getElementById("ssr-dummy_" + n);
|
|
4091
4092
|
Q && Q.remove();
|
|
4092
4093
|
}, []);
|
|
4093
4094
|
const {
|
|
4094
4095
|
isDragging: g,
|
|
4095
4096
|
translateOffset: p,
|
|
4096
|
-
carrouselRef:
|
|
4097
|
+
carrouselRef: w,
|
|
4097
4098
|
maxIndex: _,
|
|
4098
4099
|
getTranslateValue: S,
|
|
4099
4100
|
actualVisibleItems: N,
|
|
@@ -4175,7 +4176,7 @@ function Y9(e) {
|
|
|
4175
4176
|
/* @__PURE__ */ a(
|
|
4176
4177
|
"div",
|
|
4177
4178
|
{
|
|
4178
|
-
ref:
|
|
4179
|
+
ref: w,
|
|
4179
4180
|
className: "carrousel-ssr",
|
|
4180
4181
|
style: {
|
|
4181
4182
|
gap: s,
|
|
@@ -6571,8 +6572,8 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6571
6572
|
const { currentPage: t, showNext: n, maxPages: r, pathname: o, query: s } = e, i = (c, d, l) => {
|
|
6572
6573
|
let u = "";
|
|
6573
6574
|
const h = d.split("/");
|
|
6574
|
-
return h.indexOf("page") !== -1 && h.splice(u.indexOf("page") - 1, h.length - 1), h.forEach((f,
|
|
6575
|
-
|
|
6575
|
+
return h.indexOf("page") !== -1 && h.splice(u.indexOf("page") - 1, h.length - 1), h.forEach((f, A) => {
|
|
6576
|
+
A !== 0 && (u += `/${f}`);
|
|
6576
6577
|
}), c === "next" ? u += `/page/${t + 1}${l ? `?query=${l}` : ""}` : u += `/page/${t - 1}${l ? `?query=${l}` : ""}`;
|
|
6577
6578
|
};
|
|
6578
6579
|
return (t > 1 || n && t < r) && /* @__PURE__ */ m("section", { className: On.content, children: [
|
|
@@ -6627,7 +6628,8 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6627
6628
|
isTitle: l,
|
|
6628
6629
|
priorityHigh: u = !1,
|
|
6629
6630
|
isLarge: h,
|
|
6630
|
-
paths: f
|
|
6631
|
+
paths: f,
|
|
6632
|
+
keywords: A
|
|
6631
6633
|
} = e;
|
|
6632
6634
|
return /* @__PURE__ */ m(
|
|
6633
6635
|
"section",
|
|
@@ -6667,7 +6669,8 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
|
|
|
6667
6669
|
config: c,
|
|
6668
6670
|
overImage: d,
|
|
6669
6671
|
isTitle: l,
|
|
6670
|
-
paths: f
|
|
6672
|
+
paths: f,
|
|
6673
|
+
keywords: A
|
|
6671
6674
|
}
|
|
6672
6675
|
) })
|
|
6673
6676
|
]
|
|
@@ -9522,12 +9525,12 @@ function Xf(e) {
|
|
|
9522
9525
|
const d = [], l = [];
|
|
9523
9526
|
let u = "", h = !0;
|
|
9524
9527
|
for (let f = 0; f < c; f++) {
|
|
9525
|
-
const
|
|
9528
|
+
const A = `[data-index="${f}"]:checked ~ .carrousel-pagination li:nth-child(${f + 1}) {
|
|
9526
9529
|
background-color:var(--carrousel-pagination-background-color)
|
|
9527
9530
|
}`;
|
|
9528
9531
|
u += `
|
|
9529
9532
|
.${n}.carrousel-container {
|
|
9530
|
-
${
|
|
9533
|
+
${A}
|
|
9531
9534
|
[data-index="${f}"]:checked ~ .carrousel-ssr {
|
|
9532
9535
|
transform: translate(-${f * (100 + o) + "%"});
|
|
9533
9536
|
transition: transform 300ms;
|
|
@@ -9661,13 +9664,13 @@ const e0 = (e) => /* @__PURE__ */ a(
|
|
|
9661
9664
|
(g) => g[1]
|
|
9662
9665
|
).map(
|
|
9663
9666
|
(g) => `<img fetchPriority='low' loading='lazy' alt='imagen' src="${g}" class="carrusel-note-item" width="800" height="469"/>`
|
|
9664
|
-
), f = "gallery_embeded" + d.toString(),
|
|
9667
|
+
), f = "gallery_embeded" + d.toString(), A = Xf({
|
|
9665
9668
|
slot_id: f,
|
|
9666
9669
|
children: h,
|
|
9667
9670
|
visibleItems: 1,
|
|
9668
9671
|
cardGap: 0
|
|
9669
9672
|
});
|
|
9670
|
-
r +=
|
|
9673
|
+
r += A, o = l;
|
|
9671
9674
|
}
|
|
9672
9675
|
return r += e.slice(o), r;
|
|
9673
9676
|
}, o0 = async (e, t, n) => {
|
|
@@ -9679,7 +9682,7 @@ const e0 = (e) => /* @__PURE__ */ a(
|
|
|
9679
9682
|
(S) => d.includes(S?.[0]?.info.link.internal || "")
|
|
9680
9683
|
);
|
|
9681
9684
|
if (!l || !l[0]) continue;
|
|
9682
|
-
const u = l[0].preview?.sizes?.[0], h = u ? await pe(u.url) : "", f = l[0].info.section?.url ?? "#",
|
|
9685
|
+
const u = l[0].preview?.sizes?.[0], h = u ? await pe(u.url) : "", f = l[0].info.section?.url ?? "#", A = l[0].info.section?.name ?? "Sección", g = l[0].info.link?.url ?? "#", p = l[0].main?.title.article ?? "Título", w = (await Promise.all(
|
|
9683
9686
|
l[0].preview?.sizes?.map(async (S) => {
|
|
9684
9687
|
const N = await pe(S.url);
|
|
9685
9688
|
return S.width < 200 ? `<source srcset="${N}" media="(width < 750px)"/>` : `<source srcset="${N}" media="(width >= 750px)"/>`;
|
|
@@ -9687,11 +9690,11 @@ const e0 = (e) => /* @__PURE__ */ a(
|
|
|
9687
9690
|
)).reduce((S, N) => S += N, ""), _ = `
|
|
9688
9691
|
<span data-src="${d}">
|
|
9689
9692
|
<picture style='display: flex'>
|
|
9690
|
-
${
|
|
9693
|
+
${w}
|
|
9691
9694
|
<img fetchPriority='low' loading='lazy' src="${h}" alt="${t.noteRelatedImageAlt}" />
|
|
9692
9695
|
</picture>
|
|
9693
9696
|
<div>
|
|
9694
|
-
<a class="section" href="${f}">${
|
|
9697
|
+
<a class="section" href="${f}">${A}</a>
|
|
9695
9698
|
<a class="title" href="${g}">${p}</a>
|
|
9696
9699
|
</div>
|
|
9697
9700
|
</span>
|
|
@@ -9713,12 +9716,12 @@ async function s0(e, t) {
|
|
|
9713
9716
|
} catch {
|
|
9714
9717
|
console.log("error fetching schema videos embed.");
|
|
9715
9718
|
}
|
|
9716
|
-
let
|
|
9719
|
+
let A = "";
|
|
9717
9720
|
if (h && h.data) {
|
|
9718
9721
|
let g = "";
|
|
9719
9722
|
h.data.data[0].info.type === "video-youtube" ? g = `<iframe
|
|
9720
9723
|
frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen
|
|
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,
|
|
9724
|
+
style="position: relative!important;" src="https://www.youtube.com/embed/${h.data.data[0].main.code}"></iframe>` : g = h.data.data[0].main.code, A = `
|
|
9722
9725
|
<figure class="videoFigure">
|
|
9723
9726
|
${f && f.data && f.data.data && /* @__PURE__ */ m("script", { type: "application/ld+json", children: [
|
|
9724
9727
|
"$",
|
|
@@ -9731,7 +9734,7 @@ async function s0(e, t) {
|
|
|
9731
9734
|
</figure>
|
|
9732
9735
|
`;
|
|
9733
9736
|
}
|
|
9734
|
-
o +=
|
|
9737
|
+
o += A, s = u;
|
|
9735
9738
|
}
|
|
9736
9739
|
return o += e.slice(s), o;
|
|
9737
9740
|
}
|
|
@@ -10119,25 +10122,25 @@ const Ar = {
|
|
|
10119
10122
|
const c = [], l = t, u = Object.keys(e).length / l;
|
|
10120
10123
|
for (let h = 1; h <= u; h++)
|
|
10121
10124
|
for (let f = 1; f <= l; f++) {
|
|
10122
|
-
const
|
|
10123
|
-
!e[
|
|
10125
|
+
const A = "Home_" + h + "_" + f;
|
|
10126
|
+
!e[A] || !e[A].blockSass || !e[A].blockSass[0] || !e[A].blockSass[0].value || !e[A].blockSass[0].block || e[A].blockSass[0].block === "No Mostrar" || c.push(
|
|
10124
10127
|
/* @__PURE__ */ m(
|
|
10125
10128
|
wc,
|
|
10126
10129
|
{
|
|
10127
|
-
show: !!e[
|
|
10130
|
+
show: !!e[A].content?.data,
|
|
10128
10131
|
order: (h - 1) * l + (f - 1),
|
|
10129
10132
|
children: [
|
|
10130
10133
|
/* @__PURE__ */ a(
|
|
10131
10134
|
xo,
|
|
10132
10135
|
{
|
|
10133
|
-
component: e[
|
|
10136
|
+
component: e[A].blockSass[0].block,
|
|
10134
10137
|
banners: s,
|
|
10135
|
-
slot_id:
|
|
10138
|
+
slot_id: A,
|
|
10136
10139
|
data: {
|
|
10137
|
-
...e[
|
|
10138
|
-
content: e[
|
|
10139
|
-
title: e[
|
|
10140
|
-
titleUrl: e[
|
|
10140
|
+
...e[A].blockSass[0].block ? n[e[A].blockSass[0].block] : [],
|
|
10141
|
+
content: e[A].content?.data ?? [],
|
|
10142
|
+
title: e[A].blockSass[0].title ?? void 0,
|
|
10143
|
+
titleUrl: e[A].blockSass[0].link ?? void 0,
|
|
10141
10144
|
autorIcon: /* @__PURE__ */ a(r, {}),
|
|
10142
10145
|
paths: o.paths,
|
|
10143
10146
|
showTagBySection: i
|
|
@@ -10556,7 +10559,7 @@ const Ar = {
|
|
|
10556
10559
|
showNext: !(t.length < e.newsListLimit)
|
|
10557
10560
|
}
|
|
10558
10561
|
),
|
|
10559
|
-
children: Array.isArray(t) && t?.map((
|
|
10562
|
+
children: Array.isArray(t) && t?.map((A, g) => /* @__PURE__ */ m(gn, { children: [
|
|
10560
10563
|
h.includes(g + 1) && /* @__PURE__ */ a(
|
|
10561
10564
|
"div",
|
|
10562
10565
|
{
|
|
@@ -10574,7 +10577,7 @@ const Ar = {
|
|
|
10574
10577
|
ia,
|
|
10575
10578
|
{
|
|
10576
10579
|
autorIcon: e.autorIcon,
|
|
10577
|
-
item:
|
|
10580
|
+
item: A,
|
|
10578
10581
|
option: l,
|
|
10579
10582
|
paths: e.paths
|
|
10580
10583
|
},
|
|
@@ -11023,7 +11026,7 @@ const Sg = (e) => {
|
|
|
11023
11026
|
isVideo: u = !1,
|
|
11024
11027
|
config: h,
|
|
11025
11028
|
overImage: f = "default",
|
|
11026
|
-
isTitle:
|
|
11029
|
+
isTitle: A = !1,
|
|
11027
11030
|
isLarge: g = !1
|
|
11028
11031
|
} = o;
|
|
11029
11032
|
return /* @__PURE__ */ a(
|
|
@@ -11062,7 +11065,7 @@ const Sg = (e) => {
|
|
|
11062
11065
|
share: e.share,
|
|
11063
11066
|
config: h,
|
|
11064
11067
|
overImage: f,
|
|
11065
|
-
isTitle:
|
|
11068
|
+
isTitle: A,
|
|
11066
11069
|
paths: o.paths,
|
|
11067
11070
|
isVisible: e.isVisible
|
|
11068
11071
|
}
|
|
@@ -11260,9 +11263,9 @@ async function v3({
|
|
|
11260
11263
|
throw new Error(`Respuesta inesperada del servidor: ${h.status}`);
|
|
11261
11264
|
} catch (h) {
|
|
11262
11265
|
if (console.error("Error reporting comment:", h), oe.isAxiosError(h)) {
|
|
11263
|
-
const f = h.response?.status,
|
|
11266
|
+
const f = h.response?.status, A = h.response?.data;
|
|
11264
11267
|
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(
|
|
11265
|
-
|
|
11268
|
+
A?.error || A?.message || `Error HTTP ${f}: No se pudo reportar el comentario`
|
|
11266
11269
|
);
|
|
11267
11270
|
}
|
|
11268
11271
|
throw h;
|
|
@@ -11325,7 +11328,7 @@ var Cr;
|
|
|
11325
11328
|
function Xg() {
|
|
11326
11329
|
if (Cr) return ne;
|
|
11327
11330
|
Cr = 1;
|
|
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,
|
|
11331
|
+
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, A = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
11329
11332
|
function N(v) {
|
|
11330
11333
|
if (typeof v == "object" && v !== null) {
|
|
11331
11334
|
var B = v.$$typeof;
|
|
@@ -11344,7 +11347,7 @@ function Xg() {
|
|
|
11344
11347
|
case c:
|
|
11345
11348
|
case u:
|
|
11346
11349
|
case g:
|
|
11347
|
-
case
|
|
11350
|
+
case A:
|
|
11348
11351
|
case i:
|
|
11349
11352
|
return v;
|
|
11350
11353
|
default:
|
|
@@ -11359,7 +11362,7 @@ function Xg() {
|
|
|
11359
11362
|
function x(v) {
|
|
11360
11363
|
return N(v) === l;
|
|
11361
11364
|
}
|
|
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 =
|
|
11365
|
+
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 = A, ne.Portal = n, ne.Profiler = s, ne.StrictMode = o, ne.Suspense = h, ne.isAsyncMode = function(v) {
|
|
11363
11366
|
return x(v) || N(v) === d;
|
|
11364
11367
|
}, ne.isConcurrentMode = x, ne.isContextConsumer = function(v) {
|
|
11365
11368
|
return N(v) === c;
|
|
@@ -11374,7 +11377,7 @@ function Xg() {
|
|
|
11374
11377
|
}, ne.isLazy = function(v) {
|
|
11375
11378
|
return N(v) === g;
|
|
11376
11379
|
}, ne.isMemo = function(v) {
|
|
11377
|
-
return N(v) ===
|
|
11380
|
+
return N(v) === A;
|
|
11378
11381
|
}, ne.isPortal = function(v) {
|
|
11379
11382
|
return N(v) === n;
|
|
11380
11383
|
}, ne.isProfiler = function(v) {
|
|
@@ -11384,17 +11387,17 @@ function Xg() {
|
|
|
11384
11387
|
}, ne.isSuspense = function(v) {
|
|
11385
11388
|
return N(v) === h;
|
|
11386
11389
|
}, ne.isValidElementType = function(v) {
|
|
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 ===
|
|
11390
|
+
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 === A || v.$$typeof === i || v.$$typeof === c || v.$$typeof === u || v.$$typeof === w || v.$$typeof === _ || v.$$typeof === S || v.$$typeof === p);
|
|
11388
11391
|
}, ne.typeOf = N, ne;
|
|
11389
11392
|
}
|
|
11390
11393
|
var ae = {};
|
|
11391
11394
|
var _r;
|
|
11392
11395
|
function ep() {
|
|
11393
11396
|
return _r || (_r = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
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,
|
|
11397
|
+
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, A = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
11395
11398
|
function N(q) {
|
|
11396
11399
|
return typeof q == "string" || typeof q == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
11397
|
-
q === r || q === l || q === s || q === o || q === h || q === f || typeof q == "object" && q !== null && (q.$$typeof === g || q.$$typeof ===
|
|
11400
|
+
q === r || q === l || q === s || q === o || q === h || q === f || typeof q == "object" && q !== null && (q.$$typeof === g || q.$$typeof === A || q.$$typeof === i || q.$$typeof === c || q.$$typeof === u || q.$$typeof === w || q.$$typeof === _ || q.$$typeof === S || q.$$typeof === p);
|
|
11398
11401
|
}
|
|
11399
11402
|
function x(q) {
|
|
11400
11403
|
if (typeof q == "object" && q !== null) {
|
|
@@ -11416,7 +11419,7 @@ function ep() {
|
|
|
11416
11419
|
case c:
|
|
11417
11420
|
case u:
|
|
11418
11421
|
case g:
|
|
11419
|
-
case
|
|
11422
|
+
case A:
|
|
11420
11423
|
case i:
|
|
11421
11424
|
return Ua;
|
|
11422
11425
|
default:
|
|
@@ -11428,7 +11431,7 @@ function ep() {
|
|
|
11428
11431
|
}
|
|
11429
11432
|
}
|
|
11430
11433
|
}
|
|
11431
|
-
var v = d, B = l, R = c, Y = i, te = t, Q = u, P = r, ee = g, ce =
|
|
11434
|
+
var v = d, B = l, R = c, Y = i, te = t, Q = u, P = r, ee = g, ce = A, M = n, U = s, E = o, D = h, T = !1;
|
|
11432
11435
|
function z(q) {
|
|
11433
11436
|
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;
|
|
11434
11437
|
}
|
|
@@ -11454,7 +11457,7 @@ function ep() {
|
|
|
11454
11457
|
return x(q) === g;
|
|
11455
11458
|
}
|
|
11456
11459
|
function V(q) {
|
|
11457
|
-
return x(q) ===
|
|
11460
|
+
return x(q) === A;
|
|
11458
11461
|
}
|
|
11459
11462
|
function Z(q) {
|
|
11460
11463
|
return x(q) === n;
|
|
@@ -11569,9 +11572,9 @@ function np() {
|
|
|
11569
11572
|
(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)."
|
|
11570
11573
|
), h instanceof Error && !(h.message in n)) {
|
|
11571
11574
|
n[h.message] = !0;
|
|
11572
|
-
var
|
|
11575
|
+
var A = l ? l() : "";
|
|
11573
11576
|
e(
|
|
11574
|
-
"Failed " + c + " type: " + h.message + (
|
|
11577
|
+
"Failed " + c + " type: " + h.message + (A ?? "")
|
|
11575
11578
|
);
|
|
11576
11579
|
}
|
|
11577
11580
|
}
|
|
@@ -11605,7 +11608,7 @@ function ap() {
|
|
|
11605
11608
|
if (typeof C == "function")
|
|
11606
11609
|
return C;
|
|
11607
11610
|
}
|
|
11608
|
-
var f = "<<anonymous>>",
|
|
11611
|
+
var f = "<<anonymous>>", A = {
|
|
11609
11612
|
array: _("array"),
|
|
11610
11613
|
bigint: _("bigint"),
|
|
11611
11614
|
bool: _("boolean"),
|
|
@@ -11633,7 +11636,7 @@ function ap() {
|
|
|
11633
11636
|
this.message = y, this.data = C && typeof C == "object" ? C : {}, this.stack = "";
|
|
11634
11637
|
}
|
|
11635
11638
|
p.prototype = Error.prototype;
|
|
11636
|
-
function
|
|
11639
|
+
function w(y) {
|
|
11637
11640
|
if (process.env.NODE_ENV !== "production")
|
|
11638
11641
|
var C = {}, k = 0;
|
|
11639
11642
|
function j(G, H, V, Z, X, F, ie) {
|
|
@@ -11668,10 +11671,10 @@ function ap() {
|
|
|
11668
11671
|
}
|
|
11669
11672
|
return null;
|
|
11670
11673
|
}
|
|
11671
|
-
return
|
|
11674
|
+
return w(C);
|
|
11672
11675
|
}
|
|
11673
11676
|
function S() {
|
|
11674
|
-
return
|
|
11677
|
+
return w(i);
|
|
11675
11678
|
}
|
|
11676
11679
|
function N(y) {
|
|
11677
11680
|
function C(k, j, L, G, H) {
|
|
@@ -11689,7 +11692,7 @@ function ap() {
|
|
|
11689
11692
|
}
|
|
11690
11693
|
return null;
|
|
11691
11694
|
}
|
|
11692
|
-
return
|
|
11695
|
+
return w(C);
|
|
11693
11696
|
}
|
|
11694
11697
|
function x() {
|
|
11695
11698
|
function y(C, k, j, L, G) {
|
|
@@ -11700,7 +11703,7 @@ function ap() {
|
|
|
11700
11703
|
}
|
|
11701
11704
|
return null;
|
|
11702
11705
|
}
|
|
11703
|
-
return
|
|
11706
|
+
return w(y);
|
|
11704
11707
|
}
|
|
11705
11708
|
function v() {
|
|
11706
11709
|
function y(C, k, j, L, G) {
|
|
@@ -11711,7 +11714,7 @@ function ap() {
|
|
|
11711
11714
|
}
|
|
11712
11715
|
return null;
|
|
11713
11716
|
}
|
|
11714
|
-
return
|
|
11717
|
+
return w(y);
|
|
11715
11718
|
}
|
|
11716
11719
|
function B(y) {
|
|
11717
11720
|
function C(k, j, L, G, H) {
|
|
@@ -11721,7 +11724,7 @@ function ap() {
|
|
|
11721
11724
|
}
|
|
11722
11725
|
return null;
|
|
11723
11726
|
}
|
|
11724
|
-
return
|
|
11727
|
+
return w(C);
|
|
11725
11728
|
}
|
|
11726
11729
|
function R(y) {
|
|
11727
11730
|
if (!Array.isArray(y))
|
|
@@ -11738,7 +11741,7 @@ function ap() {
|
|
|
11738
11741
|
});
|
|
11739
11742
|
return new p("Invalid " + G + " `" + H + "` of value `" + String(V) + "` " + ("supplied to `" + L + "`, expected one of " + X + "."));
|
|
11740
11743
|
}
|
|
11741
|
-
return
|
|
11744
|
+
return w(C);
|
|
11742
11745
|
}
|
|
11743
11746
|
function Y(y) {
|
|
11744
11747
|
function C(k, j, L, G, H) {
|
|
@@ -11755,7 +11758,7 @@ function ap() {
|
|
|
11755
11758
|
}
|
|
11756
11759
|
return null;
|
|
11757
11760
|
}
|
|
11758
|
-
return
|
|
11761
|
+
return w(C);
|
|
11759
11762
|
}
|
|
11760
11763
|
function te(y) {
|
|
11761
11764
|
if (!Array.isArray(y))
|
|
@@ -11777,13 +11780,13 @@ function ap() {
|
|
|
11777
11780
|
var Ae = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
11778
11781
|
return new p("Invalid " + V + " `" + Z + "` supplied to " + ("`" + H + "`" + Ae + "."));
|
|
11779
11782
|
}
|
|
11780
|
-
return
|
|
11783
|
+
return w(j);
|
|
11781
11784
|
}
|
|
11782
11785
|
function Q() {
|
|
11783
11786
|
function y(C, k, j, L, G) {
|
|
11784
11787
|
return M(C[k]) ? null : new p("Invalid " + L + " `" + G + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
|
|
11785
11788
|
}
|
|
11786
|
-
return
|
|
11789
|
+
return w(y);
|
|
11787
11790
|
}
|
|
11788
11791
|
function P(y, C, k, j, L) {
|
|
11789
11792
|
return new p(
|
|
@@ -11805,7 +11808,7 @@ function ap() {
|
|
|
11805
11808
|
}
|
|
11806
11809
|
return null;
|
|
11807
11810
|
}
|
|
11808
|
-
return
|
|
11811
|
+
return w(C);
|
|
11809
11812
|
}
|
|
11810
11813
|
function ce(y) {
|
|
11811
11814
|
function C(k, j, L, G, H) {
|
|
@@ -11828,7 +11831,7 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
|
11828
11831
|
}
|
|
11829
11832
|
return null;
|
|
11830
11833
|
}
|
|
11831
|
-
return
|
|
11834
|
+
return w(C);
|
|
11832
11835
|
}
|
|
11833
11836
|
function M(y) {
|
|
11834
11837
|
switch (typeof y) {
|
|
@@ -11899,7 +11902,7 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
|
11899
11902
|
function z(y) {
|
|
11900
11903
|
return !y.constructor || !y.constructor.name ? f : y.constructor.name;
|
|
11901
11904
|
}
|
|
11902
|
-
return
|
|
11905
|
+
return A.checkPropTypes = o, A.resetWarningCache = o.resetWarningCache, A.PropTypes = A, A;
|
|
11903
11906
|
}, Jn;
|
|
11904
11907
|
}
|
|
11905
11908
|
var Zn, Ur;
|
|
@@ -12132,17 +12135,17 @@ function dp() {
|
|
|
12132
12135
|
return e.isMemo(g) ? o : s[g.$$typeof] || t;
|
|
12133
12136
|
}
|
|
12134
12137
|
var c = Object.defineProperty, d = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, u = Object.getOwnPropertyDescriptor, h = Object.getPrototypeOf, f = Object.prototype;
|
|
12135
|
-
function
|
|
12138
|
+
function A(g, p, w) {
|
|
12136
12139
|
if (typeof p != "string") {
|
|
12137
12140
|
if (f) {
|
|
12138
12141
|
var _ = h(p);
|
|
12139
|
-
_ && _ !== f &&
|
|
12142
|
+
_ && _ !== f && A(g, _, w);
|
|
12140
12143
|
}
|
|
12141
12144
|
var S = d(p);
|
|
12142
12145
|
l && (S = S.concat(l(p)));
|
|
12143
12146
|
for (var N = i(g), x = i(p), v = 0; v < S.length; ++v) {
|
|
12144
12147
|
var B = S[v];
|
|
12145
|
-
if (!n[B] && !(
|
|
12148
|
+
if (!n[B] && !(w && w[B]) && !(x && x[B]) && !(N && N[B])) {
|
|
12146
12149
|
var R = u(p, B);
|
|
12147
12150
|
try {
|
|
12148
12151
|
c(g, B, R);
|
|
@@ -12153,7 +12156,7 @@ function dp() {
|
|
|
12153
12156
|
}
|
|
12154
12157
|
return g;
|
|
12155
12158
|
}
|
|
12156
|
-
return Xn =
|
|
12159
|
+
return Xn = A, Xn;
|
|
12157
12160
|
}
|
|
12158
12161
|
var up = dp();
|
|
12159
12162
|
const hp = /* @__PURE__ */ Ct(up);
|
|
@@ -12204,7 +12207,7 @@ function pp(e, t) {
|
|
|
12204
12207
|
h.observers[f](h);
|
|
12205
12208
|
delete window[t.callbackName];
|
|
12206
12209
|
}, l.componentDidMount = function() {
|
|
12207
|
-
var h = this, f = this.setupScriptURL(),
|
|
12210
|
+
var h = this, f = this.setupScriptURL(), A = this.asyncScriptLoaderGetScriptLoaderID(), g = t, p = g.globalName, w = g.callbackName, _ = g.scriptId;
|
|
12208
12211
|
if (p && typeof window[p] < "u" && (Re[f] = {
|
|
12209
12212
|
loaded: !0,
|
|
12210
12213
|
observers: {}
|
|
@@ -12214,13 +12217,13 @@ function pp(e, t) {
|
|
|
12214
12217
|
this.asyncScriptLoaderHandleLoad(S);
|
|
12215
12218
|
return;
|
|
12216
12219
|
}
|
|
12217
|
-
S.observers[
|
|
12220
|
+
S.observers[A] = function(R) {
|
|
12218
12221
|
return h.asyncScriptLoaderHandleLoad(R);
|
|
12219
12222
|
};
|
|
12220
12223
|
return;
|
|
12221
12224
|
}
|
|
12222
12225
|
var N = {};
|
|
12223
|
-
N[
|
|
12226
|
+
N[A] = function(R) {
|
|
12224
12227
|
return h.asyncScriptLoaderHandleLoad(R);
|
|
12225
12228
|
}, Re[f] = {
|
|
12226
12229
|
loaded: !1,
|
|
@@ -12238,12 +12241,12 @@ function pp(e, t) {
|
|
|
12238
12241
|
Y(Q[P]) && delete Q[P];
|
|
12239
12242
|
}
|
|
12240
12243
|
};
|
|
12241
|
-
|
|
12244
|
+
w && typeof window < "u" && (window[w] = function() {
|
|
12242
12245
|
return h.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
12243
12246
|
}), x.onload = function() {
|
|
12244
12247
|
var R = Re[f];
|
|
12245
12248
|
R && (R.loaded = !0, B(function(Y) {
|
|
12246
|
-
return
|
|
12249
|
+
return w ? !1 : (Y(R), !0);
|
|
12247
12250
|
}));
|
|
12248
12251
|
}, x.onerror = function() {
|
|
12249
12252
|
var R = Re[f];
|
|
@@ -12254,15 +12257,15 @@ function pp(e, t) {
|
|
|
12254
12257
|
}, l.componentWillUnmount = function() {
|
|
12255
12258
|
var h = this.__scriptURL;
|
|
12256
12259
|
if (t.removeOnUnmount === !0)
|
|
12257
|
-
for (var f = document.getElementsByTagName("script"),
|
|
12258
|
-
f[
|
|
12260
|
+
for (var f = document.getElementsByTagName("script"), A = 0; A < f.length; A += 1)
|
|
12261
|
+
f[A].src.indexOf(h) > -1 && f[A].parentNode && f[A].parentNode.removeChild(f[A]);
|
|
12259
12262
|
var g = Re[h];
|
|
12260
12263
|
g && (delete g.observers[this.asyncScriptLoaderGetScriptLoaderID()], t.removeOnUnmount === !0 && delete Re[h]);
|
|
12261
12264
|
}, l.render = function() {
|
|
12262
12265
|
var h = t.globalName, f = this.props;
|
|
12263
12266
|
f.asyncScriptOnLoad;
|
|
12264
|
-
var
|
|
12265
|
-
return h && typeof window < "u" && (g[h] = typeof window[h] < "u" ? window[h] : void 0), g.ref =
|
|
12267
|
+
var A = f.forwardedRef, g = mp(f, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
12268
|
+
return h && typeof window < "u" && (g[h] = typeof window[h] < "u" ? window[h] : void 0), g.ref = A, ot(r, g);
|
|
12266
12269
|
}, d;
|
|
12267
12270
|
})(Qo), i = Or(function(c, d) {
|
|
12268
12271
|
return ot(s, ua({}, c, {
|
|
@@ -12336,7 +12339,7 @@ const ko = pp(wp, {
|
|
|
12336
12339
|
}) => {
|
|
12337
12340
|
const [s, i] = $("form"), [c, d] = $(
|
|
12338
12341
|
""
|
|
12339
|
-
), [l, u] = $(""), [h, f] = $(""),
|
|
12342
|
+
), [l, u] = $(""), [h, f] = $(""), A = [
|
|
12340
12343
|
{ id: "spam", label: Ye.spam },
|
|
12341
12344
|
{
|
|
12342
12345
|
id: "inappropriate",
|
|
@@ -12381,8 +12384,8 @@ const ko = pp(wp, {
|
|
|
12381
12384
|
}, 3e3);
|
|
12382
12385
|
else
|
|
12383
12386
|
throw new Error(_.message || "Error al reportar comentario");
|
|
12384
|
-
} catch (
|
|
12385
|
-
console.error("Error reporting comment:",
|
|
12387
|
+
} catch (w) {
|
|
12388
|
+
console.error("Error reporting comment:", w), u(w.message || "Error al reportar comentario"), i("form");
|
|
12386
12389
|
}
|
|
12387
12390
|
}
|
|
12388
12391
|
}, p = () => {
|
|
@@ -12393,21 +12396,21 @@ const ko = pp(wp, {
|
|
|
12393
12396
|
/* @__PURE__ */ a("h2", { className: ue.title, children: "Reportar Abuso" }),
|
|
12394
12397
|
s === "loading" && /* @__PURE__ */ a("div", { className: ue.loadingContainer, children: /* @__PURE__ */ a(Ze, {}) }),
|
|
12395
12398
|
s === "form" || s === "loading" ? /* @__PURE__ */ m(K, { children: [
|
|
12396
|
-
/* @__PURE__ */ a("div", { className: ue.optionsContainer, children:
|
|
12399
|
+
/* @__PURE__ */ a("div", { className: ue.optionsContainer, children: A.map((w) => /* @__PURE__ */ m("label", { className: ue.option, children: [
|
|
12397
12400
|
/* @__PURE__ */ a(
|
|
12398
12401
|
"input",
|
|
12399
12402
|
{
|
|
12400
12403
|
type: "radio",
|
|
12401
12404
|
name: "reportReason",
|
|
12402
|
-
value:
|
|
12403
|
-
checked: c ===
|
|
12405
|
+
value: w.id,
|
|
12406
|
+
checked: c === w.id,
|
|
12404
12407
|
onChange: (_) => d(_.target.value),
|
|
12405
12408
|
className: ue.radioInput
|
|
12406
12409
|
}
|
|
12407
12410
|
),
|
|
12408
12411
|
/* @__PURE__ */ a("span", { className: ue.radioCustom }),
|
|
12409
|
-
/* @__PURE__ */ a("span", { className: ue.optionLabel, children:
|
|
12410
|
-
] },
|
|
12412
|
+
/* @__PURE__ */ a("span", { className: ue.optionLabel, children: w.label })
|
|
12413
|
+
] }, w.id)) }),
|
|
12411
12414
|
l && /* @__PURE__ */ a("div", { className: ue.errorMessage, children: l }),
|
|
12412
12415
|
/* @__PURE__ */ a(
|
|
12413
12416
|
ko,
|
|
@@ -12415,7 +12418,7 @@ const ko = pp(wp, {
|
|
|
12415
12418
|
sitekey: "",
|
|
12416
12419
|
theme: "light",
|
|
12417
12420
|
size: "normal",
|
|
12418
|
-
onChange: (
|
|
12421
|
+
onChange: (w) => f(w ?? ""),
|
|
12419
12422
|
onExpired: () => f("")
|
|
12420
12423
|
}
|
|
12421
12424
|
),
|
|
@@ -12507,23 +12510,23 @@ async function Fp({
|
|
|
12507
12510
|
throw new Error("Invalid input types for publication or path");
|
|
12508
12511
|
if (!c)
|
|
12509
12512
|
throw new Error("Missing CMS API token");
|
|
12510
|
-
const { PUBLIC_ENV: d, PUBLIC_API_HOST: l, PUBLIC_API_PATH: u, PUBLIC_API_PATH_VERSION: h } = J(), f = parseInt(String(n), 10),
|
|
12513
|
+
const { PUBLIC_ENV: d, PUBLIC_API_HOST: l, PUBLIC_API_PATH: u, PUBLIC_API_PATH_VERSION: h } = J(), f = parseInt(String(n), 10), A = parseInt(String(r), 10);
|
|
12511
12514
|
if (isNaN(f) || f <= 0)
|
|
12512
12515
|
throw new Error("Invalid size parameter");
|
|
12513
|
-
if (isNaN(
|
|
12516
|
+
if (isNaN(A) || A < 0)
|
|
12514
12517
|
throw new Error("Invalid sizereply parameter");
|
|
12515
12518
|
const g = d !== "prod" ? `${l}${u}` : hs(), p = new URLSearchParams({
|
|
12516
12519
|
publication: e,
|
|
12517
12520
|
path: t,
|
|
12518
12521
|
size: f.toString(),
|
|
12519
|
-
sizereply:
|
|
12522
|
+
sizereply: A.toString(),
|
|
12520
12523
|
state: i
|
|
12521
12524
|
});
|
|
12522
12525
|
o && p.append("id", o), s && p.append("lastid", s);
|
|
12523
|
-
const
|
|
12526
|
+
const w = `${g}${h}/newcomments/get?${p.toString()}`;
|
|
12524
12527
|
try {
|
|
12525
|
-
console.log("Fetching comments from:",
|
|
12526
|
-
const { data: _ } = await oe.get(
|
|
12528
|
+
console.log("Fetching comments from:", w);
|
|
12529
|
+
const { data: _ } = await oe.get(w, {
|
|
12527
12530
|
headers: {
|
|
12528
12531
|
"x-api-token": c,
|
|
12529
12532
|
"Cache-Control": "max-age=0, no-cache, no-store, must-revalidate",
|
|
@@ -12742,7 +12745,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
12742
12745
|
throw new Error(
|
|
12743
12746
|
`Error al enviar comentario: ${u?.message} status: ${l.status}`
|
|
12744
12747
|
);
|
|
12745
|
-
const h = Date.now(), f = Math.max(0, 2400 + Math.abs(h - d)),
|
|
12748
|
+
const h = Date.now(), f = Math.max(0, 2400 + Math.abs(h - d)), A = {
|
|
12746
12749
|
username: o.username,
|
|
12747
12750
|
firstname: o.firstname,
|
|
12748
12751
|
...o.lastname && { lastname: o.lastname },
|
|
@@ -12751,7 +12754,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
12751
12754
|
return i({
|
|
12752
12755
|
id: h.toString(),
|
|
12753
12756
|
text: c,
|
|
12754
|
-
user:
|
|
12757
|
+
user: A,
|
|
12755
12758
|
date: { time: Date.now() },
|
|
12756
12759
|
reply: []
|
|
12757
12760
|
}), t.current && (t.current.value = ""), f;
|
|
@@ -12826,10 +12829,10 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
12826
12829
|
] })
|
|
12827
12830
|
] }) });
|
|
12828
12831
|
}, e9 = ({ comment: e, replyingTo: t, path: n, user: r, handleReplyingTo: o, onFlag: s }) => {
|
|
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,
|
|
12832
|
+
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, A = Ee.useRef(null);
|
|
12830
12833
|
let g = `${Je.firstname} ${Je.lastname}`, p = Je.username;
|
|
12831
12834
|
e.user && (g = `${e.user.firstname} ${e.user.lastname}`, p = e.user.username);
|
|
12832
|
-
const
|
|
12835
|
+
const w = (_) => {
|
|
12833
12836
|
d({ morereply: c.morereply, reply: [_, ...c.reply] });
|
|
12834
12837
|
};
|
|
12835
12838
|
return /* @__PURE__ */ a("div", { className: "comment-item", children: /* @__PURE__ */ m(
|
|
@@ -12854,8 +12857,8 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
12854
12857
|
Zp,
|
|
12855
12858
|
{
|
|
12856
12859
|
replyingTo: t,
|
|
12857
|
-
commentRef:
|
|
12858
|
-
addReply:
|
|
12860
|
+
commentRef: A,
|
|
12861
|
+
addReply: w,
|
|
12859
12862
|
user: r,
|
|
12860
12863
|
path: n,
|
|
12861
12864
|
closeForm: () => o("")
|
|
@@ -12956,7 +12959,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
12956
12959
|
}) => {
|
|
12957
12960
|
const o = t.replaceAll("/", "|"), [s, i] = $(
|
|
12958
12961
|
void 0
|
|
12959
|
-
), [c, d] = $(""), { comments: l, setComments: u } = Yp(o), [h, f] = Ee.useState(!1),
|
|
12962
|
+
), [c, d] = $(""), { comments: l, setComments: u } = Yp(o), [h, f] = Ee.useState(!1), A = Ee.useRef(null), g = (v) => {
|
|
12960
12963
|
d(c === v ? "" : v);
|
|
12961
12964
|
}, p = (v) => {
|
|
12962
12965
|
u(
|
|
@@ -12965,7 +12968,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
12965
12968
|
comments: [v, ...l.comments ?? []]
|
|
12966
12969
|
} : void 0
|
|
12967
12970
|
);
|
|
12968
|
-
},
|
|
12971
|
+
}, w = (v) => {
|
|
12969
12972
|
i(v);
|
|
12970
12973
|
}, _ = async () => {
|
|
12971
12974
|
if (!l || !l.morecomment || l.comments.length === 0) return;
|
|
@@ -13006,7 +13009,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
13006
13009
|
/* @__PURE__ */ a(
|
|
13007
13010
|
t9,
|
|
13008
13011
|
{
|
|
13009
|
-
commentRef:
|
|
13012
|
+
commentRef: A,
|
|
13010
13013
|
user: n,
|
|
13011
13014
|
addComment: p,
|
|
13012
13015
|
path: o
|
|
@@ -13025,7 +13028,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
13025
13028
|
comment: v,
|
|
13026
13029
|
replyingTo: c,
|
|
13027
13030
|
handleReplyingTo: g,
|
|
13028
|
-
onFlag:
|
|
13031
|
+
onFlag: w,
|
|
13029
13032
|
user: n ?? Je,
|
|
13030
13033
|
path: o
|
|
13031
13034
|
},
|
|
@@ -13105,10 +13108,10 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
13105
13108
|
function o9({ goToLogin: e, handleGoogleLogin: t }) {
|
|
13106
13109
|
const [n, r] = $({}), [o, s] = $(!1), [i, c] = $(!1), [d, l] = $(null), [u, h] = $(
|
|
13107
13110
|
"register"
|
|
13108
|
-
), f = (
|
|
13109
|
-
r((S) => ({ ...S, [
|
|
13110
|
-
},
|
|
13111
|
-
|
|
13111
|
+
), f = (w, _) => {
|
|
13112
|
+
r((S) => ({ ...S, [w]: _ }));
|
|
13113
|
+
}, A = async (w) => {
|
|
13114
|
+
w.preventDefault(), l(null), c(!0);
|
|
13112
13115
|
try {
|
|
13113
13116
|
const _ = Object.keys(Lr).filter((R) => !["username", "password", "confirmPassword"].includes(R)).map((R) => ({ Name: R, Value: n[R] }));
|
|
13114
13117
|
if (_.some((R) => {
|
|
@@ -13161,8 +13164,8 @@ function o9({ goToLogin: e, handleGoogleLogin: t }) {
|
|
|
13161
13164
|
} finally {
|
|
13162
13165
|
c(!1);
|
|
13163
13166
|
}
|
|
13164
|
-
}, g = async (
|
|
13165
|
-
if (
|
|
13167
|
+
}, g = async (w) => {
|
|
13168
|
+
if (w.preventDefault(), !n.confirmationCode) {
|
|
13166
13169
|
l("Debes ingresar el código de verificación");
|
|
13167
13170
|
return;
|
|
13168
13171
|
}
|
|
@@ -13204,24 +13207,24 @@ function o9({ goToLogin: e, handleGoogleLogin: t }) {
|
|
|
13204
13207
|
/* @__PURE__ */ m(
|
|
13205
13208
|
"form",
|
|
13206
13209
|
{
|
|
13207
|
-
onSubmit:
|
|
13210
|
+
onSubmit: A,
|
|
13208
13211
|
className: I.form,
|
|
13209
13212
|
"data-error": d ? "true" : "false",
|
|
13210
13213
|
children: [
|
|
13211
|
-
/* @__PURE__ */ a("ul", { className: I.formUl, children: Object.entries(Lr).map(([
|
|
13214
|
+
/* @__PURE__ */ a("ul", { className: I.formUl, children: Object.entries(Lr).map(([w, { label: _ }]) => /* @__PURE__ */ m("div", { className: I.field, children: [
|
|
13212
13215
|
/* @__PURE__ */ a("label", { className: I.label, children: _ }),
|
|
13213
13216
|
/* @__PURE__ */ a(
|
|
13214
13217
|
"input",
|
|
13215
13218
|
{
|
|
13216
|
-
type:
|
|
13217
|
-
name:
|
|
13218
|
-
value: n[
|
|
13219
|
-
onChange: (S) => f(
|
|
13219
|
+
type: w.toLowerCase().includes("password") ? o ? "text" : "password" : w === "birthdate" ? "date" : w === "email" ? "email" : w === "phone_number" ? "tel" : "text",
|
|
13220
|
+
name: w,
|
|
13221
|
+
value: n[w] || "",
|
|
13222
|
+
onChange: (S) => f(w, S.target.value),
|
|
13220
13223
|
className: I.input,
|
|
13221
13224
|
placeholder: ""
|
|
13222
13225
|
}
|
|
13223
13226
|
),
|
|
13224
|
-
|
|
13227
|
+
w === "password" && /* @__PURE__ */ a("div", { className: I.passwordChecker, children: Cn.map((S, N) => {
|
|
13225
13228
|
const x = S.test(p);
|
|
13226
13229
|
return /* @__PURE__ */ m(
|
|
13227
13230
|
"div",
|
|
@@ -13235,7 +13238,7 @@ function o9({ goToLogin: e, handleGoogleLogin: t }) {
|
|
|
13235
13238
|
N
|
|
13236
13239
|
);
|
|
13237
13240
|
}) }),
|
|
13238
|
-
|
|
13241
|
+
w === "confirmPassword" && /* @__PURE__ */ m("div", { className: I.checkboxRow, children: [
|
|
13239
13242
|
/* @__PURE__ */ a(
|
|
13240
13243
|
"input",
|
|
13241
13244
|
{
|
|
@@ -13254,7 +13257,7 @@ function o9({ goToLogin: e, handleGoogleLogin: t }) {
|
|
|
13254
13257
|
}
|
|
13255
13258
|
)
|
|
13256
13259
|
] })
|
|
13257
|
-
] },
|
|
13260
|
+
] }, w)) }),
|
|
13258
13261
|
d && /* @__PURE__ */ a("p", { className: I.error, children: d }),
|
|
13259
13262
|
/* @__PURE__ */ m("p", { className: I.terms, children: [
|
|
13260
13263
|
"Al continuar, confirmo que he leído y aceptado los",
|
|
@@ -13281,7 +13284,7 @@ function o9({ goToLogin: e, handleGoogleLogin: t }) {
|
|
|
13281
13284
|
type: "text",
|
|
13282
13285
|
name: "confirmationCode",
|
|
13283
13286
|
value: n.confirmationCode || "",
|
|
13284
|
-
onChange: (
|
|
13287
|
+
onChange: (w) => f("confirmationCode", w.target.value),
|
|
13285
13288
|
className: I.input,
|
|
13286
13289
|
required: !0
|
|
13287
13290
|
}
|
|
@@ -13333,14 +13336,14 @@ function s9({
|
|
|
13333
13336
|
goToRegister: n,
|
|
13334
13337
|
handleGoogleLogin: r
|
|
13335
13338
|
}) {
|
|
13336
|
-
const [o, s] = $("login"), [i, c] = $(""), [d, l] = $(""), [u, h] = $(""), [f,
|
|
13339
|
+
const [o, s] = $("login"), [i, c] = $(""), [d, l] = $(""), [u, h] = $(""), [f, A] = $(""), [g, p] = $(""), [w, _] = $(!1), [S, N] = $(!1), [x, v] = $(null), { CAPTCHA_KEY: B } = J();
|
|
13337
13340
|
return /* @__PURE__ */ m(K, { children: [
|
|
13338
13341
|
o === "login" && /* @__PURE__ */ a(
|
|
13339
13342
|
i9,
|
|
13340
13343
|
{
|
|
13341
13344
|
email: i,
|
|
13342
13345
|
password: d,
|
|
13343
|
-
showPassword:
|
|
13346
|
+
showPassword: w,
|
|
13344
13347
|
loading: S,
|
|
13345
13348
|
error: x,
|
|
13346
13349
|
setEmail: c,
|
|
@@ -13417,11 +13420,11 @@ function s9({
|
|
|
13417
13420
|
confirmationCode: u,
|
|
13418
13421
|
newPassword: f,
|
|
13419
13422
|
confirmNewPassword: g,
|
|
13420
|
-
showPassword:
|
|
13423
|
+
showPassword: w,
|
|
13421
13424
|
loading: S,
|
|
13422
13425
|
error: x,
|
|
13423
13426
|
setConfirmationCode: h,
|
|
13424
|
-
setNewPassword:
|
|
13427
|
+
setNewPassword: A,
|
|
13425
13428
|
setConfirmNewPassword: p,
|
|
13426
13429
|
setShowPassword: _,
|
|
13427
13430
|
onSubmit: async (Q) => {
|
|
@@ -13633,7 +13636,7 @@ function l9({
|
|
|
13633
13636
|
{
|
|
13634
13637
|
type: "text",
|
|
13635
13638
|
value: t,
|
|
13636
|
-
onChange: (
|
|
13639
|
+
onChange: (A) => c(A.target.value),
|
|
13637
13640
|
className: I.input,
|
|
13638
13641
|
placeholder: ""
|
|
13639
13642
|
}
|
|
@@ -13646,17 +13649,17 @@ function l9({
|
|
|
13646
13649
|
{
|
|
13647
13650
|
type: o ? "text" : "password",
|
|
13648
13651
|
value: n,
|
|
13649
|
-
onChange: (
|
|
13652
|
+
onChange: (A) => d(A.target.value),
|
|
13650
13653
|
className: I.input,
|
|
13651
13654
|
placeholder: "",
|
|
13652
13655
|
name: "password"
|
|
13653
13656
|
}
|
|
13654
13657
|
),
|
|
13655
|
-
/* @__PURE__ */ a("div", { className: I.passwordChecker, children: Cn.map((
|
|
13656
|
-
const p =
|
|
13658
|
+
/* @__PURE__ */ a("div", { className: I.passwordChecker, children: Cn.map((A, g) => {
|
|
13659
|
+
const p = A.test(n);
|
|
13657
13660
|
return /* @__PURE__ */ m("div", { className: p ? I.valid : I.invalid, children: [
|
|
13658
13661
|
/* @__PURE__ */ a("div", { children: p ? "✔" : "○" }),
|
|
13659
|
-
/* @__PURE__ */ a("div", { children:
|
|
13662
|
+
/* @__PURE__ */ a("div", { children: A.label })
|
|
13660
13663
|
] }, g);
|
|
13661
13664
|
}) })
|
|
13662
13665
|
] }),
|
|
@@ -13667,7 +13670,7 @@ function l9({
|
|
|
13667
13670
|
{
|
|
13668
13671
|
type: o ? "text" : "password",
|
|
13669
13672
|
value: r,
|
|
13670
|
-
onChange: (
|
|
13673
|
+
onChange: (A) => l(A.target.value),
|
|
13671
13674
|
className: I.input,
|
|
13672
13675
|
placeholder: ""
|
|
13673
13676
|
}
|
|
@@ -13679,7 +13682,7 @@ function l9({
|
|
|
13679
13682
|
id: "showPasswordForgot",
|
|
13680
13683
|
type: "checkbox",
|
|
13681
13684
|
checked: o,
|
|
13682
|
-
onChange: (
|
|
13685
|
+
onChange: (A) => u(A.target.checked)
|
|
13683
13686
|
}
|
|
13684
13687
|
),
|
|
13685
13688
|
/* @__PURE__ */ a(
|
|
@@ -13957,7 +13960,7 @@ async function _3({
|
|
|
13957
13960
|
message: "Faltan campos obligatorios. Por favor, completa todos los campos.",
|
|
13958
13961
|
status: 400
|
|
13959
13962
|
};
|
|
13960
|
-
if ([e, t, r, n].some((
|
|
13963
|
+
if ([e, t, r, n].some((A) => typeof A != "string"))
|
|
13961
13964
|
return {
|
|
13962
13965
|
type: "error",
|
|
13963
13966
|
message: "Datos inválidos. Intenta de nuevo.",
|
|
@@ -13991,7 +13994,7 @@ async function _3({
|
|
|
13991
13994
|
o && (h.id = o);
|
|
13992
13995
|
const f = new URLSearchParams(h);
|
|
13993
13996
|
try {
|
|
13994
|
-
const { data:
|
|
13997
|
+
const { data: A } = await oe.get(`${u}?${f.toString()}`, {
|
|
13995
13998
|
headers: {
|
|
13996
13999
|
"Content-Type": "application/json",
|
|
13997
14000
|
"x-security-token": d,
|
|
@@ -13999,18 +14002,18 @@ async function _3({
|
|
|
13999
14002
|
"User-Agent": "amplifyapp-comments-saas"
|
|
14000
14003
|
}
|
|
14001
14004
|
});
|
|
14002
|
-
return !
|
|
14005
|
+
return !A || A.error ? (console.error("CMS error response:", A), {
|
|
14003
14006
|
type: "error",
|
|
14004
14007
|
message: "No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",
|
|
14005
14008
|
status: 502
|
|
14006
|
-
}) : (console.log("Comentario enviado con éxito",
|
|
14009
|
+
}) : (console.log("Comentario enviado con éxito", A), {
|
|
14007
14010
|
type: "success",
|
|
14008
14011
|
message: "Comentario enviado con éxito.",
|
|
14009
14012
|
status: 200
|
|
14010
14013
|
});
|
|
14011
|
-
} catch (
|
|
14012
|
-
if (console.error("Error enviando comentario:",
|
|
14013
|
-
const g =
|
|
14014
|
+
} catch (A) {
|
|
14015
|
+
if (console.error("Error enviando comentario:", A), oe.isAxiosError(A)) {
|
|
14016
|
+
const g = A.response?.status ?? 500, p = A.response?.data;
|
|
14014
14017
|
return g === 400 ? {
|
|
14015
14018
|
type: "error",
|
|
14016
14019
|
message: p?.message || "Solicitud inválida. Verifica que los campos sean correctos.",
|