@everymatrix/casino-lobby 1.76.13 → 1.76.14

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 (114) hide show
  1. package/components/{CasinoCalendar-Dxl0GZ3V.js → CasinoCalendar-BZlbzIin.js} +1014 -1035
  2. package/components/{CasinoCalendar-uF_NF6m7.js → CasinoCalendar-CZ62CEJ3.js} +839 -860
  3. package/components/CasinoCalendar-Ckv0A9rH.cjs +19 -0
  4. package/components/{CasinoCalendarDailyDetails-CkFGHBr1.js → CasinoCalendarDailyDetails-BRGaLc7D.js} +38 -38
  5. package/components/{CasinoCalendarDailyDetails-5fca8ybY.cjs → CasinoCalendarDailyDetails-DJyHVqld.cjs} +1 -1
  6. package/components/{CasinoCalendarDailyDetails-D2EcpVsk.js → CasinoCalendarDailyDetails-DOG0EpeI.js} +38 -38
  7. package/components/{CasinoCalendarDailyItem-BjMHq8z0.js → CasinoCalendarDailyItem-BEPClsAB.js} +34 -34
  8. package/components/{CasinoCalendarDailyItem-CtrwuSMm.cjs → CasinoCalendarDailyItem-BMfgPOSR.cjs} +1 -1
  9. package/components/{CasinoCalendarDailyItem-CJ4Y1TDs.js → CasinoCalendarDailyItem-CJYNZGM1.js} +34 -34
  10. package/components/{CasinoCategoriesSlider-D4K2b7AX.js → CasinoCategoriesSlider-Bhi0fD1k.js} +72 -72
  11. package/components/CasinoCategoriesSlider-C96NA08s.cjs +1 -0
  12. package/components/{CasinoCategoriesSlider-Dw9WFkz4.js → CasinoCategoriesSlider-DmZ4rtlg.js} +73 -73
  13. package/components/{CasinoCollectionsProviders-DjFfFkmU.js → CasinoCollectionsProviders-CjD1H3N4.js} +77 -77
  14. package/components/{CasinoCollectionsProviders-BN0zNeS7.js → CasinoCollectionsProviders-DV_3RnLx.js} +64 -64
  15. package/components/{CasinoCollectionsProviders-C3QOX3KF.cjs → CasinoCollectionsProviders-GzxnaRrd.cjs} +1 -1
  16. package/components/{CasinoFavoritesSection-DjSYlAHs.js → CasinoFavoritesSection-4mBWb0-n.js} +18 -18
  17. package/components/{CasinoFavoritesSection-C_SVbyBn.cjs → CasinoFavoritesSection-BElzuDwz.cjs} +1 -1
  18. package/components/{CasinoFavoritesSection-DFYpAORF.js → CasinoFavoritesSection-DDJYibde.js} +18 -18
  19. package/components/{CasinoFilter-D0wftMel.js → CasinoFilter-C2w5IDsC.js} +224 -225
  20. package/components/{CasinoFilter-Bgc2OX7A.js → CasinoFilter-CQFSugx3.js} +245 -244
  21. package/components/CasinoFilter-Di50Udn3.cjs +1 -0
  22. package/components/{CasinoGameThumbnail-DDj9LrBn.js → CasinoGameThumbnail-BPsK9FK6.js} +762 -778
  23. package/components/{CasinoGameThumbnail-DAeRoqVl.js → CasinoGameThumbnail-BkCWJCGK.js} +1269 -1253
  24. package/components/CasinoGameThumbnail-CjDBp8Vy.cjs +47 -0
  25. package/components/{CasinoGamesCategorySection-CxjrZ9Mg.js → CasinoGamesCategorySection-COgOuQ6S.js} +300 -300
  26. package/components/{CasinoGamesCategorySection-BZ4VTmC0.js → CasinoGamesCategorySection-D7gSnBvl.js} +301 -301
  27. package/components/{CasinoGamesCategorySection-D9w4jWch.cjs → CasinoGamesCategorySection-uIPANdh1.cjs} +1 -1
  28. package/components/{CasinoJackpotBanner-yvjEOEuA.cjs → CasinoJackpotBanner-BaH4sE4J.cjs} +1 -1
  29. package/components/{CasinoJackpotBanner-VCXNOk6T.js → CasinoJackpotBanner-C7zgGg5_.js} +88 -88
  30. package/components/{CasinoJackpotBanner-TsNpk7MF.js → CasinoJackpotBanner-Cge3PP3w.js} +83 -83
  31. package/components/{CasinoLastPlayedSection-BlnAstfd.js → CasinoLastPlayedSection--ZH8kFO7.js} +33 -33
  32. package/components/{CasinoLastPlayedSection-CqanYCAJ.cjs → CasinoLastPlayedSection-D1i9Uh1L.cjs} +1 -1
  33. package/components/{CasinoLastPlayedSection-CReBS3dw.js → CasinoLastPlayedSection-DPZgK1Rw.js} +33 -33
  34. package/components/{CasinoLobby-BszY9gce.cjs → CasinoLobby-Cld3efkW.cjs} +1 -1
  35. package/components/{CasinoLobby-BdqnR3Yy.js → CasinoLobby-DAIJPyhU.js} +59 -59
  36. package/components/{CasinoLobby-BqU0yhJX.js → CasinoLobby-FylWUKW8.js} +59 -59
  37. package/components/{CasinoMostPlayedSection-gUjt91qe.cjs → CasinoMostPlayedSection-BlFmw7ae.cjs} +1 -1
  38. package/components/{CasinoMostPlayedSection-B07bcZSb.js → CasinoMostPlayedSection-D3gP_VmS.js} +46 -46
  39. package/components/{CasinoMostPlayedSection-C__zgZB_.js → CasinoMostPlayedSection-DwsGi9fQ.js} +46 -46
  40. package/components/{CasinoMyGames-jJWJoluY.js → CasinoMyGames--eHlRDLw.js} +28 -28
  41. package/components/{CasinoMyGames-BjpVKSGM.js → CasinoMyGames-BQRS1iPf.js} +28 -28
  42. package/components/{CasinoMyGames-BrR9nn1l.cjs → CasinoMyGames-Ct_tK7Dl.cjs} +1 -1
  43. package/components/{CasinoPage-C_zD5R2t.js → CasinoPage-Cimk4LJj.js} +124 -124
  44. package/components/{CasinoPage-CXwLK2oL.js → CasinoPage-DzY_luPG.js} +110 -110
  45. package/components/{CasinoPage-Bda9NKde.cjs → CasinoPage-y4mwVBLI.cjs} +1 -1
  46. package/components/{CasinoRandomGame-DJnB5Fhm.cjs → CasinoRandomGame-48hm2zQ7.cjs} +1 -1
  47. package/components/{CasinoRandomGame-CSrB_Zq2.js → CasinoRandomGame-BqJ8e7yR.js} +57 -57
  48. package/components/{CasinoRandomGame-BWebIH8V.js → CasinoRandomGame-DGh3E5ZN.js} +56 -56
  49. package/components/{CasinoSearch-CcHIKzRN.js → CasinoSearch-Bjt2LYdz.js} +98 -98
  50. package/components/{CasinoSearch-CwADZYFB.js → CasinoSearch-CyA3ODoz.js} +95 -95
  51. package/components/{CasinoSearch-DcUqk5L0.cjs → CasinoSearch-Dztg2BnM.cjs} +1 -1
  52. package/components/{CasinoSlider-Ctpht2Hg.cjs → CasinoSlider-BlA6YGt9.cjs} +1 -1
  53. package/components/{CasinoSlider-D40zgViI.js → CasinoSlider-DVgo3Nc7.js} +86 -86
  54. package/components/{CasinoSlider-CJpeC5z_.js → CasinoSlider-DwtTNiYj.js} +87 -87
  55. package/components/{CasinoSort-CydlqJP8.js → CasinoSort-8a3TBNjG.js} +112 -111
  56. package/components/{CasinoSort-CMZayycI.js → CasinoSort-BR8fSbAb.js} +102 -103
  57. package/components/{CasinoSort-DjCxKlZJ.cjs → CasinoSort-BctECC7t.cjs} +1 -1
  58. package/components/{CasinoWinners-Cqmnci0O.cjs → CasinoWinners-B7DAQBQw.cjs} +1 -1
  59. package/components/{CasinoWinners-B-qcd_Bf.js → CasinoWinners-CGG37Toh.js} +152 -152
  60. package/components/{CasinoWinners-DcqEgS6B.js → CasinoWinners-Z2hNzLpn.js} +145 -145
  61. package/components/{GeneralAnimationLoading-C8aWcUd_.js → GeneralAnimationLoading-C96Qoq2Z.js} +16 -16
  62. package/components/{GeneralAnimationLoading-Cjhmg9V_.cjs → GeneralAnimationLoading-C_p3gPuh.cjs} +1 -1
  63. package/components/{GeneralAnimationLoading-Oqx65Onk.js → GeneralAnimationLoading-DKWROEgu.js} +16 -16
  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-BBAN6qZv.cjs +1 -0
  69. package/stencil/casino-play-random-game-CYUXdZj7.js +25 -0
  70. package/stencil/casino-play-random-game-ywb1c71b.js +7 -0
  71. package/stencil/casino-play-random-game_3-BAcddQtP.cjs +432 -0
  72. package/stencil/{casino-play-random-game_2-EAIMj5kG.js → casino-play-random-game_3-DPJnqamY.js} +155 -66
  73. package/stencil/{casino-play-random-game_2-BGE-oMV1.js → casino-play-random-game_3-wK2KnqF2.js} +155 -66
  74. package/stencil/index-242ac81a-Bl2OSy8h.js +538 -0
  75. package/stencil/index-242ac81a-Czg480dJ.js +554 -0
  76. package/stencil/index-242ac81a-DDPF_SYN.cjs +1 -0
  77. package/stencil/index-27b314b8-B9Z1iOB7.cjs +1 -0
  78. package/stencil/index-27b314b8-CXVYGv5J.js +581 -0
  79. package/stencil/index-27b314b8-VBAz23AH.js +565 -0
  80. package/stencil/index-b2193545-3zPNeE9v.cjs +1 -0
  81. package/stencil/index-b2193545-D_cUvAA-.js +519 -0
  82. package/stencil/index-b2193545-kN0z2MLt.js +503 -0
  83. package/stencil/{ui-image-2ff23cd5-BHGIWJop.cjs → ui-image-2ff23cd5-BU5r6gJa.cjs} +1 -1
  84. package/stencil/{ui-image-2ff23cd5-DCLQ0SIO.js → ui-image-2ff23cd5-CBX1vdMZ.js} +1 -1
  85. package/stencil/{ui-image-2ff23cd5-D0rXudCW.js → ui-image-2ff23cd5-DZZYCsK1.js} +1 -1
  86. package/stencil/{ui-image-Cd2KxMB7.cjs → ui-image-BW6fTlRA.cjs} +1 -1
  87. package/stencil/{ui-image-adPxpjgH.js → ui-image-CkpZfL9y.js} +1 -1
  88. package/stencil/{ui-image-CVrTqLhl.js → ui-image-f_pO_wKA.js} +1 -1
  89. package/stencil/{ui-image_2-CLk629jW.cjs → ui-image_2-Bsl4RJfi.cjs} +1 -1
  90. package/stencil/{ui-image_2-VgK3B8gQ.js → ui-image_2-ID_1Oi3k.js} +2 -2
  91. package/stencil/{ui-image_2-B21W_djK.js → ui-image_2-exO7RXKL.js} +2 -2
  92. package/stencil/{ui-skeleton-DcmFcn7k.cjs → ui-skeleton-5mt1L8pA.cjs} +1 -1
  93. package/stencil/{ui-skeleton-CSMUbPcJ.js → ui-skeleton-C0GZ2ncD.js} +2 -2
  94. package/stencil/{ui-skeleton-CiszU04_.js → ui-skeleton-CYeeBz0Q.js} +2 -2
  95. package/stencil/{ui-skeleton-ae35c6f2-DDHvWmVB.js → ui-skeleton-ae35c6f2-BSwiS43c.js} +1 -1
  96. package/stencil/{ui-skeleton-ae35c6f2-9hZ7WFQc.js → ui-skeleton-ae35c6f2-BmKf7IvD.js} +1 -1
  97. package/stencil/{ui-skeleton-ae35c6f2-D1Tb0H8D.cjs → ui-skeleton-ae35c6f2-CQ3pH6qH.cjs} +1 -1
  98. package/components/CasinoCalendar-l9GnvvJt.cjs +0 -19
  99. package/components/CasinoCategoriesSlider-CsJ_SF6Z.cjs +0 -1
  100. package/components/CasinoFilter-B7H2bJ-G.cjs +0 -1
  101. package/components/CasinoGameThumbnail-BCV2_lP-.cjs +0 -47
  102. package/stencil/casino-play-random-game-Bcp8xLrL.js +0 -7
  103. package/stencil/casino-play-random-game-Cbqs6gZA.cjs +0 -1
  104. package/stencil/casino-play-random-game-W_JDRP5P.js +0 -25
  105. package/stencil/casino-play-random-game_2-CsaKuS_m.cjs +0 -432
  106. package/stencil/index-242ac81a-BqeIndhr.js +0 -554
  107. package/stencil/index-242ac81a-CI4JxPRf.js +0 -538
  108. package/stencil/index-242ac81a-CjjM4VND.cjs +0 -1
  109. package/stencil/index-328e660d-CV2Ft9VG.js +0 -560
  110. package/stencil/index-328e660d-CX4nYxdf.js +0 -576
  111. package/stencil/index-328e660d-rQhlf25X.cjs +0 -1
  112. package/stencil/index-b2193545-DVT8jgVo.cjs +0 -1
  113. package/stencil/index-b2193545-Dxw-xjac.js +0 -503
  114. package/stencil/index-b2193545-TbRClz6K.js +0 -519
