@everymatrix/bonus-powerups-ingame-list 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 (72) hide show
  1. package/dist/assets/Info-circle.svg +10 -0
  2. package/dist/assets/clock.svg +3 -0
  3. package/dist/assets/close.svg +4 -0
  4. package/dist/assets/double-right.svg +4 -0
  5. package/dist/assets/energe.svg +9 -0
  6. package/dist/assets/fire.svg +3 -0
  7. package/dist/bonus-powerups-ingame-list/app-globals-0f993ce5.js +1 -0
  8. package/dist/bonus-powerups-ingame-list/bonus-powerups-ingame-list-a8638981.js +3 -0
  9. package/dist/bonus-powerups-ingame-list/bonus-powerups-ingame-list.esm.js +1 -0
  10. package/dist/bonus-powerups-ingame-list/bonus-powerups-ingame-list_2.entry.js +1 -0
  11. package/dist/bonus-powerups-ingame-list/index-20f17dc8.js +2 -0
  12. package/dist/bonus-powerups-ingame-list/index.esm.js +1 -0
  13. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  14. package/dist/cjs/bonus-powerups-ingame-list-c9172936.js +6114 -0
  15. package/dist/cjs/bonus-powerups-ingame-list.cjs.js +25 -0
  16. package/dist/cjs/bonus-powerups-ingame-list_2.cjs.entry.js +82 -0
  17. package/dist/cjs/index-f60c43c6.js +1284 -0
  18. package/dist/cjs/index.cjs.js +10 -0
  19. package/dist/cjs/loader.cjs.js +15 -0
  20. package/dist/collection/collection-manifest.json +13 -0
  21. package/dist/collection/components/assets/Info-circle.svg +10 -0
  22. package/dist/collection/components/assets/clock.svg +3 -0
  23. package/dist/collection/components/assets/close.svg +4 -0
  24. package/dist/collection/components/assets/double-right.svg +4 -0
  25. package/dist/collection/components/assets/energe.svg +9 -0
  26. package/dist/collection/components/assets/fire.svg +3 -0
  27. package/dist/collection/components/bonus-powerups-ingame-list/bonus-powerups-ingame-list.css +208 -0
  28. package/dist/collection/components/bonus-powerups-ingame-list/bonus-powerups-ingame-list.js +436 -0
  29. package/dist/collection/components/bonus-powerups-ingame-list/index.js +1 -0
  30. package/dist/collection/components/time-count/time-count.js +143 -0
  31. package/dist/collection/index.js +1 -0
  32. package/dist/collection/utils/locale.utils.js +44 -0
  33. package/dist/collection/utils/utils.js +21 -0
  34. package/dist/esm/app-globals-0f993ce5.js +3 -0
  35. package/dist/esm/bonus-powerups-ingame-list-a8638981.js +6110 -0
  36. package/dist/esm/bonus-powerups-ingame-list.js +20 -0
  37. package/dist/esm/bonus-powerups-ingame-list_2.entry.js +78 -0
  38. package/dist/esm/index-20f17dc8.js +1257 -0
  39. package/dist/esm/index.js +2 -0
  40. package/dist/esm/loader.js +11 -0
  41. package/dist/index.cjs.js +1 -0
  42. package/dist/index.js +1 -0
  43. package/dist/stencil.config.dev.js +20 -0
  44. package/dist/stencil.config.js +20 -0
  45. package/dist/storybook/main.js +43 -0
  46. package/dist/storybook/preview.js +9 -0
  47. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-list/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  48. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-list/.stencil/libs/common/src/types/casino/powerups.d.ts +60 -0
  49. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-list/.stencil/packages/stencil/bonus-powerups-ingame-list/stencil.config.d.ts +2 -0
  50. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-list/.stencil/packages/stencil/bonus-powerups-ingame-list/stencil.config.dev.d.ts +2 -0
  51. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-list/.stencil/packages/stencil/bonus-powerups-ingame-list/storybook/main.d.ts +3 -0
  52. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-list/.stencil/packages/stencil/bonus-powerups-ingame-list/storybook/preview.d.ts +70 -0
  53. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-list/.stencil/tools/plugins/index.d.ts +4 -0
  54. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-list/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
  55. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-list/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  56. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-list/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  57. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-list/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  58. package/dist/types/components/bonus-powerups-ingame-list/bonus-powerups-ingame-list.d.ts +36 -0
  59. package/dist/types/components/bonus-powerups-ingame-list/index.d.ts +1 -0
  60. package/dist/types/components/time-count/time-count.d.ts +16 -0
  61. package/dist/types/components.d.ts +106 -0
  62. package/dist/types/index.d.ts +1 -0
  63. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  64. package/dist/types/utils/locale.utils.d.ts +2 -0
  65. package/dist/types/utils/utils.d.ts +14 -0
  66. package/loader/cdn.js +1 -0
  67. package/loader/index.cjs.js +1 -0
  68. package/loader/index.d.ts +24 -0
  69. package/loader/index.es2017.js +1 -0
  70. package/loader/index.js +2 -0
  71. package/loader/package.json +11 -0
  72. package/package.json +27 -0
