sass-template-common 0.1.81 → 0.1.84
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.
|
@@ -1021,6 +1021,8 @@ export declare type LibraryConfig = {
|
|
|
1021
1021
|
COMMENTS_CAPTCHA_API_KEY?: string;
|
|
1022
1022
|
CAPTCHA_KEY_V2?: string;
|
|
1023
1023
|
SHOW_TAG_BY_SECTION?: boolean;
|
|
1024
|
+
SHOW_NEWS_MORE_NEWS?: boolean;
|
|
1025
|
+
SHOW_NEWS_RELATED_NEWS?: boolean;
|
|
1024
1026
|
};
|
|
1025
1027
|
|
|
1026
1028
|
export declare interface Link {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as a, jsxs as h, Fragment as
|
|
1
|
+
import { jsx as a, jsxs as h, Fragment as Y } from "react/jsx-runtime";
|
|
2
2
|
import * as qa from "react";
|
|
3
|
-
import xe, { useState as
|
|
3
|
+
import xe, { useState as K, useRef as Or, useCallback as he, useEffect as Me, createElement as st, forwardRef as Pr, Fragment as pn, useMemo as Mo, Component as jo } from "react";
|
|
4
4
|
let ta = {
|
|
5
5
|
PUBLIC_API_HOST: "https://dev-saas.cms-medios.com",
|
|
6
6
|
PUBLIC_API_FRONT: "https://dev-lahora.cms-medios.com",
|
|
@@ -49,7 +49,9 @@ let ta = {
|
|
|
49
49
|
/// originaly => COMMENTS_CAPTCHA_API_KEY
|
|
50
50
|
CAPTCHA_KEY_V2: "",
|
|
51
51
|
/// originaly => NEXT_PUBLIC_CAPTCHA_KEY_V2
|
|
52
|
-
SHOW_TAG_BY_SECTION: !1
|
|
52
|
+
SHOW_TAG_BY_SECTION: !1,
|
|
53
|
+
SHOW_NEWS_MORE_NEWS: !0,
|
|
54
|
+
SHOW_NEWS_RELATED_NEWS: !0
|
|
53
55
|
};
|
|
54
56
|
function g9(e = {}) {
|
|
55
57
|
ta = { ...ta, ...e };
|
|
@@ -84,7 +86,7 @@ const Qo = () => {
|
|
|
84
86
|
o[s] = s;
|
|
85
87
|
}), o;
|
|
86
88
|
}, [t]), { ANALYTICS_ga4: r } = J();
|
|
87
|
-
return r && /* @__PURE__ */ h(
|
|
89
|
+
return r && /* @__PURE__ */ h(Y, { children: [
|
|
88
90
|
/* @__PURE__ */ a("script", { defer: !0, src: "https://www.googletagmanager.com/gtag/js?" + e }),
|
|
89
91
|
/* @__PURE__ */ a(
|
|
90
92
|
"script",
|
|
@@ -107,7 +109,7 @@ const Qo = () => {
|
|
|
107
109
|
] });
|
|
108
110
|
}, Ho = () => {
|
|
109
111
|
const { ANALYTICS_gtm: e } = J();
|
|
110
|
-
return e && /* @__PURE__ */ h(
|
|
112
|
+
return e && /* @__PURE__ */ h(Y, { children: [
|
|
111
113
|
/* @__PURE__ */ a(
|
|
112
114
|
"script",
|
|
113
115
|
{
|
|
@@ -902,7 +904,7 @@ const An = () => {
|
|
|
902
904
|
const t = e.banners.find((s) => s.key === e.name);
|
|
903
905
|
if (!t || !t.show) return null;
|
|
904
906
|
const n = ga(t.value || "", e.replaces), r = /<script([^>]*)>([\s\S]*?)<\/script\s*>/gi, o = [...n.matchAll(r)];
|
|
905
|
-
return /* @__PURE__ */ a(
|
|
907
|
+
return /* @__PURE__ */ a(Y, { children: o.map((s, i) => {
|
|
906
908
|
const c = s[1] || "", d = s[2]?.trim() || "", l = c.match(/src=["']([^"']+)["']/i);
|
|
907
909
|
if (l) {
|
|
908
910
|
const u = l[1];
|
|
@@ -921,7 +923,7 @@ const An = () => {
|
|
|
921
923
|
const t = e.banners.find((o) => o.key === e.name);
|
|
922
924
|
if (!t || !t.show) return null;
|
|
923
925
|
const r = ga(t.value || "", e.replaces).split(/(<script[\s\S]*?<\/script\s*>)/gi);
|
|
924
|
-
return /* @__PURE__ */ a(
|
|
926
|
+
return /* @__PURE__ */ a(Y, { children: r.map((o, s) => {
|
|
925
927
|
const i = o.match(
|
|
926
928
|
/<script([^>]*)>([\s\S]*?)<\/script\s*>/i
|
|
927
929
|
);
|
|
@@ -961,7 +963,7 @@ function w9(e) {
|
|
|
961
963
|
const ws = () => {
|
|
962
964
|
const { PUBLIC_ASSETS_URL: e } = J();
|
|
963
965
|
return e && e !== "false" && /* @__PURE__ */ a("link", { rel: "preconnect", href: e, crossOrigin: "anonymous" });
|
|
964
|
-
}, { PUBLIC_ASSETS_URL: Rn } = J(), ys = Rn && Rn !== "false" ? Rn : "", Da = ({ images: e }) => /* @__PURE__ */ a(
|
|
966
|
+
}, { PUBLIC_ASSETS_URL: Rn } = J(), ys = Rn && Rn !== "false" ? Rn : "", Da = ({ images: e }) => /* @__PURE__ */ a(Y, { children: e.map(
|
|
965
967
|
(t, n) => t.href !== "" && /* @__PURE__ */ a(
|
|
966
968
|
"link",
|
|
967
969
|
{
|
|
@@ -1229,7 +1231,7 @@ const xs = async ({
|
|
|
1229
1231
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
1230
1232
|
}
|
|
1231
1233
|
`;
|
|
1232
|
-
return /* @__PURE__ */ a(
|
|
1234
|
+
return /* @__PURE__ */ a(Y, { children: e.useS3Font ? /* @__PURE__ */ h(Y, { children: [
|
|
1233
1235
|
/* @__PURE__ */ a(
|
|
1234
1236
|
"link",
|
|
1235
1237
|
{
|
|
@@ -3809,7 +3811,7 @@ async function V9({
|
|
|
3809
3811
|
currentNew: l,
|
|
3810
3812
|
internalPath: m
|
|
3811
3813
|
});
|
|
3812
|
-
return /* @__PURE__ */ h(
|
|
3814
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
3813
3815
|
/* @__PURE__ */ a("meta", { charSet: "utf-8" }),
|
|
3814
3816
|
/* @__PURE__ */ a("meta", { name: "viewport", content: "width=device-width" }),
|
|
3815
3817
|
b,
|
|
@@ -3899,7 +3901,7 @@ const F9 = ({
|
|
|
3899
3901
|
currentNew: c,
|
|
3900
3902
|
internalPath: i
|
|
3901
3903
|
}), p = l.before.active, g = l.after.active, A = p ? l.before.customData ? l.before.customData : f : void 0, y = g ? l.after.customData ? l.after.customData : f : void 0;
|
|
3902
|
-
return /* @__PURE__ */ h(
|
|
3904
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
3903
3905
|
/* @__PURE__ */ a(Qr, { name: "bodybefore", banners: n, replaces: A }),
|
|
3904
3906
|
e,
|
|
3905
3907
|
/* @__PURE__ */ a(Vo, {}),
|
|
@@ -3950,7 +3952,7 @@ function wc({
|
|
|
3950
3952
|
enableDrag: s,
|
|
3951
3953
|
onIndexChange: i
|
|
3952
3954
|
}) {
|
|
3953
|
-
const [c, d] =
|
|
3955
|
+
const [c, d] = K(!1), [l, u] = K(0), [m, f] = K(0), [p, g] = K(0), [A, y] = K(0), [C, S] = K(null), _ = Or(null), [T, b] = K(1), x = he(() => {
|
|
3954
3956
|
if (o) return 1;
|
|
3955
3957
|
const w = _.current?.offsetWidth || window.innerWidth, N = n + r, q = Math.floor(w / N);
|
|
3956
3958
|
return Math.max(1, q);
|
|
@@ -4087,7 +4089,7 @@ function $9(e) {
|
|
|
4087
4089
|
fullPageWidth: i = !1,
|
|
4088
4090
|
pagination: c = !1,
|
|
4089
4091
|
enableDrag: d = !0
|
|
4090
|
-
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [u, m] =
|
|
4092
|
+
} = e, l = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [u, m] = K(0), [f, p] = K(!1);
|
|
4091
4093
|
Me(() => {
|
|
4092
4094
|
p(!0);
|
|
4093
4095
|
const G = document.getElementById("ssr-dummy_" + n);
|
|
@@ -4583,7 +4585,7 @@ const Tt = (e) => {
|
|
|
4583
4585
|
) : e.main?.title?.section
|
|
4584
4586
|
),
|
|
4585
4587
|
e.config?.showsubtitle && /* @__PURE__ */ a(d, {}),
|
|
4586
|
-
(e?.config?.showtime || e.config?.showauthor) && /* @__PURE__ */ a(
|
|
4588
|
+
(e?.config?.showtime || e.config?.showauthor) && /* @__PURE__ */ a(Y, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ a("h3", { children: /* @__PURE__ */ a(
|
|
4587
4589
|
L,
|
|
4588
4590
|
{
|
|
4589
4591
|
"aria-label": c(),
|
|
@@ -4642,7 +4644,7 @@ const Tt = (e) => {
|
|
|
4642
4644
|
src: o[0]?.url ? o[0]?.url : void 0
|
|
4643
4645
|
}
|
|
4644
4646
|
),
|
|
4645
|
-
t && /* @__PURE__ */ h(
|
|
4647
|
+
t && /* @__PURE__ */ h(Y, { children: [
|
|
4646
4648
|
/* @__PURE__ */ a(
|
|
4647
4649
|
"div",
|
|
4648
4650
|
{
|
|
@@ -4700,7 +4702,7 @@ const Tt = (e) => {
|
|
|
4700
4702
|
src: o[0]?.url ? o[0]?.url : ""
|
|
4701
4703
|
}
|
|
4702
4704
|
),
|
|
4703
|
-
t && /* @__PURE__ */ h(
|
|
4705
|
+
t && /* @__PURE__ */ h(Y, { children: [
|
|
4704
4706
|
/* @__PURE__ */ a(
|
|
4705
4707
|
"div",
|
|
4706
4708
|
{
|
|
@@ -4747,7 +4749,7 @@ const Tt = (e) => {
|
|
|
4747
4749
|
isVideo: n = !1,
|
|
4748
4750
|
hasShadow: r = !1,
|
|
4749
4751
|
priorityHigh: o = !1
|
|
4750
|
-
} = e, [s, i] =
|
|
4752
|
+
} = e, [s, i] = K(void 0), c = t?.sizes;
|
|
4751
4753
|
return Me(() => {
|
|
4752
4754
|
(async () => {
|
|
4753
4755
|
const { PUBLIC_IS_OFFLINE: l } = J();
|
|
@@ -6267,7 +6269,7 @@ const Tt = (e) => {
|
|
|
6267
6269
|
i
|
|
6268
6270
|
)) })
|
|
6269
6271
|
] }),
|
|
6270
|
-
o && /* @__PURE__ */ a(
|
|
6272
|
+
o && /* @__PURE__ */ a(Y, { children: o }),
|
|
6271
6273
|
/* @__PURE__ */ h("section", { className: we.copyrigth, children: [
|
|
6272
6274
|
/* @__PURE__ */ a("p", { className: we.copyrigthText, children: e.copyrigth }),
|
|
6273
6275
|
/* @__PURE__ */ a(
|
|
@@ -6611,7 +6613,7 @@ const Dd = "_content_r1co8_1", Md = "_videoContent_r1co8_20", jd = "_articleSect
|
|
|
6611
6613
|
children: e.children
|
|
6612
6614
|
}
|
|
6613
6615
|
),
|
|
6614
|
-
/* @__PURE__ */ a(
|
|
6616
|
+
/* @__PURE__ */ a(Y, { children: e.paginatorComponent })
|
|
6615
6617
|
] });
|
|
6616
6618
|
}, Zd = "_content_15x47_1", Xd = "_newsDescription_15x47_15", e1 = "_image_15x47_41", Dt = {
|
|
6617
6619
|
content: Zd,
|
|
@@ -6826,7 +6828,7 @@ const Dd = "_content_r1co8_1", Md = "_videoContent_r1co8_20", jd = "_articleSect
|
|
|
6826
6828
|
/* @__PURE__ */ a(Ue, { preview: e.preview, isLarge: !0, priorityHigh: !0 }),
|
|
6827
6829
|
t && /* @__PURE__ */ a("div", { className: bn.description, children: t })
|
|
6828
6830
|
] });
|
|
6829
|
-
}, D1 = (e) => /* @__PURE__ */ a(
|
|
6831
|
+
}, D1 = (e) => /* @__PURE__ */ a(Y, { children: /* @__PURE__ */ h("div", { className: tt.boxInformation, children: [
|
|
6830
6832
|
/* @__PURE__ */ a(yo, { preview: e.preview }),
|
|
6831
6833
|
/* @__PURE__ */ h("div", { className: tt.textBox, children: [
|
|
6832
6834
|
/* @__PURE__ */ h("div", { className: tt.contentBox, children: [
|
|
@@ -7416,7 +7418,7 @@ const Dd = "_content_r1co8_1", Md = "_videoContent_r1co8_20", jd = "_articleSect
|
|
|
7416
7418
|
children: t?.data[0]?.main?.title.home ?? ""
|
|
7417
7419
|
}
|
|
7418
7420
|
);
|
|
7419
|
-
return /* @__PURE__ */ h(
|
|
7421
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
7420
7422
|
/* @__PURE__ */ a(
|
|
7421
7423
|
"input",
|
|
7422
7424
|
{
|
|
@@ -7753,7 +7755,7 @@ const Dd = "_content_r1co8_1", Md = "_videoContent_r1co8_20", jd = "_articleSect
|
|
|
7753
7755
|
op2: am
|
|
7754
7756
|
}, a3 = (e) => {
|
|
7755
7757
|
const { alertZone: t, children: n, sidebar: r } = e;
|
|
7756
|
-
return /* @__PURE__ */ h(
|
|
7758
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
7757
7759
|
/* @__PURE__ */ a(kh, { ...e }),
|
|
7758
7760
|
!e.showOnlyStickyHeader && /* @__PURE__ */ a(em, { ...e }),
|
|
7759
7761
|
/* @__PURE__ */ h(
|
|
@@ -8173,7 +8175,7 @@ const Dd = "_content_r1co8_1", Md = "_videoContent_r1co8_20", jd = "_articleSect
|
|
|
8173
8175
|
}
|
|
8174
8176
|
}
|
|
8175
8177
|
),
|
|
8176
|
-
e?.config?.showtime && e.config?.showauthor && /* @__PURE__ */ a(
|
|
8178
|
+
e?.config?.showtime && e.config?.showauthor && /* @__PURE__ */ a(Y, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ a(
|
|
8177
8179
|
L,
|
|
8178
8180
|
{
|
|
8179
8181
|
href: `/${e.paths?.autor ?? "autor"}/${e?.authors[0]?.name}`,
|
|
@@ -8594,7 +8596,7 @@ const r3 = (e) => {
|
|
|
8594
8596
|
] }),
|
|
8595
8597
|
/* @__PURE__ */ a("div", { className: wt.bannerContent, children: e.halfPageBanner })
|
|
8596
8598
|
] });
|
|
8597
|
-
}, i3 = (e) => /* @__PURE__ */ h(
|
|
8599
|
+
}, i3 = (e) => /* @__PURE__ */ h(Y, { children: [
|
|
8598
8600
|
/* @__PURE__ */ a(gl, { className: "display-on-lower-900px", ...e }),
|
|
8599
8601
|
/* @__PURE__ */ a(Tl, { ...e })
|
|
8600
8602
|
] }), b2 = "_newsContent_gd57q_1", C2 = "_newsContentWithLines_gd57q_8", _2 = "_newsContentWithoutLines_gd57q_13", N2 = "_contentSeparator_gd57q_18", en = {
|
|
@@ -9123,7 +9125,7 @@ const r3 = (e) => {
|
|
|
9123
9125
|
}
|
|
9124
9126
|
);
|
|
9125
9127
|
case "op2":
|
|
9126
|
-
return /* @__PURE__ */ a(
|
|
9128
|
+
return /* @__PURE__ */ a(Y, { children: t.length > 0 ? /* @__PURE__ */ a(
|
|
9127
9129
|
sa,
|
|
9128
9130
|
{
|
|
9129
9131
|
className: "padding-0",
|
|
@@ -9184,7 +9186,7 @@ const r3 = (e) => {
|
|
|
9184
9186
|
}
|
|
9185
9187
|
) });
|
|
9186
9188
|
default:
|
|
9187
|
-
return /* @__PURE__ */ a(
|
|
9189
|
+
return /* @__PURE__ */ a(Y, {});
|
|
9188
9190
|
}
|
|
9189
9191
|
}, df = "_content_gwsqy_1", uf = "_contactInfoContent_gwsqy_7", mr = {
|
|
9190
9192
|
content: df,
|
|
@@ -10251,7 +10253,7 @@ const wr = {
|
|
|
10251
10253
|
data: s.slice(0, d),
|
|
10252
10254
|
paths: n.paths
|
|
10253
10255
|
});
|
|
10254
|
-
return /* @__PURE__ */ h(
|
|
10256
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
10255
10257
|
/* @__PURE__ */ a(
|
|
10256
10258
|
Fn,
|
|
10257
10259
|
{
|
|
@@ -10298,9 +10300,9 @@ const wr = {
|
|
|
10298
10300
|
itemList: c = [],
|
|
10299
10301
|
socials: d,
|
|
10300
10302
|
getVideos: l
|
|
10301
|
-
} = e, u = e.slug === "liveblogs";
|
|
10303
|
+
} = e, u = e.slug === "liveblogs", { SHOW_NEWS_MORE_NEWS: m, SHOW_NEWS_RELATED_NEWS: f } = J();
|
|
10302
10304
|
if (!(!s || !s[0]))
|
|
10303
|
-
return /* @__PURE__ */ a(
|
|
10305
|
+
return /* @__PURE__ */ a(Y, { children: /* @__PURE__ */ h(Af, { className: la.contentLayout2, children: [
|
|
10304
10306
|
/* @__PURE__ */ a(
|
|
10305
10307
|
Nf,
|
|
10306
10308
|
{
|
|
@@ -10321,7 +10323,7 @@ const wr = {
|
|
|
10321
10323
|
ranking: n,
|
|
10322
10324
|
bannerTop: /* @__PURE__ */ a(ge, { banners: r ?? [], name: "right_1" }),
|
|
10323
10325
|
banner: /* @__PURE__ */ a(ge, { banners: r ?? [], name: "right_2" }),
|
|
10324
|
-
complement:
|
|
10326
|
+
complement: /* @__PURE__ */ h("div", { id: "comentarios", suppressHydrationWarning: !0, children: [
|
|
10325
10327
|
o.length > 0 && /* @__PURE__ */ a(
|
|
10326
10328
|
ym,
|
|
10327
10329
|
{
|
|
@@ -10372,37 +10374,42 @@ const wr = {
|
|
|
10372
10374
|
}
|
|
10373
10375
|
),
|
|
10374
10376
|
/* @__PURE__ */ a(ht, { children: /* @__PURE__ */ a(rt, { banners: r, index: 2 }) }),
|
|
10375
|
-
/* @__PURE__ */
|
|
10376
|
-
|
|
10377
|
-
|
|
10378
|
-
|
|
10379
|
-
|
|
10380
|
-
|
|
10381
|
-
|
|
10382
|
-
|
|
10383
|
-
|
|
10384
|
-
|
|
10385
|
-
|
|
10377
|
+
f && /* @__PURE__ */ h(Y, { children: [
|
|
10378
|
+
/* @__PURE__ */ a(
|
|
10379
|
+
xo,
|
|
10380
|
+
{
|
|
10381
|
+
component: "Carrusel card",
|
|
10382
|
+
banners: [],
|
|
10383
|
+
slot_id: "Nota_1",
|
|
10384
|
+
data: {
|
|
10385
|
+
...e.stylesConfig["Carrusel card"],
|
|
10386
|
+
content: e.relatedNewsList ?? [],
|
|
10387
|
+
title: e.texts.relatedNewsTitle,
|
|
10388
|
+
titleUrl: void 0
|
|
10389
|
+
}
|
|
10386
10390
|
}
|
|
10387
|
-
|
|
10388
|
-
|
|
10389
|
-
|
|
10390
|
-
/* @__PURE__ */
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
|
|
10394
|
-
|
|
10395
|
-
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10399
|
-
|
|
10400
|
-
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10391
|
+
),
|
|
10392
|
+
/* @__PURE__ */ a(ht, { children: /* @__PURE__ */ a(rt, { banners: r, index: 3 }) })
|
|
10393
|
+
] }),
|
|
10394
|
+
m && /* @__PURE__ */ h(Y, { children: [
|
|
10395
|
+
/* @__PURE__ */ a(me, { title: e.texts.moreNewsTitle, children: /* @__PURE__ */ a(
|
|
10396
|
+
"div",
|
|
10397
|
+
{
|
|
10398
|
+
suppressHydrationWarning: !0,
|
|
10399
|
+
"data-hydrate": "LazyLoader",
|
|
10400
|
+
"data-props": encodeURIComponent(
|
|
10401
|
+
JSON.stringify({
|
|
10402
|
+
render: "more",
|
|
10403
|
+
stylesConfig: e.stylesConfig,
|
|
10404
|
+
section: s[0].info.section?.slug ?? "",
|
|
10405
|
+
currentNews: s[0]
|
|
10406
|
+
})
|
|
10407
|
+
)
|
|
10408
|
+
}
|
|
10409
|
+
) }),
|
|
10410
|
+
/* @__PURE__ */ a(ht, { children: /* @__PURE__ */ a(rt, { banners: r, index: 4 }) })
|
|
10411
|
+
] }),
|
|
10412
|
+
t && t()
|
|
10406
10413
|
]
|
|
10407
10414
|
}
|
|
10408
10415
|
)
|
|
@@ -10539,7 +10546,7 @@ const wr = {
|
|
|
10539
10546
|
}
|
|
10540
10547
|
);
|
|
10541
10548
|
default:
|
|
10542
|
-
return /* @__PURE__ */ a(
|
|
10549
|
+
return /* @__PURE__ */ a(Y, {});
|
|
10543
10550
|
}
|
|
10544
10551
|
}, z0 = "_content_gxziw_1", H0 = "_buttonStyled_gxziw_9", V0 = "_searchStyled_gxziw_21", F0 = "_inputStyled_gxziw_32", W0 = "_inputStyledTest_gxziw_51", Ot = {
|
|
10545
10552
|
content: z0,
|
|
@@ -10609,7 +10616,7 @@ const wr = {
|
|
|
10609
10616
|
};
|
|
10610
10617
|
switch (n) {
|
|
10611
10618
|
case "op1":
|
|
10612
|
-
return /* @__PURE__ */ a(
|
|
10619
|
+
return /* @__PURE__ */ a(Y, { children: /* @__PURE__ */ h(sr, { children: [
|
|
10613
10620
|
/* @__PURE__ */ a(X1, { autor: r[0], autorIcon: e.autorIcon }),
|
|
10614
10621
|
/* @__PURE__ */ a(
|
|
10615
10622
|
vo,
|
|
@@ -10691,9 +10698,9 @@ const wr = {
|
|
|
10691
10698
|
)
|
|
10692
10699
|
] }) });
|
|
10693
10700
|
case "op2":
|
|
10694
|
-
return /* @__PURE__ */ a(
|
|
10701
|
+
return /* @__PURE__ */ a(Y, { children: /* @__PURE__ */ h(sr, { children: [
|
|
10695
10702
|
/* @__PURE__ */ a(du, { autor: r[0], autorIcon: e.autorIcon }),
|
|
10696
|
-
Array.isArray(t) ? /* @__PURE__ */ h(
|
|
10703
|
+
Array.isArray(t) ? /* @__PURE__ */ h(Y, { children: [
|
|
10697
10704
|
/* @__PURE__ */ a(
|
|
10698
10705
|
No,
|
|
10699
10706
|
{
|
|
@@ -10744,7 +10751,7 @@ const wr = {
|
|
|
10744
10751
|
)
|
|
10745
10752
|
] }) });
|
|
10746
10753
|
default:
|
|
10747
|
-
return /* @__PURE__ */ a(
|
|
10754
|
+
return /* @__PURE__ */ a(Y, {});
|
|
10748
10755
|
}
|
|
10749
10756
|
}, Z0 = "_content_pq89v_1", X0 = "_videoContent_pq89v_9", yr = {
|
|
10750
10757
|
content: Z0,
|
|
@@ -10867,7 +10874,7 @@ const wr = {
|
|
|
10867
10874
|
case "op2":
|
|
10868
10875
|
return /* @__PURE__ */ a(_g, { video: e.data[0] });
|
|
10869
10876
|
default:
|
|
10870
|
-
return /* @__PURE__ */ a(
|
|
10877
|
+
return /* @__PURE__ */ a(Y, {});
|
|
10871
10878
|
}
|
|
10872
10879
|
};
|
|
10873
10880
|
function w3({ containerId: e, containerId2: t }) {
|
|
@@ -10945,7 +10952,7 @@ const Ng = (e) => {
|
|
|
10945
10952
|
}
|
|
10946
10953
|
}
|
|
10947
10954
|
),
|
|
10948
|
-
t && /* @__PURE__ */ h(
|
|
10955
|
+
t && /* @__PURE__ */ h(Y, { children: [
|
|
10949
10956
|
/* @__PURE__ */ a(
|
|
10950
10957
|
"div",
|
|
10951
10958
|
{
|
|
@@ -11049,7 +11056,7 @@ const Ng = (e) => {
|
|
|
11049
11056
|
isVisible: r = !1,
|
|
11050
11057
|
stylesConfig: o
|
|
11051
11058
|
}) => {
|
|
11052
|
-
const [s, i] =
|
|
11059
|
+
const [s, i] = K({ data: Array.from({ length: Cr }, () => Eg) }), [c, d] = K(!1), l = he(async () => {
|
|
11053
11060
|
if (!(c || !t?.info?.link?.internal)) {
|
|
11054
11061
|
d(!0);
|
|
11055
11062
|
try {
|
|
@@ -11198,7 +11205,7 @@ const Ng = (e) => {
|
|
|
11198
11205
|
children: n ? Qe(e.main.subtitle.striped) : e.main.subtitle.striped
|
|
11199
11206
|
}
|
|
11200
11207
|
),
|
|
11201
|
-
(e?.config?.showtime || e.config?.showauthor) && o && /* @__PURE__ */ a(
|
|
11208
|
+
(e?.config?.showtime || e.config?.showauthor) && o && /* @__PURE__ */ a(Y, { children: e.authors?.[0]?.internaluser ? /* @__PURE__ */ a(
|
|
11202
11209
|
L,
|
|
11203
11210
|
{
|
|
11204
11211
|
className: re.correspondentLink,
|
|
@@ -12417,9 +12424,9 @@ const Uo = gp(Ap, {
|
|
|
12417
12424
|
username: o,
|
|
12418
12425
|
CAPTCHA_KEY_V2: s
|
|
12419
12426
|
}) => {
|
|
12420
|
-
const [i, c] =
|
|
12427
|
+
const [i, c] = K("form"), [d, l] = K(
|
|
12421
12428
|
""
|
|
12422
|
-
), [u, m] =
|
|
12429
|
+
), [u, m] = K(""), [f, p] = K(""), g = [
|
|
12423
12430
|
{ id: "spam", label: Ye.spam },
|
|
12424
12431
|
{
|
|
12425
12432
|
id: "inappropriate",
|
|
@@ -12475,7 +12482,7 @@ const Uo = gp(Ap, {
|
|
|
12475
12482
|
/* @__PURE__ */ a("button", { className: "close-reply-form", onClick: y, children: /* @__PURE__ */ a(It, {}) }),
|
|
12476
12483
|
/* @__PURE__ */ a("h2", { className: ue.title, children: "Reportar Abuso" }),
|
|
12477
12484
|
i === "loading" && /* @__PURE__ */ a("div", { className: ue.loadingContainer, children: /* @__PURE__ */ a(Ze, {}) }),
|
|
12478
|
-
i === "form" || i === "loading" ? /* @__PURE__ */ h(
|
|
12485
|
+
i === "form" || i === "loading" ? /* @__PURE__ */ h(Y, { children: [
|
|
12479
12486
|
/* @__PURE__ */ a("div", { className: ue.optionsContainer, children: g.map((C) => /* @__PURE__ */ h("label", { className: ue.option, children: [
|
|
12480
12487
|
/* @__PURE__ */ a(
|
|
12481
12488
|
"input",
|
|
@@ -12514,7 +12521,7 @@ const Uo = gp(Ap, {
|
|
|
12514
12521
|
}
|
|
12515
12522
|
)
|
|
12516
12523
|
] })
|
|
12517
|
-
] }) : /* @__PURE__ */ h(
|
|
12524
|
+
] }) : /* @__PURE__ */ h(Y, { children: [
|
|
12518
12525
|
/* @__PURE__ */ h("div", { className: ue.successContainer, children: [
|
|
12519
12526
|
/* @__PURE__ */ a("div", { className: ue.thumbsUp, children: /* @__PURE__ */ a(
|
|
12520
12527
|
"svg",
|
|
@@ -12626,7 +12633,7 @@ async function Vp({
|
|
|
12626
12633
|
}
|
|
12627
12634
|
}
|
|
12628
12635
|
const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
12629
|
-
const [t, n] =
|
|
12636
|
+
const [t, n] = K(void 0);
|
|
12630
12637
|
return Me(() => {
|
|
12631
12638
|
if (t) return;
|
|
12632
12639
|
(async () => {
|
|
@@ -12851,7 +12858,7 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
12851
12858
|
closeForm: s,
|
|
12852
12859
|
CAPTCHA_KEY_V2: i
|
|
12853
12860
|
}) => {
|
|
12854
|
-
const [c, d] =
|
|
12861
|
+
const [c, d] = K(!0), [l, u] = K(""), m = () => {
|
|
12855
12862
|
t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${ft}`), d(!0), s();
|
|
12856
12863
|
};
|
|
12857
12864
|
return /* @__PURE__ */ h("div", { className: "comment-form reply-form", children: [
|
|
@@ -12912,7 +12919,7 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
12912
12919
|
] })
|
|
12913
12920
|
] }) });
|
|
12914
12921
|
}, Xp = ({ comment: e, replyingTo: t, path: n, user: r, handleReplyingTo: o, onFlag: s, CAPTCHA_KEY_V2: i }) => {
|
|
12915
|
-
const c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [d, l] =
|
|
12922
|
+
const c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [d, l] = K(c), [u, m] = xe.useState(!1), { PUBLIC_PUBLICATION_ID: f, PUBLIC_X_SECURITY_TOKEN: p } = J(), g = e.text, A = xe.useRef(null);
|
|
12916
12923
|
let y = `${Je.firstname} ${Je.lastname}`, C = Je.username;
|
|
12917
12924
|
e.user && (y = `${e.user.firstname} ${e.user.lastname}`, C = e.user.username);
|
|
12918
12925
|
const S = (_) => {
|
|
@@ -12997,7 +13004,7 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
12997
13004
|
addComment: r,
|
|
12998
13005
|
CAPTCHA_KEY_V2: o
|
|
12999
13006
|
}) => {
|
|
13000
|
-
const [s, i] =
|
|
13007
|
+
const [s, i] = K(!0), [c, d] = K("");
|
|
13001
13008
|
return /* @__PURE__ */ h("div", { className: "comment-form", children: [
|
|
13002
13009
|
/* @__PURE__ */ a(
|
|
13003
13010
|
Bo,
|
|
@@ -13044,9 +13051,9 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
13044
13051
|
handleLogout: r,
|
|
13045
13052
|
COMMENTS_VARS: o
|
|
13046
13053
|
}) => {
|
|
13047
|
-
const s = t.replaceAll("/", "|"), [i, c] =
|
|
13054
|
+
const s = t.replaceAll("/", "|"), [i, c] = K(
|
|
13048
13055
|
void 0
|
|
13049
|
-
), [d, l] =
|
|
13056
|
+
), [d, l] = K(""), { comments: u, setComments: m } = $p(s), [f, p] = xe.useState(!1), g = xe.useRef(null), A = (x) => {
|
|
13050
13057
|
l(d === x ? "" : x);
|
|
13051
13058
|
}, y = (x) => {
|
|
13052
13059
|
m(
|
|
@@ -13082,8 +13089,8 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
13082
13089
|
throw p(!1), new Error(`Error al obtener comentarios: ${Q}`);
|
|
13083
13090
|
}
|
|
13084
13091
|
}, _ = u?.comments && u.comments.length > 0, T = _ ? "Comparte tu opinión de este artículo." : "Se el primero en compartir tu opinión de este artículo.", b = /* @__PURE__ */ a("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ a(Ze, {}) });
|
|
13085
|
-
return /* @__PURE__ */ h(
|
|
13086
|
-
/* @__PURE__ */ a("div", { className: "comments-container", children: /* @__PURE__ */ a(me, { title: _ || e ? "COMENTARIOS" : !1, children: /* @__PURE__ */ h(
|
|
13092
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
13093
|
+
/* @__PURE__ */ a("div", { className: "comments-container", children: /* @__PURE__ */ a(me, { title: _ || e ? "COMENTARIOS" : !1, children: /* @__PURE__ */ h(Y, { children: [
|
|
13087
13094
|
e && n && /* @__PURE__ */ h("div", { className: "comments-header", children: [
|
|
13088
13095
|
/* @__PURE__ */ a(
|
|
13089
13096
|
kg,
|
|
@@ -13196,7 +13203,7 @@ const { PUBLIC_PUBLICATION_ID: Fp } = J(), Wp = Fp, $p = (e) => {
|
|
|
13196
13203
|
}
|
|
13197
13204
|
];
|
|
13198
13205
|
function r9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
13199
|
-
const [r, o] =
|
|
13206
|
+
const [r, o] = K({}), [s, i] = K(!1), [c, d] = K(!1), [l, u] = K(null), [m, f] = K(
|
|
13200
13207
|
"register"
|
|
13201
13208
|
), p = (C, S) => {
|
|
13202
13209
|
o((_) => ({ ..._, [C]: S }));
|
|
@@ -13275,8 +13282,8 @@ function r9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
|
|
|
13275
13282
|
d(!1);
|
|
13276
13283
|
}
|
|
13277
13284
|
}, y = r.password || "";
|
|
13278
|
-
return /* @__PURE__ */ h(
|
|
13279
|
-
m === "register" && /* @__PURE__ */ h(
|
|
13285
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
13286
|
+
m === "register" && /* @__PURE__ */ h(Y, { children: [
|
|
13280
13287
|
/* @__PURE__ */ h("button", { onClick: t, className: k.google, children: [
|
|
13281
13288
|
/* @__PURE__ */ a(
|
|
13282
13289
|
"img",
|
|
@@ -13422,8 +13429,8 @@ function o9({
|
|
|
13422
13429
|
handleGoogleLogin: r,
|
|
13423
13430
|
CAPTCHA_KEY: o
|
|
13424
13431
|
}) {
|
|
13425
|
-
const [s, i] =
|
|
13426
|
-
return console.log("CAPTCHA_KEY", o), /* @__PURE__ */ h(
|
|
13432
|
+
const [s, i] = K("login"), [c, d] = K(""), [l, u] = K(""), [m, f] = K(""), [p, g] = K(""), [A, y] = K(""), [C, S] = K(!1), [_, T] = K(!1), [b, x] = K(null);
|
|
13433
|
+
return console.log("CAPTCHA_KEY", o), /* @__PURE__ */ h(Y, { children: [
|
|
13427
13434
|
s === "login" && /* @__PURE__ */ a(
|
|
13428
13435
|
s9,
|
|
13429
13436
|
{
|
|
@@ -13571,7 +13578,7 @@ function s9({
|
|
|
13571
13578
|
onRegister: u,
|
|
13572
13579
|
handleGoogleLogin: m
|
|
13573
13580
|
}) {
|
|
13574
|
-
return /* @__PURE__ */ h(
|
|
13581
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
13575
13582
|
/* @__PURE__ */ h("button", { onClick: m, className: k.google, children: [
|
|
13576
13583
|
/* @__PURE__ */ a(
|
|
13577
13584
|
"img",
|
|
@@ -13810,7 +13817,7 @@ function d9({
|
|
|
13810
13817
|
icon: r,
|
|
13811
13818
|
COMMENTS_VARS: o
|
|
13812
13819
|
}) {
|
|
13813
|
-
const [s, i] =
|
|
13820
|
+
const [s, i] = K("login"), c = async () => {
|
|
13814
13821
|
{
|
|
13815
13822
|
await fetch("/api/auth/debug-login", { method: "GET", credentials: "include" }), localStorage.setItem("cognito-login", "success:" + Date.now()), t(), n();
|
|
13816
13823
|
return;
|
|
@@ -13873,7 +13880,7 @@ function u9({
|
|
|
13873
13880
|
COMMENTS_VARS: c
|
|
13874
13881
|
}) {
|
|
13875
13882
|
const [d, l] = xe.useState(!1);
|
|
13876
|
-
return /* @__PURE__ */ h(
|
|
13883
|
+
return /* @__PURE__ */ h(Y, { children: [
|
|
13877
13884
|
d && /* @__PURE__ */ a(
|
|
13878
13885
|
d9,
|
|
13879
13886
|
{
|
|
@@ -13923,7 +13930,7 @@ function h9({
|
|
|
13923
13930
|
icon: n,
|
|
13924
13931
|
COMMENTS_VARS: r
|
|
13925
13932
|
}) {
|
|
13926
|
-
const [o, s] =
|
|
13933
|
+
const [o, s] = K(null), [i, c] = K(null), d = r?.COGNITO_AUTH_PREFIX ?? "ASTRO_", l = he(async () => {
|
|
13927
13934
|
if (e) {
|
|
13928
13935
|
if (console.log(d), document.cookie.search(d + "IS_AUTH=true") === -1) {
|
|
13929
13936
|
s(!1), c(null), console.log("user not logged");
|