@everymatrix/casino-lobby 1.74.7 → 1.74.10

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 (107) hide show
  1. package/components/{CasinoCalendar-BMDbprh6.js → CasinoCalendar-B0K8z0GJ.js} +781 -795
  2. package/components/CasinoCalendar-Bo-lripz.cjs +19 -0
  3. package/components/{CasinoCalendar-FUyH3So6.js → CasinoCalendar-CzMBlFEu.js} +995 -1009
  4. package/components/{CasinoCalendarDailyDetails-PT-ciuLj.js → CasinoCalendarDailyDetails-8b-Ie2Hl.js} +75 -75
  5. package/components/{CasinoCalendarDailyDetails-qb4mpvz6.js → CasinoCalendarDailyDetails-D5cq8_6v.js} +75 -75
  6. package/components/CasinoCalendarDailyDetails-DZ2juA5b.cjs +1 -0
  7. package/components/{CasinoCalendarDailyItem-E_UK8J-P.js → CasinoCalendarDailyItem-BglEC2TQ.js} +6 -6
  8. package/components/{CasinoCalendarDailyItem-BJAYmacx.cjs → CasinoCalendarDailyItem-Cl7eHYxY.cjs} +1 -1
  9. package/components/{CasinoCalendarDailyItem-Ddvjsin9.js → CasinoCalendarDailyItem-DXREwm9q.js} +6 -6
  10. package/components/CasinoCategoriesSlider-B6_EYUBm.cjs +1 -0
  11. package/components/{CasinoCategoriesSlider-CyY1HQ0P.js → CasinoCategoriesSlider-BKQxQQyV.js} +64 -64
  12. package/components/{CasinoCategoriesSlider-DTKia-BC.js → CasinoCategoriesSlider-C7_ke4uB.js} +64 -64
  13. package/components/{CasinoCollectionsProviders-DnxgcymV.cjs → CasinoCollectionsProviders-Abg7c3OD.cjs} +1 -1
  14. package/components/{CasinoCollectionsProviders-G6IEHMff.js → CasinoCollectionsProviders-BpkF43eH.js} +4 -4
  15. package/components/{CasinoCollectionsProviders-C66vF5px.js → CasinoCollectionsProviders-BzU-DnW_.js} +4 -4
  16. package/components/{CasinoFavoritesSection-DvljpfJ3.js → CasinoFavoritesSection-9lyxUggQ.js} +5 -5
  17. package/components/{CasinoFavoritesSection-Cv6jIUlD.js → CasinoFavoritesSection-CYeNzAvT.js} +5 -5
  18. package/components/{CasinoFavoritesSection-BQm3vLN4.cjs → CasinoFavoritesSection-yx4YyO7z.cjs} +1 -1
  19. package/components/CasinoFilter-Bc_k_xiT.cjs +1 -0
  20. package/components/{CasinoFilter-CFd1r73g.js → CasinoFilter-CekYy95Z.js} +225 -224
  21. package/components/{CasinoFilter-BW0CkIQU.js → CasinoFilter-Cve0ticX.js} +253 -254
  22. package/components/{CasinoGameThumbnail-CP707TN8.js → CasinoGameThumbnail-1vnHRePz.js} +1239 -1255
  23. package/components/{CasinoGameThumbnail-Cl2nd2Ao.js → CasinoGameThumbnail-CWVvNagJ.js} +768 -752
  24. package/components/CasinoGameThumbnail-MNCUvtBB.cjs +47 -0
  25. package/components/{CasinoGamesCategorySection-_5PoZwz5.js → CasinoGamesCategorySection-Cfjz1dku.js} +179 -179
  26. package/components/CasinoGamesCategorySection-D5XSzosp.cjs +1 -0
  27. package/components/{CasinoGamesCategorySection-BexCIH6G.js → CasinoGamesCategorySection-DmOLQ3Vd.js} +182 -182
  28. package/components/{CasinoJackpotBanner-DdPrmZDs.js → CasinoJackpotBanner-B_dYLQp4.js} +8 -8
  29. package/components/{CasinoJackpotBanner-nsvJTIO2.js → CasinoJackpotBanner-CBz6E__7.js} +8 -8
  30. package/components/{CasinoJackpotBanner-0uMNuf8D.cjs → CasinoJackpotBanner-DrTQC7xJ.cjs} +1 -1
  31. package/components/{CasinoLastPlayedSection-B7Zksu4A.js → CasinoLastPlayedSection--Qe6ZhCg.js} +8 -8
  32. package/components/{CasinoLastPlayedSection-BvLbRXcm.js → CasinoLastPlayedSection-BDaudheg.js} +8 -8
  33. package/components/{CasinoLastPlayedSection-DbfXEbef.cjs → CasinoLastPlayedSection-gXkDFCLp.cjs} +1 -1
  34. package/components/{CasinoLobby-BN2EJtl2.js → CasinoLobby-2yiegknV.js} +7 -7
  35. package/components/{CasinoLobby-D8qvx3h6.js → CasinoLobby-C-nPEaqC.js} +7 -7
  36. package/components/{CasinoLobby-nUsTGR-H.cjs → CasinoLobby-Yi98Oora.cjs} +1 -1
  37. package/components/{CasinoMostPlayedSection-Bol1_zkd.js → CasinoMostPlayedSection--ioyWjg0.js} +13 -13
  38. package/components/{CasinoMostPlayedSection-ts0YqE3Q.js → CasinoMostPlayedSection-OQTrFFYj.js} +13 -13
  39. package/components/{CasinoMostPlayedSection-Du_UlvPc.cjs → CasinoMostPlayedSection-ahrkwe03.cjs} +1 -1
  40. package/components/{CasinoMyGames-a2l-w517.js → CasinoMyGames-C3d24Otj.js} +8 -8
  41. package/components/{CasinoMyGames-D9v-iYaj.js → CasinoMyGames-CdCBPj7p.js} +8 -8
  42. package/components/{CasinoMyGames-DqGcye1D.cjs → CasinoMyGames-nNbPPI-D.cjs} +1 -1
  43. package/components/{CasinoPage-C9nOimHH.js → CasinoPage-5bRpNKaS.js} +15 -15
  44. package/components/{CasinoPage-BOiAVVXu.cjs → CasinoPage-BzYIzPcD.cjs} +1 -1
  45. package/components/{CasinoPage-KebAtIf2.js → CasinoPage-D-B9FS4G.js} +15 -15
  46. package/components/{CasinoRandomGame-CytI5GjM.js → CasinoRandomGame-Bqh0v1th.js} +83 -83
  47. package/components/{CasinoRandomGame-R-0QqjwX.js → CasinoRandomGame-DUQ2O7Ih.js} +12 -12
  48. package/components/{CasinoRandomGame-D6dNIU7H.cjs → CasinoRandomGame-DwpEKRBx.cjs} +2 -2
  49. package/components/{CasinoSearch-PQxlpdIr.js → CasinoSearch-B4WLyXex.js} +5 -5
  50. package/components/{CasinoSearch-CgNC2d7t.cjs → CasinoSearch-CAVnTiiU.cjs} +1 -1
  51. package/components/{CasinoSearch-DMIFjlPK.js → CasinoSearch-RDMeVLj-.js} +5 -5
  52. package/components/{CasinoSlider-BUdXNBUn.js → CasinoSlider-BSy-pbt8.js} +5 -5
  53. package/components/{CasinoSlider-CgGTFca7.js → CasinoSlider-BZe1q5jA.js} +5 -5
  54. package/components/{CasinoSlider-B_4OKAXx.cjs → CasinoSlider-Gf_263k6.cjs} +1 -1
  55. package/components/{CasinoSort-d_O_44vv.js → CasinoSort-B25h8Cud.js} +102 -103
  56. package/components/{CasinoSort-_My6LmSq.cjs → CasinoSort-BjPW0QaZ.cjs} +1 -1
  57. package/components/{CasinoSort-CFRGv5Ze.js → CasinoSort-DHRPAHDE.js} +94 -93
  58. package/components/{CasinoWinners-BX9jBJGA.cjs → CasinoWinners-D1tkG_oD.cjs} +1 -1
  59. package/components/{CasinoWinners-Co-G3_VH.js → CasinoWinners-DUN0A3--.js} +122 -122
  60. package/components/{CasinoWinners-DBM7TeCL.js → CasinoWinners-DYd8q5Sh.js} +126 -126
  61. package/components/{GeneralAnimationLoading-CfouZ-sx.js → GeneralAnimationLoading-8efHmhFw.js} +7 -7
  62. package/components/{GeneralAnimationLoading-D47HGjTy.cjs → GeneralAnimationLoading-CUK4MKI8.cjs} +1 -1
  63. package/components/{GeneralAnimationLoading-eg8O-l55.js → GeneralAnimationLoading-DUAt1hpi.js} +7 -7
  64. package/es2015/casino-lobby.cjs +1 -1
  65. package/es2015/casino-lobby.js +1 -1
  66. package/esnext/casino-lobby.js +1 -1
  67. package/package.json +1 -1
  68. package/stencil/casino-play-random-game-BGnpW6-t.js +25 -0
  69. package/stencil/casino-play-random-game-Dkt8_s5i.js +7 -0
  70. package/stencil/casino-play-random-game-DxDk4Aim.cjs +1 -0
  71. package/stencil/casino-play-random-game_2-BxEiwCaH.cjs +432 -0
  72. package/stencil/{casino-play-random-game-uBjWXXLi.js → casino-play-random-game_2-CO_ycbvG.js} +216 -66
  73. package/stencil/{casino-play-random-game-qroM0e64.js → casino-play-random-game_2-OLkBGlKQ.js} +223 -91
  74. package/stencil/{index-ab3202d6-CoRS04SH.js → index-328e660d-CgCMs0nk.js} +198 -197
  75. package/stencil/{index-ab3202d6-CSUArOSv.js → index-328e660d-DIiqSVTN.js} +194 -193
  76. package/stencil/index-328e660d-pKNw3-4H.cjs +1 -0
  77. package/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
  78. package/stencil/{index-97d17652-DJqGt8q2.js → index-97d17652-C7V2DWFg.js} +147 -147
  79. package/stencil/{index-97d17652-BD-QREJe.js → index-97d17652-DIpvPU9H.js} +151 -151
  80. package/stencil/{index-b2193545-kN0z2MLt.js → index-b2193545-BL364Gzq.js} +169 -169
  81. package/stencil/{index-b2193545-D_cUvAA-.js → index-b2193545-DdqB2rk5.js} +176 -176
  82. package/stencil/index-b2193545-DmjUkkS8.cjs +1 -0
  83. package/stencil/{ui-image-I_uR7pAI.js → ui-image-B_HWMBI-.js} +1 -1
  84. package/stencil/{ui-image-BAqS-hS6.js → ui-image-CzGNxx73.js} +1 -1
  85. package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
  86. package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
  87. package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
  88. package/stencil/{ui-image-CH2Jdp7k.cjs → ui-image-wubI3fkK.cjs} +1 -1
  89. package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-CzFe50WB.js} +2 -2
  90. package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
  91. package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-z5LhXZY2.js} +2 -2
  92. package/stencil/{ui-skeleton-C0GZ2ncD.js → ui-skeleton-CsmgJUYN.js} +2 -2
  93. package/stencil/{ui-skeleton-5mt1L8pA.cjs → ui-skeleton-DTQ__6LQ.cjs} +1 -1
  94. package/stencil/{ui-skeleton-ae35c6f2-BmKf7IvD.js → ui-skeleton-ae35c6f2-BRNiEwlg.js} +1 -1
  95. package/stencil/{ui-skeleton-ae35c6f2-CQ3pH6qH.cjs → ui-skeleton-ae35c6f2-CZuWo9GO.cjs} +1 -1
  96. package/stencil/{ui-skeleton-ae35c6f2-BSwiS43c.js → ui-skeleton-ae35c6f2-CxSezPtG.js} +1 -1
  97. package/stencil/{ui-skeleton-CYeeBz0Q.js → ui-skeleton-yRWBmyfK.js} +2 -2
  98. package/components/CasinoCalendar-BGhJ1cEV.cjs +0 -19
  99. package/components/CasinoCalendarDailyDetails-DyNw1uMX.cjs +0 -1
  100. package/components/CasinoCategoriesSlider-CMchkLFc.cjs +0 -1
  101. package/components/CasinoFilter-BKrzmU_V.cjs +0 -1
  102. package/components/CasinoGameThumbnail-xpkz1cUi.cjs +0 -47
  103. package/components/CasinoGamesCategorySection-DkolOoEE.cjs +0 -1
  104. package/stencil/casino-play-random-game-C3hhQjhn.cjs +0 -378
  105. package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
  106. package/stencil/index-ab3202d6-DitihRZv.cjs +0 -1
  107. package/stencil/index-b2193545-3zPNeE9v.cjs +0 -1
