sass-template-common 0.13.1 → 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.
- package/dist/sass-template-common.css +1 -1
- package/dist/sass-template-common.js +43 -43
- package/dist/sass-template-common.umd.cjs +14 -14
- package/dist/ui/components/common/cards/opinio-card-2/cards-opinio-card-2.css +1 -1
- package/dist/ui/components/common/next-prev/next-prev.css +1 -1
- package/dist/ui/components/common/sources/sources.css +1 -1
- package/dist/ui/components/pages/section/components-pages-section.css +1 -1
- package/package.json +1 -1
|
@@ -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 =
|
|
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 `${
|
|
12545
|
+
return `${r}${Pe(e.info?.date?.modified)}`;
|
|
12546
12546
|
if (e.config?.showauthor)
|
|
12547
|
-
return
|
|
12547
|
+
return a?.fullname;
|
|
12548
12548
|
if (e?.config?.showtime)
|
|
12549
12549
|
return Pe(e.info?.date?.modified);
|
|
12550
|
-
},
|
|
12550
|
+
}, c = () => {
|
|
12551
12551
|
if (t && e.keywords?.tags?.length && e.keywords.tags.length > 0) {
|
|
12552
|
-
const
|
|
12553
|
-
return
|
|
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":
|
|
12558
|
+
"aria-label": u,
|
|
12559
12559
|
className: "sass-bmd-sup-tagmx",
|
|
12560
12560
|
block_subPublication: n?.tema,
|
|
12561
|
-
href: ot(
|
|
12562
|
-
children:
|
|
12561
|
+
href: ot(d, e.paths),
|
|
12562
|
+
children: u
|
|
12563
12563
|
}
|
|
12564
12564
|
)
|
|
12565
|
-
] }) : /* @__PURE__ */ s("div", { className: "sass-bmd-sup-tagmx", children:
|
|
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
|
-
},
|
|
12576
|
+
}, l = () => {
|
|
12577
12577
|
if (t && e.keywords?.tags?.length && e.keywords.tags.length > 0) {
|
|
12578
|
-
const
|
|
12579
|
-
return
|
|
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":
|
|
12582
|
+
"aria-label": u,
|
|
12583
12583
|
className: "sass-bmd-sup-tag",
|
|
12584
12584
|
block_subPublication: n?.tema,
|
|
12585
|
-
href: ot(
|
|
12586
|
-
children:
|
|
12585
|
+
href: ot(d, e.paths),
|
|
12586
|
+
children: u
|
|
12587
12587
|
}
|
|
12588
|
-
) }) : /* @__PURE__ */ s("div", { className: "sass-bmd-sup-tag", children:
|
|
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(
|
|
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(
|
|
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:
|
|
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"}/${
|
|
12671
|
+
href: `/${e.paths?.autor ?? "autor"}/${a?.name}`,
|
|
12672
12672
|
className: "sass-bmd-sup-correspondent",
|
|
12673
|
-
...
|
|
12674
|
-
children:
|
|
12673
|
+
...o,
|
|
12674
|
+
children: i()
|
|
12675
12675
|
}
|
|
12676
|
-
) : /* @__PURE__ */ s("p", { className: "sass-bmd-sup-correspondentLink", ...
|
|
12676
|
+
) : /* @__PURE__ */ s("p", { className: "sass-bmd-sup-correspondentLink", ...o, children: i() }) })
|
|
12677
12677
|
]
|
|
12678
12678
|
}
|
|
12679
12679
|
)
|
|
@@ -13147,36 +13147,36 @@ const rm = (e) => {
|
|
|
13147
13147
|
)
|
|
13148
13148
|
] });
|
|
13149
13149
|
}, En = async (e) => {
|
|
13150
|
-
const { data: t, autorIcon: n, speculationPrerenderClass: a } = e, { SUB_PUBLICATION_PREFIX_IN_ROUTES: r } = I(), o = () => t?.config?.showtime ? `${Pe(t.info?.date?.modified)}` : "",
|
|
13151
|
-
|
|
13150
|
+
const { data: t, autorIcon: n, speculationPrerenderClass: a } = e, { SUB_PUBLICATION_PREFIX_IN_ROUTES: r } = I(), o = Array.isArray(t?.authors) ? t.authors[0] : void 0, i = o?.image?.sizes?.[0]?.url ?? "", c = i ? await fe(i) : "", l = () => t?.config?.showtime ? `${Pe(t.info?.date?.modified)}` : "", d = /* @__PURE__ */ g("div", { className: "sass-com-oc2-autorContent", children: [
|
|
13151
|
+
c ? /* @__PURE__ */ s(
|
|
13152
13152
|
"img",
|
|
13153
13153
|
{
|
|
13154
13154
|
fetchPriority: "low",
|
|
13155
13155
|
loading: "lazy",
|
|
13156
13156
|
className: "sass-com-oc2-image",
|
|
13157
|
-
src:
|
|
13158
|
-
alt:
|
|
13157
|
+
src: c,
|
|
13158
|
+
alt: o?.fullname ?? ""
|
|
13159
13159
|
}
|
|
13160
13160
|
) : /* @__PURE__ */ s("div", { className: "sass-com-oc2-contentIcon", children: n }),
|
|
13161
|
-
/* @__PURE__ */ s("p", { className: "sass-com-oc2-autorName", children: Ye(
|
|
13161
|
+
/* @__PURE__ */ s("p", { className: "sass-com-oc2-autorName", children: Ye(o?.fullname ?? "Redacción", 18) }),
|
|
13162
13162
|
/* @__PURE__ */ s(
|
|
13163
13163
|
"p",
|
|
13164
13164
|
{
|
|
13165
13165
|
className: "sass-com-oc2-time",
|
|
13166
13166
|
...t?.config?.showtime ? Ze(t.info?.date?.modified) : {},
|
|
13167
|
-
children:
|
|
13167
|
+
children: l()
|
|
13168
13168
|
}
|
|
13169
13169
|
)
|
|
13170
13170
|
] });
|
|
13171
13171
|
return /* @__PURE__ */ g("div", { className: "sass-com-oc2-content", children: [
|
|
13172
|
-
|
|
13172
|
+
o?.internaluser ? /* @__PURE__ */ s(
|
|
13173
13173
|
O,
|
|
13174
13174
|
{
|
|
13175
13175
|
block_subPublication: r?.autor,
|
|
13176
|
-
href:
|
|
13177
|
-
children:
|
|
13176
|
+
href: o.internaluser ? `/${e.paths.autor}/${o?.name}` : "#",
|
|
13177
|
+
children: d
|
|
13178
13178
|
}
|
|
13179
|
-
) :
|
|
13179
|
+
) : d,
|
|
13180
13180
|
/* @__PURE__ */ g("div", { className: "sass-com-oc2-boxInformationContent", children: [
|
|
13181
13181
|
/* @__PURE__ */ s(
|
|
13182
13182
|
O,
|
|
@@ -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
|
);
|