@everymatrix/general-registration 1.90.10 → 1.90.16

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,7 @@ 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.",
13457
13458
  },
13458
13459
  "hu": {
13459
13460
  "GmErr_AMOUNT_INVALID": "A megadott összeg érvénytelen.",
@@ -13541,6 +13542,7 @@ const TRANSLATIONS = {
13541
13542
  "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
13543
  "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
13544
  "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.",
13545
+ "GmErr_BadRequest_MissingTrunkCode": "A telefonszámnak 0-val kell kezdődnie",
13544
13546
  },
13545
13547
  "hr": {
13546
13548
  "GmErr_AMOUNT_INVALID": "Navedeni iznos je nevažeći.",
@@ -13628,6 +13630,7 @@ const TRANSLATIONS = {
13628
13630
  "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
13631
  "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
13632
  "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.",
13633
+ "GmErr_BadRequest_MissingTrunkCode": "Telefonski broj mora počinjati s 0",
13631
13634
  },
13632
13635
  'pt-br': {
13633
13636
  "GmErr_AMOUNT_INVALID": "O valor especificado é inválido.",
@@ -13715,6 +13718,7 @@ const TRANSLATIONS = {
13715
13718
  "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
13719
  "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
13720
  "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.",
13721
+ "GmErr_BadRequest_MissingTrunkCode": "O número de telefone deve começar com 0",
13718
13722
  },
13719
13723
  'es-mx': {
13720
13724
  "GmErr_AMOUNT_INVALID": "El monto especificado es inválido.",
@@ -13801,7 +13805,8 @@ const TRANSLATIONS = {
13801
13805
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "El documento del usuario es inválido.",
13802
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.",
13803
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.",
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."
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",
13805
13810
  },
13806
13811
  "tr": {
13807
13812
  "GmErr_AMOUNT_INVALID": "Belirtilen miktar geçersiz.",
@@ -13888,7 +13893,8 @@ const TRANSLATIONS = {
13888
13893
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "Kullanıcı belgesi geçersiz.",
13889
13894
  "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
13895
  "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."
13896
+ "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: İç hata.",
13897
+ "GmErr_BadRequest_MissingTrunkCode": "Telefon numarası 0 ile başlamalıdır",
13892
13898
  },
13893
13899
  "en-us": {
13894
13900
  "GmErr_AMOUNT_INVALID": "The specified amount is invalid.",
@@ -13976,6 +13982,7 @@ const TRANSLATIONS = {
13976
13982
  "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
13983
  "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
13984
  "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.",
13985
+ "GmErr_BadRequest_MissingTrunkCode": "Phone number must start with 0",
13979
13986
  },
13980
13987
  "ro": {
13981
13988
  "GmErr_AMOUNT_INVALID": "Suma specificată este invalidă.",
@@ -14063,6 +14070,7 @@ const TRANSLATIONS = {
14063
14070
  "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
14071
  "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
14072
  "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ă.",
14073
+ "GmErr_BadRequest_MissingTrunkCode": "Numărul de telefon trebuie să înceapă cu 0",
14066
14074
  },
14067
14075
  "fr": {
14068
14076
  "GmErr_AMOUNT_INVALID": "Le montant spécifié est invalide.",
@@ -14148,6 +14156,7 @@ const TRANSLATIONS = {
14148
14156
  "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
14157
  "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
14158
  "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.",
14159
+ "GmErr_BadRequest_MissingTrunkCode": "Le numéro de téléphone doit commencer par 0",
14151
14160
  },
14152
14161
  "es": {
14153
14162
  "GmErr_AMOUNT_INVALID": "El monto especificado no es válido.",
@@ -14235,6 +14244,7 @@ const TRANSLATIONS = {
14235
14244
  "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
14245
  "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
14246
  "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.",
14247
+ "GmErr_BadRequest_MissingTrunkCode": "El número de teléfono debe empezar con 0",
14238
14248
  },
14239
14249
  "pt": {
14240
14250
  "GmErr_AMOUNT_INVALID": "O valor especificado é inválido.",
@@ -14322,6 +14332,7 @@ const TRANSLATIONS = {
14322
14332
  "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
14333
  "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
14334
  "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.",
14335
+ "GmErr_BadRequest_MissingTrunkCode": "O número de telefone deve começar por 0",
14325
14336
  },
14326
14337
  "de": {
14327
14338
  "GmErr_AMOUNT_INVALID": "Der angegebene Betrag ist ungültig.",
@@ -14408,9 +14419,13 @@ const TRANSLATIONS = {
14408
14419
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "Das Benutzerdokument ist ungültig.",
14409
14420
  "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
14421
  "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."
14422
+ "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.",
14423
+ "GmErr_BadRequest_MissingTrunkCode": "Die Telefonnummer muss mit 0 beginnen",
14412
14424
  }
14413
14425
  };
14426
+ const CONSTANTS = {
14427
+ VALIDATION_PHONE_START_ZERO: "Phone number must start with 0",
14428
+ };
14414
14429
  const getTranslations = (url) => {
14415
14430
  // fetch url, get the data, replace the TRANSLATIONS content
14416
14431
  return new Promise((resolve) => {
@@ -15047,6 +15062,9 @@ const GeneralRegistration = class {
15047
15062
  }
15048
15063
  else if (this.errorCode == 'GmErr_BadRequest') {
15049
15064
  this.errorMessage = error.thirdPartyResponse.message;
15065
+ if (error.thirdPartyResponse.message === CONSTANTS.VALIDATION_PHONE_START_ZERO) {
15066
+ this.errorMessage = translate('GmErr_BadRequest_MissingTrunkCode', this.language);
15067
+ }
15050
15068
  }
15051
15069
  else {
15052
15070
  this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
@@ -15882,7 +15900,7 @@ const PasswordInput = class {
15882
15900
  }
15883
15901
  renderCustomComplexityPopup() {
15884
15902
  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)))))));
15903
+ ? 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
15904
  }
15887
15905
  render() {
15888
15906
  let invalidClass = '';
@@ -16798,9 +16816,9 @@ const TextInput = class {
16798
16816
  this.handleInput = (event) => {
16799
16817
  const input = event.target;
16800
16818
  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, '')
16819
+ (this.name === CONSTANTS$1.FIRSTNAME_ON_DOCUMENT ||
16820
+ this.name === CONSTANTS$1.LASTNAME_ON_DOCUMENT)
16821
+ ? input.value.replace(CONSTANTS$1.NON_LETTERS_REGEX, '')
16804
16822
  : input.value;
16805
16823
  if (normalizedValue !== input.value) {
16806
16824
  input.value = normalizedValue;
@@ -16929,7 +16947,7 @@ const TextInput = class {
16929
16947
  this.validationPattern = this.setPattern();
16930
16948
  }
16931
16949
  handleExternalDocUpdate(event) {
16932
- if (this.name !== CONSTANTS.DOCUMENT_NUMBER)
16950
+ if (this.name !== CONSTANTS$1.DOCUMENT_NUMBER)
16933
16951
  return;
16934
16952
  this.value = event.detail || "";
16935
16953
  this.touched = true;
@@ -16943,7 +16961,7 @@ const TextInput = class {
16943
16961
  this.updateValidationState();
16944
16962
  }
16945
16963
  handleDocReset() {
16946
- if (this.name !== CONSTANTS.DOCUMENT_NUMBER)
16964
+ if (this.name !== CONSTANTS$1.DOCUMENT_NUMBER)
16947
16965
  return;
16948
16966
  this.value = "";
16949
16967
  this.touched = false;
@@ -16987,14 +17005,14 @@ const TextInput = class {
16987
17005
  }
16988
17006
  validateDocument(valueRaw, docType) {
16989
17007
  const value = valueRaw.trim();
16990
- if (docType === CONSTANTS.PASSPORT) {
16991
- const valid = CONSTANTS.PASSPORT_NUMERIC_REGEX.test(value);
17008
+ if (docType === CONSTANTS$1.PASSPORT) {
17009
+ const valid = CONSTANTS$1.PASSPORT_NUMERIC_REGEX.test(value);
16992
17010
  return valid
16993
17011
  ? { valid: true }
16994
17012
  : { valid: false, errorKey: ERROR_KEYS.PASSPORT_INVALID };
16995
17013
  }
16996
- if (docType === CONSTANTS.SOUTH_AFRICAN_ID) {
16997
- if (value.length !== CONSTANTS.SOUTH_AFRICAN_ID_LENGTH) {
17014
+ if (docType === CONSTANTS$1.SOUTH_AFRICAN_ID) {
17015
+ if (value.length !== CONSTANTS$1.SOUTH_AFRICAN_ID_LENGTH) {
16998
17016
  return { valid: false, errorKey: ERROR_KEYS.SA_ID_LENGTH };
16999
17017
  }
17000
17018
  const valid = validateID(value);
@@ -17017,7 +17035,7 @@ const TextInput = class {
17017
17035
  if (!this.inputReference) {
17018
17036
  return false;
17019
17037
  }
17020
- if (this.enableSouthAfricanMode && this.name === CONSTANTS.DOCUMENT_NUMBER) {
17038
+ if (this.enableSouthAfricanMode && this.name === CONSTANTS$1.DOCUMENT_NUMBER) {
17021
17039
  const docType = window.documentTypeValue;
17022
17040
  return this.validateDocument(this.value, docType).valid;
17023
17041
  }
@@ -17036,7 +17054,7 @@ const TextInput = class {
17036
17054
  setErrorMessage() {
17037
17055
  var _a, _b, _c, _d;
17038
17056
  const value = this.value.trim();
17039
- if (this.enableSouthAfricanMode && this.name === CONSTANTS.DOCUMENT_NUMBER) {
17057
+ if (this.enableSouthAfricanMode && this.name === CONSTANTS$1.DOCUMENT_NUMBER) {
17040
17058
  const docType = window.documentTypeValue;
17041
17059
  const res = this.validateDocument(this.value, docType);
17042
17060
  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,7 @@ 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.",
89
90
  },
90
91
  "hu": {
91
92
  "GmErr_AMOUNT_INVALID": "A megadott összeg érvénytelen.",
@@ -173,6 +174,7 @@ export const TRANSLATIONS = {
173
174
  "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
175
  "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
176
  "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.",
177
+ "GmErr_BadRequest_MissingTrunkCode": "A telefonszámnak 0-val kell kezdődnie",
176
178
  },
177
179
  "hr": {
178
180
  "GmErr_AMOUNT_INVALID": "Navedeni iznos je nevažeći.",
@@ -260,6 +262,7 @@ export const TRANSLATIONS = {
260
262
  "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
263
  "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
264
  "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.",
265
+ "GmErr_BadRequest_MissingTrunkCode": "Telefonski broj mora počinjati s 0",
263
266
  },
264
267
  'pt-br': {
265
268
  "GmErr_AMOUNT_INVALID": "O valor especificado é inválido.",
@@ -347,6 +350,7 @@ export const TRANSLATIONS = {
347
350
  "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
351
  "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
352
  "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.",
353
+ "GmErr_BadRequest_MissingTrunkCode": "O número de telefone deve começar com 0",
350
354
  },
351
355
  'es-mx': {
352
356
  "GmErr_AMOUNT_INVALID": "El monto especificado es inválido.",
@@ -433,7 +437,8 @@ export const TRANSLATIONS = {
433
437
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "El documento del usuario es inválido.",
434
438
  "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
439
  "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."
440
+ "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.",
441
+ "GmErr_BadRequest_MissingTrunkCode": "El número de teléfono debe comenzar con 0",
437
442
  },
438
443
  "tr": {
439
444
  "GmErr_AMOUNT_INVALID": "Belirtilen miktar geçersiz.",
@@ -520,7 +525,8 @@ export const TRANSLATIONS = {
520
525
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "Kullanıcı belgesi geçersiz.",
521
526
  "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
527
  "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."
528
+ "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: İç hata.",
529
+ "GmErr_BadRequest_MissingTrunkCode": "Telefon numarası 0 ile başlamalıdır",
524
530
  },
525
531
  "en-us": {
526
532
  "GmErr_AMOUNT_INVALID": "The specified amount is invalid.",
@@ -608,6 +614,7 @@ export const TRANSLATIONS = {
608
614
  "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
615
  "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
616
  "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.",
617
+ "GmErr_BadRequest_MissingTrunkCode": "Phone number must start with 0",
611
618
  },
612
619
  "ro": {
613
620
  "GmErr_AMOUNT_INVALID": "Suma specificată este invalidă.",
@@ -695,6 +702,7 @@ export const TRANSLATIONS = {
695
702
  "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
703
  "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
704
  "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ă.",
705
+ "GmErr_BadRequest_MissingTrunkCode": "Numărul de telefon trebuie să înceapă cu 0",
698
706
  },
699
707
  "fr": {
700
708
  "GmErr_AMOUNT_INVALID": "Le montant spécifié est invalide.",
@@ -780,6 +788,7 @@ export const TRANSLATIONS = {
780
788
  "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
789
  "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
790
  "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.",
791
+ "GmErr_BadRequest_MissingTrunkCode": "Le numéro de téléphone doit commencer par 0",
783
792
  },
784
793
  "es": {
785
794
  "GmErr_AMOUNT_INVALID": "El monto especificado no es válido.",
@@ -867,6 +876,7 @@ export const TRANSLATIONS = {
867
876
  "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
877
  "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
878
  "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.",
879
+ "GmErr_BadRequest_MissingTrunkCode": "El número de teléfono debe empezar con 0",
870
880
  },
871
881
  "pt": {
872
882
  "GmErr_AMOUNT_INVALID": "O valor especificado é inválido.",
@@ -954,6 +964,7 @@ export const TRANSLATIONS = {
954
964
  "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
965
  "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
966
  "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.",
967
+ "GmErr_BadRequest_MissingTrunkCode": "O número de telefone deve começar por 0",
957
968
  },
958
969
  "de": {
959
970
  "GmErr_AMOUNT_INVALID": "Der angegebene Betrag ist ungültig.",
@@ -1040,9 +1051,13 @@ export const TRANSLATIONS = {
1040
1051
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "Das Benutzerdokument ist ungültig.",
1041
1052
  "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
1053
  "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."
1054
+ "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.",
1055
+ "GmErr_BadRequest_MissingTrunkCode": "Die Telefonnummer muss mit 0 beginnen",
1044
1056
  }
1045
1057
  };
1058
+ export const CONSTANTS = {
1059
+ VALIDATION_PHONE_START_ZERO: "Phone number must start with 0",
1060
+ };
1046
1061
  export const getTranslations = (url) => {
1047
1062
  // fetch url, get the data, replace the TRANSLATIONS content
1048
1063
  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,7 @@ 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.",
13453
13454
  },
13454
13455
  "hu": {
13455
13456
  "GmErr_AMOUNT_INVALID": "A megadott összeg érvénytelen.",
@@ -13537,6 +13538,7 @@ const TRANSLATIONS = {
13537
13538
  "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
13539
  "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
13540
  "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.",
13541
+ "GmErr_BadRequest_MissingTrunkCode": "A telefonszámnak 0-val kell kezdődnie",
13540
13542
  },
13541
13543
  "hr": {
13542
13544
  "GmErr_AMOUNT_INVALID": "Navedeni iznos je nevažeći.",
@@ -13624,6 +13626,7 @@ const TRANSLATIONS = {
13624
13626
  "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
13627
  "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
13628
  "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.",
13629
+ "GmErr_BadRequest_MissingTrunkCode": "Telefonski broj mora počinjati s 0",
13627
13630
  },
13628
13631
  'pt-br': {
13629
13632
  "GmErr_AMOUNT_INVALID": "O valor especificado é inválido.",
@@ -13711,6 +13714,7 @@ const TRANSLATIONS = {
13711
13714
  "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
13715
  "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
13716
  "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.",
13717
+ "GmErr_BadRequest_MissingTrunkCode": "O número de telefone deve começar com 0",
13714
13718
  },
13715
13719
  'es-mx': {
13716
13720
  "GmErr_AMOUNT_INVALID": "El monto especificado es inválido.",
@@ -13797,7 +13801,8 @@ const TRANSLATIONS = {
13797
13801
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "El documento del usuario es inválido.",
13798
13802
  "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
13803
  "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."
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.",
13805
+ "GmErr_BadRequest_MissingTrunkCode": "El número de teléfono debe comenzar con 0",
13801
13806
  },
13802
13807
  "tr": {
13803
13808
  "GmErr_AMOUNT_INVALID": "Belirtilen miktar geçersiz.",
@@ -13884,7 +13889,8 @@ const TRANSLATIONS = {
13884
13889
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "Kullanıcı belgesi geçersiz.",
13885
13890
  "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
13891
  "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."
13892
+ "GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR": "Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: İç hata.",
13893
+ "GmErr_BadRequest_MissingTrunkCode": "Telefon numarası 0 ile başlamalıdır",
13888
13894
  },
13889
13895
  "en-us": {
13890
13896
  "GmErr_AMOUNT_INVALID": "The specified amount is invalid.",
@@ -13972,6 +13978,7 @@ const TRANSLATIONS = {
13972
13978
  "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
13979
  "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
13980
  "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.",
13981
+ "GmErr_BadRequest_MissingTrunkCode": "Phone number must start with 0",
13975
13982
  },
13976
13983
  "ro": {
13977
13984
  "GmErr_AMOUNT_INVALID": "Suma specificată este invalidă.",
@@ -14059,6 +14066,7 @@ const TRANSLATIONS = {
14059
14066
  "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
14067
  "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
14068
  "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ă.",
14069
+ "GmErr_BadRequest_MissingTrunkCode": "Numărul de telefon trebuie să înceapă cu 0",
14062
14070
  },
14063
14071
  "fr": {
14064
14072
  "GmErr_AMOUNT_INVALID": "Le montant spécifié est invalide.",
@@ -14144,6 +14152,7 @@ const TRANSLATIONS = {
14144
14152
  "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
14153
  "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
14154
  "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.",
14155
+ "GmErr_BadRequest_MissingTrunkCode": "Le numéro de téléphone doit commencer par 0",
14147
14156
  },
14148
14157
  "es": {
14149
14158
  "GmErr_AMOUNT_INVALID": "El monto especificado no es válido.",
@@ -14231,6 +14240,7 @@ const TRANSLATIONS = {
14231
14240
  "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
14241
  "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
14242
  "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.",
14243
+ "GmErr_BadRequest_MissingTrunkCode": "El número de teléfono debe empezar con 0",
14234
14244
  },
14235
14245
  "pt": {
14236
14246
  "GmErr_AMOUNT_INVALID": "O valor especificado é inválido.",
@@ -14318,6 +14328,7 @@ const TRANSLATIONS = {
14318
14328
  "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
14329
  "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
14330
  "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.",
14331
+ "GmErr_BadRequest_MissingTrunkCode": "O número de telefone deve começar por 0",
14321
14332
  },
14322
14333
  "de": {
14323
14334
  "GmErr_AMOUNT_INVALID": "Der angegebene Betrag ist ungültig.",
@@ -14404,9 +14415,13 @@ const TRANSLATIONS = {
14404
14415
  "GmErr_BadRequest_INVALID_USER_DOCUMENT": "Das Benutzerdokument ist ungültig.",
14405
14416
  "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
14417
  "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."
14418
+ "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.",
14419
+ "GmErr_BadRequest_MissingTrunkCode": "Die Telefonnummer muss mit 0 beginnen",
14408
14420
  }
14409
14421
  };
14422
+ const CONSTANTS = {
14423
+ VALIDATION_PHONE_START_ZERO: "Phone number must start with 0",
14424
+ };
14410
14425
  const getTranslations = (url) => {
14411
14426
  // fetch url, get the data, replace the TRANSLATIONS content
14412
14427
  return new Promise((resolve) => {
@@ -15043,6 +15058,9 @@ const GeneralRegistration = class {
15043
15058
  }
15044
15059
  else if (this.errorCode == 'GmErr_BadRequest') {
15045
15060
  this.errorMessage = error.thirdPartyResponse.message;
15061
+ if (error.thirdPartyResponse.message === CONSTANTS.VALIDATION_PHONE_START_ZERO) {
15062
+ this.errorMessage = translate('GmErr_BadRequest_MissingTrunkCode', this.language);
15063
+ }
15046
15064
  }
15047
15065
  else {
15048
15066
  this.errorMessage = translate(`${this.errorCode}`, this.language) || translate(`generalError`, this.language);
@@ -15878,7 +15896,7 @@ const PasswordInput = class {
15878
15896
  }
15879
15897
  renderCustomComplexityPopup() {
15880
15898
  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)))))));
15899
+ ? 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
15900
  }
15883
15901
  render() {
15884
15902
  let invalidClass = '';
@@ -16794,9 +16812,9 @@ const TextInput = class {
16794
16812
  this.handleInput = (event) => {
16795
16813
  const input = event.target;
16796
16814
  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, '')
16815
+ (this.name === CONSTANTS$1.FIRSTNAME_ON_DOCUMENT ||
16816
+ this.name === CONSTANTS$1.LASTNAME_ON_DOCUMENT)
16817
+ ? input.value.replace(CONSTANTS$1.NON_LETTERS_REGEX, '')
16800
16818
  : input.value;
16801
16819
  if (normalizedValue !== input.value) {
16802
16820
  input.value = normalizedValue;
@@ -16925,7 +16943,7 @@ const TextInput = class {
16925
16943
  this.validationPattern = this.setPattern();
16926
16944
  }
16927
16945
  handleExternalDocUpdate(event) {
16928
- if (this.name !== CONSTANTS.DOCUMENT_NUMBER)
16946
+ if (this.name !== CONSTANTS$1.DOCUMENT_NUMBER)
16929
16947
  return;
16930
16948
  this.value = event.detail || "";
16931
16949
  this.touched = true;
@@ -16939,7 +16957,7 @@ const TextInput = class {
16939
16957
  this.updateValidationState();
16940
16958
  }
16941
16959
  handleDocReset() {
16942
- if (this.name !== CONSTANTS.DOCUMENT_NUMBER)
16960
+ if (this.name !== CONSTANTS$1.DOCUMENT_NUMBER)
16943
16961
  return;
16944
16962
  this.value = "";
16945
16963
  this.touched = false;
@@ -16983,14 +17001,14 @@ const TextInput = class {
16983
17001
  }
16984
17002
  validateDocument(valueRaw, docType) {
16985
17003
  const value = valueRaw.trim();
16986
- if (docType === CONSTANTS.PASSPORT) {
16987
- const valid = CONSTANTS.PASSPORT_NUMERIC_REGEX.test(value);
17004
+ if (docType === CONSTANTS$1.PASSPORT) {
17005
+ const valid = CONSTANTS$1.PASSPORT_NUMERIC_REGEX.test(value);
16988
17006
  return valid
16989
17007
  ? { valid: true }
16990
17008
  : { valid: false, errorKey: ERROR_KEYS.PASSPORT_INVALID };
16991
17009
  }
16992
- if (docType === CONSTANTS.SOUTH_AFRICAN_ID) {
16993
- if (value.length !== CONSTANTS.SOUTH_AFRICAN_ID_LENGTH) {
17010
+ if (docType === CONSTANTS$1.SOUTH_AFRICAN_ID) {
17011
+ if (value.length !== CONSTANTS$1.SOUTH_AFRICAN_ID_LENGTH) {
16994
17012
  return { valid: false, errorKey: ERROR_KEYS.SA_ID_LENGTH };
16995
17013
  }
16996
17014
  const valid = validateID(value);
@@ -17013,7 +17031,7 @@ const TextInput = class {
17013
17031
  if (!this.inputReference) {
17014
17032
  return false;
17015
17033
  }
17016
- if (this.enableSouthAfricanMode && this.name === CONSTANTS.DOCUMENT_NUMBER) {
17034
+ if (this.enableSouthAfricanMode && this.name === CONSTANTS$1.DOCUMENT_NUMBER) {
17017
17035
  const docType = window.documentTypeValue;
17018
17036
  return this.validateDocument(this.value, docType).valid;
17019
17037
  }
@@ -17032,7 +17050,7 @@ const TextInput = class {
17032
17050
  setErrorMessage() {
17033
17051
  var _a, _b, _c, _d;
17034
17052
  const value = this.value.trim();
17035
- if (this.enableSouthAfricanMode && this.name === CONSTANTS.DOCUMENT_NUMBER) {
17053
+ if (this.enableSouthAfricanMode && this.name === CONSTANTS$1.DOCUMENT_NUMBER) {
17036
17054
  const docType = window.documentTypeValue;
17037
17055
  const res = this.validateDocument(this.value, docType);
17038
17056
  return res.valid ? '' : translate$1(res.errorKey, this.language);