@everymatrix/casino-lobby 1.45.0 → 1.45.2

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 (84) hide show
  1. package/components/{CasinoCalendar-DEhfBjpm.js → CasinoCalendar-3HRZGpnG.js} +57 -61
  2. package/components/{CasinoCalendar-egUFg4eK.cjs → CasinoCalendar-9cVNHt1-.cjs} +5 -5
  3. package/components/CasinoCalendarDailyDetails-Dcf0TKzH.cjs +1 -0
  4. package/components/CasinoCalendarDailyDetails-MwTyCObT.js +605 -0
  5. package/components/CasinoCalendarDailyItem-B-h-76yh.js +220 -0
  6. package/components/CasinoCalendarDailyItem-Cahte_IM.cjs +1 -0
  7. package/components/{CasinoCategoriesSlider-BfuTLKom.cjs → CasinoCategoriesSlider-AAgG2_xb.cjs} +1 -1
  8. package/components/{CasinoCategoriesSlider-BQvWcqNm.js → CasinoCategoriesSlider-B3Aneyii.js} +2 -2
  9. package/components/CasinoCollectionsProviders-BvEenHqO.cjs +1 -0
  10. package/components/CasinoCollectionsProviders-D-DgSMvu.js +659 -0
  11. package/components/CasinoFavoritesSection-CxQ69OwL.cjs +1 -0
  12. package/components/{CasinoFavoritesSection-BBWM7_dI.js → CasinoFavoritesSection-DE0M_xZ_.js} +8 -8
  13. package/components/CasinoFilter-BWEtfBml.js +628 -0
  14. package/components/CasinoFilter-Bdc0mE0X.cjs +1 -0
  15. package/components/{CasinoGamePage-BHxY5XUD.cjs → CasinoGamePage-C4x_GUg3.cjs} +5 -5
  16. package/components/CasinoGamePage-r1xLmvzf.js +4282 -0
  17. package/components/CasinoGameThumbnail-BG_6FsqW.cjs +38 -0
  18. package/components/CasinoGameThumbnail-wQFR0AuM.js +1822 -0
  19. package/components/CasinoGamesCategorySection-BGgw1sdg.cjs +1 -0
  20. package/components/CasinoGamesCategorySection-Cbto2aD4.js +3018 -0
  21. package/components/CasinoJackpotBanner-BftFjZpI.cjs +1 -0
  22. package/components/CasinoJackpotBanner-D1RCyJGt.js +615 -0
  23. package/components/{CasinoLastPlayedSection-Dkh43VxC.js → CasinoLastPlayedSection-CAirOYgJ.js} +31 -31
  24. package/components/CasinoLastPlayedSection-Dm6f8H02.cjs +1 -0
  25. package/components/{CasinoLobby-Djp4HDWL.js → CasinoLobby-Cq0Hm2md.js} +88 -92
  26. package/components/CasinoLobby-CvaYUpUV.cjs +1 -0
  27. package/components/CasinoModal-CZbdtmLm.js +372 -0
  28. package/components/CasinoModal-DqBbtAjA.cjs +1 -0
  29. package/components/CasinoMostPlayedSection-DTXKjmPl.cjs +1 -0
  30. package/components/{CasinoMostPlayedSection-BDP2HyE6.js → CasinoMostPlayedSection-k3_ln2SB.js} +58 -58
  31. package/components/CasinoMyGames-CVTzyBkk.cjs +1 -0
  32. package/components/{CasinoMyGames-CILl0Jt1.js → CasinoMyGames-DcJpzIEq.js} +385 -385
  33. package/components/{CasinoPage-CCcJd2fQ.js → CasinoPage-BbRpHGEc.js} +1171 -1171
  34. package/components/CasinoPage-srXwB6ik.cjs +1 -0
  35. package/components/CasinoRandomGame-BSD5DYtt.js +641 -0
  36. package/components/CasinoRandomGame-CNdoKY0C.cjs +2 -0
  37. package/components/CasinoSearch-BsgUvsbs.js +1062 -0
  38. package/components/CasinoSearch-CMn_5Aa4.cjs +1 -0
  39. package/components/CasinoSlider-D5B-CjPM.js +803 -0
  40. package/components/CasinoSlider-kzZxK81G.cjs +1 -0
  41. package/components/CasinoSort-9pQqbHyF.cjs +1 -0
  42. package/components/CasinoSort-T6UQhFka.js +425 -0
  43. package/components/CasinoWinners-CD5HS4Gb.cjs +1 -0
  44. package/components/CasinoWinners-auSd-4D9.js +884 -0
  45. package/components/GeneralAnimationLoading-CIYgtCsE.cjs +1 -0
  46. package/components/GeneralAnimationLoading-DRiG33XR.js +75 -0
  47. package/es2015/casino-lobby.cjs +1 -1
  48. package/es2015/casino-lobby.js +1 -1
  49. package/package.json +2 -2
  50. package/components/CasinoCalendarDailyDetails-CfTziMCu.js +0 -605
  51. package/components/CasinoCalendarDailyDetails-KP4_YYmO.cjs +0 -1
  52. package/components/CasinoCalendarDailyItem-4bXAKAZj.cjs +0 -1
  53. package/components/CasinoCalendarDailyItem-CQ8syIIe.js +0 -220
  54. package/components/CasinoCollectionsProviders-C9_6w0OJ.cjs +0 -1
  55. package/components/CasinoCollectionsProviders-CwJY8Pmw.js +0 -659
  56. package/components/CasinoFavoritesSection-Da0-zSyn.cjs +0 -1
  57. package/components/CasinoFilter-BkpU5f2V.cjs +0 -1
  58. package/components/CasinoFilter-D3p7c7qu.js +0 -628
  59. package/components/CasinoGamePage-Bp4OKmdA.js +0 -4282
  60. package/components/CasinoGameThumbnail-BmmqFK_6.js +0 -1822
  61. package/components/CasinoGameThumbnail-DVMHCqZf.cjs +0 -38
  62. package/components/CasinoGamesCategorySection-6X3_pD0A.js +0 -3022
  63. package/components/CasinoGamesCategorySection-CasxxP7n.cjs +0 -1
  64. package/components/CasinoJackpotBanner-8_TAP4xY.cjs +0 -1
  65. package/components/CasinoJackpotBanner-wk2wOmJp.js +0 -619
  66. package/components/CasinoLastPlayedSection-DvORiff-.cjs +0 -1
  67. package/components/CasinoLobby-Jn45jhzr.cjs +0 -1
  68. package/components/CasinoModal-BebrYWjS.cjs +0 -1
  69. package/components/CasinoModal-CSwMAX-g.js +0 -372
  70. package/components/CasinoMostPlayedSection-CF5vlzLT.cjs +0 -1
  71. package/components/CasinoMyGames-shcqTml8.cjs +0 -1
  72. package/components/CasinoPage-DZmE3VFL.cjs +0 -1
  73. package/components/CasinoRandomGame-4mi3rRbq.js +0 -641
  74. package/components/CasinoRandomGame-G4VfFJ2L.cjs +0 -2
  75. package/components/CasinoSearch-CW-eesDy.cjs +0 -1
  76. package/components/CasinoSearch-DkEAmw-j.js +0 -1066
  77. package/components/CasinoSlider-CNWDP_I-.js +0 -803
  78. package/components/CasinoSlider-CjA8vWoz.cjs +0 -1
  79. package/components/CasinoSort-BVh0Ouwu.cjs +0 -1
  80. package/components/CasinoSort-CPcJqhWU.js +0 -425
  81. package/components/CasinoWinners-BTNdGlUD.cjs +0 -1
  82. package/components/CasinoWinners-DSsJp1KQ.js +0 -884
  83. package/components/GeneralAnimationLoading-BtIh_bSy.js +0 -75
  84. package/components/GeneralAnimationLoading-CEAKVCu9.cjs +0 -1
