ctt-babylon 0.13.18 → 0.13.20

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,32 @@ class MapperService {
5670
5672
  return offerData ?? offerData;
5671
5673
  }
5672
5674
  mapHeadIntro(props, component) {
5675
+ let additionalTexts = {
5676
+ additional2: '',
5677
+ additional3: '',
5678
+ additional4: '',
5679
+ };
5680
+ if (props?.room) {
5681
+ additionalTexts.additional2 = props.room.texts?.additional2 ?? '';
5682
+ additionalTexts.additional3 = props.room.texts?.additional3 ?? '';
5683
+ additionalTexts.additional4 = props.room.texts?.additional4 ?? '';
5684
+ }
5673
5685
  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,
5686
+ pretitle: additionalTexts.additional2.length
5687
+ ? additionalTexts.additional2
5688
+ : typeof props?.texts?.pretitle === 'string'
5689
+ ? props?.texts?.pretitle
5690
+ : props?.texts?.pretitle?.contain,
5691
+ title: additionalTexts.additional3.length
5692
+ ? additionalTexts.additional3
5693
+ : typeof props?.texts?.title === 'string'
5694
+ ? props?.texts?.title
5695
+ : props?.texts?.title?.contain,
5696
+ text: additionalTexts.additional4.length
5697
+ ? additionalTexts.additional4
5698
+ : typeof props?.texts?.text === 'string'
5699
+ ? props?.texts?.text
5700
+ : props?.texts?.text?.contain,
5683
5701
  buttons: Utils.mapButtons(props?.buttons?.filter((btn) => btn?.linkValue !== null)),
5684
5702
  tags: {
5685
5703
  pretitle: props?.texts?.pretitle?.tag,