@everymatrix/casino-header-controller 1.25.0 → 1.26.0

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/casino-header-controller",
3
- "version": "1.25.0",
3
+ "version": "1.26.0",
4
4
  "main": "dist/casino-header-controller.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "668756b576877a7c33679408591fa2b7f93e0f37"
40
+ "gitHead": "5abe76b491406787c17e946ad3c79676a0554d8b"
41
41
  }
@@ -27,10 +27,21 @@
27
27
  export let countryflagheader:string = 'false';
28
28
  export let displaybalanceoption:string = 'All';
29
29
  export let countryflaghamburger:string = 'false';
30
- export let shortcashierenabled:string = '';
31
30
  export let hasdefaultamount:string = '';
32
31
  export let playercurrency: string ='';
33
32
 
33
+ //short cashier
34
+ export let shortcashierenabled:string = '';
35
+ export let producttype:string = '';
36
+ export let successurl:string = '';
37
+ export let failurl:string = '';
38
+ export let cancelurl:string = '';
39
+ export let sportsurl:string = '';
40
+ export let casinourl:string = '';
41
+ export let contacturl:string = '';
42
+ export let homeurl:string = '';
43
+ export let depositurl:string = '';
44
+
34
45
  export let actionevent:string = '';
35
46
 
36
47
  export let userroles:string = '';
@@ -134,10 +145,10 @@
134
145
  break;
135
146
 
136
147
  case 'deposit':
137
- if (shortcashierenabled) {
148
+ if (shortcashierenabled === 'true') {
138
149
  shortCashierActivated = true;
139
150
  window.postMessage({ type: 'DisableScroll' }, window.location.href);
140
- } else {
151
+ } else if (shortcashierenabled === 'false'){
141
152
  window.postMessage({type: 'GoToDeposit'}, window.location.href);
142
153
  }
143
154
 
@@ -400,6 +411,10 @@
400
411
  $: clientstylingurl && customStylingContainer && setClientStylingURL();
401
412
  </script>
402
413
 
414
+ <svelte:head>
415
+ <script type="module" src="https://unpkg.com/@everymatrix/user-deposit-withdrawal"></script>
416
+ </svelte:head>
417
+
403
418
  {#if isLoggedIn}
404
419
  {#if mobileView}
405
420
  <header class="HeaderWrapper HeaderMobileWrapper" bind:this={customStylingContainer}>
@@ -445,17 +460,38 @@
445
460
  <line x1="18" y1="2" x2="2" y2="18" stroke="black" stroke-width="2"/>
446
461
  </svg>
447
462
  </div>
448
- <player-deposit
449
- {endpoint}
450
- {session}
451
- playerid={userid}
452
- {lang}
453
- {hasdefaultamount}
454
- {playercurrency}
455
- {shortcashierenabled}
456
- {clientstyling}
457
- {clientstylingurl}
458
- ></player-deposit>
463
+ {#if gmversion === 'gmcore'}
464
+ <player-deposit
465
+ {endpoint}
466
+ {session}
467
+ playerid={userid}
468
+ {lang}
469
+ {hasdefaultamount}
470
+ {playercurrency}
471
+ {shortcashierenabled}
472
+ {clientstyling}
473
+ {clientstylingurl}
474
+ ></player-deposit>
475
+ {:else}
476
+ <user-deposit-withdrawal
477
+ {endpoint}
478
+ type="deposit"
479
+ channel="Mobile"
480
+ language={lang}
481
+ is-short-cashier={shortcashierenabled}
482
+ product-type={producttype}
483
+ user-id={userid}
484
+ {session}
485
+ success-url={'https://' + window.location.hostname + '/' + lang + successurl}
486
+ cancel-url={'https://' + window.location.hostname + '/' + lang + cancelurl}
487
+ fail-url={'https://' + window.location.hostname + '/' + lang + failurl}
488
+ sports-url={'https://' + window.location.hostname + '/' + lang + sportsurl}
489
+ casino-url={'https://' + window.location.hostname + '/' + lang + casinourl}
490
+ contact-url={'https://' + window.location.hostname + '/' + lang + contacturl}
491
+ home-url={'https://' + window.location.hostname + '/' + lang + homeurl}
492
+ deposit-url={'https://' + window.location.hostname + '/' + lang + depositurl}
493
+ ></user-deposit-withdrawal>
494
+ {/if}
459
495
  </div>
460
496
  </div>
461
497
  {/if}
@@ -524,17 +560,38 @@
524
560
  <line x1="18" y1="2" x2="2" y2="18" stroke="black" stroke-width="2"/>
525
561
  </svg>
526
562
  </div>
527
- <player-deposit
528
- {endpoint}
529
- {session}
530
- playerid={userid}
531
- {lang}
532
- {hasdefaultamount}
533
- {playercurrency}
534
- {shortcashierenabled}
535
- {clientstyling}
536
- {clientstylingurl}
537
- ></player-deposit>
563
+ {#if gmversion === 'gmcore'}
564
+ <player-deposit
565
+ {endpoint}
566
+ {session}
567
+ playerid={userid}
568
+ {lang}
569
+ {hasdefaultamount}
570
+ {playercurrency}
571
+ {shortcashierenabled}
572
+ {clientstyling}
573
+ {clientstylingurl}
574
+ ></player-deposit>
575
+ {:else}
576
+ <user-deposit-withdrawal
577
+ {endpoint}
578
+ type="deposit"
579
+ channel="Desktop"
580
+ language={lang}
581
+ is-short-cashier={shortcashierenabled}
582
+ product-type={producttype}
583
+ user-id={userid}
584
+ {session}
585
+ success-url={'https://' + window.location.hostname + '/' + lang + successurl}
586
+ cancel-url={'https://' + window.location.hostname + '/' + lang + cancelurl}
587
+ fail-url={'https://' + window.location.hostname + '/' + lang + failurl}
588
+ sports-url={'https://' + window.location.hostname + '/' + lang + sportsurl}
589
+ casino-url={'https://' + window.location.hostname + '/' + lang + casinourl}
590
+ contact-url={'https://' + window.location.hostname + '/' + lang + contacturl}
591
+ home-url={'https://' + window.location.hostname + '/' + lang + homeurl}
592
+ deposit-url={'https://' + window.location.hostname + '/' + lang + depositurl}
593
+ ></user-deposit-withdrawal>
594
+ {/if}
538
595
  </div>
539
596
  </div>
540
597
  {/if}
@@ -44,7 +44,7 @@ export const TRANSLATIONS = {
44
44
  "hr": {
45
45
  "login": "Prijava",
46
46
  "register": "Registracija",
47
- "deposit": "Depozit",
47
+ "deposit": "Uplata",
48
48
  "promotions": "Promocije"
49
49
  }
50
50
  }