@everymatrix/general-registration 1.87.17 → 1.87.18

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.
@@ -194,6 +194,40 @@ const TRANSLATIONS$1 = {
194
194
  "SAIdLengthError": "El número de identificación de Sudáfrica debe tener 13 dígitos",
195
195
  "SAIdInvalidError": "Número de identificación de Sudáfrica inválido",
196
196
  "PasswordMustContain": "La contraseña debe contener:"
197
+ },
198
+ "fr": {
199
+ "dateError": "La date sélectionnée doit être comprise entre {min} et {max}",
200
+ "dateError2": "La date sélectionnée n’est pas dans la plage autorisée",
201
+ "dateFormatError": "Le format de la date sélectionnée est incorrect.",
202
+ "numberLengthError": "Le nombre doit être compris entre {min} et {max}",
203
+ "lengthError": "La longueur doit être comprise entre {minLength} et {maxLength}",
204
+ "requiredError": "Ce champ est obligatoire.",
205
+ "invalidOriginalPasswordError": "Le mot de passe initial ne respecte pas tous les critères.",
206
+ "invalidPassword": "Le mot de passe ne respecte pas tous les critères",
207
+ "passwordStrength": "Robustesse du mot de passe",
208
+ "passwordStrengthWeak": "est insuffisante",
209
+ "passwordStrengthStrong": "est suffisante",
210
+ "SpecialCharactersNotAllowed": "Ne doit pas contenir de caractères spéciaux",
211
+ "InvalidEmailFormat": "Format d’adresse e-mail invalide.",
212
+ "EmailNotMatching": "Les adresses e-mail ne correspondent pas !",
213
+ "PasswordNotMatching": "Les mots de passe ne correspondent pas",
214
+ "MustIncludeNumber": "Le mot de passe doit contenir un chiffre",
215
+ "MustContainCapital": "Le mot de passe doit contenir une lettre majuscule",
216
+ "MustIncludePunctation": "Le mot de passe doit contenir un caractère de ponctuation",
217
+ "MustIncludeLowercase": "Le mot de passe doit contenir une lettre minuscule",
218
+ "OnlyNumbers": "Ce champ ne doit contenir que des chiffres.",
219
+ "InvalidFieldSize": "La longueur doit être exactement de 11 chiffres.",
220
+ "InvalidDocumentNumber": "Seuls les caractères numériques sont autorisés.",
221
+ "twofaDescription": "<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",
222
+ "twofaResendMessage": "Vous n’avez pas reçu le code de vérification ?",
223
+ "twofaResendButton": "Renvoyer",
224
+ "enterIEAddressManually": "Pour l’Irlande, saisissez l’adresse manuellement",
225
+ "postalLookUpNoAddressFound": "Aucune adresse trouvée pour ce code postal",
226
+ "searchingForAddresses": "Recherche d’adresses...",
227
+ "SAIdLengthError": "L’identifiant sud-africain doit comporter 13 chiffres",
228
+ "SAIdInvalidError": "Identifiant sud-africain invalide",
229
+ "PassportLengthError": "Le numéro de passeport doit comporter 8 ou 9 chiffres.",
230
+ "PasswordMustContain": "Le mot de passe doit contenir :"
197
231
  }
198
232
  };
