ctt-babylon 0.22.80 → 0.22.82
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.
package/fesm2022/ctt-babylon.mjs
CHANGED
|
@@ -4674,7 +4674,7 @@ class MapperService {
|
|
|
4674
4674
|
: props?.texts?.ndtitle?.contain,
|
|
4675
4675
|
lessBtn: props?.texts?.seeLess,
|
|
4676
4676
|
moreBtn: props?.texts?.seeMore,
|
|
4677
|
-
images: this.getArrayImageResponsive(props?.multimedia?.imagenes, false),
|
|
4677
|
+
images: this.getArrayImageResponsive(props?.multimedia?.imagenes ?? props?.multimedia?.images, false),
|
|
4678
4678
|
advantages: props?.Ventajas?.filter((item) => item?.title || item?.text)?.map((item) => ({
|
|
4679
4679
|
title: item.title,
|
|
4680
4680
|
text: item.text,
|
|
@@ -4950,7 +4950,7 @@ class MapperService {
|
|
|
4950
4950
|
let images = [];
|
|
4951
4951
|
let texts, tags;
|
|
4952
4952
|
if (props?.multimedia?.imagenes) {
|
|
4953
|
-
images = this.getArrayImageResponsive(props?.multimedia?.imagenes, false);
|
|
4953
|
+
images = this.getArrayImageResponsive(props?.multimedia?.imagenes ?? props?.multimedia?.images, false);
|
|
4954
4954
|
texts = {
|
|
4955
4955
|
pretitle: props?.texts?.pretitle?.contain ??
|
|
4956
4956
|
(typeof props?.texts?.pretitle == 'string'
|
|
@@ -5445,7 +5445,8 @@ class MapperService {
|
|
|
5445
5445
|
error: props?.texts?.errorRequired,
|
|
5446
5446
|
}
|
|
5447
5447
|
: undefined,
|
|
5448
|
-
image: this.getImageResponsive(props?.multimedia?.imagenes?.[0]
|
|
5448
|
+
image: this.getImageResponsive(props?.multimedia?.imagenes?.[0] ??
|
|
5449
|
+
props?.multimedia?.image?.[0], false),
|
|
5449
5450
|
inputs: [
|
|
5450
5451
|
{
|
|
5451
5452
|
id: 'nombre',
|
|
@@ -5602,7 +5603,8 @@ class MapperService {
|
|
|
5602
5603
|
mapContactMap(props) {
|
|
5603
5604
|
return {
|
|
5604
5605
|
contentUrl: props?.texts?.phoneIcon,
|
|
5605
|
-
mapImage: this.getImageResponsive(props?.multimedia?.imagenes?.[0]
|
|
5606
|
+
mapImage: this.getImageResponsive(props?.multimedia?.imagenes?.[0] ??
|
|
5607
|
+
props?.multimedia?.images?.[0], false),
|
|
5606
5608
|
button: Utils.mapButtons(props?.buttons)?.[0],
|
|
5607
5609
|
mapImageMobile: this.getImageResponsive(props?.multimedia?.imagenesmobile?.[0], false),
|
|
5608
5610
|
};
|
|
@@ -5632,7 +5634,8 @@ class MapperService {
|
|
|
5632
5634
|
pretitle: typeof props?.texts?.pretitle === 'string'
|
|
5633
5635
|
? props?.texts?.pretitle
|
|
5634
5636
|
: props?.texts?.pretitle?.contain,
|
|
5635
|
-
image: this.getImageResponsive(props?.multimedia?.imagenes?.[0]
|
|
5637
|
+
image: this.getImageResponsive(props?.multimedia?.imagenes?.[0] ??
|
|
5638
|
+
props?.multimedia?.image?.[0], false),
|
|
5636
5639
|
groupByCategory: this.hasTextTokenValue(props?.texts?.groupByCategory),
|
|
5637
5640
|
tags: {
|
|
5638
5641
|
pretitle: props?.texts?.pretitle?.tag,
|
|
@@ -5651,7 +5654,8 @@ class MapperService {
|
|
|
5651
5654
|
description: typeof props?.texts?.description === 'string'
|
|
5652
5655
|
? props?.texts?.description
|
|
5653
5656
|
: props?.texts?.description?.contain,
|
|
5654
|
-
img: this.getImageResponsive(props?.multimedia?.imagenes?.[0]
|
|
5657
|
+
img: this.getImageResponsive(props?.multimedia?.imagenes?.[0] ??
|
|
5658
|
+
props?.multimedia?.image?.[0], false),
|
|
5655
5659
|
tags: {
|
|
5656
5660
|
pretitle: props?.texts?.pretitle?.tag,
|
|
5657
5661
|
title: props?.texts?.title?.tag,
|
|
@@ -5949,8 +5953,10 @@ class MapperService {
|
|
|
5949
5953
|
description: faq.text,
|
|
5950
5954
|
})),
|
|
5951
5955
|
img: props?.locationMap
|
|
5952
|
-
? this.getImageResponsive(props?.locationMap?.multimedia?.imagenes?.[0]
|
|
5953
|
-
|
|
5956
|
+
? this.getImageResponsive(props?.locationMap?.multimedia?.imagenes?.[0] ??
|
|
5957
|
+
props?.locationMap?.multimedia?.image?.[0], false)
|
|
5958
|
+
: this.getImageResponsive(props?.multimedia?.imagenes?.[0] ??
|
|
5959
|
+
props?.multimedia?.image?.[0], false),
|
|
5954
5960
|
};
|
|
5955
5961
|
}
|
|
5956
5962
|
mapStaticFooter(props) {
|