@everymatrix/casino-page-nd 1.99.48 → 1.99.50

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 (119) hide show
  1. package/components/{CasinoCalendar-9uPmw-XX.cjs → CasinoCalendar-1NBEw-Ne.cjs} +1 -1
  2. package/components/{CasinoCalendar-Chjgcrk0.js → CasinoCalendar-BnzppHn4.js} +3 -3
  3. package/components/{CasinoCalendar-2COmHWAs.js → CasinoCalendar-gOh0q6ge.js} +3 -3
  4. package/components/{CasinoCalendarDailyDetails-BrPzy6l_.cjs → CasinoCalendarDailyDetails-BosCbhav.cjs} +1 -1
  5. package/components/{CasinoCalendarDailyDetails-QX3KBQpW.js → CasinoCalendarDailyDetails-PwiTrbxo.js} +1 -1
  6. package/components/{CasinoCalendarDailyDetails-Ct2R7LO1.js → CasinoCalendarDailyDetails-vOPo2hAR.js} +1 -1
  7. package/components/{CasinoCalendarDailyItem-D30f6rso.js → CasinoCalendarDailyItem-BEGgrdG0.js} +1 -1
  8. package/components/{CasinoCalendarDailyItem-B5Aqubmz.js → CasinoCalendarDailyItem-DgLM7SJs.js} +1 -1
  9. package/components/{CasinoCalendarDailyItem-If9G3Lt-.cjs → CasinoCalendarDailyItem-IsSTZX78.cjs} +1 -1
  10. package/components/{CasinoCollectionsProviders-D9nbKRUi.cjs → CasinoCollectionsProviders-Bay-y16C.cjs} +1 -1
  11. package/components/{CasinoCollectionsProviders-ttIJ1f7N.js → CasinoCollectionsProviders-C59dlzV3.js} +1 -1
  12. package/components/{CasinoCollectionsProviders-mFT3ZqvW.js → CasinoCollectionsProviders-c5DMMfv-.js} +1 -1
  13. package/components/{CasinoFavoritesSectionNd-CKJlCARQ.js → CasinoFavoritesSectionNd-B-UQNcJu.js} +2 -2
  14. package/components/{CasinoFavoritesSectionNd-qcdAFo65.cjs → CasinoFavoritesSectionNd-C7zRmRE-.cjs} +1 -1
  15. package/components/{CasinoFavoritesSectionNd-uizCb1cH.js → CasinoFavoritesSectionNd-Dp3eYlFj.js} +2 -2
  16. package/components/{CasinoFilter-NmhXh4Or.cjs → CasinoFilter-CjxvPyqc.cjs} +1 -1
  17. package/components/{CasinoFilter-CTANTUP7.js → CasinoFilter-DRsMCLGK.js} +1 -1
  18. package/components/{CasinoFilter-BINrHG9W.js → CasinoFilter-puZL7bgA.js} +1 -1
  19. package/components/{CasinoGameThumbnailNd-DpRFZeFV.cjs → CasinoGameThumbnailNd-CKDlDRc4.cjs} +1 -1
  20. package/components/{CasinoGameThumbnailNd-CHUUkyWa.js → CasinoGameThumbnailNd-ClzQe0gP.js} +2 -2
  21. package/components/{CasinoGameThumbnailNd--IQUxXPU.js → CasinoGameThumbnailNd-agCnRPNY.js} +2 -2
  22. package/components/{CasinoGamesCategorySectionNd-u7bgyH4I.cjs → CasinoGamesCategorySectionNd-BR1uYn9b.cjs} +1 -1
  23. package/components/{CasinoGamesCategorySectionNd-DlWV3pOg.js → CasinoGamesCategorySectionNd-BXlQQatu.js} +4 -4
  24. package/components/{CasinoGamesCategorySectionNd-BB2wQmK7.js → CasinoGamesCategorySectionNd-CCr7yT6_.js} +4 -4
  25. package/components/{CasinoJackpotBanner-Cuqb_p5h.cjs → CasinoJackpotBanner-Dsl3PUX8.cjs} +1 -1
  26. package/components/{CasinoJackpotBanner-itczj59k.js → CasinoJackpotBanner-KuJ941yQ.js} +1 -1
  27. package/components/{CasinoJackpotBanner-C8pgBlpL.js → CasinoJackpotBanner-UJibMxxN.js} +1 -1
  28. package/components/{CasinoLastPlayedSectionNd-Dh7bpxkY.cjs → CasinoLastPlayedSectionNd-CymeR2jn.cjs} +1 -1
  29. package/components/{CasinoLastPlayedSectionNd--uAhovBa.js → CasinoLastPlayedSectionNd-DWpG_x3k.js} +2 -2
  30. package/components/{CasinoLastPlayedSectionNd-DyMzNzHh.js → CasinoLastPlayedSectionNd-UTM0A6yy.js} +2 -2
  31. package/components/{CasinoMostPlayedSectionNd-DqFiQ-U1.js → CasinoMostPlayedSectionNd-CabYDSeb.js} +2 -2
  32. package/components/{CasinoMostPlayedSectionNd-DO6bNvWq.cjs → CasinoMostPlayedSectionNd-Dm9T7R7p.cjs} +1 -1
  33. package/components/{CasinoMostPlayedSectionNd-CG-HpI7O.js → CasinoMostPlayedSectionNd-f99tuOgp.js} +2 -2
  34. package/components/{CasinoMyGamesNd-VxwVf5vX.cjs → CasinoMyGamesNd-BBqJBuqr.cjs} +1 -1
  35. package/components/{CasinoMyGamesNd-FxCTubKU.js → CasinoMyGamesNd-I33F258B.js} +4 -4
  36. package/components/{CasinoMyGamesNd-BUgRnvwT.js → CasinoMyGamesNd-lcQ5gEiA.js} +4 -4
  37. package/components/{CasinoPageNd-Dzxh6Mhx.js → CasinoPageNd-BcRpiQ0Q.js} +18 -12
  38. package/components/{CasinoPageNd-CmJkw_iq.js → CasinoPageNd-BpNYB7ZN.js} +18 -12
  39. package/components/CasinoPageNd-o2hAfbmd.cjs +18 -0
  40. package/components/{CasinoRandomGame-FOteuWZm.js → CasinoRandomGame-CjFSFUQT.js} +1 -1
  41. package/components/{CasinoRandomGame-DOsgIlc_.js → CasinoRandomGame-Cla-KYQg.js} +1 -1
  42. package/components/{CasinoRandomGame-BMtowbmP.cjs → CasinoRandomGame-DJWcb1if.cjs} +1 -1
  43. package/components/{CasinoSearchNd-DDJYixZR.cjs → CasinoSearchNd-BnK1QSkF.cjs} +1 -1
  44. package/components/{CasinoSearchNd-CwoOOH9p.js → CasinoSearchNd-DMnRWOqt.js} +3 -3
  45. package/components/{CasinoSearchNd-Ciw_jqFU.js → CasinoSearchNd-GUQ2yjIq.js} +3 -3
  46. package/components/{CasinoSort-DHyWo2iH.cjs → CasinoSort-BbTC0eJz.cjs} +1 -1
  47. package/components/{CasinoSort-CB68Ef8C.js → CasinoSort-CpzOOuy2.js} +1 -1
  48. package/components/{CasinoSort-CcYr3CBo.js → CasinoSort-D7RMoMz_.js} +1 -1
  49. package/components/{CasinoWinners-C-bdI36x.js → CasinoWinners-CaAt_RQZ.js} +3 -3
  50. package/components/{CasinoWinners-fWoYUDjk.cjs → CasinoWinners-DCtMb1zF.cjs} +1 -1
  51. package/components/{CasinoWinners-BmTdj90F.js → CasinoWinners-DHNPbB_T.js} +3 -3
  52. package/components/{GeneralAnimationLoading-C2IVQCEP.cjs → GeneralAnimationLoading--J6Ekeal.cjs} +1 -1
  53. package/components/{GeneralAnimationLoading-Di1UvqZX.js → GeneralAnimationLoading-B20j4gnD.js} +1 -1
  54. package/components/{GeneralAnimationLoading-Mh0QEKvM.js → GeneralAnimationLoading-DqSRkP-3.js} +1 -1
  55. package/es2015/casino-page-nd.cjs +1 -1
  56. package/es2015/casino-page-nd.js +1 -1
  57. package/esnext/casino-page-nd.js +1 -1
  58. package/lazy/{casino-calendar-BsHGLF-G.js → casino-calendar-B0GQUm_p.js} +1 -1
  59. package/lazy/{casino-calendar-Daw6oOcN.cjs → casino-calendar-CfrfGHlY.cjs} +1 -1
  60. package/lazy/{casino-calendar-daily-details-CmoBFiX3.cjs → casino-calendar-daily-details-C5RX9WRM.cjs} +1 -1
  61. package/lazy/{casino-calendar-daily-details-KB87zToc.js → casino-calendar-daily-details-COwDNiqy.js} +1 -1
  62. package/lazy/{casino-calendar-daily-details-aycSG5Il.js → casino-calendar-daily-details-Dg1wcXHK.js} +1 -1
  63. package/lazy/{casino-calendar-daily-item-DRlU4Jk7.cjs → casino-calendar-daily-item-2DMve3sT.cjs} +1 -1
  64. package/lazy/{casino-calendar-daily-item-BWRtYjqo.js → casino-calendar-daily-item-D8e0Ar0g.js} +1 -1
  65. package/lazy/{casino-calendar-daily-item-Cff_eR9Y.js → casino-calendar-daily-item-Kq8uY-zz.js} +1 -1
  66. package/lazy/{casino-calendar-BOwdOKA-.js → casino-calendar-xdwMgaLs.js} +1 -1
  67. package/lazy/{casino-collections-providers-CYoXn7NN.js → casino-collections-providers-BWt4rzdr.js} +1 -1
  68. package/lazy/{casino-collections-providers-Dx6RSU4S.cjs → casino-collections-providers-CRmLwY90.cjs} +1 -1
  69. package/lazy/{casino-collections-providers-D_ToGc8W.js → casino-collections-providers-CmTO4our.js} +1 -1
  70. package/lazy/{casino-favorites-section-nd-DqKK-uIB.js → casino-favorites-section-nd-B3XuRIea.js} +1 -1
  71. package/lazy/{casino-favorites-section-nd-DKZODAL2.js → casino-favorites-section-nd-DnYjspIw.js} +1 -1
  72. package/lazy/{casino-favorites-section-nd-DyqPHPiO.cjs → casino-favorites-section-nd-YjPvcd37.cjs} +1 -1
  73. package/lazy/{casino-filter-CoZUcdBG.js → casino-filter-Bv533clv.js} +1 -1
  74. package/lazy/{casino-filter-Cv3VfXr5.js → casino-filter-CssuKFrY.js} +1 -1
  75. package/lazy/{casino-filter-B-7FFe8e.cjs → casino-filter-DZBm3WRF.cjs} +1 -1
  76. package/lazy/{casino-game-thumbnail-nd-GhxKlIHe.js → casino-game-thumbnail-nd-2QUOFHkV.js} +1 -1
  77. package/lazy/{casino-game-thumbnail-nd-DYm-tzGd.cjs → casino-game-thumbnail-nd-B8_VDnW3.cjs} +1 -1
  78. package/lazy/{casino-game-thumbnail-nd-D7xDPAzW.js → casino-game-thumbnail-nd-DmEs5H3g.js} +1 -1
  79. package/lazy/{casino-games-category-section-nd-CKbss7EP.js → casino-games-category-section-nd-C0NjluTK.js} +1 -1
  80. package/lazy/{casino-games-category-section-nd-DRuFzZPz.js → casino-games-category-section-nd-DzLZSF_t.js} +1 -1
  81. package/lazy/{casino-games-category-section-nd-7J7A3EFz.cjs → casino-games-category-section-nd-wW1vDxhO.cjs} +1 -1
  82. package/lazy/{casino-jackpot-banner-CNXVN3lX.js → casino-jackpot-banner-B7fsQ8gh.js} +1 -1
  83. package/lazy/{casino-jackpot-banner-Da4yShJ6.cjs → casino-jackpot-banner-CthZSRTa.cjs} +1 -1
  84. package/lazy/{casino-jackpot-banner-BB-yubFG.js → casino-jackpot-banner-DW-Jg0Y_.js} +1 -1
  85. package/lazy/{casino-last-played-section-nd-Dl0lTLhZ.js → casino-last-played-section-nd-AMmTRWmY.js} +1 -1
  86. package/lazy/{casino-last-played-section-nd-Bs-RrFWW.cjs → casino-last-played-section-nd-Bx3s1reK.cjs} +1 -1
  87. package/lazy/{casino-last-played-section-nd-BVpBOAPE.js → casino-last-played-section-nd-C8U3YWHV.js} +1 -1
  88. package/lazy/{casino-most-played-section-nd-CdTkG1_i.js → casino-most-played-section-nd-B99QyCjT.js} +1 -1
  89. package/lazy/{casino-most-played-section-nd-CNkIXdv0.cjs → casino-most-played-section-nd-BlHAcxFF.cjs} +1 -1
  90. package/lazy/{casino-most-played-section-nd-DER79Bq2.js → casino-most-played-section-nd-CAqIxBuc.js} +1 -1
  91. package/lazy/{casino-my-games-nd-CpsfCEPK.js → casino-my-games-nd-BLsGgKvE.js} +1 -1
  92. package/lazy/{casino-my-games-nd-CWEV7vKj.cjs → casino-my-games-nd-Cb3Cp4Wx.cjs} +1 -1
  93. package/lazy/{casino-my-games-nd-C4uJXmLB.js → casino-my-games-nd-DXAcA0NQ.js} +1 -1
  94. package/lazy/{casino-play-random-game-BZ2Qc5Rb.cjs → casino-play-random-game-Ba9gGMQ4.cjs} +1 -1
  95. package/lazy/{casino-play-random-game-V1jcVVCT.js → casino-play-random-game-C5xaiiaN.js} +1 -1
  96. package/lazy/{casino-play-random-game-7n61vetD.js → casino-play-random-game-CMFaWt79.js} +1 -1
  97. package/lazy/{casino-random-game-BDF3TLws.js → casino-random-game-BNs6fS_-.js} +1 -1
  98. package/lazy/{casino-random-game-AoB3cOXM.js → casino-random-game-DUrknfx0.js} +1 -1
  99. package/lazy/{casino-random-game-DCn4X1gR.cjs → casino-random-game-LGJr8lwc.cjs} +1 -1
  100. package/lazy/{casino-search-nd-DcEbNFZu.cjs → casino-search-nd-BPLoN9jI.cjs} +1 -1
  101. package/lazy/{casino-search-nd-BM5Krbsm.js → casino-search-nd-C37vQ3nJ.js} +1 -1
  102. package/lazy/{casino-search-nd-BUpVf9WG.js → casino-search-nd-pQSF86WT.js} +1 -1
  103. package/lazy/{casino-sort-bHu-Evih.js → casino-sort-Cm8zWnLI.js} +1 -1
  104. package/lazy/{casino-sort-CSDA-BLL.cjs → casino-sort-CwWhZGsP.cjs} +1 -1
  105. package/lazy/{casino-sort-B53-Fae9.js → casino-sort-D0XR-N5H.js} +1 -1
  106. package/lazy/{casino-winners-BBurRNJu.js → casino-winners-BuF4qfne.js} +1 -1
  107. package/lazy/{casino-winners-ByCKB5mh.js → casino-winners-CJDbnRfs.js} +1 -1
  108. package/lazy/{casino-winners-BciYBF0j.cjs → casino-winners-CkOntCap.cjs} +1 -1
  109. package/lazy/{general-animation-loading-DEiTra4D.js → general-animation-loading-DRrygQhz.js} +1 -1
  110. package/lazy/{general-animation-loading-CIC0dKPI.js → general-animation-loading-DVNzn1tl.js} +1 -1
  111. package/lazy/{general-animation-loading-DXgBKRk8.cjs → general-animation-loading-M7Cexbvs.cjs} +1 -1
  112. package/package.json +1 -1
  113. package/stencil/{casino-play-random-game-C4vBXpwt.cjs → casino-play-random-game-BRbhCXSK.cjs} +1 -1
  114. package/stencil/{casino-play-random-game-BhoyX-C1.js → casino-play-random-game-Bsl3aQM5.js} +2 -2
  115. package/stencil/{casino-play-random-game-BFV4GNfV.js → casino-play-random-game-oGF_3PUA.js} +2 -2
  116. package/stencil/{casino-play-random-game_2-CaDWoiDD.js → casino-play-random-game_2-BTApbx_r.js} +22 -16
  117. package/stencil/{casino-play-random-game_2-D3YPoW8a.cjs → casino-play-random-game_2-CuZuQPCH.cjs} +2 -2
  118. package/stencil/{casino-play-random-game_2-CrgpqvbB.js → casino-play-random-game_2-TYppAPxC.js} +22 -16
  119. package/components/CasinoPageNd-_x3OCnx2.cjs +0 -18
