ctt-puro 0.66.0 → 0.66.2

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.
@@ -5452,7 +5452,7 @@ class MapperService {
5452
5452
  images: this.getArrayImageResponsive(restaurant?.multimedia?.filter((img) => img?.tags?.some((tag) => tag === 'ListRestaurants' ||
5453
5453
  tag?.name === 'ListRestaurants'))),
5454
5454
  buttons: [
5455
- Utils.mapButtons(1, restaurant?.buttons),
5455
+ Utils.mapButtons(1, restaurant?.buttons?.filter((btn) => btn?.linkType === 'self_link' || btn?.linkType === 'external_link')),
5456
5456
  ],
5457
5457
  ...(restaurant?.logos?.length
5458
5458
  ? {
@@ -6152,22 +6152,22 @@ class MapperService {
6152
6152
  applyButton: Utils.mapButtons(this.siteId(), props?.buttons)[0],
6153
6153
  seeAllButton: Utils.mapButtons(this.siteId(), props?.buttons)[1],
6154
6154
  whyTextarea: {
6155
- title: props?.texts?.inputWhyMessage,
6156
- placeholder: props?.texts?.inputWhyMessage,
6155
+ title: props?.texts?.whyTextarea,
6156
+ placeholder: props?.texts?.whyTextarea,
6157
6157
  value: '',
6158
6158
  valid: signal(true),
6159
6159
  name: 'whyMessage',
6160
6160
  },
6161
6161
  waTextarea: {
6162
- title: props?.texts?.inputWaMessage,
6163
- placeholder: props?.texts?.inputWaMessage,
6162
+ title: props?.texts?.waTextarea,
6163
+ placeholder: props?.texts?.waTextarea,
6164
6164
  value: '',
6165
6165
  valid: signal(true),
6166
6166
  name: 'waMessage',
6167
6167
  },
6168
6168
  ppTextarea: {
6169
- title: props?.texts?.inputPPMessage,
6170
- placeholder: props?.texts?.inputPPMessage,
6169
+ title: props?.texts?.ppTextarea,
6170
+ placeholder: props?.texts?.ppTextarea,
6171
6171
  value: '',
6172
6172
  valid: signal(true),
6173
6173
  name: 'ppMessage',
@@ -6197,7 +6197,7 @@ class MapperService {
6197
6197
  code: index,
6198
6198
  name: prefix,
6199
6199
  })),
6200
- placeholder: props?.texts?.prefixes,
6200
+ placeholder: props?.texts?.prefixesInput,
6201
6201
  },
6202
6202
  addressInput: {
6203
6203
  name: Utils.normalizeControlName(props?.texts?.addressInput, 'address'),
@@ -6219,58 +6219,58 @@ class MapperService {
6219
6219
  valid: signal(true),
6220
6220
  },
6221
6221
  nameInput: {
6222
- name: Utils.normalizeControlName(props?.texts?.inputName, 'name'),
6223
- placeholder: props?.texts?.inputName,
6222
+ name: Utils.normalizeControlName(props?.texts?.nameInput, 'name'),
6223
+ placeholder: props?.texts?.nameInput,
6224
6224
  value: '',
6225
6225
  type: 'text',
6226
- error: props?.texts?.errorName,
6226
+ error: props?.texts?.nameInputError,
6227
6227
  validators: [Validators.required],
6228
6228
  valid: signal(true),
6229
6229
  },
6230
6230
  surnameInput: {
6231
- title: props?.texts?.surnames,
6232
- name: Utils.normalizeControlName(props?.texts?.surnames, 'surname'),
6233
- placeholder: props?.texts?.surnames,
6231
+ title: props?.texts?.surnameInput,
6232
+ name: Utils.normalizeControlName(props?.texts?.surnameInput, 'surname'),
6233
+ placeholder: props?.texts?.surnameInput,
6234
6234
  value: '',
6235
6235
  type: 'text',
6236
- error: props?.texts?.errorName,
6236
+ error: props?.texts?.surnameInputError,
6237
6237
  validators: [Validators.required],
6238
6238
  valid: signal(true),
6239
6239
  },
6240
6240
  emailInput: {
6241
- title: props?.texts?.inputEmail,
6242
- name: Utils.normalizeControlName(props?.texts?.inputEmail, 'email'),
6243
- placeholder: props?.texts?.inputEmail,
6241
+ title: props?.texts?.emailInput,
6242
+ name: Utils.normalizeControlName(props?.texts?.emailInput, 'email'),
6243
+ placeholder: props?.texts?.emailInput,
6244
6244
  value: '',
6245
6245
  type: 'email',
6246
- error: props?.texts?.errorEmail,
6246
+ error: props?.texts?.emailInputError,
6247
6247
  validators: [Validators.email, Validators.required],
6248
6248
  valid: signal(true),
6249
6249
  },
6250
6250
  confirmEmailInput: {
6251
- title: props?.texts?.inputEmail,
6252
- name: Utils.normalizeControlName(props?.texts?.inputEmail, 'emailc'),
6253
- placeholder: props?.texts?.inputEmail,
6251
+ title: props?.texts?.confirmEmailInput,
6252
+ name: Utils.normalizeControlName(props?.texts?.confirmEmailInput, 'emailc'),
6253
+ placeholder: props?.texts?.confirmEmailInput,
6254
6254
  value: '',
6255
6255
  type: 'email',
6256
- error: props?.texts?.errorEmail,
6256
+ error: props?.texts?.confirmEmailInputError,
6257
6257
  validators: [Validators.email, Validators.required],
6258
6258
  valid: signal(true),
6259
6259
  },
6260
6260
  phoneInput: {
6261
- title: props?.texts?.inputPhone,
6262
- name: Utils.normalizeControlName(props?.texts?.inputPhone, 'phone'),
6263
- placeholder: props?.texts?.inputPhone,
6261
+ title: props?.texts?.phoneInput,
6262
+ name: Utils.normalizeControlName(props?.texts?.phoneInput, 'phone'),
6263
+ placeholder: props?.texts?.phoneInput,
6264
6264
  value: '',
6265
6265
  type: 'tel',
6266
- error: props?.texts?.errorPhone,
6266
+ error: props?.texts?.phoneInputError,
6267
6267
  validators: [Validators.required],
6268
6268
  valid: signal(true),
6269
6269
  },
6270
6270
  materialsInput: {
6271
- name: Utils.normalizeControlName(props?.texts?.inputMaterials, 'materials'),
6272
- type: props?.texts?.inputMaterials,
6273
- label: props?.texts?.inputMaterials,
6271
+ name: Utils.normalizeControlName(props?.texts?.materialsInput, 'materials'),
6272
+ type: props?.texts?.materialsInput,
6273
+ label: props?.texts?.materialsInput,
6274
6274
  value: null,
6275
6275
  valid: signal(true),
6276
6276
  // validators: [Validators.required],