@@ -1,8 +1,8 @@
1
- import { r as h, c as u, h as n, g as p, H as w } from "./index-328e660d-CX4nYxdf.js";
2
- const f = () => {
1
+ import { r as d, c as f, h as t, g, H as l } from "./index-27b314b8-CXVYGv5J.js";
2
+ const w = () => {
3
3
  let e = window.navigator.userAgent;
4
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 = {
5
+ }, y = "en", s = {
6
6
  en: {
7
7
  error: "Error",
8
8
  randomGameLoading: "Loading ...",
@@ -45,42 +45,42 @@ const f = () => {
45
45
  playNowRandomGame: "Şimdi Oyna",
46
46
  spinRandomGame: "DEĞİŞTİR"
47
47
  }
48
- }, l = (e) => new Promise((t) => {
48
+ }, m = (e) => new Promise((n) => {
49
49
  fetch(e).then((i) => i.json()).then((i) => {
50
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);
51
+ s[a] || (s[a] = {});
52
+ for (let r in i[a])
53
+ s[a][r] = i[a][r];
54
+ }), n(!0);
55
55
  });
56
- }), s = (e, t) => {
57
- const i = t;
58
- return r[i !== void 0 && i in r ? i : y][e];
56
+ }), o = (e, n) => {
57
+ const i = n;
58
+ return s[i !== void 0 && i in s ? i : y][e];
59
59
  };
