sass-template-common 0.3.100 → 0.3.101

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.
@@ -1155,6 +1155,7 @@ export declare type LibraryConfig = {
1155
1155
  autor: boolean;
1156
1156
  tema: boolean;
1157
1157
  };
1158
+ MULTIPUBLICATION_FETCHES?: any;
1158
1159
  };
1159
1160
 
1160
1161
  export declare interface Link {
@@ -3512,48 +3512,51 @@ class _c extends mt {
3512
3512
  });
3513
3513
  if (!n || !n.data || !n.data.data || n.data.data.length === 0 || !n.data.data[0]?.value || !n.data.data[0].block || !this.props?.imgSizes[n.data.data[0].block])
3514
3514
  return { blockSass: n ? n.data.data : void 0 };
3515
- const s = n.data.data[0] ?? [], o = s?.value.split("="), r = o[0] ?? "", i = o[1] ?? "", c = s?.block, u = {
3515
+ const { MULTIPUBLICATION_FETCHES: s, PUBLIC_PUBLICATION_ID: o } = W(), r = n.data.data[0] ?? [], i = r?.value.split("="), c = i[0] ?? "", u = i[1] ?? "", l = r?.block, d = {
3516
3516
  videos: async () => {
3517
- const l = await this.getvideoListAdvanced({
3518
- size: this.props?.imgSizes[c].size ?? 5,
3517
+ const h = await this.getvideoListAdvanced({
3518
+ publication: s ?? o,
3519
+ size: this.props?.imgSizes[l].size ?? 5,
3519
3520
  imagesizes: `${this.props?.imgSizesVideo.lg}${this.props?.imgSizesVideo.md}`,
3520
- query: "Keywords:(" + (i ?? "videohome") + ")"
3521
+ query: "Keywords:(" + (u ?? "videohome") + ")"
3521
3522
  });
3522
3523
  return {
3523
3524
  blockSass: n.data.data,
3524
- content: l ? l.data : void 0
3525
+ content: h ? h.data : void 0
3525
3526
  };
3526
3527
  },
3527
3528
  tag: async () => {
3528
- const { USE_QUOTE_IN_QUERY_TAG_HOME: l } = W(), d = await this.getNewsListAvanced({
3529
- query: l ? 'claves:("' + i + '")' : "claves:(" + i + ")",
3530
- size: this.props?.imgSizes[c]?.size ?? 3,
3529
+ const { USE_QUOTE_IN_QUERY_TAG_HOME: h } = W(), m = await this.getNewsListAvanced({
3530
+ publication: s ?? o,
3531
+ query: h ? 'claves:("' + u + '")' : "claves:(" + u + ")",
3532
+ size: this.props?.imgSizes[l]?.size ?? 3,
3531
3533
  newstype: this.props?.config?.newsType,
3532
3534
  exclude: this.exclude,
3533
- imagesizes: this.props?.imgSizes[c]?.imageSizes
3535
+ imagesizes: this.props?.imgSizes[l]?.imageSizes
3534
3536
  });
3535
3537
  return {
3536
3538
  blockSass: n.data.data,
3537
- content: d ? d.data : void 0
3539
+ content: m ? m.data : void 0
3538
3540
  };
3539
3541
  },
3540
3542
  seccion: async () => {
3541
- const l = await this.getNewsListSection({
3542
- section: i,
3543
- size: this.props?.imgSizes[c]?.size ?? 3,
3543
+ const h = await this.getNewsListSection({
3544
+ publication: s ?? o,
3545
+ section: u,
3546
+ size: this.props?.imgSizes[l]?.size ?? 3,
3544
3547
  newstype: this.props?.config?.newsType,
3545
3548
  exclude: this.exclude,
3546
- imagesizes: this.props?.imgSizes[c]?.imageSizes
3549
+ imagesizes: this.props?.imgSizes[l]?.imageSizes
3547
3550
  });
3548
3551
  return {
3549
3552
  blockSass: n.data.data,
3550
- content: l ? l.data : void 0
3553
+ content: h ? h.data : void 0
3551
3554
  };
3552
3555
  }
3553
3556
  };
3554
- if (r in u) {
3555
- const l = u[r];
3556
- return await l();
3557
+ if (c in d) {
3558
+ const h = d[c];
3559
+ return await h();
3557
3560
  }
3558
3561
  return { blockSass: n.data.data };
3559
3562
  };