ctt-babylon 0.2.1 → 0.2.3

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.
@@ -1737,8 +1737,16 @@ class MapperService {
1737
1737
  type: 'video/mp4',
1738
1738
  },
1739
1739
  labelInfos: {
1740
- title: props?.texts?.title,
1741
- pretitle: props?.texts?.pretitle,
1740
+ pretitle: typeof props?.texts?.pretitle === 'string'
1741
+ ? props?.texts?.pretitle
1742
+ : props?.texts?.pretitle?.contain,
1743
+ title: typeof props?.texts?.title === 'string'
1744
+ ? props?.texts?.title
1745
+ : props?.texts?.title?.contain,
1746
+ },
1747
+ tags: {
1748
+ pretitle: props?.texts?.pretitle?.tag,
1749
+ title: props?.texts?.title?.tag,
1742
1750
  },
1743
1751
  img: this.getImageResponsive(props?.multimedia?.imagemobile?.[0], false),
1744
1752
  button: Utils.mapButtons(props?.buttons)?.[0],
@@ -2188,13 +2196,21 @@ class MapperService {
2188
2196
  ? {
2189
2197
  images: images,
2190
2198
  labels: {
2191
- title: props?.texts?.title,
2192
- pretitle: props?.texts?.pretitle,
2199
+ pretitle: typeof props?.texts?.pretitle === 'string'
2200
+ ? props?.texts?.pretitle
2201
+ : props?.texts?.pretitle?.contain,
2202
+ title: typeof props?.texts?.title === 'string'
2203
+ ? props?.texts?.title
2204
+ : props?.texts?.title?.contain,
2193
2205
  },
2194
2206
  topBG: this.getImageResponsive(props?.multimedia?.topbg?.[0], false),
2195
2207
  bottomBG: this.getImageResponsive(props?.multimedia?.bottombg?.[0], false),
2196
2208
  topColor: props?.texts?.topColor,
2197
2209
  bottomColor: props?.texts?.BottomColor,
2210
+ tags: {
2211
+ pretitle: props?.texts?.pretitle?.tag,
2212
+ title: props?.texts?.title?.tag,
2213
+ },
2198
2214
  }
2199
2215
  : undefined;
2200
2216
  }
@@ -2398,9 +2414,17 @@ class MapperService {
2398
2414
  }
2399
2415
  mapContactForm(props, ndProps, ndPropsConsult) {
2400
2416
  return {
2401
- title: props?.texts?.title,
2417
+ pretitle: typeof props?.texts?.pretitle === 'string'
2418
+ ? props?.texts?.pretitle
2419
+ : props?.texts?.pretitle?.contain,
2420
+ title: typeof props?.texts?.title === 'string'
2421
+ ? props?.texts?.title
2422
+ : props?.texts?.title?.contain,
2423
+ tags: {
2424
+ pretitle: props?.texts?.pretitle?.tag,
2425
+ title: props?.texts?.title?.tag,
2426
+ },
2402
2427
  description: props?.texts?.description,
2403
- pretitle: props?.texts?.pretitle,
2404
2428
  subtitle: props?.texts?.subtitle,
2405
2429
  button: Utils.mapButtons(props?.buttons)?.[0],
2406
2430
  textarea: {
@@ -3264,8 +3288,16 @@ class MapperService {
3264
3288
  }
3265
3289
  mapInfo2ImgBig(props) {
3266
3290
  return {
3267
- pretitle: props?.texts?.pretitle,
3268
- title: props?.texts?.title,
3291
+ pretitle: typeof props?.texts?.pretitle === 'string'
3292
+ ? props?.texts?.pretitle
3293
+ : props?.texts?.pretitle?.contain,
3294
+ title: typeof props?.texts?.title === 'string'
3295
+ ? props?.texts?.title
3296
+ : props?.texts?.title?.contain,
3297
+ tags: {
3298
+ pretitle: props?.texts?.pretitle?.tag,
3299
+ title: props?.texts?.title?.tag,
3300
+ },
3269
3301
  text: props?.texts?.description,
3270
3302
  pretitle2: props?.texts?.ndPretitle,
3271
3303
  title2: props?.texts?.ndTitle,