ctt-babylon 0.23.9 → 0.23.10
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
|
@@ -5829,32 +5829,36 @@ class MapperService {
|
|
|
5829
5829
|
title: typeof props?.texts?.addressTitle === 'string'
|
|
5830
5830
|
? props?.texts?.addressTitle
|
|
5831
5831
|
: props?.texts?.addressTitle?.contain,
|
|
5832
|
-
text:
|
|
5833
|
-
|
|
5834
|
-
|
|
5832
|
+
text: addressSource
|
|
5833
|
+
? [
|
|
5834
|
+
addressSource?.address,
|
|
5835
|
+
[addressSource?.cp, addressSource?.city]
|
|
5836
|
+
.filter(Boolean)
|
|
5837
|
+
.join(' '),
|
|
5838
|
+
addressSource?.locality,
|
|
5839
|
+
[addressSource?.province, addressSource?.country]
|
|
5840
|
+
.filter(Boolean)
|
|
5841
|
+
.join(', '),
|
|
5842
|
+
]
|
|
5835
5843
|
.filter(Boolean)
|
|
5836
|
-
.
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
return part
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
return part + '<br>';
|
|
5850
|
-
if (idx === 2)
|
|
5851
|
-
return part + '<br>';
|
|
5852
|
-
return part;
|
|
5853
|
-
})
|
|
5854
|
-
.join(''),
|
|
5844
|
+
.map((part, idx, arr) => {
|
|
5845
|
+
if (idx === 0)
|
|
5846
|
+
return part + '<br>';
|
|
5847
|
+
if (idx === 1 && arr[2])
|
|
5848
|
+
return part + ', ';
|
|
5849
|
+
if (idx === 1)
|
|
5850
|
+
return part + '<br>';
|
|
5851
|
+
if (idx === 2)
|
|
5852
|
+
return part + '<br>';
|
|
5853
|
+
return part;
|
|
5854
|
+
})
|
|
5855
|
+
.join('')
|
|
5856
|
+
: props?.texts?.text1 || undefined,
|
|
5855
5857
|
links: [
|
|
5856
5858
|
{
|
|
5857
|
-
url: addressSource
|
|
5859
|
+
url: addressSource
|
|
5860
|
+
? addressSource.link
|
|
5861
|
+
: props?.texts?.url1,
|
|
5858
5862
|
linkType: 'external',
|
|
5859
5863
|
label: addressSource?.address,
|
|
5860
5864
|
},
|
|
@@ -5867,12 +5871,19 @@ class MapperService {
|
|
|
5867
5871
|
: props?.texts?.emailTitle?.contain ||
|
|
5868
5872
|
addressSource?.email,
|
|
5869
5873
|
links: [
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5874
|
+
addressSource
|
|
5875
|
+
? {
|
|
5876
|
+
url: `mailto:${addressSource?.email}`,
|
|
5877
|
+
linkType: 'external',
|
|
5878
|
+
label: addressSource?.email,
|
|
5879
|
+
smallText: addressSource?.email,
|
|
5880
|
+
}
|
|
5881
|
+
: {
|
|
5882
|
+
url: props?.texts?.url2,
|
|
5883
|
+
linkType: 'external',
|
|
5884
|
+
label: props?.texts?.text2,
|
|
5885
|
+
smallText: props?.texts?.text2,
|
|
5886
|
+
},
|
|
5876
5887
|
],
|
|
5877
5888
|
},
|
|
5878
5889
|
phone: {
|
|
@@ -5881,20 +5892,35 @@ class MapperService {
|
|
|
5881
5892
|
? props?.texts?.reservationsTitle
|
|
5882
5893
|
: props?.texts?.reservationsTitle?.contain ||
|
|
5883
5894
|
addressSource?.phone,
|
|
5884
|
-
links:
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5895
|
+
links: addressSource
|
|
5896
|
+
? [
|
|
5897
|
+
{
|
|
5898
|
+
url: `tel:${addressSource?.phone}`,
|
|
5899
|
+
linkType: 'external',
|
|
5900
|
+
label: addressSource?.phone,
|
|
5901
|
+
smallText: addressSource?.phone,
|
|
5902
|
+
},
|
|
5903
|
+
{
|
|
5904
|
+
url: `tel:${addressSource?.phonetwo}`,
|
|
5905
|
+
linkType: 'external',
|
|
5906
|
+
label: addressSource?.phonetwo,
|
|
5907
|
+
smallText: addressSource?.phonetwo,
|
|
5908
|
+
},
|
|
5909
|
+
]
|
|
5910
|
+
: [
|
|
5911
|
+
{
|
|
5912
|
+
url: `mailto:${props?.texts?.url3}`,
|
|
5913
|
+
linkType: 'external',
|
|
5914
|
+
label: props?.texts?.text3,
|
|
5915
|
+
smallText: props?.texts?.text3,
|
|
5916
|
+
},
|
|
5917
|
+
{
|
|
5918
|
+
url: `tel:${props?.texts?.url4}`,
|
|
5919
|
+
linkType: 'external',
|
|
5920
|
+
label: props?.texts?.text4,
|
|
5921
|
+
smallText: props?.texts?.text4,
|
|
5922
|
+
},
|
|
5923
|
+
],
|
|
5898
5924
|
},
|
|
5899
5925
|
},
|
|
5900
5926
|
};
|