sass-template-common 0.1.44 → 0.1.45

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.
@@ -1006,6 +1006,7 @@ export declare type LibraryConfig = {
1006
1006
  CAPTCHA_KEY?: string;
1007
1007
  COMMENTS_CAPTCHA_API_KEY?: string;
1008
1008
  CAPTCHA_KEY_V2?: string;
1009
+ SHOW_TAG_BY_SECTION?: boolean;
1009
1010
  };
1010
1011
 
1011
1012
  export declare interface Link {
@@ -1373,7 +1374,6 @@ declare type NewsDescriptionProps = {
1373
1374
  share?: Omit<NoteShare, 'googleProfile'>;
1374
1375
  isTitle?: boolean;
1375
1376
  paths: RoutePathConfig;
1376
- showTagBySection?: boolean;
1377
1377
  } & NewListResponseData;
1378
1378
 
1379
1379
  export declare interface NewsResponse {
@@ -1576,7 +1576,6 @@ declare type Props_15 = {
1576
1576
  item: NewListResponseData;
1577
1577
  autorIcon: ReactNode;
1578
1578
  paths: RoutePathConfig;
1579
- showTagBySection?: boolean;
1580
1579
  };
1581
1580
 
1582
1581
  declare type Props_16 = {
@@ -1896,7 +1895,6 @@ declare type Props_8 = {
1896
1895
  [key: string]: string;
1897
1896
  };
1898
1897
  paths: RoutePathConfig;
1899
- showTagBySection?: boolean;
1900
1898
  };
1901
1899
 
1902
1900
  declare type Props_9 = {
@@ -47,17 +47,18 @@ let ea = {
47
47
  /// new NEXT_PUBLIC_CAPTCHA_KEY
48
48
  COMMENTS_CAPTCHA_API_KEY: "",
49
49
  /// originaly => COMMENTS_CAPTCHA_API_KEY
50
- CAPTCHA_KEY_V2: ""
50
+ CAPTCHA_KEY_V2: "",
51
51
  /// originaly => NEXT_PUBLIC_CAPTCHA_KEY_V2
52
+ SHOW_TAG_BY_SECTION: !1
52
53
  };
53
54
  function p9(e = {}) {
54
55
  ea = { ...ea, ...e };
55
56
  }
56
- function Z() {
57
+ function J() {
57
58
  return ea;
58
59
  }
59
60
  const Go = () => {
60
- const { ANALYTICS_comscore: e } = Z();
61
+ const { ANALYTICS_comscore: e } = J();
61
62
  return e && /* @__PURE__ */ a(
62
63
  "script",
63
64
  {
@@ -82,7 +83,7 @@ const Go = () => {
82
83
  return Object.keys(t).forEach((s) => {
83
84
  o[s] = s;
84
85
  }), o;
85
- }, [t]), { ANALYTICS_ga4: r } = Z();
86
+ }, [t]), { ANALYTICS_ga4: r } = J();
86
87
  return r && /* @__PURE__ */ m(K, { children: [
87
88
  /* @__PURE__ */ a("script", { defer: !0, src: "https://www.googletagmanager.com/gtag/js?" + e }),
88
89
  /* @__PURE__ */ a(
@@ -105,7 +106,7 @@ const Go = () => {
105
106
  )
106
107
  ] });
107
108
  }, Vo = () => {
108
- const { ANALYTICS_gtm: e } = Z();
109
+ const { ANALYTICS_gtm: e } = J();
109
110
  return e && /* @__PURE__ */ m(K, { children: [
110
111
  /* @__PURE__ */ a(
111
112
  "script",
@@ -133,7 +134,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
133
134
  ) })
134
135
  ] });
135
136
  }, Fo = () => {
136
- const { ANALYTICS_marfeel: e } = Z();
137
+ const { ANALYTICS_marfeel: e } = J();
137
138
  return e && /* @__PURE__ */ a(
138
139
  "script",
139
140
  {
@@ -250,8 +251,8 @@ function Pr() {
250
251
  case h:
251
252
  return z ? C(1, L) : C(0, L + 1);
252
253
  case u:
253
- var V = this.$locale().weekStart || 0, J = (j < V ? j + 7 : j) - V;
254
- return C(z ? G - J : G + (6 - J), L);
254
+ var V = this.$locale().weekStart || 0, Z = (j < V ? j + 7 : j) - V;
255
+ return C(z ? G - Z : G + (6 - Z), L);
255
256
  case l:
256
257
  case g:
257
258
  return U(H + "Hours", 0);
@@ -297,7 +298,7 @@ function Pr() {
297
298
  if (!this.isValid()) return T.invalidDate || p;
298
299
  var z = E || "YYYY-MM-DDTHH:mm:ssZ", y = P.z(this), C = this.$H, U = this.$m, j = this.$M, L = T.weekdays, G = T.months, H = T.meridiem, V = function(F, ie, q, Ae) {
299
300
  return F && (F[ie] || F(D, z)) || q[ie].slice(0, Ae);
300
- }, J = function(F) {
301
+ }, Z = function(F) {
301
302
  return P.s(C % 12 || 12, F, "0");
302
303
  }, X = H || function(F, ie, q) {
303
304
  var Ae = F < 12 ? "AM" : "PM";
@@ -335,9 +336,9 @@ function Pr() {
335
336
  case "HH":
336
337
  return P.s(C, 2, "0");
337
338
  case "h":
338
- return J(1);
339
+ return Z(1);
339
340
  case "hh":
340
- return J(2);
341
+ return Z(2);
341
342
  case "a":
342
343
  return X(C, U, !0);
343
344
  case "A":
@@ -636,18 +637,18 @@ Se.extend(rs);
636
637
  Se.extend(cs);
637
638
  Se.extend(Zo);
638
639
  const _n = (e) => e === "en" ? "en" : "es", Me = (e) => {
639
- const { PUBLIC_LNG: t, DATE_TIMEZONE: n } = Z(), r = _n(t ?? "es");
640
+ const { PUBLIC_LNG: t, DATE_TIMEZONE: n } = J(), r = _n(t ?? "es");
640
641
  return Se.tz(e, n).locale(r).format("DD MMMM YYYY");
641
642
  }, Dr = (e) => {
642
- const { PUBLIC_LNG: t, DATE_TIMEZONE: n } = Z(), r = _n(t ?? "es");
643
+ const { PUBLIC_LNG: t, DATE_TIMEZONE: n } = J(), r = _n(t ?? "es");
643
644
  return Se.tz(e, n).locale(r).format(
644
645
  r === "en" ? "MMMM DD YYYY [•] HH:mm [hs]" : "DD [de] MMMM YYYY [•] HH:mm [hs]"
645
646
  );
646
647
  }, ls = (e) => {
647
- const { PUBLIC_LNG: t, DATE_TIMEZONE: n } = Z(), r = _n(t ?? "es");
648
+ const { PUBLIC_LNG: t, DATE_TIMEZONE: n } = J(), r = _n(t ?? "es");
648
649
  return Se.tz(e, n).locale(r).format("MM/DD/YYYY [•] HH:mm [HS]");
649
650
  }, A9 = (e) => {
650
- const { PUBLIC_LNG: t, DATE_TIMEZONE: n } = Z(), r = _n(t ?? "es");
651
+ const { PUBLIC_LNG: t, DATE_TIMEZONE: n } = J(), r = _n(t ?? "es");
651
652
  return Se.tz(e, n).locale(r).format("dddd DD [de] MMMM YYYY");
652
653
  }, je = (e, t = 136) => e && e.length > t ? `${e.substring(0, t)}...` : e;
653
654
  function ds(e) {
@@ -706,14 +707,14 @@ function w9(e) {
706
707
  return t;
707
708
  }
708
709
  const pn = () => {
709
- const { PUBLIC_ENV: e, PUBLIC_API_HOST: t, PUBLIC_ASSETS_URL: n } = Z();
710
+ const { PUBLIC_ENV: e, PUBLIC_API_HOST: t, PUBLIC_ASSETS_URL: n } = J();
710
711
  return e == "local" ? t : n !== "false" && n !== "false" ? n : "";
711
712
  }, hs = () => {
712
- const { PUBLIC_ENV: e, PUBLIC_API_FRONT: t } = Z();
713
+ const { PUBLIC_ENV: e, PUBLIC_API_FRONT: t } = J();
713
714
  return e === "local" ? t : "";
714
715
  }, ms = (e, t) => {
715
716
  if (!e) return {};
716
- 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) ?? "";
717
+ const { PUBLIC_ASSETS_URL: n, PUBLIC_API_FRONT: r } = J(), o = Mr(e.keywords) ?? "", s = e?.preview?.sizes ? e?.preview?.sizes[0]?.url : "", i = (n !== "false" ? n : r) ?? "";
717
718
  return {
718
719
  title: (e?.main?.title?.seo ?? e?.main?.title?.article) + " | " + t.name,
719
720
  robots: "index, follow, max-image-preview:large",
@@ -958,9 +959,9 @@ function y9(e) {
958
959
  return t > 1 && e.charCodeAt(t - 1) === 47 ? e.slice(0, t - 1) : e;
959
960
  }
960
961
  const ys = () => {
961
- const { PUBLIC_ASSETS_URL: e } = Z();
962
+ const { PUBLIC_ASSETS_URL: e } = J();
962
963
  return e && e !== "false" && /* @__PURE__ */ a("link", { rel: "preconnect", href: e, crossOrigin: "anonymous" });
963
- }, { PUBLIC_ASSETS_URL: qn } = Z(), vs = qn && qn !== "false" ? qn : "", Pa = ({ images: e }) => /* @__PURE__ */ a(K, { children: e.map(
964
+ }, { PUBLIC_ASSETS_URL: qn } = J(), vs = qn && qn !== "false" ? qn : "", Pa = ({ images: e }) => /* @__PURE__ */ a(K, { children: e.map(
964
965
  (t, n) => t.href !== "" && /* @__PURE__ */ a(
965
966
  "link",
966
967
  {
@@ -974,7 +975,7 @@ const ys = () => {
974
975
  )
975
976
  ) }), bs = (e, t) => {
976
977
  if (!e) return {};
977
- const { PUBLIC_API_FRONT: n } = Z();
978
+ const { PUBLIC_API_FRONT: n } = J();
978
979
  return {
979
980
  title: e?.main?.title + " | " + t.name,
980
981
  robots: "index, follow, max-image-preview:large",
@@ -1086,7 +1087,7 @@ const Qr = (e, t) => {
1086
1087
  pathname: n,
1087
1088
  ROUTE: r
1088
1089
  }) => {
1089
- const { PUBLIC_PUBLICATION_ID: o = "" } = Z();
1090
+ const { PUBLIC_PUBLICATION_ID: o = "" } = J();
1090
1091
  let s = [];
1091
1092
  const i = n === "/" || n === "/index.html" ? void 0 : Rs(Ls[r]({ pathname: n, config: e })), c = Es[r] ?? void 0, d = {
1092
1093
  newstype: e.newsType,
@@ -1114,7 +1115,7 @@ const Qr = (e, t) => {
1114
1115
  );
1115
1116
  };
1116
1117
  function Gr(e) {
1117
- const { PUBLIC_ASSETS_URL: t } = Z();
1118
+ const { PUBLIC_ASSETS_URL: t } = J();
1118
1119
  if (!t || t === "false") return e;
1119
1120
  const n = t.replace(/\/+$/, ""), r = /https?:\/\/[^/\s]+\/(arte|__export)\//g;
1120
1121
  return e.replace(r, (o, s) => `${n}/${s}/`);
@@ -1125,7 +1126,7 @@ const Ts = async ({
1125
1126
  BASE_URL: n,
1126
1127
  axiosApi: r
1127
1128
  }) => {
1128
- const { PUBLIC_SERVICE_PREFIX: o, PUBLIC_IS_SUB_PUBLICATION: s } = Z();
1129
+ const { PUBLIC_SERVICE_PREFIX: o, PUBLIC_IS_SUB_PUBLICATION: s } = J();
1129
1130
  let i = [];
1130
1131
  try {
1131
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 = {
@@ -3263,7 +3264,7 @@ class Le {
3263
3264
  PUBLIC_IS_OFFLINE: n,
3264
3265
  PUBLIC_USERNAME_OFFLINE: r,
3265
3266
  PUBLIC_PASSWORD_OFFLINE: o
3266
- } = Z();
3267
+ } = J();
3267
3268
  if (n === "true")
3268
3269
  try {
3269
3270
  return (await this.props?.axiosApi.get("/auth", {
@@ -3552,7 +3553,7 @@ const H9 = async (e, t, n, r, o, s) => {
3552
3553
  }
3553
3554
  },
3554
3555
  tema: async (e) => {
3555
- 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();
3556
+ const { meta: t, config: n, pathname: r, slug: o } = e, s = new Le(), i = r.split("/"), c = [], d = $t(r), l = Number(n.newsListLimit) ?? 0, u = /([t][0-9]{4})\w+/.exec(o || ""), h = u && u?.length > 0 ? u[0].replace("t", "") : "", { PUBLIC_TAG_TYPE: f } = J();
3556
3557
  try {
3557
3558
  const A = await s.getNewsListTags({
3558
3559
  tagid: h,
@@ -4323,7 +4324,7 @@ const bc = "_content_3olxv_1", Cc = {
4323
4324
  socialNetworkSection: Pc
4324
4325
  };
4325
4326
  function O(e) {
4326
- 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 = {
4327
+ const { PUBLIC_SERVICE_PREFIX: t, PUBLIC_IS_SUB_PUBLICATION: n } = J(), 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 = {
4327
4328
  ...e,
4328
4329
  href: (!o && !s ? r : "") + (e.href ?? "")
4329
4330
  };
@@ -4494,12 +4495,11 @@ const Et = (e) => {
4494
4495
  const {
4495
4496
  share: t = !1,
4496
4497
  cutSubtitle: n = !0,
4497
- showTagBySection: r = !1,
4498
- keywords: o,
4499
- info: s,
4500
- main: i,
4501
- paths: c
4502
- } = e, d = () => {
4498
+ keywords: r,
4499
+ info: o,
4500
+ main: s,
4501
+ paths: i
4502
+ } = e, { SHOW_TAG_BY_SECTION: c } = J(), d = () => {
4503
4503
  if (e?.config?.showtime && e.config?.showauthor)
4504
4504
  return `${e?.authors[0]?.fullname ?? "Redacción"} - ${Me(
4505
4505
  e.info?.date?.modified
@@ -4525,31 +4525,31 @@ const Et = (e) => {
4525
4525
  }
4526
4526
  );
4527
4527
  }, u = () => {
4528
- const h = i?.uppertitle, f = () => h ? /* @__PURE__ */ a("p", { className: re.uppertitle, title: h, children: h }) : null;
4529
- if (console.log("keywords.tags before", r, o?.tags), r && o?.tags?.length && o.tags.length > 0) {
4530
- console.log("keywords.tags", r, o.tags);
4531
- const A = o.tags[0], g = A.name;
4528
+ const h = s?.uppertitle, f = () => h ? /* @__PURE__ */ a("p", { className: re.uppertitle, title: h, children: h }) : null;
4529
+ if (console.log("keywords.tags before", c, r?.tags), c && r?.tags?.length && r.tags.length > 0) {
4530
+ console.log("keywords.tags", c, r.tags);
4531
+ const A = r.tags[0], g = A.name;
4532
4532
  return /* @__PURE__ */ m("h3", { className: re.sectionDescriptionContainer, children: [
4533
4533
  A.approved ? /* @__PURE__ */ a(
4534
4534
  O,
4535
4535
  {
4536
4536
  "aria-label": g,
4537
4537
  className: re.sectionDescription,
4538
- href: Qr(A, c),
4538
+ href: Qr(A, i),
4539
4539
  children: g
4540
4540
  }
4541
4541
  ) : /* @__PURE__ */ a("div", { className: re.sectionDescription, children: g }),
4542
4542
  f()
4543
4543
  ] });
4544
- } else if (s?.section?.url) {
4545
- const A = s.section.name;
4544
+ } else if (o?.section?.url) {
4545
+ const A = o.section.name;
4546
4546
  return /* @__PURE__ */ m("h3", { className: re.sectionDescriptionContainer, children: [
4547
4547
  /* @__PURE__ */ a(
4548
4548
  O,
4549
4549
  {
4550
4550
  "aria-label": A,
4551
4551
  className: re.sectionDescription,
4552
- href: s.section.url,
4552
+ href: o.section.url,
4553
4553
  children: A
4554
4554
  }
4555
4555
  ),
@@ -4733,7 +4733,7 @@ const Et = (e) => {
4733
4733
  /* @__PURE__ */ a("defs", { children: /* @__PURE__ */ a("clipPath", { id: "clip0_2503_6565", children: /* @__PURE__ */ a("rect", { width: "28", height: "28", fill: "currentColor" }) }) })
4734
4734
  ] }), el = async (e) => Buffer.from(await e.arrayBuffer()).toString("base64"), tl = async (e, t) => {
4735
4735
  try {
4736
- const { PUBLIC_API_HOST: n, PUBLIC_OFFLINE_SITE: r } = Z(), o = t?.site ?? "", s = decodeURIComponent(o ?? ""), i = t?.browser ?? "", c = await fetch(`${n}${e}`, {
4736
+ const { PUBLIC_API_HOST: n, PUBLIC_OFFLINE_SITE: r } = J(), o = t?.site ?? "", s = decodeURIComponent(o ?? ""), i = t?.browser ?? "", c = await fetch(`${n}${e}`, {
4737
4737
  headers: {
4738
4738
  PROJECT: "Offline",
4739
4739
  SITE: "/sites/" + r,
@@ -4756,7 +4756,7 @@ const Et = (e) => {
4756
4756
  } = e, [s, i] = $(void 0), c = t?.sizes;
4757
4757
  return De(() => {
4758
4758
  (async () => {
4759
- const { PUBLIC_IS_OFFLINE: l } = Z();
4759
+ const { PUBLIC_IS_OFFLINE: l } = J();
4760
4760
  if (l === "true" && c?.[0]?.url) {
4761
4761
  const u = await tl(c[0].url, e.cookies);
4762
4762
  i(u);
@@ -4796,7 +4796,7 @@ const Et = (e) => {
4796
4796
  const { preview: t } = e;
4797
4797
  if (!t?.sizes || t.sizes.length === 0 || t.sizes.some((s) => !s.url))
4798
4798
  return /* @__PURE__ */ a("div", { className: se.imageLogoPlaceholder });
4799
- const { PUBLIC_IS_OFFLINE: n } = Z();
4799
+ const { PUBLIC_IS_OFFLINE: n } = J();
4800
4800
  if (n === "true")
4801
4801
  return /* @__PURE__ */ a(nl, { ...e });
4802
4802
  const r = await Promise.all(
@@ -5785,7 +5785,7 @@ const Et = (e) => {
5785
5785
  showads: !1
5786
5786
  }, va = (e) => {
5787
5787
  let t = [];
5788
- const { PUBLIC_ENV: n } = Z();
5788
+ const { PUBLIC_ENV: n } = J();
5789
5789
  return e.content && e.content.length > 0 ? t = e.content.map((r) => ({
5790
5790
  ...r,
5791
5791
  config: ar
@@ -6636,8 +6636,7 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
6636
6636
  isTitle: l,
6637
6637
  priorityHigh: u = !1,
6638
6638
  isLarge: h,
6639
- paths: f,
6640
- showTagBySection: A
6639
+ paths: f
6641
6640
  } = e;
6642
6641
  return /* @__PURE__ */ m(
6643
6642
  "section",
@@ -6677,8 +6676,7 @@ const Md = "_content_r1co8_1", jd = "_videoContent_r1co8_20", Qd = "_articleSect
6677
6676
  config: c,
6678
6677
  overImage: d,
6679
6678
  isTitle: l,
6680
- paths: f,
6681
- showTagBySection: A
6679
+ paths: f
6682
6680
  }
6683
6681
  ) })
6684
6682
  ]
@@ -8966,14 +8964,7 @@ const o3 = (e) => {
8966
8964
  </div>
8967
8965
  ); */
8968
8966
  default:
8969
- return /* @__PURE__ */ a("div", { className: Ke.ItemCustomContent, children: /* @__PURE__ */ a(
8970
- Xe,
8971
- {
8972
- ...t,
8973
- paths: e.paths,
8974
- showTagBySection: e.showTagBySection
8975
- }
8976
- ) });
8967
+ return /* @__PURE__ */ a("div", { className: Ke.ItemCustomContent, children: /* @__PURE__ */ a(Xe, { ...t, paths: e.paths }) });
8977
8968
  }
8978
8969
  }, l3 = (e) => {
8979
8970
  const {
@@ -9028,8 +9019,7 @@ const o3 = (e) => {
9028
9019
  autorIcon: e.autorIcon,
9029
9020
  item: u,
9030
9021
  option: o,
9031
- paths: e.paths,
9032
- showTagBySection: e.showTagBySection
9022
+ paths: e.paths
9033
9023
  },
9034
9024
  h
9035
9025
  )
@@ -9092,8 +9082,7 @@ const o3 = (e) => {
9092
9082
  autorIcon: e.autorIcon,
9093
9083
  item: u,
9094
9084
  option: o,
9095
- paths: e.paths,
9096
- showTagBySection: e.showTagBySection
9085
+ paths: e.paths
9097
9086
  },
9098
9087
  h
9099
9088
  )
@@ -9411,7 +9400,7 @@ const Hf = () => /* @__PURE__ */ m("svg", { xmlns: "http://www.w3.org/2000/svg",
9411
9400
  if (!e.news || !e.news.authors) return null;
9412
9401
  const { news: t, socials: n, texts: r } = e, o = t.authors.map(
9413
9402
  (c) => c.internaluser ? `<a href="${`/${e.paths.autor}/${c.name}`}">${c.fullname}</a>` : c.fullname
9414
- ).join(", "), s = () => t.authors.length === 1 ? de.width1Autor : t.authors.length === 2 ? de.width2Autor : t.authors.length === 3 ? de.width3Autor : "", { CONFIG_shareOnlyWhatsApp: i } = Z();
9403
+ ).join(", "), s = () => t.authors.length === 1 ? de.width1Autor : t.authors.length === 2 ? de.width2Autor : t.authors.length === 3 ? de.width3Autor : "", { CONFIG_shareOnlyWhatsApp: i } = J();
9415
9404
  return t.config?.showauthor && /* @__PURE__ */ a("div", { className: de.content, children: /* @__PURE__ */ m("div", { className: de.avatarContent, children: [
9416
9405
  i ? /* @__PURE__ */ m(
9417
9406
  "a",
@@ -10184,7 +10173,7 @@ const Ar = {
10184
10173
  config: n,
10185
10174
  banners: r
10186
10175
  }) => {
10187
- const { PUBLIC_ENV: o } = Z();
10176
+ const { PUBLIC_ENV: o } = J();
10188
10177
  if (o !== "local") return null;
10189
10178
  const s = e?.news?.data || [], i = (c, d) => ({
10190
10179
  ...e?.news,
@@ -10860,7 +10849,7 @@ const Sg = (e) => {
10860
10849
  );
10861
10850
  if (!s.length || !s[0]?.url || s[0]?.url === "")
10862
10851
  return /* @__PURE__ */ a("div", { className: se.imagePlaceholder });
10863
- const { PUBLIC_API_HOST: i, PUBLIC_ENV: c } = Z();
10852
+ const { PUBLIC_API_HOST: i, PUBLIC_ENV: c } = J();
10864
10853
  return /* @__PURE__ */ a("figure", { className: se.figure, children: /* @__PURE__ */ m("span", { className: se.backdrop, children: [
10865
10854
  /* @__PURE__ */ a(
10866
10855
  "span",
@@ -11206,10 +11195,10 @@ const Sg = (e) => {
11206
11195
  errorMessage: $g,
11207
11196
  loadingContainer: Yg
11208
11197
  }, To = async (e) => {
11209
- const { PUBLIC_ENV: t } = Z();
11198
+ const { PUBLIC_ENV: t } = J();
11210
11199
  if (t === "local") return !0;
11211
11200
  if (!e) return !1;
11212
- const { CAPTCHA_PROJECT: n, CAPTCHA_KEY_V2: r, COMMENTS_CAPTCHA_API_KEY: o } = Z();
11201
+ const { CAPTCHA_PROJECT: n, CAPTCHA_KEY_V2: r, COMMENTS_CAPTCHA_API_KEY: o } = J();
11213
11202
  try {
11214
11203
  const s = n, i = r, l = await (await fetch(
11215
11204
  `https://recaptchaenterprise.googleapis.com/v1/projects/${s}/assessments?key=${o}`,
@@ -11313,7 +11302,7 @@ function Kg(e) {
11313
11302
  }
11314
11303
  const Ea = (e, t) => {
11315
11304
  if (!e || !e.current) return { boolean: !1, text: "" };
11316
- 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.";
11305
+ const n = e.current?.value || "", r = n.length > ht, { PUBLIC_ENV: o } = J(), 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.";
11317
11306
  return { boolean: i, text: c };
11318
11307
  }, Io = (e) => {
11319
11308
  const t = e.cookie.split("; ").find((n) => n.startsWith("reported="));
@@ -11476,7 +11465,7 @@ function ep() {
11476
11465
  function V(q) {
11477
11466
  return x(q) === A;
11478
11467
  }
11479
- function J(q) {
11468
+ function Z(q) {
11480
11469
  return x(q) === n;
11481
11470
  }
11482
11471
  function X(q) {
@@ -11488,7 +11477,7 @@ function ep() {
11488
11477
  function ie(q) {
11489
11478
  return x(q) === h;
11490
11479
  }
11491
- ae.AsyncMode = v, ae.ConcurrentMode = B, ae.ContextConsumer = R, ae.ContextProvider = Y, ae.Element = te, ae.ForwardRef = Q, ae.Fragment = P, ae.Lazy = ee, ae.Memo = ce, ae.Portal = M, ae.Profiler = k, ae.StrictMode = E, ae.Suspense = D, ae.isAsyncMode = z, ae.isConcurrentMode = y, ae.isContextConsumer = C, ae.isContextProvider = U, 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;
11480
+ ae.AsyncMode = v, ae.ConcurrentMode = B, ae.ContextConsumer = R, ae.ContextProvider = Y, ae.Element = te, ae.ForwardRef = Q, ae.Fragment = P, ae.Lazy = ee, ae.Memo = ce, ae.Portal = M, ae.Profiler = k, ae.StrictMode = E, ae.Suspense = D, ae.isAsyncMode = z, ae.isConcurrentMode = y, ae.isContextConsumer = C, ae.isContextProvider = U, ae.isElement = j, ae.isForwardRef = L, ae.isFragment = G, ae.isLazy = H, ae.isMemo = V, ae.isPortal = Z, ae.isProfiler = X, ae.isStrictMode = F, ae.isSuspense = ie, ae.isValidElementType = N, ae.typeOf = x;
11492
11481
  })()), ae;
11493
11482
  }
11494
11483
  var Nr;
@@ -11656,31 +11645,31 @@ function ap() {
11656
11645
  function w(y) {
11657
11646
  if (process.env.NODE_ENV !== "production")
11658
11647
  var C = {}, U = 0;
11659
- function j(G, H, V, J, X, F, ie) {
11660
- if (J = J || f, F = F || V, ie !== n) {
11648
+ function j(G, H, V, Z, X, F, ie) {
11649
+ if (Z = Z || f, F = F || V, ie !== n) {
11661
11650
  if (d) {
11662
11651
  var q = new Error(
11663
11652
  "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"
11664
11653
  );
11665
11654
  throw q.name = "Invariant Violation", q;
11666
11655
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
11667
- var Ae = J + ":" + V;
11656
+ var Ae = Z + ":" + V;
11668
11657
  !C[Ae] && // Avoid spamming the console because they are often not actionable except for lib authors
11669
11658
  U < 3 && (s(
11670
- "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."
11659
+ "You are manually calling a React.PropTypes validation function for the `" + F + "` prop on `" + Z + "`. 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."
11671
11660
  ), C[Ae] = !0, U++);
11672
11661
  }
11673
11662
  }
11674
- 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);
11663
+ return H[V] == null ? G ? H[V] === null ? new p("The " + X + " `" + F + "` is marked as required " + ("in `" + Z + "`, but its value is `null`.")) : new p("The " + X + " `" + F + "` is marked as required in " + ("`" + Z + "`, but its value is `undefined`.")) : null : y(H, V, Z, X, F);
11675
11664
  }
11676
11665
  var L = j.bind(null, !1);
11677
11666
  return L.isRequired = j.bind(null, !0), L;
11678
11667
  }
11679
11668
  function _(y) {
11680
11669
  function C(U, j, L, G, H, V) {
11681
- var J = U[j], X = E(J);
11670
+ var Z = U[j], X = E(Z);
11682
11671
  if (X !== y) {
11683
- var F = D(J);
11672
+ var F = D(Z);
11684
11673
  return new p(
11685
11674
  "Invalid " + G + " `" + H + "` of type " + ("`" + F + "` supplied to `" + L + "`, expected ") + ("`" + y + "`."),
11686
11675
  { expectedType: y }
@@ -11699,8 +11688,8 @@ function ap() {
11699
11688
  return new p("Property `" + H + "` of component `" + L + "` has invalid PropType notation inside arrayOf.");
11700
11689
  var V = U[j];
11701
11690
  if (!Array.isArray(V)) {
11702
- var J = E(V);
11703
- return new p("Invalid " + G + " `" + H + "` of type " + ("`" + J + "` supplied to `" + L + "`, expected an array."));
11691
+ var Z = E(V);
11692
+ return new p("Invalid " + G + " `" + H + "` of type " + ("`" + Z + "` supplied to `" + L + "`, expected an array."));
11704
11693
  }
11705
11694
  for (var X = 0; X < V.length; X++) {
11706
11695
  var F = y(V, X, L, G, H + "[" + X + "]", n);
@@ -11736,8 +11725,8 @@ function ap() {
11736
11725
  function B(y) {
11737
11726
  function C(U, j, L, G, H) {
11738
11727
  if (!(U[j] instanceof y)) {
11739
- var V = y.name || f, J = z(U[j]);
11740
- return new p("Invalid " + G + " `" + H + "` of type " + ("`" + J + "` supplied to `" + L + "`, expected ") + ("instance of `" + V + "`."));
11728
+ var V = y.name || f, Z = z(U[j]);
11729
+ return new p("Invalid " + G + " `" + H + "` of type " + ("`" + Z + "` supplied to `" + L + "`, expected ") + ("instance of `" + V + "`."));
11741
11730
  }
11742
11731
  return null;
11743
11732
  }
@@ -11749,8 +11738,8 @@ function ap() {
11749
11738
  "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])."
11750
11739
  ) : s("Invalid argument supplied to oneOf, expected an array.")), i;
11751
11740
  function C(U, j, L, G, H) {
11752
- for (var V = U[j], J = 0; J < y.length; J++)
11753
- if (g(V, y[J]))
11741
+ for (var V = U[j], Z = 0; Z < y.length; Z++)
11742
+ if (g(V, y[Z]))
11754
11743
  return null;
11755
11744
  var X = JSON.stringify(y, function(ie, q) {
11756
11745
  var Ae = D(q);
@@ -11764,9 +11753,9 @@ function ap() {
11764
11753
  function C(U, j, L, G, H) {
11765
11754
  if (typeof y != "function")
11766
11755
  return new p("Property `" + H + "` of component `" + L + "` has invalid PropType notation inside objectOf.");
11767
- var V = U[j], J = E(V);
11768
- if (J !== "object")
11769
- return new p("Invalid " + G + " `" + H + "` of type " + ("`" + J + "` supplied to `" + L + "`, expected an object."));
11756
+ var V = U[j], Z = E(V);
11757
+ if (Z !== "object")
11758
+ return new p("Invalid " + G + " `" + H + "` of type " + ("`" + Z + "` supplied to `" + L + "`, expected an object."));
11770
11759
  for (var X in V)
11771
11760
  if (r(V, X)) {
11772
11761
  var F = y(V, X, L, G, H + "." + X, n);
@@ -11787,15 +11776,15 @@ function ap() {
11787
11776
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + T(U) + " at index " + C + "."
11788
11777
  ), i;
11789
11778
  }
11790
- function j(L, G, H, V, J) {
11779
+ function j(L, G, H, V, Z) {
11791
11780
  for (var X = [], F = 0; F < y.length; F++) {
11792
- var ie = y[F], q = ie(L, G, H, V, J, n);
11781
+ var ie = y[F], q = ie(L, G, H, V, Z, n);
11793
11782
  if (q == null)
11794
11783
  return null;
11795
11784
  q.data && r(q.data, "expectedType") && X.push(q.data.expectedType);
11796
11785
  }
11797
11786
  var Ae = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
11798
- return new p("Invalid " + V + " `" + J + "` supplied to " + ("`" + H + "`" + Ae + "."));
11787
+ return new p("Invalid " + V + " `" + Z + "` supplied to " + ("`" + H + "`" + Ae + "."));
11799
11788
  }
11800
11789
  return w(j);
11801
11790
  }
@@ -11812,9 +11801,9 @@ function ap() {
11812
11801
  }
11813
11802
  function ee(y) {
11814
11803
  function C(U, j, L, G, H) {
11815
- var V = U[j], J = E(V);
11816
- if (J !== "object")
11817
- return new p("Invalid " + G + " `" + H + "` of type `" + J + "` " + ("supplied to `" + L + "`, expected `object`."));
11804
+ var V = U[j], Z = E(V);
11805
+ if (Z !== "object")
11806
+ return new p("Invalid " + G + " `" + H + "` of type `" + Z + "` " + ("supplied to `" + L + "`, expected `object`."));
11818
11807
  for (var X in y) {
11819
11808
  var F = y[X];
11820
11809
  if (typeof F != "function")
@@ -11829,9 +11818,9 @@ function ap() {
11829
11818
  }
11830
11819
  function ce(y) {
11831
11820
  function C(U, j, L, G, H) {
11832
- var V = U[j], J = E(V);
11833
- if (J !== "object")
11834
- return new p("Invalid " + G + " `" + H + "` of type `" + J + "` " + ("supplied to `" + L + "`, expected `object`."));
11821
+ var V = U[j], Z = E(V);
11822
+ if (Z !== "object")
11823
+ return new p("Invalid " + G + " `" + H + "` of type `" + Z + "` " + ("supplied to `" + L + "`, expected `object`."));
11835
11824
  var X = t({}, U[j], y);
11836
11825
  for (var F in X) {
11837
11826
  var ie = y[F];
@@ -12492,7 +12481,7 @@ async function Ia({
12492
12481
  state: i = "5,6",
12493
12482
  apiToken: c
12494
12483
  }) {
12495
- const { PUBLIC_ENV: d } = Z();
12484
+ const { PUBLIC_ENV: d } = J();
12496
12485
  if (d === "prod")
12497
12486
  return (await Fp({
12498
12487
  publication: e,
@@ -12527,7 +12516,7 @@ async function Fp({
12527
12516
  throw new Error("Invalid input types for publication or path");
12528
12517
  if (!c)
12529
12518
  throw new Error("Missing CMS API token");
12530
- const { PUBLIC_ENV: d, PUBLIC_API_HOST: l, PUBLIC_API_PATH: u, PUBLIC_API_PATH_VERSION: h } = Z(), f = parseInt(String(n), 10), A = parseInt(String(r), 10);
12519
+ const { PUBLIC_ENV: d, PUBLIC_API_HOST: l, PUBLIC_API_PATH: u, PUBLIC_API_PATH_VERSION: h } = J(), f = parseInt(String(n), 10), A = parseInt(String(r), 10);
12531
12520
  if (isNaN(f) || f <= 0)
12532
12521
  throw new Error("Invalid size parameter");
12533
12522
  if (isNaN(A) || A < 0)
@@ -12562,12 +12551,12 @@ async function Fp({
12562
12551
  throw _;
12563
12552
  }
12564
12553
  }
12565
- const { PUBLIC_PUBLICATION_ID: Wp } = Z(), $p = Wp, Yp = (e) => {
12554
+ const { PUBLIC_PUBLICATION_ID: Wp } = J(), $p = Wp, Yp = (e) => {
12566
12555
  const [t, n] = $(void 0);
12567
12556
  return De(() => {
12568
12557
  if (t) return;
12569
12558
  (async () => {
12570
- const { PUBLIC_X_SECURITY_TOKEN: o } = Z();
12559
+ const { PUBLIC_X_SECURITY_TOKEN: o } = J();
12571
12560
  try {
12572
12561
  const s = await Ia({
12573
12562
  publication: $p,
@@ -12725,7 +12714,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Z(), $p = Wp, Yp = (e) => {
12725
12714
  ]
12726
12715
  }
12727
12716
  );
12728
- }, { PUBLIC_PUBLICATION_ID: Kp } = Z(), Jp = Kp, Do = async ({
12717
+ }, { PUBLIC_PUBLICATION_ID: Kp } = J(), Jp = Kp, Do = async ({
12729
12718
  path: e,
12730
12719
  ref: t,
12731
12720
  captchaToken: n,
@@ -12968,7 +12957,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Z(), $p = Wp, Yp = (e) => {
12968
12957
  }
12969
12958
  )
12970
12959
  ] });
12971
- }, { PUBLIC_PUBLICATION_ID: n9, PUBLIC_X_SECURITY_TOKEN: a9 } = Z(), Rr = n9 ?? "", r9 = ({
12960
+ }, { PUBLIC_PUBLICATION_ID: n9, PUBLIC_X_SECURITY_TOKEN: a9 } = J(), Rr = n9 ?? "", r9 = ({
12972
12961
  isAuthenticated: e,
12973
12962
  path: t,
12974
12963
  user: n,
@@ -13353,7 +13342,7 @@ function s9({
13353
13342
  goToRegister: n,
13354
13343
  handleGoogleLogin: r
13355
13344
  }) {
13356
- const [o, s] = $("login"), [i, c] = $(""), [d, l] = $(""), [u, h] = $(""), [f, A] = $(""), [g, p] = $(""), [w, _] = $(!1), [S, N] = $(!1), [x, v] = $(null), { CAPTCHA_KEY: B } = Z();
13345
+ const [o, s] = $("login"), [i, c] = $(""), [d, l] = $(""), [u, h] = $(""), [f, A] = $(""), [g, p] = $(""), [w, _] = $(!1), [S, N] = $(!1), [x, v] = $(null), { CAPTCHA_KEY: B } = J();
13357
13346
  return /* @__PURE__ */ m(K, { children: [
13358
13347
  o === "login" && /* @__PURE__ */ a(
13359
13348
  i9,
@@ -13848,7 +13837,7 @@ function m9({
13848
13837
  path: t,
13849
13838
  icon: n
13850
13839
  }) {
13851
- const [r, o] = $(null), [s, i] = $(null), { COGNITO_AUTH_PREFIX: c } = Z(), d = he(async () => {
13840
+ const [r, o] = $(null), [s, i] = $(null), { COGNITO_AUTH_PREFIX: c } = J(), d = he(async () => {
13852
13841
  if (e) {
13853
13842
  if (document.cookie.search(c + "IS_AUTH=true") === -1) {
13854
13843
  o(!1), i(null), console.log("user not logged");
@@ -14197,7 +14186,7 @@ export {
14197
14186
  V9 as generalGetData,
14198
14187
  Mo as getCaptchaToken,
14199
14188
  Fp as getComments,
14200
- Z as getConfig,
14189
+ J as getConfig,
14201
14190
  H9 as getDynamicSlots,
14202
14191
  pn as getEnvironmentUrl,
14203
14192
  hs as getEnvironmentUrlFront,