@everymatrix/casino-lobby 1.77.0 → 1.77.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/components/{CasinoCalendar-2Cpj6Bg6.js → CasinoCalendar-Dxl0GZ3V.js} +2 -2
  2. package/components/{CasinoCalendar-DV_HGN_d.cjs → CasinoCalendar-l9GnvvJt.cjs} +1 -1
  3. package/components/{CasinoCalendar-CMIWRUUm.js → CasinoCalendar-uF_NF6m7.js} +2 -2
  4. package/components/{CasinoCalendarDailyDetails-XuqvF6i3.cjs → CasinoCalendarDailyDetails-5fca8ybY.cjs} +1 -1
  5. package/components/{CasinoCalendarDailyDetails-DA7MIM93.js → CasinoCalendarDailyDetails-CkFGHBr1.js} +2 -2
  6. package/components/{CasinoCalendarDailyDetails-B5krFnaT.js → CasinoCalendarDailyDetails-D2EcpVsk.js} +2 -2
  7. package/components/{CasinoCalendarDailyItem-DY2ge_ta.js → CasinoCalendarDailyItem-BjMHq8z0.js} +2 -2
  8. package/components/{CasinoCalendarDailyItem-BAJJIvIo.js → CasinoCalendarDailyItem-CJ4Y1TDs.js} +2 -2
  9. package/components/{CasinoCalendarDailyItem-Q79--gB8.cjs → CasinoCalendarDailyItem-CtrwuSMm.cjs} +1 -1
  10. package/components/{CasinoCategoriesSlider-Bj5sxBdL.cjs → CasinoCategoriesSlider-CsJ_SF6Z.cjs} +1 -1
  11. package/components/{CasinoCategoriesSlider-D8ihGze3.js → CasinoCategoriesSlider-D4K2b7AX.js} +2 -2
  12. package/components/{CasinoCategoriesSlider-QFkK1VfK.js → CasinoCategoriesSlider-Dw9WFkz4.js} +2 -2
  13. package/components/{CasinoCollectionsProviders-KSxevvZ5.js → CasinoCollectionsProviders-BN0zNeS7.js} +1 -1
  14. package/components/{CasinoCollectionsProviders-CyhsgC2q.cjs → CasinoCollectionsProviders-C3QOX3KF.cjs} +1 -1
  15. package/components/{CasinoCollectionsProviders-4Z4WIkbN.js → CasinoCollectionsProviders-DjFfFkmU.js} +1 -1
  16. package/components/{CasinoFavoritesSection-CnKvlpHj.cjs → CasinoFavoritesSection-C_SVbyBn.cjs} +1 -1
  17. package/components/{CasinoFavoritesSection-CeH7gEs_.js → CasinoFavoritesSection-DFYpAORF.js} +2 -2
  18. package/components/{CasinoFavoritesSection-CH6RKYbI.js → CasinoFavoritesSection-DjSYlAHs.js} +2 -2
  19. package/components/{CasinoFilter-BDFP3doT.cjs → CasinoFilter-B7H2bJ-G.cjs} +1 -1
  20. package/components/{CasinoFilter-DqvsdQLm.js → CasinoFilter-Bgc2OX7A.js} +1 -1
  21. package/components/{CasinoFilter-nIExzBTm.js → CasinoFilter-D0wftMel.js} +1 -1
  22. package/components/{CasinoGameThumbnail-Dnb_EWII.cjs → CasinoGameThumbnail-BCV2_lP-.cjs} +1 -1
  23. package/components/{CasinoGameThumbnail-vXzpFK6B.js → CasinoGameThumbnail-DAeRoqVl.js} +2 -2
  24. package/components/{CasinoGameThumbnail-DmAXBgdw.js → CasinoGameThumbnail-DDj9LrBn.js} +2 -2
  25. package/components/{CasinoGamesCategorySection-CCMbufvI.js → CasinoGamesCategorySection-BZ4VTmC0.js} +5 -5
  26. package/components/{CasinoGamesCategorySection-D8p1YH47.js → CasinoGamesCategorySection-CxjrZ9Mg.js} +5 -5
  27. package/components/{CasinoGamesCategorySection-i3CzEe6V.cjs → CasinoGamesCategorySection-D9w4jWch.cjs} +1 -1
  28. package/components/{CasinoJackpotBanner-uWhhU8zz.js → CasinoJackpotBanner-TsNpk7MF.js} +2 -2
  29. package/components/{CasinoJackpotBanner-EKq86n9z.js → CasinoJackpotBanner-VCXNOk6T.js} +2 -2
  30. package/components/{CasinoJackpotBanner-C2pEv1Zb.cjs → CasinoJackpotBanner-yvjEOEuA.cjs} +1 -1
  31. package/components/{CasinoLastPlayedSection-Cz43Ntm0.js → CasinoLastPlayedSection-BlnAstfd.js} +2 -2
  32. package/components/{CasinoLastPlayedSection-D6dhMSFC.js → CasinoLastPlayedSection-CReBS3dw.js} +2 -2
  33. package/components/{CasinoLastPlayedSection-Bkk9ZJWU.cjs → CasinoLastPlayedSection-CqanYCAJ.cjs} +1 -1
  34. package/components/{CasinoLobby-CxgUhhrv.cjs → CasinoLobby-Cn2Otkkj.cjs} +1 -1
  35. package/components/{CasinoLobby-C5W8yGx8.js → CasinoLobby-DXkNhPwn.js} +3 -3
  36. package/components/{CasinoLobby-pKt5iffv.js → CasinoLobby-i6iK4grU.js} +3 -3
  37. package/components/{CasinoMostPlayedSection-CrpSf7Wm.js → CasinoMostPlayedSection-B07bcZSb.js} +2 -2
  38. package/components/{CasinoMostPlayedSection-WUT01RfM.js → CasinoMostPlayedSection-C__zgZB_.js} +2 -2
  39. package/components/{CasinoMostPlayedSection-D2dgTPLO.cjs → CasinoMostPlayedSection-gUjt91qe.cjs} +1 -1
  40. package/components/{CasinoMyGames-D4hswNh4.js → CasinoMyGames-BjpVKSGM.js} +4 -4
  41. package/components/{CasinoMyGames-BySluNi7.cjs → CasinoMyGames-BrR9nn1l.cjs} +1 -1
  42. package/components/{CasinoMyGames-CXvY2HgK.js → CasinoMyGames-jJWJoluY.js} +4 -4
  43. package/components/{CasinoPage-CXQGupl1.cjs → CasinoPage-CpQErNFc.cjs} +1 -1
  44. package/components/{CasinoPage-DJbF4jd3.js → CasinoPage-DbA-NMXP.js} +11 -11
  45. package/components/{CasinoPage-CYgZ9Y3j.js → CasinoPage-yGjlByzR.js} +11 -11
  46. package/components/{CasinoRandomGame-C0LeVa_K.js → CasinoRandomGame-BWebIH8V.js} +1 -1
  47. package/components/{CasinoRandomGame-KqxBje-s.js → CasinoRandomGame-CSrB_Zq2.js} +1 -1
  48. package/components/{CasinoRandomGame-CN0ZsyT7.cjs → CasinoRandomGame-DJnB5Fhm.cjs} +1 -1
  49. package/components/{CasinoSearch-BSZXyGpW.js → CasinoSearch-CcHIKzRN.js} +3 -3
  50. package/components/{CasinoSearch-Bh_3dc9h.js → CasinoSearch-CwADZYFB.js} +3 -3
  51. package/components/{CasinoSearch-DKPZ8_Iy.cjs → CasinoSearch-DcUqk5L0.cjs} +1 -1
  52. package/components/{CasinoSlider-B8GaaNuP.js → CasinoSlider-CJpeC5z_.js} +1 -1
  53. package/components/{CasinoSlider-DbyJ57E6.cjs → CasinoSlider-Ctpht2Hg.cjs} +1 -1
  54. package/components/{CasinoSlider-CBsaRkSG.js → CasinoSlider-D40zgViI.js} +1 -1
  55. package/components/{CasinoSort-DUnBFMEc.js → CasinoSort-CMZayycI.js} +1 -1
  56. package/components/{CasinoSort-DdVCJHJU.js → CasinoSort-CydlqJP8.js} +1 -1
  57. package/components/{CasinoSort-5CSg7HAS.cjs → CasinoSort-DjCxKlZJ.cjs} +1 -1
  58. package/components/{CasinoWinners-BO9ep3XD.js → CasinoWinners-B-qcd_Bf.js} +2 -2
  59. package/components/{CasinoWinners-4uQChe2F.cjs → CasinoWinners-Cqmnci0O.cjs} +1 -1
  60. package/components/{CasinoWinners-D9hsy2fX.js → CasinoWinners-DcqEgS6B.js} +2 -2
  61. package/components/{GeneralAnimationLoading-DKWSPDDc.js → GeneralAnimationLoading-C8aWcUd_.js} +1 -1
  62. package/components/{GeneralAnimationLoading-DpT91_iF.cjs → GeneralAnimationLoading-Cjhmg9V_.cjs} +1 -1
  63. package/components/{GeneralAnimationLoading-yNj1-Ym_.js → GeneralAnimationLoading-Oqx65Onk.js} +1 -1
  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-3OLT0AIG.js +25 -0
  69. package/stencil/casino-play-random-game-BnjMAnCB.js +7 -0
  70. package/stencil/casino-play-random-game-CHpLVsre.cjs +1 -0
  71. package/stencil/{casino-play-random-game_2-Cr07t-U3.js → casino-play-random-game_3-5Bmo5OfX.js} +156 -67
  72. package/stencil/casino-play-random-game_3-BPrURzZF.cjs +432 -0
  73. package/stencil/{casino-play-random-game_2-rMFQqRp8.js → casino-play-random-game_3-DbmTGjC1.js} +156 -67
  74. package/stencil/index-242ac81a-BqeIndhr.js +554 -0
  75. package/stencil/index-242ac81a-CI4JxPRf.js +538 -0
  76. package/stencil/index-242ac81a-CjjM4VND.cjs +1 -0
  77. package/stencil/index-27b314b8-B6-HIs2Q.cjs +1 -0
  78. package/stencil/index-27b314b8-DWbdQG1d.js +565 -0
  79. package/stencil/index-27b314b8-rkjLfQe1.js +581 -0
  80. package/stencil/ui-image-2ff23cd5-BHGIWJop.cjs +1 -0
  81. package/stencil/ui-image-2ff23cd5-D0rXudCW.js +86 -0
  82. package/stencil/ui-image-2ff23cd5-DCLQ0SIO.js +86 -0
  83. package/stencil/ui-image-CVrTqLhl.js +25 -0
  84. package/stencil/ui-image-Cd2KxMB7.cjs +1 -0
  85. package/stencil/ui-image-adPxpjgH.js +7 -0
  86. package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-B21W_djK.js} +2 -2
  87. package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-CLk629jW.cjs} +1 -1
  88. package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-VgK3B8gQ.js} +2 -2
  89. package/stencil/casino-play-random-game-BmY8ENyy.js +0 -25
  90. package/stencil/casino-play-random-game-Ct16KgVH.cjs +0 -1
  91. package/stencil/casino-play-random-game-rSOIFZ4R.js +0 -7
  92. package/stencil/casino-play-random-game_2-BJVoDn1D.cjs +0 -432
  93. package/stencil/index-328e660d-Cex2hzsG.js +0 -576
  94. package/stencil/index-328e660d-Dti9H7_B.js +0 -560
  95. package/stencil/index-328e660d-MaaYKutI.cjs +0 -1
  96. package/stencil/index-97d17652--F7PvMq9.js +0 -542
  97. package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
  98. package/stencil/index-97d17652-CCFHkzJw.js +0 -558
  99. package/stencil/ui-image-2_i-_1cj.js +0 -25
  100. package/stencil/ui-image-b7b48fe5-ByRuJtdE.js +0 -39
  101. package/stencil/ui-image-b7b48fe5-D6iig_uN.js +0 -39
  102. package/stencil/ui-image-b7b48fe5-DG83WzAo.cjs +0 -1
  103. package/stencil/ui-image-bN_3pDWc.js +0 -7
  104. package/stencil/ui-image-eY8BEG3a.cjs +0 -1
@@ -1,8 +1,8 @@
1
- import { r as h, c as u, h as n, g as p, H as w } from "./index-328e660d-Cex2hzsG.js";
2
- const f = () => {
1
+ import { r as d, c as f, h as t, g, H as l } from "./index-27b314b8-rkjLfQe1.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 ...",
@@ -41,46 +41,46 @@ const f = () => {
41
41
  tr: {
42
42
  error: "Hata",
43
43
  randomGameLoading: "Yükleniyor...",
44
- playRandomGame: "Rasgele bir oyun oyna",
44
+ playRandomGame: "Rastgele Bir Oyun Oyna",
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"), 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
  };