@everymatrix/user-login 1.61.1 → 1.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-2eb404c0.js → index-430b4c77.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/user-login.cjs.entry.js +169 -45
- package/dist/cjs/user-login.cjs.js +2 -2
- package/dist/collection/components/user-login/user-login.js +134 -21
- package/dist/collection/utils/locale.utils.js +36 -24
- package/dist/collection/utils/types.js +1 -0
- package/dist/esm/{index-996f8854.js → index-16e95691.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/user-login.entry.js +169 -45
- 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 +32 -0
- package/dist/types/components.d.ts +6 -0
- package/dist/types/utils/types.d.ts +6 -0
- package/dist/user-login/{p-05a62ad8.entry.js → p-20f0604a.entry.js} +48 -48
- package/dist/user-login/p-55620ccb.js +2 -0
- 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-8cb697c3.js +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/storybook/main.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/storybook/preview.d.ts +0 -0
- /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
|
@@ -41,6 +41,9 @@ export class UserLogin {
|
|
|
41
41
|
contact: this.userNameEmail,
|
|
42
42
|
password: this.userPassword
|
|
43
43
|
};
|
|
44
|
+
if (this.captchaData.isEnabled) {
|
|
45
|
+
headers['X-Captcha-Response'] = this.captchaData.token;
|
|
46
|
+
}
|
|
44
47
|
const options = {
|
|
45
48
|
method: 'POST',
|
|
46
49
|
headers,
|
|
@@ -92,10 +95,12 @@ export class UserLogin {
|
|
|
92
95
|
if (sessionId) {
|
|
93
96
|
this.isLoginLoading = false;
|
|
94
97
|
window.postMessage({ type: 'UserSessionID', session: sessionId, userid: playerId }, window.location.href);
|
|
95
|
-
window.postMessage({
|
|
98
|
+
window.postMessage({
|
|
99
|
+
type: 'WidgetNotification', data: {
|
|
96
100
|
type: 'success',
|
|
97
101
|
message: translate('successMessage', this.lang)
|
|
98
|
-
}
|
|
102
|
+
}
|
|
103
|
+
}, window.location.href);
|
|
99
104
|
this.hasError = false;
|
|
100
105
|
}
|
|
101
106
|
}
|
|
@@ -146,10 +151,12 @@ export class UserLogin {
|
|
|
146
151
|
}
|
|
147
152
|
if (data.sessionId) {
|
|
148
153
|
window.postMessage({ type: 'UserSessionID', session: data.sessionId, userid: data.userId }, window.location.href);
|
|
149
|
-
window.postMessage({
|
|
154
|
+
window.postMessage({
|
|
155
|
+
type: 'WidgetNotification', data: {
|
|
150
156
|
type: 'success',
|
|
151
157
|
message: translate('successMessage', this.lang)
|
|
152
|
-
}
|
|
158
|
+
}
|
|
159
|
+
}, window.location.href);
|
|
153
160
|
this.hasError = false;
|
|
154
161
|
dispatchCustomEvent('logged_in', { userId: data.userId });
|
|
155
162
|
}
|
|
@@ -218,6 +225,10 @@ export class UserLogin {
|
|
|
218
225
|
this.isValidPassword = this.validate('password', inputValue);
|
|
219
226
|
break;
|
|
220
227
|
}
|
|
228
|
+
if (!this.isValidUserEmail || !this.isValidUserPhone || !this.isValidPassword) {
|
|
229
|
+
this.hasError = true;
|
|
230
|
+
this.errorMessage = translate('invalidField', this.lang);
|
|
231
|
+
}
|
|
221
232
|
};
|
|
222
233
|
// this partially applies the location to avoid constructing an anonymous function in jsx, i.e. (e)=>handleInputChange(e,location), which would be needed for 2 args
|
|
223
234
|
this.handleInputChangePartial = (location) => (e) => this.handleInputChange(e, location);
|
|
@@ -279,6 +290,12 @@ export class UserLogin {
|
|
|
279
290
|
this.hasError = false;
|
|
280
291
|
this.userPrefixOptions = undefined;
|
|
281
292
|
this.isLoginLoading = false;
|
|
293
|
+
this.captchaData = {
|
|
294
|
+
isEnabled: true,
|
|
295
|
+
token: '',
|
|
296
|
+
provider: '',
|
|
297
|
+
siteKey: ''
|
|
298
|
+
};
|
|
282
299
|
this.mbSource = undefined;
|
|
283
300
|
}
|
|
284
301
|
/**
|
|
@@ -320,6 +337,14 @@ export class UserLogin {
|
|
|
320
337
|
if (this.translationUrl.length > 2) {
|
|
321
338
|
await getTranslations(this.translationUrl);
|
|
322
339
|
}
|
|
340
|
+
this.getLoginConfig().then(() => {
|
|
341
|
+
this.appendCaptchaScript();
|
|
342
|
+
}).catch((error) => {
|
|
343
|
+
console.error(error);
|
|
344
|
+
this.hasError = true;
|
|
345
|
+
this.errorMessage = translate('configError', this.lang);
|
|
346
|
+
this.sendErrorNotification(this.errorMessage);
|
|
347
|
+
});
|
|
323
348
|
}
|
|
324
349
|
/**
|
|
325
350
|
* Lifecycle method: Set up event listeners after the component is rendered
|
|
@@ -339,6 +364,92 @@ export class UserLogin {
|
|
|
339
364
|
window.addEventListener('LoginCredentials', this.autofillCredentialsHandler);
|
|
340
365
|
window.postMessage({ type: 'UserLoginDidLoad' });
|
|
341
366
|
}
|
|
367
|
+
/**
|
|
368
|
+
* Fetches the login configuration from the backend API.
|
|
369
|
+
*
|
|
370
|
+
* @returns A Promise that resolves once the configuration is fetched and set.
|
|
371
|
+
*/
|
|
372
|
+
getLoginConfig() {
|
|
373
|
+
const url = new URL('/api/v1/players/password-management/auth/password/config', this.endpoint);
|
|
374
|
+
return new Promise((resolve, reject) => {
|
|
375
|
+
fetch(url.href)
|
|
376
|
+
.then((res) => {
|
|
377
|
+
if (!res.ok) {
|
|
378
|
+
throw new Error(`HTTP error! Status: ${res.status}`);
|
|
379
|
+
}
|
|
380
|
+
return res.json();
|
|
381
|
+
})
|
|
382
|
+
.then((res) => {
|
|
383
|
+
const { captcha } = res;
|
|
384
|
+
if (captcha && typeof captcha.provider === 'string') {
|
|
385
|
+
captcha.provider = captcha.provider.toLowerCase();
|
|
386
|
+
}
|
|
387
|
+
this.captchaData = Object.assign({}, captcha);
|
|
388
|
+
resolve();
|
|
389
|
+
})
|
|
390
|
+
.catch((error) => {
|
|
391
|
+
console.error('Error fetching login configuration:', error);
|
|
392
|
+
reject(error);
|
|
393
|
+
});
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Handles the integration of CAPTCHA based on the login configuration.
|
|
398
|
+
* Dynamically injects the necessary CAPTCHA script if enabled.
|
|
399
|
+
*/
|
|
400
|
+
handleCaptcha() {
|
|
401
|
+
const { isEnabled, provider, siteKey } = this.captchaData;
|
|
402
|
+
if (!isEnabled) {
|
|
403
|
+
return;
|
|
404
|
+
}
|
|
405
|
+
if (!['cloudflare', 'google'].includes(provider)) {
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
if (provider === 'cloudflare') {
|
|
409
|
+
window.turnstile.render('#turnstileContainer', {
|
|
410
|
+
sitekey: siteKey,
|
|
411
|
+
theme: 'light',
|
|
412
|
+
callback: this.captchaCallback.bind(this),
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
else if (provider === 'google') {
|
|
416
|
+
window.grecaptcha.ready(() => {
|
|
417
|
+
window.grecaptcha.render('googleContainer', {
|
|
418
|
+
sitekey: siteKey,
|
|
419
|
+
callback: this.captchaCallback.bind(this),
|
|
420
|
+
theme: 'light'
|
|
421
|
+
});
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Common callback function for CAPTCHA response handling.
|
|
427
|
+
* @param token CAPTCHA response token.
|
|
428
|
+
*/
|
|
429
|
+
captchaCallback(token) {
|
|
430
|
+
this.captchaData.token = token;
|
|
431
|
+
this.captchaData = Object.assign({}, this.captchaData); // Needed to tell Stencil something was changed
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Dynamically loads the Turnstile script and renders CAPTCHA when ready.
|
|
435
|
+
* @param src - The URL of the CAPTCHA script to load.
|
|
436
|
+
* @param captcha - The CAPTCHA configuration.
|
|
437
|
+
*/
|
|
438
|
+
appendCaptchaScript() {
|
|
439
|
+
const { isEnabled, provider } = this.captchaData;
|
|
440
|
+
if (!isEnabled) {
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
const script = document.createElement('script');
|
|
444
|
+
if (provider === 'cloudflare') {
|
|
445
|
+
script.src = 'https://challenges.cloudflare.com/turnstile/v0/api.js';
|
|
446
|
+
}
|
|
447
|
+
else if (provider === 'google') {
|
|
448
|
+
script.src = 'https://www.google.com/recaptcha/api.js';
|
|
449
|
+
}
|
|
450
|
+
script.onload = this.handleCaptcha.bind(this);
|
|
451
|
+
document.head.appendChild(script);
|
|
452
|
+
}
|
|
342
453
|
/**
|
|
343
454
|
* Lifecycle method: Clean up event listeners when the component is removed
|
|
344
455
|
*/
|
|
@@ -351,10 +462,12 @@ export class UserLogin {
|
|
|
351
462
|
*/
|
|
352
463
|
sendErrorNotification(errorMessage) {
|
|
353
464
|
window.postMessage({ type: "HasError", error: errorMessage }, window.location.href);
|
|
354
|
-
window.postMessage({
|
|
465
|
+
window.postMessage({
|
|
466
|
+
type: 'WidgetNotification', data: {
|
|
355
467
|
type: 'error',
|
|
356
468
|
message: errorMessage
|
|
357
|
-
}
|
|
469
|
+
}
|
|
470
|
+
}, window.location.href);
|
|
358
471
|
}
|
|
359
472
|
/**
|
|
360
473
|
* Debounce function to limit API calls
|
|
@@ -388,20 +501,19 @@ export class UserLogin {
|
|
|
388
501
|
* Render function
|
|
389
502
|
*/
|
|
390
503
|
render() {
|
|
391
|
-
let visibilityIcon = h("span", { key: '
|
|
392
|
-
h("svg", { key: '
|
|
393
|
-
h("svg", { key: '
|
|
394
|
-
let userIdentification = h("div", { key: '
|
|
395
|
-
? h("div", { class: (!this.isValidUserPhone || this.hasError) ? 'InputBox InputInvalidBox' : 'InputBox ' }, h("div", { class: "PhoneInputBox" }, h("div", { class: "PrefixBox" }, h("vaadin-combo-box", { items: this.userPrefixOptions, value: this.userPrefix, onChange: this.handleInputChangePartial('prefix') }), h("label", { class: (this.userPrefix ? 'FieldFilledIn' : '') + ' ' + (!this.isValidUserPhone || this.hasError ? 'FieldInvalid' : '') }, translate('userPrefix', this.lang))), h("div", { class: "PhoneBox" }, h("input", { type: "text", placeholder: '', value: this.userPhone, onFocus: this.handleInputChangePartial('phone'), onInput: this.handleInputChangePartial('phone'), autocapitalize: "none", required: true }), h("label", { class: (this.userPhone ? 'FieldFilledIn' : '') + ' ' + (!this.isValidUserPhone || this.hasError ? 'FieldInvalid' : '') }, translate('userPhone', this.lang))))
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
h("
|
|
400
|
-
h("div", { key: '894ff57a5c2eb6561ecd4b5e1b507c605001ca92', class: "ForgotPassword" }, h("button", { key: '77e12a76aa3a9ce581f06405bd2b07e80787ac09', onClick: this.resetPassword }, translate('forgotPassword', this.lang))), h("button", { key: 'a0b0f632c1950f6544230842d71605ac594f7cea', disabled: ((this.loginByPhoneNumber !== 'true' && (!this.isValidUserEmail || !this.userNameEmail)) ||
|
|
504
|
+
let visibilityIcon = h("span", { key: '1192a2390f0b5ea646c8e96a7a3f17e18b16a306', class: "InputIcon" }, this.isPasswordVisible &&
|
|
505
|
+
h("svg", { key: '13fcccd4457633040b0bf29fed962961df64176c', 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", { key: '19762a0b0287c8e2a51a3b3bba7cecb353a4f379', transform: "translate(-110.856 -23.242)" }, h("circle", { key: '4f46b166744078ea7f8b0f13e26b359ebb8f03da', class: "PasswordVisibilityIcon", cx: "0.05", cy: "0.05", r: "0.05", transform: "translate(121.017 31.148)" }), h("g", { key: '7a82fe4e4f4ed670f8d83c8b774bda62673c548a', transform: "translate(117.499 27.37)" }, h("path", { key: '0454916b36c2a2994fa6e7ccf2feac38861d283d', 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", { key: '3d166e1f5b399ea5f9013fdaa24bf64b68f531b5', 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", { key: '8c5e38f057b58a3afcb8a5cc6a44bb852cfa7204', transform: "translate(110.856 24.899)" }, h("path", { key: '72910c3a6ba83dac758dfa7aa36721364ebf8a6d', 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", { key: 'd795428138b8ed6cf47ff846dcc69f3940892776', 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", { key: 'ca376eb5a1a7300b5893936ad987808576933081', class: "PasswordVisibilityIcon", width: "0.972", height: "15.861", rx: "0.486", transform: "translate(114.827 23.858) rotate(-39.315)" }))), !this.isPasswordVisible &&
|
|
506
|
+
h("svg", { key: 'd69b7a469e213542bc6deb56156cfa86febbe8ac', 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", { key: 'd45723a6916ece014694c1ea1fa171ebc905d21f', transform: "translate(-14.185 -27.832)" }, h("path", { key: 'd19d2b273a2c9366d6039ad87b1a1df203a49d2e', 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", { key: '3127ecec570ef7f567ecb5f3362d65986669de0e', class: "PasswordVisibilityIcon", cx: "2.779", cy: "2.779", r: "2.779", transform: "translate(20.827 30.303)" }))));
|
|
507
|
+
let userIdentification = h("div", { key: '69731dda5bf4fd23c0f143de9a662bd12388cc73', class: "FormBox" }, h("div", { key: '5b0ca2d058095a6abfdcf3c5feeb9b2e0a7e894c', class: "FormValue" }, this.loginByPhoneNumber === 'true'
|
|
508
|
+
? h("div", { class: (!this.isValidUserPhone || this.hasError) ? 'InputBox InputInvalidBox' : 'InputBox ' }, h("div", { class: "PhoneInputBox" }, h("div", { class: "PrefixBox" }, h("vaadin-combo-box", { items: this.userPrefixOptions, value: this.userPrefix, onChange: this.handleInputChangePartial('prefix') }), h("label", { class: (this.userPrefix ? 'FieldFilledIn' : '') + ' ' + (!this.isValidUserPhone || this.hasError ? 'FieldInvalid' : '') }, translate('userPrefix', this.lang))), h("div", { class: "PhoneBox" }, h("input", { type: "text", placeholder: '', value: this.userPhone, onFocus: this.handleInputChangePartial('phone'), onInput: this.handleInputChangePartial('phone'), autocapitalize: "none", required: true }), h("label", { class: (this.userPhone ? 'FieldFilledIn' : '') + ' ' + (!this.isValidUserPhone || this.hasError ? 'FieldInvalid' : '') }, translate('userPhone', this.lang)))))
|
|
509
|
+
: h("div", { class: (!this.isValidUserEmail || this.hasError) ? 'InputBox InputInvalidBox' : 'InputBox' }, h("input", { type: "text", placeholder: '', value: this.userNameEmail, onInput: this.handleInputChangePartial('user'), autocapitalize: "none", required: true }), h("label", { class: (this.userNameEmail ? 'FieldFilledIn' : '') + ' ' + (!this.isValidUserEmail || this.hasError ? 'FieldInvalid' : '') }, translate('userEmail', this.lang))), h("div", { key: '20c86c0ca9a72f7d50453b297d976c84149011fa', class: (!this.isValidPassword || this.hasError) ? 'InputBox InputInvalidBox' : 'InputBox' }, visibilityIcon, h("input", { key: '825f782812500632eab0082b2e6309442372d3b8', type: this.isPasswordVisible ? "text" : "password", placeholder: '', value: this.userPassword, onInput: this.handleInputChangePartial('password'), autocapitalize: "none", required: true }), h("label", { key: 'f3f1e9a14433a5002d51444f3f5de4c680633950', class: (this.userPassword ? 'FieldFilledIn' : '') + ' ' + (!this.isValidPassword || this.hasError ? 'FieldInvalid' : '') }, translate('password', this.lang))), this.passwordReset == 'true' &&
|
|
510
|
+
h("div", { key: 'e59b1fc8dde8d6ef5758404fd544ef914b9b0807', class: "ForgotPassword" }, h("button", { key: 'b147c546b39422d3eb8461229696333e9283ee03', onClick: this.resetPassword }, translate('forgotPassword', this.lang))), this.captchaData.isEnabled && this.captchaData.provider === 'cloudflare' &&
|
|
511
|
+
h("slot", { key: '30bb77473faed7c143719196599782ab4625314c', name: "turnstile" }), this.captchaData.isEnabled && this.captchaData.provider === 'google' &&
|
|
512
|
+
h("slot", { key: '3c67a39492482cf483dbc7306e9f93c74c847e73', name: "google" }), h("button", { key: '27b2016e65c4d910d297b0ebd014553258046a93', disabled: ((this.loginByPhoneNumber !== 'true' && (!this.isValidUserEmail || !this.userNameEmail)) ||
|
|
401
513
|
(this.loginByPhoneNumber === 'true' && (!this.isValidUserPhone || !this.userPhone || !this.userPrefix)) ||
|
|
402
|
-
!this.userPassword || !this.isValidPassword) || this.isLoginLoading, class: "SubmitCredentials", onClick: this.handleLogin }, translate('login', this.lang)), this.hasError &&
|
|
403
|
-
h("p", { key: '
|
|
404
|
-
return h("section", { key: '
|
|
514
|
+
!this.userPassword || !this.isValidPassword) || this.isLoginLoading || (this.captchaData.isEnabled && !this.captchaData.token), class: "SubmitCredentials", onClick: this.handleLogin }, translate('login', this.lang)), this.hasError &&
|
|
515
|
+
h("p", { key: '33d142c5a20d8c3003b51c4ecad256215314c2b3', class: "CredentialsError" }, this.errorMessage)));
|
|
516
|
+
return h("section", { key: '02a36db14f738bd0f84dc0267aea6bff4fd331d8', ref: el => this.stylingContainer = el }, userIdentification);
|
|
405
517
|
}
|
|
406
518
|
static get is() { return "user-login"; }
|
|
407
519
|
static get encapsulation() { return "shadow"; }
|
|
@@ -678,7 +790,7 @@ export class UserLogin {
|
|
|
678
790
|
"optional": false,
|
|
679
791
|
"docs": {
|
|
680
792
|
"tags": [],
|
|
681
|
-
"text": ""
|
|
793
|
+
"text": "The source identifier for message bus styling.\nThis is used to apply styles dynamically from a stream."
|
|
682
794
|
},
|
|
683
795
|
"attribute": "mb-source",
|
|
684
796
|
"reflect": true
|
|
@@ -698,7 +810,8 @@ export class UserLogin {
|
|
|
698
810
|
"errorMessage": {},
|
|
699
811
|
"hasError": {},
|
|
700
812
|
"userPrefixOptions": {},
|
|
701
|
-
"isLoginLoading": {}
|
|
813
|
+
"isLoginLoading": {},
|
|
814
|
+
"captchaData": {}
|
|
702
815
|
};
|
|
703
816
|
}
|
|
704
817
|
static get watchers() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const DEFAULT_LANGUAGE = 'en';
|
|
2
2
|
const TRANSLATIONS = {
|
|
3
3
|
"en": {
|
|
4
|
-
"invalidField": "
|
|
4
|
+
"invalidField": "Sorry, that username/email address and/or password has not been recognized.",
|
|
5
5
|
"forgotPassword": "Forgot Password",
|
|
6
6
|
"userEmail": "Username or Email",
|
|
7
7
|
"userPhone": "Phone number",
|
|
@@ -14,10 +14,11 @@ const TRANSLATIONS = {
|
|
|
14
14
|
"GmErr_USER_ACCOUNT_BLOCKED": "You’re currently unable to login to your account - please contact Customer Services for more information.",
|
|
15
15
|
"setUpPassowrd": "You need to reset your password",
|
|
16
16
|
"Unauthorized": "The player account number, e-mail address or password is incorrect",
|
|
17
|
-
"CountryRestricted": "Registration is not possible from a restricted jurisdiction. If you encounter further issues, please contact support."
|
|
17
|
+
"CountryRestricted": "Registration is not possible from a restricted jurisdiction. If you encounter further issues, please contact support.",
|
|
18
|
+
"configError": "An unexpected error has occured when fetchig the configuration"
|
|
18
19
|
},
|
|
19
20
|
"tr": {
|
|
20
|
-
"invalidField": "
|
|
21
|
+
"invalidField": "Üzgünüz, bu kullanıcı adı/e-posta adresi ve/veya şifre tanınmadı.",
|
|
21
22
|
"forgotPassword": "Şifremi Unuttum",
|
|
22
23
|
"userEmail": "Kullanıcı Adı veya E-posta",
|
|
23
24
|
"userPhone": "Telefon numarası",
|
|
@@ -30,10 +31,11 @@ const TRANSLATIONS = {
|
|
|
30
31
|
"GmErr_USER_ACCOUNT_BLOCKED": "Şu anda hesabınıza giriş yapamıyorsunuz - daha fazla bilgi için Müşteri Hizmetleri ile iletişime geçin.",
|
|
31
32
|
"setUpPassowrd": "Şifrenizi sıfırlamanız gerekiyor",
|
|
32
33
|
"Unauthorized": "Oyuncu hesap numarası, e-posta adresi veya şifre hatalı",
|
|
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."
|
|
34
|
+
"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.",
|
|
35
|
+
"configError": "Yapılandırma alınırken beklenmeyen bir hata oluştu"
|
|
34
36
|
},
|
|
35
37
|
"en-us": {
|
|
36
|
-
"invalidField": "
|
|
38
|
+
"invalidField": "Sorry, that username/email address and/or password has not been recognized.",
|
|
37
39
|
"forgotPassword": "Forgot Password",
|
|
38
40
|
"userEmail": "Username or Email",
|
|
39
41
|
"userPhone": "Phone number",
|
|
@@ -46,10 +48,11 @@ const TRANSLATIONS = {
|
|
|
46
48
|
"GmErr_USER_ACCOUNT_BLOCKED": "You’re currently unable to login to your account - please contact Customer Services for more information.",
|
|
47
49
|
"setUpPassowrd": "You need to reset your password",
|
|
48
50
|
"Unauthorized": "The player account number, e-mail address or password is incorrect",
|
|
49
|
-
"CountryRestricted": "Registration is not possible from a restricted jurisdiction. If you encounter further issues, please contact support."
|
|
51
|
+
"CountryRestricted": "Registration is not possible from a restricted jurisdiction. If you encounter further issues, please contact support.",
|
|
52
|
+
"configError": "An unexpected error has occured when fetchig the configuration"
|
|
50
53
|
},
|
|
51
54
|
"ro": {
|
|
52
|
-
"invalidField": "
|
|
55
|
+
"invalidField": "Ne pare rău, acest nume de utilizator/adresă de e-mail și/sau parolă nu a fost recunoscut.",
|
|
53
56
|
"forgotPassword": "Ați uitat parola",
|
|
54
57
|
"userEmail": "Nume utilizator sau email",
|
|
55
58
|
"userPhone": "Număr de telefon",
|
|
@@ -62,10 +65,11 @@ const TRANSLATIONS = {
|
|
|
62
65
|
"GmErr_USER_ACCOUNT_BLOCKED": "În prezent, nu vă puteți conecta la contul dvs. - vă rugăm să contactați Serviciul Clienți pentru mai multe informații.",
|
|
63
66
|
"setUpPassowrd": "Trebuie să vă resetați parola",
|
|
64
67
|
"Unauthorized": "Numărul contului de jucător, adresa de e-mail sau parola sunt incorecte",
|
|
65
|
-
"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."
|
|
68
|
+
"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.",
|
|
69
|
+
"configError": "A apărut o eroare neașteptată la preluarea configurației"
|
|
66
70
|
},
|
|
67
71
|
"hr": {
|
|
68
|
-
"invalidField": "
|
|
72
|
+
"invalidField": "Žao nam je, to korisničko ime/adresa e-pošte i/ili lozinka nisu prepoznati.",
|
|
69
73
|
"forgotPassword": "Zaboravljena lozinka",
|
|
70
74
|
"userEmail": "Korisničko ime ili email",
|
|
71
75
|
"userPhone": "Broj telefona",
|
|
@@ -78,10 +82,11 @@ const TRANSLATIONS = {
|
|
|
78
82
|
"Forbidden_UserAccount_Blocked": "Vaš račun je blokiran",
|
|
79
83
|
"GmErr_USER_ACCOUNT_BLOCKED": "Trenutno se ne možete prijaviti na svoj račun - molimo kontaktirajte Službu za korisnike za više informacija.",
|
|
80
84
|
"Unauthorized": "Lozinka, e-mail adresa ili korisničko ime su pogrešno uneseni",
|
|
81
|
-
"CountryRestricted": "Prijava nije moguća iz zemlje ograničene jurisdikcije. U slučaju daljnjih poteškoća, molimo kontaktirajte podršku."
|
|
85
|
+
"CountryRestricted": "Prijava nije moguća iz zemlje ograničene jurisdikcije. U slučaju daljnjih poteškoća, molimo kontaktirajte podršku.",
|
|
86
|
+
"configError": "Došlo je do neočekivane pogreške prilikom dohvaćanja konfiguracije"
|
|
82
87
|
},
|
|
83
88
|
"fr": {
|
|
84
|
-
"invalidField": "
|
|
89
|
+
"invalidField": "Désolé, ce nom d'utilisateur/adresse e-mail et/ou mot de passe n'a pas été reconnu.",
|
|
85
90
|
"forgotPassword": "Mot de passe oublié",
|
|
86
91
|
"userEmail": "Nom d'utilisateur ou email",
|
|
87
92
|
"userPhone": "Numéro de téléphone",
|
|
@@ -94,10 +99,11 @@ const TRANSLATIONS = {
|
|
|
94
99
|
"GmErr_USER_ACCOUNT_BLOCKED": "Vous ne pouvez actuellement pas vous connecter à votre compte - veuillez contacter le service client pour plus d'informations.",
|
|
95
100
|
"setUpPassowrd": "Vous devez réinitialiser votre mot de passe",
|
|
96
101
|
"Unauthorized": "Le numéro de compte joueur, l'adresse e-mail ou le mot de passe est incorrect",
|
|
97
|
-
"CountryRestricted": "L'inscription n'est pas possible depuis une juridiction restreinte. Si vous rencontrez d'autres problèmes, veuillez contacter le support."
|
|
102
|
+
"CountryRestricted": "L'inscription n'est pas possible depuis une juridiction restreinte. Si vous rencontrez d'autres problèmes, veuillez contacter le support.",
|
|
103
|
+
"configError": "Une erreur inattendue s'est produite lors de la récupération de la configuration"
|
|
98
104
|
},
|
|
99
105
|
"cs": {
|
|
100
|
-
"invalidField": "
|
|
106
|
+
"invalidField": "Omlouváme se, toto uživatelské jméno/e-mailová adresa a/nebo heslo nebyly rozpoznány.",
|
|
101
107
|
"forgotPassword": "Zaboravio sam lozinku ",
|
|
102
108
|
"userEmail": "Korisničko ime ili email",
|
|
103
109
|
"userPhone": "Telefonní číslo",
|
|
@@ -110,10 +116,11 @@ const TRANSLATIONS = {
|
|
|
110
116
|
"GmErr_USER_ACCOUNT_BLOCKED": "Momentálně se nemůžete přihlásit ke svému účtu - pro více informací kontaktujte zákaznický servis.",
|
|
111
117
|
"setUpPassowrd": "Musíte resetovat své heslo",
|
|
112
118
|
"Unauthorized": "Číslo účtu hráče, e-mailová adresa nebo heslo je nesprávné",
|
|
113
|
-
"CountryRestricted": "Registrace není možná z omezené jurisdikce. Pokud narazíte na další potíže, kontaktujte prosím podporu."
|
|
119
|
+
"CountryRestricted": "Registrace není možná z omezené jurisdikce. Pokud narazíte na další potíže, kontaktujte prosím podporu.",
|
|
120
|
+
"configError": "Při načítání konfigurace došlo k neočekávané chybě"
|
|
114
121
|
},
|
|
115
122
|
"de": {
|
|
116
|
-
"invalidField": "
|
|
123
|
+
"invalidField": "Entschuldigung, dieser Benutzername/diese E-Mail-Adresse und/oder dieses Passwort wurde nicht erkannt.",
|
|
117
124
|
"forgotPassword": "Passwort vergessen",
|
|
118
125
|
"userEmail": "Benutzername oder E-Mail",
|
|
119
126
|
"userPhone": "Telefonnummer",
|
|
@@ -126,10 +133,11 @@ const TRANSLATIONS = {
|
|
|
126
133
|
"GmErr_USER_ACCOUNT_BLOCKED": "Sie können sich derzeit nicht in Ihr Konto einloggen - bitte kontaktieren Sie den Kundenservice für weitere Informationen.",
|
|
127
134
|
"setUpPassowrd": "Sie müssen Ihr Passwort zurücksetzen",
|
|
128
135
|
"Unauthorized": "Die Spieler-Kontonummer, E-Mail-Adresse oder das Passwort ist falsch",
|
|
129
|
-
"CountryRestricted": "Eine Registrierung ist aus einer eingeschränkten Gerichtsbarkeit nicht möglich. Wenn Sie weitere Probleme haben, wenden Sie sich bitte an den Support."
|
|
136
|
+
"CountryRestricted": "Eine Registrierung ist aus einer eingeschränkten Gerichtsbarkeit nicht möglich. Wenn Sie weitere Probleme haben, wenden Sie sich bitte an den Support.",
|
|
137
|
+
"configError": "Beim Abrufen der Konfiguration ist ein unerwarteter Fehler aufgetreten"
|
|
130
138
|
},
|
|
131
139
|
"pt-br": {
|
|
132
|
-
"invalidField": "
|
|
140
|
+
"invalidField": "Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",
|
|
133
141
|
"forgotPassword": "Esqueceu a senha",
|
|
134
142
|
"userEmail": "Nome de usuário ou e-mail",
|
|
135
143
|
"userPhone": "Número de telefone",
|
|
@@ -142,10 +150,11 @@ const TRANSLATIONS = {
|
|
|
142
150
|
"GmErr_USER_ACCOUNT_BLOCKED": "Você não pode fazer login na sua conta no momento - entre em contato com o Atendimento ao Cliente para mais informações.",
|
|
143
151
|
"setUpPassowrd": "Você precisa redefinir sua senha",
|
|
144
152
|
"Unauthorized": "O número da conta de jogador, o endereço de e-mail ou a senha estão incorretos",
|
|
145
|
-
"CountryRestricted": "O registro não é possível a partir de uma jurisdição restrita. Caso encontre outros problemas, entre em contato com o suporte."
|
|
153
|
+
"CountryRestricted": "O registro não é possível a partir de uma jurisdição restrita. Caso encontre outros problemas, entre em contato com o suporte.",
|
|
154
|
+
"configError": "Ocorreu um erro inesperado ao buscar a configuração"
|
|
146
155
|
},
|
|
147
156
|
"es-mx": {
|
|
148
|
-
"invalidField": "
|
|
157
|
+
"invalidField": "Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",
|
|
149
158
|
"forgotPassword": "Olvidé la contraseña",
|
|
150
159
|
"userEmail": "Nombre de usuario o correo electrónico",
|
|
151
160
|
"userPhone": "Número de teléfono",
|
|
@@ -158,10 +167,11 @@ const TRANSLATIONS = {
|
|
|
158
167
|
"GmErr_USER_ACCOUNT_BLOCKED": "Actualmente no puede iniciar sesión en su cuenta - comuníquese con el Servicio al Cliente para obtener más información.",
|
|
159
168
|
"setUpPassowrd": "Necesitas restablecer tu contraseña",
|
|
160
169
|
"Unauthorized": "El número de cuenta de jugador, la dirección de correo electrónico o la contraseña son incorrectos",
|
|
161
|
-
"CountryRestricted": "El registro no es posible desde una jurisdicción restringida. Si encuentra más problemas, por favor contacte al soporte."
|
|
170
|
+
"CountryRestricted": "El registro no es posible desde una jurisdicción restringida. Si encuentra más problemas, por favor contacte al soporte.",
|
|
171
|
+
"configError": "Se ha producido un error inesperado al obtener la configuración"
|
|
162
172
|
},
|
|
163
173
|
"es": {
|
|
164
|
-
"invalidField": "
|
|
174
|
+
"invalidField": "Lo siento, ese nombre de usuario/dirección de correo electrónico y/o contraseña no ha sido reconocido.",
|
|
165
175
|
"forgotPassword": "Olvidé mi contraseña",
|
|
166
176
|
"userEmail": "Nombre de usuario o correo electrónico",
|
|
167
177
|
"userPhone": "Número de teléfono",
|
|
@@ -174,10 +184,11 @@ const TRANSLATIONS = {
|
|
|
174
184
|
"GmErr_USER_ACCOUNT_BLOCKED": "Actualmente no puede iniciar sesión en su cuenta - comuníquese con el Servicio al Cliente para obtener más información.",
|
|
175
185
|
"setUpPassowrd": "Necesitas restablecer tu contraseña",
|
|
176
186
|
"Unauthorized": "El número de cuenta, correo electrónico o contraseña es incorrecto",
|
|
177
|
-
"CountryRestricted": "No es posible registrarse desde una jurisdicción restringida. Si encuentra más problemas, comuníquese con el soporte."
|
|
187
|
+
"CountryRestricted": "No es posible registrarse desde una jurisdicción restringida. Si encuentra más problemas, comuníquese con el soporte.",
|
|
188
|
+
"configError": "Se ha producido un error inesperado al obtener la configuración"
|
|
178
189
|
},
|
|
179
190
|
"pt": {
|
|
180
|
-
"invalidField": "
|
|
191
|
+
"invalidField": "Desculpe, esse nome de usuário/endereço de e-mail e/ou senha não foram reconhecidos.",
|
|
181
192
|
"forgotPassword": "Esqueceu a senha",
|
|
182
193
|
"userEmail": "Nome de usuário ou email",
|
|
183
194
|
"userPhone": "Número de telefone",
|
|
@@ -190,7 +201,8 @@ const TRANSLATIONS = {
|
|
|
190
201
|
"GmErr_USER_ACCOUNT_BLOCKED": "Você não pode fazer login na sua conta no momento - entre em contato com o Atendimento ao Cliente para mais informações.",
|
|
191
202
|
"setUpPassowrd": "Você precisa redefinir a sua senha",
|
|
192
203
|
"Unauthorized": "O número da conta, e-mail ou senha está incorreto",
|
|
193
|
-
"CountryRestricted": "Não é possível se registrar de uma jurisdição restrita. Se encontrar mais problemas, entre em contato com o suporte."
|
|
204
|
+
"CountryRestricted": "Não é possível se registrar de uma jurisdição restrita. Se encontrar mais problemas, entre em contato com o suporte.",
|
|
205
|
+
"configError": "Ocorreu um erro inesperado ao procurar a configuração"
|
|
194
206
|
}
|
|
195
207
|
};
|
|
196
208
|
export const getTranslations = (url) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'user-login';
|
|
2
|
-
const BUILD = /* user-login */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot:
|
|
2
|
+
const BUILD = /* user-login */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -628,7 +628,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
628
628
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
629
629
|
}
|
|
630
630
|
{
|
|
631
|
-
{
|
|
631
|
+
if (tag === "slot" && !useNativeShadowDom) ; else {
|
|
632
632
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
633
633
|
}
|
|
634
634
|
}
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-16e95691.js';
|
|
2
|
+
export { s as setNonce } from './index-16e95691.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["user-login",[[1,"user-login",{"endpoint":[513],"lang":[1537],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"passwordReset":[513,"password-reset"],"userEmailRegex":[513,"user-email-regex"],"userEmailRegexOptions":[513,"user-email-regex-options"],"userPhoneRegex":[513,"user-phone-regex"],"userPhoneRegexOptions":[513,"user-phone-regex-options"],"passwordRegex":[513,"password-regex"],"passwordRegexOptions":[513,"password-regex-options"],"version":[513],"loginByPhoneNumber":[513,"login-by-phone-number"],"mbSource":[513,"mb-source"],"userNameEmail":[32],"userPassword":[32],"isValidUserEmail":[32],"userPhone":[32],"userPrefix":[32],"isValidPassword":[32],"isValidUserPhone":[32],"isPasswordVisible":[32],"errorMessage":[32],"hasError":[32],"userPrefixOptions":[32],"isLoginLoading":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
|
|
8
|
+
return bootstrapLazy([["user-login",[[1,"user-login",{"endpoint":[513],"lang":[1537],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"passwordReset":[513,"password-reset"],"userEmailRegex":[513,"user-email-regex"],"userEmailRegexOptions":[513,"user-email-regex-options"],"userPhoneRegex":[513,"user-phone-regex"],"userPhoneRegexOptions":[513,"user-phone-regex-options"],"passwordRegex":[513,"password-regex"],"passwordRegexOptions":[513,"password-regex-options"],"version":[513],"loginByPhoneNumber":[513,"login-by-phone-number"],"mbSource":[513,"mb-source"],"userNameEmail":[32],"userPassword":[32],"isValidUserEmail":[32],"userPhone":[32],"userPrefix":[32],"isValidPassword":[32],"isValidUserPhone":[32],"isPasswordVisible":[32],"errorMessage":[32],"hasError":[32],"userPrefixOptions":[32],"isLoginLoading":[32],"captchaData":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|