sass-template-common 0.2.53 → 0.2.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.
@@ -157,15 +157,15 @@ function jr() {
157
157
  (function(n, r) {
158
158
  e.exports = r();
159
159
  })(Ks, (function() {
160
- var n = 1e3, r = 6e4, s = 36e5, o = "millisecond", i = "second", c = "minute", d = "hour", l = "day", u = "week", h = "month", m = "quarter", p = "year", g = "date", A = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, _ = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, N = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
160
+ var n = 1e3, r = 6e4, s = 36e5, o = "millisecond", i = "second", c = "minute", d = "hour", l = "day", u = "week", h = "month", m = "quarter", p = "year", g = "date", A = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, N = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
161
161
  var U = ["th", "st", "nd", "rd"], T = M % 100;
162
162
  return "[" + M + (U[(T - 20) % 10] || U[T] || U[0]) + "]";
163
- } }, b = function(M, U, T) {
163
+ } }, _ = function(M, U, T) {
164
164
  var D = String(M);
165
165
  return !D || D.length >= U ? M : "" + Array(U + 1 - D.length).join(T) + M;
166
- }, E = { s: b, z: function(M) {
166
+ }, x = { s: _, z: function(M) {
167
167
  var U = -M.utcOffset(), T = Math.abs(U), D = Math.floor(T / 60), I = T % 60;
168
- return (U <= 0 ? "+" : "-") + b(D, 2, "0") + ":" + b(I, 2, "0");
168
+ return (U <= 0 ? "+" : "-") + _(D, 2, "0") + ":" + _(I, 2, "0");
169
169
  }, m: function M(U, T) {
170
170
  if (U.date() < T.date()) return -M(T, U);
171
171
  var D = 12 * (T.year() - U.year()) + (T.month() - U.month()), I = U.clone().add(D, h), z = T - I < 0, y = U.clone().add(D + (z ? -1 : 1), h);
@@ -176,34 +176,34 @@ function jr() {
176
176
  return { M: h, y: p, w: u, d: l, D: g, h: d, m: c, s: i, ms: o, Q: m }[M] || String(M || "").toLowerCase().replace(/s$/, "");
177
177
  }, u: function(M) {
178
178
  return M === void 0;
179
- } }, v = "en", x = {};
180
- x[v] = N;
179
+ } }, b = "en", E = {};
180
+ E[b] = N;
181
181
  var O = "$isDayjsObject", Q = function(M) {
182
- return M instanceof te || !(!M || !M[O]);
183
- }, ee = function M(U, T, D) {
182
+ return M instanceof ee || !(!M || !M[O]);
183
+ }, te = function M(U, T, D) {
184
184
  var I;
185
- if (!U) return v;
185
+ if (!U) return b;
186
186
  if (typeof U == "string") {
187
187
  var z = U.toLowerCase();
188
- x[z] && (I = z), T && (x[z] = T, I = z);
188
+ E[z] && (I = z), T && (E[z] = T, I = z);
189
189
  var y = U.split("-");
190
190
  if (!I && y.length > 1) return M(y[0]);
191
191
  } else {
192
192
  var S = U.name;
193
- x[S] = U, I = S;
193
+ E[S] = U, I = S;
194
194
  }
195
- return !D && I && (v = I), I || !D && v;
195
+ return !D && I && (b = I), I || !D && b;
196
196
  }, G = function(M, U) {
197
197
  if (Q(M)) return M.clone();
198
198
  var T = typeof U == "object" ? U : {};
199
- return T.date = M, T.args = arguments, new te(T);
200
- }, P = E;
201
- P.l = ee, P.i = Q, P.w = function(M, U) {
199
+ return T.date = M, T.args = arguments, new ee(T);
200
+ }, P = x;
201
+ P.l = te, P.i = Q, P.w = function(M, U) {
202
202
  return G(M, { locale: U.$L, utc: U.$u, x: U.$x, $offset: U.$offset });
203
203
  };
204
- var te = (function() {
204
+ var ee = (function() {
205
205
  function M(T) {
206
- this.$L = ee(T.locale, null, !0), this.parse(T), this.$x = this.$x || T.x || {}, this[O] = !0;
206
+ this.$L = te(T.locale, null, !0), this.parse(T), this.$x = this.$x || T.x || {}, this[O] = !0;
207
207
  }
208
208
  var U = M.prototype;
209
209
  return U.parse = function(T) {
@@ -307,7 +307,7 @@ function jr() {
307
307
  var we = $ < 12 ? "AM" : "PM";
308
308
  return R ? we.toLowerCase() : we;
309
309
  };
310
- return z.replace(_, (function($, ie) {
310
+ return z.replace(v, (function($, ie) {
311
311
  return ie || (function(R) {
312
312
  switch (R) {
313
313
  case "YY":
@@ -400,10 +400,10 @@ function jr() {
400
400
  }, U.daysInMonth = function() {
401
401
  return this.endOf(h).$D;
402
402
  }, U.$locale = function() {
403
- return x[this.$L];
403
+ return E[this.$L];
404
404
  }, U.locale = function(T, D) {
405
405
  if (!T) return this.$L;
406
- var I = this.clone(), z = ee(T, D, !0);
406
+ var I = this.clone(), z = te(T, D, !0);
407
407
  return z && (I.$L = z), I;
408
408
  }, U.clone = function() {
409
409
  return P.w(this.$d, this);
@@ -416,16 +416,16 @@ function jr() {
416
416
  }, U.toString = function() {
417
417
  return this.$d.toUTCString();
418
418
  }, M;
419
- })(), ce = te.prototype;
419
+ })(), ce = ee.prototype;
420
420
  return G.prototype = ce, [["$ms", o], ["$s", i], ["$m", c], ["$H", d], ["$W", l], ["$M", h], ["$y", p], ["$D", g]].forEach((function(M) {
421
421
  ce[M[1]] = function(U) {
422
422
  return this.$g(U, M[0], M[1]);
423
423
  };
424
424
  })), G.extend = function(M, U) {
425
- return M.$i || (M(U, te, G), M.$i = !0), G;
426
- }, G.locale = ee, G.isDayjs = Q, G.unix = function(M) {
425
+ return M.$i || (M(U, ee, G), M.$i = !0), G;
426
+ }, G.locale = te, G.isDayjs = Q, G.unix = function(M) {
427
427
  return G(1e3 * M);
428
- }, G.en = x[v], G.Ls = x, G.p = {}, G;
428
+ }, G.en = E[b], G.Ls = E, G.p = {}, G;
429
429
  }));
430
430
  })(on)), on.exports;
431
431
  }
@@ -444,19 +444,19 @@ function Xs() {
444
444
  return o.fromToBase(l, u, h, m);
445
445
  }
446
446
  s.en.relativeTime = i, o.fromToBase = function(l, u, h, m, p) {
447
- for (var g, A, w, _ = h.$locale().relativeTime || i, N = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], b = N.length, E = 0; E < b; E += 1) {
448
- var v = N[E];
449
- v.d && (g = m ? s(l).diff(h, v.d, !0) : h.diff(l, v.d, !0));
450
- var x = (n.rounding || Math.round)(Math.abs(g));
451
- if (w = g > 0, x <= v.r || !v.r) {
452
- x <= 1 && E > 0 && (v = N[E - 1]);
453
- var O = _[v.l];
454
- p && (x = p("" + x)), A = typeof O == "string" ? O.replace("%d", x) : O(x, u, v.l, w);
447
+ for (var g, A, w, v = h.$locale().relativeTime || i, N = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], _ = N.length, x = 0; x < _; x += 1) {
448
+ var b = N[x];
449
+ b.d && (g = m ? s(l).diff(h, b.d, !0) : h.diff(l, b.d, !0));
450
+ var E = (n.rounding || Math.round)(Math.abs(g));
451
+ if (w = g > 0, E <= b.r || !b.r) {
452
+ E <= 1 && x > 0 && (b = N[x - 1]);
453
+ var O = v[b.l];
454
+ p && (E = p("" + E)), A = typeof O == "string" ? O.replace("%d", E) : O(E, u, b.l, w);
455
455
  break;
456
456
  }
457
457
  }
458
458
  if (u) return A;
459
- var Q = w ? _.future : _.past;
459
+ var Q = w ? v.future : v.past;
460
460
  return typeof Q == "function" ? Q(A) : Q.replace("%s", A);
461
461
  }, o.to = function(l, u) {
462
462
  return c(l, u, this, !0);
@@ -525,21 +525,21 @@ function so() {
525
525
  };
526
526
  var h = d.utcOffset;
527
527
  d.utcOffset = function(A, w) {
528
- var _ = this.$utils().u;
529
- if (_(A)) return this.$u ? 0 : _(this.$offset) ? h.call(this) : this.$offset;
530
- if (typeof A == "string" && (A = (function(v) {
531
- v === void 0 && (v = "");
532
- var x = v.match(r);
533
- if (!x) return null;
534
- var O = ("" + x[0]).match(s) || ["-", 0, 0], Q = O[0], ee = 60 * +O[1] + +O[2];
535
- return ee === 0 ? 0 : Q === "+" ? ee : -ee;
528
+ var v = this.$utils().u;
529
+ if (v(A)) return this.$u ? 0 : v(this.$offset) ? h.call(this) : this.$offset;
530
+ if (typeof A == "string" && (A = (function(b) {
531
+ b === void 0 && (b = "");
532
+ var E = b.match(r);
533
+ if (!E) return null;
534
+ var O = ("" + E[0]).match(s) || ["-", 0, 0], Q = O[0], te = 60 * +O[1] + +O[2];
535
+ return te === 0 ? 0 : Q === "+" ? te : -te;
536
536
  })(A), A === null)) return this;
537
537
  var N = Math.abs(A) <= 16 ? 60 * A : A;
538
538
  if (N === 0) return this.utc(w);
539
- var b = this.clone();
540
- if (w) return b.$offset = N, b.$u = !1, b;
541
- var E = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
542
- return (b = this.local().add(N + E, n)).$offset = N, b.$x.$localOffset = E, b;
539
+ var _ = this.clone();
540
+ if (w) return _.$offset = N, _.$u = !1, _;
541
+ var x = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
542
+ return (_ = this.local().add(N + x, n)).$offset = N, _.$x.$localOffset = x, _;
543
543
  };
544
544
  var m = d.format;
545
545
  d.format = function(A) {
@@ -560,10 +560,10 @@ function so() {
560
560
  return A === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : p.call(this);
561
561
  };
562
562
  var g = d.diff;
563
- d.diff = function(A, w, _) {
564
- if (A && this.$u === A.$u) return g.call(this, A, w, _);
565
- var N = this.local(), b = c(A).local();
566
- return g.call(N, b, w, _);
563
+ d.diff = function(A, w, v) {
564
+ if (A && this.$u === A.$u) return g.call(this, A, w, v);
565
+ var N = this.local(), _ = c(A).local();
566
+ return g.call(N, _, w, v);
567
567
  };
568
568
  };
569
569
  }));
@@ -581,27 +581,27 @@ function lo() {
581
581
  return function(s, o, i) {
582
582
  var c, d = function(m, p, g) {
583
583
  g === void 0 && (g = {});
584
- var A = new Date(m), w = (function(_, N) {
584
+ var A = new Date(m), w = (function(v, N) {
585
585
  N === void 0 && (N = {});
586
- var b = N.timeZoneName || "short", E = _ + "|" + b, v = r[E];
587
- return v || (v = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: _, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: b }), r[E] = v), v;
586
+ var _ = N.timeZoneName || "short", x = v + "|" + _, b = r[x];
587
+ return b || (b = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: v, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: _ }), r[x] = b), b;
588
588
  })(p, g);
589
589
  return w.formatToParts(A);
590
590
  }, l = function(m, p) {
591
591
  for (var g = d(m, p), A = [], w = 0; w < g.length; w += 1) {
592
- var _ = g[w], N = _.type, b = _.value, E = n[N];
593
- E >= 0 && (A[E] = parseInt(b, 10));
592
+ var v = g[w], N = v.type, _ = v.value, x = n[N];
593
+ x >= 0 && (A[x] = parseInt(_, 10));
594
594
  }
595
- var v = A[3], x = v === 24 ? 0 : v, O = A[0] + "-" + A[1] + "-" + A[2] + " " + x + ":" + A[4] + ":" + A[5] + ":000", Q = +m;
595
+ var b = A[3], E = b === 24 ? 0 : b, O = A[0] + "-" + A[1] + "-" + A[2] + " " + E + ":" + A[4] + ":" + A[5] + ":000", Q = +m;
596
596
  return (i.utc(O).valueOf() - (Q -= Q % 1e3)) / 6e4;
597
597
  }, u = o.prototype;
598
598
  u.tz = function(m, p) {
599
599
  m === void 0 && (m = c);
600
- var g, A = this.utcOffset(), w = this.toDate(), _ = w.toLocaleString("en-US", { timeZone: m }), N = Math.round((w - new Date(_)) / 1e3 / 60), b = 15 * -Math.round(w.getTimezoneOffset() / 15) - N;
601
- if (!Number(b)) g = this.utcOffset(0, p);
602
- else if (g = i(_, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(b, !0), p) {
603
- var E = g.utcOffset();
604
- g = g.add(A - E, "minute");
600
+ var g, A = this.utcOffset(), w = this.toDate(), v = w.toLocaleString("en-US", { timeZone: m }), N = Math.round((w - new Date(v)) / 1e3 / 60), _ = 15 * -Math.round(w.getTimezoneOffset() / 15) - N;
601
+ if (!Number(_)) g = this.utcOffset(0, p);
602
+ else if (g = i(v, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(_, !0), p) {
603
+ var x = g.utcOffset();
604
+ g = g.add(A - x, "minute");
605
605
  }
606
606
  return g.$x.$timezone = m, g;
607
607
  }, u.offsetName = function(m) {
@@ -616,15 +616,15 @@ function lo() {
616
616
  var g = i(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
617
617
  return h.call(g, m, p).tz(this.$x.$timezone, !0);
618
618
  }, i.tz = function(m, p, g) {
619
- var A = g && p, w = g || p || c, _ = l(+i(), w);
619
+ var A = g && p, w = g || p || c, v = l(+i(), w);
620
620
  if (typeof m != "string") return i(m).tz(w);
621
- var N = (function(x, O, Q) {
622
- var ee = x - 60 * O * 1e3, G = l(ee, Q);
623
- if (O === G) return [ee, O];
624
- var P = l(ee -= 60 * (G - O) * 1e3, Q);
625
- return G === P ? [ee, G] : [x - 60 * Math.min(G, P) * 1e3, Math.max(G, P)];
626
- })(i.utc(m, A).valueOf(), _, w), b = N[0], E = N[1], v = i(b).utcOffset(E);
627
- return v.$x.$timezone = w, v;
621
+ var N = (function(E, O, Q) {
622
+ var te = E - 60 * O * 1e3, G = l(te, Q);
623
+ if (O === G) return [te, O];
624
+ var P = l(te -= 60 * (G - O) * 1e3, Q);
625
+ return G === P ? [te, G] : [E - 60 * Math.min(G, P) * 1e3, Math.max(G, P)];
626
+ })(i.utc(m, A).valueOf(), v, w), _ = N[0], x = N[1], b = i(_).utcOffset(x);
627
+ return b.$x.$timezone = w, b;
628
628
  }, i.tz.guess = function() {
629
629
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
630
630
  }, i.tz.setDefault = function(m) {
@@ -661,7 +661,17 @@ function fo(e) {
661
661
  return e && e.status === "fulfilled" ? e.value : null;
662
662
  }
663
663
  const Dt = (e, t, n) => ({
664
- authors: [],
664
+ authors: e.main.author ? [{
665
+ firstname: "",
666
+ lastname: "",
667
+ fullname: e.main.author ? e.main.author.toString() : "Redacción",
668
+ image: {
669
+ sizes: [],
670
+ description: ""
671
+ },
672
+ name: "",
673
+ internaluser: !1
674
+ }] : [],
665
675
  social: {
666
676
  description: "",
667
677
  images: { facebook: "", twitter: "" },
@@ -677,7 +687,8 @@ const Dt = (e, t, n) => ({
677
687
  },
678
688
  config: {
679
689
  showtime: t,
680
- showsubtitle: n
690
+ showsubtitle: n,
691
+ showauthor: !!e.main.author
681
692
  },
682
693
  main: {
683
694
  title: {
@@ -1835,16 +1846,16 @@ function xn(e, t, n) {
1835
1846
  return C.isArrayBuffer(g) || C.isTypedArray(g) ? d && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
1836
1847
  }
1837
1848
  function u(g, A, w) {
1838
- let _ = g;
1849
+ let v = g;
1839
1850
  if (g && !w && typeof g == "object") {
1840
1851
  if (C.endsWith(A, "{}"))
1841
1852
  A = r ? A : A.slice(0, -2), g = JSON.stringify(g);
1842
- else if (C.isArray(g) && Ni(g) || (C.isFileList(g) || C.endsWith(A, "[]")) && (_ = C.toArray(g)))
1843
- return A = ns(A), _.forEach(function(b, E) {
1844
- !(C.isUndefined(b) || b === null) && t.append(
1853
+ else if (C.isArray(g) && Ni(g) || (C.isFileList(g) || C.endsWith(A, "[]")) && (v = C.toArray(g)))
1854
+ return A = ns(A), v.forEach(function(_, x) {
1855
+ !(C.isUndefined(_) || _ === null) && t.append(
1845
1856
  // eslint-disable-next-line no-nested-ternary
1846
- i === !0 ? Qa([A], E, o) : i === null ? A : A + "[]",
1847
- l(b)
1857
+ i === !0 ? Qa([A], x, o) : i === null ? A : A + "[]",
1858
+ l(_)
1848
1859
  );
1849
1860
  }), !1;
1850
1861
  }
@@ -1859,14 +1870,14 @@ function xn(e, t, n) {
1859
1870
  if (!C.isUndefined(g)) {
1860
1871
  if (h.indexOf(g) !== -1)
1861
1872
  throw Error("Circular reference detected in " + A.join("."));
1862
- h.push(g), C.forEach(g, function(_, N) {
1863
- (!(C.isUndefined(_) || _ === null) && s.call(
1873
+ h.push(g), C.forEach(g, function(v, N) {
1874
+ (!(C.isUndefined(v) || v === null) && s.call(
1864
1875
  t,
1865
- _,
1876
+ v,
1866
1877
  C.isString(N) ? N.trim() : N,
1867
1878
  A,
1868
1879
  m
1869
- )) === !0 && p(_, A ? A.concat(N) : [N]);
1880
+ )) === !0 && p(v, A ? A.concat(N) : [N]);
1870
1881
  }), h.pop();
1871
1882
  }
1872
1883
  }
@@ -2537,16 +2548,16 @@ const ds = (e) => {
2537
2548
  }
2538
2549
  let w = new XMLHttpRequest();
2539
2550
  w.open(s.method.toUpperCase(), s.url, !0), w.timeout = s.timeout;
2540
- function _() {
2551
+ function v() {
2541
2552
  if (!w)
2542
2553
  return;
2543
- const b = Ne.from(
2554
+ const _ = Ne.from(
2544
2555
  "getAllResponseHeaders" in w && w.getAllResponseHeaders()
2545
- ), v = {
2556
+ ), b = {
2546
2557
  data: !c || c === "text" || c === "json" ? w.responseText : w.response,
2547
2558
  status: w.status,
2548
2559
  statusText: w.statusText,
2549
- headers: b,
2560
+ headers: _,
2550
2561
  config: e,
2551
2562
  request: w
2552
2563
  };
@@ -2554,28 +2565,28 @@ const ds = (e) => {
2554
2565
  n(O), A();
2555
2566
  }, function(O) {
2556
2567
  r(O), A();
2557
- }, v), w = null;
2568
+ }, b), w = null;
2558
2569
  }
2559
- "onloadend" in w ? w.onloadend = _ : w.onreadystatechange = function() {
2560
- !w || w.readyState !== 4 || w.status === 0 && !(w.responseURL && w.responseURL.indexOf("file:") === 0) || setTimeout(_);
2570
+ "onloadend" in w ? w.onloadend = v : w.onreadystatechange = function() {
2571
+ !w || w.readyState !== 4 || w.status === 0 && !(w.responseURL && w.responseURL.indexOf("file:") === 0) || setTimeout(v);
2561
2572
  }, w.onabort = function() {
2562
2573
  w && (r(new W("Request aborted", W.ECONNABORTED, e, w)), w = null);
2563
- }, w.onerror = function(E) {
2564
- const v = E && E.message ? E.message : "Network Error", x = new W(v, W.ERR_NETWORK, e, w);
2565
- x.event = E || null, r(x), w = null;
2574
+ }, w.onerror = function(x) {
2575
+ const b = x && x.message ? x.message : "Network Error", E = new W(b, W.ERR_NETWORK, e, w);
2576
+ E.event = x || null, r(E), w = null;
2566
2577
  }, w.ontimeout = function() {
2567
- let E = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
2568
- const v = s.transitional || ss;
2569
- s.timeoutErrorMessage && (E = s.timeoutErrorMessage), r(new W(
2570
- E,
2571
- v.clarifyTimeoutError ? W.ETIMEDOUT : W.ECONNABORTED,
2578
+ let x = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
2579
+ const b = s.transitional || ss;
2580
+ s.timeoutErrorMessage && (x = s.timeoutErrorMessage), r(new W(
2581
+ x,
2582
+ b.clarifyTimeoutError ? W.ETIMEDOUT : W.ECONNABORTED,
2572
2583
  e,
2573
2584
  w
2574
2585
  )), w = null;
2575
- }, o === void 0 && i.setContentType(null), "setRequestHeader" in w && C.forEach(i.toJSON(), function(E, v) {
2576
- w.setRequestHeader(v, E);
2577
- }), C.isUndefined(s.withCredentials) || (w.withCredentials = !!s.withCredentials), c && c !== "json" && (w.responseType = s.responseType), l && ([m, g] = An(l, !0), w.addEventListener("progress", m)), d && w.upload && ([h, p] = An(d), w.upload.addEventListener("progress", h), w.upload.addEventListener("loadend", p)), (s.cancelToken || s.signal) && (u = (b) => {
2578
- w && (r(!b || b.type ? new St(null, e, w) : b), w.abort(), w = null);
2586
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in w && C.forEach(i.toJSON(), function(x, b) {
2587
+ w.setRequestHeader(b, x);
2588
+ }), C.isUndefined(s.withCredentials) || (w.withCredentials = !!s.withCredentials), c && c !== "json" && (w.responseType = s.responseType), l && ([m, g] = An(l, !0), w.addEventListener("progress", m)), d && w.upload && ([h, p] = An(d), w.upload.addEventListener("progress", h), w.upload.addEventListener("loadend", p)), (s.cancelToken || s.signal) && (u = (_) => {
2589
+ w && (r(!_ || _.type ? new St(null, e, w) : _), w.abort(), w = null);
2579
2590
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
2580
2591
  const N = Vi(s.url);
2581
2592
  if (N && pe.protocols.indexOf(N) === -1) {
@@ -2698,9 +2709,9 @@ const ds = (e) => {
2698
2709
  };
2699
2710
  s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((g) => {
2700
2711
  !h[g] && (h[g] = (A, w) => {
2701
- let _ = A && A[g];
2702
- if (_)
2703
- return _.call(A);
2712
+ let v = A && A[g];
2713
+ if (v)
2714
+ return v.call(A);
2704
2715
  throw new W(`Response type '${g}' is not supported`, W.ERR_NOT_SUPPORT, w);
2705
2716
  });
2706
2717
  });
@@ -2726,59 +2737,59 @@ const ds = (e) => {
2726
2737
  let {
2727
2738
  url: A,
2728
2739
  method: w,
2729
- data: _,
2740
+ data: v,
2730
2741
  signal: N,
2731
- cancelToken: b,
2732
- timeout: E,
2733
- onDownloadProgress: v,
2734
- onUploadProgress: x,
2742
+ cancelToken: _,
2743
+ timeout: x,
2744
+ onDownloadProgress: b,
2745
+ onUploadProgress: E,
2735
2746
  responseType: O,
2736
2747
  headers: Q,
2737
- withCredentials: ee = "same-origin",
2748
+ withCredentials: te = "same-origin",
2738
2749
  fetchOptions: G
2739
2750
  } = ds(g), P = t || fetch;
2740
2751
  O = O ? (O + "").toLowerCase() : "text";
2741
- let te = ec([N, b && b.toAbortSignal()], E), ce = null;
2742
- const M = te && te.unsubscribe && (() => {
2743
- te.unsubscribe();
2752
+ let ee = ec([N, _ && _.toAbortSignal()], x), ce = null;
2753
+ const M = ee && ee.unsubscribe && (() => {
2754
+ ee.unsubscribe();
2744
2755
  });
2745
2756
  let U;
2746
2757
  try {
2747
- if (x && l && w !== "get" && w !== "head" && (U = await p(Q, _)) !== 0) {
2758
+ if (E && l && w !== "get" && w !== "head" && (U = await p(Q, v)) !== 0) {
2748
2759
  let S = new n(A, {
2749
2760
  method: "POST",
2750
- body: _,
2761
+ body: v,
2751
2762
  duplex: "half"
2752
2763
  }), q;
2753
- if (C.isFormData(_) && (q = S.headers.get("content-type")) && Q.setContentType(q), S.body) {
2764
+ if (C.isFormData(v) && (q = S.headers.get("content-type")) && Q.setContentType(q), S.body) {
2754
2765
  const [j, L] = Va(
2755
2766
  U,
2756
- An(Fa(x))
2767
+ An(Fa(E))
2757
2768
  );
2758
- _ = Wa(S.body, Ya, j, L);
2769
+ v = Wa(S.body, Ya, j, L);
2759
2770
  }
2760
2771
  }
2761
- C.isString(ee) || (ee = ee ? "include" : "omit");
2772
+ C.isString(te) || (te = te ? "include" : "omit");
2762
2773
  const T = o && "credentials" in n.prototype, D = {
2763
2774
  ...G,
2764
- signal: te,
2775
+ signal: ee,
2765
2776
  method: w.toUpperCase(),
2766
2777
  headers: Q.normalize().toJSON(),
2767
- body: _,
2778
+ body: v,
2768
2779
  duplex: "half",
2769
- credentials: T ? ee : void 0
2780
+ credentials: T ? te : void 0
2770
2781
  };
2771
2782
  ce = o && new n(A, D);
2772
2783
  let I = await (o ? P(ce, G) : P(A, D));
2773
2784
  const z = u && (O === "stream" || O === "response");
2774
- if (u && (v || z && M)) {
2785
+ if (u && (b || z && M)) {
2775
2786
  const S = {};
2776
2787
  ["status", "statusText", "headers"].forEach((H) => {
2777
2788
  S[H] = I[H];
2778
2789
  });
2779
- const q = C.toFiniteNumber(I.headers.get("content-length")), [j, L] = v && Va(
2790
+ const q = C.toFiniteNumber(I.headers.get("content-length")), [j, L] = b && Va(
2780
2791
  q,
2781
- An(Fa(v), !0)
2792
+ An(Fa(b), !0)
2782
2793
  ) || [];
2783
2794
  I = new r(
2784
2795
  Wa(I.body, Ya, j, () => {
@@ -3803,11 +3814,11 @@ async function W9({
3803
3814
  speculationType: g = "Common",
3804
3815
  preloadImageUrl: A,
3805
3816
  custom_Speculation: w,
3806
- custom_metadata: _,
3817
+ custom_metadata: v,
3807
3818
  custom_scriptReplaces: N,
3808
- head_custom_elements: b
3819
+ head_custom_elements: _
3809
3820
  }) {
3810
- const E = _ || await gc[s]({
3821
+ const x = v || await gc[s]({
3811
3822
  meta: n,
3812
3823
  config: m,
3813
3824
  currentNew: l,
@@ -3816,7 +3827,7 @@ async function W9({
3816
3827
  slug: i,
3817
3828
  texts: c,
3818
3829
  query: d
3819
- }), v = vo(E), x = N || Vr[s]({
3830
+ }), b = vo(x), E = N || Vr[s]({
3820
3831
  pathname: o,
3821
3832
  slug: i,
3822
3833
  config: m,
@@ -3826,7 +3837,7 @@ async function W9({
3826
3837
  return /* @__PURE__ */ f(J, { children: [
3827
3838
  /* @__PURE__ */ a("meta", { charSet: "utf-8" }),
3828
3839
  /* @__PURE__ */ a("meta", { name: "viewport", content: "width=device-width" }),
3829
- v,
3840
+ b,
3830
3841
  /* @__PURE__ */ a(Co, {}),
3831
3842
  t.ampConfig && m.ampOption && t.ampConfig_slugIsValid && /* @__PURE__ */ a("link", { rel: "amphtml", href: m.siteUrl + "/amp" + o }),
3832
3843
  t.preloadImages && l && l.preview?.sizes && /* @__PURE__ */ a(
@@ -3850,7 +3861,7 @@ async function W9({
3850
3861
  zr,
3851
3862
  {
3852
3863
  name: "headscripts",
3853
- replaces: x,
3864
+ replaces: E,
3854
3865
  banners: u
3855
3866
  }
3856
3867
  ),
@@ -3890,7 +3901,7 @@ async function W9({
3890
3901
  customSpeculation: w
3891
3902
  }
3892
3903
  ),
3893
- b
3904
+ _
3894
3905
  ] });
3895
3906
  }
3896
3907
  const Y9 = ({
@@ -3964,28 +3975,28 @@ function Cc({
3964
3975
  enableDrag: o,
3965
3976
  onIndexChange: i
3966
3977
  }) {
3967
- const [c, d] = K(!1), [l, u] = K(0), [h, m] = K(0), [p, g] = K(0), [A, w] = K(0), [_, N] = K(null), b = Dr(null), [E, v] = K(1), x = he(() => {
3978
+ const [c, d] = K(!1), [l, u] = K(0), [h, m] = K(0), [p, g] = K(0), [A, w] = K(0), [v, N] = K(null), _ = Dr(null), [x, b] = K(1), E = he(() => {
3968
3979
  if (s) return 1;
3969
- const y = b.current?.offsetWidth || window.innerWidth, S = n + r, q = Math.floor(y / S);
3980
+ const y = _.current?.offsetWidth || window.innerWidth, S = n + r, q = Math.floor(y / S);
3970
3981
  return Math.max(1, q);
3971
3982
  }, [s, n, r]);
3972
3983
  De(() => {
3973
3984
  const y = () => {
3974
- const S = x();
3975
- v(S);
3985
+ const S = E();
3986
+ b(S);
3976
3987
  };
3977
3988
  return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
3978
- }, [x]);
3989
+ }, [E]);
3979
3990
  const Q = he(() => {
3980
- const y = x();
3991
+ const y = E();
3981
3992
  return Math.max(0, t - y);
3982
- }, [t, x])(), ee = he(() => {
3983
- const y = x();
3993
+ }, [t, E])(), te = he(() => {
3994
+ const y = E();
3984
3995
  return y === 1 ? 1 : Math.max(1, Math.ceil(y / 2));
3985
- }, [x]), G = he(
3996
+ }, [E]), G = he(
3986
3997
  (y, S = 0) => {
3987
3998
  if (s) {
3988
- const q = b.current?.offsetWidth || window.innerWidth;
3999
+ const q = _.current?.offsetWidth || window.innerWidth;
3989
4000
  return -(y * (100 + r)) + S / q * 100;
3990
4001
  }
3991
4002
  return -(y * (n + r)) + S;
@@ -3993,7 +4004,7 @@ function Cc({
3993
4004
  [s, n, r]
3994
4005
  ), P = he(
3995
4006
  (y) => {
3996
- const S = b.current?.offsetWidth || window.innerWidth, q = x(), j = ee();
4007
+ const S = _.current?.offsetWidth || window.innerWidth, q = E(), j = te();
3997
4008
  if (s)
3998
4009
  return Math.abs(y) / S * 100 > 30 ? 1 : 0;
3999
4010
  {
@@ -4001,8 +4012,8 @@ function Cc({
4001
4012
  return H >= (q === 1 ? 0.2 : 0.3) ? q === 1 ? 1 : Math.min(Math.round(H), j) : 0;
4002
4013
  }
4003
4014
  },
4004
- [s, n, r, x, ee]
4005
- ), te = he(
4015
+ [s, n, r, E, te]
4016
+ ), ee = he(
4006
4017
  (y) => {
4007
4018
  o && (u(y), m(y), g(0), w(Date.now()), d(!0), document.body.classList.add("dragging"));
4008
4019
  },
@@ -4031,7 +4042,7 @@ function Cc({
4031
4042
  const F = Math.min(Q, e + V);
4032
4043
  i(F);
4033
4044
  }
4034
- d(!1), g(0), document.body.classList.remove("dragging"), document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", U), y.clientX === l && _?.dispatchEvent(new PointerEvent("click"));
4045
+ d(!1), g(0), document.body.classList.remove("dragging"), document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", U), y.clientX === l && v?.dispatchEvent(new PointerEvent("click"));
4035
4046
  },
4036
4047
  [
4037
4048
  c,
@@ -4044,18 +4055,18 @@ function Cc({
4044
4055
  i,
4045
4056
  P,
4046
4057
  M,
4047
- _
4058
+ v
4048
4059
  ]
4049
4060
  ), T = he(
4050
4061
  (y) => {
4051
- y.preventDefault(), ["a", "span"].includes(y.target?.localName) && N(y.target), te(y.clientX);
4062
+ y.preventDefault(), ["a", "span"].includes(y.target?.localName) && N(y.target), ee(y.clientX);
4052
4063
  },
4053
- [te]
4064
+ [ee]
4054
4065
  ), D = he(
4055
4066
  (y) => {
4056
- te(y.touches[0].clientX);
4067
+ ee(y.touches[0].clientX);
4057
4068
  },
4058
- [te]
4069
+ [ee]
4059
4070
  ), I = he(
4060
4071
  (y) => {
4061
4072
  c && (y.preventDefault(), ce(y.touches[0].clientX));
@@ -4069,19 +4080,19 @@ function Cc({
4069
4080
  );
4070
4081
  return De(() => {
4071
4082
  if (c)
4072
- return b.current?.addEventListener("mousemove", M), b.current?.addEventListener("mouseup", U), () => {
4073
- b.current?.removeEventListener(
4083
+ return _.current?.addEventListener("mousemove", M), _.current?.addEventListener("mouseup", U), () => {
4084
+ _.current?.removeEventListener(
4074
4085
  "mousemove",
4075
4086
  M
4076
- ), b.current?.removeEventListener("mouseup", U);
4087
+ ), _.current?.removeEventListener("mouseup", U);
4077
4088
  };
4078
4089
  }, [c, ce, U, M]), {
4079
4090
  isDragging: c,
4080
4091
  translateOffset: p,
4081
- carrouselRef: b,
4092
+ carrouselRef: _,
4082
4093
  maxIndex: Q,
4083
4094
  getTranslateValue: G,
4084
- actualVisibleItems: E,
4095
+ actualVisibleItems: x,
4085
4096
  dragHandlers: {
4086
4097
  onMouseDown: T,
4087
4098
  onTouchStart: D,
@@ -4111,10 +4122,10 @@ function J9(e) {
4111
4122
  isDragging: g,
4112
4123
  translateOffset: A,
4113
4124
  carrouselRef: w,
4114
- maxIndex: _,
4125
+ maxIndex: v,
4115
4126
  getTranslateValue: N,
4116
- actualVisibleItems: b,
4117
- dragHandlers: E
4127
+ actualVisibleItems: _,
4128
+ dragHandlers: x
4118
4129
  } = Cc({
4119
4130
  currentIndex: u,
4120
4131
  totalItems: l.length,
@@ -4123,25 +4134,25 @@ function J9(e) {
4123
4134
  fullPageWidth: i,
4124
4135
  enableDrag: d,
4125
4136
  onIndexChange: h
4126
- }), v = he(
4137
+ }), b = he(
4127
4138
  (G) => {
4128
- const P = Math.max(0, Math.min(G, _));
4139
+ const P = Math.max(0, Math.min(G, v));
4129
4140
  h(P);
4130
4141
  },
4131
- [_]
4132
- ), x = he(() => {
4133
- v(u - 1);
4134
- }, [u, v]), O = he(() => {
4135
- v(u + 1);
4136
- }, [u, v]);
4142
+ [v]
4143
+ ), E = he(() => {
4144
+ b(u - 1);
4145
+ }, [u, b]), O = he(() => {
4146
+ b(u + 1);
4147
+ }, [u, b]);
4137
4148
  if (!m) return;
4138
- const Q = N(u, A), ee = i ? `translateX(${Q}%)` : `translateX(${Q}px)`;
4149
+ const Q = N(u, A), te = i ? `translateX(${Q}%)` : `translateX(${Q}px)`;
4139
4150
  return /* @__PURE__ */ f("div", { className: `${n}- carrousel-container`, children: [
4140
4151
  u > 0 && /* @__PURE__ */ a(
4141
4152
  "button",
4142
4153
  {
4143
4154
  className: "visible-arrow left",
4144
- onClick: x,
4155
+ onClick: E,
4145
4156
  "aria-label": "Previous slide",
4146
4157
  style: { display: "flex" },
4147
4158
  children: /* @__PURE__ */ a(
@@ -4163,7 +4174,7 @@ function J9(e) {
4163
4174
  )
4164
4175
  }
4165
4176
  ),
4166
- u < _ && /* @__PURE__ */ a(
4177
+ u < v && /* @__PURE__ */ a(
4167
4178
  "button",
4168
4179
  {
4169
4180
  className: "visible-arrow right",
@@ -4199,13 +4210,13 @@ function J9(e) {
4199
4210
  margin: o === 0 ? "0" : "0 0.5rem 1rem",
4200
4211
  cursor: d ? g ? "grabbing" : "grab" : "default"
4201
4212
  },
4202
- ...E,
4213
+ ...x,
4203
4214
  children: l && l.map((G, P) => typeof G == "string" ? /* @__PURE__ */ a(
4204
4215
  "section",
4205
4216
  {
4206
4217
  className: "card",
4207
4218
  style: {
4208
- transform: ee,
4219
+ transform: te,
4209
4220
  transition: g ? "none" : "transform 300ms ease",
4210
4221
  minWidth: i ? "100%" : s,
4211
4222
  width: "min-content",
@@ -4220,7 +4231,7 @@ function J9(e) {
4220
4231
  {
4221
4232
  className: "card",
4222
4233
  style: {
4223
- transform: ee,
4234
+ transform: te,
4224
4235
  transition: g ? "none" : "transform 300ms ease",
4225
4236
  minWidth: i ? "100%" : s,
4226
4237
  width: "min-content",
@@ -4234,17 +4245,17 @@ function J9(e) {
4234
4245
  }
4235
4246
  ),
4236
4247
  c && /* @__PURE__ */ a("nav", { className: "carrousel-pagination", children: Array.from(
4237
- { length: Math.ceil(l.length / b) },
4248
+ { length: Math.ceil(l.length / _) },
4238
4249
  (G, P) => {
4239
- const te = Math.floor(u / b) === P;
4250
+ const ee = Math.floor(u / _) === P;
4240
4251
  return /* @__PURE__ */ a(
4241
4252
  "li",
4242
4253
  {
4243
- className: te ? "active" : "",
4244
- onClick: () => v(P * b),
4254
+ className: ee ? "active" : "",
4255
+ onClick: () => b(P * _),
4245
4256
  style: {
4246
4257
  cursor: "pointer",
4247
- backgroundColor: te ? "var(--carrousel-pagination-background-color)" : "var(--carrousel-pagination-background-color-white)"
4258
+ backgroundColor: ee ? "var(--carrousel-pagination-background-color)" : "var(--carrousel-pagination-background-color-white)"
4248
4259
  }
4249
4260
  },
4250
4261
  P
@@ -9445,7 +9456,7 @@ const c3 = (e) => {
9445
9456
  let l;
9446
9457
  if (n.forEach((N) => {
9447
9458
  Array.isArray(N) && (l = N.find(
9448
- (b) => d.replaceAll("/", "|").includes(b?.info.link.internal || "")
9459
+ (_) => d.replaceAll("/", "|").includes(_?.info.link.internal || "")
9449
9460
  ));
9450
9461
  }), !l) {
9451
9462
  o = o.replace("ck-related-news", "ck-related-news-empty");
@@ -9453,10 +9464,10 @@ const c3 = (e) => {
9453
9464
  }
9454
9465
  const u = l.preview?.sizes?.[0], h = u ? await me(u.url) : "", m = l.info.section?.url ?? "#", p = l.info.section?.name ?? "Sección", g = l.info.link?.url ?? "#", A = l.main?.title.article ?? "Título", w = (await Promise.all(
9455
9466
  l.preview?.sizes?.map(async (N) => {
9456
- const b = await me(N.url);
9457
- return N.width < 200 ? `<source srcset="${b}" media="(width < 750px)"/>` : `<source srcset="${b}" media="(width >= 750px)"/>`;
9467
+ const _ = await me(N.url);
9468
+ return N.width < 200 ? `<source srcset="${_}" media="(width < 750px)"/>` : `<source srcset="${_}" media="(width >= 750px)"/>`;
9458
9469
  })
9459
- )).reduce((N, b) => N += b, ""), _ = `
9470
+ )).reduce((N, _) => N += _, ""), v = `
9460
9471
  <span data-src="${d}">
9461
9472
  <picture style='display: flex'>
9462
9473
  ${w}
@@ -9468,7 +9479,7 @@ const c3 = (e) => {
9468
9479
  </div>
9469
9480
  </span>
9470
9481
  `;
9471
- o = o.replace(c, _);
9482
+ o = o.replace(c, v);
9472
9483
  }
9473
9484
  return o;
9474
9485
  }, $2 = (e) => e.replace(/<p>(\s|&nbsp;)+<\/p>/g, ""), W2 = (e) => {
@@ -9506,7 +9517,7 @@ async function K2(e, t) {
9506
9517
  let A = "";
9507
9518
  const w = d.match(
9508
9519
  /<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
9509
- ), _ = w && w[1] ? w[1].trim() : "";
9520
+ ), v = w && w[1] ? w[1].trim() : "";
9510
9521
  g.info && g.info.type === "video-youtube" ? A = `<iframe
9511
9522
  loading="lazy"
9512
9523
  frameborder="0"
@@ -9522,7 +9533,7 @@ async function K2(e, t) {
9522
9533
  allowfullscreen
9523
9534
  style="width: 100%; height: auto; min-height: 400px;"
9524
9535
  src="${g.main?.code || ""}"></iframe>` : A = g.main?.code || "";
9525
- const N = _ || g.main?.description || "";
9536
+ const N = v || g.main?.description || "";
9526
9537
  h = `
9527
9538
  <figure class="videoFigure">
9528
9539
  ${p && p.data && p.data.data ? `<script type="application/ld+json">${ga(
@@ -9912,25 +9923,25 @@ const u0 = (e) => /* @__PURE__ */ a(
9912
9923
  const u = l[0], h = l[2] ?? "";
9913
9924
  i.add(h);
9914
9925
  const m = u.match(/<img\b[^>]*\balt=["']([^"']*)["']/), p = m ? m[1] : "imagen", g = h.match(/__scale=([^&"']+)/), A = g ? decodeURIComponent(g[1]) : null;
9915
- let w = 0, _ = 0;
9926
+ let w = 0, v = 0;
9916
9927
  if (A) {
9917
- const x = A.match(/w:(\d+)/), O = A.match(/h:(\d+)/);
9918
- w = x ? parseInt(x[1]) : 0, _ = O ? parseInt(O[1]) : 0;
9928
+ const E = A.match(/w:(\d+)/), O = A.match(/h:(\d+)/);
9929
+ w = E ? parseInt(E[1]) : 0, v = O ? parseInt(O[1]) : 0;
9919
9930
  }
9920
- const b = {
9931
+ const _ = {
9921
9932
  preview: {
9922
9933
  sizes: [
9923
9934
  {
9924
- scale: A || `w:${w},h:${_},t:2`,
9935
+ scale: A || `w:${w},h:${v},t:2`,
9925
9936
  url: h,
9926
9937
  width: w,
9927
- height: _
9938
+ height: v
9928
9939
  }
9929
9940
  ],
9930
9941
  original: {
9931
9942
  url: h.split("?")[0],
9932
9943
  width: w,
9933
- height: _
9944
+ height: v
9934
9945
  },
9935
9946
  copyright: !1,
9936
9947
  description: p,
@@ -9938,33 +9949,33 @@ const u0 = (e) => /* @__PURE__ */ a(
9938
9949
  },
9939
9950
  isLarge: !1,
9940
9951
  priorityHigh: !1
9941
- }, v = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(b))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
9942
- r = r.replace(u, v);
9952
+ }, b = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(_))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
9953
+ r = r.replace(u, b);
9943
9954
  }
9944
9955
  const c = /<img\b[^>]*\bsrc=["']([^"']+)["'][^>]*>/g, d = [...r.matchAll(c)];
9945
9956
  for (const l of d) {
9946
9957
  const u = l[0], h = l[1] ?? "";
9947
9958
  if (i.has(h)) continue;
9948
9959
  const m = u.match(/\balt=["']([^"']*)["']/), p = m ? m[1] : "imagen", g = h.match(/__scale=([^&"']+)/), A = g ? decodeURIComponent(g[1]) : null;
9949
- let w = 0, _ = 0;
9960
+ let w = 0, v = 0;
9950
9961
  if (A) {
9951
- const x = A.match(/w:(\d+)/), O = A.match(/h:(\d+)/);
9952
- w = x ? parseInt(x[1]) : 0, _ = O ? parseInt(O[1]) : 0;
9962
+ const E = A.match(/w:(\d+)/), O = A.match(/h:(\d+)/);
9963
+ w = E ? parseInt(E[1]) : 0, v = O ? parseInt(O[1]) : 0;
9953
9964
  }
9954
- const b = {
9965
+ const _ = {
9955
9966
  preview: {
9956
9967
  sizes: [
9957
9968
  {
9958
- scale: A || `w:${w},h:${_},t:2`,
9969
+ scale: A || `w:${w},h:${v},t:2`,
9959
9970
  url: h,
9960
9971
  width: w,
9961
- height: _
9972
+ height: v
9962
9973
  }
9963
9974
  ],
9964
9975
  original: {
9965
9976
  url: h.split("?")[0],
9966
9977
  width: w,
9967
- height: _
9978
+ height: v
9968
9979
  },
9969
9980
  copyright: !1,
9970
9981
  description: p,
@@ -9972,8 +9983,8 @@ const u0 = (e) => /* @__PURE__ */ a(
9972
9983
  },
9973
9984
  isLarge: !1,
9974
9985
  priorityHigh: !1
9975
- }, v = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(b))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
9976
- r = r.replace(u, v);
9986
+ }, b = `<div data-hydrate="ImageOffline" data-props="${encodeURIComponent(JSON.stringify(_))}"><div class="_imagePlaceholder_ooa5j_98"></div></div>`;
9987
+ r = r.replace(u, b);
9977
9988
  }
9978
9989
  return r;
9979
9990
  }, g0 = (e, t) => {
@@ -10035,11 +10046,11 @@ const u0 = (e) => /* @__PURE__ */ a(
10035
10046
  );
10036
10047
  if (!l || !l[0]) continue;
10037
10048
  const u = l[0].preview?.sizes?.[0], h = u ? await me(u.url) : "", m = l[0].info.section?.url ?? "#", p = l[0].info.section?.name ?? "Sección", g = l[0].info.link?.url ?? "#", A = l[0].main?.title.article ?? "Título", w = (await Promise.all(
10038
- l[0].preview?.sizes?.map(async (N, b) => {
10039
- const E = await me(N.url);
10040
- return b === 0 ? `<source srcset="${E}" media="(width >= 900px)"/>` : `<source srcset="${E}" media="(width < 900px)"/>`;
10049
+ l[0].preview?.sizes?.map(async (N, _) => {
10050
+ const x = await me(N.url);
10051
+ return _ === 0 ? `<source srcset="${x}" media="(width >= 900px)"/>` : `<source srcset="${x}" media="(width < 900px)"/>`;
10041
10052
  })
10042
- )).reduce((N, b) => N += b, ""), _ = `
10053
+ )).reduce((N, _) => N += _, ""), v = `
10043
10054
  <span data-src="${d}">
10044
10055
  <picture style='display: flex'>
10045
10056
  ${w}
@@ -10051,7 +10062,7 @@ const u0 = (e) => /* @__PURE__ */ a(
10051
10062
  </div>
10052
10063
  </span>
10053
10064
  `;
10054
- o = o.replace(c, _);
10065
+ o = o.replace(c, v);
10055
10066
  }
10056
10067
  return o;
10057
10068
  };
@@ -10065,81 +10076,81 @@ async function w0(e, t) {
10065
10076
  let d = 1, l = c;
10066
10077
  const u = e.length;
10067
10078
  for (; l < u && d > 0; ) {
10068
- const N = e.indexOf("<div", l), b = e.indexOf("</div>", l);
10069
- if (b === -1) {
10079
+ const v = e.indexOf("<div", l), N = e.indexOf("</div>", l);
10080
+ if (N === -1) {
10070
10081
  l = u;
10071
10082
  break;
10072
10083
  }
10073
- N !== -1 && N < b ? (d += 1, l = N + 4) : (d -= 1, l = b + 6);
10074
- }
10075
- const h = l, m = e.slice(i, h), p = f0(m);
10076
- let g = null;
10077
- const A = /<span\b([^>]*)>/gi;
10078
- let w;
10079
- for (; (w = A.exec(p)) !== null; ) {
10080
- const N = w[1];
10081
- if (!N) break;
10082
- if (/data-type\s*=\s*["']?video["']?/i.test(N)) {
10083
- const b = N.match(/data-src\s*=\s*["']([^"']+)["']/i);
10084
- if (b) {
10085
- g = b[1] ?? "";
10084
+ v !== -1 && v < N ? (d += 1, l = v + 4) : (d -= 1, l = N + 6);
10085
+ }
10086
+ const h = l, m = e.slice(i, h);
10087
+ let p = null;
10088
+ const g = /<span\b([^>]*)>/gi;
10089
+ let A;
10090
+ for (; (A = g.exec(m)) !== null; ) {
10091
+ const v = A[1];
10092
+ if (!v) break;
10093
+ if (/data-type\s*=\s*["']?video["']?/i.test(v)) {
10094
+ const N = v.match(/data-src\s*=\s*["']([^"']+)["']/i);
10095
+ if (N) {
10096
+ p = N[1] ?? "";
10086
10097
  break;
10087
10098
  }
10088
10099
  }
10089
10100
  }
10090
- if (!g) {
10091
- const N = p.match(
10101
+ if (!p) {
10102
+ const v = m.match(
10092
10103
  /<span\b[^>]*data-src=["'][^"']+["'][^>]*>/i
10093
10104
  );
10094
- if (N) {
10095
- const b = N[0].match(/data-src\s*=\s*["']([^"']+)["']/i);
10096
- b && (g = b[1] ?? "");
10105
+ if (v) {
10106
+ const N = v[0].match(/data-src\s*=\s*["']([^"']+)["']/i);
10107
+ N && (p = N[1] ?? "");
10097
10108
  }
10098
10109
  }
10099
- let _ = "";
10100
- if (g)
10110
+ let w = "";
10111
+ if (p)
10101
10112
  try {
10102
- const N = await t.iframe({ path: g }), b = t.schema ? await t.schema(g) : null;
10103
- if (N && N.data) {
10104
- const E = N.data.data[0];
10105
- let v = "";
10106
- const x = p.match(
10113
+ const v = await t.iframe({ path: p }), N = t.schema ? await t.schema(p) : null;
10114
+ if (v && v.data) {
10115
+ const _ = v.data.data[0];
10116
+ let x = "";
10117
+ const b = m.match(
10107
10118
  /<span\b[^>]*class=["']video__title["'][^>]*>([\s\S]*?)<\/span>/i
10108
- ), O = x && x[1] ? x[1].trim() : "";
10109
- E.info && E.info.type === "video-youtube" ? v = `<iframe
10119
+ ), E = b && b[1] ? b[1].trim() : "";
10120
+ _.info && _.info.type === "video-youtube" ? x = `<iframe
10110
10121
  loading="lazy"
10111
10122
  frameborder="0"
10112
10123
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
10113
10124
  referrerpolicy="strict-origin-when-cross-origin"
10114
10125
  allowfullscreen
10115
10126
  style="position: relative!important;"
10116
- src="https://www.youtube.com/embed/${E.main?.code || E.main?.youtubeid || ""}"></iframe>` : E.info && E.info.type === "video-link" ? v = `<iframe
10127
+ src="https://www.youtube.com/embed/${_.main?.code || _.main?.youtubeid || ""}"></iframe>` : _.info && _.info.type === "video-link" ? x = `<iframe
10117
10128
  loading="lazy"
10118
10129
  frameborder="0"
10119
10130
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
10120
10131
  referrerpolicy="strict-origin-when-cross-origin"
10121
10132
  allowfullscreen
10122
10133
  style="position: relative!important;"
10123
- src="${E.main?.code || ""}"></iframe>` : v = E.main?.code || "";
10124
- const Q = O || E.main?.description || "";
10125
- _ = `
10134
+ src="${_.main?.code || ""}"></iframe>` : x = _.main?.code || "";
10135
+ const O = E || _.main?.description || "";
10136
+ w = `
10126
10137
  <figure class="videoFigure">
10127
- ${b && b.data && b.data.data ? `<script type="application/ld+json">${ks(
10128
- JSON.stringify(b.data.data)
10138
+ ${N && N.data && N.data.data ? `<script type="application/ld+json">${ks(
10139
+ JSON.stringify(N.data.data)
10129
10140
  )}<\/script>` : ""}
10130
- ${v}
10131
- <figcaption>${Q}</figcaption>
10141
+ ${x}
10142
+ <figcaption>${O}</figcaption>
10132
10143
  </figure>
10133
10144
  `;
10134
10145
  }
10135
- } catch (N) {
10136
- console.error("insertVideos error for", g, N), _ = "";
10146
+ } catch (v) {
10147
+ console.error("insertVideos error for", p, v), w = "";
10137
10148
  }
10138
10149
  else
10139
- _ = p;
10140
- r = h, n += _, s.lastIndex = h;
10150
+ w = m;
10151
+ r = h, n += w, s.lastIndex = h;
10141
10152
  }
10142
- return n += e.slice(r), n;
10153
+ return n += e.slice(r), n = f0(n), n;
10143
10154
  }
10144
10155
  async function y0(e) {
10145
10156
  const {
@@ -10299,20 +10310,20 @@ const v0 = "_content_cu8lm_1", b0 = "_title_cu8lm_18", pr = {
10299
10310
  }, I0 = "_content_156j7_1", Ar = {
10300
10311
  content: I0
10301
10312
  }, st = {
10302
- imagen: "imagen",
10303
10313
  videoEmbedded: "videoEmbedded",
10304
10314
  videoYouTube: "videoYouTube",
10305
- iframe: "iframe"
10315
+ iframe: "iframe",
10316
+ fotoGaleria: "fotogaleria"
10306
10317
  }, k0 = {
10307
10318
  [st.videoEmbedded]: C0,
10308
10319
  [st.videoYouTube]: S0,
10309
10320
  [st.iframe]: T0
10310
10321
  }, U0 = ({ news: e, commonServices: t }) => {
10311
10322
  const { config: n, hascontent: r, info: s } = e, o = n.articlepreview, i = s.link.internal, c = r?.hasgalleryimages;
10312
- if (o === st.imagen && c)
10323
+ if (o === st.fotoGaleria && c)
10313
10324
  return /* @__PURE__ */ a("div", { className: Ar.content, children: /* @__PURE__ */ a(Is, { newsformated: e, internal: i }) });
10314
10325
  const d = o ? k0[o] : null;
10315
- return console.log("PreviewComponent", d), d ? /* @__PURE__ */ a("div", { className: Ar.content, children: /* @__PURE__ */ a(
10326
+ return d ? /* @__PURE__ */ a("div", { className: Ar.content, children: /* @__PURE__ */ a(
10316
10327
  d,
10317
10328
  {
10318
10329
  newsformated: e,
@@ -10645,7 +10656,7 @@ const yr = {
10645
10656
  st.videoYouTube,
10646
10657
  st.iframe
10647
10658
  ];
10648
- return !!(r === st.imagen && n?.hasgalleryimages || s.includes(r));
10659
+ return !!(r === st.fotoGaleria && n?.hasgalleryimages || s.includes(r));
10649
10660
  }, A3 = async (e) => {
10650
10661
  const {
10651
10662
  custom_complement: t,
@@ -11675,78 +11686,78 @@ var Nr;
11675
11686
  function Xg() {
11676
11687
  if (Nr) return ne;
11677
11688
  Nr = 1;
11678
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
11679
- function b(v) {
11680
- if (typeof v == "object" && v !== null) {
11681
- var x = v.$$typeof;
11682
- switch (x) {
11689
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
11690
+ function _(b) {
11691
+ if (typeof b == "object" && b !== null) {
11692
+ var E = b.$$typeof;
11693
+ switch (E) {
11683
11694
  case t:
11684
- switch (v = v.type, v) {
11695
+ switch (b = b.type, b) {
11685
11696
  case d:
11686
11697
  case l:
11687
11698
  case r:
11688
11699
  case o:
11689
11700
  case s:
11690
11701
  case h:
11691
- return v;
11702
+ return b;
11692
11703
  default:
11693
- switch (v = v && v.$$typeof, v) {
11704
+ switch (b = b && b.$$typeof, b) {
11694
11705
  case c:
11695
11706
  case u:
11696
11707
  case g:
11697
11708
  case p:
11698
11709
  case i:
11699
- return v;
11710
+ return b;
11700
11711
  default:
11701
- return x;
11712
+ return E;
11702
11713
  }
11703
11714
  }
11704
11715
  case n:
11705
- return x;
11706
- }
11707
- }
11708
- }
11709
- function E(v) {
11710
- return b(v) === l;
11711
- }
11712
- return ne.AsyncMode = d, ne.ConcurrentMode = l, ne.ContextConsumer = c, ne.ContextProvider = i, ne.Element = t, ne.ForwardRef = u, ne.Fragment = r, ne.Lazy = g, ne.Memo = p, ne.Portal = n, ne.Profiler = o, ne.StrictMode = s, ne.Suspense = h, ne.isAsyncMode = function(v) {
11713
- return E(v) || b(v) === d;
11714
- }, ne.isConcurrentMode = E, ne.isContextConsumer = function(v) {
11715
- return b(v) === c;
11716
- }, ne.isContextProvider = function(v) {
11717
- return b(v) === i;
11718
- }, ne.isElement = function(v) {
11719
- return typeof v == "object" && v !== null && v.$$typeof === t;
11720
- }, ne.isForwardRef = function(v) {
11721
- return b(v) === u;
11722
- }, ne.isFragment = function(v) {
11723
- return b(v) === r;
11724
- }, ne.isLazy = function(v) {
11725
- return b(v) === g;
11726
- }, ne.isMemo = function(v) {
11727
- return b(v) === p;
11728
- }, ne.isPortal = function(v) {
11729
- return b(v) === n;
11730
- }, ne.isProfiler = function(v) {
11731
- return b(v) === o;
11732
- }, ne.isStrictMode = function(v) {
11733
- return b(v) === s;
11734
- }, ne.isSuspense = function(v) {
11735
- return b(v) === h;
11736
- }, ne.isValidElementType = function(v) {
11737
- return typeof v == "string" || typeof v == "function" || v === r || v === l || v === o || v === s || v === h || v === m || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === p || v.$$typeof === i || v.$$typeof === c || v.$$typeof === u || v.$$typeof === w || v.$$typeof === _ || v.$$typeof === N || v.$$typeof === A);
11738
- }, ne.typeOf = b, ne;
11716
+ return E;
11717
+ }
11718
+ }
11719
+ }
11720
+ function x(b) {
11721
+ return _(b) === l;
11722
+ }
11723
+ return ne.AsyncMode = d, ne.ConcurrentMode = l, ne.ContextConsumer = c, ne.ContextProvider = i, ne.Element = t, ne.ForwardRef = u, ne.Fragment = r, ne.Lazy = g, ne.Memo = p, ne.Portal = n, ne.Profiler = o, ne.StrictMode = s, ne.Suspense = h, ne.isAsyncMode = function(b) {
11724
+ return x(b) || _(b) === d;
11725
+ }, ne.isConcurrentMode = x, ne.isContextConsumer = function(b) {
11726
+ return _(b) === c;
11727
+ }, ne.isContextProvider = function(b) {
11728
+ return _(b) === i;
11729
+ }, ne.isElement = function(b) {
11730
+ return typeof b == "object" && b !== null && b.$$typeof === t;
11731
+ }, ne.isForwardRef = function(b) {
11732
+ return _(b) === u;
11733
+ }, ne.isFragment = function(b) {
11734
+ return _(b) === r;
11735
+ }, ne.isLazy = function(b) {
11736
+ return _(b) === g;
11737
+ }, ne.isMemo = function(b) {
11738
+ return _(b) === p;
11739
+ }, ne.isPortal = function(b) {
11740
+ return _(b) === n;
11741
+ }, ne.isProfiler = function(b) {
11742
+ return _(b) === o;
11743
+ }, ne.isStrictMode = function(b) {
11744
+ return _(b) === s;
11745
+ }, ne.isSuspense = function(b) {
11746
+ return _(b) === h;
11747
+ }, ne.isValidElementType = function(b) {
11748
+ return typeof b == "string" || typeof b == "function" || b === r || b === l || b === o || b === s || b === h || b === m || typeof b == "object" && b !== null && (b.$$typeof === g || b.$$typeof === p || b.$$typeof === i || b.$$typeof === c || b.$$typeof === u || b.$$typeof === w || b.$$typeof === v || b.$$typeof === N || b.$$typeof === A);
11749
+ }, ne.typeOf = _, ne;
11739
11750
  }
11740
11751
  var ae = {};
11741
11752
  var Sr;
11742
11753
  function ep() {
11743
11754
  return Sr || (Sr = 1, process.env.NODE_ENV !== "production" && (function() {
11744
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
11745
- function b(R) {
11755
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
11756
+ function _(R) {
11746
11757
  return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
11747
- R === r || R === l || R === o || R === s || R === h || R === m || typeof R == "object" && R !== null && (R.$$typeof === g || R.$$typeof === p || R.$$typeof === i || R.$$typeof === c || R.$$typeof === u || R.$$typeof === w || R.$$typeof === _ || R.$$typeof === N || R.$$typeof === A);
11758
+ R === r || R === l || R === o || R === s || R === h || R === m || typeof R == "object" && R !== null && (R.$$typeof === g || R.$$typeof === p || R.$$typeof === i || R.$$typeof === c || R.$$typeof === u || R.$$typeof === w || R.$$typeof === v || R.$$typeof === N || R.$$typeof === A);
11748
11759
  }
11749
- function E(R) {
11760
+ function x(R) {
11750
11761
  if (typeof R == "object" && R !== null) {
11751
11762
  var we = R.$$typeof;
11752
11763
  switch (we) {
@@ -11778,47 +11789,47 @@ function ep() {
11778
11789
  }
11779
11790
  }
11780
11791
  }
11781
- var v = d, x = l, O = c, Q = i, ee = t, G = u, P = r, te = g, ce = p, M = n, U = o, T = s, D = h, I = !1;
11792
+ var b = d, E = l, O = c, Q = i, te = t, G = u, P = r, ee = g, ce = p, M = n, U = o, T = s, D = h, I = !1;
11782
11793
  function z(R) {
11783
- return I || (I = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(R) || E(R) === d;
11794
+ return I || (I = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(R) || x(R) === d;
11784
11795
  }
11785
11796
  function y(R) {
11786
- return E(R) === l;
11797
+ return x(R) === l;
11787
11798
  }
11788
11799
  function S(R) {
11789
- return E(R) === c;
11800
+ return x(R) === c;
11790
11801
  }
11791
11802
  function q(R) {
11792
- return E(R) === i;
11803
+ return x(R) === i;
11793
11804
  }
11794
11805
  function j(R) {
11795
11806
  return typeof R == "object" && R !== null && R.$$typeof === t;
11796
11807
  }
11797
11808
  function L(R) {
11798
- return E(R) === u;
11809
+ return x(R) === u;
11799
11810
  }
11800
11811
  function H(R) {
11801
- return E(R) === r;
11812
+ return x(R) === r;
11802
11813
  }
11803
11814
  function V(R) {
11804
- return E(R) === g;
11815
+ return x(R) === g;
11805
11816
  }
11806
11817
  function F(R) {
11807
- return E(R) === p;
11818
+ return x(R) === p;
11808
11819
  }
11809
11820
  function Z(R) {
11810
- return E(R) === n;
11821
+ return x(R) === n;
11811
11822
  }
11812
11823
  function X(R) {
11813
- return E(R) === o;
11824
+ return x(R) === o;
11814
11825
  }
11815
11826
  function $(R) {
11816
- return E(R) === s;
11827
+ return x(R) === s;
11817
11828
  }
11818
11829
  function ie(R) {
11819
- return E(R) === h;
11830
+ return x(R) === h;
11820
11831
  }
11821
- ae.AsyncMode = v, ae.ConcurrentMode = x, ae.ContextConsumer = O, ae.ContextProvider = Q, ae.Element = ee, ae.ForwardRef = G, ae.Fragment = P, ae.Lazy = te, ae.Memo = ce, ae.Portal = M, ae.Profiler = U, ae.StrictMode = T, ae.Suspense = D, ae.isAsyncMode = z, ae.isConcurrentMode = y, ae.isContextConsumer = S, ae.isContextProvider = q, ae.isElement = j, ae.isForwardRef = L, ae.isFragment = H, ae.isLazy = V, ae.isMemo = F, ae.isPortal = Z, ae.isProfiler = X, ae.isStrictMode = $, ae.isSuspense = ie, ae.isValidElementType = b, ae.typeOf = E;
11832
+ ae.AsyncMode = b, ae.ConcurrentMode = E, ae.ContextConsumer = O, ae.ContextProvider = Q, ae.Element = te, ae.ForwardRef = G, ae.Fragment = P, ae.Lazy = ee, ae.Memo = ce, ae.Portal = M, ae.Profiler = U, ae.StrictMode = T, ae.Suspense = D, ae.isAsyncMode = z, ae.isConcurrentMode = y, ae.isContextConsumer = S, ae.isContextProvider = q, ae.isElement = j, ae.isForwardRef = L, ae.isFragment = H, ae.isLazy = V, ae.isMemo = F, ae.isPortal = Z, ae.isProfiler = X, ae.isStrictMode = $, ae.isSuspense = ie, ae.isValidElementType = _, ae.typeOf = x;
11822
11833
  })()), ae;
11823
11834
  }
11824
11835
  var Er;
@@ -11956,24 +11967,24 @@ function ap() {
11956
11967
  return S;
11957
11968
  }
11958
11969
  var m = "<<anonymous>>", p = {
11959
- array: _("array"),
11960
- bigint: _("bigint"),
11961
- bool: _("boolean"),
11962
- func: _("function"),
11963
- number: _("number"),
11964
- object: _("object"),
11965
- string: _("string"),
11966
- symbol: _("symbol"),
11970
+ array: v("array"),
11971
+ bigint: v("bigint"),
11972
+ bool: v("boolean"),
11973
+ func: v("function"),
11974
+ number: v("number"),
11975
+ object: v("object"),
11976
+ string: v("string"),
11977
+ symbol: v("symbol"),
11967
11978
  any: N(),
11968
- arrayOf: b,
11969
- element: E(),
11970
- elementType: v(),
11971
- instanceOf: x,
11979
+ arrayOf: _,
11980
+ element: x(),
11981
+ elementType: b(),
11982
+ instanceOf: E,
11972
11983
  node: G(),
11973
11984
  objectOf: Q,
11974
11985
  oneOf: O,
11975
- oneOfType: ee,
11976
- shape: te,
11986
+ oneOfType: te,
11987
+ shape: ee,
11977
11988
  exact: ce
11978
11989
  };
11979
11990
  function g(y, S) {
@@ -12006,7 +12017,7 @@ function ap() {
12006
12017
  var L = j.bind(null, !1);
12007
12018
  return L.isRequired = j.bind(null, !0), L;
12008
12019
  }
12009
- function _(y) {
12020
+ function v(y) {
12010
12021
  function S(q, j, L, H, V, F) {
12011
12022
  var Z = q[j], X = T(Z);
12012
12023
  if (X !== y) {
@@ -12023,7 +12034,7 @@ function ap() {
12023
12034
  function N() {
12024
12035
  return w(i);
12025
12036
  }
12026
- function b(y) {
12037
+ function _(y) {
12027
12038
  function S(q, j, L, H, V) {
12028
12039
  if (typeof y != "function")
12029
12040
  return new A("Property `" + V + "` of component `" + L + "` has invalid PropType notation inside arrayOf.");
@@ -12041,7 +12052,7 @@ function ap() {
12041
12052
  }
12042
12053
  return w(S);
12043
12054
  }
12044
- function E() {
12055
+ function x() {
12045
12056
  function y(S, q, j, L, H) {
12046
12057
  var V = S[q];
12047
12058
  if (!c(V)) {
@@ -12052,7 +12063,7 @@ function ap() {
12052
12063
  }
12053
12064
  return w(y);
12054
12065
  }
12055
- function v() {
12066
+ function b() {
12056
12067
  function y(S, q, j, L, H) {
12057
12068
  var V = S[q];
12058
12069
  if (!e.isValidElementType(V)) {
@@ -12063,7 +12074,7 @@ function ap() {
12063
12074
  }
12064
12075
  return w(y);
12065
12076
  }
12066
- function x(y) {
12077
+ function E(y) {
12067
12078
  function S(q, j, L, H, V) {
12068
12079
  if (!(q[j] instanceof y)) {
12069
12080
  var F = y.name || m, Z = z(q[j]);
@@ -12107,7 +12118,7 @@ function ap() {
12107
12118
  }
12108
12119
  return w(S);
12109
12120
  }
12110
- function ee(y) {
12121
+ function te(y) {
12111
12122
  if (!Array.isArray(y))
12112
12123
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), i;
12113
12124
  for (var S = 0; S < y.length; S++) {
@@ -12140,7 +12151,7 @@ function ap() {
12140
12151
  (y || "React class") + ": " + S + " type `" + q + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + L + "`."
12141
12152
  );
12142
12153
  }
12143
- function te(y) {
12154
+ function ee(y) {
12144
12155
  function S(q, j, L, H, V) {
12145
12156
  var F = q[j], Z = T(F);
12146
12157
  if (Z !== "object")
@@ -12485,17 +12496,17 @@ function dp() {
12485
12496
  function p(g, A, w) {
12486
12497
  if (typeof A != "string") {
12487
12498
  if (m) {
12488
- var _ = h(A);
12489
- _ && _ !== m && p(g, _, w);
12499
+ var v = h(A);
12500
+ v && v !== m && p(g, v, w);
12490
12501
  }
12491
12502
  var N = d(A);
12492
12503
  l && (N = N.concat(l(A)));
12493
- for (var b = i(g), E = i(A), v = 0; v < N.length; ++v) {
12494
- var x = N[v];
12495
- if (!n[x] && !(w && w[x]) && !(E && E[x]) && !(b && b[x])) {
12496
- var O = u(A, x);
12504
+ for (var _ = i(g), x = i(A), b = 0; b < N.length; ++b) {
12505
+ var E = N[b];
12506
+ if (!n[E] && !(w && w[E]) && !(x && x[E]) && !(_ && _[E])) {
12507
+ var O = u(A, E);
12497
12508
  try {
12498
- c(g, x, O);
12509
+ c(g, E, O);
12499
12510
  } catch {
12500
12511
  }
12501
12512
  }
@@ -12554,7 +12565,7 @@ function pp(e, t) {
12554
12565
  h.observers[m](h);
12555
12566
  delete window[t.callbackName];
12556
12567
  }, l.componentDidMount = function() {
12557
- var h = this, m = this.setupScriptURL(), p = this.asyncScriptLoaderGetScriptLoaderID(), g = t, A = g.globalName, w = g.callbackName, _ = g.scriptId;
12568
+ var h = this, m = this.setupScriptURL(), p = this.asyncScriptLoaderGetScriptLoaderID(), g = t, A = g.globalName, w = g.callbackName, v = g.scriptId;
12558
12569
  if (A && typeof window[A] < "u" && (Le[m] = {
12559
12570
  loaded: !0,
12560
12571
  observers: {}
@@ -12569,38 +12580,38 @@ function pp(e, t) {
12569
12580
  };
12570
12581
  return;
12571
12582
  }
12572
- var b = {};
12573
- b[p] = function(O) {
12583
+ var _ = {};
12584
+ _[p] = function(O) {
12574
12585
  return h.asyncScriptLoaderHandleLoad(O);
12575
12586
  }, Le[m] = {
12576
12587
  loaded: !1,
12577
- observers: b
12588
+ observers: _
12578
12589
  };
12579
- var E = document.createElement("script");
12580
- E.src = m, E.async = !0;
12581
- for (var v in t.attributes)
12582
- E.setAttribute(v, t.attributes[v]);
12583
- _ && (E.id = _);
12584
- var x = function(Q) {
12590
+ var x = document.createElement("script");
12591
+ x.src = m, x.async = !0;
12592
+ for (var b in t.attributes)
12593
+ x.setAttribute(b, t.attributes[b]);
12594
+ v && (x.id = v);
12595
+ var E = function(Q) {
12585
12596
  if (Le[m]) {
12586
- var ee = Le[m], G = ee.observers;
12597
+ var te = Le[m], G = te.observers;
12587
12598
  for (var P in G)
12588
12599
  Q(G[P]) && delete G[P];
12589
12600
  }
12590
12601
  };
12591
12602
  w && typeof window < "u" && (window[w] = function() {
12592
12603
  return h.asyncScriptLoaderTriggerOnScriptLoaded();
12593
- }), E.onload = function() {
12604
+ }), x.onload = function() {
12594
12605
  var O = Le[m];
12595
- O && (O.loaded = !0, x(function(Q) {
12606
+ O && (O.loaded = !0, E(function(Q) {
12596
12607
  return w ? !1 : (Q(O), !0);
12597
12608
  }));
12598
- }, E.onerror = function() {
12609
+ }, x.onerror = function() {
12599
12610
  var O = Le[m];
12600
- O && (O.errored = !0, x(function(Q) {
12611
+ O && (O.errored = !0, E(function(Q) {
12601
12612
  return Q(O), !0;
12602
12613
  }));
12603
- }, document.body.appendChild(E);
12614
+ }, document.body.appendChild(x);
12604
12615
  }, l.componentWillUnmount = function() {
12605
12616
  var h = this.__scriptURL;
12606
12617
  if (t.removeOnUnmount === !0)
@@ -12732,8 +12743,8 @@ const Bs = pp(wp, {
12732
12743
  }, 3e3);
12733
12744
  else
12734
12745
  throw new Error(N.message || "Error al reportar comentario");
12735
- } catch (_) {
12736
- console.error("Error reporting comment:", _), h(_.message || "Error al reportar comentario"), c("form");
12746
+ } catch (v) {
12747
+ console.error("Error reporting comment:", v), h(v.message || "Error al reportar comentario"), c("form");
12737
12748
  }
12738
12749
  }
12739
12750
  }, w = () => {
@@ -12744,21 +12755,21 @@ const Bs = pp(wp, {
12744
12755
  /* @__PURE__ */ a("h2", { className: ue.title, children: "Reportar Abuso" }),
12745
12756
  i === "loading" && /* @__PURE__ */ a("div", { className: ue.loadingContainer, children: /* @__PURE__ */ a(Je, {}) }),
12746
12757
  i === "form" || i === "loading" ? /* @__PURE__ */ f(J, { children: [
12747
- /* @__PURE__ */ a("div", { className: ue.optionsContainer, children: g.map((_) => /* @__PURE__ */ f("label", { className: ue.option, children: [
12758
+ /* @__PURE__ */ a("div", { className: ue.optionsContainer, children: g.map((v) => /* @__PURE__ */ f("label", { className: ue.option, children: [
12748
12759
  /* @__PURE__ */ a(
12749
12760
  "input",
12750
12761
  {
12751
12762
  type: "radio",
12752
12763
  name: "reportReason",
12753
- value: _.id,
12754
- checked: d === _.id,
12764
+ value: v.id,
12765
+ checked: d === v.id,
12755
12766
  onChange: (N) => l(N.target.value),
12756
12767
  className: ue.radioInput
12757
12768
  }
12758
12769
  ),
12759
12770
  /* @__PURE__ */ a("span", { className: ue.radioCustom }),
12760
- /* @__PURE__ */ a("span", { className: ue.optionLabel, children: _.label })
12761
- ] }, _.id)) }),
12771
+ /* @__PURE__ */ a("span", { className: ue.optionLabel, children: v.label })
12772
+ ] }, v.id)) }),
12762
12773
  u && /* @__PURE__ */ a("div", { className: ue.errorMessage, children: u }),
12763
12774
  /* @__PURE__ */ a(
12764
12775
  Bs,
@@ -12766,7 +12777,7 @@ const Bs = pp(wp, {
12766
12777
  sitekey: o,
12767
12778
  theme: "light",
12768
12779
  size: "normal",
12769
- onChange: (_) => p(_ ?? ""),
12780
+ onChange: (v) => p(v ?? ""),
12770
12781
  onExpired: () => p("")
12771
12782
  }
12772
12783
  ),
@@ -12906,7 +12917,7 @@ async function $p({
12906
12917
  const w = `${g}${h}/newcomments/get?${A.toString()}`;
12907
12918
  try {
12908
12919
  console.log("Fetching comments from:", w);
12909
- const { data: _ } = await se.get(w, {
12920
+ const { data: v } = await se.get(w, {
12910
12921
  headers: {
12911
12922
  "x-api-token": c,
12912
12923
  "Cache-Control": "max-age=0, no-cache, no-store, must-revalidate",
@@ -12914,15 +12925,15 @@ async function $p({
12914
12925
  Expires: "0"
12915
12926
  }
12916
12927
  });
12917
- if (!_)
12928
+ if (!v)
12918
12929
  throw new Error("No comments data received");
12919
- return _.data || _ || [];
12920
- } catch (_) {
12921
- if (console.error("Error fetching comments:", _), se.isAxiosError(_)) {
12922
- const N = _.response?.status, b = _.response?.data;
12923
- throw N === 404 ? new Error("Comments not found") : N === 403 ? new Error("Access forbidden - check API token") : N === 401 ? new Error("Unauthorized - invalid API token") : N === 500 ? new Error("Internal server error from CMS") : new Error(b?.error || b?.message || `HTTP ${N}: Failed to fetch comments`);
12930
+ return v.data || v || [];
12931
+ } catch (v) {
12932
+ if (console.error("Error fetching comments:", v), se.isAxiosError(v)) {
12933
+ const N = v.response?.status, _ = v.response?.data;
12934
+ throw N === 404 ? new Error("Comments not found") : N === 403 ? new Error("Access forbidden - check API token") : N === 401 ? new Error("Unauthorized - invalid API token") : N === 500 ? new Error("Internal server error from CMS") : new Error(_?.error || _?.message || `HTTP ${N}: Failed to fetch comments`);
12924
12935
  }
12925
- throw _;
12936
+ throw v;
12926
12937
  }
12927
12938
  }
12928
12939
  const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
@@ -13213,10 +13224,10 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
13213
13224
  ] }) });
13214
13225
  }, t9 = ({ comment: e, replyingTo: t, path: n, user: r, handleReplyingTo: s, onFlag: o, CAPTCHA_KEY_V2: i }) => {
13215
13226
  const c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [d, l] = K(c), [u, h] = Te.useState(!1), { PUBLIC_PUBLICATION_ID: m, PUBLIC_X_SECURITY_TOKEN: p } = Y(), g = e.text, A = Te.useRef(null);
13216
- let w = `${Ke.firstname} ${Ke.lastname}`, _ = Ke.username;
13217
- e.user && (w = `${e.user.firstname} ${e.user.lastname}`, _ = e.user.username);
13218
- const N = (b) => {
13219
- l({ morereply: d.morereply, reply: [b, ...d.reply] });
13227
+ let w = `${Ke.firstname} ${Ke.lastname}`, v = Ke.username;
13228
+ e.user && (w = `${e.user.firstname} ${e.user.lastname}`, v = e.user.username);
13229
+ const N = (_) => {
13230
+ l({ morereply: d.morereply, reply: [_, ...d.reply] });
13220
13231
  };
13221
13232
  return /* @__PURE__ */ a("div", { className: "comment-item", children: /* @__PURE__ */ f(
13222
13233
  "div",
@@ -13228,7 +13239,7 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
13228
13239
  /* @__PURE__ */ f("div", { style: { flex: 1 }, children: [
13229
13240
  /* @__PURE__ */ a(Os, { username: w, date: e.date.time }),
13230
13241
  /* @__PURE__ */ a("p", { className: "comment-text", children: g }),
13231
- r?.username.toLowerCase() !== _.toLowerCase() && // No puedes responder ni reportar tus respuestas
13242
+ r?.username.toLowerCase() !== v.toLowerCase() && // No puedes responder ni reportar tus respuestas
13232
13243
  /* @__PURE__ */ a(
13233
13244
  Ds,
13234
13245
  {
@@ -13249,37 +13260,37 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
13249
13260
  }
13250
13261
  ),
13251
13262
  d.reply.length > 0 && /* @__PURE__ */ f("div", { className: "comment-replies", children: [
13252
- d.reply.map((b) => /* @__PURE__ */ a(
13263
+ d.reply.map((_) => /* @__PURE__ */ a(
13253
13264
  e9,
13254
13265
  {
13255
13266
  user: r,
13256
- reply: b,
13267
+ reply: _,
13257
13268
  replyingTo: w,
13258
13269
  onFlag: o
13259
13270
  },
13260
- b.id
13271
+ _.id
13261
13272
  )),
13262
13273
  u ? /* @__PURE__ */ a("div", { style: { marginLeft: "4rem", position: "relative" }, children: /* @__PURE__ */ a(Je, {}) }) : d.morereply && /* @__PURE__ */ a(
13263
13274
  "button",
13264
13275
  {
13265
13276
  className: "comment-replies-button reply-button",
13266
13277
  onClick: async () => {
13267
- const b = d.reply[d.reply.length - 1]?.id;
13278
+ const _ = d.reply[d.reply.length - 1]?.id;
13268
13279
  h(!0);
13269
13280
  try {
13270
- const v = await Ua({
13281
+ const b = await Ua({
13271
13282
  publication: m ?? "",
13272
13283
  path: n ?? "",
13273
13284
  size: 2,
13274
13285
  sizereply: 2,
13275
13286
  id: e.id,
13276
- lastid: b,
13287
+ lastid: _,
13277
13288
  state: "5,6",
13278
13289
  apiToken: p ?? ""
13279
13290
  });
13280
- h(!1), l({ morereply: v.morecomment, reply: [...d.reply, ...v.comments] });
13281
- } catch (E) {
13282
- throw h(!1), new Error(`Error al obtener comentarios: ${E}`);
13291
+ h(!1), l({ morereply: b.morecomment, reply: [...d.reply, ...b.comments] });
13292
+ } catch (x) {
13293
+ throw h(!1), new Error(`Error al obtener comentarios: ${x}`);
13283
13294
  }
13284
13295
  },
13285
13296
  children: "Más Respuestas"
@@ -13346,23 +13357,23 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
13346
13357
  }) => {
13347
13358
  const o = t.replaceAll("/", "|"), [i, c] = K(
13348
13359
  void 0
13349
- ), [d, l] = K(""), { comments: u, setComments: h } = Kp(o), [m, p] = Te.useState(!1), g = Te.useRef(null), A = (x) => {
13350
- l(d === x ? "" : x);
13351
- }, w = (x) => {
13360
+ ), [d, l] = K(""), { comments: u, setComments: h } = Kp(o), [m, p] = Te.useState(!1), g = Te.useRef(null), A = (E) => {
13361
+ l(d === E ? "" : E);
13362
+ }, w = (E) => {
13352
13363
  h(
13353
13364
  u ? {
13354
13365
  ...u,
13355
- comments: [x, ...u.comments ?? []]
13366
+ comments: [E, ...u.comments ?? []]
13356
13367
  } : void 0
13357
13368
  );
13358
- }, _ = (x) => {
13359
- c(x);
13369
+ }, v = (E) => {
13370
+ c(E);
13360
13371
  }, N = async () => {
13361
13372
  if (!u || !u.morecomment || u.comments.length === 0) return;
13362
- const x = u.comments[u.comments.length - 1];
13363
- if (!x) return;
13373
+ const E = u.comments[u.comments.length - 1];
13374
+ if (!E) return;
13364
13375
  p(!0);
13365
- const O = x.id;
13376
+ const O = E.id;
13366
13377
  try {
13367
13378
  const Q = await Ua({
13368
13379
  publication: Or,
@@ -13381,16 +13392,16 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
13381
13392
  } catch (Q) {
13382
13393
  throw p(!1), new Error(`Error al obtener comentarios: ${Q}`);
13383
13394
  }
13384
- }, b = u?.comments && u.comments.length > 0, E = b ? "Comparte tu opinión de este artículo." : "Se el primero en compartir tu opinión de este artículo.", v = /* @__PURE__ */ a("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ a(Je, {}) });
13395
+ }, _ = u?.comments && u.comments.length > 0, x = _ ? "Comparte tu opinión de este artículo." : "Se el primero en compartir tu opinión de este artículo.", b = /* @__PURE__ */ a("div", { style: { display: "flex", width: "100%", justifyContent: "center" }, children: /* @__PURE__ */ a(Je, {}) });
13385
13396
  return /* @__PURE__ */ f(J, { children: [
13386
- /* @__PURE__ */ a("div", { className: "comments-container", children: /* @__PURE__ */ a(ge, { title: b || e ? "COMENTARIOS" : !1, children: /* @__PURE__ */ f(J, { children: [
13397
+ /* @__PURE__ */ a("div", { className: "comments-container", children: /* @__PURE__ */ a(ge, { title: _ || e ? "COMENTARIOS" : !1, children: /* @__PURE__ */ f(J, { children: [
13387
13398
  e && n && /* @__PURE__ */ f("div", { className: "comments-header", children: [
13388
13399
  /* @__PURE__ */ a(
13389
13400
  Ug,
13390
13401
  {
13391
13402
  user: n,
13392
13403
  handleLogout: r,
13393
- message: E
13404
+ message: x
13394
13405
  }
13395
13406
  ),
13396
13407
  /* @__PURE__ */ a(
@@ -13410,23 +13421,23 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
13410
13421
  className: "comments-list",
13411
13422
  "data-isauthenticated": `${e}`,
13412
13423
  children: [
13413
- u.comments.map((x) => /* @__PURE__ */ a(
13424
+ u.comments.map((E) => /* @__PURE__ */ a(
13414
13425
  t9,
13415
13426
  {
13416
- comment: x,
13427
+ comment: E,
13417
13428
  replyingTo: d,
13418
13429
  handleReplyingTo: A,
13419
- onFlag: _,
13430
+ onFlag: v,
13420
13431
  user: n ?? Ke,
13421
13432
  path: o,
13422
13433
  CAPTCHA_KEY_V2: s.CAPTCHA_KEY_V2
13423
13434
  },
13424
- x.id
13435
+ E.id
13425
13436
  )),
13426
- m && v
13437
+ m && b
13427
13438
  ]
13428
13439
  }
13429
- ) : null : v,
13440
+ ) : null : b,
13430
13441
  u?.morecomment && !m && /* @__PURE__ */ a(
13431
13442
  "button",
13432
13443
  {
@@ -13498,10 +13509,10 @@ const { PUBLIC_PUBLICATION_ID: Wp } = Y(), Yp = Wp, Kp = (e) => {
13498
13509
  function o9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
13499
13510
  const [r, s] = K({}), [o, i] = K(!1), [c, d] = K(!1), [l, u] = K(null), [h, m] = K(
13500
13511
  "register"
13501
- ), p = (_, N) => {
13502
- s((b) => ({ ...b, [_]: N }));
13503
- }, g = async (_) => {
13504
- _.preventDefault(), u(null), d(!0);
13512
+ ), p = (v, N) => {
13513
+ s((_) => ({ ..._, [v]: N }));
13514
+ }, g = async (v) => {
13515
+ v.preventDefault(), u(null), d(!0);
13505
13516
  try {
13506
13517
  const N = Object.keys(Pr).filter((Q) => !["username", "password", "confirmPassword"].includes(Q)).map((Q) => ({ Name: Q, Value: r[Q] }));
13507
13518
  if (N.some((Q) => {
@@ -13512,23 +13523,23 @@ function o9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
13512
13523
  u("Las contraseñas no coinciden");
13513
13524
  return;
13514
13525
  }
13515
- const b = r.password || "";
13526
+ const _ = r.password || "";
13516
13527
  if (Cn.some(
13517
- (Q) => !Q.test(b)
13528
+ (Q) => !Q.test(_)
13518
13529
  )) {
13519
13530
  u("La contraseña no es válida");
13520
13531
  return;
13521
13532
  }
13522
- const v = Math.floor(Date.now() / 1e3);
13523
- N.push({ Name: "updated_at", Value: String(v) });
13524
- const x = "token", O = await fetch("/api/auth/create-user", {
13533
+ const b = Math.floor(Date.now() / 1e3);
13534
+ N.push({ Name: "updated_at", Value: String(b) });
13535
+ const E = "token", O = await fetch("/api/auth/create-user", {
13525
13536
  method: "POST",
13526
13537
  headers: { "Content-Type": "application/json" },
13527
13538
  body: JSON.stringify({
13528
13539
  username: r.email,
13529
13540
  password: r.password,
13530
13541
  userAttributes: N,
13531
- token: x
13542
+ token: E
13532
13543
  })
13533
13544
  });
13534
13545
  if (!O.ok) {
@@ -13549,8 +13560,8 @@ function o9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
13549
13560
  } finally {
13550
13561
  d(!1);
13551
13562
  }
13552
- }, A = async (_) => {
13553
- if (_.preventDefault(), !r.confirmationCode) {
13563
+ }, A = async (v) => {
13564
+ if (v.preventDefault(), !r.confirmationCode) {
13554
13565
  u("Debes ingresar el código de verificación");
13555
13566
  return;
13556
13567
  }
@@ -13565,8 +13576,8 @@ function o9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
13565
13576
  })
13566
13577
  });
13567
13578
  if (!N.ok) {
13568
- const b = await N.json().catch(() => ({}));
13569
- throw new Error(b?.error || "Error al confirmar usuario");
13579
+ const _ = await N.json().catch(() => ({}));
13580
+ throw new Error(_?.error || "Error al confirmar usuario");
13570
13581
  }
13571
13582
  m("success");
13572
13583
  } catch (N) {
@@ -13596,41 +13607,41 @@ function o9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
13596
13607
  className: k.form,
13597
13608
  "data-error": l ? "true" : "false",
13598
13609
  children: [
13599
- /* @__PURE__ */ a("ul", { className: k.formUl, children: Object.entries(Pr).map(([_, { label: N }]) => /* @__PURE__ */ f("div", { className: k.field, children: [
13610
+ /* @__PURE__ */ a("ul", { className: k.formUl, children: Object.entries(Pr).map(([v, { label: N }]) => /* @__PURE__ */ f("div", { className: k.field, children: [
13600
13611
  /* @__PURE__ */ a("label", { className: k.label, children: N }),
13601
13612
  /* @__PURE__ */ a(
13602
13613
  "input",
13603
13614
  {
13604
- type: _.toLowerCase().includes("password") ? o ? "text" : "password" : _ === "birthdate" ? "date" : _ === "email" ? "email" : _ === "phone_number" ? "tel" : "text",
13605
- name: _,
13606
- value: r[_] || "",
13607
- onChange: (b) => p(_, b.target.value),
13615
+ type: v.toLowerCase().includes("password") ? o ? "text" : "password" : v === "birthdate" ? "date" : v === "email" ? "email" : v === "phone_number" ? "tel" : "text",
13616
+ name: v,
13617
+ value: r[v] || "",
13618
+ onChange: (_) => p(v, _.target.value),
13608
13619
  className: k.input,
13609
13620
  placeholder: ""
13610
13621
  }
13611
13622
  ),
13612
- _ === "password" && /* @__PURE__ */ a("div", { className: k.passwordChecker, children: Cn.map((b, E) => {
13613
- const v = b.test(w);
13623
+ v === "password" && /* @__PURE__ */ a("div", { className: k.passwordChecker, children: Cn.map((_, x) => {
13624
+ const b = _.test(w);
13614
13625
  return /* @__PURE__ */ f(
13615
13626
  "div",
13616
13627
  {
13617
- className: v ? k.valid : k.invalid,
13628
+ className: b ? k.valid : k.invalid,
13618
13629
  children: [
13619
- /* @__PURE__ */ a("div", { children: v ? "✔" : "○" }),
13620
- /* @__PURE__ */ a("div", { children: b.label })
13630
+ /* @__PURE__ */ a("div", { children: b ? "✔" : "○" }),
13631
+ /* @__PURE__ */ a("div", { children: _.label })
13621
13632
  ]
13622
13633
  },
13623
- E
13634
+ x
13624
13635
  );
13625
13636
  }) }),
13626
- _ === "confirmPassword" && /* @__PURE__ */ f("div", { className: k.checkboxRow, children: [
13637
+ v === "confirmPassword" && /* @__PURE__ */ f("div", { className: k.checkboxRow, children: [
13627
13638
  /* @__PURE__ */ a(
13628
13639
  "input",
13629
13640
  {
13630
13641
  id: "showPasswordRegister",
13631
13642
  type: "checkbox",
13632
13643
  checked: o,
13633
- onChange: (b) => i(b.target.checked)
13644
+ onChange: (_) => i(_.target.checked)
13634
13645
  }
13635
13646
  ),
13636
13647
  /* @__PURE__ */ a(
@@ -13642,7 +13653,7 @@ function o9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
13642
13653
  }
13643
13654
  )
13644
13655
  ] })
13645
- ] }, _)) }),
13656
+ ] }, v)) }),
13646
13657
  l && /* @__PURE__ */ a("p", { className: k.error, children: l }),
13647
13658
  /* @__PURE__ */ f("p", { className: k.terms, children: [
13648
13659
  "Al continuar, confirmo que he leído y aceptado los",
@@ -13669,7 +13680,7 @@ function o9({ goToLogin: e, handleGoogleLogin: t, CAPTCHA_KEY: n }) {
13669
13680
  type: "text",
13670
13681
  name: "confirmationCode",
13671
13682
  value: r.confirmationCode || "",
13672
- onChange: (_) => p("confirmationCode", _.target.value),
13683
+ onChange: (v) => p("confirmationCode", v.target.value),
13673
13684
  className: k.input,
13674
13685
  required: !0
13675
13686
  }
@@ -13722,44 +13733,44 @@ function i9({
13722
13733
  handleGoogleLogin: r,
13723
13734
  CAPTCHA_KEY: s
13724
13735
  }) {
13725
- const [o, i] = K("login"), [c, d] = K(""), [l, u] = K(""), [h, m] = K(""), [p, g] = K(""), [A, w] = K(""), [_, N] = K(!1), [b, E] = K(!1), [v, x] = K(null);
13736
+ const [o, i] = K("login"), [c, d] = K(""), [l, u] = K(""), [h, m] = K(""), [p, g] = K(""), [A, w] = K(""), [v, N] = K(!1), [_, x] = K(!1), [b, E] = K(null);
13726
13737
  return console.log("CAPTCHA_KEY", s), /* @__PURE__ */ f(J, { children: [
13727
13738
  o === "login" && /* @__PURE__ */ a(
13728
13739
  c9,
13729
13740
  {
13730
13741
  email: c,
13731
13742
  password: l,
13732
- showPassword: _,
13733
- loading: b,
13734
- error: v,
13743
+ showPassword: v,
13744
+ loading: _,
13745
+ error: b,
13735
13746
  setEmail: d,
13736
13747
  setPassword: u,
13737
13748
  setShowPassword: N,
13738
13749
  onSubmit: async (G) => {
13739
- if (!b) {
13740
- G.preventDefault(), x(null), E(!0);
13750
+ if (!_) {
13751
+ G.preventDefault(), E(null), x(!0);
13741
13752
  try {
13742
13753
  console.log(!0, s);
13743
- const P = "token", te = await fetch("/api/auth/login-password", {
13754
+ const P = "token", ee = await fetch("/api/auth/login-password", {
13744
13755
  method: "POST",
13745
13756
  headers: { "Content-Type": "application/json" },
13746
13757
  credentials: "include",
13747
13758
  body: JSON.stringify({ email: c, password: l, token: P })
13748
13759
  });
13749
- if (!te.ok) {
13750
- const ce = await te.json().catch(() => ({}));
13760
+ if (!ee.ok) {
13761
+ const ce = await ee.json().catch(() => ({}));
13751
13762
  throw new Error(ce?.error || "Ha ocurrido un error");
13752
13763
  }
13753
13764
  e(), await t();
13754
13765
  } catch (P) {
13755
- x(P?.message || "Error inesperado");
13766
+ E(P?.message || "Error inesperado");
13756
13767
  } finally {
13757
- E(!1);
13768
+ x(!1);
13758
13769
  }
13759
13770
  }
13760
13771
  },
13761
13772
  onForgot: () => {
13762
- x(null), i("forgot");
13773
+ E(null), i("forgot");
13763
13774
  },
13764
13775
  onRegister: n,
13765
13776
  handleGoogleLogin: r
@@ -13770,11 +13781,11 @@ function i9({
13770
13781
  {
13771
13782
  email: c,
13772
13783
  setEmail: d,
13773
- loading: b,
13774
- error: v,
13784
+ loading: _,
13785
+ error: b,
13775
13786
  onSubmit: async (G) => {
13776
- if (!b) {
13777
- G.preventDefault(), x(null), E(!0);
13787
+ if (!_) {
13788
+ G.preventDefault(), E(null), x(!0);
13778
13789
  try {
13779
13790
  const P = await fetch("/api/auth/forgot-password", {
13780
13791
  method: "POST",
@@ -13782,19 +13793,19 @@ function i9({
13782
13793
  body: JSON.stringify({ email: c })
13783
13794
  });
13784
13795
  if (!P.ok) {
13785
- const te = await P.json().catch(() => ({}));
13786
- throw new Error(te?.error || "Error al enviar código");
13796
+ const ee = await P.json().catch(() => ({}));
13797
+ throw new Error(ee?.error || "Error al enviar código");
13787
13798
  }
13788
13799
  u(""), i("changePassword");
13789
13800
  } catch (P) {
13790
- x(P?.message || "Error inesperado");
13801
+ E(P?.message || "Error inesperado");
13791
13802
  } finally {
13792
- E(!1);
13803
+ x(!1);
13793
13804
  }
13794
13805
  }
13795
13806
  },
13796
13807
  onBack: () => {
13797
- x(null), i("login");
13808
+ E(null), i("login");
13798
13809
  }
13799
13810
  }
13800
13811
  ),
@@ -13805,45 +13816,45 @@ function i9({
13805
13816
  confirmationCode: h,
13806
13817
  newPassword: p,
13807
13818
  confirmNewPassword: A,
13808
- showPassword: _,
13809
- loading: b,
13810
- error: v,
13819
+ showPassword: v,
13820
+ loading: _,
13821
+ error: b,
13811
13822
  setConfirmationCode: m,
13812
13823
  setNewPassword: g,
13813
13824
  setConfirmNewPassword: w,
13814
13825
  setShowPassword: N,
13815
13826
  onSubmit: async (G) => {
13816
- if (b) return;
13827
+ if (_) return;
13817
13828
  if (G.preventDefault(), p !== A) {
13818
- x("Las contraseñas no coinciden");
13829
+ E("Las contraseñas no coinciden");
13819
13830
  return;
13820
13831
  }
13821
13832
  if (Cn.some(
13822
- (te) => !te.test(p)
13833
+ (ee) => !ee.test(p)
13823
13834
  )) {
13824
- x("La contraseña no cumple con los requisitos");
13835
+ E("La contraseña no cumple con los requisitos");
13825
13836
  return;
13826
13837
  }
13827
- x(null), E(!0);
13838
+ E(null), x(!0);
13828
13839
  try {
13829
- const te = await fetch("/api/auth/confirm-forgot-password", {
13840
+ const ee = await fetch("/api/auth/confirm-forgot-password", {
13830
13841
  method: "POST",
13831
13842
  headers: { "Content-Type": "application/json" },
13832
13843
  body: JSON.stringify({ email: c, code: h, newPassword: p })
13833
13844
  });
13834
- if (!te.ok) {
13835
- const ce = await te.json().catch(() => ({}));
13845
+ if (!ee.ok) {
13846
+ const ce = await ee.json().catch(() => ({}));
13836
13847
  throw new Error(ce?.error || "Error al cambiar contraseña");
13837
13848
  }
13838
13849
  i("feedback");
13839
- } catch (te) {
13840
- x(te?.message || "Error inesperado");
13850
+ } catch (ee) {
13851
+ E(ee?.message || "Error inesperado");
13841
13852
  } finally {
13842
- E(!1);
13853
+ x(!1);
13843
13854
  }
13844
13855
  },
13845
13856
  onBack: () => {
13846
- x(null), i("forgot");
13857
+ E(null), i("forgot");
13847
13858
  }
13848
13859
  }
13849
13860
  ),
@@ -13851,7 +13862,7 @@ function i9({
13851
13862
  u9,
13852
13863
  {
13853
13864
  onBackToLogin: () => {
13854
- x(null), i("login");
13865
+ E(null), i("login");
13855
13866
  }
13856
13867
  }
13857
13868
  )