@everymatrix/casino-game-thumb-view 1.31.2 → 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.
Files changed (131) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +3 -2
  3. package/dist/assets/baccarat.svg +0 -43
  4. package/dist/assets/fav.svg +0 -9
  5. package/dist/assets/favorite.svg +0 -12
  6. package/dist/assets/seat.svg +0 -6
  7. package/dist/assets/unfav.svg +0 -20
  8. package/dist/casino-game-thumb-view/casino-game-thumb-view.esm.js +0 -1
  9. package/dist/casino-game-thumb-view/index.esm.js +0 -0
  10. package/dist/casino-game-thumb-view/p-1bbf4b70.entry.js +0 -1
  11. package/dist/casino-game-thumb-view/p-1e63a1ab.js +0 -1
  12. package/dist/casino-game-thumb-view/p-2d5f59fe.js +0 -1
  13. package/dist/casino-game-thumb-view/p-42bf2034.entry.js +0 -1
  14. package/dist/casino-game-thumb-view/p-46dbb1cb.js +0 -1
  15. package/dist/casino-game-thumb-view/p-6a6b2a78.js +0 -8
  16. package/dist/casino-game-thumb-view/p-7ae107ed.entry.js +0 -1
  17. package/dist/casino-game-thumb-view/p-9cbfffbc.entry.js +0 -1
  18. package/dist/casino-game-thumb-view/p-d961aec4.entry.js +0 -1
  19. package/dist/casino-game-thumb-view/p-db43bb56.entry.js +0 -7
  20. package/dist/cjs/casino-extrainfo-baccarat.cjs.entry.js +0 -366
  21. package/dist/cjs/casino-extrainfo-blackjack.cjs.entry.js +0 -58
  22. package/dist/cjs/casino-extrainfo-roulette.cjs.entry.js +0 -45
  23. package/dist/cjs/casino-game-thumb-view.cjs.js +0 -19
  24. package/dist/cjs/casino-game-thumb-view_2.cjs.entry.js +0 -1612
  25. package/dist/cjs/casino-game-thumbnail-betlimit_2.cjs.entry.js +0 -278
  26. package/dist/cjs/casino-normal-game-thumbnail.cjs.entry.js +0 -23
  27. package/dist/cjs/game-thumbnail-31d518f0.js +0 -78
  28. package/dist/cjs/index-65a1d768.js +0 -1796
  29. package/dist/cjs/index.cjs.js +0 -2
  30. package/dist/cjs/loader.cjs.js +0 -21
  31. package/dist/cjs/locale.utils-aa160787.js +0 -132
  32. package/dist/cjs/utils-a0afc0a9.js +0 -5745
  33. package/dist/collection/collection-manifest.json +0 -19
  34. package/dist/collection/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.css +0 -116
  35. package/dist/collection/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.js +0 -240
  36. package/dist/collection/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.css +0 -64
  37. package/dist/collection/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.js +0 -119
  38. package/dist/collection/components/casino-extrainfo-roulette/casino-extrainfo-roulette.css +0 -40
  39. package/dist/collection/components/casino-extrainfo-roulette/casino-extrainfo-roulette.js +0 -123
  40. package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.css +0 -361
  41. package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.js +0 -1064
  42. package/dist/collection/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.css +0 -3
  43. package/dist/collection/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.js +0 -86
  44. package/dist/collection/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.css +0 -154
  45. package/dist/collection/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.js +0 -158
  46. package/dist/collection/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.css +0 -58
  47. package/dist/collection/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.js +0 -209
  48. package/dist/collection/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.css +0 -3
  49. package/dist/collection/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.js +0 -62
  50. package/dist/collection/constants/game-thumbnail.js +0 -85
  51. package/dist/collection/index.js +0 -1
  52. package/dist/collection/models/casino-game-thumb-view.js +0 -12
  53. package/dist/collection/models/currency-symbols.js +0 -173
  54. package/dist/collection/static/baccarat.svg +0 -43
  55. package/dist/collection/static/fav.svg +0 -9
  56. package/dist/collection/static/favorite.svg +0 -12
  57. package/dist/collection/static/seat.svg +0 -6
  58. package/dist/collection/static/unfav.svg +0 -20
  59. package/dist/collection/utils/baccarat-board-svg.js +0 -234
  60. package/dist/collection/utils/locale.utils.js +0 -128
  61. package/dist/collection/utils/utils.js +0 -65
  62. package/dist/components/casino-extrainfo-baccarat.d.ts +0 -11
  63. package/dist/components/casino-extrainfo-baccarat.js +0 -400
  64. package/dist/components/casino-extrainfo-blackjack.d.ts +0 -11
  65. package/dist/components/casino-extrainfo-blackjack.js +0 -92
  66. package/dist/components/casino-extrainfo-roulette.d.ts +0 -11
  67. package/dist/components/casino-extrainfo-roulette.js +0 -78
  68. package/dist/components/casino-game-thumb-view.d.ts +0 -11
  69. package/dist/components/casino-game-thumb-view.js +0 -1625
  70. package/dist/components/casino-game-thumbnail-betlimit.d.ts +0 -11
  71. package/dist/components/casino-game-thumbnail-betlimit.js +0 -6
  72. package/dist/components/casino-game-thumbnail-betlimit2.js +0 -227
  73. package/dist/components/casino-game-thumbnail-extrainfo.d.ts +0 -11
  74. package/dist/components/casino-game-thumbnail-extrainfo.js +0 -6
  75. package/dist/components/casino-game-thumbnail-extrainfo2.js +0 -96
  76. package/dist/components/casino-game-thumbnail-overlay.d.ts +0 -11
  77. package/dist/components/casino-game-thumbnail-overlay.js +0 -6
  78. package/dist/components/casino-game-thumbnail-overlay2.js +0 -69
  79. package/dist/components/casino-normal-game-thumbnail.d.ts +0 -11
  80. package/dist/components/casino-normal-game-thumbnail.js +0 -52
  81. package/dist/components/game-thumbnail.js +0 -72
  82. package/dist/components/index.d.ts +0 -26
  83. package/dist/components/index.js +0 -1
  84. package/dist/components/locale.utils.js +0 -130
  85. package/dist/components/utils.js +0 -5739
  86. package/dist/esm/casino-extrainfo-baccarat.entry.js +0 -362
  87. package/dist/esm/casino-extrainfo-blackjack.entry.js +0 -54
  88. package/dist/esm/casino-extrainfo-roulette.entry.js +0 -41
  89. package/dist/esm/casino-game-thumb-view.js +0 -17
  90. package/dist/esm/casino-game-thumb-view_2.entry.js +0 -1607
  91. package/dist/esm/casino-game-thumbnail-betlimit_2.entry.js +0 -273
  92. package/dist/esm/casino-normal-game-thumbnail.entry.js +0 -19
  93. package/dist/esm/game-thumbnail-0a56ee03.js +0 -72
  94. package/dist/esm/index-1e44dd9f.js +0 -1769
  95. package/dist/esm/index.js +0 -1
  96. package/dist/esm/loader.js +0 -17
  97. package/dist/esm/locale.utils-e0cf897e.js +0 -130
  98. package/dist/esm/polyfills/core-js.js +0 -11
  99. package/dist/esm/polyfills/css-shim.js +0 -1
  100. package/dist/esm/polyfills/dom.js +0 -79
  101. package/dist/esm/polyfills/es5-html-element.js +0 -1
  102. package/dist/esm/polyfills/index.js +0 -34
  103. package/dist/esm/polyfills/system.js +0 -6
  104. package/dist/esm/utils-e9314132.js +0 -5739
  105. package/dist/index.cjs.js +0 -1
  106. package/dist/index.js +0 -1
  107. package/dist/stencil.config.js +0 -40
  108. package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/casino-game-thumb-view/.stencil/packages/casino-game-thumb-view/stencil.config.d.ts +0 -2
  109. package/dist/types/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.d.ts +0 -40
  110. package/dist/types/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.d.ts +0 -36
  111. package/dist/types/components/casino-extrainfo-roulette/casino-extrainfo-roulette.d.ts +0 -21
  112. package/dist/types/components/casino-game-thumb-view/casino-game-thumb-view.d.ts +0 -221
  113. package/dist/types/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.d.ts +0 -17
  114. package/dist/types/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.d.ts +0 -16
  115. package/dist/types/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.d.ts +0 -31
  116. package/dist/types/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.d.ts +0 -7
  117. package/dist/types/components.d.ts +0 -480
  118. package/dist/types/constants/game-thumbnail.d.ts +0 -83
  119. package/dist/types/index.d.ts +0 -1
  120. package/dist/types/models/casino-game-thumb-view.d.ts +0 -132
  121. package/dist/types/models/currency-symbols.d.ts +0 -172
  122. package/dist/types/stencil-public-runtime.d.ts +0 -1565
  123. package/dist/types/utils/baccarat-board-svg.d.ts +0 -31
  124. package/dist/types/utils/locale.utils.d.ts +0 -1
  125. package/dist/types/utils/utils.d.ts +0 -19
  126. package/loader/cdn.js +0 -3
  127. package/loader/index.cjs.js +0 -3
  128. package/loader/index.d.ts +0 -12
  129. package/loader/index.es2017.js +0 -3
  130. package/loader/index.js +0 -4
  131. package/loader/package.json +0 -10