@@ -0,0 +1,372 @@
1
+ import { Z as ie, S as ne, i as se, f as g, c as oe, s as le, b as ae, F as re, d as v, h as L, t as B, g as de, j as R, o as ue, n as j, e as W, q as ce, u as r, P, v as F, Q as fe, w as ge, x as q, y as O, z as T, _ as U, k as me, l as I, W as he, m as x, E as A, C as we } from "./CasinoCalendar-3HRZGpnG.js";
2
+ function N(n, { delay: e = 0, duration: i = 400, easing: s = ie } = {}) {
3
+ const o = +getComputedStyle(n).opacity;
4
+ return {
5
+ delay: e,
6
+ duration: i,
7
+ easing: s,
8
+ css: (a) => `opacity: ${a * o}`
9
+ };
10
+ }
11
+ function _e(n) {
12
+ ae(n, "svelte-y0tdzk", "*,*::before,*::after{margin:0;padding:0;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 .ModalPanicCloseButton{margin-top:45px}.ModalWindow .ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:10px;border-radius:50%;color:var(--emfe-w-color-white, #FFFFFF);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.ModalWindow .ModalCloseBtn svg{width:32px;height:32px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}");
13
+ }
14
+ const pe = (n) => ({}), Q = (n) => ({});
15
+ function V(n) {
16
+ let e, i, s, o, a, w, k, c, u, p, y;
17
+ const C = (
18
+ /*#slots*/
19
+ n[19].default
20
+ ), d = j(
21
+ C,
22
+ n,
23
+ /*$$scope*/
24
+ n[18],
25
+ null
26
+ ), M = (
27
+ /*#slots*/
28
+ n[19].close
29
+ ), m = j(
30
+ M,
31
+ n,
32
+ /*$$scope*/
33
+ n[18],
34
+ Q
35
+ ), f = m || ye();
36
+ return {
37
+ c() {
38
+ e = W("div"), i = W("div"), s = W("div"), d && d.c(), o = ce(), a = W("span"), f && f.c(), r(s, "class", "ModalContainer"), r(s, "part", "ModalContainer"), r(a, "class", w = "ModalCloseBtn " + /*haspanicbutton*/
39
+ (n[1] == "true" && /*mobileView*/
40
+ n[3] ? "ModalPanicCloseButton" : "")), r(a, "role", "button"), r(i, "class", "ModalWindow"), r(i, "part", "ModalWindow"), r(i, "id", "Modal"), P(() => (
41
+ /*div1_elementresize_handler*/
42
+ n[21].call(i)
43
+ )), r(e, "part", "CustomStylingContainer");
44
+ },
45
+ m(l, h) {
46
+ v(l, e, h), F(e, i), F(i, s), d && d.m(s, null), F(i, o), F(i, a), f && f.m(a, null), n[20](i), k = fe(
47
+ i,
48
+ /*div1_elementresize_handler*/
49
+ n[21].bind(i)
50
+ ), n[22](e), u = !0, p || (y = ge(
51
+ a,
52
+ "click",
53
+ /*close*/
54
+ n[8]
55
+ ), p = !0);
56
+ },
57
+ p(l, h) {
58
+ n = l, d && d.p && (!u || h[0] & /*$$scope*/
59
+ 262144) && q(
60
+ d,
61
+ C,
62
+ n,
63
+ /*$$scope*/
64
+ n[18],
65
+ u ? T(
66
+ C,
67
+ /*$$scope*/
68
+ n[18],
69
+ h,
70
+ null
71
+ ) : O(
72
+ /*$$scope*/
73
+ n[18]
74
+ ),
75
+ null
76
+ ), m && m.p && (!u || h[0] & /*$$scope*/
77
+ 262144) && q(
78
+ m,
79
+ M,
80
+ n,
81
+ /*$$scope*/
82
+ n[18],
83
+ u ? T(
84
+ M,
85
+ /*$$scope*/
86
+ n[18],
87
+ h,
88
+ pe
89
+ ) : O(
90
+ /*$$scope*/
91
+ n[18]
92
+ ),
93
+ Q
94
+ ), (!u || h[0] & /*haspanicbutton, mobileView*/
95
+ 10 && w !== (w = "ModalCloseBtn " + /*haspanicbutton*/
96
+ (n[1] == "true" && /*mobileView*/
97
+ n[3] ? "ModalPanicCloseButton" : ""))) && r(a, "class", w);
98
+ },
99
+ i(l) {
100
+ u || (L(d, l), L(f, l), l && P(() => {
101
+ u && (c || (c = U(i, N, { transitionDuration: (
102
+ /*duration*/
103
+ n[0]
104
+ ) }, !0)), c.run(1));
105
+ }), u = !0);
106
+ },
107
+ o(l) {
108
+ B(d, l), B(f, l), l && (c || (c = U(i, N, { transitionDuration: (
109
+ /*duration*/
110
+ n[0]
111
+ ) }, !1)), c.run(0)), u = !1;
112
+ },
113
+ d(l) {
114
+ l && R(e), d && d.d(l), f && f.d(l), n[20](null), k(), l && c && c.end(), n[22](null), p = !1, y();
115
+ }
116
+ };
117
+ }
118
+ function ye(n) {
119
+ let e, i;
120
+ return {
121
+ c() {
122
+ e = A("svg"), i = A("path"), r(i, "stroke-linecap", "round"), r(i, "stroke-linejoin", "round"), r(i, "stroke-width", "2"), r(i, "d", "M6 18L18 6M6 6l12 12"), r(e, "class", "w-6 h-6"), r(e, "fill", "none"), r(e, "stroke", "currentColor"), r(e, "viewBox", "0 0 24 24"), r(e, "xmlns", "http://www.w3.org/2000/svg");
123
+ },
124
+ m(s, o) {
125
+ v(s, e, o), F(e, i);
126
+ },
127
+ p: we,
128
+ d(s) {
129
+ s && R(e);
130
+ }
131
+ };
132
+ }
133
+ function Me(n) {
134
+ let e, i, s = (
135
+ /*show*/
136
+ n[7] && V(n)
137
+ );
138
+ return {
139
+ c() {
140
+ s && s.c(), e = re();
141
+ },
142
+ m(o, a) {
143
+ s && s.m(o, a), v(o, e, a), i = !0;
144
+ },
145
+ p(o, a) {
146
+ /*show*/
147
+ o[7] ? s ? (s.p(o, a), a[0] & /*show*/
148
+ 128 && L(s, 1)) : (s = V(o), s.c(), L(s, 1), s.m(e.parentNode, e)) : s && (me(), B(s, 1, 1, () => {
149
+ s = null;
150
+ }), de());
151
+ },
152
+ i(o) {
153
+ i || (L(s), i = !0);
154
+ },
155
+ o(o) {
156
+ B(s), i = !1;
157
+ },
158
+ d(o) {
159
+ o && R(e), s && s.d(o);
160
+ }
161
+ };
162
+ }
163
+ function be(n, e, i) {
164
+ let { $$slots: s = {}, $$scope: o } = e, { duration: a = 350 } = e, { session: w = "" } = e, { userid: k = "" } = e, { clientstyling: c = "" } = e, { identifier: u = "" } = e, { clientstylingurl: p = "" } = e, { endpoint: y = "" } = e, { haspanicbutton: C = "false" } = e, { gamepagemodalurl: d = "false" } = e, { sessioncheck: M = "true" } = e, { integratedgameframedesktop: m = "false" } = e, f = window.navigator.userAgent, l = !1, h = !1, _, b, D, E, S = !1;
165
+ const Z = () => {
166
+ i(7, S = !1), i(3, l = I(f)), window.postMessage(
167
+ {
168
+ type: "ModalClosed",
169
+ gamepagemodalurl: d,
170
+ mobileView: l,
171
+ closeIntegratedGameFrameDesktop: !0
172
+ },
173
+ window.location.href
174
+ );
175
+ }, G = (t) => {
176
+ if (t.data.type == "ShowModal" && u == t.data.identifier && (i(7, S = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), t.data.type == "ModalClosed" && (m === "true" || I(f)) && i(7, S = !1), t.data.type === "ShowGameModal" && (i(7, S = !0), window.postMessage(
177
+ {
178
+ type: "GameLaunchID",
179
+ gameId: t.data.gameId
180
+ },
181
+ window.location.href
182
+ ), m === "false" && window.postMessage({ type: "DisableScroll" }, window.location.href)), t.data.type === "OpenGameFrameModal" && (i(7, S = !0), window.postMessage(
183
+ {
184
+ type: "LaunchGameFrame",
185
+ gameId: t.data.gameId,
186
+ gameFunMode: t.data.gamefunmode
187
+ },
188
+ window.location.href
189
+ ), m === "false" && window.postMessage({ type: "DisableScroll" }, window.location.href)), t.data.type === "RequestModalSize") {
190
+ let z = {
191
+ modalWidth: _ ? getComputedStyle(_).width : null,
192
+ modalHeight: _ ? getComputedStyle(_).height : null
193
+ };
194
+ window.postMessage({ type: "ModalSize", modalContainerSize: z }, window.location.href);
195
+ }
196
+ t.data.type === "GameStateOnResize" && (h = t.data.detailsObtained);
197
+ }, J = (t) => {
198
+ if (h) {
199
+ let z = {
200
+ modalWidth: getComputedStyle(_).width,
201
+ modalHeight: getComputedStyle(_).height
202
+ };
203
+ window.postMessage({ type: "ModalSize", modalContainerSize: z }, window.location.href);
204
+ }
205
+ }, K = () => {
206
+ M == "true" && he(y, w).then(
207
+ (t) => {
208
+ t.Guid, t.UserID;
209
+ },
210
+ (t) => {
211
+ console.error("err on session", t);
212
+ }
213
+ );
214
+ }, X = () => {
215
+ let t = document.createElement("style");
216
+ t.innerHTML = c, b.appendChild(t);
217
+ }, Y = () => {
218
+ let t = new URL(p), z = document.createElement("style");
219
+ fetch(t.href).then((H) => H.text()).then((H) => {
220
+ z.innerHTML = H, setTimeout(
221
+ () => {
222
+ b.appendChild(z);
223
+ },
224
+ 1
225
+ );
226
+ });
227
+ };
228
+ ue(() => (i(3, l = I(f)), window.addEventListener("message", G, !1), window.addEventListener("resize", J, !1), () => {
229
+ window.removeEventListener("message", G), window.removeEventListener("resize", G);
230
+ }));
231
+ function $(t) {
232
+ x[t ? "unshift" : "push"](() => {
233
+ _ = t, i(4, _);
234
+ });
235
+ }
236
+ function ee() {
237
+ D = this.clientWidth, E = this.clientHeight, i(5, D), i(6, E);
238
+ }
239
+ function te(t) {
240
+ x[t ? "unshift" : "push"](() => {
241
+ b = t, i(2, b);
242
+ });
243
+ }
244
+ return n.$$set = (t) => {
245
+ "duration" in t && i(0, a = t.duration), "session" in t && i(9, w = t.session), "userid" in t && i(10, k = t.userid), "clientstyling" in t && i(11, c = t.clientstyling), "identifier" in t && i(12, u = t.identifier), "clientstylingurl" in t && i(13, p = t.clientstylingurl), "endpoint" in t && i(14, y = t.endpoint), "haspanicbutton" in t && i(1, C = t.haspanicbutton), "gamepagemodalurl" in t && i(15, d = t.gamepagemodalurl), "sessioncheck" in t && i(16, M = t.sessioncheck), "integratedgameframedesktop" in t && i(17, m = t.integratedgameframedesktop), "$$scope" in t && i(18, o = t.$$scope);
246
+ }, n.$$.update = () => {
247
+ n.$$.dirty[0] & /*session, userid, endpoint*/
248
+ 17920 && w && k && y && K(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
249
+ 2052 && c && b && X(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
250
+ 8196 && p && b && Y();
251
+ }, [
252
+ a,
253
+ C,
254
+ b,
255
+ l,
256
+ _,
257
+ D,
258
+ E,
259
+ S,
260
+ Z,
261
+ w,
262
+ k,
263
+ c,
264
+ u,
265
+ p,
266
+ y,
267
+ d,
268
+ M,
269
+ m,
270
+ o,
271
+ s,
272
+ $,
273
+ ee,
274
+ te
275
+ ];
276
+ }
277
+ class ke extends ne {
278
+ constructor(e) {
279
+ super(), se(
280
+ this,
281
+ e,
282
+ be,
283
+ Me,
284
+ le,
285
+ {
286
+ duration: 0,
287
+ session: 9,
288
+ userid: 10,
289
+ clientstyling: 11,
290
+ identifier: 12,
291
+ clientstylingurl: 13,
292
+ endpoint: 14,
293
+ haspanicbutton: 1,
294
+ gamepagemodalurl: 15,
295
+ sessioncheck: 16,
296
+ integratedgameframedesktop: 17
297
+ },
298
+ _e,
299
+ [-1, -1]
300
+ );
301
+ }
302
+ get duration() {
303
+ return this.$$.ctx[0];
304
+ }
305
+ set duration(e) {
306
+ this.$$set({ duration: e }), g();
307
+ }
308
+ get session() {
309
+ return this.$$.ctx[9];
310
+ }
311
+ set session(e) {
312
+ this.$$set({ session: e }), g();
313
+ }
314
+ get userid() {
315
+ return this.$$.ctx[10];
316
+ }
317
+ set userid(e) {
318
+ this.$$set({ userid: e }), g();
319
+ }
320
+ get clientstyling() {
321
+ return this.$$.ctx[11];
322
+ }
323
+ set clientstyling(e) {
324
+ this.$$set({ clientstyling: e }), g();
325
+ }
326
+ get identifier() {
327
+ return this.$$.ctx[12];
328
+ }
329
+ set identifier(e) {
330
+ this.$$set({ identifier: e }), g();
331
+ }
332
+ get clientstylingurl() {
333
+ return this.$$.ctx[13];
334
+ }
335
+ set clientstylingurl(e) {
336
+ this.$$set({ clientstylingurl: e }), g();
337
+ }
338
+ get endpoint() {
339
+ return this.$$.ctx[14];
340
+ }
341
+ set endpoint(e) {
342
+ this.$$set({ endpoint: e }), g();
343
+ }
344
+ get haspanicbutton() {
345
+ return this.$$.ctx[1];
346
+ }
347
+ set haspanicbutton(e) {
348
+ this.$$set({ haspanicbutton: e }), g();
349
+ }
350
+ get gamepagemodalurl() {
351
+ return this.$$.ctx[15];
352
+ }
353
+ set gamepagemodalurl(e) {
354
+ this.$$set({ gamepagemodalurl: e }), g();
355
+ }
356
+ get sessioncheck() {
357
+ return this.$$.ctx[16];
358
+ }
359
+ set sessioncheck(e) {
360
+ this.$$set({ sessioncheck: e }), g();
361
+ }
362
+ get integratedgameframedesktop() {
363
+ return this.$$.ctx[17];
364
+ }
365
+ set integratedgameframedesktop(e) {
366
+ this.$$set({ integratedgameframedesktop: e }), g();
367
+ }
368
+ }
369
+ oe(ke, { duration: {}, session: {}, userid: {}, clientstyling: {}, identifier: {}, clientstylingurl: {}, endpoint: {}, haspanicbutton: {}, gamepagemodalurl: {}, sessioncheck: {}, integratedgameframedesktop: {} }, ["default", "close"], [], !0);
370
+ export {
371
+ ke as default
372
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-9cVNHt1-.cjs");function B(s,{delay:t=0,duration:n=400,easing:o=e.identity}={}){const l=+getComputedStyle(s).opacity;return{delay:t,duration:n,easing:o,css:r=>`opacity: ${r*l}`}}function q(s){e.append_styles(s,"svelte-y0tdzk","*,*::before,*::after{margin:0;padding:0;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 .ModalPanicCloseButton{margin-top:45px}.ModalWindow .ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:10px;border-radius:50%;color:var(--emfe-w-color-white, #FFFFFF);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.ModalWindow .ModalCloseBtn svg{width:32px;height:32px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}")}const U=s=>({}),D=s=>({});function v(s){let t,n,o,l,r,m,M,c,u,w,p;const k=s[19].default,d=e.create_slot(k,s,s[18],null),y=s[19].close,g=e.create_slot(y,s,s[18],D),f=g||A();return{c(){t=e.element("div"),n=e.element("div"),o=e.element("div"),d&&d.c(),l=e.space(),r=e.element("span"),f&&f.c(),e.attr(o,"class","ModalContainer"),e.attr(o,"part","ModalContainer"),e.attr(r,"class",m="ModalCloseBtn "+(s[1]=="true"&&s[3]?"ModalPanicCloseButton":"")),e.attr(r,"role","button"),e.attr(n,"class","ModalWindow"),e.attr(n,"part","ModalWindow"),e.attr(n,"id","Modal"),e.add_render_callback(()=>s[21].call(n)),e.attr(t,"part","CustomStylingContainer")},m(a,h){e.insert(a,t,h),e.append(t,n),e.append(n,o),d&&d.m(o,null),e.append(n,l),e.append(n,r),f&&f.m(r,null),s[20](n),M=e.add_iframe_resize_listener(n,s[21].bind(n)),s[22](t),u=!0,w||(p=e.listen(r,"click",s[8]),w=!0)},p(a,h){s=a,d&&d.p&&(!u||h[0]&262144)&&e.update_slot_base(d,k,s,s[18],u?e.get_slot_changes(k,s[18],h,null):e.get_all_dirty_from_scope(s[18]),null),g&&g.p&&(!u||h[0]&262144)&&e.update_slot_base(g,y,s,s[18],u?e.get_slot_changes(y,s[18],h,U):e.get_all_dirty_from_scope(s[18]),D),(!u||h[0]&10&&m!==(m="ModalCloseBtn "+(s[1]=="true"&&s[3]?"ModalPanicCloseButton":"")))&&e.attr(r,"class",m)},i(a){u||(e.transition_in(d,a),e.transition_in(f,a),a&&e.add_render_callback(()=>{u&&(c||(c=e.create_bidirectional_transition(n,B,{transitionDuration:s[0]},!0)),c.run(1))}),u=!0)},o(a){e.transition_out(d,a),e.transition_out(f,a),a&&(c||(c=e.create_bidirectional_transition(n,B,{transitionDuration:s[0]},!1)),c.run(0)),u=!1},d(a){a&&e.detach(t),d&&d.d(a),f&&f.d(a),s[20](null),M(),a&&c&&c.end(),s[22](null),w=!1,p()}}}function A(s){let t,n;return{c(){t=e.svg_element("svg"),n=e.svg_element("path"),e.attr(n,"stroke-linecap","round"),e.attr(n,"stroke-linejoin","round"),e.attr(n,"stroke-width","2"),e.attr(n,"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,n)},p:e.noop,d(o){o&&e.detach(t)}}}function N(s){let t,n,o=s[7]&&v(s);return{c(){o&&o.c(),t=e.empty()},m(l,r){o&&o.m(l,r),e.insert(l,t,r),n=!0},p(l,r){l[7]?o?(o.p(l,r),r[0]&128&&e.transition_in(o,1)):(o=v(l),o.c(),e.transition_in(o,1),o.m(t.parentNode,t)):o&&(e.group_outros(),e.transition_out(o,1,1,()=>{o=null}),e.check_outros())},i(l){n||(e.transition_in(o),n=!0)},o(l){e.transition_out(o),n=!1},d(l){l&&e.detach(t),o&&o.d(l)}}}function V(s,t,n){let{$$slots:o={},$$scope:l}=t,{duration:r=350}=t,{session:m=""}=t,{userid:M=""}=t,{clientstyling:c=""}=t,{identifier:u=""}=t,{clientstylingurl:w=""}=t,{endpoint:p=""}=t,{haspanicbutton:k="false"}=t,{gamepagemodalurl:d="false"}=t,{sessioncheck:y="true"}=t,{integratedgameframedesktop:g="false"}=t,f=window.navigator.userAgent,a=!1,h=!1,_,b,z,F,C=!1;const G=()=>{n(7,C=!1),n(3,a=e.isMobile(f)),window.postMessage({type:"ModalClosed",gamepagemodalurl:d,mobileView:a,closeIntegratedGameFrameDesktop:!0},window.location.href)},L=i=>{if(i.data.type=="ShowModal"&&u==i.data.identifier&&(n(7,C=!0),window.postMessage({type:"DisableScroll"},window.location.href)),i.data.type=="ModalClosed"&&(g==="true"||e.isMobile(f))&&n(7,C=!1),i.data.type==="ShowGameModal"&&(n(7,C=!0),window.postMessage({type:"GameLaunchID",gameId:i.data.gameId},window.location.href),g==="false"&&window.postMessage({type:"DisableScroll"},window.location.href)),i.data.type==="OpenGameFrameModal"&&(n(7,C=!0),window.postMessage({type:"LaunchGameFrame",gameId:i.data.gameId,gameFunMode:i.data.gamefunmode},window.location.href),g==="false"&&window.postMessage({type:"DisableScroll"},window.location.href)),i.data.type==="RequestModalSize"){let S={modalWidth:_?getComputedStyle(_).width:null,modalHeight:_?getComputedStyle(_).height:null};window.postMessage({type:"ModalSize",modalContainerSize:S},window.location.href)}i.data.type==="GameStateOnResize"&&(h=i.data.detailsObtained)},H=i=>{if(h){let S={modalWidth:getComputedStyle(_).width,modalHeight:getComputedStyle(_).height};window.postMessage({type:"ModalSize",modalContainerSize:S},window.location.href)}},I=()=>{y=="true"&&e.checkSession(p,m).then(i=>{i.Guid,i.UserID},i=>{console.error("err on session",i)})},R=()=>{let i=document.createElement("style");i.innerHTML=c,b.appendChild(i)},j=()=>{let i=new URL(w),S=document.createElement("style");fetch(i.href).then(W=>W.text()).then(W=>{S.innerHTML=W,setTimeout(()=>{b.appendChild(S)},1)})};e.onMount(()=>(n(3,a=e.isMobile(f)),window.addEventListener("message",L,!1),window.addEventListener("resize",H,!1),()=>{window.removeEventListener("message",L),window.removeEventListener("resize",L)}));function O(i){e.binding_callbacks[i?"unshift":"push"](()=>{_=i,n(4,_)})}function P(){z=this.clientWidth,F=this.clientHeight,n(5,z),n(6,F)}function T(i){e.binding_callbacks[i?"unshift":"push"](()=>{b=i,n(2,b)})}return s.$$set=i=>{"duration"in i&&n(0,r=i.duration),"session"in i&&n(9,m=i.session),"userid"in i&&n(10,M=i.userid),"clientstyling"in i&&n(11,c=i.clientstyling),"identifier"in i&&n(12,u=i.identifier),"clientstylingurl"in i&&n(13,w=i.clientstylingurl),"endpoint"in i&&n(14,p=i.endpoint),"haspanicbutton"in i&&n(1,k=i.haspanicbutton),"gamepagemodalurl"in i&&n(15,d=i.gamepagemodalurl),"sessioncheck"in i&&n(16,y=i.sessioncheck),"integratedgameframedesktop"in i&&n(17,g=i.integratedgameframedesktop),"$$scope"in i&&n(18,l=i.$$scope)},s.$$.update=()=>{s.$$.dirty[0]&17920&&m&&M&&p&&I(),s.$$.dirty[0]&2052&&c&&b&&R(),s.$$.dirty[0]&8196&&w&&b&&j()},[r,k,b,a,_,z,F,C,G,m,M,c,u,w,p,d,y,g,l,o,O,P,T]}class E extends e.SvelteComponent{constructor(t){super(),e.init(this,t,V,N,e.safe_not_equal,{duration:0,session:9,userid:10,clientstyling:11,identifier:12,clientstylingurl:13,endpoint:14,haspanicbutton:1,gamepagemodalurl:15,sessioncheck:16,integratedgameframedesktop:17},q,[-1,-1])}get duration(){return this.$$.ctx[0]}set duration(t){this.$$set({duration:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[10]}set userid(t){this.$$set({userid:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get identifier(){return this.$$.ctx[12]}set identifier(t){this.$$set({identifier:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get haspanicbutton(){return this.$$.ctx[1]}set haspanicbutton(t){this.$$set({haspanicbutton:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[15]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get sessioncheck(){return this.$$.ctx[16]}set sessioncheck(t){this.$$set({sessioncheck:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[17]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}}e.create_custom_element(E,{duration:{},session:{},userid:{},clientstyling:{},identifier:{},clientstylingurl:{},endpoint:{},haspanicbutton:{},gamepagemodalurl:{},sessioncheck:{},integratedgameframedesktop:{}},["default","close"],[],!0);exports.default=E;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-9cVNHt1-.cjs");require("./CasinoFavoritesSection-CxQ69OwL.cjs");function R(n,e){t.addMessages(n,e)}function V(n){t.$locale.set(n)}const U={en:{noGames:"No games in most played"},"zh-hk":{noGames:"No games in most played"},de:{noGames:"No games in most played"},it:{noGames:"No games in most played"},fr:{noGames:"No games in most played"},es:{noGames:"No hay juegos en más jugados."},tr:{noGames:"En çok oynananlarda oyun yok"},ru:{noGames:"No games in most played"},ro:{noGames:"No games in most played"},hr:{noGames:"Nema igara u najigranijim"},hu:{noGames:"No games in most played"},pl:{noGames:"No games in most played"},pt:{noGames:"No games in most played"},sl:{noGames:"No games in most played"},sr:{noGames:"No games in most played"},"pt-br":{noGames:"Não há jogos nos mais jogados"},"es-mx":{noGames:"No hay juegos en los más jugados"}};function W(n){t.append_styles(n,"svelte-fogubb","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}")}function X(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[14]),t.set_custom_element_data(e,"fetchviaevent",n[16]),t.set_custom_element_data(e,"categoryid","MOSTPLAYED"),t.set_custom_element_data(e,"categoryindex","1"),t.set_custom_element_data(e,"categorygames","9"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",n[12]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"livecasino",n[8]),t.set_custom_element_data(e,"visiblegames",n[13]),t.set_custom_element_data(e,"gamepagemodalurl",n[11]),t.set_custom_element_data(e,"integratedgameframedesktop",n[10]),t.set_custom_element_data(e,"integratedgameframemobile",n[9]),t.set_custom_element_data(e,"casinomygames",n[15])},m(a,i){t.insert(a,e,i)},p(a,i){i[0]&16&&t.set_custom_element_data(e,"session",a[4]),i[0]&32&&t.set_custom_element_data(e,"userid",a[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",a[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",a[1]),i[0]&8&&t.set_custom_element_data(e,"lang",a[3]),i[0]&4&&t.set_custom_element_data(e,"currency",a[2]),i[0]&16384&&t.set_custom_element_data(e,"favorites",a[14]),i[0]&65536&&t.set_custom_element_data(e,"fetchviaevent",a[16]),i[0]&4096&&t.set_custom_element_data(e,"showgamename",a[12]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),i[0]&256&&t.set_custom_element_data(e,"livecasino",a[8]),i[0]&8192&&t.set_custom_element_data(e,"visiblegames",a[13]),i[0]&2048&&t.set_custom_element_data(e,"gamepagemodalurl",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",a[10]),i[0]&512&&t.set_custom_element_data(e,"integratedgameframemobile",a[9]),i[0]&32768&&t.set_custom_element_data(e,"casinomygames",a[15])},d(a){a&&t.detach(e)}}}function Z(n){let e,a=n[19]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,m){t.insert(o,e,m),t.append(e,i)},p(o,m){m[0]&524288&&a!==(a=o[19]("noGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(r,c){return r[18]?Z:X}let o=i(n),m=o(n);return{c(){e=t.element("div"),a=t.element("div"),m.c(),t.attr(a,"class","casino-most-played-section"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(r,c){t.insert(r,e,c),t.append(e,a),m.m(a,null),n[23](e)},p(r,c){o===(o=i(r))&&m?m.p(r,c):(m.d(1),m=o(r),m&&(m.c(),m.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),m.d(),n[23](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(19,i=s));let{endpoint:o=""}=e,{datasource:m=""}=e,{currency:r=""}=e,{lang:c=""}=e,{session:j=""}=e,{userid:h=""}=e,{clientstyling:y=""}=e,{clientstylingurl:v=""}=e,{livecasino:b="false"}=e,{integratedgameframemobile:L="false"}=e,{integratedgameframedesktop:S="false"}=e,{gamepagemodalurl:M="false"}=e,{showgamename:A=""}=e,{visiblegames:G}=e,{favorites:E=""}=e,{translationurl:w=""}=e,{casinomygames:N="false"}=e,{mostplayedperiod:P="Last30Days"}=e,{mostplayedrounds:C="10"}=e,{fetchviaevent:T="true"}=e,q=window.navigator.userAgent;const z=()=>{fetch(w).then(l=>l.json()).then(l=>{Object.keys(l).forEach(u=>{R(u,l[u])})}).catch(l=>{console.log(l)})};Object.keys(U).forEach(s=>{R(s,U[s])});let k=[],F,O=!1,f;const H=s=>{let l=new URL(`${o}/v1/player/${h}/games/most-played`);s.limit&&l.searchParams.append("limit",s.limit),s.order&&l.searchParams.append("order",s.order),l.searchParams.append("expand","games"),l.searchParams.append("period",P);let u=s.device;return u?u==="PC"?l.searchParams.append("device","Desktop"):l.searchParams.append("device","Mobile"):l.searchParams.append("device","All"),s.rounds&&l.searchParams.append("rounds",s.rounds),F=b?l:l.href,new Promise((d,_)=>{fetch(F).then(g=>g.json()).then(g=>{g.items=g.items.filter(Q=>{let D=!0;return Q.gameCode=="OddsMatrix2"&&(g.count--,D=!1),D}),d(g)}).catch(g=>{console.error(g),_(g)})})},I=()=>{H({limit:100,device:t.getDevice(q),rounds:C}).then(s=>{if(s.count>0){let l=[];s.items.forEach(u=>{let d=new URL(`${o}/v1/casino/games/${u.gameId}`);d.searchParams.append("datasource",m),b?l.push(fetch(d.href).then(_=>_.json())):l.push(fetch(d.href).then(_=>_.json()))}),Promise.all(l).then(u=>{k=u.filter(d=>!("error"in d)).map(d=>d[0]),N==="true"&&(k=k.slice(0,JSON.parse(G))),window.postMessage({type:"MostPlayedData",mostPlayedGames:k},window.location.href)})}else a(18,O=!0)})},J=()=>{V(c)},Y=()=>{let s=document.createElement("style");s.innerHTML=y,f.appendChild(s)},B=()=>{let s=document.createElement("style");fetch(new URL(v)).then(l=>l.text()).then(l=>{s.innerHTML=l,setTimeout(()=>{f.appendChild(s)},1)})};function K(s){t.binding_callbacks[s?"unshift":"push"](()=>{f=s,a(17,f)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,m=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,c=s.lang),"session"in s&&a(4,j=s.session),"userid"in s&&a(5,h=s.userid),"clientstyling"in s&&a(6,y=s.clientstyling),"clientstylingurl"in s&&a(7,v=s.clientstylingurl),"livecasino"in s&&a(8,b=s.livecasino),"integratedgameframemobile"in s&&a(9,L=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(10,S=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(11,M=s.gamepagemodalurl),"showgamename"in s&&a(12,A=s.showgamename),"visiblegames"in s&&a(13,G=s.visiblegames),"favorites"in s&&a(14,E=s.favorites),"translationurl"in s&&a(20,w=s.translationurl),"casinomygames"in s&&a(15,N=s.casinomygames),"mostplayedperiod"in s&&a(21,P=s.mostplayedperiod),"mostplayedrounds"in s&&a(22,C=s.mostplayedrounds),"fetchviaevent"in s&&a(16,T=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&c&&I(),n.$$.dirty[0]&131136&&y&&f&&Y(),n.$$.dirty[0]&131200&&v&&f&&B(),n.$$.dirty[0]&1048576&&w&&z(),n.$$.dirty[0]&8&&c&&J()},[o,m,r,c,j,h,y,v,b,L,S,M,A,G,E,N,T,f,O,i,w,P,C,K]}class p extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$,x,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,translationurl:20,casinomygames:15,mostplayedperiod:21,mostplayedrounds:22,fetchviaevent:16},W,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[12]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[13]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[14]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[21]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[22]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(p,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=p;