@everymatrix/player-profile-info 1.12.0 → 1.12.2
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/player-profile-info.js +1 -1
- package/dist/player-profile-info.js.map +1 -1
- package/package.json +2 -2
- package/src/PlayerProfileInfo.svelte +34 -34
- package/src/translations.js +216 -230
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-profile-info",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.2",
|
|
4
4
|
"main": "dist/player-profile-info.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "22bb69e504862fb909bc5d21d62ba4178aaefe3d"
|
|
39
39
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { onMount } from 'svelte';
|
|
5
5
|
import { getDevice } from 'rvhelper';
|
|
6
6
|
import { _, addNewMessages, setLocale } from './i18n';
|
|
7
|
-
import {
|
|
7
|
+
import { TRANSLATIONS } from './translations';
|
|
8
8
|
|
|
9
9
|
// Native bridge
|
|
10
10
|
import { isNative, call as callNative, registerEventListener as registerNativeEventListener } from 'js-native-bridge';
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
Object.keys(
|
|
72
|
-
addNewMessages(item,
|
|
71
|
+
Object.keys(TRANSLATIONS).forEach((item:any) => {
|
|
72
|
+
addNewMessages(item, TRANSLATIONS[item]);
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
const mediaQuery = window.matchMedia('(min-width: 768px)');
|
|
@@ -459,22 +459,22 @@
|
|
|
459
459
|
<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)"/>
|
|
460
460
|
</g></g>
|
|
461
461
|
</svg>
|
|
462
|
-
<h2 class="MyAccountCategoryTitleMobile" part="MyAccountCategoryTitleMobile">{$_('
|
|
462
|
+
<h2 class="MyAccountCategoryTitleMobile" part="MyAccountCategoryTitleMobile">{$_('title')}</h2>
|
|
463
463
|
</div>
|
|
464
464
|
{/if}
|
|
465
465
|
|
|
466
|
-
<h2 class="MyAccountCategoryTitle {isMobile ? 'MyAccountCategoryTitleNone' : ''}" part="MyAccountCategoryTitle {isMobile ? 'MyAccountCategoryTitleNone' : ''}">{$_('
|
|
466
|
+
<h2 class="MyAccountCategoryTitle {isMobile ? 'MyAccountCategoryTitleNone' : ''}" part="MyAccountCategoryTitle {isMobile ? 'MyAccountCategoryTitleNone' : ''}">{$_('title')}</h2>
|
|
467
467
|
|
|
468
468
|
<div class="PlayerNotificationsHeader" part="PlayerNotificationsHeader">
|
|
469
|
-
<h3>{$_('
|
|
469
|
+
<h3>{$_('personalDetails')}</h3>
|
|
470
470
|
</div>
|
|
471
471
|
<section class="PlayerDetailsContent" part="PlayerDetailsContent">
|
|
472
472
|
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
473
|
-
<label>{$_('
|
|
473
|
+
<label>{$_('userName')}</label>
|
|
474
474
|
<input type="text" class="FieldDisabled" part="FieldDisabled" value={username} readonly />
|
|
475
475
|
</div>
|
|
476
476
|
<div class="PlayerInfoBox {invalidMobile ? 'InvalidField' : ''}" part="PlayerInfoBox {invalidMobile ? 'InvalidField' : ''}">
|
|
477
|
-
<label>{$_('
|
|
477
|
+
<label>{$_('userPhone')}</label>
|
|
478
478
|
<div class="PlayerPhoneNumber" part="PlayerPhoneNumber">
|
|
479
479
|
<select bind:value={playerPrefix} on:change={() => checkForChanges()}>
|
|
480
480
|
{#each prefixesArray as pref}
|
|
@@ -488,83 +488,83 @@
|
|
|
488
488
|
<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()}/>
|
|
489
489
|
</div>
|
|
490
490
|
{#if invalidMobile}
|
|
491
|
-
<p class="InvalidInput" part="InvalidInput">{$_('
|
|
491
|
+
<p class="InvalidInput" part="InvalidInput">{$_('userPhoneError')}</p>
|
|
492
492
|
{/if}
|
|
493
493
|
</div>
|
|
494
494
|
<div class="PlayerInfoBox {invalidSecurityQuestion ? 'InvalidField' : ''}" part="PlayerInfoBox {invalidSecurityQuestion ? 'InvalidField' : ''}">
|
|
495
|
-
<label>{$_('
|
|
495
|
+
<label>{$_('securityQuestion')}</label>
|
|
496
496
|
<input type="text" bind:value={playerQuestion} on:keyup={() => checkForChanges()} on:blur={validateSecurityQuestion} placeholder={noPlayerData ? securityQuestion : ''} />
|
|
497
497
|
{#if invalidSecurityQuestion}
|
|
498
|
-
<p class="InvalidInput" part="InvalidInput">{$_('
|
|
498
|
+
<p class="InvalidInput" part="InvalidInput">{$_('securityQuestionError')}</p>
|
|
499
499
|
{/if}
|
|
500
500
|
</div>
|
|
501
501
|
<div class="PlayerInfoBox {invalidSecurityAnswer ? 'InvalidField' : ''}" part="PlayerInfoBox {invalidSecurityAnswer ? 'InvalidField' : ''}">
|
|
502
|
-
<label>{$_('
|
|
502
|
+
<label>{$_('securityAnswer')}</label>
|
|
503
503
|
<input type="text" bind:value={playerAnswer} on:keyup={() => checkForChanges()} on:blur={validateSecurityAnswer} placeholder={noPlayerData ? securityAnswer : ''} />
|
|
504
504
|
{#if invalidSecurityAnswer}
|
|
505
|
-
<p class="InvalidInput" part="InvalidInput">{$_('
|
|
505
|
+
<p class="InvalidInput" part="InvalidInput">{$_('securityAnswerError')}</p>
|
|
506
506
|
{/if}
|
|
507
507
|
</div>
|
|
508
508
|
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
509
|
-
<label>{$_('
|
|
509
|
+
<label>{$_('userEmail')}</label>
|
|
510
510
|
<input type="email" class="FieldDisabled" part="FieldDisabled" value={email} readonly />
|
|
511
511
|
</div>
|
|
512
512
|
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
513
|
-
<label>{$_('
|
|
513
|
+
<label>{$_('dateOfBirth')}</label>
|
|
514
514
|
<input type="text" class="FieldDisabled" part="FieldDisabled" value={birth} readonly />
|
|
515
515
|
</div>
|
|
516
516
|
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
517
|
-
<label>{$_('
|
|
517
|
+
<label>{$_('firstName')}</label>
|
|
518
518
|
<input type="text" class="FieldDisabled" part="FieldDisabled" value={firstname} readonly />
|
|
519
519
|
</div>
|
|
520
520
|
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
521
|
-
<label>{$_('
|
|
521
|
+
<label>{$_('lastName')}</label>
|
|
522
522
|
<input type="text" class="FieldDisabled" part="FieldDisabled" value={lastname} readonly />
|
|
523
523
|
</div>
|
|
524
524
|
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
525
|
-
<label>{$_('
|
|
525
|
+
<label>{$_('userTitle')}</label>
|
|
526
526
|
<input type="text" class="FieldDisabled" part="FieldDisabled" value={userTitles} readonly />
|
|
527
527
|
</div>
|
|
528
528
|
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
529
|
-
<label>{$_('
|
|
529
|
+
<label>{$_('currency')}</label>
|
|
530
530
|
<input type="text" class="FieldDisabled" part="FieldDisabled" value={currency} readonly />
|
|
531
531
|
</div>
|
|
532
532
|
</section>
|
|
533
533
|
|
|
534
534
|
<div class="PlayerLocationHeader" part="PlayerLocationHeader">
|
|
535
|
-
<h3>{$_('
|
|
535
|
+
<h3>{$_('locationDetails')}</h3>
|
|
536
536
|
</div>
|
|
537
537
|
<section class="PlayerLocationContent" part="PlayerLocationContent">
|
|
538
538
|
<div class="PlayerInfoBox" part="PlayerInfoBox">
|
|
539
|
-
<label>{$_('
|
|
539
|
+
<label>{$_('userCountry')}</label>
|
|
540
540
|
<input type="text" class="PlayerCountry FieldDisabled" part="PlayerCountry FieldDisabled" placeholder={countrycode} value={selectedCountry.Name} readonly />
|
|
541
541
|
</div>
|
|
542
542
|
<div class="PlayerInfoBox {invalidCity ? 'InvalidField' : ''}" part="PlayerInfoBox {invalidCity ? 'InvalidField' : ''}">
|
|
543
|
-
<label>{$_('
|
|
543
|
+
<label>{$_('userCity')}</label>
|
|
544
544
|
<input bind:this={playerCity} type="text" on:blur={validateCity} on:keyup={() => checkForChanges()} placeholder={noPlayerData ? city : ''} value={noPlayerData ? '' : initialValuesArray.city} />
|
|
545
545
|
{#if invalidCity}
|
|
546
|
-
<p class="InvalidInput" part="InvalidInput">{$_('
|
|
546
|
+
<p class="InvalidInput" part="InvalidInput">{$_('userCityError')}</p>
|
|
547
547
|
{/if}
|
|
548
548
|
</div>
|
|
549
549
|
<div class="PlayerInfoBox {invalidAddress ? 'InvalidField' : ''}" part="PlayerInfoBox {invalidAddress ? 'InvalidField' : ''}">
|
|
550
|
-
<label>{$_('
|
|
550
|
+
<label>{$_('userAddress')}</label>
|
|
551
551
|
<input bind:this={playerAddress} placeholder={address1} type="text" on:blur={validateAddress} on:keyup={() => checkForChanges()} value={noPlayerData ? '' : initialValuesArray.address} />
|
|
552
552
|
{#if invalidAddress}
|
|
553
|
-
<p class="InvalidInput" part="InvalidInput">{$_('
|
|
553
|
+
<p class="InvalidInput" part="InvalidInput">{$_('userAddressError')}</p>
|
|
554
554
|
{/if}
|
|
555
555
|
</div>
|
|
556
556
|
<div class="PlayerInfoBox {invalidPostalCode ? 'InvalidField' : ''}" part="PlayerInfoBox {invalidPostalCode ? 'InvalidField' : ''}">
|
|
557
|
-
<label>{$_('
|
|
557
|
+
<label>{$_('userPostalCode')}</label>
|
|
558
558
|
<input bind:this={playerPostalCode} type="text" on:blur={validatePostalCode} on:keyup={() => checkForChanges()} placeholder={noPlayerData ? postalCode : ''} value={noPlayerData ? '' : initialValuesArray.postalCode} />
|
|
559
559
|
{#if invalidPostalCode}
|
|
560
|
-
<p class="InvalidInput" part="InvalidInput">{$_('
|
|
560
|
+
<p class="InvalidInput" part="InvalidInput">{$_('userPostalCodeError')}</p>
|
|
561
561
|
{/if}
|
|
562
562
|
</div>
|
|
563
563
|
</section>
|
|
564
564
|
|
|
565
565
|
{#if showEmail || showSMS}
|
|
566
566
|
<div class="PlayerNotificationsHeader" part="PlayerNotificationsHeader">
|
|
567
|
-
<h3>{$_('
|
|
567
|
+
<h3>{$_('userNotifications')}</h3>
|
|
568
568
|
</div>
|
|
569
569
|
<section class="PlayerNotificationsCheckboxArea" part="PlayerNotificationsCheckboxArea">
|
|
570
570
|
{#if showSMS}
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
<label for="SMSNotification">
|
|
573
573
|
<input bind:checked={giveConsentSMS} on:change={checkForChanges} type="checkbox" id="SMSNotification" name="Enable SMS notifications" />
|
|
574
574
|
<span class="Checkmark" part="Checkmark"></span>
|
|
575
|
-
<span>{$_('
|
|
575
|
+
<span>{$_('userSMSNotification')}</span>
|
|
576
576
|
</label>
|
|
577
577
|
</div>
|
|
578
578
|
{/if}
|
|
@@ -581,7 +581,7 @@
|
|
|
581
581
|
<label for="EmailNotification">
|
|
582
582
|
<input bind:checked={giveConsentEmail} on:change={checkForChanges} type="checkbox" id="EmailNotification" name="Enable Emails" />
|
|
583
583
|
<span class="Checkmark" part="Checkmark"></span>
|
|
584
|
-
<span>{$_('
|
|
584
|
+
<span>{$_('userEmailNotification')}</span>
|
|
585
585
|
</label>
|
|
586
586
|
</div>
|
|
587
587
|
{/if}
|
|
@@ -589,24 +589,24 @@
|
|
|
589
589
|
{/if}
|
|
590
590
|
{#if isOnNative}
|
|
591
591
|
<div class="PlayerNotificationsHeader" part="PlayerNotificationsHeader">
|
|
592
|
-
<h3>{$_('
|
|
592
|
+
<h3>{$_('userAppSettings')}</h3>
|
|
593
593
|
</div>
|
|
594
594
|
<section class="PlayerNotificationsCheckboxArea" part="PlayerNotificationsCheckboxArea">
|
|
595
595
|
<div class="PlayerNotificationBox" part="PlayerNotificationBox">
|
|
596
596
|
<label for="Biometrics">
|
|
597
597
|
<input bind:checked={biometricsSelection} on:change={checkForChanges} type="checkbox" id="BiometricsEnabled" name="Biometric Enabled" />
|
|
598
598
|
<span class="Checkmark" part="Checkmark"></span>
|
|
599
|
-
<span>{$_('
|
|
599
|
+
<span>{$_('userBiometrics')}</span>
|
|
600
600
|
</label>
|
|
601
601
|
</div>
|
|
602
602
|
</section>
|
|
603
603
|
{/if}
|
|
604
604
|
<section class="PlayerDetailsButtonsArea {isMobile ? 'PlayerDetailsButtonsAreaMobile' : ''}" part="PlayerDetailsButtonsArea {isMobile ? 'PlayerDetailsButtonsAreaMobile' : ''}">
|
|
605
|
-
<button class="PlayerDetailsSaveButton {differencesExist && isValid ? '' : 'PlayerButtonDisabled'}" part="PlayerDetailsSaveButton {differencesExist && isValid ? '' : 'PlayerButtonDisabled'}" on:click={(e) => updatePlayerInfo(e)}>{$_('
|
|
605
|
+
<button class="PlayerDetailsSaveButton {differencesExist && isValid ? '' : 'PlayerButtonDisabled'}" part="PlayerDetailsSaveButton {differencesExist && isValid ? '' : 'PlayerButtonDisabled'}" on:click={(e) => updatePlayerInfo(e)}>{$_('userProfileSaveChanges')}</button>
|
|
606
606
|
</section>
|
|
607
607
|
{#if showConfirmSave}
|
|
608
608
|
<section class="PlayerDetailsConfirmSave" part="PlayerDetailsConfirmSave">
|
|
609
|
-
<p class="PlayerDetailsConfirmSaveText" part="PlayerDetailsConfirmSaveText">{$_('
|
|
609
|
+
<p class="PlayerDetailsConfirmSaveText" part="PlayerDetailsConfirmSaveText">{$_('userProfileConfirmationMessage')}</p>
|
|
610
610
|
</section>
|
|
611
611
|
{/if}
|
|
612
612
|
</form>
|