ctt-puro 0.46.27 → 0.46.29

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.
@@ -4363,9 +4363,9 @@ class MapperService {
4363
4363
  icon: Utils.mapSocialcons(item?.name?.toLowerCase()),
4364
4364
  })),
4365
4365
  },
4366
- title: typeof texts?.title === 'string'
4367
- ? texts?.title
4368
- : texts?.title?.contain,
4366
+ title: typeof texts?.pretitle === 'string'
4367
+ ? texts?.pretitle
4368
+ : texts?.pretitle?.contain,
4369
4369
  tags: {
4370
4370
  title: props?.texts?.title?.tag,
4371
4371
  },
@@ -4589,8 +4589,8 @@ class MapperService {
4589
4589
  const tr = hotel?.texts ?? hotel?.translations ?? {};
4590
4590
  const title = tr?.name ?? hotel?.name_identifier;
4591
4591
  const location = hotel?.city;
4592
- const buttons = Utils.mapButtons(this.siteId(), hotel?.buttons);
4593
- const links = Utils.mapButtons(this.siteId(), hotel?.links);
4592
+ const buttons = Utils.mapButtons(hotel?.buttons?.[0]?.siteId ?? this.siteId(), hotel?.buttons?.filter((btn) => !!btn?.linkValue));
4593
+ const links = Utils.mapButtons(hotel?.links?.[0]?.siteId ?? this.siteId(), hotel?.links);
4594
4594
  const firstImg = hotel?.multimedia?.find((m) => m?.cover) ?? {};
4595
4595
  const img = this.getImageResponsive(firstImg);
4596
4596
  return {
@@ -6028,7 +6028,7 @@ class MapperService {
6028
6028
  pretitle: props?.texts?.pretitle,
6029
6029
  subtitle: props?.texts?.subtitle,
6030
6030
  description: props?.texts?.description,
6031
- buttons: Utils.mapButtons(this.siteId(), props?.buttons?.filter((btn) => !!btn?.linkValue))
6031
+ buttons: Utils.mapButtons(this.siteId(), props?.buttons?.filter((btn) => !!btn?.linkValue)),
6032
6032
  };
6033
6033
  }
6034
6034
  mapCareersForm(props) {