@everymatrix/player-profile-info 0.0.161 → 0.0.165
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 +129 -137
- package/dist/player-profile-info.js.map +1 -1
- package/package.json +2 -2
- package/src/PlayerProfileInfo.svelte +33 -35
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.165",
|
|
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": "69466f3f09b715237d9a3b1a78a8d2479dabe391"
|
|
40
40
|
}
|
|
@@ -11202,44 +11202,42 @@
|
|
|
11202
11202
|
if (e.data) {
|
|
11203
11203
|
switch(e.data.type) {
|
|
11204
11204
|
case 'ProfileDetailsData':
|
|
11205
|
-
|
|
11206
|
-
|
|
11207
|
-
profileDetails = e.data.profileDetails;
|
|
11205
|
+
noPlayerData = false;
|
|
11206
|
+
profileDetails = e.data.profileDetails;
|
|
11208
11207
|
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
|
|
11212
|
-
|
|
11213
|
-
|
|
11214
|
-
|
|
11215
|
-
|
|
11216
|
-
|
|
11217
|
-
|
|
11218
|
-
|
|
11219
|
-
|
|
11220
|
-
|
|
11221
|
-
|
|
11208
|
+
// readonly field values
|
|
11209
|
+
username = profileDetails.username;
|
|
11210
|
+
mobile = profileDetails.mobile;
|
|
11211
|
+
email = profileDetails.email;
|
|
11212
|
+
firstname = profileDetails.firstname;
|
|
11213
|
+
lastname = profileDetails.lastname;
|
|
11214
|
+
language = profileDetails.language;
|
|
11215
|
+
birth = profileDetails.birth.day + '/' + profileDetails.birth.month + '/' + profileDetails.birth.year;
|
|
11216
|
+
currency = profileDetails.currency;
|
|
11217
|
+
gender = profileDetails.gender;
|
|
11218
|
+
country = profileDetails.country;
|
|
11219
|
+
// match country code to country name
|
|
11220
|
+
selectedCountry = countriesArray.find(country => country.code === profileDetails.country);
|
|
11222
11221
|
|
|
11223
|
-
|
|
11224
|
-
|
|
11225
|
-
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
|
|
11229
|
-
|
|
11222
|
+
// editable field values used for bindings
|
|
11223
|
+
giveConsentSMS = profileDetails.consents.acceptSMSOffers;
|
|
11224
|
+
giveConsentEmail = profileDetails.consents.acceptNewsEmail;
|
|
11225
|
+
playerQuestion = profileDetails.securityQuestion;
|
|
11226
|
+
playerAnswer = profileDetails.securityAnswer;
|
|
11227
|
+
playerPrefix = profileDetails.mobile.prefix;
|
|
11228
|
+
playerMobileNumber = profileDetails.mobile.number;
|
|
11230
11229
|
|
|
11231
|
-
|
|
11232
|
-
|
|
11233
|
-
|
|
11234
|
-
|
|
11235
|
-
|
|
11236
|
-
|
|
11237
|
-
|
|
11238
|
-
|
|
11239
|
-
|
|
11240
|
-
|
|
11241
|
-
|
|
11242
|
-
}
|
|
11230
|
+
// set values for the initial editable values object
|
|
11231
|
+
initialValuesArray = {
|
|
11232
|
+
address: profileDetails.address1,
|
|
11233
|
+
city: profileDetails.city,
|
|
11234
|
+
acceptNewsEmail: profileDetails.consents.acceptNewsEmail,
|
|
11235
|
+
acceptSMSOffers: profileDetails.consents.acceptSMSOffers,
|
|
11236
|
+
mobilePrefix: mobile.prefix,
|
|
11237
|
+
mobileNumber: mobile.number,
|
|
11238
|
+
postalCode: profileDetails.postalCode,
|
|
11239
|
+
securityAnswer: profileDetails.securityAnswer,
|
|
11240
|
+
securityQuestion: profileDetails.securityQuestion,
|
|
11243
11241
|
}
|
|
11244
11242
|
|
|
11245
11243
|
break;
|