@everymatrix/bonus-powerups-ingame-detail 0.0.1

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 (69) hide show
  1. package/dist/bonus-powerups-ingame-detail/app-globals-0f993ce5.js +1 -0
  2. package/dist/bonus-powerups-ingame-detail/bonus-powerups-ingame-detail-78a50d3f.js +11 -0
  3. package/dist/bonus-powerups-ingame-detail/bonus-powerups-ingame-detail.esm.js +1 -0
  4. package/dist/bonus-powerups-ingame-detail/bonus-powerups-ingame-detail_5.entry.js +1 -0
  5. package/dist/bonus-powerups-ingame-detail/index-334a1114.js +2 -0
  6. package/dist/bonus-powerups-ingame-detail/index.esm.js +1 -0
  7. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  8. package/dist/cjs/bonus-powerups-ingame-detail-33f5b380.js +11826 -0
  9. package/dist/cjs/bonus-powerups-ingame-detail.cjs.js +25 -0
  10. package/dist/cjs/bonus-powerups-ingame-detail_5.cjs.entry.js +334 -0
  11. package/dist/cjs/index-956ad213.js +1306 -0
  12. package/dist/cjs/index.cjs.js +10 -0
  13. package/dist/cjs/loader.cjs.js +15 -0
  14. package/dist/collection/assets/Arrow Curve Left.svg +11 -0
  15. package/dist/collection/assets/double-right.svg +4 -0
  16. package/dist/collection/assets/gotoPage.svg +3 -0
  17. package/dist/collection/assets/return.svg +15 -0
  18. package/dist/collection/collection-manifest.json +27 -0
  19. package/dist/collection/components/bonus-powerups-ingame-detail/bonus-powerups-ingame-detail.css +304 -0
  20. package/dist/collection/components/bonus-powerups-ingame-detail/bonus-powerups-ingame-detail.js +483 -0
  21. package/dist/collection/components/bonus-powerups-ingame-detail/index.js +1 -0
  22. package/dist/collection/components/smart-loader/smart-loader.css +84 -0
  23. package/dist/collection/components/smart-loader/smart-loader.js +17 -0
  24. package/dist/collection/components/time-count/time-count.js +159 -0
  25. package/dist/collection/index.js +1 -0
  26. package/dist/collection/utils/constants.js +10 -0
  27. package/dist/collection/utils/locale.utils.js +46 -0
  28. package/dist/collection/utils/utils.js +11 -0
  29. package/dist/esm/app-globals-0f993ce5.js +3 -0
  30. package/dist/esm/bonus-powerups-ingame-detail-78a50d3f.js +11822 -0
  31. package/dist/esm/bonus-powerups-ingame-detail.js +20 -0
  32. package/dist/esm/bonus-powerups-ingame-detail_5.entry.js +327 -0
  33. package/dist/esm/index-334a1114.js +1277 -0
  34. package/dist/esm/index.js +2 -0
  35. package/dist/esm/loader.js +11 -0
  36. package/dist/index.cjs.js +1 -0
  37. package/dist/index.js +1 -0
  38. package/dist/stencil.config.dev.js +20 -0
  39. package/dist/stencil.config.js +20 -0
  40. package/dist/storybook/main.js +43 -0
  41. package/dist/storybook/preview.js +9 -0
  42. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  43. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/libs/common/src/types/casino/powerups.d.ts +60 -0
  44. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/packages/stencil/bonus-powerups-ingame-detail/stencil.config.d.ts +2 -0
  45. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/packages/stencil/bonus-powerups-ingame-detail/stencil.config.dev.d.ts +2 -0
  46. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/packages/stencil/bonus-powerups-ingame-detail/storybook/main.d.ts +3 -0
  47. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/packages/stencil/bonus-powerups-ingame-detail/storybook/preview.d.ts +70 -0
  48. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/tools/plugins/index.d.ts +4 -0
  49. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
  50. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  51. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  52. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  53. package/dist/types/components/bonus-powerups-ingame-detail/bonus-powerups-ingame-detail.d.ts +40 -0
  54. package/dist/types/components/bonus-powerups-ingame-detail/index.d.ts +1 -0
  55. package/dist/types/components/smart-loader/smart-loader.d.ts +3 -0
  56. package/dist/types/components/time-count/time-count.d.ts +17 -0
  57. package/dist/types/components.d.ts +123 -0
  58. package/dist/types/index.d.ts +1 -0
  59. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  60. package/dist/types/utils/constants.d.ts +9 -0
  61. package/dist/types/utils/locale.utils.d.ts +2 -0
  62. package/dist/types/utils/utils.d.ts +2 -0
  63. package/loader/cdn.js +1 -0
  64. package/loader/index.cjs.js +1 -0
  65. package/loader/index.d.ts +24 -0
  66. package/loader/index.es2017.js +1 -0
  67. package/loader/index.js +2 -0
  68. package/loader/package.json +11 -0
  69. package/package.json +27 -0
