@everymatrix/casino-page 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 (97) hide show
  1. package/components/{CasinoCalendar-CDNIjQ8T.js → CasinoCalendar-BuZNkBai.js} +987 -1001
  2. package/components/CasinoCalendar-CFUoQxq0.cjs +19 -0
  3. package/components/{CasinoCalendar-BVD-g7V2.js → CasinoCalendar-DdMvhCOA.js} +1049 -1063
  4. package/components/{CasinoCalendarDailyDetails-D_IsmUxa.js → CasinoCalendarDailyDetails-BCVIut1W.js} +75 -75
  5. package/components/{CasinoCalendarDailyDetails-Dun4o4bY.js → CasinoCalendarDailyDetails-ClfGxbko.js} +75 -75
  6. package/components/CasinoCalendarDailyDetails-Dqb6yp--.cjs +1 -0
  7. package/components/{CasinoCalendarDailyItem-r4x7VnIJ.cjs → CasinoCalendarDailyItem-BdDom59r.cjs} +1 -1
  8. package/components/{CasinoCalendarDailyItem-SgYp_4Zc.js → CasinoCalendarDailyItem-C1ADnaTt.js} +6 -6
  9. package/components/{CasinoCalendarDailyItem-lgiTsDmQ.js → CasinoCalendarDailyItem-CYfiDQkf.js} +6 -6
  10. package/components/{CasinoCollectionsProviders-Cfp1fpOk.js → CasinoCollectionsProviders-4kHMGeo6.js} +4 -4
  11. package/components/{CasinoCollectionsProviders-GH5hTDgu.js → CasinoCollectionsProviders-Br5ZzIwL.js} +4 -4
  12. package/components/{CasinoCollectionsProviders-DI8Ie4pa.cjs → CasinoCollectionsProviders-CM25qKz7.cjs} +1 -1
  13. package/components/{CasinoFavoritesSection-a8lLeyfm.js → CasinoFavoritesSection-DFbJjl93.js} +5 -5
  14. package/components/{CasinoFavoritesSection-BFy1do0y.js → CasinoFavoritesSection-kK1TQ8ht.js} +5 -5
  15. package/components/{CasinoFavoritesSection-VMDrouZv.cjs → CasinoFavoritesSection-rhkzJ6zc.cjs} +1 -1
  16. package/components/{CasinoFilter-DUp1Zmmm.js → CasinoFilter-1-YLqdq0.js} +225 -224
  17. package/components/CasinoFilter-Cc3Yv48X.cjs +1 -0
  18. package/components/{CasinoFilter-idsuQa6E.js → CasinoFilter-akdowSz4.js} +253 -254
  19. package/components/{CasinoGameThumbnail-DMHcWul3.js → CasinoGameThumbnail--7-bfdJ_.js} +1239 -1255
  20. package/components/CasinoGameThumbnail-BpBjsCjD.cjs +47 -0
  21. package/components/{CasinoGameThumbnail-C8VWWEBL.js → CasinoGameThumbnail-QX8Y_4Bo.js} +768 -752
  22. package/components/{CasinoGamesCategorySection-B_x3-ce_.js → CasinoGamesCategorySection-BH9sWCiX.js} +216 -216
  23. package/components/{CasinoGamesCategorySection-BmQ5Kyco.js → CasinoGamesCategorySection-BS3bBGLM.js} +230 -230
  24. package/components/CasinoGamesCategorySection-ZZs5EAVv.cjs +1 -0
  25. package/components/{CasinoJackpotBanner-Da0QCFOu.js → CasinoJackpotBanner--90-l4pm.js} +8 -8
  26. package/components/{CasinoJackpotBanner-BAVC4_Yz.js → CasinoJackpotBanner-Bdzek1XC.js} +8 -8
  27. package/components/{CasinoJackpotBanner-ClvtHhmd.cjs → CasinoJackpotBanner-CyyNiIY2.cjs} +1 -1
  28. package/components/{CasinoLastPlayedSection-B6i62lDv.js → CasinoLastPlayedSection-CCsVR0LD.js} +5 -5
  29. package/components/{CasinoLastPlayedSection-VRpXRKSJ.js → CasinoLastPlayedSection-r6Hevjnc.js} +5 -5
  30. package/components/{CasinoLastPlayedSection-DiovJKyt.cjs → CasinoLastPlayedSection-tXVS9NQ9.cjs} +1 -1
  31. package/components/{CasinoMostPlayedSection-DyYZcTqL.cjs → CasinoMostPlayedSection-BKTnsvK3.cjs} +1 -1
  32. package/components/{CasinoMostPlayedSection-D0ds51Be.js → CasinoMostPlayedSection-BruSwyS_.js} +7 -7
  33. package/components/{CasinoMostPlayedSection-B7KfZc37.js → CasinoMostPlayedSection-D6Yst0g3.js} +7 -7
  34. package/components/{CasinoMyGames-CZOenAE2.js → CasinoMyGames-BRX-YJoI.js} +8 -8
  35. package/components/{CasinoMyGames-J7BSQxiB.js → CasinoMyGames-D7WgWfaZ.js} +8 -8
  36. package/components/{CasinoMyGames-CbS5XU09.cjs → CasinoMyGames-DrEpKT_U.cjs} +1 -1
  37. package/components/{CasinoPage-BiFIRhYo.cjs → CasinoPage-CnqHLjYJ.cjs} +1 -1
  38. package/components/{CasinoPage-BFtMkGB_.js → CasinoPage-D8d0F_pn.js} +15 -15
  39. package/components/{CasinoPage-DaiHuGVW.js → CasinoPage-Dg6SmIwZ.js} +15 -15
  40. package/components/{CasinoRandomGame-3uoEGw78.cjs → CasinoRandomGame-CdQVMLbd.cjs} +2 -2
  41. package/components/{CasinoRandomGame-9Yw_xC5j.js → CasinoRandomGame-CtAOJXnF.js} +83 -83
  42. package/components/{CasinoRandomGame-DpKfvMwV.js → CasinoRandomGame-D7RweU9Y.js} +12 -12
  43. package/components/{CasinoSearch-pPULoiZA.cjs → CasinoSearch-BbEHE2ze.cjs} +1 -1
  44. package/components/{CasinoSearch-Cz5a7IL7.js → CasinoSearch-DPGpSaAE.js} +5 -5
  45. package/components/{CasinoSearch-DvY5WITU.js → CasinoSearch-J_mR3sz-.js} +5 -5
  46. package/components/{CasinoSort-BYQvNOsF.js → CasinoSort-5WNP_G3S.js} +94 -93
  47. package/components/{CasinoSort-CUCsGytJ.js → CasinoSort-BawqALZV.js} +102 -103
  48. package/components/{CasinoSort-DEzzINXT.cjs → CasinoSort-Du3lmlNe.cjs} +1 -1
  49. package/components/{CasinoWinners-Dr5wYAG5.js → CasinoWinners-BE029Vxq.js} +116 -116
  50. package/components/{CasinoWinners-CQf5gEvU.js → CasinoWinners-DCiuykjq.js} +116 -116
  51. package/components/{CasinoWinners-COmepRdG.cjs → CasinoWinners-XkR8Kmij.cjs} +1 -1
  52. package/components/{GeneralAnimationLoading-CBPC5I1a.js → GeneralAnimationLoading-BETs-Kib.js} +7 -7
  53. package/components/{GeneralAnimationLoading-CKgGhHlf.js → GeneralAnimationLoading-BlN4kA08.js} +7 -7
  54. package/components/{GeneralAnimationLoading-DTUTIYre.cjs → GeneralAnimationLoading-lIyg2-0l.cjs} +1 -1
  55. package/es2015/casino-page.cjs +1 -1
  56. package/es2015/casino-page.js +1 -1
  57. package/esnext/casino-page.js +1 -1
  58. package/package.json +1 -1
  59. package/stencil/casino-play-random-game-BGnpW6-t.js +25 -0
  60. package/stencil/casino-play-random-game-Dkt8_s5i.js +7 -0
  61. package/stencil/casino-play-random-game-_u9t_R_K.cjs +1 -0
  62. package/stencil/casino-play-random-game_2-BxEiwCaH.cjs +432 -0
  63. package/stencil/{casino-play-random-game-uBjWXXLi.js → casino-play-random-game_2-CO_ycbvG.js} +216 -66
  64. package/stencil/{casino-play-random-game-qroM0e64.js → casino-play-random-game_2-OLkBGlKQ.js} +223 -91
  65. package/stencil/{index-ab3202d6-CoRS04SH.js → index-328e660d-CgCMs0nk.js} +198 -197
  66. package/stencil/{index-ab3202d6-CSUArOSv.js → index-328e660d-DIiqSVTN.js} +194 -193
  67. package/stencil/index-328e660d-pKNw3-4H.cjs +1 -0
  68. package/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
  69. package/stencil/{index-97d17652-DJqGt8q2.js → index-97d17652-C7V2DWFg.js} +147 -147
  70. package/stencil/{index-97d17652-BD-QREJe.js → index-97d17652-DIpvPU9H.js} +151 -151
  71. package/stencil/{index-b2193545-kN0z2MLt.js → index-b2193545-BL364Gzq.js} +169 -169
  72. package/stencil/{index-b2193545-D_cUvAA-.js → index-b2193545-DdqB2rk5.js} +176 -176
  73. package/stencil/index-b2193545-DmjUkkS8.cjs +1 -0
  74. package/stencil/{ui-image-I_uR7pAI.js → ui-image-B_HWMBI-.js} +1 -1
  75. package/stencil/{ui-image-BAqS-hS6.js → ui-image-CzGNxx73.js} +1 -1
  76. package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
  77. package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
  78. package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
  79. package/stencil/{ui-image-CH2Jdp7k.cjs → ui-image-wubI3fkK.cjs} +1 -1
  80. package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-CzFe50WB.js} +2 -2
  81. package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
  82. package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-z5LhXZY2.js} +2 -2
  83. package/stencil/{ui-skeleton-C0GZ2ncD.js → ui-skeleton-CsmgJUYN.js} +2 -2
  84. package/stencil/{ui-skeleton-5mt1L8pA.cjs → ui-skeleton-DTQ__6LQ.cjs} +1 -1
  85. package/stencil/{ui-skeleton-ae35c6f2-BSwiS43c.js → ui-skeleton-ae35c6f2-BRNiEwlg.js} +1 -1
  86. package/stencil/{ui-skeleton-ae35c6f2-CQ3pH6qH.cjs → ui-skeleton-ae35c6f2-CZuWo9GO.cjs} +1 -1
  87. package/stencil/{ui-skeleton-ae35c6f2-BmKf7IvD.js → ui-skeleton-ae35c6f2-CxSezPtG.js} +1 -1
  88. package/stencil/{ui-skeleton-CYeeBz0Q.js → ui-skeleton-yRWBmyfK.js} +2 -2
  89. package/components/CasinoCalendar-B4OJuO_L.cjs +0 -19
  90. package/components/CasinoCalendarDailyDetails-BEUNC6Xh.cjs +0 -1
  91. package/components/CasinoFilter-BX1QlpN6.cjs +0 -1
  92. package/components/CasinoGameThumbnail-D4tCeYJQ.cjs +0 -47
  93. package/components/CasinoGamesCategorySection-DeeY3KIg.cjs +0 -1
  94. package/stencil/casino-play-random-game-C3hhQjhn.cjs +0 -378
  95. package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
  96. package/stencil/index-ab3202d6-DitihRZv.cjs +0 -1
  97. package/stencil/index-b2193545-3zPNeE9v.cjs +0 -1