@@ -1,4 +1,4 @@
1
- import { r as p, c as f, h as a, g as y, H as b } from "../lazy/casino-play-random-game-V1jcVVCT.js";
1
+ import { r as p, c as f, h as a, g as y, H as b } from "../lazy/casino-play-random-game-C5xaiiaN.js";
2
2
  const x = () => {
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";
@@ -70,8 +70,8 @@ function u(e, n) {
70
70
  return;
71
71
  const t = new URL(n);
72
72
  fetch(t.href).then((i) => i.text()).then((i) => {
73
- const o = document.createElement("style");
74
- o.innerHTML = i, e && e.appendChild(o);
73
+ const r = document.createElement("style");
74
+ r.innerHTML = i, e && e.appendChild(r);
75
75
  }).catch((i) => {
76
76
  console.error("There was an error while trying to load client styling from URL", i);
77
77
  });
@@ -82,12 +82,12 @@ function G(e, n, t, i = !1) {
82
82
  if (!("adoptedStyleSheets" in Document.prototype) || !i)
83
83
  return t = v(e, n), t;
84
84
  window[l] || (window[l] = {}), t = R(e, n);
85
- const r = t.unsubscribe.bind(t), s = () => {
85
+ const o = t.unsubscribe.bind(t), s = () => {
86
86
  if (window[l][n]) {
87
87
  const h = window[l][n];
88
88
  h.refCount > 1 ? h.refCount = h.refCount - 1 : delete window[l][n];
89
89
  }
90
- r();
90
+ o();
91
91
  };
92
92
  return t.unsubscribe = s, t;
93
93
  }
@@ -101,18 +101,24 @@ function R(e, n) {
101
101
  return window.emMessageBus.subscribe(n, (t) => {
102
102
  if (!e)
103
103
  return;
104
- const i = e.getRootNode(), o = window[l];
105
- let r = o[n] && o[n].sheet;
106
- r ? o[n].refCount = o[n].refCount + 1 : (r = new CSSStyleSheet(), r.replaceSync(t), o[n] = {
107
- sheet: r,
104
+ const i = e.getRootNode(), r = window[l];
105
+ let o = r[n] && r[n].sheet;
106
+ o ? r[n].refCount = r[n].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(t), r[n] = {
107
+ sheet: o,
108
108
  refCount: 1
109
109
  });
110
110
  const s = i.adoptedStyleSheets || [];
111
- s.includes(r) || (i.adoptedStyleSheets = [...s, r]);
111
+ s.includes(o) || (i.adoptedStyleSheets = [...s, o]);
112
112
  });
113
113
  }
114
- function S(e, n, t) {
115
- return window.emMessageBus && (n = window.emMessageBus.subscribe(e, t)), n;
114
+ function S(e, n, t, i = !1) {
115
+ if (window.emMessageBus) {
116
+ const r = i ? (o) => {
117
+ !o || typeof o != "object" || Array.isArray(o) || Object.keys(o).forEach((s) => t(s, o[s]));
118
+ } : t;
119
+ n = window.emMessageBus.subscribe(e, r);
120
+ }
121
+ return n;
116
122
  }
117
123
  const C = `:host {
118
124
  display: block;
@@ -564,18 +570,18 @@ const C = `:host {
564
570
  }
565
571
  animateGames() {
566
572
  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();
567
- const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), n = parseInt(e, 10), t = this.selectedGameEl.offsetWidth, i = this.gameContainer.offsetWidth, o = (t + n) * this.selectedGameIndex + // Width of game cards up to the selected
573
+ const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), n = parseInt(e, 10), t = this.selectedGameEl.offsetWidth, i = this.gameContainer.offsetWidth, r = (t + n) * this.selectedGameIndex + // Width of game cards up to the selected
568
574
  t / 2 - // Additional half card width to center to the selected game
569
- i / 2, r = [
575
+ i / 2, o = [
570
576
  { transform: "translateX(0px)", scale: 1 },
571
577
  { scale: 0.75 },
572
- { transform: `translateX(-${o}px)`, scale: 1 }
578
+ { transform: `translateX(-${r}px)`, scale: 1 }
573
579
  ], s = {
574
580
  duration: 3e3,
575
581
  easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
576
582
  fill: "forwards"
577
583
  };
578
- this.animation = this.gameContainer.animate(r, s), this.animation.onfinish = () => {
584
+ this.animation = this.gameContainer.animate(o, s), this.animation.onfinish = () => {
579
585
  this.animationDone = !0, this.selectedGameEl.classList.add("TheRandomGame"), this.selectedGame = this.gamesToShow[this.selectedGameIndex];
580
586
  };
581
587
  }
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../lazy/casino-play-random-game-BZ2Qc5Rb.cjs"),y=()=>{let e=window.navigator.userAgent;return e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},b="en",m={en:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},ro:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},fr:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},hr:{error:"Greška",randomGameLoading:"Učitavanje ...",playRandomGame:"Igraj nasumičnu igru",playNowRandomGame:"Igraj sada",spinRandomGame:"Zavrti"},hu:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},tr:{error:"Hata",randomGameLoading:"Yükleniyor...",playRandomGame:"Rastgele Bir Oyun Oyna",playNowRandomGame:"Şimdi Oyna",spinRandomGame:"DEĞİŞTİR"}},c=e=>new Promise(n=>{fetch(e).then(a=>a.json()).then(a=>{p(a),n(!0)})}),d=(e,n)=>{const a=n;return m[a!==void 0&&a in m?a:b][e]},p=e=>{Object.keys(e).forEach(n=>{m[n]||(m[n]={});for(let a in e[n])m[n][a]=e[n][a]})},l="__WIDGET_GLOBAL_STYLE_CACHE__";function g(e,n){if(e){const a=document.createElement("style");a.innerHTML=n,e.appendChild(a)}}function u(e,n){if(!e||!n)return;const a=new URL(n);fetch(a.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,e&&e.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function x(e,n,a,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return a=k(e,n),a;window[l]||(window[l]={}),a=G(e,n);const r=a.unsubscribe.bind(a),s=()=>{if(window[l][n]){const h=window[l][n];h.refCount>1?h.refCount=h.refCount-1:delete window[l][n]}r()};return a.unsubscribe=s,a}function k(e,n){const a=document.createElement("style");return window.emMessageBus.subscribe(n,i=>{e&&(a.innerHTML=i,e.appendChild(a))})}function G(e,n){return window.emMessageBus.subscribe(n,a=>{if(!e)return;const i=e.getRootNode(),o=window[l];let r=o[n]&&o[n].sheet;r?o[n].refCount=o[n].refCount+1:(r=new CSSStyleSheet,r.replaceSync(a),o[n]={sheet:r,refCount:1});const s=i.adoptedStyleSheets||[];s.includes(r)||(i.adoptedStyleSheets=[...s,r])})}function v(e,n,a){return window.emMessageBus&&(n=window.emMessageBus.subscribe(e,a)),n}const S=`:host {
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../lazy/casino-play-random-game-Ba9gGMQ4.cjs"),y=()=>{let e=window.navigator.userAgent;return e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},b="en",m={en:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},ro:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},fr:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},hr:{error:"Greška",randomGameLoading:"Učitavanje ...",playRandomGame:"Igraj nasumičnu igru",playNowRandomGame:"Igraj sada",spinRandomGame:"Zavrti"},hu:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},tr:{error:"Hata",randomGameLoading:"Yükleniyor...",playRandomGame:"Rastgele Bir Oyun Oyna",playNowRandomGame:"Şimdi Oyna",spinRandomGame:"DEĞİŞTİR"}},c=e=>new Promise(n=>{fetch(e).then(a=>a.json()).then(a=>{p(a),n(!0)})}),d=(e,n)=>{const a=n;return m[a!==void 0&&a in m?a:b][e]},p=e=>{Object.keys(e).forEach(n=>{m[n]||(m[n]={});for(let a in e[n])m[n][a]=e[n][a]})},l="__WIDGET_GLOBAL_STYLE_CACHE__";function g(e,n){if(e){const a=document.createElement("style");a.innerHTML=n,e.appendChild(a)}}function u(e,n){if(!e||!n)return;const a=new URL(n);fetch(a.href).then(i=>i.text()).then(i=>{const r=document.createElement("style");r.innerHTML=i,e&&e.appendChild(r)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function x(e,n,a,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return a=k(e,n),a;window[l]||(window[l]={}),a=G(e,n);const o=a.unsubscribe.bind(a),s=()=>{if(window[l][n]){const h=window[l][n];h.refCount>1?h.refCount=h.refCount-1:delete window[l][n]}o()};return a.unsubscribe=s,a}function k(e,n){const a=document.createElement("style");return window.emMessageBus.subscribe(n,i=>{e&&(a.innerHTML=i,e.appendChild(a))})}function G(e,n){return window.emMessageBus.subscribe(n,a=>{if(!e)return;const i=e.getRootNode(),r=window[l];let o=r[n]&&r[n].sheet;o?r[n].refCount=r[n].refCount+1:(o=new CSSStyleSheet,o.replaceSync(a),r[n]={sheet:o,refCount:1});const s=i.adoptedStyleSheets||[];s.includes(o)||(i.adoptedStyleSheets=[...s,o])})}function v(e,n,a,i=!1){if(window.emMessageBus){const r=i?o=>{!o||typeof o!="object"||Array.isArray(o)||Object.keys(o).forEach(s=>a(s,o[s]))}:a;n=window.emMessageBus.subscribe(e,r)}return n}const S=`:host {
2
2
  display: block;
3
3
  font-family: inherit;
4
4
  -webkit-transform: translate3d(0, 0, 0);
@@ -375,7 +375,7 @@
375
375
  width: 70px;
376
376
  height: 85px;
377
377
  }
378
- }`,R=S,w=class{constructor(e){t.registerInstance(this,e),this.dataLoaded=t.createEvent(this,"data-loaded"),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=n=>{let a=n.length,i;for(;a!==0;)i=Math.floor(Math.random()*a),a--,[n[a],n[i]]=[n[i],n[a]];return n},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}watchEndpoint(e,n){e&&e!=n&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,c(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(e,n){e!=n&&g(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,n){e!=n&&this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&c(this.translationUrl),!this.translationUrl&&this.mbSource&&window.emMessageBus!=null&&v(`${this.mbSource}.Translation`,this.translationSubscription,p),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){window.emMessageBus!=null?this.stylingSubscription=x(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0):(this.clientStyling&&g(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.translationSubscription&&this.translationSubscription.unsubscribe()}fetchGameList(){let e=new URL(`${this.endpoint}/v1/casino/games`);return e.searchParams.append("platform",y()),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,a)=>{this.isLoading=!0,fetch(e.href).then(i=>i.json()).then(i=>{this.gamesToShow=this.setUpGames(i==null?void 0:i.items),n(!0)}).catch(i=>{console.error(i),this.hasErrors=!0,a(i)}).finally(()=>{this.isLoading=!1,this.dataLoaded.emit({target:this.host})})})}setUpGames(e){const n=this.shuffle(e).slice(0,40);return n.concat(n)}selectRandomGame(){const e=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(e-3)),this.selectedGameIndex+=e,this.selectedGameEl=this.gameContainer.children[this.selectedGameIndex]}playRandomGame(){this.animateGames(),typeof gtag=="function"&&gtag("event","PlayRandomGame",{context:"CasinoPlayRandomGame"})}respin(){this.animateGames(),typeof gtag=="function"&&gtag("event","RespinRandomGame",{context:"CasinoPlayRandomGame"})}animateGames(){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();const e=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),n=parseInt(e,10),a=this.selectedGameEl.offsetWidth,i=this.gameContainer.offsetWidth,o=(a+n)*this.selectedGameIndex+a/2-i/2,r=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${o}px)`,scale:1}],s={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(r,s),this.animation.onfinish=()=>{this.animationDone=!0,this.selectedGameEl.classList.add("TheRandomGame"),this.selectedGame=this.gamesToShow[this.selectedGameIndex]}}playGame(){this.selectedGame&&(window.postMessage({type:"PlayRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&&gtag("event","OpenRandomGame",{context:"CasinoPlayRandomGame"}))}showGameInfo(){window.postMessage({type:"InfoRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&&gtag("event","OpenRandomGameInfo",{context:"CasinoPlayRandomGame"})}renderGameDetails(){return t.h("div",{class:"RandomButtonsWrapper"},t.h("div",{class:"RandomGameDetails"},t.h("span",{class:"RandomGameTitle"},this.selectedGame.name),t.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),t.h("div",{class:"RandomButtons"},t.h("button",{class:"RandomButton On",onClick:()=>this.respin()},d("spinRandomGame",this.language)),!this.launchByGameCard&&t.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},d("playNowRandomGame",this.language))))}renderSkeleton(){const e=Array.from({length:5},(n,a)=>t.h("div",{class:"RandomGameCard",key:a},t.h("ui-skeleton",{structure:"rectangle",width:"300px",height:"420px",borderRadius:"10px",animation:!0})));return t.h("div",{class:"RandomGameWrapper"},t.h("div",{class:"GameContainerGradient"}),t.h("div",{class:"GamesContainer"},e))}render(){return t.h("div",{key:"39282b98f33d528ab689d4526114140853a774c1",ref:e=>this.stylingContainer=e},this.hasErrors?t.h("div",{class:"RandomGameError"},t.h("div",{class:"Title"},d("error",this.language))):this.isLoading?this.renderSkeleton():t.h("div",{class:"RandomGameWrapper"},t.h("div",{class:"GameContainerGradient"}),t.h("div",{class:"GamesContainer",ref:e=>this.gameContainer=e},this.gamesToShow&&this.gamesToShow.map((e,n)=>t.h("div",{class:"RandomGameCard",key:n,onClick:this.launchByGameCard==="true"?()=>this.playGame():void 0},t.h("div",{class:"RandomGameVendor"},e.vendor.name),t.h("img",{class:"RandomGameImage",src:e.thumbnail,alt:e.name,title:e.name}),this.selectedGame&&this.selectedGameIndex===n&&this.renderGameDetails()))),t.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},t.h("div",{class:"ButtonContainer"},this.iconVisibility&&t.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},t.h("div",{class:"QustionMark"},"?"),t.h("div",{class:"HexagonMarkShadow"}),t.h("div",{class:"HexagonMark"})),!this.animationStarted&&t.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},d("playRandomGame",this.language))))))}get host(){return t.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};w.style=R;const C=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{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)}.SkeletonCircle{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%}.SkeletonText{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)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{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)}.SkeletonImage{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)}.SkeletonLogo{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,f=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},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%"}handleStructureChange(e,n){n!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,n)=>t.h("div",{key:n,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
378
+ }`,R=S,w=class{constructor(e){t.registerInstance(this,e),this.dataLoaded=t.createEvent(this,"data-loaded"),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=n=>{let a=n.length,i;for(;a!==0;)i=Math.floor(Math.random()*a),a--,[n[a],n[i]]=[n[i],n[a]];return n},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}watchEndpoint(e,n){e&&e!=n&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,c(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(e,n){e!=n&&g(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,n){e!=n&&this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&c(this.translationUrl),!this.translationUrl&&this.mbSource&&window.emMessageBus!=null&&v(`${this.mbSource}.Translation`,this.translationSubscription,p),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){window.emMessageBus!=null?this.stylingSubscription=x(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0):(this.clientStyling&&g(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.translationSubscription&&this.translationSubscription.unsubscribe()}fetchGameList(){let e=new URL(`${this.endpoint}/v1/casino/games`);return e.searchParams.append("platform",y()),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,a)=>{this.isLoading=!0,fetch(e.href).then(i=>i.json()).then(i=>{this.gamesToShow=this.setUpGames(i==null?void 0:i.items),n(!0)}).catch(i=>{console.error(i),this.hasErrors=!0,a(i)}).finally(()=>{this.isLoading=!1,this.dataLoaded.emit({target:this.host})})})}setUpGames(e){const n=this.shuffle(e).slice(0,40);return n.concat(n)}selectRandomGame(){const e=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(e-3)),this.selectedGameIndex+=e,this.selectedGameEl=this.gameContainer.children[this.selectedGameIndex]}playRandomGame(){this.animateGames(),typeof gtag=="function"&&gtag("event","PlayRandomGame",{context:"CasinoPlayRandomGame"})}respin(){this.animateGames(),typeof gtag=="function"&&gtag("event","RespinRandomGame",{context:"CasinoPlayRandomGame"})}animateGames(){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();const e=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),n=parseInt(e,10),a=this.selectedGameEl.offsetWidth,i=this.gameContainer.offsetWidth,r=(a+n)*this.selectedGameIndex+a/2-i/2,o=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${r}px)`,scale:1}],s={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(o,s),this.animation.onfinish=()=>{this.animationDone=!0,this.selectedGameEl.classList.add("TheRandomGame"),this.selectedGame=this.gamesToShow[this.selectedGameIndex]}}playGame(){this.selectedGame&&(window.postMessage({type:"PlayRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&&gtag("event","OpenRandomGame",{context:"CasinoPlayRandomGame"}))}showGameInfo(){window.postMessage({type:"InfoRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&&gtag("event","OpenRandomGameInfo",{context:"CasinoPlayRandomGame"})}renderGameDetails(){return t.h("div",{class:"RandomButtonsWrapper"},t.h("div",{class:"RandomGameDetails"},t.h("span",{class:"RandomGameTitle"},this.selectedGame.name),t.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),t.h("div",{class:"RandomButtons"},t.h("button",{class:"RandomButton On",onClick:()=>this.respin()},d("spinRandomGame",this.language)),!this.launchByGameCard&&t.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},d("playNowRandomGame",this.language))))}renderSkeleton(){const e=Array.from({length:5},(n,a)=>t.h("div",{class:"RandomGameCard",key:a},t.h("ui-skeleton",{structure:"rectangle",width:"300px",height:"420px",borderRadius:"10px",animation:!0})));return t.h("div",{class:"RandomGameWrapper"},t.h("div",{class:"GameContainerGradient"}),t.h("div",{class:"GamesContainer"},e))}render(){return t.h("div",{key:"39282b98f33d528ab689d4526114140853a774c1",ref:e=>this.stylingContainer=e},this.hasErrors?t.h("div",{class:"RandomGameError"},t.h("div",{class:"Title"},d("error",this.language))):this.isLoading?this.renderSkeleton():t.h("div",{class:"RandomGameWrapper"},t.h("div",{class:"GameContainerGradient"}),t.h("div",{class:"GamesContainer",ref:e=>this.gameContainer=e},this.gamesToShow&&this.gamesToShow.map((e,n)=>t.h("div",{class:"RandomGameCard",key:n,onClick:this.launchByGameCard==="true"?()=>this.playGame():void 0},t.h("div",{class:"RandomGameVendor"},e.vendor.name),t.h("img",{class:"RandomGameImage",src:e.thumbnail,alt:e.name,title:e.name}),this.selectedGame&&this.selectedGameIndex===n&&this.renderGameDetails()))),t.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},t.h("div",{class:"ButtonContainer"},this.iconVisibility&&t.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},t.h("div",{class:"QustionMark"},"?"),t.h("div",{class:"HexagonMarkShadow"}),t.h("div",{class:"HexagonMark"})),!this.animationStarted&&t.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},d("playRandomGame",this.language))))))}get host(){return t.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};w.style=R;const C=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{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)}.SkeletonCircle{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%}.SkeletonText{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)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{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)}.SkeletonImage{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)}.SkeletonLogo{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,f=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},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%"}handleStructureChange(e,n){n!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,n)=>t.h("div",{key:n,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
379
379
  :host {
380
380
  --emw-skeleton-logo-width: ${this.stylingValue.width};
381
381
  --emw-skeleton-logo-height: ${this.stylingValue.height};
@@ -1,4 +1,4 @@
1
- import { r as p, c as f, h as a, g as y, H as b } from "../lazy/casino-play-random-game-7n61vetD.js";
1
+ import { r as p, c as f, h as a, g as y, H as b } from "../lazy/casino-play-random-game-CMFaWt79.js";
2
2
  const x = () => {
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";
@@ -70,8 +70,8 @@ function u(e, n) {
70
70
  return;
71
71
  const t = new URL(n);
72
72
  fetch(t.href).then((i) => i.text()).then((i) => {
73
- const o = document.createElement("style");
74
- o.innerHTML = i, e && e.appendChild(o);
73
+ const r = document.createElement("style");
74
+ r.innerHTML = i, e && e.appendChild(r);
75
75
  }).catch((i) => {
76
76
  console.error("There was an error while trying to load client styling from URL", i);
77
77
  });
@@ -82,12 +82,12 @@ function G(e, n, t, i = !1) {
82
82
  if (!("adoptedStyleSheets" in Document.prototype) || !i)
83
83
  return t = v(e, n), t;
84
84
  window[l] || (window[l] = {}), t = R(e, n);
85
- const r = t.unsubscribe.bind(t), s = () => {
85
+ const o = t.unsubscribe.bind(t), s = () => {
86
86
  if (window[l][n]) {
87
87
  const h = window[l][n];
88
88
  h.refCount > 1 ? h.refCount = h.refCount - 1 : delete window[l][n];
89
89
  }
90
- r();
90
+ o();
91
91
  };
92
92
  return t.unsubscribe = s, t;
93
93
  }
@@ -101,18 +101,24 @@ function R(e, n) {
101
101
  return window.emMessageBus.subscribe(n, (t) => {
102
102
  if (!e)
103
103
  return;
104
- const i = e.getRootNode(), o = window[l];
105
- let r = o[n] && o[n].sheet;
106
- r ? o[n].refCount = o[n].refCount + 1 : (r = new CSSStyleSheet(), r.replaceSync(t), o[n] = {
107
- sheet: r,
104
+ const i = e.getRootNode(), r = window[l];
105
+ let o = r[n] && r[n].sheet;
106
+ o ? r[n].refCount = r[n].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(t), r[n] = {
107
+ sheet: o,
108
108
  refCount: 1
109
109
  });
110
110
  const s = i.adoptedStyleSheets || [];
111
- s.includes(r) || (i.adoptedStyleSheets = [...s, r]);
111
+ s.includes(o) || (i.adoptedStyleSheets = [...s, o]);
112
112
  });
113
113
  }
114
- function S(e, n, t) {
115
- return window.emMessageBus && (n = window.emMessageBus.subscribe(e, t)), n;
114
+ function S(e, n, t, i = !1) {
115
+ if (window.emMessageBus) {
116
+ const r = i ? (o) => {
117
+ !o || typeof o != "object" || Array.isArray(o) || Object.keys(o).forEach((s) => t(s, o[s]));
118
+ } : t;
119
+ n = window.emMessageBus.subscribe(e, r);
120
+ }
121
+ return n;
116
122
  }
117
123
  const C = `:host {
118
124
  display: block;
@@ -564,18 +570,18 @@ const C = `:host {
564
570
  }
565
571
  animateGames() {
566
572
  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();
567
- const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), n = parseInt(e, 10), t = this.selectedGameEl.offsetWidth, i = this.gameContainer.offsetWidth, o = (t + n) * this.selectedGameIndex + // Width of game cards up to the selected
573
+ const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), n = parseInt(e, 10), t = this.selectedGameEl.offsetWidth, i = this.gameContainer.offsetWidth, r = (t + n) * this.selectedGameIndex + // Width of game cards up to the selected
568
574
  t / 2 - // Additional half card width to center to the selected game
569
- i / 2, r = [
575
+ i / 2, o = [
570
576
  { transform: "translateX(0px)", scale: 1 },
571
577
  { scale: 0.75 },
572
- { transform: `translateX(-${o}px)`, scale: 1 }
578
+ { transform: `translateX(-${r}px)`, scale: 1 }
573
579
  ], s = {
574
580
  duration: 3e3,
575
581
  easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
576
582
  fill: "forwards"
577
583
  };
578
- this.animation = this.gameContainer.animate(r, s), this.animation.onfinish = () => {
584
+ this.animation = this.gameContainer.animate(o, s), this.animation.onfinish = () => {
579
585
  this.animationDone = !0, this.selectedGameEl.classList.add("TheRandomGame"), this.selectedGame = this.gamesToShow[this.selectedGameIndex];
580
586
  };
581
587
  }