sass-template-common 0.3.48 → 0.3.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 +238 -238
- package/dist/sass-template-common.umd.cjs +12 -12
- package/package.json +1 -1
|
@@ -160,7 +160,7 @@ function Ws() {
|
|
|
160
160
|
(function(n, s) {
|
|
161
161
|
e.exports = s();
|
|
162
162
|
})(sr, (function() {
|
|
163
|
-
var n = 1e3, s = 6e4, o = 36e5, r = "millisecond", i = "second", c = "minute", d = "hour", l = "day", u = "week", h = "month", m = "quarter", p = "year", g = "date", A = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
163
|
+
var n = 1e3, s = 6e4, o = 36e5, r = "millisecond", i = "second", c = "minute", d = "hour", l = "day", u = "week", h = "month", m = "quarter", p = "year", g = "date", A = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|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, N = { 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) {
|
|
164
164
|
var U = ["th", "st", "nd", "rd"], I = M % 100;
|
|
165
165
|
return "[" + M + (U[(I - 20) % 10] || U[I] || U[0]) + "]";
|
|
166
166
|
} }, b = function(M, U, I) {
|
|
@@ -179,13 +179,13 @@ function Ws() {
|
|
|
179
179
|
return { M: h, y: p, w: u, d: l, D: g, h: d, m: c, s: i, ms: r, Q: m }[M] || String(M || "").toLowerCase().replace(/s$/, "");
|
|
180
180
|
}, u: function(M) {
|
|
181
181
|
return M === void 0;
|
|
182
|
-
} },
|
|
183
|
-
E[
|
|
182
|
+
} }, C = "en", E = {};
|
|
183
|
+
E[C] = N;
|
|
184
184
|
var P = "$isDayjsObject", Q = function(M) {
|
|
185
185
|
return M instanceof ee || !(!M || !M[P]);
|
|
186
186
|
}, W = function M(U, I, D) {
|
|
187
187
|
var T;
|
|
188
|
-
if (!U) return
|
|
188
|
+
if (!U) return C;
|
|
189
189
|
if (typeof U == "string") {
|
|
190
190
|
var z = U.toLowerCase();
|
|
191
191
|
E[z] && (T = z), I && (E[z] = I, T = z);
|
|
@@ -195,7 +195,7 @@ function Ws() {
|
|
|
195
195
|
var S = U.name;
|
|
196
196
|
E[S] = U, T = S;
|
|
197
197
|
}
|
|
198
|
-
return !D && T && (
|
|
198
|
+
return !D && T && (C = T), T || !D && C;
|
|
199
199
|
}, G = function(M, U) {
|
|
200
200
|
if (Q(M)) return M.clone();
|
|
201
201
|
var I = typeof U == "object" ? U : {};
|
|
@@ -310,7 +310,7 @@ function Ws() {
|
|
|
310
310
|
var ve = $ < 12 ? "AM" : "PM";
|
|
311
311
|
return L ? ve.toLowerCase() : ve;
|
|
312
312
|
};
|
|
313
|
-
return z.replace(
|
|
313
|
+
return z.replace(v, (function($, ie) {
|
|
314
314
|
return ie || (function(L) {
|
|
315
315
|
switch (L) {
|
|
316
316
|
case "YY":
|
|
@@ -428,7 +428,7 @@ function Ws() {
|
|
|
428
428
|
return M.$i || (M(U, ee, G), M.$i = !0), G;
|
|
429
429
|
}, G.locale = W, G.isDayjs = Q, G.unix = function(M) {
|
|
430
430
|
return G(1e3 * M);
|
|
431
|
-
}, G.en = E[
|
|
431
|
+
}, G.en = E[C], G.Ls = E, G.p = {}, G;
|
|
432
432
|
}));
|
|
433
433
|
})(un)), un.exports;
|
|
434
434
|
}
|
|
@@ -447,19 +447,19 @@ function ir() {
|
|
|
447
447
|
return r.fromToBase(l, u, h, m);
|
|
448
448
|
}
|
|
449
449
|
o.en.relativeTime = i, r.fromToBase = function(l, u, h, m, p) {
|
|
450
|
-
for (var g, A, w,
|
|
451
|
-
var
|
|
452
|
-
|
|
450
|
+
for (var g, A, w, v = h.$locale().relativeTime || i, N = 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" }], b = N.length, x = 0; x < b; x += 1) {
|
|
451
|
+
var C = N[x];
|
|
452
|
+
C.d && (g = m ? o(l).diff(h, C.d, !0) : h.diff(l, C.d, !0));
|
|
453
453
|
var E = (n.rounding || Math.round)(Math.abs(g));
|
|
454
|
-
if (w = g > 0, E <=
|
|
455
|
-
E <= 1 && x > 0 && (
|
|
456
|
-
var P = C
|
|
457
|
-
p && (E = p("" + E)), A = typeof P == "string" ? P.replace("%d", E) : P(E, u,
|
|
454
|
+
if (w = g > 0, E <= C.r || !C.r) {
|
|
455
|
+
E <= 1 && x > 0 && (C = N[x - 1]);
|
|
456
|
+
var P = v[C.l];
|
|
457
|
+
p && (E = p("" + E)), A = typeof P == "string" ? P.replace("%d", E) : P(E, u, C.l, w);
|
|
458
458
|
break;
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
if (u) return A;
|
|
462
|
-
var Q = w ?
|
|
462
|
+
var Q = w ? v.future : v.past;
|
|
463
463
|
return typeof Q == "function" ? Q(A) : Q.replace("%s", A);
|
|
464
464
|
}, r.to = function(l, u) {
|
|
465
465
|
return c(l, u, this, !0);
|
|
@@ -528,11 +528,11 @@ function mr() {
|
|
|
528
528
|
};
|
|
529
529
|
var h = d.utcOffset;
|
|
530
530
|
d.utcOffset = function(A, w) {
|
|
531
|
-
var
|
|
532
|
-
if (
|
|
533
|
-
if (typeof A == "string" && (A = (function(
|
|
534
|
-
|
|
535
|
-
var E =
|
|
531
|
+
var v = this.$utils().u;
|
|
532
|
+
if (v(A)) return this.$u ? 0 : v(this.$offset) ? h.call(this) : this.$offset;
|
|
533
|
+
if (typeof A == "string" && (A = (function(C) {
|
|
534
|
+
C === void 0 && (C = "");
|
|
535
|
+
var E = C.match(s);
|
|
536
536
|
if (!E) return null;
|
|
537
537
|
var P = ("" + E[0]).match(o) || ["-", 0, 0], Q = P[0], W = 60 * +P[1] + +P[2];
|
|
538
538
|
return W === 0 ? 0 : Q === "+" ? W : -W;
|
|
@@ -563,10 +563,10 @@ function mr() {
|
|
|
563
563
|
return A === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : p.call(this);
|
|
564
564
|
};
|
|
565
565
|
var g = d.diff;
|
|
566
|
-
d.diff = function(A, w,
|
|
567
|
-
if (A && this.$u === A.$u) return g.call(this, A, w,
|
|
566
|
+
d.diff = function(A, w, v) {
|
|
567
|
+
if (A && this.$u === A.$u) return g.call(this, A, w, v);
|
|
568
568
|
var N = this.local(), b = c(A).local();
|
|
569
|
-
return g.call(N, b, w,
|
|
569
|
+
return g.call(N, b, w, v);
|
|
570
570
|
};
|
|
571
571
|
};
|
|
572
572
|
}));
|
|
@@ -584,25 +584,25 @@ function Ar() {
|
|
|
584
584
|
return function(o, r, i) {
|
|
585
585
|
var c, d = function(m, p, g) {
|
|
586
586
|
g === void 0 && (g = {});
|
|
587
|
-
var A = new Date(m), w = (function(
|
|
587
|
+
var A = new Date(m), w = (function(v, N) {
|
|
588
588
|
N === void 0 && (N = {});
|
|
589
|
-
var b = N.timeZoneName || "short", x =
|
|
590
|
-
return
|
|
589
|
+
var b = N.timeZoneName || "short", x = v + "|" + b, C = s[x];
|
|
590
|
+
return C || (C = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: v, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: b }), s[x] = C), C;
|
|
591
591
|
})(p, g);
|
|
592
592
|
return w.formatToParts(A);
|
|
593
593
|
}, l = function(m, p) {
|
|
594
594
|
for (var g = d(m, p), A = [], w = 0; w < g.length; w += 1) {
|
|
595
|
-
var
|
|
595
|
+
var v = g[w], N = v.type, b = v.value, x = n[N];
|
|
596
596
|
x >= 0 && (A[x] = parseInt(b, 10));
|
|
597
597
|
}
|
|
598
|
-
var
|
|
598
|
+
var C = A[3], E = C === 24 ? 0 : C, P = A[0] + "-" + A[1] + "-" + A[2] + " " + E + ":" + A[4] + ":" + A[5] + ":000", Q = +m;
|
|
599
599
|
return (i.utc(P).valueOf() - (Q -= Q % 1e3)) / 6e4;
|
|
600
600
|
}, u = r.prototype;
|
|
601
601
|
u.tz = function(m, p) {
|
|
602
602
|
m === void 0 && (m = c);
|
|
603
|
-
var g, A = this.utcOffset(), w = this.toDate(),
|
|
603
|
+
var g, A = this.utcOffset(), w = this.toDate(), v = w.toLocaleString("en-US", { timeZone: m }), N = Math.round((w - new Date(v)) / 1e3 / 60), b = 15 * -Math.round(w.getTimezoneOffset() / 15) - N;
|
|
604
604
|
if (!Number(b)) g = this.utcOffset(0, p);
|
|
605
|
-
else if (g = i(
|
|
605
|
+
else if (g = i(v, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(b, !0), p) {
|
|
606
606
|
var x = g.utcOffset();
|
|
607
607
|
g = g.add(A - x, "minute");
|
|
608
608
|
}
|
|
@@ -619,15 +619,15 @@ function Ar() {
|
|
|
619
619
|
var g = i(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
620
620
|
return h.call(g, m, p).tz(this.$x.$timezone, !0);
|
|
621
621
|
}, i.tz = function(m, p, g) {
|
|
622
|
-
var A = g && p, w = g || p || c,
|
|
622
|
+
var A = g && p, w = g || p || c, v = l(+i(), w);
|
|
623
623
|
if (typeof m != "string") return i(m).tz(w);
|
|
624
624
|
var N = (function(E, P, Q) {
|
|
625
625
|
var W = E - 60 * P * 1e3, G = l(W, Q);
|
|
626
626
|
if (P === G) return [W, P];
|
|
627
627
|
var B = l(W -= 60 * (G - P) * 1e3, Q);
|
|
628
628
|
return G === B ? [W, G] : [E - 60 * Math.min(G, B) * 1e3, Math.max(G, B)];
|
|
629
|
-
})(i.utc(m, A).valueOf(),
|
|
630
|
-
return
|
|
629
|
+
})(i.utc(m, A).valueOf(), v, w), b = N[0], x = N[1], C = i(b).utcOffset(x);
|
|
630
|
+
return C.$x.$timezone = w, C;
|
|
631
631
|
}, i.tz.guess = function() {
|
|
632
632
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
633
633
|
}, i.tz.setDefault = function(m) {
|
|
@@ -1845,12 +1845,12 @@ function Ln(e, t, n) {
|
|
|
1845
1845
|
return _.isArrayBuffer(g) || _.isTypedArray(g) ? d && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
|
|
1846
1846
|
}
|
|
1847
1847
|
function u(g, A, w) {
|
|
1848
|
-
let
|
|
1848
|
+
let v = g;
|
|
1849
1849
|
if (g && !w && typeof g == "object") {
|
|
1850
1850
|
if (_.endsWith(A, "{}"))
|
|
1851
1851
|
A = s ? A : A.slice(0, -2), g = JSON.stringify(g);
|
|
1852
|
-
else if (_.isArray(g) && Ui(g) || (_.isFileList(g) || _.endsWith(A, "[]")) && (
|
|
1853
|
-
return A = co(A),
|
|
1852
|
+
else if (_.isArray(g) && Ui(g) || (_.isFileList(g) || _.endsWith(A, "[]")) && (v = _.toArray(g)))
|
|
1853
|
+
return A = co(A), v.forEach(function(b, x) {
|
|
1854
1854
|
!(_.isUndefined(b) || b === null) && t.append(
|
|
1855
1855
|
// eslint-disable-next-line no-nested-ternary
|
|
1856
1856
|
i === !0 ? Za([A], x, r) : i === null ? A : A + "[]",
|
|
@@ -1869,14 +1869,14 @@ function Ln(e, t, n) {
|
|
|
1869
1869
|
if (!_.isUndefined(g)) {
|
|
1870
1870
|
if (h.indexOf(g) !== -1)
|
|
1871
1871
|
throw Error("Circular reference detected in " + A.join("."));
|
|
1872
|
-
h.push(g), _.forEach(g, function(
|
|
1873
|
-
(!(_.isUndefined(
|
|
1872
|
+
h.push(g), _.forEach(g, function(v, N) {
|
|
1873
|
+
(!(_.isUndefined(v) || v === null) && o.call(
|
|
1874
1874
|
t,
|
|
1875
|
-
|
|
1875
|
+
v,
|
|
1876
1876
|
_.isString(N) ? N.trim() : N,
|
|
1877
1877
|
A,
|
|
1878
1878
|
m
|
|
1879
|
-
)) === !0 && p(
|
|
1879
|
+
)) === !0 && p(v, A ? A.concat(N) : [N]);
|
|
1880
1880
|
}), h.pop();
|
|
1881
1881
|
}
|
|
1882
1882
|
}
|
|
@@ -2547,12 +2547,12 @@ const Ao = (e) => {
|
|
|
2547
2547
|
}
|
|
2548
2548
|
let w = new XMLHttpRequest();
|
|
2549
2549
|
w.open(o.method.toUpperCase(), o.url, !0), w.timeout = o.timeout;
|
|
2550
|
-
function
|
|
2550
|
+
function v() {
|
|
2551
2551
|
if (!w)
|
|
2552
2552
|
return;
|
|
2553
2553
|
const b = Se.from(
|
|
2554
2554
|
"getAllResponseHeaders" in w && w.getAllResponseHeaders()
|
|
2555
|
-
),
|
|
2555
|
+
), C = {
|
|
2556
2556
|
data: !c || c === "text" || c === "json" ? w.responseText : w.response,
|
|
2557
2557
|
status: w.status,
|
|
2558
2558
|
statusText: w.statusText,
|
|
@@ -2564,26 +2564,26 @@ const Ao = (e) => {
|
|
|
2564
2564
|
n(P), A();
|
|
2565
2565
|
}, function(P) {
|
|
2566
2566
|
s(P), A();
|
|
2567
|
-
},
|
|
2567
|
+
}, C), w = null;
|
|
2568
2568
|
}
|
|
2569
|
-
"onloadend" in w ? w.onloadend =
|
|
2570
|
-
!w || w.readyState !== 4 || w.status === 0 && !(w.responseURL && w.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
2569
|
+
"onloadend" in w ? w.onloadend = v : w.onreadystatechange = function() {
|
|
2570
|
+
!w || w.readyState !== 4 || w.status === 0 && !(w.responseURL && w.responseURL.indexOf("file:") === 0) || setTimeout(v);
|
|
2571
2571
|
}, w.onabort = function() {
|
|
2572
2572
|
w && (s(new Y("Request aborted", Y.ECONNABORTED, e, w)), w = null);
|
|
2573
2573
|
}, w.onerror = function(x) {
|
|
2574
|
-
const
|
|
2574
|
+
const C = x && x.message ? x.message : "Network Error", E = new Y(C, Y.ERR_NETWORK, e, w);
|
|
2575
2575
|
E.event = x || null, s(E), w = null;
|
|
2576
2576
|
}, w.ontimeout = function() {
|
|
2577
2577
|
let x = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
2578
|
-
const
|
|
2578
|
+
const C = o.transitional || ho;
|
|
2579
2579
|
o.timeoutErrorMessage && (x = o.timeoutErrorMessage), s(new Y(
|
|
2580
2580
|
x,
|
|
2581
|
-
|
|
2581
|
+
C.clarifyTimeoutError ? Y.ETIMEDOUT : Y.ECONNABORTED,
|
|
2582
2582
|
e,
|
|
2583
2583
|
w
|
|
2584
2584
|
)), w = null;
|
|
2585
|
-
}, r === void 0 && i.setContentType(null), "setRequestHeader" in w && _.forEach(i.toJSON(), function(x,
|
|
2586
|
-
w.setRequestHeader(
|
|
2585
|
+
}, r === void 0 && i.setContentType(null), "setRequestHeader" in w && _.forEach(i.toJSON(), function(x, C) {
|
|
2586
|
+
w.setRequestHeader(C, x);
|
|
2587
2587
|
}), _.isUndefined(o.withCredentials) || (w.withCredentials = !!o.withCredentials), c && c !== "json" && (w.responseType = o.responseType), l && ([m, g] = _n(l, !0), w.addEventListener("progress", m)), d && w.upload && ([h, p] = _n(d), w.upload.addEventListener("progress", h), w.upload.addEventListener("loadend", p)), (o.cancelToken || o.signal) && (u = (b) => {
|
|
2588
2588
|
w && (s(!b || b.type ? new kt(null, e, w) : b), w.abort(), w = null);
|
|
2589
2589
|
}, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
|
|
@@ -2708,9 +2708,9 @@ const Ao = (e) => {
|
|
|
2708
2708
|
};
|
|
2709
2709
|
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((g) => {
|
|
2710
2710
|
!h[g] && (h[g] = (A, w) => {
|
|
2711
|
-
let
|
|
2712
|
-
if (
|
|
2713
|
-
return
|
|
2711
|
+
let v = A && A[g];
|
|
2712
|
+
if (v)
|
|
2713
|
+
return v.call(A);
|
|
2714
2714
|
throw new Y(`Response type '${g}' is not supported`, Y.ERR_NOT_SUPPORT, w);
|
|
2715
2715
|
});
|
|
2716
2716
|
});
|
|
@@ -2736,11 +2736,11 @@ const Ao = (e) => {
|
|
|
2736
2736
|
let {
|
|
2737
2737
|
url: A,
|
|
2738
2738
|
method: w,
|
|
2739
|
-
data:
|
|
2739
|
+
data: v,
|
|
2740
2740
|
signal: N,
|
|
2741
2741
|
cancelToken: b,
|
|
2742
2742
|
timeout: x,
|
|
2743
|
-
onDownloadProgress:
|
|
2743
|
+
onDownloadProgress: C,
|
|
2744
2744
|
onUploadProgress: E,
|
|
2745
2745
|
responseType: P,
|
|
2746
2746
|
headers: Q,
|
|
@@ -2754,18 +2754,18 @@ const Ao = (e) => {
|
|
|
2754
2754
|
});
|
|
2755
2755
|
let U;
|
|
2756
2756
|
try {
|
|
2757
|
-
if (E && l && w !== "get" && w !== "head" && (U = await p(Q,
|
|
2757
|
+
if (E && l && w !== "get" && w !== "head" && (U = await p(Q, v)) !== 0) {
|
|
2758
2758
|
let S = new n(A, {
|
|
2759
2759
|
method: "POST",
|
|
2760
|
-
body:
|
|
2760
|
+
body: v,
|
|
2761
2761
|
duplex: "half"
|
|
2762
2762
|
}), R;
|
|
2763
|
-
if (_.isFormData(
|
|
2763
|
+
if (_.isFormData(v) && (R = S.headers.get("content-type")) && Q.setContentType(R), S.body) {
|
|
2764
2764
|
const [j, O] = ns(
|
|
2765
2765
|
U,
|
|
2766
2766
|
_n(as(E))
|
|
2767
2767
|
);
|
|
2768
|
-
|
|
2768
|
+
v = os(S.body, rs, j, O);
|
|
2769
2769
|
}
|
|
2770
2770
|
}
|
|
2771
2771
|
_.isString(W) || (W = W ? "include" : "omit");
|
|
@@ -2774,21 +2774,21 @@ const Ao = (e) => {
|
|
|
2774
2774
|
signal: ee,
|
|
2775
2775
|
method: w.toUpperCase(),
|
|
2776
2776
|
headers: Q.normalize().toJSON(),
|
|
2777
|
-
body:
|
|
2777
|
+
body: v,
|
|
2778
2778
|
duplex: "half",
|
|
2779
2779
|
credentials: I ? W : void 0
|
|
2780
2780
|
};
|
|
2781
2781
|
le = r && new n(A, D);
|
|
2782
2782
|
let T = await (r ? B(le, G) : B(A, D));
|
|
2783
2783
|
const z = u && (P === "stream" || P === "response");
|
|
2784
|
-
if (u && (
|
|
2784
|
+
if (u && (C || z && M)) {
|
|
2785
2785
|
const S = {};
|
|
2786
2786
|
["status", "statusText", "headers"].forEach((H) => {
|
|
2787
2787
|
S[H] = T[H];
|
|
2788
2788
|
});
|
|
2789
|
-
const R = _.toFiniteNumber(T.headers.get("content-length")), [j, O] =
|
|
2789
|
+
const R = _.toFiniteNumber(T.headers.get("content-length")), [j, O] = C && ns(
|
|
2790
2790
|
R,
|
|
2791
|
-
_n(as(
|
|
2791
|
+
_n(as(C), !0)
|
|
2792
2792
|
) || [];
|
|
2793
2793
|
T = new s(
|
|
2794
2794
|
os(T.body, rs, j, () => {
|
|
@@ -3394,10 +3394,10 @@ class ht {
|
|
|
3394
3394
|
const l = Ya(c), h = (St(r)?.data ?? [])[0]?.list?.items?.map(
|
|
3395
3395
|
(w) => Ya(w)
|
|
3396
3396
|
), m = [];
|
|
3397
|
-
h?.forEach((w) => {
|
|
3398
|
-
w && w.length > 0 && w.forEach((
|
|
3397
|
+
console.log("newsRelatedList: ", h), h?.forEach((w) => {
|
|
3398
|
+
w && w.length > 0 && w.forEach((v) => {
|
|
3399
3399
|
const N = this.getNews({
|
|
3400
|
-
path:
|
|
3400
|
+
path: v.replaceAll ? v?.replaceAll("|", "/") ?? "" : v[0].replaceAll("|", "/") ?? "",
|
|
3401
3401
|
imagesizes: n.getNewsItemsRelated,
|
|
3402
3402
|
exclude: s.getNewsItemsRelated
|
|
3403
3403
|
});
|
|
@@ -3405,7 +3405,7 @@ class ht {
|
|
|
3405
3405
|
N
|
|
3406
3406
|
);
|
|
3407
3407
|
});
|
|
3408
|
-
});
|
|
3408
|
+
}), console.log("newsRelatedListRequest: ", m);
|
|
3409
3409
|
const g = (await Promise.allSettled([
|
|
3410
3410
|
...m
|
|
3411
3411
|
])).map(
|
|
@@ -3871,11 +3871,11 @@ async function R3({
|
|
|
3871
3871
|
speculationType: g = "Common",
|
|
3872
3872
|
preloadImageUrl: A,
|
|
3873
3873
|
custom_Speculation: w,
|
|
3874
|
-
custom_metadata:
|
|
3874
|
+
custom_metadata: v,
|
|
3875
3875
|
custom_scriptReplaces: N,
|
|
3876
3876
|
head_custom_elements: b
|
|
3877
3877
|
}) {
|
|
3878
|
-
const x =
|
|
3878
|
+
const x = v || await _c[o]({
|
|
3879
3879
|
meta: n,
|
|
3880
3880
|
config: m,
|
|
3881
3881
|
currentNew: l,
|
|
@@ -3886,7 +3886,7 @@ async function R3({
|
|
|
3886
3886
|
query: d,
|
|
3887
3887
|
axiosApi: e,
|
|
3888
3888
|
internalPath: h
|
|
3889
|
-
}),
|
|
3889
|
+
}), C = Er(x), E = N || Js[o]({
|
|
3890
3890
|
pathname: r,
|
|
3891
3891
|
slug: i,
|
|
3892
3892
|
config: m,
|
|
@@ -3896,7 +3896,7 @@ async function R3({
|
|
|
3896
3896
|
return /* @__PURE__ */ f(J, { children: [
|
|
3897
3897
|
/* @__PURE__ */ a("meta", { charSet: "utf-8" }),
|
|
3898
3898
|
/* @__PURE__ */ a("meta", { name: "viewport", content: "width=device-width" }),
|
|
3899
|
-
|
|
3899
|
+
C,
|
|
3900
3900
|
/* @__PURE__ */ a(Tr, {}),
|
|
3901
3901
|
t.ampConfig && m.ampOption && t.ampConfig_slugIsValid && /* @__PURE__ */ a("link", { rel: "amphtml", href: m.siteUrl + "/amp" + r }),
|
|
3902
3902
|
t.preloadImages && l && l.preview?.sizes && /* @__PURE__ */ a(
|
|
@@ -4034,7 +4034,7 @@ function Tc({
|
|
|
4034
4034
|
enableDrag: r,
|
|
4035
4035
|
onIndexChange: i
|
|
4036
4036
|
}) {
|
|
4037
|
-
const [c, d] = K(!1), [l, u] = K(0), [h, m] = K(0), [p, g] = K(0), [A, w] = K(0), [
|
|
4037
|
+
const [c, d] = K(!1), [l, u] = K(0), [h, m] = K(0), [p, g] = K(0), [A, w] = K(0), [v, N] = K(null), b = Fs(null), [x, C] = K(1), E = ue(() => {
|
|
4038
4038
|
if (o) return 1;
|
|
4039
4039
|
const y = b.current?.offsetWidth || window.innerWidth, S = n + s, R = Math.floor(y / S);
|
|
4040
4040
|
return Math.max(1, R);
|
|
@@ -4042,7 +4042,7 @@ function Tc({
|
|
|
4042
4042
|
Qe(() => {
|
|
4043
4043
|
const y = () => {
|
|
4044
4044
|
const S = E();
|
|
4045
|
-
|
|
4045
|
+
C(S);
|
|
4046
4046
|
};
|
|
4047
4047
|
return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
|
|
4048
4048
|
}, [E]);
|
|
@@ -4101,7 +4101,7 @@ function Tc({
|
|
|
4101
4101
|
const F = Math.min(Q, e + V);
|
|
4102
4102
|
i(F);
|
|
4103
4103
|
}
|
|
4104
|
-
d(!1), g(0), document.body.classList.remove("dragging"), document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", U), y.clientX === l &&
|
|
4104
|
+
d(!1), g(0), document.body.classList.remove("dragging"), document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", U), y.clientX === l && v?.dispatchEvent(new PointerEvent("click"));
|
|
4105
4105
|
},
|
|
4106
4106
|
[
|
|
4107
4107
|
c,
|
|
@@ -4114,7 +4114,7 @@ function Tc({
|
|
|
4114
4114
|
i,
|
|
4115
4115
|
B,
|
|
4116
4116
|
M,
|
|
4117
|
-
|
|
4117
|
+
v
|
|
4118
4118
|
]
|
|
4119
4119
|
), I = ue(
|
|
4120
4120
|
(y) => {
|
|
@@ -4181,7 +4181,7 @@ function B3(e) {
|
|
|
4181
4181
|
isDragging: g,
|
|
4182
4182
|
translateOffset: A,
|
|
4183
4183
|
carrouselRef: w,
|
|
4184
|
-
maxIndex:
|
|
4184
|
+
maxIndex: v,
|
|
4185
4185
|
getTranslateValue: N,
|
|
4186
4186
|
actualVisibleItems: b,
|
|
4187
4187
|
dragHandlers: x
|
|
@@ -4193,17 +4193,17 @@ function B3(e) {
|
|
|
4193
4193
|
fullPageWidth: i,
|
|
4194
4194
|
enableDrag: d,
|
|
4195
4195
|
onIndexChange: h
|
|
4196
|
-
}),
|
|
4196
|
+
}), C = ue(
|
|
4197
4197
|
(G) => {
|
|
4198
|
-
const B = Math.max(0, Math.min(G,
|
|
4198
|
+
const B = Math.max(0, Math.min(G, v));
|
|
4199
4199
|
h(B);
|
|
4200
4200
|
},
|
|
4201
|
-
[
|
|
4201
|
+
[v]
|
|
4202
4202
|
), E = ue(() => {
|
|
4203
|
-
|
|
4204
|
-
}, [u,
|
|
4205
|
-
|
|
4206
|
-
}, [u,
|
|
4203
|
+
C(u - 1);
|
|
4204
|
+
}, [u, C]), P = ue(() => {
|
|
4205
|
+
C(u + 1);
|
|
4206
|
+
}, [u, C]);
|
|
4207
4207
|
if (!m) return;
|
|
4208
4208
|
const Q = N(u, A), W = i ? `translateX(${Q}%)` : `translateX(${Q}px)`;
|
|
4209
4209
|
return /* @__PURE__ */ f("div", { className: `${n}- carrousel-container`, children: [
|
|
@@ -4233,7 +4233,7 @@ function B3(e) {
|
|
|
4233
4233
|
)
|
|
4234
4234
|
}
|
|
4235
4235
|
),
|
|
4236
|
-
u <
|
|
4236
|
+
u < v && /* @__PURE__ */ a(
|
|
4237
4237
|
"button",
|
|
4238
4238
|
{
|
|
4239
4239
|
className: "visible-arrow right",
|
|
@@ -4312,7 +4312,7 @@ function B3(e) {
|
|
|
4312
4312
|
"li",
|
|
4313
4313
|
{
|
|
4314
4314
|
className: ee ? "active" : "",
|
|
4315
|
-
onClick: () =>
|
|
4315
|
+
onClick: () => C(B * b),
|
|
4316
4316
|
style: {
|
|
4317
4317
|
cursor: "pointer",
|
|
4318
4318
|
backgroundColor: ee ? "var(--carrousel-pagination-background-color)" : "var(--carrousel-pagination-background-color-white)"
|
|
@@ -9484,24 +9484,24 @@ const $3 = (e) => {
|
|
|
9484
9484
|
for (const i of o) {
|
|
9485
9485
|
const c = i[1], d = i[2] ?? "";
|
|
9486
9486
|
let l;
|
|
9487
|
-
if (n.forEach((
|
|
9488
|
-
Array.isArray(
|
|
9487
|
+
if (n.forEach((C) => {
|
|
9488
|
+
Array.isArray(C) && (l = C.find(
|
|
9489
9489
|
(E) => d.replaceAll("/", "|").includes(E?.info.link.internal || "")
|
|
9490
9490
|
));
|
|
9491
9491
|
}), !l) {
|
|
9492
|
-
const
|
|
9492
|
+
const C = c.replace(
|
|
9493
9493
|
/class=["']([^"']*ck-related-news[^"']*)["']/,
|
|
9494
9494
|
'class="$1-empty"'
|
|
9495
9495
|
);
|
|
9496
|
-
r = r.replace(c,
|
|
9496
|
+
r = r.replace(c, C);
|
|
9497
9497
|
continue;
|
|
9498
9498
|
}
|
|
9499
9499
|
const u = l.preview?.sizes?.[0], h = u ? await pe(u.url) : "", m = l.info.section?.url ?? "#", p = l.info.section?.name ?? "Sección", g = l.info.link?.url ?? "#", A = l.main?.title.article ?? "Título", w = (await Promise.all(
|
|
9500
|
-
l.preview?.sizes?.map(async (
|
|
9501
|
-
const E = await pe(
|
|
9502
|
-
return
|
|
9500
|
+
l.preview?.sizes?.map(async (C) => {
|
|
9501
|
+
const E = await pe(C.url);
|
|
9502
|
+
return C.width < 200 ? `<source srcset="${E}" media="(width < 750px)"/>` : `<source srcset="${E}" media="(width >= 750px)"/>`;
|
|
9503
9503
|
}) || []
|
|
9504
|
-
)).reduce((
|
|
9504
|
+
)).reduce((C, E) => C += E, ""), v = c.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/), N = v ? v[0] : "", b = `
|
|
9505
9505
|
<span data-src="${d}">
|
|
9506
9506
|
<picture style='display: flex'>
|
|
9507
9507
|
${w}
|
|
@@ -9551,7 +9551,7 @@ async function c0(e, t) {
|
|
|
9551
9551
|
let A = "";
|
|
9552
9552
|
const w = d.match(
|
|
9553
9553
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
9554
|
-
),
|
|
9554
|
+
), v = w && w[1] ? w[1].trim() : "";
|
|
9555
9555
|
g.info && g.info.type === "video-youtube" ? A = `<iframe
|
|
9556
9556
|
loading="lazy"
|
|
9557
9557
|
frameborder="0"
|
|
@@ -9567,7 +9567,7 @@ async function c0(e, t) {
|
|
|
9567
9567
|
allowfullscreen
|
|
9568
9568
|
style="width: 100%; height: auto; min-height: 400px;"
|
|
9569
9569
|
src="${g.main?.code || ""}"></iframe>` : A = g.main?.code || "";
|
|
9570
|
-
const N =
|
|
9570
|
+
const N = v || g.main?.description || "";
|
|
9571
9571
|
h = `
|
|
9572
9572
|
<figure class="videoFigure">
|
|
9573
9573
|
${p && p.data && p.data.data ? `<script type="application/ld+json">${Tn(
|
|
@@ -10298,25 +10298,25 @@ const hg = async (e) => {
|
|
|
10298
10298
|
const u = l[0], h = l[2] ?? "";
|
|
10299
10299
|
i.add(h);
|
|
10300
10300
|
const m = u.match(/<img\b[^>]*\balt=["']([^"']*)["']/), p = m ? m[1] : "imagen", g = h.match(/__scale=([^&"']+)/), A = g ? decodeURIComponent(g[1]) : null;
|
|
10301
|
-
let w = 0,
|
|
10301
|
+
let w = 0, v = 0;
|
|
10302
10302
|
if (A) {
|
|
10303
10303
|
const E = A.match(/w:(\d+)/), P = A.match(/h:(\d+)/);
|
|
10304
|
-
w = E ? parseInt(E[1]) : 0,
|
|
10304
|
+
w = E ? parseInt(E[1]) : 0, v = P ? parseInt(P[1]) : 0;
|
|
10305
10305
|
}
|
|
10306
10306
|
const b = {
|
|
10307
10307
|
preview: {
|
|
10308
10308
|
sizes: [
|
|
10309
10309
|
{
|
|
10310
|
-
scale: A || `w:${w},h:${
|
|
10310
|
+
scale: A || `w:${w},h:${v},t:2`,
|
|
10311
10311
|
url: h,
|
|
10312
10312
|
width: w,
|
|
10313
|
-
height:
|
|
10313
|
+
height: v
|
|
10314
10314
|
}
|
|
10315
10315
|
],
|
|
10316
10316
|
original: {
|
|
10317
10317
|
url: h.split("?")[0],
|
|
10318
10318
|
width: w,
|
|
10319
|
-
height:
|
|
10319
|
+
height: v
|
|
10320
10320
|
},
|
|
10321
10321
|
copyright: !1,
|
|
10322
10322
|
description: p,
|
|
@@ -10324,33 +10324,33 @@ const hg = async (e) => {
|
|
|
10324
10324
|
},
|
|
10325
10325
|
isLarge: !1,
|
|
10326
10326
|
priorityHigh: !1
|
|
10327
|
-
},
|
|
10328
|
-
s = s.replace(u,
|
|
10327
|
+
}, C = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(b))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
|
|
10328
|
+
s = s.replace(u, C);
|
|
10329
10329
|
}
|
|
10330
10330
|
const c = /<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g, d = [...s.matchAll(c)];
|
|
10331
10331
|
for (const l of d) {
|
|
10332
10332
|
const u = l[0], h = l[1] ?? "";
|
|
10333
10333
|
if (i.has(h)) continue;
|
|
10334
10334
|
const m = u.match(/\balt=["']([^"']*)["']/), p = m ? m[1] : "imagen", g = h.match(/__scale=([^&"']+)/), A = g ? decodeURIComponent(g[1]) : null;
|
|
10335
|
-
let w = 0,
|
|
10335
|
+
let w = 0, v = 0;
|
|
10336
10336
|
if (A) {
|
|
10337
10337
|
const E = A.match(/w:(\d+)/), P = A.match(/h:(\d+)/);
|
|
10338
|
-
w = E ? parseInt(E[1]) : 0,
|
|
10338
|
+
w = E ? parseInt(E[1]) : 0, v = P ? parseInt(P[1]) : 0;
|
|
10339
10339
|
}
|
|
10340
10340
|
const b = {
|
|
10341
10341
|
preview: {
|
|
10342
10342
|
sizes: [
|
|
10343
10343
|
{
|
|
10344
|
-
scale: A || `w:${w},h:${
|
|
10344
|
+
scale: A || `w:${w},h:${v},t:2`,
|
|
10345
10345
|
url: h,
|
|
10346
10346
|
width: w,
|
|
10347
|
-
height:
|
|
10347
|
+
height: v
|
|
10348
10348
|
}
|
|
10349
10349
|
],
|
|
10350
10350
|
original: {
|
|
10351
10351
|
url: h.split("?")[0],
|
|
10352
10352
|
width: w,
|
|
10353
|
-
height:
|
|
10353
|
+
height: v
|
|
10354
10354
|
},
|
|
10355
10355
|
copyright: !1,
|
|
10356
10356
|
description: p,
|
|
@@ -10358,8 +10358,8 @@ const hg = async (e) => {
|
|
|
10358
10358
|
},
|
|
10359
10359
|
isLarge: !1,
|
|
10360
10360
|
priorityHigh: !1
|
|
10361
|
-
},
|
|
10362
|
-
s = s.replace(u,
|
|
10361
|
+
}, C = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(b))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
|
|
10362
|
+
s = s.replace(u, C);
|
|
10363
10363
|
}
|
|
10364
10364
|
return s;
|
|
10365
10365
|
}, wg = (e, t) => {
|
|
@@ -10425,7 +10425,7 @@ const hg = async (e) => {
|
|
|
10425
10425
|
const x = await pe(N.url);
|
|
10426
10426
|
return b === 0 ? `<source srcset="${x}" media="(width >= 900px)"/>` : `<source srcset="${x}" media="(width < 900px)"/>`;
|
|
10427
10427
|
})
|
|
10428
|
-
)).reduce((N, b) => N += b, ""),
|
|
10428
|
+
)).reduce((N, b) => N += b, ""), v = `
|
|
10429
10429
|
<span data-src="${d}">
|
|
10430
10430
|
<picture style='display: flex'>
|
|
10431
10431
|
${w}
|
|
@@ -10437,7 +10437,7 @@ const hg = async (e) => {
|
|
|
10437
10437
|
</div>
|
|
10438
10438
|
</span>
|
|
10439
10439
|
`;
|
|
10440
|
-
r = r.replace(c,
|
|
10440
|
+
r = r.replace(c, v);
|
|
10441
10441
|
}
|
|
10442
10442
|
return r;
|
|
10443
10443
|
};
|
|
@@ -10451,22 +10451,22 @@ async function Cg(e, t) {
|
|
|
10451
10451
|
let d = 1, l = c;
|
|
10452
10452
|
const u = e.length;
|
|
10453
10453
|
for (; l < u && d > 0; ) {
|
|
10454
|
-
const
|
|
10454
|
+
const v = e.indexOf("<div", l), N = e.indexOf("</div>", l);
|
|
10455
10455
|
if (N === -1) {
|
|
10456
10456
|
l = u;
|
|
10457
10457
|
break;
|
|
10458
10458
|
}
|
|
10459
|
-
|
|
10459
|
+
v !== -1 && v < N ? (d += 1, l = v + 4) : (d -= 1, l = N + 6);
|
|
10460
10460
|
}
|
|
10461
10461
|
const h = l, m = e.slice(i, h);
|
|
10462
10462
|
let p = null;
|
|
10463
10463
|
const g = /<span\b([^>]*)>/gi;
|
|
10464
10464
|
let A;
|
|
10465
10465
|
for (; (A = g.exec(m)) !== null; ) {
|
|
10466
|
-
const
|
|
10467
|
-
if (!
|
|
10468
|
-
if (/data-type\s*=\s*["']?video["']?/i.test(
|
|
10469
|
-
const N =
|
|
10466
|
+
const v = A[1];
|
|
10467
|
+
if (!v) break;
|
|
10468
|
+
if (/data-type\s*=\s*["']?video["']?/i.test(v)) {
|
|
10469
|
+
const N = v.match(/data-src\s*=\s*["']([^"']+)["']/i);
|
|
10470
10470
|
if (N) {
|
|
10471
10471
|
p = N[1] ?? "";
|
|
10472
10472
|
break;
|
|
@@ -10474,24 +10474,24 @@ async function Cg(e, t) {
|
|
|
10474
10474
|
}
|
|
10475
10475
|
}
|
|
10476
10476
|
if (!p) {
|
|
10477
|
-
const
|
|
10477
|
+
const v = m.match(
|
|
10478
10478
|
/<span\b[^>]*data-src=["'][^"']+["'][^>]*>/i
|
|
10479
10479
|
);
|
|
10480
|
-
if (
|
|
10481
|
-
const N =
|
|
10480
|
+
if (v) {
|
|
10481
|
+
const N = v[0].match(/data-src\s*=\s*["']([^"']+)["']/i);
|
|
10482
10482
|
N && (p = N[1] ?? "");
|
|
10483
10483
|
}
|
|
10484
10484
|
}
|
|
10485
10485
|
let w = "";
|
|
10486
10486
|
if (p)
|
|
10487
10487
|
try {
|
|
10488
|
-
const
|
|
10489
|
-
if (
|
|
10490
|
-
const b =
|
|
10488
|
+
const v = await t.iframe({ path: p }), N = t.schema ? await t.schema(p) : null;
|
|
10489
|
+
if (v && v.data) {
|
|
10490
|
+
const b = v.data.data[0];
|
|
10491
10491
|
let x = "";
|
|
10492
|
-
const
|
|
10492
|
+
const C = m.match(
|
|
10493
10493
|
/<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
|
|
10494
|
-
), E =
|
|
10494
|
+
), E = C && C[1] ? C[1].trim() : "";
|
|
10495
10495
|
b.info && b.info.type === "video-youtube" ? x = `<iframe
|
|
10496
10496
|
loading="lazy"
|
|
10497
10497
|
frameborder="0"
|
|
@@ -10518,8 +10518,8 @@ async function Cg(e, t) {
|
|
|
10518
10518
|
</figure>
|
|
10519
10519
|
`;
|
|
10520
10520
|
}
|
|
10521
|
-
} catch (
|
|
10522
|
-
console.error("insertVideos error for", p,
|
|
10521
|
+
} catch (v) {
|
|
10522
|
+
console.error("insertVideos error for", p, v), w = "";
|
|
10523
10523
|
}
|
|
10524
10524
|
else
|
|
10525
10525
|
w = m;
|
|
@@ -11636,13 +11636,13 @@ const pp = (e) => {
|
|
|
11636
11636
|
const {
|
|
11637
11637
|
PUBLIC_API_FRONT: A,
|
|
11638
11638
|
PUBLIC_X_SECURITY_TOKEN: w,
|
|
11639
|
-
PUBLIC_API_PATH_VERSION:
|
|
11639
|
+
PUBLIC_API_PATH_VERSION: v,
|
|
11640
11640
|
PUBLIC_PUBLICATION_ID: N
|
|
11641
11641
|
} = r;
|
|
11642
|
-
if (!A || !w || !N || !
|
|
11642
|
+
if (!A || !w || !N || !v)
|
|
11643
11643
|
throw new Error("Missing required environment variables");
|
|
11644
11644
|
const b = await oe.get(
|
|
11645
|
-
`${A}${
|
|
11645
|
+
`${A}${v}/news-list-section`,
|
|
11646
11646
|
{
|
|
11647
11647
|
params: {
|
|
11648
11648
|
size: 7,
|
|
@@ -12048,28 +12048,28 @@ var qs;
|
|
|
12048
12048
|
function zp() {
|
|
12049
12049
|
if (qs) return ae;
|
|
12050
12050
|
qs = 1;
|
|
12051
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = 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, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117,
|
|
12052
|
-
function b(
|
|
12053
|
-
if (typeof
|
|
12054
|
-
var E =
|
|
12051
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = 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, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
|
|
12052
|
+
function b(C) {
|
|
12053
|
+
if (typeof C == "object" && C !== null) {
|
|
12054
|
+
var E = C.$$typeof;
|
|
12055
12055
|
switch (E) {
|
|
12056
12056
|
case t:
|
|
12057
|
-
switch (
|
|
12057
|
+
switch (C = C.type, C) {
|
|
12058
12058
|
case d:
|
|
12059
12059
|
case l:
|
|
12060
12060
|
case s:
|
|
12061
12061
|
case r:
|
|
12062
12062
|
case o:
|
|
12063
12063
|
case h:
|
|
12064
|
-
return
|
|
12064
|
+
return C;
|
|
12065
12065
|
default:
|
|
12066
|
-
switch (
|
|
12066
|
+
switch (C = C && C.$$typeof, C) {
|
|
12067
12067
|
case c:
|
|
12068
12068
|
case u:
|
|
12069
12069
|
case g:
|
|
12070
12070
|
case p:
|
|
12071
12071
|
case i:
|
|
12072
|
-
return
|
|
12072
|
+
return C;
|
|
12073
12073
|
default:
|
|
12074
12074
|
return E;
|
|
12075
12075
|
}
|
|
@@ -12079,45 +12079,45 @@ function zp() {
|
|
|
12079
12079
|
}
|
|
12080
12080
|
}
|
|
12081
12081
|
}
|
|
12082
|
-
function x(
|
|
12083
|
-
return b(
|
|
12084
|
-
}
|
|
12085
|
-
return ae.AsyncMode = d, ae.ConcurrentMode = l, ae.ContextConsumer = c, ae.ContextProvider = i, ae.Element = t, ae.ForwardRef = u, ae.Fragment = s, ae.Lazy = g, ae.Memo = p, ae.Portal = n, ae.Profiler = r, ae.StrictMode = o, ae.Suspense = h, ae.isAsyncMode = function(
|
|
12086
|
-
return x(
|
|
12087
|
-
}, ae.isConcurrentMode = x, ae.isContextConsumer = function(
|
|
12088
|
-
return b(
|
|
12089
|
-
}, ae.isContextProvider = function(
|
|
12090
|
-
return b(
|
|
12091
|
-
}, ae.isElement = function(
|
|
12092
|
-
return typeof
|
|
12093
|
-
}, ae.isForwardRef = function(
|
|
12094
|
-
return b(
|
|
12095
|
-
}, ae.isFragment = function(
|
|
12096
|
-
return b(
|
|
12097
|
-
}, ae.isLazy = function(
|
|
12098
|
-
return b(
|
|
12099
|
-
}, ae.isMemo = function(
|
|
12100
|
-
return b(
|
|
12101
|
-
}, ae.isPortal = function(
|
|
12102
|
-
return b(
|
|
12103
|
-
}, ae.isProfiler = function(
|
|
12104
|
-
return b(
|
|
12105
|
-
}, ae.isStrictMode = function(
|
|
12106
|
-
return b(
|
|
12107
|
-
}, ae.isSuspense = function(
|
|
12108
|
-
return b(
|
|
12109
|
-
}, ae.isValidElementType = function(
|
|
12110
|
-
return typeof
|
|
12082
|
+
function x(C) {
|
|
12083
|
+
return b(C) === l;
|
|
12084
|
+
}
|
|
12085
|
+
return ae.AsyncMode = d, ae.ConcurrentMode = l, ae.ContextConsumer = c, ae.ContextProvider = i, ae.Element = t, ae.ForwardRef = u, ae.Fragment = s, ae.Lazy = g, ae.Memo = p, ae.Portal = n, ae.Profiler = r, ae.StrictMode = o, ae.Suspense = h, ae.isAsyncMode = function(C) {
|
|
12086
|
+
return x(C) || b(C) === d;
|
|
12087
|
+
}, ae.isConcurrentMode = x, ae.isContextConsumer = function(C) {
|
|
12088
|
+
return b(C) === c;
|
|
12089
|
+
}, ae.isContextProvider = function(C) {
|
|
12090
|
+
return b(C) === i;
|
|
12091
|
+
}, ae.isElement = function(C) {
|
|
12092
|
+
return typeof C == "object" && C !== null && C.$$typeof === t;
|
|
12093
|
+
}, ae.isForwardRef = function(C) {
|
|
12094
|
+
return b(C) === u;
|
|
12095
|
+
}, ae.isFragment = function(C) {
|
|
12096
|
+
return b(C) === s;
|
|
12097
|
+
}, ae.isLazy = function(C) {
|
|
12098
|
+
return b(C) === g;
|
|
12099
|
+
}, ae.isMemo = function(C) {
|
|
12100
|
+
return b(C) === p;
|
|
12101
|
+
}, ae.isPortal = function(C) {
|
|
12102
|
+
return b(C) === n;
|
|
12103
|
+
}, ae.isProfiler = function(C) {
|
|
12104
|
+
return b(C) === r;
|
|
12105
|
+
}, ae.isStrictMode = function(C) {
|
|
12106
|
+
return b(C) === o;
|
|
12107
|
+
}, ae.isSuspense = function(C) {
|
|
12108
|
+
return b(C) === h;
|
|
12109
|
+
}, ae.isValidElementType = function(C) {
|
|
12110
|
+
return typeof C == "string" || typeof C == "function" || C === s || C === l || C === r || C === o || C === h || C === m || typeof C == "object" && C !== null && (C.$$typeof === g || C.$$typeof === p || C.$$typeof === i || C.$$typeof === c || C.$$typeof === u || C.$$typeof === w || C.$$typeof === v || C.$$typeof === N || C.$$typeof === A);
|
|
12111
12111
|
}, ae.typeOf = b, ae;
|
|
12112
12112
|
}
|
|
12113
12113
|
var se = {};
|
|
12114
12114
|
var Bs;
|
|
12115
12115
|
function Vp() {
|
|
12116
12116
|
return Bs || (Bs = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
12117
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = 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, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117,
|
|
12117
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = 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, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
|
|
12118
12118
|
function b(L) {
|
|
12119
12119
|
return typeof L == "string" || typeof L == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
12120
|
-
L === s || L === l || L === r || L === o || L === h || L === m || typeof L == "object" && L !== null && (L.$$typeof === g || L.$$typeof === p || L.$$typeof === i || L.$$typeof === c || L.$$typeof === u || L.$$typeof === w || L.$$typeof ===
|
|
12120
|
+
L === s || L === l || L === r || L === o || L === h || L === m || typeof L == "object" && L !== null && (L.$$typeof === g || L.$$typeof === p || L.$$typeof === i || L.$$typeof === c || L.$$typeof === u || L.$$typeof === w || L.$$typeof === v || L.$$typeof === N || L.$$typeof === A);
|
|
12121
12121
|
}
|
|
12122
12122
|
function x(L) {
|
|
12123
12123
|
if (typeof L == "object" && L !== null) {
|
|
@@ -12151,7 +12151,7 @@ function Vp() {
|
|
|
12151
12151
|
}
|
|
12152
12152
|
}
|
|
12153
12153
|
}
|
|
12154
|
-
var
|
|
12154
|
+
var C = d, E = l, P = c, Q = i, W = t, G = u, B = s, ee = g, le = p, M = n, U = r, I = o, D = h, T = !1;
|
|
12155
12155
|
function z(L) {
|
|
12156
12156
|
return T || (T = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(L) || x(L) === d;
|
|
12157
12157
|
}
|
|
@@ -12191,7 +12191,7 @@ function Vp() {
|
|
|
12191
12191
|
function ie(L) {
|
|
12192
12192
|
return x(L) === h;
|
|
12193
12193
|
}
|
|
12194
|
-
se.AsyncMode =
|
|
12194
|
+
se.AsyncMode = C, se.ConcurrentMode = E, se.ContextConsumer = P, se.ContextProvider = Q, se.Element = W, se.ForwardRef = G, se.Fragment = B, se.Lazy = ee, se.Memo = le, se.Portal = M, se.Profiler = U, se.StrictMode = I, se.Suspense = D, se.isAsyncMode = z, se.isConcurrentMode = y, se.isContextConsumer = S, se.isContextProvider = R, se.isElement = j, se.isForwardRef = O, se.isFragment = H, se.isLazy = V, se.isMemo = F, se.isPortal = Z, se.isProfiler = X, se.isStrictMode = $, se.isSuspense = ie, se.isValidElementType = b, se.typeOf = x;
|
|
12195
12195
|
})()), se;
|
|
12196
12196
|
}
|
|
12197
12197
|
var Os;
|
|
@@ -12329,18 +12329,18 @@ function Wp() {
|
|
|
12329
12329
|
return S;
|
|
12330
12330
|
}
|
|
12331
12331
|
var m = "<<anonymous>>", p = {
|
|
12332
|
-
array:
|
|
12333
|
-
bigint:
|
|
12334
|
-
bool:
|
|
12335
|
-
func:
|
|
12336
|
-
number:
|
|
12337
|
-
object:
|
|
12338
|
-
string:
|
|
12339
|
-
symbol:
|
|
12332
|
+
array: v("array"),
|
|
12333
|
+
bigint: v("bigint"),
|
|
12334
|
+
bool: v("boolean"),
|
|
12335
|
+
func: v("function"),
|
|
12336
|
+
number: v("number"),
|
|
12337
|
+
object: v("object"),
|
|
12338
|
+
string: v("string"),
|
|
12339
|
+
symbol: v("symbol"),
|
|
12340
12340
|
any: N(),
|
|
12341
12341
|
arrayOf: b,
|
|
12342
12342
|
element: x(),
|
|
12343
|
-
elementType:
|
|
12343
|
+
elementType: C(),
|
|
12344
12344
|
instanceOf: E,
|
|
12345
12345
|
node: G(),
|
|
12346
12346
|
objectOf: Q,
|
|
@@ -12379,7 +12379,7 @@ function Wp() {
|
|
|
12379
12379
|
var O = j.bind(null, !1);
|
|
12380
12380
|
return O.isRequired = j.bind(null, !0), O;
|
|
12381
12381
|
}
|
|
12382
|
-
function
|
|
12382
|
+
function v(y) {
|
|
12383
12383
|
function S(R, j, O, H, V, F) {
|
|
12384
12384
|
var Z = R[j], X = I(Z);
|
|
12385
12385
|
if (X !== y) {
|
|
@@ -12425,7 +12425,7 @@ function Wp() {
|
|
|
12425
12425
|
}
|
|
12426
12426
|
return w(y);
|
|
12427
12427
|
}
|
|
12428
|
-
function
|
|
12428
|
+
function C() {
|
|
12429
12429
|
function y(S, R, j, O, H) {
|
|
12430
12430
|
var V = S[R];
|
|
12431
12431
|
if (!e.isValidElementType(V)) {
|
|
@@ -12858,13 +12858,13 @@ function t9() {
|
|
|
12858
12858
|
function p(g, A, w) {
|
|
12859
12859
|
if (typeof A != "string") {
|
|
12860
12860
|
if (m) {
|
|
12861
|
-
var
|
|
12862
|
-
|
|
12861
|
+
var v = h(A);
|
|
12862
|
+
v && v !== m && p(g, v, w);
|
|
12863
12863
|
}
|
|
12864
12864
|
var N = d(A);
|
|
12865
12865
|
l && (N = N.concat(l(A)));
|
|
12866
|
-
for (var b = i(g), x = i(A),
|
|
12867
|
-
var E = N[
|
|
12866
|
+
for (var b = i(g), x = i(A), C = 0; C < N.length; ++C) {
|
|
12867
|
+
var E = N[C];
|
|
12868
12868
|
if (!n[E] && !(w && w[E]) && !(x && x[E]) && !(b && b[E])) {
|
|
12869
12869
|
var P = u(A, E);
|
|
12870
12870
|
try {
|
|
@@ -12927,7 +12927,7 @@ function i9(e, t) {
|
|
|
12927
12927
|
h.observers[m](h);
|
|
12928
12928
|
delete window[t.callbackName];
|
|
12929
12929
|
}, l.componentDidMount = function() {
|
|
12930
|
-
var h = this, m = this.setupScriptURL(), p = this.asyncScriptLoaderGetScriptLoaderID(), g = t, A = g.globalName, w = g.callbackName,
|
|
12930
|
+
var h = this, m = this.setupScriptURL(), p = this.asyncScriptLoaderGetScriptLoaderID(), g = t, A = g.globalName, w = g.callbackName, v = g.scriptId;
|
|
12931
12931
|
if (A && typeof window[A] < "u" && (Pe[m] = {
|
|
12932
12932
|
loaded: !0,
|
|
12933
12933
|
observers: {}
|
|
@@ -12951,9 +12951,9 @@ function i9(e, t) {
|
|
|
12951
12951
|
};
|
|
12952
12952
|
var x = document.createElement("script");
|
|
12953
12953
|
x.src = m, x.async = !0;
|
|
12954
|
-
for (var
|
|
12955
|
-
x.setAttribute(
|
|
12956
|
-
|
|
12954
|
+
for (var C in t.attributes)
|
|
12955
|
+
x.setAttribute(C, t.attributes[C]);
|
|
12956
|
+
v && (x.id = v);
|
|
12957
12957
|
var E = function(Q) {
|
|
12958
12958
|
if (Pe[m]) {
|
|
12959
12959
|
var W = Pe[m], G = W.observers;
|
|
@@ -13105,8 +13105,8 @@ const Go = i9(l9, {
|
|
|
13105
13105
|
}, 3e3);
|
|
13106
13106
|
else
|
|
13107
13107
|
throw new Error(N.message || "Error al reportar comentario");
|
|
13108
|
-
} catch (
|
|
13109
|
-
console.error("Error reporting comment:",
|
|
13108
|
+
} catch (v) {
|
|
13109
|
+
console.error("Error reporting comment:", v), h(v.message || "Error al reportar comentario"), c("form");
|
|
13110
13110
|
}
|
|
13111
13111
|
}
|
|
13112
13112
|
}, w = () => {
|
|
@@ -13117,21 +13117,21 @@ const Go = i9(l9, {
|
|
|
13117
13117
|
/* @__PURE__ */ a("h2", { className: ge.title, children: "Reportar Abuso" }),
|
|
13118
13118
|
i === "loading" && /* @__PURE__ */ a("div", { className: ge.loadingContainer, children: /* @__PURE__ */ a(et, {}) }),
|
|
13119
13119
|
i === "form" || i === "loading" ? /* @__PURE__ */ f(J, { children: [
|
|
13120
|
-
/* @__PURE__ */ a("div", { className: ge.optionsContainer, children: g.map((
|
|
13120
|
+
/* @__PURE__ */ a("div", { className: ge.optionsContainer, children: g.map((v) => /* @__PURE__ */ f("label", { className: ge.option, children: [
|
|
13121
13121
|
/* @__PURE__ */ a(
|
|
13122
13122
|
"input",
|
|
13123
13123
|
{
|
|
13124
13124
|
type: "radio",
|
|
13125
13125
|
name: "reportReason",
|
|
13126
|
-
value:
|
|
13127
|
-
checked: d ===
|
|
13126
|
+
value: v.id,
|
|
13127
|
+
checked: d === v.id,
|
|
13128
13128
|
onChange: (N) => l(N.target.value),
|
|
13129
13129
|
className: ge.radioInput
|
|
13130
13130
|
}
|
|
13131
13131
|
),
|
|
13132
13132
|
/* @__PURE__ */ a("span", { className: ge.radioCustom }),
|
|
13133
|
-
/* @__PURE__ */ a("span", { className: ge.optionLabel, children:
|
|
13134
|
-
] },
|
|
13133
|
+
/* @__PURE__ */ a("span", { className: ge.optionLabel, children: v.label })
|
|
13134
|
+
] }, v.id)) }),
|
|
13135
13135
|
u && /* @__PURE__ */ a("div", { className: ge.errorMessage, children: u }),
|
|
13136
13136
|
/* @__PURE__ */ a(
|
|
13137
13137
|
Go,
|
|
@@ -13139,7 +13139,7 @@ const Go = i9(l9, {
|
|
|
13139
13139
|
sitekey: r,
|
|
13140
13140
|
theme: "light",
|
|
13141
13141
|
size: "normal",
|
|
13142
|
-
onChange: (
|
|
13142
|
+
onChange: (v) => p(v ?? ""),
|
|
13143
13143
|
onExpired: () => p("")
|
|
13144
13144
|
}
|
|
13145
13145
|
),
|
|
@@ -13285,10 +13285,10 @@ async function D9({
|
|
|
13285
13285
|
state: i
|
|
13286
13286
|
});
|
|
13287
13287
|
o && w.append("id", o), r && w.append("lastid", r);
|
|
13288
|
-
const
|
|
13288
|
+
const v = `${A}${m}/newcomments/get?${w.toString()}`;
|
|
13289
13289
|
try {
|
|
13290
|
-
console.log("Fetching comments from:",
|
|
13291
|
-
const { data: N } = await oe.get(
|
|
13290
|
+
console.log("Fetching comments from:", v);
|
|
13291
|
+
const { data: N } = await oe.get(v, {
|
|
13292
13292
|
headers: {
|
|
13293
13293
|
"x-api-token": c,
|
|
13294
13294
|
"Cache-Control": "max-age=0, no-cache, no-store, must-revalidate",
|
|
@@ -13505,8 +13505,8 @@ const M9 = (e, t) => {
|
|
|
13505
13505
|
let p = null;
|
|
13506
13506
|
try {
|
|
13507
13507
|
p = await m.json();
|
|
13508
|
-
} catch (
|
|
13509
|
-
console.error("Error parsing JSON response:",
|
|
13508
|
+
} catch (v) {
|
|
13509
|
+
console.error("Error parsing JSON response:", v);
|
|
13510
13510
|
}
|
|
13511
13511
|
if (!m.ok)
|
|
13512
13512
|
throw new Error(
|
|
@@ -13602,8 +13602,8 @@ const M9 = (e, t) => {
|
|
|
13602
13602
|
] }) });
|
|
13603
13603
|
}, G9 = ({ comment: e, replyingTo: t, path: n, user: s, handleReplyingTo: o, onFlag: r, API_ENV: i }) => {
|
|
13604
13604
|
const c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [d, l] = K(c), [u, h] = ke.useState(!1), { PUBLIC_PUBLICATION_ID: m, PUBLIC_X_SECURITY_TOKEN: p } = i, g = e.text, A = ke.useRef(null);
|
|
13605
|
-
let w = `${Xe.firstname} ${Xe.lastname ?? ""}`,
|
|
13606
|
-
e.user && (w = `${e.user.firstname} ${e.user.lastname ?? ""}`,
|
|
13605
|
+
let w = `${Xe.firstname} ${Xe.lastname ?? ""}`, v = Xe.username;
|
|
13606
|
+
e.user && (w = `${e.user.firstname} ${e.user.lastname ?? ""}`, v = e.user.username);
|
|
13607
13607
|
const N = (b) => {
|
|
13608
13608
|
l({ morereply: d.morereply, reply: [b, ...d.reply] });
|
|
13609
13609
|
};
|
|
@@ -13617,7 +13617,7 @@ const M9 = (e, t) => {
|
|
|
13617
13617
|
/* @__PURE__ */ f("div", { style: { flex: 1 }, children: [
|
|
13618
13618
|
/* @__PURE__ */ a(Ho, { username: w, date: e.date.time, DATE_CONFIG: i }),
|
|
13619
13619
|
/* @__PURE__ */ a("p", { className: "comment-text", children: g }),
|
|
13620
|
-
s?.username.toLowerCase() !==
|
|
13620
|
+
s?.username.toLowerCase() !== v.toLowerCase() && // No puedes responder ni reportar tus respuestas
|
|
13621
13621
|
/* @__PURE__ */ a(
|
|
13622
13622
|
Vo,
|
|
13623
13623
|
{
|
|
@@ -13657,7 +13657,7 @@ const M9 = (e, t) => {
|
|
|
13657
13657
|
const b = d.reply[d.reply.length - 1]?.id;
|
|
13658
13658
|
h(!0);
|
|
13659
13659
|
try {
|
|
13660
|
-
const
|
|
13660
|
+
const C = await Qa({
|
|
13661
13661
|
publication: m ?? "",
|
|
13662
13662
|
path: n ?? "",
|
|
13663
13663
|
size: 2,
|
|
@@ -13668,7 +13668,7 @@ const M9 = (e, t) => {
|
|
|
13668
13668
|
apiToken: p ?? "",
|
|
13669
13669
|
API_ENV: i
|
|
13670
13670
|
});
|
|
13671
|
-
h(!1), l({ morereply:
|
|
13671
|
+
h(!1), l({ morereply: C.morecomment, reply: [...d.reply, ...C.comments] });
|
|
13672
13672
|
} catch (x) {
|
|
13673
13673
|
throw h(!1), new Error(`Error al obtener comentarios: ${x}`);
|
|
13674
13674
|
}
|
|
@@ -13740,7 +13740,7 @@ const M9 = (e, t) => {
|
|
|
13740
13740
|
}) => {
|
|
13741
13741
|
const { PUBLIC_PUBLICATION_ID: r, PUBLIC_X_SECURITY_TOKEN: i } = o, c = r ?? "", d = t.replaceAll("/", "|"), [l, u] = K(
|
|
13742
13742
|
void 0
|
|
13743
|
-
), [h, m] = K(""), { comments: p, setComments: g } = M9(d, o), [A, w] = ke.useState(!1),
|
|
13743
|
+
), [h, m] = K(""), { comments: p, setComments: g } = M9(d, o), [A, w] = ke.useState(!1), v = ke.useRef(null), N = (W) => {
|
|
13744
13744
|
m(h === W ? "" : W);
|
|
13745
13745
|
}, b = (W) => {
|
|
13746
13746
|
g(
|
|
@@ -13751,7 +13751,7 @@ const M9 = (e, t) => {
|
|
|
13751
13751
|
);
|
|
13752
13752
|
}, x = (W) => {
|
|
13753
13753
|
u(W);
|
|
13754
|
-
},
|
|
13754
|
+
}, C = async () => {
|
|
13755
13755
|
if (!p || !p.morecomment || p.comments.length === 0) return;
|
|
13756
13756
|
const W = p.comments[p.comments.length - 1];
|
|
13757
13757
|
if (!W) return;
|
|
@@ -13791,7 +13791,7 @@ const M9 = (e, t) => {
|
|
|
13791
13791
|
/* @__PURE__ */ a(
|
|
13792
13792
|
H9,
|
|
13793
13793
|
{
|
|
13794
|
-
commentRef:
|
|
13794
|
+
commentRef: v,
|
|
13795
13795
|
user: n,
|
|
13796
13796
|
addComment: b,
|
|
13797
13797
|
path: d,
|
|
@@ -13826,7 +13826,7 @@ const M9 = (e, t) => {
|
|
|
13826
13826
|
"button",
|
|
13827
13827
|
{
|
|
13828
13828
|
className: "comment-replies-button",
|
|
13829
|
-
onClick:
|
|
13829
|
+
onClick: C,
|
|
13830
13830
|
children: "Más"
|
|
13831
13831
|
}
|
|
13832
13832
|
)
|
|
@@ -13893,10 +13893,10 @@ const M9 = (e, t) => {
|
|
|
13893
13893
|
function V9({ goToLogin: e, handleGoogleLogin: t, API_ENV: n }) {
|
|
13894
13894
|
const [s, o] = K({}), [r, i] = K(!1), [c, d] = K(!1), [l, u] = K(null), [h, m] = K(
|
|
13895
13895
|
"register"
|
|
13896
|
-
), p = (
|
|
13897
|
-
o((b) => ({ ...b, [
|
|
13898
|
-
}, g = async (
|
|
13899
|
-
|
|
13896
|
+
), p = (v, N) => {
|
|
13897
|
+
o((b) => ({ ...b, [v]: N }));
|
|
13898
|
+
}, g = async (v) => {
|
|
13899
|
+
v.preventDefault(), u(null), d(!0);
|
|
13900
13900
|
try {
|
|
13901
13901
|
const N = Object.keys(Vs).filter((Q) => !["username", "password", "confirmPassword"].includes(Q)).map((Q) => ({ Name: Q, Value: s[Q] }));
|
|
13902
13902
|
if (N.some((Q) => {
|
|
@@ -13914,8 +13914,8 @@ function V9({ goToLogin: e, handleGoogleLogin: t, API_ENV: n }) {
|
|
|
13914
13914
|
u("La contraseña no es válida");
|
|
13915
13915
|
return;
|
|
13916
13916
|
}
|
|
13917
|
-
const
|
|
13918
|
-
N.push({ Name: "updated_at", Value: String(
|
|
13917
|
+
const C = Math.floor(Date.now() / 1e3);
|
|
13918
|
+
N.push({ Name: "updated_at", Value: String(C) });
|
|
13919
13919
|
const E = n.PUBLIC_ENV === "local" ? "token" : await Ko(
|
|
13920
13920
|
"comment_register",
|
|
13921
13921
|
n.CAPTCHA_KEY ?? ""
|
|
@@ -13949,8 +13949,8 @@ function V9({ goToLogin: e, handleGoogleLogin: t, API_ENV: n }) {
|
|
|
13949
13949
|
} finally {
|
|
13950
13950
|
d(!1);
|
|
13951
13951
|
}
|
|
13952
|
-
}, A = async (
|
|
13953
|
-
if (
|
|
13952
|
+
}, A = async (v) => {
|
|
13953
|
+
if (v.preventDefault(), !s.confirmationCode) {
|
|
13954
13954
|
u("Debes ingresar el código de verificación");
|
|
13955
13955
|
return;
|
|
13956
13956
|
}
|
|
@@ -13996,34 +13996,34 @@ function V9({ goToLogin: e, handleGoogleLogin: t, API_ENV: n }) {
|
|
|
13996
13996
|
className: k.form,
|
|
13997
13997
|
"data-error": l ? "true" : "false",
|
|
13998
13998
|
children: [
|
|
13999
|
-
/* @__PURE__ */ a("ul", { className: k.formUl, children: Object.entries(Vs).map(([
|
|
13999
|
+
/* @__PURE__ */ a("ul", { className: k.formUl, children: Object.entries(Vs).map(([v, { label: N }]) => /* @__PURE__ */ f("div", { className: k.field, children: [
|
|
14000
14000
|
/* @__PURE__ */ a("label", { className: k.label, children: N }),
|
|
14001
14001
|
/* @__PURE__ */ a(
|
|
14002
14002
|
"input",
|
|
14003
14003
|
{
|
|
14004
|
-
type:
|
|
14005
|
-
name:
|
|
14006
|
-
value: s[
|
|
14007
|
-
onChange: (b) => p(
|
|
14004
|
+
type: v.toLowerCase().includes("password") ? r ? "text" : "password" : v === "birthdate" ? "date" : v === "email" ? "email" : v === "phone_number" ? "tel" : "text",
|
|
14005
|
+
name: v,
|
|
14006
|
+
value: s[v] || "",
|
|
14007
|
+
onChange: (b) => p(v, b.target.value),
|
|
14008
14008
|
className: k.input,
|
|
14009
14009
|
placeholder: ""
|
|
14010
14010
|
}
|
|
14011
14011
|
),
|
|
14012
|
-
|
|
14013
|
-
const
|
|
14012
|
+
v === "password" && /* @__PURE__ */ a("div", { className: k.passwordChecker, children: En.map((b, x) => {
|
|
14013
|
+
const C = b.test(w);
|
|
14014
14014
|
return /* @__PURE__ */ f(
|
|
14015
14015
|
"div",
|
|
14016
14016
|
{
|
|
14017
|
-
className:
|
|
14017
|
+
className: C ? k.valid : k.invalid,
|
|
14018
14018
|
children: [
|
|
14019
|
-
/* @__PURE__ */ a("div", { children:
|
|
14019
|
+
/* @__PURE__ */ a("div", { children: C ? "✔" : "○" }),
|
|
14020
14020
|
/* @__PURE__ */ a("div", { children: b.label })
|
|
14021
14021
|
]
|
|
14022
14022
|
},
|
|
14023
14023
|
x
|
|
14024
14024
|
);
|
|
14025
14025
|
}) }),
|
|
14026
|
-
|
|
14026
|
+
v === "confirmPassword" && /* @__PURE__ */ f("div", { className: k.checkboxRow, children: [
|
|
14027
14027
|
/* @__PURE__ */ a(
|
|
14028
14028
|
"input",
|
|
14029
14029
|
{
|
|
@@ -14042,7 +14042,7 @@ function V9({ goToLogin: e, handleGoogleLogin: t, API_ENV: n }) {
|
|
|
14042
14042
|
}
|
|
14043
14043
|
)
|
|
14044
14044
|
] })
|
|
14045
|
-
] },
|
|
14045
|
+
] }, v)) }),
|
|
14046
14046
|
l && /* @__PURE__ */ a("p", { className: k.error, children: l }),
|
|
14047
14047
|
/* @__PURE__ */ f("p", { className: k.terms, children: [
|
|
14048
14048
|
"Al continuar, confirmo que he leído y aceptado los",
|
|
@@ -14069,7 +14069,7 @@ function V9({ goToLogin: e, handleGoogleLogin: t, API_ENV: n }) {
|
|
|
14069
14069
|
type: "text",
|
|
14070
14070
|
name: "confirmationCode",
|
|
14071
14071
|
value: s.confirmationCode || "",
|
|
14072
|
-
onChange: (
|
|
14072
|
+
onChange: (v) => p("confirmationCode", v.target.value),
|
|
14073
14073
|
className: k.input,
|
|
14074
14074
|
required: !0
|
|
14075
14075
|
}
|
|
@@ -14122,16 +14122,16 @@ function F9({
|
|
|
14122
14122
|
handleGoogleLogin: s,
|
|
14123
14123
|
API_ENV: o
|
|
14124
14124
|
}) {
|
|
14125
|
-
const [r, i] = K("login"), [c, d] = K(""), [l, u] = K(""), [h, m] = K(""), [p, g] = K(""), [A, w] = K(""), [
|
|
14125
|
+
const [r, i] = K("login"), [c, d] = K(""), [l, u] = K(""), [h, m] = K(""), [p, g] = K(""), [A, w] = K(""), [v, N] = K(!1), [b, x] = K(!1), [C, E] = K(null);
|
|
14126
14126
|
return /* @__PURE__ */ f(J, { children: [
|
|
14127
14127
|
r === "login" && /* @__PURE__ */ a(
|
|
14128
14128
|
$9,
|
|
14129
14129
|
{
|
|
14130
14130
|
email: c,
|
|
14131
14131
|
password: l,
|
|
14132
|
-
showPassword:
|
|
14132
|
+
showPassword: v,
|
|
14133
14133
|
loading: b,
|
|
14134
|
-
error:
|
|
14134
|
+
error: C,
|
|
14135
14135
|
setEmail: d,
|
|
14136
14136
|
setPassword: u,
|
|
14137
14137
|
setShowPassword: N,
|
|
@@ -14172,7 +14172,7 @@ function F9({
|
|
|
14172
14172
|
email: c,
|
|
14173
14173
|
setEmail: d,
|
|
14174
14174
|
loading: b,
|
|
14175
|
-
error:
|
|
14175
|
+
error: C,
|
|
14176
14176
|
onSubmit: async (G) => {
|
|
14177
14177
|
if (!b) {
|
|
14178
14178
|
G.preventDefault(), E(null), x(!0);
|
|
@@ -14206,9 +14206,9 @@ function F9({
|
|
|
14206
14206
|
confirmationCode: h,
|
|
14207
14207
|
newPassword: p,
|
|
14208
14208
|
confirmNewPassword: A,
|
|
14209
|
-
showPassword:
|
|
14209
|
+
showPassword: v,
|
|
14210
14210
|
loading: b,
|
|
14211
|
-
error:
|
|
14211
|
+
error: C,
|
|
14212
14212
|
setConfirmationCode: m,
|
|
14213
14213
|
setNewPassword: g,
|
|
14214
14214
|
setConfirmNewPassword: w,
|