sass-template-common 0.9.135 → 0.9.137

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.
@@ -1460,7 +1460,8 @@ export declare class MainComponentServices {
1460
1460
  imgSizes: any;
1461
1461
  configVersion: string;
1462
1462
  axiosApi: AxiosInstance | undefined;
1463
- constructor(config: Config, imgSizes: any, axiosApi: AxiosInstance, exclude?: string);
1463
+ customMainImagesSize: string | undefined;
1464
+ constructor(config: Config, imgSizes: any, axiosApi: AxiosInstance, exclude?: string, customMainImagesSizes?: string);
1464
1465
  getNewsListZone(params: Params): Promise<AxiosResponse<NewListResponse, any, {}> | undefined>;
1465
1466
  getOutstandingBlock(params: Params): Promise<AxiosResponse< {
1466
1467
  data: Array<Outstanding>;
@@ -1,6 +1,6 @@
1
1
  import { jsx as n, jsxs as g, Fragment as $ } from "react/jsx-runtime";
2
2
  import * as Ws from "react";
3
- import ce, { useState as J, useRef as Ga, useCallback as le, useEffect as Te, createElement as Be, forwardRef as Qn, Fragment as ds, useMemo as us, Component as ja } from "react";
3
+ import ce, { useState as Z, useRef as Ga, useCallback as le, useEffect as xe, createElement as Be, forwardRef as Qn, Fragment as ds, useMemo as us, Component as ja } from "react";
4
4
  let ms = {
5
5
  PUBLIC_API_HOST: "",
6
6
  PUBLIC_API_FRONT: "",
@@ -2074,8 +2074,9 @@ class Kd {
2074
2074
  imgSizes = {};
2075
2075
  configVersion = ".config";
2076
2076
  axiosApi = void 0;
2077
- constructor(t, s, a, r) {
2078
- this.config = t, this.imgSizes = s, this.axiosApi = a, t.configVersion && (this.configVersion = t.configVersion), r && (this.exclude = r);
2077
+ customMainImagesSize = void 0;
2078
+ constructor(t, s, a, r, i) {
2079
+ this.config = t, this.imgSizes = s, this.axiosApi = a, this.customMainImagesSize = i, t.configVersion && (this.configVersion = t.configVersion), r && (this.exclude = r);
2079
2080
  }
2080
2081
  async getNewsListZone(t) {
2081
2082
  if (this.axiosApi)
@@ -2123,7 +2124,7 @@ class Kd {
2123
2124
  await this.getNewsListZoneWrapper(
2124
2125
  t,
2125
2126
  1,
2126
- `${this.imgSizes.xl}${this.imgSizes.lg}`
2127
+ this.customMainImagesSize || `${this.imgSizes.xl}${this.imgSizes.lg}`
2127
2128
  ),
2128
2129
  await this.getNewsListZoneWrapper(t, 5)
2129
2130
  ]);
@@ -2151,7 +2152,7 @@ class Kd {
2151
2152
  await this.getNewsListZoneWrapper(
2152
2153
  t,
2153
2154
  1,
2154
- "w:801,h:449,t:2;w:410,h:590,t:2;"
2155
+ this.customMainImagesSize || "w:801,h:449,t:2;w:410,h:590,t:2;"
2155
2156
  ),
2156
2157
  await this.getNewsListZoneWrapper(t, 5, "w:180,h:180,t:2;")
2157
2158
  ]);
@@ -2531,10 +2532,10 @@ const Ri = (e) => {
2531
2532
  asap: Bi,
2532
2533
  isIterable: Oi
2533
2534
  };
2534
- function Z(e, t, s, a, r) {
2535
+ function J(e, t, s, a, r) {
2535
2536
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), s && (this.config = s), a && (this.request = a), r && (this.response = r, this.status = r.status ? r.status : null);
2536
2537
  }
2537
- N.inherits(Z, Error, {
2538
+ N.inherits(J, Error, {
2538
2539
  toJSON: function() {
2539
2540
  return {
2540
2541
  // Standard
@@ -2555,7 +2556,7 @@ N.inherits(Z, Error, {
2555
2556
  };
2556
2557
  }
2557
2558
  });
2558
- const na = Z.prototype, aa = {};
2559
+ const na = J.prototype, aa = {};
2559
2560
  [
2560
2561
  "ERR_BAD_OPTION_VALUE",
2561
2562
  "ERR_BAD_OPTION",
@@ -2573,15 +2574,15 @@ const na = Z.prototype, aa = {};
2573
2574
  ].forEach((e) => {
2574
2575
  aa[e] = { value: e };
2575
2576
  });
2576
- Object.defineProperties(Z, aa);
2577
+ Object.defineProperties(J, aa);
2577
2578
  Object.defineProperty(na, "isAxiosError", { value: !0 });
2578
- Z.from = (e, t, s, a, r, i) => {
2579
+ J.from = (e, t, s, a, r, i) => {
2579
2580
  const o = Object.create(na);
2580
2581
  N.toFlatObject(e, o, function(d) {
2581
2582
  return d !== Error.prototype;
2582
2583
  }, (c) => c !== "isAxiosError");
2583
2584
  const l = e && e.message ? e.message : "Error", u = t == null && e ? e.code : t;
2584
- return Z.call(o, l, u, s, a, r), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", i && Object.assign(o, i), o;
2585
+ return J.call(o, l, u, s, a, r), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", i && Object.assign(o, i), o;
2585
2586
  };
2586
2587
  const Mi = null;
2587
2588
  function gs(e) {
@@ -2621,7 +2622,7 @@ function jt(e, t, s) {
2621
2622
  if (N.isBoolean(f))
2622
2623
  return f.toString();
2623
2624
  if (!u && N.isBlob(f))
2624
- throw new Z("Blob is not supported. Use a Buffer instead.");
2625
+ throw new J("Blob is not supported. Use a Buffer instead.");
2625
2626
  return N.isArrayBuffer(f) || N.isTypedArray(f) ? u && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
2626
2627
  }
2627
2628
  function d(f, A, w) {
@@ -2872,7 +2873,7 @@ const lt = {
2872
2873
  return JSON.parse(t, this.parseReviver);
2873
2874
  } catch (l) {
2874
2875
  if (o)
2875
- throw l.name === "SyntaxError" ? Z.from(l, Z.ERR_BAD_RESPONSE, this, null, this.response) : l;
2876
+ throw l.name === "SyntaxError" ? J.from(l, J.ERR_BAD_RESPONSE, this, null, this.response) : l;
2876
2877
  }
2877
2878
  }
2878
2879
  return t;
@@ -3115,16 +3116,16 @@ function da(e) {
3115
3116
  return !!(e && e.__CANCEL__);
3116
3117
  }
3117
3118
  function Ze(e, t, s) {
3118
- Z.call(this, e ?? "canceled", Z.ERR_CANCELED, t, s), this.name = "CanceledError";
3119
+ J.call(this, e ?? "canceled", J.ERR_CANCELED, t, s), this.name = "CanceledError";
3119
3120
  }
3120
- N.inherits(Ze, Z, {
3121
+ N.inherits(Ze, J, {
3121
3122
  __CANCEL__: !0
3122
3123
  });
3123
3124
  function ua(e, t, s) {
3124
3125
  const a = s.config.validateStatus;
3125
- !s.status || !a || a(s.status) ? e(s) : t(new Z(
3126
+ !s.status || !a || a(s.status) ? e(s) : t(new J(
3126
3127
  "Request failed with status code " + s.status,
3127
- [Z.ERR_BAD_REQUEST, Z.ERR_BAD_RESPONSE][Math.floor(s.status / 100) - 4],
3128
+ [J.ERR_BAD_REQUEST, J.ERR_BAD_RESPONSE][Math.floor(s.status / 100) - 4],
3128
3129
  s.config,
3129
3130
  s.request,
3130
3131
  s
@@ -3349,16 +3350,16 @@ const ha = (e) => {
3349
3350
  "onloadend" in w ? w.onloadend = v : w.onreadystatechange = function() {
3350
3351
  !w || w.readyState !== 4 || w.status === 0 && !(w.responseURL && w.responseURL.indexOf("file:") === 0) || setTimeout(v);
3351
3352
  }, w.onabort = function() {
3352
- w && (a(new Z("Request aborted", Z.ECONNABORTED, e, w)), w = null);
3353
+ w && (a(new J("Request aborted", J.ECONNABORTED, e, w)), w = null);
3353
3354
  }, w.onerror = function(E) {
3354
- const b = E && E.message ? E.message : "Network Error", I = new Z(b, Z.ERR_NETWORK, e, w);
3355
+ const b = E && E.message ? E.message : "Network Error", I = new J(b, J.ERR_NETWORK, e, w);
3355
3356
  I.event = E || null, a(I), w = null;
3356
3357
  }, w.ontimeout = function() {
3357
3358
  let E = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
3358
3359
  const b = r.transitional || la;
3359
- r.timeoutErrorMessage && (E = r.timeoutErrorMessage), a(new Z(
3360
+ r.timeoutErrorMessage && (E = r.timeoutErrorMessage), a(new J(
3360
3361
  E,
3361
- b.clarifyTimeoutError ? Z.ETIMEDOUT : Z.ECONNABORTED,
3362
+ b.clarifyTimeoutError ? J.ETIMEDOUT : J.ECONNABORTED,
3362
3363
  e,
3363
3364
  w
3364
3365
  )), w = null;
@@ -3369,7 +3370,7 @@ const ha = (e) => {
3369
3370
  }, r.cancelToken && r.cancelToken.subscribe(d), r.signal && (r.signal.aborted ? d() : r.signal.addEventListener("abort", d)));
3370
3371
  const y = ao(r.url);
3371
3372
  if (y && ue.protocols.indexOf(y) === -1) {
3372
- a(new Z("Unsupported protocol " + y + ":", Z.ERR_BAD_REQUEST, e));
3373
+ a(new J("Unsupported protocol " + y + ":", J.ERR_BAD_REQUEST, e));
3373
3374
  return;
3374
3375
  }
3375
3376
  w.send(i || null);
@@ -3382,11 +3383,11 @@ const ha = (e) => {
3382
3383
  if (!r) {
3383
3384
  r = !0, l();
3384
3385
  const d = c instanceof Error ? c : this.reason;
3385
- a.abort(d instanceof Z ? d : new Ze(d instanceof Error ? d.message : d));
3386
+ a.abort(d instanceof J ? d : new Ze(d instanceof Error ? d.message : d));
3386
3387
  }
3387
3388
  };
3388
3389
  let o = t && setTimeout(() => {
3389
- o = null, i(new Z(`timeout ${t} of ms exceeded`, Z.ETIMEDOUT));
3390
+ o = null, i(new J(`timeout ${t} of ms exceeded`, J.ETIMEDOUT));
3390
3391
  }, t);
3391
3392
  const l = () => {
3392
3393
  e && (o && clearTimeout(o), o = null, e.forEach((c) => {
@@ -3491,7 +3492,7 @@ const ha = (e) => {
3491
3492
  let v = A && A[f];
3492
3493
  if (v)
3493
3494
  return v.call(A);
3494
- throw new Z(`Response type '${f}' is not supported`, Z.ERR_NOT_SUPPORT, w);
3495
+ throw new J(`Response type '${f}' is not supported`, J.ERR_NOT_SUPPORT, w);
3495
3496
  });
3496
3497
  });
3497
3498
  const h = async (f) => {
@@ -3591,11 +3592,11 @@ const ha = (e) => {
3591
3592
  });
3592
3593
  } catch (x) {
3593
3594
  throw q && q(), x && x.name === "TypeError" && /Load failed|fetch/i.test(x.message) ? Object.assign(
3594
- new Z("Network Error", Z.ERR_NETWORK, f, se),
3595
+ new J("Network Error", J.ERR_NETWORK, f, se),
3595
3596
  {
3596
3597
  cause: x.cause || x
3597
3598
  }
3598
- ) : Z.from(x, x && x.code, f, se);
3599
+ ) : J.from(x, x && x.code, f, se);
3599
3600
  }
3600
3601
  };
3601
3602
  }, vo = /* @__PURE__ */ new Map(), fa = (e) => {
@@ -3637,7 +3638,7 @@ function yo(e, t) {
3637
3638
  a = e[o];
3638
3639
  let l;
3639
3640
  if (r = a, !Co(a) && (r = Us[(l = String(a)).toLowerCase()], r === void 0))
3640
- throw new Z(`Unknown adapter '${l}'`);
3641
+ throw new J(`Unknown adapter '${l}'`);
3641
3642
  if (r && (N.isFunction(r) || (r = r.get(t))))
3642
3643
  break;
3643
3644
  i[l || "#" + o] = r;
@@ -3649,7 +3650,7 @@ function yo(e, t) {
3649
3650
  let l = s ? o.length > 1 ? `since :
3650
3651
  ` + o.map(pn).join(`
3651
3652
  `) : " " + pn(o[0]) : "as no adapter specified";
3652
- throw new Z(
3653
+ throw new J(
3653
3654
  "There is no suitable adapter to dispatch the request " + l,
3654
3655
  "ERR_NOT_SUPPORT"
3655
3656
  );
@@ -3703,9 +3704,9 @@ Qt.transitional = function(t, s, a) {
3703
3704
  }
3704
3705
  return (i, o, l) => {
3705
3706
  if (t === !1)
3706
- throw new Z(
3707
+ throw new J(
3707
3708
  r(o, " has been removed" + (s ? " in " + s : "")),
3708
- Z.ERR_DEPRECATED
3709
+ J.ERR_DEPRECATED
3709
3710
  );
3710
3711
  return s && !wn[o] && (wn[o] = !0, console.warn(
3711
3712
  r(
@@ -3720,7 +3721,7 @@ Qt.spelling = function(t) {
3720
3721
  };
3721
3722
  function No(e, t, s) {
3722
3723
  if (typeof e != "object")
3723
- throw new Z("options must be an object", Z.ERR_BAD_OPTION_VALUE);
3724
+ throw new J("options must be an object", J.ERR_BAD_OPTION_VALUE);
3724
3725
  const a = Object.keys(e);
3725
3726
  let r = a.length;
3726
3727
  for (; r-- > 0; ) {
@@ -3728,11 +3729,11 @@ function No(e, t, s) {
3728
3729
  if (o) {
3729
3730
  const l = e[i], u = l === void 0 || o(l, i, e);
3730
3731
  if (u !== !0)
3731
- throw new Z("option " + i + " must be " + u, Z.ERR_BAD_OPTION_VALUE);
3732
+ throw new J("option " + i + " must be " + u, J.ERR_BAD_OPTION_VALUE);
3732
3733
  continue;
3733
3734
  }
3734
3735
  if (s !== !0)
3735
- throw new Z("Unknown option " + i, Z.ERR_BAD_OPTION);
3736
+ throw new J("Unknown option " + i, J.ERR_BAD_OPTION);
3736
3737
  }
3737
3738
  }
3738
3739
  const xt = {
@@ -4031,7 +4032,7 @@ re.CancelToken = So;
4031
4032
  re.isCancel = da;
4032
4033
  re.VERSION = pa;
4033
4034
  re.toFormData = jt;
4034
- re.AxiosError = Z;
4035
+ re.AxiosError = J;
4035
4036
  re.Cancel = re.CanceledError;
4036
4037
  re.all = function(t) {
4037
4038
  return Promise.all(t);
@@ -5215,12 +5216,12 @@ function Po({
5215
5216
  enableDrag: i,
5216
5217
  onIndexChange: o
5217
5218
  }) {
5218
- const [l, u] = J(!1), [c, d] = J(0), [m, h] = J(0), [p, f] = J(0), [A, w] = J(0), [v, y] = J(null), S = Ga(null), [E, b] = J(1), I = le(() => {
5219
+ const [l, u] = Z(!1), [c, d] = Z(0), [m, h] = Z(0), [p, f] = Z(0), [A, w] = Z(0), [v, y] = Z(null), S = Ga(null), [E, b] = Z(1), I = le(() => {
5219
5220
  if (r) return 1;
5220
5221
  const C = S.current?.offsetWidth || window.innerWidth, T = s + a, O = Math.floor(C / T);
5221
5222
  return Math.max(1, O);
5222
5223
  }, [r, s, a]);
5223
- Te(() => {
5224
+ xe(() => {
5224
5225
  const C = () => {
5225
5226
  const T = I();
5226
5227
  b(T);
@@ -5318,7 +5319,7 @@ function Po({
5318
5319
  },
5319
5320
  [U]
5320
5321
  );
5321
- return Te(() => {
5322
+ return xe(() => {
5322
5323
  if (l)
5323
5324
  return S.current?.addEventListener("mousemove", q), S.current?.addEventListener("mouseup", U), () => {
5324
5325
  S.current?.removeEventListener(
@@ -5352,8 +5353,8 @@ function vu(e) {
5352
5353
  fullPageWidth: o = !1,
5353
5354
  pagination: l = !1,
5354
5355
  enableDrag: u = !0
5355
- } = e, c = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [d, m] = J(0), [h, p] = J(!1);
5356
- Te(() => {
5356
+ } = e, c = Array.isArray(t) ? t : t?.props?.value?.split('<div style="display:none;">SPLITING</div>'), [d, m] = Z(0), [h, p] = Z(!1);
5357
+ xe(() => {
5357
5358
  p(!0);
5358
5359
  const j = document.getElementById("ssr-dummy_" + s);
5359
5360
  j && j.remove();
@@ -6041,14 +6042,10 @@ const Go = (e) => {
6041
6042
  isVideo: s = !1,
6042
6043
  hasShadow: a = !1,
6043
6044
  priorityHigh: r = !1
6044
- } = e, i = Ca(), [o, l] = J(void 0), u = t?.sizes;
6045
- return Te(() => {
6046
- (async () => {
6047
- u?.[0]?.url ? l(
6048
- `/api/image-proxy?url=${encodeURIComponent(u[0].url)}`
6049
- ) : l(u?.[0]?.url);
6050
- })();
6051
- }, [u, t, e.cookies]), u && o && o !== "invalidURL" ? /* @__PURE__ */ n("figure", { className: "sass-com-img-figure", children: /* @__PURE__ */ g("span", { className: "sass-com-img-backdrop", children: [
6045
+ } = e, i = Ca();
6046
+ let o;
6047
+ const l = t?.sizes;
6048
+ return l?.[0]?.url ? o = `/api/image-proxy?url=${encodeURIComponent(l[0].url)}` : o = l?.[0]?.url, l && o && o !== "invalidURL" ? /* @__PURE__ */ n("figure", { className: "sass-com-img-figure", children: /* @__PURE__ */ g("span", { className: "sass-com-img-backdrop", children: [
6052
6049
  /* @__PURE__ */ n("span", { className: "sass-com-img-backdropAux" }),
6053
6050
  /* @__PURE__ */ g("picture", { children: [
6054
6051
  /* @__PURE__ */ n(
@@ -7456,7 +7453,7 @@ const Go = (e) => {
7456
7453
  ) }) })
7457
7454
  }
7458
7455
  );
7459
- }, Ie = (e) => {
7456
+ }, Te = (e) => {
7460
7457
  const { PUBLIC_ENV: t } = B(), s = ie("/x.svg");
7461
7458
  return t !== "" && !e.forceSVG ? /* @__PURE__ */ n("img", { fetchPriority: "low", loading: "lazy", src: s, alt: "", width: 23, height: 23, ...e }) : /* @__PURE__ */ n("svg", { ...e, width: 28, height: 28, version: "1.1", baseProfile: "tiny", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", x: "0px", y: "0px", viewBox: "0 0 30 30", overflow: "visible", xmlSpace: "preserve", children: /* @__PURE__ */ n("path", { fill: "currentColor", d: "M5.9,6.1l7.1,9.8l-7.1,7.9h1.6l6.2-7l5,7h5.4l-7.5-10.3l6.6-7.4h-1.6L16,12.5l-4.6-6.4L5.9,6.1L5.9,6.1zM8.2,7.4h2.5l11,15.3h-2.5L8.2,7.4z" }) });
7462
7459
  }, Zo = (e) => {
@@ -7496,7 +7493,7 @@ const Go = (e) => {
7496
7493
  whatsapp: (e) => /* @__PURE__ */ n(Jo, { ...e }),
7497
7494
  tiktok: (e) => /* @__PURE__ */ n($o, { ...e }),
7498
7495
  youtube: (e) => /* @__PURE__ */ n(Zo, { ...e }),
7499
- x: (e) => /* @__PURE__ */ n(Ie, { ...e }),
7496
+ x: (e) => /* @__PURE__ */ n(Te, { ...e }),
7500
7497
  gnews: (e) => /* @__PURE__ */ n(Wo, { ...e }),
7501
7498
  podcast: (e) => /* @__PURE__ */ n(Yo, { ...e }),
7502
7499
  telegram: (e) => /* @__PURE__ */ n(Ko, { ...e })
@@ -7709,8 +7706,8 @@ const Go = (e) => {
7709
7706
  X: {
7710
7707
  url: (e) => `https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,
7711
7708
  icon: {
7712
- outline: (e) => /* @__PURE__ */ n(Ie, { className: e, forceSVG: !0 }),
7713
- solid: (e) => /* @__PURE__ */ n(Ie, { className: e, forceSVG: !0 })
7709
+ outline: (e) => /* @__PURE__ */ n(Te, { className: e, forceSVG: !0 }),
7710
+ solid: (e) => /* @__PURE__ */ n(Te, { className: e, forceSVG: !0 })
7714
7711
  }
7715
7712
  },
7716
7713
  Whatsapp: {
@@ -8157,7 +8154,7 @@ const Eu = (e) => {
8157
8154
  target: "_blank",
8158
8155
  className: "sass-com-ah1-social-link",
8159
8156
  rel: "noreferrer",
8160
- children: /* @__PURE__ */ n(Ie, { className: "sass-com-ah1-social-icon sass-com-ah1-social-icon-x", forceSVG: !0 })
8157
+ children: /* @__PURE__ */ n(Te, { className: "sass-com-ah1-social-icon sass-com-ah1-social-icon-x", forceSVG: !0 })
8161
8158
  }
8162
8159
  ),
8163
8160
  f && /* @__PURE__ */ n(
@@ -8238,7 +8235,7 @@ const Eu = (e) => {
8238
8235
  href: p,
8239
8236
  target: "_blank",
8240
8237
  rel: "noreferrer",
8241
- children: /* @__PURE__ */ n(Ie, { className: "sass-com-ah2-socialIcon sass-com-ah2-social-icon-x", forceSVG: !0 })
8238
+ children: /* @__PURE__ */ n(Te, { className: "sass-com-ah2-socialIcon sass-com-ah2-social-icon-x", forceSVG: !0 })
8242
8239
  }
8243
8240
  ),
8244
8241
  f && /* @__PURE__ */ n(
@@ -9326,7 +9323,7 @@ const Eu = (e) => {
9326
9323
  target: "_blank",
9327
9324
  className: "sass-com-th-socialIconLink",
9328
9325
  rel: "noreferrer",
9329
- children: /* @__PURE__ */ n(Ie, { className: "sass-com-th-socialIcon", forceSVG: !0 })
9326
+ children: /* @__PURE__ */ n(Te, { className: "sass-com-th-socialIcon", forceSVG: !0 })
9330
9327
  }
9331
9328
  ),
9332
9329
  i && /* @__PURE__ */ n(
@@ -11432,8 +11429,8 @@ const Zl = (e) => /* @__PURE__ */ n(
11432
11429
  X: {
11433
11430
  url: (e) => `https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,
11434
11431
  icon: {
11435
- outline: (e) => /* @__PURE__ */ n(Ie, { className: e, forceSVG: !0 }),
11436
- solid: (e) => /* @__PURE__ */ n(Ie, { className: e, forceSVG: !0 })
11432
+ outline: (e) => /* @__PURE__ */ n(Te, { className: e, forceSVG: !0 }),
11433
+ solid: (e) => /* @__PURE__ */ n(Te, { className: e, forceSVG: !0 })
11437
11434
  }
11438
11435
  },
11439
11436
  Whatsapp: {
@@ -11683,8 +11680,8 @@ const tc = async (e) => {
11683
11680
  X: {
11684
11681
  url: (e) => `https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,
11685
11682
  icon: {
11686
- outline: (e) => /* @__PURE__ */ n(Ie, { className: e, forceSVG: !0 }),
11687
- solid: (e) => /* @__PURE__ */ n(Ie, { className: e, forceSVG: !0 })
11683
+ outline: (e) => /* @__PURE__ */ n(Te, { className: e, forceSVG: !0 }),
11684
+ solid: (e) => /* @__PURE__ */ n(Te, { className: e, forceSVG: !0 })
11688
11685
  }
11689
11686
  },
11690
11687
  Whatsapp: {
@@ -12577,7 +12574,7 @@ function zu({ texts: e, API_ENV: t, termsAndConditionsUrl: s }) {
12577
12574
  { label: a.passwordRuleSymbol, test: Ee[4] }
12578
12575
  ],
12579
12576
  [a.passwordRuleMinLength, a.passwordRuleNumber, a.passwordRuleLowercase, a.passwordRuleUppercase, a.passwordRuleSymbol]
12580
- ), [o, l] = J({}), [u, c] = J(!1), [d, m] = J(!1), [h, p] = J(null), [f, A] = J(
12577
+ ), [o, l] = Z({}), [u, c] = Z(!1), [d, m] = Z(!1), [h, p] = Z(null), [f, A] = Z(
12581
12578
  "register"
12582
12579
  ), w = async () => {
12583
12580
  if (t.PUBLIC_ENV === "local") {
@@ -12838,7 +12835,7 @@ function Wu({
12838
12835
  API_ENV: e,
12839
12836
  texts: t
12840
12837
  }) {
12841
- const s = { ...vc, ...t?.comentarios }, [a, r] = J("login"), [i, o] = J(""), [l, u] = J(""), [c, d] = J(""), [m, h] = J(""), [p, f] = J(""), [A, w] = J(!1), [v, y] = J(!1), [S, E] = J(null);
12838
+ const s = { ...vc, ...t?.comentarios }, [a, r] = Z("login"), [i, o] = Z(""), [l, u] = Z(""), [c, d] = Z(""), [m, h] = Z(""), [p, f] = Z(""), [A, w] = Z(!1), [v, y] = Z(!1), [S, E] = Z(null);
12842
12839
  ce.useEffect(() => {
12843
12840
  if (typeof window > "u") return;
12844
12841
  window.location.hash.includes("forgot") && a === "login" && r("forgot"), a === "login" && I();
@@ -13261,7 +13258,7 @@ function Ec({
13261
13258
  ] });
13262
13259
  }
13263
13260
  function Yu({ containerId: e, containerId2: t }) {
13264
- return Te(() => {
13261
+ return xe(() => {
13265
13262
  try {
13266
13263
  let s = function() {
13267
13264
  const d = window.twttr;
@@ -13444,7 +13441,7 @@ const Ku = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
13444
13441
  fetchConfig: o,
13445
13442
  paths: l
13446
13443
  }) => {
13447
- const u = i.FETCH_SIZE_MORE_NEWS ?? 6, [c, d] = J({ data: Array.from({ length: u }, () => xc) }), [m, h] = J(!1), p = le(async () => {
13444
+ const u = i.FETCH_SIZE_MORE_NEWS ?? 6, [c, d] = Z({ data: Array.from({ length: u }, () => xc) }), [m, h] = Z(!1), p = le(async () => {
13448
13445
  if (!t) return;
13449
13446
  const w = new URLSearchParams({
13450
13447
  section: e,
@@ -13504,7 +13501,7 @@ const Ku = ({ currentNew: e }) => e && e?.hascontent?.hasembeddedtwitter && /* @
13504
13501
  p,
13505
13502
  f
13506
13503
  ]);
13507
- return Te(() => {
13504
+ return xe(() => {
13508
13505
  a && A();
13509
13506
  }, [a, A]), !c?.data || c.data.length === 0 ? null : /* @__PURE__ */ n(
13510
13507
  kc,
@@ -13818,7 +13815,7 @@ const ws = {
13818
13815
  function Ju(e) {
13819
13816
  return ws[e];
13820
13817
  }
13821
- const Le = 300, xe = {
13818
+ const Le = 300, Ie = {
13822
13819
  username: "anonimo",
13823
13820
  firstname: "Usuario",
13824
13821
  lastname: "Anonimo"
@@ -14843,9 +14840,9 @@ const Oa = Xc(td, {
14843
14840
  CAPTCHA_KEY_V2: i,
14844
14841
  texts: o
14845
14842
  }) => {
14846
- const l = { ...sd, ...o?.comentarios }, u = { ...ws, ...l.reportReasons ?? {} }, [c, d] = J("form"), [m, h] = J(
14843
+ const l = { ...sd, ...o?.comentarios }, u = { ...ws, ...l.reportReasons ?? {} }, [c, d] = Z("form"), [m, h] = Z(
14847
14844
  ""
14848
- ), [p, f] = J(""), [A, w] = J(""), v = [
14845
+ ), [p, f] = Z(""), [A, w] = Z(""), v = [
14849
14846
  { id: "spam", label: u.spam },
14850
14847
  { id: "inappropriate", label: u.inappropriate },
14851
14848
  { id: "hate", label: u.hate },
@@ -15083,8 +15080,8 @@ async function rd({
15083
15080
  }
15084
15081
  }
15085
15082
  const id = (e, t) => {
15086
- const [s, a] = J(void 0), { PUBLIC_PUBLICATION_ID: r } = t, i = r;
15087
- return Te(() => {
15083
+ const [s, a] = Z(void 0), { PUBLIC_PUBLICATION_ID: r } = t, i = r;
15084
+ return xe(() => {
15088
15085
  if (s) return;
15089
15086
  (async () => {
15090
15087
  const { PUBLIC_X_SECURITY_TOKEN: l } = t;
@@ -15168,7 +15165,7 @@ const id = (e, t) => {
15168
15165
  commentInputPlaceholder: "Ingresa un comentario"
15169
15166
  }, js = ({ commentRef: e, captchaToken: t = "", setIsDisabled: s, API_ENV: a, texts: r }) => {
15170
15167
  const i = { ...od, ...r?.comentarios };
15171
- return Te(() => {
15168
+ return xe(() => {
15172
15169
  const o = e.current;
15173
15170
  if (!o) return;
15174
15171
  const l = () => {
@@ -15448,7 +15445,7 @@ const ud = {
15448
15445
  API_ENV: o,
15449
15446
  texts: l
15450
15447
  }) => {
15451
- const [u, c] = J(!0), [d, m] = J(""), h = () => {
15448
+ const [u, c] = Z(!0), [d, m] = Z(""), h = () => {
15452
15449
  t.current?.parentElement && (t.current.parentElement.dataset.text = `0/${Le}`), c(!0), i();
15453
15450
  };
15454
15451
  return /* @__PURE__ */ g("div", { className: "comment-form reply-form su-p-8 su-relative", children: [
@@ -15501,9 +15498,9 @@ const ud = {
15501
15498
  replyingToLabel: "Respondiendo a"
15502
15499
  }, fd = ({ reply: e, replyingTo: t, user: s, onFlag: a, DATE_CONFIG: r, texts: i }) => {
15503
15500
  const o = { ...hd, ...i?.comentarios }, l = e.text;
15504
- let u = `${xe.firstname} ${xe.lastname ?? ""}`, c = xe.username;
15501
+ let u = `${Ie.firstname} ${Ie.lastname ?? ""}`, c = Ie.username;
15505
15502
  return e.user && (u = `${e.user.firstname} ${e.user.lastname ?? ""}`, c = e.user.username), /* @__PURE__ */ n("div", { className: "comment-item reply", children: /* @__PURE__ */ g("div", { className: "comment-header-container su-flex su-relative", children: [
15506
- /* @__PURE__ */ n(qa, { user: e.user ? e.user : xe }),
15503
+ /* @__PURE__ */ n(qa, { user: e.user ? e.user : Ie }),
15507
15504
  /* @__PURE__ */ g("div", { style: { flex: 1 }, children: [
15508
15505
  /* @__PURE__ */ n(Ma, { username: u, date: e.date.time, DATE_CONFIG: r }),
15509
15506
  /* @__PURE__ */ g("div", { className: "comment-reply-to", children: [
@@ -15519,8 +15516,8 @@ const ud = {
15519
15516
  }, gd = {
15520
15517
  moreRepliesButton: "Más Respuestas"
15521
15518
  }, pd = ({ comment: e, replyingTo: t, path: s, user: a, handleReplyingTo: r, onFlag: i, API_ENV: o, texts: l }) => {
15522
- const u = { ...gd, ...l?.comentarios }, c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [d, m] = J(c), [h, p] = ce.useState(!1), { PUBLIC_PUBLICATION_ID: f, PUBLIC_X_SECURITY_TOKEN: A } = o, w = e.text, v = ce.useRef(null);
15523
- let y = `${xe.firstname} ${xe.lastname ?? ""}`, S = xe.username;
15519
+ const u = { ...gd, ...l?.comentarios }, c = { morereply: e.morereply ?? !1, reply: e.reply ? e.reply : [] }, [d, m] = Z(c), [h, p] = ce.useState(!1), { PUBLIC_PUBLICATION_ID: f, PUBLIC_X_SECURITY_TOKEN: A } = o, w = e.text, v = ce.useRef(null);
15520
+ let y = `${Ie.firstname} ${Ie.lastname ?? ""}`, S = Ie.username;
15524
15521
  e.user && (y = `${e.user.firstname} ${e.user.lastname ?? ""}`, S = e.user.username);
15525
15522
  const E = (b) => {
15526
15523
  m({ morereply: d.morereply, reply: [b, ...d.reply] });
@@ -15531,7 +15528,7 @@ const ud = {
15531
15528
  className: "comment-header-container su-flex su-relative",
15532
15529
  "data-hasreplies": d.reply.length > 0 ? "true" : "false",
15533
15530
  children: [
15534
- /* @__PURE__ */ n(qa, { user: e.user ? e.user : xe }),
15531
+ /* @__PURE__ */ n(qa, { user: e.user ? e.user : Ie }),
15535
15532
  /* @__PURE__ */ g("div", { style: { flex: 1 }, children: [
15536
15533
  /* @__PURE__ */ n(Ma, { username: y, date: e.date.time, DATE_CONFIG: o }),
15537
15534
  /* @__PURE__ */ n("p", { className: "comment-text su-font-normal", children: w }),
@@ -15609,7 +15606,7 @@ const ud = {
15609
15606
  API_ENV: r,
15610
15607
  texts: i
15611
15608
  }) => {
15612
- const [o, l] = J(!0), [u, c] = J("");
15609
+ const [o, l] = Z(!0), [u, c] = Z("");
15613
15610
  return /* @__PURE__ */ g("div", { className: "comment-form su-p-8 su-relative", children: [
15614
15611
  /* @__PURE__ */ n(
15615
15612
  js,
@@ -15681,7 +15678,7 @@ const ud = {
15681
15678
  API_ENV: o,
15682
15679
  texts: l
15683
15680
  }) => {
15684
- const [u, c] = J(!0), [d, m] = J("");
15681
+ const [u, c] = Z(!0), [d, m] = Z("");
15685
15682
  return /* @__PURE__ */ n($, { children: /* @__PURE__ */ g("div", { className: "comment-form anoninus-form su-p-8 su-relative", children: [
15686
15683
  /* @__PURE__ */ n(
15687
15684
  bd,
@@ -15764,9 +15761,9 @@ const ud = {
15764
15761
  API_ENV: o,
15765
15762
  texts: l
15766
15763
  }) => {
15767
- const u = { ...Cd, ...l?.comentarios }, { PUBLIC_PUBLICATION_ID: c, PUBLIC_X_SECURITY_TOKEN: d } = o, m = c ?? "", h = t.replaceAll("/", "|"), [p, f] = J(
15764
+ const u = { ...Cd, ...l?.comentarios }, { PUBLIC_PUBLICATION_ID: c, PUBLIC_X_SECURITY_TOKEN: d } = o, m = c ?? "", h = t.replaceAll("/", "|"), [p, f] = Z(
15768
15765
  void 0
15769
- ), [A, w] = J(""), { comments: v, setComments: y } = id(h, o), [S, E] = ce.useState(!1), b = ce.useRef(null), I = ce.useRef(null), k = (U) => {
15766
+ ), [A, w] = Z(""), { comments: v, setComments: y } = id(h, o), [S, E] = ce.useState(!1), b = ce.useRef(null), I = ce.useRef(null), k = (U) => {
15770
15767
  w(A === U ? "" : U);
15771
15768
  }, Q = (U) => {
15772
15769
  y(
@@ -15861,7 +15858,7 @@ const ud = {
15861
15858
  replyingTo: A,
15862
15859
  handleReplyingTo: k,
15863
15860
  onFlag: W,
15864
- user: s ?? xe,
15861
+ user: s ?? Ie,
15865
15862
  path: h,
15866
15863
  API_ENV: o,
15867
15864
  texts: l
@@ -15946,7 +15943,7 @@ function Sd({
15946
15943
  API_ENV: a,
15947
15944
  texts: r
15948
15945
  }) {
15949
- const [i, o] = J(null), [l, u] = J(null), c = a?.COGNITO_AUTH_PREFIX ?? "ASTRO_", d = le(async () => {
15946
+ const [i, o] = Z(null), [l, u] = Z(null), c = a?.COGNITO_AUTH_PREFIX ?? "ASTRO_", d = le(async () => {
15950
15947
  if (e) {
15951
15948
  if (document.cookie.search(c + "IS_AUTH=true") === -1) {
15952
15949
  o(!1), u(null);
@@ -15960,9 +15957,9 @@ function Sd({
15960
15957
  }
15961
15958
  }
15962
15959
  }, [e, c]);
15963
- Te(() => {
15960
+ xe(() => {
15964
15961
  d();
15965
- }, [d, e]), Te(() => {
15962
+ }, [d, e]), xe(() => {
15966
15963
  if (!l || !e || typeof window > "u") return;
15967
15964
  const f = window;
15968
15965
  if (typeof f != "function") {