@everymatrix/player-profile-info 0.0.228 → 0.0.229
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.229",
|
|
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": "efee0743817693e5186a61a1477e081208d48fec"
|
|
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
|
|
|
@@ -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>
|