ctt-puro 0.50.2 → 0.50.4

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.
@@ -4089,7 +4089,7 @@ class MapperService {
4089
4089
  let items = [];
4090
4090
  if (multimedia) {
4091
4091
  items = multimedia?.imagenes?.map((img) => ({
4092
- button: Utils.mapButtons(this.siteId(), img?.buttons)[0],
4092
+ button: Utils.mapButtons(img?.buttons?.[0]?.siteId ?? this.siteId(), img?.buttons)[0],
4093
4093
  pretitle: img?.pretitle,
4094
4094
  title: img?.title,
4095
4095
  img: this.getImageResponsive(img),
@@ -5218,10 +5218,10 @@ class MapperService {
5218
5218
  }
5219
5219
  mapPhotoSlider(props, reverse) {
5220
5220
  return {
5221
- title: props?.texts?.title,
5222
- pretitle: props?.texts?.pretitle,
5223
- subtitle: props?.texts?.subtitle,
5224
- description: props?.texts?.description,
5221
+ title: props?.texts?.title ?? props?.multimedia?.[0]?.title,
5222
+ pretitle: props?.texts?.pretitle ?? props?.multimedia?.[0]?.pretitle,
5223
+ subtitle: props?.texts?.subtitle ?? props?.multimedia?.[0]?.subtitle,
5224
+ description: props?.texts?.description ?? props?.multimedia?.[0]?.description,
5225
5225
  button: Utils.mapButtons(this.siteId(), props?.buttons?.filter((btn) => !!btn?.linkValue))[0],
5226
5226
  img: this.getArrayImageResponsive(props?.multimedia?.imagenes || []),
5227
5227
  reverse,
@@ -5229,10 +5229,11 @@ class MapperService {
5229
5229
  }
5230
5230
  mapBanner4Col(props) {
5231
5231
  return {
5232
- title: typeof props?.texts?.title === 'string'
5232
+ title: (typeof props?.texts?.title === 'string'
5233
5233
  ? props?.texts?.title
5234
- : props?.texts?.title?.contain,
5235
- description: props?.texts?.description,
5234
+ : props?.texts?.title?.contain)
5235
+ ?? props?.multimedia?.imagenes?.[0]?.title,
5236
+ description: props?.texts?.description ?? props?.multimedia?.imagenes?.[0]?.description,
5236
5237
  button: Utils.mapButtons(this.siteId(), props?.buttons)[0],
5237
5238
  images: props?.multimedia?.imagenes?.length
5238
5239
  ? this.getArrayImageResponsive(props.multimedia.imagebig?.length