199
233
  const CONSTANTS = {
@@ -242,7 +276,9 @@ const getTranslations$1 = (url) => {
242
276
  .then((data) => {
243
277
  Object.keys(data).forEach((item) => {
244
278
  for (let key in data[item]) {
245
- TRANSLATIONS$1[item][key] = data[item][key];
279
+ if (typeof data[item][key] === 'string') {
280
+ TRANSLATIONS$1[item][key] = data[item][key];
281
+ }
246
282
  }
247
283
  });
248
284
  resolve(true);
@@ -13789,6 +13825,7 @@ const TRANSLATIONS = {
13789
13825
  "CountryRestricted": "Malheureusement, vous essayez de vous inscrire depuis un pays où nous ne pouvons pas accepter les jeux. Nous ne pouvons pas traiter votre inscription pour cette raison.",
13790
13826
  "nextButton": "Suivant",
13791
13827
  "backButton": "Retour",
13828
+ "doneButton": "Terminé",
13792
13829
  "requestTwofaError": "Une erreur est survenue lors de l'envoi du code",
13793
13830
  "loadingMessage": "Veuillez patienter, chargement...",
13794
13831
  //Prod old errors which will be deleted after prod is updated to new keys.
@@ -14953,13 +14990,12 @@ const GeneralRegistration = class {
14953
14990
  else {
14954
14991
  this.isConsentReady = false;
14955
14992
  }
14956
- this.forms = Object.assign(Object.assign({}, this.forms), { [this.registrationStep]: this.listOfInputs.map(input => (Object.assign({}, input))) });
14957
14993
  // The translations for fields happens here.
14958
14994
  if (this.translationUrl) {
14959
14995
  getTranslations(this.translationUrl).then(() => {
14960
- this.listOfInputs.forEach(field => {
14996
+ this.listOfInputs.map(field => {
14961
14997
  var _a, _b;
14962
- this.addTranslation(field);
14998
+ field = this.addTranslation(field);
14963
14999
  // Logic for field types that have subfields
14964
15000
  if (((_a = field.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'togglecheckbox') {
14965
15001
  field.data.subFields.forEach(subField => this.addTranslation(subField));
@@ -14970,11 +15006,15 @@ const GeneralRegistration = class {
14970
15006
  }
14971
15007
  return field;
14972
15008
  });
15009
+ this.forms = Object.assign(Object.assign({}, this.forms), { [this.registrationStep]: this.listOfInputs.map(input => (Object.assign({}, input))) });
14973
15010
  })
14974
15011
  .catch((error) => {
14975
15012
  console.error('Failed to fetch translations:', error);
14976
15013
  });
14977
15014
  }
15015
+ else {
15016
+ this.forms = Object.assign(Object.assign({}, this.forms), { [this.registrationStep]: this.listOfInputs.map(input => (Object.assign({}, input))) });
15017
+ }
14978
15018
  // Add the step to the registrationStepsData
14979
15019
  this.registrationStepsState.regId = this.registrationID;
14980
15020
  if (!this.registrationStepsState[this.registrationStep]) {
@@ -15003,6 +15043,7 @@ const GeneralRegistration = class {
15003
15043
  field[key] = TRANSLATIONS[this.language][field.name][key];
15004
15044
  });
15005
15045
  }
15046
+ return field;
15006
15047
  }
15007
15048
  setInitialValidStatus(field) {
15008
15049
  var _a, _b, _c, _d, _e, _f;
@@ -796,13 +796,12 @@ export class GeneralRegistration {
796
796
  else {
797
797
  this.isConsentReady = false;
798
798
  }
799
- this.forms = Object.assign(Object.assign({}, this.forms), { [this.registrationStep]: this.listOfInputs.map(input => (Object.assign({}, input))) });
800
799
  // The translations for fields happens here.
801
800
  if (this.translationUrl) {
802
801
  getTranslations(this.translationUrl).then(() => {
803
- this.listOfInputs.forEach(field => {
802
+ this.listOfInputs.map(field => {
804
803
  var _a, _b;
805
- this.addTranslation(field);
804
+ field = this.addTranslation(field);
806
805
  // Logic for field types that have subfields
807
806
  if (((_a = field.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'togglecheckbox') {
808
807
  field.data.subFields.forEach(subField => this.addTranslation(subField));
@@ -813,11 +812,15 @@ export class GeneralRegistration {
813
812
  }
814
813
  return field;
815
814
  });
815
+ this.forms = Object.assign(Object.assign({}, this.forms), { [this.registrationStep]: this.listOfInputs.map(input => (Object.assign({}, input))) });
816
816
  })
817
817
  .catch((error) => {
818
818
  console.error('Failed to fetch translations:', error);
819
819
  });
820
820
  }
821
+ else {
822
+ this.forms = Object.assign(Object.assign({}, this.forms), { [this.registrationStep]: this.listOfInputs.map(input => (Object.assign({}, input))) });
823
+ }
821
824
  // Add the step to the registrationStepsData
822
825
  this.registrationStepsState.regId = this.registrationID;
823
826
  if (!this.registrationStepsState[this.registrationStep]) {
@@ -846,6 +849,7 @@ export class GeneralRegistration {
846
849
  field[key] = TRANSLATIONS[this.language][field.name][key];
847
850
  });
848
851
  }
852
+ return field;
849
853
  }
850
854
  setInitialValidStatus(field) {
851
855
  var _a, _b, _c, _d, _e, _f;
@@ -747,6 +747,7 @@ export const TRANSLATIONS = {
747
747
  "CountryRestricted": "Malheureusement, vous essayez de vous inscrire depuis un pays où nous ne pouvons pas accepter les jeux. Nous ne pouvons pas traiter votre inscription pour cette raison.",
748
748
  "nextButton": "Suivant",
749
749
  "backButton": "Retour",
750
+ "doneButton": "Terminé",
750
751
  "requestTwofaError": "Une erreur est survenue lors de l'envoi du code",
751
752
  "loadingMessage": "Veuillez patienter, chargement...",
752
753
  //Prod old errors which will be deleted after prod is updated to new keys.
@@ -190,6 +190,40 @@ const TRANSLATIONS$1 = {
190
190
  "SAIdLengthError": "El número de identificación de Sudáfrica debe tener 13 dígitos",
191
191
  "SAIdInvalidError": "Número de identificación de Sudáfrica inválido",
192
192
  "PasswordMustContain": "La contraseña debe contener:"
193
+ },
194
+ "fr": {
195
+ "dateError": "La date sélectionnée doit être comprise entre {min} et {max}",
196
+ "dateError2": "La date sélectionnée n’est pas dans la plage autorisée",
197
+ "dateFormatError": "Le format de la date sélectionnée est incorrect.",
198
+ "numberLengthError": "Le nombre doit être compris entre {min} et {max}",
199
+ "lengthError": "La longueur doit être comprise entre {minLength} et {maxLength}",
200
+ "requiredError": "Ce champ est obligatoire.",
201
+ "invalidOriginalPasswordError": "Le mot de passe initial ne respecte pas tous les critères.",
202
+ "invalidPassword": "Le mot de passe ne respecte pas tous les critères",
203
+ "passwordStrength": "Robustesse du mot de passe",
204
+ "passwordStrengthWeak": "est insuffisante",
205
+ "passwordStrengthStrong": "est suffisante",
206
+ "SpecialCharactersNotAllowed": "Ne doit pas contenir de caractères spéciaux",
207
+ "InvalidEmailFormat": "Format d’adresse e-mail invalide.",
208
+ "EmailNotMatching": "Les adresses e-mail ne correspondent pas !",
209
+ "PasswordNotMatching": "Les mots de passe ne correspondent pas",
210
+ "MustIncludeNumber": "Le mot de passe doit contenir un chiffre",
211
+ "MustContainCapital": "Le mot de passe doit contenir une lettre majuscule",
212
+ "MustIncludePunctation": "Le mot de passe doit contenir un caractère de ponctuation",
213
+ "MustIncludeLowercase": "Le mot de passe doit contenir une lettre minuscule",
214
+ "OnlyNumbers": "Ce champ ne doit contenir que des chiffres.",
215
+ "InvalidFieldSize": "La longueur doit être exactement de 11 chiffres.",
216
+ "InvalidDocumentNumber": "Seuls les caractères numériques sont autorisés.",
217
+ "twofaDescription": "<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",
218
+ "twofaResendMessage": "Vous n’avez pas reçu le code de vérification ?",
219
+ "twofaResendButton": "Renvoyer",
220
+ "enterIEAddressManually": "Pour l’Irlande, saisissez l’adresse manuellement",
221
+ "postalLookUpNoAddressFound": "Aucune adresse trouvée pour ce code postal",
222
+ "searchingForAddresses": "Recherche d’adresses...",
223
+ "SAIdLengthError": "L’identifiant sud-africain doit comporter 13 chiffres",
224
+ "SAIdInvalidError": "Identifiant sud-africain invalide",
225
+ "PassportLengthError": "Le numéro de passeport doit comporter 8 ou 9 chiffres.",
226
+ "PasswordMustContain": "Le mot de passe doit contenir :"
193
227
  }
194
228
  };
195
229
  const CONSTANTS = {
@@ -238,7 +272,9 @@ const getTranslations$1 = (url) => {
238
272
  .then((data) => {
239
273
  Object.keys(data).forEach((item) => {
240
274
  for (let key in data[item]) {
241
- TRANSLATIONS$1[item][key] = data[item][key];
275
+ if (typeof data[item][key] === 'string') {
276
+ TRANSLATIONS$1[item][key] = data[item][key];
277
+ }
242
278
  }
243
279
  });
244
280
  resolve(true);
@@ -13785,6 +13821,7 @@ const TRANSLATIONS = {
13785
13821
  "CountryRestricted": "Malheureusement, vous essayez de vous inscrire depuis un pays où nous ne pouvons pas accepter les jeux. Nous ne pouvons pas traiter votre inscription pour cette raison.",
13786
13822
  "nextButton": "Suivant",
13787
13823
  "backButton": "Retour",
13824
+ "doneButton": "Terminé",
13788
13825
  "requestTwofaError": "Une erreur est survenue lors de l'envoi du code",
13789
13826
  "loadingMessage": "Veuillez patienter, chargement...",
13790
13827
  //Prod old errors which will be deleted after prod is updated to new keys.
@@ -14949,13 +14986,12 @@ const GeneralRegistration = class {
14949
14986
  else {
14950
14987
  this.isConsentReady = false;
14951
14988
  }
14952
- this.forms = Object.assign(Object.assign({}, this.forms), { [this.registrationStep]: this.listOfInputs.map(input => (Object.assign({}, input))) });
14953
14989
  // The translations for fields happens here.
14954
14990
  if (this.translationUrl) {
14955
14991
  getTranslations(this.translationUrl).then(() => {
14956
- this.listOfInputs.forEach(field => {
14992
+ this.listOfInputs.map(field => {
14957
14993
  var _a, _b;
14958
- this.addTranslation(field);
14994
+ field = this.addTranslation(field);
14959
14995
  // Logic for field types that have subfields
14960
14996
  if (((_a = field.inputType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'togglecheckbox') {
14961
14997
  field.data.subFields.forEach(subField => this.addTranslation(subField));
@@ -14966,11 +15002,15 @@ const GeneralRegistration = class {
14966
15002
  }
14967
15003
  return field;
14968
15004
  });
15005
+ this.forms = Object.assign(Object.assign({}, this.forms), { [this.registrationStep]: this.listOfInputs.map(input => (Object.assign({}, input))) });
14969
15006
  })
14970
15007
  .catch((error) => {
14971
15008
  console.error('Failed to fetch translations:', error);
14972
15009
  });
14973
15010
  }
15011
+ else {
15012
+ this.forms = Object.assign(Object.assign({}, this.forms), { [this.registrationStep]: this.listOfInputs.map(input => (Object.assign({}, input))) });
15013
+ }
14974
15014
  // Add the step to the registrationStepsData
14975
15015
  this.registrationStepsState.regId = this.registrationID;
14976
15016
  if (!this.registrationStepsState[this.registrationStep]) {
@@ -14999,6 +15039,7 @@ const GeneralRegistration = class {
14999
15039
  field[key] = TRANSLATIONS[this.language][field.name][key];
15000
15040
  });
15001
15041
  }
15042
+ return field;
15002
15043
  }
15003
15044
  setInitialValidStatus(field) {
15004
15045
  var _a, _b, _c, _d, _e, _f;