@everymatrix/casino-filter-modal 0.0.287 → 0.0.288
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-filter-modal",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.288",
|
4
4
|
"main": "dist/casino-filter-modal.js",
|
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": "36a2dd0b1b6a58e94d3f0a0ad4731e253ac82154"
|
40
40
|
}
|
@@ -5,22 +5,23 @@
|
|
5
5
|
import { fade } from 'svelte/transition';
|
6
6
|
import { isMobile, checkSession } from 'rvhelper';
|
7
7
|
|
8
|
-
export let show:
|
9
|
-
export let duration:
|
10
|
-
export let session:
|
11
|
-
export let userid:
|
12
|
-
export let clientstyling:
|
13
|
-
export let clientstylingurl:
|
14
|
-
export let endpoint:
|
15
|
-
|
16
|
-
|
17
|
-
let
|
18
|
-
let
|
19
|
-
let
|
20
|
-
let
|
21
|
-
let
|
22
|
-
let
|
23
|
-
let
|
8
|
+
export let show:boolean = false;
|
9
|
+
export let duration:number = 350;
|
10
|
+
export let session:string = '';
|
11
|
+
export let userid:string = '';
|
12
|
+
export let clientstyling:string = '';
|
13
|
+
export let clientstylingurl:string = '';
|
14
|
+
export let endpoint:string = '';
|
15
|
+
export let sessioncheck:string = 'true';
|
16
|
+
|
17
|
+
let hasErrors:boolean = false;
|
18
|
+
let error:string = '';
|
19
|
+
let isLoggedIn:boolean = false;
|
20
|
+
let sessionID:string = '';
|
21
|
+
let playerID:string = '';
|
22
|
+
let userAgent:string = window.navigator.userAgent;
|
23
|
+
let isLoading:boolean = true;
|
24
|
+
let mobileView:boolean = false;
|
24
25
|
let modalElement:HTMLElement;
|
25
26
|
let customStylingContainer:HTMLElement;
|
26
27
|
let width:string;
|
@@ -51,14 +52,19 @@
|
|
51
52
|
}
|
52
53
|
|
53
54
|
const setSession = () => {
|
54
|
-
|
55
|
-
|
56
|
-
|
55
|
+
if (sessioncheck == "true") {
|
56
|
+
checkSession(endpoint, session).then((res:any) => {
|
57
|
+
sessionID = res.Guid;
|
58
|
+
playerID = res.UserID;
|
59
|
+
isLoggedIn = true;
|
60
|
+
}, (err:any) => {
|
61
|
+
isLoggedIn = false;
|
62
|
+
console.error('err on session', err);
|
63
|
+
});
|
64
|
+
} else {
|
65
|
+
sessionID = session;
|
57
66
|
isLoggedIn = true;
|
58
|
-
}
|
59
|
-
isLoggedIn = false;
|
60
|
-
console.error('err on session', err);
|
61
|
-
});
|
67
|
+
}
|
62
68
|
}
|
63
69
|
|
64
70
|
const setClientStyling = () => {
|