ctt-puro 0.66.8 → 0.66.9
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-puro.mjs
CHANGED
|
@@ -4961,8 +4961,9 @@ class MapperService {
|
|
|
4961
4961
|
const { texts, event, experience, hotels, multimedia, destinations } = props;
|
|
4962
4962
|
let items = [];
|
|
4963
4963
|
let options = [];
|
|
4964
|
-
|
|
4964
|
+
let exp = false;
|
|
4965
4965
|
if (event) {
|
|
4966
|
+
exp = false;
|
|
4966
4967
|
const rawDestinations = (event ?? []).flat().filter(Boolean);
|
|
4967
4968
|
const destinations = Array.from(new Map(rawDestinations.map((d) => [Number(d.id), d])).values());
|
|
4968
4969
|
const rawItems = destinations.map((dest) => {
|
|
@@ -4996,6 +4997,7 @@ class MapperService {
|
|
|
4996
4997
|
}));
|
|
4997
4998
|
}
|
|
4998
4999
|
if (experience) {
|
|
5000
|
+
exp = true;
|
|
4999
5001
|
items = experience?.map((exp) => {
|
|
5000
5002
|
return {
|
|
5001
5003
|
title: exp?.texts?.title,
|
|
@@ -5015,6 +5017,7 @@ class MapperService {
|
|
|
5015
5017
|
}));
|
|
5016
5018
|
}
|
|
5017
5019
|
if (hotels) {
|
|
5020
|
+
exp = true;
|
|
5018
5021
|
items = hotels.map((hotel) => {
|
|
5019
5022
|
const tr = hotel?.texts ?? hotel?.translations ?? {};
|
|
5020
5023
|
const title = tr?.name ?? hotel?.name_identifier;
|
|
@@ -5044,6 +5047,7 @@ class MapperService {
|
|
|
5044
5047
|
}));
|
|
5045
5048
|
}
|
|
5046
5049
|
if (multimedia) {
|
|
5050
|
+
exp = true;
|
|
5047
5051
|
items = multimedia?.imagenes?.map((img) => {
|
|
5048
5052
|
return {
|
|
5049
5053
|
title: img?.title,
|
|
@@ -5063,6 +5067,7 @@ class MapperService {
|
|
|
5063
5067
|
}));
|
|
5064
5068
|
}
|
|
5065
5069
|
if (destinations) {
|
|
5070
|
+
exp = true;
|
|
5066
5071
|
items = destinations?.map((item) => {
|
|
5067
5072
|
return {
|
|
5068
5073
|
title: item?.title ?? item?.name,
|
|
@@ -5097,7 +5102,7 @@ class MapperService {
|
|
|
5097
5102
|
// backgroundImg: this.getImageResponsive(
|
|
5098
5103
|
// props?.multimedia?.imagenes?.[0]
|
|
5099
5104
|
// ),
|
|
5100
|
-
exp,
|
|
5105
|
+
exp: exp,
|
|
5101
5106
|
tags: {
|
|
5102
5107
|
pretitle: texts?.pretitle?.tag,
|
|
5103
5108
|
title: texts?.title?.tag,
|