60
- function m(e, t) {
60
+ function h(e, n) {
61
61
  if (e) {
62
62
  const i = document.createElement("style");
63
- i.innerHTML = t, e.appendChild(i);
63
+ i.innerHTML = n, e.appendChild(i);
64
64
  }
65
65
  }
66
- function d(e, t) {
67
- const i = new URL(t);
66
+ function c(e, n) {
67
+ const i = new URL(n);
68
68
  fetch(i.href).then((a) => a.text()).then((a) => {
69
- const o = document.createElement("style");
70
- o.innerHTML = a, e && e.appendChild(o);
69
+ const r = document.createElement("style");
70
+ r.innerHTML = a, e && e.appendChild(r);
71
71
  }).catch((a) => {
72
72
  console.error("There was an error while trying to load client styling from URL", a);
73
73
  });
74
74
  }
75
- function x(e, t, i) {
75
+ function b(e, n, i) {
76
76
  if (window.emMessageBus) {
77
77
  const a = document.createElement("style");
78
- window.emMessageBus.subscribe(t, (o) => {
79
- a.innerHTML = o, e && e.appendChild(a);
78
+ window.emMessageBus.subscribe(n, (r) => {
79
+ a.innerHTML = r, e && e.appendChild(a);
80
80
  });
81
81
  }
82
82
  }
83
- const b = `:host {
83
+ const x = `:host {
84
84
  display: block;
85
85
  font-family: inherit;
86
86
  -webkit-transform: translate3d(0, 0, 0);
@@ -457,50 +457,56 @@ const b = `:host {
457
457
  width: 70px;
458
458
  height: 85px;
459
459
  }
460
- }`, k = b, G = class {
460
+ }`, v = x, k = class {
461
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;
462
+ d(this, e), this.dataLoaded = f(this, "data-loaded", 7), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (n) => {
463
+ let i = n.length, a;
464
464
  for (; i !== 0; )
465
- a = Math.floor(Math.random() * i), i--, [t[i], t[a]] = [t[a], t[i]];
466
- return t;
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;
465
+ a = Math.floor(Math.random() * i), i--, [n[i], n[a]] = [n[a], n[i]];
466
+ return n;
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, this.imageLoadingType = "lazy", this.detectDistance = "200px";
468
468
  }
469
- watchEndpoint(e, t) {
470
- e && e != t && this.endpoint && this.fetchGameList();
469
+ watchEndpoint(e, n) {
470
+ e && e != n && this.endpoint && this.fetchGameList();
471
471
  }
472
472
  handleNewTranslations() {
473
- this.isLoading = !0, l(this.translationUrl).then(() => {
473
+ this.isLoading = !0, m(this.translationUrl).then(() => {
474
474
  this.isLoading = !1;
475
475
  });
476
476
  }
477
477
  handleIsIconVisible() {
478
478
  this.iconVisibility = this.iconVisible === "true";
479
479
  }
480
- handleClientStylingChange(e, t) {
481
- e != t && m(this.stylingContainer, this.clientStyling);
480
+ handleClientStylingChange(e, n) {
481
+ e != n && h(this.stylingContainer, this.clientStyling);
482
482
  }
483
- handleClientStylingChangeURL(e, t) {
484
- e != t && this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl);
483
+ handleClientStylingChangeURL(e, n) {
484
+ e != n && this.clientStylingUrl && c(this.stylingContainer, this.clientStylingUrl);
485
485
  }
486
486
  connectedCallback() {
487
487
  this.handleIsIconVisible();
488
488
  }
489
489
  componentWillLoad() {
490
- if (this.translationUrl.length > 2 && l(this.translationUrl), this.endpoint && this.language && this.datasource)
490
+ if (this.translationUrl.length > 2 && m(this.translationUrl), this.endpoint && this.language && this.datasource)
491
491
  return this.fetchGameList();
492
492
  }
493
493
  componentDidLoad() {
494
- window.emMessageBus != null ? x(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && m(this.stylingContainer, this.clientStyling), this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl));
494
+ "IntersectionObserver" in window && (this.io = new IntersectionObserver((e) => {
495
+ e.forEach((n) => {
496
+ var i;
497
+ n.isIntersecting && (this.imageLoadingType = "eager", (i = this.io) === null || i === void 0 || i.unobserve(n.target));
498
+ });
499
+ }, { root: null, rootMargin: this.detectDistance }), this.io.observe(this.host)), window.emMessageBus != null ? b(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && h(this.stylingContainer, this.clientStyling), this.clientStylingUrl && c(this.stylingContainer, this.clientStylingUrl));
495
500
  }
496
501
  disconnectedCallback() {
497
- this.stylingSubscription && this.stylingSubscription.unsubscribe();
502
+ var e;
503
+ (e = this.io) === null || e === void 0 || e.disconnect(), this.stylingSubscription && this.stylingSubscription.unsubscribe();
498
504
  }
499
505
  fetchGameList() {
500
506
  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) => {
507
+ return e.searchParams.append("platform", w()), 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((n, i) => {
502
508
  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);
509
+ this.gamesToShow = this.setUpGames(a == null ? void 0 : a.items), n(!0);
504
510
  }).catch((a) => {
505
511
  console.error(a), this.hasErrors = !0, i(a);
506
512
  }).finally(() => {
@@ -511,8 +517,8 @@ const b = `:host {
511
517
  });
512
518
  }
513
519
  setUpGames(e) {
514
- const t = this.shuffle(e).slice(0, 40);
515
- return t.concat(t);
520
+ const n = this.shuffle(e).slice(0, 40);
521
+ return n.concat(n);
516
522
  }
517
523
  selectRandomGame() {
518
524
  const e = this.gamesToShow.length / 2;
@@ -530,18 +536,18 @@ const b = `:host {
530
536
  }
531
537
  animateGames() {
532
538
  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();
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
539
+ const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), n = parseInt(e, 10), i = this.selectedGameEl.offsetWidth, a = this.gameContainer.offsetWidth, r = (i + n) * this.selectedGameIndex + // Width of game cards up to the selected
534
540
  i / 2 - // Additional half card width to center to the selected game
535
- a / 2, c = [
541
+ a / 2, u = [
536
542
  { transform: "translateX(0px)", scale: 1 },
537
543
  { scale: 0.75 },
538
- { transform: `translateX(-${o}px)`, scale: 1 }
539
- ], g = {
544
+ { transform: `translateX(-${r}px)`, scale: 1 }
545
+ ], p = {
540
546
  duration: 3e3,
541
547
  easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
542
548
  fill: "forwards"
543
549
  };
544
- this.animation = this.gameContainer.animate(c, g), this.animation.onfinish = () => {
550
+ this.animation = this.gameContainer.animate(u, p), this.animation.onfinish = () => {
545
551
  this.animationDone = !0, this.selectedGameEl.classList.add("TheRandomGame"), this.selectedGame = this.gamesToShow[this.selectedGameIndex];
546
552
  };
547
553
  }
@@ -556,17 +562,17 @@ const b = `:host {
556
562
  });
557
563
  }
558
564
  renderGameDetails() {
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))));
565
+ return t("div", { class: "RandomButtonsWrapper" }, t("div", { class: "RandomGameDetails" }, t("span", { class: "RandomGameTitle" }, this.selectedGame.name), t("span", { class: "RandomGameInfo", onClick: () => this.showGameInfo() }, "i")), t("div", { class: "RandomButtons" }, t("button", { class: "RandomButton On", onClick: () => this.respin() }, o("spinRandomGame", this.language)), !this.launchByGameCard && t("button", { class: "RandomButton On", onClick: () => this.playGame() }, o("playNowRandomGame", this.language))));
560
566
  }