@@ -1,278 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-65a1d768.js');
6
- const utils = require('./utils-a0afc0a9.js');
7
- const locale_utils = require('./locale.utils-aa160787.js');
8
- const gameThumbnail = require('./game-thumbnail-31d518f0.js');
9
-
10
- /* eslint-disable quote-props */
11
- const currenciesSymbols = {
12
- 'AED': 'د.إ',
13
- 'AFN': '؋',
14
- 'ALL': 'L',
15
- 'AMD': '֏',
16
- 'ANG': 'ƒ',
17
- 'AOA': 'Kz',
18
- 'ARS': '$',
19
- 'AUD': '$',
20
- 'AWG': 'ƒ',
21
- 'AZN': 'ман',
22
- 'BAM': 'KM',
23
- 'BBD': '$',
24
- 'BDT': '৳',
25
- 'BGN': 'лв',
26
- 'BHD': '.د.ب',
27
- 'BIF': 'FBu',
28
- 'BMD': '$',
29
- 'BND': '$',
30
- 'BOB': '$b',
31
- 'BRL': 'R$',
32
- 'BSD': '$',
33
- 'BTC': '฿',
34
- 'BTN': 'Nu.',
35
- 'BWP': 'P',
36
- 'BYR': 'p.',
37
- 'BZD': 'BZ$',
38
- 'CAD': '$',
39
- 'CDF': 'FC',
40
- 'CHF': 'CHF',
41
- 'CLP': '$',
42
- 'CNY': '¥',
43
- 'COP': '$',
44
- 'CRC': '₡',
45
- 'CUC': '$',
46
- 'CUP': '₱',
47
- 'CVE': '$',
48
- 'CZK': 'Kč',
49
- 'DJF': 'Fdj',
50
- 'DKK': 'kr',
51
- 'DOP': 'RD$',
52
- 'DZD': 'دج',
53
- 'EEK': 'kr',
54
- 'EGP': '£',
55
- 'ERN': 'Nfk',
56
- 'ETB': 'Br',
57
- 'ETH': 'Ξ',
58
- 'EUR': '€',
59
- 'FJD': '$',
60
- 'FKP': '£',
61
- 'GBP': '£',
62
- 'GEL': '₾',
63
- 'GGP': '£',
64
- 'GHC': '₵',
65
- 'GHS': 'GH₵',
66
- 'GIP': '£',
67
- 'GMD': 'D',
68
- 'GNF': 'FG',
69
- 'GTQ': 'Q',
70
- 'GYD': '$',
71
- 'HKD': '$',
72
- 'HNL': 'L',
73
- 'HRK': 'kn',
74
- 'HTG': 'G',
75
- 'HUF': 'Ft',
76
- 'IDR': 'Rp',
77
- 'ILS': '₪',
78
- 'IMP': '£',
79
- 'INR': '₹',
80
- 'IQD': 'ع.د',
81
- 'IRR': '﷼',
82
- 'ISK': 'kr',
83
- 'JEP': '£',
84
- 'JMD': 'J$',
85
- 'JOD': 'JD',
86
- 'JPY': '¥',
87
- 'KES': 'KSh',
88
- 'KGS': 'лв',
89
- 'KHR': '៛',
90
- 'KMF': 'CF',
91
- 'KPW': '₩',
92
- 'KRW': '₩',
93
- 'KWD': 'KD',
94
- 'KYD': '$',
95
- 'KZT': 'лв',
96
- 'LAK': '₭',
97
- 'LBP': '£',
98
- 'LKR': '₨',
99
- 'LRD': '$',
100
- 'LSL': 'M',
101
- 'LTC': 'Ł',
102
- 'LTL': 'Lt',
103
- 'LVL': 'Ls',
104
- 'LYD': 'LD',
105
- 'MAD': 'MAD',
106
- 'MDL': 'lei',
107
- 'MGA': 'Ar',
108
- 'MKD': 'ден',
109
- 'MMK': 'K',
110
- 'MNT': '₮',
111
- 'MOP': 'MOP$',
112
- 'MRO': 'UM',
113
- 'MUR': '₨',
114
- 'MVR': 'Rf',
115
- 'MWK': 'MK',
116
- 'MXN': '$',
117
- 'MYR': 'RM',
118
- 'MZN': 'MT',
119
- 'NAD': '$',
120
- 'NGN': '₦',
121
- 'NIO': 'C$',
122
- 'NOK': 'kr',
123
- 'NPR': '₨',
124
- 'NZD': '$',
125
- 'OMR': '﷼',
126
- 'PAB': 'B/.',
127
- 'PEN': 'S/.',
128
- 'PGK': 'K',
129
- 'PHP': '₱',
130
- 'PKR': '₨',
131
- 'PLN': 'zł',
132
- 'PYG': 'Gs',
133
- 'QAR': '﷼',
134
- 'RMB': '¥',
135
- 'RON': 'lei',
136
- 'RSD': 'Дин.',
137
- 'RUB': '₽',
138
- 'RWF': 'R₣',
139
- 'SAR': '﷼',
140
- 'SBD': '$',
141
- 'SCR': '₨',
142
- 'SDG': 'ج.س.',
143
- 'SEK': 'kr',
144
- 'SGD': '$',
145
- 'SHP': '£',
146
- 'SLL': 'Le',
147
- 'SOS': 'S',
148
- 'SRD': '$',
149
- 'SSP': '£',
150
- 'STD': 'Db',
151
- 'SVC': '$',
152
- 'SYP': '£',
153
- 'SZL': 'E',
154
- 'THB': '฿',
155
- 'TJS': 'SM',
156
- 'TMT': 'T',
157
- 'TND': 'د.ت',
158
- 'TOP': 'T$',
159
- 'TRL': '₤',
160
- 'TRY': '₺',
161
- 'TTD': 'TT$',
162
- 'TVD': '$',
163
- 'TWD': 'NT$',
164
- 'TZS': 'TSh',
165
- 'UAH': '₴',
166
- 'UGX': 'USh',
167
- 'USD': '$',
168
- 'UYU': '$U',
169
- 'UZS': 'лв',
170
- 'VEF': 'Bs',
171
- 'VND': '₫',
172
- 'VUV': 'VT',
173
- 'WST': 'WS$',
174
- 'XAF': 'FCFA',
175
- 'XBT': 'Ƀ',
176
- 'XCD': '$',
177
- 'XOF': 'CFA',
178
- 'XPF': '₣',
179
- 'YER': '﷼',
180
- 'ZAR': 'R',
181
- 'ZWD': 'Z$',
182
- };
183
-
184
- const casinoGameThumbnailBetlimitCss = ":host{display:block}";
185
-
186
- const CasinoGameThumbnailBetlimit = class {
187
- constructor(hostRef) {
188
- index.registerInstance(this, hostRef);
189
- this.defaultCurrency = 'EUR';
190
- this.isBetLimitAvailable = false;
191
- }
192
- getCurrencySymbols(currency) {
193
- return currenciesSymbols[currency];
194
- }
195
- componentWillRender() {
196
- if (this.betLimit) {
197
- const limit = this.betLimit.max
198
- ? this.betLimit.max
199
- : this.betLimit.min || {};
200
- this.isBetLimitAvailable = Object.keys(limit).length === 1;
201
- this.currency = this.isBetLimitAvailable
202
- ? Object.keys(limit)[0]
203
- : this.defaultCurrency;
204
- }
205
- }
206
- render() {
207
- if (!this.isBetLimitAvailable) {
208
- return '';
209
- }
210
- return (index.h("p", { class: "LiveLimits" }, index.h("span", { class: "BetLimitLeft" }, this.getCurrencySymbols(this.currency), ' ', utils.numberWithSeparators(this.betLimit.min[this.currency]), " -", ' ', utils.numberWithSeparators(this.betLimit.max[this.currency])), (this.numberOfPlayers || this.numberOfPlayers == 0) && (index.h("span", { class: "BetLimitRight" }, index.h("svg", { fill: "white", width: "13", height: "13", viewBox: "0 0 13 14", xmlns: "http://www.w3.org/2000/svg" }, index.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" })), index.h("span", { class: "NrOfPlayers" }, this.numberOfPlayers)))));
211
- }
212
- };
213
- CasinoGameThumbnailBetlimit.style = casinoGameThumbnailBetlimitCss;
214
-
215
- const casinoGameThumbnailExtrainfoCss = ":host{display:block;font-family:system-ui, -apple-system, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.LiveProps{display:flex;flex-direction:column;position:absolute;bottom:8px;left:-8px;right:0;width:100%;padding:0;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%);color:var(--emfe-w-color-white, #FFFFFF);opacity:1;font-size:14px}.GameExtraInfo{display:block;position:absolute;width:100%;height:100%;top:8px;left:8px;z-index:0}.GameExtraInfoLabel{font-size:11px;padding:3px;background-color:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-weight:bold;text-transform:uppercase;border-radius:5px}.ListGame .GameInnerContainer .GameExtraInfo{z-index:10}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emfe-w-color-white, #FFFFFF);font-size:18px}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .LiveIcons{position:relative;display:flex;padding:0 10px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:flex-start;min-height:auto;margin-bottom:5px}.ListGame .GameInnerContainer .LiveIcons:first-child{margin-left:0}.ListGame .GameInnerContainer .LiveIcons:last-child{margin-right:0}.ListGame .GameInnerContainer .LiveIcons.Black,.ListGame .GameInnerContainer .LiveIcons.Red,.ListGame .GameInnerContainer .LiveIcons.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;padding:2px;margin:0 6px 0 1px;font-size:14px;text-align:center}.ListGame .GameInnerContainer .LiveIcons .LatestResult.FirstElementAnimated{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{min-width:24px;padding:4px}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black{background:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red{background:red}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{background:#56A80A}.ListGame .GameInnerContainer .LiveIcons .Double{display:flex;flex-direction:column}.ListGame .GameInnerContainer .LiveIcons .Double .LatestResult:first-child{margin-bottom:10px}.ListGame .GameInnerContainer .LiveIcons .Double:first-child .LatestResult{margin-left:0;margin-bottom:0}.ListGame .GameInnerContainer .LiveIcons .Double:last-child .LatestResult{margin-right:0}.ListGame .GameInnerContainer .LiveIcons .Black,.ListGame .GameInnerContainer .LiveIcons .Red,.ListGame .GameInnerContainer .LiveIcons .Green{background-color:transparent}.ListGame .GameInnerContainer .LiveIcons .Black{color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .Red{color:red}.ListGame .GameInnerContainer .LiveIcons .Green{color:#56A80A}.ListGame .GameInnerContainer .LiveLimits{opacity:1;display:flex;flex-direction:row;justify-content:space-between;padding:2px 10px 5px;background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);font-weight:normal;font-size:12px}.ListGame .GameInnerContainer .LiveLimits span{font-size:12px;vertical-align:top}";
216
-
217
- const CasinoGameThumbnailExtrainfo = class {
218
- constructor(hostRef) {
219
- index.registerInstance(this, hostRef);
220
- this.language = 'en';
221
- this.isNewGame = false;
222
- }
223
- async onGameLoaded(gameInfo) {
224
- var _a;
225
- this.gameInfo = gameInfo;
226
- this.isNewGame = this.gameInfo.isNew;
227
- if (this.gameInfo.gameTag === 'false') {
228
- this.gameInfo.gameTag = null;
229
- }
230
- this.gameTag = this.gameInfo.gameTag;
231
- if (!this.gameInfo.details) {
232
- return;
233
- }
234
- this.gameDetails = this.gameInfo.details;
235
- this.isDouble = !this.gameDetails
236
- ? false
237
- : this.gameInfo.details.category.toLowerCase() ===
238
- gameThumbnail.WIDGETTYPE_GAMECATEGORY.doubleballroulette;
239
- this.gameTag = !this.gameDetails
240
- ? this.gameInfo.gameTag
241
- : ((_a = this.gameInfo.advancedTags) === null || _a === void 0 ? void 0 : _a.length) > 0
242
- ? utils.addGameTag(this.gameInfo.advancedTags)
243
- : this.gameInfo.gameTag;
244
- this.betLimit = !this.gameDetails ? null : this.gameDetails.betLimit;
245
- this.initTimeProperties();
246
- }
247
- initTimeProperties() {
248
- var _a, _b, _c, _d, _e;
249
- //openHours.type: valid data: Bounded, FullTime
250
- if (((_b = (_a = this.gameDetails) === null || _a === void 0 ? void 0 : _a.openHours) === null || _b === void 0 ? void 0 : _b.type) === 'Bounded') {
251
- this.gameStartTime = (_d = (_c = this.gameDetails) === null || _c === void 0 ? void 0 : _c.openHours) === null || _d === void 0 ? void 0 : _d.value.startTime;
252
- this.gameTimeFormat =
253
- (_e = this.gameDetails) === null || _e === void 0 ? void 0 : _e.openHours.value.originalTimeFormat;
254
- }
255
- }
256
- async onGameDetailUpdated(details) {
257
- this.gameInfo.details = this.gameDetails = details;
258
- this.gameDetails = Object.assign({}, this.gameDetails);
259
- //openHours.type: valid data: Bouned, FullTime
260
- this.initTimeProperties();
261
- }
262
- render() {
263
- var _a, _b, _c;
264
- if (!this.gameInfo) {
265
- return '';
266
- }
267
- return (index.h("div", { class: "GameExtraInfo", part: "GameExtraInfo" }, this.isNewGame && (index.h("span", { class: "GameExtraInfoLabel NewGameTag", part: "GameExtraInfoLabel NewGameTag" }, locale_utils.translate('new', this.language))), this.gameTag && (index.h("span", { class: "GameExtraInfoLabel PopularGameTag", part: "GameExtraInfoLabel PopularGameTag" }, this.gameTag)), this.gameDetails && (index.h("div", { class: `GameProp LiveProps ${gameThumbnail.WIDGETTYPE_CLASS[this.gameDetails.category.toLowerCase()]} ${this.isDouble ? ' Double' : ''}`, part: `GameProp LiveProps ${gameThumbnail.WIDGETTYPE_CLASS[this.gameDetails.category.toLowerCase()]} ${this.isDouble ? ' Double' : ''}` }, this.gameDetails.isOpen ? (index.h("slot", { name: "category-details" })) : (this.gameStartTime &&
268
- this.gameTimeFormat && (index.h("div", { class: "ClosedGame", part: "ClosedGame" }, locale_utils.translate('opens', this.language), index.h("span", null, ' ', utils.hooks
269
- .utc(this.gameStartTime)
270
- .local()
271
- .format(this.gameTimeFormat), ' ')))), ((_a = this.gameDetails.dealer) === null || _a === void 0 ? void 0 : _a.DealerName) && (index.h("p", { class: "LiveLimits" }, index.h("span", { class: "DealerName" }, locale_utils.translate('dealer', this.language), ":", ' ', (_b = this.gameDetails) === null || _b === void 0 ? void 0 :
272
- _b.dealer.DealerName, ' '))), index.h("casino-game-thumbnail-betlimit", { betLimit: this.betLimit, numberOfPlayers: (_c = this.gameDetails) === null || _c === void 0 ? void 0 : _c.numberOfPlayers })))));
273
- }
274
- };
275
- CasinoGameThumbnailExtrainfo.style = casinoGameThumbnailExtrainfoCss;
276
-
277
- exports.casino_game_thumbnail_betlimit = CasinoGameThumbnailBetlimit;
278
- exports.casino_game_thumbnail_extrainfo = CasinoGameThumbnailExtrainfo;
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-65a1d768.js');
6
-
7
- const casinoNormalGameThumbnailCss = ":host{display:block}";
8
-
9
- const CasinoNormalGameThumbnail = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- }
13
- async onGameLoaded(gameInfo) {
14
- var _a;
15
- (_a = this.infoWrapperRef) === null || _a === void 0 ? void 0 : _a.onGameLoaded(gameInfo);
16
- }
17
- render() {
18
- return (index.h(index.Host, null, index.h("casino-game-thumbnail-extrainfo", { ref: (el) => (this.infoWrapperRef = el), language: this.language })));
19
- }
20
- };
21
- CasinoNormalGameThumbnail.style = casinoNormalGameThumbnailCss;
22
-
23
- exports.casino_normal_game_thumbnail = CasinoNormalGameThumbnail;
@@ -1,78 +0,0 @@
1
- 'use strict';
2
-
3
- const DEFAULT_BLACKJACK_TOTAL_SEATS = 7;
4
- const ROULETTE_COLOR_MAP = {
5
- 1: 'Red',
6
- 3: 'Red',
7
- 5: 'Red',
8
- 7: 'Red',
9
- 9: 'Red',
10
- 12: 'Red',
11
- 14: 'Red',
12
- 16: 'Red',
13
- 18: 'Red',
14
- 19: 'Red',
15
- 21: 'Red',
16
- 23: 'Red',
17
- 25: 'Red',
18
- 27: 'Red',
19
- 30: 'Red',
20
- 32: 'Red',
21
- 34: 'Red',
22
- 36: 'Red',
23
- 2: 'Black',
24
- 4: 'Black',
25
- 6: 'Black',
26
- 8: 'Black',
27
- 10: 'Black',
28
- 11: 'Black',
29
- 13: 'Black',
30
- 15: 'Black',
31
- 17: 'Black',
32
- 20: 'Black',
33
- 22: 'Black',
34
- 24: 'Black',
35
- 26: 'Black',
36
- 28: 'Black',
37
- 29: 'Black',
38
- 31: 'Black',
39
- 33: 'Black',
40
- 35: 'Black',
41
- 0: 'Green',
42
- '00': 'Green',
43
- };
44
- exports.GAME_CATEGORY = void 0;
45
- (function (GAME_CATEGORY) {
46
- GAME_CATEGORY["BLACKJACK"] = "blackjack";
47
- GAME_CATEGORY["ROULETTE"] = "roulette";
48
- GAME_CATEGORY["DOUBLEBALL_ROULETTE"] = "doubleballroulette";
49
- GAME_CATEGORY["BACCARAT"] = "baccarat";
50
- })(exports.GAME_CATEGORY || (exports.GAME_CATEGORY = {}));
51
- exports.GAME_TYPE = void 0;
52
- (function (GAME_TYPE) {
53
- GAME_TYPE["NORMAL_CASINO"] = "casino-games";
54
- GAME_TYPE["LIVE_CASINO"] = "live-casino-tables";
55
- GAME_TYPE["OTHER"] = "";
56
- })(exports.GAME_TYPE || (exports.GAME_TYPE = {}));
57
- const WIDGETTYPE_GAMECATEGORY = {
58
- 'roulette': 'roulette',
59
- 'doubleballroulette': 'doubleballroulette',
60
- 'blackjack': 'blackjack',
61
- 'baccarat': 'baccarat'
62
- };
63
- const WIDGETTYPE_CLASS = {
64
- 'roulette': 'RoulleteProps',
65
- 'doubleballroulette': 'RoulleteProps',
66
- 'blackjack': 'BlackjackDisplay',
67
- 'baccarat': 'BaccaratProps'
68
- };
69
- const WINNER_COLOR = {
70
- 'banker': 'red',
71
- 'player': 'blue'
72
- };
73
-
74
- exports.DEFAULT_BLACKJACK_TOTAL_SEATS = DEFAULT_BLACKJACK_TOTAL_SEATS;
75
- exports.ROULETTE_COLOR_MAP = ROULETTE_COLOR_MAP;
76
- exports.WIDGETTYPE_CLASS = WIDGETTYPE_CLASS;
77
- exports.WIDGETTYPE_GAMECATEGORY = WIDGETTYPE_GAMECATEGORY;
78
- exports.WINNER_COLOR = WINNER_COLOR;