@everymatrix/user-login 1.41.0 → 1.43.0
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.
- package/dist/cjs/user-login.cjs.entry.js +16 -8
- package/dist/collection/utils/locale.utils.js +16 -8
- package/dist/components/user-login.js +16 -8
- package/dist/esm/user-login.entry.js +16 -8
- package/dist/user-login/p-12204d5f.entry.js +1 -0
- package/dist/user-login/user-login.esm.js +1 -1
- package/package.json +1 -1
- package/dist/user-login/p-4228a021.entry.js +0 -1
- /package/dist/types/Users/{adrian.pripon/Documents/Work → sebastian.strulea/Documents/work}/widgets-stencil/packages/user-login/.stencil/packages/user-login/stencil.config.d.ts +0 -0
|
@@ -15,7 +15,8 @@ const TRANSLATIONS = {
|
|
|
15
15
|
login: 'Login',
|
|
16
16
|
genericError: 'An unexpected error has occured',
|
|
17
17
|
successMessage: 'Login successful',
|
|
18
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
18
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
19
|
+
Unauthorized: 'The player account number, e-mail address or password is incorrect'
|
|
19
20
|
},
|
|
20
21
|
ro: {
|
|
21
22
|
invalidField: 'This field is invalid',
|
|
@@ -25,7 +26,8 @@ const TRANSLATIONS = {
|
|
|
25
26
|
login: 'Login',
|
|
26
27
|
genericError: 'An unexpected error has occured',
|
|
27
28
|
successMessage: 'Login successful',
|
|
28
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
29
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
30
|
+
Unauthorized: 'Numărul contului de jucător, adresa de e-mail sau parola este incorectă'
|
|
29
31
|
},
|
|
30
32
|
hr: {
|
|
31
33
|
invalidField: 'Ovo polje je nevažeće',
|
|
@@ -35,7 +37,8 @@ const TRANSLATIONS = {
|
|
|
35
37
|
login: 'Prijava',
|
|
36
38
|
genericError: 'Došlo je do neočekivane pogreške',
|
|
37
39
|
successMessage: 'Prijava uspješna',
|
|
38
|
-
Forbidden_UserAccount_Blocked: 'Vaš račun je blokiran'
|
|
40
|
+
Forbidden_UserAccount_Blocked: 'Vaš račun je blokiran',
|
|
41
|
+
Unauthorized: 'Lozinka, e-mail adresa ili korisničko ime su pogrešno uneseni'
|
|
39
42
|
},
|
|
40
43
|
fr: {
|
|
41
44
|
invalidField: 'This field is invalid',
|
|
@@ -45,7 +48,8 @@ const TRANSLATIONS = {
|
|
|
45
48
|
login: 'Login',
|
|
46
49
|
genericError: 'An unexpected error has occured',
|
|
47
50
|
successMessage: 'Login successful',
|
|
48
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
51
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
52
|
+
Unauthorized: 'Le numéro de compte du joueur, l\'adresse e-mail ou le mot de passe est incorrect'
|
|
49
53
|
},
|
|
50
54
|
cs: {
|
|
51
55
|
invalidField: 'Ovo polje je nevažeće.',
|
|
@@ -55,7 +59,8 @@ const TRANSLATIONS = {
|
|
|
55
59
|
login: 'Prijava',
|
|
56
60
|
genericError: 'An unexpected error has occured',
|
|
57
61
|
successMessage: 'Login successful',
|
|
58
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
62
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
63
|
+
Unauthorized: 'Číslo účtu hráče, e-mailová adresa nebo heslo je nesprávné'
|
|
59
64
|
},
|
|
60
65
|
de: {
|
|
61
66
|
invalidField: 'This field is invalid',
|
|
@@ -65,7 +70,8 @@ const TRANSLATIONS = {
|
|
|
65
70
|
login: 'Login',
|
|
66
71
|
genericError: 'An unexpected error has occured',
|
|
67
72
|
successMessage: 'Login successful',
|
|
68
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
73
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
74
|
+
Unauthorized: 'Die Spielerkontonummer, E-Mail-Adresse oder das Passwort ist falsch'
|
|
69
75
|
},
|
|
70
76
|
'pt-br': {
|
|
71
77
|
'invalidField': 'O campo é inválido',
|
|
@@ -75,7 +81,8 @@ const TRANSLATIONS = {
|
|
|
75
81
|
'login': 'Entrem',
|
|
76
82
|
'genericError': 'Ocorreu um erro inesperado',
|
|
77
83
|
'successMessage': 'Você fez login com sucesso',
|
|
78
|
-
'Forbidden_UserAccount_Blocked': 'Player account blocked'
|
|
84
|
+
'Forbidden_UserAccount_Blocked': 'Player account blocked',
|
|
85
|
+
'Unauthorized': 'O número da conta do jogador, o endereço de e-mail ou a senha estão incorretos'
|
|
79
86
|
},
|
|
80
87
|
'es-mx': {
|
|
81
88
|
'invalidField': 'El campo es inválido',
|
|
@@ -85,7 +92,8 @@ const TRANSLATIONS = {
|
|
|
85
92
|
'login': 'Entrar',
|
|
86
93
|
'genericError': 'Ha ocurrido un error inesperado',
|
|
87
94
|
'successMessage': 'Ha ingreasado de forma exitosa',
|
|
88
|
-
'Forbidden_UserAccount_Blocked': 'Player account blocked'
|
|
95
|
+
'Forbidden_UserAccount_Blocked': 'Player account blocked',
|
|
96
|
+
'Unauthorized': 'El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos'
|
|
89
97
|
}
|
|
90
98
|
};
|
|
91
99
|
const getTranslations = (url) => {
|
|
@@ -9,7 +9,8 @@ const TRANSLATIONS = {
|
|
|
9
9
|
login: 'Login',
|
|
10
10
|
genericError: 'An unexpected error has occured',
|
|
11
11
|
successMessage: 'Login successful',
|
|
12
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
12
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
13
|
+
Unauthorized: 'The player account number, e-mail address or password is incorrect'
|
|
13
14
|
},
|
|
14
15
|
ro: {
|
|
15
16
|
invalidField: 'This field is invalid',
|
|
@@ -19,7 +20,8 @@ const TRANSLATIONS = {
|
|
|
19
20
|
login: 'Login',
|
|
20
21
|
genericError: 'An unexpected error has occured',
|
|
21
22
|
successMessage: 'Login successful',
|
|
22
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
23
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
24
|
+
Unauthorized: 'Numărul contului de jucător, adresa de e-mail sau parola este incorectă'
|
|
23
25
|
},
|
|
24
26
|
hr: {
|
|
25
27
|
invalidField: 'Ovo polje je nevažeće',
|
|
@@ -29,7 +31,8 @@ const TRANSLATIONS = {
|
|
|
29
31
|
login: 'Prijava',
|
|
30
32
|
genericError: 'Došlo je do neočekivane pogreške',
|
|
31
33
|
successMessage: 'Prijava uspješna',
|
|
32
|
-
Forbidden_UserAccount_Blocked: 'Vaš račun je blokiran'
|
|
34
|
+
Forbidden_UserAccount_Blocked: 'Vaš račun je blokiran',
|
|
35
|
+
Unauthorized: 'Lozinka, e-mail adresa ili korisničko ime su pogrešno uneseni'
|
|
33
36
|
},
|
|
34
37
|
fr: {
|
|
35
38
|
invalidField: 'This field is invalid',
|
|
@@ -39,7 +42,8 @@ const TRANSLATIONS = {
|
|
|
39
42
|
login: 'Login',
|
|
40
43
|
genericError: 'An unexpected error has occured',
|
|
41
44
|
successMessage: 'Login successful',
|
|
42
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
45
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
46
|
+
Unauthorized: 'Le numéro de compte du joueur, l\'adresse e-mail ou le mot de passe est incorrect'
|
|
43
47
|
},
|
|
44
48
|
cs: {
|
|
45
49
|
invalidField: 'Ovo polje je nevažeće.',
|
|
@@ -49,7 +53,8 @@ const TRANSLATIONS = {
|
|
|
49
53
|
login: 'Prijava',
|
|
50
54
|
genericError: 'An unexpected error has occured',
|
|
51
55
|
successMessage: 'Login successful',
|
|
52
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
56
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
57
|
+
Unauthorized: 'Číslo účtu hráče, e-mailová adresa nebo heslo je nesprávné'
|
|
53
58
|
},
|
|
54
59
|
de: {
|
|
55
60
|
invalidField: 'This field is invalid',
|
|
@@ -59,7 +64,8 @@ const TRANSLATIONS = {
|
|
|
59
64
|
login: 'Login',
|
|
60
65
|
genericError: 'An unexpected error has occured',
|
|
61
66
|
successMessage: 'Login successful',
|
|
62
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
67
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
68
|
+
Unauthorized: 'Die Spielerkontonummer, E-Mail-Adresse oder das Passwort ist falsch'
|
|
63
69
|
},
|
|
64
70
|
'pt-br': {
|
|
65
71
|
'invalidField': 'O campo é inválido',
|
|
@@ -69,7 +75,8 @@ const TRANSLATIONS = {
|
|
|
69
75
|
'login': 'Entrem',
|
|
70
76
|
'genericError': 'Ocorreu um erro inesperado',
|
|
71
77
|
'successMessage': 'Você fez login com sucesso',
|
|
72
|
-
'Forbidden_UserAccount_Blocked': 'Player account blocked'
|
|
78
|
+
'Forbidden_UserAccount_Blocked': 'Player account blocked',
|
|
79
|
+
'Unauthorized': 'O número da conta do jogador, o endereço de e-mail ou a senha estão incorretos'
|
|
73
80
|
},
|
|
74
81
|
'es-mx': {
|
|
75
82
|
'invalidField': 'El campo es inválido',
|
|
@@ -79,7 +86,8 @@ const TRANSLATIONS = {
|
|
|
79
86
|
'login': 'Entrar',
|
|
80
87
|
'genericError': 'Ha ocurrido un error inesperado',
|
|
81
88
|
'successMessage': 'Ha ingreasado de forma exitosa',
|
|
82
|
-
'Forbidden_UserAccount_Blocked': 'Player account blocked'
|
|
89
|
+
'Forbidden_UserAccount_Blocked': 'Player account blocked',
|
|
90
|
+
'Unauthorized': 'El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos'
|
|
83
91
|
}
|
|
84
92
|
};
|
|
85
93
|
export const getTranslations = (url) => {
|
|
@@ -11,7 +11,8 @@ const TRANSLATIONS = {
|
|
|
11
11
|
login: 'Login',
|
|
12
12
|
genericError: 'An unexpected error has occured',
|
|
13
13
|
successMessage: 'Login successful',
|
|
14
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
14
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
15
|
+
Unauthorized: 'The player account number, e-mail address or password is incorrect'
|
|
15
16
|
},
|
|
16
17
|
ro: {
|
|
17
18
|
invalidField: 'This field is invalid',
|
|
@@ -21,7 +22,8 @@ const TRANSLATIONS = {
|
|
|
21
22
|
login: 'Login',
|
|
22
23
|
genericError: 'An unexpected error has occured',
|
|
23
24
|
successMessage: 'Login successful',
|
|
24
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
25
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
26
|
+
Unauthorized: 'Numărul contului de jucător, adresa de e-mail sau parola este incorectă'
|
|
25
27
|
},
|
|
26
28
|
hr: {
|
|
27
29
|
invalidField: 'Ovo polje je nevažeće',
|
|
@@ -31,7 +33,8 @@ const TRANSLATIONS = {
|
|
|
31
33
|
login: 'Prijava',
|
|
32
34
|
genericError: 'Došlo je do neočekivane pogreške',
|
|
33
35
|
successMessage: 'Prijava uspješna',
|
|
34
|
-
Forbidden_UserAccount_Blocked: 'Vaš račun je blokiran'
|
|
36
|
+
Forbidden_UserAccount_Blocked: 'Vaš račun je blokiran',
|
|
37
|
+
Unauthorized: 'Lozinka, e-mail adresa ili korisničko ime su pogrešno uneseni'
|
|
35
38
|
},
|
|
36
39
|
fr: {
|
|
37
40
|
invalidField: 'This field is invalid',
|
|
@@ -41,7 +44,8 @@ const TRANSLATIONS = {
|
|
|
41
44
|
login: 'Login',
|
|
42
45
|
genericError: 'An unexpected error has occured',
|
|
43
46
|
successMessage: 'Login successful',
|
|
44
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
47
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
48
|
+
Unauthorized: 'Le numéro de compte du joueur, l\'adresse e-mail ou le mot de passe est incorrect'
|
|
45
49
|
},
|
|
46
50
|
cs: {
|
|
47
51
|
invalidField: 'Ovo polje je nevažeće.',
|
|
@@ -51,7 +55,8 @@ const TRANSLATIONS = {
|
|
|
51
55
|
login: 'Prijava',
|
|
52
56
|
genericError: 'An unexpected error has occured',
|
|
53
57
|
successMessage: 'Login successful',
|
|
54
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
58
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
59
|
+
Unauthorized: 'Číslo účtu hráče, e-mailová adresa nebo heslo je nesprávné'
|
|
55
60
|
},
|
|
56
61
|
de: {
|
|
57
62
|
invalidField: 'This field is invalid',
|
|
@@ -61,7 +66,8 @@ const TRANSLATIONS = {
|
|
|
61
66
|
login: 'Login',
|
|
62
67
|
genericError: 'An unexpected error has occured',
|
|
63
68
|
successMessage: 'Login successful',
|
|
64
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
69
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
70
|
+
Unauthorized: 'Die Spielerkontonummer, E-Mail-Adresse oder das Passwort ist falsch'
|
|
65
71
|
},
|
|
66
72
|
'pt-br': {
|
|
67
73
|
'invalidField': 'O campo é inválido',
|
|
@@ -71,7 +77,8 @@ const TRANSLATIONS = {
|
|
|
71
77
|
'login': 'Entrem',
|
|
72
78
|
'genericError': 'Ocorreu um erro inesperado',
|
|
73
79
|
'successMessage': 'Você fez login com sucesso',
|
|
74
|
-
'Forbidden_UserAccount_Blocked': 'Player account blocked'
|
|
80
|
+
'Forbidden_UserAccount_Blocked': 'Player account blocked',
|
|
81
|
+
'Unauthorized': 'O número da conta do jogador, o endereço de e-mail ou a senha estão incorretos'
|
|
75
82
|
},
|
|
76
83
|
'es-mx': {
|
|
77
84
|
'invalidField': 'El campo es inválido',
|
|
@@ -81,7 +88,8 @@ const TRANSLATIONS = {
|
|
|
81
88
|
'login': 'Entrar',
|
|
82
89
|
'genericError': 'Ha ocurrido un error inesperado',
|
|
83
90
|
'successMessage': 'Ha ingreasado de forma exitosa',
|
|
84
|
-
'Forbidden_UserAccount_Blocked': 'Player account blocked'
|
|
91
|
+
'Forbidden_UserAccount_Blocked': 'Player account blocked',
|
|
92
|
+
'Unauthorized': 'El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos'
|
|
85
93
|
}
|
|
86
94
|
};
|
|
87
95
|
const getTranslations = (url) => {
|
|
@@ -11,7 +11,8 @@ const TRANSLATIONS = {
|
|
|
11
11
|
login: 'Login',
|
|
12
12
|
genericError: 'An unexpected error has occured',
|
|
13
13
|
successMessage: 'Login successful',
|
|
14
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
14
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
15
|
+
Unauthorized: 'The player account number, e-mail address or password is incorrect'
|
|
15
16
|
},
|
|
16
17
|
ro: {
|
|
17
18
|
invalidField: 'This field is invalid',
|
|
@@ -21,7 +22,8 @@ const TRANSLATIONS = {
|
|
|
21
22
|
login: 'Login',
|
|
22
23
|
genericError: 'An unexpected error has occured',
|
|
23
24
|
successMessage: 'Login successful',
|
|
24
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
25
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
26
|
+
Unauthorized: 'Numărul contului de jucător, adresa de e-mail sau parola este incorectă'
|
|
25
27
|
},
|
|
26
28
|
hr: {
|
|
27
29
|
invalidField: 'Ovo polje je nevažeće',
|
|
@@ -31,7 +33,8 @@ const TRANSLATIONS = {
|
|
|
31
33
|
login: 'Prijava',
|
|
32
34
|
genericError: 'Došlo je do neočekivane pogreške',
|
|
33
35
|
successMessage: 'Prijava uspješna',
|
|
34
|
-
Forbidden_UserAccount_Blocked: 'Vaš račun je blokiran'
|
|
36
|
+
Forbidden_UserAccount_Blocked: 'Vaš račun je blokiran',
|
|
37
|
+
Unauthorized: 'Lozinka, e-mail adresa ili korisničko ime su pogrešno uneseni'
|
|
35
38
|
},
|
|
36
39
|
fr: {
|
|
37
40
|
invalidField: 'This field is invalid',
|
|
@@ -41,7 +44,8 @@ const TRANSLATIONS = {
|
|
|
41
44
|
login: 'Login',
|
|
42
45
|
genericError: 'An unexpected error has occured',
|
|
43
46
|
successMessage: 'Login successful',
|
|
44
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
47
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
48
|
+
Unauthorized: 'Le numéro de compte du joueur, l\'adresse e-mail ou le mot de passe est incorrect'
|
|
45
49
|
},
|
|
46
50
|
cs: {
|
|
47
51
|
invalidField: 'Ovo polje je nevažeće.',
|
|
@@ -51,7 +55,8 @@ const TRANSLATIONS = {
|
|
|
51
55
|
login: 'Prijava',
|
|
52
56
|
genericError: 'An unexpected error has occured',
|
|
53
57
|
successMessage: 'Login successful',
|
|
54
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
58
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
59
|
+
Unauthorized: 'Číslo účtu hráče, e-mailová adresa nebo heslo je nesprávné'
|
|
55
60
|
},
|
|
56
61
|
de: {
|
|
57
62
|
invalidField: 'This field is invalid',
|
|
@@ -61,7 +66,8 @@ const TRANSLATIONS = {
|
|
|
61
66
|
login: 'Login',
|
|
62
67
|
genericError: 'An unexpected error has occured',
|
|
63
68
|
successMessage: 'Login successful',
|
|
64
|
-
Forbidden_UserAccount_Blocked: 'Player account blocked'
|
|
69
|
+
Forbidden_UserAccount_Blocked: 'Player account blocked',
|
|
70
|
+
Unauthorized: 'Die Spielerkontonummer, E-Mail-Adresse oder das Passwort ist falsch'
|
|
65
71
|
},
|
|
66
72
|
'pt-br': {
|
|
67
73
|
'invalidField': 'O campo é inválido',
|
|
@@ -71,7 +77,8 @@ const TRANSLATIONS = {
|
|
|
71
77
|
'login': 'Entrem',
|
|
72
78
|
'genericError': 'Ocorreu um erro inesperado',
|
|
73
79
|
'successMessage': 'Você fez login com sucesso',
|
|
74
|
-
'Forbidden_UserAccount_Blocked': 'Player account blocked'
|
|
80
|
+
'Forbidden_UserAccount_Blocked': 'Player account blocked',
|
|
81
|
+
'Unauthorized': 'O número da conta do jogador, o endereço de e-mail ou a senha estão incorretos'
|
|
75
82
|
},
|
|
76
83
|
'es-mx': {
|
|
77
84
|
'invalidField': 'El campo es inválido',
|
|
@@ -81,7 +88,8 @@ const TRANSLATIONS = {
|
|
|
81
88
|
'login': 'Entrar',
|
|
82
89
|
'genericError': 'Ha ocurrido un error inesperado',
|
|
83
90
|
'successMessage': 'Ha ingreasado de forma exitosa',
|
|
84
|
-
'Forbidden_UserAccount_Blocked': 'Player account blocked'
|
|
91
|
+
'Forbidden_UserAccount_Blocked': 'Player account blocked',
|
|
92
|
+
'Unauthorized': 'El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos'
|
|
85
93
|
}
|
|
86
94
|
};
|
|
87
95
|
const getTranslations = (url) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as e}from"./p-55726395.js";const i=["ro","en","cz","de","hr"],s={en:{invalidField:"This field is invalid",forgotPassword:"Forgot Password",userEmail:"Username or Email",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",Unauthorized:"The player account number, e-mail address or password is incorrect"},ro:{invalidField:"This field is invalid",forgotPassword:"Forgot Password",userEmail:"Username or Email",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",Unauthorized:"Numărul contului de jucător, adresa de e-mail sau parola este incorectă"},hr:{invalidField:"Ovo polje je nevažeće",forgotPassword:"Zaboravljena lozinka",userEmail:"Korisničko ime ili email",password:"Lozinka",login:"Prijava",genericError:"Došlo je do neočekivane pogreške",successMessage:"Prijava uspješna",Forbidden_UserAccount_Blocked:"Vaš račun je blokiran",Unauthorized:"Lozinka, e-mail adresa ili korisničko ime su pogrešno uneseni"},fr:{invalidField:"This field is invalid",forgotPassword:"Forgot Password",userEmail:"Username or Email",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",Unauthorized:"Le numéro de compte du joueur, l'adresse e-mail ou le mot de passe est incorrect"},cs:{invalidField:"Ovo polje je nevažeće.",forgotPassword:"Zaboravio sam lozinku ",userEmail:"Korisničko ime ili email",password:"Lozinka",login:"Prijava",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",Unauthorized:"Číslo účtu hráče, e-mailová adresa nebo heslo je nesprávné"},de:{invalidField:"This field is invalid",forgotPassword:"Forgot Password",userEmail:"Username or Email",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked",Unauthorized:"Die Spielerkontonummer, E-Mail-Adresse oder das Passwort ist falsch"},"pt-br":{invalidField:"O campo é inválido",forgotPassword:"Esqueceu sua senha",userEmail:"Usuário ou e-mail",Password:"Senha",login:"Entrem",genericError:"Ocorreu um erro inesperado",successMessage:"Você fez login com sucesso",Forbidden_UserAccount_Blocked:"Player account blocked",Unauthorized:"O número da conta do jogador, o endereço de e-mail ou a senha estão incorretos"},"es-mx":{invalidField:"El campo es inválido",forgotPassword:"Olvidó contraseña",userEmail:"Usuario o Correo Electrónico",Password:"Contraseña",login:"Entrar",genericError:"Ha ocurrido un error inesperado",successMessage:"Ha ingreasado de forma exitosa",Forbidden_UserAccount_Blocked:"Player account blocked",Unauthorized:"El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos"}},r=o=>new Promise((e=>{fetch(o).then((o=>o.json())).then((o=>{Object.keys(o).forEach((e=>{for(let i in o[e])s[e][i]=o[e][i]})),e(!0)}))})),t=(o,e,r)=>{const t=e;let a=s[void 0!==t&&i.includes(t)?t:"en"][o];if(void 0!==r)for(const[o,e]of Object.entries(r.values)){const i=new RegExp(`{${o}}`,"g");a=a.replace(i,e)}return a},a=class{constructor(e){o(this,e),this.endpoint="",this.lang="en",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.passwordReset="false",this.userEmailRegexOptions="i",this.passwordRegexOptions="",this.userNameEmail="",this.userPassword="",this.isValidUserEmail=!0,this.isValidPassword=!0,this.isPasswordVisible=!1,this.limitStylingAppends=!1,this.errorMessage="",this.hasError=!1,this.errorCode="",this.setClientStyling=()=>{let o=document.createElement("style");o.innerHTML=this.clientStyling,this.stylingContainer.appendChild(o)},this.setClientStylingURL=()=>{let o=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(o.href).then((o=>o.text())).then((o=>{e.innerHTML=o,setTimeout((()=>{this.stylingContainer.appendChild(e)}),1)}))},this.autofillCredentialsHandler=o=>{this.userNameEmail=o.detail.userNameEmail,this.userPassword=o.detail.userPassword,this.handleLogin()},this.userLogin=async({username:o,password:e})=>{let i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:o,password:e})};fetch(`${this.endpoint}/v1/player/legislation/login`,i).then((o=>o.json())).then((o=>{var e,i,s;(null===(e=o.sessionBlockers)||void 0===e?void 0:e.includes("has-to-set-consents"))&&window.postMessage({type:"PlayerActions",gmversion:"gm16"},window.location.href),!0===(null==o?void 0:o.hasToSetPass)&&window.postMessage({type:"HasToSetPass"},window.location.href),o.sessionId?(window.postMessage({type:"UserSessionID",session:o.sessionId,userid:o.userId},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:t("successMessage",this.lang)}},window.location.href),this.hasError=!1):(this.hasError=!0,this.errorCode=null===(i=null==o?void 0:o.thirdPartyResponse)||void 0===i?void 0:i.errorCode,this.errorMessage=t(`${this.errorCode}`,this.lang)||(null===(s=null==o?void 0:o.thirdPartyResponse)||void 0===s?void 0:s.message)||t("genericError",this.lang),this.errorMessage&&(console.error(this.errorMessage),this.sendErrorNotification(this.errorMessage)))})).catch((o=>{console.error(o),this.hasError=!0,this.errorMessage=t("genericError",this.lang),this.sendErrorNotification(this.errorMessage)}))},this.debouncedUserLogin=this.debounce(this.userLogin,850),this.handleLogin=()=>{this.debouncedUserLogin({username:this.userNameEmail,password:this.userPassword}),this.dispatchUpdateLoginCredentialsEvent()},this.handleInputChange=(o,e)=>{this.hasError=!1;const i=o.target.value;"user"===e?(this.userNameEmail=i,this.isValidUserEmail=this.userEmailValidation(this.userNameEmail)):(this.userPassword=i,this.isValidPassword=this.passwordValidation(i))},this.userEmailValidation=o=>new RegExp(this.userEmailRegex,this.userEmailRegexOptions).test(o),this.passwordValidation=o=>new RegExp(this.passwordRegex,this.passwordRegexOptions).test(o),this.togglePassword=()=>{this.isPasswordVisible=!this.isPasswordVisible},this.resetPassword=()=>{window.postMessage({type:"NavForgotPassword"},window.location.href)}}handleNewTranslations(){r(this.translationUrl)}async componentWillLoad(){this.translationUrl.length>2&&await r(this.translationUrl)}componentDidLoad(){window.addEventListener("LoginCredentials",this.autofillCredentialsHandler),window.postMessage({type:"UserLoginDidLoad"})}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}disconnectedCallback(){window.removeEventListener("LoginCredentials",this.autofillCredentialsHandler)}sendErrorNotification(o){window.postMessage({type:"HasError",error:o},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:o}},window.location.href)}debounce(o,e){let i;return function(...s){clearTimeout(i),i=setTimeout((()=>{o.apply(this,s)}),e)}}dispatchUpdateLoginCredentialsEvent(){this.hasError||(this.updateLoginCredentialsEvent=new CustomEvent("UpdateLoginCredentials",{bubbles:!0,detail:{userNameEmail:this.userNameEmail,userPassword:this.userPassword}}),window.dispatchEvent(this.updateLoginCredentialsEvent))}render(){let o=e("span",{class:"InputIcon"},this.isPasswordVisible&&e("svg",{onClick:()=>this.togglePassword(),class:"TogglePasswordVisibility",part:"TogglePasswordVisibility",xmlns:"http://www.w3.org/2000/svg",width:"18.844",height:"12.887",viewBox:"0 0 18.844 12.887"},e("g",{transform:"translate(-110.856 -23.242)"},e("circle",{class:"PasswordVisibilityIcon",cx:"0.05",cy:"0.05",r:"0.05",transform:"translate(121.017 31.148)"}),e("g",{transform:"translate(117.499 27.37)"},e("path",{class:"PasswordVisibilityIcon",d:"M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z",transform:"translate(-142.164 -39.123)"}),e("path",{class:"PasswordVisibilityIcon",d:"M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z",transform:"translate(-136.413 -42.068)"})),e("g",{transform:"translate(110.856 24.899)"},e("path",{class:"PasswordVisibilityIcon",d:"M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z",transform:"translate(-110.856 -33.157)"}),e("path",{class:"PasswordVisibilityIcon",d:"M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z",transform:"translate(-130.743 -29.617)"})),e("rect",{class:"PasswordVisibilityIcon",width:"0.972",height:"15.861",rx:"0.486",transform:"translate(114.827 23.858) rotate(-39.315)"}))),!this.isPasswordVisible&&e("svg",{onClick:()=>this.togglePassword(),class:"TogglePasswordVisibility PasswordVisible",part:"TogglePasswordVisibility",xmlns:"http://www.w3.org/2000/svg",width:"18.843",height:"10.5",viewBox:"0 0 18.843 10.5"},e("g",{transform:"translate(-14.185 -27.832)"},e("path",{class:"PasswordVisibilityIcon",d:"M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z",transform:"translate(0)"}),e("circle",{class:"PasswordVisibilityIcon",cx:"2.779",cy:"2.779",r:"2.779",transform:"translate(20.827 30.303)"})))),i=e("div",{class:"FormBox"},e("div",{class:"FormValue"},e("div",{class:!this.isValidUserEmail||this.hasError?"InputBox InputInvalidBox":"InputBox"},e("input",{type:"text",placeholder:"",value:this.userNameEmail,onFocus:o=>this.handleInputChange(o,"user"),onInput:o=>this.handleInputChange(o,"user"),required:!0}),e("label",{class:(this.userNameEmail?"FieldFilledIn":"")+" "+(!this.isValidUserEmail||this.hasError?"FieldInvalid":"")},t("userEmail",this.lang)),!this.isValidUserEmail&&e("p",{class:"InvalidField"},t("invalidField",this.lang))),e("div",{class:!this.isValidPassword||this.hasError?"InputBox InputInvalidBox":"InputBox"},o,e("input",{type:this.isPasswordVisible?"text":"password",placeholder:"",value:this.userPassword,onFocus:o=>this.handleInputChange(o,"password"),onInput:o=>this.handleInputChange(o,"password"),required:!0}),e("label",{class:(this.userPassword?"FieldFilledIn":"")+" "+(!this.isValidPassword||this.hasError?"FieldInvalid":"")},t("password",this.lang)),!this.isValidPassword&&e("p",{class:"InvalidField"},t("invalidField",this.lang))),"true"==this.passwordReset&&e("div",{class:"ForgotPassword"},e("button",{onClick:()=>this.resetPassword()},t("forgotPassword",this.lang))),e("button",{disabled:!(this.isValidUserEmail&&this.isValidPassword&&this.userNameEmail&&this.userPassword),class:"SubmitCredentials",onClick:()=>this.handleLogin()},t("login",this.lang)),this.hasError&&e("p",{class:"CredentialsError"},this.errorMessage)));return e("section",{ref:o=>this.stylingContainer=o},i)}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};a.style=':host{display:block;font-family:"Roboto", sans-serif}section{height:100%;width:100%;background-position:center;background-size:cover}.FormValue{width:100%}.FormBox{height:100%;display:flex;position:relative;background:none;border:none;justify-content:center;align-items:center}.InputBox{position:relative;margin:30px 0;width:100%;border-bottom:2px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #22B04E))}.InputBox.InputInvalidBox .PasswordVisibilityIcon{fill:var(--emfw-w-color-error, var(--emfe-w-color-red, #FD2839))}.InputBox.InputInvalidBox input{color:var(--emfw-w-color-error, var(--emfe-w-color-red, #FD2839))}.InputBox.InputInvalidBox::after{content:"";height:2px;width:100%;transition:width 0.6s linear;background:var(--emfw-w-color-error, var(--emfe-w-color-red, #FD2839))}.InputBox::after{content:"";display:block;width:0;height:2px;position:relative;top:2px}.InputBox .PasswordVisibilityIcon{fill:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #22B04E))}.InputBox .InputIcon .TogglePasswordVisibility{cursor:pointer;position:absolute;top:18px;right:0}.InputBox .InputIcon .TogglePasswordVisibility.PasswordVisible{top:19.5px}.InputBox label{position:absolute;top:50%;left:5px;transform:translateY(-50%);color:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #22B04E));font-size:1em;pointer-events:none;transition:0.5s}.InputBox label.FieldInvalid{color:#C23135}.InputBox input{width:100%;height:50px;background:transparent;border:none;outline:none;font-size:1em;padding:0 35px 0 5px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-typography, #FFFFFF));box-sizing:border-box}input:focus~label,label.FieldFilledIn{top:-3px;font-size:0.7em}.ForgotPassword button{margin:-10px 0 17px;font-size:0.9em;color:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #22B04E));display:flex;justify-content:space-between;background-color:transparent;padding:0;height:unset;border:0;cursor:pointer}.SubmitCredentials{display:block;margin:0 auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SubmitCredentials:disabled{background:#707070}.Register{font-size:0.9em;color:var(--emfe-w-registration-typography, var(--emfe-w-color-typography, #FFFFFF));text-align:center;margin:25px 0 10px}.Register p a{text-decoration:none;font-weight:600}.Register p a:hover{text-decoration:underline}.InvalidField{position:absolute;top:45px;color:var(--emfw-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:0.7em}.SubmitCredentials{margin-bottom:20px}.CredentialsError{color:var(--emfw-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:0.7em;padding:0 0 20px 0;margin:0}.CredentialsError input{color:var(--emfw-w-color-error, var(--emfe-w-color-red, #FD2839))}@media screen and (max-width: 480px){.FormBox{width:100%;border-radius:0px}}';export{a as user_login}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as s,b as e}from"./p-55726395.js";(()=>{const e=import.meta.url,r={};return""!==e&&(r.resourcesUrl=new URL(".",e).href),s(r)})().then((s=>e([["p-
|
|
1
|
+
import{p as s,b as e}from"./p-55726395.js";(()=>{const e=import.meta.url,r={};return""!==e&&(r.resourcesUrl=new URL(".",e).href),s(r)})().then((s=>e([["p-12204d5f",[[1,"user-login",{endpoint:[513],lang:[1537],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],passwordReset:[513,"password-reset"],userEmailRegex:[513,"user-email-regex"],userEmailRegexOptions:[513,"user-email-regex-options"],passwordRegex:[513,"password-regex"],passwordRegexOptions:[513,"password-regex-options"],userNameEmail:[32],userPassword:[32],isValidUserEmail:[32],isValidPassword:[32],isPasswordVisible:[32],limitStylingAppends:[32],errorMessage:[32],hasError:[32]}]]]],s)));
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,h as o}from"./p-55726395.js";const s=["ro","en","cz","de","hr"],e={en:{invalidField:"This field is invalid",forgotPassword:"Forgot Password",userEmail:"Username or Email",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked"},ro:{invalidField:"This field is invalid",forgotPassword:"Forgot Password",userEmail:"Username or Email",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked"},hr:{invalidField:"Ovo polje je nevažeće",forgotPassword:"Zaboravljena lozinka",userEmail:"Korisničko ime ili email",password:"Lozinka",login:"Prijava",genericError:"Došlo je do neočekivane pogreške",successMessage:"Prijava uspješna",Forbidden_UserAccount_Blocked:"Vaš račun je blokiran"},fr:{invalidField:"This field is invalid",forgotPassword:"Forgot Password",userEmail:"Username or Email",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked"},cs:{invalidField:"Ovo polje je nevažeće.",forgotPassword:"Zaboravio sam lozinku ",userEmail:"Korisničko ime ili email",password:"Lozinka",login:"Prijava",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked"},de:{invalidField:"This field is invalid",forgotPassword:"Forgot Password",userEmail:"Username or Email",password:"Password",login:"Login",genericError:"An unexpected error has occured",successMessage:"Login successful",Forbidden_UserAccount_Blocked:"Player account blocked"},"pt-br":{invalidField:"O campo é inválido",forgotPassword:"Esqueceu sua senha",userEmail:"Usuário ou e-mail",Password:"Senha",login:"Entrem",genericError:"Ocorreu um erro inesperado",successMessage:"Você fez login com sucesso",Forbidden_UserAccount_Blocked:"Player account blocked"},"es-mx":{invalidField:"El campo es inválido",forgotPassword:"Olvidó contraseña",userEmail:"Usuario o Correo Electrónico",Password:"Contraseña",login:"Entrar",genericError:"Ha ocurrido un error inesperado",successMessage:"Ha ingreasado de forma exitosa",Forbidden_UserAccount_Blocked:"Player account blocked"}},r=i=>new Promise((o=>{fetch(i).then((i=>i.json())).then((i=>{Object.keys(i).forEach((o=>{for(let s in i[o])e[o][s]=i[o][s]})),o(!0)}))})),t=(i,o,r)=>{const t=o;let a=e[void 0!==t&&s.includes(t)?t:"en"][i];if(void 0!==r)for(const[i,o]of Object.entries(r.values)){const s=new RegExp(`{${i}}`,"g");a=a.replace(s,o)}return a},a=class{constructor(o){i(this,o),this.endpoint="",this.lang="en",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.passwordReset="false",this.userEmailRegexOptions="i",this.passwordRegexOptions="",this.userNameEmail="",this.userPassword="",this.isValidUserEmail=!0,this.isValidPassword=!0,this.isPasswordVisible=!1,this.limitStylingAppends=!1,this.errorMessage="",this.hasError=!1,this.errorCode="",this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.appendChild(i)},this.setClientStylingURL=()=>{let i=new URL(this.clientStylingUrl),o=document.createElement("style");fetch(i.href).then((i=>i.text())).then((i=>{o.innerHTML=i,setTimeout((()=>{this.stylingContainer.appendChild(o)}),1)}))},this.autofillCredentialsHandler=i=>{this.userNameEmail=i.detail.userNameEmail,this.userPassword=i.detail.userPassword,this.handleLogin()},this.userLogin=async({username:i,password:o})=>{let s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i,password:o})};fetch(`${this.endpoint}/v1/player/legislation/login`,s).then((i=>i.json())).then((i=>{var o,s,e;(null===(o=i.sessionBlockers)||void 0===o?void 0:o.includes("has-to-set-consents"))&&window.postMessage({type:"PlayerActions",gmversion:"gm16"},window.location.href),!0===(null==i?void 0:i.hasToSetPass)&&window.postMessage({type:"HasToSetPass"},window.location.href),i.sessionId?(window.postMessage({type:"UserSessionID",session:i.sessionId,userid:i.userId},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:t("successMessage",this.lang)}},window.location.href),this.hasError=!1):(this.hasError=!0,this.errorCode=null===(s=null==i?void 0:i.thirdPartyResponse)||void 0===s?void 0:s.errorCode,this.errorMessage=t(`${this.errorCode}`,this.lang)||(null===(e=null==i?void 0:i.thirdPartyResponse)||void 0===e?void 0:e.message)||t("genericError",this.lang),this.errorMessage&&(console.error(this.errorMessage),this.sendErrorNotification(this.errorMessage)))})).catch((i=>{console.error(i),this.hasError=!0,this.errorMessage=t("genericError",this.lang),this.sendErrorNotification(this.errorMessage)}))},this.debouncedUserLogin=this.debounce(this.userLogin,850),this.handleLogin=()=>{this.debouncedUserLogin({username:this.userNameEmail,password:this.userPassword}),this.dispatchUpdateLoginCredentialsEvent()},this.handleInputChange=(i,o)=>{this.hasError=!1;const s=i.target.value;"user"===o?(this.userNameEmail=s,this.isValidUserEmail=this.userEmailValidation(this.userNameEmail)):(this.userPassword=s,this.isValidPassword=this.passwordValidation(s))},this.userEmailValidation=i=>new RegExp(this.userEmailRegex,this.userEmailRegexOptions).test(i),this.passwordValidation=i=>new RegExp(this.passwordRegex,this.passwordRegexOptions).test(i),this.togglePassword=()=>{this.isPasswordVisible=!this.isPasswordVisible},this.resetPassword=()=>{window.postMessage({type:"NavForgotPassword"},window.location.href)}}handleNewTranslations(){r(this.translationUrl)}async componentWillLoad(){this.translationUrl.length>2&&await r(this.translationUrl)}componentDidLoad(){window.addEventListener("LoginCredentials",this.autofillCredentialsHandler),window.postMessage({type:"UserLoginDidLoad"})}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}disconnectedCallback(){window.removeEventListener("LoginCredentials",this.autofillCredentialsHandler)}sendErrorNotification(i){window.postMessage({type:"HasError",error:i},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i}},window.location.href)}debounce(i,o){let s;return function(...e){clearTimeout(s),s=setTimeout((()=>{i.apply(this,e)}),o)}}dispatchUpdateLoginCredentialsEvent(){this.hasError||(this.updateLoginCredentialsEvent=new CustomEvent("UpdateLoginCredentials",{bubbles:!0,detail:{userNameEmail:this.userNameEmail,userPassword:this.userPassword}}),window.dispatchEvent(this.updateLoginCredentialsEvent))}render(){let i=o("span",{class:"InputIcon"},this.isPasswordVisible&&o("svg",{onClick:()=>this.togglePassword(),class:"TogglePasswordVisibility",part:"TogglePasswordVisibility",xmlns:"http://www.w3.org/2000/svg",width:"18.844",height:"12.887",viewBox:"0 0 18.844 12.887"},o("g",{transform:"translate(-110.856 -23.242)"},o("circle",{class:"PasswordVisibilityIcon",cx:"0.05",cy:"0.05",r:"0.05",transform:"translate(121.017 31.148)"}),o("g",{transform:"translate(117.499 27.37)"},o("path",{class:"PasswordVisibilityIcon",d:"M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z",transform:"translate(-142.164 -39.123)"}),o("path",{class:"PasswordVisibilityIcon",d:"M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z",transform:"translate(-136.413 -42.068)"})),o("g",{transform:"translate(110.856 24.899)"},o("path",{class:"PasswordVisibilityIcon",d:"M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z",transform:"translate(-110.856 -33.157)"}),o("path",{class:"PasswordVisibilityIcon",d:"M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z",transform:"translate(-130.743 -29.617)"})),o("rect",{class:"PasswordVisibilityIcon",width:"0.972",height:"15.861",rx:"0.486",transform:"translate(114.827 23.858) rotate(-39.315)"}))),!this.isPasswordVisible&&o("svg",{onClick:()=>this.togglePassword(),class:"TogglePasswordVisibility PasswordVisible",part:"TogglePasswordVisibility",xmlns:"http://www.w3.org/2000/svg",width:"18.843",height:"10.5",viewBox:"0 0 18.843 10.5"},o("g",{transform:"translate(-14.185 -27.832)"},o("path",{class:"PasswordVisibilityIcon",d:"M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z",transform:"translate(0)"}),o("circle",{class:"PasswordVisibilityIcon",cx:"2.779",cy:"2.779",r:"2.779",transform:"translate(20.827 30.303)"})))),s=o("div",{class:"FormBox"},o("div",{class:"FormValue"},o("div",{class:!this.isValidUserEmail||this.hasError?"InputBox InputInvalidBox":"InputBox"},o("input",{type:"text",placeholder:"",value:this.userNameEmail,onFocus:i=>this.handleInputChange(i,"user"),onInput:i=>this.handleInputChange(i,"user"),required:!0}),o("label",{class:(this.userNameEmail?"FieldFilledIn":"")+" "+(!this.isValidUserEmail||this.hasError?"FieldInvalid":"")},t("userEmail",this.lang)),!this.isValidUserEmail&&o("p",{class:"InvalidField"},t("invalidField",this.lang))),o("div",{class:!this.isValidPassword||this.hasError?"InputBox InputInvalidBox":"InputBox"},i,o("input",{type:this.isPasswordVisible?"text":"password",placeholder:"",value:this.userPassword,onFocus:i=>this.handleInputChange(i,"password"),onInput:i=>this.handleInputChange(i,"password"),required:!0}),o("label",{class:(this.userPassword?"FieldFilledIn":"")+" "+(!this.isValidPassword||this.hasError?"FieldInvalid":"")},t("password",this.lang)),!this.isValidPassword&&o("p",{class:"InvalidField"},t("invalidField",this.lang))),"true"==this.passwordReset&&o("div",{class:"ForgotPassword"},o("button",{onClick:()=>this.resetPassword()},t("forgotPassword",this.lang))),o("button",{disabled:!(this.isValidUserEmail&&this.isValidPassword&&this.userNameEmail&&this.userPassword),class:"SubmitCredentials",onClick:()=>this.handleLogin()},t("login",this.lang)),this.hasError&&o("p",{class:"CredentialsError"},this.errorMessage)));return o("section",{ref:i=>this.stylingContainer=i},s)}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};a.style=':host{display:block;font-family:"Roboto", sans-serif}section{height:100%;width:100%;background-position:center;background-size:cover}.FormValue{width:100%}.FormBox{height:100%;display:flex;position:relative;background:none;border:none;justify-content:center;align-items:center}.InputBox{position:relative;margin:30px 0;width:100%;border-bottom:2px solid var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #22B04E))}.InputBox.InputInvalidBox .PasswordVisibilityIcon{fill:var(--emfw-w-color-error, var(--emfe-w-color-red, #FD2839))}.InputBox.InputInvalidBox input{color:var(--emfw-w-color-error, var(--emfe-w-color-red, #FD2839))}.InputBox.InputInvalidBox::after{content:"";height:2px;width:100%;transition:width 0.6s linear;background:var(--emfw-w-color-error, var(--emfe-w-color-red, #FD2839))}.InputBox::after{content:"";display:block;width:0;height:2px;position:relative;top:2px}.InputBox .PasswordVisibilityIcon{fill:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #22B04E))}.InputBox .InputIcon .TogglePasswordVisibility{cursor:pointer;position:absolute;top:18px;right:0}.InputBox .InputIcon .TogglePasswordVisibility.PasswordVisible{top:19.5px}.InputBox label{position:absolute;top:50%;left:5px;transform:translateY(-50%);color:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #22B04E));font-size:1em;pointer-events:none;transition:0.5s}.InputBox label.FieldInvalid{color:#C23135}.InputBox input{width:100%;height:50px;background:transparent;border:none;outline:none;font-size:1em;padding:0 35px 0 5px;color:var(--emfe-w-registration-typography, var(--emfe-w-color-typography, #FFFFFF));box-sizing:border-box}input:focus~label,label.FieldFilledIn{top:-3px;font-size:0.7em}.ForgotPassword button{margin:-10px 0 17px;font-size:0.9em;color:var(--emfe-w-registration-color-primary, var(--emfe-w-color-primary, #22B04E));display:flex;justify-content:space-between;background-color:transparent;padding:0;height:unset;border:0;cursor:pointer}.SubmitCredentials{display:block;margin:0 auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SubmitCredentials:disabled{background:#707070}.Register{font-size:0.9em;color:var(--emfe-w-registration-typography, var(--emfe-w-color-typography, #FFFFFF));text-align:center;margin:25px 0 10px}.Register p a{text-decoration:none;font-weight:600}.Register p a:hover{text-decoration:underline}.InvalidField{position:absolute;top:45px;color:var(--emfw-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:0.7em}.SubmitCredentials{margin-bottom:20px}.CredentialsError{color:var(--emfw-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:0.7em;padding:0 0 20px 0;margin:0}.CredentialsError input{color:var(--emfw-w-color-error, var(--emfe-w-color-red, #FD2839))}@media screen and (max-width: 480px){.FormBox{width:100%;border-radius:0px}}';export{a as user_login}
|