@everymatrix/player-profile-info 0.0.244 → 0.0.248
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-profile-info",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.248",
|
|
4
4
|
"main": "dist/player-profile-info.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "77f6efa473daab4dd62004b893c587558bf4511c"
|
|
40
40
|
}
|
|
@@ -359,34 +359,34 @@
|
|
|
359
359
|
</script>
|
|
360
360
|
|
|
361
361
|
{#if isLoading}
|
|
362
|
-
<div class="ModalLoader"></div>
|
|
362
|
+
<div class="ModalLoader" part="ModalLoader"></div>
|
|
363
363
|
{:else}
|
|
364
|
-
<form class="PlayerInfoWrapper {isMobile ? 'PlayerInfoWrapperMobile' : ''} {mediaQuery.matches && isMobile ? 'PlayerInfoWrapperTablet' : ''}">
|
|
364
|
+
<form class="PlayerInfoWrapper {isMobile ? 'PlayerInfoWrapperMobile' : ''} {mediaQuery.matches && isMobile ? 'PlayerInfoWrapperTablet' : ''}" part="PlayerInfoWrapper {isMobile ? 'PlayerInfoWrapperMobile' : ''} {mediaQuery.matches && isMobile ? 'PlayerInfoWrapperTablet' : ''}">
|
|
365
365
|
|
|
366
366
|
{#if isMobile}
|
|
367
|
-
<div class="MenuReturnButton" on:click={() => toggleScreen()}>
|
|
367
|
+
<div class="MenuReturnButton" part="MenuReturnButton" on:click={() => toggleScreen()}>
|
|
368
368
|
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><defs><style>.aaa{fill:var(--emfe-w-color-primary, #D0046C);}</style></defs><g transform="translate(-20 -158)">
|
|
369
369
|
<g transform="translate(20 158)">
|
|
370
370
|
<path class="aaa" d="M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z" transform="translate(15 15) rotate(180)"/>
|
|
371
371
|
</g></g>
|
|
372
372
|
</svg>
|
|
373
|
-
<h2 class="MyAccountCategoryTitleMobile">{$_('playerProfile.title')}</h2>
|
|
373
|
+
<h2 class="MyAccountCategoryTitleMobile" part="MyAccountCategoryTitleMobile">{$_('playerProfile.title')}</h2>
|
|
374
374
|
</div>
|
|
375
375
|
{/if}
|
|
376
376
|
|
|
377
|
-
<h2 class="MyAccountCategoryTitle {isMobile ? 'MyAccountCategoryTitleNone' : ''}">{$_('playerProfile.title')}</h2>
|
|
377
|
+
<h2 class="MyAccountCategoryTitle {isMobile ? 'MyAccountCategoryTitleNone' : ''}" part="MyAccountCategoryTitle {isMobile ? 'MyAccountCategoryTitleNone' : ''}">{$_('playerProfile.title')}</h2>
|
|
378
378
|
|
|
379
|
-
<div class="PlayerNotificationsHeader">
|
|
379
|
+
<div class="PlayerNotificationsHeader" part="PlayerNotificationsHeader">
|
|
380
380
|
<h3>{$_('playerProfile.personalDetails')}</h3>
|
|
381
381
|
</div>
|
|
382
|
-
<section class="PlayerDetailsContent">
|
|
383
|
-
<div class="PlayerInfoBox">
|
|
382
|
+
<section class="PlayerDetailsContent" part="PlayerDetailsContent">
|
|
383
|
+
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
384
384
|
<label>{$_('playerProfile.userName')}</label>
|
|
385
|
-
<input type="text" class="FieldDisabled" value={username} readonly />
|
|
385
|
+
<input type="text" class="FieldDisabled" part="FieldDisabled" value={username} readonly />
|
|
386
386
|
</div>
|
|
387
|
-
<div class="PlayerInfoBox {invalidMobile ? 'InvalidField' : ''}">
|
|
387
|
+
<div class="PlayerInfoBox {invalidMobile ? 'InvalidField' : ''}" part="PlayerInfoBox {invalidMobile ? 'InvalidField' : ''}">
|
|
388
388
|
<label>{$_('playerProfile.userPhone')}</label>
|
|
389
|
-
<div class="PlayerPhoneNumber">
|
|
389
|
+
<div class="PlayerPhoneNumber" part="PlayerPhoneNumber">
|
|
390
390
|
<select bind:value={playerPrefix} on:change={() => checkForChanges()}>
|
|
391
391
|
{#each prefixesArray as pref}
|
|
392
392
|
{#if pref.Prefix === initialValuesArray.mobiePrefix}
|
|
@@ -399,119 +399,119 @@
|
|
|
399
399
|
<input bind:value={playerMobileNumber} on:keyup={validateMobile} type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\..*)\./g, '$1');" placeholder={noPlayerData ? mobile.number : ''} on:keyup={() => checkForChanges()}/>
|
|
400
400
|
</div>
|
|
401
401
|
{#if invalidMobile}
|
|
402
|
-
<p class="InvalidInput">{$_('playerProfile.userPhoneError')}</p>
|
|
402
|
+
<p class="InvalidInput" part="InvalidInput">{$_('playerProfile.userPhoneError')}</p>
|
|
403
403
|
{/if}
|
|
404
404
|
</div>
|
|
405
|
-
<div class="PlayerInfoBox {invalidSecurityQuestion ? 'InvalidField' : ''}">
|
|
405
|
+
<div class="PlayerInfoBox {invalidSecurityQuestion ? 'InvalidField' : ''}" part="PlayerInfoBox {invalidSecurityQuestion ? 'InvalidField' : ''}">
|
|
406
406
|
<label>{$_('playerProfile.securityQuestion')}</label>
|
|
407
407
|
<input type="text" bind:value={playerQuestion} on:keyup={() => checkForChanges()} on:blur={validateSecurityQuestion} placeholder={noPlayerData ? securityQuestion : ''} />
|
|
408
408
|
{#if invalidSecurityQuestion}
|
|
409
|
-
<p class="InvalidInput">{$_('playerProfile.securityQuestionError')}</p>
|
|
409
|
+
<p class="InvalidInput" part="InvalidInput">{$_('playerProfile.securityQuestionError')}</p>
|
|
410
410
|
{/if}
|
|
411
411
|
</div>
|
|
412
|
-
<div class="PlayerInfoBox {invalidSecurityAnswer ? 'InvalidField' : ''}">
|
|
412
|
+
<div class="PlayerInfoBox {invalidSecurityAnswer ? 'InvalidField' : ''}" part="PlayerInfoBox {invalidSecurityAnswer ? 'InvalidField' : ''}">
|
|
413
413
|
<label>{$_('playerProfile.securityAnswer')}</label>
|
|
414
414
|
<input type="text" bind:value={playerAnswer} on:keyup={() => checkForChanges()} on:blur={validateSecurityAnswer} placeholder={noPlayerData ? securityAnswer : ''} />
|
|
415
415
|
{#if invalidSecurityAnswer}
|
|
416
|
-
<p class="InvalidInput">{$_('playerProfile.securityAnswerError')}</p>
|
|
416
|
+
<p class="InvalidInput" part="InvalidInput">{$_('playerProfile.securityAnswerError')}</p>
|
|
417
417
|
{/if}
|
|
418
418
|
</div>
|
|
419
|
-
<div class="PlayerInfoBox">
|
|
419
|
+
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
420
420
|
<label>{$_('playerProfile.userEmail')}</label>
|
|
421
|
-
<input type="email" class="FieldDisabled" value={email} readonly />
|
|
421
|
+
<input type="email" class="FieldDisabled" part="FieldDisabled" value={email} readonly />
|
|
422
422
|
</div>
|
|
423
|
-
<div class="PlayerInfoBox">
|
|
423
|
+
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
424
424
|
<label>{$_('playerProfile.dateOfBirth')}</label>
|
|
425
|
-
<input type="text" class="FieldDisabled" value={birth} readonly />
|
|
425
|
+
<input type="text" class="FieldDisabled" part="FieldDisabled" value={birth} readonly />
|
|
426
426
|
</div>
|
|
427
|
-
<div class="PlayerInfoBox">
|
|
427
|
+
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
428
428
|
<label>{$_('playerProfile.firstName')}</label>
|
|
429
|
-
<input type="text" class="FieldDisabled" value={firstname} readonly />
|
|
429
|
+
<input type="text" class="FieldDisabled" part="FieldDisabled" value={firstname} readonly />
|
|
430
430
|
</div>
|
|
431
|
-
<div class="PlayerInfoBox">
|
|
431
|
+
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
432
432
|
<label>{$_('playerProfile.lastName')}</label>
|
|
433
|
-
<input type="text" class="FieldDisabled" value={lastname} readonly />
|
|
433
|
+
<input type="text" class="FieldDisabled" part="FieldDisabled" value={lastname} readonly />
|
|
434
434
|
</div>
|
|
435
|
-
<div class="PlayerInfoBox">
|
|
435
|
+
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
436
436
|
<label>{$_('playerProfile.userTitle')}</label>
|
|
437
|
-
<input type="text" class="FieldDisabled" value={userTitles} readonly />
|
|
437
|
+
<input type="text" class="FieldDisabled" part="FieldDisabled" value={userTitles} readonly />
|
|
438
438
|
</div>
|
|
439
|
-
<div class="PlayerInfoBox">
|
|
439
|
+
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
440
440
|
<label>{$_('playerProfile.currency')}</label>
|
|
441
|
-
<input type="text" class="FieldDisabled" value={currency} readonly />
|
|
441
|
+
<input type="text" class="FieldDisabled" part="FieldDisabled" value={currency} readonly />
|
|
442
442
|
</div>
|
|
443
443
|
</section>
|
|
444
444
|
|
|
445
|
-
<div class="PlayerLocationHeader">
|
|
445
|
+
<div class="PlayerLocationHeader" part="PlayerLocationHeader">
|
|
446
446
|
<h3>{$_('playerProfile.locationDetails')}</h3>
|
|
447
447
|
</div>
|
|
448
|
-
<section class="PlayerLocationContent">
|
|
449
|
-
<div class="PlayerInfoBox">
|
|
448
|
+
<section class="PlayerLocationContent" part="PlayerLocationContent">
|
|
449
|
+
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
450
450
|
<label>{$_('playerProfile.userCountry')}</label>
|
|
451
|
-
<input type="text" class="PlayerCountry FieldDisabled" placeholder={countrycode} value={selectedCountry.Name} readonly />
|
|
451
|
+
<input type="text" class="PlayerCountry FieldDisabled" part="PlayerCountry FieldDisabled" placeholder={countrycode} value={selectedCountry.Name} readonly />
|
|
452
452
|
</div>
|
|
453
|
-
<div class="PlayerInfoBox {invalidCity ? 'InvalidField' : ''}">
|
|
453
|
+
<div class="PlayerInfoBox {invalidCity ? 'InvalidField' : ''}" part="PlayerInfoBox {invalidCity ? 'InvalidField' : ''}">
|
|
454
454
|
<label>{$_('playerProfile.userCity')}</label>
|
|
455
455
|
<input bind:this={playerCity} type="text" on:blur={validateCity} on:keyup={() => checkForChanges()} placeholder={noPlayerData ? city : ''} value={noPlayerData ? '' : initialValuesArray.city} />
|
|
456
456
|
{#if invalidCity}
|
|
457
|
-
<p class="InvalidInput">{$_('playerProfile.userCityError')}</p>
|
|
457
|
+
<p class="InvalidInput" part="InvalidInput">{$_('playerProfile.userCityError')}</p>
|
|
458
458
|
{/if}
|
|
459
459
|
</div>
|
|
460
|
-
<div class="PlayerInfoBox {invalidAddress ? 'InvalidField' : ''}">
|
|
460
|
+
<div class="PlayerInfoBox {invalidAddress ? 'InvalidField' : ''}" part="PlayerInfoBox {invalidAddress ? 'InvalidField' : ''}">
|
|
461
461
|
<label>{$_('playerProfile.userAddress')}</label>
|
|
462
462
|
<input bind:this={playerAddress} placeholder={address1} type="text" on:blur={validateAddress} on:keyup={() => checkForChanges()} value={noPlayerData ? '' : initialValuesArray.address} />
|
|
463
463
|
{#if invalidAddress}
|
|
464
|
-
<p class="InvalidInput">{$_('playerProfile.userAddressError')}</p>
|
|
464
|
+
<p class="InvalidInput" part="InvalidInput">{$_('playerProfile.userAddressError')}</p>
|
|
465
465
|
{/if}
|
|
466
466
|
</div>
|
|
467
|
-
<div class="PlayerInfoBox {invalidPostalCode ? 'InvalidField' : ''}">
|
|
467
|
+
<div class="PlayerInfoBox {invalidPostalCode ? 'InvalidField' : ''}" part="PlayerInfoBox {invalidPostalCode ? 'InvalidField' : ''}">
|
|
468
468
|
<label>{$_('playerProfile.userPostalCode')}</label>
|
|
469
469
|
<input bind:this={playerPostalCode} type="number" on:blur={validatePostalCode} on:keyup={() => checkForChanges()} placeholder={noPlayerData ? postalCode : ''} value={noPlayerData ? '' : initialValuesArray.postalCode} />
|
|
470
470
|
{#if invalidPostalCode}
|
|
471
|
-
<p class="InvalidInput">{$_('playerProfile.userPostalCodeError')}</p>
|
|
471
|
+
<p class="InvalidInput" part="InvalidInput">{$_('playerProfile.userPostalCodeError')}</p>
|
|
472
472
|
{/if}
|
|
473
473
|
</div>
|
|
474
474
|
</section>
|
|
475
475
|
|
|
476
|
-
<div class="PlayerNotificationsHeader">
|
|
476
|
+
<div class="PlayerNotificationsHeader" part="PlayerNotificationsHeader">
|
|
477
477
|
<h3>{$_('playerProfile.userNotifications')}</h3>
|
|
478
478
|
</div>
|
|
479
|
-
<section class="PlayerNotificationsCheckboxArea">
|
|
480
|
-
<div class="PlayerNotificationBox">
|
|
479
|
+
<section class="PlayerNotificationsCheckboxArea" part="PlayerNotificationsCheckboxArea">
|
|
480
|
+
<div class="PlayerNotificationBox" part="PlayerNotificationBox">
|
|
481
481
|
<label for="SMSNotification">
|
|
482
482
|
<input bind:checked={giveConsentSMS} on:change={checkForChanges} type="checkbox" id="SMSNotification" name="Enable SMS notifications" />
|
|
483
|
-
<span class="Checkmark"></span>
|
|
483
|
+
<span class="Checkmark" part="Checkmark"></span>
|
|
484
484
|
<span>{$_('playerProfile.userSMSNotification')}</span>
|
|
485
485
|
</label>
|
|
486
486
|
</div>
|
|
487
|
-
<div class="PlayerNotificationBox">
|
|
487
|
+
<div class="PlayerNotificationBox" part="PlayerNotificationBox">
|
|
488
488
|
<label for="EmailNotification">
|
|
489
489
|
<input bind:checked={giveConsentEmail} on:change={checkForChanges} type="checkbox" id="EmailNotification" name="Enable Emails" />
|
|
490
|
-
<span class="Checkmark"></span>
|
|
490
|
+
<span class="Checkmark" part="Checkmark"></span>
|
|
491
491
|
<span>{$_('playerProfile.userEmailNotification')}</span>
|
|
492
492
|
</label>
|
|
493
493
|
</div>
|
|
494
494
|
</section>
|
|
495
495
|
{#if isOnNative}
|
|
496
|
-
<div class="PlayerNotificationsHeader">
|
|
496
|
+
<div class="PlayerNotificationsHeader" part="PlayerNotificationsHeader">
|
|
497
497
|
<h3>{$_('playerProfile.userAppSettings')}</h3>
|
|
498
498
|
</div>
|
|
499
|
-
<section class="PlayerNotificationsCheckboxArea">
|
|
500
|
-
<div class="PlayerNotificationBox">
|
|
499
|
+
<section class="PlayerNotificationsCheckboxArea" part="PlayerNotificationsCheckboxArea">
|
|
500
|
+
<div class="PlayerNotificationBox" part="PlayerNotificationBox">
|
|
501
501
|
<label for="Biometrics">
|
|
502
502
|
<input bind:checked={biometricsSelection} on:change={checkForChanges} type="checkbox" id="BiometricsEnabled" name="Biometric Enabled" />
|
|
503
|
-
<span class="Checkmark"></span>
|
|
503
|
+
<span class="Checkmark" part="Checkmark"></span>
|
|
504
504
|
<span>{$_('playerProfile.userBiometrics')}</span>
|
|
505
505
|
</label>
|
|
506
506
|
</div>
|
|
507
507
|
</section>
|
|
508
508
|
{/if}
|
|
509
|
-
<section class="PlayerDetailsButtonsArea {isMobile ? 'PlayerDetailsButtonsAreaMobile' : ''}">
|
|
510
|
-
<div class="PlayerDetailsSaveButton {differencesExist && isValid ? '' : 'PlayerButtonDisabled'}" on:click={() => updatePlayerInfo()}>{$_('playerProfile.userProfileSaveChanges')}</div>
|
|
509
|
+
<section class="PlayerDetailsButtonsArea {isMobile ? 'PlayerDetailsButtonsAreaMobile' : ''}" part="PlayerDetailsButtonsArea {isMobile ? 'PlayerDetailsButtonsAreaMobile' : ''}">
|
|
510
|
+
<div class="PlayerDetailsSaveButton {differencesExist && isValid ? '' : 'PlayerButtonDisabled'}" part="PlayerDetailsSaveButton {differencesExist && isValid ? '' : 'PlayerButtonDisabled'}" on:click={() => updatePlayerInfo()}>{$_('playerProfile.userProfileSaveChanges')}</div>
|
|
511
511
|
</section>
|
|
512
512
|
{#if showConfirmSave}
|
|
513
|
-
<section class="PlayerDetailsConfirmSave">
|
|
514
|
-
<p class="PlayerDetailsConfirmSaveText">{$_('playerProfile.userProfileConfirmationMessage')}</p>
|
|
513
|
+
<section class="PlayerDetailsConfirmSave" part="PlayerDetailsConfirmSave">
|
|
514
|
+
<p class="PlayerDetailsConfirmSaveText" part="PlayerDetailsConfirmSaveText">{$_('playerProfile.userProfileConfirmationMessage')}</p>
|
|
515
515
|
</section>
|
|
516
516
|
{/if}
|
|
517
517
|
</form>
|