@everymatrix/casino-game-thumb-view 1.44.0 → 1.45.0

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.
Files changed (131) hide show
  1. package/dist/casino-game-thumb-view/casino-game-thumb-view.esm.js +1 -1
  2. package/dist/casino-game-thumb-view/p-2207062c.entry.js +1 -0
  3. package/dist/casino-game-thumb-view/p-39684b4a.entry.js +1 -0
  4. package/dist/casino-game-thumb-view/p-af0284b5.entry.js +1 -0
  5. package/dist/casino-game-thumb-view/p-b73b7a18.entry.js +1 -0
  6. package/dist/casino-game-thumb-view/p-bd016895.entry.js +7 -0
  7. package/dist/casino-game-thumb-view/p-d2580653.js +8 -0
  8. package/dist/casino-game-thumb-view/p-d48c3566.entry.js +1 -0
  9. package/dist/casino-game-thumb-view/p-e1255160.js +1 -0
  10. package/dist/casino-game-thumb-view/p-eef6f908.js +2 -0
  11. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  12. package/dist/cjs/casino-extrainfo-baccarat.cjs.entry.js +327 -322
  13. package/dist/cjs/casino-extrainfo-blackjack.cjs.entry.js +45 -45
  14. package/dist/cjs/casino-extrainfo-roulette.cjs.entry.js +35 -34
  15. package/dist/cjs/casino-game-thumb-view.cjs.js +17 -11
  16. package/dist/cjs/casino-game-thumb-view_2.cjs.entry.js +469 -519
  17. package/dist/cjs/casino-game-thumbnail-betlimit_2.cjs.entry.js +258 -251
  18. package/dist/cjs/casino-normal-game-thumbnail.cjs.entry.js +14 -12
  19. package/dist/cjs/game-thumbnail-5a34c727.js +78 -0
  20. package/dist/cjs/index-48d13981.js +1709 -0
  21. package/dist/cjs/loader.cjs.js +7 -13
  22. package/dist/cjs/locale.utils-53bf703a.js +132 -0
  23. package/dist/cjs/{utils-a0afc0a9.js → utils-c4ed3adc.js} +407 -404
  24. package/dist/collection/collection-manifest.json +10 -10
  25. package/dist/collection/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.js +251 -230
  26. package/dist/collection/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.js +136 -114
  27. package/dist/collection/components/casino-extrainfo-roulette/casino-extrainfo-roulette.js +126 -119
  28. package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.css +1 -1
  29. package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.js +1023 -1027
  30. package/dist/collection/components/casino-game-thumb-view/index.js +1 -0
  31. package/dist/collection/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.js +78 -80
  32. package/dist/collection/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.js +153 -150
  33. package/dist/collection/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.js +201 -206
  34. package/dist/collection/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.js +71 -58
  35. package/dist/collection/constants/game-thumbnail.js +66 -66
  36. package/dist/collection/models/casino-game-thumb-view.js +6 -6
  37. package/dist/collection/models/currency-symbols.js +170 -170
  38. package/dist/collection/utils/baccarat-board-svg.js +225 -225
  39. package/dist/collection/utils/locale.utils.js +122 -122
  40. package/dist/collection/utils/utils.js +41 -41
  41. package/dist/esm/app-globals-0f993ce5.js +3 -0
  42. package/dist/esm/casino-extrainfo-baccarat.entry.js +327 -322
  43. package/dist/esm/casino-extrainfo-blackjack.entry.js +45 -45
  44. package/dist/esm/casino-extrainfo-roulette.entry.js +35 -34
  45. package/dist/esm/casino-game-thumb-view.js +14 -11
  46. package/dist/esm/casino-game-thumb-view_2.entry.js +469 -519
  47. package/dist/esm/casino-game-thumbnail-betlimit_2.entry.js +258 -251
  48. package/dist/esm/casino-normal-game-thumbnail.entry.js +14 -12
  49. package/dist/esm/game-thumbnail-035e97e2.js +72 -0
  50. package/dist/esm/index-8c9a8030.js +1681 -0
  51. package/dist/esm/loader.js +7 -13
  52. package/dist/esm/locale.utils-0c514ca8.js +130 -0
  53. package/dist/{components/utils.js → esm/utils-090ac2e9.js} +407 -404
  54. package/dist/stencil.config.dev.js +17 -0
  55. package/dist/stencil.config.js +12 -35
  56. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/packages/stencil/casino-game-thumb-view/stencil.config.d.ts +2 -0
  57. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/packages/stencil/casino-game-thumb-view/stencil.config.dev.d.ts +2 -0
  58. package/dist/types/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.d.ts +36 -36
  59. package/dist/types/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.d.ts +33 -33
  60. package/dist/types/components/casino-extrainfo-roulette/casino-extrainfo-roulette.d.ts +18 -18
  61. package/dist/types/components/casino-game-thumb-view/casino-game-thumb-view.d.ts +213 -213
  62. package/dist/types/components/casino-game-thumb-view/index.d.ts +1 -0
  63. package/dist/types/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.d.ts +14 -14
  64. package/dist/types/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.d.ts +13 -13
  65. package/dist/types/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.d.ts +28 -28
  66. package/dist/types/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.d.ts +4 -4
  67. package/dist/types/components.d.ts +33 -2
  68. package/dist/types/constants/game-thumbnail.d.ts +66 -66
  69. package/dist/types/models/casino-game-thumb-view.d.ts +107 -107
  70. package/dist/types/models/currency-symbols.d.ts +170 -170
  71. package/dist/types/stencil-public-runtime.d.ts +142 -33
  72. package/dist/types/utils/baccarat-board-svg.d.ts +29 -29
  73. package/loader/cdn.js +1 -3
  74. package/loader/index.cjs.js +1 -3
  75. package/loader/index.d.ts +13 -1
  76. package/loader/index.es2017.js +1 -3
  77. package/loader/index.js +1 -3
  78. package/loader/package.json +1 -0
  79. package/package.json +8 -8
  80. package/dist/assets/baccarat.svg +0 -43
  81. package/dist/assets/fav.svg +0 -9
  82. package/dist/assets/favorite.svg +0 -12
  83. package/dist/assets/seat.svg +0 -6
  84. package/dist/assets/unfav.svg +0 -20
  85. package/dist/casino-game-thumb-view/p-1bbf4b70.entry.js +0 -1
  86. package/dist/casino-game-thumb-view/p-42bf2034.entry.js +0 -1
  87. package/dist/casino-game-thumb-view/p-46dbb1cb.js +0 -1
  88. package/dist/casino-game-thumb-view/p-6a6b2a78.js +0 -8
  89. package/dist/casino-game-thumb-view/p-7ae107ed.entry.js +0 -1
  90. package/dist/casino-game-thumb-view/p-9cbfffbc.entry.js +0 -1
  91. package/dist/casino-game-thumb-view/p-d961aec4.entry.js +0 -1
  92. package/dist/casino-game-thumb-view/p-db43bb56.entry.js +0 -7
  93. package/dist/cjs/game-thumbnail-31d518f0.js +0 -78
  94. package/dist/cjs/index-65a1d768.js +0 -1796
  95. package/dist/cjs/locale.utils-aa160787.js +0 -132
  96. package/dist/components/casino-extrainfo-baccarat.d.ts +0 -11
  97. package/dist/components/casino-extrainfo-baccarat.js +0 -400
  98. package/dist/components/casino-extrainfo-blackjack.d.ts +0 -11
  99. package/dist/components/casino-extrainfo-blackjack.js +0 -92
  100. package/dist/components/casino-extrainfo-roulette.d.ts +0 -11
  101. package/dist/components/casino-extrainfo-roulette.js +0 -78
  102. package/dist/components/casino-game-thumb-view.d.ts +0 -11
  103. package/dist/components/casino-game-thumb-view.js +0 -1625
  104. package/dist/components/casino-game-thumbnail-betlimit.d.ts +0 -11
  105. package/dist/components/casino-game-thumbnail-betlimit.js +0 -6
  106. package/dist/components/casino-game-thumbnail-betlimit2.js +0 -227
  107. package/dist/components/casino-game-thumbnail-extrainfo.d.ts +0 -11
  108. package/dist/components/casino-game-thumbnail-extrainfo.js +0 -6
  109. package/dist/components/casino-game-thumbnail-extrainfo2.js +0 -96
  110. package/dist/components/casino-game-thumbnail-overlay.d.ts +0 -11
  111. package/dist/components/casino-game-thumbnail-overlay.js +0 -6
  112. package/dist/components/casino-game-thumbnail-overlay2.js +0 -69
  113. package/dist/components/casino-normal-game-thumbnail.d.ts +0 -11
  114. package/dist/components/casino-normal-game-thumbnail.js +0 -52
  115. package/dist/components/game-thumbnail.js +0 -72
  116. package/dist/components/index.d.ts +0 -26
  117. package/dist/components/index.js +0 -1
  118. package/dist/components/locale.utils.js +0 -130
  119. package/dist/esm/game-thumbnail-0a56ee03.js +0 -72
  120. package/dist/esm/index-1e44dd9f.js +0 -1769
  121. package/dist/esm/locale.utils-e0cf897e.js +0 -130
  122. package/dist/esm/polyfills/core-js.js +0 -11
  123. package/dist/esm/polyfills/css-shim.js +0 -1
  124. package/dist/esm/polyfills/dom.js +0 -79
  125. package/dist/esm/polyfills/es5-html-element.js +0 -1
  126. package/dist/esm/polyfills/index.js +0 -34
  127. package/dist/esm/polyfills/system.js +0 -6
  128. package/dist/esm/utils-e9314132.js +0 -5739
  129. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-game-thumb-view/.stencil/packages/casino-game-thumb-view/stencil.config.d.ts +0 -2
  130. /package/dist/casino-game-thumb-view/{p-2d5f59fe.js → p-2d02adb1.js} +0 -0
  131. /package/dist/casino-game-thumb-view/{p-1e63a1ab.js → p-59ceeaaa.js} +0 -0
