@everymatrix/player-account-controller 0.0.235 → 0.0.239

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/index.html CHANGED
@@ -33,10 +33,10 @@
33
33
  <player-account-controller
34
34
  endpoint="https://demo-api.stage.norway.everymatrix.com/v1"
35
35
  cmsendpoint="https://wt1-stage.everymatrix.com/apijson"
36
- playerid="3976988"
37
- session="9f7275ee-5b16-40ba-b847-cfb7a14399c2"
36
+ playerid="3856617"
37
+ session="c053558b-da3f-4ef7-9a7d-50356995089e"
38
38
  customnotifications="#58586B,#2687F6,#D0046C"
39
- lang="en"
39
+ lang="ro"
40
40
  env="stage"
41
41
  ></player-account-controller>
42
42
  <!--<player-account-controller cmsendpoint="https://wp-one-widgets.everymatrix.com/wp-json/wpone-rest/v1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-controller",
3
- "version": "0.0.235",
3
+ "version": "0.0.239",
4
4
  "main": "dist/player-account-controller.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -29,8 +29,8 @@
29
29
  "typescript": "^3.9.3"
30
30
  },
31
31
  "dependencies": {
32
- "@everymatrix/player-account-menu": "^0.0.235",
33
- "@everymatrix/player-account-notifications": "^0.0.235",
32
+ "@everymatrix/player-account-menu": "^0.0.239",
33
+ "@everymatrix/player-account-notifications": "^0.0.239",
34
34
  "cross-env": "^7.0.3",
35
35
  "sirv-cli": "^1.0.0",
36
36
  "svelte": "^3.0.0"
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "61a6a3f31e48f5f6865ef5aafdaa2091436ca9d5"
41
+ "gitHead": "3514a454516ab9691e0154509b1a13d332315cc5"
42
42
  }
@@ -55,6 +55,7 @@
55
55
  let storedRealityCheck:string = '';
56
56
  let errorPasswordChanged:string = '';
57
57
  let showErrorPasswordChanged:boolean = false;
58
+ let selected:string;
58
59
 
59
60
  const widgetTitle = ['Profile Info',
60
61
  'Change password',
@@ -70,27 +71,50 @@
70
71
  'Withdrawal',
71
72
  'Pending Withdrawals',
72
73
  'Transaction History'];
74
+ const widgetPath = ['/profile-info',
75
+ '/change-password',
76
+ '/reality-check',
77
+ '/timeout',
78
+ '/account-closure',
79
+ '/gaming-limits',
80
+ '/self-exclusion',
81
+ '/active-bonuses',
82
+ '/bonus-history',
83
+ '/gaming-history',
84
+ '/deposit',
85
+ '/withdrawal',
86
+ '/pending-withdrawals',
87
+ '/transaction-history'];
73
88
  const accountMenuEndpointURL:string = `${cmsendpoint}/${lang}/profile-menu?env=${env}`;
74
89
  const notificationsEndpointURL:string = `${cmsendpoint}/${lang}/support-information?env=${env}`;
75
90
 
76
91
  let switchContent:boolean = false;
77
92
 