@@ -0,0 +1,483 @@
1
+ import { h } from "@stencil/core";
2
+ import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
3
+ import { getTranslations, translate } from "../../utils/locale.utils";
4
+ import { PowerUpStatus } from "../../../../../../../../libs/common/src/types/casino/powerups";
5
+ import { powerUpGameSearchConditions, powerUpSearchConditions } from "../../utils/constants";
6
+ import "../../../../../ui-image/dist/types/index";
7
+ import ReturnSvg from "../../assets/return.svg";
8
+ import GotopageSvg from "../../assets/gotoPage.svg";
9
+ import DetailSvg from "../../assets/double-right.svg";
10
+ import { getActivedExpireTime } from "../../utils/utils";
11
+ import moment from "moment";
12
+ export class BonusPowerupsIngameDetail {
13
+ constructor() {
14
+ this.mbSource = undefined;
15
+ this.clientStyling = undefined;
16
+ this.clientStylingUrl = undefined;
17
+ this.translationUrl = undefined;
18
+ this.language = 'en';
19
+ this.endpoint = undefined;
20
+ this.session = undefined;
21
+ this.pid = undefined;
22
+ this.powerupId = undefined;
23
+ this.isPowering = false;
24
+ this.powerUp = null;
25
+ this.powerUpGames = undefined;
26
+ this.isLoading = true;
27
+ this.isLoadingGames = true;
28
+ this.limit = 20;
29
+ }
30
+ showPowerupDetailsHandler(event) {
31
+ this.pid = event.detail.id;
32
+ }
33
+ async loadPowerUpById() {
34
+ if (!this.endpoint || !this.session) {
35
+ return;
36
+ }
37
+ this.isLoading = true;
38
+ if (this.abortController) {
39
+ this.abortController.abort();
40
+ }
41
+ this.abortController = new AbortController();
42
+ try {
43
+ const url = new URL(`${this.endpoint}/v1/elevate/powerups`);
44
+ const options = {
45
+ headers: {
46
+ 'Content-Type': 'application/json',
47
+ 'x-SessionId': this.session
48
+ },
49
+ method: 'GET',
50
+ signal: this.abortController.signal
51
+ };
52
+ url.searchParams.append('filter', `id=${this.pid}`);
53
+ Object.entries(powerUpSearchConditions).forEach(([key, value]) => {
54
+ url.searchParams.append(key, value);
55
+ });
56
+ const response = await fetch(url.href, options);
57
+ if (!response.ok) {
58
+ throw new Error(`HTTP error! status: ${response.status}`);
59
+ }
60
+ const { data } = await response.json();
61
+ if (data.length) {
62
+ this.powerUp = data[0];
63
+ this.powerUpGames = this.powerUp.games;
64
+ this.powerupId = this.powerUp.powerUpID;
65
+ }
66
+ this.loadGamesByPID();
67
+ }
68
+ catch (e) {
69
+ console.error('Failed to load Power-ups:', e);
70
+ if (e.errorCode === 4003) {
71
+ window.postMessage({ 'type': e.errorMessage });
72
+ }
73
+ }
74
+ finally {
75
+ this.isLoading = false;
76
+ }
77
+ }
78
+ loadGamesByPID() {
79
+ var _a, _b;
80
+ if (!this.endpoint || !this.session || !this.powerupId) {
81
+ return;
82
+ }
83
+ this.isLoadingGames = true;
84
+ if (this.abortController) {
85
+ this.abortController.abort();
86
+ }
87
+ this.abortController = new AbortController();
88
+ try {
89
+ const url = new URL(`${this.endpoint}/v1/elevate/powerups/available?pagination=games(limit=20,offset=${((_b = (_a = this.powerUpGames) === null || _a === void 0 ? void 0 : _a.items) === null || _b === void 0 ? void 0 : _b.length) || 0})`);
90
+ const options = {
91
+ headers: {
92
+ 'Content-Type': 'application/json',
93
+ 'x-SessionId': this.session
94
+ },
95
+ method: 'GET',
96
+ signal: this.abortController.signal
97
+ };
98
+ url.searchParams.append('filter', `id=${this.powerupId}`);
99
+ Object.entries(powerUpGameSearchConditions).forEach(([key, value]) => {
100
+ url.searchParams.append(key, value);
101
+ });
102
+ url.searchParams.append('language', this.language);
103
+ fetch(url, options).then(res => {
104
+ if (!res.ok)
105
+ throw new Error(`HTTP error! status: ${res.status}`);
106
+ return res.json();
107
+ }).then(fetchedPowerUp => {
108
+ var _a, _b;
109
+ let updatedPowerup = this.powerUpGames;
110
+ updatedPowerup.items = [...updatedPowerup.items, ...((_a = fetchedPowerUp.games) === null || _a === void 0 ? void 0 : _a.items) || []];
111
+ this.powerUpGames.items = [...updatedPowerup.items, ...((_b = fetchedPowerUp.games) === null || _b === void 0 ? void 0 : _b.items) || []];
112
+ });
113
+ }
114
+ catch (e) {
115
+ console.error('Failed to load more games:', e);
116
+ }
117
+ finally {
118
+ this.isLoadingGames = false;
119
+ }
120
+ }
121
+ async activePowerUp(powerUp) {
122
+ if (!this.endpoint || !this.session || powerUp.status === PowerUpStatus.ACTIVATING || this.isPowering) {
123
+ return;
124
+ }
125
+ this.isLoading = true;
126
+ powerUp.status = PowerUpStatus.ACTIVATING;
127
+ if (this.abortController) {
128
+ this.abortController.abort();
129
+ }
130
+ this.abortController = new AbortController();
131
+ try {
132
+ const url = new URL(`${this.endpoint}/v1/elevate/activatepowerup`);
133
+ let options = {
134
+ headers: {
135
+ 'Content-Type': 'application/json',
136
+ 'x-SessionId': this.session
137
+ },
138
+ method: 'PUT',
139
+ signal: this.abortController.signal,
140
+ body: JSON.stringify({ powerUpId: powerUp.id })
141
+ };
142
+ const response = await fetch(url.href, options);
143
+ if (!response.ok) {
144
+ throw new Error(`HTTP error! status: ${response.status}`);
145
+ }
146
+ const res = await response.json();
147
+ if (res === null || res === void 0 ? void 0 : res.success) {
148
+ this.powerUp = Object.assign(Object.assign({}, powerUp), { status: PowerUpStatus.ACTIVATED, activatedAt: moment(new Date()).format('YYYY-MM-DD HH:mm:ssZ') });
149
+ }
150
+ }
151
+ catch (e) {
152
+ console.error(e);
153
+ }
154
+ finally {
155
+ if (!this.abortController.signal.aborted) {
156
+ this.isLoading = false;
157
+ }
158
+ }
159
+ }
160
+ onGameClick(game) {
161
+ window.postMessage({ type: 'EngagementSuiteGameRedirect', data: { Slug: game.slug } });
162
+ }
163
+ showMoreGames() {
164
+ this.showMoreGamesEvent.emit(this.powerUp.id);
165
+ }
166
+ backTo() {
167
+ this.backFromPowerupDetailEvent.emit();
168
+ }
169
+ render() {
170
+ var _a;
171
+ return h("div", { key: '1c2ebc3c485eaf8846c71f12d0aa7d1a07f9a3ef', class: 'IngamePowerUpDetailContainer', ref: (el) => (this.stylingContainer = el) }, h("div", { key: 'd6d33b939a8798ac8f3df8979756687d1839570a', class: 'MainContainer' }, h("div", { key: '9f0ddbfa404cd07b2b2a981634c54ffaad8916e7', class: 'TopBar' }, h("div", { key: 'f84b91a263a3a135b89631e7daccafb07cf768c6', onClick: this.backTo.bind(this), class: 'ReturnIcon CircleLinearBorder', innerHTML: ReturnSvg }), h("div", { key: 'a83a7a2c1f9e88d3b77f91a6b6ca56de51c657cc', class: 'Title' }, " ", ((_a = this.powerUp) === null || _a === void 0 ? void 0 : _a.powerUpName) || '', " ")), this.isLoading ? h("div", { class: 'Loading' }, h("smart-loader", null))
172
+ : this.powerUp == null ? h("div", { class: 'NoData' }, "No data found ")
173
+ : h("div", { class: 'DetailInfo' }, h("div", { class: 'Description' }, this.powerUp.description), h("div", { class: 'MultiplierContainer Card CircleLinearBorder' }, h("div", { class: 'FlexRow CircleInner' }, h("div", { class: 'Duration' }, h("div", { class: 'Label' }, " ", translate('duration', this.language), " "), h("div", { class: 'Value' }, this.powerUp.boostingPeriod[this.powerUp.boostingPeriod.mode === 'timePeriod' ? 'minutes' : 'numberOfRounds'], translate(this.powerUp.boostingPeriod.mode === 'timePeriod' ? 'minutes' : 'numberOfRounds'))), h("div", { class: 'Multiplier' }, h("div", { class: 'Label' }, " ", translate('multiplier', this.language), " "), h("div", { class: 'Value' }, this.powerUp.multiplier.coefficient, "x ", translate(this.powerUp.multiplier.mode === 'coins' ? 'coins' : 'xp'))), h("div", { class: 'ExpireTime' }, h("div", { class: 'Label' }, " ", translate('endDate', this.language), " "), h("div", { class: 'Value' }, h("time-count-detail", { pid: this.powerUp.id, "expire-time": getActivedExpireTime(this.powerUp), lang: this.language }))))), h("div", { class: 'TermsUrl' }, h("div", { class: 'Label' }, h("div", null, " ", translate('termsAndConditions', this.language), " "), h("div", { class: 'GoToOpenIcon', innerHTML: GotopageSvg })), h("div", { class: 'TextContent' }, translate('playResponsibly', this.language))), h("div", { class: 'GamesWrapper Card CircleLinearBorder' }, h("div", { class: 'CircleInner' }, h("div", { class: 'FlexRow GamesHeader' }, h("div", { class: 'RowLeft' }, h("div", { class: 'GamesTitle' }, " ", translate('games', this.language), " "), h("div", { class: 'GamesTotal TextContent' }, "( ", this.powerUp.games.total, " )")), h("div", { class: 'RowRight', onClick: this.showMoreGames.bind(this) }, h("div", { class: 'TextContent' }, translate('seeAll', this.language)), h("div", { class: 'DetailIcon' }, h("div", { innerHTML: DetailSvg })))), h("div", { class: 'Games FlexRow' }, h("div", { class: 'Container' }, this.powerUp.games.total &&
174
+ this.powerUp.games.items.map((g) => {
175
+ return h("div", { class: 'Game' }, h("ui-image", { src: g.thumbnail, onClick: this.onGameClick.bind(this, g) }), h("div", { class: 'GameMask', onClick: this.onGameClick.bind(this, g) }, h("div", { class: 'GameStartBtn' }, h("div", { class: 'PlayIcon' }), h("span", null, translate('playNow', this.language)))));
176
+ }))))))), h("div", { key: '08f6b4e44425817f81615609289d1d8db43ef930', class: 'BottomBar FlexRow' }, h("div", { key: 'ad95d1b98f2922ee40e4dbecf3b6dd9173d38e31', class: 'ActiveTips' }, " ", translate('activateTips', this.language), " "), this.powerUp && (this.powerUp.status === PowerUpStatus.ACTIVE || this.powerUp.status === PowerUpStatus.ACTIVATING) &&
177
+ h("div", { key: '3a6537e3f04e5c83f32fc0b9dbd8a9f9fabfd2b1', class: `ActiveBtn CircleLinearBorder ${this.isPowering ? 'Disabled' : ''} ${this.powerUp.status === PowerUpStatus.ACTIVATING ? 'Activating' : ''}`, onClick: this.activePowerUp.bind(this, this.powerUp) }, h("div", { key: '3b76c267f34179e5c825f2e23860bd6f98b0fc54', class: 'content' }, " ", translate('activate', this.language)))));
178
+ }
179
+ handleClientStylingChange(newValue, oldValue) {
180
+ if (newValue != oldValue) {
181
+ setClientStyling(this.stylingContainer, this.clientStyling);
182
+ }
183
+ }
184
+ handleClientStylingUrlChange(newValue, oldValue) {
185
+ if (newValue != oldValue) {
186
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
187
+ }
188
+ }
189
+ handleMbSourceChange(newValue, oldValue) {
190
+ if (newValue != oldValue) {
191
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
192
+ }
193
+ }
194
+ componentDidLoad() {
195
+ if (this.stylingContainer) {
196
+ if (this.mbSource)
197
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
198
+ if (this.clientStyling)
199
+ setClientStyling(this.stylingContainer, this.clientStyling);
200
+ if (this.clientStylingUrl)
201
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
202
+ }
203
+ }
204
+ disconnectedCallback() {
205
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
206
+ }
207
+ handleNewTranslations() {
208
+ getTranslations(this.translationUrl);
209
+ }
210
+ async componentWillLoad() {
211
+ if (this.translationUrl) {
212
+ await getTranslations(this.translationUrl);
213
+ }
214
+ this.loadPowerUpById();
215
+ }
216
+ static get is() { return "bonus-powerups-ingame-detail"; }
217
+ static get encapsulation() { return "shadow"; }
218
+ static get originalStyleUrls() {
219
+ return {
220
+ "$": ["bonus-powerups-ingame-detail.scss"]
221
+ };
222
+ }
223
+ static get styleUrls() {
224
+ return {
225
+ "$": ["bonus-powerups-ingame-detail.css"]
226
+ };
227
+ }
228
+ static get properties() {
229
+ return {
230
+ "mbSource": {
231
+ "type": "string",
232
+ "mutable": false,
233
+ "complexType": {
234
+ "original": "string",
235
+ "resolved": "string",
236
+ "references": {}
237
+ },
238
+ "required": false,
239
+ "optional": false,
240
+ "docs": {
241
+ "tags": [],
242
+ "text": ""
243
+ },
244
+ "attribute": "mb-source",
245
+ "reflect": true
246
+ },
247
+ "clientStyling": {
248
+ "type": "string",
249
+ "mutable": false,
250
+ "complexType": {
251
+ "original": "string",
252
+ "resolved": "string",
253
+ "references": {}
254
+ },
255
+ "required": false,
256
+ "optional": false,
257
+ "docs": {
258
+ "tags": [],
259
+ "text": ""
260
+ },
261
+ "attribute": "client-styling",
262
+ "reflect": true
263
+ },
264
+ "clientStylingUrl": {
265
+ "type": "string",
266
+ "mutable": false,
267
+ "complexType": {
268
+ "original": "string",
269
+ "resolved": "string",
270
+ "references": {}
271
+ },
272
+ "required": false,
273
+ "optional": false,
274
+ "docs": {
275
+ "tags": [],
276
+ "text": ""
277
+ },
278
+ "attribute": "client-styling-url",
279
+ "reflect": true
280
+ },
281
+ "translationUrl": {
282
+ "type": "string",
283
+ "mutable": false,
284
+ "complexType": {
285
+ "original": "string",
286
+ "resolved": "string",
287
+ "references": {}
288
+ },
289
+ "required": false,
290
+ "optional": false,
291
+ "docs": {
292
+ "tags": [],
293
+ "text": ""
294
+ },
295
+ "attribute": "translation-url",
296
+ "reflect": true
297
+ },
298
+ "language": {
299
+ "type": "string",
300
+ "mutable": false,
301
+ "complexType": {
302
+ "original": "string",
303
+ "resolved": "string",
304
+ "references": {}
305
+ },
306
+ "required": false,
307
+ "optional": false,
308
+ "docs": {
309
+ "tags": [],
310
+ "text": ""
311
+ },
312
+ "attribute": "language",
313
+ "reflect": true,
314
+ "defaultValue": "'en'"
315
+ },
316
+ "endpoint": {
317
+ "type": "string",
318
+ "mutable": false,
319
+ "complexType": {
320
+ "original": "string",
321
+ "resolved": "string",
322
+ "references": {}
323
+ },
324
+ "required": true,
325
+ "optional": false,
326
+ "docs": {
327
+ "tags": [],
328
+ "text": ""
329
+ },
330
+ "attribute": "endpoint",
331
+ "reflect": true
332
+ },
333
+ "session": {
334
+ "type": "string",
335
+ "mutable": false,
336
+ "complexType": {
337
+ "original": "string",
338
+ "resolved": "string",
339
+ "references": {}
340
+ },
341
+ "required": true,
342
+ "optional": false,
343
+ "docs": {
344
+ "tags": [],
345
+ "text": ""
346
+ },
347
+ "attribute": "session",
348
+ "reflect": true
349
+ },
350
+ "pid": {
351
+ "type": "string",
352
+ "mutable": false,
353
+ "complexType": {
354
+ "original": "string",
355
+ "resolved": "string",
356
+ "references": {}
357
+ },
358
+ "required": true,
359
+ "optional": false,
360
+ "docs": {
361
+ "tags": [],
362
+ "text": ""
363
+ },
364
+ "attribute": "pid",
365
+ "reflect": true
366
+ },
367
+ "powerupId": {
368
+ "type": "number",
369
+ "mutable": false,
370
+ "complexType": {
371
+ "original": "number",
372
+ "resolved": "number",
373
+ "references": {}
374
+ },
375
+ "required": false,
376
+ "optional": false,
377
+ "docs": {
378
+ "tags": [],
379
+ "text": ""
380
+ },
381
+ "attribute": "powerup-id",
382
+ "reflect": true
383
+ },
384
+ "isPowering": {
385
+ "type": "boolean",
386
+ "mutable": false,
387
+ "complexType": {
388
+ "original": "boolean",
389
+ "resolved": "boolean",
390
+ "references": {}
391
+ },
392
+ "required": false,
393
+ "optional": false,
394
+ "docs": {
395
+ "tags": [],
396
+ "text": ""
397
+ },
398
+ "attribute": "is-powering",
399
+ "reflect": true,
400
+ "defaultValue": "false"
401
+ }
402
+ };
403
+ }
404
+ static get states() {
405
+ return {
406
+ "powerUp": {},
407
+ "powerUpGames": {},
408
+ "isLoading": {},
409
+ "isLoadingGames": {},
410
+ "limit": {}
411
+ };
412
+ }
413
+ static get events() {
414
+ return [{
415
+ "method": "showMoreGamesEvent",
416
+ "name": "showMoreGames",
417
+ "bubbles": true,
418
+ "cancelable": true,
419
+ "composed": true,
420
+ "docs": {
421
+ "tags": [],
422
+ "text": ""
423
+ },
424
+ "complexType": {
425
+ "original": "any",
426
+ "resolved": "any",
427
+ "references": {}
428
+ }
429
+ }, {
430
+ "method": "backFromPowerupDetailEvent",
431
+ "name": "backFromPowerupDetail",
432
+ "bubbles": true,
433
+ "cancelable": true,
434
+ "composed": true,
435
+ "docs": {
436
+ "tags": [],
437
+ "text": ""
438
+ },
439
+ "complexType": {
440
+ "original": "any",
441
+ "resolved": "any",
442
+ "references": {}
443
+ }
444
+ }];
445
+ }
446
+ static get watchers() {
447
+ return [{
448
+ "propName": "session",
449
+ "methodName": "loadPowerUpById"
450
+ }, {
451
+ "propName": "endpoint",
452
+ "methodName": "loadPowerUpById"
453
+ }, {
454
+ "propName": "language",
455
+ "methodName": "loadPowerUpById"
456
+ }, {
457
+ "propName": "pid",
458
+ "methodName": "loadPowerUpById"
459
+ }, {
460
+ "propName": "clientStyling",
461
+ "methodName": "handleClientStylingChange"
462
+ }, {
463
+ "propName": "clientStylingUrl",
464
+ "methodName": "handleClientStylingUrlChange"
465
+ }, {
466
+ "propName": "mbSource",
467
+ "methodName": "handleMbSourceChange"
468
+ }, {
469
+ "propName": "translationUrl",
470
+ "methodName": "handleNewTranslations"
471
+ }];
472
+ }
473
+ static get listeners() {
474
+ return [{
475
+ "name": "showPowerupDetails",
476
+ "method": "showPowerupDetailsHandler",
477
+ "target": undefined,
478
+ "capture": false,
479
+ "passive": false
480
+ }];
481
+ }
482
+ }
483
+ ;
@@ -0,0 +1 @@
1
+ export { BonusPowerupsIngameDetail } from './bonus-powerups-ingame-detail';
@@ -0,0 +1,84 @@
1
+ @keyframes smart-animate1 {
2
+ 0% {
3
+ opacity: 0.15;
4
+ transform: translateX(0px);
5
+ }
6
+ 35% {
7
+ opacity: 1;
8
+ transform: translateX(36px);
9
+ }
10
+ 75% {
11
+ opacity: 1;
12
+ transform: translateX(0px);
13
+ }
14
+ 100% {
15
+ opacity: 0.15;
16
+ transform: translateX(0px);
17
+ }
18
+ }
19
+ @keyframes smart-animate2 {
20
+ 0% {
21
+ opacity: 1;
22
+ }
23
+ 35% {
24
+ opacity: 0.15;
25
+ }
26
+ 75% {
27
+ opacity: 0.5;
28
+ }
29
+ 100% {
30
+ opacity: 1;
31
+ }
32
+ }
33
+ @keyframes smart-animate3 {
34
+ 0% {
35
+ opacity: 0.5;
36
+ transform: translateX(0px);
37
+ }
38
+ 35% {
39
+ opacity: 0.15;
40
+ transform: translateX(-36px);
41
+ }
42
+ 75% {
43
+ opacity: 0.15;
44
+ transform: translateX(0px);
45
+ }
46
+ 100% {
47
+ opacity: 0.5;
48
+ transform: translateX(0px);
49
+ }
50
+ }
51
+ .smart-loader {
52
+ margin: 50px auto;
53
+ display: flex;
54
+ flex-direction: row;
55
+ align-items: center;
56
+ justify-content: center;
57
+ width: 100px;
58
+ gap: 10px;
59
+ }
60
+ .smart-loader .smart-item {
61
+ width: 3px;
62
+ height: 20px;
63
+ opacity: 0.15;
64
+ animation-delay: 200ms;
65
+ animation-duration: 1000ms;
66
+ animation-timing-function: ease-out;
67
+ animation-fill-mode: forwards;
68
+ padding: 1px;
69
+ margin: 5px 0;
70
+ background: #00FA5A;
71
+ border-radius: 4px;
72
+ animation-iteration-count: infinite;
73
+ animation-direction: normal;
74
+ }
75
+ .smart-loader .smart-item:nth-child(1) {
76
+ animation-name: smart-animate1;
77
+ }
78
+ .smart-loader .smart-item:nth-child(2) {
79
+ animation-name: smart-animate2;
80
+ height: 36px;
81
+ }
82
+ .smart-loader .smart-item:nth-child(3) {
83
+ animation-name: smart-animate3;
84
+ }
@@ -0,0 +1,17 @@
1
+ import { h } from "@stencil/core";
2
+ export class SmartLoader {
3
+ render() {
4
+ return h("div", { key: 'b7d81127872a349887c76133eb8a7bcd3ab8d29e', class: 'smart-loader' }, h("div", { key: '21dfb7d7fe1fd3e0660603bc2d2464e057328228', class: "smart-item" }), h("div", { key: 'fa22f3e3e5283b27fe3256669a0d67a2f85e135a', class: "smart-item" }), h("div", { key: '9fc3be4eb58ccebfa1803b12bf526e4cd2c9e013', class: "smart-item" }));
5
+ }
6
+ static get is() { return "smart-loader"; }
7
+ static get originalStyleUrls() {
8
+ return {
9
+ "$": ["smart-loader.scss"]
10
+ };
11
+ }
12
+ static get styleUrls() {
13
+ return {
14
+ "$": ["smart-loader.css"]
15
+ };
16
+ }
17
+ }