561
567
  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));
568
+ const e = Array.from({ length: 5 }, (n, i) => t("div", { class: "RandomGameCard", key: i }, t("ui-skeleton", { structure: "rectangle", width: "300px", height: "420px", borderRadius: "10px", animation: !0 })));
569
+ return t("div", { class: "RandomGameWrapper" }, t("div", { class: "GameContainerGradient" }), t("div", { class: "GamesContainer" }, e));
564
570
  }
565
571
  render() {
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))))));
572
+ return t("div", { key: "29fe3535d63177e6d1f30a757bf17b70d89ce386", ref: (e) => this.stylingContainer = e }, this.hasErrors ? t("div", { class: "RandomGameError" }, t("div", { class: "Title" }, o("error", this.language))) : this.isLoading ? this.renderSkeleton() : t("div", { class: "RandomGameWrapper" }, t("div", { class: "GameContainerGradient" }), t("div", { class: "GamesContainer", ref: (e) => this.gameContainer = e }, this.gamesToShow && this.gamesToShow.map((e, n) => t("div", { class: "RandomGameCard", key: n, onClick: this.launchByGameCard === "true" ? () => this.playGame() : void 0 }, t("div", { class: "RandomGameVendor" }, e.vendor.name), t("ui-image", { class: "RandomGameImage", src: e.thumbnail, alt: e.name, title: e.name, loading: this.imageLoadingType }), this.selectedGame && this.selectedGameIndex === n && this.renderGameDetails()))), t("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, t("div", { class: "ButtonContainer" }, this.iconVisibility && t("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, t("div", { class: "QustionMark" }, "?"), t("div", { class: "HexagonMarkShadow" }), t("div", { class: "HexagonMark" })), !this.animationStarted && t("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, o("playRandomGame", this.language))))));
567
573
  }
568
574
  get host() {
569
- return p(this);
575
+ return g(this);
570
576
  }
571
577
  static get watchers() {
572
578
  return {
@@ -580,10 +586,92 @@ const b = `:host {
580
586
  };
581
587
  }
582
588
  };
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 {
589
+ k.style = v;
590
+ const G = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", R = G, S = class {
591
+ constructor(e) {
592
+ d(this, e), this.hasStarted = !1, this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.loading = "lazy", this.imgLoaded = !1;
593
+ }
594
+ onSrcChange() {
595
+ this.loading !== "eager" && (this.imgLoaded = !1, this.hasStarted = !1, (typeof window == "undefined" || !("IntersectionObserver" in window)) && this.beginLoad());
596
+ }
597
+ onLoadingChange(e, n) {
598
+ e !== n && (this.cleanupObserver(), this.detachImgHandlers(), e === "eager" ? (this.imgEl && this.src && (this.imgEl.src = this.src), this.hasStarted = !0) : (this.imgLoaded = !1, this.hasStarted = !1, this.setupObserver()));
599
+ }
600
+ componentDidLoad() {
601
+ this.loading !== "eager" && this.setupObserver();
602
+ }
603
+ disconnectedCallback() {
604
+ this.cleanupObserver(), this.detachImgHandlers();
605
+ }
606
+ canUseIO() {
607
+ return typeof window != "undefined" && "IntersectionObserver" in window;
608
+ }
609
+ setupObserver() {
610
+ if (this.loading !== "eager") {
611
+ if (!this.canUseIO()) {
612
+ this.beginLoad();
613
+ return;
614
+ }
615
+ this.io = new IntersectionObserver((e) => {
616
+ var n;
617
+ for (const i of e)
618
+ if (i.isIntersecting) {
619
+ this.beginLoad(), (n = this.io) === null || n === void 0 || n.unobserve(i.target), this.cleanupObserver();
620
+ break;
621
+ }
622
+ }, { root: null, rootMargin: this.detectDistance, threshold: 0 }), this.io.observe(this.el);
623
+ }
624
+ }
625
+ cleanupObserver() {
626
+ var e;
627
+ (e = this.io) === null || e === void 0 || e.disconnect(), this.io = void 0;
628
+ }
629
+ wireOnceHandlers() {
630
+ this.imgEl && (this.detachImgHandlers(), this._onLoad = () => {
631
+ var e;
632
+ this.currentSrc && (!((e = this.imgEl) === null || e === void 0) && e.currentSrc) && !this.imgEl.currentSrc.includes(this.currentSrc) || (this.imgLoaded = !0);
633
+ }, this._onError = () => {
634
+ console.error("Load image failed:", this.src);
635
+ }, this.imgEl.addEventListener("load", this._onLoad, { once: !0 }), this.imgEl.addEventListener("error", this._onError, { once: !0 }));
636
+ }
637
+ detachImgHandlers() {
638
+ this.imgEl && (this._onLoad && this.imgEl.removeEventListener("load", this._onLoad), this._onError && this.imgEl.removeEventListener("error", this._onError), this._onLoad = void 0, this._onError = void 0);
639
+ }
640
+ beginLoad() {
641
+ if (!this.hasStarted && this.imgEl && this.src) {
642
+ if (this.hasStarted = !0, this.wireOnceHandlers(), this.imgEl.complete && this.imgEl.naturalWidth > 0) {
643
+ this.imgLoaded = !0;
644
+ return;
645
+ }
646
+ this.currentSrc = this.src, this.imgEl.src = this.src, this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
647
+ }
648
+ }
649
+ get showSkeleton() {
650
+ return this.loading !== "eager" && !this.imgLoaded;
651
+ }
652
+ renderEager() {
653
+ return t(l, { class: "HostContainer" }, t("img", { src: this.src, decoding: "async", style: this.styles, class: "UiContainer Visible", alt: this.alt, width: this.width, height: this.height, loading: "eager" }));
654
+ }
655
+ renderLazy() {
656
+ return t(l, { class: "HostContainer", "aria-busy": this.imgLoaded ? "false" : "true" }, this.showSkeleton && t("ui-skeleton", { class: "UiContainer", structure: "image", width: "100%", height: "100%" }), t("img", { ref: (e) => this.imgEl = e, src: void 0, decoding: "async", style: this.styles, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
657
+ }
658
+ render() {
659
+ return this.loading === "eager" ? this.renderEager() : this.renderLazy();
660
+ }
661
+ get el() {
662
+ return g(this);
663
+ }
664
+ static get watchers() {
665
+ return {
666
+ src: ["onSrcChange"],
667
+ loading: ["onLoadingChange"]
668
+ };
669
+ }
670
+ };
671
+ S.style = R;
672
+ const C = ":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)}}", L = C, E = class {
585
673
  constructor(e) {
586
- h(this, e), this.stylingValue = {
674
+ d(this, e), this.stylingValue = {
587
675
  width: this.handleStylingProps(this.width),
588
676
  height: this.handleStylingProps(this.height),
589
677
  borderRadius: this.handleStylingProps(this.borderRadius),
@@ -594,8 +682,8 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
594
682
  size: this.handleStylingProps(this.size)
595
683
  }, 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
684
  }
597
- handleStructureChange(e, t) {
598
- t !== e && this.handleStructure(e);
685
+ handleStructureChange(e, n) {
686
+ n !== e && this.handleStructure(e);
599
687
  }
600
688
  handleStylingProps(e) {
601
689
  switch (typeof e) {
@@ -628,22 +716,22 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
628
716
  }
629
717
  }
630
718
  renderLogo() {
631
- return n("div", { class: "SkeletonContainer" }, n("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
719
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
632
720
  }
633
721
  renderImage() {
634
- return n("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
722
+ return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
635
723
  }
636
724
  renderTitle() {
637
- return n("div", { class: "SkeletonContainer" }, n("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
725
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
638
726
  }
639
727
  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" : "") })));
728
+ return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, n) => t("div", { key: n, class: "Text " + (this.animation ? "Skeleton" : "") })));
641
729
  }
642
730
  renderRectangle() {
643
- return n("div", { class: "SkeletonContainer" }, n("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
731
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
644
732
  }
645
733
  renderCircle() {
646
- return n("div", { class: "SkeletonContainer" }, n("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
734
+ return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
647
735
  }
648
736
  render() {
649
737
  let e = "";
@@ -723,7 +811,7 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
723
811
  default:
724
812
  e = "";
725
813
  }
726
- return n(w, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, n("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
814
+ return t(l, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
727
815
  }
728
816
  static get watchers() {
729
817
  return {
@@ -731,8 +819,9 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
731
819
  };
732
820
  }
733
821
  };
734
- S.style = R;
822
+ E.style = L;
735
823
  export {
736
- G as casino_play_random_game,
737
- S as ui_skeleton
824
+ k as casino_play_random_game,
825
+ S as ui_image,
826
+ E as ui_skeleton
738
827
  };