@@ -1,119 +1,141 @@
1
- import { Component, h, Host, Method, Prop, State } from '@stencil/core';
2
- import SeatSvg from '../../static/seat.svg';
3
- import { DEFAULT_BLACKJACK_TOTAL_SEATS } from '../../constants/game-thumbnail';
4
- import { translate } from '../../utils/locale.utils';
1
+ import { h, Host } from "@stencil/core";
2
+ import SeatSvg from "../../static/seat.svg";
3
+ import { DEFAULT_BLACKJACK_TOTAL_SEATS } from "../../constants/game-thumbnail";
4
+ import { translate } from "../../utils/locale.utils";
5
5
  export class CasinoExtrainfoBlackjack {
6
- /**
7
- * Generate Jackpot live seats info
8
- * @param totalSeats
9
- * @param occupiedSeats
10
- */
11
- generateBlackJackSeats(totalSeats = DEFAULT_BLACKJACK_TOTAL_SEATS, occupiedSeats = []) {
12
- let seatsStatus = [];
13
- for (let i = 0; i < totalSeats; i++) {
14
- seatsStatus.push({
15
- seatNo: i,
16
- isClosed: occupiedSeats.indexOf((i + 1).toString()) > -1,
17
- });
6
+ constructor() {
7
+ this.language = undefined;
8
+ this.gameInfo = undefined;
9
+ this.gameDetails = undefined;
10
+ this.seatsStatus = undefined;
11
+ this.isTableFull = undefined;
18
12
  }
19
- this.isTableFull = totalSeats == occupiedSeats.length;
20
- return seatsStatus;
21
- }
22
- async onGameLoaded(gameInfo) {
23
- var _a, _b, _c;
24
- this.gameInfo = gameInfo;
25
- this.gameDetails = this.gameInfo.details;
26
- this.seatsStatus = this.generateBlackJackSeats((_a = this.gameDetails) === null || _a === void 0 ? void 0 : _a.totalSeats, (_b = this.gameDetails) === null || _b === void 0 ? void 0 : _b.currentOccupiedSeats);
27
- (_c = this.infoWrapperRef) === null || _c === void 0 ? void 0 : _c.onGameLoaded(gameInfo);
28
- }
29
- async onGameDetailUpdated(details) {
30
- var _a, _b;
31
- this.gameInfo.details = this.gameDetails = details;
32
- this.seatsStatus = this.generateBlackJackSeats((_a = this.gameDetails) === null || _a === void 0 ? void 0 : _a.totalSeats, (_b = this.gameDetails) === null || _b === void 0 ? void 0 : _b.currentOccupiedSeats);
33
- this.gameDetails = Object.assign({}, this.gameDetails);
34
- }
35
- render() {
36
- return (h(Host, null,
37
- h("casino-game-thumbnail-extrainfo", { ref: (el) => (this.infoWrapperRef = el), language: this.language }, this.gameDetails && this.gameDetails.isOpen && (h("div", { slot: "category-details", class: "LiveIcons", part: "LiveIcons" }, this.isTableFull ? (h("span", { class: "FullTable", part: "FullTable" }, translate('full', this.language))) : (this.seatsStatus.map((seatStatus) => (h("span", { class: `${seatStatus.isClosed ? 'ClosedSeat' : 'OpenSeat'} svg-container`, id: `s${seatStatus.seatNo}`, part: `${seatStatus.isClosed ? 'ClosedSeat' : 'OpenSeat'} svg-container`, innerHTML: SeatSvg })))))))));
38
- }
39
- static get is() { return "casino-extrainfo-blackjack"; }
40
- static get originalStyleUrls() { return {
41
- "$": ["casino-extrainfo-blackjack.scss"]
42
- }; }
43
- static get styleUrls() { return {
44
- "$": ["casino-extrainfo-blackjack.css"]
45
- }; }
46
- static get properties() { return {
47
- "language": {
48
- "type": "string",
49
- "mutable": false,
50
- "complexType": {
51
- "original": "string",
52
- "resolved": "string",
53
- "references": {}
54
- },
55
- "required": false,
56
- "optional": false,
57
- "docs": {
58
- "tags": [],
59
- "text": "Text language to show"
60
- },
61
- "attribute": "language",
62
- "reflect": false
13
+ /**
14
+ * Generate Jackpot live seats info
15
+ * @param totalSeats
16
+ * @param occupiedSeats
17
+ */
18
+ generateBlackJackSeats(totalSeats = DEFAULT_BLACKJACK_TOTAL_SEATS, occupiedSeats = []) {
19
+ let seatsStatus = [];
20
+ for (let i = 0; i < totalSeats; i++) {
21
+ seatsStatus.push({
22
+ seatNo: i,
23
+ isClosed: occupiedSeats.indexOf((i + 1).toString()) > -1,
24
+ });
25
+ }
26
+ this.isTableFull = totalSeats == occupiedSeats.length;
27
+ return seatsStatus;
63
28
  }
64
- }; }
65
- static get states() { return {
66
- "gameInfo": {},
67
- "gameDetails": {},
68
- "seatsStatus": {},
69
- "isTableFull": {}
70
- }; }
71
- static get methods() { return {
72
- "onGameLoaded": {
73
- "complexType": {
74
- "signature": "(gameInfo: CasinoGameThumbnailInfo) => Promise<void>",
75
- "parameters": [{
76
- "tags": [],
77
- "text": ""
78
- }],
79
- "references": {
80
- "Promise": {
81
- "location": "global"
82
- },
83
- "CasinoGameThumbnailInfo": {
84
- "location": "import",
85
- "path": "../../models/casino-game-thumb-view"
86
- }
87
- },
88
- "return": "Promise<void>"
89
- },
90
- "docs": {
91
- "text": "",
92
- "tags": []
93
- }
94
- },
95
- "onGameDetailUpdated": {
96
- "complexType": {
97
- "signature": "(details: CasinoGameThumbnailDetails) => Promise<void>",
98
- "parameters": [{
99
- "tags": [],
100
- "text": ""
101
- }],
102
- "references": {
103
- "Promise": {
104
- "location": "global"
105
- },
106
- "CasinoGameThumbnailDetails": {
107
- "location": "import",
108
- "path": "../../models/casino-game-thumb-view"
109
- }
110
- },
111
- "return": "Promise<void>"
112
- },
113
- "docs": {
114
- "text": "",
115
- "tags": []
116
- }
29
+ async onGameLoaded(gameInfo) {
30
+ var _a, _b, _c;
31
+ this.gameInfo = gameInfo;
32
+ this.gameDetails = this.gameInfo.details;
33
+ this.seatsStatus = this.generateBlackJackSeats((_a = this.gameDetails) === null || _a === void 0 ? void 0 : _a.totalSeats, (_b = this.gameDetails) === null || _b === void 0 ? void 0 : _b.currentOccupiedSeats);
34
+ (_c = this.infoWrapperRef) === null || _c === void 0 ? void 0 : _c.onGameLoaded(gameInfo);
35
+ }
36
+ async onGameDetailUpdated(details) {
37
+ var _a, _b;
38
+ this.gameInfo.details = this.gameDetails = details;
39
+ this.seatsStatus = this.generateBlackJackSeats((_a = this.gameDetails) === null || _a === void 0 ? void 0 : _a.totalSeats, (_b = this.gameDetails) === null || _b === void 0 ? void 0 : _b.currentOccupiedSeats);
40
+ this.gameDetails = Object.assign({}, this.gameDetails);
41
+ }
42
+ render() {
43
+ return (h(Host, { key: 'e75d57ebd1f5827facafd15ffc6631cc84d7ca52' }, h("casino-game-thumbnail-extrainfo", { key: 'e861149d6e01ef11ecc92d8f3606e9406ca68238', ref: (el) => (this.infoWrapperRef = el), language: this.language }, this.gameDetails && this.gameDetails.isOpen && (h("div", { key: 'e157039d431369c6e9b419cde52e3045765fb6c6', slot: "category-details", class: "LiveIcons", part: "LiveIcons" }, this.isTableFull ? (h("span", { class: "FullTable", part: "FullTable" }, translate('full', this.language))) : (this.seatsStatus.map((seatStatus) => (h("span", { class: `${seatStatus.isClosed ? 'ClosedSeat' : 'OpenSeat'} svg-container`, id: `s${seatStatus.seatNo}`, part: `${seatStatus.isClosed ? 'ClosedSeat' : 'OpenSeat'} svg-container`, innerHTML: SeatSvg })))))))));
44
+ }
45
+ static get is() { return "casino-extrainfo-blackjack"; }
46
+ static get originalStyleUrls() {
47
+ return {
48
+ "$": ["casino-extrainfo-blackjack.scss"]
49
+ };
50
+ }
51
+ static get styleUrls() {
52
+ return {
53
+ "$": ["casino-extrainfo-blackjack.css"]
54
+ };
55
+ }
56
+ static get properties() {
57
+ return {
58
+ "language": {
59
+ "type": "string",
60
+ "mutable": false,
61
+ "complexType": {
62
+ "original": "string",
63
+ "resolved": "string",
64
+ "references": {}
65
+ },
66
+ "required": false,
67
+ "optional": false,
68
+ "docs": {
69
+ "tags": [],
70
+ "text": "Text language to show"
71
+ },
72
+ "attribute": "language",
73
+ "reflect": false
74
+ }
75
+ };
76
+ }
77
+ static get states() {
78
+ return {
79
+ "gameInfo": {},
80
+ "gameDetails": {},
81
+ "seatsStatus": {},
82
+ "isTableFull": {}
83
+ };
84
+ }
85
+ static get methods() {
86
+ return {
87
+ "onGameLoaded": {
88
+ "complexType": {
89
+ "signature": "(gameInfo: CasinoGameThumbnailInfo) => Promise<void>",
90
+ "parameters": [{
91
+ "name": "gameInfo",
92
+ "type": "CasinoGameThumbnailInfo",
93
+ "docs": ""
94
+ }],
95
+ "references": {
96
+ "Promise": {
97
+ "location": "global",
98
+ "id": "global::Promise"
99
+ },
100
+ "CasinoGameThumbnailInfo": {
101
+ "location": "import",
102
+ "path": "../../models/casino-game-thumb-view",
103
+ "id": "../../../../packages/stencil/casino-game-thumb-view/src/models/casino-game-thumb-view.ts::CasinoGameThumbnailInfo"
104
+ }
105
+ },
106
+ "return": "Promise<void>"
107
+ },
108
+ "docs": {
109
+ "text": "",
110
+ "tags": []
111
+ }
112
+ },
113
+ "onGameDetailUpdated": {
114
+ "complexType": {
115
+ "signature": "(details: CasinoGameThumbnailDetails) => Promise<void>",
116
+ "parameters": [{
117
+ "name": "details",
118
+ "type": "CasinoGameThumbnailDetails",
119
+ "docs": ""
120
+ }],
121
+ "references": {
122
+ "Promise": {
123
+ "location": "global",
124
+ "id": "global::Promise"
125
+ },
126
+ "CasinoGameThumbnailDetails": {
127
+ "location": "import",
128
+ "path": "../../models/casino-game-thumb-view",
129
+ "id": "../../../../packages/stencil/casino-game-thumb-view/src/models/casino-game-thumb-view.ts::CasinoGameThumbnailDetails"
130
+ }
131
+ },
132
+ "return": "Promise<void>"
133
+ },
134
+ "docs": {
135
+ "text": "",
136
+ "tags": []
137
+ }
138
+ }
139
+ };
117
140
  }
118
- }; }
119
141
  }
@@ -1,123 +1,130 @@
1
- import { Component, h, Host, Prop, State, Method } from '@stencil/core';
2
- import { ROULETTE_COLOR_MAP, WIDGETTYPE_GAMECATEGORY, } from '../../constants/game-thumbnail';
1
+ import { h, Host } from "@stencil/core";
2
+ import { ROULETTE_COLOR_MAP, WIDGETTYPE_GAMECATEGORY, } from "../../constants/game-thumbnail";
3
3
  export class CasinoExtrainfoRoulette {
4
- constructor() {
5
- /**
6
- * Language
7
- */
8
- this.language = 'en';
9
- }
10
- async onGameLoaded(gameInfo) {
11
- var _a;
12
- this.gameInfo = Object.assign({}, gameInfo);
13
- this.gameDetails = this.gameInfo.details ? Object.assign({}, this.gameInfo.details) : null;
14
- (_a = this.infoWrapperRef) === null || _a === void 0 ? void 0 : _a.onGameLoaded(gameInfo);
15
- }
16
- async onGameDetailUpdated(details) {
17
- this.gameInfo.details = this.gameDetails = details;
18
- this.gameInfo = Object.assign({}, this.gameInfo);
19
- this.gameDetails = Object.assign({}, this.gameDetails);
20
- }
21
- getRouletteNumberColor(value) {
22
- return ROULETTE_COLOR_MAP[value];
23
- }
24
- render() {
25
- var _a, _b, _c, _d;
26
- const isDouble = this.gameDetails ?
27
- this.gameDetails.category.toLowerCase() ===
28
- WIDGETTYPE_GAMECATEGORY.doubleballroulette : false;
29
- let rouletteNumbers = (isDouble
30
- ? (_a = this.gameDetails) === null || _a === void 0 ? void 0 : _a.currentDoubleBallRouletteNumbers
31
- : (_b = this.gameDetails) === null || _b === void 0 ? void 0 : _b.currentRouletteNumbers) || [];
32
- return (h(Host, null,
33
- h("casino-game-thumbnail-extrainfo", { ref: (el) => (this.infoWrapperRef = el), language: this.language }, h("div", { slot: "category-details", class: `LiveIcons ${((_c = this.gameDetails) === null || _c === void 0 ? void 0 : _c.isOpen) ? 'GameBackdrop' : ''}`, part: `LiveIcons ${((_d = this.gameDetails) === null || _d === void 0 ? void 0 : _d.isOpen) ? 'GameBackdrop' : ''}` }, rouletteNumbers.slice(0, 5).map((rNum, idx) => isDouble === true ? (h("div", { class: "Double", part: "Double" },
34
- h("span", { id: `s${idx}0`, class: `LatestResult ${idx == 0 ? 'First' : ''} ${this.showLiveClass ? 'FirstElementAnimated' : ''} ${this.getRouletteNumberColor(rNum[0])}` },
35
- ' ',
36
- rNum[0]),
37
- h("span", { id: `s${idx}1`, class: `LatestResult ${idx == 0 ? 'First' : ''} ${this.showLiveClass ? 'FirstElementAnimated' : ''} ${this.getRouletteNumberColor(rNum[1])}` },
38
- ' ',
39
- rNum[1]))) : (h("span", { id: `s${idx}`, class: `LatestResult ${idx == 0 ? 'First' : ''} ${this.showLiveClass ? 'FirstElementAnimated' : ''} ${this.getRouletteNumberColor(rNum)}` },
40
- ' ',
41
- rNum)))))));
42
- }
43
- static get is() { return "casino-extrainfo-roulette"; }
44
- static get originalStyleUrls() { return {
45
- "$": ["casino-extrainfo-roulette.scss"]
46
- }; }
47
- static get styleUrls() { return {
48
- "$": ["casino-extrainfo-roulette.css"]
49
- }; }
50
- static get properties() { return {
51
- "language": {
52
- "type": "string",
53
- "mutable": false,
54
- "complexType": {
55
- "original": "string",
56
- "resolved": "string",
57
- "references": {}
58
- },
59
- "required": false,
60
- "optional": false,
61
- "docs": {
62
- "tags": [],
63
- "text": "Language"
64
- },
65
- "attribute": "language",
66
- "reflect": false,
67
- "defaultValue": "'en'"
4
+ constructor() {
5
+ this.language = 'en';
6
+ this.gameInfo = undefined;
7
+ this.gameDetails = undefined;
8
+ this.showLiveClass = undefined;
68
9
  }
69
- }; }
70
- static get states() { return {
71
- "gameInfo": {},
72
- "gameDetails": {},
73
- "showLiveClass": {}
74
- }; }
75
- static get methods() { return {
76
- "onGameLoaded": {
77
- "complexType": {
78
- "signature": "(gameInfo: CasinoGameThumbnailInfo) => Promise<void>",
79
- "parameters": [{
80
- "tags": [],
81
- "text": ""
82
- }],
83
- "references": {
84
- "Promise": {
85
- "location": "global"
86
- },
87
- "CasinoGameThumbnailInfo": {
88
- "location": "import",
89
- "path": "../../models/casino-game-thumb-view"
90
- }
91
- },
92
- "return": "Promise<void>"
93
- },
94
- "docs": {
95
- "text": "",
96
- "tags": []
97
- }
98
- },
99
- "onGameDetailUpdated": {
100
- "complexType": {
101
- "signature": "(details: CasinoGameThumbnailDetails) => Promise<void>",
102
- "parameters": [{
103
- "tags": [],
104
- "text": ""
105
- }],
106
- "references": {
107
- "Promise": {
108
- "location": "global"
109
- },
110
- "CasinoGameThumbnailDetails": {
111
- "location": "import",
112
- "path": "../../models/casino-game-thumb-view"
113
- }
114
- },
115
- "return": "Promise<void>"
116
- },
117
- "docs": {
118
- "text": "",
119
- "tags": []
120
- }
10
+ async onGameLoaded(gameInfo) {
11
+ var _a;
12
+ this.gameInfo = Object.assign({}, gameInfo);
13
+ this.gameDetails = this.gameInfo.details ? Object.assign({}, this.gameInfo.details) : null;
14
+ (_a = this.infoWrapperRef) === null || _a === void 0 ? void 0 : _a.onGameLoaded(gameInfo);
15
+ }
16
+ async onGameDetailUpdated(details) {
17
+ this.gameInfo.details = this.gameDetails = details;
18
+ this.gameInfo = Object.assign({}, this.gameInfo);
19
+ this.gameDetails = Object.assign({}, this.gameDetails);
20
+ }
21
+ getRouletteNumberColor(value) {
22
+ return ROULETTE_COLOR_MAP[value];
23
+ }
24
+ render() {
25
+ var _a, _b, _c, _d;
26
+ const isDouble = this.gameDetails ?
27
+ this.gameDetails.category.toLowerCase() ===
28
+ WIDGETTYPE_GAMECATEGORY.doubleballroulette : false;
29
+ let rouletteNumbers = (isDouble
30
+ ? (_a = this.gameDetails) === null || _a === void 0 ? void 0 : _a.currentDoubleBallRouletteNumbers
31
+ : (_b = this.gameDetails) === null || _b === void 0 ? void 0 : _b.currentRouletteNumbers) || [];
32
+ return (h(Host, { key: 'c7c66e8f51bc9a09b78856342203ebe24fd09231' }, h("casino-game-thumbnail-extrainfo", { key: '380e499260501a6126ab6944eed0ea1e1ce3877d', ref: (el) => (this.infoWrapperRef = el), language: this.language }, h("div", { key: '233bbf1c16b1d36ac463a4178ef1724124817890', slot: "category-details", class: `LiveIcons ${((_c = this.gameDetails) === null || _c === void 0 ? void 0 : _c.isOpen) ? 'GameBackdrop' : ''}`, part: `LiveIcons ${((_d = this.gameDetails) === null || _d === void 0 ? void 0 : _d.isOpen) ? 'GameBackdrop' : ''}` }, rouletteNumbers.slice(0, 5).map((rNum, idx) => isDouble === true ? (h("div", { class: "Double", part: "Double" }, h("span", { id: `s${idx}0`, class: `LatestResult ${idx == 0 ? 'First' : ''} ${this.showLiveClass ? 'FirstElementAnimated' : ''} ${this.getRouletteNumberColor(rNum[0])}` }, ' ', rNum[0]), h("span", { id: `s${idx}1`, class: `LatestResult ${idx == 0 ? 'First' : ''} ${this.showLiveClass ? 'FirstElementAnimated' : ''} ${this.getRouletteNumberColor(rNum[1])}` }, ' ', rNum[1]))) : (h("span", { id: `s${idx}`, class: `LatestResult ${idx == 0 ? 'First' : ''} ${this.showLiveClass ? 'FirstElementAnimated' : ''} ${this.getRouletteNumberColor(rNum)}` }, ' ', rNum)))))));
33
+ }
34
+ static get is() { return "casino-extrainfo-roulette"; }
35
+ static get originalStyleUrls() {
36
+ return {
37
+ "$": ["casino-extrainfo-roulette.scss"]
38
+ };
39
+ }
40
+ static get styleUrls() {
41
+ return {
42
+ "$": ["casino-extrainfo-roulette.css"]
43
+ };
44
+ }
45
+ static get properties() {
46
+ return {
47
+ "language": {
48
+ "type": "string",
49
+ "mutable": false,
50
+ "complexType": {
51
+ "original": "string",
52
+ "resolved": "string",
53
+ "references": {}
54
+ },
55
+ "required": false,
56
+ "optional": false,
57
+ "docs": {
58
+ "tags": [],
59
+ "text": "Language"
60
+ },
61
+ "attribute": "language",
62
+ "reflect": false,
63
+ "defaultValue": "'en'"
64
+ }
65
+ };
66
+ }
67
+ static get states() {
68
+ return {
69
+ "gameInfo": {},
70
+ "gameDetails": {},
71
+ "showLiveClass": {}
72
+ };
73
+ }
74
+ static get methods() {
75
+ return {
76
+ "onGameLoaded": {
77
+ "complexType": {
78
+ "signature": "(gameInfo: CasinoGameThumbnailInfo) => Promise<void>",
79
+ "parameters": [{
80
+ "name": "gameInfo",
81
+ "type": "CasinoGameThumbnailInfo",
82
+ "docs": ""
83
+ }],
84
+ "references": {
85
+ "Promise": {
86
+ "location": "global",
87
+ "id": "global::Promise"
88
+ },
89
+ "CasinoGameThumbnailInfo": {
90
+ "location": "import",
91
+ "path": "../../models/casino-game-thumb-view",
92
+ "id": "../../../../packages/stencil/casino-game-thumb-view/src/models/casino-game-thumb-view.ts::CasinoGameThumbnailInfo"
93
+ }
94
+ },
95
+ "return": "Promise<void>"
96
+ },
97
+ "docs": {
98
+ "text": "",
99
+ "tags": []
100
+ }
101
+ },
102
+ "onGameDetailUpdated": {
103
+ "complexType": {
104
+ "signature": "(details: CasinoGameThumbnailDetails) => Promise<void>",
105
+ "parameters": [{
106
+ "name": "details",
107
+ "type": "CasinoGameThumbnailDetails",
108
+ "docs": ""
109
+ }],
110
+ "references": {
111
+ "Promise": {
112
+ "location": "global",
113
+ "id": "global::Promise"
114
+ },
115
+ "CasinoGameThumbnailDetails": {
116
+ "location": "import",
117
+ "path": "../../models/casino-game-thumb-view",
118
+ "id": "../../../../packages/stencil/casino-game-thumb-view/src/models/casino-game-thumb-view.ts::CasinoGameThumbnailDetails"
119
+ }
120
+ },
121
+ "return": "Promise<void>"
122
+ },
123
+ "docs": {
124
+ "text": "",
125
+ "tags": []
126
+ }
127
+ }
128
+ };
121
129
  }
122
- }; }
123
130
  }
@@ -49,7 +49,7 @@
49
49
  right: 0;
50
50
  bottom: 0;
51
51
  left: 0;
52
- background: linear-gradient(0deg, black 15%, rgba(0, 0, 0, 0) 100%);
52
+ background: linear-gradient(0deg, rgb(0, 0, 0) 15%, rgba(0, 0, 0, 0) 100%);
53
53
  }
54
54
 
55
55
  .ListGame .GameInnerContainer {