@@ -1,32 +1,8 @@
1
- var p = (n, e, a) => new Promise((t, o) => {
2
- var m = (r) => {
3
- try {
4
- c(a.next(r));
5
- } catch (h) {
6
- o(h);
7
- }
8
- }, d = (r) => {
9
- try {
10
- c(a.throw(r));
11
- } catch (h) {
12
- o(h);
13
- }
14
- }, c = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(m, d);
15
- c((a = a.apply(n, e)).next());
16
- });
17
- import { b as w, p as y, r as x, c as b, h as i, g as G } from "./index-ab3202d6-CoRS04SH.js";
18
- import { g as v } from "./app-globals-0f993ce5-DfNOCk8l.js";
19
- var R = () => {
20
- const n = import.meta.url, e = {};
21
- return n !== "" && (e.resourcesUrl = new URL(".", n).href), y(e);
22
- };
23
- R().then((n) => p(void 0, null, function* () {
24
- return yield v(), w([["casino-play-random-game", [[1, "casino-play-random-game", { endpoint: [513], datasource: [513], language: [513], specificCategory: [513, "specific-category"], iconVisible: [513, "icon-visible"], iconVisibleOnAnim: [513, "icon-visible-on-anim"], launchByGameCard: [513, "launch-by-game-card"], mbSource: [513, "mb-source"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], hasErrors: [32], isLoading: [32], gamesToShow: [32], selectedGame: [32], animationDone: [32], animationStarted: [32] }, null, { endpoint: ["watchEndpoint"], datasource: ["watchEndpoint"], language: ["watchEndpoint"], translationUrl: ["handleNewTranslations"], iconVisible: ["handleIsIconVisible"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingChangeURL"] }]]]], n);
25
- }));
26
- const C = () => {
27
- let n = window.navigator.userAgent;
28
- return n.toLowerCase().match(/android/i) ? "Android" : n.toLowerCase().match(/iphone/i) ? "iPhone" : n.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
29
- }, k = "en", l = {
1
+ import { r as h, c as u, h as n, g as p, H as w } from "./index-328e660d-CgCMs0nk.js";
2
+ const f = () => {
3
+ let e = window.navigator.userAgent;
4
+ return e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
5
+ }, y = "en", r = {
30
6
  en: {
31
7
  error: "Error",
32
8
  randomGameLoading: "Loading ...",
@@ -69,42 +45,42 @@ const C = () => {
69
45
  playNowRandomGame: "Şimdi Oyna",
70
46
  spinRandomGame: "DEĞİŞTİR"
71
47
  }
72
- }, g = (n) => new Promise((e) => {
73
- fetch(n).then((a) => a.json()).then((a) => {
74
- Object.keys(a).forEach((t) => {
75
- l[t] || (l[t] = {});
76
- for (let o in a[t])
77
- l[t][o] = a[t][o];
78
- }), e(!0);
48
+ }, l = (e) => new Promise((t) => {
49
+ fetch(e).then((i) => i.json()).then((i) => {
50
+ Object.keys(i).forEach((a) => {
51
+ r[a] || (r[a] = {});
52
+ for (let o in i[a])
53
+ r[a][o] = i[a][o];
54
+ }), t(!0);
79
55
  });
80
- }), s = (n, e) => {
81
- const a = e;
82
- return l[a !== void 0 && a in l ? a : k][n];
56
+ }), s = (e, t) => {
57
+ const i = t;
58
+ return r[i !== void 0 && i in r ? i : y][e];
83
59
  };
84
- function u(n, e) {
85
- if (n) {
86
- const a = document.createElement("style");
87
- a.innerHTML = e, n.appendChild(a);
60
+ function m(e, t) {
61
+ if (e) {
62
+ const i = document.createElement("style");
63
+ i.innerHTML = t, e.appendChild(i);
88
64
  }
89
65
  }
90
- function f(n, e) {
91
- const a = new URL(e);
92
- fetch(a.href).then((t) => t.text()).then((t) => {
66
+ function d(e, t) {
67
+ const i = new URL(t);
68
+ fetch(i.href).then((a) => a.text()).then((a) => {
93
69
  const o = document.createElement("style");
94
- o.innerHTML = t, n && n.appendChild(o);
95
- }).catch((t) => {
96
- console.error("There was an error while trying to load client styling from URL", t);
70
+ o.innerHTML = a, e && e.appendChild(o);
71
+ }).catch((a) => {
72
+ console.error("There was an error while trying to load client styling from URL", a);
97
73
  });
98
74
  }
99
- function S(n, e, a) {
75
+ function x(e, t, i) {
100
76
  if (window.emMessageBus) {
101
- const t = document.createElement("style");
102
- window.emMessageBus.subscribe(e, (o) => {
103
- t.innerHTML = o, n && n.appendChild(t);
77
+ const a = document.createElement("style");
78
+ window.emMessageBus.subscribe(t, (o) => {
79
+ a.innerHTML = o, e && e.appendChild(a);
104
80
  });
105
81
  }
106
82
  }
107
- const F = `:host {
83
+ const b = `:host {
108
84
  display: block;
109
85
  font-family: inherit;
110
86
  -webkit-transform: translate3d(0, 0, 0);
@@ -481,52 +457,52 @@ const F = `:host {
481
457
  width: 70px;
482
458
  height: 85px;
483
459
  }
484
- }`, L = F, I = class {
485
- constructor(n) {
486
- x(this, n), this.dataLoaded = b(this, "data-loaded", 7), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
487
- let a = e.length, t;
488
- for (; a !== 0; )
489
- t = Math.floor(Math.random() * a), a--, [e[a], e[t]] = [e[t], e[a]];
490
- return e;
460
+ }`, k = b, G = class {
461
+ constructor(e) {
462
+ h(this, e), this.dataLoaded = u(this, "data-loaded"), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (t) => {
463
+ let i = t.length, a;
464
+ for (; i !== 0; )
465
+ a = Math.floor(Math.random() * i), i--, [t[i], t[a]] = [t[a], t[i]];
466
+ return t;
491
467
  }, this.endpoint = void 0, this.datasource = void 0, this.language = "en", this.specificCategory = "", this.iconVisible = "", this.iconVisibleOnAnim = "", this.launchByGameCard = "", this.mbSource = void 0, this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.hasErrors = !1, this.isLoading = !0, this.gamesToShow = void 0, this.selectedGame = null, this.animationDone = !1, this.animationStarted = !1;
492
468
  }
493
- watchEndpoint(n, e) {
494
- n && n != e && this.endpoint && this.fetchGameList();
469
+ watchEndpoint(e, t) {
470
+ e && e != t && this.endpoint && this.fetchGameList();
495
471
  }
496
472
  handleNewTranslations() {
497
- this.isLoading = !0, g(this.translationUrl).then(() => {
473
+ this.isLoading = !0, l(this.translationUrl).then(() => {
498
474
  this.isLoading = !1;
499
475
  });
500
476
  }
501
477
  handleIsIconVisible() {
502
478
  this.iconVisibility = this.iconVisible === "true";
503
479
  }
504
- handleClientStylingChange(n, e) {
505
- n != e && u(this.stylingContainer, this.clientStyling);
480
+ handleClientStylingChange(e, t) {
481
+ e != t && m(this.stylingContainer, this.clientStyling);
506
482
  }
507
- handleClientStylingChangeURL(n, e) {
508
- n != e && this.clientStylingUrl && f(this.stylingContainer, this.clientStylingUrl);
483
+ handleClientStylingChangeURL(e, t) {
484
+ e != t && this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl);
509
485
  }
510
486
  connectedCallback() {
511
487
  this.handleIsIconVisible();
512
488
  }
513
489
  componentWillLoad() {
514
- if (this.translationUrl.length > 2 && g(this.translationUrl), this.endpoint && this.language && this.datasource)
490
+ if (this.translationUrl.length > 2 && l(this.translationUrl), this.endpoint && this.language && this.datasource)
515
491
  return this.fetchGameList();
516
492
  }
517
493
  componentDidLoad() {
518
- window.emMessageBus != null ? S(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && u(this.stylingContainer, this.clientStyling), this.clientStylingUrl && f(this.stylingContainer, this.clientStylingUrl));
494
+ window.emMessageBus != null ? x(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && m(this.stylingContainer, this.clientStyling), this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl));
519
495
  }
520
496
  disconnectedCallback() {
521
497
  this.stylingSubscription && this.stylingSubscription.unsubscribe();
522
498
  }
523
499
  fetchGameList() {
524
- let n = new URL(`${this.endpoint}/v1/casino/games`);
525
- return n.searchParams.append("platform", C()), n.searchParams.append("datasource", this.datasource), n.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"), n.searchParams.append("expand", "vendor"), n.searchParams.append("pagination", "offset=0,limit=423"), n.searchParams.append("language", this.language), this.specificCategory && n.searchParams.append("filter", `categories(id=${this.specificCategory})`), new Promise((e, a) => {
526
- this.isLoading = !0, fetch(n.href).then((t) => t.json()).then((t) => {
527
- this.gamesToShow = this.setUpGames(t == null ? void 0 : t.items), e(!0);
528
- }).catch((t) => {
529
- console.error(t), this.hasErrors = !0, a(t);
500
+ let e = new URL(`${this.endpoint}/v1/casino/games`);
501
+ return e.searchParams.append("platform", f()), e.searchParams.append("datasource", this.datasource), e.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"), e.searchParams.append("expand", "vendor"), e.searchParams.append("pagination", "offset=0,limit=423"), e.searchParams.append("language", this.language), this.specificCategory && e.searchParams.append("filter", `categories(id=${this.specificCategory})`), new Promise((t, i) => {
502
+ this.isLoading = !0, fetch(e.href).then((a) => a.json()).then((a) => {
503
+ this.gamesToShow = this.setUpGames(a == null ? void 0 : a.items), t(!0);
504
+ }).catch((a) => {
505
+ console.error(a), this.hasErrors = !0, i(a);
530
506
  }).finally(() => {
531
507
  this.isLoading = !1, this.dataLoaded.emit({
532
508
  target: this.host
@@ -534,13 +510,13 @@ const F = `:host {
534
510
  });
535
511
  });
536
512
  }
537
- setUpGames(n) {
538
- const e = this.shuffle(n).slice(0, 40);
539
- return e.concat(e);
513
+ setUpGames(e) {
514
+ const t = this.shuffle(e).slice(0, 40);
515
+ return t.concat(t);
540
516
  }
541
517
  selectRandomGame() {
542
- const n = this.gamesToShow.length / 2;
543
- this.selectedGameIndex = Math.floor(Math.random() * (n - 3)), this.selectedGameIndex += n, this.selectedGameEl = this.gameContainer.children[this.selectedGameIndex];
518
+ const e = this.gamesToShow.length / 2;
519
+ this.selectedGameIndex = Math.floor(Math.random() * (e - 3)), this.selectedGameIndex += e, this.selectedGameEl = this.gameContainer.children[this.selectedGameIndex];
544
520
  }
545
521
  playRandomGame() {
546
522
  this.animateGames(), typeof gtag == "function" && gtag("event", "PlayRandomGame", {
@@ -554,18 +530,18 @@ const F = `:host {
554
530
  }
555
531
  animateGames() {
556
532
  this.iconVisibility = this.iconVisibleOnAnim === "true", this.animationStarted = !0, this.animationDone = !1, this.animation && this.animation.cancel(), this.selectedGameEl && (this.selectedGameEl.classList.remove("TheRandomGame"), this.selectedGame = null, this.selectedGameIndex = null), this.selectRandomGame();
557
- const n = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), e = parseInt(n, 10), a = this.selectedGameEl.offsetWidth, t = this.gameContainer.offsetWidth, o = (a + e) * this.selectedGameIndex + // Width of game cards up to the selected
558
- a / 2 - // Additional half card width to center to the selected game
559
- t / 2, m = [
533
+ const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), t = parseInt(e, 10), i = this.selectedGameEl.offsetWidth, a = this.gameContainer.offsetWidth, o = (i + t) * this.selectedGameIndex + // Width of game cards up to the selected
534
+ i / 2 - // Additional half card width to center to the selected game
535
+ a / 2, c = [
560
536
  { transform: "translateX(0px)", scale: 1 },
561
537
  { scale: 0.75 },
562
538
  { transform: `translateX(-${o}px)`, scale: 1 }
563
- ], d = {
539
+ ], g = {
564
540
  duration: 3e3,
565
541
  easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
566
542
  fill: "forwards"
567
543
  };
568
- this.animation = this.gameContainer.animate(m, d), this.animation.onfinish = () => {
544
+ this.animation = this.gameContainer.animate(c, g), this.animation.onfinish = () => {
569
545
  this.animationDone = !0, this.selectedGameEl.classList.add("TheRandomGame"), this.selectedGame = this.gamesToShow[this.selectedGameIndex];
570
546
  };
571
547
  }
@@ -580,13 +556,17 @@ const F = `:host {
580
556
  });
581
557
  }
582
558
  renderGameDetails() {
583
- return i("div", { class: "RandomButtonsWrapper" }, i("div", { class: "RandomGameDetails" }, i("span", { class: "RandomGameTitle" }, this.selectedGame.name), i("span", { class: "RandomGameInfo", onClick: () => this.showGameInfo() }, "i")), i("div", { class: "RandomButtons" }, i("button", { class: "RandomButton On", onClick: () => this.respin() }, s("spinRandomGame", this.language)), !this.launchByGameCard && i("button", { class: "RandomButton On", onClick: () => this.playGame() }, s("playNowRandomGame", this.language))));
559
+ return n("div", { class: "RandomButtonsWrapper" }, n("div", { class: "RandomGameDetails" }, n("span", { class: "RandomGameTitle" }, this.selectedGame.name), n("span", { class: "RandomGameInfo", onClick: () => this.showGameInfo() }, "i")), n("div", { class: "RandomButtons" }, n("button", { class: "RandomButton On", onClick: () => this.respin() }, s("spinRandomGame", this.language)), !this.launchByGameCard && n("button", { class: "RandomButton On", onClick: () => this.playGame() }, s("playNowRandomGame", this.language))));
560
+ }
561
+ renderSkeleton() {
562
+ const e = Array.from({ length: 5 }, (t, i) => n("div", { class: "RandomGameCard", key: i }, n("ui-skeleton", { structure: "rectangle", width: "300px", height: "420px", borderRadius: "10px", animation: !0 })));
563
+ return n("div", { class: "RandomGameWrapper" }, n("div", { class: "GameContainerGradient" }), n("div", { class: "GamesContainer" }, e));
584
564
  }
585
565
  render() {
586
- return i("div", { key: "07d7315d72cc4a34fd8ce7085efebd9161584570", ref: (n) => this.stylingContainer = n }, this.hasErrors ? i("div", { class: "RandomGameError" }, i("div", { class: "Title" }, s("error", this.language))) : this.isLoading ? i("div", { class: "RandomGameError" }, i("div", { class: "Title" }, s("randomGameLoading", this.language))) : i("div", { class: "RandomGameWrapper" }, i("div", { class: "GameContainerGradient" }), i("div", { class: "GamesContainer", ref: (n) => this.gameContainer = n }, this.gamesToShow && this.gamesToShow.map((n, e) => i("div", { class: "RandomGameCard", key: e, onClick: this.launchByGameCard === "true" ? () => this.playGame() : void 0 }, i("div", { class: "RandomGameVendor" }, n.vendor.name), i("img", { class: "RandomGameImage", src: n.thumbnail, alt: n.name, title: n.name }), this.selectedGame && this.selectedGameIndex === e && this.renderGameDetails()))), i("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, i("div", { class: "ButtonContainer" }, this.iconVisibility && i("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, i("div", { class: "QustionMark" }, "?"), i("div", { class: "HexagonMarkShadow" }), i("div", { class: "HexagonMark" })), !this.animationStarted && i("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, s("playRandomGame", this.language))))));
566
+ return n("div", { key: "ccc1e77093402e72a300ded18465085c182fbd79", ref: (e) => this.stylingContainer = e }, this.hasErrors ? n("div", { class: "RandomGameError" }, n("div", { class: "Title" }, s("error", this.language))) : this.isLoading ? this.renderSkeleton() : n("div", { class: "RandomGameWrapper" }, n("div", { class: "GameContainerGradient" }), n("div", { class: "GamesContainer", ref: (e) => this.gameContainer = e }, this.gamesToShow && this.gamesToShow.map((e, t) => n("div", { class: "RandomGameCard", key: t, onClick: this.launchByGameCard === "true" ? () => this.playGame() : void 0 }, n("div", { class: "RandomGameVendor" }, e.vendor.name), n("img", { class: "RandomGameImage", src: e.thumbnail, alt: e.name, title: e.name }), this.selectedGame && this.selectedGameIndex === t && this.renderGameDetails()))), n("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, n("div", { class: "ButtonContainer" }, this.iconVisibility && n("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, n("div", { class: "QustionMark" }, "?"), n("div", { class: "HexagonMarkShadow" }), n("div", { class: "HexagonMark" })), !this.animationStarted && n("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, s("playRandomGame", this.language))))));
587
567
  }
588
568
  get host() {
589
- return G(this);
569
+ return p(this);
590
570
  }
591
571
  static get watchers() {
592
572
  return {
@@ -600,7 +580,159 @@ const F = `:host {
600
580
  };
601
581
  }
602
582
  };
603
- I.style = L;
583
+ G.style = k;
584
+ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", R = v, S = class {
585
+ constructor(e) {
586
+ h(this, e), this.stylingValue = {
587
+ width: this.handleStylingProps(this.width),
588
+ height: this.handleStylingProps(this.height),
589
+ borderRadius: this.handleStylingProps(this.borderRadius),
590
+ marginBottom: this.handleStylingProps(this.marginBottom),
591
+ marginTop: this.handleStylingProps(this.marginTop),
592
+ marginLeft: this.handleStylingProps(this.marginLeft),
593
+ marginRight: this.handleStylingProps(this.marginRight),
594
+ size: this.handleStylingProps(this.size)
595
+ }, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%";
596
+ }
597
+ handleStructureChange(e, t) {
598
+ t !== e && this.handleStructure(e);
599
+ }
600
+ handleStylingProps(e) {
601
+ switch (typeof e) {
602
+ case "number":
603
+ return e === 0 ? 0 : `${e}px`;
604
+ case "undefined":
605
+ return "unset";
606
+ case "string":
607
+ return ["auto", "unset", "none", "inherit", "initial"].includes(e) || e.endsWith("px") || e.endsWith("%") ? e : "unset";
608
+ default:
609
+ return "unset";
610
+ }
611
+ }
612
+ handleStructure(e) {
613
+ switch (e) {
614
+ case "logo":
615
+ return this.renderLogo();
616
+ case "image":
617
+ return this.renderImage();
618
+ case "title":
619
+ return this.renderTitle();
620
+ case "text":
621
+ return this.renderText();
622
+ case "rectangle":
623
+ return this.renderRectangle();
624
+ case "circle":
625
+ return this.renderCircle();
626
+ default:
627
+ return null;
628
+ }
629
+ }
630
+ renderLogo() {
631
+ return n("div", { class: "SkeletonContainer" }, n("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
632
+ }
633
+ renderImage() {
634
+ return n("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
635
+ }
636
+ renderTitle() {
637
+ return n("div", { class: "SkeletonContainer" }, n("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
638
+ }
639
+ renderText() {
640
+ return n("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, t) => n("div", { key: t, class: "Text " + (this.animation ? "Skeleton" : "") })));
641
+ }
642
+ renderRectangle() {
643
+ return n("div", { class: "SkeletonContainer" }, n("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
644
+ }
645
+ renderCircle() {
646
+ return n("div", { class: "SkeletonContainer" }, n("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
647
+ }
648
+ render() {
649
+ let e = "";
650
+ switch (this.structure) {
651
+ case "logo":
652
+ e = `
653
+ :host {
654
+ --emw-skeleton-logo-width: ${this.stylingValue.width};
655
+ --emw-skeleton-logo-height: ${this.stylingValue.height};
656
+ --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
657
+ --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
658
+ --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
659
+ --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
660
+ --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
661
+ }
662
+ `;
663
+ break;
664
+ case "image":
665
+ e = `
666
+ :host {
667
+ --emw-skeleton-image-width: ${this.stylingValue.width};
668
+ --emw-skeleton-image-height: ${this.stylingValue.height};
669
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
670
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
671
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
672
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
673
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
674
+ }
675
+ `;
676
+ break;
677
+ case "title":
678
+ e = `
679
+ :host {
680
+ --emw-skeleton-title-width: ${this.stylingValue.width};
681
+ --emw-skeleton-title-height: ${this.stylingValue.height};
682
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
683
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
684
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
685
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
686
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
687
+ }
688
+ `;
689
+ break;
690
+ case "text":
691
+ e = `
692
+ :host {
693
+ --emw-skeleton-text-width: ${this.stylingValue.width};
694
+ --emw-skeleton-text-height: ${this.stylingValue.height};
695
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
696
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
697
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
698
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
699
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
700
+ }
701
+ `;
702
+ break;
703
+ case "rectangle":
704
+ e = `
705
+ :host {
706
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
707
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
708
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
709
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
710
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
711
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
712
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
713
+ }
714
+ `;
715
+ break;
716
+ case "circle":
717
+ e = `
718
+ :host {
719
+ --emw-skeleton-circle-size: ${this.stylingValue.size};
720
+ }
721
+ `;
722
+ break;
723
+ default:
724
+ e = "";
725
+ }
726
+ return n(w, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, n("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
727
+ }
728
+ static get watchers() {
729
+ return {
730
+ structure: ["handleStructureChange"]
731
+ };
732
+ }
733
+ };
734
+ S.style = R;
604
735
  export {
605
- I as casino_play_random_game
736
+ G as casino_play_random_game,
737
+ S as ui_skeleton
606
738
  };