@everymatrix/casino-game-thumb-view 0.0.2-9.1 → 1.0.69

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 (132) 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-59ceeaaa.js +1 -0
  5. package/dist/casino-game-thumb-view/p-af0284b5.entry.js +1 -0
  6. package/dist/casino-game-thumb-view/p-b73b7a18.entry.js +1 -0
  7. package/dist/casino-game-thumb-view/p-bd016895.entry.js +7 -0
  8. package/dist/casino-game-thumb-view/p-d2580653.js +8 -0
  9. package/dist/casino-game-thumb-view/p-d48c3566.entry.js +1 -0
  10. package/dist/casino-game-thumb-view/p-e1255160.js +1 -0
  11. package/dist/casino-game-thumb-view/p-eef6f908.js +2 -0
  12. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  13. package/dist/cjs/casino-extrainfo-baccarat.cjs.entry.js +327 -322
  14. package/dist/cjs/casino-extrainfo-blackjack.cjs.entry.js +45 -45
  15. package/dist/cjs/casino-extrainfo-roulette.cjs.entry.js +35 -33
  16. package/dist/cjs/casino-game-thumb-view.cjs.js +17 -11
  17. package/dist/cjs/casino-game-thumb-view_2.cjs.entry.js +469 -511
  18. package/dist/cjs/casino-game-thumbnail-betlimit_2.cjs.entry.js +259 -249
  19. package/dist/cjs/casino-normal-game-thumbnail.cjs.entry.js +14 -12
  20. package/dist/cjs/game-thumbnail-5a34c727.js +78 -0
  21. package/dist/cjs/index-48d13981.js +1709 -0
  22. package/dist/cjs/loader.cjs.js +7 -13
  23. package/dist/cjs/locale.utils-53bf703a.js +132 -0
  24. package/dist/cjs/{utils-a0afc0a9.js → utils-c4ed3adc.js} +407 -404
  25. package/dist/collection/collection-manifest.json +10 -10
  26. package/dist/collection/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.js +251 -230
  27. package/dist/collection/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.js +136 -114
  28. package/dist/collection/components/casino-extrainfo-roulette/casino-extrainfo-roulette.js +126 -118
  29. package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.css +1 -1
  30. package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.js +1023 -1020
  31. package/dist/collection/components/casino-game-thumb-view/index.js +1 -0
  32. package/dist/collection/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.js +78 -80
  33. package/dist/collection/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.js +154 -148
  34. package/dist/collection/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.js +201 -205
  35. package/dist/collection/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.js +71 -58
  36. package/dist/collection/constants/game-thumbnail.js +66 -66
  37. package/dist/collection/models/casino-game-thumb-view.js +6 -6
  38. package/dist/collection/models/currency-symbols.js +170 -170
  39. package/dist/collection/utils/baccarat-board-svg.js +225 -225
  40. package/dist/collection/utils/locale.utils.js +123 -123
  41. package/dist/collection/utils/utils.js +41 -41
  42. package/dist/esm/app-globals-0f993ce5.js +3 -0
  43. package/dist/esm/casino-extrainfo-baccarat.entry.js +327 -322
  44. package/dist/esm/casino-extrainfo-blackjack.entry.js +45 -45
  45. package/dist/esm/casino-extrainfo-roulette.entry.js +35 -33
  46. package/dist/esm/casino-game-thumb-view.js +14 -11
  47. package/dist/esm/casino-game-thumb-view_2.entry.js +469 -511
  48. package/dist/esm/casino-game-thumbnail-betlimit_2.entry.js +259 -249
  49. package/dist/esm/casino-normal-game-thumbnail.entry.js +14 -12
  50. package/dist/esm/game-thumbnail-035e97e2.js +72 -0
  51. package/dist/esm/index-8c9a8030.js +1681 -0
  52. package/dist/esm/loader.js +7 -13
  53. package/dist/esm/locale.utils-0c514ca8.js +130 -0
  54. package/dist/{components/utils.js → esm/utils-090ac2e9.js} +407 -404
  55. package/dist/stencil.config.dev.js +17 -0
  56. package/dist/stencil.config.js +12 -35
  57. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/packages/stencil/casino-game-thumb-view/stencil.config.d.ts +2 -0
  58. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-game-thumb-view/.stencil/packages/stencil/casino-game-thumb-view/stencil.config.dev.d.ts +2 -0
  59. package/dist/types/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.d.ts +36 -36
  60. package/dist/types/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.d.ts +33 -33
  61. package/dist/types/components/casino-extrainfo-roulette/casino-extrainfo-roulette.d.ts +18 -18
  62. package/dist/types/components/casino-game-thumb-view/casino-game-thumb-view.d.ts +213 -213
  63. package/dist/types/components/casino-game-thumb-view/index.d.ts +1 -0
  64. package/dist/types/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.d.ts +14 -14
  65. package/dist/types/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.d.ts +13 -13
  66. package/dist/types/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.d.ts +28 -27
  67. package/dist/types/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.d.ts +4 -4
  68. package/dist/types/components.d.ts +55 -24
  69. package/dist/types/constants/game-thumbnail.d.ts +66 -66
  70. package/dist/types/models/casino-game-thumb-view.d.ts +107 -107
  71. package/dist/types/models/currency-symbols.d.ts +170 -170
  72. package/dist/types/stencil-public-runtime.d.ts +142 -33
  73. package/dist/types/utils/baccarat-board-svg.d.ts +29 -29
  74. package/loader/cdn.js +1 -3
  75. package/loader/index.cjs.js +1 -3
  76. package/loader/index.d.ts +13 -1
  77. package/loader/index.es2017.js +1 -3
  78. package/loader/index.js +1 -3
  79. package/loader/package.json +1 -0
  80. package/package.json +8 -8
  81. package/dist/assets/baccarat.svg +0 -43
  82. package/dist/assets/fav.svg +0 -9
  83. package/dist/assets/favorite.svg +0 -12
  84. package/dist/assets/seat.svg +0 -6
  85. package/dist/assets/unfav.svg +0 -20
  86. package/dist/casino-game-thumb-view/p-0bd6266b.entry.js +0 -1
  87. package/dist/casino-game-thumb-view/p-1bbf4b70.entry.js +0 -1
  88. package/dist/casino-game-thumb-view/p-2b51ea79.js +0 -1
  89. package/dist/casino-game-thumb-view/p-46dbb1cb.js +0 -1
  90. package/dist/casino-game-thumb-view/p-58134a43.entry.js +0 -7
  91. package/dist/casino-game-thumb-view/p-6a6b2a78.js +0 -8
  92. package/dist/casino-game-thumb-view/p-b153f943.entry.js +0 -1
  93. package/dist/casino-game-thumb-view/p-d961aec4.entry.js +0 -1
  94. package/dist/casino-game-thumb-view/p-eb23569d.entry.js +0 -1
  95. package/dist/cjs/game-thumbnail-31d518f0.js +0 -78
  96. package/dist/cjs/index-65a1d768.js +0 -1796
  97. package/dist/cjs/locale.utils-09067b6b.js +0 -132
  98. package/dist/components/casino-extrainfo-baccarat.d.ts +0 -11
  99. package/dist/components/casino-extrainfo-baccarat.js +0 -400
  100. package/dist/components/casino-extrainfo-blackjack.d.ts +0 -11
  101. package/dist/components/casino-extrainfo-blackjack.js +0 -92
  102. package/dist/components/casino-extrainfo-roulette.d.ts +0 -11
  103. package/dist/components/casino-extrainfo-roulette.js +0 -77
  104. package/dist/components/casino-game-thumb-view.d.ts +0 -11
  105. package/dist/components/casino-game-thumb-view.js +0 -1618
  106. package/dist/components/casino-game-thumbnail-betlimit.d.ts +0 -11
  107. package/dist/components/casino-game-thumbnail-betlimit.js +0 -6
  108. package/dist/components/casino-game-thumbnail-betlimit2.js +0 -227
  109. package/dist/components/casino-game-thumbnail-extrainfo.d.ts +0 -11
  110. package/dist/components/casino-game-thumbnail-extrainfo.js +0 -6
  111. package/dist/components/casino-game-thumbnail-extrainfo2.js +0 -93
  112. package/dist/components/casino-game-thumbnail-overlay.d.ts +0 -11
  113. package/dist/components/casino-game-thumbnail-overlay.js +0 -6
  114. package/dist/components/casino-game-thumbnail-overlay2.js +0 -68
  115. package/dist/components/casino-normal-game-thumbnail.d.ts +0 -11
  116. package/dist/components/casino-normal-game-thumbnail.js +0 -52
  117. package/dist/components/game-thumbnail.js +0 -72
  118. package/dist/components/index.d.ts +0 -26
  119. package/dist/components/index.js +0 -1
  120. package/dist/components/locale.utils.js +0 -130
  121. package/dist/esm/game-thumbnail-0a56ee03.js +0 -72
  122. package/dist/esm/index-1e44dd9f.js +0 -1769
  123. package/dist/esm/locale.utils-1c69bea3.js +0 -130
  124. package/dist/esm/polyfills/core-js.js +0 -11
  125. package/dist/esm/polyfills/css-shim.js +0 -1
  126. package/dist/esm/polyfills/dom.js +0 -79
  127. package/dist/esm/polyfills/es5-html-element.js +0 -1
  128. package/dist/esm/polyfills/index.js +0 -34
  129. package/dist/esm/polyfills/system.js +0 -6
  130. package/dist/esm/utils-e9314132.js +0 -5739
  131. package/dist/types/Users/adrian.pripon/Documents/Work/stencil/widgets-stencil/packages/casino-game-thumb-view/.stencil/packages/casino-game-thumb-view/stencil.config.d.ts +0 -2
  132. /package/dist/casino-game-thumb-view/{p-2d5f59fe.js → p-2d02adb1.js} +0 -0
