sass-template-common 0.9.22 → 0.9.24

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.
@@ -1,4 +1,4 @@
1
- import { jsx as n, jsxs as g, Fragment as K } from "react/jsx-runtime";
1
+ import { jsx as n, jsxs as g, Fragment as Y } from "react/jsx-runtime";
2
2
  import * as js from "react";
3
3
  import ce, { useState as J, useRef as Da, useCallback as oe, useEffect as xe, createElement as Re, forwardRef as Pn, Fragment as xt, useMemo as ss, Component as _a } from "react";
4
4
  let ns = {
@@ -96,7 +96,7 @@ const Ga = () => {
96
96
  r[i] = i;
97
97
  }), r;
98
98
  }, [t]), { ANALYTICS_ga4: a } = _();
99
- return a && /* @__PURE__ */ g(K, { children: [
99
+ return a && /* @__PURE__ */ g(Y, { children: [
100
100
  /* @__PURE__ */ n("script", { defer: !0, src: "https://www.googletagmanager.com/gtag/js?" + a }),
101
101
  /* @__PURE__ */ n(
102
102
  "script",
@@ -119,7 +119,7 @@ const Ga = () => {
119
119
  ] });
120
120
  }, Ha = () => {
121
121
  const { ANALYTICS_gtm: e } = _();
122
- return e && /* @__PURE__ */ g(K, { children: [
122
+ return e && /* @__PURE__ */ g(Y, { children: [
123
123
  /* @__PURE__ */ n(
124
124
  "script",
125
125
  {
@@ -261,11 +261,11 @@ function On() {
261
261
  }, U.valueOf = function() {
262
262
  return this.$d.getTime();
263
263
  }, U.startOf = function(I, M) {
264
- var k = this, V = !!L.u(M) || M, v = L.p(I), E = function(te, Y) {
265
- var ie = L.w(k.$u ? Date.UTC(k.$y, Y, te) : new Date(k.$y, Y, te), k);
264
+ var k = this, V = !!L.u(M) || M, v = L.p(I), E = function(te, K) {
265
+ var ie = L.w(k.$u ? Date.UTC(k.$y, K, te) : new Date(k.$y, K, te), k);
266
266
  return V ? ie : ie.endOf(l);
267
- }, B = function(te, Y) {
268
- return L.w(k.toDate()[te].apply(k.toDate("s"), (V ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Y)), k);
267
+ }, B = function(te, K) {
268
+ return L.w(k.toDate()[te].apply(k.toDate("s"), (V ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(K)), k);
269
269
  }, G = this.$W, D = this.$M, Q = this.$D, F = "set" + (this.$u ? "UTC" : "");
270
270
  switch (v) {
271
271
  case p:
@@ -318,15 +318,15 @@ function On() {
318
318
  }, U.format = function(I) {
319
319
  var M = this, k = this.$locale();
320
320
  if (!this.isValid()) return k.invalidDate || A;
321
- var V = I || "YYYY-MM-DDTHH:mm:ssZ", v = L.z(this), E = this.$H, B = this.$m, G = this.$M, D = k.weekdays, Q = k.months, F = k.meridiem, W = function(Y, ie, P, ue) {
322
- return Y && (Y[ie] || Y(M, V)) || P[ie].slice(0, ue);
323
- }, X = function(Y) {
324
- return L.s(E % 12 || 12, Y, "0");
325
- }, te = F || function(Y, ie, P) {
326
- var ue = Y < 12 ? "AM" : "PM";
321
+ var V = I || "YYYY-MM-DDTHH:mm:ssZ", v = L.z(this), E = this.$H, B = this.$m, G = this.$M, D = k.weekdays, Q = k.months, F = k.meridiem, W = function(K, ie, P, ue) {
322
+ return K && (K[ie] || K(M, V)) || P[ie].slice(0, ue);
323
+ }, X = function(K) {
324
+ return L.s(E % 12 || 12, K, "0");
325
+ }, te = F || function(K, ie, P) {
326
+ var ue = K < 12 ? "AM" : "PM";
327
327
  return P ? ue.toLowerCase() : ue;
328
328
  };
329
- return V.replace(y, (function(Y, ie) {
329
+ return V.replace(y, (function(K, ie) {
330
330
  return ie || (function(P) {
331
331
  switch (P) {
332
332
  case "YY":
@@ -379,7 +379,7 @@ function On() {
379
379
  return v;
380
380
  }
381
381
  return null;
382
- })(Y) || v.replace(":", "");
382
+ })(K) || v.replace(":", "");
383
383
  }));
384
384
  }, U.utcOffset = function() {
385
385
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
@@ -1113,7 +1113,7 @@ const ur = async (e, t) => {
1113
1113
  t.value || "",
1114
1114
  e.replaces
1115
1115
  ), a = yr(s);
1116
- return /* @__PURE__ */ n(K, { children: a.map((r, i) => {
1116
+ return /* @__PURE__ */ n(Y, { children: a.map((r, i) => {
1117
1117
  const o = r[1] || r[3] || "", c = r[2]?.trim() || "";
1118
1118
  return Mn(o, c, i, e.name);
1119
1119
  }) });
@@ -1128,7 +1128,7 @@ const ur = async (e, t) => {
1128
1128
  ).split(
1129
1129
  /(<script\b[\s\S]*?<\/script\s*>|<script\b[^>]*\/?>)/gi
1130
1130
  );
1131
- return /* @__PURE__ */ n(K, { children: a.map((r, i) => {
1131
+ return /* @__PURE__ */ n(Y, { children: a.map((r, i) => {
1132
1132
  const o = r.match(
1133
1133
  /<script\b([^>]*)>([\s\S]*?)<\/script\s*>|<script\b([^>]*)\/?>/i
1134
1134
  );
@@ -1162,7 +1162,7 @@ function vd(e) {
1162
1162
  const Nr = () => {
1163
1163
  const { PUBLIC_ASSETS_URL: e } = _();
1164
1164
  return e && e !== "false" && /* @__PURE__ */ n("link", { rel: "preconnect", href: e, crossOrigin: "anonymous" });
1165
- }, { PUBLIC_ASSETS_URL: Vt } = _(), Sr = Vt && Vt !== "false" ? Vt : "", Ks = ({ images: e }) => /* @__PURE__ */ n(K, { children: e.map(
1165
+ }, { PUBLIC_ASSETS_URL: Vt } = _(), Sr = Vt && Vt !== "false" ? Vt : "", Ks = ({ images: e }) => /* @__PURE__ */ n(Y, { children: e.map(
1166
1166
  (t, s) => t.href !== "" && /* @__PURE__ */ n(
1167
1167
  "link",
1168
1168
  {
@@ -1537,25 +1537,37 @@ const Br = async ({
1537
1537
  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;
1538
1538
  }
1539
1539
  `;
1540
- return /* @__PURE__ */ n(K, { children: e.useS3Font ? /* @__PURE__ */ g(K, { children: [
1540
+ return /* @__PURE__ */ n(Y, { children: e.useS3Font ? /* @__PURE__ */ g(Y, { children: [
1541
1541
  /* @__PURE__ */ n(
1542
1542
  "link",
1543
1543
  {
1544
1544
  rel: "preload",
1545
1545
  as: "font",
1546
+ media: "print",
1547
+ onLoad: (s) => {
1548
+ s.currentTarget.onload = null, s.currentTarget.media = "all";
1549
+ },
1546
1550
  href: e.fontS3Url,
1547
1551
  type: "font/woff2",
1548
1552
  crossOrigin: "anonymous"
1549
1553
  }
1550
1554
  ),
1555
+ /* @__PURE__ */ n("noscript", { children: /* @__PURE__ */ n("link", { rel: "stylesheet", href: e.fontS3Url }) }),
1551
1556
  /* @__PURE__ */ n("style", { dangerouslySetInnerHTML: { __html: t } })
1552
- ] }) : /* @__PURE__ */ n(
1553
- "link",
1554
- {
1555
- rel: "stylesheet",
1556
- href: `https://fonts.googleapis.com/css2?${e.googleFontFamily}&display=${e.fontDisplay ?? "swap"}`
1557
- }
1558
- ) });
1557
+ ] }) : /* @__PURE__ */ g(Y, { children: [
1558
+ /* @__PURE__ */ n(
1559
+ "link",
1560
+ {
1561
+ rel: "stylesheet",
1562
+ media: "print",
1563
+ onLoad: (s) => {
1564
+ s.currentTarget.onload = null, s.currentTarget.media = "all";
1565
+ },
1566
+ href: `https://fonts.googleapis.com/css2?${e.googleFontFamily}&display=${e.fontDisplay ?? "swap"}`
1567
+ }
1568
+ ),
1569
+ /* @__PURE__ */ n("noscript", { children: /* @__PURE__ */ n("link", { rel: "stylesheet", href: `https://fonts.googleapis.com/css2?${e.googleFontFamily}&display=${e.fontDisplay ?? "swap"}` }) })
1570
+ ] }) });
1559
1571
  }, Gn = {
1560
1572
  404: () => {
1561
1573
  },
@@ -4750,7 +4762,7 @@ async function Zd({
4750
4762
  currentNew: u,
4751
4763
  internalPath: f
4752
4764
  });
4753
- return /* @__PURE__ */ g(K, { children: [
4765
+ return /* @__PURE__ */ g(Y, { children: [
4754
4766
  /* @__PURE__ */ n("meta", { charSet: "utf-8" }),
4755
4767
  /* @__PURE__ */ n("meta", { name: "viewport", content: "width=device-width, initial-scale=1" }),
4756
4768
  Z,
@@ -4848,7 +4860,7 @@ const Xd = ({
4848
4860
  currentNew: c,
4849
4861
  internalPath: o
4850
4862
  }), p = l.before.active, f = l.after.active, A = p ? l.before.customData ? l.before.customData : h : void 0, w = f ? l.after.customData ? l.after.customData : h : void 0;
4851
- return /* @__PURE__ */ g(K, { children: [
4863
+ return /* @__PURE__ */ g(Y, { children: [
4852
4864
  /* @__PURE__ */ n(Dn, { name: "bodybefore", banners: s, replaces: A }),
4853
4865
  e,
4854
4866
  /* @__PURE__ */ n(Va, {}),
@@ -5456,7 +5468,7 @@ const Ke = (e) => {
5456
5468
  }, u = () => e.main.uppertitle ? /* @__PURE__ */ n("p", { className: "sass-com-nd-uppertitle", title: e.main.uppertitle, children: e.main.uppertitle }) : null, h = () => {
5457
5469
  if (c && a?.tags?.length && a.tags.length > 0) {
5458
5470
  const p = a.tags[0], f = p.name;
5459
- return ce.createElement(o, { className: "sass-com-nd-sectionDescriptionContainer section" }, /* @__PURE__ */ g(K, { children: [
5471
+ return ce.createElement(o, { className: "sass-com-nd-sectionDescriptionContainer section" }, /* @__PURE__ */ g(Y, { children: [
5460
5472
  p.approved ? /* @__PURE__ */ n(
5461
5473
  O,
5462
5474
  {
@@ -5471,7 +5483,7 @@ const Ke = (e) => {
5471
5483
  ] }));
5472
5484
  } else if (r?.section?.url) {
5473
5485
  const p = r.section.name;
5474
- return ce.createElement(o, { className: "sass-com-nd-sectionDescriptionContainer section" }, /* @__PURE__ */ g(K, { children: [
5486
+ return ce.createElement(o, { className: "sass-com-nd-sectionDescriptionContainer section" }, /* @__PURE__ */ g(Y, { children: [
5475
5487
  /* @__PURE__ */ n(
5476
5488
  O,
5477
5489
  {
@@ -5517,7 +5529,7 @@ const Ke = (e) => {
5517
5529
  ) : e.main?.title?.section
5518
5530
  ),
5519
5531
  e.config?.showsubtitle && /* @__PURE__ */ n(d, {}),
5520
- (e?.config?.showtime || e.config?.showauthor) && /* @__PURE__ */ n(K, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ n("h3", { children: /* @__PURE__ */ n(
5532
+ (e?.config?.showtime || e.config?.showauthor) && /* @__PURE__ */ n(Y, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ n("h3", { children: /* @__PURE__ */ n(
5521
5533
  O,
5522
5534
  {
5523
5535
  block_subPublication: m?.autor,
@@ -5571,7 +5583,7 @@ const Lo = (e) => {
5571
5583
  src: r[0]?.url ? r[0]?.url : void 0
5572
5584
  }
5573
5585
  ),
5574
- t && /* @__PURE__ */ g(K, { children: [
5586
+ t && /* @__PURE__ */ g(Y, { children: [
5575
5587
  /* @__PURE__ */ n(
5576
5588
  "div",
5577
5589
  {
@@ -5625,7 +5637,7 @@ const Lo = (e) => {
5625
5637
  src: r[0]?.url ? r[0]?.url : ""
5626
5638
  }
5627
5639
  ),
5628
- t && /* @__PURE__ */ g(K, { children: [
5640
+ t && /* @__PURE__ */ g(Y, { children: [
5629
5641
  /* @__PURE__ */ n(
5630
5642
  "div",
5631
5643
  {
@@ -7121,7 +7133,7 @@ const Lo = (e) => {
7121
7133
  c
7122
7134
  )) })
7123
7135
  ] }),
7124
- r && /* @__PURE__ */ n(K, { children: r }),
7136
+ r && /* @__PURE__ */ n(Y, { children: r }),
7125
7137
  /* @__PURE__ */ g("section", { className: "sass-com-ft-copyrigth", children: [
7126
7138
  /* @__PURE__ */ n("p", { className: "sass-com-ft-copyrigthText", children: e.copyrigth }),
7127
7139
  /* @__PURE__ */ n(
@@ -7418,7 +7430,7 @@ const rm = (e) => {
7418
7430
  children: e.children
7419
7431
  }
7420
7432
  ),
7421
- /* @__PURE__ */ n(K, { children: e.paginatorComponent })
7433
+ /* @__PURE__ */ n(Y, { children: e.paginatorComponent })
7422
7434
  ] });
7423
7435
  }, ke = (e) => {
7424
7436
  const {
@@ -7589,7 +7601,7 @@ const rm = (e) => {
7589
7601
  ] }), ba = (e) => {
7590
7602
  let t = "";
7591
7603
  return e.preview.description && (t = e.preview.description), e.preview.copyright && (t = `${t} ${e.preview.copyright}`), e.preview.photographer && (t = `${t} ${e.preview.photographer}`), /* @__PURE__ */ n("div", { className: "sass-com-in2-content", children: /* @__PURE__ */ n(Ce, { preview: e.preview, isLarge: !0, priorityHigh: !0, figCaption: t }) });
7592
- }, Wo = (e) => /* @__PURE__ */ n(K, { children: /* @__PURE__ */ g("div", { className: "sass-com-lbh-boxInformation sass-liveblog-header", children: [
7604
+ }, Wo = (e) => /* @__PURE__ */ n(Y, { children: /* @__PURE__ */ g("div", { className: "sass-com-lbh-boxInformation sass-liveblog-header", children: [
7593
7605
  /* @__PURE__ */ n(ba, { preview: e.preview }),
7594
7606
  /* @__PURE__ */ g("div", { className: "sass-com-lbh-textBox", children: [
7595
7607
  /* @__PURE__ */ g("div", { className: "sass-com-lbh-contentBox", children: [
@@ -8187,7 +8199,7 @@ const rm = (e) => {
8187
8199
  children: t?.data[0]?.main?.title.home ?? ""
8188
8200
  }
8189
8201
  );
8190
- return /* @__PURE__ */ g(K, { children: [
8202
+ return /* @__PURE__ */ g(Y, { children: [
8191
8203
  /* @__PURE__ */ n(
8192
8204
  "input",
8193
8205
  {
@@ -8530,7 +8542,7 @@ const rm = (e) => {
8530
8542
  ]
8531
8543
  }
8532
8544
  );
8533
- return /* @__PURE__ */ g(K, { children: [
8545
+ return /* @__PURE__ */ g(Y, { children: [
8534
8546
  e.childrenContentPosition === "before-headers" && o,
8535
8547
  /* @__PURE__ */ n(ec, { ...e }),
8536
8548
  !e.showOnlyStickyHeader && /* @__PURE__ */ n(sc, { ...e }),
@@ -8999,7 +9011,7 @@ const rm = (e) => {
8999
9011
  }
9000
9012
  }
9001
9013
  ),
9002
- e?.config?.showtime && e.config?.showauthor && /* @__PURE__ */ n(K, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ n(
9014
+ e?.config?.showtime && e.config?.showauthor && /* @__PURE__ */ n(Y, { children: e.authors[0]?.internaluser ? /* @__PURE__ */ n(
9003
9015
  O,
9004
9016
  {
9005
9017
  block_subPublication: s?.autor,
@@ -9421,7 +9433,7 @@ const hm = (e) => {
9421
9433
  ] }),
9422
9434
  /* @__PURE__ */ n("div", { className: "sass-bs-m2c-bannerContent", children: e.halfPageBanner })
9423
9435
  ] });
9424
- }, pm = (e) => /* @__PURE__ */ g(K, { children: [
9436
+ }, pm = (e) => /* @__PURE__ */ g(Y, { children: [
9425
9437
  /* @__PURE__ */ n(
9426
9438
  Oo,
9427
9439
  {
@@ -9918,7 +9930,7 @@ const hm = (e) => {
9918
9930
  }
9919
9931
  );
9920
9932
  case "op2":
9921
- return /* @__PURE__ */ n(K, { children: t.length > 0 ? /* @__PURE__ */ n(
9933
+ return /* @__PURE__ */ n(Y, { children: t.length > 0 ? /* @__PURE__ */ n(
9922
9934
  cs,
9923
9935
  {
9924
9936
  className: "padding-0",
@@ -9979,7 +9991,7 @@ const hm = (e) => {
9979
9991
  }
9980
9992
  ) });
9981
9993
  default:
9982
- return /* @__PURE__ */ n(K, {});
9994
+ return /* @__PURE__ */ n(Y, {});
9983
9995
  }
9984
9996
  }, wm = (e) => {
9985
9997
  const { data: t } = e;
@@ -10125,7 +10137,7 @@ const hm = (e) => {
10125
10137
  ) }) : null;
10126
10138
  }, Ec = (e) => {
10127
10139
  const t = e.option === "liveblogs";
10128
- return /* @__PURE__ */ g(K, { children: [
10140
+ return /* @__PURE__ */ g(Y, { children: [
10129
10141
  /* @__PURE__ */ n(() => {
10130
10142
  const a = {
10131
10143
  ...e.news[0],
@@ -11174,7 +11186,7 @@ async function el(e) {
11174
11186
  a
11175
11187
  ), d = await Xc(d, m), d = zc(d), d = Fc(d);
11176
11188
  const u = t.main.sources ?? [], { NEWS_JOURNALIST_COMPONENT: h, CONFIG_blockDefaultTwitterHydrator: p } = _(), f = t.config.articlepreview === qe.fotoGaleria && t.hascontent?.hasgalleryimages;
11177
- return /* @__PURE__ */ g(K, { children: [
11189
+ return /* @__PURE__ */ g(Y, { children: [
11178
11190
  i !== "liveblogs" && e.showHeaderImage ? f ? /* @__PURE__ */ n(
11179
11191
  _c,
11180
11192
  {
@@ -11257,7 +11269,7 @@ const tl = (e) => {
11257
11269
  getVideos: p
11258
11270
  } = e;
11259
11271
  if (m)
11260
- return /* @__PURE__ */ g(K, { children: [
11272
+ return /* @__PURE__ */ g(Y, { children: [
11261
11273
  /* @__PURE__ */ n(
11262
11274
  el,
11263
11275
  {
@@ -11292,7 +11304,7 @@ const tl = (e) => {
11292
11304
  getVideos: l
11293
11305
  } = e;
11294
11306
  if (!(!r || !r[0]))
11295
- return /* @__PURE__ */ n(K, { children: /* @__PURE__ */ g(bc, { className: "sass-pg-news-contentLayout2", children: [
11307
+ return /* @__PURE__ */ n(Y, { children: /* @__PURE__ */ g(bc, { className: "sass-pg-news-contentLayout2", children: [
11296
11308
  /* @__PURE__ */ n(
11297
11309
  Ec,
11298
11310
  {
@@ -11420,7 +11432,7 @@ const tl = (e) => {
11420
11432
  };
11421
11433
  switch (s) {
11422
11434
  case "op1":
11423
- return /* @__PURE__ */ n(K, { children: /* @__PURE__ */ g(An, { children: [
11435
+ return /* @__PURE__ */ n(Y, { children: /* @__PURE__ */ g(An, { children: [
11424
11436
  /* @__PURE__ */ n(Jo, { autor: a[0], autorIcon: e.autorIcon, socialIconsFilled: u }),
11425
11437
  /* @__PURE__ */ n(
11426
11438
  ya,
@@ -11503,9 +11515,9 @@ const tl = (e) => {
11503
11515
  )
11504
11516
  ] }) });
11505
11517
  case "op2":
11506
- return /* @__PURE__ */ n(K, { children: /* @__PURE__ */ g(An, { children: [
11518
+ return /* @__PURE__ */ n(Y, { children: /* @__PURE__ */ g(An, { children: [
11507
11519
  /* @__PURE__ */ n($o, { autor: a[0], autorIcon: e.autorIcon, socialIconsFilled: u }),
11508
- Array.isArray(t) ? /* @__PURE__ */ g(K, { children: [
11520
+ Array.isArray(t) ? /* @__PURE__ */ g(Y, { children: [
11509
11521
  /* @__PURE__ */ n(
11510
11522
  Ea,
11511
11523
  {
@@ -11557,7 +11569,7 @@ const tl = (e) => {
11557
11569
  )
11558
11570
  ] }) });
11559
11571
  default:
11560
- return /* @__PURE__ */ n(K, {});
11572
+ return /* @__PURE__ */ n(Y, {});
11561
11573
  }
11562
11574
  }, tt = ({ className: e }) => /* @__PURE__ */ n(
11563
11575
  "svg",
@@ -11728,8 +11740,8 @@ function Cm({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
11728
11740
  u(!1);
11729
11741
  }
11730
11742
  }, x = o.password || "";
11731
- return /* @__PURE__ */ g(K, { children: [
11732
- f === "register" && /* @__PURE__ */ g(K, { children: [
11743
+ return /* @__PURE__ */ g(Y, { children: [
11744
+ f === "register" && /* @__PURE__ */ g(Y, { children: [
11733
11745
  /* @__PURE__ */ g("button", { onClick: w, className: "sass-pg-login-google", children: [
11734
11746
  /* @__PURE__ */ n(
11735
11747
  "img",
@@ -11910,7 +11922,7 @@ function Nm({
11910
11922
  L && L !== "" ? (document.cookie = "redirect_after_login=; Max-Age=0; path=/", window.location.pathname = L, window.location.hash = "comentarios") : window.location.pathname = "/auth/success";
11911
11923
  }
11912
11924
  };
11913
- return /* @__PURE__ */ g(K, { children: [
11925
+ return /* @__PURE__ */ g(Y, { children: [
11914
11926
  a === "login" && /* @__PURE__ */ n(
11915
11927
  ol,
11916
11928
  {
@@ -12074,7 +12086,7 @@ function ol({
12074
12086
  handleGoogleLogin: d,
12075
12087
  t: u
12076
12088
  }) {
12077
- return /* @__PURE__ */ g(K, { children: [
12089
+ return /* @__PURE__ */ g(Y, { children: [
12078
12090
  /* @__PURE__ */ g("button", { onClick: d, className: "sass-pg-login-google", children: [
12079
12091
  /* @__PURE__ */ n(
12080
12092
  "img",
@@ -12396,7 +12408,7 @@ const xm = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
12396
12408
  }
12397
12409
  }
12398
12410
  ),
12399
- t && /* @__PURE__ */ g(K, { children: [
12411
+ t && /* @__PURE__ */ g(Y, { children: [
12400
12412
  /* @__PURE__ */ n(
12401
12413
  "div",
12402
12414
  {
@@ -12721,7 +12733,7 @@ const xm = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
12721
12733
  children: s ? Ie(e.main?.subtitle?.striped) : e.main?.subtitle?.striped
12722
12734
  }
12723
12735
  ),
12724
- (e?.config?.showtime || e.config?.showauthor) && c && /* @__PURE__ */ n(K, { children: e.authors?.[0]?.internaluser ? /* @__PURE__ */ n(
12736
+ (e?.config?.showtime || e.config?.showauthor) && c && /* @__PURE__ */ n(Y, { children: e.authors?.[0]?.internaluser ? /* @__PURE__ */ n(
12725
12737
  O,
12726
12738
  {
12727
12739
  block_subPublication: e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.autor,
@@ -13038,13 +13050,13 @@ function Cl() {
13038
13050
  function te(P) {
13039
13051
  return x(P) === i;
13040
13052
  }
13041
- function Y(P) {
13053
+ function K(P) {
13042
13054
  return x(P) === r;
13043
13055
  }
13044
13056
  function ie(P) {
13045
13057
  return x(P) === u;
13046
13058
  }
13047
- ae.AsyncMode = b, ae.ConcurrentMode = T, ae.ContextConsumer = R, ae.ContextProvider = H, ae.Element = Z, ae.ForwardRef = j, ae.Fragment = L, ae.Lazy = z, ae.Memo = se, ae.Portal = q, ae.Profiler = U, ae.StrictMode = I, ae.Suspense = M, ae.isAsyncMode = V, ae.isConcurrentMode = v, ae.isContextConsumer = E, ae.isContextProvider = B, ae.isElement = G, ae.isForwardRef = D, ae.isFragment = Q, ae.isLazy = F, ae.isMemo = W, ae.isPortal = X, ae.isProfiler = te, ae.isStrictMode = Y, ae.isSuspense = ie, ae.isValidElementType = N, ae.typeOf = x;
13059
+ ae.AsyncMode = b, ae.ConcurrentMode = T, ae.ContextConsumer = R, ae.ContextProvider = H, ae.Element = Z, ae.ForwardRef = j, ae.Fragment = L, ae.Lazy = z, ae.Memo = se, ae.Portal = q, ae.Profiler = U, ae.StrictMode = I, ae.Suspense = M, ae.isAsyncMode = V, ae.isConcurrentMode = v, ae.isContextConsumer = E, ae.isContextProvider = B, ae.isElement = G, ae.isForwardRef = D, ae.isFragment = Q, ae.isLazy = F, ae.isMemo = W, ae.isPortal = X, ae.isProfiler = te, ae.isStrictMode = K, ae.isSuspense = ie, ae.isValidElementType = N, ae.typeOf = x;
13048
13060
  })()), ae;
13049
13061
  }
13050
13062
  var Cn;
@@ -13212,8 +13224,8 @@ function xl() {
13212
13224
  function w(v) {
13213
13225
  if (process.env.NODE_ENV !== "production")
13214
13226
  var E = {}, B = 0;
13215
- function G(Q, F, W, X, te, Y, ie) {
13216
- if (X = X || h, Y = Y || W, ie !== s) {
13227
+ function G(Q, F, W, X, te, K, ie) {
13228
+ if (X = X || h, K = K || W, ie !== s) {
13217
13229
  if (m) {
13218
13230
  var P = new Error(
13219
13231
  "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"
@@ -13223,11 +13235,11 @@ function xl() {
13223
13235
  var ue = X + ":" + W;
13224
13236
  !E[ue] && // Avoid spamming the console because they are often not actionable except for lib authors
13225
13237
  B < 3 && (i(
13226
- "You are manually calling a React.PropTypes validation function for the `" + Y + "` prop on `" + X + "`. 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."
13238
+ "You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + X + "`. 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."
13227
13239
  ), E[ue] = !0, B++);
13228
13240
  }
13229
13241
  }
13230
- return F[W] == null ? Q ? F[W] === null ? new A("The " + te + " `" + Y + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new A("The " + te + " `" + Y + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : v(F, W, X, te, Y);
13242
+ return F[W] == null ? Q ? F[W] === null ? new A("The " + te + " `" + K + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new A("The " + te + " `" + K + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : v(F, W, X, te, K);
13231
13243
  }
13232
13244
  var D = G.bind(null, !1);
13233
13245
  return D.isRequired = G.bind(null, !0), D;
@@ -13236,9 +13248,9 @@ function xl() {
13236
13248
  function E(B, G, D, Q, F, W) {
13237
13249
  var X = B[G], te = I(X);
13238
13250
  if (te !== v) {
13239
- var Y = M(X);
13251
+ var K = M(X);
13240
13252
  return new A(
13241
- "Invalid " + Q + " `" + F + "` of type " + ("`" + Y + "` supplied to `" + D + "`, expected ") + ("`" + v + "`."),
13253
+ "Invalid " + Q + " `" + F + "` of type " + ("`" + K + "` supplied to `" + D + "`, expected ") + ("`" + v + "`."),
13242
13254
  { expectedType: v }
13243
13255
  );
13244
13256
  }
@@ -13259,9 +13271,9 @@ function xl() {
13259
13271
  return new A("Invalid " + Q + " `" + F + "` of type " + ("`" + X + "` supplied to `" + D + "`, expected an array."));
13260
13272
  }
13261
13273
  for (var te = 0; te < W.length; te++) {
13262
- var Y = v(W, te, D, Q, F + "[" + te + "]", s);
13263
- if (Y instanceof Error)
13264
- return Y;
13274
+ var K = v(W, te, D, Q, F + "[" + te + "]", s);
13275
+ if (K instanceof Error)
13276
+ return K;
13265
13277
  }
13266
13278
  return null;
13267
13279
  }
@@ -13325,9 +13337,9 @@ function xl() {
13325
13337
  return new A("Invalid " + Q + " `" + F + "` of type " + ("`" + X + "` supplied to `" + D + "`, expected an object."));
13326
13338
  for (var te in W)
13327
13339
  if (a(W, te)) {
13328
- var Y = v(W, te, D, Q, F + "." + te, s);
13329
- if (Y instanceof Error)
13330
- return Y;
13340
+ var K = v(W, te, D, Q, F + "." + te, s);
13341
+ if (K instanceof Error)
13342
+ return K;
13331
13343
  }
13332
13344
  return null;
13333
13345
  }
@@ -13344,8 +13356,8 @@ function xl() {
13344
13356
  ), o;
13345
13357
  }
13346
13358
  function G(D, Q, F, W, X) {
13347
- for (var te = [], Y = 0; Y < v.length; Y++) {
13348
- var ie = v[Y], P = ie(D, Q, F, W, X, s);
13359
+ for (var te = [], K = 0; K < v.length; K++) {
13360
+ var ie = v[K], P = ie(D, Q, F, W, X, s);
13349
13361
  if (P == null)
13350
13362
  return null;
13351
13363
  P.data && a(P.data, "expectedType") && te.push(P.data.expectedType);
@@ -13372,10 +13384,10 @@ function xl() {
13372
13384
  if (X !== "object")
13373
13385
  return new A("Invalid " + Q + " `" + F + "` of type `" + X + "` " + ("supplied to `" + D + "`, expected `object`."));
13374
13386
  for (var te in v) {
13375
- var Y = v[te];
13376
- if (typeof Y != "function")
13377
- return L(D, Q, F, te, M(Y));
13378
- var ie = Y(W, te, D, Q, F + "." + te, s);
13387
+ var K = v[te];
13388
+ if (typeof K != "function")
13389
+ return L(D, Q, F, te, M(K));
13390
+ var ie = K(W, te, D, Q, F + "." + te, s);
13379
13391
  if (ie)
13380
13392
  return ie;
13381
13393
  }
@@ -13389,16 +13401,16 @@ function xl() {
13389
13401
  if (X !== "object")
13390
13402
  return new A("Invalid " + Q + " `" + F + "` of type `" + X + "` " + ("supplied to `" + D + "`, expected `object`."));
13391
13403
  var te = t({}, B[G], v);
13392
- for (var Y in te) {
13393
- var ie = v[Y];
13394
- if (a(v, Y) && typeof ie != "function")
13395
- return L(D, Q, F, Y, M(ie));
13404
+ for (var K in te) {
13405
+ var ie = v[K];
13406
+ if (a(v, K) && typeof ie != "function")
13407
+ return L(D, Q, F, K, M(ie));
13396
13408
  if (!ie)
13397
13409
  return new A(
13398
- "Invalid " + Q + " `" + F + "` key `" + Y + "` supplied to `" + D + "`.\nBad object: " + JSON.stringify(B[G], null, " ") + `
13410
+ "Invalid " + Q + " `" + F + "` key `" + K + "` supplied to `" + D + "`.\nBad object: " + JSON.stringify(B[G], null, " ") + `
13399
13411
  Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
13400
13412
  );
13401
- var P = ie(W, Y, D, Q, F + "." + Y, s);
13413
+ var P = ie(W, K, D, Q, F + "." + K, s);
13402
13414
  if (P)
13403
13415
  return P;
13404
13416
  }
@@ -13941,7 +13953,7 @@ const Ba = Dl(Gl, {
13941
13953
  /* @__PURE__ */ n("button", { className: "close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none", onClick: N, children: /* @__PURE__ */ n(Je, {}) }),
13942
13954
  /* @__PURE__ */ n("h2", { className: "sass-pg-cmt-rp-title", children: c.reportAbuseTitle }),
13943
13955
  l === "loading" && /* @__PURE__ */ n("div", { className: "sass-pg-cmt-rp-loadingContainer", children: /* @__PURE__ */ n(Bs, {}) }),
13944
- l === "form" || l === "loading" ? /* @__PURE__ */ g(K, { children: [
13956
+ l === "form" || l === "loading" ? /* @__PURE__ */ g(Y, { children: [
13945
13957
  /* @__PURE__ */ n("div", { className: "sass-pg-cmt-rp-optionsContainer", children: y.map((x) => /* @__PURE__ */ g("label", { className: "sass-pg-cmt-rp-option", children: [
13946
13958
  /* @__PURE__ */ n(
13947
13959
  "input",
@@ -13980,7 +13992,7 @@ const Ba = Dl(Gl, {
13980
13992
  }
13981
13993
  )
13982
13994
  ] })
13983
- ] }) : /* @__PURE__ */ g(K, { children: [
13995
+ ] }) : /* @__PURE__ */ g(Y, { children: [
13984
13996
  /* @__PURE__ */ g("div", { className: "sass-pg-cmt-rp-successContainer", children: [
13985
13997
  /* @__PURE__ */ n("div", { className: "sass-pg-cmt-rp-thumbsUp", children: /* @__PURE__ */ n(
13986
13998
  "svg",
@@ -14373,7 +14385,7 @@ const Ms = ({ onClick: e, isDisabled: t, API_ENV: s, icon: a, handleGoogleLogin:
14373
14385
  w && (console.log("trigger3", { el: w }), w.click());
14374
14386
  });
14375
14387
  const A = m == "local" ? l : d && d !== "false" ? d : "";
14376
- return i ? /* @__PURE__ */ n("div", { className: "success-gif-container su-flex-center su-relative", children: /* @__PURE__ */ n("img", { className: "success-gif su-absolute", src: A + "/arte/" + c + "/Success.gif" }) }) : /* @__PURE__ */ g(K, { children: [
14388
+ return i ? /* @__PURE__ */ n("div", { className: "success-gif-container su-flex-center su-relative", children: /* @__PURE__ */ n("img", { className: "success-gif su-absolute", src: A + "/arte/" + c + "/Success.gif" }) }) : /* @__PURE__ */ g(Y, { children: [
14377
14389
  p && s.CONFIG_commentsV2 && /* @__PURE__ */ n(Wl, { API_ENV: s, icon: a, handleGoogleLogin: r, onClose: (w) => {
14378
14390
  w && h(!0), f(!1);
14379
14391
  } }),
@@ -14698,7 +14710,7 @@ const Ms = ({ onClick: e, isDisabled: t, API_ENV: s, icon: a, handleGoogleLogin:
14698
14710
  API_ENV: o
14699
14711
  }) => {
14700
14712
  const [c, m] = J(!0), [l, d] = J("");
14701
- return /* @__PURE__ */ n(K, { children: /* @__PURE__ */ g("div", { className: "comment-form anoninus-form su-p-8 su-relative", children: [
14713
+ return /* @__PURE__ */ n(Y, { children: /* @__PURE__ */ g("div", { className: "comment-form anoninus-form su-p-8 su-relative", children: [
14702
14714
  /* @__PURE__ */ n(
14703
14715
  Xl,
14704
14716
  {
@@ -14814,9 +14826,9 @@ const Ms = ({ onClick: e, isDisabled: t, API_ENV: s, icon: a, handleGoogleLogin:
14814
14826
  }, L = y?.comments && y.comments.length > 0, z = L ? m.commentHeaderMessageWithComments : m.commentHeaderMessageEmpty, se = /* @__PURE__ */ n("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ n(Bs, {}) }), q = () => {
14815
14827
  !window || !window.location || (document.cookie = `redirect_after_login=${window.location.pathname}; path=/; max-age=300`, window.location.pathname = "/auth/login");
14816
14828
  };
14817
- return /* @__PURE__ */ g(K, { children: [
14818
- /* @__PURE__ */ n("div", { className: "comments-container", children: /* @__PURE__ */ n(he, { title: o.CONFIG_commentsV2 || L || e ? m.commentsSectionTitle : !1, children: /* @__PURE__ */ g(K, { children: [
14819
- /* @__PURE__ */ n("div", { className: "comments-header", children: e && s ? /* @__PURE__ */ g(K, { children: [
14829
+ return /* @__PURE__ */ g(Y, { children: [
14830
+ /* @__PURE__ */ n("div", { className: "comments-container", children: /* @__PURE__ */ n(he, { title: o.CONFIG_commentsV2 || L || e ? m.commentsSectionTitle : !1, children: /* @__PURE__ */ g(Y, { children: [
14831
+ /* @__PURE__ */ n("div", { className: "comments-header", children: e && s ? /* @__PURE__ */ g(Y, { children: [
14820
14832
  /* @__PURE__ */ n(
14821
14833
  wl,
14822
14834
  {
@@ -14835,7 +14847,7 @@ const Ms = ({ onClick: e, isDisabled: t, API_ENV: s, icon: a, handleGoogleLogin:
14835
14847
  API_ENV: o
14836
14848
  }
14837
14849
  )
14838
- ] }) : o.CONFIG_commentsV2 ? /* @__PURE__ */ g(K, { children: [
14850
+ ] }) : o.CONFIG_commentsV2 ? /* @__PURE__ */ g(Y, { children: [
14839
14851
  /* @__PURE__ */ g("p", { className: "anonimus-message", children: [
14840
14852
  "¿Querés debatir con otros lectores? Comentá ahora de forma anónima o ",
14841
14853
  /* @__PURE__ */ n("button", { className: "su-border-none su-p-0", onClick: q, children: "INICIA SESIÓN AQUÍ" }),
@@ -14913,7 +14925,7 @@ function nd({
14913
14925
  texts: m
14914
14926
  // termsAndConditionsUrl,
14915
14927
  }) {
14916
- return /* @__PURE__ */ n(K, { children: /* @__PURE__ */ n(
14928
+ return /* @__PURE__ */ n(Y, { children: /* @__PURE__ */ n(
14917
14929
  sd,
14918
14930
  {
14919
14931
  isAuthenticated: e,
@@ -16569,7 +16581,7 @@ const Bn = {
16569
16581
  data: i.slice(0, m),
16570
16582
  paths: s.paths
16571
16583
  });
16572
- return /* @__PURE__ */ g(K, { children: [
16584
+ return /* @__PURE__ */ g(Y, { children: [
16573
16585
  /* @__PURE__ */ n(
16574
16586
  ts,
16575
16587
  {
@@ -18,7 +18,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
18
18
  src: url("${e.fontS3Url}") format('woff2');
19
19
  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;
20
20
  }
21
- `;return s.jsx(s.Fragment,{children:e.useS3Font?s.jsxs(s.Fragment,{children:[s.jsx("link",{rel:"preload",as:"font",href:e.fontS3Url,type:"font/woff2",crossOrigin:"anonymous"}),s.jsx("style",{dangerouslySetInnerHTML:{__html:t}})]}):s.jsx("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css2?${e.googleFontFamily}&display=${e.fontDisplay??"swap"}`})})},as={404:()=>{},home:()=>({"[author_replace]":"","[section_replace]":"home","[tag_replace]":"","[url_replace]":""}),slug:e=>({"[author_replace]":"","[section_replace]":e.pathname==="/index.html"?"home":e.slug??"","[tag_replace]":"","[url_replace]":""}),news:e=>({"[author_replace]":e.currentNew?.authors[0]?.name??"","[section_replace]":e.currentNew?.info?.section?.slug??"","[tag_replace]":Xt(e.currentNew?.keywords),"[url_replace]":ha(e.internalPath??"")}),seccion:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.seccion+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),tema:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.tema+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),"ultimas-noticias":e=>({"[author_replace]":"","[section_replace]":e.config?.paths["ultimas-noticias"]??"","[tag_replace]":"","[url_replace]":""}),video:e=>({"[author_replace]":"","[section_replace]":e.slug,"[tag_replace]":"","[url_replace]":""}),videos:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/videos/")[1]??"","[tag_replace]":"","[url_replace]":""}),pages:e=>({"[author_replace]":"","[section_replace]":e.slug??"","[tag_replace]":"","[url_replace]":""}),auth:e=>({"[author_replace]":"","[section_replace]":e.slug??"","[tag_replace]":"","[url_replace]":""}),contacto:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.contacto??"contacto","[tag_replace]":"","[url_replace]":""}),anuncia:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.anuncia??"anuncia","[tag_replace]":"","[url_replace]":""}),buscar:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.buscar??"","[tag_replace]":"","[url_replace]":""}),autor:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.autor+"/")[1]??"","[tag_replace]":"","[url_replace]":""})},Ta=e=>{if(!e)return e??"";if(e.search("/page/")===-1)return e.replace("/","");const t=e.split("/"),a=t.indexOf("page")-1;return a<0?e:(t[a]??"").replace("/","")},pe=e=>{const a=e.replace(/^\/|\/$/g,"").split("/"),n=a.indexOf("page");return n>0?`${a[n-1]??""}`:`${a[a.length-1]??""}`},xa={404:()=>"404",home:()=>"home",slug:e=>pe(e.pathname),news:e=>da(e.pathname)?.slug,seccion:e=>pe(e.pathname),tema:e=>pe(e.pathname),pages:e=>pe(e.pathname),auth:e=>pe(e.pathname),buscar:e=>pe(e.pathname),"ultimas-noticias":e=>pe(e.pathname),anuncia:e=>pe(e.pathname),contacto:e=>pe(e.pathname),autor:e=>pe(e.pathname),video:e=>pe(e.pathname),videos:e=>pe(e.pathname)},Xe=e=>{const t=e.split("/"),a=t[t.length-1]??"1";return Number(a)>0?Number(a):1},yo=(e,t=2)=>{if(!e||e.length===0)return[];const a=[];for(let n=0;n<t;n++){if(!e[n]||!e[n].preview)continue;const r=e[n].preview?.sizes;r&&(r.length>1?a.push({href:r[0]?.url??"",media:"(min-width: 900px)"},{href:r[1]?.url??"",media:"(max-width: 900px)"}):a.push({href:r[0]?.url??""}))}return a},Co=e=>{try{return JSON.stringify(e,null,2)}catch{return String(e)}},No=e=>{const{SERVICE_DEBUG:t,PUBLIC_API_HOST:a,PUBLIC_ENV:n,PUBLIC_PUBLICATION_ID:r}=G(),o=new Date().toISOString(),i=t?.projectName??"";return`<!doctype html>
21
+ `;return s.jsx(s.Fragment,{children:e.useS3Font?s.jsxs(s.Fragment,{children:[s.jsx("link",{rel:"preload",as:"font",media:"print",onLoad:a=>{a.currentTarget.onload=null,a.currentTarget.media="all"},href:e.fontS3Url,type:"font/woff2",crossOrigin:"anonymous"}),s.jsx("noscript",{children:s.jsx("link",{rel:"stylesheet",href:e.fontS3Url})}),s.jsx("style",{dangerouslySetInnerHTML:{__html:t}})]}):s.jsxs(s.Fragment,{children:[s.jsx("link",{rel:"stylesheet",media:"print",onLoad:a=>{a.currentTarget.onload=null,a.currentTarget.media="all"},href:`https://fonts.googleapis.com/css2?${e.googleFontFamily}&display=${e.fontDisplay??"swap"}`}),s.jsx("noscript",{children:s.jsx("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css2?${e.googleFontFamily}&display=${e.fontDisplay??"swap"}`})})]})})},as={404:()=>{},home:()=>({"[author_replace]":"","[section_replace]":"home","[tag_replace]":"","[url_replace]":""}),slug:e=>({"[author_replace]":"","[section_replace]":e.pathname==="/index.html"?"home":e.slug??"","[tag_replace]":"","[url_replace]":""}),news:e=>({"[author_replace]":e.currentNew?.authors[0]?.name??"","[section_replace]":e.currentNew?.info?.section?.slug??"","[tag_replace]":Xt(e.currentNew?.keywords),"[url_replace]":ha(e.internalPath??"")}),seccion:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.seccion+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),tema:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.tema+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),"ultimas-noticias":e=>({"[author_replace]":"","[section_replace]":e.config?.paths["ultimas-noticias"]??"","[tag_replace]":"","[url_replace]":""}),video:e=>({"[author_replace]":"","[section_replace]":e.slug,"[tag_replace]":"","[url_replace]":""}),videos:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/videos/")[1]??"","[tag_replace]":"","[url_replace]":""}),pages:e=>({"[author_replace]":"","[section_replace]":e.slug??"","[tag_replace]":"","[url_replace]":""}),auth:e=>({"[author_replace]":"","[section_replace]":e.slug??"","[tag_replace]":"","[url_replace]":""}),contacto:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.contacto??"contacto","[tag_replace]":"","[url_replace]":""}),anuncia:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.anuncia??"anuncia","[tag_replace]":"","[url_replace]":""}),buscar:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.buscar??"","[tag_replace]":"","[url_replace]":""}),autor:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.autor+"/")[1]??"","[tag_replace]":"","[url_replace]":""})},Ta=e=>{if(!e)return e??"";if(e.search("/page/")===-1)return e.replace("/","");const t=e.split("/"),a=t.indexOf("page")-1;return a<0?e:(t[a]??"").replace("/","")},pe=e=>{const a=e.replace(/^\/|\/$/g,"").split("/"),n=a.indexOf("page");return n>0?`${a[n-1]??""}`:`${a[a.length-1]??""}`},xa={404:()=>"404",home:()=>"home",slug:e=>pe(e.pathname),news:e=>da(e.pathname)?.slug,seccion:e=>pe(e.pathname),tema:e=>pe(e.pathname),pages:e=>pe(e.pathname),auth:e=>pe(e.pathname),buscar:e=>pe(e.pathname),"ultimas-noticias":e=>pe(e.pathname),anuncia:e=>pe(e.pathname),contacto:e=>pe(e.pathname),autor:e=>pe(e.pathname),video:e=>pe(e.pathname),videos:e=>pe(e.pathname)},Xe=e=>{const t=e.split("/"),a=t[t.length-1]??"1";return Number(a)>0?Number(a):1},yo=(e,t=2)=>{if(!e||e.length===0)return[];const a=[];for(let n=0;n<t;n++){if(!e[n]||!e[n].preview)continue;const r=e[n].preview?.sizes;r&&(r.length>1?a.push({href:r[0]?.url??"",media:"(min-width: 900px)"},{href:r[1]?.url??"",media:"(max-width: 900px)"}):a.push({href:r[0]?.url??""}))}return a},Co=e=>{try{return JSON.stringify(e,null,2)}catch{return String(e)}},No=e=>{const{SERVICE_DEBUG:t,PUBLIC_API_HOST:a,PUBLIC_ENV:n,PUBLIC_PUBLICATION_ID:r}=G(),o=new Date().toISOString(),i=t?.projectName??"";return`<!doctype html>
22
22
  <html lang="es">
23
23
  <head>
24
24
  <meta charset="utf-8" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sass-template-common",
3
- "version": "0.9.22",
3
+ "version": "0.9.24",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"