sass-template-common 0.13.2 → 0.13.3

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.
@@ -4794,7 +4794,7 @@ const Sd = (e) => Array.isArray(e) ? e.length > 0 : e && typeof e == "object" ?
4794
4794
  "[url_replace]": ""
4795
4795
  }),
4796
4796
  news: (e) => ({
4797
- "[author_replace]": e.currentNew?.authors[0]?.name ?? "",
4797
+ "[author_replace]": e.currentNew?.authors?.[0]?.name ?? "",
4798
4798
  "[section_replace]": e.currentNew?.info?.section?.slug ?? "",
4799
4799
  "[tag_replace]": jr(e.currentNew?.keywords),
4800
4800
  "[url_replace]": Wi(e.internalPath ?? "")
@@ -12540,29 +12540,29 @@ const tm = async (e) => {
12540
12540
  }
12541
12541
  );
12542
12542
  }, xt = (e) => {
12543
- const { SHOW_TAG_BY_SECTION: t, SUB_PUBLICATION_PREFIX_IN_ROUTES: n } = I(), a = `${e?.authors[0]?.fullname} - `, r = e?.config?.showtime && e.config?.showauthor ? Ze(e.info?.date?.modified, a) : e?.config?.showtime ? Ze(e.info?.date?.modified) : {}, o = () => {
12543
+ const { SHOW_TAG_BY_SECTION: t, SUB_PUBLICATION_PREFIX_IN_ROUTES: n } = I(), a = e.authors?.[0], r = `${a?.fullname ?? ""} - `, o = e?.config?.showtime && e.config?.showauthor ? Ze(e.info?.date?.modified, r) : e?.config?.showtime ? Ze(e.info?.date?.modified) : {}, i = () => {
12544
12544
  if (e?.config?.showtime && e.config?.showauthor)
12545
- return `${a}${Pe(e.info?.date?.modified)}`;
12545
+ return `${r}${Pe(e.info?.date?.modified)}`;
12546
12546
  if (e.config?.showauthor)
12547
- return e?.authors[0]?.fullname;
12547
+ return a?.fullname;
12548
12548
  if (e?.config?.showtime)
12549
12549
  return Pe(e.info?.date?.modified);
12550
- }, i = () => {
12550
+ }, c = () => {
12551
12551
  if (t && e.keywords?.tags?.length && e.keywords.tags.length > 0) {
12552
- const l = e.keywords.tags[0], d = l.name;
12553
- return l.approved ? /* @__PURE__ */ g("h3", { children: [
12552
+ const d = e.keywords.tags[0], u = d.name;
12553
+ return d.approved ? /* @__PURE__ */ g("h3", { children: [
12554
12554
  " ",
12555
12555
  /* @__PURE__ */ s(
12556
12556
  O,
12557
12557
  {
12558
- "aria-label": d,
12558
+ "aria-label": u,
12559
12559
  className: "sass-bmd-sup-tagmx",
12560
12560
  block_subPublication: n?.tema,
12561
- href: ot(l, e.paths),
12562
- children: d
12561
+ href: ot(d, e.paths),
12562
+ children: u
12563
12563
  }
12564
12564
  )
12565
- ] }) : /* @__PURE__ */ s("div", { className: "sass-bmd-sup-tagmx", children: d });
12565
+ ] }) : /* @__PURE__ */ s("div", { className: "sass-bmd-sup-tagmx", children: u });
12566
12566
  } else if (e.info?.section?.url)
12567
12567
  return /* @__PURE__ */ s("h3", { children: /* @__PURE__ */ s(
12568
12568
  O,
@@ -12573,19 +12573,19 @@ const tm = async (e) => {
12573
12573
  }
12574
12574
  ) });
12575
12575
  return null;
12576
- }, c = () => {
12576
+ }, l = () => {
12577
12577
  if (t && e.keywords?.tags?.length && e.keywords.tags.length > 0) {
12578
- const l = e.keywords.tags[0], d = l.name;
12579
- return l.approved ? /* @__PURE__ */ s("h3", { children: /* @__PURE__ */ s(
12578
+ const d = e.keywords.tags[0], u = d.name;
12579
+ return d.approved ? /* @__PURE__ */ s("h3", { children: /* @__PURE__ */ s(
12580
12580
  O,
12581
12581
  {
12582
- "aria-label": d,
12582
+ "aria-label": u,
12583
12583
  className: "sass-bmd-sup-tag",
12584
12584
  block_subPublication: n?.tema,
12585
- href: ot(l, e.paths),
12586
- children: d
12585
+ href: ot(d, e.paths),
12586
+ children: u
12587
12587
  }
12588
- ) }) : /* @__PURE__ */ s("div", { className: "sass-bmd-sup-tag", children: d });
12588
+ ) }) : /* @__PURE__ */ s("div", { className: "sass-bmd-sup-tag", children: u });
12589
12589
  } else if (e.info?.section?.url)
12590
12590
  return /* @__PURE__ */ s("h3", { children: /* @__PURE__ */ s(O, { className: "sass-bmd-sup-tag", href: e?.info?.section?.url, children: e?.info?.section?.name }) });
12591
12591
  return null;
@@ -12622,7 +12622,7 @@ const tm = async (e) => {
12622
12622
  "--widthTextContent": e.textPosition === "start" ? "100%" : "80%"
12623
12623
  },
12624
12624
  children: [
12625
- /* @__PURE__ */ s(i, {}),
12625
+ /* @__PURE__ */ s(c, {}),
12626
12626
  /* @__PURE__ */ g(
12627
12627
  "div",
12628
12628
  {
@@ -12630,7 +12630,7 @@ const tm = async (e) => {
12630
12630
  position: "relative"
12631
12631
  },
12632
12632
  children: [
12633
- /* @__PURE__ */ s(c, {}),
12633
+ /* @__PURE__ */ s(l, {}),
12634
12634
  /* @__PURE__ */ s(
12635
12635
  O,
12636
12636
  {
@@ -12664,16 +12664,16 @@ const tm = async (e) => {
12664
12664
  }
12665
12665
  }
12666
12666
  ),
12667
- e?.config?.showtime && e.config?.showauthor && /* @__PURE__ */ s(Q, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ s(
12667
+ e?.config?.showtime && e.config?.showauthor && /* @__PURE__ */ s(Q, { children: a?.internaluser ? /* @__PURE__ */ s(
12668
12668
  O,
12669
12669
  {
12670
12670
  block_subPublication: n?.autor,
12671
- href: `/${e.paths?.autor ?? "autor"}/${e?.authors[0]?.name}`,
12671
+ href: `/${e.paths?.autor ?? "autor"}/${a?.name}`,
12672
12672
  className: "sass-bmd-sup-correspondent",
12673
- ...r,
12674
- children: o()
12673
+ ...o,
12674
+ children: i()
12675
12675
  }
12676
- ) : /* @__PURE__ */ s("p", { className: "sass-bmd-sup-correspondentLink", ...r, children: o() }) })
12676
+ ) : /* @__PURE__ */ s("p", { className: "sass-bmd-sup-correspondentLink", ...o, children: i() }) })
12677
12677
  ]
12678
12678
  }
12679
12679
  )
@@ -13734,14 +13734,14 @@ const xp = (e) => {
13734
13734
  }
13735
13735
  ) : /* @__PURE__ */ s("div", { className: "sass-com-opt1-contentIcon", children: e.autorIcon }),
13736
13736
  /* @__PURE__ */ g("div", { className: "sass-com-opt1-boxInformation", children: [
13737
- /* @__PURE__ */ s("p", { className: "sass-com-opt1-authorName", children: n?.authors[0]?.internaluser ? /* @__PURE__ */ s(
13737
+ /* @__PURE__ */ s("p", { className: "sass-com-opt1-authorName", children: n?.authors?.[0]?.internaluser ? /* @__PURE__ */ s(
13738
13738
  O,
13739
13739
  {
13740
13740
  block_subPublication: t?.autor,
13741
- href: n.authors[0]?.internaluser ? `/${e.paths.autor}/${n?.authors[0]?.name}` : "#",
13742
- children: n?.authors[0]?.fullname ?? "Redacción"
13741
+ href: n.authors?.[0]?.internaluser ? `/${e.paths.autor}/${n?.authors?.[0]?.name}` : "#",
13742
+ children: n?.authors?.[0]?.fullname ?? "Redacción"
13743
13743
  }
13744
- ) : n?.authors[0]?.fullname ?? "Redacción" }),
13744
+ ) : n?.authors?.[0]?.fullname ?? "Redacción" }),
13745
13745
  /* @__PURE__ */ s("p", { className: "sass-com-opt1-title", children: /* @__PURE__ */ s(
13746
13746
  O,
13747
13747
  {
@@ -21043,12 +21043,12 @@ function Y1(e, t, n) {
21043
21043
  if (e.config?.showtime || e.config?.showauthor) {
21044
21044
  let y, C = "";
21045
21045
  if (e.config?.showtime && e.config?.showauthor) {
21046
- const N = `${e.authors[0]?.fullname ?? "Redacción"} - `;
21046
+ const N = `${e.authors?.[0]?.fullname ?? "Redacción"} - `;
21047
21047
  y = `${N}${Pe(e.info?.date?.modified)}`, C = ks(e.info?.date?.modified, N);
21048
- } else e.config?.showauthor ? y = e.authors[0]?.fullname ?? "Redacción" : e.config?.showtime && (y = Pe(e.info?.date?.modified), C = ks(e.info?.date?.modified));
21048
+ } else e.config?.showauthor ? y = e.authors?.[0]?.fullname ?? "Redacción" : e.config?.showtime && (y = Pe(e.info?.date?.modified), C = ks(e.info?.date?.modified));
21049
21049
  if (y !== void 0)
21050
- if (e.authors[0]?.internaluser) {
21051
- const N = `/${t?.autor}/${e.authors[0]?.name}`, { finalHref: v } = jt(
21050
+ if (e.authors?.[0]?.internaluser) {
21051
+ const N = `/${t?.autor}/${e.authors?.[0]?.name}`, { finalHref: v } = jt(
21052
21052
  N,
21053
21053
  !!c?.autor
21054
21054
  );