@everymatrix/casino-lobby 1.41.0 → 1.42.69

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 (165) hide show
  1. package/components/CasinoCalendar-BQx5-rlk.cjs +9 -0
  2. package/components/CasinoCalendar-CGBzMgQt.cjs +9 -0
  3. package/components/CasinoCalendar-C_GWg7fU.js +5215 -0
  4. package/components/CasinoCalendar-D8A7V_p_.js +5176 -0
  5. package/components/CasinoCalendar-T2eu_ijJ.js +5213 -0
  6. package/components/CasinoCalendar-wabXB62Y.js +5174 -0
  7. package/components/CasinoCalendarDailyDetails-BsuvGAH5.js +701 -0
  8. package/components/CasinoCalendarDailyDetails-CXJQEBiD.js +701 -0
  9. package/components/CasinoCalendarDailyDetails-DD9ivry_.js +701 -0
  10. package/components/CasinoCalendarDailyDetails-DuTGv4cR.cjs +1 -0
  11. package/components/CasinoCalendarDailyDetails-DxoETvny.cjs +1 -0
  12. package/components/CasinoCalendarDailyDetails-HgqSzjsm.js +701 -0
  13. package/components/CasinoCalendarDailyItem-9ZdOdWc1.js +315 -0
  14. package/components/CasinoCalendarDailyItem-BQH_cu-K.cjs +1 -0
  15. package/components/CasinoCalendarDailyItem-Cij4qSkW.js +315 -0
  16. package/components/CasinoCalendarDailyItem-DieqmO8j.js +315 -0
  17. package/components/CasinoCalendarDailyItem-DynzkhlT.js +315 -0
  18. package/components/CasinoCalendarDailyItem-W6jJ8Vef.cjs +1 -0
  19. package/components/CasinoCategoriesSlider-CCBzNNkz.cjs +1 -0
  20. package/components/CasinoCategoriesSlider-Dg6UQ05U.js +594 -0
  21. package/components/CasinoCategoriesSlider-DqNp_BOt.js +594 -0
  22. package/components/CasinoCategoriesSlider-GrF0HXC7.cjs +1 -0
  23. package/components/CasinoCategoriesSlider-_w_55gG7.js +594 -0
  24. package/components/CasinoCategoriesSlider-pHVM7RZL.js +594 -0
  25. package/components/CasinoCollectionsProviders-BIcovGJ8.js +646 -0
  26. package/components/CasinoCollectionsProviders-CH2GAKzC.cjs +1 -0
  27. package/components/CasinoCollectionsProviders-D45_hU-I.js +646 -0
  28. package/components/CasinoCollectionsProviders-DMj_7QBU.cjs +1 -0
  29. package/components/CasinoCollectionsProviders-DfgvvOqL.js +651 -0
  30. package/components/CasinoCollectionsProviders-N_n3oOYS.js +651 -0
  31. package/components/CasinoFavoritesSection-B0uLh581.js +426 -0
  32. package/components/CasinoFavoritesSection-BD3Pecym.cjs +1 -0
  33. package/components/CasinoFavoritesSection-BMVarhje.cjs +1 -0
  34. package/components/CasinoFavoritesSection-B_tSVGIY.js +426 -0
  35. package/components/CasinoFavoritesSection-Da-NSsar.js +426 -0
  36. package/components/CasinoFavoritesSection-Dm0HviHl.js +426 -0
  37. package/components/CasinoFilter-B9sKxzVS.js +620 -0
  38. package/components/CasinoFilter-CMVqOmbG.js +619 -0
  39. package/components/CasinoFilter-Cf00T9dk.js +620 -0
  40. package/components/CasinoFilter-D3HxH1PB.cjs +1 -0
  41. package/components/CasinoFilter-DD3HMkSy.js +619 -0
  42. package/components/CasinoFilter-c8_bvC4c.cjs +1 -0
  43. package/components/CasinoGamePage-BundiLLb.js +4266 -0
  44. package/components/CasinoGamePage-C10RyyZp.cjs +18 -0
  45. package/components/CasinoGamePage-CfbBY5CU.cjs +18 -0
  46. package/components/CasinoGamePage-DC-LoQTc.js +4266 -0
  47. package/components/CasinoGamePage-OZnVr_Bg.js +4287 -0
  48. package/components/CasinoGamePage-yVND0I7w.js +4287 -0
  49. package/components/CasinoGameThumbnail-B1NNWJ0K.js +1820 -0
  50. package/components/CasinoGameThumbnail-Bc66QenW.cjs +38 -0
  51. package/components/CasinoGameThumbnail-CIGOC4uM.js +1820 -0
  52. package/components/CasinoGameThumbnail-DA3jcFAi.js +1836 -0
  53. package/components/CasinoGameThumbnail-DT9ORm8q.js +1836 -0
  54. package/components/CasinoGameThumbnail-DcqwhTjb.cjs +38 -0
  55. package/components/CasinoGamesCategorySection-BNYOO745.cjs +1 -0
  56. package/components/CasinoGamesCategorySection-C78ehK4U.js +2991 -0
  57. package/components/CasinoGamesCategorySection-Cagm02Ih.js +3020 -0
  58. package/components/CasinoGamesCategorySection-DBr4EIfz.js +2991 -0
  59. package/components/CasinoGamesCategorySection-Kzwpz7w5.js +3020 -0
  60. package/components/CasinoGamesCategorySection-_vABwskz.cjs +1 -0
  61. package/components/CasinoJackpotBanner-5cCB-mh2.js +592 -0
  62. package/components/CasinoJackpotBanner-Agfg0mZ0.js +592 -0
  63. package/components/CasinoJackpotBanner-BAhiOMZp.cjs +1 -0
  64. package/components/CasinoJackpotBanner-D7ZMZfDV.cjs +1 -0
  65. package/components/CasinoJackpotBanner-DR-ZzHCR.js +596 -0
  66. package/components/CasinoJackpotBanner-QB6MSrF4.js +596 -0
  67. package/components/CasinoLastPlayedSection-BjhQKUSK.js +556 -0
  68. package/components/CasinoLastPlayedSection-BxzCwcL-.js +556 -0
  69. package/components/CasinoLastPlayedSection-D4vCeonE.js +556 -0
  70. package/components/CasinoLastPlayedSection-Dwe4Td9f.cjs +1 -0
  71. package/components/CasinoLastPlayedSection-XK5dzsj-.js +556 -0
  72. package/components/CasinoLastPlayedSection-v0aQnExT.cjs +1 -0
  73. package/components/CasinoLobby-AFKKESbR.cjs +1 -0
  74. package/components/CasinoLobby-CHvuexFs.js +2315 -0
  75. package/components/CasinoLobby-ClhYpfUU.js +2315 -0
  76. package/components/CasinoLobby-DALY2Dhs.cjs +1 -0
  77. package/components/CasinoLobby-hrKaH7qN.js +2315 -0
  78. package/components/CasinoLobby-ouSesgdC.js +2315 -0
  79. package/components/CasinoModal-BIVMlWQX.js +359 -0
  80. package/components/CasinoModal-BYKM2vRV.cjs +1 -0
  81. package/components/CasinoModal-C3wpERtX.js +359 -0
  82. package/components/CasinoModal-Cabai4o3.js +359 -0
  83. package/components/CasinoModal-DRyqJh1Q.cjs +1 -0
  84. package/components/CasinoModal-Dw_y4THL.js +359 -0
  85. package/components/CasinoMostPlayedSection-C3K0hu8_.js +583 -0
  86. package/components/CasinoMostPlayedSection-CJYMI9VB.js +583 -0
  87. package/components/CasinoMostPlayedSection-DJQuOa6_.js +583 -0
  88. package/components/CasinoMostPlayedSection-DmUpsWqs.cjs +1 -0
  89. package/components/CasinoMostPlayedSection-OUtCsU0t.cjs +1 -0
  90. package/components/CasinoMostPlayedSection-Y5er9Bjh.js +583 -0
  91. package/components/CasinoMyGames-BIxyEUtK.js +1306 -0
  92. package/components/CasinoMyGames-D5rJT74m.cjs +1 -0
  93. package/components/CasinoMyGames-DI1lwYc8.js +1305 -0
  94. package/components/CasinoMyGames-DTHVNaKn.cjs +1 -0
  95. package/components/CasinoMyGames-DwUV6CBn.js +1305 -0
  96. package/components/CasinoMyGames-ctBoKyAg.js +1306 -0
  97. package/components/CasinoPage-BGO7Qjz8.js +3535 -0
  98. package/components/CasinoPage-Bw9pVfhj.cjs +1 -0
  99. package/components/CasinoPage-Ccz2mt9L.js +3535 -0
  100. package/components/CasinoPage-D4SKFGBe.cjs +1 -0
  101. package/components/CasinoPage-DLYXRAgH.js +3538 -0
  102. package/components/CasinoPage-OtILzfbb.js +3538 -0
  103. package/components/CasinoRandomGame-CtZOIJcN.js +658 -0
  104. package/components/CasinoRandomGame-Cveyjhn1.js +642 -0
  105. package/components/CasinoRandomGame-DALiyns2.cjs +2 -0
  106. package/components/CasinoRandomGame-DVoXDVJK.cjs +2 -0
  107. package/components/CasinoRandomGame-DbeS8lnM.js +642 -0
  108. package/components/CasinoRandomGame-HLWP49DK.js +658 -0
  109. package/components/CasinoSearch-B8OpEZBN.cjs +1 -0
  110. package/components/CasinoSearch-BMZWS8yv.js +1058 -0
  111. package/components/CasinoSearch-BQe9Q-5N.js +1060 -0
  112. package/components/CasinoSearch-B_Yrv4Uo.cjs +1 -0
  113. package/components/CasinoSearch-CbqN_jyR.js +1058 -0
  114. package/components/CasinoSearch-D9U7Yh_K.js +1060 -0
  115. package/components/CasinoSlider-BOVT94iB.js +794 -0
  116. package/components/CasinoSlider-BSHGeAYd.js +788 -0
  117. package/components/CasinoSlider-BvS3IBvk.cjs +1 -0
  118. package/components/CasinoSlider-CF-wUwQR.cjs +1 -0
  119. package/components/CasinoSlider-CrHKe4Xk.js +803 -0
  120. package/components/CasinoSlider-Cxh3sOkP.js +797 -0
  121. package/components/CasinoSort-BOWrHLh_.js +420 -0
  122. package/components/CasinoSort-BwnNTnFA.js +420 -0
  123. package/components/CasinoSort-DTw1r10v.js +419 -0
  124. package/components/CasinoSort-DWtBvm9D.cjs +1 -0
  125. package/components/CasinoSort-LblMuLP4.js +419 -0
  126. package/components/CasinoSort-hnzXlXWX.cjs +1 -0
  127. package/components/CasinoWinners-C9izX5Hz.js +955 -0
  128. package/components/CasinoWinners-CO3x7y86.js +955 -0
  129. package/components/CasinoWinners-CZWuAxEs.js +953 -0
  130. package/components/CasinoWinners-CjaKY4pX.cjs +1 -0
  131. package/components/CasinoWinners-DOucg2Bq.js +953 -0
  132. package/components/CasinoWinners-xdJkyzy9.cjs +1 -0
  133. package/components/GeneralAnimationLoading-C4-n6eKC.cjs +1 -0
  134. package/components/GeneralAnimationLoading-CGGvPAzb.js +75 -0
  135. package/components/GeneralAnimationLoading-Ch_RgnSg.js +75 -0
  136. package/components/GeneralAnimationLoading-DBrwarIl.js +75 -0
  137. package/components/GeneralAnimationLoading-YY_Qislb.cjs +1 -0
  138. package/components/GeneralAnimationLoading-qKrL3K2W.js +75 -0
  139. package/es2015/casino-lobby.cjs +1 -0
  140. package/es2015/casino-lobby.js +16 -0
  141. package/esnext/casino-lobby.js +14 -0
  142. package/package.json +19 -34
  143. package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
  144. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  145. package/stencil/casino-play-random-game-CE7d8ftV.js +559 -0
  146. package/stencil/casino-play-random-game-JlSgoZ7I.js +577 -0
  147. package/stencil/casino-play-random-game-fmski7eY.cjs +371 -0
  148. package/stencil/index-bc02f5d1-CGWk9tpa.js +609 -0
  149. package/stencil/index-bc02f5d1-Cfiraoh4.js +625 -0
  150. package/stencil/index-bc02f5d1-zY9WEQOW.cjs +1 -0
  151. package/CHANGELOG.md +0 -39
  152. package/README.md +0 -0
  153. package/dist/casino-lobby.js +0 -33
  154. package/dist/casino-lobby.js.map +0 -1
  155. package/documentation.md +0 -176
  156. package/index.html +0 -50
  157. package/index.js +0 -1
  158. package/public/favicon.png +0 -0
  159. package/public/reset.css +0 -48
  160. package/rollup.config.js +0 -67
  161. package/src/CasinoLobby.svelte +0 -454
  162. package/src/i18n.js +0 -25
  163. package/src/index.ts +0 -4
  164. package/stories/CasinoLobby.stories.js +0 -13
  165. package/tsconfig.json +0 -6
