@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,642 @@
1
+ import { $ as A, W as ye, a as we, S as be, i as _e, f as v, c as Ge, s as Re, b as xe, e as b, r as F, v as u, d as x, w as h, x as D, h as I, t as H, g as ke, j as k, k as ve, o as Me, p as Ce, y as Fe, z as Le, A as Se, l as We, K as Te, n as q, L as je, M as Ne, N as ze, G as V, D as Be, u as L, B as S, q as Y, C as Ie, E as K, F as De, Q as Je, U as Pe } from "./CasinoCalendar-D8A7V_p_.js";
2
+ function Ae({ withLocale: t, translations: e }) {
3
+ A.subscribe((a) => {
4
+ a == null && (ye.set(e), A.set(t));
5
+ });
6
+ }
7
+ function Q(t, e) {
8
+ we(t, e);
9
+ }
10
+ function He(t) {
11
+ A.set(t);
12
+ }
13
+ const X = {
14
+ en: {
15
+ playRandomGame: "Play a random game",
16
+ randomGameLoading: "Selecting ...",
17
+ playNowRandomGame: "Play Now",
18
+ noGames: "There are no random games to play"
19
+ },
20
+ "zh-hk": {
21
+ playRandomGame: "玩隨機遊戲",
22
+ randomGameLoading: "選擇...",
23
+ playNowRandomGame: "現在播放",
24
+ noGames: "There are no random games to play"
25
+ },
26
+ de: {
27
+ playRandomGame: "Spiel ein Zufallsspiel",
28
+ randomGameLoading: "Auswahl läuft",
29
+ playNowRandomGame: "Jetzt spielen",
30
+ noGames: "There are no random games to play"
31
+ },
32
+ fr: {
33
+ playRandomGame: "Jouer à un jeu aléatoire",
34
+ randomGameLoading: "Sélectinner ...",
35
+ playNowRandomGame: "Jouer maintenant",
36
+ noGames: "There are no random games to play"
37
+ },
38
+ ro: {
39
+ playRandomGame: "Joaca-te un joc aleatoriu",
40
+ randomGameLoading: "Se selecteaza ...",
41
+ playNowRandomGame: "Joaca-te Acum",
42
+ noGames: "Nu exista jocuri aleatorii de jucat"
43
+ },
44
+ tr: {
45
+ playRandomGame: "Oynamak için doğru oyunun adını yazın.",
46
+ randomGameLoading: "Henüz son aramalar yok. Herhangi bir oyunu arayın.",
47
+ playNowRandomGame: "Son arama",
48
+ noGames: "Yükleniyor, lütfen bekleyin"
49
+ },
50
+ es: {
51
+ playRandomGame: "Juego aleatorio",
52
+ randomGameLoading: "Seleccionando…",
53
+ playNowRandomGame: "Juega Ya",
54
+ noGames: "There are no random games to play"
55
+ },
56
+ pt: {
57
+ playRandomGame: "Jogue um jogo aleatório",
58
+ randomGameLoading: "Selecionando ...",
59
+ playNowRandomGame: "Jogue agora",
60
+ noGames: "There are no random games to play"
61
+ },
62
+ hr: {
63
+ playRandomGame: "Igrajte nasumičnu igru",
64
+ randomGameLoading: "Odabir...",
65
+ playNowRandomGame: "Igraj sada",
66
+ noGames: "Nema nasumičnih igara za igranje"
67
+ },
68
+ "pt-br": {
69
+ playRandomGame: "Jogue um jogo aleatório",
70
+ randomGameCarregando: "Selecionando...",
71
+ playNowRandomGame: "Jogue agora",
72
+ noGames: "There are no random games to play"
73
+ },
74
+ "es-mx": {
75
+ playRandomGame: "Jugar un juego al azar",
76
+ randomGameCargando: "Seleccionando..",
77
+ playNowRandomGame: "Jugar ahora",
78
+ noGames: "There are no random games to play"
79
+ },
80
+ "en-us": {
81
+ playRandomGame: "Play a random game",
82
+ randomGameLoading: "Selecting ...",
83
+ playNowRandomGame: "Play Now",
84
+ noGames: "There are no random games to play"
85
+ }
86
+ };
87
+ function Oe(t) {
88
+ xe(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}");
89
+ }
90
+ function Z(t, e, a) {
91
+ const n = t.slice();
92
+ return n[40] = e[a], n;
93
+ }
94
+ const Ue = (t) => ({}), $ = (t) => ({});
95
+ function ee(t) {
96
+ let e, a, n, l, s, c, p;
97
+ const f = (
98
+ /*#slots*/
99
+ t[22].close
100
+ ), g = Ce(
101
+ f,
102
+ t,
103
+ /*$$scope*/
104
+ t[21],
105
+ $
106
+ ), o = g || Ee();
107
+ function _(r, w) {
108
+ return (
109
+ /*hasRandomGames*/
110
+ r[7] ? Ve : qe
111
+ );
112
+ }
113
+ let m = _(t), d = m(t);
114
+ return {
115
+ c() {
116
+ e = b("div"), a = b("div"), n = b("span"), o.c(), l = F(), d.c(), u(n, "class", "ModalCloseBtn"), u(n, "role", "button"), u(a, "class", "ModalContainer"), u(e, "class", "ModalWindow");
117
+ },
118
+ m(r, w) {
119
+ x(r, e, w), h(e, a), h(a, n), o.m(n, null), h(a, l), d.m(a, null), s = !0, c || (p = D(
120
+ n,
121
+ "click",
122
+ /*closeModal*/
123
+ t[12]
124
+ ), c = !0);
125
+ },
126
+ p(r, w) {
127
+ g && g.p && (!s || w[0] & /*$$scope*/
128
+ 2097152) && Fe(
129
+ g,
130
+ f,
131
+ r,
132
+ /*$$scope*/
133
+ r[21],
134
+ s ? Se(
135
+ f,
136
+ /*$$scope*/
137
+ r[21],
138
+ w,
139
+ Ue
140
+ ) : Le(
141
+ /*$$scope*/
142
+ r[21]
143
+ ),
144
+ $
145
+ ), m === (m = _(r)) && d ? d.p(r, w) : (d.d(1), d = m(r), d && (d.c(), d.m(a, null)));
146
+ },
147
+ i(r) {
148
+ s || (I(o, r), s = !0);
149
+ },
150
+ o(r) {
151
+ H(o, r), s = !1;
152
+ },
153
+ d(r) {
154
+ r && k(e), o.d(r), d.d(), c = !1, p();
155
+ }
156
+ };
157
+ }
158
+ function Ee(t) {
159
+ let e, a;
160
+ return {
161
+ c() {
162
+ e = V("svg"), a = V("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");
163
+ },
164
+ m(n, l) {
165
+ x(n, e, l), h(e, a);
166
+ },
167
+ p: Be,
168
+ d(n) {
169
+ n && k(e);
170
+ }
171
+ };
172
+ }
173
+ function qe(t) {
174
+ let e, a = (
175
+ /*$_*/
176
+ t[9]("noGames") + ""
177
+ ), n;
178
+ return {
179
+ c() {
180
+ e = b("p"), n = L(a), u(e, "class", "RandomGameLoading");
181
+ },
182
+ m(l, s) {
183
+ x(l, e, s), h(e, n);
184
+ },
185
+ p(l, s) {
186
+ s[0] & /*$_*/
187
+ 512 && a !== (a = /*$_*/
188
+ l[9]("noGames") + "") && S(n, a);
189
+ },
190
+ d(l) {
191
+ l && k(e);
192
+ }
193
+ };
194
+ }
195
+ function Ve(t) {
196
+ let e, a, n, l, s = Y(
197
+ /*gamesToShow*/
198
+ t[4]
199
+ ), c = [];
200
+ for (let o = 0; o < s.length; o += 1)
201
+ c[o] = ae(Z(t, s, o));
202
+ function p(o, _) {
203
+ return (
204
+ /*animationDone*/
205
+ o[6] ? Ke : Ye
206
+ );
207
+ }
208
+ let f = p(t), g = f(t);
209
+ return {
210
+ c() {
211
+ e = b("div"), a = b("main"), n = b("div");
212
+ for (let o = 0; o < c.length; o += 1)
213
+ c[o].c();
214
+ l = F(), g.c(), u(n, "class", "GamesContainer"), u(a, "class", "RandomGamesSliderWrapper"), u(e, "class", "RandomGameWrapper");
215
+ },
216
+ m(o, _) {
217
+ x(o, e, _), h(e, a), h(a, n);
218
+ for (let m = 0; m < c.length; m += 1)
219
+ c[m] && c[m].m(n, null);
220
+ t[23](n), h(e, l), g.m(e, null);
221
+ },
222
+ p(o, _) {
223
+ if (_[0] & /*gamesToShow*/
224
+ 16) {
225
+ s = Y(
226
+ /*gamesToShow*/
227
+ o[4]
228
+ );
229
+ let m;
230
+ for (m = 0; m < s.length; m += 1) {
231
+ const d = Z(o, s, m);
232
+ c[m] ? c[m].p(d, _) : (c[m] = ae(d), c[m].c(), c[m].m(n, null));
233
+ }
234
+ for (; m < c.length; m += 1)
235
+ c[m].d(1);
236
+ c.length = s.length;
237
+ }
238
+ f === (f = p(o)) && g ? g.p(o, _) : (g.d(1), g = f(o), g && (g.c(), g.m(e, null)));
239
+ },
240
+ d(o) {
241
+ o && k(e), Ie(c, o), t[23](null), g.d();
242
+ }
243
+ };
244
+ }
245
+ function ae(t) {
246
+ let e, a, n, l, s, c;
247
+ return {
248
+ c() {
249
+ e = b("div"), a = b("img"), c = F(), u(a, "class", "RandomGameImage"), K(a.src, n = /*game*/
250
+ t[40].thumbnail) || u(a, "src", n), u(a, "alt", l = /*game*/
251
+ t[40].name), u(a, "title", s = /*game*/
252
+ t[40].name), u(e, "class", "item");
253
+ },
254
+ m(p, f) {
255
+ x(p, e, f), h(e, a), h(e, c);
256
+ },
257
+ p(p, f) {
258
+ f[0] & /*gamesToShow*/
259
+ 16 && !K(a.src, n = /*game*/
260
+ p[40].thumbnail) && u(a, "src", n), f[0] & /*gamesToShow*/
261
+ 16 && l !== (l = /*game*/
262
+ p[40].name) && u(a, "alt", l), f[0] & /*gamesToShow*/
263
+ 16 && s !== (s = /*game*/
264
+ p[40].name) && u(a, "title", s);
265
+ },
266
+ d(p) {
267
+ p && k(e);
268
+ }
269
+ };
270
+ }
271
+ function Ye(t) {
272
+ let e, a = (
273
+ /*$_*/
274
+ t[9]("randomGameLoading") + ""
275
+ ), n;
276
+ return {
277
+ c() {
278
+ e = b("p"), n = L(a), u(e, "class", "RandomGameLoading");
279
+ },
280
+ m(l, s) {
281
+ x(l, e, s), h(e, n);
282
+ },
283
+ p(l, s) {
284
+ s[0] & /*$_*/
285
+ 512 && a !== (a = /*$_*/
286
+ l[9]("randomGameLoading") + "") && S(n, a);
287
+ },
288
+ d(l) {
289
+ l && k(e);
290
+ }
291
+ };
292
+ }
293
+ function Ke(t) {
294
+ let e, a, n, l, s = (
295
+ /*randomGame*/
296
+ t[3].name + ""
297
+ ), c, p, f, g = (
298
+ /*randomGame*/
299
+ t[3].vendor.name + ""
300
+ ), o, _, m, d = (
301
+ /*$_*/
302
+ t[9]("playNowRandomGame") + ""
303
+ ), r, w, W;
304
+ return {
305
+ c() {
306
+ 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));}
307
+ </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"), l = b("p"), c = L(s), p = F(), f = b("p"), o = L(g), _ = F(), m = b("button"), r = L(d), u(e, "class", "RandomTryAgain"), u(l, "class", "RandomGameTitle"), u(f, "class", "RandomGameVendor"), u(m, "class", "RandomGamePlay"), u(n, "class", "RandomGameDetails");
308
+ },
309
+ m(G, R) {
310
+ x(G, e, R), x(G, a, R), x(G, n, R), h(n, l), h(l, c), h(n, p), h(n, f), h(f, o), h(n, _), h(n, m), h(m, r), w || (W = [
311
+ D(
312
+ e,
313
+ "click",
314
+ /*click_handler*/
315
+ t[24]
316
+ ),
317
+ D(
318
+ m,
319
+ "click",
320
+ /*click_handler_1*/
321
+ t[25]
322
+ )
323
+ ], w = !0);
324
+ },
325
+ p(G, R) {
326
+ R[0] & /*randomGame*/
327
+ 8 && s !== (s = /*randomGame*/
328
+ G[3].name + "") && S(c, s), R[0] & /*randomGame*/
329
+ 8 && g !== (g = /*randomGame*/
330
+ G[3].vendor.name + "") && S(o, g), R[0] & /*$_*/
331
+ 512 && d !== (d = /*$_*/
332
+ G[9]("playNowRandomGame") + "") && S(r, d);
333
+ },
334
+ d(G) {
335
+ G && (k(e), k(a), k(n)), w = !1, Pe(W);
336
+ }
337
+ };
338
+ }
339
+ function Qe(t) {
340
+ let e, a = (
341
+ /*$_*/
342
+ t[9]("playRandomGame") + ""
343
+ ), n;
344
+ return {
345
+ c() {
346
+ e = b("span"), n = L(a), u(e, "class", "RandomButtonText");
347
+ },
348
+ m(l, s) {
349
+ x(l, e, s), h(e, n);
350
+ },
351
+ p(l, s) {
352
+ s[0] & /*$_*/
353
+ 512 && a !== (a = /*$_*/
354
+ l[9]("playRandomGame") + "") && S(n, a);
355
+ },
356
+ d(l) {
357
+ l && k(e);
358
+ }
359
+ };
360
+ }
361
+ function Xe(t) {
362
+ let e, a;
363
+ return {
364
+ c() {
365
+ e = b("span"), a = L(
366
+ /*buttontext*/
367
+ t[1]
368
+ ), u(e, "class", "RandomButtonText");
369
+ },
370
+ m(n, l) {
371
+ x(n, e, l), h(e, a);
372
+ },
373
+ p(n, l) {
374
+ l[0] & /*buttontext*/
375
+ 2 && S(
376
+ a,
377
+ /*buttontext*/
378
+ n[1]
379
+ );
380
+ },
381
+ d(n) {
382
+ n && k(e);
383
+ }
384
+ };
385
+ }
386
+ function Ze(t) {
387
+ let e, a, n, l, s, c, p, f, g, o = (
388
+ /*show*/
389
+ t[5] && ee(t)
390
+ );
391
+ function _(r, w) {
392
+ if (
393
+ /*buttontext*/
394
+ r[1]
395
+ ) return Xe;
396
+ if (!/*buttontext*/
397
+ r[1]) return Qe;
398
+ }
399
+ let m = _(t), d = m && m(t);
400
+ return {
401
+ c() {
402
+ e = b("div"), o && o.c(), a = F(), n = b("div"), l = b("button"), d && d.c(), s = F(), c = b("span"), u(c, "class", "RandomButtonIcon"), u(l, "class", "RandomButton"), u(n, "class", "RandomButtonWrapper"), u(e, "part", "CustomStylingContainer");
403
+ },
404
+ m(r, w) {
405
+ x(r, e, w), o && o.m(e, null), h(e, a), h(e, n), h(n, l), d && d.m(l, null), h(l, s), h(l, c), c.innerHTML = /*randombuttonicon*/
406
+ t[0], t[27](e), p = !0, f || (g = D(
407
+ l,
408
+ "click",
409
+ /*click_handler_2*/
410
+ t[26]
411
+ ), f = !0);
412
+ },
413
+ p(r, w) {
414
+ /*show*/
415
+ r[5] ? o ? (o.p(r, w), w[0] & /*show*/
416
+ 32 && I(o, 1)) : (o = ee(r), o.c(), I(o, 1), o.m(e, a)) : o && (We(), H(o, 1, 1, () => {
417
+ o = null;
418
+ }), ke()), m === (m = _(r)) && d ? d.p(r, w) : (d && d.d(1), d = m && m(r), d && (d.c(), d.m(l, s))), (!p || w[0] & /*randombuttonicon*/
419
+ 1) && (c.innerHTML = /*randombuttonicon*/
420
+ r[0]);
421
+ },
422
+ i(r) {
423
+ p || (I(o), p = !0);
424
+ },
425
+ o(r) {
426
+ H(o), p = !1;
427
+ },
428
+ d(r) {
429
+ r && k(e), o && o.d(), d && d.d(), t[27](null), f = !1, g();
430
+ }
431
+ };
432
+ }
433
+ function $e(t, e, a) {
434
+ let n;
435
+ ve(t, De, (i) => a(9, n = i));
436
+ let { $$slots: l = {}, $$scope: s } = e, { endpoint: c = "" } = e, { datasource: p = "" } = e, { gameevent: f = "" } = e, { lang: g = "" } = e, { randombuttonicon: o = "" } = e, { buttontext: _ = "" } = e, { translationurl: m = "" } = e, { clientstyling: d = "" } = e, { clientstylingurl: r = "" } = e, { filteredrandomgamecategories: w = "" } = e, W = [], G = "", R, j = !1, J = !1, z = !1, te = window.navigator.userAgent, M, T, O, B, U = null;
437
+ Ae({ withLocale: "en", translations: {} });
438
+ const ne = () => {
439
+ fetch(m).then((y) => y.json()).then((y) => {
440
+ Object.keys(y).forEach((C) => {
441
+ Q(C, y[C]);
442
+ });
443
+ }).catch((y) => {
444
+ console.log(y);
445
+ });
446
+ };
447
+ Object.keys(X).forEach((i) => {
448
+ Q(i, X[i]);
449
+ });
450
+ const oe = () => {
451
+ let i = new URL(`${c}/v1/casino/games`);
452
+ i.searchParams.append("platform", Te(te)), i.searchParams.append("datasource", p), 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) => {
453
+ W = y.items, W.length ? (a(4, R = le(W.slice(0, 19))), a(7, z = !0)) : (a(4, R = []), a(7, z = !1));
454
+ }).catch((y) => {
455
+ console.log(y), a(7, z = !1);
456
+ });
457
+ }, le = (i) => {
458
+ const y = re(i);
459
+ return y.concat(y);
460
+ }, ie = async () => {
461
+ await Je(), B = Math.floor(Math.random() * (R.length / 2)) + R.length / 2, a(3, G = R[B]), O = T.children[B];
462
+ }, P = async () => {
463
+ a(6, J = !1), a(5, j = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), await ie();
464
+ const i = window.getComputedStyle(T).getPropertyValue("gap"), y = parseInt(i, 10) || 0, N = (O.offsetHeight + y) * B, fe = [
465
+ { transform: "translateX(0px)" },
466
+ { filter: "blur(5px)" },
467
+ {
468
+ transform: `translateY(-${N}px)`
469
+ }
470
+ ], he = {
471
+ duration: 2e3,
472
+ easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
473
+ fill: "forwards"
474
+ };
475
+ U = T.animate(fe, he), U.onfinish = () => {
476
+ a(6, J = !0);
477
+ };
478
+ }, re = (i) => {
479
+ const y = structuredClone(i);
480
+ let C = y.length, N;
481
+ for (; C != 0; )
482
+ N = Math.floor(Math.random() * C), C--, [y[C], y[N]] = [y[N], y[C]];
483
+ return y;
484
+ }, E = () => {
485
+ window.postMessage(
486
+ {
487
+ type: f,
488
+ gameId: G.gId || G.id
489
+ },
490
+ window.location.href
491
+ ), a(5, j = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
492
+ context: "RandomGameWidget",
493
+ gameId: `${G.gId || G.id}`
494
+ });
495
+ }, se = () => {
496
+ a(5, j = !1), window.postMessage({ type: "RandomWidgetState", state: j }, window.location.href);
497
+ }, me = () => {
498
+ He(g);
499
+ };
500
+ Me(() => () => {
501
+ });
502
+ function de(i) {
503
+ q[i ? "unshift" : "push"](() => {
504
+ T = i, a(8, T);
505
+ });
506
+ }
507
+ const ce = () => P(), ue = () => E(), ge = () => P();
508
+ function pe(i) {
509
+ q[i ? "unshift" : "push"](() => {
510
+ M = i, a(2, M);
511
+ });
512
+ }
513
+ return t.$$set = (i) => {
514
+ "endpoint" in i && a(13, c = i.endpoint), "datasource" in i && a(14, p = i.datasource), "gameevent" in i && a(15, f = i.gameevent), "lang" in i && a(16, g = i.lang), "randombuttonicon" in i && a(0, o = i.randombuttonicon), "buttontext" in i && a(1, _ = i.buttontext), "translationurl" in i && a(17, m = i.translationurl), "clientstyling" in i && a(18, d = i.clientstyling), "clientstylingurl" in i && a(19, r = i.clientstylingurl), "filteredrandomgamecategories" in i && a(20, w = i.filteredrandomgamecategories), "$$scope" in i && a(21, s = i.$$scope);
515
+ }, t.$$.update = () => {
516
+ t.$$.dirty[0] & /*lang*/
517
+ 65536 && g && me(), t.$$.dirty[0] & /*translationurl*/
518
+ 131072 && m && ne(), t.$$.dirty[0] & /*endpoint, datasource*/
519
+ 24576 && c && p && oe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
520
+ 262148 && d && M && je(M, d), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
521
+ 524292 && r && M && Ne(M, r), t.$$.dirty[0] & /*customStylingContainer*/
522
+ 4 && M && ze(M, "Casino.Style");
523
+ }, [
524
+ o,
525
+ _,
526
+ M,
527
+ G,
528
+ R,
529
+ j,
530
+ J,
531
+ z,
532
+ T,
533
+ n,
534
+ P,
535
+ E,
536
+ se,
537
+ c,
538
+ p,
539
+ f,
540
+ g,
541
+ m,
542
+ d,
543
+ r,
544
+ w,
545
+ s,
546
+ l,
547
+ de,
548
+ ce,
549
+ ue,
550
+ ge,
551
+ pe
552
+ ];
553
+ }
554
+ class ea extends be {
555
+ constructor(e) {
556
+ super(), _e(
557
+ this,
558
+ e,
559
+ $e,
560
+ Ze,
561
+ Re,
562
+ {
563
+ endpoint: 13,
564
+ datasource: 14,
565
+ gameevent: 15,
566
+ lang: 16,
567
+ randombuttonicon: 0,
568
+ buttontext: 1,
569
+ translationurl: 17,
570
+ clientstyling: 18,
571
+ clientstylingurl: 19,
572
+ filteredrandomgamecategories: 20
573
+ },
574
+ Oe,
575
+ [-1, -1]
576
+ );
577
+ }
578
+ get endpoint() {
579
+ return this.$$.ctx[13];
580
+ }
581
+ set endpoint(e) {
582
+ this.$$set({ endpoint: e }), v();
583
+ }
584
+ get datasource() {
585
+ return this.$$.ctx[14];
586
+ }
587
+ set datasource(e) {
588
+ this.$$set({ datasource: e }), v();
589
+ }
590
+ get gameevent() {
591
+ return this.$$.ctx[15];
592
+ }
593
+ set gameevent(e) {
594
+ this.$$set({ gameevent: e }), v();
595
+ }
596
+ get lang() {
597
+ return this.$$.ctx[16];
598
+ }
599
+ set lang(e) {
600
+ this.$$set({ lang: e }), v();
601
+ }
602
+ get randombuttonicon() {
603
+ return this.$$.ctx[0];
604
+ }
605
+ set randombuttonicon(e) {
606
+ this.$$set({ randombuttonicon: e }), v();
607
+ }
608
+ get buttontext() {
609
+ return this.$$.ctx[1];
610
+ }
611
+ set buttontext(e) {
612
+ this.$$set({ buttontext: e }), v();
613
+ }
614
+ get translationurl() {
615
+ return this.$$.ctx[17];
616
+ }
617
+ set translationurl(e) {
618
+ this.$$set({ translationurl: e }), v();
619
+ }
620
+ get clientstyling() {
621
+ return this.$$.ctx[18];
622
+ }
623
+ set clientstyling(e) {
624
+ this.$$set({ clientstyling: e }), v();
625
+ }
626
+ get clientstylingurl() {
627
+ return this.$$.ctx[19];
628
+ }
629
+ set clientstylingurl(e) {
630
+ this.$$set({ clientstylingurl: e }), v();
631
+ }
632
+ get filteredrandomgamecategories() {
633
+ return this.$$.ctx[20];
634
+ }
635
+ set filteredrandomgamecategories(e) {
636
+ this.$$set({ filteredrandomgamecategories: e }), v();
637
+ }
638
+ }
639
+ Ge(ea, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {} }, ["close"], [], !0);
640
+ export {
641
+ ea as default
642
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";var T=(n,t,a)=>new Promise((o,l)=>{var s=p=>{try{f(a.next(p))}catch(g){l(g)}},c=p=>{try{f(a.throw(p))}catch(g){l(g)}},f=p=>p.done?o(p.value):Promise.resolve(p.value).then(s,c);f((a=a.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-BQx5-rlk.cjs");function ne({withLocale:n,translations:t}){e.$locale.subscribe(a=>{a==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function B(n,t){e.addMessages(n,t)}function oe(n){e.$locale.set(n)}const z={en:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now",noGames:"There are no random games to play"},"zh-hk":{playRandomGame:"玩隨機遊戲",randomGameLoading:"選擇...",playNowRandomGame:"現在播放",noGames:"There are no random games to play"},de:{playRandomGame:"Spiel ein Zufallsspiel",randomGameLoading:"Auswahl läuft",playNowRandomGame:"Jetzt spielen",noGames:"There are no random games to play"},fr:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant",noGames:"There are no random games to play"},ro:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum",noGames:"Nu exista jocuri aleatorii de jucat"},tr:{playRandomGame:"Oynamak için doğru oyunun adını yazın.",randomGameLoading:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",playNowRandomGame:"Son arama",noGames:"Yükleniyor, lütfen bekleyin"},es:{playRandomGame:"Juego aleatorio",randomGameLoading:"Seleccionando…",playNowRandomGame:"Juega Ya",noGames:"There are no random games to play"},pt:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},hr:{playRandomGame:"Igrajte nasumičnu igru",randomGameLoading:"Odabir...",playNowRandomGame:"Igraj sada",noGames:"Nema nasumičnih igara za igranje"},"pt-br":{playRandomGame:"Jogue um jogo aleatório",randomGameCarregando:"Selecionando...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},"es-mx":{playRandomGame:"Jugar un juego al azar",randomGameCargando:"Seleccionando..",playNowRandomGame:"Jugar ahora",noGames:"There are no random games to play"},"en-us":{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now",noGames:"There are no random games to play"}};function le(n){e.append_styles(n,"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}")}function I(n,t,a){const o=n.slice();return o[40]=t[a],o}const re=n=>({}),P=n=>({});function J(n){let t,a,o,l,s,c,f;const p=n[22].close,g=e.create_slot(p,n,n[21],P),r=g||ie();function _(d,y){return d[7]?de:se}let m=_(n),u=m(n);return{c(){t=e.element("div"),a=e.element("div"),o=e.element("span"),r.c(),l=e.space(),u.c(),e.attr(o,"class","ModalCloseBtn"),e.attr(o,"role","button"),e.attr(a,"class","ModalContainer"),e.attr(t,"class","ModalWindow")},m(d,y){e.insert(d,t,y),e.append(t,a),e.append(a,o),r.m(o,null),e.append(a,l),u.m(a,null),s=!0,c||(f=e.listen(o,"click",n[12]),c=!0)},p(d,y){g&&g.p&&(!s||y[0]&2097152)&&e.update_slot_base(g,p,d,d[21],s?e.get_slot_changes(p,d[21],y,re):e.get_all_dirty_from_scope(d[21]),P),m===(m=_(d))&&u?u.p(d,y):(u.d(1),u=m(d),u&&(u.c(),u.m(a,null)))},i(d){s||(e.transition_in(r,d),s=!0)},o(d){e.transition_out(r,d),s=!1},d(d){d&&e.detach(t),r.d(d),u.d(),c=!1,f()}}}function ie(n){let t,a;return{c(){t=e.svg_element("svg"),a=e.svg_element("path"),e.attr(a,"stroke-linecap","round"),e.attr(a,"stroke-linejoin","round"),e.attr(a,"stroke-width","2"),e.attr(a,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(o,l){e.insert(o,t,l),e.append(t,a)},p:e.noop,d(o){o&&e.detach(t)}}}function se(n){let t,a=n[9]("noGames")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(l,s){e.insert(l,t,s),e.append(t,o)},p(l,s){s[0]&512&&a!==(a=l[9]("noGames")+"")&&e.set_data(o,a)},d(l){l&&e.detach(t)}}}function de(n){let t,a,o,l,s=e.ensure_array_like(n[4]),c=[];for(let r=0;r<s.length;r+=1)c[r]=D(I(n,s,r));function f(r,_){return r[6]?ce:me}let p=f(n),g=p(n);return{c(){t=e.element("div"),a=e.element("main"),o=e.element("div");for(let r=0;r<c.length;r+=1)c[r].c();l=e.space(),g.c(),e.attr(o,"class","GamesContainer"),e.attr(a,"class","RandomGamesSliderWrapper"),e.attr(t,"class","RandomGameWrapper")},m(r,_){e.insert(r,t,_),e.append(t,a),e.append(a,o);for(let m=0;m<c.length;m+=1)c[m]&&c[m].m(o,null);n[23](o),e.append(t,l),g.m(t,null)},p(r,_){if(_[0]&16){s=e.ensure_array_like(r[4]);let m;for(m=0;m<s.length;m+=1){const u=I(r,s,m);c[m]?c[m].p(u,_):(c[m]=D(u),c[m].c(),c[m].m(o,null))}for(;m<c.length;m+=1)c[m].d(1);c.length=s.length}p===(p=f(r))&&g?g.p(r,_):(g.d(1),g=p(r),g&&(g.c(),g.m(t,null)))},d(r){r&&e.detach(t),e.destroy_each(c,r),n[23](null),g.d()}}}function D(n){let t,a,o,l,s,c;return{c(){t=e.element("div"),a=e.element("img"),c=e.space(),e.attr(a,"class","RandomGameImage"),e.src_url_equal(a.src,o=n[40].thumbnail)||e.attr(a,"src",o),e.attr(a,"alt",l=n[40].name),e.attr(a,"title",s=n[40].name),e.attr(t,"class","item")},m(f,p){e.insert(f,t,p),e.append(t,a),e.append(t,c)},p(f,p){p[0]&16&&!e.src_url_equal(a.src,o=f[40].thumbnail)&&e.attr(a,"src",o),p[0]&16&&l!==(l=f[40].name)&&e.attr(a,"alt",l),p[0]&16&&s!==(s=f[40].name)&&e.attr(a,"title",s)},d(f){f&&e.detach(t)}}}function me(n){let t,a=n[9]("randomGameLoading")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(l,s){e.insert(l,t,s),e.append(t,o)},p(l,s){s[0]&512&&a!==(a=l[9]("randomGameLoading")+"")&&e.set_data(o,a)},d(l){l&&e.detach(t)}}}function ce(n){let t,a,o,l,s=n[3].name+"",c,f,p,g=n[3].vendor.name+"",r,_,m,u=n[9]("playNowRandomGame")+"",d,y,R;return{c(){t=e.element("button"),t.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));}
2
+ </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=e.space(),o=e.element("div"),l=e.element("p"),c=e.text(s),f=e.space(),p=e.element("p"),r=e.text(g),_=e.space(),m=e.element("button"),d=e.text(u),e.attr(t,"class","RandomTryAgain"),e.attr(l,"class","RandomGameTitle"),e.attr(p,"class","RandomGameVendor"),e.attr(m,"class","RandomGamePlay"),e.attr(o,"class","RandomGameDetails")},m(b,w){e.insert(b,t,w),e.insert(b,a,w),e.insert(b,o,w),e.append(o,l),e.append(l,c),e.append(o,f),e.append(o,p),e.append(p,r),e.append(o,_),e.append(o,m),e.append(m,d),y||(R=[e.listen(t,"click",n[24]),e.listen(m,"click",n[25])],y=!0)},p(b,w){w[0]&8&&s!==(s=b[3].name+"")&&e.set_data(c,s),w[0]&8&&g!==(g=b[3].vendor.name+"")&&e.set_data(r,g),w[0]&512&&u!==(u=b[9]("playNowRandomGame")+"")&&e.set_data(d,u)},d(b){b&&(e.detach(t),e.detach(a),e.detach(o)),y=!1,e.run_all(R)}}}function ue(n){let t,a=n[9]("playRandomGame")+"",o;return{c(){t=e.element("span"),o=e.text(a),e.attr(t,"class","RandomButtonText")},m(l,s){e.insert(l,t,s),e.append(t,o)},p(l,s){s[0]&512&&a!==(a=l[9]("playRandomGame")+"")&&e.set_data(o,a)},d(l){l&&e.detach(t)}}}function pe(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","RandomButtonText")},m(o,l){e.insert(o,t,l),e.append(t,a)},p(o,l){l[0]&2&&e.set_data(a,o[1])},d(o){o&&e.detach(t)}}}function ge(n){let t,a,o,l,s,c,f,p,g,r=n[5]&&J(n);function _(d,y){if(d[1])return pe;if(!d[1])return ue}let m=_(n),u=m&&m(n);return{c(){t=e.element("div"),r&&r.c(),a=e.space(),o=e.element("div"),l=e.element("button"),u&&u.c(),s=e.space(),c=e.element("span"),e.attr(c,"class","RandomButtonIcon"),e.attr(l,"class","RandomButton"),e.attr(o,"class","RandomButtonWrapper"),e.attr(t,"part","CustomStylingContainer")},m(d,y){e.insert(d,t,y),r&&r.m(t,null),e.append(t,a),e.append(t,o),e.append(o,l),u&&u.m(l,null),e.append(l,s),e.append(l,c),c.innerHTML=n[0],n[27](t),f=!0,p||(g=e.listen(l,"click",n[26]),p=!0)},p(d,y){d[5]?r?(r.p(d,y),y[0]&32&&e.transition_in(r,1)):(r=J(d),r.c(),e.transition_in(r,1),r.m(t,a)):r&&(e.group_outros(),e.transition_out(r,1,1,()=>{r=null}),e.check_outros()),m===(m=_(d))&&u?u.p(d,y):(u&&u.d(1),u=m&&m(d),u&&(u.c(),u.m(l,s))),(!f||y[0]&1)&&(c.innerHTML=d[0])},i(d){f||(e.transition_in(r),f=!0)},o(d){e.transition_out(r),f=!1},d(d){d&&e.detach(t),r&&r.d(),u&&u.d(),n[27](null),p=!1,g()}}}function fe(n,t,a){let o;e.component_subscribe(n,e.$format,i=>a(9,o=i));let{$$slots:l={},$$scope:s}=t,{endpoint:c=""}=t,{datasource:f=""}=t,{gameevent:p=""}=t,{lang:g=""}=t,{randombuttonicon:r=""}=t,{buttontext:_=""}=t,{translationurl:m=""}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,{filteredrandomgamecategories:y=""}=t,R=[],b="",w,v=!1,L=!1,C=!1,H=window.navigator.userAgent,G,k,W,F,j=null;ne({withLocale:"en",translations:{}});const O=()=>{fetch(m).then(h=>h.json()).then(h=>{Object.keys(h).forEach(x=>{B(x,h[x])})}).catch(h=>{console.log(h)})};Object.keys(z).forEach(i=>{B(i,z[i])});const q=()=>{let i=new URL(`${c}/v1/casino/games`);i.searchParams.append("platform",e.getDevice(H)),i.searchParams.append("datasource",f),i.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,categories"),y&&i.searchParams.append("filter",`groups=${y}`),i.searchParams.append("expand","categories,vendor"),i.searchParams.append("pagination","offset=0,limit=1000"),fetch(i.href).then(h=>h.json()).then(h=>{R=h.items,R.length?(a(4,w=U(R.slice(0,19))),a(7,C=!0)):(a(4,w=[]),a(7,C=!1))}).catch(h=>{console.log(h),a(7,C=!1)})},U=i=>{const h=V(i);return h.concat(h)},E=()=>T(this,null,function*(){yield e.tick(),F=Math.floor(Math.random()*(w.length/2))+w.length/2,a(3,b=w[F]),W=k.children[F]}),S=()=>T(this,null,function*(){a(6,L=!1),a(5,v=!0),window.postMessage({type:"RandomWidgetState",state:!0},window.location.href),yield E();const i=window.getComputedStyle(k).getPropertyValue("gap"),h=parseInt(i,10)||0,M=(W.offsetHeight+h)*F,te=[{transform:"translateX(0px)"},{filter:"blur(5px)"},{transform:`translateY(-${M}px)`}],ae={duration:2e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};j=k.animate(te,ae),j.onfinish=()=>{a(6,L=!0)}}),V=i=>{const h=structuredClone(i);let x=h.length,M;for(;x!=0;)M=Math.floor(Math.random()*x),x--,[h[x],h[M]]=[h[M],h[x]];return h},N=()=>{window.postMessage({type:p,gameId:b.gId||b.id},window.location.href),a(5,v=!1),window.postMessage({type:"RandomWidgetState",state:!1},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"RandomGameWidget",gameId:`${b.gId||b.id}`})},Y=()=>{a(5,v=!1),window.postMessage({type:"RandomWidgetState",state:v},window.location.href)},X=()=>{oe(g)};e.onMount(()=>()=>{});function Z(i){e.binding_callbacks[i?"unshift":"push"](()=>{k=i,a(8,k)})}const K=()=>S(),Q=()=>N(),$=()=>S();function ee(i){e.binding_callbacks[i?"unshift":"push"](()=>{G=i,a(2,G)})}return n.$$set=i=>{"endpoint"in i&&a(13,c=i.endpoint),"datasource"in i&&a(14,f=i.datasource),"gameevent"in i&&a(15,p=i.gameevent),"lang"in i&&a(16,g=i.lang),"randombuttonicon"in i&&a(0,r=i.randombuttonicon),"buttontext"in i&&a(1,_=i.buttontext),"translationurl"in i&&a(17,m=i.translationurl),"clientstyling"in i&&a(18,u=i.clientstyling),"clientstylingurl"in i&&a(19,d=i.clientstylingurl),"filteredrandomgamecategories"in i&&a(20,y=i.filteredrandomgamecategories),"$$scope"in i&&a(21,s=i.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&65536&&g&&X(),n.$$.dirty[0]&131072&&m&&O(),n.$$.dirty[0]&24576&&c&&f&&q(),n.$$.dirty[0]&262148&&u&&G&&e.setClientStyling(G,u),n.$$.dirty[0]&524292&&d&&G&&e.setClientStylingURL(G),n.$$.dirty[0]&4&&G&&e.setClientStylingFromMB(G,"Casino.Style")},[r,_,G,b,w,v,L,C,k,o,S,N,Y,c,f,p,g,m,u,d,y,s,l,Z,K,Q,$,ee]}class A extends e.SvelteComponent{constructor(t){super(),e.init(this,t,fe,ge,e.safe_not_equal,{endpoint:13,datasource:14,gameevent:15,lang:16,randombuttonicon:0,buttontext:1,translationurl:17,clientstyling:18,clientstylingurl:19,filteredrandomgamecategories:20},le,[-1,-1])}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[14]}set datasource(t){this.$$set({datasource:t}),e.flush()}get gameevent(){return this.$$.ctx[15]}set gameevent(t){this.$$set({gameevent:t}),e.flush()}get lang(){return this.$$.ctx[16]}set lang(t){this.$$set({lang:t}),e.flush()}get randombuttonicon(){return this.$$.ctx[0]}set randombuttonicon(t){this.$$set({randombuttonicon:t}),e.flush()}get buttontext(){return this.$$.ctx[1]}set buttontext(t){this.$$set({buttontext:t}),e.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get filteredrandomgamecategories(){return this.$$.ctx[20]}set filteredrandomgamecategories(t){this.$$set({filteredrandomgamecategories:t}),e.flush()}}e.create_custom_element(A,{endpoint:{},datasource:{},gameevent:{},lang:{},randombuttonicon:{},buttontext:{},translationurl:{},clientstyling:{},clientstylingurl:{},filteredrandomgamecategories:{}},["close"],[],!0);exports.default=A;