@everymatrix/general-registration 1.90.10 → 1.90.17

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.
@@ -296,7 +296,7 @@ const TRANSLATIONS$1 = {
296
296
  "InvalidLastName": "Seuls les caractères alphabétiques sont autorisés."
297
297
  }
298
298
  };
299
- const CONSTANTS = {
299
+ const CONSTANTS$1 = {
300
300
  DOCUMENT_NUMBER: "DocumentNumber",
301
301
  FIRSTNAME_ON_DOCUMENT: "FirstnameOnDocument",
302
302
  LASTNAME_ON_DOCUMENT: "LastnameOnDocument",
@@ -355,7 +355,7 @@ const getTranslations$1 = (url) => {
355
355
  });
356
356
  };
357
357
  const validateID = (id) => {
358
- if (!CONSTANTS.SA_ID_BASIC_REGEX.test(id))
358
+ if (!CONSTANTS$1.SA_ID_BASIC_REGEX.test(id))
359
359
  return false;
360
360
  const digits = id.split("").map(n => parseInt(n, 10));
361
361
  let oddSum = 0;
@@ -6110,12 +6110,12 @@ const DateInput = class {
6110
6110
  return { year: date.getFullYear(), month: date.getMonth(), day: date.getDate() };
6111
6111
  };
6112
6112
  this.handleDocumentIdUpdate = (e) => {
6113
- if (this.name !== CONSTANTS.BIRTHDATE) {
6113
+ if (this.name !== CONSTANTS$1.BIRTHDATE) {
6114
6114
  return;
6115
6115
  }
6116
6116
  const dateStr = e.detail;
6117
6117
  this.value = dateStr;
6118
- this.valueAsDate = parse(this.value || '', CONSTANTS.DATE_FORMAT, new Date());
6118
+ this.valueAsDate = parse(this.value || '', CONSTANTS$1.DATE_FORMAT, new Date());
6119
6119
  this.touched = true;
6120
6120
  if (this.datePicker) {
6121
6121
  this.datePicker.value = this.value;
@@ -13454,6 +13454,8 @@ const TRANSLATIONS = {
13454
13454
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",
13455
13455
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",
13456
13456
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error.",
13457
+ "GmErr_BadRequest_MissingTrunkCode": "Phone number must start with 0.",
13458
+ "gm.twofa.token_is_invalid": "Incorrect code. Please try again.",
13457
13459
  },
13458
13460
  "hu": {
13459
13461
  "GmErr_AMOUNT_INVALID": "A megadott összeg érvénytelen.",
@@ -13541,6 +13543,8 @@ const TRANSLATIONS = {
13541
13543
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF válasza megerősíti, hogy a játékos kiskorú vagy nem horvát lakos.",
13542
13544
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF nem ad választ.",
13543
13545
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: Belső hiba.",
13546
+ "GmErr_BadRequest_MissingTrunkCode": "A telefonszámnak 0-val kell kezdődnie",
13547
+ "gm.twofa.token_is_invalid": "Helytelen kód. Kérjük, próbálja újra.",
13544
13548
  },
13545
13549
  "hr": {
13546
13550
  "GmErr_AMOUNT_INVALID": "Navedeni iznos je nevažeći.",
@@ -13628,6 +13632,8 @@ const TRANSLATIONS = {
13628
13632
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Odgovor MoF-a potvrđuje da je igrač maloljetan ili nije stanovnik Hrvatske.",
13629
13633
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: MoF ne daje odgovor.",
13630
13634
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Interna greška.",
13635
+ "GmErr_BadRequest_MissingTrunkCode": "Telefonski broj mora počinjati s 0",
13636
+ "gm.twofa.token_is_invalid": "Netočan kod. Molimo pokušajte ponovno.",
13631
13637
  },
13632
13638
  'pt-br': {
13633
13639
  "GmErr_AMOUNT_INVALID": "O valor especificado é inválido.",
@@ -13715,6 +13721,8 @@ const TRANSLATIONS = {
13715
13721
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",
13716
13722
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",
13717
13723
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno.",
13724
+ "GmErr_BadRequest_MissingTrunkCode": "O número de telefone deve começar com 0",
13725
+ "gm.twofa.token_is_invalid": "Código incorreto. Por favor, tente novamente.",
13718
13726
  },
13719
13727
  'es-mx': {
13720
13728
  "GmErr_AMOUNT_INVALID": "El monto especificado es inválido.",
@@ -13801,7 +13809,9 @@ const TRANSLATIONS = {
13801
13809
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "El documento del usuario es inválido.",
13802
13810
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",
13803
13811
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",
13804
- "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno."
13812
+ "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno.",
13813
+ "GmErr_BadRequest_MissingTrunkCode": "El número de teléfono debe comenzar con 0",
13814
+ "gm.twofa.token_is_invalid": "Código incorrecto. Por favor, inténtalo de nuevo.",
13805
13815
  },
13806
13816
  "tr": {
13807
13817
  "GmErr_AMOUNT_INVALID": "Belirtilen miktar geçersiz.",
@@ -13888,7 +13898,9 @@ const TRANSLATIONS = {
13888
13898
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "Kullanıcı belgesi geçersiz.",
13889
13899
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıtı, oyuncunun reşit olmadığını veya Hırvatistan sakini olmadığını doğruluyor.",
13890
13900
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıt vermiyor.",
13891
- "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: İç hata."
13901
+ "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: İç hata.",
13902
+ "GmErr_BadRequest_MissingTrunkCode": "Telefon numarası 0 ile başlamalıdır",
13903
+ "gm.twofa.token_is_invalid": "Yanlış kod. Lütfen tekrar deneyin.",
13892
13904
  },
13893
13905
  "en-us": {
13894
13906
  "GmErr_AMOUNT_INVALID": "The specified amount is invalid.",
@@ -13976,6 +13988,8 @@ const TRANSLATIONS = {
13976
13988
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",
13977
13989
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",
13978
13990
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error.",
13991
+ "GmErr_BadRequest_MissingTrunkCode": "Phone number must start with 0",
13992
+ "gm.twofa.token_is_invalid": "Incorrect code. Please try again.",
13979
13993
  },
13980
13994
  "ro": {
13981
13995
  "GmErr_AMOUNT_INVALID": "Suma specificată este invalidă.",
@@ -14063,6 +14077,8 @@ const TRANSLATIONS = {
14063
14077
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Răspunsul MoF confirmă că jucătorul este minor sau nu este rezident croat.",
14064
14078
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: MoF nu returnează un răspuns.",
14065
14079
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Eroare internă.",
14080
+ "GmErr_BadRequest_MissingTrunkCode": "Numărul de telefon trebuie să înceapă cu 0",
14081
+ "gm.twofa.token_is_invalid": "Cod incorect. Vă rugăm să încercați din nou.",
14066
14082
  },
14067
14083
  "fr": {
14068
14084
  "GmErr_AMOUNT_INVALID": "Le montant spécifié est invalide.",
@@ -14148,6 +14164,8 @@ const TRANSLATIONS = {
14148
14164
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : La réponse du MoF confirme que le joueur est mineur ou n'est pas résident croate.",
14149
14165
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Le MoF ne renvoie pas de réponse.",
14150
14166
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Erreur interne.",
14167
+ "GmErr_BadRequest_MissingTrunkCode": "Le numéro de téléphone doit commencer par 0",
14168
+ "gm.twofa.token_is_invalid": "Code incorrect. Veuillez réessayer.",
14151
14169
  },
14152
14170
  "es": {
14153
14171
  "GmErr_AMOUNT_INVALID": "El monto especificado no es válido.",
@@ -14235,6 +14253,8 @@ const TRANSLATIONS = {
14235
14253
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",
14236
14254
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",
14237
14255
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno.",
14256
+ "GmErr_BadRequest_MissingTrunkCode": "El número de teléfono debe empezar con 0",
14257
+ "gm.twofa.token_is_invalid": "Código incorrecto. Por favor, inténtalo de nuevo.",
14238
14258
  },
14239
14259
  "pt": {
14240
14260
  "GmErr_AMOUNT_INVALID": "O valor especificado é inválido.",
@@ -14322,6 +14342,8 @@ const TRANSLATIONS = {
14322
14342
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",
14323
14343
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",
14324
14344
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno.",
14345
+ "GmErr_BadRequest_MissingTrunkCode": "O número de telefone deve começar por 0",
14346
+ "gm.twofa.token_is_invalid": "Código incorreto. Por favor, tente novamente.",
14325
14347
  },
14326
14348
  "de": {
14327
14349
  "GmErr_AMOUNT_INVALID": "Der angegebene Betrag ist ungültig.",
@@ -14408,9 +14430,14 @@ const TRANSLATIONS = {
14408
14430
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "Das Benutzerdokument ist ungültig.",
14409
14431
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Die Antwort des MoF bestätigt, dass der Spieler minderjährig ist oder kein kroatischer Einwohner ist.",
14410
14432
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Das MoF gibt keine Antwort.",
14411
- "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Interner Fehler."
14433
+ "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Interner Fehler.",
14434
+ "GmErr_BadRequest_MissingTrunkCode": "Die Telefonnummer muss mit 0 beginnen",
14435
+ "gm.twofa.token_is_invalid": "Falscher Code. Bitte versuchen Sie es erneut.",
14412
14436
  }
14413
14437
  };
14438
+ const CONSTANTS = {
14439
+ VALIDATION_PHONE_START_ZERO: "Phone number must start with 0",
14440
+ };
14414
14441
  const getTranslations = (url) => {
14415
14442
  // fetch url, get the data, replace the TRANSLATIONS content
14416
14443
  return new Promise((resolve) => {
@@ -15047,6 +15074,9 @@ const GeneralRegistration = class {
15047
15074
  }
15048
15075
  else if (this.errorCode == 'GmErr_BadRequest') {
15049
15076
  this.errorMessage = error.thirdPartyResponse.message;
15077
+ if (error.thirdPartyResponse.message === CONSTANTS.VALIDATION_PHONE_START_ZERO) {
15078
+ this.errorMessage = translate('GmErr_BadRequest_MissingTrunkCode', this.language);
15079
+ }
15050
15080
  }
15051
15081
  else {
15052
15082
  this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
@@ -15882,7 +15912,7 @@ const PasswordInput = class {
15882
15912
  }
15883
15913
  renderCustomComplexityPopup() {
15884
15914
  return (index.h("div", { class: `customreg-password__complexity ${!this.showPopup ? 'customreg-password__complexity--hidden' : ''}` }, index.h("p", { class: 'customreg-password__complexity--title' }, translate$1('PasswordMustContain', this.language)), index.h("div", { class: 'customreg-password__complexity--rules' }, this.passwordComplexity.map((complexity, index$1) => (index.h("div", { class: 'customreg-password__complexity--rule', key: index$1 }, index.h("span", { class: `customreg-password__complexity--icon ${complexity.passed
15885
- ? CONSTANTS.PASSWORD_COMPLEXITY_PASSED : CONSTANTS.PASSWORD_COMPLEXITY_FAILED}` }, complexity.passed ? STATUS_ICONS.PASSED : STATUS_ICONS.FAILED), index.h("span", null, translate$1(complexity.ruleKey, this.language) || complexity.rule)))))));
15915
+ ? CONSTANTS$1.PASSWORD_COMPLEXITY_PASSED : CONSTANTS$1.PASSWORD_COMPLEXITY_FAILED}` }, complexity.passed ? STATUS_ICONS.PASSED : STATUS_ICONS.FAILED), index.h("span", null, translate$1(complexity.ruleKey, this.language) || complexity.rule)))))));
15886
15916
  }
15887
15917
  render() {
15888
15918
  let invalidClass = '';
@@ -16798,9 +16828,9 @@ const TextInput = class {
16798
16828
  this.handleInput = (event) => {
16799
16829
  const input = event.target;
16800
16830
  const normalizedValue = this.enableSouthAfricanMode &&
16801
- (this.name === CONSTANTS.FIRSTNAME_ON_DOCUMENT ||
16802
- this.name === CONSTANTS.LASTNAME_ON_DOCUMENT)
16803
- ? input.value.replace(CONSTANTS.NON_LETTERS_REGEX, '')
16831
+ (this.name === CONSTANTS$1.FIRSTNAME_ON_DOCUMENT ||
16832
+ this.name === CONSTANTS$1.LASTNAME_ON_DOCUMENT)
16833
+ ? input.value.replace(CONSTANTS$1.NON_LETTERS_REGEX, '')
16804
16834
  : input.value;
16805
16835
  if (normalizedValue !== input.value) {
16806
16836
  input.value = normalizedValue;
@@ -16929,7 +16959,7 @@ const TextInput = class {
16929
16959
  this.validationPattern = this.setPattern();
16930
16960
  }
16931
16961
  handleExternalDocUpdate(event) {
16932
- if (this.name !== CONSTANTS.DOCUMENT_NUMBER)
16962
+ if (this.name !== CONSTANTS$1.DOCUMENT_NUMBER)
16933
16963
  return;
16934
16964
  this.value = event.detail || "";
16935
16965
  this.touched = true;
@@ -16943,7 +16973,7 @@ const TextInput = class {
16943
16973
  this.updateValidationState();
16944
16974
  }
16945
16975
  handleDocReset() {
16946
- if (this.name !== CONSTANTS.DOCUMENT_NUMBER)
16976
+ if (this.name !== CONSTANTS$1.DOCUMENT_NUMBER)
16947
16977
  return;
16948
16978
  this.value = "";
16949
16979
  this.touched = false;
@@ -16987,14 +17017,14 @@ const TextInput = class {
16987
17017
  }
16988
17018
  validateDocument(valueRaw, docType) {
16989
17019
  const value = valueRaw.trim();
16990
- if (docType === CONSTANTS.PASSPORT) {
16991
- const valid = CONSTANTS.PASSPORT_NUMERIC_REGEX.test(value);
17020
+ if (docType === CONSTANTS$1.PASSPORT) {
17021
+ const valid = CONSTANTS$1.PASSPORT_NUMERIC_REGEX.test(value);
16992
17022
  return valid
16993
17023
  ? { valid: true }
16994
17024
  : { valid: false, errorKey: ERROR_KEYS.PASSPORT_INVALID };
16995
17025
  }
16996
- if (docType === CONSTANTS.SOUTH_AFRICAN_ID) {
16997
- if (value.length !== CONSTANTS.SOUTH_AFRICAN_ID_LENGTH) {
17026
+ if (docType === CONSTANTS$1.SOUTH_AFRICAN_ID) {
17027
+ if (value.length !== CONSTANTS$1.SOUTH_AFRICAN_ID_LENGTH) {
16998
17028
  return { valid: false, errorKey: ERROR_KEYS.SA_ID_LENGTH };
16999
17029
  }
17000
17030
  const valid = validateID(value);
@@ -17017,7 +17047,7 @@ const TextInput = class {
17017
17047
  if (!this.inputReference) {
17018
17048
  return false;
17019
17049
  }
17020
- if (this.enableSouthAfricanMode && this.name === CONSTANTS.DOCUMENT_NUMBER) {
17050
+ if (this.enableSouthAfricanMode && this.name === CONSTANTS$1.DOCUMENT_NUMBER) {
17021
17051
  const docType = window.documentTypeValue;
17022
17052
  return this.validateDocument(this.value, docType).valid;
17023
17053
  }
@@ -17036,7 +17066,7 @@ const TextInput = class {
17036
17066
  setErrorMessage() {
17037
17067
  var _a, _b, _c, _d;
17038
17068
  const value = this.value.trim();
17039
- if (this.enableSouthAfricanMode && this.name === CONSTANTS.DOCUMENT_NUMBER) {
17069
+ if (this.enableSouthAfricanMode && this.name === CONSTANTS$1.DOCUMENT_NUMBER) {
17040
17070
  const docType = window.documentTypeValue;
17041
17071
  const res = this.validateDocument(this.value, docType);
17042
17072
  return res.valid ? '' : translate$1(res.errorKey, this.language);
@@ -1,5 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
- import { getTranslations, translate, TRANSLATIONS, DEFAULT_LANGUAGE } from "../../utils/locale.utils";
2
+ import { getTranslations, translate, TRANSLATIONS, DEFAULT_LANGUAGE, CONSTANTS } from "../../utils/locale.utils";
3
3
  import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
4
4
  import { dispatchCustomEvent } from "../../../../../../../../libs/custom-events/src/index";
5
5
  import { checkEmptyValue } from "../../../../../../../../libs/common/src/utils/index";
@@ -560,6 +560,9 @@ export class GeneralRegistration {
560
560
  }
561
561
  else if (this.errorCode == 'GmErr_BadRequest') {
562
562
  this.errorMessage = error.thirdPartyResponse.message;
563
+ if (error.thirdPartyResponse.message === CONSTANTS.VALIDATION_PHONE_START_ZERO) {
564
+ this.errorMessage = translate('GmErr_BadRequest_MissingTrunkCode', this.language);
565
+ }
563
566
  }
564
567
  else {
565
568
  this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
@@ -86,6 +86,8 @@ export const TRANSLATIONS = {
86
86
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",
87
87
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",
88
88
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error.",
89
+ "GmErr_BadRequest_MissingTrunkCode": "Phone number must start with 0.",
90
+ "gm.twofa.token_is_invalid": "Incorrect code. Please try again.",
89
91
  },
90
92
  "hu": {
91
93
  "GmErr_AMOUNT_INVALID": "A megadott összeg érvénytelen.",
@@ -173,6 +175,8 @@ export const TRANSLATIONS = {
173
175
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF válasza megerősíti, hogy a játékos kiskorú vagy nem horvát lakos.",
174
176
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF nem ad választ.",
175
177
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: Belső hiba.",
178
+ "GmErr_BadRequest_MissingTrunkCode": "A telefonszámnak 0-val kell kezdődnie",
179
+ "gm.twofa.token_is_invalid": "Helytelen kód. Kérjük, próbálja újra.",
176
180
  },
177
181
  "hr": {
178
182
  "GmErr_AMOUNT_INVALID": "Navedeni iznos je nevažeći.",
@@ -260,6 +264,8 @@ export const TRANSLATIONS = {
260
264
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Odgovor MoF-a potvrđuje da je igrač maloljetan ili nije stanovnik Hrvatske.",
261
265
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: MoF ne daje odgovor.",
262
266
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Interna greška.",
267
+ "GmErr_BadRequest_MissingTrunkCode": "Telefonski broj mora počinjati s 0",
268
+ "gm.twofa.token_is_invalid": "Netočan kod. Molimo pokušajte ponovno.",
263
269
  },
264
270
  'pt-br': {
265
271
  "GmErr_AMOUNT_INVALID": "O valor especificado é inválido.",
@@ -347,6 +353,8 @@ export const TRANSLATIONS = {
347
353
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",
348
354
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",
349
355
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno.",
356
+ "GmErr_BadRequest_MissingTrunkCode": "O número de telefone deve começar com 0",
357
+ "gm.twofa.token_is_invalid": "Código incorreto. Por favor, tente novamente.",
350
358
  },
351
359
  'es-mx': {
352
360
  "GmErr_AMOUNT_INVALID": "El monto especificado es inválido.",
@@ -433,7 +441,9 @@ export const TRANSLATIONS = {
433
441
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "El documento del usuario es inválido.",
434
442
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",
435
443
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",
436
- "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno."
444
+ "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno.",
445
+ "GmErr_BadRequest_MissingTrunkCode": "El número de teléfono debe comenzar con 0",
446
+ "gm.twofa.token_is_invalid": "Código incorrecto. Por favor, inténtalo de nuevo.",
437
447
  },
438
448
  "tr": {
439
449
  "GmErr_AMOUNT_INVALID": "Belirtilen miktar geçersiz.",
@@ -520,7 +530,9 @@ export const TRANSLATIONS = {
520
530
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "Kullanıcı belgesi geçersiz.",
521
531
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıtı, oyuncunun reşit olmadığını veya Hırvatistan sakini olmadığını doğruluyor.",
522
532
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıt vermiyor.",
523
- "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: İç hata."
533
+ "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: İç hata.",
534
+ "GmErr_BadRequest_MissingTrunkCode": "Telefon numarası 0 ile başlamalıdır",
535
+ "gm.twofa.token_is_invalid": "Yanlış kod. Lütfen tekrar deneyin.",
524
536
  },
525
537
  "en-us": {
526
538
  "GmErr_AMOUNT_INVALID": "The specified amount is invalid.",
@@ -608,6 +620,8 @@ export const TRANSLATIONS = {
608
620
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",
609
621
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",
610
622
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error.",
623
+ "GmErr_BadRequest_MissingTrunkCode": "Phone number must start with 0",
624
+ "gm.twofa.token_is_invalid": "Incorrect code. Please try again.",
611
625
  },
612
626
  "ro": {
613
627
  "GmErr_AMOUNT_INVALID": "Suma specificată este invalidă.",
@@ -695,6 +709,8 @@ export const TRANSLATIONS = {
695
709
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Răspunsul MoF confirmă că jucătorul este minor sau nu este rezident croat.",
696
710
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: MoF nu returnează un răspuns.",
697
711
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Eroare internă.",
712
+ "GmErr_BadRequest_MissingTrunkCode": "Numărul de telefon trebuie să înceapă cu 0",
713
+ "gm.twofa.token_is_invalid": "Cod incorect. Vă rugăm să încercați din nou.",
698
714
  },
699
715
  "fr": {
700
716
  "GmErr_AMOUNT_INVALID": "Le montant spécifié est invalide.",
@@ -780,6 +796,8 @@ export const TRANSLATIONS = {
780
796
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : La réponse du MoF confirme que le joueur est mineur ou n'est pas résident croate.",
781
797
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Le MoF ne renvoie pas de réponse.",
782
798
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Erreur interne.",
799
+ "GmErr_BadRequest_MissingTrunkCode": "Le numéro de téléphone doit commencer par 0",
800
+ "gm.twofa.token_is_invalid": "Code incorrect. Veuillez réessayer.",
783
801
  },
784
802
  "es": {
785
803
  "GmErr_AMOUNT_INVALID": "El monto especificado no es válido.",
@@ -867,6 +885,8 @@ export const TRANSLATIONS = {
867
885
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",
868
886
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",
869
887
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno.",
888
+ "GmErr_BadRequest_MissingTrunkCode": "El número de teléfono debe empezar con 0",
889
+ "gm.twofa.token_is_invalid": "Código incorrecto. Por favor, inténtalo de nuevo.",
870
890
  },
871
891
  "pt": {
872
892
  "GmErr_AMOUNT_INVALID": "O valor especificado é inválido.",
@@ -954,6 +974,8 @@ export const TRANSLATIONS = {
954
974
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",
955
975
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",
956
976
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno.",
977
+ "GmErr_BadRequest_MissingTrunkCode": "O número de telefone deve começar por 0",
978
+ "gm.twofa.token_is_invalid": "Código incorreto. Por favor, tente novamente.",
957
979
  },
958
980
  "de": {
959
981
  "GmErr_AMOUNT_INVALID": "Der angegebene Betrag ist ungültig.",
@@ -1040,9 +1062,14 @@ export const TRANSLATIONS = {
1040
1062
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "Das Benutzerdokument ist ungültig.",
1041
1063
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Die Antwort des MoF bestätigt, dass der Spieler minderjährig ist oder kein kroatischer Einwohner ist.",
1042
1064
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Das MoF gibt keine Antwort.",
1043
- "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Interner Fehler."
1065
+ "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Interner Fehler.",
1066
+ "GmErr_BadRequest_MissingTrunkCode": "Die Telefonnummer muss mit 0 beginnen",
1067
+ "gm.twofa.token_is_invalid": "Falscher Code. Bitte versuchen Sie es erneut.",
1044
1068
  }
1045
1069
  };
1070
+ export const CONSTANTS = {
1071
+ VALIDATION_PHONE_START_ZERO: "Phone number must start with 0",
1072
+ };
1046
1073
  export const getTranslations = (url) => {
1047
1074
  // fetch url, get the data, replace the TRANSLATIONS content
1048
1075
  return new Promise((resolve) => {
@@ -292,7 +292,7 @@ const TRANSLATIONS$1 = {
292
292
  "InvalidLastName": "Seuls les caractères alphabétiques sont autorisés."
293
293
  }
294
294
  };
295
- const CONSTANTS = {
295
+ const CONSTANTS$1 = {
296
296
  DOCUMENT_NUMBER: "DocumentNumber",
297
297
  FIRSTNAME_ON_DOCUMENT: "FirstnameOnDocument",
298
298
  LASTNAME_ON_DOCUMENT: "LastnameOnDocument",
@@ -351,7 +351,7 @@ const getTranslations$1 = (url) => {
351
351
  });
352
352
  };
353
353
  const validateID = (id) => {
354
- if (!CONSTANTS.SA_ID_BASIC_REGEX.test(id))
354
+ if (!CONSTANTS$1.SA_ID_BASIC_REGEX.test(id))
355
355
  return false;
356
356
  const digits = id.split("").map(n => parseInt(n, 10));
357
357
  let oddSum = 0;
@@ -6106,12 +6106,12 @@ const DateInput = class {
6106
6106
  return { year: date.getFullYear(), month: date.getMonth(), day: date.getDate() };
6107
6107
  };
6108
6108
  this.handleDocumentIdUpdate = (e) => {
6109
- if (this.name !== CONSTANTS.BIRTHDATE) {
6109
+ if (this.name !== CONSTANTS$1.BIRTHDATE) {
6110
6110
  return;
6111
6111
  }
6112
6112
  const dateStr = e.detail;
6113
6113
  this.value = dateStr;
6114
- this.valueAsDate = parse(this.value || '', CONSTANTS.DATE_FORMAT, new Date());
6114
+ this.valueAsDate = parse(this.value || '', CONSTANTS$1.DATE_FORMAT, new Date());
6115
6115
  this.touched = true;
6116
6116
  if (this.datePicker) {
6117
6117
  this.datePicker.value = this.value;
@@ -13450,6 +13450,8 @@ const TRANSLATIONS = {
13450
13450
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",
13451
13451
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",
13452
13452
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error.",
13453
+ "GmErr_BadRequest_MissingTrunkCode": "Phone number must start with 0.",
13454
+ "gm.twofa.token_is_invalid": "Incorrect code. Please try again.",
13453
13455
  },
13454
13456
  "hu": {
13455
13457
  "GmErr_AMOUNT_INVALID": "A megadott összeg érvénytelen.",
@@ -13537,6 +13539,8 @@ const TRANSLATIONS = {
13537
13539
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF válasza megerősíti, hogy a játékos kiskorú vagy nem horvát lakos.",
13538
13540
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF nem ad választ.",
13539
13541
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: Belső hiba.",
13542
+ "GmErr_BadRequest_MissingTrunkCode": "A telefonszámnak 0-val kell kezdődnie",
13543
+ "gm.twofa.token_is_invalid": "Helytelen kód. Kérjük, próbálja újra.",
13540
13544
  },
13541
13545
  "hr": {
13542
13546
  "GmErr_AMOUNT_INVALID": "Navedeni iznos je nevažeći.",
@@ -13624,6 +13628,8 @@ const TRANSLATIONS = {
13624
13628
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Odgovor MoF-a potvrđuje da je igrač maloljetan ili nije stanovnik Hrvatske.",
13625
13629
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: MoF ne daje odgovor.",
13626
13630
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Interna greška.",
13631
+ "GmErr_BadRequest_MissingTrunkCode": "Telefonski broj mora počinjati s 0",
13632
+ "gm.twofa.token_is_invalid": "Netočan kod. Molimo pokušajte ponovno.",
13627
13633
  },
13628
13634
  'pt-br': {
13629
13635
  "GmErr_AMOUNT_INVALID": "O valor especificado é inválido.",
@@ -13711,6 +13717,8 @@ const TRANSLATIONS = {
13711
13717
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",
13712
13718
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",
13713
13719
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno.",
13720
+ "GmErr_BadRequest_MissingTrunkCode": "O número de telefone deve começar com 0",
13721
+ "gm.twofa.token_is_invalid": "Código incorreto. Por favor, tente novamente.",
13714
13722
  },
13715
13723
  'es-mx': {
13716
13724
  "GmErr_AMOUNT_INVALID": "El monto especificado es inválido.",
@@ -13797,7 +13805,9 @@ const TRANSLATIONS = {
13797
13805
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "El documento del usuario es inválido.",
13798
13806
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",
13799
13807
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",
13800
- "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno."
13808
+ "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno.",
13809
+ "GmErr_BadRequest_MissingTrunkCode": "El número de teléfono debe comenzar con 0",
13810
+ "gm.twofa.token_is_invalid": "Código incorrecto. Por favor, inténtalo de nuevo.",
13801
13811
  },
13802
13812
  "tr": {
13803
13813
  "GmErr_AMOUNT_INVALID": "Belirtilen miktar geçersiz.",
@@ -13884,7 +13894,9 @@ const TRANSLATIONS = {
13884
13894
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "Kullanıcı belgesi geçersiz.",
13885
13895
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıtı, oyuncunun reşit olmadığını veya Hırvatistan sakini olmadığını doğruluyor.",
13886
13896
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıt vermiyor.",
13887
- "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: İç hata."
13897
+ "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: İç hata.",
13898
+ "GmErr_BadRequest_MissingTrunkCode": "Telefon numarası 0 ile başlamalıdır",
13899
+ "gm.twofa.token_is_invalid": "Yanlış kod. Lütfen tekrar deneyin.",
13888
13900
  },
13889
13901
  "en-us": {
13890
13902
  "GmErr_AMOUNT_INVALID": "The specified amount is invalid.",
@@ -13972,6 +13984,8 @@ const TRANSLATIONS = {
13972
13984
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",
13973
13985
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",
13974
13986
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error.",
13987
+ "GmErr_BadRequest_MissingTrunkCode": "Phone number must start with 0",
13988
+ "gm.twofa.token_is_invalid": "Incorrect code. Please try again.",
13975
13989
  },
13976
13990
  "ro": {
13977
13991
  "GmErr_AMOUNT_INVALID": "Suma specificată este invalidă.",
@@ -14059,6 +14073,8 @@ const TRANSLATIONS = {
14059
14073
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Răspunsul MoF confirmă că jucătorul este minor sau nu este rezident croat.",
14060
14074
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: MoF nu returnează un răspuns.",
14061
14075
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Eroare internă.",
14076
+ "GmErr_BadRequest_MissingTrunkCode": "Numărul de telefon trebuie să înceapă cu 0",
14077
+ "gm.twofa.token_is_invalid": "Cod incorect. Vă rugăm să încercați din nou.",
14062
14078
  },
14063
14079
  "fr": {
14064
14080
  "GmErr_AMOUNT_INVALID": "Le montant spécifié est invalide.",
@@ -14144,6 +14160,8 @@ const TRANSLATIONS = {
14144
14160
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : La réponse du MoF confirme que le joueur est mineur ou n'est pas résident croate.",
14145
14161
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Le MoF ne renvoie pas de réponse.",
14146
14162
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Erreur interne.",
14163
+ "GmErr_BadRequest_MissingTrunkCode": "Le numéro de téléphone doit commencer par 0",
14164
+ "gm.twofa.token_is_invalid": "Code incorrect. Veuillez réessayer.",
14147
14165
  },
14148
14166
  "es": {
14149
14167
  "GmErr_AMOUNT_INVALID": "El monto especificado no es válido.",
@@ -14231,6 +14249,8 @@ const TRANSLATIONS = {
14231
14249
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",
14232
14250
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",
14233
14251
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno.",
14252
+ "GmErr_BadRequest_MissingTrunkCode": "El número de teléfono debe empezar con 0",
14253
+ "gm.twofa.token_is_invalid": "Código incorrecto. Por favor, inténtalo de nuevo.",
14234
14254
  },
14235
14255
  "pt": {
14236
14256
  "GmErr_AMOUNT_INVALID": "O valor especificado é inválido.",
@@ -14318,6 +14338,8 @@ const TRANSLATIONS = {
14318
14338
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",
14319
14339
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",
14320
14340
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno.",
14341
+ "GmErr_BadRequest_MissingTrunkCode": "O número de telefone deve começar por 0",
14342
+ "gm.twofa.token_is_invalid": "Código incorreto. Por favor, tente novamente.",
14321
14343
  },
14322
14344
  "de": {
14323
14345
  "GmErr_AMOUNT_INVALID": "Der angegebene Betrag ist ungültig.",
@@ -14404,9 +14426,14 @@ const TRANSLATIONS = {
14404
14426
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "Das Benutzerdokument ist ungültig.",
14405
14427
  "GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE": "Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Die Antwort des MoF bestätigt, dass der Spieler minderjährig ist oder kein kroatischer Einwohner ist.",
14406
14428
  "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR": "Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Das MoF gibt keine Antwort.",
14407
- "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Interner Fehler."
14429
+ "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Interner Fehler.",
14430
+ "GmErr_BadRequest_MissingTrunkCode": "Die Telefonnummer muss mit 0 beginnen",
14431
+ "gm.twofa.token_is_invalid": "Falscher Code. Bitte versuchen Sie es erneut.",
14408
14432
  }
14409
14433
  };
14434
+ const CONSTANTS = {
14435
+ VALIDATION_PHONE_START_ZERO: "Phone number must start with 0",
14436
+ };
14410
14437
  const getTranslations = (url) => {
14411
14438
  // fetch url, get the data, replace the TRANSLATIONS content
14412
14439
  return new Promise((resolve) => {
@@ -15043,6 +15070,9 @@ const GeneralRegistration = class {
15043
15070
  }
15044
15071
  else if (this.errorCode == 'GmErr_BadRequest') {
15045
15072
  this.errorMessage = error.thirdPartyResponse.message;
15073
+ if (error.thirdPartyResponse.message === CONSTANTS.VALIDATION_PHONE_START_ZERO) {
15074
+ this.errorMessage = translate('GmErr_BadRequest_MissingTrunkCode', this.language);
15075
+ }
15046
15076
  }
15047
15077
  else {
15048
15078
  this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
@@ -15878,7 +15908,7 @@ const PasswordInput = class {
15878
15908
  }
15879
15909
  renderCustomComplexityPopup() {
15880
15910
  return (h("div", { class: `customreg-password__complexity ${!this.showPopup ? 'customreg-password__complexity--hidden' : ''}` }, h("p", { class: 'customreg-password__complexity--title' }, translate$1('PasswordMustContain', this.language)), h("div", { class: 'customreg-password__complexity--rules' }, this.passwordComplexity.map((complexity, index) => (h("div", { class: 'customreg-password__complexity--rule', key: index }, h("span", { class: `customreg-password__complexity--icon ${complexity.passed
15881
- ? CONSTANTS.PASSWORD_COMPLEXITY_PASSED : CONSTANTS.PASSWORD_COMPLEXITY_FAILED}` }, complexity.passed ? STATUS_ICONS.PASSED : STATUS_ICONS.FAILED), h("span", null, translate$1(complexity.ruleKey, this.language) || complexity.rule)))))));
15911
+ ? CONSTANTS$1.PASSWORD_COMPLEXITY_PASSED : CONSTANTS$1.PASSWORD_COMPLEXITY_FAILED}` }, complexity.passed ? STATUS_ICONS.PASSED : STATUS_ICONS.FAILED), h("span", null, translate$1(complexity.ruleKey, this.language) || complexity.rule)))))));
15882
15912
  }
15883
15913
  render() {
15884
15914
  let invalidClass = '';
@@ -16794,9 +16824,9 @@ const TextInput = class {
16794
16824
  this.handleInput = (event) => {
16795
16825
  const input = event.target;
16796
16826
  const normalizedValue = this.enableSouthAfricanMode &&
16797
- (this.name === CONSTANTS.FIRSTNAME_ON_DOCUMENT ||
16798
- this.name === CONSTANTS.LASTNAME_ON_DOCUMENT)
16799
- ? input.value.replace(CONSTANTS.NON_LETTERS_REGEX, '')
16827
+ (this.name === CONSTANTS$1.FIRSTNAME_ON_DOCUMENT ||
16828
+ this.name === CONSTANTS$1.LASTNAME_ON_DOCUMENT)
16829
+ ? input.value.replace(CONSTANTS$1.NON_LETTERS_REGEX, '')
16800
16830
  : input.value;
16801
16831
  if (normalizedValue !== input.value) {
16802
16832
  input.value = normalizedValue;
@@ -16925,7 +16955,7 @@ const TextInput = class {
16925
16955
  this.validationPattern = this.setPattern();
16926
16956
  }
16927
16957
  handleExternalDocUpdate(event) {
16928
- if (this.name !== CONSTANTS.DOCUMENT_NUMBER)
16958
+ if (this.name !== CONSTANTS$1.DOCUMENT_NUMBER)
16929
16959
  return;
16930
16960
  this.value = event.detail || "";
16931
16961
  this.touched = true;
@@ -16939,7 +16969,7 @@ const TextInput = class {
16939
16969
  this.updateValidationState();
16940
16970
  }
16941
16971
  handleDocReset() {
16942
- if (this.name !== CONSTANTS.DOCUMENT_NUMBER)
16972
+ if (this.name !== CONSTANTS$1.DOCUMENT_NUMBER)
16943
16973
  return;
16944
16974
  this.value = "";
16945
16975
  this.touched = false;
@@ -16983,14 +17013,14 @@ const TextInput = class {
16983
17013
  }
16984
17014
  validateDocument(valueRaw, docType) {
16985
17015
  const value = valueRaw.trim();
16986
- if (docType === CONSTANTS.PASSPORT) {
16987
- const valid = CONSTANTS.PASSPORT_NUMERIC_REGEX.test(value);
17016
+ if (docType === CONSTANTS$1.PASSPORT) {
17017
+ const valid = CONSTANTS$1.PASSPORT_NUMERIC_REGEX.test(value);
16988
17018
  return valid
16989
17019
  ? { valid: true }
16990
17020
  : { valid: false, errorKey: ERROR_KEYS.PASSPORT_INVALID };
16991
17021
  }
16992
- if (docType === CONSTANTS.SOUTH_AFRICAN_ID) {
16993
- if (value.length !== CONSTANTS.SOUTH_AFRICAN_ID_LENGTH) {
17022
+ if (docType === CONSTANTS$1.SOUTH_AFRICAN_ID) {
17023
+ if (value.length !== CONSTANTS$1.SOUTH_AFRICAN_ID_LENGTH) {
16994
17024
  return { valid: false, errorKey: ERROR_KEYS.SA_ID_LENGTH };
16995
17025
  }
16996
17026
  const valid = validateID(value);
@@ -17013,7 +17043,7 @@ const TextInput = class {
17013
17043
  if (!this.inputReference) {
17014
17044
  return false;
17015
17045
  }
17016
- if (this.enableSouthAfricanMode && this.name === CONSTANTS.DOCUMENT_NUMBER) {
17046
+ if (this.enableSouthAfricanMode && this.name === CONSTANTS$1.DOCUMENT_NUMBER) {
17017
17047
  const docType = window.documentTypeValue;
17018
17048
  return this.validateDocument(this.value, docType).valid;
17019
17049
  }
@@ -17032,7 +17062,7 @@ const TextInput = class {
17032
17062
  setErrorMessage() {
17033
17063
  var _a, _b, _c, _d;
17034
17064
  const value = this.value.trim();
17035
- if (this.enableSouthAfricanMode && this.name === CONSTANTS.DOCUMENT_NUMBER) {
17065
+ if (this.enableSouthAfricanMode && this.name === CONSTANTS$1.DOCUMENT_NUMBER) {
17036
17066
  const docType = window.documentTypeValue;
17037
17067
  const res = this.validateDocument(this.value, docType);
17038
17068
  return res.valid ? '' : translate$1(res.errorKey, this.language);