@@ -1,14 +1,8 @@
1
- import { b as p, p as g, r as u, c as f, h as i, g as w } from "./index-ab3202d6-CSUArOSv.js";
2
- import { g as y } from "./app-globals-0f993ce5-DfNOCk8l.js";
3
- var x = () => {
4
- const n = import.meta.url, e = {};
5
- return n !== "" && (e.resourcesUrl = new URL(".", n).href), g(e);
6
- };
7
- x().then(async (n) => (await y(), p([["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)));
8
- const b = () => {
9
- let n = window.navigator.userAgent;
10
- return n.toLowerCase().match(/android/i) ? "Android" : n.toLowerCase().match(/iphone/i) ? "iPhone" : n.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
11
- }, G = "en", s = {
1
+ import { r as h, c as u, h as n, g as p, H as w } from "./index-328e660d-DIiqSVTN.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 = {
12
6
  en: {
13
7
  error: "Error",
14
8
  randomGameLoading: "Loading ...",
@@ -51,42 +45,42 @@ const b = () => {
51
45
  playNowRandomGame: "Şimdi Oyna",
52
46
  spinRandomGame: "DEĞİŞTİR"
53
47
  }
54
- }, l = (n) => new Promise((e) => {
55
- fetch(n).then((t) => t.json()).then((t) => {
56
- Object.keys(t).forEach((a) => {
57
- s[a] || (s[a] = {});
58
- for (let o in t[a])
59
- s[a][o] = t[a][o];
60
- }), 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);
61
55
  });
62
- }), r = (n, e) => {
63
- const t = e;
64
- return s[t !== void 0 && t in s ? t : G][n];
56
+ }), s = (e, t) => {
57
+ const i = t;
58
+ return r[i !== void 0 && i in r ? i : y][e];
65
59
  };
66
- function m(n, e) {
67
- if (n) {
68
- const t = document.createElement("style");
69
- t.innerHTML = e, n.appendChild(t);
60
+ function m(e, t) {
61
+ if (e) {
62
+ const i = document.createElement("style");
63
+ i.innerHTML = t, e.appendChild(i);
70
64
  }
71
65
  }
72
- function d(n, e) {
73
- const t = new URL(e);
74
- fetch(t.href).then((a) => a.text()).then((a) => {
66
+ function d(e, t) {
67
+ const i = new URL(t);
68
+ fetch(i.href).then((a) => a.text()).then((a) => {
75
69
  const o = document.createElement("style");
76
- o.innerHTML = a, n && n.appendChild(o);
70
+ o.innerHTML = a, e && e.appendChild(o);
77
71
  }).catch((a) => {
78
72
  console.error("There was an error while trying to load client styling from URL", a);
79
73
  });
80
74
  }
81
- function v(n, e, t) {
75
+ function x(e, t, i) {
82
76
  if (window.emMessageBus) {
83
77
  const a = document.createElement("style");
84
- window.emMessageBus.subscribe(e, (o) => {
85
- a.innerHTML = o, n && n.appendChild(a);
78
+ window.emMessageBus.subscribe(t, (o) => {
79
+ a.innerHTML = o, e && e.appendChild(a);
86
80
  });
87
81
  }
88
82
  }
89
- const R = `:host {
83
+ const b = `:host {
90
84
  display: block;
91
85
  font-family: inherit;
92
86
  -webkit-transform: translate3d(0, 0, 0);
@@ -463,17 +457,17 @@ const R = `:host {
463
457
  width: 70px;
464
458
  height: 85px;
465
459
  }
466
- }`, C = R, k = class {
467
- constructor(n) {
468
- u(this, n), this.dataLoaded = f(this, "data-loaded", 7), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
469
- let t = e.length, a;
470
- for (; t !== 0; )
471
- a = Math.floor(Math.random() * t), t--, [e[t], e[a]] = [e[a], e[t]];
472
- 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;
473
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;
474
468
  }
475
- watchEndpoint(n, e) {
476
- n && n != e && this.endpoint && this.fetchGameList();
469
+ watchEndpoint(e, t) {
470
+ e && e != t && this.endpoint && this.fetchGameList();
477
471
  }
478
472
  handleNewTranslations() {
479
473
  this.isLoading = !0, l(this.translationUrl).then(() => {
@@ -483,11 +477,11 @@ const R = `:host {
483
477
  handleIsIconVisible() {
484
478
  this.iconVisibility = this.iconVisible === "true";
485
479
  }
486
- handleClientStylingChange(n, e) {
487
- n != e && m(this.stylingContainer, this.clientStyling);
480
+ handleClientStylingChange(e, t) {
481
+ e != t && m(this.stylingContainer, this.clientStyling);
488
482
  }
489
- handleClientStylingChangeURL(n, e) {
490
- n != e && this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl);
483
+ handleClientStylingChangeURL(e, t) {
484
+ e != t && this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl);
491
485
  }
492
486
  connectedCallback() {
493
487
  this.handleIsIconVisible();
@@ -497,18 +491,18 @@ const R = `:host {
497
491
  return this.fetchGameList();
498
492
  }
499
493
  componentDidLoad() {
500
- window.emMessageBus != null ? v(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && m(this.stylingContainer, this.clientStyling), this.clientStylingUrl && d(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));
501
495
  }
502
496
  disconnectedCallback() {
503
497
  this.stylingSubscription && this.stylingSubscription.unsubscribe();
504
498
  }
505
499
  fetchGameList() {
506
- let n = new URL(`${this.endpoint}/v1/casino/games`);
507
- return n.searchParams.append("platform", b()), 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, t) => {
508
- this.isLoading = !0, fetch(n.href).then((a) => a.json()).then((a) => {
509
- this.gamesToShow = this.setUpGames(a?.items), e(!0);
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?.items), t(!0);
510
504
  }).catch((a) => {
511
- console.error(a), this.hasErrors = !0, t(a);
505
+ console.error(a), this.hasErrors = !0, i(a);
512
506
  }).finally(() => {
513
507
  this.isLoading = !1, this.dataLoaded.emit({
514
508
  target: this.host
@@ -516,13 +510,13 @@ const R = `:host {
516
510
  });
517
511
  });
518
512
  }
519
- setUpGames(n) {
520
- const e = this.shuffle(n).slice(0, 40);
521
- return e.concat(e);
513
+ setUpGames(e) {
514
+ const t = this.shuffle(e).slice(0, 40);
515
+ return t.concat(t);
522
516
  }
523
517
  selectRandomGame() {
524
- const n = this.gamesToShow.length / 2;
525
- 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];
526
520
  }
527
521
  playRandomGame() {
528
522
  this.animateGames(), typeof gtag == "function" && gtag("event", "PlayRandomGame", {
@@ -536,18 +530,18 @@ const R = `:host {
536
530
  }
537
531
  animateGames() {
538
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();
539
- const n = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), e = parseInt(n, 10), t = this.selectedGameEl.offsetWidth, a = this.gameContainer.offsetWidth, o = (t + e) * this.selectedGameIndex + // Width of game cards up to the selected
540
- t / 2 - // Additional half card width to center to the selected game
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
541
535
  a / 2, c = [
542
536
  { transform: "translateX(0px)", scale: 1 },
543
537
  { scale: 0.75 },
544
538
  { transform: `translateX(-${o}px)`, scale: 1 }
545
- ], h = {
539
+ ], g = {
546
540
  duration: 3e3,
547
541
  easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
548
542
  fill: "forwards"
549
543
  };
550
- this.animation = this.gameContainer.animate(c, h), this.animation.onfinish = () => {
544
+ this.animation = this.gameContainer.animate(c, g), this.animation.onfinish = () => {
551
545
  this.animationDone = !0, this.selectedGameEl.classList.add("TheRandomGame"), this.selectedGame = this.gamesToShow[this.selectedGameIndex];
552
546
  };
553
547
  }
@@ -562,13 +556,17 @@ const R = `:host {
562
556
  });
563
557
  }
564
558
  renderGameDetails() {
565
- 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() }, r("spinRandomGame", this.language)), !this.launchByGameCard && i("button", { class: "RandomButton On", onClick: () => this.playGame() }, r("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));
566
564
  }
567
565
  render() {
568
- return i("div", { key: "07d7315d72cc4a34fd8ce7085efebd9161584570", ref: (n) => this.stylingContainer = n }, this.hasErrors ? i("div", { class: "RandomGameError" }, i("div", { class: "Title" }, r("error", this.language))) : this.isLoading ? i("div", { class: "RandomGameError" }, i("div", { class: "Title" }, r("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() }, r("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))))));
569
567
  }
570
568
  get host() {
571
- return w(this);
569
+ return p(this);
572
570
  }
573
571
  static get watchers() {
574
572
  return {
@@ -582,7 +580,159 @@ const R = `:host {
582
580
  };
583
581
  }
584
582
  };
585
- k.style = C;
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;
586
735
  export {
587
- k as casino_play_random_game
736
+ G as casino_play_random_game,
737
+ S as ui_skeleton
588
738
  };