@everymatrix/player-account-gaming-limits-wrapper-2 0.0.416 → 0.0.418
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-account-gaming-limits-wrapper-2.cjs.js +1 -0
- package/dist/player-account-gaming-limits-wrapper-2.js +1 -1
- package/dist/player-account-gaming-limits-wrapper-2.js.map +1 -1
- package/index.html +11 -3
- package/package.json +5 -5
- package/src/PlayerAccountGamingLimitsWrapper_2.svelte +23 -0
package/index.html
CHANGED
|
@@ -27,10 +27,18 @@
|
|
|
27
27
|
</style>
|
|
28
28
|
|
|
29
29
|
<div class="webcomponent">
|
|
30
|
-
<player-account-gaming-limits-wrapper-2
|
|
31
|
-
|
|
30
|
+
<player-account-gaming-limits-wrapper-2
|
|
31
|
+
endpoint="https://betathome-de-stage-api.stage.norway.everymatrix.com/"
|
|
32
|
+
session="6e810eb4-8538-4573-8b7d-3748beb7a590"
|
|
33
|
+
userid="4516479"
|
|
34
|
+
currency="EUR"
|
|
35
|
+
lang="en"
|
|
32
36
|
includedlimits="lugas:10-99999999 | wager:10-99999999 | deposit:10-99999999, stake:10-99999999, loss:10-99999999"
|
|
33
|
-
|
|
37
|
+
products="wager:Casino, deposit:Casino, stake:Sports, loss:All"
|
|
38
|
+
periods="lugas: M, deposit: D-W-M, loss: D-W-M, wager: M, stake: N"
|
|
39
|
+
tablabels="Deposit limit, Slots limit, Other limits"
|
|
40
|
+
historyenabled="true"
|
|
41
|
+
apiversion="gm16"
|
|
34
42
|
clientstylingurl="https://storage.googleapis.com/css-upload/bahLimit-2.css"></player-account-gaming-limits-wrapper-2>
|
|
35
43
|
|
|
36
44
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-account-gaming-limits-wrapper-2",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.418",
|
|
4
4
|
"main": "dist/player-account-gaming-limits-wrapper-2.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"typescript": "^3.9.3"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@everymatrix/player-account-gaming-limits-history-2": "^0.0.
|
|
33
|
-
"@everymatrix/player-account-gaming-limits-page-2-gm16": "^0.0.
|
|
34
|
-
"@everymatrix/player-account-gaming-limits-page-2-gmcore": "^0.0.
|
|
32
|
+
"@everymatrix/player-account-gaming-limits-history-2": "^0.0.418",
|
|
33
|
+
"@everymatrix/player-account-gaming-limits-page-2-gm16": "^0.0.418",
|
|
34
|
+
"@everymatrix/player-account-gaming-limits-page-2-gmcore": "^0.0.418",
|
|
35
35
|
"cross-env": "^7.0.3",
|
|
36
36
|
"sirv-cli": "^1.0.0",
|
|
37
37
|
"svelte": "^3.0.0"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "3fa3d6854e1d7a869fcc98718c0306274dce3f2a"
|
|
43
43
|
}
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
export let apiversion:string = '';
|
|
16
16
|
|
|
17
17
|
export let includedlimits:string = '';
|
|
18
|
+
export let products:string = '';
|
|
19
|
+
export let periods:string = '';
|
|
18
20
|
export let tablabels:string = '';
|
|
19
21
|
export let historyenabled:string = "true";
|
|
20
22
|
|
|
@@ -35,6 +37,21 @@
|
|
|
35
37
|
let eachLimit;
|
|
36
38
|
let limits = includedlimits.split(' | ')
|
|
37
39
|
|
|
40
|
+
let productUnwrap = products.split(',').map(wordPair => wordPair.trim().split(':').map(word => word.trim()));
|
|
41
|
+
const productObject = productUnwrap.reduce((obj, valuePair) => {
|
|
42
|
+
obj[valuePair[0]] = valuePair[1];
|
|
43
|
+
return obj;
|
|
44
|
+
}, {});
|
|
45
|
+
|
|
46
|
+
let periodUnwrap:Array<any> = periods.split(',').map(limitPeriodPair => limitPeriodPair.trim().split(':'));
|
|
47
|
+
for (let limitPeriodPair of periodUnwrap) {
|
|
48
|
+
limitPeriodPair[1] = limitPeriodPair[1].trim().replace('D', 'Daily').replace('W', 'Weekly').replace('M', 'Monthly').replace('N', 'None').split('-');
|
|
49
|
+
}
|
|
50
|
+
const periodObject = periodUnwrap.reduce((obj, valuePair) => {
|
|
51
|
+
obj[valuePair[0]] = valuePair[1];
|
|
52
|
+
return obj;
|
|
53
|
+
}, {});
|
|
54
|
+
|
|
38
55
|
limits.forEach(element => {
|
|
39
56
|
if( element.indexOf(', ') >= 0 ){
|
|
40
57
|
let multiEachLimit = '';
|
|
@@ -64,6 +81,12 @@
|
|
|
64
81
|
if(limitMinMax){
|
|
65
82
|
window.postMessage({ type: 'SetLimitsMinMax', limitMinMax}, window.location.href);
|
|
66
83
|
}
|
|
84
|
+
if(productObject){
|
|
85
|
+
window.postMessage({ type: 'SetLimitsProducts', productObject}, window.location.href);
|
|
86
|
+
}
|
|
87
|
+
if(periodObject){
|
|
88
|
+
window.postMessage({ type: 'SetLimitsPeriods', periodObject}, window.location.href);
|
|
89
|
+
}
|
|
67
90
|
}
|
|
68
91
|
|
|
69
92
|
const selectTab = (index:number):void => {
|