sass-template-common 0.1.53 → 0.1.55
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.
|
@@ -54,11 +54,11 @@ let ea = {
|
|
|
54
54
|
function p9(e = {}) {
|
|
55
55
|
ea = { ...ea, ...e };
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Z() {
|
|
58
58
|
return ea;
|
|
59
59
|
}
|
|
60
60
|
const Qo = () => {
|
|
61
|
-
const { ANALYTICS_comscore: e } =
|
|
61
|
+
const { ANALYTICS_comscore: e } = Z();
|
|
62
62
|
return e && /* @__PURE__ */ a(
|
|
63
63
|
"script",
|
|
64
64
|
{
|
|
@@ -83,7 +83,7 @@ const Qo = () => {
|
|
|
83
83
|
return Object.keys(t).forEach((s) => {
|
|
84
84
|
o[s] = s;
|
|
85
85
|
}), o;
|
|
86
|
-
}, [t]), { ANALYTICS_ga4: r } =
|
|
86
|
+
}, [t]), { ANALYTICS_ga4: r } = Z();
|
|
87
87
|
return r && /* @__PURE__ */ m(K, { children: [
|
|
88
88
|
/* @__PURE__ */ a("script", { defer: !0, src: "https://www.googletagmanager.com/gtag/js?" + e }),
|
|
89
89
|
/* @__PURE__ */ a(
|
|
@@ -106,7 +106,7 @@ const Qo = () => {
|
|
|
106
106
|
)
|
|
107
107
|
] });
|
|
108
108
|
}, Ho = () => {
|
|
109
|
-
const { ANALYTICS_gtm: e } =
|
|
109
|
+
const { ANALYTICS_gtm: e } = Z();
|
|
110
110
|
return e && /* @__PURE__ */ m(K, { children: [
|
|
111
111
|
/* @__PURE__ */ a(
|
|
112
112
|
"script",
|
|
@@ -134,7 +134,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
134
134
|
) })
|
|
135
135
|
] });
|
|
136
136
|
}, Vo = () => {
|
|
137
|
-
const { ANALYTICS_marfeel: e } =
|
|
137
|
+
const { ANALYTICS_marfeel: e } = Z();
|
|
138
138
|
return e && /* @__PURE__ */ a(
|
|
139
139
|
"script",
|
|
140
140
|
{
|
|
@@ -251,8 +251,8 @@ function Pr() {
|
|
|
251
251
|
case h:
|
|
252
252
|
return z ? C(1, L) : C(0, L + 1);
|
|
253
253
|
case u:
|
|
254
|
-
var V = this.$locale().weekStart || 0,
|
|
255
|
-
return C(z ? G -
|
|
254
|
+
var V = this.$locale().weekStart || 0, J = (j < V ? j + 7 : j) - V;
|
|
255
|
+
return C(z ? G - J : G + (6 - J), L);
|
|
256
256
|
case l:
|
|
257
257
|
case g:
|
|
258
258
|
return k(H + "Hours", 0);
|
|
@@ -298,7 +298,7 @@ function Pr() {
|
|
|
298
298
|
if (!this.isValid()) return T.invalidDate || p;
|
|
299
299
|
var z = E || "YYYY-MM-DDTHH:mm:ssZ", y = O.z(this), C = this.$H, k = this.$m, j = this.$M, L = T.weekdays, G = T.months, H = T.meridiem, V = function(F, ie, q, Ae) {
|
|
300
300
|
return F && (F[ie] || F(P, z)) || q[ie].slice(0, Ae);
|
|
301
|
-
},
|
|
301
|
+
}, J = function(F) {
|
|
302
302
|
return O.s(C % 12 || 12, F, "0");
|
|
303
303
|
}, X = H || function(F, ie, q) {
|
|
304
304
|
var Ae = F < 12 ? "AM" : "PM";
|
|
@@ -336,9 +336,9 @@ function Pr() {
|
|
|
336
336
|
case "HH":
|
|
337
337
|
return O.s(C, 2, "0");
|
|
338
338
|
case "h":
|
|
339
|
-
return
|
|
339
|
+
return J(1);
|
|
340
340
|
case "hh":
|
|
341
|
-
return
|
|
341
|
+
return J(2);
|
|
342
342
|
case "a":
|
|
343
343
|
return X(C, k, !0);
|
|
344
344
|
case "A":
|
|
@@ -637,18 +637,18 @@ Se.extend(as);
|
|
|
637
637
|
Se.extend(is);
|
|
638
638
|
Se.extend(Jo);
|
|
639
639
|
const _n = (e) => e === "en" ? "en" : "es", Me = (e) => {
|
|
640
|
-
const { PUBLIC_LNG: t, DATE_TIMEZONE: n } =
|
|
640
|
+
const { PUBLIC_LNG: t, DATE_TIMEZONE: n } = Z(), r = _n(t ?? "es");
|
|
641
641
|
return Se.tz(e, n).locale(r).format("DD MMMM YYYY");
|
|
642
642
|
}, Dr = (e) => {
|
|
643
|
-
const { PUBLIC_LNG: t, DATE_TIMEZONE: n } =
|
|
643
|
+
const { PUBLIC_LNG: t, DATE_TIMEZONE: n } = Z(), r = _n(t ?? "es");
|
|
644
644
|
return Se.tz(e, n).locale(r).format(
|
|
645
645
|
r === "en" ? "MMMM DD YYYY [•] HH:mm [hs]" : "DD [de] MMMM YYYY [•] HH:mm [hs]"
|
|
646
646
|
);
|
|
647
647
|
}, cs = (e) => {
|
|
648
|
-
const { PUBLIC_LNG: t, DATE_TIMEZONE: n } =
|
|
648
|
+
const { PUBLIC_LNG: t, DATE_TIMEZONE: n } = Z(), r = _n(t ?? "es");
|
|
649
649
|
return Se.tz(e, n).locale(r).format("MM/DD/YYYY [•] HH:mm [HS]");
|
|
650
650
|
}, A9 = (e) => {
|
|
651
|
-
const { PUBLIC_LNG: t, DATE_TIMEZONE: n } =
|
|
651
|
+
const { PUBLIC_LNG: t, DATE_TIMEZONE: n } = Z(), r = _n(t ?? "es");
|
|
652
652
|
return Se.tz(e, n).locale(r).format("dddd DD [de] MMMM YYYY");
|
|
653
653
|
}, je = (e, t = 136) => e && e.length > t ? `${e.substring(0, t)}...` : e;
|
|
654
654
|
function ls(e) {
|
|
@@ -707,14 +707,14 @@ function w9(e) {
|
|
|
707
707
|
return t;
|
|
708
708
|
}
|
|
709
709
|
const pn = () => {
|
|
710
|
-
const { PUBLIC_ENV: e, PUBLIC_API_HOST: t, PUBLIC_ASSETS_URL: n } =
|
|
710
|
+
const { PUBLIC_ENV: e, PUBLIC_API_HOST: t, PUBLIC_ASSETS_URL: n } = Z();
|
|
711
711
|
return e == "local" ? t : n !== "false" && n !== "false" ? n : "";
|
|
712
712
|
}, us = () => {
|
|
713
|
-
const { PUBLIC_ENV: e, PUBLIC_API_FRONT: t } =
|
|
713
|
+
const { PUBLIC_ENV: e, PUBLIC_API_FRONT: t } = Z();
|
|
714
714
|
return e === "local" ? t : "";
|
|
715
715
|
}, hs = (e, t) => {
|
|
716
716
|
if (!e) return {};
|
|
717
|
-
const { PUBLIC_ASSETS_URL: n, PUBLIC_API_FRONT: r } =
|
|
717
|
+
const { PUBLIC_ASSETS_URL: n, PUBLIC_API_FRONT: r } = Z(), o = Mr(e.keywords) ?? "", s = e?.preview?.sizes ? e?.preview?.sizes[0]?.url : "", i = (n !== "false" ? n : r) ?? "";
|
|
718
718
|
return {
|
|
719
719
|
title: (e?.main?.title?.seo ?? e?.main?.title?.article) + " | " + t.name,
|
|
720
720
|
robots: "index, follow, max-image-preview:large",
|
|
@@ -959,9 +959,9 @@ function y9(e) {
|
|
|
959
959
|
return t > 1 && e.charCodeAt(t - 1) === 47 ? e.slice(0, t - 1) : e;
|
|
960
960
|
}
|
|
961
961
|
const ws = () => {
|
|
962
|
-
const { PUBLIC_ASSETS_URL: e } =
|
|
962
|
+
const { PUBLIC_ASSETS_URL: e } = Z();
|
|
963
963
|
return e && e !== "false" && /* @__PURE__ */ a("link", { rel: "preconnect", href: e, crossOrigin: "anonymous" });
|
|
964
|
-
}, { PUBLIC_ASSETS_URL: qn } =
|
|
964
|
+
}, { PUBLIC_ASSETS_URL: qn } = Z(), ys = qn && qn !== "false" ? qn : "", Pa = ({ images: e }) => /* @__PURE__ */ a(K, { children: e.map(
|
|
965
965
|
(t, n) => t.href !== "" && /* @__PURE__ */ a(
|
|
966
966
|
"link",
|
|
967
967
|
{
|
|
@@ -975,7 +975,7 @@ const ws = () => {
|
|
|
975
975
|
)
|
|
976
976
|
) }), vs = (e, t) => {
|
|
977
977
|
if (!e) return {};
|
|
978
|
-
const { PUBLIC_API_FRONT: n } =
|
|
978
|
+
const { PUBLIC_API_FRONT: n } = Z();
|
|
979
979
|
return {
|
|
980
980
|
title: e?.main?.title + " | " + t.name,
|
|
981
981
|
robots: "index, follow, max-image-preview:large",
|
|
@@ -1087,7 +1087,7 @@ const bs = (e, t) => {
|
|
|
1087
1087
|
pathname: n,
|
|
1088
1088
|
ROUTE: r
|
|
1089
1089
|
}) => {
|
|
1090
|
-
const { PUBLIC_PUBLICATION_ID: o = "" } =
|
|
1090
|
+
const { PUBLIC_PUBLICATION_ID: o = "" } = Z();
|
|
1091
1091
|
let s = [];
|
|
1092
1092
|
const i = n === "/" || n === "/index.html" ? void 0 : Rs(Ls[r]({ pathname: n, config: e })), c = Es[r] ?? void 0, d = {
|
|
1093
1093
|
newstype: e.newsType,
|
|
@@ -1115,7 +1115,7 @@ const bs = (e, t) => {
|
|
|
1115
1115
|
);
|
|
1116
1116
|
};
|
|
1117
1117
|
function Qr(e) {
|
|
1118
|
-
const { PUBLIC_ASSETS_URL: t } =
|
|
1118
|
+
const { PUBLIC_ASSETS_URL: t } = Z();
|
|
1119
1119
|
if (!t || t === "false") return e;
|
|
1120
1120
|
const n = t.replace(/\/+$/, ""), r = /https?:\/\/[^/\s]+\/(arte|__export)\//g;
|
|
1121
1121
|
return e.replace(r, (o, s) => `${n}/${s}/`);
|
|
@@ -1126,7 +1126,7 @@ const Ts = async ({
|
|
|
1126
1126
|
BASE_URL: n,
|
|
1127
1127
|
axiosApi: r
|
|
1128
1128
|
}) => {
|
|
1129
|
-
const { PUBLIC_SERVICE_PREFIX: o, PUBLIC_IS_SUB_PUBLICATION: s } =
|
|
1129
|
+
const { PUBLIC_SERVICE_PREFIX: o, PUBLIC_IS_SUB_PUBLICATION: s } = Z();
|
|
1130
1130
|
let i = [];
|
|
1131
1131
|
try {
|
|
1132
1132
|
const c = t.socialBlockLogo?.url ? new URL(t.socialBlockLogo.url).pathname : void 0, d = t.landscapeLogo?.url ? new URL(t.landscapeLogo.url).pathname : void 0, l = {
|
|
@@ -3264,7 +3264,7 @@ class Le {
|
|
|
3264
3264
|
PUBLIC_IS_OFFLINE: n,
|
|
3265
3265
|
PUBLIC_USERNAME_OFFLINE: r,
|
|
3266
3266
|
PUBLIC_PASSWORD_OFFLINE: o
|
|
3267
|
-
} =
|
|
3267
|
+
} = Z();
|
|
3268
3268
|
if (n === "true")
|
|
3269
3269
|
try {
|
|
3270
3270
|
return (await this.props?.axiosApi.get("/auth", {
|
|
@@ -3553,7 +3553,7 @@ const H9 = async (e, t, n, r, o, s) => {
|
|
|
3553
3553
|
}
|
|
3554
3554
|
},
|
|
3555
3555
|
tema: async (e) => {
|
|
3556
|
-
const { meta: t, config: n, pathname: r, slug: o } = e, s = new Le(), i = r.split("/"), c = [], d = $t(r), l = Number(n.newsListLimit) ?? 0, u = /([t][0-9]{4})\w+/.exec(o || ""), h = u && u?.length > 0 ? u[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: f } =
|
|
3556
|
+
const { meta: t, config: n, pathname: r, slug: o } = e, s = new Le(), i = r.split("/"), c = [], d = $t(r), l = Number(n.newsListLimit) ?? 0, u = /([t][0-9]{4})\w+/.exec(o || ""), h = u && u?.length > 0 ? u[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: f } = Z();
|
|
3557
3557
|
try {
|
|
3558
3558
|
const w = await s.getNewsListTags({
|
|
3559
3559
|
tagid: h,
|
|
@@ -4324,7 +4324,7 @@ const bc = "_content_3olxv_1", Cc = {
|
|
|
4324
4324
|
socialNetworkSection: Pc
|
|
4325
4325
|
};
|
|
4326
4326
|
function D(e) {
|
|
4327
|
-
const { PUBLIC_SERVICE_PREFIX: t, PUBLIC_IS_SUB_PUBLICATION: n } =
|
|
4327
|
+
const { PUBLIC_SERVICE_PREFIX: t, PUBLIC_IS_SUB_PUBLICATION: n } = Z(), r = t !== "false" && n !== "false" ? "/" + t : "", o = /^(https?:)?\/\//.test(e.href) || /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e.href), s = e.href?.split("/")[1] === r.replace("/", ""), i = {
|
|
4328
4328
|
...e,
|
|
4329
4329
|
href: (!o && !s ? r : "") + (e.href ?? "")
|
|
4330
4330
|
};
|
|
@@ -4492,7 +4492,7 @@ function jc({ noteShare: e }) {
|
|
|
4492
4492
|
] }) : null;
|
|
4493
4493
|
}
|
|
4494
4494
|
const Et = (e) => {
|
|
4495
|
-
const { share: t = !1, cutSubtitle: n = !0, keywords: r } = e,
|
|
4495
|
+
const { share: t = !1, cutSubtitle: n = !0, keywords: r } = e, o = () => {
|
|
4496
4496
|
if (e?.config?.showtime && e.config?.showauthor)
|
|
4497
4497
|
return `${e?.authors[0]?.fullname ?? "Redacción"} - ${Me(
|
|
4498
4498
|
e.info?.date?.modified
|
|
@@ -4501,8 +4501,8 @@ const Et = (e) => {
|
|
|
4501
4501
|
return e?.authors[0]?.fullname ?? "Redacción";
|
|
4502
4502
|
if (e?.config?.showtime)
|
|
4503
4503
|
return Me(e.info?.date?.modified);
|
|
4504
|
-
},
|
|
4505
|
-
const
|
|
4504
|
+
}, s = () => {
|
|
4505
|
+
const d = {
|
|
4506
4506
|
"--fontSizeSubTitle": e.fontSizeSubTitle,
|
|
4507
4507
|
"--lineHeightSubTitle": e.lineHeightSubTitle,
|
|
4508
4508
|
"--colorSubTitle": e.colorSubTitle
|
|
@@ -4514,18 +4514,15 @@ const Et = (e) => {
|
|
|
4514
4514
|
dangerouslySetInnerHTML: {
|
|
4515
4515
|
__html: e.main.subtitle.rendered ?? e.main.subtitle.striped ?? ""
|
|
4516
4516
|
},
|
|
4517
|
-
style:
|
|
4517
|
+
style: d
|
|
4518
4518
|
}
|
|
4519
4519
|
);
|
|
4520
|
-
},
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
] });
|
|
4527
|
-
}
|
|
4528
|
-
return null;
|
|
4520
|
+
}, i = () => e.main.uppertitle ? /* @__PURE__ */ a("p", { className: se.uppertitle, title: e.main.uppertitle, children: e.main.uppertitle }) : null, c = () => {
|
|
4521
|
+
const d = r?.tags[0], l = d?.name ?? "";
|
|
4522
|
+
return console.log("tagName", l, d), /* @__PURE__ */ m("h3", { className: se.sectionDescriptionContainer, children: [
|
|
4523
|
+
/* @__PURE__ */ a(D, { "aria-label": l, className: se.sectionDescription, children: l }),
|
|
4524
|
+
i()
|
|
4525
|
+
] });
|
|
4529
4526
|
};
|
|
4530
4527
|
return /* @__PURE__ */ m("div", { className: se.boxInformation, children: [
|
|
4531
4528
|
t && /* @__PURE__ */ a(
|
|
@@ -4537,7 +4534,7 @@ const Et = (e) => {
|
|
|
4537
4534
|
children: /* @__PURE__ */ a(jc, { noteShare: { ...t } })
|
|
4538
4535
|
}
|
|
4539
4536
|
),
|
|
4540
|
-
/* @__PURE__ */ a(
|
|
4537
|
+
/* @__PURE__ */ a(c, {}),
|
|
4541
4538
|
Ee.createElement(
|
|
4542
4539
|
e.isTitle ? "h1" : "h2",
|
|
4543
4540
|
{
|
|
@@ -4557,16 +4554,16 @@ const Et = (e) => {
|
|
|
4557
4554
|
}
|
|
4558
4555
|
) : e.main?.title?.section
|
|
4559
4556
|
),
|
|
4560
|
-
e.config?.showsubtitle && /* @__PURE__ */ a(
|
|
4557
|
+
e.config?.showsubtitle && /* @__PURE__ */ a(s, {}),
|
|
4561
4558
|
(e?.config?.showtime || e.config?.showauthor) && /* @__PURE__ */ a(K, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ a("h3", { children: /* @__PURE__ */ a(
|
|
4562
4559
|
D,
|
|
4563
4560
|
{
|
|
4564
|
-
"aria-label":
|
|
4561
|
+
"aria-label": o(),
|
|
4565
4562
|
className: se.correspondentLink,
|
|
4566
4563
|
href: `/${e?.paths?.autor}/${e?.authors[0]?.name}`,
|
|
4567
|
-
children:
|
|
4564
|
+
children: o()
|
|
4568
4565
|
}
|
|
4569
|
-
) }) : /* @__PURE__ */ a("h3", { className: se.correspondent, children:
|
|
4566
|
+
) }) : /* @__PURE__ */ a("h3", { className: se.correspondent, children: o() }) })
|
|
4570
4567
|
] });
|
|
4571
4568
|
}, Qc = "_content_coxjf_1", Gc = "_contentNew_coxjf_21", zc = "_imageBox_coxjf_29", Hc = "_numberTag_coxjf_44", Kt = {
|
|
4572
4569
|
content: Qc,
|
|
@@ -4702,7 +4699,7 @@ const Et = (e) => {
|
|
|
4702
4699
|
/* @__PURE__ */ a("defs", { children: /* @__PURE__ */ a("clipPath", { id: "clip0_2503_6565", children: /* @__PURE__ */ a("rect", { width: "28", height: "28", fill: "currentColor" }) }) })
|
|
4703
4700
|
] }), el = async (e) => Buffer.from(await e.arrayBuffer()).toString("base64"), tl = async (e, t) => {
|
|
4704
4701
|
try {
|
|
4705
|
-
const { PUBLIC_API_HOST: n, PUBLIC_OFFLINE_SITE: r } =
|
|
4702
|
+
const { PUBLIC_API_HOST: n, PUBLIC_OFFLINE_SITE: r } = Z(), o = t?.site ?? "", s = decodeURIComponent(o ?? ""), i = t?.browser ?? "", c = await fetch(`${n}${e}`, {
|
|
4706
4703
|
headers: {
|
|
4707
4704
|
PROJECT: "Offline",
|
|
4708
4705
|
SITE: "/sites/" + r,
|
|
@@ -4725,7 +4722,7 @@ const Et = (e) => {
|
|
|
4725
4722
|
} = e, [s, i] = $(void 0), c = t?.sizes;
|
|
4726
4723
|
return De(() => {
|
|
4727
4724
|
(async () => {
|
|
4728
|
-
const { PUBLIC_IS_OFFLINE: l } =
|
|
4725
|
+
const { PUBLIC_IS_OFFLINE: l } = Z();
|
|
4729
4726
|
if (l === "true" && c?.[0]?.url) {
|
|
4730
4727
|
const u = await tl(c[0].url, e.cookies);
|
|
4731
4728
|
i(u);
|
|
@@ -4765,7 +4762,7 @@ const Et = (e) => {
|
|
|
4765
4762
|
const { preview: t } = e;
|
|
4766
4763
|
if (!t?.sizes || t.sizes.length === 0 || t.sizes.some((s) => !s.url))
|
|
4767
4764
|
return /* @__PURE__ */ a("div", { className: oe.imageLogoPlaceholder });
|
|
4768
|
-
const { PUBLIC_IS_OFFLINE: n } =
|
|
4765
|
+
const { PUBLIC_IS_OFFLINE: n } = Z();
|
|
4769
4766
|
if (n === "true")
|
|
4770
4767
|
return /* @__PURE__ */ a(nl, { ...e });
|
|
4771
4768
|
const r = await Promise.all(
|
|
@@ -5754,7 +5751,7 @@ const Et = (e) => {
|
|
|
5754
5751
|
showads: !1
|
|
5755
5752
|
}, va = (e) => {
|
|
5756
5753
|
let t = [];
|
|
5757
|
-
const { PUBLIC_ENV: n } =
|
|
5754
|
+
const { PUBLIC_ENV: n } = Z();
|
|
5758
5755
|
return e.content && e.content.length > 0 ? t = e.content.map((r) => ({
|
|
5759
5756
|
...r,
|
|
5760
5757
|
config: ar
|
|
@@ -9369,7 +9366,7 @@ const Hf = () => /* @__PURE__ */ m("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
9369
9366
|
if (!e.news || !e.news.authors) return null;
|
|
9370
9367
|
const { news: t, socials: n, texts: r } = e, o = t.authors.map(
|
|
9371
9368
|
(c) => c.internaluser ? `<a href="${`/${e.paths.autor}/${c.name}`}">${c.fullname}</a>` : c.fullname
|
|
9372
|
-
).join(", "), s = () => t.authors.length === 1 ? de.width1Autor : t.authors.length === 2 ? de.width2Autor : t.authors.length === 3 ? de.width3Autor : "", { CONFIG_shareOnlyWhatsApp: i } =
|
|
9369
|
+
).join(", "), s = () => t.authors.length === 1 ? de.width1Autor : t.authors.length === 2 ? de.width2Autor : t.authors.length === 3 ? de.width3Autor : "", { CONFIG_shareOnlyWhatsApp: i } = Z();
|
|
9373
9370
|
return t.config?.showauthor && /* @__PURE__ */ a("div", { className: de.content, children: /* @__PURE__ */ m("div", { className: de.avatarContent, children: [
|
|
9374
9371
|
i ? /* @__PURE__ */ m(
|
|
9375
9372
|
"a",
|
|
@@ -10142,7 +10139,7 @@ const Ar = {
|
|
|
10142
10139
|
config: n,
|
|
10143
10140
|
banners: r
|
|
10144
10141
|
}) => {
|
|
10145
|
-
const { PUBLIC_ENV: o } =
|
|
10142
|
+
const { PUBLIC_ENV: o } = Z();
|
|
10146
10143
|
if (o !== "local") return null;
|
|
10147
10144
|
const s = e?.news?.data || [], i = (c, d) => ({
|
|
10148
10145
|
...e?.news,
|
|
@@ -10818,7 +10815,7 @@ const Sg = (e) => {
|
|
|
10818
10815
|
);
|
|
10819
10816
|
if (!s.length || !s[0]?.url || s[0]?.url === "")
|
|
10820
10817
|
return /* @__PURE__ */ a("div", { className: oe.imagePlaceholder });
|
|
10821
|
-
const { PUBLIC_API_HOST: i, PUBLIC_ENV: c } =
|
|
10818
|
+
const { PUBLIC_API_HOST: i, PUBLIC_ENV: c } = Z();
|
|
10822
10819
|
return /* @__PURE__ */ a("figure", { className: oe.figure, children: /* @__PURE__ */ m("span", { className: oe.backdrop, children: [
|
|
10823
10820
|
/* @__PURE__ */ a(
|
|
10824
10821
|
"span",
|
|
@@ -11164,10 +11161,10 @@ const Sg = (e) => {
|
|
|
11164
11161
|
errorMessage: $g,
|
|
11165
11162
|
loadingContainer: Yg
|
|
11166
11163
|
}, xo = async (e) => {
|
|
11167
|
-
const { PUBLIC_ENV: t } =
|
|
11164
|
+
const { PUBLIC_ENV: t } = Z();
|
|
11168
11165
|
if (t === "local") return !0;
|
|
11169
11166
|
if (!e) return !1;
|
|
11170
|
-
const { CAPTCHA_PROJECT: n, CAPTCHA_KEY_V2: r, COMMENTS_CAPTCHA_API_KEY: o } =
|
|
11167
|
+
const { CAPTCHA_PROJECT: n, CAPTCHA_KEY_V2: r, COMMENTS_CAPTCHA_API_KEY: o } = Z();
|
|
11171
11168
|
try {
|
|
11172
11169
|
const s = n, i = r, l = await (await fetch(
|
|
11173
11170
|
`https://recaptchaenterprise.googleapis.com/v1/projects/${s}/assessments?key=${o}`,
|
|
@@ -11271,7 +11268,7 @@ function Kg(e) {
|
|
|
11271
11268
|
}
|
|
11272
11269
|
const Ea = (e, t) => {
|
|
11273
11270
|
if (!e || !e.current) return { boolean: !1, text: "" };
|
|
11274
|
-
const n = e.current?.value || "", r = n.length > ht, { PUBLIC_ENV: o } =
|
|
11271
|
+
const n = e.current?.value || "", r = n.length > ht, { PUBLIC_ENV: o } = Z(), s = o === "local", i = n.trim() !== "" && (s || t !== "") && !r, c = r ? `No debes exceder el limite de ${ht} caracteres.` : "Debes completar todos los campos para comentar.";
|
|
11275
11272
|
return { boolean: i, text: c };
|
|
11276
11273
|
}, To = (e) => {
|
|
11277
11274
|
const t = e.cookie.split("; ").find((n) => n.startsWith("reported="));
|
|
@@ -11434,7 +11431,7 @@ function ep() {
|
|
|
11434
11431
|
function V(q) {
|
|
11435
11432
|
return x(q) === w;
|
|
11436
11433
|
}
|
|
11437
|
-
function
|
|
11434
|
+
function J(q) {
|
|
11438
11435
|
return x(q) === n;
|
|
11439
11436
|
}
|
|
11440
11437
|
function X(q) {
|
|
@@ -11446,7 +11443,7 @@ function ep() {
|
|
|
11446
11443
|
function ie(q) {
|
|
11447
11444
|
return x(q) === h;
|
|
11448
11445
|
}
|
|
11449
|
-
ae.AsyncMode = v, ae.ConcurrentMode = B, ae.ContextConsumer = R, ae.ContextProvider = Y, ae.Element = te, ae.ForwardRef = Q, ae.Fragment = O, ae.Lazy = ee, ae.Memo = ce, ae.Portal = M, ae.Profiler = U, ae.StrictMode = E, ae.Suspense = P, ae.isAsyncMode = z, ae.isConcurrentMode = y, ae.isContextConsumer = C, ae.isContextProvider = k, ae.isElement = j, ae.isForwardRef = L, ae.isFragment = G, ae.isLazy = H, ae.isMemo = V, ae.isPortal =
|
|
11446
|
+
ae.AsyncMode = v, ae.ConcurrentMode = B, ae.ContextConsumer = R, ae.ContextProvider = Y, ae.Element = te, ae.ForwardRef = Q, ae.Fragment = O, ae.Lazy = ee, ae.Memo = ce, ae.Portal = M, ae.Profiler = U, ae.StrictMode = E, ae.Suspense = P, ae.isAsyncMode = z, ae.isConcurrentMode = y, ae.isContextConsumer = C, ae.isContextProvider = k, ae.isElement = j, ae.isForwardRef = L, ae.isFragment = G, ae.isLazy = H, ae.isMemo = V, ae.isPortal = J, ae.isProfiler = X, ae.isStrictMode = F, ae.isSuspense = ie, ae.isValidElementType = N, ae.typeOf = x;
|
|
11450
11447
|
})()), ae;
|
|
11451
11448
|
}
|
|
11452
11449
|
var Nr;
|
|
@@ -11614,31 +11611,31 @@ function ap() {
|
|
|
11614
11611
|
function A(y) {
|
|
11615
11612
|
if (process.env.NODE_ENV !== "production")
|
|
11616
11613
|
var C = {}, k = 0;
|
|
11617
|
-
function j(G, H, V,
|
|
11618
|
-
if (
|
|
11614
|
+
function j(G, H, V, J, X, F, ie) {
|
|
11615
|
+
if (J = J || f, F = F || V, ie !== n) {
|
|
11619
11616
|
if (d) {
|
|
11620
11617
|
var q = new Error(
|
|
11621
11618
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
11622
11619
|
);
|
|
11623
11620
|
throw q.name = "Invariant Violation", q;
|
|
11624
11621
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
11625
|
-
var Ae =
|
|
11622
|
+
var Ae = J + ":" + V;
|
|
11626
11623
|
!C[Ae] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
11627
11624
|
k < 3 && (s(
|
|
11628
|
-
"You are manually calling a React.PropTypes validation function for the `" + F + "` prop on `" +
|
|
11625
|
+
"You are manually calling a React.PropTypes validation function for the `" + F + "` prop on `" + J + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
11629
11626
|
), C[Ae] = !0, k++);
|
|
11630
11627
|
}
|
|
11631
11628
|
}
|
|
11632
|
-
return H[V] == null ? G ? H[V] === null ? new p("The " + X + " `" + F + "` is marked as required " + ("in `" +
|
|
11629
|
+
return H[V] == null ? G ? H[V] === null ? new p("The " + X + " `" + F + "` is marked as required " + ("in `" + J + "`, but its value is `null`.")) : new p("The " + X + " `" + F + "` is marked as required in " + ("`" + J + "`, but its value is `undefined`.")) : null : y(H, V, J, X, F);
|
|
11633
11630
|
}
|
|
11634
11631
|
var L = j.bind(null, !1);
|
|
11635
11632
|
return L.isRequired = j.bind(null, !0), L;
|
|
11636
11633
|
}
|
|
11637
11634
|
function _(y) {
|
|
11638
11635
|
function C(k, j, L, G, H, V) {
|
|
11639
|
-
var
|
|
11636
|
+
var J = k[j], X = E(J);
|
|
11640
11637
|
if (X !== y) {
|
|
11641
|
-
var F = P(
|
|
11638
|
+
var F = P(J);
|
|
11642
11639
|
return new p(
|
|
11643
11640
|
"Invalid " + G + " `" + H + "` of type " + ("`" + F + "` supplied to `" + L + "`, expected ") + ("`" + y + "`."),
|
|
11644
11641
|
{ expectedType: y }
|
|
@@ -11657,8 +11654,8 @@ function ap() {
|
|
|
11657
11654
|
return new p("Property `" + H + "` of component `" + L + "` has invalid PropType notation inside arrayOf.");
|
|
11658
11655
|
var V = k[j];
|
|
11659
11656
|
if (!Array.isArray(V)) {
|
|
11660
|
-
var
|
|
11661
|
-
return new p("Invalid " + G + " `" + H + "` of type " + ("`" +
|
|
11657
|
+
var J = E(V);
|
|
11658
|
+
return new p("Invalid " + G + " `" + H + "` of type " + ("`" + J + "` supplied to `" + L + "`, expected an array."));
|
|
11662
11659
|
}
|
|
11663
11660
|
for (var X = 0; X < V.length; X++) {
|
|
11664
11661
|
var F = y(V, X, L, G, H + "[" + X + "]", n);
|
|
@@ -11694,8 +11691,8 @@ function ap() {
|
|
|
11694
11691
|
function B(y) {
|
|
11695
11692
|
function C(k, j, L, G, H) {
|
|
11696
11693
|
if (!(k[j] instanceof y)) {
|
|
11697
|
-
var V = y.name || f,
|
|
11698
|
-
return new p("Invalid " + G + " `" + H + "` of type " + ("`" +
|
|
11694
|
+
var V = y.name || f, J = z(k[j]);
|
|
11695
|
+
return new p("Invalid " + G + " `" + H + "` of type " + ("`" + J + "` supplied to `" + L + "`, expected ") + ("instance of `" + V + "`."));
|
|
11699
11696
|
}
|
|
11700
11697
|
return null;
|
|
11701
11698
|
}
|
|
@@ -11707,8 +11704,8 @@ function ap() {
|
|
|
11707
11704
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
11708
11705
|
) : s("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
11709
11706
|
function C(k, j, L, G, H) {
|
|
11710
|
-
for (var V = k[j],
|
|
11711
|
-
if (g(V, y[
|
|
11707
|
+
for (var V = k[j], J = 0; J < y.length; J++)
|
|
11708
|
+
if (g(V, y[J]))
|
|
11712
11709
|
return null;
|
|
11713
11710
|
var X = JSON.stringify(y, function(ie, q) {
|
|
11714
11711
|
var Ae = P(q);
|
|
@@ -11722,9 +11719,9 @@ function ap() {
|
|
|
11722
11719
|
function C(k, j, L, G, H) {
|
|
11723
11720
|
if (typeof y != "function")
|
|
11724
11721
|
return new p("Property `" + H + "` of component `" + L + "` has invalid PropType notation inside objectOf.");
|
|
11725
|
-
var V = k[j],
|
|
11726
|
-
if (
|
|
11727
|
-
return new p("Invalid " + G + " `" + H + "` of type " + ("`" +
|
|
11722
|
+
var V = k[j], J = E(V);
|
|
11723
|
+
if (J !== "object")
|
|
11724
|
+
return new p("Invalid " + G + " `" + H + "` of type " + ("`" + J + "` supplied to `" + L + "`, expected an object."));
|
|
11728
11725
|
for (var X in V)
|
|
11729
11726
|
if (r(V, X)) {
|
|
11730
11727
|
var F = y(V, X, L, G, H + "." + X, n);
|
|
@@ -11745,15 +11742,15 @@ function ap() {
|
|
|
11745
11742
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + T(k) + " at index " + C + "."
|
|
11746
11743
|
), i;
|
|
11747
11744
|
}
|
|
11748
|
-
function j(L, G, H, V,
|
|
11745
|
+
function j(L, G, H, V, J) {
|
|
11749
11746
|
for (var X = [], F = 0; F < y.length; F++) {
|
|
11750
|
-
var ie = y[F], q = ie(L, G, H, V,
|
|
11747
|
+
var ie = y[F], q = ie(L, G, H, V, J, n);
|
|
11751
11748
|
if (q == null)
|
|
11752
11749
|
return null;
|
|
11753
11750
|
q.data && r(q.data, "expectedType") && X.push(q.data.expectedType);
|
|
11754
11751
|
}
|
|
11755
11752
|
var Ae = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
11756
|
-
return new p("Invalid " + V + " `" +
|
|
11753
|
+
return new p("Invalid " + V + " `" + J + "` supplied to " + ("`" + H + "`" + Ae + "."));
|
|
11757
11754
|
}
|
|
11758
11755
|
return A(j);
|
|
11759
11756
|
}
|
|
@@ -11770,9 +11767,9 @@ function ap() {
|
|
|
11770
11767
|
}
|
|
11771
11768
|
function ee(y) {
|
|
11772
11769
|
function C(k, j, L, G, H) {
|
|
11773
|
-
var V = k[j],
|
|
11774
|
-
if (
|
|
11775
|
-
return new p("Invalid " + G + " `" + H + "` of type `" +
|
|
11770
|
+
var V = k[j], J = E(V);
|
|
11771
|
+
if (J !== "object")
|
|
11772
|
+
return new p("Invalid " + G + " `" + H + "` of type `" + J + "` " + ("supplied to `" + L + "`, expected `object`."));
|
|
11776
11773
|
for (var X in y) {
|
|
11777
11774
|
var F = y[X];
|
|
11778
11775
|
if (typeof F != "function")
|
|
@@ -11787,9 +11784,9 @@ function ap() {
|
|
|
11787
11784
|
}
|
|
11788
11785
|
function ce(y) {
|
|
11789
11786
|
function C(k, j, L, G, H) {
|
|
11790
|
-
var V = k[j],
|
|
11791
|
-
if (
|
|
11792
|
-
return new p("Invalid " + G + " `" + H + "` of type `" +
|
|
11787
|
+
var V = k[j], J = E(V);
|
|
11788
|
+
if (J !== "object")
|
|
11789
|
+
return new p("Invalid " + G + " `" + H + "` of type `" + J + "` " + ("supplied to `" + L + "`, expected `object`."));
|
|
11793
11790
|
var X = t({}, k[j], y);
|
|
11794
11791
|
for (var F in X) {
|
|
11795
11792
|
var ie = y[F];
|
|
@@ -12450,7 +12447,7 @@ async function Ia({
|
|
|
12450
12447
|
state: i = "5,6",
|
|
12451
12448
|
apiToken: c
|
|
12452
12449
|
}) {
|
|
12453
|
-
const { PUBLIC_ENV: d } =
|
|
12450
|
+
const { PUBLIC_ENV: d } = Z();
|
|
12454
12451
|
if (d === "prod")
|
|
12455
12452
|
return (await Fp({
|
|
12456
12453
|
publication: e,
|
|
@@ -12485,7 +12482,7 @@ async function Fp({
|
|
|
12485
12482
|
throw new Error("Invalid input types for publication or path");
|
|
12486
12483
|
if (!c)
|
|
12487
12484
|
throw new Error("Missing CMS API token");
|
|
12488
|
-
const { PUBLIC_ENV: d, PUBLIC_API_HOST: l, PUBLIC_API_PATH: u, PUBLIC_API_PATH_VERSION: h } =
|
|
12485
|
+
const { PUBLIC_ENV: d, PUBLIC_API_HOST: l, PUBLIC_API_PATH: u, PUBLIC_API_PATH_VERSION: h } = Z(), f = parseInt(String(n), 10), w = parseInt(String(r), 10);
|
|
12489
12486
|
if (isNaN(f) || f <= 0)
|
|
12490
12487
|
throw new Error("Invalid size parameter");
|
|
12491
12488
|
if (isNaN(w) || w < 0)
|
|
@@ -12520,12 +12517,12 @@ async function Fp({
|
|
|
12520
12517
|
throw _;
|
|
12521
12518
|
}
|
|
12522
12519
|
}
|
|
12523
|
-
const { PUBLIC_PUBLICATION_ID: Wp } =
|
|
12520
|
+
const { PUBLIC_PUBLICATION_ID: Wp } = Z(), $p = Wp, Yp = (e) => {
|
|
12524
12521
|
const [t, n] = $(void 0);
|
|
12525
12522
|
return De(() => {
|
|
12526
12523
|
if (t) return;
|
|
12527
12524
|
(async () => {
|
|
12528
|
-
const { PUBLIC_X_SECURITY_TOKEN: o } =
|
|
12525
|
+
const { PUBLIC_X_SECURITY_TOKEN: o } = Z();
|
|
12529
12526
|
try {
|
|
12530
12527
|
const s = await Ia({
|
|
12531
12528
|
publication: $p,
|
|
@@ -12683,7 +12680,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
12683
12680
|
]
|
|
12684
12681
|
}
|
|
12685
12682
|
);
|
|
12686
|
-
}, { PUBLIC_PUBLICATION_ID: Kp } =
|
|
12683
|
+
}, { PUBLIC_PUBLICATION_ID: Kp } = Z(), Jp = Kp, Po = async ({
|
|
12687
12684
|
path: e,
|
|
12688
12685
|
ref: t,
|
|
12689
12686
|
captchaToken: n,
|
|
@@ -12926,7 +12923,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
|
|
|
12926
12923
|
}
|
|
12927
12924
|
)
|
|
12928
12925
|
] });
|
|
12929
|
-
}, { PUBLIC_PUBLICATION_ID: n9, PUBLIC_X_SECURITY_TOKEN: a9 } =
|
|
12926
|
+
}, { PUBLIC_PUBLICATION_ID: n9, PUBLIC_X_SECURITY_TOKEN: a9 } = Z(), Rr = n9 ?? "", r9 = ({
|
|
12930
12927
|
isAuthenticated: e,
|
|
12931
12928
|
path: t,
|
|
12932
12929
|
user: n,
|
|
@@ -13311,7 +13308,7 @@ function s9({
|
|
|
13311
13308
|
goToRegister: n,
|
|
13312
13309
|
handleGoogleLogin: r
|
|
13313
13310
|
}) {
|
|
13314
|
-
const [o, s] = $("login"), [i, c] = $(""), [d, l] = $(""), [u, h] = $(""), [f, w] = $(""), [g, p] = $(""), [A, _] = $(!1), [S, N] = $(!1), [x, v] = $(null), { CAPTCHA_KEY: B } =
|
|
13311
|
+
const [o, s] = $("login"), [i, c] = $(""), [d, l] = $(""), [u, h] = $(""), [f, w] = $(""), [g, p] = $(""), [A, _] = $(!1), [S, N] = $(!1), [x, v] = $(null), { CAPTCHA_KEY: B } = Z();
|
|
13315
13312
|
return /* @__PURE__ */ m(K, { children: [
|
|
13316
13313
|
o === "login" && /* @__PURE__ */ a(
|
|
13317
13314
|
i9,
|
|
@@ -13806,7 +13803,7 @@ function m9({
|
|
|
13806
13803
|
path: t,
|
|
13807
13804
|
icon: n
|
|
13808
13805
|
}) {
|
|
13809
|
-
const [r, o] = $(null), [s, i] = $(null), { COGNITO_AUTH_PREFIX: c } =
|
|
13806
|
+
const [r, o] = $(null), [s, i] = $(null), { COGNITO_AUTH_PREFIX: c } = Z(), d = he(async () => {
|
|
13810
13807
|
if (e) {
|
|
13811
13808
|
if (document.cookie.search(c + "IS_AUTH=true") === -1) {
|
|
13812
13809
|
o(!1), i(null), console.log("user not logged");
|
|
@@ -14155,7 +14152,7 @@ export {
|
|
|
14155
14152
|
V9 as generalGetData,
|
|
14156
14153
|
Do as getCaptchaToken,
|
|
14157
14154
|
Fp as getComments,
|
|
14158
|
-
|
|
14155
|
+
Z as getConfig,
|
|
14159
14156
|
H9 as getDynamicSlots,
|
|
14160
14157
|
pn as getEnvironmentUrl,
|
|
14161
14158
|
us as getEnvironmentUrlFront,
|