@everymatrix/player-bonus-card 0.0.160 → 0.0.164
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-bonus-card.js +9115 -9130
- package/dist/player-bonus-card.js.map +1 -1
- package/package.json +2 -2
- package/src/PlayerBonusCard.svelte +15 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-bonus-card",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.164",
|
|
4
4
|
"main": "dist/player-bonus-card",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "053f10812b3f48847439d3d1880f0f11da983ab1"
|
|
40
40
|
}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
<svelte:options tag={null} />
|
|
2
2
|
<script lang="typescript">
|
|
3
|
-
import moment from 'moment';
|
|
4
3
|
import { getDevice } from 'rvhelper';
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export let
|
|
9
|
-
export let
|
|
10
|
-
export let
|
|
11
|
-
export let
|
|
12
|
-
export let
|
|
13
|
-
export let
|
|
14
|
-
export let
|
|
5
|
+
import moment from 'moment';
|
|
6
|
+
|
|
7
|
+
export let bonuswalletid:string = '';
|
|
8
|
+
export let bonusdate:string = '';
|
|
9
|
+
export let bonusstatus:string = '';
|
|
10
|
+
export let bonusname:string = '';
|
|
11
|
+
export let bonustype:string = '';
|
|
12
|
+
export let bonusamount:string = '';
|
|
13
|
+
export let bonuswageringamount:string = '';
|
|
14
|
+
export let bonusremainingamount:string = '';
|
|
15
|
+
export let bonuscurrency:string = '';
|
|
15
16
|
|
|
16
|
-
let userAgent:
|
|
17
|
-
let isMobile = (getDevice(userAgent) === 'PC') ? false : true;
|
|
17
|
+
let userAgent:string = window.navigator.userAgent;
|
|
18
|
+
let isMobile:boolean = (getDevice(userAgent) === 'PC') ? false : true;
|
|
18
19
|
|
|
19
|
-
let bonusTypeText:
|
|
20
|
+
let bonusTypeText:string = '';
|
|
20
21
|
|
|
21
22
|
const bonusTypeRewrite = () => {
|
|
22
23
|
bonusTypeText = bonustype;
|
|
24
|
+
|
|
23
25
|
if (bonusTypeText === 'freeRound') {
|
|
24
26
|
bonusTypeText = 'Free Spins';
|
|
25
27
|
} else if (bonusTypeText === 'freeBet') {
|