@everymatrix/pam-login 1.74.5 → 1.74.7
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.cjs.js +1 -1
- package/dist/cjs/{pam-login-f87c2628.js → pam-login-9451399f.js} +70 -26
- package/dist/cjs/pam-login_2.cjs.entry.js +1 -1
- package/dist/collection/components/pam-login/pam-login.js +22 -14
- package/dist/collection/utils/locale.utils.js +48 -12
- package/dist/esm/index.js +1 -1
- package/dist/esm/{pam-login-d69e2d0b.js → pam-login-b9341b6d.js} +70 -26
- package/dist/esm/pam-login_2.entry.js +1 -1
- package/dist/pam-login/index.esm.js +1 -1
- package/dist/pam-login/{pam-login-d69e2d0b.js → pam-login-b9341b6d.js} +65 -65
- package/dist/pam-login/pam-login_2.entry.js +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -79,7 +79,10 @@ const TRANSLATIONS = {
|
|
|
79
79
|
"configError": "An unexpected error has occured when fetchig the configuration",
|
|
80
80
|
"userEmailError": "The email or username have an invalid format.",
|
|
81
81
|
"userPhoneError": "The prefix or the phone number have an invalid format.",
|
|
82
|
-
"userPasswordError": "The password has an invalid format."
|
|
82
|
+
"userPasswordError": "The password has an invalid format.",
|
|
83
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
84
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
85
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
83
86
|
},
|
|
84
87
|
"tr": {
|
|
85
88
|
"invalidField": "Üzgünüz, bu kullanıcı adı/e-posta adresi ve/veya şifre tanınmadı.",
|
|
@@ -99,7 +102,10 @@ const TRANSLATIONS = {
|
|
|
99
102
|
"configError": "Yapılandırma alınırken beklenmeyen bir hata oluştu",
|
|
100
103
|
"userEmailError": "E-posta veya kullanıcı adı geçersiz bir formata sahip.",
|
|
101
104
|
"userPhoneError": "Ön ek veya telefon numarası geçersiz bir formata sahip.",
|
|
102
|
-
"userPasswordError": "Şifre geçersiz bir formata sahip."
|
|
105
|
+
"userPasswordError": "Şifre geçersiz bir formata sahip.",
|
|
106
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
107
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
108
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
103
109
|
},
|
|
104
110
|
"en-us": {
|
|
105
111
|
"invalidField": "Sorry, that username/email address and/or password has not been recognized.",
|
|
@@ -119,7 +125,10 @@ const TRANSLATIONS = {
|
|
|
119
125
|
"configError": "An unexpected error has occured when fetchig the configuration",
|
|
120
126
|
"userEmailError": "The email or username have an invalid format.",
|
|
121
127
|
"userPhoneError": "The prefix or the phone number have an invalid format.",
|
|
122
|
-
"userPasswordError": "The password has an invalid format."
|
|
128
|
+
"userPasswordError": "The password has an invalid format.",
|
|
129
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
130
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
131
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
123
132
|
},
|
|
124
133
|
"ro": {
|
|
125
134
|
"invalidField": "Ne pare rău, acest nume de utilizator/adresă de e-mail și/sau parolă nu a fost recunoscut.",
|
|
@@ -139,7 +148,10 @@ const TRANSLATIONS = {
|
|
|
139
148
|
"configError": "A apărut o eroare neașteptată la preluarea configurației",
|
|
140
149
|
"userEmailError": "Emailul sau numele de utilizator au un format invalid.",
|
|
141
150
|
"userPhoneError": "Prefixul sau numărul de telefon au un format invalid.",
|
|
142
|
-
"userPasswordError": "Parola are un format invalid."
|
|
151
|
+
"userPasswordError": "Parola are un format invalid.",
|
|
152
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
153
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
154
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
143
155
|
},
|
|
144
156
|
"hr": {
|
|
145
157
|
"invalidField": "Žao nam je, to korisničko ime/adresa e-pošte i/ili lozinka nisu prepoznati.",
|
|
@@ -159,7 +171,10 @@ const TRANSLATIONS = {
|
|
|
159
171
|
"configError": "Došlo je do neočekivane pogreške prilikom dohvaćanja konfiguracije",
|
|
160
172
|
"userEmailError": "E-mail ili korisničko ime imaju nevažeći format.",
|
|
161
173
|
"userPhoneError": "Prefiks ili telefonski broj imaju nevažeći format.",
|
|
162
|
-
"userPasswordError": "Lozinka ima nevažeći format."
|
|
174
|
+
"userPasswordError": "Lozinka ima nevažeći format.",
|
|
175
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
176
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
177
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
163
178
|
},
|
|
164
179
|
"fr": {
|
|
165
180
|
"invalidField": "Désolé, ce nom d'utilisateur/adresse e-mail et/ou mot de passe n'a pas été reconnu.",
|
|
@@ -179,7 +194,10 @@ const TRANSLATIONS = {
|
|
|
179
194
|
"configError": "Une erreur inattendue s'est produite lors de la récupération de la configuration",
|
|
180
195
|
"userEmailError": "L'email ou le nom d'utilisateur ont un format invalide.",
|
|
181
196
|
"userPhoneError": "Le préfixe ou le numéro de téléphone ont un format invalide.",
|
|
182
|
-
"userPasswordError": "Le mot de passe a un format invalide."
|
|
197
|
+
"userPasswordError": "Le mot de passe a un format invalide.",
|
|
198
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
199
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
200
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
183
201
|
},
|
|
184
202
|
"cs": {
|
|
185
203
|
"invalidField": "Omlouváme se, toto uživatelské jméno/e-mailová adresa a/nebo heslo nebyly rozpoznány.",
|
|
@@ -199,7 +217,10 @@ const TRANSLATIONS = {
|
|
|
199
217
|
"configError": "Při načítání konfigurace došlo k neočekávané chybě",
|
|
200
218
|
"userEmailError": "E-mail nebo uživatelské jméno mají neplatný formát.",
|
|
201
219
|
"userPhoneError": "Předvolba nebo telefonní číslo mají neplatný formát.",
|
|
202
|
-
"userPasswordError": "Heslo má neplatný formát."
|
|
220
|
+
"userPasswordError": "Heslo má neplatný formát.",
|
|
221
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
222
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
223
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
203
224
|
},
|
|
204
225
|
"de": {
|
|
205
226
|
"invalidField": "Entschuldigung, dieser Benutzername/diese E-Mail-Adresse und/oder dieses Passwort wurde nicht erkannt.",
|
|
@@ -219,7 +240,10 @@ const TRANSLATIONS = {
|
|
|
219
240
|
"configError": "Beim Abrufen der Konfiguration ist ein unerwarteter Fehler aufgetreten",
|
|
220
241
|
"userEmailError": "Die E-Mail oder der Benutzername haben ein ungültiges Format.",
|
|
221
242
|
"userPhoneError": "Die Vorwahl oder die Telefonnummer haben ein ungültiges Format.",
|
|
222
|
-
"userPasswordError": "Das Passwort hat ein ungültiges Format."
|
|
243
|
+
"userPasswordError": "Das Passwort hat ein ungültiges Format.",
|
|
244
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
245
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
246
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
223
247
|
},
|
|
224
248
|
"pt-br": {
|
|
225
249
|
"invalidField": "Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",
|
|
@@ -239,7 +263,10 @@ const TRANSLATIONS = {
|
|
|
239
263
|
"configError": "Ocorreu um erro inesperado ao buscar a configuração",
|
|
240
264
|
"userEmailError": "O e-mail ou nome de usuário têm um formato inválido.",
|
|
241
265
|
"userPhoneError": "O prefixo ou o número de telefone têm um formato inválido.",
|
|
242
|
-
"userPasswordError": "A senha tem um formato inválido."
|
|
266
|
+
"userPasswordError": "A senha tem um formato inválido.",
|
|
267
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
268
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
269
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
243
270
|
},
|
|
244
271
|
"es-mx": {
|
|
245
272
|
"invalidField": "Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",
|
|
@@ -259,7 +286,10 @@ const TRANSLATIONS = {
|
|
|
259
286
|
"configError": "Se ha producido un error inesperado al obtener la configuración",
|
|
260
287
|
"userEmailError": "El correo electrónico o nombre de usuario tienen un formato inválido.",
|
|
261
288
|
"userPhoneError": "El prefijo o el número de teléfono tienen un formato inválido.",
|
|
262
|
-
"userPasswordError": "La contraseña tiene un formato inválido."
|
|
289
|
+
"userPasswordError": "La contraseña tiene un formato inválido.",
|
|
290
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
291
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
292
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
263
293
|
},
|
|
264
294
|
"es": {
|
|
265
295
|
"invalidField": "Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",
|
|
@@ -279,7 +309,10 @@ const TRANSLATIONS = {
|
|
|
279
309
|
"configError": "Se ha producido un error inesperado al obtener la configuración",
|
|
280
310
|
"userEmailError": "El correo electrónico o nombre de usuario tienen un formato inválido.",
|
|
281
311
|
"userPhoneError": "El prefijo o el número de teléfono tienen un formato inválido.",
|
|
282
|
-
"userPasswordError": "La contraseña tiene un formato inválido."
|
|
312
|
+
"userPasswordError": "La contraseña tiene un formato inválido.",
|
|
313
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
314
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
315
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
283
316
|
},
|
|
284
317
|
"pt": {
|
|
285
318
|
"invalidField": "Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",
|
|
@@ -299,7 +332,10 @@ const TRANSLATIONS = {
|
|
|
299
332
|
"configError": "Ocorreu um erro inesperado ao procurar a configuração",
|
|
300
333
|
"userEmailError": "O e-mail ou nome de usuário têm um formato inválido.",
|
|
301
334
|
"userPhoneError": "O prefixo ou o número de telefone têm um formato inválido.",
|
|
302
|
-
"userPasswordError": "A senha tem um formato inválido."
|
|
335
|
+
"userPasswordError": "A senha tem um formato inválido.",
|
|
336
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
337
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
338
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
303
339
|
}
|
|
304
340
|
};
|
|
305
341
|
const getTranslations = (url) => {
|
|
@@ -21942,11 +21978,20 @@ const PamLogin = class {
|
|
|
21942
21978
|
fetch(url.href, options)
|
|
21943
21979
|
.then((res) => res.json())
|
|
21944
21980
|
.then((res) => {
|
|
21945
|
-
|
|
21946
|
-
|
|
21981
|
+
var _a, _b;
|
|
21982
|
+
if (!res.token) {
|
|
21983
|
+
const errorCode = (_a = res === null || res === void 0 ? void 0 : res.thirdPartyResponse) === null || _a === void 0 ? void 0 : _a.errorCode;
|
|
21984
|
+
if (errorCode === 'GmErr_USER_AUTH_FAILED' && this.loginByPhoneNumber === 'true') {
|
|
21985
|
+
this.apiErrorMessage = translate$1('AuthFailedPhoneNumber', this.lang);
|
|
21986
|
+
}
|
|
21987
|
+
else {
|
|
21988
|
+
this.apiErrorMessage = translate$1(`${errorCode}`, this.lang) || ((_b = res === null || res === void 0 ? void 0 : res.thirdPartyResponse) === null || _b === void 0 ? void 0 : _b.message) || translate$1('genericError', this.lang);
|
|
21989
|
+
}
|
|
21990
|
+
return reject(this.apiErrorMessage);
|
|
21947
21991
|
}
|
|
21948
21992
|
else {
|
|
21949
|
-
|
|
21993
|
+
this.apiErrorMessage = '';
|
|
21994
|
+
return resolve(res.token);
|
|
21950
21995
|
}
|
|
21951
21996
|
});
|
|
21952
21997
|
});
|
|
@@ -22008,7 +22053,6 @@ const PamLogin = class {
|
|
|
22008
22053
|
})
|
|
22009
22054
|
.catch((err) => {
|
|
22010
22055
|
console.error(err);
|
|
22011
|
-
this.apiErrorMessage = translate$1('genericError', this.lang);
|
|
22012
22056
|
this.sendErrorNotification(this.apiErrorMessage);
|
|
22013
22057
|
this.isLoading = false;
|
|
22014
22058
|
});
|
|
@@ -22307,21 +22351,21 @@ const PamLogin = class {
|
|
|
22307
22351
|
* Render function
|
|
22308
22352
|
*/
|
|
22309
22353
|
render() {
|
|
22310
|
-
const visibilityIcon = index.h("span", { key: '
|
|
22354
|
+
const visibilityIcon = index.h("span", { key: 'a19b0bfe0301a46e46727ba992680e0c6751e6d8', class: "InputIcon" }, this.isPasswordVisible
|
|
22311
22355
|
? index.h("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" }, index.h("g", { transform: "translate(-110.856 -23.242)" }, index.h("circle", { class: "PasswordVisibilityIcon", cx: "0.05", cy: "0.05", r: "0.05", transform: "translate(121.017 31.148)" }), index.h("g", { transform: "translate(117.499 27.37)" }, index.h("path", { class: "PasswordVisibilityIcon", d: "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z", transform: "translate(-142.164 -39.123)" }), index.h("path", { class: "PasswordVisibilityIcon", d: "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z", transform: "translate(-136.413 -42.068)" })), index.h("g", { transform: "translate(110.856 24.899)" }, index.h("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)" }), index.h("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)" })), index.h("rect", { class: "PasswordVisibilityIcon", width: "0.972", height: "15.861", rx: "0.486", transform: "translate(114.827 23.858) rotate(-39.315)" })))
|
|
22312
22356
|
: index.h("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" }, index.h("g", { transform: "translate(-14.185 -27.832)" }, index.h("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)" }), index.h("circle", { class: "PasswordVisibilityIcon", cx: "2.779", cy: "2.779", r: "2.779", transform: "translate(20.827 30.303)" }))));
|
|
22313
|
-
const loginForm = (index.h("div", { key: '
|
|
22357
|
+
const loginForm = (index.h("div", { key: '02a870b2ac118333299e05d473195b3c1b91708b', class: "FormBox" }, index.h("div", { key: '6cf09ebba758f1fecdb39d287f727a267ad1e85f', class: "FormValue", onKeyDown: this.handleSubmit }, this.loginByPhoneNumber === 'true'
|
|
22314
22358
|
? index.h("div", { class: (this.isContactValid && !this.apiErrorMessage) ? 'InputBox' : 'InputBox InputInvalidBox' }, index.h("div", { class: "PhoneInputBox" }, index.h("div", { class: "PrefixBox" }, index.h("vaadin-combo-box", { items: this.phoneCodes, value: this.phoneCodeValue, onChange: this.handleInputChangePartial('prefix') }), index.h("label", { class: (this.phoneCodeValue ? 'FieldFilledIn' : '') + ' ' + (this.isContactValid ? '' : 'FieldInvalid') }, translate$1('userPrefix', this.lang))), index.h("div", { class: "PhoneBox" }, index.h("input", { type: "text", placeholder: '', value: this.contactValue, onFocus: this.handleInputChangePartial('phone'), onInput: this.handleInputChangePartial('phone'), autocapitalize: "none", required: true }), index.h("label", { class: (this.contactValue ? 'FieldFilledIn' : '') + ' ' + (this.isContactValid ? '' : 'FieldInvalid') }, translate$1('userPhone', this.lang)))), !this.isContactValid &&
|
|
22315
22359
|
index.h("p", { class: "CredentialsError" }, translate$1('userPhoneError', this.lang)))
|
|
22316
22360
|
: index.h("div", { class: this.isContactValid ? 'InputBox' : 'InputBox InputInvalidBox' }, index.h("input", { type: "text", placeholder: '', value: this.contactValue, onInput: this.handleInputChangePartial('user'), autocapitalize: "none", required: true }), index.h("label", { class: (this.contactValue ? 'FieldFilledIn' : '') + ' ' + (this.isContactValid ? '' : 'FieldInvalid') }, translate$1('userEmail', this.lang)), !this.isContactValid &&
|
|
22317
|
-
index.h("p", { class: "CredentialsError" }, translate$1('userEmailError', this.lang))), index.h("div", { key: '
|
|
22318
|
-
index.h("p", { key: '
|
|
22319
|
-
index.h("div", { key: '
|
|
22320
|
-
index.h("slot", { key: '
|
|
22321
|
-
index.h("slot", { key: '
|
|
22322
|
-
index.h("p", { key: '
|
|
22323
|
-
const skeleton = (index.h("div", { key: '
|
|
22324
|
-
return (index.h("section", { key: '
|
|
22361
|
+
index.h("p", { class: "CredentialsError" }, translate$1('userEmailError', this.lang))), index.h("div", { key: '2ffb92106e2e8de12bad956c1f44e542290cef07', class: this.isPasswordValid ? 'InputBox' : 'InputBox InputInvalidBox' }, visibilityIcon, index.h("input", { key: '97e51ecf6e8280ada99e1c7d566e0831c7eadf65', type: this.isPasswordVisible ? "text" : "password", placeholder: '', value: this.passwordValue, onInput: this.handleInputChangePartial('password'), autocapitalize: "none", required: true }), index.h("label", { key: 'a7baf699e8c59857c8bd4b1a9082d89c2d051176', class: (this.passwordValue ? 'FieldFilledIn' : '') + ' ' + (this.isPasswordValid ? '' : 'FieldInvalid') }, translate$1('password', this.lang)), this.isPasswordValid ||
|
|
22362
|
+
index.h("p", { key: '6f0dff3c1a41c4cdcb84e407f96b82506cbfd1e5', class: "CredentialsError" }, translate$1('userPasswordError', this.lang))), this.passwordReset == 'true' &&
|
|
22363
|
+
index.h("div", { key: 'a5fc1fe93152f9fa2eb8c826236af82c27f30dde', class: "ForgotPassword" }, index.h("button", { key: '5a9b4e94828d5af66df6236f94b10f1fc5ccce55', onClick: this.resetPassword }, translate$1('forgotPassword', this.lang))), this.captchaData.isEnabled && this.captchaData.provider === 'cloudflare' &&
|
|
22364
|
+
index.h("slot", { key: '354869d594c0e26b395a00d8f155fec91f6fb10a', name: "turnstile" }), this.captchaData.isEnabled && this.captchaData.provider === 'google' &&
|
|
22365
|
+
index.h("slot", { key: 'b694bd7b46dbdbcdec466ba85d126290a181cf22', name: "google" }), index.h("button", { key: 'dd2ac8ae3cf8234fd37250d64b49639379ba5234', disabled: this.isSubmitDisabled(), class: "SubmitCredentials", onClick: this.handleLogin }, translate$1('login', this.lang)), this.apiErrorMessage &&
|
|
22366
|
+
index.h("p", { key: 'c8ddda7658d43130fc66e7748d81463bf128b366', class: "CredentialsError" }, this.apiErrorMessage))));
|
|
22367
|
+
const skeleton = (index.h("div", { key: 'addbd037d2c3c63008a3fd76e65fcc8a2f065db6', class: "LoadingSkeleton" }, index.h("form", { key: '4280414019f51d16cf40b6e73444f4b67c7b35cf', class: "Form" }, index.h("section", { key: '281fa238417344eb64bc2ef209e6823d1757c653', class: "FieldsSection" }, index.h("div", { key: '36e854eb7fe82e26dd0c55920b73eac12ed3016f', class: "FieldContainer" }, index.h("div", { key: '9cc84bd425eb116a0c7ac57c1cbe19ca54436f0e', class: "FieldTitle" }, index.h("ui-skeleton", { key: 'c416ad8d43fba87a0ccf8b8583bff5b70da69ded', structure: "title", width: "auto", height: "20px" })), index.h("ui-skeleton", { key: 'be246d0bee24c80a1ae71979d0f4bdb5d8ae1310', structure: "rectangle", width: "auto", height: "35px" })), index.h("div", { key: '910c0d702613615470a0087118aa1dce090898c7', class: "FieldContainer" }, index.h("div", { key: '71ec9ab3e69daa5cdb3ff000f5faa045fa9a5272', class: "FieldTitle" }, index.h("ui-skeleton", { key: '9b55b3418f1035dbadc68fb9931dad3048cc4325', structure: "title", width: "auto", height: "20px" })), index.h("ui-skeleton", { key: '9a7e56a7d071a76caadfaacbb72aca9efd295913', structure: "rectangle", width: "auto", height: "35px" }))), index.h("section", { key: 'eb906f1cc4d5890829046e68d36e83a7950d08e7', class: "ButtonsSection" }, index.h("div", { key: 'dd843ac80ddc72c30542ba71030bba3fbccd2f2f', class: "Button" }, index.h("ui-skeleton", { key: 'a746afd5467988c7b2e899cdd5b8e1ad8b88032b', structure: "rectangle", width: "auto", height: "50px" }))))));
|
|
22368
|
+
return (index.h("section", { key: '537aaa5253910b53c8c5d96a17d944fb98ab694c', ref: el => this.stylingContainer = el }, this.isLoading ? skeleton : loginForm));
|
|
22325
22369
|
}
|
|
22326
22370
|
static get watchers() { return {
|
|
22327
22371
|
"translationUrl": ["handleNewTranslations"],
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const pamLogin = require('./pam-login-
|
|
5
|
+
const pamLogin = require('./pam-login-9451399f.js');
|
|
6
6
|
const index = require('./index-c5001c3e.js');
|
|
7
7
|
|
|
8
8
|
const uiSkeletonCss = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";
|
|
@@ -51,11 +51,20 @@ export class PamLogin {
|
|
|
51
51
|
fetch(url.href, options)
|
|
52
52
|
.then((res) => res.json())
|
|
53
53
|
.then((res) => {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
var _a, _b;
|
|
55
|
+
if (!res.token) {
|
|
56
|
+
const errorCode = (_a = res === null || res === void 0 ? void 0 : res.thirdPartyResponse) === null || _a === void 0 ? void 0 : _a.errorCode;
|
|
57
|
+
if (errorCode === 'GmErr_USER_AUTH_FAILED' && this.loginByPhoneNumber === 'true') {
|
|
58
|
+
this.apiErrorMessage = translate('AuthFailedPhoneNumber', this.lang);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
this.apiErrorMessage = translate(`${errorCode}`, this.lang) || ((_b = res === null || res === void 0 ? void 0 : res.thirdPartyResponse) === null || _b === void 0 ? void 0 : _b.message) || translate('genericError', this.lang);
|
|
62
|
+
}
|
|
63
|
+
return reject(this.apiErrorMessage);
|
|
56
64
|
}
|
|
57
65
|
else {
|
|
58
|
-
|
|
66
|
+
this.apiErrorMessage = '';
|
|
67
|
+
return resolve(res.token);
|
|
59
68
|
}
|
|
60
69
|
});
|
|
61
70
|
});
|
|
@@ -117,7 +126,6 @@ export class PamLogin {
|
|
|
117
126
|
})
|
|
118
127
|
.catch((err) => {
|
|
119
128
|
console.error(err);
|
|
120
|
-
this.apiErrorMessage = translate('genericError', this.lang);
|
|
121
129
|
this.sendErrorNotification(this.apiErrorMessage);
|
|
122
130
|
this.isLoading = false;
|
|
123
131
|
});
|
|
@@ -416,21 +424,21 @@ export class PamLogin {
|
|
|
416
424
|
* Render function
|
|
417
425
|
*/
|
|
418
426
|
render() {
|
|
419
|
-
const visibilityIcon = h("span", { key: '
|
|
427
|
+
const visibilityIcon = h("span", { key: 'a19b0bfe0301a46e46727ba992680e0c6751e6d8', class: "InputIcon" }, this.isPasswordVisible
|
|
420
428
|
? h("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" }, h("g", { transform: "translate(-110.856 -23.242)" }, h("circle", { class: "PasswordVisibilityIcon", cx: "0.05", cy: "0.05", r: "0.05", transform: "translate(121.017 31.148)" }), h("g", { transform: "translate(117.499 27.37)" }, h("path", { class: "PasswordVisibilityIcon", d: "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z", transform: "translate(-142.164 -39.123)" }), h("path", { class: "PasswordVisibilityIcon", d: "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z", transform: "translate(-136.413 -42.068)" })), h("g", { transform: "translate(110.856 24.899)" }, h("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)" }), h("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)" })), h("rect", { class: "PasswordVisibilityIcon", width: "0.972", height: "15.861", rx: "0.486", transform: "translate(114.827 23.858) rotate(-39.315)" })))
|
|
421
429
|
: h("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" }, h("g", { transform: "translate(-14.185 -27.832)" }, h("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)" }), h("circle", { class: "PasswordVisibilityIcon", cx: "2.779", cy: "2.779", r: "2.779", transform: "translate(20.827 30.303)" }))));
|
|
422
|
-
const loginForm = (h("div", { key: '
|
|
430
|
+
const loginForm = (h("div", { key: '02a870b2ac118333299e05d473195b3c1b91708b', class: "FormBox" }, h("div", { key: '6cf09ebba758f1fecdb39d287f727a267ad1e85f', class: "FormValue", onKeyDown: this.handleSubmit }, this.loginByPhoneNumber === 'true'
|
|
423
431
|
? h("div", { class: (this.isContactValid && !this.apiErrorMessage) ? 'InputBox' : 'InputBox InputInvalidBox' }, h("div", { class: "PhoneInputBox" }, h("div", { class: "PrefixBox" }, h("vaadin-combo-box", { items: this.phoneCodes, value: this.phoneCodeValue, onChange: this.handleInputChangePartial('prefix') }), h("label", { class: (this.phoneCodeValue ? 'FieldFilledIn' : '') + ' ' + (this.isContactValid ? '' : 'FieldInvalid') }, translate('userPrefix', this.lang))), h("div", { class: "PhoneBox" }, h("input", { type: "text", placeholder: '', value: this.contactValue, onFocus: this.handleInputChangePartial('phone'), onInput: this.handleInputChangePartial('phone'), autocapitalize: "none", required: true }), h("label", { class: (this.contactValue ? 'FieldFilledIn' : '') + ' ' + (this.isContactValid ? '' : 'FieldInvalid') }, translate('userPhone', this.lang)))), !this.isContactValid &&
|
|
424
432
|
h("p", { class: "CredentialsError" }, translate('userPhoneError', this.lang)))
|
|
425
433
|
: h("div", { class: this.isContactValid ? 'InputBox' : 'InputBox InputInvalidBox' }, h("input", { type: "text", placeholder: '', value: this.contactValue, onInput: this.handleInputChangePartial('user'), autocapitalize: "none", required: true }), h("label", { class: (this.contactValue ? 'FieldFilledIn' : '') + ' ' + (this.isContactValid ? '' : 'FieldInvalid') }, translate('userEmail', this.lang)), !this.isContactValid &&
|
|
426
|
-
h("p", { class: "CredentialsError" }, translate('userEmailError', this.lang))), h("div", { key: '
|
|
427
|
-
h("p", { key: '
|
|
428
|
-
h("div", { key: '
|
|
429
|
-
h("slot", { key: '
|
|
430
|
-
h("slot", { key: '
|
|
431
|
-
h("p", { key: '
|
|
432
|
-
const skeleton = (h("div", { key: '
|
|
433
|
-
return (h("section", { key: '
|
|
434
|
+
h("p", { class: "CredentialsError" }, translate('userEmailError', this.lang))), h("div", { key: '2ffb92106e2e8de12bad956c1f44e542290cef07', class: this.isPasswordValid ? 'InputBox' : 'InputBox InputInvalidBox' }, visibilityIcon, h("input", { key: '97e51ecf6e8280ada99e1c7d566e0831c7eadf65', type: this.isPasswordVisible ? "text" : "password", placeholder: '', value: this.passwordValue, onInput: this.handleInputChangePartial('password'), autocapitalize: "none", required: true }), h("label", { key: 'a7baf699e8c59857c8bd4b1a9082d89c2d051176', class: (this.passwordValue ? 'FieldFilledIn' : '') + ' ' + (this.isPasswordValid ? '' : 'FieldInvalid') }, translate('password', this.lang)), this.isPasswordValid ||
|
|
435
|
+
h("p", { key: '6f0dff3c1a41c4cdcb84e407f96b82506cbfd1e5', class: "CredentialsError" }, translate('userPasswordError', this.lang))), this.passwordReset == 'true' &&
|
|
436
|
+
h("div", { key: 'a5fc1fe93152f9fa2eb8c826236af82c27f30dde', class: "ForgotPassword" }, h("button", { key: '5a9b4e94828d5af66df6236f94b10f1fc5ccce55', onClick: this.resetPassword }, translate('forgotPassword', this.lang))), this.captchaData.isEnabled && this.captchaData.provider === 'cloudflare' &&
|
|
437
|
+
h("slot", { key: '354869d594c0e26b395a00d8f155fec91f6fb10a', name: "turnstile" }), this.captchaData.isEnabled && this.captchaData.provider === 'google' &&
|
|
438
|
+
h("slot", { key: 'b694bd7b46dbdbcdec466ba85d126290a181cf22', name: "google" }), h("button", { key: 'dd2ac8ae3cf8234fd37250d64b49639379ba5234', disabled: this.isSubmitDisabled(), class: "SubmitCredentials", onClick: this.handleLogin }, translate('login', this.lang)), this.apiErrorMessage &&
|
|
439
|
+
h("p", { key: 'c8ddda7658d43130fc66e7748d81463bf128b366', class: "CredentialsError" }, this.apiErrorMessage))));
|
|
440
|
+
const skeleton = (h("div", { key: 'addbd037d2c3c63008a3fd76e65fcc8a2f065db6', class: "LoadingSkeleton" }, h("form", { key: '4280414019f51d16cf40b6e73444f4b67c7b35cf', class: "Form" }, h("section", { key: '281fa238417344eb64bc2ef209e6823d1757c653', class: "FieldsSection" }, h("div", { key: '36e854eb7fe82e26dd0c55920b73eac12ed3016f', class: "FieldContainer" }, h("div", { key: '9cc84bd425eb116a0c7ac57c1cbe19ca54436f0e', class: "FieldTitle" }, h("ui-skeleton", { key: 'c416ad8d43fba87a0ccf8b8583bff5b70da69ded', structure: "title", width: "auto", height: "20px" })), h("ui-skeleton", { key: 'be246d0bee24c80a1ae71979d0f4bdb5d8ae1310', structure: "rectangle", width: "auto", height: "35px" })), h("div", { key: '910c0d702613615470a0087118aa1dce090898c7', class: "FieldContainer" }, h("div", { key: '71ec9ab3e69daa5cdb3ff000f5faa045fa9a5272', class: "FieldTitle" }, h("ui-skeleton", { key: '9b55b3418f1035dbadc68fb9931dad3048cc4325', structure: "title", width: "auto", height: "20px" })), h("ui-skeleton", { key: '9a7e56a7d071a76caadfaacbb72aca9efd295913', structure: "rectangle", width: "auto", height: "35px" }))), h("section", { key: 'eb906f1cc4d5890829046e68d36e83a7950d08e7', class: "ButtonsSection" }, h("div", { key: 'dd843ac80ddc72c30542ba71030bba3fbccd2f2f', class: "Button" }, h("ui-skeleton", { key: 'a746afd5467988c7b2e899cdd5b8e1ad8b88032b', structure: "rectangle", width: "auto", height: "50px" }))))));
|
|
441
|
+
return (h("section", { key: '537aaa5253910b53c8c5d96a17d944fb98ab694c', ref: el => this.stylingContainer = el }, this.isLoading ? skeleton : loginForm));
|
|
434
442
|
}
|
|
435
443
|
static get is() { return "pam-login"; }
|
|
436
444
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,7 +18,10 @@ const TRANSLATIONS = {
|
|
|
18
18
|
"configError": "An unexpected error has occured when fetchig the configuration",
|
|
19
19
|
"userEmailError": "The email or username have an invalid format.",
|
|
20
20
|
"userPhoneError": "The prefix or the phone number have an invalid format.",
|
|
21
|
-
"userPasswordError": "The password has an invalid format."
|
|
21
|
+
"userPasswordError": "The password has an invalid format.",
|
|
22
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
23
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
24
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
22
25
|
},
|
|
23
26
|
"tr": {
|
|
24
27
|
"invalidField": "Üzgünüz, bu kullanıcı adı/e-posta adresi ve/veya şifre tanınmadı.",
|
|
@@ -38,7 +41,10 @@ const TRANSLATIONS = {
|
|
|
38
41
|
"configError": "Yapılandırma alınırken beklenmeyen bir hata oluştu",
|
|
39
42
|
"userEmailError": "E-posta veya kullanıcı adı geçersiz bir formata sahip.",
|
|
40
43
|
"userPhoneError": "Ön ek veya telefon numarası geçersiz bir formata sahip.",
|
|
41
|
-
"userPasswordError": "Şifre geçersiz bir formata sahip."
|
|
44
|
+
"userPasswordError": "Şifre geçersiz bir formata sahip.",
|
|
45
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
46
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
47
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
42
48
|
},
|
|
43
49
|
"en-us": {
|
|
44
50
|
"invalidField": "Sorry, that username/email address and/or password has not been recognized.",
|
|
@@ -58,7 +64,10 @@ const TRANSLATIONS = {
|
|
|
58
64
|
"configError": "An unexpected error has occured when fetchig the configuration",
|
|
59
65
|
"userEmailError": "The email or username have an invalid format.",
|
|
60
66
|
"userPhoneError": "The prefix or the phone number have an invalid format.",
|
|
61
|
-
"userPasswordError": "The password has an invalid format."
|
|
67
|
+
"userPasswordError": "The password has an invalid format.",
|
|
68
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
69
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
70
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
62
71
|
},
|
|
63
72
|
"ro": {
|
|
64
73
|
"invalidField": "Ne pare rău, acest nume de utilizator/adresă de e-mail și/sau parolă nu a fost recunoscut.",
|
|
@@ -78,7 +87,10 @@ const TRANSLATIONS = {
|
|
|
78
87
|
"configError": "A apărut o eroare neașteptată la preluarea configurației",
|
|
79
88
|
"userEmailError": "Emailul sau numele de utilizator au un format invalid.",
|
|
80
89
|
"userPhoneError": "Prefixul sau numărul de telefon au un format invalid.",
|
|
81
|
-
"userPasswordError": "Parola are un format invalid."
|
|
90
|
+
"userPasswordError": "Parola are un format invalid.",
|
|
91
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
92
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
93
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
82
94
|
},
|
|
83
95
|
"hr": {
|
|
84
96
|
"invalidField": "Žao nam je, to korisničko ime/adresa e-pošte i/ili lozinka nisu prepoznati.",
|
|
@@ -98,7 +110,10 @@ const TRANSLATIONS = {
|
|
|
98
110
|
"configError": "Došlo je do neočekivane pogreške prilikom dohvaćanja konfiguracije",
|
|
99
111
|
"userEmailError": "E-mail ili korisničko ime imaju nevažeći format.",
|
|
100
112
|
"userPhoneError": "Prefiks ili telefonski broj imaju nevažeći format.",
|
|
101
|
-
"userPasswordError": "Lozinka ima nevažeći format."
|
|
113
|
+
"userPasswordError": "Lozinka ima nevažeći format.",
|
|
114
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
115
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
116
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
102
117
|
},
|
|
103
118
|
"fr": {
|
|
104
119
|
"invalidField": "Désolé, ce nom d'utilisateur/adresse e-mail et/ou mot de passe n'a pas été reconnu.",
|
|
@@ -118,7 +133,10 @@ const TRANSLATIONS = {
|
|
|
118
133
|
"configError": "Une erreur inattendue s'est produite lors de la récupération de la configuration",
|
|
119
134
|
"userEmailError": "L'email ou le nom d'utilisateur ont un format invalide.",
|
|
120
135
|
"userPhoneError": "Le préfixe ou le numéro de téléphone ont un format invalide.",
|
|
121
|
-
"userPasswordError": "Le mot de passe a un format invalide."
|
|
136
|
+
"userPasswordError": "Le mot de passe a un format invalide.",
|
|
137
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
138
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
139
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
122
140
|
},
|
|
123
141
|
"cs": {
|
|
124
142
|
"invalidField": "Omlouváme se, toto uživatelské jméno/e-mailová adresa a/nebo heslo nebyly rozpoznány.",
|
|
@@ -138,7 +156,10 @@ const TRANSLATIONS = {
|
|
|
138
156
|
"configError": "Při načítání konfigurace došlo k neočekávané chybě",
|
|
139
157
|
"userEmailError": "E-mail nebo uživatelské jméno mají neplatný formát.",
|
|
140
158
|
"userPhoneError": "Předvolba nebo telefonní číslo mají neplatný formát.",
|
|
141
|
-
"userPasswordError": "Heslo má neplatný formát."
|
|
159
|
+
"userPasswordError": "Heslo má neplatný formát.",
|
|
160
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
161
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
162
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
142
163
|
},
|
|
143
164
|
"de": {
|
|
144
165
|
"invalidField": "Entschuldigung, dieser Benutzername/diese E-Mail-Adresse und/oder dieses Passwort wurde nicht erkannt.",
|
|
@@ -158,7 +179,10 @@ const TRANSLATIONS = {
|
|
|
158
179
|
"configError": "Beim Abrufen der Konfiguration ist ein unerwarteter Fehler aufgetreten",
|
|
159
180
|
"userEmailError": "Die E-Mail oder der Benutzername haben ein ungültiges Format.",
|
|
160
181
|
"userPhoneError": "Die Vorwahl oder die Telefonnummer haben ein ungültiges Format.",
|
|
161
|
-
"userPasswordError": "Das Passwort hat ein ungültiges Format."
|
|
182
|
+
"userPasswordError": "Das Passwort hat ein ungültiges Format.",
|
|
183
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
184
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
185
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
162
186
|
},
|
|
163
187
|
"pt-br": {
|
|
164
188
|
"invalidField": "Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",
|
|
@@ -178,7 +202,10 @@ const TRANSLATIONS = {
|
|
|
178
202
|
"configError": "Ocorreu um erro inesperado ao buscar a configuração",
|
|
179
203
|
"userEmailError": "O e-mail ou nome de usuário têm um formato inválido.",
|
|
180
204
|
"userPhoneError": "O prefixo ou o número de telefone têm um formato inválido.",
|
|
181
|
-
"userPasswordError": "A senha tem um formato inválido."
|
|
205
|
+
"userPasswordError": "A senha tem um formato inválido.",
|
|
206
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
207
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
208
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
182
209
|
},
|
|
183
210
|
"es-mx": {
|
|
184
211
|
"invalidField": "Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",
|
|
@@ -198,7 +225,10 @@ const TRANSLATIONS = {
|
|
|
198
225
|
"configError": "Se ha producido un error inesperado al obtener la configuración",
|
|
199
226
|
"userEmailError": "El correo electrónico o nombre de usuario tienen un formato inválido.",
|
|
200
227
|
"userPhoneError": "El prefijo o el número de teléfono tienen un formato inválido.",
|
|
201
|
-
"userPasswordError": "La contraseña tiene un formato inválido."
|
|
228
|
+
"userPasswordError": "La contraseña tiene un formato inválido.",
|
|
229
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
230
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
231
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
202
232
|
},
|
|
203
233
|
"es": {
|
|
204
234
|
"invalidField": "Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",
|
|
@@ -218,7 +248,10 @@ const TRANSLATIONS = {
|
|
|
218
248
|
"configError": "Se ha producido un error inesperado al obtener la configuración",
|
|
219
249
|
"userEmailError": "El correo electrónico o nombre de usuario tienen un formato inválido.",
|
|
220
250
|
"userPhoneError": "El prefijo o el número de teléfono tienen un formato inválido.",
|
|
221
|
-
"userPasswordError": "La contraseña tiene un formato inválido."
|
|
251
|
+
"userPasswordError": "La contraseña tiene un formato inválido.",
|
|
252
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
253
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
254
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
222
255
|
},
|
|
223
256
|
"pt": {
|
|
224
257
|
"invalidField": "Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",
|
|
@@ -238,7 +271,10 @@ const TRANSLATIONS = {
|
|
|
238
271
|
"configError": "Ocorreu um erro inesperado ao procurar a configuração",
|
|
239
272
|
"userEmailError": "O e-mail ou nome de usuário têm um formato inválido.",
|
|
240
273
|
"userPhoneError": "O prefixo ou o número de telefone têm um formato inválido.",
|
|
241
|
-
"userPasswordError": "A senha tem um formato inválido."
|
|
274
|
+
"userPasswordError": "A senha tem um formato inválido.",
|
|
275
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
276
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
277
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
242
278
|
}
|
|
243
279
|
};
|
|
244
280
|
export const getTranslations = (url) => {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { P as PamLogin } from './pam-login-
|
|
1
|
+
export { P as PamLogin } from './pam-login-b9341b6d.js';
|
|
2
2
|
import './index-a126c540.js';
|