@everymatrix/user-login 1.56.0 → 1.56.3
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/{index-a6009b28.js → index-2eb404c0.js} +71 -208
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/user-login.cjs.entry.js +246 -346
- package/dist/cjs/user-login.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/user-login/user-login.js +40 -127
- package/dist/collection/utils/locale.utils.js +156 -144
- package/dist/esm/{index-19313d5e.js → index-996f8854.js} +71 -208
- package/dist/esm/loader.js +2 -2
- package/dist/esm/user-login.entry.js +246 -346
- package/dist/esm/user-login.js +3 -3
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/user-login/user-login.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/dist/user-login/p-8cb697c3.js +2 -0
- package/dist/user-login/{p-49fced52.entry.js → p-ae8e5f4e.entry.js} +130 -132
- package/dist/user-login/user-login.esm.js +1 -1
- package/package.json +1 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.dev.d.ts +0 -2
- package/dist/user-login/p-614af01b.js +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$2 } from './index-
|
|
1
|
+
import { r as registerInstance, h as h$2 } from './index-996f8854.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const TRANSLATIONS = {
|
|
5
|
-
en: {
|
|
6
|
-
invalidField:
|
|
7
|
-
forgotPassword:
|
|
8
|
-
userEmail:
|
|
9
|
-
userPhone:
|
|
10
|
-
userPrefix:
|
|
11
|
-
password:
|
|
12
|
-
login:
|
|
13
|
-
genericError:
|
|
14
|
-
successMessage:
|
|
15
|
-
Forbidden_UserAccount_Blocked:
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
"en": {
|
|
6
|
+
"invalidField": "This field is invalid",
|
|
7
|
+
"forgotPassword": "Forgot Password",
|
|
8
|
+
"userEmail": "Username or Email",
|
|
9
|
+
"userPhone": "Phone number",
|
|
10
|
+
"userPrefix": "Phone prefix",
|
|
11
|
+
"password": "Password",
|
|
12
|
+
"login": "Login",
|
|
13
|
+
"genericError": "An unexpected error has occured",
|
|
14
|
+
"successMessage": "Login successful",
|
|
15
|
+
"Forbidden_UserAccount_Blocked": "Player account blocked",
|
|
16
|
+
"setUpPassowrd": "You need to reset your password",
|
|
17
|
+
"Unauthorized": "The player account number, e-mail address or password is incorrect",
|
|
18
|
+
"CountryRestricted": "Registration is not possible from a restricted jurisdiction. If you encounter further issues, please contact support."
|
|
18
19
|
},
|
|
19
|
-
tr: {
|
|
20
|
+
"tr": {
|
|
20
21
|
"invalidField": "Bu alan geçersiz",
|
|
21
22
|
"forgotPassword": "Şifremi Unuttum",
|
|
22
23
|
"userEmail": "Kullanıcı Adı veya E-posta",
|
|
@@ -27,148 +28,159 @@ const TRANSLATIONS = {
|
|
|
27
28
|
"genericError": "Beklenmeyen bir hata oluştu",
|
|
28
29
|
"successMessage": "Giriş başarılı",
|
|
29
30
|
"Forbidden_UserAccount_Blocked": "Oyuncu hesabı engellendi",
|
|
31
|
+
"setUpPassowrd": "Şifrenizi sıfırlamanız gerekiyor",
|
|
30
32
|
"Unauthorized": "Oyuncu hesap numarası, e-posta adresi veya şifre hatalı",
|
|
31
33
|
"CountryRestricted": "Kısıtlı bir yargı bölgesinden kayıt yapılamaz. Daha fazla sorunla karşılaşırsanız, lütfen destek ile iletişime geçin."
|
|
32
34
|
},
|
|
33
|
-
|
|
34
|
-
invalidField:
|
|
35
|
-
forgotPassword:
|
|
36
|
-
userEmail:
|
|
37
|
-
userPhone:
|
|
38
|
-
userPrefix:
|
|
39
|
-
password:
|
|
40
|
-
login:
|
|
41
|
-
genericError:
|
|
42
|
-
successMessage:
|
|
43
|
-
Forbidden_UserAccount_Blocked:
|
|
44
|
-
|
|
45
|
-
|
|
35
|
+
"en-us": {
|
|
36
|
+
"invalidField": "This field is invalid",
|
|
37
|
+
"forgotPassword": "Forgot Password",
|
|
38
|
+
"userEmail": "Username or Email",
|
|
39
|
+
"userPhone": "Phone number",
|
|
40
|
+
"userPrefix": "Phone prefix",
|
|
41
|
+
"password": "Password",
|
|
42
|
+
"login": "Login",
|
|
43
|
+
"genericError": "An unexpected error has occured",
|
|
44
|
+
"successMessage": "Login successful",
|
|
45
|
+
"Forbidden_UserAccount_Blocked": "Player account blocked",
|
|
46
|
+
"setUpPassowrd": "You need to reset your password",
|
|
47
|
+
"Unauthorized": "The player account number, e-mail address or password is incorrect",
|
|
48
|
+
"CountryRestricted": "Registration is not possible from a restricted jurisdiction. If you encounter further issues, please contact support."
|
|
46
49
|
},
|
|
47
|
-
ro: {
|
|
48
|
-
invalidField: "Acest câmp este invalid",
|
|
49
|
-
forgotPassword: "Ați uitat parola",
|
|
50
|
-
userEmail: "Nume utilizator sau email",
|
|
51
|
-
userPhone: "Număr de telefon",
|
|
52
|
-
userPrefix: "Prefix telefon",
|
|
53
|
-
password: "Parolă",
|
|
54
|
-
login: "Autentificare",
|
|
55
|
-
genericError: "A apărut o eroare neașteptată",
|
|
56
|
-
successMessage: "Autentificare reușită",
|
|
57
|
-
Forbidden_UserAccount_Blocked: "Contul de jucător este blocat",
|
|
58
|
-
|
|
59
|
-
|
|
50
|
+
"ro": {
|
|
51
|
+
"invalidField": "Acest câmp este invalid",
|
|
52
|
+
"forgotPassword": "Ați uitat parola",
|
|
53
|
+
"userEmail": "Nume utilizator sau email",
|
|
54
|
+
"userPhone": "Număr de telefon",
|
|
55
|
+
"userPrefix": "Prefix telefon",
|
|
56
|
+
"password": "Parolă",
|
|
57
|
+
"login": "Autentificare",
|
|
58
|
+
"genericError": "A apărut o eroare neașteptată",
|
|
59
|
+
"successMessage": "Autentificare reușită",
|
|
60
|
+
"Forbidden_UserAccount_Blocked": "Contul de jucător este blocat",
|
|
61
|
+
"setUpPassowrd": "Trebuie să vă resetați parola",
|
|
62
|
+
"Unauthorized": "Numărul contului de jucător, adresa de e-mail sau parola sunt incorecte",
|
|
63
|
+
"CountryRestricted": "Înregistrarea nu este posibilă dintr-o jurisdicție restricționată. Dacă întâmpinați alte probleme, vă rugăm să contactați asistența."
|
|
60
64
|
},
|
|
61
|
-
hr: {
|
|
62
|
-
invalidField:
|
|
63
|
-
forgotPassword:
|
|
64
|
-
userEmail:
|
|
65
|
-
userPhone:
|
|
66
|
-
userPrefix:
|
|
67
|
-
password:
|
|
68
|
-
login:
|
|
69
|
-
genericError:
|
|
70
|
-
successMessage:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
"hr": {
|
|
66
|
+
"invalidField": "Ovo polje je nevažeće",
|
|
67
|
+
"forgotPassword": "Zaboravljena lozinka",
|
|
68
|
+
"userEmail": "Korisničko ime ili email",
|
|
69
|
+
"userPhone": "Broj telefona",
|
|
70
|
+
"userPrefix": "Telefonski prefix",
|
|
71
|
+
"password": "Lozinka",
|
|
72
|
+
"login": "Prijava",
|
|
73
|
+
"genericError": "Došlo je do neočekivane pogreške",
|
|
74
|
+
"successMessage": "Prijava uspješna",
|
|
75
|
+
"setUpPassowrd": "Morate resetirati svoju lozinku",
|
|
76
|
+
"Forbidden_UserAccount_Blocked": "Vaš račun je blokiran",
|
|
77
|
+
"Unauthorized": "Lozinka, e-mail adresa ili korisničko ime su pogrešno uneseni",
|
|
78
|
+
"CountryRestricted": "Prijava nije moguća iz zemlje ograničene jurisdikcije. U slučaju daljnjih poteškoća, molimo kontaktirajte podršku."
|
|
74
79
|
},
|
|
75
|
-
fr: {
|
|
76
|
-
invalidField: "Ce champ est invalide",
|
|
77
|
-
forgotPassword: "Mot de passe oublié",
|
|
78
|
-
userEmail: "Nom d'utilisateur ou email",
|
|
79
|
-
userPhone: "Numéro de téléphone",
|
|
80
|
-
userPrefix: "Préfixe téléphonique",
|
|
81
|
-
password: "Mot de passe",
|
|
82
|
-
login: "Connexion",
|
|
83
|
-
genericError: "Une erreur inattendue est survenue",
|
|
84
|
-
successMessage: "Connexion réussie",
|
|
85
|
-
Forbidden_UserAccount_Blocked: "Compte joueur bloqué",
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
"fr": {
|
|
81
|
+
"invalidField": "Ce champ est invalide",
|
|
82
|
+
"forgotPassword": "Mot de passe oublié",
|
|
83
|
+
"userEmail": "Nom d'utilisateur ou email",
|
|
84
|
+
"userPhone": "Numéro de téléphone",
|
|
85
|
+
"userPrefix": "Préfixe téléphonique",
|
|
86
|
+
"password": "Mot de passe",
|
|
87
|
+
"login": "Connexion",
|
|
88
|
+
"genericError": "Une erreur inattendue est survenue",
|
|
89
|
+
"successMessage": "Connexion réussie",
|
|
90
|
+
"Forbidden_UserAccount_Blocked": "Compte joueur bloqué",
|
|
91
|
+
"setUpPassowrd": "Vous devez réinitialiser votre mot de passe",
|
|
92
|
+
"Unauthorized": "Le numéro de compte joueur, l'adresse e-mail ou le mot de passe est incorrect",
|
|
93
|
+
"CountryRestricted": "L'inscription n'est pas possible depuis une juridiction restreinte. Si vous rencontrez d'autres problèmes, veuillez contacter le support."
|
|
88
94
|
},
|
|
89
|
-
cs: {
|
|
90
|
-
invalidField:
|
|
91
|
-
forgotPassword:
|
|
92
|
-
userEmail:
|
|
93
|
-
userPhone:
|
|
94
|
-
userPrefix:
|
|
95
|
-
password:
|
|
96
|
-
login:
|
|
97
|
-
genericError:
|
|
98
|
-
successMessage:
|
|
99
|
-
Forbidden_UserAccount_Blocked:
|
|
100
|
-
|
|
101
|
-
|
|
95
|
+
"cs": {
|
|
96
|
+
"invalidField": "Ovo polje je nevažeće.",
|
|
97
|
+
"forgotPassword": "Zaboravio sam lozinku ",
|
|
98
|
+
"userEmail": "Korisničko ime ili email",
|
|
99
|
+
"userPhone": "Telefonní číslo",
|
|
100
|
+
"userPrefix": "Telefonní předvolba",
|
|
101
|
+
"password": "Lozinka",
|
|
102
|
+
"login": "Prijava",
|
|
103
|
+
"genericError": "An unexpected error has occured",
|
|
104
|
+
"successMessage": "Login successful",
|
|
105
|
+
"Forbidden_UserAccount_Blocked": "Player account blocked",
|
|
106
|
+
"setUpPassowrd": "Musíte resetovat své heslo",
|
|
107
|
+
"Unauthorized": "Číslo účtu hráče, e-mailová adresa nebo heslo je nesprávné",
|
|
108
|
+
"CountryRestricted": "Registrace není možná z omezené jurisdikce. Pokud narazíte na další potíže, kontaktujte prosím podporu."
|
|
102
109
|
},
|
|
103
|
-
de: {
|
|
104
|
-
invalidField: "Dieses Feld ist ungültig",
|
|
105
|
-
forgotPassword: "Passwort vergessen",
|
|
106
|
-
userEmail: "Benutzername oder E-Mail",
|
|
107
|
-
userPhone: "Telefonnummer",
|
|
108
|
-
userPrefix: "Telefonvorwahl",
|
|
109
|
-
password: "Passwort",
|
|
110
|
-
login: "Anmelden",
|
|
111
|
-
genericError: "Ein unerwarteter Fehler ist aufgetreten",
|
|
112
|
-
successMessage: "Erfolgreich angemeldet",
|
|
113
|
-
Forbidden_UserAccount_Blocked: "Spielerkonto gesperrt",
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
"de": {
|
|
111
|
+
"invalidField": "Dieses Feld ist ungültig",
|
|
112
|
+
"forgotPassword": "Passwort vergessen",
|
|
113
|
+
"userEmail": "Benutzername oder E-Mail",
|
|
114
|
+
"userPhone": "Telefonnummer",
|
|
115
|
+
"userPrefix": "Telefonvorwahl",
|
|
116
|
+
"password": "Passwort",
|
|
117
|
+
"login": "Anmelden",
|
|
118
|
+
"genericError": "Ein unerwarteter Fehler ist aufgetreten",
|
|
119
|
+
"successMessage": "Erfolgreich angemeldet",
|
|
120
|
+
"Forbidden_UserAccount_Blocked": "Spielerkonto gesperrt",
|
|
121
|
+
"setUpPassowrd": "Sie müssen Ihr Passwort zurücksetzen",
|
|
122
|
+
"Unauthorized": "Die Spieler-Kontonummer, E-Mail-Adresse oder das Passwort ist falsch",
|
|
123
|
+
"CountryRestricted": "Eine Registrierung ist aus einer eingeschränkten Gerichtsbarkeit nicht möglich. Wenn Sie weitere Probleme haben, wenden Sie sich bitte an den Support."
|
|
116
124
|
},
|
|
117
|
-
|
|
118
|
-
invalidField: "Este campo é inválido",
|
|
119
|
-
forgotPassword: "Esqueceu a senha",
|
|
120
|
-
userEmail: "Nome de usuário ou e-mail",
|
|
121
|
-
userPhone: "Número de telefone",
|
|
122
|
-
userPrefix: "Prefixo de telefone",
|
|
123
|
-
password: "Senha",
|
|
124
|
-
login: "Login",
|
|
125
|
-
genericError: "Ocorreu um erro inesperado",
|
|
126
|
-
successMessage: "Login bem-sucedido",
|
|
127
|
-
Forbidden_UserAccount_Blocked: "Conta de jogador bloqueada",
|
|
128
|
-
|
|
129
|
-
|
|
125
|
+
"pt-br": {
|
|
126
|
+
"invalidField": "Este campo é inválido",
|
|
127
|
+
"forgotPassword": "Esqueceu a senha",
|
|
128
|
+
"userEmail": "Nome de usuário ou e-mail",
|
|
129
|
+
"userPhone": "Número de telefone",
|
|
130
|
+
"userPrefix": "Prefixo de telefone",
|
|
131
|
+
"password": "Senha",
|
|
132
|
+
"login": "Login",
|
|
133
|
+
"genericError": "Ocorreu um erro inesperado",
|
|
134
|
+
"successMessage": "Login bem-sucedido",
|
|
135
|
+
"Forbidden_UserAccount_Blocked": "Conta de jogador bloqueada",
|
|
136
|
+
"setUpPassowrd": "Você precisa redefinir sua senha",
|
|
137
|
+
"Unauthorized": "O número da conta de jogador, o endereço de e-mail ou a senha estão incorretos",
|
|
138
|
+
"CountryRestricted": "O registro não é possível a partir de uma jurisdição restrita. Caso encontre outros problemas, entre em contato com o suporte."
|
|
130
139
|
},
|
|
131
|
-
|
|
132
|
-
invalidField: "Este campo es inválido",
|
|
133
|
-
forgotPassword: "Olvidé la contraseña",
|
|
134
|
-
userEmail: "Nombre de usuario o correo electrónico",
|
|
135
|
-
userPhone: "Número de teléfono",
|
|
136
|
-
userPrefix: "Prefijo telefónico",
|
|
137
|
-
password: "Contraseña",
|
|
138
|
-
login: "Iniciar sesión",
|
|
139
|
-
genericError: "Ocurrió un error inesperado",
|
|
140
|
-
successMessage: "Inicio de sesión exitoso",
|
|
141
|
-
Forbidden_UserAccount_Blocked: "Cuenta de jugador bloqueada",
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
"es-mx": {
|
|
141
|
+
"invalidField": "Este campo es inválido",
|
|
142
|
+
"forgotPassword": "Olvidé la contraseña",
|
|
143
|
+
"userEmail": "Nombre de usuario o correo electrónico",
|
|
144
|
+
"userPhone": "Número de teléfono",
|
|
145
|
+
"userPrefix": "Prefijo telefónico",
|
|
146
|
+
"password": "Contraseña",
|
|
147
|
+
"login": "Iniciar sesión",
|
|
148
|
+
"genericError": "Ocurrió un error inesperado",
|
|
149
|
+
"successMessage": "Inicio de sesión exitoso",
|
|
150
|
+
"Forbidden_UserAccount_Blocked": "Cuenta de jugador bloqueada",
|
|
151
|
+
"setUpPassowrd": "Necesitas restablecer tu contraseña",
|
|
152
|
+
"Unauthorized": "El número de cuenta de jugador, la dirección de correo electrónico o la contraseña son incorrectos",
|
|
153
|
+
"CountryRestricted": "El registro no es posible desde una jurisdicción restringida. Si encuentra más problemas, por favor contacte al soporte."
|
|
144
154
|
},
|
|
145
|
-
es: {
|
|
146
|
-
invalidField:
|
|
147
|
-
forgotPassword:
|
|
148
|
-
userEmail:
|
|
149
|
-
userPhone:
|
|
150
|
-
userPrefix:
|
|
151
|
-
password:
|
|
152
|
-
login:
|
|
153
|
-
genericError:
|
|
154
|
-
successMessage:
|
|
155
|
-
Forbidden_UserAccount_Blocked:
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
"es": {
|
|
156
|
+
"invalidField": "Este campo no es válido",
|
|
157
|
+
"forgotPassword": "Olvidé mi contraseña",
|
|
158
|
+
"userEmail": "Nombre de usuario o correo electrónico",
|
|
159
|
+
"userPhone": "Número de teléfono",
|
|
160
|
+
"userPrefix": "Prefijo de teléfono",
|
|
161
|
+
"password": "Contraseña",
|
|
162
|
+
"login": "Iniciar sesión",
|
|
163
|
+
"genericError": "Se ha producido un error inesperado",
|
|
164
|
+
"successMessage": "Inicio de sesión exitoso",
|
|
165
|
+
"Forbidden_UserAccount_Blocked": "Cuenta de jugador bloqueada",
|
|
166
|
+
"setUpPassowrd": "Necesitas restablecer tu contraseña",
|
|
167
|
+
"Unauthorized": "El número de cuenta, correo electrónico o contraseña es incorrecto",
|
|
168
|
+
"CountryRestricted": "No es posible registrarse desde una jurisdicción restringida. Si encuentra más problemas, comuníquese con el soporte."
|
|
158
169
|
},
|
|
159
|
-
pt: {
|
|
160
|
-
invalidField:
|
|
161
|
-
forgotPassword:
|
|
162
|
-
userEmail:
|
|
163
|
-
userPhone:
|
|
164
|
-
userPrefix:
|
|
165
|
-
password:
|
|
166
|
-
login:
|
|
167
|
-
genericError:
|
|
168
|
-
successMessage:
|
|
169
|
-
Forbidden_UserAccount_Blocked:
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
"pt": {
|
|
171
|
+
"invalidField": "Este campo é inválido",
|
|
172
|
+
"forgotPassword": "Esqueceu a senha",
|
|
173
|
+
"userEmail": "Nome de usuário ou email",
|
|
174
|
+
"userPhone": "Número de telefone",
|
|
175
|
+
"userPrefix": "Prefixo de telefone",
|
|
176
|
+
"password": "Senha",
|
|
177
|
+
"login": "Entrar",
|
|
178
|
+
"genericError": "Ocorreu um erro inesperado",
|
|
179
|
+
"successMessage": "Login realizado com sucesso",
|
|
180
|
+
"Forbidden_UserAccount_Blocked": "Conta de jogador bloqueada",
|
|
181
|
+
"setUpPassowrd": "Você precisa redefinir a sua senha",
|
|
182
|
+
"Unauthorized": "O número da conta, e-mail ou senha está incorreto",
|
|
183
|
+
"CountryRestricted": "Não é possível se registrar de uma jurisdição restrita. Se encontrar mais problemas, entre em contato com o suporte."
|
|
172
184
|
}
|
|
173
185
|
};
|
|
174
186
|
const getTranslations = (url) => {
|
|
@@ -263,55 +275,13 @@ function setStreamStyling(stylingContainer, domain, subscription) {
|
|
|
263
275
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
264
276
|
*/
|
|
265
277
|
|
|
266
|
-
|
|
267
|
-
window.Vaadin.featureFlags ||= {};
|
|
268
|
-
|
|
269
|
-
function dashToCamelCase$1(dash) {
|
|
270
|
-
return dash.replace(/-[a-z]/gu, (m) => m[1].toUpperCase());
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
const experimentalMap = {};
|
|
274
|
-
|
|
275
|
-
function defineCustomElement(CustomElement, version = '24.6.5') {
|
|
278
|
+
function defineCustomElement(CustomElement, version = '24.5.10') {
|
|
276
279
|
Object.defineProperty(CustomElement, 'version', {
|
|
277
280
|
get() {
|
|
278
281
|
return version;
|
|
279
282
|
},
|
|
280
283
|
});
|
|
281
284
|
|
|
282
|
-
if (CustomElement.experimental) {
|
|
283
|
-
const featureFlagKey =
|
|
284
|
-
typeof CustomElement.experimental === 'string'
|
|
285
|
-
? CustomElement.experimental
|
|
286
|
-
: `${dashToCamelCase$1(CustomElement.is.split('-').slice(1).join('-'))}Component`;
|
|
287
|
-
|
|
288
|
-
if (!window.Vaadin.featureFlags[featureFlagKey] && !experimentalMap[featureFlagKey]) {
|
|
289
|
-
// Add setter to define experimental component when it's set to true
|
|
290
|
-
experimentalMap[featureFlagKey] = new Set();
|
|
291
|
-
experimentalMap[featureFlagKey].add(CustomElement);
|
|
292
|
-
|
|
293
|
-
Object.defineProperty(window.Vaadin.featureFlags, featureFlagKey, {
|
|
294
|
-
get() {
|
|
295
|
-
return experimentalMap[featureFlagKey].size === 0;
|
|
296
|
-
},
|
|
297
|
-
set(value) {
|
|
298
|
-
if (!!value && experimentalMap[featureFlagKey].size > 0) {
|
|
299
|
-
experimentalMap[featureFlagKey].forEach((elementClass) => {
|
|
300
|
-
customElements.define(elementClass.is, elementClass);
|
|
301
|
-
});
|
|
302
|
-
experimentalMap[featureFlagKey].clear();
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
});
|
|
306
|
-
|
|
307
|
-
return;
|
|
308
|
-
} else if (experimentalMap[featureFlagKey]) {
|
|
309
|
-
// Allow to register multiple components with single flag
|
|
310
|
-
experimentalMap[featureFlagKey].add(CustomElement);
|
|
311
|
-
return;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
285
|
const defined = customElements.get(CustomElement.is);
|
|
316
286
|
if (!defined) {
|
|
317
287
|
customElements.define(CustomElement.is, CustomElement);
|
|
@@ -1208,7 +1178,7 @@ addLumoGlobalStyles('style-props', style);
|
|
|
1208
1178
|
const fontIcons = i$3`
|
|
1209
1179
|
@font-face {
|
|
1210
1180
|
font-family: 'lumo-icons';
|
|
1211
|
-
src: url(data:application/font-woff;charset=utf-8;base64,
|
|
1181
|
+
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAA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LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
1212
1182
|
format('woff');
|
|
1213
1183
|
font-weight: normal;
|
|
1214
1184
|
font-style: normal;
|
|
@@ -1238,27 +1208,25 @@ const fontIcons = i$3`
|
|
|
1238
1208
|
--lumo-icons-cog: '\\ea15';
|
|
1239
1209
|
--lumo-icons-cross: '\\ea16';
|
|
1240
1210
|
--lumo-icons-download: '\\ea17';
|
|
1241
|
-
--lumo-icons-
|
|
1242
|
-
--lumo-icons-
|
|
1243
|
-
--lumo-icons-
|
|
1244
|
-
--lumo-icons-
|
|
1245
|
-
--lumo-icons-eye: '\\ea1c';
|
|
1246
|
-
--lumo-icons-
|
|
1247
|
-
--lumo-icons-
|
|
1248
|
-
--lumo-icons-
|
|
1249
|
-
--lumo-icons-
|
|
1250
|
-
--lumo-icons-
|
|
1251
|
-
--lumo-icons-
|
|
1252
|
-
--lumo-icons-
|
|
1253
|
-
--lumo-icons-
|
|
1254
|
-
--lumo-icons-
|
|
1255
|
-
--lumo-icons-
|
|
1256
|
-
--lumo-icons-
|
|
1257
|
-
--lumo-icons-
|
|
1258
|
-
--lumo-icons-
|
|
1259
|
-
--lumo-icons-
|
|
1260
|
-
--lumo-icons-upload: '\\ea2b';
|
|
1261
|
-
--lumo-icons-user: '\\ea2c';
|
|
1211
|
+
--lumo-icons-dropdown: '\\ea18';
|
|
1212
|
+
--lumo-icons-edit: '\\ea19';
|
|
1213
|
+
--lumo-icons-error: '\\ea1a';
|
|
1214
|
+
--lumo-icons-eye: '\\ea1b';
|
|
1215
|
+
--lumo-icons-eye-disabled: '\\ea1c';
|
|
1216
|
+
--lumo-icons-menu: '\\ea1d';
|
|
1217
|
+
--lumo-icons-minus: '\\ea1e';
|
|
1218
|
+
--lumo-icons-ordered-list: '\\ea1f';
|
|
1219
|
+
--lumo-icons-phone: '\\ea20';
|
|
1220
|
+
--lumo-icons-photo: '\\ea21';
|
|
1221
|
+
--lumo-icons-play: '\\ea22';
|
|
1222
|
+
--lumo-icons-plus: '\\ea23';
|
|
1223
|
+
--lumo-icons-redo: '\\ea24';
|
|
1224
|
+
--lumo-icons-reload: '\\ea25';
|
|
1225
|
+
--lumo-icons-search: '\\ea26';
|
|
1226
|
+
--lumo-icons-undo: '\\ea27';
|
|
1227
|
+
--lumo-icons-unordered-list: '\\ea28';
|
|
1228
|
+
--lumo-icons-upload: '\\ea29';
|
|
1229
|
+
--lumo-icons-user: '\\ea2a';
|
|
1262
1230
|
}
|
|
1263
1231
|
`;
|
|
1264
1232
|
|
|
@@ -11032,7 +11000,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11032
11000
|
notify: true,
|
|
11033
11001
|
observer: '_openedChanged',
|
|
11034
11002
|
reflectToAttribute: true,
|
|
11035
|
-
sync: true,
|
|
11036
11003
|
},
|
|
11037
11004
|
|
|
11038
11005
|
/**
|
|
@@ -11041,7 +11008,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11041
11008
|
*/
|
|
11042
11009
|
owner: {
|
|
11043
11010
|
type: Object,
|
|
11044
|
-
sync: true,
|
|
11045
11011
|
},
|
|
11046
11012
|
|
|
11047
11013
|
/**
|
|
@@ -11049,7 +11015,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11049
11015
|
*/
|
|
11050
11016
|
model: {
|
|
11051
11017
|
type: Object,
|
|
11052
|
-
sync: true,
|
|
11053
11018
|
},
|
|
11054
11019
|
|
|
11055
11020
|
/**
|
|
@@ -11063,7 +11028,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11063
11028
|
*/
|
|
11064
11029
|
renderer: {
|
|
11065
11030
|
type: Object,
|
|
11066
|
-
sync: true,
|
|
11067
11031
|
},
|
|
11068
11032
|
|
|
11069
11033
|
/**
|
|
@@ -11076,7 +11040,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11076
11040
|
value: false,
|
|
11077
11041
|
reflectToAttribute: true,
|
|
11078
11042
|
observer: '_modelessChanged',
|
|
11079
|
-
sync: true,
|
|
11080
11043
|
},
|
|
11081
11044
|
|
|
11082
11045
|
/**
|
|
@@ -11088,7 +11051,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11088
11051
|
type: Boolean,
|
|
11089
11052
|
reflectToAttribute: true,
|
|
11090
11053
|
observer: '_hiddenChanged',
|
|
11091
|
-
sync: true,
|
|
11092
11054
|
},
|
|
11093
11055
|
|
|
11094
11056
|
/**
|
|
@@ -11099,7 +11061,6 @@ const OverlayMixin = (superClass) =>
|
|
|
11099
11061
|
type: Boolean,
|
|
11100
11062
|
value: false,
|
|
11101
11063
|
reflectToAttribute: true,
|
|
11102
|
-
sync: true,
|
|
11103
11064
|
},
|
|
11104
11065
|
};
|
|
11105
11066
|
}
|
|
@@ -16167,7 +16128,6 @@ const DisabledMixin = dedupingMixin(
|
|
|
16167
16128
|
value: false,
|
|
16168
16129
|
observer: '_disabledChanged',
|
|
16169
16130
|
reflectToAttribute: true,
|
|
16170
|
-
sync: true,
|
|
16171
16131
|
},
|
|
16172
16132
|
};
|
|
16173
16133
|
}
|
|
@@ -16790,8 +16750,6 @@ const InputMixin = dedupingMixin(
|
|
|
16790
16750
|
if (this.inputElement) {
|
|
16791
16751
|
this.inputElement[this._inputElementValueProperty] = value;
|
|
16792
16752
|
}
|
|
16793
|
-
|
|
16794
|
-
this._hasInputValue = value && value.length > 0;
|
|
16795
16753
|
}
|
|
16796
16754
|
|
|
16797
16755
|
/**
|
|
@@ -17995,22 +17953,6 @@ const ValidateMixin = dedupingMixin(
|
|
|
17995
17953
|
value: false,
|
|
17996
17954
|
},
|
|
17997
17955
|
|
|
17998
|
-
/**
|
|
17999
|
-
* Set to true to enable manual validation mode. This mode disables automatic
|
|
18000
|
-
* constraint validation, allowing you to control the validation process yourself.
|
|
18001
|
-
* You can still trigger constraint validation manually with the `validate()` method
|
|
18002
|
-
* or use `checkValidity()` to assess the component's validity without affecting
|
|
18003
|
-
* the invalid state. In manual validation mode, you can also manipulate
|
|
18004
|
-
* the `invalid` property directly through your application logic without conflicts
|
|
18005
|
-
* with the component's internal validation.
|
|
18006
|
-
*
|
|
18007
|
-
* @attr {boolean} manual-validation
|
|
18008
|
-
*/
|
|
18009
|
-
manualValidation: {
|
|
18010
|
-
type: Boolean,
|
|
18011
|
-
value: false,
|
|
18012
|
-
},
|
|
18013
|
-
|
|
18014
17956
|
/**
|
|
18015
17957
|
* Specifies that the user must fill in a value.
|
|
18016
17958
|
*/
|
|
@@ -18065,14 +18007,6 @@ const ValidateMixin = dedupingMixin(
|
|
|
18065
18007
|
return true;
|
|
18066
18008
|
}
|
|
18067
18009
|
|
|
18068
|
-
/** @protected */
|
|
18069
|
-
_requestValidation() {
|
|
18070
|
-
if (!this.manualValidation) {
|
|
18071
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
18072
|
-
this.validate();
|
|
18073
|
-
}
|
|
18074
|
-
}
|
|
18075
|
-
|
|
18076
18010
|
/**
|
|
18077
18011
|
* Fired whenever the field is validated.
|
|
18078
18012
|
*
|
|
@@ -18502,8 +18436,8 @@ const InputConstraintsMixin = dedupingMixin(
|
|
|
18502
18436
|
const isLastConstraintRemoved = this.__previousHasConstraints && !hasConstraints;
|
|
18503
18437
|
|
|
18504
18438
|
if ((this._hasValue || this.invalid) && hasConstraints) {
|
|
18505
|
-
this.
|
|
18506
|
-
} else if (isLastConstraintRemoved
|
|
18439
|
+
this.validate();
|
|
18440
|
+
} else if (isLastConstraintRemoved) {
|
|
18507
18441
|
this._setInvalid(false);
|
|
18508
18442
|
}
|
|
18509
18443
|
|
|
@@ -18521,7 +18455,7 @@ const InputConstraintsMixin = dedupingMixin(
|
|
|
18521
18455
|
_onChange(event) {
|
|
18522
18456
|
event.stopPropagation();
|
|
18523
18457
|
|
|
18524
|
-
this.
|
|
18458
|
+
this.validate();
|
|
18525
18459
|
|
|
18526
18460
|
this.dispatchEvent(
|
|
18527
18461
|
new CustomEvent('change', {
|
|
@@ -18664,6 +18598,30 @@ const InputControlMixin = (superclass) =>
|
|
|
18664
18598
|
}
|
|
18665
18599
|
}
|
|
18666
18600
|
|
|
18601
|
+
/**
|
|
18602
|
+
* Override an event listener inherited from `InputMixin`
|
|
18603
|
+
* to capture native `change` event and make sure that
|
|
18604
|
+
* a new one is dispatched after validation runs.
|
|
18605
|
+
* @param {Event} event
|
|
18606
|
+
* @protected
|
|
18607
|
+
* @override
|
|
18608
|
+
*/
|
|
18609
|
+
_onChange(event) {
|
|
18610
|
+
event.stopPropagation();
|
|
18611
|
+
|
|
18612
|
+
this.validate();
|
|
18613
|
+
|
|
18614
|
+
this.dispatchEvent(
|
|
18615
|
+
new CustomEvent('change', {
|
|
18616
|
+
detail: {
|
|
18617
|
+
sourceEvent: event,
|
|
18618
|
+
},
|
|
18619
|
+
bubbles: event.bubbles,
|
|
18620
|
+
cancelable: event.cancelable,
|
|
18621
|
+
}),
|
|
18622
|
+
);
|
|
18623
|
+
}
|
|
18624
|
+
|
|
18667
18625
|
/**
|
|
18668
18626
|
* Override a method from `InputMixin`.
|
|
18669
18627
|
* @param {!HTMLElement} input
|
|
@@ -20607,7 +20565,6 @@ const ComboBoxMixin = (subclass) =>
|
|
|
20607
20565
|
/**
|
|
20608
20566
|
* Override LitElement lifecycle callback to handle filter property change.
|
|
20609
20567
|
* @param {Object} props
|
|
20610
|
-
* @protected
|
|
20611
20568
|
*/
|
|
20612
20569
|
updated(props) {
|
|
20613
20570
|
super.updated(props);
|
|
@@ -21329,7 +21286,7 @@ const ComboBoxMixin = (subclass) =>
|
|
|
21329
21286
|
// Do not validate when focusout is caused by document
|
|
21330
21287
|
// losing focus, which happens on browser tab switch.
|
|
21331
21288
|
if (document.hasFocus()) {
|
|
21332
|
-
this.
|
|
21289
|
+
this.validate();
|
|
21333
21290
|
}
|
|
21334
21291
|
|
|
21335
21292
|
if (this.value !== this._lastCommittedValue) {
|
|
@@ -21877,94 +21834,6 @@ const UserLoginStyle0 = userLoginCss;
|
|
|
21877
21834
|
const UserLogin = class {
|
|
21878
21835
|
constructor(hostRef) {
|
|
21879
21836
|
registerInstance(this, hostRef);
|
|
21880
|
-
/**
|
|
21881
|
-
* API endpoint URL for login requests
|
|
21882
|
-
*/
|
|
21883
|
-
this.endpoint = '';
|
|
21884
|
-
/**
|
|
21885
|
-
* Language code for translations (default is 'en')
|
|
21886
|
-
*/
|
|
21887
|
-
this.lang = 'en';
|
|
21888
|
-
/**
|
|
21889
|
-
* Inline CSS styling provided by the client
|
|
21890
|
-
*/
|
|
21891
|
-
this.clientStyling = '';
|
|
21892
|
-
/**
|
|
21893
|
-
* URL to load additional CSS styling
|
|
21894
|
-
*/
|
|
21895
|
-
this.clientStylingUrl = '';
|
|
21896
|
-
/**
|
|
21897
|
-
* URL for fetching translations
|
|
21898
|
-
*/
|
|
21899
|
-
this.translationUrl = '';
|
|
21900
|
-
/**
|
|
21901
|
-
* Flag indicating whether the password reset feature is enabled
|
|
21902
|
-
*/
|
|
21903
|
-
this.passwordReset = 'false';
|
|
21904
|
-
/**
|
|
21905
|
-
* Regex options for user email validation
|
|
21906
|
-
*/
|
|
21907
|
-
this.userEmailRegexOptions = 'i';
|
|
21908
|
-
/**
|
|
21909
|
-
* User phone regex options
|
|
21910
|
-
*/
|
|
21911
|
-
this.userPhoneRegexOptions = '';
|
|
21912
|
-
/**
|
|
21913
|
-
* Regex options for password validation
|
|
21914
|
-
*/
|
|
21915
|
-
this.passwordRegexOptions = '';
|
|
21916
|
-
/**
|
|
21917
|
-
* Flag to determine if the component uses version 2 of the API
|
|
21918
|
-
*/
|
|
21919
|
-
this.version = 'gm16';
|
|
21920
|
-
/**
|
|
21921
|
-
* If set to true, login will be done by phone number, else by username/email
|
|
21922
|
-
*/
|
|
21923
|
-
this.loginByPhoneNumber = 'false';
|
|
21924
|
-
/**
|
|
21925
|
-
* User email or username entered in the form
|
|
21926
|
-
*/
|
|
21927
|
-
this.userNameEmail = '';
|
|
21928
|
-
/**
|
|
21929
|
-
* Password entered in the form
|
|
21930
|
-
*/
|
|
21931
|
-
this.userPassword = '';
|
|
21932
|
-
/**
|
|
21933
|
-
* Flag to indicate whether the entered email is valid
|
|
21934
|
-
*/
|
|
21935
|
-
this.isValidUserEmail = true;
|
|
21936
|
-
/**
|
|
21937
|
-
* User phone entered in the form
|
|
21938
|
-
*/
|
|
21939
|
-
this.userPhone = '';
|
|
21940
|
-
/**
|
|
21941
|
-
* User prefix entered in the form
|
|
21942
|
-
*/
|
|
21943
|
-
this.userPrefix = '';
|
|
21944
|
-
/**
|
|
21945
|
-
* Flag to indicate whether the entered password is valid
|
|
21946
|
-
*/
|
|
21947
|
-
this.isValidPassword = true;
|
|
21948
|
-
/**
|
|
21949
|
-
* Flag to indicate whether the entered phone is valid
|
|
21950
|
-
*/
|
|
21951
|
-
this.isValidUserPhone = true;
|
|
21952
|
-
/**
|
|
21953
|
-
* Toggles visibility of the password field
|
|
21954
|
-
*/
|
|
21955
|
-
this.isPasswordVisible = false;
|
|
21956
|
-
/**
|
|
21957
|
-
* Stores error message from the API
|
|
21958
|
-
*/
|
|
21959
|
-
this.errorMessage = '';
|
|
21960
|
-
/**
|
|
21961
|
-
* Indicates whether an error has occurred
|
|
21962
|
-
*/
|
|
21963
|
-
this.hasError = false;
|
|
21964
|
-
/**
|
|
21965
|
-
* Boolean for preventing user for clicking multiple times the login button
|
|
21966
|
-
*/
|
|
21967
|
-
this.isLoginLoading = false;
|
|
21968
21837
|
this.errorCode = '';
|
|
21969
21838
|
/**
|
|
21970
21839
|
* Fetch phone prefixes from the API
|
|
@@ -22098,7 +21967,11 @@ const UserLogin = class {
|
|
|
22098
21967
|
window.postMessage({ type: 'PlayerActions', gmversion: 'gm16' }, window.location.href);
|
|
22099
21968
|
}
|
|
22100
21969
|
if ((data === null || data === void 0 ? void 0 : data.hasToSetPass) === true) {
|
|
21970
|
+
this.hasError = true;
|
|
21971
|
+
this.errorMessage = translate$1(`setUpPassowrd`, this.lang);
|
|
21972
|
+
this.sendErrorNotification(translate$1(`setUpPassowrd`, this.lang));
|
|
22101
21973
|
window.postMessage({ type: 'HasToSetPass' }, window.location.href);
|
|
21974
|
+
return;
|
|
22102
21975
|
}
|
|
22103
21976
|
if (data.sessionId) {
|
|
22104
21977
|
window.postMessage({ type: 'UserSessionID', session: data.sessionId, userid: data.userId }, window.location.href);
|
|
@@ -22208,6 +22081,33 @@ const UserLogin = class {
|
|
|
22208
22081
|
this.resetPassword = () => {
|
|
22209
22082
|
window.postMessage({ type: "NavForgotPassword" }, window.location.href);
|
|
22210
22083
|
};
|
|
22084
|
+
this.endpoint = '';
|
|
22085
|
+
this.lang = 'en';
|
|
22086
|
+
this.clientStyling = '';
|
|
22087
|
+
this.clientStylingUrl = '';
|
|
22088
|
+
this.translationUrl = '';
|
|
22089
|
+
this.passwordReset = 'false';
|
|
22090
|
+
this.userEmailRegex = undefined;
|
|
22091
|
+
this.userEmailRegexOptions = 'i';
|
|
22092
|
+
this.userPhoneRegex = undefined;
|
|
22093
|
+
this.userPhoneRegexOptions = '';
|
|
22094
|
+
this.passwordRegex = undefined;
|
|
22095
|
+
this.passwordRegexOptions = '';
|
|
22096
|
+
this.version = 'gm16';
|
|
22097
|
+
this.loginByPhoneNumber = 'false';
|
|
22098
|
+
this.userNameEmail = '';
|
|
22099
|
+
this.userPassword = '';
|
|
22100
|
+
this.isValidUserEmail = true;
|
|
22101
|
+
this.userPhone = '';
|
|
22102
|
+
this.userPrefix = '';
|
|
22103
|
+
this.isValidPassword = true;
|
|
22104
|
+
this.isValidUserPhone = true;
|
|
22105
|
+
this.isPasswordVisible = false;
|
|
22106
|
+
this.errorMessage = '';
|
|
22107
|
+
this.hasError = false;
|
|
22108
|
+
this.userPrefixOptions = undefined;
|
|
22109
|
+
this.isLoginLoading = false;
|
|
22110
|
+
this.mbSource = undefined;
|
|
22211
22111
|
}
|
|
22212
22112
|
/**
|
|
22213
22113
|
* Watch for changes in the translation URL and fetch new translations
|
|
@@ -22316,20 +22216,20 @@ const UserLogin = class {
|
|
|
22316
22216
|
* Render function
|
|
22317
22217
|
*/
|
|
22318
22218
|
render() {
|
|
22319
|
-
let visibilityIcon = h$2("span", { key: '
|
|
22320
|
-
h$2("svg", { key: '
|
|
22321
|
-
h$2("svg", { key: '
|
|
22322
|
-
let userIdentification = h$2("div", { key: '
|
|
22219
|
+
let visibilityIcon = h$2("span", { key: '8faa0976496b69519a0197f7091d0236fa8fd730', class: "InputIcon" }, this.isPasswordVisible &&
|
|
22220
|
+
h$2("svg", { key: '09bdd37ae2a2f3f66d642d665dd665ad63de447e', 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" }, h$2("g", { key: 'f7e3c9b5065fde29b80d16f73333f152bd15a66e', transform: "translate(-110.856 -23.242)" }, h$2("circle", { key: '9ecc3218d6cf3873c69b215f670121fab31e1aec', class: "PasswordVisibilityIcon", cx: "0.05", cy: "0.05", r: "0.05", transform: "translate(121.017 31.148)" }), h$2("g", { key: 'd57cbfb0ff90a839297c0e018602c25350cdd5b4', transform: "translate(117.499 27.37)" }, h$2("path", { key: '2c8992bc61850da7aad512762db6e10e6a4bfc17', class: "PasswordVisibilityIcon", d: "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z", transform: "translate(-142.164 -39.123)" }), h$2("path", { key: 'b2696439c6cdaeacc4db04fc599f454692b6b9d4', class: "PasswordVisibilityIcon", d: "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z", transform: "translate(-136.413 -42.068)" })), h$2("g", { key: 'e83a07b29f3559f536f8792a07add684974279cb', transform: "translate(110.856 24.899)" }, h$2("path", { key: 'ac216185b12b7dbf505c0d4c679a2b44c76c8a00', 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)" }), h$2("path", { key: '9985a70080cc4d4b3089a2c7315f506f2f8a32bc', 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)" })), h$2("rect", { key: 'e02cc8f65db8593a3b08d618a623f76a3da81ce1', class: "PasswordVisibilityIcon", width: "0.972", height: "15.861", rx: "0.486", transform: "translate(114.827 23.858) rotate(-39.315)" }))), !this.isPasswordVisible &&
|
|
22221
|
+
h$2("svg", { key: '43c407d82e8bdcea2cfb3a43bfda2c98e5804436', 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" }, h$2("g", { key: '6405d54694b21612833f9d1d22d66d60f2d9d871', transform: "translate(-14.185 -27.832)" }, h$2("path", { key: '2ed25088274ee5f42893872a568531515fb2e307', 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)" }), h$2("circle", { key: '55db780da0e461d20f3feae2723a982ad705823c', class: "PasswordVisibilityIcon", cx: "2.779", cy: "2.779", r: "2.779", transform: "translate(20.827 30.303)" }))));
|
|
22222
|
+
let userIdentification = h$2("div", { key: '7dabe085c16690665908703468baac7e60888e9f', class: "FormBox" }, h$2("div", { key: '701c9d1f0297e53d8204bd8f7e75450bd601bd6e', class: "FormValue" }, this.loginByPhoneNumber === 'true'
|
|
22323
22223
|
? h$2("div", { class: (!this.isValidUserPhone || this.hasError) ? 'InputBox InputInvalidBox' : 'InputBox ' }, h$2("div", { class: "PhoneInputBox" }, h$2("div", { class: "PrefixBox" }, h$2("vaadin-combo-box", { items: this.userPrefixOptions, value: this.userPrefix, onChange: this.handleInputChangePartial('prefix') }), h$2("label", { class: (this.userPrefix ? 'FieldFilledIn' : '') + ' ' + (!this.isValidUserPhone || this.hasError ? 'FieldInvalid' : '') }, translate$1('userPrefix', this.lang))), h$2("div", { class: "PhoneBox" }, h$2("input", { type: "text", placeholder: '', value: this.userPhone, onFocus: this.handleInputChangePartial('phone'), onInput: this.handleInputChangePartial('phone'), autocapitalize: "none", required: true }), h$2("label", { class: (this.userPhone ? 'FieldFilledIn' : '') + ' ' + (!this.isValidUserPhone || this.hasError ? 'FieldInvalid' : '') }, translate$1('userPhone', this.lang)))), !this.isValidUserPhone &&
|
|
22324
22224
|
h$2("p", { class: "InvalidField" }, translate$1('invalidField', this.lang)))
|
|
22325
22225
|
: h$2("div", { class: (!this.isValidUserEmail || this.hasError) ? 'InputBox InputInvalidBox' : 'InputBox' }, h$2("input", { type: "text", placeholder: '', value: this.userNameEmail, onFocus: this.handleInputChangePartial('user'), onInput: this.handleInputChangePartial('user'), autocapitalize: "none", required: true }), h$2("label", { class: (this.userNameEmail ? 'FieldFilledIn' : '') + ' ' + (!this.isValidUserEmail || this.hasError ? 'FieldInvalid' : '') }, translate$1('userEmail', this.lang)), !this.isValidUserEmail &&
|
|
22326
|
-
h$2("p", { class: "InvalidField" }, translate$1('invalidField', this.lang))), h$2("div", { key: '
|
|
22327
|
-
h$2("p", { key: '
|
|
22328
|
-
h$2("div", { key: '
|
|
22226
|
+
h$2("p", { class: "InvalidField" }, translate$1('invalidField', this.lang))), h$2("div", { key: '3cd3fde43f1e060d98bc17cd021d40ac0a3daf25', class: (!this.isValidPassword || this.hasError) ? 'InputBox InputInvalidBox' : 'InputBox' }, visibilityIcon, h$2("input", { key: '33d7b8b4db8976dd8677444165a1138917d05c68', type: this.isPasswordVisible ? "text" : "password", placeholder: '', value: this.userPassword, onFocus: this.handleInputChangePartial('password'), onInput: this.handleInputChangePartial('password'), autocapitalize: "none", required: true }), h$2("label", { key: '11decfd4b4bd61163e8c5c002b46c84ee9ff3020', class: (this.userPassword ? 'FieldFilledIn' : '') + ' ' + (!this.isValidPassword || this.hasError ? 'FieldInvalid' : '') }, translate$1('password', this.lang)), !this.isValidPassword &&
|
|
22227
|
+
h$2("p", { key: '5c2d02b6a329227b9e73c36195ed7e160832a733', class: "InvalidField" }, translate$1('invalidField', this.lang))), this.passwordReset == 'true' &&
|
|
22228
|
+
h$2("div", { key: '40a59ed73a4247180b179267e3b7a83a010d6649', class: "ForgotPassword" }, h$2("button", { key: 'b3045a97541f13bcab8b2997af26b595d6dd2b6f', onClick: this.resetPassword }, translate$1('forgotPassword', this.lang))), h$2("button", { key: 'ca3f956411dca0a6bf54894c5e14bbe2767a53a0', disabled: ((this.loginByPhoneNumber !== 'true' && (!this.isValidUserEmail || !this.userNameEmail)) ||
|
|
22329
22229
|
(this.loginByPhoneNumber === 'true' && (!this.isValidUserPhone || !this.userPhone || !this.userPrefix)) ||
|
|
22330
22230
|
!this.userPassword || !this.isValidPassword) || this.isLoginLoading, class: "SubmitCredentials", onClick: this.handleLogin }, translate$1('login', this.lang)), this.hasError &&
|
|
22331
|
-
h$2("p", { key: '
|
|
22332
|
-
return h$2("section", { key: '
|
|
22231
|
+
h$2("p", { key: '6641f60f97cd7f9e81e3097935dfcfb4b8ab6552', class: "CredentialsError" }, this.errorMessage)));
|
|
22232
|
+
return h$2("section", { key: '49d2252c207e8148d230f2f90bf4d1d567df4aae', ref: el => this.stylingContainer = el }, userIdentification);
|
|
22333
22233
|
}
|
|
22334
22234
|
static get watchers() { return {
|
|
22335
22235
|
"translationUrl": ["handleNewTranslations"],
|