@everymatrix/casino-game-thumb-view 1.31.1 → 1.32.4
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/LICENSE +21 -0
- package/package.json +3 -2
- package/dist/assets/baccarat.svg +0 -43
- package/dist/assets/fav.svg +0 -9
- package/dist/assets/favorite.svg +0 -12
- package/dist/assets/seat.svg +0 -6
- package/dist/assets/unfav.svg +0 -20
- package/dist/casino-game-thumb-view/casino-game-thumb-view.esm.js +0 -1
- package/dist/casino-game-thumb-view/index.esm.js +0 -0
- package/dist/casino-game-thumb-view/p-1bbf4b70.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-1e63a1ab.js +0 -1
- package/dist/casino-game-thumb-view/p-2d5f59fe.js +0 -1
- package/dist/casino-game-thumb-view/p-42bf2034.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-46dbb1cb.js +0 -1
- package/dist/casino-game-thumb-view/p-6a6b2a78.js +0 -8
- package/dist/casino-game-thumb-view/p-7ae107ed.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-9cbfffbc.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-d961aec4.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-db43bb56.entry.js +0 -7
- package/dist/cjs/casino-extrainfo-baccarat.cjs.entry.js +0 -366
- package/dist/cjs/casino-extrainfo-blackjack.cjs.entry.js +0 -58
- package/dist/cjs/casino-extrainfo-roulette.cjs.entry.js +0 -45
- package/dist/cjs/casino-game-thumb-view.cjs.js +0 -19
- package/dist/cjs/casino-game-thumb-view_2.cjs.entry.js +0 -1612
- package/dist/cjs/casino-game-thumbnail-betlimit_2.cjs.entry.js +0 -278
- package/dist/cjs/casino-normal-game-thumbnail.cjs.entry.js +0 -23
- package/dist/cjs/game-thumbnail-31d518f0.js +0 -78
- package/dist/cjs/index-65a1d768.js +0 -1796
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/locale.utils-aa160787.js +0 -132
- package/dist/cjs/utils-a0afc0a9.js +0 -5745
- package/dist/collection/collection-manifest.json +0 -19
- package/dist/collection/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.css +0 -116
- package/dist/collection/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.js +0 -240
- package/dist/collection/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.css +0 -64
- package/dist/collection/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.js +0 -119
- package/dist/collection/components/casino-extrainfo-roulette/casino-extrainfo-roulette.css +0 -40
- package/dist/collection/components/casino-extrainfo-roulette/casino-extrainfo-roulette.js +0 -123
- package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.css +0 -361
- package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.js +0 -1064
- package/dist/collection/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.css +0 -3
- package/dist/collection/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.js +0 -86
- package/dist/collection/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.css +0 -154
- package/dist/collection/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.js +0 -158
- package/dist/collection/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.css +0 -58
- package/dist/collection/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.js +0 -209
- package/dist/collection/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.css +0 -3
- package/dist/collection/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.js +0 -62
- package/dist/collection/constants/game-thumbnail.js +0 -85
- package/dist/collection/index.js +0 -1
- package/dist/collection/models/casino-game-thumb-view.js +0 -12
- package/dist/collection/models/currency-symbols.js +0 -173
- package/dist/collection/static/baccarat.svg +0 -43
- package/dist/collection/static/fav.svg +0 -9
- package/dist/collection/static/favorite.svg +0 -12
- package/dist/collection/static/seat.svg +0 -6
- package/dist/collection/static/unfav.svg +0 -20
- package/dist/collection/utils/baccarat-board-svg.js +0 -234
- package/dist/collection/utils/locale.utils.js +0 -128
- package/dist/collection/utils/utils.js +0 -65
- package/dist/components/casino-extrainfo-baccarat.d.ts +0 -11
- package/dist/components/casino-extrainfo-baccarat.js +0 -400
- package/dist/components/casino-extrainfo-blackjack.d.ts +0 -11
- package/dist/components/casino-extrainfo-blackjack.js +0 -92
- package/dist/components/casino-extrainfo-roulette.d.ts +0 -11
- package/dist/components/casino-extrainfo-roulette.js +0 -78
- package/dist/components/casino-game-thumb-view.d.ts +0 -11
- package/dist/components/casino-game-thumb-view.js +0 -1625
- package/dist/components/casino-game-thumbnail-betlimit.d.ts +0 -11
- package/dist/components/casino-game-thumbnail-betlimit.js +0 -6
- package/dist/components/casino-game-thumbnail-betlimit2.js +0 -227
- package/dist/components/casino-game-thumbnail-extrainfo.d.ts +0 -11
- package/dist/components/casino-game-thumbnail-extrainfo.js +0 -6
- package/dist/components/casino-game-thumbnail-extrainfo2.js +0 -96
- package/dist/components/casino-game-thumbnail-overlay.d.ts +0 -11
- package/dist/components/casino-game-thumbnail-overlay.js +0 -6
- package/dist/components/casino-game-thumbnail-overlay2.js +0 -69
- package/dist/components/casino-normal-game-thumbnail.d.ts +0 -11
- package/dist/components/casino-normal-game-thumbnail.js +0 -52
- package/dist/components/game-thumbnail.js +0 -72
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/locale.utils.js +0 -130
- package/dist/components/utils.js +0 -5739
- package/dist/esm/casino-extrainfo-baccarat.entry.js +0 -362
- package/dist/esm/casino-extrainfo-blackjack.entry.js +0 -54
- package/dist/esm/casino-extrainfo-roulette.entry.js +0 -41
- package/dist/esm/casino-game-thumb-view.js +0 -17
- package/dist/esm/casino-game-thumb-view_2.entry.js +0 -1607
- package/dist/esm/casino-game-thumbnail-betlimit_2.entry.js +0 -273
- package/dist/esm/casino-normal-game-thumbnail.entry.js +0 -19
- package/dist/esm/game-thumbnail-0a56ee03.js +0 -72
- package/dist/esm/index-1e44dd9f.js +0 -1769
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -17
- package/dist/esm/locale.utils-e0cf897e.js +0 -130
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/utils-e9314132.js +0 -5739
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/stencil.config.js +0 -40
- package/dist/types/Users/sebastian.strulea/Documents/work/widgets-stencil/packages/casino-game-thumb-view/.stencil/packages/casino-game-thumb-view/stencil.config.d.ts +0 -2
- package/dist/types/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.d.ts +0 -40
- package/dist/types/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.d.ts +0 -36
- package/dist/types/components/casino-extrainfo-roulette/casino-extrainfo-roulette.d.ts +0 -21
- package/dist/types/components/casino-game-thumb-view/casino-game-thumb-view.d.ts +0 -221
- package/dist/types/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.d.ts +0 -17
- package/dist/types/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.d.ts +0 -16
- package/dist/types/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.d.ts +0 -31
- package/dist/types/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.d.ts +0 -7
- package/dist/types/components.d.ts +0 -480
- package/dist/types/constants/game-thumbnail.d.ts +0 -83
- package/dist/types/index.d.ts +0 -1
- package/dist/types/models/casino-game-thumb-view.d.ts +0 -132
- package/dist/types/models/currency-symbols.d.ts +0 -172
- package/dist/types/stencil-public-runtime.d.ts +0 -1565
- package/dist/types/utils/baccarat-board-svg.d.ts +0 -31
- package/dist/types/utils/locale.utils.d.ts +0 -1
- package/dist/types/utils/utils.d.ts +0 -19
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -12
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -10
package/dist/collection/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.js
DELETED
@@ -1,86 +0,0 @@
|
|
1
|
-
import { Component, h, Prop } from '@stencil/core';
|
2
|
-
import { numberWithSeparators } from '../../utils/utils';
|
3
|
-
import { currenciesSymbols } from '../../models/currency-symbols';
|
4
|
-
export class CasinoGameThumbnailBetlimit {
|
5
|
-
constructor() {
|
6
|
-
this.defaultCurrency = 'EUR';
|
7
|
-
this.isBetLimitAvailable = false;
|
8
|
-
}
|
9
|
-
getCurrencySymbols(currency) {
|
10
|
-
return currenciesSymbols[currency];
|
11
|
-
}
|
12
|
-
componentWillRender() {
|
13
|
-
if (this.betLimit) {
|
14
|
-
const limit = this.betLimit.max
|
15
|
-
? this.betLimit.max
|
16
|
-
: this.betLimit.min || {};
|
17
|
-
this.isBetLimitAvailable = Object.keys(limit).length === 1;
|
18
|
-
this.currency = this.isBetLimitAvailable
|
19
|
-
? Object.keys(limit)[0]
|
20
|
-
: this.defaultCurrency;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
render() {
|
24
|
-
if (!this.isBetLimitAvailable) {
|
25
|
-
return '';
|
26
|
-
}
|
27
|
-
return (h("p", { class: "LiveLimits" },
|
28
|
-
h("span", { class: "BetLimitLeft" },
|
29
|
-
this.getCurrencySymbols(this.currency),
|
30
|
-
' ',
|
31
|
-
numberWithSeparators(this.betLimit.min[this.currency]),
|
32
|
-
" -",
|
33
|
-
' ',
|
34
|
-
numberWithSeparators(this.betLimit.max[this.currency])),
|
35
|
-
(this.numberOfPlayers || this.numberOfPlayers == 0) && (h("span", { class: "BetLimitRight" },
|
36
|
-
h("svg", { fill: "white", width: "13", height: "13", viewBox: "0 0 13 14", xmlns: "http://www.w3.org/2000/svg" },
|
37
|
-
h("path", { d: "M4 8.2a4.6 4.6 0 0 0 5 0c2.7.8 4 2.6 4 4.8H0c0-2.2 1.3-4 4-4.8zM6.6 8c2 0 3.8-1.7 3.8-4 0-2.1-1.7-4-3.8-4a3.9 3.9 0 0 0-3.8 4c0 2.2 1.7 4 3.8 4z" })),
|
38
|
-
h("span", { class: "NrOfPlayers" }, this.numberOfPlayers)))));
|
39
|
-
}
|
40
|
-
static get is() { return "casino-game-thumbnail-betlimit"; }
|
41
|
-
static get originalStyleUrls() { return {
|
42
|
-
"$": ["casino-game-thumbnail-betlimit.scss"]
|
43
|
-
}; }
|
44
|
-
static get styleUrls() { return {
|
45
|
-
"$": ["casino-game-thumbnail-betlimit.css"]
|
46
|
-
}; }
|
47
|
-
static get properties() { return {
|
48
|
-
"betLimit": {
|
49
|
-
"type": "unknown",
|
50
|
-
"mutable": false,
|
51
|
-
"complexType": {
|
52
|
-
"original": "BetLimit",
|
53
|
-
"resolved": "BetLimit",
|
54
|
-
"references": {
|
55
|
-
"BetLimit": {
|
56
|
-
"location": "import",
|
57
|
-
"path": "../../models/casino-game-thumb-view"
|
58
|
-
}
|
59
|
-
}
|
60
|
-
},
|
61
|
-
"required": false,
|
62
|
-
"optional": false,
|
63
|
-
"docs": {
|
64
|
-
"tags": [],
|
65
|
-
"text": "The betlimit of live game"
|
66
|
-
}
|
67
|
-
},
|
68
|
-
"numberOfPlayers": {
|
69
|
-
"type": "number",
|
70
|
-
"mutable": false,
|
71
|
-
"complexType": {
|
72
|
-
"original": "number",
|
73
|
-
"resolved": "number",
|
74
|
-
"references": {}
|
75
|
-
},
|
76
|
-
"required": false,
|
77
|
-
"optional": false,
|
78
|
-
"docs": {
|
79
|
-
"tags": [],
|
80
|
-
"text": "Number of players"
|
81
|
-
},
|
82
|
-
"attribute": "number-of-players",
|
83
|
-
"reflect": false
|
84
|
-
}
|
85
|
-
}; }
|
86
|
-
}
|
@@ -1,154 +0,0 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
4
|
-
}
|
5
|
-
|
6
|
-
*,
|
7
|
-
*::before,
|
8
|
-
*::after {
|
9
|
-
margin: 0;
|
10
|
-
padding: 0;
|
11
|
-
box-sizing: border-box;
|
12
|
-
}
|
13
|
-
|
14
|
-
.LiveProps {
|
15
|
-
display: flex;
|
16
|
-
flex-direction: column;
|
17
|
-
position: absolute;
|
18
|
-
bottom: 8px;
|
19
|
-
left: -8px;
|
20
|
-
right: 0;
|
21
|
-
width: 100%;
|
22
|
-
padding: 0;
|
23
|
-
background: linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.99) 100%);
|
24
|
-
color: var(--emfe-w-color-white, #FFFFFF);
|
25
|
-
opacity: 1;
|
26
|
-
font-size: 14px;
|
27
|
-
}
|
28
|
-
|
29
|
-
.GameExtraInfo {
|
30
|
-
display: block;
|
31
|
-
position: absolute;
|
32
|
-
width: 100%;
|
33
|
-
height: 100%;
|
34
|
-
top: 8px;
|
35
|
-
left: 8px;
|
36
|
-
z-index: 0;
|
37
|
-
}
|
38
|
-
.GameExtraInfoLabel {
|
39
|
-
font-size: 11px;
|
40
|
-
padding: 3px;
|
41
|
-
background-color: var(--emfe-w-color-primary, #D0046C);
|
42
|
-
color: var(--emfe-w-color-primary-50, #FBECF4);
|
43
|
-
font-weight: bold;
|
44
|
-
text-transform: uppercase;
|
45
|
-
border-radius: 5px;
|
46
|
-
}
|
47
|
-
|
48
|
-
.ListGame .GameInnerContainer .GameExtraInfo {
|
49
|
-
z-index: 10;
|
50
|
-
}
|
51
|
-
.ListGame .GameInnerContainer .ClosedGame {
|
52
|
-
opacity: 1;
|
53
|
-
z-index: 10;
|
54
|
-
padding: 8px 10px;
|
55
|
-
color: var(--emfe-w-color-white, #FFFFFF);
|
56
|
-
font-size: 18px;
|
57
|
-
}
|
58
|
-
.ListGame .GameInnerContainer .ClosedGame span {
|
59
|
-
font-size: 18px;
|
60
|
-
}
|
61
|
-
.ListGame .GameInnerContainer .LiveIcons {
|
62
|
-
position: relative;
|
63
|
-
display: flex;
|
64
|
-
padding: 0 10px;
|
65
|
-
box-sizing: border-box;
|
66
|
-
flex-direction: row;
|
67
|
-
align-items: center;
|
68
|
-
justify-content: flex-start;
|
69
|
-
min-height: auto;
|
70
|
-
margin-bottom: 5px;
|
71
|
-
}
|
72
|
-
.ListGame .GameInnerContainer .LiveIcons:first-child {
|
73
|
-
margin-left: 0;
|
74
|
-
}
|
75
|
-
.ListGame .GameInnerContainer .LiveIcons:last-child {
|
76
|
-
margin-right: 0;
|
77
|
-
}
|
78
|
-
.ListGame .GameInnerContainer .LiveIcons.Black, .ListGame .GameInnerContainer .LiveIcons.Red, .ListGame .GameInnerContainer .LiveIcons.Green {
|
79
|
-
color: var(--emfe-w-color-white, #FFFFFF);
|
80
|
-
border: 1px solid var(--emfe-w-color-white, #FFFFFF);
|
81
|
-
}
|
82
|
-
.ListGame .GameInnerContainer .LiveIcons .LatestResult {
|
83
|
-
min-width: 12px;
|
84
|
-
padding: 2px;
|
85
|
-
margin: 0 6px 0 1px;
|
86
|
-
font-size: 14px;
|
87
|
-
text-align: center;
|
88
|
-
}
|
89
|
-
.ListGame .GameInnerContainer .LiveIcons .LatestResult.FirstElementAnimated {
|
90
|
-
animation: flip-open 2s both;
|
91
|
-
-webkit-animation: flip-open 2s both;
|
92
|
-
-webkit-backface-visibility: visible;
|
93
|
-
backface-visibility: visible;
|
94
|
-
}
|
95
|
-
.ListGame .GameInnerContainer .LiveIcons .LatestResult.First {
|
96
|
-
min-width: 24px;
|
97
|
-
padding: 4px;
|
98
|
-
}
|
99
|
-
.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black, .ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red, .ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green {
|
100
|
-
color: var(--emfe-w-color-white, #FFFFFF);
|
101
|
-
border: 1px solid var(--emfe-w-color-white, #FFFFFF);
|
102
|
-
}
|
103
|
-
.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black {
|
104
|
-
background: var(--emfe-w-color-black, #000000);
|
105
|
-
}
|
106
|
-
.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red {
|
107
|
-
background: red;
|
108
|
-
}
|
109
|
-
.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green {
|
110
|
-
background: #56A80A;
|
111
|
-
}
|
112
|
-
.ListGame .GameInnerContainer .LiveIcons .Double {
|
113
|
-
display: flex;
|
114
|
-
flex-direction: column;
|
115
|
-
}
|
116
|
-
.ListGame .GameInnerContainer .LiveIcons .Double .LatestResult:first-child {
|
117
|
-
margin-bottom: 10px;
|
118
|
-
}
|
119
|
-
.ListGame .GameInnerContainer .LiveIcons .Double:first-child .LatestResult {
|
120
|
-
margin-left: 0;
|
121
|
-
margin-bottom: 0;
|
122
|
-
}
|
123
|
-
.ListGame .GameInnerContainer .LiveIcons .Double:last-child .LatestResult {
|
124
|
-
margin-right: 0;
|
125
|
-
}
|
126
|
-
.ListGame .GameInnerContainer .LiveIcons .Black,
|
127
|
-
.ListGame .GameInnerContainer .LiveIcons .Red,
|
128
|
-
.ListGame .GameInnerContainer .LiveIcons .Green {
|
129
|
-
background-color: transparent;
|
130
|
-
}
|
131
|
-
.ListGame .GameInnerContainer .LiveIcons .Black {
|
132
|
-
color: var(--emfe-w-color-white, #FFFFFF);
|
133
|
-
}
|
134
|
-
.ListGame .GameInnerContainer .LiveIcons .Red {
|
135
|
-
color: red;
|
136
|
-
}
|
137
|
-
.ListGame .GameInnerContainer .LiveIcons .Green {
|
138
|
-
color: #56A80A;
|
139
|
-
}
|
140
|
-
.ListGame .GameInnerContainer .LiveLimits {
|
141
|
-
opacity: 1;
|
142
|
-
display: flex;
|
143
|
-
flex-direction: row;
|
144
|
-
justify-content: space-between;
|
145
|
-
padding: 2px 10px 5px;
|
146
|
-
background: var(--emfe-w-color-black, #000000);
|
147
|
-
color: var(--emfe-w-color-white, #FFFFFF);
|
148
|
-
font-weight: normal;
|
149
|
-
font-size: 12px;
|
150
|
-
}
|
151
|
-
.ListGame .GameInnerContainer .LiveLimits span {
|
152
|
-
font-size: 12px;
|
153
|
-
vertical-align: top;
|
154
|
-
}
|
@@ -1,158 +0,0 @@
|
|
1
|
-
import { Component, h, State, Prop, Method } from '@stencil/core';
|
2
|
-
import moment from 'moment';
|
3
|
-
import { translate } from '../../utils/locale.utils';
|
4
|
-
import { addGameTag } from '../../utils/utils';
|
5
|
-
import { WIDGETTYPE_GAMECATEGORY, WIDGETTYPE_CLASS, } from '../../constants/game-thumbnail';
|
6
|
-
export class CasinoGameThumbnailExtrainfo {
|
7
|
-
constructor() {
|
8
|
-
this.language = 'en';
|
9
|
-
this.isNewGame = false;
|
10
|
-
}
|
11
|
-
async onGameLoaded(gameInfo) {
|
12
|
-
var _a;
|
13
|
-
this.gameInfo = gameInfo;
|
14
|
-
this.isNewGame = this.gameInfo.isNew;
|
15
|
-
if (this.gameInfo.gameTag === 'false') {
|
16
|
-
this.gameInfo.gameTag = null;
|
17
|
-
}
|
18
|
-
this.gameTag = this.gameInfo.gameTag;
|
19
|
-
if (!this.gameInfo.details) {
|
20
|
-
return;
|
21
|
-
}
|
22
|
-
this.gameDetails = this.gameInfo.details;
|
23
|
-
this.isDouble = !this.gameDetails
|
24
|
-
? false
|
25
|
-
: this.gameInfo.details.category.toLowerCase() ===
|
26
|
-
WIDGETTYPE_GAMECATEGORY.doubleballroulette;
|
27
|
-
this.gameTag = !this.gameDetails
|
28
|
-
? this.gameInfo.gameTag
|
29
|
-
: ((_a = this.gameInfo.advancedTags) === null || _a === void 0 ? void 0 : _a.length) > 0
|
30
|
-
? addGameTag(this.gameInfo.advancedTags)
|
31
|
-
: this.gameInfo.gameTag;
|
32
|
-
this.betLimit = !this.gameDetails ? null : this.gameDetails.betLimit;
|
33
|
-
this.initTimeProperties();
|
34
|
-
}
|
35
|
-
initTimeProperties() {
|
36
|
-
var _a, _b, _c, _d, _e;
|
37
|
-
//openHours.type: valid data: Bounded, FullTime
|
38
|
-
if (((_b = (_a = this.gameDetails) === null || _a === void 0 ? void 0 : _a.openHours) === null || _b === void 0 ? void 0 : _b.type) === 'Bounded') {
|
39
|
-
this.gameStartTime = (_d = (_c = this.gameDetails) === null || _c === void 0 ? void 0 : _c.openHours) === null || _d === void 0 ? void 0 : _d.value.startTime;
|
40
|
-
this.gameTimeFormat =
|
41
|
-
(_e = this.gameDetails) === null || _e === void 0 ? void 0 : _e.openHours.value.originalTimeFormat;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
async onGameDetailUpdated(details) {
|
45
|
-
this.gameInfo.details = this.gameDetails = details;
|
46
|
-
this.gameDetails = Object.assign({}, this.gameDetails);
|
47
|
-
//openHours.type: valid data: Bouned, FullTime
|
48
|
-
this.initTimeProperties();
|
49
|
-
}
|
50
|
-
render() {
|
51
|
-
var _a, _b, _c;
|
52
|
-
if (!this.gameInfo) {
|
53
|
-
return '';
|
54
|
-
}
|
55
|
-
return (h("div", { class: "GameExtraInfo", part: "GameExtraInfo" },
|
56
|
-
this.isNewGame && (h("span", { class: "GameExtraInfoLabel NewGameTag", part: "GameExtraInfoLabel NewGameTag" }, translate('new', this.language))),
|
57
|
-
this.gameTag && (h("span", { class: "GameExtraInfoLabel PopularGameTag", part: "GameExtraInfoLabel PopularGameTag" }, this.gameTag)),
|
58
|
-
this.gameDetails && (h("div", { class: `GameProp LiveProps ${WIDGETTYPE_CLASS[this.gameDetails.category.toLowerCase()]} ${this.isDouble ? ' Double' : ''}`, part: `GameProp LiveProps ${WIDGETTYPE_CLASS[this.gameDetails.category.toLowerCase()]} ${this.isDouble ? ' Double' : ''}` },
|
59
|
-
this.gameDetails.isOpen ? (h("slot", { name: "category-details" })) : (this.gameStartTime &&
|
60
|
-
this.gameTimeFormat && (h("div", { class: "ClosedGame", part: "ClosedGame" },
|
61
|
-
translate('opens', this.language),
|
62
|
-
h("span", null,
|
63
|
-
' ',
|
64
|
-
moment
|
65
|
-
.utc(this.gameStartTime)
|
66
|
-
.local()
|
67
|
-
.format(this.gameTimeFormat),
|
68
|
-
' ')))),
|
69
|
-
((_a = this.gameDetails.dealer) === null || _a === void 0 ? void 0 : _a.DealerName) && (h("p", { class: "LiveLimits" },
|
70
|
-
h("span", { class: "DealerName" },
|
71
|
-
translate('dealer', this.language),
|
72
|
-
":",
|
73
|
-
' ', (_b = this.gameDetails) === null || _b === void 0 ? void 0 :
|
74
|
-
_b.dealer.DealerName,
|
75
|
-
' '))),
|
76
|
-
h("casino-game-thumbnail-betlimit", { betLimit: this.betLimit, numberOfPlayers: (_c = this.gameDetails) === null || _c === void 0 ? void 0 : _c.numberOfPlayers })))));
|
77
|
-
}
|
78
|
-
static get is() { return "casino-game-thumbnail-extrainfo"; }
|
79
|
-
static get originalStyleUrls() { return {
|
80
|
-
"$": ["casino-game-thumbnail-extrainfo.scss"]
|
81
|
-
}; }
|
82
|
-
static get styleUrls() { return {
|
83
|
-
"$": ["casino-game-thumbnail-extrainfo.css"]
|
84
|
-
}; }
|
85
|
-
static get properties() { return {
|
86
|
-
"language": {
|
87
|
-
"type": "string",
|
88
|
-
"mutable": false,
|
89
|
-
"complexType": {
|
90
|
-
"original": "string",
|
91
|
-
"resolved": "string",
|
92
|
-
"references": {}
|
93
|
-
},
|
94
|
-
"required": false,
|
95
|
-
"optional": false,
|
96
|
-
"docs": {
|
97
|
-
"tags": [],
|
98
|
-
"text": ""
|
99
|
-
},
|
100
|
-
"attribute": "language",
|
101
|
-
"reflect": false,
|
102
|
-
"defaultValue": "'en'"
|
103
|
-
}
|
104
|
-
}; }
|
105
|
-
static get states() { return {
|
106
|
-
"betLimit": {},
|
107
|
-
"gameInfo": {},
|
108
|
-
"gameDetails": {}
|
109
|
-
}; }
|
110
|
-
static get methods() { return {
|
111
|
-
"onGameLoaded": {
|
112
|
-
"complexType": {
|
113
|
-
"signature": "(gameInfo: CasinoGameThumbnailInfo) => Promise<void>",
|
114
|
-
"parameters": [{
|
115
|
-
"tags": [],
|
116
|
-
"text": ""
|
117
|
-
}],
|
118
|
-
"references": {
|
119
|
-
"Promise": {
|
120
|
-
"location": "global"
|
121
|
-
},
|
122
|
-
"CasinoGameThumbnailInfo": {
|
123
|
-
"location": "import",
|
124
|
-
"path": "../../models/casino-game-thumb-view"
|
125
|
-
}
|
126
|
-
},
|
127
|
-
"return": "Promise<void>"
|
128
|
-
},
|
129
|
-
"docs": {
|
130
|
-
"text": "",
|
131
|
-
"tags": []
|
132
|
-
}
|
133
|
-
},
|
134
|
-
"onGameDetailUpdated": {
|
135
|
-
"complexType": {
|
136
|
-
"signature": "(details: CasinoGameThumbnailDetails) => Promise<void>",
|
137
|
-
"parameters": [{
|
138
|
-
"tags": [],
|
139
|
-
"text": ""
|
140
|
-
}],
|
141
|
-
"references": {
|
142
|
-
"Promise": {
|
143
|
-
"location": "global"
|
144
|
-
},
|
145
|
-
"CasinoGameThumbnailDetails": {
|
146
|
-
"location": "import",
|
147
|
-
"path": "../../models/casino-game-thumb-view"
|
148
|
-
}
|
149
|
-
},
|
150
|
-
"return": "Promise<void>"
|
151
|
-
},
|
152
|
-
"docs": {
|
153
|
-
"text": "",
|
154
|
-
"tags": []
|
155
|
-
}
|
156
|
-
}
|
157
|
-
}; }
|
158
|
-
}
|
package/dist/collection/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.css
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
}
|
4
|
-
|
5
|
-
.GameInfoWrapper {
|
6
|
-
display: none;
|
7
|
-
position: absolute;
|
8
|
-
width: 100%;
|
9
|
-
height: 100%;
|
10
|
-
top: 0;
|
11
|
-
right: 0;
|
12
|
-
bottom: 0;
|
13
|
-
left: 0;
|
14
|
-
background: rgba(0, 0, 0, 0.65);
|
15
|
-
z-index: 15;
|
16
|
-
}
|
17
|
-
.GameInfoWrapper .GameInfo {
|
18
|
-
display: flex;
|
19
|
-
width: 100%;
|
20
|
-
height: 100%;
|
21
|
-
flex-direction: column;
|
22
|
-
align-items: center;
|
23
|
-
justify-content: center;
|
24
|
-
}
|
25
|
-
.GameInfoWrapper .GameInfoName {
|
26
|
-
color: white;
|
27
|
-
margin-bottom: 10px;
|
28
|
-
text-align: center;
|
29
|
-
font-size: 14px;
|
30
|
-
}
|
31
|
-
.GameInfoWrapper .GameInfoBtn {
|
32
|
-
appearance: none;
|
33
|
-
padding: 6px;
|
34
|
-
background: var(--emfe-w-color-primary, #D0046C);
|
35
|
-
color: var(--emfe-w-color-primary-50, #FBECF4);
|
36
|
-
font-size: 16px;
|
37
|
-
border: 2px solid var(--emfe-w-color-primary-600, #99034F);
|
38
|
-
border-radius: 5px;
|
39
|
-
cursor: pointer;
|
40
|
-
transition: border 150ms ease-in-out;
|
41
|
-
}
|
42
|
-
.GameInfoWrapper .GameInfoBtn:hover {
|
43
|
-
border: 2px solid var(--emfe-w-color-primary-100, #F1BED9);
|
44
|
-
}
|
45
|
-
|
46
|
-
.GameInfoVendor {
|
47
|
-
display: block;
|
48
|
-
position: absolute;
|
49
|
-
bottom: 8px;
|
50
|
-
right: 8px;
|
51
|
-
color: white;
|
52
|
-
font-size: 12px;
|
53
|
-
font-weight: normal;
|
54
|
-
}
|
55
|
-
|
56
|
-
.GameInfoWrapper:hover {
|
57
|
-
display: block !important;
|
58
|
-
}
|
package/dist/collection/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.js
DELETED
@@ -1,209 +0,0 @@
|
|
1
|
-
import { Component, h, Prop, Event } from '@stencil/core';
|
2
|
-
import { isMobile } from '../../utils/utils';
|
3
|
-
import { translate } from '../../utils/locale.utils';
|
4
|
-
export class CasinoGameThumbnailOverlay {
|
5
|
-
constructor() {
|
6
|
-
/**
|
7
|
-
* Widget Setting, show game in a frame when user clicked 'start', default: false
|
8
|
-
*/
|
9
|
-
this.integratedGameframeMobile = false;
|
10
|
-
/**
|
11
|
-
* Widget Setting, show game in a frame when user clicked 'start', default: false
|
12
|
-
* Open game in a frame, gamepageModalurl value should be set
|
13
|
-
*/
|
14
|
-
this.integratedGameframeDesktop = false;
|
15
|
-
/**
|
16
|
-
* Language
|
17
|
-
*/
|
18
|
-
this.language = 'en';
|
19
|
-
this.userAgent = window.navigator.userAgent;
|
20
|
-
}
|
21
|
-
onPlayNowClicked() {
|
22
|
-
this.playClicked.emit(this.gameId);
|
23
|
-
let modalEventData = {
|
24
|
-
gameId: this.gameId,
|
25
|
-
isMobile: isMobile(this.userAgent),
|
26
|
-
};
|
27
|
-
let isFrameMode = this.integratedGameframeMobile || this.integratedGameframeDesktop;
|
28
|
-
window.postMessage({
|
29
|
-
type: isFrameMode ? 'OpenGameFrame' : 'ShowGameModal',
|
30
|
-
eventData: isFrameMode
|
31
|
-
? Object.assign(Object.assign({}, modalEventData), { gamefunmode: this.hasFunMode, source: 'GameThumbnail', identifier: 'Lobby' }) : modalEventData,
|
32
|
-
}, window.location.href);
|
33
|
-
}
|
34
|
-
render() {
|
35
|
-
return (h("div", { class: "GameInfoWrapper", part: "GameInfoWrapper" },
|
36
|
-
h("div", { class: "GameInfo ", part: "GameInfo " },
|
37
|
-
h("p", { class: "GameInfoName", part: "GameInfoName", title: this.gameName },
|
38
|
-
' ',
|
39
|
-
this.gameName,
|
40
|
-
' '),
|
41
|
-
h("button", { class: "GameInfoBtn", part: "GameInfoBtn", onClick: () => this.onPlayNowClicked() }, translate('playNow', this.language))),
|
42
|
-
h("slot", { name: "vendor-name" },
|
43
|
-
h("span", { class: "GameInfoVendor", part: "GameInfoVendor" }, this.gameVendor))));
|
44
|
-
}
|
45
|
-
static get is() { return "casino-game-thumbnail-overlay"; }
|
46
|
-
static get originalStyleUrls() { return {
|
47
|
-
"$": ["casino-game-thumbnail-overlay.scss"]
|
48
|
-
}; }
|
49
|
-
static get styleUrls() { return {
|
50
|
-
"$": ["casino-game-thumbnail-overlay.css"]
|
51
|
-
}; }
|
52
|
-
static get properties() { return {
|
53
|
-
"gamepageModalurl": {
|
54
|
-
"type": "string",
|
55
|
-
"mutable": false,
|
56
|
-
"complexType": {
|
57
|
-
"original": "string",
|
58
|
-
"resolved": "string",
|
59
|
-
"references": {}
|
60
|
-
},
|
61
|
-
"required": false,
|
62
|
-
"optional": false,
|
63
|
-
"docs": {
|
64
|
-
"tags": [],
|
65
|
-
"text": "Widget Setting, the frame url when integratedGameframeDesktop is true"
|
66
|
-
},
|
67
|
-
"attribute": "gamepage-modalurl",
|
68
|
-
"reflect": false
|
69
|
-
},
|
70
|
-
"integratedGameframeMobile": {
|
71
|
-
"type": "boolean",
|
72
|
-
"mutable": false,
|
73
|
-
"complexType": {
|
74
|
-
"original": "boolean",
|
75
|
-
"resolved": "boolean",
|
76
|
-
"references": {}
|
77
|
-
},
|
78
|
-
"required": false,
|
79
|
-
"optional": false,
|
80
|
-
"docs": {
|
81
|
-
"tags": [],
|
82
|
-
"text": "Widget Setting, show game in a frame when user clicked 'start', default: false"
|
83
|
-
},
|
84
|
-
"attribute": "integrated-gameframe-mobile",
|
85
|
-
"reflect": false,
|
86
|
-
"defaultValue": "false"
|
87
|
-
},
|
88
|
-
"integratedGameframeDesktop": {
|
89
|
-
"type": "boolean",
|
90
|
-
"mutable": false,
|
91
|
-
"complexType": {
|
92
|
-
"original": "boolean",
|
93
|
-
"resolved": "boolean",
|
94
|
-
"references": {}
|
95
|
-
},
|
96
|
-
"required": false,
|
97
|
-
"optional": false,
|
98
|
-
"docs": {
|
99
|
-
"tags": [],
|
100
|
-
"text": "Widget Setting, show game in a frame when user clicked 'start', default: false\nOpen game in a frame, gamepageModalurl value should be set"
|
101
|
-
},
|
102
|
-
"attribute": "integrated-gameframe-desktop",
|
103
|
-
"reflect": false,
|
104
|
-
"defaultValue": "false"
|
105
|
-
},
|
106
|
-
"language": {
|
107
|
-
"type": "string",
|
108
|
-
"mutable": false,
|
109
|
-
"complexType": {
|
110
|
-
"original": "string",
|
111
|
-
"resolved": "string",
|
112
|
-
"references": {}
|
113
|
-
},
|
114
|
-
"required": false,
|
115
|
-
"optional": false,
|
116
|
-
"docs": {
|
117
|
-
"tags": [],
|
118
|
-
"text": "Language"
|
119
|
-
},
|
120
|
-
"attribute": "language",
|
121
|
-
"reflect": false,
|
122
|
-
"defaultValue": "'en'"
|
123
|
-
},
|
124
|
-
"gameName": {
|
125
|
-
"type": "string",
|
126
|
-
"mutable": false,
|
127
|
-
"complexType": {
|
128
|
-
"original": "string",
|
129
|
-
"resolved": "string",
|
130
|
-
"references": {}
|
131
|
-
},
|
132
|
-
"required": false,
|
133
|
-
"optional": false,
|
134
|
-
"docs": {
|
135
|
-
"tags": [],
|
136
|
-
"text": ""
|
137
|
-
},
|
138
|
-
"attribute": "game-name",
|
139
|
-
"reflect": false
|
140
|
-
},
|
141
|
-
"gameVendor": {
|
142
|
-
"type": "string",
|
143
|
-
"mutable": false,
|
144
|
-
"complexType": {
|
145
|
-
"original": "string",
|
146
|
-
"resolved": "string",
|
147
|
-
"references": {}
|
148
|
-
},
|
149
|
-
"required": false,
|
150
|
-
"optional": false,
|
151
|
-
"docs": {
|
152
|
-
"tags": [],
|
153
|
-
"text": ""
|
154
|
-
},
|
155
|
-
"attribute": "game-vendor",
|
156
|
-
"reflect": false
|
157
|
-
},
|
158
|
-
"gameId": {
|
159
|
-
"type": "any",
|
160
|
-
"mutable": false,
|
161
|
-
"complexType": {
|
162
|
-
"original": "string | number",
|
163
|
-
"resolved": "number | string",
|
164
|
-
"references": {}
|
165
|
-
},
|
166
|
-
"required": false,
|
167
|
-
"optional": false,
|
168
|
-
"docs": {
|
169
|
-
"tags": [],
|
170
|
-
"text": ""
|
171
|
-
},
|
172
|
-
"attribute": "game-id",
|
173
|
-
"reflect": false
|
174
|
-
},
|
175
|
-
"hasFunMode": {
|
176
|
-
"type": "boolean",
|
177
|
-
"mutable": false,
|
178
|
-
"complexType": {
|
179
|
-
"original": "boolean",
|
180
|
-
"resolved": "boolean",
|
181
|
-
"references": {}
|
182
|
-
},
|
183
|
-
"required": false,
|
184
|
-
"optional": false,
|
185
|
-
"docs": {
|
186
|
-
"tags": [],
|
187
|
-
"text": ""
|
188
|
-
},
|
189
|
-
"attribute": "has-fun-mode",
|
190
|
-
"reflect": false
|
191
|
-
}
|
192
|
-
}; }
|
193
|
-
static get events() { return [{
|
194
|
-
"method": "playClicked",
|
195
|
-
"name": "playCasinoGame",
|
196
|
-
"bubbles": true,
|
197
|
-
"cancelable": true,
|
198
|
-
"composed": true,
|
199
|
-
"docs": {
|
200
|
-
"tags": [],
|
201
|
-
"text": "Event when playnow button clicked"
|
202
|
-
},
|
203
|
-
"complexType": {
|
204
|
-
"original": "string | number",
|
205
|
-
"resolved": "number | string",
|
206
|
-
"references": {}
|
207
|
-
}
|
208
|
-
}]; }
|
209
|
-
}
|