78
- const messageHandler = (e:any) => {
93
+ const messageHandler = (e:any):void => {
94
+ let url:URL;
95
+
79
96
  if (e.data) {
80
97
  switch(e.data.type) {
81
98
  case 'AccountMenuDetails':
82
99
  // @TODO open after launch event is triggered from CMS menu
83
- break;
100
+ // @TODO what is dis?
101
+ break;
84
102
 
85
103
  case 'ChangeAccountPage':
86
104
  switchContent = true;
87
- pageName = e.data.page.label;
105
+ pageName = e.data.page.path;
88
106
  getUserProfileInfo();
89
107
  break;
90
108
 
91
109
  case 'SetActivePage':
92
110
  switchContent = true;
93
111
  pageName = e.data.pageName;
112
+
113
+ let aux:any = menuData.filter((item) => {
114
+ return item.label == pageName;
115
+ });
116
+
117
+ selected = aux[0].id;
94
118
  getUserProfileInfo();
95
119
  break;
96
120
 
@@ -102,20 +126,23 @@
102
126
  case 'UpdatePlayerInfo':
103
127
  let profileData = e.data.provisionalArray;
104
128
  let sentData = {
105
- mobile: {
106
- prefix: profileData.mobilePrefix,
107
- number: profileData.mobileNumber
108
- },
109
- address1: profileData.address,
110
- city: profileData.city,
111
- postalCode: profileData.postalCode,
112
- securityQuestion: profileData.securityQuestion,
113
- securityAnswer: profileData.securityAnswer,
114
- consents: {
115
- acceptNewsEmail: profileData.acceptNewsEmail,
116
- acceptSMSOffers: profileData.acceptSMSOffers
117
- }
118
- }
129
+ mobile: {
130
+ prefix: profileData.mobilePrefix,
131
+ number: profileData.mobileNumber
132
+ },
133
+ address1: profileData.address,
134
+ city: profileData.city,
135
+ postalCode: profileData.postalCode,
136
+ securityQuestion: profileData.securityQuestion,
137
+ securityAnswer: profileData.securityAnswer,
138
+ consents: {
139
+ acceptNewsEmail: profileData.acceptNewsEmail,
140
+ acceptSMSOffers: profileData.acceptSMSOffers
141
+ }
142
+ };
143
+
144
+ url = new URL(`${endpoint}/player/${userId}/profile`);
145
+
119
146
  let options = {
120
147
  method: "POST",
121
148
  headers: {
@@ -126,7 +153,7 @@
126
153
  body: JSON.stringify(sentData)
127
154
  };
128
155
 
129
- fetch(`${endpoint}/player/${userId}/profile`, options)
156
+ fetch(url.href, options)
130
157
  .then((res:any) => {
131
158
  if (res.status == 200) {
132
159
  window.postMessage({ type: 'WidgetNotification', data: {
@@ -143,6 +170,7 @@
143
170
  break;
144
171
 
145
172
  case 'SetPlayerAccountTimeout':
173
+ url = new URL(`${endpoint}/player/${userId}/limits`);
146
174
  let timeoutValue = e.data.timeoutSelected;
147
175
 
148
176
  let dataTimeout = {
@@ -161,7 +189,7 @@
161
189
  body: JSON.stringify(dataTimeout)
162
190
  };
163
191
 
164
- fetch(`${endpoint}/player/${userId}/limits`, setTimeout)
192
+ fetch(url.href, setTimeout)
165
193
  .then((res:any) => {
166
194
  if (res.status == 200) {
167
195
  window.postMessage({ type: 'WidgetNotification', data: {
@@ -176,6 +204,8 @@
176
204
  break;
177
205
 
178
206
  case 'SetSelfExclusion':
207
+ url = new URL(`${endpoint}/player/${userId}/limits`);
208
+
179
209
  let selfExclusionPeriod = e.data.selfExclusionPeriod;
180
210
  let selfExclusionExpiryDate = e.data.selfExclusionExpiryDate;
181
211
 
@@ -197,21 +227,23 @@
197
227
  body: JSON.stringify(dataSelfExclusion)
198
228
  };
199
229
 
200
- fetch(`${endpoint}/player/${userId}/limits`, setSelfExclusion)
201
- .then((res:any) => {
202
- if (res.status == 200) {
203
- window.postMessage({ type: 'WidgetNotification', data: {
204
- type: 'success',
205
- message: 'Self exclusion active'
206
- }}, window.location.href);
207
- window.postMessage({ type: 'LogoutSuccessfull'}, window.location.href);
208
- } else {
209
- // ERROR
210
- }
211
- });
230
+ fetch(url.href, setSelfExclusion)
231
+ .then((res:any):void => {
232
+ if (res.status == 200) {
233
+ window.postMessage({ type: 'WidgetNotification', data: {
234
+ type: 'success',
235
+ message: 'Self exclusion active'
236
+ }}, window.location.href);
237
+ window.postMessage({ type: 'LogoutSuccessfull'}, window.location.href);
238
+ } else {
239
+ // ERROR
240
+ }
241
+ });
212
242
  break;
213
243
 
214
244
  case 'AccountClosure':
245
+ url = new URL(`${endpoint}/player/${userId}/limits`);
246
+
215
247
  let accountClosureData = 'UserRequest';
216
248
  let accountClosureSelection = {
217
249
  selfExclusion: {
@@ -232,8 +264,8 @@
232
264
  body: JSON.stringify(accountClosureSelection)
233
265
  };
234
266
 
235
- fetch(`${endpoint}/player/${userId}/limits`, optionsAccountClosure)
236
- .then((res:any) => {
267
+ fetch(url.href, optionsAccountClosure)
268
+ .then((res:any):void => {
237
269
  if (res.status == 200) {
238
270
  window.postMessage({ type: 'WidgetNotification', data: {
239
271
  type: 'success',
@@ -254,6 +286,8 @@
254
286
  break;
255
287
 
256
288
  case 'PlayerAccountGamingLimitsUpdate':
289
+ url = new URL(`${endpoint}/player/${userId}/limits`);
290
+
257
291
  let limitsObject = e.data.payload;
258
292
  let limitsSectionTitle = e.data.limitsCategory;
259
293
  let limitsData = (limitsSectionTitle === 'cumulativeSessionLimits' || limitsSectionTitle === 'depositLimits') ? limitsObject : {[limitsSectionTitle]: limitsObject}
@@ -268,8 +302,8 @@
268
302
  body: JSON.stringify(limitsData)
269
303
  };
270
304
 
271
- fetch(`${endpoint}/player/${userId}/limits`, optionsEditLimits)
272
- .then((res:any) => {
305
+ fetch(url.href, optionsEditLimits)
306
+ .then((res:any):void => {
273
307
  if (res.status == 200) {
274
308
  showsuccessnotification = true;
275
309
 
@@ -278,7 +312,7 @@
278
312
  message: 'Limits updated'
279
313
  }}, window.location.href);
280
314
 
281
- getGamingLimits(`${endpoint}/player/${playerid}/limits`);
315
+ getGamingLimits(new URL(`${endpoint}/player/${playerid}/limits`));
282
316
  } else {
283
317
  // ERROR
284
318
  }
@@ -325,7 +359,7 @@
325
359
  body: JSON.stringify(limitsDeleteData)
326
360
  };
327
361
 
328
- let url:any = new URL(`${endpoint}/player/${userId}/limits/${limitName}`);
362
+ url = new URL(`${endpoint}/player/${userId}/limits/${limitName}`);
329
363
 
330
364
  if (limitName === 'deposit' || limitName === 'cumulativeSession') {
331
365
  if (Array.isArray(deletedPeriodLimit)) {
@@ -337,15 +371,15 @@
337
371
  }
338
372
  }
339
373
 
340
- fetch(url, deleteOptions)
341
- .then((res:any) => {
374
+ fetch(url.href, deleteOptions)
375
+ .then((res:any):void => {
342
376
  if (res.status == 200) {
343
377
  showdeletenotification = true;
344
378
  window.postMessage({ type: 'WidgetNotification', data: {
345
379
  type: 'success',
346
380
  message: 'Limits deleted'
347
381
  }}, window.location.href);
348
- getGamingLimits(`${endpoint}/player/${playerid}/limits`);
382
+ getGamingLimits(new URL(`${endpoint}/player/${playerid}/limits`));
349
383
  } else {
350
384
  // ERROR
351
385
  }
@@ -353,26 +387,22 @@
353
387
  break;
354
388
 
355
389
  case 'GamingLimitsConfirmChanges':
356
- getGamingLimits(`${endpoint}/player/${playerid}/limits`);
390
+ getGamingLimits(new URL(`${endpoint}/player/${playerid}/limits`));
357
391
  break;
358
392
 
359
393
  case 'CancelGamingLimitsChanges':
360
- getGamingLimits(`${endpoint}/player/${playerid}/limits`);
394
+ getGamingLimits(new URL(`${endpoint}/player/${playerid}/limits`));
361
395
  break;
362
396
 
363
397
  case 'SubmittedRealityCheck':
364
398
  setRealityCheckValue(e.data.realityCheckUpdatedValue);
365
399
  break;
366
-
367
- default:
368
- // do nothing
369
- break;
370
400
  }
371
401
  }
372
402
  }
373
403
 
374
- const getAccountMenuDetails = (url:string) => {
375
- fetch(url)
404
+ const getAccountMenuDetails = (url:URL):void => {
405
+ fetch(url.href)
376
406
  .then((res:any) => res.json())
377
407
  .then((data:any) => {
378
408
  menuData = data;
@@ -382,20 +412,21 @@
382
412
  });
383
413
  }
384
414
 
385
- const getNotificationsDetails = (url:string) => {
386
- fetch(url)
415
+ const getNotificationsDetails = (url:URL):void => {
416
+ fetch(url.href)
387
417
  .then((res:any) => res.json())
388
- .then((data:any) => {
418
+ .then((data:any):void => {
389
419
  if(data.length) {
390
420
  notificationsData = data[0].children;
391
421
  window.postMessage({ type: 'NotificationsDetails', notificationsInfo: notificationsData }, window.location.href);
392
422
  }
393
- }, (err:any) => {
423
+ }, (err:any):void => {
394
424
  console.error(err);
395
425
  });
396
426
  }
397
427
 
398
- const getUserProfileInfo = () => {
428
+ const getUserProfileInfo = ():void => {
429
+ let url:URL = new URL(`${endpoint}/player/${userId}/profile`);
399
430
  let options = {
400
431
  method: "GET",
401
432
  headers: {
@@ -403,7 +434,7 @@
403
434
  }
404
435
  };
405
436
 
406
- fetch(`${endpoint}/player/${userId}/profile`, options)
437
+ fetch(url.href, options)
407
438
  .then((res:any) => { return res.json(); })
408
439
  .then((data:any) => {
409
440
  countrycode = data.country;
@@ -414,7 +445,8 @@
414
445
  });
415
446
  }
416
447
 
417
- const sendChangePassword = async (playerCurrentPassword:string, playerNewPassword:string) => {
448
+ const sendChangePassword = async (playerCurrentPassword:string, playerNewPassword:string):void => {
449
+ let url:URL = new URL(`${endpoint}/player/${userId}/password`)
418
450
  let data = {
419
451
  currentPassword: playerCurrentPassword,
420
452
  newPassword: playerNewPassword
@@ -429,7 +461,7 @@
429
461
  body: JSON.stringify(data)
430
462
  };
431
463
 
432
- let response:any = await fetch(`${endpoint}/player/${userId}/password`, optionsChangePassword);
464
+ let response:any = await fetch(url.href, optionsChangePassword);
433
465
 
434
466
  if (response.ok) {
435
467
  window.postMessage({ type: 'PasswordChangedSuccessfully' }, window.location.href);
@@ -450,14 +482,14 @@
450
482
  }
451
483
  }
452
484
 
453
- const getRealityCheckData = (url:string) => {
485
+ const getRealityCheckData = (url:URL):void => {
454
486
  let options = {
455
487
  method: 'GET',
456
488
  headers: {
457
489
  'X-SessionID': sessionId,
458
490
  }
459
491
  }
460
- fetch(url, options)
492
+ fetch(url.href, options)
461
493
  .then((res:any) => { return res.json(); })
462
494
  .then((data:any) => {
463
495
  realityCheckData = data.UserRealityCheckValue;
@@ -466,8 +498,10 @@
466
498
  });
467
499
  }
468
500
 
469
- const setRealityCheckValue = (updatedData:string) => {
470
- if(updatedData) {
501
+ const setRealityCheckValue = (updatedData:string):void => {
502
+ let url:URL = new URL(`${endpoint}/player/${userId}/realitycheck`);
503
+
504
+ if (updatedData) {
471
505
  storedRealityCheck = updatedData;
472
506
  }
473
507
 
@@ -481,10 +515,10 @@
481
515
  }
482
516
  };
483
517
 
484
- fetch(`${endpoint}/player/${userId}/realitycheck`, optionsRealityCheck)
518
+ fetch(url.href, optionsRealityCheck)
485
519
  .then((res:any) => {
486
520
  if (res.status == 200) {
487
- getRealityCheckData(`${endpoint}/player/${playerid}/realitycheck`);
521
+ getRealityCheckData(new URL(`${endpoint}/player/${playerid}/realitycheck`));
488
522
  window.postMessage({ type: 'RealityCheckValueUpdated' }, window.location.href);
489
523
  window.postMessage({ type: 'WidgetNotification', data: {
490
524
  type: 'success',
@@ -496,7 +530,7 @@
496
530
  });
497
531
  }
498
532
 
499
- const getGamingLimits = (url:string) => {
533
+ const getGamingLimits = (url:URL):void => {
500
534
  if (showsuccessnotification === true) {
501
535
  setTimeout(() => {showsuccessnotification = false; }, 3000);
502
536
  } else if(showdeletenotification === true) {
@@ -510,9 +544,9 @@
510
544
  }
511
545
  };
512
546
 
513
- fetch(url, options)
547
+ fetch(url.href, options)
514
548
  .then((res:any) => res.json())
515
- .then((data:any) => {
549
+ .then((data:any):void => {
516
550
  playerlimits = data;
517
551
  // add name property for info boxes
518
552
  if (Object.keys(playerlimits).length !== 0) {
@@ -558,19 +592,22 @@
558
592
  });
559
593
  }
560
594
 
561
- const getData = () => {
562
- getAccountMenuDetails(`${cmsendpoint}/${lang}/profile-menu?env=${env}`);
563
- getNotificationsDetails(`${cmsendpoint}/${lang}/support-information?env=${env}`);
595
+ const getData = ():void => {
596
+ getAccountMenuDetails(new URL(`${cmsendpoint}/${lang}/profile-menu?env=${env}`));
597
+ getNotificationsDetails(new URL(`${cmsendpoint}/${lang}/support-information?env=${env}`));
564
598
  getUserProfileInfo();
565
- getGamingLimits(`${endpoint}/player/${playerid}/limits`);
566
- getRealityCheckData(`${endpoint}/player/${playerid}/realitycheck`);
599
+ getGamingLimits(new URL(`${endpoint}/player/${playerid}/limits`));
600
+ getRealityCheckData(new URL(`${endpoint}/player/${playerid}/realitycheck`));
567
601
  }
568
602
 
569
- const initialLoad = () => {
603
+ const setActiveLanguage = ():void => {
570
604
  setLocale(lang);
605
+ }
606
+
607
+ const initialLoad = ():void => {
571
608
  userId = playerid;
572
609
  sessionId = session;
573
- pageName = widgetTitle[0];
610
+ pageName = widgetPath[0];
574
611
 
575
612
  if (!isMobile) {
576
613
  switchContent = true;
@@ -587,6 +624,7 @@
587
624
  }
588
625
  });
589
626
 
627
+ $: lang && setActiveLanguage();
590
628
  $: cmsendpoint && endpoint && customnotifications && playerid && session && lang && env && initialLoad();
591
629
  </script>
592
630
 
@@ -601,68 +639,68 @@
601
639
  <player-account-notifications customnotif={customnotifications}></player-account-notifications>
602
640
  </nav>
603
641
  {:else}
604
- {#if switchContent && pageName === widgetTitle[0]}
642
+ {#if switchContent && pageName === widgetPath[0]}
605
643
  <player-profile-info {endpoint} {lang} {countrycode}></player-profile-info>
606
- {:else if switchContent && pageName === widgetTitle[1]}
644
+ {:else if switchContent && pageName === widgetPath[1]}
607
645
  <player-change-password {lang}></player-change-password>
608
- {:else if switchContent && pageName === widgetTitle[2]}
646
+ {:else if switchContent && pageName === widgetPath[2]}
609
647
  <player-reality-check realitycheck={realityCheckData} {endpoint} {playerid} {session} {lang}></player-reality-check>
610
- {:else if switchContent && pageName === widgetTitle[3]}
648
+ {:else if switchContent && pageName === widgetPath[3]}
611
649
  <player-account-timeout {lang} {operator}></player-account-timeout>
612
- {:else if switchContent && pageName === widgetTitle[4]}
650
+ {:else if switchContent && pageName === widgetPath[4]}
613
651
  <player-account-closure {lang}></player-account-closure>
614
- {:else if switchContent && pageName === widgetTitle[5]}
652
+ {:else if switchContent && pageName === widgetPath[5]}
615
653
  <player-account-gaming-limits {depositlimit} {wageringlimit} {losslimit} {timelimit} {showsuccessnotification} {showdeletenotification} {lang}></player-account-gaming-limits>
616
- {:else if switchContent && pageName === widgetTitle[6]}
654
+ {:else if switchContent && pageName === widgetPath[6]}
617
655
  <player-account-self-exclusion {lang} {operator}></player-account-self-exclusion>
618
- {:else if switchContent && pageName === widgetTitle[7]}
656
+ {:else if switchContent && pageName === widgetPath[7]}
619
657
  <player-active-bonuses {endpoint} {session} {playerid} {lang}></player-active-bonuses>
620
- {:else if switchContent && pageName === widgetTitle[8]}
658
+ {:else if switchContent && pageName === widgetPath[8]}
621
659
  <player-bonus-history {endpoint} {session} {playerid} {lang}></player-bonus-history>
622
- {:else if switchContent && pageName === widgetTitle[9]}
660
+ {:else if switchContent && pageName === widgetPath[9]}
623
661
  <player-gaming-history {endpoint} {session} {playerid} {lang}></player-gaming-history>
624
- {:else if switchContent && pageName === widgetTitle[10]}
662
+ {:else if switchContent && pageName === widgetPath[10]}
625
663
  <player-deposit {endpoint} {session} {playerid} {lang}></player-deposit>
626
- {:else if switchContent && pageName === widgetTitle[11]}
664
+ {:else if switchContent && pageName === widgetPath[11]}
627
665
  <player-withdrawal {endpoint} {session} {playerid} {lang}></player-withdrawal>
628
- {:else if switchContent && pageName === widgetTitle[12]}
666
+ {:else if switchContent && pageName === widgetPath[12]}
629
667
  <player-pending-withdrawals {endpoint} {session} {playerid} {lang}></player-pending-withdrawals>
630
- {:else if switchContent && pageName === widgetTitle[13]}
668
+ {:else if switchContent && pageName === widgetPath[13]}
631
669
  <player-transaction-history {endpoint} {session} {playerid} {lang}></player-transaction-history>
632
670
  {/if}
633
671
  {/if}
634
672
  {:else}
635
673
  <nav>
636
- <player-account-menu {endpoint} {session} {playerid} {lang}></player-account-menu>
674
+ <player-account-menu {endpoint} {session} {playerid} {lang} selecteditem={selected}></player-account-menu>
637
675
  </nav>
638
676
  <main>
639
- {#if switchContent && pageName === widgetTitle[0]}
677
+ {#if switchContent && pageName === widgetPath[0]}
640
678
  <player-profile-info {endpoint} {lang} {countrycode}></player-profile-info>
641
- {:else if switchContent && pageName === widgetTitle[1]}
679
+ {:else if switchContent && pageName === widgetPath[1]}
642
680
  <player-change-password {lang}></player-change-password>
643
- {:else if switchContent && pageName === widgetTitle[2]}
681
+ {:else if switchContent && pageName === widgetPath[2]}
644
682
  <player-reality-check realitycheck={realityCheckData} {endpoint} {playerid} {session} {lang}></player-reality-check>
645
- {:else if switchContent && pageName === widgetTitle[3]}
683
+ {:else if switchContent && pageName === widgetPath[3]}
646
684
  <player-account-timeout {lang} {operator}></player-account-timeout>
647
- {:else if switchContent && pageName === widgetTitle[4]}
685
+ {:else if switchContent && pageName === widgetPath[4]}
648
686
  <player-account-closure {lang}></player-account-closure>
649
- {:else if switchContent && pageName === widgetTitle[5]}
687
+ {:else if switchContent && pageName === widgetPath[5]}
650
688
  <player-account-gaming-limits {depositlimit} {wageringlimit} {losslimit} {timelimit} {showsuccessnotification} {showdeletenotification} {lang}></player-account-gaming-limits>
651
- {:else if switchContent && pageName === widgetTitle[6]}
689
+ {:else if switchContent && pageName === widgetPath[6]}
652
690
  <player-account-self-exclusion {lang} {operator}></player-account-self-exclusion>
653
- {:else if switchContent && pageName === widgetTitle[7]}
691
+ {:else if switchContent && pageName === widgetPath[7]}
654
692
  <player-active-bonuses {endpoint} {session} {playerid} {lang}></player-active-bonuses>
655
- {:else if switchContent && pageName === widgetTitle[8]}
693
+ {:else if switchContent && pageName === widgetPath[8]}
656
694
  <player-bonus-history {endpoint} {session} {playerid} {lang}></player-bonus-history>
657
- {:else if switchContent && pageName === widgetTitle[9]}
695
+ {:else if switchContent && pageName === widgetPath[9]}
658
696
  <player-gaming-history {endpoint} {session} {playerid} {lang}></player-gaming-history>
659
- {:else if switchContent && pageName === widgetTitle[10]}
697
+ {:else if switchContent && pageName === widgetPath[10]}
660
698
  <player-deposit {endpoint} {session} {playerid} {lang}></player-deposit>
661
- {:else if switchContent && pageName === widgetTitle[11]}
699
+ {:else if switchContent && pageName === widgetPath[11]}
662
700
  <player-withdrawal {endpoint} {session} {playerid} {lang}></player-withdrawal>
663
- {:else if switchContent && pageName === widgetTitle[12]}
701
+ {:else if switchContent && pageName === widgetPath[12]}
664
702
  <player-pending-withdrawals {endpoint} {session} {playerid} {lang}></player-pending-withdrawals>
665
- {:else if switchContent && pageName === widgetTitle[13]}
703
+ {:else if switchContent && pageName === widgetPath[13]}
666
704
  <player-transaction-history {endpoint} {session} {playerid} {lang}></player-transaction-history>
667
705
  {/if}
668
706
  </main>