@everymatrix/player-account-controller 0.0.237 → 0.0.241

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
@@ -36,7 +36,7 @@
36
36
  playerid="3856617"
37
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.237",
3
+ "version": "0.0.241",
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.237",
33
- "@everymatrix/player-account-notifications": "^0.0.237",
32
+ "@everymatrix/player-account-menu": "^0.0.241",
33
+ "@everymatrix/player-account-notifications": "^0.0.241",
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": "2e75c5dd54e711bed0fc8b8282d8aa284725cfcf"
41
+ "gitHead": "298253a66c9a5be49e9c3c631b327129dc84c541"
42
42
  }
@@ -71,31 +71,52 @@
71
71
  'Withdrawal',
72
72
  'Pending Withdrawals',
73
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'];
74
88
  const accountMenuEndpointURL:string = `${cmsendpoint}/${lang}/profile-menu?env=${env}`;
75
89
  const notificationsEndpointURL:string = `${cmsendpoint}/${lang}/support-information?env=${env}`;
76
90
 
77
91
  let switchContent:boolean = false;
78
92
 
79
- const messageHandler = (e:any) => {
93
+ const messageHandler = (e:any):void => {
94
+ let url:URL;
95
+
80
96
  if (e.data) {
81
97
  switch(e.data.type) {
82
98
  case 'AccountMenuDetails':
83
99
  // @TODO open after launch event is triggered from CMS menu
84
- break;
100
+ // @TODO what is dis?
101
+ break;
85
102
 
86
103
  case 'ChangeAccountPage':
87
104
  switchContent = true;
88
- pageName = e.data.page.label;
105
+ pageName = e.data.page.path;
89
106
  getUserProfileInfo();
90
107
  break;
91
108
 
92
109
  case 'SetActivePage':
93
110
  switchContent = true;
94
111
  pageName = e.data.pageName;
112
+
95
113
  let aux:any = menuData.filter((item) => {
96
114
  return item.label == pageName;
97
115
  });
98
- selected = aux[0].id;
116
+
117
+ if (aux.length > 0) {
118
+ selected = aux[0].id;
119
+ }
99
120
  getUserProfileInfo();
100
121
  break;
101
122
 
@@ -107,20 +128,23 @@
107
128
  case 'UpdatePlayerInfo':
108
129
  let profileData = e.data.provisionalArray;
109
130
  let sentData = {
110
- mobile: {
111
- prefix: profileData.mobilePrefix,
112
- number: profileData.mobileNumber
113
- },
114
- address1: profileData.address,
115
- city: profileData.city,
116
- postalCode: profileData.postalCode,
117
- securityQuestion: profileData.securityQuestion,
118
- securityAnswer: profileData.securityAnswer,
119
- consents: {
120
- acceptNewsEmail: profileData.acceptNewsEmail,
121
- acceptSMSOffers: profileData.acceptSMSOffers
122
- }
123
- }
131
+ mobile: {
132
+ prefix: profileData.mobilePrefix,
133
+ number: profileData.mobileNumber
134
+ },
135
+ address1: profileData.address,
136
+ city: profileData.city,
137
+ postalCode: profileData.postalCode,
138
+ securityQuestion: profileData.securityQuestion,
139
+ securityAnswer: profileData.securityAnswer,
140
+ consents: {
141
+ acceptNewsEmail: profileData.acceptNewsEmail,
142
+ acceptSMSOffers: profileData.acceptSMSOffers
143
+ }
144
+ };
145
+
146
+ url = new URL(`${endpoint}/player/${userId}/profile`);
147
+
124
148
  let options = {
125
149
  method: "POST",
126
150
  headers: {
@@ -131,7 +155,7 @@
131
155
  body: JSON.stringify(sentData)
132
156
  };
133
157
 
134
- fetch(`${endpoint}/player/${userId}/profile`, options)
158
+ fetch(url.href, options)
135
159
  .then((res:any) => {
136
160
  if (res.status == 200) {
137
161
  window.postMessage({ type: 'WidgetNotification', data: {
@@ -148,6 +172,7 @@
148
172
  break;
149
173
 
150
174
  case 'SetPlayerAccountTimeout':
175
+ url = new URL(`${endpoint}/player/${userId}/limits`);
151
176
  let timeoutValue = e.data.timeoutSelected;
152
177
 
153
178
  let dataTimeout = {
@@ -166,7 +191,7 @@
166
191
  body: JSON.stringify(dataTimeout)
167
192
  };
168
193
 
169
- fetch(`${endpoint}/player/${userId}/limits`, setTimeout)
194
+ fetch(url.href, setTimeout)
170
195
  .then((res:any) => {
171
196
  if (res.status == 200) {
172
197
  window.postMessage({ type: 'WidgetNotification', data: {
@@ -181,6 +206,8 @@
181
206
  break;
182
207
 
183
208
  case 'SetSelfExclusion':
209
+ url = new URL(`${endpoint}/player/${userId}/limits`);
210
+
184
211
  let selfExclusionPeriod = e.data.selfExclusionPeriod;
185
212
  let selfExclusionExpiryDate = e.data.selfExclusionExpiryDate;
186
213
 
@@ -202,21 +229,23 @@
202
229
  body: JSON.stringify(dataSelfExclusion)
203
230
  };
204
231
 
205
- fetch(`${endpoint}/player/${userId}/limits`, setSelfExclusion)
206
- .then((res:any) => {
207
- if (res.status == 200) {
208
- window.postMessage({ type: 'WidgetNotification', data: {
209
- type: 'success',
210
- message: 'Self exclusion active'
211
- }}, window.location.href);
212
- window.postMessage({ type: 'LogoutSuccessfull'}, window.location.href);
213
- } else {
214
- // ERROR
215
- }
216
- });
232
+ fetch(url.href, setSelfExclusion)
233
+ .then((res:any):void => {
234
+ if (res.status == 200) {
235
+ window.postMessage({ type: 'WidgetNotification', data: {
236
+ type: 'success',
237
+ message: 'Self exclusion active'
238
+ }}, window.location.href);
239
+ window.postMessage({ type: 'LogoutSuccessfull'}, window.location.href);
240
+ } else {
241
+ // ERROR
242
+ }
243
+ });
217
244
  break;
218
245
 
219
246
  case 'AccountClosure':
247
+ url = new URL(`${endpoint}/player/${userId}/limits`);
248
+
220
249
  let accountClosureData = 'UserRequest';
221
250
  let accountClosureSelection = {
222
251
  selfExclusion: {
@@ -237,8 +266,8 @@
237
266
  body: JSON.stringify(accountClosureSelection)
238
267
  };
239
268
 
240
- fetch(`${endpoint}/player/${userId}/limits`, optionsAccountClosure)
241
- .then((res:any) => {
269
+ fetch(url.href, optionsAccountClosure)
270
+ .then((res:any):void => {
242
271
  if (res.status == 200) {
243
272
  window.postMessage({ type: 'WidgetNotification', data: {
244
273
  type: 'success',
@@ -259,6 +288,8 @@
259
288
  break;
260
289
 
261
290
  case 'PlayerAccountGamingLimitsUpdate':
291
+ url = new URL(`${endpoint}/player/${userId}/limits`);
292
+
262
293
  let limitsObject = e.data.payload;
263
294
  let limitsSectionTitle = e.data.limitsCategory;
264
295
  let limitsData = (limitsSectionTitle === 'cumulativeSessionLimits' || limitsSectionTitle === 'depositLimits') ? limitsObject : {[limitsSectionTitle]: limitsObject}
@@ -273,8 +304,8 @@
273
304
  body: JSON.stringify(limitsData)
274
305
  };
275
306
 
276
- fetch(`${endpoint}/player/${userId}/limits`, optionsEditLimits)
277
- .then((res:any) => {
307
+ fetch(url.href, optionsEditLimits)
308
+ .then((res:any):void => {
278
309
  if (res.status == 200) {
279
310
  showsuccessnotification = true;
280
311
 
@@ -283,7 +314,7 @@
283
314
  message: 'Limits updated'
284
315
  }}, window.location.href);
285
316
 
286
- getGamingLimits(`${endpoint}/player/${playerid}/limits`);
317
+ getGamingLimits(new URL(`${endpoint}/player/${playerid}/limits`));
287
318
  } else {
288
319
  // ERROR
289
320
  }
@@ -330,7 +361,7 @@
330
361
  body: JSON.stringify(limitsDeleteData)
331
362
  };
332
363
 
333
- let url:any = new URL(`${endpoint}/player/${userId}/limits/${limitName}`);
364
+ url = new URL(`${endpoint}/player/${userId}/limits/${limitName}`);
334
365
 
335
366
  if (limitName === 'deposit' || limitName === 'cumulativeSession') {
336
367
  if (Array.isArray(deletedPeriodLimit)) {
@@ -342,15 +373,15 @@
342
373
  }
343
374
  }
344
375
 
345
- fetch(url, deleteOptions)
346
- .then((res:any) => {
376
+ fetch(url.href, deleteOptions)
377
+ .then((res:any):void => {
347
378
  if (res.status == 200) {
348
379
  showdeletenotification = true;
349
380
  window.postMessage({ type: 'WidgetNotification', data: {
350
381
  type: 'success',
351
382
  message: 'Limits deleted'
352
383
  }}, window.location.href);
353
- getGamingLimits(`${endpoint}/player/${playerid}/limits`);
384
+ getGamingLimits(new URL(`${endpoint}/player/${playerid}/limits`));
354
385
  } else {
355
386
  // ERROR
356
387
  }
@@ -358,26 +389,22 @@
358
389
  break;
359
390
 
360
391
  case 'GamingLimitsConfirmChanges':
361
- getGamingLimits(`${endpoint}/player/${playerid}/limits`);
392
+ getGamingLimits(new URL(`${endpoint}/player/${playerid}/limits`));
362
393
  break;
363
394
 
364
395
  case 'CancelGamingLimitsChanges':
365
- getGamingLimits(`${endpoint}/player/${playerid}/limits`);
396
+ getGamingLimits(new URL(`${endpoint}/player/${playerid}/limits`));
366
397
  break;
367
398
 
368
399
  case 'SubmittedRealityCheck':
369
400
  setRealityCheckValue(e.data.realityCheckUpdatedValue);
370
401
  break;
371
-
372
- default:
373
- // do nothing
374
- break;
375
402
  }
376
403
  }
377
404
  }
378
405
 
379
- const getAccountMenuDetails = (url:string) => {
380
- fetch(url)
406
+ const getAccountMenuDetails = (url:URL):void => {
407
+ fetch(url.href)
381
408
  .then((res:any) => res.json())
382
409
  .then((data:any) => {
383
410
  menuData = data;
@@ -387,20 +414,21 @@
387
414
  });
388
415
  }
389
416
 
390
- const getNotificationsDetails = (url:string) => {
391
- fetch(url)
417
+ const getNotificationsDetails = (url:URL):void => {
418
+ fetch(url.href)
392
419
  .then((res:any) => res.json())
393
- .then((data:any) => {
420
+ .then((data:any):void => {
394
421
  if(data.length) {
395
422
  notificationsData = data[0].children;
396
423
  window.postMessage({ type: 'NotificationsDetails', notificationsInfo: notificationsData }, window.location.href);
397
424
  }
398
- }, (err:any) => {
425
+ }, (err:any):void => {
399
426
  console.error(err);
400
427
  });
401
428
  }
402
429
 
403
- const getUserProfileInfo = () => {
430
+ const getUserProfileInfo = ():void => {
431
+ let url:URL = new URL(`${endpoint}/player/${userId}/profile`);
404
432
  let options = {
405
433
  method: "GET",
406
434
  headers: {
@@ -408,7 +436,7 @@
408
436
  }
409
437
  };
410
438
 
411
- fetch(`${endpoint}/player/${userId}/profile`, options)
439
+ fetch(url.href, options)
412
440
  .then((res:any) => { return res.json(); })
413
441
  .then((data:any) => {
414
442
  countrycode = data.country;
@@ -419,7 +447,8 @@
419
447
  });
420
448
  }
421
449
 
422
- const sendChangePassword = async (playerCurrentPassword:string, playerNewPassword:string) => {
450
+ const sendChangePassword = async (playerCurrentPassword:string, playerNewPassword:string):void => {
451
+ let url:URL = new URL(`${endpoint}/player/${userId}/password`)
423
452
  let data = {
424
453
  currentPassword: playerCurrentPassword,
425
454
  newPassword: playerNewPassword
@@ -434,7 +463,7 @@
434
463
  body: JSON.stringify(data)
435
464
  };
436
465
 
437
- let response:any = await fetch(`${endpoint}/player/${userId}/password`, optionsChangePassword);
466
+ let response:any = await fetch(url.href, optionsChangePassword);
438
467
 
439
468
  if (response.ok) {
440
469
  window.postMessage({ type: 'PasswordChangedSuccessfully' }, window.location.href);
@@ -455,14 +484,14 @@
455
484
  }
456
485
  }
457
486
 
458
- const getRealityCheckData = (url:string) => {
487
+ const getRealityCheckData = (url:URL):void => {
459
488
  let options = {
460
489
  method: 'GET',
461
490
  headers: {
462
491
  'X-SessionID': sessionId,
463
492
  }
464
493
  }
465
- fetch(url, options)
494
+ fetch(url.href, options)
466
495
  .then((res:any) => { return res.json(); })
467
496
  .then((data:any) => {
468
497
  realityCheckData = data.UserRealityCheckValue;
@@ -471,8 +500,10 @@
471
500
  });
472
501
  }
473
502
 
474
- const setRealityCheckValue = (updatedData:string) => {
475
- if(updatedData) {
503
+ const setRealityCheckValue = (updatedData:string):void => {
504
+ let url:URL = new URL(`${endpoint}/player/${userId}/realitycheck`);
505
+
506
+ if (updatedData) {
476
507
  storedRealityCheck = updatedData;
477
508
  }
478
509
 
@@ -486,10 +517,10 @@
486
517
  }
487
518
  };
488
519
 
489
- fetch(`${endpoint}/player/${userId}/realitycheck`, optionsRealityCheck)
520
+ fetch(url.href, optionsRealityCheck)
490
521
  .then((res:any) => {
491
522
  if (res.status == 200) {
492
- getRealityCheckData(`${endpoint}/player/${playerid}/realitycheck`);
523
+ getRealityCheckData(new URL(`${endpoint}/player/${playerid}/realitycheck`));
493
524
  window.postMessage({ type: 'RealityCheckValueUpdated' }, window.location.href);
494
525
  window.postMessage({ type: 'WidgetNotification', data: {
495
526
  type: 'success',
@@ -501,7 +532,7 @@
501
532
  });
502
533
  }
503
534
 
504
- const getGamingLimits = (url:string) => {
535
+ const getGamingLimits = (url:URL):void => {
505
536
  if (showsuccessnotification === true) {
506
537
  setTimeout(() => {showsuccessnotification = false; }, 3000);
507
538
  } else if(showdeletenotification === true) {
@@ -515,9 +546,9 @@
515
546
  }
516
547
  };
517
548
 
518
- fetch(url, options)
549
+ fetch(url.href, options)
519
550
  .then((res:any) => res.json())
520
- .then((data:any) => {
551
+ .then((data:any):void => {
521
552
  playerlimits = data;
522
553
  // add name property for info boxes
523
554
  if (Object.keys(playerlimits).length !== 0) {
@@ -563,19 +594,22 @@
563
594
  });
564
595
  }
565
596
 
566
- const getData = () => {
567
- getAccountMenuDetails(`${cmsendpoint}/${lang}/profile-menu?env=${env}`);
568
- getNotificationsDetails(`${cmsendpoint}/${lang}/support-information?env=${env}`);
597
+ const getData = ():void => {
598
+ getAccountMenuDetails(new URL(`${cmsendpoint}/${lang}/profile-menu?env=${env}`));
599
+ getNotificationsDetails(new URL(`${cmsendpoint}/${lang}/support-information?env=${env}`));
569
600
  getUserProfileInfo();
570
- getGamingLimits(`${endpoint}/player/${playerid}/limits`);
571
- getRealityCheckData(`${endpoint}/player/${playerid}/realitycheck`);
601
+ getGamingLimits(new URL(`${endpoint}/player/${playerid}/limits`));
602
+ getRealityCheckData(new URL(`${endpoint}/player/${playerid}/realitycheck`));
572
603
  }
573
604
 
574
- const initialLoad = () => {
605
+ const setActiveLanguage = ():void => {
575
606
  setLocale(lang);
607
+ }
608
+
609
+ const initialLoad = ():void => {
576
610
  userId = playerid;
577
611
  sessionId = session;
578
- pageName = widgetTitle[0];
612
+ pageName = widgetPath[0];
579
613
 
580
614
  if (!isMobile) {
581
615
  switchContent = true;
@@ -592,6 +626,7 @@
592
626
  }
593
627
  });
594
628
 
629
+ $: lang && setActiveLanguage();
595
630
  $: cmsendpoint && endpoint && customnotifications && playerid && session && lang && env && initialLoad();
596
631
  </script>
597
632
 
@@ -606,33 +641,33 @@
606
641
  <player-account-notifications customnotif={customnotifications}></player-account-notifications>
607
642
  </nav>
608
643
  {:else}
609
- {#if switchContent && pageName === widgetTitle[0]}
644
+ {#if switchContent && pageName === widgetPath[0]}
610
645
  <player-profile-info {endpoint} {lang} {countrycode}></player-profile-info>
611
- {:else if switchContent && pageName === widgetTitle[1]}
646
+ {:else if switchContent && pageName === widgetPath[1]}
612
647
  <player-change-password {lang}></player-change-password>
613
- {:else if switchContent && pageName === widgetTitle[2]}
648
+ {:else if switchContent && pageName === widgetPath[2]}
614
649
  <player-reality-check realitycheck={realityCheckData} {endpoint} {playerid} {session} {lang}></player-reality-check>
615
- {:else if switchContent && pageName === widgetTitle[3]}
650
+ {:else if switchContent && pageName === widgetPath[3]}
616
651
  <player-account-timeout {lang} {operator}></player-account-timeout>
617
- {:else if switchContent && pageName === widgetTitle[4]}
652
+ {:else if switchContent && pageName === widgetPath[4]}
618
653
  <player-account-closure {lang}></player-account-closure>
619
- {:else if switchContent && pageName === widgetTitle[5]}
654
+ {:else if switchContent && pageName === widgetPath[5]}
620
655
  <player-account-gaming-limits {depositlimit} {wageringlimit} {losslimit} {timelimit} {showsuccessnotification} {showdeletenotification} {lang}></player-account-gaming-limits>
621
- {:else if switchContent && pageName === widgetTitle[6]}
656
+ {:else if switchContent && pageName === widgetPath[6]}
622
657
  <player-account-self-exclusion {lang} {operator}></player-account-self-exclusion>
623
- {:else if switchContent && pageName === widgetTitle[7]}
658
+ {:else if switchContent && pageName === widgetPath[7]}
624
659
  <player-active-bonuses {endpoint} {session} {playerid} {lang}></player-active-bonuses>
625
- {:else if switchContent && pageName === widgetTitle[8]}
660
+ {:else if switchContent && pageName === widgetPath[8]}
626
661
  <player-bonus-history {endpoint} {session} {playerid} {lang}></player-bonus-history>
627
- {:else if switchContent && pageName === widgetTitle[9]}
662
+ {:else if switchContent && pageName === widgetPath[9]}
628
663
  <player-gaming-history {endpoint} {session} {playerid} {lang}></player-gaming-history>
629
- {:else if switchContent && pageName === widgetTitle[10]}
664
+ {:else if switchContent && pageName === widgetPath[10]}
630
665
  <player-deposit {endpoint} {session} {playerid} {lang}></player-deposit>
631
- {:else if switchContent && pageName === widgetTitle[11]}
666
+ {:else if switchContent && pageName === widgetPath[11]}
632
667
  <player-withdrawal {endpoint} {session} {playerid} {lang}></player-withdrawal>
633
- {:else if switchContent && pageName === widgetTitle[12]}
668
+ {:else if switchContent && pageName === widgetPath[12]}
634
669
  <player-pending-withdrawals {endpoint} {session} {playerid} {lang}></player-pending-withdrawals>
635
- {:else if switchContent && pageName === widgetTitle[13]}
670
+ {:else if switchContent && pageName === widgetPath[13]}
636
671
  <player-transaction-history {endpoint} {session} {playerid} {lang}></player-transaction-history>
637
672
  {/if}
638
673
  {/if}
@@ -641,33 +676,33 @@
641
676
  <player-account-menu {endpoint} {session} {playerid} {lang} selecteditem={selected}></player-account-menu>
642
677
  </nav>
643
678
  <main>
644
- {#if switchContent && pageName === widgetTitle[0]}
679
+ {#if switchContent && pageName === widgetPath[0]}
645
680
  <player-profile-info {endpoint} {lang} {countrycode}></player-profile-info>
646
- {:else if switchContent && pageName === widgetTitle[1]}
681
+ {:else if switchContent && pageName === widgetPath[1]}
647
682
  <player-change-password {lang}></player-change-password>
648
- {:else if switchContent && pageName === widgetTitle[2]}
683
+ {:else if switchContent && pageName === widgetPath[2]}
649
684
  <player-reality-check realitycheck={realityCheckData} {endpoint} {playerid} {session} {lang}></player-reality-check>
650
- {:else if switchContent && pageName === widgetTitle[3]}
685
+ {:else if switchContent && pageName === widgetPath[3]}
651
686
  <player-account-timeout {lang} {operator}></player-account-timeout>
652
- {:else if switchContent && pageName === widgetTitle[4]}
687
+ {:else if switchContent && pageName === widgetPath[4]}
653
688
  <player-account-closure {lang}></player-account-closure>
654
- {:else if switchContent && pageName === widgetTitle[5]}
689
+ {:else if switchContent && pageName === widgetPath[5]}
655
690
  <player-account-gaming-limits {depositlimit} {wageringlimit} {losslimit} {timelimit} {showsuccessnotification} {showdeletenotification} {lang}></player-account-gaming-limits>
656
- {:else if switchContent && pageName === widgetTitle[6]}
691
+ {:else if switchContent && pageName === widgetPath[6]}
657
692
  <player-account-self-exclusion {lang} {operator}></player-account-self-exclusion>
658
- {:else if switchContent && pageName === widgetTitle[7]}
693
+ {:else if switchContent && pageName === widgetPath[7]}
659
694
  <player-active-bonuses {endpoint} {session} {playerid} {lang}></player-active-bonuses>
660
- {:else if switchContent && pageName === widgetTitle[8]}
695
+ {:else if switchContent && pageName === widgetPath[8]}
661
696
  <player-bonus-history {endpoint} {session} {playerid} {lang}></player-bonus-history>
662
- {:else if switchContent && pageName === widgetTitle[9]}
697
+ {:else if switchContent && pageName === widgetPath[9]}
663
698
  <player-gaming-history {endpoint} {session} {playerid} {lang}></player-gaming-history>
664
- {:else if switchContent && pageName === widgetTitle[10]}
699
+ {:else if switchContent && pageName === widgetPath[10]}
665
700
  <player-deposit {endpoint} {session} {playerid} {lang}></player-deposit>
666
- {:else if switchContent && pageName === widgetTitle[11]}
701
+ {:else if switchContent && pageName === widgetPath[11]}
667
702
  <player-withdrawal {endpoint} {session} {playerid} {lang}></player-withdrawal>
668
- {:else if switchContent && pageName === widgetTitle[12]}
703
+ {:else if switchContent && pageName === widgetPath[12]}
669
704
  <player-pending-withdrawals {endpoint} {session} {playerid} {lang}></player-pending-withdrawals>
670
- {:else if switchContent && pageName === widgetTitle[13]}
705
+ {:else if switchContent && pageName === widgetPath[13]}
671
706
  <player-transaction-history {endpoint} {session} {playerid} {lang}></player-transaction-history>
672
707
  {/if}
673
708
  </main>