@@ -0,0 +1,658 @@
1
+ var A = (t, e, a) => new Promise((n, o) => {
2
+ var r = (g) => {
3
+ try {
4
+ f(a.next(g));
5
+ } catch (p) {
6
+ o(p);
7
+ }
8
+ }, d = (g) => {
9
+ try {
10
+ f(a.throw(g));
11
+ } catch (p) {
12
+ o(p);
13
+ }
14
+ }, f = (g) => g.done ? n(g.value) : Promise.resolve(g.value).then(r, d);
15
+ f((a = a.apply(t, e)).next());
16
+ });
17
+ import { $ as H, W as we, a as be, S as _e, i as Ge, f as v, c as Re, s as xe, b as ke, e as b, r as F, v as u, d as x, w as h, x as D, h as I, t as O, g as ve, j as k, k as Me, o as Ce, p as Fe, y as Le, z as Se, A as We, l as Te, K as je, n as V, L as Ne, M as ze, N as Be, G as Y, D as Ie, u as L, B as S, q as K, C as De, E as Q, F as Je, Q as Pe, U as Ae } from "./CasinoCalendar-C_GWg7fU.js";
18
+ function He({ withLocale: t, translations: e }) {
19
+ H.subscribe((a) => {
20
+ a == null && (we.set(e), H.set(t));
21
+ });
22
+ }
23
+ function X(t, e) {
24
+ be(t, e);
25
+ }
26
+ function Oe(t) {
27
+ H.set(t);
28
+ }
29
+ const Z = {
30
+ en: {
31
+ playRandomGame: "Play a random game",
32
+ randomGameLoading: "Selecting ...",
33
+ playNowRandomGame: "Play Now",
34
+ noGames: "There are no random games to play"
35
+ },
36
+ "zh-hk": {
37
+ playRandomGame: "玩隨機遊戲",
38
+ randomGameLoading: "選擇...",
39
+ playNowRandomGame: "現在播放",
40
+ noGames: "There are no random games to play"
41
+ },
42
+ de: {
43
+ playRandomGame: "Spiel ein Zufallsspiel",
44
+ randomGameLoading: "Auswahl läuft",
45
+ playNowRandomGame: "Jetzt spielen",
46
+ noGames: "There are no random games to play"
47
+ },
48
+ fr: {
49
+ playRandomGame: "Jouer à un jeu aléatoire",
50
+ randomGameLoading: "Sélectinner ...",
51
+ playNowRandomGame: "Jouer maintenant",
52
+ noGames: "There are no random games to play"
53
+ },
54
+ ro: {
55
+ playRandomGame: "Joaca-te un joc aleatoriu",
56
+ randomGameLoading: "Se selecteaza ...",
57
+ playNowRandomGame: "Joaca-te Acum",
58
+ noGames: "Nu exista jocuri aleatorii de jucat"
59
+ },
60
+ tr: {
61
+ playRandomGame: "Oynamak için doğru oyunun adını yazın.",
62
+ randomGameLoading: "Henüz son aramalar yok. Herhangi bir oyunu arayın.",
63
+ playNowRandomGame: "Son arama",
64
+ noGames: "Yükleniyor, lütfen bekleyin"
65
+ },
66
+ es: {
67
+ playRandomGame: "Juego aleatorio",
68
+ randomGameLoading: "Seleccionando…",
69
+ playNowRandomGame: "Juega Ya",
70
+ noGames: "There are no random games to play"
71
+ },
72
+ pt: {
73
+ playRandomGame: "Jogue um jogo aleatório",
74
+ randomGameLoading: "Selecionando ...",
75
+ playNowRandomGame: "Jogue agora",
76
+ noGames: "There are no random games to play"
77
+ },
78
+ hr: {
79
+ playRandomGame: "Igrajte nasumičnu igru",
80
+ randomGameLoading: "Odabir...",
81
+ playNowRandomGame: "Igraj sada",
82
+ noGames: "Nema nasumičnih igara za igranje"
83
+ },
84
+ "pt-br": {
85
+ playRandomGame: "Jogue um jogo aleatório",
86
+ randomGameCarregando: "Selecionando...",
87
+ playNowRandomGame: "Jogue agora",
88
+ noGames: "There are no random games to play"
89
+ },
90
+ "es-mx": {
91
+ playRandomGame: "Jugar un juego al azar",
92
+ randomGameCargando: "Seleccionando..",
93
+ playNowRandomGame: "Jugar ahora",
94
+ noGames: "There are no random games to play"
95
+ },
96
+ "en-us": {
97
+ playRandomGame: "Play a random game",
98
+ randomGameLoading: "Selecting ...",
99
+ playNowRandomGame: "Play Now",
100
+ noGames: "There are no random games to play"
101
+ }
102
+ };
103
+ function Ue(t) {
104
+ ke(t, "svelte-fd0a5p", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
105
+ }
106
+ function $(t, e, a) {
107
+ const n = t.slice();
108
+ return n[40] = e[a], n;
109
+ }
110
+ const Ee = (t) => ({}), ee = (t) => ({});
111
+ function ae(t) {
112
+ let e, a, n, o, r, d, f;
113
+ const g = (
114
+ /*#slots*/
115
+ t[22].close
116
+ ), p = Fe(
117
+ g,
118
+ t,
119
+ /*$$scope*/
120
+ t[21],
121
+ ee
122
+ ), l = p || qe();
123
+ function _(s, w) {
124
+ return (
125
+ /*hasRandomGames*/
126
+ s[7] ? Ye : Ve
127
+ );
128
+ }
129
+ let m = _(t), c = m(t);
130
+ return {
131
+ c() {
132
+ e = b("div"), a = b("div"), n = b("span"), l.c(), o = F(), c.c(), u(n, "class", "ModalCloseBtn"), u(n, "role", "button"), u(a, "class", "ModalContainer"), u(e, "class", "ModalWindow");
133
+ },
134
+ m(s, w) {
135
+ x(s, e, w), h(e, a), h(a, n), l.m(n, null), h(a, o), c.m(a, null), r = !0, d || (f = D(
136
+ n,
137
+ "click",
138
+ /*closeModal*/
139
+ t[12]
140
+ ), d = !0);
141
+ },
142
+ p(s, w) {
143
+ p && p.p && (!r || w[0] & /*$$scope*/
144
+ 2097152) && Le(
145
+ p,
146
+ g,
147
+ s,
148
+ /*$$scope*/
149
+ s[21],
150
+ r ? We(
151
+ g,
152
+ /*$$scope*/
153
+ s[21],
154
+ w,
155
+ Ee
156
+ ) : Se(
157
+ /*$$scope*/
158
+ s[21]
159
+ ),
160
+ ee
161
+ ), m === (m = _(s)) && c ? c.p(s, w) : (c.d(1), c = m(s), c && (c.c(), c.m(a, null)));
162
+ },
163
+ i(s) {
164
+ r || (I(l, s), r = !0);
165
+ },
166
+ o(s) {
167
+ O(l, s), r = !1;
168
+ },
169
+ d(s) {
170
+ s && k(e), l.d(s), c.d(), d = !1, f();
171
+ }
172
+ };
173
+ }
174
+ function qe(t) {
175
+ let e, a;
176
+ return {
177
+ c() {
178
+ e = Y("svg"), a = Y("path"), u(a, "stroke-linecap", "round"), u(a, "stroke-linejoin", "round"), u(a, "stroke-width", "2"), u(a, "d", "M6 18L18 6M6 6l12 12"), u(e, "class", "w-6 h-6"), u(e, "fill", "none"), u(e, "stroke", "currentColor"), u(e, "viewBox", "0 0 24 24"), u(e, "xmlns", "http://www.w3.org/2000/svg");
179
+ },
180
+ m(n, o) {
181
+ x(n, e, o), h(e, a);
182
+ },
183
+ p: Ie,
184
+ d(n) {
185
+ n && k(e);
186
+ }
187
+ };
188
+ }
189
+ function Ve(t) {
190
+ let e, a = (
191
+ /*$_*/
192
+ t[9]("noGames") + ""
193
+ ), n;
194
+ return {
195
+ c() {
196
+ e = b("p"), n = L(a), u(e, "class", "RandomGameLoading");
197
+ },
198
+ m(o, r) {
199
+ x(o, e, r), h(e, n);
200
+ },
201
+ p(o, r) {
202
+ r[0] & /*$_*/
203
+ 512 && a !== (a = /*$_*/
204
+ o[9]("noGames") + "") && S(n, a);
205
+ },
206
+ d(o) {
207
+ o && k(e);
208
+ }
209
+ };
210
+ }
211
+ function Ye(t) {
212
+ let e, a, n, o, r = K(
213
+ /*gamesToShow*/
214
+ t[4]
215
+ ), d = [];
216
+ for (let l = 0; l < r.length; l += 1)
217
+ d[l] = te($(t, r, l));
218
+ function f(l, _) {
219
+ return (
220
+ /*animationDone*/
221
+ l[6] ? Qe : Ke
222
+ );
223
+ }
224
+ let g = f(t), p = g(t);
225
+ return {
226
+ c() {
227
+ e = b("div"), a = b("main"), n = b("div");
228
+ for (let l = 0; l < d.length; l += 1)
229
+ d[l].c();
230
+ o = F(), p.c(), u(n, "class", "GamesContainer"), u(a, "class", "RandomGamesSliderWrapper"), u(e, "class", "RandomGameWrapper");
231
+ },
232
+ m(l, _) {
233
+ x(l, e, _), h(e, a), h(a, n);
234
+ for (let m = 0; m < d.length; m += 1)
235
+ d[m] && d[m].m(n, null);
236
+ t[23](n), h(e, o), p.m(e, null);
237
+ },
238
+ p(l, _) {
239
+ if (_[0] & /*gamesToShow*/
240
+ 16) {
241
+ r = K(
242
+ /*gamesToShow*/
243
+ l[4]
244
+ );
245
+ let m;
246
+ for (m = 0; m < r.length; m += 1) {
247
+ const c = $(l, r, m);
248
+ d[m] ? d[m].p(c, _) : (d[m] = te(c), d[m].c(), d[m].m(n, null));
249
+ }
250
+ for (; m < d.length; m += 1)
251
+ d[m].d(1);
252
+ d.length = r.length;
253
+ }
254
+ g === (g = f(l)) && p ? p.p(l, _) : (p.d(1), p = g(l), p && (p.c(), p.m(e, null)));
255
+ },
256
+ d(l) {
257
+ l && k(e), De(d, l), t[23](null), p.d();
258
+ }
259
+ };
260
+ }
261
+ function te(t) {
262
+ let e, a, n, o, r, d;
263
+ return {
264
+ c() {
265
+ e = b("div"), a = b("img"), d = F(), u(a, "class", "RandomGameImage"), Q(a.src, n = /*game*/
266
+ t[40].thumbnail) || u(a, "src", n), u(a, "alt", o = /*game*/
267
+ t[40].name), u(a, "title", r = /*game*/
268
+ t[40].name), u(e, "class", "item");
269
+ },
270
+ m(f, g) {
271
+ x(f, e, g), h(e, a), h(e, d);
272
+ },
273
+ p(f, g) {
274
+ g[0] & /*gamesToShow*/
275
+ 16 && !Q(a.src, n = /*game*/
276
+ f[40].thumbnail) && u(a, "src", n), g[0] & /*gamesToShow*/
277
+ 16 && o !== (o = /*game*/
278
+ f[40].name) && u(a, "alt", o), g[0] & /*gamesToShow*/
279
+ 16 && r !== (r = /*game*/
280
+ f[40].name) && u(a, "title", r);
281
+ },
282
+ d(f) {
283
+ f && k(e);
284
+ }
285
+ };
286
+ }
287
+ function Ke(t) {
288
+ let e, a = (
289
+ /*$_*/
290
+ t[9]("randomGameLoading") + ""
291
+ ), n;
292
+ return {
293
+ c() {
294
+ e = b("p"), n = L(a), u(e, "class", "RandomGameLoading");
295
+ },
296
+ m(o, r) {
297
+ x(o, e, r), h(e, n);
298
+ },
299
+ p(o, r) {
300
+ r[0] & /*$_*/
301
+ 512 && a !== (a = /*$_*/
302
+ o[9]("randomGameLoading") + "") && S(n, a);
303
+ },
304
+ d(o) {
305
+ o && k(e);
306
+ }
307
+ };
308
+ }
309
+ function Qe(t) {
310
+ let e, a, n, o, r = (
311
+ /*randomGame*/
312
+ t[3].name + ""
313
+ ), d, f, g, p = (
314
+ /*randomGame*/
315
+ t[3].vendor.name + ""
316
+ ), l, _, m, c = (
317
+ /*$_*/
318
+ t[9]("playNowRandomGame") + ""
319
+ ), s, w, W;
320
+ return {
321
+ c() {
322
+ e = b("button"), e.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));}
323
+ </style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`, a = F(), n = b("div"), o = b("p"), d = L(r), f = F(), g = b("p"), l = L(p), _ = F(), m = b("button"), s = L(c), u(e, "class", "RandomTryAgain"), u(o, "class", "RandomGameTitle"), u(g, "class", "RandomGameVendor"), u(m, "class", "RandomGamePlay"), u(n, "class", "RandomGameDetails");
324
+ },
325
+ m(G, R) {
326
+ x(G, e, R), x(G, a, R), x(G, n, R), h(n, o), h(o, d), h(n, f), h(n, g), h(g, l), h(n, _), h(n, m), h(m, s), w || (W = [
327
+ D(
328
+ e,
329
+ "click",
330
+ /*click_handler*/
331
+ t[24]
332
+ ),
333
+ D(
334
+ m,
335
+ "click",
336
+ /*click_handler_1*/
337
+ t[25]
338
+ )
339
+ ], w = !0);
340
+ },
341
+ p(G, R) {
342
+ R[0] & /*randomGame*/
343
+ 8 && r !== (r = /*randomGame*/
344
+ G[3].name + "") && S(d, r), R[0] & /*randomGame*/
345
+ 8 && p !== (p = /*randomGame*/
346
+ G[3].vendor.name + "") && S(l, p), R[0] & /*$_*/
347
+ 512 && c !== (c = /*$_*/
348
+ G[9]("playNowRandomGame") + "") && S(s, c);
349
+ },
350
+ d(G) {
351
+ G && (k(e), k(a), k(n)), w = !1, Ae(W);
352
+ }
353
+ };
354
+ }
355
+ function Xe(t) {
356
+ let e, a = (
357
+ /*$_*/
358
+ t[9]("playRandomGame") + ""
359
+ ), n;
360
+ return {
361
+ c() {
362
+ e = b("span"), n = L(a), u(e, "class", "RandomButtonText");
363
+ },
364
+ m(o, r) {
365
+ x(o, e, r), h(e, n);
366
+ },
367
+ p(o, r) {
368
+ r[0] & /*$_*/
369
+ 512 && a !== (a = /*$_*/
370
+ o[9]("playRandomGame") + "") && S(n, a);
371
+ },
372
+ d(o) {
373
+ o && k(e);
374
+ }
375
+ };
376
+ }
377
+ function Ze(t) {
378
+ let e, a;
379
+ return {
380
+ c() {
381
+ e = b("span"), a = L(
382
+ /*buttontext*/
383
+ t[1]
384
+ ), u(e, "class", "RandomButtonText");
385
+ },
386
+ m(n, o) {
387
+ x(n, e, o), h(e, a);
388
+ },
389
+ p(n, o) {
390
+ o[0] & /*buttontext*/
391
+ 2 && S(
392
+ a,
393
+ /*buttontext*/
394
+ n[1]
395
+ );
396
+ },
397
+ d(n) {
398
+ n && k(e);
399
+ }
400
+ };
401
+ }
402
+ function $e(t) {
403
+ let e, a, n, o, r, d, f, g, p, l = (
404
+ /*show*/
405
+ t[5] && ae(t)
406
+ );
407
+ function _(s, w) {
408
+ if (
409
+ /*buttontext*/
410
+ s[1]
411
+ ) return Ze;
412
+ if (!/*buttontext*/
413
+ s[1]) return Xe;
414
+ }
415
+ let m = _(t), c = m && m(t);
416
+ return {
417
+ c() {
418
+ e = b("div"), l && l.c(), a = F(), n = b("div"), o = b("button"), c && c.c(), r = F(), d = b("span"), u(d, "class", "RandomButtonIcon"), u(o, "class", "RandomButton"), u(n, "class", "RandomButtonWrapper"), u(e, "part", "CustomStylingContainer");
419
+ },
420
+ m(s, w) {
421
+ x(s, e, w), l && l.m(e, null), h(e, a), h(e, n), h(n, o), c && c.m(o, null), h(o, r), h(o, d), d.innerHTML = /*randombuttonicon*/
422
+ t[0], t[27](e), f = !0, g || (p = D(
423
+ o,
424
+ "click",
425
+ /*click_handler_2*/
426
+ t[26]
427
+ ), g = !0);
428
+ },
429
+ p(s, w) {
430
+ /*show*/
431
+ s[5] ? l ? (l.p(s, w), w[0] & /*show*/
432
+ 32 && I(l, 1)) : (l = ae(s), l.c(), I(l, 1), l.m(e, a)) : l && (Te(), O(l, 1, 1, () => {
433
+ l = null;
434
+ }), ve()), m === (m = _(s)) && c ? c.p(s, w) : (c && c.d(1), c = m && m(s), c && (c.c(), c.m(o, r))), (!f || w[0] & /*randombuttonicon*/
435
+ 1) && (d.innerHTML = /*randombuttonicon*/
436
+ s[0]);
437
+ },
438
+ i(s) {
439
+ f || (I(l), f = !0);
440
+ },
441
+ o(s) {
442
+ O(l), f = !1;
443
+ },
444
+ d(s) {
445
+ s && k(e), l && l.d(), c && c.d(), t[27](null), g = !1, p();
446
+ }
447
+ };
448
+ }
449
+ function ea(t, e, a) {
450
+ let n;
451
+ Me(t, Je, (i) => a(9, n = i));
452
+ let { $$slots: o = {}, $$scope: r } = e, { endpoint: d = "" } = e, { datasource: f = "" } = e, { gameevent: g = "" } = e, { lang: p = "" } = e, { randombuttonicon: l = "" } = e, { buttontext: _ = "" } = e, { translationurl: m = "" } = e, { clientstyling: c = "" } = e, { clientstylingurl: s = "" } = e, { filteredrandomgamecategories: w = "" } = e, W = [], G = "", R, j = !1, J = !1, z = !1, ne = window.navigator.userAgent, M, T, U, B, E = null;
453
+ He({ withLocale: "en", translations: {} });
454
+ const oe = () => {
455
+ fetch(m).then((y) => y.json()).then((y) => {
456
+ Object.keys(y).forEach((C) => {
457
+ X(C, y[C]);
458
+ });
459
+ }).catch((y) => {
460
+ console.log(y);
461
+ });
462
+ };
463
+ Object.keys(Z).forEach((i) => {
464
+ X(i, Z[i]);
465
+ });
466
+ const le = () => {
467
+ let i = new URL(`${d}/v1/casino/games`);
468
+ i.searchParams.append("platform", je(ne)), i.searchParams.append("datasource", f), i.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), w && i.searchParams.append("filter", `groups=${w}`), i.searchParams.append("expand", "categories,vendor"), i.searchParams.append("pagination", "offset=0,limit=1000"), fetch(i.href).then((y) => y.json()).then((y) => {
469
+ W = y.items, W.length ? (a(4, R = ie(W.slice(0, 19))), a(7, z = !0)) : (a(4, R = []), a(7, z = !1));
470
+ }).catch((y) => {
471
+ console.log(y), a(7, z = !1);
472
+ });
473
+ }, ie = (i) => {
474
+ const y = se(i);
475
+ return y.concat(y);
476
+ }, re = () => A(this, null, function* () {
477
+ yield Pe(), B = Math.floor(Math.random() * (R.length / 2)) + R.length / 2, a(3, G = R[B]), U = T.children[B];
478
+ }), P = () => A(this, null, function* () {
479
+ a(6, J = !1), a(5, j = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), yield re();
480
+ const i = window.getComputedStyle(T).getPropertyValue("gap"), y = parseInt(i, 10) || 0, N = (U.offsetHeight + y) * B, he = [
481
+ { transform: "translateX(0px)" },
482
+ { filter: "blur(5px)" },
483
+ {
484
+ transform: `translateY(-${N}px)`
485
+ }
486
+ ], ye = {
487
+ duration: 2e3,
488
+ easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
489
+ fill: "forwards"
490
+ };
491
+ E = T.animate(he, ye), E.onfinish = () => {
492
+ a(6, J = !0);
493
+ };
494
+ }), se = (i) => {
495
+ const y = structuredClone(i);
496
+ let C = y.length, N;
497
+ for (; C != 0; )
498
+ N = Math.floor(Math.random() * C), C--, [y[C], y[N]] = [y[N], y[C]];
499
+ return y;
500
+ }, q = () => {
501
+ window.postMessage(
502
+ {
503
+ type: g,
504
+ gameId: G.gId || G.id
505
+ },
506
+ window.location.href
507
+ ), a(5, j = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
508
+ context: "RandomGameWidget",
509
+ gameId: `${G.gId || G.id}`
510
+ });
511
+ }, me = () => {
512
+ a(5, j = !1), window.postMessage({ type: "RandomWidgetState", state: j }, window.location.href);
513
+ }, de = () => {
514
+ Oe(p);
515
+ };
516
+ Ce(() => () => {
517
+ });
518
+ function ce(i) {
519
+ V[i ? "unshift" : "push"](() => {
520
+ T = i, a(8, T);
521
+ });
522
+ }
523
+ const ue = () => P(), ge = () => q(), pe = () => P();
524
+ function fe(i) {
525
+ V[i ? "unshift" : "push"](() => {
526
+ M = i, a(2, M);
527
+ });
528
+ }
529
+ return t.$$set = (i) => {
530
+ "endpoint" in i && a(13, d = i.endpoint), "datasource" in i && a(14, f = i.datasource), "gameevent" in i && a(15, g = i.gameevent), "lang" in i && a(16, p = i.lang), "randombuttonicon" in i && a(0, l = i.randombuttonicon), "buttontext" in i && a(1, _ = i.buttontext), "translationurl" in i && a(17, m = i.translationurl), "clientstyling" in i && a(18, c = i.clientstyling), "clientstylingurl" in i && a(19, s = i.clientstylingurl), "filteredrandomgamecategories" in i && a(20, w = i.filteredrandomgamecategories), "$$scope" in i && a(21, r = i.$$scope);
531
+ }, t.$$.update = () => {
532
+ t.$$.dirty[0] & /*lang*/
533
+ 65536 && p && de(), t.$$.dirty[0] & /*translationurl*/
534
+ 131072 && m && oe(), t.$$.dirty[0] & /*endpoint, datasource*/
535
+ 24576 && d && f && le(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
536
+ 262148 && c && M && Ne(M, c), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
537
+ 524292 && s && M && ze(M, s), t.$$.dirty[0] & /*customStylingContainer*/
538
+ 4 && M && Be(M, "Casino.Style");
539
+ }, [
540
+ l,
541
+ _,
542
+ M,
543
+ G,
544
+ R,
545
+ j,
546
+ J,
547
+ z,
548
+ T,
549
+ n,
550
+ P,
551
+ q,
552
+ me,
553
+ d,
554
+ f,
555
+ g,
556
+ p,
557
+ m,
558
+ c,
559
+ s,
560
+ w,
561
+ r,
562
+ o,
563
+ ce,
564
+ ue,
565
+ ge,
566
+ pe,
567
+ fe
568
+ ];
569
+ }
570
+ class aa extends _e {
571
+ constructor(e) {
572
+ super(), Ge(
573
+ this,
574
+ e,
575
+ ea,
576
+ $e,
577
+ xe,
578
+ {
579
+ endpoint: 13,
580
+ datasource: 14,
581
+ gameevent: 15,
582
+ lang: 16,
583
+ randombuttonicon: 0,
584
+ buttontext: 1,
585
+ translationurl: 17,
586
+ clientstyling: 18,
587
+ clientstylingurl: 19,
588
+ filteredrandomgamecategories: 20
589
+ },
590
+ Ue,
591
+ [-1, -1]
592
+ );
593
+ }
594
+ get endpoint() {
595
+ return this.$$.ctx[13];
596
+ }
597
+ set endpoint(e) {
598
+ this.$$set({ endpoint: e }), v();
599
+ }
600
+ get datasource() {
601
+ return this.$$.ctx[14];
602
+ }
603
+ set datasource(e) {
604
+ this.$$set({ datasource: e }), v();
605
+ }
606
+ get gameevent() {
607
+ return this.$$.ctx[15];
608
+ }
609
+ set gameevent(e) {
610
+ this.$$set({ gameevent: e }), v();
611
+ }
612
+ get lang() {
613
+ return this.$$.ctx[16];
614
+ }
615
+ set lang(e) {
616
+ this.$$set({ lang: e }), v();
617
+ }
618
+ get randombuttonicon() {
619
+ return this.$$.ctx[0];
620
+ }
621
+ set randombuttonicon(e) {
622
+ this.$$set({ randombuttonicon: e }), v();
623
+ }
624
+ get buttontext() {
625
+ return this.$$.ctx[1];
626
+ }
627
+ set buttontext(e) {
628
+ this.$$set({ buttontext: e }), v();
629
+ }
630
+ get translationurl() {
631
+ return this.$$.ctx[17];
632
+ }
633
+ set translationurl(e) {
634
+ this.$$set({ translationurl: e }), v();
635
+ }
636
+ get clientstyling() {
637
+ return this.$$.ctx[18];
638
+ }
639
+ set clientstyling(e) {
640
+ this.$$set({ clientstyling: e }), v();
641
+ }
642
+ get clientstylingurl() {
643
+ return this.$$.ctx[19];
644
+ }
645
+ set clientstylingurl(e) {
646
+ this.$$set({ clientstylingurl: e }), v();
647
+ }
648
+ get filteredrandomgamecategories() {
649
+ return this.$$.ctx[20];
650
+ }
651
+ set filteredrandomgamecategories(e) {
652
+ this.$$set({ filteredrandomgamecategories: e }), v();
653
+ }
654
+ }
655
+ Re(aa, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {} }, ["close"], [], !0);
656
+ export {
657
+ aa as default
658
+ };