ctt-babylon 0.13.18 → 0.13.19

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.
@@ -4862,13 +4862,15 @@ class MapperService {
4862
4862
  const detailButtons = props.buttons?.length ? props.buttons : buttons;
4863
4863
  return {
4864
4864
  title: texts?.name,
4865
- description: texts?.additional4 !== undefined &&
4866
- texts?.additional4 !== null &&
4867
- texts?.additional4 !== ''
4868
- ? texts?.additional4
4869
- : texts?.description,
4865
+ description: texts?.description
4866
+ ? texts?.description
4867
+ : texts?.additional4 !== undefined &&
4868
+ texts?.additional4 !== null &&
4869
+ texts?.additional4 !== ''
4870
+ ? texts?.additional4
4871
+ : '',
4870
4872
  pretitle: texts?.additional1,
4871
- equipmentTitle: texts?.additional2,
4873
+ equipmentTitle: texts?.additional1,
4872
4874
  button: Utils.mapButtons(detailButtons)?.[0],
4873
4875
  items: props?.room?.services
4874
4876
  ?.filter((item) => item?.type
@@ -5670,16 +5672,31 @@ class MapperService {
5670
5672
  return offerData ?? offerData;
5671
5673
  }
5672
5674
  mapHeadIntro(props, component) {
5675
+ console.log(props);
5676
+ let additionalTexts = {
5677
+ additional2: '',
5678
+ additional3: '',
5679
+ additional4: '',
5680
+ };
5681
+ if (props?.room) {
5682
+ additionalTexts.additional2 = props.room.texts?.additional2 ?? '';
5683
+ additionalTexts.additional3 = props.room.texts?.additional3 ?? '';
5684
+ additionalTexts.additional4 = props.room.texts?.additional4 ?? '';
5685
+ }
5686
+ console.log(additionalTexts);
5673
5687
  return {
5674
- pretitle: typeof props?.texts?.pretitle === 'string'
5675
- ? props?.texts?.pretitle
5676
- : props?.texts?.pretitle?.contain,
5677
- title: typeof props?.texts?.title === 'string'
5678
- ? props?.texts?.title
5679
- : props?.texts?.title?.contain,
5680
- text: typeof props?.texts?.text === 'string'
5681
- ? props?.texts?.text
5682
- : props?.texts?.text?.contain,
5688
+ pretitle: additionalTexts.additional2 ??
5689
+ (typeof props?.texts?.pretitle === 'string'
5690
+ ? props?.texts?.pretitle
5691
+ : props?.texts?.pretitle?.contain),
5692
+ title: additionalTexts.additional3 ??
5693
+ (typeof props?.texts?.title === 'string'
5694
+ ? props?.texts?.title
5695
+ : props?.texts?.title?.contain),
5696
+ text: additionalTexts.additional4 ??
5697
+ (typeof props?.texts?.text === 'string'
5698
+ ? props?.texts?.text
5699
+ : props?.texts?.text?.contain),
5683
5700
  buttons: Utils.mapButtons(props?.buttons?.filter((btn) => btn?.linkValue !== null)),
5684
5701
  tags: {
5685
5702
  pretitle: props?.texts?.pretitle?.tag,