@everymatrix/general-player-register-form-step1 0.0.363 → 0.0.367
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/README.md +30 -30
- package/dist/general-player-register-form-step1.js +1 -1
- package/dist/general-player-register-form-step1.js.map +1 -1
- package/index.html +22 -22
- package/index.js +1 -1
- package/package.json +2 -2
- package/public/reset.css +47 -47
- package/rollup.config.js +67 -67
- package/src/GeneralPlayerRegisterFormStep1.svelte +467 -465
- package/src/i18n.js +27 -27
- package/src/index.ts +4 -4
- package/src/translations.js +149 -149
- package/stories/GeneralPlayerRegisterFormStep1.stories.js +13 -13
- package/tsconfig.json +6 -6
|
@@ -1,465 +1,467 @@
|
|
|
1
|
-
<svelte:options tag={null} />
|
|
2
|
-
|
|
3
|
-
<script lang="ts">
|
|
4
|
-
import { onMount } from "svelte";
|
|
5
|
-
import { _, addNewMessages, setLocale, setupI18n } from './i18n';
|
|
6
|
-
import { RegisterFormStep1Translations } from './translations';
|
|
7
|
-
|
|
8
|
-
export let lang:string = '';
|
|
9
|
-
// Possible disabled fields: ['email', 'username', 'name', 'password', 'confirmPassword', 'securityQuestion', 'securityAnswer']
|
|
10
|
-
export let disabledfields:string = '';
|
|
11
|
-
export let simplepasswordvalidation:string = 'false';
|
|
12
|
-
|
|
13
|
-
let invalidEmail:boolean = false;
|
|
14
|
-
let invalidName:boolean = false;
|
|
15
|
-
let invalidPassword:boolean = false;
|
|
16
|
-
let invalidConfirmPassword:boolean = false;
|
|
17
|
-
let invalidSecurityQuestion:boolean = false;
|
|
18
|
-
let invalidSecurityAnswer:boolean = false;
|
|
19
|
-
|
|
20
|
-
let disabledFieldsList:Array<string>;
|
|
21
|
-
|
|
22
|
-
let userValue:string = '';
|
|
23
|
-
let userEmail:string = '';
|
|
24
|
-
let userPassword:string = '';
|
|
25
|
-
let confirmUserPassword:string = '';
|
|
26
|
-
let securityQuestion:string = '';
|
|
27
|
-
let securityAnswer:string = '';
|
|
28
|
-
|
|
29
|
-
let isPasswordVisible:boolean = false;
|
|
30
|
-
let isConfirmPasswordVisible:boolean = false;
|
|
31
|
-
|
|
32
|
-
let passwordVisibilityToggle:HTMLElement;
|
|
33
|
-
let confirmPasswordVisibilityToggle:HTMLElement;
|
|
34
|
-
|
|
35
|
-
let isValid:boolean = false;
|
|
36
|
-
|
|
37
|
-
let regexValidators:any = {
|
|
38
|
-
user: /^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,
|
|
39
|
-
email: /^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,
|
|
40
|
-
password: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// setupI18n({ withLocale: 'en', translations: {}});
|
|
44
|
-
|
|
45
|
-
Object.keys(RegisterFormStep1Translations).forEach((item:any) => {
|
|
46
|
-
addNewMessages(item, RegisterFormStep1Translations[item]);
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
const checkIsValid = ():void => {
|
|
50
|
-
isValid = !(invalidEmail || invalidName || invalidPassword || invalidConfirmPassword || invalidSecurityQuestion || invalidSecurityAnswer);
|
|
51
|
-
|
|
52
|
-
if (userValue.length <= 0 || userEmail.length <= 0 || userPassword.length <= 0 || confirmUserPassword.length <= 0 || securityQuestion.length <= 0 || securityAnswer.length <= 0) {
|
|
53
|
-
isValid = false;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const switchToLogin = ():void => {
|
|
58
|
-
window.postMessage({ type: "ToLogin" }, window.location.href);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const verifyTypeOfPassword = ():void => {
|
|
62
|
-
if (simplepasswordvalidation == 'true') {
|
|
63
|
-
regexValidators.password = /^(?!.* ).{8,20}$/;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const checkEmailIdentifier = (email:string):boolean => {
|
|
68
|
-
if (regexValidators.email.test(email) && email.length <= 100) {
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
return false;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const validateEmail = ():void => {
|
|
76
|
-
invalidEmail = !checkEmailIdentifier(userEmail);
|
|
77
|
-
checkIsValid();
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
const checkUserIdentifier = (user:string):boolean => {
|
|
81
|
-
if (regexValidators.user.test(user) && user.length <= 20) {
|
|
82
|
-
return true;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return false;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
const validateUserName = ():void => {
|
|
89
|
-
invalidName = !checkUserIdentifier(userValue);
|
|
90
|
-
checkIsValid();
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
const showPassword = ():void => {
|
|
94
|
-
isPasswordVisible = true;
|
|
95
|
-
togglePasswordVisibility();
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
const showConfirmPassword = ():void => {
|
|
99
|
-
isConfirmPasswordVisible = true;
|
|
100
|
-
toggleConfirmPasswordVisibility();
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
const hidePassword = ():void => {
|
|
104
|
-
isPasswordVisible = false;
|
|
105
|
-
togglePasswordVisibility();
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
const hideConfirmPassword = ():void => {
|
|
109
|
-
isConfirmPasswordVisible = false;
|
|
110
|
-
toggleConfirmPasswordVisibility();
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
const togglePasswordVisibility = ():void => {
|
|
114
|
-
passwordVisibilityToggle.type = isPasswordVisible ? "text" : "password";
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
const toggleConfirmPasswordVisibility = ():void => {
|
|
118
|
-
confirmPasswordVisibilityToggle.type = isConfirmPasswordVisible ? "text" : "password";
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
const checkUserPassword = (password:string):boolean => {
|
|
122
|
-
if (regexValidators.password.test(password)) {
|
|
123
|
-
return true;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
return false;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
const validatePassword = ():void => {
|
|
130
|
-
invalidPassword = !checkUserPassword(userPassword);
|
|
131
|
-
|
|
132
|
-
if (userPassword !== confirmUserPassword && confirmUserPassword.length > 0) {
|
|
133
|
-
invalidConfirmPassword = true;
|
|
134
|
-
} else {
|
|
135
|
-
invalidConfirmPassword = false;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
checkIsValid();
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
const checkUserConfirmPassword = ():boolean => {
|
|
142
|
-
if (userPassword === confirmUserPassword) {
|
|
143
|
-
return true;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
return false;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
const validateConfirmPassword = ():void => {
|
|
150
|
-
invalidConfirmPassword = !checkUserConfirmPassword();
|
|
151
|
-
checkIsValid();
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
const checkSecurityQuestion = ():boolean => {
|
|
155
|
-
if (securityQuestion && securityQuestion.length <= 120) {
|
|
156
|
-
return true;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
return false;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
const validateSecurityQuestion = ():void => {
|
|
163
|
-
invalidSecurityQuestion = !checkSecurityQuestion();
|
|
164
|
-
checkIsValid();
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
const checkSecurityAnswer = ():boolean => {
|
|
168
|
-
if (securityAnswer && securityAnswer.length <= 120) {
|
|
169
|
-
return true;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
return false;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
const validateSecurityAnswer = ():void => {
|
|
176
|
-
invalidSecurityAnswer = !checkSecurityAnswer();
|
|
177
|
-
checkIsValid();
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
const goNext = ():void => {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
$:
|
|
257
|
-
$:
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
<
|
|
263
|
-
</
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
<
|
|
268
|
-
{
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
<
|
|
275
|
-
{
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
<
|
|
282
|
-
{
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
{
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
{
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
<
|
|
297
|
-
{
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
{
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
<
|
|
309
|
-
{
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
<
|
|
316
|
-
{
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
</div>
|
|
321
|
-
<button class="RegisterStepNext" part="RegisterStepNext" disabled={!isValid} on:click={goNext}>{$_('registerFormStep1.registerNext')}</button>
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
font-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
.
|
|
354
|
-
.
|
|
355
|
-
.
|
|
356
|
-
.
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
1
|
+
<svelte:options tag={null} />
|
|
2
|
+
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { onMount } from "svelte";
|
|
5
|
+
import { _, addNewMessages, setLocale, setupI18n } from './i18n';
|
|
6
|
+
import { RegisterFormStep1Translations } from './translations';
|
|
7
|
+
|
|
8
|
+
export let lang:string = '';
|
|
9
|
+
// Possible disabled fields: ['email', 'username', 'name', 'password', 'confirmPassword', 'securityQuestion', 'securityAnswer']
|
|
10
|
+
export let disabledfields:string = '';
|
|
11
|
+
export let simplepasswordvalidation:string = 'false';
|
|
12
|
+
|
|
13
|
+
let invalidEmail:boolean = false;
|
|
14
|
+
let invalidName:boolean = false;
|
|
15
|
+
let invalidPassword:boolean = false;
|
|
16
|
+
let invalidConfirmPassword:boolean = false;
|
|
17
|
+
let invalidSecurityQuestion:boolean = false;
|
|
18
|
+
let invalidSecurityAnswer:boolean = false;
|
|
19
|
+
|
|
20
|
+
let disabledFieldsList:Array<string>;
|
|
21
|
+
|
|
22
|
+
let userValue:string = '';
|
|
23
|
+
let userEmail:string = '';
|
|
24
|
+
let userPassword:string = '';
|
|
25
|
+
let confirmUserPassword:string = '';
|
|
26
|
+
let securityQuestion:string = '';
|
|
27
|
+
let securityAnswer:string = '';
|
|
28
|
+
|
|
29
|
+
let isPasswordVisible:boolean = false;
|
|
30
|
+
let isConfirmPasswordVisible:boolean = false;
|
|
31
|
+
|
|
32
|
+
let passwordVisibilityToggle:HTMLElement;
|
|
33
|
+
let confirmPasswordVisibilityToggle:HTMLElement;
|
|
34
|
+
|
|
35
|
+
let isValid:boolean = false;
|
|
36
|
+
|
|
37
|
+
let regexValidators:any = {
|
|
38
|
+
user: /^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,
|
|
39
|
+
email: /^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,
|
|
40
|
+
password: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// setupI18n({ withLocale: 'en', translations: {}});
|
|
44
|
+
|
|
45
|
+
Object.keys(RegisterFormStep1Translations).forEach((item:any) => {
|
|
46
|
+
addNewMessages(item, RegisterFormStep1Translations[item]);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
const checkIsValid = ():void => {
|
|
50
|
+
isValid = !(invalidEmail || invalidName || invalidPassword || invalidConfirmPassword || invalidSecurityQuestion || invalidSecurityAnswer);
|
|
51
|
+
|
|
52
|
+
if (userValue.length <= 0 || userEmail.length <= 0 || userPassword.length <= 0 || confirmUserPassword.length <= 0 || securityQuestion.length <= 0 || securityAnswer.length <= 0) {
|
|
53
|
+
isValid = false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const switchToLogin = ():void => {
|
|
58
|
+
window.postMessage({ type: "ToLogin" }, window.location.href);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const verifyTypeOfPassword = ():void => {
|
|
62
|
+
if (simplepasswordvalidation == 'true') {
|
|
63
|
+
regexValidators.password = /^(?!.* ).{8,20}$/;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const checkEmailIdentifier = (email:string):boolean => {
|
|
68
|
+
if (regexValidators.email.test(email) && email.length <= 100) {
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const validateEmail = ():void => {
|
|
76
|
+
invalidEmail = !checkEmailIdentifier(userEmail);
|
|
77
|
+
checkIsValid();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const checkUserIdentifier = (user:string):boolean => {
|
|
81
|
+
if (regexValidators.user.test(user) && user.length <= 20) {
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const validateUserName = ():void => {
|
|
89
|
+
invalidName = !checkUserIdentifier(userValue);
|
|
90
|
+
checkIsValid();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const showPassword = ():void => {
|
|
94
|
+
isPasswordVisible = true;
|
|
95
|
+
togglePasswordVisibility();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const showConfirmPassword = ():void => {
|
|
99
|
+
isConfirmPasswordVisible = true;
|
|
100
|
+
toggleConfirmPasswordVisibility();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const hidePassword = ():void => {
|
|
104
|
+
isPasswordVisible = false;
|
|
105
|
+
togglePasswordVisibility();
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const hideConfirmPassword = ():void => {
|
|
109
|
+
isConfirmPasswordVisible = false;
|
|
110
|
+
toggleConfirmPasswordVisibility();
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const togglePasswordVisibility = ():void => {
|
|
114
|
+
passwordVisibilityToggle.type = isPasswordVisible ? "text" : "password";
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const toggleConfirmPasswordVisibility = ():void => {
|
|
118
|
+
confirmPasswordVisibilityToggle.type = isConfirmPasswordVisible ? "text" : "password";
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const checkUserPassword = (password:string):boolean => {
|
|
122
|
+
if (regexValidators.password.test(password)) {
|
|
123
|
+
return true;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const validatePassword = ():void => {
|
|
130
|
+
invalidPassword = !checkUserPassword(userPassword);
|
|
131
|
+
|
|
132
|
+
if (userPassword !== confirmUserPassword && confirmUserPassword.length > 0) {
|
|
133
|
+
invalidConfirmPassword = true;
|
|
134
|
+
} else {
|
|
135
|
+
invalidConfirmPassword = false;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
checkIsValid();
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const checkUserConfirmPassword = ():boolean => {
|
|
142
|
+
if (userPassword === confirmUserPassword) {
|
|
143
|
+
return true;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const validateConfirmPassword = ():void => {
|
|
150
|
+
invalidConfirmPassword = !checkUserConfirmPassword();
|
|
151
|
+
checkIsValid();
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const checkSecurityQuestion = ():boolean => {
|
|
155
|
+
if (securityQuestion && securityQuestion.length <= 120) {
|
|
156
|
+
return true;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return false;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
const validateSecurityQuestion = ():void => {
|
|
163
|
+
invalidSecurityQuestion = !checkSecurityQuestion();
|
|
164
|
+
checkIsValid();
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
const checkSecurityAnswer = ():boolean => {
|
|
168
|
+
if (securityAnswer && securityAnswer.length <= 120) {
|
|
169
|
+
return true;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
return false;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const validateSecurityAnswer = ():void => {
|
|
176
|
+
invalidSecurityAnswer = !checkSecurityAnswer();
|
|
177
|
+
checkIsValid();
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
const goNext = (e):void => {
|
|
181
|
+
e.preventDefault();
|
|
182
|
+
let registerStepOneData = {
|
|
183
|
+
userEmail,
|
|
184
|
+
userValue,
|
|
185
|
+
userPassword,
|
|
186
|
+
confirmUserPassword,
|
|
187
|
+
securityQuestion,
|
|
188
|
+
securityAnswer
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
window.postMessage({ type: 'RegisterStepOne', registerStepOneData }, window.location.href);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
const messageHandler = (e:any):void => {
|
|
195
|
+
if (e.data) {
|
|
196
|
+
switch(e.data.type) {
|
|
197
|
+
case 'StepOneDataBackup':
|
|
198
|
+
userEmail = e.data.userData.email;
|
|
199
|
+
userValue = e.data.userData.username;
|
|
200
|
+
userPassword = e.data.userData.password;
|
|
201
|
+
confirmUserPassword = e.data.userData.password;
|
|
202
|
+
securityQuestion = e.data.userData.securityQuestion;
|
|
203
|
+
securityAnswer = e.data.userData.securityAnswer;
|
|
204
|
+
checkIsValid();
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const formatDisabledFields = ():void => {
|
|
211
|
+
disabledFieldsList = disabledfields.split(',');
|
|
212
|
+
|
|
213
|
+
if (disabledFieldsList.indexOf('email') >= 0) {
|
|
214
|
+
userEmail = 'dummy@dummy.com';
|
|
215
|
+
invalidEmail = false;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if (disabledFieldsList.indexOf('username') >= 0) {
|
|
219
|
+
userValue = 'dummy username';
|
|
220
|
+
invalidName = false;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (disabledFieldsList.indexOf('password') >= 0) {
|
|
224
|
+
userPassword = 'dummy password';
|
|
225
|
+
invalidPassword = false;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
if (disabledFieldsList.indexOf('confirmPassword') >= 0) {
|
|
229
|
+
confirmUserPassword = 'dummy password';
|
|
230
|
+
invalidConfirmPassword = false;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
if (disabledFieldsList.indexOf('securityQuestion') >= 0) {
|
|
234
|
+
securityQuestion = 'dummy question';
|
|
235
|
+
invalidSecurityQuestion = false;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
if (disabledFieldsList.indexOf('securityAnswer') >= 0) {
|
|
239
|
+
securityAnswer = 'dummy answer';
|
|
240
|
+
invalidSecurityAnswer = false;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
const setActiveLanguage = ():void => {
|
|
245
|
+
setLocale(lang);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
onMount(() => {
|
|
249
|
+
window.addEventListener('message', messageHandler, false);
|
|
250
|
+
|
|
251
|
+
return () => {
|
|
252
|
+
window.removeEventListener('message', messageHandler);
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
$: lang && setActiveLanguage();
|
|
257
|
+
$: disabledfields && formatDisabledFields();
|
|
258
|
+
$: simplepasswordvalidation && verifyTypeOfPassword();
|
|
259
|
+
</script>
|
|
260
|
+
|
|
261
|
+
<div class="RegisterFormHeader" part="RegisterFormHeader">
|
|
262
|
+
<h2 class="RegisterFormTitle" part="RegisterFormTitle">{$_('registerFormStep1.registerTitle')}</h2>
|
|
263
|
+
<p class="RegisterFormSubtitle" part="RegisterFormSubtitle">{$_('registerFormStep1.registerSubtitle')} <span class="FormLoginCallToAction" on:click={() => switchToLogin()}>{$_('registerFormStep1.registerSubtitleLogin')}</span></p>
|
|
264
|
+
</div>
|
|
265
|
+
<form class="RegisterFormContent" part="RegisterFormContent">
|
|
266
|
+
<div class="EmailContainer {invalidEmail ? 'InvalidField' : ''}{disabledFieldsList?.indexOf('email') >= 0 ? 'Hidden' : ''}" part="EmailContainer {invalidEmail ? 'InvalidField' : ''}" >
|
|
267
|
+
<label for="Email">{$_('registerFormStep1.registerEmail')}:<span class="FormRequired" part="FormRequired">*</span></label>
|
|
268
|
+
<input bind:value={userEmail} on:blur={validateEmail} type="text" id="Email" />
|
|
269
|
+
{#if invalidEmail}
|
|
270
|
+
<p class="InvalidInput" part="InvalidInput">{$_('registerFormStep1.registerEmailError')}</p>
|
|
271
|
+
{/if}
|
|
272
|
+
</div>
|
|
273
|
+
<div class="UserContainer {invalidName ? 'InvalidField' : ''}{disabledFieldsList?.indexOf('username') >= 0 ? 'Hidden' : ''}" part="UserContainer {invalidName ? 'InvalidField' : ''}">
|
|
274
|
+
<label for="UserName">{$_('registerFormStep1.registerUsername')}:<span class="FormRequired" part="FormRequired">*</span></label>
|
|
275
|
+
<input bind:value={userValue} on:blur={validateUserName} type="text" id="UserName" autocomplete="username"/>
|
|
276
|
+
{#if invalidName}
|
|
277
|
+
<p class="InvalidInput" part="InvalidInput">{$_('registerFormStep1.registerUsernameError')}</p>
|
|
278
|
+
{/if}
|
|
279
|
+
</div>
|
|
280
|
+
<div class="PasswordContainer {invalidPassword ? 'InvalidField' : ''}{disabledFieldsList?.indexOf('password') >= 0 ? 'Hidden' : ''}" part="PasswordContainer {invalidPassword ? 'InvalidField' : ''}" hidden={disabledFieldsList?.indexOf('password') >= 0}>
|
|
281
|
+
<label for="Password">{$_('registerFormStep1.registerPassword')}:<span class="FormRequired" part="FormRequired">*</span></label>
|
|
282
|
+
<input bind:value={userPassword} on:blur={validatePassword} name="new-password" type="password" id="new-password" autocomplete="new-password" bind:this={passwordVisibilityToggle} aria-describedby="password-constraints" />
|
|
283
|
+
{#if isPasswordVisible}
|
|
284
|
+
<svg on:click={() => hidePassword()} class="TogglePasswordVisibility" part="TogglePasswordVisibility" xmlns="http://www.w3.org/2000/svg" width="18.844" height="12.887" viewBox="0 0 18.844 12.887"><defs><style>.a{fill:var(--emfe-w-color-contrast, #07072A);}</style></defs><g transform="translate(-110.856 -23.242)"><circle class="a" cx="0.05" cy="0.05" r="0.05" transform="translate(121.017 31.148)"/><g transform="translate(117.499 27.37)"><path class="a" d="M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z" transform="translate(-142.164 -39.123)"/><path class="a" d="M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z" transform="translate(-136.413 -42.068)"/></g><g transform="translate(110.856 24.899)"><path class="a" 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)"/><path class="a" 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)"/></g><rect class="a" width="0.972" height="15.861" rx="0.486" transform="translate(114.827 23.858) rotate(-39.315)"/></g></svg>
|
|
285
|
+
{:else}
|
|
286
|
+
<svg on:click={() => showPassword()} class="TogglePasswordVisibility" part="TogglePasswordVisibility" xmlns="http://www.w3.org/2000/svg" width="18.843" height="10.5" viewBox="0 0 18.843 10.5"><defs><style>.a{fill:var(--emfe-w-color-contrast, #07072A);}</style></defs><g transform="translate(-14.185 -27.832)"><path class="a" 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)"/><circle class="a" cx="2.779" cy="2.779" r="2.779" transform="translate(20.827 30.303)"/></g></svg>
|
|
287
|
+
{/if}
|
|
288
|
+
{#if invalidPassword && simplepasswordvalidation !== 'true'}
|
|
289
|
+
<p class="InvalidInput" part="InvalidInput">{$_('registerFormStep1.registerPasswordError')}</p>
|
|
290
|
+
{/if}
|
|
291
|
+
{#if invalidPassword && simplepasswordvalidation === 'true'}
|
|
292
|
+
<p class="InvalidInput" part="InvalidInput">{$_('registerFormStep1.registerSimplePasswordError')}</p>
|
|
293
|
+
{/if}
|
|
294
|
+
</div>
|
|
295
|
+
<div class="ConfirmPasswordContainer {invalidConfirmPassword ? 'InvalidField' : ''}{disabledFieldsList?.indexOf('confirmPassword') >= 0 ? 'Hidden' : ''}" part="ConfirmPasswordContainer {invalidConfirmPassword ? 'InvalidField' : ''}">
|
|
296
|
+
<label for="ConfirmPassword">{$_('registerFormStep1.registerConfirmPassword')}:<span class="FormRequired" part="FormRequired">*</span></label>
|
|
297
|
+
<input bind:value={confirmUserPassword} on:blur={validateConfirmPassword} type="password" id="ConfirmPassword" bind:this={confirmPasswordVisibilityToggle} />
|
|
298
|
+
{#if isConfirmPasswordVisible}
|
|
299
|
+
<svg on:click={() => hideConfirmPassword()} class="ToggleConfirmPasswordVisibility" part="ToggleConfirmPasswordVisibility" xmlns="http://www.w3.org/2000/svg" width="18.844" height="12.887" viewBox="0 0 18.844 12.887"><defs><style>.a{fill:var(--emfe-w-color-contrast, #07072A);}</style></defs><g transform="translate(-110.856 -23.242)"><circle class="a" cx="0.05" cy="0.05" r="0.05" transform="translate(121.017 31.148)"/><g transform="translate(117.499 27.37)"><path class="a" d="M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z" transform="translate(-142.164 -39.123)"/><path class="a" d="M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z" transform="translate(-136.413 -42.068)"/></g><g transform="translate(110.856 24.899)"><path class="a" 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)"/><path class="a" 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)"/></g><rect class="a" width="0.972" height="15.861" rx="0.486" transform="translate(114.827 23.858) rotate(-39.315)"/></g></svg>
|
|
300
|
+
{:else}
|
|
301
|
+
<svg on:click={() => showConfirmPassword()} class="ToggleConfirmPasswordVisibility" part="ToggleConfirmPasswordVisibility" xmlns="http://www.w3.org/2000/svg" width="18.843" height="10.5" viewBox="0 0 18.843 10.5"><defs><style>.a{fill:var(--emfe-w-color-contrast, #07072A);}</style></defs><g transform="translate(-14.185 -27.832)"><path class="a" 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)"/><circle class="a" cx="2.779" cy="2.779" r="2.779" transform="translate(20.827 30.303)"/></g></svg>
|
|
302
|
+
{/if}
|
|
303
|
+
{#if invalidConfirmPassword}
|
|
304
|
+
<p class="InvalidInput" part="InvalidInput">{$_('registerFormStep1.registerConfirmPasswordError')}</p>
|
|
305
|
+
{/if}
|
|
306
|
+
</div>
|
|
307
|
+
<div class="SecurityQuestionContainer {invalidSecurityQuestion ? 'InvalidField' : ''}{disabledFieldsList?.indexOf('securityQuestion') >= 0 ? 'Hidden' : ''}" part="SecurityQuestionContainer {invalidSecurityQuestion ? 'InvalidField' : ''}">
|
|
308
|
+
<label for="SecurityQuestion">{$_('registerFormStep1.registerSecurityQuestion')}:<span class="FormRequired" part="FormRequired">*</span></label>
|
|
309
|
+
<input bind:value={securityQuestion} on:blur={validateSecurityQuestion} type="text" id="SecurityQuestion" />
|
|
310
|
+
{#if invalidSecurityQuestion}
|
|
311
|
+
<p class="InvalidInput" part="InvalidInput">{$_('registerFormStep1.registerSecurityQuestionError')}</p>
|
|
312
|
+
{/if}
|
|
313
|
+
</div>
|
|
314
|
+
<div class="SecurityAnswerContainer {invalidSecurityAnswer ? 'InvalidField' : ''}{disabledFieldsList?.indexOf('securityAnswer') >= 0 ? 'Hidden' : ''}" part="SecurityAnswerContainer {invalidSecurityAnswer ? 'InvalidField' : ''}">
|
|
315
|
+
<label for="SecurityAnswer">{$_('registerFormStep1.registerSecurityAnswer')}:<span class="FormRequired" part="FormRequired">*</span></label>
|
|
316
|
+
<input bind:value={securityAnswer} on:keyup={validateSecurityAnswer} type="text" id="SecurityAnswer" />
|
|
317
|
+
{#if invalidSecurityAnswer}
|
|
318
|
+
<p class="InvalidInput" part="InvalidInput">{$_('registerFormStep1.registerSecurityAnswerError')}</p>
|
|
319
|
+
{/if}
|
|
320
|
+
</div>
|
|
321
|
+
<button class="RegisterStepNext" part="RegisterStepNext" disabled={!isValid} on:click={(e) => goNext(e)}>{$_('registerFormStep1.registerNext')}</button>
|
|
322
|
+
</form>
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
<style lang="scss">
|
|
326
|
+
|
|
327
|
+
:host {
|
|
328
|
+
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.RegisterFormTitle {
|
|
332
|
+
font-size: 20px;
|
|
333
|
+
text-transform: uppercase;
|
|
334
|
+
font-weight: 300;
|
|
335
|
+
margin: 0;
|
|
336
|
+
padding-bottom: 8px;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.RegisterFormSubtitle {
|
|
340
|
+
font-size: 14px;
|
|
341
|
+
margin: 0;
|
|
342
|
+
padding-bottom: 20px;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.FormLoginCallToAction {
|
|
346
|
+
color: var(--emfe-w-color-primary, #D0046C);
|
|
347
|
+
font-size: 14px;
|
|
348
|
+
font-weight: 400;
|
|
349
|
+
text-decoration: none;
|
|
350
|
+
cursor: pointer;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.EmailContainer,
|
|
354
|
+
.UserContainer,
|
|
355
|
+
.PasswordContainer,
|
|
356
|
+
.ConfirmPasswordContainer,
|
|
357
|
+
.SecurityQuestionContainer,
|
|
358
|
+
.SecurityAnswerContainer {
|
|
359
|
+
color: var(--emfe-w-color-gray-300, #58586B);
|
|
360
|
+
display: flex;
|
|
361
|
+
flex-direction: column;
|
|
362
|
+
padding-bottom: 30px;
|
|
363
|
+
position: relative;
|
|
364
|
+
|
|
365
|
+
label {
|
|
366
|
+
font-size: 14px;
|
|
367
|
+
font-weight: 300;
|
|
368
|
+
padding-bottom: 5px;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
input {
|
|
372
|
+
width: 100%;
|
|
373
|
+
height: 44px;
|
|
374
|
+
border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
|
|
375
|
+
border-radius: 5px;
|
|
376
|
+
box-sizing: border-box;
|
|
377
|
+
padding: 5px 15px;
|
|
378
|
+
font-size: 16px;
|
|
379
|
+
line-height: 18px;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
&.InvalidField {
|
|
383
|
+
input {
|
|
384
|
+
border: 1px solid var(--emfe-w-color-primary, #D0046C);
|
|
385
|
+
background: var(--emfe-w-color-primary-50, #FBECF4);
|
|
386
|
+
color: var(--emfe-w-color-primary, #D0046C);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
&.Hidden {
|
|
391
|
+
display: none;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.PasswordContainer, .ConfirmPasswordContainer {
|
|
396
|
+
position: relative;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.PasswordContainer input,
|
|
400
|
+
.ConfirmPasswordContainer input {
|
|
401
|
+
padding: 5px 30px 5px 15px;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.FormRequired {
|
|
405
|
+
color: var(--emfe-w-color-secondary, #FD2839);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.TogglePasswordVisibility, .ToggleConfirmPasswordVisibility {
|
|
409
|
+
height: 13px;
|
|
410
|
+
position: absolute;
|
|
411
|
+
right: 8px;
|
|
412
|
+
bottom: 45px;
|
|
413
|
+
&.InvalidToggle {
|
|
414
|
+
path, circle, rect {
|
|
415
|
+
fill: var(--emfe-w-color-primary, #D0046C);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
path, circle, rect {
|
|
419
|
+
fill: var(--emfe-w-color-gray-300, #58586B);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.InvalidInput {
|
|
424
|
+
color: var(--emfe-w-color-error, #FD2839);
|
|
425
|
+
font-size: 10px;
|
|
426
|
+
position: absolute;
|
|
427
|
+
bottom: -3px;
|
|
428
|
+
line-height: 10px;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.ErrorMessage {
|
|
432
|
+
margin: 0 0 15px 0;
|
|
433
|
+
font-size: 12px;
|
|
434
|
+
color: var(--emfe-w-color-error, #FD2839);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.UserContainer {
|
|
438
|
+
.InvalidInput {
|
|
439
|
+
bottom: -3px;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.RegisterStepNext {
|
|
444
|
+
color: var(--emfe-w-color-white, #FFFFFF);
|
|
445
|
+
background: var(--emfe-w-color-primary, #D0046C);
|
|
446
|
+
border: 1px solid var(--emfe-w-color-primary, #D0046C);
|
|
447
|
+
border-radius: 5px;
|
|
448
|
+
width: 100%;
|
|
449
|
+
height: 60px;
|
|
450
|
+
padding: 0;
|
|
451
|
+
text-transform: uppercase;
|
|
452
|
+
font-size: 18px;
|
|
453
|
+
cursor: pointer;
|
|
454
|
+
margin-top: 24px;
|
|
455
|
+
&[disabled] {
|
|
456
|
+
background: var(--emfe-w-color-gray-100, #E6E6E6);
|
|
457
|
+
border: 1px solid var(--emfe-w-color-gray-150, #828282);
|
|
458
|
+
cursor: not-allowed;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/* MS Edge */
|
|
463
|
+
input::-ms-reveal,
|
|
464
|
+
input::-ms-clear {
|
|
465
|
+
display: none;
|
|
466
|
+
}
|
|
467
|
+
</style>
|