@@ -0,0 +1 @@
1
+ export { CasinoGameThumbView } from './casino-game-thumb-view';
@@ -1,86 +1,84 @@
1
- import { Component, h, Prop } from '@stencil/core';
2
- import { numberWithSeparators } from '../../utils/utils';
3
- import { currenciesSymbols } from '../../models/currency-symbols';
1
+ import { h } from "@stencil/core";
2
+ import { numberWithSeparators } from "../../utils/utils";
3
+ import { currenciesSymbols } from "../../models/currency-symbols";
4
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;
5
+ constructor() {
6
+ this.defaultCurrency = 'EUR';
7
+ this.isBetLimitAvailable = false;
8
+ this.betLimit = undefined;
9
+ this.numberOfPlayers = undefined;
21
10
  }
22
- }
23
- render() {
24
- if (!this.isBetLimitAvailable) {
25
- return '';
11
+ getCurrencySymbols(currency) {
12
+ return currenciesSymbols[currency];
26
13
  }
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
- }
14
+ componentWillRender() {
15
+ if (this.betLimit) {
16
+ const limit = this.betLimit.max
17
+ ? this.betLimit.max
18
+ : this.betLimit.min || {};
19
+ this.isBetLimitAvailable = Object.keys(limit).length === 1;
20
+ this.currency = this.isBetLimitAvailable
21
+ ? Object.keys(limit)[0]
22
+ : this.defaultCurrency;
59
23
  }
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
24
  }
85
- }; }
25
+ render() {
26
+ if (!this.isBetLimitAvailable) {
27
+ return '';
28
+ }
29
+ return (h("p", { class: "LiveLimits" }, h("span", { class: "BetLimitLeft" }, this.getCurrencySymbols(this.currency), ' ', numberWithSeparators(this.betLimit.min[this.currency]), " -", ' ', numberWithSeparators(this.betLimit.max[this.currency])), (this.numberOfPlayers || this.numberOfPlayers == 0) && (h("span", { class: "BetLimitRight" }, h("svg", { fill: "white", width: "13", height: "13", viewBox: "0 0 13 14", xmlns: "http://www.w3.org/2000/svg" }, 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" })), h("span", { class: "NrOfPlayers" }, this.numberOfPlayers)))));
30
+ }
31
+ static get is() { return "casino-game-thumbnail-betlimit"; }
32
+ static get originalStyleUrls() {
33
+ return {
34
+ "$": ["casino-game-thumbnail-betlimit.scss"]
35
+ };
36
+ }
37
+ static get styleUrls() {
38
+ return {
39
+ "$": ["casino-game-thumbnail-betlimit.css"]
40
+ };
41
+ }
42
+ static get properties() {
43
+ return {
44
+ "betLimit": {
45
+ "type": "unknown",
46
+ "mutable": false,
47
+ "complexType": {
48
+ "original": "BetLimit",
49
+ "resolved": "BetLimit",
50
+ "references": {
51
+ "BetLimit": {
52
+ "location": "import",
53
+ "path": "../../models/casino-game-thumb-view",
54
+ "id": "../../../../packages/stencil/casino-game-thumb-view/src/models/casino-game-thumb-view.ts::BetLimit"
55
+ }
56
+ }
57
+ },
58
+ "required": false,
59
+ "optional": false,
60
+ "docs": {
61
+ "tags": [],
62
+ "text": "The betlimit of live game"
63
+ }
64
+ },
65
+ "numberOfPlayers": {
66
+ "type": "number",
67
+ "mutable": false,
68
+ "complexType": {
69
+ "original": "number",
70
+ "resolved": "number",
71
+ "references": {}
72
+ },
73
+ "required": false,
74
+ "optional": false,
75
+ "docs": {
76
+ "tags": [],
77
+ "text": "Number of players"
78
+ },
79
+ "attribute": "number-of-players",
80
+ "reflect": false
81
+ }
82
+ };
83
+ }
86
84
  }
@@ -1,155 +1,161 @@
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';
1
+ import { h } 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
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
- this.gameTag = this.gameInfo.gameTag;
16
- if (!this.gameInfo.details) {
17
- return;
7
+ constructor() {
8
+ this.isNewGame = false;
9
+ this.language = 'en';
10
+ this.betLimit = undefined;
11
+ this.gameInfo = undefined;
12
+ this.gameDetails = undefined;
18
13
  }
19
- this.gameDetails = this.gameInfo.details;
20
- this.isDouble = !this.gameDetails
21
- ? false
22
- : this.gameInfo.details.category.toLowerCase() ===
23
- WIDGETTYPE_GAMECATEGORY.doubleballroulette;
24
- this.gameTag = !this.gameDetails
25
- ? this.gameInfo.gameTag
26
- : ((_a = this.gameInfo.advancedTags) === null || _a === void 0 ? void 0 : _a.length) > 0
27
- ? addGameTag(this.gameInfo.advancedTags)
28
- : this.gameInfo.gameTag;
29
- this.betLimit = !this.gameDetails ? null : this.gameDetails.betLimit;
30
- this.initTimeProperties();
31
- }
32
- initTimeProperties() {
33
- var _a, _b, _c, _d, _e;
34
- //openHours.type: valid data: Bounded, FullTime
35
- if (((_b = (_a = this.gameDetails) === null || _a === void 0 ? void 0 : _a.openHours) === null || _b === void 0 ? void 0 : _b.type) === 'Bounded') {
36
- this.gameStartTime = (_d = (_c = this.gameDetails) === null || _c === void 0 ? void 0 : _c.openHours) === null || _d === void 0 ? void 0 : _d.value.startTime;
37
- this.gameTimeFormat =
38
- (_e = this.gameDetails) === null || _e === void 0 ? void 0 : _e.openHours.value.originalTimeFormat;
14
+ async onGameLoaded(gameInfo) {
15
+ var _a;
16
+ this.gameInfo = gameInfo;
17
+ this.isNewGame = this.gameInfo.isNew;
18
+ if (this.gameInfo.gameTag === 'false') {
19
+ this.gameInfo.gameTag = null;
20
+ }
21
+ this.gameTag = this.gameInfo.gameTag;
22
+ if (!this.gameInfo.details) {
23
+ return;
24
+ }
25
+ this.gameDetails = this.gameInfo.details;
26
+ this.isDouble = !this.gameDetails
27
+ ? false
28
+ : this.gameInfo.details.category.toLowerCase() ===
29
+ WIDGETTYPE_GAMECATEGORY.doubleballroulette;
30
+ this.gameTag = !this.gameDetails
31
+ ? this.gameInfo.gameTag
32
+ : ((_a = this.gameInfo.advancedTags) === null || _a === void 0 ? void 0 : _a.length) > 0
33
+ ? addGameTag(this.gameInfo.advancedTags)
34
+ : this.gameInfo.gameTag;
35
+ this.betLimit = !this.gameDetails ? null : this.gameDetails.betLimit;
36
+ this.initTimeProperties();
39
37
  }
40
- }
41
- async onGameDetailUpdated(details) {
42
- this.gameInfo.details = this.gameDetails = details;
43
- this.gameDetails = Object.assign({}, this.gameDetails);
44
- //openHours.type: valid data: Bouned, FullTime
45
- this.initTimeProperties();
46
- }
47
- render() {
48
- var _a, _b, _c;
49
- if (!this.gameInfo) {
50
- return '';
38
+ initTimeProperties() {
39
+ var _a, _b, _c, _d, _e;
40
+ //openHours.type: valid data: Bounded, FullTime
41
+ if (((_b = (_a = this.gameDetails) === null || _a === void 0 ? void 0 : _a.openHours) === null || _b === void 0 ? void 0 : _b.type) === 'Bounded') {
42
+ this.gameStartTime = (_d = (_c = this.gameDetails) === null || _c === void 0 ? void 0 : _c.openHours) === null || _d === void 0 ? void 0 : _d.value.startTime;
43
+ this.gameTimeFormat =
44
+ (_e = this.gameDetails) === null || _e === void 0 ? void 0 : _e.openHours.value.originalTimeFormat;
45
+ }
51
46
  }
52
- return (h("div", { class: "GameExtraInfo", part: "GameExtraInfo" },
53
- this.isNewGame && (h("span", { class: "GameExtraInfoLabel NewGameTag", part: "GameExtraInfoLabel NewGameTag" }, translate('new', this.language))),
54
- this.gameTag && (h("span", { class: "GameExtraInfoLabel PopularGameTag", part: "GameExtraInfoLabel PopularGameTag" }, this.gameTag)),
55
- 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' : ''}` },
56
- this.gameDetails.isOpen ? (h("slot", { name: "category-details" })) : (this.gameStartTime &&
57
- this.gameTimeFormat && (h("div", { class: "ClosedGame", part: "ClosedGame" },
58
- translate('opens', this.language),
59
- h("span", null,
60
- ' ',
61
- moment
62
- .utc(this.gameStartTime)
63
- .local()
64
- .format(this.gameTimeFormat),
65
- ' ')))),
66
- ((_a = this.gameDetails.dealer) === null || _a === void 0 ? void 0 : _a.DealerName) && (h("p", { class: "LiveLimits" },
67
- h("span", { class: "DealerName" },
68
- translate('dealer', this.language),
69
- ":",
70
- ' ', (_b = this.gameDetails) === null || _b === void 0 ? void 0 :
71
- _b.dealer.DealerName,
72
- ' '))),
73
- h("casino-game-thumbnail-betlimit", { betLimit: this.betLimit, numberOfPlayers: (_c = this.gameDetails) === null || _c === void 0 ? void 0 : _c.numberOfPlayers })))));
74
- }
75
- static get is() { return "casino-game-thumbnail-extrainfo"; }
76
- static get originalStyleUrls() { return {
77
- "$": ["casino-game-thumbnail-extrainfo.scss"]
78
- }; }
79
- static get styleUrls() { return {
80
- "$": ["casino-game-thumbnail-extrainfo.css"]
81
- }; }
82
- static get properties() { return {
83
- "language": {
84
- "type": "string",
85
- "mutable": false,
86
- "complexType": {
87
- "original": "string",
88
- "resolved": "string",
89
- "references": {}
90
- },
91
- "required": false,
92
- "optional": false,
93
- "docs": {
94
- "tags": [],
95
- "text": ""
96
- },
97
- "attribute": "language",
98
- "reflect": false,
99
- "defaultValue": "'en'"
47
+ async onGameDetailUpdated(details) {
48
+ this.gameInfo.details = this.gameDetails = details;
49
+ this.gameDetails = Object.assign({}, this.gameDetails);
50
+ //openHours.type: valid data: Bouned, FullTime
51
+ this.initTimeProperties();
100
52
  }
101
- }; }
102
- static get states() { return {
103
- "betLimit": {},
104
- "gameInfo": {},
105
- "gameDetails": {}
106
- }; }
107
- static get methods() { return {
108
- "onGameLoaded": {
109
- "complexType": {
110
- "signature": "(gameInfo: CasinoGameThumbnailInfo) => Promise<void>",
111
- "parameters": [{
112
- "tags": [],
113
- "text": ""
114
- }],
115
- "references": {
116
- "Promise": {
117
- "location": "global"
118
- },
119
- "CasinoGameThumbnailInfo": {
120
- "location": "import",
121
- "path": "../../models/casino-game-thumb-view"
122
- }
123
- },
124
- "return": "Promise<void>"
125
- },
126
- "docs": {
127
- "text": "",
128
- "tags": []
129
- }
130
- },
131
- "onGameDetailUpdated": {
132
- "complexType": {
133
- "signature": "(details: CasinoGameThumbnailDetails) => Promise<void>",
134
- "parameters": [{
135
- "tags": [],
136
- "text": ""
137
- }],
138
- "references": {
139
- "Promise": {
140
- "location": "global"
141
- },
142
- "CasinoGameThumbnailDetails": {
143
- "location": "import",
144
- "path": "../../models/casino-game-thumb-view"
145
- }
146
- },
147
- "return": "Promise<void>"
148
- },
149
- "docs": {
150
- "text": "",
151
- "tags": []
152
- }
53
+ render() {
54
+ var _a, _b, _c;
55
+ if (!this.gameInfo) {
56
+ return '';
57
+ }
58
+ return (h("div", { class: "GameExtraInfo", part: "GameExtraInfo" }, this.isNewGame && (h("span", { class: "GameExtraInfoLabel NewGameTag", part: "GameExtraInfoLabel NewGameTag" }, translate('new', this.language))), this.gameTag && (h("span", { class: "GameExtraInfoLabel PopularGameTag", part: "GameExtraInfoLabel PopularGameTag" }, this.gameTag)), 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' : ''}` }, this.gameDetails.isOpen ? (h("slot", { name: "category-details" })) : (this.gameStartTime &&
59
+ this.gameTimeFormat && (h("div", { class: "ClosedGame", part: "ClosedGame" }, translate('opens', this.language), h("span", null, ' ', moment
60
+ .utc(this.gameStartTime)
61
+ .local()
62
+ .format(this.gameTimeFormat), ' ')))), ((_a = this.gameDetails.dealer) === null || _a === void 0 ? void 0 : _a.DealerName) && (h("p", { class: "LiveLimits" }, h("span", { class: "DealerName" }, translate('dealer', this.language), ":", ' ', (_b = this.gameDetails) === null || _b === void 0 ? void 0 :
63
+ _b.dealer.DealerName, ' '))), h("casino-game-thumbnail-betlimit", { betLimit: this.betLimit, numberOfPlayers: (_c = this.gameDetails) === null || _c === void 0 ? void 0 : _c.numberOfPlayers })))));
64
+ }
65
+ static get is() { return "casino-game-thumbnail-extrainfo"; }
66
+ static get originalStyleUrls() {
67
+ return {
68
+ "$": ["casino-game-thumbnail-extrainfo.scss"]
69
+ };
70
+ }
71
+ static get styleUrls() {
72
+ return {
73
+ "$": ["casino-game-thumbnail-extrainfo.css"]
74
+ };
75
+ }
76
+ static get properties() {
77
+ return {
78
+ "language": {
79
+ "type": "string",
80
+ "mutable": false,
81
+ "complexType": {
82
+ "original": "string",
83
+ "resolved": "string",
84
+ "references": {}
85
+ },
86
+ "required": false,
87
+ "optional": false,
88
+ "docs": {
89
+ "tags": [],
90
+ "text": ""
91
+ },
92
+ "attribute": "language",
93
+ "reflect": false,
94
+ "defaultValue": "'en'"
95
+ }
96
+ };
97
+ }
98
+ static get states() {
99
+ return {
100
+ "betLimit": {},
101
+ "gameInfo": {},
102
+ "gameDetails": {}
103
+ };
104
+ }
105
+ static get methods() {
106
+ return {
107
+ "onGameLoaded": {
108
+ "complexType": {
109
+ "signature": "(gameInfo: CasinoGameThumbnailInfo) => Promise<void>",
110
+ "parameters": [{
111
+ "name": "gameInfo",
112
+ "type": "CasinoGameThumbnailInfo",
113
+ "docs": ""
114
+ }],
115
+ "references": {
116
+ "Promise": {
117
+ "location": "global",
118
+ "id": "global::Promise"
119
+ },
120
+ "CasinoGameThumbnailInfo": {
121
+ "location": "import",
122
+ "path": "../../models/casino-game-thumb-view",
123
+ "id": "../../../../packages/stencil/casino-game-thumb-view/src/models/casino-game-thumb-view.ts::CasinoGameThumbnailInfo"
124
+ }
125
+ },
126
+ "return": "Promise<void>"
127
+ },
128
+ "docs": {
129
+ "text": "",
130
+ "tags": []
131
+ }
132
+ },
133
+ "onGameDetailUpdated": {
134
+ "complexType": {
135
+ "signature": "(details: CasinoGameThumbnailDetails) => Promise<void>",
136
+ "parameters": [{
137
+ "name": "details",
138
+ "type": "CasinoGameThumbnailDetails",
139
+ "docs": ""
140
+ }],
141
+ "references": {
142
+ "Promise": {
143
+ "location": "global",
144
+ "id": "global::Promise"
145
+ },
146
+ "CasinoGameThumbnailDetails": {
147
+ "location": "import",
148
+ "path": "../../models/casino-game-thumb-view",
149
+ "id": "../../../../packages/stencil/casino-game-thumb-view/src/models/casino-game-thumb-view.ts::CasinoGameThumbnailDetails"
150
+ }
151
+ },
152
+ "return": "Promise<void>"
153
+ },
154
+ "docs": {
155
+ "text": "",
156
+ "tags": []
157
+ }
158
+ }
159
+ };
153
160
  }
154
- }; }
155
161
  }