@@ -0,0 +1,20 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-20f17dc8.js';
2
+ export { s as setNonce } from './index-20f17dc8.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ /*
6
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
7
+ */
8
+ var patchBrowser = () => {
9
+ const importMeta = import.meta.url;
10
+ const opts = {};
11
+ if (importMeta !== "") {
12
+ opts.resourcesUrl = new URL(".", importMeta).href;
13
+ }
14
+ return promiseResolve(opts);
15
+ };
16
+
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
19
+ return bootstrapLazy([["bonus-powerups-ingame-list_2",[[1,"bonus-powerups-ingame-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"session":[513],"limit":[514],"isLoading":[32],"isActivating":[32],"powerups":[32],"isPowering":[32]},[[16,"reloadPowerups","reloadPowerupsHandler"],[0,"powerupTimeCountDown","powerupTimeCountDownHandler"]],{"session":["loadData"],"endpoint":["loadData"],"limit":["loadData"],"language":["loadData"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"translationUrl":["handleNewTranslations"]}],[0,"time-count",{"expireTime":[1,"expire-time"],"language":[1],"displayTime":[32],"isExpireInDay1":[32],"timeLeft":[32]},null,{"timeLeft":["timeLeftChanged"],"expireTime":["startTimeChanged"]}]]]], options);
20
+ });
@@ -0,0 +1,78 @@
1
+ import { h as hooks, t as translate } from './bonus-powerups-ingame-list-a8638981.js';
2
+ export { B as bonus_powerups_ingame_list } from './bonus-powerups-ingame-list-a8638981.js';
3
+ import { r as registerInstance, c as createEvent, h } from './index-20f17dc8.js';
4
+
5
+ const TimeCount = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.timeCountDownEvent = createEvent(this, "powerupTimeCountDown", 7);
9
+ this.expireTime = undefined;
10
+ this.language = 'en';
11
+ this.displayTime = undefined;
12
+ this.isExpireInDay1 = false;
13
+ this.timeLeft = undefined;
14
+ }
15
+ componentWillLoad() {
16
+ this.timer = setInterval(() => this.updateDisplayTime(), 1000);
17
+ this.updateDisplayTime();
18
+ }
19
+ disconnectedCallback() {
20
+ clearInterval(this.timer);
21
+ }
22
+ timeLeftChanged() {
23
+ if (this.timeLeft > 0) {
24
+ return;
25
+ }
26
+ this.timeCountDownEvent.emit({ type: 'powerupTimeCountDown', timeLeft: this.timeLeft });
27
+ }
28
+ startTimeChanged() {
29
+ // Reset the timer and update the display when the input time changes
30
+ clearInterval(this.timer);
31
+ this.timer = setInterval(() => this.updateDisplayTime(), 1000);
32
+ this.updateDisplayTime();
33
+ }
34
+ updateDisplayTime() {
35
+ const now = hooks();
36
+ const start = hooks(this.expireTime);
37
+ if (!start.isValid()) {
38
+ this.displayTime = 'Invalid date';
39
+ clearInterval(this.timer);
40
+ return;
41
+ }
42
+ const duration = hooks.duration(start.diff(now));
43
+ this.isExpireInDay1 = true; //duration.asDays() > 1;
44
+ this.timeLeft = duration.asMinutes();
45
+ // If the time has already passed
46
+ if (duration.asMilliseconds() <= 0) {
47
+ this.displayTime = '00:00:00';
48
+ clearInterval(this.timer);
49
+ return;
50
+ }
51
+ const hours = Math.floor(duration.asHours());
52
+ if (hours >= 48) {
53
+ this.displayTime = `${Math.floor(duration.asDays())} ${translate('days', this.language)}`;
54
+ }
55
+ else if (hours >= 24) {
56
+ this.displayTime = '1 day';
57
+ }
58
+ else {
59
+ const h = hours;
60
+ const m = duration.minutes();
61
+ const s = duration.seconds();
62
+ this.displayTime = [h, m, s].map(val => String(val).padStart(2, '0')).join(':');
63
+ }
64
+ }
65
+ render() {
66
+ return [
67
+ this.isExpireInDay1 &&
68
+ h("span", { key: '11ec5e6887c3e0b3e3178f8323f9a7937a855651', class: 'Label' }, translate('expiresIn', this.language), " "),
69
+ h("span", { key: 'bbaee9a13552ae932823245d6dc99a5ebd494e46', class: 'TimeCountDown' }, this.displayTime)
70
+ ];
71
+ }
72
+ static get watchers() { return {
73
+ "timeLeft": ["timeLeftChanged"],
74
+ "expireTime": ["startTimeChanged"]
75
+ }; }
76
+ };
77
+
78
+ export { TimeCount as time_count };