@everymatrix/casino-header-controller 1.24.7 → 1.26.0
Sign up to get free protection for your applications and to get access to all the features.
package/index.html
CHANGED
@@ -22,38 +22,25 @@
|
|
22
22
|
</style>
|
23
23
|
|
24
24
|
<div class="webcomponent">
|
25
|
-
<casino-header-controller _ngcontent-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
height: 55px;
|
25
|
+
<casino-header-controller _ngcontent-mup-c29="" session="01347826-ed6c-4305-80c7-1dab6b2fc151" userid="3920216"
|
26
|
+
userroles="everyone,loggedIn,TestDemoCosmin" cmsendpoint="https://wt1-stage.everymatrix.com/apijson" env="stage"
|
27
|
+
lang="en" languageslist="es,en,ro" endpoint="https://demo-api.stage.norway.everymatrix.com/v1"
|
28
|
+
actionevent="HeaderMenuItemClicked" activecategory="/casino/RNG$new-sub-category$new-sub-category-1" clientstyling="
|
29
|
+
.HeaderWrapper{
|
30
|
+
position: fixed;
|
31
|
+
top: 0;
|
32
|
+
left: 0;
|
33
|
+
right: 0;
|
34
|
+
z-index: 99;
|
36
35
|
}
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
padding: 30px 10px 20px 20px;
|
43
|
-
overflow: hidden;
|
44
|
-
.DepositTitle {
|
45
|
-
display: none;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
.DepositWrapper.DepositWrapperMobile {
|
49
|
-
padding: 16px 10px;
|
50
|
-
overflow: hidden;
|
51
|
-
.MenuReturnButton{
|
52
|
-
display: none;
|
36
|
+
|
37
|
+
.HeaderMobileWrapper {
|
38
|
+
.HeaderContainer {
|
39
|
+
height: 55px;
|
40
|
+
}
|
53
41
|
}
|
54
|
-
|
55
|
-
|
56
|
-
" displaybalanceoption="Casino" gmversion="gm16" shortcashierenabled="true" hasdefaultamount="false" playercurrency="EUR"></casino-header-controller>
|
42
|
+
" currencyseparator="." currencydecimal="," currencyprecision="2" gmversion="gmcore"
|
43
|
+
countryflagheader="true" countryflaghamburger='true'customlocaleidentifier=""></casino-header-controller>
|
57
44
|
|
58
45
|
</div>
|
59
46
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@everymatrix/casino-header-controller",
|
3
|
-
"version": "1.
|
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": "
|
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,11 +145,10 @@
|
|
134
145
|
break;
|
135
146
|
|
136
147
|
case 'deposit':
|
137
|
-
|
138
|
-
if (shortcashierenabled) {
|
148
|
+
if (shortcashierenabled === 'true') {
|
139
149
|
shortCashierActivated = true;
|
140
150
|
window.postMessage({ type: 'DisableScroll' }, window.location.href);
|
141
|
-
} else {
|
151
|
+
} else if (shortcashierenabled === 'false'){
|
142
152
|
window.postMessage({type: 'GoToDeposit'}, window.location.href);
|
143
153
|
}
|
144
154
|
|
@@ -401,6 +411,10 @@
|
|
401
411
|
$: clientstylingurl && customStylingContainer && setClientStylingURL();
|
402
412
|
</script>
|
403
413
|
|
414
|
+
<svelte:head>
|
415
|
+
<script type="module" src="https://unpkg.com/@everymatrix/user-deposit-withdrawal"></script>
|
416
|
+
</svelte:head>
|
417
|
+
|
404
418
|
{#if isLoggedIn}
|
405
419
|
{#if mobileView}
|
406
420
|
<header class="HeaderWrapper HeaderMobileWrapper" bind:this={customStylingContainer}>
|
@@ -446,17 +460,38 @@
|
|
446
460
|
<line x1="18" y1="2" x2="2" y2="18" stroke="black" stroke-width="2"/>
|
447
461
|
</svg>
|
448
462
|
</div>
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
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}
|
460
495
|
</div>
|
461
496
|
</div>
|
462
497
|
{/if}
|
@@ -525,17 +560,38 @@
|
|
525
560
|
<line x1="18" y1="2" x2="2" y2="18" stroke="black" stroke-width="2"/>
|
526
561
|
</svg>
|
527
562
|
</div>
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
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}
|
539
595
|
</div>
|
540
596
|
</div>
|
541
597
|
{/if}
|