@everymatrix/pam-login 1.74.6 → 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
|
@@ -77,7 +77,10 @@ const TRANSLATIONS = {
|
|
|
77
77
|
"configError": "An unexpected error has occured when fetchig the configuration",
|
|
78
78
|
"userEmailError": "The email or username have an invalid format.",
|
|
79
79
|
"userPhoneError": "The prefix or the phone number have an invalid format.",
|
|
80
|
-
"userPasswordError": "The password has an invalid format."
|
|
80
|
+
"userPasswordError": "The password has an invalid format.",
|
|
81
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
82
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
83
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
81
84
|
},
|
|
82
85
|
"tr": {
|
|
83
86
|
"invalidField": "Üzgünüz, bu kullanıcı adı/e-posta adresi ve/veya şifre tanınmadı.",
|
|
@@ -97,7 +100,10 @@ const TRANSLATIONS = {
|
|
|
97
100
|
"configError": "Yapılandırma alınırken beklenmeyen bir hata oluştu",
|
|
98
101
|
"userEmailError": "E-posta veya kullanıcı adı geçersiz bir formata sahip.",
|
|
99
102
|
"userPhoneError": "Ön ek veya telefon numarası geçersiz bir formata sahip.",
|
|
100
|
-
"userPasswordError": "Şifre geçersiz bir formata sahip."
|
|
103
|
+
"userPasswordError": "Şifre geçersiz bir formata sahip.",
|
|
104
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
105
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
106
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
101
107
|
},
|
|
102
108
|
"en-us": {
|
|
103
109
|
"invalidField": "Sorry, that username/email address and/or password has not been recognized.",
|
|
@@ -117,7 +123,10 @@ const TRANSLATIONS = {
|
|
|
117
123
|
"configError": "An unexpected error has occured when fetchig the configuration",
|
|
118
124
|
"userEmailError": "The email or username have an invalid format.",
|
|
119
125
|
"userPhoneError": "The prefix or the phone number have an invalid format.",
|
|
120
|
-
"userPasswordError": "The password has an invalid format."
|
|
126
|
+
"userPasswordError": "The password has an invalid format.",
|
|
127
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
128
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
129
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
121
130
|
},
|
|
122
131
|
"ro": {
|
|
123
132
|
"invalidField": "Ne pare rău, acest nume de utilizator/adresă de e-mail și/sau parolă nu a fost recunoscut.",
|
|
@@ -137,7 +146,10 @@ const TRANSLATIONS = {
|
|
|
137
146
|
"configError": "A apărut o eroare neașteptată la preluarea configurației",
|
|
138
147
|
"userEmailError": "Emailul sau numele de utilizator au un format invalid.",
|
|
139
148
|
"userPhoneError": "Prefixul sau numărul de telefon au un format invalid.",
|
|
140
|
-
"userPasswordError": "Parola are un format invalid."
|
|
149
|
+
"userPasswordError": "Parola are un format invalid.",
|
|
150
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
151
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
152
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
141
153
|
},
|
|
142
154
|
"hr": {
|
|
143
155
|
"invalidField": "Žao nam je, to korisničko ime/adresa e-pošte i/ili lozinka nisu prepoznati.",
|
|
@@ -157,7 +169,10 @@ const TRANSLATIONS = {
|
|
|
157
169
|
"configError": "Došlo je do neočekivane pogreške prilikom dohvaćanja konfiguracije",
|
|
158
170
|
"userEmailError": "E-mail ili korisničko ime imaju nevažeći format.",
|
|
159
171
|
"userPhoneError": "Prefiks ili telefonski broj imaju nevažeći format.",
|
|
160
|
-
"userPasswordError": "Lozinka ima nevažeći format."
|
|
172
|
+
"userPasswordError": "Lozinka ima nevažeći format.",
|
|
173
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
174
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
175
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
161
176
|
},
|
|
162
177
|
"fr": {
|
|
163
178
|
"invalidField": "Désolé, ce nom d'utilisateur/adresse e-mail et/ou mot de passe n'a pas été reconnu.",
|
|
@@ -177,7 +192,10 @@ const TRANSLATIONS = {
|
|
|
177
192
|
"configError": "Une erreur inattendue s'est produite lors de la récupération de la configuration",
|
|
178
193
|
"userEmailError": "L'email ou le nom d'utilisateur ont un format invalide.",
|
|
179
194
|
"userPhoneError": "Le préfixe ou le numéro de téléphone ont un format invalide.",
|
|
180
|
-
"userPasswordError": "Le mot de passe a un format invalide."
|
|
195
|
+
"userPasswordError": "Le mot de passe a un format invalide.",
|
|
196
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
197
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
198
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
181
199
|
},
|
|
182
200
|
"cs": {
|
|
183
201
|
"invalidField": "Omlouváme se, toto uživatelské jméno/e-mailová adresa a/nebo heslo nebyly rozpoznány.",
|
|
@@ -197,7 +215,10 @@ const TRANSLATIONS = {
|
|
|
197
215
|
"configError": "Při načítání konfigurace došlo k neočekávané chybě",
|
|
198
216
|
"userEmailError": "E-mail nebo uživatelské jméno mají neplatný formát.",
|
|
199
217
|
"userPhoneError": "Předvolba nebo telefonní číslo mají neplatný formát.",
|
|
200
|
-
"userPasswordError": "Heslo má neplatný formát."
|
|
218
|
+
"userPasswordError": "Heslo má neplatný formát.",
|
|
219
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
220
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
221
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
201
222
|
},
|
|
202
223
|
"de": {
|
|
203
224
|
"invalidField": "Entschuldigung, dieser Benutzername/diese E-Mail-Adresse und/oder dieses Passwort wurde nicht erkannt.",
|
|
@@ -217,7 +238,10 @@ const TRANSLATIONS = {
|
|
|
217
238
|
"configError": "Beim Abrufen der Konfiguration ist ein unerwarteter Fehler aufgetreten",
|
|
218
239
|
"userEmailError": "Die E-Mail oder der Benutzername haben ein ungültiges Format.",
|
|
219
240
|
"userPhoneError": "Die Vorwahl oder die Telefonnummer haben ein ungültiges Format.",
|
|
220
|
-
"userPasswordError": "Das Passwort hat ein ungültiges Format."
|
|
241
|
+
"userPasswordError": "Das Passwort hat ein ungültiges Format.",
|
|
242
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
243
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
244
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
221
245
|
},
|
|
222
246
|
"pt-br": {
|
|
223
247
|
"invalidField": "Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",
|
|
@@ -237,7 +261,10 @@ const TRANSLATIONS = {
|
|
|
237
261
|
"configError": "Ocorreu um erro inesperado ao buscar a configuração",
|
|
238
262
|
"userEmailError": "O e-mail ou nome de usuário têm um formato inválido.",
|
|
239
263
|
"userPhoneError": "O prefixo ou o número de telefone têm um formato inválido.",
|
|
240
|
-
"userPasswordError": "A senha tem um formato inválido."
|
|
264
|
+
"userPasswordError": "A senha tem um formato inválido.",
|
|
265
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
266
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
267
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
241
268
|
},
|
|
242
269
|
"es-mx": {
|
|
243
270
|
"invalidField": "Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",
|
|
@@ -257,7 +284,10 @@ const TRANSLATIONS = {
|
|
|
257
284
|
"configError": "Se ha producido un error inesperado al obtener la configuración",
|
|
258
285
|
"userEmailError": "El correo electrónico o nombre de usuario tienen un formato inválido.",
|
|
259
286
|
"userPhoneError": "El prefijo o el número de teléfono tienen un formato inválido.",
|
|
260
|
-
"userPasswordError": "La contraseña tiene un formato inválido."
|
|
287
|
+
"userPasswordError": "La contraseña tiene un formato inválido.",
|
|
288
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
289
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
290
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
261
291
|
},
|
|
262
292
|
"es": {
|
|
263
293
|
"invalidField": "Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",
|
|
@@ -277,7 +307,10 @@ const TRANSLATIONS = {
|
|
|
277
307
|
"configError": "Se ha producido un error inesperado al obtener la configuración",
|
|
278
308
|
"userEmailError": "El correo electrónico o nombre de usuario tienen un formato inválido.",
|
|
279
309
|
"userPhoneError": "El prefijo o el número de teléfono tienen un formato inválido.",
|
|
280
|
-
"userPasswordError": "La contraseña tiene un formato inválido."
|
|
310
|
+
"userPasswordError": "La contraseña tiene un formato inválido.",
|
|
311
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
312
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
313
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
281
314
|
},
|
|
282
315
|
"pt": {
|
|
283
316
|
"invalidField": "Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",
|
|
@@ -297,7 +330,10 @@ const TRANSLATIONS = {
|
|
|
297
330
|
"configError": "Ocorreu um erro inesperado ao procurar a configuração",
|
|
298
331
|
"userEmailError": "O e-mail ou nome de usuário têm um formato inválido.",
|
|
299
332
|
"userPhoneError": "O prefixo ou o número de telefone têm um formato inválido.",
|
|
300
|
-
"userPasswordError": "A senha tem um formato inválido."
|
|
333
|
+
"userPasswordError": "A senha tem um formato inválido.",
|
|
334
|
+
"GmErr_LOGIN_DENIED": "Login denied for current user",
|
|
335
|
+
"GmErr_NotFound": 'Sorry, that username/email address and/or password has not been recognized.',
|
|
336
|
+
"AuthFailedPhoneNumber": "The phone number and/or password entered is incorrect."
|
|
301
337
|
}
|
|
302
338
|
};
|
|
303
339
|
const getTranslations = (url) => {
|
|
@@ -21940,11 +21976,20 @@ const PamLogin = class {
|
|
|
21940
21976
|
fetch(url.href, options)
|
|
21941
21977
|
.then((res) => res.json())
|
|
21942
21978
|
.then((res) => {
|
|
21943
|
-
|
|
21944
|
-
|
|
21979
|
+
var _a, _b;
|
|
21980
|
+
if (!res.token) {
|
|
21981
|
+
const errorCode = (_a = res === null || res === void 0 ? void 0 : res.thirdPartyResponse) === null || _a === void 0 ? void 0 : _a.errorCode;
|
|
21982
|
+
if (errorCode === 'GmErr_USER_AUTH_FAILED' && this.loginByPhoneNumber === 'true') {
|
|
21983
|
+
this.apiErrorMessage = translate$1('AuthFailedPhoneNumber', this.lang);
|
|
21984
|
+
}
|
|
21985
|
+
else {
|
|
21986
|
+
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);
|
|
21987
|
+
}
|
|
21988
|
+
return reject(this.apiErrorMessage);
|
|
21945
21989
|
}
|
|
21946
21990
|
else {
|
|
21947
|
-
|
|
21991
|
+
this.apiErrorMessage = '';
|
|
21992
|
+
return resolve(res.token);
|
|
21948
21993
|
}
|
|
21949
21994
|
});
|
|
21950
21995
|
});
|
|
@@ -22006,7 +22051,6 @@ const PamLogin = class {
|
|
|
22006
22051
|
})
|
|
22007
22052
|
.catch((err) => {
|
|
22008
22053
|
console.error(err);
|
|
22009
|
-
this.apiErrorMessage = translate$1('genericError', this.lang);
|
|
22010
22054
|
this.sendErrorNotification(this.apiErrorMessage);
|
|
22011
22055
|
this.isLoading = false;
|
|
22012
22056
|
});
|
|
@@ -22305,21 +22349,21 @@ const PamLogin = class {
|
|
|
22305
22349
|
* Render function
|
|
22306
22350
|
*/
|
|
22307
22351
|
render() {
|
|
22308
|
-
const visibilityIcon = h$2("span", { key: '
|
|
22352
|
+
const visibilityIcon = h$2("span", { key: 'a19b0bfe0301a46e46727ba992680e0c6751e6d8', class: "InputIcon" }, this.isPasswordVisible
|
|
22309
22353
|
? h$2("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$2("g", { transform: "translate(-110.856 -23.242)" }, h$2("circle", { class: "PasswordVisibilityIcon", cx: "0.05", cy: "0.05", r: "0.05", transform: "translate(121.017 31.148)" }), h$2("g", { transform: "translate(117.499 27.37)" }, h$2("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$2("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$2("g", { transform: "translate(110.856 24.899)" }, h$2("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$2("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$2("rect", { class: "PasswordVisibilityIcon", width: "0.972", height: "15.861", rx: "0.486", transform: "translate(114.827 23.858) rotate(-39.315)" })))
|
|
22310
22354
|
: h$2("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$2("g", { transform: "translate(-14.185 -27.832)" }, h$2("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$2("circle", { class: "PasswordVisibilityIcon", cx: "2.779", cy: "2.779", r: "2.779", transform: "translate(20.827 30.303)" }))));
|
|
22311
|
-
const loginForm = (h$2("div", { key: '
|
|
22355
|
+
const loginForm = (h$2("div", { key: '02a870b2ac118333299e05d473195b3c1b91708b', class: "FormBox" }, h$2("div", { key: '6cf09ebba758f1fecdb39d287f727a267ad1e85f', class: "FormValue", onKeyDown: this.handleSubmit }, this.loginByPhoneNumber === 'true'
|
|
22312
22356
|
? h$2("div", { class: (this.isContactValid && !this.apiErrorMessage) ? 'InputBox' : 'InputBox InputInvalidBox' }, h$2("div", { class: "PhoneInputBox" }, h$2("div", { class: "PrefixBox" }, h$2("vaadin-combo-box", { items: this.phoneCodes, value: this.phoneCodeValue, onChange: this.handleInputChangePartial('prefix') }), h$2("label", { class: (this.phoneCodeValue ? 'FieldFilledIn' : '') + ' ' + (this.isContactValid ? '' : 'FieldInvalid') }, translate$1('userPrefix', this.lang))), h$2("div", { class: "PhoneBox" }, h$2("input", { type: "text", placeholder: '', value: this.contactValue, onFocus: this.handleInputChangePartial('phone'), onInput: this.handleInputChangePartial('phone'), autocapitalize: "none", required: true }), h$2("label", { class: (this.contactValue ? 'FieldFilledIn' : '') + ' ' + (this.isContactValid ? '' : 'FieldInvalid') }, translate$1('userPhone', this.lang)))), !this.isContactValid &&
|
|
22313
22357
|
h$2("p", { class: "CredentialsError" }, translate$1('userPhoneError', this.lang)))
|
|
22314
22358
|
: h$2("div", { class: this.isContactValid ? 'InputBox' : 'InputBox InputInvalidBox' }, h$2("input", { type: "text", placeholder: '', value: this.contactValue, onInput: this.handleInputChangePartial('user'), autocapitalize: "none", required: true }), h$2("label", { class: (this.contactValue ? 'FieldFilledIn' : '') + ' ' + (this.isContactValid ? '' : 'FieldInvalid') }, translate$1('userEmail', this.lang)), !this.isContactValid &&
|
|
22315
|
-
h$2("p", { class: "CredentialsError" }, translate$1('userEmailError', this.lang))), h$2("div", { key: '
|
|
22316
|
-
h$2("p", { key: '
|
|
22317
|
-
h$2("div", { key: '
|
|
22318
|
-
h$2("slot", { key: '
|
|
22319
|
-
h$2("slot", { key: '
|
|
22320
|
-
h$2("p", { key: '
|
|
22321
|
-
const skeleton = (h$2("div", { key: '
|
|
22322
|
-
return (h$2("section", { key: '
|
|
22359
|
+
h$2("p", { class: "CredentialsError" }, translate$1('userEmailError', this.lang))), h$2("div", { key: '2ffb92106e2e8de12bad956c1f44e542290cef07', class: this.isPasswordValid ? 'InputBox' : 'InputBox InputInvalidBox' }, visibilityIcon, h$2("input", { key: '97e51ecf6e8280ada99e1c7d566e0831c7eadf65', type: this.isPasswordVisible ? "text" : "password", placeholder: '', value: this.passwordValue, onInput: this.handleInputChangePartial('password'), autocapitalize: "none", required: true }), h$2("label", { key: 'a7baf699e8c59857c8bd4b1a9082d89c2d051176', class: (this.passwordValue ? 'FieldFilledIn' : '') + ' ' + (this.isPasswordValid ? '' : 'FieldInvalid') }, translate$1('password', this.lang)), this.isPasswordValid ||
|
|
22360
|
+
h$2("p", { key: '6f0dff3c1a41c4cdcb84e407f96b82506cbfd1e5', class: "CredentialsError" }, translate$1('userPasswordError', this.lang))), this.passwordReset == 'true' &&
|
|
22361
|
+
h$2("div", { key: 'a5fc1fe93152f9fa2eb8c826236af82c27f30dde', class: "ForgotPassword" }, h$2("button", { key: '5a9b4e94828d5af66df6236f94b10f1fc5ccce55', onClick: this.resetPassword }, translate$1('forgotPassword', this.lang))), this.captchaData.isEnabled && this.captchaData.provider === 'cloudflare' &&
|
|
22362
|
+
h$2("slot", { key: '354869d594c0e26b395a00d8f155fec91f6fb10a', name: "turnstile" }), this.captchaData.isEnabled && this.captchaData.provider === 'google' &&
|
|
22363
|
+
h$2("slot", { key: 'b694bd7b46dbdbcdec466ba85d126290a181cf22', name: "google" }), h$2("button", { key: 'dd2ac8ae3cf8234fd37250d64b49639379ba5234', disabled: this.isSubmitDisabled(), class: "SubmitCredentials", onClick: this.handleLogin }, translate$1('login', this.lang)), this.apiErrorMessage &&
|
|
22364
|
+
h$2("p", { key: 'c8ddda7658d43130fc66e7748d81463bf128b366', class: "CredentialsError" }, this.apiErrorMessage))));
|
|
22365
|
+
const skeleton = (h$2("div", { key: 'addbd037d2c3c63008a3fd76e65fcc8a2f065db6', class: "LoadingSkeleton" }, h$2("form", { key: '4280414019f51d16cf40b6e73444f4b67c7b35cf', class: "Form" }, h$2("section", { key: '281fa238417344eb64bc2ef209e6823d1757c653', class: "FieldsSection" }, h$2("div", { key: '36e854eb7fe82e26dd0c55920b73eac12ed3016f', class: "FieldContainer" }, h$2("div", { key: '9cc84bd425eb116a0c7ac57c1cbe19ca54436f0e', class: "FieldTitle" }, h$2("ui-skeleton", { key: 'c416ad8d43fba87a0ccf8b8583bff5b70da69ded', structure: "title", width: "auto", height: "20px" })), h$2("ui-skeleton", { key: 'be246d0bee24c80a1ae71979d0f4bdb5d8ae1310', structure: "rectangle", width: "auto", height: "35px" })), h$2("div", { key: '910c0d702613615470a0087118aa1dce090898c7', class: "FieldContainer" }, h$2("div", { key: '71ec9ab3e69daa5cdb3ff000f5faa045fa9a5272', class: "FieldTitle" }, h$2("ui-skeleton", { key: '9b55b3418f1035dbadc68fb9931dad3048cc4325', structure: "title", width: "auto", height: "20px" })), h$2("ui-skeleton", { key: '9a7e56a7d071a76caadfaacbb72aca9efd295913', structure: "rectangle", width: "auto", height: "35px" }))), h$2("section", { key: 'eb906f1cc4d5890829046e68d36e83a7950d08e7', class: "ButtonsSection" }, h$2("div", { key: 'dd843ac80ddc72c30542ba71030bba3fbccd2f2f', class: "Button" }, h$2("ui-skeleton", { key: 'a746afd5467988c7b2e899cdd5b8e1ad8b88032b', structure: "rectangle", width: "auto", height: "50px" }))))));
|
|
22366
|
+
return (h$2("section", { key: '537aaa5253910b53c8c5d96a17d944fb98ab694c', ref: el => this.stylingContainer = el }, this.isLoading ? skeleton : loginForm));
|
|
22323
22367
|
}
|
|
22324
22368
|
static get watchers() { return {
|
|
22325
22369
|
"translationUrl": ["handleNewTranslations"],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { P as pam_login } from './pam-login-
|
|
1
|
+
export { P as pam_login } from './pam-login-b9341b6d.js';
|
|
2
2
|
import { r as registerInstance, h, H as Host } from './index-a126c540.js';
|
|
3
3
|
|
|
4
4
|
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)}}";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{P as PamLogin}from"./pam-login-
|
|
1
|
+
export{P as PamLogin}from"./pam-login-b9341b6d.js";import"./index-a126c540.js";
|