ctt-puro 0.47.3 → 0.47.5

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.
@@ -4729,7 +4729,17 @@ class MapperService {
4729
4729
  memberTitle: props.texts?.memberTitle,
4730
4730
  memberPretitle: props.texts?.memberPretitle,
4731
4731
  copyright: props.texts?.copyright,
4732
- links: Utils.mapButtons(this.siteId(), props.links),
4732
+ links: props.links
4733
+ ? props.links
4734
+ .map((link) => {
4735
+ const site = link.siteId ??
4736
+ link.site_id ??
4737
+ link.site ??
4738
+ this.siteId();
4739
+ return Utils.mapButtons(site, link)[0];
4740
+ })
4741
+ .filter(Boolean)
4742
+ : [],
4733
4743
  };
4734
4744
  }
4735
4745
  return undefined;
@@ -5856,9 +5866,9 @@ class MapperService {
5856
5866
  title: item.title,
5857
5867
  content: item.text,
5858
5868
  })),
5859
- applicationButton: Utils.mapButtons(this.siteId(), buttons?.[0])[0],
5869
+ applicationButton: Utils.mapButtons(this.siteId(), buttons)[0],
5860
5870
  view: this.getView(view),
5861
- contactButton: Utils.mapButtons(this.siteId(), buttons?.[1])[1],
5871
+ contactButton: Utils.mapButtons(this.siteId(), buttons)[1],
5862
5872
  tags: {
5863
5873
  title: texts?.title?.tag,
5864
5874
  },
@@ -6124,8 +6134,7 @@ class MapperService {
6124
6134
  placeholder: props?.texts?.prefixes,
6125
6135
  },
6126
6136
  nameInput: {
6127
- name: Utils.normalizeControlName(props?.texts?.inputName, 'name') ??
6128
- 'First name',
6137
+ name: Utils.normalizeControlName(props?.texts?.inputName, 'name') ?? 'First name',
6129
6138
  placeholder: props?.texts?.inputName ?? 'First name',
6130
6139
  value: '',
6131
6140
  type: 'text',
@@ -6174,8 +6183,7 @@ class MapperService {
6174
6183
  valid: signal(true),
6175
6184
  },
6176
6185
  filesInput: {
6177
- name: Utils.normalizeControlName(props?.texts?.filesInput, 'additionalFiles') ??
6178
- 'additionalFiles',
6186
+ name: Utils.normalizeControlName(props?.texts?.filesInput, 'additionalFiles') ?? 'additionalFiles',
6179
6187
  type: props?.texts?.filesInput ?? 'Additional files',
6180
6188
  label: props?.texts?.filesInput,
6181
6189
  value: null,
@@ -6183,7 +6191,8 @@ class MapperService {
6183
6191
  // validators: [Validators.required],
6184
6192
  },
6185
6193
  cvInput: {
6186
- name: Utils.normalizeControlName(props?.texts?.cvInput, 'cv') ?? 'cv',
6194
+ name: Utils.normalizeControlName(props?.texts?.cvInput, 'cv') ??
6195
+ 'cv',
6187
6196
  type: props?.texts?.cvInput,
6188
6197
  label: props?.texts?.cvInput ?? 'Upload yo ur CV here',
6189
6198
  value: null,