@everymatrix/player-profile-info 0.0.225 → 0.0.230
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.230",
|
|
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": "6450633dc3eac30c6bbb7963e606ee94b046d30d"
|
|
40
40
|
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
export let endpoint:string = '';
|
|
14
14
|
export let lang:string = 'en';
|
|
15
|
+
export let countrycode:string = 'IR';
|
|
15
16
|
|
|
16
17
|
let isLoading:boolean = false;
|
|
17
18
|
let userAgent:string = window.navigator.userAgent;
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
let playerPrefix:string = '';
|
|
28
29
|
let playerMobileNumber:string = '';
|
|
29
30
|
let differencesExist:boolean = false;
|
|
30
|
-
let selectedCountry:Object = {};
|
|
31
|
+
let selectedCountry:Object = { Name: 'I.e Ireland'};
|
|
31
32
|
let prefixesArray:Array<Object> = [];
|
|
32
33
|
let countriesArray:Array<Object> = []
|
|
33
34
|
|
|
@@ -116,9 +117,6 @@
|
|
|
116
117
|
birth = profileDetails.birth.day + '/' + profileDetails.birth.month + '/' + profileDetails.birth.year;
|
|
117
118
|
currency = profileDetails.currency;
|
|
118
119
|
userTitles = profileDetails.title;
|
|
119
|
-
country = profileDetails.country;
|
|
120
|
-
// match country code to country name
|
|
121
|
-
selectedCountry = countriesArray.find(country => country.Alpha2Code === profileDetails.country);
|
|
122
120
|
|
|
123
121
|
// editable field values used for bindings
|
|
124
122
|
giveConsentSMS = profileDetails.consents.acceptSMSOffers;
|
|
@@ -175,6 +173,7 @@
|
|
|
175
173
|
.then((res:any) => res.json())
|
|
176
174
|
.then(data => {
|
|
177
175
|
countriesArray = data.countries;
|
|
176
|
+
selectedCountry = countriesArray.find(country => country.Alpha2Code === countrycode);
|
|
178
177
|
});
|
|
179
178
|
}
|
|
180
179
|
|
|
@@ -354,7 +353,7 @@
|
|
|
354
353
|
});
|
|
355
354
|
|
|
356
355
|
$: lang && setActiveLanguage();
|
|
357
|
-
$: endpoint && getCountriesList();
|
|
356
|
+
$: endpoint && countrycode && getCountriesList();
|
|
358
357
|
$: endpoint && getPhoneCodes();
|
|
359
358
|
</script>
|
|
360
359
|
|
|
@@ -365,7 +364,7 @@
|
|
|
365
364
|
|
|
366
365
|
{#if isMobile}
|
|
367
366
|
<div class="MenuReturnButton" on:click={() => toggleScreen()}>
|
|
368
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><defs><style>.aaa{fill
|
|
367
|
+
<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
368
|
<g transform="translate(20 158)">
|
|
370
369
|
<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
370
|
</g></g>
|
|
@@ -448,7 +447,7 @@
|
|
|
448
447
|
<section class="PlayerLocationContent">
|
|
449
448
|
<div class="PlayerInfoBox">
|
|
450
449
|
<label>{$_('playerProfile.userCountry')}</label>
|
|
451
|
-
<input type="text" class="PlayerCountry FieldDisabled" placeholder={
|
|
450
|
+
<input type="text" class="PlayerCountry FieldDisabled" placeholder={countrycode} value={selectedCountry.Name} readonly />
|
|
452
451
|
</div>
|
|
453
452
|
<div class="PlayerInfoBox {invalidCity ? 'InvalidField' : ''}">
|
|
454
453
|
<label>{$_('playerProfile.userCity')}</label>
|
|
@@ -532,13 +531,13 @@
|
|
|
532
531
|
|
|
533
532
|
.MyAccountCategoryTitle {
|
|
534
533
|
font-size: 26px;
|
|
535
|
-
color: #D0046C;
|
|
534
|
+
color: var(--emfe-w-color-primary, #D0046C);
|
|
536
535
|
font-weight: 400;
|
|
537
536
|
}
|
|
538
537
|
|
|
539
538
|
.MyAccountCategoryTitleMobile {
|
|
540
539
|
font-size: 16px;
|
|
541
|
-
color: #D0046C;
|
|
540
|
+
color: var(--emfe-w-color-primary, #D0046C);
|
|
542
541
|
}
|
|
543
542
|
|
|
544
543
|
.MyAccountCategoryTitleNone {
|
|
@@ -546,8 +545,8 @@
|
|
|
546
545
|
}
|
|
547
546
|
|
|
548
547
|
.PlayerInfoWrapper {
|
|
549
|
-
color: #07072A;
|
|
550
|
-
background: #F9F8F8;
|
|
548
|
+
color: var(--emfe-w-color-contrast, #07072A);
|
|
549
|
+
background: var(--emfe-w-color-gray-50, #F9F8F8);
|
|
551
550
|
padding: 50px;
|
|
552
551
|
max-width: 760px;
|
|
553
552
|
}
|
|
@@ -555,7 +554,7 @@
|
|
|
555
554
|
.PlayerNotificationsHeader, .PlayerDetailsHeader, .PlayerLocationHeader {
|
|
556
555
|
h3 {
|
|
557
556
|
font-size: 16px;
|
|
558
|
-
color: #D0046C;
|
|
557
|
+
color: var(--emfe-w-color-primary, #D0046C);
|
|
559
558
|
text-transform: capitalize;
|
|
560
559
|
font-weight: 400;
|
|
561
560
|
}
|
|
@@ -571,7 +570,7 @@
|
|
|
571
570
|
}
|
|
572
571
|
|
|
573
572
|
.MenuReturnButton{
|
|
574
|
-
color: #58586B;
|
|
573
|
+
color: var(--emfe-w-color-gray-300, #58586B);
|
|
575
574
|
display: inline-flex;
|
|
576
575
|
align-items: center;
|
|
577
576
|
column-gap: 10px;
|
|
@@ -589,30 +588,30 @@
|
|
|
589
588
|
input {
|
|
590
589
|
font-size: ttp(0.875);
|
|
591
590
|
font-weight: 300;
|
|
592
|
-
color: #07072A;
|
|
591
|
+
color: var(--emfe-w-color-contrast, #07072A);
|
|
593
592
|
padding: ttp(0.625);
|
|
594
593
|
line-height: ttp(1);
|
|
595
|
-
background: #
|
|
596
|
-
border: 1px solid #
|
|
594
|
+
background: var(--emfe-w-color-white, #FFFFFF);
|
|
595
|
+
border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
|
|
597
596
|
border-radius: 5px;
|
|
598
597
|
outline: none;
|
|
599
598
|
transition-duration: 0.3s;
|
|
600
599
|
&:focus, :focus-within, :focus-visible, :visited {
|
|
601
|
-
border: 1px solid #D0046C;
|
|
602
|
-
box-shadow: 0 0 0 1pt #D0046C;
|
|
600
|
+
border: 1px solid var(--emfe-w-color-primary, #D0046C);
|
|
601
|
+
box-shadow: 0 0 0 1pt var(--emfe-w-color-primary, #D0046C);
|
|
603
602
|
}
|
|
604
603
|
}
|
|
605
604
|
|
|
606
605
|
&.InvalidField {
|
|
607
606
|
input {
|
|
608
|
-
border: 1px solid #FD2839;
|
|
609
|
-
background: #
|
|
610
|
-
color: #FD2839;
|
|
607
|
+
border: 1px solid var(--emfe-w-color-secondary, #FD2839);
|
|
608
|
+
background: var(--emfe-w-color-primary-50, #FBECF4);
|
|
609
|
+
color: var(--emfe-w-color-secondary, #FD2839);
|
|
611
610
|
}
|
|
612
611
|
}
|
|
613
612
|
|
|
614
613
|
.InvalidInput {
|
|
615
|
-
color: #FD2839;
|
|
614
|
+
color: var(--emfe-w-color-secondary, #FD2839);
|
|
616
615
|
font-size: 10px;
|
|
617
616
|
line-height: 10px;
|
|
618
617
|
}
|
|
@@ -631,19 +630,19 @@
|
|
|
631
630
|
font-size: ttp(0.875);
|
|
632
631
|
font-weight: 300;
|
|
633
632
|
padding: ttp(0.625);
|
|
634
|
-
color: #07072A;
|
|
635
|
-
border: 1px solid #
|
|
633
|
+
color: var(--emfe-w-color-contrast, #07072A);
|
|
634
|
+
border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
|
|
636
635
|
border-radius: ttp(0.3125);
|
|
637
636
|
outline: none;
|
|
638
637
|
transition-duration: 0.3s;
|
|
639
638
|
-webkit-appearance: none;
|
|
640
639
|
-moz-appearance: none;
|
|
641
640
|
appearance: none;
|
|
642
|
-
background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat #
|
|
641
|
+
background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emfe-w-color-white, #FFFFFF);
|
|
643
642
|
background-position: calc(100% - 0.75rem) center;
|
|
644
643
|
&:focus, :focus-within, :focus-visible, :visited {
|
|
645
|
-
border: 1px solid #D0046C;
|
|
646
|
-
box-shadow: 0 0 0 1pt #D0046C;
|
|
644
|
+
border: 1px solid var(--emfe-w-color-primary, #D0046C);
|
|
645
|
+
box-shadow: 0 0 0 1pt var(--emfe-w-color-primary, #D0046C);
|
|
647
646
|
}
|
|
648
647
|
}
|
|
649
648
|
/* Chrome, Safari, Edge, Opera */
|
|
@@ -690,12 +689,12 @@
|
|
|
690
689
|
border-radius: ttp(3.125);
|
|
691
690
|
outline: none;
|
|
692
691
|
transition-duration: 0.3s;
|
|
693
|
-
background-color: #
|
|
692
|
+
background-color: var(--emfe-w-color-gray-100, #E6E6E6);
|
|
694
693
|
cursor: pointer;
|
|
695
694
|
margin-right: ttp(0.625);
|
|
696
695
|
}
|
|
697
696
|
input:checked {
|
|
698
|
-
background-color: #D0046C;
|
|
697
|
+
background-color: var(--emfe-w-color-primary, #D0046C);
|
|
699
698
|
}
|
|
700
699
|
.Checkmark {
|
|
701
700
|
left: ttp(0.6875);
|
|
@@ -729,17 +728,17 @@
|
|
|
729
728
|
align-items: center;
|
|
730
729
|
justify-content: center;
|
|
731
730
|
font-size: ttp(1);
|
|
732
|
-
color: #07072A;
|
|
731
|
+
color: var(--emfe-w-color-contrast, #07072A);
|
|
733
732
|
text-transform: uppercase;
|
|
734
733
|
transition-duration: 0.3s;
|
|
735
734
|
box-sizing: border-box;
|
|
736
735
|
}
|
|
737
736
|
.PlayerDetailsSaveButton {
|
|
738
|
-
background: #D0046C;
|
|
739
|
-
border: 1px solid #D0046C;
|
|
740
|
-
color: #
|
|
737
|
+
background: var(--emfe-w-color-primary, #D0046C);
|
|
738
|
+
border: 1px solid var(--emfe-w-color-primary, #D0046C);
|
|
739
|
+
color: var(--emfe-w-color-white, #FFFFFF);
|
|
741
740
|
&:active {
|
|
742
|
-
background:
|
|
741
|
+
background: var(--emfe-w-color-primary-600, #99034F);
|
|
743
742
|
}
|
|
744
743
|
&.PlayerButtonDisabled {
|
|
745
744
|
opacity: 0.3;
|
|
@@ -749,13 +748,13 @@
|
|
|
749
748
|
|
|
750
749
|
.PlayerDetailsCancelButton {
|
|
751
750
|
background: transparent;
|
|
752
|
-
border: 1px solid #58586B;
|
|
751
|
+
border: 1px solid var(--emfe-w-color-gray-300, #58586B);
|
|
753
752
|
&:active {
|
|
754
|
-
background:
|
|
753
|
+
background: var(--emfe-w-color-primary-600, #99034F);
|
|
755
754
|
}
|
|
756
755
|
&.PlayerButtonDisabled {
|
|
757
756
|
background: transparent;
|
|
758
|
-
border: 1px solid #58586B;
|
|
757
|
+
border: 1px solid var(--emfe-w-color-gray-300, #58586B);
|
|
759
758
|
cursor: not-allowed;
|
|
760
759
|
opacity: 0.6;
|
|
761
760
|
}
|
|
@@ -776,31 +775,31 @@
|
|
|
776
775
|
|
|
777
776
|
.PlayerInfoWrapperMobile {
|
|
778
777
|
padding: ttp(1.25) ttp(0.9375);
|
|
779
|
-
background: #F9F8F8;
|
|
778
|
+
background: var(--emfe-w-color-gray-50, #F9F8F8);
|
|
780
779
|
max-width: unset;
|
|
781
780
|
.PlayerDetailsContent {
|
|
782
781
|
grid-template-columns: 1fr;
|
|
783
782
|
}
|
|
784
783
|
.PlayerNotificationsHeader, .PlayerDetailsHeader, .PlayerLocationHeader {
|
|
785
784
|
h3 {
|
|
786
|
-
color: #D0046C;
|
|
785
|
+
color: var(--emfe-w-color-primary, #D0046C);
|
|
787
786
|
font-size: ttp(0.875);
|
|
788
787
|
font-weight: 400;
|
|
789
788
|
}
|
|
790
789
|
}
|
|
791
790
|
.PlayerInfoBox {
|
|
792
791
|
label {
|
|
793
|
-
color: #58586B;
|
|
792
|
+
color: var(--emfe-w-color-gray-300, #58586B);
|
|
794
793
|
font-size: ttp(0.75);
|
|
795
794
|
font-weight: 400;
|
|
796
795
|
}
|
|
797
796
|
input {
|
|
798
|
-
color: #58586B;
|
|
797
|
+
color: var(--emfe-w-color-gray-300, #58586B);
|
|
799
798
|
font-size: ttp(0.75);
|
|
800
799
|
font-weight: 300;
|
|
801
800
|
}
|
|
802
801
|
select {
|
|
803
|
-
color: #58586B;
|
|
802
|
+
color: var(--emfe-w-color-gray-300, #58586B);
|
|
804
803
|
}
|
|
805
804
|
}
|
|
806
805
|
.PlayerLocationContent {
|
|
@@ -809,7 +808,7 @@
|
|
|
809
808
|
.PlayerNotificationsCheckboxArea {
|
|
810
809
|
.PlayerNotificationBox {
|
|
811
810
|
label {
|
|
812
|
-
color: #07072A;
|
|
811
|
+
color: var(--emfe-w-color-contrast, #07072A);
|
|
813
812
|
font-size: ttp(0.75);
|
|
814
813
|
font-weight: 300;
|
|
815
814
|
}
|
|
@@ -821,13 +820,13 @@
|
|
|
821
820
|
.PlayerDetailsSaveButton, .PlayerDetailsCancelButton {
|
|
822
821
|
font-size: ttp(0.75);
|
|
823
822
|
height: ttp(2.5);
|
|
824
|
-
color: #
|
|
823
|
+
color: var(--emfe-w-color-white, #FFFFFF);
|
|
825
824
|
&.PlayerButtonDisabled {
|
|
826
|
-
color: #58586B;
|
|
825
|
+
color: var(--emfe-w-color-gray-300, #58586B);
|
|
827
826
|
}
|
|
828
827
|
}
|
|
829
828
|
.PlayerDetailsCancelButton {
|
|
830
|
-
color: #58586B;
|
|
829
|
+
color: var(--emfe-w-color-gray-300, #58586B);
|
|
831
830
|
}
|
|
832
831
|
}
|
|
833
832
|
|
|
@@ -881,9 +880,9 @@
|
|
|
881
880
|
height: ttp(3.5);
|
|
882
881
|
}
|
|
883
882
|
.PlayerDetailsSaveButton {
|
|
884
|
-
color: #
|
|
883
|
+
color: var(--emfe-w-color-white, #FFFFFF);
|
|
885
884
|
&.PlayerButtonDisabled {
|
|
886
|
-
color: #58586B;
|
|
885
|
+
color: var(--emfe-w-color-gray-300, #58586B);
|
|
887
886
|
}
|
|
888
887
|
}
|
|
889
888
|
}
|
|
@@ -904,8 +903,8 @@
|
|
|
904
903
|
}
|
|
905
904
|
}
|
|
906
905
|
.PlayerDetailsConfirmSave {
|
|
907
|
-
background: #
|
|
908
|
-
color: #
|
|
906
|
+
background: var(--emfe-w-color-green, #48952a);
|
|
907
|
+
color: var(--emfe-w-color-white, #FFFFFF);
|
|
909
908
|
padding: ttp(1);
|
|
910
909
|
border-radius: 5px;
|
|
911
910
|
margin-top: ttp(1);
|